Makefile.am 51.4 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=4
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-stdout-syslog-bridge \
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 175
        systemd-logind \
        systemd-uaccess
176

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

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

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

192 193 194 195 196
if ENABLE_LOCALED
rootlibexec_PROGRAMS += \
	systemd-localed
endif

197
systemgenerator_PROGRAMS = \
198
	systemd-getty-generator
199

200 201 202 203
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

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

208
lib_LTLIBRARIES = \
209
	libsystemd-daemon.la \
210
	libsystemd-login.la
211 212

pkginclude_HEADERS = \
213 214
	src/sd-daemon.h \
	src/sd-login.h
215

216 217
noinst_PROGRAMS = \
	test-engine \
218
	test-job-type \
219
	test-ns \
220
	test-loopback \
221
	test-hostname \
222
	test-daemon \
223
	test-cgroup \
224
	test-env-replace \
225
	test-strv \
226 227
        test-login \
        test-install
228 229 230 231 232

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
233

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

445 446 447
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
448

449 450
nodist_userunit_DATA = \
	units/user/exit.service
451

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

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

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

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

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

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

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

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

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

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

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

569
pkgconfigdata_DATA = \
570 571 572
	systemd.pc

pkgconfiglib_DATA = \
573
        libsystemd-daemon.pc \
574
        libsystemd-login.pc
575

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

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

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

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

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

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

607
@INTLTOOL_POLICY_RULE@
608

609 610
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
611
	libsystemd-core.la
612 613

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

625 626 627 628 629
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
630 631
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
632

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

687 688 689 690
nodist_libsystemd_core_la_SOURCES = \
        src/load-fragment-gperf.c \
        src/load-fragment-gperf-nulstr.c

691 692 693
EXTRA_DIST += \
        src/load-fragment-gperf.gperf.m4

694 695 696
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
697 698 699 700
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
701 702 703 704 705 706

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
707
	$(PAM_LIBS) \
708 709
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
710

711 712 713 714
# 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.

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

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

798 799 800 801 802
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822
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)
823 824

nodist_man_MANS = \
825
	man/systemd.special.7
826

827 828 829 830 831 832
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,${