Makefile.am 45.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 21
SUBDIRS = po

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

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

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

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

71 72 73 74 75 76
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
77 78 79 80 81 82
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
83 84 85 86 87 88
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
89 90 91 92 93 94
if TARGET_MANDRIVA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
Chris E Ferron's avatar
Chris E Ferron committed
95 96 97 98 99 100
if TARGET_MEEGO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
Koen Kooi's avatar
Koen Kooi committed
101 102 103 104 105 106
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
107 108 109 110 111
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
endif
112
endif
113
endif
114
endif
Chris E Ferron's avatar
Chris E Ferron committed
115
endif
Koen Kooi's avatar
Koen Kooi committed
116
endif
117

118
rootbin_PROGRAMS = \
119
	systemd \
120
	systemctl \
121
        systemd-loginctl \
122
	systemd-notify \
123
	systemd-ask-password \
124
	systemd-tty-ask-password-agent \
125
	systemd-tmpfiles \
126
	systemd-machine-id-setup
127

128
bin_PROGRAMS = \
129
	systemd-cgls \
130
	systemd-stdio-bridge \
131
	systemd-nspawn
132

133
dist_bin_SCRIPTS = \
134
	src/systemd-analyze
135

136 137
if HAVE_GTK
bin_PROGRAMS += \
138
	systemadm \
139
	systemd-gnome-ask-password-agent
140
endif
141

142
rootlibexec_PROGRAMS = \
143
	systemd-logger \
144
	systemd-cgroups-agent \
145
	systemd-initctl \
146
	systemd-update-utmp \
147
	systemd-random-seed \
148
	systemd-shutdownd \
149
	systemd-shutdown \
150
	systemd-modules-load \
151
	systemd-remount-api-vfs \
152
	systemd-kmsg-syslogd \
153
	systemd-vconsole-setup \
154 155
	systemd-reply-password \
	systemd-readahead-collect \
156
	systemd-readahead-replay \
157 158
	systemd-user-sessions \
	systemd-fsck \
159
	systemd-quotacheck \
160
	systemd-timestamp \
161
	systemd-ac-power \
162
	systemd-detect-virt \
163
	systemd-sysctl \
164
        systemd-hostnamed \
165 166
        systemd-localed \
        systemd-timedated \
167 168
        systemd-logind \
        systemd-uaccess
169

170 171 172 173 174
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

175
systemgenerator_PROGRAMS = \
176
	systemd-getty-generator
177

178 179 180 181
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

182
systemgenerator_PROGRAMS += \
183
	systemd-cryptsetup-generator
184
endif
185

186 187
noinst_PROGRAMS = \
	test-engine \
188
	test-job-type \
189
	test-ns \
190
	test-loopback \
191
	test-hostname \
192
	test-daemon \
193
	test-cgroup \
194 195
	test-env-replace \
	test-strv
196 197 198 199 200

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
201

202
dist_pkgsysconf_DATA = \
203 204 205
	src/system.conf \
        src/user.conf \
        src/systemd-logind.conf
206

207
dist_dbuspolicy_DATA = \
208
	src/org.freedesktop.systemd1.conf \
209 210
        src/org.freedesktop.hostname1.conf \
        src/org.freedesktop.locale1.conf \
211 212
        src/org.freedesktop.timedate1.conf \
        src/org.freedesktop.login1.conf
213

214
dist_dbussystemservice_DATA = \
215
	src/org.freedesktop.systemd1.service \
216 217
        src/org.freedesktop.hostname1.service \
        src/org.freedesktop.locale1.service \
218 219
        src/org.freedesktop.timedate1.service \
        src/org.freedesktop.login1.service
220

221
dist_udevrules_DATA = \
222 223
        src/70-uaccess.rules \
        src/71-seat.rules \
224
	src/99-systemd.rules
225

226 227 228
nodist_udevrules_DATA = \
        src/73-seat-late.rules

229
dbusinterface_DATA = \
230 231 232 233 234
	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 \
235
	org.freedesktop.systemd1.Timer.xml \
236 237 238 239 240
	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 \
241
	org.freedesktop.systemd1.Swap.xml \
242 243 244 245
	org.freedesktop.systemd1.Path.xml \
        org.freedesktop.hostname1.xml \
        org.freedesktop.locale1.xml \
        org.freedesktop.timedate1.xml
246

247
dist_bashcompletion_DATA = \
248
	src/systemctl-bash-completion.sh
249

250 251 252 253
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

254 255
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
256
	tmpfiles.d/legacy.conf
257 258
endif

259
dist_systemunit_DATA = \
260 261
	units/graphical.target \
	units/multi-user.target \
262
	units/emergency.service \
263
	units/emergency.target \
264
	units/sysinit.target \
265
	units/basic.target \
266 267
	units/getty.target \
	units/halt.target \
268
	units/kexec.target \
269
	units/local-fs.target \
Lennart Poettering's avatar
Lennart Poettering committed
270
	units/remote-fs.target \
271
	units/cryptsetup.target \
272 273
	units/network.target \
	units/nss-lookup.target \
274
	units/mail-transfer-agent.target \
275
	units/http-daemon.target \
276 277 278
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
279
	units/rpcbind.target \
280
	units/time-sync.target \
281
	units/shutdown.target \
282
	units/final.target \
283
	units/umount.target \
284 285 286
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
287
	units/systemd-initctl.socket \
288
	units/systemd-logger.socket \
289
	units/systemd-shutdownd.socket \
290
	units/syslog.socket \
291 292 293 294 295 296
	units/dev-hugepages.automount \
	units/dev-hugepages.mount \
	units/dev-mqueue.automount \
	units/dev-mqueue.mount \
	units/sys-kernel-debug.automount \
	units/sys-kernel-debug.mount \
297 298
	units/sys-kernel-security.automount \
	units/sys-kernel-security.mount \
299
	units/var-run.mount \
300
	units/media.mount \
301
	units/remount-rootfs.service \
302
	units/printer.target \
303
	units/sound.target \
304
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
305
	units/smartcard.target \
306
	units/systemd-readahead-done.timer \
307
	units/systemd-tmpfiles-clean.timer \
308
	units/quotaon.service \
309
	units/systemd-ask-password-wall.path \
310 311
	units/systemd-ask-password-console.path \
	units/syslog.target
312

313 314 315 316 317
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

318 319 320 321 322 323
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

324
nodist_systemunit_DATA = \
325
	units/getty@.service \
326
	units/serial-getty@.service \
327
	units/console-shell.service \
328
	units/systemd-initctl.service \
329
	units/systemd-logger.service \
330
	units/systemd-shutdownd.service \
331
	units/systemd-hostnamed.service \
332 333
	units/systemd-localed.service \
	units/systemd-timedated.service \
334
	units/systemd-logind.service \
335
	units/systemd-kmsg-syslogd.service \
336
	units/systemd-modules-load.service \
337
	units/systemd-vconsole-setup.service \
338
	units/systemd-remount-api-vfs.service \
339 340
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
341 342
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
343 344
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
345
	units/systemd-readahead-done.service \
346 347
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
348
	units/systemd-user-sessions.service \
349
	units/systemd-ask-password-wall.service \
350
	units/systemd-ask-password-console.service \
351
	units/systemd-sysctl.service \
352 353 354
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
355 356
	units/kexec.service \
	units/fsck@.service \
357
	units/fsck-root.service \
358
	units/quotacheck.service \
359 360
	units/rescue.service \
        units/user@.service
361

362 363 364 365 366
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

367 368 369
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
370

371 372
nodist_userunit_DATA = \
	units/user/exit.service
373

374
EXTRA_DIST = \
375
	units/getty@.service.m4 \
376
	units/serial-getty@.service.m4 \
377
	units/console-shell.service.m4 \
378
	units/rescue.service.m4 \
379 380
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
381
	units/systemd-shutdownd.service.in \
382
	units/systemd-hostnamed.service.in \
383 384
	units/systemd-localed.service.in \
	units/systemd-timedated.service.in \
385
	units/systemd-logind.service.in \
386
	units/systemd-kmsg-syslogd.service.in \
387
	units/systemd-modules-load.service.in \
388
	units/systemd-vconsole-setup.service.in \
389
	units/systemd-remount-api-vfs.service.in \
390 391
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
392 393
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
394 395
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
396
	units/systemd-readahead-done.service.in \
397 398
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
399
	units/systemd-user-sessions.service.in \
400
	units/systemd-ask-password-wall.service.in \
401
	units/systemd-ask-password-console.service.in \
402
	units/systemd-sysctl.service.in \
403 404 405
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
406
	units/kexec.service.in \
407
	units/user/exit.service.in \
408 409
	units/fsck@.service.in \
	units/fsck-root.service.in \
410
	units/quotacheck.service.in \
411
        units/user@.service.in \
412
	systemd.pc.in \
413
	introspect.awk \
414
        src/73-seat-late.rules.in
415

416 417 418 419 420
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

421 422 423 424
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
425 426 427
	units/fedora/halt-local.service
endif

428 429 430 431 432 433 434
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

435 436 437 438 439
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

440 441 442 443 444 445
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
endif

446 447 448 449 450
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
451
	units/plymouth-quit-wait.service \
452 453 454
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
455 456 457 458 459 460 461 462
	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
463 464
endif

465 466
dist_doc_DATA = \
	README \
467 468
	LICENSE \
	DISTRO_PORTING \
469
	src/sd-daemon.h \
470 471 472
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
473

474 475 476
pkgconfigdata_DATA = \
	systemd.pc

477 478
# Passed through intltool only
polkitpolicy_in_files = \
479 480 481 482 483
        src/org.freedesktop.hostname1.policy.in \
        src/org.freedesktop.locale1.policy.in \
        src/org.freedesktop.timedate1.policy.in \
        src/org.freedesktop.login1.policy.in

484 485 486 487 488 489
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
        $(polkitpolicy_in_files:.policy.in=.policy) \
490
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
491 492 493 494 495

EXTRA_DIST += \
        $(polkitpolicy_in_files) \
        $(polkitpolicy_in_in_files)

496
@INTLTOOL_POLICY_RULE@
497

498 499
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
500 501
	libsystemd-core.la \
	libsystemd-daemon.la
502 503

libsystemd_basic_la_SOURCES = \
504
	src/util.c \
505
	src/label.c \
506 507 508 509 510 511
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
512 513
	src/ratelimit.c \
	src/exit-status.c
514

515 516 517 518 519 520 521
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

522
libsystemd_core_la_SOURCES = \
523
	src/unit.c \
524 525
	src/job.c \
	src/manager.c \
526
	src/path-lookup.c \
527 528 529 530 531 532 533 534 535 536
	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 \
537
	src/path.c \
538 539
	src/load-dropin.c \
	src/execute.c \
540
	src/utmp-wtmp.c \
541 542 543 544
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
545 546
	src/dbus-service.c \
	src/dbus-socket.c \
547
	src/dbus-timer.c \
548 549 550 551 552 553 554
	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 \
555
	src/dbus-path.c \
556 557 558
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
559
	src/selinux-setup.c \
560
	src/loopback-setup.c \
561
	src/kmod-setup.c \
562
	src/locale-setup.c \
563
	src/machine-id-setup.c \
564 565 566
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
567
	src/namespace.c \
568
	src/tcpwrap.c \
569
	src/cgroup-util.c \
570
	src/condition.c \
571 572
        src/dbus-common.c \
        src/sd-daemon.c
573

574 575 576
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
577 578 579 580
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
581 582 583 584 585 586

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
587
	$(PAM_LIBS) \
588
	$(AUDIT_LIBS)
589

590 591 592
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

593 594 595 596
# 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.

597
EXTRA_DIST += \
598 599
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
600
	${libsystemd_daemon_la_SOURCES:.c=.h} \
601
	src/macro.h \
602
	src/def.h \
603 604 605 606 607
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
608
	src/linux/fanotify.h \
609
	src/initreq.h \
610
	src/sd-readahead.h \
611
	src/special.h \
612
	src/dbus-common.h \
613
	src/bus-errors.h \
614
	src/cgroup-show.h \
615
	src/build.h \
616
	src/shutdownd.h \
617
	src/umount.h \
618
	src/readahead-common.h \
619 620 621 622 623 624 625 626 627 628 629
	src/ask-password-api.h \
        src/pager.h \
        src/sysfs-show.h \
        src/polkit.h \
        src/logind.h \
        src/logind-device.h \
        src/logind-seat.h \
        src/logind-session.h \
        src/logind-user.h \
        src/logind-acl.h \
        src/dbus-loop.h
630 631

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
632
	man/systemd.1 \
633 634
	man/systemctl.1 \
	man/systemadm.1 \
635
	man/systemd-cgls.1 \
636
	man/systemd-nspawn.1 \
637
	man/systemd-tmpfiles.8 \
638
	man/systemd-notify.1 \
639
	man/sd_notify.3 \
640
	man/sd_readahead.3 \
641 642 643
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
644 645
	man/systemd.unit.5 \
	man/systemd.service.5 \
646
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
647
	man/systemd.mount.5 \
648
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
649
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
650
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
651
	man/systemd.path.5 \
652
	man/systemd.target.5 \
653
	man/systemd.device.5 \
654
	man/systemd.snapshot.5 \
655
	man/systemd.exec.5 \
656
	man/daemon.7 \
657
	man/sd-daemon.7 \
658
	man/sd-readahead.7 \
659
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
660 661 662
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
663
	man/pam_systemd.8 \
664
	man/systemd.conf.5 \
665
	man/systemd-logind.conf.5 \
666
	man/tmpfiles.d.5 \
667
	man/hostname.5 \
668
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
669
	man/vconsole.conf.5 \
670
	man/locale.conf.5 \
671
	man/os-release.5 \
672
        man/machine-info.5 \
673
	man/modules-load.d.5 \
674
	man/sysctl.d.5 \
675 676
        man/systemd-ask-password.1 \
        man/systemd-loginctl.1
677

678 679 680 681 682
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702
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)
703 704

nodist_man_MANS = \
705
	man/systemd.special.7
706

707 708 709 710 711 712
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)}}}}}

713
dist_noinst_DATA = \
714
	${XML_FILES:.xml=.html}
715

716
nodist_noinst_DATA = \
717
	${XML_IN_FILES:.xml.in=.html}
718 719

EXTRA_DIST += \
720 721 722 723
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
724

725
systemd_SOURCES = \
726
	src/main.c
727

728 729
systemd_CFLAGS = \
	$(AM_CFLAGS) \
730
	$(DBUS_CFLAGS) \
731
	$(UDEV_CFLAGS)
732 733

systemd_LDADD = \
734
	libsystemd-core.la
735 736

test_engine_SOURCES = \
737
	src/test-engine.c
738

739
test_engine_CFLAGS = $(systemd_CFLAGS)
740 741 742
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
743
	src/test-job-type.c
744

745
test_job_type_CFLAGS = $(systemd_CFLAGS)
746 747
test_job_type_LDADD = $(systemd_LDADD)

748
test_ns_SOURCES = \
749
	src/test-ns.c
750

751
test_ns_CFLAGS = $(systemd_CFLAGS)
752 753
test_ns_LDADD = $(systemd_LDADD)

754
test_loopback_SOURCES = \
755 756
	src/test-loopback.c \
	src/loopback-setup.c
757

758 759 760
test_loopback_LDADD = \
	libsystemd-basic.la

761 762 763 764 765 766 767
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

768
test_daemon_SOURCES = \
769
	src/test-daemon.c
770

771
test_daemon_LDADD = \
772 773
	libsystemd-basic.la \
	libsystemd-daemon.la
774

775 776 777 778 779
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
780
	$(AM_CFLAGS)
781 782

test_cgroup_LDADD = \
783
	libsystemd-basic.la
784

785 786 787 788 789 790 791 792 793
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

794
test_strv_SOURCES = \
795
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
796
	src/specifier.c
797 798 799 800 801 802 803

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

804
systemd_logger_SOURCES = \