po/el.po: fix a problem with PO file.
[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
e8e40847
AG
57lxclipboard_lxclipboard_SOURCES = \
58 $(lxclipboard_lxclipboard_vala_SOURCES) \
59 lxclipboard/clipboard.c \
c8c24ef1
JL
60 $(NULL)
61
e8e40847 62lxclipboard_lxclipboard_VALAFLAGS = \
c8c24ef1
JL
63 --vapidir=$(srcdir)/vapi \
64 --pkg gtk+-2.0 \
65 --pkg lxclipboard \
66 $(NULL)
67
e8e40847 68lxclipboard_lxclipboard_CFLAGS = \
c8c24ef1
JL
69 $(GTK_CFLAGS) \
70 $(GLIB_CFLAGS) \
71 $(ADDITIONAL_FLAGS) \
72 -include config.h -w \
73 $(NULL)
74
e8e40847 75lxclipboard_lxclipboard_LDADD = \
c8c24ef1
JL
76 $(GTK_LIBS) \
77 $(GLIB_LIBS) \
78 $(X11_LIBS) \
79 $(NULL)
80
e8e40847
AG
81lxpolkit_lxpolkit_vala_SOURCES = \
82 lxpolkit/main.vala \
0da3c09b
JL
83 $(NULL)
84
e8e40847
AG
85lxpolkit_lxpolkit_SOURCES = \
86 $(lxpolkit_lxpolkit_vala_SOURCES) \
87 lxpolkit/lxpolkit.c \
88 lxpolkit/lxpolkit-listener.c \
c8c24ef1
JL
89 $(NULL)
90
e8e40847 91lxpolkit_lxpolkit_VALAFLAGS = \
c8c24ef1
JL
92 --vapidir=$(srcdir)/vapi \
93 --pkg gtk+-2.0 \
94 --pkg lxpolkit \
95 $(NULL)
96
e8e40847 97lxpolkit_lxpolkit_CFLAGS = \
c8c24ef1
JL
98 $(GTK_CFLAGS) \
99 $(GLIB_CFLAGS) \
100 $(POLKIT_CFLAGS) \
101 $(ADDITIONAL_FLAGS) \
102 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
103 -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
104 -DPACKAGE_UI_DIR="\"$(datadir)/lxsession/ui"\" \
105 -include config.h -w \
106 $(NULL)
107
e8e40847 108lxpolkit_lxpolkit_LDADD = \
c8c24ef1
JL
109 $(GTK_LIBS) \
110 $(GLIB_LIBS) \
111 $(POLKIT_LIBS) \
112 $(X11_LIBS) \
113 $(NULL)
114
e8e40847
AG
115lxsession_db_lxsession_db_SOURCES = \
116 lxsession-db/main.vala \
117 lxsession-db/desktop-files-backend.vala \
c8c24ef1
JL
118 $(NULL)
119
e8e40847 120lxsession_db_lxsession_db_VALAFLAGS = \
c8c24ef1
JL
121 --vapidir=$(srcdir)/vapi \
122 --pkg gtk+-2.0 \
123 $(NULL)
124
e8e40847 125lxsession_db_lxsession_db_CFLAGS = \
c8c24ef1
JL
126 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
127 -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
128 -DPACKAGE_UI_DIR="\"$(datadir)/lxsession-default-apps/ui"\" \
129 $(GTK_CFLAGS) \
130 $(GEE_CFLAGS) \
131 $(GLIB_CFLAGS) \
132 $(ADDITIONAL_FLAGS) \
133 -include config.h -w \
134 $(NULL)
135
e8e40847 136lxsession_db_lxsession_db_LDADD = \
c8c24ef1
JL
137 $(GTK_LIBS) \
138 $(GEE_LIBS) \
139 $(GLIB_LIBS) \
140 $(X11_LIBS) \
141 $(NULL)
142
e8e40847 143lxsession_edit_lxsession_edit_CFLAGS = \
c8c24ef1
JL
144 -I$(top_srcdir) \
145 $(GTK_CFLAGS) \
146 $(ADDITIONAL_FLAGS) \
147 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
148 -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
149 -DPACKAGE_UI_DIR="\"$(datadir)/lxsession/ui"\" \
150 -Werror-implicit-function-declaration \
151 $(NULL)
152
e8e40847 153lxsession_edit_lxsession_edit_LDADD = \
c8c24ef1
JL
154 $(GTK_LIBS) \
155 $(INTLLIBS) \
156 $(NULL)
157
e8e40847
AG
158lxsession_edit_lxsession_edit_common_SOURCES = \
159 lxsession-edit/lxsession-edit-common.c \
c8c24ef1
JL
160 $(NULL)
161
e8e40847
AG
162lxsession_edit_lxsession_edit_SOURCES = \
163 lxsession-edit/lxsession-edit.c \
164 $(lxsession_edit_lxsession_edit_common_SOURCES) \
c8c24ef1
JL
165 $(NULL)
166
e8e40847
AG
167lxsession_default_apps_lxsession_default_apps_vala_SOURCES = \
168 lxsession-default-apps/autostart.vala \
169 lxsession-default-apps/main.vala \
170 lxsession-default-apps/combobox.vala \
171 lxsession-default-apps/dbus-backend.vala \
172 lxsession-default-apps/utils.vala \
0da3c09b
JL
173 $(NULL)
174
e8e40847
AG
175lxsession_default_apps_lxsession_default_apps_SOURCES = \
176 $(lxsession_default_apps_lxsession_default_apps_vala_SOURCES) \
177 $(lxsession_edit_lxsession_edit_common_SOURCES) \
c8c24ef1
JL
178 $(NULL)
179
e8e40847 180lxsession_default_apps_lxsession_default_apps_VALAFLAGS = \
c8c24ef1
JL
181 --vapidir=$(srcdir)/vapi \
182 --pkg gtk+-2.0 \
183 --pkg dbus-glib-1 \
184 --pkg gio-2.0 \
185 --pkg posix \
186 --pkg lxsession-edit \
187 --pkg config \
188 $(NULL)
189
e8e40847 190lxsession_default_apps_lxsession_default_apps_CFLAGS = \
c8c24ef1
JL
191 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
192 -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
193 -DPACKAGE_UI_DIR="\"$(datadir)/lxsession-default-apps/ui"\" \
194 $(GTK_CFLAGS) \
195 $(GLIB_CFLAGS) \
196 $(GIO_CFLAGS) \
197 $(DBUSGLIB_CFLAGS) \
198 $(ADDITIONAL_FLAGS) \
199 -include config.h -w \
200 $(NULL)
201
e8e40847 202lxsession_default_apps_lxsession_default_apps_LDADD = \
c8c24ef1
JL
203 $(GTK_LIBS) \
204 $(GLIB_LIBS) \
205 $(GIO_LIBS) \
206 $(DBUSGLIB_LIBS) \
207 $(X11_LIBS) \
208 $(NULL)
209
210if USE_BUILDIN_CLIPBOARD
211buildinclip_SOURCES = \
e8e40847 212 lxclipboard/clipboard.c \
c8c24ef1
JL
213 $(NULL)
214
215buildinclip_VALAFLAGS = \
216 --pkg lxclipboard \
217 --pkg gtk+-2.0 \
218 -D BUILDIN_CLIPBOARD \
219 $(NULL)
220
221buildinclip_CFLAGS = \
222 $(GTK_CFLAGS) \
223 $(NULL)
224
225buildinclip_LDADD = \
226 $(GTK_LIBS) \
227 $(NULL)
228endif
229
230if USE_BUILDIN_POLKIT
231buildinpolkit_SOURCES = \
e8e40847
AG
232 lxpolkit/lxpolkit.c \
233 lxpolkit/lxpolkit-listener.c \
c8c24ef1
JL
234 $(NULL)
235
236buildinpolkit_VALAFLAGS = \
237 --pkg lxpolkit \
238 -D BUILDIN_POLKIT \
239 $(NULL)
240
241buildinpolkit_CFLAGS = \
242 $(GTK_CFLAGS) \
243 $(POLKIT_CFLAGS) \
244 $(NULL)
245
246buildinpolkit_LDADD = \
247 $(GTK_LIBS) \
248 $(POLKIT_LIBS) \
249 $(NULL)
250endif
251
e8e40847 252lxsession_logout_lxsession_logout_CFLAGS = \
c8c24ef1
JL
253 $(GTK_CFLAGS) \
254 $(SM_CFLAGS) \
255 $(DBUS_CFLAGS) \
256 $(ADDITIONAL_FLAGS) \
257 -DPACKAGE_LOCALE_DIR=\"$(datadir)/locale\" \
258 -DPACKAGE_DATA_DIR=\"$(datadir)\"
259
e8e40847 260lxsession_logout_lxsession_logout_LDADD = \
c8c24ef1
JL
261 $(GTK_LIBS) \
262 $(SM_LIBS) \
263 $(DBUS_LIBS) \
264 $(X11_LIBS)
265
e8e40847
AG
266lxsession_logout_lxsession_logout_SOURCES= \
267 lxsession-logout/lxsession-logout-dbus-interface.c \
268 lxsession-logout/lxsession-logout.c
269
270CLEANFILES += \
271 $(NULL)
272
273EXTRA_DIST += \
274 $(NULL)
c8c24ef1
JL
275
276endif
277
e8e40847
AG
278lxsettings_daemon_lxsettings_daemon_SOURCES = \
279 lxsettings-daemon/main.vala \
280 $(lxsettings_daemon_lxsettings_daemon_commun_SOURCES) \
c8c24ef1
JL
281 $(NULL)
282
e8e40847
AG
283lxsettings_daemon_lxsettings_daemon_commun_SOURCES = \
284 lxsettings-daemon/settings-daemon.c \
285 lxsettings-daemon/xevent.c \
286 lxsettings-daemon/xsettings-common.c \
287 lxsettings-daemon/xsettings-manager.c \
288 lxsettings-daemon/xutils.c \
c8c24ef1
JL
289 $(NULL)
290
e8e40847 291lxsettings_daemon_lxsettings_daemon_VALAFLAGS = \
c8c24ef1
JL
292 --vapidir=$(srcdir)/vapi \
293 --pkg lxsettings-daemon \
294 $(NULL)
295
e8e40847 296lxsettings_daemon_lxsettings_daemon_CFLAGS = \
c8c24ef1
JL
297 $(GLIB_CFLAGS) \
298 $(GIO_CFLAGS) \
299 $(ADDITIONAL_FLAGS) \
300 -include config.h -w \
301 $(NULL)
302
e8e40847 303lxsettings_daemon_lxsettings_daemon_LDADD = \
c8c24ef1
JL
304 $(GLIB_LIBS) \
305 $(GIO_LIBS) \
306 $(X11_LIBS) \
307 $(NULL)
308
e8e40847 309xdg_autostart_lxsession_xdg_autostart_vala_SOURCES = \
0da3c09b
JL
310 xdg-autostart/main.vala \
311 $(NULL)
312
e8e40847
AG
313xdg_autostart_lxsession_xdg_autostart_SOURCES = \
314 $(xdg_autostart_lxsession_xdg_autostart_vala_SOURCES) \
c8c24ef1 315 xdg-autostart/xdg-autostart.c \
c8c24ef1
JL
316 $(NULL)
317
e8e40847 318xdg_autostart_lxsession_xdg_autostart_VALAFLAGS = \
c8c24ef1
JL
319 --vapidir=$(srcdir)/vapi \
320 --pkg xdg-autostart \
321 $(NULL)
322
e8e40847 323xdg_autostart_lxsession_xdg_autostart_CFLAGS = \
c8c24ef1
JL
324 $(GLIB_CFLAGS) \
325 $(GIO_CFLAGS) \
326 $(ADDITIONAL_FLAGS) \
327 -include config.h -w \
328 $(NULL)
329
e8e40847 330xdg_autostart_lxsession_xdg_autostart_LDADD = \
c8c24ef1
JL
331 $(GLIB_LIBS) \
332 $(GIO_LIBS) \
333 $(X11_LIBS) \
334 $(NULL)
335
e8e40847
AG
336lxsession_lxsession_vala_SOURCES = \
337 lxsession/main.vala \
338 lxsession/app.vala \
339 lxsession/autostart.vala \
340 lxsession/conffiles.vala \
341 lxsession/control.vala \
342 lxsession/dbus-common.vala \
343 lxsession/dbus-gnome-session.vala \
344 lxsession/dbus-lxde-session.vala \
345 lxsession/environement.vala \
346 lxsession/options.vala \
347 lxsession/process.vala \
348 lxsession/settings.vala \
349 lxsession/utils.vala \
350 $(NULL)
351
352lxsession_lxsession_SOURCES = \
353 $(lxsession_lxsession_vala_SOURCES) \
354 $(lxsettings_daemon_lxsettings_daemon_commun_SOURCES) \
c8c24ef1
JL
355 $(buildinclip_SOURCES) \
356 $(buildinpolkit_SOURCES) \
357 $(NULL)
358
e8e40847 359lxsession_lxsession_VALAFLAGS = \
c8c24ef1
JL
360 --vapidir=$(srcdir)/vapi \
361 --pkg dbus-glib-1 \
362 --pkg gio-2.0 \
363 --pkg posix \
364 --pkg lxsettings-daemon \
365 $(buildinclip_VALAFLAGS) \
366 $(buildinpolkit_VALAFLAGS) \
367 $(NULL)
368
e8e40847 369lxsession_lxsession_CFLAGS = \
c8c24ef1
JL
370 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
371 -DPACKAGE_DATA_DIR="\"$(datadir)"\" \
372 -DPACKAGE_UI_DIR="\"$(datadir)/lxsession/ui"\" \
e8e40847 373 -I$(srcdir)/lxsettings-daemon \
c8c24ef1
JL
374 -I$(srcdir)/xdg-autostart \
375 $(GLIB_CFLAGS) \
376 $(GIO_CFLAGS) \
377 $(DBUSGLIB_CFLAGS) \
378 $(ADDITIONAL_FLAGS) \
379 $(buildinclip_CFLAGS) \
380 $(buildinpolkit_CFLAGS) \
381 -include config.h -w \
382 $(NULL)
383
e8e40847 384lxsession_lxsession_LDADD = \
c8c24ef1
JL
385 $(GLIB_LIBS) \
386 $(GIO_LIBS) \
387 $(DBUSGLIB_LIBS) \
388 $(X11_LIBS) \
389 $(buildinclip_LDADD) \
390 $(buildinpolkit_LDADD) \
391 $(NULL)
392
c8c24ef1 393EXTRA_DIST += \
f0288ebe 394 autogen.sh \
e8e40847
AG
395 lxclipboard/clipboard.h \
396 lxpolkit/lxpolkit.h \
397 lxpolkit/lxpolkit-listener.h \
398 lxsettings-daemon/settings-daemon.h \
399 lxsettings-daemon/xevent.h \
400 lxsettings-daemon/xsettings-common.h \
401 lxsettings-daemon/xsettings-manager.h \
402 lxsettings-daemon/xutils.h \
403 lxsession-edit/lxsession-edit-common.h \
404 lxsession-logout/lxsession-logout-dbus-interface.h \
c8c24ef1
JL
405 xdg-autostart/xdg-autostart.h \
406 $(NULL)