Makefile.am 62.6 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=1
LIBSYSTEMD_LOGIN_REVISION=0
LIBSYSTEMD_LOGIN_AGE=1
26

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

31 32 33 34 35 36 37 38
LIBSYSTEMD_ID128_CURRENT=0
LIBSYSTEMD_ID128_REVISION=0
LIBSYSTEMD_ID128_AGE=0

LIBSYSTEMD_JOURNAL_CURRENT=0
LIBSYSTEMD_JOURNAL_REVISION=0
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 76
polkitpolicy_in_files =

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

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

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

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

176
dist_bin_SCRIPTS = \
177
	src/systemd-analyze
178

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

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

200
systemgenerator_PROGRAMS = \
201
	systemd-getty-generator
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
	test-install
214

215
dist_pkgsysconf_DATA = \
216
	src/system.conf \
217
	src/user.conf
218

219
dist_dbuspolicy_DATA = \
220
	src/org.freedesktop.systemd1.conf
221

222
dist_dbussystemservice_DATA = \
223
	src/org.freedesktop.systemd1.service
224

225
dist_udevrules_DATA = \
226
	src/71-seat.rules
227

228
nodist_udevrules_DATA = \
229 230
	src/73-seat-late.rules \
	src/99-systemd.rules
231

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

247
dist_bashcompletion_DATA = \
248
	src/systemd-bash-completion.sh
249

250 251
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
252
	tmpfiles.d/tmp.conf \
253 254
	tmpfiles.d/x11.conf

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

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

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

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

340 341 342
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
343

344 345
nodist_userunit_DATA = \
	units/user/exit.service
346

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

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

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

395 396 397 398 399
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

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

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

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

436 437
dist_doc_DATA = \
	README \
438
	LICENSE \
439
	DISTRO_PORTING
440

441
pkgconfigdata_DATA = \
442
	src/systemd.pc
443

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

nodist_polkitpolicy_DATA = \
449 450
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
451 452

EXTRA_DIST += \
453 454
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
455

456
@INTLTOOL_POLICY_RULE@
457

458 459
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
460
	libsystemd-core.la
461 462

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

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

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

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

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

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

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

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

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

566
EXTRA_DIST += \
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 626 627 628
	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 \
629
	src/macro.h \
630
	src/def.h \
631 632 633 634 635
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
636
	src/linux/fanotify.h \
637
	src/initreq.h \
638
	src/special.h \
639
	src/dbus-common.h \
640
	src/bus-errors.h \
641
	src/cgroup-show.h \
642
	src/build.h \
643
	src/shutdownd.h \
644
	src/umount.h \
645
	src/ask-password-api.h \
646 647 648 649 650
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
651 652
	src/acl-util.h \
	src/logs-show.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 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/daemon.7 \
675
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
676 677 678
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
679
	man/pam_systemd.8 \
680
	man/systemd.conf.5 \
681
	man/tmpfiles.d.5 \
682
	man/hostname.5 \
683
	man/timezone.5 \
684
	man/machine-id.5 \
685
	man/locale.conf.5 \
686
	man/os-release.5 \
687
	man/machine-info.5 \
688
	man/modules-load.d.5 \
689
	man/sysctl.d.5 \
690
	man/systemd-ask-password.1
691 692 693 694

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
695
	man/init.1
696 697 698 699 700 701 702 703

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

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
704 705

nodist_man_MANS = \
706
	man/systemd.special.7
707

708 709 710 711 712 713
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)}}}}}

714
dist_noinst_DATA = \
715
	${XML_FILES:.xml=.html}
716

717
nodist_noinst_DATA = \
718
	${XML_IN_FILES:.xml.in=.html}
719 720

EXTRA_DIST += \
721 722 723 724
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
725

726
systemd_SOURCES = \
727
	src/main.c
728

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

systemd_LDADD = \
735
	libsystemd-core.la
736 737

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

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

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

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

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

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

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

759 760 761
test_loopback_LDADD = \
	libsystemd-basic.la

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

test_hostname_LDADD = \
	libsystemd-basic.la

769
test_daemon_SOURCES = \
770
	src/test-daemon.c
771

772
test_daemon_LDADD = \
773 774
	libsystemd-basic.la \
	libsystemd-daemon.la
775

776 777 778 779 780
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_LDADD = \
781
	libsystemd-basic.la
782

783 784 785 786 787 788
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_LDADD = \
	libsystemd-basic.la

789
test_strv_SOURCES = \
790
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
791
	src/specifier.c
792 793 794 795

test_strv_LDADD = \
	libsystemd-basic.la

796 797
test_install_SOURCES = \
	src/test-install.c \
798 799 800
	src/install.c \
	src/path-lookup.c \
	src/unit-name.c