Makefile.am 38.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
# Dirs of external packages
21
22
23
24
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
25
udevrulesdir=@udevrulesdir@
26
27
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
28
polkitpolicydir=$(datadir)/polkit-1/actions
29
bashcompletiondir=$(sysconfdir)/bash_completion.d
30

31
# Our own, non-special dirs
32
pkgsysconfdir=$(sysconfdir)/systemd
33
userunitdir=$(prefix)/lib/systemd/user
34
tmpfilesdir=$(sysconfdir)/tmpfiles.d
35
usergeneratordir=$(pkglibexecdir)/user-generators
36
37
38
39
40

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
41
42
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
43
systemunitdir=$(rootdir)/lib/systemd/system
44

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

69
70
71
72
73
74
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
75
76
77
78
79
80
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
81
82
83
84
85
86
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
87
88
89
90
91
92
if TARGET_MANDRIVA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
93
94
95
96
97
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
endif
98
endif
99
endif
100
endif
101

102
rootbin_PROGRAMS = \
103
	systemd \
104
	systemctl \
105
	systemd-notify \
106
	systemd-ask-password \
107
	systemd-tty-ask-password-agent \
108
	systemd-tmpfiles \
109
	systemd-machine-id-setup
110

111
bin_PROGRAMS = \
112
	systemd-cgls \
113
	systemd-stdio-bridge \
114
	systemd-nspawn
115

116
dist_bin_SCRIPTS = \
117
	src/systemd-analyze
118

119
120
if HAVE_GTK
bin_PROGRAMS += \
121
	systemadm \
122
	systemd-gnome-ask-password-agent
123
endif
124

125
rootlibexec_PROGRAMS = \
126
	systemd-logger \
127
	systemd-cgroups-agent \
128
	systemd-initctl \
129
	systemd-update-utmp \
130
	systemd-random-seed \
131
	systemd-shutdownd \
132
	systemd-shutdown \
133
	systemd-modules-load \
134
	systemd-remount-api-vfs \
135
	systemd-kmsg-syslogd \
136
	systemd-vconsole-setup \
137
138
	systemd-reply-password \
	systemd-readahead-collect \
139
	systemd-readahead-replay \
140
141
	systemd-user-sessions \
	systemd-fsck \
142
	systemd-quotacheck \
143
	systemd-timestamp \
144
	systemd-ac-power \
145
	systemd-detect-virt \
146
	systemd-sysctl \
147
	systemd-binfmt
148

149
systemgenerator_PROGRAMS = \
150
	systemd-getty-generator
151

152
153
154
155
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

156
systemgenerator_PROGRAMS += \
157
	systemd-cryptsetup-generator
158
endif
159

160
161
noinst_PROGRAMS = \
	test-engine \
162
	test-job-type \
163
	test-ns \
164
	test-loopback \
165
	test-hostname \
166
	test-daemon \
167
	test-cgroup \
168
169
	test-env-replace \
	test-strv
170
171
172
173
174

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
175

176
177
178
dist_pkgsysconf_DATA = \
	src/system.conf

179
dist_dbuspolicy_DATA = \
180
	src/org.freedesktop.systemd1.conf
181

182
183
184
dist_dbussystemservice_DATA = \
	src/org.freedesktop.systemd1.service

185
dist_udevrules_DATA = \
186
	src/99-systemd.rules
187

188
dbusinterface_DATA = \
189
190
191
192
193
	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 \
194
	org.freedesktop.systemd1.Timer.xml \
195
196
197
198
199
	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 \
200
201
	org.freedesktop.systemd1.Swap.xml \
	org.freedesktop.systemd1.Path.xml
202

203
dist_bashcompletion_DATA = \
204
	src/systemctl-bash-completion.sh
205

206
207
208
209
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

210
211
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
212
	tmpfiles.d/legacy.conf
213
214
endif

215
dist_systemunit_DATA = \
216
217
	units/graphical.target \
	units/multi-user.target \
218
	units/emergency.service \
219
	units/emergency.target \
220
	units/sysinit.target \
221
	units/basic.target \
222
223
	units/getty.target \
	units/halt.target \
224
	units/kexec.target \
225
	units/local-fs.target \
226
	units/cryptsetup.target \
227
228
	units/network.target \
	units/nss-lookup.target \
229
	units/mail-transfer-agent.target \
230
	units/http-daemon.target \
231
232
233
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
234
	units/rpcbind.target \
235
	units/time-sync.target \
236
	units/shutdown.target \
237
	units/final.target \
238
	units/umount.target \
239
240
241
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
242
	units/systemd-initctl.socket \
243
	units/systemd-logger.socket \
244
	units/systemd-shutdownd.socket \
245
	units/syslog.socket \
246
247
248
249
250
251
252
253
	units/dev-hugepages.automount \
	units/dev-hugepages.mount \
	units/dev-mqueue.automount \
	units/dev-mqueue.mount \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount \
	units/sys-kernel-debug.automount \
	units/sys-kernel-debug.mount \
254
255
	units/sys-kernel-security.automount \
	units/sys-kernel-security.mount \
256
	units/var-run.mount \
257
	units/media.mount \
258
	units/hwclock-load.service \
259
	units/hwclock-save.service \
260
	units/remount-rootfs.service \
261
	units/printer.target \
262
	units/sound.target \
263
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
264
	units/smartcard.target \
265
	units/systemd-readahead-done.timer \
266
	units/systemd-tmpfiles-clean.timer \
267
	units/quotaon.service \
268
	units/systemd-ask-password-wall.path \
269
270
	units/systemd-ask-password-console.path \
	units/syslog.target
271

272
273
274
275
276
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

277
nodist_systemunit_DATA = \
278
	units/getty@.service \
279
	units/serial-getty@.service \
280
	units/console-shell.service \
281
	units/remote-fs.target \
282
	units/systemd-initctl.service \
283
	units/systemd-logger.service \
284
	units/systemd-shutdownd.service \
285
	units/systemd-kmsg-syslogd.service \
286
	units/systemd-modules-load.service \
287
	units/systemd-vconsole-setup.service \
288
	units/systemd-remount-api-vfs.service \
289
290
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
291
292
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
293
294
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
295
	units/systemd-readahead-done.service \
296
297
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
298
	units/systemd-user-sessions.service \
299
	units/systemd-ask-password-wall.service \
300
	units/systemd-ask-password-console.service \
301
	units/systemd-sysctl.service \
302
	units/systemd-binfmt.service \
303
304
305
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
306
307
	units/kexec.service \
	units/fsck@.service \
308
	units/fsck-root.service \
309
310
	units/quotacheck.service \
	units/rescue.service
311

312
313
314
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
315

316
317
318
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
319

320
EXTRA_DIST = \
321
	units/getty@.service.m4 \
322
	units/serial-getty@.service.m4 \
323
	units/console-shell.service.m4 \
324
	units/remote-fs.target.m4 \
325
	units/rescue.service.m4 \
326
327
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
328
	units/systemd-shutdownd.service.in \
329
	units/systemd-kmsg-syslogd.service.in \
330
	units/systemd-modules-load.service.in \
331
	units/systemd-vconsole-setup.service.in \
332
	units/systemd-remount-api-vfs.service.in \
333
334
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
335
336
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
337
338
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
339
	units/systemd-readahead-done.service.in \
340
341
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
342
	units/systemd-user-sessions.service.in \
343
	units/systemd-ask-password-wall.service.in \
344
	units/systemd-ask-password-console.service.in \
345
	units/systemd-sysctl.service.in \
346
	units/systemd-binfmt.service.in \
347
348
349
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
350
	units/kexec.service.in \
351
	units/user/exit.service.in \
352
353
	units/fsck@.service.in \
	units/fsck-root.service.in \
354
	units/quotacheck.service.in \
355
	systemd.pc.in \
356
	introspect.awk \
357
	src/org.freedesktop.systemd1.policy.in
358

359
360
361
362
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
363
364
365
	units/fedora/halt-local.service
endif

366
367
368
369
370
371
372
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

373
374
375
376
377
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

378
379
380
381
382
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
383
	units/plymouth-quit-wait.service \
384
385
386
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
387
388
389
390
391
392
393
394
	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
395
396
endif

397
398
dist_doc_DATA = \
	README \
399
400
	LICENSE \
	DISTRO_PORTING \
401
	src/sd-daemon.h \
402
403
404
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
405

406
407
408
pkgconfigdata_DATA = \
	systemd.pc

409
polkitpolicy_DATA = \
410
411
	src/org.freedesktop.systemd1.policy

412
413
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
414
415
	libsystemd-core.la \
	libsystemd-daemon.la
416
417

libsystemd_basic_la_SOURCES = \
418
	src/util.c \
419
	src/label.c \
420
421
422
423
424
425
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
426
427
	src/ratelimit.c \
	src/exit-status.c
428

429
430
431
432
433
434
435
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

436
libsystemd_core_la_SOURCES = \
437
	src/unit.c \
438
439
	src/job.c \
	src/manager.c \
440
	src/path-lookup.c \
441
442
443
444
445
446
447
448
449
450
	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 \
451
	src/path.c \
452
453
	src/load-dropin.c \
	src/execute.c \
454
	src/utmp-wtmp.c \
455
456
457
458
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
459
460
	src/dbus-service.c \
	src/dbus-socket.c \
461
	src/dbus-timer.c \
462
463
464
465
466
467
468
	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 \
469
	src/dbus-path.c \
470
471
472
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
473
	src/selinux-setup.c \
474
	src/loopback-setup.c \
475
	src/kmod-setup.c \
476
	src/locale-setup.c \
477
	src/machine-id-setup.c \
478
479
480
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
481
	src/namespace.c \
482
	src/tcpwrap.c \
483
	src/cgroup-util.c \
484
485
	src/condition.c \
        src/dbus-common.c
486

487
488
489
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
490
491
492
493
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
494
495
496
497
498
499

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
500
	$(PAM_LIBS) \
501
	$(AUDIT_LIBS)
502

503
504
505
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

506
507
508
509
# 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.

510
EXTRA_DIST += \
511
512
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
513
	${libsystemd_daemon_la_SOURCES:.c=.h} \
514
	src/macro.h \
515
	src/def.h \
516
517
518
519
520
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
521
	src/linux/fanotify.h \
522
	src/initreq.h \
523
	src/sd-readahead.h \
524
	src/special.h \
525
	src/dbus-common.h \
526
	src/bus-errors.h \
527
	src/cgroup-show.h \
528
	src/build.h \
529
	src/shutdownd.h \
530
	src/umount.h \
531
532
	src/readahead-common.h \
	src/ask-password-api.h
533
534

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
535
	man/systemd.1 \
536
537
	man/systemctl.1 \
	man/systemadm.1 \
538
	man/systemd-cgls.1 \
539
	man/systemd-nspawn.1 \
540
	man/systemd-tmpfiles.8 \
541
	man/systemd-notify.1 \
542
	man/sd_notify.3 \
543
	man/sd_readahead.3 \
544
545
546
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
547
548
	man/systemd.unit.5 \
	man/systemd.service.5 \
549
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
550
	man/systemd.mount.5 \
551
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
552
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
553
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
554
	man/systemd.path.5 \
555
	man/systemd.target.5 \
556
	man/systemd.device.5 \
557
	man/systemd.snapshot.5 \
558
	man/systemd.exec.5 \
559
	man/daemon.7 \
560
	man/sd-daemon.7 \
561
	man/sd-readahead.7 \
562
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
563
564
565
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
566
	man/pam_systemd.8 \
567
	man/systemd.conf.5 \
568
	man/tmpfiles.d.5 \
569
	man/hostname.5 \
570
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
571
	man/vconsole.conf.5 \
572
	man/locale.conf.5 \
573
	man/os-release.5 \
574
	man/modules-load.d.5 \
575
	man/binfmt.d.5 \
576
577
	man/sysctl.d.5 \
        man/systemd-ask-password.1
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598

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)
599
600

nodist_man_MANS = \
601
	man/systemd.special.7
602

603
604
605
606
607
608
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)}}}}}

609
dist_noinst_DATA = \
610
	${XML_FILES:.xml=.html}
611

612
nodist_noinst_DATA = \
613
	${XML_IN_FILES:.xml.in=.html}
614
615

EXTRA_DIST += \
616
617
618
619
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
620

621
systemd_SOURCES = \
622
	src/main.c
623

624
625
systemd_CFLAGS = \
	$(AM_CFLAGS) \
626
	$(DBUS_CFLAGS) \
627
	$(UDEV_CFLAGS)
628
629

systemd_LDADD = \
630
	libsystemd-core.la
631
632

test_engine_SOURCES = \
633
	src/test-engine.c
634

635
test_engine_CFLAGS = $(systemd_CFLAGS)
636
637
638
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
639
	src/test-job-type.c
640

641
test_job_type_CFLAGS = $(systemd_CFLAGS)
642
643
test_job_type_LDADD = $(systemd_LDADD)

644
test_ns_SOURCES = \
645
	src/test-ns.c
646

647
test_ns_CFLAGS = $(systemd_CFLAGS)
648
649
test_ns_LDADD = $(systemd_LDADD)

650
test_loopback_SOURCES = \
651
652
	src/test-loopback.c \
	src/loopback-setup.c
653

654
655
656
test_loopback_LDADD = \
	libsystemd-basic.la

657
658
659
660
661
662
663
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

664
test_daemon_SOURCES = \
665
	src/test-daemon.c
666

667
test_daemon_LDADD = \
668
669
	libsystemd-basic.la \
	libsystemd-daemon.la
670

671
672
673
674
675
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
676
	$(AM_CFLAGS)
677
678

test_cgroup_LDADD = \
679
	libsystemd-basic.la
680

681
682
683
684
685
686
687
688
689
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

690
test_strv_SOURCES = \
691
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
692
	src/specifier.c
693
694
695
696
697
698
699

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

700
systemd_logger_SOURCES = \
701
	src/logger.c \
702
703
704
	src/tcpwrap.c

systemd_logger_LDADD = \
705
	libsystemd-basic.la \
706
	libsystemd-daemon.la \
707
	$(LIBWRAP_LIBS)
708

709
systemd_initctl_SOURCES = \
710
	src/initctl.c \
711
	src/dbus-common.c
712

713
714
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
715
716
717
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
718
	libsystemd-basic.la \
719
	libsystemd-daemon.la \
720
721
	$(DBUS_LIBS)

722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
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)

737
738
739
740
741
742
743
744
745
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

746
systemd_shutdownd_SOURCES = \
747
	src/utmp-wtmp.c \
748
749
750
751
752
753
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
754
755
	libsystemd-basic.la \
	libsystemd-daemon.la
756

757
758
759
760
761
762
763
764
765
766
767
768
769
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)

770
771
772
773
774
775
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

776
systemd_modules_load_LDADD = \
777
778
	libsystemd-basic.la

779
780
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
781

782
systemd_tmpfiles_CFLAGS = \
783
784
	$(AM_CFLAGS)

785
786
787
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la

788
789
790
791
792
793
794
795
796
797
systemd_machine_id_setup_SOURCES = \
	src/machine-id-setup.c \
	src/machine-id-main.c

systemd_machine_id_setup_CFLAGS = \
	$(AM_CFLAGS)

systemd_machine_id_setup_LDADD = \
	libsystemd-basic.la

798
799
800
801
802
803
804
805
806
systemd_sysctl_SOURCES = \
	src/sysctl.c

systemd_sysctl_CFLAGS = \
	$(AM_CFLAGS)

systemd_sysctl_LDADD = \
	libsystemd-basic.la

807
808
809
810
811
812
813
814
815
systemd_binfmt_SOURCES = \
	src/binfmt.c

systemd_binfmt_CFLAGS = \
	$(AM_CFLAGS)

systemd_binfmt_LDADD = \
	libsystemd-basic.la

816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
systemd_fsck_SOURCES = \
	src/fsck.c \
	src/dbus-common.c

systemd_fsck_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS) \
	$(DBUS_CFLAGS)

systemd_fsck_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS) \
	$(DBUS_LIBS)

systemd_quotacheck_SOURCES = \
	src/quotacheck.c

systemd_quotacheck_CFLAGS = \
	$(AM_CFLAGS)

systemd_quotacheck_LDADD = \
837
838
	libsystemd-basic.la

839
840
841
842
843
844
845
846
847
systemd_timestamp_SOURCES = \
	src/timestamp.c

systemd_timestamp_CFLAGS = \
	$(AM_CFLAGS)

systemd_timestamp_LDADD = \
	libsystemd-basic.la

848
849
850
851
852
853
854
855
856
857
858
systemd_ac_power_SOURCES = \
	src/ac-power.c

systemd_ac_power_CFLAGS = \
	$(AM_CFLAGS) \
	$(UDEV_CFLAGS)

systemd_ac_power_LDADD = \
	libsystemd-basic.la \
	$(UDEV_LIBS)

859
860
861
862
863
864
865
866
867
systemd_detect_virt_SOURCES = \
	src/detect-virt.c

systemd_detect_virt_CFLAGS = \
	$(AM_CFLAGS)

systemd_detect_virt_LDADD = \
	libsystemd-basic.la

868
systemd_cryptsetup_SOURCES = \
869
870
	src/cryptsetup.c \
	src/ask-password-api.c
871
872

systemd_cryptsetup_CFLAGS = \
873
	$(LIBCRYPTSETUP_CFLAGS) \
874
	$(UDEV_CFLAGS) \
875
876
877
	$(AM_CFLAGS)

systemd_cryptsetup_LDADD = \
878
	$(LIBCRYPTSETUP_LIBS) \
879
	$(UDEV_LIBS) \
880
881
882
883
884
885
886
887
888
889
890
891
	libsystemd-basic.la

systemd_cryptsetup_generator_SOURCES = \
	src/cryptsetup-generator.c \
	src/unit-name.c

systemd_cryptsetup_generator_CFLAGS = \
	$(AM_CFLAGS)

systemd_cryptsetup_generator_LDADD = \
	libsystemd-basic.la

892
893
894
895
896
897
898
899
900
901
systemd_getty_generator_SOURCES = \
	src/getty-generator.c \
	src/unit-name.c

systemd_getty_generator_CFLAGS = \
	$(AM_CFLAGS)

systemd_getty_generator_LDADD = \
	libsystemd-basic.la

902
903
904
905
906
907
908
systemd_user_sessions_SOURCES = \
	src/user-sessions.c \
	src/cgroup-util.c

systemd_user_sessions_CFLAGS = \
	$(AM_CFLAGS)

909
systemd_user_sessions_LDADD = \
910
911
	libsystemd-basic.la

912
913
914
915
916
917
918
919
920
systemd_vconsole_setup_SOURCES = \
	src/vconsole-setup.c

systemd_vconsole_setup_CFLAGS = \
	$(AM_CFLAGS)

systemd_vconsole_setup_LDADD = \
	libsystemd-basic.la

921
922
systemd_remount_api_vfs_SOURCES = \
	src/remount-api-vfs.c \
923
924
	src/mount-setup.c \
	src/exit-status.c
925
926
927
928
929
930
931

systemd_remount_api_vfs_CFLAGS = \
	$(AM_CFLAGS)

systemd_remount_api_vfs_LDADD = \
	libsystemd-basic.la

932
systemd_cgroups_agent_SOURCES = \
933
934
	src/cgroups-agent.c \
	src/dbus-common.c
935

936
937
systemd_cgroups_agent_CFLAGS = \
	$(AM_CFLAGS) \
938
939
940
	$(DBUS_CFLAGS)

systemd_cgroups_agent_LDADD = \
941
	libsystemd-basic.la \
942
943
	$(DBUS_LIBS)

944
945
946
947
948
949
950
951
systemd_kmsg_syslogd_SOURCES = \
	src/kmsg-syslogd.c \
	src/fdset.c

systemd_kmsg_syslogd_CFLAGS = \
	$(AM_CFLAGS)

systemd_kmsg_syslogd_LDADD = \
952
953
	libsystemd-basic.la \
	libsystemd-daemon.la
954

955
956
systemctl_SOURCES = \
	src/systemctl.c \
957
	src/utmp-wtmp.c \
958
	src/dbus-common.c \
959
	src/path-lookup.c \
960
	src/cgroup-show.c \
961
	src/cgroup-util.c \
962
963
	src/exit-status.c \
	src/unit-name.c
964
965
966

systemctl_CFLAGS = \
	$(AM_CFLAGS) \
967
	$(DBUS_CFLAGS)
968

969
970
systemctl_LDADD = \
	libsystemd-basic.la \
971
	libsystemd-daemon.la \
972
	$(DBUS_LIBS)
973

974
975
systemd_notify_SOURCES = \
	src/notify.c \
976
	src/sd-readahead.c
977
978

systemd_notify_LDADD = \
979
980
	libsystemd-basic.la \
	libsystemd-daemon.la
981

982
systemd_ask_password_SOURCES = \
983
984
	src/ask-password.c \
	src/ask-password-api.c
985
986
987
988
989
990
991
992
993
994

systemd_ask_password_LDADD = \
	libsystemd-basic.la

systemd_reply_password_SOURCES = \
	src/reply-password.c

systemd_reply_password_LDADD = \
	libsystemd-basic.la

995
996
997
998
999
1000
1001
1002
1003
systemd_readahead_collect_SOURCES = \
	src/readahead-collect.c \
	src/readahead-common.c

systemd_readahead_collect_CFLAGS = \
	$(UDEV_CFLAGS)

systemd_readahead_collect_LDADD = \
	libsystemd-basic.la \
1004
	libsystemd-daemon.la \
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
	$(UDEV_LIBS)

systemd_readahead_replay_SOURCES = \
	src/readahead-replay.c \
	src/readahead-common.c

systemd_readahead_replay_CFLAGS = \
	$(UDEV_CFLAGS)

systemd_readahead_replay_LDADD = \
	libsystemd-basic.la \
1016
	libsystemd-daemon.la \
1017
1018
	$(UDEV_LIBS)