Makefile.am 62.7 KB
Newer Older
1 2
#  This file is part of systemd.
#
3 4
#  Copyright 2011 Lennart Poettering
#  Copyright 2011 Kay Sievers
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#
#  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

21 22
SUBDIRS = po

23 24 25
LIBSYSTEMD_LOGIN_CURRENT=2
LIBSYSTEMD_LOGIN_REVISION=0
LIBSYSTEMD_LOGIN_AGE=2
26

27
LIBSYSTEMD_DAEMON_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
28
LIBSYSTEMD_DAEMON_REVISION=1
29 30
LIBSYSTEMD_DAEMON_AGE=0

31
LIBSYSTEMD_ID128_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
32
LIBSYSTEMD_ID128_REVISION=2
33 34 35
LIBSYSTEMD_ID128_AGE=0

LIBSYSTEMD_JOURNAL_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
36
LIBSYSTEMD_JOURNAL_REVISION=2
37 38
LIBSYSTEMD_JOURNAL_AGE=0

39
# Dirs of external packages
40 41 42 43
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
44
udevrulesdir=@udevrulesdir@
45 46
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
47
pkgconfiglibdir=$(libdir)/pkgconfig
48
polkitpolicydir=$(datadir)/polkit-1/actions
49
bashcompletiondir=$(sysconfdir)/bash_completion.d
50

51
# Our own, non-special dirs
52
pkgsysconfdir=$(sysconfdir)/systemd
53
userunitdir=$(prefix)/lib/systemd/user
54
tmpfilesdir=$(prefix)/lib/tmpfiles.d
55
sysctldir=$(prefix)/lib/sysctl.d
56
usergeneratordir=$(pkglibexecdir)/user-generators
57
pkgincludedir=$(includedir)/systemd
58 59

# And these are the special ones for /
60 61 62
rootprefix=@rootprefix@
rootbindir=$(rootprefix)/bin
rootlibexecdir=$(rootprefix)/lib/systemd
63 64
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
65
systemunitdir=$(rootprefix)/lib/systemd/system
66

67 68 69 70 71
CLEANFILES =
EXTRA_DIST =
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
72
pkginclude_HEADERS =
73 74
lib_LTLIBRARIES =
pkgconfiglib_DATA =
75
polkitpolicy_in_files =
76
dist_udevrules_DATA =
77

78
AM_CPPFLAGS = \
79
	-include $(top_builddir)/config.h \
80
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
81
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
82
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
83
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
84
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
85 86 87
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
88
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
89
	-DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
90
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
91
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
92
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
93
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
94
	-DROOTPREFIX=\"$(rootprefix)\" \
95
	-DRUNTIME_DIR=\"/run\" \
96
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
97
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
98
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
99
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
100
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
101
	-DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
102
        -DX_SERVER=\"$(bindir)/X\" \
103 104
	-I $(top_srcdir)/src \
	-I $(top_srcdir)/src/readahead \
105
	-I $(top_srcdir)/src/login \
106 107
	-I $(top_srcdir)/src/journal \
	-I $(top_srcdir)/src/systemd
108

109 110 111 112 113 114
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
115 116 117 118 119 120
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
121 122 123 124 125 126
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
127 128 129 130 131 132
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
133 134 135 136 137 138
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
139 140 141 142 143 144
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
145
if TARGET_MAGEIA
146 147 148
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
149
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
Dexter Morgan's avatar
Dexter Morgan committed
150 151 152 153
else
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
154
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
155
endif
156
endif
157
endif
158
endif
159
endif
Chris E Ferron's avatar
Chris E Ferron committed
160
endif
Koen Kooi's avatar
Koen Kooi committed
161
endif
162

163
rootbin_PROGRAMS = \
164
	systemctl \
165
	systemd-notify \
166
	systemd-ask-password \
167
	systemd-tty-ask-password-agent \
168
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
169
	systemd-machine-id-setup
170

171
bin_PROGRAMS = \
172
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
173
	systemd-cgtop \
174
	systemd-stdio-bridge \
175
	systemd-nspawn
176

177
dist_bin_SCRIPTS = \
178
	src/systemd-analyze
179

180 181
if HAVE_GTK
bin_PROGRAMS += \
182
	systemadm \
183
	systemd-gnome-ask-password-agent
184
endif
185

186
rootlibexec_PROGRAMS = \
187
	systemd \
188
	systemd-cgroups-agent \
189
	systemd-initctl \
190
	systemd-update-utmp \
191
	systemd-shutdownd \
192
	systemd-shutdown \
193
	systemd-modules-load \
194
	systemd-remount-api-vfs \
195
	systemd-reply-password \
196
	systemd-fsck \
197
	systemd-timestamp \
198
	systemd-ac-power \
199
	systemd-detect-virt \
Kay Sievers's avatar
Kay Sievers committed
200
	systemd-sysctl
201

202
systemgenerator_PROGRAMS = \
203
	systemd-getty-generator
204

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

217
dist_pkgsysconf_DATA = \
218
	src/system.conf \
219
	src/user.conf
220

221
dist_dbuspolicy_DATA = \
222
	src/org.freedesktop.systemd1.conf
223

224
dist_dbussystemservice_DATA = \
225
	src/org.freedesktop.systemd1.service
226

227
nodist_udevrules_DATA = \
228
	src/99-systemd.rules
229

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

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

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

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

258
dist_systemunit_DATA = \
259 260
	units/graphical.target \
	units/multi-user.target \
261
	units/emergency.service \
262
	units/emergency.target \
263
	units/sysinit.target \
264
	units/basic.target \
265 266
	units/getty.target \
	units/halt.target \
267
	units/kexec.target \
268
	units/local-fs.target \
269
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
270
	units/remote-fs.target \
271
	units/remote-fs-pre.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-shutdownd.socket \
289
	units/syslog.socket \
290 291
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
292
	units/sys-kernel-config.mount \
293
	units/sys-kernel-debug.mount \
294
	units/sys-kernel-security.mount \
295
	units/sys-fs-fuse-connections.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-tmpfiles-clean.timer \
304
	units/quotaon.service \
305
	units/systemd-ask-password-wall.path \
306
	units/systemd-ask-password-console.path \
Kay Sievers's avatar
Kay Sievers committed
307
	units/syslog.target
308

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

314
nodist_systemunit_DATA = \
315
	units/getty@.service \
316
	units/serial-getty@.service \
317
	units/console-shell.service \
318
	units/systemd-initctl.service \
319
	units/systemd-shutdownd.service \
320
	units/systemd-modules-load.service \
321
	units/systemd-remount-api-vfs.service \
322 323
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
324 325
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
326
	units/systemd-ask-password-wall.service \
327
	units/systemd-ask-password-console.service \
328
	units/systemd-sysctl.service \
329 330 331
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
332 333
	units/kexec.service \
	units/fsck@.service \
334
	units/fsck-root.service \
335
	units/rescue.service \
336
	units/user@.service
337

338 339 340
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
341

342 343
nodist_userunit_DATA = \
	units/user/exit.service
344

345
EXTRA_DIST += \
346
	units/getty@.service.m4 \
347
	units/serial-getty@.service.m4 \
348
	units/console-shell.service.m4 \
349
	units/rescue.service.m4 \
350
	units/systemd-initctl.service.in \
351
	units/systemd-shutdownd.service.in \
352
	units/systemd-modules-load.service.in \
353
	units/systemd-remount-api-vfs.service.in \
354 355
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
356 357
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
358
	units/systemd-ask-password-wall.service.in \
359
	units/systemd-ask-password-console.service.in \
360
	units/systemd-sysctl.service.in \
361 362 363
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
364
	units/kexec.service.in \
365
	units/user/exit.service.in \
366 367
	units/fsck@.service.in \
	units/fsck-root.service.in \
Kay Sievers's avatar
Kay Sievers committed
368
	units/user@.service.in \
369
	src/systemd.pc.in \
370
	introspect.awk \
371 372
	src/99-systemd.rules.in \
	man/custom-html.xsl
373

374 375 376 377
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
378
	units/fedora/halt-local.service
379 380
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
381 382
endif

383 384 385 386 387
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
388 389
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
390 391
endif

392 393 394 395 396
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

397 398 399 400
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
401 402
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
403 404
endif

Dexter Morgan's avatar
Dexter Morgan committed
405 406 407 408 409
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
410 411
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
412 413
endif

414 415 416 417 418
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
419
	units/plymouth-quit-wait.service \
420 421 422
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
423 424 425 426 427 428 429 430
	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
431 432
endif

433 434
dist_doc_DATA = \
	README \
435
        NEWS \
436
	LICENSE \
437
	DISTRO_PORTING
438

439
pkgconfigdata_DATA = \
440
	src/systemd.pc
441

442 443 444 445 446
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
447 448
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
449 450

EXTRA_DIST += \
451 452
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
453

454
@INTLTOOL_POLICY_RULE@
455

456 457
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
458
	libsystemd-core.la
459 460

libsystemd_basic_la_SOURCES = \
461
	src/util.c \
462
	src/virt.c \
463
	src/label.c \
464 465 466 467 468 469
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
470
	src/ratelimit.c \
471 472
	src/exit-status.c \
        src/utf8.c
473

474 475 476 477 478
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
479 480
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
481

482
libsystemd_core_la_SOURCES = \
483
	src/unit.c \
484 485
	src/job.c \
	src/manager.c \
486
	src/path-lookup.c \
487 488 489 490 491 492 493 494 495 496
	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 \
497
	src/path.c \
498 499
	src/load-dropin.c \
	src/execute.c \
500
	src/utmp-wtmp.c \
501 502 503 504
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
505 506
	src/dbus-service.c \
	src/dbus-socket.c \
507
	src/dbus-timer.c \
508 509 510 511 512 513 514
	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 \
515
	src/dbus-path.c \
516 517 518
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
519
	src/selinux-setup.c \
520
	src/loopback-setup.c \
521
	src/kmod-setup.c \
522
	src/locale-setup.c \
523
	src/machine-id-setup.c \
524 525 526
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
527
	src/namespace.c \
528
	src/tcpwrap.c \
529
	src/cgroup-util.c \
530
	src/condition.c \
531 532 533 534 535
	src/dbus-common.c \
	src/sd-daemon.c \
	src/install.c \
	src/cgroup-attr.c \
	src/sd-id128.c
536

537
nodist_libsystemd_core_la_SOURCES = \
538 539
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
540

541
EXTRA_DIST += \
542
	src/load-fragment-gperf.gperf.m4
543

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

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

563
# This is needed because automake is buggy in how it generates the
564
# rules for C programs, but not Vala programs.	We therefore can't
565 566
# list the .h files as dependencies if we want make dist to work.

567
EXTRA_DIST += \
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629
	src/util.h \
	src/virt.h \
	src/label.h \
	src/hashmap.h \
	src/set.h \
	src/strv.h \
	src/conf-parser.h \
	src/socket-util.h \
	src/log.h \
	src/ratelimit.h \
	src/exit-status.h \
	src/unit.h \
	src/job.h \
	src/manager.h \
	src/path-lookup.h \
	src/load-fragment.h \
	src/service.h \
	src/automount.h \
	src/mount.h \
	src/swap.h \
	src/device.h \
	src/target.h \
	src/snapshot.h \
	src/socket.h \
	src/timer.h \
	src/path.h \
	src/load-dropin.h \
	src/execute.h \
	src/utmp-wtmp.h \
	src/dbus.h \
	src/dbus-manager.h \
	src/dbus-unit.h \
	src/dbus-job.h \
	src/dbus-service.h \
	src/dbus-socket.h \
	src/dbus-timer.h \
	src/dbus-target.h \
	src/dbus-mount.h \
	src/dbus-automount.h \
	src/dbus-swap.h \
	src/dbus-snapshot.h \
	src/dbus-device.h \
	src/dbus-execute.h \
	src/dbus-path.h \
	src/cgroup.h \
	src/mount-setup.h \
	src/hostname-setup.h \
	src/selinux-setup.h \
	src/loopback-setup.h \
	src/kmod-setup.h \
	src/locale-setup.h \
	src/machine-id-setup.h \
	src/specifier.h \
	src/unit-name.h \
	src/fdset.h \
	src/namespace.h \
	src/tcpwrap.h \
	src/cgroup-util.h \
	src/condition.h \
	src/dbus-common.h \
	src/install.h \
	src/cgroup-attr.h \
630
	src/macro.h \
631
	src/def.h \
632 633 634 635 636
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
637
	src/linux/fanotify.h \
638
	src/initreq.h \
639
	src/special.h \
640
	src/dbus-common.h \
641
	src/bus-errors.h \
642
	src/cgroup-show.h \
643
	src/build.h \
644
	src/shutdownd.h \
645
	src/umount.h \
646
	src/ask-password-api.h \
647 648 649 650 651
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
652
	src/acl-util.h \
653 654
	src/logs-show.h \
        src/utf8.h
655 656

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

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
703
	man/init.1
704 705 706 707 708

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1

709 710 711
XML_FILES = \
	${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}

712
if ENABLE_MANPAGES
713
man_MANS = \
714 715
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
716

717
noinst_DATA = \
718
	${XML_FILES:.xml=.html}
719
endif
720 721

EXTRA_DIST += \
722 723 724 725
	$(XML_FILES) \
	${XML_FILES:.xml=.html} \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
726

727
systemd_SOURCES = \
728
	src/main.c
729

730 731
systemd_CFLAGS = \
	$(AM_CFLAGS) \
732
	$(DBUS_CFLAGS) \
733
	$(UDEV_CFLAGS)
734 735

systemd_LDADD = \
736
	libsystemd-core.la
737 738

test_engine_SOURCES = \
739
	src/test-engine.c
740

741
test_engine_CFLAGS = $(systemd_CFLAGS)
742 743 744
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
745
	src/test-job-type.c
746

747
test_job_type_CFLAGS = $(systemd_CFLAGS)
748 749
test_job_type_LDADD = $(systemd_LDADD)

750
test_ns_SOURCES = \
751
	src/test-ns.c
752

753
test_ns_CFLAGS = $(systemd_CFLAGS)
754 755
test_ns_LDADD = $(systemd_LDADD)

756
test_loopback_SOURCES = \
757 758
	src/test-loopback.c \
	src/loopback-setup.c
759

760 761 762
test_loopback_LDADD = \
	libsystemd-basic.la

763 764 765 766 767 768 769
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

770
test_daemon_SOURCES = \