Makefile.am 56.1 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
23
LIBSYSTEMD_LOGIN_REVISION=6
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
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
122 123 124 125 126 127 128
else
if TARGET_MAGEIA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
endif
129
endif
130
endif
131
endif
132
endif
Chris E Ferron's avatar
Chris E Ferron committed
133
endif
Koen Kooi's avatar
Koen Kooi committed
134
endif
135

136
rootbin_PROGRAMS = \
137
	systemd \
138
	systemctl \
139
        systemd-loginctl \
140
	systemd-notify \
141
	systemd-ask-password \
142
	systemd-tty-ask-password-agent \
143
	systemd-tmpfiles \
144 145
	systemd-machine-id-setup \
        systemd-journalctl
146

147
bin_PROGRAMS = \
148
	systemd-cgls \
149
	systemd-stdio-bridge \
150
	systemd-nspawn
151

152
dist_bin_SCRIPTS = \
153
	src/systemd-analyze
154

155 156
if HAVE_GTK
bin_PROGRAMS += \
157
	systemadm \
158
	systemd-gnome-ask-password-agent
159
endif
160

161
rootlibexec_PROGRAMS = \
162
	systemd-stdout-syslog-bridge \
163
	systemd-cgroups-agent \
164
	systemd-initctl \
165
	systemd-update-utmp \
166
	systemd-random-seed \
167
	systemd-shutdownd \
168
	systemd-shutdown \
169
	systemd-modules-load \
170
	systemd-remount-api-vfs \
171
	systemd-kmsg-syslogd \
172
	systemd-vconsole-setup \
173 174
	systemd-reply-password \
	systemd-readahead-collect \
175
	systemd-readahead-replay \
176 177
	systemd-user-sessions \
	systemd-fsck \
178
	systemd-quotacheck \
179
	systemd-timestamp \
180
	systemd-ac-power \
181
	systemd-detect-virt \
182
	systemd-sysctl \
183
        systemd-logind \
184 185
        systemd-uaccess \
        systemd-journald
186

187 188 189 190 191
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

192 193 194 195 196
if ENABLE_HOSTNAMED
rootlibexec_PROGRAMS += \
	systemd-hostnamed
endif

197 198 199 200 201
if ENABLE_TIMEDATED
rootlibexec_PROGRAMS += \
	systemd-timedated
endif

202 203 204 205 206
if ENABLE_LOCALED
rootlibexec_PROGRAMS += \
	systemd-localed
endif

207
systemgenerator_PROGRAMS = \
208
	systemd-getty-generator
209

210 211 212 213
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

214
systemgenerator_PROGRAMS += \
215
	systemd-cryptsetup-generator
216
endif
217

218
lib_LTLIBRARIES = \
219
	libsystemd-daemon.la \
220
	libsystemd-login.la
221 222

pkginclude_HEADERS = \
223 224
	src/sd-daemon.h \
	src/sd-login.h
225

226 227
noinst_PROGRAMS = \
	test-engine \
228
	test-job-type \
229
	test-ns \
230
	test-loopback \
231
	test-hostname \
232
	test-daemon \
233
	test-cgroup \
234
	test-env-replace \
235
	test-strv \
236
        test-login \
237 238 239
        test-install \
        test-id128 \
        test-journal
240 241 242 243 244

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
245

246
dist_pkgsysconf_DATA = \
247 248 249
	src/system.conf \
        src/user.conf \
        src/systemd-logind.conf
250

251
dist_dbuspolicy_DATA = \
252
	src/org.freedesktop.systemd1.conf \
253
        src/org.freedesktop.login1.conf
254

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

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

265 266 267 268 269
if ENABLE_LOCALED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.locale1.conf
endif

270
dist_dbussystemservice_DATA = \
271
	src/org.freedesktop.systemd1.service \
272
        src/org.freedesktop.login1.service
273

274 275 276 277 278
if ENABLE_HOSTNAMED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.hostname1.service
endif

279 280 281 282 283
if ENABLE_TIMEDATED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.timedate1.service
endif

284 285 286 287 288
if ENABLE_LOCALED
dist_dbussystemservice_DATA += \
        src/org.freedesktop.locale1.service
endif

289
dist_udevrules_DATA = \
290
        src/70-uaccess.rules \
291
        src/71-seat.rules
292

293
nodist_udevrules_DATA = \
294 295
        src/73-seat-late.rules \
        src/99-systemd.rules
296

297
dbusinterface_DATA = \
298 299 300 301 302
	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 \
303
	org.freedesktop.systemd1.Timer.xml \
304 305 306 307 308
	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 \
309
	org.freedesktop.systemd1.Swap.xml \
310
	org.freedesktop.systemd1.Path.xml
311

312 313 314 315 316
if ENABLE_HOSTNAMED
dbusinterface_DATA += \
	org.freedesktop.hostname1.xml
endif

317 318 319 320 321
if ENABLE_TIMEDATED
dbusinterface_DATA += \
	org.freedesktop.timedate1.xml
endif

322 323 324 325 326
if ENABLE_LOCALED
dbusinterface_DATA += \
	org.freedesktop.locale1.xml
endif

327
dist_bashcompletion_DATA = \
328
	src/systemd-bash-completion.sh
329

330 331
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
332
	tmpfiles.d/tmp.conf \
333 334
	tmpfiles.d/x11.conf

335 336
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
337
	tmpfiles.d/legacy.conf
338 339
endif

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

394 395 396 397 398
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

399 400 401 402 403 404
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

405
nodist_systemunit_DATA = \
406
	units/getty@.service \
407
	units/serial-getty@.service \
408
	units/console-shell.service \
409
	units/systemd-initctl.service \
410
	units/systemd-stdout-syslog-bridge.service \
411
	units/systemd-shutdownd.service \
412
	units/systemd-logind.service \
413
	units/systemd-kmsg-syslogd.service \
414
	units/systemd-modules-load.service \
415
	units/systemd-vconsole-setup.service \
416
	units/systemd-remount-api-vfs.service \
417 418
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
419 420
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
421 422
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
423
	units/systemd-readahead-done.service \
424 425
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
426
	units/systemd-user-sessions.service \
427
	units/systemd-ask-password-wall.service \
428
	units/systemd-ask-password-console.service \
429
	units/systemd-sysctl.service \
430 431 432
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
433 434
	units/kexec.service \
	units/fsck@.service \
435
	units/fsck-root.service \
436
	units/quotacheck.service \
437 438
	units/rescue.service \
        units/user@.service
439

440 441 442 443 444
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

445 446 447 448 449
if ENABLE_HOSTNAMED
nodist_systemunit_DATA += \
	units/systemd-hostnamed.service
endif

450 451 452 453 454
if ENABLE_TIMEDATED
nodist_systemunit_DATA += \
	units/systemd-timedated.service
endif

455 456 457 458 459
if ENABLE_LOCALED
nodist_systemunit_DATA += \
	units/systemd-localed.service
endif

460 461 462
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
463

464 465
nodist_userunit_DATA = \
	units/user/exit.service
466

467
EXTRA_DIST = \
468
	units/getty@.service.m4 \
469
	units/serial-getty@.service.m4 \
470
	units/console-shell.service.m4 \
471
	units/rescue.service.m4 \
472
	units/systemd-initctl.service.in \
473
	units/systemd-stdout-syslog-bridge.service.in \
474
	units/systemd-shutdownd.service.in \
475
	units/systemd-logind.service.in \
476
	units/systemd-kmsg-syslogd.service.in \
477
	units/systemd-modules-load.service.in \
478
	units/systemd-vconsole-setup.service.in \
479
	units/systemd-remount-api-vfs.service.in \
480 481
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
482 483
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
484 485
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
486
	units/systemd-readahead-done.service.in \
487 488
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
489
	units/systemd-user-sessions.service.in \
490
	units/systemd-ask-password-wall.service.in \
491
	units/systemd-ask-password-console.service.in \
492
	units/systemd-sysctl.service.in \
493 494 495
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
496
	units/kexec.service.in \
497
	units/user/exit.service.in \
498 499
	units/fsck@.service.in \
	units/fsck-root.service.in \
500
	units/quotacheck.service.in \
Kay Sievers's avatar
Kay Sievers committed
501
	units/user@.service.in \
502
	systemd.pc.in \
Kay Sievers's avatar
Kay Sievers committed
503 504 505 506
	libsystemd-daemon.pc.in \
	libsystemd-login.pc.in \
	src/libsystemd-daemon.sym \
	src/libsystemd-login.sym \
507
	introspect.awk \
508
	src/73-seat-late.rules.in \
509 510
        src/99-systemd.rules.in \
        man/custom-html.xsl
511

512 513 514 515 516
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

517 518 519 520 521
if ENABLE_HOSTNAMED
EXTRA_DIST += \
	units/systemd-hostnamed.service.in
endif

522 523 524 525 526
if ENABLE_TIMEDATED
EXTRA_DIST += \
	units/systemd-timedated.service.in
endif

527 528 529 530 531
if ENABLE_LOCALED
EXTRA_DIST += \
	units/systemd-localed.service.in
endif

532 533 534 535
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
536 537 538
	units/fedora/halt-local.service
endif

539 540 541 542 543 544 545
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

546 547 548 549 550
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

551 552 553 554 555 556
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
endif

Dexter Morgan's avatar
Dexter Morgan committed
557 558 559 560 561 562 563
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

564 565 566 567 568
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
569
	units/plymouth-quit-wait.service \
570 571 572
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
573 574 575 576 577 578 579 580
	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
581 582
endif

583 584
dist_doc_DATA = \
	README \
585 586
	LICENSE \
	DISTRO_PORTING \
587
	src/sd-daemon.h \
588 589 590
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
591

592
pkgconfigdata_DATA = \
593 594 595
	systemd.pc

pkgconfiglib_DATA = \
596
        libsystemd-daemon.pc \
597
        libsystemd-login.pc
598

599 600
# Passed through intltool only
polkitpolicy_in_files = \
601 602
        src/org.freedesktop.login1.policy.in

603 604 605 606 607
if ENABLE_HOSTNAMED
polkitpolicy_in_files += \
	src/org.freedesktop.hostname1.policy.in
endif

608 609 610 611 612
if ENABLE_TIMEDATED
polkitpolicy_in_files += \
	src/org.freedesktop.timedate1.policy.in
endif

613 614 615 616 617
if ENABLE_LOCALED
polkitpolicy_in_files += \
        src/org.freedesktop.locale1.policy.in
endif

618 619 620 621 622 623
# 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) \
624
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
625 626 627 628 629

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

630
@INTLTOOL_POLICY_RULE@
631

632 633
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
634
	libsystemd-core.la
635 636

libsystemd_basic_la_SOURCES = \
637
	src/util.c \
638
        src/virt.c \
639
	src/label.c \
640 641 642 643 644 645
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
646 647
	src/ratelimit.c \
	src/exit-status.c
648

649 650 651 652 653
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
654 655
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
656

657
libsystemd_core_la_SOURCES = \
658
	src/unit.c \
659 660
	src/job.c \
	src/manager.c \
661
	src/path-lookup.c \
662 663 664 665 666 667 668 669 670 671
	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 \
672
	src/path.c \
673 674
	src/load-dropin.c \
	src/execute.c \
675
	src/utmp-wtmp.c \
676 677 678 679
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
680 681
	src/dbus-service.c \
	src/dbus-socket.c \
682
	src/dbus-timer.c \
683 684 685 686 687 688 689
	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 \
690
	src/dbus-path.c \
691 692 693
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
694
	src/selinux-setup.c \
695
	src/loopback-setup.c \
696
	src/kmod-setup.c \
697
	src/locale-setup.c \
698
	src/machine-id-setup.c \
699 700 701
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
702
	src/namespace.c \
703
	src/tcpwrap.c \
704
	src/cgroup-util.c \
705
	src/condition.c \
706
        src/dbus-common.c \
707
        src/sd-daemon.c \
708
        src/install.c \
709 710
        src/cgroup-attr.c \
        src/sd-id128.c
711

712 713 714 715
nodist_libsystemd_core_la_SOURCES = \
        src/load-fragment-gperf.c \
        src/load-fragment-gperf-nulstr.c

716 717 718
EXTRA_DIST += \
        src/load-fragment-gperf.gperf.m4

719 720 721
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
722 723 724 725
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
726 727 728 729 730 731

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
732
	$(PAM_LIBS) \
733 734
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
735

736 737 738 739
# 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.

740
EXTRA_DIST += \
741 742
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
743
	${libsystemd_daemon_la_SOURCES:.c=.h} \
744
	src/macro.h \
745
	src/def.h \
746 747 748 749 750
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
751
	src/linux/fanotify.h \
752
	src/initreq.h \
753
	src/sd-readahead.h \
754
	src/special.h \
755
	src/dbus-common.h \
756
	src/bus-errors.h \
757
	src/cgroup-show.h \
758
	src/build.h \
759
	src/shutdownd.h \
760
	src/umount.h \
761
	src/readahead-common.h \
762 763 764 765 766 767 768 769 770 771
	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 \
772 773
        src/dbus-loop.h \
        src/spawn-agent.h
774 775

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
776
	man/systemd.1 \
777 778
	man/systemctl.1 \
	man/systemadm.1 \
779
	man/systemd-cgls.1 \
780
	man/systemd-nspawn.1 \
781
	man/systemd-tmpfiles.8 \
782
	man/systemd-notify.1 \
783
	man/sd_notify.3 \
784
	man/sd_readahead.3 \
785 786 787
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
788 789
	man/systemd.unit.5 \
	man/systemd.service.5 \
790
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
791
	man/systemd.mount.5 \
792
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
793
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
794
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
795
	man/systemd.path.5 \
796
	man/systemd.target.5 \
797
	man/systemd.device.5 \
798
	man/systemd.snapshot.5 \
799
	man/systemd.exec.5 \
800
	man/daemon.7 \
801
	man/sd-daemon.7 \
802
	man/sd-readahead.7 \
Lennart Poettering's avatar
Lennart Poettering committed
803
	man/sd-login.7 \
804
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
805 806 807
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
808
	man/pam_systemd.8 \
809
	man/systemd.conf.5 \
810
	man/systemd-logind.conf.5 \
811
	man/tmpfiles.d.5 \
812
	man/hostname.5 \
813
        man/timezone.5 \
814
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
815
	man/vconsole.conf.5 \
816
	man/locale.conf.5 \
817
	man/os-release.5 \
818
        man/machine-info.5 \