Makefile.am 51.8 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=5
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)\" \
Lennart Poettering's avatar
Lennart Poettering committed
79
        -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
80
	-I $(top_srcdir)/src
81

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

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

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

144
dist_bin_SCRIPTS = \
145
	src/systemd-analyze
146

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

153
rootlibexec_PROGRAMS = \
154
	systemd-stdout-syslog-bridge \
155
	systemd-cgroups-agent \
156
	systemd-initctl \
157
	systemd-update-utmp \
158
	systemd-random-seed \
159
	systemd-shutdownd \
160
	systemd-shutdown \
161
	systemd-modules-load \
162
	systemd-remount-api-vfs \
163
	systemd-kmsg-syslogd \
164
	systemd-vconsole-setup \
165 166
	systemd-reply-password \
	systemd-readahead-collect \
167
	systemd-readahead-replay \
168 169
	systemd-user-sessions \
	systemd-fsck \
170
	systemd-quotacheck \
171
	systemd-timestamp \
172
	systemd-ac-power \
173
	systemd-detect-virt \
174
	systemd-sysctl \
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 194 195 196 197
if ENABLE_LOCALED
rootlibexec_PROGRAMS += \
	systemd-localed
endif

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 \
211
	libsystemd-login.la
212 213

pkginclude_HEADERS = \
214 215
	src/sd-daemon.h \
	src/sd-login.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 228
        test-login \
        test-install
229 230 231 232 233

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
234

235
dist_pkgsysconf_DATA = \
236 237 238
	src/system.conf \
        src/user.conf \
        src/systemd-logind.conf
239

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

244 245 246 247 248
if ENABLE_HOSTNAMED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.hostname1.conf
endif

249 250 251 252 253
if ENABLE_TIMEDATED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.timedate1.conf
endif

254 255 256 257 258
if ENABLE_LOCALED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.locale1.conf
endif

259
dist_dbussystemservice_DATA = \
260
	src/org.freedesktop.systemd1.service \
261
        src/org.freedesktop.login1.service
262

263 264 265 266 267
if ENABLE_HOSTNAMED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.hostname1.service
endif

268 269 270 271 272
if ENABLE_TIMEDATED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.timedate1.service
endif

273 274 275 276 277
if ENABLE_LOCALED
dist_dbussystemservice_DATA += \
        src/org.freedesktop.locale1.service
endif

278
dist_udevrules_DATA = \
279
        src/70-uaccess.rules \
280
        src/71-seat.rules
281

282
nodist_udevrules_DATA = \
283 284
        src/73-seat-late.rules \
        src/99-systemd.rules
285

286
dbusinterface_DATA = \
287 288 289 290 291
	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 \
292
	org.freedesktop.systemd1.Timer.xml \
293 294 295 296 297
	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 \
298
	org.freedesktop.systemd1.Swap.xml \
299
	org.freedesktop.systemd1.Path.xml
300

301 302 303 304 305
if ENABLE_HOSTNAMED
dbusinterface_DATA += \
	org.freedesktop.hostname1.xml
endif

306 307 308 309 310
if ENABLE_TIMEDATED
dbusinterface_DATA += \
	org.freedesktop.timedate1.xml
endif

311 312 313 314 315
if ENABLE_LOCALED
dbusinterface_DATA += \
	org.freedesktop.locale1.xml
endif

316
dist_bashcompletion_DATA = \
317
	src/systemctl-bash-completion.sh
318

319 320
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
321
	tmpfiles.d/tmp.conf \
322 323
	tmpfiles.d/x11.conf

324 325
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
326
	tmpfiles.d/legacy.conf
327 328
endif

329
dist_systemunit_DATA = \
330 331
	units/graphical.target \
	units/multi-user.target \
332
	units/emergency.service \
333
	units/emergency.target \
334
	units/sysinit.target \
335
	units/basic.target \
336 337
	units/getty.target \
	units/halt.target \
338
	units/kexec.target \
339
	units/local-fs.target \
Lennart Poettering's avatar
Lennart Poettering committed
340
	units/remote-fs.target \
341
	units/cryptsetup.target \
342 343
	units/network.target \
	units/nss-lookup.target \
344
	units/mail-transfer-agent.target \
345
	units/http-daemon.target \
346 347 348
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
349
	units/rpcbind.target \
350
	units/time-sync.target \
351
	units/shutdown.target \
352
	units/final.target \
353
	units/umount.target \
354 355 356
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
357
	units/systemd-initctl.socket \
358
	units/systemd-stdout-syslog-bridge.socket \
359
	units/systemd-shutdownd.socket \
360
	units/syslog.socket \
361 362
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
363
	units/sys-kernel-config.mount \
364
	units/sys-kernel-debug.mount \
365
	units/sys-kernel-security.mount \
366
	units/sys-fs-fuse-connections.mount \
367
	units/var-run.mount \
368
	units/media.mount \
369
	units/remount-rootfs.service \
370
	units/printer.target \
371
	units/sound.target \
372
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
373
	units/smartcard.target \
374
	units/systemd-readahead-done.timer \
375
	units/systemd-tmpfiles-clean.timer \
376
	units/quotaon.service \
377
	units/systemd-ask-password-wall.path \
378 379
	units/systemd-ask-password-console.path \
	units/syslog.target
380

381 382 383 384 385
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

386 387 388 389 390 391
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

392
nodist_systemunit_DATA = \
393
	units/getty@.service \
394
	units/serial-getty@.service \
395
	units/console-shell.service \
396
	units/systemd-initctl.service \
397
	units/systemd-stdout-syslog-bridge.service \
398
	units/systemd-shutdownd.service \
399
	units/systemd-logind.service \
400
	units/systemd-kmsg-syslogd.service \
401
	units/systemd-modules-load.service \
402
	units/systemd-vconsole-setup.service \
403
	units/systemd-remount-api-vfs.service \
404 405
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
406 407
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
408 409
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
410
	units/systemd-readahead-done.service \
411 412
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
413
	units/systemd-user-sessions.service \
414
	units/systemd-ask-password-wall.service \
415
	units/systemd-ask-password-console.service \
416
	units/systemd-sysctl.service \
417 418 419
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
420 421
	units/kexec.service \
	units/fsck@.service \
422
	units/fsck-root.service \
423
	units/quotacheck.service \
424 425
	units/rescue.service \
        units/user@.service
426

427 428 429 430 431
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

432 433 434 435 436
if ENABLE_HOSTNAMED
nodist_systemunit_DATA += \
	units/systemd-hostnamed.service
endif

437 438 439 440 441
if ENABLE_TIMEDATED
nodist_systemunit_DATA += \
	units/systemd-timedated.service
endif

442 443 444 445 446
if ENABLE_LOCALED
nodist_systemunit_DATA += \
	units/systemd-localed.service
endif

447 448 449
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
450

451 452
nodist_userunit_DATA = \
	units/user/exit.service
453

454
EXTRA_DIST = \
455
	units/getty@.service.m4 \
456
	units/serial-getty@.service.m4 \
457
	units/console-shell.service.m4 \
458
	units/rescue.service.m4 \
459
	units/systemd-initctl.service.in \
460
	units/systemd-stdout-syslog-bridge.service.in \
461
	units/systemd-shutdownd.service.in \
462
	units/systemd-logind.service.in \
463
	units/systemd-kmsg-syslogd.service.in \
464
	units/systemd-modules-load.service.in \
465
	units/systemd-vconsole-setup.service.in \
466
	units/systemd-remount-api-vfs.service.in \
467 468
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
469 470
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
471 472
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
473
	units/systemd-readahead-done.service.in \
474 475
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
476
	units/systemd-user-sessions.service.in \
477
	units/systemd-ask-password-wall.service.in \
478
	units/systemd-ask-password-console.service.in \
479
	units/systemd-sysctl.service.in \
480 481 482
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
483
	units/kexec.service.in \
484
	units/user/exit.service.in \
485 486
	units/fsck@.service.in \
	units/fsck-root.service.in \
487
	units/quotacheck.service.in \
Kay Sievers's avatar
Kay Sievers committed
488
	units/user@.service.in \
489
	systemd.pc.in \
Kay Sievers's avatar
Kay Sievers committed
490 491 492 493
	libsystemd-daemon.pc.in \
	libsystemd-login.pc.in \
	src/libsystemd-daemon.sym \
	src/libsystemd-login.sym \
494
	introspect.awk \
495 496
	src/73-seat-late.rules.in \
        src/99-systemd.rules.in
497

498 499 500 501 502
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

503 504 505 506 507
if ENABLE_HOSTNAMED
EXTRA_DIST += \
	units/systemd-hostnamed.service.in
endif

508 509 510 511 512
if ENABLE_TIMEDATED
EXTRA_DIST += \
	units/systemd-timedated.service.in
endif

513 514 515 516 517
if ENABLE_LOCALED
EXTRA_DIST += \
	units/systemd-localed.service.in
endif

518 519 520 521
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
522 523 524
	units/fedora/halt-local.service
endif

525 526 527 528 529 530 531
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

532 533 534 535 536
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

537 538 539 540 541 542
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
endif

543 544 545 546 547
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
548
	units/plymouth-quit-wait.service \
549 550 551
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
552 553 554 555 556 557 558 559
	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
560 561
endif

562 563
dist_doc_DATA = \
	README \
564 565
	LICENSE \
	DISTRO_PORTING \
566
	src/sd-daemon.h \
567 568 569
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
570

571
pkgconfigdata_DATA = \
572 573 574
	systemd.pc

pkgconfiglib_DATA = \
575
        libsystemd-daemon.pc \
576
        libsystemd-login.pc
577

578 579
# Passed through intltool only
polkitpolicy_in_files = \
580 581
        src/org.freedesktop.login1.policy.in

582 583 584 585 586
if ENABLE_HOSTNAMED
polkitpolicy_in_files += \
	src/org.freedesktop.hostname1.policy.in
endif

587 588 589 590 591
if ENABLE_TIMEDATED
polkitpolicy_in_files += \
	src/org.freedesktop.timedate1.policy.in
endif

592 593 594 595 596
if ENABLE_LOCALED
polkitpolicy_in_files += \
        src/org.freedesktop.locale1.policy.in
endif

597 598 599 600 601 602
# 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) \
603
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
604 605 606 607 608

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

609
@INTLTOOL_POLICY_RULE@
610

611 612
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
613
	libsystemd-core.la
614 615

libsystemd_basic_la_SOURCES = \
616
	src/util.c \
617
        src/virt.c \
618
	src/label.c \
619 620 621 622 623 624
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
625 626
	src/ratelimit.c \
	src/exit-status.c
627

628 629 630 631 632
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
633 634
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
635

636
libsystemd_core_la_SOURCES = \
637
	src/unit.c \
638 639
	src/job.c \
	src/manager.c \
640
	src/path-lookup.c \
641 642 643 644 645 646 647 648 649 650
	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 \
651
	src/path.c \
652 653
	src/load-dropin.c \
	src/execute.c \
654
	src/utmp-wtmp.c \
655 656 657 658
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
659 660
	src/dbus-service.c \
	src/dbus-socket.c \
661
	src/dbus-timer.c \
662 663 664 665 666 667 668
	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 \
669
	src/dbus-path.c \
670 671 672
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
673
	src/selinux-setup.c \
674
	src/loopback-setup.c \
675
	src/kmod-setup.c \
676
	src/locale-setup.c \
677
	src/machine-id-setup.c \
678 679 680
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
681
	src/namespace.c \
682
	src/tcpwrap.c \
683
	src/cgroup-util.c \
684
	src/condition.c \
685
        src/dbus-common.c \
686
        src/sd-daemon.c \
687 688
        src/install.c \
        src/cgroup-attr.c
689

690 691 692 693
nodist_libsystemd_core_la_SOURCES = \
        src/load-fragment-gperf.c \
        src/load-fragment-gperf-nulstr.c

694 695 696
EXTRA_DIST += \
        src/load-fragment-gperf.gperf.m4

697 698 699
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
700 701 702 703
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
704 705 706 707 708 709

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
710
	$(PAM_LIBS) \
711 712
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
713

714 715 716 717
# 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.

718
EXTRA_DIST += \
719 720
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
721
	${libsystemd_daemon_la_SOURCES:.c=.h} \
722
	src/macro.h \
723
	src/def.h \
724 725 726 727 728
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
729
	src/linux/fanotify.h \
730
	src/initreq.h \
731
	src/sd-readahead.h \
732
	src/special.h \
733
	src/dbus-common.h \
734
	src/bus-errors.h \
735
	src/cgroup-show.h \
736
	src/build.h \
737
	src/shutdownd.h \
738
	src/umount.h \
739
	src/readahead-common.h \
740 741 742 743 744 745 746 747 748 749
	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 \
750 751
        src/dbus-loop.h \
        src/spawn-agent.h
752 753

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
754
	man/systemd.1 \
755 756
	man/systemctl.1 \
	man/systemadm.1 \
757
	man/systemd-cgls.1 \
758
	man/systemd-nspawn.1 \
759
	man/systemd-tmpfiles.8 \
760
	man/systemd-notify.1 \
761
	man/sd_notify.3 \
762
	man/sd_readahead.3 \
763 764 765
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
766 767
	man/systemd.unit.5 \
	man/systemd.service.5 \
768
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
769
	man/systemd.mount.5 \
770
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
771
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
772
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
773
	man/systemd.path.5 \
774
	man/systemd.target.5 \
775
	man/systemd.device.5 \
776
	man/systemd.snapshot.5 \
777
	man/systemd.exec.5 \
778
	man/daemon.7 \
779
	man/sd-daemon.7 \
780
	man/sd-readahead.7 \
781
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
782 783 784
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
785
	man/pam_systemd.8 \
786
	man/systemd.conf.5 \
787
	man/systemd-logind.conf.5 \
788
	man/tmpfiles.d.5 \
789
	man/hostname.5 \
790
        man/timezone.5 \
791
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
792
	man/vconsole.conf.5 \
793
	man/locale.conf.5 \
794
	man/os-release.5 \
795
        man/machine-info.5 \
796
	man/modules-load.d.5 \
797
	man/sysctl.d.5 \
798 799
        man/systemd-ask-password.1 \
        man/systemd-loginctl.1
800

801 802 803 804 805
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif