Makefile.am 51.9 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
LIBSYSTEMD_LOGIN_CURRENT=0
23
LIBSYSTEMD_LOGIN_REVISION=6
24
25
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)\" \
Lennart Poettering's avatar
Lennart Poettering committed
79
        -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
80
	-I $(top_srcdir)/src
81

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

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

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

144
dist_bin_SCRIPTS = \
145
	src/systemd-analyze
146

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

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

178
179
180
181
182
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

183
184
185
186
187
if ENABLE_HOSTNAMED
rootlibexec_PROGRAMS += \
	systemd-hostnamed
endif

188
189
190
191
192
if ENABLE_TIMEDATED
rootlibexec_PROGRAMS += \
	systemd-timedated
endif

193
194
195
196
197
if ENABLE_LOCALED
rootlibexec_PROGRAMS += \
	systemd-localed
endif

198
systemgenerator_PROGRAMS = \
199
	systemd-getty-generator
200

201
202
203
204
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

205
systemgenerator_PROGRAMS += \
206
	systemd-cryptsetup-generator
207
endif
208

209
lib_LTLIBRARIES = \
210
	libsystemd-daemon.la \
211
	libsystemd-login.la
212
213

pkginclude_HEADERS = \
214
215
	src/sd-daemon.h \
	src/sd-login.h
216

217
218
noinst_PROGRAMS = \
	test-engine \
219
	test-job-type \
220
	test-ns \
221
	test-loopback \
222
	test-hostname \
223
	test-daemon \
224
	test-cgroup \
225
	test-env-replace \
226
	test-strv \
227
228
        test-login \
        test-install
229
230
231
232
233

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
234

235
dist_pkgsysconf_DATA = \
236
237
238
	src/system.conf \
        src/user.conf \
        src/systemd-logind.conf
239

240
dist_dbuspolicy_DATA = \
241
	src/org.freedesktop.systemd1.conf \
242
        src/org.freedesktop.login1.conf
243

244
245
246
247
248
if ENABLE_HOSTNAMED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.hostname1.conf
endif

249
250
251
252
253
if ENABLE_TIMEDATED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.timedate1.conf
endif

254
255
256
257
258
if ENABLE_LOCALED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.locale1.conf
endif

259
dist_dbussystemservice_DATA = \
260
	src/org.freedesktop.systemd1.service \
261
        src/org.freedesktop.login1.service
262

263
264
265
266
267
if ENABLE_HOSTNAMED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.hostname1.service
endif

268
269
270
271
272
if ENABLE_TIMEDATED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.timedate1.service
endif

273
274
275
276
277
if ENABLE_LOCALED
dist_dbussystemservice_DATA += \
        src/org.freedesktop.locale1.service
endif

278
dist_udevrules_DATA = \
279
        src/70-uaccess.rules \
280
        src/71-seat.rules
281

282
nodist_udevrules_DATA = \
283
284
        src/73-seat-late.rules \
        src/99-systemd.rules
285

286
dbusinterface_DATA = \
287
288
289
290
291
	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 \
292
	org.freedesktop.systemd1.Timer.xml \
293
294
295
296
297
	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 \
298
	org.freedesktop.systemd1.Swap.xml \
299
	org.freedesktop.systemd1.Path.xml
300

301
302
303
304
305
if ENABLE_HOSTNAMED
dbusinterface_DATA += \
	org.freedesktop.hostname1.xml
endif

306
307
308
309
310
if ENABLE_TIMEDATED
dbusinterface_DATA += \
	org.freedesktop.timedate1.xml
endif

311
312
313
314
315
if ENABLE_LOCALED
dbusinterface_DATA += \
	org.freedesktop.locale1.xml
endif

316
dist_bashcompletion_DATA = \
317
	src/systemctl-bash-completion.sh
318

319
320
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
321
	tmpfiles.d/tmp.conf \
322
323
	tmpfiles.d/x11.conf

324
325
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
326
	tmpfiles.d/legacy.conf
327
328
endif

329
dist_systemunit_DATA = \
330
331
	units/graphical.target \
	units/multi-user.target \
332
	units/emergency.service \
333
	units/emergency.target \
334
	units/sysinit.target \
335
	units/basic.target \
336
337
	units/getty.target \
	units/halt.target \
338
	units/kexec.target \
339
	units/local-fs.target \
340
        units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
341
	units/remote-fs.target \
342
        units/remote-fs-pre.target \
343
	units/cryptsetup.target \
344
345
	units/network.target \
	units/nss-lookup.target \
346
	units/mail-transfer-agent.target \
347
	units/http-daemon.target \
348
349
350
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
351
	units/rpcbind.target \
352
	units/time-sync.target \
353
	units/shutdown.target \
354
	units/final.target \
355
	units/umount.target \
356
357
358
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
359
	units/systemd-initctl.socket \
360
	units/systemd-stdout-syslog-bridge.socket \
361
	units/systemd-shutdownd.socket \
362
	units/syslog.socket \
363
364
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
365
	units/sys-kernel-config.mount \
366
	units/sys-kernel-debug.mount \
367
	units/sys-kernel-security.mount \
368
	units/sys-fs-fuse-connections.mount \
369
	units/var-run.mount \
370
	units/media.mount \
371
	units/remount-rootfs.service \
372
	units/printer.target \
373
	units/sound.target \
374
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
375
	units/smartcard.target \
376
	units/systemd-readahead-done.timer \
377
	units/systemd-tmpfiles-clean.timer \
378
	units/quotaon.service \
379
	units/systemd-ask-password-wall.path \
380
381
	units/systemd-ask-password-console.path \
	units/syslog.target
382

383
384
385
386
387
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

388
389
390
391
392
393
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

394
nodist_systemunit_DATA = \
395
	units/getty@.service \
396
	units/serial-getty@.service \
397
	units/console-shell.service \
398
	units/systemd-initctl.service \
399
	units/systemd-stdout-syslog-bridge.service \
400
	units/systemd-shutdownd.service \
401
	units/systemd-logind.service \
402
	units/systemd-kmsg-syslogd.service \
403
	units/systemd-modules-load.service \
404
	units/systemd-vconsole-setup.service \
405
	units/systemd-remount-api-vfs.service \
406
407
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
408
409
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
410
411
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
412
	units/systemd-readahead-done.service \
413
414
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
415
	units/systemd-user-sessions.service \
416
	units/systemd-ask-password-wall.service \
417
	units/systemd-ask-password-console.service \
418
	units/systemd-sysctl.service \
419
420
421
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
422
423
	units/kexec.service \
	units/fsck@.service \
424
	units/fsck-root.service \
425
	units/quotacheck.service \
426
427
	units/rescue.service \
        units/user@.service
428

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

434
435
436
437
438
if ENABLE_HOSTNAMED
nodist_systemunit_DATA += \
	units/systemd-hostnamed.service
endif

439
440
441
442
443
if ENABLE_TIMEDATED
nodist_systemunit_DATA += \
	units/systemd-timedated.service
endif

444
445
446
447
448
if ENABLE_LOCALED
nodist_systemunit_DATA += \
	units/systemd-localed.service
endif

449
450
451
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
452

453
454
nodist_userunit_DATA = \
	units/user/exit.service
455

456
EXTRA_DIST = \
457
	units/getty@.service.m4 \
458
	units/serial-getty@.service.m4 \
459
	units/console-shell.service.m4 \
460
	units/rescue.service.m4 \
461
	units/systemd-initctl.service.in \
462
	units/systemd-stdout-syslog-bridge.service.in \
463
	units/systemd-shutdownd.service.in \
464
	units/systemd-logind.service.in \
465
	units/systemd-kmsg-syslogd.service.in \
466
	units/systemd-modules-load.service.in \
467
	units/systemd-vconsole-setup.service.in \
468
	units/systemd-remount-api-vfs.service.in \
469
470
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
471
472
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
473
474
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
475
	units/systemd-readahead-done.service.in \
476
477
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
478
	units/systemd-user-sessions.service.in \
479
	units/systemd-ask-password-wall.service.in \
480
	units/systemd-ask-password-console.service.in \
481
	units/systemd-sysctl.service.in \
482
483
484
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
485
	units/kexec.service.in \
486
	units/user/exit.service.in \
487
488
	units/fsck@.service.in \
	units/fsck-root.service.in \
489
	units/quotacheck.service.in \
Kay Sievers's avatar
Kay Sievers committed
490
	units/user@.service.in \
491
	systemd.pc.in \
Kay Sievers's avatar
Kay Sievers committed
492
493
494
495
	libsystemd-daemon.pc.in \
	libsystemd-login.pc.in \
	src/libsystemd-daemon.sym \
	src/libsystemd-login.sym \
496
	introspect.awk \
497
498
	src/73-seat-late.rules.in \
        src/99-systemd.rules.in
499

500
501
502
503
504
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

505
506
507
508
509
if ENABLE_HOSTNAMED
EXTRA_DIST += \
	units/systemd-hostnamed.service.in
endif

510
511
512
513
514
if ENABLE_TIMEDATED
EXTRA_DIST += \
	units/systemd-timedated.service.in
endif

515
516
517
518
519
if ENABLE_LOCALED
EXTRA_DIST += \
	units/systemd-localed.service.in
endif

520
521
522
523
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
524
525
526
	units/fedora/halt-local.service
endif

527
528
529
530
531
532
533
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

534
535
536
537
538
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

539
540
541
542
543
544
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
endif

545
546
547
548
549
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
550
	units/plymouth-quit-wait.service \
551
552
553
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
554
555
556
557
558
559
560
561
	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
562
563
endif

564
565
dist_doc_DATA = \
	README \
566
567
	LICENSE \
	DISTRO_PORTING \
568
	src/sd-daemon.h \
569
570
571
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
572

573
pkgconfigdata_DATA = \
574
575
576
	systemd.pc

pkgconfiglib_DATA = \
577
        libsystemd-daemon.pc \
578
        libsystemd-login.pc
579

580
581
# Passed through intltool only
polkitpolicy_in_files = \
582
583
        src/org.freedesktop.login1.policy.in

584
585
586
587
588
if ENABLE_HOSTNAMED
polkitpolicy_in_files += \
	src/org.freedesktop.hostname1.policy.in
endif

589
590
591
592
593
if ENABLE_TIMEDATED
polkitpolicy_in_files += \
	src/org.freedesktop.timedate1.policy.in
endif

594
595
596
597
598
if ENABLE_LOCALED
polkitpolicy_in_files += \
        src/org.freedesktop.locale1.policy.in
endif

599
600
601
602
603
604
# 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) \
605
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
606
607
608
609
610

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

611
@INTLTOOL_POLICY_RULE@
612

613
614
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
615
	libsystemd-core.la
616
617

libsystemd_basic_la_SOURCES = \
618
	src/util.c \
619
        src/virt.c \
620
	src/label.c \
621
622
623
624
625
626
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
627
628
	src/ratelimit.c \
	src/exit-status.c
629

630
631
632
633
634
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
635
636
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
637

638
libsystemd_core_la_SOURCES = \
639
	src/unit.c \
640
641
	src/job.c \
	src/manager.c \
642
	src/path-lookup.c \
643
644
645
646
647
648
649
650
651
652
	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 \
653
	src/path.c \
654
655
	src/load-dropin.c \
	src/execute.c \
656
	src/utmp-wtmp.c \
657
658
659
660
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
661
662
	src/dbus-service.c \
	src/dbus-socket.c \
663
	src/dbus-timer.c \
664
665
666
667
668
669
670
	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 \
671
	src/dbus-path.c \
672
673
674
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
675
	src/selinux-setup.c \
676
	src/loopback-setup.c \
677
	src/kmod-setup.c \
678
	src/locale-setup.c \
679
	src/machine-id-setup.c \
680
681
682
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
683
	src/namespace.c \
684
	src/tcpwrap.c \
685
	src/cgroup-util.c \
686
	src/condition.c \
687
        src/dbus-common.c \
688
        src/sd-daemon.c \
689
690
        src/install.c \
        src/cgroup-attr.c
691

692
693
694
695
nodist_libsystemd_core_la_SOURCES = \
        src/load-fragment-gperf.c \
        src/load-fragment-gperf-nulstr.c

696
697
698
EXTRA_DIST += \
        src/load-fragment-gperf.gperf.m4

699
700
701
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
702
703
704
705
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
706
707
708
709
710
711

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
712
	$(PAM_LIBS) \
713
714
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
715

716
717
718
719
# 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.

720
EXTRA_DIST += \
721
722
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
723
	${libsystemd_daemon_la_SOURCES:.c=.h} \
724
	src/macro.h \
725
	src/def.h \
726
727
728
729
730
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
731
	src/linux/fanotify.h \
732
	src/initreq.h \
733
	src/sd-readahead.h \
734
	src/special.h \
735
	src/dbus-common.h \
736
	src/bus-errors.h \
737
	src/cgroup-show.h \
738
	src/build.h \
739
	src/shutdownd.h \
740
	src/umount.h \
741
	src/readahead-common.h \
742
743
744
745
746
747
748
749
750
751
	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 \
752
753
        src/dbus-loop.h \
        src/spawn-agent.h
754
755

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
756
	man/systemd.1 \
757
758
	man/systemctl.1 \
	man/systemadm.1 \
759
	man/systemd-cgls.1 \
760
	man/systemd-nspawn.1 \
761
	man/systemd-tmpfiles.8 \
762
	man/systemd-notify.1 \
763
	man/sd_notify.3 \
764
	man/sd_readahead.3 \
765
766
767
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
768
769
	man/systemd.unit.5 \
	man/systemd.service.5 \
770
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
771
	man/systemd.mount.5 \
772
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
773
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
774
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
775
	man/systemd.path.5 \
776
	man/systemd.target.5 \
777
	man/systemd.device.5 \
778
	man/systemd.snapshot.5 \
779
	man/systemd.exec.5 \
780
	man/daemon.7 \
781
	man/sd-daemon.7 \
782
	man/sd-readahead.7 \
783
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
784
785
786
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
787
	man/pam_systemd.8 \
788
	man/systemd.conf.5 \
789
	man/systemd-logind.conf.5 \
790
	man/tmpfiles.d.5 \
791
	man/hostname.5 \
792
        man/timezone.5 \
793
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
794
	man/vconsole.conf.5 \
795
	man/locale.conf.5 \
796
	man/os-release.5 \
797
        man/machine-info.5 \
798
	man/modules-load.d.5 \
799
	man/sysctl.d.5 \
800
801
        man/systemd-ask-password.1 \
        man/systemd-loginctl.1
802

803
804
805
806
807
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
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)
828
829

nodist_man_MANS = \
830
	man/systemd.special.7
831

832
833
834
835
836
837
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)}}}}}

838
dist_noinst_DATA = \
839
	${XML_FILES:.xml=.html}
840

841
nodist_noinst_DATA = \
842
	${XML_IN_FILES:.xml.in=.html}
843
844

EXTRA_DIST += \
845
846
847
848
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
849

850
systemd_SOURCES = \
851
	src/main.c
852

853
854
systemd_CFLAGS = \
	$(AM_CFLAGS) \
855
	$(DBUS_CFLAGS) \
856
	$(UDEV_CFLAGS)
857
858

systemd_LDADD = \
859
	libsystemd-core.la
860
861

test_engine_SOURCES = \
862
	src/test-engine.c
863

864
test_engine_CFLAGS = $(systemd_CFLAGS)
865
866
867
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
868
	src/test-job-type.c
869

870
test_job_type_CFLAGS = $(systemd_CFLAGS)
871
872
test_job_type_LDADD = $(systemd_LDADD)

873
test_ns_SOURCES = \
874
	src/test-ns.c
875

876
test_ns_CFLAGS = $(systemd_CFLAGS)
877
878
test_ns_LDADD = $(systemd_LDADD)

879
test_loopback_SOURCES = \
880
881
	src/test-loopback.c \
	src/loopback-setup.c
882

883
884
885
test_loopback_LDADD = \
	libsystemd-basic.la

886
887
888
889
890
891
892
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

893
test_daemon_SOURCES = \
894
	src/test-daemon.c
895

896
test_daemon_LDADD = \
897
898
	libsystemd-basic.la \
	libsystemd-daemon.la
899

900
901
902
903
904
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
905
	$(AM_CFLAGS)
906
907

test_cgroup_LDADD = \
908
	libsystemd-basic.la
909

910
911
912
913
914
915
916
917
918
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

919
test_strv_SOURCES = \
920
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
921
	src/specifier.c
922
923
924
925
926
927
928

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

929
930
931
932
933
934
935
936
937
938
test_login_SOURCES = \
	src/test-login.c

test_login_CFLAGS = \
	$(AM_CFLAGS)

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

939
940
941
942
943
944
945
946
947
948
949
950
951
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

952
953
systemd_stdout_syslog_bridge_SOURCES = \
	src/stdout-syslog-bridge.c \
954
955
	src/tcpwrap.c

956
systemd_stdout_syslog_bridge_LDADD = \
957
	libsystemd-basic.la \
958
	libsystemd-daemon.la \
959
	$(LIBWRAP_LIBS)
960

961
systemd_initctl_SOURCES = \
962
	src/initctl.c \
963
	src/dbus-common.c
964

965
966
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
967
968
969
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \