Makefile.am 35.9 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#  This file is part of systemd.
#
#  Copyright 2010 Lennart Poettering
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  systemd is distributed in the hope that it will be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
#  General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with systemd; If not, see <http://www.gnu.org/licenses/>.

ACLOCAL_AMFLAGS = -I m4

20
# Dirs of external packages
21
22
23
24
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
25
udevrulesdir=@udevrulesdir@
26
27
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
28
polkitpolicydir=$(datadir)/polkit-1/actions
29
bashcompletiondir=$(sysconfdir)/bash_completion.d
30

31
# Our own, non-special dirs
32
pkgsysconfdir=$(sysconfdir)/systemd
33
userunitdir=$(pkgdatadir)/user
34
tmpfilesdir=$(sysconfdir)/tmpfiles.d
35
usergeneratordir=$(pkglibexecdir)/user-generators
36
37
38
39

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
40
rootsbindir=$(rootdir)/sbin
41
42
rootlibexecdir=$(rootdir)/lib/systemd
systemunitdir=$(rootdir)/lib/systemd/system
43
systemgeneratordir=$(rootdir)/lib/systemd/system-generators
44
systemshutdowndir=$(rootdir)/lib/systemd/system-shutdown
45

46
AM_CPPFLAGS = \
47
	-include $(top_builddir)/config.h \
48
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
49
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
50
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
51
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
52
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
53
54
55
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
56
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
57
	-DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
58
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
59
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
60
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
61
	-DRUNTIME_DIR=\"$(localstatedir)/run\" \
62
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
63
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
64
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
65
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
66
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
67
	-I $(top_srcdir)/src
68

69
70
71
72
73
74
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
75
76
77
78
79
80
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
81
82
83
84
85
86
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
87
88
89
90
91
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
endif
92
endif
93
endif
94

95
rootbin_PROGRAMS = \
96
	systemd \
97
	systemctl \
98
	systemd-notify \
99
	systemd-ask-password \
100
101
	systemd-tty-ask-password-agent \
	systemd-tmpfiles
102

103
bin_PROGRAMS = \
104
	systemd-cgls
105
106
107

if HAVE_GTK
bin_PROGRAMS += \
108
	systemadm \
109
	systemd-gnome-ask-password-agent
110
endif
111

112
rootlibexec_PROGRAMS = \
113
	systemd-logger \
114
	systemd-cgroups-agent \
115
	systemd-initctl \
116
	systemd-update-utmp \
117
	systemd-random-seed \
118
	systemd-shutdownd \
119
	systemd-shutdown \
120
	systemd-modules-load \
121
	systemd-remount-api-vfs \
122
	systemd-kmsg-syslogd \
123
	systemd-vconsole-setup \
124
125
	systemd-reply-password \
	systemd-readahead-collect \
126
	systemd-readahead-replay \
127
128
	systemd-user-sessions \
	systemd-fsck \
129
	systemd-quotacheck \
130
	systemd-timestamp \
131
	systemd-ac-power \
132
	systemd-detect-virt \
133
	systemd-sysctl
134

135
136
137
138
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

139
140
systemgenerator_PROGRAMS = \
	systemd-cryptsetup-generator
141
endif
142

143
144
noinst_PROGRAMS = \
	test-engine \
145
	test-job-type \
146
	test-ns \
147
	test-loopback \
148
	test-hostname \
149
	test-daemon \
150
	test-cgroup \
151
152
	test-env-replace \
	test-strv
153
154
155
156
157

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
158

159
160
161
dist_pkgsysconf_DATA = \
	src/system.conf

162
dist_dbuspolicy_DATA = \
163
	src/org.freedesktop.systemd1.conf
164

165
166
167
dist_dbussystemservice_DATA = \
	src/org.freedesktop.systemd1.service

168
dist_udevrules_DATA = \
169
	src/99-systemd.rules
170

171
dbusinterface_DATA = \
172
173
174
175
176
	org.freedesktop.systemd1.Manager.xml \
	org.freedesktop.systemd1.Job.xml \
	org.freedesktop.systemd1.Unit.xml \
	org.freedesktop.systemd1.Service.xml \
	org.freedesktop.systemd1.Socket.xml \
177
	org.freedesktop.systemd1.Timer.xml \
178
179
180
181
182
	org.freedesktop.systemd1.Target.xml \
	org.freedesktop.systemd1.Device.xml \
	org.freedesktop.systemd1.Mount.xml \
	org.freedesktop.systemd1.Automount.xml \
	org.freedesktop.systemd1.Snapshot.xml \
183
184
	org.freedesktop.systemd1.Swap.xml \
	org.freedesktop.systemd1.Path.xml
185

186
187
188
dist_bashcompletion_DATA = \
        src/systemctl-bash-completion.sh

189
190
191
192
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

193
dist_systemunit_DATA = \
194
	units/emergency.service \
195
	units/emergency.target \
196
	units/sysinit.target \
197
	units/basic.target \
198
199
	units/getty.target \
	units/halt.target \
200
	units/kexec.target \
201
	units/local-fs.target \
202
	units/cryptsetup.target \
203
204
	units/network.target \
	units/nss-lookup.target \
205
	units/mail-transfer-agent.target \
206
	units/http-daemon.target \
207
208
209
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
210
	units/rpcbind.target \
211
212
	units/rtc-set.target \
	units/shutdown.target \
213
	units/final.target \
214
	units/umount.target \
215
216
217
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
218
	units/dbus.target \
219
	units/systemd-initctl.socket \
220
	units/systemd-logger.socket \
221
	units/systemd-shutdownd.socket \
222
	units/syslog.socket \
223
224
225
226
227
228
229
230
	units/dev-hugepages.automount \
	units/dev-hugepages.mount \
	units/dev-mqueue.automount \
	units/dev-mqueue.mount \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount \
	units/sys-kernel-debug.automount \
	units/sys-kernel-debug.mount \
231
232
233
	units/sys-kernel-security.automount \
	units/sys-kernel-security.mount \
	units/var-lock.mount \
234
	units/var-run.mount \
235
	units/hwclock-load.service \
236
	units/hwclock-save.service \
237
	units/remount-rootfs.service \
238
	units/printer.target \
239
	units/sound.target \
240
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
241
	units/smartcard.target \
242
	units/systemd-readahead-done.timer \
243
	units/systemd-tmpfiles-clean.timer \
244
	units/quotaon.service \
245
	units/systemd-ask-password-wall.path \
246
	units/systemd-ask-password-console.path
247

248
nodist_systemunit_DATA = \
249
	units/getty@.service \
250
	units/serial-getty@.service \
251
	units/graphical.target \
252
	units/remote-fs.target \
253
	units/multi-user.target \
254
	units/systemd-initctl.service \
255
	units/systemd-logger.service \
256
	units/systemd-shutdownd.service \
257
	units/systemd-kmsg-syslogd.service \
258
	units/systemd-modules-load.service \
259
	units/systemd-vconsole-setup.service \
260
	units/systemd-remount-api-vfs.service \
261
262
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
263
264
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
265
266
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
267
	units/systemd-readahead-done.service \
268
269
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
270
	units/systemd-user-sessions.service \
271
	units/systemd-ask-password-wall.service \
272
	units/systemd-ask-password-console.service \
273
	units/systemd-sysctl.service \
274
	units/syslog.target \
275
276
277
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
278
279
	units/kexec.service \
	units/fsck@.service \
280
	units/fsck-root.service \
281
282
	units/quotacheck.service \
	units/rescue.service
283

284
285
286
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
287

288
289
290
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
291

292
EXTRA_DIST = \
293
	units/getty@.service.m4 \
294
	units/serial-getty@.service.m4 \
295
296
	units/graphical.target.m4 \
	units/multi-user.target.m4 \
297
	units/remote-fs.target.m4 \
298
	units/rescue.service.m4 \
299
300
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
301
	units/systemd-shutdownd.service.in \
302
	units/systemd-kmsg-syslogd.service.in \
303
	units/systemd-modules-load.service.in \
304
	units/systemd-vconsole-setup.service.in \
305
	units/systemd-remount-api-vfs.service.in \
306
307
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
308
309
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
310
311
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
312
	units/systemd-readahead-done.service.in \
313
314
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
315
	units/systemd-user-sessions.service.in \
316
	units/systemd-ask-password-wall.service.in \
317
	units/systemd-ask-password-console.service.in \
318
	units/systemd-sysctl.service.in \
319
	units/syslog.target.in \
320
321
322
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
323
	units/kexec.service.in \
324
	units/user/exit.service.in \
325
326
	units/fsck@.service.in \
	units/fsck-root.service.in \
327
	units/quotacheck.service.in \
328
329
	systemd.pc.in \
	introspect.awk
330

331
332
333
334
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
335
336
337
338
339
340
341
342
	units/fedora/halt-local.service
endif

if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
343
	units/plymouth-quit-wait.service \
344
345
346
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
347
348
349
350
351
352
353
354
	units/plymouth-halt.service \
	units/systemd-ask-password-plymouth.path

nodist_systemunit_DATA += \
	units/systemd-ask-password-plymouth.service

EXTRA_DIST += \
	units/systemd-ask-password-plymouth.service.in
355
356
endif

357
358
dist_doc_DATA = \
	README \
359
360
	LICENSE \
	DISTRO_PORTING \
361
	src/sd-daemon.h \
362
363
364
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
365

366
367
368
pkgconfigdata_DATA = \
	systemd.pc

369
370
371
dist_polkitpolicy_DATA = \
	src/org.freedesktop.systemd1.policy

372
373
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
374
375
	libsystemd-core.la \
	libsystemd-daemon.la
376
377

libsystemd_basic_la_SOURCES = \
378
	src/util.c \
379
	src/label.c \
380
381
382
383
384
385
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
386
387
	src/ratelimit.c \
	src/exit-status.c
388

389
390
391
392
393
394
395
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

396
libsystemd_core_la_SOURCES = \
397
	src/unit.c \
398
399
	src/job.c \
	src/manager.c \
400
	src/path-lookup.c \
401
402
403
404
405
406
407
408
409
410
	src/load-fragment.c \
	src/service.c \
	src/automount.c \
	src/mount.c \
	src/swap.c \
	src/device.c \
	src/target.c \
	src/snapshot.c \
	src/socket.c \
	src/timer.c \
411
	src/path.c \
412
413
	src/load-dropin.c \
	src/execute.c \
414
	src/utmp-wtmp.c \
415
416
417
418
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
419
420
	src/dbus-service.c \
	src/dbus-socket.c \
421
	src/dbus-timer.c \
422
423
424
425
426
427
428
	src/dbus-target.c \
	src/dbus-mount.c \
	src/dbus-automount.c \
	src/dbus-swap.c \
	src/dbus-snapshot.c \
	src/dbus-device.c \
	src/dbus-execute.c \
429
	src/dbus-path.c \
430
431
432
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
433
	src/selinux-setup.c \
434
	src/loopback-setup.c \
435
	src/kmod-setup.c \
436
	src/locale-setup.c \
437
438
439
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
440
	src/namespace.c \
441
	src/tcpwrap.c \
442
443
	src/cgroup-util.c \
	src/condition.c
444

445
446
447
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
448
449
450
451
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
452
453
454
455
456
457

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
458
	$(PAM_LIBS) \
459
	$(AUDIT_LIBS)
460

461
462
463
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

464
465
466
467
# This is needed because automake is buggy in how it generates the
# rules for C programs, but not Vala programs.  We therefore can't
# list the .h files as dependencies if we want make dist to work.

468
EXTRA_DIST += \
469
470
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
471
	${libsystemd_daemon_la_SOURCES:.c=.h} \
472
473
474
475
476
477
	src/macro.h \
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
478
	src/linux/fanotify.h \
479
	src/initreq.h \
480
	src/sd-readahead.h \
481
	src/special.h \
482
	src/dbus-common.h \
483
	src/bus-errors.h \
484
	src/cgroup-show.h \
485
	src/build.h \
486
	src/shutdownd.h \
487
	src/umount.h \
488
489
	src/readahead-common.h \
	src/ask-password-api.h
490
491

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
492
	man/systemd.1 \
493
494
	man/systemctl.1 \
	man/systemadm.1 \
495
	man/systemd-cgls.1 \
496
	man/systemd-tmpfiles.8 \
497
	man/systemd-notify.1 \
498
	man/sd_notify.3 \
499
	man/sd_readahead.3 \
500
501
502
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
503
504
	man/systemd.unit.5 \
	man/systemd.service.5 \
505
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
506
	man/systemd.mount.5 \
507
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
508
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
509
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
510
	man/systemd.path.5 \
511
	man/systemd.target.5 \
512
	man/systemd.device.5 \
513
	man/systemd.snapshot.5 \
514
	man/systemd.exec.5 \
515
	man/daemon.7 \
516
	man/sd-daemon.7 \
517
	man/sd-readahead.7 \
518
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
519
520
521
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
522
	man/pam_systemd.8 \
523
	man/systemd.conf.5 \
524
	man/tmpfiles.d.5 \
525
	man/hostname.5 \
Lennart Poettering's avatar
Lennart Poettering committed
526
	man/vconsole.conf.5 \
527
	man/locale.conf.5 \
528
529
	man/os-release.5 \
	man/modules-load.d.5
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
	man/sd_is_socket.3 \
	man/sd_is_socket_unix.3 \
	man/sd_is_socket_inet.3 \
	man/sd_notifyf.3 \
	man/init.1

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/sd_is_socket.3: man/sd_is_fifo.3
man/sd_is_socket_unix.3: man/sd_is_fifo.3
man/sd_is_socket_inet.3: man/sd_is_fifo.3
man/sd_notifyf.3: man/sd_notify.3
man/init.1: man/systemd.1

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
551
552

nodist_man_MANS = \
553
	man/systemd.special.7
554

555
556
557
558
559
560
XML_FILES = \
	${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}

XML_IN_FILES = \
	${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}

561
dist_noinst_DATA = \
562
	${XML_FILES:.xml=.html}
563

564
nodist_noinst_DATA = \
565
	${XML_IN_FILES:.xml.in=.html}
566
567

EXTRA_DIST += \
568
569
570
571
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
572

573
systemd_SOURCES = \
574
	src/main.c
575

576
577
systemd_CFLAGS = \
	$(AM_CFLAGS) \
578
	$(DBUS_CFLAGS) \
579
	$(UDEV_CFLAGS)
580
581

systemd_LDADD = \
582
	libsystemd-core.la
583
584

test_engine_SOURCES = \
585
	src/test-engine.c
586

587
test_engine_CFLAGS = $(systemd_CFLAGS)
588
589
590
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
591
	src/test-job-type.c
592

593
test_job_type_CFLAGS = $(systemd_CFLAGS)
594
595
test_job_type_LDADD = $(systemd_LDADD)

596
test_ns_SOURCES = \
597
	src/test-ns.c
598

599
test_ns_CFLAGS = $(systemd_CFLAGS)
600
601
test_ns_LDADD = $(systemd_LDADD)

602
test_loopback_SOURCES = \
603
604
	src/test-loopback.c \
	src/loopback-setup.c
605

606
607
608
test_loopback_LDADD = \
	libsystemd-basic.la

609
610
611
612
613
614
615
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

616
test_daemon_SOURCES = \
617
	src/test-daemon.c
618

619
test_daemon_LDADD = \
620
621
	libsystemd-basic.la \
	libsystemd-daemon.la
622

623
624
625
626
627
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
628
	$(AM_CFLAGS)
629
630

test_cgroup_LDADD = \
631
	libsystemd-basic.la
632

633
634
635
636
637
638
639
640
641
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

642
test_strv_SOURCES = \
643
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
644
	src/specifier.c
645
646
647
648
649
650
651

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

652
systemd_logger_SOURCES = \
653
	src/logger.c \
654
655
656
	src/tcpwrap.c

systemd_logger_LDADD = \
657
	libsystemd-basic.la \
658
	libsystemd-daemon.la \
659
	$(LIBWRAP_LIBS)
660

661
systemd_initctl_SOURCES = \
662
	src/initctl.c \
663
	src/dbus-common.c
664

665
666
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
667
668
669
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
670
	libsystemd-basic.la \
671
	libsystemd-daemon.la \
672
673
	$(DBUS_LIBS)

674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
systemd_update_utmp_SOURCES = \
	src/update-utmp.c \
	src/dbus-common.c \
	src/utmp-wtmp.c

systemd_update_utmp_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
	$(AUDIT_CFLAGS)

systemd_update_utmp_LDADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(AUDIT_LIBS)

689
690
691
692
693
694
695
696
697
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

698
systemd_shutdownd_SOURCES = \
699
	src/utmp-wtmp.c \
700
701
702
703
704
705
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
706
707
	libsystemd-basic.la \
	libsystemd-daemon.la
708

709
710
711
712
713
714
715
716
717
718
719
720
721
systemd_shutdown_SOURCES = \
	src/mount-setup.c \
	src/umount.c \
	src/shutdown.c

systemd_shutdown_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS)

systemd_shutdown_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS)

722
723
724
725
726
727
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

728
systemd_modules_load_LDADD = \
729
730
	libsystemd-basic.la

731
732
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
733

734
systemd_tmpfiles_CFLAGS = \
735
736
	$(AM_CFLAGS)

737
738
739
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la

740
741
742
743
744
745
746
747
748
systemd_sysctl_SOURCES = \
	src/sysctl.c

systemd_sysctl_CFLAGS = \
	$(AM_CFLAGS)

systemd_sysctl_LDADD = \
	libsystemd-basic.la

749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
systemd_fsck_SOURCES = \
	src/fsck.c \
	src/dbus-common.c

systemd_fsck_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS) \
	$(DBUS_CFLAGS)

systemd_fsck_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS) \
	$(DBUS_LIBS)

systemd_quotacheck_SOURCES = \
	src/quotacheck.c

systemd_quotacheck_CFLAGS = \
	$(AM_CFLAGS)

systemd_quotacheck_LDADD = \
770
771
	libsystemd-basic.la

772
773
774
775
776
777
778
779
780
systemd_timestamp_SOURCES = \
	src/timestamp.c

systemd_timestamp_CFLAGS = \
	$(AM_CFLAGS)

systemd_timestamp_LDADD = \
	libsystemd-basic.la

781
782
783
784
785
786
787
788
789
790
791
systemd_ac_power_SOURCES = \
	src/ac-power.c

systemd_ac_power_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS)

systemd_ac_power_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS)

792
793
794
795
796
797
798
799
800
systemd_detect_virt_SOURCES = \
	src/detect-virt.c

systemd_detect_virt_CFLAGS = \
	$(AM_CFLAGS)

systemd_detect_virt_LDADD = \
	libsystemd-basic.la

801
systemd_cryptsetup_SOURCES = \
802
803
	src/cryptsetup.c \
	src/ask-password-api.c
804
805

systemd_cryptsetup_CFLAGS = \
806
	$(LIBCRYPTSETUP_CFLAGS) \
807
	$(UDEV_CFLAGS) \
808
809
810
	$(AM_CFLAGS)

systemd_cryptsetup_LDADD = \
811
	$(LIBCRYPTSETUP_LIBS) \
812
	$(UDEV_LIBS) \
813
814
815
816
817
818
819
820
821
822
823
824
	libsystemd-basic.la

systemd_cryptsetup_generator_SOURCES = \
	src/cryptsetup-generator.c \
	src/unit-name.c

systemd_cryptsetup_generator_CFLAGS = \
	$(AM_CFLAGS)

systemd_cryptsetup_generator_LDADD = \
	libsystemd-basic.la

825
826
827
828
829
830
831
systemd_user_sessions_SOURCES = \
	src/user-sessions.c \
	src/cgroup-util.c

systemd_user_sessions_CFLAGS = \
	$(AM_CFLAGS)

832
systemd_user_sessions_LDADD = \
833
834
	libsystemd-basic.la

835
836
837
838
839
840
841
842
843
systemd_vconsole_setup_SOURCES = \
	src/vconsole-setup.c

systemd_vconsole_setup_CFLAGS = \
	$(AM_CFLAGS)

systemd_vconsole_setup_LDADD = \
	libsystemd-basic.la

844
845
systemd_remount_api_vfs_SOURCES = \
	src/remount-api-vfs.c \
846
847
	src/mount-setup.c \
	src/exit-status.c
848
849
850
851
852
853
854

systemd_remount_api_vfs_CFLAGS = \
	$(AM_CFLAGS)

systemd_remount_api_vfs_LDADD = \
	libsystemd-basic.la

855
systemd_cgroups_agent_SOURCES = \
856
857
	src/cgroups-agent.c \
	src/dbus-common.c
858

859
860
systemd_cgroups_agent_CFLAGS = \
	$(AM_CFLAGS) \
861
862
863
	$(DBUS_CFLAGS)

systemd_cgroups_agent_LDADD = \
864
	libsystemd-basic.la \
865
866
	$(DBUS_LIBS)

867
868
869
870
871
872
873
874
systemd_kmsg_syslogd_SOURCES = \
	src/kmsg-syslogd.c \
	src/fdset.c

systemd_kmsg_syslogd_CFLAGS = \
	$(AM_CFLAGS)

systemd_kmsg_syslogd_LDADD = \
875
876
	libsystemd-basic.la \
	libsystemd-daemon.la
877

878
879
systemctl_SOURCES = \
	src/systemctl.c \
880
	src/utmp-wtmp.c \
881
	src/dbus-common.c \
882
	src/path-lookup.c \
883
	src/cgroup-show.c \
884
	src/cgroup-util.c \
885
886
	src/exit-status.c \
	src/unit-name.c
887
888
889

systemctl_CFLAGS = \
	$(AM_CFLAGS) \
890
	$(DBUS_CFLAGS)
891

892
893
systemctl_LDADD = \
	libsystemd-basic.la \
894
	libsystemd-daemon.la \
895
	$(DBUS_LIBS)
896

897
898
systemd_notify_SOURCES = \
	src/notify.c \
899
	src/sd-readahead.c
900
901

systemd_notify_LDADD = \
902
903
	libsystemd-basic.la \
	libsystemd-daemon.la
904

905
systemd_ask_password_SOURCES = \
906
907
	src/ask-password.c \
	src/ask-password-api.c
908
909
910
911
912
913
914
915
916
917

systemd_ask_password_LDADD = \
	libsystemd-basic.la

systemd_reply_password_SOURCES = \
	src/reply-password.c

systemd_reply_password_LDADD = \
	libsystemd-basic.la

918
919
920
921
922
923
924
925
926
systemd_readahead_collect_SOURCES = \
	src/readahead-collect.c \
	src/readahead-common.c

systemd_readahead_collect_CFLAGS = \
	$(UDEV_CFLAGS)

systemd_readahead_collect_LDADD = \
	libsystemd-basic.la \
927
	libsystemd-daemon.la \
928
929
930
931
932
933
934
935
936
937
938
	$(UDEV_LIBS)

systemd_readahead_replay_SOURCES = \
	src/readahead-replay.c \
	src/readahead-common.c

systemd_readahead_replay_CFLAGS = \
	$(UDEV_CFLAGS)

systemd_readahead_replay_LDADD = \
	libsystemd-basic.la \
939
	libsystemd-daemon.la \
940
941
	$(UDEV_LIBS)

942
systemd_cgls_SOURCES = \
943
	src/cgls.c \
944
945
	src/cgroup-show.c \
	src/cgroup-util.c
946
947

systemd_cgls_CFLAGS = \
948
	$(AM_CFLAGS)
949
950

systemd_cgls_LDADD = \
951
	libsystemd-basic.la
952

953
systemadm_SOURCES = \
954
955
	src/systemadm.vala \
	src/systemd-interfaces.vala
956

957
958
959
960
961
962
963
964
965
966
967
968
969
systemadm_CFLAGS = \
	$(AM_CFLAGS) \
	$(GTK_CFLAGS) \
	-Wno-unused-variable \
	-Wno-unused-function \
	-Wno-shadow \
	-Wno-format-nonliteral

systemadm_VALAFLAGS = \
	--pkg=posix \
	--pkg=gtk+-2.0 \
	-g

970
971
systemadm_LDADD = \
	$(GTK_LIBS)
972

973
974
systemd_gnome_ask_password_agent_SOURCES = \
	src/gnome-ask-password-agent.vala
975

976
systemd_gnome_ask_password_agent_CFLAGS = \
977
	$(AM_CFLAGS) \
978
	$(LIBNOTIFY_CFLAGS) \
979
980
981
982
983
984
	$(GTK_CFLAGS) \
	-Wno-unused-variable \
	-Wno-unused-function \
	-Wno-shadow \
	-Wno-format-nonliteral

985
systemd_gnome_ask_password_agent_VALAFLAGS = \
986
987
988
989
	--pkg=posix \
	--pkg=gtk+-2.0 \
	--pkg=linux \
	--pkg=gio-unix-2.0 \