Makefile.am 50.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#  This file is part of systemd.
#
#  Copyright 2010 Lennart Poettering
#
#  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

20 21
SUBDIRS = po

22
LIBSYSTEMD_LOGIN_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
23
LIBSYSTEMD_LOGIN_REVISION=2
24 25
LIBSYSTEMD_LOGIN_AGE=0

26 27 28 29
LIBSYSTEMD_DAEMON_CURRENT=0
LIBSYSTEMD_DAEMON_REVISION=0
LIBSYSTEMD_DAEMON_AGE=0

30
# Dirs of external packages
31 32 33 34
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
35
udevrulesdir=@udevrulesdir@
36 37
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
38
pkgconfiglibdir=$(libdir)/pkgconfig
39
polkitpolicydir=$(datadir)/polkit-1/actions
40
bashcompletiondir=$(sysconfdir)/bash_completion.d
41

42
# Our own, non-special dirs
43
pkgsysconfdir=$(sysconfdir)/systemd
44
userunitdir=$(prefix)/lib/systemd/user
45
tmpfilesdir=$(prefix)/lib/tmpfiles.d
46
usergeneratordir=$(pkglibexecdir)/user-generators
47
pkgincludedir=$(includedir)/systemd
48 49 50 51 52

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
53 54
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
55
systemunitdir=$(rootdir)/lib/systemd/system
56

57
AM_CPPFLAGS = \
58
	-include $(top_builddir)/config.h \
59
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
60
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
61
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
62
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
63
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
64 65 66
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
67
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
68
	-DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
69
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
70
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
71
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
72
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
73
	-DRUNTIME_DIR=\"/run\" \
74
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
75
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
76
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
77
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
78
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
79
	-I $(top_srcdir)/src
80

81 82 83 84 85 86
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
87 88 89 90 91 92
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
93 94 95 96 97 98
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
99 100 101 102 103 104
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
105 106 107 108 109 110
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
111 112 113 114 115 116
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
117 118 119 120 121
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
endif
122
endif
123
endif
124
endif
Chris E Ferron's avatar
Chris E Ferron committed
125
endif
Koen Kooi's avatar
Koen Kooi committed
126
endif
127

128
rootbin_PROGRAMS = \
129
	systemd \
130
	systemctl \
131
        systemd-loginctl \
132
	systemd-notify \
133
	systemd-ask-password \
134
	systemd-tty-ask-password-agent \
135
	systemd-tmpfiles \
136
	systemd-machine-id-setup
137

138
bin_PROGRAMS = \
139
	systemd-cgls \
140
	systemd-stdio-bridge \
141
	systemd-nspawn
142

143
dist_bin_SCRIPTS = \
144
	src/systemd-analyze
145

146 147
if HAVE_GTK
bin_PROGRAMS += \
148
	systemadm \
149
	systemd-gnome-ask-password-agent
150
endif
151

152
rootlibexec_PROGRAMS = \
153
	systemd-logger \
154
	systemd-cgroups-agent \
155
	systemd-initctl \
156
	systemd-update-utmp \
157
	systemd-random-seed \
158
	systemd-shutdownd \
159
	systemd-shutdown \
160
	systemd-modules-load \
161
	systemd-remount-api-vfs \
162
	systemd-kmsg-syslogd \
163
	systemd-vconsole-setup \
164 165
	systemd-reply-password \
	systemd-readahead-collect \
166
	systemd-readahead-replay \
167 168
	systemd-user-sessions \
	systemd-fsck \
169
	systemd-quotacheck \
170
	systemd-timestamp \
171
	systemd-ac-power \
172
	systemd-detect-virt \
173
	systemd-sysctl \
174
        systemd-localed \
175 176
        systemd-logind \
        systemd-uaccess
177

178 179 180 181 182
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

183 184 185 186 187
if ENABLE_HOSTNAMED
rootlibexec_PROGRAMS += \
	systemd-hostnamed
endif

188 189 190 191 192
if ENABLE_TIMEDATED
rootlibexec_PROGRAMS += \
	systemd-timedated
endif

193
systemgenerator_PROGRAMS = \
194
	systemd-getty-generator
195

196 197 198 199
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

200
systemgenerator_PROGRAMS += \
201
	systemd-cryptsetup-generator
202
endif
203

204
lib_LTLIBRARIES = \
205
	libsystemd-daemon.la \
206
	libsystemd-login.la
207 208

pkginclude_HEADERS = \
209 210
	src/sd-daemon.h \
	src/sd-login.h
211

212 213
noinst_PROGRAMS = \
	test-engine \
214
	test-job-type \
215
	test-ns \
216
	test-loopback \
217
	test-hostname \
218
	test-daemon \
219
	test-cgroup \
220
	test-env-replace \
221
	test-strv \
222 223
        test-login \
        test-install
224 225 226 227 228

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
229

230
dist_pkgsysconf_DATA = \
231 232 233
	src/system.conf \
        src/user.conf \
        src/systemd-logind.conf
234

235
dist_dbuspolicy_DATA = \
236
	src/org.freedesktop.systemd1.conf \
237
        src/org.freedesktop.locale1.conf \
238
        src/org.freedesktop.login1.conf
239

240 241 242 243 244
if ENABLE_HOSTNAMED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.hostname1.conf
endif

245 246 247 248 249
if ENABLE_TIMEDATED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.timedate1.conf
endif

250
dist_dbussystemservice_DATA = \
251
	src/org.freedesktop.systemd1.service \
252
        src/org.freedesktop.locale1.service \
253
        src/org.freedesktop.login1.service
254

255 256 257 258 259
if ENABLE_HOSTNAMED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.hostname1.service
endif

260 261 262 263 264
if ENABLE_TIMEDATED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.timedate1.service
endif

265
dist_udevrules_DATA = \
266
        src/70-uaccess.rules \
267
        src/71-seat.rules
268

269
nodist_udevrules_DATA = \
270 271
        src/73-seat-late.rules \
        src/99-systemd.rules
272

273
dbusinterface_DATA = \
274 275 276 277 278
	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 \
279
	org.freedesktop.systemd1.Timer.xml \
280 281 282 283 284
	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 \
285
	org.freedesktop.systemd1.Swap.xml \
286
	org.freedesktop.systemd1.Path.xml \
287
        org.freedesktop.locale1.xml
288

289 290 291 292 293
if ENABLE_HOSTNAMED
dbusinterface_DATA += \
	org.freedesktop.hostname1.xml
endif

294 295 296 297 298
if ENABLE_TIMEDATED
dbusinterface_DATA += \
	org.freedesktop.timedate1.xml
endif

299
dist_bashcompletion_DATA = \
300
	src/systemctl-bash-completion.sh
301

302 303 304 305
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

306 307
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
308
	tmpfiles.d/legacy.conf
309 310
endif

311
dist_systemunit_DATA = \
312 313
	units/graphical.target \
	units/multi-user.target \
314
	units/emergency.service \
315
	units/emergency.target \
316
	units/sysinit.target \
317
	units/basic.target \
318 319
	units/getty.target \
	units/halt.target \
320
	units/kexec.target \
321
	units/local-fs.target \
Lennart Poettering's avatar
Lennart Poettering committed
322
	units/remote-fs.target \
323
	units/cryptsetup.target \
324 325
	units/network.target \
	units/nss-lookup.target \
326
	units/mail-transfer-agent.target \
327
	units/http-daemon.target \
328 329 330
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
331
	units/rpcbind.target \
332
	units/time-sync.target \
333
	units/shutdown.target \
334
	units/final.target \
335
	units/umount.target \
336 337 338
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
339
	units/systemd-initctl.socket \
340
	units/systemd-logger.socket \
341
	units/systemd-shutdownd.socket \
342
	units/syslog.socket \
343 344 345 346 347 348
	units/dev-hugepages.automount \
	units/dev-hugepages.mount \
	units/dev-mqueue.automount \
	units/dev-mqueue.mount \
	units/sys-kernel-debug.automount \
	units/sys-kernel-debug.mount \
349 350
	units/sys-kernel-security.automount \
	units/sys-kernel-security.mount \
351
	units/var-run.mount \
352
	units/media.mount \
353
	units/remount-rootfs.service \
354
	units/printer.target \
355
	units/sound.target \
356
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
357
	units/smartcard.target \
358
	units/systemd-readahead-done.timer \
359
	units/systemd-tmpfiles-clean.timer \
360
	units/quotaon.service \
361
	units/systemd-ask-password-wall.path \
362 363
	units/systemd-ask-password-console.path \
	units/syslog.target
364

365 366 367 368 369
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

370 371 372 373 374 375
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

376
nodist_systemunit_DATA = \
377
	units/getty@.service \
378
	units/serial-getty@.service \
379
	units/console-shell.service \
380
	units/systemd-initctl.service \
381
	units/systemd-logger.service \
382
	units/systemd-shutdownd.service \
383
	units/systemd-localed.service \
384
	units/systemd-logind.service \
385
	units/systemd-kmsg-syslogd.service \
386
	units/systemd-modules-load.service \
387
	units/systemd-vconsole-setup.service \
388
	units/systemd-remount-api-vfs.service \
389 390
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
391 392
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
393 394
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
395
	units/systemd-readahead-done.service \
396 397
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
398
	units/systemd-user-sessions.service \
399
	units/systemd-ask-password-wall.service \
400
	units/systemd-ask-password-console.service \
401
	units/systemd-sysctl.service \
402 403 404
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
405 406
	units/kexec.service \
	units/fsck@.service \
407
	units/fsck-root.service \
408
	units/quotacheck.service \
409 410
	units/rescue.service \
        units/user@.service
411

412 413 414 415 416
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

417 418 419 420 421
if ENABLE_HOSTNAMED
nodist_systemunit_DATA += \
	units/systemd-hostnamed.service
endif

422 423 424 425 426
if ENABLE_TIMEDATED
nodist_systemunit_DATA += \
	units/systemd-timedated.service
endif

427 428 429
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
430

431 432
nodist_userunit_DATA = \
	units/user/exit.service
433

434
EXTRA_DIST = \
435
	units/getty@.service.m4 \
436
	units/serial-getty@.service.m4 \
437
	units/console-shell.service.m4 \
438
	units/rescue.service.m4 \
439 440
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
441
	units/systemd-shutdownd.service.in \
442
	units/systemd-localed.service.in \
443
	units/systemd-logind.service.in \
444
	units/systemd-kmsg-syslogd.service.in \
445
	units/systemd-modules-load.service.in \
446
	units/systemd-vconsole-setup.service.in \
447
	units/systemd-remount-api-vfs.service.in \
448 449
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
450 451
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
452 453
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
454
	units/systemd-readahead-done.service.in \
455 456
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
457
	units/systemd-user-sessions.service.in \
458
	units/systemd-ask-password-wall.service.in \
459
	units/systemd-ask-password-console.service.in \
460
	units/systemd-sysctl.service.in \
461 462 463
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
464
	units/kexec.service.in \
465
	units/user/exit.service.in \
466 467
	units/fsck@.service.in \
	units/fsck-root.service.in \
468
	units/quotacheck.service.in \
Kay Sievers's avatar
Kay Sievers committed
469
	units/user@.service.in \
470
	systemd.pc.in \
Kay Sievers's avatar
Kay Sievers committed
471 472 473 474
	libsystemd-daemon.pc.in \
	libsystemd-login.pc.in \
	src/libsystemd-daemon.sym \
	src/libsystemd-login.sym \
475
	introspect.awk \
476 477
	src/73-seat-late.rules.in \
        src/99-systemd.rules.in
478

479 480 481 482 483
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

484 485 486 487 488
if ENABLE_HOSTNAMED
EXTRA_DIST += \
	units/systemd-hostnamed.service.in
endif

489 490 491 492 493
if ENABLE_TIMEDATED
EXTRA_DIST += \
	units/systemd-timedated.service.in
endif

494 495 496 497
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
498 499 500
	units/fedora/halt-local.service
endif

501 502 503 504 505 506 507
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

508 509 510 511 512
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

513 514 515 516 517 518
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
endif

519 520 521 522 523
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
524
	units/plymouth-quit-wait.service \
525 526 527
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
528 529 530 531 532 533 534 535
	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
536 537
endif

538 539
dist_doc_DATA = \
	README \
540 541
	LICENSE \
	DISTRO_PORTING \
542
	src/sd-daemon.h \
543 544 545
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
546

547
pkgconfigdata_DATA = \
548 549 550
	systemd.pc

pkgconfiglib_DATA = \
551
        libsystemd-daemon.pc \
552
        libsystemd-login.pc
553

554 555
# Passed through intltool only
polkitpolicy_in_files = \
556 557 558
        src/org.freedesktop.locale1.policy.in \
        src/org.freedesktop.login1.policy.in

559 560 561 562 563
if ENABLE_HOSTNAMED
polkitpolicy_in_files += \
	src/org.freedesktop.hostname1.policy.in
endif

564 565 566 567 568
if ENABLE_TIMEDATED
polkitpolicy_in_files += \
	src/org.freedesktop.timedate1.policy.in
endif

569 570 571 572 573 574
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
        $(polkitpolicy_in_files:.policy.in=.policy) \
575
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
576 577 578 579 580

EXTRA_DIST += \
        $(polkitpolicy_in_files) \
        $(polkitpolicy_in_in_files)

581
@INTLTOOL_POLICY_RULE@
582

583 584
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
585
	libsystemd-core.la
586 587

libsystemd_basic_la_SOURCES = \
588
	src/util.c \
589
	src/label.c \
590 591 592 593 594 595
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
596 597
	src/ratelimit.c \
	src/exit-status.c
598

599 600 601 602 603
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
604 605
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
606

607
libsystemd_core_la_SOURCES = \
608
	src/unit.c \
609 610
	src/job.c \
	src/manager.c \
611
	src/path-lookup.c \
612 613 614 615 616 617 618 619 620 621
	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 \
622
	src/path.c \
623 624
	src/load-dropin.c \
	src/execute.c \
625
	src/utmp-wtmp.c \
626 627 628 629
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
630 631
	src/dbus-service.c \
	src/dbus-socket.c \
632
	src/dbus-timer.c \
633 634 635 636 637 638 639
	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 \
640
	src/dbus-path.c \
641 642 643
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
644
	src/selinux-setup.c \
645
	src/loopback-setup.c \
646
	src/kmod-setup.c \
647
	src/locale-setup.c \
648
	src/machine-id-setup.c \
649 650 651
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
652
	src/namespace.c \
653
	src/tcpwrap.c \
654
	src/cgroup-util.c \
655
	src/condition.c \
656
        src/dbus-common.c \
657
        src/sd-daemon.c \
658 659
        src/install.c \
        src/cgroup-attr.c
660

661 662 663 664
nodist_libsystemd_core_la_SOURCES = \
        src/load-fragment-gperf.c \
        src/load-fragment-gperf-nulstr.c

665 666 667
EXTRA_DIST += \
        src/load-fragment-gperf.gperf.m4

668 669 670
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
671 672 673 674
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
675 676 677 678 679 680

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
681
	$(PAM_LIBS) \
682 683
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
684

685 686 687 688
# 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.

689
EXTRA_DIST += \
690 691
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
692
	${libsystemd_daemon_la_SOURCES:.c=.h} \
693
	src/macro.h \
694
	src/def.h \
695 696 697 698 699
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
700
	src/linux/fanotify.h \
701
	src/initreq.h \
702
	src/sd-readahead.h \
703
	src/special.h \
704
	src/dbus-common.h \
705
	src/bus-errors.h \
706
	src/cgroup-show.h \
707
	src/build.h \
708
	src/shutdownd.h \
709
	src/umount.h \
710
	src/readahead-common.h \
711 712 713 714 715 716 717 718 719 720
	src/ask-password-api.h \
        src/pager.h \
        src/sysfs-show.h \
        src/polkit.h \
        src/logind.h \
        src/logind-device.h \
        src/logind-seat.h \
        src/logind-session.h \
        src/logind-user.h \
        src/logind-acl.h \
721 722
        src/dbus-loop.h \
        src/spawn-agent.h
723 724

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
725
	man/systemd.1 \
726 727
	man/systemctl.1 \
	man/systemadm.1 \
728
	man/systemd-cgls.1 \
729
	man/systemd-nspawn.1 \
730
	man/systemd-tmpfiles.8 \
731
	man/systemd-notify.1 \
732
	man/sd_notify.3 \
733
	man/sd_readahead.3 \
734 735 736
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
737 738
	man/systemd.unit.5 \
	man/systemd.service.5 \
739
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
740
	man/systemd.mount.5 \
741
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
742
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
743
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
744
	man/systemd.path.5 \
745
	man/systemd.target.5 \
746
	man/systemd.device.5 \
747
	man/systemd.snapshot.5 \
748
	man/systemd.exec.5 \
749
	man/daemon.7 \
750
	man/sd-daemon.7 \
751
	man/sd-readahead.7 \
752
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
753 754 755
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
756
	man/pam_systemd.8 \
757
	man/systemd.conf.5 \
758
	man/systemd-logind.conf.5 \
759
	man/tmpfiles.d.5 \
760
	man/hostname.5 \
761
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
762
	man/vconsole.conf.5 \
763
	man/locale.conf.5 \
764
	man/os-release.5 \
765
        man/machine-info.5 \
766
	man/modules-load.d.5 \
767
	man/sysctl.d.5 \
768 769
        man/systemd-ask-password.1 \
        man/systemd-loginctl.1
770

771 772 773 774 775
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795
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 \
	man/sd_notifyf.3 \
	man/init.1

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
man/sd_notifyf.3: man/sd_notify.3
man/init.1: man/systemd.1

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
796 797

nodist_man_MANS = \
798
	man/systemd.special.7
799

800 801 802 803 804 805
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)}}}}}

806
dist_noinst_DATA = \
807
	${XML_FILES:.xml=.html}
808

809
nodist_noinst_DATA = \
810
	${XML_IN_FILES:.xml.in=.html}
811 812

EXTRA_DIST += \
813 814 815 816
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
817

818
systemd_SOURCES = \
819
	src/main.c