Makefile.am 37.7 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
        -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
62
	-DRUNTIME_DIR=\"$(localstatedir)/run\" \
63
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
64
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
65
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
66
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
67
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
68
	-I $(top_srcdir)/src
69

70
71
72
73
74
75
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
76
77
78
79
80
81
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
82
83
84
85
86
87
if TARGET_FRUGALWARE
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_MANDRIVA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
94
95
96
97
98
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
endif
99
endif
100
endif
101
endif
102

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

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

114
bin_PROGRAMS = \
115
116
	systemd-cgls \
	systemd-stdio-bridge
117
118
119

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

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

147
148
149
150
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

151
152
systemgenerator_PROGRAMS = \
	systemd-cryptsetup-generator
153
endif
154

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

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
170

171
172
173
dist_pkgsysconf_DATA = \
	src/system.conf

174
dist_dbuspolicy_DATA = \
175
	src/org.freedesktop.systemd1.conf
176

177
178
179
dist_dbussystemservice_DATA = \
	src/org.freedesktop.systemd1.service

180
dist_udevrules_DATA = \
181
	src/99-systemd.rules
182

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

198
199
200
dist_bashcompletion_DATA = \
        src/systemctl-bash-completion.sh

201
202
203
204
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

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

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

297
298
299
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
300

301
302
303
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
304

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

345
346
347
348
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
349
350
351
	units/fedora/halt-local.service
endif

352
353
354
355
356
357
358
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

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

378
379
dist_doc_DATA = \
	README \
380
381
	LICENSE \
	DISTRO_PORTING \
382
	src/sd-daemon.h \
383
384
385
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
386

387
388
389
pkgconfigdata_DATA = \
	systemd.pc

390
polkitpolicy_DATA = \
391
392
	src/org.freedesktop.systemd1.policy

393
394
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
395
396
	libsystemd-core.la \
	libsystemd-daemon.la
397
398

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

410
411
412
413
414
415
416
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

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

467
468
469
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
470
471
472
473
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
474
475
476
477
478
479

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
480
	$(PAM_LIBS) \
481
	$(AUDIT_LIBS)
482

483
484
485
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

486
487
488
489
# 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.

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

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

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)
574
575

nodist_man_MANS = \
576
	man/systemd.special.7
577

578
579
580
581
582
583
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)}}}}}

584
dist_noinst_DATA = \
585
	${XML_FILES:.xml=.html}
586

587
nodist_noinst_DATA = \
588
	${XML_IN_FILES:.xml.in=.html}
589
590

EXTRA_DIST += \
591
592
593
594
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
595

596
systemd_SOURCES = \
597
	src/main.c
598

599
600
systemd_CFLAGS = \
	$(AM_CFLAGS) \
601
	$(DBUS_CFLAGS) \
602
	$(UDEV_CFLAGS)
603
604

systemd_LDADD = \
605
	libsystemd-core.la
606
607

test_engine_SOURCES = \
608
	src/test-engine.c
609

610
test_engine_CFLAGS = $(systemd_CFLAGS)
611
612
613
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
614
	src/test-job-type.c
615

616
test_job_type_CFLAGS = $(systemd_CFLAGS)
617
618
test_job_type_LDADD = $(systemd_LDADD)

619
test_ns_SOURCES = \
620
	src/test-ns.c
621

622
test_ns_CFLAGS = $(systemd_CFLAGS)
623
624
test_ns_LDADD = $(systemd_LDADD)

625
test_loopback_SOURCES = \
626
627
	src/test-loopback.c \
	src/loopback-setup.c
628

629
630
631
test_loopback_LDADD = \
	libsystemd-basic.la

632
633
634
635
636
637
638
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

639
test_daemon_SOURCES = \
640
	src/test-daemon.c
641

642
test_daemon_LDADD = \
643
644
	libsystemd-basic.la \
	libsystemd-daemon.la
645

646
647
648
649
650
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
651
	$(AM_CFLAGS)
652
653

test_cgroup_LDADD = \
654
	libsystemd-basic.la
655

656
657
658
659
660
661
662
663
664
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

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

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

675
systemd_logger_SOURCES = \
676
	src/logger.c \
677
678
679
	src/tcpwrap.c

systemd_logger_LDADD = \
680
	libsystemd-basic.la \
681
	libsystemd-daemon.la \
682
	$(LIBWRAP_LIBS)
683

684
systemd_initctl_SOURCES = \
685
	src/initctl.c \
686
	src/dbus-common.c
687

688
689
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
690
691
692
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
693
	libsystemd-basic.la \
694
	libsystemd-daemon.la \
695
696
	$(DBUS_LIBS)

697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
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)

712
713
714
715
716
717
718
719
720
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

721
systemd_shutdownd_SOURCES = \
722
	src/utmp-wtmp.c \
723
724
725
726
727
728
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
729
730
	libsystemd-basic.la \
	libsystemd-daemon.la
731

732
733
734
735
736
737
738
739
740
741
742
743
744
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)

745
746
747
748
749
750
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

751
systemd_modules_load_LDADD = \
752
753
	libsystemd-basic.la

754
755
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
756

757
systemd_tmpfiles_CFLAGS = \
758
759
	$(AM_CFLAGS)

760
761
762
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la

763
764
765
766
767
768
769
770
771
772
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

773
774
775
776
777
778
779
780
781
systemd_sysctl_SOURCES = \
	src/sysctl.c

systemd_sysctl_CFLAGS = \
	$(AM_CFLAGS)

systemd_sysctl_LDADD = \
	libsystemd-basic.la

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

805
806
807
808
809
810
811
812
813
systemd_timestamp_SOURCES = \
	src/timestamp.c

systemd_timestamp_CFLAGS = \
	$(AM_CFLAGS)

systemd_timestamp_LDADD = \
	libsystemd-basic.la

814
815
816
817
818
819
820
821
822
823
824
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)

825
826
827
828
829
830
831
832
833
systemd_detect_virt_SOURCES = \
	src/detect-virt.c

systemd_detect_virt_CFLAGS = \
	$(AM_CFLAGS)

systemd_detect_virt_LDADD = \
	libsystemd-basic.la

834
systemd_cryptsetup_SOURCES = \
835
836
	src/cryptsetup.c \
	src/ask-password-api.c
837
838

systemd_cryptsetup_CFLAGS = \
839
	$(LIBCRYPTSETUP_CFLAGS) \
840
	$(UDEV_CFLAGS) \
841
842
843
	$(AM_CFLAGS)

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

858
859
860
861
862
863
864
systemd_user_sessions_SOURCES = \
	src/user-sessions.c \
	src/cgroup-util.c

systemd_user_sessions_CFLAGS = \
	$(AM_CFLAGS)

865
systemd_user_sessions_LDADD = \
866
867
	libsystemd-basic.la

868
869
870
871
872
873
874
875
876
systemd_vconsole_setup_SOURCES = \
	src/vconsole-setup.c

systemd_vconsole_setup_CFLAGS = \
	$(AM_CFLAGS)

systemd_vconsole_setup_LDADD = \
	libsystemd-basic.la

877
878
systemd_remount_api_vfs_SOURCES = \
	src/remount-api-vfs.c \
879
880
	src/mount-setup.c \
	src/exit-status.c
881
882
883
884
885
886
887

systemd_remount_api_vfs_CFLAGS = \
	$(AM_CFLAGS)

systemd_remount_api_vfs_LDADD = \
	libsystemd-basic.la

888
systemd_cgroups_agent_SOURCES = \
889
890
	src/cgroups-agent.c \
	src/dbus-common.c
891

892
893
systemd_cgroups_agent_CFLAGS = \
	$(AM_CFLAGS) \
894
895
896
	$(DBUS_CFLAGS)

systemd_cgroups_agent_LDADD = \
897
	libsystemd-basic.la \
898
899
	$(DBUS_LIBS)

900
901
902
903
904
905
906
907
systemd_kmsg_syslogd_SOURCES = \
	src/kmsg-syslogd.c \
	src/fdset.c

systemd_kmsg_syslogd_CFLAGS = \
	$(AM_CFLAGS)

systemd_kmsg_syslogd_LDADD = \
908
909
	libsystemd-basic.la \
	libsystemd-daemon.la
910

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

systemctl_CFLAGS = \
	$(AM_CFLAGS) \
923
	$(DBUS_CFLAGS)
924

925
926
systemctl_LDADD = \
	libsystemd-basic.la \
927
	libsystemd-daemon.la \
928
	$(DBUS_LIBS)
929

930
931
systemd_notify_SOURCES = \
	src/notify.c \
932
	src/sd-readahead.c
933
934

systemd_notify_LDADD = \
935
936
	libsystemd-basic.la \
	libsystemd-daemon.la
937

938
systemd_ask_password_SOURCES = \
939
940
	src/ask-password.c \
	src/ask-password-api.c
941
942
943
944
945
946
947
948
949
950

systemd_ask_password_LDADD = \
	libsystemd-basic.la

systemd_reply_password_SOURCES = \
	src/reply-password.c

systemd_reply_password_LDADD = \
	libsystemd-basic.la

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

975
systemd_cgls_SOURCES = \
976
	src/cgls.c \
977
978
	src/cgroup-show.c \
	src/cgroup-util.c
979
980

systemd_cgls_CFLAGS = \
981
	$(AM_CFLAGS)
982
983

systemd_cgls_LDADD = \
984
	libsystemd-basic.la
985

986
987
988
989
990
991
systemd_stdio_bridge_SOURCES = \
	src/bridge.c

systemd_stdio_bridge_LDADD = \
	libsystemd-basic.la

992
systemadm_SOURCES = \
993
994
	src/systemadm.vala \
	src/systemd-interfaces.vala
995

996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
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

1009
1010
systemadm_LDADD = \
	$(GTK_LIBS)
1011

1012
1013
systemd_gnome_ask_password_agent_SOURCES = \
	src/gnome-ask-password-agent.vala
1014

1015
systemd_gnome_ask_password_agent_CFLAGS = \
1016
	$(AM_CFLAGS) \
1017
	$(LIBNOTIFY_CFLAGS) \
1018
1019
1020
1021
1022
1023
	$(GTK_CFLAGS) \
	-Wno-unused-variable \
	-Wno-unused-function \
	-Wno-shadow \
	-Wno-format-nonliteral

1024
systemd_gnome_ask_password_agent_VALAFLAGS = \
1025
1026
1027
1028
	--pkg=posix \
	--pkg=gtk+-2.0 \
	--pkg=linux \
	--pkg=gio-unix-2.0 \