Makefile.am 44.3 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-loginctl \
120
	systemd-notify \
121
	systemd-ask-password \
122
	systemd-tty-ask-password-agent \
123
	systemd-tmpfiles \
124
	systemd-machine-id-setup
125

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

131
dist_bin_SCRIPTS = \
132
	src/systemd-analyze
133

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

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

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

173
systemgenerator_PROGRAMS = \
174
	systemd-getty-generator
175

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

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

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

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
199

200
dist_pkgsysconf_DATA = \
201 202 203
	src/system.conf \
        src/user.conf \
        src/systemd-logind.conf
204

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

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

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

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

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

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

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

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

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

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

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

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

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

365 366 367
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
368

369 370
nodist_userunit_DATA = \
	units/user/exit.service
371

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

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

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

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

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

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

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

467 468 469
pkgconfigdata_DATA = \
	systemd.pc

470
nodist_polkitpolicy_DATA = \
471 472
	src/org.freedesktop.systemd1.policy

473
dist_polkitpolicy_DATA = \
474 475
        src/org.freedesktop.hostname1.policy \
        src/org.freedesktop.locale1.policy \
476 477
        src/org.freedesktop.timedate1.policy \
        src/org.freedesktop.login1.policy
478

479 480
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
481 482
	libsystemd-core.la \
	libsystemd-daemon.la
483 484

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

496 497 498 499 500 501 502
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

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

555 556 557
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
558 559 560 561
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
562 563 564 565 566 567

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
568
	$(PAM_LIBS) \
569
	$(AUDIT_LIBS)
570

571 572 573
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

574 575 576 577
# 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.

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

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

648 649 650 651 652
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

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

nodist_man_MANS = \
675
	man/systemd.special.7
676

677 678 679 680 681 682
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)}}}}}

683
dist_noinst_DATA = \
684
	${XML_FILES:.xml=.html}
685

686
nodist_noinst_DATA = \
687
	${XML_IN_FILES:.xml.in=.html}
688 689

EXTRA_DIST += \
690 691 692 693
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
694

695
systemd_SOURCES = \
696
	src/main.c
697

698 699
systemd_CFLAGS = \
	$(AM_CFLAGS) \
700
	$(DBUS_CFLAGS) \
701
	$(UDEV_CFLAGS)
702 703

systemd_LDADD = \
704
	libsystemd-core.la
705 706

test_engine_SOURCES = \
707
	src/test-engine.c
708

709
test_engine_CFLAGS = $(systemd_CFLAGS)
710 711 712
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
713
	src/test-job-type.c
714

715
test_job_type_CFLAGS = $(systemd_CFLAGS)
716 717
test_job_type_LDADD = $(systemd_LDADD)

718
test_ns_SOURCES = \
719
	src/test-ns.c
720

721
test_ns_CFLAGS = $(systemd_CFLAGS)
722 723
test_ns_LDADD = $(systemd_LDADD)

724
test_loopback_SOURCES = \
725 726
	src/test-loopback.c \
	src/loopback-setup.c
727

728 729 730
test_loopback_LDADD = \
	libsystemd-basic.la

731 732 733 734 735 736 737
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

738
test_daemon_SOURCES = \
739
	src/test-daemon.c
740

741
test_daemon_LDADD = \
742 743
	libsystemd-basic.la \
	libsystemd-daemon.la
744

745 746 747 748 749
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
750
	$(AM_CFLAGS)
751 752

test_cgroup_LDADD = \
753
	libsystemd-basic.la
754

755 756 757 758 759 760 761 762 763
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

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

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

774
systemd_logger_SOURCES = \
775
	src/logger.c \
776 777 778
	src/tcpwrap.c

systemd_logger_LDADD = \
779
	libsystemd-basic.la \
780
	libsystemd-daemon.la \
781
	$(LIBWRAP_LIBS)
782

783
systemd_initctl_SOURCES = \
784
	src/initctl.c \
785
	src/dbus-common.c
786