Makefile.am 39.6 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=$(prefix)/lib/systemd/user
34
tmpfilesdir=$(sysconfdir)/tmpfiles.d
35
usergeneratordir=$(pkglibexecdir)/user-generators
36 37 38 39 40

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
41 42
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
43
systemunitdir=$(rootdir)/lib/systemd/system
44

45
AM_CPPFLAGS = \
46
	-include $(top_builddir)/config.h \
47
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
48
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
49
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
50
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
51
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
52 53 54
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
55
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
56
	-DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
57
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
58
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
59
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
60
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
61
	-DRUNTIME_DIR=\"/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 92
if TARGET_MANDRIVA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
93 94 95 96 97
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
endif
98
endif
99
endif
100
endif
101

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

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

116
dist_bin_SCRIPTS = \
117
	src/systemd-analyze
118

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

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

150
systemgenerator_PROGRAMS = \
151
	systemd-getty-generator
152

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

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

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

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
176

177 178 179
dist_pkgsysconf_DATA = \
	src/system.conf

180
dist_dbuspolicy_DATA = \
181 182
	src/org.freedesktop.systemd1.conf \
        src/org.freedesktop.hostname1.conf
183

184
dist_dbussystemservice_DATA = \
185 186
	src/org.freedesktop.systemd1.service \
        src/org.freedesktop.hostname1.service
187

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

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

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

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

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

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

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

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

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

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

324
EXTRA_DIST = \
325
	units/getty@.service.m4 \
326
	units/serial-getty@.service.m4 \
327
	units/console-shell.service.m4 \
328
	units/remote-fs.target.m4 \
329
	units/rescue.service.m4 \
330 331
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
332
	units/systemd-shutdownd.service.in \
333
	units/systemd-hostnamed.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
nodist_polkitpolicy_DATA = \
415 416
	src/org.freedesktop.systemd1.policy

417 418 419
dist_polkitpolicy_DATA = \
        src/org.freedesktop.hostname1.policy

420 421
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
422 423
	libsystemd-core.la \
	libsystemd-daemon.la
424 425

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

437 438 439 440 441 442 443
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

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

495 496 497
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
498 499 500 501
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
502 503 504 505 506 507

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
508
	$(PAM_LIBS) \
509
	$(AUDIT_LIBS)
510

511 512 513
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

514 515 516 517
# 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.

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

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

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)
608 609

nodist_man_MANS = \
610
	man/systemd.special.7
611

612 613 614 615 616 617
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)}}}}}

618
dist_noinst_DATA = \
619
	${XML_FILES:.xml=.html}
620

621
nodist_noinst_DATA = \
622
	${XML_IN_FILES:.xml.in=.html}
623 624

EXTRA_DIST += \
625 626 627 628
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
629

630
systemd_SOURCES = \
631
	src/main.c
632

633 634
systemd_CFLAGS = \
	$(AM_CFLAGS) \
635
	$(DBUS_CFLAGS) \
636
	$(UDEV_CFLAGS)
637 638

systemd_LDADD = \
639
	libsystemd-core.la
640 641

test_engine_SOURCES = \
642
	src/test-engine.c
643

644
test_engine_CFLAGS = $(systemd_CFLAGS)
645 646 647
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
648
	src/test-job-type.c
649

650
test_job_type_CFLAGS = $(systemd_CFLAGS)
651 652
test_job_type_LDADD = $(systemd_LDADD)

653
test_ns_SOURCES = \
654
	src/test-ns.c
655

656
test_ns_CFLAGS = $(systemd_CFLAGS)
657 658
test_ns_LDADD = $(systemd_LDADD)

659
test_loopback_SOURCES = \
660 661
	src/test-loopback.c \
	src/loopback-setup.c
662

663 664 665
test_loopback_LDADD = \
	libsystemd-basic.la

666 667 668 669 670 671 672
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

673
test_daemon_SOURCES = \
674
	src/test-daemon.c
675

676
test_daemon_LDADD = \
677 678
	libsystemd-basic.la \
	libsystemd-daemon.la
679

680 681 682 683 684
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
685
	$(AM_CFLAGS)
686 687

test_cgroup_LDADD = \
688
	libsystemd-basic.la
689

690 691 692 693 694 695 696 697 698
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

699
test_strv_SOURCES = \
700
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
701
	src/specifier.c
702 703 704 705 706 707 708

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

709
systemd_logger_SOURCES = \
710
	src/logger.c \
711 712 713
	src/tcpwrap.c

systemd_logger_LDADD = \
714
	libsystemd-basic.la \
715
	libsystemd-daemon.la \
716
	$(LIBWRAP_LIBS)
717

718
systemd_initctl_SOURCES = \
719
	src/initctl.c \
720
	src/dbus-common.c
721

722 723
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
724 725 726
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
727
	libsystemd-basic.la \
728
	libsystemd-daemon.la \
729 730
	$(DBUS_LIBS)

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

746 747 748 749 750 751 752 753 754
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

755
systemd_shutdownd_SOURCES = \
756
	src/utmp-wtmp.c \
757 758 759 760 761 762
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
763 764
	libsystemd-basic.la \
	libsystemd-daemon.la
765

766 767 768 769 770 771 772 773 774 775 776 777 778
systemd_hostnamed_SOURCES = \
	src/hostnamed.c \
        src/dbus-common.c

systemd_hostnamed_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

systemd_hostnamed_LDADD = \
	libsystemd-basic.la \
	libsystemd-daemon.la \
	$(DBUS_LIBS)

779 780 781 782 783 784 785 786 787 788 789 790 791
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)

792 793 794 795 796 797
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

798
systemd_modules_load_LDADD = \