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