Makefile.am 37.8 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 110 111
	systemd-tmpfiles

rootsbin_PROGRAMS = \
112
	systemd-machine-id-setup
113

114
bin_PROGRAMS = \
115 116
	systemd-cgls \
	systemd-stdio-bridge
117

118 119 120
sbin_PROGRAMS = \
        systemd-nspawn

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

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

150 151 152 153
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

154 155
systemgenerator_PROGRAMS = \
	systemd-cryptsetup-generator
156
endif
157

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

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
173

174 175 176
dist_pkgsysconf_DATA = \
	src/system.conf

177
dist_dbuspolicy_DATA = \
178
	src/org.freedesktop.systemd1.conf
179

180 181 182
dist_dbussystemservice_DATA = \
	src/org.freedesktop.systemd1.service

183
dist_udevrules_DATA = \
184
	src/99-systemd.rules
185

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

201 202 203
dist_bashcompletion_DATA = \
        src/systemctl-bash-completion.sh

204 205 206 207
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

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

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

300 301 302
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
303

304 305 306
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
307

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

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

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

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

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

390 391 392
pkgconfigdata_DATA = \
	systemd.pc

393
polkitpolicy_DATA = \
394 395
	src/org.freedesktop.systemd1.policy

396 397
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
398 399
	libsystemd-core.la \
	libsystemd-daemon.la
400 401

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

413 414 415 416 417 418 419
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

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

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

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

486 487 488
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

489 490 491 492
# 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.

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

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

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)
577 578

nodist_man_MANS = \
579
	man/systemd.special.7
580

581 582 583 584 585 586
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)}}}}}

587
dist_noinst_DATA = \
588
	${XML_FILES:.xml=.html}
589

590
nodist_noinst_DATA = \
591
	${XML_IN_FILES:.xml.in=.html}
592 593

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

599
systemd_SOURCES = \
600
	src/main.c
601

602 603
systemd_CFLAGS = \
	$(AM_CFLAGS) \
604
	$(DBUS_CFLAGS) \
605
	$(UDEV_CFLAGS)
606 607

systemd_LDADD = \
608
	libsystemd-core.la
609 610

test_engine_SOURCES = \
611
	src/test-engine.c
612

613
test_engine_CFLAGS = $(systemd_CFLAGS)
614 615 616
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
617
	src/test-job-type.c
618

619
test_job_type_CFLAGS = $(systemd_CFLAGS)
620 621
test_job_type_LDADD = $(systemd_LDADD)

622
test_ns_SOURCES = \
623
	src/test-ns.c
624

625
test_ns_CFLAGS = $(systemd_CFLAGS)
626 627
test_ns_LDADD = $(systemd_LDADD)

628
test_loopback_SOURCES = \
629 630
	src/test-loopback.c \
	src/loopback-setup.c
631

632 633 634
test_loopback_LDADD = \
	libsystemd-basic.la

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

test_hostname_LDADD = \
	libsystemd-basic.la

642
test_daemon_SOURCES = \
643
	src/test-daemon.c
644

645
test_daemon_LDADD = \
646 647
	libsystemd-basic.la \
	libsystemd-daemon.la
648

649 650 651 652 653
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
654
	$(AM_CFLAGS)
655 656

test_cgroup_LDADD = \
657
	libsystemd-basic.la
658

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

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

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

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

678
systemd_logger_SOURCES = \
679
	src/logger.c \
680 681 682
	src/tcpwrap.c

systemd_logger_LDADD = \
683
	libsystemd-basic.la \
684
	libsystemd-daemon.la \
685
	$(LIBWRAP_LIBS)
686

687
systemd_initctl_SOURCES = \
688
	src/initctl.c \
689
	src/dbus-common.c
690

691 692
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
693 694 695
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
696
	libsystemd-basic.la \
697
	libsystemd-daemon.la \
698 699
	$(DBUS_LIBS)

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

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

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

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

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
732 733
	libsystemd-basic.la \
	libsystemd-daemon.la
734

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

748 749 750 751 752 753
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

754
systemd_modules_load_LDADD = \
755 756
	libsystemd-basic.la

757 758
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
759

760
systemd_tmpfiles_CFLAGS = \
761 762
	$(AM_CFLAGS)

763 764 765
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la

766 767 768 769 770 771 772 773 774 775
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

776 777 778 779 780 781 782 783 784
systemd_sysctl_SOURCES = \
	src/sysctl.c

systemd_sysctl_CFLAGS = \
	$(AM_CFLAGS)

systemd_sysctl_LDADD = \
	libsystemd-basic.la

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

808 809 810 811 812 813 814 815 816
systemd_timestamp_SOURCES = \
	src/timestamp.c

systemd_timestamp_CFLAGS = \
	$(AM_CFLAGS)

systemd_timestamp_LDADD = \
	libsystemd-basic.la

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

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

systemd_detect_virt_CFLAGS = \
	$(AM_CFLAGS)

systemd_detect_virt_LDADD = \
	libsystemd-basic.la

837
systemd_cryptsetup_SOURCES = \
838 839
	src/cryptsetup.c \
	src/ask-password-api.c
840 841

systemd_cryptsetup_CFLAGS = \
842
	$(LIBCRYPTSETUP_CFLAGS) \
843
	$(UDEV_CFLAGS) \
844 845 846
	$(AM_CFLAGS)

systemd_cryptsetup_LDADD = \
847
	$(LIBCRYPTSETUP_LIBS) \
848
	$(UDEV_LIBS) \
849 850 851 852 853 854 855 856