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