Makefile.am 48.4 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
21
SUBDIRS = po

22
23
24
25
LIBSYSTEMD_LOGIN_CURRENT=0
LIBSYSTEMD_LOGIN_REVISION=0
LIBSYSTEMD_LOGIN_AGE=0

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

30
# Dirs of external packages
31
32
33
34
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
35
udevrulesdir=@udevrulesdir@
36
37
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
38
pkgconfiglibdir=$(libdir)/pkgconfig
39
polkitpolicydir=$(datadir)/polkit-1/actions
40
bashcompletiondir=$(sysconfdir)/bash_completion.d
41

42
# Our own, non-special dirs
43
pkgsysconfdir=$(sysconfdir)/systemd
44
userunitdir=$(prefix)/lib/systemd/user
45
tmpfilesdir=$(prefix)/lib/tmpfiles.d
46
usergeneratordir=$(pkglibexecdir)/user-generators
47
pkgincludedir=$(includedir)/systemd
48
49
50
51
52

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
53
54
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
55
systemunitdir=$(rootdir)/lib/systemd/system
56

57
AM_CPPFLAGS = \
58
	-include $(top_builddir)/config.h \
59
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
60
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
61
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
62
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
63
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
64
65
66
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
67
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
68
	-DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
69
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
70
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
71
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
72
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
73
	-DRUNTIME_DIR=\"/run\" \
74
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
75
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
76
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
77
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
78
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
79
	-I $(top_srcdir)/src
80

81
82
83
84
85
86
if TARGET_GENTOO
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_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
93
94
95
96
97
98
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
99
100
101
102
103
104
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
105
106
107
108
109
110
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
111
112
113
114
115
116
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
117
118
119
120
121
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
endif
122
endif
123
endif
124
endif
Chris E Ferron's avatar
Chris E Ferron committed
125
endif
Koen Kooi's avatar
Koen Kooi committed
126
endif
127

128
rootbin_PROGRAMS = \
129
	systemd \
130
	systemctl \
131
        systemd-loginctl \
132
	systemd-notify \
133
	systemd-ask-password \
134
	systemd-tty-ask-password-agent \
135
	systemd-tmpfiles \
136
	systemd-machine-id-setup
137

138
bin_PROGRAMS = \
139
	systemd-cgls \
140
	systemd-stdio-bridge \
141
	systemd-nspawn
142

143
dist_bin_SCRIPTS = \
144
	src/systemd-analyze
145

146
147
if HAVE_GTK
bin_PROGRAMS += \
148
	systemadm \
149
	systemd-gnome-ask-password-agent
150
endif
151

152
rootlibexec_PROGRAMS = \
153
	systemd-logger \
154
	systemd-cgroups-agent \
155
	systemd-initctl \
156
	systemd-update-utmp \
157
	systemd-random-seed \
158
	systemd-shutdownd \
159
	systemd-shutdown \
160
	systemd-modules-load \
161
	systemd-remount-api-vfs \
162
	systemd-kmsg-syslogd \
163
	systemd-vconsole-setup \
164
165
	systemd-reply-password \
	systemd-readahead-collect \
166
	systemd-readahead-replay \
167
168
	systemd-user-sessions \
	systemd-fsck \
169
	systemd-quotacheck \
170
	systemd-timestamp \
171
	systemd-ac-power \
172
	systemd-detect-virt \
173
	systemd-sysctl \
174
        systemd-hostnamed \
175
176
        systemd-localed \
        systemd-timedated \
177
178
        systemd-logind \
        systemd-uaccess
179

180
181
182
183
184
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

185
systemgenerator_PROGRAMS = \
186
	systemd-getty-generator
187

188
189
190
191
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

192
systemgenerator_PROGRAMS += \
193
	systemd-cryptsetup-generator
194
endif
195

196
lib_LTLIBRARIES = \
197
	libsystemd-daemon.la \
198
	libsystemd-login.la
199
200

pkginclude_HEADERS = \
201
202
	src/sd-daemon.h \
	src/sd-login.h
203

204
205
noinst_PROGRAMS = \
	test-engine \
206
	test-job-type \
207
	test-ns \
208
	test-loopback \
209
	test-hostname \
210
	test-daemon \
211
	test-cgroup \
212
	test-env-replace \
213
	test-strv \
214
215
        test-login \
        test-install
216
217
218
219
220

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
221

222
dist_pkgsysconf_DATA = \
223
224
225
	src/system.conf \
        src/user.conf \
        src/systemd-logind.conf
226

227
dist_dbuspolicy_DATA = \
228
	src/org.freedesktop.systemd1.conf \
229
230
        src/org.freedesktop.hostname1.conf \
        src/org.freedesktop.locale1.conf \
231
232
        src/org.freedesktop.timedate1.conf \
        src/org.freedesktop.login1.conf
233

234
dist_dbussystemservice_DATA = \
235
	src/org.freedesktop.systemd1.service \
236
237
        src/org.freedesktop.hostname1.service \
        src/org.freedesktop.locale1.service \
238
239
        src/org.freedesktop.timedate1.service \
        src/org.freedesktop.login1.service
240

241
dist_udevrules_DATA = \
242
        src/70-uaccess.rules \
243
        src/71-seat.rules
244

245
nodist_udevrules_DATA = \
246
247
        src/73-seat-late.rules \
        src/99-systemd.rules
248

249
dbusinterface_DATA = \
250
251
252
253
254
	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 \
255
	org.freedesktop.systemd1.Timer.xml \
256
257
258
259
260
	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 \
261
	org.freedesktop.systemd1.Swap.xml \
262
263
264
265
	org.freedesktop.systemd1.Path.xml \
        org.freedesktop.hostname1.xml \
        org.freedesktop.locale1.xml \
        org.freedesktop.timedate1.xml
266

267
dist_bashcompletion_DATA = \
268
	src/systemctl-bash-completion.sh
269

270
271
272
273
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

274
275
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
276
	tmpfiles.d/legacy.conf
277
278
endif

279
dist_systemunit_DATA = \
280
281
	units/graphical.target \
	units/multi-user.target \
282
	units/emergency.service \
283
	units/emergency.target \
284
	units/sysinit.target \
285
	units/basic.target \
286
287
	units/getty.target \
	units/halt.target \
288
	units/kexec.target \
289
	units/local-fs.target \
Lennart Poettering's avatar
Lennart Poettering committed
290
	units/remote-fs.target \
291
	units/cryptsetup.target \
292
293
	units/network.target \
	units/nss-lookup.target \
294
	units/mail-transfer-agent.target \
295
	units/http-daemon.target \
296
297
298
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
299
	units/rpcbind.target \
300
	units/time-sync.target \
301
	units/shutdown.target \
302
	units/final.target \
303
	units/umount.target \
304
305
306
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
307
	units/systemd-initctl.socket \
308
	units/systemd-logger.socket \
309
	units/systemd-shutdownd.socket \
310
	units/syslog.socket \
311
312
313
314
315
316
	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 \
317
318
	units/sys-kernel-security.automount \
	units/sys-kernel-security.mount \
319
	units/var-run.mount \
320
	units/media.mount \
321
	units/remount-rootfs.service \
322
	units/printer.target \
323
	units/sound.target \
324
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
325
	units/smartcard.target \
326
	units/systemd-readahead-done.timer \
327
	units/systemd-tmpfiles-clean.timer \
328
	units/quotaon.service \
329
	units/systemd-ask-password-wall.path \
330
331
	units/systemd-ask-password-console.path \
	units/syslog.target
332

333
334
335
336
337
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

338
339
340
341
342
343
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

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

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

387
388
389
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
390

391
392
nodist_userunit_DATA = \
	units/user/exit.service
393

394
EXTRA_DIST = \
395
	units/getty@.service.m4 \
396
	units/serial-getty@.service.m4 \
397
	units/console-shell.service.m4 \
398
	units/rescue.service.m4 \
399
400
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
401
	units/systemd-shutdownd.service.in \
402
	units/systemd-hostnamed.service.in \
403
404
	units/systemd-localed.service.in \
	units/systemd-timedated.service.in \
405
	units/systemd-logind.service.in \
406
	units/systemd-kmsg-syslogd.service.in \
407
	units/systemd-modules-load.service.in \
408
	units/systemd-vconsole-setup.service.in \
409
	units/systemd-remount-api-vfs.service.in \
410
411
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
412
413
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
414
415
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
416
	units/systemd-readahead-done.service.in \
417
418
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
419
	units/systemd-user-sessions.service.in \
420
	units/systemd-ask-password-wall.service.in \
421
	units/systemd-ask-password-console.service.in \
422
	units/systemd-sysctl.service.in \
423
424
425
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
426
	units/kexec.service.in \
427
	units/user/exit.service.in \
428
429
	units/fsck@.service.in \
	units/fsck-root.service.in \
430
	units/quotacheck.service.in \
Kay Sievers's avatar
Kay Sievers committed
431
	units/user@.service.in \
432
	systemd.pc.in \
Kay Sievers's avatar
Kay Sievers committed
433
434
435
436
	libsystemd-daemon.pc.in \
	libsystemd-login.pc.in \
	src/libsystemd-daemon.sym \
	src/libsystemd-login.sym \
437
	introspect.awk \
438
439
	src/73-seat-late.rules.in \
        src/99-systemd.rules.in
440

441
442
443
444
445
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

446
447
448
449
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
450
451
452
	units/fedora/halt-local.service
endif

453
454
455
456
457
458
459
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

460
461
462
463
464
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

465
466
467
468
469
470
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
endif

471
472
473
474
475
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
476
	units/plymouth-quit-wait.service \
477
478
479
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
480
481
482
483
484
485
486
487
	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
488
489
endif

490
491
dist_doc_DATA = \
	README \
492
493
	LICENSE \
	DISTRO_PORTING \
494
	src/sd-daemon.h \
495
496
497
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
498

499
pkgconfigdata_DATA = \
500
501
502
	systemd.pc

pkgconfiglib_DATA = \
503
        libsystemd-daemon.pc \
504
        libsystemd-login.pc
505

506
507
# Passed through intltool only
polkitpolicy_in_files = \
508
509
510
511
512
        src/org.freedesktop.hostname1.policy.in \
        src/org.freedesktop.locale1.policy.in \
        src/org.freedesktop.timedate1.policy.in \
        src/org.freedesktop.login1.policy.in

513
514
515
516
517
518
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
        $(polkitpolicy_in_files:.policy.in=.policy) \
519
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
520
521
522
523
524

EXTRA_DIST += \
        $(polkitpolicy_in_files) \
        $(polkitpolicy_in_in_files)

525
@INTLTOOL_POLICY_RULE@
526

527
528
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
529
	libsystemd-core.la
530
531

libsystemd_basic_la_SOURCES = \
532
	src/util.c \
533
	src/label.c \
534
535
536
537
538
539
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
540
541
	src/ratelimit.c \
	src/exit-status.c
542

543
544
545
546
547
548
549
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

550
libsystemd_core_la_SOURCES = \
551
	src/unit.c \
552
553
	src/job.c \
	src/manager.c \
554
	src/path-lookup.c \
555
556
557
558
559
560
561
562
563
564
	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 \
565
	src/path.c \
566
567
	src/load-dropin.c \
	src/execute.c \
568
	src/utmp-wtmp.c \
569
570
571
572
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
573
574
	src/dbus-service.c \
	src/dbus-socket.c \
575
	src/dbus-timer.c \
576
577
578
579
580
581
582
	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 \
583
	src/dbus-path.c \
584
585
586
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
587
	src/selinux-setup.c \
588
	src/loopback-setup.c \
589
	src/kmod-setup.c \
590
	src/locale-setup.c \
591
	src/machine-id-setup.c \
592
593
594
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
595
	src/namespace.c \
596
	src/tcpwrap.c \
597
	src/cgroup-util.c \
598
	src/condition.c \
599
        src/dbus-common.c \
600
601
        src/sd-daemon.c \
        src/install.c
602

603
604
605
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
606
607
608
609
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
610
611
612
613
614
615

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
616
	$(PAM_LIBS) \
617
	$(AUDIT_LIBS)
618

619
620
621
622
# 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.

623
EXTRA_DIST += \
624
625
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
626
	${libsystemd_daemon_la_SOURCES:.c=.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/sd-readahead.h \
637
	src/special.h \
638
	src/dbus-common.h \
639
	src/bus-errors.h \
640
	src/cgroup-show.h \
641
	src/build.h \
642
	src/shutdownd.h \
643
	src/umount.h \
644
	src/readahead-common.h \
645
646
647
648
649
650
651
652
653
654
655
	src/ask-password-api.h \
        src/pager.h \
        src/sysfs-show.h \
        src/polkit.h \
        src/logind.h \
        src/logind-device.h \
        src/logind-seat.h \
        src/logind-session.h \
        src/logind-user.h \
        src/logind-acl.h \
        src/dbus-loop.h
656
657

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
658
	man/systemd.1 \
659
660
	man/systemctl.1 \
	man/systemadm.1 \
661
	man/systemd-cgls.1 \
662
	man/systemd-nspawn.1 \
663
	man/systemd-tmpfiles.8 \
664
	man/systemd-notify.1 \
665
	man/sd_notify.3 \
666
	man/sd_readahead.3 \
667
668
669
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
670
671
	man/systemd.unit.5 \
	man/systemd.service.5 \
672
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
673
	man/systemd.mount.5 \
674
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
675
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
676
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
677
	man/systemd.path.5 \
678
	man/systemd.target.5 \
679
	man/systemd.device.5 \
680
	man/systemd.snapshot.5 \
681
	man/systemd.exec.5 \
682
	man/daemon.7 \
683
	man/sd-daemon.7 \
684
	man/sd-readahead.7 \
685
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
686
687
688
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
689
	man/pam_systemd.8 \
690
	man/systemd.conf.5 \
691
	man/systemd-logind.conf.5 \
692
	man/tmpfiles.d.5 \
693
	man/hostname.5 \
694
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
695
	man/vconsole.conf.5 \
696
	man/locale.conf.5 \
697
	man/os-release.5 \
698
        man/machine-info.5 \
699
	man/modules-load.d.5 \
700
	man/sysctl.d.5 \
701
702
        man/systemd-ask-password.1 \
        man/systemd-loginctl.1
703

704
705
706
707
708
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
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)
729
730

nodist_man_MANS = \
731
	man/systemd.special.7
732

733
734
735
736
737
738
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)}}}}}

739
dist_noinst_DATA = \
740
	${XML_FILES:.xml=.html}
741

742
nodist_noinst_DATA = \
743
	${XML_IN_FILES:.xml.in=.html}
744
745

EXTRA_DIST += \
746
747
748
749
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
750

751
systemd_SOURCES = \
752
	src/main.c
753

754
755
systemd_CFLAGS = \
	$(AM_CFLAGS) \
756
	$(DBUS_CFLAGS) \
757
	$(UDEV_CFLAGS)
758
759

systemd_LDADD = \
760
	libsystemd-core.la
761
762

test_engine_SOURCES = \
763
	src/test-engine.c
764

765
test_engine_CFLAGS = $(systemd_CFLAGS)
766
767
768
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
769
	src/test-job-type.c
770

771
test_job_type_CFLAGS = $(systemd_CFLAGS)
772
773
test_job_type_LDADD = $(systemd_LDADD)

774
test_ns_SOURCES = \
775
	src/test-ns.c
776

777
test_ns_CFLAGS = $(systemd_CFLAGS)
778
779
test_ns_LDADD = $(systemd_LDADD)

780
test_loopback_SOURCES = \
781
782
	src/test-loopback.c \
	src/loopback-setup.c
783

784
785
786
test_loopback_LDADD = \
	libsystemd-basic.la

787
788
789
790
791
792
793
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

794
test_daemon_SOURCES = \
795
	src/test-daemon.c
796

797
test_daemon_LDADD = \
798
799
	libsystemd-basic.la \
	libsystemd-daemon.la
800

801
802
803
804
805
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
806
	$(AM_CFLAGS)
807
808

test_cgroup_LDADD = \
809
	libsystemd-basic.la
810

811
812
813
814
815
816
817
818
819
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

820
test_strv_SOURCES = \
821
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
822
	src/specifier.c
823
824
825
826
827
828
829

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

830
831
832
833
834
835
836
837
838
839
test_login_SOURCES = \
	src/test-login.c

test_login_CFLAGS = \
	$(AM_CFLAGS)

test_login_LDADD = \
	libsystemd-basic.la \
        libsystemd-login.la

840
841
842
843
844
845
846
847
848
849
850
851
852
test_install_SOURCES = \
	src/test-install.c \
        src/install.c \
        src/path-lookup.c \
        src/unit-name.c

test_install_CFLAGS = \
	$(AM_CFLAGS) \
        $(DBUS_CFLAGS)

test_install_LDADD = \
	libsystemd-basic.la

853
systemd_logger_SOURCES = \
854
	src/logger.c \
855
856
857
	src/tcpwrap.c

systemd_logger_LDADD = \
858
	libsystemd-basic.la \
859
	libsystemd-daemon.la \
860
	$(LIBWRAP_LIBS)
861

862
systemd_initctl_SOURCES = \
863
	src/initctl.c \
864
	src/dbus-common.c
865

866
867
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
868
869
870
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
871
	libsystemd-basic.la \
872
	libsystemd-daemon.la \
873
874
	$(DBUS_LIBS)

875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
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)

890
891
892
893
894
895
896
897
898
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

899
systemd_shutdownd_SOURCES = \
900
	src/utmp-wtmp.c \
901
902
903
904
905
906
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
907
908
	libsystemd-basic.la \
	libsystemd-daemon.la
909

910
911
systemd_hostnamed_SOURCES = \
	src/hostnamed.c \
912
913
        src/dbus-common.c \
        src/polkit.c
914
915
916
917
918
919
920
921
922
923

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

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

924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
systemd_localed_SOURCES = \
	src/localed.c \
        src/dbus-common.c \
        src/polkit.c

systemd_localed_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

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

systemd_timedated_SOURCES = \
	src/timedated.c \
        src/dbus-common.c \
        src/polkit.c

systemd_timedated_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

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

952
953
systemd_logind_SOURCES = \
	src/logind.c \
954
	src/logind-dbus.c \
955
956
        src/logind-device.c \
        src/logind-seat.c \
957
        src/logind-seat-dbus.c \
958
        src/logind-session.c \
959
        src/logind-session-dbus.c \
960
        src/logind-user.c \
961
        src/logind-user-dbus.c \
962
963
        src/dbus-common.c \
        src/dbus-loop.c \
964
965
        src/cgroup-util.c \
        src/polkit.c
966
967
968
969

systemd_logind_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
970
971
        $(UDEV_CFLAGS) \
        $(ACL_CFLAGS)
972
973
974
975
976

systemd_logind_LDADD = \
	libsystemd-basic.la \
	libsystemd-daemon.la \
	$(DBUS_LIBS) \
977
978
979
980
        $(UDEV_LIBS) \
        $(ACL_LIBS)

systemd_uaccess_SOURCES = \