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