Makefile.am 58.9 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
LIBSYSTEMD_LOGIN_CURRENT=0
24
LIBSYSTEMD_LOGIN_REVISION=6
25 26
LIBSYSTEMD_LOGIN_AGE=0

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 71 72
CLEANFILES =
EXTRA_DIST =
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
polkitpolicy_in_files =

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

98 99 100 101 102 103
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
104 105 106 107 108 109
if TARGET_ARCH
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_FRUGALWARE
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_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
122 123 124 125 126 127
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
128 129 130 131 132 133
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
134 135 136 137
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
138 139 140 141 142 143 144
else
if TARGET_MAGEIA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
endif
145
endif
146
endif
147
endif
148
endif
Chris E Ferron's avatar
Chris E Ferron committed
149
endif
Koen Kooi's avatar
Koen Kooi committed
150
endif
151

152
rootbin_PROGRAMS = \
153
	systemd \
154
	systemctl \
155
	systemd-notify \
156
	systemd-ask-password \
157
	systemd-tty-ask-password-agent \
158
	systemd-tmpfiles \
159
	systemd-machine-id-setup \
160
	systemd-journalctl
161

162
bin_PROGRAMS = \
163
	systemd-cgls \
164
	systemd-stdio-bridge \
165
	systemd-nspawn
166

167
dist_bin_SCRIPTS = \
168
	src/systemd-analyze
169

170 171
if HAVE_GTK
bin_PROGRAMS += \
172
	systemadm \
173
	systemd-gnome-ask-password-agent
174
endif
175

176
rootlibexec_PROGRAMS = \
177
	systemd-stdout-syslog-bridge \
178
	systemd-cgroups-agent \
179
	systemd-initctl \
180
	systemd-update-utmp \
181
	systemd-random-seed \
182
	systemd-shutdownd \
183
	systemd-shutdown \
184
	systemd-modules-load \
185
	systemd-remount-api-vfs \
186
	systemd-kmsg-syslogd \
187
	systemd-vconsole-setup \
188 189
	systemd-reply-password \
	systemd-readahead-collect \
190
	systemd-readahead-replay \
191 192
	systemd-user-sessions \
	systemd-fsck \
193
	systemd-quotacheck \
194
	systemd-timestamp \
195
	systemd-ac-power \
196
	systemd-detect-virt \
197
	systemd-sysctl \
198
	systemd-journald
199

200
systemgenerator_PROGRAMS = \
201
	systemd-getty-generator
202

203 204 205 206
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

207
systemgenerator_PROGRAMS += \
208
	systemd-cryptsetup-generator
209
endif
210

211
lib_LTLIBRARIES = \
212
	libsystemd-daemon.la \
213 214
	libsystemd-id128.la \
	libsystemd-journal.la
215 216

pkginclude_HEADERS = \
217
	src/sd-daemon.h \
218 219
	src/sd-id128.h \
	src/journal/sd-journal.h
220

221 222
noinst_PROGRAMS = \
	test-engine \
223
	test-job-type \
224
	test-ns \
225
	test-loopback \
226
	test-hostname \
227
	test-daemon \
228
	test-cgroup \
229
	test-env-replace \
230
	test-strv \
231 232 233
	test-install \
	test-id128 \
	test-journal
234 235 236 237 238

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
239

240
dist_pkgsysconf_DATA = \
241
	src/system.conf \
242
	src/user.conf
243

244
dist_dbuspolicy_DATA = \
245
	src/org.freedesktop.systemd1.conf
246

247
dist_dbussystemservice_DATA = \
248
	src/org.freedesktop.systemd1.service
249

250
dist_udevrules_DATA = \
251
	src/71-seat.rules
252

253
nodist_udevrules_DATA = \
254 255
	src/73-seat-late.rules \
	src/99-systemd.rules
256

257
dbusinterface_DATA = \
258 259 260 261 262
	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 \
263
	org.freedesktop.systemd1.Timer.xml \
264 265 266 267 268
	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 \
269
	org.freedesktop.systemd1.Swap.xml \
270
	org.freedesktop.systemd1.Path.xml
271

272
dist_bashcompletion_DATA = \
273
	src/systemd-bash-completion.sh
274

275 276
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
277
	tmpfiles.d/tmp.conf \
278 279
	tmpfiles.d/x11.conf

280 281
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
282
	tmpfiles.d/legacy.conf
283 284
endif

285
dist_systemunit_DATA = \
286 287
	units/graphical.target \
	units/multi-user.target \
288
	units/emergency.service \
289
	units/emergency.target \
290
	units/sysinit.target \
291
	units/basic.target \
292 293
	units/getty.target \
	units/halt.target \
294
	units/kexec.target \
295
	units/local-fs.target \
296
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
297
	units/remote-fs.target \
298
	units/remote-fs-pre.target \
299
	units/cryptsetup.target \
300 301
	units/network.target \
	units/nss-lookup.target \
302
	units/mail-transfer-agent.target \
303
	units/http-daemon.target \
304 305 306
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
307
	units/rpcbind.target \
308
	units/time-sync.target \
309
	units/shutdown.target \
310
	units/final.target \
311
	units/umount.target \
312 313 314
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
315
	units/systemd-initctl.socket \
316
	units/systemd-stdout-syslog-bridge.socket \
317
	units/systemd-shutdownd.socket \
318
	units/syslog.socket \
319 320
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
321
	units/sys-kernel-config.mount \
322
	units/sys-kernel-debug.mount \
323
	units/sys-kernel-security.mount \
324
	units/sys-fs-fuse-connections.mount \
325
	units/var-run.mount \
326
	units/media.mount \
327
	units/remount-rootfs.service \
328
	units/printer.target \
329
	units/sound.target \
330
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
331
	units/smartcard.target \
332
	units/systemd-readahead-done.timer \
333
	units/systemd-tmpfiles-clean.timer \
334
	units/quotaon.service \
335
	units/systemd-ask-password-wall.path \
336
	units/systemd-ask-password-console.path \
337
	units/syslog.target \
338
	units/systemd-journald.socket
339

340 341 342 343 344
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

345
nodist_systemunit_DATA = \
346
	units/getty@.service \
347
	units/serial-getty@.service \
348
	units/console-shell.service \
349
	units/systemd-initctl.service \
350
	units/systemd-stdout-syslog-bridge.service \
351
	units/systemd-shutdownd.service \
352
	units/systemd-journald.service \
353
	units/systemd-kmsg-syslogd.service \
354
	units/systemd-modules-load.service \
355
	units/systemd-vconsole-setup.service \
356
	units/systemd-remount-api-vfs.service \
357 358
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
359 360
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
361 362
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
363
	units/systemd-readahead-done.service \
364 365
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
366
	units/systemd-user-sessions.service \
367
	units/systemd-ask-password-wall.service \
368
	units/systemd-ask-password-console.service \
369
	units/systemd-sysctl.service \
370 371 372
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
373 374
	units/kexec.service \
	units/fsck@.service \
375
	units/fsck-root.service \
376
	units/quotacheck.service \
377
	units/rescue.service \
378
	units/user@.service
379

380 381 382
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
383

384 385
nodist_userunit_DATA = \
	units/user/exit.service
386

387
EXTRA_DIST += \
388
	units/getty@.service.m4 \
389
	units/serial-getty@.service.m4 \
390
	units/console-shell.service.m4 \
391
	units/rescue.service.m4 \
392
	units/systemd-initctl.service.in \
393
	units/systemd-stdout-syslog-bridge.service.in \
394
	units/systemd-shutdownd.service.in \
395 396
	units/systemd-journald.service.in \
	units/systemd-kmsg-syslogd.service.in \
397
	units/systemd-modules-load.service.in \
398
	units/systemd-vconsole-setup.service.in \
399
	units/systemd-remount-api-vfs.service.in \
400 401
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
402 403
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
404 405
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
406
	units/systemd-readahead-done.service.in \
407 408
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
409
	units/systemd-user-sessions.service.in \
410
	units/systemd-ask-password-wall.service.in \
411
	units/systemd-ask-password-console.service.in \
412
	units/systemd-sysctl.service.in \
413 414 415
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
416
	units/kexec.service.in \
417
	units/user/exit.service.in \
418 419
	units/fsck@.service.in \
	units/fsck-root.service.in \
420
	units/quotacheck.service.in \
Kay Sievers's avatar
Kay Sievers committed
421
	units/user@.service.in \
422
	systemd.pc.in \
Kay Sievers's avatar
Kay Sievers committed
423
	libsystemd-daemon.pc.in \
424 425
	libsystemd-id128.pc.in \
	libsystemd-journal.pc.in \
Kay Sievers's avatar
Kay Sievers committed
426
	src/libsystemd-daemon.sym \
427
	src/libsystemd-id128.sym \
428
	src/journal/libsystemd-journal.sym \
429
	introspect.awk \
430
	src/73-seat-late.rules.in \
431 432
	src/99-systemd.rules.in \
	man/custom-html.xsl
433

434 435 436 437
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
438
	units/fedora/halt-local.service
439 440
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
441 442
endif

443 444 445 446 447
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
448 449
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
450 451
endif

452 453 454 455 456
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

457 458 459 460
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
461 462
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
463 464
endif

Dexter Morgan's avatar
Dexter Morgan committed
465 466 467 468 469
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
470 471
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
472 473
endif

474 475 476 477 478
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
479
	units/plymouth-quit-wait.service \
480 481 482
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
483 484 485 486 487 488 489 490
	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
491 492
endif

493 494
dist_doc_DATA = \
	README \
495 496
	LICENSE \
	DISTRO_PORTING \
497
	src/sd-daemon.h \
498 499 500
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
501

502
pkgconfigdata_DATA = \
503 504 505
	systemd.pc

pkgconfiglib_DATA = \
506 507 508
	libsystemd-daemon.pc \
	libsystemd-id128.pc \
	libsystemd-journal.pc
509

510 511 512 513 514
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
515 516
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
517 518

EXTRA_DIST += \
519 520
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
521

522
@INTLTOOL_POLICY_RULE@
523

524 525
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
526
	libsystemd-core.la
527 528

libsystemd_basic_la_SOURCES = \
529
	src/util.c \
530
	src/virt.c \
531
	src/label.c \
532 533 534 535 536 537
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
538 539
	src/ratelimit.c \
	src/exit-status.c
540

541 542 543 544 545
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
546 547
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
548

549
libsystemd_core_la_SOURCES = \
550
	src/unit.c \
551 552
	src/job.c \
	src/manager.c \
553
	src/path-lookup.c \
554 555 556 557 558 559 560 561 562 563
	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 \
564
	src/path.c \
565 566
	src/load-dropin.c \
	src/execute.c \
567
	src/utmp-wtmp.c \
568 569 570 571
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
572 573
	src/dbus-service.c \
	src/dbus-socket.c \
574
	src/dbus-timer.c \
575 576 577 578 579 580 581
	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 \
582
	src/dbus-path.c \
583 584 585
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
586
	src/selinux-setup.c \
587
	src/loopback-setup.c \
588
	src/kmod-setup.c \
589
	src/locale-setup.c \
590
	src/machine-id-setup.c \
591 592 593
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
594
	src/namespace.c \
595
	src/tcpwrap.c \
596
	src/cgroup-util.c \
597
	src/condition.c \
598 599 600 601 602
	src/dbus-common.c \
	src/sd-daemon.c \
	src/install.c \
	src/cgroup-attr.c \
	src/sd-id128.c
603

604
nodist_libsystemd_core_la_SOURCES = \
605 606
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
607

608
EXTRA_DIST += \
609
	src/load-fragment-gperf.gperf.m4
610

611 612 613
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
614 615 616 617
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
618 619 620 621 622 623

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
624
	$(PAM_LIBS) \
625 626
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
627

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

632
EXTRA_DIST += \
633 634
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
635
	${libsystemd_daemon_la_SOURCES:.c=.h} \
636
	src/macro.h \
637
	src/def.h \
638 639 640 641 642
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
643
	src/linux/fanotify.h \
644
	src/initreq.h \
645
	src/sd-readahead.h \
646
	src/special.h \
647
	src/dbus-common.h \
648
	src/bus-errors.h \
649
	src/cgroup-show.h \
650
	src/build.h \
651
	src/shutdownd.h \
652
	src/umount.h \
653
	src/readahead-common.h \
654
	src/ask-password-api.h \
655 656 657 658 659 660 661 662 663 664 665 666
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
	src/journal/journal-def.h \
	src/journal/journal-internal.h \
	src/journal/journal-file.h \
	src/journal/lookup3.h \
	src/journal/compress.h \
	src/journal/journal-rate-limit.h \
	src/acl-util.h
667 668

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
669
	man/systemd.1 \
670 671
	man/systemctl.1 \
	man/systemadm.1 \
672
	man/systemd-cgls.1 \
673
	man/systemd-nspawn.1 \
674
	man/systemd-tmpfiles.8 \
675
	man/systemd-notify.1 \
676
	man/sd_notify.3 \
677
	man/sd_readahead.3 \
678 679 680
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
681 682
	man/systemd.unit.5 \
	man/systemd.service.5 \
683
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
684
	man/systemd.mount.5 \
685
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
686
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
687
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
688
	man/systemd.path.5 \
689
	man/systemd.target.5 \
690
	man/systemd.device.5 \
691
	man/systemd.snapshot.5 \
692
	man/systemd.exec.5 \
693
	man/daemon.7 \
694
	man/sd-daemon.7 \
695
	man/sd-readahead.7 \
696
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
697 698 699
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
700
	man/pam_systemd.8 \
701
	man/systemd.conf.5 \
702
	man/tmpfiles.d.5 \
703
	man/hostname.5 \
704
	man/timezone.5 \
705
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
706
	man/vconsole.conf.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 713 714 715 716
	man/systemd-ask-password.1 \
	man/sd_pid_get_session.3 \
	man/sd_uid_get_state.3 \
	man/sd_session_is_active.3 \
	man/sd_seat_get_active.3 \
717
	man/sd_get_seats.3
718 719 720 721 722 723 724

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
	man/sd_is_socket.3 \
	man/sd_is_socket_unix.3 \
	man/sd_is_socket_inet.3 \
Lennart Poettering's avatar
Lennart Poettering committed
725
	man/sd_is_mq.3 \
726
	man/sd_notifyf.3 \
Lennart Poettering's avatar
Lennart Poettering committed
727
	man/init.1 \
728 729 730 731 732 733 734 735 736
	man/sd_session_get_uid.3 \
	man/sd_session_get_seat.3 \
	man/sd_pid_get_owner_uid.3 \
	man/sd_uid_is_on_seat.3 \
	man/sd_uid_get_sessions.3 \
	man/sd_uid_get_seats.3 \
	man/sd_seat_get_sessions.3 \
	man/sd_seat_can_multi_session.3 \
	man/sd_get_sessions.3 \
737
	man/sd_get_uids.3
738 739 740 741 742 743

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/sd_is_socket.3: man/sd_is_fifo.3
man/sd_is_socket_unix.3: man/sd_is_fifo.3
man/sd_is_socket_inet.3: man/sd_is_fifo.3
744
man/sd_is_mq.3: man/sd_is_fifo.3
745 746
man/sd_notifyf.3: man/sd_notify.3
man/init.1: man/systemd.1
747 748 749 750 751 752 753 754 755 756
man/sd_session_get_uid.3: man/sd_session_is_active.3
man/sd_session_get_seat.3: man/sd_session_is_active.3
man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
man/sd_uid_get_seats.3: man/sd_uid_get_state.3
man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
man/sd_get_sessions.3: man/sd_get_seats.3
man/sd_get_uids.3: man/sd_get_seats.3
757 758 759 760

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
761 762

nodist_man_MANS = \
763
	man/systemd.special.7
764

765 766 767 768 769 770
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)}}}}}

771
dist_noinst_DATA = \
772
	${XML_FILES:.xml=.html}
773

774
nodist_noinst_DATA = \