Automatic translation update from Pootle
[lxde/lxsession.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
2 AUTOMAKE_OPTIONS = subdir-objects
3
4 NULL=
5
6 SUBDIRS= data \
7         man \
8         po \
9         $(NULL)
10
11 bin_PROGRAMS = \
12     lxsettings-daemon/lxsettings-daemon \
13     xdg-autostart/lxsession-xdg-autostart \
14     lxsession/lxsession \
15     $(NULL)
16
17 scripts= \
18     lxlock/lxlock \
19     lxsession-default/lxsession-default \
20     lxsession-default/lxsession-default-terminal \
21     $(NULL)
22
23 bin_SCRIPTS= $(scripts)
24
25 pkglibexec_SCRIPTS = \
26     lxsession-utils/lxsession-xsettings \
27     $(NULL)
28
29 noinst_DATA = \
30     vapi/config.vapi \
31     vapi/lxclipboard.vapi \
32     vapi/lxpolkit.vapi \
33     vapi/lxsession-edit.vapi \
34     vapi/lxsettings-daemon.vapi \
35     vapi/xdg-autostart.vapi \
36     $(NULL)
37
38 CLEANFILES = \
39     $(NULL)
40
41 EXTRA_DIST = \
42     $(noinst_DATA) \
43     $(scripts) \
44     lxsession-utils/lxsession-xsettings \
45     $(NULL)
46
47 if USE_GTK
48 bin_PROGRAMS += \
49     lxpolkit/lxpolkit \
50     lxsession-db/lxsession-db \
51     lxsession-edit/lxsession-edit \
52     lxsession-logout/lxsession-logout \
53     lxsession-default-apps/lxsession-default-apps \
54     lxclipboard/lxclipboard \
55     $(NULL)
56
57 lxclipboard_lxclipboard_vala_SOURCES = \
58     lxclipboard/main.vala \
59     $(NULL)
60
61 CLEANFILES += lxclipboard/main.c \
62     lxclipboard_lxclipboard_vala.stamp \
63     $(NULL)
64
65 lxclipboard_lxclipboard_SOURCES = \
66     $(lxclipboard_lxclipboard_vala_SOURCES) \
67     lxclipboard/clipboard.c \
68     $(NULL)
69
70 lxclipboard_lxclipboard_VALAFLAGS = \
71     --vapidir=$(srcdir)/vapi \
72     --pkg @VALA_GTK_LIBS@ \
73     --pkg lxclipboard \
74     $(NULL)
75
76 lxclipboard_lxclipboard_CPPFLAGS = \
77     $(GTK_CFLAGS) \
78     $(GLIB_CFLAGS) \
79     $(ADDITIONAL_FLAGS) \
80     -include config.h -w \
81     $(NULL)
82
83 lxclipboard_lxclipboard_LDADD = \
84     $(GTK_LIBS) \
85     $(GLIB_LIBS) \
86     $(X11_LIBS) \
87     $(NULL)
88
89 if USE_GTK3
90 lxclipboard_lxclipboard_VALAFLAGS += --define USE_GTK3
91 else
92 lxclipboard_lxclipboard_VALAFLAGS += --define USE_GTK2
93 lxclipboard_lxclipboard_VALAFLAGS += --pkg unique-1.0
94 lxclipboard_lxclipboard_CPPFLAGS += $(UNIQUE_CFLAGS)
95 lxclipboard_lxclipboard_LDADD += $(UNIQUE_LIBS)
96 endif
97
98 lxpolkit_lxpolkit_vala_SOURCES = \
99     lxpolkit/main.vala \
100     $(NULL)
101
102 CLEANFILES += lxpolkit/main.c \
103     lxpolkit_lxpolkit_vala.stamp \
104     $(NULL)
105
106 lxpolkit_lxpolkit_SOURCES = \
107     $(lxpolkit_lxpolkit_vala_SOURCES) \
108     lxpolkit/lxpolkit.c \
109     lxpolkit/lxpolkit-listener.c \
110     $(NULL)
111
112 lxpolkit_lxpolkit_VALAFLAGS = \
113     --vapidir=$(srcdir)/vapi \
114     --pkg @VALA_GTK_LIBS@ \
115     --pkg lxpolkit \
116     $(NULL)
117
118 lxpolkit_lxpolkit_CPPFLAGS = \
119     $(GTK_CFLAGS) \
120     $(GLIB_CFLAGS) \
121     $(POLKIT_CFLAGS) \
122     $(ADDITIONAL_FLAGS) \
123     -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
124     -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
125     -DPACKAGE_UI_DIR="\"$(datadir)/lxsession/ui"\" \
126     -include config.h -w \
127     $(NULL)
128
129 lxpolkit_lxpolkit_LDADD = \
130     $(GTK_LIBS) \
131     $(GLIB_LIBS) \
132     $(POLKIT_LIBS) \
133     $(X11_LIBS) \
134     $(NULL)
135
136 if USE_GTK3
137 lxpolkit_lxpolkit_VALAFLAGS += --define USE_GTK3
138 else
139 lxpolkit_lxpolkit_VALAFLAGS += --define USE_GTK2
140 lxpolkit_lxpolkit_VALAFLAGS += --pkg unique-1.0
141 lxpolkit_lxpolkit_CPPFLAGS += $(UNIQUE_CFLAGS)
142 lxpolkit_lxpolkit_LDADD += $(UNIQUE_LIBS)
143 endif
144
145 lxsession_db_lxsession_db_SOURCES = \
146     lxsession-db/main.vala \
147     lxsession-db/desktop-files-backend.vala \
148     $(NULL)
149
150 CLEANFILES += \
151     lxsession-db/main.c \
152     lxsession-db/desktop-files-backend.c \
153     lxsession_db_lxsession_db_vala.stamp \
154     $(NULL)
155
156 lxsession_db_lxsession_db_VALAFLAGS = \
157     --vapidir=$(srcdir)/vapi \
158     --pkg @VALA_GTK_LIBS@ \
159     $(NULL)
160
161 lxsession_db_lxsession_db_CPPFLAGS = \
162     -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
163     -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
164     -DPACKAGE_UI_DIR="\"$(datadir)/lxsession-default-apps/ui"\" \
165     $(GTK_CFLAGS) \
166     $(GLIB_CFLAGS) \
167     $(ADDITIONAL_FLAGS) \
168     -include config.h -w \
169     $(NULL)
170
171 lxsession_db_lxsession_db_LDADD = \
172     $(GTK_LIBS) \
173     $(GLIB_LIBS) \
174     $(X11_LIBS) \
175     $(NULL)
176
177 lxsession_edit_lxsession_edit_CPPFLAGS = \
178     -I$(top_srcdir) \
179     $(GTK_CFLAGS) \
180     $(ADDITIONAL_FLAGS) \
181     -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
182     -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
183     -DPACKAGE_UI_DIR="\"$(datadir)/lxsession/ui"\" \
184     -Werror-implicit-function-declaration \
185     $(NULL)
186
187 lxsession_edit_lxsession_edit_LDADD = \
188     $(GTK_LIBS) \
189     $(INTLLIBS) \
190     $(NULL)
191
192 lxsession_edit_lxsession_edit_common_SOURCES = \
193     lxsession-edit/lxsession-edit-common.c \
194     $(NULL)
195
196 lxsession_edit_lxsession_edit_SOURCES = \
197     lxsession-edit/lxsession-edit.c \
198     $(lxsession_edit_lxsession_edit_common_SOURCES) \
199     $(NULL)
200
201 lxsession_default_apps_lxsession_default_apps_vala_SOURCES = \
202     lxsession-default-apps/autostart.vala \
203     lxsession-default-apps/main.vala \
204     lxsession-default-apps/combobox.vala \
205     lxsession-default-apps/dbus-backend.vala \
206     lxsession-default-apps/utils.vala \
207     $(NULL)
208
209 CLEANFILES += \
210     lxsession-default-apps/autostart.c \
211     lxsession-default-apps/main.c \
212     lxsession-default-apps/combobox.c \
213     lxsession-default-apps/dbus-backend.c \
214     lxsession-default-apps/utils.c \
215     lxsession_default_apps_lxsession_default_apps_vala.stamp \
216     $(NULL)
217
218 lxsession_default_apps_lxsession_default_apps_SOURCES = \
219     $(lxsession_default_apps_lxsession_default_apps_vala_SOURCES) \
220     $(lxsession_edit_lxsession_edit_common_SOURCES) \
221     $(NULL)
222
223 lxsession_default_apps_lxsession_default_apps_VALAFLAGS = \
224     --vapidir=$(srcdir)/vapi \
225     --pkg @VALA_GTK_LIBS@ \
226     --pkg gio-2.0 \
227     --pkg posix \
228     --pkg lxsession-edit \
229     --pkg config \
230     $(NULL)
231
232 lxsession_default_apps_lxsession_default_apps_CPPFLAGS = \
233     -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
234     -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
235     -DPACKAGE_UI_DIR="\"$(datadir)/lxsession-default-apps/ui"\" \
236     $(GTK_CFLAGS) \
237     $(GLIB_CFLAGS) \
238     $(GIO_CFLAGS) \
239     $(DBUSGLIB_CFLAGS) \
240     $(ADDITIONAL_FLAGS) \
241     -include config.h -w \
242     $(NULL)
243
244 lxsession_default_apps_lxsession_default_apps_LDADD = \
245     $(GTK_LIBS) \
246     $(GLIB_LIBS) \
247     $(GIO_LIBS) \
248     $(DBUSGLIB_LIBS) \
249     $(X11_LIBS) \
250     $(NULL)
251
252 if USE_BUILDIN_CLIPBOARD
253 buildinclip_SOURCES = \
254     lxclipboard/clipboard.c \
255     $(NULL)
256
257 buildinclip_VALAFLAGS = \
258     --pkg lxclipboard \
259     -D BUILDIN_CLIPBOARD \
260     $(NULL)
261 endif
262
263 if USE_BUILDIN_POLKIT
264 buildinpolkit_SOURCES = \
265     lxpolkit/lxpolkit.c \
266     lxpolkit/lxpolkit-listener.c \
267     $(NULL)
268
269 buildinpolkit_VALAFLAGS = \
270     --pkg lxpolkit \
271     -D BUILDIN_POLKIT \
272     $(NULL)
273
274 buildinpolkit_CFLAGS = \
275     $(POLKIT_CFLAGS) \
276     $(NULL)
277
278 buildinpolkit_LDADD = \
279     $(POLKIT_LIBS) \
280     $(NULL)
281 endif
282
283 lxsession_logout_lxsession_logout_CPPFLAGS = \
284     $(GTK_CFLAGS) \
285     $(SM_CFLAGS) \
286     $(DBUS_CFLAGS) \
287     $(ADDITIONAL_FLAGS) \
288     -DPACKAGE_LOCALE_DIR=\"$(datadir)/locale\" \
289     -DPACKAGE_DATA_DIR=\"$(datadir)\"
290
291 lxsession_logout_lxsession_logout_LDADD = \
292     $(GTK_LIBS) \
293     $(SM_LIBS) \
294     $(DBUS_LIBS) \
295     $(X11_LIBS)
296
297 lxsession_logout_lxsession_logout_SOURCES= \
298     lxsession-logout/lxsession-logout-dbus-interface.c \
299     lxsession-logout/lxsession-logout.c
300
301 CLEANFILES += \
302     $(NULL)
303
304 EXTRA_DIST += \
305     $(NULL)
306
307 endif
308
309 lxsettings_daemon_lxsettings_daemon_SOURCES = \
310     lxsettings-daemon/main.vala \
311     $(lxsettings_daemon_lxsettings_daemon_commun_SOURCES) \
312     $(NULL)
313
314 CLEANFILES += \
315     lxsettings-daemon/main.c \
316     lxsettings_daemon_lxsettings_daemon_vala.stamp \
317     $(NULL)
318
319 lxsettings_daemon_lxsettings_daemon_commun_SOURCES = \
320     lxsettings-daemon/settings-daemon.c \
321     lxsettings-daemon/xevent.c \
322     lxsettings-daemon/xsettings-common.c \
323     lxsettings-daemon/xsettings-manager.c \
324     lxsettings-daemon/xutils.c \
325     $(NULL)
326
327 lxsettings_daemon_lxsettings_daemon_VALAFLAGS = \
328     --vapidir=$(srcdir)/vapi \
329     --pkg lxsettings-daemon \
330     $(NULL)
331
332 lxsettings_daemon_lxsettings_daemon_CPPFLAGS = \
333     $(GLIB_CFLAGS) \
334     $(GIO_CFLAGS) \
335     $(ADDITIONAL_FLAGS) \
336     -include config.h -w \
337     $(NULL)
338
339 lxsettings_daemon_lxsettings_daemon_LDADD = \
340     $(GLIB_LIBS) \
341     $(GIO_LIBS) \
342     $(X11_LIBS) \
343     $(NULL)
344
345 xdg_autostart_lxsession_xdg_autostart_vala_SOURCES = \
346     xdg-autostart/main.vala \
347     $(NULL)
348
349 CLEANFILES += \
350     xdg-autostart/main.c \
351     xdg_autostart_lxsession_xdg_autostart_vala.stamp \
352     $(NULL)
353
354 xdg_autostart_lxsession_xdg_autostart_SOURCES = \
355     $(xdg_autostart_lxsession_xdg_autostart_vala_SOURCES) \
356     xdg-autostart/xdg-autostart.c \
357     $(NULL)
358
359 xdg_autostart_lxsession_xdg_autostart_VALAFLAGS = \
360     --vapidir=$(srcdir)/vapi \
361     --pkg xdg-autostart \
362     $(NULL)
363
364 xdg_autostart_lxsession_xdg_autostart_CPPFLAGS = \
365     $(GLIB_CFLAGS) \
366     $(GIO_CFLAGS) \
367     $(ADDITIONAL_FLAGS) \
368     -include config.h -w \
369     $(NULL)
370
371 xdg_autostart_lxsession_xdg_autostart_LDADD = \
372     $(GLIB_LIBS) \
373     $(GIO_LIBS) \
374     $(X11_LIBS) \
375     $(NULL)
376
377 lxsession_lxsession_vala_SOURCES = \
378     lxsession/main.vala \
379     lxsession/app.vala \
380     lxsession/autostart.vala \
381     lxsession/conffiles.vala \
382     lxsession/control.vala \
383     lxsession/dbus-common.vala \
384     lxsession/dbus-gnome-session.vala \
385     lxsession/dbus-lxde-session.vala \
386     lxsession/environement.vala \
387     lxsession/notifications.vala \
388     lxsession/options.vala \
389     lxsession/process.vala \
390     lxsession/settings.vala \
391     lxsession/utils.vala \
392     $(NULL)
393
394 CLEANFILES += \
395     lxsession/main.c \
396     lxsession/app.c \
397     lxsession/autostart.c \
398     lxsession/conffiles.c \
399     lxsession/control.c \
400     lxsession/dbus-common.c \
401     lxsession/dbus-gnome-session.c \
402     lxsession/dbus-lxde-session.c \
403     lxsession/environement.c \
404     lxsession/notifications.c \
405     lxsession/options.c \
406     lxsession/process.c \
407     lxsession/settings.c \
408     lxsession/utils.c \
409     lxsession_lxsession_vala.stamp \
410     $(NULL)
411
412 lxsession_lxsession_SOURCES = \
413     $(lxsession_lxsession_vala_SOURCES) \
414     $(lxsettings_daemon_lxsettings_daemon_commun_SOURCES) \
415     $(buildinclip_SOURCES) \
416     $(buildinpolkit_SOURCES) \
417     $(NULL)
418
419 lxsession_lxsession_VALAFLAGS = \
420     --vapidir=$(srcdir)/vapi \
421     --pkg dbus-glib-1 \
422     --pkg gio-2.0 \
423     --pkg posix \
424     --pkg lxsettings-daemon \
425     $(buildinclip_VALAFLAGS) \
426     $(buildinpolkit_VALAFLAGS) \
427     $(lxsession_gtk_lxsession_VALAFLAGS) \
428     $(NULL)
429
430 lxsession_lxsession_CPPFLAGS = \
431     -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
432     -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
433     -DPACKAGE_UI_DIR="\"$(datadir)/lxsession/ui"\" \
434     -I$(srcdir)/lxsettings-daemon \
435     -I$(srcdir)/xdg-autostart \
436     $(GLIB_CFLAGS) \
437     $(GIO_CFLAGS) \
438     $(DBUSGLIB_CFLAGS) \
439     $(ADDITIONAL_FLAGS) \
440     $(buildinclip_CFLAGS) \
441     $(buildinpolkit_CFLAGS) \
442     $(lxsession_gtk_lxsession_CFLAGS) \
443     -include config.h -w \
444     $(NULL)
445
446 lxsession_lxsession_LDADD = \
447     $(GLIB_LIBS) \
448     $(GIO_LIBS) \
449     $(DBUSGLIB_LIBS) \
450     $(X11_LIBS) \
451     $(buildinclip_LDADD) \
452     $(buildinpolkit_LDADD) \
453     $(lxsession_gtk_lxsession_LDADD) \
454     $(NULL)
455
456 if USE_GTK
457 lxsession_lxsession_VALAFLAGS +=     \
458     --pkg @VALA_GTK_LIBS@ \
459     -D USE_GTK
460
461 lxsession_lxsession_CPPFLAGS += \
462     $(GTK_CFLAGS)
463
464 lxsession_lxsession_LDADD += \
465     $(GTK_LIBS)
466
467 if USE_ADVANCED_NOTIFICATIONS
468 lxsession_lxsession_VALAFLAGS +=     \
469     --pkg appindicator-0.1 \
470     --pkg libnotify \
471     -D USE_ADVANCED_NOTIFICATIONS
472
473 lxsession_lxsession_CPPFLAGS += \
474     $(LIBNOTIFY_CFLAGS) \
475     $(INDICATORS_CFLAGS)
476
477 lxsession_lxsession_LDADD += \
478     $(LIBNOTIFY_LIBS) \
479     $(INDICATORS_LIBS)
480 endif
481 endif
482
483 EXTRA_DIST += \
484     autogen.sh \
485     lxclipboard/clipboard.h \
486     lxpolkit/lxpolkit.h \
487     lxpolkit/lxpolkit-listener.h \
488     lxsettings-daemon/settings-daemon.h \
489     lxsettings-daemon/xevent.h \
490     lxsettings-daemon/xsettings-common.h \
491     lxsettings-daemon/xsettings-manager.h \
492     lxsettings-daemon/xutils.h \
493     lxsession-edit/lxsession-edit-common.h \
494     lxsession-logout/lxsession-logout-dbus-interface.h \
495     xdg-autostart/xdg-autostart.h \
496     $(NULL)