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
lib_LTLIBRARIES =
pkgconfiglib_DATA =
74
75
polkitpolicy_in_files =

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

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

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

164
bin_PROGRAMS = \
165
	systemd-cgls \
166
	systemd-stdio-bridge \
167
	systemd-nspawn
168

169
dist_bin_SCRIPTS = \
170
	src/systemd-analyze
171

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

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

199
systemgenerator_PROGRAMS = \
200
	systemd-getty-generator
201

202
203
204
205
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

206
systemgenerator_PROGRAMS += \
207
	systemd-cryptsetup-generator
208
endif
209

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

363
EXTRA_DIST += \
364
	units/getty@.service.m4 \
365
	units/serial-getty@.service.m4 \
366
	units/console-shell.service.m4 \
367
	units/rescue.service.m4 \
368
	units/systemd-initctl.service.in \
369
	units/systemd-stdout-syslog-bridge.service.in \
370
	units/systemd-shutdownd.service.in \
371
	units/systemd-kmsg-syslogd.service.in \
372
	units/systemd-modules-load.service.in \
373
	units/systemd-vconsole-setup.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-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
379
380
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
381
	units/systemd-user-sessions.service.in \
382
	units/systemd-ask-password-wall.service.in \
383
	units/systemd-ask-password-console.service.in \
384
	units/systemd-sysctl.service.in \
385
386
387
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
388
	units/kexec.service.in \
389
	units/user/exit.service.in \
390
391
	units/fsck@.service.in \
	units/fsck-root.service.in \
392
	units/quotacheck.service.in \
Kay Sievers's avatar
Kay Sievers committed
393
	units/user@.service.in \
394
	systemd.pc.in \
395
	introspect.awk \
396
	src/73-seat-late.rules.in \
397
398
	src/99-systemd.rules.in \
	man/custom-html.xsl
399

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

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

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

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

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

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

459
460
dist_doc_DATA = \
	README \
461
	LICENSE \
462
	DISTRO_PORTING
463

464
pkgconfigdata_DATA = \
465
466
	systemd.pc

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

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

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

479
@INTLTOOL_POLICY_RULE@
480

481
482
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
483
	libsystemd-core.la
484
485

libsystemd_basic_la_SOURCES = \
486
	src/util.c \
487
	src/virt.c \
488
	src/label.c \
489
490
491
492
493
494
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
495
496
	src/ratelimit.c \
	src/exit-status.c
497

498
499
500
501
502
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
503
504
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
505

506
libsystemd_core_la_SOURCES = \
507
	src/unit.c \
508
509
	src/job.c \
	src/manager.c \
510
	src/path-lookup.c \
511
512
513
514
515
516
517
518
519
520
	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 \
521
	src/path.c \
522
523
	src/load-dropin.c \
	src/execute.c \
524
	src/utmp-wtmp.c \
525
526
527
528
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
529
530
	src/dbus-service.c \
	src/dbus-socket.c \
531
	src/dbus-timer.c \
532
533
534
535
536
537
538
	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 \
539
	src/dbus-path.c \
540
541
542
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
543
	src/selinux-setup.c \
544
	src/loopback-setup.c \
545
	src/kmod-setup.c \
546
	src/locale-setup.c \
547
	src/machine-id-setup.c \
548
549
550
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
551
	src/namespace.c \
552
	src/tcpwrap.c \
553
	src/cgroup-util.c \
554
	src/condition.c \
555
556
557
558
559
	src/dbus-common.c \
	src/sd-daemon.c \
	src/install.c \
	src/cgroup-attr.c \
	src/sd-id128.c
560

561
nodist_libsystemd_core_la_SOURCES = \
562
563
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
564

565
EXTRA_DIST += \
566
	src/load-fragment-gperf.gperf.m4
567

568
569
570
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
571
572
573
574
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
575
576
577
578
579
580

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
581
	$(PAM_LIBS) \
582
583
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
584

585
586
587
588
# 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.

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

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

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
658
	man/init.1
659
660
661
662
663
664
665
666

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

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
667
668

nodist_man_MANS = \
669
	man/systemd.special.7
670

671
672
673
674
675
676
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)}}}}}

677
dist_noinst_DATA = \
678
	${XML_FILES:.xml=.html}
679

680
nodist_noinst_DATA = \
681
	${XML_IN_FILES:.xml.in=.html}
682
683

EXTRA_DIST += \
684
685
686
687
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
688

689
systemd_SOURCES = \
690
	src/main.c
691

692
693
systemd_CFLAGS = \
	$(AM_CFLAGS) \
694
	$(DBUS_CFLAGS) \
695
	$(UDEV_CFLAGS)
696
697

systemd_LDADD = \
698
	libsystemd-core.la
699
700

test_engine_SOURCES = \
701
	src/test-engine.c
702

703
test_engine_CFLAGS = $(systemd_CFLAGS)
704
705
706
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
707
	src/test-job-type.c
708

709
test_job_type_CFLAGS = $(systemd_CFLAGS)
710
711
test_job_type_LDADD = $(systemd_LDADD)

712
test_ns_SOURCES = \
713
	src/test-ns.c
714

715
test_ns_CFLAGS = $(systemd_CFLAGS)
716
717
test_ns_LDADD = $(systemd_LDADD)

718
test_loopback_SOURCES = \
719
720
	src/test-loopback.c \
	src/loopback-setup.c
721

722
723
724
test_loopback_LDADD = \
	libsystemd-basic.la

725
726
727
728
729
730
731
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

732
test_daemon_SOURCES = \
733
	src/test-daemon.c
734

735
test_daemon_LDADD = \
736
737
	libsystemd-basic.la \
	libsystemd-daemon.la
738

739
740
741
742
743
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_LDADD = \
744
	libsystemd-basic.la
745

746
747
748
749
750
751
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_LDADD = \
	libsystemd-basic.la

752
test_strv_SOURCES = \
753
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
754
	src/specifier.c
755
756
757
758

test_strv_LDADD = \
	libsystemd-basic.la

759
760
test_install_SOURCES = \
	src/test-install.c \
761
762
763
	src/install.c \
	src/path-lookup.c \
	src/unit-name.c
764
765
766

test_install_CFLAGS = \
	$(AM_CFLAGS) \
767
	$(DBUS_CFLAGS)
768
769
770
771

test_install_LDADD = \
	libsystemd-basic.la

Kay Sievers's avatar
Kay Sievers committed
772
773
774
systemd_stdout_syslog_bridge_SOURCES = \
	src/stdout-syslog-bridge.c \
	src/tcpwrap.c
775

Kay Sievers's avatar
Kay Sievers committed
776
777
778
779
780
781
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
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 = \
813
814
	libsystemd-basic.la

Kay Sievers's avatar
Kay Sievers committed
815
816
817
systemd_shutdownd_SOURCES = \
	src/utmp-wtmp.c \
	src/shutdownd.c
818

Kay Sievers's avatar
Kay Sievers committed
819
820
821
822
823
824
825
826
827
828
829
830
831
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

832
833
834
835
systemd_shutdown_SOURCES = \
	src/mount-setup.c \
	src/umount.c \
	src/shutdown.c
836

837
systemd_shutdown_CFLAGS = \
838
	$(AM_CFLAGS) \
839
	$(UDEV_CFLAGS)
840

841
842
843
systemd_shutdown_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS)
844

845
846
systemd_modules_load_SOURCES = \
	src/modules-load.c
847

848
systemd_modules_load_LDADD = \
849
850
	libsystemd-basic.la

851
852
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
853

854
855
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la
856

857
858
859
860
systemd_machine_id_setup_SOURCES = \
	src/machine-id-setup.c \
	src/machine-id-main.c \
	src/sd-id128.c
861

862
863
systemd_machine_id_setup_LDADD = \
	libsystemd-basic.la
864

865
866
systemd_sysctl_SOURCES = \
	src/sysctl.c
867

868
869
systemd_sysctl_LDADD = \
	libsystemd-basic.la
870

871
872
873
systemd_fsck_SOURCES = \
	src/fsck.c \
	src/dbus-common.c
874

875
systemd_fsck_CFLAGS = \
876
	$(AM_CFLAGS) \
877
878
	$(UDEV_CFLAGS) \
	$(DBUS_CFLAGS)
879

880
systemd_fsck_LDADD = \
881
	libsystemd-basic.la \
882
883
	$(UDEV_LIBS) \
	$(DBUS_LIBS)
884

885
886
systemd_quotacheck_SOURCES = \
	src/quotacheck.c
887

888
systemd_quotacheck_LDADD = \
889
890
	libsystemd-basic.la

891
892
systemd_timestamp_SOURCES = \
	src/timestamp.c
893

894
systemd_timestamp_LDADD = \
Kay Sievers's avatar
Kay Sievers committed
895
	libsystemd-basic.la
896

897
898
systemd_ac_power_SOURCES = \
	src/ac-power.c
899

900
901
902
systemd_ac_power_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS)
903

904
905
906
systemd_ac_power_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS)
907

908
909
systemd_detect_virt_SOURCES = \
	src/detect-virt.c
910

911
912
systemd_detect_virt_LDADD = \
	libsystemd-basic.la