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 # The following four libraries only exist for compatibility reasons,
50 # their version info should not be bumped anymore
51 LIBSYSTEMD_LOGIN_CURRENT=9
52 LIBSYSTEMD_LOGIN_REVISION=3
53 LIBSYSTEMD_LOGIN_AGE=9
55 LIBSYSTEMD_DAEMON_CURRENT=0
56 LIBSYSTEMD_DAEMON_REVISION=12
57 LIBSYSTEMD_DAEMON_AGE=0
59 LIBSYSTEMD_ID128_CURRENT=0
60 LIBSYSTEMD_ID128_REVISION=28
61 LIBSYSTEMD_ID128_AGE=0
63 LIBSYSTEMD_JOURNAL_CURRENT=11
64 LIBSYSTEMD_JOURNAL_REVISION=5
65 LIBSYSTEMD_JOURNAL_AGE=11
67 # Dirs of external packages
68 dbuspolicydir=@dbuspolicydir@
69 dbussessionservicedir=@dbussessionservicedir@
70 dbussystemservicedir=@dbussystemservicedir@
72 pamconfdir=@pamconfdir@
73 pkgconfigdatadir=$(datadir)/pkgconfig
74 pkgconfiglibdir=$(libdir)/pkgconfig
75 polkitpolicydir=$(datadir)/polkit-1/actions
76 bashcompletiondir=@bashcompletiondir@
77 zshcompletiondir=@zshcompletiondir@
78 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
79 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
80 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
81 varlogdir=$(localstatedir)/log
82 systemdstatedir=$(localstatedir)/lib/systemd
83 catalogstatedir=$(systemdstatedir)/catalog
84 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
86 # Our own, non-special dirs
87 pkgsysconfdir=$(sysconfdir)/systemd
88 userunitdir=$(prefix)/lib/systemd/user
89 userpresetdir=$(prefix)/lib/systemd/user-preset
90 tmpfilesdir=$(prefix)/lib/tmpfiles.d
91 sysusersdir=$(prefix)/lib/sysusers.d
92 sysctldir=$(prefix)/lib/sysctl.d
93 binfmtdir=$(prefix)/lib/binfmt.d
94 modulesloaddir=$(prefix)/lib/modules-load.d
95 networkdir=$(rootprefix)/lib/systemd/network
96 pkgincludedir=$(includedir)/systemd
97 systemgeneratordir=$(rootlibexecdir)/system-generators
98 usergeneratordir=$(prefix)/lib/systemd/user-generators
99 systemshutdowndir=$(rootlibexecdir)/system-shutdown
100 systemsleepdir=$(rootlibexecdir)/system-sleep
101 systemunitdir=$(rootprefix)/lib/systemd/system
102 systempresetdir=$(rootprefix)/lib/systemd/system-preset
103 udevlibexecdir=$(rootprefix)/lib/udev
104 udevhomedir=$(udevlibexecdir)
105 udevrulesdir=$(udevlibexecdir)/rules.d
106 udevhwdbdir=$(udevlibexecdir)/hwdb.d
107 catalogdir=$(prefix)/lib/systemd/catalog
108 kernelinstalldir = $(prefix)/lib/kernel/install.d
109 factory_etcdir = $(datadir)/factory/etc
110 factory_pamdir = $(datadir)/factory/etc/pam.d
111 bootlibdir = $(prefix)/lib/systemd/boot/efi
113 # And these are the special ones for /
114 rootprefix=@rootprefix@
115 rootbindir=$(rootprefix)/bin
116 rootlibexecdir=$(rootprefix)/lib/systemd
121 UNINSTALL_EXEC_HOOKS =
123 UNINSTALL_DATA_HOOKS =
124 DISTCLEAN_LOCAL_HOOKS =
133 polkitpolicy_in_in_files =
134 polkitpolicy_in_files =
136 dist_udevrules_DATA =
137 nodist_udevrules_DATA =
138 dist_pkgsysconf_DATA =
139 nodist_pkgsysconf_DATA =
140 dist_dbuspolicy_DATA =
141 dist_dbussystemservice_DATA =
142 dist_systemunit_DATA_busnames =
148 TEST_EXTENSIONS = .py
149 PY_LOG_COMPILER = $(PYTHON)
151 noinst_PROGRAMS = $(manual_tests) $(tests)
157 udevlibexec_PROGRAMS =
158 gperf_gperf_sources =
160 in_files = $(filter %.in,$(EXTRA_DIST))
161 in_in_files = $(filter %.in.in, $(in_files))
162 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
164 CLEANFILES = $(BUILT_SOURCES) \
165 $(pkgconfigdata_DATA) \
166 $(pkgconfiglib_DATA) \
167 $(in_files:.in=) $(in_in_files:.in.in=) \
170 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
171 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
172 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
175 -include $(top_builddir)/config.h \
176 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
177 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
178 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
179 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
180 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
181 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
182 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
183 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
184 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
185 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
186 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
187 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
188 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
189 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
190 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
191 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
192 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
193 -DROOTPREFIX=\"$(rootprefix)\" \
194 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
195 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
196 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
197 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
198 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
199 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
200 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
201 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
202 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
203 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
204 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
205 -DQUOTACHECK=\"$(QUOTACHECK)\" \
206 -DKEXEC=\"$(KEXEC)\" \
207 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
208 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
209 -DLIBDIR=\"$(libdir)\" \
210 -DROOTLIBDIR=\"$(rootlibdir)\" \
211 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
212 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
213 -I $(top_srcdir)/src \
214 -I $(top_builddir)/src/basic \
215 -I $(top_srcdir)/src/basic \
216 -I $(top_srcdir)/src/shared \
217 -I $(top_builddir)/src/shared \
218 -I $(top_srcdir)/src/network \
219 -I $(top_srcdir)/src/login \
220 -I $(top_srcdir)/src/journal \
221 -I $(top_builddir)/src/journal \
222 -I $(top_srcdir)/src/timedate \
223 -I $(top_srcdir)/src/timesync \
224 -I $(top_srcdir)/src/nspawn \
225 -I $(top_srcdir)/src/resolve \
226 -I $(top_builddir)/src/resolve \
227 -I $(top_srcdir)/src/systemd \
228 -I $(top_builddir)/src/core \
229 -I $(top_srcdir)/src/core \
230 -I $(top_srcdir)/src/libudev \
231 -I $(top_srcdir)/src/udev \
232 -I $(top_srcdir)/src/udev/net \
233 -I $(top_builddir)/src/udev \
234 -I $(top_srcdir)/src/libsystemd/sd-bus \
235 -I $(top_srcdir)/src/libsystemd/sd-event \
236 -I $(top_srcdir)/src/libsystemd/sd-login \
237 -I $(top_srcdir)/src/libsystemd/sd-netlink \
238 -I $(top_srcdir)/src/libsystemd/sd-network \
239 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
240 -I $(top_srcdir)/src/libsystemd/sd-device \
241 -I $(top_srcdir)/src/libsystemd-network \
244 AM_CFLAGS = $(OUR_CFLAGS)
245 AM_LDFLAGS = $(OUR_LDFLAGS)
247 # ------------------------------------------------------------------------------
248 define move-to-rootlibdir
249 if test "$(libdir)" != "$(rootlibdir)"; then \
250 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
251 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
252 rm -f $(DESTDIR)$(libdir)/$$libname && \
253 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
254 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
260 SHUTDOWN_TARGET_WANTS =
261 LOCAL_FS_TARGET_WANTS =
262 MULTI_USER_TARGET_WANTS =
263 GRAPHICAL_TARGET_WANTS =
264 RESCUE_TARGET_WANTS =
265 SYSINIT_TARGET_WANTS =
266 SOCKETS_TARGET_WANTS =
267 BUSNAMES_TARGET_WANTS =
268 TIMERS_TARGET_WANTS =
269 USER_SOCKETS_TARGET_WANTS =
270 USER_DEFAULT_TARGET_WANTS =
271 USER_BUSNAMES_TARGET_WANTS =
273 SYSTEM_UNIT_ALIASES =
277 install-target-wants-hook:
278 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
280 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
281 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
282 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
283 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
284 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
285 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
286 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
287 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
288 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
290 install-busnames-target-wants-hook:
291 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
292 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
295 [ -z "$$what" ] || ( \
296 dir=$(DESTDIR)$$dir/$$wants.wants && \
297 $(MKDIR_P) -m 0755 $$dir && \
300 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
303 install-directories-hook:
304 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
306 install-aliases-hook:
307 set -- $(SYSTEM_UNIT_ALIASES) && \
308 dir=$(systemunitdir) && $(install-aliases)
309 set -- $(USER_UNIT_ALIASES) && \
310 dir=$(userunitdir) && $(install-relative-aliases)
311 set -- $(GENERAL_ALIASES) && \
312 dir= && $(install-relative-aliases)
314 define install-aliases
315 while [ -n "$$1" ]; do \
316 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
317 rm -f $(DESTDIR)$$dir/$$2 && \
318 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
319 shift 2 || exit $$?; \
323 define install-relative-aliases
324 while [ -n "$$1" ]; do \
325 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
326 rm -f $(DESTDIR)$$dir/$$2 && \
327 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
328 shift 2 || exit $$?; \
332 install-touch-usr-hook:
333 touch -c $(DESTDIR)/$(prefix)
335 INSTALL_EXEC_HOOKS += \
336 install-target-wants-hook \
337 install-directories-hook \
338 install-aliases-hook \
339 install-touch-usr-hook
341 INSTALL_EXEC_HOOKS += \
342 install-busnames-target-wants-hook
344 # ------------------------------------------------------------------------------
345 AM_V_M4 = $(AM_V_M4_$(V))
346 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
347 AM_V_M4_0 = @echo " M4 " $@;
349 AM_V_XSLT = $(AM_V_XSLT_$(V))
350 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
351 AM_V_XSLT_0 = @echo " XSLT " $@;
353 AM_V_GPERF = $(AM_V_GPERF_$(V))
354 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
355 AM_V_GPERF_0 = @echo " GPERF " $@;
357 AM_V_LN = $(AM_V_LN_$(V))
358 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
359 AM_V_LN_0 = @echo " LN " $@;
361 AM_V_RM = $(AM_V_RM_$(V))
362 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
363 AM_V_RM_0 = @echo " RM " $@;
365 # ------------------------------------------------------------------------------
369 systemd-ask-password \
370 systemd-tty-ask-password-agent \
371 systemd-machine-id-setup \
378 systemd-detect-virt \
382 systemd-stdio-bridge \
386 src/kernel-install/kernel-install
388 dist_kernelinstall_SCRIPTS = \
389 src/kernel-install/50-depmod.install \
390 src/kernel-install/90-loaderentry.install
392 rootlibexec_PROGRAMS = \
394 systemd-cgroups-agent \
398 systemd-reply-password \
400 systemd-machine-id-commit \
405 systemd-socket-proxyd \
409 rootlibexec_PROGRAMS += \
413 systemgenerator_PROGRAMS = \
414 systemd-getty-generator \
415 systemd-fstab-generator \
416 systemd-system-update-generator \
417 systemd-debug-generator
419 if ENABLE_BASH_COMPLETION
420 dist_bashcompletion_DATA = \
421 shell-completion/bash/busctl \
422 shell-completion/bash/journalctl \
423 shell-completion/bash/systemd-analyze \
424 shell-completion/bash/systemd-cat \
425 shell-completion/bash/systemd-cgls \
426 shell-completion/bash/systemd-cgtop \
427 shell-completion/bash/systemd-delta \
428 shell-completion/bash/systemd-detect-virt \
429 shell-completion/bash/systemd-nspawn \
430 shell-completion/bash/systemd-run \
431 shell-completion/bash/udevadm \
432 shell-completion/bash/kernel-install
434 nodist_bashcompletion_DATA = \
435 shell-completion/bash/systemctl
438 if ENABLE_ZSH_COMPLETION
439 dist_zshcompletion_DATA = \
440 shell-completion/zsh/_busctl \
441 shell-completion/zsh/_journalctl \
442 shell-completion/zsh/_udevadm \
443 shell-completion/zsh/_kernel-install \
444 shell-completion/zsh/_systemd-nspawn \
445 shell-completion/zsh/_systemd-analyze \
446 shell-completion/zsh/_systemd-run \
447 shell-completion/zsh/_sd_hosts_or_user_at_host \
448 shell-completion/zsh/_sd_outputmodes \
449 shell-completion/zsh/_sd_unit_files \
450 shell-completion/zsh/_systemd-delta \
451 shell-completion/zsh/_systemd
453 nodist_zshcompletion_DATA = \
454 shell-completion/zsh/_systemctl
458 shell-completion/bash/systemctl.in \
459 shell-completion/zsh/_systemctl.in
462 $(nodist_bashcompletion_DATA) \
463 $(nodist_zshcompletion_DATA)
466 sysctl.d/50-default.conf
468 dist_systemunit_DATA = \
469 units/graphical.target \
470 units/multi-user.target \
471 units/emergency.target \
472 units/sysinit.target \
478 units/local-fs.target \
479 units/local-fs-pre.target \
480 units/initrd.target \
481 units/initrd-fs.target \
482 units/initrd-root-fs.target \
483 units/remote-fs.target \
484 units/remote-fs-pre.target \
485 units/network.target \
486 units/network-pre.target \
487 units/network-online.target \
488 units/nss-lookup.target \
489 units/nss-user-lookup.target \
490 units/poweroff.target \
491 units/reboot.target \
492 units/rescue.target \
493 units/rpcbind.target \
494 units/time-sync.target \
495 units/shutdown.target \
497 units/umount.target \
498 units/sigpwr.target \
500 units/sockets.target \
501 units/timers.target \
503 units/suspend.target \
505 units/slices.target \
508 units/systemd-initctl.socket \
509 units/syslog.socket \
510 units/dev-hugepages.mount \
511 units/dev-mqueue.mount \
512 units/sys-kernel-config.mount \
513 units/sys-kernel-debug.mount \
514 units/sys-fs-fuse-connections.mount \
516 units/var-lib-machines.mount \
517 units/printer.target \
519 units/bluetooth.target \
520 units/smartcard.target \
521 units/systemd-ask-password-wall.path \
522 units/systemd-ask-password-console.path \
523 units/systemd-udevd-control.socket \
524 units/systemd-udevd-kernel.socket \
525 units/system-update.target \
526 units/initrd-switch-root.target \
527 units/machines.target
529 dist_systemunit_DATA += \
530 $(dist_systemunit_DATA_busnames)
532 dist_systemunit_DATA_busnames += \
533 units/busnames.target
535 nodist_systemunit_DATA = \
536 units/getty@.service \
537 units/serial-getty@.service \
538 units/console-shell.service \
539 units/console-getty.service \
540 units/container-getty@.service \
541 units/systemd-initctl.service \
542 units/systemd-remount-fs.service \
543 units/systemd-ask-password-wall.service \
544 units/systemd-ask-password-console.service \
545 units/systemd-sysctl.service \
546 units/emergency.service \
547 units/rescue.service \
548 units/user@.service \
549 units/systemd-suspend.service \
550 units/systemd-halt.service \
551 units/systemd-poweroff.service \
552 units/systemd-reboot.service \
553 units/systemd-kexec.service \
554 units/systemd-exit.service \
555 units/systemd-fsck@.service \
556 units/systemd-fsck-root.service \
557 units/systemd-machine-id-commit.service \
558 units/systemd-udevd.service \
559 units/systemd-udev-trigger.service \
560 units/systemd-udev-settle.service \
561 units/systemd-hwdb-update.service \
562 units/debug-shell.service \
563 units/initrd-parse-etc.service \
564 units/initrd-cleanup.service \
565 units/initrd-udevadm-cleanup-db.service \
566 units/initrd-switch-root.service \
567 units/systemd-nspawn@.service \
568 units/systemd-update-done.service
571 nodist_systemunit_DATA += \
572 units/systemd-update-utmp.service \
573 units/systemd-update-utmp-runlevel.service
576 dist_userunit_DATA = \
577 units/user/basic.target \
578 units/user/default.target \
579 units/user/exit.target
581 nodist_userunit_DATA = \
582 units/user/systemd-exit.service
584 dist_systempreset_DATA = \
585 system-preset/90-systemd.preset
588 units/getty@.service.m4 \
589 units/serial-getty@.service.m4 \
590 units/console-shell.service.m4.in \
591 units/console-getty.service.m4.in \
592 units/container-getty@.service.m4.in \
593 units/rescue.service.in \
594 units/systemd-initctl.service.in \
595 units/systemd-remount-fs.service.in \
596 units/systemd-update-utmp.service.in \
597 units/systemd-update-utmp-runlevel.service.in \
598 units/systemd-ask-password-wall.service.in \
599 units/systemd-ask-password-console.service.in \
600 units/systemd-sysctl.service.in \
601 units/emergency.service.in \
602 units/systemd-halt.service.in \
603 units/systemd-poweroff.service.in \
604 units/systemd-reboot.service.in \
605 units/systemd-kexec.service.in \
606 units/systemd-exit.service.in \
607 units/user/systemd-exit.service.in \
608 units/systemd-fsck@.service.in \
609 units/systemd-fsck-root.service.in \
610 units/systemd-machine-id-commit.service.in \
611 units/user@.service.m4.in \
612 units/debug-shell.service.in \
613 units/systemd-suspend.service.in \
614 units/quotaon.service.in \
615 units/initrd-parse-etc.service.in \
616 units/initrd-cleanup.service.in \
617 units/initrd-udevadm-cleanup-db.service.in \
618 units/initrd-switch-root.service.in \
619 units/systemd-nspawn@.service.in \
620 units/systemd-update-done.service.in
623 nodist_systemunit_DATA += \
624 units/rc-local.service \
625 units/halt-local.service
627 systemgenerator_PROGRAMS += \
628 systemd-sysv-generator \
629 systemd-rc-local-generator
633 src/systemctl/systemd-sysv-install.SKELETON \
634 units/rc-local.service.in \
635 units/halt-local.service.in
637 # automake is broken and can't handle files with a dash in front
638 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
640 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
642 units-uninstall-hook:
643 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
645 INSTALL_DATA_HOOKS += units-install-hook
646 UNINSTALL_DATA_HOOKS += units-uninstall-hook
655 src/libsystemd/sd-bus/PORTING-DBUS1 \
656 src/libsystemd/sd-bus/DIFFERENCES \
657 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
668 @INTLTOOL_POLICY_RULE@
670 # ------------------------------------------------------------------------------
675 include Makefile-man.am
677 .PHONY: man update-man-list
678 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
681 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
683 ${XML_FILES:.xml=.html}
685 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
702 $(AM_V_at)$(MKDIR_P) $(dir $@)
703 $(AM_V_LN)$(LN_S) -f ../../man $@
712 man/index.html: man/systemd.index.html
713 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
721 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
722 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
723 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
725 # This target should only be run manually. It recreates Makefile-man.am
726 # file in the source directory based on all man/*.xml files. Run it after
727 # adding, removing, or changing the conditional in a man page.
728 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
729 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
730 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
731 @echo "Makefile-man.am has been regenerated"
733 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
734 $(AM_V_at)$(MKDIR_P) $(dir $@)
735 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
737 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
738 $(AM_V_at)$(MKDIR_P) $(dir $@)
739 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
742 man/systemd.index.xml \
743 man/systemd.directives.xml
746 tools/make-man-rules.py
753 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
754 tools/make-man-index.py \
755 tools/make-directive-index.py \
756 tools/xml_helper.py \
757 man/glib-event-glue.c
759 # ------------------------------------------------------------------------------
760 noinst_LTLIBRARIES += \
763 libbasic_la_SOURCES = \
764 src/basic/missing.h \
765 src/basic/capability.c \
766 src/basic/capability.h \
767 src/basic/conf-files.c \
768 src/basic/conf-files.h \
769 src/basic/hostname-util.h \
770 src/basic/hostname-util.c \
771 src/basic/unit-name.c \
772 src/basic/unit-name.h \
774 src/basic/securebits.h \
775 src/basic/special.h \
777 src/basic/unaligned.h \
780 src/basic/sparse-endian.h \
784 src/basic/lockfile-util.c \
785 src/basic/lockfile-util.h \
786 src/basic/path-util.c \
787 src/basic/path-util.h \
788 src/basic/time-util.c \
789 src/basic/time-util.h \
790 src/basic/locale-util.c \
791 src/basic/locale-util.h \
792 src/basic/signal-util.c \
793 src/basic/signal-util.h \
794 src/basic/mempool.c \
795 src/basic/mempool.h \
796 src/basic/hashmap.c \
797 src/basic/hashmap.h \
798 src/basic/siphash24.c \
799 src/basic/siphash24.h \
801 src/basic/ordered-set.h \
810 src/basic/env-util.c \
811 src/basic/env-util.h \
814 src/basic/strxcpyx.c \
815 src/basic/strxcpyx.h \
818 src/basic/bus-label.c \
819 src/basic/bus-label.h \
820 src/basic/ratelimit.h \
821 src/basic/ratelimit.c \
822 src/basic/exit-status.c \
823 src/basic/exit-status.h \
826 src/basic/smack-util.c \
827 src/basic/smack-util.h \
828 src/basic/device-nodes.c \
829 src/basic/device-nodes.h \
832 src/basic/gunicode.c \
833 src/basic/gunicode.h \
834 src/basic/socket-util.c \
835 src/basic/socket-util.h \
836 src/basic/in-addr-util.c \
837 src/basic/in-addr-util.h \
838 src/basic/ether-addr-util.h \
839 src/basic/replace-var.c \
840 src/basic/replace-var.h \
841 src/basic/clock-util.c \
842 src/basic/clock-util.h \
843 src/basic/calendarspec.c \
844 src/basic/calendarspec.h \
847 src/basic/MurmurHash2.c \
848 src/basic/MurmurHash2.h \
851 src/basic/cgroup-util.c \
852 src/basic/cgroup-util.h \
853 src/basic/errno-list.c \
854 src/basic/errno-list.h \
855 src/basic/af-list.c \
856 src/basic/af-list.h \
857 src/basic/arphrd-list.c \
858 src/basic/arphrd-list.h \
859 src/basic/terminal-util.c \
860 src/basic/terminal-util.h \
861 src/basic/login-util.h \
862 src/basic/login-util.c \
863 src/basic/cap-list.c \
864 src/basic/cap-list.h \
871 src/basic/barrier.c \
872 src/basic/barrier.h \
875 src/basic/memfd-util.c \
876 src/basic/memfd-util.h \
877 src/basic/process-util.c \
878 src/basic/process-util.h \
879 src/basic/random-util.c \
880 src/basic/random-util.h \
886 src/basic/socket-label.c \
889 src/basic/btrfs-util.c \
890 src/basic/btrfs-util.h \
891 src/basic/btrfs-ctree.h \
892 src/basic/selinux-util.c \
893 src/basic/selinux-util.h \
894 src/basic/mkdir-label.c \
895 src/basic/fileio-label.c \
896 src/basic/fileio-label.h \
902 nodist_libbasic_la_SOURCES = \
903 src/basic/errno-from-name.h \
904 src/basic/errno-to-name.h \
905 src/basic/af-from-name.h \
906 src/basic/af-to-name.h \
907 src/basic/arphrd-from-name.h \
908 src/basic/arphrd-to-name.h \
909 src/basic/cap-from-name.h \
910 src/basic/cap-to-name.h
912 libbasic_la_CFLAGS = \
918 libbasic_la_LIBADD = \
925 # -----------------------------------------------------------------------------
926 noinst_LTLIBRARIES += \
929 libshared_la_SOURCES = \
930 src/shared/output-mode.h \
932 src/shared/udev-util.h \
933 src/shared/linux/auto_dev-ioctl.h \
934 src/shared/initreq.h \
935 src/shared/dns-domain.c \
936 src/shared/dns-domain.h \
937 src/shared/architecture.c \
938 src/shared/architecture.h \
939 src/shared/efivars.c \
940 src/shared/efivars.h \
941 src/shared/formats-util.h \
942 src/shared/fstab-util.c \
943 src/shared/fstab-util.h \
944 src/shared/sleep-config.c \
945 src/shared/sleep-config.h \
946 src/shared/conf-parser.c \
947 src/shared/conf-parser.h \
950 src/shared/spawn-polkit-agent.c \
951 src/shared/spawn-polkit-agent.h \
952 src/shared/apparmor-util.c \
953 src/shared/apparmor-util.h \
954 src/shared/ima-util.c \
955 src/shared/ima-util.h \
956 src/shared/ptyfwd.c \
957 src/shared/ptyfwd.h \
958 src/shared/base-filesystem.c \
959 src/shared/base-filesystem.h \
960 src/shared/uid-range.c \
961 src/shared/uid-range.h \
962 src/shared/nss-util.h \
963 src/shared/install.c \
964 src/shared/install.h \
965 src/shared/install-printf.c \
966 src/shared/install-printf.h \
967 src/shared/path-lookup.c \
968 src/shared/path-lookup.h \
969 src/shared/specifier.c \
970 src/shared/specifier.h \
971 src/shared/dev-setup.c \
972 src/shared/dev-setup.h \
973 src/shared/dropin.c \
974 src/shared/dropin.h \
975 src/shared/condition.c \
976 src/shared/condition.h \
977 src/shared/clean-ipc.c \
978 src/shared/clean-ipc.h \
979 src/shared/generator.h \
980 src/shared/generator.c \
981 src/shared/acpi-fpdt.h \
982 src/shared/acpi-fpdt.c \
983 src/shared/boot-timestamps.h \
984 src/shared/boot-timestamps.c \
985 src/shared/cgroup-show.c \
986 src/shared/cgroup-show.h \
987 src/shared/utmp-wtmp.h \
988 src/shared/watchdog.c \
989 src/shared/watchdog.h \
990 src/shared/spawn-ask-password-agent.c \
991 src/shared/spawn-ask-password-agent.h \
992 src/shared/ask-password-api.c \
993 src/shared/ask-password-api.h \
994 src/shared/switch-root.h \
995 src/shared/switch-root.c \
996 src/shared/import-util.c \
997 src/shared/import-util.h \
998 src/shared/sysctl-util.c \
999 src/shared/sysctl-util.h \
1000 src/shared/bus-util.c \
1001 src/shared/bus-util.h \
1002 src/shared/logs-show.c \
1003 src/shared/logs-show.h \
1004 src/shared/machine-image.c \
1005 src/shared/machine-image.h \
1006 src/shared/machine-pool.c \
1007 src/shared/machine-pool.h
1010 libshared_la_SOURCES += \
1011 src/shared/utmp-wtmp.c
1015 libshared_la_SOURCES += \
1016 src/shared/seccomp-util.h \
1017 src/shared/seccomp-util.c
1021 libshared_la_SOURCES += \
1022 src/shared/acl-util.c \
1023 src/shared/acl-util.h
1026 libshared_la_CFLAGS = \
1032 libshared_la_LIBADD = \
1033 libsystemd-internal.la \
1034 libsystemd-journal-internal.la \
1035 libudev-internal.la \
1040 # -----------------------------------------------------------------------------
1042 noinst_LTLIBRARIES += \
1045 libfirewall_la_SOURCES = \
1046 src/shared/firewall-util.h \
1047 src/shared/firewall-util.c
1049 libfirewall_la_CFLAGS = \
1053 libfirewall_la_LIBADD = \
1057 # -----------------------------------------------------------------------------
1059 dist_systemunit_DATA += \
1060 units/ldconfig.service
1062 SYSINIT_TARGET_WANTS += \
1066 # ------------------------------------------------------------------------------
1067 noinst_LTLIBRARIES += \
1070 libcore_la_SOURCES = \
1073 src/core/unit-printf.c \
1074 src/core/unit-printf.h \
1077 src/core/manager.c \
1078 src/core/manager.h \
1079 src/core/transaction.c \
1080 src/core/transaction.h \
1081 src/core/load-fragment.c \
1082 src/core/load-fragment.h \
1083 src/core/service.c \
1084 src/core/service.h \
1087 src/core/busname.c \
1088 src/core/busname.h \
1089 src/core/bus-endpoint.c \
1090 src/core/bus-endpoint.h \
1091 src/core/bus-policy.c \
1092 src/core/bus-policy.h \
1095 src/core/snapshot.c \
1096 src/core/snapshot.h \
1101 src/core/automount.c \
1102 src/core/automount.h \
1113 src/core/load-dropin.c \
1114 src/core/load-dropin.h \
1115 src/core/execute.c \
1116 src/core/execute.h \
1121 src/core/dbus-manager.c \
1122 src/core/dbus-manager.h \
1123 src/core/dbus-unit.c \
1124 src/core/dbus-unit.h \
1125 src/core/dbus-job.c \
1126 src/core/dbus-job.h \
1127 src/core/dbus-service.c \
1128 src/core/dbus-service.h \
1129 src/core/dbus-socket.c \
1130 src/core/dbus-socket.h \
1131 src/core/dbus-busname.c \
1132 src/core/dbus-busname.h \
1133 src/core/dbus-target.c \
1134 src/core/dbus-target.h \
1135 src/core/dbus-snapshot.c \
1136 src/core/dbus-snapshot.h \
1137 src/core/dbus-device.c \
1138 src/core/dbus-device.h \
1139 src/core/dbus-mount.c \
1140 src/core/dbus-mount.h \
1141 src/core/dbus-automount.c \
1142 src/core/dbus-automount.h \
1143 src/core/dbus-swap.c \
1144 src/core/dbus-swap.h \
1145 src/core/dbus-timer.c \
1146 src/core/dbus-timer.h \
1147 src/core/dbus-path.c \
1148 src/core/dbus-path.h \
1149 src/core/dbus-slice.c \
1150 src/core/dbus-slice.h \
1151 src/core/dbus-scope.c \
1152 src/core/dbus-scope.h \
1153 src/core/dbus-execute.c \
1154 src/core/dbus-execute.h \
1155 src/core/dbus-kill.c \
1156 src/core/dbus-kill.h \
1157 src/core/dbus-cgroup.c \
1158 src/core/dbus-cgroup.h \
1161 src/core/selinux-access.c \
1162 src/core/selinux-access.h \
1163 src/core/selinux-setup.c \
1164 src/core/selinux-setup.h \
1165 src/core/smack-setup.c \
1166 src/core/smack-setup.h \
1167 src/core/ima-setup.c \
1168 src/core/ima-setup.h \
1169 src/core/locale-setup.h \
1170 src/core/locale-setup.c \
1171 src/core/hostname-setup.c \
1172 src/core/hostname-setup.h \
1173 src/core/machine-id-setup.c \
1174 src/core/machine-id-setup.h \
1175 src/core/mount-setup.c \
1176 src/core/mount-setup.h \
1177 src/core/kmod-setup.c \
1178 src/core/kmod-setup.h \
1179 src/core/loopback-setup.h \
1180 src/core/loopback-setup.c \
1181 src/core/namespace.c \
1182 src/core/namespace.h \
1183 src/core/killall.h \
1184 src/core/killall.c \
1185 src/core/audit-fd.c \
1186 src/core/audit-fd.h \
1187 src/core/show-status.c \
1188 src/core/show-status.h \
1189 src/core/failure-action.c \
1190 src/core/failure-action.h
1192 nodist_libcore_la_SOURCES = \
1193 src/core/load-fragment-gperf.c \
1194 src/core/load-fragment-gperf-nulstr.c
1196 libcore_la_CFLAGS = \
1201 $(APPARMOR_CFLAGS) \
1205 libcore_la_LIBADD = \
1213 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1214 $(AM_V_at)$(MKDIR_P) $(dir $@)
1215 $(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 ";" }' < $< > $@
1217 gperf_gperf_m4_sources = \
1218 src/core/load-fragment-gperf.gperf.m4
1220 gperf_txt_sources = \
1221 src/basic/errno-list.txt \
1222 src/basic/af-list.txt \
1223 src/basic/arphrd-list.txt \
1224 src/basic/cap-list.txt
1227 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1228 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1229 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1230 $(gperf_txt_sources:-list.txt=-from-name.h) \
1231 $(gperf_txt_sources:-list.txt=-to-name.h)
1234 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1236 $(gperf_txt_sources)
1239 $(gperf_gperf_m4_sources) \
1240 $(gperf_gperf_sources)
1243 $(gperf_txt_sources)
1245 %-from-name.gperf: %-list.txt
1246 $(AM_V_at)$(MKDIR_P) $(dir $@)
1247 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1249 %-from-name.h: %-from-name.gperf
1250 $(AM_V_at)$(MKDIR_P) $(dir $@)
1251 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1254 src/basic/errno-list.txt:
1255 $(AM_V_at)$(MKDIR_P) $(dir $@)
1256 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1258 src/basic/errno-to-name.h: src/basic/errno-list.txt
1259 $(AM_V_at)$(MKDIR_P) $(dir $@)
1260 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1263 src/basic/af-list.txt:
1264 $(AM_V_at)$(MKDIR_P) $(dir $@)
1265 $(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; }' >$@
1267 src/basic/af-to-name.h: src/basic/af-list.txt
1268 $(AM_V_at)$(MKDIR_P) $(dir $@)
1269 $(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 "};"}' <$< >$@
1272 src/basic/arphrd-list.txt:
1273 $(AM_V_at)$(MKDIR_P) $(dir $@)
1274 $(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_//' >$@
1276 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1277 $(AM_V_at)$(MKDIR_P) $(dir $@)
1278 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1280 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1281 $(AM_V_at)$(MKDIR_P) $(dir $@)
1282 $(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 }' <$< >$@
1285 src/basic/cap-list.txt:
1286 $(AM_V_at)$(MKDIR_P) $(dir $@)
1287 $(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 >$@
1289 src/basic/cap-to-name.h: src/basic/cap-list.txt
1290 $(AM_V_at)$(MKDIR_P) $(dir $@)
1291 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1293 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1294 $(AM_V_at)$(MKDIR_P) $(dir $@)
1295 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1297 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1298 $(AM_V_at)$(MKDIR_P) $(dir $@)
1299 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1301 audit_list_includes = -include linux/audit.h -include missing.h
1303 audit_list_includes += -include libaudit.h
1306 src/journal/audit_type-list.txt:
1307 $(AM_V_at)$(MKDIR_P) $(dir $@)
1308 $(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 >$@
1310 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1311 $(AM_V_at)$(MKDIR_P) $(dir $@)
1312 $(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" }' <$< >$@
1315 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1316 $(AM_V_at)$(MKDIR_P) $(dir $@)
1317 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1319 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1320 $(AM_V_at)$(MKDIR_P) $(dir $@)
1321 $(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" }' <$< >$@
1323 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1324 $(AM_V_at)$(MKDIR_P) $(dir $@)
1325 $(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 }' <$< >$@
1327 # ------------------------------------------------------------------------------
1338 dist_pkgsysconf_DATA += \
1339 src/core/system.conf \
1342 dist_dbuspolicy_DATA += \
1343 src/core/org.freedesktop.systemd1.conf
1345 dist_dbussystemservice_DATA += \
1346 src/core/org.freedesktop.systemd1.service
1348 polkitpolicy_in_in_files += \
1349 src/core/org.freedesktop.systemd1.policy.in.in
1351 pkgconfigdata_DATA += \
1354 nodist_rpmmacros_DATA = \
1355 src/core/macros.systemd
1358 src/core/systemd.pc.in \
1359 src/core/macros.systemd.in
1361 # ------------------------------------------------------------------------------
1402 test-hostname-util \
1404 test-terminal-util \
1414 test-strip-tab-ansi \
1455 test/daughter.service \
1457 test/end.service.in \
1460 test/grandchild.service \
1462 test/hello-after-sleep.target \
1463 test/hello.service \
1465 test/parent-deep.slice \
1468 test/sched_idle_bad.service \
1469 test/sched_idle_ok.service \
1470 test/sched_rr_bad.service \
1471 test/sched_rr_change.service \
1472 test/sched_rr_ok.service \
1473 test/shutdown.target \
1474 test/sleep.service \
1475 test/sockets.target \
1477 test/sysinit.target \
1478 test/testsuite.target \
1479 test/timers.target \
1480 test/unstoppable.service \
1481 test/path-changed.service \
1482 test/path-directorynotempty.service \
1483 test/path-existsglob.service \
1484 test/path-exists.service \
1485 test/path-makedirectory.service \
1486 test/path-modified.service \
1487 test/path-mycustomunit.service \
1488 test/path-service.service \
1489 test/path-changed.path \
1490 test/path-directorynotempty.path \
1491 test/path-existsglob.path \
1492 test/path-exists.path \
1493 test/path-makedirectory.path \
1494 test/path-modified.path \
1495 test/path-unit.path \
1496 test/exec-environment-empty.service \
1497 test/exec-environment-multiple.service \
1498 test/exec-environment.service \
1499 test/exec-group.service \
1500 test/exec-ignoresigpipe-no.service \
1501 test/exec-ignoresigpipe-yes.service \
1502 test/exec-personality-x86-64.service \
1503 test/exec-personality-x86.service \
1504 test/exec-privatedevices-no.service \
1505 test/exec-privatedevices-yes.service \
1506 test/exec-privatetmp-no.service \
1507 test/exec-privatetmp-yes.service \
1508 test/exec-systemcallerrornumber.service \
1509 test/exec-systemcallfilter-failing2.service \
1510 test/exec-systemcallfilter-failing.service \
1511 test/exec-systemcallfilter-not-failing2.service \
1512 test/exec-systemcallfilter-not-failing.service \
1513 test/exec-user.service \
1514 test/exec-workingdirectory.service \
1515 test/exec-umask-0177.service \
1516 test/exec-umask-default.service \
1517 test/bus-policy/hello.conf \
1518 test/bus-policy/methods.conf \
1519 test/bus-policy/ownerships.conf \
1520 test/bus-policy/signals.conf \
1521 test/bus-policy/check-own-rules.conf \
1522 test/bus-policy/many-rules.conf \
1523 test/bus-policy/test.conf
1527 src/test/test-helper.h
1529 test_device_nodes_SOURCES = \
1530 src/test/test-device-nodes.c
1532 test_device_nodes_LDADD = \
1535 test_engine_SOURCES = \
1536 src/test/test-engine.c
1538 test_engine_CFLAGS = \
1542 test_engine_LDADD = \
1545 test_job_type_SOURCES = \
1546 src/test/test-job-type.c
1548 test_job_type_CFLAGS = \
1552 test_job_type_LDADD = \
1565 test_loopback_SOURCES = \
1566 src/test/test-loopback.c
1568 test_loopback_LDADD = \
1571 test_hostname_SOURCES = \
1572 src/test/test-hostname.c
1574 test_hostname_LDADD = \
1577 test_dns_domain_SOURCES = \
1578 src/test/test-dns-domain.c
1580 test_dns_domain_LDADD = \
1581 libsystemd-network.la \
1588 test_boot_timestamp_SOURCES = \
1589 src/test/test-boot-timestamps.c
1591 test_boot_timestamp_LDADD = \
1595 test_unit_name_SOURCES = \
1596 src/test/test-unit-name.c
1598 test_unit_name_CFLAGS = \
1602 test_unit_name_LDADD = \
1605 test_unit_file_SOURCES = \
1606 src/test/test-unit-file.c
1608 test_unit_file_CFLAGS = \
1612 test_unit_file_LDADD = \
1615 test_utf8_SOURCES = \
1616 src/test/test-utf8.c
1621 test_capability_SOURCES = \
1622 src/test/test-capability.c
1624 test_capability_LDADD = \
1627 test_async_SOURCES = \
1628 src/test/test-async.c
1630 test_async_LDADD = \
1633 test_locale_util_SOURCES = \
1634 src/test/test-locale-util.c
1636 test_locale_util_LDADD = \
1639 test_copy_SOURCES = \
1640 src/test/test-copy.c
1645 test_sigbus_SOURCES = \
1646 src/test/test-sigbus.c
1648 test_sigbus_LDADD = \
1651 test_condition_SOURCES = \
1652 src/test/test-condition.c
1654 test_condition_LDADD = \
1657 test_fdset_SOURCES = \
1658 src/test/test-fdset.c
1660 test_fdset_LDADD = \
1663 test_fstab_util_SOURCES = \
1664 src/test/test-fstab-util.c
1666 test_fstab_util_LDADD = \
1669 test_ratelimit_SOURCES = \
1670 src/test/test-ratelimit.c
1672 test_ratelimit_LDADD = \
1675 test_util_SOURCES = \
1676 src/test/test-util.c
1681 test_hostname_util_SOURCES = \
1682 src/test/test-hostname-util.c
1684 test_hostname_util_LDADD = \
1687 test_process_util_SOURCES = \
1688 src/test/test-process-util.c
1690 test_process_util_LDADD = \
1693 test_terminal_util_SOURCES = \
1694 src/test/test-terminal-util.c
1696 test_terminal_util_LDADD = \
1699 test_path_lookup_SOURCES = \
1700 src/test/test-path-lookup.c
1702 test_path_lookup_LDADD = \
1705 test_uid_range_SOURCES = \
1706 src/test/test-uid-range.c
1708 test_uid_range_LDADD = \
1711 test_cap_list_SOURCES = \
1712 src/test/test-cap-list.c
1714 test_cap_list_LDADD = \
1717 test_socket_util_SOURCES = \
1718 src/test/test-socket-util.c
1720 test_socket_util_LDADD = \
1723 test_barrier_SOURCES = \
1724 src/test/test-barrier.c
1726 test_barrier_LDADD = \
1729 test_tmpfiles_SOURCES = \
1730 src/test/test-tmpfiles.c
1732 test_tmpfiles_LDADD = \
1735 test_namespace_SOURCES = \
1736 src/test/test-namespace.c
1738 test_verbs_SOURCES = \
1739 src/test/test-verbs.c
1741 test_verbs_LDADD = \
1744 test_namespace_LDADD = \
1748 src/test/test-hashmap-ordered.c
1750 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1751 $(AM_V_at)$(MKDIR_P) $(dir $@)
1752 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1753 { if (!match($$0, "^#include")) \
1754 gsub(/hashmap/, "ordered_hashmap"); \
1755 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1756 gsub(/Hashmap/, "OrderedHashmap"); \
1759 nodist_test_hashmap_SOURCES = \
1760 src/test/test-hashmap-ordered.c
1762 test_hashmap_SOURCES = \
1763 src/test/test-hashmap.c \
1764 src/test/test-hashmap-plain.c
1766 test_hashmap_LDADD = \
1769 test_set_SOURCES = \
1775 test_bitmap_SOURCES = \
1776 src/test/test-bitmap.c
1778 test_bitmap_LDADD = \
1781 test_xml_SOURCES = \
1787 test_json_SOURCES = \
1788 src/test/test-json.c
1793 test_list_SOURCES = \
1794 src/test/test-list.c
1799 test_unaligned_LDADD = \
1802 test_unaligned_SOURCES = \
1803 src/test/test-unaligned.c
1805 test_tables_SOURCES = \
1806 src/test/test-tables.c \
1807 src/shared/test-tables.h \
1808 src/bus-proxyd/bus-xml-policy.c \
1809 src/bus-proxyd/bus-xml-policy.h \
1810 src/journal/journald-server.c \
1811 src/journal/journald-server.h
1813 test_tables_CPPFLAGS = \
1815 -I$(top_srcdir)/src/bus-proxyd
1817 test_tables_CFLAGS = \
1821 test_tables_LDADD = \
1822 libjournal-core.la \
1826 test_prioq_SOURCES = \
1827 src/test/test-prioq.c
1829 test_prioq_LDADD = \
1832 test_fileio_SOURCES = \
1833 src/test/test-fileio.c
1835 test_fileio_LDADD = \
1838 test_time_SOURCES = \
1839 src/test/test-time.c
1844 test_architecture_SOURCES = \
1845 src/test/test-architecture.c
1847 test_architecture_LDADD = \
1850 test_log_SOURCES = \
1856 test_ipcrm_SOURCES = \
1857 src/test/test-ipcrm.c
1859 test_ipcrm_LDADD = \
1862 test_btrfs_SOURCES = \
1863 src/test/test-btrfs.c
1865 test_btrfs_LDADD = \
1869 test_firewall_util_SOURCES = \
1870 src/test/test-firewall-util.c
1872 test_firewall_util_CFLAGS = \
1876 test_firewall_util_LDADD = \
1882 test_netlink_manual_SOURCES = \
1883 src/test/test-netlink-manual.c
1885 test_netlink_manual_CFLAGS = \
1889 test_netlink_manual_LDADD = \
1893 test_ellipsize_SOURCES = \
1894 src/test/test-ellipsize.c
1896 test_ellipsize_LDADD = \
1899 test_date_SOURCES = \
1900 src/test/test-date.c
1905 test_sleep_SOURCES = \
1906 src/test/test-sleep.c
1908 test_sleep_LDADD = \
1911 test_replace_var_SOURCES = \
1912 src/test/test-replace-var.c
1914 test_replace_var_LDADD = \
1917 test_calendarspec_SOURCES = \
1918 src/test/test-calendarspec.c
1920 test_calendarspec_LDADD = \
1923 test_strip_tab_ansi_SOURCES = \
1924 src/test/test-strip-tab-ansi.c
1926 test_strip_tab_ansi_LDADD = \
1929 test_daemon_SOURCES = \
1930 src/test/test-daemon.c
1932 test_daemon_LDADD = \
1935 test_cgroup_SOURCES = \
1936 src/test/test-cgroup.c
1938 test_cgroup_LDADD = \
1941 test_cgroup_mask_SOURCES = \
1942 src/test/test-cgroup-mask.c
1944 test_cgroup_mask_CPPFLAGS = \
1947 test_cgroup_mask_CFLAGS = \
1951 test_cgroup_mask_LDADD = \
1954 test_cgroup_util_SOURCES = \
1955 src/test/test-cgroup-util.c
1957 test_cgroup_util_LDADD = \
1960 test_env_replace_SOURCES = \
1961 src/test/test-env-replace.c
1963 test_env_replace_LDADD = \
1966 test_strbuf_SOURCES = \
1967 src/test/test-strbuf.c
1969 test_strbuf_LDADD = \
1972 test_strv_SOURCES = \
1973 src/test/test-strv.c
1978 test_path_util_SOURCES = \
1979 src/test/test-path-util.c
1981 test_path_util_LDADD = \
1984 test_path_SOURCES = \
1985 src/test/test-path.c
1987 test_path_CFLAGS = \
1993 test_execute_SOURCES = \
1994 src/test/test-execute.c
1996 test_execute_CFLAGS = \
1999 test_execute_LDADD = \
2002 test_strxcpyx_SOURCES = \
2003 src/test/test-strxcpyx.c
2005 test_strxcpyx_LDADD = \
2008 test_install_SOURCES = \
2009 src/test/test-install.c
2011 test_install_LDADD = \
2014 test_watchdog_SOURCES = \
2015 src/test/test-watchdog.c
2017 test_watchdog_LDADD = \
2020 test_sched_prio_SOURCES = \
2021 src/test/test-sched-prio.c
2023 test_sched_prio_CPPFLAGS = \
2026 test_sched_prio_CFLAGS = \
2030 test_sched_prio_LDADD = \
2033 test_conf_files_SOURCES = \
2034 src/test/test-conf-files.c
2036 test_conf_files_LDADD = \
2039 test_conf_parser_SOURCES = \
2040 src/test/test-conf-parser.c
2042 test_conf_parser_LDADD = \
2045 test_bus_policy_SOURCES = \
2046 src/bus-proxyd/test-bus-xml-policy.c
2048 test_bus_policy_LDADD = \
2049 libbus-proxy-core.la \
2052 test_af_list_SOURCES = \
2053 src/test/test-af-list.c
2055 test_af_list_LDADD = \
2058 test_arphrd_list_SOURCES = \
2059 src/test/test-arphrd-list.c
2061 test_arphrd_list_LDADD = \
2064 # ------------------------------------------------------------------------------
2065 ## .PHONY so it always rebuilds it
2066 .PHONY: coverage lcov-run lcov-report coverage-sync
2068 # run lcov from scratch, always
2073 coverage_dir = coverage
2074 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2077 # reset run coverage tests
2079 @rm -rf $(coverage_dir)
2080 lcov $(coverage_opts) --zerocounters
2083 # generate report based on current coverage data
2085 $(MKDIR_P) $(coverage_dir)
2086 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2087 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2088 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2089 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2090 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2092 # lcov doesn't work properly with vpath builds, make sure that bad
2093 # output is not uploaded by mistake.
2094 coverage-sync: coverage
2095 test "$(builddir)" = "$(srcdir)"
2096 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2099 lcov-run lcov-report:
2100 echo "Need to reconfigure with --enable-coverage"
2103 # ------------------------------------------------------------------------------
2104 systemd_analyze_SOURCES = \
2105 src/analyze/analyze.c \
2106 src/analyze/analyze-verify.c \
2107 src/analyze/analyze-verify.h
2109 systemd_analyze_CFLAGS = \
2113 systemd_analyze_LDADD = \
2116 # ------------------------------------------------------------------------------
2117 systemd_initctl_SOURCES = \
2118 src/initctl/initctl.c
2120 systemd_initctl_LDADD = \
2123 # ------------------------------------------------------------------------------
2124 systemd_update_utmp_SOURCES = \
2125 src/update-utmp/update-utmp.c
2127 systemd_update_utmp_CFLAGS = \
2131 systemd_update_utmp_LDADD = \
2135 # ------------------------------------------------------------------------------
2136 systemd_update_done_SOURCES = \
2137 src/update-done/update-done.c
2139 systemd_update_done_LDADD = \
2142 # ------------------------------------------------------------------------------
2143 systemd_shutdown_SOURCES = \
2146 src/core/shutdown.c \
2147 src/core/mount-setup.c \
2148 src/core/mount-setup.h \
2149 src/core/killall.h \
2152 systemd_shutdown_LDADD = \
2155 # ------------------------------------------------------------------------------
2157 systemd_modules_load_SOURCES = \
2158 src/modules-load/modules-load.c
2160 systemd_modules_load_CFLAGS = \
2164 systemd_modules_load_LDADD = \
2168 rootlibexec_PROGRAMS += \
2169 systemd-modules-load
2171 nodist_systemunit_DATA += \
2172 units/systemd-modules-load.service
2174 SYSINIT_TARGET_WANTS += \
2175 systemd-modules-load.service
2178 nodist_systemunit_DATA += \
2179 units/kmod-static-nodes.service
2181 SYSINIT_TARGET_WANTS += \
2182 kmod-static-nodes.service
2187 units/systemd-modules-load.service.in \
2188 units/kmod-static-nodes.service.in
2190 # ------------------------------------------------------------------------------
2192 systemd_tmpfiles_SOURCES = \
2193 src/tmpfiles/tmpfiles.c
2195 systemd_tmpfiles_LDADD = \
2198 rootbin_PROGRAMS += \
2201 dist_systemunit_DATA += \
2202 units/systemd-tmpfiles-clean.timer
2204 nodist_systemunit_DATA += \
2205 units/systemd-tmpfiles-setup-dev.service \
2206 units/systemd-tmpfiles-setup.service \
2207 units/systemd-tmpfiles-clean.service
2209 nodist_tmpfiles_DATA = \
2210 tmpfiles.d/systemd.conf \
2213 dist_tmpfiles_DATA = \
2214 tmpfiles.d/systemd-nologin.conf \
2215 tmpfiles.d/tmp.conf \
2216 tmpfiles.d/x11.conf \
2217 tmpfiles.d/var.conf \
2218 tmpfiles.d/home.conf \
2219 tmpfiles.d/systemd-nspawn.conf \
2220 tmpfiles.d/journal-nocow.conf
2223 dist_tmpfiles_DATA += \
2224 tmpfiles.d/legacy.conf
2227 SYSINIT_TARGET_WANTS += \
2228 systemd-tmpfiles-setup-dev.service \
2229 systemd-tmpfiles-setup.service
2231 if ENABLE_ZSH_COMPLETION
2232 dist_zshcompletion_DATA += \
2233 shell-completion/zsh/_systemd-tmpfiles
2236 TIMERS_TARGET_WANTS += \
2237 systemd-tmpfiles-clean.timer
2241 $(sysconfdir)/tmpfiles.d
2245 tmpfiles.d/systemd.conf.m4 \
2246 tmpfiles.d/etc.conf.m4 \
2247 units/systemd-tmpfiles-setup-dev.service.in \
2248 units/systemd-tmpfiles-setup.service.in \
2249 units/systemd-tmpfiles-clean.service.in
2251 # ------------------------------------------------------------------------------
2253 systemd_sysusers_SOURCES = \
2254 src/sysusers/sysusers.c
2256 systemd_sysusers_LDADD = \
2259 rootbin_PROGRAMS += \
2262 nodist_systemunit_DATA += \
2263 units/systemd-sysusers.service
2265 SYSINIT_TARGET_WANTS += \
2266 systemd-sysusers.service
2268 nodist_sysusers_DATA = \
2269 sysusers.d/systemd.conf \
2270 sysusers.d/basic.conf
2277 units/systemd-sysusers.service.in \
2278 sysusers.d/systemd.conf.m4 \
2279 sysusers.d/basic.conf.in
2281 # ------------------------------------------------------------------------------
2282 dist_factory_etc_DATA = \
2283 factory/etc/nsswitch.conf
2286 dist_factory_pam_DATA = \
2287 factory/etc/pam.d/system-auth \
2288 factory/etc/pam.d/other
2291 # ------------------------------------------------------------------------------
2293 systemd_firstboot_SOURCES = \
2294 src/firstboot/firstboot.c
2296 systemd_firstboot_LDADD = \
2300 rootbin_PROGRAMS += \
2303 nodist_systemunit_DATA += \
2304 units/systemd-firstboot.service
2306 SYSINIT_TARGET_WANTS += \
2307 systemd-firstboot.service
2311 units/systemd-firstboot.service.in
2313 # ------------------------------------------------------------------------------
2314 systemd_machine_id_setup_SOURCES = \
2315 src/machine-id-setup/machine-id-setup-main.c \
2316 src/core/machine-id-setup.c \
2317 src/core/machine-id-setup.h
2319 systemd_machine_id_setup_LDADD = \
2322 # ------------------------------------------------------------------------------
2323 systemd_sysctl_SOURCES = \
2326 systemd_sysctl_LDADD = \
2329 # ------------------------------------------------------------------------------
2330 systemd_sleep_SOURCES = \
2333 systemd_sleep_LDADD = \
2336 # ------------------------------------------------------------------------------
2337 systemd_fsck_SOURCES = \
2340 systemd_fsck_LDADD = \
2343 # ------------------------------------------------------------------------------
2344 systemd_machine_id_commit_SOURCES = \
2345 src/machine-id-commit/machine-id-commit.c \
2346 src/core/machine-id-setup.c \
2347 src/core/machine-id-setup.h
2349 systemd_machine_id_commit_LDADD = \
2352 SYSINIT_TARGET_WANTS += \
2353 systemd-machine-id-commit.service
2355 # ------------------------------------------------------------------------------
2356 systemd_ac_power_SOURCES = \
2357 src/ac-power/ac-power.c
2359 systemd_ac_power_LDADD = \
2362 # ------------------------------------------------------------------------------
2363 systemd_detect_virt_SOURCES = \
2364 src/detect-virt/detect-virt.c
2366 systemd_detect_virt_LDADD = \
2369 INSTALL_EXEC_HOOKS += \
2370 systemd-detect-virt-install-hook
2372 # ------------------------------------------------------------------------------
2373 systemd_delta_SOURCES = \
2376 systemd_delta_LDADD = \
2379 # ------------------------------------------------------------------------------
2380 systemd_getty_generator_SOURCES = \
2381 src/getty-generator/getty-generator.c
2383 systemd_getty_generator_LDADD = \
2386 # ------------------------------------------------------------------------------
2387 systemd_debug_generator_SOURCES = \
2388 src/debug-generator/debug-generator.c
2390 systemd_debug_generator_LDADD = \
2393 # ------------------------------------------------------------------------------
2394 systemd_fstab_generator_SOURCES = \
2395 src/fstab-generator/fstab-generator.c \
2396 src/core/mount-setup.c
2398 systemd_fstab_generator_LDADD = \
2401 # ------------------------------------------------------------------------------
2402 systemd_system_update_generator_SOURCES = \
2403 src/system-update-generator/system-update-generator.c
2405 systemd_system_update_generator_LDADD = \
2408 # ------------------------------------------------------------------------------
2410 systemgenerator_PROGRAMS += \
2411 systemd-hibernate-resume-generator
2413 rootlibexec_PROGRAMS += \
2414 systemd-hibernate-resume
2416 systemd_hibernate_resume_SOURCES = \
2417 src/hibernate-resume/hibernate-resume.c
2419 systemd_hibernate_resume_LDADD = \
2422 systemd_hibernate_resume_generator_SOURCES = \
2423 src/hibernate-resume/hibernate-resume-generator.c
2425 systemd_hibernate_resume_generator_LDADD = \
2428 dist_systemunit_DATA += \
2429 units/hibernate.target \
2430 units/hybrid-sleep.target
2432 nodist_systemunit_DATA += \
2433 units/systemd-hibernate.service \
2434 units/systemd-hibernate-resume@.service \
2435 units/systemd-hybrid-sleep.service
2439 units/systemd-hibernate.service.in \
2440 units/systemd-hibernate-resume@.service.in \
2441 units/systemd-hybrid-sleep.service.in
2443 # ------------------------------------------------------------------------------
2449 bootctl_CPPFLAGS = \
2451 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2452 -DBOOTLIBDIR=\"$(bootlibdir)\"
2465 if ENABLE_BASH_COMPLETION
2466 dist_bashcompletion_DATA += \
2467 shell-completion/bash/bootctl
2470 if ENABLE_ZSH_COMPLETION
2471 dist_zshcompletion_DATA += \
2472 shell-completion/zsh/_bootctl
2476 # ------------------------------------------------------------------------------
2480 -I$(top_builddir) -include config.h \
2481 -I$(EFI_INC_DIR)/efi \
2482 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2483 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2496 -fno-strict-aliasing \
2497 -fno-stack-protector \
2499 -Wno-missing-field-initializers
2506 -DEFI_FUNCTION_WRAPPER \
2507 -DGNU_EFI_USE_MS_ABI
2518 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2524 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2526 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2527 # and add required symbols manually.
2529 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2530 EFI_FORMAT = -O binary
2532 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2537 # ------------------------------------------------------------------------------
2538 systemd_boot_headers = \
2539 src/boot/efi/util.h \
2540 src/boot/efi/console.h \
2541 src/boot/efi/graphics.h \
2542 src/boot/efi/pefile.h \
2545 systemd_boot_sources = \
2546 src/boot/efi/util.c \
2547 src/boot/efi/console.c \
2548 src/boot/efi/graphics.c \
2549 src/boot/efi/pefile.c \
2550 src/boot/efi/disk.c \
2553 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2557 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2558 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2559 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2561 bootlib_DATA = $(systemd_boot)
2562 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2564 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2565 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2566 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2568 $(systemd_boot_solib): $(systemd_boot_objects)
2569 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2570 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2571 nm -D -u $@ | grep ' U ' && exit 1 || :
2573 $(systemd_boot): $(systemd_boot_solib)
2574 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2575 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2579 # ------------------------------------------------------------------------------
2581 src/boot/efi/util.h \
2582 src/boot/efi/pefile.h \
2583 src/boot/efi/disk.h \
2584 src/boot/efi/graphics.h \
2585 src/boot/efi/splash.h \
2586 src/boot/efi/linux.h
2589 src/boot/efi/util.c \
2590 src/boot/efi/pefile.c \
2591 src/boot/efi/disk.c \
2592 src/boot/efi/graphics.c \
2593 src/boot/efi/splash.c \
2594 src/boot/efi/linux.c \
2604 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2605 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2606 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2608 bootlib_DATA += $(stub)
2609 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2611 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2612 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2613 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2615 $(stub_solib): $(stub_objects)
2616 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2617 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2618 nm -D -u $@ | grep ' U ' && exit 1 || :
2620 $(stub): $(stub_solib)
2621 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2622 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2624 # ------------------------------------------------------------------------------
2625 CLEANFILES += test-efi-disk.img
2627 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2628 $(AM_V_GEN)test/test-efi-create-disk.sh
2630 test-efi: test-efi-disk.img
2631 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2635 EXTRA_DIST += test/test-efi-create-disk.sh
2637 # ------------------------------------------------------------------------------
2639 systemgenerator_PROGRAMS += \
2640 systemd-gpt-auto-generator
2642 systemd_gpt_auto_generator_SOURCES = \
2643 src/gpt-auto-generator/gpt-auto-generator.c \
2644 src/basic/blkid-util.h
2646 systemd_gpt_auto_generator_LDADD = \
2650 systemd_gpt_auto_generator_CFLAGS = \
2655 # ------------------------------------------------------------------------------
2656 systemgenerator_PROGRAMS += \
2657 systemd-dbus1-generator
2659 systemd_dbus1_generator_SOURCES = \
2660 src/dbus1-generator/dbus1-generator.c
2662 systemd_dbus1_generator_LDADD = \
2665 dbus1-generator-install-hook:
2666 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2667 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2668 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2670 dbus1-generator-uninstall-hook:
2671 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2673 dist_xinitrc_SCRIPTS = \
2674 xorg/50-systemd-user.sh
2676 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2677 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2679 # ------------------------------------------------------------------------------
2680 systemd_sysv_generator_SOURCES = \
2681 src/sysv-generator/sysv-generator.c
2683 systemd_sysv_generator_LDADD = \
2686 # ------------------------------------------------------------------------------
2687 systemd_rc_local_generator_SOURCES = \
2688 src/rc-local-generator/rc-local-generator.c
2690 systemd_rc_local_generator_LDADD = \
2693 # ------------------------------------------------------------------------------
2694 systemd_remount_fs_SOURCES = \
2695 src/remount-fs/remount-fs.c \
2696 src/core/mount-setup.c \
2697 src/core/mount-setup.h
2699 systemd_remount_fs_LDADD = \
2702 # ------------------------------------------------------------------------------
2703 systemd_cgroups_agent_SOURCES = \
2704 src/cgroups-agent/cgroups-agent.c
2706 systemd_cgroups_agent_LDADD = \
2709 # ------------------------------------------------------------------------------
2710 systemd_escape_SOURCES = \
2713 systemd_escape_LDADD = \
2716 # -----------------------------------------------------------------------------
2717 systemctl_SOURCES = \
2718 src/systemctl/systemctl.c
2723 # ------------------------------------------------------------------------------
2724 systemd_notify_SOURCES = \
2727 systemd_notify_LDADD = \
2730 # ------------------------------------------------------------------------------
2731 systemd_path_SOURCES = \
2734 systemd_path_LDADD = \
2737 # ------------------------------------------------------------------------------
2738 systemd_ask_password_SOURCES = \
2739 src/ask-password/ask-password.c
2741 systemd_ask_password_LDADD = \
2744 # ------------------------------------------------------------------------------
2745 systemd_reply_password_SOURCES = \
2746 src/reply-password/reply-password.c
2748 systemd_reply_password_LDADD = \
2751 # ------------------------------------------------------------------------------
2752 systemd_cgls_SOURCES = \
2755 systemd_cgls_LDADD = \
2758 # ------------------------------------------------------------------------------
2759 systemd_cgtop_SOURCES = \
2762 systemd_cgtop_LDADD = \
2765 # ------------------------------------------------------------------------------
2766 systemd_nspawn_SOURCES = \
2767 src/nspawn/nspawn.c \
2768 src/nspawn/nspawn-settings.c \
2769 src/nspawn/nspawn-settings.h \
2770 src/nspawn/nspawn-mount.c \
2771 src/nspawn/nspawn-mount.h \
2772 src/nspawn/nspawn-network.c \
2773 src/nspawn/nspawn-network.h \
2774 src/nspawn/nspawn-expose-ports.c \
2775 src/nspawn/nspawn-expose-ports.h \
2776 src/nspawn/nspawn-cgroup.c \
2777 src/nspawn/nspawn-cgroup.h \
2778 src/nspawn/nspawn-register.c \
2779 src/nspawn/nspawn-register.h \
2780 src/nspawn/nspawn-setuid.c \
2781 src/nspawn/nspawn-setuid.h \
2782 src/core/mount-setup.c \
2783 src/core/mount-setup.h \
2784 src/core/loopback-setup.c \
2785 src/core/loopback-setup.h
2787 nodist_systemd_nspawn_SOURCES = \
2788 src/nspawn/nspawn-gperf.c
2790 gperf_gperf_sources += \
2791 src/nspawn/nspawn-gperf.gperf
2793 systemd_nspawn_CFLAGS = \
2798 systemd_nspawn_LDADD = \
2803 systemd_nspawn_LDADD += \
2807 # ------------------------------------------------------------------------------
2808 systemd_run_SOURCES = \
2811 systemd_run_LDADD = \
2814 # ------------------------------------------------------------------------------
2815 noinst_LTLIBRARIES += \
2816 libbus-proxy-core.la
2818 libbus_proxy_core_la_SOURCES = \
2819 src/bus-proxyd/bus-xml-policy.c \
2820 src/bus-proxyd/bus-xml-policy.h \
2821 src/bus-proxyd/driver.c \
2822 src/bus-proxyd/driver.h \
2823 src/bus-proxyd/proxy.c \
2824 src/bus-proxyd/proxy.h \
2825 src/bus-proxyd/synthesize.c \
2826 src/bus-proxyd/synthesize.h
2828 libbus_proxy_core_la_LIBADD = \
2831 systemd_bus_proxyd_SOURCES = \
2832 src/bus-proxyd/bus-proxyd.c
2834 systemd_bus_proxyd_LDADD = \
2835 libbus-proxy-core.la \
2838 systemd_stdio_bridge_SOURCES = \
2839 src/bus-proxyd/stdio-bridge.c
2841 systemd_stdio_bridge_LDADD = \
2842 libbus-proxy-core.la \
2845 nodist_systemunit_DATA += \
2846 units/systemd-bus-proxyd.service
2848 dist_systemunit_DATA += \
2849 units/systemd-bus-proxyd.socket
2851 nodist_userunit_DATA += \
2852 units/user/systemd-bus-proxyd.service
2854 dist_userunit_DATA += \
2855 units/user/systemd-bus-proxyd.socket
2858 units/systemd-bus-proxyd.service.m4.in \
2859 units/user/systemd-bus-proxyd.service.in
2862 bus-proxyd-set-cap-hook:
2863 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2865 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2868 # ------------------------------------------------------------------------------
2869 systemd_tty_ask_password_agent_SOURCES = \
2870 src/tty-ask-password-agent/tty-ask-password-agent.c
2872 systemd_tty_ask_password_agent_LDADD = \
2875 # ------------------------------------------------------------------------------
2876 libsystemd_internal_la_SOURCES = \
2877 src/systemd/sd-bus.h \
2878 src/systemd/sd-bus-protocol.h \
2879 src/systemd/sd-bus-vtable.h \
2880 src/systemd/sd-utf8.h \
2881 src/systemd/sd-event.h \
2882 src/systemd/sd-netlink.h \
2883 src/systemd/sd-resolve.h \
2884 src/systemd/sd-login.h \
2885 src/systemd/sd-id128.h \
2886 src/systemd/sd-daemon.h \
2887 src/systemd/sd-path.h \
2888 src/systemd/sd-network.h \
2889 src/systemd/sd-hwdb.h \
2890 src/systemd/sd-device.h \
2891 src/libsystemd/libsystemd.sym \
2892 src/libsystemd/sd-bus/sd-bus.c \
2893 src/libsystemd/sd-bus/bus-control.c \
2894 src/libsystemd/sd-bus/bus-control.h \
2895 src/libsystemd/sd-bus/bus-error.c \
2896 src/libsystemd/sd-bus/bus-error.h \
2897 src/libsystemd/sd-bus/bus-common-errors.h \
2898 src/libsystemd/sd-bus/bus-common-errors.c \
2899 src/libsystemd/sd-bus/bus-internal.c \
2900 src/libsystemd/sd-bus/bus-internal.h \
2901 src/libsystemd/sd-bus/bus-socket.c \
2902 src/libsystemd/sd-bus/bus-socket.h \
2903 src/libsystemd/sd-bus/bus-kernel.c \
2904 src/libsystemd/sd-bus/bus-kernel.h \
2905 src/libsystemd/sd-bus/bus-container.c \
2906 src/libsystemd/sd-bus/bus-container.h \
2907 src/libsystemd/sd-bus/bus-message.c \
2908 src/libsystemd/sd-bus/bus-message.h \
2909 src/libsystemd/sd-bus/bus-creds.c \
2910 src/libsystemd/sd-bus/bus-creds.h \
2911 src/libsystemd/sd-bus/bus-signature.c \
2912 src/libsystemd/sd-bus/bus-signature.h \
2913 src/libsystemd/sd-bus/bus-type.c \
2914 src/libsystemd/sd-bus/bus-type.h \
2915 src/libsystemd/sd-bus/bus-match.c \
2916 src/libsystemd/sd-bus/bus-match.h \
2917 src/libsystemd/sd-bus/bus-bloom.c \
2918 src/libsystemd/sd-bus/bus-bloom.h \
2919 src/libsystemd/sd-bus/bus-introspect.c \
2920 src/libsystemd/sd-bus/bus-introspect.h \
2921 src/libsystemd/sd-bus/bus-objects.c \
2922 src/libsystemd/sd-bus/bus-objects.h \
2923 src/libsystemd/sd-bus/bus-gvariant.c \
2924 src/libsystemd/sd-bus/bus-gvariant.h \
2925 src/libsystemd/sd-bus/bus-convenience.c \
2926 src/libsystemd/sd-bus/bus-track.c \
2927 src/libsystemd/sd-bus/bus-track.h \
2928 src/libsystemd/sd-bus/bus-slot.c \
2929 src/libsystemd/sd-bus/bus-slot.h \
2930 src/libsystemd/sd-bus/bus-protocol.h \
2931 src/libsystemd/sd-bus/kdbus.h \
2932 src/libsystemd/sd-bus/bus-dump.c \
2933 src/libsystemd/sd-bus/bus-dump.h \
2934 src/libsystemd/sd-utf8/sd-utf8.c \
2935 src/libsystemd/sd-event/sd-event.c \
2936 src/libsystemd/sd-event/event-util.h \
2937 src/libsystemd/sd-netlink/sd-netlink.c \
2938 src/libsystemd/sd-netlink/netlink-internal.h \
2939 src/libsystemd/sd-netlink/netlink-message.c \
2940 src/libsystemd/sd-netlink/netlink-socket.c \
2941 src/libsystemd/sd-netlink/rtnl-message.c \
2942 src/libsystemd/sd-netlink/netlink-types.h \
2943 src/libsystemd/sd-netlink/netlink-types.c \
2944 src/libsystemd/sd-netlink/netlink-util.h \
2945 src/libsystemd/sd-netlink/netlink-util.c \
2946 src/libsystemd/sd-netlink/local-addresses.h \
2947 src/libsystemd/sd-netlink/local-addresses.c \
2948 src/libsystemd/sd-id128/sd-id128.c \
2949 src/libsystemd/sd-daemon/sd-daemon.c \
2950 src/libsystemd/sd-login/sd-login.c \
2951 src/libsystemd/sd-path/sd-path.c \
2952 src/libsystemd/sd-network/sd-network.c \
2953 src/libsystemd/sd-network/network-util.h \
2954 src/libsystemd/sd-network/network-util.c \
2955 src/libsystemd/sd-hwdb/sd-hwdb.c \
2956 src/libsystemd/sd-hwdb/hwdb-util.h \
2957 src/libsystemd/sd-hwdb/hwdb-internal.h \
2958 src/libsystemd/sd-device/device-internal.h \
2959 src/libsystemd/sd-device/device-util.h \
2960 src/libsystemd/sd-device/device-enumerator.c \
2961 src/libsystemd/sd-device/device-enumerator-private.h \
2962 src/libsystemd/sd-device/sd-device.c \
2963 src/libsystemd/sd-device/device-private.c \
2964 src/libsystemd/sd-device/device-private.h \
2965 src/libsystemd/sd-resolve/sd-resolve.c \
2966 src/libsystemd/sd-resolve/resolve-util.h
2968 libsystemd_internal_la_LIBADD = \
2972 noinst_LTLIBRARIES += \
2973 libsystemd-internal.la
2976 src/libsystemd/libsystemd.pc.in \
2977 src/libsystemd/sd-bus/DIFFERENCES \
2978 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2980 libsystemd_la_SOURCES = \
2981 $(libsystemd_internal_la_SOURCES) \
2982 $(libsystemd_journal_internal_la_SOURCES)
2984 nodist_libsystemd_la_SOURCES = \
2985 $(nodist_libsystemd_internal_la_SOURCES)
2987 libsystemd_la_CFLAGS = \
2988 $(libsystemd_internal_la_CFLAGS) \
2989 $(libsystemd_journal_internal_la_CFLAGS)
2991 libsystemd_la_LDFLAGS = \
2993 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2994 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
2996 libsystemd_la_LIBADD = \
2997 $(libsystemd_internal_la_LIBADD) \
2998 $(libsystemd_journal_internal_la_LIBADD)
3000 libsystemd-install-hook:
3001 libname=libsystemd.so && $(move-to-rootlibdir)
3003 libsystemd-uninstall-hook:
3004 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3006 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3007 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3009 pkgconfiglib_DATA += \
3010 src/libsystemd/libsystemd.pc
3012 pkginclude_HEADERS += \
3013 src/systemd/sd-bus.h \
3014 src/systemd/sd-bus-protocol.h \
3015 src/systemd/sd-bus-vtable.h \
3016 src/systemd/sd-event.h \
3017 src/systemd/sd-login.h \
3018 src/systemd/sd-id128.h \
3019 src/systemd/sd-daemon.h
3021 lib_LTLIBRARIES += \
3026 test-bus-signature \
3027 test-bus-benchmark \
3034 test-bus-kernel-bloom \
3035 test-bus-zero-copy \
3036 test-bus-introspect \
3043 test-local-addresses \
3049 test_bus_marshal_SOURCES = \
3050 src/libsystemd/sd-bus/test-bus-marshal.c
3052 test_bus_marshal_LDADD = \
3057 test_bus_marshal_CFLAGS = \
3062 test_bus_signature_SOURCES = \
3063 src/libsystemd/sd-bus/test-bus-signature.c
3065 test_bus_signature_LDADD = \
3068 test_bus_chat_SOURCES = \
3069 src/libsystemd/sd-bus/test-bus-chat.c
3071 test_bus_chat_LDADD = \
3074 test_bus_cleanup_SOURCES = \
3075 src/libsystemd/sd-bus/test-bus-cleanup.c
3077 test_bus_cleanup_CFLAGS = \
3081 test_bus_cleanup_LDADD = \
3084 test_bus_server_SOURCES = \
3085 src/libsystemd/sd-bus/test-bus-server.c
3087 test_bus_server_LDADD = \
3090 test_bus_objects_SOURCES = \
3091 src/libsystemd/sd-bus/test-bus-objects.c
3093 test_bus_objects_LDADD = \
3096 test_bus_error_SOURCES = \
3097 src/libsystemd/sd-bus/test-bus-error.c
3099 test_bus_error_LDADD = \
3102 test_bus_gvariant_SOURCES = \
3103 src/libsystemd/sd-bus/test-bus-gvariant.c
3105 test_bus_gvariant_LDADD = \
3109 test_bus_gvariant_CFLAGS = \
3113 test_bus_creds_SOURCES = \
3114 src/libsystemd/sd-bus/test-bus-creds.c
3116 test_bus_creds_LDADD = \
3119 test_bus_match_SOURCES = \
3120 src/libsystemd/sd-bus/test-bus-match.c
3122 test_bus_match_LDADD = \
3125 test_bus_proxy_SOURCES = \
3126 src/libsystemd/sd-bus/test-bus-proxy.c
3128 test_bus_proxy_LDADD = \
3131 test_bus_kernel_SOURCES = \
3132 src/libsystemd/sd-bus/test-bus-kernel.c
3134 test_bus_kernel_LDADD = \
3137 test_bus_kernel_bloom_SOURCES = \
3138 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3140 test_bus_kernel_bloom_LDADD = \
3143 test_bus_benchmark_SOURCES = \
3144 src/libsystemd/sd-bus/test-bus-benchmark.c
3146 test_bus_benchmark_LDADD = \
3149 test_bus_zero_copy_SOURCES = \
3150 src/libsystemd/sd-bus/test-bus-zero-copy.c
3152 test_bus_zero_copy_LDADD = \
3155 test_bus_introspect_SOURCES = \
3156 src/libsystemd/sd-bus/test-bus-introspect.c
3158 test_bus_introspect_LDADD = \
3161 test_event_SOURCES = \
3162 src/libsystemd/sd-event/test-event.c
3164 test_event_LDADD = \
3167 test_netlink_SOURCES = \
3168 src/libsystemd/sd-netlink/test-netlink.c
3170 test_netlink_LDADD = \
3173 test_local_addresses_SOURCES = \
3174 src/libsystemd/sd-netlink/test-local-addresses.c
3176 test_local_addresses_LDADD = \
3179 test_resolve_SOURCES = \
3180 src/libsystemd/sd-resolve/test-resolve.c
3182 test_resolve_LDADD = \
3186 src/libsystemd/sd-bus/busctl.c \
3187 src/libsystemd/sd-bus/busctl-introspect.c \
3188 src/libsystemd/sd-bus/busctl-introspect.h
3193 # ------------------------------------------------------------------------------
3194 noinst_LTLIBRARIES += \
3195 libsystemd-network.la
3197 libsystemd_network_la_CFLAGS = \
3201 libsystemd_network_la_SOURCES = \
3202 src/systemd/sd-dhcp-client.h \
3203 src/systemd/sd-dhcp-server.h \
3204 src/systemd/sd-dhcp-lease.h \
3205 src/systemd/sd-ipv4ll.h \
3206 src/systemd/sd-ipv4acd.h \
3207 src/systemd/sd-icmp6-nd.h \
3208 src/systemd/sd-dhcp6-client.h \
3209 src/systemd/sd-dhcp6-lease.h \
3210 src/systemd/sd-pppoe.h \
3211 src/systemd/sd-lldp.h \
3212 src/libsystemd-network/sd-dhcp-client.c \
3213 src/libsystemd-network/sd-dhcp-server.c \
3214 src/libsystemd-network/dhcp-network.c \
3215 src/libsystemd-network/dhcp-option.c \
3216 src/libsystemd-network/dhcp-packet.c \
3217 src/libsystemd-network/dhcp-internal.h \
3218 src/libsystemd-network/dhcp-server-internal.h \
3219 src/libsystemd-network/dhcp-protocol.h \
3220 src/libsystemd-network/dhcp-lease-internal.h \
3221 src/libsystemd-network/sd-dhcp-lease.c \
3222 src/libsystemd-network/sd-ipv4ll.c \
3223 src/libsystemd-network/sd-ipv4acd.c \
3224 src/libsystemd-network/arp-util.h \
3225 src/libsystemd-network/arp-util.c \
3226 src/libsystemd-network/sd-pppoe.c \
3227 src/libsystemd-network/network-internal.c \
3228 src/libsystemd-network/network-internal.h \
3229 src/libsystemd-network/sd-icmp6-nd.c \
3230 src/libsystemd-network/sd-dhcp6-client.c \
3231 src/libsystemd-network/dhcp6-internal.h \
3232 src/libsystemd-network/dhcp6-protocol.h \
3233 src/libsystemd-network/dhcp6-network.c \
3234 src/libsystemd-network/dhcp6-option.c \
3235 src/libsystemd-network/dhcp6-lease-internal.h \
3236 src/libsystemd-network/sd-dhcp6-lease.c \
3237 src/libsystemd-network/dhcp-identifier.h \
3238 src/libsystemd-network/dhcp-identifier.c \
3239 src/libsystemd-network/lldp.h \
3240 src/libsystemd-network/lldp-tlv.h \
3241 src/libsystemd-network/lldp-tlv.c \
3242 src/libsystemd-network/lldp-network.h \
3243 src/libsystemd-network/lldp-network.c \
3244 src/libsystemd-network/lldp-port.h \
3245 src/libsystemd-network/lldp-port.c \
3246 src/libsystemd-network/lldp-internal.h \
3247 src/libsystemd-network/lldp-internal.c \
3248 src/libsystemd-network/lldp-util.h \
3249 src/libsystemd-network/sd-lldp.c
3251 libsystemd_network_la_LIBADD = \
3254 test_dhcp_option_SOURCES = \
3255 src/libsystemd-network/dhcp-protocol.h \
3256 src/libsystemd-network/dhcp-internal.h \
3257 src/libsystemd-network/test-dhcp-option.c
3259 test_dhcp_option_LDADD = \
3260 libsystemd-network.la \
3263 test_dhcp_client_SOURCES = \
3264 src/systemd/sd-dhcp-client.h \
3265 src/libsystemd-network/dhcp-protocol.h \
3266 src/libsystemd-network/dhcp-internal.h \
3267 src/libsystemd-network/test-dhcp-client.c
3269 test_dhcp_client_LDADD = \
3270 libsystemd-network.la \
3273 test_dhcp_server_SOURCES = \
3274 src/libsystemd-network/test-dhcp-server.c
3276 test_dhcp_server_LDADD = \
3277 libsystemd-network.la \
3280 test_ipv4ll_SOURCES = \
3281 src/systemd/sd-ipv4ll.h \
3282 src/libsystemd-network/arp-util.h \
3283 src/libsystemd-network/test-ipv4ll.c
3285 test_ipv4ll_LDADD = \
3286 libsystemd-network.la \
3289 test_ipv4ll_manual_SOURCES = \
3290 src/systemd/sd-ipv4ll.h \
3291 src/libsystemd-network/test-ipv4ll-manual.c
3293 test_ipv4ll_manual_LDADD = \
3294 libsystemd-network.la \
3297 test_acd_SOURCES = \
3298 src/systemd/sd-ipv4acd.h \
3299 src/libsystemd-network/test-acd.c
3302 libsystemd-network.la \
3305 test_pppoe_SOURCES = \
3306 src/systemd/sd-pppoe.h \
3307 src/libsystemd-network/test-pppoe.c
3309 test_pppoe_LDADD = \
3310 libsystemd-network.la \
3313 test_icmp6_rs_SOURCES = \
3314 src/systemd/sd-dhcp6-client.h \
3315 src/systemd/sd-icmp6-nd.h \
3316 src/libsystemd-network/dhcp6-internal.h \
3317 src/libsystemd-network/test-icmp6-rs.c \
3318 src/libsystemd-network/dhcp-identifier.h \
3319 src/libsystemd-network/dhcp-identifier.c
3321 test_icmp6_rs_LDADD = \
3322 libsystemd-network.la \
3326 test_dhcp6_client_SOURCES = \
3327 src/systemd/sd-dhcp6-client.h \
3328 src/libsystemd-network/dhcp6-internal.h \
3329 src/libsystemd-network/test-dhcp6-client.c \
3330 src/libsystemd-network/dhcp-identifier.h \
3331 src/libsystemd-network/dhcp-identifier.c
3333 test_dhcp6_client_LDADD = \
3334 libsystemd-network.la \
3338 test_lldp_SOURCES = \
3339 src/libsystemd-network/lldp.h \
3340 src/libsystemd-network/lldp-tlv.h \
3341 src/libsystemd-network/lldp-tlv.c \
3342 src/libsystemd-network/test-lldp.c
3345 libsystemd-network.la \
3360 # ------------------------------------------------------------------------------
3361 include_HEADERS += \
3362 src/libudev/libudev.h
3364 lib_LTLIBRARIES += \
3367 libudev_la_SOURCES =\
3368 src/libudev/libudev.sym \
3369 src/libudev/libudev-private.h \
3370 src/libudev/libudev-device-internal.h \
3371 src/libudev/libudev.c \
3372 src/libudev/libudev-list.c \
3373 src/libudev/libudev-util.c \
3374 src/libudev/libudev-device.c \
3375 src/libudev/libudev-device-private.c \
3376 src/libudev/libudev-enumerate.c \
3377 src/libudev/libudev-monitor.c \
3378 src/libudev/libudev-queue.c \
3379 src/libudev/libudev-hwdb.c
3381 libudev_la_LDFLAGS = \
3383 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3384 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3386 libudev_la_LIBADD = \
3387 libsystemd-internal.la
3389 pkgconfiglib_DATA += \
3390 src/libudev/libudev.pc
3393 src/libudev/libudev.pc.in
3395 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3396 libudev-install-hook:
3397 libname=libudev.so && $(move-to-rootlibdir)
3399 libudev-uninstall-hook:
3400 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3402 INSTALL_EXEC_HOOKS += libudev-install-hook
3403 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3405 # ------------------------------------------------------------------------------
3406 noinst_LTLIBRARIES += \
3409 libudev_internal_la_SOURCES =\
3410 $(libudev_la_SOURCES)
3412 # ------------------------------------------------------------------------------
3414 $(sysconfdir)/udev/rules.d
3416 dist_network_DATA = \
3417 network/99-default.link \
3418 network/80-container-host0.network \
3419 network/80-container-ve.network
3421 dist_udevrules_DATA += \
3422 rules/50-udev-default.rules \
3423 rules/60-block.rules \
3424 rules/60-drm.rules \
3425 rules/60-evdev.rules \
3426 rules/60-persistent-storage-tape.rules \
3427 rules/60-persistent-input.rules \
3428 rules/60-persistent-alsa.rules \
3429 rules/60-persistent-storage.rules \
3430 rules/60-serial.rules \
3431 rules/64-btrfs.rules \
3432 rules/70-mouse.rules \
3433 rules/75-net-description.rules \
3434 rules/78-sound-card.rules \
3435 rules/80-net-setup-link.rules
3437 nodist_udevrules_DATA += \
3438 rules/99-systemd.rules
3440 udevconfdir = $(sysconfdir)/udev
3441 dist_udevconf_DATA = \
3444 pkgconfigdata_DATA += \
3448 rules/99-systemd.rules.in \
3452 units/systemd-udevd.service.in \
3453 units/systemd-udev-trigger.service.in \
3454 units/systemd-udev-settle.service.in
3456 SOCKETS_TARGET_WANTS += \
3457 systemd-udevd-control.socket \
3458 systemd-udevd-kernel.socket
3460 SYSINIT_TARGET_WANTS += \
3461 systemd-udevd.service \
3462 systemd-udev-trigger.service
3464 rootbin_PROGRAMS += \
3467 rootlibexec_PROGRAMS += \
3470 noinst_LTLIBRARIES += \
3473 src/udev/keyboard-keys-list.txt:
3474 $(AM_V_at)$(MKDIR_P) $(dir $@)
3475 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
3477 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3478 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3480 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3481 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3483 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys-list.txt
3484 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3486 gperf_txt_sources += \
3487 src/udev/keyboard-keys-list.txt
3489 libudev_core_la_SOURCES = \
3491 src/udev/udev-event.c \
3492 src/udev/udev-watch.c \
3493 src/udev/udev-node.c \
3494 src/udev/udev-rules.c \
3495 src/udev/udev-ctrl.c \
3496 src/udev/udev-builtin.c \
3497 src/udev/udev-builtin-btrfs.c \
3498 src/udev/udev-builtin-hwdb.c \
3499 src/udev/udev-builtin-input_id.c \
3500 src/udev/udev-builtin-keyboard.c \
3501 src/udev/udev-builtin-net_id.c \
3502 src/udev/udev-builtin-net_setup_link.c \
3503 src/udev/udev-builtin-path_id.c \
3504 src/udev/udev-builtin-usb_id.c \
3505 src/udev/net/link-config.h \
3506 src/udev/net/link-config.c \
3507 src/udev/net/ethtool-util.h \
3508 src/udev/net/ethtool-util.c
3510 nodist_libudev_core_la_SOURCES = \
3511 src/udev/keyboard-keys-from-name.h \
3512 src/udev/keyboard-keys-to-name.h \
3513 src/udev/net/link-config-gperf.c
3515 gperf_gperf_sources += \
3516 src/udev/net/link-config-gperf.gperf
3518 libudev_core_la_CFLAGS = \
3523 libudev_core_la_LIBADD = \
3524 libsystemd-network.la \
3530 libudev_core_la_SOURCES += \
3531 src/udev/udev-builtin-kmod.c
3533 dist_udevrules_DATA += \
3534 rules/80-drivers.rules
3538 libudev_core_la_SOURCES += \
3539 src/udev/udev-builtin-blkid.c
3543 libudev_core_la_SOURCES += \
3544 src/udev/udev-builtin-uaccess.c \
3545 src/login/logind-acl.c \
3546 src/libsystemd/sd-login/sd-login.c \
3547 src/systemd/sd-login.h
3550 systemd_udevd_SOURCES = \
3553 systemd_udevd_LDADD = \
3557 src/udev/udevadm.c \
3558 src/udev/udevadm-info.c \
3559 src/udev/udevadm-control.c \
3560 src/udev/udevadm-monitor.c \
3561 src/udev/udevadm-hwdb.c \
3562 src/udev/udevadm-settle.c \
3563 src/udev/udevadm-trigger.c \
3564 src/udev/udevadm-test.c \
3565 src/udev/udevadm-test-builtin.c \
3566 src/udev/udevadm-util.c \
3567 src/udev/udevadm-util.h
3572 # ------------------------------------------------------------------------------
3575 $(sysconfdir)/udev/hwdb.d
3577 systemd_hwdb_SOURCES = \
3578 src/libsystemd/sd-hwdb/hwdb-internal.h \
3581 systemd_hwdb_LDADD = \
3584 rootbin_PROGRAMS += \
3587 dist_udevhwdb_DATA = \
3588 hwdb/20-pci-vendor-model.hwdb \
3589 hwdb/20-pci-classes.hwdb \
3590 hwdb/20-usb-vendor-model.hwdb \
3591 hwdb/20-usb-classes.hwdb \
3592 hwdb/20-sdio-vendor-model.hwdb \
3593 hwdb/20-sdio-classes.hwdb \
3594 hwdb/20-bluetooth-vendor-product.hwdb \
3595 hwdb/20-acpi-vendor.hwdb \
3597 hwdb/20-net-ifname.hwdb \
3598 hwdb/60-evdev.hwdb \
3599 hwdb/60-keyboard.hwdb \
3600 hwdb/70-mouse.hwdb \
3601 hwdb/70-pointingstick.hwdb
3603 SYSINIT_TARGET_WANTS += \
3604 systemd-hwdb-update.service
3606 # Update hwdb on installation. Do not bother if installing
3607 # in DESTDIR, since this is likely for packaging purposes.
3609 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3611 INSTALL_DATA_HOOKS += \
3615 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3619 units/systemd-hwdb-update.service.in \
3620 hwdb/ids-update.pl \
3623 # ------------------------------------------------------------------------------
3629 test/rule-syntax-check.py
3633 test/sysv-generator-test.py
3641 test_libudev_SOURCES = \
3642 src/test/test-libudev.c
3644 test_libudev_LDADD = \
3647 test_udev_SOURCES = \
3648 src/test/test-udev.c
3658 # packed sysfs test tree
3660 $(AM_V_at)$(MKDIR_P) $(dir $@)
3661 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3665 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3670 test/rule-syntax-check.py \
3671 test/sysv-generator-test.py \
3674 # ------------------------------------------------------------------------------
3676 src/udev/ata_id/ata_id.c
3681 udevlibexec_PROGRAMS += \
3684 # ------------------------------------------------------------------------------
3685 cdrom_id_SOURCES = \
3686 src/udev/cdrom_id/cdrom_id.c
3691 udevlibexec_PROGRAMS += \
3694 dist_udevrules_DATA += \
3695 rules/60-cdrom_id.rules
3697 # ------------------------------------------------------------------------------
3699 src/udev/collect/collect.c
3704 udevlibexec_PROGRAMS += \
3707 # ------------------------------------------------------------------------------
3709 src/udev/scsi_id/scsi_id.c \
3710 src/udev/scsi_id/scsi_serial.c \
3711 src/udev/scsi_id/scsi.h \
3712 src/udev/scsi_id/scsi_id.h
3717 udevlibexec_PROGRAMS += \
3721 src/udev/scsi_id/README
3723 # ------------------------------------------------------------------------------
3725 src/udev/v4l_id/v4l_id.c
3730 udevlibexec_PROGRAMS += \
3733 dist_udevrules_DATA += \
3734 rules/60-persistent-v4l.rules
3736 # ------------------------------------------------------------------------------
3737 mtd_probe_SOURCES = \
3738 src/udev/mtd_probe/mtd_probe.c \
3739 src/udev/mtd_probe/mtd_probe.h \
3740 src/udev/mtd_probe/probe_smartmedia.c
3742 dist_udevrules_DATA += \
3743 rules/75-probe_mtd.rules
3745 udevlibexec_PROGRAMS += \
3748 # ------------------------------------------------------------------------------
3749 test_id128_SOURCES = \
3750 src/test/test-id128.c
3752 test_id128_LDADD = \
3758 # ------------------------------------------------------------------------------
3760 rootlibexec_PROGRAMS += \
3763 systemd_activate_SOURCES = \
3764 src/activate/activate.c
3766 systemd_activate_LDADD = \
3769 # ------------------------------------------------------------------------------
3770 systemd_journald_SOURCES = \
3771 src/journal/journald.c \
3772 src/journal/journald-server.h
3774 systemd_journald_LDADD = \
3775 libjournal-core.la \
3778 systemd_cat_SOURCES = \
3781 systemd_cat_LDADD = \
3785 rootlibexec_PROGRAMS += \
3786 systemd-journal-remote
3788 systemd_journal_remote_SOURCES = \
3789 src/journal-remote/journal-remote-parse.h \
3790 src/journal-remote/journal-remote-parse.c \
3791 src/journal-remote/journal-remote-write.h \
3792 src/journal-remote/journal-remote-write.c \
3793 src/journal-remote/journal-remote.h \
3794 src/journal-remote/journal-remote.c
3796 systemd_journal_remote_LDADD = \
3799 systemd_journal_remote_SOURCES += \
3800 src/journal-remote/microhttpd-util.h \
3801 src/journal-remote/microhttpd-util.c
3803 systemd_journal_remote_CFLAGS = \
3805 $(MICROHTTPD_CFLAGS)
3807 systemd_journal_remote_LDADD += \
3811 dist_sysusers_DATA += \
3812 sysusers.d/systemd-remote.conf
3816 dist_tmpfiles_DATA += \
3817 tmpfiles.d/systemd-remote.conf
3821 systemd_journal_remote_LDADD += \
3824 # systemd-journal-remote make sense mostly with full crypto stack
3825 dist_systemunit_DATA += \
3826 units/systemd-journal-remote.socket
3828 nodist_systemunit_DATA += \
3829 units/systemd-journal-remote.service
3831 journal-remote-install-hook: journal-install-hook
3832 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3833 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3834 -chmod 755 $(DESTDIR)/var/log/journal/remote
3836 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3839 nodist_pkgsysconf_DATA += \
3840 src/journal-remote/journal-remote.conf
3843 units/systemd-journal-remote.service.in \
3844 src/journal-remote/journal-remote.conf.in \
3845 src/journal-remote/log-generator.py
3849 rootlibexec_PROGRAMS += \
3850 systemd-journal-upload
3852 systemd_journal_upload_SOURCES = \
3853 src/journal-remote/journal-upload.h \
3854 src/journal-remote/journal-upload.c \
3855 src/journal-remote/journal-upload-journal.c
3857 systemd_journal_upload_CFLAGS = \
3861 systemd_journal_upload_LDADD = \
3865 nodist_systemunit_DATA += \
3866 units/systemd-journal-upload.service
3868 nodist_pkgsysconf_DATA += \
3869 src/journal-remote/journal-upload.conf
3873 units/systemd-journal-upload.service.in \
3874 src/journal-remote/journal-upload.conf.in
3876 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3877 journalctl_CFLAGS = \
3880 journalctl_SOURCES = \
3881 src/journal/journalctl.c
3883 journalctl_LDADD = \
3887 journalctl_SOURCES += \
3888 src/journal/journal-qrcode.c \
3889 src/journal/journal-qrcode.h
3891 journalctl_CFLAGS += \
3894 journalctl_LDADD += \
3898 test_journal_SOURCES = \
3899 src/journal/test-journal.c
3901 test_journal_LDADD = \
3904 test_journal_send_SOURCES = \
3905 src/journal/test-journal-send.c
3907 test_journal_send_LDADD = \
3910 test_journal_syslog_SOURCES = \
3911 src/journal/test-journal-syslog.c
3913 test_journal_syslog_LDADD = \
3916 test_journal_match_SOURCES = \
3917 src/journal/test-journal-match.c
3919 test_journal_match_LDADD = \
3922 test_journal_enum_SOURCES = \
3923 src/journal/test-journal-enum.c
3925 test_journal_enum_LDADD = \
3928 test_journal_stream_SOURCES = \
3929 src/journal/test-journal-stream.c
3931 test_journal_stream_LDADD = \
3934 test_journal_flush_SOURCES = \
3935 src/journal/test-journal-flush.c
3937 test_journal_flush_LDADD = \
3940 test_journal_init_SOURCES = \
3941 src/journal/test-journal-init.c
3943 test_journal_init_LDADD = \
3946 test_journal_verify_SOURCES = \
3947 src/journal/test-journal-verify.c
3949 test_journal_verify_LDADD = \
3952 test_journal_interleaving_SOURCES = \
3953 src/journal/test-journal-interleaving.c
3955 test_journal_interleaving_LDADD = \
3958 test_mmap_cache_SOURCES = \
3959 src/journal/test-mmap-cache.c
3961 test_mmap_cache_LDADD = \
3964 test_catalog_SOURCES = \
3965 src/journal/test-catalog.c
3967 test_catalog_CPPFLAGS = \
3969 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3971 test_catalog_LDADD = \
3974 test_compress_SOURCES = \
3975 src/journal/test-compress.c
3977 test_compress_LDADD = \
3980 test_compress_benchmark_SOURCES = \
3981 src/journal/test-compress-benchmark.c
3983 test_compress_benchmark_LDADD = \
3986 test_audit_type_SOURCES = \
3987 src/journal/test-audit-type.c
3989 test_audit_type_LDADD = \
3992 libjournal_core_la_SOURCES = \
3993 src/journal/journald-kmsg.c \
3994 src/journal/journald-kmsg.h \
3995 src/journal/journald-syslog.c \
3996 src/journal/journald-syslog.h \
3997 src/journal/journald-stream.c \
3998 src/journal/journald-stream.h \
3999 src/journal/journald-server.c \
4000 src/journal/journald-server.h \
4001 src/journal/journald-console.c \
4002 src/journal/journald-console.h \
4003 src/journal/journald-wall.c \
4004 src/journal/journald-wall.h \
4005 src/journal/journald-native.c \
4006 src/journal/journald-native.h \
4007 src/journal/journald-audit.c \
4008 src/journal/journald-audit.h \
4009 src/journal/journald-rate-limit.c \
4010 src/journal/journald-rate-limit.h \
4011 src/journal/journal-internal.h
4013 nodist_libjournal_core_la_SOURCES = \
4014 src/journal/journald-gperf.c
4016 libjournal_core_la_LIBADD = \
4019 noinst_LTLIBRARIES += \
4022 journal-install-hook:
4023 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4024 -chown 0:0 $(DESTDIR)/var/log/journal
4025 -chmod 755 $(DESTDIR)/var/log/journal
4026 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4027 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4029 journal-uninstall-hook:
4030 -rmdir $(DESTDIR)/var/log/journal/remote
4031 -rmdir $(DESTDIR)/var/log/journal/
4033 INSTALL_EXEC_HOOKS += journal-install-hook
4034 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4036 # ------------------------------------------------------------------------------
4037 # Update catalog on installation. Do not bother if installing
4038 # in DESTDIR, since this is likely for packaging purposes.
4039 catalog-update-hook:
4040 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4042 INSTALL_DATA_HOOKS += \
4045 catalog-remove-hook:
4046 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4048 UNINSTALL_DATA_HOOKS += \
4057 test-journal-syslog \
4058 test-journal-match \
4059 test-journal-stream \
4061 test-journal-verify \
4062 test-journal-interleaving \
4063 test-journal-flush \
4071 test-compress-benchmark
4074 pkginclude_HEADERS += \
4075 src/systemd/sd-journal.h \
4076 src/systemd/sd-messages.h \
4077 src/systemd/_sd-common.h
4079 libsystemd_journal_internal_la_SOURCES = \
4080 src/journal/sd-journal.c \
4081 src/systemd/sd-journal.h \
4082 src/systemd/_sd-common.h \
4083 src/journal/journal-file.c \
4084 src/journal/journal-file.h \
4085 src/journal/journal-vacuum.c \
4086 src/journal/journal-vacuum.h \
4087 src/journal/journal-verify.c \
4088 src/journal/journal-verify.h \
4089 src/journal/lookup3.c \
4090 src/journal/lookup3.h \
4091 src/journal/journal-send.c \
4092 src/journal/journal-def.h \
4093 src/journal/compress.h \
4094 src/journal/catalog.c \
4095 src/journal/catalog.h \
4096 src/journal/mmap-cache.c \
4097 src/journal/mmap-cache.h \
4098 src/journal/compress.c \
4099 src/journal/audit-type.h \
4100 src/journal/audit-type.c
4102 nodist_libsystemd_journal_internal_la_SOURCES = \
4103 src/journal/audit_type-to-name.h
4105 gperf_txt_sources += \
4106 src/journal/audit_type-list.txt
4108 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4109 libsystemd_journal_internal_la_CFLAGS = \
4112 libsystemd_journal_internal_la_LIBADD =
4115 libsystemd_journal_internal_la_CFLAGS += \
4118 libsystemd_journal_internal_la_LIBADD += \
4123 libsystemd_journal_internal_la_LIBADD += \
4128 libsystemd_journal_internal_la_SOURCES += \
4129 src/journal/journal-authenticate.c \
4130 src/journal/journal-authenticate.h \
4131 src/journal/fsprg.c \
4134 libsystemd_journal_internal_la_LIBADD += \
4137 # fsprg.c is a drop-in file using void pointer arithmetic
4138 libsystemd_journal_internal_la_CFLAGS += \
4143 noinst_LTLIBRARIES += \
4144 libsystemd-journal-internal.la
4146 rootlibexec_PROGRAMS += \
4149 rootbin_PROGRAMS += \
4155 dist_systemunit_DATA += \
4156 units/systemd-journald.socket \
4157 units/systemd-journald-dev-log.socket \
4158 units/systemd-journald-audit.socket
4160 nodist_systemunit_DATA += \
4161 units/systemd-journald.service \
4162 units/systemd-journal-flush.service \
4163 units/systemd-journal-catalog-update.service
4165 dist_pkgsysconf_DATA += \
4166 src/journal/journald.conf
4168 dist_catalog_DATA = \
4169 catalog/systemd.be.catalog \
4170 catalog/systemd.be@latin.catalog \
4171 catalog/systemd.fr.catalog \
4172 catalog/systemd.it.catalog \
4173 catalog/systemd.pl.catalog \
4174 catalog/systemd.pt_BR.catalog \
4175 catalog/systemd.ru.catalog \
4176 catalog/systemd.zh_TW.catalog \
4177 catalog/systemd.catalog
4179 SOCKETS_TARGET_WANTS += \
4180 systemd-journald.socket \
4181 systemd-journald-dev-log.socket \
4182 systemd-journald-audit.socket
4184 SYSINIT_TARGET_WANTS += \
4185 systemd-journald.service \
4186 systemd-journal-flush.service \
4187 systemd-journal-catalog-update.service
4190 units/systemd-journald.service.in \
4191 units/systemd-journal-flush.service.in \
4192 units/systemd-journal-catalog-update.service.in
4194 gperf_gperf_sources += \
4195 src/journal/journald-gperf.gperf
4197 # ------------------------------------------------------------------------------
4199 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4201 rootlibexec_PROGRAMS += \
4202 systemd-journal-gatewayd
4204 systemd_journal_gatewayd_SOURCES = \
4205 src/journal-remote/journal-gatewayd.c \
4206 src/journal-remote/microhttpd-util.h \
4207 src/journal-remote/microhttpd-util.c
4209 systemd_journal_gatewayd_LDADD = \
4214 systemd_journal_gatewayd_LDADD += \
4218 systemd_journal_gatewayd_CFLAGS = \
4220 $(MICROHTTPD_CFLAGS)
4222 systemd_journal_gatewayd_CPPFLAGS = \
4224 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4226 dist_systemunit_DATA += \
4227 units/systemd-journal-gatewayd.socket
4229 nodist_systemunit_DATA += \
4230 units/systemd-journal-gatewayd.service
4232 dist_gatewayddocumentroot_DATA = \
4233 src/journal-remote/browse.html
4238 units/systemd-journal-gatewayd.service.in
4240 # ------------------------------------------------------------------------------
4242 systemd_socket_proxyd_SOURCES = \
4243 src/socket-proxy/socket-proxyd.c
4245 systemd_socket_proxyd_LDADD = \
4248 # ------------------------------------------------------------------------------
4250 systemd_coredump_SOURCES = \
4251 src/journal/coredump.c \
4252 src/journal/coredump-vacuum.c \
4253 src/journal/coredump-vacuum.h
4255 systemd_coredump_LDADD = \
4259 systemd_coredump_SOURCES += \
4260 src/journal/stacktrace.c \
4261 src/journal/stacktrace.h
4263 systemd_coredump_LDADD += \
4267 rootlibexec_PROGRAMS += \
4270 dist_pkgsysconf_DATA += \
4271 src/journal/coredump.conf
4273 coredumpctl_SOURCES = \
4274 src/journal/coredumpctl.c
4276 coredumpctl_LDADD = \
4283 test-coredump-vacuum
4285 test_coredump_vacuum_SOURCES = \
4286 src/journal/test-coredump-vacuum.c \
4287 src/journal/coredump-vacuum.c \
4288 src/journal/coredump-vacuum.h
4290 test_coredump_vacuum_LDADD = \
4293 if ENABLE_BASH_COMPLETION
4294 dist_bashcompletion_DATA += \
4295 shell-completion/bash/coredumpctl
4298 if ENABLE_ZSH_COMPLETION
4299 dist_zshcompletion_DATA += \
4300 shell-completion/zsh/_coredumpctl
4303 nodist_sysctl_DATA = \
4304 sysctl.d/50-coredump.conf
4307 sysctl.d/50-coredump.conf
4311 sysctl.d/50-coredump.conf.in
4313 # ------------------------------------------------------------------------------
4315 systemd_binfmt_SOURCES = \
4318 systemd_binfmt_LDADD = \
4321 rootlibexec_PROGRAMS += \
4324 dist_systemunit_DATA += \
4325 units/proc-sys-fs-binfmt_misc.automount \
4326 units/proc-sys-fs-binfmt_misc.mount
4328 nodist_systemunit_DATA += \
4329 units/systemd-binfmt.service
4332 $(prefix)/lib/binfmt.d \
4333 $(sysconfdir)/binfmt.d
4335 SYSINIT_TARGET_WANTS += \
4336 systemd-binfmt.service \
4337 proc-sys-fs-binfmt_misc.automount
4342 units/systemd-binfmt.service.in
4344 # ------------------------------------------------------------------------------
4346 systemd_vconsole_setup_SOURCES = \
4347 src/vconsole/vconsole-setup.c
4349 systemd_vconsole_setup_LDADD = \
4352 rootlibexec_PROGRAMS += \
4353 systemd-vconsole-setup
4355 nodist_udevrules_DATA += \
4356 src/vconsole/90-vconsole.rules
4358 nodist_systemunit_DATA += \
4359 units/systemd-vconsole-setup.service
4361 SYSINIT_TARGET_WANTS += \
4362 systemd-vconsole-setup.service
4366 src/vconsole/90-vconsole.rules.in \
4367 units/systemd-vconsole-setup.service.in
4369 # ------------------------------------------------------------------------------
4371 systemd_bootchart_SOURCES = \
4372 src/bootchart/bootchart.c \
4373 src/bootchart/bootchart.h \
4374 src/bootchart/store.c \
4375 src/bootchart/store.h \
4376 src/bootchart/svg.c \
4379 systemd_bootchart_LDADD = \
4382 rootlibexec_PROGRAMS += \
4385 dist_pkgsysconf_DATA += \
4386 src/bootchart/bootchart.conf
4388 nodist_systemunit_DATA += \
4389 units/systemd-bootchart.service
4393 units/systemd-bootchart.service.in
4395 # ------------------------------------------------------------------------------
4396 if ENABLE_QUOTACHECK
4397 rootlibexec_PROGRAMS += \
4400 nodist_systemunit_DATA += \
4401 units/systemd-quotacheck.service
4403 systemd_quotacheck_SOURCES = \
4404 src/quotacheck/quotacheck.c
4406 systemd_quotacheck_LDADD = \
4411 units/systemd-quotacheck.service.in
4413 nodist_systemunit_DATA += \
4414 units/quotaon.service
4416 # ------------------------------------------------------------------------------
4417 if ENABLE_RANDOMSEED
4418 rootlibexec_PROGRAMS += \
4421 nodist_systemunit_DATA += \
4422 units/systemd-random-seed.service
4424 systemd_random_seed_SOURCES = \
4425 src/random-seed/random-seed.c
4427 systemd_random_seed_LDADD = \
4430 SYSINIT_TARGET_WANTS += \
4431 systemd-random-seed.service
4436 units/systemd-random-seed.service.in
4438 # ------------------------------------------------------------------------------
4440 rootlibexec_PROGRAMS += \
4443 nodist_systemunit_DATA += \
4444 units/systemd-backlight@.service
4446 systemd_backlight_SOURCES = \
4447 src/backlight/backlight.c
4449 systemd_backlight_LDADD = \
4454 units/systemd-backlight@.service.in
4456 # ------------------------------------------------------------------------------
4458 rootlibexec_PROGRAMS += \
4461 nodist_systemunit_DATA += \
4462 units/systemd-rfkill@.service
4464 systemd_rfkill_SOURCES = \
4467 systemd_rfkill_LDADD = \
4472 units/systemd-rfkill@.service.in
4474 # ------------------------------------------------------------------------------
4475 if HAVE_LIBCRYPTSETUP
4476 rootlibexec_PROGRAMS += \
4479 systemgenerator_PROGRAMS += \
4480 systemd-cryptsetup-generator
4482 dist_systemunit_DATA += \
4483 units/cryptsetup.target \
4484 units/cryptsetup-pre.target
4486 systemd_cryptsetup_SOURCES = \
4487 src/cryptsetup/cryptsetup.c
4489 systemd_cryptsetup_CFLAGS = \
4491 $(LIBCRYPTSETUP_CFLAGS)
4493 systemd_cryptsetup_LDADD = \
4495 $(LIBCRYPTSETUP_LIBS)
4497 systemd_cryptsetup_generator_SOURCES = \
4498 src/cryptsetup/cryptsetup-generator.c
4500 systemd_cryptsetup_generator_LDADD = \
4503 SYSINIT_TARGET_WANTS += \
4508 # ------------------------------------------------------------------------------
4510 systemd_hostnamed_SOURCES = \
4511 src/hostname/hostnamed.c
4513 systemd_hostnamed_LDADD = \
4516 rootlibexec_PROGRAMS += \
4519 nodist_systemunit_DATA += \
4520 units/systemd-hostnamed.service
4522 dist_systemunit_DATA_busnames += \
4523 units/org.freedesktop.hostname1.busname
4525 dist_dbuspolicy_DATA += \
4526 src/hostname/org.freedesktop.hostname1.conf
4528 dist_dbussystemservice_DATA += \
4529 src/hostname/org.freedesktop.hostname1.service
4531 polkitpolicy_files += \
4532 src/hostname/org.freedesktop.hostname1.policy
4534 SYSTEM_UNIT_ALIASES += \
4535 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4537 BUSNAMES_TARGET_WANTS += \
4538 org.freedesktop.hostname1.busname
4540 hostnamectl_SOURCES = \
4541 src/hostname/hostnamectl.c
4543 hostnamectl_LDADD = \
4549 if ENABLE_BASH_COMPLETION
4550 dist_bashcompletion_DATA += \
4551 shell-completion/bash/hostnamectl
4554 if ENABLE_ZSH_COMPLETION
4555 dist_zshcompletion_DATA += \
4556 shell-completion/zsh/_hostnamectl
4560 polkitpolicy_in_files += \
4561 src/hostname/org.freedesktop.hostname1.policy.in
4564 units/systemd-hostnamed.service.in
4566 # ------------------------------------------------------------------------------
4567 dist_systemunit_DATA_busnames += \
4568 units/org.freedesktop.systemd1.busname
4570 BUSNAMES_TARGET_WANTS += \
4571 org.freedesktop.systemd1.busname
4573 # ------------------------------------------------------------------------------
4575 systemd_localed_SOURCES = \
4576 src/locale/localed.c
4578 systemd_localed_LDADD = \
4582 systemd_localed_CFLAGS = \
4586 nodist_systemunit_DATA += \
4587 units/systemd-localed.service
4589 dist_systemunit_DATA_busnames += \
4590 units/org.freedesktop.locale1.busname
4592 rootlibexec_PROGRAMS += \
4595 dist_dbuspolicy_DATA += \
4596 src/locale/org.freedesktop.locale1.conf
4598 dist_dbussystemservice_DATA += \
4599 src/locale/org.freedesktop.locale1.service
4601 polkitpolicy_files += \
4602 src/locale/org.freedesktop.locale1.policy
4604 SYSTEM_UNIT_ALIASES += \
4605 systemd-localed.service dbus-org.freedesktop.locale1.service
4607 BUSNAMES_TARGET_WANTS += \
4608 org.freedesktop.locale1.busname
4610 dist_pkgdata_DATA = \
4611 src/locale/kbd-model-map \
4612 src/locale/language-fallback-map
4614 localectl_SOURCES = \
4615 src/locale/localectl.c
4623 if ENABLE_BASH_COMPLETION
4624 dist_bashcompletion_DATA += \
4625 shell-completion/bash/localectl
4628 if ENABLE_ZSH_COMPLETION
4629 dist_zshcompletion_DATA += \
4630 shell-completion/zsh/_localectl
4634 .PHONY: update-kbd-model-map
4636 polkitpolicy_in_files += \
4637 src/locale/org.freedesktop.locale1.policy.in
4640 units/systemd-localed.service.in
4642 # ------------------------------------------------------------------------------
4644 systemd_timedated_SOURCES = \
4645 src/timedate/timedated.c
4647 systemd_timedated_LDADD = \
4650 rootlibexec_PROGRAMS += \
4653 dist_dbussystemservice_DATA += \
4654 src/timedate/org.freedesktop.timedate1.service
4656 dist_dbuspolicy_DATA += \
4657 src/timedate/org.freedesktop.timedate1.conf
4659 nodist_systemunit_DATA += \
4660 units/systemd-timedated.service
4662 dist_systemunit_DATA_busnames += \
4663 units/org.freedesktop.timedate1.busname
4665 polkitpolicy_files += \
4666 src/timedate/org.freedesktop.timedate1.policy
4668 SYSTEM_UNIT_ALIASES += \
4669 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4671 BUSNAMES_TARGET_WANTS += \
4672 org.freedesktop.timedate1.busname
4674 timedatectl_SOURCES = \
4675 src/timedate/timedatectl.c
4677 timedatectl_LDADD = \
4683 if ENABLE_BASH_COMPLETION
4684 dist_bashcompletion_DATA += \
4685 shell-completion/bash/timedatectl
4688 if ENABLE_ZSH_COMPLETION
4689 dist_zshcompletion_DATA += \
4690 shell-completion/zsh/_timedatectl
4694 polkitpolicy_in_files += \
4695 src/timedate/org.freedesktop.timedate1.policy.in
4698 units/systemd-timedated.service.in
4700 # ------------------------------------------------------------------------------
4702 systemd_timesyncd_SOURCES = \
4703 src/timesync/timesyncd.c \
4704 src/timesync/timesyncd-manager.c \
4705 src/timesync/timesyncd-manager.h \
4706 src/timesync/timesyncd-conf.c \
4707 src/timesync/timesyncd-conf.h \
4708 src/timesync/timesyncd-server.c \
4709 src/timesync/timesyncd-server.h
4711 nodist_systemd_timesyncd_SOURCES = \
4712 src/timesync/timesyncd-gperf.c
4714 gperf_gperf_sources += \
4715 src/timesync/timesyncd-gperf.gperf
4717 systemd_timesyncd_LDADD = \
4718 libsystemd-network.la \
4721 rootlibexec_PROGRAMS += \
4724 nodist_systemunit_DATA += \
4725 units/systemd-timesyncd.service
4727 GENERAL_ALIASES += \
4728 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4731 units/systemd-timesyncd.service.in
4733 nodist_pkgsysconf_DATA += \
4734 src/timesync/timesyncd.conf
4737 src/timesync/timesyncd.conf.in
4740 # ------------------------------------------------------------------------------
4742 libnss_myhostname_la_SOURCES = \
4743 src/nss-myhostname/nss-myhostname.sym \
4744 src/nss-myhostname/nss-myhostname.c
4746 libnss_myhostname_la_LDFLAGS = \
4753 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4755 libnss_myhostname_la_LIBADD = \
4758 lib_LTLIBRARIES += \
4759 libnss_myhostname.la
4762 # ------------------------------------------------------------------------------
4764 systemd_machined_SOURCES = \
4765 src/machine/machined.c \
4766 src/machine/machined.h
4768 systemd_machined_LDADD = \
4771 rootlibexec_PROGRAMS += \
4774 libmachine_core_la_SOURCES = \
4775 src/machine/machine.c \
4776 src/machine/machine.h \
4777 src/machine/machined-dbus.c \
4778 src/machine/machine-dbus.c \
4779 src/machine/machine-dbus.h \
4780 src/machine/image-dbus.c \
4781 src/machine/image-dbus.h
4783 libmachine_core_la_LIBADD = \
4786 noinst_LTLIBRARIES += \
4789 machinectl_SOURCES = \
4790 src/machine/machinectl.c
4792 machinectl_LDADD = \
4795 rootbin_PROGRAMS += \
4798 if ENABLE_BASH_COMPLETION
4799 dist_bashcompletion_DATA += \
4800 shell-completion/bash/machinectl
4803 test_machine_tables_SOURCES = \
4804 src/machine/test-machine-tables.c
4806 test_machine_tables_LDADD = \
4812 nodist_systemunit_DATA += \
4813 units/systemd-machined.service
4815 dist_systemunit_DATA += \
4818 dist_systemunit_DATA_busnames += \
4819 units/org.freedesktop.machine1.busname
4821 dist_dbussystemservice_DATA += \
4822 src/machine/org.freedesktop.machine1.service
4824 dist_dbuspolicy_DATA += \
4825 src/machine/org.freedesktop.machine1.conf
4827 polkitpolicy_files += \
4828 src/machine/org.freedesktop.machine1.policy
4830 if ENABLE_ZSH_COMPLETION
4831 dist_zshcompletion_DATA += \
4832 shell-completion/zsh/_machinectl \
4833 shell-completion/zsh/_sd_machines
4836 SYSTEM_UNIT_ALIASES += \
4837 systemd-machined.service dbus-org.freedesktop.machine1.service
4839 BUSNAMES_TARGET_WANTS += \
4840 org.freedesktop.machine1.busname
4842 libnss_mymachines_la_SOURCES = \
4843 src/nss-mymachines/nss-mymachines.sym \
4844 src/nss-mymachines/nss-mymachines.c
4846 libnss_mymachines_la_LDFLAGS = \
4853 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4855 libnss_mymachines_la_LIBADD = \
4858 lib_LTLIBRARIES += \
4859 libnss_mymachines.la
4863 polkitpolicy_in_files += \
4864 src/machine/org.freedesktop.machine1.policy.in
4867 units/systemd-machined.service.in
4869 # ------------------------------------------------------------------------------
4878 rootlibexec_PROGRAMS += \
4884 systemd_importd_SOURCES = \
4885 src/import/importd.c
4887 systemd_importd_CFLAGS = \
4889 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
4890 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
4891 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
4893 systemd_importd_LDADD = \
4896 systemd_pull_SOURCES = \
4898 src/import/pull-raw.c \
4899 src/import/pull-raw.h \
4900 src/import/pull-tar.c \
4901 src/import/pull-tar.h \
4902 src/import/pull-dkr.c \
4903 src/import/pull-dkr.h \
4904 src/import/pull-job.c \
4905 src/import/pull-job.h \
4906 src/import/pull-common.c \
4907 src/import/pull-common.h \
4908 src/import/import-common.c \
4909 src/import/import-common.h \
4910 src/import/import-compress.c \
4911 src/import/import-compress.h \
4912 src/import/curl-util.c \
4913 src/import/curl-util.h \
4914 src/import/aufs-util.c \
4915 src/import/aufs-util.h \
4916 src/import/qcow2-util.c \
4917 src/import/qcow2-util.h
4919 systemd_pull_CFLAGS = \
4925 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
4926 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
4928 systemd_pull_LDADD = \
4936 systemd_import_SOURCES = \
4937 src/import/import.c \
4938 src/import/import-raw.c \
4939 src/import/import-raw.h \
4940 src/import/import-tar.c \
4941 src/import/import-tar.h \
4942 src/import/import-common.c \
4943 src/import/import-common.h \
4944 src/import/import-compress.c \
4945 src/import/import-compress.h \
4946 src/import/qcow2-util.c \
4947 src/import/qcow2-util.h
4949 systemd_import_CFLAGS = \
4954 systemd_import_LDADD = \
4960 systemd_export_SOURCES = \
4961 src/import/export.c \
4962 src/import/export-tar.c \
4963 src/import/export-tar.h \
4964 src/import/export-raw.c \
4965 src/import/export-raw.h \
4966 src/import/import-common.c \
4967 src/import/import-common.h \
4968 src/import/import-compress.c \
4969 src/import/import-compress.h
4971 systemd_export_CFLAGS = \
4976 systemd_export_LDADD = \
4982 dist_rootlibexec_DATA = \
4983 src/import/import-pubring.gpg
4985 nodist_systemunit_DATA += \
4986 units/systemd-importd.service
4988 dist_systemunit_DATA_busnames += \
4989 units/org.freedesktop.import1.busname
4991 BUSNAMES_TARGET_WANTS += \
4992 org.freedesktop.import1.busname
4994 SYSTEM_UNIT_ALIASES += \
4995 systemd-importd.service dbus-org.freedesktop.import1.service
4997 dist_dbussystemservice_DATA += \
4998 src/import/org.freedesktop.import1.service
5000 dist_dbuspolicy_DATA += \
5001 src/import/org.freedesktop.import1.conf
5003 polkitpolicy_files += \
5004 src/import/org.freedesktop.import1.policy
5009 test_qcow2_SOURCES = \
5010 src/import/test-qcow2.c \
5011 src/import/qcow2-util.c \
5012 src/import/qcow2-util.h
5014 test_qcow2_CFLAGS = \
5018 test_qcow2_LDADD = \
5030 polkitpolicy_in_files += \
5031 src/import/org.freedesktop.import1.policy.in
5034 units/systemd-importd.service.in \
5035 src/resolve/resolved.conf.in
5038 # ------------------------------------------------------------------------------
5040 systemd_resolved_SOURCES = \
5041 src/resolve/resolved.c \
5042 src/resolve/resolved-manager.c \
5043 src/resolve/resolved-manager.h \
5044 src/resolve/resolved-conf.c \
5045 src/resolve/resolved-conf.h \
5046 src/resolve/resolved-bus.c \
5047 src/resolve/resolved-bus.h \
5048 src/resolve/resolved-link.h \
5049 src/resolve/resolved-link.c \
5050 src/resolve/resolved-llmnr.h \
5051 src/resolve/resolved-llmnr.c \
5052 src/resolve/resolved-def.h \
5053 src/resolve/resolved-dns-rr.h \
5054 src/resolve/resolved-dns-rr.c \
5055 src/resolve/resolved-dns-question.h \
5056 src/resolve/resolved-dns-question.c \
5057 src/resolve/resolved-dns-answer.h \
5058 src/resolve/resolved-dns-answer.c \
5059 src/resolve/resolved-dns-packet.h \
5060 src/resolve/resolved-dns-packet.c \
5061 src/resolve/resolved-dns-query.h \
5062 src/resolve/resolved-dns-query.c \
5063 src/resolve/resolved-dns-transaction.h \
5064 src/resolve/resolved-dns-transaction.c \
5065 src/resolve/resolved-dns-scope.h \
5066 src/resolve/resolved-dns-scope.c \
5067 src/resolve/resolved-dns-server.h \
5068 src/resolve/resolved-dns-server.c \
5069 src/resolve/resolved-dns-cache.h \
5070 src/resolve/resolved-dns-cache.c \
5071 src/resolve/resolved-dns-zone.h \
5072 src/resolve/resolved-dns-zone.c \
5073 src/resolve/resolved-dns-stream.h \
5074 src/resolve/resolved-dns-stream.c \
5075 src/resolve/dns-type.c \
5076 src/resolve/dns-type.h
5078 nodist_systemd_resolved_SOURCES = \
5079 src/resolve/dns_type-from-name.h \
5080 src/resolve/dns_type-to-name.h \
5081 src/resolve/resolved-gperf.c
5083 gperf_gperf_sources += \
5084 src/resolve/resolved-gperf.gperf
5086 gperf_txt_sources += \
5087 src/resolve/dns_type-list.txt
5089 systemd_resolved_LDADD = \
5090 libsystemd-network.la \
5093 rootlibexec_PROGRAMS += \
5096 nodist_systemunit_DATA += \
5097 units/systemd-resolved.service
5099 dist_systemunit_DATA_busnames += \
5100 units/org.freedesktop.resolve1.busname
5102 dist_dbuspolicy_DATA += \
5103 src/resolve/org.freedesktop.resolve1.conf
5105 dist_dbussystemservice_DATA += \
5106 src/resolve/org.freedesktop.resolve1.service
5108 SYSTEM_UNIT_ALIASES += \
5109 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5111 BUSNAMES_TARGET_WANTS += \
5112 org.freedesktop.resolve1.busname
5114 GENERAL_ALIASES += \
5115 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5117 nodist_pkgsysconf_DATA += \
5118 src/resolve/resolved.conf
5123 libnss_resolve_la_SOURCES = \
5124 src/nss-resolve/nss-resolve.sym \
5125 src/nss-resolve/nss-resolve.c
5127 libnss_resolve_la_LDFLAGS = \
5134 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5136 libnss_resolve_la_LIBADD = \
5139 lib_LTLIBRARIES += \
5142 systemd_resolve_host_SOURCES = \
5143 src/resolve-host/resolve-host.c \
5144 src/resolve/resolved-dns-packet.c \
5145 src/resolve/resolved-dns-packet.h \
5146 src/resolve/resolved-dns-rr.c \
5147 src/resolve/resolved-dns-rr.h \
5148 src/resolve/resolved-dns-answer.c \
5149 src/resolve/resolved-dns-answer.h \
5150 src/resolve/resolved-dns-question.c \
5151 src/resolve/resolved-dns-question.h \
5152 src/resolve/dns-type.c \
5153 src/resolve/dns-type.h
5155 nodist_systemd_resolve_host_SOURCES = \
5156 src/resolve/dns_type-from-name.h \
5157 src/resolve/dns_type-to-name.h
5159 systemd_resolve_host_LDADD = \
5162 rootlibexec_PROGRAMS += \
5163 systemd-resolve-host
5168 units/systemd-resolved.service.m4.in
5170 # ------------------------------------------------------------------------------
5172 rootlibexec_PROGRAMS += \
5175 systemd_networkd_SOURCES = \
5176 src/network/networkd.c
5178 systemd_networkd_LDADD = \
5182 systemd_networkd_LDADD += \
5186 noinst_LTLIBRARIES += \
5189 libnetworkd_core_la_CFLAGS = \
5192 libnetworkd_core_la_SOURCES = \
5193 src/libsystemd-network/network-internal.h \
5194 src/network/networkd.h \
5195 src/network/networkd-link.h \
5196 src/network/networkd-link.c \
5197 src/network/networkd-netdev.h \
5198 src/network/networkd-netdev.c \
5199 src/network/networkd-netdev-tunnel.h \
5200 src/network/networkd-netdev-tunnel.c \
5201 src/network/networkd-netdev-veth.h \
5202 src/network/networkd-netdev-veth.c \
5203 src/network/networkd-netdev-vxlan.h \
5204 src/network/networkd-netdev-vxlan.c \
5205 src/network/networkd-netdev-vlan.h \
5206 src/network/networkd-netdev-vlan.c \
5207 src/network/networkd-netdev-macvlan.h \
5208 src/network/networkd-netdev-macvlan.c \
5209 src/network/networkd-netdev-ipvlan.h \
5210 src/network/networkd-netdev-ipvlan.c \
5211 src/network/networkd-netdev-dummy.h \
5212 src/network/networkd-netdev-dummy.c \
5213 src/network/networkd-netdev-tuntap.h \
5214 src/network/networkd-netdev-tuntap.c \
5215 src/network/networkd-netdev-bond.h \
5216 src/network/networkd-netdev-bond.c \
5217 src/network/networkd-netdev-bridge.h \
5218 src/network/networkd-netdev-bridge.c \
5219 src/network/networkd-link-bus.c \
5220 src/network/networkd-ipv4ll.c \
5221 src/network/networkd-dhcp4.c \
5222 src/network/networkd-dhcp6.c \
5223 src/network/networkd-network.h \
5224 src/network/networkd-network.c \
5225 src/network/networkd-network-bus.c \
5226 src/network/networkd-address.h \
5227 src/network/networkd-address.c \
5228 src/network/networkd-route.h \
5229 src/network/networkd-route.c \
5230 src/network/networkd-manager.c \
5231 src/network/networkd-manager-bus.c \
5232 src/network/networkd-fdb.h \
5233 src/network/networkd-fdb.c \
5234 src/network/networkd-address-pool.h \
5235 src/network/networkd-address-pool.c \
5236 src/network/networkd-util.h \
5237 src/network/networkd-util.c
5239 nodist_libnetworkd_core_la_SOURCES = \
5240 src/network/networkd-network-gperf.c \
5241 src/network/networkd-netdev-gperf.c
5243 libnetworkd_core_la_LIBADD = \
5244 libsystemd-network.la \
5247 rootlibexec_PROGRAMS += \
5248 systemd-networkd-wait-online
5250 systemd_networkd_wait_online_CFLAGS = \
5253 systemd_networkd_wait_online_SOURCES = \
5254 src/libsystemd-network/network-internal.h \
5255 src/network/networkd-wait-online.h \
5256 src/network/networkd-wait-online-link.h \
5257 src/network/networkd-wait-online.c \
5258 src/network/networkd-wait-online-manager.c \
5259 src/network/networkd-wait-online-link.c
5261 systemd_networkd_wait_online_LDADD = \
5262 libsystemd-network.la \
5265 rootbin_PROGRAMS += \
5268 networkctl_SOURCES = \
5269 src/network/networkctl.c
5271 networkctl_LDADD = \
5273 libsystemd-network.la
5275 test_network_SOURCES = \
5276 src/network/test-network.c
5278 test_network_LDADD = \
5282 test_network_LDADD += \
5286 test_network_tables_SOURCES = \
5287 src/network/test-network-tables.c \
5288 src/shared/test-tables.h
5290 test_network_tables_LDADD = \
5291 libnetworkd-core.la \
5295 test_network_tables_LDADD += \
5303 dist_systemunit_DATA += \
5304 units/systemd-networkd.socket
5306 nodist_systemunit_DATA += \
5307 units/systemd-networkd.service \
5308 units/systemd-networkd-wait-online.service
5310 dist_systemunit_DATA_busnames += \
5311 units/org.freedesktop.network1.busname
5313 dist_dbussystemservice_DATA += \
5314 src/network/org.freedesktop.network1.service
5316 dist_dbuspolicy_DATA += \
5317 src/network/org.freedesktop.network1.conf
5319 GENERAL_ALIASES += \
5320 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5321 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5322 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5324 SYSTEM_UNIT_ALIASES += \
5325 systemd-networkd.service dbus-org.freedesktop.network1.service
5327 BUSNAMES_TARGET_WANTS += \
5328 org.freedesktop.network1.busname
5330 gperf_gperf_sources += \
5331 src/network/networkd-network-gperf.gperf \
5332 src/network/networkd-netdev-gperf.gperf
5336 units/systemd-networkd.service.m4.in \
5337 units/systemd-networkd-wait-online.service.in
5339 # ------------------------------------------------------------------------------
5341 systemd_logind_SOURCES = \
5342 src/login/logind.c \
5345 nodist_systemd_logind_SOURCES = \
5346 src/login/logind-gperf.c
5348 systemd_logind_LDADD = \
5351 liblogind_core_la_SOURCES = \
5352 src/login/logind-core.c \
5353 src/login/logind-device.c \
5354 src/login/logind-device.h \
5355 src/login/logind-button.c \
5356 src/login/logind-button.h \
5357 src/login/logind-action.c \
5358 src/login/logind-action.h \
5359 src/login/logind-seat.c \
5360 src/login/logind-seat.h \
5361 src/login/logind-session.c \
5362 src/login/logind-session.h \
5363 src/login/logind-session-device.c \
5364 src/login/logind-session-device.h \
5365 src/login/logind-user.c \
5366 src/login/logind-user.h \
5367 src/login/logind-inhibit.c \
5368 src/login/logind-inhibit.h \
5369 src/login/logind-dbus.c \
5370 src/login/logind-session-dbus.c \
5371 src/login/logind-seat-dbus.c \
5372 src/login/logind-user-dbus.c \
5373 src/login/logind-utmp.c \
5374 src/login/logind-acl.h
5376 liblogind_core_la_LIBADD = \
5380 liblogind_core_la_SOURCES += \
5381 src/login/logind-acl.c
5384 noinst_LTLIBRARIES += \
5387 rootlibexec_PROGRAMS += \
5390 loginctl_SOURCES = \
5391 src/login/loginctl.c \
5392 src/login/sysfs-show.h \
5393 src/login/sysfs-show.c
5398 rootbin_PROGRAMS += \
5401 if ENABLE_BASH_COMPLETION
5402 dist_bashcompletion_DATA += \
5403 shell-completion/bash/loginctl
5406 if ENABLE_ZSH_COMPLETION
5407 dist_zshcompletion_DATA += \
5408 shell-completion/zsh/_loginctl \
5409 shell-completion/zsh/_systemd-inhibit
5412 systemd_inhibit_SOURCES = \
5415 systemd_inhibit_LDADD = \
5418 rootbin_PROGRAMS += \
5421 test_login_SOURCES = \
5422 src/libsystemd/sd-login/test-login.c
5424 test_login_LDADD = \
5427 test_login_shared_SOURCES = \
5428 src/login/test-login-shared.c
5430 test_login_shared_LDADD = \
5433 test_inhibit_SOURCES = \
5434 src/login/test-inhibit.c
5436 test_inhibit_LDADD = \
5439 test_login_tables_SOURCES = \
5440 src/login/test-login-tables.c
5442 test_login_tables_LDADD = \
5454 pam_systemd_la_SOURCES = \
5455 src/login/pam_systemd.sym \
5456 src/login/pam_systemd.c
5458 pam_systemd_la_CFLAGS = \
5462 pam_systemd_la_LDFLAGS = \
5468 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5470 pam_systemd_la_LIBADD = \
5474 pamlib_LTLIBRARIES = \
5477 dist_pamconf_DATA = \
5478 src/login/systemd-user
5482 nodist_systemunit_DATA += \
5483 units/systemd-logind.service
5485 dist_systemunit_DATA += \
5488 dist_systemunit_DATA_busnames += \
5489 units/org.freedesktop.login1.busname
5491 dist_dbussystemservice_DATA += \
5492 src/login/org.freedesktop.login1.service
5494 dist_dbuspolicy_DATA += \
5495 src/login/org.freedesktop.login1.conf
5497 dist_pkgsysconf_DATA += \
5498 src/login/logind.conf
5500 polkitpolicy_files += \
5501 src/login/org.freedesktop.login1.policy
5506 MULTI_USER_TARGET_WANTS += \
5507 systemd-logind.service
5509 SYSTEM_UNIT_ALIASES += \
5510 systemd-logind.service dbus-org.freedesktop.login1.service
5512 BUSNAMES_TARGET_WANTS += \
5513 org.freedesktop.login1.busname
5515 dist_udevrules_DATA += \
5516 src/login/70-uaccess.rules \
5517 src/login/70-power-switch.rules
5519 nodist_udevrules_DATA += \
5520 src/login/71-seat.rules \
5521 src/login/73-seat-late.rules
5525 polkitpolicy_in_files += \
5526 src/login/org.freedesktop.login1.policy.in
5528 gperf_gperf_sources += \
5529 src/login/logind-gperf.gperf
5532 src/login/71-seat.rules.in \
5533 src/login/73-seat-late.rules.in \
5534 units/systemd-logind.service.in
5536 # ------------------------------------------------------------------------------
5539 systemd_user_sessions_SOURCES = \
5540 src/user-sessions/user-sessions.c
5542 systemd_user_sessions_LDADD = \
5545 rootlibexec_PROGRAMS += \
5546 systemd-user-sessions
5548 nodist_systemunit_DATA += \
5549 units/systemd-user-sessions.service
5551 MULTI_USER_TARGET_WANTS += \
5552 systemd-user-sessions.service
5557 units/systemd-user-sessions.service.in
5559 # ------------------------------------------------------------------------------
5562 test/README.testsuite \
5563 test/TEST-01-BASIC \
5564 test/TEST-01-BASIC/Makefile \
5565 test/TEST-01-BASIC/test.sh \
5566 test/TEST-02-CRYPTSETUP \
5567 test/TEST-02-CRYPTSETUP/Makefile \
5568 test/TEST-02-CRYPTSETUP/test.sh \
5570 test/TEST-03-JOBS/Makefile \
5571 test/TEST-03-JOBS/test-jobs.sh \
5572 test/TEST-03-JOBS/test.sh \
5576 test/loopy2.service \
5577 test/loopy3.service \
5578 test/loopy4.service \
5579 test/loopy.service \
5580 test/loopy.service.d \
5581 test/loopy.service.d/compat.conf
5583 # ------------------------------------------------------------------------------
5584 if ENABLE_COMPAT_LIBS
5585 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5586 $(AM_V_at)$(MKDIR_P) $(dir $@)
5587 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5590 libsystemd-journal.c \
5591 libsystemd-login.c \
5592 libsystemd-id128.c \
5595 nodist_libsystemd_journal_la_SOURCES = \
5596 libsystemd-journal.c
5598 libsystemd_journal_la_SOURCES = \
5599 src/compat-libs/libsystemd-journal.sym
5601 libsystemd_journal_la_CPPFLAGS = \
5603 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5605 libsystemd_journal_la_LDFLAGS = \
5607 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5608 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5610 libsystemd_journal_la_LIBADD = \
5611 libsystemd-journal-internal.la \
5612 libsystemd-internal.la
5614 nodist_libsystemd_login_la_SOURCES = \
5617 libsystemd_login_la_SOURCES = \
5618 src/compat-libs/libsystemd-login.sym
5620 libsystemd_login_la_CPPFLAGS = \
5622 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5624 libsystemd_login_la_LDFLAGS = \
5626 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5627 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5629 libsystemd_login_la_LIBADD = \
5630 libsystemd-internal.la
5632 nodist_libsystemd_id128_la_SOURCES = \
5635 libsystemd_id128_la_SOURCES = \
5636 src/compat-libs/libsystemd-id128.sym
5638 libsystemd_id128_la_CPPFLAGS = \
5640 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5642 libsystemd_id128_la_LDFLAGS = \
5644 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5645 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5647 libsystemd_id128_la_LIBADD = \
5648 libsystemd-internal.la
5650 nodist_libsystemd_daemon_la_SOURCES = \
5653 libsystemd_daemon_la_SOURCES = \
5654 src/compat-libs/libsystemd-daemon.sym
5656 libsystemd_daemon_la_CPPFLAGS = \
5658 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5660 libsystemd_daemon_la_LDFLAGS = \
5662 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5663 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5665 libsystemd_daemon_la_LIBADD = \
5666 libsystemd-internal.la
5668 lib_LTLIBRARIES += \
5669 libsystemd-journal.la \
5670 libsystemd-login.la \
5671 libsystemd-id128.la \
5672 libsystemd-daemon.la
5674 pkgconfiglib_DATA += \
5675 src/compat-libs/libsystemd-journal.pc \
5676 src/compat-libs/libsystemd-login.pc \
5677 src/compat-libs/libsystemd-id128.pc \
5678 src/compat-libs/libsystemd-daemon.pc
5680 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5681 compat-lib-install-hook:
5682 libname=libsystemd-login.so && $(move-to-rootlibdir)
5683 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5684 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5685 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5687 compat-lib-uninstall-hook:
5688 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5689 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5690 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5691 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5693 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5694 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5698 src/compat-libs/linkwarning.h \
5699 src/compat-libs/libsystemd-journal.pc.in \
5700 src/compat-libs/libsystemd-login.pc.in \
5701 src/compat-libs/libsystemd-id128.pc.in \
5702 src/compat-libs/libsystemd-daemon.pc.in
5704 # ------------------------------------------------------------------------------
5706 '|rootlibexecdir=$(rootlibexecdir)|' \
5707 '|rootbindir=$(rootbindir)|' \
5708 '|bindir=$(bindir)|' \
5709 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5710 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5711 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5712 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5713 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5714 '|pkgdatadir=$(pkgdatadir)|' \
5715 '|systemunitdir=$(systemunitdir)|' \
5716 '|userunitdir=$(userunitdir)|' \
5717 '|systempresetdir=$(systempresetdir)|' \
5718 '|userpresetdir=$(userpresetdir)|' \
5719 '|udevhwdbdir=$(udevhwdbdir)|' \
5720 '|udevrulesdir=$(udevrulesdir)|' \
5721 '|catalogdir=$(catalogdir)|' \
5722 '|tmpfilesdir=$(tmpfilesdir)|' \
5723 '|sysusersdir=$(sysusersdir)|' \
5724 '|sysctldir=$(sysctldir)|' \
5725 '|systemgeneratordir=$(systemgeneratordir)|' \
5726 '|usergeneratordir=$(usergeneratordir)|' \
5727 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5728 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5729 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5730 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5731 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5732 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5733 '|prefix=$(prefix)|' \
5734 '|exec_prefix=$(exec_prefix)|' \
5735 '|libdir=$(libdir)|' \
5736 '|includedir=$(includedir)|' \
5737 '|VERSION=$(VERSION)|' \
5738 '|rootprefix=$(rootprefix)|' \
5739 '|udevlibexecdir=$(udevlibexecdir)|' \
5740 '|SUSHELL=$(SUSHELL)|' \
5741 '|SULOGIN=$(SULOGIN)|' \
5742 '|DEBUGTTY=$(DEBUGTTY)|' \
5745 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5746 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5747 '|MKDIR_P=$(MKDIR_P)|' \
5748 '|QUOTAON=$(QUOTAON)|' \
5749 '|QUOTACHECK=$(QUOTACHECK)|' \
5750 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5751 '|VARLOGDIR=$(varlogdir)|' \
5752 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5753 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5754 '|PYTHON=$(PYTHON)|' \
5755 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5756 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5757 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5758 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5759 '|TTY_GID=$(TTY_GID)|' \
5760 '|systemsleepdir=$(systemsleepdir)|' \
5761 '|systemshutdowndir=$(systemshutdowndir)|' \
5762 '|binfmtdir=$(binfmtdir)|' \
5763 '|modulesloaddir=$(modulesloaddir)|'
5766 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5767 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5776 sysctl.d/%: sysctl.d/%.in
5785 src/core/macros.%: src/core/macros.%.in
5788 src/%.policy.in: src/%.policy.in.in
5791 shell-completion/%: shell-completion/%.in
5802 $(AM_V_GEN)chmod +x $@
5804 src/%.c: src/%.gperf
5805 $(AM_V_at)$(MKDIR_P) $(dir $@)
5806 $(AM_V_GPERF)$(GPERF) < $< > $@
5809 $(AM_V_at)$(MKDIR_P) $(dir $@)
5810 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5812 sysusers.d/%: sysusers.d/%.m4
5813 $(AM_V_at)$(MKDIR_P) $(dir $@)
5814 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5816 tmpfiles.d/%: tmpfiles.d/%.m4
5817 $(AM_V_at)$(MKDIR_P) $(dir $@)
5818 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5822 $(AM_V_at)$(MKDIR_P) $(dir $@)
5823 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5825 units/user/%: units/user/%.m4
5826 $(AM_V_at)$(MKDIR_P) $(dir $@)
5827 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5830 nodist_polkitpolicy_DATA = \
5831 $(polkitpolicy_files) \
5832 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5836 $(polkitpolicy_in_files) \
5837 $(polkitpolicy_in_in_files)
5839 # ------------------------------------------------------------------------------
5841 man/custom-entities.ent: configure.ac
5842 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5843 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5844 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5848 man/custom-entities.ent
5853 --stringparam man.output.quietly 1 \
5854 --stringparam funcsynopsis.style ansi \
5855 --stringparam man.authors.section.enabled 0 \
5856 --stringparam man.copyright.section.enabled 0 \
5857 --stringparam systemd.version $(VERSION) \
5858 --path '$(builddir)/man:$(srcdir)/man'
5860 XSLTPROC_PROCESS_MAN = \
5861 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5863 XSLTPROC_PROCESS_HTML = \
5864 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5866 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5867 $(XSLTPROC_PROCESS_MAN)
5869 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5870 $(XSLTPROC_PROCESS_MAN)
5872 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5873 $(XSLTPROC_PROCESS_MAN)
5875 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5876 $(XSLTPROC_PROCESS_MAN)
5878 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5879 $(XSLTPROC_PROCESS_MAN)
5881 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5882 $(XSLTPROC_PROCESS_HTML)
5885 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5891 man/custom-html.xsl \
5894 # ------------------------------------------------------------------------------
5897 docs/sysvinit/README
5902 docs/sysvinit/README: docs/sysvinit/README.in
5905 docs/var-log/README: docs/var-log/README.in
5909 docs/sysvinit/README \
5914 docs/sysvinit/README.in \
5915 docs/var-log/README.in
5917 SOCKETS_TARGET_WANTS += \
5918 systemd-initctl.socket
5922 MULTI_USER_TARGET_WANTS += \
5923 systemd-update-utmp-runlevel.service
5924 GRAPHICAL_TARGET_WANTS += \
5925 systemd-update-utmp-runlevel.service
5926 RESCUE_TARGET_WANTS += \
5927 systemd-update-utmp-runlevel.service
5930 SYSINIT_TARGET_WANTS += \
5931 systemd-update-utmp.service
5934 SYSINIT_TARGET_WANTS += \
5935 systemd-update-done.service
5937 LOCAL_FS_TARGET_WANTS += \
5938 systemd-remount-fs.service \
5940 var-lib-machines.mount
5942 MULTI_USER_TARGET_WANTS += \
5944 systemd-ask-password-wall.path
5946 SYSINIT_TARGET_WANTS += \
5947 dev-hugepages.mount \
5949 sys-kernel-config.mount \
5950 sys-kernel-debug.mount \
5951 sys-fs-fuse-connections.mount \
5952 systemd-sysctl.service \
5953 systemd-ask-password-console.path
5956 SYSTEM_UNIT_ALIASES += \
5957 poweroff.target runlevel0.target \
5958 rescue.target runlevel1.target \
5959 multi-user.target runlevel2.target \
5960 multi-user.target runlevel3.target \
5961 multi-user.target runlevel4.target \
5962 graphical.target runlevel5.target \
5963 reboot.target runlevel6.target
5966 SYSTEM_UNIT_ALIASES += \
5967 graphical.target default.target \
5968 reboot.target ctrl-alt-del.target \
5969 getty@.service autovt@.service
5971 USER_UNIT_ALIASES += \
5972 $(systemunitdir)/shutdown.target shutdown.target \
5973 $(systemunitdir)/sockets.target sockets.target \
5974 $(systemunitdir)/timers.target timers.target \
5975 $(systemunitdir)/paths.target paths.target \
5976 $(systemunitdir)/bluetooth.target bluetooth.target \
5977 $(systemunitdir)/printer.target printer.target \
5978 $(systemunitdir)/sound.target sound.target \
5979 $(systemunitdir)/smartcard.target smartcard.target
5981 USER_UNIT_ALIASES += \
5982 $(systemunitdir)/busnames.target busnames.target
5984 GENERAL_ALIASES += \
5985 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5986 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5987 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5988 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5992 $(systemunitdir)/runlevel1.target.wants \
5993 $(systemunitdir)/runlevel2.target.wants \
5994 $(systemunitdir)/runlevel3.target.wants \
5995 $(systemunitdir)/runlevel4.target.wants \
5996 $(systemunitdir)/runlevel5.target.wants
6000 $(prefix)/lib/modules-load.d \
6001 $(sysconfdir)/modules-load.d \
6002 $(prefix)/lib/systemd/network \
6003 $(sysconfdir)/systemd/network \
6004 $(prefix)/lib/sysctl.d \
6005 $(sysconfdir)/sysctl.d \
6006 $(prefix)/lib/kernel/install.d \
6007 $(sysconfdir)/kernel/install.d \
6008 $(systemshutdowndir) \
6010 $(systemgeneratordir) \
6011 $(usergeneratordir) \
6014 $(pkgsysconfdir)/system \
6015 $(pkgsysconfdir)/system/multi-user.target.wants \
6016 $(pkgsysconfdir)/system/getty.target.wants \
6017 $(pkgsysconfdir)/user \
6018 $(dbussessionservicedir) \
6019 $(sysconfdir)/xdg/systemd
6021 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6023 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6025 install-data-hook: $(INSTALL_DATA_HOOKS)
6027 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6029 clean-local: $(CLEAN_LOCAL_HOOKS)
6030 rm -rf $(abs_srcdir)/install-tree
6031 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6032 $(abs_srcdir)/hwdb/iab.txt
6034 DISTCHECK_CONFIGURE_FLAGS = \
6035 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6036 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6037 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6038 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6039 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6040 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6041 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6042 --with-rootprefix=$$dc_install_base \
6043 --enable-compat-libs
6046 DISTCHECK_CONFIGURE_FLAGS += \
6047 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6048 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6050 DISTCHECK_CONFIGURE_FLAGS += \
6051 --with-sysvinit-path= \
6052 --with-sysvrcnd-path=
6056 DISTCHECK_CONFIGURE_FLAGS += \
6059 DISTCHECK_CONFIGURE_FLAGS += \
6064 # Require python when making dist
6066 .PHONY: dist-check-python dist-check-compat-libs dist-check-help
6069 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6073 dist-check-compat-libs:
6074 if !ENABLE_COMPAT_LIBS
6075 @echo "*** compat-libs must be enabled in order to make dist"
6079 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6080 for i in $(abspath $^); do \
6081 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6082 echo "$(basename $$i) --help output is too wide:"; \
6083 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6087 dist: dist-check-python dist-check-compat-libs
6091 ( cd $(top_srcdir)/hwdb && \
6092 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6093 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6094 wget -O ma-large.txt 'https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MA-L&format=txt' && \
6095 wget -O ma-medium.txt 'https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MA-M&format=txt' && \
6096 wget -O ma-small.txt 'https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MA-S&format=txt' && \
6099 .PHONY: built-sources
6100 built-sources: $(BUILT_SOURCES)
6104 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6108 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6110 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6114 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6118 scp man/*.html gardel:public/systemd-man/
6120 .PHONY: lennart-fedora
6122 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6124 .PHONY: install-tree
6126 rm -rf $(abs_srcdir)/install-tree
6127 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6128 tree $(abs_srcdir)/install-tree
6130 # Let's run all tests of the test suite, but under valgrind. Let's
6131 # exclude the one perl script we have in there
6132 .PHONY: valgrind-tests
6133 valgrind-tests: $(TESTS)
6134 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6135 if file $$f | grep -q shell; then \
6136 echo -e "$${x}Skipping non-binary $$f"; else \
6137 echo -e "$${x}Running $$f"; \
6138 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6143 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6145 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6146 $(AM_V_GEN)sort -u $^ > $@
6148 .PHONY: check-api-docs
6149 check-api-docs: exported man
6150 $(AM_V_GEN)for symbol in `cat exported` ; do \
6151 if test -f $(builddir)/man/$$symbol.html ; then \
6152 echo " Symbol $$symbol() is documented." ; \
6154 echo "‣ Symbol $$symbol() lacks documentation." ; \
6158 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6159 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6161 undefined defined: $(ALL_OBJECTS)
6162 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6163 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6164 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6170 .PHONY: check-api-unused
6171 check-api-unused: defined undefined exported
6172 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6174 .PHONY: check-includes
6175 check-includes: $(top_srcdir)/tools/check-includes.pl
6176 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6177 | xargs $(top_srcdir)/tools/check-includes.pl
6180 $(top_srcdir)/tools/check-includes.pl
6182 # Stupid test that everything purported to be exported really is
6183 define generate-sym-test
6184 $(AM_V_at)$(MKDIR_P) $(dir $@)
6185 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6186 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6187 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6188 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6189 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6190 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6191 $(AM_V_at)printf 'return 0; }\n' >> $@
6194 test-libsystemd-sym.c: \
6195 $(top_builddir)/src/libsystemd/libsystemd.sym \
6196 src/systemd/sd-journal.h \
6197 src/systemd/sd-daemon.h \
6198 src/systemd/sd-login.h \
6199 src/systemd/sd-bus.h \
6200 src/systemd/sd-utf8.h \
6201 src/systemd/sd-resolve.h \
6202 src/systemd/sd-path.h \
6203 src/systemd/sd-event.h
6204 $(generate-sym-test)
6206 test-libudev-sym.c: \
6207 src/libudev/libudev.sym \
6209 $(generate-sym-test)
6211 nodist_test_libsystemd_sym_SOURCES = \
6212 test-libsystemd-sym.c
6213 test_libsystemd_sym_LDADD = \
6216 nodist_test_libudev_sym_SOURCES = \
6218 test_libudev_sym_CFLAGS = \
6220 -Wno-deprecated-declarations
6221 test_libudev_sym_LDADD = \
6225 test-libsystemd-sym.c \
6229 test-libsystemd-sym.c \
6233 test-libsystemd-sym \
6238 cppcheck --enable=all -q $(top_srcdir)
6240 # Used to extract compile flags for YCM.
6245 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6248 tools/gdb-sd_dump_hashmaps.py
6251 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6254 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -