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 =
159 in_files = $(filter %.in,$(EXTRA_DIST))
160 in_in_files = $(filter %.in.in, $(in_files))
161 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
163 CLEANFILES = $(BUILT_SOURCES) \
164 $(pkgconfigdata_DATA) \
165 $(pkgconfiglib_DATA) \
166 $(in_files:.in=) $(in_in_files:.in.in=) \
169 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
170 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
171 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
174 -include $(top_builddir)/config.h \
175 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
176 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
177 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
178 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
179 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
180 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
181 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
182 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
183 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
184 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
185 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
186 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
187 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
188 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
189 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
190 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
191 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
192 -DROOTPREFIX=\"$(rootprefix)\" \
193 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
194 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
195 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
196 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
197 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
198 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
199 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
200 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
201 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
202 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
203 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
204 -DQUOTACHECK=\"$(QUOTACHECK)\" \
205 -DKEXEC=\"$(KEXEC)\" \
206 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
207 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
208 -DLIBDIR=\"$(libdir)\" \
209 -DROOTLIBDIR=\"$(rootlibdir)\" \
210 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
211 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
212 -I $(top_srcdir)/src \
213 -I $(top_builddir)/src/basic \
214 -I $(top_srcdir)/src/basic \
215 -I $(top_srcdir)/src/shared \
216 -I $(top_builddir)/src/shared \
217 -I $(top_srcdir)/src/network \
218 -I $(top_srcdir)/src/login \
219 -I $(top_srcdir)/src/journal \
220 -I $(top_builddir)/src/journal \
221 -I $(top_srcdir)/src/timedate \
222 -I $(top_srcdir)/src/timesync \
223 -I $(top_srcdir)/src/resolve \
224 -I $(top_builddir)/src/resolve \
225 -I $(top_srcdir)/src/systemd \
226 -I $(top_builddir)/src/core \
227 -I $(top_srcdir)/src/core \
228 -I $(top_srcdir)/src/libudev \
229 -I $(top_srcdir)/src/udev \
230 -I $(top_srcdir)/src/udev/net \
231 -I $(top_builddir)/src/udev \
232 -I $(top_srcdir)/src/libsystemd/sd-bus \
233 -I $(top_srcdir)/src/libsystemd/sd-event \
234 -I $(top_srcdir)/src/libsystemd/sd-login \
235 -I $(top_srcdir)/src/libsystemd/sd-netlink \
236 -I $(top_srcdir)/src/libsystemd/sd-network \
237 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
238 -I $(top_srcdir)/src/libsystemd/sd-device \
239 -I $(top_srcdir)/src/libsystemd-network \
242 AM_CFLAGS = $(OUR_CFLAGS)
243 AM_LDFLAGS = $(OUR_LDFLAGS)
245 # ------------------------------------------------------------------------------
246 define move-to-rootlibdir
247 if test "$(libdir)" != "$(rootlibdir)"; then \
248 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
249 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
250 rm -f $(DESTDIR)$(libdir)/$$libname && \
251 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
252 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
258 SHUTDOWN_TARGET_WANTS =
259 LOCAL_FS_TARGET_WANTS =
260 MULTI_USER_TARGET_WANTS =
261 GRAPHICAL_TARGET_WANTS =
262 RESCUE_TARGET_WANTS =
263 SYSINIT_TARGET_WANTS =
264 SOCKETS_TARGET_WANTS =
265 BUSNAMES_TARGET_WANTS =
266 TIMERS_TARGET_WANTS =
267 USER_SOCKETS_TARGET_WANTS =
268 USER_DEFAULT_TARGET_WANTS =
269 USER_BUSNAMES_TARGET_WANTS =
271 SYSTEM_UNIT_ALIASES =
275 install-target-wants-hook:
276 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
277 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
280 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
281 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
282 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
283 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
284 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
285 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
286 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
288 install-busnames-target-wants-hook:
289 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
290 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
293 [ -z "$$what" ] || ( \
294 dir=$(DESTDIR)$$dir/$$wants.wants && \
295 $(MKDIR_P) -m 0755 $$dir && \
298 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
301 install-directories-hook:
302 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
304 install-aliases-hook:
305 set -- $(SYSTEM_UNIT_ALIASES) && \
306 dir=$(systemunitdir) && $(install-aliases)
307 set -- $(USER_UNIT_ALIASES) && \
308 dir=$(userunitdir) && $(install-relative-aliases)
309 set -- $(GENERAL_ALIASES) && \
310 dir= && $(install-relative-aliases)
312 define install-aliases
313 while [ -n "$$1" ]; do \
314 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
315 rm -f $(DESTDIR)$$dir/$$2 && \
316 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
317 shift 2 || exit $$?; \
321 define install-relative-aliases
322 while [ -n "$$1" ]; do \
323 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
324 rm -f $(DESTDIR)$$dir/$$2 && \
325 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
326 shift 2 || exit $$?; \
330 install-touch-usr-hook:
331 touch -c $(DESTDIR)/$(prefix)
333 INSTALL_EXEC_HOOKS += \
334 install-target-wants-hook \
335 install-directories-hook \
336 install-aliases-hook \
337 install-touch-usr-hook
339 INSTALL_EXEC_HOOKS += \
340 install-busnames-target-wants-hook
342 # ------------------------------------------------------------------------------
343 AM_V_M4 = $(AM_V_M4_$(V))
344 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
345 AM_V_M4_0 = @echo " M4 " $@;
347 AM_V_XSLT = $(AM_V_XSLT_$(V))
348 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
349 AM_V_XSLT_0 = @echo " XSLT " $@;
351 AM_V_GPERF = $(AM_V_GPERF_$(V))
352 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
353 AM_V_GPERF_0 = @echo " GPERF " $@;
355 AM_V_LN = $(AM_V_LN_$(V))
356 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
357 AM_V_LN_0 = @echo " LN " $@;
359 AM_V_RM = $(AM_V_RM_$(V))
360 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
361 AM_V_RM_0 = @echo " RM " $@;
363 # ------------------------------------------------------------------------------
367 systemd-ask-password \
368 systemd-tty-ask-password-agent \
369 systemd-machine-id-setup \
376 systemd-detect-virt \
380 systemd-stdio-bridge \
384 src/kernel-install/kernel-install
386 dist_kernelinstall_SCRIPTS = \
387 src/kernel-install/50-depmod.install \
388 src/kernel-install/90-loaderentry.install
390 rootlibexec_PROGRAMS = \
392 systemd-cgroups-agent \
396 systemd-reply-password \
398 systemd-machine-id-commit \
403 systemd-socket-proxyd \
407 rootlibexec_PROGRAMS += \
411 systemgenerator_PROGRAMS = \
412 systemd-getty-generator \
413 systemd-fstab-generator \
414 systemd-system-update-generator \
415 systemd-debug-generator
417 if ENABLE_BASH_COMPLETION
418 dist_bashcompletion_DATA = \
419 shell-completion/bash/busctl \
420 shell-completion/bash/journalctl \
421 shell-completion/bash/systemd-analyze \
422 shell-completion/bash/systemd-cat \
423 shell-completion/bash/systemd-cgls \
424 shell-completion/bash/systemd-cgtop \
425 shell-completion/bash/systemd-delta \
426 shell-completion/bash/systemd-detect-virt \
427 shell-completion/bash/systemd-nspawn \
428 shell-completion/bash/systemd-run \
429 shell-completion/bash/udevadm \
430 shell-completion/bash/kernel-install
432 nodist_bashcompletion_DATA = \
433 shell-completion/bash/systemctl
436 if ENABLE_ZSH_COMPLETION
437 dist_zshcompletion_DATA = \
438 shell-completion/zsh/_busctl \
439 shell-completion/zsh/_journalctl \
440 shell-completion/zsh/_udevadm \
441 shell-completion/zsh/_kernel-install \
442 shell-completion/zsh/_systemd-nspawn \
443 shell-completion/zsh/_systemd-analyze \
444 shell-completion/zsh/_systemd-run \
445 shell-completion/zsh/_sd_hosts_or_user_at_host \
446 shell-completion/zsh/_sd_outputmodes \
447 shell-completion/zsh/_sd_unit_files \
448 shell-completion/zsh/_systemd-delta \
449 shell-completion/zsh/_systemd
451 nodist_zshcompletion_DATA = \
452 shell-completion/zsh/_systemctl
456 shell-completion/bash/systemctl.in \
457 shell-completion/zsh/_systemctl.in
460 $(nodist_bashcompletion_DATA) \
461 $(nodist_zshcompletion_DATA)
464 sysctl.d/50-default.conf
466 dist_systemunit_DATA = \
467 units/graphical.target \
468 units/multi-user.target \
469 units/emergency.target \
470 units/sysinit.target \
475 units/local-fs.target \
476 units/local-fs-pre.target \
477 units/initrd.target \
478 units/initrd-fs.target \
479 units/initrd-root-fs.target \
480 units/remote-fs.target \
481 units/remote-fs-pre.target \
482 units/network.target \
483 units/network-pre.target \
484 units/network-online.target \
485 units/nss-lookup.target \
486 units/nss-user-lookup.target \
487 units/poweroff.target \
488 units/reboot.target \
489 units/rescue.target \
490 units/rpcbind.target \
491 units/time-sync.target \
492 units/shutdown.target \
494 units/umount.target \
495 units/sigpwr.target \
497 units/sockets.target \
498 units/timers.target \
500 units/suspend.target \
502 units/slices.target \
505 units/systemd-initctl.socket \
506 units/syslog.socket \
507 units/dev-hugepages.mount \
508 units/dev-mqueue.mount \
509 units/sys-kernel-config.mount \
510 units/sys-kernel-debug.mount \
511 units/sys-fs-fuse-connections.mount \
513 units/var-lib-machines.mount \
514 units/printer.target \
516 units/bluetooth.target \
517 units/smartcard.target \
518 units/systemd-ask-password-wall.path \
519 units/systemd-ask-password-console.path \
520 units/systemd-udevd-control.socket \
521 units/systemd-udevd-kernel.socket \
522 units/system-update.target \
523 units/initrd-switch-root.target \
524 units/machines.target
526 dist_systemunit_DATA += \
527 $(dist_systemunit_DATA_busnames)
529 dist_systemunit_DATA_busnames += \
530 units/busnames.target
532 nodist_systemunit_DATA = \
533 units/getty@.service \
534 units/serial-getty@.service \
535 units/console-shell.service \
536 units/console-getty.service \
537 units/container-getty@.service \
538 units/systemd-initctl.service \
539 units/systemd-remount-fs.service \
540 units/systemd-ask-password-wall.service \
541 units/systemd-ask-password-console.service \
542 units/systemd-sysctl.service \
543 units/emergency.service \
544 units/rescue.service \
545 units/user@.service \
546 units/systemd-suspend.service \
547 units/systemd-halt.service \
548 units/systemd-poweroff.service \
549 units/systemd-reboot.service \
550 units/systemd-kexec.service \
551 units/systemd-fsck@.service \
552 units/systemd-fsck-root.service \
553 units/systemd-machine-id-commit.service \
554 units/systemd-udevd.service \
555 units/systemd-udev-trigger.service \
556 units/systemd-udev-settle.service \
557 units/systemd-hwdb-update.service \
558 units/debug-shell.service \
559 units/initrd-parse-etc.service \
560 units/initrd-cleanup.service \
561 units/initrd-udevadm-cleanup-db.service \
562 units/initrd-switch-root.service \
563 units/systemd-nspawn@.service \
564 units/systemd-update-done.service
567 nodist_systemunit_DATA += \
568 units/systemd-update-utmp.service \
569 units/systemd-update-utmp-runlevel.service
572 dist_userunit_DATA = \
573 units/user/basic.target \
574 units/user/default.target \
575 units/user/exit.target
577 nodist_userunit_DATA = \
578 units/user/systemd-exit.service
580 dist_systempreset_DATA = \
581 system-preset/90-systemd.preset
584 units/getty@.service.m4 \
585 units/serial-getty@.service.m4 \
586 units/console-shell.service.m4.in \
587 units/console-getty.service.m4.in \
588 units/container-getty@.service.m4.in \
589 units/rescue.service.in \
590 units/systemd-initctl.service.in \
591 units/systemd-remount-fs.service.in \
592 units/systemd-update-utmp.service.in \
593 units/systemd-update-utmp-runlevel.service.in \
594 units/systemd-ask-password-wall.service.in \
595 units/systemd-ask-password-console.service.in \
596 units/systemd-sysctl.service.in \
597 units/emergency.service.in \
598 units/systemd-halt.service.in \
599 units/systemd-poweroff.service.in \
600 units/systemd-reboot.service.in \
601 units/systemd-kexec.service.in \
602 units/user/systemd-exit.service.in \
603 units/systemd-fsck@.service.in \
604 units/systemd-fsck-root.service.in \
605 units/systemd-machine-id-commit.service.in \
606 units/user@.service.m4.in \
607 units/debug-shell.service.in \
608 units/systemd-suspend.service.in \
609 units/quotaon.service.in \
610 units/initrd-parse-etc.service.in \
611 units/initrd-cleanup.service.in \
612 units/initrd-udevadm-cleanup-db.service.in \
613 units/initrd-switch-root.service.in \
614 units/systemd-nspawn@.service.in \
615 units/systemd-update-done.service.in
618 nodist_systemunit_DATA += \
619 units/rc-local.service \
620 units/halt-local.service
622 systemgenerator_PROGRAMS += \
623 systemd-sysv-generator \
624 systemd-rc-local-generator
628 src/systemctl/systemd-sysv-install.SKELETON \
629 units/rc-local.service.in \
630 units/halt-local.service.in
632 # automake is broken and can't handle files with a dash in front
633 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
635 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
637 units-uninstall-hook:
638 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
640 INSTALL_DATA_HOOKS += units-install-hook
641 UNINSTALL_DATA_HOOKS += units-uninstall-hook
650 src/libsystemd/sd-bus/PORTING-DBUS1 \
651 src/libsystemd/sd-bus/DIFFERENCES \
652 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
663 @INTLTOOL_POLICY_RULE@
665 # ------------------------------------------------------------------------------
670 include Makefile-man.am
672 .PHONY: man update-man-list
673 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
676 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
678 ${XML_FILES:.xml=.html}
680 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
697 $(AM_V_at)$(MKDIR_P) $(dir $@)
698 $(AM_V_LN)$(LN_S) -f ../../man $@
707 man/index.html: man/systemd.index.html
708 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
716 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
717 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
718 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
720 # This target should only be run manually. It recreates Makefile-man.am
721 # file in the source directory based on all man/*.xml files. Run it after
722 # adding, removing, or changing the conditional in a man page.
723 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
724 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
725 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
726 @echo "Makefile-man.am has been regenerated"
728 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
729 $(AM_V_at)$(MKDIR_P) $(dir $@)
730 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
732 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
733 $(AM_V_at)$(MKDIR_P) $(dir $@)
734 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
737 man/systemd.index.xml \
738 man/systemd.directives.xml
741 tools/make-man-rules.py
748 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
749 tools/make-man-index.py \
750 tools/make-directive-index.py \
751 tools/xml_helper.py \
752 man/glib-event-glue.c
754 # ------------------------------------------------------------------------------
755 noinst_LTLIBRARIES += \
758 libbasic_la_SOURCES = \
759 src/basic/missing.h \
760 src/basic/capability.c \
761 src/basic/capability.h \
762 src/basic/conf-files.c \
763 src/basic/conf-files.h \
764 src/basic/hostname-util.h \
765 src/basic/hostname-util.c \
766 src/basic/unit-name.c \
767 src/basic/unit-name.h \
769 src/basic/securebits.h \
770 src/basic/special.h \
772 src/basic/unaligned.h \
775 src/basic/sparse-endian.h \
779 src/basic/lockfile-util.c \
780 src/basic/lockfile-util.h \
781 src/basic/path-util.c \
782 src/basic/path-util.h \
783 src/basic/time-util.c \
784 src/basic/time-util.h \
785 src/basic/locale-util.c \
786 src/basic/locale-util.h \
787 src/basic/signal-util.c \
788 src/basic/signal-util.h \
789 src/basic/mempool.c \
790 src/basic/mempool.h \
791 src/basic/hashmap.c \
792 src/basic/hashmap.h \
793 src/basic/siphash24.c \
794 src/basic/siphash24.h \
796 src/basic/ordered-set.h \
805 src/basic/env-util.c \
806 src/basic/env-util.h \
809 src/basic/strxcpyx.c \
810 src/basic/strxcpyx.h \
813 src/basic/bus-label.c \
814 src/basic/bus-label.h \
815 src/basic/ratelimit.h \
816 src/basic/ratelimit.c \
817 src/basic/exit-status.c \
818 src/basic/exit-status.h \
821 src/basic/smack-util.c \
822 src/basic/smack-util.h \
823 src/basic/device-nodes.c \
824 src/basic/device-nodes.h \
827 src/basic/gunicode.c \
828 src/basic/gunicode.h \
829 src/basic/socket-util.c \
830 src/basic/socket-util.h \
831 src/basic/in-addr-util.c \
832 src/basic/in-addr-util.h \
833 src/basic/ether-addr-util.h \
834 src/basic/replace-var.c \
835 src/basic/replace-var.h \
836 src/basic/clock-util.c \
837 src/basic/clock-util.h \
838 src/basic/calendarspec.c \
839 src/basic/calendarspec.h \
842 src/basic/MurmurHash2.c \
843 src/basic/MurmurHash2.h \
846 src/basic/cgroup-util.c \
847 src/basic/cgroup-util.h \
848 src/basic/errno-list.c \
849 src/basic/errno-list.h \
850 src/basic/af-list.c \
851 src/basic/af-list.h \
852 src/basic/arphrd-list.c \
853 src/basic/arphrd-list.h \
854 src/basic/terminal-util.c \
855 src/basic/terminal-util.h \
856 src/basic/login-util.h \
857 src/basic/login-util.c \
858 src/basic/cap-list.c \
859 src/basic/cap-list.h \
868 src/basic/barrier.c \
869 src/basic/barrier.h \
872 src/basic/memfd-util.c \
873 src/basic/memfd-util.h \
874 src/basic/process-util.c \
875 src/basic/process-util.h \
876 src/basic/random-util.c \
877 src/basic/random-util.h \
883 src/basic/socket-label.c \
886 src/basic/btrfs-util.c \
887 src/basic/btrfs-util.h \
888 src/basic/btrfs-ctree.h \
889 src/basic/selinux-util.c \
890 src/basic/selinux-util.h \
891 src/basic/mkdir-label.c \
892 src/basic/fileio-label.c \
893 src/basic/fileio-label.h \
899 nodist_libbasic_la_SOURCES = \
900 src/basic/errno-from-name.h \
901 src/basic/errno-to-name.h \
902 src/basic/af-from-name.h \
903 src/basic/af-to-name.h \
904 src/basic/arphrd-from-name.h \
905 src/basic/arphrd-to-name.h \
906 src/basic/cap-from-name.h \
907 src/basic/cap-to-name.h
909 libbasic_la_CFLAGS = \
915 libbasic_la_LIBADD = \
922 # -----------------------------------------------------------------------------
923 noinst_LTLIBRARIES += \
926 libshared_la_SOURCES = \
927 src/shared/output-mode.h \
929 src/shared/udev-util.h \
930 src/shared/linux/auto_dev-ioctl.h \
931 src/shared/initreq.h \
932 src/shared/dns-domain.c \
933 src/shared/dns-domain.h \
934 src/shared/architecture.c \
935 src/shared/architecture.h \
936 src/shared/efivars.c \
937 src/shared/efivars.h \
938 src/shared/formats-util.h \
939 src/shared/fstab-util.c \
940 src/shared/fstab-util.h \
941 src/shared/sleep-config.c \
942 src/shared/sleep-config.h \
943 src/shared/conf-parser.c \
944 src/shared/conf-parser.h \
947 src/shared/spawn-polkit-agent.c \
948 src/shared/spawn-polkit-agent.h \
949 src/shared/apparmor-util.c \
950 src/shared/apparmor-util.h \
951 src/shared/ima-util.c \
952 src/shared/ima-util.h \
953 src/shared/ptyfwd.c \
954 src/shared/ptyfwd.h \
957 src/shared/base-filesystem.c \
958 src/shared/base-filesystem.h \
959 src/shared/uid-range.c \
960 src/shared/uid-range.h \
961 src/shared/nss-util.h \
962 src/shared/install.c \
963 src/shared/install.h \
964 src/shared/install-printf.c \
965 src/shared/install-printf.h \
966 src/shared/path-lookup.c \
967 src/shared/path-lookup.h \
968 src/shared/specifier.c \
969 src/shared/specifier.h \
970 src/shared/dev-setup.c \
971 src/shared/dev-setup.h \
972 src/shared/dropin.c \
973 src/shared/dropin.h \
974 src/shared/condition.c \
975 src/shared/condition.h \
976 src/shared/clean-ipc.c \
977 src/shared/clean-ipc.h \
978 src/shared/generator.h \
979 src/shared/generator.c \
980 src/shared/acpi-fpdt.h \
981 src/shared/acpi-fpdt.c \
982 src/shared/boot-timestamps.h \
983 src/shared/boot-timestamps.c \
984 src/shared/cgroup-show.c \
985 src/shared/cgroup-show.h \
986 src/shared/utmp-wtmp.h \
987 src/shared/watchdog.c \
988 src/shared/watchdog.h \
989 src/shared/spawn-ask-password-agent.c \
990 src/shared/spawn-ask-password-agent.h \
991 src/shared/ask-password-api.c \
992 src/shared/ask-password-api.h \
993 src/shared/switch-root.h \
994 src/shared/switch-root.c \
995 src/shared/import-util.c \
996 src/shared/import-util.h \
997 src/shared/sysctl-util.c \
998 src/shared/sysctl-util.h \
999 src/shared/bus-util.c \
1000 src/shared/bus-util.h \
1001 src/shared/logs-show.c \
1002 src/shared/logs-show.h \
1003 src/shared/machine-image.c \
1004 src/shared/machine-image.h \
1005 src/shared/machine-pool.c \
1006 src/shared/machine-pool.h
1009 libshared_la_SOURCES += \
1010 src/shared/utmp-wtmp.c
1014 libshared_la_SOURCES += \
1015 src/shared/seccomp-util.h \
1016 src/shared/seccomp-util.c
1020 libshared_la_SOURCES += \
1021 src/shared/acl-util.c \
1022 src/shared/acl-util.h
1025 libshared_la_CFLAGS = \
1031 libshared_la_LIBADD = \
1032 libsystemd-internal.la \
1033 libsystemd-journal-internal.la \
1034 libudev-internal.la \
1039 # -----------------------------------------------------------------------------
1041 noinst_LTLIBRARIES += \
1044 libfirewall_la_SOURCES = \
1045 src/shared/firewall-util.h \
1046 src/shared/firewall-util.c
1048 libfirewall_la_CFLAGS = \
1052 libfirewall_la_LIBADD = \
1056 # -----------------------------------------------------------------------------
1058 dist_systemunit_DATA += \
1059 units/ldconfig.service
1061 SYSINIT_TARGET_WANTS += \
1065 # ------------------------------------------------------------------------------
1066 noinst_LTLIBRARIES += \
1069 libcore_la_SOURCES = \
1072 src/core/unit-printf.c \
1073 src/core/unit-printf.h \
1076 src/core/manager.c \
1077 src/core/manager.h \
1078 src/core/transaction.c \
1079 src/core/transaction.h \
1080 src/core/load-fragment.c \
1081 src/core/load-fragment.h \
1082 src/core/service.c \
1083 src/core/service.h \
1086 src/core/busname.c \
1087 src/core/busname.h \
1088 src/core/bus-endpoint.c \
1089 src/core/bus-endpoint.h \
1090 src/core/bus-policy.c \
1091 src/core/bus-policy.h \
1094 src/core/snapshot.c \
1095 src/core/snapshot.h \
1100 src/core/automount.c \
1101 src/core/automount.h \
1112 src/core/load-dropin.c \
1113 src/core/load-dropin.h \
1114 src/core/execute.c \
1115 src/core/execute.h \
1120 src/core/dbus-manager.c \
1121 src/core/dbus-manager.h \
1122 src/core/dbus-unit.c \
1123 src/core/dbus-unit.h \
1124 src/core/dbus-job.c \
1125 src/core/dbus-job.h \
1126 src/core/dbus-service.c \
1127 src/core/dbus-service.h \
1128 src/core/dbus-socket.c \
1129 src/core/dbus-socket.h \
1130 src/core/dbus-busname.c \
1131 src/core/dbus-busname.h \
1132 src/core/dbus-target.c \
1133 src/core/dbus-target.h \
1134 src/core/dbus-snapshot.c \
1135 src/core/dbus-snapshot.h \
1136 src/core/dbus-device.c \
1137 src/core/dbus-device.h \
1138 src/core/dbus-mount.c \
1139 src/core/dbus-mount.h \
1140 src/core/dbus-automount.c \
1141 src/core/dbus-automount.h \
1142 src/core/dbus-swap.c \
1143 src/core/dbus-swap.h \
1144 src/core/dbus-timer.c \
1145 src/core/dbus-timer.h \
1146 src/core/dbus-path.c \
1147 src/core/dbus-path.h \
1148 src/core/dbus-slice.c \
1149 src/core/dbus-slice.h \
1150 src/core/dbus-scope.c \
1151 src/core/dbus-scope.h \
1152 src/core/dbus-execute.c \
1153 src/core/dbus-execute.h \
1154 src/core/dbus-kill.c \
1155 src/core/dbus-kill.h \
1156 src/core/dbus-cgroup.c \
1157 src/core/dbus-cgroup.h \
1160 src/core/selinux-access.c \
1161 src/core/selinux-access.h \
1162 src/core/selinux-setup.c \
1163 src/core/selinux-setup.h \
1164 src/core/smack-setup.c \
1165 src/core/smack-setup.h \
1166 src/core/ima-setup.c \
1167 src/core/ima-setup.h \
1168 src/core/locale-setup.h \
1169 src/core/locale-setup.c \
1170 src/core/hostname-setup.c \
1171 src/core/hostname-setup.h \
1172 src/core/machine-id-setup.c \
1173 src/core/machine-id-setup.h \
1174 src/core/mount-setup.c \
1175 src/core/mount-setup.h \
1176 src/core/kmod-setup.c \
1177 src/core/kmod-setup.h \
1178 src/core/loopback-setup.h \
1179 src/core/loopback-setup.c \
1180 src/core/namespace.c \
1181 src/core/namespace.h \
1182 src/core/killall.h \
1183 src/core/killall.c \
1184 src/core/audit-fd.c \
1185 src/core/audit-fd.h \
1186 src/core/show-status.c \
1187 src/core/show-status.h \
1188 src/core/failure-action.c \
1189 src/core/failure-action.h
1191 nodist_libcore_la_SOURCES = \
1192 src/core/load-fragment-gperf.c \
1193 src/core/load-fragment-gperf-nulstr.c
1195 libcore_la_CFLAGS = \
1200 $(APPARMOR_CFLAGS) \
1204 libcore_la_LIBADD = \
1212 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1213 $(AM_V_at)$(MKDIR_P) $(dir $@)
1214 $(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 ";" }' < $< > $@
1216 gperf_gperf_m4_sources = \
1217 src/core/load-fragment-gperf.gperf.m4
1219 gperf_txt_sources = \
1220 src/basic/errno-list.txt \
1221 src/basic/af-list.txt \
1222 src/basic/arphrd-list.txt \
1223 src/basic/cap-list.txt
1226 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1227 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1228 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1229 $(gperf_txt_sources:-list.txt=-from-name.h) \
1230 $(gperf_txt_sources:-list.txt=-to-name.h)
1233 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1235 $(gperf_txt_sources)
1238 $(gperf_gperf_m4_sources) \
1239 $(gperf_gperf_sources)
1242 $(gperf_txt_sources)
1244 %-from-name.gperf: %-list.txt
1245 $(AM_V_at)$(MKDIR_P) $(dir $@)
1246 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1248 %-from-name.h: %-from-name.gperf
1249 $(AM_V_at)$(MKDIR_P) $(dir $@)
1250 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1253 src/basic/errno-list.txt:
1254 $(AM_V_at)$(MKDIR_P) $(dir $@)
1255 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1257 src/basic/errno-to-name.h: src/basic/errno-list.txt
1258 $(AM_V_at)$(MKDIR_P) $(dir $@)
1259 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1262 src/basic/af-list.txt:
1263 $(AM_V_at)$(MKDIR_P) $(dir $@)
1264 $(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; }' >$@
1266 src/basic/af-to-name.h: src/basic/af-list.txt
1267 $(AM_V_at)$(MKDIR_P) $(dir $@)
1268 $(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 "};"}' <$< >$@
1271 src/basic/arphrd-list.txt:
1272 $(AM_V_at)$(MKDIR_P) $(dir $@)
1273 $(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_//' >$@
1275 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1276 $(AM_V_at)$(MKDIR_P) $(dir $@)
1277 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1279 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1280 $(AM_V_at)$(MKDIR_P) $(dir $@)
1281 $(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 }' <$< >$@
1284 src/basic/cap-list.txt:
1285 $(AM_V_at)$(MKDIR_P) $(dir $@)
1286 $(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 >$@
1288 src/basic/cap-to-name.h: src/basic/cap-list.txt
1289 $(AM_V_at)$(MKDIR_P) $(dir $@)
1290 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1292 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1293 $(AM_V_at)$(MKDIR_P) $(dir $@)
1294 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1296 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1297 $(AM_V_at)$(MKDIR_P) $(dir $@)
1298 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1300 audit_list_includes = -include linux/audit.h -include missing.h
1302 audit_list_includes += -include libaudit.h
1305 src/journal/audit_type-list.txt:
1306 $(AM_V_at)$(MKDIR_P) $(dir $@)
1307 $(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 >$@
1309 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1310 $(AM_V_at)$(MKDIR_P) $(dir $@)
1311 $(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" }' <$< >$@
1314 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1315 $(AM_V_at)$(MKDIR_P) $(dir $@)
1316 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1318 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1319 $(AM_V_at)$(MKDIR_P) $(dir $@)
1320 $(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" }' <$< >$@
1322 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1323 $(AM_V_at)$(MKDIR_P) $(dir $@)
1324 $(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 }' <$< >$@
1326 # ------------------------------------------------------------------------------
1337 dist_pkgsysconf_DATA += \
1338 src/core/system.conf \
1341 dist_dbuspolicy_DATA += \
1342 src/core/org.freedesktop.systemd1.conf
1344 dist_dbussystemservice_DATA += \
1345 src/core/org.freedesktop.systemd1.service
1347 polkitpolicy_in_in_files += \
1348 src/core/org.freedesktop.systemd1.policy.in.in
1350 pkgconfigdata_DATA += \
1353 nodist_rpmmacros_DATA = \
1354 src/core/macros.systemd
1357 src/core/systemd.pc.in \
1358 src/core/macros.systemd.in
1360 # ------------------------------------------------------------------------------
1399 test-hostname-util \
1401 test-terminal-util \
1413 test-strip-tab-ansi \
1454 test/daughter.service \
1456 test/end.service.in \
1459 test/grandchild.service \
1461 test/hello-after-sleep.target \
1462 test/hello.service \
1464 test/parent-deep.slice \
1467 test/sched_idle_bad.service \
1468 test/sched_idle_ok.service \
1469 test/sched_rr_bad.service \
1470 test/sched_rr_change.service \
1471 test/sched_rr_ok.service \
1472 test/shutdown.target \
1473 test/sleep.service \
1474 test/sockets.target \
1476 test/sysinit.target \
1477 test/testsuite.target \
1478 test/timers.target \
1479 test/unstoppable.service \
1480 test/path-changed.service \
1481 test/path-directorynotempty.service \
1482 test/path-existsglob.service \
1483 test/path-exists.service \
1484 test/path-makedirectory.service \
1485 test/path-modified.service \
1486 test/path-mycustomunit.service \
1487 test/path-service.service \
1488 test/path-changed.path \
1489 test/path-directorynotempty.path \
1490 test/path-existsglob.path \
1491 test/path-exists.path \
1492 test/path-makedirectory.path \
1493 test/path-modified.path \
1494 test/path-unit.path \
1495 test/exec-environment-empty.service \
1496 test/exec-environment-multiple.service \
1497 test/exec-environment.service \
1498 test/exec-group.service \
1499 test/exec-ignoresigpipe-no.service \
1500 test/exec-ignoresigpipe-yes.service \
1501 test/exec-personality-x86-64.service \
1502 test/exec-personality-x86.service \
1503 test/exec-privatedevices-no.service \
1504 test/exec-privatedevices-yes.service \
1505 test/exec-privatetmp-no.service \
1506 test/exec-privatetmp-yes.service \
1507 test/exec-systemcallerrornumber.service \
1508 test/exec-systemcallfilter-failing2.service \
1509 test/exec-systemcallfilter-failing.service \
1510 test/exec-systemcallfilter-not-failing2.service \
1511 test/exec-systemcallfilter-not-failing.service \
1512 test/exec-user.service \
1513 test/exec-workingdirectory.service \
1514 test/exec-umask-0177.service \
1515 test/exec-umask-default.service \
1516 test/bus-policy/hello.conf \
1517 test/bus-policy/methods.conf \
1518 test/bus-policy/ownerships.conf \
1519 test/bus-policy/signals.conf \
1520 test/bus-policy/check-own-rules.conf \
1521 test/bus-policy/many-rules.conf \
1522 test/bus-policy/test.conf
1526 src/test/test-helper.h
1528 test_device_nodes_SOURCES = \
1529 src/test/test-device-nodes.c
1531 test_device_nodes_LDADD = \
1534 test_engine_SOURCES = \
1535 src/test/test-engine.c
1537 test_engine_CFLAGS = \
1541 test_engine_LDADD = \
1544 test_job_type_SOURCES = \
1545 src/test/test-job-type.c
1547 test_job_type_CFLAGS = \
1551 test_job_type_LDADD = \
1564 test_loopback_SOURCES = \
1565 src/test/test-loopback.c
1567 test_loopback_LDADD = \
1570 test_hostname_SOURCES = \
1571 src/test/test-hostname.c
1573 test_hostname_LDADD = \
1576 test_dns_domain_SOURCES = \
1577 src/test/test-dns-domain.c
1579 test_dns_domain_LDADD = \
1580 libsystemd-network.la \
1587 test_boot_timestamp_SOURCES = \
1588 src/test/test-boot-timestamps.c
1590 test_boot_timestamp_LDADD = \
1594 test_unit_name_SOURCES = \
1595 src/test/test-unit-name.c
1597 test_unit_name_CFLAGS = \
1601 test_unit_name_LDADD = \
1604 test_unit_file_SOURCES = \
1605 src/test/test-unit-file.c
1607 test_unit_file_CFLAGS = \
1611 test_unit_file_LDADD = \
1614 test_utf8_SOURCES = \
1615 src/test/test-utf8.c
1620 test_capability_SOURCES = \
1621 src/test/test-capability.c
1623 test_capability_LDADD = \
1626 test_async_SOURCES = \
1627 src/test/test-async.c
1629 test_async_LDADD = \
1632 test_locale_util_SOURCES = \
1633 src/test/test-locale-util.c
1635 test_locale_util_LDADD = \
1638 test_copy_SOURCES = \
1639 src/test/test-copy.c
1644 test_sigbus_SOURCES = \
1645 src/test/test-sigbus.c
1647 test_sigbus_LDADD = \
1650 test_condition_SOURCES = \
1651 src/test/test-condition.c
1653 test_condition_LDADD = \
1656 test_fdset_SOURCES = \
1657 src/test/test-fdset.c
1659 test_fdset_LDADD = \
1662 test_fstab_util_SOURCES = \
1663 src/test/test-fstab-util.c
1665 test_fstab_util_LDADD = \
1668 test_ratelimit_SOURCES = \
1669 src/test/test-ratelimit.c
1671 test_ratelimit_LDADD = \
1674 test_util_SOURCES = \
1675 src/test/test-util.c
1680 test_hostname_util_SOURCES = \
1681 src/test/test-hostname-util.c
1683 test_hostname_util_LDADD = \
1686 test_process_util_SOURCES = \
1687 src/test/test-process-util.c
1689 test_process_util_LDADD = \
1692 test_terminal_util_SOURCES = \
1693 src/test/test-terminal-util.c
1695 test_terminal_util_LDADD = \
1698 test_path_lookup_SOURCES = \
1699 src/test/test-path-lookup.c
1701 test_path_lookup_LDADD = \
1704 test_uid_range_SOURCES = \
1705 src/test/test-uid-range.c
1707 test_uid_range_LDADD = \
1710 test_cap_list_SOURCES = \
1711 src/test/test-cap-list.c
1713 test_cap_list_LDADD = \
1716 test_socket_util_SOURCES = \
1717 src/test/test-socket-util.c
1719 test_socket_util_LDADD = \
1722 test_ring_SOURCES = \
1723 src/test/test-ring.c
1728 test_barrier_SOURCES = \
1729 src/test/test-barrier.c
1731 test_barrier_LDADD = \
1734 test_pty_SOURCES = \
1740 test_tmpfiles_SOURCES = \
1741 src/test/test-tmpfiles.c
1743 test_tmpfiles_LDADD = \
1746 test_namespace_SOURCES = \
1747 src/test/test-namespace.c
1749 test_verbs_SOURCES = \
1750 src/test/test-verbs.c
1752 test_verbs_LDADD = \
1755 test_namespace_LDADD = \
1759 src/test/test-hashmap-ordered.c
1761 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1762 $(AM_V_at)$(MKDIR_P) $(dir $@)
1763 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1764 { if (!match($$0, "^#include")) \
1765 gsub(/hashmap/, "ordered_hashmap"); \
1766 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1767 gsub(/Hashmap/, "OrderedHashmap"); \
1770 nodist_test_hashmap_SOURCES = \
1771 src/test/test-hashmap-ordered.c
1773 test_hashmap_SOURCES = \
1774 src/test/test-hashmap.c \
1775 src/test/test-hashmap-plain.c
1777 test_hashmap_LDADD = \
1780 test_set_SOURCES = \
1786 test_bitmap_SOURCES = \
1787 src/test/test-bitmap.c
1789 test_bitmap_LDADD = \
1792 test_xml_SOURCES = \
1798 test_json_SOURCES = \
1799 src/test/test-json.c
1804 test_list_SOURCES = \
1805 src/test/test-list.c
1810 test_unaligned_LDADD = \
1813 test_unaligned_SOURCES = \
1814 src/test/test-unaligned.c
1816 test_tables_SOURCES = \
1817 src/test/test-tables.c \
1818 src/shared/test-tables.h \
1819 src/bus-proxyd/bus-xml-policy.c \
1820 src/bus-proxyd/bus-xml-policy.h \
1821 src/journal/journald-server.c \
1822 src/journal/journald-server.h
1824 test_tables_CPPFLAGS = \
1826 -I$(top_srcdir)/src/bus-proxyd
1828 test_tables_CFLAGS = \
1832 test_tables_LDADD = \
1833 libjournal-core.la \
1837 test_prioq_SOURCES = \
1838 src/test/test-prioq.c
1840 test_prioq_LDADD = \
1843 test_fileio_SOURCES = \
1844 src/test/test-fileio.c
1846 test_fileio_LDADD = \
1849 test_time_SOURCES = \
1850 src/test/test-time.c
1855 test_architecture_SOURCES = \
1856 src/test/test-architecture.c
1858 test_architecture_LDADD = \
1861 test_log_SOURCES = \
1867 test_ipcrm_SOURCES = \
1868 src/test/test-ipcrm.c
1870 test_ipcrm_LDADD = \
1873 test_btrfs_SOURCES = \
1874 src/test/test-btrfs.c
1876 test_btrfs_LDADD = \
1880 test_firewall_util_SOURCES = \
1881 src/test/test-firewall-util.c
1883 test_firewall_util_CFLAGS = \
1887 test_firewall_util_LDADD = \
1893 test_netlink_manual_SOURCES = \
1894 src/test/test-netlink-manual.c
1896 test_netlink_manual_CFLAGS = \
1900 test_netlink_manual_LDADD = \
1904 test_ellipsize_SOURCES = \
1905 src/test/test-ellipsize.c
1907 test_ellipsize_LDADD = \
1910 test_date_SOURCES = \
1911 src/test/test-date.c
1916 test_sleep_SOURCES = \
1917 src/test/test-sleep.c
1919 test_sleep_LDADD = \
1922 test_replace_var_SOURCES = \
1923 src/test/test-replace-var.c
1925 test_replace_var_LDADD = \
1928 test_calendarspec_SOURCES = \
1929 src/test/test-calendarspec.c
1931 test_calendarspec_LDADD = \
1934 test_strip_tab_ansi_SOURCES = \
1935 src/test/test-strip-tab-ansi.c
1937 test_strip_tab_ansi_LDADD = \
1940 test_daemon_SOURCES = \
1941 src/test/test-daemon.c
1943 test_daemon_LDADD = \
1946 test_cgroup_SOURCES = \
1947 src/test/test-cgroup.c
1949 test_cgroup_LDADD = \
1952 test_cgroup_mask_SOURCES = \
1953 src/test/test-cgroup-mask.c
1955 test_cgroup_mask_CPPFLAGS = \
1958 test_cgroup_mask_CFLAGS = \
1962 test_cgroup_mask_LDADD = \
1965 test_cgroup_util_SOURCES = \
1966 src/test/test-cgroup-util.c
1968 test_cgroup_util_LDADD = \
1971 test_env_replace_SOURCES = \
1972 src/test/test-env-replace.c
1974 test_env_replace_LDADD = \
1977 test_strbuf_SOURCES = \
1978 src/test/test-strbuf.c
1980 test_strbuf_LDADD = \
1983 test_strv_SOURCES = \
1984 src/test/test-strv.c
1989 test_path_util_SOURCES = \
1990 src/test/test-path-util.c
1992 test_path_util_LDADD = \
1995 test_path_SOURCES = \
1996 src/test/test-path.c
1998 test_path_CFLAGS = \
2004 test_execute_SOURCES = \
2005 src/test/test-execute.c
2007 test_execute_CFLAGS = \
2010 test_execute_LDADD = \
2013 test_strxcpyx_SOURCES = \
2014 src/test/test-strxcpyx.c
2016 test_strxcpyx_LDADD = \
2019 test_install_SOURCES = \
2020 src/test/test-install.c
2022 test_install_LDADD = \
2025 test_watchdog_SOURCES = \
2026 src/test/test-watchdog.c
2028 test_watchdog_LDADD = \
2031 test_sched_prio_SOURCES = \
2032 src/test/test-sched-prio.c
2034 test_sched_prio_CPPFLAGS = \
2037 test_sched_prio_CFLAGS = \
2041 test_sched_prio_LDADD = \
2044 test_conf_files_SOURCES = \
2045 src/test/test-conf-files.c
2047 test_conf_files_LDADD = \
2050 test_conf_parser_SOURCES = \
2051 src/test/test-conf-parser.c
2053 test_conf_parser_LDADD = \
2056 test_bus_policy_SOURCES = \
2057 src/bus-proxyd/test-bus-xml-policy.c
2059 test_bus_policy_LDADD = \
2060 libbus-proxy-core.la \
2063 test_af_list_SOURCES = \
2064 src/test/test-af-list.c
2066 test_af_list_LDADD = \
2069 test_arphrd_list_SOURCES = \
2070 src/test/test-arphrd-list.c
2072 test_arphrd_list_LDADD = \
2075 # ------------------------------------------------------------------------------
2076 ## .PHONY so it always rebuilds it
2077 .PHONY: coverage lcov-run lcov-report coverage-sync
2079 # run lcov from scratch, always
2084 coverage_dir = coverage
2085 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2088 # reset run coverage tests
2090 @rm -rf $(coverage_dir)
2091 lcov $(coverage_opts) --zerocounters
2094 # generate report based on current coverage data
2096 $(MKDIR_P) $(coverage_dir)
2097 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2098 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2099 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2100 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2101 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2103 # lcov doesn't work properly with vpath builds, make sure that bad
2104 # output is not uploaded by mistake.
2105 coverage-sync: coverage
2106 test "$(builddir)" = "$(srcdir)"
2107 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2110 lcov-run lcov-report:
2111 echo "Need to reconfigure with --enable-coverage"
2114 # ------------------------------------------------------------------------------
2115 systemd_analyze_SOURCES = \
2116 src/analyze/analyze.c \
2117 src/analyze/analyze-verify.c \
2118 src/analyze/analyze-verify.h
2120 systemd_analyze_CFLAGS = \
2124 systemd_analyze_LDADD = \
2127 # ------------------------------------------------------------------------------
2128 systemd_initctl_SOURCES = \
2129 src/initctl/initctl.c
2131 systemd_initctl_LDADD = \
2134 # ------------------------------------------------------------------------------
2135 systemd_update_utmp_SOURCES = \
2136 src/update-utmp/update-utmp.c
2138 systemd_update_utmp_CFLAGS = \
2142 systemd_update_utmp_LDADD = \
2146 # ------------------------------------------------------------------------------
2147 systemd_update_done_SOURCES = \
2148 src/update-done/update-done.c
2150 systemd_update_done_LDADD = \
2153 # ------------------------------------------------------------------------------
2154 systemd_shutdown_SOURCES = \
2157 src/core/shutdown.c \
2158 src/core/mount-setup.c \
2159 src/core/mount-setup.h \
2160 src/core/killall.h \
2163 systemd_shutdown_LDADD = \
2166 # ------------------------------------------------------------------------------
2168 systemd_modules_load_SOURCES = \
2169 src/modules-load/modules-load.c
2171 systemd_modules_load_CFLAGS = \
2175 systemd_modules_load_LDADD = \
2179 rootlibexec_PROGRAMS += \
2180 systemd-modules-load
2182 nodist_systemunit_DATA += \
2183 units/systemd-modules-load.service
2185 SYSINIT_TARGET_WANTS += \
2186 systemd-modules-load.service
2189 nodist_systemunit_DATA += \
2190 units/kmod-static-nodes.service
2192 SYSINIT_TARGET_WANTS += \
2193 kmod-static-nodes.service
2198 units/systemd-modules-load.service.in \
2199 units/kmod-static-nodes.service.in
2201 # ------------------------------------------------------------------------------
2203 systemd_tmpfiles_SOURCES = \
2204 src/tmpfiles/tmpfiles.c
2206 systemd_tmpfiles_LDADD = \
2209 rootbin_PROGRAMS += \
2212 dist_systemunit_DATA += \
2213 units/systemd-tmpfiles-clean.timer
2215 nodist_systemunit_DATA += \
2216 units/systemd-tmpfiles-setup-dev.service \
2217 units/systemd-tmpfiles-setup.service \
2218 units/systemd-tmpfiles-clean.service
2220 nodist_tmpfiles_DATA = \
2221 tmpfiles.d/systemd.conf \
2224 dist_tmpfiles_DATA = \
2225 tmpfiles.d/systemd-nologin.conf \
2226 tmpfiles.d/tmp.conf \
2227 tmpfiles.d/x11.conf \
2228 tmpfiles.d/var.conf \
2229 tmpfiles.d/home.conf \
2230 tmpfiles.d/systemd-nspawn.conf \
2231 tmpfiles.d/journal-nocow.conf
2234 dist_tmpfiles_DATA += \
2235 tmpfiles.d/legacy.conf
2238 SYSINIT_TARGET_WANTS += \
2239 systemd-tmpfiles-setup-dev.service \
2240 systemd-tmpfiles-setup.service
2242 if ENABLE_ZSH_COMPLETION
2243 dist_zshcompletion_DATA += \
2244 shell-completion/zsh/_systemd-tmpfiles
2247 TIMERS_TARGET_WANTS += \
2248 systemd-tmpfiles-clean.timer
2252 $(sysconfdir)/tmpfiles.d
2256 tmpfiles.d/systemd.conf.m4 \
2257 tmpfiles.d/etc.conf.m4 \
2258 units/systemd-tmpfiles-setup-dev.service.in \
2259 units/systemd-tmpfiles-setup.service.in \
2260 units/systemd-tmpfiles-clean.service.in
2262 # ------------------------------------------------------------------------------
2264 systemd_sysusers_SOURCES = \
2265 src/sysusers/sysusers.c
2267 systemd_sysusers_LDADD = \
2270 rootbin_PROGRAMS += \
2273 nodist_systemunit_DATA += \
2274 units/systemd-sysusers.service
2276 SYSINIT_TARGET_WANTS += \
2277 systemd-sysusers.service
2279 nodist_sysusers_DATA = \
2280 sysusers.d/systemd.conf \
2281 sysusers.d/basic.conf
2288 units/systemd-sysusers.service.in \
2289 sysusers.d/systemd.conf.m4 \
2290 sysusers.d/basic.conf.in
2292 # ------------------------------------------------------------------------------
2293 dist_factory_etc_DATA = \
2294 factory/etc/nsswitch.conf
2297 dist_factory_pam_DATA = \
2298 factory/etc/pam.d/system-auth \
2299 factory/etc/pam.d/other
2302 # ------------------------------------------------------------------------------
2304 systemd_firstboot_SOURCES = \
2305 src/firstboot/firstboot.c
2307 systemd_firstboot_LDADD = \
2311 rootbin_PROGRAMS += \
2314 nodist_systemunit_DATA += \
2315 units/systemd-firstboot.service
2317 SYSINIT_TARGET_WANTS += \
2318 systemd-firstboot.service
2322 units/systemd-firstboot.service.in
2324 # ------------------------------------------------------------------------------
2325 systemd_machine_id_setup_SOURCES = \
2326 src/machine-id-setup/machine-id-setup-main.c \
2327 src/core/machine-id-setup.c \
2328 src/core/machine-id-setup.h
2330 systemd_machine_id_setup_LDADD = \
2333 # ------------------------------------------------------------------------------
2334 systemd_sysctl_SOURCES = \
2337 systemd_sysctl_LDADD = \
2340 # ------------------------------------------------------------------------------
2341 systemd_sleep_SOURCES = \
2344 systemd_sleep_LDADD = \
2347 # ------------------------------------------------------------------------------
2348 systemd_fsck_SOURCES = \
2351 systemd_fsck_LDADD = \
2354 # ------------------------------------------------------------------------------
2355 systemd_machine_id_commit_SOURCES = \
2356 src/machine-id-commit/machine-id-commit.c \
2357 src/core/machine-id-setup.c \
2358 src/core/machine-id-setup.h
2360 systemd_machine_id_commit_LDADD = \
2363 SYSINIT_TARGET_WANTS += \
2364 systemd-machine-id-commit.service
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/core/mount-setup.c \
2780 src/core/mount-setup.h \
2781 src/core/loopback-setup.c \
2782 src/core/loopback-setup.h
2784 systemd_nspawn_CFLAGS = \
2789 systemd_nspawn_LDADD = \
2794 systemd_nspawn_LDADD += \
2798 # ------------------------------------------------------------------------------
2799 systemd_run_SOURCES = \
2802 systemd_run_LDADD = \
2805 # ------------------------------------------------------------------------------
2806 noinst_LTLIBRARIES += \
2807 libbus-proxy-core.la
2809 libbus_proxy_core_la_SOURCES = \
2810 src/bus-proxyd/bus-xml-policy.c \
2811 src/bus-proxyd/bus-xml-policy.h \
2812 src/bus-proxyd/driver.c \
2813 src/bus-proxyd/driver.h \
2814 src/bus-proxyd/proxy.c \
2815 src/bus-proxyd/proxy.h \
2816 src/bus-proxyd/synthesize.c \
2817 src/bus-proxyd/synthesize.h
2819 libbus_proxy_core_la_LIBADD = \
2822 systemd_bus_proxyd_SOURCES = \
2823 src/bus-proxyd/bus-proxyd.c
2825 systemd_bus_proxyd_LDADD = \
2826 libbus-proxy-core.la \
2829 systemd_stdio_bridge_SOURCES = \
2830 src/bus-proxyd/stdio-bridge.c
2832 systemd_stdio_bridge_LDADD = \
2833 libbus-proxy-core.la \
2836 nodist_systemunit_DATA += \
2837 units/systemd-bus-proxyd.service
2839 dist_systemunit_DATA += \
2840 units/systemd-bus-proxyd.socket
2842 nodist_userunit_DATA += \
2843 units/user/systemd-bus-proxyd.service
2845 dist_userunit_DATA += \
2846 units/user/systemd-bus-proxyd.socket
2849 units/systemd-bus-proxyd.service.m4.in \
2850 units/user/systemd-bus-proxyd.service.in
2853 bus-proxyd-set-cap-hook:
2854 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2856 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2859 # ------------------------------------------------------------------------------
2860 systemd_tty_ask_password_agent_SOURCES = \
2861 src/tty-ask-password-agent/tty-ask-password-agent.c
2863 systemd_tty_ask_password_agent_LDADD = \
2866 # ------------------------------------------------------------------------------
2867 libsystemd_internal_la_SOURCES = \
2868 src/systemd/sd-bus.h \
2869 src/systemd/sd-bus-protocol.h \
2870 src/systemd/sd-bus-vtable.h \
2871 src/systemd/sd-utf8.h \
2872 src/systemd/sd-event.h \
2873 src/systemd/sd-netlink.h \
2874 src/systemd/sd-resolve.h \
2875 src/systemd/sd-login.h \
2876 src/systemd/sd-id128.h \
2877 src/systemd/sd-daemon.h \
2878 src/systemd/sd-path.h \
2879 src/systemd/sd-network.h \
2880 src/systemd/sd-hwdb.h \
2881 src/systemd/sd-device.h \
2882 src/libsystemd/libsystemd.sym \
2883 src/libsystemd/sd-bus/sd-bus.c \
2884 src/libsystemd/sd-bus/bus-control.c \
2885 src/libsystemd/sd-bus/bus-control.h \
2886 src/libsystemd/sd-bus/bus-error.c \
2887 src/libsystemd/sd-bus/bus-error.h \
2888 src/libsystemd/sd-bus/bus-common-errors.h \
2889 src/libsystemd/sd-bus/bus-common-errors.c \
2890 src/libsystemd/sd-bus/bus-internal.c \
2891 src/libsystemd/sd-bus/bus-internal.h \
2892 src/libsystemd/sd-bus/bus-socket.c \
2893 src/libsystemd/sd-bus/bus-socket.h \
2894 src/libsystemd/sd-bus/bus-kernel.c \
2895 src/libsystemd/sd-bus/bus-kernel.h \
2896 src/libsystemd/sd-bus/bus-container.c \
2897 src/libsystemd/sd-bus/bus-container.h \
2898 src/libsystemd/sd-bus/bus-message.c \
2899 src/libsystemd/sd-bus/bus-message.h \
2900 src/libsystemd/sd-bus/bus-creds.c \
2901 src/libsystemd/sd-bus/bus-creds.h \
2902 src/libsystemd/sd-bus/bus-signature.c \
2903 src/libsystemd/sd-bus/bus-signature.h \
2904 src/libsystemd/sd-bus/bus-type.c \
2905 src/libsystemd/sd-bus/bus-type.h \
2906 src/libsystemd/sd-bus/bus-match.c \
2907 src/libsystemd/sd-bus/bus-match.h \
2908 src/libsystemd/sd-bus/bus-bloom.c \
2909 src/libsystemd/sd-bus/bus-bloom.h \
2910 src/libsystemd/sd-bus/bus-introspect.c \
2911 src/libsystemd/sd-bus/bus-introspect.h \
2912 src/libsystemd/sd-bus/bus-objects.c \
2913 src/libsystemd/sd-bus/bus-objects.h \
2914 src/libsystemd/sd-bus/bus-gvariant.c \
2915 src/libsystemd/sd-bus/bus-gvariant.h \
2916 src/libsystemd/sd-bus/bus-convenience.c \
2917 src/libsystemd/sd-bus/bus-track.c \
2918 src/libsystemd/sd-bus/bus-track.h \
2919 src/libsystemd/sd-bus/bus-slot.c \
2920 src/libsystemd/sd-bus/bus-slot.h \
2921 src/libsystemd/sd-bus/bus-protocol.h \
2922 src/libsystemd/sd-bus/kdbus.h \
2923 src/libsystemd/sd-bus/bus-dump.c \
2924 src/libsystemd/sd-bus/bus-dump.h \
2925 src/libsystemd/sd-utf8/sd-utf8.c \
2926 src/libsystemd/sd-event/sd-event.c \
2927 src/libsystemd/sd-event/event-util.h \
2928 src/libsystemd/sd-netlink/sd-netlink.c \
2929 src/libsystemd/sd-netlink/netlink-internal.h \
2930 src/libsystemd/sd-netlink/netlink-message.c \
2931 src/libsystemd/sd-netlink/netlink-socket.c \
2932 src/libsystemd/sd-netlink/rtnl-message.c \
2933 src/libsystemd/sd-netlink/netlink-types.h \
2934 src/libsystemd/sd-netlink/netlink-types.c \
2935 src/libsystemd/sd-netlink/netlink-util.h \
2936 src/libsystemd/sd-netlink/netlink-util.c \
2937 src/libsystemd/sd-netlink/local-addresses.h \
2938 src/libsystemd/sd-netlink/local-addresses.c \
2939 src/libsystemd/sd-id128/sd-id128.c \
2940 src/libsystemd/sd-daemon/sd-daemon.c \
2941 src/libsystemd/sd-login/sd-login.c \
2942 src/libsystemd/sd-path/sd-path.c \
2943 src/libsystemd/sd-network/sd-network.c \
2944 src/libsystemd/sd-network/network-util.h \
2945 src/libsystemd/sd-network/network-util.c \
2946 src/libsystemd/sd-hwdb/sd-hwdb.c \
2947 src/libsystemd/sd-hwdb/hwdb-util.h \
2948 src/libsystemd/sd-hwdb/hwdb-internal.h \
2949 src/libsystemd/sd-device/device-internal.h \
2950 src/libsystemd/sd-device/device-util.h \
2951 src/libsystemd/sd-device/device-enumerator.c \
2952 src/libsystemd/sd-device/device-enumerator-private.h \
2953 src/libsystemd/sd-device/sd-device.c \
2954 src/libsystemd/sd-device/device-private.c \
2955 src/libsystemd/sd-device/device-private.h \
2956 src/libsystemd/sd-resolve/sd-resolve.c \
2957 src/libsystemd/sd-resolve/resolve-util.h
2959 libsystemd_internal_la_LIBADD = \
2963 noinst_LTLIBRARIES += \
2964 libsystemd-internal.la
2967 src/libsystemd/libsystemd.pc.in \
2968 src/libsystemd/sd-bus/DIFFERENCES \
2969 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2971 libsystemd_la_SOURCES = \
2972 $(libsystemd_internal_la_SOURCES) \
2973 $(libsystemd_journal_internal_la_SOURCES)
2975 nodist_libsystemd_la_SOURCES = \
2976 $(nodist_libsystemd_internal_la_SOURCES)
2978 libsystemd_la_CFLAGS = \
2979 $(libsystemd_internal_la_CFLAGS) \
2980 $(libsystemd_journal_internal_la_CFLAGS)
2982 libsystemd_la_LDFLAGS = \
2984 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2985 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
2987 libsystemd_la_LIBADD = \
2988 $(libsystemd_internal_la_LIBADD) \
2989 $(libsystemd_journal_internal_la_LIBADD)
2991 libsystemd-install-hook:
2992 libname=libsystemd.so && $(move-to-rootlibdir)
2994 libsystemd-uninstall-hook:
2995 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2997 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2998 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3000 pkgconfiglib_DATA += \
3001 src/libsystemd/libsystemd.pc
3003 pkginclude_HEADERS += \
3004 src/systemd/sd-bus.h \
3005 src/systemd/sd-bus-protocol.h \
3006 src/systemd/sd-bus-vtable.h \
3007 src/systemd/sd-event.h \
3008 src/systemd/sd-login.h \
3009 src/systemd/sd-id128.h \
3010 src/systemd/sd-daemon.h
3012 lib_LTLIBRARIES += \
3017 test-bus-signature \
3018 test-bus-benchmark \
3025 test-bus-kernel-bloom \
3026 test-bus-zero-copy \
3027 test-bus-introspect \
3034 test-local-addresses \
3040 test_bus_marshal_SOURCES = \
3041 src/libsystemd/sd-bus/test-bus-marshal.c
3043 test_bus_marshal_LDADD = \
3048 test_bus_marshal_CFLAGS = \
3053 test_bus_signature_SOURCES = \
3054 src/libsystemd/sd-bus/test-bus-signature.c
3056 test_bus_signature_LDADD = \
3059 test_bus_chat_SOURCES = \
3060 src/libsystemd/sd-bus/test-bus-chat.c
3062 test_bus_chat_LDADD = \
3065 test_bus_cleanup_SOURCES = \
3066 src/libsystemd/sd-bus/test-bus-cleanup.c
3068 test_bus_cleanup_CFLAGS = \
3072 test_bus_cleanup_LDADD = \
3075 test_bus_server_SOURCES = \
3076 src/libsystemd/sd-bus/test-bus-server.c
3078 test_bus_server_LDADD = \
3081 test_bus_objects_SOURCES = \
3082 src/libsystemd/sd-bus/test-bus-objects.c
3084 test_bus_objects_LDADD = \
3087 test_bus_error_SOURCES = \
3088 src/libsystemd/sd-bus/test-bus-error.c
3090 test_bus_error_LDADD = \
3093 test_bus_gvariant_SOURCES = \
3094 src/libsystemd/sd-bus/test-bus-gvariant.c
3096 test_bus_gvariant_LDADD = \
3100 test_bus_gvariant_CFLAGS = \
3104 test_bus_creds_SOURCES = \
3105 src/libsystemd/sd-bus/test-bus-creds.c
3107 test_bus_creds_LDADD = \
3110 test_bus_match_SOURCES = \
3111 src/libsystemd/sd-bus/test-bus-match.c
3113 test_bus_match_LDADD = \
3116 test_bus_proxy_SOURCES = \
3117 src/libsystemd/sd-bus/test-bus-proxy.c
3119 test_bus_proxy_LDADD = \
3122 test_bus_kernel_SOURCES = \
3123 src/libsystemd/sd-bus/test-bus-kernel.c
3125 test_bus_kernel_LDADD = \
3128 test_bus_kernel_bloom_SOURCES = \
3129 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3131 test_bus_kernel_bloom_LDADD = \
3134 test_bus_benchmark_SOURCES = \
3135 src/libsystemd/sd-bus/test-bus-benchmark.c
3137 test_bus_benchmark_LDADD = \
3140 test_bus_zero_copy_SOURCES = \
3141 src/libsystemd/sd-bus/test-bus-zero-copy.c
3143 test_bus_zero_copy_LDADD = \
3146 test_bus_introspect_SOURCES = \
3147 src/libsystemd/sd-bus/test-bus-introspect.c
3149 test_bus_introspect_LDADD = \
3152 test_event_SOURCES = \
3153 src/libsystemd/sd-event/test-event.c
3155 test_event_LDADD = \
3158 test_netlink_SOURCES = \
3159 src/libsystemd/sd-netlink/test-netlink.c
3161 test_netlink_LDADD = \
3164 test_local_addresses_SOURCES = \
3165 src/libsystemd/sd-netlink/test-local-addresses.c
3167 test_local_addresses_LDADD = \
3170 test_resolve_SOURCES = \
3171 src/libsystemd/sd-resolve/test-resolve.c
3173 test_resolve_LDADD = \
3177 src/libsystemd/sd-bus/busctl.c \
3178 src/libsystemd/sd-bus/busctl-introspect.c \
3179 src/libsystemd/sd-bus/busctl-introspect.h
3184 # ------------------------------------------------------------------------------
3185 noinst_LTLIBRARIES += \
3186 libsystemd-network.la
3188 libsystemd_network_la_CFLAGS = \
3192 libsystemd_network_la_SOURCES = \
3193 src/systemd/sd-dhcp-client.h \
3194 src/systemd/sd-dhcp-server.h \
3195 src/systemd/sd-dhcp-lease.h \
3196 src/systemd/sd-ipv4ll.h \
3197 src/systemd/sd-icmp6-nd.h \
3198 src/systemd/sd-dhcp6-client.h \
3199 src/systemd/sd-dhcp6-lease.h \
3200 src/systemd/sd-pppoe.h \
3201 src/systemd/sd-lldp.h \
3202 src/libsystemd-network/sd-dhcp-client.c \
3203 src/libsystemd-network/sd-dhcp-server.c \
3204 src/libsystemd-network/dhcp-network.c \
3205 src/libsystemd-network/dhcp-option.c \
3206 src/libsystemd-network/dhcp-packet.c \
3207 src/libsystemd-network/dhcp-internal.h \
3208 src/libsystemd-network/dhcp-server-internal.h \
3209 src/libsystemd-network/dhcp-protocol.h \
3210 src/libsystemd-network/dhcp-lease-internal.h \
3211 src/libsystemd-network/sd-dhcp-lease.c \
3212 src/libsystemd-network/sd-ipv4ll.c \
3213 src/libsystemd-network/ipv4ll-network.c \
3214 src/libsystemd-network/ipv4ll-packet.c \
3215 src/libsystemd-network/ipv4ll-internal.h \
3216 src/libsystemd-network/sd-pppoe.c \
3217 src/libsystemd-network/network-internal.c \
3218 src/libsystemd-network/network-internal.h \
3219 src/libsystemd-network/sd-icmp6-nd.c \
3220 src/libsystemd-network/sd-dhcp6-client.c \
3221 src/libsystemd-network/dhcp6-internal.h \
3222 src/libsystemd-network/dhcp6-protocol.h \
3223 src/libsystemd-network/dhcp6-network.c \
3224 src/libsystemd-network/dhcp6-option.c \
3225 src/libsystemd-network/dhcp6-lease-internal.h \
3226 src/libsystemd-network/sd-dhcp6-lease.c \
3227 src/libsystemd-network/dhcp-identifier.h \
3228 src/libsystemd-network/dhcp-identifier.c \
3229 src/libsystemd-network/lldp.h \
3230 src/libsystemd-network/lldp-tlv.h \
3231 src/libsystemd-network/lldp-tlv.c \
3232 src/libsystemd-network/lldp-network.h \
3233 src/libsystemd-network/lldp-network.c \
3234 src/libsystemd-network/lldp-port.h \
3235 src/libsystemd-network/lldp-port.c \
3236 src/libsystemd-network/lldp-internal.h \
3237 src/libsystemd-network/lldp-internal.c \
3238 src/libsystemd-network/lldp-util.h \
3239 src/libsystemd-network/sd-lldp.c
3241 libsystemd_network_la_LIBADD = \
3244 test_dhcp_option_SOURCES = \
3245 src/libsystemd-network/dhcp-protocol.h \
3246 src/libsystemd-network/dhcp-internal.h \
3247 src/libsystemd-network/test-dhcp-option.c
3249 test_dhcp_option_LDADD = \
3250 libsystemd-network.la \
3253 test_dhcp_client_SOURCES = \
3254 src/systemd/sd-dhcp-client.h \
3255 src/libsystemd-network/dhcp-protocol.h \
3256 src/libsystemd-network/dhcp-internal.h \
3257 src/libsystemd-network/test-dhcp-client.c
3259 test_dhcp_client_LDADD = \
3260 libsystemd-network.la \
3263 test_dhcp_server_SOURCES = \
3264 src/libsystemd-network/test-dhcp-server.c
3266 test_dhcp_server_LDADD = \
3267 libsystemd-network.la \
3270 test_ipv4ll_SOURCES = \
3271 src/systemd/sd-ipv4ll.h \
3272 src/libsystemd-network/ipv4ll-internal.h \
3273 src/libsystemd-network/test-ipv4ll.c
3275 test_ipv4ll_LDADD = \
3276 libsystemd-network.la \
3279 test_pppoe_SOURCES = \
3280 src/systemd/sd-pppoe.h \
3281 src/libsystemd-network/test-pppoe.c
3283 test_pppoe_LDADD = \
3284 libsystemd-network.la \
3287 test_icmp6_rs_SOURCES = \
3288 src/systemd/sd-dhcp6-client.h \
3289 src/systemd/sd-icmp6-nd.h \
3290 src/libsystemd-network/dhcp6-internal.h \
3291 src/libsystemd-network/test-icmp6-rs.c \
3292 src/libsystemd-network/dhcp-identifier.h \
3293 src/libsystemd-network/dhcp-identifier.c
3295 test_icmp6_rs_LDADD = \
3296 libsystemd-network.la \
3300 test_dhcp6_client_SOURCES = \
3301 src/systemd/sd-dhcp6-client.h \
3302 src/libsystemd-network/dhcp6-internal.h \
3303 src/libsystemd-network/test-dhcp6-client.c \
3304 src/libsystemd-network/dhcp-identifier.h \
3305 src/libsystemd-network/dhcp-identifier.c
3307 test_dhcp6_client_LDADD = \
3308 libsystemd-network.la \
3312 test_lldp_SOURCES = \
3313 src/libsystemd-network/lldp.h \
3314 src/libsystemd-network/lldp-tlv.h \
3315 src/libsystemd-network/lldp-tlv.c \
3316 src/libsystemd-network/test-lldp.c
3319 libsystemd-network.la \
3334 # ------------------------------------------------------------------------------
3335 include_HEADERS += \
3336 src/libudev/libudev.h
3338 lib_LTLIBRARIES += \
3341 libudev_la_SOURCES =\
3342 src/libudev/libudev.sym \
3343 src/libudev/libudev-private.h \
3344 src/libudev/libudev-device-internal.h \
3345 src/libudev/libudev.c \
3346 src/libudev/libudev-list.c \
3347 src/libudev/libudev-util.c \
3348 src/libudev/libudev-device.c \
3349 src/libudev/libudev-device-private.c \
3350 src/libudev/libudev-enumerate.c \
3351 src/libudev/libudev-monitor.c \
3352 src/libudev/libudev-queue.c \
3353 src/libudev/libudev-hwdb.c
3355 libudev_la_LDFLAGS = \
3357 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3358 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3360 libudev_la_LIBADD = \
3361 libsystemd-internal.la
3363 pkgconfiglib_DATA += \
3364 src/libudev/libudev.pc
3367 src/libudev/libudev.pc.in
3369 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3370 libudev-install-hook:
3371 libname=libudev.so && $(move-to-rootlibdir)
3373 libudev-uninstall-hook:
3374 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3376 INSTALL_EXEC_HOOKS += libudev-install-hook
3377 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3379 # ------------------------------------------------------------------------------
3380 noinst_LTLIBRARIES += \
3383 libudev_internal_la_SOURCES =\
3384 $(libudev_la_SOURCES)
3386 # ------------------------------------------------------------------------------
3388 $(sysconfdir)/udev/rules.d
3390 dist_network_DATA = \
3391 network/99-default.link \
3392 network/80-container-host0.network \
3393 network/80-container-ve.network
3395 dist_udevrules_DATA += \
3396 rules/50-udev-default.rules \
3397 rules/60-block.rules \
3398 rules/60-drm.rules \
3399 rules/60-evdev.rules \
3400 rules/60-persistent-storage-tape.rules \
3401 rules/60-persistent-input.rules \
3402 rules/60-persistent-alsa.rules \
3403 rules/60-persistent-storage.rules \
3404 rules/60-serial.rules \
3405 rules/64-btrfs.rules \
3406 rules/70-mouse.rules \
3407 rules/75-net-description.rules \
3408 rules/78-sound-card.rules \
3409 rules/80-net-setup-link.rules
3411 nodist_udevrules_DATA += \
3412 rules/99-systemd.rules
3414 udevconfdir = $(sysconfdir)/udev
3415 dist_udevconf_DATA = \
3418 pkgconfigdata_DATA += \
3422 rules/99-systemd.rules.in \
3426 units/systemd-udevd.service.in \
3427 units/systemd-udev-trigger.service.in \
3428 units/systemd-udev-settle.service.in
3430 SOCKETS_TARGET_WANTS += \
3431 systemd-udevd-control.socket \
3432 systemd-udevd-kernel.socket
3434 SYSINIT_TARGET_WANTS += \
3435 systemd-udevd.service \
3436 systemd-udev-trigger.service
3438 rootbin_PROGRAMS += \
3441 rootlibexec_PROGRAMS += \
3444 noinst_LTLIBRARIES += \
3447 src/udev/keyboard-keys-list.txt:
3448 $(AM_V_at)$(MKDIR_P) $(dir $@)
3449 $(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/' > $@
3451 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3452 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3454 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3455 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3457 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys-list.txt
3458 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3460 gperf_txt_sources += \
3461 src/udev/keyboard-keys-list.txt
3463 libudev_core_la_SOURCES = \
3465 src/udev/udev-event.c \
3466 src/udev/udev-watch.c \
3467 src/udev/udev-node.c \
3468 src/udev/udev-rules.c \
3469 src/udev/udev-ctrl.c \
3470 src/udev/udev-builtin.c \
3471 src/udev/udev-builtin-btrfs.c \
3472 src/udev/udev-builtin-hwdb.c \
3473 src/udev/udev-builtin-input_id.c \
3474 src/udev/udev-builtin-keyboard.c \
3475 src/udev/udev-builtin-net_id.c \
3476 src/udev/udev-builtin-net_setup_link.c \
3477 src/udev/udev-builtin-path_id.c \
3478 src/udev/udev-builtin-usb_id.c \
3479 src/udev/net/link-config.h \
3480 src/udev/net/link-config.c \
3481 src/udev/net/ethtool-util.h \
3482 src/udev/net/ethtool-util.c
3484 nodist_libudev_core_la_SOURCES = \
3485 src/udev/keyboard-keys-from-name.h \
3486 src/udev/keyboard-keys-to-name.h \
3487 src/udev/net/link-config-gperf.c
3489 gperf_gperf_sources = \
3490 src/udev/net/link-config-gperf.gperf
3492 libudev_core_la_CFLAGS = \
3497 libudev_core_la_LIBADD = \
3498 libsystemd-network.la \
3504 libudev_core_la_SOURCES += \
3505 src/udev/udev-builtin-kmod.c
3507 dist_udevrules_DATA += \
3508 rules/80-drivers.rules
3512 libudev_core_la_SOURCES += \
3513 src/udev/udev-builtin-blkid.c
3517 libudev_core_la_SOURCES += \
3518 src/udev/udev-builtin-uaccess.c \
3519 src/login/logind-acl.c \
3520 src/libsystemd/sd-login/sd-login.c \
3521 src/systemd/sd-login.h
3524 systemd_udevd_SOURCES = \
3527 systemd_udevd_LDADD = \
3531 src/udev/udevadm.c \
3532 src/udev/udevadm-info.c \
3533 src/udev/udevadm-control.c \
3534 src/udev/udevadm-monitor.c \
3535 src/udev/udevadm-hwdb.c \
3536 src/udev/udevadm-settle.c \
3537 src/udev/udevadm-trigger.c \
3538 src/udev/udevadm-test.c \
3539 src/udev/udevadm-test-builtin.c \
3540 src/udev/udevadm-util.c \
3541 src/udev/udevadm-util.h
3546 # ------------------------------------------------------------------------------
3549 $(sysconfdir)/udev/hwdb.d
3551 systemd_hwdb_SOURCES = \
3552 src/libsystemd/sd-hwdb/hwdb-internal.h \
3555 systemd_hwdb_LDADD = \
3558 rootbin_PROGRAMS += \
3561 dist_udevhwdb_DATA = \
3562 hwdb/20-pci-vendor-model.hwdb \
3563 hwdb/20-pci-classes.hwdb \
3564 hwdb/20-usb-vendor-model.hwdb \
3565 hwdb/20-usb-classes.hwdb \
3566 hwdb/20-sdio-vendor-model.hwdb \
3567 hwdb/20-sdio-classes.hwdb \
3568 hwdb/20-bluetooth-vendor-product.hwdb \
3569 hwdb/20-acpi-vendor.hwdb \
3571 hwdb/20-net-ifname.hwdb \
3572 hwdb/60-evdev.hwdb \
3573 hwdb/60-keyboard.hwdb \
3574 hwdb/70-mouse.hwdb \
3575 hwdb/70-pointingstick.hwdb
3577 SYSINIT_TARGET_WANTS += \
3578 systemd-hwdb-update.service
3580 # Update hwdb on installation. Do not bother if installing
3581 # in DESTDIR, since this is likely for packaging purposes.
3583 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3585 INSTALL_DATA_HOOKS += \
3589 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3593 units/systemd-hwdb-update.service.in \
3594 hwdb/ids-update.pl \
3597 # ------------------------------------------------------------------------------
3603 test/rule-syntax-check.py
3607 test/sysv-generator-test.py
3615 test_libudev_SOURCES = \
3616 src/test/test-libudev.c
3618 test_libudev_LDADD = \
3621 test_udev_SOURCES = \
3622 src/test/test-udev.c
3632 # packed sysfs test tree
3634 $(AM_V_at)$(MKDIR_P) $(dir $@)
3635 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3639 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3644 test/rule-syntax-check.py \
3645 test/sysv-generator-test.py \
3648 # ------------------------------------------------------------------------------
3650 src/udev/ata_id/ata_id.c
3655 udevlibexec_PROGRAMS += \
3658 # ------------------------------------------------------------------------------
3659 cdrom_id_SOURCES = \
3660 src/udev/cdrom_id/cdrom_id.c
3665 udevlibexec_PROGRAMS += \
3668 dist_udevrules_DATA += \
3669 rules/60-cdrom_id.rules
3671 # ------------------------------------------------------------------------------
3673 src/udev/collect/collect.c
3678 udevlibexec_PROGRAMS += \
3681 # ------------------------------------------------------------------------------
3683 src/udev/scsi_id/scsi_id.c \
3684 src/udev/scsi_id/scsi_serial.c \
3685 src/udev/scsi_id/scsi.h \
3686 src/udev/scsi_id/scsi_id.h
3691 udevlibexec_PROGRAMS += \
3695 src/udev/scsi_id/README
3697 # ------------------------------------------------------------------------------
3699 src/udev/v4l_id/v4l_id.c
3704 udevlibexec_PROGRAMS += \
3707 dist_udevrules_DATA += \
3708 rules/60-persistent-v4l.rules
3710 # ------------------------------------------------------------------------------
3711 mtd_probe_SOURCES = \
3712 src/udev/mtd_probe/mtd_probe.c \
3713 src/udev/mtd_probe/mtd_probe.h \
3714 src/udev/mtd_probe/probe_smartmedia.c
3716 dist_udevrules_DATA += \
3717 rules/75-probe_mtd.rules
3719 udevlibexec_PROGRAMS += \
3722 # ------------------------------------------------------------------------------
3723 test_id128_SOURCES = \
3724 src/test/test-id128.c
3726 test_id128_LDADD = \
3732 # ------------------------------------------------------------------------------
3734 rootlibexec_PROGRAMS += \
3737 systemd_activate_SOURCES = \
3738 src/activate/activate.c
3740 systemd_activate_LDADD = \
3743 # ------------------------------------------------------------------------------
3744 systemd_journald_SOURCES = \
3745 src/journal/journald.c \
3746 src/journal/journald-server.h
3748 systemd_journald_LDADD = \
3749 libjournal-core.la \
3752 systemd_cat_SOURCES = \
3755 systemd_cat_LDADD = \
3759 rootlibexec_PROGRAMS += \
3760 systemd-journal-remote
3762 systemd_journal_remote_SOURCES = \
3763 src/journal-remote/journal-remote-parse.h \
3764 src/journal-remote/journal-remote-parse.c \
3765 src/journal-remote/journal-remote-write.h \
3766 src/journal-remote/journal-remote-write.c \
3767 src/journal-remote/journal-remote.h \
3768 src/journal-remote/journal-remote.c
3770 systemd_journal_remote_LDADD = \
3773 systemd_journal_remote_SOURCES += \
3774 src/journal-remote/microhttpd-util.h \
3775 src/journal-remote/microhttpd-util.c
3777 systemd_journal_remote_CFLAGS = \
3779 $(MICROHTTPD_CFLAGS)
3781 systemd_journal_remote_LDADD += \
3785 dist_sysusers_DATA += \
3786 sysusers.d/systemd-remote.conf
3790 dist_tmpfiles_DATA += \
3791 tmpfiles.d/systemd-remote.conf
3795 systemd_journal_remote_LDADD += \
3798 # systemd-journal-remote make sense mostly with full crypto stack
3799 dist_systemunit_DATA += \
3800 units/systemd-journal-remote.socket
3802 nodist_systemunit_DATA += \
3803 units/systemd-journal-remote.service
3805 journal-remote-install-hook: journal-install-hook
3806 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3807 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3808 -chmod 755 $(DESTDIR)/var/log/journal/remote
3810 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3813 nodist_pkgsysconf_DATA += \
3814 src/journal-remote/journal-remote.conf
3817 units/systemd-journal-remote.service.in \
3818 src/journal-remote/journal-remote.conf.in \
3819 src/journal-remote/log-generator.py
3823 rootlibexec_PROGRAMS += \
3824 systemd-journal-upload
3826 systemd_journal_upload_SOURCES = \
3827 src/journal-remote/journal-upload.h \
3828 src/journal-remote/journal-upload.c \
3829 src/journal-remote/journal-upload-journal.c
3831 systemd_journal_upload_CFLAGS = \
3835 systemd_journal_upload_LDADD = \
3839 nodist_systemunit_DATA += \
3840 units/systemd-journal-upload.service
3842 nodist_pkgsysconf_DATA += \
3843 src/journal-remote/journal-upload.conf
3847 units/systemd-journal-upload.service.in \
3848 src/journal-remote/journal-upload.conf.in
3850 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3851 journalctl_CFLAGS = \
3854 journalctl_SOURCES = \
3855 src/journal/journalctl.c
3857 journalctl_LDADD = \
3861 journalctl_SOURCES += \
3862 src/journal/journal-qrcode.c \
3863 src/journal/journal-qrcode.h
3865 journalctl_CFLAGS += \
3868 journalctl_LDADD += \
3872 test_journal_SOURCES = \
3873 src/journal/test-journal.c
3875 test_journal_LDADD = \
3878 test_journal_send_SOURCES = \
3879 src/journal/test-journal-send.c
3881 test_journal_send_LDADD = \
3884 test_journal_syslog_SOURCES = \
3885 src/journal/test-journal-syslog.c
3887 test_journal_syslog_LDADD = \
3890 test_journal_match_SOURCES = \
3891 src/journal/test-journal-match.c
3893 test_journal_match_LDADD = \
3896 test_journal_enum_SOURCES = \
3897 src/journal/test-journal-enum.c
3899 test_journal_enum_LDADD = \
3902 test_journal_stream_SOURCES = \
3903 src/journal/test-journal-stream.c
3905 test_journal_stream_LDADD = \
3908 test_journal_flush_SOURCES = \
3909 src/journal/test-journal-flush.c
3911 test_journal_flush_LDADD = \
3914 test_journal_init_SOURCES = \
3915 src/journal/test-journal-init.c
3917 test_journal_init_LDADD = \
3920 test_journal_verify_SOURCES = \
3921 src/journal/test-journal-verify.c
3923 test_journal_verify_LDADD = \
3926 test_journal_interleaving_SOURCES = \
3927 src/journal/test-journal-interleaving.c
3929 test_journal_interleaving_LDADD = \
3932 test_mmap_cache_SOURCES = \
3933 src/journal/test-mmap-cache.c
3935 test_mmap_cache_LDADD = \
3938 test_catalog_SOURCES = \
3939 src/journal/test-catalog.c
3941 test_catalog_CPPFLAGS = \
3943 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3945 test_catalog_LDADD = \
3948 test_compress_SOURCES = \
3949 src/journal/test-compress.c
3951 test_compress_LDADD = \
3954 test_compress_benchmark_SOURCES = \
3955 src/journal/test-compress-benchmark.c
3957 test_compress_benchmark_LDADD = \
3960 test_audit_type_SOURCES = \
3961 src/journal/test-audit-type.c
3963 test_audit_type_LDADD = \
3966 libjournal_core_la_SOURCES = \
3967 src/journal/journald-kmsg.c \
3968 src/journal/journald-kmsg.h \
3969 src/journal/journald-syslog.c \
3970 src/journal/journald-syslog.h \
3971 src/journal/journald-stream.c \
3972 src/journal/journald-stream.h \
3973 src/journal/journald-server.c \
3974 src/journal/journald-server.h \
3975 src/journal/journald-console.c \
3976 src/journal/journald-console.h \
3977 src/journal/journald-wall.c \
3978 src/journal/journald-wall.h \
3979 src/journal/journald-native.c \
3980 src/journal/journald-native.h \
3981 src/journal/journald-audit.c \
3982 src/journal/journald-audit.h \
3983 src/journal/journald-rate-limit.c \
3984 src/journal/journald-rate-limit.h \
3985 src/journal/journal-internal.h
3987 nodist_libjournal_core_la_SOURCES = \
3988 src/journal/journald-gperf.c
3990 libjournal_core_la_LIBADD = \
3993 noinst_LTLIBRARIES += \
3996 journal-install-hook:
3997 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3998 -chown 0:0 $(DESTDIR)/var/log/journal
3999 -chmod 755 $(DESTDIR)/var/log/journal
4000 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4001 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4003 journal-uninstall-hook:
4004 -rmdir $(DESTDIR)/var/log/journal/remote
4005 -rmdir $(DESTDIR)/var/log/journal/
4007 INSTALL_EXEC_HOOKS += journal-install-hook
4008 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4010 # ------------------------------------------------------------------------------
4011 # Update catalog on installation. Do not bother if installing
4012 # in DESTDIR, since this is likely for packaging purposes.
4013 catalog-update-hook:
4014 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4016 INSTALL_DATA_HOOKS += \
4019 catalog-remove-hook:
4020 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4022 UNINSTALL_DATA_HOOKS += \
4031 test-journal-syslog \
4032 test-journal-match \
4033 test-journal-stream \
4035 test-journal-verify \
4036 test-journal-interleaving \
4037 test-journal-flush \
4045 test-compress-benchmark
4048 pkginclude_HEADERS += \
4049 src/systemd/sd-journal.h \
4050 src/systemd/sd-messages.h \
4051 src/systemd/_sd-common.h
4053 libsystemd_journal_internal_la_SOURCES = \
4054 src/journal/sd-journal.c \
4055 src/systemd/sd-journal.h \
4056 src/systemd/_sd-common.h \
4057 src/journal/journal-file.c \
4058 src/journal/journal-file.h \
4059 src/journal/journal-vacuum.c \
4060 src/journal/journal-vacuum.h \
4061 src/journal/journal-verify.c \
4062 src/journal/journal-verify.h \
4063 src/journal/lookup3.c \
4064 src/journal/lookup3.h \
4065 src/journal/journal-send.c \
4066 src/journal/journal-def.h \
4067 src/journal/compress.h \
4068 src/journal/catalog.c \
4069 src/journal/catalog.h \
4070 src/journal/mmap-cache.c \
4071 src/journal/mmap-cache.h \
4072 src/journal/compress.c \
4073 src/journal/audit-type.h \
4074 src/journal/audit-type.c
4076 nodist_libsystemd_journal_internal_la_SOURCES = \
4077 src/journal/audit_type-to-name.h
4079 gperf_txt_sources += \
4080 src/journal/audit_type-list.txt
4082 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4083 libsystemd_journal_internal_la_CFLAGS = \
4086 libsystemd_journal_internal_la_LIBADD =
4089 libsystemd_journal_internal_la_CFLAGS += \
4092 libsystemd_journal_internal_la_LIBADD += \
4097 libsystemd_journal_internal_la_LIBADD += \
4102 libsystemd_journal_internal_la_SOURCES += \
4103 src/journal/journal-authenticate.c \
4104 src/journal/journal-authenticate.h \
4105 src/journal/fsprg.c \
4108 libsystemd_journal_internal_la_LIBADD += \
4111 # fsprg.c is a drop-in file using void pointer arithmetic
4112 libsystemd_journal_internal_la_CFLAGS += \
4117 noinst_LTLIBRARIES += \
4118 libsystemd-journal-internal.la
4120 rootlibexec_PROGRAMS += \
4123 rootbin_PROGRAMS += \
4129 dist_systemunit_DATA += \
4130 units/systemd-journald.socket \
4131 units/systemd-journald-dev-log.socket \
4132 units/systemd-journald-audit.socket
4134 nodist_systemunit_DATA += \
4135 units/systemd-journald.service \
4136 units/systemd-journal-flush.service \
4137 units/systemd-journal-catalog-update.service
4139 dist_pkgsysconf_DATA += \
4140 src/journal/journald.conf
4142 dist_catalog_DATA = \
4143 catalog/systemd.be.catalog \
4144 catalog/systemd.be@latin.catalog \
4145 catalog/systemd.fr.catalog \
4146 catalog/systemd.it.catalog \
4147 catalog/systemd.pl.catalog \
4148 catalog/systemd.pt_BR.catalog \
4149 catalog/systemd.ru.catalog \
4150 catalog/systemd.zh_TW.catalog \
4151 catalog/systemd.catalog
4153 SOCKETS_TARGET_WANTS += \
4154 systemd-journald.socket \
4155 systemd-journald-dev-log.socket \
4156 systemd-journald-audit.socket
4158 SYSINIT_TARGET_WANTS += \
4159 systemd-journald.service \
4160 systemd-journal-flush.service \
4161 systemd-journal-catalog-update.service
4164 units/systemd-journald.service.in \
4165 units/systemd-journal-flush.service.in \
4166 units/systemd-journal-catalog-update.service.in
4168 gperf_gperf_sources += \
4169 src/journal/journald-gperf.gperf
4171 # ------------------------------------------------------------------------------
4173 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4175 rootlibexec_PROGRAMS += \
4176 systemd-journal-gatewayd
4178 systemd_journal_gatewayd_SOURCES = \
4179 src/journal-remote/journal-gatewayd.c \
4180 src/journal-remote/microhttpd-util.h \
4181 src/journal-remote/microhttpd-util.c
4183 systemd_journal_gatewayd_LDADD = \
4188 systemd_journal_gatewayd_LDADD += \
4192 systemd_journal_gatewayd_CFLAGS = \
4194 $(MICROHTTPD_CFLAGS)
4196 systemd_journal_gatewayd_CPPFLAGS = \
4198 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4200 dist_systemunit_DATA += \
4201 units/systemd-journal-gatewayd.socket
4203 nodist_systemunit_DATA += \
4204 units/systemd-journal-gatewayd.service
4206 dist_gatewayddocumentroot_DATA = \
4207 src/journal-remote/browse.html
4212 units/systemd-journal-gatewayd.service.in
4214 # ------------------------------------------------------------------------------
4216 systemd_socket_proxyd_SOURCES = \
4217 src/socket-proxy/socket-proxyd.c
4219 systemd_socket_proxyd_LDADD = \
4222 # ------------------------------------------------------------------------------
4224 systemd_coredump_SOURCES = \
4225 src/journal/coredump.c \
4226 src/journal/coredump-vacuum.c \
4227 src/journal/coredump-vacuum.h
4229 systemd_coredump_LDADD = \
4233 systemd_coredump_SOURCES += \
4234 src/journal/stacktrace.c \
4235 src/journal/stacktrace.h
4237 systemd_coredump_LDADD += \
4241 rootlibexec_PROGRAMS += \
4244 dist_pkgsysconf_DATA += \
4245 src/journal/coredump.conf
4247 coredumpctl_SOURCES = \
4248 src/journal/coredumpctl.c
4250 coredumpctl_LDADD = \
4257 test-coredump-vacuum
4259 test_coredump_vacuum_SOURCES = \
4260 src/journal/test-coredump-vacuum.c \
4261 src/journal/coredump-vacuum.c \
4262 src/journal/coredump-vacuum.h
4264 test_coredump_vacuum_LDADD = \
4267 if ENABLE_BASH_COMPLETION
4268 dist_bashcompletion_DATA += \
4269 shell-completion/bash/coredumpctl
4272 if ENABLE_ZSH_COMPLETION
4273 dist_zshcompletion_DATA += \
4274 shell-completion/zsh/_coredumpctl
4277 nodist_sysctl_DATA = \
4278 sysctl.d/50-coredump.conf
4281 sysctl.d/50-coredump.conf
4285 sysctl.d/50-coredump.conf.in
4287 # ------------------------------------------------------------------------------
4289 systemd_binfmt_SOURCES = \
4292 systemd_binfmt_LDADD = \
4295 rootlibexec_PROGRAMS += \
4298 dist_systemunit_DATA += \
4299 units/proc-sys-fs-binfmt_misc.automount \
4300 units/proc-sys-fs-binfmt_misc.mount
4302 nodist_systemunit_DATA += \
4303 units/systemd-binfmt.service
4306 $(prefix)/lib/binfmt.d \
4307 $(sysconfdir)/binfmt.d
4309 SYSINIT_TARGET_WANTS += \
4310 systemd-binfmt.service \
4311 proc-sys-fs-binfmt_misc.automount
4316 units/systemd-binfmt.service.in
4318 # ------------------------------------------------------------------------------
4320 systemd_vconsole_setup_SOURCES = \
4321 src/vconsole/vconsole-setup.c
4323 systemd_vconsole_setup_LDADD = \
4326 rootlibexec_PROGRAMS += \
4327 systemd-vconsole-setup
4329 nodist_udevrules_DATA += \
4330 src/vconsole/90-vconsole.rules
4332 nodist_systemunit_DATA += \
4333 units/systemd-vconsole-setup.service
4335 SYSINIT_TARGET_WANTS += \
4336 systemd-vconsole-setup.service
4340 src/vconsole/90-vconsole.rules.in \
4341 units/systemd-vconsole-setup.service.in
4343 # ------------------------------------------------------------------------------
4345 systemd_bootchart_SOURCES = \
4346 src/bootchart/bootchart.c \
4347 src/bootchart/bootchart.h \
4348 src/bootchart/store.c \
4349 src/bootchart/store.h \
4350 src/bootchart/svg.c \
4353 systemd_bootchart_LDADD = \
4356 rootlibexec_PROGRAMS += \
4359 dist_pkgsysconf_DATA += \
4360 src/bootchart/bootchart.conf
4362 nodist_systemunit_DATA += \
4363 units/systemd-bootchart.service
4367 units/systemd-bootchart.service.in
4369 # ------------------------------------------------------------------------------
4370 if ENABLE_QUOTACHECK
4371 rootlibexec_PROGRAMS += \
4374 nodist_systemunit_DATA += \
4375 units/systemd-quotacheck.service
4377 systemd_quotacheck_SOURCES = \
4378 src/quotacheck/quotacheck.c
4380 systemd_quotacheck_LDADD = \
4385 units/systemd-quotacheck.service.in
4387 nodist_systemunit_DATA += \
4388 units/quotaon.service
4390 # ------------------------------------------------------------------------------
4391 if ENABLE_RANDOMSEED
4392 rootlibexec_PROGRAMS += \
4395 nodist_systemunit_DATA += \
4396 units/systemd-random-seed.service
4398 systemd_random_seed_SOURCES = \
4399 src/random-seed/random-seed.c
4401 systemd_random_seed_LDADD = \
4404 SYSINIT_TARGET_WANTS += \
4405 systemd-random-seed.service
4410 units/systemd-random-seed.service.in
4412 # ------------------------------------------------------------------------------
4414 rootlibexec_PROGRAMS += \
4417 nodist_systemunit_DATA += \
4418 units/systemd-backlight@.service
4420 systemd_backlight_SOURCES = \
4421 src/backlight/backlight.c
4423 systemd_backlight_LDADD = \
4428 units/systemd-backlight@.service.in
4430 # ------------------------------------------------------------------------------
4432 rootlibexec_PROGRAMS += \
4435 nodist_systemunit_DATA += \
4436 units/systemd-rfkill@.service
4438 systemd_rfkill_SOURCES = \
4441 systemd_rfkill_LDADD = \
4446 units/systemd-rfkill@.service.in
4448 # ------------------------------------------------------------------------------
4449 if HAVE_LIBCRYPTSETUP
4450 rootlibexec_PROGRAMS += \
4453 systemgenerator_PROGRAMS += \
4454 systemd-cryptsetup-generator
4456 dist_systemunit_DATA += \
4457 units/cryptsetup.target \
4458 units/cryptsetup-pre.target
4460 systemd_cryptsetup_SOURCES = \
4461 src/cryptsetup/cryptsetup.c
4463 systemd_cryptsetup_CFLAGS = \
4465 $(LIBCRYPTSETUP_CFLAGS)
4467 systemd_cryptsetup_LDADD = \
4469 $(LIBCRYPTSETUP_LIBS)
4471 systemd_cryptsetup_generator_SOURCES = \
4472 src/cryptsetup/cryptsetup-generator.c
4474 systemd_cryptsetup_generator_LDADD = \
4477 SYSINIT_TARGET_WANTS += \
4482 # ------------------------------------------------------------------------------
4484 systemd_hostnamed_SOURCES = \
4485 src/hostname/hostnamed.c
4487 systemd_hostnamed_LDADD = \
4490 rootlibexec_PROGRAMS += \
4493 nodist_systemunit_DATA += \
4494 units/systemd-hostnamed.service
4496 dist_systemunit_DATA_busnames += \
4497 units/org.freedesktop.hostname1.busname
4499 dist_dbuspolicy_DATA += \
4500 src/hostname/org.freedesktop.hostname1.conf
4502 dist_dbussystemservice_DATA += \
4503 src/hostname/org.freedesktop.hostname1.service
4505 polkitpolicy_files += \
4506 src/hostname/org.freedesktop.hostname1.policy
4508 SYSTEM_UNIT_ALIASES += \
4509 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4511 BUSNAMES_TARGET_WANTS += \
4512 org.freedesktop.hostname1.busname
4514 hostnamectl_SOURCES = \
4515 src/hostname/hostnamectl.c
4517 hostnamectl_LDADD = \
4523 if ENABLE_BASH_COMPLETION
4524 dist_bashcompletion_DATA += \
4525 shell-completion/bash/hostnamectl
4528 if ENABLE_ZSH_COMPLETION
4529 dist_zshcompletion_DATA += \
4530 shell-completion/zsh/_hostnamectl
4534 polkitpolicy_in_files += \
4535 src/hostname/org.freedesktop.hostname1.policy.in
4538 units/systemd-hostnamed.service.in
4540 # ------------------------------------------------------------------------------
4541 dist_systemunit_DATA_busnames += \
4542 units/org.freedesktop.systemd1.busname
4544 BUSNAMES_TARGET_WANTS += \
4545 org.freedesktop.systemd1.busname
4547 # ------------------------------------------------------------------------------
4549 systemd_localed_SOURCES = \
4550 src/locale/localed.c
4552 systemd_localed_LDADD = \
4556 systemd_localed_CFLAGS = \
4560 nodist_systemunit_DATA += \
4561 units/systemd-localed.service
4563 dist_systemunit_DATA_busnames += \
4564 units/org.freedesktop.locale1.busname
4566 rootlibexec_PROGRAMS += \
4569 dist_dbuspolicy_DATA += \
4570 src/locale/org.freedesktop.locale1.conf
4572 dist_dbussystemservice_DATA += \
4573 src/locale/org.freedesktop.locale1.service
4575 polkitpolicy_files += \
4576 src/locale/org.freedesktop.locale1.policy
4578 SYSTEM_UNIT_ALIASES += \
4579 systemd-localed.service dbus-org.freedesktop.locale1.service
4581 BUSNAMES_TARGET_WANTS += \
4582 org.freedesktop.locale1.busname
4584 dist_pkgdata_DATA = \
4585 src/locale/kbd-model-map \
4586 src/locale/language-fallback-map
4588 localectl_SOURCES = \
4589 src/locale/localectl.c
4597 if ENABLE_BASH_COMPLETION
4598 dist_bashcompletion_DATA += \
4599 shell-completion/bash/localectl
4602 if ENABLE_ZSH_COMPLETION
4603 dist_zshcompletion_DATA += \
4604 shell-completion/zsh/_localectl
4608 .PHONY: update-kbd-model-map
4610 polkitpolicy_in_files += \
4611 src/locale/org.freedesktop.locale1.policy.in
4614 units/systemd-localed.service.in
4616 # ------------------------------------------------------------------------------
4618 systemd_timedated_SOURCES = \
4619 src/timedate/timedated.c
4621 systemd_timedated_LDADD = \
4624 rootlibexec_PROGRAMS += \
4627 dist_dbussystemservice_DATA += \
4628 src/timedate/org.freedesktop.timedate1.service
4630 dist_dbuspolicy_DATA += \
4631 src/timedate/org.freedesktop.timedate1.conf
4633 nodist_systemunit_DATA += \
4634 units/systemd-timedated.service
4636 dist_systemunit_DATA_busnames += \
4637 units/org.freedesktop.timedate1.busname
4639 polkitpolicy_files += \
4640 src/timedate/org.freedesktop.timedate1.policy
4642 SYSTEM_UNIT_ALIASES += \
4643 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4645 BUSNAMES_TARGET_WANTS += \
4646 org.freedesktop.timedate1.busname
4648 timedatectl_SOURCES = \
4649 src/timedate/timedatectl.c
4651 timedatectl_LDADD = \
4657 if ENABLE_BASH_COMPLETION
4658 dist_bashcompletion_DATA += \
4659 shell-completion/bash/timedatectl
4662 if ENABLE_ZSH_COMPLETION
4663 dist_zshcompletion_DATA += \
4664 shell-completion/zsh/_timedatectl
4668 polkitpolicy_in_files += \
4669 src/timedate/org.freedesktop.timedate1.policy.in
4672 units/systemd-timedated.service.in
4674 # ------------------------------------------------------------------------------
4676 systemd_timesyncd_SOURCES = \
4677 src/timesync/timesyncd.c \
4678 src/timesync/timesyncd-manager.c \
4679 src/timesync/timesyncd-manager.h \
4680 src/timesync/timesyncd-conf.c \
4681 src/timesync/timesyncd-conf.h \
4682 src/timesync/timesyncd-server.c \
4683 src/timesync/timesyncd-server.h
4685 nodist_systemd_timesyncd_SOURCES = \
4686 src/timesync/timesyncd-gperf.c
4688 gperf_gperf_sources += \
4689 src/timesync/timesyncd-gperf.gperf
4691 systemd_timesyncd_LDADD = \
4692 libsystemd-network.la \
4695 rootlibexec_PROGRAMS += \
4698 nodist_systemunit_DATA += \
4699 units/systemd-timesyncd.service
4701 GENERAL_ALIASES += \
4702 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4705 units/systemd-timesyncd.service.in
4707 nodist_pkgsysconf_DATA += \
4708 src/timesync/timesyncd.conf
4711 src/timesync/timesyncd.conf.in
4714 # ------------------------------------------------------------------------------
4716 libnss_myhostname_la_SOURCES = \
4717 src/nss-myhostname/nss-myhostname.sym \
4718 src/nss-myhostname/nss-myhostname.c
4720 libnss_myhostname_la_LDFLAGS = \
4727 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4729 libnss_myhostname_la_LIBADD = \
4732 lib_LTLIBRARIES += \
4733 libnss_myhostname.la
4736 # ------------------------------------------------------------------------------
4738 systemd_machined_SOURCES = \
4739 src/machine/machined.c \
4740 src/machine/machined.h
4742 systemd_machined_LDADD = \
4745 rootlibexec_PROGRAMS += \
4748 libmachine_core_la_SOURCES = \
4749 src/machine/machine.c \
4750 src/machine/machine.h \
4751 src/machine/machined-dbus.c \
4752 src/machine/machine-dbus.c \
4753 src/machine/machine-dbus.h \
4754 src/machine/image-dbus.c \
4755 src/machine/image-dbus.h
4757 libmachine_core_la_LIBADD = \
4760 noinst_LTLIBRARIES += \
4763 machinectl_SOURCES = \
4764 src/machine/machinectl.c
4766 machinectl_LDADD = \
4769 rootbin_PROGRAMS += \
4772 if ENABLE_BASH_COMPLETION
4773 dist_bashcompletion_DATA += \
4774 shell-completion/bash/machinectl
4777 test_machine_tables_SOURCES = \
4778 src/machine/test-machine-tables.c
4780 test_machine_tables_LDADD = \
4786 nodist_systemunit_DATA += \
4787 units/systemd-machined.service
4789 dist_systemunit_DATA += \
4792 dist_systemunit_DATA_busnames += \
4793 units/org.freedesktop.machine1.busname
4795 dist_dbussystemservice_DATA += \
4796 src/machine/org.freedesktop.machine1.service
4798 dist_dbuspolicy_DATA += \
4799 src/machine/org.freedesktop.machine1.conf
4801 polkitpolicy_files += \
4802 src/machine/org.freedesktop.machine1.policy
4804 if ENABLE_ZSH_COMPLETION
4805 dist_zshcompletion_DATA += \
4806 shell-completion/zsh/_machinectl \
4807 shell-completion/zsh/_sd_machines
4810 SYSTEM_UNIT_ALIASES += \
4811 systemd-machined.service dbus-org.freedesktop.machine1.service
4813 BUSNAMES_TARGET_WANTS += \
4814 org.freedesktop.machine1.busname
4816 libnss_mymachines_la_SOURCES = \
4817 src/nss-mymachines/nss-mymachines.sym \
4818 src/nss-mymachines/nss-mymachines.c
4820 libnss_mymachines_la_LDFLAGS = \
4827 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4829 libnss_mymachines_la_LIBADD = \
4832 lib_LTLIBRARIES += \
4833 libnss_mymachines.la
4837 polkitpolicy_in_files += \
4838 src/machine/org.freedesktop.machine1.policy.in
4841 units/systemd-machined.service.in
4843 # ------------------------------------------------------------------------------
4852 rootlibexec_PROGRAMS += \
4858 systemd_importd_SOURCES = \
4859 src/import/importd.c
4861 systemd_importd_CFLAGS = \
4863 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
4864 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
4865 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
4867 systemd_importd_LDADD = \
4870 systemd_pull_SOURCES = \
4872 src/import/pull-raw.c \
4873 src/import/pull-raw.h \
4874 src/import/pull-tar.c \
4875 src/import/pull-tar.h \
4876 src/import/pull-dkr.c \
4877 src/import/pull-dkr.h \
4878 src/import/pull-job.c \
4879 src/import/pull-job.h \
4880 src/import/pull-common.c \
4881 src/import/pull-common.h \
4882 src/import/import-common.c \
4883 src/import/import-common.h \
4884 src/import/import-compress.c \
4885 src/import/import-compress.h \
4886 src/import/curl-util.c \
4887 src/import/curl-util.h \
4888 src/import/aufs-util.c \
4889 src/import/aufs-util.h \
4890 src/import/qcow2-util.c \
4891 src/import/qcow2-util.h
4893 systemd_pull_CFLAGS = \
4899 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
4900 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
4902 systemd_pull_LDADD = \
4910 systemd_import_SOURCES = \
4911 src/import/import.c \
4912 src/import/import-raw.c \
4913 src/import/import-raw.h \
4914 src/import/import-tar.c \
4915 src/import/import-tar.h \
4916 src/import/import-common.c \
4917 src/import/import-common.h \
4918 src/import/import-compress.c \
4919 src/import/import-compress.h \
4920 src/import/qcow2-util.c \
4921 src/import/qcow2-util.h
4923 systemd_import_CFLAGS = \
4928 systemd_import_LDADD = \
4934 systemd_export_SOURCES = \
4935 src/import/export.c \
4936 src/import/export-tar.c \
4937 src/import/export-tar.h \
4938 src/import/export-raw.c \
4939 src/import/export-raw.h \
4940 src/import/import-common.c \
4941 src/import/import-common.h \
4942 src/import/import-compress.c \
4943 src/import/import-compress.h
4945 systemd_export_CFLAGS = \
4950 systemd_export_LDADD = \
4956 dist_rootlibexec_DATA = \
4957 src/import/import-pubring.gpg
4959 nodist_systemunit_DATA += \
4960 units/systemd-importd.service
4962 dist_systemunit_DATA_busnames += \
4963 units/org.freedesktop.import1.busname
4965 BUSNAMES_TARGET_WANTS += \
4966 org.freedesktop.import1.busname
4968 SYSTEM_UNIT_ALIASES += \
4969 systemd-importd.service dbus-org.freedesktop.import1.service
4971 dist_dbussystemservice_DATA += \
4972 src/import/org.freedesktop.import1.service
4974 dist_dbuspolicy_DATA += \
4975 src/import/org.freedesktop.import1.conf
4977 polkitpolicy_files += \
4978 src/import/org.freedesktop.import1.policy
4983 test_qcow2_SOURCES = \
4984 src/import/test-qcow2.c \
4985 src/import/qcow2-util.c \
4986 src/import/qcow2-util.h
4988 test_qcow2_CFLAGS = \
4992 test_qcow2_LDADD = \
5004 polkitpolicy_in_files += \
5005 src/import/org.freedesktop.import1.policy.in
5008 units/systemd-importd.service.in \
5009 src/resolve/resolved.conf.in
5012 # ------------------------------------------------------------------------------
5014 systemd_resolved_SOURCES = \
5015 src/resolve/resolved.c \
5016 src/resolve/resolved-manager.c \
5017 src/resolve/resolved-manager.h \
5018 src/resolve/resolved-conf.c \
5019 src/resolve/resolved-conf.h \
5020 src/resolve/resolved-bus.c \
5021 src/resolve/resolved-bus.h \
5022 src/resolve/resolved-link.h \
5023 src/resolve/resolved-link.c \
5024 src/resolve/resolved-llmnr.h \
5025 src/resolve/resolved-llmnr.c \
5026 src/resolve/resolved-def.h \
5027 src/resolve/resolved-dns-rr.h \
5028 src/resolve/resolved-dns-rr.c \
5029 src/resolve/resolved-dns-question.h \
5030 src/resolve/resolved-dns-question.c \
5031 src/resolve/resolved-dns-answer.h \
5032 src/resolve/resolved-dns-answer.c \
5033 src/resolve/resolved-dns-packet.h \
5034 src/resolve/resolved-dns-packet.c \
5035 src/resolve/resolved-dns-query.h \
5036 src/resolve/resolved-dns-query.c \
5037 src/resolve/resolved-dns-transaction.h \
5038 src/resolve/resolved-dns-transaction.c \
5039 src/resolve/resolved-dns-scope.h \
5040 src/resolve/resolved-dns-scope.c \
5041 src/resolve/resolved-dns-server.h \
5042 src/resolve/resolved-dns-server.c \
5043 src/resolve/resolved-dns-cache.h \
5044 src/resolve/resolved-dns-cache.c \
5045 src/resolve/resolved-dns-zone.h \
5046 src/resolve/resolved-dns-zone.c \
5047 src/resolve/resolved-dns-stream.h \
5048 src/resolve/resolved-dns-stream.c \
5049 src/resolve/dns-type.c \
5050 src/resolve/dns-type.h
5052 nodist_systemd_resolved_SOURCES = \
5053 src/resolve/dns_type-from-name.h \
5054 src/resolve/dns_type-to-name.h \
5055 src/resolve/resolved-gperf.c
5057 gperf_gperf_sources += \
5058 src/resolve/resolved-gperf.gperf
5060 gperf_txt_sources += \
5061 src/resolve/dns_type-list.txt
5063 systemd_resolved_LDADD = \
5064 libsystemd-network.la \
5067 rootlibexec_PROGRAMS += \
5070 nodist_systemunit_DATA += \
5071 units/systemd-resolved.service
5073 dist_systemunit_DATA_busnames += \
5074 units/org.freedesktop.resolve1.busname
5076 dist_dbuspolicy_DATA += \
5077 src/resolve/org.freedesktop.resolve1.conf
5079 dist_dbussystemservice_DATA += \
5080 src/resolve/org.freedesktop.resolve1.service
5082 SYSTEM_UNIT_ALIASES += \
5083 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5085 BUSNAMES_TARGET_WANTS += \
5086 org.freedesktop.resolve1.busname
5088 GENERAL_ALIASES += \
5089 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5091 nodist_pkgsysconf_DATA += \
5092 src/resolve/resolved.conf
5097 libnss_resolve_la_SOURCES = \
5098 src/nss-resolve/nss-resolve.sym \
5099 src/nss-resolve/nss-resolve.c
5101 libnss_resolve_la_LDFLAGS = \
5108 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5110 libnss_resolve_la_LIBADD = \
5113 lib_LTLIBRARIES += \
5116 systemd_resolve_host_SOURCES = \
5117 src/resolve-host/resolve-host.c \
5118 src/resolve/resolved-dns-packet.c \
5119 src/resolve/resolved-dns-packet.h \
5120 src/resolve/resolved-dns-rr.c \
5121 src/resolve/resolved-dns-rr.h \
5122 src/resolve/resolved-dns-answer.c \
5123 src/resolve/resolved-dns-answer.h \
5124 src/resolve/resolved-dns-question.c \
5125 src/resolve/resolved-dns-question.h \
5126 src/resolve/dns-type.c \
5127 src/resolve/dns-type.h
5129 nodist_systemd_resolve_host_SOURCES = \
5130 src/resolve/dns_type-from-name.h \
5131 src/resolve/dns_type-to-name.h
5133 systemd_resolve_host_LDADD = \
5136 rootlibexec_PROGRAMS += \
5137 systemd-resolve-host
5142 units/systemd-resolved.service.m4.in
5144 # ------------------------------------------------------------------------------
5146 rootlibexec_PROGRAMS += \
5149 systemd_networkd_SOURCES = \
5150 src/network/networkd.c
5152 systemd_networkd_LDADD = \
5156 systemd_networkd_LDADD += \
5160 noinst_LTLIBRARIES += \
5163 libnetworkd_core_la_CFLAGS = \
5166 libnetworkd_core_la_SOURCES = \
5167 src/libsystemd-network/network-internal.h \
5168 src/network/networkd.h \
5169 src/network/networkd-link.h \
5170 src/network/networkd-netdev.h \
5171 src/network/networkd-netdev-tunnel.h \
5172 src/network/networkd-netdev-veth.h \
5173 src/network/networkd-netdev-vxlan.h \
5174 src/network/networkd-netdev-vlan.h \
5175 src/network/networkd-netdev-macvlan.h \
5176 src/network/networkd-netdev-ipvlan.h \
5177 src/network/networkd-netdev-dummy.h \
5178 src/network/networkd-netdev-tuntap.h \
5179 src/network/networkd-netdev-bond.h \
5180 src/network/networkd-netdev-bridge.h \
5181 src/network/networkd-netdev.c \
5182 src/network/networkd-netdev-tunnel.c \
5183 src/network/networkd-netdev-veth.c \
5184 src/network/networkd-netdev-vxlan.c \
5185 src/network/networkd-netdev-vlan.c \
5186 src/network/networkd-netdev-macvlan.c \
5187 src/network/networkd-netdev-ipvlan.c \
5188 src/network/networkd-netdev-dummy.c \
5189 src/network/networkd-netdev-tuntap.c \
5190 src/network/networkd-netdev-bond.c \
5191 src/network/networkd-netdev-bridge.c \
5192 src/network/networkd-link.c \
5193 src/network/networkd-link-bus.c \
5194 src/network/networkd-ipv4ll.c \
5195 src/network/networkd-dhcp4.c \
5196 src/network/networkd-dhcp6.c \
5197 src/network/networkd-network.c \
5198 src/network/networkd-network-bus.c \
5199 src/network/networkd-address.c \
5200 src/network/networkd-route.c \
5201 src/network/networkd-manager.c \
5202 src/network/networkd-manager-bus.c \
5203 src/network/networkd-fdb.c \
5204 src/network/networkd-address-pool.c
5206 nodist_libnetworkd_core_la_SOURCES = \
5207 src/network/networkd-network-gperf.c \
5208 src/network/networkd-netdev-gperf.c
5210 libnetworkd_core_la_LIBADD = \
5211 libsystemd-network.la \
5214 rootlibexec_PROGRAMS += \
5215 systemd-networkd-wait-online
5217 systemd_networkd_wait_online_CFLAGS = \
5220 systemd_networkd_wait_online_SOURCES = \
5221 src/libsystemd-network/network-internal.h \
5222 src/network/networkd-wait-online.h \
5223 src/network/networkd-wait-online-link.h \
5224 src/network/networkd-wait-online.c \
5225 src/network/networkd-wait-online-manager.c \
5226 src/network/networkd-wait-online-link.c
5228 systemd_networkd_wait_online_LDADD = \
5229 libsystemd-network.la \
5232 rootbin_PROGRAMS += \
5235 networkctl_SOURCES = \
5236 src/network/networkctl.c
5238 networkctl_LDADD = \
5240 libsystemd-network.la
5242 test_network_SOURCES = \
5243 src/network/test-network.c
5245 test_network_LDADD = \
5249 test_network_LDADD += \
5253 test_network_tables_SOURCES = \
5254 src/network/test-network-tables.c \
5255 src/shared/test-tables.h
5257 test_network_tables_LDADD = \
5258 libnetworkd-core.la \
5262 test_network_tables_LDADD += \
5270 dist_systemunit_DATA += \
5271 units/systemd-networkd.socket
5273 nodist_systemunit_DATA += \
5274 units/systemd-networkd.service \
5275 units/systemd-networkd-wait-online.service
5277 dist_systemunit_DATA_busnames += \
5278 units/org.freedesktop.network1.busname
5280 dist_dbussystemservice_DATA += \
5281 src/network/org.freedesktop.network1.service
5283 dist_dbuspolicy_DATA += \
5284 src/network/org.freedesktop.network1.conf
5286 GENERAL_ALIASES += \
5287 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5288 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5289 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5291 SYSTEM_UNIT_ALIASES += \
5292 systemd-networkd.service dbus-org.freedesktop.network1.service
5294 BUSNAMES_TARGET_WANTS += \
5295 org.freedesktop.network1.busname
5297 gperf_gperf_sources += \
5298 src/network/networkd-network-gperf.gperf \
5299 src/network/networkd-netdev-gperf.gperf
5303 units/systemd-networkd.service.m4.in \
5304 units/systemd-networkd-wait-online.service.in
5306 # ------------------------------------------------------------------------------
5308 systemd_logind_SOURCES = \
5309 src/login/logind.c \
5312 nodist_systemd_logind_SOURCES = \
5313 src/login/logind-gperf.c
5315 systemd_logind_LDADD = \
5318 liblogind_core_la_SOURCES = \
5319 src/login/logind-core.c \
5320 src/login/logind-device.c \
5321 src/login/logind-device.h \
5322 src/login/logind-button.c \
5323 src/login/logind-button.h \
5324 src/login/logind-action.c \
5325 src/login/logind-action.h \
5326 src/login/logind-seat.c \
5327 src/login/logind-seat.h \
5328 src/login/logind-session.c \
5329 src/login/logind-session.h \
5330 src/login/logind-session-device.c \
5331 src/login/logind-session-device.h \
5332 src/login/logind-user.c \
5333 src/login/logind-user.h \
5334 src/login/logind-inhibit.c \
5335 src/login/logind-inhibit.h \
5336 src/login/logind-dbus.c \
5337 src/login/logind-session-dbus.c \
5338 src/login/logind-seat-dbus.c \
5339 src/login/logind-user-dbus.c \
5340 src/login/logind-utmp.c \
5341 src/login/logind-acl.h
5343 liblogind_core_la_LIBADD = \
5347 liblogind_core_la_SOURCES += \
5348 src/login/logind-acl.c
5351 noinst_LTLIBRARIES += \
5354 rootlibexec_PROGRAMS += \
5357 loginctl_SOURCES = \
5358 src/login/loginctl.c \
5359 src/login/sysfs-show.h \
5360 src/login/sysfs-show.c
5365 rootbin_PROGRAMS += \
5368 if ENABLE_BASH_COMPLETION
5369 dist_bashcompletion_DATA += \
5370 shell-completion/bash/loginctl
5373 if ENABLE_ZSH_COMPLETION
5374 dist_zshcompletion_DATA += \
5375 shell-completion/zsh/_loginctl \
5376 shell-completion/zsh/_systemd-inhibit
5379 systemd_inhibit_SOURCES = \
5382 systemd_inhibit_LDADD = \
5385 rootbin_PROGRAMS += \
5388 test_login_SOURCES = \
5389 src/libsystemd/sd-login/test-login.c
5391 test_login_LDADD = \
5394 test_login_shared_SOURCES = \
5395 src/login/test-login-shared.c
5397 test_login_shared_LDADD = \
5400 test_inhibit_SOURCES = \
5401 src/login/test-inhibit.c
5403 test_inhibit_LDADD = \
5406 test_login_tables_SOURCES = \
5407 src/login/test-login-tables.c
5409 test_login_tables_LDADD = \
5421 pam_systemd_la_SOURCES = \
5422 src/login/pam_systemd.sym \
5423 src/login/pam_systemd.c
5425 pam_systemd_la_CFLAGS = \
5429 pam_systemd_la_LDFLAGS = \
5435 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5437 pam_systemd_la_LIBADD = \
5441 pamlib_LTLIBRARIES = \
5444 dist_pamconf_DATA = \
5445 src/login/systemd-user
5449 nodist_systemunit_DATA += \
5450 units/systemd-logind.service
5452 dist_systemunit_DATA += \
5455 dist_systemunit_DATA_busnames += \
5456 units/org.freedesktop.login1.busname
5458 dist_dbussystemservice_DATA += \
5459 src/login/org.freedesktop.login1.service
5461 dist_dbuspolicy_DATA += \
5462 src/login/org.freedesktop.login1.conf
5464 dist_pkgsysconf_DATA += \
5465 src/login/logind.conf
5467 polkitpolicy_files += \
5468 src/login/org.freedesktop.login1.policy
5473 MULTI_USER_TARGET_WANTS += \
5474 systemd-logind.service
5476 SYSTEM_UNIT_ALIASES += \
5477 systemd-logind.service dbus-org.freedesktop.login1.service
5479 BUSNAMES_TARGET_WANTS += \
5480 org.freedesktop.login1.busname
5482 dist_udevrules_DATA += \
5483 src/login/70-uaccess.rules \
5484 src/login/70-power-switch.rules
5486 nodist_udevrules_DATA += \
5487 src/login/71-seat.rules \
5488 src/login/73-seat-late.rules
5492 polkitpolicy_in_files += \
5493 src/login/org.freedesktop.login1.policy.in
5495 gperf_gperf_sources += \
5496 src/login/logind-gperf.gperf
5499 src/login/71-seat.rules.in \
5500 src/login/73-seat-late.rules.in \
5501 units/systemd-logind.service.in
5503 # ------------------------------------------------------------------------------
5506 systemd_user_sessions_SOURCES = \
5507 src/user-sessions/user-sessions.c
5509 systemd_user_sessions_LDADD = \
5512 rootlibexec_PROGRAMS += \
5513 systemd-user-sessions
5515 nodist_systemunit_DATA += \
5516 units/systemd-user-sessions.service
5518 MULTI_USER_TARGET_WANTS += \
5519 systemd-user-sessions.service
5524 units/systemd-user-sessions.service.in
5526 # ------------------------------------------------------------------------------
5529 test/README.testsuite \
5530 test/TEST-01-BASIC \
5531 test/TEST-01-BASIC/Makefile \
5532 test/TEST-01-BASIC/test.sh \
5533 test/TEST-02-CRYPTSETUP \
5534 test/TEST-02-CRYPTSETUP/Makefile \
5535 test/TEST-02-CRYPTSETUP/test.sh \
5537 test/TEST-03-JOBS/Makefile \
5538 test/TEST-03-JOBS/test-jobs.sh \
5539 test/TEST-03-JOBS/test.sh \
5543 test/loopy2.service \
5544 test/loopy3.service \
5545 test/loopy4.service \
5546 test/loopy.service \
5547 test/loopy.service.d \
5548 test/loopy.service.d/compat.conf
5550 # ------------------------------------------------------------------------------
5551 if ENABLE_COMPAT_LIBS
5552 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5553 $(AM_V_at)$(MKDIR_P) $(dir $@)
5554 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5557 libsystemd-journal.c \
5558 libsystemd-login.c \
5559 libsystemd-id128.c \
5562 nodist_libsystemd_journal_la_SOURCES = \
5563 libsystemd-journal.c
5565 libsystemd_journal_la_SOURCES = \
5566 src/compat-libs/libsystemd-journal.sym
5568 libsystemd_journal_la_CPPFLAGS = \
5570 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5572 libsystemd_journal_la_LDFLAGS = \
5574 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5575 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5577 libsystemd_journal_la_LIBADD = \
5578 libsystemd-journal-internal.la \
5579 libsystemd-internal.la
5581 nodist_libsystemd_login_la_SOURCES = \
5584 libsystemd_login_la_SOURCES = \
5585 src/compat-libs/libsystemd-login.sym
5587 libsystemd_login_la_CPPFLAGS = \
5589 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5591 libsystemd_login_la_LDFLAGS = \
5593 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5594 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5596 libsystemd_login_la_LIBADD = \
5597 libsystemd-internal.la
5599 nodist_libsystemd_id128_la_SOURCES = \
5602 libsystemd_id128_la_SOURCES = \
5603 src/compat-libs/libsystemd-id128.sym
5605 libsystemd_id128_la_CPPFLAGS = \
5607 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5609 libsystemd_id128_la_LDFLAGS = \
5611 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5612 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5614 libsystemd_id128_la_LIBADD = \
5615 libsystemd-internal.la
5617 nodist_libsystemd_daemon_la_SOURCES = \
5620 libsystemd_daemon_la_SOURCES = \
5621 src/compat-libs/libsystemd-daemon.sym
5623 libsystemd_daemon_la_CPPFLAGS = \
5625 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5627 libsystemd_daemon_la_LDFLAGS = \
5629 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5630 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5632 libsystemd_daemon_la_LIBADD = \
5633 libsystemd-internal.la
5635 lib_LTLIBRARIES += \
5636 libsystemd-journal.la \
5637 libsystemd-login.la \
5638 libsystemd-id128.la \
5639 libsystemd-daemon.la
5641 pkgconfiglib_DATA += \
5642 src/compat-libs/libsystemd-journal.pc \
5643 src/compat-libs/libsystemd-login.pc \
5644 src/compat-libs/libsystemd-id128.pc \
5645 src/compat-libs/libsystemd-daemon.pc
5647 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5648 compat-lib-install-hook:
5649 libname=libsystemd-login.so && $(move-to-rootlibdir)
5650 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5651 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5652 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5654 compat-lib-uninstall-hook:
5655 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5656 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5657 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5658 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5660 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5661 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5665 src/compat-libs/linkwarning.h \
5666 src/compat-libs/libsystemd-journal.pc.in \
5667 src/compat-libs/libsystemd-login.pc.in \
5668 src/compat-libs/libsystemd-id128.pc.in \
5669 src/compat-libs/libsystemd-daemon.pc.in
5671 # ------------------------------------------------------------------------------
5673 '|rootlibexecdir=$(rootlibexecdir)|' \
5674 '|rootbindir=$(rootbindir)|' \
5675 '|bindir=$(bindir)|' \
5676 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5677 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5678 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5679 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5680 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5681 '|pkgdatadir=$(pkgdatadir)|' \
5682 '|systemunitdir=$(systemunitdir)|' \
5683 '|userunitdir=$(userunitdir)|' \
5684 '|systempresetdir=$(systempresetdir)|' \
5685 '|userpresetdir=$(userpresetdir)|' \
5686 '|udevhwdbdir=$(udevhwdbdir)|' \
5687 '|udevrulesdir=$(udevrulesdir)|' \
5688 '|catalogdir=$(catalogdir)|' \
5689 '|tmpfilesdir=$(tmpfilesdir)|' \
5690 '|sysusersdir=$(sysusersdir)|' \
5691 '|sysctldir=$(sysctldir)|' \
5692 '|systemgeneratordir=$(systemgeneratordir)|' \
5693 '|usergeneratordir=$(usergeneratordir)|' \
5694 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5695 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5696 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5697 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5698 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5699 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5700 '|prefix=$(prefix)|' \
5701 '|exec_prefix=$(exec_prefix)|' \
5702 '|libdir=$(libdir)|' \
5703 '|includedir=$(includedir)|' \
5704 '|VERSION=$(VERSION)|' \
5705 '|rootprefix=$(rootprefix)|' \
5706 '|udevlibexecdir=$(udevlibexecdir)|' \
5707 '|SUSHELL=$(SUSHELL)|' \
5708 '|SULOGIN=$(SULOGIN)|' \
5709 '|DEBUGTTY=$(DEBUGTTY)|' \
5712 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5713 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5714 '|MKDIR_P=$(MKDIR_P)|' \
5715 '|QUOTAON=$(QUOTAON)|' \
5716 '|QUOTACHECK=$(QUOTACHECK)|' \
5717 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5718 '|VARLOGDIR=$(varlogdir)|' \
5719 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5720 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5721 '|PYTHON=$(PYTHON)|' \
5722 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5723 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5724 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5725 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5726 '|TTY_GID=$(TTY_GID)|' \
5727 '|systemsleepdir=$(systemsleepdir)|' \
5728 '|systemshutdowndir=$(systemshutdowndir)|' \
5729 '|binfmtdir=$(binfmtdir)|' \
5730 '|modulesloaddir=$(modulesloaddir)|'
5733 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5734 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5743 sysctl.d/%: sysctl.d/%.in
5752 src/core/macros.%: src/core/macros.%.in
5755 src/%.policy.in: src/%.policy.in.in
5758 shell-completion/%: shell-completion/%.in
5769 $(AM_V_GEN)chmod +x $@
5771 src/%.c: src/%.gperf
5772 $(AM_V_at)$(MKDIR_P) $(dir $@)
5773 $(AM_V_GPERF)$(GPERF) < $< > $@
5776 $(AM_V_at)$(MKDIR_P) $(dir $@)
5777 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5779 sysusers.d/%: sysusers.d/%.m4
5780 $(AM_V_at)$(MKDIR_P) $(dir $@)
5781 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5783 tmpfiles.d/%: tmpfiles.d/%.m4
5784 $(AM_V_at)$(MKDIR_P) $(dir $@)
5785 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5789 $(AM_V_at)$(MKDIR_P) $(dir $@)
5790 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5792 units/user/%: units/user/%.m4
5793 $(AM_V_at)$(MKDIR_P) $(dir $@)
5794 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5797 nodist_polkitpolicy_DATA = \
5798 $(polkitpolicy_files) \
5799 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5803 $(polkitpolicy_in_files) \
5804 $(polkitpolicy_in_in_files)
5806 # ------------------------------------------------------------------------------
5808 man/custom-entities.ent: configure.ac
5809 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5810 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5811 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5815 man/custom-entities.ent
5820 --stringparam man.output.quietly 1 \
5821 --stringparam funcsynopsis.style ansi \
5822 --stringparam man.authors.section.enabled 0 \
5823 --stringparam man.copyright.section.enabled 0 \
5824 --stringparam systemd.version $(VERSION) \
5825 --path '$(builddir)/man:$(srcdir)/man'
5827 XSLTPROC_PROCESS_MAN = \
5828 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5830 XSLTPROC_PROCESS_HTML = \
5831 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5833 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5834 $(XSLTPROC_PROCESS_MAN)
5836 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5837 $(XSLTPROC_PROCESS_MAN)
5839 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5840 $(XSLTPROC_PROCESS_MAN)
5842 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5843 $(XSLTPROC_PROCESS_MAN)
5845 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5846 $(XSLTPROC_PROCESS_MAN)
5848 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5849 $(XSLTPROC_PROCESS_HTML)
5852 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5858 man/custom-html.xsl \
5861 # ------------------------------------------------------------------------------
5864 docs/sysvinit/README
5869 docs/sysvinit/README: docs/sysvinit/README.in
5872 docs/var-log/README: docs/var-log/README.in
5876 docs/sysvinit/README \
5881 docs/sysvinit/README.in \
5882 docs/var-log/README.in
5884 SOCKETS_TARGET_WANTS += \
5885 systemd-initctl.socket
5889 MULTI_USER_TARGET_WANTS += \
5890 systemd-update-utmp-runlevel.service
5891 GRAPHICAL_TARGET_WANTS += \
5892 systemd-update-utmp-runlevel.service
5893 RESCUE_TARGET_WANTS += \
5894 systemd-update-utmp-runlevel.service
5897 SYSINIT_TARGET_WANTS += \
5898 systemd-update-utmp.service
5901 SYSINIT_TARGET_WANTS += \
5902 systemd-update-done.service
5904 LOCAL_FS_TARGET_WANTS += \
5905 systemd-remount-fs.service \
5907 var-lib-machines.mount
5909 MULTI_USER_TARGET_WANTS += \
5911 systemd-ask-password-wall.path
5913 SYSINIT_TARGET_WANTS += \
5914 dev-hugepages.mount \
5916 sys-kernel-config.mount \
5917 sys-kernel-debug.mount \
5918 sys-fs-fuse-connections.mount \
5919 systemd-sysctl.service \
5920 systemd-ask-password-console.path
5923 SYSTEM_UNIT_ALIASES += \
5924 poweroff.target runlevel0.target \
5925 rescue.target runlevel1.target \
5926 multi-user.target runlevel2.target \
5927 multi-user.target runlevel3.target \
5928 multi-user.target runlevel4.target \
5929 graphical.target runlevel5.target \
5930 reboot.target runlevel6.target
5933 SYSTEM_UNIT_ALIASES += \
5934 graphical.target default.target \
5935 reboot.target ctrl-alt-del.target \
5936 getty@.service autovt@.service
5938 USER_UNIT_ALIASES += \
5939 $(systemunitdir)/shutdown.target shutdown.target \
5940 $(systemunitdir)/sockets.target sockets.target \
5941 $(systemunitdir)/timers.target timers.target \
5942 $(systemunitdir)/paths.target paths.target \
5943 $(systemunitdir)/bluetooth.target bluetooth.target \
5944 $(systemunitdir)/printer.target printer.target \
5945 $(systemunitdir)/sound.target sound.target \
5946 $(systemunitdir)/smartcard.target smartcard.target
5948 USER_UNIT_ALIASES += \
5949 $(systemunitdir)/busnames.target busnames.target
5951 GENERAL_ALIASES += \
5952 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5953 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5954 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5955 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5959 $(systemunitdir)/runlevel1.target.wants \
5960 $(systemunitdir)/runlevel2.target.wants \
5961 $(systemunitdir)/runlevel3.target.wants \
5962 $(systemunitdir)/runlevel4.target.wants \
5963 $(systemunitdir)/runlevel5.target.wants
5967 $(prefix)/lib/modules-load.d \
5968 $(sysconfdir)/modules-load.d \
5969 $(prefix)/lib/systemd/network \
5970 $(sysconfdir)/systemd/network \
5971 $(prefix)/lib/sysctl.d \
5972 $(sysconfdir)/sysctl.d \
5973 $(prefix)/lib/kernel/install.d \
5974 $(sysconfdir)/kernel/install.d \
5975 $(systemshutdowndir) \
5977 $(systemgeneratordir) \
5978 $(usergeneratordir) \
5981 $(pkgsysconfdir)/system \
5982 $(pkgsysconfdir)/system/multi-user.target.wants \
5983 $(pkgsysconfdir)/system/getty.target.wants \
5984 $(pkgsysconfdir)/user \
5985 $(dbussessionservicedir) \
5986 $(sysconfdir)/xdg/systemd
5988 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5990 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5992 install-data-hook: $(INSTALL_DATA_HOOKS)
5994 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5996 clean-local: $(CLEAN_LOCAL_HOOKS)
5997 rm -rf $(abs_srcdir)/install-tree
5998 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5999 $(abs_srcdir)/hwdb/iab.txt
6001 DISTCHECK_CONFIGURE_FLAGS = \
6002 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6003 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6004 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6005 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6006 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6007 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6008 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6009 --with-rootprefix=$$dc_install_base \
6010 --enable-compat-libs
6013 DISTCHECK_CONFIGURE_FLAGS += \
6014 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6015 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6017 DISTCHECK_CONFIGURE_FLAGS += \
6018 --with-sysvinit-path= \
6019 --with-sysvrcnd-path=
6023 DISTCHECK_CONFIGURE_FLAGS += \
6026 DISTCHECK_CONFIGURE_FLAGS += \
6031 # Require python when making dist
6033 .PHONY: dist-check-python dist-check-compat-libs dist-check-help
6036 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6040 dist-check-compat-libs:
6041 if !ENABLE_COMPAT_LIBS
6042 @echo "*** compat-libs must be enabled in order to make dist"
6046 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6047 for i in $(abspath $^); do \
6048 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6049 echo "$(basename $$i) --help output is too wide:"; \
6050 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6054 dist: dist-check-python dist-check-compat-libs
6058 ( cd $(top_srcdir)/hwdb && \
6059 wget -N http://www.linux-usb.org/usb.ids \
6060 http://pci-ids.ucw.cz/v2.2/pci.ids \
6061 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6062 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6065 .PHONY: built-sources
6066 built-sources: $(BUILT_SOURCES)
6070 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6074 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6076 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6080 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6084 scp man/*.html gardel:public/systemd-man/
6086 .PHONY: lennart-fedora
6088 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6090 .PHONY: install-tree
6092 rm -rf $(abs_srcdir)/install-tree
6093 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6094 tree $(abs_srcdir)/install-tree
6096 # Let's run all tests of the test suite, but under valgrind. Let's
6097 # exclude the one perl script we have in there
6098 .PHONY: valgrind-tests
6099 valgrind-tests: $(TESTS)
6100 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6101 if file $$f | grep -q shell; then \
6102 echo -e "$${x}Skipping non-binary $$f"; else \
6103 echo -e "$${x}Running $$f"; \
6104 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6109 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6111 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6112 $(AM_V_GEN)sort -u $^ > $@
6114 .PHONY: check-api-docs
6115 check-api-docs: exported man
6116 $(AM_V_GEN)for symbol in `cat exported` ; do \
6117 if test -f $(builddir)/man/$$symbol.html ; then \
6118 echo " Symbol $$symbol() is documented." ; \
6120 echo "‣ Symbol $$symbol() lacks documentation." ; \
6124 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6125 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6127 undefined defined: $(ALL_OBJECTS)
6128 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6129 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6130 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6136 .PHONY: check-api-unused
6137 check-api-unused: defined undefined exported
6138 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6140 .PHONY: check-includes
6141 check-includes: $(top_srcdir)/tools/check-includes.pl
6142 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6143 | xargs $(top_srcdir)/tools/check-includes.pl
6146 $(top_srcdir)/tools/check-includes.pl
6148 # Stupid test that everything purported to be exported really is
6149 define generate-sym-test
6150 $(AM_V_at)$(MKDIR_P) $(dir $@)
6151 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6152 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6153 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6154 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6155 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6156 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6157 $(AM_V_at)printf 'return 0; }\n' >> $@
6160 test-libsystemd-sym.c: \
6161 $(top_builddir)/src/libsystemd/libsystemd.sym \
6162 src/systemd/sd-journal.h \
6163 src/systemd/sd-daemon.h \
6164 src/systemd/sd-login.h \
6165 src/systemd/sd-bus.h \
6166 src/systemd/sd-utf8.h \
6167 src/systemd/sd-resolve.h \
6168 src/systemd/sd-path.h \
6169 src/systemd/sd-event.h
6170 $(generate-sym-test)
6172 test-libudev-sym.c: \
6173 src/libudev/libudev.sym \
6175 $(generate-sym-test)
6177 nodist_test_libsystemd_sym_SOURCES = \
6178 test-libsystemd-sym.c
6179 test_libsystemd_sym_LDADD = \
6182 nodist_test_libudev_sym_SOURCES = \
6184 test_libudev_sym_CFLAGS = \
6186 -Wno-deprecated-declarations
6187 test_libudev_sym_LDADD = \
6191 test-libsystemd-sym.c \
6195 test-libsystemd-sym.c \
6199 test-libsystemd-sym \
6204 cppcheck --enable=all -q $(top_srcdir)
6206 # Used to extract compile flags for YCM.
6211 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6214 tools/gdb-sd_dump_hashmaps.py
6217 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6220 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -