Makefile.am 43.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=$(prefix)/lib/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
Chris E Ferron's avatar
Chris E Ferron committed
93 94 95 96 97 98
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
99 100 101 102 103 104
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
105 106 107 108 109
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
endif
110
endif
111
endif
112
endif
Chris E Ferron's avatar
Chris E Ferron committed
113
endif
Koen Kooi's avatar
Koen Kooi committed
114
endif
115

116
rootbin_PROGRAMS = \
117
	systemd \
118
	systemctl \
119
	systemd-notify \
120
	systemd-ask-password \
121
	systemd-tty-ask-password-agent \
122
	systemd-tmpfiles \
123
	systemd-machine-id-setup
124

125
bin_PROGRAMS = \
126
	systemd-cgls \
127
	systemd-stdio-bridge \
128
	systemd-nspawn
129

130
dist_bin_SCRIPTS = \
131
	src/systemd-analyze
132

133 134
if HAVE_GTK
bin_PROGRAMS += \
135
	systemadm \
136
	systemd-gnome-ask-password-agent
137
endif
138

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

167 168 169 170 171
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

172
systemgenerator_PROGRAMS = \
173
	systemd-getty-generator
174

175 176 177 178
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

179
systemgenerator_PROGRAMS += \
180
	systemd-cryptsetup-generator
181
endif
182

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

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
198

199 200 201
dist_pkgsysconf_DATA = \
	src/system.conf

202
dist_dbuspolicy_DATA = \
203
	src/org.freedesktop.systemd1.conf \
204 205
        src/org.freedesktop.hostname1.conf \
        src/org.freedesktop.locale1.conf \
206 207
        src/org.freedesktop.timedate1.conf \
        src/org.freedesktop.login1.conf
208

209
dist_dbussystemservice_DATA = \
210
	src/org.freedesktop.systemd1.service \
211 212
        src/org.freedesktop.hostname1.service \
        src/org.freedesktop.locale1.service \
213 214
        src/org.freedesktop.timedate1.service \
        src/org.freedesktop.login1.service
215

216
dist_udevrules_DATA = \
217 218 219
        src/70-uaccess.rules \
        src/71-seat.rules \
        src/73-seat-late.rules \
220
	src/99-systemd.rules
221

222
dbusinterface_DATA = \
223 224 225 226 227
	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 \
228
	org.freedesktop.systemd1.Timer.xml \
229 230 231 232 233
	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 \
234
	org.freedesktop.systemd1.Swap.xml \
235 236 237 238
	org.freedesktop.systemd1.Path.xml \
        org.freedesktop.hostname1.xml \
        org.freedesktop.locale1.xml \
        org.freedesktop.timedate1.xml
239

240
dist_bashcompletion_DATA = \
241
	src/systemctl-bash-completion.sh
242

243 244 245 246
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

247 248
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
249
	tmpfiles.d/legacy.conf
250 251
endif

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

306 307 308 309 310
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

311 312 313 314 315 316
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

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

354 355 356 357 358
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

359 360 361
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
362

363 364
nodist_userunit_DATA = \
	units/user/exit.service
365

366
EXTRA_DIST = \
367
	units/getty@.service.m4 \
368
	units/serial-getty@.service.m4 \
369
	units/console-shell.service.m4 \
370
	units/rescue.service.m4 \
371 372
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
373
	units/systemd-shutdownd.service.in \
374
	units/systemd-hostnamed.service.in \
375 376
	units/systemd-localed.service.in \
	units/systemd-timedated.service.in \
377
	units/systemd-logind.service.in \
378
	units/systemd-kmsg-syslogd.service.in \
379
	units/systemd-modules-load.service.in \
380
	units/systemd-vconsole-setup.service.in \
381
	units/systemd-remount-api-vfs.service.in \
382 383
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
384 385
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
386 387
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
388
	units/systemd-readahead-done.service.in \
389 390
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
391
	units/systemd-user-sessions.service.in \
392
	units/systemd-ask-password-wall.service.in \
393
	units/systemd-ask-password-console.service.in \
394
	units/systemd-sysctl.service.in \
395 396 397
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
398
	units/kexec.service.in \
399
	units/user/exit.service.in \
400 401
	units/fsck@.service.in \
	units/fsck-root.service.in \
402
	units/quotacheck.service.in \
403
	systemd.pc.in \
404
	introspect.awk \
405
	src/org.freedesktop.systemd1.policy.in
406

407 408 409 410 411
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

412 413 414 415
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
416 417 418
	units/fedora/halt-local.service
endif

419 420 421 422 423 424 425
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

426 427 428 429 430
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

431 432 433 434 435
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
436
	units/plymouth-quit-wait.service \
437 438 439
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
440 441 442 443 444 445 446 447
	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
448 449
endif

450 451
dist_doc_DATA = \
	README \
452 453
	LICENSE \
	DISTRO_PORTING \
454
	src/sd-daemon.h \
455 456 457
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
458

459 460 461
pkgconfigdata_DATA = \
	systemd.pc

462
nodist_polkitpolicy_DATA = \
463 464
	src/org.freedesktop.systemd1.policy

465
dist_polkitpolicy_DATA = \
466 467
        src/org.freedesktop.hostname1.policy \
        src/org.freedesktop.locale1.policy \
468 469
        src/org.freedesktop.timedate1.policy \
        src/org.freedesktop.login1.policy
470

471 472
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
473 474
	libsystemd-core.la \
	libsystemd-daemon.la
475 476

libsystemd_basic_la_SOURCES = \
477
	src/util.c \
478
	src/label.c \
479 480 481 482 483 484
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
485 486
	src/ratelimit.c \
	src/exit-status.c
487

488 489 490 491 492 493 494
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

495
libsystemd_core_la_SOURCES = \
496
	src/unit.c \
497 498
	src/job.c \
	src/manager.c \
499
	src/path-lookup.c \
500 501 502 503 504 505 506 507 508 509
	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 \
510
	src/path.c \
511 512
	src/load-dropin.c \
	src/execute.c \
513
	src/utmp-wtmp.c \
514 515 516 517
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
518 519
	src/dbus-service.c \
	src/dbus-socket.c \
520
	src/dbus-timer.c \
521 522 523 524 525 526 527
	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 \
528
	src/dbus-path.c \
529 530 531
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
532
	src/selinux-setup.c \
533
	src/loopback-setup.c \
534
	src/kmod-setup.c \
535
	src/locale-setup.c \
536
	src/machine-id-setup.c \
537 538 539
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
540
	src/namespace.c \
541
	src/tcpwrap.c \
542
	src/cgroup-util.c \
543 544
	src/condition.c \
        src/dbus-common.c
545

546 547 548
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
549 550 551 552
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
553 554 555 556 557 558

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
559
	$(PAM_LIBS) \
560
	$(AUDIT_LIBS)
561

562 563 564
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

565 566 567 568
# 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.

569
EXTRA_DIST += \
570 571
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
572
	${libsystemd_daemon_la_SOURCES:.c=.h} \
573
	src/macro.h \
574
	src/def.h \
575 576 577 578 579
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
580
	src/linux/fanotify.h \
581
	src/initreq.h \
582
	src/sd-readahead.h \
583
	src/special.h \
584
	src/dbus-common.h \
585
	src/bus-errors.h \
586
	src/cgroup-show.h \
587
	src/build.h \
588
	src/shutdownd.h \
589
	src/umount.h \
590 591
	src/readahead-common.h \
	src/ask-password-api.h
592 593

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
594
	man/systemd.1 \
595 596
	man/systemctl.1 \
	man/systemadm.1 \
597
	man/systemd-cgls.1 \
598
	man/systemd-nspawn.1 \
599
	man/systemd-tmpfiles.8 \
600
	man/systemd-notify.1 \
601
	man/sd_notify.3 \
602
	man/sd_readahead.3 \
603 604 605
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
606 607
	man/systemd.unit.5 \
	man/systemd.service.5 \
608
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
609
	man/systemd.mount.5 \
610
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
611
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
612
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
613
	man/systemd.path.5 \
614
	man/systemd.target.5 \
615
	man/systemd.device.5 \
616
	man/systemd.snapshot.5 \
617
	man/systemd.exec.5 \
618
	man/daemon.7 \
619
	man/sd-daemon.7 \
620
	man/sd-readahead.7 \
621
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
622 623 624
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
625
	man/pam_systemd.8 \
626
	man/systemd.conf.5 \
627
	man/tmpfiles.d.5 \
628
	man/hostname.5 \
629
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
630
	man/vconsole.conf.5 \
631
	man/locale.conf.5 \
632
	man/os-release.5 \
633
        man/machine-info.5 \
634
	man/modules-load.d.5 \
635 636
	man/sysctl.d.5 \
        man/systemd-ask-password.1
637

638 639 640 641 642
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662
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)
663 664

nodist_man_MANS = \
665
	man/systemd.special.7
666

667 668 669 670 671 672
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)}}}}}

673
dist_noinst_DATA = \
674
	${XML_FILES:.xml=.html}
675

676
nodist_noinst_DATA = \
677
	${XML_IN_FILES:.xml.in=.html}
678 679

EXTRA_DIST += \
680 681 682 683
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
684

685
systemd_SOURCES = \
686
	src/main.c
687

688 689
systemd_CFLAGS = \
	$(AM_CFLAGS) \
690
	$(DBUS_CFLAGS) \
691
	$(UDEV_CFLAGS)
692 693

systemd_LDADD = \
694
	libsystemd-core.la
695 696

test_engine_SOURCES = \
697
	src/test-engine.c
698

699
test_engine_CFLAGS = $(systemd_CFLAGS)
700 701 702
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
703
	src/test-job-type.c
704

705
test_job_type_CFLAGS = $(systemd_CFLAGS)
706 707
test_job_type_LDADD = $(systemd_LDADD)

708
test_ns_SOURCES = \
709
	src/test-ns.c
710

711
test_ns_CFLAGS = $(systemd_CFLAGS)
712 713
test_ns_LDADD = $(systemd_LDADD)

714
test_loopback_SOURCES = \
715 716
	src/test-loopback.c \
	src/loopback-setup.c
717

718 719 720
test_loopback_LDADD = \
	libsystemd-basic.la

721 722 723 724 725 726 727
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

728
test_daemon_SOURCES = \
729
	src/test-daemon.c
730

731
test_daemon_LDADD = \
732 733
	libsystemd-basic.la \
	libsystemd-daemon.la
734

735 736 737 738 739
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
740
	$(AM_CFLAGS)
741 742

test_cgroup_LDADD = \
743
	libsystemd-basic.la
744

745 746 747 748 749 750 751 752 753
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

754
test_strv_SOURCES = \
755
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
756
	src/specifier.c
757 758 759 760 761 762 763

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

764
systemd_logger_SOURCES = \
765
	src/logger.c \
766 767 768
	src/tcpwrap.c

systemd_logger_LDADD = \
769
	libsystemd-basic.la \
770
	libsystemd-daemon.la \
771
	$(LIBWRAP_LIBS)
772

773
systemd_initctl_SOURCES = \
774
	src/initctl.c \
775
	src/dbus-common.c
776

777 778
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
779 780 781
	$(DB