Makefile.am 43.8 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
dist_pkgsysconf_DATA = \
200 201 202
	src/system.conf \
        src/user.conf \
        src/systemd-logind.conf
203

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

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

218
dist_udevrules_DATA = \
219 220
        src/70-uaccess.rules \
        src/71-seat.rules \
221
	src/99-systemd.rules
222

223 224 225
nodist_udevrules_DATA = \
        src/73-seat-late.rules

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

244
dist_bashcompletion_DATA = \
245
	src/systemctl-bash-completion.sh
246

247 248 249 250
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

251 252
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
253
	tmpfiles.d/legacy.conf
254 255
endif

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

310 311 312 313 314
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

315 316 317 318 319 320
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

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

358 359 360 361 362
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

363 364 365
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
366

367 368
nodist_userunit_DATA = \
	units/user/exit.service
369

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

412 413 414 415 416
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

417 418 419 420
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
421 422 423
	units/fedora/halt-local.service
endif

424 425 426 427 428 429 430
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

431 432 433 434 435
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

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

455 456
dist_doc_DATA = \
	README \
457 458
	LICENSE \
	DISTRO_PORTING \
459
	src/sd-daemon.h \
460 461 462
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
463

464 465 466
pkgconfigdata_DATA = \
	systemd.pc

467
nodist_polkitpolicy_DATA = \
468 469
	src/org.freedesktop.systemd1.policy

470
dist_polkitpolicy_DATA = \
471 472
        src/org.freedesktop.hostname1.policy \
        src/org.freedesktop.locale1.policy \
473 474
        src/org.freedesktop.timedate1.policy \
        src/org.freedesktop.login1.policy
475

476 477
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
478 479
	libsystemd-core.la \
	libsystemd-daemon.la
480 481

libsystemd_basic_la_SOURCES = \
482
	src/util.c \
483
	src/label.c \
484 485 486 487 488 489
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
490 491
	src/ratelimit.c \
	src/exit-status.c
492

493 494 495 496 497 498 499
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

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

552 553 554
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
555 556 557 558
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
559 560 561 562 563 564

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
565
	$(PAM_LIBS) \
566
	$(AUDIT_LIBS)
567

568 569 570
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

571 572 573 574
# 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.

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

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

645 646 647 648 649
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
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)
670 671

nodist_man_MANS = \
672
	man/systemd.special.7
673

674 675 676 677 678 679
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)}}}}}

680
dist_noinst_DATA = \
681
	${XML_FILES:.xml=.html}
682

683
nodist_noinst_DATA = \
684
	${XML_IN_FILES:.xml.in=.html}
685 686

EXTRA_DIST += \
687 688 689 690
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
691

692
systemd_SOURCES = \
693
	src/main.c
694

695 696
systemd_CFLAGS = \
	$(AM_CFLAGS) \
697
	$(DBUS_CFLAGS) \
698
	$(UDEV_CFLAGS)
699 700

systemd_LDADD = \
701
	libsystemd-core.la
702 703

test_engine_SOURCES = \
704
	src/test-engine.c
705

706
test_engine_CFLAGS = $(systemd_CFLAGS)
707 708 709
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
710
	src/test-job-type.c
711

712
test_job_type_CFLAGS = $(systemd_CFLAGS)
713 714
test_job_type_LDADD = $(systemd_LDADD)

715
test_ns_SOURCES = \
716
	src/test-ns.c
717

718
test_ns_CFLAGS = $(systemd_CFLAGS)
719 720
test_ns_LDADD = $(systemd_LDADD)

721
test_loopback_SOURCES = \
722 723
	src/test-loopback.c \
	src/loopback-setup.c
724

725 726 727
test_loopback_LDADD = \
	libsystemd-basic.la

728 729 730 731 732 733 734
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

735
test_daemon_SOURCES = \
736
	src/test-daemon.c
737

738
test_daemon_LDADD = \
739 740
	libsystemd-basic.la \
	libsystemd-daemon.la
741

742 743 744 745 746
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
747
	$(AM_CFLAGS)
748 749

test_cgroup_LDADD = \
750
	libsystemd-basic.la
751

752 753 754 755 756 757 758 759 760
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

761
test_strv_SOURCES = \
762
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
763
	src/specifier.c
764 765 766 767 768 769 770

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

771
systemd_logger_SOURCES = \
772
	src/logger.c \
773 774 775
	src/tcpwrap.c

systemd_logger_LDADD = \
776
	libsystemd-basic.la \
777
	libsystemd-daemon.la \
778
	$(LIBWRAP_LIBS)
779

780
systemd_initctl_SOURCES = \
781
	src/initctl.c \
782
	src/dbus-common.c
783

784 785
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
786 787 788
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \