Makefile.am 38.5 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=\"/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 119
dist_bin_SCRIPTS = \
        src/systemd-analyze

120 121
if HAVE_GTK
bin_PROGRAMS += \
122
	systemadm \
123
	systemd-gnome-ask-password-agent
124
endif
125

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

149 150 151
systemgenerator_PROGRAMS = \
        systemd-getty-generator

152 153 154 155
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

156
systemgenerator_PROGRAMS += \
157
	systemd-cryptsetup-generator
158
endif
159

160 161
noinst_PROGRAMS = \
	test-engine \
162
	test-job-type \
163
	test-ns \
164
	test-loopback \
165
	test-hostname \
166
	test-daemon \
167
	test-cgroup \
168 169
	test-env-replace \
	test-strv
170 171 172 173 174

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
175

176 177 178
dist_pkgsysconf_DATA = \
	src/system.conf

179
dist_dbuspolicy_DATA = \
180
	src/org.freedesktop.systemd1.conf
181

182 183 184
dist_dbussystemservice_DATA = \
	src/org.freedesktop.systemd1.service

185
dist_udevrules_DATA = \
186
	src/99-systemd.rules
187

188
dbusinterface_DATA = \
189 190 191 192 193
	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 \
194
	org.freedesktop.systemd1.Timer.xml \
195 196 197 198 199
	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 \
200 201
	org.freedesktop.systemd1.Swap.xml \
	org.freedesktop.systemd1.Path.xml
202

203 204 205
dist_bashcompletion_DATA = \
        src/systemctl-bash-completion.sh

206 207 208 209
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

210 211 212 213 214
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
        tmpfiles.d/legacy.conf
endif

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

273
nodist_systemunit_DATA = \
274
	units/getty@.service \
275
	units/serial-getty@.service \
276
        units/console-shell.service \
277
	units/remote-fs.target \
278
	units/systemd-initctl.service \
279
	units/systemd-logger.service \
280
	units/systemd-shutdownd.service \
281
	units/systemd-kmsg-syslogd.service \
282
	units/systemd-modules-load.service \
283
	units/systemd-vconsole-setup.service \
284
	units/systemd-remount-api-vfs.service \
285 286
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
287 288
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
289 290
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
291
	units/systemd-readahead-done.service \
292 293
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
294
	units/systemd-user-sessions.service \
295
	units/systemd-ask-password-wall.service \
296
	units/systemd-ask-password-console.service \
297
	units/systemd-sysctl.service \
298 299 300
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
301 302
	units/kexec.service \
	units/fsck@.service \
303
	units/fsck-root.service \
304 305
	units/quotacheck.service \
	units/rescue.service
306

307 308 309
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
310

311 312 313
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
314

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

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

360 361 362 363 364 365 366
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

367 368 369 370 371
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

372 373 374 375 376
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
377
	units/plymouth-quit-wait.service \
378 379 380
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
381 382 383 384 385 386 387 388
	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
389 390
endif

391 392
dist_doc_DATA = \
	README \
393 394
	LICENSE \
	DISTRO_PORTING \
395
	src/sd-daemon.h \
396 397 398
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
399

400 401 402
pkgconfigdata_DATA = \
	systemd.pc

403
polkitpolicy_DATA = \
404 405
	src/org.freedesktop.systemd1.policy

406 407
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
408 409
	libsystemd-core.la \
	libsystemd-daemon.la
410 411

libsystemd_basic_la_SOURCES = \
412
	src/util.c \
413
	src/label.c \
414 415 416 417 418 419
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
420 421
	src/ratelimit.c \
	src/exit-status.c
422

423 424 425 426 427 428 429
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

430
libsystemd_core_la_SOURCES = \
431
	src/unit.c \
432 433
	src/job.c \
	src/manager.c \
434
	src/path-lookup.c \
435 436 437 438 439 440 441 442 443 444
	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 \
445
	src/path.c \
446 447
	src/load-dropin.c \
	src/execute.c \
448
	src/utmp-wtmp.c \
449 450 451 452
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
453 454
	src/dbus-service.c \
	src/dbus-socket.c \
455
	src/dbus-timer.c \
456 457 458 459 460 461 462
	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 \
463
	src/dbus-path.c \
464 465 466
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
467
	src/selinux-setup.c \
468
	src/loopback-setup.c \
469
	src/kmod-setup.c \
470
	src/locale-setup.c \
471
	src/machine-id-setup.c \
472 473 474
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
475
	src/namespace.c \
476
	src/tcpwrap.c \
477 478
	src/cgroup-util.c \
	src/condition.c
479

480 481 482
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
483 484 485 486
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
487 488 489 490 491 492

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
493
	$(PAM_LIBS) \
494
	$(AUDIT_LIBS)
495

496 497 498
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

499 500 501 502
# 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.

503
EXTRA_DIST += \
504 505
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
506
	${libsystemd_daemon_la_SOURCES:.c=.h} \
507
	src/macro.h \
508
        src/def.h \
509 510 511 512 513
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
514
	src/linux/fanotify.h \
515
	src/initreq.h \
516
	src/sd-readahead.h \
517
	src/special.h \
518
	src/dbus-common.h \
519
	src/bus-errors.h \
520
	src/cgroup-show.h \
521
	src/build.h \
522
	src/shutdownd.h \
523
	src/umount.h \
524 525
	src/readahead-common.h \
	src/ask-password-api.h
526 527

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
528
	man/systemd.1 \
529 530
	man/systemctl.1 \
	man/systemadm.1 \
531
	man/systemd-cgls.1 \
532
	man/systemd-nspawn.1 \
533
	man/systemd-tmpfiles.8 \
534
	man/systemd-notify.1 \
535
	man/sd_notify.3 \
536
	man/sd_readahead.3 \
537 538 539
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
540 541
	man/systemd.unit.5 \
	man/systemd.service.5 \
542
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
543
	man/systemd.mount.5 \
544
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
545
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
546
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
547
	man/systemd.path.5 \
548
	man/systemd.target.5 \
549
	man/systemd.device.5 \
550
	man/systemd.snapshot.5 \
551
	man/systemd.exec.5 \
552
	man/daemon.7 \
553
	man/sd-daemon.7 \
554
	man/sd-readahead.7 \
555
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
556 557 558
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
559
	man/pam_systemd.8 \
560
	man/systemd.conf.5 \
561
	man/tmpfiles.d.5 \
562
	man/hostname.5 \
563
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
564
	man/vconsole.conf.5 \
565
	man/locale.conf.5 \
566 567
	man/os-release.5 \
	man/modules-load.d.5
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588

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)
589 590

nodist_man_MANS = \
591
	man/systemd.special.7
592

593 594 595 596 597 598
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)}}}}}

599
dist_noinst_DATA = \
600
	${XML_FILES:.xml=.html}
601

602
nodist_noinst_DATA = \
603
	${XML_IN_FILES:.xml.in=.html}
604 605

EXTRA_DIST += \
606 607 608 609
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
610

611
systemd_SOURCES = \
612
	src/main.c
613

614 615
systemd_CFLAGS = \
	$(AM_CFLAGS) \
616
	$(DBUS_CFLAGS) \
617
	$(UDEV_CFLAGS)
618 619

systemd_LDADD = \
620
	libsystemd-core.la
621 622

test_engine_SOURCES = \
623
	src/test-engine.c
624

625
test_engine_CFLAGS = $(systemd_CFLAGS)
626 627 628
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
629
	src/test-job-type.c
630

631
test_job_type_CFLAGS = $(systemd_CFLAGS)
632 633
test_job_type_LDADD = $(systemd_LDADD)

634
test_ns_SOURCES = \
635
	src/test-ns.c
636

637
test_ns_CFLAGS = $(systemd_CFLAGS)
638 639
test_ns_LDADD = $(systemd_LDADD)

640
test_loopback_SOURCES = \
641 642
	src/test-loopback.c \
	src/loopback-setup.c
643

644 645 646
test_loopback_LDADD = \
	libsystemd-basic.la

647 648 649 650 651 652 653
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

654
test_daemon_SOURCES = \
655
	src/test-daemon.c
656

657
test_daemon_LDADD = \
658 659
	libsystemd-basic.la \
	libsystemd-daemon.la
660

661 662 663 664 665
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
666
	$(AM_CFLAGS)
667 668

test_cgroup_LDADD = \
669
	libsystemd-basic.la
670

671 672 673 674 675 676 677 678 679
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

680
test_strv_SOURCES = \
681
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
682
	src/specifier.c
683 684 685 686 687 688 689

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

690
systemd_logger_SOURCES = \
691
	src/logger.c \
692 693 694
	src/tcpwrap.c

systemd_logger_LDADD = \
695
	libsystemd-basic.la \
696
	libsystemd-daemon.la \
697
	$(LIBWRAP_LIBS)
698

699
systemd_initctl_SOURCES = \
700
	src/initctl.c \
701
	src/dbus-common.c
702

703 704
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
705 706 707
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
708
	libsystemd-basic.la \
709
	libsystemd-daemon.la \
710 711
	$(DBUS_LIBS)

712 713 714 715 716 717 718 719 720 721 722 723 724 725 726
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)

727 728 729 730 731 732 733 734 735
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

736
systemd_shutdownd_SOURCES = \
737
	src/utmp-wtmp.c \
738 739 740 741 742 743
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
744 745
	libsystemd-basic.la \
	libsystemd-daemon.la
746

747 748 749 750 751 752 753 754 755 756 757 758 759
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)

760 761 762 763 764 765
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

766
systemd_modules_load_LDADD = \
767 768
	libsystemd-basic.la

769 770
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
771

772
systemd_tmpfiles_CFLAGS = \
773 774
	$(AM_CFLAGS)

775 776 777
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la

778 779 780 781 782 783 784 785 786 787
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

788 789 790 791 792 793 794 795 796
systemd_sysctl_SOURCES = \
	src/sysctl.c

systemd_sysctl_CFLAGS = \
	$(AM_CFLAGS)

systemd_sysctl_LDADD = \
	libsystemd-basic.la

797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817
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 = \
818 819
	libsystemd-basic.la

820 821 822 823 824 825 826 827 828
systemd_timestamp_SOURCES = \
	src/timestamp.c

systemd_timestamp_CFLAGS = \
	$(AM_CFLAGS)

systemd_timestamp_LDADD = \
	libsystemd-basic.la

829 830 831 832 833 834 835 836 837 838 839
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)

840 841 842 843 844 845 846 847 848
systemd_detect_virt_SOURCES = \
	src/detect-virt.c

systemd_detect_virt_CFLAGS = \
	$(AM_CFLAGS)

systemd_detect_virt_LDADD = \
	libsystemd-basic.la

849
systemd_cryptsetup_SOURCES = \
850 851
	src/cryptsetup.c \
	src/ask-password-api.c
852 853

systemd_cryptsetup_CFLAGS = \
854