Makefile.am 53 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
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
122
123
124
125
126
127
128
else
if TARGET_MAGEIA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
endif
129
endif
130
endif
131
endif
132
endif
Chris E Ferron's avatar
Chris E Ferron committed
133
endif
Koen Kooi's avatar
Koen Kooi committed
134
endif
135

136
rootbin_PROGRAMS = \
137
	systemd \
138
	systemctl \
139
        systemd-loginctl \
140
	systemd-notify \
141
	systemd-ask-password \
142
	systemd-tty-ask-password-agent \
143
	systemd-tmpfiles \
144
	systemd-machine-id-setup
145

146
bin_PROGRAMS = \
147
	systemd-cgls \
148
	systemd-stdio-bridge \
149
	systemd-nspawn
150

151
dist_bin_SCRIPTS = \
152
	src/systemd-analyze
153

154
155
if HAVE_GTK
bin_PROGRAMS += \
156
	systemadm \
157
	systemd-gnome-ask-password-agent
158
endif
159

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

185
186
187
188
189
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

190
191
192
193
194
if ENABLE_HOSTNAMED
rootlibexec_PROGRAMS += \
	systemd-hostnamed
endif

195
196
197
198
199
if ENABLE_TIMEDATED
rootlibexec_PROGRAMS += \
	systemd-timedated
endif

200
201
202
203
204
if ENABLE_LOCALED
rootlibexec_PROGRAMS += \
	systemd-localed
endif

205
systemgenerator_PROGRAMS = \
206
	systemd-getty-generator
207

208
209
210
211
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

212
systemgenerator_PROGRAMS += \
213
	systemd-cryptsetup-generator
214
endif
215

216
lib_LTLIBRARIES = \
217
	libsystemd-daemon.la \
218
	libsystemd-login.la
219
220

pkginclude_HEADERS = \
221
222
	src/sd-daemon.h \
	src/sd-login.h
223

224
225
noinst_PROGRAMS = \
	test-engine \
226
	test-job-type \
227
	test-ns \
228
	test-loopback \
229
	test-hostname \
230
	test-daemon \
231
	test-cgroup \
232
	test-env-replace \
233
	test-strv \
234
235
        test-login \
        test-install
236
237
238
239
240

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
241

242
dist_pkgsysconf_DATA = \
243
244
245
	src/system.conf \
        src/user.conf \
        src/systemd-logind.conf
246

247
dist_dbuspolicy_DATA = \
248
	src/org.freedesktop.systemd1.conf \
249
        src/org.freedesktop.login1.conf
250

251
252
253
254
255
if ENABLE_HOSTNAMED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.hostname1.conf
endif

256
257
258
259
260
if ENABLE_TIMEDATED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.timedate1.conf
endif

261
262
263
264
265
if ENABLE_LOCALED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.locale1.conf
endif

266
dist_dbussystemservice_DATA = \
267
	src/org.freedesktop.systemd1.service \
268
        src/org.freedesktop.login1.service
269

270
271
272
273
274
if ENABLE_HOSTNAMED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.hostname1.service
endif

275
276
277
278
279
if ENABLE_TIMEDATED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.timedate1.service
endif

280
281
282
283
284
if ENABLE_LOCALED
dist_dbussystemservice_DATA += \
        src/org.freedesktop.locale1.service
endif

285
dist_udevrules_DATA = \
286
        src/70-uaccess.rules \
287
        src/71-seat.rules
288

289
nodist_udevrules_DATA = \
290
291
        src/73-seat-late.rules \
        src/99-systemd.rules
292

293
dbusinterface_DATA = \
294
295
296
297
298
	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 \
299
	org.freedesktop.systemd1.Timer.xml \
300
301
302
303
304
	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 \
305
	org.freedesktop.systemd1.Swap.xml \
306
	org.freedesktop.systemd1.Path.xml
307

308
309
310
311
312
if ENABLE_HOSTNAMED
dbusinterface_DATA += \
	org.freedesktop.hostname1.xml
endif

313
314
315
316
317
if ENABLE_TIMEDATED
dbusinterface_DATA += \
	org.freedesktop.timedate1.xml
endif

318
319
320
321
322
if ENABLE_LOCALED
dbusinterface_DATA += \
	org.freedesktop.locale1.xml
endif

323
dist_bashcompletion_DATA = \
324
	src/systemd-bash-completion.sh
325

326
327
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
328
	tmpfiles.d/tmp.conf \
329
330
	tmpfiles.d/x11.conf

331
332
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
333
	tmpfiles.d/legacy.conf
334
335
endif

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

390
391
392
393
394
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

395
396
397
398
399
400
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

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

436
437
438
439
440
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

441
442
443
444
445
if ENABLE_HOSTNAMED
nodist_systemunit_DATA += \
	units/systemd-hostnamed.service
endif

446
447
448
449
450
if ENABLE_TIMEDATED
nodist_systemunit_DATA += \
	units/systemd-timedated.service
endif

451
452
453
454
455
if ENABLE_LOCALED
nodist_systemunit_DATA += \
	units/systemd-localed.service
endif

456
457
458
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
459

460
461
nodist_userunit_DATA = \
	units/user/exit.service
462

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

507
508
509
510
511
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

512
513
514
515
516
if ENABLE_HOSTNAMED
EXTRA_DIST += \
	units/systemd-hostnamed.service.in
endif

517
518
519
520
521
if ENABLE_TIMEDATED
EXTRA_DIST += \
	units/systemd-timedated.service.in
endif

522
523
524
525
526
if ENABLE_LOCALED
EXTRA_DIST += \
	units/systemd-localed.service.in
endif

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

534
535
536
537
538
539
540
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

541
542
543
544
545
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

546
547
548
549
550
551
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
endif

Dexter Morgan's avatar
Dexter Morgan committed
552
553
554
555
556
557
558
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

559
560
561
562
563
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
564
	units/plymouth-quit-wait.service \
565
566
567
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
568
569
570
571
572
573
574
575
	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
576
577
endif

578
579
dist_doc_DATA = \
	README \
580
581
	LICENSE \
	DISTRO_PORTING \
582
	src/sd-daemon.h \
583
584
585
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
586

587
pkgconfigdata_DATA = \
588
589
590
	systemd.pc

pkgconfiglib_DATA = \
591
        libsystemd-daemon.pc \
592
        libsystemd-login.pc
593

594
595
# Passed through intltool only
polkitpolicy_in_files = \
596
597
        src/org.freedesktop.login1.policy.in

598
599
600
601
602
if ENABLE_HOSTNAMED
polkitpolicy_in_files += \
	src/org.freedesktop.hostname1.policy.in
endif

603
604
605
606
607
if ENABLE_TIMEDATED
polkitpolicy_in_files += \
	src/org.freedesktop.timedate1.policy.in
endif

608
609
610
611
612
if ENABLE_LOCALED
polkitpolicy_in_files += \
        src/org.freedesktop.locale1.policy.in
endif

613
614
615
616
617
618
# 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) \
619
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
620
621
622
623
624

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

625
@INTLTOOL_POLICY_RULE@
626

627
628
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
629
	libsystemd-core.la
630
631

libsystemd_basic_la_SOURCES = \
632
	src/util.c \
633
        src/virt.c \
634
	src/label.c \
635
636
637
638
639
640
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
641
642
	src/ratelimit.c \
	src/exit-status.c
643

644
645
646
647
648
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
649
650
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
651

652
libsystemd_core_la_SOURCES = \
653
	src/unit.c \
654
655
	src/job.c \
	src/manager.c \
656
	src/path-lookup.c \
657
658
659
660
661
662
663
664
665
666
	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 \
667
	src/path.c \
668
669
	src/load-dropin.c \
	src/execute.c \
670
	src/utmp-wtmp.c \
671
672
673
674
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
675
676
	src/dbus-service.c \
	src/dbus-socket.c \
677
	src/dbus-timer.c \
678
679
680
681
682
683
684
	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 \
685
	src/dbus-path.c \
686
687
688
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
689
	src/selinux-setup.c \
690
	src/loopback-setup.c \
691
	src/kmod-setup.c \
692
	src/locale-setup.c \
693
	src/machine-id-setup.c \
694
695
696
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
697
	src/namespace.c \
698
	src/tcpwrap.c \
699
	src/cgroup-util.c \
700
	src/condition.c \
701
        src/dbus-common.c \
702
        src/sd-daemon.c \
703
704
        src/install.c \
        src/cgroup-attr.c
705

706
707
708
709
nodist_libsystemd_core_la_SOURCES = \
        src/load-fragment-gperf.c \
        src/load-fragment-gperf-nulstr.c

710
711
712
EXTRA_DIST += \
        src/load-fragment-gperf.gperf.m4

713
714
715
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
716
717
718
719
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
720
721
722
723
724
725

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
726
	$(PAM_LIBS) \
727
728
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
729

730
731
732
733
# 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.

734
EXTRA_DIST += \
735
736
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
737
	${libsystemd_daemon_la_SOURCES:.c=.h} \
738
	src/macro.h \
739
	src/def.h \
740
741
742
743
744
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
745
	src/linux/fanotify.h \
746
	src/initreq.h \
747
	src/sd-readahead.h \
748
	src/special.h \
749
	src/dbus-common.h \
750
	src/bus-errors.h \
751
	src/cgroup-show.h \
752
	src/build.h \
753
	src/shutdownd.h \
754
	src/umount.h \
755
	src/readahead-common.h \
756
757
758
759
760
761
762
763
764
765
	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 \
766
767
        src/dbus-loop.h \
        src/spawn-agent.h
768
769

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
770
	man/systemd.1 \
771
772
	man/systemctl.1 \
	man/systemadm.1 \
773
	man/systemd-cgls.1 \
774
	man/systemd-nspawn.1 \
775
	man/systemd-tmpfiles.8 \
776
	man/systemd-notify.1 \
777
	man/sd_notify.3 \
778
	man/sd_readahead.3 \
779
780
781
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
782
783
	man/systemd.unit.5 \
	man/systemd.service.5 \
784
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
785
	man/systemd.mount.5 \
786
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
787
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
788
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
789
	man/systemd.path.5 \
790
	man/systemd.target.5 \
791
	man/systemd.device.5 \
792
	man/systemd.snapshot.5 \
793
	man/systemd.exec.5 \
794
	man/daemon.7 \
795
	man/sd-daemon.7 \
796
	man/sd-readahead.7 \
797
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
798
799
800
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
801
	man/pam_systemd.8 \
802
	man/systemd.conf.5 \
803
	man/systemd-logind.conf.5 \
804
	man/tmpfiles.d.5 \
805
	man/hostname.5 \
806
        man/timezone.5 \
807
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
808
	man/vconsole.conf.5 \
809
	man/locale.conf.5 \
810
	man/os-release.5 \
811
        man/machine-info.5 \
812
	man/modules-load.d.5 \
813
	man/sysctl.d.5 \
814
815
        man/systemd-ask-password.1 \
        man/systemd-loginctl.1
816

817
818
819
820
821
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
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)
842
843

nodist_man_MANS = \
844
	man/systemd.special.7
845

846
847
848
849
850
851
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)}}}}}

852
dist_noinst_DATA = \
853
	${XML_FILES:.xml=.html}
854

855
nodist_noinst_DATA = \
856
	${XML_IN_FILES:.xml.in=.html}
857
858

EXTRA_DIST += \
859
860
861
862
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
863

864
systemd_SOURCES = \
865
	src/main.c
866

867
868
systemd_CFLAGS = \
	$(AM_CFLAGS) \
869
	$(DBUS_CFLAGS) \
870
	$(UDEV_CFLAGS)
871
872

systemd_LDADD = \
873
	libsystemd-core.la
874
875

test_engine_SOURCES = \
876
	src/test-engine.c
877

878
test_engine_CFLAGS = $(systemd_CFLAGS)
879
880
881
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
882
	src/test-job-type.c
883

884
test_job_type_CFLAGS = $(systemd_CFLAGS)
885
886
test_job_type_LDADD = $(systemd_LDADD)

887
test_ns_SOURCES = \
888
	src/test-ns.c
889

890
test_ns_CFLAGS = $(systemd_CFLAGS)
891
892
test_ns_LDADD = $(systemd_LDADD)

893
test_loopback_SOURCES = \
894
895
	src/test-loopback.c \
	src/loopback-setup.c
896

897
898
899
test_loopback_LDADD = \
	libsystemd-basic.la

900
901
902
903
904
905
906
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

907
test_daemon_SOURCES = \
908
	src/test-daemon.c
909

910
test_daemon_LDADD = \
911
912
	libsystemd-basic.la \
	libsystemd-daemon.la
913

914
915
916
917
918
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
919
	$(AM_CFLAGS)
920
921

test_cgroup_LDADD = \
922
	libsystemd-basic.la
923

924
925
926
927
928
929
930
931
932
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

933
test_strv_SOURCES = \
934
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
935
	src/specifier.c
936
937
938
939
940
941
942

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

943
944
945
946
947
948
949
950
951
952
test_login_SOURCES = \
	src/test-login.c

test_login_CFLAGS = \
	$(AM_CFLAGS)

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

953
954
955
956
957
958
959
960
961
962
963
964
965
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

966
967
systemd_stdout_syslog_bridge_SOURCES = \
	src/stdout-syslog-bridge.c \
968
969
	src/tcpwrap.c

970
systemd_stdout_syslog_bridge_LDADD = \
971
	libsystemd-basic.la \
972
	libsystemd-daemon.la \
973
	$(LIBWRAP_LIBS)
974