Makefile.am 91.3 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
Lennart Poettering's avatar
Lennart Poettering committed
27
LIBUDEV_REVISION=2
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

Lennart Poettering's avatar
Lennart Poettering committed
34
35
36
LIBSYSTEMD_LOGIN_CURRENT=3
LIBSYSTEMD_LOGIN_REVISION=0
LIBSYSTEMD_LOGIN_AGE=3
37

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

42
LIBSYSTEMD_ID128_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
43
LIBSYSTEMD_ID128_REVISION=6
44
45
LIBSYSTEMD_ID128_AGE=0

Lennart Poettering's avatar
Lennart Poettering committed
46
47
48
LIBSYSTEMD_JOURNAL_CURRENT=2
LIBSYSTEMD_JOURNAL_REVISION=0
LIBSYSTEMD_JOURNAL_AGE=2
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
dist_pkgsysconf_DATA =
99
dist_pkgdata_DATA =
100
101
102
dist_dbuspolicy_DATA =
dbusinterface_DATA =
dist_dbussystemservice_DATA =
103
check_PROGRAMS =
104
105
check_DATA =
noinst_PROGRAMS =
106
TESTS =
107
udevlibexec_PROGRAMS =
108

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

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

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

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

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

235
systemgenerator_PROGRAMS = \
236
	systemd-getty-generator \
237
238
	systemd-fstab-generator \
	systemd-system-update-generator
239

240
dist_bashcompletion_DATA = \
241
	bash-completion/systemd-bash-completion.sh
242

243
244
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
245
	tmpfiles.d/tmp.conf \
246
247
	tmpfiles.d/x11.conf

248
249
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
250
	tmpfiles.d/legacy.conf
251
252
endif

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

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

340
341
342
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
343

344
nodist_userunit_DATA = \
345
	units/user/systemd-exit.service
346

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

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

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

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

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

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

422
423
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
424
	NEWS \
425
	LICENSE.LGPL2.1 \
426
427
	LICENSE.GPL2 \
	LICENSE.MIT \
428
	DISTRO_PORTING
429

430
@INTLTOOL_POLICY_RULE@
431

432
433
434
435
436
# ------------------------------------------------------------------------------
MANPAGES = \
	man/systemd.1 \
	man/systemctl.1 \
	man/systemd-cgls.1 \
437
	man/systemd-delta.1 \
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
	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 \
456
	man/kernel-command-line.7 \
457
	man/daemon.7 \
Lennart Poettering's avatar
Lennart Poettering committed
458
	man/bootup.7 \
459
460
461
462
463
464
465
466
467
468
469
470
471
472
	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 \
473
	man/systemd-modules-load.service.8 \
474
	man/sysctl.d.5 \
475
	man/systemd-sysctl.service.8 \
476
477
478
	man/systemd-ask-password.1 \
	man/systemd-cat.1 \
	man/systemd-machine-id-setup.1 \
479
	man/systemd-detect-virt.1 \
480
	man/journald.conf.5 \
481
	man/systemd-journald.service.8 \
482
	man/journalctl.1 \
483
	man/systemd-inhibit.1 \
484
	man/systemd-remount-fs.service.8 \
485
	man/systemd-update-utmp-runlevel.service.8 \
486
	man/systemd-initctl.service.8 \
487
	man/systemd-shutdownd.service.8 \
488
	man/systemd-suspend.service.8 \
489
	man/systemd-halt.service.8 \
490
	man/systemd-fsck@.service.8 \
491
	man/systemd-ask-password-console.service.8 \
492
	man/systemd-analyze.1 \
493
	man/systemd-tty-ask-password-agent.1 \
494
	man/systemd-getty-generator.8 \
495
	man/systemd-system-update-generator.8 \
496
	man/systemd-fstab-generator.8 \
497
	man/systemd.preset.5 \
498
	man/sd-id128.3 \
499
	man/sd_id128_to_string.3 \
500
	man/sd_id128_randomize.3 \
501
	man/sd-journal.3 \
502
	man/sd_journal_print.3
503
504
505
506

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
507
508
	man/init.1 \
	man/systemd-modules-load.8 \
509
	man/systemd-sysctl.8 \
510
	man/systemd-journald.socket.8 \
511
	man/systemd-journald.8 \
512
513
	man/systemd-remount-fs.8 \
	man/systemd-update-utmp-shutdown.service.8 \
514
	man/systemd-update-utmp.8 \
515
	man/systemd-initctl.socket.8 \
516
	man/systemd-initctl.8 \
517
	man/systemd-shutdownd.socket.8 \
518
519
	man/systemd-shutdownd.8 \
	man/systemd-hibernate.service.8 \
520
521
522
523
	man/systemd-sleep.8 \
	man/systemd-shutdown.8 \
	man/systemd-poweroff.service.8 \
	man/systemd-reboot.service.8 \
524
	man/systemd-kexec.service.8 \
525
526
527
	man/systemd-fsck-root.service.8 \
	man/systemd-ask-password-console.path.8 \
	man/systemd-ask-password-wall.service.8 \
528
529
530
	man/systemd-ask-password-wall.path.8 \
	man/systemd-tmpfiles-setup.service.8 \
	man/systemd-tmpfiles-clean.service.8 \
531
532
533
534
535
536
537
538
	man/systemd-tmpfiles-clean.timer.8 \
	man/sd_id128_t.7 \
	man/SD_ID128_MAKE.7 \
	man/SD_ID128_FORMAT_STR.7 \
	man/SD_ID128_FORMAT_VAL.7 \
	man/sd_id128_equal.7 \
	man/sd_id128_from_string.3 \
	man/sd_id128_get_machine.3 \
539
540
541
542
	man/sd_id128_get_boot.3 \
	man/sd_journal_printv.3 \
	man/sd_journal_send.3 \
	man/sd_journal_sendv.3
543
544
545
546

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1
547
548
man/systemd-modules-load.8: man/systemd-modules-load.service.8
man/systemd-sysctl.8: man/systemd-sysctl.service.8
549
man/systemd-journald.socket.8: man/systemd-journald.service.8
550
man/systemd-journald.8: man/systemd-journald.service.8
551
man/systemd-remount-fs.8: man/systemd-remount-fs.service.8
552
553
man/systemd-update-utmp-shutdown.service.8: man/systemd-update-utmp-runlevel.service.8
man/systemd-update-utmp.8: man/systemd-update-utmp-runlevel.service.8
554
man/systemd-initctl.socket.8: man/systemd-initctl.service.8
555
man/systemd-initctl.8: man/systemd-initctl.service.8
556
man/systemd-shutdownd.socket.8: man/systemd-shutdownd.service.8
557
man/systemd-shutdownd.8: man/systemd-shutdownd.service.8
558
559
man/systemd-hibernate.service.8: man/systemd-suspend.service.8
man/systemd-sleep.8: man/systemd-suspend.service.8
560
561
562
563
man/systemd-shutdown.8: man/systemd-halt.service.8
man/systemd-poweroff.service.8: man/systemd-halt.service.8
man/systemd-reboot.service.8: man/systemd-halt.service.8
man/systemd-kexec.service.8: man/systemd-halt.service.8
564
man/systemd-fsck-root.service.8: man/systemd-fsck@.service.8
565
566
567
man/systemd-ask-password-console.path.8: man/systemd-ask-password-console.service.8
man/systemd-ask-password-wall.service.8: man/systemd-ask-password-console.service.8
man/systemd-ask-password-wall.path.8: man/systemd-ask-password-console.service.8
568
569
570
man/systemd-tmpfiles-setup.service.8: man/systemd-tmpfiles.8
man/systemd-tmpfiles-clean.service.8: man/systemd-tmpfiles.8
man/systemd-tmpfiles-clean.timer.8: man/systemd-tmpfiles.8
571
572
573
574
575
man/sd_id128_t.3: man/sd-id128.3
man/SD_ID128_MAKE.3: man/sd-id128.3
man/SD_ID128_FORMAT_STR.3: man/sd-id128.3
man/SD_ID128_FORMAT_VAL.3: man/sd-id128.3
man/sd_id128_equal.3: man/sd-id128.3
576
577
578
man/sd_id128_from_string.3: man/sd_id128_to_string.3
man/sd_id128_get_machine.3: man/sd_id128_randomize.3
man/sd_id128_get_boot.3: man/sd_id128_randomize.3
579
580
581
man/sd_journal_printv.3: man/sd_journal_print.3
man/sd_journal_send.3: man/sd_journal_print.3
man/sd_journal_sendv.3: man/sd_journal_print.3
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601

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)

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

605
libsystemd_shared_la_SOURCES = \
606
607
608
	src/shared/linux/auto_dev-ioctl.h \
	src/shared/linux/fanotify.h \
	src/shared/missing.h \
609
610
611
	src/shared/list.h \
	src/shared/macro.h \
	src/shared/def.h \
612
613
614
615
	src/shared/util.c \
	src/shared/util.h \
	src/shared/virt.c \
	src/shared/virt.h \
Kay Sievers's avatar
Kay Sievers committed
616
617
	src/shared/path-util.c \
	src/shared/path-util.h \
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
	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
633
	src/shared/utf8.h \
Kay Sievers's avatar
Kay Sievers committed
634
	src/shared/pager.c \
635
636
	src/shared/pager.h \
	src/shared/ioprio.h \
637
638
	src/shared/socket-util.c \
	src/shared/socket-util.h \
Kay Sievers's avatar
Kay Sievers committed
639
640
	src/shared/conf-files.c \
	src/shared/conf-files.h \
641
642
	src/shared/cgroup-util.c \
	src/shared/cgroup-util.h \
643
644
645
646
647
648
649
650
651
652
653
654
655
	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
656
657
658
	src/shared/spawn-polkit-agent.h \
	src/shared/hwclock.c \
	src/shared/hwclock.h
659
660
661
662
663
664
665
666
667
668

#-------------------------------------------------------------------------------
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 \
669
670
	src/shared/polkit.c \
	src/shared/polkit.h
671

672
libsystemd_dbus_la_CFLAGS = \
673
674
675
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

676
677
678
libsystemd_dbus_la_LIBADD = \
	$(DBUS_LIBS)

679
680
# ------------------------------------------------------------------------------
noinst_LTLIBRARIES += \
681
	libsystemd-units.la
682

683
libsystemd_units_la_SOURCES = \
684
685
686
	src/shared/install.c \
	src/shared/install.h \
	src/shared/path-lookup.c \
687
688
689
690
691
692
693
694
695
696
697
	src/shared/path-lookup.h

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

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

libsystemd_label_la_SOURCES = \
698
699
	src/shared/cgroup-label.c \
	src/shared/socket-label.c \
700
701
702
	src/shared/label.c \
	src/shared/label.h \
	src/shared/mkdir.c \
703
704
	src/shared/mkdir.h \
	src/shared/ask-password-api.c \
705
706
707
	src/shared/ask-password-api.h \
	src/shared/dev-setup.c \
	src/shared/dev-setup.h
708

709
libsystemd_label_la_CFLAGS = \
710
711
712
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

713
libsystemd_label_la_LIBADD = \
714
715
	$(SELINUX_LIBS)

716
717
718
719
720
721
722
723
724
725
726
727
# ------------------------------------------------------------------------------
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 = \
728
	libsystemd-journal-internal.la \
729
730
	libsystemd-id128-internal.la \
	libsystemd-shared.la
731

732
# ------------------------------------------------------------------------------
733
734
735
noinst_LTLIBRARIES += \
	libsystemd-capability.la

736
737
738
739
740
741
742
743
744
libsystemd_capability_la_SOURCES = \
	src/shared/capability.c \
	src/shared/capability.h

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

libsystemd_capability_la_LIBADD = \
745
	$(CAP_LIBS)
746

747
# ------------------------------------------------------------------------------
748
749
750
noinst_LTLIBRARIES += \
	libsystemd-audit.la

751
752
753
754
755
756
757
libsystemd_audit_la_SOURCES = \
	src/shared/audit.c \
	src/shared/audit.h

libsystemd_audit_la_LIBADD = \
	libsystemd-capability.la

758
# ------------------------------------------------------------------------------
759
if HAVE_ACL
760
761
762
noinst_LTLIBRARIES += \
	libsystemd-acl.la

763
libsystemd_acl_la_SOURCES = \
764
765
	src/shared/acl-util.c \
	src/shared/acl-util.h
766
767
768
769
770
771
772

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

libsystemd_acl_la_LIBADD = \
	$(ACL_LIBS)
773
endif
774

775
# ------------------------------------------------------------------------------
776
777
778
noinst_LTLIBRARIES += \
	libsystemd-core.la

779
libsystemd_core_la_SOURCES = \
780
781
782
783
784
785
	src/core/unit.c \
	src/core/unit.h \
	src/core/job.c \
	src/core/job.h \
	src/core/manager.c \
	src/core/manager.h \
786
787
	src/core/transaction.c \
	src/core/transaction.h \
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
	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 \
854
855
	src/core/hostname-setup.c \
	src/core/hostname-setup.h \
856
857
858
859
860
861
	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 \
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
	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 \
877
878
879
	src/core/sysfs-show.h \
	src/core/switch-root.h \
	src/core/switch-root.c
880

881
nodist_libsystemd_core_la_SOURCES = \
882
883
	src/core/load-fragment-gperf.c \
	src/core/load-fragment-gperf-nulstr.c
884

885
886
887
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
888
889
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
890
891
	$(AUDIT_CFLAGS) \
	$(KMOD_CFLAGS)
892
893

libsystemd_core_la_LIBADD = \
894
	libsystemd-capability.la \
895
	libsystemd-units.la \
896
897
	libsystemd-label.la \
	libsystemd-shared.la \
898
	libsystemd-dbus.la \
Kay Sievers's avatar
Kay Sievers committed
899
	libudev.la \
900
	$(LIBWRAP_LIBS) \
901
	$(PAM_LIBS) \
902
	$(AUDIT_LIBS) \
903
904
	$(CAP_LIBS) \
	$(KMOD_LIBS)
905

906
907
908
909
910
911
912
913
914
915
916
917
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

918
# ------------------------------------------------------------------------------
919
systemd_SOURCES = \
920
	src/core/main.c
921

922
923
systemd_CFLAGS = \
	$(AM_CFLAGS) \
Kay Sievers's avatar
Kay Sievers committed
924
	$(DBUS_CFLAGS)
925
926

systemd_LDADD = \
927
	libsystemd-core.la \
928
	libsystemd-daemon.la \
929
	libsystemd-id128-internal.la \
930
	libsystemd-dbus.la
931

932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
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

968
969
970
nodist_rpmmacros_DATA = \
	src/core/macros.systemd

971
EXTRA_DIST += \
972
973
	src/core/systemd.pc.in \
	src/core/macros.systemd.in
974

975
976
977
CLEANFILES += \
	src/core/macros.systemd

978
# ------------------------------------------------------------------------------
979
noinst_PROGRAMS += \
980
981
982
983
984
985
986
987
988
989
	test-engine \
	test-job-type \
	test-ns \
	test-loopback \
	test-hostname \
	test-daemon \
	test-cgroup \
	test-env-replace \
	test-strv \
	test-install \
990
991
	test-watchdog \
	test-unit-name
992

993
994
995
996
997
TESTS += \
	test-job-type \
	test-env-replace \
	test-strv

998
test_engine_SOURCES = \
999
	src/test/test-engine.c
1000

1001
1002
1003
1004
1005
test_engine_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

test_engine_LDADD = \
1006
	libsystemd-core.la \
1007
1008
	libsystemd-daemon.la \
	libsystemd-dbus.la
1009
1010

test_job_type_SOURCES = \
1011
	src/test/test-job-type.c
1012

1013
1014
1015
1016
1017
test_job_type_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

test_job_type_LDADD = \
1018
1019
	libsystemd-core.la \
	libsystemd-daemon.la
1020

1021
test_ns_SOURCES = \
1022
	src/test/test-ns.c