Makefile.am 86.1 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
SUBDIRS = . po

26 27 28
LIBUDEV_CURRENT=1
LIBUDEV_REVISION=0
LIBUDEV_AGE=0
Kay Sievers's avatar
Kay Sievers committed
29 30 31 32

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
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
70
systemsleepdir=$(rootlibexecdir)/system-sleep
71
systemunitdir=$(rootprefix)/lib/systemd/system
Kay Sievers's avatar
Kay Sievers committed
72
udevlibexecdir=$(rootprefix)/lib/udev
73 74
udevhomedir = $(libexecdir)/udev
udevrulesdir = $(libexecdir)/udev/rules.d
75 76

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

81 82
CLEANFILES =
EXTRA_DIST =
Kay Sievers's avatar
Kay Sievers committed
83
BUILT_SOURCES =
84 85 86
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
Kay Sievers's avatar
Kay Sievers committed
87
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
check_PROGRAMS =
102 103
check_DATA =
noinst_PROGRAMS =
104
TESTS =
105
udevlibexec_PROGRAMS =
106

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

145
AM_CFLAGS = $(WARNINGFLAGS)
146
AM_LDFLAGS = $(GCLDFLAGS)
147

148
# ------------------------------------------------------------------------------
149 150 151 152 153 154
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
155 156 157 158 159 160
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
161 162 163 164 165 166
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
167 168 169 170 171 172
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
173 174 175 176 177 178
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
179 180 181 182 183 184
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
185
if TARGET_MAGEIA
186 187 188
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
189
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
Dexter Morgan's avatar
Dexter Morgan committed
190 191 192 193
else
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
194
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
195
endif
196
endif
197
endif
198
endif
199
endif
Chris E Ferron's avatar
Chris E Ferron committed
200
endif
Koen Kooi's avatar
Koen Kooi committed
201
endif
202

203
# ------------------------------------------------------------------------------
204
rootbin_PROGRAMS = \
205
	systemctl \
206
	systemd-notify \
207
	systemd-ask-password \
208
	systemd-tty-ask-password-agent \
209
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
210
	systemd-machine-id-setup
211

212
bin_PROGRAMS = \
213
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
214
	systemd-cgtop \
215
	systemd-stdio-bridge \
216
	systemd-nspawn \
217 218
	systemd-detect-virt \
	systemd-delta
219

220
dist_bin_SCRIPTS = \
221
	src/analyze/systemd-analyze
222

223
rootlibexec_PROGRAMS = \
224
	systemd \
225
	systemd-cgroups-agent \
226
	systemd-initctl \
227
	systemd-update-utmp \
228
	systemd-shutdownd \
229
	systemd-shutdown \
230
	systemd-modules-load \
231
	systemd-remount-fs \
232
	systemd-reply-password \
233
	systemd-fsck \
234
	systemd-timestamp \
235
	systemd-ac-power \
236 237
	systemd-sysctl \
	systemd-sleep
238

239
systemgenerator_PROGRAMS = \
240 241
	systemd-getty-generator \
	systemd-fstab-generator
242

243
dist_bashcompletion_DATA = \
244
	bash-completion/systemd-bash-completion.sh
245

246 247
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
248
	tmpfiles.d/tmp.conf \
249 250
	tmpfiles.d/x11.conf

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

256
dist_systemunit_DATA = \
257 258
	units/graphical.target \
	units/multi-user.target \
259
	units/emergency.service \
260
	units/emergency.target \
261
	units/sysinit.target \
262
	units/basic.target \
263 264
	units/getty.target \
	units/halt.target \
265
	units/kexec.target \
266
	units/local-fs.target \
267
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
268
	units/remote-fs.target \
269
	units/remote-fs-pre.target \
270 271
	units/network.target \
	units/nss-lookup.target \
272
	units/nss-user-lookup.target \
273
	units/mail-transfer-agent.target \
274
	units/hibernate.target \
275
	units/http-daemon.target \
276 277 278
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
279
	units/rpcbind.target \
280
	units/time-sync.target \
281
	units/shutdown.target \
282
	units/final.target \
283
	units/umount.target \
284
	units/sigpwr.target \
285
	units/sleep.target \
286
	units/sockets.target \
287
	units/suspend.target \
288
	units/swap.target \
289
	units/systemd-initctl.socket \
290
	units/systemd-shutdownd.socket \
291
	units/syslog.socket \
292 293
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
294
	units/sys-kernel-config.mount \
295
	units/sys-kernel-debug.mount \
296
	units/sys-fs-fuse-connections.mount \
Kay Sievers's avatar
Kay Sievers committed
297
	units/tmp.mount \
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
	units/syslog.target \
307
	units/systemd-udev-control.socket \
308 309
	units/systemd-udev-kernel.socket \
	units/systemd-timedated-ntp.target
310

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

342 343 344
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
345

346 347
nodist_userunit_DATA = \
	units/user/exit.service
348

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

383 384 385 386
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
387
	units/fedora/halt-local.service
388 389
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
390 391
endif

392 393 394 395 396
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
397 398
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
399 400
endif

401 402 403 404 405
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

406 407 408 409
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
410 411
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
412 413
endif

Dexter Morgan's avatar
Dexter Morgan committed
414 415 416 417 418
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
419 420
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
421 422
endif

423 424 425 426 427
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
428
	units/plymouth-quit-wait.service \
429 430 431
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
432 433 434 435 436 437 438 439
	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
440 441
endif

442 443
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
444
	NEWS \
445
	LICENSE.LGPL2.1 \
446 447
	LICENSE.GPL2 \
	LICENSE.MIT \
448
	DISTRO_PORTING
449

450
@INTLTOOL_POLICY_RULE@
451

452 453 454 455 456
# ------------------------------------------------------------------------------
MANPAGES = \
	man/systemd.1 \
	man/systemctl.1 \
	man/systemd-cgls.1 \
457
	man/systemd-delta.1 \
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 488 489 490 491 492 493 494
	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 \
495
	man/systemd-detect-virt.1 \
496
	man/journald.conf.5 \
497 498
	man/journalctl.1 \
	man/systemd-inhibit.1
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

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)

# ------------------------------------------------------------------------------
528
noinst_LTLIBRARIES += \
529
	libsystemd-shared.la
530

531
libsystemd_shared_la_SOURCES = \
532 533 534
	src/shared/linux/auto_dev-ioctl.h \
	src/shared/linux/fanotify.h \
	src/shared/missing.h \
535 536 537
	src/shared/list.h \
	src/shared/macro.h \
	src/shared/def.h \
538 539 540 541
	src/shared/util.c \
	src/shared/util.h \
	src/shared/virt.c \
	src/shared/virt.h \
Kay Sievers's avatar
Kay Sievers committed
542 543
	src/shared/path-util.c \
	src/shared/path-util.h \
544 545 546 547 548 549 550 551 552 553 554 555 556 557 558
	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
559
	src/shared/utf8.h \
Kay Sievers's avatar
Kay Sievers committed
560
	src/shared/pager.c \
561 562
	src/shared/pager.h \
	src/shared/ioprio.h \
563 564
	src/shared/socket-util.c \
	src/shared/socket-util.h \
Kay Sievers's avatar
Kay Sievers committed
565 566
	src/shared/conf-files.c \
	src/shared/conf-files.h \
567 568
	src/shared/cgroup-util.c \
	src/shared/cgroup-util.h \
569 570 571 572 573 574 575 576 577 578 579 580 581
	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/specifier.c \
	src/shared/specifier.h \
	src/shared/spawn-polkit-agent.c \
Kay Sievers's avatar
Kay Sievers committed
582 583 584
	src/shared/spawn-polkit-agent.h \
	src/shared/hwclock.c \
	src/shared/hwclock.h
585 586 587 588 589 590 591 592 593 594

#-------------------------------------------------------------------------------
noinst_LTLIBRARIES += \
	libsystemd-dbus.la

libsystemd_dbus_la_SOURCES = \
	src/shared/dbus-common.c \
	src/shared/dbus-common.h \
	src/shared/dbus-loop.c \
	src/shared/dbus-loop.h \
595 596
	src/shared/polkit.c \
	src/shared/polkit.h
597

598
libsystemd_dbus_la_CFLAGS = \
599 600 601
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

602 603 604
libsystemd_dbus_la_LIBADD = \
	$(DBUS_LIBS)

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

609
libsystemd_label_la_SOURCES = \
610 611 612 613
	src/shared/install.c \
	src/shared/install.h \
	src/shared/path-lookup.c \
	src/shared/path-lookup.h \
614 615
	src/shared/cgroup-label.c \
	src/shared/socket-label.c \
616 617 618
	src/shared/label.c \
	src/shared/label.h \
	src/shared/mkdir.c \
619 620
	src/shared/mkdir.h \
	src/shared/ask-password-api.c \
621 622 623
	src/shared/ask-password-api.h \
	src/shared/dev-setup.c \
	src/shared/dev-setup.h
624

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

630
libsystemd_label_la_LIBADD = \
631 632
	$(SELINUX_LIBS)

633 634 635 636 637 638 639 640 641 642 643 644 645 646 647
# ------------------------------------------------------------------------------
noinst_LTLIBRARIES += \
	libsystemd-logs.la

libsystemd_logs_la_SOURCES = \
	src/shared/logs-show.c \
	src/shared/logs-show.h

libsystemd_logs_la_CFLAGS = \
	$(AM_CFLAGS)

libsystemd_logs_la_LIBADD = \
	libsystemd-journal.la \
	libsystemd-id128.la

648
# ------------------------------------------------------------------------------
649 650 651
noinst_LTLIBRARIES += \
	libsystemd-capability.la

652 653 654 655 656 657 658 659 660
libsystemd_capability_la_SOURCES = \
	src/shared/capability.c \
	src/shared/capability.h

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

libsystemd_capability_la_LIBADD = \
661
	$(CAP_LIBS)
662

663
# ------------------------------------------------------------------------------
664 665 666
noinst_LTLIBRARIES += \
	libsystemd-audit.la

667 668 669 670 671 672 673
libsystemd_audit_la_SOURCES = \
	src/shared/audit.c \
	src/shared/audit.h

libsystemd_audit_la_LIBADD = \
	libsystemd-capability.la

674
# ------------------------------------------------------------------------------
675
if HAVE_ACL
676 677 678
noinst_LTLIBRARIES += \
	libsystemd-acl.la

679
libsystemd_acl_la_SOURCES = \
680 681
	src/shared/acl-util.c \
	src/shared/acl-util.h
682 683 684 685 686 687 688

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

libsystemd_acl_la_LIBADD = \
	$(ACL_LIBS)
689
endif
690

691
# ------------------------------------------------------------------------------
692 693 694
noinst_LTLIBRARIES += \
	libsystemd-core.la

695
libsystemd_core_la_SOURCES = \
696 697 698 699 700 701
	src/core/unit.c \
	src/core/unit.h \
	src/core/job.c \
	src/core/job.h \
	src/core/manager.c \
	src/core/manager.h \
702 703
	src/core/transaction.c \
	src/core/transaction.h \
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 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769
	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 \
770 771
	src/core/hostname-setup.c \
	src/core/hostname-setup.h \
772 773 774 775 776 777
	src/core/machine-id-setup.c \
	src/core/machine-id-setup.h \
	src/core/mount-setup.c \
	src/core/mount-setup.h \
	src/core/loopback-setup.h \
	src/core/loopback-setup.c \
778 779 780 781 782 783 784 785 786 787 788 789 790 791 792
	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 \
793 794 795
	src/core/sysfs-show.h \
	src/core/switch-root.h \
	src/core/switch-root.c
796

797
nodist_libsystemd_core_la_SOURCES = \
798 799
	src/core/load-fragment-gperf.c \
	src/core/load-fragment-gperf-nulstr.c
800

801 802 803
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
804 805
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
806 807
	$(AUDIT_CFLAGS) \
	$(KMOD_CFLAGS)
808 809

libsystemd_core_la_LIBADD = \
810
	libsystemd-capability.la \
811 812
	libsystemd-label.la \
	libsystemd-shared.la \
813
	libsystemd-dbus.la \
Kay Sievers's avatar
Kay Sievers committed
814
	libudev.la \
815
	$(LIBWRAP_LIBS) \
816
	$(PAM_LIBS) \
817
	$(AUDIT_LIBS) \
818 819
	$(CAP_LIBS) \
	$(KMOD_LIBS)
820

821 822 823 824 825 826 827 828 829 830 831 832
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

833
# ------------------------------------------------------------------------------
834
systemd_SOURCES = \
835
	src/core/main.c
836

837 838
systemd_CFLAGS = \
	$(AM_CFLAGS) \
Kay Sievers's avatar
Kay Sievers committed
839
	$(DBUS_CFLAGS)
840 841

systemd_LDADD = \
842
	libsystemd-core.la \
843
	libsystemd-daemon.la \
844 845
	libsystemd-id128.la \
	libsystemd-dbus.la
846

847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885
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

886
# ------------------------------------------------------------------------------
887
noinst_PROGRAMS += \
888 889 890 891 892 893 894 895 896 897 898 899
	test-engine \
	test-job-type \
	test-ns \
	test-loopback \
	test-hostname \
	test-daemon \
	test-cgroup \
	test-env-replace \
	test-strv \
	test-install \
	test-watchdog

900 901 902 903 904
TESTS += \
	test-job-type \
	test-env-replace \
	test-strv

905
test_engine_SOURCES = \
906
	src/test/test-engine.c
907

908 909 910 911 912
test_engine_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

test_engine_LDADD = \
913
	libsystemd-core.la \
914 915
	libsystemd-daemon.la \
	libsystemd-dbus.la
916 917