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

22 23 24 25
LIBSYSTEMD_LOGIN_CURRENT=0
LIBSYSTEMD_LOGIN_REVISION=0
LIBSYSTEMD_LOGIN_AGE=0

26 27 28 29
LIBSYSTEMD_DAEMON_CURRENT=0
LIBSYSTEMD_DAEMON_REVISION=0
LIBSYSTEMD_DAEMON_AGE=0

30
# Dirs of external packages
31 32 33 34
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
35
udevrulesdir=@udevrulesdir@
36 37
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
38
polkitpolicydir=$(datadir)/polkit-1/actions
39
bashcompletiondir=$(sysconfdir)/bash_completion.d
40

41
# Our own, non-special dirs
42
pkgsysconfdir=$(sysconfdir)/systemd
43
userunitdir=$(prefix)/lib/systemd/user
44
tmpfilesdir=$(prefix)/lib/tmpfiles.d
45
usergeneratordir=$(pkglibexecdir)/user-generators
46
pkgincludedir=$(includedir)/systemd
47 48 49 50 51

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
52 53
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
54
systemunitdir=$(rootdir)/lib/systemd/system
55

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

80 81 82 83 84 85
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
86 87 88 89 90 91
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
92 93 94 95 96 97
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
98 99 100 101 102 103
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
104 105 106 107 108 109
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
110 111 112 113 114 115
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
116 117 118 119 120
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
endif
121
endif
122
endif
123
endif
Chris E Ferron's avatar
Chris E Ferron committed
124
endif
Koen Kooi's avatar
Koen Kooi committed
125
endif
126

127
rootbin_PROGRAMS = \
128
	systemd \
129
	systemctl \
130
        systemd-loginctl \
131
	systemd-notify \
132
	systemd-ask-password \
133
	systemd-tty-ask-password-agent \
134
	systemd-tmpfiles \
135
	systemd-machine-id-setup
136

137
bin_PROGRAMS = \
138
	systemd-cgls \
139
	systemd-stdio-bridge \
140
	systemd-nspawn
141

142
dist_bin_SCRIPTS = \
143
	src/systemd-analyze
144

145 146
if HAVE_GTK
bin_PROGRAMS += \
147
	systemadm \
148
	systemd-gnome-ask-password-agent
149
endif
150

151
rootlibexec_PROGRAMS = \
152
	systemd-logger \
153
	systemd-cgroups-agent \
154
	systemd-initctl \
155
	systemd-update-utmp \
156
	systemd-random-seed \
157
	systemd-shutdownd \
158
	systemd-shutdown \
159
	systemd-modules-load \
160
	systemd-remount-api-vfs \
161
	systemd-kmsg-syslogd \
162
	systemd-vconsole-setup \
163 164
	systemd-reply-password \
	systemd-readahead-collect \
165
	systemd-readahead-replay \
166 167
	systemd-user-sessions \
	systemd-fsck \
168
	systemd-quotacheck \
169
	systemd-timestamp \
170
	systemd-ac-power \
171
	systemd-detect-virt \
172
	systemd-sysctl \
173
        systemd-hostnamed \
174 175
        systemd-localed \
        systemd-timedated \
176 177
        systemd-logind \
        systemd-uaccess
178

179 180 181 182 183
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

184
systemgenerator_PROGRAMS = \
185
	systemd-getty-generator
186

187 188 189 190
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

191
systemgenerator_PROGRAMS += \
192
	systemd-cryptsetup-generator
193
endif
194

195
lib_LTLIBRARIES = \
196
	libsystemd-daemon.la \
197
	libsystemd-login.la
198 199

pkginclude_HEADERS = \
200 201
	src/sd-daemon.h \
	src/sd-login.h
202

203 204
noinst_PROGRAMS = \
	test-engine \
205
	test-job-type \
206
	test-ns \
207
	test-loopback \
208
	test-hostname \
209
	test-daemon \
210
	test-cgroup \
211
	test-env-replace \
212
	test-strv \
213 214
        test-login \
        test-install
215 216 217 218 219

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
220

221
dist_pkgsysconf_DATA = \
222 223 224
	src/system.conf \
        src/user.conf \
        src/systemd-logind.conf
225

226
dist_dbuspolicy_DATA = \
227
	src/org.freedesktop.systemd1.conf \
228 229
        src/org.freedesktop.hostname1.conf \
        src/org.freedesktop.locale1.conf \
230 231
        src/org.freedesktop.timedate1.conf \
        src/org.freedesktop.login1.conf
232

233
dist_dbussystemservice_DATA = \
234
	src/org.freedesktop.systemd1.service \
235 236
        src/org.freedesktop.hostname1.service \
        src/org.freedesktop.locale1.service \
237 238
        src/org.freedesktop.timedate1.service \
        src/org.freedesktop.login1.service
239

240
dist_udevrules_DATA = \
241
        src/70-uaccess.rules \
242
        src/71-seat.rules
243

244
nodist_udevrules_DATA = \
245 246
        src/73-seat-late.rules \
        src/99-systemd.rules
247

248
dbusinterface_DATA = \
249 250 251 252 253
	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 \
254
	org.freedesktop.systemd1.Timer.xml \
255 256 257 258 259
	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 \
260
	org.freedesktop.systemd1.Swap.xml \
261 262 263 264
	org.freedesktop.systemd1.Path.xml \
        org.freedesktop.hostname1.xml \
        org.freedesktop.locale1.xml \
        org.freedesktop.timedate1.xml
265

266
dist_bashcompletion_DATA = \
267
	src/systemctl-bash-completion.sh
268

269 270 271 272
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

273 274
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
275
	tmpfiles.d/legacy.conf
276 277
endif

278
dist_systemunit_DATA = \
279 280
	units/graphical.target \
	units/multi-user.target \
281
	units/emergency.service \
282
	units/emergency.target \
283
	units/sysinit.target \
284
	units/basic.target \
285 286
	units/getty.target \
	units/halt.target \
287
	units/kexec.target \
288
	units/local-fs.target \
Lennart Poettering's avatar
Lennart Poettering committed
289
	units/remote-fs.target \
290
	units/cryptsetup.target \
291 292
	units/network.target \
	units/nss-lookup.target \
293
	units/mail-transfer-agent.target \
294
	units/http-daemon.target \
295 296 297
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
298
	units/rpcbind.target \
299
	units/time-sync.target \
300
	units/shutdown.target \
301
	units/final.target \
302
	units/umount.target \
303 304 305
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
306
	units/systemd-initctl.socket \
307
	units/systemd-logger.socket \
308
	units/systemd-shutdownd.socket \
309
	units/syslog.socket \
310 311 312 313 314 315
	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 \
316 317
	units/sys-kernel-security.automount \
	units/sys-kernel-security.mount \
318
	units/var-run.mount \
319
	units/media.mount \
320
	units/remount-rootfs.service \
321
	units/printer.target \
322
	units/sound.target \
323
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
324
	units/smartcard.target \
325
	units/systemd-readahead-done.timer \
326
	units/systemd-tmpfiles-clean.timer \
327
	units/quotaon.service \
328
	units/systemd-ask-password-wall.path \
329 330
	units/systemd-ask-password-console.path \
	units/syslog.target
331

332 333 334 335 336
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

337 338 339 340 341 342
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

343
nodist_systemunit_DATA = \
344
	units/getty@.service \
345
	units/serial-getty@.service \
346
	units/console-shell.service \
347
	units/systemd-initctl.service \
348
	units/systemd-logger.service \
349
	units/systemd-shutdownd.service \
350
	units/systemd-hostnamed.service \
351 352
	units/systemd-localed.service \
	units/systemd-timedated.service \
353
	units/systemd-logind.service \
354
	units/systemd-kmsg-syslogd.service \
355
	units/systemd-modules-load.service \
356
	units/systemd-vconsole-setup.service \
357
	units/systemd-remount-api-vfs.service \
358 359
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
360 361
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
362 363
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
364
	units/systemd-readahead-done.service \
365 366
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
367
	units/systemd-user-sessions.service \
368
	units/systemd-ask-password-wall.service \
369
	units/systemd-ask-password-console.service \
370
	units/systemd-sysctl.service \
371 372 373
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
374 375
	units/kexec.service \
	units/fsck@.service \
376
	units/fsck-root.service \
377
	units/quotacheck.service \
378 379
	units/rescue.service \
        units/user@.service
380

381 382 383 384 385
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

386 387 388
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
389

390 391
nodist_userunit_DATA = \
	units/user/exit.service
392

393
EXTRA_DIST = \
394
	units/getty@.service.m4 \
395
	units/serial-getty@.service.m4 \
396
	units/console-shell.service.m4 \
397
	units/rescue.service.m4 \
398 399
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
400
	units/systemd-shutdownd.service.in \
401
	units/systemd-hostnamed.service.in \
402 403
	units/systemd-localed.service.in \
	units/systemd-timedated.service.in \
404
	units/systemd-logind.service.in \
405
	units/systemd-kmsg-syslogd.service.in \
406
	units/systemd-modules-load.service.in \
407
	units/systemd-vconsole-setup.service.in \
408
	units/systemd-remount-api-vfs.service.in \
409 410
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
411 412
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
413 414
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
415
	units/systemd-readahead-done.service.in \
416 417
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
418
	units/systemd-user-sessions.service.in \
419
	units/systemd-ask-password-wall.service.in \
420
	units/systemd-ask-password-console.service.in \
421
	units/systemd-sysctl.service.in \
422 423 424
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
425
	units/kexec.service.in \
426
	units/user/exit.service.in \
427 428
	units/fsck@.service.in \
	units/fsck-root.service.in \
429
	units/quotacheck.service.in \
Kay Sievers's avatar
Kay Sievers committed
430
	units/user@.service.in \
431
	systemd.pc.in \
Kay Sievers's avatar
Kay Sievers committed
432 433 434 435
	libsystemd-daemon.pc.in \
	libsystemd-login.pc.in \
	src/libsystemd-daemon.sym \
	src/libsystemd-login.sym \
436
	introspect.awk \
437 438
	src/73-seat-late.rules.in \
        src/99-systemd.rules.in
439

440 441 442 443 444
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

445 446 447 448
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
449 450 451
	units/fedora/halt-local.service
endif

452 453 454 455 456 457 458
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

459 460 461 462 463
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

464 465 466 467 468 469
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
endif

470 471 472 473 474
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
475
	units/plymouth-quit-wait.service \
476 477 478
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
479 480 481 482 483 484 485 486
	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
487 488
endif

489 490
dist_doc_DATA = \
	README \
491 492
	LICENSE \
	DISTRO_PORTING \
493
	src/sd-daemon.h \
494 495 496
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
497

498
pkgconfigdata_DATA = \
499
	systemd.pc \
500
        libsystemd-daemon.pc \
501
        libsystemd-login.pc
502

503 504
# Passed through intltool only
polkitpolicy_in_files = \
505 506 507 508 509
        src/org.freedesktop.hostname1.policy.in \
        src/org.freedesktop.locale1.policy.in \
        src/org.freedesktop.timedate1.policy.in \
        src/org.freedesktop.login1.policy.in

510 511 512 513 514 515
# 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) \
516
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
517 518 519 520 521

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

522
@INTLTOOL_POLICY_RULE@
523

524 525
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
526
	libsystemd-core.la
527 528

libsystemd_basic_la_SOURCES = \
529
	src/util.c \
530
	src/label.c \
531 532 533 534 535 536
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
537 538
	src/ratelimit.c \
	src/exit-status.c
539

540 541 542 543 544 545 546
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

547
libsystemd_core_la_SOURCES = \
548
	src/unit.c \
549 550
	src/job.c \
	src/manager.c \
551
	src/path-lookup.c \
552 553 554 555 556 557 558 559 560 561
	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 \
562
	src/path.c \
563 564
	src/load-dropin.c \
	src/execute.c \
565
	src/utmp-wtmp.c \
566 567 568 569
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
570 571
	src/dbus-service.c \
	src/dbus-socket.c \
572
	src/dbus-timer.c \
573 574 575 576 577 578 579
	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 \
580
	src/dbus-path.c \
581 582 583
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
584
	src/selinux-setup.c \
585
	src/loopback-setup.c \
586
	src/kmod-setup.c \
587
	src/locale-setup.c \
588
	src/machine-id-setup.c \
589 590 591
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
592
	src/namespace.c \
593
	src/tcpwrap.c \
594
	src/cgroup-util.c \
595
	src/condition.c \
596
        src/dbus-common.c \
597 598
        src/sd-daemon.c \
        src/install.c
599

600 601 602
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
603 604 605 606
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
607 608 609 610 611 612

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
613
	$(PAM_LIBS) \
614
	$(AUDIT_LIBS)
615

616 617 618 619
# 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.

620
EXTRA_DIST += \
621 622
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
623
	${libsystemd_daemon_la_SOURCES:.c=.h} \
624
	src/macro.h \
625
	src/def.h \
626 627 628 629 630
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
631
	src/linux/fanotify.h \
632
	src/initreq.h \
633
	src/sd-readahead.h \
634
	src/special.h \
635
	src/dbus-common.h \
636
	src/bus-errors.h \
637
	src/cgroup-show.h \
638
	src/build.h \
639
	src/shutdownd.h \
640
	src/umount.h \
641
	src/readahead-common.h \
642 643 644 645 646 647 648 649 650 651 652
	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
653 654

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
655
	man/systemd.1 \
656 657
	man/systemctl.1 \
	man/systemadm.1 \
658
	man/systemd-cgls.1 \
659
	man/systemd-nspawn.1 \
660
	man/systemd-tmpfiles.8 \
661
	man/systemd-notify.1 \
662
	man/sd_notify.3 \
663
	man/sd_readahead.3 \
664 665 666
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
667 668
	man/systemd.unit.5 \
	man/systemd.service.5 \
669
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
670
	man/systemd.mount.5 \
671
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
672
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
673
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
674
	man/systemd.path.5 \
675
	man/systemd.target.5 \
676
	man/systemd.device.5 \
677
	man/systemd.snapshot.5 \
678
	man/systemd.exec.5 \
679
	man/daemon.7 \
680
	man/sd-daemon.7 \
681
	man/sd-readahead.7 \
682
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
683 684 685
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
686
	man/pam_systemd.8 \
687
	man/systemd.conf.5 \
688
	man/systemd-logind.conf.5 \
689
	man/tmpfiles.d.5 \
690
	man/hostname.5 \
691
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
692
	man/vconsole.conf.5 \
693
	man/locale.conf.5 \
694
	man/os-release.5 \
695
        man/machine-info.5 \
696
	man/modules-load.d.5 \
697
	man/sysctl.d.5 \
698 699
        man/systemd-ask-password.1 \
        man/systemd-loginctl.1
700

701 702 703 704 705
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725
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)
726 727

nodist_man_MANS = \
728
	man/systemd.special.7
729

730 731 732 733 734 735
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)}}}}}

736
dist_noinst_DATA = \
737
	${XML_FILES:.xml=.html}
738

739
nodist_noinst_DATA = \
740
	${XML_IN_FILES:.xml.in=.html}
741 742

EXTRA_DIST += \
743 744 745 746
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
747

748
systemd_SOURCES = \
749
	src/main.c
750

751 752
systemd_CFLAGS = \
	$(AM_CFLAGS) \
753
	$(DBUS_CFLAGS) \
754
	$(UDEV_CFLAGS)
755 756

systemd_LDADD = \
757
	libsystemd-core.la
758 759

test_engine_SOURCES = \
760
	src/test-engine.c
761

762
test_engine_CFLAGS = $(systemd_CFLAGS)
763 764 765
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
766
	src/test-job-type.c
767

768
test_job_type_CFLAGS = $(systemd_CFLAGS)
769 770
test_job_type_LDADD = $(systemd_LDADD)

771
test_ns_SOURCES = \
772
	src/test-ns.c
773

774
test_ns_CFLAGS = $(systemd_CFLAGS)
775 776
test_ns_LDADD = $(systemd_LDADD)

777
test_loopback_SOURCES = \
778 779
	src/test-loopback.c \
	src/loopback-setup.c
780

781 782 783
test_loopback_LDADD = \
	libsystemd-basic.la

784 785 786 787 788 789 790
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

791
test_daemon_SOURCES = \
792
	src/test-daemon.c