Makefile.am 62.4 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
LIBSYSTEMD_LOGIN_CURRENT=2
24
LIBSYSTEMD_LOGIN_REVISION=1
25
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
32
LIBSYSTEMD_ID128_REVISION=3
33 34 35
LIBSYSTEMD_ID128_AGE=0

LIBSYSTEMD_JOURNAL_CURRENT=0
36
LIBSYSTEMD_JOURNAL_REVISION=3
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
AM_CFLAGS = $(WARNINGFLAGS)

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

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

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

179
dist_bin_SCRIPTS = \
180
	src/systemd-analyze
181

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

198
systemgenerator_PROGRAMS = \
199
	systemd-getty-generator
200

201 202
noinst_PROGRAMS = \
	test-engine \
203
	test-job-type \
204
	test-ns \
205
	test-loopback \
206
	test-hostname \
207
	test-daemon \
208
	test-cgroup \
209
	test-env-replace \
210
	test-strv \
211
	test-install
212

213
dist_pkgsysconf_DATA = \
214
	src/system.conf \
215
	src/user.conf
216

217
dist_dbuspolicy_DATA = \
218
	src/org.freedesktop.systemd1.conf
219

220
dist_dbussystemservice_DATA = \
221
	src/org.freedesktop.systemd1.service
222

223
nodist_udevrules_DATA = \
224
	src/99-systemd.rules
225

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
	org.freedesktop.systemd1.Path.xml
240

241
dist_bashcompletion_DATA = \
242
	src/systemd-bash-completion.sh
243

244 245
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
246
	tmpfiles.d/tmp.conf \
247 248
	tmpfiles.d/x11.conf

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

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

304 305 306 307 308
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

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

333 334 335
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
336

337 338
nodist_userunit_DATA = \
	units/user/exit.service
339

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

369 370 371 372
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
373
	units/fedora/halt-local.service
374 375
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
376 377
endif

378 379 380 381 382
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
383 384
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
385 386
endif

387 388 389 390 391
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

392 393 394 395
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
396 397
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
398 399
endif

Dexter Morgan's avatar
Dexter Morgan committed
400 401 402 403 404
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
405 406
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
407 408
endif

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

428 429
dist_doc_DATA = \
	README \
430
        NEWS \
431
	LICENSE \
432
	DISTRO_PORTING
433

434
pkgconfigdata_DATA = \
435
	src/systemd.pc
436

437 438 439 440 441
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
442 443
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
444 445

EXTRA_DIST += \
446 447
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
448

449
@INTLTOOL_POLICY_RULE@
450

451 452
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
453
	libsystemd-core.la
454 455

libsystemd_basic_la_SOURCES = \
456
	src/util.c \
457
	src/virt.c \
458
	src/label.c \
459 460 461 462 463 464
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
465
	src/ratelimit.c \
466 467
	src/exit-status.c \
        src/utf8.c
468

469 470 471 472 473
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
474 475
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
476

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

533
nodist_libsystemd_core_la_SOURCES = \
534 535
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
536

537
EXTRA_DIST += \
538
	src/load-fragment-gperf.gperf.m4
539

540 541 542
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
543 544 545
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
546 547
	$(AUDIT_CFLAGS) \
	$(KMOD_CFLAGS)
548 549 550 551 552 553

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
554
	$(PAM_LIBS) \
555
	$(AUDIT_LIBS) \
556 557
	$(CAP_LIBS) \
	$(KMOD_LIBS)
558

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

563
EXTRA_DIST += \
564 565 566 567 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
	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 \
626
	src/macro.h \
627
	src/def.h \
628 629 630 631 632
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
633
	src/linux/fanotify.h \
634
	src/initreq.h \
635
	src/special.h \
636
	src/dbus-common.h \
637
	src/bus-errors.h \
638
	src/cgroup-show.h \
639
	src/build.h \
640
	src/shutdownd.h \
641
	src/umount.h \
642
	src/ask-password-api.h \
643 644 645 646 647
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
648
	src/acl-util.h \
649
	src/logs-show.h \
650 651 652
        src/utf8.h \
        src/journal/sparse-endian.h \
        src/ima-setup.h
653 654

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

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
700 701 702 703
	man/init.1 \
        man/systemd-systemctl.1 \
        man/systemd-loginctl.1 \
        man/systemd-journalctl.1
704 705 706 707

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1
708 709 710
man/systemd-systemctl.1: man/systemctl.1
man/systemd-loginctl.1: man/loginctl.1
man/systemd-journalctl.1: man/journalctl.1
711

712 713 714
XML_FILES = \
	${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}

715
if ENABLE_MANPAGES
716
man_MANS = \
717 718
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
719

720
noinst_DATA = \
721
	${XML_FILES:.xml=.html}
722
endif
723 724

EXTRA_DIST += \
725 726 727 728
	$(XML_FILES) \
	${XML_FILES:.xml=.html} \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
729

730
systemd_SOURCES = \
731
	src/main.c
732

733 734
systemd_CFLAGS = \
	$(AM_CFLAGS) \
735
	$(DBUS_CFLAGS) \
736
	$(UDEV_CFLAGS)
737 738

systemd_LDADD = \
739
	libsystemd-core.la
740 741

test_engine_SOURCES = \
742
	src/test-engine.c
743

744
test_engine_CFLAGS = $(systemd_CFLAGS)
745 746 747
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
748
	src/test-job-type.c
749

750
test_job_type_CFLAGS = $(systemd_CFLAGS)
751 752
test_job_type_LDADD = $(systemd_LDADD)

753
test_ns_SOURCES = \
754
	src/test-ns.c
755

756
test_ns_CFLAGS = $(systemd_CFLAGS)
757 758
test_ns_LDADD = $(systemd_LDADD)

759
test_loopback_SOURCES = \
760 761
	src/test-loopback.c \
	src/loopback-setup.c
762

763 764 765
test_loopback_LDADD = \
	libsystemd-basic.la

766 767 768 769 770 771 772 <