Makefile.am 84.2 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
DISTCLEAN_LOCAL_HOOKS =
87
pkginclude_HEADERS =
88
noinst_LTLIBRARIES =
89
lib_LTLIBRARIES =
Kay Sievers's avatar
Kay Sievers committed
90
include_HEADERS =
91
pkgconfiglib_DATA =
92
polkitpolicy_in_files =
93
dist_udevrules_DATA =
Kay Sievers's avatar
Kay Sievers committed
94
95
nodist_udevrules_DATA =
dist_man_MANS =
96
97
98
99
dist_pkgsysconf_DATA =
dist_dbuspolicy_DATA =
dbusinterface_DATA =
dist_dbussystemservice_DATA =
100
check_PROGRAMS =
101
102
check_DATA =
noinst_PROGRAMS =
103
TESTS =
104

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

141
AM_CFLAGS = $(WARNINGFLAGS)
142
AM_LDFLAGS = $(GCLDFLAGS)
143

144
# ------------------------------------------------------------------------------
145
146
147
148
149
150
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
151
152
153
154
155
156
if TARGET_ARCH
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_FRUGALWARE
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_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
169
170
171
172
173
174
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
175
176
177
178
179
180
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
181
if TARGET_MAGEIA
182
183
184
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
185
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
Dexter Morgan's avatar
Dexter Morgan committed
186
187
188
189
else
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
190
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
191
endif
192
endif
193
endif
194
endif
195
endif
Chris E Ferron's avatar
Chris E Ferron committed
196
endif
Koen Kooi's avatar
Koen Kooi committed
197
endif
198

199
# ------------------------------------------------------------------------------
200
rootbin_PROGRAMS = \
201
	systemctl \
202
	systemd-notify \
203
	systemd-ask-password \
204
	systemd-tty-ask-password-agent \
205
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
206
	systemd-machine-id-setup
207

208
bin_PROGRAMS = \
209
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
210
	systemd-cgtop \
211
	systemd-stdio-bridge \
212
213
	systemd-nspawn \
	systemd-detect-virt
214

215
dist_bin_SCRIPTS = \
216
	src/analyze/systemd-analyze
217

218
rootlibexec_PROGRAMS = \
219
	systemd \
220
	systemd-cgroups-agent \
221
	systemd-initctl \
222
	systemd-update-utmp \
223
	systemd-shutdownd \
224
	systemd-shutdown \
225
	systemd-modules-load \
226
	systemd-remount-api-vfs \
227
	systemd-reply-password \
228
	systemd-fsck \
229
	systemd-timestamp \
230
	systemd-ac-power \
Kay Sievers's avatar
Kay Sievers committed
231
	systemd-sysctl
232

233
systemgenerator_PROGRAMS = \
234
	systemd-getty-generator
235

236
dist_bashcompletion_DATA = \
237
	bash-completion/systemd-bash-completion.sh
238

239
240
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
241
	tmpfiles.d/tmp.conf \
242
243
	tmpfiles.d/x11.conf

244
245
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
246
	tmpfiles.d/legacy.conf
247
248
endif

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

301
nodist_systemunit_DATA = \
302
	units/getty@.service \
303
	units/serial-getty@.service \
304
	units/console-shell.service \
305
	units/systemd-initctl.service \
306
	units/systemd-shutdownd.service \
307
	units/systemd-modules-load.service \
308
	units/systemd-remount-api-vfs.service \
309
310
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
311
312
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
313
	units/systemd-ask-password-wall.service \
314
	units/systemd-ask-password-console.service \
315
	units/systemd-sysctl.service \
316
	units/halt.service \
317
	units/emergency.service \
318
319
	units/poweroff.service \
	units/reboot.service \
320
321
	units/kexec.service \
	units/fsck@.service \
322
	units/fsck-root.service \
323
	units/rescue.service \
Kay Sievers's avatar
Kay Sievers committed
324
325
326
327
	units/user@.service \
	units/udev.service \
	units/udev-trigger.service \
	units/udev-settle.service
328

329
330
331
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
332

333
334
nodist_userunit_DATA = \
	units/user/exit.service
335

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

367
368
369
370
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
371
	units/fedora/halt-local.service
372
373
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
374
375
endif

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

385
386
387
388
389
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

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

Dexter Morgan's avatar
Dexter Morgan committed
398
399
400
401
402
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
403
404
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
405
406
endif

407
408
409
410
411
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
412
	units/plymouth-quit-wait.service \
413
414
415
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
416
417
418
419
420
421
422
423
	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
424
425
endif

426
427
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
428
	NEWS \
429
	LICENSE.LGPL2.1 \
430
431
	LICENSE.GPL2 \
	LICENSE.MIT \
432
	DISTRO_PORTING
433

434
@INTLTOOL_POLICY_RULE@
435

436
437
438
439
440
441
442
443
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
# ------------------------------------------------------------------------------
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 \
478
	man/systemd-detect-virt.1 \
479
	man/journald.conf.5 \
480
	man/journalctl.1
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

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)

# ------------------------------------------------------------------------------
510
noinst_LTLIBRARIES += \
511
	libsystemd-shared.la
512

513
libsystemd_shared_la_SOURCES = \
514
515
516
	src/shared/linux/auto_dev-ioctl.h \
	src/shared/linux/fanotify.h \
	src/shared/missing.h \
517
518
519
	src/shared/list.h \
	src/shared/macro.h \
	src/shared/def.h \
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
	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
539
	src/shared/utf8.h \
Kay Sievers's avatar
Kay Sievers committed
540
	src/shared/pager.c \
541
542
	src/shared/pager.h \
	src/shared/ioprio.h \
543
544
545
546
	src/shared/socket-util.c \
	src/shared/socket-util.h \
	src/shared/cgroup-util.c \
	src/shared/cgroup-util.h \
547
548
549
550
551
552
553
554
555
556
557
558
559
	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 \
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
	src/shared/spawn-polkit-agent.h

libsystemd_shared_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

#-------------------------------------------------------------------------------
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 \
575
576
	src/shared/polkit.c \
	src/shared/polkit.h
577

578
libsystemd_dbus_la_CFLAGS = \
579
580
581
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

582
583
584
libsystemd_dbus_la_LIBADD = \
	$(DBUS_LIBS)

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

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

603
libsystemd_label_la_CFLAGS = \
604
	$(AM_CFLAGS) \
605
	$(DBUS_CFLAGS) \
606
607
	$(SELINUX_CFLAGS)

608
libsystemd_label_la_LIBADD = \
609
610
	$(SELINUX_LIBS)

611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
# ------------------------------------------------------------------------------
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

626
# ------------------------------------------------------------------------------
627
628
629
noinst_LTLIBRARIES += \
	libsystemd-capability.la

630
631
632
633
634
635
636
637
638
libsystemd_capability_la_SOURCES = \
	src/shared/capability.c \
	src/shared/capability.h

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

libsystemd_capability_la_LIBADD = \
639
	$(CAP_LIBS)
640

641
# ------------------------------------------------------------------------------
642
643
644
noinst_LTLIBRARIES += \
	libsystemd-audit.la

645
646
647
648
649
650
651
libsystemd_audit_la_SOURCES = \
	src/shared/audit.c \
	src/shared/audit.h

libsystemd_audit_la_LIBADD = \
	libsystemd-capability.la

652
# ------------------------------------------------------------------------------
653
if HAVE_ACL
654
655
656
noinst_LTLIBRARIES += \
	libsystemd-acl.la

657
libsystemd_acl_la_SOURCES = \
658
659
	src/shared/acl-util.c \
	src/shared/acl-util.h
660
661
662
663
664
665
666

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

libsystemd_acl_la_LIBADD = \
	$(ACL_LIBS)
667
endif
668

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

673
libsystemd_core_la_SOURCES = \
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
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
	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 \
746
747
	src/core/hostname-setup.c \
	src/core/hostname-setup.h \
748
749
750
751
752
753
	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 \
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
	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 \
769
	src/core/sysfs-show.h
770

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

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

libsystemd_core_la_LIBADD = \
784
	libsystemd-capability.la \
785
786
	libsystemd-label.la \
	libsystemd-shared.la \
787
	libsystemd-dbus.la \
Kay Sievers's avatar
Kay Sievers committed
788
	libudev.la \
789
	$(LIBWRAP_LIBS) \
790
	$(PAM_LIBS) \
791
	$(AUDIT_LIBS) \
792
793
	$(CAP_LIBS) \
	$(KMOD_LIBS)
794

795
796
797
798
799
800
801
802
803
804
805
806
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

807
# ------------------------------------------------------------------------------
808
systemd_SOURCES = \
809
	src/core/main.c
810

811
812
systemd_CFLAGS = \
	$(AM_CFLAGS) \
Kay Sievers's avatar
Kay Sievers committed
813
	$(DBUS_CFLAGS)
814
815

systemd_LDADD = \
816
	libsystemd-core.la \
817
	libsystemd-daemon.la \
818
819
	libsystemd-id128.la \
	libsystemd-dbus.la
820

821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
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

860
# ------------------------------------------------------------------------------
861
noinst_PROGRAMS += \
862
863
864
865
866
867
868
869
870
871
872
873
	test-engine \
	test-job-type \
	test-ns \
	test-loopback \
	test-hostname \
	test-daemon \
	test-cgroup \
	test-env-replace \
	test-strv \
	test-install \
	test-watchdog

874
875
876
877
878
TESTS += \
	test-job-type \
	test-env-replace \
	test-strv

879
test_engine_SOURCES = \
880
	src/test/test-engine.c
881

882
883
884
885
886
test_engine_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

test_engine_LDADD = \
887
	libsystemd-core.la \
888
889
	libsystemd-daemon.la \
	libsystemd-dbus.la
890
891

test_job_type_SOURCES = \
892
	src/test/test-job-type.c
893

894
895
896
897
898
899
test_job_type_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

test_job_type_LDADD = \
	libsystemd-core.la
900

901
test_ns_SOURCES = \
902
	src/test/test-ns.c
903

904
905
test_ns_LDADD = \
	libsystemd-core.la
906

907
test_loopback_SOURCES = \
908
	src/test/test-loopback.c
909

910
test_loopback_LDADD = \
911
912
	libsystemd-shared.la \
	libsystemd-core.la
913

914
test_hostname_SOURCES = \
915
	src/test/test-hostname.c
916
917

test_hostname_LDADD = \
918
	libsystemd-core.la
919

920
test_daemon_SOURCES = \
921
	src/test/test-daemon.c
922

923
test_daemon_LDADD = \
924
	libsystemd-shared.la \
925
	libsystemd-daemon.la
926

927
test_cgroup_SOURCES = \
928
	src/test/test-cgroup.c
929
930

test_cgroup_LDADD = \
931
932
	libsystemd-label.la \
	libsystemd-shared.la
933

934
test_env_replace_SOURCES = \
935
	src/test/test-env-replace.c
936
937

test_env_replace_LDADD = \
938
	libsystemd-shared.la
939

940
test_strv_SOURCES = \
941
	src/test/test-strv.c
942
943

test_strv_LDADD = \
944
	libsystemd-shared.la
945

946
test_install_SOURCES = \
947
	src/test/test-install.c
948
949
950

test_install_CFLAGS = \
	$(AM_CFLAGS) \
951
	$(DBUS_CFLAGS)
952
953

test_install_LDADD = \
954
955
	libsystemd-label.la \
	libsystemd-shared.la
956

957
test_watchdog_SOURCES = \
958
	src/test/test-watchdog.c
959
960

test_watchdog_LDADD = \
961
	libsystemd-shared.la
962

963
# ------------------------------------------------------------------------------
Kay Sievers's avatar
Kay Sievers committed
964
systemd_initctl_SOURCES = \
Kay Sievers's avatar
Kay Sievers committed
965
	src/initctl/initctl.c
Kay Sievers's avatar
Kay Sievers committed
966
967
968
969
970
971

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

systemd_initctl_LDADD = \
972
	libsystemd-shared.la \
Kay Sievers's avatar
Kay Sievers committed
973
	libsystemd-daemon.la \
974
	libsystemd-dbus.la
Kay Sievers's avatar
Kay Sievers committed
975

976
# ------------------------------------------------------------------------------
Kay Sievers's avatar
Kay Sievers committed
977
systemd_update_utmp_SOURCES = \
Kay Sievers's avatar
Kay Sievers committed
978
	src/update-utmp/update-utmp.c
Kay Sievers's avatar
Kay Sievers committed
979
980
981
982
983
984
985

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

systemd_update_utmp_LDADD = \
986
	libsystemd-shared.la \
987
	libsystemd-dbus.la \
Kay Sievers's avatar
Kay Sievers committed
988
989
	$(AUDIT_LIBS)

990
# ------------------------------------------------------------------------------
Kay Sievers's avatar
Kay Sievers committed
991
systemd_shutdownd_SOURCES = \
Kay Sievers's avatar
Kay Sievers committed
992
	src/shutdownd/shutdownd.c
993

Kay Sievers's avatar
Kay Sievers committed
994
systemd_shutdownd_LDADD = \
995
996
	libsystemd-label.la \
	libsystemd-shared.la \
Kay Sievers's avatar
Kay Sievers committed
997
998
	libsystemd-daemon.la

999
1000
1001
1002
pkginclude_HEADERS += \
	src/systemd/sd-shutdown.h

# ------------------------------------------------------------------------------
1003
systemd_shutdown_SOURCES = \
1004
1005
	src/core/umount.c \
	src/core/umount.h \
1006
1007
1008
	src/core/shutdown.c \
	src/core/mount-setup.c \
	src/core/mount-setup.h
1009

1010
systemd_shutdown_LDADD = \
1011
1012
	libsystemd-label.la \
	libsystemd-shared.la \
Kay Sievers's avatar
Kay Sievers committed
1013
	libudev.la
1014

1015
# ------------------------------------------------------------------------------
1016
systemd_modules_load_SOURCES = \
Kay Sievers's avatar
Kay Sievers committed
1017
	src/modules-load/modules-load.c
1018

1019
systemd_modules_load_CFLAGS = \
1020
	$(AM_CFLAGS) \
1021
1022
	$(KMOD_CFLAGS)

1023
systemd_modules_load_LDADD = \
1024
	libsystemd-shared.la \
1025
	$(KMOD_LIBS)
1026

1027
# ------------------------------------------------------------------------------
1028
systemd_tmpfiles_SOURCES = \
Kay Sievers's avatar
Kay Sievers committed
1029
	src/tmpfiles/tmpfiles.c
1030

1031
systemd_tmpfiles_LDADD = \
1032
1033
	libsystemd-label.la \
	libsystemd-shared.la
1034

1035
# ------------------------------------------------------------------------------
1036
systemd_machine_id_setup_SOURCES = \
1037
	src/machine-id-setup/machine-id-setup-main.c \
1038
1039
	src/core/machine-id-setup.c \
	src/core/machine-id-setup.h
1040

1041
systemd_machine_id_setup_LDADD