Makefile.am 60.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 59 60 61

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
62 63
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
64
systemunitdir=$(rootdir)/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
	-DRUNTIME_DIR=\"/run\" \
93
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
94
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
95
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
96
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
97
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
98
	-DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
99 100 101
	-I $(top_srcdir)/src \
	-I $(top_srcdir)/src/readahead \
	-I $(top_srcdir)/src/login
102

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

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

166
bin_PROGRAMS = \
167
	systemd-cgls \
168
	systemd-stdio-bridge \
169
	systemd-nspawn
170

171
dist_bin_SCRIPTS = \
172
	src/systemd-analyze
173

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

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

197
systemgenerator_PROGRAMS = \
198
	systemd-getty-generator
199

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

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

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

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

222
dist_udevrules_DATA = \
223
	src/71-seat.rules
224

225
nodist_udevrules_DATA = \
226 227
	src/73-seat-late.rules \
	src/99-systemd.rules
228

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

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

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

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

257
dist_systemunit_DATA = \
258 259
	units/graphical.target \
	units/multi-user.target \
260
	units/emergency.service \
261
	units/emergency.target \
262
	units/sysinit.target \
263
	units/basic.target \
264 265
	units/getty.target \
	units/halt.target \
266
	units/kexec.target \
267
	units/local-fs.target \
268
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
269
	units/remote-fs.target \
270
	units/remote-fs-pre.target \
271 272
	units/network.target \
	units/nss-lookup.target \
273
	units/mail-transfer-agent.target \
274
	units/http-daemon.target \
275 276 277
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
278
	units/rpcbind.target \
279
	units/time-sync.target \
280
	units/shutdown.target \
281
	units/final.target \
282
	units/umount.target \
283 284 285
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
286
	units/systemd-initctl.socket \
287
	units/systemd-stdout-syslog-bridge.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-stdout-syslog-bridge.service \
320
	units/systemd-shutdownd.service \
321
	units/systemd-kmsg-syslogd.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-stdout-syslog-bridge.service.in \
354
	units/systemd-shutdownd.service.in \
355
	units/systemd-kmsg-syslogd.service.in \
356
	units/systemd-modules-load.service.in \
357
	units/systemd-remount-api-vfs.service.in \
358 359
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
360 361
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
362
	units/systemd-ask-password-wall.service.in \
363
	units/systemd-ask-password-console.service.in \
364
	units/systemd-sysctl.service.in \
365 366 367
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
368
	units/kexec.service.in \
369
	units/user/exit.service.in \
370 371
	units/fsck@.service.in \
	units/fsck-root.service.in \
Kay Sievers's avatar
Kay Sievers committed
372
	units/user@.service.in \
373
	systemd.pc.in \
374
	introspect.awk \
375
	src/73-seat-late.rules.in \
376 377
	src/99-systemd.rules.in \
	man/custom-html.xsl
378

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

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

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

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

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

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

438 439
dist_doc_DATA = \
	README \
440
	LICENSE \
441
	DISTRO_PORTING
442

443
pkgconfigdata_DATA = \
444 445
	systemd.pc

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

nodist_polkitpolicy_DATA = \
451 452
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
453 454

EXTRA_DIST += \
455 456
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
457

458
@INTLTOOL_POLICY_RULE@
459

460 461
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
462
	libsystemd-core.la
463 464

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

477 478 479 480 481
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
482 483
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
484

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

540
nodist_libsystemd_core_la_SOURCES = \
541 542
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
543

544
EXTRA_DIST += \
545
	src/load-fragment-gperf.gperf.m4
546

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

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

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

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

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

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
636
	man/init.1
637 638 639 640 641 642 643 644

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

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
645 646

nodist_man_MANS = \
647
	man/systemd.special.7
648

649 650 651 652 653 654
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)}}}}}

655
dist_noinst_DATA = \
656
	${XML_FILES:.xml=.html}
657

658
nodist_noinst_DATA = \
659
	${XML_IN_FILES:.xml.in=.html}
660 661

EXTRA_DIST += \
662 663 664 665
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
666

667
systemd_SOURCES = \
668
	src/main.c
669

670 671
systemd_CFLAGS = \
	$(AM_CFLAGS) \
672
	$(DBUS_CFLAGS) \
673
	$(UDEV_CFLAGS)
674 675

systemd_LDADD = \
676
	libsystemd-core.la
677 678

test_engine_SOURCES = \
679
	src/test-engine.c
680

681
test_engine_CFLAGS = $(systemd_CFLAGS)
682 683 684
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
685
	src/test-job-type.c
686

687
test_job_type_CFLAGS = $(systemd_CFLAGS)
688 689
test_job_type_LDADD = $(systemd_LDADD)

690
test_ns_SOURCES = \
691
	src/test-ns.c
692

693
test_ns_CFLAGS = $(systemd_CFLAGS)
694 695
test_ns_LDADD = $(systemd_LDADD)

696
test_loopback_SOURCES = \
697 698
	src/test-loopback.c \
	src/loopback-setup.c
699

700 701 702
test_loopback_LDADD = \
	libsystemd-basic.la

703 704 705 706 707 708 709
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

710
test_daemon_SOURCES = \
711
	src/test-daemon.c
712

713
test_daemon_LDADD = \
714 715
	libsystemd-basic.la \
	libsystemd-daemon.la
716

717 718 719 720 721
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_LDADD = \
722
	libsystemd-basic.la
723

724 725 726 727 728 729
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_LDADD = \
	libsystemd-basic.la

730
test_strv_SOURCES = \
731
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
732
	src/specifier.c
733 734 735 736

test_strv_LDADD = \
	libsystemd-basic.la

737 738
test_install_SOURCES = \
	src/test-install.c \
739 740 741
	src/install.c \
	src/path-lookup.c \
	src/unit-name.c
742 743 744

test_install_CFLAGS = \
	$(AM_CFLAGS) \
745
	$(DBUS_CFLAGS)
746 747 748 749

test_install_LDADD = \
	libsystemd-basic.la

Kay Sievers's avatar
Kay Sievers committed
750 751 752
systemd_stdout_syslog_bridge_SOURCES = \
	src/stdout-syslog-bridge.c \
	src/tcpwrap.c
753

Kay Sievers's avatar
Kay Sievers committed
754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789
systemd_stdout_syslog_bridge_LDADD = \