Makefile.am 36.3 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
	systemd-tty-ask-password-agent \
101 102
	systemd-tmpfiles \
	systemd-machine-id-setup
103

104
bin_PROGRAMS = \
105
	systemd-cgls
106 107 108

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

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

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

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

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

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
159

160 161 162
dist_pkgsysconf_DATA = \
	src/system.conf

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

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

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

172
dbusinterface_DATA = \
173 174 175 176 177
	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 \
178
	org.freedesktop.systemd1.Timer.xml \
179 180 181 182 183
	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 \
184 185
	org.freedesktop.systemd1.Swap.xml \
	org.freedesktop.systemd1.Path.xml
186

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

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

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

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

286 287 288
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
289

290 291 292
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
293

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

333 334 335 336
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
337 338 339 340 341 342 343 344
	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 \
345
	units/plymouth-quit-wait.service \
346 347 348
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
349 350 351 352 353 354 355 356
	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
357 358
endif

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

368 369 370
pkgconfigdata_DATA = \
	systemd.pc

371 372 373
dist_polkitpolicy_DATA = \
	src/org.freedesktop.systemd1.policy

374 375
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
376 377
	libsystemd-core.la \
	libsystemd-daemon.la
378 379

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

391 392 393 394 395 396 397
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

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

448 449 450
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
451 452 453 454
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
455 456 457 458 459 460

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
461
	$(PAM_LIBS) \
462
	$(AUDIT_LIBS)
463

464 465 466
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

467 468 469 470
# 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.

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

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

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)
555 556

nodist_man_MANS = \
557
	man/systemd.special.7
558

559 560 561 562 563 564
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)}}}}}

565
dist_noinst_DATA = \
566
	${XML_FILES:.xml=.html}
567

568
nodist_noinst_DATA = \
569
	${XML_IN_FILES:.xml.in=.html}
570 571

EXTRA_DIST += \
572 573 574 575
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
576

577
systemd_SOURCES = \
578
	src/main.c
579

580 581
systemd_CFLAGS = \
	$(AM_CFLAGS) \
582
	$(DBUS_CFLAGS) \
583
	$(UDEV_CFLAGS)
584 585

systemd_LDADD = \
586
	libsystemd-core.la
587 588

test_engine_SOURCES = \
589
	src/test-engine.c
590

591
test_engine_CFLAGS = $(systemd_CFLAGS)
592 593 594
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
595
	src/test-job-type.c
596

597
test_job_type_CFLAGS = $(systemd_CFLAGS)
598 599
test_job_type_LDADD = $(systemd_LDADD)

600
test_ns_SOURCES = \
601
	src/test-ns.c
602

603
test_ns_CFLAGS = $(systemd_CFLAGS)
604 605
test_ns_LDADD = $(systemd_LDADD)

606
test_loopback_SOURCES = \
607 608
	src/test-loopback.c \
	src/loopback-setup.c
609

610 611 612
test_loopback_LDADD = \
	libsystemd-basic.la

613 614 615 616 617 618 619
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

620
test_daemon_SOURCES = \
621
	src/test-daemon.c
622

623
test_daemon_LDADD = \
624 625
	libsystemd-basic.la \
	libsystemd-daemon.la
626

627 628 629 630 631
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
632
	$(AM_CFLAGS)
633 634

test_cgroup_LDADD = \
635
	libsystemd-basic.la
636

637 638 639 640 641 642 643 644 645
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

646
test_strv_SOURCES = \
647
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
648
	src/specifier.c
649 650 651 652 653 654 655

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

656
systemd_logger_SOURCES = \
657
	src/logger.c \
658 659 660
	src/tcpwrap.c

systemd_logger_LDADD = \
661
	libsystemd-basic.la \
662
	libsystemd-daemon.la \
663
	$(LIBWRAP_LIBS)
664

665
systemd_initctl_SOURCES = \
666
	src/initctl.c \
667
	src/dbus-common.c
668

669 670
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
671 672 673
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
674
	libsystemd-basic.la \
675
	libsystemd-daemon.la \
676 677
	$(DBUS_LIBS)

678 679 680 681 682 683 684 685 686 687 688 689 690 691 692
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)

693 694 695 696 697 698 699 700 701
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

702
systemd_shutdownd_SOURCES = \
703
	src/utmp-wtmp.c \
704 705 706 707 708 709
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
710 711
	libsystemd-basic.la \
	libsystemd-daemon.la
712

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

726 727 728 729 730 731
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

732
systemd_modules_load_LDADD = \
733 734
	libsystemd-basic.la

735 736
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
737

738
systemd_tmpfiles_CFLAGS = \
739 740
	$(AM_CFLAGS)

741 742 743
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la

744 745 746 747 748 749 750 751 752 753
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

754 755 756 757 758 759 760 761 762
systemd_sysctl_SOURCES = \
	src/sysctl.c

systemd_sysctl_CFLAGS = \
	$(AM_CFLAGS)

systemd_sysctl_LDADD = \
	libsystemd-basic.la

763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783
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 = \
784 785
	libsystemd-basic.la

786 787 788 789 790 791 792 793 794
systemd_timestamp_SOURCES = \
	src/timestamp.c

systemd_timestamp_CFLAGS = \
	$(AM_CFLAGS)

systemd_timestamp_LDADD = \
	libsystemd-basic.la

795 796 797 798 799 800 801 802 803 804 805
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)

806 807 808 809 810 811 812 813 814
systemd_detect_virt_SOURCES = \
	src/detect-virt.c

systemd_detect_virt_CFLAGS = \
	$(AM_CFLAGS)

systemd_detect_virt_LDADD = \
	libsystemd-basic.la

815
systemd_cryptsetup_SOURCES = \
816 817
	src/cryptsetup.c \
	src/ask-password-api.c
818 819

systemd_cryptsetup_CFLAGS = \
820
	$(LIBCRYPTSETUP_CFLAGS) \
821
	$(UDEV_CFLAGS) \
822 823 824
	$(AM_CFLAGS)

systemd_cryptsetup_LDADD = \
825
	$(LIBCRYPTSETUP_LIBS) \
826
	$(UDEV_LIBS) \
827 828 829 830 831 832 833 834 835 836 837 838
	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

839 840 841 842 843 844 845
systemd_user_sessions_SOURCES = \
	src/user-sessions.c \
	src/cgroup-util.c

systemd_user_sessions_CFLAGS = \
	$(AM_CFLAGS)

846
systemd_user_sessions_LDADD = \
847 848
	libsystemd-basic.la

849 850 851 852 853 854 855 856 857
systemd_vconsole_setup_SOURCES = \
	src/vconsole-setup.c

systemd_vconsole_setup_CFLAGS = \
	$(AM_CFLAGS)

systemd_vconsole_setup_LDADD = \
	libsystemd-basic.la

858 859
systemd_remount_api_vfs_SOURCES = \
	src/remount-api-vfs.c \
860 861
	src/mount-setup.c \
	src/exit-status.c
862 863 864 865 866 867 868

systemd_remount_api_vfs_CFLAGS = \
	$(AM_CFLAGS)

systemd_remount_api_vfs_LDADD = \
	libsystemd-basic.la