Makefile.am 61.2 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
	-I $(top_srcdir)/src \
	-I $(top_srcdir)/src/readahead \
101 102
	-I $(top_srcdir)/src/login \
	-I $(top_srcdir)/src/journal
103

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

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

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

172
dist_bin_SCRIPTS = \
173
	src/systemd-analyze
174

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

181
rootlibexec_PROGRAMS = \
182
	systemd-stdout-syslog-bridge \
183
	systemd-cgroups-agent \
184
	systemd-initctl \
185
	systemd-update-utmp \
186
	systemd-shutdownd \
187
	systemd-shutdown \
188
	systemd-modules-load \
189
	systemd-remount-api-vfs \
190
	systemd-kmsg-syslogd \
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
dist_udevrules_DATA = \
224
	src/71-seat.rules
225

226
nodist_udevrules_DATA = \
227 228
	src/73-seat-late.rules \
	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-stdout-syslog-bridge.socket \
289
	units/systemd-shutdownd.socket \
290
	units/syslog.socket \
291 292
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
293
	units/sys-kernel-config.mount \
294
	units/sys-kernel-debug.mount \
295
	units/sys-kernel-security.mount \
296
	units/sys-fs-fuse-connections.mount \
297
	units/var-run.mount \
298
	units/media.mount \
299
	units/remount-rootfs.service \
300
	units/printer.target \
301
	units/sound.target \
302
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
303
	units/smartcard.target \
304
	units/systemd-tmpfiles-clean.timer \
305
	units/quotaon.service \
306
	units/systemd-ask-password-wall.path \
307
	units/systemd-ask-password-console.path \
Kay Sievers's avatar
Kay Sievers committed
308
	units/syslog.target
309

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

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

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

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

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

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

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

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

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

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

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

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

444
pkgconfigdata_DATA = \
445 446
	systemd.pc

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

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

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

459
@INTLTOOL_POLICY_RULE@
460

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

668
systemd_SOURCES = \
669
	src/main.c
670

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

systemd_LDADD = \
677
	libsystemd-core.la
678 679

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

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

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

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

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

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

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

701 702 703
test_loopback_LDADD = \
	libsystemd-basic.la

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

test_hostname_LDADD = \
	libsystemd-basic.la

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

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

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

test_cgroup_LDADD = \
723
	libsystemd-basic.la
724

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

test_env_replace_LDADD = \
	libsystemd-basic.la

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

test_strv_LDADD = \
	libsystemd-basic.la

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

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

test_install_LDADD = \
	libsystemd-basic.la

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

Kay Sievers's avatar
Kay Sievers committed
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