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 bashcompletiondir=@bashcompletiondir@
59 zshcompletiondir=@zshcompletiondir@
60 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
61 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
62 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
63 varlogdir=$(localstatedir)/log
64 systemdstatedir=$(localstatedir)/lib/systemd
65 catalogstatedir=$(systemdstatedir)/catalog
66 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
68 # Our own, non-special dirs
69 pkgsysconfdir=$(sysconfdir)/systemd
70 userunitdir=$(prefix)/lib/systemd/user
71 userpresetdir=$(prefix)/lib/systemd/user-preset
72 tmpfilesdir=$(prefix)/lib/tmpfiles.d
73 sysusersdir=$(prefix)/lib/sysusers.d
74 sysctldir=$(prefix)/lib/sysctl.d
75 binfmtdir=$(prefix)/lib/binfmt.d
76 modulesloaddir=$(prefix)/lib/modules-load.d
77 networkdir=$(rootprefix)/lib/systemd/network
78 pkgincludedir=$(includedir)/systemd
79 systemgeneratordir=$(rootlibexecdir)/system-generators
80 usergeneratordir=$(prefix)/lib/systemd/user-generators
81 systemshutdowndir=$(rootlibexecdir)/system-shutdown
82 systemsleepdir=$(rootlibexecdir)/system-sleep
83 systemunitdir=$(rootprefix)/lib/systemd/system
84 systempresetdir=$(rootprefix)/lib/systemd/system-preset
85 udevlibexecdir=$(rootprefix)/lib/udev
86 udevhomedir=$(udevlibexecdir)
87 udevrulesdir=$(udevlibexecdir)/rules.d
88 udevhwdbdir=$(udevlibexecdir)/hwdb.d
89 catalogdir=$(prefix)/lib/systemd/catalog
90 kernelinstalldir = $(prefix)/lib/kernel/install.d
91 factory_etcdir = $(datadir)/factory/etc
92 factory_pamdir = $(datadir)/factory/etc/pam.d
93 bootlibdir = $(prefix)/lib/systemd/boot/efi
95 # And these are the special ones for /
96 rootprefix=@rootprefix@
97 rootbindir=$(rootprefix)/bin
98 rootlibexecdir=$(rootprefix)/lib/systemd
103 UNINSTALL_EXEC_HOOKS =
105 UNINSTALL_DATA_HOOKS =
106 DISTCLEAN_LOCAL_HOOKS =
115 polkitpolicy_in_in_files =
116 polkitpolicy_in_files =
118 dist_udevrules_DATA =
119 nodist_udevrules_DATA =
120 dist_pkgsysconf_DATA =
121 nodist_pkgsysconf_DATA =
122 dist_dbuspolicy_DATA =
123 dist_dbussystemservice_DATA =
124 dist_systemunit_DATA_busnames =
130 TEST_EXTENSIONS = .py
131 PY_LOG_COMPILER = $(PYTHON)
132 DISABLE_HARD_ERRORS = yes
134 noinst_PROGRAMS = $(manual_tests) $(tests)
140 if ENABLE_BASH_COMPLETION
141 dist_bashcompletion_DATA = $(dist_bashcompletion_data)
142 nodist_bashcompletion_DATA = $(nodist_bashcompletion_data)
144 if ENABLE_ZSH_COMPLETION
145 dist_zshcompletion_DATA = $(dist_zshcompletion_data)
146 nodist_zshcompletion_DATA = $(nodist_zshcompletion_data)
148 udevlibexec_PROGRAMS =
149 gperf_gperf_sources =
151 in_files = $(filter %.in,$(EXTRA_DIST))
152 in_in_files = $(filter %.in.in, $(in_files))
153 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
155 CLEANFILES = $(BUILT_SOURCES) \
156 $(pkgconfigdata_DATA) \
157 $(pkgconfiglib_DATA) \
158 $(nodist_bashcompletion_data) \
159 $(nodist_zshcompletion_data) \
160 $(in_files:.in=) $(in_in_files:.in.in=) \
163 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
164 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
165 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
168 -include $(top_builddir)/config.h \
169 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
170 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
171 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
172 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
173 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
174 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
175 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
176 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
177 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
178 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
179 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
180 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
181 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
182 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
183 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
184 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
185 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
186 -DROOTPREFIX=\"$(rootprefix)\" \
187 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
188 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
189 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
190 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
191 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
192 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
193 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
194 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
195 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
196 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
197 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
198 -DQUOTACHECK=\"$(QUOTACHECK)\" \
199 -DKEXEC=\"$(KEXEC)\" \
200 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
201 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
202 -DLIBDIR=\"$(libdir)\" \
203 -DROOTLIBDIR=\"$(rootlibdir)\" \
204 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
205 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
206 -I $(top_srcdir)/src \
207 -I $(top_builddir)/src/basic \
208 -I $(top_srcdir)/src/basic \
209 -I $(top_srcdir)/src/shared \
210 -I $(top_builddir)/src/shared \
211 -I $(top_srcdir)/src/network \
212 -I $(top_srcdir)/src/login \
213 -I $(top_srcdir)/src/journal \
214 -I $(top_builddir)/src/journal \
215 -I $(top_srcdir)/src/timedate \
216 -I $(top_srcdir)/src/timesync \
217 -I $(top_srcdir)/src/nspawn \
218 -I $(top_srcdir)/src/resolve \
219 -I $(top_builddir)/src/resolve \
220 -I $(top_srcdir)/src/systemd \
221 -I $(top_builddir)/src/core \
222 -I $(top_srcdir)/src/core \
223 -I $(top_srcdir)/src/libudev \
224 -I $(top_srcdir)/src/udev \
225 -I $(top_srcdir)/src/udev/net \
226 -I $(top_builddir)/src/udev \
227 -I $(top_srcdir)/src/libsystemd/sd-bus \
228 -I $(top_srcdir)/src/libsystemd/sd-event \
229 -I $(top_srcdir)/src/libsystemd/sd-login \
230 -I $(top_srcdir)/src/libsystemd/sd-netlink \
231 -I $(top_srcdir)/src/libsystemd/sd-network \
232 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
233 -I $(top_srcdir)/src/libsystemd/sd-device \
234 -I $(top_srcdir)/src/libsystemd-network \
237 AM_CFLAGS = $(OUR_CFLAGS)
238 AM_LDFLAGS = $(OUR_LDFLAGS)
240 # ------------------------------------------------------------------------------
241 define move-to-rootlibdir
242 if test "$(libdir)" != "$(rootlibdir)"; then \
243 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
244 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
245 rm -f $(DESTDIR)$(libdir)/$$libname && \
246 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
247 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
253 SHUTDOWN_TARGET_WANTS =
254 LOCAL_FS_TARGET_WANTS =
255 MULTI_USER_TARGET_WANTS =
256 GRAPHICAL_TARGET_WANTS =
257 RESCUE_TARGET_WANTS =
258 SYSINIT_TARGET_WANTS =
259 SOCKETS_TARGET_WANTS =
260 BUSNAMES_TARGET_WANTS =
261 TIMERS_TARGET_WANTS =
262 USER_SOCKETS_TARGET_WANTS =
263 USER_DEFAULT_TARGET_WANTS =
264 USER_BUSNAMES_TARGET_WANTS =
266 SYSTEM_UNIT_ALIASES =
270 install-target-wants-hook:
271 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
274 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
275 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
276 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
277 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
280 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
281 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
283 install-busnames-target-wants-hook:
284 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
285 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
288 [ -z "$$what" ] || ( \
289 dir=$(DESTDIR)$$dir/$$wants.wants && \
290 $(MKDIR_P) -m 0755 $$dir && \
293 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
296 install-directories-hook:
297 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
299 install-aliases-hook:
300 set -- $(SYSTEM_UNIT_ALIASES) && \
301 dir=$(systemunitdir) && $(install-aliases)
302 set -- $(USER_UNIT_ALIASES) && \
303 dir=$(userunitdir) && $(install-relative-aliases)
304 set -- $(GENERAL_ALIASES) && \
305 dir= && $(install-relative-aliases)
307 define install-aliases
308 while [ -n "$$1" ]; do \
309 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
310 rm -f $(DESTDIR)$$dir/$$2 && \
311 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
312 shift 2 || exit $$?; \
316 define install-relative-aliases
317 while [ -n "$$1" ]; do \
318 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
319 rm -f $(DESTDIR)$$dir/$$2 && \
320 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
321 shift 2 || exit $$?; \
325 install-touch-usr-hook:
326 touch -c $(DESTDIR)/$(prefix)
328 INSTALL_EXEC_HOOKS += \
329 install-target-wants-hook \
330 install-directories-hook \
331 install-aliases-hook \
332 install-touch-usr-hook
334 INSTALL_EXEC_HOOKS += \
335 install-busnames-target-wants-hook
337 # ------------------------------------------------------------------------------
338 AM_V_M4 = $(AM_V_M4_$(V))
339 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
340 AM_V_M4_0 = @echo " M4 " $@;
342 AM_V_XSLT = $(AM_V_XSLT_$(V))
343 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
344 AM_V_XSLT_0 = @echo " XSLT " $@;
346 AM_V_GPERF = $(AM_V_GPERF_$(V))
347 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
348 AM_V_GPERF_0 = @echo " GPERF " $@;
350 AM_V_LN = $(AM_V_LN_$(V))
351 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
352 AM_V_LN_0 = @echo " LN " $@;
354 AM_V_RM = $(AM_V_RM_$(V))
355 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
356 AM_V_RM_0 = @echo " RM " $@;
358 # ------------------------------------------------------------------------------
362 systemd-ask-password \
363 systemd-tty-ask-password-agent \
364 systemd-machine-id-setup \
371 systemd-detect-virt \
375 systemd-stdio-bridge \
379 src/kernel-install/kernel-install
381 dist_kernelinstall_SCRIPTS = \
382 src/kernel-install/50-depmod.install \
383 src/kernel-install/90-loaderentry.install
385 rootlibexec_PROGRAMS = \
387 systemd-cgroups-agent \
391 systemd-reply-password \
396 systemd-socket-proxyd \
400 rootlibexec_PROGRAMS += \
404 systemgenerator_PROGRAMS = \
405 systemd-getty-generator \
406 systemd-fstab-generator \
407 systemd-system-update-generator \
408 systemd-debug-generator
410 dist_bashcompletion_data = \
411 shell-completion/bash/busctl \
412 shell-completion/bash/journalctl \
413 shell-completion/bash/systemd-analyze \
414 shell-completion/bash/systemd-cat \
415 shell-completion/bash/systemd-cgls \
416 shell-completion/bash/systemd-cgtop \
417 shell-completion/bash/systemd-delta \
418 shell-completion/bash/systemd-detect-virt \
419 shell-completion/bash/systemd-nspawn \
420 shell-completion/bash/systemd-path \
421 shell-completion/bash/systemd-run \
422 shell-completion/bash/udevadm \
423 shell-completion/bash/kernel-install
425 nodist_bashcompletion_data = \
426 shell-completion/bash/systemctl
428 dist_zshcompletion_data = \
429 shell-completion/zsh/_busctl \
430 shell-completion/zsh/_journalctl \
431 shell-completion/zsh/_udevadm \
432 shell-completion/zsh/_kernel-install \
433 shell-completion/zsh/_systemd-nspawn \
434 shell-completion/zsh/_systemd-analyze \
435 shell-completion/zsh/_systemd-run \
436 shell-completion/zsh/_sd_hosts_or_user_at_host \
437 shell-completion/zsh/_sd_outputmodes \
438 shell-completion/zsh/_sd_unit_files \
439 shell-completion/zsh/_systemd-delta \
440 shell-completion/zsh/_systemd
442 nodist_zshcompletion_data = \
443 shell-completion/zsh/_systemctl
446 shell-completion/bash/systemctl.in \
447 shell-completion/zsh/_systemctl.in
450 sysctl.d/50-default.conf
452 dist_systemunit_DATA = \
453 units/graphical.target \
454 units/multi-user.target \
455 units/emergency.target \
456 units/sysinit.target \
462 units/local-fs.target \
463 units/local-fs-pre.target \
464 units/initrd.target \
465 units/initrd-fs.target \
466 units/initrd-root-fs.target \
467 units/remote-fs.target \
468 units/remote-fs-pre.target \
469 units/network.target \
470 units/network-pre.target \
471 units/network-online.target \
472 units/nss-lookup.target \
473 units/nss-user-lookup.target \
474 units/poweroff.target \
475 units/reboot.target \
476 units/rescue.target \
477 units/rpcbind.target \
478 units/time-sync.target \
479 units/shutdown.target \
481 units/umount.target \
482 units/sigpwr.target \
484 units/sockets.target \
485 units/timers.target \
487 units/suspend.target \
489 units/slices.target \
492 units/systemd-initctl.socket \
493 units/syslog.socket \
494 units/dev-hugepages.mount \
495 units/dev-mqueue.mount \
496 units/sys-kernel-config.mount \
497 units/sys-kernel-debug.mount \
498 units/sys-fs-fuse-connections.mount \
500 units/var-lib-machines.mount \
501 units/printer.target \
503 units/bluetooth.target \
504 units/smartcard.target \
505 units/systemd-ask-password-wall.path \
506 units/systemd-ask-password-console.path \
507 units/systemd-udevd-control.socket \
508 units/systemd-udevd-kernel.socket \
509 units/system-update.target \
510 units/initrd-switch-root.target \
511 units/machines.target
513 dist_systemunit_DATA += \
514 $(dist_systemunit_DATA_busnames)
516 dist_systemunit_DATA_busnames += \
517 units/busnames.target
519 nodist_systemunit_DATA = \
520 units/getty@.service \
521 units/serial-getty@.service \
522 units/console-shell.service \
523 units/console-getty.service \
524 units/container-getty@.service \
525 units/systemd-initctl.service \
526 units/systemd-remount-fs.service \
527 units/systemd-ask-password-wall.service \
528 units/systemd-ask-password-console.service \
529 units/systemd-sysctl.service \
530 units/emergency.service \
531 units/rescue.service \
532 units/user@.service \
533 units/systemd-suspend.service \
534 units/systemd-halt.service \
535 units/systemd-poweroff.service \
536 units/systemd-reboot.service \
537 units/systemd-kexec.service \
538 units/systemd-exit.service \
539 units/systemd-fsck@.service \
540 units/systemd-fsck-root.service \
541 units/systemd-machine-id-commit.service \
542 units/systemd-udevd.service \
543 units/systemd-udev-trigger.service \
544 units/systemd-udev-settle.service \
545 units/systemd-hwdb-update.service \
546 units/debug-shell.service \
547 units/initrd-parse-etc.service \
548 units/initrd-cleanup.service \
549 units/initrd-udevadm-cleanup-db.service \
550 units/initrd-switch-root.service \
551 units/systemd-nspawn@.service \
552 units/systemd-update-done.service
555 nodist_systemunit_DATA += \
556 units/systemd-update-utmp.service \
557 units/systemd-update-utmp-runlevel.service
560 dist_userunit_DATA = \
561 units/user/basic.target \
562 units/user/default.target \
563 units/user/exit.target
565 nodist_userunit_DATA = \
566 units/user/systemd-exit.service
568 dist_systempreset_DATA = \
569 system-preset/90-systemd.preset
572 units/getty@.service.m4 \
573 units/serial-getty@.service.m4 \
574 units/console-shell.service.m4.in \
575 units/console-getty.service.m4.in \
576 units/container-getty@.service.m4.in \
577 units/rescue.service.in \
578 units/systemd-initctl.service.in \
579 units/systemd-remount-fs.service.in \
580 units/systemd-update-utmp.service.in \
581 units/systemd-update-utmp-runlevel.service.in \
582 units/systemd-ask-password-wall.service.in \
583 units/systemd-ask-password-console.service.in \
584 units/systemd-sysctl.service.in \
585 units/emergency.service.in \
586 units/systemd-halt.service.in \
587 units/systemd-poweroff.service.in \
588 units/systemd-reboot.service.in \
589 units/systemd-kexec.service.in \
590 units/systemd-exit.service.in \
591 units/user/systemd-exit.service.in \
592 units/systemd-fsck@.service.in \
593 units/systemd-fsck-root.service.in \
594 units/systemd-machine-id-commit.service.in \
595 units/user@.service.m4.in \
596 units/debug-shell.service.in \
597 units/systemd-suspend.service.in \
598 units/quotaon.service.in \
599 units/initrd-parse-etc.service.in \
600 units/initrd-cleanup.service.in \
601 units/initrd-udevadm-cleanup-db.service.in \
602 units/initrd-switch-root.service.in \
603 units/systemd-nspawn@.service.in \
604 units/systemd-update-done.service.in \
608 nodist_systemunit_DATA += \
609 units/rc-local.service \
610 units/halt-local.service
612 systemgenerator_PROGRAMS += \
613 systemd-sysv-generator \
614 systemd-rc-local-generator
618 src/systemctl/systemd-sysv-install.SKELETON \
619 units/rc-local.service.in \
620 units/halt-local.service.in
622 # automake is broken and can't handle files with a dash in front
623 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
625 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
627 units-uninstall-hook:
628 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
630 INSTALL_DATA_HOOKS += units-install-hook
631 UNINSTALL_DATA_HOOKS += units-uninstall-hook
640 src/libsystemd/sd-bus/PORTING-DBUS1 \
641 src/libsystemd/sd-bus/DIFFERENCES \
642 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
654 @INTLTOOL_POLICY_RULE@
656 # ------------------------------------------------------------------------------
661 include Makefile-man.am
663 .PHONY: man update-man-list
664 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
667 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
669 ${XML_FILES:.xml=.html}
671 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
691 $(AM_V_at)$(MKDIR_P) $(dir $@)
692 $(AM_V_LN)$(LN_S) -f ../../man $@
694 man/index.html: man/systemd.index.html
695 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
705 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
706 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
707 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
709 # This target should only be run manually. It recreates Makefile-man.am
710 # file in the source directory based on all man/*.xml files. Run it after
711 # adding, removing, or changing the conditional in a man page.
712 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
713 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
714 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
715 @echo "Makefile-man.am has been regenerated"
717 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
718 $(AM_V_at)$(MKDIR_P) $(dir $@)
719 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
721 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
722 $(AM_V_at)$(MKDIR_P) $(dir $@)
723 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
726 man/systemd.index.xml \
727 man/systemd.directives.xml
730 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
731 tools/make-man-index.py \
732 tools/make-man-rules.py \
733 tools/make-directive-index.py \
734 tools/xml_helper.py \
735 man/glib-event-glue.c
737 # ------------------------------------------------------------------------------
738 noinst_LTLIBRARIES += \
741 libbasic_la_SOURCES = \
742 src/basic/missing.h \
743 src/basic/capability-util.c \
744 src/basic/capability-util.h \
745 src/basic/c-rbtree.c \
746 src/basic/c-rbtree.h \
747 src/basic/conf-files.c \
748 src/basic/conf-files.h \
749 src/basic/stdio-util.h \
750 src/basic/hostname-util.h \
751 src/basic/hostname-util.c \
752 src/basic/unit-name.c \
753 src/basic/unit-name.h \
755 src/basic/securebits.h \
756 src/basic/special.h \
758 src/basic/unaligned.h \
761 src/basic/sparse-endian.h \
765 src/basic/io-util.c \
766 src/basic/io-util.h \
767 src/basic/string-util.c \
768 src/basic/string-util.h \
769 src/basic/fd-util.c \
770 src/basic/fd-util.h \
771 src/basic/parse-util.c \
772 src/basic/parse-util.h \
773 src/basic/user-util.c \
774 src/basic/user-util.h \
775 src/basic/rlimit-util.c \
776 src/basic/rlimit-util.h \
777 src/basic/dirent-util.c \
778 src/basic/dirent-util.h \
779 src/basic/xattr-util.c \
780 src/basic/xattr-util.h \
781 src/basic/chattr-util.c \
782 src/basic/chattr-util.h \
783 src/basic/proc-cmdline.c \
784 src/basic/proc-cmdline.h \
785 src/basic/fs-util.c \
786 src/basic/fs-util.h \
787 src/basic/syslog-util.c \
788 src/basic/syslog-util.h \
789 src/basic/stat-util.c \
790 src/basic/stat-util.h \
791 src/basic/mount-util.c \
792 src/basic/mount-util.h \
793 src/basic/hexdecoct.c \
794 src/basic/hexdecoct.h \
795 src/basic/glob-util.h \
796 src/basic/glob-util.c \
797 src/basic/extract-word.c \
798 src/basic/extract-word.h \
801 src/basic/cpu-set-util.c \
802 src/basic/cpu-set-util.h \
803 src/basic/lockfile-util.c \
804 src/basic/lockfile-util.h \
805 src/basic/path-util.c \
806 src/basic/path-util.h \
807 src/basic/time-util.c \
808 src/basic/time-util.h \
809 src/basic/locale-util.c \
810 src/basic/locale-util.h \
811 src/basic/umask-util.h \
812 src/basic/signal-util.c \
813 src/basic/signal-util.h \
814 src/basic/string-table.c \
815 src/basic/string-table.h \
816 src/basic/mempool.c \
817 src/basic/mempool.h \
818 src/basic/hashmap.c \
819 src/basic/hashmap.h \
820 src/basic/hash-funcs.c \
821 src/basic/hash-funcs.h \
822 src/basic/siphash24.c \
823 src/basic/siphash24.h \
825 src/basic/ordered-set.h \
826 src/basic/ordered-set.c \
833 src/basic/web-util.c \
834 src/basic/web-util.h \
837 src/basic/env-util.c \
838 src/basic/env-util.h \
841 src/basic/strxcpyx.c \
842 src/basic/strxcpyx.h \
845 src/basic/bus-label.c \
846 src/basic/bus-label.h \
847 src/basic/ratelimit.h \
848 src/basic/ratelimit.c \
849 src/basic/exit-status.c \
850 src/basic/exit-status.h \
853 src/basic/architecture.c \
854 src/basic/architecture.h \
855 src/basic/smack-util.c \
856 src/basic/smack-util.h \
857 src/basic/device-nodes.c \
858 src/basic/device-nodes.h \
861 src/basic/gunicode.c \
862 src/basic/gunicode.h \
863 src/basic/socket-util.c \
864 src/basic/socket-util.h \
865 src/basic/in-addr-util.c \
866 src/basic/in-addr-util.h \
867 src/basic/ether-addr-util.h \
868 src/basic/ether-addr-util.c \
869 src/basic/replace-var.c \
870 src/basic/replace-var.h \
871 src/basic/clock-util.c \
872 src/basic/clock-util.h \
873 src/basic/calendarspec.c \
874 src/basic/calendarspec.h \
877 src/basic/MurmurHash2.c \
878 src/basic/MurmurHash2.h \
881 src/basic/cgroup-util.c \
882 src/basic/cgroup-util.h \
883 src/basic/errno-list.c \
884 src/basic/errno-list.h \
885 src/basic/af-list.c \
886 src/basic/af-list.h \
887 src/basic/arphrd-list.c \
888 src/basic/arphrd-list.h \
889 src/basic/terminal-util.c \
890 src/basic/terminal-util.h \
891 src/basic/login-util.h \
892 src/basic/login-util.c \
893 src/basic/cap-list.c \
894 src/basic/cap-list.h \
895 src/basic/audit-util.c \
896 src/basic/audit-util.h \
899 src/basic/barrier.c \
900 src/basic/barrier.h \
903 src/basic/memfd-util.c \
904 src/basic/memfd-util.h \
905 src/basic/process-util.c \
906 src/basic/process-util.h \
907 src/basic/random-util.c \
908 src/basic/random-util.h \
914 src/basic/socket-label.c \
917 src/basic/btrfs-util.c \
918 src/basic/btrfs-util.h \
919 src/basic/btrfs-ctree.h \
920 src/basic/selinux-util.c \
921 src/basic/selinux-util.h \
922 src/basic/mkdir-label.c \
923 src/basic/fileio-label.c \
924 src/basic/fileio-label.h \
929 src/basic/alloc-util.h \
930 src/basic/alloc-util.c \
931 src/basic/formats-util.h \
934 nodist_libbasic_la_SOURCES = \
935 src/basic/errno-from-name.h \
936 src/basic/errno-to-name.h \
937 src/basic/af-from-name.h \
938 src/basic/af-to-name.h \
939 src/basic/arphrd-from-name.h \
940 src/basic/arphrd-to-name.h \
941 src/basic/cap-from-name.h \
942 src/basic/cap-to-name.h
944 libbasic_la_CFLAGS = \
950 libbasic_la_LIBADD = \
956 # -----------------------------------------------------------------------------
957 noinst_LTLIBRARIES += \
960 libshared_la_SOURCES = \
961 src/shared/output-mode.h \
963 src/shared/udev-util.h \
964 src/shared/linux/auto_dev-ioctl.h \
965 src/shared/initreq.h \
966 src/shared/dns-domain.c \
967 src/shared/dns-domain.h \
968 src/shared/efivars.c \
969 src/shared/efivars.h \
970 src/shared/fstab-util.c \
971 src/shared/fstab-util.h \
972 src/shared/sleep-config.c \
973 src/shared/sleep-config.h \
974 src/shared/conf-parser.c \
975 src/shared/conf-parser.h \
978 src/shared/spawn-polkit-agent.c \
979 src/shared/spawn-polkit-agent.h \
980 src/shared/apparmor-util.c \
981 src/shared/apparmor-util.h \
982 src/shared/ima-util.c \
983 src/shared/ima-util.h \
984 src/shared/ptyfwd.c \
985 src/shared/ptyfwd.h \
986 src/shared/base-filesystem.c \
987 src/shared/base-filesystem.h \
988 src/shared/uid-range.c \
989 src/shared/uid-range.h \
990 src/shared/install.c \
991 src/shared/install.h \
992 src/shared/install-printf.c \
993 src/shared/install-printf.h \
994 src/shared/path-lookup.c \
995 src/shared/path-lookup.h \
996 src/shared/specifier.c \
997 src/shared/specifier.h \
998 src/shared/dev-setup.c \
999 src/shared/dev-setup.h \
1000 src/shared/dropin.c \
1001 src/shared/dropin.h \
1002 src/shared/condition.c \
1003 src/shared/condition.h \
1004 src/shared/clean-ipc.c \
1005 src/shared/clean-ipc.h \
1006 src/shared/generator.h \
1007 src/shared/generator.c \
1008 src/shared/acpi-fpdt.h \
1009 src/shared/acpi-fpdt.c \
1010 src/shared/boot-timestamps.h \
1011 src/shared/boot-timestamps.c \
1012 src/shared/cgroup-show.c \
1013 src/shared/cgroup-show.h \
1014 src/shared/utmp-wtmp.h \
1015 src/shared/watchdog.c \
1016 src/shared/watchdog.h \
1017 src/shared/spawn-ask-password-agent.c \
1018 src/shared/spawn-ask-password-agent.h \
1019 src/shared/ask-password-api.c \
1020 src/shared/ask-password-api.h \
1021 src/shared/switch-root.h \
1022 src/shared/switch-root.c \
1023 src/shared/import-util.c \
1024 src/shared/import-util.h \
1025 src/shared/sysctl-util.c \
1026 src/shared/sysctl-util.h \
1027 src/shared/bus-util.c \
1028 src/shared/bus-util.h \
1029 src/shared/logs-show.c \
1030 src/shared/logs-show.h \
1031 src/shared/machine-image.c \
1032 src/shared/machine-image.h \
1033 src/shared/machine-pool.c \
1034 src/shared/machine-pool.h \
1035 src/shared/resolve-util.c \
1036 src/shared/resolve-util.h
1039 libshared_la_SOURCES += \
1040 src/shared/utmp-wtmp.c
1044 libshared_la_SOURCES += \
1045 src/shared/seccomp-util.h \
1046 src/shared/seccomp-util.c
1050 libshared_la_SOURCES += \
1051 src/shared/acl-util.c \
1052 src/shared/acl-util.h
1055 libshared_la_CFLAGS = \
1061 libshared_la_LIBADD = \
1062 libsystemd-internal.la \
1063 libsystemd-journal-internal.la \
1064 libudev-internal.la \
1069 # -----------------------------------------------------------------------------
1071 noinst_LTLIBRARIES += \
1074 libfirewall_la_SOURCES = \
1075 src/shared/firewall-util.h \
1076 src/shared/firewall-util.c
1078 libfirewall_la_CFLAGS = \
1082 libfirewall_la_LIBADD = \
1086 # -----------------------------------------------------------------------------
1088 dist_systemunit_DATA += \
1089 units/ldconfig.service
1091 SYSINIT_TARGET_WANTS += \
1095 # ------------------------------------------------------------------------------
1096 noinst_LTLIBRARIES += \
1099 libcore_la_SOURCES = \
1102 src/core/unit-printf.c \
1103 src/core/unit-printf.h \
1106 src/core/manager.c \
1107 src/core/manager.h \
1108 src/core/transaction.c \
1109 src/core/transaction.h \
1110 src/core/load-fragment.c \
1111 src/core/load-fragment.h \
1112 src/core/service.c \
1113 src/core/service.h \
1116 src/core/busname.c \
1117 src/core/busname.h \
1118 src/core/bus-policy.c \
1119 src/core/bus-policy.h \
1126 src/core/automount.c \
1127 src/core/automount.h \
1138 src/core/load-dropin.c \
1139 src/core/load-dropin.h \
1140 src/core/execute.c \
1141 src/core/execute.h \
1146 src/core/dbus-manager.c \
1147 src/core/dbus-manager.h \
1148 src/core/dbus-unit.c \
1149 src/core/dbus-unit.h \
1150 src/core/dbus-job.c \
1151 src/core/dbus-job.h \
1152 src/core/dbus-service.c \
1153 src/core/dbus-service.h \
1154 src/core/dbus-socket.c \
1155 src/core/dbus-socket.h \
1156 src/core/dbus-busname.c \
1157 src/core/dbus-busname.h \
1158 src/core/dbus-target.c \
1159 src/core/dbus-target.h \
1160 src/core/dbus-device.c \
1161 src/core/dbus-device.h \
1162 src/core/dbus-mount.c \
1163 src/core/dbus-mount.h \
1164 src/core/dbus-automount.c \
1165 src/core/dbus-automount.h \
1166 src/core/dbus-swap.c \
1167 src/core/dbus-swap.h \
1168 src/core/dbus-timer.c \
1169 src/core/dbus-timer.h \
1170 src/core/dbus-path.c \
1171 src/core/dbus-path.h \
1172 src/core/dbus-slice.c \
1173 src/core/dbus-slice.h \
1174 src/core/dbus-scope.c \
1175 src/core/dbus-scope.h \
1176 src/core/dbus-execute.c \
1177 src/core/dbus-execute.h \
1178 src/core/dbus-kill.c \
1179 src/core/dbus-kill.h \
1180 src/core/dbus-cgroup.c \
1181 src/core/dbus-cgroup.h \
1184 src/core/selinux-access.c \
1185 src/core/selinux-access.h \
1186 src/core/selinux-setup.c \
1187 src/core/selinux-setup.h \
1188 src/core/smack-setup.c \
1189 src/core/smack-setup.h \
1190 src/core/ima-setup.c \
1191 src/core/ima-setup.h \
1192 src/core/locale-setup.h \
1193 src/core/locale-setup.c \
1194 src/core/hostname-setup.c \
1195 src/core/hostname-setup.h \
1196 src/core/machine-id-setup.c \
1197 src/core/machine-id-setup.h \
1198 src/core/mount-setup.c \
1199 src/core/mount-setup.h \
1200 src/core/kmod-setup.c \
1201 src/core/kmod-setup.h \
1202 src/core/loopback-setup.h \
1203 src/core/loopback-setup.c \
1204 src/core/namespace.c \
1205 src/core/namespace.h \
1206 src/core/killall.h \
1207 src/core/killall.c \
1208 src/core/audit-fd.c \
1209 src/core/audit-fd.h \
1210 src/core/show-status.c \
1211 src/core/show-status.h \
1212 src/core/failure-action.c \
1213 src/core/failure-action.h
1215 nodist_libcore_la_SOURCES = \
1216 src/core/load-fragment-gperf.c \
1217 src/core/load-fragment-gperf-nulstr.c
1219 libcore_la_CFLAGS = \
1224 $(APPARMOR_CFLAGS) \
1228 libcore_la_LIBADD = \
1236 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1237 $(AM_V_at)$(MKDIR_P) $(dir $@)
1238 $(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 ";" }' < $< > $@
1240 gperf_gperf_m4_sources = \
1241 src/core/load-fragment-gperf.gperf.m4
1243 gperf_txt_sources = \
1244 src/basic/errno-list.txt \
1245 src/basic/af-list.txt \
1246 src/basic/arphrd-list.txt \
1247 src/basic/cap-list.txt
1250 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1251 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1252 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1253 $(gperf_txt_sources:-list.txt=-from-name.h) \
1254 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
1257 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1259 $(gperf_txt_sources)
1262 $(gperf_gperf_m4_sources) \
1263 $(gperf_gperf_sources)
1266 $(gperf_txt_sources)
1268 %-from-name.gperf: %-list.txt
1269 $(AM_V_at)$(MKDIR_P) $(dir $@)
1270 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1272 %-from-name.h: %-from-name.gperf
1273 $(AM_V_at)$(MKDIR_P) $(dir $@)
1274 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1277 src/basic/errno-list.txt:
1278 $(AM_V_at)$(MKDIR_P) $(dir $@)
1279 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1281 src/basic/errno-to-name.h: src/basic/errno-list.txt
1282 $(AM_V_at)$(MKDIR_P) $(dir $@)
1283 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1286 src/basic/af-list.txt:
1287 $(AM_V_at)$(MKDIR_P) $(dir $@)
1288 $(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; }' >$@
1290 src/basic/af-to-name.h: src/basic/af-list.txt
1291 $(AM_V_at)$(MKDIR_P) $(dir $@)
1292 $(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 "};"}' <$< >$@
1295 src/basic/arphrd-list.txt:
1296 $(AM_V_at)$(MKDIR_P) $(dir $@)
1297 $(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_//' >$@
1299 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1300 $(AM_V_at)$(MKDIR_P) $(dir $@)
1301 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1303 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1304 $(AM_V_at)$(MKDIR_P) $(dir $@)
1305 $(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 }' <$< >$@
1308 src/basic/cap-list.txt:
1309 $(AM_V_at)$(MKDIR_P) $(dir $@)
1310 $(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 >$@
1312 src/basic/cap-to-name.h: src/basic/cap-list.txt
1313 $(AM_V_at)$(MKDIR_P) $(dir $@)
1314 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1316 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1317 $(AM_V_at)$(MKDIR_P) $(dir $@)
1318 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1320 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1321 $(AM_V_at)$(MKDIR_P) $(dir $@)
1322 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1324 audit_list_includes = -include linux/audit.h -include missing.h
1326 audit_list_includes += -include libaudit.h
1329 src/journal/audit_type-list.txt:
1330 $(AM_V_at)$(MKDIR_P) $(dir $@)
1331 $(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 >$@
1333 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1334 $(AM_V_at)$(MKDIR_P) $(dir $@)
1335 $(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" }' <$< >$@
1338 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1339 $(AM_V_at)$(MKDIR_P) $(dir $@)
1340 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1342 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1343 $(AM_V_at)$(MKDIR_P) $(dir $@)
1344 $(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" }' <$< >$@
1346 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1347 $(AM_V_at)$(MKDIR_P) $(dir $@)
1348 $(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 }' <$< >$@
1350 # ------------------------------------------------------------------------------
1362 dist_pkgsysconf_DATA += \
1363 src/core/system.conf \
1366 dist_dbuspolicy_DATA += \
1367 src/core/org.freedesktop.systemd1.conf
1369 dist_dbussystemservice_DATA += \
1370 src/core/org.freedesktop.systemd1.service
1372 polkitpolicy_in_in_files += \
1373 src/core/org.freedesktop.systemd1.policy.in.in
1375 pkgconfigdata_DATA += \
1378 nodist_rpmmacros_DATA = \
1379 src/core/macros.systemd
1382 src/core/systemd.pc.in \
1383 src/core/macros.systemd.in \
1384 src/core/triggers.systemd.in
1386 # ------------------------------------------------------------------------------
1400 test-ipv4ll-manual \
1401 test-ask-password-api
1439 test-hostname-util \
1441 test-terminal-util \
1451 test-strip-tab-ansi \
1502 test/daughter.service \
1507 test/grandchild.service \
1509 test/hello-after-sleep.target \
1510 test/hello.service \
1512 test/parent-deep.slice \
1514 test/sched_idle_bad.service \
1515 test/sched_idle_ok.service \
1516 test/sched_rr_bad.service \
1517 test/sched_rr_change.service \
1518 test/sched_rr_ok.service \
1519 test/shutdown.target \
1520 test/sleep.service \
1521 test/sockets.target \
1523 test/sysinit.target \
1524 test/testsuite.target \
1525 test/timers.target \
1526 test/unstoppable.service \
1527 test/test-path/paths.target \
1528 test/test-path/basic.target \
1529 test/test-path/sysinit.target \
1530 test/test-path/path-changed.service \
1531 test/test-path/path-directorynotempty.service \
1532 test/test-path/path-existsglob.service \
1533 test/test-path/path-exists.service \
1534 test/test-path/path-makedirectory.service \
1535 test/test-path/path-modified.service \
1536 test/test-path/path-mycustomunit.service \
1537 test/test-path/path-service.service \
1538 test/test-path/path-changed.path \
1539 test/test-path/path-directorynotempty.path \
1540 test/test-path/path-existsglob.path \
1541 test/test-path/path-exists.path \
1542 test/test-path/path-makedirectory.path \
1543 test/test-path/path-modified.path \
1544 test/test-path/path-unit.path \
1545 test/test-execute/exec-environment-empty.service \
1546 test/test-execute/exec-environment-multiple.service \
1547 test/test-execute/exec-environment.service \
1548 test/test-execute/exec-passenvironment-absent.service \
1549 test/test-execute/exec-passenvironment-empty.service \
1550 test/test-execute/exec-passenvironment-repeated.service \
1551 test/test-execute/exec-passenvironment.service \
1552 test/test-execute/exec-group.service \
1553 test/test-execute/exec-ignoresigpipe-no.service \
1554 test/test-execute/exec-ignoresigpipe-yes.service \
1555 test/test-execute/exec-personality-x86-64.service \
1556 test/test-execute/exec-personality-x86.service \
1557 test/test-execute/exec-personality-s390.service \
1558 test/test-execute/exec-privatedevices-no.service \
1559 test/test-execute/exec-privatedevices-yes.service \
1560 test/test-execute/exec-privatetmp-no.service \
1561 test/test-execute/exec-privatetmp-yes.service \
1562 test/test-execute/exec-spec-interpolation.service \
1563 test/test-execute/exec-systemcallerrornumber.service \
1564 test/test-execute/exec-systemcallfilter-failing2.service \
1565 test/test-execute/exec-systemcallfilter-failing.service \
1566 test/test-execute/exec-systemcallfilter-not-failing2.service \
1567 test/test-execute/exec-systemcallfilter-not-failing.service \
1568 test/test-execute/exec-user.service \
1569 test/test-execute/exec-workingdirectory.service \
1570 test/test-execute/exec-umask-0177.service \
1571 test/test-execute/exec-umask-default.service \
1572 test/test-execute/exec-privatenetwork-yes.service \
1573 test/test-execute/exec-environmentfile.service \
1574 test/test-execute/exec-oomscoreadjust-positive.service \
1575 test/test-execute/exec-oomscoreadjust-negative.service \
1576 test/test-execute/exec-ioschedulingclass-best-effort.service \
1577 test/test-execute/exec-ioschedulingclass-idle.service \
1578 test/test-execute/exec-ioschedulingclass-none.service \
1579 test/test-execute/exec-ioschedulingclass-realtime.service \
1580 test/test-execute/exec-capabilityboundingset-invert.service \
1581 test/test-execute/exec-capabilityboundingset-merge.service \
1582 test/test-execute/exec-capabilityboundingset-reset.service \
1583 test/test-execute/exec-capabilityboundingset-simple.service \
1584 test/test-execute/exec-capabilityambientset.service \
1585 test/test-execute/exec-capabilityambientset-merge.service \
1586 test/test-execute/exec-runtimedirectory.service \
1587 test/test-execute/exec-runtimedirectory-mode.service \
1588 test/test-execute/exec-runtimedirectory-owner.service \
1589 test/bus-policy/hello.conf \
1590 test/bus-policy/methods.conf \
1591 test/bus-policy/ownerships.conf \
1592 test/bus-policy/signals.conf \
1593 test/bus-policy/check-own-rules.conf \
1594 test/bus-policy/many-rules.conf \
1595 test/bus-policy/test.conf
1599 src/test/test-helper.h
1601 test_device_nodes_SOURCES = \
1602 src/test/test-device-nodes.c
1604 test_device_nodes_LDADD = \
1607 test_engine_SOURCES = \
1608 src/test/test-engine.c
1610 test_engine_CFLAGS = \
1615 test_engine_LDADD = \
1618 test_job_type_SOURCES = \
1619 src/test/test-job-type.c
1621 test_job_type_CFLAGS = \
1626 test_job_type_LDADD = \
1639 test_loopback_SOURCES = \
1640 src/test/test-loopback.c
1642 test_loopback_LDADD = \
1645 test_hostname_SOURCES = \
1646 src/test/test-hostname.c
1648 test_hostname_LDADD = \
1651 test_dns_domain_SOURCES = \
1652 src/test/test-dns-domain.c
1654 test_dns_domain_LDADD = \
1655 libsystemd-network.la \
1663 test_boot_timestamp_SOURCES = \
1664 src/test/test-boot-timestamps.c
1666 test_boot_timestamp_LDADD = \
1670 test_unit_name_SOURCES = \
1671 src/test/test-unit-name.c
1673 test_unit_name_CFLAGS = \
1678 test_unit_name_LDADD = \
1681 test_unit_file_SOURCES = \
1682 src/test/test-unit-file.c
1684 test_unit_file_CFLAGS = \
1689 test_unit_file_LDADD = \
1692 test_utf8_SOURCES = \
1693 src/test/test-utf8.c
1698 test_capability_SOURCES = \
1699 src/test/test-capability.c
1701 test_capability_LDADD = \
1704 test_async_SOURCES = \
1705 src/test/test-async.c
1707 test_async_LDADD = \
1710 test_locale_util_SOURCES = \
1711 src/test/test-locale-util.c
1713 test_locale_util_LDADD = \
1716 test_copy_SOURCES = \
1717 src/test/test-copy.c
1722 test_sigbus_SOURCES = \
1723 src/test/test-sigbus.c
1725 test_sigbus_LDADD = \
1728 test_rbtree_SOURCES = \
1729 src/test/test-rbtree.c
1731 test_rbtree_LDADD = \
1734 test_condition_SOURCES = \
1735 src/test/test-condition.c
1737 test_condition_LDADD = \
1740 test_fdset_SOURCES = \
1741 src/test/test-fdset.c
1743 test_fdset_LDADD = \
1746 test_fstab_util_SOURCES = \
1747 src/test/test-fstab-util.c
1749 test_fstab_util_LDADD = \
1752 test_ratelimit_SOURCES = \
1753 src/test/test-ratelimit.c
1755 test_ratelimit_LDADD = \
1758 test_util_SOURCES = \
1759 src/test/test-util.c
1764 test_hexdecoct_SOURCES = \
1765 src/test/test-hexdecoct.c
1767 test_hexdecoct_LDADD = \
1770 test_alloc_util_SOURCES = \
1771 src/test/test-alloc-util.c
1773 test_alloc_util_LDADD = \
1776 test_web_util_SOURCES = \
1777 src/test/test-web-util.c
1779 test_web_util_LDADD = \
1782 test_cpu_set_util_SOURCES = \
1783 src/test/test-cpu-set-util.c
1785 test_cpu_set_util_LDADD = \
1788 test_stat_util_SOURCES = \
1789 src/test/test-stat-util.c
1791 test_stat_util_LDADD = \
1794 test_escape_SOURCES = \
1795 src/test/test-escape.c
1797 test_escape_LDADD = \
1800 test_string_util_SOURCES = \
1801 src/test/test-string-util.c
1803 test_string_util_LDADD = \
1806 test_extract_word_SOURCES = \
1807 src/test/test-extract-word.c
1809 test_extract_word_LDADD = \
1812 test_parse_util_SOURCES = \
1813 src/test/test-parse-util.c
1815 test_parse_util_LDADD = \
1818 test_user_util_SOURCES = \
1819 src/test/test-user-util.c
1821 test_user_util_LDADD = \
1824 test_hostname_util_SOURCES = \
1825 src/test/test-hostname-util.c
1827 test_hostname_util_LDADD = \
1830 test_process_util_SOURCES = \
1831 src/test/test-process-util.c
1833 test_process_util_LDADD = \
1836 test_terminal_util_SOURCES = \
1837 src/test/test-terminal-util.c
1839 test_terminal_util_LDADD = \
1842 test_path_lookup_SOURCES = \
1843 src/test/test-path-lookup.c
1845 test_path_lookup_LDADD = \
1848 test_uid_range_SOURCES = \
1849 src/test/test-uid-range.c
1851 test_uid_range_LDADD = \
1854 test_cap_list_SOURCES = \
1855 src/test/test-cap-list.c
1857 test_cap_list_LDADD = \
1860 test_socket_util_SOURCES = \
1861 src/test/test-socket-util.c
1863 test_socket_util_LDADD = \
1866 test_barrier_SOURCES = \
1867 src/test/test-barrier.c
1869 test_barrier_LDADD = \
1872 test_tmpfiles_SOURCES = \
1873 src/test/test-tmpfiles.c
1875 test_tmpfiles_LDADD = \
1878 test_namespace_SOURCES = \
1879 src/test/test-namespace.c
1881 test_verbs_SOURCES = \
1882 src/test/test-verbs.c
1884 test_verbs_LDADD = \
1887 test_install_root_SOURCES = \
1888 src/test/test-install-root.c
1890 test_install_root_LDADD = \
1893 test_acl_util_SOURCES = \
1894 src/test/test-acl-util.c
1896 test_acl_util_LDADD = \
1899 test_namespace_LDADD = \
1902 test_rlimit_util_SOURCES = \
1903 src/test/test-rlimit-util.c
1905 test_rlimit_util_LDADD = \
1908 test_ask_password_api_SOURCES = \
1909 src/test/test-ask-password-api.c
1911 test_ask_password_api_LDADD = \
1914 test_signal_util_SOURCES = \
1915 src/test/test-signal-util.c
1917 test_signal_util_LDADD = \
1920 test_selinux_SOURCES = \
1921 src/test/test-selinux.c
1923 test_selinux_LDADD = \
1926 test_sizeof_SOURCES = \
1927 src/test/test-sizeof.c
1929 test_sizeof_LDADD = \
1933 src/test/test-hashmap-ordered.c
1935 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1936 $(AM_V_at)$(MKDIR_P) $(dir $@)
1937 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1938 { if (!match($$0, "^#include")) \
1939 gsub(/hashmap/, "ordered_hashmap"); \
1940 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1941 gsub(/Hashmap/, "OrderedHashmap"); \
1944 nodist_test_hashmap_SOURCES = \
1945 src/test/test-hashmap-ordered.c
1947 test_hashmap_SOURCES = \
1948 src/test/test-hashmap.c \
1949 src/test/test-hashmap-plain.c
1951 test_hashmap_LDADD = \
1954 test_set_SOURCES = \
1960 test_bitmap_SOURCES = \
1961 src/test/test-bitmap.c
1963 test_bitmap_LDADD = \
1966 test_xml_SOURCES = \
1972 test_list_SOURCES = \
1973 src/test/test-list.c
1978 test_unaligned_LDADD = \
1981 test_unaligned_SOURCES = \
1982 src/test/test-unaligned.c
1984 test_tables_SOURCES = \
1985 src/test/test-tables.c \
1986 src/shared/test-tables.h \
1987 src/journal/journald-server.c \
1988 src/journal/journald-server.h
1990 test_tables_CPPFLAGS = \
1993 test_tables_CFLAGS = \
1998 test_tables_LDADD = \
1999 libjournal-core.la \
2003 test_prioq_SOURCES = \
2004 src/test/test-prioq.c
2006 test_prioq_LDADD = \
2009 test_fileio_SOURCES = \
2010 src/test/test-fileio.c
2012 test_fileio_LDADD = \
2015 test_time_SOURCES = \
2016 src/test/test-time.c
2021 test_clock_SOURCES = \
2022 src/test/test-clock.c
2024 test_clock_LDADD = \
2027 test_architecture_SOURCES = \
2028 src/test/test-architecture.c
2030 test_architecture_LDADD = \
2033 test_log_SOURCES = \
2039 test_ipcrm_SOURCES = \
2040 src/test/test-ipcrm.c
2042 test_ipcrm_LDADD = \
2045 test_btrfs_SOURCES = \
2046 src/test/test-btrfs.c
2048 test_btrfs_LDADD = \
2052 test_firewall_util_SOURCES = \
2053 src/test/test-firewall-util.c
2055 test_firewall_util_CFLAGS = \
2059 test_firewall_util_LDADD = \
2065 test_netlink_manual_SOURCES = \
2066 src/test/test-netlink-manual.c
2068 test_netlink_manual_CFLAGS = \
2072 test_netlink_manual_LDADD = \
2076 test_ellipsize_SOURCES = \
2077 src/test/test-ellipsize.c
2079 test_ellipsize_LDADD = \
2082 test_date_SOURCES = \
2083 src/test/test-date.c
2088 test_sleep_SOURCES = \
2089 src/test/test-sleep.c
2091 test_sleep_LDADD = \
2094 test_replace_var_SOURCES = \
2095 src/test/test-replace-var.c
2097 test_replace_var_LDADD = \
2100 test_calendarspec_SOURCES = \
2101 src/test/test-calendarspec.c
2103 test_calendarspec_LDADD = \
2106 test_strip_tab_ansi_SOURCES = \
2107 src/test/test-strip-tab-ansi.c
2109 test_strip_tab_ansi_LDADD = \
2112 test_daemon_SOURCES = \
2113 src/test/test-daemon.c
2115 test_daemon_LDADD = \
2118 test_cgroup_SOURCES = \
2119 src/test/test-cgroup.c
2121 test_cgroup_LDADD = \
2124 test_cgroup_mask_SOURCES = \
2125 src/test/test-cgroup-mask.c
2127 test_cgroup_mask_CPPFLAGS = \
2131 test_cgroup_mask_CFLAGS = \
2135 test_cgroup_mask_LDADD = \
2138 test_cgroup_util_SOURCES = \
2139 src/test/test-cgroup-util.c
2141 test_cgroup_util_LDADD = \
2144 test_env_replace_SOURCES = \
2145 src/test/test-env-replace.c
2147 test_env_replace_LDADD = \
2150 test_strbuf_SOURCES = \
2151 src/test/test-strbuf.c
2153 test_strbuf_LDADD = \
2156 test_strv_SOURCES = \
2157 src/test/test-strv.c
2162 test_path_util_SOURCES = \
2163 src/test/test-path-util.c
2165 test_path_util_LDADD = \
2168 test_path_SOURCES = \
2169 src/test/test-path.c
2171 test_path_CFLAGS = \
2178 test_execute_SOURCES = \
2179 src/test/test-execute.c
2181 test_execute_CFLAGS = \
2185 test_execute_LDADD = \
2188 test_siphash24_SOURCES = \
2189 src/test/test-siphash24.c
2191 test_siphash24_LDADD = \
2194 test_strxcpyx_SOURCES = \
2195 src/test/test-strxcpyx.c
2197 test_strxcpyx_LDADD = \
2200 test_install_SOURCES = \
2201 src/test/test-install.c
2203 test_install_LDADD = \
2206 test_watchdog_SOURCES = \
2207 src/test/test-watchdog.c
2209 test_watchdog_LDADD = \
2212 test_sched_prio_SOURCES = \
2213 src/test/test-sched-prio.c
2215 test_sched_prio_CPPFLAGS = \
2219 test_sched_prio_CFLAGS = \
2223 test_sched_prio_LDADD = \
2226 test_conf_files_SOURCES = \
2227 src/test/test-conf-files.c
2229 test_conf_files_LDADD = \
2232 test_conf_parser_SOURCES = \
2233 src/test/test-conf-parser.c
2235 test_conf_parser_LDADD = \
2238 test_af_list_SOURCES = \
2239 src/test/test-af-list.c
2241 test_af_list_LDADD = \
2244 test_arphrd_list_SOURCES = \
2245 src/test/test-arphrd-list.c
2247 test_arphrd_list_LDADD = \
2250 # ------------------------------------------------------------------------------
2251 ## .PHONY so it always rebuilds it
2252 .PHONY: coverage lcov-run lcov-report coverage-sync
2254 # run lcov from scratch, always
2259 coverage_dir = coverage
2260 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2263 # reset run coverage tests
2265 @rm -rf $(coverage_dir)
2266 lcov $(coverage_opts) --zerocounters
2269 # generate report based on current coverage data
2271 $(MKDIR_P) $(coverage_dir)
2272 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2273 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2274 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2275 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2276 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2278 # lcov doesn't work properly with vpath builds, make sure that bad
2279 # output is not uploaded by mistake.
2280 coverage-sync: coverage
2281 test "$(builddir)" = "$(srcdir)"
2282 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2285 lcov-run lcov-report:
2286 echo "Need to reconfigure with --enable-coverage"
2289 # ------------------------------------------------------------------------------
2290 systemd_analyze_SOURCES = \
2291 src/analyze/analyze.c \
2292 src/analyze/analyze-verify.c \
2293 src/analyze/analyze-verify.h
2295 systemd_analyze_CFLAGS = \
2300 systemd_analyze_LDADD = \
2303 # ------------------------------------------------------------------------------
2304 systemd_initctl_SOURCES = \
2305 src/initctl/initctl.c
2307 systemd_initctl_LDADD = \
2310 # ------------------------------------------------------------------------------
2311 systemd_update_utmp_SOURCES = \
2312 src/update-utmp/update-utmp.c
2314 systemd_update_utmp_CFLAGS = \
2318 systemd_update_utmp_LDADD = \
2322 # ------------------------------------------------------------------------------
2323 systemd_update_done_SOURCES = \
2324 src/update-done/update-done.c
2326 systemd_update_done_LDADD = \
2329 # ------------------------------------------------------------------------------
2330 systemd_shutdown_SOURCES = \
2333 src/core/shutdown.c \
2334 src/core/mount-setup.c \
2335 src/core/mount-setup.h \
2336 src/core/killall.h \
2339 systemd_shutdown_LDADD = \
2342 # ------------------------------------------------------------------------------
2344 systemd_modules_load_SOURCES = \
2345 src/modules-load/modules-load.c
2347 systemd_modules_load_CFLAGS = \
2351 systemd_modules_load_LDADD = \
2355 rootlibexec_PROGRAMS += \
2356 systemd-modules-load
2358 nodist_systemunit_DATA += \
2359 units/systemd-modules-load.service
2361 SYSINIT_TARGET_WANTS += \
2362 systemd-modules-load.service
2365 nodist_systemunit_DATA += \
2366 units/kmod-static-nodes.service
2368 SYSINIT_TARGET_WANTS += \
2369 kmod-static-nodes.service
2374 units/systemd-modules-load.service.in \
2375 units/kmod-static-nodes.service.in
2377 # ------------------------------------------------------------------------------
2379 systemd_tmpfiles_SOURCES = \
2380 src/tmpfiles/tmpfiles.c
2382 systemd_tmpfiles_LDADD = \
2385 rootbin_PROGRAMS += \
2388 dist_systemunit_DATA += \
2389 units/systemd-tmpfiles-clean.timer
2391 nodist_systemunit_DATA += \
2392 units/systemd-tmpfiles-setup-dev.service \
2393 units/systemd-tmpfiles-setup.service \
2394 units/systemd-tmpfiles-clean.service
2396 nodist_tmpfiles_DATA = \
2397 tmpfiles.d/systemd.conf \
2400 dist_tmpfiles_DATA = \
2401 tmpfiles.d/systemd-nologin.conf \
2402 tmpfiles.d/tmp.conf \
2403 tmpfiles.d/x11.conf \
2404 tmpfiles.d/var.conf \
2405 tmpfiles.d/home.conf \
2406 tmpfiles.d/systemd-nspawn.conf \
2407 tmpfiles.d/journal-nocow.conf
2410 dist_tmpfiles_DATA += \
2411 tmpfiles.d/legacy.conf
2414 SYSINIT_TARGET_WANTS += \
2415 systemd-tmpfiles-setup-dev.service \
2416 systemd-tmpfiles-setup.service
2418 dist_zshcompletion_data += \
2419 shell-completion/zsh/_systemd-tmpfiles
2421 TIMERS_TARGET_WANTS += \
2422 systemd-tmpfiles-clean.timer
2426 $(sysconfdir)/tmpfiles.d
2430 tmpfiles.d/systemd.conf.m4 \
2431 tmpfiles.d/etc.conf.m4 \
2432 units/systemd-tmpfiles-setup-dev.service.in \
2433 units/systemd-tmpfiles-setup.service.in \
2434 units/systemd-tmpfiles-clean.service.in
2436 # ------------------------------------------------------------------------------
2438 systemd_sysusers_SOURCES = \
2439 src/sysusers/sysusers.c
2441 systemd_sysusers_LDADD = \
2444 rootbin_PROGRAMS += \
2447 nodist_systemunit_DATA += \
2448 units/systemd-sysusers.service
2450 SYSINIT_TARGET_WANTS += \
2451 systemd-sysusers.service
2453 nodist_sysusers_DATA = \
2454 sysusers.d/systemd.conf \
2455 sysusers.d/basic.conf
2458 nodist_sysusers_DATA += \
2459 sysusers.d/systemd-remote.conf
2467 units/systemd-sysusers.service.in \
2468 sysusers.d/systemd.conf.m4 \
2469 sysusers.d/systemd-remote.conf.m4 \
2470 sysusers.d/basic.conf.in
2472 # ------------------------------------------------------------------------------
2473 dist_factory_etc_DATA = \
2474 factory/etc/nsswitch.conf
2477 dist_factory_pam_DATA = \
2478 factory/etc/pam.d/system-auth \
2479 factory/etc/pam.d/other
2482 # ------------------------------------------------------------------------------
2484 systemd_firstboot_SOURCES = \
2485 src/firstboot/firstboot.c
2487 systemd_firstboot_LDADD = \
2491 rootbin_PROGRAMS += \
2494 nodist_systemunit_DATA += \
2495 units/systemd-firstboot.service
2497 SYSINIT_TARGET_WANTS += \
2498 systemd-firstboot.service
2502 units/systemd-firstboot.service.in
2504 # ------------------------------------------------------------------------------
2505 systemd_machine_id_setup_SOURCES = \
2506 src/machine-id-setup/machine-id-setup-main.c \
2507 src/core/machine-id-setup.c \
2508 src/core/machine-id-setup.h
2510 systemd_machine_id_setup_LDADD = \
2513 SYSINIT_TARGET_WANTS += \
2514 systemd-machine-id-commit.service
2516 # ------------------------------------------------------------------------------
2517 systemd_sysctl_SOURCES = \
2520 systemd_sysctl_LDADD = \
2523 # ------------------------------------------------------------------------------
2524 systemd_sleep_SOURCES = \
2527 systemd_sleep_LDADD = \
2530 # ------------------------------------------------------------------------------
2531 systemd_fsck_SOURCES = \
2534 systemd_fsck_LDADD = \
2537 # ------------------------------------------------------------------------------
2538 systemd_ac_power_SOURCES = \
2539 src/ac-power/ac-power.c
2541 systemd_ac_power_LDADD = \
2544 # ------------------------------------------------------------------------------
2545 systemd_detect_virt_SOURCES = \
2546 src/detect-virt/detect-virt.c
2548 systemd_detect_virt_LDADD = \
2551 INSTALL_EXEC_HOOKS += \
2552 systemd-detect-virt-install-hook
2554 # ------------------------------------------------------------------------------
2555 systemd_delta_SOURCES = \
2558 systemd_delta_LDADD = \
2561 # ------------------------------------------------------------------------------
2562 systemd_getty_generator_SOURCES = \
2563 src/getty-generator/getty-generator.c
2565 systemd_getty_generator_LDADD = \
2568 # ------------------------------------------------------------------------------
2569 systemd_debug_generator_SOURCES = \
2570 src/debug-generator/debug-generator.c
2572 systemd_debug_generator_LDADD = \
2575 # ------------------------------------------------------------------------------
2576 systemd_fstab_generator_SOURCES = \
2577 src/fstab-generator/fstab-generator.c \
2578 src/core/mount-setup.c
2580 systemd_fstab_generator_LDADD = \
2583 # ------------------------------------------------------------------------------
2584 systemd_system_update_generator_SOURCES = \
2585 src/system-update-generator/system-update-generator.c
2587 systemd_system_update_generator_LDADD = \
2590 # ------------------------------------------------------------------------------
2592 systemgenerator_PROGRAMS += \
2593 systemd-hibernate-resume-generator
2595 rootlibexec_PROGRAMS += \
2596 systemd-hibernate-resume
2598 systemd_hibernate_resume_SOURCES = \
2599 src/hibernate-resume/hibernate-resume.c
2601 systemd_hibernate_resume_LDADD = \
2604 systemd_hibernate_resume_generator_SOURCES = \
2605 src/hibernate-resume/hibernate-resume-generator.c
2607 systemd_hibernate_resume_generator_LDADD = \
2610 dist_systemunit_DATA += \
2611 units/hibernate.target \
2612 units/hybrid-sleep.target
2614 nodist_systemunit_DATA += \
2615 units/systemd-hibernate.service \
2616 units/systemd-hibernate-resume@.service \
2617 units/systemd-hybrid-sleep.service
2621 units/systemd-hibernate.service.in \
2622 units/systemd-hibernate-resume@.service.in \
2623 units/systemd-hybrid-sleep.service.in
2625 # ------------------------------------------------------------------------------
2631 bootctl_CPPFLAGS = \
2633 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2634 -DBOOTLIBDIR=\"$(bootlibdir)\"
2647 dist_bashcompletion_data += \
2648 shell-completion/bash/bootctl
2650 dist_zshcompletion_data += \
2651 shell-completion/zsh/_bootctl
2654 # ------------------------------------------------------------------------------
2658 -I$(top_builddir) -include config.h \
2659 -I$(EFI_INC_DIR)/efi \
2660 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2661 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2674 -fno-strict-aliasing \
2675 -fno-stack-protector \
2677 -Wno-missing-field-initializers
2684 -DEFI_FUNCTION_WRAPPER \
2685 -DGNU_EFI_USE_MS_ABI
2696 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2702 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2704 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2705 # and add required symbols manually.
2707 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2708 EFI_FORMAT = -O binary
2710 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2715 # ------------------------------------------------------------------------------
2716 systemd_boot_headers = \
2717 src/boot/efi/util.h \
2718 src/boot/efi/console.h \
2719 src/boot/efi/graphics.h \
2720 src/boot/efi/pefile.h \
2721 src/boot/efi/measure.h \
2724 systemd_boot_sources = \
2725 src/boot/efi/util.c \
2726 src/boot/efi/console.c \
2727 src/boot/efi/graphics.c \
2728 src/boot/efi/pefile.c \
2729 src/boot/efi/disk.c \
2730 src/boot/efi/measure.c \
2733 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2735 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2736 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2737 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2741 bootlib_DATA = $(systemd_boot)
2743 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2744 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2745 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2747 $(systemd_boot_solib): $(systemd_boot_objects)
2748 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2749 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2750 nm -D -u $@ | grep ' U ' && exit 1 || :
2752 $(systemd_boot): $(systemd_boot_solib)
2753 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2754 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2758 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2760 # ------------------------------------------------------------------------------
2762 src/boot/efi/util.h \
2763 src/boot/efi/pefile.h \
2764 src/boot/efi/disk.h \
2765 src/boot/efi/graphics.h \
2766 src/boot/efi/splash.h \
2767 src/boot/efi/measure.h \
2768 src/boot/efi/linux.h
2771 src/boot/efi/util.c \
2772 src/boot/efi/pefile.c \
2773 src/boot/efi/disk.c \
2774 src/boot/efi/graphics.c \
2775 src/boot/efi/splash.c \
2776 src/boot/efi/linux.c \
2777 src/boot/efi/measure.c \
2785 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2786 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2787 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2791 bootlib_DATA += $(stub)
2793 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2794 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2795 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2797 $(stub_solib): $(stub_objects)
2798 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2799 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2800 nm -D -u $@ | grep ' U ' && exit 1 || :
2802 $(stub): $(stub_solib)
2803 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2804 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2808 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2811 # ------------------------------------------------------------------------------
2812 CLEANFILES += test-efi-disk.img
2814 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2815 $(AM_V_GEN)test/test-efi-create-disk.sh
2817 test-efi: test-efi-disk.img
2818 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2820 EXTRA_DIST += test/test-efi-create-disk.sh
2822 # ------------------------------------------------------------------------------
2824 systemgenerator_PROGRAMS += \
2825 systemd-gpt-auto-generator
2827 systemd_gpt_auto_generator_SOURCES = \
2828 src/gpt-auto-generator/gpt-auto-generator.c \
2829 src/basic/blkid-util.h
2831 systemd_gpt_auto_generator_LDADD = \
2835 systemd_gpt_auto_generator_CFLAGS = \
2840 # ------------------------------------------------------------------------------
2841 systemgenerator_PROGRAMS += \
2842 systemd-dbus1-generator
2844 systemd_dbus1_generator_SOURCES = \
2845 src/dbus1-generator/dbus1-generator.c
2847 systemd_dbus1_generator_LDADD = \
2850 dbus1-generator-install-hook:
2851 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2852 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2853 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2855 dbus1-generator-uninstall-hook:
2856 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2858 dist_xinitrc_SCRIPTS = \
2859 xorg/50-systemd-user.sh
2861 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2862 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2864 # ------------------------------------------------------------------------------
2865 systemd_sysv_generator_SOURCES = \
2866 src/sysv-generator/sysv-generator.c
2868 systemd_sysv_generator_LDADD = \
2871 # ------------------------------------------------------------------------------
2872 systemd_rc_local_generator_SOURCES = \
2873 src/rc-local-generator/rc-local-generator.c
2875 systemd_rc_local_generator_LDADD = \
2878 # ------------------------------------------------------------------------------
2879 systemd_remount_fs_SOURCES = \
2880 src/remount-fs/remount-fs.c \
2881 src/core/mount-setup.c \
2882 src/core/mount-setup.h
2884 systemd_remount_fs_LDADD = \
2887 # ------------------------------------------------------------------------------
2888 systemd_cgroups_agent_SOURCES = \
2889 src/cgroups-agent/cgroups-agent.c
2891 systemd_cgroups_agent_LDADD = \
2894 # ------------------------------------------------------------------------------
2895 systemd_escape_SOURCES = \
2898 systemd_escape_LDADD = \
2901 # -----------------------------------------------------------------------------
2902 systemctl_SOURCES = \
2903 src/systemctl/systemctl.c
2908 # ------------------------------------------------------------------------------
2909 systemd_notify_SOURCES = \
2912 systemd_notify_LDADD = \
2915 # ------------------------------------------------------------------------------
2916 systemd_path_SOURCES = \
2919 systemd_path_LDADD = \
2922 # ------------------------------------------------------------------------------
2923 systemd_ask_password_SOURCES = \
2924 src/ask-password/ask-password.c
2926 systemd_ask_password_LDADD = \
2929 # ------------------------------------------------------------------------------
2930 systemd_reply_password_SOURCES = \
2931 src/reply-password/reply-password.c
2933 systemd_reply_password_LDADD = \
2936 # ------------------------------------------------------------------------------
2937 systemd_cgls_SOURCES = \
2940 systemd_cgls_LDADD = \
2943 # ------------------------------------------------------------------------------
2944 systemd_cgtop_SOURCES = \
2947 systemd_cgtop_LDADD = \
2950 # ------------------------------------------------------------------------------
2951 systemd_nspawn_SOURCES = \
2952 src/nspawn/nspawn.c \
2953 src/nspawn/nspawn-settings.c \
2954 src/nspawn/nspawn-settings.h \
2955 src/nspawn/nspawn-mount.c \
2956 src/nspawn/nspawn-mount.h \
2957 src/nspawn/nspawn-network.c \
2958 src/nspawn/nspawn-network.h \
2959 src/nspawn/nspawn-expose-ports.c \
2960 src/nspawn/nspawn-expose-ports.h \
2961 src/nspawn/nspawn-cgroup.c \
2962 src/nspawn/nspawn-cgroup.h \
2963 src/nspawn/nspawn-register.c \
2964 src/nspawn/nspawn-register.h \
2965 src/nspawn/nspawn-setuid.c \
2966 src/nspawn/nspawn-setuid.h \
2967 src/nspawn/nspawn-stub-pid1.c \
2968 src/nspawn/nspawn-stub-pid1.h \
2969 src/core/mount-setup.c \
2970 src/core/mount-setup.h \
2971 src/core/loopback-setup.c \
2972 src/core/loopback-setup.h
2974 nodist_systemd_nspawn_SOURCES = \
2975 src/nspawn/nspawn-gperf.c
2977 gperf_gperf_sources += \
2978 src/nspawn/nspawn-gperf.gperf
2980 systemd_nspawn_CFLAGS = \
2985 systemd_nspawn_LDADD = \
2990 systemd_nspawn_LDADD += \
2994 # ------------------------------------------------------------------------------
2995 systemd_run_SOURCES = \
2998 systemd_run_LDADD = \
3001 # ------------------------------------------------------------------------------
3002 systemd_stdio_bridge_SOURCES = \
3003 src/stdio-bridge/stdio-bridge.c
3005 systemd_stdio_bridge_LDADD = \
3008 # ------------------------------------------------------------------------------
3009 systemd_tty_ask_password_agent_SOURCES = \
3010 src/tty-ask-password-agent/tty-ask-password-agent.c
3012 systemd_tty_ask_password_agent_LDADD = \
3015 # ------------------------------------------------------------------------------
3016 libsystemd_internal_la_SOURCES = \
3017 src/systemd/sd-bus.h \
3018 src/systemd/sd-bus-protocol.h \
3019 src/systemd/sd-bus-vtable.h \
3020 src/systemd/sd-utf8.h \
3021 src/systemd/sd-event.h \
3022 src/systemd/sd-netlink.h \
3023 src/systemd/sd-resolve.h \
3024 src/systemd/sd-login.h \
3025 src/systemd/sd-id128.h \
3026 src/systemd/sd-daemon.h \
3027 src/systemd/sd-path.h \
3028 src/systemd/sd-network.h \
3029 src/systemd/sd-hwdb.h \
3030 src/systemd/sd-device.h \
3031 src/libsystemd/libsystemd.sym \
3032 src/libsystemd/sd-bus/sd-bus.c \
3033 src/libsystemd/sd-bus/bus-control.c \
3034 src/libsystemd/sd-bus/bus-control.h \
3035 src/libsystemd/sd-bus/bus-error.c \
3036 src/libsystemd/sd-bus/bus-error.h \
3037 src/libsystemd/sd-bus/bus-common-errors.h \
3038 src/libsystemd/sd-bus/bus-common-errors.c \
3039 src/libsystemd/sd-bus/bus-internal.c \
3040 src/libsystemd/sd-bus/bus-internal.h \
3041 src/libsystemd/sd-bus/bus-socket.c \
3042 src/libsystemd/sd-bus/bus-socket.h \
3043 src/libsystemd/sd-bus/bus-kernel.c \
3044 src/libsystemd/sd-bus/bus-kernel.h \
3045 src/libsystemd/sd-bus/bus-container.c \
3046 src/libsystemd/sd-bus/bus-container.h \
3047 src/libsystemd/sd-bus/bus-message.c \
3048 src/libsystemd/sd-bus/bus-message.h \
3049 src/libsystemd/sd-bus/bus-creds.c \
3050 src/libsystemd/sd-bus/bus-creds.h \
3051 src/libsystemd/sd-bus/bus-signature.c \
3052 src/libsystemd/sd-bus/bus-signature.h \
3053 src/libsystemd/sd-bus/bus-type.c \
3054 src/libsystemd/sd-bus/bus-type.h \
3055 src/libsystemd/sd-bus/bus-match.c \
3056 src/libsystemd/sd-bus/bus-match.h \
3057 src/libsystemd/sd-bus/bus-bloom.c \
3058 src/libsystemd/sd-bus/bus-bloom.h \
3059 src/libsystemd/sd-bus/bus-introspect.c \
3060 src/libsystemd/sd-bus/bus-introspect.h \
3061 src/libsystemd/sd-bus/bus-objects.c \
3062 src/libsystemd/sd-bus/bus-objects.h \
3063 src/libsystemd/sd-bus/bus-gvariant.c \
3064 src/libsystemd/sd-bus/bus-gvariant.h \
3065 src/libsystemd/sd-bus/bus-convenience.c \
3066 src/libsystemd/sd-bus/bus-track.c \
3067 src/libsystemd/sd-bus/bus-track.h \
3068 src/libsystemd/sd-bus/bus-slot.c \
3069 src/libsystemd/sd-bus/bus-slot.h \
3070 src/libsystemd/sd-bus/bus-protocol.h \
3071 src/libsystemd/sd-bus/kdbus.h \
3072 src/libsystemd/sd-bus/bus-dump.c \
3073 src/libsystemd/sd-bus/bus-dump.h \
3074 src/libsystemd/sd-utf8/sd-utf8.c \
3075 src/libsystemd/sd-event/sd-event.c \
3076 src/libsystemd/sd-netlink/sd-netlink.c \
3077 src/libsystemd/sd-netlink/netlink-internal.h \
3078 src/libsystemd/sd-netlink/netlink-message.c \
3079 src/libsystemd/sd-netlink/netlink-socket.c \
3080 src/libsystemd/sd-netlink/rtnl-message.c \
3081 src/libsystemd/sd-netlink/netlink-types.h \
3082 src/libsystemd/sd-netlink/netlink-types.c \
3083 src/libsystemd/sd-netlink/netlink-util.h \
3084 src/libsystemd/sd-netlink/netlink-util.c \
3085 src/libsystemd/sd-netlink/local-addresses.h \
3086 src/libsystemd/sd-netlink/local-addresses.c \
3087 src/libsystemd/sd-id128/sd-id128.c \
3088 src/libsystemd/sd-daemon/sd-daemon.c \
3089 src/libsystemd/sd-login/sd-login.c \
3090 src/libsystemd/sd-path/sd-path.c \
3091 src/libsystemd/sd-network/sd-network.c \
3092 src/libsystemd/sd-network/network-util.h \
3093 src/libsystemd/sd-network/network-util.c \
3094 src/libsystemd/sd-hwdb/sd-hwdb.c \
3095 src/libsystemd/sd-hwdb/hwdb-util.h \
3096 src/libsystemd/sd-hwdb/hwdb-internal.h \
3097 src/libsystemd/sd-device/device-internal.h \
3098 src/libsystemd/sd-device/device-util.h \
3099 src/libsystemd/sd-device/device-enumerator.c \
3100 src/libsystemd/sd-device/device-enumerator-private.h \
3101 src/libsystemd/sd-device/sd-device.c \
3102 src/libsystemd/sd-device/device-private.c \
3103 src/libsystemd/sd-device/device-private.h \
3104 src/libsystemd/sd-resolve/sd-resolve.c
3106 libsystemd_internal_la_LIBADD = \
3110 noinst_LTLIBRARIES += \
3111 libsystemd-internal.la
3114 src/libsystemd/libsystemd.pc.in \
3115 src/libsystemd/sd-bus/DIFFERENCES \
3116 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3118 libsystemd_la_SOURCES = \
3119 $(libsystemd_internal_la_SOURCES) \
3120 $(libsystemd_journal_internal_la_SOURCES)
3122 nodist_libsystemd_la_SOURCES = \
3123 $(nodist_libsystemd_internal_la_SOURCES)
3125 libsystemd_la_CFLAGS = \
3126 $(libsystemd_internal_la_CFLAGS) \
3127 $(libsystemd_journal_internal_la_CFLAGS)
3129 libsystemd_la_LDFLAGS = \
3131 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3132 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3134 libsystemd_la_LIBADD = \
3135 $(libsystemd_internal_la_LIBADD) \
3136 $(libsystemd_journal_internal_la_LIBADD)
3138 libsystemd-install-hook:
3139 libname=libsystemd.so && $(move-to-rootlibdir)
3141 libsystemd-uninstall-hook:
3142 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3144 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3145 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3147 pkgconfiglib_DATA += \
3148 src/libsystemd/libsystemd.pc
3150 pkginclude_HEADERS += \
3151 src/systemd/sd-bus.h \
3152 src/systemd/sd-bus-protocol.h \
3153 src/systemd/sd-bus-vtable.h \
3154 src/systemd/sd-event.h \
3155 src/systemd/sd-login.h \
3156 src/systemd/sd-id128.h \
3157 src/systemd/sd-daemon.h
3159 lib_LTLIBRARIES += \
3164 test-bus-signature \
3165 test-bus-benchmark \
3171 test-bus-kernel-bloom \
3172 test-bus-zero-copy \
3173 test-bus-introspect \
3180 test-local-addresses \
3186 test_bus_marshal_SOURCES = \
3187 src/libsystemd/sd-bus/test-bus-marshal.c
3189 test_bus_marshal_LDADD = \
3194 test_bus_marshal_CFLAGS = \
3199 test_bus_signature_SOURCES = \
3200 src/libsystemd/sd-bus/test-bus-signature.c
3202 test_bus_signature_LDADD = \
3205 test_bus_chat_SOURCES = \
3206 src/libsystemd/sd-bus/test-bus-chat.c
3208 test_bus_chat_LDADD = \
3211 test_bus_cleanup_SOURCES = \
3212 src/libsystemd/sd-bus/test-bus-cleanup.c
3214 test_bus_cleanup_CFLAGS = \
3218 test_bus_cleanup_LDADD = \
3221 test_bus_server_SOURCES = \
3222 src/libsystemd/sd-bus/test-bus-server.c
3224 test_bus_server_LDADD = \
3227 test_bus_objects_SOURCES = \
3228 src/libsystemd/sd-bus/test-bus-objects.c
3230 test_bus_objects_LDADD = \
3233 test_bus_error_SOURCES = \
3234 src/libsystemd/sd-bus/test-bus-error.c
3236 test_bus_error_LDADD = \
3239 test_bus_gvariant_SOURCES = \
3240 src/libsystemd/sd-bus/test-bus-gvariant.c
3242 test_bus_gvariant_LDADD = \
3246 test_bus_gvariant_CFLAGS = \
3250 test_bus_creds_SOURCES = \
3251 src/libsystemd/sd-bus/test-bus-creds.c
3253 test_bus_creds_LDADD = \
3256 test_bus_match_SOURCES = \
3257 src/libsystemd/sd-bus/test-bus-match.c
3259 test_bus_match_LDADD = \
3262 test_bus_kernel_SOURCES = \
3263 src/libsystemd/sd-bus/test-bus-kernel.c
3265 test_bus_kernel_LDADD = \
3268 test_bus_kernel_bloom_SOURCES = \
3269 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3271 test_bus_kernel_bloom_LDADD = \
3274 test_bus_benchmark_SOURCES = \
3275 src/libsystemd/sd-bus/test-bus-benchmark.c
3277 test_bus_benchmark_LDADD = \
3280 test_bus_zero_copy_SOURCES = \
3281 src/libsystemd/sd-bus/test-bus-zero-copy.c
3283 test_bus_zero_copy_LDADD = \
3286 test_bus_introspect_SOURCES = \
3287 src/libsystemd/sd-bus/test-bus-introspect.c
3289 test_bus_introspect_LDADD = \
3292 test_event_SOURCES = \
3293 src/libsystemd/sd-event/test-event.c
3295 test_event_LDADD = \
3298 test_netlink_SOURCES = \
3299 src/libsystemd/sd-netlink/test-netlink.c
3301 test_netlink_LDADD = \
3304 test_local_addresses_SOURCES = \
3305 src/libsystemd/sd-netlink/test-local-addresses.c
3307 test_local_addresses_LDADD = \
3310 test_resolve_SOURCES = \
3311 src/libsystemd/sd-resolve/test-resolve.c
3313 test_resolve_LDADD = \
3317 src/libsystemd/sd-bus/busctl.c \
3318 src/libsystemd/sd-bus/busctl-introspect.c \
3319 src/libsystemd/sd-bus/busctl-introspect.h
3324 # ------------------------------------------------------------------------------
3325 noinst_LTLIBRARIES += \
3326 libsystemd-network.la
3328 libsystemd_network_la_CFLAGS = \
3332 libsystemd_network_la_SOURCES = \
3333 src/systemd/sd-dhcp-client.h \
3334 src/systemd/sd-dhcp-server.h \
3335 src/systemd/sd-dhcp-lease.h \
3336 src/systemd/sd-ipv4ll.h \
3337 src/systemd/sd-ipv4acd.h \
3338 src/systemd/sd-ndisc.h \
3339 src/systemd/sd-dhcp6-client.h \
3340 src/systemd/sd-dhcp6-lease.h \
3341 src/systemd/sd-lldp.h \
3342 src/libsystemd-network/sd-dhcp-client.c \
3343 src/libsystemd-network/sd-dhcp-server.c \
3344 src/libsystemd-network/dhcp-network.c \
3345 src/libsystemd-network/dhcp-option.c \
3346 src/libsystemd-network/dhcp-packet.c \
3347 src/libsystemd-network/dhcp-internal.h \
3348 src/libsystemd-network/dhcp-server-internal.h \
3349 src/libsystemd-network/dhcp-protocol.h \
3350 src/libsystemd-network/dhcp-lease-internal.h \
3351 src/libsystemd-network/sd-dhcp-lease.c \
3352 src/libsystemd-network/sd-ipv4ll.c \
3353 src/libsystemd-network/sd-ipv4acd.c \
3354 src/libsystemd-network/arp-util.h \
3355 src/libsystemd-network/arp-util.c \
3356 src/libsystemd-network/network-internal.c \
3357 src/libsystemd-network/network-internal.h \
3358 src/libsystemd-network/sd-ndisc.c \
3359 src/libsystemd-network/icmp6-util.h \
3360 src/libsystemd-network/icmp6-util.c \
3361 src/libsystemd-network/sd-dhcp6-client.c \
3362 src/libsystemd-network/dhcp6-internal.h \
3363 src/libsystemd-network/dhcp6-protocol.h \
3364 src/libsystemd-network/dhcp6-network.c \
3365 src/libsystemd-network/dhcp6-option.c \
3366 src/libsystemd-network/dhcp6-lease-internal.h \
3367 src/libsystemd-network/sd-dhcp6-lease.c \
3368 src/libsystemd-network/dhcp-identifier.h \
3369 src/libsystemd-network/dhcp-identifier.c \
3370 src/libsystemd-network/lldp.h \
3371 src/libsystemd-network/lldp-internal.h \
3372 src/libsystemd-network/lldp-network.h \
3373 src/libsystemd-network/lldp-network.c \
3374 src/libsystemd-network/lldp-neighbor.h \
3375 src/libsystemd-network/lldp-neighbor.c \
3376 src/libsystemd-network/sd-lldp.c
3378 libsystemd_network_la_LIBADD = \
3381 test_dhcp_option_SOURCES = \
3382 src/libsystemd-network/dhcp-protocol.h \
3383 src/libsystemd-network/dhcp-internal.h \
3384 src/libsystemd-network/test-dhcp-option.c
3386 test_dhcp_option_LDADD = \
3387 libsystemd-network.la \
3390 test_dhcp_client_SOURCES = \
3391 src/systemd/sd-dhcp-client.h \
3392 src/libsystemd-network/dhcp-protocol.h \
3393 src/libsystemd-network/dhcp-internal.h \
3394 src/libsystemd-network/test-dhcp-client.c
3396 test_dhcp_client_LDADD = \
3397 libsystemd-network.la \
3400 test_dhcp_server_SOURCES = \
3401 src/libsystemd-network/test-dhcp-server.c
3403 test_dhcp_server_LDADD = \
3404 libsystemd-network.la \
3407 test_ipv4ll_SOURCES = \
3408 src/systemd/sd-ipv4ll.h \
3409 src/libsystemd-network/arp-util.h \
3410 src/libsystemd-network/test-ipv4ll.c
3412 test_ipv4ll_LDADD = \
3413 libsystemd-network.la \
3416 test_ipv4ll_manual_SOURCES = \
3417 src/systemd/sd-ipv4ll.h \
3418 src/libsystemd-network/test-ipv4ll-manual.c
3420 test_ipv4ll_manual_LDADD = \
3421 libsystemd-network.la \
3424 test_acd_SOURCES = \
3425 src/systemd/sd-ipv4acd.h \
3426 src/libsystemd-network/test-acd.c
3429 libsystemd-network.la \
3432 test_ndisc_rs_SOURCES = \
3433 src/systemd/sd-dhcp6-client.h \
3434 src/systemd/sd-ndisc.h \
3435 src/libsystemd-network/icmp6-util.h \
3436 src/libsystemd-network/test-ndisc-rs.c \
3437 src/libsystemd-network/dhcp-identifier.h \
3438 src/libsystemd-network/dhcp-identifier.c
3440 test_ndisc_rs_LDADD = \
3441 libsystemd-network.la \
3445 test_dhcp6_client_SOURCES = \
3446 src/systemd/sd-dhcp6-client.h \
3447 src/libsystemd-network/dhcp6-internal.h \
3448 src/libsystemd-network/test-dhcp6-client.c \
3449 src/libsystemd-network/dhcp-identifier.h \
3450 src/libsystemd-network/dhcp-identifier.c
3452 test_dhcp6_client_LDADD = \
3453 libsystemd-network.la \
3457 test_lldp_SOURCES = \
3458 src/libsystemd-network/test-lldp.c
3461 libsystemd-network.la \
3473 # ------------------------------------------------------------------------------
3474 include_HEADERS += \
3475 src/libudev/libudev.h
3477 lib_LTLIBRARIES += \
3480 libudev_la_SOURCES =\
3481 src/libudev/libudev.sym \
3482 src/libudev/libudev-private.h \
3483 src/libudev/libudev-device-internal.h \
3484 src/libudev/libudev.c \
3485 src/libudev/libudev-list.c \
3486 src/libudev/libudev-util.c \
3487 src/libudev/libudev-device.c \
3488 src/libudev/libudev-device-private.c \
3489 src/libudev/libudev-enumerate.c \
3490 src/libudev/libudev-monitor.c \
3491 src/libudev/libudev-queue.c \
3492 src/libudev/libudev-hwdb.c
3494 libudev_la_LDFLAGS = \
3496 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3497 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3499 libudev_la_LIBADD = \
3500 libsystemd-internal.la
3502 pkgconfiglib_DATA += \
3503 src/libudev/libudev.pc
3506 src/libudev/libudev.pc.in
3508 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3509 libudev-install-hook:
3510 libname=libudev.so && $(move-to-rootlibdir)
3512 libudev-uninstall-hook:
3513 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3515 INSTALL_EXEC_HOOKS += libudev-install-hook
3516 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3518 # ------------------------------------------------------------------------------
3519 noinst_LTLIBRARIES += \
3522 libudev_internal_la_SOURCES =\
3523 $(libudev_la_SOURCES)
3525 # ------------------------------------------------------------------------------
3527 $(sysconfdir)/udev/rules.d
3529 dist_network_DATA = \
3530 network/99-default.link \
3531 network/80-container-host0.network \
3532 network/80-container-ve.network
3534 dist_udevrules_DATA += \
3535 rules/50-udev-default.rules \
3536 rules/60-block.rules \
3537 rules/60-drm.rules \
3538 rules/60-evdev.rules \
3539 rules/60-persistent-storage-tape.rules \
3540 rules/60-persistent-input.rules \
3541 rules/60-persistent-alsa.rules \
3542 rules/60-persistent-storage.rules \
3543 rules/60-serial.rules \
3544 rules/64-btrfs.rules \
3545 rules/70-mouse.rules \
3546 rules/75-net-description.rules \
3547 rules/78-sound-card.rules \
3548 rules/80-net-setup-link.rules
3550 nodist_udevrules_DATA += \
3551 rules/99-systemd.rules
3553 udevconfdir = $(sysconfdir)/udev
3554 dist_udevconf_DATA = \
3557 pkgconfigdata_DATA += \
3561 rules/99-systemd.rules.in \
3565 units/systemd-udevd.service.in \
3566 units/systemd-udev-trigger.service.in \
3567 units/systemd-udev-settle.service.in
3569 SOCKETS_TARGET_WANTS += \
3570 systemd-udevd-control.socket \
3571 systemd-udevd-kernel.socket
3573 SYSINIT_TARGET_WANTS += \
3574 systemd-udevd.service \
3575 systemd-udev-trigger.service
3577 rootbin_PROGRAMS += \
3580 rootlibexec_PROGRAMS += \
3583 noinst_LTLIBRARIES += \
3586 src/udev/keyboard-keys-list.txt:
3587 $(AM_V_at)$(MKDIR_P) $(dir $@)
3588 $(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 } }' > $@
3590 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3591 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3593 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3594 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3596 gperf_txt_sources += \
3597 src/udev/keyboard-keys-list.txt
3599 libudev_core_la_SOURCES = \
3601 src/udev/udev-event.c \
3602 src/udev/udev-watch.c \
3603 src/udev/udev-node.c \
3604 src/udev/udev-rules.c \
3605 src/udev/udev-ctrl.c \
3606 src/udev/udev-builtin.c \
3607 src/udev/udev-builtin-btrfs.c \
3608 src/udev/udev-builtin-hwdb.c \
3609 src/udev/udev-builtin-input_id.c \
3610 src/udev/udev-builtin-keyboard.c \
3611 src/udev/udev-builtin-net_id.c \
3612 src/udev/udev-builtin-net_setup_link.c \
3613 src/udev/udev-builtin-path_id.c \
3614 src/udev/udev-builtin-usb_id.c \
3615 src/udev/net/link-config.h \
3616 src/udev/net/link-config.c \
3617 src/udev/net/ethtool-util.h \
3618 src/udev/net/ethtool-util.c
3620 nodist_libudev_core_la_SOURCES = \
3621 src/udev/keyboard-keys-from-name.h \
3622 src/udev/net/link-config-gperf.c
3624 gperf_gperf_sources += \
3625 src/udev/net/link-config-gperf.gperf
3627 libudev_core_la_CFLAGS = \
3632 libudev_core_la_LIBADD = \
3633 libsystemd-network.la \
3639 libudev_core_la_SOURCES += \
3640 src/udev/udev-builtin-kmod.c
3642 dist_udevrules_DATA += \
3643 rules/80-drivers.rules
3647 libudev_core_la_SOURCES += \
3648 src/udev/udev-builtin-blkid.c
3652 libudev_core_la_SOURCES += \
3653 src/udev/udev-builtin-uaccess.c \
3654 src/login/logind-acl.c \
3655 src/libsystemd/sd-login/sd-login.c \
3656 src/systemd/sd-login.h
3659 systemd_udevd_SOURCES = \
3662 systemd_udevd_LDADD = \
3666 src/udev/udevadm.c \
3667 src/udev/udevadm-info.c \
3668 src/udev/udevadm-control.c \
3669 src/udev/udevadm-monitor.c \
3670 src/udev/udevadm-hwdb.c \
3671 src/udev/udevadm-settle.c \
3672 src/udev/udevadm-trigger.c \
3673 src/udev/udevadm-test.c \
3674 src/udev/udevadm-test-builtin.c \
3675 src/udev/udevadm-util.c \
3676 src/udev/udevadm-util.h
3681 # ------------------------------------------------------------------------------
3684 $(sysconfdir)/udev/hwdb.d
3686 systemd_hwdb_SOURCES = \
3687 src/libsystemd/sd-hwdb/hwdb-internal.h \
3690 systemd_hwdb_LDADD = \
3693 rootbin_PROGRAMS += \
3696 dist_udevhwdb_DATA = \
3697 hwdb/20-pci-vendor-model.hwdb \
3698 hwdb/20-pci-classes.hwdb \
3699 hwdb/20-usb-vendor-model.hwdb \
3700 hwdb/20-usb-classes.hwdb \
3701 hwdb/20-sdio-vendor-model.hwdb \
3702 hwdb/20-sdio-classes.hwdb \
3703 hwdb/20-bluetooth-vendor-product.hwdb \
3704 hwdb/20-acpi-vendor.hwdb \
3706 hwdb/20-net-ifname.hwdb \
3707 hwdb/60-evdev.hwdb \
3708 hwdb/60-keyboard.hwdb \
3709 hwdb/70-mouse.hwdb \
3710 hwdb/70-pointingstick.hwdb
3712 SYSINIT_TARGET_WANTS += \
3713 systemd-hwdb-update.service
3715 # Update hwdb on installation. Do not bother if installing
3716 # in DESTDIR, since this is likely for packaging purposes.
3718 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3720 INSTALL_DATA_HOOKS += \
3724 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3728 units/systemd-hwdb-update.service.in \
3729 hwdb/ids-update.pl \
3732 # ------------------------------------------------------------------------------
3739 test/rule-syntax-check.py
3743 test/sysv-generator-test.py
3752 test_libudev_SOURCES = \
3753 src/test/test-libudev.c
3755 test_libudev_LDADD = \
3758 test_udev_SOURCES = \
3759 src/test/test-udev.c
3771 # packed sysfs test tree
3773 $(AM_V_at)$(MKDIR_P) $(dir $@)
3774 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3778 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3783 test/rule-syntax-check.py \
3784 test/sysv-generator-test.py \
3787 # ------------------------------------------------------------------------------
3789 src/udev/ata_id/ata_id.c
3794 udevlibexec_PROGRAMS += \
3797 # ------------------------------------------------------------------------------
3798 cdrom_id_SOURCES = \
3799 src/udev/cdrom_id/cdrom_id.c
3804 udevlibexec_PROGRAMS += \
3807 dist_udevrules_DATA += \
3808 rules/60-cdrom_id.rules
3810 # ------------------------------------------------------------------------------
3812 src/udev/collect/collect.c
3817 udevlibexec_PROGRAMS += \
3820 # ------------------------------------------------------------------------------
3822 src/udev/scsi_id/scsi_id.c \
3823 src/udev/scsi_id/scsi_serial.c \
3824 src/udev/scsi_id/scsi.h \
3825 src/udev/scsi_id/scsi_id.h
3830 udevlibexec_PROGRAMS += \
3834 src/udev/scsi_id/README
3836 # ------------------------------------------------------------------------------
3838 src/udev/v4l_id/v4l_id.c
3843 udevlibexec_PROGRAMS += \
3846 dist_udevrules_DATA += \
3847 rules/60-persistent-v4l.rules
3849 # ------------------------------------------------------------------------------
3850 mtd_probe_SOURCES = \
3851 src/udev/mtd_probe/mtd_probe.c \
3852 src/udev/mtd_probe/mtd_probe.h \
3853 src/udev/mtd_probe/probe_smartmedia.c
3855 dist_udevrules_DATA += \
3856 rules/75-probe_mtd.rules
3858 udevlibexec_PROGRAMS += \
3861 # ------------------------------------------------------------------------------
3862 test_id128_SOURCES = \
3863 src/test/test-id128.c
3865 test_id128_LDADD = \
3871 # ------------------------------------------------------------------------------
3874 systemd-socket-activate
3876 systemd_socket_activate_SOURCES = \
3877 src/activate/activate.c
3879 systemd_socket_activate_LDADD = \
3882 # ------------------------------------------------------------------------------
3883 systemd_journald_SOURCES = \
3884 src/journal/journald.c \
3885 src/journal/journald-server.h
3887 systemd_journald_LDADD = \
3888 libjournal-core.la \
3891 systemd_cat_SOURCES = \
3894 systemd_cat_LDADD = \
3898 rootlibexec_PROGRAMS += \
3899 systemd-journal-remote
3901 systemd_journal_remote_SOURCES = \
3902 src/journal-remote/journal-remote-parse.h \
3903 src/journal-remote/journal-remote-parse.c \
3904 src/journal-remote/journal-remote-write.h \
3905 src/journal-remote/journal-remote-write.c \
3906 src/journal-remote/journal-remote.h \
3907 src/journal-remote/journal-remote.c
3909 systemd_journal_remote_LDADD = \
3912 systemd_journal_remote_SOURCES += \
3913 src/journal-remote/microhttpd-util.h \
3914 src/journal-remote/microhttpd-util.c
3916 systemd_journal_remote_CFLAGS = \
3918 $(MICROHTTPD_CFLAGS)
3920 systemd_journal_remote_LDADD += \
3924 dist_tmpfiles_DATA += \
3925 tmpfiles.d/systemd-remote.conf
3929 systemd_journal_remote_LDADD += \
3933 # systemd-journal-remote make sense mostly with full crypto stack
3934 dist_systemunit_DATA += \
3935 units/systemd-journal-remote.socket
3937 nodist_systemunit_DATA += \
3938 units/systemd-journal-remote.service
3940 journal-remote-install-hook: journal-install-hook
3941 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3942 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3943 -chmod 755 $(DESTDIR)/var/log/journal/remote
3945 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3947 nodist_pkgsysconf_DATA += \
3948 src/journal-remote/journal-remote.conf
3951 units/systemd-journal-remote.service.in \
3952 src/journal-remote/journal-remote.conf.in \
3953 src/journal-remote/log-generator.py
3957 rootlibexec_PROGRAMS += \
3958 systemd-journal-upload
3960 systemd_journal_upload_SOURCES = \
3961 src/journal-remote/journal-upload.h \
3962 src/journal-remote/journal-upload.c \
3963 src/journal-remote/journal-upload-journal.c
3965 systemd_journal_upload_CFLAGS = \
3969 systemd_journal_upload_LDADD = \
3973 nodist_systemunit_DATA += \
3974 units/systemd-journal-upload.service
3976 nodist_pkgsysconf_DATA += \
3977 src/journal-remote/journal-upload.conf
3981 units/systemd-journal-upload.service.in \
3982 src/journal-remote/journal-upload.conf.in
3984 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3985 journalctl_CFLAGS = \
3988 journalctl_SOURCES = \
3989 src/journal/journalctl.c
3991 journalctl_LDADD = \
3996 journalctl_SOURCES += \
3997 src/journal/journal-qrcode.c \
3998 src/journal/journal-qrcode.h
4000 journalctl_CFLAGS += \
4003 journalctl_LDADD += \
4007 test_journal_SOURCES = \
4008 src/journal/test-journal.c
4010 test_journal_LDADD = \
4013 test_journal_send_SOURCES = \
4014 src/journal/test-journal-send.c
4016 test_journal_send_LDADD = \
4019 test_journal_syslog_SOURCES = \
4020 src/journal/test-journal-syslog.c
4022 test_journal_syslog_LDADD = \
4025 test_journal_match_SOURCES = \
4026 src/journal/test-journal-match.c
4028 test_journal_match_LDADD = \
4031 test_journal_enum_SOURCES = \
4032 src/journal/test-journal-enum.c
4034 test_journal_enum_LDADD = \
4037 test_journal_stream_SOURCES = \
4038 src/journal/test-journal-stream.c
4040 test_journal_stream_LDADD = \
4043 test_journal_flush_SOURCES = \
4044 src/journal/test-journal-flush.c
4046 test_journal_flush_LDADD = \
4049 test_journal_init_SOURCES = \
4050 src/journal/test-journal-init.c
4052 test_journal_init_LDADD = \
4055 test_journal_verify_SOURCES = \
4056 src/journal/test-journal-verify.c
4058 test_journal_verify_LDADD = \
4061 test_journal_interleaving_SOURCES = \
4062 src/journal/test-journal-interleaving.c
4064 test_journal_interleaving_LDADD = \
4067 test_mmap_cache_SOURCES = \
4068 src/journal/test-mmap-cache.c
4070 test_mmap_cache_LDADD = \
4073 test_catalog_SOURCES = \
4074 src/journal/test-catalog.c
4076 test_catalog_CPPFLAGS = \
4078 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4080 test_catalog_LDADD = \
4083 test_compress_SOURCES = \
4084 src/journal/test-compress.c
4086 test_compress_LDADD = \
4089 test_compress_benchmark_SOURCES = \
4090 src/journal/test-compress-benchmark.c
4092 test_compress_benchmark_LDADD = \
4095 test_audit_type_SOURCES = \
4096 src/journal/test-audit-type.c
4098 test_audit_type_LDADD = \
4101 libjournal_core_la_SOURCES = \
4102 src/journal/journald-kmsg.c \
4103 src/journal/journald-kmsg.h \
4104 src/journal/journald-syslog.c \
4105 src/journal/journald-syslog.h \
4106 src/journal/journald-stream.c \
4107 src/journal/journald-stream.h \
4108 src/journal/journald-server.c \
4109 src/journal/journald-server.h \
4110 src/journal/journald-console.c \
4111 src/journal/journald-console.h \
4112 src/journal/journald-wall.c \
4113 src/journal/journald-wall.h \
4114 src/journal/journald-native.c \
4115 src/journal/journald-native.h \
4116 src/journal/journald-audit.c \
4117 src/journal/journald-audit.h \
4118 src/journal/journald-rate-limit.c \
4119 src/journal/journald-rate-limit.h \
4120 src/journal/journal-internal.h
4122 nodist_libjournal_core_la_SOURCES = \
4123 src/journal/journald-gperf.c
4125 libjournal_core_la_LIBADD = \
4128 noinst_LTLIBRARIES += \
4131 journal-install-hook:
4132 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4133 -chown 0:0 $(DESTDIR)/var/log/journal
4134 -chmod 755 $(DESTDIR)/var/log/journal
4135 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4136 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4138 journal-uninstall-hook:
4139 -rmdir $(DESTDIR)/var/log/journal/remote
4140 -rmdir $(DESTDIR)/var/log/journal/
4142 INSTALL_EXEC_HOOKS += journal-install-hook
4143 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4145 # ------------------------------------------------------------------------------
4146 # Update catalog on installation. Do not bother if installing
4147 # in DESTDIR, since this is likely for packaging purposes.
4148 catalog-update-hook:
4149 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4151 INSTALL_DATA_HOOKS += \
4154 catalog-remove-hook:
4155 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4157 UNINSTALL_DATA_HOOKS += \
4166 test-journal-syslog \
4167 test-journal-match \
4168 test-journal-stream \
4170 test-journal-verify \
4171 test-journal-interleaving \
4172 test-journal-flush \
4180 test-compress-benchmark
4183 pkginclude_HEADERS += \
4184 src/systemd/sd-journal.h \
4185 src/systemd/sd-messages.h \
4186 src/systemd/_sd-common.h
4188 libsystemd_journal_internal_la_SOURCES = \
4189 src/journal/sd-journal.c \
4190 src/systemd/sd-journal.h \
4191 src/systemd/_sd-common.h \
4192 src/journal/journal-file.c \
4193 src/journal/journal-file.h \
4194 src/journal/journal-vacuum.c \
4195 src/journal/journal-vacuum.h \
4196 src/journal/journal-verify.c \
4197 src/journal/journal-verify.h \
4198 src/journal/lookup3.c \
4199 src/journal/lookup3.h \
4200 src/journal/journal-send.c \
4201 src/journal/journal-def.h \
4202 src/journal/compress.h \
4203 src/journal/catalog.c \
4204 src/journal/catalog.h \
4205 src/journal/mmap-cache.c \
4206 src/journal/mmap-cache.h \
4207 src/journal/compress.c \
4208 src/journal/audit-type.h \
4209 src/journal/audit-type.c
4211 nodist_libsystemd_journal_internal_la_SOURCES = \
4212 src/journal/audit_type-to-name.h
4214 gperf_txt_sources += \
4215 src/journal/audit_type-list.txt
4217 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4218 libsystemd_journal_internal_la_CFLAGS = \
4221 libsystemd_journal_internal_la_LIBADD =
4224 libsystemd_journal_internal_la_CFLAGS += \
4227 libsystemd_journal_internal_la_LIBADD += \
4232 libsystemd_journal_internal_la_LIBADD += \
4237 libsystemd_journal_internal_la_SOURCES += \
4238 src/journal/journal-authenticate.c \
4239 src/journal/journal-authenticate.h \
4240 src/journal/fsprg.c \
4241 src/journal/fsprg.h \
4242 src/shared/gcrypt-util.c \
4243 src/shared/gcrypt-util.h
4245 libsystemd_journal_internal_la_LIBADD += \
4248 # fsprg.c is a drop-in file using void pointer arithmetic
4249 libsystemd_journal_internal_la_CFLAGS += \
4254 noinst_LTLIBRARIES += \
4255 libsystemd-journal-internal.la
4257 rootlibexec_PROGRAMS += \
4260 rootbin_PROGRAMS += \
4266 dist_systemunit_DATA += \
4267 units/systemd-journald.socket \
4268 units/systemd-journald-dev-log.socket \
4269 units/systemd-journald-audit.socket
4271 nodist_systemunit_DATA += \
4272 units/systemd-journald.service \
4273 units/systemd-journal-flush.service \
4274 units/systemd-journal-catalog-update.service
4276 dist_pkgsysconf_DATA += \
4277 src/journal/journald.conf
4279 dist_catalog_DATA = \
4280 catalog/systemd.be.catalog \
4281 catalog/systemd.be@latin.catalog \
4282 catalog/systemd.fr.catalog \
4283 catalog/systemd.it.catalog \
4284 catalog/systemd.pl.catalog \
4285 catalog/systemd.pt_BR.catalog \
4286 catalog/systemd.ru.catalog \
4287 catalog/systemd.zh_CN.catalog \
4288 catalog/systemd.zh_TW.catalog \
4289 catalog/systemd.catalog
4291 SOCKETS_TARGET_WANTS += \
4292 systemd-journald.socket \
4293 systemd-journald-dev-log.socket \
4294 systemd-journald-audit.socket
4296 SYSINIT_TARGET_WANTS += \
4297 systemd-journald.service \
4298 systemd-journal-flush.service \
4299 systemd-journal-catalog-update.service
4302 units/systemd-journald.service.in \
4303 units/systemd-journal-flush.service.in \
4304 units/systemd-journal-catalog-update.service.in
4306 gperf_gperf_sources += \
4307 src/journal/journald-gperf.gperf
4309 # ------------------------------------------------------------------------------
4311 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4313 rootlibexec_PROGRAMS += \
4314 systemd-journal-gatewayd
4316 systemd_journal_gatewayd_SOURCES = \
4317 src/journal-remote/journal-gatewayd.c \
4318 src/journal-remote/microhttpd-util.h \
4319 src/journal-remote/microhttpd-util.c
4321 systemd_journal_gatewayd_LDADD = \
4326 systemd_journal_gatewayd_LDADD += \
4330 systemd_journal_gatewayd_CFLAGS = \
4332 $(MICROHTTPD_CFLAGS)
4334 systemd_journal_gatewayd_CPPFLAGS = \
4336 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4338 dist_systemunit_DATA += \
4339 units/systemd-journal-gatewayd.socket
4341 nodist_systemunit_DATA += \
4342 units/systemd-journal-gatewayd.service
4344 dist_gatewayddocumentroot_DATA = \
4345 src/journal-remote/browse.html
4350 units/systemd-journal-gatewayd.service.in
4352 # ------------------------------------------------------------------------------
4354 systemd_socket_proxyd_SOURCES = \
4355 src/socket-proxy/socket-proxyd.c
4357 systemd_socket_proxyd_LDADD = \
4360 # ------------------------------------------------------------------------------
4362 systemd_coredump_SOURCES = \
4363 src/coredump/coredump.c \
4364 src/coredump/coredump-vacuum.c \
4365 src/coredump/coredump-vacuum.h
4367 systemd_coredump_LDADD = \
4371 systemd_coredump_SOURCES += \
4372 src/coredump/stacktrace.c \
4373 src/coredump/stacktrace.h
4375 systemd_coredump_LDADD += \
4379 nodist_systemunit_DATA += \
4380 units/systemd-coredump@.service
4382 dist_systemunit_DATA += \
4383 units/systemd-coredump.socket
4385 SOCKETS_TARGET_WANTS += \
4386 systemd-coredump.socket
4388 rootlibexec_PROGRAMS += \
4391 dist_pkgsysconf_DATA += \
4392 src/coredump/coredump.conf
4394 coredumpctl_SOURCES = \
4395 src/coredump/coredumpctl.c
4397 coredumpctl_LDADD = \
4404 test-coredump-vacuum
4406 test_coredump_vacuum_SOURCES = \
4407 src/coredump/test-coredump-vacuum.c \
4408 src/coredump/coredump-vacuum.c \
4409 src/coredump/coredump-vacuum.h
4411 test_coredump_vacuum_LDADD = \
4414 dist_bashcompletion_data += \
4415 shell-completion/bash/coredumpctl
4417 dist_zshcompletion_data += \
4418 shell-completion/zsh/_coredumpctl
4420 nodist_sysctl_DATA = \
4421 sysctl.d/50-coredump.conf
4424 sysctl.d/50-coredump.conf
4428 sysctl.d/50-coredump.conf.in \
4429 units/systemd-coredump@.service.in
4431 # ------------------------------------------------------------------------------
4433 systemd_binfmt_SOURCES = \
4436 systemd_binfmt_LDADD = \
4439 rootlibexec_PROGRAMS += \
4442 dist_systemunit_DATA += \
4443 units/proc-sys-fs-binfmt_misc.automount \
4444 units/proc-sys-fs-binfmt_misc.mount
4446 nodist_systemunit_DATA += \
4447 units/systemd-binfmt.service
4450 $(prefix)/lib/binfmt.d \
4451 $(sysconfdir)/binfmt.d
4453 SYSINIT_TARGET_WANTS += \
4454 systemd-binfmt.service \
4455 proc-sys-fs-binfmt_misc.automount
4460 units/systemd-binfmt.service.in
4462 # ------------------------------------------------------------------------------
4464 systemd_vconsole_setup_SOURCES = \
4465 src/vconsole/vconsole-setup.c
4467 systemd_vconsole_setup_LDADD = \
4470 rootlibexec_PROGRAMS += \
4471 systemd-vconsole-setup
4473 nodist_udevrules_DATA += \
4474 src/vconsole/90-vconsole.rules
4476 nodist_systemunit_DATA += \
4477 units/systemd-vconsole-setup.service
4479 SYSINIT_TARGET_WANTS += \
4480 systemd-vconsole-setup.service
4484 src/vconsole/90-vconsole.rules.in \
4485 units/systemd-vconsole-setup.service.in
4487 # ------------------------------------------------------------------------------
4488 if ENABLE_QUOTACHECK
4489 rootlibexec_PROGRAMS += \
4492 nodist_systemunit_DATA += \
4493 units/systemd-quotacheck.service
4495 systemd_quotacheck_SOURCES = \
4496 src/quotacheck/quotacheck.c
4498 systemd_quotacheck_LDADD = \
4503 units/systemd-quotacheck.service.in
4505 nodist_systemunit_DATA += \
4506 units/quotaon.service
4508 # ------------------------------------------------------------------------------
4509 if ENABLE_RANDOMSEED
4510 rootlibexec_PROGRAMS += \
4513 nodist_systemunit_DATA += \
4514 units/systemd-random-seed.service
4516 systemd_random_seed_SOURCES = \
4517 src/random-seed/random-seed.c
4519 systemd_random_seed_LDADD = \
4522 SYSINIT_TARGET_WANTS += \
4523 systemd-random-seed.service
4528 units/systemd-random-seed.service.in
4530 # ------------------------------------------------------------------------------
4532 rootlibexec_PROGRAMS += \
4535 nodist_systemunit_DATA += \
4536 units/systemd-backlight@.service
4538 systemd_backlight_SOURCES = \
4539 src/backlight/backlight.c
4541 systemd_backlight_LDADD = \
4546 units/systemd-backlight@.service.in
4548 # ------------------------------------------------------------------------------
4550 rootlibexec_PROGRAMS += \
4553 nodist_systemunit_DATA += \
4554 units/systemd-rfkill.service
4556 dist_systemunit_DATA += \
4557 units/systemd-rfkill.socket
4559 systemd_rfkill_SOURCES = \
4562 systemd_rfkill_LDADD = \
4567 units/systemd-rfkill.service.in
4569 # ------------------------------------------------------------------------------
4570 if HAVE_LIBCRYPTSETUP
4571 rootlibexec_PROGRAMS += \
4574 systemgenerator_PROGRAMS += \
4575 systemd-cryptsetup-generator
4577 dist_systemunit_DATA += \
4578 units/cryptsetup.target \
4579 units/cryptsetup-pre.target
4581 systemd_cryptsetup_SOURCES = \
4582 src/cryptsetup/cryptsetup.c
4584 systemd_cryptsetup_CFLAGS = \
4586 $(LIBCRYPTSETUP_CFLAGS)
4588 systemd_cryptsetup_LDADD = \
4590 $(LIBCRYPTSETUP_LIBS)
4592 systemd_cryptsetup_generator_SOURCES = \
4593 src/cryptsetup/cryptsetup-generator.c
4595 systemd_cryptsetup_generator_LDADD = \
4598 SYSINIT_TARGET_WANTS += \
4603 # ------------------------------------------------------------------------------
4605 systemd_hostnamed_SOURCES = \
4606 src/hostname/hostnamed.c
4608 systemd_hostnamed_LDADD = \
4611 rootlibexec_PROGRAMS += \
4614 nodist_systemunit_DATA += \
4615 units/systemd-hostnamed.service
4617 dist_systemunit_DATA_busnames += \
4618 units/org.freedesktop.hostname1.busname
4620 dist_dbuspolicy_DATA += \
4621 src/hostname/org.freedesktop.hostname1.conf
4623 dist_dbussystemservice_DATA += \
4624 src/hostname/org.freedesktop.hostname1.service
4626 polkitpolicy_files += \
4627 src/hostname/org.freedesktop.hostname1.policy
4629 SYSTEM_UNIT_ALIASES += \
4630 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4632 BUSNAMES_TARGET_WANTS += \
4633 org.freedesktop.hostname1.busname
4635 hostnamectl_SOURCES = \
4636 src/hostname/hostnamectl.c
4638 hostnamectl_LDADD = \
4644 dist_bashcompletion_data += \
4645 shell-completion/bash/hostnamectl
4647 dist_zshcompletion_data += \
4648 shell-completion/zsh/_hostnamectl
4651 polkitpolicy_in_files += \
4652 src/hostname/org.freedesktop.hostname1.policy.in
4655 units/systemd-hostnamed.service.in
4657 # ------------------------------------------------------------------------------
4658 dist_systemunit_DATA_busnames += \
4659 units/org.freedesktop.systemd1.busname
4661 BUSNAMES_TARGET_WANTS += \
4662 org.freedesktop.systemd1.busname
4664 # ------------------------------------------------------------------------------
4666 systemd_localed_SOURCES = \
4667 src/locale/localed.c
4669 systemd_localed_LDADD = \
4673 systemd_localed_CFLAGS = \
4677 nodist_systemunit_DATA += \
4678 units/systemd-localed.service
4680 dist_systemunit_DATA_busnames += \
4681 units/org.freedesktop.locale1.busname
4683 rootlibexec_PROGRAMS += \
4686 dist_dbuspolicy_DATA += \
4687 src/locale/org.freedesktop.locale1.conf
4689 dist_dbussystemservice_DATA += \
4690 src/locale/org.freedesktop.locale1.service
4692 polkitpolicy_files += \
4693 src/locale/org.freedesktop.locale1.policy
4695 SYSTEM_UNIT_ALIASES += \
4696 systemd-localed.service dbus-org.freedesktop.locale1.service
4698 BUSNAMES_TARGET_WANTS += \
4699 org.freedesktop.locale1.busname
4701 dist_pkgdata_DATA = \
4702 src/locale/kbd-model-map \
4703 src/locale/language-fallback-map
4705 localectl_SOURCES = \
4706 src/locale/localectl.c
4714 dist_bashcompletion_data += \
4715 shell-completion/bash/localectl
4717 dist_zshcompletion_data += \
4718 shell-completion/zsh/_localectl
4721 .PHONY: update-kbd-model-map
4723 polkitpolicy_in_files += \
4724 src/locale/org.freedesktop.locale1.policy.in
4727 units/systemd-localed.service.in
4729 # ------------------------------------------------------------------------------
4731 systemd_timedated_SOURCES = \
4732 src/timedate/timedated.c
4734 systemd_timedated_LDADD = \
4737 rootlibexec_PROGRAMS += \
4740 dist_dbussystemservice_DATA += \
4741 src/timedate/org.freedesktop.timedate1.service
4743 dist_dbuspolicy_DATA += \
4744 src/timedate/org.freedesktop.timedate1.conf
4746 nodist_systemunit_DATA += \
4747 units/systemd-timedated.service
4749 dist_systemunit_DATA_busnames += \
4750 units/org.freedesktop.timedate1.busname
4752 polkitpolicy_files += \
4753 src/timedate/org.freedesktop.timedate1.policy
4755 SYSTEM_UNIT_ALIASES += \
4756 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4758 BUSNAMES_TARGET_WANTS += \
4759 org.freedesktop.timedate1.busname
4761 timedatectl_SOURCES = \
4762 src/timedate/timedatectl.c
4764 timedatectl_LDADD = \
4770 dist_bashcompletion_data += \
4771 shell-completion/bash/timedatectl
4773 dist_zshcompletion_data += \
4774 shell-completion/zsh/_timedatectl
4777 polkitpolicy_in_files += \
4778 src/timedate/org.freedesktop.timedate1.policy.in
4781 units/systemd-timedated.service.in
4783 # ------------------------------------------------------------------------------
4785 systemd_timesyncd_SOURCES = \
4786 src/timesync/timesyncd.c \
4787 src/timesync/timesyncd-manager.c \
4788 src/timesync/timesyncd-manager.h \
4789 src/timesync/timesyncd-conf.c \
4790 src/timesync/timesyncd-conf.h \
4791 src/timesync/timesyncd-server.c \
4792 src/timesync/timesyncd-server.h
4794 nodist_systemd_timesyncd_SOURCES = \
4795 src/timesync/timesyncd-gperf.c
4797 systemd_timesyncd_LDADD = \
4798 libsystemd-network.la \
4801 rootlibexec_PROGRAMS += \
4804 nodist_systemunit_DATA += \
4805 units/systemd-timesyncd.service
4807 GENERAL_ALIASES += \
4808 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4810 nodist_pkgsysconf_DATA += \
4811 src/timesync/timesyncd.conf
4815 gperf_gperf_sources += \
4816 src/timesync/timesyncd-gperf.gperf
4819 units/systemd-timesyncd.service.in \
4820 src/timesync/timesyncd.conf.in
4822 # ------------------------------------------------------------------------------
4824 libnss_myhostname_la_SOURCES = \
4825 src/nss-myhostname/nss-myhostname.sym \
4826 src/nss-myhostname/nss-myhostname.c
4828 libnss_myhostname_la_LDFLAGS = \
4835 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4837 libnss_myhostname_la_LIBADD = \
4838 libsystemd-internal.la
4840 lib_LTLIBRARIES += \
4841 libnss_myhostname.la
4844 # ------------------------------------------------------------------------------
4846 systemd_machined_SOURCES = \
4847 src/machine/machined.c \
4848 src/machine/machined.h
4850 systemd_machined_LDADD = \
4853 rootlibexec_PROGRAMS += \
4856 libmachine_core_la_SOURCES = \
4857 src/machine/machine.c \
4858 src/machine/machine.h \
4859 src/machine/machined-dbus.c \
4860 src/machine/machine-dbus.c \
4861 src/machine/machine-dbus.h \
4862 src/machine/image-dbus.c \
4863 src/machine/image-dbus.h
4865 libmachine_core_la_LIBADD = \
4868 noinst_LTLIBRARIES += \
4871 machinectl_SOURCES = \
4872 src/machine/machinectl.c
4874 machinectl_LDADD = \
4877 rootbin_PROGRAMS += \
4880 test_machine_tables_SOURCES = \
4881 src/machine/test-machine-tables.c
4883 test_machine_tables_LDADD = \
4889 nodist_systemunit_DATA += \
4890 units/systemd-machined.service
4892 dist_systemunit_DATA += \
4895 dist_systemunit_DATA_busnames += \
4896 units/org.freedesktop.machine1.busname
4898 dist_dbussystemservice_DATA += \
4899 src/machine/org.freedesktop.machine1.service
4901 dist_dbuspolicy_DATA += \
4902 src/machine/org.freedesktop.machine1.conf
4904 polkitpolicy_files += \
4905 src/machine/org.freedesktop.machine1.policy
4907 dist_bashcompletion_data += \
4908 shell-completion/bash/machinectl
4910 dist_zshcompletion_data += \
4911 shell-completion/zsh/_machinectl \
4912 shell-completion/zsh/_sd_machines
4914 SYSTEM_UNIT_ALIASES += \
4915 systemd-machined.service dbus-org.freedesktop.machine1.service
4917 BUSNAMES_TARGET_WANTS += \
4918 org.freedesktop.machine1.busname
4920 libnss_mymachines_la_SOURCES = \
4921 src/nss-mymachines/nss-mymachines.sym \
4922 src/nss-mymachines/nss-mymachines.c
4924 libnss_mymachines_la_LDFLAGS = \
4931 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4933 libnss_mymachines_la_LIBADD = \
4934 libsystemd-internal.la
4936 lib_LTLIBRARIES += \
4937 libnss_mymachines.la
4941 polkitpolicy_in_files += \
4942 src/machine/org.freedesktop.machine1.policy.in
4945 units/systemd-machined.service.in
4947 # ------------------------------------------------------------------------------
4956 rootlibexec_PROGRAMS += \
4962 systemd_importd_SOURCES = \
4963 src/import/importd.c
4965 systemd_importd_CFLAGS = \
4967 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
4968 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
4969 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
4971 systemd_importd_LDADD = \
4974 systemd_pull_SOURCES = \
4976 src/import/pull-raw.c \
4977 src/import/pull-raw.h \
4978 src/import/pull-tar.c \
4979 src/import/pull-tar.h \
4980 src/import/pull-job.c \
4981 src/import/pull-job.h \
4982 src/import/pull-common.c \
4983 src/import/pull-common.h \
4984 src/import/import-common.c \
4985 src/import/import-common.h \
4986 src/import/import-compress.c \
4987 src/import/import-compress.h \
4988 src/import/curl-util.c \
4989 src/import/curl-util.h \
4990 src/import/qcow2-util.c \
4991 src/import/qcow2-util.h
4993 systemd_pull_CFLAGS = \
4999 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5000 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5002 systemd_pull_LDADD = \
5010 systemd_import_SOURCES = \
5011 src/import/import.c \
5012 src/import/import-raw.c \
5013 src/import/import-raw.h \
5014 src/import/import-tar.c \
5015 src/import/import-tar.h \
5016 src/import/import-common.c \
5017 src/import/import-common.h \
5018 src/import/import-compress.c \
5019 src/import/import-compress.h \
5020 src/import/qcow2-util.c \
5021 src/import/qcow2-util.h
5023 systemd_import_CFLAGS = \
5028 systemd_import_LDADD = \
5034 systemd_export_SOURCES = \
5035 src/import/export.c \
5036 src/import/export-tar.c \
5037 src/import/export-tar.h \
5038 src/import/export-raw.c \
5039 src/import/export-raw.h \
5040 src/import/import-common.c \
5041 src/import/import-common.h \
5042 src/import/import-compress.c \
5043 src/import/import-compress.h
5045 systemd_export_CFLAGS = \
5050 systemd_export_LDADD = \
5056 dist_rootlibexec_DATA = \
5057 src/import/import-pubring.gpg
5059 nodist_systemunit_DATA += \
5060 units/systemd-importd.service
5062 dist_systemunit_DATA_busnames += \
5063 units/org.freedesktop.import1.busname
5065 BUSNAMES_TARGET_WANTS += \
5066 org.freedesktop.import1.busname
5068 SYSTEM_UNIT_ALIASES += \
5069 systemd-importd.service dbus-org.freedesktop.import1.service
5071 dist_dbussystemservice_DATA += \
5072 src/import/org.freedesktop.import1.service
5074 dist_dbuspolicy_DATA += \
5075 src/import/org.freedesktop.import1.conf
5077 polkitpolicy_files += \
5078 src/import/org.freedesktop.import1.policy
5083 test_qcow2_SOURCES = \
5084 src/import/test-qcow2.c \
5085 src/import/qcow2-util.c \
5086 src/import/qcow2-util.h
5088 test_qcow2_CFLAGS = \
5092 test_qcow2_LDADD = \
5104 polkitpolicy_in_files += \
5105 src/import/org.freedesktop.import1.policy.in
5108 units/systemd-importd.service.in
5111 # ------------------------------------------------------------------------------
5114 basic_dns_sources = \
5115 src/resolve/resolved-dns-dnssec.c \
5116 src/resolve/resolved-dns-dnssec.h \
5117 src/resolve/resolved-dns-packet.c \
5118 src/resolve/resolved-dns-packet.h \
5119 src/resolve/resolved-dns-rr.c \
5120 src/resolve/resolved-dns-rr.h \
5121 src/resolve/resolved-dns-answer.c \
5122 src/resolve/resolved-dns-answer.h \
5123 src/resolve/resolved-dns-question.c \
5124 src/resolve/resolved-dns-question.h \
5125 src/resolve/dns-type.c \
5126 src/resolve/dns-type.h
5128 systemd_resolved_SOURCES = \
5129 src/resolve/resolved.c \
5130 src/resolve/resolved-manager.c \
5131 src/resolve/resolved-manager.h \
5132 src/resolve/resolved-conf.c \
5133 src/resolve/resolved-conf.h \
5134 src/resolve/resolved-resolv-conf.c \
5135 src/resolve/resolved-resolv-conf.h \
5136 src/resolve/resolved-bus.c \
5137 src/resolve/resolved-bus.h \
5138 src/resolve/resolved-link.h \
5139 src/resolve/resolved-link.c \
5140 src/resolve/resolved-link-bus.c \
5141 src/resolve/resolved-link-bus.h \
5142 src/resolve/resolved-llmnr.h \
5143 src/resolve/resolved-llmnr.c \
5144 src/resolve/resolved-mdns.h \
5145 src/resolve/resolved-mdns.c \
5146 src/resolve/resolved-def.h \
5147 $(basic_dns_sources) \
5148 src/resolve/resolved-dns-query.h \
5149 src/resolve/resolved-dns-query.c \
5150 src/resolve/resolved-dns-synthesize.h \
5151 src/resolve/resolved-dns-synthesize.c \
5152 src/resolve/resolved-dns-transaction.h \
5153 src/resolve/resolved-dns-transaction.c \
5154 src/resolve/resolved-dns-scope.h \
5155 src/resolve/resolved-dns-scope.c \
5156 src/resolve/resolved-dns-server.h \
5157 src/resolve/resolved-dns-server.c \
5158 src/resolve/resolved-dns-search-domain.h \
5159 src/resolve/resolved-dns-search-domain.c \
5160 src/resolve/resolved-dns-cache.h \
5161 src/resolve/resolved-dns-cache.c \
5162 src/resolve/resolved-dns-zone.h \
5163 src/resolve/resolved-dns-zone.c \
5164 src/resolve/resolved-dns-stream.h \
5165 src/resolve/resolved-dns-stream.c \
5166 src/resolve/resolved-dns-trust-anchor.h \
5167 src/resolve/resolved-dns-trust-anchor.c \
5168 src/resolve/resolved-etc-hosts.h \
5169 src/resolve/resolved-etc-hosts.c \
5170 src/shared/gcrypt-util.c \
5171 src/shared/gcrypt-util.h
5173 nodist_systemd_resolved_SOURCES = \
5174 src/resolve/dns_type-from-name.h \
5175 src/resolve/dns_type-to-name.h \
5176 src/resolve/resolved-gperf.c
5178 systemd_resolved_LDADD = \
5179 libsystemd-network.la \
5182 rootlibexec_PROGRAMS += \
5185 nodist_systemunit_DATA += \
5186 units/systemd-resolved.service
5188 dist_systemunit_DATA_busnames += \
5189 units/org.freedesktop.resolve1.busname
5191 dist_dbuspolicy_DATA += \
5192 src/resolve/org.freedesktop.resolve1.conf
5194 dist_dbussystemservice_DATA += \
5195 src/resolve/org.freedesktop.resolve1.service
5197 SYSTEM_UNIT_ALIASES += \
5198 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5200 BUSNAMES_TARGET_WANTS += \
5201 org.freedesktop.resolve1.busname
5203 GENERAL_ALIASES += \
5204 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5206 nodist_pkgsysconf_DATA += \
5207 src/resolve/resolved.conf
5209 libnss_resolve_la_SOURCES = \
5210 src/nss-resolve/nss-resolve.sym \
5211 src/nss-resolve/nss-resolve.c
5213 libnss_resolve_la_LDFLAGS = \
5220 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5222 libnss_resolve_la_LIBADD = \
5223 libsystemd-internal.la \
5226 lib_LTLIBRARIES += \
5229 systemd_resolve_SOURCES = \
5230 src/resolve/resolve-tool.c \
5231 $(basic_dns_sources) \
5232 src/shared/gcrypt-util.c \
5233 src/shared/gcrypt-util.h
5235 nodist_systemd_resolve_SOURCES = \
5236 src/resolve/dns_type-from-name.h \
5237 src/resolve/dns_type-to-name.h
5239 systemd_resolve_LDADD = \
5245 dist_bashcompletion_data += \
5246 shell-completion/bash/systemd-resolve
5248 dist_zshcompletion_data += \
5249 shell-completion/zsh/_systemd-resolve
5253 test-resolve-tables \
5259 test_resolve_tables_SOURCES = \
5260 src/resolve/test-resolve-tables.c \
5261 src/resolve/dns_type-from-name.h \
5262 src/resolve/dns_type-to-name.h \
5263 $(basic_dns_sources) \
5264 src/shared/test-tables.h
5266 test_resolve_tables_LDADD = \
5269 test_dns_packet_SOURCES = \
5270 src/resolve/test-dns-packet.c \
5271 $(basic_dns_sources)
5273 test_dns_packet_CPPFLAGS = \
5275 -DRESOLVE_TEST_DIR=\"$(abs_top_srcdir)/src/resolve/test-data\"
5277 test_dns_packet_LDADD = \
5281 src/resolve/test-data/_openpgpkey.fedoraproject.org.pkts \
5282 src/resolve/test-data/fedoraproject.org.pkts \
5283 src/resolve/test-data/gandi.net.pkts \
5284 src/resolve/test-data/google.com.pkts \
5285 src/resolve/test-data/root.pkts \
5286 src/resolve/test-data/sw1a1aa-sw1a2aa-sw1a2ab-sw1a2ac.find.me.uk.pkts \
5287 src/resolve/test-data/teamits.com.pkts \
5288 src/resolve/test-data/zbyszek@fedoraproject.org.pkts \
5289 src/resolve/test-data/_443._tcp.fedoraproject.org.pkts \
5290 src/resolve/test-data/kyhwana.org.pkts \
5291 src/resolve/test-data/fake-caa.pkts
5293 test_dnssec_SOURCES = \
5294 src/resolve/test-dnssec.c \
5295 $(basic_dns_sources)
5297 test_dnssec_LDADD = \
5300 test_dnssec_complex_SOURCES = \
5301 src/resolve/test-dnssec-complex.c \
5302 src/resolve/dns-type.c \
5303 src/resolve/dns-type.h
5305 test_dnssec_complex_LDADD = \
5310 gperf_txt_sources += \
5311 src/resolve/dns_type-list.txt
5313 gperf_gperf_sources += \
5314 src/resolve/resolved-gperf.gperf
5317 units/systemd-resolved.service.m4.in \
5318 src/resolve/resolved.conf.in
5320 # ------------------------------------------------------------------------------
5322 rootlibexec_PROGRAMS += \
5325 systemd_networkd_SOURCES = \
5326 src/network/networkd.c
5328 systemd_networkd_LDADD = \
5332 systemd_networkd_LDADD += \
5336 noinst_LTLIBRARIES += \
5339 libnetworkd_core_la_CFLAGS = \
5342 libnetworkd_core_la_SOURCES = \
5343 src/libsystemd-network/network-internal.h \
5344 src/network/networkd.h \
5345 src/network/networkd-link.h \
5346 src/network/networkd-link.c \
5347 src/network/networkd-netdev.h \
5348 src/network/networkd-netdev.c \
5349 src/network/networkd-netdev-tunnel.h \
5350 src/network/networkd-netdev-tunnel.c \
5351 src/network/networkd-netdev-veth.h \
5352 src/network/networkd-netdev-veth.c \
5353 src/network/networkd-netdev-vxlan.h \
5354 src/network/networkd-netdev-vxlan.c \
5355 src/network/networkd-netdev-vlan.h \
5356 src/network/networkd-netdev-vlan.c \
5357 src/network/networkd-netdev-macvlan.h \
5358 src/network/networkd-netdev-macvlan.c \
5359 src/network/networkd-netdev-ipvlan.h \
5360 src/network/networkd-netdev-ipvlan.c \
5361 src/network/networkd-netdev-dummy.h \
5362 src/network/networkd-netdev-dummy.c \
5363 src/network/networkd-netdev-tuntap.h \
5364 src/network/networkd-netdev-tuntap.c \
5365 src/network/networkd-netdev-bond.h \
5366 src/network/networkd-netdev-bond.c \
5367 src/network/networkd-netdev-bridge.h \
5368 src/network/networkd-netdev-bridge.c \
5369 src/network/networkd-link-bus.c \
5370 src/network/networkd-ipv4ll.c \
5371 src/network/networkd-dhcp4.c \
5372 src/network/networkd-dhcp6.c \
5373 src/network/networkd-ndisc.c \
5374 src/network/networkd-network.h \
5375 src/network/networkd-network.c \
5376 src/network/networkd-network-bus.c \
5377 src/network/networkd-address.h \
5378 src/network/networkd-address.c \
5379 src/network/networkd-route.h \
5380 src/network/networkd-route.c \
5381 src/network/networkd-manager.c \
5382 src/network/networkd-manager-bus.c \
5383 src/network/networkd-fdb.h \
5384 src/network/networkd-fdb.c \
5385 src/network/networkd-address-pool.h \
5386 src/network/networkd-address-pool.c \
5387 src/network/networkd-util.h \
5388 src/network/networkd-util.c \
5389 src/network/networkd-lldp-tx.h \
5390 src/network/networkd-lldp-tx.c
5392 nodist_libnetworkd_core_la_SOURCES = \
5393 src/network/networkd-network-gperf.c \
5394 src/network/networkd-netdev-gperf.c
5396 libnetworkd_core_la_LIBADD = \
5397 libsystemd-network.la \
5400 rootlibexec_PROGRAMS += \
5401 systemd-networkd-wait-online
5403 systemd_networkd_wait_online_CFLAGS = \
5406 systemd_networkd_wait_online_SOURCES = \
5407 src/libsystemd-network/network-internal.h \
5408 src/network/networkd-wait-online.h \
5409 src/network/networkd-wait-online-link.h \
5410 src/network/networkd-wait-online.c \
5411 src/network/networkd-wait-online-manager.c \
5412 src/network/networkd-wait-online-link.c
5414 systemd_networkd_wait_online_LDADD = \
5415 libsystemd-network.la \
5418 rootbin_PROGRAMS += \
5421 networkctl_SOURCES = \
5422 src/network/networkctl.c
5424 networkctl_LDADD = \
5426 libsystemd-network.la
5428 dist_bashcompletion_data += \
5429 shell-completion/bash/networkctl
5431 test_network_SOURCES = \
5432 src/network/test-network.c
5434 test_network_LDADD = \
5438 test_network_LDADD += \
5442 test_network_tables_SOURCES = \
5443 src/network/test-network-tables.c \
5444 src/shared/test-tables.h
5446 test_network_tables_LDADD = \
5447 libnetworkd-core.la \
5451 test_network_tables_LDADD += \
5459 dist_systemunit_DATA += \
5460 units/systemd-networkd.socket
5462 nodist_systemunit_DATA += \
5463 units/systemd-networkd.service \
5464 units/systemd-networkd-wait-online.service
5466 dist_systemunit_DATA_busnames += \
5467 units/org.freedesktop.network1.busname
5469 dist_dbussystemservice_DATA += \
5470 src/network/org.freedesktop.network1.service
5472 dist_dbuspolicy_DATA += \
5473 src/network/org.freedesktop.network1.conf
5475 GENERAL_ALIASES += \
5476 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5477 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5478 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5480 SYSTEM_UNIT_ALIASES += \
5481 systemd-networkd.service dbus-org.freedesktop.network1.service
5483 BUSNAMES_TARGET_WANTS += \
5484 org.freedesktop.network1.busname
5488 gperf_gperf_sources += \
5489 src/network/networkd-network-gperf.gperf \
5490 src/network/networkd-netdev-gperf.gperf
5493 units/systemd-networkd.service.m4.in \
5494 units/systemd-networkd-wait-online.service.in \
5495 test/networkd-test.py
5497 # ------------------------------------------------------------------------------
5499 systemd_logind_SOURCES = \
5500 src/login/logind.c \
5503 nodist_systemd_logind_SOURCES = \
5504 src/login/logind-gperf.c
5506 systemd_logind_LDADD = \
5509 liblogind_core_la_SOURCES = \
5510 src/login/logind-core.c \
5511 src/login/logind-device.c \
5512 src/login/logind-device.h \
5513 src/login/logind-button.c \
5514 src/login/logind-button.h \
5515 src/login/logind-action.c \
5516 src/login/logind-action.h \
5517 src/login/logind-seat.c \
5518 src/login/logind-seat.h \
5519 src/login/logind-session.c \
5520 src/login/logind-session.h \
5521 src/login/logind-session-device.c \
5522 src/login/logind-session-device.h \
5523 src/login/logind-user.c \
5524 src/login/logind-user.h \
5525 src/login/logind-inhibit.c \
5526 src/login/logind-inhibit.h \
5527 src/login/logind-dbus.c \
5528 src/login/logind-session-dbus.c \
5529 src/login/logind-seat-dbus.c \
5530 src/login/logind-user-dbus.c \
5531 src/login/logind-utmp.c \
5532 src/login/logind-acl.h
5534 liblogind_core_la_LIBADD = \
5538 liblogind_core_la_SOURCES += \
5539 src/login/logind-acl.c
5542 noinst_LTLIBRARIES += \
5545 rootlibexec_PROGRAMS += \
5548 loginctl_SOURCES = \
5549 src/login/loginctl.c \
5550 src/login/sysfs-show.h \
5551 src/login/sysfs-show.c
5556 rootbin_PROGRAMS += \
5559 dist_bashcompletion_data += \
5560 shell-completion/bash/loginctl
5562 dist_zshcompletion_data += \
5563 shell-completion/zsh/_loginctl \
5564 shell-completion/zsh/_systemd-inhibit
5566 systemd_inhibit_SOURCES = \
5569 systemd_inhibit_LDADD = \
5572 rootbin_PROGRAMS += \
5575 test_login_SOURCES = \
5576 src/libsystemd/sd-login/test-login.c
5578 test_login_LDADD = \
5581 test_login_shared_SOURCES = \
5582 src/login/test-login-shared.c
5584 test_login_shared_LDADD = \
5587 test_inhibit_SOURCES = \
5588 src/login/test-inhibit.c
5590 test_inhibit_LDADD = \
5593 test_login_tables_SOURCES = \
5594 src/login/test-login-tables.c
5596 test_login_tables_LDADD = \
5608 pam_systemd_la_SOURCES = \
5609 src/login/pam_systemd.sym \
5610 src/login/pam_systemd.c
5612 pam_systemd_la_CFLAGS = \
5616 pam_systemd_la_LDFLAGS = \
5622 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5624 pam_systemd_la_LIBADD = \
5628 pamlib_LTLIBRARIES = \
5631 dist_pamconf_DATA = \
5632 src/login/systemd-user
5635 src/login/systemd-user.m4
5638 nodist_systemunit_DATA += \
5639 units/systemd-logind.service
5641 dist_systemunit_DATA += \
5644 dist_systemunit_DATA_busnames += \
5645 units/org.freedesktop.login1.busname
5647 dist_dbussystemservice_DATA += \
5648 src/login/org.freedesktop.login1.service
5650 dist_dbuspolicy_DATA += \
5651 src/login/org.freedesktop.login1.conf
5653 dist_pkgsysconf_DATA += \
5654 src/login/logind.conf
5656 polkitpolicy_files += \
5657 src/login/org.freedesktop.login1.policy
5662 MULTI_USER_TARGET_WANTS += \
5663 systemd-logind.service
5665 SYSTEM_UNIT_ALIASES += \
5666 systemd-logind.service dbus-org.freedesktop.login1.service
5668 BUSNAMES_TARGET_WANTS += \
5669 org.freedesktop.login1.busname
5671 dist_udevrules_DATA += \
5672 src/login/70-uaccess.rules \
5673 src/login/70-power-switch.rules
5675 nodist_udevrules_DATA += \
5676 src/login/71-seat.rules \
5677 src/login/73-seat-late.rules
5681 polkitpolicy_in_files += \
5682 src/login/org.freedesktop.login1.policy.in
5684 gperf_gperf_sources += \
5685 src/login/logind-gperf.gperf
5688 src/login/71-seat.rules.in \
5689 src/login/73-seat-late.rules.in \
5690 units/systemd-logind.service.in
5692 # ------------------------------------------------------------------------------
5695 systemd_user_sessions_SOURCES = \
5696 src/user-sessions/user-sessions.c
5698 systemd_user_sessions_LDADD = \
5701 rootlibexec_PROGRAMS += \
5702 systemd-user-sessions
5704 nodist_systemunit_DATA += \
5705 units/systemd-user-sessions.service
5707 MULTI_USER_TARGET_WANTS += \
5708 systemd-user-sessions.service
5713 units/systemd-user-sessions.service.in
5715 # ------------------------------------------------------------------------------
5718 test/README.testsuite \
5719 test/TEST-01-BASIC \
5720 test/TEST-01-BASIC/Makefile \
5721 test/TEST-01-BASIC/test.sh \
5722 test/TEST-02-CRYPTSETUP \
5723 test/TEST-02-CRYPTSETUP/Makefile \
5724 test/TEST-02-CRYPTSETUP/test.sh \
5726 test/TEST-03-JOBS/Makefile \
5727 test/TEST-03-JOBS/test-jobs.sh \
5728 test/TEST-03-JOBS/test.sh \
5729 test/TEST-04-JOURNAL/Makefile \
5730 test/TEST-04-JOURNAL/test-journal.sh \
5731 test/TEST-04-JOURNAL/test.sh \
5732 test/TEST-05-RLIMITS/Makefile \
5733 test/TEST-05-RLIMITS/test-rlimits.sh \
5734 test/TEST-05-RLIMITS/test.sh \
5735 test/TEST-06-SELINUX/Makefile \
5736 test/TEST-06-SELINUX/test-selinux-checks.sh \
5737 test/TEST-06-SELINUX/test.sh \
5738 test/TEST-06-SELINUX/systemd_test.te \
5739 test/TEST-06-SELINUX/systemd_test.if \
5740 test/TEST-07-ISSUE-1981/Makefile \
5741 test/TEST-07-ISSUE-1981/test-segfault.sh \
5742 test/TEST-07-ISSUE-1981/test.sh \
5746 test/loopy2.service \
5747 test/loopy3.service \
5748 test/loopy4.service \
5749 test/loopy.service \
5750 test/loopy.service.d \
5751 test/loopy.service.d/compat.conf
5753 # ------------------------------------------------------------------------------
5755 '|rootlibexecdir=$(rootlibexecdir)|' \
5756 '|rootbindir=$(rootbindir)|' \
5757 '|bindir=$(bindir)|' \
5758 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5759 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5760 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5761 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5762 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5763 '|pkgdatadir=$(pkgdatadir)|' \
5764 '|systemunitdir=$(systemunitdir)|' \
5765 '|userunitdir=$(userunitdir)|' \
5766 '|systempresetdir=$(systempresetdir)|' \
5767 '|userpresetdir=$(userpresetdir)|' \
5768 '|udevhwdbdir=$(udevhwdbdir)|' \
5769 '|udevrulesdir=$(udevrulesdir)|' \
5770 '|catalogdir=$(catalogdir)|' \
5771 '|tmpfilesdir=$(tmpfilesdir)|' \
5772 '|sysusersdir=$(sysusersdir)|' \
5773 '|sysctldir=$(sysctldir)|' \
5774 '|systemgeneratordir=$(systemgeneratordir)|' \
5775 '|usergeneratordir=$(usergeneratordir)|' \
5776 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5777 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5778 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5779 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5780 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5781 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5782 '|prefix=$(prefix)|' \
5783 '|exec_prefix=$(exec_prefix)|' \
5784 '|libdir=$(libdir)|' \
5785 '|includedir=$(includedir)|' \
5786 '|VERSION=$(VERSION)|' \
5787 '|rootprefix=$(rootprefix)|' \
5788 '|udevlibexecdir=$(udevlibexecdir)|' \
5789 '|SUSHELL=$(SUSHELL)|' \
5790 '|SULOGIN=$(SULOGIN)|' \
5791 '|DEBUGTTY=$(DEBUGTTY)|' \
5794 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5795 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5796 '|MKDIR_P=$(MKDIR_P)|' \
5797 '|QUOTAON=$(QUOTAON)|' \
5798 '|QUOTACHECK=$(QUOTACHECK)|' \
5799 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5800 '|VARLOGDIR=$(varlogdir)|' \
5801 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5802 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5803 '|PYTHON=$(PYTHON)|' \
5804 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5805 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5806 '|DEFAULT_DNSSEC_MODE=$(DEFAULT_DNSSEC_MODE)|' \
5807 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5808 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5809 '|TTY_GID=$(TTY_GID)|' \
5810 '|systemsleepdir=$(systemsleepdir)|' \
5811 '|systemshutdowndir=$(systemshutdowndir)|' \
5812 '|binfmtdir=$(binfmtdir)|' \
5813 '|modulesloaddir=$(modulesloaddir)|'
5816 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5817 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5826 sysctl.d/%: sysctl.d/%.in
5835 src/core/%.systemd: src/core/%.systemd.in
5838 src/%.policy.in: src/%.policy.in.in
5841 shell-completion/%: shell-completion/%.in
5852 $(AM_V_GEN)chmod +x $@
5854 src/%.c: src/%.gperf
5855 $(AM_V_at)$(MKDIR_P) $(dir $@)
5856 $(AM_V_GPERF)$(GPERF) < $< > $@
5858 src/%: src/%.m4 $(top_builddir)/config.status
5859 $(AM_V_at)$(MKDIR_P) $(dir $@)
5860 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5862 sysusers.d/%: sysusers.d/%.m4 $(top_builddir)/config.status
5863 $(AM_V_at)$(MKDIR_P) $(dir $@)
5864 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5866 tmpfiles.d/%: tmpfiles.d/%.m4 $(top_builddir)/config.status
5867 $(AM_V_at)$(MKDIR_P) $(dir $@)
5868 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5871 units/%: units/%.m4 $(top_builddir)/config.status
5872 $(AM_V_at)$(MKDIR_P) $(dir $@)
5873 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5875 units/user/%: units/user/%.m4 $(top_builddir)/config.status
5876 $(AM_V_at)$(MKDIR_P) $(dir $@)
5877 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5880 nodist_polkitpolicy_DATA = \
5881 $(polkitpolicy_files) \
5882 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5886 $(polkitpolicy_in_files) \
5887 $(polkitpolicy_in_in_files)
5889 # ------------------------------------------------------------------------------
5890 man/custom-entities.ent: configure.ac
5891 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5892 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5893 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5897 man/custom-entities.ent
5902 --stringparam man.output.quietly 1 \
5903 --stringparam funcsynopsis.style ansi \
5904 --stringparam man.authors.section.enabled 0 \
5905 --stringparam man.copyright.section.enabled 0 \
5906 --stringparam systemd.version $(VERSION) \
5907 --path '$(builddir)/man:$(srcdir)/man'
5909 XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
5910 XSLTPROC_PROCESS_MAN = \
5911 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5913 XSLTPROC_PROCESS_HTML = \
5914 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5916 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5917 $(XSLTPROC_PROCESS_MAN)
5919 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5920 $(XSLTPROC_PROCESS_MAN)
5922 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5923 $(XSLTPROC_PROCESS_MAN)
5925 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5926 $(XSLTPROC_PROCESS_MAN)
5928 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5929 $(XSLTPROC_PROCESS_MAN)
5931 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5932 $(XSLTPROC_PROCESS_HTML)
5935 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5939 man/custom-html.xsl \
5942 # ------------------------------------------------------------------------------
5945 docs/sysvinit/README
5950 docs/sysvinit/README: docs/sysvinit/README.in
5953 docs/var-log/README: docs/var-log/README.in
5957 docs/sysvinit/README \
5962 docs/sysvinit/README.in \
5963 docs/var-log/README.in
5965 SOCKETS_TARGET_WANTS += \
5966 systemd-initctl.socket
5970 MULTI_USER_TARGET_WANTS += \
5971 systemd-update-utmp-runlevel.service
5972 GRAPHICAL_TARGET_WANTS += \
5973 systemd-update-utmp-runlevel.service
5974 RESCUE_TARGET_WANTS += \
5975 systemd-update-utmp-runlevel.service
5978 SYSINIT_TARGET_WANTS += \
5979 systemd-update-utmp.service
5982 SYSINIT_TARGET_WANTS += \
5983 systemd-update-done.service
5985 LOCAL_FS_TARGET_WANTS += \
5986 systemd-remount-fs.service \
5988 var-lib-machines.mount
5990 MULTI_USER_TARGET_WANTS += \
5992 systemd-ask-password-wall.path
5994 SYSINIT_TARGET_WANTS += \
5995 dev-hugepages.mount \
5997 sys-kernel-config.mount \
5998 sys-kernel-debug.mount \
5999 sys-fs-fuse-connections.mount \
6000 systemd-sysctl.service \
6001 systemd-ask-password-console.path
6004 SYSTEM_UNIT_ALIASES += \
6005 poweroff.target runlevel0.target \
6006 rescue.target runlevel1.target \
6007 multi-user.target runlevel2.target \
6008 multi-user.target runlevel3.target \
6009 multi-user.target runlevel4.target \
6010 graphical.target runlevel5.target \
6011 reboot.target runlevel6.target
6014 SYSTEM_UNIT_ALIASES += \
6015 graphical.target default.target \
6016 reboot.target ctrl-alt-del.target \
6017 getty@.service autovt@.service
6019 USER_UNIT_ALIASES += \
6020 $(systemunitdir)/shutdown.target shutdown.target \
6021 $(systemunitdir)/sockets.target sockets.target \
6022 $(systemunitdir)/timers.target timers.target \
6023 $(systemunitdir)/paths.target paths.target \
6024 $(systemunitdir)/bluetooth.target bluetooth.target \
6025 $(systemunitdir)/printer.target printer.target \
6026 $(systemunitdir)/sound.target sound.target \
6027 $(systemunitdir)/smartcard.target smartcard.target
6029 USER_UNIT_ALIASES += \
6030 $(systemunitdir)/busnames.target busnames.target
6032 GENERAL_ALIASES += \
6033 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6034 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6035 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6036 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6040 $(systemunitdir)/runlevel1.target.wants \
6041 $(systemunitdir)/runlevel2.target.wants \
6042 $(systemunitdir)/runlevel3.target.wants \
6043 $(systemunitdir)/runlevel4.target.wants \
6044 $(systemunitdir)/runlevel5.target.wants
6048 $(prefix)/lib/modules-load.d \
6049 $(sysconfdir)/modules-load.d \
6050 $(prefix)/lib/systemd/network \
6051 $(sysconfdir)/systemd/network \
6052 $(prefix)/lib/sysctl.d \
6053 $(sysconfdir)/sysctl.d \
6054 $(prefix)/lib/kernel/install.d \
6055 $(sysconfdir)/kernel/install.d \
6056 $(systemshutdowndir) \
6058 $(systemgeneratordir) \
6059 $(usergeneratordir) \
6062 $(pkgsysconfdir)/system \
6063 $(pkgsysconfdir)/system/multi-user.target.wants \
6064 $(pkgsysconfdir)/system/getty.target.wants \
6065 $(pkgsysconfdir)/user \
6066 $(dbussessionservicedir) \
6067 $(sysconfdir)/xdg/systemd
6069 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6071 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6073 install-data-hook: $(INSTALL_DATA_HOOKS)
6075 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6077 clean-local: $(CLEAN_LOCAL_HOOKS)
6078 rm -rf $(abs_srcdir)/install-tree
6079 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6080 $(abs_srcdir)/hwdb/iab.txt
6082 DISTCHECK_CONFIGURE_FLAGS = \
6083 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6084 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6085 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6086 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6087 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6088 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6089 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6090 --with-rootprefix=$$dc_install_base \
6091 --enable-compat-libs
6094 DISTCHECK_CONFIGURE_FLAGS += \
6095 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6096 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6098 DISTCHECK_CONFIGURE_FLAGS += \
6099 --with-sysvinit-path= \
6100 --with-sysvrcnd-path=
6104 DISTCHECK_CONFIGURE_FLAGS += \
6107 DISTCHECK_CONFIGURE_FLAGS += \
6111 .PHONY: dist-check-help
6113 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6114 for i in $(abspath $^); do \
6115 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6116 echo "$(basename $$i) --help output is too wide:"; \
6117 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6123 ( cd $(top_srcdir)/hwdb && \
6124 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6125 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6126 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6127 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6128 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6131 .PHONY: built-sources
6132 built-sources: $(BUILT_SOURCES)
6136 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6140 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6142 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6146 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6148 .PHONY: install-tree
6150 rm -rf $(abs_srcdir)/install-tree
6151 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6152 tree $(abs_srcdir)/install-tree
6154 # Let's run all tests of the test suite, but under valgrind. Let's
6155 # exclude perl/python/shell scripts we have in there
6156 .PHONY: valgrind-tests
6157 valgrind-tests: $(TESTS)
6158 $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \
6159 if file $$f | grep -q shell; then \
6160 echo -e "$${x}Skipping non-binary $$f"; else \
6161 echo -e "$${x}Running $$f"; \
6162 $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6167 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6169 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6170 $(AM_V_GEN)sort -u $^ > $@
6172 .PHONY: check-api-docs
6173 check-api-docs: exported man
6174 $(AM_V_GEN)for symbol in `cat exported` ; do \
6175 if test -f $(builddir)/man/$$symbol.html ; then \
6176 echo " Symbol $$symbol() is documented." ; \
6178 echo "‣ Symbol $$symbol() lacks documentation." ; \
6182 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6183 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6185 undefined defined: $(ALL_OBJECTS)
6186 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6187 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6188 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6194 .PHONY: check-api-unused
6195 check-api-unused: defined undefined exported
6196 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6198 .PHONY: check-includes
6199 check-includes: $(top_srcdir)/tools/check-includes.pl
6200 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6201 | xargs $(top_srcdir)/tools/check-includes.pl
6204 $(top_srcdir)/tools/check-includes.pl
6206 # Stupid test that everything purported to be exported really is
6207 define generate-sym-test
6208 $(AM_V_at)$(MKDIR_P) $(dir $@)
6209 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6210 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6211 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6212 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6213 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6214 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6215 $(AM_V_at)printf 'return 0; }\n' >> $@
6218 test-libsystemd-sym.c: \
6219 $(top_builddir)/src/libsystemd/libsystemd.sym \
6220 src/systemd/sd-journal.h \
6221 src/systemd/sd-daemon.h \
6222 src/systemd/sd-login.h \
6223 src/systemd/sd-bus.h \
6224 src/systemd/sd-utf8.h \
6225 src/systemd/sd-resolve.h \
6226 src/systemd/sd-path.h \
6227 src/systemd/sd-event.h
6228 $(generate-sym-test)
6230 test-libudev-sym.c: \
6231 src/libudev/libudev.sym \
6233 $(generate-sym-test)
6235 nodist_test_libsystemd_sym_SOURCES = \
6236 test-libsystemd-sym.c
6237 test_libsystemd_sym_LDADD = \
6240 nodist_test_libudev_sym_SOURCES = \
6242 test_libudev_sym_CFLAGS = \
6244 -Wno-deprecated-declarations
6245 test_libudev_sym_LDADD = \
6249 test-libsystemd-sym.c \
6253 test-libsystemd-sym.c \
6257 test-libsystemd-sym \
6262 cppcheck --enable=all -q $(top_srcdir)
6264 # Used to extract compile flags for YCM.
6269 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6272 tools/gdb-sd_dump_hashmaps.py
6275 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6278 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -