Makefile.am 59.4 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 \
Kay Sievers's avatar
Kay Sievers committed
159
	systemd-machine-id-setup
160

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

166
dist_bin_SCRIPTS = \
167
	src/systemd-analyze
168

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

175
rootlibexec_PROGRAMS = \
176
	systemd-stdout-syslog-bridge \
177
	systemd-cgroups-agent \
178
	systemd-initctl \
179
	systemd-update-utmp \
180
	systemd-random-seed \
181
	systemd-shutdownd \
182
	systemd-shutdown \
183
	systemd-modules-load \
184
	systemd-remount-api-vfs \
185
	systemd-kmsg-syslogd \
186
	systemd-vconsole-setup \
187 188
	systemd-reply-password \
	systemd-readahead-collect \
189
	systemd-readahead-replay \
190 191
	systemd-user-sessions \
	systemd-fsck \
192
	systemd-quotacheck \
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 203 204
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

205
systemgenerator_PROGRAMS += \
206
	systemd-cryptsetup-generator
207
endif
208

209
lib_LTLIBRARIES = \
210
	libsystemd-daemon.la \
Kay Sievers's avatar
Kay Sievers committed
211
	libsystemd-id128.la
212 213

pkginclude_HEADERS = \
214
	src/sd-daemon.h \
Kay Sievers's avatar
Kay Sievers committed
215
	src/sd-id128.h
216

217 218
noinst_PROGRAMS = \
	test-engine \
219
	test-job-type \
220
	test-ns \
221
	test-loopback \
222
	test-hostname \
223
	test-daemon \
224
	test-cgroup \
225
	test-env-replace \
226
	test-strv \
227
	test-install \
Kay Sievers's avatar
Kay Sievers committed
228
	test-id128
229 230 231 232 233

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
234

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

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

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

245
dist_udevrules_DATA = \
246
	src/71-seat.rules
247

248
nodist_udevrules_DATA = \
249 250
	src/73-seat-late.rules \
	src/99-systemd.rules
251

252
dbusinterface_DATA = \
253 254 255 256 257
	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 \
258
	org.freedesktop.systemd1.Timer.xml \
259 260 261 262 263
	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 \
264
	org.freedesktop.systemd1.Swap.xml \
265
	org.freedesktop.systemd1.Path.xml
266

267
dist_bashcompletion_DATA = \
268
	src/systemd-bash-completion.sh
269

270 271
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
272
	tmpfiles.d/tmp.conf \
273 274
	tmpfiles.d/x11.conf

275 276
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
277
	tmpfiles.d/legacy.conf
278 279
endif

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

334 335 336 337 338
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

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

373 374 375
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
376

377 378
nodist_userunit_DATA = \
	units/user/exit.service
379

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

424 425 426 427
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
428
	units/fedora/halt-local.service
429 430
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
431 432
endif

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

442 443 444 445 446
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

447 448 449 450
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
451 452
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
453 454
endif

Dexter Morgan's avatar
Dexter Morgan committed
455 456 457 458 459
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
460 461
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
462 463
endif

464 465 466 467 468
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
469
	units/plymouth-quit-wait.service \
470 471 472
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
473 474 475 476 477 478 479 480
	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
481 482
endif

483 484
dist_doc_DATA = \
	README \
485 486
	LICENSE \
	DISTRO_PORTING \
487
	src/sd-daemon.h \
488 489 490
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
491

492
pkgconfigdata_DATA = \
493 494 495
	systemd.pc

pkgconfiglib_DATA = \
496
	libsystemd-daemon.pc \
Kay Sievers's avatar
Kay Sievers committed
497
	libsystemd-id128.pc
498

499 500 501 502 503
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
504 505
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
506 507

EXTRA_DIST += \
508 509
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
510

511
@INTLTOOL_POLICY_RULE@
512

513 514
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
515
	libsystemd-core.la
516 517

libsystemd_basic_la_SOURCES = \
518
	src/util.c \
519
	src/virt.c \
520
	src/label.c \
521 522 523 524 525 526
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
527 528
	src/ratelimit.c \
	src/exit-status.c
529

530 531 532 533 534
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
535 536
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
537

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

593
nodist_libsystemd_core_la_SOURCES = \
594 595
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
596

597
EXTRA_DIST += \
598
	src/load-fragment-gperf.gperf.m4
599

600 601 602
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
603 604 605 606
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
607 608 609 610 611 612

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
613
	$(PAM_LIBS) \
614 615
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
616

617 618 619 620
# 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.

621
EXTRA_DIST += \
622 623
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
624
	${libsystemd_daemon_la_SOURCES:.c=.h} \
625
	src/macro.h \
626
	src/def.h \
627 628 629 630 631
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
632
	src/linux/fanotify.h \
633
	src/initreq.h \
634
	src/sd-readahead.h \
635
	src/special.h \
636
	src/dbus-common.h \
637
	src/bus-errors.h \
638
	src/cgroup-show.h \
639
	src/build.h \
640
	src/shutdownd.h \
641
	src/umount.h \
642
	src/readahead-common.h \
643
	src/ask-password-api.h \
644 645 646 647 648 649
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
	src/acl-util.h
650 651

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
652
	man/systemd.1 \
653 654
	man/systemctl.1 \
	man/systemadm.1 \
655
	man/systemd-cgls.1 \
656
	man/systemd-nspawn.1 \
657
	man/systemd-tmpfiles.8 \
658
	man/systemd-notify.1 \
659
	man/sd_notify.3 \
660
	man/sd_readahead.3 \
661 662 663
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
664 665
	man/systemd.unit.5 \
	man/systemd.service.5 \
666
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
667
	man/systemd.mount.5 \
668
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
669
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
670
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
671
	man/systemd.path.5 \
672
	man/systemd.target.5 \
673
	man/systemd.device.5 \
674
	man/systemd.snapshot.5 \
675
	man/systemd.exec.5 \
676
	man/daemon.7 \
677
	man/sd-daemon.7 \
678
	man/sd-readahead.7 \
679
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
680 681 682
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
683
	man/pam_systemd.8 \
684
	man/systemd.conf.5 \
685
	man/tmpfiles.d.5 \
686
	man/hostname.5 \
687
	man/timezone.5 \
688
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
689
	man/vconsole.conf.5 \
690
	man/locale.conf.5 \
691
	man/os-release.5 \
692
	man/machine-info.5 \
693
	man/modules-load.d.5 \
694
	man/sysctl.d.5 \
695 696 697 698 699
	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 \
700
	man/sd_get_seats.3
701 702 703 704 705 706 707

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
708
	man/sd_is_mq.3 \
709
	man/sd_notifyf.3 \
Lennart Poettering's avatar
Lennart Poettering committed
710
	man/init.1 \
711 712 713 714 715 716 717 718 719
	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 \
720
	man/sd_get_uids.3
721 722 723 724 725 726

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
727
man/sd_is_mq.3: man/sd_is_fifo.3
728 729
man/sd_notifyf.3: man/sd_notify.3
man/init.1: man/systemd.1
730 731 732 733 734 735 736 737 738 739
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
740 741 742 743

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
744 745

nodist_man_MANS = \
746
	man/systemd.special.7
747

748 749 750 751 752 753
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)}}}}}

754
dist_noinst_DATA = \
755
	${XML_FILES:.xml=.html}
756