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 \
1481 test-resolve-tables \
1496 test/daughter.service \
1501 test/grandchild.service \
1503 test/hello-after-sleep.target \
1504 test/hello.service \
1506 test/parent-deep.slice \
1508 test/sched_idle_bad.service \
1509 test/sched_idle_ok.service \
1510 test/sched_rr_bad.service \
1511 test/sched_rr_change.service \
1512 test/sched_rr_ok.service \
1513 test/shutdown.target \
1514 test/sleep.service \
1515 test/sockets.target \
1517 test/sysinit.target \
1518 test/testsuite.target \
1519 test/timers.target \
1520 test/unstoppable.service \
1521 test/test-path/paths.target \
1522 test/test-path/basic.target \
1523 test/test-path/sysinit.target \
1524 test/test-path/path-changed.service \
1525 test/test-path/path-directorynotempty.service \
1526 test/test-path/path-existsglob.service \
1527 test/test-path/path-exists.service \
1528 test/test-path/path-makedirectory.service \
1529 test/test-path/path-modified.service \
1530 test/test-path/path-mycustomunit.service \
1531 test/test-path/path-service.service \
1532 test/test-path/path-changed.path \
1533 test/test-path/path-directorynotempty.path \
1534 test/test-path/path-existsglob.path \
1535 test/test-path/path-exists.path \
1536 test/test-path/path-makedirectory.path \
1537 test/test-path/path-modified.path \
1538 test/test-path/path-unit.path \
1539 test/test-execute/exec-environment-empty.service \
1540 test/test-execute/exec-environment-multiple.service \
1541 test/test-execute/exec-environment.service \
1542 test/test-execute/exec-passenvironment-absent.service \
1543 test/test-execute/exec-passenvironment-empty.service \
1544 test/test-execute/exec-passenvironment-repeated.service \
1545 test/test-execute/exec-passenvironment.service \
1546 test/test-execute/exec-group.service \
1547 test/test-execute/exec-ignoresigpipe-no.service \
1548 test/test-execute/exec-ignoresigpipe-yes.service \
1549 test/test-execute/exec-personality-x86-64.service \
1550 test/test-execute/exec-personality-x86.service \
1551 test/test-execute/exec-personality-s390.service \
1552 test/test-execute/exec-privatedevices-no.service \
1553 test/test-execute/exec-privatedevices-yes.service \
1554 test/test-execute/exec-privatetmp-no.service \
1555 test/test-execute/exec-privatetmp-yes.service \
1556 test/test-execute/exec-systemcallerrornumber.service \
1557 test/test-execute/exec-systemcallfilter-failing2.service \
1558 test/test-execute/exec-systemcallfilter-failing.service \
1559 test/test-execute/exec-systemcallfilter-not-failing2.service \
1560 test/test-execute/exec-systemcallfilter-not-failing.service \
1561 test/test-execute/exec-user.service \
1562 test/test-execute/exec-workingdirectory.service \
1563 test/test-execute/exec-umask-0177.service \
1564 test/test-execute/exec-umask-default.service \
1565 test/test-execute/exec-privatenetwork-yes.service \
1566 test/test-execute/exec-environmentfile.service \
1567 test/test-execute/exec-oomscoreadjust-positive.service \
1568 test/test-execute/exec-oomscoreadjust-negative.service \
1569 test/test-execute/exec-ioschedulingclass-best-effort.service \
1570 test/test-execute/exec-ioschedulingclass-idle.service \
1571 test/test-execute/exec-ioschedulingclass-none.service \
1572 test/test-execute/exec-ioschedulingclass-realtime.service \
1573 test/test-execute/exec-capabilityboundingset-invert.service \
1574 test/test-execute/exec-capabilityboundingset-merge.service \
1575 test/test-execute/exec-capabilityboundingset-reset.service \
1576 test/test-execute/exec-capabilityboundingset-simple.service \
1577 test/bus-policy/hello.conf \
1578 test/bus-policy/methods.conf \
1579 test/bus-policy/ownerships.conf \
1580 test/bus-policy/signals.conf \
1581 test/bus-policy/check-own-rules.conf \
1582 test/bus-policy/many-rules.conf \
1583 test/bus-policy/test.conf
1587 src/test/test-helper.h
1589 test_device_nodes_SOURCES = \
1590 src/test/test-device-nodes.c
1592 test_device_nodes_LDADD = \
1595 test_engine_SOURCES = \
1596 src/test/test-engine.c
1598 test_engine_CFLAGS = \
1603 test_engine_LDADD = \
1606 test_job_type_SOURCES = \
1607 src/test/test-job-type.c
1609 test_job_type_CFLAGS = \
1614 test_job_type_LDADD = \
1627 test_loopback_SOURCES = \
1628 src/test/test-loopback.c
1630 test_loopback_LDADD = \
1633 test_hostname_SOURCES = \
1634 src/test/test-hostname.c
1636 test_hostname_LDADD = \
1639 test_dns_domain_SOURCES = \
1640 src/test/test-dns-domain.c
1642 test_dns_domain_LDADD = \
1643 libsystemd-network.la \
1646 test_resolve_tables_SOURCES = \
1647 src/resolve/test-resolve-tables.c \
1648 src/shared/test-tables.h \
1649 src/resolve/dns-type.c \
1650 src/resolve/dns-type.h \
1651 src/resolve/dns_type-from-name.h \
1652 src/resolve/dns_type-to-name.h
1654 test_resolve_tables_LDADD = \
1661 test_boot_timestamp_SOURCES = \
1662 src/test/test-boot-timestamps.c
1664 test_boot_timestamp_LDADD = \
1668 test_unit_name_SOURCES = \
1669 src/test/test-unit-name.c
1671 test_unit_name_CFLAGS = \
1676 test_unit_name_LDADD = \
1679 test_unit_file_SOURCES = \
1680 src/test/test-unit-file.c
1682 test_unit_file_CFLAGS = \
1687 test_unit_file_LDADD = \
1690 test_utf8_SOURCES = \
1691 src/test/test-utf8.c
1696 test_capability_SOURCES = \
1697 src/test/test-capability.c
1699 test_capability_LDADD = \
1702 test_async_SOURCES = \
1703 src/test/test-async.c
1705 test_async_LDADD = \
1708 test_locale_util_SOURCES = \
1709 src/test/test-locale-util.c
1711 test_locale_util_LDADD = \
1714 test_copy_SOURCES = \
1715 src/test/test-copy.c
1720 test_sigbus_SOURCES = \
1721 src/test/test-sigbus.c
1723 test_sigbus_LDADD = \
1726 test_rbtree_SOURCES = \
1727 src/test/test-rbtree.c
1729 test_rbtree_LDADD = \
1732 test_condition_SOURCES = \
1733 src/test/test-condition.c
1735 test_condition_LDADD = \
1738 test_fdset_SOURCES = \
1739 src/test/test-fdset.c
1741 test_fdset_LDADD = \
1744 test_fstab_util_SOURCES = \
1745 src/test/test-fstab-util.c
1747 test_fstab_util_LDADD = \
1750 test_ratelimit_SOURCES = \
1751 src/test/test-ratelimit.c
1753 test_ratelimit_LDADD = \
1756 test_util_SOURCES = \
1757 src/test/test-util.c
1762 test_string_util_SOURCES = \
1763 src/test/test-string-util.c
1765 test_string_util_LDADD = \
1768 test_extract_word_SOURCES = \
1769 src/test/test-extract-word.c
1771 test_extract_word_LDADD = \
1774 test_parse_util_SOURCES = \
1775 src/test/test-parse-util.c
1777 test_parse_util_LDADD = \
1780 test_user_util_SOURCES = \
1781 src/test/test-user-util.c
1783 test_user_util_LDADD = \
1786 test_hostname_util_SOURCES = \
1787 src/test/test-hostname-util.c
1789 test_hostname_util_LDADD = \
1792 test_process_util_SOURCES = \
1793 src/test/test-process-util.c
1795 test_process_util_LDADD = \
1798 test_terminal_util_SOURCES = \
1799 src/test/test-terminal-util.c
1801 test_terminal_util_LDADD = \
1804 test_path_lookup_SOURCES = \
1805 src/test/test-path-lookup.c
1807 test_path_lookup_LDADD = \
1810 test_uid_range_SOURCES = \
1811 src/test/test-uid-range.c
1813 test_uid_range_LDADD = \
1816 test_cap_list_SOURCES = \
1817 src/test/test-cap-list.c
1819 test_cap_list_LDADD = \
1822 test_socket_util_SOURCES = \
1823 src/test/test-socket-util.c
1825 test_socket_util_LDADD = \
1828 test_barrier_SOURCES = \
1829 src/test/test-barrier.c
1831 test_barrier_LDADD = \
1834 test_tmpfiles_SOURCES = \
1835 src/test/test-tmpfiles.c
1837 test_tmpfiles_LDADD = \
1840 test_namespace_SOURCES = \
1841 src/test/test-namespace.c
1843 test_verbs_SOURCES = \
1844 src/test/test-verbs.c
1846 test_verbs_LDADD = \
1849 test_install_root_SOURCES = \
1850 src/test/test-install-root.c
1852 test_install_root_LDADD = \
1855 test_acl_util_SOURCES = \
1856 src/test/test-acl-util.c
1858 test_acl_util_LDADD = \
1861 test_namespace_LDADD = \
1864 test_rlimit_util_SOURCES = \
1865 src/test/test-rlimit-util.c
1867 test_rlimit_util_LDADD = \
1870 test_ask_password_api_SOURCES = \
1871 src/test/test-ask-password-api.c
1873 test_ask_password_api_LDADD = \
1876 test_signal_util_SOURCES = \
1877 src/test/test-signal-util.c
1879 test_signal_util_LDADD = \
1883 src/test/test-hashmap-ordered.c
1885 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1886 $(AM_V_at)$(MKDIR_P) $(dir $@)
1887 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1888 { if (!match($$0, "^#include")) \
1889 gsub(/hashmap/, "ordered_hashmap"); \
1890 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1891 gsub(/Hashmap/, "OrderedHashmap"); \
1894 nodist_test_hashmap_SOURCES = \
1895 src/test/test-hashmap-ordered.c
1897 test_hashmap_SOURCES = \
1898 src/test/test-hashmap.c \
1899 src/test/test-hashmap-plain.c
1901 test_hashmap_LDADD = \
1904 test_set_SOURCES = \
1910 test_bitmap_SOURCES = \
1911 src/test/test-bitmap.c
1913 test_bitmap_LDADD = \
1916 test_xml_SOURCES = \
1922 test_list_SOURCES = \
1923 src/test/test-list.c
1928 test_unaligned_LDADD = \
1931 test_unaligned_SOURCES = \
1932 src/test/test-unaligned.c
1934 test_tables_SOURCES = \
1935 src/test/test-tables.c \
1936 src/shared/test-tables.h \
1937 src/bus-proxyd/bus-xml-policy.c \
1938 src/bus-proxyd/bus-xml-policy.h \
1939 src/journal/journald-server.c \
1940 src/journal/journald-server.h
1942 test_tables_CPPFLAGS = \
1944 -I$(top_srcdir)/src/bus-proxyd
1946 test_tables_CFLAGS = \
1951 test_tables_LDADD = \
1952 libjournal-core.la \
1956 test_prioq_SOURCES = \
1957 src/test/test-prioq.c
1959 test_prioq_LDADD = \
1962 test_fileio_SOURCES = \
1963 src/test/test-fileio.c
1965 test_fileio_LDADD = \
1968 test_time_SOURCES = \
1969 src/test/test-time.c
1974 test_architecture_SOURCES = \
1975 src/test/test-architecture.c
1977 test_architecture_LDADD = \
1980 test_log_SOURCES = \
1986 test_ipcrm_SOURCES = \
1987 src/test/test-ipcrm.c
1989 test_ipcrm_LDADD = \
1992 test_btrfs_SOURCES = \
1993 src/test/test-btrfs.c
1995 test_btrfs_LDADD = \
1999 test_firewall_util_SOURCES = \
2000 src/test/test-firewall-util.c
2002 test_firewall_util_CFLAGS = \
2006 test_firewall_util_LDADD = \
2012 test_netlink_manual_SOURCES = \
2013 src/test/test-netlink-manual.c
2015 test_netlink_manual_CFLAGS = \
2019 test_netlink_manual_LDADD = \
2023 test_ellipsize_SOURCES = \
2024 src/test/test-ellipsize.c
2026 test_ellipsize_LDADD = \
2029 test_date_SOURCES = \
2030 src/test/test-date.c
2035 test_sleep_SOURCES = \
2036 src/test/test-sleep.c
2038 test_sleep_LDADD = \
2041 test_replace_var_SOURCES = \
2042 src/test/test-replace-var.c
2044 test_replace_var_LDADD = \
2047 test_calendarspec_SOURCES = \
2048 src/test/test-calendarspec.c
2050 test_calendarspec_LDADD = \
2053 test_strip_tab_ansi_SOURCES = \
2054 src/test/test-strip-tab-ansi.c
2056 test_strip_tab_ansi_LDADD = \
2059 test_daemon_SOURCES = \
2060 src/test/test-daemon.c
2062 test_daemon_LDADD = \
2065 test_cgroup_SOURCES = \
2066 src/test/test-cgroup.c
2068 test_cgroup_LDADD = \
2071 test_cgroup_mask_SOURCES = \
2072 src/test/test-cgroup-mask.c
2074 test_cgroup_mask_CPPFLAGS = \
2078 test_cgroup_mask_CFLAGS = \
2082 test_cgroup_mask_LDADD = \
2085 test_cgroup_util_SOURCES = \
2086 src/test/test-cgroup-util.c
2088 test_cgroup_util_LDADD = \
2091 test_env_replace_SOURCES = \
2092 src/test/test-env-replace.c
2094 test_env_replace_LDADD = \
2097 test_strbuf_SOURCES = \
2098 src/test/test-strbuf.c
2100 test_strbuf_LDADD = \
2103 test_strv_SOURCES = \
2104 src/test/test-strv.c
2109 test_path_util_SOURCES = \
2110 src/test/test-path-util.c
2112 test_path_util_LDADD = \
2115 test_path_SOURCES = \
2116 src/test/test-path.c
2118 test_path_CFLAGS = \
2125 test_execute_SOURCES = \
2126 src/test/test-execute.c
2128 test_execute_CFLAGS = \
2132 test_execute_LDADD = \
2135 test_siphash24_SOURCES = \
2136 src/test/test-siphash24.c
2138 test_siphash24_LDADD = \
2141 test_strxcpyx_SOURCES = \
2142 src/test/test-strxcpyx.c
2144 test_strxcpyx_LDADD = \
2147 test_install_SOURCES = \
2148 src/test/test-install.c
2150 test_install_LDADD = \
2153 test_watchdog_SOURCES = \
2154 src/test/test-watchdog.c
2156 test_watchdog_LDADD = \
2159 test_sched_prio_SOURCES = \
2160 src/test/test-sched-prio.c
2162 test_sched_prio_CPPFLAGS = \
2166 test_sched_prio_CFLAGS = \
2170 test_sched_prio_LDADD = \
2173 test_conf_files_SOURCES = \
2174 src/test/test-conf-files.c
2176 test_conf_files_LDADD = \
2179 test_conf_parser_SOURCES = \
2180 src/test/test-conf-parser.c
2182 test_conf_parser_LDADD = \
2185 test_bus_policy_SOURCES = \
2186 src/bus-proxyd/test-bus-xml-policy.c
2188 test_bus_policy_LDADD = \
2189 libbus-proxy-core.la \
2192 test_af_list_SOURCES = \
2193 src/test/test-af-list.c
2195 test_af_list_LDADD = \
2198 test_arphrd_list_SOURCES = \
2199 src/test/test-arphrd-list.c
2201 test_arphrd_list_LDADD = \
2204 # ------------------------------------------------------------------------------
2205 ## .PHONY so it always rebuilds it
2206 .PHONY: coverage lcov-run lcov-report coverage-sync
2208 # run lcov from scratch, always
2213 coverage_dir = coverage
2214 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2217 # reset run coverage tests
2219 @rm -rf $(coverage_dir)
2220 lcov $(coverage_opts) --zerocounters
2223 # generate report based on current coverage data
2225 $(MKDIR_P) $(coverage_dir)
2226 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2227 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2228 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2229 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2230 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2232 # lcov doesn't work properly with vpath builds, make sure that bad
2233 # output is not uploaded by mistake.
2234 coverage-sync: coverage
2235 test "$(builddir)" = "$(srcdir)"
2236 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2239 lcov-run lcov-report:
2240 echo "Need to reconfigure with --enable-coverage"
2243 # ------------------------------------------------------------------------------
2244 systemd_analyze_SOURCES = \
2245 src/analyze/analyze.c \
2246 src/analyze/analyze-verify.c \
2247 src/analyze/analyze-verify.h
2249 systemd_analyze_CFLAGS = \
2254 systemd_analyze_LDADD = \
2257 # ------------------------------------------------------------------------------
2258 systemd_initctl_SOURCES = \
2259 src/initctl/initctl.c
2261 systemd_initctl_LDADD = \
2264 # ------------------------------------------------------------------------------
2265 systemd_update_utmp_SOURCES = \
2266 src/update-utmp/update-utmp.c
2268 systemd_update_utmp_CFLAGS = \
2272 systemd_update_utmp_LDADD = \
2276 # ------------------------------------------------------------------------------
2277 systemd_update_done_SOURCES = \
2278 src/update-done/update-done.c
2280 systemd_update_done_LDADD = \
2283 # ------------------------------------------------------------------------------
2284 systemd_shutdown_SOURCES = \
2287 src/core/shutdown.c \
2288 src/core/mount-setup.c \
2289 src/core/mount-setup.h \
2290 src/core/killall.h \
2293 systemd_shutdown_LDADD = \
2296 # ------------------------------------------------------------------------------
2298 systemd_modules_load_SOURCES = \
2299 src/modules-load/modules-load.c
2301 systemd_modules_load_CFLAGS = \
2305 systemd_modules_load_LDADD = \
2309 rootlibexec_PROGRAMS += \
2310 systemd-modules-load
2312 nodist_systemunit_DATA += \
2313 units/systemd-modules-load.service
2315 SYSINIT_TARGET_WANTS += \
2316 systemd-modules-load.service
2319 nodist_systemunit_DATA += \
2320 units/kmod-static-nodes.service
2322 SYSINIT_TARGET_WANTS += \
2323 kmod-static-nodes.service
2328 units/systemd-modules-load.service.in \
2329 units/kmod-static-nodes.service.in
2331 # ------------------------------------------------------------------------------
2333 systemd_tmpfiles_SOURCES = \
2334 src/tmpfiles/tmpfiles.c
2336 systemd_tmpfiles_LDADD = \
2339 rootbin_PROGRAMS += \
2342 dist_systemunit_DATA += \
2343 units/systemd-tmpfiles-clean.timer
2345 nodist_systemunit_DATA += \
2346 units/systemd-tmpfiles-setup-dev.service \
2347 units/systemd-tmpfiles-setup.service \
2348 units/systemd-tmpfiles-clean.service
2350 nodist_tmpfiles_DATA = \
2351 tmpfiles.d/systemd.conf \
2354 dist_tmpfiles_DATA = \
2355 tmpfiles.d/systemd-nologin.conf \
2356 tmpfiles.d/tmp.conf \
2357 tmpfiles.d/x11.conf \
2358 tmpfiles.d/var.conf \
2359 tmpfiles.d/home.conf \
2360 tmpfiles.d/systemd-nspawn.conf \
2361 tmpfiles.d/journal-nocow.conf
2364 dist_tmpfiles_DATA += \
2365 tmpfiles.d/legacy.conf
2368 SYSINIT_TARGET_WANTS += \
2369 systemd-tmpfiles-setup-dev.service \
2370 systemd-tmpfiles-setup.service
2372 dist_zshcompletion_data += \
2373 shell-completion/zsh/_systemd-tmpfiles
2375 TIMERS_TARGET_WANTS += \
2376 systemd-tmpfiles-clean.timer
2380 $(sysconfdir)/tmpfiles.d
2384 tmpfiles.d/systemd.conf.m4 \
2385 tmpfiles.d/etc.conf.m4 \
2386 units/systemd-tmpfiles-setup-dev.service.in \
2387 units/systemd-tmpfiles-setup.service.in \
2388 units/systemd-tmpfiles-clean.service.in
2390 # ------------------------------------------------------------------------------
2392 systemd_sysusers_SOURCES = \
2393 src/sysusers/sysusers.c
2395 systemd_sysusers_LDADD = \
2398 rootbin_PROGRAMS += \
2401 nodist_systemunit_DATA += \
2402 units/systemd-sysusers.service
2404 SYSINIT_TARGET_WANTS += \
2405 systemd-sysusers.service
2407 nodist_sysusers_DATA = \
2408 sysusers.d/systemd.conf \
2409 sysusers.d/basic.conf
2412 nodist_sysusers_DATA += \
2413 sysusers.d/systemd-remote.conf
2421 units/systemd-sysusers.service.in \
2422 sysusers.d/systemd.conf.m4 \
2423 sysusers.d/systemd-remote.conf.m4 \
2424 sysusers.d/basic.conf.in
2426 # ------------------------------------------------------------------------------
2427 dist_factory_etc_DATA = \
2428 factory/etc/nsswitch.conf
2431 dist_factory_pam_DATA = \
2432 factory/etc/pam.d/system-auth \
2433 factory/etc/pam.d/other
2436 # ------------------------------------------------------------------------------
2438 systemd_firstboot_SOURCES = \
2439 src/firstboot/firstboot.c
2441 systemd_firstboot_LDADD = \
2445 rootbin_PROGRAMS += \
2448 nodist_systemunit_DATA += \
2449 units/systemd-firstboot.service
2451 SYSINIT_TARGET_WANTS += \
2452 systemd-firstboot.service
2456 units/systemd-firstboot.service.in
2458 # ------------------------------------------------------------------------------
2459 systemd_machine_id_setup_SOURCES = \
2460 src/machine-id-setup/machine-id-setup-main.c \
2461 src/core/machine-id-setup.c \
2462 src/core/machine-id-setup.h
2464 systemd_machine_id_setup_LDADD = \
2467 SYSINIT_TARGET_WANTS += \
2468 systemd-machine-id-commit.service
2470 # ------------------------------------------------------------------------------
2471 systemd_sysctl_SOURCES = \
2474 systemd_sysctl_LDADD = \
2477 # ------------------------------------------------------------------------------
2478 systemd_sleep_SOURCES = \
2481 systemd_sleep_LDADD = \
2484 # ------------------------------------------------------------------------------
2485 systemd_fsck_SOURCES = \
2488 systemd_fsck_LDADD = \
2491 # ------------------------------------------------------------------------------
2492 systemd_ac_power_SOURCES = \
2493 src/ac-power/ac-power.c
2495 systemd_ac_power_LDADD = \
2498 # ------------------------------------------------------------------------------
2499 systemd_detect_virt_SOURCES = \
2500 src/detect-virt/detect-virt.c
2502 systemd_detect_virt_LDADD = \
2505 INSTALL_EXEC_HOOKS += \
2506 systemd-detect-virt-install-hook
2508 # ------------------------------------------------------------------------------
2509 systemd_delta_SOURCES = \
2512 systemd_delta_LDADD = \
2515 # ------------------------------------------------------------------------------
2516 systemd_getty_generator_SOURCES = \
2517 src/getty-generator/getty-generator.c
2519 systemd_getty_generator_LDADD = \
2522 # ------------------------------------------------------------------------------
2523 systemd_debug_generator_SOURCES = \
2524 src/debug-generator/debug-generator.c
2526 systemd_debug_generator_LDADD = \
2529 # ------------------------------------------------------------------------------
2530 systemd_fstab_generator_SOURCES = \
2531 src/fstab-generator/fstab-generator.c \
2532 src/core/mount-setup.c
2534 systemd_fstab_generator_LDADD = \
2537 # ------------------------------------------------------------------------------
2538 systemd_system_update_generator_SOURCES = \
2539 src/system-update-generator/system-update-generator.c
2541 systemd_system_update_generator_LDADD = \
2544 # ------------------------------------------------------------------------------
2546 systemgenerator_PROGRAMS += \
2547 systemd-hibernate-resume-generator
2549 rootlibexec_PROGRAMS += \
2550 systemd-hibernate-resume
2552 systemd_hibernate_resume_SOURCES = \
2553 src/hibernate-resume/hibernate-resume.c
2555 systemd_hibernate_resume_LDADD = \
2558 systemd_hibernate_resume_generator_SOURCES = \
2559 src/hibernate-resume/hibernate-resume-generator.c
2561 systemd_hibernate_resume_generator_LDADD = \
2564 dist_systemunit_DATA += \
2565 units/hibernate.target \
2566 units/hybrid-sleep.target
2568 nodist_systemunit_DATA += \
2569 units/systemd-hibernate.service \
2570 units/systemd-hibernate-resume@.service \
2571 units/systemd-hybrid-sleep.service
2575 units/systemd-hibernate.service.in \
2576 units/systemd-hibernate-resume@.service.in \
2577 units/systemd-hybrid-sleep.service.in
2579 # ------------------------------------------------------------------------------
2585 bootctl_CPPFLAGS = \
2587 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2588 -DBOOTLIBDIR=\"$(bootlibdir)\"
2601 dist_bashcompletion_data += \
2602 shell-completion/bash/bootctl
2604 dist_zshcompletion_data += \
2605 shell-completion/zsh/_bootctl
2608 # ------------------------------------------------------------------------------
2612 -I$(top_builddir) -include config.h \
2613 -I$(EFI_INC_DIR)/efi \
2614 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2615 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2628 -fno-strict-aliasing \
2629 -fno-stack-protector \
2631 -Wno-missing-field-initializers
2638 -DEFI_FUNCTION_WRAPPER \
2639 -DGNU_EFI_USE_MS_ABI
2650 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2656 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2658 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2659 # and add required symbols manually.
2661 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2662 EFI_FORMAT = -O binary
2664 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2669 # ------------------------------------------------------------------------------
2670 systemd_boot_headers = \
2671 src/boot/efi/util.h \
2672 src/boot/efi/console.h \
2673 src/boot/efi/graphics.h \
2674 src/boot/efi/pefile.h \
2675 src/boot/efi/measure.h \
2678 systemd_boot_sources = \
2679 src/boot/efi/util.c \
2680 src/boot/efi/console.c \
2681 src/boot/efi/graphics.c \
2682 src/boot/efi/pefile.c \
2683 src/boot/efi/disk.c \
2684 src/boot/efi/measure.c \
2687 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2689 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2690 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2691 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2695 bootlib_DATA = $(systemd_boot)
2697 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2698 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2699 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2701 $(systemd_boot_solib): $(systemd_boot_objects)
2702 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2703 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2704 nm -D -u $@ | grep ' U ' && exit 1 || :
2706 $(systemd_boot): $(systemd_boot_solib)
2707 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2708 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2712 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2714 # ------------------------------------------------------------------------------
2716 src/boot/efi/util.h \
2717 src/boot/efi/pefile.h \
2718 src/boot/efi/disk.h \
2719 src/boot/efi/graphics.h \
2720 src/boot/efi/splash.h \
2721 src/boot/efi/measure.h \
2722 src/boot/efi/linux.h
2725 src/boot/efi/util.c \
2726 src/boot/efi/pefile.c \
2727 src/boot/efi/disk.c \
2728 src/boot/efi/graphics.c \
2729 src/boot/efi/splash.c \
2730 src/boot/efi/linux.c \
2731 src/boot/efi/measure.c \
2739 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2740 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2741 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2745 bootlib_DATA += $(stub)
2747 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2748 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2749 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2751 $(stub_solib): $(stub_objects)
2752 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2753 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2754 nm -D -u $@ | grep ' U ' && exit 1 || :
2756 $(stub): $(stub_solib)
2757 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2758 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2762 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2765 # ------------------------------------------------------------------------------
2766 CLEANFILES += test-efi-disk.img
2768 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2769 $(AM_V_GEN)test/test-efi-create-disk.sh
2771 test-efi: test-efi-disk.img
2772 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2774 EXTRA_DIST += test/test-efi-create-disk.sh
2776 # ------------------------------------------------------------------------------
2778 systemgenerator_PROGRAMS += \
2779 systemd-gpt-auto-generator
2781 systemd_gpt_auto_generator_SOURCES = \
2782 src/gpt-auto-generator/gpt-auto-generator.c \
2783 src/basic/blkid-util.h
2785 systemd_gpt_auto_generator_LDADD = \
2789 systemd_gpt_auto_generator_CFLAGS = \
2794 # ------------------------------------------------------------------------------
2795 systemgenerator_PROGRAMS += \
2796 systemd-dbus1-generator
2798 systemd_dbus1_generator_SOURCES = \
2799 src/dbus1-generator/dbus1-generator.c
2801 systemd_dbus1_generator_LDADD = \
2804 dbus1-generator-install-hook:
2805 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2806 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2807 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2809 dbus1-generator-uninstall-hook:
2810 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2812 dist_xinitrc_SCRIPTS = \
2813 xorg/50-systemd-user.sh
2815 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2816 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2818 # ------------------------------------------------------------------------------
2819 systemd_sysv_generator_SOURCES = \
2820 src/sysv-generator/sysv-generator.c
2822 systemd_sysv_generator_LDADD = \
2825 # ------------------------------------------------------------------------------
2826 systemd_rc_local_generator_SOURCES = \
2827 src/rc-local-generator/rc-local-generator.c
2829 systemd_rc_local_generator_LDADD = \
2832 # ------------------------------------------------------------------------------
2833 systemd_remount_fs_SOURCES = \
2834 src/remount-fs/remount-fs.c \
2835 src/core/mount-setup.c \
2836 src/core/mount-setup.h
2838 systemd_remount_fs_LDADD = \
2841 # ------------------------------------------------------------------------------
2842 systemd_cgroups_agent_SOURCES = \
2843 src/cgroups-agent/cgroups-agent.c
2845 systemd_cgroups_agent_LDADD = \
2848 # ------------------------------------------------------------------------------
2849 systemd_escape_SOURCES = \
2852 systemd_escape_LDADD = \
2855 # -----------------------------------------------------------------------------
2856 systemctl_SOURCES = \
2857 src/systemctl/systemctl.c
2862 # ------------------------------------------------------------------------------
2863 systemd_notify_SOURCES = \
2866 systemd_notify_LDADD = \
2869 # ------------------------------------------------------------------------------
2870 systemd_path_SOURCES = \
2873 systemd_path_LDADD = \
2876 # ------------------------------------------------------------------------------
2877 systemd_ask_password_SOURCES = \
2878 src/ask-password/ask-password.c
2880 systemd_ask_password_LDADD = \
2883 # ------------------------------------------------------------------------------
2884 systemd_reply_password_SOURCES = \
2885 src/reply-password/reply-password.c
2887 systemd_reply_password_LDADD = \
2890 # ------------------------------------------------------------------------------
2891 systemd_cgls_SOURCES = \
2894 systemd_cgls_LDADD = \
2897 # ------------------------------------------------------------------------------
2898 systemd_cgtop_SOURCES = \
2901 systemd_cgtop_LDADD = \
2904 # ------------------------------------------------------------------------------
2905 systemd_nspawn_SOURCES = \
2906 src/nspawn/nspawn.c \
2907 src/nspawn/nspawn-settings.c \
2908 src/nspawn/nspawn-settings.h \
2909 src/nspawn/nspawn-mount.c \
2910 src/nspawn/nspawn-mount.h \
2911 src/nspawn/nspawn-network.c \
2912 src/nspawn/nspawn-network.h \
2913 src/nspawn/nspawn-expose-ports.c \
2914 src/nspawn/nspawn-expose-ports.h \
2915 src/nspawn/nspawn-cgroup.c \
2916 src/nspawn/nspawn-cgroup.h \
2917 src/nspawn/nspawn-register.c \
2918 src/nspawn/nspawn-register.h \
2919 src/nspawn/nspawn-setuid.c \
2920 src/nspawn/nspawn-setuid.h \
2921 src/nspawn/nspawn-stub-pid1.c \
2922 src/nspawn/nspawn-stub-pid1.h \
2923 src/core/mount-setup.c \
2924 src/core/mount-setup.h \
2925 src/core/loopback-setup.c \
2926 src/core/loopback-setup.h
2928 nodist_systemd_nspawn_SOURCES = \
2929 src/nspawn/nspawn-gperf.c
2931 gperf_gperf_sources += \
2932 src/nspawn/nspawn-gperf.gperf
2934 systemd_nspawn_CFLAGS = \
2939 systemd_nspawn_LDADD = \
2944 systemd_nspawn_LDADD += \
2948 # ------------------------------------------------------------------------------
2949 systemd_run_SOURCES = \
2952 systemd_run_LDADD = \
2955 # ------------------------------------------------------------------------------
2956 noinst_LTLIBRARIES += \
2957 libbus-proxy-core.la
2959 libbus_proxy_core_la_SOURCES = \
2960 src/bus-proxyd/bus-xml-policy.c \
2961 src/bus-proxyd/bus-xml-policy.h \
2962 src/bus-proxyd/driver.c \
2963 src/bus-proxyd/driver.h \
2964 src/bus-proxyd/proxy.c \
2965 src/bus-proxyd/proxy.h \
2966 src/bus-proxyd/synthesize.c \
2967 src/bus-proxyd/synthesize.h
2969 libbus_proxy_core_la_LIBADD = \
2972 systemd_bus_proxyd_SOURCES = \
2973 src/bus-proxyd/bus-proxyd.c
2975 systemd_bus_proxyd_LDADD = \
2976 libbus-proxy-core.la \
2979 systemd_stdio_bridge_SOURCES = \
2980 src/bus-proxyd/stdio-bridge.c
2982 systemd_stdio_bridge_LDADD = \
2983 libbus-proxy-core.la \
2986 nodist_systemunit_DATA += \
2987 units/systemd-bus-proxyd.service
2989 dist_systemunit_DATA += \
2990 units/systemd-bus-proxyd.socket
2992 nodist_userunit_DATA += \
2993 units/user/systemd-bus-proxyd.service
2995 dist_userunit_DATA += \
2996 units/user/systemd-bus-proxyd.socket
2999 units/systemd-bus-proxyd.service.m4.in \
3000 units/user/systemd-bus-proxyd.service.in
3003 bus-proxyd-set-cap-hook:
3004 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
3006 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
3009 # ------------------------------------------------------------------------------
3010 systemd_tty_ask_password_agent_SOURCES = \
3011 src/tty-ask-password-agent/tty-ask-password-agent.c
3013 systemd_tty_ask_password_agent_LDADD = \
3016 # ------------------------------------------------------------------------------
3017 libsystemd_internal_la_SOURCES = \
3018 src/systemd/sd-bus.h \
3019 src/systemd/sd-bus-protocol.h \
3020 src/systemd/sd-bus-vtable.h \
3021 src/systemd/sd-utf8.h \
3022 src/systemd/sd-event.h \
3023 src/systemd/sd-netlink.h \
3024 src/systemd/sd-resolve.h \
3025 src/systemd/sd-login.h \
3026 src/systemd/sd-id128.h \
3027 src/systemd/sd-daemon.h \
3028 src/systemd/sd-path.h \
3029 src/systemd/sd-network.h \
3030 src/systemd/sd-hwdb.h \
3031 src/systemd/sd-device.h \
3032 src/libsystemd/libsystemd.sym \
3033 src/libsystemd/sd-bus/sd-bus.c \
3034 src/libsystemd/sd-bus/bus-control.c \
3035 src/libsystemd/sd-bus/bus-control.h \
3036 src/libsystemd/sd-bus/bus-error.c \
3037 src/libsystemd/sd-bus/bus-error.h \
3038 src/libsystemd/sd-bus/bus-common-errors.h \
3039 src/libsystemd/sd-bus/bus-common-errors.c \
3040 src/libsystemd/sd-bus/bus-internal.c \
3041 src/libsystemd/sd-bus/bus-internal.h \
3042 src/libsystemd/sd-bus/bus-socket.c \
3043 src/libsystemd/sd-bus/bus-socket.h \
3044 src/libsystemd/sd-bus/bus-kernel.c \
3045 src/libsystemd/sd-bus/bus-kernel.h \
3046 src/libsystemd/sd-bus/bus-container.c \
3047 src/libsystemd/sd-bus/bus-container.h \
3048 src/libsystemd/sd-bus/bus-message.c \
3049 src/libsystemd/sd-bus/bus-message.h \
3050 src/libsystemd/sd-bus/bus-creds.c \
3051 src/libsystemd/sd-bus/bus-creds.h \
3052 src/libsystemd/sd-bus/bus-signature.c \
3053 src/libsystemd/sd-bus/bus-signature.h \
3054 src/libsystemd/sd-bus/bus-type.c \
3055 src/libsystemd/sd-bus/bus-type.h \
3056 src/libsystemd/sd-bus/bus-match.c \
3057 src/libsystemd/sd-bus/bus-match.h \
3058 src/libsystemd/sd-bus/bus-bloom.c \
3059 src/libsystemd/sd-bus/bus-bloom.h \
3060 src/libsystemd/sd-bus/bus-introspect.c \
3061 src/libsystemd/sd-bus/bus-introspect.h \
3062 src/libsystemd/sd-bus/bus-objects.c \
3063 src/libsystemd/sd-bus/bus-objects.h \
3064 src/libsystemd/sd-bus/bus-gvariant.c \
3065 src/libsystemd/sd-bus/bus-gvariant.h \
3066 src/libsystemd/sd-bus/bus-convenience.c \
3067 src/libsystemd/sd-bus/bus-track.c \
3068 src/libsystemd/sd-bus/bus-track.h \
3069 src/libsystemd/sd-bus/bus-slot.c \
3070 src/libsystemd/sd-bus/bus-slot.h \
3071 src/libsystemd/sd-bus/bus-protocol.h \
3072 src/libsystemd/sd-bus/kdbus.h \
3073 src/libsystemd/sd-bus/bus-dump.c \
3074 src/libsystemd/sd-bus/bus-dump.h \
3075 src/libsystemd/sd-utf8/sd-utf8.c \
3076 src/libsystemd/sd-event/sd-event.c \
3077 src/libsystemd/sd-netlink/sd-netlink.c \
3078 src/libsystemd/sd-netlink/netlink-internal.h \
3079 src/libsystemd/sd-netlink/netlink-message.c \
3080 src/libsystemd/sd-netlink/netlink-socket.c \
3081 src/libsystemd/sd-netlink/rtnl-message.c \
3082 src/libsystemd/sd-netlink/netlink-types.h \
3083 src/libsystemd/sd-netlink/netlink-types.c \
3084 src/libsystemd/sd-netlink/netlink-util.h \
3085 src/libsystemd/sd-netlink/netlink-util.c \
3086 src/libsystemd/sd-netlink/local-addresses.h \
3087 src/libsystemd/sd-netlink/local-addresses.c \
3088 src/libsystemd/sd-id128/sd-id128.c \
3089 src/libsystemd/sd-daemon/sd-daemon.c \
3090 src/libsystemd/sd-login/sd-login.c \
3091 src/libsystemd/sd-path/sd-path.c \
3092 src/libsystemd/sd-network/sd-network.c \
3093 src/libsystemd/sd-network/network-util.h \
3094 src/libsystemd/sd-network/network-util.c \
3095 src/libsystemd/sd-hwdb/sd-hwdb.c \
3096 src/libsystemd/sd-hwdb/hwdb-util.h \
3097 src/libsystemd/sd-hwdb/hwdb-internal.h \
3098 src/libsystemd/sd-device/device-internal.h \
3099 src/libsystemd/sd-device/device-util.h \
3100 src/libsystemd/sd-device/device-enumerator.c \
3101 src/libsystemd/sd-device/device-enumerator-private.h \
3102 src/libsystemd/sd-device/sd-device.c \
3103 src/libsystemd/sd-device/device-private.c \
3104 src/libsystemd/sd-device/device-private.h \
3105 src/libsystemd/sd-resolve/sd-resolve.c
3107 libsystemd_internal_la_LIBADD = \
3111 noinst_LTLIBRARIES += \
3112 libsystemd-internal.la
3115 src/libsystemd/libsystemd.pc.in \
3116 src/libsystemd/sd-bus/DIFFERENCES \
3117 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3119 libsystemd_la_SOURCES = \
3120 $(libsystemd_internal_la_SOURCES) \
3121 $(libsystemd_journal_internal_la_SOURCES)
3123 nodist_libsystemd_la_SOURCES = \
3124 $(nodist_libsystemd_internal_la_SOURCES)
3126 libsystemd_la_CFLAGS = \
3127 $(libsystemd_internal_la_CFLAGS) \
3128 $(libsystemd_journal_internal_la_CFLAGS)
3130 libsystemd_la_LDFLAGS = \
3132 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3133 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3135 libsystemd_la_LIBADD = \
3136 $(libsystemd_internal_la_LIBADD) \
3137 $(libsystemd_journal_internal_la_LIBADD)
3139 libsystemd-install-hook:
3140 libname=libsystemd.so && $(move-to-rootlibdir)
3142 libsystemd-uninstall-hook:
3143 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3145 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3146 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3148 pkgconfiglib_DATA += \
3149 src/libsystemd/libsystemd.pc
3151 pkginclude_HEADERS += \
3152 src/systemd/sd-bus.h \
3153 src/systemd/sd-bus-protocol.h \
3154 src/systemd/sd-bus-vtable.h \
3155 src/systemd/sd-event.h \
3156 src/systemd/sd-login.h \
3157 src/systemd/sd-id128.h \
3158 src/systemd/sd-daemon.h
3160 lib_LTLIBRARIES += \
3165 test-bus-signature \
3166 test-bus-benchmark \
3173 test-bus-kernel-bloom \
3174 test-bus-zero-copy \
3175 test-bus-introspect \
3182 test-local-addresses \
3188 test_bus_marshal_SOURCES = \
3189 src/libsystemd/sd-bus/test-bus-marshal.c
3191 test_bus_marshal_LDADD = \
3196 test_bus_marshal_CFLAGS = \
3201 test_bus_signature_SOURCES = \
3202 src/libsystemd/sd-bus/test-bus-signature.c
3204 test_bus_signature_LDADD = \
3207 test_bus_chat_SOURCES = \
3208 src/libsystemd/sd-bus/test-bus-chat.c
3210 test_bus_chat_LDADD = \
3213 test_bus_cleanup_SOURCES = \
3214 src/libsystemd/sd-bus/test-bus-cleanup.c
3216 test_bus_cleanup_CFLAGS = \
3220 test_bus_cleanup_LDADD = \
3223 test_bus_server_SOURCES = \
3224 src/libsystemd/sd-bus/test-bus-server.c
3226 test_bus_server_LDADD = \
3229 test_bus_objects_SOURCES = \
3230 src/libsystemd/sd-bus/test-bus-objects.c
3232 test_bus_objects_LDADD = \
3235 test_bus_error_SOURCES = \
3236 src/libsystemd/sd-bus/test-bus-error.c
3238 test_bus_error_LDADD = \
3241 test_bus_gvariant_SOURCES = \
3242 src/libsystemd/sd-bus/test-bus-gvariant.c
3244 test_bus_gvariant_LDADD = \
3248 test_bus_gvariant_CFLAGS = \
3252 test_bus_creds_SOURCES = \
3253 src/libsystemd/sd-bus/test-bus-creds.c
3255 test_bus_creds_LDADD = \
3258 test_bus_match_SOURCES = \
3259 src/libsystemd/sd-bus/test-bus-match.c
3261 test_bus_match_LDADD = \
3264 test_bus_proxy_SOURCES = \
3265 src/libsystemd/sd-bus/test-bus-proxy.c
3267 test_bus_proxy_LDADD = \
3270 test_bus_kernel_SOURCES = \
3271 src/libsystemd/sd-bus/test-bus-kernel.c
3273 test_bus_kernel_LDADD = \
3276 test_bus_kernel_bloom_SOURCES = \
3277 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3279 test_bus_kernel_bloom_LDADD = \
3282 test_bus_benchmark_SOURCES = \
3283 src/libsystemd/sd-bus/test-bus-benchmark.c
3285 test_bus_benchmark_LDADD = \
3288 test_bus_zero_copy_SOURCES = \
3289 src/libsystemd/sd-bus/test-bus-zero-copy.c
3291 test_bus_zero_copy_LDADD = \
3294 test_bus_introspect_SOURCES = \
3295 src/libsystemd/sd-bus/test-bus-introspect.c
3297 test_bus_introspect_LDADD = \
3300 test_event_SOURCES = \
3301 src/libsystemd/sd-event/test-event.c
3303 test_event_LDADD = \
3306 test_netlink_SOURCES = \
3307 src/libsystemd/sd-netlink/test-netlink.c
3309 test_netlink_LDADD = \
3312 test_local_addresses_SOURCES = \
3313 src/libsystemd/sd-netlink/test-local-addresses.c
3315 test_local_addresses_LDADD = \
3318 test_resolve_SOURCES = \
3319 src/libsystemd/sd-resolve/test-resolve.c
3321 test_resolve_LDADD = \
3325 src/libsystemd/sd-bus/busctl.c \
3326 src/libsystemd/sd-bus/busctl-introspect.c \
3327 src/libsystemd/sd-bus/busctl-introspect.h
3332 # ------------------------------------------------------------------------------
3333 noinst_LTLIBRARIES += \
3334 libsystemd-network.la
3336 libsystemd_network_la_CFLAGS = \
3340 libsystemd_network_la_SOURCES = \
3341 src/systemd/sd-dhcp-client.h \
3342 src/systemd/sd-dhcp-server.h \
3343 src/systemd/sd-dhcp-lease.h \
3344 src/systemd/sd-ipv4ll.h \
3345 src/systemd/sd-ipv4acd.h \
3346 src/systemd/sd-ndisc.h \
3347 src/systemd/sd-dhcp6-client.h \
3348 src/systemd/sd-dhcp6-lease.h \
3349 src/systemd/sd-lldp.h \
3350 src/libsystemd-network/sd-dhcp-client.c \
3351 src/libsystemd-network/sd-dhcp-server.c \
3352 src/libsystemd-network/dhcp-network.c \
3353 src/libsystemd-network/dhcp-option.c \
3354 src/libsystemd-network/dhcp-packet.c \
3355 src/libsystemd-network/dhcp-internal.h \
3356 src/libsystemd-network/dhcp-server-internal.h \
3357 src/libsystemd-network/dhcp-protocol.h \
3358 src/libsystemd-network/dhcp-lease-internal.h \
3359 src/libsystemd-network/sd-dhcp-lease.c \
3360 src/libsystemd-network/sd-ipv4ll.c \
3361 src/libsystemd-network/sd-ipv4acd.c \
3362 src/libsystemd-network/arp-util.h \
3363 src/libsystemd-network/arp-util.c \
3364 src/libsystemd-network/network-internal.c \
3365 src/libsystemd-network/network-internal.h \
3366 src/libsystemd-network/sd-ndisc.c \
3367 src/libsystemd-network/icmp6-util.h \
3368 src/libsystemd-network/icmp6-util.c \
3369 src/libsystemd-network/sd-dhcp6-client.c \
3370 src/libsystemd-network/dhcp6-internal.h \
3371 src/libsystemd-network/dhcp6-protocol.h \
3372 src/libsystemd-network/dhcp6-network.c \
3373 src/libsystemd-network/dhcp6-option.c \
3374 src/libsystemd-network/dhcp6-lease-internal.h \
3375 src/libsystemd-network/sd-dhcp6-lease.c \
3376 src/libsystemd-network/dhcp-identifier.h \
3377 src/libsystemd-network/dhcp-identifier.c \
3378 src/libsystemd-network/lldp.h \
3379 src/libsystemd-network/lldp-tlv.h \
3380 src/libsystemd-network/lldp-tlv.c \
3381 src/libsystemd-network/lldp-network.h \
3382 src/libsystemd-network/lldp-network.c \
3383 src/libsystemd-network/lldp-port.h \
3384 src/libsystemd-network/lldp-port.c \
3385 src/libsystemd-network/lldp-internal.h \
3386 src/libsystemd-network/lldp-internal.c \
3387 src/libsystemd-network/sd-lldp.c
3389 libsystemd_network_la_LIBADD = \
3392 test_dhcp_option_SOURCES = \
3393 src/libsystemd-network/dhcp-protocol.h \
3394 src/libsystemd-network/dhcp-internal.h \
3395 src/libsystemd-network/test-dhcp-option.c
3397 test_dhcp_option_LDADD = \
3398 libsystemd-network.la \
3401 test_dhcp_client_SOURCES = \
3402 src/systemd/sd-dhcp-client.h \
3403 src/libsystemd-network/dhcp-protocol.h \
3404 src/libsystemd-network/dhcp-internal.h \
3405 src/libsystemd-network/test-dhcp-client.c
3407 test_dhcp_client_LDADD = \
3408 libsystemd-network.la \
3411 test_dhcp_server_SOURCES = \
3412 src/libsystemd-network/test-dhcp-server.c
3414 test_dhcp_server_LDADD = \
3415 libsystemd-network.la \
3418 test_ipv4ll_SOURCES = \
3419 src/systemd/sd-ipv4ll.h \
3420 src/libsystemd-network/arp-util.h \
3421 src/libsystemd-network/test-ipv4ll.c
3423 test_ipv4ll_LDADD = \
3424 libsystemd-network.la \
3427 test_ipv4ll_manual_SOURCES = \
3428 src/systemd/sd-ipv4ll.h \
3429 src/libsystemd-network/test-ipv4ll-manual.c
3431 test_ipv4ll_manual_LDADD = \
3432 libsystemd-network.la \
3435 test_acd_SOURCES = \
3436 src/systemd/sd-ipv4acd.h \
3437 src/libsystemd-network/test-acd.c
3440 libsystemd-network.la \
3443 test_ndisc_rs_SOURCES = \
3444 src/systemd/sd-dhcp6-client.h \
3445 src/systemd/sd-ndisc.h \
3446 src/libsystemd-network/icmp6-util.h \
3447 src/libsystemd-network/test-ndisc-rs.c \
3448 src/libsystemd-network/dhcp-identifier.h \
3449 src/libsystemd-network/dhcp-identifier.c
3451 test_ndisc_rs_LDADD = \
3452 libsystemd-network.la \
3456 test_dhcp6_client_SOURCES = \
3457 src/systemd/sd-dhcp6-client.h \
3458 src/libsystemd-network/dhcp6-internal.h \
3459 src/libsystemd-network/test-dhcp6-client.c \
3460 src/libsystemd-network/dhcp-identifier.h \
3461 src/libsystemd-network/dhcp-identifier.c
3463 test_dhcp6_client_LDADD = \
3464 libsystemd-network.la \
3468 test_lldp_SOURCES = \
3469 src/libsystemd-network/lldp.h \
3470 src/libsystemd-network/lldp-tlv.h \
3471 src/libsystemd-network/lldp-tlv.c \
3472 src/libsystemd-network/test-lldp.c
3475 libsystemd-network.la \
3487 # ------------------------------------------------------------------------------
3488 include_HEADERS += \
3489 src/libudev/libudev.h
3491 lib_LTLIBRARIES += \
3494 libudev_la_SOURCES =\
3495 src/libudev/libudev.sym \
3496 src/libudev/libudev-private.h \
3497 src/libudev/libudev-device-internal.h \
3498 src/libudev/libudev.c \
3499 src/libudev/libudev-list.c \
3500 src/libudev/libudev-util.c \
3501 src/libudev/libudev-device.c \
3502 src/libudev/libudev-device-private.c \
3503 src/libudev/libudev-enumerate.c \
3504 src/libudev/libudev-monitor.c \
3505 src/libudev/libudev-queue.c \
3506 src/libudev/libudev-hwdb.c
3508 libudev_la_LDFLAGS = \
3510 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3511 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3513 libudev_la_LIBADD = \
3514 libsystemd-internal.la
3516 pkgconfiglib_DATA += \
3517 src/libudev/libudev.pc
3520 src/libudev/libudev.pc.in
3522 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3523 libudev-install-hook:
3524 libname=libudev.so && $(move-to-rootlibdir)
3526 libudev-uninstall-hook:
3527 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3529 INSTALL_EXEC_HOOKS += libudev-install-hook
3530 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3532 # ------------------------------------------------------------------------------
3533 noinst_LTLIBRARIES += \
3536 libudev_internal_la_SOURCES =\
3537 $(libudev_la_SOURCES)
3539 # ------------------------------------------------------------------------------
3541 $(sysconfdir)/udev/rules.d
3543 dist_network_DATA = \
3544 network/99-default.link \
3545 network/80-container-host0.network \
3546 network/80-container-ve.network
3548 dist_udevrules_DATA += \
3549 rules/50-udev-default.rules \
3550 rules/60-block.rules \
3551 rules/60-drm.rules \
3552 rules/60-evdev.rules \
3553 rules/60-persistent-storage-tape.rules \
3554 rules/60-persistent-input.rules \
3555 rules/60-persistent-alsa.rules \
3556 rules/60-persistent-storage.rules \
3557 rules/60-serial.rules \
3558 rules/64-btrfs.rules \
3559 rules/70-mouse.rules \
3560 rules/75-net-description.rules \
3561 rules/78-sound-card.rules \
3562 rules/80-net-setup-link.rules
3564 nodist_udevrules_DATA += \
3565 rules/99-systemd.rules
3567 udevconfdir = $(sysconfdir)/udev
3568 dist_udevconf_DATA = \
3571 pkgconfigdata_DATA += \
3575 rules/99-systemd.rules.in \
3579 units/systemd-udevd.service.in \
3580 units/systemd-udev-trigger.service.in \
3581 units/systemd-udev-settle.service.in
3583 SOCKETS_TARGET_WANTS += \
3584 systemd-udevd-control.socket \
3585 systemd-udevd-kernel.socket
3587 SYSINIT_TARGET_WANTS += \
3588 systemd-udevd.service \
3589 systemd-udev-trigger.service
3591 rootbin_PROGRAMS += \
3594 rootlibexec_PROGRAMS += \
3597 noinst_LTLIBRARIES += \
3600 src/udev/keyboard-keys-list.txt:
3601 $(AM_V_at)$(MKDIR_P) $(dir $@)
3602 $(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 } }' > $@
3604 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3605 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3607 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3608 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3610 gperf_txt_sources += \
3611 src/udev/keyboard-keys-list.txt
3613 libudev_core_la_SOURCES = \
3615 src/udev/udev-event.c \
3616 src/udev/udev-watch.c \
3617 src/udev/udev-node.c \
3618 src/udev/udev-rules.c \
3619 src/udev/udev-ctrl.c \
3620 src/udev/udev-builtin.c \
3621 src/udev/udev-builtin-btrfs.c \
3622 src/udev/udev-builtin-hwdb.c \
3623 src/udev/udev-builtin-input_id.c \
3624 src/udev/udev-builtin-keyboard.c \
3625 src/udev/udev-builtin-net_id.c \
3626 src/udev/udev-builtin-net_setup_link.c \
3627 src/udev/udev-builtin-path_id.c \
3628 src/udev/udev-builtin-usb_id.c \
3629 src/udev/net/link-config.h \
3630 src/udev/net/link-config.c \
3631 src/udev/net/ethtool-util.h \
3632 src/udev/net/ethtool-util.c
3634 nodist_libudev_core_la_SOURCES = \
3635 src/udev/keyboard-keys-from-name.h \
3636 src/udev/net/link-config-gperf.c
3638 gperf_gperf_sources += \
3639 src/udev/net/link-config-gperf.gperf
3641 libudev_core_la_CFLAGS = \
3646 libudev_core_la_LIBADD = \
3647 libsystemd-network.la \
3653 libudev_core_la_SOURCES += \
3654 src/udev/udev-builtin-kmod.c
3656 dist_udevrules_DATA += \
3657 rules/80-drivers.rules
3661 libudev_core_la_SOURCES += \
3662 src/udev/udev-builtin-blkid.c
3666 libudev_core_la_SOURCES += \
3667 src/udev/udev-builtin-uaccess.c \
3668 src/login/logind-acl.c \
3669 src/libsystemd/sd-login/sd-login.c \
3670 src/systemd/sd-login.h
3673 systemd_udevd_SOURCES = \
3676 systemd_udevd_LDADD = \
3680 src/udev/udevadm.c \
3681 src/udev/udevadm-info.c \
3682 src/udev/udevadm-control.c \
3683 src/udev/udevadm-monitor.c \
3684 src/udev/udevadm-hwdb.c \
3685 src/udev/udevadm-settle.c \
3686 src/udev/udevadm-trigger.c \
3687 src/udev/udevadm-test.c \
3688 src/udev/udevadm-test-builtin.c \
3689 src/udev/udevadm-util.c \
3690 src/udev/udevadm-util.h
3695 # ------------------------------------------------------------------------------
3698 $(sysconfdir)/udev/hwdb.d
3700 systemd_hwdb_SOURCES = \
3701 src/libsystemd/sd-hwdb/hwdb-internal.h \
3704 systemd_hwdb_LDADD = \
3707 rootbin_PROGRAMS += \
3710 dist_udevhwdb_DATA = \
3711 hwdb/20-pci-vendor-model.hwdb \
3712 hwdb/20-pci-classes.hwdb \
3713 hwdb/20-usb-vendor-model.hwdb \
3714 hwdb/20-usb-classes.hwdb \
3715 hwdb/20-sdio-vendor-model.hwdb \
3716 hwdb/20-sdio-classes.hwdb \
3717 hwdb/20-bluetooth-vendor-product.hwdb \
3718 hwdb/20-acpi-vendor.hwdb \
3720 hwdb/20-net-ifname.hwdb \
3721 hwdb/60-evdev.hwdb \
3722 hwdb/60-keyboard.hwdb \
3723 hwdb/70-mouse.hwdb \
3724 hwdb/70-pointingstick.hwdb
3726 SYSINIT_TARGET_WANTS += \
3727 systemd-hwdb-update.service
3729 # Update hwdb on installation. Do not bother if installing
3730 # in DESTDIR, since this is likely for packaging purposes.
3732 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3734 INSTALL_DATA_HOOKS += \
3738 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3742 units/systemd-hwdb-update.service.in \
3743 hwdb/ids-update.pl \
3746 # ------------------------------------------------------------------------------
3753 test/rule-syntax-check.py
3757 test/sysv-generator-test.py
3766 test_libudev_SOURCES = \
3767 src/test/test-libudev.c
3769 test_libudev_LDADD = \
3772 test_udev_SOURCES = \
3773 src/test/test-udev.c
3785 # packed sysfs test tree
3787 $(AM_V_at)$(MKDIR_P) $(dir $@)
3788 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3792 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3797 test/rule-syntax-check.py \
3798 test/sysv-generator-test.py \
3801 # ------------------------------------------------------------------------------
3803 src/udev/ata_id/ata_id.c
3808 udevlibexec_PROGRAMS += \
3811 # ------------------------------------------------------------------------------
3812 cdrom_id_SOURCES = \
3813 src/udev/cdrom_id/cdrom_id.c
3818 udevlibexec_PROGRAMS += \
3821 dist_udevrules_DATA += \
3822 rules/60-cdrom_id.rules
3824 # ------------------------------------------------------------------------------
3826 src/udev/collect/collect.c
3831 udevlibexec_PROGRAMS += \
3834 # ------------------------------------------------------------------------------
3836 src/udev/scsi_id/scsi_id.c \
3837 src/udev/scsi_id/scsi_serial.c \
3838 src/udev/scsi_id/scsi.h \
3839 src/udev/scsi_id/scsi_id.h
3844 udevlibexec_PROGRAMS += \
3848 src/udev/scsi_id/README
3850 # ------------------------------------------------------------------------------
3852 src/udev/v4l_id/v4l_id.c
3857 udevlibexec_PROGRAMS += \
3860 dist_udevrules_DATA += \
3861 rules/60-persistent-v4l.rules
3863 # ------------------------------------------------------------------------------
3864 mtd_probe_SOURCES = \
3865 src/udev/mtd_probe/mtd_probe.c \
3866 src/udev/mtd_probe/mtd_probe.h \
3867 src/udev/mtd_probe/probe_smartmedia.c
3869 dist_udevrules_DATA += \
3870 rules/75-probe_mtd.rules
3872 udevlibexec_PROGRAMS += \
3875 # ------------------------------------------------------------------------------
3876 test_id128_SOURCES = \
3877 src/test/test-id128.c
3879 test_id128_LDADD = \
3885 # ------------------------------------------------------------------------------
3887 rootlibexec_PROGRAMS += \
3890 systemd_activate_SOURCES = \
3891 src/activate/activate.c
3893 systemd_activate_LDADD = \
3896 # ------------------------------------------------------------------------------
3897 systemd_journald_SOURCES = \
3898 src/journal/journald.c \
3899 src/journal/journald-server.h
3901 systemd_journald_LDADD = \
3902 libjournal-core.la \
3905 systemd_cat_SOURCES = \
3908 systemd_cat_LDADD = \
3912 rootlibexec_PROGRAMS += \
3913 systemd-journal-remote
3915 systemd_journal_remote_SOURCES = \
3916 src/journal-remote/journal-remote-parse.h \
3917 src/journal-remote/journal-remote-parse.c \
3918 src/journal-remote/journal-remote-write.h \
3919 src/journal-remote/journal-remote-write.c \
3920 src/journal-remote/journal-remote.h \
3921 src/journal-remote/journal-remote.c
3923 systemd_journal_remote_LDADD = \
3926 systemd_journal_remote_SOURCES += \
3927 src/journal-remote/microhttpd-util.h \
3928 src/journal-remote/microhttpd-util.c
3930 systemd_journal_remote_CFLAGS = \
3932 $(MICROHTTPD_CFLAGS)
3934 systemd_journal_remote_LDADD += \
3938 dist_tmpfiles_DATA += \
3939 tmpfiles.d/systemd-remote.conf
3943 systemd_journal_remote_LDADD += \
3947 # systemd-journal-remote make sense mostly with full crypto stack
3948 dist_systemunit_DATA += \
3949 units/systemd-journal-remote.socket
3951 nodist_systemunit_DATA += \
3952 units/systemd-journal-remote.service
3954 journal-remote-install-hook: journal-install-hook
3955 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3956 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3957 -chmod 755 $(DESTDIR)/var/log/journal/remote
3959 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3961 nodist_pkgsysconf_DATA += \
3962 src/journal-remote/journal-remote.conf
3965 units/systemd-journal-remote.service.in \
3966 src/journal-remote/journal-remote.conf.in \
3967 src/journal-remote/log-generator.py
3971 rootlibexec_PROGRAMS += \
3972 systemd-journal-upload
3974 systemd_journal_upload_SOURCES = \
3975 src/journal-remote/journal-upload.h \
3976 src/journal-remote/journal-upload.c \
3977 src/journal-remote/journal-upload-journal.c
3979 systemd_journal_upload_CFLAGS = \
3983 systemd_journal_upload_LDADD = \
3987 nodist_systemunit_DATA += \
3988 units/systemd-journal-upload.service
3990 nodist_pkgsysconf_DATA += \
3991 src/journal-remote/journal-upload.conf
3995 units/systemd-journal-upload.service.in \
3996 src/journal-remote/journal-upload.conf.in
3998 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3999 journalctl_CFLAGS = \
4002 journalctl_SOURCES = \
4003 src/journal/journalctl.c
4005 journalctl_LDADD = \
4010 journalctl_SOURCES += \
4011 src/journal/journal-qrcode.c \
4012 src/journal/journal-qrcode.h
4014 journalctl_CFLAGS += \
4017 journalctl_LDADD += \
4021 test_journal_SOURCES = \
4022 src/journal/test-journal.c
4024 test_journal_LDADD = \
4027 test_journal_send_SOURCES = \
4028 src/journal/test-journal-send.c
4030 test_journal_send_LDADD = \
4033 test_journal_syslog_SOURCES = \
4034 src/journal/test-journal-syslog.c
4036 test_journal_syslog_LDADD = \
4039 test_journal_match_SOURCES = \
4040 src/journal/test-journal-match.c
4042 test_journal_match_LDADD = \
4045 test_journal_enum_SOURCES = \
4046 src/journal/test-journal-enum.c
4048 test_journal_enum_LDADD = \
4051 test_journal_stream_SOURCES = \
4052 src/journal/test-journal-stream.c
4054 test_journal_stream_LDADD = \
4057 test_journal_flush_SOURCES = \
4058 src/journal/test-journal-flush.c
4060 test_journal_flush_LDADD = \
4063 test_journal_init_SOURCES = \
4064 src/journal/test-journal-init.c
4066 test_journal_init_LDADD = \
4069 test_journal_verify_SOURCES = \
4070 src/journal/test-journal-verify.c
4072 test_journal_verify_LDADD = \
4075 test_journal_interleaving_SOURCES = \
4076 src/journal/test-journal-interleaving.c
4078 test_journal_interleaving_LDADD = \
4081 test_mmap_cache_SOURCES = \
4082 src/journal/test-mmap-cache.c
4084 test_mmap_cache_LDADD = \
4087 test_catalog_SOURCES = \
4088 src/journal/test-catalog.c
4090 test_catalog_CPPFLAGS = \
4092 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4094 test_catalog_LDADD = \
4097 test_compress_SOURCES = \
4098 src/journal/test-compress.c
4100 test_compress_LDADD = \
4103 test_compress_benchmark_SOURCES = \
4104 src/journal/test-compress-benchmark.c
4106 test_compress_benchmark_LDADD = \
4109 test_audit_type_SOURCES = \
4110 src/journal/test-audit-type.c
4112 test_audit_type_LDADD = \
4115 libjournal_core_la_SOURCES = \
4116 src/journal/journald-kmsg.c \
4117 src/journal/journald-kmsg.h \
4118 src/journal/journald-syslog.c \
4119 src/journal/journald-syslog.h \
4120 src/journal/journald-stream.c \
4121 src/journal/journald-stream.h \
4122 src/journal/journald-server.c \
4123 src/journal/journald-server.h \
4124 src/journal/journald-console.c \
4125 src/journal/journald-console.h \
4126 src/journal/journald-wall.c \
4127 src/journal/journald-wall.h \
4128 src/journal/journald-native.c \
4129 src/journal/journald-native.h \
4130 src/journal/journald-audit.c \
4131 src/journal/journald-audit.h \
4132 src/journal/journald-rate-limit.c \
4133 src/journal/journald-rate-limit.h \
4134 src/journal/journal-internal.h
4136 nodist_libjournal_core_la_SOURCES = \
4137 src/journal/journald-gperf.c
4139 libjournal_core_la_LIBADD = \
4142 noinst_LTLIBRARIES += \
4145 journal-install-hook:
4146 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4147 -chown 0:0 $(DESTDIR)/var/log/journal
4148 -chmod 755 $(DESTDIR)/var/log/journal
4149 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4150 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4152 journal-uninstall-hook:
4153 -rmdir $(DESTDIR)/var/log/journal/remote
4154 -rmdir $(DESTDIR)/var/log/journal/
4156 INSTALL_EXEC_HOOKS += journal-install-hook
4157 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4159 # ------------------------------------------------------------------------------
4160 # Update catalog on installation. Do not bother if installing
4161 # in DESTDIR, since this is likely for packaging purposes.
4162 catalog-update-hook:
4163 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4165 INSTALL_DATA_HOOKS += \
4168 catalog-remove-hook:
4169 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4171 UNINSTALL_DATA_HOOKS += \
4180 test-journal-syslog \
4181 test-journal-match \
4182 test-journal-stream \
4184 test-journal-verify \
4185 test-journal-interleaving \
4186 test-journal-flush \
4194 test-compress-benchmark
4197 pkginclude_HEADERS += \
4198 src/systemd/sd-journal.h \
4199 src/systemd/sd-messages.h \
4200 src/systemd/_sd-common.h
4202 libsystemd_journal_internal_la_SOURCES = \
4203 src/journal/sd-journal.c \
4204 src/systemd/sd-journal.h \
4205 src/systemd/_sd-common.h \
4206 src/journal/journal-file.c \
4207 src/journal/journal-file.h \
4208 src/journal/journal-vacuum.c \
4209 src/journal/journal-vacuum.h \
4210 src/journal/journal-verify.c \
4211 src/journal/journal-verify.h \
4212 src/journal/lookup3.c \
4213 src/journal/lookup3.h \
4214 src/journal/journal-send.c \
4215 src/journal/journal-def.h \
4216 src/journal/compress.h \
4217 src/journal/catalog.c \
4218 src/journal/catalog.h \
4219 src/journal/mmap-cache.c \
4220 src/journal/mmap-cache.h \
4221 src/journal/compress.c \
4222 src/journal/audit-type.h \
4223 src/journal/audit-type.c
4225 nodist_libsystemd_journal_internal_la_SOURCES = \
4226 src/journal/audit_type-to-name.h
4228 gperf_txt_sources += \
4229 src/journal/audit_type-list.txt
4231 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4232 libsystemd_journal_internal_la_CFLAGS = \
4235 libsystemd_journal_internal_la_LIBADD =
4238 libsystemd_journal_internal_la_CFLAGS += \
4241 libsystemd_journal_internal_la_LIBADD += \
4246 libsystemd_journal_internal_la_LIBADD += \
4251 libsystemd_journal_internal_la_SOURCES += \
4252 src/journal/journal-authenticate.c \
4253 src/journal/journal-authenticate.h \
4254 src/journal/fsprg.c \
4257 libsystemd_journal_internal_la_LIBADD += \
4260 # fsprg.c is a drop-in file using void pointer arithmetic
4261 libsystemd_journal_internal_la_CFLAGS += \
4266 noinst_LTLIBRARIES += \
4267 libsystemd-journal-internal.la
4269 rootlibexec_PROGRAMS += \
4272 rootbin_PROGRAMS += \
4278 dist_systemunit_DATA += \
4279 units/systemd-journald.socket \
4280 units/systemd-journald-dev-log.socket \
4281 units/systemd-journald-audit.socket
4283 nodist_systemunit_DATA += \
4284 units/systemd-journald.service \
4285 units/systemd-journal-flush.service \
4286 units/systemd-journal-catalog-update.service
4288 dist_pkgsysconf_DATA += \
4289 src/journal/journald.conf
4291 dist_catalog_DATA = \
4292 catalog/systemd.be.catalog \
4293 catalog/systemd.be@latin.catalog \
4294 catalog/systemd.fr.catalog \
4295 catalog/systemd.it.catalog \
4296 catalog/systemd.pl.catalog \
4297 catalog/systemd.pt_BR.catalog \
4298 catalog/systemd.ru.catalog \
4299 catalog/systemd.zh_CN.catalog \
4300 catalog/systemd.zh_TW.catalog \
4301 catalog/systemd.catalog
4303 SOCKETS_TARGET_WANTS += \
4304 systemd-journald.socket \
4305 systemd-journald-dev-log.socket \
4306 systemd-journald-audit.socket
4308 SYSINIT_TARGET_WANTS += \
4309 systemd-journald.service \
4310 systemd-journal-flush.service \
4311 systemd-journal-catalog-update.service
4314 units/systemd-journald.service.in \
4315 units/systemd-journal-flush.service.in \
4316 units/systemd-journal-catalog-update.service.in
4318 gperf_gperf_sources += \
4319 src/journal/journald-gperf.gperf
4321 # ------------------------------------------------------------------------------
4323 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4325 rootlibexec_PROGRAMS += \
4326 systemd-journal-gatewayd
4328 systemd_journal_gatewayd_SOURCES = \
4329 src/journal-remote/journal-gatewayd.c \
4330 src/journal-remote/microhttpd-util.h \
4331 src/journal-remote/microhttpd-util.c
4333 systemd_journal_gatewayd_LDADD = \
4338 systemd_journal_gatewayd_LDADD += \
4342 systemd_journal_gatewayd_CFLAGS = \
4344 $(MICROHTTPD_CFLAGS)
4346 systemd_journal_gatewayd_CPPFLAGS = \
4348 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4350 dist_systemunit_DATA += \
4351 units/systemd-journal-gatewayd.socket
4353 nodist_systemunit_DATA += \
4354 units/systemd-journal-gatewayd.service
4356 dist_gatewayddocumentroot_DATA = \
4357 src/journal-remote/browse.html
4362 units/systemd-journal-gatewayd.service.in
4364 # ------------------------------------------------------------------------------
4366 systemd_socket_proxyd_SOURCES = \
4367 src/socket-proxy/socket-proxyd.c
4369 systemd_socket_proxyd_LDADD = \
4372 # ------------------------------------------------------------------------------
4374 systemd_coredump_SOURCES = \
4375 src/coredump/coredump.c \
4376 src/coredump/coredump-vacuum.c \
4377 src/coredump/coredump-vacuum.h
4379 systemd_coredump_LDADD = \
4383 systemd_coredump_SOURCES += \
4384 src/coredump/stacktrace.c \
4385 src/coredump/stacktrace.h
4387 systemd_coredump_LDADD += \
4391 nodist_systemunit_DATA += \
4392 units/systemd-coredump@.service
4394 dist_systemunit_DATA += \
4395 units/systemd-coredump.socket
4397 SOCKETS_TARGET_WANTS += \
4398 systemd-coredump.socket
4400 rootlibexec_PROGRAMS += \
4403 dist_pkgsysconf_DATA += \
4404 src/coredump/coredump.conf
4406 coredumpctl_SOURCES = \
4407 src/coredump/coredumpctl.c
4409 coredumpctl_LDADD = \
4416 test-coredump-vacuum
4418 test_coredump_vacuum_SOURCES = \
4419 src/coredump/test-coredump-vacuum.c \
4420 src/coredump/coredump-vacuum.c \
4421 src/coredump/coredump-vacuum.h
4423 test_coredump_vacuum_LDADD = \
4426 dist_bashcompletion_data += \
4427 shell-completion/bash/coredumpctl
4429 dist_zshcompletion_data += \
4430 shell-completion/zsh/_coredumpctl
4432 nodist_sysctl_DATA = \
4433 sysctl.d/50-coredump.conf
4436 sysctl.d/50-coredump.conf
4440 sysctl.d/50-coredump.conf.in \
4441 units/systemd-coredump@.service.in
4443 # ------------------------------------------------------------------------------
4445 systemd_binfmt_SOURCES = \
4448 systemd_binfmt_LDADD = \
4451 rootlibexec_PROGRAMS += \
4454 dist_systemunit_DATA += \
4455 units/proc-sys-fs-binfmt_misc.automount \
4456 units/proc-sys-fs-binfmt_misc.mount
4458 nodist_systemunit_DATA += \
4459 units/systemd-binfmt.service
4462 $(prefix)/lib/binfmt.d \
4463 $(sysconfdir)/binfmt.d
4465 SYSINIT_TARGET_WANTS += \
4466 systemd-binfmt.service \
4467 proc-sys-fs-binfmt_misc.automount
4472 units/systemd-binfmt.service.in
4474 # ------------------------------------------------------------------------------
4476 systemd_vconsole_setup_SOURCES = \
4477 src/vconsole/vconsole-setup.c
4479 systemd_vconsole_setup_LDADD = \
4482 rootlibexec_PROGRAMS += \
4483 systemd-vconsole-setup
4485 nodist_udevrules_DATA += \
4486 src/vconsole/90-vconsole.rules
4488 nodist_systemunit_DATA += \
4489 units/systemd-vconsole-setup.service
4491 SYSINIT_TARGET_WANTS += \
4492 systemd-vconsole-setup.service
4496 src/vconsole/90-vconsole.rules.in \
4497 units/systemd-vconsole-setup.service.in
4499 # ------------------------------------------------------------------------------
4501 systemd_bootchart_SOURCES = \
4502 src/bootchart/bootchart.c \
4503 src/bootchart/bootchart.h \
4504 src/bootchart/store.c \
4505 src/bootchart/store.h \
4506 src/bootchart/svg.c \
4509 systemd_bootchart_LDADD = \
4512 rootlibexec_PROGRAMS += \
4515 dist_pkgsysconf_DATA += \
4516 src/bootchart/bootchart.conf
4518 nodist_systemunit_DATA += \
4519 units/systemd-bootchart.service
4523 units/systemd-bootchart.service.in
4525 # ------------------------------------------------------------------------------
4526 if ENABLE_QUOTACHECK
4527 rootlibexec_PROGRAMS += \
4530 nodist_systemunit_DATA += \
4531 units/systemd-quotacheck.service
4533 systemd_quotacheck_SOURCES = \
4534 src/quotacheck/quotacheck.c
4536 systemd_quotacheck_LDADD = \
4541 units/systemd-quotacheck.service.in
4543 nodist_systemunit_DATA += \
4544 units/quotaon.service
4546 # ------------------------------------------------------------------------------
4547 if ENABLE_RANDOMSEED
4548 rootlibexec_PROGRAMS += \
4551 nodist_systemunit_DATA += \
4552 units/systemd-random-seed.service
4554 systemd_random_seed_SOURCES = \
4555 src/random-seed/random-seed.c
4557 systemd_random_seed_LDADD = \
4560 SYSINIT_TARGET_WANTS += \
4561 systemd-random-seed.service
4566 units/systemd-random-seed.service.in
4568 # ------------------------------------------------------------------------------
4570 rootlibexec_PROGRAMS += \
4573 nodist_systemunit_DATA += \
4574 units/systemd-backlight@.service
4576 systemd_backlight_SOURCES = \
4577 src/backlight/backlight.c
4579 systemd_backlight_LDADD = \
4584 units/systemd-backlight@.service.in
4586 # ------------------------------------------------------------------------------
4588 rootlibexec_PROGRAMS += \
4591 nodist_systemunit_DATA += \
4592 units/systemd-rfkill.service
4594 dist_systemunit_DATA += \
4595 units/systemd-rfkill.socket
4597 systemd_rfkill_SOURCES = \
4600 systemd_rfkill_LDADD = \
4605 units/systemd-rfkill.service.in
4607 # ------------------------------------------------------------------------------
4608 if HAVE_LIBCRYPTSETUP
4609 rootlibexec_PROGRAMS += \
4612 systemgenerator_PROGRAMS += \
4613 systemd-cryptsetup-generator
4615 dist_systemunit_DATA += \
4616 units/cryptsetup.target \
4617 units/cryptsetup-pre.target
4619 systemd_cryptsetup_SOURCES = \
4620 src/cryptsetup/cryptsetup.c
4622 systemd_cryptsetup_CFLAGS = \
4624 $(LIBCRYPTSETUP_CFLAGS)
4626 systemd_cryptsetup_LDADD = \
4628 $(LIBCRYPTSETUP_LIBS)
4630 systemd_cryptsetup_generator_SOURCES = \
4631 src/cryptsetup/cryptsetup-generator.c
4633 systemd_cryptsetup_generator_LDADD = \
4636 SYSINIT_TARGET_WANTS += \
4641 # ------------------------------------------------------------------------------
4643 systemd_hostnamed_SOURCES = \
4644 src/hostname/hostnamed.c
4646 systemd_hostnamed_LDADD = \
4649 rootlibexec_PROGRAMS += \
4652 nodist_systemunit_DATA += \
4653 units/systemd-hostnamed.service
4655 dist_systemunit_DATA_busnames += \
4656 units/org.freedesktop.hostname1.busname
4658 dist_dbuspolicy_DATA += \
4659 src/hostname/org.freedesktop.hostname1.conf
4661 dist_dbussystemservice_DATA += \
4662 src/hostname/org.freedesktop.hostname1.service
4664 polkitpolicy_files += \
4665 src/hostname/org.freedesktop.hostname1.policy
4667 SYSTEM_UNIT_ALIASES += \
4668 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4670 BUSNAMES_TARGET_WANTS += \
4671 org.freedesktop.hostname1.busname
4673 hostnamectl_SOURCES = \
4674 src/hostname/hostnamectl.c
4676 hostnamectl_LDADD = \
4682 dist_bashcompletion_data += \
4683 shell-completion/bash/hostnamectl
4685 dist_zshcompletion_data += \
4686 shell-completion/zsh/_hostnamectl
4689 polkitpolicy_in_files += \
4690 src/hostname/org.freedesktop.hostname1.policy.in
4693 units/systemd-hostnamed.service.in
4695 # ------------------------------------------------------------------------------
4696 dist_systemunit_DATA_busnames += \
4697 units/org.freedesktop.systemd1.busname
4699 BUSNAMES_TARGET_WANTS += \
4700 org.freedesktop.systemd1.busname
4702 # ------------------------------------------------------------------------------
4704 systemd_localed_SOURCES = \
4705 src/locale/localed.c
4707 systemd_localed_LDADD = \
4711 systemd_localed_CFLAGS = \
4715 nodist_systemunit_DATA += \
4716 units/systemd-localed.service
4718 dist_systemunit_DATA_busnames += \
4719 units/org.freedesktop.locale1.busname
4721 rootlibexec_PROGRAMS += \
4724 dist_dbuspolicy_DATA += \
4725 src/locale/org.freedesktop.locale1.conf
4727 dist_dbussystemservice_DATA += \
4728 src/locale/org.freedesktop.locale1.service
4730 polkitpolicy_files += \
4731 src/locale/org.freedesktop.locale1.policy
4733 SYSTEM_UNIT_ALIASES += \
4734 systemd-localed.service dbus-org.freedesktop.locale1.service
4736 BUSNAMES_TARGET_WANTS += \
4737 org.freedesktop.locale1.busname
4739 dist_pkgdata_DATA = \
4740 src/locale/kbd-model-map \
4741 src/locale/language-fallback-map
4743 localectl_SOURCES = \
4744 src/locale/localectl.c
4752 dist_bashcompletion_data += \
4753 shell-completion/bash/localectl
4755 dist_zshcompletion_data += \
4756 shell-completion/zsh/_localectl
4759 .PHONY: update-kbd-model-map
4761 polkitpolicy_in_files += \
4762 src/locale/org.freedesktop.locale1.policy.in
4765 units/systemd-localed.service.in
4767 # ------------------------------------------------------------------------------
4769 systemd_timedated_SOURCES = \
4770 src/timedate/timedated.c
4772 systemd_timedated_LDADD = \
4775 rootlibexec_PROGRAMS += \
4778 dist_dbussystemservice_DATA += \
4779 src/timedate/org.freedesktop.timedate1.service
4781 dist_dbuspolicy_DATA += \
4782 src/timedate/org.freedesktop.timedate1.conf
4784 nodist_systemunit_DATA += \
4785 units/systemd-timedated.service
4787 dist_systemunit_DATA_busnames += \
4788 units/org.freedesktop.timedate1.busname
4790 polkitpolicy_files += \
4791 src/timedate/org.freedesktop.timedate1.policy
4793 SYSTEM_UNIT_ALIASES += \
4794 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4796 BUSNAMES_TARGET_WANTS += \
4797 org.freedesktop.timedate1.busname
4799 timedatectl_SOURCES = \
4800 src/timedate/timedatectl.c
4802 timedatectl_LDADD = \
4808 dist_bashcompletion_data += \
4809 shell-completion/bash/timedatectl
4811 dist_zshcompletion_data += \
4812 shell-completion/zsh/_timedatectl
4815 polkitpolicy_in_files += \
4816 src/timedate/org.freedesktop.timedate1.policy.in
4819 units/systemd-timedated.service.in
4821 # ------------------------------------------------------------------------------
4823 systemd_timesyncd_SOURCES = \
4824 src/timesync/timesyncd.c \
4825 src/timesync/timesyncd-manager.c \
4826 src/timesync/timesyncd-manager.h \
4827 src/timesync/timesyncd-conf.c \
4828 src/timesync/timesyncd-conf.h \
4829 src/timesync/timesyncd-server.c \
4830 src/timesync/timesyncd-server.h
4832 nodist_systemd_timesyncd_SOURCES = \
4833 src/timesync/timesyncd-gperf.c
4835 systemd_timesyncd_LDADD = \
4836 libsystemd-network.la \
4839 rootlibexec_PROGRAMS += \
4842 nodist_systemunit_DATA += \
4843 units/systemd-timesyncd.service
4845 GENERAL_ALIASES += \
4846 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4848 nodist_pkgsysconf_DATA += \
4849 src/timesync/timesyncd.conf
4853 gperf_gperf_sources += \
4854 src/timesync/timesyncd-gperf.gperf
4857 units/systemd-timesyncd.service.in \
4858 src/timesync/timesyncd.conf.in
4860 # ------------------------------------------------------------------------------
4862 libnss_myhostname_la_SOURCES = \
4863 src/nss-myhostname/nss-myhostname.sym \
4864 src/nss-myhostname/nss-myhostname.c
4866 libnss_myhostname_la_LDFLAGS = \
4873 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4875 libnss_myhostname_la_LIBADD = \
4876 libsystemd-internal.la
4878 lib_LTLIBRARIES += \
4879 libnss_myhostname.la
4882 # ------------------------------------------------------------------------------
4884 systemd_machined_SOURCES = \
4885 src/machine/machined.c \
4886 src/machine/machined.h
4888 systemd_machined_LDADD = \
4891 rootlibexec_PROGRAMS += \
4894 libmachine_core_la_SOURCES = \
4895 src/machine/machine.c \
4896 src/machine/machine.h \
4897 src/machine/machined-dbus.c \
4898 src/machine/machine-dbus.c \
4899 src/machine/machine-dbus.h \
4900 src/machine/image-dbus.c \
4901 src/machine/image-dbus.h
4903 libmachine_core_la_LIBADD = \
4906 noinst_LTLIBRARIES += \
4909 machinectl_SOURCES = \
4910 src/machine/machinectl.c
4912 machinectl_LDADD = \
4915 rootbin_PROGRAMS += \
4918 test_machine_tables_SOURCES = \
4919 src/machine/test-machine-tables.c
4921 test_machine_tables_LDADD = \
4927 nodist_systemunit_DATA += \
4928 units/systemd-machined.service
4930 dist_systemunit_DATA += \
4933 dist_systemunit_DATA_busnames += \
4934 units/org.freedesktop.machine1.busname
4936 dist_dbussystemservice_DATA += \
4937 src/machine/org.freedesktop.machine1.service
4939 dist_dbuspolicy_DATA += \
4940 src/machine/org.freedesktop.machine1.conf
4942 polkitpolicy_files += \
4943 src/machine/org.freedesktop.machine1.policy
4945 dist_bashcompletion_data += \
4946 shell-completion/bash/machinectl
4948 dist_zshcompletion_data += \
4949 shell-completion/zsh/_machinectl \
4950 shell-completion/zsh/_sd_machines
4952 SYSTEM_UNIT_ALIASES += \
4953 systemd-machined.service dbus-org.freedesktop.machine1.service
4955 BUSNAMES_TARGET_WANTS += \
4956 org.freedesktop.machine1.busname
4958 libnss_mymachines_la_SOURCES = \
4959 src/nss-mymachines/nss-mymachines.sym \
4960 src/nss-mymachines/nss-mymachines.c
4962 libnss_mymachines_la_LDFLAGS = \
4969 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4971 libnss_mymachines_la_LIBADD = \
4972 libsystemd-internal.la
4974 lib_LTLIBRARIES += \
4975 libnss_mymachines.la
4979 polkitpolicy_in_files += \
4980 src/machine/org.freedesktop.machine1.policy.in
4983 units/systemd-machined.service.in
4985 # ------------------------------------------------------------------------------
4994 rootlibexec_PROGRAMS += \
5000 systemd_importd_SOURCES = \
5001 src/import/importd.c
5003 systemd_importd_CFLAGS = \
5005 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5006 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5007 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5009 systemd_importd_LDADD = \
5012 systemd_pull_SOURCES = \
5014 src/import/pull-raw.c \
5015 src/import/pull-raw.h \
5016 src/import/pull-tar.c \
5017 src/import/pull-tar.h \
5018 src/import/pull-job.c \
5019 src/import/pull-job.h \
5020 src/import/pull-common.c \
5021 src/import/pull-common.h \
5022 src/import/import-common.c \
5023 src/import/import-common.h \
5024 src/import/import-compress.c \
5025 src/import/import-compress.h \
5026 src/import/curl-util.c \
5027 src/import/curl-util.h \
5028 src/import/aufs-util.c \
5029 src/import/aufs-util.h \
5030 src/import/qcow2-util.c \
5031 src/import/qcow2-util.h
5033 systemd_pull_CFLAGS = \
5039 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5040 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5042 systemd_pull_LDADD = \
5050 systemd_import_SOURCES = \
5051 src/import/import.c \
5052 src/import/import-raw.c \
5053 src/import/import-raw.h \
5054 src/import/import-tar.c \
5055 src/import/import-tar.h \
5056 src/import/import-common.c \
5057 src/import/import-common.h \
5058 src/import/import-compress.c \
5059 src/import/import-compress.h \
5060 src/import/qcow2-util.c \
5061 src/import/qcow2-util.h
5063 systemd_import_CFLAGS = \
5068 systemd_import_LDADD = \
5074 systemd_export_SOURCES = \
5075 src/import/export.c \
5076 src/import/export-tar.c \
5077 src/import/export-tar.h \
5078 src/import/export-raw.c \
5079 src/import/export-raw.h \
5080 src/import/import-common.c \
5081 src/import/import-common.h \
5082 src/import/import-compress.c \
5083 src/import/import-compress.h
5085 systemd_export_CFLAGS = \
5090 systemd_export_LDADD = \
5096 dist_rootlibexec_DATA = \
5097 src/import/import-pubring.gpg
5099 nodist_systemunit_DATA += \
5100 units/systemd-importd.service
5102 dist_systemunit_DATA_busnames += \
5103 units/org.freedesktop.import1.busname
5105 BUSNAMES_TARGET_WANTS += \
5106 org.freedesktop.import1.busname
5108 SYSTEM_UNIT_ALIASES += \
5109 systemd-importd.service dbus-org.freedesktop.import1.service
5111 dist_dbussystemservice_DATA += \
5112 src/import/org.freedesktop.import1.service
5114 dist_dbuspolicy_DATA += \
5115 src/import/org.freedesktop.import1.conf
5117 polkitpolicy_files += \
5118 src/import/org.freedesktop.import1.policy
5123 test_qcow2_SOURCES = \
5124 src/import/test-qcow2.c \
5125 src/import/qcow2-util.c \
5126 src/import/qcow2-util.h
5128 test_qcow2_CFLAGS = \
5132 test_qcow2_LDADD = \
5144 polkitpolicy_in_files += \
5145 src/import/org.freedesktop.import1.policy.in
5148 units/systemd-importd.service.in
5151 # ------------------------------------------------------------------------------
5154 systemd_resolved_SOURCES = \
5155 src/resolve/resolved.c \
5156 src/resolve/resolved-manager.c \
5157 src/resolve/resolved-manager.h \
5158 src/resolve/resolved-conf.c \
5159 src/resolve/resolved-conf.h \
5160 src/resolve/resolved-resolv-conf.c \
5161 src/resolve/resolved-resolv-conf.h \
5162 src/resolve/resolved-bus.c \
5163 src/resolve/resolved-bus.h \
5164 src/resolve/resolved-link.h \
5165 src/resolve/resolved-link.c \
5166 src/resolve/resolved-link-bus.c \
5167 src/resolve/resolved-link-bus.h \
5168 src/resolve/resolved-llmnr.h \
5169 src/resolve/resolved-llmnr.c \
5170 src/resolve/resolved-mdns.h \
5171 src/resolve/resolved-mdns.c \
5172 src/resolve/resolved-def.h \
5173 src/resolve/resolved-dns-rr.h \
5174 src/resolve/resolved-dns-rr.c \
5175 src/resolve/resolved-dns-question.h \
5176 src/resolve/resolved-dns-question.c \
5177 src/resolve/resolved-dns-answer.h \
5178 src/resolve/resolved-dns-answer.c \
5179 src/resolve/resolved-dns-packet.h \
5180 src/resolve/resolved-dns-packet.c \
5181 src/resolve/resolved-dns-query.h \
5182 src/resolve/resolved-dns-query.c \
5183 src/resolve/resolved-dns-synthesize.h \
5184 src/resolve/resolved-dns-synthesize.c \
5185 src/resolve/resolved-dns-transaction.h \
5186 src/resolve/resolved-dns-transaction.c \
5187 src/resolve/resolved-dns-scope.h \
5188 src/resolve/resolved-dns-scope.c \
5189 src/resolve/resolved-dns-server.h \
5190 src/resolve/resolved-dns-server.c \
5191 src/resolve/resolved-dns-search-domain.h \
5192 src/resolve/resolved-dns-search-domain.c \
5193 src/resolve/resolved-dns-cache.h \
5194 src/resolve/resolved-dns-cache.c \
5195 src/resolve/resolved-dns-zone.h \
5196 src/resolve/resolved-dns-zone.c \
5197 src/resolve/resolved-dns-stream.h \
5198 src/resolve/resolved-dns-stream.c \
5199 src/resolve/resolved-dns-dnssec.h \
5200 src/resolve/resolved-dns-dnssec.c \
5201 src/resolve/resolved-dns-trust-anchor.h \
5202 src/resolve/resolved-dns-trust-anchor.c \
5203 src/resolve/resolved-etc-hosts.h \
5204 src/resolve/resolved-etc-hosts.c \
5205 src/resolve/dns-type.c \
5206 src/resolve/dns-type.h
5208 nodist_systemd_resolved_SOURCES = \
5209 src/resolve/dns_type-from-name.h \
5210 src/resolve/dns_type-to-name.h \
5211 src/resolve/resolved-gperf.c
5213 systemd_resolved_LDADD = \
5214 libsystemd-network.la \
5217 rootlibexec_PROGRAMS += \
5220 nodist_systemunit_DATA += \
5221 units/systemd-resolved.service
5223 dist_systemunit_DATA_busnames += \
5224 units/org.freedesktop.resolve1.busname
5226 dist_dbuspolicy_DATA += \
5227 src/resolve/org.freedesktop.resolve1.conf
5229 dist_dbussystemservice_DATA += \
5230 src/resolve/org.freedesktop.resolve1.service
5232 SYSTEM_UNIT_ALIASES += \
5233 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5235 BUSNAMES_TARGET_WANTS += \
5236 org.freedesktop.resolve1.busname
5238 GENERAL_ALIASES += \
5239 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5241 nodist_pkgsysconf_DATA += \
5242 src/resolve/resolved.conf
5244 libnss_resolve_la_SOURCES = \
5245 src/nss-resolve/nss-resolve.sym \
5246 src/nss-resolve/nss-resolve.c
5248 libnss_resolve_la_LDFLAGS = \
5255 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5257 libnss_resolve_la_LIBADD = \
5258 libsystemd-internal.la \
5261 lib_LTLIBRARIES += \
5264 systemd_resolve_SOURCES = \
5265 src/resolve/resolve-tool.c \
5266 src/resolve/resolved-dns-dnssec.c \
5267 src/resolve/resolved-dns-dnssec.h \
5268 src/resolve/resolved-dns-packet.c \
5269 src/resolve/resolved-dns-packet.h \
5270 src/resolve/resolved-dns-rr.c \
5271 src/resolve/resolved-dns-rr.h \
5272 src/resolve/resolved-dns-answer.c \
5273 src/resolve/resolved-dns-answer.h \
5274 src/resolve/resolved-dns-question.c \
5275 src/resolve/resolved-dns-question.h \
5276 src/resolve/dns-type.c \
5277 src/resolve/dns-type.h
5279 nodist_systemd_resolve_SOURCES = \
5280 src/resolve/dns_type-from-name.h \
5281 src/resolve/dns_type-to-name.h
5283 systemd_resolve_LDADD = \
5296 test_dnssec_SOURCES = \
5297 src/resolve/test-dnssec.c \
5298 src/resolve/resolved-dns-packet.c \
5299 src/resolve/resolved-dns-packet.h \
5300 src/resolve/resolved-dns-rr.c \
5301 src/resolve/resolved-dns-rr.h \
5302 src/resolve/resolved-dns-answer.c \
5303 src/resolve/resolved-dns-answer.h \
5304 src/resolve/resolved-dns-question.c \
5305 src/resolve/resolved-dns-question.h \
5306 src/resolve/resolved-dns-dnssec.c \
5307 src/resolve/resolved-dns-dnssec.h \
5308 src/resolve/dns-type.c \
5309 src/resolve/dns-type.h
5311 test_dnssec_LDADD = \
5314 test_dnssec_complex_SOURCES = \
5315 src/resolve/test-dnssec-complex.c \
5316 src/resolve/dns-type.c \
5317 src/resolve/dns-type.h
5319 test_dnssec_complex_LDADD = \
5324 gperf_txt_sources += \
5325 src/resolve/dns_type-list.txt
5327 gperf_gperf_sources += \
5328 src/resolve/resolved-gperf.gperf
5331 units/systemd-resolved.service.m4.in \
5332 src/resolve/resolved.conf.in
5334 # ------------------------------------------------------------------------------
5336 rootlibexec_PROGRAMS += \
5339 systemd_networkd_SOURCES = \
5340 src/network/networkd.c
5342 systemd_networkd_LDADD = \
5346 systemd_networkd_LDADD += \
5350 noinst_LTLIBRARIES += \
5353 libnetworkd_core_la_CFLAGS = \
5356 libnetworkd_core_la_SOURCES = \
5357 src/libsystemd-network/network-internal.h \
5358 src/network/networkd.h \
5359 src/network/networkd-link.h \
5360 src/network/networkd-link.c \
5361 src/network/networkd-netdev.h \
5362 src/network/networkd-netdev.c \
5363 src/network/networkd-netdev-tunnel.h \
5364 src/network/networkd-netdev-tunnel.c \
5365 src/network/networkd-netdev-veth.h \
5366 src/network/networkd-netdev-veth.c \
5367 src/network/networkd-netdev-vxlan.h \
5368 src/network/networkd-netdev-vxlan.c \
5369 src/network/networkd-netdev-vlan.h \
5370 src/network/networkd-netdev-vlan.c \
5371 src/network/networkd-netdev-macvlan.h \
5372 src/network/networkd-netdev-macvlan.c \
5373 src/network/networkd-netdev-ipvlan.h \
5374 src/network/networkd-netdev-ipvlan.c \
5375 src/network/networkd-netdev-dummy.h \
5376 src/network/networkd-netdev-dummy.c \
5377 src/network/networkd-netdev-tuntap.h \
5378 src/network/networkd-netdev-tuntap.c \
5379 src/network/networkd-netdev-bond.h \
5380 src/network/networkd-netdev-bond.c \
5381 src/network/networkd-netdev-bridge.h \
5382 src/network/networkd-netdev-bridge.c \
5383 src/network/networkd-link-bus.c \
5384 src/network/networkd-ipv4ll.c \
5385 src/network/networkd-dhcp4.c \
5386 src/network/networkd-dhcp6.c \
5387 src/network/networkd-ndisc.c \
5388 src/network/networkd-network.h \
5389 src/network/networkd-network.c \
5390 src/network/networkd-network-bus.c \
5391 src/network/networkd-address.h \
5392 src/network/networkd-address.c \
5393 src/network/networkd-route.h \
5394 src/network/networkd-route.c \
5395 src/network/networkd-manager.c \
5396 src/network/networkd-manager-bus.c \
5397 src/network/networkd-fdb.h \
5398 src/network/networkd-fdb.c \
5399 src/network/networkd-address-pool.h \
5400 src/network/networkd-address-pool.c \
5401 src/network/networkd-util.h \
5402 src/network/networkd-util.c
5404 nodist_libnetworkd_core_la_SOURCES = \
5405 src/network/networkd-network-gperf.c \
5406 src/network/networkd-netdev-gperf.c
5408 libnetworkd_core_la_LIBADD = \
5409 libsystemd-network.la \
5412 rootlibexec_PROGRAMS += \
5413 systemd-networkd-wait-online
5415 systemd_networkd_wait_online_CFLAGS = \
5418 systemd_networkd_wait_online_SOURCES = \
5419 src/libsystemd-network/network-internal.h \
5420 src/network/networkd-wait-online.h \
5421 src/network/networkd-wait-online-link.h \
5422 src/network/networkd-wait-online.c \
5423 src/network/networkd-wait-online-manager.c \
5424 src/network/networkd-wait-online-link.c
5426 systemd_networkd_wait_online_LDADD = \
5427 libsystemd-network.la \
5430 rootbin_PROGRAMS += \
5433 networkctl_SOURCES = \
5434 src/network/networkctl.c
5436 networkctl_LDADD = \
5438 libsystemd-network.la
5440 dist_bashcompletion_data += \
5441 shell-completion/bash/networkctl
5443 test_network_SOURCES = \
5444 src/network/test-network.c
5446 test_network_LDADD = \
5450 test_network_LDADD += \
5454 test_network_tables_SOURCES = \
5455 src/network/test-network-tables.c \
5456 src/shared/test-tables.h
5458 test_network_tables_LDADD = \
5459 libnetworkd-core.la \
5463 test_network_tables_LDADD += \
5471 dist_systemunit_DATA += \
5472 units/systemd-networkd.socket
5474 nodist_systemunit_DATA += \
5475 units/systemd-networkd.service \
5476 units/systemd-networkd-wait-online.service
5478 dist_systemunit_DATA_busnames += \
5479 units/org.freedesktop.network1.busname
5481 dist_dbussystemservice_DATA += \
5482 src/network/org.freedesktop.network1.service
5484 dist_dbuspolicy_DATA += \
5485 src/network/org.freedesktop.network1.conf
5487 GENERAL_ALIASES += \
5488 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5489 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5490 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5492 SYSTEM_UNIT_ALIASES += \
5493 systemd-networkd.service dbus-org.freedesktop.network1.service
5495 BUSNAMES_TARGET_WANTS += \
5496 org.freedesktop.network1.busname
5500 gperf_gperf_sources += \
5501 src/network/networkd-network-gperf.gperf \
5502 src/network/networkd-netdev-gperf.gperf
5505 units/systemd-networkd.service.m4.in \
5506 units/systemd-networkd-wait-online.service.in \
5507 test/networkd-test.py
5509 # ------------------------------------------------------------------------------
5511 systemd_logind_SOURCES = \
5512 src/login/logind.c \
5515 nodist_systemd_logind_SOURCES = \
5516 src/login/logind-gperf.c
5518 systemd_logind_LDADD = \
5521 liblogind_core_la_SOURCES = \
5522 src/login/logind-core.c \
5523 src/login/logind-device.c \
5524 src/login/logind-device.h \
5525 src/login/logind-button.c \
5526 src/login/logind-button.h \
5527 src/login/logind-action.c \
5528 src/login/logind-action.h \
5529 src/login/logind-seat.c \
5530 src/login/logind-seat.h \
5531 src/login/logind-session.c \
5532 src/login/logind-session.h \
5533 src/login/logind-session-device.c \
5534 src/login/logind-session-device.h \
5535 src/login/logind-user.c \
5536 src/login/logind-user.h \
5537 src/login/logind-inhibit.c \
5538 src/login/logind-inhibit.h \
5539 src/login/logind-dbus.c \
5540 src/login/logind-session-dbus.c \
5541 src/login/logind-seat-dbus.c \
5542 src/login/logind-user-dbus.c \
5543 src/login/logind-utmp.c \
5544 src/login/logind-acl.h
5546 liblogind_core_la_LIBADD = \
5550 liblogind_core_la_SOURCES += \
5551 src/login/logind-acl.c
5554 noinst_LTLIBRARIES += \
5557 rootlibexec_PROGRAMS += \
5560 loginctl_SOURCES = \
5561 src/login/loginctl.c \
5562 src/login/sysfs-show.h \
5563 src/login/sysfs-show.c
5568 rootbin_PROGRAMS += \
5571 dist_bashcompletion_data += \
5572 shell-completion/bash/loginctl
5574 dist_zshcompletion_data += \
5575 shell-completion/zsh/_loginctl \
5576 shell-completion/zsh/_systemd-inhibit
5578 systemd_inhibit_SOURCES = \
5581 systemd_inhibit_LDADD = \
5584 rootbin_PROGRAMS += \
5587 test_login_SOURCES = \
5588 src/libsystemd/sd-login/test-login.c
5590 test_login_LDADD = \
5593 test_login_shared_SOURCES = \
5594 src/login/test-login-shared.c
5596 test_login_shared_LDADD = \
5599 test_inhibit_SOURCES = \
5600 src/login/test-inhibit.c
5602 test_inhibit_LDADD = \
5605 test_login_tables_SOURCES = \
5606 src/login/test-login-tables.c
5608 test_login_tables_LDADD = \
5620 pam_systemd_la_SOURCES = \
5621 src/login/pam_systemd.sym \
5622 src/login/pam_systemd.c
5624 pam_systemd_la_CFLAGS = \
5628 pam_systemd_la_LDFLAGS = \
5634 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5636 pam_systemd_la_LIBADD = \
5640 pamlib_LTLIBRARIES = \
5643 dist_pamconf_DATA = \
5644 src/login/systemd-user
5647 src/login/systemd-user.m4
5650 nodist_systemunit_DATA += \
5651 units/systemd-logind.service
5653 dist_systemunit_DATA += \
5656 dist_systemunit_DATA_busnames += \
5657 units/org.freedesktop.login1.busname
5659 dist_dbussystemservice_DATA += \
5660 src/login/org.freedesktop.login1.service
5662 dist_dbuspolicy_DATA += \
5663 src/login/org.freedesktop.login1.conf
5665 dist_pkgsysconf_DATA += \
5666 src/login/logind.conf
5668 polkitpolicy_files += \
5669 src/login/org.freedesktop.login1.policy
5674 MULTI_USER_TARGET_WANTS += \
5675 systemd-logind.service
5677 SYSTEM_UNIT_ALIASES += \
5678 systemd-logind.service dbus-org.freedesktop.login1.service
5680 BUSNAMES_TARGET_WANTS += \
5681 org.freedesktop.login1.busname
5683 dist_udevrules_DATA += \
5684 src/login/70-uaccess.rules \
5685 src/login/70-power-switch.rules
5687 nodist_udevrules_DATA += \
5688 src/login/71-seat.rules \
5689 src/login/73-seat-late.rules
5693 polkitpolicy_in_files += \
5694 src/login/org.freedesktop.login1.policy.in
5696 gperf_gperf_sources += \
5697 src/login/logind-gperf.gperf
5700 src/login/71-seat.rules.in \
5701 src/login/73-seat-late.rules.in \
5702 units/systemd-logind.service.in
5704 # ------------------------------------------------------------------------------
5707 systemd_user_sessions_SOURCES = \
5708 src/user-sessions/user-sessions.c
5710 systemd_user_sessions_LDADD = \
5713 rootlibexec_PROGRAMS += \
5714 systemd-user-sessions
5716 nodist_systemunit_DATA += \
5717 units/systemd-user-sessions.service
5719 MULTI_USER_TARGET_WANTS += \
5720 systemd-user-sessions.service
5725 units/systemd-user-sessions.service.in
5727 # ------------------------------------------------------------------------------
5730 test/README.testsuite \
5731 test/TEST-01-BASIC \
5732 test/TEST-01-BASIC/Makefile \
5733 test/TEST-01-BASIC/test.sh \
5734 test/TEST-02-CRYPTSETUP \
5735 test/TEST-02-CRYPTSETUP/Makefile \
5736 test/TEST-02-CRYPTSETUP/test.sh \
5738 test/TEST-03-JOBS/Makefile \
5739 test/TEST-03-JOBS/test-jobs.sh \
5740 test/TEST-03-JOBS/test.sh \
5741 test/TEST-04-JOURNAL/Makefile \
5742 test/TEST-04-JOURNAL/test-journal.sh \
5743 test/TEST-04-JOURNAL/test.sh \
5744 test/TEST-05-RLIMITS/Makefile \
5745 test/TEST-05-RLIMITS/test-rlimits.sh \
5746 test/TEST-05-RLIMITS/test.sh \
5747 test/TEST-06-SELINUX/Makefile \
5748 test/TEST-06-SELINUX/test-selinux-checks.sh \
5749 test/TEST-06-SELINUX/test.sh \
5750 test/TEST-06-SELINUX/systemd_test.te \
5751 test/TEST-06-SELINUX/systemd_test.if \
5752 test/TEST-07-ISSUE-1981/Makefile \
5753 test/TEST-07-ISSUE-1981/test-segfault.sh \
5754 test/TEST-07-ISSUE-1981/test.sh \
5758 test/loopy2.service \
5759 test/loopy3.service \
5760 test/loopy4.service \
5761 test/loopy.service \
5762 test/loopy.service.d \
5763 test/loopy.service.d/compat.conf
5765 # ------------------------------------------------------------------------------
5767 '|rootlibexecdir=$(rootlibexecdir)|' \
5768 '|rootbindir=$(rootbindir)|' \
5769 '|bindir=$(bindir)|' \
5770 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5771 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5772 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5773 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5774 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5775 '|pkgdatadir=$(pkgdatadir)|' \
5776 '|systemunitdir=$(systemunitdir)|' \
5777 '|userunitdir=$(userunitdir)|' \
5778 '|systempresetdir=$(systempresetdir)|' \
5779 '|userpresetdir=$(userpresetdir)|' \
5780 '|udevhwdbdir=$(udevhwdbdir)|' \
5781 '|udevrulesdir=$(udevrulesdir)|' \
5782 '|catalogdir=$(catalogdir)|' \
5783 '|tmpfilesdir=$(tmpfilesdir)|' \
5784 '|sysusersdir=$(sysusersdir)|' \
5785 '|sysctldir=$(sysctldir)|' \
5786 '|systemgeneratordir=$(systemgeneratordir)|' \
5787 '|usergeneratordir=$(usergeneratordir)|' \
5788 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5789 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5790 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5791 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5792 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5793 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5794 '|prefix=$(prefix)|' \
5795 '|exec_prefix=$(exec_prefix)|' \
5796 '|libdir=$(libdir)|' \
5797 '|includedir=$(includedir)|' \
5798 '|VERSION=$(VERSION)|' \
5799 '|rootprefix=$(rootprefix)|' \
5800 '|udevlibexecdir=$(udevlibexecdir)|' \
5801 '|SUSHELL=$(SUSHELL)|' \
5802 '|SULOGIN=$(SULOGIN)|' \
5803 '|DEBUGTTY=$(DEBUGTTY)|' \
5806 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5807 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5808 '|MKDIR_P=$(MKDIR_P)|' \
5809 '|QUOTAON=$(QUOTAON)|' \
5810 '|QUOTACHECK=$(QUOTACHECK)|' \
5811 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5812 '|VARLOGDIR=$(varlogdir)|' \
5813 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5814 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5815 '|PYTHON=$(PYTHON)|' \
5816 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5817 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5818 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5819 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5820 '|TTY_GID=$(TTY_GID)|' \
5821 '|systemsleepdir=$(systemsleepdir)|' \
5822 '|systemshutdowndir=$(systemshutdowndir)|' \
5823 '|binfmtdir=$(binfmtdir)|' \
5824 '|modulesloaddir=$(modulesloaddir)|'
5827 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5828 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5837 sysctl.d/%: sysctl.d/%.in
5846 src/core/%.systemd: src/core/%.systemd.in
5849 src/%.policy.in: src/%.policy.in.in
5852 shell-completion/%: shell-completion/%.in
5863 $(AM_V_GEN)chmod +x $@
5865 src/%.c: src/%.gperf
5866 $(AM_V_at)$(MKDIR_P) $(dir $@)
5867 $(AM_V_GPERF)$(GPERF) < $< > $@
5869 src/%: src/%.m4 $(top_builddir)/config.status
5870 $(AM_V_at)$(MKDIR_P) $(dir $@)
5871 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5873 sysusers.d/%: sysusers.d/%.m4 $(top_builddir)/config.status
5874 $(AM_V_at)$(MKDIR_P) $(dir $@)
5875 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5877 tmpfiles.d/%: tmpfiles.d/%.m4 $(top_builddir)/config.status
5878 $(AM_V_at)$(MKDIR_P) $(dir $@)
5879 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5882 units/%: units/%.m4 $(top_builddir)/config.status
5883 $(AM_V_at)$(MKDIR_P) $(dir $@)
5884 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5886 units/user/%: units/user/%.m4 $(top_builddir)/config.status
5887 $(AM_V_at)$(MKDIR_P) $(dir $@)
5888 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5891 nodist_polkitpolicy_DATA = \
5892 $(polkitpolicy_files) \
5893 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5897 $(polkitpolicy_in_files) \
5898 $(polkitpolicy_in_in_files)
5900 # ------------------------------------------------------------------------------
5901 man/custom-entities.ent: configure.ac
5902 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5903 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5904 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5908 man/custom-entities.ent
5913 --stringparam man.output.quietly 1 \
5914 --stringparam funcsynopsis.style ansi \
5915 --stringparam man.authors.section.enabled 0 \
5916 --stringparam man.copyright.section.enabled 0 \
5917 --stringparam systemd.version $(VERSION) \
5918 --path '$(builddir)/man:$(srcdir)/man'
5920 XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
5921 XSLTPROC_PROCESS_MAN = \
5922 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5924 XSLTPROC_PROCESS_HTML = \
5925 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5927 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5928 $(XSLTPROC_PROCESS_MAN)
5930 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5931 $(XSLTPROC_PROCESS_MAN)
5933 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5934 $(XSLTPROC_PROCESS_MAN)
5936 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5937 $(XSLTPROC_PROCESS_MAN)
5939 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5940 $(XSLTPROC_PROCESS_MAN)
5942 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5943 $(XSLTPROC_PROCESS_HTML)
5946 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5950 man/custom-html.xsl \
5953 # ------------------------------------------------------------------------------
5956 docs/sysvinit/README
5961 docs/sysvinit/README: docs/sysvinit/README.in
5964 docs/var-log/README: docs/var-log/README.in
5968 docs/sysvinit/README \
5973 docs/sysvinit/README.in \
5974 docs/var-log/README.in
5976 SOCKETS_TARGET_WANTS += \
5977 systemd-initctl.socket
5981 MULTI_USER_TARGET_WANTS += \
5982 systemd-update-utmp-runlevel.service
5983 GRAPHICAL_TARGET_WANTS += \
5984 systemd-update-utmp-runlevel.service
5985 RESCUE_TARGET_WANTS += \
5986 systemd-update-utmp-runlevel.service
5989 SYSINIT_TARGET_WANTS += \
5990 systemd-update-utmp.service
5993 SYSINIT_TARGET_WANTS += \
5994 systemd-update-done.service
5996 LOCAL_FS_TARGET_WANTS += \
5997 systemd-remount-fs.service \
5999 var-lib-machines.mount
6001 MULTI_USER_TARGET_WANTS += \
6003 systemd-ask-password-wall.path
6005 SYSINIT_TARGET_WANTS += \
6006 dev-hugepages.mount \
6008 sys-kernel-config.mount \
6009 sys-kernel-debug.mount \
6010 sys-fs-fuse-connections.mount \
6011 systemd-sysctl.service \
6012 systemd-ask-password-console.path
6015 SYSTEM_UNIT_ALIASES += \
6016 poweroff.target runlevel0.target \
6017 rescue.target runlevel1.target \
6018 multi-user.target runlevel2.target \
6019 multi-user.target runlevel3.target \
6020 multi-user.target runlevel4.target \
6021 graphical.target runlevel5.target \
6022 reboot.target runlevel6.target
6025 SYSTEM_UNIT_ALIASES += \
6026 graphical.target default.target \
6027 reboot.target ctrl-alt-del.target \
6028 getty@.service autovt@.service
6030 USER_UNIT_ALIASES += \
6031 $(systemunitdir)/shutdown.target shutdown.target \
6032 $(systemunitdir)/sockets.target sockets.target \
6033 $(systemunitdir)/timers.target timers.target \
6034 $(systemunitdir)/paths.target paths.target \
6035 $(systemunitdir)/bluetooth.target bluetooth.target \
6036 $(systemunitdir)/printer.target printer.target \
6037 $(systemunitdir)/sound.target sound.target \
6038 $(systemunitdir)/smartcard.target smartcard.target
6040 USER_UNIT_ALIASES += \
6041 $(systemunitdir)/busnames.target busnames.target
6043 GENERAL_ALIASES += \
6044 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6045 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6046 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6047 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6051 $(systemunitdir)/runlevel1.target.wants \
6052 $(systemunitdir)/runlevel2.target.wants \
6053 $(systemunitdir)/runlevel3.target.wants \
6054 $(systemunitdir)/runlevel4.target.wants \
6055 $(systemunitdir)/runlevel5.target.wants
6059 $(prefix)/lib/modules-load.d \
6060 $(sysconfdir)/modules-load.d \
6061 $(prefix)/lib/systemd/network \
6062 $(sysconfdir)/systemd/network \
6063 $(prefix)/lib/sysctl.d \
6064 $(sysconfdir)/sysctl.d \
6065 $(prefix)/lib/kernel/install.d \
6066 $(sysconfdir)/kernel/install.d \
6067 $(systemshutdowndir) \
6069 $(systemgeneratordir) \
6070 $(usergeneratordir) \
6073 $(pkgsysconfdir)/system \
6074 $(pkgsysconfdir)/system/multi-user.target.wants \
6075 $(pkgsysconfdir)/system/getty.target.wants \
6076 $(pkgsysconfdir)/user \
6077 $(dbussessionservicedir) \
6078 $(sysconfdir)/xdg/systemd
6080 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6082 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6084 install-data-hook: $(INSTALL_DATA_HOOKS)
6086 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6088 clean-local: $(CLEAN_LOCAL_HOOKS)
6089 rm -rf $(abs_srcdir)/install-tree
6090 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6091 $(abs_srcdir)/hwdb/iab.txt
6093 DISTCHECK_CONFIGURE_FLAGS = \
6094 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6095 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6096 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6097 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6098 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6099 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6100 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6101 --with-rootprefix=$$dc_install_base \
6102 --enable-compat-libs
6105 DISTCHECK_CONFIGURE_FLAGS += \
6106 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6107 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6109 DISTCHECK_CONFIGURE_FLAGS += \
6110 --with-sysvinit-path= \
6111 --with-sysvrcnd-path=
6115 DISTCHECK_CONFIGURE_FLAGS += \
6118 DISTCHECK_CONFIGURE_FLAGS += \
6122 .PHONY: dist-check-help
6124 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6125 for i in $(abspath $^); do \
6126 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6127 echo "$(basename $$i) --help output is too wide:"; \
6128 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6134 ( cd $(top_srcdir)/hwdb && \
6135 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6136 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6137 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6138 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6139 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6142 .PHONY: built-sources
6143 built-sources: $(BUILT_SOURCES)
6147 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6151 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6153 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6157 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6159 .PHONY: install-tree
6161 rm -rf $(abs_srcdir)/install-tree
6162 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6163 tree $(abs_srcdir)/install-tree
6165 # Let's run all tests of the test suite, but under valgrind. Let's
6166 # exclude perl/python/shell scripts we have in there
6167 .PHONY: valgrind-tests
6168 valgrind-tests: $(TESTS)
6169 $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \
6170 if file $$f | grep -q shell; then \
6171 echo -e "$${x}Skipping non-binary $$f"; else \
6172 echo -e "$${x}Running $$f"; \
6173 $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6178 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6180 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6181 $(AM_V_GEN)sort -u $^ > $@
6183 .PHONY: check-api-docs
6184 check-api-docs: exported man
6185 $(AM_V_GEN)for symbol in `cat exported` ; do \
6186 if test -f $(builddir)/man/$$symbol.html ; then \
6187 echo " Symbol $$symbol() is documented." ; \
6189 echo "‣ Symbol $$symbol() lacks documentation." ; \
6193 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6194 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6196 undefined defined: $(ALL_OBJECTS)
6197 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6198 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6199 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6205 .PHONY: check-api-unused
6206 check-api-unused: defined undefined exported
6207 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6209 .PHONY: check-includes
6210 check-includes: $(top_srcdir)/tools/check-includes.pl
6211 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6212 | xargs $(top_srcdir)/tools/check-includes.pl
6215 $(top_srcdir)/tools/check-includes.pl
6217 # Stupid test that everything purported to be exported really is
6218 define generate-sym-test
6219 $(AM_V_at)$(MKDIR_P) $(dir $@)
6220 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6221 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6222 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6223 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6224 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6225 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6226 $(AM_V_at)printf 'return 0; }\n' >> $@
6229 test-libsystemd-sym.c: \
6230 $(top_builddir)/src/libsystemd/libsystemd.sym \
6231 src/systemd/sd-journal.h \
6232 src/systemd/sd-daemon.h \
6233 src/systemd/sd-login.h \
6234 src/systemd/sd-bus.h \
6235 src/systemd/sd-utf8.h \
6236 src/systemd/sd-resolve.h \
6237 src/systemd/sd-path.h \
6238 src/systemd/sd-event.h
6239 $(generate-sym-test)
6241 test-libudev-sym.c: \
6242 src/libudev/libudev.sym \
6244 $(generate-sym-test)
6246 nodist_test_libsystemd_sym_SOURCES = \
6247 test-libsystemd-sym.c
6248 test_libsystemd_sym_LDADD = \
6251 nodist_test_libudev_sym_SOURCES = \
6253 test_libudev_sym_CFLAGS = \
6255 -Wno-deprecated-declarations
6256 test_libudev_sym_LDADD = \
6260 test-libsystemd-sym.c \
6264 test-libsystemd-sym.c \
6268 test-libsystemd-sym \
6273 cppcheck --enable=all -q $(top_srcdir)
6275 # Used to extract compile flags for YCM.
6280 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6283 tools/gdb-sd_dump_hashmaps.py
6286 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6289 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -