Makefile.am 62 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
24
25
LIBSYSTEMD_LOGIN_CURRENT=1
LIBSYSTEMD_LOGIN_REVISION=0
LIBSYSTEMD_LOGIN_AGE=1
26

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

# And these are the special ones for /
59
60
61
rootprefix=@rootprefix@
rootbindir=$(rootprefix)/bin
rootlibexecdir=$(rootprefix)/lib/systemd
62
63
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
64
systemunitdir=$(rootprefix)/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
	-DROOTPREFIX=\"$(rootprefix)\" \
93
	-DRUNTIME_DIR=\"/run\" \
94
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
95
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
96
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
97
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
98
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
99
	-DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
100
101
	-I $(top_srcdir)/src \
	-I $(top_srcdir)/src/readahead \
102
	-I $(top_srcdir)/src/login \
103
104
	-I $(top_srcdir)/src/journal \
	-I $(top_srcdir)/src/systemd
105

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

160
rootbin_PROGRAMS = \
161
	systemd \
162
	systemctl \
163
	systemd-notify \
164
	systemd-ask-password \
165
	systemd-tty-ask-password-agent \
166
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
167
	systemd-machine-id-setup
168

169
bin_PROGRAMS = \
170
	systemd-cgls \
171
	systemd-stdio-bridge \
172
	systemd-nspawn
173

174
dist_bin_SCRIPTS = \
175
	src/systemd-analyze
176

177
178
if HAVE_GTK
bin_PROGRAMS += \
179
	systemadm \
180
	systemd-gnome-ask-password-agent
181
endif
182

183
rootlibexec_PROGRAMS = \
184
	systemd-cgroups-agent \
185
	systemd-initctl \
186
	systemd-update-utmp \
187
	systemd-shutdownd \
188
	systemd-shutdown \
189
	systemd-modules-load \
190
	systemd-remount-api-vfs \
191
	systemd-reply-password \
192
	systemd-fsck \
193
	systemd-timestamp \
194
	systemd-ac-power \
195
	systemd-detect-virt \
Kay Sievers's avatar
Kay Sievers committed
196
	systemd-sysctl
197

198
systemgenerator_PROGRAMS = \
199
	systemd-getty-generator
200

201
202
noinst_PROGRAMS = \
	test-engine \
203
	test-job-type \
204
	test-ns \
205
	test-loopback \
206
	test-hostname \
207
	test-daemon \
208
	test-cgroup \
209
	test-env-replace \
210
	test-strv \
211
	test-install
212

213
dist_pkgsysconf_DATA = \
214
	src/system.conf \
215
	src/user.conf
216

217
dist_dbuspolicy_DATA = \
218
	src/org.freedesktop.systemd1.conf
219

220
dist_dbussystemservice_DATA = \
221
	src/org.freedesktop.systemd1.service
222

223
dist_udevrules_DATA = \
224
	src/71-seat.rules
225

226
nodist_udevrules_DATA = \
227
228
	src/73-seat-late.rules \
	src/99-systemd.rules
229

230
dbusinterface_DATA = \
231
232
233
234
235
	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 \
236
	org.freedesktop.systemd1.Timer.xml \
237
238
239
240
241
	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 \
242
	org.freedesktop.systemd1.Swap.xml \
243
	org.freedesktop.systemd1.Path.xml
244

245
dist_bashcompletion_DATA = \
246
	src/systemd-bash-completion.sh
247

248
249
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
250
	tmpfiles.d/tmp.conf \
251
252
	tmpfiles.d/x11.conf

253
254
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
255
	tmpfiles.d/legacy.conf
256
257
endif

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

309
310
311
312
313
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

314
nodist_systemunit_DATA = \
315
	units/getty@.service \
316
	units/serial-getty@.service \
317
	units/console-shell.service \
318
	units/systemd-initctl.service \
319
	units/systemd-shutdownd.service \
320
	units/systemd-modules-load.service \
321
	units/systemd-remount-api-vfs.service \
322
323
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
324
325
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
326
	units/systemd-ask-password-wall.service \
327
	units/systemd-ask-password-console.service \
328
	units/systemd-sysctl.service \
329
330
331
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
332
333
	units/kexec.service \
	units/fsck@.service \
334
	units/fsck-root.service \
335
	units/rescue.service \
336
	units/user@.service
337

338
339
340
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
341

342
343
nodist_userunit_DATA = \
	units/user/exit.service
344

345
EXTRA_DIST += \
346
	units/getty@.service.m4 \
347
	units/serial-getty@.service.m4 \
348
	units/console-shell.service.m4 \
349
	units/rescue.service.m4 \
350
	units/systemd-initctl.service.in \
351
	units/systemd-shutdownd.service.in \
352
	units/systemd-modules-load.service.in \
353
	units/systemd-remount-api-vfs.service.in \
354
355
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
356
357
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
358
	units/systemd-ask-password-wall.service.in \
359
	units/systemd-ask-password-console.service.in \
360
	units/systemd-sysctl.service.in \
361
362
363
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
364
	units/kexec.service.in \
365
	units/user/exit.service.in \
366
367
	units/fsck@.service.in \
	units/fsck-root.service.in \
Kay Sievers's avatar
Kay Sievers committed
368
	units/user@.service.in \
369
	src/systemd.pc.in \
370
	introspect.awk \
371
	src/73-seat-late.rules.in \
372
373
	src/99-systemd.rules.in \
	man/custom-html.xsl
374

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

384
385
386
387
388
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
389
390
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
391
392
endif

393
394
395
396
397
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

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

Dexter Morgan's avatar
Dexter Morgan committed
406
407
408
409
410
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
411
412
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
413
414
endif

415
416
417
418
419
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
420
	units/plymouth-quit-wait.service \
421
422
423
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
424
425
426
427
428
429
430
431
	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
432
433
endif

434
435
dist_doc_DATA = \
	README \
436
	LICENSE \
437
	DISTRO_PORTING
438

439
pkgconfigdata_DATA = \
440
	src/systemd.pc
441

442
443
444
445
446
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
447
448
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
449
450

EXTRA_DIST += \
451
452
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
453

454
@INTLTOOL_POLICY_RULE@
455

456
457
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
458
	libsystemd-core.la
459
460

libsystemd_basic_la_SOURCES = \
461
	src/util.c \
462
	src/virt.c \
463
	src/label.c \
464
465
466
467
468
469
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
470
471
	src/ratelimit.c \
	src/exit-status.c
472

473
474
475
476
477
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
478
479
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
480

481
libsystemd_core_la_SOURCES = \
482
	src/unit.c \
483
484
	src/job.c \
	src/manager.c \
485
	src/path-lookup.c \
486
487
488
489
490
491
492
493
494
495
	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 \
496
	src/path.c \
497
498
	src/load-dropin.c \
	src/execute.c \
499
	src/utmp-wtmp.c \
500
501
502
503
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
504
505
	src/dbus-service.c \
	src/dbus-socket.c \
506
	src/dbus-timer.c \
507
508
509
510
511
512
513
	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 \
514
	src/dbus-path.c \
515
516
517
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
518
	src/selinux-setup.c \
519
	src/loopback-setup.c \
520
	src/kmod-setup.c \
521
	src/locale-setup.c \
522
	src/machine-id-setup.c \
523
524
525
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
526
	src/namespace.c \
527
	src/tcpwrap.c \
528
	src/cgroup-util.c \
529
	src/condition.c \
530
531
532
533
534
	src/dbus-common.c \
	src/sd-daemon.c \
	src/install.c \
	src/cgroup-attr.c \
	src/sd-id128.c
535

536
nodist_libsystemd_core_la_SOURCES = \
537
538
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
539

540
EXTRA_DIST += \
541
	src/load-fragment-gperf.gperf.m4
542

543
544
545
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
546
547
548
549
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
550
551
552
553
554
555

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
556
	$(PAM_LIBS) \
557
558
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
559

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

564
EXTRA_DIST += \
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
	src/util.h \
	src/virt.h \
	src/label.h \
	src/hashmap.h \
	src/set.h \
	src/strv.h \
	src/conf-parser.h \
	src/socket-util.h \
	src/log.h \
	src/ratelimit.h \
	src/exit-status.h \
	src/unit.h \
	src/job.h \
	src/manager.h \
	src/path-lookup.h \
	src/load-fragment.h \
	src/service.h \
	src/automount.h \
	src/mount.h \
	src/swap.h \
	src/device.h \
	src/target.h \
	src/snapshot.h \
	src/socket.h \
	src/timer.h \
	src/path.h \
	src/load-dropin.h \
	src/execute.h \
	src/utmp-wtmp.h \
	src/dbus.h \
	src/dbus-manager.h \
	src/dbus-unit.h \
	src/dbus-job.h \
	src/dbus-service.h \
	src/dbus-socket.h \
	src/dbus-timer.h \
	src/dbus-target.h \
	src/dbus-mount.h \
	src/dbus-automount.h \
	src/dbus-swap.h \
	src/dbus-snapshot.h \
	src/dbus-device.h \
	src/dbus-execute.h \
	src/dbus-path.h \
	src/cgroup.h \
	src/mount-setup.h \
	src/hostname-setup.h \
	src/selinux-setup.h \
	src/loopback-setup.h \
	src/kmod-setup.h \
	src/locale-setup.h \
	src/machine-id-setup.h \
	src/specifier.h \
	src/unit-name.h \
	src/fdset.h \
	src/namespace.h \
	src/tcpwrap.h \
	src/cgroup-util.h \
	src/condition.h \
	src/dbus-common.h \
	src/install.h \
	src/cgroup-attr.h \
627
	src/macro.h \
628
	src/def.h \
629
630
631
632
633
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
634
	src/linux/fanotify.h \
635
	src/initreq.h \
636
	src/special.h \
637
	src/dbus-common.h \
638
	src/bus-errors.h \
639
	src/cgroup-show.h \
640
	src/build.h \
641
	src/shutdownd.h \
642
	src/umount.h \
643
	src/ask-password-api.h \
644
645
646
647
648
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
649
650
	src/acl-util.h \
	src/logs-show.h
651
652

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
653
	man/systemd.1 \
654
655
	man/systemctl.1 \
	man/systemadm.1 \
656
	man/systemd-cgls.1 \
657
	man/systemd-nspawn.1 \
658
	man/systemd-tmpfiles.8 \
659
	man/systemd-notify.1 \
660
661
	man/systemd.unit.5 \
	man/systemd.service.5 \
662
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
663
	man/systemd.mount.5 \
664
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
665
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
666
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
667
	man/systemd.path.5 \
668
	man/systemd.target.5 \
669
	man/systemd.device.5 \
670
	man/systemd.snapshot.5 \
671
	man/systemd.exec.5 \
672
	man/daemon.7 \
673
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
674
675
676
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
677
	man/pam_systemd.8 \
678
	man/systemd.conf.5 \
679
	man/tmpfiles.d.5 \
680
	man/hostname.5 \
681
	man/timezone.5 \
682
	man/machine-id.5 \
683
	man/locale.conf.5 \
684
	man/os-release.5 \
685
	man/machine-info.5 \
686
	man/modules-load.d.5 \
687
	man/sysctl.d.5 \
688
	man/systemd-ask-password.1
689
690
691
692

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
693
	man/init.1
694
695
696
697
698
699
700
701

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

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
702
703

nodist_man_MANS = \
704
	man/systemd.special.7
705

706
707
708
709
710
711
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)}}}}}

712
dist_noinst_DATA = \
713
	${XML_FILES:.xml=.html}
714

715
nodist_noinst_DATA = \
716
	${XML_IN_FILES:.xml.in=.html}
717
718

EXTRA_DIST += \
719
720
721
722
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
723

724
systemd_SOURCES = \
725
	src/main.c
726

727
728
systemd_CFLAGS = \
	$(AM_CFLAGS) \
729
	$(DBUS_CFLAGS) \
730
	$(UDEV_CFLAGS)
731
732

systemd_LDADD = \
733
	libsystemd-core.la
734
735

test_engine_SOURCES = \
736
	src/test-engine.c
737

738
test_engine_CFLAGS = $(systemd_CFLAGS)
739
740
741
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
742
	src/test-job-type.c
743

744
test_job_type_CFLAGS = $(systemd_CFLAGS)
745
746
test_job_type_LDADD = $(systemd_LDADD)

747
test_ns_SOURCES = \
748
	src/test-ns.c
749

750
test_ns_CFLAGS = $(systemd_CFLAGS)
751
752
test_ns_LDADD = $(systemd_LDADD)

753
test_loopback_SOURCES = \
754
755
	src/test-loopback.c \
	src/loopback-setup.c
756

757
758
759
test_loopback_LDADD = \
	libsystemd-basic.la

760
761
762
763
764
765
766
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

767
test_daemon_SOURCES = \
768
	src/test-daemon.c
769

770
test_daemon_LDADD = \
771
772
	libsystemd-basic.la \
	libsystemd-daemon.la
773

774
775
776
777
778
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_LDADD = \
779
	libsystemd-basic.la
780

781
782
783
784
785
786
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_LDADD = \
	libsystemd-basic.la

787
test_strv_SOURCES = \
788
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
789
	src/specifier.c
790
791
792
793

test_strv_LDADD = \
	libsystemd-basic.la

794
795
test_install_SOURCES = \
	src/test-install.c \
796
797
798
	src/install.c \
	src/path-lookup.c \
	src/unit-name.c
799
800
801

test_install_CFLAGS = \
	$(AM_CFLAGS) \
802
	$(DBUS_CFLAGS)
803
804
805
806

test_install_LDADD = \
	libsystemd-basic.la

Kay Sievers's avatar
Kay Sievers committed
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
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_shutdownd_SOURCES = \
	src/utmp-wtmp.c \
	src/shutdownd.c
838

Kay Sievers's avatar
Kay Sievers committed
839
840
841
842
843
844
845
systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

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

846
847
848
849
systemd_shutdown_SOURCES = \
	src/mount-setup.c \
	src/umount.c \
	src/shutdown.c
850

851
systemd_shutdown_CFLAGS = \
852
	$(AM_CFLAGS) \
853
	$(UDEV_CFLAGS)
854

855
856
857
systemd_shutdown_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS)
858

859
860
systemd_modules_load_SOURCES = \
	src/modules-load.c
861

862
systemd_modules_load_LDADD = \
863
864
	libsystemd-basic.la

865
866
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
867

868
869
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la
870

871
872
873
874
systemd_machine_id_setup_SOURCES = \
	src/machine-id-setup.c \
	src/machine-id-main.c \
	src/sd-id128.c
875

876
877
systemd_machine_id_setup_LDADD = \
	libsystemd-basic.la
878

879
880
systemd_sysctl_SOURCES = \
	src/sysctl.c
881

882
883
systemd_sysctl_LDADD = \
	libsystemd-basic.la
884

885
886
887
systemd_fsck_SOURCES = \
	src/fsck.c \
	src/dbus-common.c
888

889
systemd_fsck_CFLAGS = \
890
	$(AM_CFLAGS) \
891
892
	$(UDEV_CFLAGS) \
	$(DBUS_CFLAGS)
893

894
systemd_fsck_LDADD = \
895
	libsystemd-basic.la \
896
897
	$(UDEV_LIBS) \
	$(DBUS_LIBS)
898

899
900
systemd_timestamp_SOURCES = \
	src/timestamp.c
901

902
systemd_timestamp_LDADD = \
Kay Sievers's avatar
Kay Sievers committed
903
	libsystemd-basic.la
904

905
906
systemd_ac_power_SOURCES = \
	src/ac-power.c
907

908
909
910
systemd_ac_power_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS)
911

912
913
914
systemd_ac_power_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS)
915

916
917
systemd_detect_virt_SOURCES = \
	src/detect-virt.c
918

919
920
systemd_detect_virt_LDADD = \
	libsystemd-basic.la
Kay Sievers's avatar
Kay Sievers committed
921

922
923
924
systemd_getty_generator_SOURCES = \
	src/getty-generator.c \
	src/unit-name.c
925

926
927
systemd_getty_generator_LDADD = \
	libsystemd-basic.la
Kay Sievers's avatar
Kay Sievers committed
928

929
930
systemd_rc_local_generator_SOURCES = \
	src/rc-local-generator.c
Kay Sievers's avatar
Kay Sievers committed
931

932
933
systemd_rc_local_generator_LDADD = \
	libsystemd-basic.la
Kay Sievers's avatar
Kay Sievers committed
934

935
936
937
938
systemd_remount_api_vfs_SOURCES = \
	src/remount-api-vfs.c \
	src/mount-setup.c \
	src/exit-status.c
939

940
941
systemd_remount_api_vfs_LDADD = \
	libsystemd-basic.la
942

943
944
945
systemd_cgroups_agent_SOURCES = \
	src/cgroups-agent.c \
	src/dbus-common.c
946

947
systemd_cgroups_agent_CFLAGS = \
948
949
950
	$(AM_C