Makefile.am 79 KB
Newer Older
1 2
#  This file is part of systemd.
#
Kay Sievers's avatar
Kay Sievers committed
3 4
#  Copyright 2010-2012 Lennart Poettering
#  Copyright 2010-2012 Kay Sievers
5 6 7 8 9 10 11 12 13 14 15 16 17 18
#
#  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/>.

Kay Sievers's avatar
Kay Sievers committed
19 20
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
21

Kay Sievers's avatar
Kay Sievers committed
22 23 24 25 26 27 28 29 30
SUBDIRS = . po

LIBUDEV_CURRENT=13
LIBUDEV_REVISION=2
LIBUDEV_AGE=13

LIBGUDEV_CURRENT=1
LIBGUDEV_REVISION=1
LIBGUDEV_AGE=1
31

32
LIBSYSTEMD_LOGIN_CURRENT=2
33
LIBSYSTEMD_LOGIN_REVISION=1
34
LIBSYSTEMD_LOGIN_AGE=2
35

36
LIBSYSTEMD_DAEMON_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
37
LIBSYSTEMD_DAEMON_REVISION=1
38 39
LIBSYSTEMD_DAEMON_AGE=0

40
LIBSYSTEMD_ID128_CURRENT=0
41
LIBSYSTEMD_ID128_REVISION=3
42 43 44
LIBSYSTEMD_ID128_AGE=0

LIBSYSTEMD_JOURNAL_CURRENT=0
45
LIBSYSTEMD_JOURNAL_REVISION=3
46 47
LIBSYSTEMD_JOURNAL_AGE=0

48
# Dirs of external packages
49 50 51 52
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
53 54
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
55
pkgconfiglibdir=$(libdir)/pkgconfig
56
polkitpolicydir=$(datadir)/polkit-1/actions
57
bashcompletiondir=$(sysconfdir)/bash_completion.d
58

59
# Our own, non-special dirs
60
pkgsysconfdir=$(sysconfdir)/systemd
61
userunitdir=$(prefix)/lib/systemd/user
62
tmpfilesdir=$(prefix)/lib/tmpfiles.d
63
sysctldir=$(prefix)/lib/sysctl.d
64
usergeneratordir=$(pkglibexecdir)/user-generators
65
pkgincludedir=$(includedir)/systemd
Kay Sievers's avatar
Kay Sievers committed
66
udevlibexecdir=$(rootprefix)/lib/udev
67 68

# And these are the special ones for /
69 70 71
rootprefix=@rootprefix@
rootbindir=$(rootprefix)/bin
rootlibexecdir=$(rootprefix)/lib/systemd
72 73
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
74
systemunitdir=$(rootprefix)/lib/systemd/system
75

76 77
CLEANFILES =
EXTRA_DIST =
Kay Sievers's avatar
Kay Sievers committed
78
BUILT_SOURCES =
79 80 81
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
Kay Sievers's avatar
Kay Sievers committed
82 83
DISTCHECK_HOOKS =
DISTCLEAN_LOCAL_HOOKS =
84
pkginclude_HEADERS =
85
lib_LTLIBRARIES =
Kay Sievers's avatar
Kay Sievers committed
86
include_HEADERS =
87
pkgconfiglib_DATA =
88
polkitpolicy_in_files =
89
dist_udevrules_DATA =
Kay Sievers's avatar
Kay Sievers committed
90 91 92 93 94 95
nodist_udevrules_DATA =
udevhomedir = $(libexecdir)/udev
udevhome_SCRIPTS =
dist_udevhome_SCRIPTS =
dist_udevhome_DATA =
dist_man_MANS =
96

97
AM_CPPFLAGS = \
98
	-include $(top_builddir)/config.h \
Kay Sievers's avatar
Kay Sievers committed
99
	-DSYSCONFDIR=\""$(sysconfdir)"\" \
100
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
101
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
102
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
103
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
104
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
105 106 107
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
108
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
109
	-DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
110
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
111
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
112
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
113
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
114
	-DROOTPREFIX=\"$(rootprefix)\" \
115
	-DRUNTIME_DIR=\"/run\" \
116
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
117
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
118
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
119
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
120
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
121
	-DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
Kay Sievers's avatar
Kay Sievers committed
122 123
	-DX_SERVER=\"$(bindir)/X\" \
	-DUDEVLIBEXECDIR=\""$(libexecdir)/udev"\" \
124 125
	-I $(top_srcdir)/src \
	-I $(top_srcdir)/src/readahead \
126
	-I $(top_srcdir)/src/login \
127
	-I $(top_srcdir)/src/journal \
Kay Sievers's avatar
Kay Sievers committed
128 129
	-I $(top_srcdir)/src/systemd \
	-I $(top_srcdir)/src/udev
130

131
AM_CFLAGS = $(WARNINGFLAGS)
132
AM_LDFLAGS = $(GCLDFLAGS)
133

134 135 136 137 138 139
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
140 141 142 143 144 145
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
146 147 148 149 150 151
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
152 153 154 155 156 157
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
158 159 160 161 162 163
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
164 165 166 167 168 169
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
170
if TARGET_MAGEIA
171 172 173
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
174
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
Dexter Morgan's avatar
Dexter Morgan committed
175 176 177 178
else
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
179
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
180
endif
181
endif
182
endif
183
endif
184
endif
Chris E Ferron's avatar
Chris E Ferron committed
185
endif
Koen Kooi's avatar
Koen Kooi committed
186
endif
187

188
rootbin_PROGRAMS = \
189
	systemctl \
190
	systemd-notify \
191
	systemd-ask-password \
192
	systemd-tty-ask-password-agent \
193
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
194
	systemd-machine-id-setup
195

196
bin_PROGRAMS = \
197
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
198
	systemd-cgtop \
199
	systemd-stdio-bridge \
200
	systemd-nspawn
201

202
dist_bin_SCRIPTS = \
203
	src/systemd-analyze
204

205
rootlibexec_PROGRAMS = \
206
	systemd \
207
	systemd-cgroups-agent \
208
	systemd-initctl \
209
	systemd-update-utmp \
210
	systemd-shutdownd \
211
	systemd-shutdown \
212
	systemd-modules-load \
213
	systemd-remount-api-vfs \
214
	systemd-reply-password \
215
	systemd-fsck \
216
	systemd-timestamp \
217
	systemd-ac-power \
218
	systemd-detect-virt \
Kay Sievers's avatar
Kay Sievers committed
219
	systemd-sysctl
220

221
systemgenerator_PROGRAMS = \
222
	systemd-getty-generator
223

224 225
noinst_PROGRAMS = \
	test-engine \
226
	test-job-type \
227
	test-ns \
228
	test-loopback \
229
	test-hostname \
230
	test-daemon \
231
	test-cgroup \
232
	test-env-replace \
233
	test-strv \
234
	test-install
235

236
dist_pkgsysconf_DATA = \
237
	src/system.conf \
238
	src/user.conf
239

240
dist_dbuspolicy_DATA = \
241
	src/org.freedesktop.systemd1.conf
242

243
dist_dbussystemservice_DATA = \
244
	src/org.freedesktop.systemd1.service
245 246

dbusinterface_DATA = \
247 248 249 250 251
	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 \
252
	org.freedesktop.systemd1.Timer.xml \
253 254 255 256 257
	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 \
258
	org.freedesktop.systemd1.Swap.xml \
259
	org.freedesktop.systemd1.Path.xml
260

261
dist_bashcompletion_DATA = \
262
	src/systemd-bash-completion.sh
263

264 265
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
266
	tmpfiles.d/tmp.conf \
267 268
	tmpfiles.d/x11.conf

269 270
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
271
	tmpfiles.d/legacy.conf
272 273
endif

274
dist_systemunit_DATA = \
275 276
	units/graphical.target \
	units/multi-user.target \
277
	units/emergency.service \
278
	units/emergency.target \
279
	units/sysinit.target \
280
	units/basic.target \
281 282
	units/getty.target \
	units/halt.target \
283
	units/kexec.target \
284
	units/local-fs.target \
285
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
286
	units/remote-fs.target \
287
	units/remote-fs-pre.target \
288 289
	units/network.target \
	units/nss-lookup.target \
290
	units/mail-transfer-agent.target \
291
	units/http-daemon.target \
292 293 294
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
295
	units/rpcbind.target \
296
	units/time-sync.target \
297
	units/shutdown.target \
298
	units/final.target \
299
	units/umount.target \
300 301 302
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
303
	units/systemd-initctl.socket \
304
	units/systemd-shutdownd.socket \
305
	units/syslog.socket \
306 307
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
308
	units/sys-kernel-config.mount \
309
	units/sys-kernel-debug.mount \
310
	units/sys-fs-fuse-connections.mount \
Kay Sievers's avatar
Kay Sievers committed
311
	units/tmp.mount \
312
	units/remount-rootfs.service \
313
	units/printer.target \
314
	units/sound.target \
315
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
316
	units/smartcard.target \
317
	units/systemd-tmpfiles-clean.timer \
318
	units/quotaon.service \
319
	units/systemd-ask-password-wall.path \
320
	units/systemd-ask-password-console.path \
Kay Sievers's avatar
Kay Sievers committed
321 322 323
	units/syslog.target \
	units/udev-control.socket \
	units/udev-kernel.socket
324

325
nodist_systemunit_DATA = \
326
	units/getty@.service \
327
	units/serial-getty@.service \
328
	units/console-shell.service \
329
	units/systemd-initctl.service \
330
	units/systemd-shutdownd.service \
331
	units/systemd-modules-load.service \
332
	units/systemd-remount-api-vfs.service \
333 334
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
335 336
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
337
	units/systemd-ask-password-wall.service \
338
	units/systemd-ask-password-console.service \
339
	units/systemd-sysctl.service \
340 341 342
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
343 344
	units/kexec.service \
	units/fsck@.service \
345
	units/fsck-root.service \
346
	units/rescue.service \
Kay Sievers's avatar
Kay Sievers committed
347 348 349 350
	units/user@.service \
	units/udev.service \
	units/udev-trigger.service \
	units/udev-settle.service
351

352 353 354
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
355

356 357
nodist_userunit_DATA = \
	units/user/exit.service
358

359
EXTRA_DIST += \
360
	units/getty@.service.m4 \
361
	units/serial-getty@.service.m4 \
362
	units/console-shell.service.m4 \
363
	units/rescue.service.m4 \
364
	units/systemd-initctl.service.in \
365
	units/systemd-shutdownd.service.in \
366
	units/systemd-modules-load.service.in \
367
	units/systemd-remount-api-vfs.service.in \
368 369
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
370 371
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
372
	units/systemd-ask-password-wall.service.in \
373
	units/systemd-ask-password-console.service.in \
374
	units/systemd-sysctl.service.in \
375 376 377
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
378
	units/kexec.service.in \
379
	units/user/exit.service.in \
380 381
	units/fsck@.service.in \
	units/fsck-root.service.in \
Kay Sievers's avatar
Kay Sievers committed
382
	units/user@.service.in \
Kay Sievers's avatar
Kay Sievers committed
383 384 385
	units/udev.service \
	units/udev-trigger.service \
	units/udev-settle.service \
386
	src/systemd.pc.in \
387
	introspect.awk \
388
	man/custom-html.xsl
389

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

399 400 401 402 403
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
404 405
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
406 407
endif

408 409 410 411 412
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

413 414 415 416
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
417 418
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
419 420
endif

Dexter Morgan's avatar
Dexter Morgan committed
421 422 423 424 425
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
426 427
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
428 429
endif

430 431 432 433 434
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
435
	units/plymouth-quit-wait.service \
436 437 438
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
439 440 441 442 443 444 445 446
	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
447 448
endif

449 450
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
451
	NEWS \
452
	LICENSE \
453
	DISTRO_PORTING
454

455
pkgconfigdata_DATA = \
456
	src/systemd.pc
457

458 459 460 461 462
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
463 464
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
465 466

EXTRA_DIST += \
467 468
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
469

470
@INTLTOOL_POLICY_RULE@
471

472 473
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
474
	libsystemd-core.la
475 476

libsystemd_basic_la_SOURCES = \
477
	src/util.c \
478
	src/virt.c \
479
	src/label.c \
480 481 482 483 484 485
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
486
	src/ratelimit.c \
487 488
	src/exit-status.c \
        src/utf8.c
489

490 491 492 493 494
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
495 496
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
497

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

554
nodist_libsystemd_core_la_SOURCES = \
555 556
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
557

558
EXTRA_DIST += \
559
	src/load-fragment-gperf.gperf.m4
560

561 562 563
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
564 565
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
566 567
	$(AUDIT_CFLAGS) \
	$(KMOD_CFLAGS)
568 569 570

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
Kay Sievers's avatar
Kay Sievers committed
571
	libudev.la \
572 573
	$(DBUS_LIBS) \
	$(LIBWRAP_LIBS) \
574
	$(PAM_LIBS) \
575
	$(AUDIT_LIBS) \
576 577
	$(CAP_LIBS) \
	$(KMOD_LIBS)
578

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

583
EXTRA_DIST += \
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 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645
	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 \
646
	src/macro.h \
647
	src/def.h \
648 649 650 651 652
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
653
	src/linux/fanotify.h \
654
	src/initreq.h \
655
	src/special.h \
656
	src/dbus-common.h \
657
	src/bus-errors.h \
658
	src/cgroup-show.h \
659
	src/build.h \
660
	src/shutdownd.h \
661
	src/umount.h \
662
	src/ask-password-api.h \
663 664 665 666 667
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
668
	src/acl-util.h \
669
	src/logs-show.h \
Kay Sievers's avatar
Kay Sievers committed
670 671 672
	src/utf8.h \
	src/journal/sparse-endian.h \
	src/ima-setup.h
673 674

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
675
	man/systemd.1 \
676
	man/systemctl.1 \
677
	man/systemd-cgls.1 \
678
	man/systemd-cgtop.1 \
679
	man/systemd-nspawn.1 \
680
	man/systemd-tmpfiles.8 \
681
	man/systemd-notify.1 \
682 683
	man/systemd.unit.5 \
	man/systemd.service.5 \
684
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
685
	man/systemd.mount.5 \
686
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
687
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
688
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
689
	man/systemd.path.5 \
690
	man/systemd.target.5 \
691
	man/systemd.device.5 \
692
	man/systemd.snapshot.5 \
693
	man/systemd.exec.5 \
694
	man/systemd.special.7 \
695
        man/systemd.journal-fields.7 \
696
	man/daemon.7 \
697
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
698 699 700
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
701
	man/pam_systemd.8 \
702
	man/systemd.conf.5 \
703
	man/tmpfiles.d.5 \
704
	man/hostname.5 \
705
	man/timezone.5 \
706
	man/machine-id.5 \
707
	man/locale.conf.5 \
708
	man/os-release.5 \
709
	man/machine-info.5 \
710
	man/modules-load.d.5 \
711
	man/sysctl.d.5 \
712
	man/systemd-ask-password.1 \
713
	man/systemd-cat.1 \
714 715
	man/systemd-machine-id-setup.1 \
	man/journald.conf.5 \
Kay Sievers's avatar
Kay Sievers committed
716 717 718 719
	man/journalctl.1 \
	man/udev.7 \
	man/udevadm.8 \
	man/udevd.8
720 721 722 723

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
724
	man/init.1
725 726 727 728 729

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

730 731 732
XML_FILES = \
	${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}

733
if ENABLE_MANPAGES
734
man_MANS = \
735 736
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
737

738
noinst_DATA = \
739
	${XML_FILES:.xml=.html}
740
endif
741 742

EXTRA_DIST += \
743 744 745 746
	$(XML_FILES) \
	${XML_FILES:.xml=.html} \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
747

748
systemd_SOURCES = \
749
	src/main.c
750

751 752
systemd_CFLAGS = \
	$(AM_CFLAGS) \
Kay Sievers's avatar
Kay Sievers committed
753
	$(DBUS_CFLAGS)
754 755

systemd_LDADD = \
756
	libsystemd-core.la
757 758

test_engine_SOURCES = \
759
	src/test-engine.c
760

761
test_engine_CFLAGS = $(systemd_CFLAGS)
762 763 764
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
765
	src/test-job-type.c
766

767
test_job_type_CFLAGS = $(systemd_CFLAGS)
768 769
test_job_type_LDADD = $(systemd_LDADD)

770
test_ns_SOURCES = \
771
	src/test-ns.c
772

773
test_ns_CFLAGS = $(systemd_CFLAGS)
774 775
test_ns_LDADD = $(systemd_LDADD)

776
test_loopback_SOURCES = \
777 778
	src/test-loopback.c \
	src/loopback-setup.c
779