Makefile.am 46.5 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
# Dirs of external packages
27
28
29
30
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
31
udevrulesdir=@udevrulesdir@
32
33
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
34
polkitpolicydir=$(datadir)/polkit-1/actions
35
bashcompletiondir=$(sysconfdir)/bash_completion.d
36

37
# Our own, non-special dirs
38
pkgsysconfdir=$(sysconfdir)/systemd
39
userunitdir=$(prefix)/lib/systemd/user
40
tmpfilesdir=$(prefix)/lib/tmpfiles.d
41
usergeneratordir=$(pkglibexecdir)/user-generators
42
pkgincludedir=$(includedir)/systemd
43
44
45
46
47

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
48
49
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
50
systemunitdir=$(rootdir)/lib/systemd/system
51

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

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

123
rootbin_PROGRAMS = \
124
	systemd \
125
	systemctl \
126
        systemd-loginctl \
127
	systemd-notify \
128
	systemd-ask-password \
129
	systemd-tty-ask-password-agent \
130
	systemd-tmpfiles \
131
	systemd-machine-id-setup
132

133
bin_PROGRAMS = \
134
	systemd-cgls \
135
	systemd-stdio-bridge \
136
	systemd-nspawn
137

138
dist_bin_SCRIPTS = \
139
	src/systemd-analyze
140

141
142
if HAVE_GTK
bin_PROGRAMS += \
143
	systemadm \
144
	systemd-gnome-ask-password-agent
145
endif
146

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

175
176
177
178
179
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

180
systemgenerator_PROGRAMS = \
181
	systemd-getty-generator
182

183
184
185
186
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

187
systemgenerator_PROGRAMS += \
188
	systemd-cryptsetup-generator
189
endif
190

191
192
193
194
195
196
lib_LTLIBRARIES = \
        libsystemd-login.la

pkginclude_HEADERS = \
        src/sd-login.h

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

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
213

214
dist_pkgsysconf_DATA = \
215
216
217
	src/system.conf \
        src/user.conf \
        src/systemd-logind.conf
218

219
dist_dbuspolicy_DATA = \
220
	src/org.freedesktop.systemd1.conf \
221
222
        src/org.freedesktop.hostname1.conf \
        src/org.freedesktop.locale1.conf \
223
224
        src/org.freedesktop.timedate1.conf \
        src/org.freedesktop.login1.conf
225

226
dist_dbussystemservice_DATA = \
227
	src/org.freedesktop.systemd1.service \
228
229
        src/org.freedesktop.hostname1.service \
        src/org.freedesktop.locale1.service \
230
231
        src/org.freedesktop.timedate1.service \
        src/org.freedesktop.login1.service
232

233
dist_udevrules_DATA = \
234
235
        src/70-uaccess.rules \
        src/71-seat.rules \
236
	src/99-systemd.rules
237

238
239
240
nodist_udevrules_DATA = \
        src/73-seat-late.rules

241
dbusinterface_DATA = \
242
243
244
245
246
	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 \
247
	org.freedesktop.systemd1.Timer.xml \
248
249
250
251
252
	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 \
253
	org.freedesktop.systemd1.Swap.xml \
254
255
256
257
	org.freedesktop.systemd1.Path.xml \
        org.freedesktop.hostname1.xml \
        org.freedesktop.locale1.xml \
        org.freedesktop.timedate1.xml
258

259
dist_bashcompletion_DATA = \
260
	src/systemctl-bash-completion.sh
261

262
263
264
265
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

266
267
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
268
	tmpfiles.d/legacy.conf
269
270
endif

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

325
326
327
328
329
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

330
331
332
333
334
335
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

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

374
375
376
377
378
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

379
380
381
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
382

383
384
nodist_userunit_DATA = \
	units/user/exit.service
385

386
EXTRA_DIST = \
387
	units/getty@.service.m4 \
388
	units/serial-getty@.service.m4 \
389
	units/console-shell.service.m4 \
390
	units/rescue.service.m4 \
391
392
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
393
	units/systemd-shutdownd.service.in \
394
	units/systemd-hostnamed.service.in \
395
396
	units/systemd-localed.service.in \
	units/systemd-timedated.service.in \
397
	units/systemd-logind.service.in \
398
	units/systemd-kmsg-syslogd.service.in \
399
	units/systemd-modules-load.service.in \
400
	units/systemd-vconsole-setup.service.in \
401
	units/systemd-remount-api-vfs.service.in \
402
403
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
404
405
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
406
407
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
408
	units/systemd-readahead-done.service.in \
409
410
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
411
	units/systemd-user-sessions.service.in \
412
	units/systemd-ask-password-wall.service.in \
413
	units/systemd-ask-password-console.service.in \
414
	units/systemd-sysctl.service.in \
415
416
417
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
418
	units/kexec.service.in \
419
	units/user/exit.service.in \
420
421
	units/fsck@.service.in \
	units/fsck-root.service.in \
422
	units/quotacheck.service.in \
423
        units/user@.service.in \
424
	systemd.pc.in \
425
        libsystemd-login.pc.in \
426
	introspect.awk \
427
        src/73-seat-late.rules.in
428

429
430
431
432
433
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

434
435
436
437
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
438
439
440
	units/fedora/halt-local.service
endif

441
442
443
444
445
446
447
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

448
449
450
451
452
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

453
454
455
456
457
458
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
endif

459
460
461
462
463
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
464
	units/plymouth-quit-wait.service \
465
466
467
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
468
469
470
471
472
473
474
475
	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
476
477
endif

478
479
dist_doc_DATA = \
	README \
480
481
	LICENSE \
	DISTRO_PORTING \
482
	src/sd-daemon.h \
483
484
485
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
486

487
pkgconfigdata_DATA = \
488
489
	systemd.pc \
        libsystemd-login.pc
490

491
492
# Passed through intltool only
polkitpolicy_in_files = \
493
494
495
496
497
        src/org.freedesktop.hostname1.policy.in \
        src/org.freedesktop.locale1.policy.in \
        src/org.freedesktop.timedate1.policy.in \
        src/org.freedesktop.login1.policy.in

498
499
500
501
502
503
# 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) \
504
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
505
506
507
508
509

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

510
@INTLTOOL_POLICY_RULE@
511

512
513
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
514
515
	libsystemd-core.la \
	libsystemd-daemon.la
516
517

libsystemd_basic_la_SOURCES = \
518
	src/util.c \
519
	src/label.c \
520
521
522
523
524
525
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
526
527
	src/ratelimit.c \
	src/exit-status.c
528

529
530
531
532
533
534
535
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

536
libsystemd_core_la_SOURCES = \
537
	src/unit.c \
538
539
	src/job.c \
	src/manager.c \
540
	src/path-lookup.c \
541
542
543
544
545
546
547
548
549
550
	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 \
551
	src/path.c \
552
553
	src/load-dropin.c \
	src/execute.c \
554
	src/utmp-wtmp.c \
555
556
557
558
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
559
560
	src/dbus-service.c \
	src/dbus-socket.c \
561
	src/dbus-timer.c \
562
563
564
565
566
567
568
	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 \
569
	src/dbus-path.c \
570
571
572
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
573
	src/selinux-setup.c \
574
	src/loopback-setup.c \
575
	src/kmod-setup.c \
576
	src/locale-setup.c \
577
	src/machine-id-setup.c \
578
579
580
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
581
	src/namespace.c \
582
	src/tcpwrap.c \
583
	src/cgroup-util.c \
584
	src/condition.c \
585
586
        src/dbus-common.c \
        src/sd-daemon.c
587

588
589
590
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
591
592
593
594
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
595
596
597
598
599
600

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
601
	$(PAM_LIBS) \
602
	$(AUDIT_LIBS)
603

604
605
606
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

607
608
609
610
# 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.

611
EXTRA_DIST += \
612
613
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
614
	${libsystemd_daemon_la_SOURCES:.c=.h} \
615
	src/macro.h \
616
	src/def.h \
617
618
619
620
621
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
622
	src/linux/fanotify.h \
623
	src/initreq.h \
624
	src/sd-readahead.h \
625
	src/special.h \
626
	src/dbus-common.h \
627
	src/bus-errors.h \
628
	src/cgroup-show.h \
629
	src/build.h \
630
	src/shutdownd.h \
631
	src/umount.h \
632
	src/readahead-common.h \
633
634
635
636
637
638
639
640
641
642
643
	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
644
645

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
646
	man/systemd.1 \
647
648
	man/systemctl.1 \
	man/systemadm.1 \
649
	man/systemd-cgls.1 \
650
	man/systemd-nspawn.1 \
651
	man/systemd-tmpfiles.8 \
652
	man/systemd-notify.1 \
653
	man/sd_notify.3 \
654
	man/sd_readahead.3 \
655
656
657
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
658
659
	man/systemd.unit.5 \
	man/systemd.service.5 \
660
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
661
	man/systemd.mount.5 \
662
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
663
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
664
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
665
	man/systemd.path.5 \
666
	man/systemd.target.5 \
667
	man/systemd.device.5 \
668
	man/systemd.snapshot.5 \
669
	man/systemd.exec.5 \
670
	man/daemon.7 \
671
	man/sd-daemon.7 \
672
	man/sd-readahead.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/systemd-logind.conf.5 \
680
	man/tmpfiles.d.5 \
681
	man/hostname.5 \
682
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
683
	man/vconsole.conf.5 \
684
	man/locale.conf.5 \
685
	man/os-release.5 \
686
        man/machine-info.5 \
687
	man/modules-load.d.5 \
688
	man/sysctl.d.5 \
689
690
        man/systemd-ask-password.1 \
        man/systemd-loginctl.1
691

692
693
694
695
696
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
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)
717
718

nodist_man_MANS = \
719
	man/systemd.special.7
720

721
722
723
724
725
726
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)}}}}}

727
dist_noinst_DATA = \
728
	${XML_FILES:.xml=.html}
729

730
nodist_noinst_DATA = \
731
	${XML_IN_FILES:.xml.in=.html}
732
733

EXTRA_DIST += \
734
735
736
737
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
738

739
systemd_SOURCES = \
740
	src/main.c
741

742
743
systemd_CFLAGS = \
	$(AM_CFLAGS) \
744
	$(DBUS_CFLAGS) \
745
	$(UDEV_CFLAGS)
746
747

systemd_LDADD = \
748
	libsystemd-core.la
749
750

test_engine_SOURCES = \
751
	src/test-engine.c
752

753
test_engine_CFLAGS = $(systemd_CFLAGS)
754
755
756
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
757
	src/test-job-type.c
758

759
test_job_type_CFLAGS = $(systemd_CFLAGS)
760
761
test_job_type_LDADD = $(systemd_LDADD)

762
test_ns_SOURCES = \
763
	src/test-ns.c
764

765
test_ns_CFLAGS = $(systemd_CFLAGS)
766
767
test_ns_LDADD = $(systemd_LDADD)

768
test_loopback_SOURCES = \
769
770
	src/test-loopback.c \
	src/loopback-setup.c
771

772
773
774
test_loopback_LDADD = \
	libsystemd-basic.la

775
776
777
778
779
780
781
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

782
test_daemon_SOURCES = \
783
	src/test-daemon.c
784

785
test_daemon_LDADD = \
786
787
	libsystemd-basic.la \
	libsystemd-daemon.la
788

789
790
791
792
793
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
794
	$(AM_CFLAGS)
795
796

test_cgroup_LDADD = \
797
	libsystemd-basic.la
798

799
800
801
802
803
804
805
806
807
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

808
test_strv_SOURCES = \
809
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
810
	src/specifier.c
811
812
813
814
815
816
817

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

818
819
820
821
822
823
824
825
826
827
test_login_SOURCES = \
	src/test-login.c

test_login_CFLAGS = \
	$(AM_CFLAGS)

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

828
systemd_logger_SOURCES = \
829
	src/logger.c \
830
831
832
	src/tcpwrap.c

systemd_logger_LDADD = \
833
	libsystemd-basic.la \
834
	libsystemd-daemon.la \
835
	$(LIBWRAP_LIBS)
836

837
systemd_initctl_SOURCES = \
838
	src/initctl.c \
839
	src/dbus-common.c
840

841
842
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
843
844
845
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
846
	libsystemd-basic.la \
847
	libsystemd-daemon.la \
848
849
	$(DBUS_LIBS)

850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
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)

865
866
867
868
869
870
871
872
873
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

874
systemd_shutdownd_SOURCES = \
875
	src/utmp-wtmp.c \
876
877
878
879
880
881
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
882
883
	libsystemd-basic.la \
	libsystemd-daemon.la
884

885
886
systemd_hostnamed_SOURCES = \
	src/hostnamed.c \
887
888
        src/dbus-common.c \
        src/polkit.c
889
890
891
892
893
894
895
896
897
898

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

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

899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
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)

927
928
systemd_logind_SOURCES = \
	src/logind.c \
929
	src/logind-dbus.c \
930
931
        src/logind-device.c \
        src/logind-seat.c \
932
        src/logind-seat-dbus.c \
933
        src/logind-session.c \
934
        src/logind-session-dbus.c \
935
        src/logind-user.c \
936
        src/logind-user-dbus.c \
937
938
        src/dbus-common.c \
        src/dbus-loop.c \
939
940
        src/cgroup-util.c \
        src/polkit.c
941
942
943
944

systemd_logind_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
945
946
        $(UDEV_CFLAGS) \
        $(ACL_CFLAGS)
947
948
949
950
951

systemd_logind_LDADD = \
	libsystemd-basic.la \
	libsystemd-daemon.la \
	$(DBUS_LIBS) \
952
953
954
955
        $(UDEV_LIBS) \
        $(ACL_LIBS)

systemd_uaccess_SOURCES = \
956
957
958
959
960
961
962
963
964
	src/uaccess.c

if HAVE_ACL
systemd_logind_SOURCES += \
	src/logind-acl.c

systemd_uaccess_SOURCES += \
	src/logind-acl.c
endif
965
966
967
968
969
970
971
972

systemd_uaccess_CFLAGS = \
	$(AM_CFLAGS) \
        $(UDEV_CFLAGS) \
        $(ACL_CFLAGS)

systemd_uaccess_LDADD = \
	libsystemd-basic.la \
973
	libsystemd-daemon.la \
974
975
        $(UDEV_LIBS) \
        $(ACL_LIBS)
976

977
978
979
980
981
982
983
984
985
986
987
988
989
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)

990
991
992
993
994
995
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

996
systemd_modules_load_LDADD = \
997
998
	libsystemd-basic.la

999
1000
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
1001

Lennart Poettering's avatar