Makefile.am 38.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 21 22
# Override libexecdir
libexecdir=$(exec_prefix)/lib

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

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

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

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

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

106
rootbin_PROGRAMS = \
107
	systemd \
108
	systemctl \
109
	systemd-notify \
110
	systemd-ask-password \
111
	systemd-tty-ask-password-agent \
112
	systemd-tmpfiles \
113
	systemd-machine-id-setup
114

115
bin_PROGRAMS = \
116
	systemd-cgls \
117
	systemd-stdio-bridge \
118
	systemd-nspawn
119

120
dist_bin_SCRIPTS = \
121
	src/systemd-analyze
122

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

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

153
systemgenerator_PROGRAMS = \
154
	systemd-getty-generator
155

156 157 158 159
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

160
systemgenerator_PROGRAMS += \
161
	systemd-cryptsetup-generator
162
endif
163

164 165
noinst_PROGRAMS = \
	test-engine \
166
	test-job-type \
167
	test-ns \
168
	test-loopback \
169
	test-hostname \
170
	test-daemon \
171
	test-cgroup \
172 173
	test-env-replace \
	test-strv
174 175 176 177 178

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
179

180 181 182
dist_pkgsysconf_DATA = \
	src/system.conf

183
dist_dbuspolicy_DATA = \
184
	src/org.freedesktop.systemd1.conf
185

186 187 188
dist_dbussystemservice_DATA = \
	src/org.freedesktop.systemd1.service

189
dist_udevrules_DATA = \
190
	src/99-systemd.rules
191

192
dbusinterface_DATA = \
193 194 195 196 197
	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 \
198
	org.freedesktop.systemd1.Timer.xml \
199 200 201 202 203
	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 \
204 205
	org.freedesktop.systemd1.Swap.xml \
	org.freedesktop.systemd1.Path.xml
206

207
dist_bashcompletion_DATA = \
208
	src/systemctl-bash-completion.sh
209

210 211 212 213
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

214 215
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
216
	tmpfiles.d/legacy.conf
217 218
endif

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

276 277 278 279 280 281
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif


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

317 318 319
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
320

321 322 323
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
324

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

364 365 366 367
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
368 369 370
	units/fedora/halt-local.service
endif

371 372 373 374 375 376 377
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

378 379 380 381 382
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

383 384 385 386 387
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
388
	units/plymouth-quit-wait.service \
389 390 391
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
392 393 394 395 396 397 398 399
	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
400 401
endif

402 403
dist_doc_DATA = \
	README \
404 405
	LICENSE \
	DISTRO_PORTING \
406
	src/sd-daemon.h \
407 408 409
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
410

411 412 413
pkgconfigdata_DATA = \
	systemd.pc

414
polkitpolicy_DATA = \
415 416
	src/org.freedesktop.systemd1.policy

417 418
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
419 420
	libsystemd-core.la \
	libsystemd-daemon.la
421 422

libsystemd_basic_la_SOURCES = \
423
	src/util.c \
424
	src/label.c \
425 426 427 428 429 430
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
431 432
	src/ratelimit.c \
	src/exit-status.c
433

434 435 436 437 438 439 440
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

441
libsystemd_core_la_SOURCES = \
442
	src/unit.c \
443 444
	src/job.c \
	src/manager.c \
445
	src/path-lookup.c \
446 447 448 449 450 451 452 453 454 455
	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 \
456
	src/path.c \
457 458
	src/load-dropin.c \
	src/execute.c \
459
	src/utmp-wtmp.c \
460 461 462 463
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
464 465
	src/dbus-service.c \
	src/dbus-socket.c \
466
	src/dbus-timer.c \
467 468 469 470 471 472 473
	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 \
474
	src/dbus-path.c \
475 476 477
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
478
	src/selinux-setup.c \
479
	src/loopback-setup.c \
480
	src/kmod-setup.c \
481
	src/locale-setup.c \
482
	src/machine-id-setup.c \
483 484 485
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
486
	src/namespace.c \
487
	src/tcpwrap.c \
488 489
	src/cgroup-util.c \
	src/condition.c
490

491 492 493
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
494 495 496 497
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
498 499 500 501 502 503

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
504
	$(PAM_LIBS) \
505
	$(AUDIT_LIBS)
506

507 508 509
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

510 511 512 513
# 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.

514
EXTRA_DIST += \
515 516
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
517
	${libsystemd_daemon_la_SOURCES:.c=.h} \
518
	src/macro.h \
519
	src/def.h \
520 521 522 523 524
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
525
	src/linux/fanotify.h \
526
	src/initreq.h \
527
	src/sd-readahead.h \
528
	src/special.h \
529
	src/dbus-common.h \
530
	src/bus-errors.h \
531
	src/cgroup-show.h \
532
	src/build.h \
533
	src/shutdownd.h \
534
	src/umount.h \
535 536
	src/readahead-common.h \
	src/ask-password-api.h
537 538

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

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)
602 603

nodist_man_MANS = \
604
	man/systemd.special.7
605

606 607 608 609 610 611
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)}}}}}

612
dist_noinst_DATA = \
613
	${XML_FILES:.xml=.html}
614

615
nodist_noinst_DATA = \
616
	${XML_IN_FILES:.xml.in=.html}
617 618

EXTRA_DIST += \
619 620 621 622
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
623

624
systemd_SOURCES = \
625
	src/main.c
626

627 628
systemd_CFLAGS = \
	$(AM_CFLAGS) \
629
	$(DBUS_CFLAGS) \
630
	$(UDEV_CFLAGS)
631 632

systemd_LDADD = \
633
	libsystemd-core.la
634 635

test_engine_SOURCES = \
636
	src/test-engine.c
637

638
test_engine_CFLAGS = $(systemd_CFLAGS)
639 640 641
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
642
	src/test-job-type.c
643

644
test_job_type_CFLAGS = $(systemd_CFLAGS)
645 646
test_job_type_LDADD = $(systemd_LDADD)

647
test_ns_SOURCES = \
648
	src/test-ns.c
649

650
test_ns_CFLAGS = $(systemd_CFLAGS)
651 652
test_ns_LDADD = $(systemd_LDADD)

653
test_loopback_SOURCES = \
654 655
	src/test-loopback.c \
	src/loopback-setup.c
656

657 658 659
test_loopback_LDADD = \
	libsystemd-basic.la

660 661 662 663 664 665 666
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

667
test_daemon_SOURCES = \
668
	src/test-daemon.c
669

670
test_daemon_LDADD = \
671 672
	libsystemd-basic.la \
	libsystemd-daemon.la
673

674 675 676 677 678
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
679
	$(AM_CFLAGS)
680 681

test_cgroup_LDADD = \
682
	libsystemd-basic.la
683

684 685 686 687 688 689 690 691 692
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

693
test_strv_SOURCES = \
694
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
695
	src/specifier.c
696 697 698 699 700 701 702

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

703
systemd_logger_SOURCES = \
704
	src/logger.c \
705 706 707
	src/tcpwrap.c

systemd_logger_LDADD = \
708
	libsystemd-basic.la \
709
	libsystemd-daemon.la \
710
	$(LIBWRAP_LIBS)
711

712
systemd_initctl_SOURCES = \
713
	src/initctl.c \
714
	src/dbus-common.c
715

716 717
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
718 719 720
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
721
	libsystemd-basic.la \
722
	libsystemd-daemon.la \
723 724
	$(DBUS_LIBS)

725 726 727 728 729 730 731 732 733 734 735 736 737 738 739
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)

740 741 742 743 744 745 746 747 748
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

749
systemd_shutdownd_SOURCES = \
750
	src/utmp-wtmp.c \
751 752 753 754 755 756
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
757 758
	libsystemd-basic.la \
	libsystemd-daemon.la
759

760 761 762 763 764 765 766 767 768 769 770 771 772
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)

773 774 775 776 777 778
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

779
systemd_modules_load_LDADD = \
780 781
	libsystemd-basic.la

782 783
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
784

785
systemd_tmpfiles_CFLAGS = \
786 787
	$(AM_CFLAGS)

788 789 790
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la

791 792 793 794 795 796 797 798 799 800
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

801 802 803 804 805 806 807 808 809
systemd_sysctl_SOURCES = \
	src/sysctl.c

systemd_sysctl_CFLAGS = \
	$(AM_CFLAGS)

systemd_sysctl_LDADD = \
	libsystemd-basic.la

810 811 812 813 814 815 816 817 818
systemd_binfmt_SOURCES = \
	src/binfmt.c

systemd_binfmt_CFLAGS = \
	$(AM_CFLAGS)

systemd_binfmt_LDADD = \
	libsystemd-basic.la

819 820 821