Makefile.am 79.1 KB
Newer Older
1
2
#  This file is part of systemd.
#
Kay Sievers's avatar
Kay Sievers committed
3
4
#  Copyright 2010-2012 Lennart Poettering
#  Copyright 2010-2012 Kay Sievers
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
#  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/>.

Kay Sievers's avatar
Kay Sievers committed
19
20
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
21

Kay Sievers's avatar
Kay Sievers committed
22
23
24
25
26
27
28
29
30
SUBDIRS = . po

LIBUDEV_CURRENT=13
LIBUDEV_REVISION=2
LIBUDEV_AGE=13

LIBGUDEV_CURRENT=1
LIBGUDEV_REVISION=1
LIBGUDEV_AGE=1
31

32
LIBSYSTEMD_LOGIN_CURRENT=2
33
LIBSYSTEMD_LOGIN_REVISION=1
34
LIBSYSTEMD_LOGIN_AGE=2
35

36
LIBSYSTEMD_DAEMON_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
37
LIBSYSTEMD_DAEMON_REVISION=1
38
39
LIBSYSTEMD_DAEMON_AGE=0

40
LIBSYSTEMD_ID128_CURRENT=0
41
LIBSYSTEMD_ID128_REVISION=3
42
43
44
LIBSYSTEMD_ID128_AGE=0

LIBSYSTEMD_JOURNAL_CURRENT=0
45
LIBSYSTEMD_JOURNAL_REVISION=3
46
47
LIBSYSTEMD_JOURNAL_AGE=0

48
# Dirs of external packages
49
50
51
52
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
53
54
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
55
pkgconfiglibdir=$(libdir)/pkgconfig
56
polkitpolicydir=$(datadir)/polkit-1/actions
57
bashcompletiondir=$(sysconfdir)/bash_completion.d
58

59
# Our own, non-special dirs
60
pkgsysconfdir=$(sysconfdir)/systemd
61
userunitdir=$(prefix)/lib/systemd/user
62
tmpfilesdir=$(prefix)/lib/tmpfiles.d
63
sysctldir=$(prefix)/lib/sysctl.d
64
usergeneratordir=$(pkglibexecdir)/user-generators
65
pkgincludedir=$(includedir)/systemd
Kay Sievers's avatar
Kay Sievers committed
66
udevlibexecdir=$(rootprefix)/lib/udev
67
68

# And these are the special ones for /
69
70
71
rootprefix=@rootprefix@
rootbindir=$(rootprefix)/bin
rootlibexecdir=$(rootprefix)/lib/systemd
72
73
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
74
systemunitdir=$(rootprefix)/lib/systemd/system
75

76
77
CLEANFILES =
EXTRA_DIST =
Kay Sievers's avatar
Kay Sievers committed
78
BUILT_SOURCES =
79
80
81
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
Kay Sievers's avatar
Kay Sievers committed
82
83
DISTCHECK_HOOKS =
DISTCLEAN_LOCAL_HOOKS =
84
pkginclude_HEADERS =
85
lib_LTLIBRARIES =
Kay Sievers's avatar
Kay Sievers committed
86
include_HEADERS =
87
pkgconfiglib_DATA =
88
polkitpolicy_in_files =
89
dist_udevrules_DATA =
Kay Sievers's avatar
Kay Sievers committed
90
91
92
93
94
95
nodist_udevrules_DATA =
udevhomedir = $(libexecdir)/udev
udevhome_SCRIPTS =
dist_udevhome_SCRIPTS =
dist_udevhome_DATA =
dist_man_MANS =
96

97
AM_CPPFLAGS = \
98
	-include $(top_builddir)/config.h \
Kay Sievers's avatar
Kay Sievers committed
99
	-DSYSCONFDIR=\""$(sysconfdir)"\" \
100
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
101
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
102
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
103
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
104
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
105
106
107
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
108
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
109
	-DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
110
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
111
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
112
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
113
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
114
	-DROOTPREFIX=\"$(rootprefix)\" \
115
	-DRUNTIME_DIR=\"/run\" \
116
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
117
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
118
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
119
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
120
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
121
	-DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
Kay Sievers's avatar
Kay Sievers committed
122
123
	-DX_SERVER=\"$(bindir)/X\" \
	-DUDEVLIBEXECDIR=\""$(libexecdir)/udev"\" \
124
125
	-I $(top_srcdir)/src \
	-I $(top_srcdir)/src/readahead \
126
	-I $(top_srcdir)/src/login \
127
	-I $(top_srcdir)/src/journal \
Kay Sievers's avatar
Kay Sievers committed
128
129
	-I $(top_srcdir)/src/systemd \
	-I $(top_srcdir)/src/udev
130

131
AM_CFLAGS = $(WARNINGFLAGS)
132
AM_LDFLAGS = $(GCLDFLAGS)
133

134
135
136
137
138
139
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
140
141
142
143
144
145
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
146
147
148
149
150
151
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
152
153
154
155
156
157
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
158
159
160
161
162
163
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
164
165
166
167
168
169
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
170
if TARGET_MAGEIA
171
172
173
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
174
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
Dexter Morgan's avatar
Dexter Morgan committed
175
176
177
178
else
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
179
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
180
endif
181
endif
182
endif
183
endif
184
endif
Chris E Ferron's avatar
Chris E Ferron committed
185
endif
Koen Kooi's avatar
Koen Kooi committed
186
endif
187

188
rootbin_PROGRAMS = \
189
	systemctl \
190
	systemd-notify \
191
	systemd-ask-password \
192
	systemd-tty-ask-password-agent \
193
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
194
	systemd-machine-id-setup
195

196
bin_PROGRAMS = \
197
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
198
	systemd-cgtop \
199
	systemd-stdio-bridge \
200
	systemd-nspawn
201

202
dist_bin_SCRIPTS = \
203
	src/systemd-analyze
204

205
rootlibexec_PROGRAMS = \
206
	systemd \
207
	systemd-cgroups-agent \
208
	systemd-initctl \
209
	systemd-update-utmp \
210
	systemd-shutdownd \
211
	systemd-shutdown \
212
	systemd-modules-load \
213
	systemd-remount-api-vfs \
214
	systemd-reply-password \
215
	systemd-fsck \
216
	systemd-timestamp \
217
	systemd-ac-power \
218
	systemd-detect-virt \
Kay Sievers's avatar
Kay Sievers committed
219
	systemd-sysctl
220

221
systemgenerator_PROGRAMS = \
222
	systemd-getty-generator
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
	test-install
235

236
dist_pkgsysconf_DATA = \
237
	src/system.conf \
238
	src/user.conf
239

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

243
dist_dbussystemservice_DATA = \
244
	src/org.freedesktop.systemd1.service
245
246

dbusinterface_DATA = \
247
248
249
250
251
	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 \
252
	org.freedesktop.systemd1.Timer.xml \
253
254
255
256
257
	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 \
258
	org.freedesktop.systemd1.Swap.xml \
259
	org.freedesktop.systemd1.Path.xml
260

261
dist_bashcompletion_DATA = \
262
	src/systemd-bash-completion.sh
263

264
265
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
266
	tmpfiles.d/tmp.conf \
267
268
	tmpfiles.d/x11.conf

269
270
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
271
	tmpfiles.d/legacy.conf
272
273
endif

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

325
nodist_systemunit_DATA = \
326
	units/getty@.service \
327
	units/serial-getty@.service \
328
	units/console-shell.service \
329
	units/systemd-initctl.service \
330
	units/systemd-shutdownd.service \
331
	units/systemd-modules-load.service \
332
	units/systemd-remount-api-vfs.service \
333
334
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
335
336
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
337
	units/systemd-ask-password-wall.service \
338
	units/systemd-ask-password-console.service \
339
	units/systemd-sysctl.service \
340
	units/halt.service \
341
	units/emergency.service \
342
343
	units/poweroff.service \
	units/reboot.service \
344
345
	units/kexec.service \
	units/fsck@.service \
346
	units/fsck-root.service \
347
	units/rescue.service \
Kay Sievers's avatar
Kay Sievers committed
348
349
350
351
	units/user@.service \
	units/udev.service \
	units/udev-trigger.service \
	units/udev-settle.service
352

353
354
355
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
356

357
358
nodist_userunit_DATA = \
	units/user/exit.service
359

360
EXTRA_DIST += \
361
	units/getty@.service.m4 \
362
	units/serial-getty@.service.m4 \
363
364
	units/console-shell.service.m4.in \
	units/rescue.service.m4.in \
365
	units/systemd-initctl.service.in \
366
	units/systemd-shutdownd.service.in \
367
	units/systemd-modules-load.service.in \
368
	units/systemd-remount-api-vfs.service.in \
369
370
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
371
372
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
373
	units/systemd-ask-password-wall.service.in \
374
	units/systemd-ask-password-console.service.in \
375
	units/systemd-sysctl.service.in \
376
	units/emergency.service.in \
377
378
379
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
380
	units/kexec.service.in \
381
	units/user/exit.service.in \
382
383
	units/fsck@.service.in \
	units/fsck-root.service.in \
Kay Sievers's avatar
Kay Sievers committed
384
	units/user@.service.in \
Kay Sievers's avatar
Kay Sievers committed
385
386
387
	units/udev.service \
	units/udev-trigger.service \
	units/udev-settle.service \
388
	src/systemd.pc.in \
389
	introspect.awk \
390
	man/custom-html.xsl
391

392
393
394
395
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
396
	units/fedora/halt-local.service
397
398
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
399
400
endif

401
402
403
404
405
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
406
407
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
408
409
endif

410
411
412
413
414
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

415
416
417
418
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
419
420
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
421
422
endif

Dexter Morgan's avatar
Dexter Morgan committed
423
424
425
426
427
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
428
429
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
430
431
endif

432
433
434
435
436
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
437
	units/plymouth-quit-wait.service \
438
439
440
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
441
442
443
444
445
446
447
448
	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
449
450
endif

451
452
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
453
	NEWS \
454
	LICENSE \
455
	DISTRO_PORTING
456

457
pkgconfigdata_DATA = \
458
	src/systemd.pc
459

460
461
462
463
464
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
465
466
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
467
468

EXTRA_DIST += \
469
470
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
471

472
@INTLTOOL_POLICY_RULE@
473

474
475
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
476
	libsystemd-core.la
477
478

libsystemd_basic_la_SOURCES = \
479
	src/util.c \
480
	src/virt.c \
481
	src/label.c \
482
483
484
485
486
487
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
488
	src/ratelimit.c \
489
490
	src/exit-status.c \
        src/utf8.c
491

492
493
494
495
496
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
497
498
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
499

500
libsystemd_core_la_SOURCES = \
501
	src/unit.c \
502
503
	src/job.c \
	src/manager.c \
504
	src/path-lookup.c \
505
506
507
508
509
510
511
512
513
514
	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 \
515
	src/path.c \
516
517
	src/load-dropin.c \
	src/execute.c \
518
	src/utmp-wtmp.c \
519
520
521
522
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
523
524
	src/dbus-service.c \
	src/dbus-socket.c \
525
	src/dbus-timer.c \
526
527
528
529
530
531
532
	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 \
533
	src/dbus-path.c \
534
535
536
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
537
	src/selinux-setup.c \
538
	src/ima-setup.c \
539
	src/loopback-setup.c \
540
	src/kmod-setup.c \
541
	src/locale-setup.c \
542
	src/machine-id-setup.c \
543
544
545
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
546
	src/namespace.c \
547
	src/tcpwrap.c \
548
	src/cgroup-util.c \
549
	src/condition.c \
550
551
552
553
554
	src/dbus-common.c \
	src/sd-daemon.c \
	src/install.c \
	src/cgroup-attr.c \
	src/sd-id128.c
555

556
nodist_libsystemd_core_la_SOURCES = \
557
558
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
559

560
EXTRA_DIST += \
561
	src/load-fragment-gperf.gperf.m4
562

563
564
565
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
566
567
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
568
569
	$(AUDIT_CFLAGS) \
	$(KMOD_CFLAGS)
570
571
572

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
Kay Sievers's avatar
Kay Sievers committed
573
	libudev.la \
574
575
	$(DBUS_LIBS) \
	$(LIBWRAP_LIBS) \
576
	$(PAM_LIBS) \
577
	$(AUDIT_LIBS) \
578
579
	$(CAP_LIBS) \
	$(KMOD_LIBS)
580

581
# This is needed because automake is buggy in how it generates the
582
# rules for C programs, but not Vala programs.	We therefore can't
583
584
# list the .h files as dependencies if we want make dist to work.

585
EXTRA_DIST += \
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
	src/util.h \
	src/virt.h \
	src/label.h \
	src/hashmap.h \
	src/set.h \
	src/strv.h \
	src/conf-parser.h \
	src/socket-util.h \
	src/log.h \
	src/ratelimit.h \
	src/exit-status.h \
	src/unit.h \
	src/job.h \
	src/manager.h \
	src/path-lookup.h \
	src/load-fragment.h \
	src/service.h \
	src/automount.h \
	src/mount.h \
	src/swap.h \
	src/device.h \
	src/target.h \
	src/snapshot.h \
	src/socket.h \
	src/timer.h \
	src/path.h \
	src/load-dropin.h \
	src/execute.h \
	src/utmp-wtmp.h \
	src/dbus.h \
	src/dbus-manager.h \
	src/dbus-unit.h \
	src/dbus-job.h \
	src/dbus-service.h \
	src/dbus-socket.h \
	src/dbus-timer.h \
	src/dbus-target.h \
	src/dbus-mount.h \
	src/dbus-automount.h \
	src/dbus-swap.h \
	src/dbus-snapshot.h \
	src/dbus-device.h \
	src/dbus-execute.h \
	src/dbus-path.h \
	src/cgroup.h \
	src/mount-setup.h \
	src/hostname-setup.h \
	src/selinux-setup.h \
	src/loopback-setup.h \
	src/kmod-setup.h \
	src/locale-setup.h \
	src/machine-id-setup.h \
	src/specifier.h \
	src/unit-name.h \
	src/fdset.h \
	src/namespace.h \
	src/tcpwrap.h \
	src/cgroup-util.h \
	src/condition.h \
	src/dbus-common.h \
	src/install.h \
	src/cgroup-attr.h \
648
	src/macro.h \
649
	src/def.h \
650
651
652
653
654
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
655
	src/linux/fanotify.h \
656
	src/initreq.h \
657
	src/special.h \
658
	src/dbus-common.h \
659
	src/bus-errors.h \
660
	src/cgroup-show.h \
661
	src/build.h \
662
	src/shutdownd.h \
663
	src/umount.h \
664
	src/ask-password-api.h \
665
666
667
668
669
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
670
	src/acl-util.h \
671
	src/logs-show.h \
Kay Sievers's avatar
Kay Sievers committed
672
673
674
	src/utf8.h \
	src/journal/sparse-endian.h \
	src/ima-setup.h
675
676

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
677
	man/systemd.1 \
678
	man/systemctl.1 \
679
	man/systemd-cgls.1 \
680
	man/systemd-cgtop.1 \
681
	man/systemd-nspawn.1 \
682
	man/systemd-tmpfiles.8 \
683
	man/systemd-notify.1 \
684
685
	man/systemd.unit.5 \
	man/systemd.service.5 \
686
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
687
	man/systemd.mount.5 \
688
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
689
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
690
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
691
	man/systemd.path.5 \
692
	man/systemd.target.5 \
693
	man/systemd.device.5 \
694
	man/systemd.snapshot.5 \
695
	man/systemd.exec.5 \
696
	man/systemd.special.7 \
697
        man/systemd.journal-fields.7 \
698
	man/daemon.7 \
699
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
700
701
702
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
703
	man/pam_systemd.8 \
704
	man/systemd.conf.5 \
705
	man/tmpfiles.d.5 \
706
	man/hostname.5 \
707
	man/timezone.5 \
708
	man/machine-id.5 \
709
	man/locale.conf.5 \
710
	man/os-release.5 \
711
	man/machine-info.5 \
712
	man/modules-load.d.5 \
713
	man/sysctl.d.5 \
714
	man/systemd-ask-password.1 \
715
	man/systemd-cat.1 \
716
717
	man/systemd-machine-id-setup.1 \
	man/journald.conf.5 \
Kay Sievers's avatar
Kay Sievers committed
718
719
720
721
	man/journalctl.1 \
	man/udev.7 \
	man/udevadm.8 \
	man/udevd.8
722
723
724
725

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
726
	man/init.1
727
728
729
730
731

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1

732
733
734
XML_FILES = \
	${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}

735
if ENABLE_MANPAGES
736
man_MANS = \
737
738
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
739

740
noinst_DATA = \
741
	${XML_FILES:.xml=.html}
742
endif
743
744

EXTRA_DIST += \
745
746
747
748
	$(XML_FILES) \
	${XML_FILES:.xml=.html} \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
749

750
systemd_SOURCES = \
751
	src/main.c
752

753
754
systemd_CFLAGS = \
	$(AM_CFLAGS) \
Kay Sievers's avatar
Kay Sievers committed
755
	$(DBUS_CFLAGS)
756
757

systemd_LDADD = \
758
	libsystemd-core.la
759
760

test_engine_SOURCES = \
761
	src/test-engine.c
762

763
test_engine_CFLAGS = $(systemd_CFLAGS)
764
765
766
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
767
	src/test-job-type.c
768

769
test_job_type_CFLAGS = $(systemd_CFLAGS)
770
771
test_job_type_LDADD = $(systemd_LDADD)

772
test_ns_SOURCES = \
773
	src/test-ns.c
774

775
test_ns_CFLAGS = $(systemd_CFLAGS)
776
777
test_ns_LDADD = $(systemd_LDADD)

778
test_loopback_SOURCES = \
779
780
	src/test-loopback.c \
	src/loopback-setup.c
781

782
783
784
test_loopback_LDADD = \
	libsystemd-basic.la

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

test_hostname_LDADD = \
	libsystemd-basic.la

792
test_daemon_SOURCES = \
793
	src/test-daemon.c
794

795
test_daemon_LDADD = \
796
797
	libsystemd-basic.la \
	libsystemd-daemon.la
798

799
800
801
802
803
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_LDADD = \
804
	libsystemd-basic.la
805

806
807
808
809
810
811
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_LDADD = \
	libsystemd-basic.la

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

test_strv_LDADD = \
	libsystemd-basic.la

819
820
test_install_SOURCES = \
	src/test-install.c \
821
822
823
	src/install.c \
	src/path-lookup.c \
	src/unit-name.c
824
825
826

test_install_CFLAGS = \
	$(AM_CFLAGS) \
827
	$(DBUS_CFLAGS)
828
829
830
831

test_install_LDADD = \
	libsystemd-basic.la

Kay Sievers's avatar
Kay Sievers committed
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
systemd_initctl_SOURCES = \
	src/initctl.c \
	src/dbus-common.c

systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

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

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)

systemd_shutdownd_SOURCES = \
	src/utmp-wtmp.c \
	src/shutdownd.c
863

Kay Sievers's avatar
Kay Sievers committed
864
865
866
867
868
869
870
systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
	libsystemd-basic.la \
	libsystemd-daemon.la

871
872
873
874
systemd_shutdown_SOURCES = \
	src/mount-setup.c \
	src/umount.c \
	src/shutdown.c
875

876
877
systemd_shutdown_LDADD = \
	libsystemd-basic.la \
Kay Sievers's avatar
Kay Sievers committed
878
	libudev.la
879

880
881
systemd_modules_load_SOURCES = \
	src/modules-load.c
882

883
884
885
systemd_modules_load_CFLAGS = \
	$(KMOD_CFLAGS)

886
systemd_modules_load_LDADD = \
887
888
	libsystemd-basic.la \
	$(KMOD_LIBS)
889

890
891
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
892

893
894
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la
895

896
897
898
899
systemd_machine_id_setup_SOURCES = \
	src/machine-id-setup.c \
	src/machine-id-main.c \
	src/sd-id128.c
900

901
902
systemd_machine_id_setup_LDADD = \
	libsystemd-basic.la
903

904
905
systemd_sysctl_SOURCES = \
	src/sysctl.c
906

907
908
systemd_sysctl_LDADD = \
	libsystemd-basic.la
909

910
911
912
systemd_fsck_SOURCES = \
	src/fsck.c \
	src/dbus-common.c
913

914
systemd_fsck_CFLAGS = \
915
	$(AM_CFLAGS) \
916
	$(DBUS_CFLAGS)
917

918
systemd_fsck_LDADD = \
919
	libsystemd-basic.la \
Kay Sievers's avatar
Kay Sievers committed
920
	libudev.la \
921
	$(DBUS_LIBS)
922

923
924
systemd_timestamp_SOURCES = \
	src/timestamp.c
925

926
systemd_timestamp_LDADD = \
Kay Sievers's avatar
Kay Sievers committed
927
	libsystemd-basic.la
928

929
930
systemd_ac_power_SOURCES = \
	src/ac-power.c
931

Kay Sievers's avatar