Makefile.am 84 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
        -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
124
	-I $(top_srcdir)/src \
125
	-I $(top_srcdir)/src/shared \
126
	-I $(top_srcdir)/src/readahead \
127
	-I $(top_srcdir)/src/login \
128
	-I $(top_srcdir)/src/journal \
Kay Sievers's avatar
Kay Sievers committed
129
	-I $(top_srcdir)/src/systemd \
130
	-I $(top_srcdir)/src/core \
Kay Sievers's avatar
Kay Sievers committed
131
	-I $(top_srcdir)/src/udev
132

133
AM_CFLAGS = $(WARNINGFLAGS)
134
AM_LDFLAGS = $(GCLDFLAGS)
135

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

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

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

206
dist_bin_SCRIPTS = \
207
	src/systemd-analyze
208

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

225
systemgenerator_PROGRAMS = \
226
	systemd-getty-generator
227

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

241
dist_pkgsysconf_DATA = \
242
	src/system.conf \
243
	src/user.conf
244

245
dist_dbuspolicy_DATA = \
246
	src/org.freedesktop.systemd1.conf
247

248
dist_dbussystemservice_DATA = \
249
	src/org.freedesktop.systemd1.service
250
251

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

266
dist_bashcompletion_DATA = \
267
	src/systemd-bash-completion.sh
268

269
270
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
271
	tmpfiles.d/tmp.conf \
272
273
	tmpfiles.d/x11.conf

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

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

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

359
360
361
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
362

363
364
nodist_userunit_DATA = \
	units/user/exit.service
365

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

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

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

416
417
418
419
420
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

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

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

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

457
458
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
459
	NEWS \
460
	LICENSE \
461
	DISTRO_PORTING
462

463
pkgconfigdata_DATA = \
464
	src/systemd.pc
465

466
467
468
469
470
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
471
472
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
473
474

EXTRA_DIST += \
475
476
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
477

478
@INTLTOOL_POLICY_RULE@
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
# ------------------------------------------------------------------------------
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 \
523
	man/journalctl.1
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_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
noinst_LTLIBRARIES += \
554
	libsystemd-shared.la
555

556
libsystemd_shared_la_SOURCES = \
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
	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
576
	src/shared/utf8.h \
Kay Sievers's avatar
Kay Sievers committed
577
	src/shared/pager.c \
578
579
	src/shared/pager.h \
	src/shared/ioprio.h \
580
581
582
583
	src/shared/socket-util.c \
	src/shared/socket-util.h \
	src/shared/cgroup-util.c \
	src/shared/cgroup-util.h \
584
585
	src/shared/list.h \
	src/shared/macro.h
586

587
588
# ------------------------------------------------------------------------------
noinst_LTLIBRARIES += \
589
	libsystemd-label.la
590

591
592
593
libsystemd_label_la_SOURCES = \
	src/shared/cgroup-label.c \
	src/shared/socket-label.c \
594
595
596
597
598
	src/shared/label.c \
	src/shared/label.h \
	src/shared/mkdir.c \
	src/shared/mkdir.h

599
libsystemd_label_la_CFLAGS = \
600
601
602
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

603
libsystemd_label_la_LIBADD = \
604
605
606
	$(SELINUX_LIBS)

# ------------------------------------------------------------------------------
607
608
609
noinst_LTLIBRARIES += \
	libsystemd-capability.la

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

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

libsystemd_capability_la_LIBADD = \
619
	$(CAP_LIBS)
620

621
# ------------------------------------------------------------------------------
622
623
624
noinst_LTLIBRARIES += \
	libsystemd-audit.la

625
626
627
628
629
630
631
libsystemd_audit_la_SOURCES = \
	src/shared/audit.c \
	src/shared/audit.h

libsystemd_audit_la_LIBADD = \
	libsystemd-capability.la

632
# ------------------------------------------------------------------------------
633
if HAVE_ACL
634
635
636
noinst_LTLIBRARIES += \
	libsystemd-acl.la

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

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

libsystemd_acl_la_LIBADD = \
	$(ACL_LIBS)
647
endif
648

649
# ------------------------------------------------------------------------------
650
651
652
noinst_LTLIBRARIES += \
	libsystemd-core.la

653
libsystemd_core_la_SOURCES = \
654
655
	src/def.h \
	src/missing.h \
656
	src/dbus-common.c \
657
	src/dbus-common.h \
658
659
660
661
662
663
	src/watchdog.c \
	src/watchdog.h \
	src/loopback-setup.h \
	src/loopback-setup.c \
	src/hostname-setup.c \
	src/hostname-setup.h \
664
	src/specifier.c \
665
	src/specifier.h \
666
667
668
669
	src/install.c \
	src/install.h \
	src/path-lookup.c \
	src/path-lookup.h \
670
	src/unit-name.c \
671
	src/unit-name.h \
672
673
674
675
676
677
	src/utmp-wtmp.c \
	src/utmp-wtmp.h \
	src/machine-id-setup.c \
	src/machine-id-setup.h \
	src/mount-setup.c \
	src/mount-setup.h \
678
679
	src/linux/auto_dev-ioctl.h \
	src/linux/fanotify.h \
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
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/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 \
	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 \
	src/core/ask-password-api.h \
	src/core/sysfs-show.h \
	src/core/polkit.h \
770
	src/core/dbus-loop.h
771

772
nodist_libsystemd_core_la_SOURCES = \
773
774
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
775

776
EXTRA_DIST += \
777
	src/load-fragment-gperf.gperf.m4
778

779
780
781
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
782
783
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
784
785
	$(AUDIT_CFLAGS) \
	$(KMOD_CFLAGS)
786
787

libsystemd_core_la_LIBADD = \
788
	libsystemd-capability.la \
789
790
	libsystemd-label.la \
	libsystemd-shared.la \
Kay Sievers's avatar
Kay Sievers committed
791
	libudev.la \
792
793
	$(DBUS_LIBS) \
	$(LIBWRAP_LIBS) \
794
	$(PAM_LIBS) \
795
	$(AUDIT_LIBS) \
796
797
	$(CAP_LIBS) \
	$(KMOD_LIBS)
798

799
# ------------------------------------------------------------------------------
800
systemd_SOURCES = \
801
	src/main.c
802

803
804
systemd_CFLAGS = \
	$(AM_CFLAGS) \
Kay Sievers's avatar
Kay Sievers committed
805
	$(DBUS_CFLAGS)
806
807

systemd_LDADD = \
808
	libsystemd-core.la \
809
	libsystemd-daemon.la \
810
	libsystemd-id128.la
811

812
# ------------------------------------------------------------------------------
813
test_engine_SOURCES = \
814
	src/test-engine.c
815

816
817
818
819
820
test_engine_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

test_engine_LDADD = \
821
822
	libsystemd-core.la \
	libsystemd-daemon.la
823
824

test_job_type_SOURCES = \
825
	src/test-job-type.c
826

827
828
829
830
831
832
test_job_type_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

test_job_type_LDADD = \
	libsystemd-core.la
833

834
test_ns_SOURCES = \
835
	src/test-ns.c
836

837
838
test_ns_LDADD = \
	libsystemd-core.la
839

840
test_loopback_SOURCES = \
841
842
	src/test-loopback.c \
	src/loopback-setup.c
843

844
test_loopback_LDADD = \
845
	libsystemd-shared.la
846

847
848
849
850
851
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
852
	libsystemd-shared.la
853

854
test_daemon_SOURCES = \
855
	src/test-daemon.c
856

857
test_daemon_LDADD = \
858
	libsystemd-shared.la \
859
	libsystemd-daemon.la
860

861
test_cgroup_SOURCES = \
Kay Sievers's avatar
Kay Sievers committed
862
	src/test-cgroup.c
863
864

test_cgroup_LDADD = \
865
866
	libsystemd-label.la \
	libsystemd-shared.la
867

868
869
870
871
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_LDADD = \
872
	libsystemd-shared.la
873

874
test_strv_SOURCES = \
875
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
876
	src/specifier.c
877
878

test_strv_LDADD = \
879
	libsystemd-shared.la
880

881
882
test_install_SOURCES = \
	src/test-install.c \
883
884
885
	src/install.c \
	src/path-lookup.c \
	src/unit-name.c
886
887
888

test_install_CFLAGS = \
	$(AM_CFLAGS) \
889
	$(DBUS_CFLAGS)
890
891

test_install_LDADD = \
892
893
	libsystemd-label.la \
	libsystemd-shared.la
894

895
test_watchdog_SOURCES = \
896
	src/test-watchdog.c \
897
	src/watchdog.c \
898
	src/watchdog.h
899
900

test_watchdog_LDADD = \
901
	libsystemd-shared.la
902

903
# ------------------------------------------------------------------------------
Kay Sievers's avatar
Kay Sievers committed
904
905
906
907
908
909
910
911
912
systemd_initctl_SOURCES = \
	src/initctl.c \
	src/dbus-common.c

systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
913
	libsystemd-shared.la \
Kay Sievers's avatar
Kay Sievers committed
914
915
916
	libsystemd-daemon.la \
	$(DBUS_LIBS)

917
# ------------------------------------------------------------------------------
Kay Sievers's avatar
Kay Sievers committed
918
919
920
921
922
923
924
925
926
927
928
systemd_update_utmp_SOURCES = \
	src/update-utmp.c \
	src/dbus-common.c \
	src/utmp-wtmp.c

systemd_update_utmp_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
	$(AUDIT_CFLAGS)

systemd_update_utmp_LDADD = \
929
	libsystemd-shared.la \
Kay Sievers's avatar
Kay Sievers committed
930
931
932
	$(DBUS_LIBS) \
	$(AUDIT_LIBS)

933
# ------------------------------------------------------------------------------
Kay Sievers's avatar
Kay Sievers committed
934
935
936
systemd_shutdownd_SOURCES = \
	src/utmp-wtmp.c \
	src/shutdownd.c
937

Kay Sievers's avatar
Kay Sievers committed
938
systemd_shutdownd_LDADD = \
939
940
	libsystemd-label.la \
	libsystemd-shared.la \
Kay Sievers's avatar
Kay Sievers committed
941
942
	libsystemd-daemon.la

943
944
945
946
pkginclude_HEADERS += \
	src/systemd/sd-shutdown.h

# ------------------------------------------------------------------------------
947
948
949
systemd_shutdown_SOURCES = \
	src/mount-setup.c \
	src/umount.c \
950
	src/umount.h \
951
	src/shutdown.c \
952
953
	src/watchdog.c \
	src/watchdog.h
954

955
systemd_shutdown_LDADD = \
956
957
	libsystemd-label.la \
	libsystemd-shared.la \
Kay Sievers's avatar
Kay Sievers committed
958
	libudev.la
959

960
# ------------------------------------------------------------------------------
961
962
systemd_modules_load_SOURCES = \
	src/modules-load.c
963

964
systemd_modules_load_CFLAGS = \
965
	$(AM_CFLAGS) \
966
967
	$(KMOD_CFLAGS)

968
systemd_modules_load_LDADD = \
969
	libsystemd-shared.la \
970
	$(KMOD_LIBS)
971

972
# ------------------------------------------------------------------------------
973
974
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
975

976
systemd_tmpfiles_LDADD = \
977
978
	libsystemd-label.la \
	libsystemd-shared.la
979

980
# ------------------------------------------------------------------------------
981
982
systemd_machine_id_setup_SOURCES = \
	src/machine-id-setup.c \
983
	src/machine-id-main.c
984

985
systemd_machine_id_setup_LDADD = \
986
987
	libsystemd-label.la \
	libsystemd-shared.la \
988
	libsystemd-id128.la
989

990
# ------------------------------------------------------------------------------
991
992
systemd_sysctl_SOURCES = \
	src/sysctl.c
993

994
systemd_sysctl_LDADD =