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
LIBSYSTEMD_LOGIN_CURRENT=2
24
LIBSYSTEMD_LOGIN_REVISION=1
25
LIBSYSTEMD_LOGIN_AGE=2
26

27
LIBSYSTEMD_DAEMON_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
28
LIBSYSTEMD_DAEMON_REVISION=1
29
30
LIBSYSTEMD_DAEMON_AGE=0

31
LIBSYSTEMD_ID128_CURRENT=0
32
LIBSYSTEMD_ID128_REVISION=3
33
34
35
LIBSYSTEMD_ID128_AGE=0

LIBSYSTEMD_JOURNAL_CURRENT=0
36
LIBSYSTEMD_JOURNAL_REVISION=3
37
38
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
sysctldir=$(prefix)/lib/sysctl.d
56
usergeneratordir=$(pkglibexecdir)/user-generators
57
pkgincludedir=$(includedir)/systemd
58
59

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

67
68
69
70
71
CLEANFILES =
EXTRA_DIST =
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
72
pkginclude_HEADERS =
73
74
lib_LTLIBRARIES =
pkgconfiglib_DATA =
75
polkitpolicy_in_files =
76
dist_udevrules_DATA =
77

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

109
AM_CFLAGS = $(WARNINGFLAGS)
110
AM_LDFLAGS = $(GCLDFLAGS)
111

112
113
114
115
116
117
if TARGET_GENTOO
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_ARCH
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_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
130
131
132
133
134
135
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
136
137
138
139
140
141
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
142
143
144
145
146
147
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
148
if TARGET_MAGEIA
149
150
151
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
152
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
Dexter Morgan's avatar
Dexter Morgan committed
153
154
155
156
else
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
157
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
158
endif
159
endif
160
endif
161
endif
162
endif
Chris E Ferron's avatar
Chris E Ferron committed
163
endif
Koen Kooi's avatar
Koen Kooi committed
164
endif
165

166
rootbin_PROGRAMS = \
167
	systemctl \
168
	systemd-notify \
169
	systemd-ask-password \
170
	systemd-tty-ask-password-agent \
171
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
172
	systemd-machine-id-setup
173

174
bin_PROGRAMS = \
175
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
176
	systemd-cgtop \
177
	systemd-stdio-bridge \
178
	systemd-nspawn
179

180
dist_bin_SCRIPTS = \
181
	src/systemd-analyze
182

183
rootlibexec_PROGRAMS = \
184
	systemd \
185
	systemd-cgroups-agent \
186
	systemd-initctl \
187
	systemd-update-utmp \
188
	systemd-shutdownd \
189
	systemd-shutdown \
190
	systemd-modules-load \
191
	systemd-remount-api-vfs \
192
	systemd-reply-password \
193
	systemd-fsck \
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
noinst_PROGRAMS = \
	test-engine \
204
	test-job-type \
205
	test-ns \
206
	test-loopback \
207
	test-hostname \
208
	test-daemon \
209
	test-cgroup \
210
	test-env-replace \
211
	test-strv \
212
	test-install
213

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

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

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

224
nodist_udevrules_DATA = \
225
	src/99-systemd.rules
226

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

242
dist_bashcompletion_DATA = \
243
	src/systemd-bash-completion.sh
244

245
246
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
247
	tmpfiles.d/tmp.conf \
248
249
	tmpfiles.d/x11.conf

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

255
dist_systemunit_DATA = \
256
257
	units/graphical.target \
	units/multi-user.target \
258
	units/emergency.service \
259
	units/emergency.target \
260
	units/sysinit.target \
261
	units/basic.target \
262
263
	units/getty.target \
	units/halt.target \
264
	units/kexec.target \
265
	units/local-fs.target \
266
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
267
	units/remote-fs.target \
268
	units/remote-fs-pre.target \
269
270
	units/network.target \
	units/nss-lookup.target \
271
	units/mail-transfer-agent.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
282
283
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
284
	units/systemd-initctl.socket \
285
	units/systemd-shutdownd.socket \
286
	units/syslog.socket \
287
288
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
289
	units/sys-kernel-config.mount \
290
	units/sys-kernel-debug.mount \
291
	units/sys-fs-fuse-connections.mount \
292
	units/remount-rootfs.service \
293
	units/printer.target \
294
	units/sound.target \
295
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
296
	units/smartcard.target \
297
	units/systemd-tmpfiles-clean.timer \
298
	units/quotaon.service \
299
	units/systemd-ask-password-wall.path \
300
	units/systemd-ask-password-console.path \
Kay Sievers's avatar
Kay Sievers committed
301
	units/syslog.target
302

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

327
328
329
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
330

331
332
nodist_userunit_DATA = \
	units/user/exit.service
333

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

363
364
365
366
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
367
	units/fedora/halt-local.service
368
369
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
370
371
endif

372
373
374
375
376
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
377
378
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
379
380
endif

381
382
383
384
385
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

386
387
388
389
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
390
391
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
392
393
endif

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

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

422
423
dist_doc_DATA = \
	README \
424
        NEWS \
425
	LICENSE \
426
	DISTRO_PORTING
427

428
pkgconfigdata_DATA = \
429
	src/systemd.pc
430

431
432
433
434
435
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
436
437
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
438
439

EXTRA_DIST += \
440
441
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
442

443
@INTLTOOL_POLICY_RULE@
444

445
446
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
447
	libsystemd-core.la
448
449

libsystemd_basic_la_SOURCES = \
450
	src/util.c \
451
	src/virt.c \
452
	src/label.c \
453
454
455
456
457
458
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
459
	src/ratelimit.c \
460
461
	src/exit-status.c \
        src/utf8.c
462

463
464
465
466
467
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
468
469
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
470

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

527
nodist_libsystemd_core_la_SOURCES = \
528
529
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
530

531
EXTRA_DIST += \
532
	src/load-fragment-gperf.gperf.m4
533

534
535
536
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
537
538
539
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
540
541
	$(AUDIT_CFLAGS) \
	$(KMOD_CFLAGS)
542
543
544
545
546
547

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
548
	$(PAM_LIBS) \
549
	$(AUDIT_LIBS) \
550
551
	$(CAP_LIBS) \
	$(KMOD_LIBS)
552

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

557
EXTRA_DIST += \
558
559
560
561
562
563
564
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
	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 \
620
	src/macro.h \
621
	src/def.h \
622
623
624
625
626
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
627
	src/linux/fanotify.h \
628
	src/initreq.h \
629
	src/special.h \
630
	src/dbus-common.h \
631
	src/bus-errors.h \
632
	src/cgroup-show.h \
633
	src/build.h \
634
	src/shutdownd.h \
635
	src/umount.h \
636
	src/ask-password-api.h \
637
638
639
640
641
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
642
	src/acl-util.h \
643
	src/logs-show.h \
644
645
646
        src/utf8.h \
        src/journal/sparse-endian.h \
        src/ima-setup.h
647
648

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

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
694
695
696
697
	man/init.1 \
        man/systemd-systemctl.1 \
        man/systemd-loginctl.1 \
        man/systemd-journalctl.1
698
699
700
701

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1
702
703
704
man/systemd-systemctl.1: man/systemctl.1
man/systemd-loginctl.1: man/loginctl.1
man/systemd-journalctl.1: man/journalctl.1
705

706
707
708
XML_FILES = \
	${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}

709
if ENABLE_MANPAGES
710
man_MANS = \
711
712
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
713

714
noinst_DATA = \
715
	${XML_FILES:.xml=.html}
716
endif
717
718

EXTRA_DIST += \
719
720
721
722
	$(XML_FILES) \
	${XML_FILES:.xml=.html} \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
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
863
864
systemd_modules_load_CFLAGS = \
	$(KMOD_CFLAGS)

865
systemd_modules_load_LDADD = \
866
867
	libsystemd-basic.la \
	$(KMOD_LIBS)
868

869
870
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
871

872
873
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la
874

875
876
877
878
systemd_machine_id_setup_SOURCES = \
	src/machine-id-setup.c \
	src/machine-id-main.c \
	src/sd-id128.c
879

880
881
systemd_machine_id_setup_LDADD = \
	libsystemd-basic.la
882

883
884
systemd_sysctl_SOURCES = \
	src/sysctl.c
885

886
887
systemd_sysctl_LDADD = \
	libsystemd-basic.la
888

889
890
891
systemd_fsck_SOURCES = \
	src/fsck.c \
	src/dbus-common.c
892

893
systemd_fsck_CFLAGS = \
894
	$(AM_CFLAGS) \
895
896
	$(UDEV_CFLAGS) \
	$(DBUS_CFLAGS)
897

898
systemd_fsck_LDADD = \
899
	libsystemd-basic.la \
900
901
	$(UDEV_LIBS) \
	$(DBUS_LIBS)
902

903
904
systemd_timestamp_SOURCES = \
	src/timestamp.c
905

906
systemd_timestamp_LDADD = \
Kay Sievers's avatar
Kay Sievers committed
907
	libsystemd-basic.la
908

909
910
systemd_ac_power_SOURCES = \
	src/ac-power.c
911

912
913
914
systemd_ac_power_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS)
915

916
917
918
systemd_ac_power_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS)
919

920
921
systemd_detect_virt_SOURCES = \
	src/detect-virt.c
922

923
924
systemd_detect_virt_LDADD = \
	libsystemd-basic.la
Kay Sievers's avatar
Kay Sievers committed
925

926
927
928