Makefile.am 37.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
        -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
62
	-DRUNTIME_DIR=\"$(localstatedir)/run\" \
63
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
64
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
65
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
66
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
67
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
68
	-I $(top_srcdir)/src
69

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

103
rootbin_PROGRAMS = \
104
	systemd \
105
	systemctl \
106
	systemd-notify \
107
	systemd-ask-password \
108
	systemd-tty-ask-password-agent \
109
	systemd-tmpfiles \
110
	systemd-machine-id-setup
111

112
bin_PROGRAMS = \
113
	systemd-cgls \
114
	systemd-stdio-bridge \
115 116
        systemd-nspawn

117 118
if HAVE_GTK
bin_PROGRAMS += \
119
	systemadm \
120
	systemd-gnome-ask-password-agent
121
endif
122

123
rootlibexec_PROGRAMS = \
124
	systemd-logger \
125
	systemd-cgroups-agent \
126
	systemd-initctl \
127
	systemd-update-utmp \
128
	systemd-random-seed \
129
	systemd-shutdownd \
130
	systemd-shutdown \
131
	systemd-modules-load \
132
	systemd-remount-api-vfs \
133
	systemd-kmsg-syslogd \
134
	systemd-vconsole-setup \
135 136
	systemd-reply-password \
	systemd-readahead-collect \
137
	systemd-readahead-replay \
138 139
	systemd-user-sessions \
	systemd-fsck \
140
	systemd-quotacheck \
141
	systemd-timestamp \
142
	systemd-ac-power \
143
	systemd-detect-virt \
144
	systemd-sysctl
145

146 147 148 149
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

150 151
systemgenerator_PROGRAMS = \
	systemd-cryptsetup-generator
152
endif
153

154 155
noinst_PROGRAMS = \
	test-engine \
156
	test-job-type \
157
	test-ns \
158
	test-loopback \
159
	test-hostname \
160
	test-daemon \
161
	test-cgroup \
162 163
	test-env-replace \
	test-strv
164 165 166 167 168

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
169

170 171 172
dist_pkgsysconf_DATA = \
	src/system.conf

173
dist_dbuspolicy_DATA = \
174
	src/org.freedesktop.systemd1.conf
175

176 177 178
dist_dbussystemservice_DATA = \
	src/org.freedesktop.systemd1.service

179
dist_udevrules_DATA = \
180
	src/99-systemd.rules
181

182
dbusinterface_DATA = \
183 184 185 186 187
	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 \
188
	org.freedesktop.systemd1.Timer.xml \
189 190 191 192 193
	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 \
194 195
	org.freedesktop.systemd1.Swap.xml \
	org.freedesktop.systemd1.Path.xml
196

197 198 199
dist_bashcompletion_DATA = \
        src/systemctl-bash-completion.sh

200 201 202 203
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

204
dist_systemunit_DATA = \
205
	units/emergency.service \
206
	units/emergency.target \
207
	units/sysinit.target \
208
	units/basic.target \
209 210
	units/getty.target \
	units/halt.target \
211
	units/kexec.target \
212
	units/local-fs.target \
213
	units/cryptsetup.target \
214 215
	units/network.target \
	units/nss-lookup.target \
216
	units/mail-transfer-agent.target \
217
	units/http-daemon.target \
218 219 220
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
221
	units/rpcbind.target \
222 223
	units/rtc-set.target \
	units/shutdown.target \
224
	units/final.target \
225
	units/umount.target \
226 227 228
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
229
	units/dbus.target \
230
	units/systemd-initctl.socket \
231
	units/systemd-logger.socket \
232
	units/systemd-shutdownd.socket \
233
	units/syslog.socket \
234 235 236 237 238 239 240 241
	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 \
242 243 244
	units/sys-kernel-security.automount \
	units/sys-kernel-security.mount \
	units/var-lock.mount \
245
	units/var-run.mount \
246
	units/media.mount \
247
	units/hwclock-load.service \
248
	units/hwclock-save.service \
249
	units/remount-rootfs.service \
250
	units/printer.target \
251
	units/sound.target \
252
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
253
	units/smartcard.target \
254
	units/systemd-readahead-done.timer \
255
	units/systemd-tmpfiles-clean.timer \
256
	units/quotaon.service \
257
	units/systemd-ask-password-wall.path \
258
	units/systemd-ask-password-console.path
259

260
nodist_systemunit_DATA = \
261
	units/getty@.service \
262
	units/serial-getty@.service \
263
        units/console-shell.service \
264
	units/graphical.target \
265
	units/remote-fs.target \
266
	units/multi-user.target \
267
	units/systemd-initctl.service \
268
	units/systemd-logger.service \
269
	units/systemd-shutdownd.service \
270
	units/systemd-kmsg-syslogd.service \
271
	units/systemd-modules-load.service \
272
	units/systemd-vconsole-setup.service \
273
	units/systemd-remount-api-vfs.service \
274 275
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
276 277
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
278 279
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
280
	units/systemd-readahead-done.service \
281 282
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
283
	units/systemd-user-sessions.service \
284
	units/systemd-ask-password-wall.service \
285
	units/systemd-ask-password-console.service \
286
	units/systemd-sysctl.service \
287
	units/syslog.target \
288 289 290
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
291 292
	units/kexec.service \
	units/fsck@.service \
293
	units/fsck-root.service \
294 295
	units/quotacheck.service \
	units/rescue.service
296

297 298 299
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
300

301 302 303
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
304

305
EXTRA_DIST = \
306
	units/getty@.service.m4 \
307
	units/serial-getty@.service.m4 \
308
        units/console-shell.service.m4 \
309 310
	units/graphical.target.m4 \
	units/multi-user.target.m4 \
311
	units/remote-fs.target.m4 \
312
	units/rescue.service.m4 \
313 314
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
315
	units/systemd-shutdownd.service.in \
316
	units/systemd-kmsg-syslogd.service.in \
317
	units/systemd-modules-load.service.in \
318
	units/systemd-vconsole-setup.service.in \
319
	units/systemd-remount-api-vfs.service.in \
320 321
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
322 323
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
324 325
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
326
	units/systemd-readahead-done.service.in \
327 328
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
329
	units/systemd-user-sessions.service.in \
330
	units/systemd-ask-password-wall.service.in \
331
	units/systemd-ask-password-console.service.in \
332
	units/systemd-sysctl.service.in \
333
	units/syslog.target.in \
334 335 336
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
337
	units/kexec.service.in \
338
	units/user/exit.service.in \
339 340
	units/fsck@.service.in \
	units/fsck-root.service.in \
341
	units/quotacheck.service.in \
342
	systemd.pc.in \
343
	introspect.awk \
344
	src/org.freedesktop.systemd1.policy.in
345

346 347 348 349
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
350 351 352
	units/fedora/halt-local.service
endif

353 354 355 356 357 358 359
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

360 361 362 363 364
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
365
	units/plymouth-quit-wait.service \
366 367 368
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
369 370 371 372 373 374 375 376
	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
377 378
endif

379 380
dist_doc_DATA = \
	README \
381 382
	LICENSE \
	DISTRO_PORTING \
383
	src/sd-daemon.h \
384 385 386
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
387

388 389 390
pkgconfigdata_DATA = \
	systemd.pc

391
polkitpolicy_DATA = \
392 393
	src/org.freedesktop.systemd1.policy

394 395
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
396 397
	libsystemd-core.la \
	libsystemd-daemon.la
398 399

libsystemd_basic_la_SOURCES = \
400
	src/util.c \
401
	src/label.c \
402 403 404 405 406 407
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
408 409
	src/ratelimit.c \
	src/exit-status.c
410

411 412 413 414 415 416 417
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

418
libsystemd_core_la_SOURCES = \
419
	src/unit.c \
420 421
	src/job.c \
	src/manager.c \
422
	src/path-lookup.c \
423 424 425 426 427 428 429 430 431 432
	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 \
433
	src/path.c \
434 435
	src/load-dropin.c \
	src/execute.c \
436
	src/utmp-wtmp.c \
437 438 439 440
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
441 442
	src/dbus-service.c \
	src/dbus-socket.c \
443
	src/dbus-timer.c \
444 445 446 447 448 449 450
	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 \
451
	src/dbus-path.c \
452 453 454
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
455
	src/selinux-setup.c \
456
	src/loopback-setup.c \
457
	src/kmod-setup.c \
458
	src/locale-setup.c \
459
	src/machine-id-setup.c \
460 461 462
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
463
	src/namespace.c \
464
	src/tcpwrap.c \
465 466
	src/cgroup-util.c \
	src/condition.c
467

468 469 470
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
471 472 473 474
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
475 476 477 478 479 480

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
481
	$(PAM_LIBS) \
482
	$(AUDIT_LIBS)
483

484 485 486
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

487 488 489 490
# 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.

491
EXTRA_DIST += \
492 493
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
494
	${libsystemd_daemon_la_SOURCES:.c=.h} \
495 496 497 498 499 500
	src/macro.h \
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
501
	src/linux/fanotify.h \
502
	src/initreq.h \
503
	src/sd-readahead.h \
504
	src/special.h \
505
	src/dbus-common.h \
506
	src/bus-errors.h \
507
	src/cgroup-show.h \
508
	src/build.h \
509
	src/shutdownd.h \
510
	src/umount.h \
511 512
	src/readahead-common.h \
	src/ask-password-api.h
513 514

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
515
	man/systemd.1 \
516 517
	man/systemctl.1 \
	man/systemadm.1 \
518
	man/systemd-cgls.1 \
519
	man/systemd-tmpfiles.8 \
520
	man/systemd-notify.1 \
521
	man/sd_notify.3 \
522
	man/sd_readahead.3 \
523 524 525
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
526 527
	man/systemd.unit.5 \
	man/systemd.service.5 \
528
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
529
	man/systemd.mount.5 \
530
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
531
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
532
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
533
	man/systemd.path.5 \
534
	man/systemd.target.5 \
535
	man/systemd.device.5 \
536
	man/systemd.snapshot.5 \
537
	man/systemd.exec.5 \
538
	man/daemon.7 \
539
	man/sd-daemon.7 \
540
	man/sd-readahead.7 \
541
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
542 543 544
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
545
	man/pam_systemd.8 \
546
	man/systemd.conf.5 \
547
	man/tmpfiles.d.5 \
548
	man/hostname.5 \
549
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
550
	man/vconsole.conf.5 \
551
	man/locale.conf.5 \
552 553
	man/os-release.5 \
	man/modules-load.d.5
554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574

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)
575 576

nodist_man_MANS = \
577
	man/systemd.special.7
578

579 580 581 582 583 584
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)}}}}}

585
dist_noinst_DATA = \
586
	${XML_FILES:.xml=.html}
587

588
nodist_noinst_DATA = \
589
	${XML_IN_FILES:.xml.in=.html}
590 591

EXTRA_DIST += \
592 593 594 595
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
596

597
systemd_SOURCES = \
598
	src/main.c
599

600 601
systemd_CFLAGS = \
	$(AM_CFLAGS) \
602
	$(DBUS_CFLAGS) \
603
	$(UDEV_CFLAGS)
604 605

systemd_LDADD = \
606
	libsystemd-core.la
607 608

test_engine_SOURCES = \
609
	src/test-engine.c
610

611
test_engine_CFLAGS = $(systemd_CFLAGS)
612 613 614
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
615
	src/test-job-type.c
616

617
test_job_type_CFLAGS = $(systemd_CFLAGS)
618 619
test_job_type_LDADD = $(systemd_LDADD)

620
test_ns_SOURCES = \
621
	src/test-ns.c
622

623
test_ns_CFLAGS = $(systemd_CFLAGS)
624 625
test_ns_LDADD = $(systemd_LDADD)

626
test_loopback_SOURCES = \
627 628
	src/test-loopback.c \
	src/loopback-setup.c
629

630 631 632
test_loopback_LDADD = \
	libsystemd-basic.la

633 634 635 636 637 638 639
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

640
test_daemon_SOURCES = \
641
	src/test-daemon.c
642

643
test_daemon_LDADD = \
644 645
	libsystemd-basic.la \
	libsystemd-daemon.la
646

647 648 649 650 651
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
652
	$(AM_CFLAGS)
653 654

test_cgroup_LDADD = \
655
	libsystemd-basic.la
656

657 658 659 660 661 662 663 664 665
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

666
test_strv_SOURCES = \
667
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
668
	src/specifier.c
669 670 671 672 673 674 675

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

676
systemd_logger_SOURCES = \
677
	src/logger.c \
678 679 680
	src/tcpwrap.c

systemd_logger_LDADD = \
681
	libsystemd-basic.la \
682
	libsystemd-daemon.la \
683
	$(LIBWRAP_LIBS)
684

685
systemd_initctl_SOURCES = \
686
	src/initctl.c \
687
	src/dbus-common.c
688

689 690
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
691 692 693
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
694
	libsystemd-basic.la \
695
	libsystemd-daemon.la \
696 697
	$(DBUS_LIBS)

698 699 700 701 702 703 704 705 706 707 708 709 710 711 712
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)

713 714 715 716 717 718 719 720 721
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

722
systemd_shutdownd_SOURCES = \
723
	src/utmp-wtmp.c \
724 725 726 727 728 729
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
730 731
	libsystemd-basic.la \
	libsystemd-daemon.la
732

733 734 735 736 737 738 739 740 741 742 743 744 745
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)

746 747 748 749 750 751
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

752
systemd_modules_load_LDADD = \
753 754
	libsystemd-basic.la

755 756
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
757

758
systemd_tmpfiles_CFLAGS = \
759 760
	$(AM_CFLAGS)

761 762 763
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la

764 765 766 767 768 769 770 771 772 773
systemd_machine_id_setup_SOURCES = \
	src/machine-id-setup.c \
	src/machine-id-main.c

systemd_machine_id_setup_CFLAGS = \
	$(AM_CFLAGS)

systemd_machine_id_setup_LDADD = \
	libsystemd-basic.la

774 775 776 777 778 779 780 781 782
systemd_sysctl_SOURCES = \
	src/sysctl.c

systemd_sysctl_CFLAGS = \
	$(AM_CFLAGS)

systemd_sysctl_LDADD = \
	libsystemd-basic.la

783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803
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 = \
804 805
	libsystemd-basic.la

806 807 808 809 810 811 812 813 814
systemd_timestamp_SOURCES = \
	src/timestamp.c

systemd_timestamp_CFLAGS = \
	$(AM_CFLAGS)

systemd_timestamp_LDADD = \
	libsystemd-basic.la

815 816 817 818 819 820 821 822 823 824 825
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)

826 827 828 829 830 831 832 833 834
systemd_detect_virt_SOURCES = \
	src/detect-virt.c

systemd_detect_virt_CFLAGS = \
	$(AM_CFLAGS)

systemd_detect_virt_LDADD = \
	libsystemd-basic.la

835
systemd_cryptsetup_SOURCES = \
836 837
	src/cryptsetup.c \
	src/ask-password-api.c
838 839

systemd_cryptsetup_CFLAGS = \
840
	$(LIBCRYPTSETUP_CFLAGS) \
841
	$(UDEV_CFLAGS) \
842 843 844
	$(AM_CFLAGS)

systemd_cryptsetup_LDADD = \
845
	$(LIBCRYPTSETUP_LIBS) \
846
	$(UDEV_LIBS) \