Makefile.am 44.5 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 415
	src/org.freedesktop.systemd1.policy.in \
        src/73-seat-late.rules.in
416

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

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

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

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

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

460 461
dist_doc_DATA = \
	README \
462 463
	LICENSE \
	DISTRO_PORTING \
464
	src/sd-daemon.h \
465 466 467
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
468

469 470 471
pkgconfigdata_DATA = \
	systemd.pc

472
nodist_polkitpolicy_DATA = \
473 474
	src/org.freedesktop.systemd1.policy

475 476 477 478 479 480 481 482
dist_polkitpolicy_in_files = \
        src/org.freedesktop.hostname1.policy.in \
        src/org.freedesktop.locale1.policy.in \
        src/org.freedesktop.timedate1.policy.in \
        src/org.freedesktop.login1.policy.in

@INTLTOOL_POLICY_RULE@
polkitpolicy_DATA = $(dist_polkitpolicy_in_files:.policy.in=.policy)
483

484 485
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
486 487
	libsystemd-core.la \
	libsystemd-daemon.la
488 489

libsystemd_basic_la_SOURCES = \
490
	src/util.c \
491
	src/label.c \
492 493 494 495 496 497
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
498 499
	src/ratelimit.c \
	src/exit-status.c
500

501 502 503 504 505 506 507
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

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

560 561 562
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
563 564 565 566
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
567 568 569 570 571 572

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
573
	$(PAM_LIBS) \
574
	$(AUDIT_LIBS)
575

576 577 578
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

579 580 581 582
# 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.

583
EXTRA_DIST += \
584 585
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
586
	${libsystemd_daemon_la_SOURCES:.c=.h} \
587
	src/macro.h \
588
	src/def.h \
589 590 591 592 593
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
594
	src/linux/fanotify.h \
595
	src/initreq.h \
596
	src/sd-readahead.h \
597
	src/special.h \
598
	src/dbus-common.h \
599
	src/bus-errors.h \
600
	src/cgroup-show.h \
601
	src/build.h \
602
	src/shutdownd.h \
603
	src/umount.h \
604 605
	src/readahead-common.h \
	src/ask-password-api.h
606 607

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

653 654 655 656 657
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677
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)
678 679

nodist_man_MANS = \
680
	man/systemd.special.7
681

682 683 684 685 686 687
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)}}}}}

688
dist_noinst_DATA = \
689
	${XML_FILES:.xml=.html}
690

691
nodist_noinst_DATA = \
692
	${XML_IN_FILES:.xml.in=.html}
693 694

EXTRA_DIST += \
695 696 697 698
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
699

700
systemd_SOURCES = \
701
	src/main.c
702

703 704
systemd_CFLAGS = \
	$(AM_CFLAGS) \
705
	$(DBUS_CFLAGS) \
706
	$(UDEV_CFLAGS)
707 708

systemd_LDADD = \
709
	libsystemd-core.la
710 711

test_engine_SOURCES = \
712
	src/test-engine.c
713

714
test_engine_CFLAGS = $(systemd_CFLAGS)
715 716 717
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
718
	src/test-job-type.c
719

720
test_job_type_CFLAGS = $(systemd_CFLAGS)
721 722
test_job_type_LDADD = $(systemd_LDADD)

723
test_ns_SOURCES = \
724
	src/test-ns.c
725

726
test_ns_CFLAGS = $(systemd_CFLAGS)
727 728
test_ns_LDADD = $(systemd_LDADD)

729
test_loopback_SOURCES = \
730 731
	src/test-loopback.c \
	src/loopback-setup.c
732

733 734 735
test_loopback_LDADD = \
	libsystemd-basic.la

736 737 738 739 740 741 742
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

743
test_daemon_SOURCES = \
744
	src/test-daemon.c
745

746
test_daemon_LDADD = \
747 748
	libsystemd-basic.la \
	libsystemd-daemon.la
749

750 751 752 753 754
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
755
	$(AM_CFLAGS)
756 757

test_cgroup_LDADD = \
758
	libsystemd-basic.la
759

760 761 762 763 764 765 766 767 768
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

769
test_strv_SOURCES = \
770
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
771
	src/specifier.c
772 773 774 775 776 777 778

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

779
systemd_logger_SOURCES = \
780
	src/logger.c \
781 782 783
	src/tcpwrap.c

systemd_logger_LDADD = \
784
	libsystemd-basic.la \