]> git.ipfire.org Git - thirdparty/systemd.git/blob - Makefile.am
networkd: add support for address label
[thirdparty/systemd.git] / Makefile.am
1 # -*- Mode: makefile; indent-tabs-mode: t -*-
2 #
3 # This file is part of systemd.
4 #
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
9 #
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
14 #
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
19 #
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
22
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
26
27 GCC_COLORS ?= 'ooh, shiny!'
28 export GCC_COLORS
29
30 SUBDIRS = . po
31
32 # remove targets if the command fails
33 .DELETE_ON_ERROR:
34
35 # keep intermediate files
36 .SECONDARY:
37
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
40
41 LIBUDEV_CURRENT=7
42 LIBUDEV_REVISION=6
43 LIBUDEV_AGE=6
44
45 LIBSYSTEMD_CURRENT=18
46 LIBSYSTEMD_REVISION=0
47 LIBSYSTEMD_AGE=18
48
49 # Dirs of external packages
50 dbuspolicydir=@dbuspolicydir@
51 dbussessionservicedir=@dbussessionservicedir@
52 dbussystemservicedir=@dbussystemservicedir@
53 pamlibdir=@pamlibdir@
54 pamconfdir=@pamconfdir@
55 pkgconfigdatadir=$(datadir)/pkgconfig
56 pkgconfiglibdir=$(libdir)/pkgconfig
57 polkitpolicydir=$(datadir)/polkit-1/actions
58 polkitrulesdir=$(datadir)/polkit-1/rules.d
59 polkitpkladir=$(localstatedir)/lib/polkit-1/localauthority/10-vendor.d
60 bashcompletiondir=@bashcompletiondir@
61 zshcompletiondir=@zshcompletiondir@
62 rpmmacrosdir=@rpmmacrosdir@
63 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
64 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
65 varlogdir=$(localstatedir)/log
66 systemdstatedir=$(localstatedir)/lib/systemd
67 catalogstatedir=$(systemdstatedir)/catalog
68 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
69
70 # Our own, non-special dirs
71 environmentdir=$(prefix)/lib/environment.d
72 pkgsysconfdir=$(sysconfdir)/systemd
73 userunitdir=$(prefix)/lib/systemd/user
74 userpresetdir=$(prefix)/lib/systemd/user-preset
75 tmpfilesdir=$(prefix)/lib/tmpfiles.d
76 sysusersdir=$(prefix)/lib/sysusers.d
77 sysctldir=$(prefix)/lib/sysctl.d
78 binfmtdir=$(prefix)/lib/binfmt.d
79 modulesloaddir=$(prefix)/lib/modules-load.d
80 networkdir=$(rootprefix)/lib/systemd/network
81 pkgincludedir=$(includedir)/systemd
82 systemgeneratordir=$(rootlibexecdir)/system-generators
83 usergeneratordir=$(prefix)/lib/systemd/user-generators
84 systemenvgeneratordir=$(prefix)/lib/systemd/system-environment-generators
85 userenvgeneratordir=$(prefix)/lib/systemd/user-environment-generators
86 systemshutdowndir=$(rootlibexecdir)/system-shutdown
87 systemsleepdir=$(rootlibexecdir)/system-sleep
88 systemunitdir=$(rootprefix)/lib/systemd/system
89 systempresetdir=$(rootprefix)/lib/systemd/system-preset
90 udevlibexecdir=$(rootprefix)/lib/udev
91 udevhomedir=$(udevlibexecdir)
92 udevrulesdir=$(udevlibexecdir)/rules.d
93 udevhwdbdir=$(udevlibexecdir)/hwdb.d
94 catalogdir=$(prefix)/lib/systemd/catalog
95 kernelinstalldir = $(prefix)/lib/kernel/install.d
96 factory_etcdir = $(datadir)/factory/etc
97 factory_pamdir = $(datadir)/factory/etc/pam.d
98 bootlibdir = $(prefix)/lib/systemd/boot/efi
99 testsdir = $(prefix)/lib/systemd/tests
100
101 # And these are the special ones for /
102 rootprefix=@rootprefix@
103 rootbindir=$(rootprefix)/bin
104 rootlibexecdir=$(rootprefix)/lib/systemd
105
106 EXTRA_DIST =
107 BUILT_SOURCES =
108 INSTALL_EXEC_HOOKS =
109 UNINSTALL_EXEC_HOOKS =
110 INSTALL_DATA_HOOKS =
111 UNINSTALL_DATA_HOOKS =
112 DISTCLEAN_LOCAL_HOOKS =
113 CLEAN_LOCAL_HOOKS =
114 pkginclude_HEADERS =
115 noinst_LTLIBRARIES =
116 lib_LTLIBRARIES =
117 rootlibexec_LTLIBRARIES =
118 include_HEADERS =
119 noinst_DATA =
120 pkgconfigdata_DATA =
121 pkgconfiglib_DATA =
122 polkitpolicy_in_in_files =
123 polkitpolicy_in_files =
124 polkitpolicy_files =
125 polkitrules_files =
126 polkitpkla_files =
127 dist_udevrules_DATA =
128 nodist_udevrules_DATA =
129 dist_pkgsysconf_DATA =
130 nodist_pkgsysconf_DATA =
131 dist_dbuspolicy_DATA =
132 dist_dbussystemservice_DATA =
133 dist_systemunit_DATA_busnames =
134 dist_sysusers_DATA =
135 check_PROGRAMS =
136 check_DATA =
137 dist_rootlibexec_DATA =
138 tests=
139 manual_tests =
140 TEST_DATA_FILES =
141 TEST_EXTENSIONS = .py
142 PY_LOG_COMPILER = $(PYTHON)
143 DISABLE_HARD_ERRORS = yes
144 if ENABLE_TESTS
145 noinst_PROGRAMS = $(manual_tests) $(tests) $(unsafe_tests)
146 TESTS = $(tests)
147 if ENABLE_UNSAFE_TESTS
148 TESTS += \
149 $(unsafe_tests)
150 endif
151 else
152 noinst_PROGRAMS =
153 TESTS =
154 endif
155 AM_TESTS_ENVIRONMENT = \
156 export SYSTEMD_KBD_MODEL_MAP=$(abs_top_srcdir)/src/locale/kbd-model-map; \
157 export SYSTEMD_LANGUAGE_FALLBACK_MAP=$(abs_top_srcdir)/src/locale/language-fallback-map; \
158 export PATH=$(abs_top_builddir):$$PATH;
159
160 if ENABLE_BASH_COMPLETION
161 dist_bashcompletion_DATA = $(dist_bashcompletion_data)
162 nodist_bashcompletion_DATA = $(nodist_bashcompletion_data)
163 endif
164 if ENABLE_ZSH_COMPLETION
165 dist_zshcompletion_DATA = $(dist_zshcompletion_data)
166 nodist_zshcompletion_DATA = $(nodist_zshcompletion_data)
167 endif
168 udevlibexec_PROGRAMS =
169 gperf_gperf_sources =
170 rootlib_LTLIBRARIES =
171
172 in_files = $(filter %.in,$(EXTRA_DIST))
173 in_in_files = $(filter %.in.in, $(in_files))
174 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
175
176 CLEANFILES = $(BUILT_SOURCES) \
177 $(pkgconfigdata_DATA) \
178 $(pkgconfiglib_DATA) \
179 $(nodist_bashcompletion_data) \
180 $(nodist_zshcompletion_data) \
181 $(nodist_rpmmacros_DATA) \
182 $(in_files:.in=) $(in_in_files:.in.in=) \
183 $(m4_files:.m4=)
184
185 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
186 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
187 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
188
189 AM_CPPFLAGS = \
190 -include $(top_builddir)/config.h \
191 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
192 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
193 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
194 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
195 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
196 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
197 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
198 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
199 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
200 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
201 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
202 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
203 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
204 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
205 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
206 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
207 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
208 -DROOTPREFIX=\"$(rootprefix)\" \
209 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
210 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
211 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
212 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
213 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
214 -DSYSTEM_ENV_GENERATOR_PATH=\"$(systemenvgeneratordir)\" \
215 -DUSER_ENV_GENERATOR_PATH=\"$(userenvgeneratordir)\" \
216 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
217 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
218 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
219 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
220 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
221 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
222 -DQUOTACHECK=\"$(QUOTACHECK)\" \
223 -DKEXEC=\"$(KEXEC)\" \
224 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
225 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
226 -DLIBDIR=\"$(libdir)\" \
227 -DROOTLIBDIR=\"$(rootlibdir)\" \
228 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
229 -I $(top_srcdir)/src \
230 -I $(top_builddir)/src/basic \
231 -I $(top_srcdir)/src/basic \
232 -I $(top_srcdir)/src/shared \
233 -I $(top_builddir)/src/shared \
234 -I $(top_srcdir)/src/network \
235 -I $(top_srcdir)/src/locale \
236 -I $(top_srcdir)/src/login \
237 -I $(top_srcdir)/src/journal \
238 -I $(top_builddir)/src/journal \
239 -I $(top_srcdir)/src/timedate \
240 -I $(top_srcdir)/src/timesync \
241 -I $(top_srcdir)/src/nspawn \
242 -I $(top_srcdir)/src/resolve \
243 -I $(top_builddir)/src/resolve \
244 -I $(top_srcdir)/src/systemd \
245 -I $(top_builddir)/src/core \
246 -I $(top_srcdir)/src/core \
247 -I $(top_srcdir)/src/libudev \
248 -I $(top_srcdir)/src/udev \
249 -I $(top_srcdir)/src/udev/net \
250 -I $(top_builddir)/src/udev \
251 -I $(top_srcdir)/src/libsystemd/sd-bus \
252 -I $(top_srcdir)/src/libsystemd/sd-event \
253 -I $(top_srcdir)/src/libsystemd/sd-login \
254 -I $(top_srcdir)/src/libsystemd/sd-netlink \
255 -I $(top_srcdir)/src/libsystemd/sd-network \
256 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
257 -I $(top_srcdir)/src/libsystemd/sd-device \
258 -I $(top_srcdir)/src/libsystemd/sd-id128 \
259 -I $(top_srcdir)/src/libsystemd-network \
260 -DABS_SRC_DIR=\"$(abs_top_srcdir)\" \
261 -DABS_BUILD_DIR=\"$(abs_top_builddir)\" \
262 $(OUR_CPPFLAGS)
263
264 AM_CFLAGS = $(OUR_CFLAGS)
265 AM_LDFLAGS = $(OUR_LDFLAGS)
266
267 # ------------------------------------------------------------------------------
268 INSTALL_DIRS =
269
270 SHUTDOWN_TARGET_WANTS =
271 LOCAL_FS_TARGET_WANTS =
272 MULTI_USER_TARGET_WANTS =
273 GRAPHICAL_TARGET_WANTS =
274 RESCUE_TARGET_WANTS =
275 SYSINIT_TARGET_WANTS =
276 SOCKETS_TARGET_WANTS =
277 BUSNAMES_TARGET_WANTS =
278 TIMERS_TARGET_WANTS =
279 USER_SOCKETS_TARGET_WANTS =
280 USER_DEFAULT_TARGET_WANTS =
281 USER_BUSNAMES_TARGET_WANTS =
282
283 SYSTEM_UNIT_ALIASES =
284 USER_UNIT_ALIASES =
285 GENERAL_ALIASES =
286
287 install-target-wants-hook:
288 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
289 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
290 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
291 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
292 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
293 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
294 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
295 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
296 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
297 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
298 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
299
300 install-busnames-target-wants-hook:
301 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
302 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
303
304 define add-wants
305 [ -z "$$what" ] || ( \
306 dir=$(DESTDIR)$$dir/$$wants.wants && \
307 $(MKDIR_P) -m 0755 $$dir && \
308 cd $$dir && \
309 rm -f $$what && \
310 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
311 endef
312
313 install-directories-hook:
314 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
315
316 install-environment-conf-hook: install-directories-hook
317 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(sysconfdir)/environment \
318 $(DESTDIR)$(environmentdir)/99-environment.conf
319
320 install-aliases-hook:
321 set -- $(SYSTEM_UNIT_ALIASES) && \
322 dir=$(systemunitdir) && $(install-aliases)
323 set -- $(USER_UNIT_ALIASES) && \
324 dir=$(userunitdir) && $(install-relative-aliases)
325 set -- $(GENERAL_ALIASES) && \
326 dir= && $(install-relative-aliases)
327
328 define install-aliases
329 while [ -n "$$1" ]; do \
330 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
331 rm -f $(DESTDIR)$$dir/$$2 && \
332 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
333 shift 2 || exit $$?; \
334 done
335 endef
336
337 define install-relative-aliases
338 while [ -n "$$1" ]; do \
339 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
340 rm -f $(DESTDIR)$$dir/$$2 && \
341 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
342 shift 2 || exit $$?; \
343 done
344 endef
345
346 install-touch-usr-hook:
347 touch -c $(DESTDIR)/$(prefix)
348
349 INSTALL_EXEC_HOOKS += \
350 install-target-wants-hook \
351 install-directories-hook \
352 install-aliases-hook \
353 install-touch-usr-hook \
354 install-busnames-target-wants-hook
355
356 if ENABLE_ENVIRONMENT_D
357 INSTALL_EXEC_HOOKS += \
358 install-environment-conf-hook
359 endif
360
361 # ------------------------------------------------------------------------------
362 AM_V_M4 = $(AM_V_M4_$(V))
363 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
364 AM_V_M4_0 = @echo " M4 " $@;
365
366 AM_V_XSLT = $(AM_V_XSLT_$(V))
367 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
368 AM_V_XSLT_0 = @echo " XSLT " $@;
369
370 AM_V_GPERF = $(AM_V_GPERF_$(V))
371 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
372 AM_V_GPERF_0 = @echo " GPERF " $@;
373
374 AM_V_LN = $(AM_V_LN_$(V))
375 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
376 AM_V_LN_0 = @echo " LN " $@;
377
378 AM_V_RM = $(AM_V_RM_$(V))
379 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
380 AM_V_RM_0 = @echo " RM " $@;
381
382 # ------------------------------------------------------------------------------
383 rootbin_PROGRAMS = \
384 systemctl \
385 systemd-notify \
386 systemd-ask-password \
387 systemd-tty-ask-password-agent \
388 systemd-machine-id-setup \
389 systemd-escape
390
391 bin_PROGRAMS = \
392 systemd-cgls \
393 systemd-cgtop \
394 systemd-nspawn \
395 systemd-detect-virt \
396 systemd-delta \
397 systemd-analyze \
398 systemd-run \
399 systemd-mount \
400 systemd-stdio-bridge \
401 systemd-path
402
403 dist_bin_SCRIPTS = \
404 src/kernel-install/kernel-install
405
406 dist_kernelinstall_SCRIPTS = \
407 src/kernel-install/50-depmod.install \
408 src/kernel-install/90-loaderentry.install
409
410 rootlibexec_PROGRAMS = \
411 systemd \
412 systemd-cgroups-agent \
413 systemd-initctl \
414 systemd-shutdown \
415 systemd-remount-fs \
416 systemd-volatile-root \
417 systemd-reply-password \
418 systemd-fsck \
419 systemd-ac-power \
420 systemd-sysctl \
421 systemd-sleep \
422 systemd-socket-proxyd \
423 systemd-update-done
424
425 if HAVE_BLKID
426 rootlibexec_PROGRAMS += \
427 systemd-dissect
428 endif
429
430 if HAVE_UTMP
431 rootlibexec_PROGRAMS += \
432 systemd-update-utmp
433 endif
434
435 systemgenerator_PROGRAMS = \
436 systemd-getty-generator \
437 systemd-fstab-generator \
438 systemd-system-update-generator \
439 systemd-debug-generator
440
441 if ENABLE_ENVIRONMENT_D
442 userenvgenerator_PROGRAMS = \
443 30-systemd-environment-d-generator
444 endif
445
446 rootlibexec_SCRIPTS = \
447 src/sulogin-shell/systemd-sulogin-shell
448
449 EXTRA_DIST += \
450 src/sulogin-shell/systemd-sulogin-shell.in
451
452 dist_bashcompletion_data = \
453 shell-completion/bash/busctl \
454 shell-completion/bash/journalctl \
455 shell-completion/bash/systemd-analyze \
456 shell-completion/bash/systemd-cat \
457 shell-completion/bash/systemd-cgls \
458 shell-completion/bash/systemd-cgtop \
459 shell-completion/bash/systemd-delta \
460 shell-completion/bash/systemd-detect-virt \
461 shell-completion/bash/systemd-nspawn \
462 shell-completion/bash/systemd-path \
463 shell-completion/bash/systemd-run \
464 shell-completion/bash/udevadm \
465 shell-completion/bash/kernel-install
466
467 nodist_bashcompletion_data = \
468 shell-completion/bash/systemctl
469
470 dist_zshcompletion_data = \
471 shell-completion/zsh/_busctl \
472 shell-completion/zsh/_journalctl \
473 shell-completion/zsh/_udevadm \
474 shell-completion/zsh/_kernel-install \
475 shell-completion/zsh/_systemd-nspawn \
476 shell-completion/zsh/_systemd-analyze \
477 shell-completion/zsh/_systemd-run \
478 shell-completion/zsh/_sd_hosts_or_user_at_host \
479 shell-completion/zsh/_sd_outputmodes \
480 shell-completion/zsh/_sd_unit_files \
481 shell-completion/zsh/_systemd-delta \
482 shell-completion/zsh/_systemd
483
484 nodist_zshcompletion_data = \
485 shell-completion/zsh/_systemctl
486
487 EXTRA_DIST += \
488 shell-completion/bash/systemctl.in \
489 shell-completion/zsh/_systemctl.in
490
491 dist_sysctl_DATA = \
492 sysctl.d/50-default.conf
493
494 dist_systemunit_DATA = \
495 units/graphical.target \
496 units/multi-user.target \
497 units/emergency.target \
498 units/sysinit.target \
499 units/basic.target \
500 units/getty.target \
501 units/halt.target \
502 units/kexec.target \
503 units/exit.target \
504 units/local-fs.target \
505 units/local-fs-pre.target \
506 units/initrd.target \
507 units/initrd-fs.target \
508 units/initrd-root-device.target \
509 units/initrd-root-fs.target \
510 units/remote-fs.target \
511 units/remote-fs-pre.target \
512 units/network.target \
513 units/network-pre.target \
514 units/network-online.target \
515 units/nss-lookup.target \
516 units/nss-user-lookup.target \
517 units/poweroff.target \
518 units/reboot.target \
519 units/rescue.target \
520 units/rpcbind.target \
521 units/time-sync.target \
522 units/shutdown.target \
523 units/final.target \
524 units/umount.target \
525 units/sigpwr.target \
526 units/sleep.target \
527 units/sockets.target \
528 units/timers.target \
529 units/paths.target \
530 units/suspend.target \
531 units/swap.target \
532 units/slices.target \
533 units/system.slice \
534 units/systemd-initctl.socket \
535 units/syslog.socket \
536 units/dev-hugepages.mount \
537 units/dev-mqueue.mount \
538 units/sys-kernel-config.mount \
539 units/sys-kernel-debug.mount \
540 units/sys-fs-fuse-connections.mount \
541 units/tmp.mount \
542 units/var-lib-machines.mount \
543 units/printer.target \
544 units/sound.target \
545 units/bluetooth.target \
546 units/smartcard.target \
547 units/systemd-ask-password-wall.path \
548 units/systemd-ask-password-console.path \
549 units/systemd-udevd-control.socket \
550 units/systemd-udevd-kernel.socket \
551 units/system-update.target \
552 units/initrd-switch-root.target \
553 units/machines.target
554
555 dist_systemunit_DATA += \
556 $(dist_systemunit_DATA_busnames)
557
558 dist_systemunit_DATA_busnames += \
559 units/busnames.target
560
561 nodist_systemunit_DATA = \
562 units/getty@.service \
563 units/serial-getty@.service \
564 units/console-getty.service \
565 units/container-getty@.service \
566 units/system-update-cleanup.service \
567 units/systemd-initctl.service \
568 units/systemd-remount-fs.service \
569 units/systemd-volatile-root.service \
570 units/systemd-ask-password-wall.service \
571 units/systemd-ask-password-console.service \
572 units/systemd-sysctl.service \
573 units/emergency.service \
574 units/rescue.service \
575 units/user@.service \
576 units/systemd-suspend.service \
577 units/systemd-halt.service \
578 units/systemd-poweroff.service \
579 units/systemd-reboot.service \
580 units/systemd-kexec.service \
581 units/systemd-exit.service \
582 units/systemd-fsck@.service \
583 units/systemd-fsck-root.service \
584 units/systemd-machine-id-commit.service \
585 units/systemd-udevd.service \
586 units/systemd-udev-trigger.service \
587 units/systemd-udev-settle.service \
588 units/systemd-hwdb-update.service \
589 units/debug-shell.service \
590 units/initrd-parse-etc.service \
591 units/initrd-cleanup.service \
592 units/initrd-udevadm-cleanup-db.service \
593 units/initrd-switch-root.service \
594 units/systemd-nspawn@.service \
595 units/systemd-update-done.service
596
597 if HAVE_UTMP
598 nodist_systemunit_DATA += \
599 units/systemd-update-utmp.service \
600 units/systemd-update-utmp-runlevel.service
601 endif
602
603 dist_userunit_DATA = \
604 units/user/basic.target \
605 units/user/default.target \
606 units/user/exit.target \
607 units/user/graphical-session.target \
608 units/user/graphical-session-pre.target \
609 units/user/bluetooth.target \
610 units/user/busnames.target \
611 units/user/paths.target \
612 units/user/printer.target \
613 units/user/shutdown.target \
614 units/user/smartcard.target \
615 units/user/sockets.target \
616 units/user/sound.target \
617 units/user/timers.target
618
619 nodist_userunit_DATA = \
620 units/user/systemd-exit.service
621
622 dist_systempreset_DATA = \
623 system-preset/90-systemd.preset
624
625 EXTRA_DIST += \
626 units/getty@.service.m4 \
627 units/serial-getty@.service.m4 \
628 units/console-getty.service.m4.in \
629 units/container-getty@.service.m4.in \
630 units/rescue.service.in \
631 units/system-update-cleanup.service.in \
632 units/systemd-initctl.service.in \
633 units/systemd-remount-fs.service.in \
634 units/systemd-volatile-root.service.in \
635 units/systemd-update-utmp.service.in \
636 units/systemd-update-utmp-runlevel.service.in \
637 units/systemd-ask-password-wall.service.in \
638 units/systemd-ask-password-console.service.in \
639 units/systemd-sysctl.service.in \
640 units/emergency.service.in \
641 units/systemd-halt.service.in \
642 units/systemd-poweroff.service.in \
643 units/systemd-reboot.service.in \
644 units/systemd-kexec.service.in \
645 units/systemd-exit.service.in \
646 units/user/systemd-exit.service.in \
647 units/systemd-fsck@.service.in \
648 units/systemd-fsck-root.service.in \
649 units/systemd-machine-id-commit.service.in \
650 units/user@.service.m4.in \
651 units/debug-shell.service.in \
652 units/systemd-suspend.service.in \
653 units/quotaon.service.in \
654 units/initrd-parse-etc.service.in \
655 units/initrd-cleanup.service.in \
656 units/initrd-udevadm-cleanup-db.service.in \
657 units/initrd-switch-root.service.in \
658 units/systemd-nspawn@.service.in \
659 units/systemd-update-done.service.in \
660 units/tmp.mount.m4
661
662 if HAVE_SYSV_COMPAT
663 nodist_systemunit_DATA += \
664 units/rc-local.service \
665 units/halt-local.service
666
667 systemgenerator_PROGRAMS += \
668 systemd-sysv-generator \
669 systemd-rc-local-generator
670 endif
671
672 EXTRA_DIST += \
673 src/systemctl/systemd-sysv-install.SKELETON \
674 units/rc-local.service.in \
675 units/halt-local.service.in
676
677 GENERAL_ALIASES += \
678 $(systemunitdir)/machines.target $(pkgsysconfdir)/system/multi-user.target.wants/machines.target
679
680 dist_doc_DATA = \
681 README \
682 NEWS \
683 CODING_STYLE \
684 LICENSE.LGPL2.1 \
685 LICENSE.GPL2 \
686 DISTRO_PORTING \
687 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
688
689 EXTRA_DIST += \
690 README.md \
691 autogen.sh \
692 .dir-locals.el \
693 .editorconfig \
694 .vimrc \
695 .ycm_extra_conf.py \
696 .travis.yml \
697 .mailmap
698
699 @INTLTOOL_POLICY_RULE@
700
701 systemd-mount-install-hook:
702 -$(LN_S) systemd-mount $(DESTDIR)$(bindir)/systemd-umount
703
704 systemd-mount-uninstall-hook:
705 -rm $(DESTDIR)$(bindir)/systemd-umount
706
707 INSTALL_EXEC_HOOKS += systemd-mount-install-hook
708 UNINSTALL_EXEC_HOOKS += systemd-mount-uninstall-hook
709
710 # ------------------------------------------------------------------------------
711
712 MANPAGES =
713 MANPAGES_ALIAS =
714
715 include Makefile-man.am
716
717 .PHONY: man update-man-list
718 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
719
720 XML_FILES = \
721 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
722 HTML_FILES = \
723 ${XML_FILES:.xml=.html}
724 HTML_ALIAS = \
725 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
726
727 if ENABLE_MANPAGES
728 man_MANS = \
729 $(MANPAGES) \
730 $(MANPAGES_ALIAS)
731
732 noinst_DATA += \
733 $(HTML_FILES) \
734 $(HTML_ALIAS) \
735 docs/html/man
736 endif
737
738 CLEANFILES += \
739 $(man_MANS) \
740 $(HTML_FILES) \
741 $(HTML_ALIAS) \
742 docs/html/man
743
744 docs/html/man:
745 $(AM_V_at)$(MKDIR_P) $(dir $@)
746 $(AM_V_LN)$(LN_S) -f ../../man $@
747
748 man/index.html: man/systemd.index.html
749 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
750
751 if HAVE_PYTHON
752 noinst_DATA += \
753 man/index.html
754 endif
755
756 CLEANFILES += \
757 man/index.html
758
759 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
760 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
761 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
762
763 # This target should only be run manually. It recreates Makefile-man.am
764 # file in the source directory based on all man/*.xml files. Run it after
765 # adding, removing, or changing the conditional in a man page.
766 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
767 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
768 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
769 @echo "Makefile-man.am has been regenerated"
770
771 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
772 $(AM_V_at)$(MKDIR_P) $(dir $@)
773 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
774
775 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
776 $(AM_V_at)$(MKDIR_P) $(dir $@)
777 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
778
779 CLEANFILES += \
780 man/systemd.index.xml \
781 man/systemd.directives.xml
782
783 EXTRA_DIST += \
784 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
785 tools/make-man-index.py \
786 tools/make-man-rules.py \
787 tools/make-directive-index.py \
788 tools/xml_helper.py \
789 man/glib-event-glue.c \
790 man/50-xdg-data-dirs.sh \
791 man/90-rearrange-path.py
792
793 # ------------------------------------------------------------------------------
794 noinst_LTLIBRARIES += \
795 libbasic.la
796
797 libbasic_la_SOURCES = \
798 src/basic/missing.h \
799 src/basic/missing_syscall.h \
800 src/basic/raw-clone.h \
801 src/basic/capability-util.c \
802 src/basic/capability-util.h \
803 src/basic/conf-files.c \
804 src/basic/conf-files.h \
805 src/basic/stdio-util.h \
806 src/basic/hostname-util.h \
807 src/basic/hostname-util.c \
808 src/basic/unit-name.c \
809 src/basic/unit-name.h \
810 src/basic/ioprio.h \
811 src/basic/securebits.h \
812 src/basic/special.h \
813 src/basic/list.h \
814 src/basic/unaligned.h \
815 src/basic/macro.h \
816 src/basic/def.h \
817 src/basic/sparse-endian.h \
818 src/basic/refcnt.h \
819 src/basic/util.c \
820 src/basic/util.h \
821 src/basic/io-util.c \
822 src/basic/io-util.h \
823 src/basic/string-util.c \
824 src/basic/string-util.h \
825 src/basic/fd-util.c \
826 src/basic/fd-util.h \
827 src/basic/parse-util.c \
828 src/basic/parse-util.h \
829 src/basic/user-util.c \
830 src/basic/user-util.h \
831 src/basic/rlimit-util.c \
832 src/basic/rlimit-util.h \
833 src/basic/dirent-util.c \
834 src/basic/dirent-util.h \
835 src/basic/xattr-util.c \
836 src/basic/xattr-util.h \
837 src/basic/chattr-util.c \
838 src/basic/chattr-util.h \
839 src/basic/proc-cmdline.c \
840 src/basic/proc-cmdline.h \
841 src/basic/fs-util.c \
842 src/basic/fs-util.h \
843 src/basic/syslog-util.c \
844 src/basic/syslog-util.h \
845 src/basic/stat-util.c \
846 src/basic/stat-util.h \
847 src/basic/mount-util.c \
848 src/basic/mount-util.h \
849 src/basic/hexdecoct.c \
850 src/basic/hexdecoct.h \
851 src/basic/glob-util.h \
852 src/basic/glob-util.c \
853 src/basic/extract-word.c \
854 src/basic/extract-word.h \
855 src/basic/escape.c \
856 src/basic/escape.h \
857 src/basic/cpu-set-util.c \
858 src/basic/cpu-set-util.h \
859 src/basic/lockfile-util.c \
860 src/basic/lockfile-util.h \
861 src/basic/path-util.c \
862 src/basic/path-util.h \
863 src/basic/time-util.c \
864 src/basic/time-util.h \
865 src/basic/locale-util.c \
866 src/basic/locale-util.h \
867 src/basic/umask-util.h \
868 src/basic/signal-util.c \
869 src/basic/signal-util.h \
870 src/basic/string-table.c \
871 src/basic/string-table.h \
872 src/basic/mempool.c \
873 src/basic/mempool.h \
874 src/basic/hashmap.c \
875 src/basic/hashmap.h \
876 src/basic/hash-funcs.c \
877 src/basic/hash-funcs.h \
878 src/basic/siphash24.c \
879 src/basic/siphash24.h \
880 src/basic/set.h \
881 src/basic/ordered-set.h \
882 src/basic/ordered-set.c \
883 src/basic/bitmap.c \
884 src/basic/bitmap.h \
885 src/basic/prioq.c \
886 src/basic/prioq.h \
887 src/basic/web-util.c \
888 src/basic/web-util.h \
889 src/basic/strv.c \
890 src/basic/strv.h \
891 src/basic/env-util.c \
892 src/basic/env-util.h \
893 src/basic/strbuf.c \
894 src/basic/strbuf.h \
895 src/basic/strxcpyx.c \
896 src/basic/strxcpyx.h \
897 src/basic/log.c \
898 src/basic/log.h \
899 src/basic/bus-label.c \
900 src/basic/bus-label.h \
901 src/basic/ratelimit.h \
902 src/basic/ratelimit.c \
903 src/basic/exec-util.c \
904 src/basic/exec-util.h \
905 src/basic/exit-status.c \
906 src/basic/exit-status.h \
907 src/basic/virt.c \
908 src/basic/virt.h \
909 src/basic/architecture.c \
910 src/basic/architecture.h \
911 src/basic/smack-util.c \
912 src/basic/smack-util.h \
913 src/basic/device-nodes.c \
914 src/basic/device-nodes.h \
915 src/basic/utf8.c \
916 src/basic/utf8.h \
917 src/basic/gunicode.c \
918 src/basic/gunicode.h \
919 src/basic/socket-util.c \
920 src/basic/socket-util.h \
921 src/basic/in-addr-util.c \
922 src/basic/in-addr-util.h \
923 src/basic/ether-addr-util.h \
924 src/basic/ether-addr-util.c \
925 src/basic/replace-var.c \
926 src/basic/replace-var.h \
927 src/basic/clock-util.c \
928 src/basic/clock-util.h \
929 src/basic/calendarspec.c \
930 src/basic/calendarspec.h \
931 src/basic/fileio.c \
932 src/basic/fileio.h \
933 src/basic/MurmurHash2.c \
934 src/basic/MurmurHash2.h \
935 src/basic/mkdir.c \
936 src/basic/mkdir.h \
937 src/basic/cgroup-util.c \
938 src/basic/cgroup-util.h \
939 src/basic/errno-list.c \
940 src/basic/errno-list.h \
941 src/basic/af-list.c \
942 src/basic/af-list.h \
943 src/basic/arphrd-list.c \
944 src/basic/arphrd-list.h \
945 src/basic/terminal-util.c \
946 src/basic/terminal-util.h \
947 src/basic/login-util.h \
948 src/basic/login-util.c \
949 src/basic/cap-list.c \
950 src/basic/cap-list.h \
951 src/basic/audit-util.c \
952 src/basic/audit-util.h \
953 src/basic/xml.c \
954 src/basic/xml.h \
955 src/basic/barrier.c \
956 src/basic/barrier.h \
957 src/basic/async.c \
958 src/basic/async.h \
959 src/basic/memfd-util.c \
960 src/basic/memfd-util.h \
961 src/basic/process-util.c \
962 src/basic/process-util.h \
963 src/basic/random-util.c \
964 src/basic/random-util.h \
965 src/basic/verbs.c \
966 src/basic/verbs.h \
967 src/basic/sigbus.c \
968 src/basic/sigbus.h \
969 src/basic/build.h \
970 src/basic/socket-label.c \
971 src/basic/label.c \
972 src/basic/label.h \
973 src/basic/btrfs-util.c \
974 src/basic/btrfs-util.h \
975 src/basic/btrfs-ctree.h \
976 src/basic/selinux-util.c \
977 src/basic/selinux-util.h \
978 src/basic/mkdir-label.c \
979 src/basic/fileio-label.c \
980 src/basic/fileio-label.h \
981 src/basic/rm-rf.c \
982 src/basic/rm-rf.h \
983 src/basic/copy.c \
984 src/basic/copy.h \
985 src/basic/alloc-util.h \
986 src/basic/alloc-util.c \
987 src/basic/format-util.h \
988 src/basic/nss-util.h \
989 src/basic/khash.h \
990 src/basic/khash.c \
991 src/basic/journal-importer.h \
992 src/basic/journal-importer.c
993
994 nodist_libbasic_la_SOURCES = \
995 src/basic/errno-from-name.h \
996 src/basic/errno-to-name.h \
997 src/basic/af-from-name.h \
998 src/basic/af-to-name.h \
999 src/basic/arphrd-from-name.h \
1000 src/basic/arphrd-to-name.h \
1001 src/basic/cap-from-name.h \
1002 src/basic/cap-to-name.h
1003
1004 libbasic_la_CFLAGS = \
1005 $(AM_CFLAGS) \
1006 $(SELINUX_CFLAGS) \
1007 $(CAP_CFLAGS) \
1008 -pthread
1009
1010 libbasic_la_LIBADD = \
1011 $(SELINUX_LIBS) \
1012 $(CAP_LIBS) \
1013 -lrt
1014
1015 # -----------------------------------------------------------------------------
1016 noinst_LTLIBRARIES += \
1017 libshared.la
1018
1019 libshared_la_SOURCES = \
1020 src/shared/output-mode.h \
1021 src/shared/output-mode.c \
1022 src/shared/gpt.h \
1023 src/shared/udev-util.h \
1024 src/shared/linux/auto_dev-ioctl.h \
1025 src/shared/linux-3.13/dm-ioctl.h \
1026 src/shared/initreq.h \
1027 src/shared/dns-domain.c \
1028 src/shared/dns-domain.h \
1029 src/shared/efivars.c \
1030 src/shared/efivars.h \
1031 src/shared/fstab-util.c \
1032 src/shared/fstab-util.h \
1033 src/shared/sleep-config.c \
1034 src/shared/sleep-config.h \
1035 src/shared/conf-parser.c \
1036 src/shared/conf-parser.h \
1037 src/shared/pager.c \
1038 src/shared/pager.h \
1039 src/shared/spawn-polkit-agent.c \
1040 src/shared/spawn-polkit-agent.h \
1041 src/shared/apparmor-util.c \
1042 src/shared/apparmor-util.h \
1043 src/shared/ima-util.c \
1044 src/shared/ima-util.h \
1045 src/shared/journal-util.c \
1046 src/shared/journal-util.h \
1047 src/shared/ptyfwd.c \
1048 src/shared/ptyfwd.h \
1049 src/shared/base-filesystem.c \
1050 src/shared/base-filesystem.h \
1051 src/shared/uid-range.c \
1052 src/shared/uid-range.h \
1053 src/shared/install.c \
1054 src/shared/install.h \
1055 src/shared/install-printf.c \
1056 src/shared/install-printf.h \
1057 src/shared/path-lookup.c \
1058 src/shared/path-lookup.h \
1059 src/shared/specifier.c \
1060 src/shared/specifier.h \
1061 src/shared/dev-setup.c \
1062 src/shared/dev-setup.h \
1063 src/shared/dropin.c \
1064 src/shared/dropin.h \
1065 src/shared/condition.c \
1066 src/shared/condition.h \
1067 src/shared/clean-ipc.c \
1068 src/shared/clean-ipc.h \
1069 src/shared/generator.h \
1070 src/shared/generator.c \
1071 src/shared/acpi-fpdt.h \
1072 src/shared/acpi-fpdt.c \
1073 src/shared/boot-timestamps.h \
1074 src/shared/boot-timestamps.c \
1075 src/shared/cgroup-show.c \
1076 src/shared/cgroup-show.h \
1077 src/shared/utmp-wtmp.h \
1078 src/shared/watchdog.c \
1079 src/shared/watchdog.h \
1080 src/shared/spawn-ask-password-agent.c \
1081 src/shared/spawn-ask-password-agent.h \
1082 src/shared/ask-password-api.c \
1083 src/shared/ask-password-api.h \
1084 src/shared/switch-root.h \
1085 src/shared/switch-root.c \
1086 src/shared/import-util.c \
1087 src/shared/import-util.h \
1088 src/shared/sysctl-util.c \
1089 src/shared/sysctl-util.h \
1090 src/shared/bus-util.c \
1091 src/shared/bus-util.h \
1092 src/shared/logs-show.c \
1093 src/shared/logs-show.h \
1094 src/shared/machine-image.c \
1095 src/shared/machine-image.h \
1096 src/shared/machine-pool.c \
1097 src/shared/machine-pool.h \
1098 src/shared/loop-util.c \
1099 src/shared/loop-util.h \
1100 src/shared/resolve-util.c \
1101 src/shared/resolve-util.h \
1102 src/shared/bus-unit-util.c \
1103 src/shared/bus-unit-util.h \
1104 src/shared/vlan-util.h \
1105 src/shared/vlan-util.c \
1106 src/shared/tests.h \
1107 src/shared/tests.c \
1108 src/shared/fdset.c \
1109 src/shared/fdset.h \
1110 src/shared/nsflags.h \
1111 src/shared/nsflags.c \
1112 src/shared/dissect-image.c \
1113 src/shared/dissect-image.h \
1114 src/shared/volatile-util.c \
1115 src/shared/volatile-util.h
1116
1117 if HAVE_UTMP
1118 libshared_la_SOURCES += \
1119 src/shared/utmp-wtmp.c
1120 endif
1121
1122 if HAVE_SECCOMP
1123 libshared_la_SOURCES += \
1124 src/shared/seccomp-util.h \
1125 src/shared/seccomp-util.c
1126 endif
1127
1128 if HAVE_ACL
1129 libshared_la_SOURCES += \
1130 src/shared/acl-util.c \
1131 src/shared/acl-util.h
1132 endif
1133
1134 libshared_la_CFLAGS = \
1135 $(AM_CFLAGS) \
1136 $(ACL_CFLAGS) \
1137 $(LIBIDN_CFLAGS) \
1138 $(SECCOMP_CFLAGS) \
1139 $(BLKID_CFLAGS) \
1140 $(LIBCRYPTSETUP_CFLAGS)
1141
1142 libshared_la_LIBADD = \
1143 libsystemd-internal.la \
1144 libbasic.la \
1145 libsystemd-journal-internal.la \
1146 libudev-internal.la \
1147 $(ACL_LIBS) \
1148 $(LIBIDN_LIBS) \
1149 $(SECCOMP_LIBS) \
1150 $(BLKID_LIBS) \
1151 $(LIBCRYPTSETUP_LIBS)
1152
1153 rootlibexec_LTLIBRARIES += \
1154 libsystemd-shared.la
1155
1156 libsystemd_shared_la_SOURCES = \
1157 $(libbasic_la_SOURCES) \
1158 $(libshared_la_SOURCES) \
1159 $(libsystemd_internal_la_SOURCES) \
1160 $(libsystemd_journal_internal_la_SOURCES) \
1161 $(libudev_internal_la_SOURCES)
1162
1163 libsystemd_shared_la_CFLAGS = \
1164 $(AM_CFLAGS) \
1165 $(libbasic_la_CFLAGS) \
1166 $(libshared_la_CFLAGS) \
1167 $(libsystemd_internal_la_CFLAGS) \
1168 $(libsystemd_journal_internal_la_CFLAGS) \
1169 $(libudev_internal_la_CFLAGS) \
1170 $(ACL_CFLAGS) \
1171 $(LIBIDN_CFLAGS) \
1172 $(SECCOMP_CFLAGS) \
1173 $(BLKID_CFLAGS) \
1174 $(LIBCRYPTSETUP_CFLAGS) \
1175 -fvisibility=default
1176
1177 # We can't use libshared_la_LIBADD here because it would
1178 # pull in libsystemd*-internal.la
1179 libsystemd_shared_la_LIBADD = \
1180 $(libbasic_la_LIBADD) \
1181 $(libsystemd_internal_la_LIBADD) \
1182 $(libsystemd_journal_internal_la_LIBADD) \
1183 $(libudev_internal_la_LIBADD) \
1184 $(ACL_LIBS) \
1185 $(LIBIDN_LIBS) \
1186 $(SECCOMP_LIBS) \
1187 $(BLKID_LIBS) \
1188 $(LIBCRYPTSETUP_LIBS)
1189
1190 libsystemd_shared_la_LDFLAGS = \
1191 $(AM_LDFLAGS) \
1192 -release $(PACKAGE_VERSION)
1193
1194
1195 # -----------------------------------------------------------------------------
1196 if HAVE_LIBIPTC
1197 noinst_LTLIBRARIES += \
1198 libfirewall.la
1199
1200 libfirewall_la_SOURCES = \
1201 src/shared/firewall-util.h \
1202 src/shared/firewall-util.c
1203
1204 libfirewall_la_CFLAGS = \
1205 $(AM_CFLAGS) \
1206 $(LIBIPTC_CFLAGS)
1207
1208 libfirewall_la_LIBADD = \
1209 $(LIBIPTC_LIBS)
1210 endif
1211
1212 # -----------------------------------------------------------------------------
1213 if ENABLE_LDCONFIG
1214 dist_systemunit_DATA += \
1215 units/ldconfig.service
1216
1217 SYSINIT_TARGET_WANTS += \
1218 ldconfig.service
1219 endif
1220
1221 # ------------------------------------------------------------------------------
1222 noinst_LTLIBRARIES += \
1223 libcore.la
1224
1225 libcore_la_SOURCES = \
1226 src/core/unit.c \
1227 src/core/unit.h \
1228 src/core/unit-printf.c \
1229 src/core/unit-printf.h \
1230 src/core/job.c \
1231 src/core/job.h \
1232 src/core/manager.c \
1233 src/core/manager.h \
1234 src/core/transaction.c \
1235 src/core/transaction.h \
1236 src/core/load-fragment.c \
1237 src/core/load-fragment.h \
1238 src/core/service.c \
1239 src/core/service.h \
1240 src/core/socket.c \
1241 src/core/socket.h \
1242 src/core/busname.c \
1243 src/core/busname.h \
1244 src/core/bus-policy.c \
1245 src/core/bus-policy.h \
1246 src/core/target.c \
1247 src/core/target.h \
1248 src/core/device.c \
1249 src/core/device.h \
1250 src/core/mount.c \
1251 src/core/mount.h \
1252 src/core/automount.c \
1253 src/core/automount.h \
1254 src/core/swap.c \
1255 src/core/swap.h \
1256 src/core/timer.c \
1257 src/core/timer.h \
1258 src/core/path.c \
1259 src/core/path.h \
1260 src/core/slice.c \
1261 src/core/slice.h \
1262 src/core/scope.c \
1263 src/core/scope.h \
1264 src/core/load-dropin.c \
1265 src/core/load-dropin.h \
1266 src/core/execute.c \
1267 src/core/execute.h \
1268 src/core/dynamic-user.c \
1269 src/core/dynamic-user.h \
1270 src/core/kill.c \
1271 src/core/kill.h \
1272 src/core/dbus.c \
1273 src/core/dbus.h \
1274 src/core/dbus-manager.c \
1275 src/core/dbus-manager.h \
1276 src/core/dbus-unit.c \
1277 src/core/dbus-unit.h \
1278 src/core/dbus-job.c \
1279 src/core/dbus-job.h \
1280 src/core/dbus-service.c \
1281 src/core/dbus-service.h \
1282 src/core/dbus-socket.c \
1283 src/core/dbus-socket.h \
1284 src/core/dbus-busname.c \
1285 src/core/dbus-busname.h \
1286 src/core/dbus-target.c \
1287 src/core/dbus-target.h \
1288 src/core/dbus-device.c \
1289 src/core/dbus-device.h \
1290 src/core/dbus-mount.c \
1291 src/core/dbus-mount.h \
1292 src/core/dbus-automount.c \
1293 src/core/dbus-automount.h \
1294 src/core/dbus-swap.c \
1295 src/core/dbus-swap.h \
1296 src/core/dbus-timer.c \
1297 src/core/dbus-timer.h \
1298 src/core/dbus-path.c \
1299 src/core/dbus-path.h \
1300 src/core/dbus-slice.c \
1301 src/core/dbus-slice.h \
1302 src/core/dbus-scope.c \
1303 src/core/dbus-scope.h \
1304 src/core/dbus-execute.c \
1305 src/core/dbus-execute.h \
1306 src/core/dbus-kill.c \
1307 src/core/dbus-kill.h \
1308 src/core/dbus-cgroup.c \
1309 src/core/dbus-cgroup.h \
1310 src/core/cgroup.c \
1311 src/core/cgroup.h \
1312 src/core/selinux-access.c \
1313 src/core/selinux-access.h \
1314 src/core/selinux-setup.c \
1315 src/core/selinux-setup.h \
1316 src/core/smack-setup.c \
1317 src/core/smack-setup.h \
1318 src/core/ima-setup.c \
1319 src/core/ima-setup.h \
1320 src/core/locale-setup.h \
1321 src/core/locale-setup.c \
1322 src/core/hostname-setup.c \
1323 src/core/hostname-setup.h \
1324 src/core/machine-id-setup.c \
1325 src/core/machine-id-setup.h \
1326 src/core/mount-setup.c \
1327 src/core/mount-setup.h \
1328 src/core/kmod-setup.c \
1329 src/core/kmod-setup.h \
1330 src/core/loopback-setup.h \
1331 src/core/loopback-setup.c \
1332 src/core/namespace.c \
1333 src/core/namespace.h \
1334 src/core/killall.h \
1335 src/core/killall.c \
1336 src/core/audit-fd.c \
1337 src/core/audit-fd.h \
1338 src/core/show-status.c \
1339 src/core/show-status.h \
1340 src/core/emergency-action.c \
1341 src/core/emergency-action.h
1342
1343 nodist_libcore_la_SOURCES = \
1344 src/core/load-fragment-gperf.c \
1345 src/core/load-fragment-gperf-nulstr.c
1346
1347 libcore_la_CFLAGS = \
1348 $(AM_CFLAGS) \
1349 $(PAM_CFLAGS) \
1350 $(AUDIT_CFLAGS) \
1351 $(KMOD_CFLAGS) \
1352 $(APPARMOR_CFLAGS) \
1353 $(MOUNT_CFLAGS) \
1354 $(SECCOMP_CFLAGS)
1355
1356 libcore_la_LIBADD = \
1357 libsystemd-shared.la \
1358 $(PAM_LIBS) \
1359 $(AUDIT_LIBS) \
1360 $(KMOD_LIBS) \
1361 $(APPARMOR_LIBS) \
1362 $(MOUNT_LIBS)
1363
1364 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1365 $(AM_V_at)$(MKDIR_P) $(dir $@)
1366 $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
1367
1368 gperf_gperf_m4_sources = \
1369 src/core/load-fragment-gperf.gperf.m4
1370
1371 gperf_txt_sources = \
1372 src/basic/errno-list.txt \
1373 src/basic/af-list.txt \
1374 src/basic/arphrd-list.txt \
1375 src/basic/cap-list.txt
1376
1377 BUILT_SOURCES += \
1378 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1379 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1380 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1381 $(gperf_txt_sources:-list.txt=-from-name.h) \
1382 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
1383
1384 CLEANFILES += \
1385 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1386 DISTCLEANFILES = \
1387 $(gperf_txt_sources)
1388
1389 EXTRA_DIST += \
1390 $(gperf_gperf_m4_sources) \
1391 $(gperf_gperf_sources)
1392
1393 CLEANFILES += \
1394 $(gperf_txt_sources)
1395
1396 %-from-name.gperf: %-list.txt
1397 $(AM_V_at)$(MKDIR_P) $(dir $@)
1398 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1399
1400 %-from-name.h: %-from-name.gperf
1401 $(AM_V_at)$(MKDIR_P) $(dir $@)
1402 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1403
1404
1405 src/basic/errno-list.txt:
1406 $(AM_V_at)$(MKDIR_P) $(dir $@)
1407 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1408
1409 src/basic/errno-to-name.h: src/basic/errno-list.txt
1410 $(AM_V_at)$(MKDIR_P) $(dir $@)
1411 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1412
1413
1414 src/basic/af-list.txt:
1415 $(AM_V_at)$(MKDIR_P) $(dir $@)
1416 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1417
1418 src/basic/af-to-name.h: src/basic/af-list.txt
1419 $(AM_V_at)$(MKDIR_P) $(dir $@)
1420 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1421
1422
1423 src/basic/arphrd-list.txt:
1424 $(AM_V_at)$(MKDIR_P) $(dir $@)
1425 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1426
1427 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1428 $(AM_V_at)$(MKDIR_P) $(dir $@)
1429 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1430
1431 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1432 $(AM_V_at)$(MKDIR_P) $(dir $@)
1433 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1434
1435
1436 src/basic/cap-list.txt:
1437 $(AM_V_at)$(MKDIR_P) $(dir $@)
1438 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
1439
1440 src/basic/cap-to-name.h: src/basic/cap-list.txt
1441 $(AM_V_at)$(MKDIR_P) $(dir $@)
1442 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1443
1444 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1445 $(AM_V_at)$(MKDIR_P) $(dir $@)
1446 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1447
1448 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1449 $(AM_V_at)$(MKDIR_P) $(dir $@)
1450 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1451
1452 audit_list_includes = -include linux/audit.h -include missing.h
1453 if HAVE_AUDIT
1454 audit_list_includes += -include libaudit.h
1455 endif
1456
1457 src/journal/audit_type-list.txt:
1458 $(AM_V_at)$(MKDIR_P) $(dir $@)
1459 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM $(audit_list_includes) - </dev/null | grep -vE 'AUDIT_.*(FIRST|LAST)_' | $(SED) -r -n 's/^#define\s+AUDIT_(\w+)\s+([0-9]{4})\s*$$/\1\t\2/p' | sort -k2 >$@
1460
1461 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1462 $(AM_V_at)$(MKDIR_P) $(dir $@)
1463 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" } {printf " case AUDIT_%s: return \"%s\";\n", $$1, $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@
1464
1465
1466 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1467 $(AM_V_at)$(MKDIR_P) $(dir $@)
1468 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1469
1470 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1471 $(AM_V_at)$(MKDIR_P) $(dir $@)
1472 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@
1473
1474 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1475 $(AM_V_at)$(MKDIR_P) $(dir $@)
1476 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1477
1478 # ------------------------------------------------------------------------------
1479 systemd_SOURCES = \
1480 src/core/main.c
1481
1482 systemd_CFLAGS = \
1483 $(AM_CFLAGS) \
1484 $(SECCOMP_CFLAGS) \
1485 $(MOUNT_CFLAGS)
1486
1487 systemd_LDADD = \
1488 libcore.la
1489
1490 dist_pkgsysconf_DATA += \
1491 src/core/system.conf \
1492 src/core/user.conf
1493
1494 dist_dbuspolicy_DATA += \
1495 src/core/org.freedesktop.systemd1.conf
1496
1497 dist_dbussystemservice_DATA += \
1498 src/core/org.freedesktop.systemd1.service
1499
1500 polkitpolicy_in_in_files += \
1501 src/core/org.freedesktop.systemd1.policy.in.in
1502
1503 pkgconfigdata_DATA += \
1504 src/core/systemd.pc
1505
1506 if ENABLE_RPM_MACROS
1507 nodist_rpmmacros_DATA = \
1508 src/core/macros.systemd
1509 endif
1510
1511 BUILT_SOURCES += \
1512 src/core/triggers.systemd
1513
1514 EXTRA_DIST += \
1515 src/core/systemd.pc.in \
1516 src/core/macros.systemd.in \
1517 src/core/triggers.systemd.in
1518
1519 # ------------------------------------------------------------------------------
1520
1521 manual_tests += \
1522 test-ns \
1523 test-cgroup \
1524 test-install \
1525 test-btrfs \
1526 test-acd \
1527 test-ipv4ll-manual \
1528 test-ask-password-api \
1529 test-dissect-image
1530
1531 unsafe_tests = \
1532 test-hostname \
1533 test-ipcrm
1534
1535 if HAVE_LIBIPTC
1536 manual_tests += \
1537 test-firewall-util
1538 endif
1539
1540 if HAVE_KMOD
1541 manual_tests += \
1542 test-netlink-manual
1543 endif
1544
1545 tests += \
1546 test-daemon \
1547 test-log \
1548 test-loopback \
1549 test-engine \
1550 test-watchdog \
1551 test-cgroup-mask \
1552 test-job-type \
1553 test-env-util \
1554 test-strbuf \
1555 test-strv \
1556 test-path \
1557 test-path-util \
1558 test-strxcpyx \
1559 test-siphash24 \
1560 test-unit-name \
1561 test-unit-file \
1562 test-utf8 \
1563 test-ellipsize \
1564 test-util \
1565 test-mount-util \
1566 test-exec-util \
1567 test-cpu-set-util \
1568 test-hexdecoct \
1569 test-escape \
1570 test-alloc-util \
1571 test-proc-cmdline \
1572 test-io-util \
1573 test-glob-util \
1574 test-xattr-util \
1575 test-fs-util \
1576 test-web-util \
1577 test-stat-util \
1578 test-fd-util \
1579 test-string-util \
1580 test-extract-word \
1581 test-parse-util \
1582 test-user-util \
1583 test-hostname-util \
1584 test-process-util \
1585 test-terminal-util \
1586 test-path-lookup \
1587 test-barrier \
1588 test-tmpfiles \
1589 test-namespace \
1590 test-date \
1591 test-sleep \
1592 test-replace-var \
1593 test-sched-prio \
1594 test-calendarspec \
1595 test-strip-tab-ansi \
1596 test-cgroup-util \
1597 test-fstab-util \
1598 test-prioq \
1599 test-fileio \
1600 test-time \
1601 test-clock \
1602 test-hashmap \
1603 test-set \
1604 test-bitmap \
1605 test-list \
1606 test-unaligned \
1607 test-tables \
1608 test-device-nodes \
1609 test-xml \
1610 test-architecture \
1611 test-socket-util \
1612 test-fdset \
1613 test-conf-files \
1614 test-conf-parser \
1615 test-capability \
1616 test-async \
1617 test-ratelimit \
1618 test-condition \
1619 test-uid-range \
1620 test-locale-util \
1621 test-execute \
1622 test-copy \
1623 test-cap-list \
1624 test-sigbus \
1625 test-verbs \
1626 test-af-list \
1627 test-arphrd-list \
1628 test-dns-domain \
1629 test-install-root \
1630 test-rlimit-util \
1631 test-signal-util \
1632 test-selinux \
1633 test-sizeof \
1634 test-journal-importer
1635
1636 if HAVE_ACL
1637 tests += \
1638 test-acl-util
1639 endif
1640
1641 if HAVE_SECCOMP
1642 tests += \
1643 test-seccomp
1644 endif
1645
1646 TEST_DATA_FILES += \
1647 test/a.service \
1648 test/basic.target \
1649 test/b.service \
1650 test/c.service \
1651 test/daughter.service \
1652 test/d.service \
1653 test/end.service \
1654 test/e.service \
1655 test/f.service \
1656 test/grandchild.service \
1657 test/g.service \
1658 test/hello-after-sleep.target \
1659 test/hello.service \
1660 test/h.service \
1661 test/parent-deep.slice \
1662 test/parent.slice \
1663 test/sched_idle_bad.service \
1664 test/sched_idle_ok.service \
1665 test/sched_rr_bad.service \
1666 test/sched_rr_change.service \
1667 test/sched_rr_ok.service \
1668 test/shutdown.target \
1669 test/sleep.service \
1670 test/sockets.target \
1671 test/son.service \
1672 test/sysinit.target \
1673 test/testsuite.target \
1674 test/timers.target \
1675 test/unstoppable.service \
1676 test/test-path/paths.target \
1677 test/test-path/basic.target \
1678 test/test-path/sysinit.target \
1679 test/test-path/path-changed.service \
1680 test/test-path/path-directorynotempty.service \
1681 test/test-path/path-existsglob.service \
1682 test/test-path/path-exists.service \
1683 test/test-path/path-makedirectory.service \
1684 test/test-path/path-modified.service \
1685 test/test-path/path-mycustomunit.service \
1686 test/test-path/path-service.service \
1687 test/test-path/path-changed.path \
1688 test/test-path/path-directorynotempty.path \
1689 test/test-path/path-existsglob.path \
1690 test/test-path/path-exists.path \
1691 test/test-path/path-makedirectory.path \
1692 test/test-path/path-modified.path \
1693 test/test-path/path-unit.path \
1694 test/test-execute/exec-environment-empty.service \
1695 test/test-execute/exec-environment-multiple.service \
1696 test/test-execute/exec-environment.service \
1697 test/test-execute/exec-passenvironment-absent.service \
1698 test/test-execute/exec-passenvironment-empty.service \
1699 test/test-execute/exec-passenvironment-repeated.service \
1700 test/test-execute/exec-passenvironment.service \
1701 test/test-execute/exec-group.service \
1702 test/test-execute/exec-group-nfsnobody.service \
1703 test/test-execute/exec-supplementarygroups.service \
1704 test/test-execute/exec-supplementarygroups-single-group.service \
1705 test/test-execute/exec-supplementarygroups-single-group-user.service \
1706 test/test-execute/exec-supplementarygroups-multiple-groups-default-group-user.service \
1707 test/test-execute/exec-supplementarygroups-multiple-groups-withgid.service \
1708 test/test-execute/exec-supplementarygroups-multiple-groups-withuid.service \
1709 test/test-execute/exec-dynamicuser-fixeduser.service \
1710 test/test-execute/exec-dynamicuser-fixeduser-one-supplementarygroup.service \
1711 test/test-execute/exec-dynamicuser-supplementarygroups.service \
1712 test/test-execute/exec-ignoresigpipe-no.service \
1713 test/test-execute/exec-ignoresigpipe-yes.service \
1714 test/test-execute/exec-personality-x86-64.service \
1715 test/test-execute/exec-personality-x86.service \
1716 test/test-execute/exec-personality-s390.service \
1717 test/test-execute/exec-personality-ppc64.service \
1718 test/test-execute/exec-personality-ppc64le.service \
1719 test/test-execute/exec-personality-aarch64.service \
1720 test/test-execute/exec-privatedevices-no.service \
1721 test/test-execute/exec-privatedevices-yes.service \
1722 test/test-execute/exec-privatedevices-no-capability-mknod.service \
1723 test/test-execute/exec-privatedevices-yes-capability-mknod.service \
1724 test/test-execute/exec-protectkernelmodules-no-capabilities.service \
1725 test/test-execute/exec-protectkernelmodules-yes-capabilities.service \
1726 test/test-execute/exec-protectkernelmodules-yes-mount-propagation.service \
1727 test/test-execute/exec-privatetmp-no.service \
1728 test/test-execute/exec-privatetmp-yes.service \
1729 test/test-execute/exec-readonlypaths.service \
1730 test/test-execute/exec-readonlypaths-mount-propagation.service \
1731 test/test-execute/exec-readwritepaths-mount-propagation.service \
1732 test/test-execute/exec-inaccessiblepaths-mount-propagation.service \
1733 test/test-execute/exec-spec-interpolation.service \
1734 test/test-execute/exec-systemcallerrornumber.service \
1735 test/test-execute/exec-systemcallfilter-failing2.service \
1736 test/test-execute/exec-systemcallfilter-failing.service \
1737 test/test-execute/exec-systemcallfilter-not-failing2.service \
1738 test/test-execute/exec-systemcallfilter-not-failing.service \
1739 test/test-execute/exec-systemcallfilter-system-user.service \
1740 test/test-execute/exec-systemcallfilter-system-user-nfsnobody.service \
1741 test/test-execute/exec-user.service \
1742 test/test-execute/exec-user-nfsnobody.service \
1743 test/test-execute/exec-workingdirectory.service \
1744 test/test-execute/exec-umask-0177.service \
1745 test/test-execute/exec-umask-default.service \
1746 test/test-execute/exec-privatenetwork-yes.service \
1747 test/test-execute/exec-environmentfile.service \
1748 test/test-execute/exec-oomscoreadjust-positive.service \
1749 test/test-execute/exec-oomscoreadjust-negative.service \
1750 test/test-execute/exec-ioschedulingclass-best-effort.service \
1751 test/test-execute/exec-ioschedulingclass-idle.service \
1752 test/test-execute/exec-ioschedulingclass-none.service \
1753 test/test-execute/exec-ioschedulingclass-realtime.service \
1754 test/test-execute/exec-capabilityboundingset-invert.service \
1755 test/test-execute/exec-capabilityboundingset-merge.service \
1756 test/test-execute/exec-capabilityboundingset-reset.service \
1757 test/test-execute/exec-capabilityboundingset-simple.service \
1758 test/test-execute/exec-capabilityambientset.service \
1759 test/test-execute/exec-capabilityambientset-nfsnobody.service \
1760 test/test-execute/exec-capabilityambientset-merge.service \
1761 test/test-execute/exec-capabilityambientset-merge-nfsnobody.service \
1762 test/test-execute/exec-runtimedirectory.service \
1763 test/test-execute/exec-runtimedirectory-mode.service \
1764 test/test-execute/exec-runtimedirectory-owner.service \
1765 test/test-execute/exec-runtimedirectory-owner-nfsnobody.service \
1766 test/test-execute/exec-restrict-namespaces-no.service \
1767 test/test-execute/exec-restrict-namespaces-yes.service \
1768 test/test-execute/exec-restrict-namespaces-mnt.service \
1769 test/test-execute/exec-restrict-namespaces-mnt-blacklist.service \
1770 test/test-execute/exec-read-only-path-succeed.service \
1771 test/test-execute/exec-privatedevices-yes-capability-sys-rawio.service \
1772 test/test-execute/exec-privatedevices-no-capability-sys-rawio.service \
1773 test/bus-policy/hello.conf \
1774 test/bus-policy/methods.conf \
1775 test/bus-policy/ownerships.conf \
1776 test/bus-policy/signals.conf \
1777 test/bus-policy/check-own-rules.conf \
1778 test/bus-policy/many-rules.conf \
1779 test/bus-policy/test.conf \
1780 test/hwdb/10-bad.hwdb
1781
1782
1783 EXTRA_DIST += \
1784 src/test/test-helper.h
1785
1786 test_device_nodes_SOURCES = \
1787 src/test/test-device-nodes.c
1788
1789 test_device_nodes_LDADD = \
1790 libsystemd-shared.la
1791
1792 test_engine_SOURCES = \
1793 src/test/test-engine.c
1794
1795 test_engine_CFLAGS = \
1796 $(AM_CFLAGS) \
1797 $(SECCOMP_CFLAGS) \
1798 $(MOUNT_CFLAGS)
1799
1800 test_engine_LDADD = \
1801 libcore.la
1802
1803 test_job_type_SOURCES = \
1804 src/test/test-job-type.c
1805
1806 test_job_type_CFLAGS = \
1807 $(AM_CFLAGS) \
1808 $(SECCOMP_CFLAGS) \
1809 $(MOUNT_CFLAGS)
1810
1811 test_job_type_LDADD = \
1812 libcore.la
1813
1814 test_ns_SOURCES = \
1815 src/test/test-ns.c
1816
1817 test_ns_CFLAGS = \
1818 $(AM_CFLAGS) \
1819 $(SECCOMP_CFLAGS)
1820
1821 test_ns_LDADD = \
1822 libcore.la
1823
1824 test_loopback_SOURCES = \
1825 src/test/test-loopback.c
1826
1827 test_loopback_LDADD = \
1828 libcore.la
1829
1830 test_hostname_SOURCES = \
1831 src/test/test-hostname.c
1832
1833 test_hostname_LDADD = \
1834 libcore.la
1835
1836 test_dns_domain_SOURCES = \
1837 src/test/test-dns-domain.c
1838
1839 test_dns_domain_LDADD = \
1840 libsystemd-network.la \
1841 libsystemd-shared.la
1842
1843
1844 if ENABLE_EFI
1845 tests += \
1846 test-boot-timestamps
1847
1848 test_boot_timestamps_SOURCES = \
1849 src/test/test-boot-timestamps.c
1850
1851 test_boot_timestamps_LDADD = \
1852 libsystemd-shared.la
1853 endif
1854
1855 test_unit_name_SOURCES = \
1856 src/test/test-unit-name.c
1857
1858 test_unit_name_CFLAGS = \
1859 $(AM_CFLAGS) \
1860 $(SECCOMP_CFLAGS) \
1861 $(MOUNT_CFLAGS)
1862
1863 test_unit_name_LDADD = \
1864 libcore.la
1865
1866 test_unit_file_SOURCES = \
1867 src/test/test-unit-file.c
1868
1869 test_unit_file_CFLAGS = \
1870 $(AM_CFLAGS) \
1871 $(SECCOMP_CFLAGS) \
1872 $(MOUNT_CFLAGS)
1873
1874 test_unit_file_LDADD = \
1875 libcore.la
1876
1877 test_utf8_SOURCES = \
1878 src/test/test-utf8.c
1879
1880 test_utf8_LDADD = \
1881 libsystemd-shared.la
1882
1883 test_capability_SOURCES = \
1884 src/test/test-capability.c
1885
1886 test_capability_CFLAGS = \
1887 $(AM_CFLAGS) \
1888 $(CAP_CFLAGS)
1889
1890 test_capability_LDADD = \
1891 libsystemd-shared.la \
1892 $(CAP_LIBS)
1893
1894 test_async_SOURCES = \
1895 src/test/test-async.c
1896
1897 test_async_LDADD = \
1898 libsystemd-shared.la
1899
1900 test_locale_util_SOURCES = \
1901 src/test/test-locale-util.c
1902
1903 test_locale_util_LDADD = \
1904 libsystemd-shared.la
1905
1906 test_copy_SOURCES = \
1907 src/test/test-copy.c
1908
1909 # Link statically to ensure file is large
1910 test_copy_LDADD = \
1911 libshared.la
1912
1913 test_sigbus_SOURCES = \
1914 src/test/test-sigbus.c
1915
1916 test_sigbus_LDADD = \
1917 libsystemd-shared.la
1918
1919 test_condition_SOURCES = \
1920 src/test/test-condition.c
1921
1922 test_condition_LDADD = \
1923 libsystemd-shared.la
1924
1925 test_fdset_SOURCES = \
1926 src/test/test-fdset.c
1927
1928 test_fdset_LDADD = \
1929 libsystemd-shared.la
1930
1931 test_fstab_util_SOURCES = \
1932 src/test/test-fstab-util.c
1933
1934 test_fstab_util_LDADD = \
1935 libsystemd-shared.la
1936
1937 test_ratelimit_SOURCES = \
1938 src/test/test-ratelimit.c
1939
1940 test_ratelimit_LDADD = \
1941 libsystemd-shared.la
1942
1943 test_util_SOURCES = \
1944 src/test/test-util.c
1945
1946 test_util_LDADD = \
1947 libsystemd-shared.la
1948
1949 test_mount_util_SOURCES = \
1950 src/test/test-mount-util.c
1951
1952 test_mount_util_LDADD = \
1953 libsystemd-shared.la
1954
1955 test_exec_util_SOURCES = \
1956 src/test/test-exec-util.c
1957
1958 test_exec_util_LDADD = \
1959 libsystemd-shared.la
1960
1961 test_hexdecoct_SOURCES = \
1962 src/test/test-hexdecoct.c
1963
1964 test_hexdecoct_LDADD = \
1965 libsystemd-shared.la
1966
1967 test_alloc_util_SOURCES = \
1968 src/test/test-alloc-util.c
1969
1970 test_alloc_util_LDADD = \
1971 libsystemd-shared.la
1972
1973 test_xattr_util_SOURCES = \
1974 src/test/test-xattr-util.c
1975
1976 test_xattr_util_LDADD = \
1977 libsystemd-shared.la
1978
1979 test_io_util_SOURCES = \
1980 src/test/test-io-util.c
1981
1982 test_io_util_LDADD = \
1983 libsystemd-shared.la
1984
1985 test_glob_util_SOURCES = \
1986 src/test/test-glob-util.c
1987
1988 test_glob_util_LDADD = \
1989 libsystemd-shared.la
1990
1991 test_fs_util_SOURCES = \
1992 src/test/test-fs-util.c
1993
1994 test_fs_util_LDADD = \
1995 libsystemd-shared.la
1996
1997 test_proc_cmdline_SOURCES = \
1998 src/test/test-proc-cmdline.c
1999
2000 test_proc_cmdline_LDADD = \
2001 libsystemd-shared.la
2002
2003 test_fd_util_SOURCES = \
2004 src/test/test-fd-util.c
2005
2006 test_fd_util_LDADD = \
2007 libsystemd-shared.la
2008
2009 test_web_util_SOURCES = \
2010 src/test/test-web-util.c
2011
2012 test_web_util_LDADD = \
2013 libsystemd-shared.la
2014
2015 test_cpu_set_util_SOURCES = \
2016 src/test/test-cpu-set-util.c
2017
2018 test_cpu_set_util_LDADD = \
2019 libsystemd-shared.la
2020
2021 test_stat_util_SOURCES = \
2022 src/test/test-stat-util.c
2023
2024 test_stat_util_LDADD = \
2025 libsystemd-shared.la
2026
2027 test_escape_SOURCES = \
2028 src/test/test-escape.c
2029
2030 test_escape_LDADD = \
2031 libsystemd-shared.la
2032
2033 test_string_util_SOURCES = \
2034 src/test/test-string-util.c
2035
2036 test_string_util_LDADD = \
2037 libsystemd-shared.la
2038
2039 test_extract_word_SOURCES = \
2040 src/test/test-extract-word.c
2041
2042 test_extract_word_LDADD = \
2043 libsystemd-shared.la
2044
2045 test_parse_util_SOURCES = \
2046 src/test/test-parse-util.c
2047
2048 test_parse_util_LDADD = \
2049 libsystemd-shared.la
2050
2051 test_user_util_SOURCES = \
2052 src/test/test-user-util.c
2053
2054 test_user_util_LDADD = \
2055 libsystemd-shared.la
2056
2057 test_hostname_util_SOURCES = \
2058 src/test/test-hostname-util.c
2059
2060 test_hostname_util_LDADD = \
2061 libsystemd-shared.la
2062
2063 test_process_util_SOURCES = \
2064 src/test/test-process-util.c
2065
2066 test_process_util_LDADD = \
2067 libsystemd-shared.la
2068
2069 test_terminal_util_SOURCES = \
2070 src/test/test-terminal-util.c
2071
2072 test_terminal_util_LDADD = \
2073 libsystemd-shared.la
2074
2075 test_path_lookup_SOURCES = \
2076 src/test/test-path-lookup.c
2077
2078 test_path_lookup_LDADD = \
2079 libsystemd-shared.la
2080
2081 test_uid_range_SOURCES = \
2082 src/test/test-uid-range.c
2083
2084 test_uid_range_LDADD = \
2085 libsystemd-shared.la
2086
2087 test_cap_list_SOURCES = \
2088 src/test/test-cap-list.c
2089
2090 test_cap_list_CFLAGS = \
2091 $(AM_CFLAGS) \
2092 $(CAP_CFLAGS)
2093
2094 test_cap_list_LDADD = \
2095 libsystemd-shared.la \
2096 $(CAP_LIBS)
2097
2098 test_socket_util_SOURCES = \
2099 src/test/test-socket-util.c
2100
2101 test_socket_util_LDADD = \
2102 libsystemd-shared.la
2103
2104 test_barrier_SOURCES = \
2105 src/test/test-barrier.c
2106
2107 test_barrier_LDADD = \
2108 libsystemd-shared.la
2109
2110 test_tmpfiles_SOURCES = \
2111 src/test/test-tmpfiles.c
2112
2113 test_tmpfiles_LDADD = \
2114 libsystemd-shared.la
2115
2116 test_namespace_SOURCES = \
2117 src/test/test-namespace.c
2118
2119 test_verbs_SOURCES = \
2120 src/test/test-verbs.c
2121
2122 test_verbs_LDADD = \
2123 libsystemd-shared.la
2124
2125 test_install_root_SOURCES = \
2126 src/test/test-install-root.c
2127
2128 test_install_root_LDADD = \
2129 libsystemd-shared.la
2130
2131 test_acl_util_SOURCES = \
2132 src/test/test-acl-util.c
2133
2134 test_acl_util_LDADD = \
2135 libsystemd-shared.la
2136
2137 test_seccomp_SOURCES = \
2138 src/test/test-seccomp.c
2139
2140 test_seccomp_LDADD = \
2141 libsystemd-shared.la \
2142 $(SECCOMP_LIBS)
2143
2144 test_namespace_LDADD = \
2145 libcore.la
2146
2147 test_rlimit_util_SOURCES = \
2148 src/test/test-rlimit-util.c
2149
2150 test_rlimit_util_LDADD = \
2151 libsystemd-shared.la
2152
2153 test_ask_password_api_SOURCES = \
2154 src/test/test-ask-password-api.c
2155
2156 test_ask_password_api_LDADD = \
2157 libsystemd-shared.la
2158
2159 test_dissect_image_SOURCES = \
2160 src/test/test-dissect-image.c
2161
2162 test_dissect_image_CFLAGS = \
2163 $(AM_CFLAGS) \
2164 $(BLKID_CFLAGS)
2165
2166 test_dissect_image_LDADD = \
2167 libsystemd-shared.la \
2168 $(BLKID_LIBS)
2169
2170 test_signal_util_SOURCES = \
2171 src/test/test-signal-util.c
2172
2173 test_signal_util_LDADD = \
2174 libsystemd-shared.la
2175
2176 test_selinux_SOURCES = \
2177 src/test/test-selinux.c
2178
2179 test_selinux_LDADD = \
2180 libsystemd-shared.la
2181
2182 test_sizeof_SOURCES = \
2183 src/test/test-sizeof.c
2184
2185 BUILT_SOURCES += \
2186 src/test/test-hashmap-ordered.c
2187
2188 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
2189 $(AM_V_at)$(MKDIR_P) $(dir $@)
2190 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
2191 { if (!match($$0, "^#include")) \
2192 gsub(/hashmap/, "ordered_hashmap"); \
2193 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
2194 gsub(/Hashmap/, "OrderedHashmap"); \
2195 print }' <$< >$@
2196
2197 nodist_test_hashmap_SOURCES = \
2198 src/test/test-hashmap-ordered.c
2199
2200 test_hashmap_SOURCES = \
2201 src/test/test-hashmap.c \
2202 src/test/test-hashmap-plain.c
2203
2204 test_hashmap_LDADD = \
2205 libsystemd-shared.la
2206
2207 test_set_SOURCES = \
2208 src/test/test-set.c
2209
2210 test_set_LDADD = \
2211 libsystemd-shared.la
2212
2213 test_bitmap_SOURCES = \
2214 src/test/test-bitmap.c
2215
2216 test_bitmap_LDADD = \
2217 libsystemd-shared.la
2218
2219 test_xml_SOURCES = \
2220 src/test/test-xml.c
2221
2222 test_xml_LDADD = \
2223 libsystemd-shared.la
2224
2225 test_list_SOURCES = \
2226 src/test/test-list.c
2227
2228 test_list_LDADD = \
2229 libsystemd-shared.la
2230
2231 test_unaligned_LDADD = \
2232 libsystemd-shared.la
2233
2234 test_unaligned_SOURCES = \
2235 src/test/test-unaligned.c
2236
2237 test_tables_SOURCES = \
2238 src/test/test-tables.c \
2239 src/shared/test-tables.h \
2240 src/journal/journald-server.c \
2241 src/journal/journald-server.h
2242
2243 test_tables_CPPFLAGS = \
2244 $(AM_CPPFLAGS)
2245
2246 test_tables_CFLAGS = \
2247 $(AM_CFLAGS) \
2248 $(SECCOMP_CFLAGS) \
2249 $(MOUNT_CFLAGS)
2250
2251 test_tables_LDADD = \
2252 libjournal-core.la \
2253 libcore.la \
2254 libudev-core.la
2255
2256 test_prioq_SOURCES = \
2257 src/test/test-prioq.c
2258
2259 test_prioq_LDADD = \
2260 libsystemd-shared.la
2261
2262 test_fileio_SOURCES = \
2263 src/test/test-fileio.c
2264
2265 test_fileio_LDADD = \
2266 libsystemd-shared.la
2267
2268 test_time_SOURCES = \
2269 src/test/test-time.c
2270
2271 test_time_LDADD = \
2272 libsystemd-shared.la
2273
2274 test_clock_SOURCES = \
2275 src/test/test-clock.c
2276
2277 test_clock_LDADD = \
2278 libsystemd-shared.la
2279
2280 test_architecture_SOURCES = \
2281 src/test/test-architecture.c
2282
2283 test_architecture_LDADD = \
2284 libsystemd-shared.la
2285
2286 test_log_SOURCES = \
2287 src/test/test-log.c
2288
2289 test_log_LDADD = \
2290 libsystemd-shared.la
2291
2292 test_ipcrm_SOURCES = \
2293 src/test/test-ipcrm.c
2294
2295 test_ipcrm_LDADD = \
2296 libsystemd-shared.la
2297
2298 test_btrfs_SOURCES = \
2299 src/test/test-btrfs.c
2300
2301 test_btrfs_LDADD = \
2302 libsystemd-shared.la
2303
2304 if HAVE_LIBIPTC
2305 test_firewall_util_SOURCES = \
2306 src/test/test-firewall-util.c
2307
2308 test_firewall_util_CFLAGS = \
2309 $(AM_CFLAGS) \
2310 $(LIBIPTC_CFLAGS)
2311
2312 test_firewall_util_LDADD = \
2313 libfirewall.la \
2314 libsystemd-shared.la \
2315 $(LIBIPTC_LIBS)
2316 endif
2317
2318 test_netlink_manual_SOURCES = \
2319 src/test/test-netlink-manual.c
2320
2321 test_netlink_manual_CFLAGS = \
2322 $(AM_CFLAGS) \
2323 $(KMOD_CFLAGS)
2324
2325 test_netlink_manual_LDADD = \
2326 libsystemd-shared.la \
2327 $(KMOD_LIBS)
2328
2329 test_ellipsize_SOURCES = \
2330 src/test/test-ellipsize.c
2331
2332 test_ellipsize_LDADD = \
2333 libsystemd-shared.la
2334
2335 test_date_SOURCES = \
2336 src/test/test-date.c
2337
2338 test_date_LDADD = \
2339 libsystemd-shared.la
2340
2341 test_sleep_SOURCES = \
2342 src/test/test-sleep.c
2343
2344 test_sleep_LDADD = \
2345 libcore.la
2346
2347 test_replace_var_SOURCES = \
2348 src/test/test-replace-var.c
2349
2350 test_replace_var_LDADD = \
2351 libsystemd-shared.la
2352
2353 test_calendarspec_SOURCES = \
2354 src/test/test-calendarspec.c
2355
2356 test_calendarspec_LDADD = \
2357 libsystemd-shared.la
2358
2359 test_strip_tab_ansi_SOURCES = \
2360 src/test/test-strip-tab-ansi.c
2361
2362 test_strip_tab_ansi_LDADD = \
2363 libsystemd-shared.la
2364
2365 test_daemon_SOURCES = \
2366 src/test/test-daemon.c
2367
2368 test_daemon_LDADD = \
2369 libsystemd-shared.la
2370
2371 test_cgroup_SOURCES = \
2372 src/test/test-cgroup.c
2373
2374 test_cgroup_LDADD = \
2375 libsystemd-shared.la
2376
2377 test_cgroup_mask_SOURCES = \
2378 src/test/test-cgroup-mask.c
2379
2380 test_cgroup_mask_CPPFLAGS = \
2381 $(AM_CPPFLAGS) \
2382 $(MOUNT_CFLAGS)
2383
2384 test_cgroup_mask_CFLAGS = \
2385 $(AM_CFLAGS) \
2386 $(SECCOMP_CFLAGS)
2387
2388 test_cgroup_mask_LDADD = \
2389 libcore.la
2390
2391 test_cgroup_util_SOURCES = \
2392 src/test/test-cgroup-util.c
2393
2394 test_cgroup_util_LDADD = \
2395 libsystemd-shared.la
2396
2397 test_env_util_SOURCES = \
2398 src/test/test-env-util.c
2399
2400 test_env_util_LDADD = \
2401 libsystemd-shared.la
2402
2403 test_strbuf_SOURCES = \
2404 src/test/test-strbuf.c
2405
2406 test_strbuf_LDADD = \
2407 libsystemd-shared.la
2408
2409 test_strv_SOURCES = \
2410 src/test/test-strv.c
2411
2412 test_strv_LDADD = \
2413 libsystemd-shared.la
2414
2415 test_path_util_SOURCES = \
2416 src/test/test-path-util.c
2417
2418 test_path_util_LDADD = \
2419 libsystemd-shared.la
2420
2421 test_path_SOURCES = \
2422 src/test/test-path.c
2423
2424 test_path_CFLAGS = \
2425 $(AM_CFLAGS) \
2426 $(MOUNT_CFLAGS)
2427
2428 test_path_LDADD = \
2429 libcore.la
2430
2431 test_execute_SOURCES = \
2432 src/test/test-execute.c
2433
2434 test_execute_CFLAGS = \
2435 $(AM_CFLAGS) \
2436 $(MOUNT_CFLAGS)
2437
2438 test_execute_LDADD = \
2439 libcore.la
2440
2441 test_siphash24_SOURCES = \
2442 src/test/test-siphash24.c
2443
2444 test_siphash24_LDADD = \
2445 libsystemd-shared.la
2446
2447 test_strxcpyx_SOURCES = \
2448 src/test/test-strxcpyx.c
2449
2450 test_strxcpyx_LDADD = \
2451 libsystemd-shared.la
2452
2453 test_install_SOURCES = \
2454 src/test/test-install.c
2455
2456 test_install_LDADD = \
2457 libsystemd-shared.la
2458
2459 test_watchdog_SOURCES = \
2460 src/test/test-watchdog.c
2461
2462 test_watchdog_LDADD = \
2463 libsystemd-shared.la
2464
2465 test_sched_prio_SOURCES = \
2466 src/test/test-sched-prio.c
2467
2468 test_sched_prio_CPPFLAGS = \
2469 $(AM_CPPFLAGS) \
2470 $(MOUNT_CFLAGS)
2471
2472 test_sched_prio_CFLAGS = \
2473 $(AM_CFLAGS) \
2474 $(SECCOMP_CFLAGS)
2475
2476 test_sched_prio_LDADD = \
2477 libcore.la
2478
2479 test_conf_files_SOURCES = \
2480 src/test/test-conf-files.c
2481
2482 test_conf_files_LDADD = \
2483 libsystemd-shared.la
2484
2485 test_conf_parser_SOURCES = \
2486 src/test/test-conf-parser.c
2487
2488 test_conf_parser_LDADD = \
2489 libsystemd-shared.la
2490
2491 test_af_list_SOURCES = \
2492 src/test/test-af-list.c
2493
2494 test_af_list_LDADD = \
2495 libsystemd-shared.la
2496
2497 test_arphrd_list_SOURCES = \
2498 src/test/test-arphrd-list.c
2499
2500 test_arphrd_list_LDADD = \
2501 libsystemd-shared.la
2502
2503 test_journal_importer_SOURCES = \
2504 src/test/test-journal-importer.c
2505
2506 test_journal_importer_LDADD = \
2507 libsystemd-shared.la
2508
2509 TEST_DATA_FILES += \
2510 test/journal-data/journal-1.txt \
2511 test/journal-data/journal-2.txt
2512
2513 # ------------------------------------------------------------------------------
2514 ## .PHONY so it always rebuilds it
2515 .PHONY: coverage lcov-run lcov-report coverage-sync
2516
2517 # run lcov from scratch, always
2518 coverage: all
2519 $(MAKE) lcov-run
2520 $(MAKE) lcov-report
2521
2522 coverage_dir = coverage
2523 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2524
2525 if ENABLE_COVERAGE
2526 # reset run coverage tests
2527 lcov-run:
2528 @rm -rf $(coverage_dir)
2529 lcov $(coverage_opts) --zerocounters
2530 -$(MAKE) check
2531
2532 # generate report based on current coverage data
2533 lcov-report:
2534 $(MKDIR_P) $(coverage_dir)
2535 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2536 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2537 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2538 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2539 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2540
2541 # lcov doesn't work properly with vpath builds, make sure that bad
2542 # output is not uploaded by mistake.
2543 coverage-sync: coverage
2544 test "$(builddir)" = "$(srcdir)"
2545 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2546
2547 else
2548 lcov-run lcov-report:
2549 echo "Need to reconfigure with --enable-coverage"
2550 endif
2551
2552 # ------------------------------------------------------------------------------
2553 systemd_analyze_SOURCES = \
2554 src/analyze/analyze.c \
2555 src/analyze/analyze-verify.c \
2556 src/analyze/analyze-verify.h
2557
2558 systemd_analyze_CFLAGS = \
2559 $(AM_CFLAGS) \
2560 $(SECCOMP_CFLAGS) \
2561 $(MOUNT_CFLAGS)
2562
2563 systemd_analyze_LDADD = \
2564 libcore.la
2565
2566 # ------------------------------------------------------------------------------
2567 systemd_initctl_SOURCES = \
2568 src/initctl/initctl.c
2569
2570 systemd_initctl_LDADD = \
2571 libsystemd-shared.la
2572
2573 # ------------------------------------------------------------------------------
2574 systemd_update_utmp_SOURCES = \
2575 src/update-utmp/update-utmp.c
2576
2577 systemd_update_utmp_CFLAGS = \
2578 $(AM_CFLAGS) \
2579 $(AUDIT_CFLAGS)
2580
2581 systemd_update_utmp_LDADD = \
2582 libsystemd-shared.la \
2583 $(AUDIT_LIBS)
2584
2585 # ------------------------------------------------------------------------------
2586 systemd_update_done_SOURCES = \
2587 src/update-done/update-done.c
2588
2589 systemd_update_done_LDADD = \
2590 libsystemd-shared.la
2591
2592 # ------------------------------------------------------------------------------
2593 systemd_shutdown_SOURCES = \
2594 src/core/umount.c \
2595 src/core/umount.h \
2596 src/core/shutdown.c \
2597 src/core/mount-setup.c \
2598 src/core/mount-setup.h \
2599 src/core/killall.h \
2600 src/core/killall.c
2601
2602 systemd_shutdown_LDADD = \
2603 libsystemd-shared.la
2604
2605 # ------------------------------------------------------------------------------
2606 if HAVE_KMOD
2607 systemd_modules_load_SOURCES = \
2608 src/modules-load/modules-load.c
2609
2610 systemd_modules_load_CFLAGS = \
2611 $(AM_CFLAGS) \
2612 $(KMOD_CFLAGS)
2613
2614 systemd_modules_load_LDADD = \
2615 libsystemd-shared.la \
2616 $(KMOD_LIBS)
2617
2618 rootlibexec_PROGRAMS += \
2619 systemd-modules-load
2620
2621 nodist_systemunit_DATA += \
2622 units/systemd-modules-load.service
2623
2624 SYSINIT_TARGET_WANTS += \
2625 systemd-modules-load.service
2626
2627 if ENABLE_TMPFILES
2628 nodist_systemunit_DATA += \
2629 units/kmod-static-nodes.service
2630
2631 SYSINIT_TARGET_WANTS += \
2632 kmod-static-nodes.service
2633 endif
2634 endif
2635
2636 EXTRA_DIST += \
2637 units/systemd-modules-load.service.in \
2638 units/kmod-static-nodes.service.in
2639
2640 # ------------------------------------------------------------------------------
2641 if ENABLE_TMPFILES
2642 systemd_tmpfiles_SOURCES = \
2643 src/tmpfiles/tmpfiles.c
2644
2645 systemd_tmpfiles_CFLAGS = \
2646 $(AM_CFLAGS) \
2647 $(ACL_CFLAGS)
2648
2649 systemd_tmpfiles_LDADD = \
2650 libsystemd-shared.la \
2651 $(ACL_LIBS)
2652
2653 rootbin_PROGRAMS += \
2654 systemd-tmpfiles
2655
2656 dist_systemunit_DATA += \
2657 units/systemd-tmpfiles-clean.timer
2658
2659 nodist_systemunit_DATA += \
2660 units/systemd-tmpfiles-setup-dev.service \
2661 units/systemd-tmpfiles-setup.service \
2662 units/systemd-tmpfiles-clean.service
2663
2664 nodist_tmpfiles_DATA = \
2665 tmpfiles.d/systemd.conf \
2666 tmpfiles.d/etc.conf
2667
2668 dist_tmpfiles_DATA = \
2669 tmpfiles.d/systemd-nologin.conf \
2670 tmpfiles.d/tmp.conf \
2671 tmpfiles.d/x11.conf \
2672 tmpfiles.d/var.conf \
2673 tmpfiles.d/home.conf \
2674 tmpfiles.d/systemd-nspawn.conf \
2675 tmpfiles.d/journal-nocow.conf
2676
2677 if HAVE_SYSV_COMPAT
2678 dist_tmpfiles_DATA += \
2679 tmpfiles.d/legacy.conf
2680 endif
2681
2682 SYSINIT_TARGET_WANTS += \
2683 systemd-tmpfiles-setup-dev.service \
2684 systemd-tmpfiles-setup.service
2685
2686 dist_zshcompletion_data += \
2687 shell-completion/zsh/_systemd-tmpfiles
2688
2689 TIMERS_TARGET_WANTS += \
2690 systemd-tmpfiles-clean.timer
2691
2692 INSTALL_DIRS += \
2693 $(tmpfilesdir) \
2694 $(sysconfdir)/tmpfiles.d
2695 endif
2696
2697 EXTRA_DIST += \
2698 tmpfiles.d/systemd.conf.m4 \
2699 tmpfiles.d/etc.conf.m4 \
2700 units/systemd-tmpfiles-setup-dev.service.in \
2701 units/systemd-tmpfiles-setup.service.in \
2702 units/systemd-tmpfiles-clean.service.in
2703
2704 # ------------------------------------------------------------------------------
2705 if ENABLE_SYSUSERS
2706 systemd_sysusers_SOURCES = \
2707 src/sysusers/sysusers.c
2708
2709 systemd_sysusers_LDADD = \
2710 libsystemd-shared.la
2711
2712 rootbin_PROGRAMS += \
2713 systemd-sysusers
2714
2715 nodist_systemunit_DATA += \
2716 units/systemd-sysusers.service
2717
2718 SYSINIT_TARGET_WANTS += \
2719 systemd-sysusers.service
2720
2721 nodist_sysusers_DATA = \
2722 sysusers.d/systemd.conf \
2723 sysusers.d/basic.conf
2724
2725 if HAVE_REMOTE
2726 nodist_sysusers_DATA += \
2727 sysusers.d/systemd-remote.conf
2728 endif
2729
2730 INSTALL_DIRS += \
2731 $(sysusersdir)
2732 endif
2733
2734 EXTRA_DIST += \
2735 units/systemd-sysusers.service.in \
2736 sysusers.d/systemd.conf.m4 \
2737 sysusers.d/systemd-remote.conf.m4 \
2738 sysusers.d/basic.conf.in
2739
2740 # ------------------------------------------------------------------------------
2741 dist_factory_etc_DATA = \
2742 factory/etc/nsswitch.conf
2743
2744 if HAVE_PAM
2745 dist_factory_pam_DATA = \
2746 factory/etc/pam.d/system-auth \
2747 factory/etc/pam.d/other
2748 endif
2749
2750 # ------------------------------------------------------------------------------
2751 if ENABLE_FIRSTBOOT
2752 systemd_firstboot_SOURCES = \
2753 src/firstboot/firstboot.c
2754
2755 systemd_firstboot_LDADD = \
2756 libsystemd-shared.la \
2757 -lcrypt
2758
2759 rootbin_PROGRAMS += \
2760 systemd-firstboot
2761
2762 nodist_systemunit_DATA += \
2763 units/systemd-firstboot.service
2764
2765 SYSINIT_TARGET_WANTS += \
2766 systemd-firstboot.service
2767 endif
2768
2769 EXTRA_DIST += \
2770 units/systemd-firstboot.service.in
2771
2772 # ------------------------------------------------------------------------------
2773 systemd_machine_id_setup_SOURCES = \
2774 src/machine-id-setup/machine-id-setup-main.c \
2775 src/core/machine-id-setup.c \
2776 src/core/machine-id-setup.h
2777
2778 systemd_machine_id_setup_LDADD = \
2779 libsystemd-shared.la
2780
2781 SYSINIT_TARGET_WANTS += \
2782 systemd-machine-id-commit.service
2783
2784 # ------------------------------------------------------------------------------
2785 systemd_sysctl_SOURCES = \
2786 src/sysctl/sysctl.c
2787
2788 systemd_sysctl_LDADD = \
2789 libsystemd-shared.la
2790
2791 # ------------------------------------------------------------------------------
2792 systemd_sleep_SOURCES = \
2793 src/sleep/sleep.c
2794
2795 systemd_sleep_LDADD = \
2796 libsystemd-shared.la
2797
2798 # ------------------------------------------------------------------------------
2799 systemd_fsck_SOURCES = \
2800 src/fsck/fsck.c
2801
2802 systemd_fsck_LDADD = \
2803 libsystemd-shared.la
2804
2805 # ------------------------------------------------------------------------------
2806 systemd_ac_power_SOURCES = \
2807 src/ac-power/ac-power.c
2808
2809 systemd_ac_power_LDADD = \
2810 libsystemd-shared.la
2811
2812 # ------------------------------------------------------------------------------
2813 systemd_detect_virt_SOURCES = \
2814 src/detect-virt/detect-virt.c
2815
2816 systemd_detect_virt_LDADD = \
2817 libsystemd-shared.la
2818
2819 # ------------------------------------------------------------------------------
2820 systemd_delta_SOURCES = \
2821 src/delta/delta.c
2822
2823 systemd_delta_LDADD = \
2824 libsystemd-shared.la
2825
2826 # ------------------------------------------------------------------------------
2827 systemd_getty_generator_SOURCES = \
2828 src/getty-generator/getty-generator.c
2829
2830 systemd_getty_generator_LDADD = \
2831 libsystemd-shared.la
2832
2833 # ------------------------------------------------------------------------------
2834 systemd_debug_generator_SOURCES = \
2835 src/debug-generator/debug-generator.c
2836
2837 systemd_debug_generator_LDADD = \
2838 libsystemd-shared.la
2839
2840 # ------------------------------------------------------------------------------
2841 systemd_fstab_generator_SOURCES = \
2842 src/fstab-generator/fstab-generator.c \
2843 src/core/mount-setup.c
2844
2845 systemd_fstab_generator_LDADD = \
2846 libsystemd-shared.la
2847
2848 # ------------------------------------------------------------------------------
2849 systemd_system_update_generator_SOURCES = \
2850 src/system-update-generator/system-update-generator.c
2851
2852 systemd_system_update_generator_LDADD = \
2853 libsystemd-shared.la
2854
2855 # ------------------------------------------------------------------------------
2856 30_systemd_environment_d_generator_SOURCES = \
2857 src/environment-d-generator/environment-d-generator.c
2858
2859 30_systemd_environment_d_generator_LDADD = \
2860 libsystemd-shared.la
2861
2862 # ------------------------------------------------------------------------------
2863 if ENABLE_HIBERNATE
2864 systemgenerator_PROGRAMS += \
2865 systemd-hibernate-resume-generator
2866
2867 rootlibexec_PROGRAMS += \
2868 systemd-hibernate-resume
2869
2870 systemd_hibernate_resume_SOURCES = \
2871 src/hibernate-resume/hibernate-resume.c
2872
2873 systemd_hibernate_resume_LDADD = \
2874 libsystemd-shared.la
2875
2876 systemd_hibernate_resume_generator_SOURCES = \
2877 src/hibernate-resume/hibernate-resume-generator.c
2878
2879 systemd_hibernate_resume_generator_LDADD = \
2880 libsystemd-shared.la
2881
2882 dist_systemunit_DATA += \
2883 units/hibernate.target \
2884 units/hybrid-sleep.target
2885
2886 nodist_systemunit_DATA += \
2887 units/systemd-hibernate.service \
2888 units/systemd-hibernate-resume@.service \
2889 units/systemd-hybrid-sleep.service
2890 endif
2891
2892 EXTRA_DIST += \
2893 units/systemd-hibernate.service.in \
2894 units/systemd-hibernate-resume@.service.in \
2895 units/systemd-hybrid-sleep.service.in
2896
2897 # ------------------------------------------------------------------------------
2898 if ENABLE_EFI
2899 if HAVE_BLKID
2900 bootctl_SOURCES = \
2901 src/boot/bootctl.c
2902
2903 bootctl_CPPFLAGS = \
2904 $(AM_CPPFLAGS) \
2905 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2906 -DBOOTLIBDIR=\"$(bootlibdir)\"
2907
2908 bootctl_CFLAGS = \
2909 $(AM_CFLAGS) \
2910 $(BLKID_CFLAGS)
2911
2912 bootctl_LDADD = \
2913 libsystemd-shared.la \
2914 $(BLKID_LIBS)
2915
2916 bin_PROGRAMS += \
2917 bootctl
2918
2919 dist_bashcompletion_data += \
2920 shell-completion/bash/bootctl
2921
2922 dist_zshcompletion_data += \
2923 shell-completion/zsh/_bootctl
2924 endif
2925
2926 # ------------------------------------------------------------------------------
2927 if HAVE_GNUEFI
2928 efi_cppflags = \
2929 $(EFI_CPPFLAGS) \
2930 -I$(top_builddir) -include config.h \
2931 -I$(EFI_INC_DIR)/efi \
2932 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2933 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2934
2935 efi_cflags = \
2936 $(EFI_CFLAGS) \
2937 -Wall \
2938 -Wextra \
2939 -std=gnu90 \
2940 -nostdinc \
2941 -ggdb -O0 \
2942 -fpic \
2943 -fshort-wchar \
2944 -nostdinc \
2945 -ffreestanding \
2946 -fno-strict-aliasing \
2947 -fno-stack-protector \
2948 -Wsign-compare \
2949 -Wno-missing-field-initializers
2950
2951 if ARCH_X86_64
2952 efi_cflags += \
2953 -mno-red-zone \
2954 -mno-sse \
2955 -mno-mmx \
2956 -DEFI_FUNCTION_WRAPPER \
2957 -DGNU_EFI_USE_MS_ABI
2958 endif
2959
2960 if ARCH_IA32
2961 efi_cflags += \
2962 -mno-sse \
2963 -mno-mmx
2964 endif
2965
2966 efi_ldflags = \
2967 $(EFI_LDFLAGS) \
2968 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2969 -shared \
2970 -Bsymbolic \
2971 -nostdlib \
2972 -znocombreloc \
2973 -L $(EFI_LIB_DIR) \
2974 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2975
2976 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2977 # and add required symbols manually.
2978 if ARCH_AARCH64
2979 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2980 EFI_FORMAT = -O binary
2981 else
2982 if ARCH_ARM
2983 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2984 EFI_FORMAT = -O binary
2985 else
2986 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2987 endif
2988 endif
2989 endif
2990 endif
2991
2992 # ------------------------------------------------------------------------------
2993 efi_headers = \
2994 src/boot/efi/console.h \
2995 src/boot/efi/disk.h \
2996 src/boot/efi/graphics.h \
2997 src/boot/efi/linux.h \
2998 src/boot/efi/measure.h \
2999 src/boot/efi/pefile.h \
3000 src/boot/efi/splash.h \
3001 src/boot/efi/util.h
3002
3003 systemd_boot_sources = \
3004 src/boot/efi/boot.c \
3005 src/boot/efi/console.c \
3006 src/boot/efi/disk.c \
3007 src/boot/efi/graphics.c \
3008 src/boot/efi/measure.c \
3009 src/boot/efi/pefile.c \
3010 src/boot/efi/util.c
3011
3012 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
3013
3014 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
3015 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
3016 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
3017
3018 if ENABLE_EFI
3019 if HAVE_GNUEFI
3020 bootlib_DATA = $(systemd_boot)
3021
3022 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(efi_headers))
3023 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
3024 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
3025
3026 $(systemd_boot_solib): $(systemd_boot_objects)
3027 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
3028 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
3029 nm -D -u $@ | grep ' U ' && exit 1 || :
3030
3031 $(systemd_boot): $(systemd_boot_solib)
3032 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
3033 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
3034 endif
3035 endif
3036
3037 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
3038
3039 # ------------------------------------------------------------------------------
3040 stub_sources = \
3041 src/boot/efi/disk.c \
3042 src/boot/efi/graphics.c \
3043 src/boot/efi/linux.c \
3044 src/boot/efi/measure.c \
3045 src/boot/efi/pefile.c \
3046 src/boot/efi/splash.c \
3047 src/boot/efi/stub.c \
3048 src/boot/efi/util.c
3049
3050 EXTRA_DIST += \
3051 $(stub_sources) \
3052 $(stub_headers) \
3053 test/splash.bmp
3054
3055 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
3056 stub_solib = $(top_builddir)/src/boot/efi/stub.so
3057 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
3058
3059 if ENABLE_EFI
3060 if HAVE_GNUEFI
3061 bootlib_DATA += $(stub)
3062
3063 $(stub_solib): $(stub_objects)
3064 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
3065 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
3066 nm -D -u $@ | grep ' U ' && exit 1 || :
3067
3068 $(stub): $(stub_solib)
3069 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
3070 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
3071 endif
3072 endif
3073
3074 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
3075
3076
3077 # ------------------------------------------------------------------------------
3078 CLEANFILES += test-efi-disk.img
3079
3080 test-efi-disk.img: $(systemd_boot) $(stub) test/splash.bmp test/test-efi-create-disk.sh
3081 $(AM_V_GEN)test/test-efi-create-disk.sh $@ $(systemd_boot) $(stub) test/splash.bmp
3082
3083 test-efi: test-efi-disk.img
3084 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
3085
3086 EXTRA_DIST += test/test-efi-create-disk.sh
3087
3088 # ------------------------------------------------------------------------------
3089 if HAVE_BLKID
3090 systemgenerator_PROGRAMS += \
3091 systemd-gpt-auto-generator
3092
3093 systemd_gpt_auto_generator_SOURCES = \
3094 src/gpt-auto-generator/gpt-auto-generator.c \
3095 src/basic/blkid-util.h
3096
3097 systemd_gpt_auto_generator_LDADD = \
3098 libsystemd-shared.la \
3099 $(BLKID_LIBS)
3100
3101 systemd_gpt_auto_generator_CFLAGS = \
3102 $(AM_CFLAGS) \
3103 $(BLKID_CFLAGS)
3104 endif
3105
3106 # ------------------------------------------------------------------------------
3107 dist_xinitrc_SCRIPTS = \
3108 xorg/50-systemd-user.sh
3109
3110 # ------------------------------------------------------------------------------
3111 systemd_sysv_generator_SOURCES = \
3112 src/sysv-generator/sysv-generator.c
3113
3114 systemd_sysv_generator_LDADD = \
3115 libcore.la
3116
3117 # ------------------------------------------------------------------------------
3118 systemd_rc_local_generator_SOURCES = \
3119 src/rc-local-generator/rc-local-generator.c
3120
3121 systemd_rc_local_generator_LDADD = \
3122 libsystemd-shared.la
3123
3124 # ------------------------------------------------------------------------------
3125 systemd_remount_fs_SOURCES = \
3126 src/remount-fs/remount-fs.c \
3127 src/core/mount-setup.c \
3128 src/core/mount-setup.h
3129
3130 systemd_remount_fs_LDADD = \
3131 libsystemd-shared.la
3132
3133 # ------------------------------------------------------------------------------
3134 systemd_volatile_root_SOURCES = \
3135 src/volatile-root/volatile-root.c
3136
3137 systemd_volatile_root_LDADD = \
3138 libsystemd-shared.la
3139
3140 # ------------------------------------------------------------------------------
3141 systemd_cgroups_agent_SOURCES = \
3142 src/cgroups-agent/cgroups-agent.c
3143
3144 systemd_cgroups_agent_LDADD = \
3145 libsystemd-shared.la
3146
3147 # ------------------------------------------------------------------------------
3148 systemd_escape_SOURCES = \
3149 src/escape/escape.c
3150
3151 systemd_escape_LDADD = \
3152 libsystemd-shared.la
3153
3154 # -----------------------------------------------------------------------------
3155 systemctl_SOURCES = \
3156 src/systemctl/systemctl.c
3157
3158 systemctl_LDADD = \
3159 libsystemd-shared.la
3160
3161 # ------------------------------------------------------------------------------
3162 systemd_notify_SOURCES = \
3163 src/notify/notify.c
3164
3165 systemd_notify_LDADD = \
3166 libsystemd-shared.la
3167
3168 # ------------------------------------------------------------------------------
3169 systemd_dissect_SOURCES = \
3170 src/dissect/dissect.c
3171
3172 systemd_dissect_LDADD = \
3173 libsystemd-shared.la
3174
3175 # ------------------------------------------------------------------------------
3176 systemd_path_SOURCES = \
3177 src/path/path.c
3178
3179 systemd_path_LDADD = \
3180 libsystemd-shared.la
3181
3182 # ------------------------------------------------------------------------------
3183 systemd_ask_password_SOURCES = \
3184 src/ask-password/ask-password.c
3185
3186 systemd_ask_password_LDADD = \
3187 libsystemd-shared.la
3188
3189 # ------------------------------------------------------------------------------
3190 systemd_reply_password_SOURCES = \
3191 src/reply-password/reply-password.c
3192
3193 systemd_reply_password_LDADD = \
3194 libsystemd-shared.la
3195
3196 # ------------------------------------------------------------------------------
3197 systemd_cgls_SOURCES = \
3198 src/cgls/cgls.c
3199
3200 systemd_cgls_LDADD = \
3201 libsystemd-shared.la
3202
3203 # ------------------------------------------------------------------------------
3204 systemd_cgtop_SOURCES = \
3205 src/cgtop/cgtop.c
3206
3207 systemd_cgtop_LDADD = \
3208 libsystemd-shared.la
3209
3210 # ------------------------------------------------------------------------------
3211 systemd_nspawn_SOURCES = \
3212 src/nspawn/nspawn.c \
3213 src/nspawn/nspawn-settings.c \
3214 src/nspawn/nspawn-settings.h \
3215 src/nspawn/nspawn-mount.c \
3216 src/nspawn/nspawn-mount.h \
3217 src/nspawn/nspawn-network.c \
3218 src/nspawn/nspawn-network.h \
3219 src/nspawn/nspawn-expose-ports.c \
3220 src/nspawn/nspawn-expose-ports.h \
3221 src/nspawn/nspawn-cgroup.c \
3222 src/nspawn/nspawn-cgroup.h \
3223 src/nspawn/nspawn-seccomp.c \
3224 src/nspawn/nspawn-seccomp.h \
3225 src/nspawn/nspawn-register.c \
3226 src/nspawn/nspawn-register.h \
3227 src/nspawn/nspawn-setuid.c \
3228 src/nspawn/nspawn-setuid.h \
3229 src/nspawn/nspawn-stub-pid1.c \
3230 src/nspawn/nspawn-stub-pid1.h \
3231 src/nspawn/nspawn-patch-uid.c \
3232 src/nspawn/nspawn-patch-uid.h \
3233 src/core/mount-setup.c \
3234 src/core/mount-setup.h \
3235 src/core/loopback-setup.c \
3236 src/core/loopback-setup.h
3237
3238 nodist_systemd_nspawn_SOURCES = \
3239 src/nspawn/nspawn-gperf.c
3240
3241 gperf_gperf_sources += \
3242 src/nspawn/nspawn-gperf.gperf
3243
3244 systemd_nspawn_CFLAGS = \
3245 $(AM_CFLAGS) \
3246 $(ACL_CFLAGS) \
3247 $(BLKID_CFLAGS) \
3248 $(SECCOMP_CFLAGS) \
3249 $(SELINUX_CFLAGS)
3250
3251 systemd_nspawn_LDADD = \
3252 libsystemd-shared.la \
3253 $(ACL_LIBS) \
3254 $(BLKID_LIBS) \
3255 $(SECCOMP_LIBS) \
3256 $(SELINUX_LIBS)
3257
3258 if HAVE_LIBIPTC
3259 systemd_nspawn_LDADD += \
3260 libfirewall.la
3261 endif
3262
3263 test_patch_uid_SOURCES = \
3264 src/nspawn/nspawn-patch-uid.c \
3265 src/nspawn/nspawn-patch-uid.h \
3266 src/nspawn/test-patch-uid.c
3267
3268 test_patch_uid_CFLAGS = \
3269 $(AM_CFLAGS) \
3270 $(ACL_CFLAGS)
3271
3272 test_patch_uid_LDADD = \
3273 libsystemd-shared.la \
3274 $(ACL_LIBS)
3275
3276 manual_tests += \
3277 test-patch-uid
3278
3279 # ------------------------------------------------------------------------------
3280 systemd_run_SOURCES = \
3281 src/run/run.c
3282
3283 systemd_run_LDADD = \
3284 libsystemd-shared.la
3285
3286 # ------------------------------------------------------------------------------
3287 systemd_mount_SOURCES = \
3288 src/mount/mount-tool.c
3289
3290 systemd_mount_LDADD = \
3291 libsystemd-shared.la
3292
3293 # ------------------------------------------------------------------------------
3294 systemd_stdio_bridge_SOURCES = \
3295 src/stdio-bridge/stdio-bridge.c
3296
3297 systemd_stdio_bridge_LDADD = \
3298 libsystemd-shared.la
3299
3300 # ------------------------------------------------------------------------------
3301 systemd_tty_ask_password_agent_SOURCES = \
3302 src/tty-ask-password-agent/tty-ask-password-agent.c
3303
3304 systemd_tty_ask_password_agent_LDADD = \
3305 libsystemd-shared.la
3306
3307 # ------------------------------------------------------------------------------
3308 libsystemd_internal_la_SOURCES = \
3309 src/systemd/sd-bus.h \
3310 src/systemd/sd-bus-protocol.h \
3311 src/systemd/sd-bus-vtable.h \
3312 src/systemd/sd-utf8.h \
3313 src/systemd/sd-event.h \
3314 src/systemd/sd-netlink.h \
3315 src/systemd/sd-resolve.h \
3316 src/systemd/sd-login.h \
3317 src/systemd/sd-id128.h \
3318 src/systemd/sd-daemon.h \
3319 src/systemd/sd-path.h \
3320 src/systemd/sd-network.h \
3321 src/systemd/sd-hwdb.h \
3322 src/systemd/sd-device.h \
3323 src/libsystemd/libsystemd.sym \
3324 src/libsystemd/sd-bus/sd-bus.c \
3325 src/libsystemd/sd-bus/bus-control.c \
3326 src/libsystemd/sd-bus/bus-control.h \
3327 src/libsystemd/sd-bus/bus-error.c \
3328 src/libsystemd/sd-bus/bus-error.h \
3329 src/libsystemd/sd-bus/bus-common-errors.h \
3330 src/libsystemd/sd-bus/bus-common-errors.c \
3331 src/libsystemd/sd-bus/bus-internal.c \
3332 src/libsystemd/sd-bus/bus-internal.h \
3333 src/libsystemd/sd-bus/bus-socket.c \
3334 src/libsystemd/sd-bus/bus-socket.h \
3335 src/libsystemd/sd-bus/bus-kernel.c \
3336 src/libsystemd/sd-bus/bus-kernel.h \
3337 src/libsystemd/sd-bus/bus-container.c \
3338 src/libsystemd/sd-bus/bus-container.h \
3339 src/libsystemd/sd-bus/bus-message.c \
3340 src/libsystemd/sd-bus/bus-message.h \
3341 src/libsystemd/sd-bus/bus-creds.c \
3342 src/libsystemd/sd-bus/bus-creds.h \
3343 src/libsystemd/sd-bus/bus-signature.c \
3344 src/libsystemd/sd-bus/bus-signature.h \
3345 src/libsystemd/sd-bus/bus-type.c \
3346 src/libsystemd/sd-bus/bus-type.h \
3347 src/libsystemd/sd-bus/bus-match.c \
3348 src/libsystemd/sd-bus/bus-match.h \
3349 src/libsystemd/sd-bus/bus-bloom.c \
3350 src/libsystemd/sd-bus/bus-bloom.h \
3351 src/libsystemd/sd-bus/bus-introspect.c \
3352 src/libsystemd/sd-bus/bus-introspect.h \
3353 src/libsystemd/sd-bus/bus-objects.c \
3354 src/libsystemd/sd-bus/bus-objects.h \
3355 src/libsystemd/sd-bus/bus-gvariant.c \
3356 src/libsystemd/sd-bus/bus-gvariant.h \
3357 src/libsystemd/sd-bus/bus-convenience.c \
3358 src/libsystemd/sd-bus/bus-track.c \
3359 src/libsystemd/sd-bus/bus-track.h \
3360 src/libsystemd/sd-bus/bus-slot.c \
3361 src/libsystemd/sd-bus/bus-slot.h \
3362 src/libsystemd/sd-bus/bus-protocol.h \
3363 src/libsystemd/sd-bus/kdbus.h \
3364 src/libsystemd/sd-bus/bus-dump.c \
3365 src/libsystemd/sd-bus/bus-dump.h \
3366 src/libsystemd/sd-utf8/sd-utf8.c \
3367 src/libsystemd/sd-event/sd-event.c \
3368 src/libsystemd/sd-netlink/sd-netlink.c \
3369 src/libsystemd/sd-netlink/netlink-internal.h \
3370 src/libsystemd/sd-netlink/netlink-message.c \
3371 src/libsystemd/sd-netlink/netlink-socket.c \
3372 src/libsystemd/sd-netlink/rtnl-message.c \
3373 src/libsystemd/sd-netlink/netlink-types.h \
3374 src/libsystemd/sd-netlink/netlink-types.c \
3375 src/libsystemd/sd-netlink/netlink-util.h \
3376 src/libsystemd/sd-netlink/netlink-util.c \
3377 src/libsystemd/sd-netlink/local-addresses.h \
3378 src/libsystemd/sd-netlink/local-addresses.c \
3379 src/libsystemd/sd-id128/sd-id128.c \
3380 src/libsystemd/sd-id128/id128-util.h \
3381 src/libsystemd/sd-id128/id128-util.c \
3382 src/libsystemd/sd-daemon/sd-daemon.c \
3383 src/libsystemd/sd-login/sd-login.c \
3384 src/libsystemd/sd-path/sd-path.c \
3385 src/libsystemd/sd-network/sd-network.c \
3386 src/libsystemd/sd-network/network-util.h \
3387 src/libsystemd/sd-network/network-util.c \
3388 src/libsystemd/sd-hwdb/sd-hwdb.c \
3389 src/libsystemd/sd-hwdb/hwdb-util.h \
3390 src/libsystemd/sd-hwdb/hwdb-internal.h \
3391 src/libsystemd/sd-device/device-internal.h \
3392 src/libsystemd/sd-device/device-util.h \
3393 src/libsystemd/sd-device/device-enumerator.c \
3394 src/libsystemd/sd-device/device-enumerator-private.h \
3395 src/libsystemd/sd-device/sd-device.c \
3396 src/libsystemd/sd-device/device-private.c \
3397 src/libsystemd/sd-device/device-private.h \
3398 src/libsystemd/sd-resolve/sd-resolve.c
3399
3400 libsystemd_internal_la_LIBADD = \
3401 -lresolv
3402
3403 noinst_LTLIBRARIES += \
3404 libsystemd-internal.la
3405
3406 EXTRA_DIST += \
3407 src/libsystemd/libsystemd.pc.in \
3408 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3409
3410 libsystemd_la_SOURCES =
3411
3412 libsystemd_la_LDFLAGS = \
3413 $(AM_LDFLAGS) \
3414 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3415 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3416
3417 libsystemd_la_LIBADD = \
3418 libsystemd-internal.la \
3419 libbasic.la \
3420 libsystemd-journal-internal.la
3421
3422 pkgconfiglib_DATA += \
3423 src/libsystemd/libsystemd.pc
3424
3425 pkginclude_HEADERS += \
3426 src/systemd/sd-bus.h \
3427 src/systemd/sd-bus-protocol.h \
3428 src/systemd/sd-bus-vtable.h \
3429 src/systemd/sd-event.h \
3430 src/systemd/sd-login.h \
3431 src/systemd/sd-id128.h \
3432 src/systemd/sd-daemon.h
3433
3434 rootlib_LTLIBRARIES += \
3435 libsystemd.la
3436
3437 tests += \
3438 test-bus-marshal \
3439 test-bus-signature \
3440 test-bus-benchmark \
3441 test-bus-chat \
3442 test-bus-cleanup \
3443 test-bus-server \
3444 test-bus-match \
3445 test-bus-kernel \
3446 test-bus-kernel-bloom \
3447 test-bus-zero-copy \
3448 test-bus-introspect \
3449 test-bus-objects \
3450 test-bus-error \
3451 test-bus-creds \
3452 test-bus-gvariant \
3453 test-bus-track \
3454 test-event \
3455 test-netlink \
3456 test-local-addresses \
3457 test-resolve
3458
3459 bin_PROGRAMS += \
3460 busctl
3461
3462 test_bus_marshal_SOURCES = \
3463 src/libsystemd/sd-bus/test-bus-marshal.c
3464
3465 test_bus_marshal_LDADD = \
3466 libsystemd-shared.la \
3467 $(GLIB_LIBS) \
3468 $(DBUS_LIBS)
3469
3470 test_bus_marshal_CFLAGS = \
3471 $(AM_CFLAGS) \
3472 $(GLIB_CFLAGS) \
3473 $(DBUS_CFLAGS)
3474
3475 test_bus_signature_SOURCES = \
3476 src/libsystemd/sd-bus/test-bus-signature.c
3477
3478 test_bus_signature_LDADD = \
3479 libsystemd-shared.la
3480
3481 test_bus_chat_SOURCES = \
3482 src/libsystemd/sd-bus/test-bus-chat.c
3483
3484 test_bus_chat_LDADD = \
3485 libsystemd-shared.la
3486
3487 test_bus_cleanup_SOURCES = \
3488 src/libsystemd/sd-bus/test-bus-cleanup.c
3489
3490 test_bus_cleanup_CFLAGS = \
3491 $(AM_CFLAGS) \
3492 $(SECCOMP_CFLAGS)
3493
3494 test_bus_cleanup_LDADD = \
3495 libsystemd-shared.la
3496
3497 test_bus_track_SOURCES = \
3498 src/libsystemd/sd-bus/test-bus-track.c
3499
3500 test_bus_track_CFLAGS = \
3501 $(AM_CFLAGS) \
3502 $(SECCOMP_CFLAGS)
3503
3504 test_bus_track_LDADD = \
3505 libsystemd-shared.la
3506
3507 test_bus_server_SOURCES = \
3508 src/libsystemd/sd-bus/test-bus-server.c
3509
3510 test_bus_server_LDADD = \
3511 libsystemd-shared.la
3512
3513 test_bus_objects_SOURCES = \
3514 src/libsystemd/sd-bus/test-bus-objects.c
3515
3516 test_bus_objects_LDADD = \
3517 libsystemd-shared.la
3518
3519 test_bus_error_SOURCES = \
3520 src/libsystemd/sd-bus/test-bus-error.c
3521
3522 # Link statically because this test uses BUS_ERROR_MAP_ELF_REGISTER
3523 test_bus_error_LDADD = \
3524 libshared.la
3525
3526 test_bus_gvariant_SOURCES = \
3527 src/libsystemd/sd-bus/test-bus-gvariant.c
3528
3529 test_bus_gvariant_LDADD = \
3530 libsystemd-shared.la \
3531 $(GLIB_LIBS)
3532
3533 test_bus_gvariant_CFLAGS = \
3534 $(AM_CFLAGS) \
3535 $(GLIB_CFLAGS)
3536
3537 test_bus_creds_SOURCES = \
3538 src/libsystemd/sd-bus/test-bus-creds.c
3539
3540 test_bus_creds_LDADD = \
3541 libsystemd-shared.la
3542
3543 test_bus_match_SOURCES = \
3544 src/libsystemd/sd-bus/test-bus-match.c
3545
3546 test_bus_match_LDADD = \
3547 libsystemd-shared.la
3548
3549 test_bus_kernel_SOURCES = \
3550 src/libsystemd/sd-bus/test-bus-kernel.c
3551
3552 test_bus_kernel_LDADD = \
3553 libsystemd-shared.la
3554
3555 test_bus_kernel_bloom_SOURCES = \
3556 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3557
3558 test_bus_kernel_bloom_LDADD = \
3559 libsystemd-shared.la
3560
3561 test_bus_benchmark_SOURCES = \
3562 src/libsystemd/sd-bus/test-bus-benchmark.c
3563
3564 test_bus_benchmark_LDADD = \
3565 libsystemd-shared.la
3566
3567 test_bus_zero_copy_SOURCES = \
3568 src/libsystemd/sd-bus/test-bus-zero-copy.c
3569
3570 test_bus_zero_copy_LDADD = \
3571 libsystemd-shared.la
3572
3573 test_bus_introspect_SOURCES = \
3574 src/libsystemd/sd-bus/test-bus-introspect.c
3575
3576 test_bus_introspect_LDADD = \
3577 libsystemd-shared.la
3578
3579 test_event_SOURCES = \
3580 src/libsystemd/sd-event/test-event.c
3581
3582 test_event_LDADD = \
3583 libsystemd-shared.la
3584
3585 test_netlink_SOURCES = \
3586 src/libsystemd/sd-netlink/test-netlink.c
3587
3588 test_netlink_LDADD = \
3589 libsystemd-shared.la
3590
3591 test_local_addresses_SOURCES = \
3592 src/libsystemd/sd-netlink/test-local-addresses.c
3593
3594 test_local_addresses_LDADD = \
3595 libsystemd-shared.la
3596
3597 test_resolve_SOURCES = \
3598 src/libsystemd/sd-resolve/test-resolve.c
3599
3600 test_resolve_LDADD = \
3601 libsystemd-shared.la
3602
3603 busctl_SOURCES = \
3604 src/busctl/busctl.c \
3605 src/busctl/busctl-introspect.c \
3606 src/busctl/busctl-introspect.h
3607
3608 busctl_LDADD = \
3609 libsystemd-shared.la
3610
3611 # ------------------------------------------------------------------------------
3612 noinst_LTLIBRARIES += \
3613 libsystemd-network.la
3614
3615 libsystemd_network_la_CFLAGS = \
3616 $(AM_CFLAGS) \
3617 $(KMOD_CFLAGS)
3618
3619 libsystemd_network_la_SOURCES = \
3620 src/systemd/sd-dhcp-client.h \
3621 src/systemd/sd-dhcp-server.h \
3622 src/systemd/sd-dhcp-lease.h \
3623 src/systemd/sd-ipv4ll.h \
3624 src/systemd/sd-ipv4acd.h \
3625 src/systemd/sd-ndisc.h \
3626 src/systemd/sd-dhcp6-client.h \
3627 src/systemd/sd-dhcp6-lease.h \
3628 src/systemd/sd-lldp.h \
3629 src/libsystemd-network/sd-dhcp-client.c \
3630 src/libsystemd-network/sd-dhcp-server.c \
3631 src/libsystemd-network/dhcp-network.c \
3632 src/libsystemd-network/dhcp-option.c \
3633 src/libsystemd-network/dhcp-packet.c \
3634 src/libsystemd-network/dhcp-internal.h \
3635 src/libsystemd-network/dhcp-server-internal.h \
3636 src/libsystemd-network/dhcp-protocol.h \
3637 src/libsystemd-network/dhcp-lease-internal.h \
3638 src/libsystemd-network/sd-dhcp-lease.c \
3639 src/libsystemd-network/sd-ipv4ll.c \
3640 src/libsystemd-network/sd-ipv4acd.c \
3641 src/libsystemd-network/arp-util.h \
3642 src/libsystemd-network/arp-util.c \
3643 src/libsystemd-network/network-internal.c \
3644 src/libsystemd-network/network-internal.h \
3645 src/libsystemd-network/sd-ndisc.c \
3646 src/libsystemd-network/ndisc-internal.h \
3647 src/libsystemd-network/ndisc-router.h \
3648 src/libsystemd-network/ndisc-router.c \
3649 src/libsystemd-network/icmp6-util.h \
3650 src/libsystemd-network/icmp6-util.c \
3651 src/libsystemd-network/sd-dhcp6-client.c \
3652 src/libsystemd-network/dhcp6-internal.h \
3653 src/libsystemd-network/dhcp6-protocol.h \
3654 src/libsystemd-network/dhcp6-network.c \
3655 src/libsystemd-network/dhcp6-option.c \
3656 src/libsystemd-network/dhcp6-lease-internal.h \
3657 src/libsystemd-network/sd-dhcp6-lease.c \
3658 src/libsystemd-network/dhcp-identifier.h \
3659 src/libsystemd-network/dhcp-identifier.c \
3660 src/libsystemd-network/lldp-internal.h \
3661 src/libsystemd-network/lldp-network.h \
3662 src/libsystemd-network/lldp-network.c \
3663 src/libsystemd-network/lldp-neighbor.h \
3664 src/libsystemd-network/lldp-neighbor.c \
3665 src/libsystemd-network/sd-lldp.c
3666
3667 libsystemd_network_la_LIBADD = \
3668 $(KMOD_LIBS)
3669
3670 test_dhcp_option_SOURCES = \
3671 src/libsystemd-network/dhcp-protocol.h \
3672 src/libsystemd-network/dhcp-internal.h \
3673 src/libsystemd-network/test-dhcp-option.c
3674
3675 test_dhcp_option_LDADD = \
3676 libsystemd-network.la \
3677 libsystemd-shared.la
3678
3679 test_dhcp_client_SOURCES = \
3680 src/systemd/sd-dhcp-client.h \
3681 src/libsystemd-network/dhcp-protocol.h \
3682 src/libsystemd-network/dhcp-internal.h \
3683 src/libsystemd-network/test-dhcp-client.c
3684
3685 test_dhcp_client_LDADD = \
3686 libsystemd-network.la \
3687 libsystemd-shared.la
3688
3689 test_dhcp_server_SOURCES = \
3690 src/libsystemd-network/test-dhcp-server.c
3691
3692 test_dhcp_server_LDADD = \
3693 libsystemd-network.la \
3694 libsystemd-shared.la
3695
3696 test_ipv4ll_SOURCES = \
3697 src/systemd/sd-ipv4ll.h \
3698 src/libsystemd-network/arp-util.h \
3699 src/libsystemd-network/test-ipv4ll.c
3700
3701 test_ipv4ll_LDADD = \
3702 libsystemd-network.la \
3703 libsystemd-shared.la
3704
3705 test_ipv4ll_manual_SOURCES = \
3706 src/systemd/sd-ipv4ll.h \
3707 src/libsystemd-network/test-ipv4ll-manual.c
3708
3709 test_ipv4ll_manual_LDADD = \
3710 libsystemd-network.la \
3711 libsystemd-shared.la
3712
3713 test_acd_SOURCES = \
3714 src/systemd/sd-ipv4acd.h \
3715 src/libsystemd-network/test-acd.c
3716
3717 test_acd_LDADD = \
3718 libsystemd-network.la \
3719 libsystemd-shared.la
3720
3721 test_ndisc_rs_SOURCES = \
3722 src/systemd/sd-dhcp6-client.h \
3723 src/systemd/sd-ndisc.h \
3724 src/libsystemd-network/icmp6-util.h \
3725 src/libsystemd-network/test-ndisc-rs.c \
3726 src/libsystemd-network/dhcp-identifier.h \
3727 src/libsystemd-network/dhcp-identifier.c
3728
3729 test_ndisc_rs_LDADD = \
3730 libsystemd-network.la \
3731 libudev.la \
3732 libsystemd-shared.la
3733
3734 test_dhcp6_client_SOURCES = \
3735 src/systemd/sd-dhcp6-client.h \
3736 src/libsystemd-network/dhcp6-internal.h \
3737 src/libsystemd-network/test-dhcp6-client.c \
3738 src/libsystemd-network/dhcp-identifier.h \
3739 src/libsystemd-network/dhcp-identifier.c
3740
3741 test_dhcp6_client_LDADD = \
3742 libsystemd-network.la \
3743 libudev.la \
3744 libsystemd-shared.la
3745
3746 test_lldp_SOURCES = \
3747 src/libsystemd-network/test-lldp.c
3748
3749 test_lldp_LDADD = \
3750 libsystemd-network.la \
3751 libsystemd-shared.la
3752
3753 tests += \
3754 test-dhcp-option \
3755 test-dhcp-client \
3756 test-dhcp-server \
3757 test-ipv4ll \
3758 test-ndisc-rs \
3759 test-dhcp6-client \
3760 test-lldp
3761
3762 # ------------------------------------------------------------------------------
3763 include_HEADERS += \
3764 src/libudev/libudev.h
3765
3766 rootlib_LTLIBRARIES += \
3767 libudev.la
3768
3769 libudev_la_SOURCES =\
3770 src/libudev/libudev.sym \
3771 src/libudev/libudev-private.h \
3772 src/libudev/libudev-device-internal.h \
3773 src/libudev/libudev.c \
3774 src/libudev/libudev-list.c \
3775 src/libudev/libudev-util.c \
3776 src/libudev/libudev-device.c \
3777 src/libudev/libudev-device-private.c \
3778 src/libudev/libudev-enumerate.c \
3779 src/libudev/libudev-monitor.c \
3780 src/libudev/libudev-queue.c \
3781 src/libudev/libudev-hwdb.c
3782
3783 libudev_la_LDFLAGS = \
3784 $(AM_LDFLAGS) \
3785 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3786 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3787
3788 libudev_la_LIBADD = \
3789 libsystemd-internal.la \
3790 libbasic.la
3791
3792 pkgconfiglib_DATA += \
3793 src/libudev/libudev.pc
3794
3795 EXTRA_DIST += \
3796 src/libudev/libudev.pc.in
3797
3798 # ------------------------------------------------------------------------------
3799 noinst_LTLIBRARIES += \
3800 libudev-internal.la
3801
3802 libudev_internal_la_SOURCES =\
3803 $(libudev_la_SOURCES)
3804
3805 # ------------------------------------------------------------------------------
3806 INSTALL_DIRS += \
3807 $(sysconfdir)/udev/rules.d
3808
3809 dist_network_DATA = \
3810 network/99-default.link \
3811 network/80-container-host0.network \
3812 network/80-container-ve.network \
3813 network/80-container-vz.network
3814
3815 dist_udevrules_DATA += \
3816 rules/60-block.rules \
3817 rules/60-drm.rules \
3818 rules/60-evdev.rules \
3819 rules/60-persistent-storage-tape.rules \
3820 rules/60-persistent-input.rules \
3821 rules/60-persistent-alsa.rules \
3822 rules/60-persistent-storage.rules \
3823 rules/60-sensor.rules \
3824 rules/60-serial.rules \
3825 rules/64-btrfs.rules \
3826 rules/70-mouse.rules \
3827 rules/70-touchpad.rules \
3828 rules/75-net-description.rules \
3829 rules/78-sound-card.rules \
3830 rules/80-net-setup-link.rules
3831
3832 nodist_udevrules_DATA += \
3833 rules/50-udev-default.rules \
3834 rules/99-systemd.rules
3835
3836 udevconfdir = $(sysconfdir)/udev
3837 dist_udevconf_DATA = \
3838 src/udev/udev.conf
3839
3840 pkgconfigdata_DATA += \
3841 src/udev/udev.pc
3842
3843 EXTRA_DIST += \
3844 rules/50-udev-default.rules.in \
3845 rules/99-systemd.rules.in \
3846 src/udev/udev.pc.in
3847
3848 EXTRA_DIST += \
3849 units/systemd-udevd.service.in \
3850 units/systemd-udev-trigger.service.in \
3851 units/systemd-udev-settle.service.in
3852
3853 SOCKETS_TARGET_WANTS += \
3854 systemd-udevd-control.socket \
3855 systemd-udevd-kernel.socket
3856
3857 SYSINIT_TARGET_WANTS += \
3858 systemd-udevd.service \
3859 systemd-udev-trigger.service
3860
3861 rootbin_PROGRAMS += \
3862 udevadm
3863
3864 rootlibexec_PROGRAMS += \
3865 systemd-udevd
3866
3867 noinst_LTLIBRARIES += \
3868 libudev-core.la
3869
3870 src/udev/keyboard-keys-list.txt:
3871 $(AM_V_at)$(MKDIR_P) $(dir $@)
3872 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9K]/ { if ($$2 != "KEY_MAX") { print $$2 } }' > $@
3873
3874 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3875 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key_name { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3876
3877 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3878 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3879
3880 gperf_txt_sources += \
3881 src/udev/keyboard-keys-list.txt
3882
3883 libudev_core_la_SOURCES = \
3884 src/udev/udev.h \
3885 src/udev/udev-event.c \
3886 src/udev/udev-watch.c \
3887 src/udev/udev-node.c \
3888 src/udev/udev-rules.c \
3889 src/udev/udev-ctrl.c \
3890 src/udev/udev-builtin.c \
3891 src/udev/udev-builtin-btrfs.c \
3892 src/udev/udev-builtin-hwdb.c \
3893 src/udev/udev-builtin-input_id.c \
3894 src/udev/udev-builtin-keyboard.c \
3895 src/udev/udev-builtin-net_id.c \
3896 src/udev/udev-builtin-net_setup_link.c \
3897 src/udev/udev-builtin-path_id.c \
3898 src/udev/udev-builtin-usb_id.c \
3899 src/udev/net/link-config.h \
3900 src/udev/net/link-config.c \
3901 src/udev/net/ethtool-util.h \
3902 src/udev/net/ethtool-util.c
3903
3904 nodist_libudev_core_la_SOURCES = \
3905 src/udev/keyboard-keys-from-name.h \
3906 src/udev/net/link-config-gperf.c
3907
3908 gperf_gperf_sources += \
3909 src/udev/net/link-config-gperf.gperf
3910
3911 libudev_core_la_CFLAGS = \
3912 $(AM_CFLAGS) \
3913 $(BLKID_CFLAGS) \
3914 $(KMOD_CFLAGS)
3915
3916 libudev_core_la_LIBADD = \
3917 libsystemd-network.la \
3918 libshared.la \
3919 $(BLKID_LIBS) \
3920 $(KMOD_LIBS)
3921
3922 if HAVE_KMOD
3923 libudev_core_la_SOURCES += \
3924 src/udev/udev-builtin-kmod.c
3925
3926 dist_udevrules_DATA += \
3927 rules/80-drivers.rules
3928 endif
3929
3930 if HAVE_BLKID
3931 libudev_core_la_SOURCES += \
3932 src/udev/udev-builtin-blkid.c
3933 endif
3934
3935 if HAVE_ACL
3936 libudev_core_la_SOURCES += \
3937 src/udev/udev-builtin-uaccess.c \
3938 src/login/logind-acl.c \
3939 src/libsystemd/sd-login/sd-login.c \
3940 src/systemd/sd-login.h
3941 endif
3942
3943 systemd_udevd_SOURCES = \
3944 src/udev/udevd.c
3945
3946 systemd_udevd_LDADD = \
3947 libudev-core.la \
3948 libbasic.la
3949
3950 udevadm_SOURCES = \
3951 src/udev/udevadm.c \
3952 src/udev/udevadm-info.c \
3953 src/udev/udevadm-control.c \
3954 src/udev/udevadm-monitor.c \
3955 src/udev/udevadm-hwdb.c \
3956 src/udev/udevadm-settle.c \
3957 src/udev/udevadm-trigger.c \
3958 src/udev/udevadm-test.c \
3959 src/udev/udevadm-test-builtin.c \
3960 src/udev/udevadm-util.c \
3961 src/udev/udevadm-util.h
3962
3963 udevadm_LDADD = \
3964 libudev-core.la \
3965 libbasic.la
3966
3967 # ------------------------------------------------------------------------------
3968 if ENABLE_HWDB
3969 INSTALL_DIRS += \
3970 $(sysconfdir)/udev/hwdb.d
3971
3972 systemd_hwdb_SOURCES = \
3973 src/libsystemd/sd-hwdb/hwdb-internal.h \
3974 src/hwdb/hwdb.c
3975
3976 systemd_hwdb_LDADD = \
3977 libshared.la
3978
3979 rootbin_PROGRAMS += \
3980 systemd-hwdb
3981
3982 dist_udevhwdb_DATA = \
3983 hwdb/20-pci-vendor-model.hwdb \
3984 hwdb/20-pci-classes.hwdb \
3985 hwdb/20-usb-vendor-model.hwdb \
3986 hwdb/20-usb-classes.hwdb \
3987 hwdb/20-sdio-vendor-model.hwdb \
3988 hwdb/20-sdio-classes.hwdb \
3989 hwdb/20-bluetooth-vendor-product.hwdb \
3990 hwdb/20-acpi-vendor.hwdb \
3991 hwdb/20-OUI.hwdb \
3992 hwdb/20-net-ifname.hwdb \
3993 hwdb/60-evdev.hwdb \
3994 hwdb/60-keyboard.hwdb \
3995 hwdb/60-sensor.hwdb \
3996 hwdb/70-mouse.hwdb \
3997 hwdb/70-pointingstick.hwdb \
3998 hwdb/70-touchpad.hwdb
3999
4000 SYSINIT_TARGET_WANTS += \
4001 systemd-hwdb-update.service
4002
4003 # Update hwdb on installation. Do not bother if installing
4004 # in DESTDIR, since this is likely for packaging purposes.
4005 hwdb-update-hook:
4006 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
4007
4008 INSTALL_DATA_HOOKS += \
4009 hwdb-update-hook
4010
4011 hwdb-remove-hook:
4012 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
4013 endif
4014
4015 EXTRA_DIST += \
4016 units/systemd-hwdb-update.service.in \
4017 hwdb/ids-update.pl \
4018 hwdb/sdio.ids
4019
4020 # ------------------------------------------------------------------------------
4021 if ENABLE_TESTS
4022 TESTS += \
4023 test/udev-test.pl \
4024 test/hwdb-test.sh
4025
4026 if HAVE_PYTHON
4027 TESTS += \
4028 test/rule-syntax-check.py \
4029 hwdb/parse_hwdb.py
4030
4031 if HAVE_SYSV_COMPAT
4032 TESTS += \
4033 test/sysv-generator-test.py
4034 endif
4035 endif
4036 endif
4037
4038 tests += \
4039 test-libudev
4040
4041 manual_tests += \
4042 test-udev
4043
4044 test_libudev_SOURCES = \
4045 src/test/test-libudev.c
4046
4047 test_libudev_LDADD = \
4048 libsystemd-shared.la
4049
4050 test_udev_SOURCES = \
4051 src/test/test-udev.c
4052
4053 test_udev_LDADD = \
4054 libudev-core.la \
4055 libsystemd-shared.la \
4056 $(BLKID_LIBS) \
4057 $(KMOD_LIBS) \
4058 -lrt
4059
4060 if ENABLE_TESTS
4061 check_DATA += \
4062 test/sys
4063 endif
4064
4065 # sysfs test tree
4066 test/sys: test/sys-script.py
4067 -rm -rf $@
4068 $(AM_V_at)$(MKDIR_P) $(dir $@)
4069 $(AM_V_GEN)$(top_srcdir)/test/sys-script.py $(dir $@)
4070 -touch $@
4071
4072 test-sys-distclean:
4073 -rm -rf test/sys
4074 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
4075
4076 EXTRA_DIST += \
4077 test/sys-script.py \
4078 test/udev-test.pl \
4079 test/hwdb-test.sh \
4080 test/rule-syntax-check.py \
4081 test/sysv-generator-test.py \
4082 test/mocks/fsck \
4083 hwdb/parse_hwdb.py
4084
4085 # ------------------------------------------------------------------------------
4086 ata_id_SOURCES = \
4087 src/udev/ata_id/ata_id.c
4088
4089 ata_id_LDADD = \
4090 libshared.la
4091
4092 udevlibexec_PROGRAMS += \
4093 ata_id
4094
4095 # ------------------------------------------------------------------------------
4096 cdrom_id_SOURCES = \
4097 src/udev/cdrom_id/cdrom_id.c
4098
4099 cdrom_id_LDADD = \
4100 libshared.la
4101
4102 udevlibexec_PROGRAMS += \
4103 cdrom_id
4104
4105 dist_udevrules_DATA += \
4106 rules/60-cdrom_id.rules
4107
4108 # ------------------------------------------------------------------------------
4109 collect_SOURCES = \
4110 src/udev/collect/collect.c
4111
4112 collect_LDADD = \
4113 libshared.la
4114
4115 udevlibexec_PROGRAMS += \
4116 collect
4117
4118 # ------------------------------------------------------------------------------
4119 scsi_id_SOURCES =\
4120 src/udev/scsi_id/scsi_id.c \
4121 src/udev/scsi_id/scsi_serial.c \
4122 src/udev/scsi_id/scsi.h \
4123 src/udev/scsi_id/scsi_id.h
4124
4125 scsi_id_LDADD = \
4126 libshared.la
4127
4128 udevlibexec_PROGRAMS += \
4129 scsi_id
4130
4131 EXTRA_DIST += \
4132 src/udev/scsi_id/README
4133
4134 # ------------------------------------------------------------------------------
4135 v4l_id_SOURCES = \
4136 src/udev/v4l_id/v4l_id.c
4137
4138 v4l_id_LDADD = \
4139 libshared.la
4140
4141 udevlibexec_PROGRAMS += \
4142 v4l_id
4143
4144 dist_udevrules_DATA += \
4145 rules/60-persistent-v4l.rules
4146
4147 # ------------------------------------------------------------------------------
4148 mtd_probe_SOURCES = \
4149 src/udev/mtd_probe/mtd_probe.c \
4150 src/udev/mtd_probe/mtd_probe.h \
4151 src/udev/mtd_probe/probe_smartmedia.c
4152
4153 dist_udevrules_DATA += \
4154 rules/75-probe_mtd.rules
4155
4156 udevlibexec_PROGRAMS += \
4157 mtd_probe
4158
4159 # ------------------------------------------------------------------------------
4160 test_id128_SOURCES = \
4161 src/test/test-id128.c
4162
4163 test_id128_LDADD = \
4164 libsystemd-shared.la
4165
4166 tests += \
4167 test-id128
4168
4169 # ------------------------------------------------------------------------------
4170 test_hash_SOURCES = \
4171 src/test/test-hash.c
4172
4173 test_hash_LDADD = \
4174 libsystemd-shared.la
4175
4176 tests += \
4177 test-hash
4178
4179 # ------------------------------------------------------------------------------
4180
4181 bin_PROGRAMS += \
4182 systemd-socket-activate
4183
4184 systemd_socket_activate_SOURCES = \
4185 src/activate/activate.c
4186
4187 systemd_socket_activate_LDADD = \
4188 libsystemd-shared.la
4189
4190 # ------------------------------------------------------------------------------
4191 systemd_journald_SOURCES = \
4192 src/journal/journald.c \
4193 src/journal/journald-server.h
4194
4195 systemd_journald_LDADD = \
4196 libjournal-core.la \
4197 libsystemd-shared.la
4198
4199 systemd_cat_SOURCES = \
4200 src/journal/cat.c
4201
4202 systemd_cat_LDADD = \
4203 libjournal-core.la
4204
4205 if HAVE_LIBCURL
4206 rootlibexec_PROGRAMS += \
4207 systemd-journal-upload
4208
4209 systemd_journal_upload_SOURCES = \
4210 src/journal-remote/journal-upload.h \
4211 src/journal-remote/journal-upload.c \
4212 src/journal-remote/journal-upload-journal.c
4213
4214 systemd_journal_upload_CFLAGS = \
4215 $(AM_CFLAGS) \
4216 $(LIBCURL_CFLAGS)
4217
4218 systemd_journal_upload_LDADD = \
4219 libsystemd-shared.la \
4220 $(LIBCURL_LIBS)
4221
4222 nodist_systemunit_DATA += \
4223 units/systemd-journal-upload.service
4224
4225 nodist_pkgsysconf_DATA += \
4226 src/journal-remote/journal-upload.conf
4227 endif
4228
4229 EXTRA_DIST += \
4230 units/systemd-journal-upload.service.in \
4231 src/journal-remote/journal-upload.conf.in
4232
4233 if HAVE_MICROHTTPD
4234 rootlibexec_PROGRAMS += \
4235 systemd-journal-remote
4236
4237 systemd_journal_remote_SOURCES = \
4238 src/journal-remote/journal-remote-parse.h \
4239 src/journal-remote/journal-remote-parse.c \
4240 src/journal-remote/journal-remote-write.h \
4241 src/journal-remote/journal-remote-write.c \
4242 src/journal-remote/journal-remote.h \
4243 src/journal-remote/journal-remote.c
4244
4245 systemd_journal_remote_LDADD = \
4246 libjournal-core.la
4247
4248 systemd_journal_remote_SOURCES += \
4249 src/journal-remote/microhttpd-util.h \
4250 src/journal-remote/microhttpd-util.c
4251
4252 systemd_journal_remote_CFLAGS = \
4253 $(AM_CFLAGS) \
4254 $(MICROHTTPD_CFLAGS)
4255
4256 systemd_journal_remote_LDADD += \
4257 $(MICROHTTPD_LIBS)
4258
4259 if ENABLE_TMPFILES
4260 dist_tmpfiles_DATA += \
4261 tmpfiles.d/systemd-remote.conf
4262 endif
4263
4264 if HAVE_GNUTLS
4265 systemd_journal_remote_LDADD += \
4266 $(GNUTLS_LIBS)
4267 endif
4268
4269 # systemd-journal-remote make sense mostly with full crypto stack
4270 dist_systemunit_DATA += \
4271 units/systemd-journal-remote.socket
4272
4273 nodist_systemunit_DATA += \
4274 units/systemd-journal-remote.service
4275
4276 journal-remote-install-hook: journal-install-hook
4277 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4278 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4279 -chmod 755 $(DESTDIR)/var/log/journal/remote
4280
4281 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4282
4283 nodist_pkgsysconf_DATA += \
4284 src/journal-remote/journal-remote.conf
4285
4286 EXTRA_DIST += \
4287 units/systemd-journal-remote.service.in \
4288 src/journal-remote/journal-remote.conf.in \
4289 src/journal-remote/log-generator.py
4290 endif
4291
4292 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4293 journalctl_CFLAGS = \
4294 $(AM_CFLAGS)
4295
4296 journalctl_SOURCES = \
4297 src/journal/journalctl.c
4298
4299 journalctl_LDADD = \
4300 libsystemd-shared.la \
4301 libudev-core.la
4302
4303 if HAVE_QRENCODE
4304 journalctl_SOURCES += \
4305 src/journal/journal-qrcode.c \
4306 src/journal/journal-qrcode.h
4307
4308 journalctl_CFLAGS += \
4309 $(QRENCODE_CFLAGS)
4310
4311 journalctl_LDADD += \
4312 $(QRENCODE_LIBS)
4313 endif
4314
4315 test_journal_SOURCES = \
4316 src/journal/test-journal.c
4317
4318 test_journal_LDADD = \
4319 libjournal-core.la
4320
4321 test_journal_send_SOURCES = \
4322 src/journal/test-journal-send.c
4323
4324 test_journal_send_LDADD = \
4325 libjournal-core.la
4326
4327 test_journal_syslog_SOURCES = \
4328 src/journal/test-journal-syslog.c
4329
4330 test_journal_syslog_LDADD = \
4331 libjournal-core.la
4332
4333 test_journal_match_SOURCES = \
4334 src/journal/test-journal-match.c
4335
4336 test_journal_match_LDADD = \
4337 libjournal-core.la
4338
4339 test_journal_enum_SOURCES = \
4340 src/journal/test-journal-enum.c
4341
4342 test_journal_enum_LDADD = \
4343 libjournal-core.la
4344
4345 test_journal_stream_SOURCES = \
4346 src/journal/test-journal-stream.c
4347
4348 test_journal_stream_LDADD = \
4349 libjournal-core.la
4350
4351 test_journal_flush_SOURCES = \
4352 src/journal/test-journal-flush.c
4353
4354 test_journal_flush_LDADD = \
4355 libjournal-core.la
4356
4357 test_journal_init_SOURCES = \
4358 src/journal/test-journal-init.c
4359
4360 test_journal_init_LDADD = \
4361 libjournal-core.la
4362
4363 test_journal_verify_SOURCES = \
4364 src/journal/test-journal-verify.c
4365
4366 test_journal_verify_LDADD = \
4367 libjournal-core.la
4368
4369 test_journal_interleaving_SOURCES = \
4370 src/journal/test-journal-interleaving.c
4371
4372 test_journal_interleaving_LDADD = \
4373 libjournal-core.la
4374
4375 test_mmap_cache_SOURCES = \
4376 src/journal/test-mmap-cache.c
4377
4378 test_mmap_cache_LDADD = \
4379 libjournal-core.la
4380
4381 test_catalog_SOURCES = \
4382 src/journal/test-catalog.c
4383
4384 test_catalog_CPPFLAGS = \
4385 $(AM_CPPFLAGS) \
4386 -DCATALOG_DIR=\"$(abs_top_builddir)/catalog\"
4387
4388 test_catalog_LDADD = \
4389 libjournal-core.la
4390
4391 test_compress_SOURCES = \
4392 src/journal/test-compress.c
4393
4394 test_compress_LDADD = \
4395 libsystemd-shared.la
4396
4397 if HAVE_LZ4
4398 test_compress_LDADD += \
4399 -llz4
4400 endif
4401
4402 test_compress_benchmark_SOURCES = \
4403 src/journal/test-compress-benchmark.c
4404
4405 test_compress_benchmark_LDADD = \
4406 libsystemd-shared.la
4407
4408 test_audit_type_SOURCES = \
4409 src/journal/test-audit-type.c
4410
4411 test_audit_type_LDADD = \
4412 libjournal-core.la
4413
4414 libjournal_core_la_SOURCES = \
4415 src/journal/journald-kmsg.c \
4416 src/journal/journald-kmsg.h \
4417 src/journal/journald-syslog.c \
4418 src/journal/journald-syslog.h \
4419 src/journal/journald-stream.c \
4420 src/journal/journald-stream.h \
4421 src/journal/journald-server.c \
4422 src/journal/journald-server.h \
4423 src/journal/journald-console.c \
4424 src/journal/journald-console.h \
4425 src/journal/journald-wall.c \
4426 src/journal/journald-wall.h \
4427 src/journal/journald-native.c \
4428 src/journal/journald-native.h \
4429 src/journal/journald-audit.c \
4430 src/journal/journald-audit.h \
4431 src/journal/journald-rate-limit.c \
4432 src/journal/journald-rate-limit.h \
4433 src/journal/journal-internal.h
4434
4435 nodist_libjournal_core_la_SOURCES = \
4436 src/journal/journald-gperf.c
4437
4438 libjournal_core_la_LIBADD = \
4439 libsystemd-shared.la
4440
4441 noinst_LTLIBRARIES += \
4442 libjournal-core.la
4443
4444 journal-install-hook:
4445 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4446 -chown 0:0 $(DESTDIR)/var/log/journal
4447 -chmod 755 $(DESTDIR)/var/log/journal
4448 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4449 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4450
4451 journal-uninstall-hook:
4452 -rmdir $(DESTDIR)/var/log/journal/remote
4453 -rmdir $(DESTDIR)/var/log/journal/
4454
4455 INSTALL_EXEC_HOOKS += journal-install-hook
4456 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4457
4458 # ------------------------------------------------------------------------------
4459 # Update catalog on installation. Do not bother if installing
4460 # in DESTDIR, since this is likely for packaging purposes.
4461 catalog-update-hook:
4462 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4463
4464 INSTALL_DATA_HOOKS += \
4465 catalog-update-hook
4466
4467 catalog-remove-hook:
4468 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4469
4470 UNINSTALL_DATA_HOOKS += \
4471 catalog-remove-hook
4472
4473 tests += \
4474 test-journal \
4475 test-journal-enum \
4476 test-journal-send \
4477 test-journal-syslog \
4478 test-journal-match \
4479 test-journal-stream \
4480 test-journal-init \
4481 test-journal-verify \
4482 test-journal-interleaving \
4483 test-journal-flush \
4484 test-mmap-cache \
4485 test-catalog \
4486 test-audit-type
4487
4488 if HAVE_COMPRESSION
4489 tests += \
4490 test-compress \
4491 test-compress-benchmark
4492 endif
4493
4494 pkginclude_HEADERS += \
4495 src/systemd/sd-journal.h \
4496 src/systemd/sd-messages.h \
4497 src/systemd/_sd-common.h
4498
4499 libsystemd_journal_internal_la_SOURCES = \
4500 src/journal/sd-journal.c \
4501 src/systemd/sd-journal.h \
4502 src/systemd/_sd-common.h \
4503 src/journal/journal-file.c \
4504 src/journal/journal-file.h \
4505 src/journal/journal-vacuum.c \
4506 src/journal/journal-vacuum.h \
4507 src/journal/journal-verify.c \
4508 src/journal/journal-verify.h \
4509 src/journal/lookup3.c \
4510 src/journal/lookup3.h \
4511 src/journal/journal-send.c \
4512 src/journal/journal-def.h \
4513 src/journal/compress.h \
4514 src/journal/catalog.c \
4515 src/journal/catalog.h \
4516 src/journal/mmap-cache.c \
4517 src/journal/mmap-cache.h \
4518 src/journal/compress.c \
4519 src/journal/audit-type.h \
4520 src/journal/audit-type.c \
4521 src/shared/gcrypt-util.h \
4522 src/shared/gcrypt-util.c
4523
4524 nodist_libsystemd_journal_internal_la_SOURCES = \
4525 src/journal/audit_type-to-name.h
4526
4527 gperf_txt_sources += \
4528 src/journal/audit_type-list.txt
4529
4530 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4531 libsystemd_journal_internal_la_CFLAGS = \
4532 $(AM_CFLAGS)
4533
4534 libsystemd_journal_internal_la_LIBADD =
4535
4536 if HAVE_XZ
4537 libsystemd_journal_internal_la_CFLAGS += \
4538 $(XZ_CFLAGS)
4539
4540 libsystemd_journal_internal_la_LIBADD += \
4541 $(XZ_LIBS)
4542 endif
4543
4544 if HAVE_LZ4
4545 libsystemd_journal_internal_la_LIBADD += \
4546 -llz4
4547 endif
4548
4549 if HAVE_GCRYPT
4550 libsystemd_journal_internal_la_SOURCES += \
4551 src/journal/journal-authenticate.c \
4552 src/journal/journal-authenticate.h \
4553 src/journal/fsprg.c \
4554 src/journal/fsprg.h
4555
4556 libsystemd_journal_internal_la_LIBADD += \
4557 $(GCRYPT_LIBS)
4558
4559 libsystemd_journal_internal_la_CFLAGS += \
4560 $(GCRYPT_CFLAGS)
4561 endif
4562
4563 noinst_LTLIBRARIES += \
4564 libsystemd-journal-internal.la
4565
4566 rootlibexec_PROGRAMS += \
4567 systemd-journald
4568
4569 rootbin_PROGRAMS += \
4570 journalctl
4571
4572 bin_PROGRAMS += \
4573 systemd-cat
4574
4575 dist_systemunit_DATA += \
4576 units/systemd-journald.socket \
4577 units/systemd-journald-dev-log.socket \
4578 units/systemd-journald-audit.socket
4579
4580 nodist_systemunit_DATA += \
4581 units/systemd-journald.service \
4582 units/systemd-journal-flush.service \
4583 units/systemd-journal-catalog-update.service
4584
4585 dist_pkgsysconf_DATA += \
4586 src/journal/journald.conf
4587
4588 nodist_catalog_DATA = \
4589 catalog/systemd.bg.catalog \
4590 catalog/systemd.be.catalog \
4591 catalog/systemd.be@latin.catalog \
4592 catalog/systemd.fr.catalog \
4593 catalog/systemd.it.catalog \
4594 catalog/systemd.pl.catalog \
4595 catalog/systemd.pt_BR.catalog \
4596 catalog/systemd.ru.catalog \
4597 catalog/systemd.zh_CN.catalog \
4598 catalog/systemd.zh_TW.catalog \
4599 catalog/systemd.catalog
4600
4601 EXTRA_DIST += \
4602 $(nodist_catalog_DATA:.catalog=.catalog.in)
4603
4604 # Note that we don't use @@ for replacement markers here, but %%. This is
4605 # because the catalog uses @@ already for its runtime replacement handling and
4606 # we don't want to conflict with that.
4607 catalog/%.catalog: catalog/%.catalog.in
4608 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4609 $(SED) -e 's~%SUPPORT_URL%~$(SUPPORT_URL)~' < $< > $@
4610
4611 SOCKETS_TARGET_WANTS += \
4612 systemd-journald.socket \
4613 systemd-journald-dev-log.socket \
4614 systemd-journald-audit.socket
4615
4616 SYSINIT_TARGET_WANTS += \
4617 systemd-journald.service \
4618 systemd-journal-flush.service \
4619 systemd-journal-catalog-update.service
4620
4621 EXTRA_DIST += \
4622 units/systemd-journald.service.in \
4623 units/systemd-journal-flush.service.in \
4624 units/systemd-journal-catalog-update.service.in
4625
4626 gperf_gperf_sources += \
4627 src/journal/journald-gperf.gperf
4628
4629 # ------------------------------------------------------------------------------
4630 if HAVE_MICROHTTPD
4631 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4632
4633 rootlibexec_PROGRAMS += \
4634 systemd-journal-gatewayd
4635
4636 systemd_journal_gatewayd_SOURCES = \
4637 src/journal-remote/journal-gatewayd.c \
4638 src/journal-remote/microhttpd-util.h \
4639 src/journal-remote/microhttpd-util.c
4640
4641 systemd_journal_gatewayd_LDADD = \
4642 libsystemd-shared.la \
4643 $(MICROHTTPD_LIBS)
4644
4645 if HAVE_GNUTLS
4646 systemd_journal_gatewayd_LDADD += \
4647 $(GNUTLS_LIBS)
4648 endif
4649
4650 systemd_journal_gatewayd_CFLAGS = \
4651 $(AM_CFLAGS) \
4652 $(MICROHTTPD_CFLAGS)
4653
4654 systemd_journal_gatewayd_CPPFLAGS = \
4655 $(AM_CPPFLAGS) \
4656 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4657
4658 dist_systemunit_DATA += \
4659 units/systemd-journal-gatewayd.socket
4660
4661 nodist_systemunit_DATA += \
4662 units/systemd-journal-gatewayd.service
4663
4664 dist_gatewayddocumentroot_DATA = \
4665 src/journal-remote/browse.html
4666
4667 endif
4668
4669 EXTRA_DIST += \
4670 units/systemd-journal-gatewayd.service.in
4671
4672 # ------------------------------------------------------------------------------
4673
4674 systemd_socket_proxyd_SOURCES = \
4675 src/socket-proxy/socket-proxyd.c
4676
4677 systemd_socket_proxyd_LDADD = \
4678 libsystemd-shared.la
4679
4680 # ------------------------------------------------------------------------------
4681 if ENABLE_COREDUMP
4682 systemd_coredump_SOURCES = \
4683 src/coredump/coredump.c \
4684 src/coredump/coredump-vacuum.c \
4685 src/coredump/coredump-vacuum.h
4686
4687 systemd_coredump_CFLAGS = \
4688 $(AM_CFLAGS) \
4689 $(ACL_CFLAGS)
4690
4691 systemd_coredump_LDADD = \
4692 libsystemd-shared.la \
4693 $(ACL_LIBS)
4694
4695 if HAVE_ELFUTILS
4696 systemd_coredump_SOURCES += \
4697 src/coredump/stacktrace.c \
4698 src/coredump/stacktrace.h
4699
4700 systemd_coredump_LDADD += \
4701 $(ELFUTILS_LIBS)
4702 endif
4703
4704 nodist_systemunit_DATA += \
4705 units/systemd-coredump@.service
4706
4707 dist_systemunit_DATA += \
4708 units/systemd-coredump.socket
4709
4710 SOCKETS_TARGET_WANTS += \
4711 systemd-coredump.socket
4712
4713 rootlibexec_PROGRAMS += \
4714 systemd-coredump
4715
4716 dist_pkgsysconf_DATA += \
4717 src/coredump/coredump.conf
4718
4719 coredumpctl_SOURCES = \
4720 src/coredump/coredumpctl.c
4721
4722 coredumpctl_LDADD = \
4723 libsystemd-shared.la
4724
4725 bin_PROGRAMS += \
4726 coredumpctl
4727
4728 manual_tests += \
4729 test-coredump-vacuum
4730
4731 test_coredump_vacuum_SOURCES = \
4732 src/coredump/test-coredump-vacuum.c \
4733 src/coredump/coredump-vacuum.c \
4734 src/coredump/coredump-vacuum.h
4735
4736 test_coredump_vacuum_LDADD = \
4737 libsystemd-shared.la
4738
4739 dist_bashcompletion_data += \
4740 shell-completion/bash/coredumpctl
4741
4742 dist_zshcompletion_data += \
4743 shell-completion/zsh/_coredumpctl
4744
4745 nodist_sysctl_DATA = \
4746 sysctl.d/50-coredump.conf
4747
4748 CLEANFILES += \
4749 sysctl.d/50-coredump.conf
4750 endif
4751
4752 EXTRA_DIST += \
4753 sysctl.d/50-coredump.conf.in \
4754 units/systemd-coredump@.service.in
4755
4756 # ------------------------------------------------------------------------------
4757 if ENABLE_BINFMT
4758 systemd_binfmt_SOURCES = \
4759 src/binfmt/binfmt.c
4760
4761 systemd_binfmt_LDADD = \
4762 libsystemd-shared.la
4763
4764 rootlibexec_PROGRAMS += \
4765 systemd-binfmt
4766
4767 dist_systemunit_DATA += \
4768 units/proc-sys-fs-binfmt_misc.automount \
4769 units/proc-sys-fs-binfmt_misc.mount
4770
4771 nodist_systemunit_DATA += \
4772 units/systemd-binfmt.service
4773
4774 INSTALL_DIRS += \
4775 $(prefix)/lib/binfmt.d \
4776 $(sysconfdir)/binfmt.d
4777
4778 SYSINIT_TARGET_WANTS += \
4779 systemd-binfmt.service \
4780 proc-sys-fs-binfmt_misc.automount
4781
4782 endif
4783
4784 EXTRA_DIST += \
4785 units/systemd-binfmt.service.in
4786
4787 # ------------------------------------------------------------------------------
4788 if ENABLE_VCONSOLE
4789 systemd_vconsole_setup_SOURCES = \
4790 src/vconsole/vconsole-setup.c
4791
4792 systemd_vconsole_setup_LDADD = \
4793 libsystemd-shared.la
4794
4795 rootlibexec_PROGRAMS += \
4796 systemd-vconsole-setup
4797
4798 nodist_udevrules_DATA += \
4799 src/vconsole/90-vconsole.rules
4800
4801 nodist_systemunit_DATA += \
4802 units/systemd-vconsole-setup.service
4803 endif
4804
4805 EXTRA_DIST += \
4806 src/vconsole/90-vconsole.rules.in \
4807 units/systemd-vconsole-setup.service.in
4808
4809 # ------------------------------------------------------------------------------
4810 if ENABLE_QUOTACHECK
4811 rootlibexec_PROGRAMS += \
4812 systemd-quotacheck
4813
4814 nodist_systemunit_DATA += \
4815 units/systemd-quotacheck.service
4816
4817 systemd_quotacheck_SOURCES = \
4818 src/quotacheck/quotacheck.c
4819
4820 systemd_quotacheck_LDADD = \
4821 libsystemd-shared.la
4822 endif
4823
4824 EXTRA_DIST += \
4825 units/systemd-quotacheck.service.in
4826
4827 nodist_systemunit_DATA += \
4828 units/quotaon.service
4829
4830 # ------------------------------------------------------------------------------
4831 if ENABLE_RANDOMSEED
4832 rootlibexec_PROGRAMS += \
4833 systemd-random-seed
4834
4835 nodist_systemunit_DATA += \
4836 units/systemd-random-seed.service
4837
4838 systemd_random_seed_SOURCES = \
4839 src/random-seed/random-seed.c
4840
4841 systemd_random_seed_LDADD = \
4842 libsystemd-shared.la
4843
4844 SYSINIT_TARGET_WANTS += \
4845 systemd-random-seed.service
4846
4847 endif
4848
4849 EXTRA_DIST += \
4850 units/systemd-random-seed.service.in
4851
4852 # ------------------------------------------------------------------------------
4853 if ENABLE_BACKLIGHT
4854 rootlibexec_PROGRAMS += \
4855 systemd-backlight
4856
4857 nodist_systemunit_DATA += \
4858 units/systemd-backlight@.service
4859
4860 systemd_backlight_SOURCES = \
4861 src/backlight/backlight.c
4862
4863 systemd_backlight_LDADD = \
4864 libsystemd-shared.la
4865 endif
4866
4867 EXTRA_DIST += \
4868 units/systemd-backlight@.service.in
4869
4870 # ------------------------------------------------------------------------------
4871 if ENABLE_RFKILL
4872 rootlibexec_PROGRAMS += \
4873 systemd-rfkill
4874
4875 nodist_systemunit_DATA += \
4876 units/systemd-rfkill.service
4877
4878 dist_systemunit_DATA += \
4879 units/systemd-rfkill.socket
4880
4881 systemd_rfkill_SOURCES = \
4882 src/rfkill/rfkill.c
4883
4884 systemd_rfkill_LDADD = \
4885 libsystemd-shared.la
4886 endif
4887
4888 EXTRA_DIST += \
4889 units/systemd-rfkill.service.in
4890
4891 # ------------------------------------------------------------------------------
4892 if HAVE_LIBCRYPTSETUP
4893 rootlibexec_PROGRAMS += \
4894 systemd-cryptsetup \
4895 systemd-veritysetup
4896
4897 systemgenerator_PROGRAMS += \
4898 systemd-cryptsetup-generator \
4899 systemd-veritysetup-generator
4900
4901 dist_systemunit_DATA += \
4902 units/cryptsetup.target \
4903 units/cryptsetup-pre.target
4904
4905 systemd_cryptsetup_SOURCES = \
4906 src/cryptsetup/cryptsetup.c
4907
4908 systemd_cryptsetup_CFLAGS = \
4909 $(AM_CFLAGS) \
4910 $(LIBCRYPTSETUP_CFLAGS)
4911
4912 systemd_cryptsetup_LDADD = \
4913 libsystemd-shared.la \
4914 $(LIBCRYPTSETUP_LIBS)
4915
4916 systemd_cryptsetup_generator_SOURCES = \
4917 src/cryptsetup/cryptsetup-generator.c
4918
4919 systemd_cryptsetup_generator_LDADD = \
4920 libsystemd-shared.la
4921
4922 systemd_veritysetup_SOURCES = \
4923 src/veritysetup/veritysetup.c
4924
4925 systemd_veritysetup_CFLAGS = \
4926 $(AM_CFLAGS) \
4927 $(LIBCRYPTSETUP_CFLAGS)
4928
4929 systemd_veritysetup_LDADD = \
4930 libsystemd-shared.la \
4931 $(LIBCRYPTSETUP_LIBS)
4932
4933 systemd_veritysetup_generator_SOURCES = \
4934 src/veritysetup/veritysetup-generator.c
4935
4936 systemd_veritysetup_generator_LDADD = \
4937 libsystemd-shared.la
4938
4939 SYSINIT_TARGET_WANTS += \
4940 cryptsetup.target
4941
4942 endif
4943
4944 # ------------------------------------------------------------------------------
4945 if ENABLE_HOSTNAMED
4946 systemd_hostnamed_SOURCES = \
4947 src/hostname/hostnamed.c
4948
4949 systemd_hostnamed_LDADD = \
4950 libsystemd-shared.la
4951
4952 rootlibexec_PROGRAMS += \
4953 systemd-hostnamed
4954
4955 nodist_systemunit_DATA += \
4956 units/systemd-hostnamed.service
4957
4958 dist_systemunit_DATA_busnames += \
4959 units/org.freedesktop.hostname1.busname
4960
4961 dist_dbuspolicy_DATA += \
4962 src/hostname/org.freedesktop.hostname1.conf
4963
4964 dist_dbussystemservice_DATA += \
4965 src/hostname/org.freedesktop.hostname1.service
4966
4967 polkitpolicy_files += \
4968 src/hostname/org.freedesktop.hostname1.policy
4969
4970 SYSTEM_UNIT_ALIASES += \
4971 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4972
4973 BUSNAMES_TARGET_WANTS += \
4974 org.freedesktop.hostname1.busname
4975
4976 hostnamectl_SOURCES = \
4977 src/hostname/hostnamectl.c
4978
4979 hostnamectl_LDADD = \
4980 libsystemd-shared.la
4981
4982 bin_PROGRAMS += \
4983 hostnamectl
4984
4985 dist_bashcompletion_data += \
4986 shell-completion/bash/hostnamectl
4987
4988 dist_zshcompletion_data += \
4989 shell-completion/zsh/_hostnamectl
4990 endif
4991
4992 polkitpolicy_in_files += \
4993 src/hostname/org.freedesktop.hostname1.policy.in
4994
4995 EXTRA_DIST += \
4996 units/systemd-hostnamed.service.in
4997
4998 # ------------------------------------------------------------------------------
4999 dist_systemunit_DATA_busnames += \
5000 units/org.freedesktop.systemd1.busname
5001
5002 BUSNAMES_TARGET_WANTS += \
5003 org.freedesktop.systemd1.busname
5004
5005 # ------------------------------------------------------------------------------
5006 if ENABLE_LOCALED
5007 systemd_localed_SOURCES = \
5008 src/locale/localed.c \
5009 src/locale/keymap-util.c \
5010 src/locale/keymap-util.h
5011
5012 systemd_localed_LDADD = \
5013 libsystemd-shared.la \
5014 -ldl
5015
5016 nodist_systemunit_DATA += \
5017 units/systemd-localed.service
5018
5019 dist_systemunit_DATA_busnames += \
5020 units/org.freedesktop.locale1.busname
5021
5022 rootlibexec_PROGRAMS += \
5023 systemd-localed
5024
5025 dist_dbuspolicy_DATA += \
5026 src/locale/org.freedesktop.locale1.conf
5027
5028 dist_dbussystemservice_DATA += \
5029 src/locale/org.freedesktop.locale1.service
5030
5031 polkitpolicy_files += \
5032 src/locale/org.freedesktop.locale1.policy
5033
5034 SYSTEM_UNIT_ALIASES += \
5035 systemd-localed.service dbus-org.freedesktop.locale1.service
5036
5037 BUSNAMES_TARGET_WANTS += \
5038 org.freedesktop.locale1.busname
5039
5040 dist_pkgdata_DATA = \
5041 src/locale/kbd-model-map \
5042 src/locale/language-fallback-map
5043
5044 test_keymap_util_SOURCES = \
5045 src/locale/test-keymap-util.c \
5046 src/locale/keymap-util.c \
5047 src/locale/keymap-util.h
5048
5049 test_keymap_util_LDADD = \
5050 libsystemd-shared.la \
5051 -ldl
5052
5053 tests += \
5054 test-keymap-util
5055
5056 localectl_SOURCES = \
5057 src/locale/localectl.c
5058
5059 localectl_LDADD = \
5060 libsystemd-shared.la
5061
5062 bin_PROGRAMS += \
5063 localectl
5064
5065 dist_bashcompletion_data += \
5066 shell-completion/bash/localectl
5067
5068 dist_zshcompletion_data += \
5069 shell-completion/zsh/_localectl
5070 endif
5071
5072 polkitpolicy_in_files += \
5073 src/locale/org.freedesktop.locale1.policy.in
5074
5075 EXTRA_DIST += \
5076 units/systemd-localed.service.in
5077
5078 # ------------------------------------------------------------------------------
5079 if ENABLE_TIMEDATED
5080 systemd_timedated_SOURCES = \
5081 src/timedate/timedated.c
5082
5083 systemd_timedated_LDADD = \
5084 libsystemd-shared.la
5085
5086 rootlibexec_PROGRAMS += \
5087 systemd-timedated
5088
5089 dist_dbussystemservice_DATA += \
5090 src/timedate/org.freedesktop.timedate1.service
5091
5092 dist_dbuspolicy_DATA += \
5093 src/timedate/org.freedesktop.timedate1.conf
5094
5095 nodist_systemunit_DATA += \
5096 units/systemd-timedated.service
5097
5098 dist_systemunit_DATA_busnames += \
5099 units/org.freedesktop.timedate1.busname
5100
5101 polkitpolicy_files += \
5102 src/timedate/org.freedesktop.timedate1.policy
5103
5104 SYSTEM_UNIT_ALIASES += \
5105 systemd-timedated.service dbus-org.freedesktop.timedate1.service
5106
5107 BUSNAMES_TARGET_WANTS += \
5108 org.freedesktop.timedate1.busname
5109
5110 timedatectl_SOURCES = \
5111 src/timedate/timedatectl.c
5112
5113 timedatectl_LDADD = \
5114 libsystemd-shared.la
5115
5116 bin_PROGRAMS += \
5117 timedatectl
5118
5119 dist_bashcompletion_data += \
5120 shell-completion/bash/timedatectl
5121
5122 dist_zshcompletion_data += \
5123 shell-completion/zsh/_timedatectl
5124 endif
5125
5126 polkitpolicy_in_files += \
5127 src/timedate/org.freedesktop.timedate1.policy.in
5128
5129 EXTRA_DIST += \
5130 units/systemd-timedated.service.in
5131
5132 # ------------------------------------------------------------------------------
5133 if ENABLE_TIMESYNCD
5134 systemd_timesyncd_SOURCES = \
5135 src/timesync/timesyncd.c \
5136 src/timesync/timesyncd-manager.c \
5137 src/timesync/timesyncd-manager.h \
5138 src/timesync/timesyncd-conf.c \
5139 src/timesync/timesyncd-conf.h \
5140 src/timesync/timesyncd-server.c \
5141 src/timesync/timesyncd-server.h
5142
5143 nodist_systemd_timesyncd_SOURCES = \
5144 src/timesync/timesyncd-gperf.c
5145
5146 systemd_timesyncd_LDADD = \
5147 libsystemd-network.la \
5148 libsystemd-shared.la \
5149 -lm
5150
5151 rootlibexec_PROGRAMS += \
5152 systemd-timesyncd
5153
5154 nodist_systemunit_DATA += \
5155 units/systemd-timesyncd.service
5156
5157 GENERAL_ALIASES += \
5158 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5159
5160 nodist_pkgsysconf_DATA += \
5161 src/timesync/timesyncd.conf
5162
5163 endif
5164
5165 gperf_gperf_sources += \
5166 src/timesync/timesyncd-gperf.gperf
5167
5168 EXTRA_DIST += \
5169 units/systemd-timesyncd.service.in \
5170 src/timesync/timesyncd.conf.in
5171
5172 # ------------------------------------------------------------------------------
5173 test_nss_SOURCES = \
5174 src/test/test-nss.c
5175
5176 test_nss_LDADD = \
5177 libsystemd-internal.la \
5178 libbasic.la \
5179 -ldl
5180
5181 manual_tests += \
5182 test-nss
5183
5184 # ------------------------------------------------------------------------------
5185 libnss_systemd_la_SOURCES = \
5186 src/nss-systemd/nss-systemd.sym \
5187 src/nss-systemd/nss-systemd.c
5188
5189 libnss_systemd_la_LDFLAGS = \
5190 $(AM_LDFLAGS) \
5191 -module \
5192 -export-dynamic \
5193 -avoid-version \
5194 -shared \
5195 -shrext .so.2 \
5196 -Wl,--version-script=$(top_srcdir)/src/nss-systemd/nss-systemd.sym
5197
5198 libnss_systemd_la_LIBADD = \
5199 libsystemd-internal.la \
5200 libbasic.la
5201
5202 rootlib_LTLIBRARIES += \
5203 libnss_systemd.la
5204
5205 # ------------------------------------------------------------------------------
5206 if HAVE_MYHOSTNAME
5207 libnss_myhostname_la_SOURCES = \
5208 src/nss-myhostname/nss-myhostname.sym \
5209 src/nss-myhostname/nss-myhostname.c
5210
5211 libnss_myhostname_la_LDFLAGS = \
5212 $(AM_LDFLAGS) \
5213 -module \
5214 -export-dynamic \
5215 -avoid-version \
5216 -shared \
5217 -shrext .so.2 \
5218 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5219
5220 libnss_myhostname_la_LIBADD = \
5221 libsystemd-internal.la \
5222 libbasic.la
5223
5224 rootlib_LTLIBRARIES += \
5225 libnss_myhostname.la
5226 endif
5227
5228 # ------------------------------------------------------------------------------
5229 if ENABLE_MACHINED
5230 systemd_machined_SOURCES = \
5231 src/machine/machined.c \
5232 src/machine/machined.h
5233
5234 systemd_machined_LDADD = \
5235 libmachine-core.la
5236
5237 rootlibexec_PROGRAMS += \
5238 systemd-machined
5239
5240 libmachine_core_la_SOURCES = \
5241 src/machine/machine.c \
5242 src/machine/machine.h \
5243 src/machine/machined-dbus.c \
5244 src/machine/machine-dbus.c \
5245 src/machine/machine-dbus.h \
5246 src/machine/image-dbus.c \
5247 src/machine/image-dbus.h \
5248 src/machine/operation.c \
5249 src/machine/operation.h
5250
5251 libmachine_core_la_LIBADD = \
5252 libsystemd-shared.la
5253
5254 noinst_LTLIBRARIES += \
5255 libmachine-core.la
5256
5257 machinectl_SOURCES = \
5258 src/machine/machinectl.c
5259
5260 machinectl_LDADD = \
5261 libsystemd-shared.la
5262
5263 rootbin_PROGRAMS += \
5264 machinectl
5265
5266 test_machine_tables_SOURCES = \
5267 src/machine/test-machine-tables.c
5268
5269 test_machine_tables_LDADD = \
5270 libmachine-core.la
5271
5272 tests += \
5273 test-machine-tables
5274
5275 nodist_systemunit_DATA += \
5276 units/systemd-machined.service
5277
5278 dist_systemunit_DATA += \
5279 units/machine.slice
5280
5281 dist_systemunit_DATA_busnames += \
5282 units/org.freedesktop.machine1.busname
5283
5284 dist_dbussystemservice_DATA += \
5285 src/machine/org.freedesktop.machine1.service
5286
5287 dist_dbuspolicy_DATA += \
5288 src/machine/org.freedesktop.machine1.conf
5289
5290 polkitpolicy_files += \
5291 src/machine/org.freedesktop.machine1.policy
5292
5293 dist_bashcompletion_data += \
5294 shell-completion/bash/machinectl
5295
5296 dist_zshcompletion_data += \
5297 shell-completion/zsh/_machinectl \
5298 shell-completion/zsh/_sd_machines
5299
5300 SYSTEM_UNIT_ALIASES += \
5301 systemd-machined.service dbus-org.freedesktop.machine1.service
5302
5303 BUSNAMES_TARGET_WANTS += \
5304 org.freedesktop.machine1.busname
5305
5306 libnss_mymachines_la_SOURCES = \
5307 src/nss-mymachines/nss-mymachines.sym \
5308 src/nss-mymachines/nss-mymachines.c
5309
5310 libnss_mymachines_la_LDFLAGS = \
5311 $(AM_LDFLAGS) \
5312 -module \
5313 -export-dynamic \
5314 -avoid-version \
5315 -shared \
5316 -shrext .so.2 \
5317 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5318
5319 libnss_mymachines_la_LIBADD = \
5320 libsystemd-internal.la \
5321 libbasic.la
5322
5323 rootlib_LTLIBRARIES += \
5324 libnss_mymachines.la
5325
5326 endif
5327
5328 polkitpolicy_in_files += \
5329 src/machine/org.freedesktop.machine1.policy.in
5330
5331 EXTRA_DIST += \
5332 units/systemd-machined.service.in
5333
5334 # ------------------------------------------------------------------------------
5335 if ENABLE_IMPORTD
5336
5337 if HAVE_LIBCURL
5338 if HAVE_XZ
5339 if HAVE_ZLIB
5340 if HAVE_BZIP2
5341 if HAVE_GCRYPT
5342
5343 rootlibexec_PROGRAMS += \
5344 systemd-importd \
5345 systemd-pull \
5346 systemd-import \
5347 systemd-export
5348
5349 systemd_importd_SOURCES = \
5350 src/import/importd.c
5351
5352 systemd_importd_CFLAGS = \
5353 $(AM_CFLAGS) \
5354 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5355 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5356 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5357
5358 systemd_importd_LDADD = \
5359 libsystemd-shared.la
5360
5361 systemd_pull_SOURCES = \
5362 src/import/pull.c \
5363 src/import/pull-raw.c \
5364 src/import/pull-raw.h \
5365 src/import/pull-tar.c \
5366 src/import/pull-tar.h \
5367 src/import/pull-job.c \
5368 src/import/pull-job.h \
5369 src/import/pull-common.c \
5370 src/import/pull-common.h \
5371 src/import/import-common.c \
5372 src/import/import-common.h \
5373 src/import/import-compress.c \
5374 src/import/import-compress.h \
5375 src/import/curl-util.c \
5376 src/import/curl-util.h \
5377 src/import/qcow2-util.c \
5378 src/import/qcow2-util.h
5379
5380 systemd_pull_CFLAGS = \
5381 $(AM_CFLAGS) \
5382 $(LIBCURL_CFLAGS) \
5383 $(XZ_CFLAGS) \
5384 $(ZLIB_CFLAGS) \
5385 $(GCRYPT_CFLAGS) \
5386 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5387 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5388
5389 systemd_pull_LDADD = \
5390 libsystemd-shared.la \
5391 $(LIBCURL_LIBS) \
5392 $(XZ_LIBS) \
5393 $(ZLIB_LIBS) \
5394 -lbz2 \
5395 $(GCRYPT_LIBS)
5396
5397 systemd_import_SOURCES = \
5398 src/import/import.c \
5399 src/import/import-raw.c \
5400 src/import/import-raw.h \
5401 src/import/import-tar.c \
5402 src/import/import-tar.h \
5403 src/import/import-common.c \
5404 src/import/import-common.h \
5405 src/import/import-compress.c \
5406 src/import/import-compress.h \
5407 src/import/qcow2-util.c \
5408 src/import/qcow2-util.h
5409
5410 systemd_import_CFLAGS = \
5411 $(AM_CFLAGS) \
5412 $(XZ_CFLAGS) \
5413 $(ZLIB_CFLAGS)
5414
5415 systemd_import_LDADD = \
5416 libsystemd-shared.la \
5417 $(XZ_LIBS) \
5418 $(ZLIB_LIBS) \
5419 -lbz2
5420
5421 systemd_export_SOURCES = \
5422 src/import/export.c \
5423 src/import/export-tar.c \
5424 src/import/export-tar.h \
5425 src/import/export-raw.c \
5426 src/import/export-raw.h \
5427 src/import/import-common.c \
5428 src/import/import-common.h \
5429 src/import/import-compress.c \
5430 src/import/import-compress.h
5431
5432 systemd_export_CFLAGS = \
5433 $(AM_CFLAGS) \
5434 $(XZ_CFLAGS) \
5435 $(ZLIB_CFLAGS)
5436
5437 systemd_export_LDADD = \
5438 libsystemd-shared.la \
5439 $(XZ_LIBS) \
5440 $(ZLIB_LIBS) \
5441 -lbz2
5442
5443 dist_rootlibexec_DATA += \
5444 src/import/import-pubring.gpg
5445
5446 nodist_systemunit_DATA += \
5447 units/systemd-importd.service
5448
5449 dist_systemunit_DATA_busnames += \
5450 units/org.freedesktop.import1.busname
5451
5452 BUSNAMES_TARGET_WANTS += \
5453 org.freedesktop.import1.busname
5454
5455 SYSTEM_UNIT_ALIASES += \
5456 systemd-importd.service dbus-org.freedesktop.import1.service
5457
5458 dist_dbussystemservice_DATA += \
5459 src/import/org.freedesktop.import1.service
5460
5461 dist_dbuspolicy_DATA += \
5462 src/import/org.freedesktop.import1.conf
5463
5464 polkitpolicy_files += \
5465 src/import/org.freedesktop.import1.policy
5466
5467 manual_tests += \
5468 test-qcow2
5469
5470 test_qcow2_SOURCES = \
5471 src/import/test-qcow2.c \
5472 src/import/qcow2-util.c \
5473 src/import/qcow2-util.h
5474
5475 test_qcow2_CFLAGS = \
5476 $(AM_CFLAGS) \
5477 $(ZLIB_CFLAGS)
5478
5479 test_qcow2_LDADD = \
5480 libsystemd-shared.la \
5481 $(ZLIB_LIBS)
5482
5483 endif
5484 endif
5485 endif
5486 endif
5487 endif
5488
5489 endif
5490
5491 polkitpolicy_in_files += \
5492 src/import/org.freedesktop.import1.policy.in
5493
5494 EXTRA_DIST += \
5495 units/systemd-importd.service.in
5496
5497
5498 # ------------------------------------------------------------------------------
5499 if ENABLE_RESOLVED
5500
5501 basic_dns_sources = \
5502 src/resolve/resolved-dns-dnssec.c \
5503 src/resolve/resolved-dns-dnssec.h \
5504 src/resolve/resolved-dns-packet.c \
5505 src/resolve/resolved-dns-packet.h \
5506 src/resolve/resolved-dns-rr.c \
5507 src/resolve/resolved-dns-rr.h \
5508 src/resolve/resolved-dns-answer.c \
5509 src/resolve/resolved-dns-answer.h \
5510 src/resolve/resolved-dns-question.c \
5511 src/resolve/resolved-dns-question.h \
5512 src/resolve/dns-type.c \
5513 src/resolve/dns-type.h
5514
5515 systemd_resolved_SOURCES = \
5516 src/resolve/resolved.c \
5517 src/resolve/resolved-manager.c \
5518 src/resolve/resolved-manager.h \
5519 src/resolve/resolved-conf.c \
5520 src/resolve/resolved-conf.h \
5521 src/resolve/resolved-resolv-conf.c \
5522 src/resolve/resolved-resolv-conf.h \
5523 src/resolve/resolved-bus.c \
5524 src/resolve/resolved-bus.h \
5525 src/resolve/resolved-link.h \
5526 src/resolve/resolved-link.c \
5527 src/resolve/resolved-link-bus.c \
5528 src/resolve/resolved-link-bus.h \
5529 src/resolve/resolved-llmnr.h \
5530 src/resolve/resolved-llmnr.c \
5531 src/resolve/resolved-mdns.h \
5532 src/resolve/resolved-mdns.c \
5533 src/resolve/resolved-def.h \
5534 $(basic_dns_sources) \
5535 src/resolve/resolved-dns-query.h \
5536 src/resolve/resolved-dns-query.c \
5537 src/resolve/resolved-dns-synthesize.h \
5538 src/resolve/resolved-dns-synthesize.c \
5539 src/resolve/resolved-dns-transaction.h \
5540 src/resolve/resolved-dns-transaction.c \
5541 src/resolve/resolved-dns-scope.h \
5542 src/resolve/resolved-dns-scope.c \
5543 src/resolve/resolved-dns-server.h \
5544 src/resolve/resolved-dns-server.c \
5545 src/resolve/resolved-dns-search-domain.h \
5546 src/resolve/resolved-dns-search-domain.c \
5547 src/resolve/resolved-dns-cache.h \
5548 src/resolve/resolved-dns-cache.c \
5549 src/resolve/resolved-dns-zone.h \
5550 src/resolve/resolved-dns-zone.c \
5551 src/resolve/resolved-dns-stream.h \
5552 src/resolve/resolved-dns-stream.c \
5553 src/resolve/resolved-dns-trust-anchor.h \
5554 src/resolve/resolved-dns-trust-anchor.c \
5555 src/resolve/resolved-dns-stub.h \
5556 src/resolve/resolved-dns-stub.c \
5557 src/resolve/resolved-etc-hosts.h \
5558 src/resolve/resolved-etc-hosts.c \
5559 src/shared/gcrypt-util.c \
5560 src/shared/gcrypt-util.h
5561
5562 nodist_systemd_resolved_SOURCES = \
5563 src/resolve/dns_type-from-name.h \
5564 src/resolve/dns_type-to-name.h \
5565 src/resolve/resolved-gperf.c
5566
5567 systemd_resolved_CFLAGS = \
5568 $(AM_CFLAGS) \
5569 $(GCRYPT_CFLAGS)
5570
5571 systemd_resolved_LDADD = \
5572 libsystemd-network.la \
5573 libsystemd-shared.la \
5574 $(GCRYPT_LIBS) \
5575 -lm
5576
5577 rootlibexec_PROGRAMS += \
5578 systemd-resolved
5579
5580 nodist_systemunit_DATA += \
5581 units/systemd-resolved.service
5582
5583 dist_systemunit_DATA_busnames += \
5584 units/org.freedesktop.resolve1.busname
5585
5586 dist_dbuspolicy_DATA += \
5587 src/resolve/org.freedesktop.resolve1.conf
5588
5589 dist_dbussystemservice_DATA += \
5590 src/resolve/org.freedesktop.resolve1.service
5591
5592 BUSNAMES_TARGET_WANTS += \
5593 org.freedesktop.resolve1.busname
5594
5595 GENERAL_ALIASES += \
5596 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service \
5597 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/dbus-org.freedesktop.resolve1.service
5598
5599 nodist_pkgsysconf_DATA += \
5600 src/resolve/resolved.conf
5601
5602 libnss_resolve_la_SOURCES = \
5603 src/nss-resolve/nss-resolve.sym \
5604 src/nss-resolve/nss-resolve.c
5605
5606 libnss_resolve_la_LDFLAGS = \
5607 $(AM_LDFLAGS) \
5608 -module \
5609 -export-dynamic \
5610 -avoid-version \
5611 -shared \
5612 -shrext .so.2 \
5613 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5614
5615 libnss_resolve_la_LIBADD = \
5616 libsystemd-internal.la \
5617 libbasic.la \
5618 -ldl
5619
5620 rootlib_LTLIBRARIES += \
5621 libnss_resolve.la
5622
5623 systemd_resolve_SOURCES = \
5624 src/resolve/resolve-tool.c \
5625 $(basic_dns_sources) \
5626 src/shared/gcrypt-util.c \
5627 src/shared/gcrypt-util.h
5628
5629 nodist_systemd_resolve_SOURCES = \
5630 src/resolve/dns_type-from-name.h \
5631 src/resolve/dns_type-to-name.h
5632
5633 systemd_resolve_CFLAGS = \
5634 $(AM_CFLAGS) \
5635 $(GCRYPT_CFLAGS)
5636
5637 systemd_resolve_LDADD = \
5638 libsystemd-shared.la \
5639 $(GCRYPT_LIBS) \
5640 -lm
5641
5642 bin_PROGRAMS += \
5643 systemd-resolve
5644
5645 dist_bashcompletion_data += \
5646 shell-completion/bash/systemd-resolve
5647
5648 dist_zshcompletion_data += \
5649 shell-completion/zsh/_systemd-resolve
5650
5651 tests += \
5652 test-dns-packet \
5653 test-resolve-tables \
5654 test-dnssec
5655
5656 manual_tests += \
5657 test-dnssec-complex
5658
5659 test_resolve_tables_SOURCES = \
5660 src/resolve/test-resolve-tables.c \
5661 src/resolve/dns_type-from-name.h \
5662 src/resolve/dns_type-to-name.h \
5663 $(basic_dns_sources) \
5664 src/shared/test-tables.h
5665
5666 test_resolve_tables_CFLAGS = \
5667 $(AM_CFLAGS) \
5668 $(GCRYPT_CFLAGS)
5669
5670 test_resolve_tables_LDADD = \
5671 libsystemd-shared.la \
5672 $(GCRYPT_LIBS) \
5673 -lm
5674
5675 test_dns_packet_SOURCES = \
5676 src/resolve/test-dns-packet.c \
5677 $(basic_dns_sources)
5678
5679 test_dns_packet_CPPFLAGS = \
5680 $(AM_CPPFLAGS) \
5681 -I $(top_srcdir)/src/test
5682
5683 test_dns_packet_CFLAGS = \
5684 $(AM_CFLAGS) \
5685 $(GCRYPT_CFLAGS)
5686
5687 test_dns_packet_LDADD = \
5688 libsystemd-shared.la \
5689 $(GCRYPT_LIBS) \
5690 -lm
5691
5692 TEST_DATA_FILES += \
5693 test/test-resolve/_openpgpkey.fedoraproject.org.pkts \
5694 test/test-resolve/fedoraproject.org.pkts \
5695 test/test-resolve/gandi.net.pkts \
5696 test/test-resolve/google.com.pkts \
5697 test/test-resolve/root.pkts \
5698 test/test-resolve/sw1a1aa-sw1a2aa-sw1a2ab-sw1a2ac.find.me.uk.pkts \
5699 test/test-resolve/teamits.com.pkts \
5700 test/test-resolve/zbyszek@fedoraproject.org.pkts \
5701 test/test-resolve/_443._tcp.fedoraproject.org.pkts \
5702 test/test-resolve/kyhwana.org.pkts \
5703 test/test-resolve/fake-caa.pkts
5704
5705 EXTRA_DIST += $(TEST_DATA_FILES)
5706
5707 test_dnssec_SOURCES = \
5708 src/resolve/test-dnssec.c \
5709 $(basic_dns_sources)
5710
5711 test_dnssec_CFLAGS = \
5712 $(AM_CFLAGS) \
5713 $(GCRYPT_CFLAGS)
5714
5715 test_dnssec_LDADD = \
5716 libsystemd-shared.la \
5717 $(GCRYPT_LIBS) \
5718 -lm
5719
5720 test_dnssec_complex_SOURCES = \
5721 src/resolve/test-dnssec-complex.c \
5722 src/resolve/dns-type.c \
5723 src/resolve/dns-type.h
5724
5725 test_dnssec_complex_LDADD = \
5726 libsystemd-shared.la
5727
5728 endif
5729
5730 gperf_txt_sources += \
5731 src/resolve/dns_type-list.txt
5732
5733 gperf_gperf_sources += \
5734 src/resolve/resolved-gperf.gperf
5735
5736 EXTRA_DIST += \
5737 units/systemd-resolved.service.m4.in \
5738 src/resolve/resolved.conf.in
5739
5740 dist_rootlibexec_DATA += \
5741 src/resolve/resolv.conf
5742
5743 # ------------------------------------------------------------------------------
5744 if ENABLE_NETWORKD
5745 rootlibexec_PROGRAMS += \
5746 systemd-networkd
5747
5748 systemd_networkd_SOURCES = \
5749 src/network/networkd.c
5750
5751 systemd_networkd_LDADD = \
5752 libnetworkd-core.la
5753
5754 if HAVE_LIBIPTC
5755 systemd_networkd_LDADD += \
5756 libfirewall.la
5757 endif
5758
5759 noinst_LTLIBRARIES += \
5760 libnetworkd-core.la
5761
5762 libnetworkd_core_la_CFLAGS = \
5763 $(AM_CFLAGS)
5764
5765 libnetworkd_core_la_SOURCES = \
5766 src/libsystemd-network/network-internal.h \
5767 src/network/netdev/netdev.h \
5768 src/network/netdev/netdev.c \
5769 src/network/netdev/vrf.h \
5770 src/network/netdev/vrf.c \
5771 src/network/netdev/tunnel.h \
5772 src/network/netdev/tunnel.c \
5773 src/network/netdev/veth.h \
5774 src/network/netdev/veth.c \
5775 src/network/netdev/vxlan.h \
5776 src/network/netdev/vxlan.c \
5777 src/network/netdev/geneve.h \
5778 src/network/netdev/geneve.c \
5779 src/network/netdev/vlan.h \
5780 src/network/netdev/vlan.c \
5781 src/network/netdev/macvlan.h \
5782 src/network/netdev/macvlan.c \
5783 src/network/netdev/ipvlan.h \
5784 src/network/netdev/ipvlan.c \
5785 src/network/netdev/dummy.h \
5786 src/network/netdev/dummy.c \
5787 src/network/netdev/tuntap.h \
5788 src/network/netdev/tuntap.c \
5789 src/network/netdev/bond.h \
5790 src/network/netdev/bond.c \
5791 src/network/netdev/bridge.h \
5792 src/network/netdev/bridge.c \
5793 src/network/netdev/vcan.h \
5794 src/network/netdev/vcan.c \
5795 src/network/networkd-manager.h \
5796 src/network/networkd-manager.c \
5797 src/network/networkd-manager-bus.c \
5798 src/network/networkd-conf.h \
5799 src/network/networkd-conf.c \
5800 src/network/networkd-link.h \
5801 src/network/networkd-link.c \
5802 src/network/networkd-link-bus.c \
5803 src/network/networkd-ipv4ll.c \
5804 src/network/networkd-ipv6-proxy-ndp.h \
5805 src/network/networkd-ipv6-proxy-ndp.c \
5806 src/network/networkd-dhcp4.c \
5807 src/network/networkd-dhcp6.c \
5808 src/network/networkd-ndisc.h \
5809 src/network/networkd-ndisc.c \
5810 src/network/networkd-network.h \
5811 src/network/networkd-network.c \
5812 src/network/networkd-network-bus.c \
5813 src/network/networkd-address.h \
5814 src/network/networkd-address.c \
5815 src/network/networkd-address-label.h \
5816 src/network/networkd-address-label.c \
5817 src/network/networkd-route.h \
5818 src/network/networkd-route.c \
5819 src/network/networkd-fdb.h \
5820 src/network/networkd-fdb.c \
5821 src/network/networkd-brvlan.h \
5822 src/network/networkd-brvlan.c \
5823 src/network/networkd-address-pool.h \
5824 src/network/networkd-address-pool.c \
5825 src/network/networkd-util.h \
5826 src/network/networkd-util.c \
5827 src/network/networkd-lldp-tx.h \
5828 src/network/networkd-lldp-tx.c
5829
5830 nodist_libnetworkd_core_la_SOURCES = \
5831 src/network/networkd-gperf.c \
5832 src/network/networkd-network-gperf.c \
5833 src/network/netdev/netdev-gperf.c
5834
5835 libnetworkd_core_la_LIBADD = \
5836 libsystemd-network.la \
5837 libsystemd-shared.la
5838
5839 rootlibexec_PROGRAMS += \
5840 systemd-networkd-wait-online
5841
5842 systemd_networkd_wait_online_CFLAGS = \
5843 $(AM_CFLAGS)
5844
5845 systemd_networkd_wait_online_SOURCES = \
5846 src/libsystemd-network/network-internal.h \
5847 src/network/wait-online/link.h \
5848 src/network/wait-online/link.c \
5849 src/network/wait-online/manager.h \
5850 src/network/wait-online/manager.c \
5851 src/network/wait-online/wait-online.c
5852
5853 systemd_networkd_wait_online_LDADD = \
5854 libsystemd-network.la \
5855 libsystemd-shared.la
5856
5857 rootbin_PROGRAMS += \
5858 networkctl
5859
5860 networkctl_SOURCES = \
5861 src/network/networkctl.c
5862
5863 networkctl_LDADD = \
5864 libsystemd-shared.la \
5865 libsystemd-network.la
5866
5867 dist_bashcompletion_data += \
5868 shell-completion/bash/networkctl
5869
5870 dist_zshcompletion_data += \
5871 shell-completion/zsh/_networkctl
5872
5873 test_networkd_conf_SOURCES = \
5874 src/network/test-networkd-conf.c
5875
5876 test_networkd_conf_LDADD = \
5877 libnetworkd-core.la
5878
5879 test_network_SOURCES = \
5880 src/network/test-network.c
5881
5882 test_network_LDADD = \
5883 libnetworkd-core.la
5884
5885 if HAVE_LIBIPTC
5886 test_network_LDADD += \
5887 libfirewall.la
5888 endif
5889
5890 test_network_tables_SOURCES = \
5891 src/network/test-network-tables.c \
5892 src/shared/test-tables.h
5893
5894 test_network_tables_LDADD = \
5895 libnetworkd-core.la \
5896 libudev-core.la
5897
5898 if HAVE_LIBIPTC
5899 test_network_tables_LDADD += \
5900 libfirewall.la
5901 endif
5902
5903 tests += \
5904 test-networkd-conf \
5905 test-network \
5906 test-network-tables
5907
5908 dist_systemunit_DATA += \
5909 units/systemd-networkd.socket
5910
5911 nodist_systemunit_DATA += \
5912 units/systemd-networkd.service \
5913 units/systemd-networkd-wait-online.service
5914
5915 dist_systemunit_DATA_busnames += \
5916 units/org.freedesktop.network1.busname
5917
5918 dist_dbussystemservice_DATA += \
5919 src/network/org.freedesktop.network1.service
5920
5921 dist_dbuspolicy_DATA += \
5922 src/network/org.freedesktop.network1.conf
5923
5924 GENERAL_ALIASES += \
5925 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5926 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5927 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service \
5928 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/dbus-org.freedesktop.network1.service
5929
5930 BUSNAMES_TARGET_WANTS += \
5931 org.freedesktop.network1.busname
5932
5933 polkitrules_files += \
5934 src/network/systemd-networkd.rules
5935
5936 polkitpkla_files += \
5937 src/network/systemd-networkd.pkla
5938
5939 endif
5940
5941 gperf_gperf_sources += \
5942 src/network/networkd-gperf.gperf \
5943 src/network/networkd-network-gperf.gperf \
5944 src/network/netdev/netdev-gperf.gperf
5945
5946 EXTRA_DIST += \
5947 src/network/systemd-networkd.rules \
5948 src/network/systemd-networkd.pkla \
5949 units/systemd-networkd.service.m4.in \
5950 units/systemd-networkd-wait-online.service.in \
5951 test/networkd-test.py \
5952 test/test-exec-deserialization.py
5953
5954 # ------------------------------------------------------------------------------
5955 if ENABLE_LOGIND
5956 systemd_logind_SOURCES = \
5957 src/login/logind.c \
5958 src/login/logind.h
5959
5960 nodist_systemd_logind_SOURCES = \
5961 src/login/logind-gperf.c
5962
5963 systemd_logind_LDADD = \
5964 liblogind-core.la
5965
5966 liblogind_core_la_SOURCES = \
5967 src/login/logind-core.c \
5968 src/login/logind-device.c \
5969 src/login/logind-device.h \
5970 src/login/logind-button.c \
5971 src/login/logind-button.h \
5972 src/login/logind-action.c \
5973 src/login/logind-action.h \
5974 src/login/logind-seat.c \
5975 src/login/logind-seat.h \
5976 src/login/logind-session.c \
5977 src/login/logind-session.h \
5978 src/login/logind-session-device.c \
5979 src/login/logind-session-device.h \
5980 src/login/logind-user.c \
5981 src/login/logind-user.h \
5982 src/login/logind-inhibit.c \
5983 src/login/logind-inhibit.h \
5984 src/login/logind-dbus.c \
5985 src/login/logind-session-dbus.c \
5986 src/login/logind-seat-dbus.c \
5987 src/login/logind-user-dbus.c \
5988 src/login/logind-utmp.c \
5989 src/login/logind-acl.h
5990
5991 liblogind_core_la_LIBADD = \
5992 libsystemd-shared.la
5993
5994 if HAVE_ACL
5995 liblogind_core_la_SOURCES += \
5996 src/login/logind-acl.c
5997 endif
5998
5999 noinst_LTLIBRARIES += \
6000 liblogind-core.la
6001
6002 rootlibexec_PROGRAMS += \
6003 systemd-logind
6004
6005 loginctl_SOURCES = \
6006 src/login/loginctl.c \
6007 src/login/sysfs-show.h \
6008 src/login/sysfs-show.c
6009
6010 loginctl_LDADD = \
6011 libsystemd-shared.la
6012
6013 rootbin_PROGRAMS += \
6014 loginctl
6015
6016 dist_bashcompletion_data += \
6017 shell-completion/bash/loginctl
6018
6019 dist_zshcompletion_data += \
6020 shell-completion/zsh/_loginctl \
6021 shell-completion/zsh/_systemd-inhibit
6022
6023 systemd_inhibit_SOURCES = \
6024 src/login/inhibit.c
6025
6026 systemd_inhibit_LDADD = \
6027 libsystemd-shared.la
6028
6029 rootbin_PROGRAMS += \
6030 systemd-inhibit
6031
6032 test_login_SOURCES = \
6033 src/libsystemd/sd-login/test-login.c
6034
6035 test_login_LDADD = \
6036 libsystemd-shared.la
6037
6038 test_login_shared_SOURCES = \
6039 src/login/test-login-shared.c
6040
6041 test_login_shared_LDADD = \
6042 libsystemd-shared.la
6043
6044 test_inhibit_SOURCES = \
6045 src/login/test-inhibit.c
6046
6047 test_inhibit_LDADD = \
6048 libsystemd-shared.la
6049
6050 test_login_tables_SOURCES = \
6051 src/login/test-login-tables.c
6052
6053 test_login_tables_LDADD = \
6054 liblogind-core.la
6055
6056 manual_tests += \
6057 test-login \
6058 test-inhibit
6059
6060 tests += \
6061 test-login-tables \
6062 test-login-shared
6063
6064 if HAVE_PAM
6065 pam_systemd_la_SOURCES = \
6066 src/login/pam_systemd.sym \
6067 src/login/pam_systemd.c
6068
6069 pam_systemd_la_CFLAGS = \
6070 $(AM_CFLAGS) \
6071 $(PAM_CFLAGS)
6072
6073 pam_systemd_la_LDFLAGS = \
6074 $(AM_LDFLAGS) \
6075 -module \
6076 -export-dynamic \
6077 -avoid-version \
6078 -shared \
6079 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
6080
6081 pam_systemd_la_LIBADD = \
6082 libshared.la \
6083 $(PAM_LIBS)
6084
6085 pamlib_LTLIBRARIES = \
6086 pam_systemd.la
6087
6088 if ENABLE_PAM_CONFIG
6089 dist_pamconf_DATA = \
6090 src/login/systemd-user
6091 endif
6092
6093 EXTRA_DIST += \
6094 src/login/systemd-user.m4
6095 endif
6096
6097 nodist_systemunit_DATA += \
6098 units/systemd-logind.service
6099
6100 dist_systemunit_DATA += \
6101 units/user.slice
6102
6103 dist_systemunit_DATA_busnames += \
6104 units/org.freedesktop.login1.busname
6105
6106 dist_dbussystemservice_DATA += \
6107 src/login/org.freedesktop.login1.service
6108
6109 dist_dbuspolicy_DATA += \
6110 src/login/org.freedesktop.login1.conf
6111
6112 nodist_pkgsysconf_DATA += \
6113 src/login/logind.conf
6114
6115 polkitpolicy_files += \
6116 src/login/org.freedesktop.login1.policy
6117
6118 INSTALL_DIRS += \
6119 $(systemdstatedir)
6120
6121 MULTI_USER_TARGET_WANTS += \
6122 systemd-logind.service
6123
6124 SYSTEM_UNIT_ALIASES += \
6125 systemd-logind.service dbus-org.freedesktop.login1.service
6126
6127 BUSNAMES_TARGET_WANTS += \
6128 org.freedesktop.login1.busname
6129
6130 dist_udevrules_DATA += \
6131 src/login/70-uaccess.rules \
6132 src/login/70-power-switch.rules
6133
6134 nodist_udevrules_DATA += \
6135 src/login/71-seat.rules \
6136 src/login/73-seat-late.rules
6137
6138 endif
6139
6140 polkitpolicy_in_files += \
6141 src/login/org.freedesktop.login1.policy.in
6142
6143 gperf_gperf_sources += \
6144 src/login/logind-gperf.gperf
6145
6146 EXTRA_DIST += \
6147 src/login/71-seat.rules.in \
6148 src/login/73-seat-late.rules.in \
6149 units/systemd-logind.service.in \
6150 src/login/logind.conf.in
6151
6152 # ------------------------------------------------------------------------------
6153 if HAVE_PAM
6154
6155 systemd_user_sessions_SOURCES = \
6156 src/user-sessions/user-sessions.c
6157
6158 systemd_user_sessions_LDADD = \
6159 libsystemd-shared.la
6160
6161 rootlibexec_PROGRAMS += \
6162 systemd-user-sessions
6163
6164 nodist_systemunit_DATA += \
6165 units/systemd-user-sessions.service
6166
6167 MULTI_USER_TARGET_WANTS += \
6168 systemd-user-sessions.service
6169
6170 endif
6171
6172 EXTRA_DIST += \
6173 units/systemd-user-sessions.service.in
6174
6175 # ------------------------------------------------------------------------------
6176 EXTRA_DIST += \
6177 test/Makefile \
6178 test/README.testsuite \
6179 test/TEST-01-BASIC \
6180 test/TEST-01-BASIC/Makefile \
6181 test/TEST-01-BASIC/test.sh \
6182 test/TEST-02-CRYPTSETUP \
6183 test/TEST-02-CRYPTSETUP/Makefile \
6184 test/TEST-02-CRYPTSETUP/test.sh \
6185 test/TEST-03-JOBS \
6186 test/TEST-03-JOBS/Makefile \
6187 test/TEST-03-JOBS/test-jobs.sh \
6188 test/TEST-03-JOBS/test.sh \
6189 test/TEST-04-JOURNAL/Makefile \
6190 test/TEST-04-JOURNAL/test-journal.sh \
6191 test/TEST-04-JOURNAL/test.sh \
6192 test/TEST-05-RLIMITS/Makefile \
6193 test/TEST-05-RLIMITS/test-rlimits.sh \
6194 test/TEST-05-RLIMITS/test.sh \
6195 test/TEST-06-SELINUX/Makefile \
6196 test/TEST-06-SELINUX/test-selinux-checks.sh \
6197 test/TEST-06-SELINUX/test.sh \
6198 test/TEST-06-SELINUX/systemd_test.te \
6199 test/TEST-06-SELINUX/systemd_test.if \
6200 test/TEST-07-ISSUE-1981/Makefile \
6201 test/TEST-07-ISSUE-1981/test-segfault.sh \
6202 test/TEST-07-ISSUE-1981/test.sh \
6203 test/TEST-08-ISSUE-2730/Makefile \
6204 test/TEST-08-ISSUE-2730/test.sh \
6205 test/TEST-09-ISSUE-2691/Makefile \
6206 test/TEST-09-ISSUE-2691/test.sh \
6207 test/TEST-10-ISSUE-2467/Makefile \
6208 test/TEST-10-ISSUE-2467/test.sh \
6209 test/TEST-11-ISSUE-3166/Makefile \
6210 test/TEST-11-ISSUE-3166/test.sh \
6211 test/TEST-12-ISSUE-3171/Makefile \
6212 test/TEST-12-ISSUE-3171/test.sh \
6213 test/TEST-13-NSPAWN-SMOKE/Makefile \
6214 test/TEST-13-NSPAWN-SMOKE/create-busybox-container \
6215 test/TEST-13-NSPAWN-SMOKE/test.sh \
6216 test/TEST-14-MACHINE-ID/Makefile \
6217 test/TEST-14-MACHINE-ID/test.sh \
6218 test/test-functions
6219
6220 EXTRA_DIST += \
6221 test/loopy2.service \
6222 test/loopy3.service \
6223 test/loopy4.service \
6224 test/loopy.service \
6225 test/loopy.service.d \
6226 test/loopy.service.d/compat.conf
6227
6228 # ------------------------------------------------------------------------------
6229 substitutions = \
6230 '|rootlibdir=$(rootlibdir)|' \
6231 '|rootlibexecdir=$(rootlibexecdir)|' \
6232 '|rootbindir=$(rootbindir)|' \
6233 '|bindir=$(bindir)|' \
6234 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6235 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6236 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6237 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6238 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6239 '|pkgdatadir=$(pkgdatadir)|' \
6240 '|systemunitdir=$(systemunitdir)|' \
6241 '|userunitdir=$(userunitdir)|' \
6242 '|systempresetdir=$(systempresetdir)|' \
6243 '|userpresetdir=$(userpresetdir)|' \
6244 '|udevhwdbdir=$(udevhwdbdir)|' \
6245 '|udevrulesdir=$(udevrulesdir)|' \
6246 '|catalogdir=$(catalogdir)|' \
6247 '|tmpfilesdir=$(tmpfilesdir)|' \
6248 '|sysusersdir=$(sysusersdir)|' \
6249 '|sysctldir=$(sysctldir)|' \
6250 '|systemgeneratordir=$(systemgeneratordir)|' \
6251 '|usergeneratordir=$(usergeneratordir)|' \
6252 '|systemenvgeneratordir=$(systemenvgeneratordir)|' \
6253 '|userenvgeneratordir=$(userenvgeneratordir)|' \
6254 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6255 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6256 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6257 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6258 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6259 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6260 '|prefix=$(prefix)|' \
6261 '|exec_prefix=$(exec_prefix)|' \
6262 '|libdir=$(libdir)|' \
6263 '|includedir=$(includedir)|' \
6264 '|rootprefix=$(rootprefix)|' \
6265 '|udevlibexecdir=$(udevlibexecdir)|' \
6266 '|SUSHELL=$(SUSHELL)|' \
6267 '|SULOGIN=$(SULOGIN)|' \
6268 '|DEBUGTTY=$(DEBUGTTY)|' \
6269 '|KILL=$(KILL)|' \
6270 '|KMOD=$(KMOD)|' \
6271 '|MOUNT_PATH=$(MOUNT_PATH)|' \
6272 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
6273 '|MKDIR_P=$(MKDIR_P)|' \
6274 '|QUOTAON=$(QUOTAON)|' \
6275 '|QUOTACHECK=$(QUOTACHECK)|' \
6276 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6277 '|VARLOGDIR=$(varlogdir)|' \
6278 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6279 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6280 '|PYTHON=$(PYTHON)|' \
6281 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6282 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6283 '|DEFAULT_DNSSEC_MODE=$(DEFAULT_DNSSEC_MODE)|' \
6284 '|KILL_USER_PROCESSES=$(KILL_USER_PROCESSES)|' \
6285 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6286 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6287 '|DEV_KVM_MODE=$(DEV_KVM_MODE)|' \
6288 '|TTY_GID=$(TTY_GID)|' \
6289 '|systemsleepdir=$(systemsleepdir)|' \
6290 '|systemshutdowndir=$(systemshutdowndir)|' \
6291 '|binfmtdir=$(binfmtdir)|' \
6292 '|modulesloaddir=$(modulesloaddir)|'
6293
6294 SED_PROCESS = \
6295 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6296 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6297 -e '/^\#\# /d' \
6298 < $< > $@
6299
6300 units/%: units/%.in
6301 $(SED_PROCESS)
6302
6303 man/%: man/%.in
6304 $(SED_PROCESS)
6305
6306 sysctl.d/%: sysctl.d/%.in
6307 $(SED_PROCESS)
6308
6309 %.pc: %.pc.in
6310 $(SED_PROCESS)
6311
6312 %.conf: %.conf.in
6313 $(SED_PROCESS)
6314
6315 src/core/%.systemd: src/core/%.systemd.in
6316 $(SED_PROCESS)
6317
6318 src/%.policy.in: src/%.policy.in.in
6319 $(SED_PROCESS)
6320
6321 src/sulogin-shell/%: src/sulogin-shell/%.in
6322 $(SED_PROCESS)
6323 $(AM_V_GEN)chmod +x $@
6324
6325 shell-completion/%: shell-completion/%.in
6326 $(SED_PROCESS)
6327
6328 %.rules: %.rules.in
6329 $(SED_PROCESS)
6330
6331 %.conf: %.conf.in
6332 $(SED_PROCESS)
6333
6334 %.sh: %.sh.in
6335 $(SED_PROCESS)
6336 $(AM_V_GEN)chmod +x $@
6337
6338 src/%.c: src/%.gperf
6339 $(AM_V_at)$(MKDIR_P) $(dir $@)
6340 $(AM_V_GPERF)$(GPERF) < $< > $@
6341
6342 src/%: src/%.m4 $(top_builddir)/config.status
6343 $(AM_V_at)$(MKDIR_P) $(dir $@)
6344 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6345
6346 sysusers.d/%: sysusers.d/%.m4 $(top_builddir)/config.status
6347 $(AM_V_at)$(MKDIR_P) $(dir $@)
6348 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6349
6350 tmpfiles.d/%: tmpfiles.d/%.m4 $(top_builddir)/config.status
6351 $(AM_V_at)$(MKDIR_P) $(dir $@)
6352 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6353
6354
6355 units/%: units/%.m4 $(top_builddir)/config.status
6356 $(AM_V_at)$(MKDIR_P) $(dir $@)
6357 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6358
6359 units/user/%: units/user/%.m4 $(top_builddir)/config.status
6360 $(AM_V_at)$(MKDIR_P) $(dir $@)
6361 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6362
6363 if ENABLE_POLKIT
6364 nodist_polkitpolicy_DATA = \
6365 $(polkitpolicy_files) \
6366 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6367 polkitrules_DATA = $(polkitrules_files)
6368 if ENABLE_POLKIT_PKLA
6369 polkitpkla_DATA = $(polkitpkla_files)
6370 endif
6371 endif
6372
6373 EXTRA_DIST += \
6374 $(polkitpolicy_in_files) \
6375 $(polkitpolicy_in_in_files)
6376
6377 # ------------------------------------------------------------------------------
6378 man/custom-entities.ent: configure.ac
6379 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6380 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6381 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6382 > $@ # '
6383
6384 CLEANFILES += \
6385 man/custom-entities.ent
6386
6387 XSLTPROC_FLAGS = \
6388 --nonet \
6389 --xinclude \
6390 --stringparam man.output.quietly 1 \
6391 --stringparam funcsynopsis.style ansi \
6392 --stringparam man.authors.section.enabled 0 \
6393 --stringparam man.copyright.section.enabled 0 \
6394 --stringparam systemd.version $(PACKAGE_VERSION) \
6395 --path '$(builddir)/man:$(srcdir)/man'
6396
6397 XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
6398 XSLTPROC_PROCESS_MAN = \
6399 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6400
6401 XSLTPROC_PROCESS_HTML = \
6402 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6403
6404 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6405 $(XSLTPROC_PROCESS_MAN)
6406
6407 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6408 $(XSLTPROC_PROCESS_MAN)
6409
6410 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6411 $(XSLTPROC_PROCESS_MAN)
6412
6413 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6414 $(XSLTPROC_PROCESS_MAN)
6415
6416 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6417 $(XSLTPROC_PROCESS_MAN)
6418
6419 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6420 $(XSLTPROC_PROCESS_HTML)
6421
6422 define html-alias
6423 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6424 endef
6425
6426 EXTRA_DIST += \
6427 man/custom-html.xsl \
6428 man/custom-man.xsl
6429
6430 # ------------------------------------------------------------------------------
6431 if HAVE_SYSV_COMPAT
6432 sysvinit_DATA = \
6433 docs/sysvinit/README
6434
6435 varlog_DATA = \
6436 docs/var-log/README
6437
6438 docs/sysvinit/README: docs/sysvinit/README.in
6439 $(SED_PROCESS)
6440
6441 docs/var-log/README: docs/var-log/README.in
6442 $(SED_PROCESS)
6443
6444 CLEANFILES += \
6445 docs/sysvinit/README \
6446 docs/var-log/README
6447 endif
6448
6449 EXTRA_DIST += \
6450 docs/sysvinit/README.in \
6451 docs/var-log/README.in
6452
6453 SOCKETS_TARGET_WANTS += \
6454 systemd-initctl.socket
6455
6456 if HAVE_UTMP
6457 if HAVE_SYSV_COMPAT
6458 MULTI_USER_TARGET_WANTS += \
6459 systemd-update-utmp-runlevel.service
6460 GRAPHICAL_TARGET_WANTS += \
6461 systemd-update-utmp-runlevel.service
6462 RESCUE_TARGET_WANTS += \
6463 systemd-update-utmp-runlevel.service
6464 endif
6465
6466 SYSINIT_TARGET_WANTS += \
6467 systemd-update-utmp.service
6468 endif
6469
6470 SYSINIT_TARGET_WANTS += \
6471 systemd-update-done.service
6472
6473 LOCAL_FS_TARGET_WANTS += \
6474 systemd-remount-fs.service \
6475 tmp.mount \
6476 var-lib-machines.mount
6477
6478 MULTI_USER_TARGET_WANTS += \
6479 getty.target \
6480 systemd-ask-password-wall.path
6481
6482 SYSINIT_TARGET_WANTS += \
6483 dev-hugepages.mount \
6484 dev-mqueue.mount \
6485 sys-kernel-config.mount \
6486 sys-kernel-debug.mount \
6487 sys-fs-fuse-connections.mount \
6488 systemd-sysctl.service \
6489 systemd-ask-password-console.path
6490
6491 if HAVE_SYSV_COMPAT
6492 SYSTEM_UNIT_ALIASES += \
6493 poweroff.target runlevel0.target \
6494 rescue.target runlevel1.target \
6495 multi-user.target runlevel2.target \
6496 multi-user.target runlevel3.target \
6497 multi-user.target runlevel4.target \
6498 graphical.target runlevel5.target \
6499 reboot.target runlevel6.target
6500 endif
6501
6502 SYSTEM_UNIT_ALIASES += \
6503 graphical.target default.target \
6504 reboot.target ctrl-alt-del.target \
6505 getty@.service autovt@.service
6506
6507 GENERAL_ALIASES += \
6508 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6509 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6510 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6511 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6512
6513 if HAVE_SYSV_COMPAT
6514 INSTALL_DIRS += \
6515 $(systemunitdir)/runlevel1.target.wants \
6516 $(systemunitdir)/runlevel2.target.wants \
6517 $(systemunitdir)/runlevel3.target.wants \
6518 $(systemunitdir)/runlevel4.target.wants \
6519 $(systemunitdir)/runlevel5.target.wants
6520 endif
6521
6522 INSTALL_DIRS += \
6523 $(environmentdir) \
6524 $(prefix)/lib/modules-load.d \
6525 $(sysconfdir)/modules-load.d \
6526 $(prefix)/lib/systemd/network \
6527 $(sysconfdir)/systemd/network \
6528 $(prefix)/lib/sysctl.d \
6529 $(sysconfdir)/sysctl.d \
6530 $(prefix)/lib/kernel/install.d \
6531 $(sysconfdir)/kernel/install.d \
6532 $(systemshutdowndir) \
6533 $(systemsleepdir) \
6534 $(systemgeneratordir) \
6535 $(usergeneratordir) \
6536 \
6537 $(userunitdir) \
6538 $(pkgsysconfdir)/system \
6539 $(pkgsysconfdir)/system/multi-user.target.wants \
6540 $(pkgsysconfdir)/system/getty.target.wants \
6541 $(pkgsysconfdir)/user \
6542 $(dbussessionservicedir) \
6543 $(sysconfdir)/xdg/systemd
6544
6545 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6546
6547 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6548
6549 install-data-hook: $(INSTALL_DATA_HOOKS)
6550
6551 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6552
6553 clean-local: $(CLEAN_LOCAL_HOOKS)
6554 rm -rf $(abs_srcdir)/install-tree
6555 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6556 $(abs_srcdir)/hwdb/iab.txt
6557
6558 DISTCHECK_CONFIGURE_FLAGS = \
6559 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6560 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6561 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6562 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6563 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6564 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6565 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6566 --with-rpmmacrosdir=$$dc_install_base/$(rpmmacrosdir) \
6567 --with-rootprefix=$$dc_install_base \
6568 --enable-compat-libs
6569
6570 if HAVE_SYSV_COMPAT
6571 DISTCHECK_CONFIGURE_FLAGS += \
6572 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6573 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6574 else
6575 DISTCHECK_CONFIGURE_FLAGS += \
6576 --with-sysvinit-path= \
6577 --with-sysvrcnd-path=
6578 endif
6579
6580 if ENABLE_SPLIT_USR
6581 DISTCHECK_CONFIGURE_FLAGS += \
6582 --enable-split-usr
6583 else
6584 DISTCHECK_CONFIGURE_FLAGS += \
6585 --disable-split-usr
6586 endif
6587
6588 .PHONY: dist-check-help
6589 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6590 for i in $(abspath $^); do \
6591 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6592 echo "$(basename $$i) --help output is too wide:"; \
6593 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6594 exit 1; \
6595 fi; done
6596
6597 include_compilers = "$(CC)" "$(CC) -ansi" "$(CC) -std=iso9899:1990"
6598 public_headers = $(filter-out src/systemd/_sd-common.h, $(pkginclude_HEADERS) $(include_HEADERS))
6599 .PHONY: dist-check-includes
6600 dist-check-includes: $(public_headers)
6601 @res=0; \
6602 for i in $(abspath $^); do \
6603 for cc in $(include_compilers); do \
6604 echo "$$cc -o/dev/null -c -x c -include "$$i" - </dev/null"; \
6605 $$cc -o/dev/null -c -x c -include "$$i" - </dev/null || res=1; \
6606 done; \
6607 done; exit $$res
6608
6609 .PHONY: hwdb-update
6610 hwdb-update: tools/meson-hwdb-update.sh
6611 $< $(top_srcdir)/hwdb
6612
6613 .PHONY: built-sources
6614 built-sources: $(BUILT_SOURCES)
6615
6616 .PHONY: git-tag
6617 git-tag:
6618 git tag -s "v$(PACKAGE_VERSION)" -m "systemd $(PACKAGE_VERSION)"
6619
6620 .PHONY: git-tar
6621 git-tar:
6622 git archive -o systemd-$(PACKAGE_VERSION).tar.gz --prefix=systemd-$(PACKAGE_VERSION)/ HEAD
6623
6624 %.asc: %
6625 gpg2 --detach-sign -a -o $@ $<
6626
6627 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6628
6629 .PHONY: doc-sync
6630 doc-sync: man
6631 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6632
6633 .PHONY: install-tree
6634 install-tree: all
6635 rm -rf $(abs_srcdir)/install-tree
6636 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6637 tree $(abs_srcdir)/install-tree
6638
6639 # Let's run all tests of the test suite, but under valgrind. Let's
6640 # exclude perl/python/shell scripts we have in there
6641 .PHONY: valgrind-tests
6642 valgrind-tests: $(TESTS)
6643 $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \
6644 if $(LIBTOOL) --mode=execute file $$f | grep -q shell; then \
6645 echo -e "$${x}Skipping non-binary $$f"; else \
6646 echo -e "$${x}Running $$f"; \
6647 $(AM_TESTS_ENVIRONMENT) $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6648 x="\n\n"; \
6649 done
6650
6651 exported-%: %
6652 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6653
6654 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6655 $(AM_V_GEN)sort -u $^ > $@
6656
6657 .PHONY: check-api-docs
6658 check-api-docs: exported man
6659 $(AM_V_GEN)for symbol in `cat exported` ; do \
6660 if test -f $(builddir)/man/$$symbol.html ; then \
6661 echo " Symbol $$symbol() is documented." ; \
6662 else \
6663 echo "‣ Symbol $$symbol() lacks documentation." ; \
6664 fi ; \
6665 done
6666
6667 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6668 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6669
6670 undefined defined: $(ALL_OBJECTS)
6671 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6672 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6673 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6674
6675 CLEANFILES += \
6676 defined \
6677 undefined
6678
6679 .PHONY: check-api-unused
6680 check-api-unused: defined undefined exported
6681 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6682
6683 .PHONY: check-includes
6684 check-includes: $(top_srcdir)/tools/check-includes.pl
6685 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6686 | xargs $(top_srcdir)/tools/check-includes.pl
6687
6688 EXTRA_DIST += \
6689 $(top_srcdir)/tools/check-includes.pl
6690
6691 # Stupid test that everything purported to be exported really is
6692 define generate-sym-test
6693 $(AM_V_at)$(MKDIR_P) $(dir $@)
6694 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6695 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6696 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6697 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6698 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6699 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6700 $(AM_V_at)printf 'return 0; }\n' >> $@
6701 endef
6702
6703 test-libsystemd-sym.c: \
6704 $(top_builddir)/src/libsystemd/libsystemd.sym \
6705 src/systemd/sd-journal.h \
6706 src/systemd/sd-daemon.h \
6707 src/systemd/sd-login.h \
6708 src/systemd/sd-bus.h \
6709 src/systemd/sd-utf8.h \
6710 src/systemd/sd-resolve.h \
6711 src/systemd/sd-path.h \
6712 src/systemd/sd-event.h
6713 $(generate-sym-test)
6714
6715 test-libudev-sym.c: \
6716 src/libudev/libudev.sym \
6717 src/udev/udev.h
6718 $(generate-sym-test)
6719
6720 nodist_test_libsystemd_sym_SOURCES = \
6721 test-libsystemd-sym.c
6722 test_libsystemd_sym_LDADD = \
6723 libsystemd.la
6724
6725 nodist_test_libudev_sym_SOURCES = \
6726 test-libudev-sym.c
6727 test_libudev_sym_CFLAGS = \
6728 $(AM_CFLAGS) \
6729 -Wno-deprecated-declarations
6730 test_libudev_sym_LDADD = \
6731 libudev.la
6732
6733 BUILT_SOURCES += \
6734 test-libsystemd-sym.c \
6735 test-libudev-sym.c
6736
6737 CLEANFILES += \
6738 test-libsystemd-sym.c \
6739 test-libudev-sym.c
6740
6741 tests += \
6742 test-libsystemd-sym \
6743 test-libudev-sym
6744
6745 .PHONY: install-tests
6746 install-tests: $(tests) $(TEST_DATA_FILES)
6747 for f in $(tests); do \
6748 if [ -x $(top_builddir)/.libs/$$f ]; then \
6749 install -D -m 755 $(top_builddir)/.libs/$$f $(DESTDIR)/$(testsdir)/$$f; \
6750 else \
6751 install -D -m 755 $(top_builddir)/$$f $(DESTDIR)/$(testsdir)/$$f; \
6752 fi; \
6753 done
6754 for f in $(TEST_DATA_FILES); do \
6755 install -D -m 644 $(top_srcdir)/$$f $(DESTDIR)/$(testsdir)/testdata/$${f#test/}; \
6756 done
6757
6758
6759 .PHONY: cppcheck
6760 cppcheck:
6761 cppcheck --enable=all -q $(top_srcdir)
6762
6763 # Used to extract compile flags for YCM.
6764 print-%:
6765 @echo $($*)
6766
6767 .PHONY: git-contrib
6768 git-contrib:
6769 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | sed 's/ / /g' | awk '{ print $$0 "," }' | sort -u
6770
6771 EXTRA_DIST += \
6772 tools/gdb-sd_dump_hashmaps.py
6773
6774 .PHONY: list-keys
6775 list-keys:
6776 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6777
6778 .PHONY: add-key
6779 add-key:
6780 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -