Makefile.am 37.3 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=$(pkgdatadir)/user
34
tmpfilesdir=$(sysconfdir)/tmpfiles.d
35
usergeneratordir=$(pkglibexecdir)/user-generators
36
37
38
39

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

46
AM_CPPFLAGS = \
47
	-include $(top_builddir)/config.h \
48
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
49
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
50
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
51
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
52
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
53
54
55
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
56
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
57
	-DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
58
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
59
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
60
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
61
	-DRUNTIME_DIR=\"$(localstatedir)/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
109
110
	systemd-tmpfiles

rootsbin_PROGRAMS = \
111
	systemd-machine-id-setup
112

113
bin_PROGRAMS = \
114
	systemd-cgls
115
116
117

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

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

145
146
147
148
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

149
150
systemgenerator_PROGRAMS = \
	systemd-cryptsetup-generator
151
endif
152

153
154
noinst_PROGRAMS = \
	test-engine \
155
	test-job-type \
156
	test-ns \
157
	test-loopback \
158
	test-hostname \
159
	test-daemon \
160
	test-cgroup \
161
162
	test-env-replace \
	test-strv
163
164
165
166
167

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
168

169
170
171
dist_pkgsysconf_DATA = \
	src/system.conf

172
dist_dbuspolicy_DATA = \
173
	src/org.freedesktop.systemd1.conf
174

175
176
177
dist_dbussystemservice_DATA = \
	src/org.freedesktop.systemd1.service

178
dist_udevrules_DATA = \
179
	src/99-systemd.rules
180

181
dbusinterface_DATA = \
182
183
184
185
186
	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 \
187
	org.freedesktop.systemd1.Timer.xml \
188
189
190
191
192
	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 \
193
194
	org.freedesktop.systemd1.Swap.xml \
	org.freedesktop.systemd1.Path.xml
195

196
197
198
dist_bashcompletion_DATA = \
        src/systemctl-bash-completion.sh

199
200
201
202
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

203
dist_systemunit_DATA = \
204
	units/emergency.service \
205
	units/emergency.target \
206
	units/sysinit.target \
207
	units/basic.target \
208
209
	units/getty.target \
	units/halt.target \
210
	units/kexec.target \
211
	units/local-fs.target \
212
	units/cryptsetup.target \
213
214
	units/network.target \
	units/nss-lookup.target \
215
	units/mail-transfer-agent.target \
216
	units/http-daemon.target \
217
218
219
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
220
	units/rpcbind.target \
221
222
	units/rtc-set.target \
	units/shutdown.target \
223
	units/final.target \
224
	units/umount.target \
225
226
227
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
228
	units/dbus.target \
229
	units/systemd-initctl.socket \
230
	units/systemd-logger.socket \
231
	units/systemd-shutdownd.socket \
232
	units/syslog.socket \
233
234
235
236
237
238
239
240
	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 \
241
242
243
	units/sys-kernel-security.automount \
	units/sys-kernel-security.mount \
	units/var-lock.mount \
244
	units/var-run.mount \
245
	units/media.mount \
246
	units/hwclock-load.service \
247
	units/hwclock-save.service \
248
	units/remount-rootfs.service \
249
	units/printer.target \
250
	units/sound.target \
251
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
252
	units/smartcard.target \
253
	units/systemd-readahead-done.timer \
254
	units/systemd-tmpfiles-clean.timer \
255
	units/quotaon.service \
256
	units/systemd-ask-password-wall.path \
257
	units/systemd-ask-password-console.path
258

259
nodist_systemunit_DATA = \
260
	units/getty@.service \
261
	units/serial-getty@.service \
262
	units/graphical.target \
263
	units/remote-fs.target \
264
	units/multi-user.target \
265
	units/systemd-initctl.service \
266
	units/systemd-logger.service \
267
	units/systemd-shutdownd.service \
268
	units/systemd-kmsg-syslogd.service \
269
	units/systemd-modules-load.service \
270
	units/systemd-vconsole-setup.service \
271
	units/systemd-remount-api-vfs.service \
272
273
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
274
275
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
276
277
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
278
	units/systemd-readahead-done.service \
279
280
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
281
	units/systemd-user-sessions.service \
282
	units/systemd-ask-password-wall.service \
283
	units/systemd-ask-password-console.service \
284
	units/systemd-sysctl.service \
285
	units/syslog.target \
286
287
288
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
289
290
	units/kexec.service \
	units/fsck@.service \
291
	units/fsck-root.service \
292
293
	units/quotacheck.service \
	units/rescue.service
294

295
296
297
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
298

299
300
301
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
302

303
EXTRA_DIST = \
304
	units/getty@.service.m4 \
305
	units/serial-getty@.service.m4 \
306
307
	units/graphical.target.m4 \
	units/multi-user.target.m4 \
308
	units/remote-fs.target.m4 \
309
	units/rescue.service.m4 \
310
311
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
312
	units/systemd-shutdownd.service.in \
313
	units/systemd-kmsg-syslogd.service.in \
314
	units/systemd-modules-load.service.in \
315
	units/systemd-vconsole-setup.service.in \
316
	units/systemd-remount-api-vfs.service.in \
317
318
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
319
320
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
321
322
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
323
	units/systemd-readahead-done.service.in \
324
325
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
326
	units/systemd-user-sessions.service.in \
327
	units/systemd-ask-password-wall.service.in \
328
	units/systemd-ask-password-console.service.in \
329
	units/systemd-sysctl.service.in \
330
	units/syslog.target.in \
331
332
333
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
334
	units/kexec.service.in \
335
	units/user/exit.service.in \
336
337
	units/fsck@.service.in \
	units/fsck-root.service.in \
338
	units/quotacheck.service.in \
339
340
	systemd.pc.in \
	introspect.awk
341

342
343
344
345
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
346
347
348
	units/fedora/halt-local.service
endif

349
350
351
352
353
354
355
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

356
357
358
359
360
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
361
	units/plymouth-quit-wait.service \
362
363
364
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
365
366
367
368
369
370
371
372
	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
373
374
endif

375
376
dist_doc_DATA = \
	README \
377
378
	LICENSE \
	DISTRO_PORTING \
379
	src/sd-daemon.h \
380
381
382
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
383

384
385
386
pkgconfigdata_DATA = \
	systemd.pc

387
388
389
dist_polkitpolicy_DATA = \
	src/org.freedesktop.systemd1.policy

390
391
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
392
393
	libsystemd-core.la \
	libsystemd-daemon.la
394
395

libsystemd_basic_la_SOURCES = \
396
	src/util.c \
397
	src/label.c \
398
399
400
401
402
403
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
404
405
	src/ratelimit.c \
	src/exit-status.c
406

407
408
409
410
411
412
413
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

414
libsystemd_core_la_SOURCES = \
415
	src/unit.c \
416
417
	src/job.c \
	src/manager.c \
418
	src/path-lookup.c \
419
420
421
422
423
424
425
426
427
428
	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 \
429
	src/path.c \
430
431
	src/load-dropin.c \
	src/execute.c \
432
	src/utmp-wtmp.c \
433
434
435
436
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
437
438
	src/dbus-service.c \
	src/dbus-socket.c \
439
	src/dbus-timer.c \
440
441
442
443
444
445
446
	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 \
447
	src/dbus-path.c \
448
449
450
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
451
	src/selinux-setup.c \
452
	src/loopback-setup.c \
453
	src/kmod-setup.c \
454
	src/locale-setup.c \
455
	src/machine-id-setup.c \
456
457
458
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
459
	src/namespace.c \
460
	src/tcpwrap.c \
461
462
	src/cgroup-util.c \
	src/condition.c
463

464
465
466
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
467
468
469
470
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
471
472
473
474
475
476

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
477
	$(PAM_LIBS) \
478
	$(AUDIT_LIBS)
479

480
481
482
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

483
484
485
486
# 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.

487
EXTRA_DIST += \
488
489
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
490
	${libsystemd_daemon_la_SOURCES:.c=.h} \
491
492
493
494
495
496
	src/macro.h \
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
497
	src/linux/fanotify.h \
498
	src/initreq.h \
499
	src/sd-readahead.h \
500
	src/special.h \
501
	src/dbus-common.h \
502
	src/bus-errors.h \
503
	src/cgroup-show.h \
504
	src/build.h \
505
	src/shutdownd.h \
506
	src/umount.h \
507
508
	src/readahead-common.h \
	src/ask-password-api.h
509
510

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
511
	man/systemd.1 \
512
513
	man/systemctl.1 \
	man/systemadm.1 \
514
	man/systemd-cgls.1 \
515
	man/systemd-tmpfiles.8 \
516
	man/systemd-notify.1 \
517
	man/sd_notify.3 \
518
	man/sd_readahead.3 \
519
520
521
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
522
523
	man/systemd.unit.5 \
	man/systemd.service.5 \
524
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
525
	man/systemd.mount.5 \
526
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
527
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
528
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
529
	man/systemd.path.5 \
530
	man/systemd.target.5 \
531
	man/systemd.device.5 \
532
	man/systemd.snapshot.5 \
533
	man/systemd.exec.5 \
534
	man/daemon.7 \
535
	man/sd-daemon.7 \
536
	man/sd-readahead.7 \
537
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
538
539
540
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
541
	man/pam_systemd.8 \
542
	man/systemd.conf.5 \
543
	man/tmpfiles.d.5 \
544
	man/hostname.5 \
545
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
546
	man/vconsole.conf.5 \
547
	man/locale.conf.5 \
548
549
	man/os-release.5 \
	man/modules-load.d.5
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570

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)
571
572

nodist_man_MANS = \
573
	man/systemd.special.7
574

575
576
577
578
579
580
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)}}}}}

581
dist_noinst_DATA = \
582
	${XML_FILES:.xml=.html}
583

584
nodist_noinst_DATA = \
585
	${XML_IN_FILES:.xml.in=.html}
586
587

EXTRA_DIST += \
588
589
590
591
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
592

593
systemd_SOURCES = \
594
	src/main.c
595

596
597
systemd_CFLAGS = \
	$(AM_CFLAGS) \
598
	$(DBUS_CFLAGS) \
599
	$(UDEV_CFLAGS)
600
601

systemd_LDADD = \
602
	libsystemd-core.la
603
604

test_engine_SOURCES = \
605
	src/test-engine.c
606

607
test_engine_CFLAGS = $(systemd_CFLAGS)
608
609
610
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
611
	src/test-job-type.c
612

613
test_job_type_CFLAGS = $(systemd_CFLAGS)
614
615
test_job_type_LDADD = $(systemd_LDADD)

616
test_ns_SOURCES = \
617
	src/test-ns.c
618

619
test_ns_CFLAGS = $(systemd_CFLAGS)
620
621
test_ns_LDADD = $(systemd_LDADD)

622
test_loopback_SOURCES = \
623
624
	src/test-loopback.c \
	src/loopback-setup.c
625

626
627
628
test_loopback_LDADD = \
	libsystemd-basic.la

629
630
631
632
633
634
635
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

636
test_daemon_SOURCES = \
637
	src/test-daemon.c
638

639
test_daemon_LDADD = \
640
641
	libsystemd-basic.la \
	libsystemd-daemon.la
642

643
644
645
646
647
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
648
	$(AM_CFLAGS)
649
650

test_cgroup_LDADD = \
651
	libsystemd-basic.la
652

653
654
655
656
657
658
659
660
661
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

662
test_strv_SOURCES = \
663
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
664
	src/specifier.c
665
666
667
668
669
670
671

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

672
systemd_logger_SOURCES = \
673
	src/logger.c \
674
675
676
	src/tcpwrap.c

systemd_logger_LDADD = \
677
	libsystemd-basic.la \
678
	libsystemd-daemon.la \
679
	$(LIBWRAP_LIBS)
680

681
systemd_initctl_SOURCES = \
682
	src/initctl.c \
683
	src/dbus-common.c
684

685
686
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
687
688
689
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
690
	libsystemd-basic.la \
691
	libsystemd-daemon.la \
692
693
	$(DBUS_LIBS)

694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
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)

709
710
711
712
713
714
715
716
717
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

718
systemd_shutdownd_SOURCES = \
719
	src/utmp-wtmp.c \
720
721
722
723
724
725
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
726
727
	libsystemd-basic.la \
	libsystemd-daemon.la
728

729
730
731
732
733
734
735
736
737
738
739
740
741
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)

742
743
744
745
746
747
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

748
systemd_modules_load_LDADD = \
749
750
	libsystemd-basic.la

751
752
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
753

754
systemd_tmpfiles_CFLAGS = \
755
756
	$(AM_CFLAGS)

757
758
759
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la

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

770
771
772
773
774
775
776
777
778
systemd_sysctl_SOURCES = \
	src/sysctl.c

systemd_sysctl_CFLAGS = \
	$(AM_CFLAGS)

systemd_sysctl_LDADD = \
	libsystemd-basic.la

779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
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 = \
800
801
	libsystemd-basic.la

802
803
804
805
806
807
808
809
810
systemd_timestamp_SOURCES = \
	src/timestamp.c

systemd_timestamp_CFLAGS = \
	$(AM_CFLAGS)

systemd_timestamp_LDADD = \
	libsystemd-basic.la

811
812
813
814
815
816
817
818
819
820
821
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)

822
823
824
825
826
827
828
829
830
systemd_detect_virt_SOURCES = \
	src/detect-virt.c

systemd_detect_virt_CFLAGS = \
	$(AM_CFLAGS)

systemd_detect_virt_LDADD = \
	libsystemd-basic.la

831
systemd_cryptsetup_SOURCES = \
832
833
	src/cryptsetup.c \
	src/ask-password-api.c
834
835

systemd_cryptsetup_CFLAGS = \
836
	$(LIBCRYPTSETUP_CFLAGS) \
837
	$(UDEV_CFLAGS) \
838
839
840
	$(AM_CFLAGS)

systemd_cryptsetup_LDADD = \
841
	$(LIBCRYPTSETUP_LIBS) \
842
	$(UDEV_LIBS) \
843
844
845
846
847
848
849
850
851
852
853
854
	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

855
856
857
858
859
860
861
systemd_user_sessions_SOURCES = \
	src/user-sessions.c \
	src/cgroup-util.c

systemd_user_sessions_CFLAGS = \
	$(AM_CFLAGS)

862
systemd_user_sessions_LDADD = \
863
864
	libsystemd-basic.la

865
866
867
868
869
870
871
872
873
systemd_vconsole_setup_SOURCES = \
	src/vconsole-setup.c

systemd_vconsole_setup_CFLAGS = \
	$(AM_CFLAGS)

systemd_vconsole_setup_LDADD = \
	libsystemd-basic.la

874
875
systemd_remount_api_vfs_SOURCES = \
	src/remount-api-vfs.c \
876
877
	src/mount-setup.c \
	src/exit-status.c
878
879
880
881
882
883
884

systemd_remount_api_vfs_CFLAGS = \
	$(AM_CFLAGS)

systemd_remount_api_vfs_LDADD = \
	libsystemd-basic.la

885
systemd_cgroups_agent_SOURCES = \
886
887
	src/cgroups-agent.c \
	src/dbus-common.c
888

889
890
systemd_cgroups_agent_CFLAGS = \
	$(AM_CFLAGS) \
891
892
893
	$(DBUS_CFLAGS)

systemd_cgroups_agent_LDADD = \
894
	libsystemd-basic.la \
895
896
	$(DBUS_LIBS)

897
898
899
900
901
902
903
904
systemd_kmsg_syslogd_SOURCES = \
	src/kmsg-syslogd.c \
	src/fdset.c

systemd_kmsg_syslogd_CFLAGS = \
	$(AM_CFLAGS)

systemd_kmsg_syslogd_LDADD = \
905
906
	libsystemd-basic.la \
	libsystemd-daemon.la
907

908
909
systemctl_SOURCES = \
	src/systemctl.c \
910
	src/utmp-wtmp.c \
911
	src/dbus-common.c \
912
	src/path-lookup.c \
913
	src/cgroup-show.c \
914
	src/cgroup-util.c \
915
916
	src/exit-status.c \
	src/unit-name.c
917
918
919

systemctl_CFLAGS = \
	$(AM_CFLAGS) \
920
	$(DBUS_CFLAGS)
921

922
923
systemctl_LDADD = \
	libsystemd-basic.la \
924
	libsystemd-daemon.la \
925
	$(DBUS_LIBS)
926

927
928
systemd_notify_SOURCES = \
	src/notify.c \
929
	src/sd-readahead.c
930
931

systemd_notify_LDADD = \
932
933
	libsystemd-basic.la \
	libsystemd-daemon.la
934

935
systemd_ask_password_SOURCES = \
936
937
	src/ask-password.c \
	src/ask-password-api.c
938
939
940
941
942
943
944
945
946
947

systemd_ask_password_LDADD = \
	libsystemd-basic.la

systemd_reply_password_SOURCES = \
	src/reply-password.c

systemd_reply_password_LDADD = \
	libsystemd-basic.la

948
949
950
951
952
953
954
955
956
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 \
957
	libsystemd-daemon.la \
958
959
960
961
962
963
964
965
966
967
968
	$(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 \
969
	libsystemd-daemon.la \
970
971
	$(UDEV_LIBS)

972
systemd_cgls_SOURCES = \
973
	src/cgls.c \
974
975
	src/cgroup-show.c \
	src/cgroup-util.c
976
977

systemd_cgls_CFLAGS = \
978
	$(AM_CFLAGS)
979
980

systemd_cgls_LDADD = \
981
	libsystemd-basic.la
982

983
systemadm_SOURCES = \
984
985
	src/systemadm.vala \
	src/systemd-interfaces.vala
986

987
988
989
990
991
992
993
994
995
996
997
998
999
systemadm_CFLAGS = \
	$(AM_CFLAGS) \
	$(GTK_CFLAGS) \
	-Wno-unused-variable \
	-Wno-unused-function \
	-Wno-shadow \
	-Wno-format-nonliteral

systemadm_VALAFLAGS = \
	--pkg=posix \
	--pkg=gtk+-2.0 \
	-g

1000
1001
systemadm_LDADD = \
	$(GTK_LIBS)
1002

1003
1004
systemd_gnome_ask_password_agent_SOURCES = \
	src/gnome-ask-password-agent.vala
1005

1006
systemd_gnome_ask_password_agent_CFLAGS = \
1007
	$(AM_CFLAGS) \
1008
	$(LIBNOTIFY_CFLAGS) \
1009
1010
1011
1012
1013
1014
	$(GTK_CFLAGS) \
	-Wno-unused-variable \
	-Wno-unused-function \
	-Wno-shadow \
	-Wno-format-nonliteral

1015
systemd_gnome_ask_password_agent_VALAFLAGS = \
1016
1017
1018
1019
	--pkg=posix \
	--pkg=gtk+-2.0 \
	--pkg=linux \
	--pkg=gio-unix-2.0 \
1020
1021
1022
1023
1024
1025
	--pkg=libnotify
if LIBNOTIFY07
systemd_gnome_ask_password_agent_VALAFLAGS += \
	-D LIBNOTIFY07
endif
systemd_gnome_ask_password_agent_VALAFLAGS += \
1026
1027
	-g

1028
systemd_gnome_ask_password_agent_LDADD = \
1029
	$(LIBNOTIFY_LIBS) \