Makefile.am 59.1 KB
Newer Older
1
2
#  This file is part of systemd.
#
3
4
#  Copyright 2011 Lennart Poettering
#  Copyright 2011 Kay Sievers
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
#  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/>.

ACLOCAL_AMFLAGS = -I m4

21
22
SUBDIRS = po

23
LIBSYSTEMD_LOGIN_CURRENT=0
24
LIBSYSTEMD_LOGIN_REVISION=6
25
26
LIBSYSTEMD_LOGIN_AGE=0

27
28
29
30
LIBSYSTEMD_DAEMON_CURRENT=0
LIBSYSTEMD_DAEMON_REVISION=0
LIBSYSTEMD_DAEMON_AGE=0

31
32
33
34
35
36
37
38
LIBSYSTEMD_ID128_CURRENT=0
LIBSYSTEMD_ID128_REVISION=0
LIBSYSTEMD_ID128_AGE=0

LIBSYSTEMD_JOURNAL_CURRENT=0
LIBSYSTEMD_JOURNAL_REVISION=0
LIBSYSTEMD_JOURNAL_AGE=0

39
# Dirs of external packages
40
41
42
43
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
44
udevrulesdir=@udevrulesdir@
45
46
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
47
pkgconfiglibdir=$(libdir)/pkgconfig
48
polkitpolicydir=$(datadir)/polkit-1/actions
49
bashcompletiondir=$(sysconfdir)/bash_completion.d
50

51
# Our own, non-special dirs
52
pkgsysconfdir=$(sysconfdir)/systemd
53
userunitdir=$(prefix)/lib/systemd/user
54
tmpfilesdir=$(prefix)/lib/tmpfiles.d
55
usergeneratordir=$(pkglibexecdir)/user-generators
56
pkgincludedir=$(includedir)/systemd
57
58
59
60
61

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
62
63
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
64
systemunitdir=$(rootdir)/lib/systemd/system
65

66
67
68
69
70
CLEANFILES =
EXTRA_DIST =
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
71
pkginclude_HEADERS =
72
73
polkitpolicy_in_files =

74
AM_CPPFLAGS = \
75
	-include $(top_builddir)/config.h \
76
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
77
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
78
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
79
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
80
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
81
82
83
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
84
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
85
	-DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
86
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
87
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
88
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
89
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
90
	-DRUNTIME_DIR=\"/run\" \
91
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
92
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
93
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
94
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
95
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
96
	-DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
97
	-I $(top_srcdir)/src
98

99
100
101
102
103
104
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
105
106
107
108
109
110
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
111
112
113
114
115
116
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
117
118
119
120
121
122
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
123
124
125
126
127
128
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
129
130
131
132
133
134
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
135
136
137
138
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
139
140
141
142
143
144
145
else
if TARGET_MAGEIA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
endif
146
endif
147
endif
148
endif
149
endif
Chris E Ferron's avatar
Chris E Ferron committed
150
endif
Koen Kooi's avatar
Koen Kooi committed
151
endif
152

153
rootbin_PROGRAMS = \
154
	systemd \
155
	systemctl \
156
	systemd-notify \
157
	systemd-ask-password \
158
	systemd-tty-ask-password-agent \
159
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
160
	systemd-machine-id-setup
161

162
bin_PROGRAMS = \
163
	systemd-cgls \
164
	systemd-stdio-bridge \
165
	systemd-nspawn
166

167
dist_bin_SCRIPTS = \
168
	src/systemd-analyze
169

170
171
if HAVE_GTK
bin_PROGRAMS += \
172
	systemadm \
173
	systemd-gnome-ask-password-agent
174
endif
175

176
rootlibexec_PROGRAMS = \
177
	systemd-stdout-syslog-bridge \
178
	systemd-cgroups-agent \
179
	systemd-initctl \
180
	systemd-update-utmp \
181
	systemd-random-seed \
182
	systemd-shutdownd \
183
	systemd-shutdown \
184
	systemd-modules-load \
185
	systemd-remount-api-vfs \
186
	systemd-kmsg-syslogd \
187
	systemd-vconsole-setup \
188
	systemd-reply-password \
189
190
	systemd-user-sessions \
	systemd-fsck \
191
	systemd-quotacheck \
192
	systemd-timestamp \
193
	systemd-ac-power \
194
	systemd-detect-virt \
Kay Sievers's avatar
Kay Sievers committed
195
	systemd-sysctl
196

197
systemgenerator_PROGRAMS = \
198
	systemd-getty-generator
199

200
201
202
203
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

204
systemgenerator_PROGRAMS += \
205
	systemd-cryptsetup-generator
206
endif
207

208
lib_LTLIBRARIES = \
209
	libsystemd-daemon.la
210

211
212
noinst_PROGRAMS = \
	test-engine \
213
	test-job-type \
214
	test-ns \
215
	test-loopback \
216
	test-hostname \
217
	test-daemon \
218
	test-cgroup \
219
	test-env-replace \
220
	test-strv \
221
	test-install
222

223
dist_pkgsysconf_DATA = \
224
	src/system.conf \
225
	src/user.conf
226

227
dist_dbuspolicy_DATA = \
228
	src/org.freedesktop.systemd1.conf
229

230
dist_dbussystemservice_DATA = \
231
	src/org.freedesktop.systemd1.service
232

233
dist_udevrules_DATA = \
234
	src/71-seat.rules
235

236
nodist_udevrules_DATA = \
237
238
	src/73-seat-late.rules \
	src/99-systemd.rules
239

240
dbusinterface_DATA = \
241
242
243
244
245
	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 \
246
	org.freedesktop.systemd1.Timer.xml \
247
248
249
250
251
	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 \
252
	org.freedesktop.systemd1.Swap.xml \
253
	org.freedesktop.systemd1.Path.xml
254

255
dist_bashcompletion_DATA = \
256
	src/systemd-bash-completion.sh
257

258
259
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
260
	tmpfiles.d/tmp.conf \
261
262
	tmpfiles.d/x11.conf

263
264
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
265
	tmpfiles.d/legacy.conf
266
267
endif

268
dist_systemunit_DATA = \
269
270
	units/graphical.target \
	units/multi-user.target \
271
	units/emergency.service \
272
	units/emergency.target \
273
	units/sysinit.target \
274
	units/basic.target \
275
276
	units/getty.target \
	units/halt.target \
277
	units/kexec.target \
278
	units/local-fs.target \
279
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
280
	units/remote-fs.target \
281
	units/remote-fs-pre.target \
282
	units/cryptsetup.target \
283
284
	units/network.target \
	units/nss-lookup.target \
285
	units/mail-transfer-agent.target \
286
	units/http-daemon.target \
287
288
289
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
290
	units/rpcbind.target \
291
	units/time-sync.target \
292
	units/shutdown.target \
293
	units/final.target \
294
	units/umount.target \
295
296
297
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
298
	units/systemd-initctl.socket \
299
	units/systemd-stdout-syslog-bridge.socket \
300
	units/systemd-shutdownd.socket \
301
	units/syslog.socket \
302
303
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
304
	units/sys-kernel-config.mount \
305
	units/sys-kernel-debug.mount \
306
	units/sys-kernel-security.mount \
307
	units/sys-fs-fuse-connections.mount \
308
	units/var-run.mount \
309
	units/media.mount \
310
	units/remount-rootfs.service \
311
	units/printer.target \
312
	units/sound.target \
313
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
314
	units/smartcard.target \
315
	units/systemd-tmpfiles-clean.timer \
316
	units/quotaon.service \
317
	units/systemd-ask-password-wall.path \
318
	units/systemd-ask-password-console.path \
Kay Sievers's avatar
Kay Sievers committed
319
	units/syslog.target
320

321
322
323
324
325
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

326
nodist_systemunit_DATA = \
327
	units/getty@.service \
328
	units/serial-getty@.service \
329
	units/console-shell.service \
330
	units/systemd-initctl.service \
331
	units/systemd-stdout-syslog-bridge.service \
332
	units/systemd-shutdownd.service \
333
	units/systemd-kmsg-syslogd.service \
334
	units/systemd-modules-load.service \
335
	units/systemd-vconsole-setup.service \
336
	units/systemd-remount-api-vfs.service \
337
338
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
339
340
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
341
342
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
343
	units/systemd-user-sessions.service \
344
	units/systemd-ask-password-wall.service \
345
	units/systemd-ask-password-console.service \
346
	units/systemd-sysctl.service \
347
348
349
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
350
351
	units/kexec.service \
	units/fsck@.service \
352
	units/fsck-root.service \
353
	units/quotacheck.service \
354
	units/rescue.service \
355
	units/user@.service
356

357
358
359
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
360

361
362
nodist_userunit_DATA = \
	units/user/exit.service
363

364
EXTRA_DIST += \
365
	units/getty@.service.m4 \
366
	units/serial-getty@.service.m4 \
367
	units/console-shell.service.m4 \
368
	units/rescue.service.m4 \
369
	units/systemd-initctl.service.in \
370
	units/systemd-stdout-syslog-bridge.service.in \
371
	units/systemd-shutdownd.service.in \
372
	units/systemd-kmsg-syslogd.service.in \
373
	units/systemd-modules-load.service.in \
374
	units/systemd-vconsole-setup.service.in \
375
	units/systemd-remount-api-vfs.service.in \
376
377
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
378
379
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
380
381
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
382
	units/systemd-user-sessions.service.in \
383
	units/systemd-ask-password-wall.service.in \
384
	units/systemd-ask-password-console.service.in \
385
	units/systemd-sysctl.service.in \
386
387
388
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
389
	units/kexec.service.in \
390
	units/user/exit.service.in \
391
392
	units/fsck@.service.in \
	units/fsck-root.service.in \
393
	units/quotacheck.service.in \
Kay Sievers's avatar
Kay Sievers committed
394
	units/user@.service.in \
395
	systemd.pc.in \
Kay Sievers's avatar
Kay Sievers committed
396
397
	libsystemd-daemon.pc.in \
	src/libsystemd-daemon.sym \
398
	introspect.awk \
399
	src/73-seat-late.rules.in \
400
401
	src/99-systemd.rules.in \
	man/custom-html.xsl
402

403
404
405
406
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
407
	units/fedora/halt-local.service
408
409
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
410
411
endif

412
413
414
415
416
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
417
418
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
419
420
endif

421
422
423
424
425
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

426
427
428
429
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
430
431
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
432
433
endif

Dexter Morgan's avatar
Dexter Morgan committed
434
435
436
437
438
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
439
440
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
441
442
endif

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

462
463
dist_doc_DATA = \
	README \
464
	LICENSE \
465
	DISTRO_PORTING
466

467
pkgconfigdata_DATA = \
468
469
470
	systemd.pc

pkgconfiglib_DATA = \
471
	libsystemd-daemon.pc
472

473
474
475
476
477
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
478
479
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
480
481

EXTRA_DIST += \
482
483
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
484

485
@INTLTOOL_POLICY_RULE@
486

487
488
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
489
	libsystemd-core.la
490
491

libsystemd_basic_la_SOURCES = \
492
	src/util.c \
493
	src/virt.c \
494
	src/label.c \
495
496
497
498
499
500
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
501
502
	src/ratelimit.c \
	src/exit-status.c
503

504
505
506
507
508
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
509
510
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
511

512
libsystemd_core_la_SOURCES = \
513
	src/unit.c \
514
515
	src/job.c \
	src/manager.c \
516
	src/path-lookup.c \
517
518
519
520
521
522
523
524
525
526
	src/load-fragment.c \
	src/service.c \
	src/automount.c \
	src/mount.c \
	src/swap.c \
	src/device.c \
	src/target.c \
	src/snapshot.c \
	src/socket.c \
	src/timer.c \
527
	src/path.c \
528
529
	src/load-dropin.c \
	src/execute.c \
530
	src/utmp-wtmp.c \
531
532
533
534
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
535
536
	src/dbus-service.c \
	src/dbus-socket.c \
537
	src/dbus-timer.c \
538
539
540
541
542
543
544
	src/dbus-target.c \
	src/dbus-mount.c \
	src/dbus-automount.c \
	src/dbus-swap.c \
	src/dbus-snapshot.c \
	src/dbus-device.c \
	src/dbus-execute.c \
545
	src/dbus-path.c \
546
547
548
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
549
	src/selinux-setup.c \
550
	src/loopback-setup.c \
551
	src/kmod-setup.c \
552
	src/locale-setup.c \
553
	src/machine-id-setup.c \
554
555
556
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
557
	src/namespace.c \
558
	src/tcpwrap.c \
559
	src/cgroup-util.c \
560
	src/condition.c \
561
562
563
564
565
	src/dbus-common.c \
	src/sd-daemon.c \
	src/install.c \
	src/cgroup-attr.c \
	src/sd-id128.c
566

567
nodist_libsystemd_core_la_SOURCES = \
568
569
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
570

571
EXTRA_DIST += \
572
	src/load-fragment-gperf.gperf.m4
573

574
575
576
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
577
578
579
580
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
581
582
583
584
585
586

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
587
	$(PAM_LIBS) \
588
589
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
590

591
592
593
594
# This is needed because automake is buggy in how it generates the
# rules for C programs, but not Vala programs.  We therefore can't
# list the .h files as dependencies if we want make dist to work.

595
EXTRA_DIST += \
596
597
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
598
	src/macro.h \
599
	src/def.h \
600
601
602
603
604
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
605
	src/linux/fanotify.h \
606
	src/initreq.h \
607
	src/special.h \
608
	src/dbus-common.h \
609
	src/bus-errors.h \
610
	src/cgroup-show.h \
611
	src/build.h \
612
	src/shutdownd.h \
613
	src/umount.h \
614
	src/ask-password-api.h \
615
616
617
618
619
620
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
	src/acl-util.h
621
622

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
623
	man/systemd.1 \
624
625
	man/systemctl.1 \
	man/systemadm.1 \
626
	man/systemd-cgls.1 \
627
	man/systemd-nspawn.1 \
628
	man/systemd-tmpfiles.8 \
629
	man/systemd-notify.1 \
630
631
	man/systemd.unit.5 \
	man/systemd.service.5 \
632
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
633
	man/systemd.mount.5 \
634
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
635
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
636
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
637
	man/systemd.path.5 \
638
	man/systemd.target.5 \
639
	man/systemd.device.5 \
640
	man/systemd.snapshot.5 \
641
	man/systemd.exec.5 \
642
	man/daemon.7 \
643
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
644
645
646
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
647
	man/pam_systemd.8 \
648
	man/systemd.conf.5 \
649
	man/tmpfiles.d.5 \
650
	man/hostname.5 \
651
	man/timezone.5 \
652
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
653
	man/vconsole.conf.5 \
654
	man/locale.conf.5 \
655
	man/os-release.5 \
656
	man/machine-info.5 \
657
	man/modules-load.d.5 \
658
	man/sysctl.d.5 \
659
	man/systemd-ask-password.1
660
661
662
663

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
664
	man/init.1
665
666
667
668
669
670
671
672

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
673
674

nodist_man_MANS = \
675
	man/systemd.special.7
676

677
678
679
680
681
682
XML_FILES = \
	${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}

XML_IN_FILES = \
	${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}

683
dist_noinst_DATA = \
684
	${XML_FILES:.xml=.html}
685

686
nodist_noinst_DATA = \
687
	${XML_IN_FILES:.xml.in=.html}
688
689

EXTRA_DIST += \
690
691
692
693
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
694

695
systemd_SOURCES = \
696
	src/main.c
697

698
699
systemd_CFLAGS = \
	$(AM_CFLAGS) \
700
	$(DBUS_CFLAGS) \
701
	$(UDEV_CFLAGS)
702
703

systemd_LDADD = \
704
	libsystemd-core.la
705
706

test_engine_SOURCES = \
707
	src/test-engine.c
708

709
test_engine_CFLAGS = $(systemd_CFLAGS)
710
711
712
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
713
	src/test-job-type.c
714

715
test_job_type_CFLAGS = $(systemd_CFLAGS)
716
717
test_job_type_LDADD = $(systemd_LDADD)

718
test_ns_SOURCES = \
719
	src/test-ns.c
720

721
test_ns_CFLAGS = $(systemd_CFLAGS)
722
723
test_ns_LDADD = $(systemd_LDADD)

724
test_loopback_SOURCES = \
725
726
	src/test-loopback.c \
	src/loopback-setup.c
727

728
729
730
test_loopback_LDADD = \
	libsystemd-basic.la

731
732
733
734
735
736
737
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

738
test_daemon_SOURCES = \
739
	src/test-daemon.c
740

741
test_daemon_LDADD = \
742
743
	libsystemd-basic.la \
	libsystemd-daemon.la
744

745
746
747
748
749
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_LDADD = \
750
	libsystemd-basic.la
751

752
753
754
755
756
757
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_LDADD = \
	libsystemd-basic.la

758
test_strv_SOURCES = \
759
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
760
	src/specifier.c
761
762
763
764

test_strv_LDADD = \
	libsystemd-basic.la

765
766
test_install_SOURCES = \
	src/test-install.c \
767
768
769
	src/install.c \
	src/path-lookup.c \
	src/unit-name.c
770
771
772

test_install_CFLAGS = \
	$(AM_CFLAGS) \
773
	$(DBUS_CFLAGS)
774
775
776
777

test_install_LDADD = \
	libsystemd-basic.la

Kay Sievers's avatar
Kay Sievers committed
778
779
780
systemd_stdout_syslog_bridge_SOURCES = \
	src/stdout-syslog-bridge.c \
	src/tcpwrap.c
781

Kay Sievers's avatar
Kay Sievers committed
782
783
784
785
786
787
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
systemd_stdout_syslog_bridge_LDADD = \
	libsystemd-basic.la \
	libsystemd-daemon.la \
	$(LIBWRAP_LIBS)

systemd_initctl_SOURCES = \
	src/initctl.c \
	src/dbus-common.c

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

systemd_initctl_LDADD = \
	libsystemd-basic.la \
	libsystemd-daemon.la \
	$(DBUS_LIBS)

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 = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(AUDIT_LIBS)

systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_LDADD = \
819
820
	libsystemd-basic.la

Kay Sievers's avatar
Kay Sievers committed
821
822
823
systemd_shutdownd_SOURCES = \
	src/utmp-wtmp.c \
	src/shutdownd.c
824

Kay Sievers's avatar
Kay Sievers committed
825
826
827
828
829
830
831
832
833
834
835
836
837
systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
	libsystemd-basic.la \
	libsystemd-daemon.la

dist_pkgdata_DATA = \
	src/kbd-model-map

dist_noinst_SCRIPT = \
	src/generate-kbd-model-map

838
839
840
841
systemd_shutdown_SOURCES = \
	src/mount-setup.c \
	src/umount.c \
	src/shutdown.c
842

843
systemd_shutdown_CFLAGS = \
844
	$(AM_CFLAGS) \
845
	$(UDEV_CFLAGS)
846

847
848
849
systemd_shutdown_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS)
850

851
852
systemd_modules_load_SOURCES = \
	src/modules-load.c
853

854
systemd_modules_load_LDADD = \
855
856
	libsystemd-basic.la

857
858
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
859

860
861
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la
862

863
864
865
866
systemd_machine_id_setup_SOURCES = \
	src/machine-id-setup.c \
	src/machine-id-main.c \
	src/sd-id128.c
867

868
869
systemd_machine_id_setup_LDADD = \
	libsystemd-basic.la
870

871
872
systemd_sysctl_SOURCES = \
	src/sysctl.c
873

874
875
systemd_sysctl_LDADD = \
	libsystemd-basic.la
876

877
878
879
systemd_fsck_SOURCES = \
	src/fsck.c \
	src/dbus-common.c
880

881
systemd_fsck_CFLAGS = \
882
	$(AM_CFLAGS) \
883
884
	$(UDEV_CFLAGS) \
	$(DBUS_CFLAGS)
885

886
systemd_fsck_LDADD = \
887
	libsystemd-basic.la \
888
889
	$(UDEV_LIBS) \
	$(DBUS_LIBS)
890

891
892
systemd_quotacheck_SOURCES = \
	src/quotacheck.c
893

894
systemd_quotacheck_LDADD = \
895
896
	libsystemd-basic.la

897
898
systemd_timestamp_SOURCES = \
	src/timestamp.c
899

900
systemd_timestamp_LDADD = \
Kay Sievers's avatar
Kay Sievers committed
901
	libsystemd-basic.la
902

903
904
systemd_ac_power_SOURCES = \
	src/ac-power.c
905

906
907
908
systemd_ac_power_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS)
909

910
911