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 \
404 systemd-socket-proxyd \
408 rootlibexec_PROGRAMS += \
412 systemgenerator_PROGRAMS = \
413 systemd-getty-generator \
414 systemd-fstab-generator \
415 systemd-system-update-generator \
416 systemd-debug-generator
418 if ENABLE_BASH_COMPLETION
419 dist_bashcompletion_DATA = \
420 shell-completion/bash/busctl \
421 shell-completion/bash/journalctl \
422 shell-completion/bash/systemd-analyze \
423 shell-completion/bash/systemd-cat \
424 shell-completion/bash/systemd-cgls \
425 shell-completion/bash/systemd-cgtop \
426 shell-completion/bash/systemd-delta \
427 shell-completion/bash/systemd-detect-virt \
428 shell-completion/bash/systemd-nspawn \
429 shell-completion/bash/systemd-run \
430 shell-completion/bash/udevadm \
431 shell-completion/bash/kernel-install
433 nodist_bashcompletion_DATA = \
434 shell-completion/bash/systemctl
437 if ENABLE_ZSH_COMPLETION
438 dist_zshcompletion_DATA = \
439 shell-completion/zsh/_busctl \
440 shell-completion/zsh/_journalctl \
441 shell-completion/zsh/_udevadm \
442 shell-completion/zsh/_kernel-install \
443 shell-completion/zsh/_systemd-nspawn \
444 shell-completion/zsh/_systemd-analyze \
445 shell-completion/zsh/_systemd-run \
446 shell-completion/zsh/_sd_hosts_or_user_at_host \
447 shell-completion/zsh/_sd_outputmodes \
448 shell-completion/zsh/_sd_unit_files \
449 shell-completion/zsh/_systemd-delta \
450 shell-completion/zsh/_systemd
452 nodist_zshcompletion_DATA = \
453 shell-completion/zsh/_systemctl
457 shell-completion/bash/systemctl.in \
458 shell-completion/zsh/_systemctl.in
461 $(nodist_bashcompletion_DATA) \
462 $(nodist_zshcompletion_DATA)
465 sysctl.d/50-default.conf
467 dist_systemunit_DATA = \
468 units/graphical.target \
469 units/multi-user.target \
470 units/emergency.target \
471 units/sysinit.target \
477 units/local-fs.target \
478 units/local-fs-pre.target \
479 units/initrd.target \
480 units/initrd-fs.target \
481 units/initrd-root-fs.target \
482 units/remote-fs.target \
483 units/remote-fs-pre.target \
484 units/network.target \
485 units/network-pre.target \
486 units/network-online.target \
487 units/nss-lookup.target \
488 units/nss-user-lookup.target \
489 units/poweroff.target \
490 units/reboot.target \
491 units/rescue.target \
492 units/rpcbind.target \
493 units/time-sync.target \
494 units/shutdown.target \
496 units/umount.target \
497 units/sigpwr.target \
499 units/sockets.target \
500 units/timers.target \
502 units/suspend.target \
504 units/slices.target \
507 units/systemd-initctl.socket \
508 units/syslog.socket \
509 units/dev-hugepages.mount \
510 units/dev-mqueue.mount \
511 units/sys-kernel-config.mount \
512 units/sys-kernel-debug.mount \
513 units/sys-fs-fuse-connections.mount \
515 units/var-lib-machines.mount \
516 units/printer.target \
518 units/bluetooth.target \
519 units/smartcard.target \
520 units/systemd-ask-password-wall.path \
521 units/systemd-ask-password-console.path \
522 units/systemd-udevd-control.socket \
523 units/systemd-udevd-kernel.socket \
524 units/system-update.target \
525 units/initrd-switch-root.target \
526 units/machines.target
528 dist_systemunit_DATA += \
529 $(dist_systemunit_DATA_busnames)
531 dist_systemunit_DATA_busnames += \
532 units/busnames.target
534 nodist_systemunit_DATA = \
535 units/getty@.service \
536 units/serial-getty@.service \
537 units/console-shell.service \
538 units/console-getty.service \
539 units/container-getty@.service \
540 units/systemd-initctl.service \
541 units/systemd-remount-fs.service \
542 units/systemd-ask-password-wall.service \
543 units/systemd-ask-password-console.service \
544 units/systemd-sysctl.service \
545 units/emergency.service \
546 units/rescue.service \
547 units/user@.service \
548 units/systemd-suspend.service \
549 units/systemd-halt.service \
550 units/systemd-poweroff.service \
551 units/systemd-reboot.service \
552 units/systemd-kexec.service \
553 units/systemd-exit.service \
554 units/systemd-fsck@.service \
555 units/systemd-fsck-root.service \
556 units/systemd-machine-id-commit.service \
557 units/systemd-udevd.service \
558 units/systemd-udev-trigger.service \
559 units/systemd-udev-settle.service \
560 units/systemd-hwdb-update.service \
561 units/debug-shell.service \
562 units/initrd-parse-etc.service \
563 units/initrd-cleanup.service \
564 units/initrd-udevadm-cleanup-db.service \
565 units/initrd-switch-root.service \
566 units/systemd-nspawn@.service \
567 units/systemd-update-done.service
570 nodist_systemunit_DATA += \
571 units/systemd-update-utmp.service \
572 units/systemd-update-utmp-runlevel.service
575 dist_userunit_DATA = \
576 units/user/basic.target \
577 units/user/default.target \
578 units/user/exit.target
580 nodist_userunit_DATA = \
581 units/user/systemd-exit.service
583 dist_systempreset_DATA = \
584 system-preset/90-systemd.preset
587 units/getty@.service.m4 \
588 units/serial-getty@.service.m4 \
589 units/console-shell.service.m4.in \
590 units/console-getty.service.m4.in \
591 units/container-getty@.service.m4.in \
592 units/rescue.service.in \
593 units/systemd-initctl.service.in \
594 units/systemd-remount-fs.service.in \
595 units/systemd-update-utmp.service.in \
596 units/systemd-update-utmp-runlevel.service.in \
597 units/systemd-ask-password-wall.service.in \
598 units/systemd-ask-password-console.service.in \
599 units/systemd-sysctl.service.in \
600 units/emergency.service.in \
601 units/systemd-halt.service.in \
602 units/systemd-poweroff.service.in \
603 units/systemd-reboot.service.in \
604 units/systemd-kexec.service.in \
605 units/systemd-exit.service.in \
606 units/user/systemd-exit.service.in \
607 units/systemd-fsck@.service.in \
608 units/systemd-fsck-root.service.in \
609 units/systemd-machine-id-commit.service.in \
610 units/user@.service.m4.in \
611 units/debug-shell.service.in \
612 units/systemd-suspend.service.in \
613 units/quotaon.service.in \
614 units/initrd-parse-etc.service.in \
615 units/initrd-cleanup.service.in \
616 units/initrd-udevadm-cleanup-db.service.in \
617 units/initrd-switch-root.service.in \
618 units/systemd-nspawn@.service.in \
619 units/systemd-update-done.service.in
622 nodist_systemunit_DATA += \
623 units/rc-local.service \
624 units/halt-local.service
626 systemgenerator_PROGRAMS += \
627 systemd-sysv-generator \
628 systemd-rc-local-generator
632 src/systemctl/systemd-sysv-install.SKELETON \
633 units/rc-local.service.in \
634 units/halt-local.service.in
636 # automake is broken and can't handle files with a dash in front
637 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
639 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
641 units-uninstall-hook:
642 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
644 INSTALL_DATA_HOOKS += units-install-hook
645 UNINSTALL_DATA_HOOKS += units-uninstall-hook
654 src/libsystemd/sd-bus/PORTING-DBUS1 \
655 src/libsystemd/sd-bus/DIFFERENCES \
656 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
667 @INTLTOOL_POLICY_RULE@
669 # ------------------------------------------------------------------------------
674 include Makefile-man.am
676 .PHONY: man update-man-list
677 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
680 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
682 ${XML_FILES:.xml=.html}
684 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
701 $(AM_V_at)$(MKDIR_P) $(dir $@)
702 $(AM_V_LN)$(LN_S) -f ../../man $@
711 man/index.html: man/systemd.index.html
712 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
720 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
721 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
722 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
724 # This target should only be run manually. It recreates Makefile-man.am
725 # file in the source directory based on all man/*.xml files. Run it after
726 # adding, removing, or changing the conditional in a man page.
727 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
728 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
729 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
730 @echo "Makefile-man.am has been regenerated"
732 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
733 $(AM_V_at)$(MKDIR_P) $(dir $@)
734 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
736 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
737 $(AM_V_at)$(MKDIR_P) $(dir $@)
738 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
741 man/systemd.index.xml \
742 man/systemd.directives.xml
745 tools/make-man-rules.py
752 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
753 tools/make-man-index.py \
754 tools/make-directive-index.py \
755 tools/xml_helper.py \
756 man/glib-event-glue.c
758 # ------------------------------------------------------------------------------
759 noinst_LTLIBRARIES += \
762 libbasic_la_SOURCES = \
763 src/basic/missing.h \
764 src/basic/capability.c \
765 src/basic/capability.h \
766 src/basic/conf-files.c \
767 src/basic/conf-files.h \
768 src/basic/hostname-util.h \
769 src/basic/hostname-util.c \
770 src/basic/unit-name.c \
771 src/basic/unit-name.h \
773 src/basic/securebits.h \
774 src/basic/special.h \
776 src/basic/unaligned.h \
779 src/basic/sparse-endian.h \
783 src/basic/cpu-set-util.c \
784 src/basic/cpu-set-util.h \
785 src/basic/lockfile-util.c \
786 src/basic/lockfile-util.h \
787 src/basic/path-util.c \
788 src/basic/path-util.h \
789 src/basic/time-util.c \
790 src/basic/time-util.h \
791 src/basic/locale-util.c \
792 src/basic/locale-util.h \
793 src/basic/signal-util.c \
794 src/basic/signal-util.h \
795 src/basic/mempool.c \
796 src/basic/mempool.h \
797 src/basic/hashmap.c \
798 src/basic/hashmap.h \
799 src/basic/siphash24.c \
800 src/basic/siphash24.h \
802 src/basic/ordered-set.h \
811 src/basic/env-util.c \
812 src/basic/env-util.h \
815 src/basic/strxcpyx.c \
816 src/basic/strxcpyx.h \
819 src/basic/bus-label.c \
820 src/basic/bus-label.h \
821 src/basic/ratelimit.h \
822 src/basic/ratelimit.c \
823 src/basic/exit-status.c \
824 src/basic/exit-status.h \
827 src/basic/smack-util.c \
828 src/basic/smack-util.h \
829 src/basic/device-nodes.c \
830 src/basic/device-nodes.h \
833 src/basic/gunicode.c \
834 src/basic/gunicode.h \
835 src/basic/socket-util.c \
836 src/basic/socket-util.h \
837 src/basic/in-addr-util.c \
838 src/basic/in-addr-util.h \
839 src/basic/ether-addr-util.h \
840 src/basic/replace-var.c \
841 src/basic/replace-var.h \
842 src/basic/clock-util.c \
843 src/basic/clock-util.h \
844 src/basic/calendarspec.c \
845 src/basic/calendarspec.h \
848 src/basic/MurmurHash2.c \
849 src/basic/MurmurHash2.h \
852 src/basic/cgroup-util.c \
853 src/basic/cgroup-util.h \
854 src/basic/errno-list.c \
855 src/basic/errno-list.h \
856 src/basic/af-list.c \
857 src/basic/af-list.h \
858 src/basic/arphrd-list.c \
859 src/basic/arphrd-list.h \
860 src/basic/terminal-util.c \
861 src/basic/terminal-util.h \
862 src/basic/login-util.h \
863 src/basic/login-util.c \
864 src/basic/cap-list.c \
865 src/basic/cap-list.h \
872 src/basic/barrier.c \
873 src/basic/barrier.h \
876 src/basic/memfd-util.c \
877 src/basic/memfd-util.h \
878 src/basic/process-util.c \
879 src/basic/process-util.h \
880 src/basic/random-util.c \
881 src/basic/random-util.h \
887 src/basic/socket-label.c \
890 src/basic/btrfs-util.c \
891 src/basic/btrfs-util.h \
892 src/basic/btrfs-ctree.h \
893 src/basic/selinux-util.c \
894 src/basic/selinux-util.h \
895 src/basic/mkdir-label.c \
896 src/basic/fileio-label.c \
897 src/basic/fileio-label.h \
903 nodist_libbasic_la_SOURCES = \
904 src/basic/errno-from-name.h \
905 src/basic/errno-to-name.h \
906 src/basic/af-from-name.h \
907 src/basic/af-to-name.h \
908 src/basic/arphrd-from-name.h \
909 src/basic/arphrd-to-name.h \
910 src/basic/cap-from-name.h \
911 src/basic/cap-to-name.h
913 libbasic_la_CFLAGS = \
919 libbasic_la_LIBADD = \
926 # -----------------------------------------------------------------------------
927 noinst_LTLIBRARIES += \
930 libshared_la_SOURCES = \
931 src/shared/output-mode.h \
933 src/shared/udev-util.h \
934 src/shared/linux/auto_dev-ioctl.h \
935 src/shared/initreq.h \
936 src/shared/dns-domain.c \
937 src/shared/dns-domain.h \
938 src/shared/architecture.c \
939 src/shared/architecture.h \
940 src/shared/efivars.c \
941 src/shared/efivars.h \
942 src/shared/formats-util.h \
943 src/shared/fstab-util.c \
944 src/shared/fstab-util.h \
945 src/shared/sleep-config.c \
946 src/shared/sleep-config.h \
947 src/shared/conf-parser.c \
948 src/shared/conf-parser.h \
951 src/shared/spawn-polkit-agent.c \
952 src/shared/spawn-polkit-agent.h \
953 src/shared/apparmor-util.c \
954 src/shared/apparmor-util.h \
955 src/shared/ima-util.c \
956 src/shared/ima-util.h \
957 src/shared/ptyfwd.c \
958 src/shared/ptyfwd.h \
959 src/shared/base-filesystem.c \
960 src/shared/base-filesystem.h \
961 src/shared/uid-range.c \
962 src/shared/uid-range.h \
963 src/shared/nss-util.h \
964 src/shared/install.c \
965 src/shared/install.h \
966 src/shared/install-printf.c \
967 src/shared/install-printf.h \
968 src/shared/path-lookup.c \
969 src/shared/path-lookup.h \
970 src/shared/specifier.c \
971 src/shared/specifier.h \
972 src/shared/dev-setup.c \
973 src/shared/dev-setup.h \
974 src/shared/dropin.c \
975 src/shared/dropin.h \
976 src/shared/condition.c \
977 src/shared/condition.h \
978 src/shared/clean-ipc.c \
979 src/shared/clean-ipc.h \
980 src/shared/generator.h \
981 src/shared/generator.c \
982 src/shared/acpi-fpdt.h \
983 src/shared/acpi-fpdt.c \
984 src/shared/boot-timestamps.h \
985 src/shared/boot-timestamps.c \
986 src/shared/cgroup-show.c \
987 src/shared/cgroup-show.h \
988 src/shared/utmp-wtmp.h \
989 src/shared/watchdog.c \
990 src/shared/watchdog.h \
991 src/shared/spawn-ask-password-agent.c \
992 src/shared/spawn-ask-password-agent.h \
993 src/shared/ask-password-api.c \
994 src/shared/ask-password-api.h \
995 src/shared/switch-root.h \
996 src/shared/switch-root.c \
997 src/shared/import-util.c \
998 src/shared/import-util.h \
999 src/shared/sysctl-util.c \
1000 src/shared/sysctl-util.h \
1001 src/shared/bus-util.c \
1002 src/shared/bus-util.h \
1003 src/shared/logs-show.c \
1004 src/shared/logs-show.h \
1005 src/shared/machine-image.c \
1006 src/shared/machine-image.h \
1007 src/shared/machine-pool.c \
1008 src/shared/machine-pool.h
1011 libshared_la_SOURCES += \
1012 src/shared/utmp-wtmp.c
1016 libshared_la_SOURCES += \
1017 src/shared/seccomp-util.h \
1018 src/shared/seccomp-util.c
1022 libshared_la_SOURCES += \
1023 src/shared/acl-util.c \
1024 src/shared/acl-util.h
1027 libshared_la_CFLAGS = \
1033 libshared_la_LIBADD = \
1034 libsystemd-internal.la \
1035 libsystemd-journal-internal.la \
1036 libudev-internal.la \
1041 # -----------------------------------------------------------------------------
1043 noinst_LTLIBRARIES += \
1046 libfirewall_la_SOURCES = \
1047 src/shared/firewall-util.h \
1048 src/shared/firewall-util.c
1050 libfirewall_la_CFLAGS = \
1054 libfirewall_la_LIBADD = \
1058 # -----------------------------------------------------------------------------
1060 dist_systemunit_DATA += \
1061 units/ldconfig.service
1063 SYSINIT_TARGET_WANTS += \
1067 # ------------------------------------------------------------------------------
1068 noinst_LTLIBRARIES += \
1071 libcore_la_SOURCES = \
1074 src/core/unit-printf.c \
1075 src/core/unit-printf.h \
1078 src/core/manager.c \
1079 src/core/manager.h \
1080 src/core/transaction.c \
1081 src/core/transaction.h \
1082 src/core/load-fragment.c \
1083 src/core/load-fragment.h \
1084 src/core/service.c \
1085 src/core/service.h \
1088 src/core/busname.c \
1089 src/core/busname.h \
1090 src/core/bus-endpoint.c \
1091 src/core/bus-endpoint.h \
1092 src/core/bus-policy.c \
1093 src/core/bus-policy.h \
1096 src/core/snapshot.c \
1097 src/core/snapshot.h \
1102 src/core/automount.c \
1103 src/core/automount.h \
1114 src/core/load-dropin.c \
1115 src/core/load-dropin.h \
1116 src/core/execute.c \
1117 src/core/execute.h \
1122 src/core/dbus-manager.c \
1123 src/core/dbus-manager.h \
1124 src/core/dbus-unit.c \
1125 src/core/dbus-unit.h \
1126 src/core/dbus-job.c \
1127 src/core/dbus-job.h \
1128 src/core/dbus-service.c \
1129 src/core/dbus-service.h \
1130 src/core/dbus-socket.c \
1131 src/core/dbus-socket.h \
1132 src/core/dbus-busname.c \
1133 src/core/dbus-busname.h \
1134 src/core/dbus-target.c \
1135 src/core/dbus-target.h \
1136 src/core/dbus-snapshot.c \
1137 src/core/dbus-snapshot.h \
1138 src/core/dbus-device.c \
1139 src/core/dbus-device.h \
1140 src/core/dbus-mount.c \
1141 src/core/dbus-mount.h \
1142 src/core/dbus-automount.c \
1143 src/core/dbus-automount.h \
1144 src/core/dbus-swap.c \
1145 src/core/dbus-swap.h \
1146 src/core/dbus-timer.c \
1147 src/core/dbus-timer.h \
1148 src/core/dbus-path.c \
1149 src/core/dbus-path.h \
1150 src/core/dbus-slice.c \
1151 src/core/dbus-slice.h \
1152 src/core/dbus-scope.c \
1153 src/core/dbus-scope.h \
1154 src/core/dbus-execute.c \
1155 src/core/dbus-execute.h \
1156 src/core/dbus-kill.c \
1157 src/core/dbus-kill.h \
1158 src/core/dbus-cgroup.c \
1159 src/core/dbus-cgroup.h \
1162 src/core/selinux-access.c \
1163 src/core/selinux-access.h \
1164 src/core/selinux-setup.c \
1165 src/core/selinux-setup.h \
1166 src/core/smack-setup.c \
1167 src/core/smack-setup.h \
1168 src/core/ima-setup.c \
1169 src/core/ima-setup.h \
1170 src/core/locale-setup.h \
1171 src/core/locale-setup.c \
1172 src/core/hostname-setup.c \
1173 src/core/hostname-setup.h \
1174 src/core/machine-id-setup.c \
1175 src/core/machine-id-setup.h \
1176 src/core/mount-setup.c \
1177 src/core/mount-setup.h \
1178 src/core/kmod-setup.c \
1179 src/core/kmod-setup.h \
1180 src/core/loopback-setup.h \
1181 src/core/loopback-setup.c \
1182 src/core/namespace.c \
1183 src/core/namespace.h \
1184 src/core/killall.h \
1185 src/core/killall.c \
1186 src/core/audit-fd.c \
1187 src/core/audit-fd.h \
1188 src/core/show-status.c \
1189 src/core/show-status.h \
1190 src/core/failure-action.c \
1191 src/core/failure-action.h
1193 nodist_libcore_la_SOURCES = \
1194 src/core/load-fragment-gperf.c \
1195 src/core/load-fragment-gperf-nulstr.c
1197 libcore_la_CFLAGS = \
1202 $(APPARMOR_CFLAGS) \
1206 libcore_la_LIBADD = \
1214 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1215 $(AM_V_at)$(MKDIR_P) $(dir $@)
1216 $(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 ";" }' < $< > $@
1218 gperf_gperf_m4_sources = \
1219 src/core/load-fragment-gperf.gperf.m4
1221 gperf_txt_sources = \
1222 src/basic/errno-list.txt \
1223 src/basic/af-list.txt \
1224 src/basic/arphrd-list.txt \
1225 src/basic/cap-list.txt
1228 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1229 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1230 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1231 $(gperf_txt_sources:-list.txt=-from-name.h) \
1232 $(gperf_txt_sources:-list.txt=-to-name.h)
1235 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1237 $(gperf_txt_sources)
1240 $(gperf_gperf_m4_sources) \
1241 $(gperf_gperf_sources)
1244 $(gperf_txt_sources)
1246 %-from-name.gperf: %-list.txt
1247 $(AM_V_at)$(MKDIR_P) $(dir $@)
1248 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1250 %-from-name.h: %-from-name.gperf
1251 $(AM_V_at)$(MKDIR_P) $(dir $@)
1252 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1255 src/basic/errno-list.txt:
1256 $(AM_V_at)$(MKDIR_P) $(dir $@)
1257 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1259 src/basic/errno-to-name.h: src/basic/errno-list.txt
1260 $(AM_V_at)$(MKDIR_P) $(dir $@)
1261 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1264 src/basic/af-list.txt:
1265 $(AM_V_at)$(MKDIR_P) $(dir $@)
1266 $(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; }' >$@
1268 src/basic/af-to-name.h: src/basic/af-list.txt
1269 $(AM_V_at)$(MKDIR_P) $(dir $@)
1270 $(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 "};"}' <$< >$@
1273 src/basic/arphrd-list.txt:
1274 $(AM_V_at)$(MKDIR_P) $(dir $@)
1275 $(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_//' >$@
1277 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1278 $(AM_V_at)$(MKDIR_P) $(dir $@)
1279 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1281 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1282 $(AM_V_at)$(MKDIR_P) $(dir $@)
1283 $(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 }' <$< >$@
1286 src/basic/cap-list.txt:
1287 $(AM_V_at)$(MKDIR_P) $(dir $@)
1288 $(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 >$@
1290 src/basic/cap-to-name.h: src/basic/cap-list.txt
1291 $(AM_V_at)$(MKDIR_P) $(dir $@)
1292 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1294 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1295 $(AM_V_at)$(MKDIR_P) $(dir $@)
1296 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1298 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1299 $(AM_V_at)$(MKDIR_P) $(dir $@)
1300 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1302 audit_list_includes = -include linux/audit.h -include missing.h
1304 audit_list_includes += -include libaudit.h
1307 src/journal/audit_type-list.txt:
1308 $(AM_V_at)$(MKDIR_P) $(dir $@)
1309 $(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 >$@
1311 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1312 $(AM_V_at)$(MKDIR_P) $(dir $@)
1313 $(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" }' <$< >$@
1316 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1317 $(AM_V_at)$(MKDIR_P) $(dir $@)
1318 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1320 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1321 $(AM_V_at)$(MKDIR_P) $(dir $@)
1322 $(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" }' <$< >$@
1324 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1325 $(AM_V_at)$(MKDIR_P) $(dir $@)
1326 $(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 }' <$< >$@
1328 # ------------------------------------------------------------------------------
1340 dist_pkgsysconf_DATA += \
1341 src/core/system.conf \
1344 dist_dbuspolicy_DATA += \
1345 src/core/org.freedesktop.systemd1.conf
1347 dist_dbussystemservice_DATA += \
1348 src/core/org.freedesktop.systemd1.service
1350 polkitpolicy_in_in_files += \
1351 src/core/org.freedesktop.systemd1.policy.in.in
1353 pkgconfigdata_DATA += \
1356 nodist_rpmmacros_DATA = \
1357 src/core/macros.systemd
1360 src/core/systemd.pc.in \
1361 src/core/macros.systemd.in
1363 # ------------------------------------------------------------------------------
1405 test-hostname-util \
1407 test-terminal-util \
1417 test-strip-tab-ansi \
1458 test/daughter.service \
1460 test/end.service.in \
1463 test/grandchild.service \
1465 test/hello-after-sleep.target \
1466 test/hello.service \
1468 test/parent-deep.slice \
1471 test/sched_idle_bad.service \
1472 test/sched_idle_ok.service \
1473 test/sched_rr_bad.service \
1474 test/sched_rr_change.service \
1475 test/sched_rr_ok.service \
1476 test/shutdown.target \
1477 test/sleep.service \
1478 test/sockets.target \
1480 test/sysinit.target \
1481 test/testsuite.target \
1482 test/timers.target \
1483 test/unstoppable.service \
1484 test/path-changed.service \
1485 test/path-directorynotempty.service \
1486 test/path-existsglob.service \
1487 test/path-exists.service \
1488 test/path-makedirectory.service \
1489 test/path-modified.service \
1490 test/path-mycustomunit.service \
1491 test/path-service.service \
1492 test/path-changed.path \
1493 test/path-directorynotempty.path \
1494 test/path-existsglob.path \
1495 test/path-exists.path \
1496 test/path-makedirectory.path \
1497 test/path-modified.path \
1498 test/path-unit.path \
1499 test/exec-environment-empty.service \
1500 test/exec-environment-multiple.service \
1501 test/exec-environment.service \
1502 test/exec-group.service \
1503 test/exec-ignoresigpipe-no.service \
1504 test/exec-ignoresigpipe-yes.service \
1505 test/exec-personality-x86-64.service \
1506 test/exec-personality-x86.service \
1507 test/exec-personality-s390.service \
1508 test/exec-privatedevices-no.service \
1509 test/exec-privatedevices-yes.service \
1510 test/exec-privatetmp-no.service \
1511 test/exec-privatetmp-yes.service \
1512 test/exec-systemcallerrornumber.service \
1513 test/exec-systemcallfilter-failing2.service \
1514 test/exec-systemcallfilter-failing.service \
1515 test/exec-systemcallfilter-not-failing2.service \
1516 test/exec-systemcallfilter-not-failing.service \
1517 test/exec-user.service \
1518 test/exec-workingdirectory.service \
1519 test/exec-umask-0177.service \
1520 test/exec-umask-default.service \
1521 test/bus-policy/hello.conf \
1522 test/bus-policy/methods.conf \
1523 test/bus-policy/ownerships.conf \
1524 test/bus-policy/signals.conf \
1525 test/bus-policy/check-own-rules.conf \
1526 test/bus-policy/many-rules.conf \
1527 test/bus-policy/test.conf
1531 src/test/test-helper.h
1533 test_device_nodes_SOURCES = \
1534 src/test/test-device-nodes.c
1536 test_device_nodes_LDADD = \
1539 test_engine_SOURCES = \
1540 src/test/test-engine.c
1542 test_engine_CFLAGS = \
1547 test_engine_LDADD = \
1550 test_job_type_SOURCES = \
1551 src/test/test-job-type.c
1553 test_job_type_CFLAGS = \
1558 test_job_type_LDADD = \
1571 test_loopback_SOURCES = \
1572 src/test/test-loopback.c
1574 test_loopback_LDADD = \
1577 test_hostname_SOURCES = \
1578 src/test/test-hostname.c
1580 test_hostname_LDADD = \
1583 test_dns_domain_SOURCES = \
1584 src/test/test-dns-domain.c
1586 test_dns_domain_LDADD = \
1587 libsystemd-network.la \
1594 test_boot_timestamp_SOURCES = \
1595 src/test/test-boot-timestamps.c
1597 test_boot_timestamp_LDADD = \
1601 test_unit_name_SOURCES = \
1602 src/test/test-unit-name.c
1604 test_unit_name_CFLAGS = \
1609 test_unit_name_LDADD = \
1612 test_unit_file_SOURCES = \
1613 src/test/test-unit-file.c
1615 test_unit_file_CFLAGS = \
1620 test_unit_file_LDADD = \
1623 test_utf8_SOURCES = \
1624 src/test/test-utf8.c
1629 test_capability_SOURCES = \
1630 src/test/test-capability.c
1632 test_capability_LDADD = \
1635 test_async_SOURCES = \
1636 src/test/test-async.c
1638 test_async_LDADD = \
1641 test_locale_util_SOURCES = \
1642 src/test/test-locale-util.c
1644 test_locale_util_LDADD = \
1647 test_copy_SOURCES = \
1648 src/test/test-copy.c
1653 test_sigbus_SOURCES = \
1654 src/test/test-sigbus.c
1656 test_sigbus_LDADD = \
1659 test_condition_SOURCES = \
1660 src/test/test-condition.c
1662 test_condition_LDADD = \
1665 test_fdset_SOURCES = \
1666 src/test/test-fdset.c
1668 test_fdset_LDADD = \
1671 test_fstab_util_SOURCES = \
1672 src/test/test-fstab-util.c
1674 test_fstab_util_LDADD = \
1677 test_ratelimit_SOURCES = \
1678 src/test/test-ratelimit.c
1680 test_ratelimit_LDADD = \
1683 test_util_SOURCES = \
1684 src/test/test-util.c
1689 test_hostname_util_SOURCES = \
1690 src/test/test-hostname-util.c
1692 test_hostname_util_LDADD = \
1695 test_process_util_SOURCES = \
1696 src/test/test-process-util.c
1698 test_process_util_LDADD = \
1701 test_terminal_util_SOURCES = \
1702 src/test/test-terminal-util.c
1704 test_terminal_util_LDADD = \
1707 test_path_lookup_SOURCES = \
1708 src/test/test-path-lookup.c
1710 test_path_lookup_LDADD = \
1713 test_uid_range_SOURCES = \
1714 src/test/test-uid-range.c
1716 test_uid_range_LDADD = \
1719 test_cap_list_SOURCES = \
1720 src/test/test-cap-list.c
1722 test_cap_list_LDADD = \
1725 test_socket_util_SOURCES = \
1726 src/test/test-socket-util.c
1728 test_socket_util_LDADD = \
1731 test_barrier_SOURCES = \
1732 src/test/test-barrier.c
1734 test_barrier_LDADD = \
1737 test_tmpfiles_SOURCES = \
1738 src/test/test-tmpfiles.c
1740 test_tmpfiles_LDADD = \
1743 test_namespace_SOURCES = \
1744 src/test/test-namespace.c
1746 test_verbs_SOURCES = \
1747 src/test/test-verbs.c
1749 test_verbs_LDADD = \
1752 test_namespace_LDADD = \
1756 src/test/test-hashmap-ordered.c
1758 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1759 $(AM_V_at)$(MKDIR_P) $(dir $@)
1760 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1761 { if (!match($$0, "^#include")) \
1762 gsub(/hashmap/, "ordered_hashmap"); \
1763 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1764 gsub(/Hashmap/, "OrderedHashmap"); \
1767 nodist_test_hashmap_SOURCES = \
1768 src/test/test-hashmap-ordered.c
1770 test_hashmap_SOURCES = \
1771 src/test/test-hashmap.c \
1772 src/test/test-hashmap-plain.c
1774 test_hashmap_LDADD = \
1777 test_set_SOURCES = \
1783 test_bitmap_SOURCES = \
1784 src/test/test-bitmap.c
1786 test_bitmap_LDADD = \
1789 test_xml_SOURCES = \
1795 test_json_SOURCES = \
1796 src/test/test-json.c
1801 test_list_SOURCES = \
1802 src/test/test-list.c
1807 test_unaligned_LDADD = \
1810 test_unaligned_SOURCES = \
1811 src/test/test-unaligned.c
1813 test_tables_SOURCES = \
1814 src/test/test-tables.c \
1815 src/shared/test-tables.h \
1816 src/bus-proxyd/bus-xml-policy.c \
1817 src/bus-proxyd/bus-xml-policy.h \
1818 src/journal/journald-server.c \
1819 src/journal/journald-server.h
1821 test_tables_CPPFLAGS = \
1823 -I$(top_srcdir)/src/bus-proxyd
1825 test_tables_CFLAGS = \
1830 test_tables_LDADD = \
1831 libjournal-core.la \
1835 test_prioq_SOURCES = \
1836 src/test/test-prioq.c
1838 test_prioq_LDADD = \
1841 test_fileio_SOURCES = \
1842 src/test/test-fileio.c
1844 test_fileio_LDADD = \
1847 test_time_SOURCES = \
1848 src/test/test-time.c
1853 test_architecture_SOURCES = \
1854 src/test/test-architecture.c
1856 test_architecture_LDADD = \
1859 test_log_SOURCES = \
1865 test_ipcrm_SOURCES = \
1866 src/test/test-ipcrm.c
1868 test_ipcrm_LDADD = \
1871 test_btrfs_SOURCES = \
1872 src/test/test-btrfs.c
1874 test_btrfs_LDADD = \
1878 test_firewall_util_SOURCES = \
1879 src/test/test-firewall-util.c
1881 test_firewall_util_CFLAGS = \
1885 test_firewall_util_LDADD = \
1891 test_netlink_manual_SOURCES = \
1892 src/test/test-netlink-manual.c
1894 test_netlink_manual_CFLAGS = \
1898 test_netlink_manual_LDADD = \
1902 test_ellipsize_SOURCES = \
1903 src/test/test-ellipsize.c
1905 test_ellipsize_LDADD = \
1908 test_date_SOURCES = \
1909 src/test/test-date.c
1914 test_sleep_SOURCES = \
1915 src/test/test-sleep.c
1917 test_sleep_LDADD = \
1920 test_replace_var_SOURCES = \
1921 src/test/test-replace-var.c
1923 test_replace_var_LDADD = \
1926 test_calendarspec_SOURCES = \
1927 src/test/test-calendarspec.c
1929 test_calendarspec_LDADD = \
1932 test_strip_tab_ansi_SOURCES = \
1933 src/test/test-strip-tab-ansi.c
1935 test_strip_tab_ansi_LDADD = \
1938 test_daemon_SOURCES = \
1939 src/test/test-daemon.c
1941 test_daemon_LDADD = \
1944 test_cgroup_SOURCES = \
1945 src/test/test-cgroup.c
1947 test_cgroup_LDADD = \
1950 test_cgroup_mask_SOURCES = \
1951 src/test/test-cgroup-mask.c
1953 test_cgroup_mask_CPPFLAGS = \
1957 test_cgroup_mask_CFLAGS = \
1961 test_cgroup_mask_LDADD = \
1964 test_cgroup_util_SOURCES = \
1965 src/test/test-cgroup-util.c
1967 test_cgroup_util_LDADD = \
1970 test_env_replace_SOURCES = \
1971 src/test/test-env-replace.c
1973 test_env_replace_LDADD = \
1976 test_strbuf_SOURCES = \
1977 src/test/test-strbuf.c
1979 test_strbuf_LDADD = \
1982 test_strv_SOURCES = \
1983 src/test/test-strv.c
1988 test_path_util_SOURCES = \
1989 src/test/test-path-util.c
1991 test_path_util_LDADD = \
1994 test_path_SOURCES = \
1995 src/test/test-path.c
1997 test_path_CFLAGS = \
2004 test_execute_SOURCES = \
2005 src/test/test-execute.c
2007 test_execute_CFLAGS = \
2011 test_execute_LDADD = \
2014 test_siphash24_SOURCES = \
2015 src/test/test-siphash24.c
2017 test_siphash24_LDADD = \
2020 test_strxcpyx_SOURCES = \
2021 src/test/test-strxcpyx.c
2023 test_strxcpyx_LDADD = \
2026 test_install_SOURCES = \
2027 src/test/test-install.c
2029 test_install_LDADD = \
2032 test_watchdog_SOURCES = \
2033 src/test/test-watchdog.c
2035 test_watchdog_LDADD = \
2038 test_sched_prio_SOURCES = \
2039 src/test/test-sched-prio.c
2041 test_sched_prio_CPPFLAGS = \
2045 test_sched_prio_CFLAGS = \
2049 test_sched_prio_LDADD = \
2052 test_conf_files_SOURCES = \
2053 src/test/test-conf-files.c
2055 test_conf_files_LDADD = \
2058 test_conf_parser_SOURCES = \
2059 src/test/test-conf-parser.c
2061 test_conf_parser_LDADD = \
2064 test_bus_policy_SOURCES = \
2065 src/bus-proxyd/test-bus-xml-policy.c
2067 test_bus_policy_LDADD = \
2068 libbus-proxy-core.la \
2071 test_af_list_SOURCES = \
2072 src/test/test-af-list.c
2074 test_af_list_LDADD = \
2077 test_arphrd_list_SOURCES = \
2078 src/test/test-arphrd-list.c
2080 test_arphrd_list_LDADD = \
2083 # ------------------------------------------------------------------------------
2084 ## .PHONY so it always rebuilds it
2085 .PHONY: coverage lcov-run lcov-report coverage-sync
2087 # run lcov from scratch, always
2092 coverage_dir = coverage
2093 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2096 # reset run coverage tests
2098 @rm -rf $(coverage_dir)
2099 lcov $(coverage_opts) --zerocounters
2102 # generate report based on current coverage data
2104 $(MKDIR_P) $(coverage_dir)
2105 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2106 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2107 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2108 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2109 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2111 # lcov doesn't work properly with vpath builds, make sure that bad
2112 # output is not uploaded by mistake.
2113 coverage-sync: coverage
2114 test "$(builddir)" = "$(srcdir)"
2115 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2118 lcov-run lcov-report:
2119 echo "Need to reconfigure with --enable-coverage"
2122 # ------------------------------------------------------------------------------
2123 systemd_analyze_SOURCES = \
2124 src/analyze/analyze.c \
2125 src/analyze/analyze-verify.c \
2126 src/analyze/analyze-verify.h
2128 systemd_analyze_CFLAGS = \
2133 systemd_analyze_LDADD = \
2136 # ------------------------------------------------------------------------------
2137 systemd_initctl_SOURCES = \
2138 src/initctl/initctl.c
2140 systemd_initctl_LDADD = \
2143 # ------------------------------------------------------------------------------
2144 systemd_update_utmp_SOURCES = \
2145 src/update-utmp/update-utmp.c
2147 systemd_update_utmp_CFLAGS = \
2151 systemd_update_utmp_LDADD = \
2155 # ------------------------------------------------------------------------------
2156 systemd_update_done_SOURCES = \
2157 src/update-done/update-done.c
2159 systemd_update_done_LDADD = \
2162 # ------------------------------------------------------------------------------
2163 systemd_shutdown_SOURCES = \
2166 src/core/shutdown.c \
2167 src/core/mount-setup.c \
2168 src/core/mount-setup.h \
2169 src/core/killall.h \
2172 systemd_shutdown_LDADD = \
2175 # ------------------------------------------------------------------------------
2177 systemd_modules_load_SOURCES = \
2178 src/modules-load/modules-load.c
2180 systemd_modules_load_CFLAGS = \
2184 systemd_modules_load_LDADD = \
2188 rootlibexec_PROGRAMS += \
2189 systemd-modules-load
2191 nodist_systemunit_DATA += \
2192 units/systemd-modules-load.service
2194 SYSINIT_TARGET_WANTS += \
2195 systemd-modules-load.service
2198 nodist_systemunit_DATA += \
2199 units/kmod-static-nodes.service
2201 SYSINIT_TARGET_WANTS += \
2202 kmod-static-nodes.service
2207 units/systemd-modules-load.service.in \
2208 units/kmod-static-nodes.service.in
2210 # ------------------------------------------------------------------------------
2212 systemd_tmpfiles_SOURCES = \
2213 src/tmpfiles/tmpfiles.c
2215 systemd_tmpfiles_LDADD = \
2218 rootbin_PROGRAMS += \
2221 dist_systemunit_DATA += \
2222 units/systemd-tmpfiles-clean.timer
2224 nodist_systemunit_DATA += \
2225 units/systemd-tmpfiles-setup-dev.service \
2226 units/systemd-tmpfiles-setup.service \
2227 units/systemd-tmpfiles-clean.service
2229 nodist_tmpfiles_DATA = \
2230 tmpfiles.d/systemd.conf \
2233 dist_tmpfiles_DATA = \
2234 tmpfiles.d/systemd-nologin.conf \
2235 tmpfiles.d/tmp.conf \
2236 tmpfiles.d/x11.conf \
2237 tmpfiles.d/var.conf \
2238 tmpfiles.d/home.conf \
2239 tmpfiles.d/systemd-nspawn.conf \
2240 tmpfiles.d/journal-nocow.conf
2243 dist_tmpfiles_DATA += \
2244 tmpfiles.d/legacy.conf
2247 SYSINIT_TARGET_WANTS += \
2248 systemd-tmpfiles-setup-dev.service \
2249 systemd-tmpfiles-setup.service
2251 if ENABLE_ZSH_COMPLETION
2252 dist_zshcompletion_DATA += \
2253 shell-completion/zsh/_systemd-tmpfiles
2256 TIMERS_TARGET_WANTS += \
2257 systemd-tmpfiles-clean.timer
2261 $(sysconfdir)/tmpfiles.d
2265 tmpfiles.d/systemd.conf.m4 \
2266 tmpfiles.d/etc.conf.m4 \
2267 units/systemd-tmpfiles-setup-dev.service.in \
2268 units/systemd-tmpfiles-setup.service.in \
2269 units/systemd-tmpfiles-clean.service.in
2271 # ------------------------------------------------------------------------------
2273 systemd_sysusers_SOURCES = \
2274 src/sysusers/sysusers.c
2276 systemd_sysusers_LDADD = \
2279 rootbin_PROGRAMS += \
2282 nodist_systemunit_DATA += \
2283 units/systemd-sysusers.service
2285 SYSINIT_TARGET_WANTS += \
2286 systemd-sysusers.service
2288 nodist_sysusers_DATA = \
2289 sysusers.d/systemd.conf \
2290 sysusers.d/basic.conf
2297 units/systemd-sysusers.service.in \
2298 sysusers.d/systemd.conf.m4 \
2299 sysusers.d/basic.conf.in
2301 # ------------------------------------------------------------------------------
2302 dist_factory_etc_DATA = \
2303 factory/etc/nsswitch.conf
2306 dist_factory_pam_DATA = \
2307 factory/etc/pam.d/system-auth \
2308 factory/etc/pam.d/other
2311 # ------------------------------------------------------------------------------
2313 systemd_firstboot_SOURCES = \
2314 src/firstboot/firstboot.c
2316 systemd_firstboot_LDADD = \
2320 rootbin_PROGRAMS += \
2323 nodist_systemunit_DATA += \
2324 units/systemd-firstboot.service
2326 SYSINIT_TARGET_WANTS += \
2327 systemd-firstboot.service
2331 units/systemd-firstboot.service.in
2333 # ------------------------------------------------------------------------------
2334 systemd_machine_id_setup_SOURCES = \
2335 src/machine-id-setup/machine-id-setup-main.c \
2336 src/core/machine-id-setup.c \
2337 src/core/machine-id-setup.h
2339 systemd_machine_id_setup_LDADD = \
2342 SYSINIT_TARGET_WANTS += \
2343 systemd-machine-id-commit.service
2345 # ------------------------------------------------------------------------------
2346 systemd_sysctl_SOURCES = \
2349 systemd_sysctl_LDADD = \
2352 # ------------------------------------------------------------------------------
2353 systemd_sleep_SOURCES = \
2356 systemd_sleep_LDADD = \
2359 # ------------------------------------------------------------------------------
2360 systemd_fsck_SOURCES = \
2363 systemd_fsck_LDADD = \
2366 # ------------------------------------------------------------------------------
2367 systemd_ac_power_SOURCES = \
2368 src/ac-power/ac-power.c
2370 systemd_ac_power_LDADD = \
2373 # ------------------------------------------------------------------------------
2374 systemd_detect_virt_SOURCES = \
2375 src/detect-virt/detect-virt.c
2377 systemd_detect_virt_LDADD = \
2380 INSTALL_EXEC_HOOKS += \
2381 systemd-detect-virt-install-hook
2383 # ------------------------------------------------------------------------------
2384 systemd_delta_SOURCES = \
2387 systemd_delta_LDADD = \
2390 # ------------------------------------------------------------------------------
2391 systemd_getty_generator_SOURCES = \
2392 src/getty-generator/getty-generator.c
2394 systemd_getty_generator_LDADD = \
2397 # ------------------------------------------------------------------------------
2398 systemd_debug_generator_SOURCES = \
2399 src/debug-generator/debug-generator.c
2401 systemd_debug_generator_LDADD = \
2404 # ------------------------------------------------------------------------------
2405 systemd_fstab_generator_SOURCES = \
2406 src/fstab-generator/fstab-generator.c \
2407 src/core/mount-setup.c
2409 systemd_fstab_generator_LDADD = \
2412 # ------------------------------------------------------------------------------
2413 systemd_system_update_generator_SOURCES = \
2414 src/system-update-generator/system-update-generator.c
2416 systemd_system_update_generator_LDADD = \
2419 # ------------------------------------------------------------------------------
2421 systemgenerator_PROGRAMS += \
2422 systemd-hibernate-resume-generator
2424 rootlibexec_PROGRAMS += \
2425 systemd-hibernate-resume
2427 systemd_hibernate_resume_SOURCES = \
2428 src/hibernate-resume/hibernate-resume.c
2430 systemd_hibernate_resume_LDADD = \
2433 systemd_hibernate_resume_generator_SOURCES = \
2434 src/hibernate-resume/hibernate-resume-generator.c
2436 systemd_hibernate_resume_generator_LDADD = \
2439 dist_systemunit_DATA += \
2440 units/hibernate.target \
2441 units/hybrid-sleep.target
2443 nodist_systemunit_DATA += \
2444 units/systemd-hibernate.service \
2445 units/systemd-hibernate-resume@.service \
2446 units/systemd-hybrid-sleep.service
2450 units/systemd-hibernate.service.in \
2451 units/systemd-hibernate-resume@.service.in \
2452 units/systemd-hybrid-sleep.service.in
2454 # ------------------------------------------------------------------------------
2460 bootctl_CPPFLAGS = \
2462 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2463 -DBOOTLIBDIR=\"$(bootlibdir)\"
2476 if ENABLE_BASH_COMPLETION
2477 dist_bashcompletion_DATA += \
2478 shell-completion/bash/bootctl
2481 if ENABLE_ZSH_COMPLETION
2482 dist_zshcompletion_DATA += \
2483 shell-completion/zsh/_bootctl
2487 # ------------------------------------------------------------------------------
2491 -I$(top_builddir) -include config.h \
2492 -I$(EFI_INC_DIR)/efi \
2493 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2494 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2507 -fno-strict-aliasing \
2508 -fno-stack-protector \
2510 -Wno-missing-field-initializers
2517 -DEFI_FUNCTION_WRAPPER \
2518 -DGNU_EFI_USE_MS_ABI
2529 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2535 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2537 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2538 # and add required symbols manually.
2540 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2541 EFI_FORMAT = -O binary
2543 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2548 # ------------------------------------------------------------------------------
2549 systemd_boot_headers = \
2550 src/boot/efi/util.h \
2551 src/boot/efi/console.h \
2552 src/boot/efi/graphics.h \
2553 src/boot/efi/pefile.h \
2556 systemd_boot_sources = \
2557 src/boot/efi/util.c \
2558 src/boot/efi/console.c \
2559 src/boot/efi/graphics.c \
2560 src/boot/efi/pefile.c \
2561 src/boot/efi/disk.c \
2564 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2568 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2569 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2570 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2572 bootlib_DATA = $(systemd_boot)
2573 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2575 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2576 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2577 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2579 $(systemd_boot_solib): $(systemd_boot_objects)
2580 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2581 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2582 nm -D -u $@ | grep ' U ' && exit 1 || :
2584 $(systemd_boot): $(systemd_boot_solib)
2585 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2586 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2590 # ------------------------------------------------------------------------------
2592 src/boot/efi/util.h \
2593 src/boot/efi/pefile.h \
2594 src/boot/efi/disk.h \
2595 src/boot/efi/graphics.h \
2596 src/boot/efi/splash.h \
2597 src/boot/efi/linux.h
2600 src/boot/efi/util.c \
2601 src/boot/efi/pefile.c \
2602 src/boot/efi/disk.c \
2603 src/boot/efi/graphics.c \
2604 src/boot/efi/splash.c \
2605 src/boot/efi/linux.c \
2615 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2616 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2617 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2619 bootlib_DATA += $(stub)
2620 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2622 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2623 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2624 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2626 $(stub_solib): $(stub_objects)
2627 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2628 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2629 nm -D -u $@ | grep ' U ' && exit 1 || :
2631 $(stub): $(stub_solib)
2632 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2633 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2635 # ------------------------------------------------------------------------------
2636 CLEANFILES += test-efi-disk.img
2638 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2639 $(AM_V_GEN)test/test-efi-create-disk.sh
2641 test-efi: test-efi-disk.img
2642 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2646 EXTRA_DIST += test/test-efi-create-disk.sh
2648 # ------------------------------------------------------------------------------
2650 systemgenerator_PROGRAMS += \
2651 systemd-gpt-auto-generator
2653 systemd_gpt_auto_generator_SOURCES = \
2654 src/gpt-auto-generator/gpt-auto-generator.c \
2655 src/basic/blkid-util.h
2657 systemd_gpt_auto_generator_LDADD = \
2661 systemd_gpt_auto_generator_CFLAGS = \
2666 # ------------------------------------------------------------------------------
2667 systemgenerator_PROGRAMS += \
2668 systemd-dbus1-generator
2670 systemd_dbus1_generator_SOURCES = \
2671 src/dbus1-generator/dbus1-generator.c
2673 systemd_dbus1_generator_LDADD = \
2676 dbus1-generator-install-hook:
2677 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2678 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2679 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2681 dbus1-generator-uninstall-hook:
2682 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2684 dist_xinitrc_SCRIPTS = \
2685 xorg/50-systemd-user.sh
2687 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2688 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2690 # ------------------------------------------------------------------------------
2691 systemd_sysv_generator_SOURCES = \
2692 src/sysv-generator/sysv-generator.c
2694 systemd_sysv_generator_LDADD = \
2697 # ------------------------------------------------------------------------------
2698 systemd_rc_local_generator_SOURCES = \
2699 src/rc-local-generator/rc-local-generator.c
2701 systemd_rc_local_generator_LDADD = \
2704 # ------------------------------------------------------------------------------
2705 systemd_remount_fs_SOURCES = \
2706 src/remount-fs/remount-fs.c \
2707 src/core/mount-setup.c \
2708 src/core/mount-setup.h
2710 systemd_remount_fs_LDADD = \
2713 # ------------------------------------------------------------------------------
2714 systemd_cgroups_agent_SOURCES = \
2715 src/cgroups-agent/cgroups-agent.c
2717 systemd_cgroups_agent_LDADD = \
2720 # ------------------------------------------------------------------------------
2721 systemd_escape_SOURCES = \
2724 systemd_escape_LDADD = \
2727 # -----------------------------------------------------------------------------
2728 systemctl_SOURCES = \
2729 src/systemctl/systemctl.c
2734 # ------------------------------------------------------------------------------
2735 systemd_notify_SOURCES = \
2738 systemd_notify_LDADD = \
2741 # ------------------------------------------------------------------------------
2742 systemd_path_SOURCES = \
2745 systemd_path_LDADD = \
2748 # ------------------------------------------------------------------------------
2749 systemd_ask_password_SOURCES = \
2750 src/ask-password/ask-password.c
2752 systemd_ask_password_LDADD = \
2755 # ------------------------------------------------------------------------------
2756 systemd_reply_password_SOURCES = \
2757 src/reply-password/reply-password.c
2759 systemd_reply_password_LDADD = \
2762 # ------------------------------------------------------------------------------
2763 systemd_cgls_SOURCES = \
2766 systemd_cgls_LDADD = \
2769 # ------------------------------------------------------------------------------
2770 systemd_cgtop_SOURCES = \
2773 systemd_cgtop_LDADD = \
2776 # ------------------------------------------------------------------------------
2777 systemd_nspawn_SOURCES = \
2778 src/nspawn/nspawn.c \
2779 src/nspawn/nspawn-settings.c \
2780 src/nspawn/nspawn-settings.h \
2781 src/nspawn/nspawn-mount.c \
2782 src/nspawn/nspawn-mount.h \
2783 src/nspawn/nspawn-network.c \
2784 src/nspawn/nspawn-network.h \
2785 src/nspawn/nspawn-expose-ports.c \
2786 src/nspawn/nspawn-expose-ports.h \
2787 src/nspawn/nspawn-cgroup.c \
2788 src/nspawn/nspawn-cgroup.h \
2789 src/nspawn/nspawn-register.c \
2790 src/nspawn/nspawn-register.h \
2791 src/nspawn/nspawn-setuid.c \
2792 src/nspawn/nspawn-setuid.h \
2793 src/core/mount-setup.c \
2794 src/core/mount-setup.h \
2795 src/core/loopback-setup.c \
2796 src/core/loopback-setup.h
2798 nodist_systemd_nspawn_SOURCES = \
2799 src/nspawn/nspawn-gperf.c
2801 gperf_gperf_sources += \
2802 src/nspawn/nspawn-gperf.gperf
2804 systemd_nspawn_CFLAGS = \
2809 systemd_nspawn_LDADD = \
2814 systemd_nspawn_LDADD += \
2818 # ------------------------------------------------------------------------------
2819 systemd_run_SOURCES = \
2822 systemd_run_LDADD = \
2825 # ------------------------------------------------------------------------------
2826 noinst_LTLIBRARIES += \
2827 libbus-proxy-core.la
2829 libbus_proxy_core_la_SOURCES = \
2830 src/bus-proxyd/bus-xml-policy.c \
2831 src/bus-proxyd/bus-xml-policy.h \
2832 src/bus-proxyd/driver.c \
2833 src/bus-proxyd/driver.h \
2834 src/bus-proxyd/proxy.c \
2835 src/bus-proxyd/proxy.h \
2836 src/bus-proxyd/synthesize.c \
2837 src/bus-proxyd/synthesize.h
2839 libbus_proxy_core_la_LIBADD = \
2842 systemd_bus_proxyd_SOURCES = \
2843 src/bus-proxyd/bus-proxyd.c
2845 systemd_bus_proxyd_LDADD = \
2846 libbus-proxy-core.la \
2849 systemd_stdio_bridge_SOURCES = \
2850 src/bus-proxyd/stdio-bridge.c
2852 systemd_stdio_bridge_LDADD = \
2853 libbus-proxy-core.la \
2856 nodist_systemunit_DATA += \
2857 units/systemd-bus-proxyd.service
2859 dist_systemunit_DATA += \
2860 units/systemd-bus-proxyd.socket
2862 nodist_userunit_DATA += \
2863 units/user/systemd-bus-proxyd.service
2865 dist_userunit_DATA += \
2866 units/user/systemd-bus-proxyd.socket
2869 units/systemd-bus-proxyd.service.m4.in \
2870 units/user/systemd-bus-proxyd.service.in
2873 bus-proxyd-set-cap-hook:
2874 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2876 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2879 # ------------------------------------------------------------------------------
2880 systemd_tty_ask_password_agent_SOURCES = \
2881 src/tty-ask-password-agent/tty-ask-password-agent.c
2883 systemd_tty_ask_password_agent_LDADD = \
2886 # ------------------------------------------------------------------------------
2887 libsystemd_internal_la_SOURCES = \
2888 src/systemd/sd-bus.h \
2889 src/systemd/sd-bus-protocol.h \
2890 src/systemd/sd-bus-vtable.h \
2891 src/systemd/sd-utf8.h \
2892 src/systemd/sd-event.h \
2893 src/systemd/sd-netlink.h \
2894 src/systemd/sd-resolve.h \
2895 src/systemd/sd-login.h \
2896 src/systemd/sd-id128.h \
2897 src/systemd/sd-daemon.h \
2898 src/systemd/sd-path.h \
2899 src/systemd/sd-network.h \
2900 src/systemd/sd-hwdb.h \
2901 src/systemd/sd-device.h \
2902 src/libsystemd/libsystemd.sym \
2903 src/libsystemd/sd-bus/sd-bus.c \
2904 src/libsystemd/sd-bus/bus-control.c \
2905 src/libsystemd/sd-bus/bus-control.h \
2906 src/libsystemd/sd-bus/bus-error.c \
2907 src/libsystemd/sd-bus/bus-error.h \
2908 src/libsystemd/sd-bus/bus-common-errors.h \
2909 src/libsystemd/sd-bus/bus-common-errors.c \
2910 src/libsystemd/sd-bus/bus-internal.c \
2911 src/libsystemd/sd-bus/bus-internal.h \
2912 src/libsystemd/sd-bus/bus-socket.c \
2913 src/libsystemd/sd-bus/bus-socket.h \
2914 src/libsystemd/sd-bus/bus-kernel.c \
2915 src/libsystemd/sd-bus/bus-kernel.h \
2916 src/libsystemd/sd-bus/bus-container.c \
2917 src/libsystemd/sd-bus/bus-container.h \
2918 src/libsystemd/sd-bus/bus-message.c \
2919 src/libsystemd/sd-bus/bus-message.h \
2920 src/libsystemd/sd-bus/bus-creds.c \
2921 src/libsystemd/sd-bus/bus-creds.h \
2922 src/libsystemd/sd-bus/bus-signature.c \
2923 src/libsystemd/sd-bus/bus-signature.h \
2924 src/libsystemd/sd-bus/bus-type.c \
2925 src/libsystemd/sd-bus/bus-type.h \
2926 src/libsystemd/sd-bus/bus-match.c \
2927 src/libsystemd/sd-bus/bus-match.h \
2928 src/libsystemd/sd-bus/bus-bloom.c \
2929 src/libsystemd/sd-bus/bus-bloom.h \
2930 src/libsystemd/sd-bus/bus-introspect.c \
2931 src/libsystemd/sd-bus/bus-introspect.h \
2932 src/libsystemd/sd-bus/bus-objects.c \
2933 src/libsystemd/sd-bus/bus-objects.h \
2934 src/libsystemd/sd-bus/bus-gvariant.c \
2935 src/libsystemd/sd-bus/bus-gvariant.h \
2936 src/libsystemd/sd-bus/bus-convenience.c \
2937 src/libsystemd/sd-bus/bus-track.c \
2938 src/libsystemd/sd-bus/bus-track.h \
2939 src/libsystemd/sd-bus/bus-slot.c \
2940 src/libsystemd/sd-bus/bus-slot.h \
2941 src/libsystemd/sd-bus/bus-protocol.h \
2942 src/libsystemd/sd-bus/kdbus.h \
2943 src/libsystemd/sd-bus/bus-dump.c \
2944 src/libsystemd/sd-bus/bus-dump.h \
2945 src/libsystemd/sd-utf8/sd-utf8.c \
2946 src/libsystemd/sd-event/sd-event.c \
2947 src/libsystemd/sd-event/event-util.h \
2948 src/libsystemd/sd-netlink/sd-netlink.c \
2949 src/libsystemd/sd-netlink/netlink-internal.h \
2950 src/libsystemd/sd-netlink/netlink-message.c \
2951 src/libsystemd/sd-netlink/netlink-socket.c \
2952 src/libsystemd/sd-netlink/rtnl-message.c \
2953 src/libsystemd/sd-netlink/netlink-types.h \
2954 src/libsystemd/sd-netlink/netlink-types.c \
2955 src/libsystemd/sd-netlink/netlink-util.h \
2956 src/libsystemd/sd-netlink/netlink-util.c \
2957 src/libsystemd/sd-netlink/local-addresses.h \
2958 src/libsystemd/sd-netlink/local-addresses.c \
2959 src/libsystemd/sd-id128/sd-id128.c \
2960 src/libsystemd/sd-daemon/sd-daemon.c \
2961 src/libsystemd/sd-login/sd-login.c \
2962 src/libsystemd/sd-path/sd-path.c \
2963 src/libsystemd/sd-network/sd-network.c \
2964 src/libsystemd/sd-network/network-util.h \
2965 src/libsystemd/sd-network/network-util.c \
2966 src/libsystemd/sd-hwdb/sd-hwdb.c \
2967 src/libsystemd/sd-hwdb/hwdb-util.h \
2968 src/libsystemd/sd-hwdb/hwdb-internal.h \
2969 src/libsystemd/sd-device/device-internal.h \
2970 src/libsystemd/sd-device/device-util.h \
2971 src/libsystemd/sd-device/device-enumerator.c \
2972 src/libsystemd/sd-device/device-enumerator-private.h \
2973 src/libsystemd/sd-device/sd-device.c \
2974 src/libsystemd/sd-device/device-private.c \
2975 src/libsystemd/sd-device/device-private.h \
2976 src/libsystemd/sd-resolve/sd-resolve.c \
2977 src/libsystemd/sd-resolve/resolve-util.h
2979 libsystemd_internal_la_LIBADD = \
2983 noinst_LTLIBRARIES += \
2984 libsystemd-internal.la
2987 src/libsystemd/libsystemd.pc.in \
2988 src/libsystemd/sd-bus/DIFFERENCES \
2989 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2991 libsystemd_la_SOURCES = \
2992 $(libsystemd_internal_la_SOURCES) \
2993 $(libsystemd_journal_internal_la_SOURCES)
2995 nodist_libsystemd_la_SOURCES = \
2996 $(nodist_libsystemd_internal_la_SOURCES)
2998 libsystemd_la_CFLAGS = \
2999 $(libsystemd_internal_la_CFLAGS) \
3000 $(libsystemd_journal_internal_la_CFLAGS)
3002 libsystemd_la_LDFLAGS = \
3004 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3005 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3007 libsystemd_la_LIBADD = \
3008 $(libsystemd_internal_la_LIBADD) \
3009 $(libsystemd_journal_internal_la_LIBADD)
3011 libsystemd-install-hook:
3012 libname=libsystemd.so && $(move-to-rootlibdir)
3014 libsystemd-uninstall-hook:
3015 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3017 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3018 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3020 pkgconfiglib_DATA += \
3021 src/libsystemd/libsystemd.pc
3023 pkginclude_HEADERS += \
3024 src/systemd/sd-bus.h \
3025 src/systemd/sd-bus-protocol.h \
3026 src/systemd/sd-bus-vtable.h \
3027 src/systemd/sd-event.h \
3028 src/systemd/sd-login.h \
3029 src/systemd/sd-id128.h \
3030 src/systemd/sd-daemon.h
3032 lib_LTLIBRARIES += \
3037 test-bus-signature \
3038 test-bus-benchmark \
3045 test-bus-kernel-bloom \
3046 test-bus-zero-copy \
3047 test-bus-introspect \
3054 test-local-addresses \
3060 test_bus_marshal_SOURCES = \
3061 src/libsystemd/sd-bus/test-bus-marshal.c
3063 test_bus_marshal_LDADD = \
3068 test_bus_marshal_CFLAGS = \
3073 test_bus_signature_SOURCES = \
3074 src/libsystemd/sd-bus/test-bus-signature.c
3076 test_bus_signature_LDADD = \
3079 test_bus_chat_SOURCES = \
3080 src/libsystemd/sd-bus/test-bus-chat.c
3082 test_bus_chat_LDADD = \
3085 test_bus_cleanup_SOURCES = \
3086 src/libsystemd/sd-bus/test-bus-cleanup.c
3088 test_bus_cleanup_CFLAGS = \
3092 test_bus_cleanup_LDADD = \
3095 test_bus_server_SOURCES = \
3096 src/libsystemd/sd-bus/test-bus-server.c
3098 test_bus_server_LDADD = \
3101 test_bus_objects_SOURCES = \
3102 src/libsystemd/sd-bus/test-bus-objects.c
3104 test_bus_objects_LDADD = \
3107 test_bus_error_SOURCES = \
3108 src/libsystemd/sd-bus/test-bus-error.c
3110 test_bus_error_LDADD = \
3113 test_bus_gvariant_SOURCES = \
3114 src/libsystemd/sd-bus/test-bus-gvariant.c
3116 test_bus_gvariant_LDADD = \
3120 test_bus_gvariant_CFLAGS = \
3124 test_bus_creds_SOURCES = \
3125 src/libsystemd/sd-bus/test-bus-creds.c
3127 test_bus_creds_LDADD = \
3130 test_bus_match_SOURCES = \
3131 src/libsystemd/sd-bus/test-bus-match.c
3133 test_bus_match_LDADD = \
3136 test_bus_proxy_SOURCES = \
3137 src/libsystemd/sd-bus/test-bus-proxy.c
3139 test_bus_proxy_LDADD = \
3142 test_bus_kernel_SOURCES = \
3143 src/libsystemd/sd-bus/test-bus-kernel.c
3145 test_bus_kernel_LDADD = \
3148 test_bus_kernel_bloom_SOURCES = \
3149 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3151 test_bus_kernel_bloom_LDADD = \
3154 test_bus_benchmark_SOURCES = \
3155 src/libsystemd/sd-bus/test-bus-benchmark.c
3157 test_bus_benchmark_LDADD = \
3160 test_bus_zero_copy_SOURCES = \
3161 src/libsystemd/sd-bus/test-bus-zero-copy.c
3163 test_bus_zero_copy_LDADD = \
3166 test_bus_introspect_SOURCES = \
3167 src/libsystemd/sd-bus/test-bus-introspect.c
3169 test_bus_introspect_LDADD = \
3172 test_event_SOURCES = \
3173 src/libsystemd/sd-event/test-event.c
3175 test_event_LDADD = \
3178 test_netlink_SOURCES = \
3179 src/libsystemd/sd-netlink/test-netlink.c
3181 test_netlink_LDADD = \
3184 test_local_addresses_SOURCES = \
3185 src/libsystemd/sd-netlink/test-local-addresses.c
3187 test_local_addresses_LDADD = \
3190 test_resolve_SOURCES = \
3191 src/libsystemd/sd-resolve/test-resolve.c
3193 test_resolve_LDADD = \
3197 src/libsystemd/sd-bus/busctl.c \
3198 src/libsystemd/sd-bus/busctl-introspect.c \
3199 src/libsystemd/sd-bus/busctl-introspect.h
3204 # ------------------------------------------------------------------------------
3205 noinst_LTLIBRARIES += \
3206 libsystemd-network.la
3208 libsystemd_network_la_CFLAGS = \
3212 libsystemd_network_la_SOURCES = \
3213 src/systemd/sd-dhcp-client.h \
3214 src/systemd/sd-dhcp-server.h \
3215 src/systemd/sd-dhcp-lease.h \
3216 src/systemd/sd-ipv4ll.h \
3217 src/systemd/sd-ipv4acd.h \
3218 src/systemd/sd-icmp6-nd.h \
3219 src/systemd/sd-dhcp6-client.h \
3220 src/systemd/sd-dhcp6-lease.h \
3221 src/systemd/sd-pppoe.h \
3222 src/systemd/sd-lldp.h \
3223 src/libsystemd-network/sd-dhcp-client.c \
3224 src/libsystemd-network/sd-dhcp-server.c \
3225 src/libsystemd-network/dhcp-network.c \
3226 src/libsystemd-network/dhcp-option.c \
3227 src/libsystemd-network/dhcp-packet.c \
3228 src/libsystemd-network/dhcp-internal.h \
3229 src/libsystemd-network/dhcp-server-internal.h \
3230 src/libsystemd-network/dhcp-protocol.h \
3231 src/libsystemd-network/dhcp-lease-internal.h \
3232 src/libsystemd-network/sd-dhcp-lease.c \
3233 src/libsystemd-network/sd-ipv4ll.c \
3234 src/libsystemd-network/sd-ipv4acd.c \
3235 src/libsystemd-network/arp-util.h \
3236 src/libsystemd-network/arp-util.c \
3237 src/libsystemd-network/sd-pppoe.c \
3238 src/libsystemd-network/network-internal.c \
3239 src/libsystemd-network/network-internal.h \
3240 src/libsystemd-network/sd-icmp6-nd.c \
3241 src/libsystemd-network/sd-dhcp6-client.c \
3242 src/libsystemd-network/dhcp6-internal.h \
3243 src/libsystemd-network/dhcp6-protocol.h \
3244 src/libsystemd-network/dhcp6-network.c \
3245 src/libsystemd-network/dhcp6-option.c \
3246 src/libsystemd-network/dhcp6-lease-internal.h \
3247 src/libsystemd-network/sd-dhcp6-lease.c \
3248 src/libsystemd-network/dhcp-identifier.h \
3249 src/libsystemd-network/dhcp-identifier.c \
3250 src/libsystemd-network/lldp.h \
3251 src/libsystemd-network/lldp-tlv.h \
3252 src/libsystemd-network/lldp-tlv.c \
3253 src/libsystemd-network/lldp-network.h \
3254 src/libsystemd-network/lldp-network.c \
3255 src/libsystemd-network/lldp-port.h \
3256 src/libsystemd-network/lldp-port.c \
3257 src/libsystemd-network/lldp-internal.h \
3258 src/libsystemd-network/lldp-internal.c \
3259 src/libsystemd-network/lldp-util.h \
3260 src/libsystemd-network/sd-lldp.c
3262 libsystemd_network_la_LIBADD = \
3265 test_dhcp_option_SOURCES = \
3266 src/libsystemd-network/dhcp-protocol.h \
3267 src/libsystemd-network/dhcp-internal.h \
3268 src/libsystemd-network/test-dhcp-option.c
3270 test_dhcp_option_LDADD = \
3271 libsystemd-network.la \
3274 test_dhcp_client_SOURCES = \
3275 src/systemd/sd-dhcp-client.h \
3276 src/libsystemd-network/dhcp-protocol.h \
3277 src/libsystemd-network/dhcp-internal.h \
3278 src/libsystemd-network/test-dhcp-client.c
3280 test_dhcp_client_LDADD = \
3281 libsystemd-network.la \
3284 test_dhcp_server_SOURCES = \
3285 src/libsystemd-network/test-dhcp-server.c
3287 test_dhcp_server_LDADD = \
3288 libsystemd-network.la \
3291 test_ipv4ll_SOURCES = \
3292 src/systemd/sd-ipv4ll.h \
3293 src/libsystemd-network/arp-util.h \
3294 src/libsystemd-network/test-ipv4ll.c
3296 test_ipv4ll_LDADD = \
3297 libsystemd-network.la \
3300 test_ipv4ll_manual_SOURCES = \
3301 src/systemd/sd-ipv4ll.h \
3302 src/libsystemd-network/test-ipv4ll-manual.c
3304 test_ipv4ll_manual_LDADD = \
3305 libsystemd-network.la \
3308 test_acd_SOURCES = \
3309 src/systemd/sd-ipv4acd.h \
3310 src/libsystemd-network/test-acd.c
3313 libsystemd-network.la \
3316 test_pppoe_SOURCES = \
3317 src/systemd/sd-pppoe.h \
3318 src/libsystemd-network/test-pppoe.c
3320 test_pppoe_LDADD = \
3321 libsystemd-network.la \
3324 test_icmp6_rs_SOURCES = \
3325 src/systemd/sd-dhcp6-client.h \
3326 src/systemd/sd-icmp6-nd.h \
3327 src/libsystemd-network/dhcp6-internal.h \
3328 src/libsystemd-network/test-icmp6-rs.c \
3329 src/libsystemd-network/dhcp-identifier.h \
3330 src/libsystemd-network/dhcp-identifier.c
3332 test_icmp6_rs_LDADD = \
3333 libsystemd-network.la \
3337 test_dhcp6_client_SOURCES = \
3338 src/systemd/sd-dhcp6-client.h \
3339 src/libsystemd-network/dhcp6-internal.h \
3340 src/libsystemd-network/test-dhcp6-client.c \
3341 src/libsystemd-network/dhcp-identifier.h \
3342 src/libsystemd-network/dhcp-identifier.c
3344 test_dhcp6_client_LDADD = \
3345 libsystemd-network.la \
3349 test_lldp_SOURCES = \
3350 src/libsystemd-network/lldp.h \
3351 src/libsystemd-network/lldp-tlv.h \
3352 src/libsystemd-network/lldp-tlv.c \
3353 src/libsystemd-network/test-lldp.c
3356 libsystemd-network.la \
3371 # ------------------------------------------------------------------------------
3372 include_HEADERS += \
3373 src/libudev/libudev.h
3375 lib_LTLIBRARIES += \
3378 libudev_la_SOURCES =\
3379 src/libudev/libudev.sym \
3380 src/libudev/libudev-private.h \
3381 src/libudev/libudev-device-internal.h \
3382 src/libudev/libudev.c \
3383 src/libudev/libudev-list.c \
3384 src/libudev/libudev-util.c \
3385 src/libudev/libudev-device.c \
3386 src/libudev/libudev-device-private.c \
3387 src/libudev/libudev-enumerate.c \
3388 src/libudev/libudev-monitor.c \
3389 src/libudev/libudev-queue.c \
3390 src/libudev/libudev-hwdb.c
3392 libudev_la_LDFLAGS = \
3394 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3395 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3397 libudev_la_LIBADD = \
3398 libsystemd-internal.la
3400 pkgconfiglib_DATA += \
3401 src/libudev/libudev.pc
3404 src/libudev/libudev.pc.in
3406 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3407 libudev-install-hook:
3408 libname=libudev.so && $(move-to-rootlibdir)
3410 libudev-uninstall-hook:
3411 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3413 INSTALL_EXEC_HOOKS += libudev-install-hook
3414 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3416 # ------------------------------------------------------------------------------
3417 noinst_LTLIBRARIES += \
3420 libudev_internal_la_SOURCES =\
3421 $(libudev_la_SOURCES)
3423 # ------------------------------------------------------------------------------
3425 $(sysconfdir)/udev/rules.d
3427 dist_network_DATA = \
3428 network/99-default.link \
3429 network/80-container-host0.network \
3430 network/80-container-ve.network
3432 dist_udevrules_DATA += \
3433 rules/50-udev-default.rules \
3434 rules/60-block.rules \
3435 rules/60-drm.rules \
3436 rules/60-evdev.rules \
3437 rules/60-persistent-storage-tape.rules \
3438 rules/60-persistent-input.rules \
3439 rules/60-persistent-alsa.rules \
3440 rules/60-persistent-storage.rules \
3441 rules/60-serial.rules \
3442 rules/64-btrfs.rules \
3443 rules/70-mouse.rules \
3444 rules/75-net-description.rules \
3445 rules/78-sound-card.rules \
3446 rules/80-net-setup-link.rules
3448 nodist_udevrules_DATA += \
3449 rules/99-systemd.rules
3451 udevconfdir = $(sysconfdir)/udev
3452 dist_udevconf_DATA = \
3455 pkgconfigdata_DATA += \
3459 rules/99-systemd.rules.in \
3463 units/systemd-udevd.service.in \
3464 units/systemd-udev-trigger.service.in \
3465 units/systemd-udev-settle.service.in
3467 SOCKETS_TARGET_WANTS += \
3468 systemd-udevd-control.socket \
3469 systemd-udevd-kernel.socket
3471 SYSINIT_TARGET_WANTS += \
3472 systemd-udevd.service \
3473 systemd-udev-trigger.service
3475 rootbin_PROGRAMS += \
3478 rootlibexec_PROGRAMS += \
3481 noinst_LTLIBRARIES += \
3484 src/udev/keyboard-keys-list.txt:
3485 $(AM_V_at)$(MKDIR_P) $(dir $@)
3486 $(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/' > $@
3488 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3489 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3491 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3492 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3494 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys-list.txt
3495 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3497 gperf_txt_sources += \
3498 src/udev/keyboard-keys-list.txt
3500 libudev_core_la_SOURCES = \
3502 src/udev/udev-event.c \
3503 src/udev/udev-watch.c \
3504 src/udev/udev-node.c \
3505 src/udev/udev-rules.c \
3506 src/udev/udev-ctrl.c \
3507 src/udev/udev-builtin.c \
3508 src/udev/udev-builtin-btrfs.c \
3509 src/udev/udev-builtin-hwdb.c \
3510 src/udev/udev-builtin-input_id.c \
3511 src/udev/udev-builtin-keyboard.c \
3512 src/udev/udev-builtin-net_id.c \
3513 src/udev/udev-builtin-net_setup_link.c \
3514 src/udev/udev-builtin-path_id.c \
3515 src/udev/udev-builtin-usb_id.c \
3516 src/udev/net/link-config.h \
3517 src/udev/net/link-config.c \
3518 src/udev/net/ethtool-util.h \
3519 src/udev/net/ethtool-util.c
3521 nodist_libudev_core_la_SOURCES = \
3522 src/udev/keyboard-keys-from-name.h \
3523 src/udev/keyboard-keys-to-name.h \
3524 src/udev/net/link-config-gperf.c
3526 gperf_gperf_sources += \
3527 src/udev/net/link-config-gperf.gperf
3529 libudev_core_la_CFLAGS = \
3534 libudev_core_la_LIBADD = \
3535 libsystemd-network.la \
3541 libudev_core_la_SOURCES += \
3542 src/udev/udev-builtin-kmod.c
3544 dist_udevrules_DATA += \
3545 rules/80-drivers.rules
3549 libudev_core_la_SOURCES += \
3550 src/udev/udev-builtin-blkid.c
3554 libudev_core_la_SOURCES += \
3555 src/udev/udev-builtin-uaccess.c \
3556 src/login/logind-acl.c \
3557 src/libsystemd/sd-login/sd-login.c \
3558 src/systemd/sd-login.h
3561 systemd_udevd_SOURCES = \
3564 systemd_udevd_LDADD = \
3568 src/udev/udevadm.c \
3569 src/udev/udevadm-info.c \
3570 src/udev/udevadm-control.c \
3571 src/udev/udevadm-monitor.c \
3572 src/udev/udevadm-hwdb.c \
3573 src/udev/udevadm-settle.c \
3574 src/udev/udevadm-trigger.c \
3575 src/udev/udevadm-test.c \
3576 src/udev/udevadm-test-builtin.c \
3577 src/udev/udevadm-util.c \
3578 src/udev/udevadm-util.h
3583 # ------------------------------------------------------------------------------
3586 $(sysconfdir)/udev/hwdb.d
3588 systemd_hwdb_SOURCES = \
3589 src/libsystemd/sd-hwdb/hwdb-internal.h \
3592 systemd_hwdb_LDADD = \
3595 rootbin_PROGRAMS += \
3598 dist_udevhwdb_DATA = \
3599 hwdb/20-pci-vendor-model.hwdb \
3600 hwdb/20-pci-classes.hwdb \
3601 hwdb/20-usb-vendor-model.hwdb \
3602 hwdb/20-usb-classes.hwdb \
3603 hwdb/20-sdio-vendor-model.hwdb \
3604 hwdb/20-sdio-classes.hwdb \
3605 hwdb/20-bluetooth-vendor-product.hwdb \
3606 hwdb/20-acpi-vendor.hwdb \
3608 hwdb/20-net-ifname.hwdb \
3609 hwdb/60-evdev.hwdb \
3610 hwdb/60-keyboard.hwdb \
3611 hwdb/70-mouse.hwdb \
3612 hwdb/70-pointingstick.hwdb
3614 SYSINIT_TARGET_WANTS += \
3615 systemd-hwdb-update.service
3617 # Update hwdb on installation. Do not bother if installing
3618 # in DESTDIR, since this is likely for packaging purposes.
3620 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3622 INSTALL_DATA_HOOKS += \
3626 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3630 units/systemd-hwdb-update.service.in \
3631 hwdb/ids-update.pl \
3634 # ------------------------------------------------------------------------------
3640 test/rule-syntax-check.py
3644 test/sysv-generator-test.py
3652 test_libudev_SOURCES = \
3653 src/test/test-libudev.c
3655 test_libudev_LDADD = \
3658 test_udev_SOURCES = \
3659 src/test/test-udev.c
3669 # packed sysfs test tree
3671 $(AM_V_at)$(MKDIR_P) $(dir $@)
3672 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3676 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3681 test/rule-syntax-check.py \
3682 test/sysv-generator-test.py \
3685 # ------------------------------------------------------------------------------
3687 src/udev/ata_id/ata_id.c
3692 udevlibexec_PROGRAMS += \
3695 # ------------------------------------------------------------------------------
3696 cdrom_id_SOURCES = \
3697 src/udev/cdrom_id/cdrom_id.c
3702 udevlibexec_PROGRAMS += \
3705 dist_udevrules_DATA += \
3706 rules/60-cdrom_id.rules
3708 # ------------------------------------------------------------------------------
3710 src/udev/collect/collect.c
3715 udevlibexec_PROGRAMS += \
3718 # ------------------------------------------------------------------------------
3720 src/udev/scsi_id/scsi_id.c \
3721 src/udev/scsi_id/scsi_serial.c \
3722 src/udev/scsi_id/scsi.h \
3723 src/udev/scsi_id/scsi_id.h
3728 udevlibexec_PROGRAMS += \
3732 src/udev/scsi_id/README
3734 # ------------------------------------------------------------------------------
3736 src/udev/v4l_id/v4l_id.c
3741 udevlibexec_PROGRAMS += \
3744 dist_udevrules_DATA += \
3745 rules/60-persistent-v4l.rules
3747 # ------------------------------------------------------------------------------
3748 mtd_probe_SOURCES = \
3749 src/udev/mtd_probe/mtd_probe.c \
3750 src/udev/mtd_probe/mtd_probe.h \
3751 src/udev/mtd_probe/probe_smartmedia.c
3753 dist_udevrules_DATA += \
3754 rules/75-probe_mtd.rules
3756 udevlibexec_PROGRAMS += \
3759 # ------------------------------------------------------------------------------
3760 test_id128_SOURCES = \
3761 src/test/test-id128.c
3763 test_id128_LDADD = \
3769 # ------------------------------------------------------------------------------
3771 rootlibexec_PROGRAMS += \
3774 systemd_activate_SOURCES = \
3775 src/activate/activate.c
3777 systemd_activate_LDADD = \
3780 # ------------------------------------------------------------------------------
3781 systemd_journald_SOURCES = \
3782 src/journal/journald.c \
3783 src/journal/journald-server.h
3785 systemd_journald_LDADD = \
3786 libjournal-core.la \
3789 systemd_cat_SOURCES = \
3792 systemd_cat_LDADD = \
3796 rootlibexec_PROGRAMS += \
3797 systemd-journal-remote
3799 systemd_journal_remote_SOURCES = \
3800 src/journal-remote/journal-remote-parse.h \
3801 src/journal-remote/journal-remote-parse.c \
3802 src/journal-remote/journal-remote-write.h \
3803 src/journal-remote/journal-remote-write.c \
3804 src/journal-remote/journal-remote.h \
3805 src/journal-remote/journal-remote.c
3807 systemd_journal_remote_LDADD = \
3810 systemd_journal_remote_SOURCES += \
3811 src/journal-remote/microhttpd-util.h \
3812 src/journal-remote/microhttpd-util.c
3814 systemd_journal_remote_CFLAGS = \
3816 $(MICROHTTPD_CFLAGS)
3818 systemd_journal_remote_LDADD += \
3822 dist_sysusers_DATA += \
3823 sysusers.d/systemd-remote.conf
3827 dist_tmpfiles_DATA += \
3828 tmpfiles.d/systemd-remote.conf
3832 systemd_journal_remote_LDADD += \
3835 # systemd-journal-remote make sense mostly with full crypto stack
3836 dist_systemunit_DATA += \
3837 units/systemd-journal-remote.socket
3839 nodist_systemunit_DATA += \
3840 units/systemd-journal-remote.service
3842 journal-remote-install-hook: journal-install-hook
3843 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3844 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3845 -chmod 755 $(DESTDIR)/var/log/journal/remote
3847 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3850 nodist_pkgsysconf_DATA += \
3851 src/journal-remote/journal-remote.conf
3854 units/systemd-journal-remote.service.in \
3855 src/journal-remote/journal-remote.conf.in \
3856 src/journal-remote/log-generator.py
3860 rootlibexec_PROGRAMS += \
3861 systemd-journal-upload
3863 systemd_journal_upload_SOURCES = \
3864 src/journal-remote/journal-upload.h \
3865 src/journal-remote/journal-upload.c \
3866 src/journal-remote/journal-upload-journal.c
3868 systemd_journal_upload_CFLAGS = \
3872 systemd_journal_upload_LDADD = \
3876 nodist_systemunit_DATA += \
3877 units/systemd-journal-upload.service
3879 nodist_pkgsysconf_DATA += \
3880 src/journal-remote/journal-upload.conf
3884 units/systemd-journal-upload.service.in \
3885 src/journal-remote/journal-upload.conf.in
3887 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3888 journalctl_CFLAGS = \
3891 journalctl_SOURCES = \
3892 src/journal/journalctl.c
3894 journalctl_LDADD = \
3898 journalctl_SOURCES += \
3899 src/journal/journal-qrcode.c \
3900 src/journal/journal-qrcode.h
3902 journalctl_CFLAGS += \
3905 journalctl_LDADD += \
3909 test_journal_SOURCES = \
3910 src/journal/test-journal.c
3912 test_journal_LDADD = \
3915 test_journal_send_SOURCES = \
3916 src/journal/test-journal-send.c
3918 test_journal_send_LDADD = \
3921 test_journal_syslog_SOURCES = \
3922 src/journal/test-journal-syslog.c
3924 test_journal_syslog_LDADD = \
3927 test_journal_match_SOURCES = \
3928 src/journal/test-journal-match.c
3930 test_journal_match_LDADD = \
3933 test_journal_enum_SOURCES = \
3934 src/journal/test-journal-enum.c
3936 test_journal_enum_LDADD = \
3939 test_journal_stream_SOURCES = \
3940 src/journal/test-journal-stream.c
3942 test_journal_stream_LDADD = \
3945 test_journal_flush_SOURCES = \
3946 src/journal/test-journal-flush.c
3948 test_journal_flush_LDADD = \
3951 test_journal_init_SOURCES = \
3952 src/journal/test-journal-init.c
3954 test_journal_init_LDADD = \
3957 test_journal_verify_SOURCES = \
3958 src/journal/test-journal-verify.c
3960 test_journal_verify_LDADD = \
3963 test_journal_interleaving_SOURCES = \
3964 src/journal/test-journal-interleaving.c
3966 test_journal_interleaving_LDADD = \
3969 test_mmap_cache_SOURCES = \
3970 src/journal/test-mmap-cache.c
3972 test_mmap_cache_LDADD = \
3975 test_catalog_SOURCES = \
3976 src/journal/test-catalog.c
3978 test_catalog_CPPFLAGS = \
3980 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3982 test_catalog_LDADD = \
3985 test_compress_SOURCES = \
3986 src/journal/test-compress.c
3988 test_compress_LDADD = \
3991 test_compress_benchmark_SOURCES = \
3992 src/journal/test-compress-benchmark.c
3994 test_compress_benchmark_LDADD = \
3997 test_audit_type_SOURCES = \
3998 src/journal/test-audit-type.c
4000 test_audit_type_LDADD = \
4003 libjournal_core_la_SOURCES = \
4004 src/journal/journald-kmsg.c \
4005 src/journal/journald-kmsg.h \
4006 src/journal/journald-syslog.c \
4007 src/journal/journald-syslog.h \
4008 src/journal/journald-stream.c \
4009 src/journal/journald-stream.h \
4010 src/journal/journald-server.c \
4011 src/journal/journald-server.h \
4012 src/journal/journald-console.c \
4013 src/journal/journald-console.h \
4014 src/journal/journald-wall.c \
4015 src/journal/journald-wall.h \
4016 src/journal/journald-native.c \
4017 src/journal/journald-native.h \
4018 src/journal/journald-audit.c \
4019 src/journal/journald-audit.h \
4020 src/journal/journald-rate-limit.c \
4021 src/journal/journald-rate-limit.h \
4022 src/journal/journal-internal.h
4024 nodist_libjournal_core_la_SOURCES = \
4025 src/journal/journald-gperf.c
4027 libjournal_core_la_LIBADD = \
4030 noinst_LTLIBRARIES += \
4033 journal-install-hook:
4034 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4035 -chown 0:0 $(DESTDIR)/var/log/journal
4036 -chmod 755 $(DESTDIR)/var/log/journal
4037 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4038 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4040 journal-uninstall-hook:
4041 -rmdir $(DESTDIR)/var/log/journal/remote
4042 -rmdir $(DESTDIR)/var/log/journal/
4044 INSTALL_EXEC_HOOKS += journal-install-hook
4045 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4047 # ------------------------------------------------------------------------------
4048 # Update catalog on installation. Do not bother if installing
4049 # in DESTDIR, since this is likely for packaging purposes.
4050 catalog-update-hook:
4051 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4053 INSTALL_DATA_HOOKS += \
4056 catalog-remove-hook:
4057 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4059 UNINSTALL_DATA_HOOKS += \
4068 test-journal-syslog \
4069 test-journal-match \
4070 test-journal-stream \
4072 test-journal-verify \
4073 test-journal-interleaving \
4074 test-journal-flush \
4082 test-compress-benchmark
4085 pkginclude_HEADERS += \
4086 src/systemd/sd-journal.h \
4087 src/systemd/sd-messages.h \
4088 src/systemd/_sd-common.h
4090 libsystemd_journal_internal_la_SOURCES = \
4091 src/journal/sd-journal.c \
4092 src/systemd/sd-journal.h \
4093 src/systemd/_sd-common.h \
4094 src/journal/journal-file.c \
4095 src/journal/journal-file.h \
4096 src/journal/journal-vacuum.c \
4097 src/journal/journal-vacuum.h \
4098 src/journal/journal-verify.c \
4099 src/journal/journal-verify.h \
4100 src/journal/lookup3.c \
4101 src/journal/lookup3.h \
4102 src/journal/journal-send.c \
4103 src/journal/journal-def.h \
4104 src/journal/compress.h \
4105 src/journal/catalog.c \
4106 src/journal/catalog.h \
4107 src/journal/mmap-cache.c \
4108 src/journal/mmap-cache.h \
4109 src/journal/compress.c \
4110 src/journal/audit-type.h \
4111 src/journal/audit-type.c
4113 nodist_libsystemd_journal_internal_la_SOURCES = \
4114 src/journal/audit_type-to-name.h
4116 gperf_txt_sources += \
4117 src/journal/audit_type-list.txt
4119 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4120 libsystemd_journal_internal_la_CFLAGS = \
4123 libsystemd_journal_internal_la_LIBADD =
4126 libsystemd_journal_internal_la_CFLAGS += \
4129 libsystemd_journal_internal_la_LIBADD += \
4134 libsystemd_journal_internal_la_LIBADD += \
4139 libsystemd_journal_internal_la_SOURCES += \
4140 src/journal/journal-authenticate.c \
4141 src/journal/journal-authenticate.h \
4142 src/journal/fsprg.c \
4145 libsystemd_journal_internal_la_LIBADD += \
4148 # fsprg.c is a drop-in file using void pointer arithmetic
4149 libsystemd_journal_internal_la_CFLAGS += \
4154 noinst_LTLIBRARIES += \
4155 libsystemd-journal-internal.la
4157 rootlibexec_PROGRAMS += \
4160 rootbin_PROGRAMS += \
4166 dist_systemunit_DATA += \
4167 units/systemd-journald.socket \
4168 units/systemd-journald-dev-log.socket \
4169 units/systemd-journald-audit.socket
4171 nodist_systemunit_DATA += \
4172 units/systemd-journald.service \
4173 units/systemd-journal-flush.service \
4174 units/systemd-journal-catalog-update.service
4176 dist_pkgsysconf_DATA += \
4177 src/journal/journald.conf
4179 dist_catalog_DATA = \
4180 catalog/systemd.be.catalog \
4181 catalog/systemd.be@latin.catalog \
4182 catalog/systemd.fr.catalog \
4183 catalog/systemd.it.catalog \
4184 catalog/systemd.pl.catalog \
4185 catalog/systemd.pt_BR.catalog \
4186 catalog/systemd.ru.catalog \
4187 catalog/systemd.zh_TW.catalog \
4188 catalog/systemd.catalog
4190 SOCKETS_TARGET_WANTS += \
4191 systemd-journald.socket \
4192 systemd-journald-dev-log.socket \
4193 systemd-journald-audit.socket
4195 SYSINIT_TARGET_WANTS += \
4196 systemd-journald.service \
4197 systemd-journal-flush.service \
4198 systemd-journal-catalog-update.service
4201 units/systemd-journald.service.in \
4202 units/systemd-journal-flush.service.in \
4203 units/systemd-journal-catalog-update.service.in
4205 gperf_gperf_sources += \
4206 src/journal/journald-gperf.gperf
4208 # ------------------------------------------------------------------------------
4210 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4212 rootlibexec_PROGRAMS += \
4213 systemd-journal-gatewayd
4215 systemd_journal_gatewayd_SOURCES = \
4216 src/journal-remote/journal-gatewayd.c \
4217 src/journal-remote/microhttpd-util.h \
4218 src/journal-remote/microhttpd-util.c
4220 systemd_journal_gatewayd_LDADD = \
4225 systemd_journal_gatewayd_LDADD += \
4229 systemd_journal_gatewayd_CFLAGS = \
4231 $(MICROHTTPD_CFLAGS)
4233 systemd_journal_gatewayd_CPPFLAGS = \
4235 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4237 dist_systemunit_DATA += \
4238 units/systemd-journal-gatewayd.socket
4240 nodist_systemunit_DATA += \
4241 units/systemd-journal-gatewayd.service
4243 dist_gatewayddocumentroot_DATA = \
4244 src/journal-remote/browse.html
4249 units/systemd-journal-gatewayd.service.in
4251 # ------------------------------------------------------------------------------
4253 systemd_socket_proxyd_SOURCES = \
4254 src/socket-proxy/socket-proxyd.c
4256 systemd_socket_proxyd_LDADD = \
4259 # ------------------------------------------------------------------------------
4261 systemd_coredump_SOURCES = \
4262 src/journal/coredump.c \
4263 src/journal/coredump-vacuum.c \
4264 src/journal/coredump-vacuum.h
4266 systemd_coredump_LDADD = \
4270 systemd_coredump_SOURCES += \
4271 src/journal/stacktrace.c \
4272 src/journal/stacktrace.h
4274 systemd_coredump_LDADD += \
4278 rootlibexec_PROGRAMS += \
4281 dist_pkgsysconf_DATA += \
4282 src/journal/coredump.conf
4284 coredumpctl_SOURCES = \
4285 src/journal/coredumpctl.c
4287 coredumpctl_LDADD = \
4294 test-coredump-vacuum
4296 test_coredump_vacuum_SOURCES = \
4297 src/journal/test-coredump-vacuum.c \
4298 src/journal/coredump-vacuum.c \
4299 src/journal/coredump-vacuum.h
4301 test_coredump_vacuum_LDADD = \
4304 if ENABLE_BASH_COMPLETION
4305 dist_bashcompletion_DATA += \
4306 shell-completion/bash/coredumpctl
4309 if ENABLE_ZSH_COMPLETION
4310 dist_zshcompletion_DATA += \
4311 shell-completion/zsh/_coredumpctl
4314 nodist_sysctl_DATA = \
4315 sysctl.d/50-coredump.conf
4318 sysctl.d/50-coredump.conf
4322 sysctl.d/50-coredump.conf.in
4324 # ------------------------------------------------------------------------------
4326 systemd_binfmt_SOURCES = \
4329 systemd_binfmt_LDADD = \
4332 rootlibexec_PROGRAMS += \
4335 dist_systemunit_DATA += \
4336 units/proc-sys-fs-binfmt_misc.automount \
4337 units/proc-sys-fs-binfmt_misc.mount
4339 nodist_systemunit_DATA += \
4340 units/systemd-binfmt.service
4343 $(prefix)/lib/binfmt.d \
4344 $(sysconfdir)/binfmt.d
4346 SYSINIT_TARGET_WANTS += \
4347 systemd-binfmt.service \
4348 proc-sys-fs-binfmt_misc.automount
4353 units/systemd-binfmt.service.in
4355 # ------------------------------------------------------------------------------
4357 systemd_vconsole_setup_SOURCES = \
4358 src/vconsole/vconsole-setup.c
4360 systemd_vconsole_setup_LDADD = \
4363 rootlibexec_PROGRAMS += \
4364 systemd-vconsole-setup
4366 nodist_udevrules_DATA += \
4367 src/vconsole/90-vconsole.rules
4369 nodist_systemunit_DATA += \
4370 units/systemd-vconsole-setup.service
4372 SYSINIT_TARGET_WANTS += \
4373 systemd-vconsole-setup.service
4377 src/vconsole/90-vconsole.rules.in \
4378 units/systemd-vconsole-setup.service.in
4380 # ------------------------------------------------------------------------------
4382 systemd_bootchart_SOURCES = \
4383 src/bootchart/bootchart.c \
4384 src/bootchart/bootchart.h \
4385 src/bootchart/store.c \
4386 src/bootchart/store.h \
4387 src/bootchart/svg.c \
4390 systemd_bootchart_LDADD = \
4393 rootlibexec_PROGRAMS += \
4396 dist_pkgsysconf_DATA += \
4397 src/bootchart/bootchart.conf
4399 nodist_systemunit_DATA += \
4400 units/systemd-bootchart.service
4404 units/systemd-bootchart.service.in
4406 # ------------------------------------------------------------------------------
4407 if ENABLE_QUOTACHECK
4408 rootlibexec_PROGRAMS += \
4411 nodist_systemunit_DATA += \
4412 units/systemd-quotacheck.service
4414 systemd_quotacheck_SOURCES = \
4415 src/quotacheck/quotacheck.c
4417 systemd_quotacheck_LDADD = \
4422 units/systemd-quotacheck.service.in
4424 nodist_systemunit_DATA += \
4425 units/quotaon.service
4427 # ------------------------------------------------------------------------------
4428 if ENABLE_RANDOMSEED
4429 rootlibexec_PROGRAMS += \
4432 nodist_systemunit_DATA += \
4433 units/systemd-random-seed.service
4435 systemd_random_seed_SOURCES = \
4436 src/random-seed/random-seed.c
4438 systemd_random_seed_LDADD = \
4441 SYSINIT_TARGET_WANTS += \
4442 systemd-random-seed.service
4447 units/systemd-random-seed.service.in
4449 # ------------------------------------------------------------------------------
4451 rootlibexec_PROGRAMS += \
4454 nodist_systemunit_DATA += \
4455 units/systemd-backlight@.service
4457 systemd_backlight_SOURCES = \
4458 src/backlight/backlight.c
4460 systemd_backlight_LDADD = \
4465 units/systemd-backlight@.service.in
4467 # ------------------------------------------------------------------------------
4469 rootlibexec_PROGRAMS += \
4472 nodist_systemunit_DATA += \
4473 units/systemd-rfkill.service
4475 dist_systemunit_DATA += \
4476 units/systemd-rfkill.socket
4478 systemd_rfkill_SOURCES = \
4481 systemd_rfkill_LDADD = \
4486 units/systemd-rfkill.service.in
4488 # ------------------------------------------------------------------------------
4489 if HAVE_LIBCRYPTSETUP
4490 rootlibexec_PROGRAMS += \
4493 systemgenerator_PROGRAMS += \
4494 systemd-cryptsetup-generator
4496 dist_systemunit_DATA += \
4497 units/cryptsetup.target \
4498 units/cryptsetup-pre.target
4500 systemd_cryptsetup_SOURCES = \
4501 src/cryptsetup/cryptsetup.c
4503 systemd_cryptsetup_CFLAGS = \
4505 $(LIBCRYPTSETUP_CFLAGS)
4507 systemd_cryptsetup_LDADD = \
4509 $(LIBCRYPTSETUP_LIBS)
4511 systemd_cryptsetup_generator_SOURCES = \
4512 src/cryptsetup/cryptsetup-generator.c
4514 systemd_cryptsetup_generator_LDADD = \
4517 SYSINIT_TARGET_WANTS += \
4522 # ------------------------------------------------------------------------------
4524 systemd_hostnamed_SOURCES = \
4525 src/hostname/hostnamed.c
4527 systemd_hostnamed_LDADD = \
4530 rootlibexec_PROGRAMS += \
4533 nodist_systemunit_DATA += \
4534 units/systemd-hostnamed.service
4536 dist_systemunit_DATA_busnames += \
4537 units/org.freedesktop.hostname1.busname
4539 dist_dbuspolicy_DATA += \
4540 src/hostname/org.freedesktop.hostname1.conf
4542 dist_dbussystemservice_DATA += \
4543 src/hostname/org.freedesktop.hostname1.service
4545 polkitpolicy_files += \
4546 src/hostname/org.freedesktop.hostname1.policy
4548 SYSTEM_UNIT_ALIASES += \
4549 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4551 BUSNAMES_TARGET_WANTS += \
4552 org.freedesktop.hostname1.busname
4554 hostnamectl_SOURCES = \
4555 src/hostname/hostnamectl.c
4557 hostnamectl_LDADD = \
4563 if ENABLE_BASH_COMPLETION
4564 dist_bashcompletion_DATA += \
4565 shell-completion/bash/hostnamectl
4568 if ENABLE_ZSH_COMPLETION
4569 dist_zshcompletion_DATA += \
4570 shell-completion/zsh/_hostnamectl
4574 polkitpolicy_in_files += \
4575 src/hostname/org.freedesktop.hostname1.policy.in
4578 units/systemd-hostnamed.service.in
4580 # ------------------------------------------------------------------------------
4581 dist_systemunit_DATA_busnames += \
4582 units/org.freedesktop.systemd1.busname
4584 BUSNAMES_TARGET_WANTS += \
4585 org.freedesktop.systemd1.busname
4587 # ------------------------------------------------------------------------------
4589 systemd_localed_SOURCES = \
4590 src/locale/localed.c
4592 systemd_localed_LDADD = \
4596 systemd_localed_CFLAGS = \
4600 nodist_systemunit_DATA += \
4601 units/systemd-localed.service
4603 dist_systemunit_DATA_busnames += \
4604 units/org.freedesktop.locale1.busname
4606 rootlibexec_PROGRAMS += \
4609 dist_dbuspolicy_DATA += \
4610 src/locale/org.freedesktop.locale1.conf
4612 dist_dbussystemservice_DATA += \
4613 src/locale/org.freedesktop.locale1.service
4615 polkitpolicy_files += \
4616 src/locale/org.freedesktop.locale1.policy
4618 SYSTEM_UNIT_ALIASES += \
4619 systemd-localed.service dbus-org.freedesktop.locale1.service
4621 BUSNAMES_TARGET_WANTS += \
4622 org.freedesktop.locale1.busname
4624 dist_pkgdata_DATA = \
4625 src/locale/kbd-model-map \
4626 src/locale/language-fallback-map
4628 localectl_SOURCES = \
4629 src/locale/localectl.c
4637 if ENABLE_BASH_COMPLETION
4638 dist_bashcompletion_DATA += \
4639 shell-completion/bash/localectl
4642 if ENABLE_ZSH_COMPLETION
4643 dist_zshcompletion_DATA += \
4644 shell-completion/zsh/_localectl
4648 .PHONY: update-kbd-model-map
4650 polkitpolicy_in_files += \
4651 src/locale/org.freedesktop.locale1.policy.in
4654 units/systemd-localed.service.in
4656 # ------------------------------------------------------------------------------
4658 systemd_timedated_SOURCES = \
4659 src/timedate/timedated.c
4661 systemd_timedated_LDADD = \
4664 rootlibexec_PROGRAMS += \
4667 dist_dbussystemservice_DATA += \
4668 src/timedate/org.freedesktop.timedate1.service
4670 dist_dbuspolicy_DATA += \
4671 src/timedate/org.freedesktop.timedate1.conf
4673 nodist_systemunit_DATA += \
4674 units/systemd-timedated.service
4676 dist_systemunit_DATA_busnames += \
4677 units/org.freedesktop.timedate1.busname
4679 polkitpolicy_files += \
4680 src/timedate/org.freedesktop.timedate1.policy
4682 SYSTEM_UNIT_ALIASES += \
4683 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4685 BUSNAMES_TARGET_WANTS += \
4686 org.freedesktop.timedate1.busname
4688 timedatectl_SOURCES = \
4689 src/timedate/timedatectl.c
4691 timedatectl_LDADD = \
4697 if ENABLE_BASH_COMPLETION
4698 dist_bashcompletion_DATA += \
4699 shell-completion/bash/timedatectl
4702 if ENABLE_ZSH_COMPLETION
4703 dist_zshcompletion_DATA += \
4704 shell-completion/zsh/_timedatectl
4708 polkitpolicy_in_files += \
4709 src/timedate/org.freedesktop.timedate1.policy.in
4712 units/systemd-timedated.service.in
4714 # ------------------------------------------------------------------------------
4716 systemd_timesyncd_SOURCES = \
4717 src/timesync/timesyncd.c \
4718 src/timesync/timesyncd-manager.c \
4719 src/timesync/timesyncd-manager.h \
4720 src/timesync/timesyncd-conf.c \
4721 src/timesync/timesyncd-conf.h \
4722 src/timesync/timesyncd-server.c \
4723 src/timesync/timesyncd-server.h
4725 nodist_systemd_timesyncd_SOURCES = \
4726 src/timesync/timesyncd-gperf.c
4728 gperf_gperf_sources += \
4729 src/timesync/timesyncd-gperf.gperf
4731 systemd_timesyncd_LDADD = \
4732 libsystemd-network.la \
4735 rootlibexec_PROGRAMS += \
4738 nodist_systemunit_DATA += \
4739 units/systemd-timesyncd.service
4741 GENERAL_ALIASES += \
4742 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4745 units/systemd-timesyncd.service.in
4747 nodist_pkgsysconf_DATA += \
4748 src/timesync/timesyncd.conf
4751 src/timesync/timesyncd.conf.in
4754 # ------------------------------------------------------------------------------
4756 libnss_myhostname_la_SOURCES = \
4757 src/nss-myhostname/nss-myhostname.sym \
4758 src/nss-myhostname/nss-myhostname.c
4760 libnss_myhostname_la_LDFLAGS = \
4767 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4769 libnss_myhostname_la_LIBADD = \
4772 lib_LTLIBRARIES += \
4773 libnss_myhostname.la
4776 # ------------------------------------------------------------------------------
4778 systemd_machined_SOURCES = \
4779 src/machine/machined.c \
4780 src/machine/machined.h
4782 systemd_machined_LDADD = \
4785 rootlibexec_PROGRAMS += \
4788 libmachine_core_la_SOURCES = \
4789 src/machine/machine.c \
4790 src/machine/machine.h \
4791 src/machine/machined-dbus.c \
4792 src/machine/machine-dbus.c \
4793 src/machine/machine-dbus.h \
4794 src/machine/image-dbus.c \
4795 src/machine/image-dbus.h
4797 libmachine_core_la_LIBADD = \
4800 noinst_LTLIBRARIES += \
4803 machinectl_SOURCES = \
4804 src/machine/machinectl.c
4806 machinectl_LDADD = \
4809 rootbin_PROGRAMS += \
4812 if ENABLE_BASH_COMPLETION
4813 dist_bashcompletion_DATA += \
4814 shell-completion/bash/machinectl
4817 test_machine_tables_SOURCES = \
4818 src/machine/test-machine-tables.c
4820 test_machine_tables_LDADD = \
4826 nodist_systemunit_DATA += \
4827 units/systemd-machined.service
4829 dist_systemunit_DATA += \
4832 dist_systemunit_DATA_busnames += \
4833 units/org.freedesktop.machine1.busname
4835 dist_dbussystemservice_DATA += \
4836 src/machine/org.freedesktop.machine1.service
4838 dist_dbuspolicy_DATA += \
4839 src/machine/org.freedesktop.machine1.conf
4841 polkitpolicy_files += \
4842 src/machine/org.freedesktop.machine1.policy
4844 if ENABLE_ZSH_COMPLETION
4845 dist_zshcompletion_DATA += \
4846 shell-completion/zsh/_machinectl \
4847 shell-completion/zsh/_sd_machines
4850 SYSTEM_UNIT_ALIASES += \
4851 systemd-machined.service dbus-org.freedesktop.machine1.service
4853 BUSNAMES_TARGET_WANTS += \
4854 org.freedesktop.machine1.busname
4856 libnss_mymachines_la_SOURCES = \
4857 src/nss-mymachines/nss-mymachines.sym \
4858 src/nss-mymachines/nss-mymachines.c
4860 libnss_mymachines_la_LDFLAGS = \
4867 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4869 libnss_mymachines_la_LIBADD = \
4872 lib_LTLIBRARIES += \
4873 libnss_mymachines.la
4877 polkitpolicy_in_files += \
4878 src/machine/org.freedesktop.machine1.policy.in
4881 units/systemd-machined.service.in
4883 # ------------------------------------------------------------------------------
4892 rootlibexec_PROGRAMS += \
4898 systemd_importd_SOURCES = \
4899 src/import/importd.c
4901 systemd_importd_CFLAGS = \
4903 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
4904 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
4905 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
4907 systemd_importd_LDADD = \
4910 systemd_pull_SOURCES = \
4912 src/import/pull-raw.c \
4913 src/import/pull-raw.h \
4914 src/import/pull-tar.c \
4915 src/import/pull-tar.h \
4916 src/import/pull-dkr.c \
4917 src/import/pull-dkr.h \
4918 src/import/pull-job.c \
4919 src/import/pull-job.h \
4920 src/import/pull-common.c \
4921 src/import/pull-common.h \
4922 src/import/import-common.c \
4923 src/import/import-common.h \
4924 src/import/import-compress.c \
4925 src/import/import-compress.h \
4926 src/import/curl-util.c \
4927 src/import/curl-util.h \
4928 src/import/aufs-util.c \
4929 src/import/aufs-util.h \
4930 src/import/qcow2-util.c \
4931 src/import/qcow2-util.h
4933 systemd_pull_CFLAGS = \
4939 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
4940 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
4942 systemd_pull_LDADD = \
4950 systemd_import_SOURCES = \
4951 src/import/import.c \
4952 src/import/import-raw.c \
4953 src/import/import-raw.h \
4954 src/import/import-tar.c \
4955 src/import/import-tar.h \
4956 src/import/import-common.c \
4957 src/import/import-common.h \
4958 src/import/import-compress.c \
4959 src/import/import-compress.h \
4960 src/import/qcow2-util.c \
4961 src/import/qcow2-util.h
4963 systemd_import_CFLAGS = \
4968 systemd_import_LDADD = \
4974 systemd_export_SOURCES = \
4975 src/import/export.c \
4976 src/import/export-tar.c \
4977 src/import/export-tar.h \
4978 src/import/export-raw.c \
4979 src/import/export-raw.h \
4980 src/import/import-common.c \
4981 src/import/import-common.h \
4982 src/import/import-compress.c \
4983 src/import/import-compress.h
4985 systemd_export_CFLAGS = \
4990 systemd_export_LDADD = \
4996 dist_rootlibexec_DATA = \
4997 src/import/import-pubring.gpg
4999 nodist_systemunit_DATA += \
5000 units/systemd-importd.service
5002 dist_systemunit_DATA_busnames += \
5003 units/org.freedesktop.import1.busname
5005 BUSNAMES_TARGET_WANTS += \
5006 org.freedesktop.import1.busname
5008 SYSTEM_UNIT_ALIASES += \
5009 systemd-importd.service dbus-org.freedesktop.import1.service
5011 dist_dbussystemservice_DATA += \
5012 src/import/org.freedesktop.import1.service
5014 dist_dbuspolicy_DATA += \
5015 src/import/org.freedesktop.import1.conf
5017 polkitpolicy_files += \
5018 src/import/org.freedesktop.import1.policy
5023 test_qcow2_SOURCES = \
5024 src/import/test-qcow2.c \
5025 src/import/qcow2-util.c \
5026 src/import/qcow2-util.h
5028 test_qcow2_CFLAGS = \
5032 test_qcow2_LDADD = \
5044 polkitpolicy_in_files += \
5045 src/import/org.freedesktop.import1.policy.in
5048 units/systemd-importd.service.in \
5049 src/resolve/resolved.conf.in
5052 # ------------------------------------------------------------------------------
5054 systemd_resolved_SOURCES = \
5055 src/resolve/resolved.c \
5056 src/resolve/resolved-manager.c \
5057 src/resolve/resolved-manager.h \
5058 src/resolve/resolved-conf.c \
5059 src/resolve/resolved-conf.h \
5060 src/resolve/resolved-bus.c \
5061 src/resolve/resolved-bus.h \
5062 src/resolve/resolved-link.h \
5063 src/resolve/resolved-link.c \
5064 src/resolve/resolved-llmnr.h \
5065 src/resolve/resolved-llmnr.c \
5066 src/resolve/resolved-def.h \
5067 src/resolve/resolved-dns-rr.h \
5068 src/resolve/resolved-dns-rr.c \
5069 src/resolve/resolved-dns-question.h \
5070 src/resolve/resolved-dns-question.c \
5071 src/resolve/resolved-dns-answer.h \
5072 src/resolve/resolved-dns-answer.c \
5073 src/resolve/resolved-dns-packet.h \
5074 src/resolve/resolved-dns-packet.c \
5075 src/resolve/resolved-dns-query.h \
5076 src/resolve/resolved-dns-query.c \
5077 src/resolve/resolved-dns-transaction.h \
5078 src/resolve/resolved-dns-transaction.c \
5079 src/resolve/resolved-dns-scope.h \
5080 src/resolve/resolved-dns-scope.c \
5081 src/resolve/resolved-dns-server.h \
5082 src/resolve/resolved-dns-server.c \
5083 src/resolve/resolved-dns-cache.h \
5084 src/resolve/resolved-dns-cache.c \
5085 src/resolve/resolved-dns-zone.h \
5086 src/resolve/resolved-dns-zone.c \
5087 src/resolve/resolved-dns-stream.h \
5088 src/resolve/resolved-dns-stream.c \
5089 src/resolve/dns-type.c \
5090 src/resolve/dns-type.h
5092 nodist_systemd_resolved_SOURCES = \
5093 src/resolve/dns_type-from-name.h \
5094 src/resolve/dns_type-to-name.h \
5095 src/resolve/resolved-gperf.c
5097 gperf_gperf_sources += \
5098 src/resolve/resolved-gperf.gperf
5100 gperf_txt_sources += \
5101 src/resolve/dns_type-list.txt
5103 systemd_resolved_LDADD = \
5104 libsystemd-network.la \
5107 rootlibexec_PROGRAMS += \
5110 nodist_systemunit_DATA += \
5111 units/systemd-resolved.service
5113 dist_systemunit_DATA_busnames += \
5114 units/org.freedesktop.resolve1.busname
5116 dist_dbuspolicy_DATA += \
5117 src/resolve/org.freedesktop.resolve1.conf
5119 dist_dbussystemservice_DATA += \
5120 src/resolve/org.freedesktop.resolve1.service
5122 SYSTEM_UNIT_ALIASES += \
5123 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5125 BUSNAMES_TARGET_WANTS += \
5126 org.freedesktop.resolve1.busname
5128 GENERAL_ALIASES += \
5129 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5131 nodist_pkgsysconf_DATA += \
5132 src/resolve/resolved.conf
5137 libnss_resolve_la_SOURCES = \
5138 src/nss-resolve/nss-resolve.sym \
5139 src/nss-resolve/nss-resolve.c
5141 libnss_resolve_la_LDFLAGS = \
5148 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5150 libnss_resolve_la_LIBADD = \
5153 lib_LTLIBRARIES += \
5156 systemd_resolve_host_SOURCES = \
5157 src/resolve-host/resolve-host.c \
5158 src/resolve/resolved-dns-packet.c \
5159 src/resolve/resolved-dns-packet.h \
5160 src/resolve/resolved-dns-rr.c \
5161 src/resolve/resolved-dns-rr.h \
5162 src/resolve/resolved-dns-answer.c \
5163 src/resolve/resolved-dns-answer.h \
5164 src/resolve/resolved-dns-question.c \
5165 src/resolve/resolved-dns-question.h \
5166 src/resolve/dns-type.c \
5167 src/resolve/dns-type.h
5169 nodist_systemd_resolve_host_SOURCES = \
5170 src/resolve/dns_type-from-name.h \
5171 src/resolve/dns_type-to-name.h
5173 systemd_resolve_host_LDADD = \
5176 rootlibexec_PROGRAMS += \
5177 systemd-resolve-host
5182 units/systemd-resolved.service.m4.in
5184 # ------------------------------------------------------------------------------
5186 rootlibexec_PROGRAMS += \
5189 systemd_networkd_SOURCES = \
5190 src/network/networkd.c
5192 systemd_networkd_LDADD = \
5196 systemd_networkd_LDADD += \
5200 noinst_LTLIBRARIES += \
5203 libnetworkd_core_la_CFLAGS = \
5206 libnetworkd_core_la_SOURCES = \
5207 src/libsystemd-network/network-internal.h \
5208 src/network/networkd.h \
5209 src/network/networkd-link.h \
5210 src/network/networkd-link.c \
5211 src/network/networkd-netdev.h \
5212 src/network/networkd-netdev.c \
5213 src/network/networkd-netdev-tunnel.h \
5214 src/network/networkd-netdev-tunnel.c \
5215 src/network/networkd-netdev-veth.h \
5216 src/network/networkd-netdev-veth.c \
5217 src/network/networkd-netdev-vxlan.h \
5218 src/network/networkd-netdev-vxlan.c \
5219 src/network/networkd-netdev-vlan.h \
5220 src/network/networkd-netdev-vlan.c \
5221 src/network/networkd-netdev-macvlan.h \
5222 src/network/networkd-netdev-macvlan.c \
5223 src/network/networkd-netdev-ipvlan.h \
5224 src/network/networkd-netdev-ipvlan.c \
5225 src/network/networkd-netdev-dummy.h \
5226 src/network/networkd-netdev-dummy.c \
5227 src/network/networkd-netdev-tuntap.h \
5228 src/network/networkd-netdev-tuntap.c \
5229 src/network/networkd-netdev-bond.h \
5230 src/network/networkd-netdev-bond.c \
5231 src/network/networkd-netdev-bridge.h \
5232 src/network/networkd-netdev-bridge.c \
5233 src/network/networkd-link-bus.c \
5234 src/network/networkd-ipv4ll.c \
5235 src/network/networkd-dhcp4.c \
5236 src/network/networkd-dhcp6.c \
5237 src/network/networkd-network.h \
5238 src/network/networkd-network.c \
5239 src/network/networkd-network-bus.c \
5240 src/network/networkd-address.h \
5241 src/network/networkd-address.c \
5242 src/network/networkd-route.h \
5243 src/network/networkd-route.c \
5244 src/network/networkd-manager.c \
5245 src/network/networkd-manager-bus.c \
5246 src/network/networkd-fdb.h \
5247 src/network/networkd-fdb.c \
5248 src/network/networkd-address-pool.h \
5249 src/network/networkd-address-pool.c \
5250 src/network/networkd-util.h \
5251 src/network/networkd-util.c
5253 nodist_libnetworkd_core_la_SOURCES = \
5254 src/network/networkd-network-gperf.c \
5255 src/network/networkd-netdev-gperf.c
5257 libnetworkd_core_la_LIBADD = \
5258 libsystemd-network.la \
5261 rootlibexec_PROGRAMS += \
5262 systemd-networkd-wait-online
5264 systemd_networkd_wait_online_CFLAGS = \
5267 systemd_networkd_wait_online_SOURCES = \
5268 src/libsystemd-network/network-internal.h \
5269 src/network/networkd-wait-online.h \
5270 src/network/networkd-wait-online-link.h \
5271 src/network/networkd-wait-online.c \
5272 src/network/networkd-wait-online-manager.c \
5273 src/network/networkd-wait-online-link.c
5275 systemd_networkd_wait_online_LDADD = \
5276 libsystemd-network.la \
5279 rootbin_PROGRAMS += \
5282 networkctl_SOURCES = \
5283 src/network/networkctl.c
5285 networkctl_LDADD = \
5287 libsystemd-network.la
5289 test_network_SOURCES = \
5290 src/network/test-network.c
5292 test_network_LDADD = \
5296 test_network_LDADD += \
5300 test_network_tables_SOURCES = \
5301 src/network/test-network-tables.c \
5302 src/shared/test-tables.h
5304 test_network_tables_LDADD = \
5305 libnetworkd-core.la \
5309 test_network_tables_LDADD += \
5317 dist_systemunit_DATA += \
5318 units/systemd-networkd.socket
5320 nodist_systemunit_DATA += \
5321 units/systemd-networkd.service \
5322 units/systemd-networkd-wait-online.service
5324 dist_systemunit_DATA_busnames += \
5325 units/org.freedesktop.network1.busname
5327 dist_dbussystemservice_DATA += \
5328 src/network/org.freedesktop.network1.service
5330 dist_dbuspolicy_DATA += \
5331 src/network/org.freedesktop.network1.conf
5333 GENERAL_ALIASES += \
5334 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5335 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5336 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5338 SYSTEM_UNIT_ALIASES += \
5339 systemd-networkd.service dbus-org.freedesktop.network1.service
5341 BUSNAMES_TARGET_WANTS += \
5342 org.freedesktop.network1.busname
5344 gperf_gperf_sources += \
5345 src/network/networkd-network-gperf.gperf \
5346 src/network/networkd-netdev-gperf.gperf
5350 units/systemd-networkd.service.m4.in \
5351 units/systemd-networkd-wait-online.service.in
5353 # ------------------------------------------------------------------------------
5355 systemd_logind_SOURCES = \
5356 src/login/logind.c \
5359 nodist_systemd_logind_SOURCES = \
5360 src/login/logind-gperf.c
5362 systemd_logind_LDADD = \
5365 liblogind_core_la_SOURCES = \
5366 src/login/logind-core.c \
5367 src/login/logind-device.c \
5368 src/login/logind-device.h \
5369 src/login/logind-button.c \
5370 src/login/logind-button.h \
5371 src/login/logind-action.c \
5372 src/login/logind-action.h \
5373 src/login/logind-seat.c \
5374 src/login/logind-seat.h \
5375 src/login/logind-session.c \
5376 src/login/logind-session.h \
5377 src/login/logind-session-device.c \
5378 src/login/logind-session-device.h \
5379 src/login/logind-user.c \
5380 src/login/logind-user.h \
5381 src/login/logind-inhibit.c \
5382 src/login/logind-inhibit.h \
5383 src/login/logind-dbus.c \
5384 src/login/logind-session-dbus.c \
5385 src/login/logind-seat-dbus.c \
5386 src/login/logind-user-dbus.c \
5387 src/login/logind-utmp.c \
5388 src/login/logind-acl.h
5390 liblogind_core_la_LIBADD = \
5394 liblogind_core_la_SOURCES += \
5395 src/login/logind-acl.c
5398 noinst_LTLIBRARIES += \
5401 rootlibexec_PROGRAMS += \
5404 loginctl_SOURCES = \
5405 src/login/loginctl.c \
5406 src/login/sysfs-show.h \
5407 src/login/sysfs-show.c
5412 rootbin_PROGRAMS += \
5415 if ENABLE_BASH_COMPLETION
5416 dist_bashcompletion_DATA += \
5417 shell-completion/bash/loginctl
5420 if ENABLE_ZSH_COMPLETION
5421 dist_zshcompletion_DATA += \
5422 shell-completion/zsh/_loginctl \
5423 shell-completion/zsh/_systemd-inhibit
5426 systemd_inhibit_SOURCES = \
5429 systemd_inhibit_LDADD = \
5432 rootbin_PROGRAMS += \
5435 test_login_SOURCES = \
5436 src/libsystemd/sd-login/test-login.c
5438 test_login_LDADD = \
5441 test_login_shared_SOURCES = \
5442 src/login/test-login-shared.c
5444 test_login_shared_LDADD = \
5447 test_inhibit_SOURCES = \
5448 src/login/test-inhibit.c
5450 test_inhibit_LDADD = \
5453 test_login_tables_SOURCES = \
5454 src/login/test-login-tables.c
5456 test_login_tables_LDADD = \
5468 pam_systemd_la_SOURCES = \
5469 src/login/pam_systemd.sym \
5470 src/login/pam_systemd.c
5472 pam_systemd_la_CFLAGS = \
5476 pam_systemd_la_LDFLAGS = \
5482 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5484 pam_systemd_la_LIBADD = \
5488 pamlib_LTLIBRARIES = \
5491 dist_pamconf_DATA = \
5492 src/login/systemd-user
5495 src/login/systemd-user.m4
5498 nodist_systemunit_DATA += \
5499 units/systemd-logind.service
5501 dist_systemunit_DATA += \
5504 dist_systemunit_DATA_busnames += \
5505 units/org.freedesktop.login1.busname
5507 dist_dbussystemservice_DATA += \
5508 src/login/org.freedesktop.login1.service
5510 dist_dbuspolicy_DATA += \
5511 src/login/org.freedesktop.login1.conf
5513 dist_pkgsysconf_DATA += \
5514 src/login/logind.conf
5516 polkitpolicy_files += \
5517 src/login/org.freedesktop.login1.policy
5522 MULTI_USER_TARGET_WANTS += \
5523 systemd-logind.service
5525 SYSTEM_UNIT_ALIASES += \
5526 systemd-logind.service dbus-org.freedesktop.login1.service
5528 BUSNAMES_TARGET_WANTS += \
5529 org.freedesktop.login1.busname
5531 dist_udevrules_DATA += \
5532 src/login/70-uaccess.rules \
5533 src/login/70-power-switch.rules
5535 nodist_udevrules_DATA += \
5536 src/login/71-seat.rules \
5537 src/login/73-seat-late.rules
5541 polkitpolicy_in_files += \
5542 src/login/org.freedesktop.login1.policy.in
5544 gperf_gperf_sources += \
5545 src/login/logind-gperf.gperf
5548 src/login/71-seat.rules.in \
5549 src/login/73-seat-late.rules.in \
5550 units/systemd-logind.service.in
5552 # ------------------------------------------------------------------------------
5555 systemd_user_sessions_SOURCES = \
5556 src/user-sessions/user-sessions.c
5558 systemd_user_sessions_LDADD = \
5561 rootlibexec_PROGRAMS += \
5562 systemd-user-sessions
5564 nodist_systemunit_DATA += \
5565 units/systemd-user-sessions.service
5567 MULTI_USER_TARGET_WANTS += \
5568 systemd-user-sessions.service
5573 units/systemd-user-sessions.service.in
5575 # ------------------------------------------------------------------------------
5578 test/README.testsuite \
5579 test/TEST-01-BASIC \
5580 test/TEST-01-BASIC/Makefile \
5581 test/TEST-01-BASIC/test.sh \
5582 test/TEST-02-CRYPTSETUP \
5583 test/TEST-02-CRYPTSETUP/Makefile \
5584 test/TEST-02-CRYPTSETUP/test.sh \
5586 test/TEST-03-JOBS/Makefile \
5587 test/TEST-03-JOBS/test-jobs.sh \
5588 test/TEST-03-JOBS/test.sh \
5592 test/loopy2.service \
5593 test/loopy3.service \
5594 test/loopy4.service \
5595 test/loopy.service \
5596 test/loopy.service.d \
5597 test/loopy.service.d/compat.conf
5599 # ------------------------------------------------------------------------------
5600 if ENABLE_COMPAT_LIBS
5601 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5602 $(AM_V_at)$(MKDIR_P) $(dir $@)
5603 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5606 libsystemd-journal.c \
5607 libsystemd-login.c \
5608 libsystemd-id128.c \
5611 nodist_libsystemd_journal_la_SOURCES = \
5612 libsystemd-journal.c
5614 libsystemd_journal_la_SOURCES = \
5615 src/compat-libs/libsystemd-journal.sym
5617 libsystemd_journal_la_CPPFLAGS = \
5619 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5621 libsystemd_journal_la_LDFLAGS = \
5623 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5624 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5626 libsystemd_journal_la_LIBADD = \
5627 libsystemd-journal-internal.la \
5628 libsystemd-internal.la
5630 nodist_libsystemd_login_la_SOURCES = \
5633 libsystemd_login_la_SOURCES = \
5634 src/compat-libs/libsystemd-login.sym
5636 libsystemd_login_la_CPPFLAGS = \
5638 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5640 libsystemd_login_la_LDFLAGS = \
5642 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5643 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5645 libsystemd_login_la_LIBADD = \
5646 libsystemd-internal.la
5648 nodist_libsystemd_id128_la_SOURCES = \
5651 libsystemd_id128_la_SOURCES = \
5652 src/compat-libs/libsystemd-id128.sym
5654 libsystemd_id128_la_CPPFLAGS = \
5656 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5658 libsystemd_id128_la_LDFLAGS = \
5660 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5661 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5663 libsystemd_id128_la_LIBADD = \
5664 libsystemd-internal.la
5666 nodist_libsystemd_daemon_la_SOURCES = \
5669 libsystemd_daemon_la_SOURCES = \
5670 src/compat-libs/libsystemd-daemon.sym
5672 libsystemd_daemon_la_CPPFLAGS = \
5674 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5676 libsystemd_daemon_la_LDFLAGS = \
5678 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5679 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5681 libsystemd_daemon_la_LIBADD = \
5682 libsystemd-internal.la
5684 lib_LTLIBRARIES += \
5685 libsystemd-journal.la \
5686 libsystemd-login.la \
5687 libsystemd-id128.la \
5688 libsystemd-daemon.la
5690 pkgconfiglib_DATA += \
5691 src/compat-libs/libsystemd-journal.pc \
5692 src/compat-libs/libsystemd-login.pc \
5693 src/compat-libs/libsystemd-id128.pc \
5694 src/compat-libs/libsystemd-daemon.pc
5696 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5697 compat-lib-install-hook:
5698 libname=libsystemd-login.so && $(move-to-rootlibdir)
5699 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5700 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5701 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5703 compat-lib-uninstall-hook:
5704 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5705 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5706 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5707 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5709 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5710 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5714 src/compat-libs/linkwarning.h \
5715 src/compat-libs/libsystemd-journal.pc.in \
5716 src/compat-libs/libsystemd-login.pc.in \
5717 src/compat-libs/libsystemd-id128.pc.in \
5718 src/compat-libs/libsystemd-daemon.pc.in
5720 # ------------------------------------------------------------------------------
5722 '|rootlibexecdir=$(rootlibexecdir)|' \
5723 '|rootbindir=$(rootbindir)|' \
5724 '|bindir=$(bindir)|' \
5725 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5726 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5727 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5728 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5729 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5730 '|pkgdatadir=$(pkgdatadir)|' \
5731 '|systemunitdir=$(systemunitdir)|' \
5732 '|userunitdir=$(userunitdir)|' \
5733 '|systempresetdir=$(systempresetdir)|' \
5734 '|userpresetdir=$(userpresetdir)|' \
5735 '|udevhwdbdir=$(udevhwdbdir)|' \
5736 '|udevrulesdir=$(udevrulesdir)|' \
5737 '|catalogdir=$(catalogdir)|' \
5738 '|tmpfilesdir=$(tmpfilesdir)|' \
5739 '|sysusersdir=$(sysusersdir)|' \
5740 '|sysctldir=$(sysctldir)|' \
5741 '|systemgeneratordir=$(systemgeneratordir)|' \
5742 '|usergeneratordir=$(usergeneratordir)|' \
5743 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5744 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5745 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5746 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5747 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5748 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5749 '|prefix=$(prefix)|' \
5750 '|exec_prefix=$(exec_prefix)|' \
5751 '|libdir=$(libdir)|' \
5752 '|includedir=$(includedir)|' \
5753 '|VERSION=$(VERSION)|' \
5754 '|rootprefix=$(rootprefix)|' \
5755 '|udevlibexecdir=$(udevlibexecdir)|' \
5756 '|SUSHELL=$(SUSHELL)|' \
5757 '|SULOGIN=$(SULOGIN)|' \
5758 '|DEBUGTTY=$(DEBUGTTY)|' \
5761 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5762 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5763 '|MKDIR_P=$(MKDIR_P)|' \
5764 '|QUOTAON=$(QUOTAON)|' \
5765 '|QUOTACHECK=$(QUOTACHECK)|' \
5766 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5767 '|VARLOGDIR=$(varlogdir)|' \
5768 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5769 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5770 '|PYTHON=$(PYTHON)|' \
5771 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5772 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5773 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5774 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5775 '|TTY_GID=$(TTY_GID)|' \
5776 '|systemsleepdir=$(systemsleepdir)|' \
5777 '|systemshutdowndir=$(systemshutdowndir)|' \
5778 '|binfmtdir=$(binfmtdir)|' \
5779 '|modulesloaddir=$(modulesloaddir)|'
5782 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5783 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5792 sysctl.d/%: sysctl.d/%.in
5801 src/core/macros.%: src/core/macros.%.in
5804 src/%.policy.in: src/%.policy.in.in
5807 shell-completion/%: shell-completion/%.in
5818 $(AM_V_GEN)chmod +x $@
5820 src/%.c: src/%.gperf
5821 $(AM_V_at)$(MKDIR_P) $(dir $@)
5822 $(AM_V_GPERF)$(GPERF) < $< > $@
5825 $(AM_V_at)$(MKDIR_P) $(dir $@)
5826 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5828 sysusers.d/%: sysusers.d/%.m4
5829 $(AM_V_at)$(MKDIR_P) $(dir $@)
5830 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5832 tmpfiles.d/%: tmpfiles.d/%.m4
5833 $(AM_V_at)$(MKDIR_P) $(dir $@)
5834 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5838 $(AM_V_at)$(MKDIR_P) $(dir $@)
5839 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5841 units/user/%: units/user/%.m4
5842 $(AM_V_at)$(MKDIR_P) $(dir $@)
5843 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5846 nodist_polkitpolicy_DATA = \
5847 $(polkitpolicy_files) \
5848 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5852 $(polkitpolicy_in_files) \
5853 $(polkitpolicy_in_in_files)
5855 # ------------------------------------------------------------------------------
5857 man/custom-entities.ent: configure.ac
5858 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5859 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5860 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5864 man/custom-entities.ent
5869 --stringparam man.output.quietly 1 \
5870 --stringparam funcsynopsis.style ansi \
5871 --stringparam man.authors.section.enabled 0 \
5872 --stringparam man.copyright.section.enabled 0 \
5873 --stringparam systemd.version $(VERSION) \
5874 --path '$(builddir)/man:$(srcdir)/man'
5876 XSLTPROC_PROCESS_MAN = \
5877 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5879 XSLTPROC_PROCESS_HTML = \
5880 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5882 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5883 $(XSLTPROC_PROCESS_MAN)
5885 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5886 $(XSLTPROC_PROCESS_MAN)
5888 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5889 $(XSLTPROC_PROCESS_MAN)
5891 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5892 $(XSLTPROC_PROCESS_MAN)
5894 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5895 $(XSLTPROC_PROCESS_MAN)
5897 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5898 $(XSLTPROC_PROCESS_HTML)
5901 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5907 man/custom-html.xsl \
5910 # ------------------------------------------------------------------------------
5913 docs/sysvinit/README
5918 docs/sysvinit/README: docs/sysvinit/README.in
5921 docs/var-log/README: docs/var-log/README.in
5925 docs/sysvinit/README \
5930 docs/sysvinit/README.in \
5931 docs/var-log/README.in
5933 SOCKETS_TARGET_WANTS += \
5934 systemd-initctl.socket
5938 MULTI_USER_TARGET_WANTS += \
5939 systemd-update-utmp-runlevel.service
5940 GRAPHICAL_TARGET_WANTS += \
5941 systemd-update-utmp-runlevel.service
5942 RESCUE_TARGET_WANTS += \
5943 systemd-update-utmp-runlevel.service
5946 SYSINIT_TARGET_WANTS += \
5947 systemd-update-utmp.service
5950 SYSINIT_TARGET_WANTS += \
5951 systemd-update-done.service
5953 LOCAL_FS_TARGET_WANTS += \
5954 systemd-remount-fs.service \
5956 var-lib-machines.mount
5958 MULTI_USER_TARGET_WANTS += \
5960 systemd-ask-password-wall.path
5962 SYSINIT_TARGET_WANTS += \
5963 dev-hugepages.mount \
5965 sys-kernel-config.mount \
5966 sys-kernel-debug.mount \
5967 sys-fs-fuse-connections.mount \
5968 systemd-sysctl.service \
5969 systemd-ask-password-console.path
5972 SYSTEM_UNIT_ALIASES += \
5973 poweroff.target runlevel0.target \
5974 rescue.target runlevel1.target \
5975 multi-user.target runlevel2.target \
5976 multi-user.target runlevel3.target \
5977 multi-user.target runlevel4.target \
5978 graphical.target runlevel5.target \
5979 reboot.target runlevel6.target
5982 SYSTEM_UNIT_ALIASES += \
5983 graphical.target default.target \
5984 reboot.target ctrl-alt-del.target \
5985 getty@.service autovt@.service
5987 USER_UNIT_ALIASES += \
5988 $(systemunitdir)/shutdown.target shutdown.target \
5989 $(systemunitdir)/sockets.target sockets.target \
5990 $(systemunitdir)/timers.target timers.target \
5991 $(systemunitdir)/paths.target paths.target \
5992 $(systemunitdir)/bluetooth.target bluetooth.target \
5993 $(systemunitdir)/printer.target printer.target \
5994 $(systemunitdir)/sound.target sound.target \
5995 $(systemunitdir)/smartcard.target smartcard.target
5997 USER_UNIT_ALIASES += \
5998 $(systemunitdir)/busnames.target busnames.target
6000 GENERAL_ALIASES += \
6001 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6002 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6003 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6004 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6008 $(systemunitdir)/runlevel1.target.wants \
6009 $(systemunitdir)/runlevel2.target.wants \
6010 $(systemunitdir)/runlevel3.target.wants \
6011 $(systemunitdir)/runlevel4.target.wants \
6012 $(systemunitdir)/runlevel5.target.wants
6016 $(prefix)/lib/modules-load.d \
6017 $(sysconfdir)/modules-load.d \
6018 $(prefix)/lib/systemd/network \
6019 $(sysconfdir)/systemd/network \
6020 $(prefix)/lib/sysctl.d \
6021 $(sysconfdir)/sysctl.d \
6022 $(prefix)/lib/kernel/install.d \
6023 $(sysconfdir)/kernel/install.d \
6024 $(systemshutdowndir) \
6026 $(systemgeneratordir) \
6027 $(usergeneratordir) \
6030 $(pkgsysconfdir)/system \
6031 $(pkgsysconfdir)/system/multi-user.target.wants \
6032 $(pkgsysconfdir)/system/getty.target.wants \
6033 $(pkgsysconfdir)/user \
6034 $(dbussessionservicedir) \
6035 $(sysconfdir)/xdg/systemd
6037 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6039 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6041 install-data-hook: $(INSTALL_DATA_HOOKS)
6043 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6045 clean-local: $(CLEAN_LOCAL_HOOKS)
6046 rm -rf $(abs_srcdir)/install-tree
6047 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6048 $(abs_srcdir)/hwdb/iab.txt
6050 DISTCHECK_CONFIGURE_FLAGS = \
6051 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6052 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6053 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6054 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6055 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6056 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6057 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6058 --with-rootprefix=$$dc_install_base \
6059 --enable-compat-libs
6062 DISTCHECK_CONFIGURE_FLAGS += \
6063 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6064 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6066 DISTCHECK_CONFIGURE_FLAGS += \
6067 --with-sysvinit-path= \
6068 --with-sysvrcnd-path=
6072 DISTCHECK_CONFIGURE_FLAGS += \
6075 DISTCHECK_CONFIGURE_FLAGS += \
6080 # Require python when making dist
6082 .PHONY: dist-check-python dist-check-compat-libs dist-check-help
6085 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6089 dist-check-compat-libs:
6090 if !ENABLE_COMPAT_LIBS
6091 @echo "*** compat-libs must be enabled in order to make dist"
6095 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6096 for i in $(abspath $^); do \
6097 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6098 echo "$(basename $$i) --help output is too wide:"; \
6099 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6103 dist: dist-check-python dist-check-compat-libs
6107 ( cd $(top_srcdir)/hwdb && \
6108 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6109 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6110 wget -O ma-large.txt 'https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MA-L&format=txt' && \
6111 wget -O ma-medium.txt 'https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MA-M&format=txt' && \
6112 wget -O ma-small.txt 'https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MA-S&format=txt' && \
6115 .PHONY: built-sources
6116 built-sources: $(BUILT_SOURCES)
6120 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6124 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6126 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6130 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6134 scp man/*.html gardel:public/systemd-man/
6136 .PHONY: lennart-fedora
6138 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6140 .PHONY: install-tree
6142 rm -rf $(abs_srcdir)/install-tree
6143 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6144 tree $(abs_srcdir)/install-tree
6146 # Let's run all tests of the test suite, but under valgrind. Let's
6147 # exclude the one perl script we have in there
6148 .PHONY: valgrind-tests
6149 valgrind-tests: $(TESTS)
6150 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6151 if file $$f | grep -q shell; then \
6152 echo -e "$${x}Skipping non-binary $$f"; else \
6153 echo -e "$${x}Running $$f"; \
6154 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6159 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6161 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6162 $(AM_V_GEN)sort -u $^ > $@
6164 .PHONY: check-api-docs
6165 check-api-docs: exported man
6166 $(AM_V_GEN)for symbol in `cat exported` ; do \
6167 if test -f $(builddir)/man/$$symbol.html ; then \
6168 echo " Symbol $$symbol() is documented." ; \
6170 echo "‣ Symbol $$symbol() lacks documentation." ; \
6174 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6175 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6177 undefined defined: $(ALL_OBJECTS)
6178 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6179 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6180 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6186 .PHONY: check-api-unused
6187 check-api-unused: defined undefined exported
6188 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6190 .PHONY: check-includes
6191 check-includes: $(top_srcdir)/tools/check-includes.pl
6192 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6193 | xargs $(top_srcdir)/tools/check-includes.pl
6196 $(top_srcdir)/tools/check-includes.pl
6198 # Stupid test that everything purported to be exported really is
6199 define generate-sym-test
6200 $(AM_V_at)$(MKDIR_P) $(dir $@)
6201 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6202 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6203 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6204 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6205 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6206 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6207 $(AM_V_at)printf 'return 0; }\n' >> $@
6210 test-libsystemd-sym.c: \
6211 $(top_builddir)/src/libsystemd/libsystemd.sym \
6212 src/systemd/sd-journal.h \
6213 src/systemd/sd-daemon.h \
6214 src/systemd/sd-login.h \
6215 src/systemd/sd-bus.h \
6216 src/systemd/sd-utf8.h \
6217 src/systemd/sd-resolve.h \
6218 src/systemd/sd-path.h \
6219 src/systemd/sd-event.h
6220 $(generate-sym-test)
6222 test-libudev-sym.c: \
6223 src/libudev/libudev.sym \
6225 $(generate-sym-test)
6227 nodist_test_libsystemd_sym_SOURCES = \
6228 test-libsystemd-sym.c
6229 test_libsystemd_sym_LDADD = \
6232 nodist_test_libudev_sym_SOURCES = \
6234 test_libudev_sym_CFLAGS = \
6236 -Wno-deprecated-declarations
6237 test_libudev_sym_LDADD = \
6241 test-libsystemd-sym.c \
6245 test-libsystemd-sym.c \
6249 test-libsystemd-sym \
6254 cppcheck --enable=all -q $(top_srcdir)
6256 # Used to extract compile flags for YCM.
6261 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6264 tools/gdb-sd_dump_hashmaps.py
6267 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6270 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -