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

20
# Dirs of external packages
21
22
23
24
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
25
udevrulesdir=@udevrulesdir@
26
27
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
28
polkitpolicydir=$(datadir)/polkit-1/actions
29
bashcompletiondir=$(sysconfdir)/bash_completion.d
30

31
# Our own, non-special dirs
32
pkgsysconfdir=$(sysconfdir)/systemd
33
userunitdir=$(prefix)/lib/systemd/user
34
tmpfilesdir=$(prefix)/lib/tmpfiles.d
35
usergeneratordir=$(pkglibexecdir)/user-generators
36
37
38
39
40

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
41
42
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
43
systemunitdir=$(rootdir)/lib/systemd/system
44

45
AM_CPPFLAGS = \
46
	-include $(top_builddir)/config.h \
47
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
48
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
49
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
50
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
51
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
52
53
54
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
55
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
56
	-DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
57
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
58
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
59
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
60
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
61
	-DRUNTIME_DIR=\"/run\" \
62
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
63
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
64
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
65
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
66
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
67
	-I $(top_srcdir)/src
68

69
70
71
72
73
74
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
75
76
77
78
79
80
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
81
82
83
84
85
86
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
87
88
89
90
91
92
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
93
94
95
96
97
98
if TARGET_MEEGO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
99
100
101
102
103
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
endif
104
endif
105
endif
106
endif
Chris E Ferron's avatar
Chris E Ferron committed
107
endif
108

109
rootbin_PROGRAMS = \
110
	systemd \
111
	systemctl \
112
	systemd-notify \
113
	systemd-ask-password \
114
	systemd-tty-ask-password-agent \
115
	systemd-tmpfiles \
116
	systemd-machine-id-setup
117

118
bin_PROGRAMS = \
119
	systemd-cgls \
120
	systemd-stdio-bridge \
121
	systemd-nspawn
122

123
dist_bin_SCRIPTS = \
124
	src/systemd-analyze
125

126
127
if HAVE_GTK
bin_PROGRAMS += \
128
	systemadm \
129
	systemd-gnome-ask-password-agent
130
endif
131

132
rootlibexec_PROGRAMS = \
133
	systemd-logger \
134
	systemd-cgroups-agent \
135
	systemd-initctl \
136
	systemd-update-utmp \
137
	systemd-random-seed \
138
	systemd-shutdownd \
139
	systemd-shutdown \
140
	systemd-modules-load \
141
	systemd-remount-api-vfs \
142
	systemd-kmsg-syslogd \
143
	systemd-vconsole-setup \
144
145
	systemd-reply-password \
	systemd-readahead-collect \
146
	systemd-readahead-replay \
147
148
	systemd-user-sessions \
	systemd-fsck \
149
	systemd-quotacheck \
150
	systemd-timestamp \
151
	systemd-ac-power \
152
	systemd-detect-virt \
153
	systemd-sysctl \
154
        systemd-hostnamed
155

156
157
158
159
160
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

161
systemgenerator_PROGRAMS = \
162
	systemd-getty-generator
163

164
165
166
167
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

168
systemgenerator_PROGRAMS += \
169
	systemd-cryptsetup-generator
170
endif
171

172
173
noinst_PROGRAMS = \
	test-engine \
174
	test-job-type \
175
	test-ns \
176
	test-loopback \
177
	test-hostname \
178
	test-daemon \
179
	test-cgroup \
180
181
	test-env-replace \
	test-strv
182
183
184
185
186

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
187

188
189
190
dist_pkgsysconf_DATA = \
	src/system.conf

191
dist_dbuspolicy_DATA = \
192
193
	src/org.freedesktop.systemd1.conf \
        src/org.freedesktop.hostname1.conf
194

195
dist_dbussystemservice_DATA = \
196
197
	src/org.freedesktop.systemd1.service \
        src/org.freedesktop.hostname1.service
198

199
dist_udevrules_DATA = \
200
	src/99-systemd.rules
201

202
dbusinterface_DATA = \
203
204
205
206
207
	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 \
208
	org.freedesktop.systemd1.Timer.xml \
209
210
211
212
213
	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 \
214
215
	org.freedesktop.systemd1.Swap.xml \
	org.freedesktop.systemd1.Path.xml
216

217
dist_bashcompletion_DATA = \
218
	src/systemctl-bash-completion.sh
219

220
221
222
223
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

224
225
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
226
	tmpfiles.d/legacy.conf
227
228
endif

229
dist_systemunit_DATA = \
230
231
	units/graphical.target \
	units/multi-user.target \
232
	units/emergency.service \
233
	units/emergency.target \
234
	units/sysinit.target \
235
	units/basic.target \
236
237
	units/getty.target \
	units/halt.target \
238
	units/kexec.target \
239
	units/local-fs.target \
240
	units/cryptsetup.target \
241
242
	units/network.target \
	units/nss-lookup.target \
243
	units/mail-transfer-agent.target \
244
	units/http-daemon.target \
245
246
247
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
248
	units/rpcbind.target \
249
	units/time-sync.target \
250
	units/shutdown.target \
251
	units/final.target \
252
	units/umount.target \
253
254
255
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
256
	units/systemd-initctl.socket \
257
	units/systemd-logger.socket \
258
	units/systemd-shutdownd.socket \
259
	units/syslog.socket \
260
261
262
263
264
265
	units/dev-hugepages.automount \
	units/dev-hugepages.mount \
	units/dev-mqueue.automount \
	units/dev-mqueue.mount \
	units/sys-kernel-debug.automount \
	units/sys-kernel-debug.mount \
266
267
	units/sys-kernel-security.automount \
	units/sys-kernel-security.mount \
268
	units/var-run.mount \
269
	units/media.mount \
270
	units/hwclock-load.service \
271
	units/hwclock-save.service \
272
	units/remount-rootfs.service \
273
	units/printer.target \
274
	units/sound.target \
275
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
276
	units/smartcard.target \
277
	units/systemd-readahead-done.timer \
278
	units/systemd-tmpfiles-clean.timer \
279
	units/quotaon.service \
280
	units/systemd-ask-password-wall.path \
281
282
	units/systemd-ask-password-console.path \
	units/syslog.target
283

284
285
286
287
288
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

289
290
291
292
293
294
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

295
nodist_systemunit_DATA = \
296
	units/getty@.service \
297
	units/serial-getty@.service \
298
	units/console-shell.service \
299
	units/remote-fs.target \
300
	units/systemd-initctl.service \
301
	units/systemd-logger.service \
302
	units/systemd-shutdownd.service \
303
	units/systemd-hostnamed.service \
304
	units/systemd-kmsg-syslogd.service \
305
	units/systemd-modules-load.service \
306
	units/systemd-vconsole-setup.service \
307
	units/systemd-remount-api-vfs.service \
308
309
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
310
311
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
312
313
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
314
	units/systemd-readahead-done.service \
315
316
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
317
	units/systemd-user-sessions.service \
318
	units/systemd-ask-password-wall.service \
319
	units/systemd-ask-password-console.service \
320
	units/systemd-sysctl.service \
321
322
323
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
324
325
	units/kexec.service \
	units/fsck@.service \
326
	units/fsck-root.service \
327
328
	units/quotacheck.service \
	units/rescue.service
329

330
331
332
333
334
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

335
336
337
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
338

339
340
341
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
342

343
EXTRA_DIST = \
344
	units/getty@.service.m4 \
345
	units/serial-getty@.service.m4 \
346
	units/console-shell.service.m4 \
347
	units/remote-fs.target.m4 \
348
	units/rescue.service.m4 \
349
350
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
351
	units/systemd-shutdownd.service.in \
352
	units/systemd-hostnamed.service.in \
353
	units/systemd-kmsg-syslogd.service.in \
354
	units/systemd-modules-load.service.in \
355
	units/systemd-vconsole-setup.service.in \
356
	units/systemd-remount-api-vfs.service.in \
357
358
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
359
360
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
361
362
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
363
	units/systemd-readahead-done.service.in \
364
365
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
366
	units/systemd-user-sessions.service.in \
367
	units/systemd-ask-password-wall.service.in \
368
	units/systemd-ask-password-console.service.in \
369
	units/systemd-sysctl.service.in \
370
371
372
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
373
	units/kexec.service.in \
374
	units/user/exit.service.in \
375
376
	units/fsck@.service.in \
	units/fsck-root.service.in \
377
	units/quotacheck.service.in \
378
	systemd.pc.in \
379
	introspect.awk \
380
	src/org.freedesktop.systemd1.policy.in
381

382
383
384
385
386
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

387
388
389
390
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
391
392
393
	units/fedora/halt-local.service
endif

394
395
396
397
398
399
400
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

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

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

425
426
dist_doc_DATA = \
	README \
427
428
	LICENSE \
	DISTRO_PORTING \
429
	src/sd-daemon.h \
430
431
432
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
433

434
435
436
pkgconfigdata_DATA = \
	systemd.pc

437
nodist_polkitpolicy_DATA = \
438
439
	src/org.freedesktop.systemd1.policy

440
441
442
dist_polkitpolicy_DATA = \
        src/org.freedesktop.hostname1.policy

443
444
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
445
446
	libsystemd-core.la \
	libsystemd-daemon.la
447
448

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

460
461
462
463
464
465
466
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

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

518
519
520
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
521
522
523
524
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
525
526
527
528
529
530

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
531
	$(PAM_LIBS) \
532
	$(AUDIT_LIBS)
533

534
535
536
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

537
538
539
540
# 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.

541
EXTRA_DIST += \
542
543
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
544
	${libsystemd_daemon_la_SOURCES:.c=.h} \
545
	src/macro.h \
546
	src/def.h \
547
548
549
550
551
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
552
	src/linux/fanotify.h \
553
	src/initreq.h \
554
	src/sd-readahead.h \
555
	src/special.h \
556
	src/dbus-common.h \
557
	src/bus-errors.h \
558
	src/cgroup-show.h \
559
	src/build.h \
560
	src/shutdownd.h \
561
	src/umount.h \
562
563
	src/readahead-common.h \
	src/ask-password-api.h
564
565

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
566
	man/systemd.1 \
567
568
	man/systemctl.1 \
	man/systemadm.1 \
569
	man/systemd-cgls.1 \
570
	man/systemd-nspawn.1 \
571
	man/systemd-tmpfiles.8 \
572
	man/systemd-notify.1 \
573
	man/sd_notify.3 \
574
	man/sd_readahead.3 \
575
576
577
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
578
579
	man/systemd.unit.5 \
	man/systemd.service.5 \
580
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
581
	man/systemd.mount.5 \
582
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
583
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
584
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
585
	man/systemd.path.5 \
586
	man/systemd.target.5 \
587
	man/systemd.device.5 \
588
	man/systemd.snapshot.5 \
589
	man/systemd.exec.5 \
590
	man/daemon.7 \
591
	man/sd-daemon.7 \
592
	man/sd-readahead.7 \
593
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
594
595
596
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
597
	man/pam_systemd.8 \
598
	man/systemd.conf.5 \
599
	man/tmpfiles.d.5 \
600
	man/hostname.5 \
601
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
602
	man/vconsole.conf.5 \
603
	man/locale.conf.5 \
604
	man/os-release.5 \
605
        man/machine-info.5 \
606
	man/modules-load.d.5 \
607
608
	man/sysctl.d.5 \
        man/systemd-ask-password.1
609

610
611
612
613
614
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
	man/sd_is_socket.3 \
	man/sd_is_socket_unix.3 \
	man/sd_is_socket_inet.3 \
	man/sd_notifyf.3 \
	man/init.1

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/sd_is_socket.3: man/sd_is_fifo.3
man/sd_is_socket_unix.3: man/sd_is_fifo.3
man/sd_is_socket_inet.3: man/sd_is_fifo.3
man/sd_notifyf.3: man/sd_notify.3
man/init.1: man/systemd.1

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
635
636

nodist_man_MANS = \
637
	man/systemd.special.7
638

639
640
641
642
643
644
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)}}}}}

645
dist_noinst_DATA = \
646
	${XML_FILES:.xml=.html}
647

648
nodist_noinst_DATA = \
649
	${XML_IN_FILES:.xml.in=.html}
650
651

EXTRA_DIST += \
652
653
654
655
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
656

657
systemd_SOURCES = \
658
	src/main.c
659

660
661
systemd_CFLAGS = \
	$(AM_CFLAGS) \
662
	$(DBUS_CFLAGS) \
663
	$(UDEV_CFLAGS)
664
665

systemd_LDADD = \
666
	libsystemd-core.la
667
668

test_engine_SOURCES = \
669
	src/test-engine.c
670

671
test_engine_CFLAGS = $(systemd_CFLAGS)
672
673
674
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
675
	src/test-job-type.c
676

677
test_job_type_CFLAGS = $(systemd_CFLAGS)
678
679
test_job_type_LDADD = $(systemd_LDADD)

680
test_ns_SOURCES = \
681
	src/test-ns.c
682

683
test_ns_CFLAGS = $(systemd_CFLAGS)
684
685
test_ns_LDADD = $(systemd_LDADD)

686
test_loopback_SOURCES = \
687
688
	src/test-loopback.c \
	src/loopback-setup.c
689

690
691
692
test_loopback_LDADD = \
	libsystemd-basic.la

693
694
695
696
697
698
699
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

700
test_daemon_SOURCES = \
701
	src/test-daemon.c
702

703
test_daemon_LDADD = \
704
705
	libsystemd-basic.la \
	libsystemd-daemon.la
706

707
708
709
710
711
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
712
	$(AM_CFLAGS)
713
714

test_cgroup_LDADD = \
715
	libsystemd-basic.la
716

717
718
719
720
721
722
723
724
725
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

726
test_strv_SOURCES = \
727
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
728
	src/specifier.c
729
730
731
732
733
734
735

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

736
systemd_logger_SOURCES = \
737
	src/logger.c \
738
739
740
	src/tcpwrap.c

systemd_logger_LDADD = \
741
	libsystemd-basic.la \
742
	libsystemd-daemon.la \
743
	$(LIBWRAP_LIBS)
744

745
systemd_initctl_SOURCES = \
746
	src/initctl.c \
747
	src/dbus-common.c
748

749
750
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
751
752
753
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
754
	libsystemd-basic.la \
755
	libsystemd-daemon.la \
756
757
	$(DBUS_LIBS)

758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
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)

773
774
775
776
777
778
779
780
781
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

782
systemd_shutdownd_SOURCES = \
783
	src/utmp-wtmp.c \
784
785
786
787
788
789
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
790
791
	libsystemd-basic.la \
	libsystemd-daemon.la
792

793
794
795
796
797
798
799
800
801
802
803
804
805
systemd_hostnamed_SOURCES = \
	src/hostnamed.c \
        src/dbus-common.c

systemd_hostnamed_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

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

806
807
808
809
810
811
812
813
814
815
816
817
818
systemd_shutdown_SOURCES = \
	src/mount-setup.c \
	src/umount.c \
	src/shutdown.c

systemd_shutdown_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS)

systemd_shutdown_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS)

819
820
821
822
823
824
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

825
systemd_modules_load_LDADD = \
826
827
	libsystemd-basic.la

828
829
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
830

831
systemd_tmpfiles_CFLAGS = \
832
833
	$(AM_CFLAGS)

834
835
836
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la

837
838
839
840
841
842
843
844
845
846
systemd_machine_id_setup_SOURCES = \
	src/machine-id-setup.c \
	src/machine-id-main.c

systemd_machine_id_setup_CFLAGS = \
	$(AM_CFLAGS)

systemd_machine_id_setup_LDADD = \
	libsystemd-basic.la

847
848
849
850
851
852
853
854
855
systemd_sysctl_SOURCES = \
	src/sysctl.c

systemd_sysctl_CFLAGS = \
	$(AM_CFLAGS)

systemd_sysctl_LDADD = \
	libsystemd-basic.la

856
857
858
859
860
861
862
863
864
systemd_binfmt_SOURCES = \
	src/binfmt.c

systemd_binfmt_CFLAGS = \
	$(AM_CFLAGS)

systemd_binfmt_LDADD = \
	libsystemd-basic.la

865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
systemd_fsck_SOURCES = \
	src/fsck.c \
	src/dbus-common.c

systemd_fsck_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS) \
	$(DBUS_CFLAGS)

systemd_fsck_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS) \
	$(DBUS_LIBS)

systemd_quotacheck_SOURCES = \
	src/quotacheck.c

systemd_quotacheck_CFLAGS = \
	$(AM_CFLAGS)

systemd_quotacheck_LDADD = \
886
887
	libsystemd-basic.la

888
889
890
891
892
893
894
895
896
systemd_timestamp_SOURCES = \
	src/timestamp.c

systemd_timestamp_CFLAGS = \
	$(AM_CFLAGS)

systemd_timestamp_LDADD = \
	libsystemd-basic.la

897
898
899
900
901
902
903
904
905
906
907
systemd_ac_power_SOURCES = \
	src/ac-power.c

systemd_ac_power_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS)

systemd_ac_power_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS)

908
909
910
911
912
913
914
915
916
systemd_detect_virt_SOURCES = \
	src/detect-virt.c

systemd_detect_virt_CFLAGS = \
	$(AM_CFLAGS)

systemd_detect_virt_LDADD = \
	libsystemd-basic.la

917
systemd_cryptsetup_SOURCES = \
918
919
	src/cryptsetup.c \
	src/ask-password-api.c
920
921

systemd_cryptsetup_CFLAGS = \
922
	$(LIBCRYPTSETUP_CFLAGS) \
923
	$(UDEV_CFLAGS) \
924
925
926
	$(AM_CFLAGS)

systemd_cryptsetup_LDADD = \
927
	$(LIBCRYPTSETUP_LIBS) \
928
	$(UDEV_LIBS) \
929
930
931
932
933
934
935
936
937
938
939
940
	libsystemd-basic.la

systemd_cryptsetup_generator_SOURCES = \
	src/cryptsetup-generator.c \
	src/unit-name.c

systemd_cryptsetup_generator_CFLAGS = \
	$(AM_CFLAGS)

systemd_cryptsetup_generator_LDADD = \
	libsystemd-basic.la

941
942
943
944
945
946
947
948
949
950
systemd_getty_generator_SOURCES = \
	src/getty-generator.c \
	src/unit-name.c

systemd_getty_generator_CFLAGS = \
	$(AM_CFLAGS)

systemd_getty_generator_LDADD = \
	libsystemd-basic.la

951
952
953
954
955
956
957
systemd_user_sessions_SOURCES = \
	src/user-sessions.c \
	src/cgroup-util.c

systemd_user_sessions_CFLAGS = \
	$(AM_CFLAGS)

958
systemd_user_sessions_LDADD = \
959
960
	libsystemd-basic.la

961
962
963
964
965
966
967
968
969
systemd_vconsole_setup_SOURCES = \
	src/vconsole-setup.c

systemd_vconsole_setup_CFLAGS = \
	$(AM_CFLAGS)

systemd_vconsole_setup_LDADD = \
	libsystemd-basic.la

970
971
systemd_remount_api_vfs_SOURCES = \
	src/remount-api-vfs.c \
972
973
	src/mount-setup.c \
	src/exit-status.c
974
975
976
977
978
979
980

systemd_remount_api_vfs_CFLAGS = \
	$(AM_CFLAGS)

systemd_remount_api_vfs_LDADD = \
	libsystemd-basic.la

981
systemd_cgroups_agent_SOURCES = \
982
983
	src/cgroups-agent.c \
	src/dbus-common.c
984

985
986
systemd_cgroups_agent_CFLAGS = \
	$(AM_CFLAGS) \
987
988
989
	$(DBUS_CFLAGS)

systemd_cgroups_agent_LDADD = \
990
	libsystemd-basic.la \
991
992
	$(DBUS_LIBS)

993
994
995
996
997
998
999
1000
systemd_kmsg_syslogd_SOURCES = \
	src/kmsg-syslogd.c \
	src/fdset.c

systemd_kmsg_syslogd_CFLAGS = \
	$(AM_CFLAGS)

systemd_kmsg_syslogd_LDADD = \
1001
1002
	libsystemd-basic.la \
	libsystemd-daemon.la
1003

1004
1005
systemctl_SOURCES = \
	src/systemctl.c \
1006
	src/utmp-wtmp.c \
1007
	src/dbus-common.c \
1008
	src/path-lookup.c \
1009
	src/cgroup-show.c \
1010
	src/cgroup-util.c \
1011
1012
	src/exit-status.c \
	src/unit-name.c
1013
1014
1015

systemctl_CFLAGS = \
	$(AM_CFLAGS) \
1016
	$(DBUS_CFLAGS)
1017

1018
1019
systemctl_LDADD = \
	libsystemd-basic.la \
1020
	libsystemd-daemon.la \
1021
	$(DBUS_LIBS)
1022