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 \
397 systemd-socket-proxyd \
401 rootlibexec_PROGRAMS += \
405 systemgenerator_PROGRAMS = \
406 systemd-getty-generator \
407 systemd-fstab-generator \
408 systemd-system-update-generator \
409 systemd-debug-generator
411 dist_bashcompletion_data = \
412 shell-completion/bash/busctl \
413 shell-completion/bash/journalctl \
414 shell-completion/bash/systemd-analyze \
415 shell-completion/bash/systemd-cat \
416 shell-completion/bash/systemd-cgls \
417 shell-completion/bash/systemd-cgtop \
418 shell-completion/bash/systemd-delta \
419 shell-completion/bash/systemd-detect-virt \
420 shell-completion/bash/systemd-nspawn \
421 shell-completion/bash/systemd-path \
422 shell-completion/bash/systemd-run \
423 shell-completion/bash/udevadm \
424 shell-completion/bash/kernel-install
426 nodist_bashcompletion_data = \
427 shell-completion/bash/systemctl
429 dist_zshcompletion_data = \
430 shell-completion/zsh/_busctl \
431 shell-completion/zsh/_journalctl \
432 shell-completion/zsh/_udevadm \
433 shell-completion/zsh/_kernel-install \
434 shell-completion/zsh/_systemd-nspawn \
435 shell-completion/zsh/_systemd-analyze \
436 shell-completion/zsh/_systemd-run \
437 shell-completion/zsh/_sd_hosts_or_user_at_host \
438 shell-completion/zsh/_sd_outputmodes \
439 shell-completion/zsh/_sd_unit_files \
440 shell-completion/zsh/_systemd-delta \
441 shell-completion/zsh/_systemd
443 nodist_zshcompletion_data = \
444 shell-completion/zsh/_systemctl
447 shell-completion/bash/systemctl.in \
448 shell-completion/zsh/_systemctl.in
451 sysctl.d/50-default.conf
453 dist_systemunit_DATA = \
454 units/graphical.target \
455 units/multi-user.target \
456 units/emergency.target \
457 units/sysinit.target \
463 units/local-fs.target \
464 units/local-fs-pre.target \
465 units/initrd.target \
466 units/initrd-fs.target \
467 units/initrd-root-fs.target \
468 units/remote-fs.target \
469 units/remote-fs-pre.target \
470 units/network.target \
471 units/network-pre.target \
472 units/network-online.target \
473 units/nss-lookup.target \
474 units/nss-user-lookup.target \
475 units/poweroff.target \
476 units/reboot.target \
477 units/rescue.target \
478 units/rpcbind.target \
479 units/time-sync.target \
480 units/shutdown.target \
482 units/umount.target \
483 units/sigpwr.target \
485 units/sockets.target \
486 units/timers.target \
488 units/suspend.target \
490 units/slices.target \
493 units/systemd-initctl.socket \
494 units/syslog.socket \
495 units/dev-hugepages.mount \
496 units/dev-mqueue.mount \
497 units/sys-kernel-config.mount \
498 units/sys-kernel-debug.mount \
499 units/sys-fs-fuse-connections.mount \
501 units/var-lib-machines.mount \
502 units/printer.target \
504 units/bluetooth.target \
505 units/smartcard.target \
506 units/systemd-ask-password-wall.path \
507 units/systemd-ask-password-console.path \
508 units/systemd-udevd-control.socket \
509 units/systemd-udevd-kernel.socket \
510 units/system-update.target \
511 units/initrd-switch-root.target \
512 units/machines.target
514 dist_systemunit_DATA += \
515 $(dist_systemunit_DATA_busnames)
517 dist_systemunit_DATA_busnames += \
518 units/busnames.target
520 nodist_systemunit_DATA = \
521 units/getty@.service \
522 units/serial-getty@.service \
523 units/console-shell.service \
524 units/console-getty.service \
525 units/container-getty@.service \
526 units/systemd-initctl.service \
527 units/systemd-remount-fs.service \
528 units/systemd-ask-password-wall.service \
529 units/systemd-ask-password-console.service \
530 units/systemd-sysctl.service \
531 units/emergency.service \
532 units/rescue.service \
533 units/user@.service \
534 units/systemd-suspend.service \
535 units/systemd-halt.service \
536 units/systemd-poweroff.service \
537 units/systemd-reboot.service \
538 units/systemd-kexec.service \
539 units/systemd-exit.service \
540 units/systemd-fsck@.service \
541 units/systemd-fsck-root.service \
542 units/systemd-machine-id-commit.service \
543 units/systemd-udevd.service \
544 units/systemd-udev-trigger.service \
545 units/systemd-udev-settle.service \
546 units/systemd-hwdb-update.service \
547 units/debug-shell.service \
548 units/initrd-parse-etc.service \
549 units/initrd-cleanup.service \
550 units/initrd-udevadm-cleanup-db.service \
551 units/initrd-switch-root.service \
552 units/systemd-nspawn@.service \
553 units/systemd-update-done.service
556 nodist_systemunit_DATA += \
557 units/systemd-update-utmp.service \
558 units/systemd-update-utmp-runlevel.service
561 dist_userunit_DATA = \
562 units/user/basic.target \
563 units/user/default.target \
564 units/user/exit.target
566 nodist_userunit_DATA = \
567 units/user/systemd-exit.service
569 dist_systempreset_DATA = \
570 system-preset/90-systemd.preset
573 units/getty@.service.m4 \
574 units/serial-getty@.service.m4 \
575 units/console-shell.service.m4.in \
576 units/console-getty.service.m4.in \
577 units/container-getty@.service.m4.in \
578 units/rescue.service.in \
579 units/systemd-initctl.service.in \
580 units/systemd-remount-fs.service.in \
581 units/systemd-update-utmp.service.in \
582 units/systemd-update-utmp-runlevel.service.in \
583 units/systemd-ask-password-wall.service.in \
584 units/systemd-ask-password-console.service.in \
585 units/systemd-sysctl.service.in \
586 units/emergency.service.in \
587 units/systemd-halt.service.in \
588 units/systemd-poweroff.service.in \
589 units/systemd-reboot.service.in \
590 units/systemd-kexec.service.in \
591 units/systemd-exit.service.in \
592 units/user/systemd-exit.service.in \
593 units/systemd-fsck@.service.in \
594 units/systemd-fsck-root.service.in \
595 units/systemd-machine-id-commit.service.in \
596 units/user@.service.m4.in \
597 units/debug-shell.service.in \
598 units/systemd-suspend.service.in \
599 units/quotaon.service.in \
600 units/initrd-parse-etc.service.in \
601 units/initrd-cleanup.service.in \
602 units/initrd-udevadm-cleanup-db.service.in \
603 units/initrd-switch-root.service.in \
604 units/systemd-nspawn@.service.in \
605 units/systemd-update-done.service.in \
609 nodist_systemunit_DATA += \
610 units/rc-local.service \
611 units/halt-local.service
613 systemgenerator_PROGRAMS += \
614 systemd-sysv-generator \
615 systemd-rc-local-generator
619 src/systemctl/systemd-sysv-install.SKELETON \
620 units/rc-local.service.in \
621 units/halt-local.service.in
623 # automake is broken and can't handle files with a dash in front
624 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
626 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
628 units-uninstall-hook:
629 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
631 INSTALL_DATA_HOOKS += units-install-hook
632 UNINSTALL_DATA_HOOKS += units-uninstall-hook
641 src/libsystemd/sd-bus/PORTING-DBUS1 \
642 src/libsystemd/sd-bus/DIFFERENCES \
643 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
655 @INTLTOOL_POLICY_RULE@
657 # ------------------------------------------------------------------------------
662 include Makefile-man.am
664 .PHONY: man update-man-list
665 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
668 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
670 ${XML_FILES:.xml=.html}
672 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
692 $(AM_V_at)$(MKDIR_P) $(dir $@)
693 $(AM_V_LN)$(LN_S) -f ../../man $@
695 man/index.html: man/systemd.index.html
696 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
706 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
707 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
708 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
710 # This target should only be run manually. It recreates Makefile-man.am
711 # file in the source directory based on all man/*.xml files. Run it after
712 # adding, removing, or changing the conditional in a man page.
713 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
714 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
715 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
716 @echo "Makefile-man.am has been regenerated"
718 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
719 $(AM_V_at)$(MKDIR_P) $(dir $@)
720 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
722 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
723 $(AM_V_at)$(MKDIR_P) $(dir $@)
724 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
727 man/systemd.index.xml \
728 man/systemd.directives.xml
731 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
732 tools/make-man-index.py \
733 tools/make-man-rules.py \
734 tools/make-directive-index.py \
735 tools/xml_helper.py \
736 man/glib-event-glue.c
738 # ------------------------------------------------------------------------------
739 noinst_LTLIBRARIES += \
742 libbasic_la_SOURCES = \
743 src/basic/missing.h \
744 src/basic/capability-util.c \
745 src/basic/capability-util.h \
746 src/basic/c-rbtree.c \
747 src/basic/c-rbtree.h \
748 src/basic/conf-files.c \
749 src/basic/conf-files.h \
750 src/basic/stdio-util.h \
751 src/basic/hostname-util.h \
752 src/basic/hostname-util.c \
753 src/basic/unit-name.c \
754 src/basic/unit-name.h \
756 src/basic/securebits.h \
757 src/basic/special.h \
759 src/basic/unaligned.h \
762 src/basic/sparse-endian.h \
766 src/basic/io-util.c \
767 src/basic/io-util.h \
768 src/basic/string-util.c \
769 src/basic/string-util.h \
770 src/basic/fd-util.c \
771 src/basic/fd-util.h \
772 src/basic/parse-util.c \
773 src/basic/parse-util.h \
774 src/basic/user-util.c \
775 src/basic/user-util.h \
776 src/basic/rlimit-util.c \
777 src/basic/rlimit-util.h \
778 src/basic/dirent-util.c \
779 src/basic/dirent-util.h \
780 src/basic/xattr-util.c \
781 src/basic/xattr-util.h \
782 src/basic/chattr-util.c \
783 src/basic/chattr-util.h \
784 src/basic/proc-cmdline.c \
785 src/basic/proc-cmdline.h \
786 src/basic/fs-util.c \
787 src/basic/fs-util.h \
788 src/basic/syslog-util.c \
789 src/basic/syslog-util.h \
790 src/basic/stat-util.c \
791 src/basic/stat-util.h \
792 src/basic/mount-util.c \
793 src/basic/mount-util.h \
794 src/basic/hexdecoct.c \
795 src/basic/hexdecoct.h \
796 src/basic/glob-util.h \
797 src/basic/glob-util.c \
798 src/basic/extract-word.c \
799 src/basic/extract-word.h \
802 src/basic/cpu-set-util.c \
803 src/basic/cpu-set-util.h \
804 src/basic/lockfile-util.c \
805 src/basic/lockfile-util.h \
806 src/basic/path-util.c \
807 src/basic/path-util.h \
808 src/basic/time-util.c \
809 src/basic/time-util.h \
810 src/basic/locale-util.c \
811 src/basic/locale-util.h \
812 src/basic/umask-util.h \
813 src/basic/signal-util.c \
814 src/basic/signal-util.h \
815 src/basic/string-table.c \
816 src/basic/string-table.h \
817 src/basic/mempool.c \
818 src/basic/mempool.h \
819 src/basic/hashmap.c \
820 src/basic/hashmap.h \
821 src/basic/hash-funcs.c \
822 src/basic/hash-funcs.h \
823 src/basic/siphash24.c \
824 src/basic/siphash24.h \
826 src/basic/ordered-set.h \
827 src/basic/ordered-set.c \
834 src/basic/web-util.c \
835 src/basic/web-util.h \
838 src/basic/env-util.c \
839 src/basic/env-util.h \
842 src/basic/strxcpyx.c \
843 src/basic/strxcpyx.h \
846 src/basic/bus-label.c \
847 src/basic/bus-label.h \
848 src/basic/ratelimit.h \
849 src/basic/ratelimit.c \
850 src/basic/exit-status.c \
851 src/basic/exit-status.h \
854 src/basic/smack-util.c \
855 src/basic/smack-util.h \
856 src/basic/device-nodes.c \
857 src/basic/device-nodes.h \
860 src/basic/gunicode.c \
861 src/basic/gunicode.h \
862 src/basic/socket-util.c \
863 src/basic/socket-util.h \
864 src/basic/in-addr-util.c \
865 src/basic/in-addr-util.h \
866 src/basic/ether-addr-util.h \
867 src/basic/ether-addr-util.c \
868 src/basic/replace-var.c \
869 src/basic/replace-var.h \
870 src/basic/clock-util.c \
871 src/basic/clock-util.h \
872 src/basic/calendarspec.c \
873 src/basic/calendarspec.h \
876 src/basic/MurmurHash2.c \
877 src/basic/MurmurHash2.h \
880 src/basic/cgroup-util.c \
881 src/basic/cgroup-util.h \
882 src/basic/errno-list.c \
883 src/basic/errno-list.h \
884 src/basic/af-list.c \
885 src/basic/af-list.h \
886 src/basic/arphrd-list.c \
887 src/basic/arphrd-list.h \
888 src/basic/terminal-util.c \
889 src/basic/terminal-util.h \
890 src/basic/login-util.h \
891 src/basic/login-util.c \
892 src/basic/cap-list.c \
893 src/basic/cap-list.h \
894 src/basic/audit-util.c \
895 src/basic/audit-util.h \
898 src/basic/barrier.c \
899 src/basic/barrier.h \
902 src/basic/memfd-util.c \
903 src/basic/memfd-util.h \
904 src/basic/process-util.c \
905 src/basic/process-util.h \
906 src/basic/random-util.c \
907 src/basic/random-util.h \
913 src/basic/socket-label.c \
916 src/basic/btrfs-util.c \
917 src/basic/btrfs-util.h \
918 src/basic/btrfs-ctree.h \
919 src/basic/selinux-util.c \
920 src/basic/selinux-util.h \
921 src/basic/mkdir-label.c \
922 src/basic/fileio-label.c \
923 src/basic/fileio-label.h \
928 src/basic/alloc-util.h \
929 src/basic/alloc-util.c \
930 src/basic/formats-util.h \
933 nodist_libbasic_la_SOURCES = \
934 src/basic/errno-from-name.h \
935 src/basic/errno-to-name.h \
936 src/basic/af-from-name.h \
937 src/basic/af-to-name.h \
938 src/basic/arphrd-from-name.h \
939 src/basic/arphrd-to-name.h \
940 src/basic/cap-from-name.h \
941 src/basic/cap-to-name.h
943 libbasic_la_CFLAGS = \
949 libbasic_la_LIBADD = \
955 # -----------------------------------------------------------------------------
956 noinst_LTLIBRARIES += \
959 libshared_la_SOURCES = \
960 src/shared/output-mode.h \
962 src/shared/udev-util.h \
963 src/shared/linux/auto_dev-ioctl.h \
964 src/shared/initreq.h \
965 src/shared/dns-domain.c \
966 src/shared/dns-domain.h \
967 src/shared/architecture.c \
968 src/shared/architecture.h \
969 src/shared/efivars.c \
970 src/shared/efivars.h \
971 src/shared/fstab-util.c \
972 src/shared/fstab-util.h \
973 src/shared/sleep-config.c \
974 src/shared/sleep-config.h \
975 src/shared/conf-parser.c \
976 src/shared/conf-parser.h \
979 src/shared/spawn-polkit-agent.c \
980 src/shared/spawn-polkit-agent.h \
981 src/shared/apparmor-util.c \
982 src/shared/apparmor-util.h \
983 src/shared/ima-util.c \
984 src/shared/ima-util.h \
985 src/shared/ptyfwd.c \
986 src/shared/ptyfwd.h \
987 src/shared/base-filesystem.c \
988 src/shared/base-filesystem.h \
989 src/shared/uid-range.c \
990 src/shared/uid-range.h \
991 src/shared/install.c \
992 src/shared/install.h \
993 src/shared/install-printf.c \
994 src/shared/install-printf.h \
995 src/shared/path-lookup.c \
996 src/shared/path-lookup.h \
997 src/shared/specifier.c \
998 src/shared/specifier.h \
999 src/shared/dev-setup.c \
1000 src/shared/dev-setup.h \
1001 src/shared/dropin.c \
1002 src/shared/dropin.h \
1003 src/shared/condition.c \
1004 src/shared/condition.h \
1005 src/shared/clean-ipc.c \
1006 src/shared/clean-ipc.h \
1007 src/shared/generator.h \
1008 src/shared/generator.c \
1009 src/shared/acpi-fpdt.h \
1010 src/shared/acpi-fpdt.c \
1011 src/shared/boot-timestamps.h \
1012 src/shared/boot-timestamps.c \
1013 src/shared/cgroup-show.c \
1014 src/shared/cgroup-show.h \
1015 src/shared/utmp-wtmp.h \
1016 src/shared/watchdog.c \
1017 src/shared/watchdog.h \
1018 src/shared/spawn-ask-password-agent.c \
1019 src/shared/spawn-ask-password-agent.h \
1020 src/shared/ask-password-api.c \
1021 src/shared/ask-password-api.h \
1022 src/shared/switch-root.h \
1023 src/shared/switch-root.c \
1024 src/shared/import-util.c \
1025 src/shared/import-util.h \
1026 src/shared/sysctl-util.c \
1027 src/shared/sysctl-util.h \
1028 src/shared/bus-util.c \
1029 src/shared/bus-util.h \
1030 src/shared/logs-show.c \
1031 src/shared/logs-show.h \
1032 src/shared/machine-image.c \
1033 src/shared/machine-image.h \
1034 src/shared/machine-pool.c \
1035 src/shared/machine-pool.h \
1036 src/shared/resolve-util.c \
1037 src/shared/resolve-util.h
1040 libshared_la_SOURCES += \
1041 src/shared/utmp-wtmp.c
1045 libshared_la_SOURCES += \
1046 src/shared/seccomp-util.h \
1047 src/shared/seccomp-util.c
1051 libshared_la_SOURCES += \
1052 src/shared/acl-util.c \
1053 src/shared/acl-util.h
1056 libshared_la_CFLAGS = \
1062 libshared_la_LIBADD = \
1063 libsystemd-internal.la \
1064 libsystemd-journal-internal.la \
1065 libudev-internal.la \
1070 # -----------------------------------------------------------------------------
1072 noinst_LTLIBRARIES += \
1075 libfirewall_la_SOURCES = \
1076 src/shared/firewall-util.h \
1077 src/shared/firewall-util.c
1079 libfirewall_la_CFLAGS = \
1083 libfirewall_la_LIBADD = \
1087 # -----------------------------------------------------------------------------
1089 dist_systemunit_DATA += \
1090 units/ldconfig.service
1092 SYSINIT_TARGET_WANTS += \
1096 # ------------------------------------------------------------------------------
1097 noinst_LTLIBRARIES += \
1100 libcore_la_SOURCES = \
1103 src/core/unit-printf.c \
1104 src/core/unit-printf.h \
1107 src/core/manager.c \
1108 src/core/manager.h \
1109 src/core/transaction.c \
1110 src/core/transaction.h \
1111 src/core/load-fragment.c \
1112 src/core/load-fragment.h \
1113 src/core/service.c \
1114 src/core/service.h \
1117 src/core/busname.c \
1118 src/core/busname.h \
1119 src/core/bus-policy.c \
1120 src/core/bus-policy.h \
1127 src/core/automount.c \
1128 src/core/automount.h \
1139 src/core/load-dropin.c \
1140 src/core/load-dropin.h \
1141 src/core/execute.c \
1142 src/core/execute.h \
1147 src/core/dbus-manager.c \
1148 src/core/dbus-manager.h \
1149 src/core/dbus-unit.c \
1150 src/core/dbus-unit.h \
1151 src/core/dbus-job.c \
1152 src/core/dbus-job.h \
1153 src/core/dbus-service.c \
1154 src/core/dbus-service.h \
1155 src/core/dbus-socket.c \
1156 src/core/dbus-socket.h \
1157 src/core/dbus-busname.c \
1158 src/core/dbus-busname.h \
1159 src/core/dbus-target.c \
1160 src/core/dbus-target.h \
1161 src/core/dbus-device.c \
1162 src/core/dbus-device.h \
1163 src/core/dbus-mount.c \
1164 src/core/dbus-mount.h \
1165 src/core/dbus-automount.c \
1166 src/core/dbus-automount.h \
1167 src/core/dbus-swap.c \
1168 src/core/dbus-swap.h \
1169 src/core/dbus-timer.c \
1170 src/core/dbus-timer.h \
1171 src/core/dbus-path.c \
1172 src/core/dbus-path.h \
1173 src/core/dbus-slice.c \
1174 src/core/dbus-slice.h \
1175 src/core/dbus-scope.c \
1176 src/core/dbus-scope.h \
1177 src/core/dbus-execute.c \
1178 src/core/dbus-execute.h \
1179 src/core/dbus-kill.c \
1180 src/core/dbus-kill.h \
1181 src/core/dbus-cgroup.c \
1182 src/core/dbus-cgroup.h \
1185 src/core/selinux-access.c \
1186 src/core/selinux-access.h \
1187 src/core/selinux-setup.c \
1188 src/core/selinux-setup.h \
1189 src/core/smack-setup.c \
1190 src/core/smack-setup.h \
1191 src/core/ima-setup.c \
1192 src/core/ima-setup.h \
1193 src/core/locale-setup.h \
1194 src/core/locale-setup.c \
1195 src/core/hostname-setup.c \
1196 src/core/hostname-setup.h \
1197 src/core/machine-id-setup.c \
1198 src/core/machine-id-setup.h \
1199 src/core/mount-setup.c \
1200 src/core/mount-setup.h \
1201 src/core/kmod-setup.c \
1202 src/core/kmod-setup.h \
1203 src/core/loopback-setup.h \
1204 src/core/loopback-setup.c \
1205 src/core/namespace.c \
1206 src/core/namespace.h \
1207 src/core/killall.h \
1208 src/core/killall.c \
1209 src/core/audit-fd.c \
1210 src/core/audit-fd.h \
1211 src/core/show-status.c \
1212 src/core/show-status.h \
1213 src/core/failure-action.c \
1214 src/core/failure-action.h
1216 nodist_libcore_la_SOURCES = \
1217 src/core/load-fragment-gperf.c \
1218 src/core/load-fragment-gperf-nulstr.c
1220 libcore_la_CFLAGS = \
1225 $(APPARMOR_CFLAGS) \
1229 libcore_la_LIBADD = \
1237 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1238 $(AM_V_at)$(MKDIR_P) $(dir $@)
1239 $(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 ";" }' < $< > $@
1241 gperf_gperf_m4_sources = \
1242 src/core/load-fragment-gperf.gperf.m4
1244 gperf_txt_sources = \
1245 src/basic/errno-list.txt \
1246 src/basic/af-list.txt \
1247 src/basic/arphrd-list.txt \
1248 src/basic/cap-list.txt
1251 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1252 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1253 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1254 $(gperf_txt_sources:-list.txt=-from-name.h) \
1255 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
1258 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1260 $(gperf_txt_sources)
1263 $(gperf_gperf_m4_sources) \
1264 $(gperf_gperf_sources)
1267 $(gperf_txt_sources)
1269 %-from-name.gperf: %-list.txt
1270 $(AM_V_at)$(MKDIR_P) $(dir $@)
1271 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1273 %-from-name.h: %-from-name.gperf
1274 $(AM_V_at)$(MKDIR_P) $(dir $@)
1275 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1278 src/basic/errno-list.txt:
1279 $(AM_V_at)$(MKDIR_P) $(dir $@)
1280 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1282 src/basic/errno-to-name.h: src/basic/errno-list.txt
1283 $(AM_V_at)$(MKDIR_P) $(dir $@)
1284 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1287 src/basic/af-list.txt:
1288 $(AM_V_at)$(MKDIR_P) $(dir $@)
1289 $(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; }' >$@
1291 src/basic/af-to-name.h: src/basic/af-list.txt
1292 $(AM_V_at)$(MKDIR_P) $(dir $@)
1293 $(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 "};"}' <$< >$@
1296 src/basic/arphrd-list.txt:
1297 $(AM_V_at)$(MKDIR_P) $(dir $@)
1298 $(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_//' >$@
1300 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1301 $(AM_V_at)$(MKDIR_P) $(dir $@)
1302 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1304 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1305 $(AM_V_at)$(MKDIR_P) $(dir $@)
1306 $(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 }' <$< >$@
1309 src/basic/cap-list.txt:
1310 $(AM_V_at)$(MKDIR_P) $(dir $@)
1311 $(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 >$@
1313 src/basic/cap-to-name.h: src/basic/cap-list.txt
1314 $(AM_V_at)$(MKDIR_P) $(dir $@)
1315 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1317 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1318 $(AM_V_at)$(MKDIR_P) $(dir $@)
1319 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1321 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1322 $(AM_V_at)$(MKDIR_P) $(dir $@)
1323 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1325 audit_list_includes = -include linux/audit.h -include missing.h
1327 audit_list_includes += -include libaudit.h
1330 src/journal/audit_type-list.txt:
1331 $(AM_V_at)$(MKDIR_P) $(dir $@)
1332 $(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 >$@
1334 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1335 $(AM_V_at)$(MKDIR_P) $(dir $@)
1336 $(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" }' <$< >$@
1339 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1340 $(AM_V_at)$(MKDIR_P) $(dir $@)
1341 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1343 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1344 $(AM_V_at)$(MKDIR_P) $(dir $@)
1345 $(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" }' <$< >$@
1347 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1348 $(AM_V_at)$(MKDIR_P) $(dir $@)
1349 $(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 }' <$< >$@
1351 # ------------------------------------------------------------------------------
1363 dist_pkgsysconf_DATA += \
1364 src/core/system.conf \
1367 dist_dbuspolicy_DATA += \
1368 src/core/org.freedesktop.systemd1.conf
1370 dist_dbussystemservice_DATA += \
1371 src/core/org.freedesktop.systemd1.service
1373 polkitpolicy_in_in_files += \
1374 src/core/org.freedesktop.systemd1.policy.in.in
1376 pkgconfigdata_DATA += \
1379 nodist_rpmmacros_DATA = \
1380 src/core/macros.systemd
1383 src/core/systemd.pc.in \
1384 src/core/macros.systemd.in \
1385 src/core/triggers.systemd.in
1387 # ------------------------------------------------------------------------------
1401 test-ipv4ll-manual \
1402 test-ask-password-api
1434 test-hostname-util \
1436 test-terminal-util \
1446 test-strip-tab-ansi \
1482 test-resolve-tables \
1497 test/daughter.service \
1502 test/grandchild.service \
1504 test/hello-after-sleep.target \
1505 test/hello.service \
1507 test/parent-deep.slice \
1509 test/sched_idle_bad.service \
1510 test/sched_idle_ok.service \
1511 test/sched_rr_bad.service \
1512 test/sched_rr_change.service \
1513 test/sched_rr_ok.service \
1514 test/shutdown.target \
1515 test/sleep.service \
1516 test/sockets.target \
1518 test/sysinit.target \
1519 test/testsuite.target \
1520 test/timers.target \
1521 test/unstoppable.service \
1522 test/test-path/paths.target \
1523 test/test-path/basic.target \
1524 test/test-path/sysinit.target \
1525 test/test-path/path-changed.service \
1526 test/test-path/path-directorynotempty.service \
1527 test/test-path/path-existsglob.service \
1528 test/test-path/path-exists.service \
1529 test/test-path/path-makedirectory.service \
1530 test/test-path/path-modified.service \
1531 test/test-path/path-mycustomunit.service \
1532 test/test-path/path-service.service \
1533 test/test-path/path-changed.path \
1534 test/test-path/path-directorynotempty.path \
1535 test/test-path/path-existsglob.path \
1536 test/test-path/path-exists.path \
1537 test/test-path/path-makedirectory.path \
1538 test/test-path/path-modified.path \
1539 test/test-path/path-unit.path \
1540 test/test-execute/exec-environment-empty.service \
1541 test/test-execute/exec-environment-multiple.service \
1542 test/test-execute/exec-environment.service \
1543 test/test-execute/exec-passenvironment-absent.service \
1544 test/test-execute/exec-passenvironment-empty.service \
1545 test/test-execute/exec-passenvironment-repeated.service \
1546 test/test-execute/exec-passenvironment.service \
1547 test/test-execute/exec-group.service \
1548 test/test-execute/exec-ignoresigpipe-no.service \
1549 test/test-execute/exec-ignoresigpipe-yes.service \
1550 test/test-execute/exec-personality-x86-64.service \
1551 test/test-execute/exec-personality-x86.service \
1552 test/test-execute/exec-personality-s390.service \
1553 test/test-execute/exec-privatedevices-no.service \
1554 test/test-execute/exec-privatedevices-yes.service \
1555 test/test-execute/exec-privatetmp-no.service \
1556 test/test-execute/exec-privatetmp-yes.service \
1557 test/test-execute/exec-systemcallerrornumber.service \
1558 test/test-execute/exec-systemcallfilter-failing2.service \
1559 test/test-execute/exec-systemcallfilter-failing.service \
1560 test/test-execute/exec-systemcallfilter-not-failing2.service \
1561 test/test-execute/exec-systemcallfilter-not-failing.service \
1562 test/test-execute/exec-user.service \
1563 test/test-execute/exec-workingdirectory.service \
1564 test/test-execute/exec-umask-0177.service \
1565 test/test-execute/exec-umask-default.service \
1566 test/test-execute/exec-privatenetwork-yes.service \
1567 test/test-execute/exec-environmentfile.service \
1568 test/test-execute/exec-oomscoreadjust-positive.service \
1569 test/test-execute/exec-oomscoreadjust-negative.service \
1570 test/test-execute/exec-ioschedulingclass-best-effort.service \
1571 test/test-execute/exec-ioschedulingclass-idle.service \
1572 test/test-execute/exec-ioschedulingclass-none.service \
1573 test/test-execute/exec-ioschedulingclass-realtime.service \
1574 test/test-execute/exec-capabilityboundingset-invert.service \
1575 test/test-execute/exec-capabilityboundingset-merge.service \
1576 test/test-execute/exec-capabilityboundingset-reset.service \
1577 test/test-execute/exec-capabilityboundingset-simple.service \
1578 test/bus-policy/hello.conf \
1579 test/bus-policy/methods.conf \
1580 test/bus-policy/ownerships.conf \
1581 test/bus-policy/signals.conf \
1582 test/bus-policy/check-own-rules.conf \
1583 test/bus-policy/many-rules.conf \
1584 test/bus-policy/test.conf
1588 src/test/test-helper.h
1590 test_device_nodes_SOURCES = \
1591 src/test/test-device-nodes.c
1593 test_device_nodes_LDADD = \
1596 test_engine_SOURCES = \
1597 src/test/test-engine.c
1599 test_engine_CFLAGS = \
1604 test_engine_LDADD = \
1607 test_job_type_SOURCES = \
1608 src/test/test-job-type.c
1610 test_job_type_CFLAGS = \
1615 test_job_type_LDADD = \
1628 test_loopback_SOURCES = \
1629 src/test/test-loopback.c
1631 test_loopback_LDADD = \
1634 test_hostname_SOURCES = \
1635 src/test/test-hostname.c
1637 test_hostname_LDADD = \
1640 test_dns_domain_SOURCES = \
1641 src/test/test-dns-domain.c
1643 test_dns_domain_LDADD = \
1644 libsystemd-network.la \
1652 test_boot_timestamp_SOURCES = \
1653 src/test/test-boot-timestamps.c
1655 test_boot_timestamp_LDADD = \
1659 test_unit_name_SOURCES = \
1660 src/test/test-unit-name.c
1662 test_unit_name_CFLAGS = \
1667 test_unit_name_LDADD = \
1670 test_unit_file_SOURCES = \
1671 src/test/test-unit-file.c
1673 test_unit_file_CFLAGS = \
1678 test_unit_file_LDADD = \
1681 test_utf8_SOURCES = \
1682 src/test/test-utf8.c
1687 test_capability_SOURCES = \
1688 src/test/test-capability.c
1690 test_capability_LDADD = \
1693 test_async_SOURCES = \
1694 src/test/test-async.c
1696 test_async_LDADD = \
1699 test_locale_util_SOURCES = \
1700 src/test/test-locale-util.c
1702 test_locale_util_LDADD = \
1705 test_copy_SOURCES = \
1706 src/test/test-copy.c
1711 test_sigbus_SOURCES = \
1712 src/test/test-sigbus.c
1714 test_sigbus_LDADD = \
1717 test_rbtree_SOURCES = \
1718 src/test/test-rbtree.c
1720 test_rbtree_LDADD = \
1723 test_condition_SOURCES = \
1724 src/test/test-condition.c
1726 test_condition_LDADD = \
1729 test_fdset_SOURCES = \
1730 src/test/test-fdset.c
1732 test_fdset_LDADD = \
1735 test_fstab_util_SOURCES = \
1736 src/test/test-fstab-util.c
1738 test_fstab_util_LDADD = \
1741 test_ratelimit_SOURCES = \
1742 src/test/test-ratelimit.c
1744 test_ratelimit_LDADD = \
1747 test_util_SOURCES = \
1748 src/test/test-util.c
1753 test_string_util_SOURCES = \
1754 src/test/test-string-util.c
1756 test_string_util_LDADD = \
1759 test_extract_word_SOURCES = \
1760 src/test/test-extract-word.c
1762 test_extract_word_LDADD = \
1765 test_parse_util_SOURCES = \
1766 src/test/test-parse-util.c
1768 test_parse_util_LDADD = \
1771 test_user_util_SOURCES = \
1772 src/test/test-user-util.c
1774 test_user_util_LDADD = \
1777 test_hostname_util_SOURCES = \
1778 src/test/test-hostname-util.c
1780 test_hostname_util_LDADD = \
1783 test_process_util_SOURCES = \
1784 src/test/test-process-util.c
1786 test_process_util_LDADD = \
1789 test_terminal_util_SOURCES = \
1790 src/test/test-terminal-util.c
1792 test_terminal_util_LDADD = \
1795 test_path_lookup_SOURCES = \
1796 src/test/test-path-lookup.c
1798 test_path_lookup_LDADD = \
1801 test_uid_range_SOURCES = \
1802 src/test/test-uid-range.c
1804 test_uid_range_LDADD = \
1807 test_cap_list_SOURCES = \
1808 src/test/test-cap-list.c
1810 test_cap_list_LDADD = \
1813 test_socket_util_SOURCES = \
1814 src/test/test-socket-util.c
1816 test_socket_util_LDADD = \
1819 test_barrier_SOURCES = \
1820 src/test/test-barrier.c
1822 test_barrier_LDADD = \
1825 test_tmpfiles_SOURCES = \
1826 src/test/test-tmpfiles.c
1828 test_tmpfiles_LDADD = \
1831 test_namespace_SOURCES = \
1832 src/test/test-namespace.c
1834 test_verbs_SOURCES = \
1835 src/test/test-verbs.c
1837 test_verbs_LDADD = \
1840 test_install_root_SOURCES = \
1841 src/test/test-install-root.c
1843 test_install_root_LDADD = \
1846 test_acl_util_SOURCES = \
1847 src/test/test-acl-util.c
1849 test_acl_util_LDADD = \
1852 test_namespace_LDADD = \
1855 test_rlimit_util_SOURCES = \
1856 src/test/test-rlimit-util.c
1858 test_rlimit_util_LDADD = \
1861 test_ask_password_api_SOURCES = \
1862 src/test/test-ask-password-api.c
1864 test_ask_password_api_LDADD = \
1867 test_signal_util_SOURCES = \
1868 src/test/test-signal-util.c
1870 test_signal_util_LDADD = \
1874 src/test/test-hashmap-ordered.c
1876 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1877 $(AM_V_at)$(MKDIR_P) $(dir $@)
1878 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1879 { if (!match($$0, "^#include")) \
1880 gsub(/hashmap/, "ordered_hashmap"); \
1881 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1882 gsub(/Hashmap/, "OrderedHashmap"); \
1885 nodist_test_hashmap_SOURCES = \
1886 src/test/test-hashmap-ordered.c
1888 test_hashmap_SOURCES = \
1889 src/test/test-hashmap.c \
1890 src/test/test-hashmap-plain.c
1892 test_hashmap_LDADD = \
1895 test_set_SOURCES = \
1901 test_bitmap_SOURCES = \
1902 src/test/test-bitmap.c
1904 test_bitmap_LDADD = \
1907 test_xml_SOURCES = \
1913 test_list_SOURCES = \
1914 src/test/test-list.c
1919 test_unaligned_LDADD = \
1922 test_unaligned_SOURCES = \
1923 src/test/test-unaligned.c
1925 test_tables_SOURCES = \
1926 src/test/test-tables.c \
1927 src/shared/test-tables.h \
1928 src/bus-proxyd/bus-xml-policy.c \
1929 src/bus-proxyd/bus-xml-policy.h \
1930 src/journal/journald-server.c \
1931 src/journal/journald-server.h
1933 test_tables_CPPFLAGS = \
1935 -I$(top_srcdir)/src/bus-proxyd
1937 test_tables_CFLAGS = \
1942 test_tables_LDADD = \
1943 libjournal-core.la \
1947 test_prioq_SOURCES = \
1948 src/test/test-prioq.c
1950 test_prioq_LDADD = \
1953 test_fileio_SOURCES = \
1954 src/test/test-fileio.c
1956 test_fileio_LDADD = \
1959 test_time_SOURCES = \
1960 src/test/test-time.c
1965 test_architecture_SOURCES = \
1966 src/test/test-architecture.c
1968 test_architecture_LDADD = \
1971 test_log_SOURCES = \
1977 test_ipcrm_SOURCES = \
1978 src/test/test-ipcrm.c
1980 test_ipcrm_LDADD = \
1983 test_btrfs_SOURCES = \
1984 src/test/test-btrfs.c
1986 test_btrfs_LDADD = \
1990 test_firewall_util_SOURCES = \
1991 src/test/test-firewall-util.c
1993 test_firewall_util_CFLAGS = \
1997 test_firewall_util_LDADD = \
2003 test_netlink_manual_SOURCES = \
2004 src/test/test-netlink-manual.c
2006 test_netlink_manual_CFLAGS = \
2010 test_netlink_manual_LDADD = \
2014 test_ellipsize_SOURCES = \
2015 src/test/test-ellipsize.c
2017 test_ellipsize_LDADD = \
2020 test_date_SOURCES = \
2021 src/test/test-date.c
2026 test_sleep_SOURCES = \
2027 src/test/test-sleep.c
2029 test_sleep_LDADD = \
2032 test_replace_var_SOURCES = \
2033 src/test/test-replace-var.c
2035 test_replace_var_LDADD = \
2038 test_calendarspec_SOURCES = \
2039 src/test/test-calendarspec.c
2041 test_calendarspec_LDADD = \
2044 test_strip_tab_ansi_SOURCES = \
2045 src/test/test-strip-tab-ansi.c
2047 test_strip_tab_ansi_LDADD = \
2050 test_daemon_SOURCES = \
2051 src/test/test-daemon.c
2053 test_daemon_LDADD = \
2056 test_cgroup_SOURCES = \
2057 src/test/test-cgroup.c
2059 test_cgroup_LDADD = \
2062 test_cgroup_mask_SOURCES = \
2063 src/test/test-cgroup-mask.c
2065 test_cgroup_mask_CPPFLAGS = \
2069 test_cgroup_mask_CFLAGS = \
2073 test_cgroup_mask_LDADD = \
2076 test_cgroup_util_SOURCES = \
2077 src/test/test-cgroup-util.c
2079 test_cgroup_util_LDADD = \
2082 test_env_replace_SOURCES = \
2083 src/test/test-env-replace.c
2085 test_env_replace_LDADD = \
2088 test_strbuf_SOURCES = \
2089 src/test/test-strbuf.c
2091 test_strbuf_LDADD = \
2094 test_strv_SOURCES = \
2095 src/test/test-strv.c
2100 test_path_util_SOURCES = \
2101 src/test/test-path-util.c
2103 test_path_util_LDADD = \
2106 test_path_SOURCES = \
2107 src/test/test-path.c
2109 test_path_CFLAGS = \
2116 test_execute_SOURCES = \
2117 src/test/test-execute.c
2119 test_execute_CFLAGS = \
2123 test_execute_LDADD = \
2126 test_siphash24_SOURCES = \
2127 src/test/test-siphash24.c
2129 test_siphash24_LDADD = \
2132 test_strxcpyx_SOURCES = \
2133 src/test/test-strxcpyx.c
2135 test_strxcpyx_LDADD = \
2138 test_install_SOURCES = \
2139 src/test/test-install.c
2141 test_install_LDADD = \
2144 test_watchdog_SOURCES = \
2145 src/test/test-watchdog.c
2147 test_watchdog_LDADD = \
2150 test_sched_prio_SOURCES = \
2151 src/test/test-sched-prio.c
2153 test_sched_prio_CPPFLAGS = \
2157 test_sched_prio_CFLAGS = \
2161 test_sched_prio_LDADD = \
2164 test_conf_files_SOURCES = \
2165 src/test/test-conf-files.c
2167 test_conf_files_LDADD = \
2170 test_conf_parser_SOURCES = \
2171 src/test/test-conf-parser.c
2173 test_conf_parser_LDADD = \
2176 test_bus_policy_SOURCES = \
2177 src/bus-proxyd/test-bus-xml-policy.c
2179 test_bus_policy_LDADD = \
2180 libbus-proxy-core.la \
2183 test_af_list_SOURCES = \
2184 src/test/test-af-list.c
2186 test_af_list_LDADD = \
2189 test_arphrd_list_SOURCES = \
2190 src/test/test-arphrd-list.c
2192 test_arphrd_list_LDADD = \
2195 # ------------------------------------------------------------------------------
2196 ## .PHONY so it always rebuilds it
2197 .PHONY: coverage lcov-run lcov-report coverage-sync
2199 # run lcov from scratch, always
2204 coverage_dir = coverage
2205 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2208 # reset run coverage tests
2210 @rm -rf $(coverage_dir)
2211 lcov $(coverage_opts) --zerocounters
2214 # generate report based on current coverage data
2216 $(MKDIR_P) $(coverage_dir)
2217 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2218 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2219 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2220 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2221 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2223 # lcov doesn't work properly with vpath builds, make sure that bad
2224 # output is not uploaded by mistake.
2225 coverage-sync: coverage
2226 test "$(builddir)" = "$(srcdir)"
2227 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2230 lcov-run lcov-report:
2231 echo "Need to reconfigure with --enable-coverage"
2234 # ------------------------------------------------------------------------------
2235 systemd_analyze_SOURCES = \
2236 src/analyze/analyze.c \
2237 src/analyze/analyze-verify.c \
2238 src/analyze/analyze-verify.h
2240 systemd_analyze_CFLAGS = \
2245 systemd_analyze_LDADD = \
2248 # ------------------------------------------------------------------------------
2249 systemd_initctl_SOURCES = \
2250 src/initctl/initctl.c
2252 systemd_initctl_LDADD = \
2255 # ------------------------------------------------------------------------------
2256 systemd_update_utmp_SOURCES = \
2257 src/update-utmp/update-utmp.c
2259 systemd_update_utmp_CFLAGS = \
2263 systemd_update_utmp_LDADD = \
2267 # ------------------------------------------------------------------------------
2268 systemd_update_done_SOURCES = \
2269 src/update-done/update-done.c
2271 systemd_update_done_LDADD = \
2274 # ------------------------------------------------------------------------------
2275 systemd_shutdown_SOURCES = \
2278 src/core/shutdown.c \
2279 src/core/mount-setup.c \
2280 src/core/mount-setup.h \
2281 src/core/killall.h \
2284 systemd_shutdown_LDADD = \
2287 # ------------------------------------------------------------------------------
2289 systemd_modules_load_SOURCES = \
2290 src/modules-load/modules-load.c
2292 systemd_modules_load_CFLAGS = \
2296 systemd_modules_load_LDADD = \
2300 rootlibexec_PROGRAMS += \
2301 systemd-modules-load
2303 nodist_systemunit_DATA += \
2304 units/systemd-modules-load.service
2306 SYSINIT_TARGET_WANTS += \
2307 systemd-modules-load.service
2310 nodist_systemunit_DATA += \
2311 units/kmod-static-nodes.service
2313 SYSINIT_TARGET_WANTS += \
2314 kmod-static-nodes.service
2319 units/systemd-modules-load.service.in \
2320 units/kmod-static-nodes.service.in
2322 # ------------------------------------------------------------------------------
2324 systemd_tmpfiles_SOURCES = \
2325 src/tmpfiles/tmpfiles.c
2327 systemd_tmpfiles_LDADD = \
2330 rootbin_PROGRAMS += \
2333 dist_systemunit_DATA += \
2334 units/systemd-tmpfiles-clean.timer
2336 nodist_systemunit_DATA += \
2337 units/systemd-tmpfiles-setup-dev.service \
2338 units/systemd-tmpfiles-setup.service \
2339 units/systemd-tmpfiles-clean.service
2341 nodist_tmpfiles_DATA = \
2342 tmpfiles.d/systemd.conf \
2345 dist_tmpfiles_DATA = \
2346 tmpfiles.d/systemd-nologin.conf \
2347 tmpfiles.d/tmp.conf \
2348 tmpfiles.d/x11.conf \
2349 tmpfiles.d/var.conf \
2350 tmpfiles.d/home.conf \
2351 tmpfiles.d/systemd-nspawn.conf \
2352 tmpfiles.d/journal-nocow.conf
2355 dist_tmpfiles_DATA += \
2356 tmpfiles.d/legacy.conf
2359 SYSINIT_TARGET_WANTS += \
2360 systemd-tmpfiles-setup-dev.service \
2361 systemd-tmpfiles-setup.service
2363 dist_zshcompletion_data += \
2364 shell-completion/zsh/_systemd-tmpfiles
2366 TIMERS_TARGET_WANTS += \
2367 systemd-tmpfiles-clean.timer
2371 $(sysconfdir)/tmpfiles.d
2375 tmpfiles.d/systemd.conf.m4 \
2376 tmpfiles.d/etc.conf.m4 \
2377 units/systemd-tmpfiles-setup-dev.service.in \
2378 units/systemd-tmpfiles-setup.service.in \
2379 units/systemd-tmpfiles-clean.service.in
2381 # ------------------------------------------------------------------------------
2383 systemd_sysusers_SOURCES = \
2384 src/sysusers/sysusers.c
2386 systemd_sysusers_LDADD = \
2389 rootbin_PROGRAMS += \
2392 nodist_systemunit_DATA += \
2393 units/systemd-sysusers.service
2395 SYSINIT_TARGET_WANTS += \
2396 systemd-sysusers.service
2398 nodist_sysusers_DATA = \
2399 sysusers.d/systemd.conf \
2400 sysusers.d/basic.conf
2403 nodist_sysusers_DATA += \
2404 sysusers.d/systemd-remote.conf
2412 units/systemd-sysusers.service.in \
2413 sysusers.d/systemd.conf.m4 \
2414 sysusers.d/systemd-remote.conf.m4 \
2415 sysusers.d/basic.conf.in
2417 # ------------------------------------------------------------------------------
2418 dist_factory_etc_DATA = \
2419 factory/etc/nsswitch.conf
2422 dist_factory_pam_DATA = \
2423 factory/etc/pam.d/system-auth \
2424 factory/etc/pam.d/other
2427 # ------------------------------------------------------------------------------
2429 systemd_firstboot_SOURCES = \
2430 src/firstboot/firstboot.c
2432 systemd_firstboot_LDADD = \
2436 rootbin_PROGRAMS += \
2439 nodist_systemunit_DATA += \
2440 units/systemd-firstboot.service
2442 SYSINIT_TARGET_WANTS += \
2443 systemd-firstboot.service
2447 units/systemd-firstboot.service.in
2449 # ------------------------------------------------------------------------------
2450 systemd_machine_id_setup_SOURCES = \
2451 src/machine-id-setup/machine-id-setup-main.c \
2452 src/core/machine-id-setup.c \
2453 src/core/machine-id-setup.h
2455 systemd_machine_id_setup_LDADD = \
2458 SYSINIT_TARGET_WANTS += \
2459 systemd-machine-id-commit.service
2461 # ------------------------------------------------------------------------------
2462 systemd_sysctl_SOURCES = \
2465 systemd_sysctl_LDADD = \
2468 # ------------------------------------------------------------------------------
2469 systemd_sleep_SOURCES = \
2472 systemd_sleep_LDADD = \
2475 # ------------------------------------------------------------------------------
2476 systemd_fsck_SOURCES = \
2479 systemd_fsck_LDADD = \
2482 # ------------------------------------------------------------------------------
2483 systemd_ac_power_SOURCES = \
2484 src/ac-power/ac-power.c
2486 systemd_ac_power_LDADD = \
2489 # ------------------------------------------------------------------------------
2490 systemd_detect_virt_SOURCES = \
2491 src/detect-virt/detect-virt.c
2493 systemd_detect_virt_LDADD = \
2496 INSTALL_EXEC_HOOKS += \
2497 systemd-detect-virt-install-hook
2499 # ------------------------------------------------------------------------------
2500 systemd_delta_SOURCES = \
2503 systemd_delta_LDADD = \
2506 # ------------------------------------------------------------------------------
2507 systemd_getty_generator_SOURCES = \
2508 src/getty-generator/getty-generator.c
2510 systemd_getty_generator_LDADD = \
2513 # ------------------------------------------------------------------------------
2514 systemd_debug_generator_SOURCES = \
2515 src/debug-generator/debug-generator.c
2517 systemd_debug_generator_LDADD = \
2520 # ------------------------------------------------------------------------------
2521 systemd_fstab_generator_SOURCES = \
2522 src/fstab-generator/fstab-generator.c \
2523 src/core/mount-setup.c
2525 systemd_fstab_generator_LDADD = \
2528 # ------------------------------------------------------------------------------
2529 systemd_system_update_generator_SOURCES = \
2530 src/system-update-generator/system-update-generator.c
2532 systemd_system_update_generator_LDADD = \
2535 # ------------------------------------------------------------------------------
2537 systemgenerator_PROGRAMS += \
2538 systemd-hibernate-resume-generator
2540 rootlibexec_PROGRAMS += \
2541 systemd-hibernate-resume
2543 systemd_hibernate_resume_SOURCES = \
2544 src/hibernate-resume/hibernate-resume.c
2546 systemd_hibernate_resume_LDADD = \
2549 systemd_hibernate_resume_generator_SOURCES = \
2550 src/hibernate-resume/hibernate-resume-generator.c
2552 systemd_hibernate_resume_generator_LDADD = \
2555 dist_systemunit_DATA += \
2556 units/hibernate.target \
2557 units/hybrid-sleep.target
2559 nodist_systemunit_DATA += \
2560 units/systemd-hibernate.service \
2561 units/systemd-hibernate-resume@.service \
2562 units/systemd-hybrid-sleep.service
2566 units/systemd-hibernate.service.in \
2567 units/systemd-hibernate-resume@.service.in \
2568 units/systemd-hybrid-sleep.service.in
2570 # ------------------------------------------------------------------------------
2576 bootctl_CPPFLAGS = \
2578 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2579 -DBOOTLIBDIR=\"$(bootlibdir)\"
2592 dist_bashcompletion_data += \
2593 shell-completion/bash/bootctl
2595 dist_zshcompletion_data += \
2596 shell-completion/zsh/_bootctl
2599 # ------------------------------------------------------------------------------
2603 -I$(top_builddir) -include config.h \
2604 -I$(EFI_INC_DIR)/efi \
2605 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2606 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2619 -fno-strict-aliasing \
2620 -fno-stack-protector \
2622 -Wno-missing-field-initializers
2629 -DEFI_FUNCTION_WRAPPER \
2630 -DGNU_EFI_USE_MS_ABI
2641 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2647 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2649 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2650 # and add required symbols manually.
2652 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2653 EFI_FORMAT = -O binary
2655 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2660 # ------------------------------------------------------------------------------
2661 systemd_boot_headers = \
2662 src/boot/efi/util.h \
2663 src/boot/efi/console.h \
2664 src/boot/efi/graphics.h \
2665 src/boot/efi/pefile.h \
2666 src/boot/efi/measure.h \
2669 systemd_boot_sources = \
2670 src/boot/efi/util.c \
2671 src/boot/efi/console.c \
2672 src/boot/efi/graphics.c \
2673 src/boot/efi/pefile.c \
2674 src/boot/efi/disk.c \
2675 src/boot/efi/measure.c \
2678 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2680 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2681 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2682 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2686 bootlib_DATA = $(systemd_boot)
2688 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2689 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2690 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2692 $(systemd_boot_solib): $(systemd_boot_objects)
2693 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2694 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2695 nm -D -u $@ | grep ' U ' && exit 1 || :
2697 $(systemd_boot): $(systemd_boot_solib)
2698 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2699 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2703 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2705 # ------------------------------------------------------------------------------
2707 src/boot/efi/util.h \
2708 src/boot/efi/pefile.h \
2709 src/boot/efi/disk.h \
2710 src/boot/efi/graphics.h \
2711 src/boot/efi/splash.h \
2712 src/boot/efi/measure.h \
2713 src/boot/efi/linux.h
2716 src/boot/efi/util.c \
2717 src/boot/efi/pefile.c \
2718 src/boot/efi/disk.c \
2719 src/boot/efi/graphics.c \
2720 src/boot/efi/splash.c \
2721 src/boot/efi/linux.c \
2722 src/boot/efi/measure.c \
2730 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2731 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2732 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2736 bootlib_DATA += $(stub)
2738 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2739 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2740 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2742 $(stub_solib): $(stub_objects)
2743 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2744 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2745 nm -D -u $@ | grep ' U ' && exit 1 || :
2747 $(stub): $(stub_solib)
2748 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2749 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2753 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2756 # ------------------------------------------------------------------------------
2757 CLEANFILES += test-efi-disk.img
2759 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2760 $(AM_V_GEN)test/test-efi-create-disk.sh
2762 test-efi: test-efi-disk.img
2763 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2765 EXTRA_DIST += test/test-efi-create-disk.sh
2767 # ------------------------------------------------------------------------------
2769 systemgenerator_PROGRAMS += \
2770 systemd-gpt-auto-generator
2772 systemd_gpt_auto_generator_SOURCES = \
2773 src/gpt-auto-generator/gpt-auto-generator.c \
2774 src/basic/blkid-util.h
2776 systemd_gpt_auto_generator_LDADD = \
2780 systemd_gpt_auto_generator_CFLAGS = \
2785 # ------------------------------------------------------------------------------
2786 systemgenerator_PROGRAMS += \
2787 systemd-dbus1-generator
2789 systemd_dbus1_generator_SOURCES = \
2790 src/dbus1-generator/dbus1-generator.c
2792 systemd_dbus1_generator_LDADD = \
2795 dbus1-generator-install-hook:
2796 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2797 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2798 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2800 dbus1-generator-uninstall-hook:
2801 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2803 dist_xinitrc_SCRIPTS = \
2804 xorg/50-systemd-user.sh
2806 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2807 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2809 # ------------------------------------------------------------------------------
2810 systemd_sysv_generator_SOURCES = \
2811 src/sysv-generator/sysv-generator.c
2813 systemd_sysv_generator_LDADD = \
2816 # ------------------------------------------------------------------------------
2817 systemd_rc_local_generator_SOURCES = \
2818 src/rc-local-generator/rc-local-generator.c
2820 systemd_rc_local_generator_LDADD = \
2823 # ------------------------------------------------------------------------------
2824 systemd_remount_fs_SOURCES = \
2825 src/remount-fs/remount-fs.c \
2826 src/core/mount-setup.c \
2827 src/core/mount-setup.h
2829 systemd_remount_fs_LDADD = \
2832 # ------------------------------------------------------------------------------
2833 systemd_cgroups_agent_SOURCES = \
2834 src/cgroups-agent/cgroups-agent.c
2836 systemd_cgroups_agent_LDADD = \
2839 # ------------------------------------------------------------------------------
2840 systemd_escape_SOURCES = \
2843 systemd_escape_LDADD = \
2846 # -----------------------------------------------------------------------------
2847 systemctl_SOURCES = \
2848 src/systemctl/systemctl.c
2853 # ------------------------------------------------------------------------------
2854 systemd_notify_SOURCES = \
2857 systemd_notify_LDADD = \
2860 # ------------------------------------------------------------------------------
2861 systemd_path_SOURCES = \
2864 systemd_path_LDADD = \
2867 # ------------------------------------------------------------------------------
2868 systemd_ask_password_SOURCES = \
2869 src/ask-password/ask-password.c
2871 systemd_ask_password_LDADD = \
2874 # ------------------------------------------------------------------------------
2875 systemd_reply_password_SOURCES = \
2876 src/reply-password/reply-password.c
2878 systemd_reply_password_LDADD = \
2881 # ------------------------------------------------------------------------------
2882 systemd_cgls_SOURCES = \
2885 systemd_cgls_LDADD = \
2888 # ------------------------------------------------------------------------------
2889 systemd_cgtop_SOURCES = \
2892 systemd_cgtop_LDADD = \
2895 # ------------------------------------------------------------------------------
2896 systemd_nspawn_SOURCES = \
2897 src/nspawn/nspawn.c \
2898 src/nspawn/nspawn-settings.c \
2899 src/nspawn/nspawn-settings.h \
2900 src/nspawn/nspawn-mount.c \
2901 src/nspawn/nspawn-mount.h \
2902 src/nspawn/nspawn-network.c \
2903 src/nspawn/nspawn-network.h \
2904 src/nspawn/nspawn-expose-ports.c \
2905 src/nspawn/nspawn-expose-ports.h \
2906 src/nspawn/nspawn-cgroup.c \
2907 src/nspawn/nspawn-cgroup.h \
2908 src/nspawn/nspawn-register.c \
2909 src/nspawn/nspawn-register.h \
2910 src/nspawn/nspawn-setuid.c \
2911 src/nspawn/nspawn-setuid.h \
2912 src/nspawn/nspawn-stub-pid1.c \
2913 src/nspawn/nspawn-stub-pid1.h \
2914 src/core/mount-setup.c \
2915 src/core/mount-setup.h \
2916 src/core/loopback-setup.c \
2917 src/core/loopback-setup.h
2919 nodist_systemd_nspawn_SOURCES = \
2920 src/nspawn/nspawn-gperf.c
2922 gperf_gperf_sources += \
2923 src/nspawn/nspawn-gperf.gperf
2925 systemd_nspawn_CFLAGS = \
2930 systemd_nspawn_LDADD = \
2935 systemd_nspawn_LDADD += \
2939 # ------------------------------------------------------------------------------
2940 systemd_run_SOURCES = \
2943 systemd_run_LDADD = \
2946 # ------------------------------------------------------------------------------
2947 noinst_LTLIBRARIES += \
2948 libbus-proxy-core.la
2950 libbus_proxy_core_la_SOURCES = \
2951 src/bus-proxyd/bus-xml-policy.c \
2952 src/bus-proxyd/bus-xml-policy.h \
2953 src/bus-proxyd/driver.c \
2954 src/bus-proxyd/driver.h \
2955 src/bus-proxyd/proxy.c \
2956 src/bus-proxyd/proxy.h \
2957 src/bus-proxyd/synthesize.c \
2958 src/bus-proxyd/synthesize.h
2960 libbus_proxy_core_la_LIBADD = \
2963 systemd_bus_proxyd_SOURCES = \
2964 src/bus-proxyd/bus-proxyd.c
2966 systemd_bus_proxyd_LDADD = \
2967 libbus-proxy-core.la \
2970 systemd_stdio_bridge_SOURCES = \
2971 src/bus-proxyd/stdio-bridge.c
2973 systemd_stdio_bridge_LDADD = \
2974 libbus-proxy-core.la \
2977 nodist_systemunit_DATA += \
2978 units/systemd-bus-proxyd.service
2980 dist_systemunit_DATA += \
2981 units/systemd-bus-proxyd.socket
2983 nodist_userunit_DATA += \
2984 units/user/systemd-bus-proxyd.service
2986 dist_userunit_DATA += \
2987 units/user/systemd-bus-proxyd.socket
2990 units/systemd-bus-proxyd.service.m4.in \
2991 units/user/systemd-bus-proxyd.service.in
2994 bus-proxyd-set-cap-hook:
2995 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2997 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
3000 # ------------------------------------------------------------------------------
3001 systemd_tty_ask_password_agent_SOURCES = \
3002 src/tty-ask-password-agent/tty-ask-password-agent.c
3004 systemd_tty_ask_password_agent_LDADD = \
3007 # ------------------------------------------------------------------------------
3008 libsystemd_internal_la_SOURCES = \
3009 src/systemd/sd-bus.h \
3010 src/systemd/sd-bus-protocol.h \
3011 src/systemd/sd-bus-vtable.h \
3012 src/systemd/sd-utf8.h \
3013 src/systemd/sd-event.h \
3014 src/systemd/sd-netlink.h \
3015 src/systemd/sd-resolve.h \
3016 src/systemd/sd-login.h \
3017 src/systemd/sd-id128.h \
3018 src/systemd/sd-daemon.h \
3019 src/systemd/sd-path.h \
3020 src/systemd/sd-network.h \
3021 src/systemd/sd-hwdb.h \
3022 src/systemd/sd-device.h \
3023 src/libsystemd/libsystemd.sym \
3024 src/libsystemd/sd-bus/sd-bus.c \
3025 src/libsystemd/sd-bus/bus-control.c \
3026 src/libsystemd/sd-bus/bus-control.h \
3027 src/libsystemd/sd-bus/bus-error.c \
3028 src/libsystemd/sd-bus/bus-error.h \
3029 src/libsystemd/sd-bus/bus-common-errors.h \
3030 src/libsystemd/sd-bus/bus-common-errors.c \
3031 src/libsystemd/sd-bus/bus-internal.c \
3032 src/libsystemd/sd-bus/bus-internal.h \
3033 src/libsystemd/sd-bus/bus-socket.c \
3034 src/libsystemd/sd-bus/bus-socket.h \
3035 src/libsystemd/sd-bus/bus-kernel.c \
3036 src/libsystemd/sd-bus/bus-kernel.h \
3037 src/libsystemd/sd-bus/bus-container.c \
3038 src/libsystemd/sd-bus/bus-container.h \
3039 src/libsystemd/sd-bus/bus-message.c \
3040 src/libsystemd/sd-bus/bus-message.h \
3041 src/libsystemd/sd-bus/bus-creds.c \
3042 src/libsystemd/sd-bus/bus-creds.h \
3043 src/libsystemd/sd-bus/bus-signature.c \
3044 src/libsystemd/sd-bus/bus-signature.h \
3045 src/libsystemd/sd-bus/bus-type.c \
3046 src/libsystemd/sd-bus/bus-type.h \
3047 src/libsystemd/sd-bus/bus-match.c \
3048 src/libsystemd/sd-bus/bus-match.h \
3049 src/libsystemd/sd-bus/bus-bloom.c \
3050 src/libsystemd/sd-bus/bus-bloom.h \
3051 src/libsystemd/sd-bus/bus-introspect.c \
3052 src/libsystemd/sd-bus/bus-introspect.h \
3053 src/libsystemd/sd-bus/bus-objects.c \
3054 src/libsystemd/sd-bus/bus-objects.h \
3055 src/libsystemd/sd-bus/bus-gvariant.c \
3056 src/libsystemd/sd-bus/bus-gvariant.h \
3057 src/libsystemd/sd-bus/bus-convenience.c \
3058 src/libsystemd/sd-bus/bus-track.c \
3059 src/libsystemd/sd-bus/bus-track.h \
3060 src/libsystemd/sd-bus/bus-slot.c \
3061 src/libsystemd/sd-bus/bus-slot.h \
3062 src/libsystemd/sd-bus/bus-protocol.h \
3063 src/libsystemd/sd-bus/kdbus.h \
3064 src/libsystemd/sd-bus/bus-dump.c \
3065 src/libsystemd/sd-bus/bus-dump.h \
3066 src/libsystemd/sd-utf8/sd-utf8.c \
3067 src/libsystemd/sd-event/sd-event.c \
3068 src/libsystemd/sd-netlink/sd-netlink.c \
3069 src/libsystemd/sd-netlink/netlink-internal.h \
3070 src/libsystemd/sd-netlink/netlink-message.c \
3071 src/libsystemd/sd-netlink/netlink-socket.c \
3072 src/libsystemd/sd-netlink/rtnl-message.c \
3073 src/libsystemd/sd-netlink/netlink-types.h \
3074 src/libsystemd/sd-netlink/netlink-types.c \
3075 src/libsystemd/sd-netlink/netlink-util.h \
3076 src/libsystemd/sd-netlink/netlink-util.c \
3077 src/libsystemd/sd-netlink/local-addresses.h \
3078 src/libsystemd/sd-netlink/local-addresses.c \
3079 src/libsystemd/sd-id128/sd-id128.c \
3080 src/libsystemd/sd-daemon/sd-daemon.c \
3081 src/libsystemd/sd-login/sd-login.c \
3082 src/libsystemd/sd-path/sd-path.c \
3083 src/libsystemd/sd-network/sd-network.c \
3084 src/libsystemd/sd-network/network-util.h \
3085 src/libsystemd/sd-network/network-util.c \
3086 src/libsystemd/sd-hwdb/sd-hwdb.c \
3087 src/libsystemd/sd-hwdb/hwdb-util.h \
3088 src/libsystemd/sd-hwdb/hwdb-internal.h \
3089 src/libsystemd/sd-device/device-internal.h \
3090 src/libsystemd/sd-device/device-util.h \
3091 src/libsystemd/sd-device/device-enumerator.c \
3092 src/libsystemd/sd-device/device-enumerator-private.h \
3093 src/libsystemd/sd-device/sd-device.c \
3094 src/libsystemd/sd-device/device-private.c \
3095 src/libsystemd/sd-device/device-private.h \
3096 src/libsystemd/sd-resolve/sd-resolve.c
3098 libsystemd_internal_la_LIBADD = \
3102 noinst_LTLIBRARIES += \
3103 libsystemd-internal.la
3106 src/libsystemd/libsystemd.pc.in \
3107 src/libsystemd/sd-bus/DIFFERENCES \
3108 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3110 libsystemd_la_SOURCES = \
3111 $(libsystemd_internal_la_SOURCES) \
3112 $(libsystemd_journal_internal_la_SOURCES)
3114 nodist_libsystemd_la_SOURCES = \
3115 $(nodist_libsystemd_internal_la_SOURCES)
3117 libsystemd_la_CFLAGS = \
3118 $(libsystemd_internal_la_CFLAGS) \
3119 $(libsystemd_journal_internal_la_CFLAGS)
3121 libsystemd_la_LDFLAGS = \
3123 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3124 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3126 libsystemd_la_LIBADD = \
3127 $(libsystemd_internal_la_LIBADD) \
3128 $(libsystemd_journal_internal_la_LIBADD)
3130 libsystemd-install-hook:
3131 libname=libsystemd.so && $(move-to-rootlibdir)
3133 libsystemd-uninstall-hook:
3134 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3136 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3137 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3139 pkgconfiglib_DATA += \
3140 src/libsystemd/libsystemd.pc
3142 pkginclude_HEADERS += \
3143 src/systemd/sd-bus.h \
3144 src/systemd/sd-bus-protocol.h \
3145 src/systemd/sd-bus-vtable.h \
3146 src/systemd/sd-event.h \
3147 src/systemd/sd-login.h \
3148 src/systemd/sd-id128.h \
3149 src/systemd/sd-daemon.h
3151 lib_LTLIBRARIES += \
3156 test-bus-signature \
3157 test-bus-benchmark \
3164 test-bus-kernel-bloom \
3165 test-bus-zero-copy \
3166 test-bus-introspect \
3173 test-local-addresses \
3179 test_bus_marshal_SOURCES = \
3180 src/libsystemd/sd-bus/test-bus-marshal.c
3182 test_bus_marshal_LDADD = \
3187 test_bus_marshal_CFLAGS = \
3192 test_bus_signature_SOURCES = \
3193 src/libsystemd/sd-bus/test-bus-signature.c
3195 test_bus_signature_LDADD = \
3198 test_bus_chat_SOURCES = \
3199 src/libsystemd/sd-bus/test-bus-chat.c
3201 test_bus_chat_LDADD = \
3204 test_bus_cleanup_SOURCES = \
3205 src/libsystemd/sd-bus/test-bus-cleanup.c
3207 test_bus_cleanup_CFLAGS = \
3211 test_bus_cleanup_LDADD = \
3214 test_bus_server_SOURCES = \
3215 src/libsystemd/sd-bus/test-bus-server.c
3217 test_bus_server_LDADD = \
3220 test_bus_objects_SOURCES = \
3221 src/libsystemd/sd-bus/test-bus-objects.c
3223 test_bus_objects_LDADD = \
3226 test_bus_error_SOURCES = \
3227 src/libsystemd/sd-bus/test-bus-error.c
3229 test_bus_error_LDADD = \
3232 test_bus_gvariant_SOURCES = \
3233 src/libsystemd/sd-bus/test-bus-gvariant.c
3235 test_bus_gvariant_LDADD = \
3239 test_bus_gvariant_CFLAGS = \
3243 test_bus_creds_SOURCES = \
3244 src/libsystemd/sd-bus/test-bus-creds.c
3246 test_bus_creds_LDADD = \
3249 test_bus_match_SOURCES = \
3250 src/libsystemd/sd-bus/test-bus-match.c
3252 test_bus_match_LDADD = \
3255 test_bus_proxy_SOURCES = \
3256 src/libsystemd/sd-bus/test-bus-proxy.c
3258 test_bus_proxy_LDADD = \
3261 test_bus_kernel_SOURCES = \
3262 src/libsystemd/sd-bus/test-bus-kernel.c
3264 test_bus_kernel_LDADD = \
3267 test_bus_kernel_bloom_SOURCES = \
3268 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3270 test_bus_kernel_bloom_LDADD = \
3273 test_bus_benchmark_SOURCES = \
3274 src/libsystemd/sd-bus/test-bus-benchmark.c
3276 test_bus_benchmark_LDADD = \
3279 test_bus_zero_copy_SOURCES = \
3280 src/libsystemd/sd-bus/test-bus-zero-copy.c
3282 test_bus_zero_copy_LDADD = \
3285 test_bus_introspect_SOURCES = \
3286 src/libsystemd/sd-bus/test-bus-introspect.c
3288 test_bus_introspect_LDADD = \
3291 test_event_SOURCES = \
3292 src/libsystemd/sd-event/test-event.c
3294 test_event_LDADD = \
3297 test_netlink_SOURCES = \
3298 src/libsystemd/sd-netlink/test-netlink.c
3300 test_netlink_LDADD = \
3303 test_local_addresses_SOURCES = \
3304 src/libsystemd/sd-netlink/test-local-addresses.c
3306 test_local_addresses_LDADD = \
3309 test_resolve_SOURCES = \
3310 src/libsystemd/sd-resolve/test-resolve.c
3312 test_resolve_LDADD = \
3316 src/libsystemd/sd-bus/busctl.c \
3317 src/libsystemd/sd-bus/busctl-introspect.c \
3318 src/libsystemd/sd-bus/busctl-introspect.h
3323 # ------------------------------------------------------------------------------
3324 noinst_LTLIBRARIES += \
3325 libsystemd-network.la
3327 libsystemd_network_la_CFLAGS = \
3331 libsystemd_network_la_SOURCES = \
3332 src/systemd/sd-dhcp-client.h \
3333 src/systemd/sd-dhcp-server.h \
3334 src/systemd/sd-dhcp-lease.h \
3335 src/systemd/sd-ipv4ll.h \
3336 src/systemd/sd-ipv4acd.h \
3337 src/systemd/sd-ndisc.h \
3338 src/systemd/sd-dhcp6-client.h \
3339 src/systemd/sd-dhcp6-lease.h \
3340 src/systemd/sd-lldp.h \
3341 src/libsystemd-network/sd-dhcp-client.c \
3342 src/libsystemd-network/sd-dhcp-server.c \
3343 src/libsystemd-network/dhcp-network.c \
3344 src/libsystemd-network/dhcp-option.c \
3345 src/libsystemd-network/dhcp-packet.c \
3346 src/libsystemd-network/dhcp-internal.h \
3347 src/libsystemd-network/dhcp-server-internal.h \
3348 src/libsystemd-network/dhcp-protocol.h \
3349 src/libsystemd-network/dhcp-lease-internal.h \
3350 src/libsystemd-network/sd-dhcp-lease.c \
3351 src/libsystemd-network/sd-ipv4ll.c \
3352 src/libsystemd-network/sd-ipv4acd.c \
3353 src/libsystemd-network/arp-util.h \
3354 src/libsystemd-network/arp-util.c \
3355 src/libsystemd-network/network-internal.c \
3356 src/libsystemd-network/network-internal.h \
3357 src/libsystemd-network/sd-ndisc.c \
3358 src/libsystemd-network/icmp6-util.h \
3359 src/libsystemd-network/icmp6-util.c \
3360 src/libsystemd-network/sd-dhcp6-client.c \
3361 src/libsystemd-network/dhcp6-internal.h \
3362 src/libsystemd-network/dhcp6-protocol.h \
3363 src/libsystemd-network/dhcp6-network.c \
3364 src/libsystemd-network/dhcp6-option.c \
3365 src/libsystemd-network/dhcp6-lease-internal.h \
3366 src/libsystemd-network/sd-dhcp6-lease.c \
3367 src/libsystemd-network/dhcp-identifier.h \
3368 src/libsystemd-network/dhcp-identifier.c \
3369 src/libsystemd-network/lldp.h \
3370 src/libsystemd-network/lldp-tlv.h \
3371 src/libsystemd-network/lldp-tlv.c \
3372 src/libsystemd-network/lldp-network.h \
3373 src/libsystemd-network/lldp-network.c \
3374 src/libsystemd-network/lldp-port.h \
3375 src/libsystemd-network/lldp-port.c \
3376 src/libsystemd-network/lldp-internal.h \
3377 src/libsystemd-network/lldp-internal.c \
3378 src/libsystemd-network/sd-lldp.c
3380 libsystemd_network_la_LIBADD = \
3383 test_dhcp_option_SOURCES = \
3384 src/libsystemd-network/dhcp-protocol.h \
3385 src/libsystemd-network/dhcp-internal.h \
3386 src/libsystemd-network/test-dhcp-option.c
3388 test_dhcp_option_LDADD = \
3389 libsystemd-network.la \
3392 test_dhcp_client_SOURCES = \
3393 src/systemd/sd-dhcp-client.h \
3394 src/libsystemd-network/dhcp-protocol.h \
3395 src/libsystemd-network/dhcp-internal.h \
3396 src/libsystemd-network/test-dhcp-client.c
3398 test_dhcp_client_LDADD = \
3399 libsystemd-network.la \
3402 test_dhcp_server_SOURCES = \
3403 src/libsystemd-network/test-dhcp-server.c
3405 test_dhcp_server_LDADD = \
3406 libsystemd-network.la \
3409 test_ipv4ll_SOURCES = \
3410 src/systemd/sd-ipv4ll.h \
3411 src/libsystemd-network/arp-util.h \
3412 src/libsystemd-network/test-ipv4ll.c
3414 test_ipv4ll_LDADD = \
3415 libsystemd-network.la \
3418 test_ipv4ll_manual_SOURCES = \
3419 src/systemd/sd-ipv4ll.h \
3420 src/libsystemd-network/test-ipv4ll-manual.c
3422 test_ipv4ll_manual_LDADD = \
3423 libsystemd-network.la \
3426 test_acd_SOURCES = \
3427 src/systemd/sd-ipv4acd.h \
3428 src/libsystemd-network/test-acd.c
3431 libsystemd-network.la \
3434 test_ndisc_rs_SOURCES = \
3435 src/systemd/sd-dhcp6-client.h \
3436 src/systemd/sd-ndisc.h \
3437 src/libsystemd-network/icmp6-util.h \
3438 src/libsystemd-network/test-ndisc-rs.c \
3439 src/libsystemd-network/dhcp-identifier.h \
3440 src/libsystemd-network/dhcp-identifier.c
3442 test_ndisc_rs_LDADD = \
3443 libsystemd-network.la \
3447 test_dhcp6_client_SOURCES = \
3448 src/systemd/sd-dhcp6-client.h \
3449 src/libsystemd-network/dhcp6-internal.h \
3450 src/libsystemd-network/test-dhcp6-client.c \
3451 src/libsystemd-network/dhcp-identifier.h \
3452 src/libsystemd-network/dhcp-identifier.c
3454 test_dhcp6_client_LDADD = \
3455 libsystemd-network.la \
3459 test_lldp_SOURCES = \
3460 src/libsystemd-network/lldp.h \
3461 src/libsystemd-network/lldp-tlv.h \
3462 src/libsystemd-network/lldp-tlv.c \
3463 src/libsystemd-network/test-lldp.c
3466 libsystemd-network.la \
3478 # ------------------------------------------------------------------------------
3479 include_HEADERS += \
3480 src/libudev/libudev.h
3482 lib_LTLIBRARIES += \
3485 libudev_la_SOURCES =\
3486 src/libudev/libudev.sym \
3487 src/libudev/libudev-private.h \
3488 src/libudev/libudev-device-internal.h \
3489 src/libudev/libudev.c \
3490 src/libudev/libudev-list.c \
3491 src/libudev/libudev-util.c \
3492 src/libudev/libudev-device.c \
3493 src/libudev/libudev-device-private.c \
3494 src/libudev/libudev-enumerate.c \
3495 src/libudev/libudev-monitor.c \
3496 src/libudev/libudev-queue.c \
3497 src/libudev/libudev-hwdb.c
3499 libudev_la_LDFLAGS = \
3501 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3502 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3504 libudev_la_LIBADD = \
3505 libsystemd-internal.la
3507 pkgconfiglib_DATA += \
3508 src/libudev/libudev.pc
3511 src/libudev/libudev.pc.in
3513 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3514 libudev-install-hook:
3515 libname=libudev.so && $(move-to-rootlibdir)
3517 libudev-uninstall-hook:
3518 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3520 INSTALL_EXEC_HOOKS += libudev-install-hook
3521 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3523 # ------------------------------------------------------------------------------
3524 noinst_LTLIBRARIES += \
3527 libudev_internal_la_SOURCES =\
3528 $(libudev_la_SOURCES)
3530 # ------------------------------------------------------------------------------
3532 $(sysconfdir)/udev/rules.d
3534 dist_network_DATA = \
3535 network/99-default.link \
3536 network/80-container-host0.network \
3537 network/80-container-ve.network
3539 dist_udevrules_DATA += \
3540 rules/50-udev-default.rules \
3541 rules/60-block.rules \
3542 rules/60-drm.rules \
3543 rules/60-evdev.rules \
3544 rules/60-persistent-storage-tape.rules \
3545 rules/60-persistent-input.rules \
3546 rules/60-persistent-alsa.rules \
3547 rules/60-persistent-storage.rules \
3548 rules/60-serial.rules \
3549 rules/64-btrfs.rules \
3550 rules/70-mouse.rules \
3551 rules/75-net-description.rules \
3552 rules/78-sound-card.rules \
3553 rules/80-net-setup-link.rules
3555 nodist_udevrules_DATA += \
3556 rules/99-systemd.rules
3558 udevconfdir = $(sysconfdir)/udev
3559 dist_udevconf_DATA = \
3562 pkgconfigdata_DATA += \
3566 rules/99-systemd.rules.in \
3570 units/systemd-udevd.service.in \
3571 units/systemd-udev-trigger.service.in \
3572 units/systemd-udev-settle.service.in
3574 SOCKETS_TARGET_WANTS += \
3575 systemd-udevd-control.socket \
3576 systemd-udevd-kernel.socket
3578 SYSINIT_TARGET_WANTS += \
3579 systemd-udevd.service \
3580 systemd-udev-trigger.service
3582 rootbin_PROGRAMS += \
3585 rootlibexec_PROGRAMS += \
3588 noinst_LTLIBRARIES += \
3591 src/udev/keyboard-keys-list.txt:
3592 $(AM_V_at)$(MKDIR_P) $(dir $@)
3593 $(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 } }' > $@
3595 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3596 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3598 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3599 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3601 gperf_txt_sources += \
3602 src/udev/keyboard-keys-list.txt
3604 libudev_core_la_SOURCES = \
3606 src/udev/udev-event.c \
3607 src/udev/udev-watch.c \
3608 src/udev/udev-node.c \
3609 src/udev/udev-rules.c \
3610 src/udev/udev-ctrl.c \
3611 src/udev/udev-builtin.c \
3612 src/udev/udev-builtin-btrfs.c \
3613 src/udev/udev-builtin-hwdb.c \
3614 src/udev/udev-builtin-input_id.c \
3615 src/udev/udev-builtin-keyboard.c \
3616 src/udev/udev-builtin-net_id.c \
3617 src/udev/udev-builtin-net_setup_link.c \
3618 src/udev/udev-builtin-path_id.c \
3619 src/udev/udev-builtin-usb_id.c \
3620 src/udev/net/link-config.h \
3621 src/udev/net/link-config.c \
3622 src/udev/net/ethtool-util.h \
3623 src/udev/net/ethtool-util.c
3625 nodist_libudev_core_la_SOURCES = \
3626 src/udev/keyboard-keys-from-name.h \
3627 src/udev/net/link-config-gperf.c
3629 gperf_gperf_sources += \
3630 src/udev/net/link-config-gperf.gperf
3632 libudev_core_la_CFLAGS = \
3637 libudev_core_la_LIBADD = \
3638 libsystemd-network.la \
3644 libudev_core_la_SOURCES += \
3645 src/udev/udev-builtin-kmod.c
3647 dist_udevrules_DATA += \
3648 rules/80-drivers.rules
3652 libudev_core_la_SOURCES += \
3653 src/udev/udev-builtin-blkid.c
3657 libudev_core_la_SOURCES += \
3658 src/udev/udev-builtin-uaccess.c \
3659 src/login/logind-acl.c \
3660 src/libsystemd/sd-login/sd-login.c \
3661 src/systemd/sd-login.h
3664 systemd_udevd_SOURCES = \
3667 systemd_udevd_LDADD = \
3671 src/udev/udevadm.c \
3672 src/udev/udevadm-info.c \
3673 src/udev/udevadm-control.c \
3674 src/udev/udevadm-monitor.c \
3675 src/udev/udevadm-hwdb.c \
3676 src/udev/udevadm-settle.c \
3677 src/udev/udevadm-trigger.c \
3678 src/udev/udevadm-test.c \
3679 src/udev/udevadm-test-builtin.c \
3680 src/udev/udevadm-util.c \
3681 src/udev/udevadm-util.h
3686 # ------------------------------------------------------------------------------
3689 $(sysconfdir)/udev/hwdb.d
3691 systemd_hwdb_SOURCES = \
3692 src/libsystemd/sd-hwdb/hwdb-internal.h \
3695 systemd_hwdb_LDADD = \
3698 rootbin_PROGRAMS += \
3701 dist_udevhwdb_DATA = \
3702 hwdb/20-pci-vendor-model.hwdb \
3703 hwdb/20-pci-classes.hwdb \
3704 hwdb/20-usb-vendor-model.hwdb \
3705 hwdb/20-usb-classes.hwdb \
3706 hwdb/20-sdio-vendor-model.hwdb \
3707 hwdb/20-sdio-classes.hwdb \
3708 hwdb/20-bluetooth-vendor-product.hwdb \
3709 hwdb/20-acpi-vendor.hwdb \
3711 hwdb/20-net-ifname.hwdb \
3712 hwdb/60-evdev.hwdb \
3713 hwdb/60-keyboard.hwdb \
3714 hwdb/70-mouse.hwdb \
3715 hwdb/70-pointingstick.hwdb
3717 SYSINIT_TARGET_WANTS += \
3718 systemd-hwdb-update.service
3720 # Update hwdb on installation. Do not bother if installing
3721 # in DESTDIR, since this is likely for packaging purposes.
3723 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3725 INSTALL_DATA_HOOKS += \
3729 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3733 units/systemd-hwdb-update.service.in \
3734 hwdb/ids-update.pl \
3737 # ------------------------------------------------------------------------------
3744 test/rule-syntax-check.py
3748 test/sysv-generator-test.py
3757 test_libudev_SOURCES = \
3758 src/test/test-libudev.c
3760 test_libudev_LDADD = \
3763 test_udev_SOURCES = \
3764 src/test/test-udev.c
3776 # packed sysfs test tree
3778 $(AM_V_at)$(MKDIR_P) $(dir $@)
3779 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3783 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3788 test/rule-syntax-check.py \
3789 test/sysv-generator-test.py \
3792 # ------------------------------------------------------------------------------
3794 src/udev/ata_id/ata_id.c
3799 udevlibexec_PROGRAMS += \
3802 # ------------------------------------------------------------------------------
3803 cdrom_id_SOURCES = \
3804 src/udev/cdrom_id/cdrom_id.c
3809 udevlibexec_PROGRAMS += \
3812 dist_udevrules_DATA += \
3813 rules/60-cdrom_id.rules
3815 # ------------------------------------------------------------------------------
3817 src/udev/collect/collect.c
3822 udevlibexec_PROGRAMS += \
3825 # ------------------------------------------------------------------------------
3827 src/udev/scsi_id/scsi_id.c \
3828 src/udev/scsi_id/scsi_serial.c \
3829 src/udev/scsi_id/scsi.h \
3830 src/udev/scsi_id/scsi_id.h
3835 udevlibexec_PROGRAMS += \
3839 src/udev/scsi_id/README
3841 # ------------------------------------------------------------------------------
3843 src/udev/v4l_id/v4l_id.c
3848 udevlibexec_PROGRAMS += \
3851 dist_udevrules_DATA += \
3852 rules/60-persistent-v4l.rules
3854 # ------------------------------------------------------------------------------
3855 mtd_probe_SOURCES = \
3856 src/udev/mtd_probe/mtd_probe.c \
3857 src/udev/mtd_probe/mtd_probe.h \
3858 src/udev/mtd_probe/probe_smartmedia.c
3860 dist_udevrules_DATA += \
3861 rules/75-probe_mtd.rules
3863 udevlibexec_PROGRAMS += \
3866 # ------------------------------------------------------------------------------
3867 test_id128_SOURCES = \
3868 src/test/test-id128.c
3870 test_id128_LDADD = \
3876 # ------------------------------------------------------------------------------
3879 systemd-socket-activate
3881 systemd_socket_activate_SOURCES = \
3882 src/activate/activate.c
3884 systemd_socket_activate_LDADD = \
3887 # ------------------------------------------------------------------------------
3888 systemd_journald_SOURCES = \
3889 src/journal/journald.c \
3890 src/journal/journald-server.h
3892 systemd_journald_LDADD = \
3893 libjournal-core.la \
3896 systemd_cat_SOURCES = \
3899 systemd_cat_LDADD = \
3903 rootlibexec_PROGRAMS += \
3904 systemd-journal-remote
3906 systemd_journal_remote_SOURCES = \
3907 src/journal-remote/journal-remote-parse.h \
3908 src/journal-remote/journal-remote-parse.c \
3909 src/journal-remote/journal-remote-write.h \
3910 src/journal-remote/journal-remote-write.c \
3911 src/journal-remote/journal-remote.h \
3912 src/journal-remote/journal-remote.c
3914 systemd_journal_remote_LDADD = \
3917 systemd_journal_remote_SOURCES += \
3918 src/journal-remote/microhttpd-util.h \
3919 src/journal-remote/microhttpd-util.c
3921 systemd_journal_remote_CFLAGS = \
3923 $(MICROHTTPD_CFLAGS)
3925 systemd_journal_remote_LDADD += \
3929 dist_tmpfiles_DATA += \
3930 tmpfiles.d/systemd-remote.conf
3934 systemd_journal_remote_LDADD += \
3938 # systemd-journal-remote make sense mostly with full crypto stack
3939 dist_systemunit_DATA += \
3940 units/systemd-journal-remote.socket
3942 nodist_systemunit_DATA += \
3943 units/systemd-journal-remote.service
3945 journal-remote-install-hook: journal-install-hook
3946 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3947 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3948 -chmod 755 $(DESTDIR)/var/log/journal/remote
3950 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3952 nodist_pkgsysconf_DATA += \
3953 src/journal-remote/journal-remote.conf
3956 units/systemd-journal-remote.service.in \
3957 src/journal-remote/journal-remote.conf.in \
3958 src/journal-remote/log-generator.py
3962 rootlibexec_PROGRAMS += \
3963 systemd-journal-upload
3965 systemd_journal_upload_SOURCES = \
3966 src/journal-remote/journal-upload.h \
3967 src/journal-remote/journal-upload.c \
3968 src/journal-remote/journal-upload-journal.c
3970 systemd_journal_upload_CFLAGS = \
3974 systemd_journal_upload_LDADD = \
3978 nodist_systemunit_DATA += \
3979 units/systemd-journal-upload.service
3981 nodist_pkgsysconf_DATA += \
3982 src/journal-remote/journal-upload.conf
3986 units/systemd-journal-upload.service.in \
3987 src/journal-remote/journal-upload.conf.in
3989 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3990 journalctl_CFLAGS = \
3993 journalctl_SOURCES = \
3994 src/journal/journalctl.c
3996 journalctl_LDADD = \
4001 journalctl_SOURCES += \
4002 src/journal/journal-qrcode.c \
4003 src/journal/journal-qrcode.h
4005 journalctl_CFLAGS += \
4008 journalctl_LDADD += \
4012 test_journal_SOURCES = \
4013 src/journal/test-journal.c
4015 test_journal_LDADD = \
4018 test_journal_send_SOURCES = \
4019 src/journal/test-journal-send.c
4021 test_journal_send_LDADD = \
4024 test_journal_syslog_SOURCES = \
4025 src/journal/test-journal-syslog.c
4027 test_journal_syslog_LDADD = \
4030 test_journal_match_SOURCES = \
4031 src/journal/test-journal-match.c
4033 test_journal_match_LDADD = \
4036 test_journal_enum_SOURCES = \
4037 src/journal/test-journal-enum.c
4039 test_journal_enum_LDADD = \
4042 test_journal_stream_SOURCES = \
4043 src/journal/test-journal-stream.c
4045 test_journal_stream_LDADD = \
4048 test_journal_flush_SOURCES = \
4049 src/journal/test-journal-flush.c
4051 test_journal_flush_LDADD = \
4054 test_journal_init_SOURCES = \
4055 src/journal/test-journal-init.c
4057 test_journal_init_LDADD = \
4060 test_journal_verify_SOURCES = \
4061 src/journal/test-journal-verify.c
4063 test_journal_verify_LDADD = \
4066 test_journal_interleaving_SOURCES = \
4067 src/journal/test-journal-interleaving.c
4069 test_journal_interleaving_LDADD = \
4072 test_mmap_cache_SOURCES = \
4073 src/journal/test-mmap-cache.c
4075 test_mmap_cache_LDADD = \
4078 test_catalog_SOURCES = \
4079 src/journal/test-catalog.c
4081 test_catalog_CPPFLAGS = \
4083 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4085 test_catalog_LDADD = \
4088 test_compress_SOURCES = \
4089 src/journal/test-compress.c
4091 test_compress_LDADD = \
4094 test_compress_benchmark_SOURCES = \
4095 src/journal/test-compress-benchmark.c
4097 test_compress_benchmark_LDADD = \
4100 test_audit_type_SOURCES = \
4101 src/journal/test-audit-type.c
4103 test_audit_type_LDADD = \
4106 libjournal_core_la_SOURCES = \
4107 src/journal/journald-kmsg.c \
4108 src/journal/journald-kmsg.h \
4109 src/journal/journald-syslog.c \
4110 src/journal/journald-syslog.h \
4111 src/journal/journald-stream.c \
4112 src/journal/journald-stream.h \
4113 src/journal/journald-server.c \
4114 src/journal/journald-server.h \
4115 src/journal/journald-console.c \
4116 src/journal/journald-console.h \
4117 src/journal/journald-wall.c \
4118 src/journal/journald-wall.h \
4119 src/journal/journald-native.c \
4120 src/journal/journald-native.h \
4121 src/journal/journald-audit.c \
4122 src/journal/journald-audit.h \
4123 src/journal/journald-rate-limit.c \
4124 src/journal/journald-rate-limit.h \
4125 src/journal/journal-internal.h
4127 nodist_libjournal_core_la_SOURCES = \
4128 src/journal/journald-gperf.c
4130 libjournal_core_la_LIBADD = \
4133 noinst_LTLIBRARIES += \
4136 journal-install-hook:
4137 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4138 -chown 0:0 $(DESTDIR)/var/log/journal
4139 -chmod 755 $(DESTDIR)/var/log/journal
4140 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4141 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4143 journal-uninstall-hook:
4144 -rmdir $(DESTDIR)/var/log/journal/remote
4145 -rmdir $(DESTDIR)/var/log/journal/
4147 INSTALL_EXEC_HOOKS += journal-install-hook
4148 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4150 # ------------------------------------------------------------------------------
4151 # Update catalog on installation. Do not bother if installing
4152 # in DESTDIR, since this is likely for packaging purposes.
4153 catalog-update-hook:
4154 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4156 INSTALL_DATA_HOOKS += \
4159 catalog-remove-hook:
4160 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4162 UNINSTALL_DATA_HOOKS += \
4171 test-journal-syslog \
4172 test-journal-match \
4173 test-journal-stream \
4175 test-journal-verify \
4176 test-journal-interleaving \
4177 test-journal-flush \
4185 test-compress-benchmark
4188 pkginclude_HEADERS += \
4189 src/systemd/sd-journal.h \
4190 src/systemd/sd-messages.h \
4191 src/systemd/_sd-common.h
4193 libsystemd_journal_internal_la_SOURCES = \
4194 src/journal/sd-journal.c \
4195 src/systemd/sd-journal.h \
4196 src/systemd/_sd-common.h \
4197 src/journal/journal-file.c \
4198 src/journal/journal-file.h \
4199 src/journal/journal-vacuum.c \
4200 src/journal/journal-vacuum.h \
4201 src/journal/journal-verify.c \
4202 src/journal/journal-verify.h \
4203 src/journal/lookup3.c \
4204 src/journal/lookup3.h \
4205 src/journal/journal-send.c \
4206 src/journal/journal-def.h \
4207 src/journal/compress.h \
4208 src/journal/catalog.c \
4209 src/journal/catalog.h \
4210 src/journal/mmap-cache.c \
4211 src/journal/mmap-cache.h \
4212 src/journal/compress.c \
4213 src/journal/audit-type.h \
4214 src/journal/audit-type.c
4216 nodist_libsystemd_journal_internal_la_SOURCES = \
4217 src/journal/audit_type-to-name.h
4219 gperf_txt_sources += \
4220 src/journal/audit_type-list.txt
4222 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4223 libsystemd_journal_internal_la_CFLAGS = \
4226 libsystemd_journal_internal_la_LIBADD =
4229 libsystemd_journal_internal_la_CFLAGS += \
4232 libsystemd_journal_internal_la_LIBADD += \
4237 libsystemd_journal_internal_la_LIBADD += \
4242 libsystemd_journal_internal_la_SOURCES += \
4243 src/journal/journal-authenticate.c \
4244 src/journal/journal-authenticate.h \
4245 src/journal/fsprg.c \
4246 src/journal/fsprg.h \
4247 src/shared/gcrypt-util.c \
4248 src/shared/gcrypt-util.h
4250 libsystemd_journal_internal_la_LIBADD += \
4253 # fsprg.c is a drop-in file using void pointer arithmetic
4254 libsystemd_journal_internal_la_CFLAGS += \
4259 noinst_LTLIBRARIES += \
4260 libsystemd-journal-internal.la
4262 rootlibexec_PROGRAMS += \
4265 rootbin_PROGRAMS += \
4271 dist_systemunit_DATA += \
4272 units/systemd-journald.socket \
4273 units/systemd-journald-dev-log.socket \
4274 units/systemd-journald-audit.socket
4276 nodist_systemunit_DATA += \
4277 units/systemd-journald.service \
4278 units/systemd-journal-flush.service \
4279 units/systemd-journal-catalog-update.service
4281 dist_pkgsysconf_DATA += \
4282 src/journal/journald.conf
4284 dist_catalog_DATA = \
4285 catalog/systemd.be.catalog \
4286 catalog/systemd.be@latin.catalog \
4287 catalog/systemd.fr.catalog \
4288 catalog/systemd.it.catalog \
4289 catalog/systemd.pl.catalog \
4290 catalog/systemd.pt_BR.catalog \
4291 catalog/systemd.ru.catalog \
4292 catalog/systemd.zh_CN.catalog \
4293 catalog/systemd.zh_TW.catalog \
4294 catalog/systemd.catalog
4296 SOCKETS_TARGET_WANTS += \
4297 systemd-journald.socket \
4298 systemd-journald-dev-log.socket \
4299 systemd-journald-audit.socket
4301 SYSINIT_TARGET_WANTS += \
4302 systemd-journald.service \
4303 systemd-journal-flush.service \
4304 systemd-journal-catalog-update.service
4307 units/systemd-journald.service.in \
4308 units/systemd-journal-flush.service.in \
4309 units/systemd-journal-catalog-update.service.in
4311 gperf_gperf_sources += \
4312 src/journal/journald-gperf.gperf
4314 # ------------------------------------------------------------------------------
4316 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4318 rootlibexec_PROGRAMS += \
4319 systemd-journal-gatewayd
4321 systemd_journal_gatewayd_SOURCES = \
4322 src/journal-remote/journal-gatewayd.c \
4323 src/journal-remote/microhttpd-util.h \
4324 src/journal-remote/microhttpd-util.c
4326 systemd_journal_gatewayd_LDADD = \
4331 systemd_journal_gatewayd_LDADD += \
4335 systemd_journal_gatewayd_CFLAGS = \
4337 $(MICROHTTPD_CFLAGS)
4339 systemd_journal_gatewayd_CPPFLAGS = \
4341 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4343 dist_systemunit_DATA += \
4344 units/systemd-journal-gatewayd.socket
4346 nodist_systemunit_DATA += \
4347 units/systemd-journal-gatewayd.service
4349 dist_gatewayddocumentroot_DATA = \
4350 src/journal-remote/browse.html
4355 units/systemd-journal-gatewayd.service.in
4357 # ------------------------------------------------------------------------------
4359 systemd_socket_proxyd_SOURCES = \
4360 src/socket-proxy/socket-proxyd.c
4362 systemd_socket_proxyd_LDADD = \
4365 # ------------------------------------------------------------------------------
4367 systemd_coredump_SOURCES = \
4368 src/coredump/coredump.c \
4369 src/coredump/coredump-vacuum.c \
4370 src/coredump/coredump-vacuum.h
4372 systemd_coredump_LDADD = \
4376 systemd_coredump_SOURCES += \
4377 src/coredump/stacktrace.c \
4378 src/coredump/stacktrace.h
4380 systemd_coredump_LDADD += \
4384 nodist_systemunit_DATA += \
4385 units/systemd-coredump@.service
4387 dist_systemunit_DATA += \
4388 units/systemd-coredump.socket
4390 SOCKETS_TARGET_WANTS += \
4391 systemd-coredump.socket
4393 rootlibexec_PROGRAMS += \
4396 dist_pkgsysconf_DATA += \
4397 src/coredump/coredump.conf
4399 coredumpctl_SOURCES = \
4400 src/coredump/coredumpctl.c
4402 coredumpctl_LDADD = \
4409 test-coredump-vacuum
4411 test_coredump_vacuum_SOURCES = \
4412 src/coredump/test-coredump-vacuum.c \
4413 src/coredump/coredump-vacuum.c \
4414 src/coredump/coredump-vacuum.h
4416 test_coredump_vacuum_LDADD = \
4419 dist_bashcompletion_data += \
4420 shell-completion/bash/coredumpctl
4422 dist_zshcompletion_data += \
4423 shell-completion/zsh/_coredumpctl
4425 nodist_sysctl_DATA = \
4426 sysctl.d/50-coredump.conf
4429 sysctl.d/50-coredump.conf
4433 sysctl.d/50-coredump.conf.in \
4434 units/systemd-coredump@.service.in
4436 # ------------------------------------------------------------------------------
4438 systemd_binfmt_SOURCES = \
4441 systemd_binfmt_LDADD = \
4444 rootlibexec_PROGRAMS += \
4447 dist_systemunit_DATA += \
4448 units/proc-sys-fs-binfmt_misc.automount \
4449 units/proc-sys-fs-binfmt_misc.mount
4451 nodist_systemunit_DATA += \
4452 units/systemd-binfmt.service
4455 $(prefix)/lib/binfmt.d \
4456 $(sysconfdir)/binfmt.d
4458 SYSINIT_TARGET_WANTS += \
4459 systemd-binfmt.service \
4460 proc-sys-fs-binfmt_misc.automount
4465 units/systemd-binfmt.service.in
4467 # ------------------------------------------------------------------------------
4469 systemd_vconsole_setup_SOURCES = \
4470 src/vconsole/vconsole-setup.c
4472 systemd_vconsole_setup_LDADD = \
4475 rootlibexec_PROGRAMS += \
4476 systemd-vconsole-setup
4478 nodist_udevrules_DATA += \
4479 src/vconsole/90-vconsole.rules
4481 nodist_systemunit_DATA += \
4482 units/systemd-vconsole-setup.service
4484 SYSINIT_TARGET_WANTS += \
4485 systemd-vconsole-setup.service
4489 src/vconsole/90-vconsole.rules.in \
4490 units/systemd-vconsole-setup.service.in
4492 # ------------------------------------------------------------------------------
4494 systemd_bootchart_SOURCES = \
4495 src/bootchart/bootchart.c \
4496 src/bootchart/bootchart.h \
4497 src/bootchart/store.c \
4498 src/bootchart/store.h \
4499 src/bootchart/svg.c \
4502 systemd_bootchart_LDADD = \
4505 rootlibexec_PROGRAMS += \
4508 dist_pkgsysconf_DATA += \
4509 src/bootchart/bootchart.conf
4511 nodist_systemunit_DATA += \
4512 units/systemd-bootchart.service
4516 units/systemd-bootchart.service.in
4518 # ------------------------------------------------------------------------------
4519 if ENABLE_QUOTACHECK
4520 rootlibexec_PROGRAMS += \
4523 nodist_systemunit_DATA += \
4524 units/systemd-quotacheck.service
4526 systemd_quotacheck_SOURCES = \
4527 src/quotacheck/quotacheck.c
4529 systemd_quotacheck_LDADD = \
4534 units/systemd-quotacheck.service.in
4536 nodist_systemunit_DATA += \
4537 units/quotaon.service
4539 # ------------------------------------------------------------------------------
4540 if ENABLE_RANDOMSEED
4541 rootlibexec_PROGRAMS += \
4544 nodist_systemunit_DATA += \
4545 units/systemd-random-seed.service
4547 systemd_random_seed_SOURCES = \
4548 src/random-seed/random-seed.c
4550 systemd_random_seed_LDADD = \
4553 SYSINIT_TARGET_WANTS += \
4554 systemd-random-seed.service
4559 units/systemd-random-seed.service.in
4561 # ------------------------------------------------------------------------------
4563 rootlibexec_PROGRAMS += \
4566 nodist_systemunit_DATA += \
4567 units/systemd-backlight@.service
4569 systemd_backlight_SOURCES = \
4570 src/backlight/backlight.c
4572 systemd_backlight_LDADD = \
4577 units/systemd-backlight@.service.in
4579 # ------------------------------------------------------------------------------
4581 rootlibexec_PROGRAMS += \
4584 nodist_systemunit_DATA += \
4585 units/systemd-rfkill.service
4587 dist_systemunit_DATA += \
4588 units/systemd-rfkill.socket
4590 systemd_rfkill_SOURCES = \
4593 systemd_rfkill_LDADD = \
4598 units/systemd-rfkill.service.in
4600 # ------------------------------------------------------------------------------
4601 if HAVE_LIBCRYPTSETUP
4602 rootlibexec_PROGRAMS += \
4605 systemgenerator_PROGRAMS += \
4606 systemd-cryptsetup-generator
4608 dist_systemunit_DATA += \
4609 units/cryptsetup.target \
4610 units/cryptsetup-pre.target
4612 systemd_cryptsetup_SOURCES = \
4613 src/cryptsetup/cryptsetup.c
4615 systemd_cryptsetup_CFLAGS = \
4617 $(LIBCRYPTSETUP_CFLAGS)
4619 systemd_cryptsetup_LDADD = \
4621 $(LIBCRYPTSETUP_LIBS)
4623 systemd_cryptsetup_generator_SOURCES = \
4624 src/cryptsetup/cryptsetup-generator.c
4626 systemd_cryptsetup_generator_LDADD = \
4629 SYSINIT_TARGET_WANTS += \
4634 # ------------------------------------------------------------------------------
4636 systemd_hostnamed_SOURCES = \
4637 src/hostname/hostnamed.c
4639 systemd_hostnamed_LDADD = \
4642 rootlibexec_PROGRAMS += \
4645 nodist_systemunit_DATA += \
4646 units/systemd-hostnamed.service
4648 dist_systemunit_DATA_busnames += \
4649 units/org.freedesktop.hostname1.busname
4651 dist_dbuspolicy_DATA += \
4652 src/hostname/org.freedesktop.hostname1.conf
4654 dist_dbussystemservice_DATA += \
4655 src/hostname/org.freedesktop.hostname1.service
4657 polkitpolicy_files += \
4658 src/hostname/org.freedesktop.hostname1.policy
4660 SYSTEM_UNIT_ALIASES += \
4661 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4663 BUSNAMES_TARGET_WANTS += \
4664 org.freedesktop.hostname1.busname
4666 hostnamectl_SOURCES = \
4667 src/hostname/hostnamectl.c
4669 hostnamectl_LDADD = \
4675 dist_bashcompletion_data += \
4676 shell-completion/bash/hostnamectl
4678 dist_zshcompletion_data += \
4679 shell-completion/zsh/_hostnamectl
4682 polkitpolicy_in_files += \
4683 src/hostname/org.freedesktop.hostname1.policy.in
4686 units/systemd-hostnamed.service.in
4688 # ------------------------------------------------------------------------------
4689 dist_systemunit_DATA_busnames += \
4690 units/org.freedesktop.systemd1.busname
4692 BUSNAMES_TARGET_WANTS += \
4693 org.freedesktop.systemd1.busname
4695 # ------------------------------------------------------------------------------
4697 systemd_localed_SOURCES = \
4698 src/locale/localed.c
4700 systemd_localed_LDADD = \
4704 systemd_localed_CFLAGS = \
4708 nodist_systemunit_DATA += \
4709 units/systemd-localed.service
4711 dist_systemunit_DATA_busnames += \
4712 units/org.freedesktop.locale1.busname
4714 rootlibexec_PROGRAMS += \
4717 dist_dbuspolicy_DATA += \
4718 src/locale/org.freedesktop.locale1.conf
4720 dist_dbussystemservice_DATA += \
4721 src/locale/org.freedesktop.locale1.service
4723 polkitpolicy_files += \
4724 src/locale/org.freedesktop.locale1.policy
4726 SYSTEM_UNIT_ALIASES += \
4727 systemd-localed.service dbus-org.freedesktop.locale1.service
4729 BUSNAMES_TARGET_WANTS += \
4730 org.freedesktop.locale1.busname
4732 dist_pkgdata_DATA = \
4733 src/locale/kbd-model-map \
4734 src/locale/language-fallback-map
4736 localectl_SOURCES = \
4737 src/locale/localectl.c
4745 dist_bashcompletion_data += \
4746 shell-completion/bash/localectl
4748 dist_zshcompletion_data += \
4749 shell-completion/zsh/_localectl
4752 .PHONY: update-kbd-model-map
4754 polkitpolicy_in_files += \
4755 src/locale/org.freedesktop.locale1.policy.in
4758 units/systemd-localed.service.in
4760 # ------------------------------------------------------------------------------
4762 systemd_timedated_SOURCES = \
4763 src/timedate/timedated.c
4765 systemd_timedated_LDADD = \
4768 rootlibexec_PROGRAMS += \
4771 dist_dbussystemservice_DATA += \
4772 src/timedate/org.freedesktop.timedate1.service
4774 dist_dbuspolicy_DATA += \
4775 src/timedate/org.freedesktop.timedate1.conf
4777 nodist_systemunit_DATA += \
4778 units/systemd-timedated.service
4780 dist_systemunit_DATA_busnames += \
4781 units/org.freedesktop.timedate1.busname
4783 polkitpolicy_files += \
4784 src/timedate/org.freedesktop.timedate1.policy
4786 SYSTEM_UNIT_ALIASES += \
4787 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4789 BUSNAMES_TARGET_WANTS += \
4790 org.freedesktop.timedate1.busname
4792 timedatectl_SOURCES = \
4793 src/timedate/timedatectl.c
4795 timedatectl_LDADD = \
4801 dist_bashcompletion_data += \
4802 shell-completion/bash/timedatectl
4804 dist_zshcompletion_data += \
4805 shell-completion/zsh/_timedatectl
4808 polkitpolicy_in_files += \
4809 src/timedate/org.freedesktop.timedate1.policy.in
4812 units/systemd-timedated.service.in
4814 # ------------------------------------------------------------------------------
4816 systemd_timesyncd_SOURCES = \
4817 src/timesync/timesyncd.c \
4818 src/timesync/timesyncd-manager.c \
4819 src/timesync/timesyncd-manager.h \
4820 src/timesync/timesyncd-conf.c \
4821 src/timesync/timesyncd-conf.h \
4822 src/timesync/timesyncd-server.c \
4823 src/timesync/timesyncd-server.h
4825 nodist_systemd_timesyncd_SOURCES = \
4826 src/timesync/timesyncd-gperf.c
4828 systemd_timesyncd_LDADD = \
4829 libsystemd-network.la \
4832 rootlibexec_PROGRAMS += \
4835 nodist_systemunit_DATA += \
4836 units/systemd-timesyncd.service
4838 GENERAL_ALIASES += \
4839 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4841 nodist_pkgsysconf_DATA += \
4842 src/timesync/timesyncd.conf
4846 gperf_gperf_sources += \
4847 src/timesync/timesyncd-gperf.gperf
4850 units/systemd-timesyncd.service.in \
4851 src/timesync/timesyncd.conf.in
4853 # ------------------------------------------------------------------------------
4855 libnss_myhostname_la_SOURCES = \
4856 src/nss-myhostname/nss-myhostname.sym \
4857 src/nss-myhostname/nss-myhostname.c
4859 libnss_myhostname_la_LDFLAGS = \
4866 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4868 libnss_myhostname_la_LIBADD = \
4869 libsystemd-internal.la
4871 lib_LTLIBRARIES += \
4872 libnss_myhostname.la
4875 # ------------------------------------------------------------------------------
4877 systemd_machined_SOURCES = \
4878 src/machine/machined.c \
4879 src/machine/machined.h
4881 systemd_machined_LDADD = \
4884 rootlibexec_PROGRAMS += \
4887 libmachine_core_la_SOURCES = \
4888 src/machine/machine.c \
4889 src/machine/machine.h \
4890 src/machine/machined-dbus.c \
4891 src/machine/machine-dbus.c \
4892 src/machine/machine-dbus.h \
4893 src/machine/image-dbus.c \
4894 src/machine/image-dbus.h
4896 libmachine_core_la_LIBADD = \
4899 noinst_LTLIBRARIES += \
4902 machinectl_SOURCES = \
4903 src/machine/machinectl.c
4905 machinectl_LDADD = \
4908 rootbin_PROGRAMS += \
4911 test_machine_tables_SOURCES = \
4912 src/machine/test-machine-tables.c
4914 test_machine_tables_LDADD = \
4920 nodist_systemunit_DATA += \
4921 units/systemd-machined.service
4923 dist_systemunit_DATA += \
4926 dist_systemunit_DATA_busnames += \
4927 units/org.freedesktop.machine1.busname
4929 dist_dbussystemservice_DATA += \
4930 src/machine/org.freedesktop.machine1.service
4932 dist_dbuspolicy_DATA += \
4933 src/machine/org.freedesktop.machine1.conf
4935 polkitpolicy_files += \
4936 src/machine/org.freedesktop.machine1.policy
4938 dist_bashcompletion_data += \
4939 shell-completion/bash/machinectl
4941 dist_zshcompletion_data += \
4942 shell-completion/zsh/_machinectl \
4943 shell-completion/zsh/_sd_machines
4945 SYSTEM_UNIT_ALIASES += \
4946 systemd-machined.service dbus-org.freedesktop.machine1.service
4948 BUSNAMES_TARGET_WANTS += \
4949 org.freedesktop.machine1.busname
4951 libnss_mymachines_la_SOURCES = \
4952 src/nss-mymachines/nss-mymachines.sym \
4953 src/nss-mymachines/nss-mymachines.c
4955 libnss_mymachines_la_LDFLAGS = \
4962 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4964 libnss_mymachines_la_LIBADD = \
4965 libsystemd-internal.la
4967 lib_LTLIBRARIES += \
4968 libnss_mymachines.la
4972 polkitpolicy_in_files += \
4973 src/machine/org.freedesktop.machine1.policy.in
4976 units/systemd-machined.service.in
4978 # ------------------------------------------------------------------------------
4987 rootlibexec_PROGRAMS += \
4993 systemd_importd_SOURCES = \
4994 src/import/importd.c
4996 systemd_importd_CFLAGS = \
4998 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
4999 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5000 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5002 systemd_importd_LDADD = \
5005 systemd_pull_SOURCES = \
5007 src/import/pull-raw.c \
5008 src/import/pull-raw.h \
5009 src/import/pull-tar.c \
5010 src/import/pull-tar.h \
5011 src/import/pull-job.c \
5012 src/import/pull-job.h \
5013 src/import/pull-common.c \
5014 src/import/pull-common.h \
5015 src/import/import-common.c \
5016 src/import/import-common.h \
5017 src/import/import-compress.c \
5018 src/import/import-compress.h \
5019 src/import/curl-util.c \
5020 src/import/curl-util.h \
5021 src/import/qcow2-util.c \
5022 src/import/qcow2-util.h
5024 systemd_pull_CFLAGS = \
5030 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5031 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5033 systemd_pull_LDADD = \
5041 systemd_import_SOURCES = \
5042 src/import/import.c \
5043 src/import/import-raw.c \
5044 src/import/import-raw.h \
5045 src/import/import-tar.c \
5046 src/import/import-tar.h \
5047 src/import/import-common.c \
5048 src/import/import-common.h \
5049 src/import/import-compress.c \
5050 src/import/import-compress.h \
5051 src/import/qcow2-util.c \
5052 src/import/qcow2-util.h
5054 systemd_import_CFLAGS = \
5059 systemd_import_LDADD = \
5065 systemd_export_SOURCES = \
5066 src/import/export.c \
5067 src/import/export-tar.c \
5068 src/import/export-tar.h \
5069 src/import/export-raw.c \
5070 src/import/export-raw.h \
5071 src/import/import-common.c \
5072 src/import/import-common.h \
5073 src/import/import-compress.c \
5074 src/import/import-compress.h
5076 systemd_export_CFLAGS = \
5081 systemd_export_LDADD = \
5087 dist_rootlibexec_DATA = \
5088 src/import/import-pubring.gpg
5090 nodist_systemunit_DATA += \
5091 units/systemd-importd.service
5093 dist_systemunit_DATA_busnames += \
5094 units/org.freedesktop.import1.busname
5096 BUSNAMES_TARGET_WANTS += \
5097 org.freedesktop.import1.busname
5099 SYSTEM_UNIT_ALIASES += \
5100 systemd-importd.service dbus-org.freedesktop.import1.service
5102 dist_dbussystemservice_DATA += \
5103 src/import/org.freedesktop.import1.service
5105 dist_dbuspolicy_DATA += \
5106 src/import/org.freedesktop.import1.conf
5108 polkitpolicy_files += \
5109 src/import/org.freedesktop.import1.policy
5114 test_qcow2_SOURCES = \
5115 src/import/test-qcow2.c \
5116 src/import/qcow2-util.c \
5117 src/import/qcow2-util.h
5119 test_qcow2_CFLAGS = \
5123 test_qcow2_LDADD = \
5135 polkitpolicy_in_files += \
5136 src/import/org.freedesktop.import1.policy.in
5139 units/systemd-importd.service.in
5142 # ------------------------------------------------------------------------------
5145 basic_dns_sources = \
5146 src/resolve/resolved-dns-dnssec.c \
5147 src/resolve/resolved-dns-dnssec.h \
5148 src/resolve/resolved-dns-packet.c \
5149 src/resolve/resolved-dns-packet.h \
5150 src/resolve/resolved-dns-rr.c \
5151 src/resolve/resolved-dns-rr.h \
5152 src/resolve/resolved-dns-answer.c \
5153 src/resolve/resolved-dns-answer.h \
5154 src/resolve/resolved-dns-question.c \
5155 src/resolve/resolved-dns-question.h \
5156 src/resolve/dns-type.c \
5157 src/resolve/dns-type.h
5159 systemd_resolved_SOURCES = \
5160 src/resolve/resolved.c \
5161 src/resolve/resolved-manager.c \
5162 src/resolve/resolved-manager.h \
5163 src/resolve/resolved-conf.c \
5164 src/resolve/resolved-conf.h \
5165 src/resolve/resolved-resolv-conf.c \
5166 src/resolve/resolved-resolv-conf.h \
5167 src/resolve/resolved-bus.c \
5168 src/resolve/resolved-bus.h \
5169 src/resolve/resolved-link.h \
5170 src/resolve/resolved-link.c \
5171 src/resolve/resolved-link-bus.c \
5172 src/resolve/resolved-link-bus.h \
5173 src/resolve/resolved-llmnr.h \
5174 src/resolve/resolved-llmnr.c \
5175 src/resolve/resolved-mdns.h \
5176 src/resolve/resolved-mdns.c \
5177 src/resolve/resolved-def.h \
5178 $(basic_dns_sources) \
5179 src/resolve/resolved-dns-query.h \
5180 src/resolve/resolved-dns-query.c \
5181 src/resolve/resolved-dns-synthesize.h \
5182 src/resolve/resolved-dns-synthesize.c \
5183 src/resolve/resolved-dns-transaction.h \
5184 src/resolve/resolved-dns-transaction.c \
5185 src/resolve/resolved-dns-scope.h \
5186 src/resolve/resolved-dns-scope.c \
5187 src/resolve/resolved-dns-server.h \
5188 src/resolve/resolved-dns-server.c \
5189 src/resolve/resolved-dns-search-domain.h \
5190 src/resolve/resolved-dns-search-domain.c \
5191 src/resolve/resolved-dns-cache.h \
5192 src/resolve/resolved-dns-cache.c \
5193 src/resolve/resolved-dns-zone.h \
5194 src/resolve/resolved-dns-zone.c \
5195 src/resolve/resolved-dns-stream.h \
5196 src/resolve/resolved-dns-stream.c \
5197 src/resolve/resolved-dns-trust-anchor.h \
5198 src/resolve/resolved-dns-trust-anchor.c \
5199 src/resolve/resolved-etc-hosts.h \
5200 src/resolve/resolved-etc-hosts.c \
5201 src/shared/gcrypt-util.c \
5202 src/shared/gcrypt-util.h
5204 nodist_systemd_resolved_SOURCES = \
5205 src/resolve/dns_type-from-name.h \
5206 src/resolve/dns_type-to-name.h \
5207 src/resolve/resolved-gperf.c
5209 systemd_resolved_LDADD = \
5210 libsystemd-network.la \
5213 rootlibexec_PROGRAMS += \
5216 nodist_systemunit_DATA += \
5217 units/systemd-resolved.service
5219 dist_systemunit_DATA_busnames += \
5220 units/org.freedesktop.resolve1.busname
5222 dist_dbuspolicy_DATA += \
5223 src/resolve/org.freedesktop.resolve1.conf
5225 dist_dbussystemservice_DATA += \
5226 src/resolve/org.freedesktop.resolve1.service
5228 SYSTEM_UNIT_ALIASES += \
5229 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5231 BUSNAMES_TARGET_WANTS += \
5232 org.freedesktop.resolve1.busname
5234 GENERAL_ALIASES += \
5235 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5237 nodist_pkgsysconf_DATA += \
5238 src/resolve/resolved.conf
5240 libnss_resolve_la_SOURCES = \
5241 src/nss-resolve/nss-resolve.sym \
5242 src/nss-resolve/nss-resolve.c
5244 libnss_resolve_la_LDFLAGS = \
5251 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5253 libnss_resolve_la_LIBADD = \
5254 libsystemd-internal.la \
5257 lib_LTLIBRARIES += \
5260 systemd_resolve_SOURCES = \
5261 src/resolve/resolve-tool.c \
5262 $(basic_dns_sources) \
5263 src/shared/gcrypt-util.c \
5264 src/shared/gcrypt-util.h
5266 nodist_systemd_resolve_SOURCES = \
5267 src/resolve/dns_type-from-name.h \
5268 src/resolve/dns_type-to-name.h
5270 systemd_resolve_LDADD = \
5283 test_resolve_tables_SOURCES = \
5284 src/resolve/test-resolve-tables.c \
5285 src/resolve/dns_type-from-name.h \
5286 src/resolve/dns_type-to-name.h \
5287 $(basic_dns_sources) \
5288 src/shared/test-tables.h
5290 test_resolve_tables_LDADD = \
5293 test_dns_packet_SOURCES = \
5294 src/resolve/test-dns-packet.c \
5295 $(basic_dns_sources)
5297 test_dns_packet_CPPFLAGS = \
5299 -DRESOLVE_TEST_DIR=\"$(abs_top_srcdir)/src/resolve/test-data\"
5301 test_dns_packet_LDADD = \
5305 src/resolve/test-data/_openpgpkey.fedoraproject.org.pkts \
5306 src/resolve/test-data/fedoraproject.org.pkts \
5307 src/resolve/test-data/gandi.net.pkts \
5308 src/resolve/test-data/google.com.pkts \
5309 src/resolve/test-data/root.pkts \
5310 src/resolve/test-data/sw1a1aa-sw1a2aa-sw1a2ab-sw1a2ac.find.me.uk.pkts \
5311 src/resolve/test-data/teamits.com.pkts \
5312 src/resolve/test-data/zbyszek@fedoraproject.org.pkts \
5313 src/resolve/test-data/_443._tcp.fedoraproject.org.pkts \
5314 src/resolve/test-data/kyhwana.org.pkts \
5315 src/resolve/test-data/fake-caa.pkts
5317 test_dnssec_SOURCES = \
5318 src/resolve/test-dnssec.c \
5319 $(basic_dns_sources)
5321 test_dnssec_LDADD = \
5324 test_dnssec_complex_SOURCES = \
5325 src/resolve/test-dnssec-complex.c \
5326 src/resolve/dns-type.c \
5327 src/resolve/dns-type.h
5329 test_dnssec_complex_LDADD = \
5334 gperf_txt_sources += \
5335 src/resolve/dns_type-list.txt
5337 gperf_gperf_sources += \
5338 src/resolve/resolved-gperf.gperf
5341 units/systemd-resolved.service.m4.in \
5342 src/resolve/resolved.conf.in
5344 # ------------------------------------------------------------------------------
5346 rootlibexec_PROGRAMS += \
5349 systemd_networkd_SOURCES = \
5350 src/network/networkd.c
5352 systemd_networkd_LDADD = \
5356 systemd_networkd_LDADD += \
5360 noinst_LTLIBRARIES += \
5363 libnetworkd_core_la_CFLAGS = \
5366 libnetworkd_core_la_SOURCES = \
5367 src/libsystemd-network/network-internal.h \
5368 src/network/networkd.h \
5369 src/network/networkd-link.h \
5370 src/network/networkd-link.c \
5371 src/network/networkd-netdev.h \
5372 src/network/networkd-netdev.c \
5373 src/network/networkd-netdev-tunnel.h \
5374 src/network/networkd-netdev-tunnel.c \
5375 src/network/networkd-netdev-veth.h \
5376 src/network/networkd-netdev-veth.c \
5377 src/network/networkd-netdev-vxlan.h \
5378 src/network/networkd-netdev-vxlan.c \
5379 src/network/networkd-netdev-vlan.h \
5380 src/network/networkd-netdev-vlan.c \
5381 src/network/networkd-netdev-macvlan.h \
5382 src/network/networkd-netdev-macvlan.c \
5383 src/network/networkd-netdev-ipvlan.h \
5384 src/network/networkd-netdev-ipvlan.c \
5385 src/network/networkd-netdev-dummy.h \
5386 src/network/networkd-netdev-dummy.c \
5387 src/network/networkd-netdev-tuntap.h \
5388 src/network/networkd-netdev-tuntap.c \
5389 src/network/networkd-netdev-bond.h \
5390 src/network/networkd-netdev-bond.c \
5391 src/network/networkd-netdev-bridge.h \
5392 src/network/networkd-netdev-bridge.c \
5393 src/network/networkd-link-bus.c \
5394 src/network/networkd-ipv4ll.c \
5395 src/network/networkd-dhcp4.c \
5396 src/network/networkd-dhcp6.c \
5397 src/network/networkd-ndisc.c \
5398 src/network/networkd-network.h \
5399 src/network/networkd-network.c \
5400 src/network/networkd-network-bus.c \
5401 src/network/networkd-address.h \
5402 src/network/networkd-address.c \
5403 src/network/networkd-route.h \
5404 src/network/networkd-route.c \
5405 src/network/networkd-manager.c \
5406 src/network/networkd-manager-bus.c \
5407 src/network/networkd-fdb.h \
5408 src/network/networkd-fdb.c \
5409 src/network/networkd-address-pool.h \
5410 src/network/networkd-address-pool.c \
5411 src/network/networkd-util.h \
5412 src/network/networkd-util.c
5414 nodist_libnetworkd_core_la_SOURCES = \
5415 src/network/networkd-network-gperf.c \
5416 src/network/networkd-netdev-gperf.c
5418 libnetworkd_core_la_LIBADD = \
5419 libsystemd-network.la \
5422 rootlibexec_PROGRAMS += \
5423 systemd-networkd-wait-online
5425 systemd_networkd_wait_online_CFLAGS = \
5428 systemd_networkd_wait_online_SOURCES = \
5429 src/libsystemd-network/network-internal.h \
5430 src/network/networkd-wait-online.h \
5431 src/network/networkd-wait-online-link.h \
5432 src/network/networkd-wait-online.c \
5433 src/network/networkd-wait-online-manager.c \
5434 src/network/networkd-wait-online-link.c
5436 systemd_networkd_wait_online_LDADD = \
5437 libsystemd-network.la \
5440 rootbin_PROGRAMS += \
5443 networkctl_SOURCES = \
5444 src/network/networkctl.c
5446 networkctl_LDADD = \
5448 libsystemd-network.la
5450 dist_bashcompletion_data += \
5451 shell-completion/bash/networkctl
5453 test_network_SOURCES = \
5454 src/network/test-network.c
5456 test_network_LDADD = \
5460 test_network_LDADD += \
5464 test_network_tables_SOURCES = \
5465 src/network/test-network-tables.c \
5466 src/shared/test-tables.h
5468 test_network_tables_LDADD = \
5469 libnetworkd-core.la \
5473 test_network_tables_LDADD += \
5481 dist_systemunit_DATA += \
5482 units/systemd-networkd.socket
5484 nodist_systemunit_DATA += \
5485 units/systemd-networkd.service \
5486 units/systemd-networkd-wait-online.service
5488 dist_systemunit_DATA_busnames += \
5489 units/org.freedesktop.network1.busname
5491 dist_dbussystemservice_DATA += \
5492 src/network/org.freedesktop.network1.service
5494 dist_dbuspolicy_DATA += \
5495 src/network/org.freedesktop.network1.conf
5497 GENERAL_ALIASES += \
5498 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5499 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5500 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5502 SYSTEM_UNIT_ALIASES += \
5503 systemd-networkd.service dbus-org.freedesktop.network1.service
5505 BUSNAMES_TARGET_WANTS += \
5506 org.freedesktop.network1.busname
5510 gperf_gperf_sources += \
5511 src/network/networkd-network-gperf.gperf \
5512 src/network/networkd-netdev-gperf.gperf
5515 units/systemd-networkd.service.m4.in \
5516 units/systemd-networkd-wait-online.service.in \
5517 test/networkd-test.py
5519 # ------------------------------------------------------------------------------
5521 systemd_logind_SOURCES = \
5522 src/login/logind.c \
5525 nodist_systemd_logind_SOURCES = \
5526 src/login/logind-gperf.c
5528 systemd_logind_LDADD = \
5531 liblogind_core_la_SOURCES = \
5532 src/login/logind-core.c \
5533 src/login/logind-device.c \
5534 src/login/logind-device.h \
5535 src/login/logind-button.c \
5536 src/login/logind-button.h \
5537 src/login/logind-action.c \
5538 src/login/logind-action.h \
5539 src/login/logind-seat.c \
5540 src/login/logind-seat.h \
5541 src/login/logind-session.c \
5542 src/login/logind-session.h \
5543 src/login/logind-session-device.c \
5544 src/login/logind-session-device.h \
5545 src/login/logind-user.c \
5546 src/login/logind-user.h \
5547 src/login/logind-inhibit.c \
5548 src/login/logind-inhibit.h \
5549 src/login/logind-dbus.c \
5550 src/login/logind-session-dbus.c \
5551 src/login/logind-seat-dbus.c \
5552 src/login/logind-user-dbus.c \
5553 src/login/logind-utmp.c \
5554 src/login/logind-acl.h
5556 liblogind_core_la_LIBADD = \
5560 liblogind_core_la_SOURCES += \
5561 src/login/logind-acl.c
5564 noinst_LTLIBRARIES += \
5567 rootlibexec_PROGRAMS += \
5570 loginctl_SOURCES = \
5571 src/login/loginctl.c \
5572 src/login/sysfs-show.h \
5573 src/login/sysfs-show.c
5578 rootbin_PROGRAMS += \
5581 dist_bashcompletion_data += \
5582 shell-completion/bash/loginctl
5584 dist_zshcompletion_data += \
5585 shell-completion/zsh/_loginctl \
5586 shell-completion/zsh/_systemd-inhibit
5588 systemd_inhibit_SOURCES = \
5591 systemd_inhibit_LDADD = \
5594 rootbin_PROGRAMS += \
5597 test_login_SOURCES = \
5598 src/libsystemd/sd-login/test-login.c
5600 test_login_LDADD = \
5603 test_login_shared_SOURCES = \
5604 src/login/test-login-shared.c
5606 test_login_shared_LDADD = \
5609 test_inhibit_SOURCES = \
5610 src/login/test-inhibit.c
5612 test_inhibit_LDADD = \
5615 test_login_tables_SOURCES = \
5616 src/login/test-login-tables.c
5618 test_login_tables_LDADD = \
5630 pam_systemd_la_SOURCES = \
5631 src/login/pam_systemd.sym \
5632 src/login/pam_systemd.c
5634 pam_systemd_la_CFLAGS = \
5638 pam_systemd_la_LDFLAGS = \
5644 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5646 pam_systemd_la_LIBADD = \
5650 pamlib_LTLIBRARIES = \
5653 dist_pamconf_DATA = \
5654 src/login/systemd-user
5657 src/login/systemd-user.m4
5660 nodist_systemunit_DATA += \
5661 units/systemd-logind.service
5663 dist_systemunit_DATA += \
5666 dist_systemunit_DATA_busnames += \
5667 units/org.freedesktop.login1.busname
5669 dist_dbussystemservice_DATA += \
5670 src/login/org.freedesktop.login1.service
5672 dist_dbuspolicy_DATA += \
5673 src/login/org.freedesktop.login1.conf
5675 dist_pkgsysconf_DATA += \
5676 src/login/logind.conf
5678 polkitpolicy_files += \
5679 src/login/org.freedesktop.login1.policy
5684 MULTI_USER_TARGET_WANTS += \
5685 systemd-logind.service
5687 SYSTEM_UNIT_ALIASES += \
5688 systemd-logind.service dbus-org.freedesktop.login1.service
5690 BUSNAMES_TARGET_WANTS += \
5691 org.freedesktop.login1.busname
5693 dist_udevrules_DATA += \
5694 src/login/70-uaccess.rules \
5695 src/login/70-power-switch.rules
5697 nodist_udevrules_DATA += \
5698 src/login/71-seat.rules \
5699 src/login/73-seat-late.rules
5703 polkitpolicy_in_files += \
5704 src/login/org.freedesktop.login1.policy.in
5706 gperf_gperf_sources += \
5707 src/login/logind-gperf.gperf
5710 src/login/71-seat.rules.in \
5711 src/login/73-seat-late.rules.in \
5712 units/systemd-logind.service.in
5714 # ------------------------------------------------------------------------------
5717 systemd_user_sessions_SOURCES = \
5718 src/user-sessions/user-sessions.c
5720 systemd_user_sessions_LDADD = \
5723 rootlibexec_PROGRAMS += \
5724 systemd-user-sessions
5726 nodist_systemunit_DATA += \
5727 units/systemd-user-sessions.service
5729 MULTI_USER_TARGET_WANTS += \
5730 systemd-user-sessions.service
5735 units/systemd-user-sessions.service.in
5737 # ------------------------------------------------------------------------------
5740 test/README.testsuite \
5741 test/TEST-01-BASIC \
5742 test/TEST-01-BASIC/Makefile \
5743 test/TEST-01-BASIC/test.sh \
5744 test/TEST-02-CRYPTSETUP \
5745 test/TEST-02-CRYPTSETUP/Makefile \
5746 test/TEST-02-CRYPTSETUP/test.sh \
5748 test/TEST-03-JOBS/Makefile \
5749 test/TEST-03-JOBS/test-jobs.sh \
5750 test/TEST-03-JOBS/test.sh \
5751 test/TEST-04-JOURNAL/Makefile \
5752 test/TEST-04-JOURNAL/test-journal.sh \
5753 test/TEST-04-JOURNAL/test.sh \
5754 test/TEST-05-RLIMITS/Makefile \
5755 test/TEST-05-RLIMITS/test-rlimits.sh \
5756 test/TEST-05-RLIMITS/test.sh \
5757 test/TEST-06-SELINUX/Makefile \
5758 test/TEST-06-SELINUX/test-selinux-checks.sh \
5759 test/TEST-06-SELINUX/test.sh \
5760 test/TEST-06-SELINUX/systemd_test.te \
5761 test/TEST-06-SELINUX/systemd_test.if \
5762 test/TEST-07-ISSUE-1981/Makefile \
5763 test/TEST-07-ISSUE-1981/test-segfault.sh \
5764 test/TEST-07-ISSUE-1981/test.sh \
5768 test/loopy2.service \
5769 test/loopy3.service \
5770 test/loopy4.service \
5771 test/loopy.service \
5772 test/loopy.service.d \
5773 test/loopy.service.d/compat.conf
5775 # ------------------------------------------------------------------------------
5777 '|rootlibexecdir=$(rootlibexecdir)|' \
5778 '|rootbindir=$(rootbindir)|' \
5779 '|bindir=$(bindir)|' \
5780 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5781 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5782 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5783 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5784 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5785 '|pkgdatadir=$(pkgdatadir)|' \
5786 '|systemunitdir=$(systemunitdir)|' \
5787 '|userunitdir=$(userunitdir)|' \
5788 '|systempresetdir=$(systempresetdir)|' \
5789 '|userpresetdir=$(userpresetdir)|' \
5790 '|udevhwdbdir=$(udevhwdbdir)|' \
5791 '|udevrulesdir=$(udevrulesdir)|' \
5792 '|catalogdir=$(catalogdir)|' \
5793 '|tmpfilesdir=$(tmpfilesdir)|' \
5794 '|sysusersdir=$(sysusersdir)|' \
5795 '|sysctldir=$(sysctldir)|' \
5796 '|systemgeneratordir=$(systemgeneratordir)|' \
5797 '|usergeneratordir=$(usergeneratordir)|' \
5798 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5799 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5800 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5801 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5802 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5803 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5804 '|prefix=$(prefix)|' \
5805 '|exec_prefix=$(exec_prefix)|' \
5806 '|libdir=$(libdir)|' \
5807 '|includedir=$(includedir)|' \
5808 '|VERSION=$(VERSION)|' \
5809 '|rootprefix=$(rootprefix)|' \
5810 '|udevlibexecdir=$(udevlibexecdir)|' \
5811 '|SUSHELL=$(SUSHELL)|' \
5812 '|SULOGIN=$(SULOGIN)|' \
5813 '|DEBUGTTY=$(DEBUGTTY)|' \
5816 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5817 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5818 '|MKDIR_P=$(MKDIR_P)|' \
5819 '|QUOTAON=$(QUOTAON)|' \
5820 '|QUOTACHECK=$(QUOTACHECK)|' \
5821 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5822 '|VARLOGDIR=$(varlogdir)|' \
5823 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5824 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5825 '|PYTHON=$(PYTHON)|' \
5826 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5827 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5828 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5829 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5830 '|TTY_GID=$(TTY_GID)|' \
5831 '|systemsleepdir=$(systemsleepdir)|' \
5832 '|systemshutdowndir=$(systemshutdowndir)|' \
5833 '|binfmtdir=$(binfmtdir)|' \
5834 '|modulesloaddir=$(modulesloaddir)|'
5837 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5838 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5847 sysctl.d/%: sysctl.d/%.in
5856 src/core/%.systemd: src/core/%.systemd.in
5859 src/%.policy.in: src/%.policy.in.in
5862 shell-completion/%: shell-completion/%.in
5873 $(AM_V_GEN)chmod +x $@
5875 src/%.c: src/%.gperf
5876 $(AM_V_at)$(MKDIR_P) $(dir $@)
5877 $(AM_V_GPERF)$(GPERF) < $< > $@
5879 src/%: src/%.m4 $(top_builddir)/config.status
5880 $(AM_V_at)$(MKDIR_P) $(dir $@)
5881 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5883 sysusers.d/%: sysusers.d/%.m4 $(top_builddir)/config.status
5884 $(AM_V_at)$(MKDIR_P) $(dir $@)
5885 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5887 tmpfiles.d/%: tmpfiles.d/%.m4 $(top_builddir)/config.status
5888 $(AM_V_at)$(MKDIR_P) $(dir $@)
5889 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5892 units/%: units/%.m4 $(top_builddir)/config.status
5893 $(AM_V_at)$(MKDIR_P) $(dir $@)
5894 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5896 units/user/%: units/user/%.m4 $(top_builddir)/config.status
5897 $(AM_V_at)$(MKDIR_P) $(dir $@)
5898 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5901 nodist_polkitpolicy_DATA = \
5902 $(polkitpolicy_files) \
5903 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5907 $(polkitpolicy_in_files) \
5908 $(polkitpolicy_in_in_files)
5910 # ------------------------------------------------------------------------------
5911 man/custom-entities.ent: configure.ac
5912 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5913 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5914 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5918 man/custom-entities.ent
5923 --stringparam man.output.quietly 1 \
5924 --stringparam funcsynopsis.style ansi \
5925 --stringparam man.authors.section.enabled 0 \
5926 --stringparam man.copyright.section.enabled 0 \
5927 --stringparam systemd.version $(VERSION) \
5928 --path '$(builddir)/man:$(srcdir)/man'
5930 XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
5931 XSLTPROC_PROCESS_MAN = \
5932 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5934 XSLTPROC_PROCESS_HTML = \
5935 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5937 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5938 $(XSLTPROC_PROCESS_MAN)
5940 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5941 $(XSLTPROC_PROCESS_MAN)
5943 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5944 $(XSLTPROC_PROCESS_MAN)
5946 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5947 $(XSLTPROC_PROCESS_MAN)
5949 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5950 $(XSLTPROC_PROCESS_MAN)
5952 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5953 $(XSLTPROC_PROCESS_HTML)
5956 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5960 man/custom-html.xsl \
5963 # ------------------------------------------------------------------------------
5966 docs/sysvinit/README
5971 docs/sysvinit/README: docs/sysvinit/README.in
5974 docs/var-log/README: docs/var-log/README.in
5978 docs/sysvinit/README \
5983 docs/sysvinit/README.in \
5984 docs/var-log/README.in
5986 SOCKETS_TARGET_WANTS += \
5987 systemd-initctl.socket
5991 MULTI_USER_TARGET_WANTS += \
5992 systemd-update-utmp-runlevel.service
5993 GRAPHICAL_TARGET_WANTS += \
5994 systemd-update-utmp-runlevel.service
5995 RESCUE_TARGET_WANTS += \
5996 systemd-update-utmp-runlevel.service
5999 SYSINIT_TARGET_WANTS += \
6000 systemd-update-utmp.service
6003 SYSINIT_TARGET_WANTS += \
6004 systemd-update-done.service
6006 LOCAL_FS_TARGET_WANTS += \
6007 systemd-remount-fs.service \
6009 var-lib-machines.mount
6011 MULTI_USER_TARGET_WANTS += \
6013 systemd-ask-password-wall.path
6015 SYSINIT_TARGET_WANTS += \
6016 dev-hugepages.mount \
6018 sys-kernel-config.mount \
6019 sys-kernel-debug.mount \
6020 sys-fs-fuse-connections.mount \
6021 systemd-sysctl.service \
6022 systemd-ask-password-console.path
6025 SYSTEM_UNIT_ALIASES += \
6026 poweroff.target runlevel0.target \
6027 rescue.target runlevel1.target \
6028 multi-user.target runlevel2.target \
6029 multi-user.target runlevel3.target \
6030 multi-user.target runlevel4.target \
6031 graphical.target runlevel5.target \
6032 reboot.target runlevel6.target
6035 SYSTEM_UNIT_ALIASES += \
6036 graphical.target default.target \
6037 reboot.target ctrl-alt-del.target \
6038 getty@.service autovt@.service
6040 USER_UNIT_ALIASES += \
6041 $(systemunitdir)/shutdown.target shutdown.target \
6042 $(systemunitdir)/sockets.target sockets.target \
6043 $(systemunitdir)/timers.target timers.target \
6044 $(systemunitdir)/paths.target paths.target \
6045 $(systemunitdir)/bluetooth.target bluetooth.target \
6046 $(systemunitdir)/printer.target printer.target \
6047 $(systemunitdir)/sound.target sound.target \
6048 $(systemunitdir)/smartcard.target smartcard.target
6050 USER_UNIT_ALIASES += \
6051 $(systemunitdir)/busnames.target busnames.target
6053 GENERAL_ALIASES += \
6054 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6055 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6056 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6057 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6061 $(systemunitdir)/runlevel1.target.wants \
6062 $(systemunitdir)/runlevel2.target.wants \
6063 $(systemunitdir)/runlevel3.target.wants \
6064 $(systemunitdir)/runlevel4.target.wants \
6065 $(systemunitdir)/runlevel5.target.wants
6069 $(prefix)/lib/modules-load.d \
6070 $(sysconfdir)/modules-load.d \
6071 $(prefix)/lib/systemd/network \
6072 $(sysconfdir)/systemd/network \
6073 $(prefix)/lib/sysctl.d \
6074 $(sysconfdir)/sysctl.d \
6075 $(prefix)/lib/kernel/install.d \
6076 $(sysconfdir)/kernel/install.d \
6077 $(systemshutdowndir) \
6079 $(systemgeneratordir) \
6080 $(usergeneratordir) \
6083 $(pkgsysconfdir)/system \
6084 $(pkgsysconfdir)/system/multi-user.target.wants \
6085 $(pkgsysconfdir)/system/getty.target.wants \
6086 $(pkgsysconfdir)/user \
6087 $(dbussessionservicedir) \
6088 $(sysconfdir)/xdg/systemd
6090 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6092 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6094 install-data-hook: $(INSTALL_DATA_HOOKS)
6096 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6098 clean-local: $(CLEAN_LOCAL_HOOKS)
6099 rm -rf $(abs_srcdir)/install-tree
6100 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6101 $(abs_srcdir)/hwdb/iab.txt
6103 DISTCHECK_CONFIGURE_FLAGS = \
6104 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6105 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6106 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6107 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6108 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6109 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6110 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6111 --with-rootprefix=$$dc_install_base \
6112 --enable-compat-libs
6115 DISTCHECK_CONFIGURE_FLAGS += \
6116 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6117 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6119 DISTCHECK_CONFIGURE_FLAGS += \
6120 --with-sysvinit-path= \
6121 --with-sysvrcnd-path=
6125 DISTCHECK_CONFIGURE_FLAGS += \
6128 DISTCHECK_CONFIGURE_FLAGS += \
6132 .PHONY: dist-check-help
6134 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6135 for i in $(abspath $^); do \
6136 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6137 echo "$(basename $$i) --help output is too wide:"; \
6138 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6144 ( cd $(top_srcdir)/hwdb && \
6145 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6146 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6147 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6148 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6149 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6152 .PHONY: built-sources
6153 built-sources: $(BUILT_SOURCES)
6157 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6161 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6163 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6167 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6169 .PHONY: install-tree
6171 rm -rf $(abs_srcdir)/install-tree
6172 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6173 tree $(abs_srcdir)/install-tree
6175 # Let's run all tests of the test suite, but under valgrind. Let's
6176 # exclude perl/python/shell scripts we have in there
6177 .PHONY: valgrind-tests
6178 valgrind-tests: $(TESTS)
6179 $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \
6180 if file $$f | grep -q shell; then \
6181 echo -e "$${x}Skipping non-binary $$f"; else \
6182 echo -e "$${x}Running $$f"; \
6183 $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6188 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6190 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6191 $(AM_V_GEN)sort -u $^ > $@
6193 .PHONY: check-api-docs
6194 check-api-docs: exported man
6195 $(AM_V_GEN)for symbol in `cat exported` ; do \
6196 if test -f $(builddir)/man/$$symbol.html ; then \
6197 echo " Symbol $$symbol() is documented." ; \
6199 echo "‣ Symbol $$symbol() lacks documentation." ; \
6203 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6204 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6206 undefined defined: $(ALL_OBJECTS)
6207 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6208 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6209 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6215 .PHONY: check-api-unused
6216 check-api-unused: defined undefined exported
6217 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6219 .PHONY: check-includes
6220 check-includes: $(top_srcdir)/tools/check-includes.pl
6221 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6222 | xargs $(top_srcdir)/tools/check-includes.pl
6225 $(top_srcdir)/tools/check-includes.pl
6227 # Stupid test that everything purported to be exported really is
6228 define generate-sym-test
6229 $(AM_V_at)$(MKDIR_P) $(dir $@)
6230 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6231 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6232 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6233 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6234 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6235 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6236 $(AM_V_at)printf 'return 0; }\n' >> $@
6239 test-libsystemd-sym.c: \
6240 $(top_builddir)/src/libsystemd/libsystemd.sym \
6241 src/systemd/sd-journal.h \
6242 src/systemd/sd-daemon.h \
6243 src/systemd/sd-login.h \
6244 src/systemd/sd-bus.h \
6245 src/systemd/sd-utf8.h \
6246 src/systemd/sd-resolve.h \
6247 src/systemd/sd-path.h \
6248 src/systemd/sd-event.h
6249 $(generate-sym-test)
6251 test-libudev-sym.c: \
6252 src/libudev/libudev.sym \
6254 $(generate-sym-test)
6256 nodist_test_libsystemd_sym_SOURCES = \
6257 test-libsystemd-sym.c
6258 test_libsystemd_sym_LDADD = \
6261 nodist_test_libudev_sym_SOURCES = \
6263 test_libudev_sym_CFLAGS = \
6265 -Wno-deprecated-declarations
6266 test_libudev_sym_LDADD = \
6270 test-libsystemd-sym.c \
6274 test-libsystemd-sym.c \
6278 test-libsystemd-sym \
6283 cppcheck --enable=all -q $(top_srcdir)
6285 # Used to extract compile flags for YCM.
6290 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6293 tools/gdb-sd_dump_hashmaps.py
6296 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6299 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -