1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
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.
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.
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/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
49 # Dirs of external packages
50 dbuspolicydir=@dbuspolicydir@
51 dbussessionservicedir=@dbussessionservicedir@
52 dbussystemservicedir=@dbussystemservicedir@
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
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
101 # And these are the special ones for /
102 rootprefix=@rootprefix@
103 rootbindir=$(rootprefix)/bin
104 rootlibexecdir=$(rootprefix)/lib/systemd
109 UNINSTALL_EXEC_HOOKS =
111 UNINSTALL_DATA_HOOKS =
112 DISTCLEAN_LOCAL_HOOKS =
117 rootlibexec_LTLIBRARIES =
122 polkitpolicy_in_in_files =
123 polkitpolicy_in_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 =
137 dist_rootlibexec_DATA =
141 TEST_EXTENSIONS = .py
142 PY_LOG_COMPILER = $(PYTHON)
143 DISABLE_HARD_ERRORS = yes
145 noinst_PROGRAMS = $(manual_tests) $(tests) $(unsafe_tests)
147 if ENABLE_UNSAFE_TESTS
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;
160 if ENABLE_BASH_COMPLETION
161 dist_bashcompletion_DATA = $(dist_bashcompletion_data)
162 nodist_bashcompletion_DATA = $(nodist_bashcompletion_data)
164 if ENABLE_ZSH_COMPLETION
165 dist_zshcompletion_DATA = $(dist_zshcompletion_data)
166 nodist_zshcompletion_DATA = $(nodist_zshcompletion_data)
168 udevlibexec_PROGRAMS =
169 gperf_gperf_sources =
170 rootlib_LTLIBRARIES =
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))
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=) \
185 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
186 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
187 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
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)\" \
264 AM_CFLAGS = $(OUR_CFLAGS)
265 AM_LDFLAGS = $(OUR_LDFLAGS)
267 # ------------------------------------------------------------------------------
270 SHUTDOWN_TARGET_WANTS =
271 LOCAL_FS_TARGET_WANTS =
272 REMOTE_FS_TARGET_WANTS =
273 MULTI_USER_TARGET_WANTS =
274 GRAPHICAL_TARGET_WANTS =
275 MACHINES_TARGET_WANTS =
276 RESCUE_TARGET_WANTS =
277 SYSINIT_TARGET_WANTS =
278 SOCKETS_TARGET_WANTS =
279 BUSNAMES_TARGET_WANTS =
280 TIMERS_TARGET_WANTS =
281 USER_SOCKETS_TARGET_WANTS =
282 USER_DEFAULT_TARGET_WANTS =
283 USER_BUSNAMES_TARGET_WANTS =
285 SYSTEM_UNIT_ALIASES =
289 install-target-wants-hook:
290 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
291 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
292 what="$(REMOTE_FS_TARGET_WANTS)" && wants=remote-fs.target && dir=$(systemunitdir) && $(add-wants)
293 what="$(MACHINES_TARGET_WANTS)" && wants=machines.target && dir=$(systemunitdir) && $(add-wants)
294 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
295 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
296 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
297 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
298 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
299 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
300 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
301 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
302 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
304 install-busnames-target-wants-hook:
305 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
306 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
309 [ -z "$$what" ] || ( \
310 dir=$(DESTDIR)$$dir/$$wants.wants && \
311 $(MKDIR_P) -m 0755 $$dir && \
314 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
317 install-directories-hook:
318 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
320 install-environment-conf-hook: install-directories-hook
321 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(sysconfdir)/environment \
322 $(DESTDIR)$(environmentdir)/99-environment.conf
324 install-aliases-hook:
325 set -- $(SYSTEM_UNIT_ALIASES) && \
326 dir=$(systemunitdir) && $(install-aliases)
327 set -- $(USER_UNIT_ALIASES) && \
328 dir=$(userunitdir) && $(install-relative-aliases)
329 set -- $(GENERAL_ALIASES) && \
330 dir= && $(install-relative-aliases)
332 define install-aliases
333 while [ -n "$$1" ]; do \
334 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
335 rm -f $(DESTDIR)$$dir/$$2 && \
336 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
337 shift 2 || exit $$?; \
341 define install-relative-aliases
342 while [ -n "$$1" ]; do \
343 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
344 rm -f $(DESTDIR)$$dir/$$2 && \
345 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
346 shift 2 || exit $$?; \
350 install-touch-usr-hook:
351 touch -c $(DESTDIR)/$(prefix)
353 INSTALL_EXEC_HOOKS += \
354 install-target-wants-hook \
355 install-directories-hook \
356 install-aliases-hook \
357 install-touch-usr-hook \
358 install-busnames-target-wants-hook
360 if ENABLE_ENVIRONMENT_D
361 INSTALL_EXEC_HOOKS += \
362 install-environment-conf-hook
365 # ------------------------------------------------------------------------------
366 AM_V_M4 = $(AM_V_M4_$(V))
367 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
368 AM_V_M4_0 = @echo " M4 " $@;
370 AM_V_XSLT = $(AM_V_XSLT_$(V))
371 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
372 AM_V_XSLT_0 = @echo " XSLT " $@;
374 AM_V_GPERF = $(AM_V_GPERF_$(V))
375 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
376 AM_V_GPERF_0 = @echo " GPERF " $@;
378 AM_V_LN = $(AM_V_LN_$(V))
379 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
380 AM_V_LN_0 = @echo " LN " $@;
382 AM_V_RM = $(AM_V_RM_$(V))
383 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
384 AM_V_RM_0 = @echo " RM " $@;
386 # ------------------------------------------------------------------------------
390 systemd-ask-password \
391 systemd-tty-ask-password-agent \
392 systemd-machine-id-setup \
399 systemd-detect-virt \
404 systemd-stdio-bridge \
408 src/kernel-install/kernel-install
410 dist_kernelinstall_SCRIPTS = \
411 src/kernel-install/50-depmod.install \
412 src/kernel-install/90-loaderentry.install
414 rootlibexec_PROGRAMS = \
416 systemd-cgroups-agent \
420 systemd-volatile-root \
421 systemd-reply-password \
426 systemd-socket-proxyd \
430 rootlibexec_PROGRAMS += \
435 rootlibexec_PROGRAMS += \
439 systemgenerator_PROGRAMS = \
440 systemd-getty-generator \
441 systemd-fstab-generator \
442 systemd-system-update-generator \
443 systemd-debug-generator
445 if ENABLE_ENVIRONMENT_D
446 userenvgenerator_PROGRAMS = \
447 30-systemd-environment-d-generator
450 rootlibexec_SCRIPTS = \
451 src/sulogin-shell/systemd-sulogin-shell
454 src/sulogin-shell/systemd-sulogin-shell.in
456 dist_bashcompletion_data = \
457 shell-completion/bash/busctl \
458 shell-completion/bash/journalctl \
459 shell-completion/bash/systemd-analyze \
460 shell-completion/bash/systemd-cat \
461 shell-completion/bash/systemd-cgls \
462 shell-completion/bash/systemd-cgtop \
463 shell-completion/bash/systemd-delta \
464 shell-completion/bash/systemd-detect-virt \
465 shell-completion/bash/systemd-nspawn \
466 shell-completion/bash/systemd-path \
467 shell-completion/bash/systemd-run \
468 shell-completion/bash/udevadm \
469 shell-completion/bash/kernel-install
471 nodist_bashcompletion_data = \
472 shell-completion/bash/systemctl
474 dist_zshcompletion_data = \
475 shell-completion/zsh/_busctl \
476 shell-completion/zsh/_journalctl \
477 shell-completion/zsh/_udevadm \
478 shell-completion/zsh/_kernel-install \
479 shell-completion/zsh/_systemd-nspawn \
480 shell-completion/zsh/_systemd-analyze \
481 shell-completion/zsh/_systemd-run \
482 shell-completion/zsh/_sd_hosts_or_user_at_host \
483 shell-completion/zsh/_sd_outputmodes \
484 shell-completion/zsh/_sd_unit_files \
485 shell-completion/zsh/_systemd-delta \
486 shell-completion/zsh/_systemd
488 nodist_zshcompletion_data = \
489 shell-completion/zsh/_systemctl
492 shell-completion/bash/systemctl.in \
493 shell-completion/zsh/_systemctl.in
496 sysctl.d/50-default.conf
498 dist_systemunit_DATA = \
499 units/graphical.target \
500 units/multi-user.target \
501 units/emergency.target \
502 units/sysinit.target \
508 units/local-fs.target \
509 units/local-fs-pre.target \
510 units/initrd.target \
511 units/initrd-fs.target \
512 units/initrd-root-device.target \
513 units/initrd-root-fs.target \
514 units/remote-fs.target \
515 units/remote-fs-pre.target \
516 units/network.target \
517 units/network-pre.target \
518 units/network-online.target \
519 units/nss-lookup.target \
520 units/nss-user-lookup.target \
521 units/poweroff.target \
522 units/reboot.target \
523 units/rescue.target \
524 units/rpcbind.target \
525 units/time-sync.target \
526 units/shutdown.target \
528 units/umount.target \
529 units/sigpwr.target \
531 units/sockets.target \
532 units/timers.target \
534 units/suspend.target \
536 units/slices.target \
538 units/systemd-initctl.socket \
539 units/syslog.socket \
540 units/dev-hugepages.mount \
541 units/dev-mqueue.mount \
542 units/sys-kernel-config.mount \
543 units/sys-kernel-debug.mount \
544 units/sys-fs-fuse-connections.mount \
546 units/printer.target \
548 units/bluetooth.target \
549 units/smartcard.target \
550 units/systemd-ask-password-wall.path \
551 units/systemd-ask-password-console.path \
552 units/systemd-udevd-control.socket \
553 units/systemd-udevd-kernel.socket \
554 units/system-update.target \
555 units/initrd-switch-root.target \
556 units/machines.target
558 dist_systemunit_DATA += \
559 $(dist_systemunit_DATA_busnames)
561 dist_systemunit_DATA_busnames += \
562 units/busnames.target
564 nodist_systemunit_DATA = \
565 units/getty@.service \
566 units/serial-getty@.service \
567 units/console-getty.service \
568 units/container-getty@.service \
569 units/system-update-cleanup.service \
570 units/systemd-initctl.service \
571 units/systemd-remount-fs.service \
572 units/systemd-volatile-root.service \
573 units/systemd-ask-password-wall.service \
574 units/systemd-ask-password-console.service \
575 units/systemd-sysctl.service \
576 units/emergency.service \
577 units/rescue.service \
578 units/user@.service \
579 units/systemd-suspend.service \
580 units/systemd-halt.service \
581 units/systemd-poweroff.service \
582 units/systemd-reboot.service \
583 units/systemd-kexec.service \
584 units/systemd-exit.service \
585 units/systemd-fsck@.service \
586 units/systemd-fsck-root.service \
587 units/systemd-machine-id-commit.service \
588 units/systemd-udevd.service \
589 units/systemd-udev-trigger.service \
590 units/systemd-udev-settle.service \
591 units/systemd-hwdb-update.service \
592 units/debug-shell.service \
593 units/initrd-parse-etc.service \
594 units/initrd-cleanup.service \
595 units/initrd-udevadm-cleanup-db.service \
596 units/initrd-switch-root.service \
597 units/systemd-nspawn@.service \
598 units/systemd-update-done.service
601 nodist_systemunit_DATA += \
602 units/systemd-update-utmp.service \
603 units/systemd-update-utmp-runlevel.service
606 dist_userunit_DATA = \
607 units/user/basic.target \
608 units/user/default.target \
609 units/user/exit.target \
610 units/user/graphical-session.target \
611 units/user/graphical-session-pre.target \
612 units/user/bluetooth.target \
613 units/user/busnames.target \
614 units/user/paths.target \
615 units/user/printer.target \
616 units/user/shutdown.target \
617 units/user/smartcard.target \
618 units/user/sockets.target \
619 units/user/sound.target \
620 units/user/timers.target
622 nodist_userunit_DATA = \
623 units/user/systemd-exit.service
625 dist_systempreset_DATA = \
626 system-preset/90-systemd.preset
629 units/getty@.service.m4 \
630 units/serial-getty@.service.m4 \
631 units/console-getty.service.m4.in \
632 units/container-getty@.service.m4.in \
633 units/rescue.service.in \
634 units/system-update-cleanup.service.in \
635 units/systemd-initctl.service.in \
636 units/systemd-remount-fs.service.in \
637 units/systemd-volatile-root.service.in \
638 units/systemd-update-utmp.service.in \
639 units/systemd-update-utmp-runlevel.service.in \
640 units/systemd-ask-password-wall.service.in \
641 units/systemd-ask-password-console.service.in \
642 units/systemd-sysctl.service.in \
643 units/emergency.service.in \
644 units/systemd-halt.service.in \
645 units/systemd-poweroff.service.in \
646 units/systemd-reboot.service.in \
647 units/systemd-kexec.service.in \
648 units/systemd-exit.service.in \
649 units/user/systemd-exit.service.in \
650 units/systemd-fsck@.service.in \
651 units/systemd-fsck-root.service.in \
652 units/systemd-machine-id-commit.service.in \
653 units/user@.service.m4.in \
654 units/debug-shell.service.in \
655 units/systemd-suspend.service.in \
656 units/quotaon.service.in \
657 units/initrd-parse-etc.service.in \
658 units/initrd-cleanup.service.in \
659 units/initrd-udevadm-cleanup-db.service.in \
660 units/initrd-switch-root.service.in \
661 units/systemd-nspawn@.service.in \
662 units/systemd-update-done.service.in \
666 nodist_systemunit_DATA += \
667 units/rc-local.service \
668 units/halt-local.service
670 systemgenerator_PROGRAMS += \
671 systemd-sysv-generator \
672 systemd-rc-local-generator
676 src/systemctl/systemd-sysv-install.SKELETON \
677 units/rc-local.service.in \
678 units/halt-local.service.in
681 $(systemunitdir)/machines.target $(pkgsysconfdir)/system/multi-user.target.wants/machines.target
690 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
702 @INTLTOOL_POLICY_RULE@
704 systemd-mount-install-hook:
705 -$(LN_S) systemd-mount $(DESTDIR)$(bindir)/systemd-umount
707 systemd-mount-uninstall-hook:
708 -rm $(DESTDIR)$(bindir)/systemd-umount
710 INSTALL_EXEC_HOOKS += systemd-mount-install-hook
711 UNINSTALL_EXEC_HOOKS += systemd-mount-uninstall-hook
713 # ------------------------------------------------------------------------------
718 include Makefile-man.am
720 .PHONY: man update-man-list
721 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
724 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
726 ${XML_FILES:.xml=.html}
728 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
748 $(AM_V_at)$(MKDIR_P) $(dir $@)
749 $(AM_V_LN)$(LN_S) -f ../../man $@
751 man/index.html: man/systemd.index.html
752 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
764 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
765 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
766 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
768 # This target should only be run manually. It recreates Makefile-man.am
769 # file in the source directory based on all man/*.xml files. Run it after
770 # adding, removing, or changing the conditional in a man page.
771 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
772 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
773 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
774 @echo "Makefile-man.am has been regenerated"
776 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
777 $(AM_V_at)$(MKDIR_P) $(dir $@)
778 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
780 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
781 $(AM_V_at)$(MKDIR_P) $(dir $@)
782 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
785 man/systemd.index.xml \
786 man/systemd.directives.xml
789 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
790 tools/make-man-index.py \
791 tools/make-man-rules.py \
792 tools/make-directive-index.py \
793 tools/xml_helper.py \
794 man/glib-event-glue.c \
795 man/50-xdg-data-dirs.sh \
796 man/90-rearrange-path.py
798 # ------------------------------------------------------------------------------
799 noinst_LTLIBRARIES += \
802 libbasic_la_SOURCES = \
803 src/basic/missing.h \
804 src/basic/missing_syscall.h \
805 src/basic/raw-clone.h \
806 src/basic/capability-util.c \
807 src/basic/capability-util.h \
808 src/basic/conf-files.c \
809 src/basic/conf-files.h \
810 src/basic/stdio-util.h \
811 src/basic/hostname-util.h \
812 src/basic/hostname-util.c \
813 src/basic/unit-name.c \
814 src/basic/unit-name.h \
816 src/basic/securebits.h \
817 src/basic/special.h \
819 src/basic/unaligned.h \
822 src/basic/sparse-endian.h \
826 src/basic/io-util.c \
827 src/basic/io-util.h \
828 src/basic/string-util.c \
829 src/basic/string-util.h \
830 src/basic/fd-util.c \
831 src/basic/fd-util.h \
832 src/basic/parse-util.c \
833 src/basic/parse-util.h \
834 src/basic/user-util.c \
835 src/basic/user-util.h \
836 src/basic/rlimit-util.c \
837 src/basic/rlimit-util.h \
838 src/basic/dirent-util.c \
839 src/basic/dirent-util.h \
840 src/basic/xattr-util.c \
841 src/basic/xattr-util.h \
842 src/basic/chattr-util.c \
843 src/basic/chattr-util.h \
844 src/basic/proc-cmdline.c \
845 src/basic/proc-cmdline.h \
846 src/basic/fs-util.c \
847 src/basic/fs-util.h \
848 src/basic/syslog-util.c \
849 src/basic/syslog-util.h \
850 src/basic/stat-util.c \
851 src/basic/stat-util.h \
852 src/basic/mount-util.c \
853 src/basic/mount-util.h \
854 src/basic/hexdecoct.c \
855 src/basic/hexdecoct.h \
856 src/basic/glob-util.h \
857 src/basic/glob-util.c \
858 src/basic/extract-word.c \
859 src/basic/extract-word.h \
862 src/basic/cpu-set-util.c \
863 src/basic/cpu-set-util.h \
864 src/basic/lockfile-util.c \
865 src/basic/lockfile-util.h \
866 src/basic/path-util.c \
867 src/basic/path-util.h \
868 src/basic/time-util.c \
869 src/basic/time-util.h \
870 src/basic/locale-util.c \
871 src/basic/locale-util.h \
872 src/basic/umask-util.h \
873 src/basic/signal-util.c \
874 src/basic/signal-util.h \
875 src/basic/string-table.c \
876 src/basic/string-table.h \
877 src/basic/mempool.c \
878 src/basic/mempool.h \
879 src/basic/hashmap.c \
880 src/basic/hashmap.h \
881 src/basic/hash-funcs.c \
882 src/basic/hash-funcs.h \
883 src/basic/siphash24.c \
884 src/basic/siphash24.h \
886 src/basic/ordered-set.h \
887 src/basic/ordered-set.c \
892 src/basic/web-util.c \
893 src/basic/web-util.h \
896 src/basic/env-util.c \
897 src/basic/env-util.h \
900 src/basic/strxcpyx.c \
901 src/basic/strxcpyx.h \
904 src/basic/bus-label.c \
905 src/basic/bus-label.h \
906 src/basic/ratelimit.h \
907 src/basic/ratelimit.c \
908 src/basic/exec-util.c \
909 src/basic/exec-util.h \
910 src/basic/exit-status.c \
911 src/basic/exit-status.h \
914 src/basic/architecture.c \
915 src/basic/architecture.h \
916 src/basic/smack-util.c \
917 src/basic/smack-util.h \
918 src/basic/device-nodes.c \
919 src/basic/device-nodes.h \
922 src/basic/gunicode.c \
923 src/basic/gunicode.h \
924 src/basic/socket-util.c \
925 src/basic/socket-util.h \
926 src/basic/in-addr-util.c \
927 src/basic/in-addr-util.h \
928 src/basic/ether-addr-util.h \
929 src/basic/ether-addr-util.c \
930 src/basic/replace-var.c \
931 src/basic/replace-var.h \
932 src/basic/clock-util.c \
933 src/basic/clock-util.h \
934 src/basic/calendarspec.c \
935 src/basic/calendarspec.h \
938 src/basic/MurmurHash2.c \
939 src/basic/MurmurHash2.h \
942 src/basic/cgroup-util.c \
943 src/basic/cgroup-util.h \
944 src/basic/errno-list.c \
945 src/basic/errno-list.h \
946 src/basic/af-list.c \
947 src/basic/af-list.h \
948 src/basic/arphrd-list.c \
949 src/basic/arphrd-list.h \
950 src/basic/terminal-util.c \
951 src/basic/terminal-util.h \
952 src/basic/login-util.h \
953 src/basic/login-util.c \
954 src/basic/cap-list.c \
955 src/basic/cap-list.h \
956 src/basic/audit-util.c \
957 src/basic/audit-util.h \
960 src/basic/barrier.c \
961 src/basic/barrier.h \
964 src/basic/memfd-util.c \
965 src/basic/memfd-util.h \
966 src/basic/process-util.c \
967 src/basic/process-util.h \
968 src/basic/random-util.c \
969 src/basic/random-util.h \
975 src/basic/socket-label.c \
978 src/basic/btrfs-util.c \
979 src/basic/btrfs-util.h \
980 src/basic/btrfs-ctree.h \
981 src/basic/selinux-util.c \
982 src/basic/selinux-util.h \
983 src/basic/mkdir-label.c \
984 src/basic/fileio-label.c \
985 src/basic/fileio-label.h \
990 src/basic/alloc-util.h \
991 src/basic/alloc-util.c \
992 src/basic/format-util.h \
993 src/basic/nss-util.h \
996 src/basic/journal-importer.h \
997 src/basic/journal-importer.c
999 nodist_libbasic_la_SOURCES = \
1000 src/basic/errno-from-name.h \
1001 src/basic/errno-to-name.h \
1002 src/basic/af-from-name.h \
1003 src/basic/af-to-name.h \
1004 src/basic/arphrd-from-name.h \
1005 src/basic/arphrd-to-name.h \
1006 src/basic/cap-from-name.h \
1007 src/basic/cap-to-name.h
1009 libbasic_la_CFLAGS = \
1015 libbasic_la_LIBADD = \
1020 # -----------------------------------------------------------------------------
1021 noinst_LTLIBRARIES += \
1024 libshared_la_SOURCES = \
1025 src/shared/output-mode.h \
1026 src/shared/output-mode.c \
1028 src/shared/udev-util.h \
1029 src/shared/udev-util.c \
1030 src/shared/linux/auto_dev-ioctl.h \
1031 src/shared/linux-3.13/dm-ioctl.h \
1032 src/shared/initreq.h \
1033 src/shared/dns-domain.c \
1034 src/shared/dns-domain.h \
1035 src/shared/efivars.c \
1036 src/shared/efivars.h \
1037 src/shared/fstab-util.c \
1038 src/shared/fstab-util.h \
1039 src/shared/sleep-config.c \
1040 src/shared/sleep-config.h \
1041 src/shared/conf-parser.c \
1042 src/shared/conf-parser.h \
1043 src/shared/pager.c \
1044 src/shared/pager.h \
1045 src/shared/spawn-polkit-agent.c \
1046 src/shared/spawn-polkit-agent.h \
1047 src/shared/apparmor-util.c \
1048 src/shared/apparmor-util.h \
1049 src/shared/ima-util.c \
1050 src/shared/ima-util.h \
1051 src/shared/journal-util.c \
1052 src/shared/journal-util.h \
1053 src/shared/ptyfwd.c \
1054 src/shared/ptyfwd.h \
1055 src/shared/base-filesystem.c \
1056 src/shared/base-filesystem.h \
1057 src/shared/uid-range.c \
1058 src/shared/uid-range.h \
1059 src/shared/install.c \
1060 src/shared/install.h \
1061 src/shared/install-printf.c \
1062 src/shared/install-printf.h \
1063 src/shared/path-lookup.c \
1064 src/shared/path-lookup.h \
1065 src/shared/specifier.c \
1066 src/shared/specifier.h \
1067 src/shared/dev-setup.c \
1068 src/shared/dev-setup.h \
1069 src/shared/dropin.c \
1070 src/shared/dropin.h \
1071 src/shared/condition.c \
1072 src/shared/condition.h \
1073 src/shared/clean-ipc.c \
1074 src/shared/clean-ipc.h \
1075 src/shared/generator.h \
1076 src/shared/generator.c \
1077 src/shared/acpi-fpdt.h \
1078 src/shared/acpi-fpdt.c \
1079 src/shared/boot-timestamps.h \
1080 src/shared/boot-timestamps.c \
1081 src/shared/cgroup-show.c \
1082 src/shared/cgroup-show.h \
1083 src/shared/utmp-wtmp.h \
1084 src/shared/watchdog.c \
1085 src/shared/watchdog.h \
1086 src/shared/spawn-ask-password-agent.c \
1087 src/shared/spawn-ask-password-agent.h \
1088 src/shared/ask-password-api.c \
1089 src/shared/ask-password-api.h \
1090 src/shared/switch-root.h \
1091 src/shared/switch-root.c \
1092 src/shared/import-util.c \
1093 src/shared/import-util.h \
1094 src/shared/sysctl-util.c \
1095 src/shared/sysctl-util.h \
1096 src/shared/bus-util.c \
1097 src/shared/bus-util.h \
1098 src/shared/logs-show.c \
1099 src/shared/logs-show.h \
1100 src/shared/machine-image.c \
1101 src/shared/machine-image.h \
1102 src/shared/machine-pool.c \
1103 src/shared/machine-pool.h \
1104 src/shared/loop-util.c \
1105 src/shared/loop-util.h \
1106 src/shared/resolve-util.c \
1107 src/shared/resolve-util.h \
1108 src/shared/bus-unit-util.c \
1109 src/shared/bus-unit-util.h \
1110 src/shared/vlan-util.h \
1111 src/shared/vlan-util.c \
1112 src/shared/tests.h \
1113 src/shared/tests.c \
1114 src/shared/fdset.c \
1115 src/shared/fdset.h \
1116 src/shared/nsflags.h \
1117 src/shared/nsflags.c \
1118 src/shared/dissect-image.c \
1119 src/shared/dissect-image.h \
1120 src/shared/volatile-util.c \
1121 src/shared/volatile-util.h
1124 libshared_la_SOURCES += \
1125 src/shared/utmp-wtmp.c
1129 libshared_la_SOURCES += \
1130 src/shared/seccomp-util.h \
1131 src/shared/seccomp-util.c
1135 libshared_la_SOURCES += \
1136 src/shared/acl-util.c \
1137 src/shared/acl-util.h
1140 libshared_la_CFLAGS = \
1147 $(LIBCRYPTSETUP_CFLAGS)
1149 libshared_la_LIBADD = \
1150 libsystemd-internal.la \
1152 libsystemd-journal-internal.la \
1153 libudev-internal.la \
1159 $(LIBCRYPTSETUP_LIBS)
1161 rootlibexec_LTLIBRARIES += \
1162 libsystemd-shared.la
1164 libsystemd_shared_la_SOURCES = \
1165 $(libbasic_la_SOURCES) \
1166 $(libshared_la_SOURCES) \
1167 $(libsystemd_internal_la_SOURCES) \
1168 $(libsystemd_journal_internal_la_SOURCES) \
1169 $(libudev_internal_la_SOURCES)
1171 libsystemd_shared_la_CFLAGS = \
1173 $(libbasic_la_CFLAGS) \
1174 $(libshared_la_CFLAGS) \
1175 $(libsystemd_internal_la_CFLAGS) \
1176 $(libsystemd_journal_internal_la_CFLAGS) \
1177 $(libudev_internal_la_CFLAGS) \
1183 $(LIBCRYPTSETUP_CFLAGS) \
1184 -fvisibility=default
1186 # We can't use libshared_la_LIBADD here because it would
1187 # pull in libsystemd*-internal.la
1188 libsystemd_shared_la_LIBADD = \
1189 $(libbasic_la_LIBADD) \
1190 $(libsystemd_internal_la_LIBADD) \
1191 $(libsystemd_journal_internal_la_LIBADD) \
1192 $(libudev_internal_la_LIBADD) \
1198 $(LIBCRYPTSETUP_LIBS)
1200 libsystemd_shared_la_LDFLAGS = \
1202 -release $(PACKAGE_VERSION)
1205 # -----------------------------------------------------------------------------
1207 noinst_LTLIBRARIES += \
1210 libfirewall_la_SOURCES = \
1211 src/shared/firewall-util.h \
1212 src/shared/firewall-util.c
1214 libfirewall_la_CFLAGS = \
1218 libfirewall_la_LIBADD = \
1222 # -----------------------------------------------------------------------------
1224 dist_systemunit_DATA += \
1225 units/ldconfig.service
1227 SYSINIT_TARGET_WANTS += \
1231 # ------------------------------------------------------------------------------
1232 noinst_LTLIBRARIES += \
1235 libcore_la_SOURCES = \
1238 src/core/unit-printf.c \
1239 src/core/unit-printf.h \
1242 src/core/manager.c \
1243 src/core/manager.h \
1244 src/core/transaction.c \
1245 src/core/transaction.h \
1246 src/core/load-fragment.c \
1247 src/core/load-fragment.h \
1248 src/core/service.c \
1249 src/core/service.h \
1252 src/core/busname.c \
1253 src/core/busname.h \
1254 src/core/bus-policy.c \
1255 src/core/bus-policy.h \
1262 src/core/automount.c \
1263 src/core/automount.h \
1274 src/core/load-dropin.c \
1275 src/core/load-dropin.h \
1276 src/core/execute.c \
1277 src/core/execute.h \
1278 src/core/dynamic-user.c \
1279 src/core/dynamic-user.h \
1284 src/core/dbus-manager.c \
1285 src/core/dbus-manager.h \
1286 src/core/dbus-unit.c \
1287 src/core/dbus-unit.h \
1288 src/core/dbus-job.c \
1289 src/core/dbus-job.h \
1290 src/core/dbus-service.c \
1291 src/core/dbus-service.h \
1292 src/core/dbus-socket.c \
1293 src/core/dbus-socket.h \
1294 src/core/dbus-busname.c \
1295 src/core/dbus-busname.h \
1296 src/core/dbus-target.c \
1297 src/core/dbus-target.h \
1298 src/core/dbus-device.c \
1299 src/core/dbus-device.h \
1300 src/core/dbus-mount.c \
1301 src/core/dbus-mount.h \
1302 src/core/dbus-automount.c \
1303 src/core/dbus-automount.h \
1304 src/core/dbus-swap.c \
1305 src/core/dbus-swap.h \
1306 src/core/dbus-timer.c \
1307 src/core/dbus-timer.h \
1308 src/core/dbus-path.c \
1309 src/core/dbus-path.h \
1310 src/core/dbus-slice.c \
1311 src/core/dbus-slice.h \
1312 src/core/dbus-scope.c \
1313 src/core/dbus-scope.h \
1314 src/core/dbus-execute.c \
1315 src/core/dbus-execute.h \
1316 src/core/dbus-kill.c \
1317 src/core/dbus-kill.h \
1318 src/core/dbus-cgroup.c \
1319 src/core/dbus-cgroup.h \
1322 src/core/selinux-access.c \
1323 src/core/selinux-access.h \
1324 src/core/selinux-setup.c \
1325 src/core/selinux-setup.h \
1326 src/core/smack-setup.c \
1327 src/core/smack-setup.h \
1328 src/core/ima-setup.c \
1329 src/core/ima-setup.h \
1330 src/core/locale-setup.h \
1331 src/core/locale-setup.c \
1332 src/core/hostname-setup.c \
1333 src/core/hostname-setup.h \
1334 src/core/machine-id-setup.c \
1335 src/core/machine-id-setup.h \
1336 src/core/mount-setup.c \
1337 src/core/mount-setup.h \
1338 src/core/kmod-setup.c \
1339 src/core/kmod-setup.h \
1340 src/core/loopback-setup.h \
1341 src/core/loopback-setup.c \
1342 src/core/namespace.c \
1343 src/core/namespace.h \
1344 src/core/killall.h \
1345 src/core/killall.c \
1346 src/core/audit-fd.c \
1347 src/core/audit-fd.h \
1348 src/core/show-status.c \
1349 src/core/show-status.h \
1350 src/core/emergency-action.c \
1351 src/core/emergency-action.h
1353 nodist_libcore_la_SOURCES = \
1354 src/core/load-fragment-gperf.c \
1355 src/core/load-fragment-gperf-nulstr.c
1357 libcore_la_CFLAGS = \
1362 $(APPARMOR_CFLAGS) \
1366 libcore_la_LIBADD = \
1367 libsystemd-shared.la \
1374 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1375 $(AM_V_at)$(MKDIR_P) $(dir $@)
1376 $(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 ";" }' < $< > $@
1378 gperf_gperf_m4_sources = \
1379 src/core/load-fragment-gperf.gperf.m4
1381 gperf_txt_sources = \
1382 src/basic/errno-list.txt \
1383 src/basic/af-list.txt \
1384 src/basic/arphrd-list.txt \
1385 src/basic/cap-list.txt
1388 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1389 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1390 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1391 $(gperf_txt_sources:-list.txt=-from-name.h) \
1392 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
1395 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1397 $(gperf_txt_sources)
1400 $(gperf_gperf_m4_sources) \
1401 $(gperf_gperf_sources)
1404 $(gperf_txt_sources)
1406 %-from-name.gperf: %-list.txt
1407 $(AM_V_at)$(MKDIR_P) $(dir $@)
1408 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1410 %-from-name.h: %-from-name.gperf
1411 $(AM_V_at)$(MKDIR_P) $(dir $@)
1412 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1415 src/basic/errno-list.txt:
1416 $(AM_V_at)$(MKDIR_P) $(dir $@)
1417 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1419 src/basic/errno-to-name.h: src/basic/errno-list.txt
1420 $(AM_V_at)$(MKDIR_P) $(dir $@)
1421 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1424 src/basic/af-list.txt:
1425 $(AM_V_at)$(MKDIR_P) $(dir $@)
1426 $(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; }' >$@
1428 src/basic/af-to-name.h: src/basic/af-list.txt
1429 $(AM_V_at)$(MKDIR_P) $(dir $@)
1430 $(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 "};"}' <$< >$@
1433 src/basic/arphrd-list.txt:
1434 $(AM_V_at)$(MKDIR_P) $(dir $@)
1435 $(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_//' >$@
1437 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1438 $(AM_V_at)$(MKDIR_P) $(dir $@)
1439 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1441 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1442 $(AM_V_at)$(MKDIR_P) $(dir $@)
1443 $(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 }' <$< >$@
1446 src/basic/cap-list.txt:
1447 $(AM_V_at)$(MKDIR_P) $(dir $@)
1448 $(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 >$@
1450 src/basic/cap-to-name.h: src/basic/cap-list.txt
1451 $(AM_V_at)$(MKDIR_P) $(dir $@)
1452 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1454 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1455 $(AM_V_at)$(MKDIR_P) $(dir $@)
1456 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1458 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1459 $(AM_V_at)$(MKDIR_P) $(dir $@)
1460 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1462 audit_list_includes = -include linux/audit.h -include missing.h
1464 audit_list_includes += -include libaudit.h
1467 src/journal/audit_type-list.txt:
1468 $(AM_V_at)$(MKDIR_P) $(dir $@)
1469 $(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 >$@
1471 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1472 $(AM_V_at)$(MKDIR_P) $(dir $@)
1473 $(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" }' <$< >$@
1476 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1477 $(AM_V_at)$(MKDIR_P) $(dir $@)
1478 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1480 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1481 $(AM_V_at)$(MKDIR_P) $(dir $@)
1482 $(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" }' <$< >$@
1484 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1485 $(AM_V_at)$(MKDIR_P) $(dir $@)
1486 $(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 }' <$< >$@
1488 # ------------------------------------------------------------------------------
1500 dist_pkgsysconf_DATA += \
1501 src/core/system.conf \
1504 dist_dbuspolicy_DATA += \
1505 src/core/org.freedesktop.systemd1.conf
1507 dist_dbussystemservice_DATA += \
1508 src/core/org.freedesktop.systemd1.service
1510 polkitpolicy_in_in_files += \
1511 src/core/org.freedesktop.systemd1.policy.in.in
1513 pkgconfigdata_DATA += \
1516 if ENABLE_RPM_MACROS
1517 nodist_rpmmacros_DATA = \
1518 src/core/macros.systemd
1522 src/core/triggers.systemd
1525 src/core/systemd.pc.in \
1526 src/core/macros.systemd.in \
1527 src/core/triggers.systemd.in
1529 # ------------------------------------------------------------------------------
1537 test-ipv4ll-manual \
1538 test-ask-password-api \
1593 test-hostname-util \
1595 test-terminal-util \
1605 test-strip-tab-ansi \
1644 test-journal-importer
1656 TEST_DATA_FILES += \
1661 test/daughter.service \
1666 test/grandchild.service \
1668 test/hello-after-sleep.target \
1669 test/hello.service \
1671 test/parent-deep.slice \
1673 test/sched_idle_bad.service \
1674 test/sched_idle_ok.service \
1675 test/sched_rr_bad.service \
1676 test/sched_rr_change.service \
1677 test/sched_rr_ok.service \
1678 test/shutdown.target \
1679 test/sleep.service \
1680 test/sockets.target \
1682 test/sysinit.target \
1683 test/testsuite.target \
1684 test/timers.target \
1685 test/unstoppable.service \
1686 test/test-path/paths.target \
1687 test/test-path/basic.target \
1688 test/test-path/sysinit.target \
1689 test/test-path/path-changed.service \
1690 test/test-path/path-directorynotempty.service \
1691 test/test-path/path-existsglob.service \
1692 test/test-path/path-exists.service \
1693 test/test-path/path-makedirectory.service \
1694 test/test-path/path-modified.service \
1695 test/test-path/path-mycustomunit.service \
1696 test/test-path/path-service.service \
1697 test/test-path/path-changed.path \
1698 test/test-path/path-directorynotempty.path \
1699 test/test-path/path-existsglob.path \
1700 test/test-path/path-exists.path \
1701 test/test-path/path-makedirectory.path \
1702 test/test-path/path-modified.path \
1703 test/test-path/path-unit.path \
1704 test/test-execute/exec-environment-empty.service \
1705 test/test-execute/exec-environment-multiple.service \
1706 test/test-execute/exec-environment.service \
1707 test/test-execute/exec-passenvironment-absent.service \
1708 test/test-execute/exec-passenvironment-empty.service \
1709 test/test-execute/exec-passenvironment-repeated.service \
1710 test/test-execute/exec-passenvironment.service \
1711 test/test-execute/exec-group.service \
1712 test/test-execute/exec-group-nfsnobody.service \
1713 test/test-execute/exec-supplementarygroups.service \
1714 test/test-execute/exec-supplementarygroups-single-group.service \
1715 test/test-execute/exec-supplementarygroups-single-group-user.service \
1716 test/test-execute/exec-supplementarygroups-multiple-groups-default-group-user.service \
1717 test/test-execute/exec-supplementarygroups-multiple-groups-withgid.service \
1718 test/test-execute/exec-supplementarygroups-multiple-groups-withuid.service \
1719 test/test-execute/exec-dynamicuser-fixeduser.service \
1720 test/test-execute/exec-dynamicuser-fixeduser-one-supplementarygroup.service \
1721 test/test-execute/exec-dynamicuser-supplementarygroups.service \
1722 test/test-execute/exec-ignoresigpipe-no.service \
1723 test/test-execute/exec-ignoresigpipe-yes.service \
1724 test/test-execute/exec-personality-x86-64.service \
1725 test/test-execute/exec-personality-x86.service \
1726 test/test-execute/exec-personality-s390.service \
1727 test/test-execute/exec-personality-ppc64.service \
1728 test/test-execute/exec-personality-ppc64le.service \
1729 test/test-execute/exec-personality-aarch64.service \
1730 test/test-execute/exec-privatedevices-no.service \
1731 test/test-execute/exec-privatedevices-yes.service \
1732 test/test-execute/exec-privatedevices-no-capability-mknod.service \
1733 test/test-execute/exec-privatedevices-yes-capability-mknod.service \
1734 test/test-execute/exec-protectkernelmodules-no-capabilities.service \
1735 test/test-execute/exec-protectkernelmodules-yes-capabilities.service \
1736 test/test-execute/exec-protectkernelmodules-yes-mount-propagation.service \
1737 test/test-execute/exec-privatetmp-no.service \
1738 test/test-execute/exec-privatetmp-yes.service \
1739 test/test-execute/exec-readonlypaths.service \
1740 test/test-execute/exec-readonlypaths-mount-propagation.service \
1741 test/test-execute/exec-readwritepaths-mount-propagation.service \
1742 test/test-execute/exec-inaccessiblepaths-mount-propagation.service \
1743 test/test-execute/exec-inaccessiblepaths-proc.service \
1744 test/test-execute/exec-spec-interpolation.service \
1745 test/test-execute/exec-systemcallerrornumber.service \
1746 test/test-execute/exec-systemcallfilter-failing2.service \
1747 test/test-execute/exec-systemcallfilter-failing.service \
1748 test/test-execute/exec-systemcallfilter-not-failing2.service \
1749 test/test-execute/exec-systemcallfilter-not-failing.service \
1750 test/test-execute/exec-systemcallfilter-system-user.service \
1751 test/test-execute/exec-systemcallfilter-system-user-nfsnobody.service \
1752 test/test-execute/exec-user.service \
1753 test/test-execute/exec-user-nfsnobody.service \
1754 test/test-execute/exec-workingdirectory.service \
1755 test/test-execute/exec-umask-0177.service \
1756 test/test-execute/exec-umask-default.service \
1757 test/test-execute/exec-privatenetwork-yes.service \
1758 test/test-execute/exec-environmentfile.service \
1759 test/test-execute/exec-oomscoreadjust-positive.service \
1760 test/test-execute/exec-oomscoreadjust-negative.service \
1761 test/test-execute/exec-ioschedulingclass-best-effort.service \
1762 test/test-execute/exec-ioschedulingclass-idle.service \
1763 test/test-execute/exec-ioschedulingclass-none.service \
1764 test/test-execute/exec-ioschedulingclass-realtime.service \
1765 test/test-execute/exec-capabilityboundingset-invert.service \
1766 test/test-execute/exec-capabilityboundingset-merge.service \
1767 test/test-execute/exec-capabilityboundingset-reset.service \
1768 test/test-execute/exec-capabilityboundingset-simple.service \
1769 test/test-execute/exec-capabilityambientset.service \
1770 test/test-execute/exec-capabilityambientset-nfsnobody.service \
1771 test/test-execute/exec-capabilityambientset-merge.service \
1772 test/test-execute/exec-capabilityambientset-merge-nfsnobody.service \
1773 test/test-execute/exec-runtimedirectory.service \
1774 test/test-execute/exec-runtimedirectory-mode.service \
1775 test/test-execute/exec-runtimedirectory-owner.service \
1776 test/test-execute/exec-runtimedirectory-owner-nfsnobody.service \
1777 test/test-execute/exec-restrict-namespaces-no.service \
1778 test/test-execute/exec-restrict-namespaces-yes.service \
1779 test/test-execute/exec-restrict-namespaces-mnt.service \
1780 test/test-execute/exec-restrict-namespaces-mnt-blacklist.service \
1781 test/test-execute/exec-read-only-path-succeed.service \
1782 test/test-execute/exec-privatedevices-yes-capability-sys-rawio.service \
1783 test/test-execute/exec-privatedevices-no-capability-sys-rawio.service \
1784 test/bus-policy/hello.conf \
1785 test/bus-policy/methods.conf \
1786 test/bus-policy/ownerships.conf \
1787 test/bus-policy/signals.conf \
1788 test/bus-policy/check-own-rules.conf \
1789 test/bus-policy/many-rules.conf \
1790 test/bus-policy/test.conf \
1791 test/hwdb/10-bad.hwdb
1795 src/test/test-helper.h
1797 test_device_nodes_SOURCES = \
1798 src/test/test-device-nodes.c
1800 test_device_nodes_LDADD = \
1801 libsystemd-shared.la
1803 test_engine_SOURCES = \
1804 src/test/test-engine.c
1806 test_engine_CFLAGS = \
1811 test_engine_LDADD = \
1814 test_job_type_SOURCES = \
1815 src/test/test-job-type.c
1817 test_job_type_CFLAGS = \
1822 test_job_type_LDADD = \
1835 test_loopback_SOURCES = \
1836 src/test/test-loopback.c
1838 test_loopback_LDADD = \
1841 test_hostname_SOURCES = \
1842 src/test/test-hostname.c
1844 test_hostname_LDADD = \
1847 test_dns_domain_SOURCES = \
1848 src/test/test-dns-domain.c
1850 test_dns_domain_LDADD = \
1851 libsystemd-network.la \
1852 libsystemd-shared.la
1857 test-boot-timestamps
1859 test_boot_timestamps_SOURCES = \
1860 src/test/test-boot-timestamps.c
1862 test_boot_timestamps_LDADD = \
1863 libsystemd-shared.la
1866 test_unit_name_SOURCES = \
1867 src/test/test-unit-name.c
1869 test_unit_name_CFLAGS = \
1874 test_unit_name_LDADD = \
1877 test_unit_file_SOURCES = \
1878 src/test/test-unit-file.c
1880 test_unit_file_CFLAGS = \
1885 test_unit_file_LDADD = \
1888 test_utf8_SOURCES = \
1889 src/test/test-utf8.c
1892 libsystemd-shared.la
1894 test_capability_SOURCES = \
1895 src/test/test-capability.c
1897 test_capability_CFLAGS = \
1901 test_capability_LDADD = \
1902 libsystemd-shared.la \
1905 test_async_SOURCES = \
1906 src/test/test-async.c
1908 test_async_LDADD = \
1909 libsystemd-shared.la
1911 test_locale_util_SOURCES = \
1912 src/test/test-locale-util.c
1914 test_locale_util_LDADD = \
1915 libsystemd-shared.la
1917 test_copy_SOURCES = \
1918 src/test/test-copy.c
1920 # Link statically to ensure file is large
1924 test_sigbus_SOURCES = \
1925 src/test/test-sigbus.c
1927 test_sigbus_LDADD = \
1928 libsystemd-shared.la
1930 test_condition_SOURCES = \
1931 src/test/test-condition.c
1933 test_condition_LDADD = \
1934 libsystemd-shared.la
1936 test_fdset_SOURCES = \
1937 src/test/test-fdset.c
1939 test_fdset_LDADD = \
1940 libsystemd-shared.la
1942 test_fstab_util_SOURCES = \
1943 src/test/test-fstab-util.c
1945 test_fstab_util_LDADD = \
1946 libsystemd-shared.la
1948 test_ratelimit_SOURCES = \
1949 src/test/test-ratelimit.c
1951 test_ratelimit_LDADD = \
1952 libsystemd-shared.la
1954 test_util_SOURCES = \
1955 src/test/test-util.c
1958 libsystemd-shared.la
1960 test_mount_util_SOURCES = \
1961 src/test/test-mount-util.c
1963 test_mount_util_LDADD = \
1964 libsystemd-shared.la
1966 test_exec_util_SOURCES = \
1967 src/test/test-exec-util.c
1969 test_exec_util_LDADD = \
1970 libsystemd-shared.la
1972 test_hexdecoct_SOURCES = \
1973 src/test/test-hexdecoct.c
1975 test_hexdecoct_LDADD = \
1976 libsystemd-shared.la
1978 test_alloc_util_SOURCES = \
1979 src/test/test-alloc-util.c
1981 test_alloc_util_LDADD = \
1982 libsystemd-shared.la
1984 test_xattr_util_SOURCES = \
1985 src/test/test-xattr-util.c
1987 test_xattr_util_LDADD = \
1988 libsystemd-shared.la
1990 test_io_util_SOURCES = \
1991 src/test/test-io-util.c
1993 test_io_util_LDADD = \
1994 libsystemd-shared.la
1996 test_glob_util_SOURCES = \
1997 src/test/test-glob-util.c
1999 test_glob_util_LDADD = \
2000 libsystemd-shared.la
2002 test_fs_util_SOURCES = \
2003 src/test/test-fs-util.c
2005 test_fs_util_LDADD = \
2006 libsystemd-shared.la
2008 test_proc_cmdline_SOURCES = \
2009 src/test/test-proc-cmdline.c
2011 test_proc_cmdline_LDADD = \
2012 libsystemd-shared.la
2014 test_fd_util_SOURCES = \
2015 src/test/test-fd-util.c
2017 test_fd_util_LDADD = \
2018 libsystemd-shared.la
2020 test_web_util_SOURCES = \
2021 src/test/test-web-util.c
2023 test_web_util_LDADD = \
2024 libsystemd-shared.la
2026 test_cpu_set_util_SOURCES = \
2027 src/test/test-cpu-set-util.c
2029 test_cpu_set_util_LDADD = \
2030 libsystemd-shared.la
2032 test_stat_util_SOURCES = \
2033 src/test/test-stat-util.c
2035 test_stat_util_LDADD = \
2036 libsystemd-shared.la
2038 test_escape_SOURCES = \
2039 src/test/test-escape.c
2041 test_escape_LDADD = \
2042 libsystemd-shared.la
2044 test_string_util_SOURCES = \
2045 src/test/test-string-util.c
2047 test_string_util_LDADD = \
2048 libsystemd-shared.la
2050 test_extract_word_SOURCES = \
2051 src/test/test-extract-word.c
2053 test_extract_word_LDADD = \
2054 libsystemd-shared.la
2056 test_parse_util_SOURCES = \
2057 src/test/test-parse-util.c
2059 test_parse_util_LDADD = \
2060 libsystemd-shared.la
2062 test_user_util_SOURCES = \
2063 src/test/test-user-util.c
2065 test_user_util_LDADD = \
2066 libsystemd-shared.la
2068 test_hostname_util_SOURCES = \
2069 src/test/test-hostname-util.c
2071 test_hostname_util_LDADD = \
2072 libsystemd-shared.la
2074 test_process_util_SOURCES = \
2075 src/test/test-process-util.c
2077 test_process_util_LDADD = \
2078 libsystemd-shared.la
2080 test_terminal_util_SOURCES = \
2081 src/test/test-terminal-util.c
2083 test_terminal_util_LDADD = \
2084 libsystemd-shared.la
2086 test_path_lookup_SOURCES = \
2087 src/test/test-path-lookup.c
2089 test_path_lookup_LDADD = \
2090 libsystemd-shared.la
2092 test_uid_range_SOURCES = \
2093 src/test/test-uid-range.c
2095 test_uid_range_LDADD = \
2096 libsystemd-shared.la
2098 test_cap_list_SOURCES = \
2099 src/test/test-cap-list.c
2101 test_cap_list_CFLAGS = \
2105 test_cap_list_LDADD = \
2106 libsystemd-shared.la \
2109 test_socket_util_SOURCES = \
2110 src/test/test-socket-util.c
2112 test_socket_util_LDADD = \
2113 libsystemd-shared.la
2115 test_barrier_SOURCES = \
2116 src/test/test-barrier.c
2118 test_barrier_LDADD = \
2119 libsystemd-shared.la
2121 test_tmpfiles_SOURCES = \
2122 src/test/test-tmpfiles.c
2124 test_tmpfiles_LDADD = \
2125 libsystemd-shared.la
2127 test_namespace_SOURCES = \
2128 src/test/test-namespace.c
2130 test_verbs_SOURCES = \
2131 src/test/test-verbs.c
2133 test_verbs_LDADD = \
2134 libsystemd-shared.la
2136 test_install_root_SOURCES = \
2137 src/test/test-install-root.c
2139 test_install_root_LDADD = \
2140 libsystemd-shared.la
2142 test_acl_util_SOURCES = \
2143 src/test/test-acl-util.c
2145 test_acl_util_LDADD = \
2146 libsystemd-shared.la
2148 test_seccomp_SOURCES = \
2149 src/test/test-seccomp.c
2151 test_seccomp_CFLAGS = \
2155 test_seccomp_LDADD = \
2156 libsystemd-shared.la \
2159 test_namespace_LDADD = \
2162 test_rlimit_util_SOURCES = \
2163 src/test/test-rlimit-util.c
2165 test_rlimit_util_LDADD = \
2166 libsystemd-shared.la
2168 test_ask_password_api_SOURCES = \
2169 src/test/test-ask-password-api.c
2171 test_ask_password_api_LDADD = \
2172 libsystemd-shared.la
2174 test_dissect_image_SOURCES = \
2175 src/test/test-dissect-image.c
2177 test_dissect_image_CFLAGS = \
2181 test_dissect_image_LDADD = \
2182 libsystemd-shared.la \
2185 test_signal_util_SOURCES = \
2186 src/test/test-signal-util.c
2188 test_signal_util_LDADD = \
2189 libsystemd-shared.la
2191 test_selinux_SOURCES = \
2192 src/test/test-selinux.c
2194 test_selinux_LDADD = \
2195 libsystemd-shared.la
2197 test_sizeof_SOURCES = \
2198 src/test/test-sizeof.c
2201 src/test/test-hashmap-ordered.c
2203 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
2204 $(AM_V_at)$(MKDIR_P) $(dir $@)
2205 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
2206 { if (!match($$0, "^#include")) \
2207 gsub(/hashmap/, "ordered_hashmap"); \
2208 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
2209 gsub(/Hashmap/, "OrderedHashmap"); \
2212 nodist_test_hashmap_SOURCES = \
2213 src/test/test-hashmap-ordered.c
2215 test_hashmap_SOURCES = \
2216 src/test/test-hashmap.c \
2217 src/test/test-hashmap-plain.c
2219 test_hashmap_LDADD = \
2220 libsystemd-shared.la
2222 test_set_SOURCES = \
2226 libsystemd-shared.la
2228 test_bitmap_SOURCES = \
2229 src/test/test-bitmap.c
2231 test_bitmap_LDADD = \
2232 libsystemd-shared.la
2234 test_xml_SOURCES = \
2238 libsystemd-shared.la
2240 test_list_SOURCES = \
2241 src/test/test-list.c
2244 libsystemd-shared.la
2246 test_unaligned_LDADD = \
2247 libsystemd-shared.la
2249 test_unaligned_SOURCES = \
2250 src/test/test-unaligned.c
2252 test_tables_SOURCES = \
2253 src/test/test-tables.c \
2254 src/shared/test-tables.h \
2255 src/journal/journald-server.c \
2256 src/journal/journald-server.h
2258 test_tables_CPPFLAGS = \
2261 test_tables_CFLAGS = \
2266 test_tables_LDADD = \
2267 libjournal-core.la \
2271 test_prioq_SOURCES = \
2272 src/test/test-prioq.c
2274 test_prioq_LDADD = \
2275 libsystemd-shared.la
2277 test_fileio_SOURCES = \
2278 src/test/test-fileio.c
2280 test_fileio_LDADD = \
2281 libsystemd-shared.la
2283 test_time_SOURCES = \
2284 src/test/test-time.c
2287 libsystemd-shared.la
2289 test_clock_SOURCES = \
2290 src/test/test-clock.c
2292 test_clock_LDADD = \
2293 libsystemd-shared.la
2295 test_architecture_SOURCES = \
2296 src/test/test-architecture.c
2298 test_architecture_LDADD = \
2299 libsystemd-shared.la
2301 test_log_SOURCES = \
2305 libsystemd-shared.la
2307 test_ipcrm_SOURCES = \
2308 src/test/test-ipcrm.c
2310 test_ipcrm_LDADD = \
2311 libsystemd-shared.la
2313 test_btrfs_SOURCES = \
2314 src/test/test-btrfs.c
2316 test_btrfs_LDADD = \
2317 libsystemd-shared.la
2320 test_firewall_util_SOURCES = \
2321 src/test/test-firewall-util.c
2323 test_firewall_util_CFLAGS = \
2327 test_firewall_util_LDADD = \
2329 libsystemd-shared.la \
2333 test_netlink_manual_SOURCES = \
2334 src/test/test-netlink-manual.c
2336 test_netlink_manual_CFLAGS = \
2340 test_netlink_manual_LDADD = \
2341 libsystemd-shared.la \
2344 test_ellipsize_SOURCES = \
2345 src/test/test-ellipsize.c
2347 test_ellipsize_LDADD = \
2348 libsystemd-shared.la
2350 test_date_SOURCES = \
2351 src/test/test-date.c
2354 libsystemd-shared.la
2356 test_sleep_SOURCES = \
2357 src/test/test-sleep.c
2359 test_sleep_LDADD = \
2362 test_replace_var_SOURCES = \
2363 src/test/test-replace-var.c
2365 test_replace_var_LDADD = \
2366 libsystemd-shared.la
2368 test_calendarspec_SOURCES = \
2369 src/test/test-calendarspec.c
2371 test_calendarspec_LDADD = \
2372 libsystemd-shared.la
2374 test_strip_tab_ansi_SOURCES = \
2375 src/test/test-strip-tab-ansi.c
2377 test_strip_tab_ansi_LDADD = \
2378 libsystemd-shared.la
2380 test_daemon_SOURCES = \
2381 src/test/test-daemon.c
2383 test_daemon_LDADD = \
2384 libsystemd-shared.la
2386 test_cgroup_SOURCES = \
2387 src/test/test-cgroup.c
2389 test_cgroup_LDADD = \
2390 libsystemd-shared.la
2392 test_cgroup_mask_SOURCES = \
2393 src/test/test-cgroup-mask.c
2395 test_cgroup_mask_CPPFLAGS = \
2399 test_cgroup_mask_CFLAGS = \
2403 test_cgroup_mask_LDADD = \
2406 test_cgroup_util_SOURCES = \
2407 src/test/test-cgroup-util.c
2409 test_cgroup_util_LDADD = \
2410 libsystemd-shared.la
2412 test_env_util_SOURCES = \
2413 src/test/test-env-util.c
2415 test_env_util_LDADD = \
2416 libsystemd-shared.la
2418 test_strbuf_SOURCES = \
2419 src/test/test-strbuf.c
2421 test_strbuf_LDADD = \
2422 libsystemd-shared.la
2424 test_strv_SOURCES = \
2425 src/test/test-strv.c
2428 libsystemd-shared.la
2430 test_path_util_SOURCES = \
2431 src/test/test-path-util.c
2433 test_path_util_LDADD = \
2434 libsystemd-shared.la
2436 test_path_SOURCES = \
2437 src/test/test-path.c
2439 test_path_CFLAGS = \
2446 test_execute_SOURCES = \
2447 src/test/test-execute.c
2449 test_execute_CFLAGS = \
2454 test_execute_LDADD = \
2457 test_siphash24_SOURCES = \
2458 src/test/test-siphash24.c
2460 test_siphash24_LDADD = \
2461 libsystemd-shared.la
2463 test_strxcpyx_SOURCES = \
2464 src/test/test-strxcpyx.c
2466 test_strxcpyx_LDADD = \
2467 libsystemd-shared.la
2469 test_install_SOURCES = \
2470 src/test/test-install.c
2472 test_install_LDADD = \
2473 libsystemd-shared.la
2475 test_watchdog_SOURCES = \
2476 src/test/test-watchdog.c
2478 test_watchdog_LDADD = \
2479 libsystemd-shared.la
2481 test_sched_prio_SOURCES = \
2482 src/test/test-sched-prio.c
2484 test_sched_prio_CPPFLAGS = \
2488 test_sched_prio_CFLAGS = \
2492 test_sched_prio_LDADD = \
2495 test_conf_files_SOURCES = \
2496 src/test/test-conf-files.c
2498 test_conf_files_LDADD = \
2499 libsystemd-shared.la
2501 test_conf_parser_SOURCES = \
2502 src/test/test-conf-parser.c
2504 test_conf_parser_LDADD = \
2505 libsystemd-shared.la
2507 test_af_list_SOURCES = \
2508 src/test/test-af-list.c
2510 test_af_list_LDADD = \
2511 libsystemd-shared.la
2513 test_arphrd_list_SOURCES = \
2514 src/test/test-arphrd-list.c
2516 test_arphrd_list_LDADD = \
2517 libsystemd-shared.la
2519 test_journal_importer_SOURCES = \
2520 src/test/test-journal-importer.c
2522 test_journal_importer_LDADD = \
2523 libsystemd-shared.la
2525 TEST_DATA_FILES += \
2526 test/journal-data/journal-1.txt \
2527 test/journal-data/journal-2.txt
2529 # ------------------------------------------------------------------------------
2530 ## .PHONY so it always rebuilds it
2531 .PHONY: coverage lcov-run lcov-report coverage-sync
2533 # run lcov from scratch, always
2538 coverage_dir = coverage
2539 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2542 # reset run coverage tests
2544 @rm -rf $(coverage_dir)
2545 lcov $(coverage_opts) --zerocounters
2548 # generate report based on current coverage data
2550 $(MKDIR_P) $(coverage_dir)
2551 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2552 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2553 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2554 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2555 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2557 # lcov doesn't work properly with vpath builds, make sure that bad
2558 # output is not uploaded by mistake.
2559 coverage-sync: coverage
2560 test "$(builddir)" = "$(srcdir)"
2561 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2564 lcov-run lcov-report:
2565 echo "Need to reconfigure with --enable-coverage"
2568 # ------------------------------------------------------------------------------
2569 systemd_analyze_SOURCES = \
2570 src/analyze/analyze.c \
2571 src/analyze/analyze-verify.c \
2572 src/analyze/analyze-verify.h
2574 systemd_analyze_CFLAGS = \
2579 systemd_analyze_LDADD = \
2582 # ------------------------------------------------------------------------------
2583 systemd_initctl_SOURCES = \
2584 src/initctl/initctl.c
2586 systemd_initctl_LDADD = \
2587 libsystemd-shared.la
2589 # ------------------------------------------------------------------------------
2590 systemd_update_utmp_SOURCES = \
2591 src/update-utmp/update-utmp.c
2593 systemd_update_utmp_CFLAGS = \
2597 systemd_update_utmp_LDADD = \
2598 libsystemd-shared.la \
2601 # ------------------------------------------------------------------------------
2602 systemd_update_done_SOURCES = \
2603 src/update-done/update-done.c
2605 systemd_update_done_LDADD = \
2606 libsystemd-shared.la
2608 # ------------------------------------------------------------------------------
2609 systemd_shutdown_SOURCES = \
2612 src/core/shutdown.c \
2613 src/core/mount-setup.c \
2614 src/core/mount-setup.h \
2615 src/core/killall.h \
2618 systemd_shutdown_LDADD = \
2619 libsystemd-shared.la
2621 # ------------------------------------------------------------------------------
2623 systemd_modules_load_SOURCES = \
2624 src/modules-load/modules-load.c
2626 systemd_modules_load_CFLAGS = \
2630 systemd_modules_load_LDADD = \
2631 libsystemd-shared.la \
2634 rootlibexec_PROGRAMS += \
2635 systemd-modules-load
2637 nodist_systemunit_DATA += \
2638 units/systemd-modules-load.service
2640 SYSINIT_TARGET_WANTS += \
2641 systemd-modules-load.service
2644 nodist_systemunit_DATA += \
2645 units/kmod-static-nodes.service
2647 SYSINIT_TARGET_WANTS += \
2648 kmod-static-nodes.service
2653 units/systemd-modules-load.service.in \
2654 units/kmod-static-nodes.service.in
2656 # ------------------------------------------------------------------------------
2658 systemd_tmpfiles_SOURCES = \
2659 src/tmpfiles/tmpfiles.c
2661 systemd_tmpfiles_CFLAGS = \
2665 systemd_tmpfiles_LDADD = \
2666 libsystemd-shared.la \
2669 rootbin_PROGRAMS += \
2672 dist_systemunit_DATA += \
2673 units/systemd-tmpfiles-clean.timer
2675 nodist_systemunit_DATA += \
2676 units/systemd-tmpfiles-setup-dev.service \
2677 units/systemd-tmpfiles-setup.service \
2678 units/systemd-tmpfiles-clean.service
2680 nodist_tmpfiles_DATA = \
2681 tmpfiles.d/systemd.conf \
2682 tmpfiles.d/var.conf \
2685 dist_tmpfiles_DATA = \
2686 tmpfiles.d/systemd-nologin.conf \
2687 tmpfiles.d/tmp.conf \
2688 tmpfiles.d/x11.conf \
2689 tmpfiles.d/home.conf \
2690 tmpfiles.d/systemd-nspawn.conf \
2691 tmpfiles.d/journal-nocow.conf
2694 dist_tmpfiles_DATA += \
2695 tmpfiles.d/legacy.conf
2699 nodist_tmpfiles_DATA += \
2700 tmpfiles.d/systemd-remote.conf
2703 SYSINIT_TARGET_WANTS += \
2704 systemd-tmpfiles-setup-dev.service \
2705 systemd-tmpfiles-setup.service
2707 dist_zshcompletion_data += \
2708 shell-completion/zsh/_systemd-tmpfiles
2710 TIMERS_TARGET_WANTS += \
2711 systemd-tmpfiles-clean.timer
2715 $(sysconfdir)/tmpfiles.d
2719 tmpfiles.d/systemd.conf.m4 \
2720 tmpfiles.d/systemd-remote.conf.m4 \
2721 tmpfiles.d/etc.conf.m4 \
2722 tmpfiles.d/var.conf.m4 \
2723 units/systemd-tmpfiles-setup-dev.service.in \
2724 units/systemd-tmpfiles-setup.service.in \
2725 units/systemd-tmpfiles-clean.service.in
2727 # ------------------------------------------------------------------------------
2729 systemd_sysusers_SOURCES = \
2730 src/sysusers/sysusers.c
2732 systemd_sysusers_LDADD = \
2733 libsystemd-shared.la
2735 rootbin_PROGRAMS += \
2738 nodist_systemunit_DATA += \
2739 units/systemd-sysusers.service
2741 SYSINIT_TARGET_WANTS += \
2742 systemd-sysusers.service
2744 nodist_sysusers_DATA = \
2745 sysusers.d/systemd.conf \
2746 sysusers.d/basic.conf
2749 nodist_sysusers_DATA += \
2750 sysusers.d/systemd-remote.conf
2758 units/systemd-sysusers.service.in \
2759 sysusers.d/systemd.conf.m4 \
2760 sysusers.d/systemd-remote.conf.m4 \
2761 sysusers.d/basic.conf.in
2763 # ------------------------------------------------------------------------------
2764 dist_factory_etc_DATA = \
2765 factory/etc/nsswitch.conf
2768 dist_factory_pam_DATA = \
2769 factory/etc/pam.d/system-auth \
2770 factory/etc/pam.d/other
2773 # ------------------------------------------------------------------------------
2775 systemd_firstboot_SOURCES = \
2776 src/firstboot/firstboot.c
2778 systemd_firstboot_LDADD = \
2779 libsystemd-shared.la \
2782 rootbin_PROGRAMS += \
2785 nodist_systemunit_DATA += \
2786 units/systemd-firstboot.service
2788 SYSINIT_TARGET_WANTS += \
2789 systemd-firstboot.service
2793 units/systemd-firstboot.service.in
2795 # ------------------------------------------------------------------------------
2796 systemd_machine_id_setup_SOURCES = \
2797 src/machine-id-setup/machine-id-setup-main.c \
2798 src/core/machine-id-setup.c \
2799 src/core/machine-id-setup.h
2801 systemd_machine_id_setup_LDADD = \
2802 libsystemd-shared.la
2804 SYSINIT_TARGET_WANTS += \
2805 systemd-machine-id-commit.service
2807 # ------------------------------------------------------------------------------
2808 systemd_sysctl_SOURCES = \
2811 systemd_sysctl_LDADD = \
2812 libsystemd-shared.la
2814 # ------------------------------------------------------------------------------
2815 systemd_sleep_SOURCES = \
2818 systemd_sleep_LDADD = \
2819 libsystemd-shared.la
2821 # ------------------------------------------------------------------------------
2822 systemd_fsck_SOURCES = \
2825 systemd_fsck_LDADD = \
2826 libsystemd-shared.la
2828 # ------------------------------------------------------------------------------
2829 systemd_ac_power_SOURCES = \
2830 src/ac-power/ac-power.c
2832 systemd_ac_power_LDADD = \
2833 libsystemd-shared.la
2835 # ------------------------------------------------------------------------------
2836 systemd_detect_virt_SOURCES = \
2837 src/detect-virt/detect-virt.c
2839 systemd_detect_virt_LDADD = \
2840 libsystemd-shared.la
2842 # ------------------------------------------------------------------------------
2843 systemd_delta_SOURCES = \
2846 systemd_delta_LDADD = \
2847 libsystemd-shared.la
2849 # ------------------------------------------------------------------------------
2850 systemd_getty_generator_SOURCES = \
2851 src/getty-generator/getty-generator.c
2853 systemd_getty_generator_LDADD = \
2854 libsystemd-shared.la
2856 # ------------------------------------------------------------------------------
2857 systemd_debug_generator_SOURCES = \
2858 src/debug-generator/debug-generator.c
2860 systemd_debug_generator_LDADD = \
2861 libsystemd-shared.la
2863 # ------------------------------------------------------------------------------
2864 systemd_fstab_generator_SOURCES = \
2865 src/fstab-generator/fstab-generator.c \
2866 src/core/mount-setup.c
2868 systemd_fstab_generator_LDADD = \
2869 libsystemd-shared.la
2871 # ------------------------------------------------------------------------------
2872 systemd_system_update_generator_SOURCES = \
2873 src/system-update-generator/system-update-generator.c
2875 systemd_system_update_generator_LDADD = \
2876 libsystemd-shared.la
2878 # ------------------------------------------------------------------------------
2879 30_systemd_environment_d_generator_SOURCES = \
2880 src/environment-d-generator/environment-d-generator.c
2882 30_systemd_environment_d_generator_LDADD = \
2883 libsystemd-shared.la
2885 # ------------------------------------------------------------------------------
2887 systemgenerator_PROGRAMS += \
2888 systemd-hibernate-resume-generator
2890 rootlibexec_PROGRAMS += \
2891 systemd-hibernate-resume
2893 systemd_hibernate_resume_SOURCES = \
2894 src/hibernate-resume/hibernate-resume.c
2896 systemd_hibernate_resume_LDADD = \
2897 libsystemd-shared.la
2899 systemd_hibernate_resume_generator_SOURCES = \
2900 src/hibernate-resume/hibernate-resume-generator.c
2902 systemd_hibernate_resume_generator_LDADD = \
2903 libsystemd-shared.la
2905 dist_systemunit_DATA += \
2906 units/hibernate.target \
2907 units/hybrid-sleep.target
2909 nodist_systemunit_DATA += \
2910 units/systemd-hibernate.service \
2911 units/systemd-hibernate-resume@.service \
2912 units/systemd-hybrid-sleep.service
2916 units/systemd-hibernate.service.in \
2917 units/systemd-hibernate-resume@.service.in \
2918 units/systemd-hybrid-sleep.service.in
2920 # ------------------------------------------------------------------------------
2926 bootctl_CPPFLAGS = \
2928 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2929 -DBOOTLIBDIR=\"$(bootlibdir)\"
2936 libsystemd-shared.la \
2942 dist_bashcompletion_data += \
2943 shell-completion/bash/bootctl
2945 dist_zshcompletion_data += \
2946 shell-completion/zsh/_bootctl
2949 # ------------------------------------------------------------------------------
2953 -I$(top_builddir) -include config.h \
2954 -I$(EFI_INC_DIR)/efi \
2955 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2956 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2969 -fno-strict-aliasing \
2970 -fno-stack-protector \
2972 -Wno-missing-field-initializers
2979 -DEFI_FUNCTION_WRAPPER \
2980 -DGNU_EFI_USE_MS_ABI
2991 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2997 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2999 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
3000 # and add required symbols manually.
3002 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
3003 EFI_FORMAT = -O binary
3006 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
3007 EFI_FORMAT = -O binary
3009 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
3015 # ------------------------------------------------------------------------------
3017 src/boot/efi/console.h \
3018 src/boot/efi/disk.h \
3019 src/boot/efi/graphics.h \
3020 src/boot/efi/linux.h \
3021 src/boot/efi/measure.h \
3022 src/boot/efi/pefile.h \
3023 src/boot/efi/splash.h \
3024 src/boot/efi/util.h \
3027 systemd_boot_sources = \
3028 src/boot/efi/boot.c \
3029 src/boot/efi/console.c \
3030 src/boot/efi/disk.c \
3031 src/boot/efi/graphics.c \
3032 src/boot/efi/measure.c \
3033 src/boot/efi/pefile.c \
3034 src/boot/efi/util.c \
3037 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
3039 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
3040 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
3041 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
3045 bootlib_DATA = $(systemd_boot)
3047 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(efi_headers))
3048 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
3049 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
3051 $(systemd_boot_solib): $(systemd_boot_objects)
3052 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
3053 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
3054 nm -D -u $@ | grep ' U ' && exit 1 || :
3056 $(systemd_boot): $(systemd_boot_solib)
3057 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
3058 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
3062 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
3064 # ------------------------------------------------------------------------------
3066 src/boot/efi/disk.c \
3067 src/boot/efi/graphics.c \
3068 src/boot/efi/linux.c \
3069 src/boot/efi/measure.c \
3070 src/boot/efi/pefile.c \
3071 src/boot/efi/splash.c \
3072 src/boot/efi/stub.c \
3080 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
3081 stub_solib = $(top_builddir)/src/boot/efi/stub.so
3082 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
3086 bootlib_DATA += $(stub)
3088 $(stub_solib): $(stub_objects)
3089 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
3090 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
3091 nm -D -u $@ | grep ' U ' && exit 1 || :
3093 $(stub): $(stub_solib)
3094 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
3095 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
3099 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
3102 # ------------------------------------------------------------------------------
3103 CLEANFILES += test-efi-disk.img
3105 test-efi-disk.img: $(systemd_boot) $(stub) test/splash.bmp test/test-efi-create-disk.sh
3106 $(AM_V_GEN)test/test-efi-create-disk.sh $@ $(systemd_boot) $(stub) test/splash.bmp
3108 test-efi: test-efi-disk.img
3109 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
3111 EXTRA_DIST += test/test-efi-create-disk.sh
3113 # ------------------------------------------------------------------------------
3115 systemgenerator_PROGRAMS += \
3116 systemd-gpt-auto-generator
3118 systemd_gpt_auto_generator_SOURCES = \
3119 src/gpt-auto-generator/gpt-auto-generator.c \
3120 src/basic/blkid-util.h
3122 systemd_gpt_auto_generator_LDADD = \
3123 libsystemd-shared.la \
3126 systemd_gpt_auto_generator_CFLAGS = \
3131 # ------------------------------------------------------------------------------
3132 dist_xinitrc_SCRIPTS = \
3133 xorg/50-systemd-user.sh
3135 # ------------------------------------------------------------------------------
3136 systemd_sysv_generator_SOURCES = \
3137 src/sysv-generator/sysv-generator.c
3139 systemd_sysv_generator_LDADD = \
3142 # ------------------------------------------------------------------------------
3143 systemd_rc_local_generator_SOURCES = \
3144 src/rc-local-generator/rc-local-generator.c
3146 systemd_rc_local_generator_LDADD = \
3147 libsystemd-shared.la
3149 # ------------------------------------------------------------------------------
3150 systemd_remount_fs_SOURCES = \
3151 src/remount-fs/remount-fs.c \
3152 src/core/mount-setup.c \
3153 src/core/mount-setup.h
3155 systemd_remount_fs_LDADD = \
3156 libsystemd-shared.la
3158 # ------------------------------------------------------------------------------
3159 systemd_volatile_root_SOURCES = \
3160 src/volatile-root/volatile-root.c
3162 systemd_volatile_root_LDADD = \
3163 libsystemd-shared.la
3165 # ------------------------------------------------------------------------------
3166 systemd_cgroups_agent_SOURCES = \
3167 src/cgroups-agent/cgroups-agent.c
3169 systemd_cgroups_agent_LDADD = \
3170 libsystemd-shared.la
3172 # ------------------------------------------------------------------------------
3173 systemd_escape_SOURCES = \
3176 systemd_escape_LDADD = \
3177 libsystemd-shared.la
3179 # -----------------------------------------------------------------------------
3180 systemctl_SOURCES = \
3181 src/systemctl/systemctl.c
3184 libsystemd-shared.la
3186 # ------------------------------------------------------------------------------
3187 systemd_notify_SOURCES = \
3190 systemd_notify_LDADD = \
3191 libsystemd-shared.la
3193 # ------------------------------------------------------------------------------
3194 systemd_dissect_SOURCES = \
3195 src/dissect/dissect.c
3197 systemd_dissect_LDADD = \
3198 libsystemd-shared.la
3200 # ------------------------------------------------------------------------------
3201 systemd_path_SOURCES = \
3204 systemd_path_LDADD = \
3205 libsystemd-shared.la
3207 # ------------------------------------------------------------------------------
3208 systemd_ask_password_SOURCES = \
3209 src/ask-password/ask-password.c
3211 systemd_ask_password_LDADD = \
3212 libsystemd-shared.la
3214 # ------------------------------------------------------------------------------
3215 systemd_reply_password_SOURCES = \
3216 src/reply-password/reply-password.c
3218 systemd_reply_password_LDADD = \
3219 libsystemd-shared.la
3221 # ------------------------------------------------------------------------------
3222 systemd_cgls_SOURCES = \
3225 systemd_cgls_LDADD = \
3226 libsystemd-shared.la
3228 # ------------------------------------------------------------------------------
3229 systemd_cgtop_SOURCES = \
3232 systemd_cgtop_LDADD = \
3233 libsystemd-shared.la
3235 # ------------------------------------------------------------------------------
3236 systemd_nspawn_SOURCES = \
3237 src/nspawn/nspawn.c \
3238 src/nspawn/nspawn-settings.c \
3239 src/nspawn/nspawn-settings.h \
3240 src/nspawn/nspawn-mount.c \
3241 src/nspawn/nspawn-mount.h \
3242 src/nspawn/nspawn-network.c \
3243 src/nspawn/nspawn-network.h \
3244 src/nspawn/nspawn-expose-ports.c \
3245 src/nspawn/nspawn-expose-ports.h \
3246 src/nspawn/nspawn-cgroup.c \
3247 src/nspawn/nspawn-cgroup.h \
3248 src/nspawn/nspawn-seccomp.c \
3249 src/nspawn/nspawn-seccomp.h \
3250 src/nspawn/nspawn-register.c \
3251 src/nspawn/nspawn-register.h \
3252 src/nspawn/nspawn-setuid.c \
3253 src/nspawn/nspawn-setuid.h \
3254 src/nspawn/nspawn-stub-pid1.c \
3255 src/nspawn/nspawn-stub-pid1.h \
3256 src/nspawn/nspawn-patch-uid.c \
3257 src/nspawn/nspawn-patch-uid.h \
3258 src/core/mount-setup.c \
3259 src/core/mount-setup.h \
3260 src/core/loopback-setup.c \
3261 src/core/loopback-setup.h
3263 nodist_systemd_nspawn_SOURCES = \
3264 src/nspawn/nspawn-gperf.c
3266 gperf_gperf_sources += \
3267 src/nspawn/nspawn-gperf.gperf
3269 systemd_nspawn_CFLAGS = \
3276 systemd_nspawn_LDADD = \
3277 libsystemd-shared.la \
3284 systemd_nspawn_LDADD += \
3288 test_patch_uid_SOURCES = \
3289 src/nspawn/nspawn-patch-uid.c \
3290 src/nspawn/nspawn-patch-uid.h \
3291 src/nspawn/test-patch-uid.c
3293 test_patch_uid_CFLAGS = \
3297 test_patch_uid_LDADD = \
3298 libsystemd-shared.la \
3304 # ------------------------------------------------------------------------------
3305 systemd_run_SOURCES = \
3308 systemd_run_LDADD = \
3309 libsystemd-shared.la
3311 # ------------------------------------------------------------------------------
3312 systemd_mount_SOURCES = \
3313 src/mount/mount-tool.c
3315 systemd_mount_LDADD = \
3316 libsystemd-shared.la
3318 # ------------------------------------------------------------------------------
3319 systemd_stdio_bridge_SOURCES = \
3320 src/stdio-bridge/stdio-bridge.c
3322 systemd_stdio_bridge_LDADD = \
3323 libsystemd-shared.la
3325 # ------------------------------------------------------------------------------
3326 systemd_tty_ask_password_agent_SOURCES = \
3327 src/tty-ask-password-agent/tty-ask-password-agent.c
3329 systemd_tty_ask_password_agent_LDADD = \
3330 libsystemd-shared.la
3332 # ------------------------------------------------------------------------------
3333 libsystemd_internal_la_SOURCES = \
3334 src/systemd/sd-bus.h \
3335 src/systemd/sd-bus-protocol.h \
3336 src/systemd/sd-bus-vtable.h \
3337 src/systemd/sd-utf8.h \
3338 src/systemd/sd-event.h \
3339 src/systemd/sd-netlink.h \
3340 src/systemd/sd-resolve.h \
3341 src/systemd/sd-login.h \
3342 src/systemd/sd-id128.h \
3343 src/systemd/sd-daemon.h \
3344 src/systemd/sd-path.h \
3345 src/systemd/sd-network.h \
3346 src/systemd/sd-hwdb.h \
3347 src/systemd/sd-device.h \
3348 src/libsystemd/libsystemd.sym \
3349 src/libsystemd/sd-bus/sd-bus.c \
3350 src/libsystemd/sd-bus/bus-control.c \
3351 src/libsystemd/sd-bus/bus-control.h \
3352 src/libsystemd/sd-bus/bus-error.c \
3353 src/libsystemd/sd-bus/bus-error.h \
3354 src/libsystemd/sd-bus/bus-common-errors.h \
3355 src/libsystemd/sd-bus/bus-common-errors.c \
3356 src/libsystemd/sd-bus/bus-internal.c \
3357 src/libsystemd/sd-bus/bus-internal.h \
3358 src/libsystemd/sd-bus/bus-socket.c \
3359 src/libsystemd/sd-bus/bus-socket.h \
3360 src/libsystemd/sd-bus/bus-kernel.c \
3361 src/libsystemd/sd-bus/bus-kernel.h \
3362 src/libsystemd/sd-bus/bus-container.c \
3363 src/libsystemd/sd-bus/bus-container.h \
3364 src/libsystemd/sd-bus/bus-message.c \
3365 src/libsystemd/sd-bus/bus-message.h \
3366 src/libsystemd/sd-bus/bus-creds.c \
3367 src/libsystemd/sd-bus/bus-creds.h \
3368 src/libsystemd/sd-bus/bus-signature.c \
3369 src/libsystemd/sd-bus/bus-signature.h \
3370 src/libsystemd/sd-bus/bus-type.c \
3371 src/libsystemd/sd-bus/bus-type.h \
3372 src/libsystemd/sd-bus/bus-match.c \
3373 src/libsystemd/sd-bus/bus-match.h \
3374 src/libsystemd/sd-bus/bus-bloom.c \
3375 src/libsystemd/sd-bus/bus-bloom.h \
3376 src/libsystemd/sd-bus/bus-introspect.c \
3377 src/libsystemd/sd-bus/bus-introspect.h \
3378 src/libsystemd/sd-bus/bus-objects.c \
3379 src/libsystemd/sd-bus/bus-objects.h \
3380 src/libsystemd/sd-bus/bus-gvariant.c \
3381 src/libsystemd/sd-bus/bus-gvariant.h \
3382 src/libsystemd/sd-bus/bus-convenience.c \
3383 src/libsystemd/sd-bus/bus-track.c \
3384 src/libsystemd/sd-bus/bus-track.h \
3385 src/libsystemd/sd-bus/bus-slot.c \
3386 src/libsystemd/sd-bus/bus-slot.h \
3387 src/libsystemd/sd-bus/bus-protocol.h \
3388 src/libsystemd/sd-bus/kdbus.h \
3389 src/libsystemd/sd-bus/bus-dump.c \
3390 src/libsystemd/sd-bus/bus-dump.h \
3391 src/libsystemd/sd-utf8/sd-utf8.c \
3392 src/libsystemd/sd-event/sd-event.c \
3393 src/libsystemd/sd-netlink/sd-netlink.c \
3394 src/libsystemd/sd-netlink/netlink-internal.h \
3395 src/libsystemd/sd-netlink/netlink-message.c \
3396 src/libsystemd/sd-netlink/netlink-socket.c \
3397 src/libsystemd/sd-netlink/rtnl-message.c \
3398 src/libsystemd/sd-netlink/netlink-types.h \
3399 src/libsystemd/sd-netlink/netlink-types.c \
3400 src/libsystemd/sd-netlink/netlink-util.h \
3401 src/libsystemd/sd-netlink/netlink-util.c \
3402 src/libsystemd/sd-netlink/local-addresses.h \
3403 src/libsystemd/sd-netlink/local-addresses.c \
3404 src/libsystemd/sd-id128/sd-id128.c \
3405 src/libsystemd/sd-id128/id128-util.h \
3406 src/libsystemd/sd-id128/id128-util.c \
3407 src/libsystemd/sd-daemon/sd-daemon.c \
3408 src/libsystemd/sd-login/sd-login.c \
3409 src/libsystemd/sd-path/sd-path.c \
3410 src/libsystemd/sd-network/sd-network.c \
3411 src/libsystemd/sd-network/network-util.h \
3412 src/libsystemd/sd-network/network-util.c \
3413 src/libsystemd/sd-hwdb/sd-hwdb.c \
3414 src/libsystemd/sd-hwdb/hwdb-util.h \
3415 src/libsystemd/sd-hwdb/hwdb-internal.h \
3416 src/libsystemd/sd-device/device-internal.h \
3417 src/libsystemd/sd-device/device-util.h \
3418 src/libsystemd/sd-device/device-enumerator.c \
3419 src/libsystemd/sd-device/device-enumerator-private.h \
3420 src/libsystemd/sd-device/sd-device.c \
3421 src/libsystemd/sd-device/device-private.c \
3422 src/libsystemd/sd-device/device-private.h \
3423 src/libsystemd/sd-resolve/sd-resolve.c
3425 libsystemd_internal_la_LIBADD = \
3428 noinst_LTLIBRARIES += \
3429 libsystemd-internal.la
3432 src/libsystemd/libsystemd.pc.in \
3433 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3435 libsystemd_la_SOURCES =
3437 libsystemd_la_LDFLAGS = \
3439 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3440 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3442 libsystemd_la_LIBADD = \
3443 libsystemd-internal.la \
3445 libsystemd-journal-internal.la
3447 pkgconfiglib_DATA += \
3448 src/libsystemd/libsystemd.pc
3450 pkginclude_HEADERS += \
3451 src/systemd/sd-bus.h \
3452 src/systemd/sd-bus-protocol.h \
3453 src/systemd/sd-bus-vtable.h \
3454 src/systemd/sd-event.h \
3455 src/systemd/sd-login.h \
3456 src/systemd/sd-id128.h \
3457 src/systemd/sd-daemon.h
3459 rootlib_LTLIBRARIES += \
3464 test-bus-signature \
3465 test-bus-benchmark \
3471 test-bus-kernel-bloom \
3472 test-bus-zero-copy \
3473 test-bus-introspect \
3482 test-local-addresses \
3488 test_bus_marshal_SOURCES = \
3489 src/libsystemd/sd-bus/test-bus-marshal.c
3491 test_bus_marshal_LDADD = \
3492 libsystemd-shared.la \
3496 test_bus_marshal_CFLAGS = \
3501 test_bus_signature_SOURCES = \
3502 src/libsystemd/sd-bus/test-bus-signature.c
3504 test_bus_signature_LDADD = \
3505 libsystemd-shared.la
3507 test_bus_chat_SOURCES = \
3508 src/libsystemd/sd-bus/test-bus-chat.c
3510 test_bus_chat_LDADD = \
3511 libsystemd-shared.la
3513 test_bus_cleanup_SOURCES = \
3514 src/libsystemd/sd-bus/test-bus-cleanup.c
3516 test_bus_cleanup_CFLAGS = \
3520 test_bus_cleanup_LDADD = \
3521 libsystemd-shared.la
3523 test_bus_track_SOURCES = \
3524 src/libsystemd/sd-bus/test-bus-track.c
3526 test_bus_track_CFLAGS = \
3530 test_bus_track_LDADD = \
3531 libsystemd-shared.la
3533 test_bus_server_SOURCES = \
3534 src/libsystemd/sd-bus/test-bus-server.c
3536 test_bus_server_LDADD = \
3537 libsystemd-shared.la
3539 test_bus_objects_SOURCES = \
3540 src/libsystemd/sd-bus/test-bus-objects.c
3542 test_bus_objects_LDADD = \
3543 libsystemd-shared.la
3545 test_bus_vtable_SOURCES = \
3546 src/libsystemd/sd-bus/test-bus-vtable.c
3548 test_bus_vtable_LDADD = \
3549 libsystemd-shared.la
3551 test_bus_error_SOURCES = \
3552 src/libsystemd/sd-bus/test-bus-error.c
3554 # Link statically because this test uses BUS_ERROR_MAP_ELF_REGISTER
3555 test_bus_error_LDADD = \
3558 test_bus_gvariant_SOURCES = \
3559 src/libsystemd/sd-bus/test-bus-gvariant.c
3561 test_bus_gvariant_LDADD = \
3562 libsystemd-shared.la \
3565 test_bus_gvariant_CFLAGS = \
3569 test_bus_creds_SOURCES = \
3570 src/libsystemd/sd-bus/test-bus-creds.c
3572 test_bus_creds_LDADD = \
3573 libsystemd-shared.la
3575 test_bus_match_SOURCES = \
3576 src/libsystemd/sd-bus/test-bus-match.c
3578 test_bus_match_LDADD = \
3579 libsystemd-shared.la
3581 test_bus_kernel_SOURCES = \
3582 src/libsystemd/sd-bus/test-bus-kernel.c
3584 test_bus_kernel_LDADD = \
3585 libsystemd-shared.la
3587 test_bus_kernel_bloom_SOURCES = \
3588 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3590 test_bus_kernel_bloom_LDADD = \
3591 libsystemd-shared.la
3593 test_bus_benchmark_SOURCES = \
3594 src/libsystemd/sd-bus/test-bus-benchmark.c
3596 test_bus_benchmark_LDADD = \
3597 libsystemd-shared.la
3599 test_bus_zero_copy_SOURCES = \
3600 src/libsystemd/sd-bus/test-bus-zero-copy.c
3602 test_bus_zero_copy_LDADD = \
3603 libsystemd-shared.la
3605 test_bus_introspect_SOURCES = \
3606 src/libsystemd/sd-bus/test-bus-introspect.c
3608 test_bus_introspect_LDADD = \
3609 libsystemd-shared.la
3611 test_event_SOURCES = \
3612 src/libsystemd/sd-event/test-event.c
3614 test_event_LDADD = \
3615 libsystemd-shared.la
3617 test_netlink_SOURCES = \
3618 src/libsystemd/sd-netlink/test-netlink.c
3620 test_netlink_LDADD = \
3621 libsystemd-shared.la
3623 test_local_addresses_SOURCES = \
3624 src/libsystemd/sd-netlink/test-local-addresses.c
3626 test_local_addresses_LDADD = \
3627 libsystemd-shared.la
3629 test_resolve_SOURCES = \
3630 src/libsystemd/sd-resolve/test-resolve.c
3632 test_resolve_LDADD = \
3633 libsystemd-shared.la
3636 src/busctl/busctl.c \
3637 src/busctl/busctl-introspect.c \
3638 src/busctl/busctl-introspect.h
3641 libsystemd-shared.la
3643 # ------------------------------------------------------------------------------
3644 noinst_LTLIBRARIES += \
3645 libsystemd-network.la
3647 libsystemd_network_la_CFLAGS = \
3651 libsystemd_network_la_SOURCES = \
3652 src/systemd/sd-dhcp-client.h \
3653 src/systemd/sd-dhcp-server.h \
3654 src/systemd/sd-dhcp-lease.h \
3655 src/systemd/sd-ipv4ll.h \
3656 src/systemd/sd-ipv4acd.h \
3657 src/systemd/sd-ndisc.h \
3658 src/systemd/sd-radv.h \
3659 src/systemd/sd-dhcp6-client.h \
3660 src/systemd/sd-dhcp6-lease.h \
3661 src/systemd/sd-lldp.h \
3662 src/libsystemd-network/sd-dhcp-client.c \
3663 src/libsystemd-network/sd-dhcp-server.c \
3664 src/libsystemd-network/dhcp-network.c \
3665 src/libsystemd-network/dhcp-option.c \
3666 src/libsystemd-network/dhcp-packet.c \
3667 src/libsystemd-network/dhcp-internal.h \
3668 src/libsystemd-network/dhcp-server-internal.h \
3669 src/libsystemd-network/dhcp-protocol.h \
3670 src/libsystemd-network/dhcp-lease-internal.h \
3671 src/libsystemd-network/sd-dhcp-lease.c \
3672 src/libsystemd-network/sd-ipv4ll.c \
3673 src/libsystemd-network/sd-ipv4acd.c \
3674 src/libsystemd-network/arp-util.h \
3675 src/libsystemd-network/arp-util.c \
3676 src/libsystemd-network/network-internal.c \
3677 src/libsystemd-network/network-internal.h \
3678 src/libsystemd-network/sd-ndisc.c \
3679 src/libsystemd-network/ndisc-internal.h \
3680 src/libsystemd-network/ndisc-router.h \
3681 src/libsystemd-network/ndisc-router.c \
3682 src/libsystemd-network/sd-radv.c \
3683 src/libsystemd-network/radv-internal.h \
3684 src/libsystemd-network/icmp6-util.h \
3685 src/libsystemd-network/icmp6-util.c \
3686 src/libsystemd-network/sd-dhcp6-client.c \
3687 src/libsystemd-network/dhcp6-internal.h \
3688 src/libsystemd-network/dhcp6-protocol.h \
3689 src/libsystemd-network/dhcp6-network.c \
3690 src/libsystemd-network/dhcp6-option.c \
3691 src/libsystemd-network/dhcp6-lease-internal.h \
3692 src/libsystemd-network/sd-dhcp6-lease.c \
3693 src/libsystemd-network/dhcp-identifier.h \
3694 src/libsystemd-network/dhcp-identifier.c \
3695 src/libsystemd-network/lldp-internal.h \
3696 src/libsystemd-network/lldp-network.h \
3697 src/libsystemd-network/lldp-network.c \
3698 src/libsystemd-network/lldp-neighbor.h \
3699 src/libsystemd-network/lldp-neighbor.c \
3700 src/libsystemd-network/sd-lldp.c
3702 libsystemd_network_la_LIBADD = \
3705 test_dhcp_option_SOURCES = \
3706 src/libsystemd-network/dhcp-protocol.h \
3707 src/libsystemd-network/dhcp-internal.h \
3708 src/libsystemd-network/test-dhcp-option.c
3710 test_dhcp_option_LDADD = \
3711 libsystemd-network.la \
3712 libsystemd-shared.la
3714 test_sd_dhcp_lease_SOURCES = \
3715 src/libsystemd-network/dhcp-lease-internal.h \
3716 src/libsystemd-network/test-sd-dhcp-lease.c
3718 test_sd_dhcp_lease_LDADD = \
3719 libsystemd-network.la \
3720 libsystemd-shared.la
3722 test_dhcp_client_SOURCES = \
3723 src/systemd/sd-dhcp-client.h \
3724 src/libsystemd-network/dhcp-protocol.h \
3725 src/libsystemd-network/dhcp-internal.h \
3726 src/libsystemd-network/test-dhcp-client.c
3728 test_dhcp_client_LDADD = \
3729 libsystemd-network.la \
3730 libsystemd-shared.la
3732 test_dhcp_server_SOURCES = \
3733 src/libsystemd-network/test-dhcp-server.c
3735 test_dhcp_server_LDADD = \
3736 libsystemd-network.la \
3737 libsystemd-shared.la
3739 test_ipv4ll_SOURCES = \
3740 src/systemd/sd-ipv4ll.h \
3741 src/libsystemd-network/arp-util.h \
3742 src/libsystemd-network/test-ipv4ll.c
3744 test_ipv4ll_LDADD = \
3745 libsystemd-network.la \
3746 libsystemd-shared.la
3748 test_ipv4ll_manual_SOURCES = \
3749 src/systemd/sd-ipv4ll.h \
3750 src/libsystemd-network/test-ipv4ll-manual.c
3752 test_ipv4ll_manual_LDADD = \
3753 libsystemd-network.la \
3754 libsystemd-shared.la
3756 test_acd_SOURCES = \
3757 src/systemd/sd-ipv4acd.h \
3758 src/libsystemd-network/test-acd.c
3761 libsystemd-network.la \
3762 libsystemd-shared.la
3764 test_ndisc_rs_SOURCES = \
3765 src/systemd/sd-dhcp6-client.h \
3766 src/systemd/sd-ndisc.h \
3767 src/libsystemd-network/icmp6-util.h \
3768 src/libsystemd-network/test-ndisc-rs.c \
3769 src/libsystemd-network/dhcp-identifier.h \
3770 src/libsystemd-network/dhcp-identifier.c
3772 test_ndisc_rs_LDADD = \
3773 libsystemd-network.la \
3775 libsystemd-shared.la
3777 test_ndisc_ra_SOURCES = \
3778 src/systemd/sd-ndisc.h \
3779 src/libsystemd-network/icmp6-util.h \
3780 src/libsystemd-network/test-ndisc-ra.c
3782 test_ndisc_ra_LDADD = \
3783 libsystemd-network.la \
3785 libsystemd-shared.la
3787 test_dhcp6_client_SOURCES = \
3788 src/systemd/sd-dhcp6-client.h \
3789 src/libsystemd-network/dhcp6-internal.h \
3790 src/libsystemd-network/test-dhcp6-client.c \
3791 src/libsystemd-network/dhcp-identifier.h \
3792 src/libsystemd-network/dhcp-identifier.c
3794 test_dhcp6_client_LDADD = \
3795 libsystemd-network.la \
3797 libsystemd-shared.la
3799 test_lldp_SOURCES = \
3800 src/libsystemd-network/test-lldp.c
3803 libsystemd-network.la \
3804 libsystemd-shared.la
3810 test-sd-dhcp-lease \
3817 # ------------------------------------------------------------------------------
3818 include_HEADERS += \
3819 src/libudev/libudev.h
3821 rootlib_LTLIBRARIES += \
3824 libudev_la_SOURCES =\
3825 src/libudev/libudev.sym \
3826 src/libudev/libudev-private.h \
3827 src/libudev/libudev-device-internal.h \
3828 src/libudev/libudev.c \
3829 src/libudev/libudev-list.c \
3830 src/libudev/libudev-util.c \
3831 src/libudev/libudev-device.c \
3832 src/libudev/libudev-device-private.c \
3833 src/libudev/libudev-enumerate.c \
3834 src/libudev/libudev-monitor.c \
3835 src/libudev/libudev-queue.c \
3836 src/libudev/libudev-hwdb.c
3838 libudev_la_LDFLAGS = \
3840 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3841 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3843 libudev_la_LIBADD = \
3844 libsystemd-internal.la \
3847 pkgconfiglib_DATA += \
3848 src/libudev/libudev.pc
3851 src/libudev/libudev.pc.in
3853 # ------------------------------------------------------------------------------
3854 noinst_LTLIBRARIES += \
3857 libudev_internal_la_SOURCES =\
3858 $(libudev_la_SOURCES)
3860 # ------------------------------------------------------------------------------
3862 $(sysconfdir)/udev/rules.d
3864 dist_network_DATA = \
3865 network/99-default.link \
3866 network/80-container-host0.network \
3867 network/80-container-ve.network \
3868 network/80-container-vz.network
3870 dist_udevrules_DATA += \
3871 rules/60-block.rules \
3872 rules/60-drm.rules \
3873 rules/60-evdev.rules \
3874 rules/60-persistent-storage-tape.rules \
3875 rules/60-persistent-input.rules \
3876 rules/60-persistent-alsa.rules \
3877 rules/60-persistent-storage.rules \
3878 rules/60-sensor.rules \
3879 rules/60-serial.rules \
3880 rules/64-btrfs.rules \
3881 rules/70-mouse.rules \
3882 rules/70-touchpad.rules \
3883 rules/75-net-description.rules \
3884 rules/78-sound-card.rules \
3885 rules/80-net-setup-link.rules
3887 nodist_udevrules_DATA += \
3888 rules/50-udev-default.rules \
3889 rules/99-systemd.rules
3891 udevconfdir = $(sysconfdir)/udev
3892 dist_udevconf_DATA = \
3895 pkgconfigdata_DATA += \
3899 rules/50-udev-default.rules.in \
3900 rules/99-systemd.rules.in \
3904 units/systemd-udevd.service.in \
3905 units/systemd-udev-trigger.service.in \
3906 units/systemd-udev-settle.service.in
3908 SOCKETS_TARGET_WANTS += \
3909 systemd-udevd-control.socket \
3910 systemd-udevd-kernel.socket
3912 SYSINIT_TARGET_WANTS += \
3913 systemd-udevd.service \
3914 systemd-udev-trigger.service
3916 rootbin_PROGRAMS += \
3919 rootlibexec_PROGRAMS += \
3922 noinst_LTLIBRARIES += \
3925 src/udev/keyboard-keys-list.txt:
3926 $(AM_V_at)$(MKDIR_P) $(dir $@)
3927 $(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 } }' > $@
3929 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3930 $(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 }' < $< > $@
3932 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3933 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3935 gperf_txt_sources += \
3936 src/udev/keyboard-keys-list.txt
3938 libudev_core_la_SOURCES = \
3940 src/udev/udev-event.c \
3941 src/udev/udev-watch.c \
3942 src/udev/udev-node.c \
3943 src/udev/udev-rules.c \
3944 src/udev/udev-ctrl.c \
3945 src/udev/udev-builtin.c \
3946 src/udev/udev-builtin-btrfs.c \
3947 src/udev/udev-builtin-hwdb.c \
3948 src/udev/udev-builtin-input_id.c \
3949 src/udev/udev-builtin-keyboard.c \
3950 src/udev/udev-builtin-net_id.c \
3951 src/udev/udev-builtin-net_setup_link.c \
3952 src/udev/udev-builtin-path_id.c \
3953 src/udev/udev-builtin-usb_id.c \
3954 src/udev/net/link-config.h \
3955 src/udev/net/link-config.c \
3956 src/udev/net/ethtool-util.h \
3957 src/udev/net/ethtool-util.c
3959 nodist_libudev_core_la_SOURCES = \
3960 src/udev/keyboard-keys-from-name.h \
3961 src/udev/net/link-config-gperf.c
3963 gperf_gperf_sources += \
3964 src/udev/net/link-config-gperf.gperf
3966 libudev_core_la_CFLAGS = \
3970 -DLOG_REALM=LOG_REALM_UDEV
3972 libudev_core_la_LIBADD = \
3973 libsystemd-network.la \
3979 libudev_core_la_SOURCES += \
3980 src/udev/udev-builtin-kmod.c
3982 dist_udevrules_DATA += \
3983 rules/80-drivers.rules
3987 libudev_core_la_SOURCES += \
3988 src/udev/udev-builtin-blkid.c
3992 libudev_core_la_SOURCES += \
3993 src/udev/udev-builtin-uaccess.c \
3994 src/login/logind-acl.c \
3995 src/libsystemd/sd-login/sd-login.c \
3996 src/systemd/sd-login.h
3999 systemd_udevd_SOURCES = \
4002 systemd_udevd_CFLAGS = \
4004 -DLOG_REALM=LOG_REALM_UDEV
4006 systemd_udevd_LDADD = \
4011 src/udev/udevadm.c \
4012 src/udev/udevadm-info.c \
4013 src/udev/udevadm-control.c \
4014 src/udev/udevadm-monitor.c \
4015 src/udev/udevadm-hwdb.c \
4016 src/udev/udevadm-settle.c \
4017 src/udev/udevadm-trigger.c \
4018 src/udev/udevadm-test.c \
4019 src/udev/udevadm-test-builtin.c \
4020 src/udev/udevadm-util.c \
4021 src/udev/udevadm-util.h
4027 # ------------------------------------------------------------------------------
4030 $(sysconfdir)/udev/hwdb.d
4032 systemd_hwdb_SOURCES = \
4033 src/libsystemd/sd-hwdb/hwdb-internal.h \
4036 systemd_hwdb_LDADD = \
4039 rootbin_PROGRAMS += \
4042 dist_udevhwdb_DATA = \
4043 hwdb/20-pci-vendor-model.hwdb \
4044 hwdb/20-pci-classes.hwdb \
4045 hwdb/20-usb-vendor-model.hwdb \
4046 hwdb/20-usb-classes.hwdb \
4047 hwdb/20-sdio-vendor-model.hwdb \
4048 hwdb/20-sdio-classes.hwdb \
4049 hwdb/20-bluetooth-vendor-product.hwdb \
4050 hwdb/20-acpi-vendor.hwdb \
4052 hwdb/20-net-ifname.hwdb \
4053 hwdb/60-evdev.hwdb \
4054 hwdb/60-keyboard.hwdb \
4055 hwdb/60-sensor.hwdb \
4056 hwdb/70-mouse.hwdb \
4057 hwdb/70-pointingstick.hwdb \
4058 hwdb/70-touchpad.hwdb
4060 SYSINIT_TARGET_WANTS += \
4061 systemd-hwdb-update.service
4063 # Update hwdb on installation. Do not bother if installing
4064 # in DESTDIR, since this is likely for packaging purposes.
4066 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
4068 INSTALL_DATA_HOOKS += \
4072 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
4076 units/systemd-hwdb-update.service.in \
4077 hwdb/ids-update.pl \
4080 # ------------------------------------------------------------------------------
4088 test/rule-syntax-check.py \
4093 test/sysv-generator-test.py
4104 test_libudev_SOURCES = \
4105 src/test/test-libudev.c
4107 test_libudev_LDADD = \
4108 libsystemd-shared.la
4110 test_udev_SOURCES = \
4111 src/test/test-udev.c
4115 libsystemd-shared.la \
4126 test/sys: test/sys-script.py
4128 $(AM_V_at)$(MKDIR_P) $(dir $@)
4129 $(AM_V_GEN)$(top_srcdir)/test/sys-script.py $(dir $@)
4134 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
4137 test/sys-script.py \
4140 test/rule-syntax-check.py \
4141 test/sysv-generator-test.py \
4145 # ------------------------------------------------------------------------------
4147 src/udev/ata_id/ata_id.c
4151 -DLOG_REALM=LOG_REALM_UDEV
4156 udevlibexec_PROGRAMS += \
4159 # ------------------------------------------------------------------------------
4160 cdrom_id_SOURCES = \
4161 src/udev/cdrom_id/cdrom_id.c
4165 -DLOG_REALM=LOG_REALM_UDEV
4170 udevlibexec_PROGRAMS += \
4173 dist_udevrules_DATA += \
4174 rules/60-cdrom_id.rules
4176 # ------------------------------------------------------------------------------
4178 src/udev/collect/collect.c
4182 -DLOG_REALM=LOG_REALM_UDEV
4187 udevlibexec_PROGRAMS += \
4190 # ------------------------------------------------------------------------------
4192 src/udev/scsi_id/scsi_id.c \
4193 src/udev/scsi_id/scsi_serial.c \
4194 src/udev/scsi_id/scsi.h \
4195 src/udev/scsi_id/scsi_id.h
4199 -DLOG_REALM=LOG_REALM_UDEV
4204 udevlibexec_PROGRAMS += \
4208 src/udev/scsi_id/README
4210 # ------------------------------------------------------------------------------
4212 src/udev/v4l_id/v4l_id.c
4216 -DLOG_REALM=LOG_REALM_UDEV
4221 udevlibexec_PROGRAMS += \
4224 dist_udevrules_DATA += \
4225 rules/60-persistent-v4l.rules
4227 # ------------------------------------------------------------------------------
4228 mtd_probe_SOURCES = \
4229 src/udev/mtd_probe/mtd_probe.c \
4230 src/udev/mtd_probe/mtd_probe.h \
4231 src/udev/mtd_probe/probe_smartmedia.c
4233 mtd_probe_CFLAGS = \
4235 -DLOG_REALM=LOG_REALM_UDEV
4237 dist_udevrules_DATA += \
4238 rules/75-probe_mtd.rules
4240 udevlibexec_PROGRAMS += \
4243 # ------------------------------------------------------------------------------
4244 test_id128_SOURCES = \
4245 src/test/test-id128.c
4247 test_id128_LDADD = \
4248 libsystemd-shared.la
4253 # ------------------------------------------------------------------------------
4254 test_hash_SOURCES = \
4255 src/test/test-hash.c
4258 libsystemd-shared.la
4263 # ------------------------------------------------------------------------------
4266 systemd-socket-activate
4268 systemd_socket_activate_SOURCES = \
4269 src/activate/activate.c
4271 systemd_socket_activate_LDADD = \
4272 libsystemd-shared.la
4274 # ------------------------------------------------------------------------------
4275 systemd_journald_SOURCES = \
4276 src/journal/journald.c \
4277 src/journal/journald-server.h
4279 systemd_journald_LDADD = \
4280 libjournal-core.la \
4281 libsystemd-shared.la
4283 systemd_cat_SOURCES = \
4286 systemd_cat_LDADD = \
4290 rootlibexec_PROGRAMS += \
4291 systemd-journal-upload
4293 systemd_journal_upload_SOURCES = \
4294 src/journal-remote/journal-upload.h \
4295 src/journal-remote/journal-upload.c \
4296 src/journal-remote/journal-upload-journal.c
4298 systemd_journal_upload_CFLAGS = \
4302 systemd_journal_upload_LDADD = \
4303 libsystemd-shared.la \
4306 nodist_systemunit_DATA += \
4307 units/systemd-journal-upload.service
4309 nodist_pkgsysconf_DATA += \
4310 src/journal-remote/journal-upload.conf
4314 units/systemd-journal-upload.service.in \
4315 src/journal-remote/journal-upload.conf.in
4318 rootlibexec_PROGRAMS += \
4319 systemd-journal-remote
4321 systemd_journal_remote_SOURCES = \
4322 src/journal-remote/journal-remote-parse.h \
4323 src/journal-remote/journal-remote-parse.c \
4324 src/journal-remote/journal-remote-write.h \
4325 src/journal-remote/journal-remote-write.c \
4326 src/journal-remote/journal-remote.h \
4327 src/journal-remote/journal-remote.c
4329 systemd_journal_remote_LDADD = \
4332 systemd_journal_remote_SOURCES += \
4333 src/journal-remote/microhttpd-util.h \
4334 src/journal-remote/microhttpd-util.c
4336 systemd_journal_remote_CFLAGS = \
4338 $(MICROHTTPD_CFLAGS)
4340 systemd_journal_remote_LDADD += \
4344 systemd_journal_remote_LDADD += \
4348 # systemd-journal-remote make sense mostly with full crypto stack
4349 dist_systemunit_DATA += \
4350 units/systemd-journal-remote.socket
4352 nodist_systemunit_DATA += \
4353 units/systemd-journal-remote.service
4355 journal-remote-install-hook: journal-install-hook
4356 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4357 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4358 -chmod 755 $(DESTDIR)/var/log/journal/remote
4360 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4362 nodist_pkgsysconf_DATA += \
4363 src/journal-remote/journal-remote.conf
4366 units/systemd-journal-remote.service.in \
4367 src/journal-remote/journal-remote.conf.in \
4368 src/journal-remote/log-generator.py
4371 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4372 journalctl_CFLAGS = \
4375 journalctl_SOURCES = \
4376 src/journal/journalctl.c
4378 journalctl_LDADD = \
4379 libsystemd-shared.la \
4383 journalctl_SOURCES += \
4384 src/journal/journal-qrcode.c \
4385 src/journal/journal-qrcode.h
4387 journalctl_CFLAGS += \
4390 journalctl_LDADD += \
4394 test_journal_SOURCES = \
4395 src/journal/test-journal.c
4397 test_journal_LDADD = \
4400 test_journal_send_SOURCES = \
4401 src/journal/test-journal-send.c
4403 test_journal_send_LDADD = \
4406 test_journal_syslog_SOURCES = \
4407 src/journal/test-journal-syslog.c
4409 test_journal_syslog_LDADD = \
4412 test_journal_match_SOURCES = \
4413 src/journal/test-journal-match.c
4415 test_journal_match_LDADD = \
4418 test_journal_enum_SOURCES = \
4419 src/journal/test-journal-enum.c
4421 test_journal_enum_LDADD = \
4424 test_journal_stream_SOURCES = \
4425 src/journal/test-journal-stream.c
4427 test_journal_stream_LDADD = \
4430 test_journal_flush_SOURCES = \
4431 src/journal/test-journal-flush.c
4433 test_journal_flush_LDADD = \
4436 test_journal_init_SOURCES = \
4437 src/journal/test-journal-init.c
4439 test_journal_init_LDADD = \
4442 test_journal_verify_SOURCES = \
4443 src/journal/test-journal-verify.c
4445 test_journal_verify_LDADD = \
4448 test_journal_interleaving_SOURCES = \
4449 src/journal/test-journal-interleaving.c
4451 test_journal_interleaving_LDADD = \
4454 test_mmap_cache_SOURCES = \
4455 src/journal/test-mmap-cache.c
4457 test_mmap_cache_LDADD = \
4460 test_catalog_SOURCES = \
4461 src/journal/test-catalog.c
4463 test_catalog_CPPFLAGS = \
4465 -DCATALOG_DIR=\"$(abs_top_builddir)/catalog\"
4467 test_catalog_LDADD = \
4470 test_compress_SOURCES = \
4471 src/journal/test-compress.c
4473 test_compress_LDADD = \
4474 libsystemd-shared.la
4477 test_compress_LDADD += \
4481 test_compress_benchmark_SOURCES = \
4482 src/journal/test-compress-benchmark.c
4484 test_compress_benchmark_LDADD = \
4485 libsystemd-shared.la
4487 test_audit_type_SOURCES = \
4488 src/journal/test-audit-type.c
4490 test_audit_type_LDADD = \
4493 libjournal_core_la_SOURCES = \
4494 src/journal/journald-kmsg.c \
4495 src/journal/journald-kmsg.h \
4496 src/journal/journald-syslog.c \
4497 src/journal/journald-syslog.h \
4498 src/journal/journald-stream.c \
4499 src/journal/journald-stream.h \
4500 src/journal/journald-server.c \
4501 src/journal/journald-server.h \
4502 src/journal/journald-console.c \
4503 src/journal/journald-console.h \
4504 src/journal/journald-wall.c \
4505 src/journal/journald-wall.h \
4506 src/journal/journald-native.c \
4507 src/journal/journald-native.h \
4508 src/journal/journald-audit.c \
4509 src/journal/journald-audit.h \
4510 src/journal/journald-rate-limit.c \
4511 src/journal/journald-rate-limit.h \
4512 src/journal/journal-internal.h
4514 nodist_libjournal_core_la_SOURCES = \
4515 src/journal/journald-gperf.c
4517 libjournal_core_la_LIBADD = \
4518 libsystemd-shared.la
4520 noinst_LTLIBRARIES += \
4523 journal-install-hook:
4524 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4525 -chown 0:0 $(DESTDIR)/var/log/journal
4526 -chmod 755 $(DESTDIR)/var/log/journal
4527 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4528 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4530 journal-uninstall-hook:
4531 -rmdir $(DESTDIR)/var/log/journal/remote
4532 -rmdir $(DESTDIR)/var/log/journal/
4534 INSTALL_EXEC_HOOKS += journal-install-hook
4535 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4537 # ------------------------------------------------------------------------------
4538 # Update catalog on installation. Do not bother if installing
4539 # in DESTDIR, since this is likely for packaging purposes.
4540 catalog-update-hook:
4541 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4543 INSTALL_DATA_HOOKS += \
4546 catalog-remove-hook:
4547 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4549 UNINSTALL_DATA_HOOKS += \
4556 test-journal-syslog \
4557 test-journal-match \
4558 test-journal-stream \
4560 test-journal-verify \
4561 test-journal-interleaving \
4562 test-journal-flush \
4570 test-compress-benchmark
4573 pkginclude_HEADERS += \
4574 src/systemd/sd-journal.h \
4575 src/systemd/sd-messages.h \
4576 src/systemd/_sd-common.h
4578 libsystemd_journal_internal_la_SOURCES = \
4579 src/journal/sd-journal.c \
4580 src/systemd/sd-journal.h \
4581 src/systemd/_sd-common.h \
4582 src/journal/journal-file.c \
4583 src/journal/journal-file.h \
4584 src/journal/journal-vacuum.c \
4585 src/journal/journal-vacuum.h \
4586 src/journal/journal-verify.c \
4587 src/journal/journal-verify.h \
4588 src/journal/lookup3.c \
4589 src/journal/lookup3.h \
4590 src/journal/journal-send.c \
4591 src/journal/journal-def.h \
4592 src/journal/compress.h \
4593 src/journal/catalog.c \
4594 src/journal/catalog.h \
4595 src/journal/mmap-cache.c \
4596 src/journal/mmap-cache.h \
4597 src/journal/compress.c \
4598 src/journal/audit-type.h \
4599 src/journal/audit-type.c \
4600 src/shared/gcrypt-util.h \
4601 src/shared/gcrypt-util.c
4603 nodist_libsystemd_journal_internal_la_SOURCES = \
4604 src/journal/audit_type-to-name.h
4606 gperf_txt_sources += \
4607 src/journal/audit_type-list.txt
4609 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4610 libsystemd_journal_internal_la_CFLAGS = \
4613 libsystemd_journal_internal_la_LIBADD =
4616 libsystemd_journal_internal_la_CFLAGS += \
4619 libsystemd_journal_internal_la_LIBADD += \
4624 libsystemd_journal_internal_la_LIBADD += \
4629 libsystemd_journal_internal_la_SOURCES += \
4630 src/journal/journal-authenticate.c \
4631 src/journal/journal-authenticate.h \
4632 src/journal/fsprg.c \
4635 libsystemd_journal_internal_la_LIBADD += \
4638 libsystemd_journal_internal_la_CFLAGS += \
4642 noinst_LTLIBRARIES += \
4643 libsystemd-journal-internal.la
4645 rootlibexec_PROGRAMS += \
4648 rootbin_PROGRAMS += \
4654 dist_systemunit_DATA += \
4655 units/systemd-journald.socket \
4656 units/systemd-journald-dev-log.socket \
4657 units/systemd-journald-audit.socket
4659 nodist_systemunit_DATA += \
4660 units/systemd-journald.service \
4661 units/systemd-journal-flush.service \
4662 units/systemd-journal-catalog-update.service
4664 dist_pkgsysconf_DATA += \
4665 src/journal/journald.conf
4667 nodist_catalog_DATA = \
4668 catalog/systemd.bg.catalog \
4669 catalog/systemd.be.catalog \
4670 catalog/systemd.be@latin.catalog \
4671 catalog/systemd.fr.catalog \
4672 catalog/systemd.it.catalog \
4673 catalog/systemd.pl.catalog \
4674 catalog/systemd.pt_BR.catalog \
4675 catalog/systemd.ru.catalog \
4676 catalog/systemd.zh_CN.catalog \
4677 catalog/systemd.zh_TW.catalog \
4678 catalog/systemd.catalog
4681 $(nodist_catalog_DATA:.catalog=.catalog.in)
4683 # Note that we don't use @@ for replacement markers here, but %%. This is
4684 # because the catalog uses @@ already for its runtime replacement handling and
4685 # we don't want to conflict with that.
4686 catalog/%.catalog: catalog/%.catalog.in
4687 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4688 $(SED) -e 's~%SUPPORT_URL%~$(SUPPORT_URL)~' < $< > $@
4690 SOCKETS_TARGET_WANTS += \
4691 systemd-journald.socket \
4692 systemd-journald-dev-log.socket \
4693 systemd-journald-audit.socket
4695 SYSINIT_TARGET_WANTS += \
4696 systemd-journald.service \
4697 systemd-journal-flush.service \
4698 systemd-journal-catalog-update.service
4701 units/systemd-journald.service.in \
4702 units/systemd-journal-flush.service.in \
4703 units/systemd-journal-catalog-update.service.in
4705 gperf_gperf_sources += \
4706 src/journal/journald-gperf.gperf
4708 # ------------------------------------------------------------------------------
4710 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4712 rootlibexec_PROGRAMS += \
4713 systemd-journal-gatewayd
4715 systemd_journal_gatewayd_SOURCES = \
4716 src/journal-remote/journal-gatewayd.c \
4717 src/journal-remote/microhttpd-util.h \
4718 src/journal-remote/microhttpd-util.c
4720 systemd_journal_gatewayd_LDADD = \
4721 libsystemd-shared.la \
4725 systemd_journal_gatewayd_LDADD += \
4729 systemd_journal_gatewayd_CFLAGS = \
4731 $(MICROHTTPD_CFLAGS)
4733 systemd_journal_gatewayd_CPPFLAGS = \
4735 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4737 dist_systemunit_DATA += \
4738 units/systemd-journal-gatewayd.socket
4740 nodist_systemunit_DATA += \
4741 units/systemd-journal-gatewayd.service
4743 dist_gatewayddocumentroot_DATA = \
4744 src/journal-remote/browse.html
4749 units/systemd-journal-gatewayd.service.in
4751 # ------------------------------------------------------------------------------
4753 systemd_socket_proxyd_SOURCES = \
4754 src/socket-proxy/socket-proxyd.c
4756 systemd_socket_proxyd_LDADD = \
4757 libsystemd-shared.la
4759 # ------------------------------------------------------------------------------
4761 systemd_coredump_SOURCES = \
4762 src/coredump/coredump.c \
4763 src/coredump/coredump-vacuum.c \
4764 src/coredump/coredump-vacuum.h
4766 systemd_coredump_CFLAGS = \
4770 systemd_coredump_LDADD = \
4771 libsystemd-shared.la \
4775 systemd_coredump_SOURCES += \
4776 src/coredump/stacktrace.c \
4777 src/coredump/stacktrace.h
4779 systemd_coredump_LDADD += \
4783 nodist_systemunit_DATA += \
4784 units/systemd-coredump@.service
4786 dist_systemunit_DATA += \
4787 units/systemd-coredump.socket
4789 SOCKETS_TARGET_WANTS += \
4790 systemd-coredump.socket
4792 rootlibexec_PROGRAMS += \
4795 dist_pkgsysconf_DATA += \
4796 src/coredump/coredump.conf
4798 coredumpctl_SOURCES = \
4799 src/coredump/coredumpctl.c
4801 coredumpctl_LDADD = \
4802 libsystemd-shared.la
4808 test-coredump-vacuum
4810 test_coredump_vacuum_SOURCES = \
4811 src/coredump/test-coredump-vacuum.c \
4812 src/coredump/coredump-vacuum.c \
4813 src/coredump/coredump-vacuum.h
4815 test_coredump_vacuum_LDADD = \
4816 libsystemd-shared.la
4818 dist_bashcompletion_data += \
4819 shell-completion/bash/coredumpctl
4821 dist_zshcompletion_data += \
4822 shell-completion/zsh/_coredumpctl
4824 nodist_sysctl_DATA = \
4825 sysctl.d/50-coredump.conf
4828 sysctl.d/50-coredump.conf
4832 sysctl.d/50-coredump.conf.in \
4833 units/systemd-coredump@.service.in
4835 # ------------------------------------------------------------------------------
4837 systemd_binfmt_SOURCES = \
4840 systemd_binfmt_LDADD = \
4841 libsystemd-shared.la
4843 rootlibexec_PROGRAMS += \
4846 dist_systemunit_DATA += \
4847 units/proc-sys-fs-binfmt_misc.automount \
4848 units/proc-sys-fs-binfmt_misc.mount
4850 nodist_systemunit_DATA += \
4851 units/systemd-binfmt.service
4854 $(prefix)/lib/binfmt.d \
4855 $(sysconfdir)/binfmt.d
4857 SYSINIT_TARGET_WANTS += \
4858 systemd-binfmt.service \
4859 proc-sys-fs-binfmt_misc.automount
4864 units/systemd-binfmt.service.in
4866 # ------------------------------------------------------------------------------
4868 systemd_vconsole_setup_SOURCES = \
4869 src/vconsole/vconsole-setup.c
4871 systemd_vconsole_setup_LDADD = \
4872 libsystemd-shared.la
4874 rootlibexec_PROGRAMS += \
4875 systemd-vconsole-setup
4877 nodist_udevrules_DATA += \
4878 src/vconsole/90-vconsole.rules
4880 nodist_systemunit_DATA += \
4881 units/systemd-vconsole-setup.service
4885 src/vconsole/90-vconsole.rules.in \
4886 units/systemd-vconsole-setup.service.in
4888 # ------------------------------------------------------------------------------
4889 if ENABLE_QUOTACHECK
4890 rootlibexec_PROGRAMS += \
4893 nodist_systemunit_DATA += \
4894 units/systemd-quotacheck.service
4896 systemd_quotacheck_SOURCES = \
4897 src/quotacheck/quotacheck.c
4899 systemd_quotacheck_LDADD = \
4900 libsystemd-shared.la
4904 units/systemd-quotacheck.service.in
4906 nodist_systemunit_DATA += \
4907 units/quotaon.service
4909 # ------------------------------------------------------------------------------
4910 if ENABLE_RANDOMSEED
4911 rootlibexec_PROGRAMS += \
4914 nodist_systemunit_DATA += \
4915 units/systemd-random-seed.service
4917 systemd_random_seed_SOURCES = \
4918 src/random-seed/random-seed.c
4920 systemd_random_seed_LDADD = \
4921 libsystemd-shared.la
4923 SYSINIT_TARGET_WANTS += \
4924 systemd-random-seed.service
4929 units/systemd-random-seed.service.in
4931 # ------------------------------------------------------------------------------
4933 rootlibexec_PROGRAMS += \
4936 nodist_systemunit_DATA += \
4937 units/systemd-backlight@.service
4939 systemd_backlight_SOURCES = \
4940 src/backlight/backlight.c
4942 systemd_backlight_LDADD = \
4943 libsystemd-shared.la
4947 units/systemd-backlight@.service.in
4949 # ------------------------------------------------------------------------------
4951 rootlibexec_PROGRAMS += \
4954 nodist_systemunit_DATA += \
4955 units/systemd-rfkill.service
4957 dist_systemunit_DATA += \
4958 units/systemd-rfkill.socket
4960 systemd_rfkill_SOURCES = \
4963 systemd_rfkill_LDADD = \
4964 libsystemd-shared.la
4968 units/systemd-rfkill.service.in
4970 # ------------------------------------------------------------------------------
4971 if HAVE_LIBCRYPTSETUP
4972 rootlibexec_PROGRAMS += \
4973 systemd-cryptsetup \
4976 systemgenerator_PROGRAMS += \
4977 systemd-cryptsetup-generator \
4978 systemd-veritysetup-generator
4980 dist_systemunit_DATA += \
4981 units/cryptsetup.target \
4982 units/cryptsetup-pre.target
4984 systemd_cryptsetup_SOURCES = \
4985 src/cryptsetup/cryptsetup.c
4987 systemd_cryptsetup_CFLAGS = \
4989 $(LIBCRYPTSETUP_CFLAGS)
4991 systemd_cryptsetup_LDADD = \
4992 libsystemd-shared.la \
4993 $(LIBCRYPTSETUP_LIBS)
4995 systemd_cryptsetup_generator_SOURCES = \
4996 src/cryptsetup/cryptsetup-generator.c
4998 systemd_cryptsetup_generator_LDADD = \
4999 libsystemd-shared.la
5001 systemd_veritysetup_SOURCES = \
5002 src/veritysetup/veritysetup.c
5004 systemd_veritysetup_CFLAGS = \
5006 $(LIBCRYPTSETUP_CFLAGS)
5008 systemd_veritysetup_LDADD = \
5009 libsystemd-shared.la \
5010 $(LIBCRYPTSETUP_LIBS)
5012 systemd_veritysetup_generator_SOURCES = \
5013 src/veritysetup/veritysetup-generator.c
5015 systemd_veritysetup_generator_LDADD = \
5016 libsystemd-shared.la
5018 SYSINIT_TARGET_WANTS += \
5023 # ------------------------------------------------------------------------------
5025 systemd_hostnamed_SOURCES = \
5026 src/hostname/hostnamed.c
5028 systemd_hostnamed_LDADD = \
5029 libsystemd-shared.la
5031 rootlibexec_PROGRAMS += \
5034 nodist_systemunit_DATA += \
5035 units/systemd-hostnamed.service
5037 dist_systemunit_DATA_busnames += \
5038 units/org.freedesktop.hostname1.busname
5040 dist_dbuspolicy_DATA += \
5041 src/hostname/org.freedesktop.hostname1.conf
5043 dist_dbussystemservice_DATA += \
5044 src/hostname/org.freedesktop.hostname1.service
5046 polkitpolicy_files += \
5047 src/hostname/org.freedesktop.hostname1.policy
5049 SYSTEM_UNIT_ALIASES += \
5050 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
5052 BUSNAMES_TARGET_WANTS += \
5053 org.freedesktop.hostname1.busname
5055 hostnamectl_SOURCES = \
5056 src/hostname/hostnamectl.c
5058 hostnamectl_LDADD = \
5059 libsystemd-shared.la
5064 dist_bashcompletion_data += \
5065 shell-completion/bash/hostnamectl
5067 dist_zshcompletion_data += \
5068 shell-completion/zsh/_hostnamectl
5071 polkitpolicy_in_files += \
5072 src/hostname/org.freedesktop.hostname1.policy.in
5075 units/systemd-hostnamed.service.in
5077 # ------------------------------------------------------------------------------
5078 dist_systemunit_DATA_busnames += \
5079 units/org.freedesktop.systemd1.busname
5081 BUSNAMES_TARGET_WANTS += \
5082 org.freedesktop.systemd1.busname
5084 # ------------------------------------------------------------------------------
5086 systemd_localed_SOURCES = \
5087 src/locale/localed.c \
5088 src/locale/keymap-util.c \
5089 src/locale/keymap-util.h
5091 systemd_localed_LDADD = \
5092 libsystemd-shared.la \
5095 nodist_systemunit_DATA += \
5096 units/systemd-localed.service
5098 dist_systemunit_DATA_busnames += \
5099 units/org.freedesktop.locale1.busname
5101 rootlibexec_PROGRAMS += \
5104 dist_dbuspolicy_DATA += \
5105 src/locale/org.freedesktop.locale1.conf
5107 dist_dbussystemservice_DATA += \
5108 src/locale/org.freedesktop.locale1.service
5110 polkitpolicy_files += \
5111 src/locale/org.freedesktop.locale1.policy
5113 SYSTEM_UNIT_ALIASES += \
5114 systemd-localed.service dbus-org.freedesktop.locale1.service
5116 BUSNAMES_TARGET_WANTS += \
5117 org.freedesktop.locale1.busname
5119 dist_pkgdata_DATA = \
5120 src/locale/kbd-model-map \
5121 src/locale/language-fallback-map
5123 test_keymap_util_SOURCES = \
5124 src/locale/test-keymap-util.c \
5125 src/locale/keymap-util.c \
5126 src/locale/keymap-util.h
5128 test_keymap_util_LDADD = \
5129 libsystemd-shared.la \
5135 localectl_SOURCES = \
5136 src/locale/localectl.c
5139 libsystemd-shared.la
5144 dist_bashcompletion_data += \
5145 shell-completion/bash/localectl
5147 dist_zshcompletion_data += \
5148 shell-completion/zsh/_localectl
5151 polkitpolicy_in_files += \
5152 src/locale/org.freedesktop.locale1.policy.in
5155 units/systemd-localed.service.in
5157 # ------------------------------------------------------------------------------
5159 systemd_timedated_SOURCES = \
5160 src/timedate/timedated.c
5162 systemd_timedated_LDADD = \
5163 libsystemd-shared.la
5165 rootlibexec_PROGRAMS += \
5168 dist_dbussystemservice_DATA += \
5169 src/timedate/org.freedesktop.timedate1.service
5171 dist_dbuspolicy_DATA += \
5172 src/timedate/org.freedesktop.timedate1.conf
5174 nodist_systemunit_DATA += \
5175 units/systemd-timedated.service
5177 dist_systemunit_DATA_busnames += \
5178 units/org.freedesktop.timedate1.busname
5180 polkitpolicy_files += \
5181 src/timedate/org.freedesktop.timedate1.policy
5183 SYSTEM_UNIT_ALIASES += \
5184 systemd-timedated.service dbus-org.freedesktop.timedate1.service
5186 BUSNAMES_TARGET_WANTS += \
5187 org.freedesktop.timedate1.busname
5189 timedatectl_SOURCES = \
5190 src/timedate/timedatectl.c
5192 timedatectl_LDADD = \
5193 libsystemd-shared.la
5198 dist_bashcompletion_data += \
5199 shell-completion/bash/timedatectl
5201 dist_zshcompletion_data += \
5202 shell-completion/zsh/_timedatectl
5205 polkitpolicy_in_files += \
5206 src/timedate/org.freedesktop.timedate1.policy.in
5209 units/systemd-timedated.service.in
5211 # ------------------------------------------------------------------------------
5213 systemd_timesyncd_SOURCES = \
5214 src/timesync/timesyncd.c \
5215 src/timesync/timesyncd-manager.c \
5216 src/timesync/timesyncd-manager.h \
5217 src/timesync/timesyncd-conf.c \
5218 src/timesync/timesyncd-conf.h \
5219 src/timesync/timesyncd-server.c \
5220 src/timesync/timesyncd-server.h
5222 nodist_systemd_timesyncd_SOURCES = \
5223 src/timesync/timesyncd-gperf.c
5225 systemd_timesyncd_LDADD = \
5226 libsystemd-network.la \
5227 libsystemd-shared.la \
5230 test_timesync_SOURCES = \
5231 src/timesync/test-timesync.c \
5232 src/timesync/timesyncd-manager.c \
5233 src/timesync/timesyncd-manager.h \
5234 src/timesync/timesyncd-conf.c \
5235 src/timesync/timesyncd-conf.h \
5236 src/timesync/timesyncd-server.c \
5237 src/timesync/timesyncd-server.h
5239 nodist_test_timesync_SOURCES = \
5240 src/timesync/timesyncd-gperf.c
5242 test_timesync_LDADD = \
5243 libsystemd-shared.la \
5249 rootlibexec_PROGRAMS += \
5252 nodist_systemunit_DATA += \
5253 units/systemd-timesyncd.service
5255 GENERAL_ALIASES += \
5256 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5258 nodist_pkgsysconf_DATA += \
5259 src/timesync/timesyncd.conf
5263 gperf_gperf_sources += \
5264 src/timesync/timesyncd-gperf.gperf
5267 units/systemd-timesyncd.service.in \
5268 src/timesync/timesyncd.conf.in
5270 # ------------------------------------------------------------------------------
5271 test_nss_SOURCES = \
5275 libsystemd-internal.la \
5282 # ------------------------------------------------------------------------------
5283 libnss_systemd_la_SOURCES = \
5284 src/nss-systemd/nss-systemd.sym \
5285 src/nss-systemd/nss-systemd.c
5287 libnss_systemd_la_LDFLAGS = \
5294 -Wl,--version-script=$(top_srcdir)/src/nss-systemd/nss-systemd.sym
5296 libnss_systemd_la_LIBADD = \
5297 libsystemd-internal.la \
5300 rootlib_LTLIBRARIES += \
5303 # ------------------------------------------------------------------------------
5305 libnss_myhostname_la_SOURCES = \
5306 src/nss-myhostname/nss-myhostname.sym \
5307 src/nss-myhostname/nss-myhostname.c
5309 libnss_myhostname_la_LDFLAGS = \
5316 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5318 libnss_myhostname_la_LIBADD = \
5319 libsystemd-internal.la \
5322 rootlib_LTLIBRARIES += \
5323 libnss_myhostname.la
5326 # ------------------------------------------------------------------------------
5329 dist_systemunit_DATA += \
5330 units/var-lib-machines.mount
5332 systemd_machined_SOURCES = \
5333 src/machine/machined.c \
5334 src/machine/machined.h
5336 systemd_machined_LDADD = \
5339 rootlibexec_PROGRAMS += \
5342 libmachine_core_la_SOURCES = \
5343 src/machine/machine.c \
5344 src/machine/machine.h \
5345 src/machine/machined-dbus.c \
5346 src/machine/machine-dbus.c \
5347 src/machine/machine-dbus.h \
5348 src/machine/image-dbus.c \
5349 src/machine/image-dbus.h \
5350 src/machine/operation.c \
5351 src/machine/operation.h
5353 libmachine_core_la_LIBADD = \
5354 libsystemd-shared.la
5356 noinst_LTLIBRARIES += \
5359 machinectl_SOURCES = \
5360 src/machine/machinectl.c
5362 machinectl_LDADD = \
5363 libsystemd-shared.la
5365 rootbin_PROGRAMS += \
5368 test_machine_tables_SOURCES = \
5369 src/machine/test-machine-tables.c
5371 test_machine_tables_LDADD = \
5377 nodist_systemunit_DATA += \
5378 units/systemd-machined.service
5380 dist_systemunit_DATA += \
5383 dist_systemunit_DATA_busnames += \
5384 units/org.freedesktop.machine1.busname
5386 dist_dbussystemservice_DATA += \
5387 src/machine/org.freedesktop.machine1.service
5389 dist_dbuspolicy_DATA += \
5390 src/machine/org.freedesktop.machine1.conf
5392 polkitpolicy_files += \
5393 src/machine/org.freedesktop.machine1.policy
5395 dist_bashcompletion_data += \
5396 shell-completion/bash/machinectl
5398 dist_zshcompletion_data += \
5399 shell-completion/zsh/_machinectl \
5400 shell-completion/zsh/_sd_machines
5402 SYSTEM_UNIT_ALIASES += \
5403 systemd-machined.service dbus-org.freedesktop.machine1.service
5405 BUSNAMES_TARGET_WANTS += \
5406 org.freedesktop.machine1.busname
5408 libnss_mymachines_la_SOURCES = \
5409 src/nss-mymachines/nss-mymachines.sym \
5410 src/nss-mymachines/nss-mymachines.c
5412 libnss_mymachines_la_LDFLAGS = \
5419 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5421 libnss_mymachines_la_LIBADD = \
5422 libsystemd-internal.la \
5425 rootlib_LTLIBRARIES += \
5426 libnss_mymachines.la
5430 polkitpolicy_in_files += \
5431 src/machine/org.freedesktop.machine1.policy.in
5434 units/systemd-machined.service.in
5436 # ------------------------------------------------------------------------------
5445 rootlibexec_PROGRAMS += \
5451 systemd_importd_SOURCES = \
5452 src/import/importd.c
5454 systemd_importd_CFLAGS = \
5456 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5457 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5458 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5460 systemd_importd_LDADD = \
5461 libsystemd-shared.la
5463 systemd_pull_SOURCES = \
5465 src/import/pull-raw.c \
5466 src/import/pull-raw.h \
5467 src/import/pull-tar.c \
5468 src/import/pull-tar.h \
5469 src/import/pull-job.c \
5470 src/import/pull-job.h \
5471 src/import/pull-common.c \
5472 src/import/pull-common.h \
5473 src/import/import-common.c \
5474 src/import/import-common.h \
5475 src/import/import-compress.c \
5476 src/import/import-compress.h \
5477 src/import/curl-util.c \
5478 src/import/curl-util.h \
5479 src/import/qcow2-util.c \
5480 src/import/qcow2-util.h
5482 systemd_pull_CFLAGS = \
5488 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5489 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5491 systemd_pull_LDADD = \
5492 libsystemd-shared.la \
5499 systemd_import_SOURCES = \
5500 src/import/import.c \
5501 src/import/import-raw.c \
5502 src/import/import-raw.h \
5503 src/import/import-tar.c \
5504 src/import/import-tar.h \
5505 src/import/import-common.c \
5506 src/import/import-common.h \
5507 src/import/import-compress.c \
5508 src/import/import-compress.h \
5509 src/import/qcow2-util.c \
5510 src/import/qcow2-util.h
5512 systemd_import_CFLAGS = \
5517 systemd_import_LDADD = \
5518 libsystemd-shared.la \
5523 systemd_export_SOURCES = \
5524 src/import/export.c \
5525 src/import/export-tar.c \
5526 src/import/export-tar.h \
5527 src/import/export-raw.c \
5528 src/import/export-raw.h \
5529 src/import/import-common.c \
5530 src/import/import-common.h \
5531 src/import/import-compress.c \
5532 src/import/import-compress.h
5534 systemd_export_CFLAGS = \
5539 systemd_export_LDADD = \
5540 libsystemd-shared.la \
5545 dist_rootlibexec_DATA += \
5546 src/import/import-pubring.gpg
5548 nodist_systemunit_DATA += \
5549 units/systemd-importd.service
5551 dist_systemunit_DATA_busnames += \
5552 units/org.freedesktop.import1.busname
5554 BUSNAMES_TARGET_WANTS += \
5555 org.freedesktop.import1.busname
5557 SYSTEM_UNIT_ALIASES += \
5558 systemd-importd.service dbus-org.freedesktop.import1.service
5560 dist_dbussystemservice_DATA += \
5561 src/import/org.freedesktop.import1.service
5563 dist_dbuspolicy_DATA += \
5564 src/import/org.freedesktop.import1.conf
5566 polkitpolicy_files += \
5567 src/import/org.freedesktop.import1.policy
5572 test_qcow2_SOURCES = \
5573 src/import/test-qcow2.c \
5574 src/import/qcow2-util.c \
5575 src/import/qcow2-util.h
5577 test_qcow2_CFLAGS = \
5581 test_qcow2_LDADD = \
5582 libsystemd-shared.la \
5593 polkitpolicy_in_files += \
5594 src/import/org.freedesktop.import1.policy.in
5597 units/systemd-importd.service.in
5600 # ------------------------------------------------------------------------------
5603 basic_dns_sources = \
5604 src/resolve/resolved-dns-dnssec.c \
5605 src/resolve/resolved-dns-dnssec.h \
5606 src/resolve/resolved-dns-packet.c \
5607 src/resolve/resolved-dns-packet.h \
5608 src/resolve/resolved-dns-rr.c \
5609 src/resolve/resolved-dns-rr.h \
5610 src/resolve/resolved-dns-answer.c \
5611 src/resolve/resolved-dns-answer.h \
5612 src/resolve/resolved-dns-question.c \
5613 src/resolve/resolved-dns-question.h \
5614 src/resolve/dns-type.c \
5615 src/resolve/dns-type.h
5617 systemd_resolved_SOURCES = \
5618 src/resolve/resolved.c \
5619 src/resolve/resolved-manager.c \
5620 src/resolve/resolved-manager.h \
5621 src/resolve/resolved-conf.c \
5622 src/resolve/resolved-conf.h \
5623 src/resolve/resolved-resolv-conf.c \
5624 src/resolve/resolved-resolv-conf.h \
5625 src/resolve/resolved-bus.c \
5626 src/resolve/resolved-bus.h \
5627 src/resolve/resolved-link.h \
5628 src/resolve/resolved-link.c \
5629 src/resolve/resolved-link-bus.c \
5630 src/resolve/resolved-link-bus.h \
5631 src/resolve/resolved-llmnr.h \
5632 src/resolve/resolved-llmnr.c \
5633 src/resolve/resolved-mdns.h \
5634 src/resolve/resolved-mdns.c \
5635 src/resolve/resolved-def.h \
5636 $(basic_dns_sources) \
5637 src/resolve/resolved-dns-query.h \
5638 src/resolve/resolved-dns-query.c \
5639 src/resolve/resolved-dns-synthesize.h \
5640 src/resolve/resolved-dns-synthesize.c \
5641 src/resolve/resolved-dns-transaction.h \
5642 src/resolve/resolved-dns-transaction.c \
5643 src/resolve/resolved-dns-scope.h \
5644 src/resolve/resolved-dns-scope.c \
5645 src/resolve/resolved-dns-server.h \
5646 src/resolve/resolved-dns-server.c \
5647 src/resolve/resolved-dns-search-domain.h \
5648 src/resolve/resolved-dns-search-domain.c \
5649 src/resolve/resolved-dns-cache.h \
5650 src/resolve/resolved-dns-cache.c \
5651 src/resolve/resolved-dns-zone.h \
5652 src/resolve/resolved-dns-zone.c \
5653 src/resolve/resolved-dns-stream.h \
5654 src/resolve/resolved-dns-stream.c \
5655 src/resolve/resolved-dns-trust-anchor.h \
5656 src/resolve/resolved-dns-trust-anchor.c \
5657 src/resolve/resolved-dns-stub.h \
5658 src/resolve/resolved-dns-stub.c \
5659 src/resolve/resolved-etc-hosts.h \
5660 src/resolve/resolved-etc-hosts.c \
5661 src/shared/gcrypt-util.c \
5662 src/shared/gcrypt-util.h
5664 nodist_systemd_resolved_SOURCES = \
5665 src/resolve/dns_type-from-name.h \
5666 src/resolve/dns_type-to-name.h \
5667 src/resolve/resolved-gperf.c
5669 systemd_resolved_CFLAGS = \
5673 systemd_resolved_LDADD = \
5674 libsystemd-network.la \
5675 libsystemd-shared.la \
5679 rootlibexec_PROGRAMS += \
5682 nodist_systemunit_DATA += \
5683 units/systemd-resolved.service
5685 dist_systemunit_DATA_busnames += \
5686 units/org.freedesktop.resolve1.busname
5688 dist_dbuspolicy_DATA += \
5689 src/resolve/org.freedesktop.resolve1.conf
5691 dist_dbussystemservice_DATA += \
5692 src/resolve/org.freedesktop.resolve1.service
5694 BUSNAMES_TARGET_WANTS += \
5695 org.freedesktop.resolve1.busname
5697 GENERAL_ALIASES += \
5698 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service \
5699 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/dbus-org.freedesktop.resolve1.service
5701 nodist_pkgsysconf_DATA += \
5702 src/resolve/resolved.conf
5704 dist_rootlibexec_DATA += \
5705 src/resolve/resolv.conf
5707 libnss_resolve_la_SOURCES = \
5708 src/nss-resolve/nss-resolve.sym \
5709 src/nss-resolve/nss-resolve.c
5711 libnss_resolve_la_LDFLAGS = \
5718 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5720 libnss_resolve_la_LIBADD = \
5721 libsystemd-internal.la \
5724 rootlib_LTLIBRARIES += \
5727 systemd_resolve_SOURCES = \
5728 src/resolve/resolve-tool.c \
5729 $(basic_dns_sources) \
5730 src/shared/gcrypt-util.c \
5731 src/shared/gcrypt-util.h
5733 nodist_systemd_resolve_SOURCES = \
5734 src/resolve/dns_type-from-name.h \
5735 src/resolve/dns_type-to-name.h
5737 systemd_resolve_CFLAGS = \
5741 systemd_resolve_LDADD = \
5742 libsystemd-shared.la \
5749 dist_bashcompletion_data += \
5750 shell-completion/bash/systemd-resolve
5752 dist_zshcompletion_data += \
5753 shell-completion/zsh/_systemd-resolve
5757 test-resolve-tables \
5763 test_resolve_tables_SOURCES = \
5764 src/resolve/test-resolve-tables.c \
5765 src/resolve/dns_type-from-name.h \
5766 src/resolve/dns_type-to-name.h \
5767 $(basic_dns_sources) \
5768 src/shared/test-tables.h
5770 test_resolve_tables_CFLAGS = \
5774 test_resolve_tables_LDADD = \
5775 libsystemd-shared.la \
5779 test_dns_packet_SOURCES = \
5780 src/resolve/test-dns-packet.c \
5781 $(basic_dns_sources)
5783 test_dns_packet_CPPFLAGS = \
5785 -I $(top_srcdir)/src/test
5787 test_dns_packet_CFLAGS = \
5791 test_dns_packet_LDADD = \
5792 libsystemd-shared.la \
5796 TEST_DATA_FILES += \
5797 test/test-resolve/_openpgpkey.fedoraproject.org.pkts \
5798 test/test-resolve/fedoraproject.org.pkts \
5799 test/test-resolve/gandi.net.pkts \
5800 test/test-resolve/google.com.pkts \
5801 test/test-resolve/root.pkts \
5802 test/test-resolve/sw1a1aa-sw1a2aa-sw1a2ab-sw1a2ac.find.me.uk.pkts \
5803 test/test-resolve/teamits.com.pkts \
5804 test/test-resolve/zbyszek@fedoraproject.org.pkts \
5805 test/test-resolve/_443._tcp.fedoraproject.org.pkts \
5806 test/test-resolve/kyhwana.org.pkts \
5807 test/test-resolve/fake-caa.pkts
5809 EXTRA_DIST += $(TEST_DATA_FILES)
5811 test_dnssec_SOURCES = \
5812 src/resolve/test-dnssec.c \
5813 $(basic_dns_sources)
5815 test_dnssec_CFLAGS = \
5819 test_dnssec_LDADD = \
5820 libsystemd-shared.la \
5824 test_dnssec_complex_SOURCES = \
5825 src/resolve/test-dnssec-complex.c \
5826 src/resolve/dns-type.c \
5827 src/resolve/dns-type.h
5829 test_dnssec_complex_LDADD = \
5830 libsystemd-shared.la
5834 gperf_txt_sources += \
5835 src/resolve/dns_type-list.txt
5837 gperf_gperf_sources += \
5838 src/resolve/resolved-gperf.gperf
5841 units/systemd-resolved.service.m4.in \
5842 src/resolve/resolved.conf.in
5844 # ------------------------------------------------------------------------------
5846 rootlibexec_PROGRAMS += \
5849 systemd_networkd_SOURCES = \
5850 src/network/networkd.c
5852 systemd_networkd_LDADD = \
5856 systemd_networkd_LDADD += \
5860 noinst_LTLIBRARIES += \
5863 libnetworkd_core_la_CFLAGS = \
5866 libnetworkd_core_la_SOURCES = \
5867 src/libsystemd-network/network-internal.h \
5868 src/network/netdev/netdev.h \
5869 src/network/netdev/netdev.c \
5870 src/network/netdev/vrf.h \
5871 src/network/netdev/vrf.c \
5872 src/network/netdev/tunnel.h \
5873 src/network/netdev/tunnel.c \
5874 src/network/netdev/veth.h \
5875 src/network/netdev/veth.c \
5876 src/network/netdev/vxlan.h \
5877 src/network/netdev/vxlan.c \
5878 src/network/netdev/geneve.h \
5879 src/network/netdev/geneve.c \
5880 src/network/netdev/vlan.h \
5881 src/network/netdev/vlan.c \
5882 src/network/netdev/macvlan.h \
5883 src/network/netdev/macvlan.c \
5884 src/network/netdev/ipvlan.h \
5885 src/network/netdev/ipvlan.c \
5886 src/network/netdev/dummy.h \
5887 src/network/netdev/dummy.c \
5888 src/network/netdev/tuntap.h \
5889 src/network/netdev/tuntap.c \
5890 src/network/netdev/bond.h \
5891 src/network/netdev/bond.c \
5892 src/network/netdev/bridge.h \
5893 src/network/netdev/bridge.c \
5894 src/network/netdev/vcan.h \
5895 src/network/netdev/vcan.c \
5896 src/network/networkd-manager.h \
5897 src/network/networkd-manager.c \
5898 src/network/networkd-manager-bus.c \
5899 src/network/networkd-conf.h \
5900 src/network/networkd-conf.c \
5901 src/network/networkd-link.h \
5902 src/network/networkd-link.c \
5903 src/network/networkd-link-bus.c \
5904 src/network/networkd-ipv4ll.c \
5905 src/network/networkd-ipv6-proxy-ndp.h \
5906 src/network/networkd-ipv6-proxy-ndp.c \
5907 src/network/networkd-dhcp4.c \
5908 src/network/networkd-dhcp6.c \
5909 src/network/networkd-ndisc.h \
5910 src/network/networkd-radv.c \
5911 src/network/networkd-radv.h \
5912 src/network/networkd-ndisc.c \
5913 src/network/networkd-network.h \
5914 src/network/networkd-network.c \
5915 src/network/networkd-network-bus.c \
5916 src/network/networkd-address.h \
5917 src/network/networkd-address.c \
5918 src/network/networkd-address-label.h \
5919 src/network/networkd-address-label.c \
5920 src/network/networkd-route.h \
5921 src/network/networkd-route.c \
5922 src/network/networkd-fdb.h \
5923 src/network/networkd-fdb.c \
5924 src/network/networkd-brvlan.h \
5925 src/network/networkd-brvlan.c \
5926 src/network/networkd-address-pool.h \
5927 src/network/networkd-address-pool.c \
5928 src/network/networkd-util.h \
5929 src/network/networkd-util.c \
5930 src/network/networkd-lldp-tx.h \
5931 src/network/networkd-lldp-tx.c
5933 nodist_libnetworkd_core_la_SOURCES = \
5934 src/network/networkd-gperf.c \
5935 src/network/networkd-network-gperf.c \
5936 src/network/netdev/netdev-gperf.c
5938 libnetworkd_core_la_LIBADD = \
5939 libsystemd-network.la \
5940 libsystemd-shared.la
5942 rootlibexec_PROGRAMS += \
5943 systemd-networkd-wait-online
5945 systemd_networkd_wait_online_CFLAGS = \
5948 systemd_networkd_wait_online_SOURCES = \
5949 src/libsystemd-network/network-internal.h \
5950 src/network/wait-online/link.h \
5951 src/network/wait-online/link.c \
5952 src/network/wait-online/manager.h \
5953 src/network/wait-online/manager.c \
5954 src/network/wait-online/wait-online.c
5956 systemd_networkd_wait_online_LDADD = \
5957 libsystemd-network.la \
5958 libsystemd-shared.la
5960 rootbin_PROGRAMS += \
5963 networkctl_SOURCES = \
5964 src/network/networkctl.c
5966 networkctl_LDADD = \
5967 libsystemd-shared.la \
5968 libsystemd-network.la
5970 dist_bashcompletion_data += \
5971 shell-completion/bash/networkctl
5973 dist_zshcompletion_data += \
5974 shell-completion/zsh/_networkctl
5976 test_networkd_conf_SOURCES = \
5977 src/network/test-networkd-conf.c
5979 test_networkd_conf_LDADD = \
5982 test_network_SOURCES = \
5983 src/network/test-network.c
5985 test_network_LDADD = \
5989 test_network_LDADD += \
5993 test_network_tables_SOURCES = \
5994 src/network/test-network-tables.c \
5995 src/shared/test-tables.h
5997 test_network_tables_LDADD = \
5998 libnetworkd-core.la \
6002 test_network_tables_LDADD += \
6007 test-networkd-conf \
6011 dist_systemunit_DATA += \
6012 units/systemd-networkd.socket
6014 nodist_systemunit_DATA += \
6015 units/systemd-networkd.service \
6016 units/systemd-networkd-wait-online.service
6018 dist_systemunit_DATA_busnames += \
6019 units/org.freedesktop.network1.busname
6021 dist_dbussystemservice_DATA += \
6022 src/network/org.freedesktop.network1.service
6024 dist_dbuspolicy_DATA += \
6025 src/network/org.freedesktop.network1.conf
6027 GENERAL_ALIASES += \
6028 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
6029 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
6030 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service \
6031 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/dbus-org.freedesktop.network1.service
6033 BUSNAMES_TARGET_WANTS += \
6034 org.freedesktop.network1.busname
6036 polkitrules_files += \
6037 src/network/systemd-networkd.rules
6039 polkitpkla_files += \
6040 src/network/systemd-networkd.pkla
6044 gperf_gperf_sources += \
6045 src/network/networkd-gperf.gperf \
6046 src/network/networkd-network-gperf.gperf \
6047 src/network/netdev/netdev-gperf.gperf
6050 src/network/systemd-networkd.rules \
6051 src/network/systemd-networkd.pkla \
6052 units/systemd-networkd.service.m4.in \
6053 units/systemd-networkd-wait-online.service.in \
6054 test/networkd-test.py \
6055 test/test-exec-deserialization.py
6057 # ------------------------------------------------------------------------------
6059 systemd_logind_SOURCES = \
6060 src/login/logind.c \
6063 nodist_systemd_logind_SOURCES = \
6064 src/login/logind-gperf.c
6066 systemd_logind_LDADD = \
6069 liblogind_core_la_SOURCES = \
6070 src/login/logind-core.c \
6071 src/login/logind-device.c \
6072 src/login/logind-device.h \
6073 src/login/logind-button.c \
6074 src/login/logind-button.h \
6075 src/login/logind-action.c \
6076 src/login/logind-action.h \
6077 src/login/logind-seat.c \
6078 src/login/logind-seat.h \
6079 src/login/logind-session.c \
6080 src/login/logind-session.h \
6081 src/login/logind-session-device.c \
6082 src/login/logind-session-device.h \
6083 src/login/logind-user.c \
6084 src/login/logind-user.h \
6085 src/login/logind-inhibit.c \
6086 src/login/logind-inhibit.h \
6087 src/login/logind-dbus.c \
6088 src/login/logind-session-dbus.c \
6089 src/login/logind-seat-dbus.c \
6090 src/login/logind-user-dbus.c \
6091 src/login/logind-utmp.c \
6092 src/login/logind-acl.h
6094 liblogind_core_la_LIBADD = \
6095 libsystemd-shared.la
6098 liblogind_core_la_SOURCES += \
6099 src/login/logind-acl.c
6102 noinst_LTLIBRARIES += \
6105 rootlibexec_PROGRAMS += \
6108 loginctl_SOURCES = \
6109 src/login/loginctl.c \
6110 src/login/sysfs-show.h \
6111 src/login/sysfs-show.c
6114 libsystemd-shared.la
6116 rootbin_PROGRAMS += \
6119 dist_bashcompletion_data += \
6120 shell-completion/bash/loginctl
6122 dist_zshcompletion_data += \
6123 shell-completion/zsh/_loginctl \
6124 shell-completion/zsh/_systemd-inhibit
6126 systemd_inhibit_SOURCES = \
6129 systemd_inhibit_LDADD = \
6130 libsystemd-shared.la
6132 rootbin_PROGRAMS += \
6135 test_login_SOURCES = \
6136 src/libsystemd/sd-login/test-login.c
6138 test_login_LDADD = \
6139 libsystemd-shared.la
6141 test_login_shared_SOURCES = \
6142 src/login/test-login-shared.c
6144 test_login_shared_LDADD = \
6145 libsystemd-shared.la
6147 test_inhibit_SOURCES = \
6148 src/login/test-inhibit.c
6150 test_inhibit_LDADD = \
6151 libsystemd-shared.la
6153 test_login_tables_SOURCES = \
6154 src/login/test-login-tables.c
6156 test_login_tables_LDADD = \
6168 pam_systemd_la_SOURCES = \
6169 src/login/pam_systemd.sym \
6170 src/login/pam_systemd.c
6172 pam_systemd_la_CFLAGS = \
6176 pam_systemd_la_LDFLAGS = \
6182 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
6184 pam_systemd_la_LIBADD = \
6188 pamlib_LTLIBRARIES = \
6191 if ENABLE_PAM_CONFIG
6192 dist_pamconf_DATA = \
6193 src/login/systemd-user
6197 src/login/systemd-user.m4
6200 nodist_systemunit_DATA += \
6201 units/systemd-logind.service
6203 dist_systemunit_DATA += \
6206 dist_systemunit_DATA_busnames += \
6207 units/org.freedesktop.login1.busname
6209 dist_dbussystemservice_DATA += \
6210 src/login/org.freedesktop.login1.service
6212 dist_dbuspolicy_DATA += \
6213 src/login/org.freedesktop.login1.conf
6215 nodist_pkgsysconf_DATA += \
6216 src/login/logind.conf
6218 polkitpolicy_files += \
6219 src/login/org.freedesktop.login1.policy
6224 MULTI_USER_TARGET_WANTS += \
6225 systemd-logind.service
6227 SYSTEM_UNIT_ALIASES += \
6228 systemd-logind.service dbus-org.freedesktop.login1.service
6230 BUSNAMES_TARGET_WANTS += \
6231 org.freedesktop.login1.busname
6233 dist_udevrules_DATA += \
6234 src/login/70-uaccess.rules \
6235 src/login/70-power-switch.rules
6237 nodist_udevrules_DATA += \
6238 src/login/71-seat.rules \
6239 src/login/73-seat-late.rules
6243 polkitpolicy_in_files += \
6244 src/login/org.freedesktop.login1.policy.in
6246 gperf_gperf_sources += \
6247 src/login/logind-gperf.gperf
6250 src/login/71-seat.rules.in \
6251 src/login/73-seat-late.rules.in \
6252 units/systemd-logind.service.in \
6253 src/login/logind.conf.in
6255 # ------------------------------------------------------------------------------
6258 systemd_user_sessions_SOURCES = \
6259 src/user-sessions/user-sessions.c
6261 systemd_user_sessions_LDADD = \
6262 libsystemd-shared.la
6264 rootlibexec_PROGRAMS += \
6265 systemd-user-sessions
6267 nodist_systemunit_DATA += \
6268 units/systemd-user-sessions.service
6270 MULTI_USER_TARGET_WANTS += \
6271 systemd-user-sessions.service
6276 units/systemd-user-sessions.service.in
6278 # ------------------------------------------------------------------------------
6281 test/README.testsuite \
6282 test/TEST-01-BASIC \
6283 test/TEST-01-BASIC/Makefile \
6284 test/TEST-01-BASIC/test.sh \
6285 test/TEST-02-CRYPTSETUP \
6286 test/TEST-02-CRYPTSETUP/Makefile \
6287 test/TEST-02-CRYPTSETUP/test.sh \
6289 test/TEST-03-JOBS/Makefile \
6290 test/TEST-03-JOBS/test-jobs.sh \
6291 test/TEST-03-JOBS/test.sh \
6292 test/TEST-04-JOURNAL/Makefile \
6293 test/TEST-04-JOURNAL/test-journal.sh \
6294 test/TEST-04-JOURNAL/test.sh \
6295 test/TEST-05-RLIMITS/Makefile \
6296 test/TEST-05-RLIMITS/test-rlimits.sh \
6297 test/TEST-05-RLIMITS/test.sh \
6298 test/TEST-06-SELINUX/Makefile \
6299 test/TEST-06-SELINUX/test-selinux-checks.sh \
6300 test/TEST-06-SELINUX/test.sh \
6301 test/TEST-06-SELINUX/systemd_test.te \
6302 test/TEST-06-SELINUX/systemd_test.if \
6303 test/TEST-07-ISSUE-1981/Makefile \
6304 test/TEST-07-ISSUE-1981/test-segfault.sh \
6305 test/TEST-07-ISSUE-1981/test.sh \
6306 test/TEST-08-ISSUE-2730/Makefile \
6307 test/TEST-08-ISSUE-2730/test.sh \
6308 test/TEST-09-ISSUE-2691/Makefile \
6309 test/TEST-09-ISSUE-2691/test.sh \
6310 test/TEST-10-ISSUE-2467/Makefile \
6311 test/TEST-10-ISSUE-2467/test.sh \
6312 test/TEST-11-ISSUE-3166/Makefile \
6313 test/TEST-11-ISSUE-3166/test.sh \
6314 test/TEST-12-ISSUE-3171/Makefile \
6315 test/TEST-12-ISSUE-3171/test.sh \
6316 test/TEST-13-NSPAWN-SMOKE/Makefile \
6317 test/TEST-13-NSPAWN-SMOKE/create-busybox-container \
6318 test/TEST-13-NSPAWN-SMOKE/test.sh \
6319 test/TEST-14-MACHINE-ID/Makefile \
6320 test/TEST-14-MACHINE-ID/test.sh \
6324 test/loopy2.service \
6325 test/loopy3.service \
6326 test/loopy4.service \
6327 test/loopy.service \
6328 test/loopy.service.d \
6329 test/loopy.service.d/compat.conf
6331 # ------------------------------------------------------------------------------
6333 '|rootlibdir=$(rootlibdir)|' \
6334 '|rootlibexecdir=$(rootlibexecdir)|' \
6335 '|rootbindir=$(rootbindir)|' \
6336 '|bindir=$(bindir)|' \
6337 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6338 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6339 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6340 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6341 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6342 '|pkgdatadir=$(pkgdatadir)|' \
6343 '|systemunitdir=$(systemunitdir)|' \
6344 '|userunitdir=$(userunitdir)|' \
6345 '|systempresetdir=$(systempresetdir)|' \
6346 '|userpresetdir=$(userpresetdir)|' \
6347 '|udevhwdbdir=$(udevhwdbdir)|' \
6348 '|udevrulesdir=$(udevrulesdir)|' \
6349 '|catalogdir=$(catalogdir)|' \
6350 '|tmpfilesdir=$(tmpfilesdir)|' \
6351 '|sysusersdir=$(sysusersdir)|' \
6352 '|sysctldir=$(sysctldir)|' \
6353 '|systemgeneratordir=$(systemgeneratordir)|' \
6354 '|usergeneratordir=$(usergeneratordir)|' \
6355 '|systemenvgeneratordir=$(systemenvgeneratordir)|' \
6356 '|userenvgeneratordir=$(userenvgeneratordir)|' \
6357 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6358 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6359 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6360 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6361 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6362 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6363 '|prefix=$(prefix)|' \
6364 '|exec_prefix=$(exec_prefix)|' \
6365 '|libdir=$(libdir)|' \
6366 '|includedir=$(includedir)|' \
6367 '|rootprefix=$(rootprefix)|' \
6368 '|udevlibexecdir=$(udevlibexecdir)|' \
6369 '|SUSHELL=$(SUSHELL)|' \
6370 '|SULOGIN=$(SULOGIN)|' \
6371 '|DEBUGTTY=$(DEBUGTTY)|' \
6374 '|MOUNT_PATH=$(MOUNT_PATH)|' \
6375 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
6376 '|MKDIR_P=$(MKDIR_P)|' \
6377 '|QUOTAON=$(QUOTAON)|' \
6378 '|QUOTACHECK=$(QUOTACHECK)|' \
6379 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6380 '|VARLOGDIR=$(varlogdir)|' \
6381 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6382 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6383 '|PYTHON=$(PYTHON)|' \
6384 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6385 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6386 '|DEFAULT_DNSSEC_MODE=$(DEFAULT_DNSSEC_MODE)|' \
6387 '|KILL_USER_PROCESSES=$(KILL_USER_PROCESSES)|' \
6388 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6389 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6390 '|DEV_KVM_MODE=$(DEV_KVM_MODE)|' \
6391 '|TTY_GID=$(TTY_GID)|' \
6392 '|systemsleepdir=$(systemsleepdir)|' \
6393 '|systemshutdowndir=$(systemshutdowndir)|' \
6394 '|binfmtdir=$(binfmtdir)|' \
6395 '|modulesloaddir=$(modulesloaddir)|'
6398 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6399 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6409 sysctl.d/%: sysctl.d/%.in
6418 src/core/%.systemd: src/core/%.systemd.in
6421 src/%.policy.in: src/%.policy.in.in
6424 src/sulogin-shell/%: src/sulogin-shell/%.in
6426 $(AM_V_GEN)chmod +x $@
6428 shell-completion/%: shell-completion/%.in
6439 $(AM_V_GEN)chmod +x $@
6441 src/%.c: src/%.gperf
6442 $(AM_V_at)$(MKDIR_P) $(dir $@)
6443 $(AM_V_GPERF)$(GPERF) < $< > $@
6445 src/%: src/%.m4 $(top_builddir)/config.status
6446 $(AM_V_at)$(MKDIR_P) $(dir $@)
6447 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6449 sysusers.d/%: sysusers.d/%.m4 $(top_builddir)/config.status
6450 $(AM_V_at)$(MKDIR_P) $(dir $@)
6451 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6453 tmpfiles.d/%: tmpfiles.d/%.m4 $(top_builddir)/config.status
6454 $(AM_V_at)$(MKDIR_P) $(dir $@)
6455 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6458 units/%: units/%.m4 $(top_builddir)/config.status
6459 $(AM_V_at)$(MKDIR_P) $(dir $@)
6460 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6462 units/user/%: units/user/%.m4 $(top_builddir)/config.status
6463 $(AM_V_at)$(MKDIR_P) $(dir $@)
6464 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6467 nodist_polkitpolicy_DATA = \
6468 $(polkitpolicy_files) \
6469 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6470 polkitrules_DATA = $(polkitrules_files)
6471 if ENABLE_POLKIT_PKLA
6472 polkitpkla_DATA = $(polkitpkla_files)
6477 $(polkitpolicy_in_files) \
6478 $(polkitpolicy_in_in_files)
6480 # ------------------------------------------------------------------------------
6481 man/custom-entities.ent: configure.ac
6482 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6483 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6484 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6488 man/custom-entities.ent
6493 --stringparam man.output.quietly 1 \
6494 --stringparam funcsynopsis.style ansi \
6495 --stringparam man.authors.section.enabled 0 \
6496 --stringparam man.copyright.section.enabled 0 \
6497 --stringparam systemd.version $(PACKAGE_VERSION) \
6498 --path '$(builddir)/man:$(srcdir)/man'
6500 XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
6501 XSLTPROC_PROCESS_MAN = \
6502 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6504 XSLTPROC_PROCESS_HTML = \
6505 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6507 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6508 $(XSLTPROC_PROCESS_MAN)
6510 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6511 $(XSLTPROC_PROCESS_MAN)
6513 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6514 $(XSLTPROC_PROCESS_MAN)
6516 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6517 $(XSLTPROC_PROCESS_MAN)
6519 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6520 $(XSLTPROC_PROCESS_MAN)
6522 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6523 $(XSLTPROC_PROCESS_HTML)
6526 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6530 man/custom-html.xsl \
6533 # ------------------------------------------------------------------------------
6536 docs/sysvinit/README
6541 docs/sysvinit/README: docs/sysvinit/README.in
6544 docs/var-log/README: docs/var-log/README.in
6548 docs/sysvinit/README \
6553 docs/sysvinit/README.in \
6554 docs/var-log/README.in
6556 SOCKETS_TARGET_WANTS += \
6557 systemd-initctl.socket
6561 MULTI_USER_TARGET_WANTS += \
6562 systemd-update-utmp-runlevel.service
6563 GRAPHICAL_TARGET_WANTS += \
6564 systemd-update-utmp-runlevel.service
6565 RESCUE_TARGET_WANTS += \
6566 systemd-update-utmp-runlevel.service
6569 SYSINIT_TARGET_WANTS += \
6570 systemd-update-utmp.service
6573 SYSINIT_TARGET_WANTS += \
6574 systemd-update-done.service
6576 LOCAL_FS_TARGET_WANTS += \
6577 systemd-remount-fs.service \
6580 REMOTE_FS_TARGET_WANTS += \
6581 var-lib-machines.mount
6583 MULTI_USER_TARGET_WANTS += \
6585 systemd-ask-password-wall.path
6587 SYSINIT_TARGET_WANTS += \
6588 dev-hugepages.mount \
6590 sys-kernel-config.mount \
6591 sys-kernel-debug.mount \
6592 sys-fs-fuse-connections.mount \
6593 systemd-sysctl.service \
6594 systemd-ask-password-console.path
6597 MACHINES_TARGET_WANTS += \
6598 var-lib-machines.mount
6602 SYSTEM_UNIT_ALIASES += \
6603 poweroff.target runlevel0.target \
6604 rescue.target runlevel1.target \
6605 multi-user.target runlevel2.target \
6606 multi-user.target runlevel3.target \
6607 multi-user.target runlevel4.target \
6608 graphical.target runlevel5.target \
6609 reboot.target runlevel6.target
6612 SYSTEM_UNIT_ALIASES += \
6613 graphical.target default.target \
6614 reboot.target ctrl-alt-del.target \
6615 getty@.service autovt@.service
6617 GENERAL_ALIASES += \
6618 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6619 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6620 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6621 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6625 $(systemunitdir)/runlevel1.target.wants \
6626 $(systemunitdir)/runlevel2.target.wants \
6627 $(systemunitdir)/runlevel3.target.wants \
6628 $(systemunitdir)/runlevel4.target.wants \
6629 $(systemunitdir)/runlevel5.target.wants
6634 $(prefix)/lib/modules-load.d \
6635 $(sysconfdir)/modules-load.d \
6636 $(prefix)/lib/systemd/network \
6637 $(sysconfdir)/systemd/network \
6638 $(prefix)/lib/sysctl.d \
6639 $(sysconfdir)/sysctl.d \
6640 $(prefix)/lib/kernel/install.d \
6641 $(sysconfdir)/kernel/install.d \
6642 $(systemshutdowndir) \
6644 $(systemgeneratordir) \
6645 $(usergeneratordir) \
6648 $(pkgsysconfdir)/system \
6649 $(pkgsysconfdir)/system/multi-user.target.wants \
6650 $(pkgsysconfdir)/system/getty.target.wants \
6651 $(pkgsysconfdir)/user \
6652 $(dbussessionservicedir) \
6653 $(sysconfdir)/xdg/systemd
6655 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6657 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6659 install-data-hook: $(INSTALL_DATA_HOOKS)
6661 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6663 clean-local: $(CLEAN_LOCAL_HOOKS)
6664 rm -rf $(abs_srcdir)/install-tree
6665 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6666 $(abs_srcdir)/hwdb/iab.txt
6668 DISTCHECK_CONFIGURE_FLAGS = \
6669 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6670 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6671 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6672 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6673 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6674 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6675 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6676 --with-rpmmacrosdir=$$dc_install_base/$(rpmmacrosdir) \
6677 --with-rootprefix=$$dc_install_base \
6678 --enable-compat-libs
6681 DISTCHECK_CONFIGURE_FLAGS += \
6682 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6683 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6685 DISTCHECK_CONFIGURE_FLAGS += \
6686 --with-sysvinit-path= \
6687 --with-sysvrcnd-path=
6691 DISTCHECK_CONFIGURE_FLAGS += \
6694 DISTCHECK_CONFIGURE_FLAGS += \
6698 .PHONY: dist-check-help
6699 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6700 for i in $(abspath $^); do \
6701 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6702 echo "$(basename $$i) --help output is too wide:"; \
6703 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6707 include_compilers = "$(CC)" "$(CC) -ansi" "$(CC) -std=iso9899:1990"
6708 public_headers = $(filter-out src/systemd/_sd-common.h, $(pkginclude_HEADERS) $(include_HEADERS))
6709 .PHONY: dist-check-includes
6710 dist-check-includes: $(public_headers)
6712 for i in $(abspath $^); do \
6713 for cc in $(include_compilers); do \
6714 echo "$$cc -o/dev/null -c -x c -include "$$i" - </dev/null"; \
6715 $$cc -o/dev/null -c -x c -include "$$i" - </dev/null || res=1; \
6720 hwdb-update: tools/meson-hwdb-update.sh
6721 $< $(top_srcdir)/hwdb
6723 .PHONY: built-sources
6724 built-sources: $(BUILT_SOURCES)
6728 git tag -s "v$(PACKAGE_VERSION)" -m "systemd $(PACKAGE_VERSION)"
6732 git archive -o systemd-$(PACKAGE_VERSION).tar.gz --prefix=systemd-$(PACKAGE_VERSION)/ HEAD
6735 gpg2 --detach-sign -a -o $@ $<
6737 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6741 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6743 .PHONY: install-tree
6745 rm -rf $(abs_srcdir)/install-tree
6746 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6747 tree $(abs_srcdir)/install-tree
6749 # Let's run all tests of the test suite, but under valgrind. Let's
6750 # exclude perl/python/shell scripts we have in there
6751 .PHONY: valgrind-tests
6752 valgrind-tests: $(TESTS)
6753 $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \
6754 if $(LIBTOOL) --mode=execute file $$f | grep -q shell; then \
6755 echo -e "$${x}Skipping non-binary $$f"; else \
6756 echo -e "$${x}Running $$f"; \
6757 $(AM_TESTS_ENVIRONMENT) $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6762 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6764 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6765 $(AM_V_GEN)sort -u $^ > $@
6767 .PHONY: check-api-docs
6768 check-api-docs: exported man
6769 $(AM_V_GEN)for symbol in `cat exported` ; do \
6770 if test -f $(builddir)/man/$$symbol.html ; then \
6771 echo " Symbol $$symbol() is documented." ; \
6773 echo "‣ Symbol $$symbol() lacks documentation." ; \
6777 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6778 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6780 undefined defined: $(ALL_OBJECTS)
6781 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6782 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6783 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6789 .PHONY: check-api-unused
6790 check-api-unused: defined undefined exported
6791 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6793 .PHONY: check-includes
6794 check-includes: $(top_srcdir)/tools/check-includes.pl
6795 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6796 | xargs $(top_srcdir)/tools/check-includes.pl
6799 $(top_srcdir)/tools/check-includes.pl
6801 # Stupid test that everything purported to be exported really is
6802 define generate-sym-test
6803 $(AM_V_at)$(MKDIR_P) $(dir $@)
6804 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6805 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6806 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6807 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6808 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6809 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6810 $(AM_V_at)printf 'return 0; }\n' >> $@
6813 test-libsystemd-sym.c: \
6814 $(top_builddir)/src/libsystemd/libsystemd.sym \
6815 src/systemd/sd-journal.h \
6816 src/systemd/sd-daemon.h \
6817 src/systemd/sd-login.h \
6818 src/systemd/sd-bus.h \
6819 src/systemd/sd-utf8.h \
6820 src/systemd/sd-resolve.h \
6821 src/systemd/sd-path.h \
6822 src/systemd/sd-event.h
6823 $(generate-sym-test)
6825 test-libudev-sym.c: \
6826 src/libudev/libudev.sym \
6828 $(generate-sym-test)
6830 nodist_test_libsystemd_sym_SOURCES = \
6831 test-libsystemd-sym.c
6832 test_libsystemd_sym_LDADD = \
6835 nodist_test_libudev_sym_SOURCES = \
6837 test_libudev_sym_CFLAGS = \
6839 -Wno-deprecated-declarations
6840 test_libudev_sym_LDADD = \
6844 test-libsystemd-sym.c \
6848 test-libsystemd-sym.c \
6852 test-libsystemd-sym \
6855 .PHONY: install-tests
6856 install-tests: $(tests) $(TEST_DATA_FILES)
6857 for f in $(tests); do \
6858 if [ -x $(top_builddir)/.libs/$$f ]; then \
6859 install -D -m 755 $(top_builddir)/.libs/$$f $(DESTDIR)/$(testsdir)/$$f; \
6861 install -D -m 755 $(top_builddir)/$$f $(DESTDIR)/$(testsdir)/$$f; \
6864 for f in $(TEST_DATA_FILES); do \
6865 install -D -m 644 $(top_srcdir)/$$f $(DESTDIR)/$(testsdir)/testdata/$${f#test/}; \
6871 cppcheck --enable=all -q $(top_srcdir)
6873 # Used to extract compile flags for YCM.
6879 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | sed 's/ / /g' | awk '{ print $$0 "," }' | sort -u
6882 tools/gdb-sd_dump_hashmaps.py
6886 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6890 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -