Makefile.am 82.3 KB
Newer Older
1 2
#  This file is part of systemd.
#
Kay Sievers's avatar
Kay Sievers committed
3 4
#  Copyright 2010-2012 Lennart Poettering
#  Copyright 2010-2012 Kay Sievers
5 6 7 8 9 10 11 12 13 14 15 16 17 18
#
#  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/>.

Kay Sievers's avatar
Kay Sievers committed
19 20
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
21

Kay Sievers's avatar
Kay Sievers committed
22 23 24
SUBDIRS = . po

LIBUDEV_CURRENT=13
25
LIBUDEV_REVISION=3
Kay Sievers's avatar
Kay Sievers committed
26 27 28 29 30
LIBUDEV_AGE=13

LIBGUDEV_CURRENT=1
LIBGUDEV_REVISION=1
LIBGUDEV_AGE=1
31

32
LIBSYSTEMD_LOGIN_CURRENT=2
33
LIBSYSTEMD_LOGIN_REVISION=1
34
LIBSYSTEMD_LOGIN_AGE=2
35

36
LIBSYSTEMD_DAEMON_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
37
LIBSYSTEMD_DAEMON_REVISION=1
38 39
LIBSYSTEMD_DAEMON_AGE=0

40
LIBSYSTEMD_ID128_CURRENT=0
41
LIBSYSTEMD_ID128_REVISION=3
42 43 44
LIBSYSTEMD_ID128_AGE=0

LIBSYSTEMD_JOURNAL_CURRENT=0
45
LIBSYSTEMD_JOURNAL_REVISION=3
46 47
LIBSYSTEMD_JOURNAL_AGE=0

48
# Dirs of external packages
49 50 51 52
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
53 54
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
55
pkgconfiglibdir=$(libdir)/pkgconfig
56
polkitpolicydir=$(datadir)/polkit-1/actions
57
bashcompletiondir=$(sysconfdir)/bash_completion.d
58

59
# Our own, non-special dirs
60
pkgsysconfdir=$(sysconfdir)/systemd
61
userunitdir=$(prefix)/lib/systemd/user
62
tmpfilesdir=$(prefix)/lib/tmpfiles.d
63
sysctldir=$(prefix)/lib/sysctl.d
64
usergeneratordir=$(pkglibexecdir)/user-generators
65
pkgincludedir=$(includedir)/systemd
66 67 68
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
systemunitdir=$(rootprefix)/lib/systemd/system
Kay Sievers's avatar
Kay Sievers committed
69
udevlibexecdir=$(rootprefix)/lib/udev
70 71
udevhomedir = $(libexecdir)/udev
udevrulesdir = $(libexecdir)/udev/rules.d
72 73

# And these are the special ones for /
74 75 76
rootprefix=@rootprefix@
rootbindir=$(rootprefix)/bin
rootlibexecdir=$(rootprefix)/lib/systemd
77

78 79
CLEANFILES =
EXTRA_DIST =
Kay Sievers's avatar
Kay Sievers committed
80
BUILT_SOURCES =
81 82 83
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
Kay Sievers's avatar
Kay Sievers committed
84 85
DISTCHECK_HOOKS =
DISTCLEAN_LOCAL_HOOKS =
86
pkginclude_HEADERS =
87
noinst_LTLIBRARIES =
88
lib_LTLIBRARIES =
Kay Sievers's avatar
Kay Sievers committed
89
include_HEADERS =
90
pkgconfiglib_DATA =
91
polkitpolicy_in_files =
92
dist_udevrules_DATA =
Kay Sievers's avatar
Kay Sievers committed
93 94
nodist_udevrules_DATA =
dist_man_MANS =
95

96
AM_CPPFLAGS = \
97
	-include $(top_builddir)/config.h \
Kay Sievers's avatar
Kay Sievers committed
98
	-DSYSCONFDIR=\""$(sysconfdir)"\" \
99
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
100
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
101
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
102
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
103
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
104 105 106
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
107
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
108
	-DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
109
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
110
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
111
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
112
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
113
	-DROOTPREFIX=\"$(rootprefix)\" \
114
	-DRUNTIME_DIR=\"/run\" \
115
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
116
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
117
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
118
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
119
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
120
	-DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
Kay Sievers's avatar
Kay Sievers committed
121 122
	-DX_SERVER=\"$(bindir)/X\" \
	-DUDEVLIBEXECDIR=\""$(libexecdir)/udev"\" \
123
	-I $(top_srcdir)/src \
124
	-I $(top_srcdir)/src/shared \
125
	-I $(top_srcdir)/src/readahead \
126
	-I $(top_srcdir)/src/login \
127
	-I $(top_srcdir)/src/journal \
Kay Sievers's avatar
Kay Sievers committed
128 129
	-I $(top_srcdir)/src/systemd \
	-I $(top_srcdir)/src/udev
130

131
AM_CFLAGS = $(WARNINGFLAGS)
132
AM_LDFLAGS = $(GCLDFLAGS)
133

134
# ------------------------------------------------------------------------------
135 136 137 138 139 140
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
141 142 143 144 145 146
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
147 148 149 150 151 152
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
153 154 155 156 157 158
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
159 160 161 162 163 164
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
165 166 167 168 169 170
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
171
if TARGET_MAGEIA
172 173 174
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
175
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
Dexter Morgan's avatar
Dexter Morgan committed
176 177 178 179
else
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
180
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
181
endif
182
endif
183
endif
184
endif
185
endif
Chris E Ferron's avatar
Chris E Ferron committed
186
endif
Koen Kooi's avatar
Koen Kooi committed
187
endif
188

189
# ------------------------------------------------------------------------------
190
rootbin_PROGRAMS = \
191
	systemctl \
192
	systemd-notify \
193
	systemd-ask-password \
194
	systemd-tty-ask-password-agent \
195
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
196
	systemd-machine-id-setup
197

198
bin_PROGRAMS = \
199
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
200
	systemd-cgtop \
201
	systemd-stdio-bridge \
202
	systemd-nspawn
203

204
dist_bin_SCRIPTS = \
205
	src/systemd-analyze
206

207
rootlibexec_PROGRAMS = \
208
	systemd \
209
	systemd-cgroups-agent \
210
	systemd-initctl \
211
	systemd-update-utmp \
212
	systemd-shutdownd \
213
	systemd-shutdown \
214
	systemd-modules-load \
215
	systemd-remount-api-vfs \
216
	systemd-reply-password \
217
	systemd-fsck \
218
	systemd-timestamp \
219
	systemd-ac-power \
220
	systemd-detect-virt \
Kay Sievers's avatar
Kay Sievers committed
221
	systemd-sysctl
222

223
systemgenerator_PROGRAMS = \
224
	systemd-getty-generator
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 237
	test-install \
        test-watchdog
238

239
dist_pkgsysconf_DATA = \
240
	src/system.conf \
241
	src/user.conf
242

243
dist_dbuspolicy_DATA = \
244
	src/org.freedesktop.systemd1.conf
245

246
dist_dbussystemservice_DATA = \
247
	src/org.freedesktop.systemd1.service
248 249

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

264
dist_bashcompletion_DATA = \
265
	src/systemd-bash-completion.sh
266

267 268
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
269
	tmpfiles.d/tmp.conf \
270 271
	tmpfiles.d/x11.conf

272 273
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
274
	tmpfiles.d/legacy.conf
275 276
endif

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

328
nodist_systemunit_DATA = \
329
	units/getty@.service \
330
	units/serial-getty@.service \
331
	units/console-shell.service \
332
	units/systemd-initctl.service \
333
	units/systemd-shutdownd.service \
334
	units/systemd-modules-load.service \
335
	units/systemd-remount-api-vfs.service \
336 337
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
338 339
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
340
	units/systemd-ask-password-wall.service \
341
	units/systemd-ask-password-console.service \
342
	units/systemd-sysctl.service \
343
	units/halt.service \
344
	units/emergency.service \
345 346
	units/poweroff.service \
	units/reboot.service \
347 348
	units/kexec.service \
	units/fsck@.service \
349
	units/fsck-root.service \
350
	units/rescue.service \
Kay Sievers's avatar
Kay Sievers committed
351 352 353 354
	units/user@.service \
	units/udev.service \
	units/udev-trigger.service \
	units/udev-settle.service
355

356 357 358
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
359

360 361
nodist_userunit_DATA = \
	units/user/exit.service
362

363
EXTRA_DIST += \
364
	units/getty@.service.m4 \
365
	units/serial-getty@.service.m4 \
366 367
	units/console-shell.service.m4.in \
	units/rescue.service.m4.in \
368
	units/systemd-initctl.service.in \
369
	units/systemd-shutdownd.service.in \
370
	units/systemd-modules-load.service.in \
371
	units/systemd-remount-api-vfs.service.in \
372 373
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
374 375
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
376
	units/systemd-ask-password-wall.service.in \
377
	units/systemd-ask-password-console.service.in \
378
	units/systemd-sysctl.service.in \
379
	units/emergency.service.in \
380 381 382
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
383
	units/kexec.service.in \
384
	units/user/exit.service.in \
385 386
	units/fsck@.service.in \
	units/fsck-root.service.in \
Kay Sievers's avatar
Kay Sievers committed
387
	units/user@.service.in \
Kay Sievers's avatar
Kay Sievers committed
388 389 390
	units/udev.service \
	units/udev-trigger.service \
	units/udev-settle.service \
391
	src/systemd.pc.in \
392
	introspect.awk \
393
	man/custom-html.xsl
394

395 396 397 398
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
399
	units/fedora/halt-local.service
400 401
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
402 403
endif

404 405 406 407 408
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
409 410
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
411 412
endif

413 414 415 416 417
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

418 419 420 421
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
422 423
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
424 425
endif

Dexter Morgan's avatar
Dexter Morgan committed
426 427 428 429 430
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
431 432
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
433 434
endif

435 436 437 438 439
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
440
	units/plymouth-quit-wait.service \
441 442 443
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
444 445 446 447 448 449 450 451
	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
452 453
endif

454 455
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
456
	NEWS \
457
	LICENSE \
458
	DISTRO_PORTING
459

460
pkgconfigdata_DATA = \
461
	src/systemd.pc
462

463 464 465 466 467
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
468 469
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
470 471

EXTRA_DIST += \
472 473
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
474

475
@INTLTOOL_POLICY_RULE@
476

477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552
# ------------------------------------------------------------------------------
MANPAGES = \
	man/systemd.1 \
	man/systemctl.1 \
	man/systemd-cgls.1 \
	man/systemd-cgtop.1 \
	man/systemd-nspawn.1 \
	man/systemd-tmpfiles.8 \
	man/systemd-notify.1 \
	man/systemd.unit.5 \
	man/systemd.service.5 \
	man/systemd.socket.5 \
	man/systemd.mount.5 \
	man/systemd.automount.5 \
	man/systemd.swap.5 \
	man/systemd.timer.5 \
	man/systemd.path.5 \
	man/systemd.target.5 \
	man/systemd.device.5 \
	man/systemd.snapshot.5 \
	man/systemd.exec.5 \
	man/systemd.special.7 \
	man/systemd.journal-fields.7 \
	man/daemon.7 \
	man/runlevel.8 \
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
	man/pam_systemd.8 \
	man/systemd.conf.5 \
	man/tmpfiles.d.5 \
	man/hostname.5 \
	man/timezone.5 \
	man/machine-id.5 \
	man/locale.conf.5 \
	man/os-release.5 \
	man/machine-info.5 \
	man/modules-load.d.5 \
	man/sysctl.d.5 \
	man/systemd-ask-password.1 \
	man/systemd-cat.1 \
	man/systemd-machine-id-setup.1 \
	man/journald.conf.5 \
	man/journalctl.1 \
	man/udev.7 \
	man/udevadm.8 \
	man/udevd.8

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
	man/init.1

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1

XML_FILES = \
	${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}

if ENABLE_MANPAGES
man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)

noinst_DATA = \
	${XML_FILES:.xml=.html}
endif

EXTRA_DIST += \
	$(XML_FILES) \
	${XML_FILES:.xml=.html} \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)

# ------------------------------------------------------------------------------
553 554
noinst_LTLIBRARIES += \
	libsystemd-basic.la
555 556

libsystemd_basic_la_SOURCES = \
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580
	src/shared/util.c \
	src/shared/util.h \
	src/shared/virt.c \
	src/shared/virt.h \
	src/shared/label.c \
	src/shared/label.h \
	src/shared/hashmap.c \
	src/shared/hashmap.h \
	src/shared/set.c \
	src/shared/set.h \
	src/shared/strv.c \
	src/shared/strv.h \
	src/shared/conf-parser.c \
	src/shared/conf-parser.h \
	src/shared/socket-util.c \
	src/shared/socket-util.h \
	src/shared/log.c \
	src/shared/log.h \
	src/shared/ratelimit.h \
	src/shared/ratelimit.c \
	src/shared/exit-status.c \
	src/shared/exit-status.h \
	src/shared/utf8.c \
	src/shared/utf8.h
581

582 583 584 585 586
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
587 588 589 590
	libsystemd-capability.la \
	$(SELINUX_LIBS)

# ------------------------------------------------------------------------------
591 592 593
noinst_LTLIBRARIES += \
	libsystemd-capability.la

594 595 596 597 598 599 600 601 602
libsystemd_capability_la_SOURCES = \
	src/shared/capability.c \
	src/shared/capability.h

libsystemd_capability_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(CAP_CFLAGS)

libsystemd_capability_la_LIBADD = \
603
	$(CAP_LIBS)
604

605
# ------------------------------------------------------------------------------
606 607 608
noinst_LTLIBRARIES += \
	libsystemd-audit.la

609 610 611 612 613 614 615
libsystemd_audit_la_SOURCES = \
	src/shared/audit.c \
	src/shared/audit.h

libsystemd_audit_la_LIBADD = \
	libsystemd-capability.la

616
# ------------------------------------------------------------------------------
617 618 619
noinst_LTLIBRARIES += \
	libsystemd-acl.la

620 621 622 623 624 625 626 627 628 629 630
libsystemd_acl_la_SOURCES = \
	src/shared/acl.c \
	src/shared/acl.h

libsystemd_acl_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(ACL_CFLAGS)

libsystemd_acl_la_LIBADD = \
	$(ACL_LIBS)

631
# ------------------------------------------------------------------------------
632 633 634
noinst_LTLIBRARIES += \
	libsystemd-core.la

635
libsystemd_core_la_SOURCES = \
636
	src/unit.c \
637
	src/unit.h \
638
	src/job.c \
639
	src/job.h \
640
	src/manager.c \
641
	src/manager.h \
642
	src/path-lookup.c \
643
	src/path-lookup.h \
644
	src/load-fragment.c \
645
	src/load-fragment.h \
646
	src/service.c \
647
	src/service.h \
648
	src/automount.c \
649
	src/automount.h \
650
	src/mount.c \
651
	src/mount.h \
652
	src/swap.c \
653
	src/swap.h \
654
	src/device.c \
655
	src/device.h \
656
	src/target.c \
657
	src/target.h \
658
	src/snapshot.c \
659
	src/snapshot.h \
660
	src/socket.c \
661
	src/socket.h \
662
	src/timer.c \
663
	src/timer.h \
664
	src/path.c \
665
	src/path.h \
666
	src/load-dropin.c \
667
	src/load-dropin.h \
668
	src/execute.c \
669
	src/execute.h \
670
	src/utmp-wtmp.c \
671
	src/utmp-wtmp.h \
672
	src/dbus.c \
673
	src/dbus.h \
674
	src/dbus-manager.c \
675
	src/dbus-manager.h \
676
	src/dbus-unit.c \
677
	src/dbus-unit.h \
678
	src/dbus-job.c \
679
	src/dbus-job.h \
680
	src/dbus-service.c \
681
	src/dbus-service.h \
682
	src/dbus-socket.c \
683
	src/dbus-socket.h \
684
	src/dbus-timer.c \
685
	src/dbus-timer.h \
686
	src/dbus-target.c \
687
	src/dbus-target.h \
688
	src/dbus-mount.c \
689
	src/dbus-mount.h \
690
	src/dbus-automount.c \
691
	src/dbus-automount.h \
692
	src/dbus-swap.c \
693
	src/dbus-swap.h \
694
	src/dbus-snapshot.c \
695
	src/dbus-snapshot.h \
696
	src/dbus-device.c \
697
	src/dbus-device.h \
698
	src/dbus-execute.c \
699
	src/dbus-execute.h \
700
	src/dbus-path.c \
701
	src/dbus-path.h \
702
	src/cgroup.c \
703
	src/cgroup.h \
704
	src/mount-setup.c \
705
	src/mount-setup.h \
706
	src/hostname-setup.c \
707
	src/hostname-setup.h \
708
	src/selinux-setup.c \
709
	src/selinux-setup.h \
710
	src/ima-setup.c \
711 712
	src/ima-setup.h \
	src/loopback-setup.h \
713
	src/loopback-setup.c \
714
	src/kmod-setup.c \
715 716
	src/kmod-setup.h \
	src/locale-setup.h \
717
	src/locale-setup.c \
718
	src/machine-id-setup.c \
719
	src/machine-id-setup.h \
720
	src/fdset.c \
721
	src/fdset.h \
722
	src/cgroup-util.c \
723
	src/cgroup-util.h \
724
	src/condition.c \
725
	src/condition.h \
726
	src/dbus-common.c \
727
	src/dbus-common.h \
728
	src/install.c \
729 730
	src/install.h \
	src/specifier.c \
731
	src/specifier.h \
732
	src/namespace.c \
733
	src/namespace.h \
734
	src/unit-name.c \
735
	src/unit-name.h \
736
	src/tcpwrap.c \
737
	src/tcpwrap.h \
738
	src/cgroup-attr.c \
739
	src/cgroup-attr.h \
740 741
	src/watchdog.c \
	src/watchdog.h \
742 743
	src/sd-daemon.c \
	src/sd-id128.c \
744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766
	src/macro.h \
	src/def.h \
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
	src/linux/fanotify.h \
	src/initreq.h \
	src/special.h \
	src/dbus-common.h \
	src/bus-errors.h \
	src/cgroup-show.h \
	src/build.h \
	src/shutdownd.h \
	src/umount.h \
	src/ask-password-api.h \
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
	src/logs-show.h
767

768
nodist_libsystemd_core_la_SOURCES = \
769 770
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
771

772
EXTRA_DIST += \
773
	src/load-fragment-gperf.gperf.m4
774

775 776 777
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
778 779
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
780 781
	$(AUDIT_CFLAGS) \
	$(KMOD_CFLAGS)
782 783 784

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \