Makefile.am 61.3 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
usergeneratordir=$(pkglibexecdir)/user-generators
56
pkgincludedir=$(includedir)/systemd
57 58

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

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

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

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

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

168
bin_PROGRAMS = \
169
	systemd-cgls \
170
	systemd-stdio-bridge \
171
	systemd-nspawn
172

173
dist_bin_SCRIPTS = \
174
	src/systemd-analyze
175

176 177
if HAVE_GTK
bin_PROGRAMS += \
178
	systemadm \
179
	systemd-gnome-ask-password-agent
180
endif
181

182
rootlibexec_PROGRAMS = \
183
	systemd-stdout-syslog-bridge \
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-kmsg-syslogd \
192
	systemd-reply-password \
193
	systemd-fsck \
194
	systemd-timestamp \
195
	systemd-ac-power \
196
	systemd-detect-virt \
Kay Sievers's avatar
Kay Sievers committed
197
	systemd-sysctl
198

199
systemgenerator_PROGRAMS = \
200
	systemd-getty-generator
201

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

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

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

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

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

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

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

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

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

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

259
dist_systemunit_DATA = \
260 261
	units/graphical.target \
	units/multi-user.target \
262
	units/emergency.service \
263
	units/emergency.target \
264
	units/sysinit.target \
265
	units/basic.target \
266 267
	units/getty.target \
	units/halt.target \
268
	units/kexec.target \
269
	units/local-fs.target \
270
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
271
	units/remote-fs.target \
272
	units/remote-fs-pre.target \
273 274
	units/network.target \
	units/nss-lookup.target \
275
	units/mail-transfer-agent.target \
276
	units/http-daemon.target \
277 278 279
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
280
	units/rpcbind.target \
281
	units/time-sync.target \
282
	units/shutdown.target \
283
	units/final.target \
284
	units/umount.target \
285 286 287
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
288
	units/systemd-initctl.socket \
289
	units/systemd-stdout-syslog-bridge.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-stdout-syslog-bridge.service \
322
	units/systemd-shutdownd.service \
323
	units/systemd-kmsg-syslogd.service \
324
	units/systemd-modules-load.service \
325
	units/systemd-remount-api-vfs.service \
326 327
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
328 329
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
330
	units/systemd-ask-password-wall.service \
331
	units/systemd-ask-password-console.service \
332
	units/systemd-sysctl.service \
333 334 335
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
336 337
	units/kexec.service \
	units/fsck@.service \
338
	units/fsck-root.service \
339
	units/rescue.service \
340
	units/user@.service
341

342 343 344
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
345

346 347
nodist_userunit_DATA = \
	units/user/exit.service
348

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

381 382 383 384
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
385
	units/fedora/halt-local.service
386 387
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
388 389
endif

390 391 392 393 394
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
395 396
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
397 398
endif

399 400 401 402 403
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

404 405 406 407
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
408 409
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
410 411
endif

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

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

440 441
dist_doc_DATA = \
	README \
442
	LICENSE \
443
	DISTRO_PORTING
444

445
pkgconfigdata_DATA = \
446 447
	systemd.pc

448 449 450 451 452
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
453 454
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
455 456

EXTRA_DIST += \
457 458
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
459

460
@INTLTOOL_POLICY_RULE@
461

462 463
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
464
	libsystemd-core.la
465 466

libsystemd_basic_la_SOURCES = \
467
	src/util.c \
468
	src/virt.c \
469
	src/label.c \
470 471 472 473 474 475
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
476 477
	src/ratelimit.c \
	src/exit-status.c
478

479 480 481 482 483
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
484 485
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
486

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

542
nodist_libsystemd_core_la_SOURCES = \
543 544
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
545

546
EXTRA_DIST += \
547
	src/load-fragment-gperf.gperf.m4
548

549 550 551
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
552 553 554 555
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
556 557 558 559 560 561

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
562
	$(PAM_LIBS) \
563 564
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
565

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

570
EXTRA_DIST += \
571 572
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
573
	src/macro.h \
574
	src/def.h \
575 576 577 578 579
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
580
	src/linux/fanotify.h \
581
	src/initreq.h \
582
	src/special.h \
583
	src/dbus-common.h \
584
	src/bus-errors.h \
585
	src/cgroup-show.h \
586
	src/build.h \
587
	src/shutdownd.h \
588
	src/umount.h \
589
	src/ask-password-api.h \
590 591 592 593 594
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
595 596
	src/acl-util.h \
	src/logs-show.h
597 598

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
599
	man/systemd.1 \
600 601
	man/systemctl.1 \
	man/systemadm.1 \
602
	man/systemd-cgls.1 \
603
	man/systemd-nspawn.1 \
604
	man/systemd-tmpfiles.8 \
605
	man/systemd-notify.1 \
606 607
	man/systemd.unit.5 \
	man/systemd.service.5 \
608
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
609
	man/systemd.mount.5 \
610
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
611
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
612
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
613
	man/systemd.path.5 \
614
	man/systemd.target.5 \
615
	man/systemd.device.5 \
616
	man/systemd.snapshot.5 \
617
	man/systemd.exec.5 \
618
	man/daemon.7 \
619
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
620 621 622
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
623
	man/pam_systemd.8 \
624
	man/systemd.conf.5 \
625
	man/tmpfiles.d.5 \
626
	man/hostname.5 \
627
	man/timezone.5 \
628
	man/machine-id.5 \
629
	man/locale.conf.5 \
630
	man/os-release.5 \
631
	man/machine-info.5 \
632
	man/modules-load.d.5 \
633
	man/sysctl.d.5 \
634
	man/systemd-ask-password.1
635 636 637 638

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
639
	man/init.1
640 641 642 643 644 645 646 647

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

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
648 649

nodist_man_MANS = \
650
	man/systemd.special.7
651

652 653 654 655 656 657
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)}}}}}

658
dist_noinst_DATA = \
659
	${XML_FILES:.xml=.html}
660

661
nodist_noinst_DATA = \
662
	${XML_IN_FILES:.xml.in=.html}
663 664

EXTRA_DIST += \
665 666 667 668
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
669

670
systemd_SOURCES = \
671
	src/main.c
672

673 674
systemd_CFLAGS = \
	$(AM_CFLAGS) \
675
	$(DBUS_CFLAGS) \
676
	$(UDEV_CFLAGS)
677 678

systemd_LDADD = \
679
	libsystemd-core.la
680 681

test_engine_SOURCES = \
682
	src/test-engine.c
683

684
test_engine_CFLAGS = $(systemd_CFLAGS)
685 686 687
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
688
	src/test-job-type.c
689

690
test_job_type_CFLAGS = $(systemd_CFLAGS)
691 692
test_job_type_LDADD = $(systemd_LDADD)

693
test_ns_SOURCES = \
694
	src/test-ns.c
695

696
test_ns_CFLAGS = $(systemd_CFLAGS)
697 698
test_ns_LDADD = $(systemd_LDADD)

699
test_loopback_SOURCES = \
700 701
	src/test-loopback.c \
	src/loopback-setup.c
702

703 704 705
test_loopback_LDADD = \
	libsystemd-basic.la

706 707 708 709 710 711 712
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

713
test_daemon_SOURCES = \
714
	src/test-daemon.c
715

716
test_daemon_LDADD = \
717 718
	libsystemd-basic.la \
	libsystemd-daemon.la
719

720 721 722 723 724
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_LDADD = \
725
	libsystemd-basic.la
726

727 728 729 730 731 732
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_LDADD = \
	libsystemd-basic.la

733
test_strv_SOURCES = \
734
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
735
	src/specifier.c
736 737 738 739

test_strv_LDADD = \
	libsystemd-basic.la

740 741
test_install_SOURCES = \
	src/test-install.c \
742 743 744
	src/install.c \
	src/path-lookup.c \
	src/unit-name.c
745 746 747

test_install_CFLAGS = \
	$(AM_CFLAGS) \