Makefile.am 83.8 KB
Newer Older
1 2
#  -*- Mode: makefile; indent-tabs-mode: t -*- */
#
3 4
#  This file is part of systemd.
#
Kay Sievers's avatar
Kay Sievers committed
5 6
#  Copyright 2010-2012 Lennart Poettering
#  Copyright 2010-2012 Kay Sievers
7 8
#
#  systemd is free software; you can redistribute it and/or modify it
9 10
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
11 12 13 14 15
#  (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
16
#  Lesser General Public License for more details.
17
#
18
#  You should have received a copy of the GNU Lesser General Public License
19 20
#  along with systemd; If not, see <http://www.gnu.org/licenses/>.

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

Kay Sievers's avatar
Kay Sievers committed
24 25 26
SUBDIRS = . po

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

LIBGUDEV_CURRENT=1
LIBGUDEV_REVISION=1
LIBGUDEV_AGE=1
33

34
LIBSYSTEMD_LOGIN_CURRENT=2
35
LIBSYSTEMD_LOGIN_REVISION=1
36
LIBSYSTEMD_LOGIN_AGE=2
37

38
LIBSYSTEMD_DAEMON_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
39
LIBSYSTEMD_DAEMON_REVISION=1
40 41
LIBSYSTEMD_DAEMON_AGE=0

42
LIBSYSTEMD_ID128_CURRENT=0
43
LIBSYSTEMD_ID128_REVISION=3
44 45 46
LIBSYSTEMD_ID128_AGE=0

LIBSYSTEMD_JOURNAL_CURRENT=0
47
LIBSYSTEMD_JOURNAL_REVISION=3
48 49
LIBSYSTEMD_JOURNAL_AGE=0

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

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

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

80 81
CLEANFILES =
EXTRA_DIST =
Kay Sievers's avatar
Kay Sievers committed
82
BUILT_SOURCES =
83 84 85
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
Kay Sievers's avatar
Kay Sievers committed
86 87
DISTCHECK_HOOKS =
DISTCLEAN_LOCAL_HOOKS =
88
pkginclude_HEADERS =
89
noinst_LTLIBRARIES =
90
lib_LTLIBRARIES =
Kay Sievers's avatar
Kay Sievers committed
91
include_HEADERS =
92
pkgconfiglib_DATA =
93
polkitpolicy_in_files =
94
dist_udevrules_DATA =
Kay Sievers's avatar
Kay Sievers committed
95 96
nodist_udevrules_DATA =
dist_man_MANS =
97 98 99 100
dist_pkgsysconf_DATA =
dist_dbuspolicy_DATA =
dbusinterface_DATA =
dist_dbussystemservice_DATA =
101

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

137
AM_CFLAGS = $(WARNINGFLAGS)
138
AM_LDFLAGS = $(GCLDFLAGS)
139

140
# ------------------------------------------------------------------------------
141 142 143 144 145 146
if TARGET_GENTOO
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_ARCH
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_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
159 160 161 162 163 164
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
165 166 167 168 169 170
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
171 172 173 174 175 176
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
177
if TARGET_MAGEIA
178 179 180
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
181
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
Dexter Morgan's avatar
Dexter Morgan committed
182 183 184 185
else
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
186
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
187
endif
188
endif
189
endif
190
endif
191
endif
Chris E Ferron's avatar
Chris E Ferron committed
192
endif
Koen Kooi's avatar
Koen Kooi committed
193
endif
194

195
# ------------------------------------------------------------------------------
196
rootbin_PROGRAMS = \
197
	systemctl \
198
	systemd-notify \
199
	systemd-ask-password \
200
	systemd-tty-ask-password-agent \
201
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
202
	systemd-machine-id-setup
203

204
bin_PROGRAMS = \
205
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
206
	systemd-cgtop \
207
	systemd-stdio-bridge \
208
	systemd-nspawn
209

210
dist_bin_SCRIPTS = \
211
	src/systemd-analyze
212

213
rootlibexec_PROGRAMS = \
214
	systemd \
215
	systemd-cgroups-agent \
216
	systemd-initctl \
217
	systemd-update-utmp \
218
	systemd-shutdownd \
219
	systemd-shutdown \
220
	systemd-modules-load \
221
	systemd-remount-api-vfs \
222
	systemd-reply-password \
223
	systemd-fsck \
224
	systemd-timestamp \
225
	systemd-ac-power \
226
	systemd-detect-virt \
Kay Sievers's avatar
Kay Sievers committed
227
	systemd-sysctl
228

229
systemgenerator_PROGRAMS = \
230
	systemd-getty-generator
231

232 233
noinst_PROGRAMS = \
	test-engine \
234
	test-job-type \
235
	test-ns \
236
	test-loopback \
237
	test-hostname \
238
	test-daemon \
239
	test-cgroup \
240
	test-env-replace \
241
	test-strv \
242
	test-install \
Kay Sievers's avatar
Kay Sievers committed
243
	test-watchdog
244

245
dist_bashcompletion_DATA = \
246
	src/systemd-bash-completion.sh
247

248 249
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
250
	tmpfiles.d/tmp.conf \
251 252
	tmpfiles.d/x11.conf

253 254
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
255
	tmpfiles.d/legacy.conf
256 257
endif

258
dist_systemunit_DATA = \
259 260
	units/graphical.target \
	units/multi-user.target \
261
	units/emergency.service \
262
	units/emergency.target \
263
	units/sysinit.target \
264
	units/basic.target \
265 266
	units/getty.target \
	units/halt.target \
267
	units/kexec.target \
268
	units/local-fs.target \
269
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
270
	units/remote-fs.target \
271
	units/remote-fs-pre.target \
272 273
	units/network.target \
	units/nss-lookup.target \
274
	units/nss-user-lookup.target \
275
	units/mail-transfer-agent.target \
276
	units/http-daemon.target \
277 278 279
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
280
	units/rpcbind.target \
281
	units/time-sync.target \
282
	units/shutdown.target \
283
	units/final.target \
284
	units/umount.target \
285 286 287
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
288
	units/systemd-initctl.socket \
289
	units/systemd-shutdownd.socket \
290
	units/syslog.socket \
291 292
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
293
	units/sys-kernel-config.mount \
294
	units/sys-kernel-debug.mount \
295
	units/sys-fs-fuse-connections.mount \
Kay Sievers's avatar
Kay Sievers committed
296
	units/tmp.mount \
297
	units/remount-rootfs.service \
298
	units/printer.target \
299
	units/sound.target \
300
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
301
	units/smartcard.target \
302
	units/systemd-tmpfiles-clean.timer \
303
	units/quotaon.service \
304
	units/systemd-ask-password-wall.path \
305
	units/systemd-ask-password-console.path \
Kay Sievers's avatar
Kay Sievers committed
306 307 308
	units/syslog.target \
	units/udev-control.socket \
	units/udev-kernel.socket
309

310
nodist_systemunit_DATA = \
311
	units/getty@.service \
312
	units/serial-getty@.service \
313
	units/console-shell.service \
314
	units/systemd-initctl.service \
315
	units/systemd-shutdownd.service \
316
	units/systemd-modules-load.service \
317
	units/systemd-remount-api-vfs.service \
318 319
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
320 321
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
322
	units/systemd-ask-password-wall.service \
323
	units/systemd-ask-password-console.service \
324
	units/systemd-sysctl.service \
325
	units/halt.service \
326
	units/emergency.service \
327 328
	units/poweroff.service \
	units/reboot.service \
329 330
	units/kexec.service \
	units/fsck@.service \
331
	units/fsck-root.service \
332
	units/rescue.service \
Kay Sievers's avatar
Kay Sievers committed
333 334 335 336
	units/user@.service \
	units/udev.service \
	units/udev-trigger.service \
	units/udev-settle.service
337

338 339 340
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
341

342 343
nodist_userunit_DATA = \
	units/user/exit.service
344

345
EXTRA_DIST += \
346
	units/getty@.service.m4 \
347
	units/serial-getty@.service.m4 \
348 349
	units/console-shell.service.m4.in \
	units/rescue.service.m4.in \
350
	units/systemd-initctl.service.in \
351
	units/systemd-shutdownd.service.in \
352
	units/systemd-modules-load.service.in \
353
	units/systemd-remount-api-vfs.service.in \
354 355
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
356 357
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
358
	units/systemd-ask-password-wall.service.in \
359
	units/systemd-ask-password-console.service.in \
360
	units/systemd-sysctl.service.in \
361
	units/emergency.service.in \
362 363 364
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
365
	units/kexec.service.in \
366
	units/user/exit.service.in \
367 368
	units/fsck@.service.in \
	units/fsck-root.service.in \
Kay Sievers's avatar
Kay Sievers committed
369
	units/user@.service.in \
Kay Sievers's avatar
Kay Sievers committed
370 371 372
	units/udev.service \
	units/udev-trigger.service \
	units/udev-settle.service \
373
	introspect.awk \
374
	man/custom-html.xsl
375

376 377 378 379
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
380
	units/fedora/halt-local.service
381 382
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
383 384
endif

385 386 387 388 389
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
390 391
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
392 393
endif

394 395 396 397 398
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

399 400 401 402
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
403 404
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
405 406
endif

Dexter Morgan's avatar
Dexter Morgan committed
407 408 409 410 411
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
412 413
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
414 415
endif

416 417 418 419 420
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
421
	units/plymouth-quit-wait.service \
422 423 424
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
425 426 427 428 429 430 431 432
	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
433 434
endif

435 436
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
437
	NEWS \
438
	LICENSE.LGPL2.1 \
439 440
	LICENSE.GPL2 \
	LICENSE.MIT \
441
	DISTRO_PORTING
442

443
@INTLTOOL_POLICY_RULE@
444

445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
# ------------------------------------------------------------------------------
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 \
488
	man/journalctl.1
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

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)

# ------------------------------------------------------------------------------
518
noinst_LTLIBRARIES += \
519
	libsystemd-shared.la
520

521
libsystemd_shared_la_SOURCES = \
522 523 524
	src/missing.h \
	src/linux/auto_dev-ioctl.h \
	src/linux/fanotify.h \
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543
	src/shared/util.c \
	src/shared/util.h \
	src/shared/virt.c \
	src/shared/virt.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/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 \
Kay Sievers's avatar
Kay Sievers committed
544
	src/shared/utf8.h \
Kay Sievers's avatar
Kay Sievers committed
545
	src/shared/pager.c \
546 547
	src/shared/pager.h \
	src/shared/ioprio.h \
548 549 550 551
	src/shared/socket-util.c \
	src/shared/socket-util.h \
	src/shared/cgroup-util.c \
	src/shared/cgroup-util.h \
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567
	src/shared/dbus-common.c \
	src/shared/dbus-common.h \
	src/shared/logs-show.c \
	src/shared/logs-show.h \
	src/shared/cgroup-show.c \
	src/shared/cgroup-show.h \
	src/shared/unit-name.c \
	src/shared/unit-name.h \
	src/shared/utmp-wtmp.c \
	src/shared/utmp-wtmp.h \
	src/shared/watchdog.c \
	src/shared/watchdog.h \
	src/shared/spawn-ask-password-agent.c \
	src/shared/spawn-ask-password-agent.h \
	src/shared/mount-setup.c \
	src/shared/mount-setup.h \
568 569
	src/shared/machine-id-setup.c \
	src/shared/machine-id-setup.h \
570 571 572 573 574 575
	src/shared/loopback-setup.h \
	src/shared/loopback-setup.c \
	src/shared/specifier.c \
	src/shared/specifier.h \
	src/shared/spawn-polkit-agent.c \
	src/shared/spawn-polkit-agent.h \
576
	src/shared/list.h \
577 578
	src/shared/macro.h \
	src/shared/ask-password-api.h
579

580 581 582 583
libsystemd_shared_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

584 585
# ------------------------------------------------------------------------------
noinst_LTLIBRARIES += \
586
	libsystemd-label.la
587

588
libsystemd_label_la_SOURCES = \
589 590 591 592
	src/shared/install.c \
	src/shared/install.h \
	src/shared/path-lookup.c \
	src/shared/path-lookup.h \
593 594
	src/shared/cgroup-label.c \
	src/shared/socket-label.c \
595 596 597 598 599
	src/shared/label.c \
	src/shared/label.h \
	src/shared/mkdir.c \
	src/shared/mkdir.h

600
libsystemd_label_la_CFLAGS = \
601
	$(AM_CFLAGS) \
602
	$(DBUS_CFLAGS) \
603 604
	$(SELINUX_CFLAGS)

605
libsystemd_label_la_LIBADD = \
606 607 608
	$(SELINUX_LIBS)

# ------------------------------------------------------------------------------
609 610 611
noinst_LTLIBRARIES += \
	libsystemd-capability.la

612 613 614 615 616 617 618 619 620
libsystemd_capability_la_SOURCES = \
	src/shared/capability.c \
	src/shared/capability.h

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

libsystemd_capability_la_LIBADD = \
621
	$(CAP_LIBS)
622

623
# ------------------------------------------------------------------------------
624 625 626
noinst_LTLIBRARIES += \
	libsystemd-audit.la

627 628 629 630 631 632 633
libsystemd_audit_la_SOURCES = \
	src/shared/audit.c \
	src/shared/audit.h

libsystemd_audit_la_LIBADD = \
	libsystemd-capability.la

634
# ------------------------------------------------------------------------------
635
if HAVE_ACL
636 637 638
noinst_LTLIBRARIES += \
	libsystemd-acl.la

639
libsystemd_acl_la_SOURCES = \
640 641
	src/shared/acl-util.c \
	src/shared/acl-util.h
642 643 644 645 646 647 648

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

libsystemd_acl_la_LIBADD = \
	$(ACL_LIBS)
649
endif
650

651
# ------------------------------------------------------------------------------
652 653 654
noinst_LTLIBRARIES += \
	libsystemd-core.la

655
libsystemd_core_la_SOURCES = \
656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728
	src/def.h \
	src/core/unit.c \
	src/core/unit.h \
	src/core/job.c \
	src/core/job.h \
	src/core/manager.c \
	src/core/manager.h \
	src/core/load-fragment.c \
	src/core/load-fragment.h \
	src/core/service.c \
	src/core/service.h \
	src/core/automount.c \
	src/core/automount.h \
	src/core/mount.c \
	src/core/mount.h \
	src/core/swap.c \
	src/core/swap.h \
	src/core/device.c \
	src/core/device.h \
	src/core/target.c \
	src/core/target.h \
	src/core/snapshot.c \
	src/core/snapshot.h \
	src/core/socket.c \
	src/core/socket.h \
	src/core/timer.c \
	src/core/timer.h \
	src/core/path.c \
	src/core/path.h \
	src/core/load-dropin.c \
	src/core/load-dropin.h \
	src/core/execute.c \
	src/core/execute.h \
	src/core/dbus.c \
	src/core/dbus.h \
	src/core/dbus-manager.c \
	src/core/dbus-manager.h \
	src/core/dbus-unit.c \
	src/core/dbus-unit.h \
	src/core/dbus-job.c \
	src/core/dbus-job.h \
	src/core/dbus-service.c \
	src/core/dbus-service.h \
	src/core/dbus-socket.c \
	src/core/dbus-socket.h \
	src/core/dbus-timer.c \
	src/core/dbus-timer.h \
	src/core/dbus-target.c \
	src/core/dbus-target.h \
	src/core/dbus-mount.c \
	src/core/dbus-mount.h \
	src/core/dbus-automount.c \
	src/core/dbus-automount.h \
	src/core/dbus-swap.c \
	src/core/dbus-swap.h \
	src/core/dbus-snapshot.c \
	src/core/dbus-snapshot.h \
	src/core/dbus-device.c \
	src/core/dbus-device.h \
	src/core/dbus-execute.c \
	src/core/dbus-execute.h \
	src/core/dbus-path.c \
	src/core/dbus-path.h \
	src/core/cgroup.c \
	src/core/cgroup.h \
	src/core/selinux-setup.c \
	src/core/selinux-setup.h \
	src/core/ima-setup.c \
	src/core/ima-setup.h \
	src/core/kmod-setup.c \
	src/core/kmod-setup.h \
	src/core/locale-setup.h \
	src/core/locale-setup.c \
729 730
	src/core/hostname-setup.c \
	src/core/hostname-setup.h \
731 732 733 734 735 736 737 738 739 740 741 742 743 744 745
	src/core/fdset.c \
	src/core/fdset.h \
	src/core/condition.c \
	src/core/condition.h \
	src/core/namespace.c \
	src/core/namespace.h \
	src/core/tcpwrap.c \
	src/core/tcpwrap.h \
	src/core/cgroup-attr.c \
	src/core/cgroup-attr.h \
	src/core/securebits.h \
	src/core/initreq.h \
	src/core/special.h \
	src/core/bus-errors.h \
	src/core/build.h \
746
	src/core/sysfs-show.h
747

748
nodist_libsystemd_core_la_SOURCES = \
749 750
	src/core/load-fragment-gperf.c \
	src/core/load-fragment-gperf-nulstr.c
751

752 753 754
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
755 756
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
757 758
	$(AUDIT_CFLAGS) \
	$(KMOD_CFLAGS)
759 760

libsystemd_core_la_LIBADD = \
761
	libsystemd-capability.la \
762 763
	libsystemd-label.la \
	libsystemd-shared.la \
Kay Sievers's avatar
Kay Sievers committed
764
	libudev.la \
765 766
	$(DBUS_LIBS) \
	$(LIBWRAP_LIBS) \
767
	$(PAM_LIBS) \
768
	$(AUDIT_LIBS) \
769 770
	$(CAP_LIBS) \
	$(KMOD_LIBS)
771

772 773 774 775 776 777 778 779 780 781 782 783
src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
	$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@ || rm $@

EXTRA_DIST += \
	src/core/load-fragment-gperf.gperf.m4

CLEANFILES += \
	src/core/load-fragment-gperf.gperf \
	src/core/load-fragment-gperf.c \
	src/core/load-fragment-gperf-nulstr.c

784
# ------------------------------------------------------------------------------
785
systemd_SOURCES = \
786
	src/core/main.c
787

788 789
systemd_CFLAGS = \
	$(AM_CFLAGS) \
Kay Sievers's avatar
Kay Sievers committed
790
	$(DBUS_CFLAGS)
791 792

systemd_LDADD = \
793
	libsystemd-core.la \
794
	libsystemd-daemon.la \
795
	libsystemd-id128.la
796

797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835
dist_pkgsysconf_DATA += \
	src/core/system.conf \
	src/core/user.conf

dist_dbuspolicy_DATA += \
	src/core/org.freedesktop.systemd1.conf

dist_dbussystemservice_DATA += \
	src/core/org.freedesktop.systemd1.service

dbusinterface_DATA += \
	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 \
	org.freedesktop.systemd1.Timer.xml \
	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 \
	org.freedesktop.systemd1.Swap.xml \
	org.freedesktop.systemd1.Path.xml

polkitpolicy_in_in_files = \
	src/core/org.freedesktop.systemd1.policy.in.in

org.freedesktop.systemd1.%.xml: systemd
	$(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
		$(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
		$(DBUS_PREPROCESS) -o $@ - && rm $@.tmp

pkgconfigdata_DATA = \
	src/core/systemd.pc

EXTRA_DIST += \
	src/core/systemd.pc.in

836
# ------------------------------------------------------------------------------
837
test_engine_SOURCES = \
838
	src/test/test-engine.c
839

840 841 842 843 844
test_engine_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

test_engine_LDADD = \
845 846
	libsystemd-core.la \
	libsystemd-daemon.la
847 848

test_job_type_SOURCES = \
849
	src/test/test-job-type.c
850

851 852 853 854 855 856
test_job_type_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

test_job_type_LDADD = \
	libsystemd-core.la
857

858
test_ns_SOURCES = \
859
	src/test/test-ns.c
860

861 862
test_ns_LDADD = \
	libsystemd-core.la
863

864
test_loopback_SOURCES = \
865
	src/test/test-loopback.c
866

867
test_loopback_LDADD = \
868
	libsystemd-shared.la
869

870
test_hostname_SOURCES = \
871
	src/test/test-hostname.c
872 873

test_hostname_LDADD = \
874
	libsystemd-core.la
875

876
test_daemon_SOURCES = \
877
	src/test/test-daemon.c
878

879
test_daemon_LDADD = \
880
	libsystemd-shared.la \
881
	libsystemd-daemon.la
882

883
test_cgroup_SOURCES = \
884
	src/test/test-cgroup.c
885 886

test_cgroup_LDADD = \
887 888
	libsystemd-label.la \
	libsystemd-shared.la
889

890
test_env_replace_SOURCES = \
891
	src/test/test-env-replace.c
892 893

test_env_replace_LDADD = \
894
	libsystemd-shared.la
895