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
LIBUDEV_CURRENT=1
27
LIBUDEV_REVISION=1
28
LIBUDEV_AGE=0
Kay Sievers's avatar
Kay Sievers committed
29 30

LIBGUDEV_CURRENT=1
31
LIBGUDEV_REVISION=2
Kay Sievers's avatar
Kay Sievers committed
32
LIBGUDEV_AGE=1
33

34
LIBSYSTEMD_LOGIN_CURRENT=2
Kay Sievers's avatar
Kay Sievers committed
35
LIBSYSTEMD_LOGIN_REVISION=4
36
LIBSYSTEMD_LOGIN_AGE=2
37

38
LIBSYSTEMD_DAEMON_CURRENT=0
39
LIBSYSTEMD_DAEMON_REVISION=2
40 41
LIBSYSTEMD_DAEMON_AGE=0

42
LIBSYSTEMD_ID128_CURRENT=0
43
LIBSYSTEMD_ID128_REVISION=5
44 45
LIBSYSTEMD_ID128_AGE=0

46
LIBSYSTEMD_JOURNAL_CURRENT=1
47
LIBSYSTEMD_JOURNAL_REVISION=1
48
LIBSYSTEMD_JOURNAL_AGE=1
49

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
rpmmacrosdir=$(sysconfdir)/rpm
61

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

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

82 83
CLEANFILES =
EXTRA_DIST =
Kay Sievers's avatar
Kay Sievers committed
84
BUILT_SOURCES =
85 86 87
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
Kay Sievers's avatar
Kay Sievers committed
88
DISTCLEAN_LOCAL_HOOKS =
89
pkginclude_HEADERS =
90
noinst_LTLIBRARIES =
91
lib_LTLIBRARIES =
Kay Sievers's avatar
Kay Sievers committed
92
include_HEADERS =
93
pkgconfiglib_DATA =
94
polkitpolicy_in_files =
95
dist_udevrules_DATA =
Kay Sievers's avatar
Kay Sievers committed
96 97
nodist_udevrules_DATA =
dist_man_MANS =
98 99 100 101
dist_pkgsysconf_DATA =
dist_dbuspolicy_DATA =
dbusinterface_DATA =
dist_dbussystemservice_DATA =
102
check_PROGRAMS =
103 104
check_DATA =
noinst_PROGRAMS =
105
TESTS =
106
udevlibexec_PROGRAMS =
107

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

147
AM_CFLAGS = $(WARNINGFLAGS)
148
AM_LDFLAGS = $(GCLDFLAGS)
149

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

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

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

222
dist_bin_SCRIPTS = \
223
	src/analyze/systemd-analyze
224

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

241
systemgenerator_PROGRAMS = \
242
	systemd-getty-generator \
243 244
	systemd-fstab-generator \
	systemd-system-update-generator
245

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

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

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

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

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

347 348 349
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
350

351 352
nodist_userunit_DATA = \
	units/user/exit.service
353

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

389 390 391 392
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
393
	units/fedora/halt-local.service
394 395
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
396 397
endif

398 399 400 401 402
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
403 404
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
405 406
endif

407 408 409 410 411
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

412 413 414 415
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
416 417
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
418 419
endif

Dexter Morgan's avatar
Dexter Morgan committed
420 421 422 423 424
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
425 426
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
427 428
endif

429 430
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
431
	NEWS \
432
	LICENSE.LGPL2.1 \
433 434
	LICENSE.GPL2 \
	LICENSE.MIT \
435
	DISTRO_PORTING
436

437
@INTLTOOL_POLICY_RULE@
438

439 440 441 442 443
# ------------------------------------------------------------------------------
MANPAGES = \
	man/systemd.1 \
	man/systemctl.1 \
	man/systemd-cgls.1 \
444
	man/systemd-delta.1 \
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462
	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 \
463
	man/kernel-command-line.7 \
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478
	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 \
479
	man/systemd-modules-load.service.8 \
480
	man/sysctl.d.5 \
481
	man/systemd-sysctl.service.8 \
482 483 484
	man/systemd-ask-password.1 \
	man/systemd-cat.1 \
	man/systemd-machine-id-setup.1 \
485
	man/systemd-detect-virt.1 \
486
	man/journald.conf.5 \
487
	man/systemd-journald.service.8 \
488 489
	man/journalctl.1 \
	man/systemd-inhibit.1
490 491 492 493

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
494 495
	man/init.1 \
	man/systemd-modules-load.8 \
496 497
	man/systemd-sysctl.8 \
	man/systemd-journald.8
498 499 500 501

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1
502 503
man/systemd-modules-load.8: man/systemd-modules-load.service.8
man/systemd-sysctl.8: man/systemd-sysctl.service.8
504
man/systemd-journald.8: man/systemd-journald.service.8
505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524

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)

# ------------------------------------------------------------------------------
525
noinst_LTLIBRARIES += \
526
	libsystemd-shared.la
527

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

#-------------------------------------------------------------------------------
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 \
592 593
	src/shared/polkit.c \
	src/shared/polkit.h
594

595
libsystemd_dbus_la_CFLAGS = \
596 597 598
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

599 600 601
libsystemd_dbus_la_LIBADD = \
	$(DBUS_LIBS)

602 603
# ------------------------------------------------------------------------------
noinst_LTLIBRARIES += \
604
	libsystemd-units.la
605

606
libsystemd_units_la_SOURCES = \
607 608 609
	src/shared/install.c \
	src/shared/install.h \
	src/shared/path-lookup.c \
610 611 612 613 614 615 616 617 618 619 620
	src/shared/path-lookup.h

libsystemd_units_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

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

libsystemd_label_la_SOURCES = \
621 622
	src/shared/cgroup-label.c \
	src/shared/socket-label.c \
623 624 625
	src/shared/label.c \
	src/shared/label.h \
	src/shared/mkdir.c \
626 627
	src/shared/mkdir.h \
	src/shared/ask-password-api.c \
628 629 630
	src/shared/ask-password-api.h \
	src/shared/dev-setup.c \
	src/shared/dev-setup.h
631

632
libsystemd_label_la_CFLAGS = \
633 634 635
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

636
libsystemd_label_la_LIBADD = \
637 638
	$(SELINUX_LIBS)

639 640 641 642 643 644 645 646 647 648 649 650 651 652 653
# ------------------------------------------------------------------------------
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

654
# ------------------------------------------------------------------------------
655 656 657
noinst_LTLIBRARIES += \
	libsystemd-capability.la

658 659 660 661 662 663 664 665 666
libsystemd_capability_la_SOURCES = \
	src/shared/capability.c \
	src/shared/capability.h

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

libsystemd_capability_la_LIBADD = \
667
	$(CAP_LIBS)
668

669
# ------------------------------------------------------------------------------
670 671 672
noinst_LTLIBRARIES += \
	libsystemd-audit.la

673 674 675 676 677 678 679
libsystemd_audit_la_SOURCES = \
	src/shared/audit.c \
	src/shared/audit.h

libsystemd_audit_la_LIBADD = \
	libsystemd-capability.la

680
# ------------------------------------------------------------------------------
681
if HAVE_ACL
682 683 684
noinst_LTLIBRARIES += \
	libsystemd-acl.la

685
libsystemd_acl_la_SOURCES = \
686 687
	src/shared/acl-util.c \
	src/shared/acl-util.h
688 689 690 691 692 693 694

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

libsystemd_acl_la_LIBADD = \
	$(ACL_LIBS)
695
endif
696

697
# ------------------------------------------------------------------------------
698 699 700
noinst_LTLIBRARIES += \
	libsystemd-core.la

701
libsystemd_core_la_SOURCES = \
702 703 704 705 706 707
	src/core/unit.c \
	src/core/unit.h \
	src/core/job.c \
	src/core/job.h \
	src/core/manager.c \
	src/core/manager.h \
708 709
	src/core/transaction.c \
	src/core/transaction.h \
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 770 771 772 773 774 775
	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 \
776 777
	src/core/hostname-setup.c \
	src/core/hostname-setup.h \
778 779 780 781 782 783
	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 \
784 785 786 787 788 789 790 791 792 793 794 795 796 797 798
	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 \
799 800 801
	src/core/sysfs-show.h \
	src/core/switch-root.h \
	src/core/switch-root.c
802

803
nodist_libsystemd_core_la_SOURCES = \
804 805
	src/core/load-fragment-gperf.c \
	src/core/load-fragment-gperf-nulstr.c
806

807 808 809
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
810 811
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
812 813
	$(AUDIT_CFLAGS) \
	$(KMOD_CFLAGS)
814 815

libsystemd_core_la_LIBADD = \
816
	libsystemd-capability.la \
817
	libsystemd-units.la \
818 819
	libsystemd-label.la \
	libsystemd-shared.la \
820
	libsystemd-dbus.la \
Kay Sievers's avatar
Kay Sievers committed
821
	libudev.la \
822
	$(LIBWRAP_LIBS) \
823
	$(PAM_LIBS) \
824
	$(AUDIT_LIBS) \
825 826
	$(CAP_LIBS) \
	$(KMOD_LIBS)
827

828 829 830 831 832 833 834 835 836 837 838 839
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

840
# ------------------------------------------------------------------------------
841
systemd_SOURCES = \
842
	src/core/main.c
843

844 845
systemd_CFLAGS = \
	$(AM_CFLAGS) \
Kay Sievers's avatar
Kay Sievers committed
846
	$(DBUS_CFLAGS)
847 848

systemd_LDADD = \
849
	libsystemd-core.la \
850
	libsystemd-daemon.la \
851 852
	libsystemd-id128.la \
	libsystemd-dbus.la
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 886 887