Makefile.am 35.4 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

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
	-DRUNTIME_DIR=\"$(localstatedir)/run\" \
61
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
62
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
63
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
64
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
65
	-I $(top_srcdir)/src
66

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

93
rootbin_PROGRAMS = \
94
	systemd \
95
	systemctl \
96
	systemd-notify \
97
	systemd-ask-password \
98
99
	systemd-tty-ask-password-agent \
	systemd-tmpfiles
100

101
bin_PROGRAMS = \
102
	systemd-cgls
103
104
105

if HAVE_GTK
bin_PROGRAMS += \
106
	systemadm \
107
	systemd-gnome-ask-password-agent
108
endif
109

110
rootlibexec_PROGRAMS = \
111
	systemd-logger \
112
	systemd-cgroups-agent \
113
	systemd-initctl \
114
	systemd-update-utmp \
115
	systemd-random-seed \
116
	systemd-shutdownd \
117
	systemd-shutdown \
118
	systemd-modules-load \
119
	systemd-remount-api-vfs \
120
	systemd-kmsg-syslogd \
121
	systemd-vconsole-setup \
122
123
	systemd-reply-password \
	systemd-readahead-collect \
124
	systemd-readahead-replay \
125
126
	systemd-user-sessions \
	systemd-fsck \
127
	systemd-quotacheck \
128
	systemd-timestamp \
129
130
	systemd-ac-power \
	systemd-sysctl
131

132
133
134
135
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

136
137
systemgenerator_PROGRAMS = \
	systemd-cryptsetup-generator
138
endif
139

140
141
noinst_PROGRAMS = \
	test-engine \
142
	test-job-type \
143
	test-ns \
144
	test-loopback \
145
	test-hostname \
146
	test-daemon \
147
	test-cgroup \
148
149
	test-env-replace \
	test-strv
150
151
152
153
154

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
155

156
157
158
dist_pkgsysconf_DATA = \
	src/system.conf

159
dist_dbuspolicy_DATA = \
160
	src/org.freedesktop.systemd1.conf
161

162
163
164
dist_dbussystemservice_DATA = \
	src/org.freedesktop.systemd1.service

165
dist_udevrules_DATA = \
166
	src/99-systemd.rules
167

168
dbusinterface_DATA = \
169
170
171
172
173
	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 \
174
	org.freedesktop.systemd1.Timer.xml \
175
176
177
178
179
	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 \
180
181
	org.freedesktop.systemd1.Swap.xml \
	org.freedesktop.systemd1.Path.xml
182

183
184
185
dist_bashcompletion_DATA = \
        src/systemctl-bash-completion.sh

186
187
188
189
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

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

246
nodist_systemunit_DATA = \
247
	units/getty@.service \
248
	units/serial-getty@.service \
249
	units/graphical.target \
250
	units/remote-fs.target \
251
	units/multi-user.target \
252
	units/systemd-initctl.service \
253
	units/systemd-logger.service \
254
	units/systemd-shutdownd.service \
255
	units/systemd-kmsg-syslogd.service \
256
	units/systemd-modules-load.service \
257
	units/systemd-vconsole-setup.service \
258
	units/systemd-remount-api-vfs.service \
259
260
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
261
262
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
263
264
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
265
	units/systemd-readahead-done.service \
266
267
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
268
	units/systemd-user-sessions.service \
269
	units/systemd-ask-password-wall.service \
270
	units/systemd-ask-password-plymouth.service \
271
	units/systemd-ask-password-console.service \
272
	units/systemd-sysctl.service \
273
	units/syslog.target \
274
275
276
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
277
278
	units/kexec.service \
	units/fsck@.service \
279
	units/fsck-root.service \
280
281
	units/quotacheck.service \
	units/rescue.service
282

283
284
285
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
286

287
288
289
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
290

291
EXTRA_DIST = \
292
	units/getty@.service.m4 \
293
	units/serial-getty@.service.m4 \
294
295
	units/graphical.target.m4 \
	units/multi-user.target.m4 \
296
	units/remote-fs.target.m4 \
297
	units/rescue.service.m4 \
298
299
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
300
	units/systemd-shutdownd.service.in \
301
	units/systemd-kmsg-syslogd.service.in \
302
	units/systemd-modules-load.service.in \
303
	units/systemd-vconsole-setup.service.in \
304
	units/systemd-remount-api-vfs.service.in \
305
306
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
307
308
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
309
310
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
311
	units/systemd-readahead-done.service.in \
312
313
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
314
	units/systemd-user-sessions.service.in \
315
	units/systemd-ask-password-wall.service.in \
316
	units/systemd-ask-password-plymouth.service.in \
317
	units/systemd-ask-password-console.service.in \
318
	units/systemd-sysctl.service.in \
319
	units/syslog.target.in \
320
321
322
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
323
	units/kexec.service.in \
324
	units/user/exit.service.in \
325
326
	units/fsck@.service.in \
	units/fsck-root.service.in \
327
	units/quotacheck.service.in \
328
329
	systemd.pc.in \
	introspect.awk
330

331
332
333
334
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
335
336
337
338
339
340
341
342
343
344
345
346
	units/fedora/halt-local.service
endif

if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
	units/plymouth-halt.service
347
348
endif

349
350
dist_doc_DATA = \
	README \
351
352
	LICENSE \
	DISTRO_PORTING \
353
	src/sd-daemon.h \
354
355
356
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
357

358
359
360
pkgconfigdata_DATA = \
	systemd.pc

361
362
363
dist_polkitpolicy_DATA = \
	src/org.freedesktop.systemd1.policy

364
365
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
366
367
	libsystemd-core.la \
	libsystemd-daemon.la
368
369

libsystemd_basic_la_SOURCES = \
370
	src/util.c \
371
	src/label.c \
372
373
374
375
376
377
378
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
	src/ratelimit.c
379

380
381
382
383
384
385
386
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

387
libsystemd_core_la_SOURCES = \
388
	src/unit.c \
389
390
	src/job.c \
	src/manager.c \
391
	src/path-lookup.c \
392
393
394
395
396
397
398
399
400
401
	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 \
402
	src/path.c \
403
404
	src/load-dropin.c \
	src/execute.c \
405
	src/utmp-wtmp.c \
406
	src/exit-status.c \
407
408
409
410
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
411
412
	src/dbus-service.c \
	src/dbus-socket.c \
413
	src/dbus-timer.c \
414
415
416
417
418
419
420
	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 \
421
	src/dbus-path.c \
422
423
424
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
425
	src/selinux-setup.c \
426
	src/loopback-setup.c \
427
	src/kmod-setup.c \
428
	src/locale-setup.c \
429
430
431
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
432
	src/namespace.c \
433
	src/tcpwrap.c \
434
435
	src/cgroup-util.c \
	src/condition.c
436

437
438
439
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
440
441
442
443
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
444
445
446
447
448
449

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
450
	$(PAM_LIBS) \
451
	$(AUDIT_LIBS)
452

453
454
455
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

456
457
458
459
# 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.

460
EXTRA_DIST += \
461
462
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
463
	${libsystemd_daemon_la_SOURCES:.c=.h} \
464
465
466
467
468
469
	src/macro.h \
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
470
	src/linux/fanotify.h \
471
	src/initreq.h \
472
	src/sd-readahead.h \
473
	src/special.h \
474
	src/dbus-common.h \
475
	src/bus-errors.h \
476
	src/cgroup-show.h \
477
	src/build.h \
478
	src/shutdownd.h \
479
	src/umount.h \
480
481
	src/readahead-common.h \
	src/ask-password-api.h
482
483

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
484
	man/systemd.1 \
485
486
	man/systemctl.1 \
	man/systemadm.1 \
487
	man/systemd-cgls.1 \
488
	man/systemd-tmpfiles.8 \
489
	man/systemd-notify.1 \
490
	man/sd_notify.3 \
491
	man/sd_readahead.3 \
492
493
494
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
495
496
	man/systemd.unit.5 \
	man/systemd.service.5 \
497
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
498
	man/systemd.mount.5 \
499
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
500
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
501
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
502
	man/systemd.path.5 \
503
	man/systemd.target.5 \
504
	man/systemd.device.5 \
505
	man/systemd.snapshot.5 \
506
	man/systemd.exec.5 \
507
	man/daemon.7 \
508
	man/sd-daemon.7 \
509
	man/sd-readahead.7 \
510
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
511
512
513
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
514
	man/pam_systemd.8 \
515
	man/systemd.conf.5 \
516
	man/tmpfiles.d.5 \
517
	man/hostname.5 \
Lennart Poettering's avatar
Lennart Poettering committed
518
	man/vconsole.conf.5 \
519
	man/locale.conf.5 \
520
521
	man/os-release.5 \
	man/modules-load.d.5
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542

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)
543
544

nodist_man_MANS = \
545
	man/systemd.special.7
546

547
548
549
550
551
552
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)}}}}}

553
dist_noinst_DATA = \
554
	${XML_FILES:.xml=.html}
555

556
nodist_noinst_DATA = \
557
	${XML_IN_FILES:.xml.in=.html}
558
559

EXTRA_DIST += \
560
561
562
563
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
564

565
systemd_SOURCES = \
566
	src/main.c
567

568
569
systemd_CFLAGS = \
	$(AM_CFLAGS) \
570
	$(DBUS_CFLAGS) \
571
	$(UDEV_CFLAGS)
572
573

systemd_LDADD = \
574
	libsystemd-core.la
575
576

test_engine_SOURCES = \
577
	src/test-engine.c
578

579
test_engine_CFLAGS = $(systemd_CFLAGS)
580
581
582
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
583
	src/test-job-type.c
584

585
test_job_type_CFLAGS = $(systemd_CFLAGS)
586
587
test_job_type_LDADD = $(systemd_LDADD)

588
test_ns_SOURCES = \
589
	src/test-ns.c
590

591
test_ns_CFLAGS = $(systemd_CFLAGS)
592
593
test_ns_LDADD = $(systemd_LDADD)

594
test_loopback_SOURCES = \
595
596
	src/test-loopback.c \
	src/loopback-setup.c
597

598
599
600
test_loopback_LDADD = \
	libsystemd-basic.la

601
602
603
604
605
606
607
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

608
test_daemon_SOURCES = \
609
	src/test-daemon.c
610

611
test_daemon_LDADD = \
612
613
	libsystemd-basic.la \
	libsystemd-daemon.la
614

615
616
617
618
619
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
620
	$(AM_CFLAGS)
621
622

test_cgroup_LDADD = \
623
	libsystemd-basic.la
624

625
626
627
628
629
630
631
632
633
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

634
test_strv_SOURCES = \
635
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
636
	src/specifier.c
637
638
639
640
641
642
643

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

644
systemd_logger_SOURCES = \
645
	src/logger.c \
646
647
648
	src/tcpwrap.c

systemd_logger_LDADD = \
649
	libsystemd-basic.la \
650
	libsystemd-daemon.la \
651
	$(LIBWRAP_LIBS)
652

653
systemd_initctl_SOURCES = \
654
	src/initctl.c \
655
	src/dbus-common.c
656

657
658
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
659
660
661
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
662
	libsystemd-basic.la \
663
	libsystemd-daemon.la \
664
665
	$(DBUS_LIBS)

666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
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)

681
682
683
684
685
686
687
688
689
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

690
systemd_shutdownd_SOURCES = \
691
	src/utmp-wtmp.c \
692
693
694
695
696
697
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
698
699
	libsystemd-basic.la \
	libsystemd-daemon.la
700

701
702
703
704
705
706
707
708
709
710
711
712
713
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)

714
715
716
717
718
719
systemd_modules_load_SOURCES = \
	src/modules-load.c

systemd_modules_load_CFLAGS = \
	$(AM_CFLAGS)

720
systemd_modules_load_LDADD = \
721
722
	libsystemd-basic.la

723
724
systemd_tmpfiles_SOURCES = \
	src/tmpfiles.c
725

726
systemd_tmpfiles_CFLAGS = \
727
728
	$(AM_CFLAGS)

729
730
731
systemd_tmpfiles_LDADD = \
	libsystemd-basic.la

732
733
734
735
736
737
738
739
740
systemd_sysctl_SOURCES = \
	src/sysctl.c

systemd_sysctl_CFLAGS = \
	$(AM_CFLAGS)

systemd_sysctl_LDADD = \
	libsystemd-basic.la

741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
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 = \
762
763
	libsystemd-basic.la

764
765
766
767
768
769
770
771
772
systemd_timestamp_SOURCES = \
	src/timestamp.c

systemd_timestamp_CFLAGS = \
	$(AM_CFLAGS)

systemd_timestamp_LDADD = \
	libsystemd-basic.la

773
774
775
776
777
778
779
780
781
782
783
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)

784
systemd_cryptsetup_SOURCES = \
785
786
	src/cryptsetup.c \
	src/ask-password-api.c
787
788

systemd_cryptsetup_CFLAGS = \
789
	$(LIBCRYPTSETUP_CFLAGS) \
790
	$(UDEV_CFLAGS) \
791
792
793
	$(AM_CFLAGS)

systemd_cryptsetup_LDADD = \
794
	$(LIBCRYPTSETUP_LIBS) \
795
	$(UDEV_LIBS) \
796
797
798
799
800
801
802
803
804
805
806
807
	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

808
809
810
811
812
813
814
systemd_user_sessions_SOURCES = \
	src/user-sessions.c \
	src/cgroup-util.c

systemd_user_sessions_CFLAGS = \
	$(AM_CFLAGS)

815
systemd_user_sessions_LDADD = \
816
817
	libsystemd-basic.la

818
819
820
821
822
823
824
825
826
systemd_vconsole_setup_SOURCES = \
	src/vconsole-setup.c

systemd_vconsole_setup_CFLAGS = \
	$(AM_CFLAGS)

systemd_vconsole_setup_LDADD = \
	libsystemd-basic.la

827
828
systemd_remount_api_vfs_SOURCES = \
	src/remount-api-vfs.c \
829
830
	src/mount-setup.c \
	src/exit-status.c
831
832
833
834
835
836
837

systemd_remount_api_vfs_CFLAGS = \
	$(AM_CFLAGS)

systemd_remount_api_vfs_LDADD = \
	libsystemd-basic.la

838
systemd_cgroups_agent_SOURCES = \
839
840
	src/cgroups-agent.c \
	src/dbus-common.c
841

842
843
systemd_cgroups_agent_CFLAGS = \
	$(AM_CFLAGS) \
844
845
846
	$(DBUS_CFLAGS)

systemd_cgroups_agent_LDADD = \
847
	libsystemd-basic.la \
848
849
	$(DBUS_LIBS)

850
851
852
853
854
855
856
857
systemd_kmsg_syslogd_SOURCES = \
	src/kmsg-syslogd.c \
	src/fdset.c

systemd_kmsg_syslogd_CFLAGS = \
	$(AM_CFLAGS)

systemd_kmsg_syslogd_LDADD = \
858
859
	libsystemd-basic.la \
	libsystemd-daemon.la
860

861
862
systemctl_SOURCES = \
	src/systemctl.c \
863
	src/utmp-wtmp.c \
864
	src/dbus-common.c \
865
	src/path-lookup.c \
866
	src/cgroup-show.c \
867
	src/cgroup-util.c \
868
869
	src/exit-status.c \
	src/unit-name.c
870
871
872

systemctl_CFLAGS = \
	$(AM_CFLAGS) \
873
	$(DBUS_CFLAGS)
874

875
876
systemctl_LDADD = \
	libsystemd-basic.la \
877
	libsystemd-daemon.la \
878
	$(DBUS_LIBS)
879

880
881
systemd_notify_SOURCES = \
	src/notify.c \
882
	src/sd-readahead.c
883
884

systemd_notify_LDADD = \
885
886
	libsystemd-basic.la \
	libsystemd-daemon.la
887

888
systemd_ask_password_SOURCES = \
889
890
	src/ask-password.c \
	src/ask-password-api.c
891
892
893
894
895
896
897
898
899
900

systemd_ask_password_LDADD = \
	libsystemd-basic.la

systemd_reply_password_SOURCES = \
	src/reply-password.c

systemd_reply_password_LDADD = \
	libsystemd-basic.la

901
902
903
904
905
906
907
908
909
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 \
910
	libsystemd-daemon.la \
911
912
913
914
915
916
917
918
919
920
921
	$(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 \
922
	libsystemd-daemon.la \
923
924
	$(UDEV_LIBS)

925
systemd_cgls_SOURCES = \
926
	src/cgls.c \
927
928
	src/cgroup-show.c \
	src/cgroup-util.c
929
930

systemd_cgls_CFLAGS = \
931
	$(AM_CFLAGS)
932
933

systemd_cgls_LDADD = \
934
	libsystemd-basic.la
935

936
systemadm_SOURCES = \
937
938
	src/systemadm.vala \
	src/systemd-interfaces.vala
939

940
941
942
943
944
945
946
947
948
949
950
951
952
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

953
954
systemadm_LDADD = \
	$(GTK_LIBS)
955

956
957
systemd_gnome_ask_password_agent_SOURCES = \
	src/gnome-ask-password-agent.vala
958

959
systemd_gnome_ask_password_agent_CFLAGS = \
960
	$(AM_CFLAGS) \
961
	$(LIBNOTIFY_CFLAGS) \
962
963
964
965
966
967
	$(GTK_CFLAGS) \
	-Wno-unused-variable \
	-Wno-unused-function \
	-Wno-shadow \
	-Wno-format-nonliteral

968
systemd_gnome_ask_password_agent_VALAFLAGS = \
969
970
971
972
	--pkg=posix \
	--pkg=gtk+-2.0 \
	--pkg=linux \
	--pkg=gio-unix-2.0 \
973
974
975
976
977
978
	--pkg=libnotify
if LIBNOTIFY07
systemd_gnome_ask_password_agent_VALAFLAGS += \
	-D LIBNOTIFY07
endif
systemd_gnome_ask_password_agent_VALAFLAGS += \
979
980
	-g

981
systemd_gnome_ask_password_agent_LDADD = \
982
	$(LIBNOTIFY_LIBS) \
983
984
	$(GTK_LIBS)

985
986
systemd_tty_ask_password_agent_SOURCES = \
	src/tty-ask-password-agent.c \
987
	src/ask-password-api.c \
988
989
990
991
992
	src/utmp-wtmp.c

systemd_tty_ask_password_agent_LDADD = \
	libsystemd-basic.la

993
994
pam_systemd_la_SOURCES = \
	src/pam-module.c \
995
	src/cgroup-util.c
996
997

pam_systemd_la_CFLAGS = \
998
	$(AM_CFLAGS)
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
	-fvisibility=hidden

pam_systemd_la_LDFLAGS = \
	-module \
	-export-dynamic \
	-avoid-version \
	-shared \
	-export-symbols-regex '^pam_sm_.*'

pam_systemd_la_LIBADD = \
	libsystemd-basic.la \
1010
	libsystemd-daemon.la \
1011
	$(PAM_LIBS)
1012

1013
SED_PROCESS = \
1014
	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1015
	$(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1016
                -e 's,@rootbindir\@,$(rootbindir),g' \
1017
		-e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
1018
		-e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \