1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
49 # Dirs of external packages
50 dbuspolicydir=@dbuspolicydir@
51 dbussessionservicedir=@dbussessionservicedir@
52 dbussystemservicedir=@dbussystemservicedir@
54 pamconfdir=@pamconfdir@
55 pkgconfigdatadir=$(datadir)/pkgconfig
56 pkgconfiglibdir=$(libdir)/pkgconfig
57 polkitpolicydir=$(datadir)/polkit-1/actions
58 bashcompletiondir=@bashcompletiondir@
59 zshcompletiondir=@zshcompletiondir@
60 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
61 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
62 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
63 varlogdir=$(localstatedir)/log
64 systemdstatedir=$(localstatedir)/lib/systemd
65 catalogstatedir=$(systemdstatedir)/catalog
66 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
68 # Our own, non-special dirs
69 pkgsysconfdir=$(sysconfdir)/systemd
70 userunitdir=$(prefix)/lib/systemd/user
71 userpresetdir=$(prefix)/lib/systemd/user-preset
72 tmpfilesdir=$(prefix)/lib/tmpfiles.d
73 sysusersdir=$(prefix)/lib/sysusers.d
74 sysctldir=$(prefix)/lib/sysctl.d
75 binfmtdir=$(prefix)/lib/binfmt.d
76 modulesloaddir=$(prefix)/lib/modules-load.d
77 networkdir=$(rootprefix)/lib/systemd/network
78 pkgincludedir=$(includedir)/systemd
79 systemgeneratordir=$(rootlibexecdir)/system-generators
80 usergeneratordir=$(prefix)/lib/systemd/user-generators
81 systemshutdowndir=$(rootlibexecdir)/system-shutdown
82 systemsleepdir=$(rootlibexecdir)/system-sleep
83 systemunitdir=$(rootprefix)/lib/systemd/system
84 systempresetdir=$(rootprefix)/lib/systemd/system-preset
85 udevlibexecdir=$(rootprefix)/lib/udev
86 udevhomedir=$(udevlibexecdir)
87 udevrulesdir=$(udevlibexecdir)/rules.d
88 udevhwdbdir=$(udevlibexecdir)/hwdb.d
89 catalogdir=$(prefix)/lib/systemd/catalog
90 kernelinstalldir = $(prefix)/lib/kernel/install.d
91 factory_etcdir = $(datadir)/factory/etc
92 factory_pamdir = $(datadir)/factory/etc/pam.d
93 bootlibdir = $(prefix)/lib/systemd/boot/efi
95 # And these are the special ones for /
96 rootprefix=@rootprefix@
97 rootbindir=$(rootprefix)/bin
98 rootlibexecdir=$(rootprefix)/lib/systemd
103 UNINSTALL_EXEC_HOOKS =
105 UNINSTALL_DATA_HOOKS =
106 DISTCLEAN_LOCAL_HOOKS =
111 rootlibexec_LTLIBRARIES =
116 polkitpolicy_in_in_files =
117 polkitpolicy_in_files =
119 dist_udevrules_DATA =
120 nodist_udevrules_DATA =
121 dist_pkgsysconf_DATA =
122 nodist_pkgsysconf_DATA =
123 dist_dbuspolicy_DATA =
124 dist_dbussystemservice_DATA =
125 dist_systemunit_DATA_busnames =
129 dist_rootlibexec_DATA =
132 TEST_EXTENSIONS = .py
133 PY_LOG_COMPILER = $(PYTHON)
134 DISABLE_HARD_ERRORS = yes
136 noinst_PROGRAMS = $(manual_tests) $(tests) $(unsafe_tests)
138 if ENABLE_UNSAFE_TESTS
146 AM_TESTS_ENVIRONMENT = \
147 export SYSTEMD_KBD_MODEL_MAP=$(abs_top_srcdir)/src/locale/kbd-model-map; \
148 export SYSTEMD_LANGUAGE_FALLBACK_MAP=$(abs_top_srcdir)/src/locale/language-fallback-map;
150 if ENABLE_BASH_COMPLETION
151 dist_bashcompletion_DATA = $(dist_bashcompletion_data)
152 nodist_bashcompletion_DATA = $(nodist_bashcompletion_data)
154 if ENABLE_ZSH_COMPLETION
155 dist_zshcompletion_DATA = $(dist_zshcompletion_data)
156 nodist_zshcompletion_DATA = $(nodist_zshcompletion_data)
158 udevlibexec_PROGRAMS =
159 gperf_gperf_sources =
160 rootlib_LTLIBRARIES =
162 in_files = $(filter %.in,$(EXTRA_DIST))
163 in_in_files = $(filter %.in.in, $(in_files))
164 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
166 CLEANFILES = $(BUILT_SOURCES) \
167 $(pkgconfigdata_DATA) \
168 $(pkgconfiglib_DATA) \
169 $(nodist_bashcompletion_data) \
170 $(nodist_zshcompletion_data) \
171 $(in_files:.in=) $(in_in_files:.in.in=) \
174 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
175 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
176 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
179 -include $(top_builddir)/config.h \
180 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
181 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
182 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
183 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
184 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
185 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
186 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
187 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
188 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
189 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
190 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
191 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
192 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
193 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
194 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
195 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
196 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
197 -DROOTPREFIX=\"$(rootprefix)\" \
198 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
199 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
200 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
201 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
202 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
203 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
204 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
205 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
206 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
207 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
208 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
209 -DQUOTACHECK=\"$(QUOTACHECK)\" \
210 -DKEXEC=\"$(KEXEC)\" \
211 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
212 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
213 -DLIBDIR=\"$(libdir)\" \
214 -DROOTLIBDIR=\"$(rootlibdir)\" \
215 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
216 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
217 -I $(top_srcdir)/src \
218 -I $(top_builddir)/src/basic \
219 -I $(top_srcdir)/src/basic \
220 -I $(top_srcdir)/src/shared \
221 -I $(top_builddir)/src/shared \
222 -I $(top_srcdir)/src/network \
223 -I $(top_srcdir)/src/locale \
224 -I $(top_srcdir)/src/login \
225 -I $(top_srcdir)/src/journal \
226 -I $(top_builddir)/src/journal \
227 -I $(top_srcdir)/src/timedate \
228 -I $(top_srcdir)/src/timesync \
229 -I $(top_srcdir)/src/nspawn \
230 -I $(top_srcdir)/src/resolve \
231 -I $(top_builddir)/src/resolve \
232 -I $(top_srcdir)/src/systemd \
233 -I $(top_builddir)/src/core \
234 -I $(top_srcdir)/src/core \
235 -I $(top_srcdir)/src/libudev \
236 -I $(top_srcdir)/src/udev \
237 -I $(top_srcdir)/src/udev/net \
238 -I $(top_builddir)/src/udev \
239 -I $(top_srcdir)/src/libsystemd/sd-bus \
240 -I $(top_srcdir)/src/libsystemd/sd-event \
241 -I $(top_srcdir)/src/libsystemd/sd-login \
242 -I $(top_srcdir)/src/libsystemd/sd-netlink \
243 -I $(top_srcdir)/src/libsystemd/sd-network \
244 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
245 -I $(top_srcdir)/src/libsystemd/sd-device \
246 -I $(top_srcdir)/src/libsystemd/sd-id128 \
247 -I $(top_srcdir)/src/libsystemd-network \
250 AM_CFLAGS = $(OUR_CFLAGS)
251 AM_LDFLAGS = $(OUR_LDFLAGS)
253 # ------------------------------------------------------------------------------
256 SHUTDOWN_TARGET_WANTS =
257 LOCAL_FS_TARGET_WANTS =
258 MULTI_USER_TARGET_WANTS =
259 GRAPHICAL_TARGET_WANTS =
260 RESCUE_TARGET_WANTS =
261 SYSINIT_TARGET_WANTS =
262 SOCKETS_TARGET_WANTS =
263 BUSNAMES_TARGET_WANTS =
264 TIMERS_TARGET_WANTS =
265 USER_SOCKETS_TARGET_WANTS =
266 USER_DEFAULT_TARGET_WANTS =
267 USER_BUSNAMES_TARGET_WANTS =
269 SYSTEM_UNIT_ALIASES =
273 install-target-wants-hook:
274 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
275 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
276 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
277 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
280 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
281 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
282 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
283 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
284 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
286 install-busnames-target-wants-hook:
287 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
288 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
291 [ -z "$$what" ] || ( \
292 dir=$(DESTDIR)$$dir/$$wants.wants && \
293 $(MKDIR_P) -m 0755 $$dir && \
296 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
299 install-directories-hook:
300 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
302 install-aliases-hook:
303 set -- $(SYSTEM_UNIT_ALIASES) && \
304 dir=$(systemunitdir) && $(install-aliases)
305 set -- $(USER_UNIT_ALIASES) && \
306 dir=$(userunitdir) && $(install-relative-aliases)
307 set -- $(GENERAL_ALIASES) && \
308 dir= && $(install-relative-aliases)
310 define install-aliases
311 while [ -n "$$1" ]; do \
312 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
313 rm -f $(DESTDIR)$$dir/$$2 && \
314 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
315 shift 2 || exit $$?; \
319 define install-relative-aliases
320 while [ -n "$$1" ]; do \
321 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
322 rm -f $(DESTDIR)$$dir/$$2 && \
323 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
324 shift 2 || exit $$?; \
328 install-touch-usr-hook:
329 touch -c $(DESTDIR)/$(prefix)
331 INSTALL_EXEC_HOOKS += \
332 install-target-wants-hook \
333 install-directories-hook \
334 install-aliases-hook \
335 install-touch-usr-hook
337 INSTALL_EXEC_HOOKS += \
338 install-busnames-target-wants-hook
340 # ------------------------------------------------------------------------------
341 AM_V_M4 = $(AM_V_M4_$(V))
342 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
343 AM_V_M4_0 = @echo " M4 " $@;
345 AM_V_XSLT = $(AM_V_XSLT_$(V))
346 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
347 AM_V_XSLT_0 = @echo " XSLT " $@;
349 AM_V_GPERF = $(AM_V_GPERF_$(V))
350 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
351 AM_V_GPERF_0 = @echo " GPERF " $@;
353 AM_V_LN = $(AM_V_LN_$(V))
354 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
355 AM_V_LN_0 = @echo " LN " $@;
357 AM_V_RM = $(AM_V_RM_$(V))
358 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
359 AM_V_RM_0 = @echo " RM " $@;
361 # ------------------------------------------------------------------------------
365 systemd-ask-password \
366 systemd-tty-ask-password-agent \
367 systemd-machine-id-setup \
374 systemd-detect-virt \
379 systemd-stdio-bridge \
383 src/kernel-install/kernel-install
385 dist_kernelinstall_SCRIPTS = \
386 src/kernel-install/50-depmod.install \
387 src/kernel-install/90-loaderentry.install
389 rootlibexec_PROGRAMS = \
391 systemd-cgroups-agent \
395 systemd-reply-password \
400 systemd-socket-proxyd \
404 rootlibexec_PROGRAMS += \
408 systemgenerator_PROGRAMS = \
409 systemd-getty-generator \
410 systemd-fstab-generator \
411 systemd-system-update-generator \
412 systemd-debug-generator
414 dist_bashcompletion_data = \
415 shell-completion/bash/busctl \
416 shell-completion/bash/journalctl \
417 shell-completion/bash/systemd-analyze \
418 shell-completion/bash/systemd-cat \
419 shell-completion/bash/systemd-cgls \
420 shell-completion/bash/systemd-cgtop \
421 shell-completion/bash/systemd-delta \
422 shell-completion/bash/systemd-detect-virt \
423 shell-completion/bash/systemd-nspawn \
424 shell-completion/bash/systemd-path \
425 shell-completion/bash/systemd-run \
426 shell-completion/bash/udevadm \
427 shell-completion/bash/kernel-install
429 nodist_bashcompletion_data = \
430 shell-completion/bash/systemctl
432 dist_zshcompletion_data = \
433 shell-completion/zsh/_busctl \
434 shell-completion/zsh/_journalctl \
435 shell-completion/zsh/_udevadm \
436 shell-completion/zsh/_kernel-install \
437 shell-completion/zsh/_systemd-nspawn \
438 shell-completion/zsh/_systemd-analyze \
439 shell-completion/zsh/_systemd-run \
440 shell-completion/zsh/_sd_hosts_or_user_at_host \
441 shell-completion/zsh/_sd_outputmodes \
442 shell-completion/zsh/_sd_unit_files \
443 shell-completion/zsh/_systemd-delta \
444 shell-completion/zsh/_systemd
446 nodist_zshcompletion_data = \
447 shell-completion/zsh/_systemctl
450 shell-completion/bash/systemctl.in \
451 shell-completion/zsh/_systemctl.in
454 sysctl.d/50-default.conf
456 dist_systemunit_DATA = \
457 units/graphical.target \
458 units/multi-user.target \
459 units/emergency.target \
460 units/sysinit.target \
466 units/local-fs.target \
467 units/local-fs-pre.target \
468 units/initrd.target \
469 units/initrd-fs.target \
470 units/initrd-root-device.target \
471 units/initrd-root-fs.target \
472 units/remote-fs.target \
473 units/remote-fs-pre.target \
474 units/network.target \
475 units/network-pre.target \
476 units/network-online.target \
477 units/nss-lookup.target \
478 units/nss-user-lookup.target \
479 units/poweroff.target \
480 units/reboot.target \
481 units/rescue.target \
482 units/rpcbind.target \
483 units/time-sync.target \
484 units/shutdown.target \
486 units/umount.target \
487 units/sigpwr.target \
489 units/sockets.target \
490 units/timers.target \
492 units/suspend.target \
494 units/slices.target \
497 units/systemd-initctl.socket \
498 units/syslog.socket \
499 units/dev-hugepages.mount \
500 units/dev-mqueue.mount \
501 units/sys-kernel-config.mount \
502 units/sys-kernel-debug.mount \
503 units/sys-fs-fuse-connections.mount \
505 units/var-lib-machines.mount \
506 units/printer.target \
508 units/bluetooth.target \
509 units/smartcard.target \
510 units/systemd-ask-password-wall.path \
511 units/systemd-ask-password-console.path \
512 units/systemd-udevd-control.socket \
513 units/systemd-udevd-kernel.socket \
514 units/system-update.target \
515 units/initrd-switch-root.target \
516 units/machines.target
518 dist_systemunit_DATA += \
519 $(dist_systemunit_DATA_busnames)
521 dist_systemunit_DATA_busnames += \
522 units/busnames.target
524 nodist_systemunit_DATA = \
525 units/getty@.service \
526 units/serial-getty@.service \
527 units/console-getty.service \
528 units/container-getty@.service \
529 units/systemd-initctl.service \
530 units/systemd-remount-fs.service \
531 units/systemd-ask-password-wall.service \
532 units/systemd-ask-password-console.service \
533 units/systemd-sysctl.service \
534 units/emergency.service \
535 units/rescue.service \
536 units/user@.service \
537 units/systemd-suspend.service \
538 units/systemd-halt.service \
539 units/systemd-poweroff.service \
540 units/systemd-reboot.service \
541 units/systemd-kexec.service \
542 units/systemd-exit.service \
543 units/systemd-fsck@.service \
544 units/systemd-fsck-root.service \
545 units/systemd-machine-id-commit.service \
546 units/systemd-udevd.service \
547 units/systemd-udev-trigger.service \
548 units/systemd-udev-settle.service \
549 units/systemd-hwdb-update.service \
550 units/debug-shell.service \
551 units/initrd-parse-etc.service \
552 units/initrd-cleanup.service \
553 units/initrd-udevadm-cleanup-db.service \
554 units/initrd-switch-root.service \
555 units/systemd-nspawn@.service \
556 units/systemd-update-done.service
559 nodist_systemunit_DATA += \
560 units/systemd-update-utmp.service \
561 units/systemd-update-utmp-runlevel.service
564 dist_userunit_DATA = \
565 units/user/basic.target \
566 units/user/default.target \
567 units/user/exit.target \
568 units/user/graphical-session.target \
569 units/user/graphical-session-pre.target \
570 units/user/bluetooth.target \
571 units/user/busnames.target \
572 units/user/paths.target \
573 units/user/printer.target \
574 units/user/shutdown.target \
575 units/user/smartcard.target \
576 units/user/sockets.target \
577 units/user/sound.target \
578 units/user/timers.target
580 nodist_userunit_DATA = \
581 units/user/systemd-exit.service
583 dist_systempreset_DATA = \
584 system-preset/90-systemd.preset
587 units/getty@.service.m4 \
588 units/serial-getty@.service.m4 \
589 units/console-getty.service.m4.in \
590 units/container-getty@.service.m4.in \
591 units/rescue.service.in \
592 units/systemd-initctl.service.in \
593 units/systemd-remount-fs.service.in \
594 units/systemd-update-utmp.service.in \
595 units/systemd-update-utmp-runlevel.service.in \
596 units/systemd-ask-password-wall.service.in \
597 units/systemd-ask-password-console.service.in \
598 units/systemd-sysctl.service.in \
599 units/emergency.service.in \
600 units/systemd-halt.service.in \
601 units/systemd-poweroff.service.in \
602 units/systemd-reboot.service.in \
603 units/systemd-kexec.service.in \
604 units/systemd-exit.service.in \
605 units/user/systemd-exit.service.in \
606 units/systemd-fsck@.service.in \
607 units/systemd-fsck-root.service.in \
608 units/systemd-machine-id-commit.service.in \
609 units/user@.service.m4.in \
610 units/debug-shell.service.in \
611 units/systemd-suspend.service.in \
612 units/quotaon.service.in \
613 units/initrd-parse-etc.service.in \
614 units/initrd-cleanup.service.in \
615 units/initrd-udevadm-cleanup-db.service.in \
616 units/initrd-switch-root.service.in \
617 units/systemd-nspawn@.service.in \
618 units/systemd-update-done.service.in \
622 nodist_systemunit_DATA += \
623 units/rc-local.service \
624 units/halt-local.service
626 systemgenerator_PROGRAMS += \
627 systemd-sysv-generator \
628 systemd-rc-local-generator
632 src/systemctl/systemd-sysv-install.SKELETON \
633 units/rc-local.service.in \
634 units/halt-local.service.in
637 $(systemunitdir)/reboot.target $(pkgsysconfdir)/system/ctrl-alt-del.target \
638 $(systemunitdir)/machines.target $(pkgsysconfdir)/system/multi-user.target.wants/machines.target
640 # automake is broken and can't handle files with a dash in front
641 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
643 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
645 units-uninstall-hook:
646 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
648 INSTALL_DATA_HOOKS += units-install-hook
649 UNINSTALL_DATA_HOOKS += units-uninstall-hook
658 src/libsystemd/sd-bus/PORTING-DBUS1 \
659 src/libsystemd/sd-bus/DIFFERENCES \
660 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
672 @INTLTOOL_POLICY_RULE@
674 # ------------------------------------------------------------------------------
679 include Makefile-man.am
681 .PHONY: man update-man-list
682 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
685 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
687 ${XML_FILES:.xml=.html}
689 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
709 $(AM_V_at)$(MKDIR_P) $(dir $@)
710 $(AM_V_LN)$(LN_S) -f ../../man $@
712 man/index.html: man/systemd.index.html
713 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
723 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
724 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
725 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
727 # This target should only be run manually. It recreates Makefile-man.am
728 # file in the source directory based on all man/*.xml files. Run it after
729 # adding, removing, or changing the conditional in a man page.
730 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
731 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
732 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
733 @echo "Makefile-man.am has been regenerated"
735 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
736 $(AM_V_at)$(MKDIR_P) $(dir $@)
737 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
739 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
740 $(AM_V_at)$(MKDIR_P) $(dir $@)
741 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
744 man/systemd.index.xml \
745 man/systemd.directives.xml
748 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
749 tools/make-man-index.py \
750 tools/make-man-rules.py \
751 tools/make-directive-index.py \
752 tools/xml_helper.py \
753 man/glib-event-glue.c
755 # ------------------------------------------------------------------------------
756 noinst_LTLIBRARIES += \
759 libbasic_la_SOURCES = \
760 src/basic/missing.h \
761 src/basic/missing_syscall.h \
762 src/basic/raw-clone.h \
763 src/basic/capability-util.c \
764 src/basic/capability-util.h \
765 src/basic/conf-files.c \
766 src/basic/conf-files.h \
767 src/basic/stdio-util.h \
768 src/basic/hostname-util.h \
769 src/basic/hostname-util.c \
770 src/basic/unit-name.c \
771 src/basic/unit-name.h \
773 src/basic/securebits.h \
774 src/basic/special.h \
776 src/basic/unaligned.h \
779 src/basic/sparse-endian.h \
783 src/basic/io-util.c \
784 src/basic/io-util.h \
785 src/basic/string-util.c \
786 src/basic/string-util.h \
787 src/basic/fd-util.c \
788 src/basic/fd-util.h \
789 src/basic/parse-util.c \
790 src/basic/parse-util.h \
791 src/basic/user-util.c \
792 src/basic/user-util.h \
793 src/basic/rlimit-util.c \
794 src/basic/rlimit-util.h \
795 src/basic/dirent-util.c \
796 src/basic/dirent-util.h \
797 src/basic/xattr-util.c \
798 src/basic/xattr-util.h \
799 src/basic/chattr-util.c \
800 src/basic/chattr-util.h \
801 src/basic/proc-cmdline.c \
802 src/basic/proc-cmdline.h \
803 src/basic/fs-util.c \
804 src/basic/fs-util.h \
805 src/basic/syslog-util.c \
806 src/basic/syslog-util.h \
807 src/basic/stat-util.c \
808 src/basic/stat-util.h \
809 src/basic/mount-util.c \
810 src/basic/mount-util.h \
811 src/basic/hexdecoct.c \
812 src/basic/hexdecoct.h \
813 src/basic/glob-util.h \
814 src/basic/glob-util.c \
815 src/basic/extract-word.c \
816 src/basic/extract-word.h \
819 src/basic/cpu-set-util.c \
820 src/basic/cpu-set-util.h \
821 src/basic/lockfile-util.c \
822 src/basic/lockfile-util.h \
823 src/basic/path-util.c \
824 src/basic/path-util.h \
825 src/basic/time-util.c \
826 src/basic/time-util.h \
827 src/basic/locale-util.c \
828 src/basic/locale-util.h \
829 src/basic/umask-util.h \
830 src/basic/signal-util.c \
831 src/basic/signal-util.h \
832 src/basic/string-table.c \
833 src/basic/string-table.h \
834 src/basic/mempool.c \
835 src/basic/mempool.h \
836 src/basic/hashmap.c \
837 src/basic/hashmap.h \
838 src/basic/hash-funcs.c \
839 src/basic/hash-funcs.h \
840 src/basic/siphash24.c \
841 src/basic/siphash24.h \
843 src/basic/ordered-set.h \
844 src/basic/ordered-set.c \
849 src/basic/web-util.c \
850 src/basic/web-util.h \
853 src/basic/env-util.c \
854 src/basic/env-util.h \
857 src/basic/strxcpyx.c \
858 src/basic/strxcpyx.h \
861 src/basic/bus-label.c \
862 src/basic/bus-label.h \
863 src/basic/ratelimit.h \
864 src/basic/ratelimit.c \
865 src/basic/exit-status.c \
866 src/basic/exit-status.h \
869 src/basic/architecture.c \
870 src/basic/architecture.h \
871 src/basic/smack-util.c \
872 src/basic/smack-util.h \
873 src/basic/device-nodes.c \
874 src/basic/device-nodes.h \
877 src/basic/gunicode.c \
878 src/basic/gunicode.h \
879 src/basic/socket-util.c \
880 src/basic/socket-util.h \
881 src/basic/in-addr-util.c \
882 src/basic/in-addr-util.h \
883 src/basic/ether-addr-util.h \
884 src/basic/ether-addr-util.c \
885 src/basic/replace-var.c \
886 src/basic/replace-var.h \
887 src/basic/clock-util.c \
888 src/basic/clock-util.h \
889 src/basic/calendarspec.c \
890 src/basic/calendarspec.h \
893 src/basic/MurmurHash2.c \
894 src/basic/MurmurHash2.h \
897 src/basic/cgroup-util.c \
898 src/basic/cgroup-util.h \
899 src/basic/errno-list.c \
900 src/basic/errno-list.h \
901 src/basic/af-list.c \
902 src/basic/af-list.h \
903 src/basic/arphrd-list.c \
904 src/basic/arphrd-list.h \
905 src/basic/terminal-util.c \
906 src/basic/terminal-util.h \
907 src/basic/login-util.h \
908 src/basic/login-util.c \
909 src/basic/cap-list.c \
910 src/basic/cap-list.h \
911 src/basic/audit-util.c \
912 src/basic/audit-util.h \
915 src/basic/barrier.c \
916 src/basic/barrier.h \
919 src/basic/memfd-util.c \
920 src/basic/memfd-util.h \
921 src/basic/process-util.c \
922 src/basic/process-util.h \
923 src/basic/random-util.c \
924 src/basic/random-util.h \
930 src/basic/socket-label.c \
933 src/basic/btrfs-util.c \
934 src/basic/btrfs-util.h \
935 src/basic/btrfs-ctree.h \
936 src/basic/selinux-util.c \
937 src/basic/selinux-util.h \
938 src/basic/mkdir-label.c \
939 src/basic/fileio-label.c \
940 src/basic/fileio-label.h \
945 src/basic/alloc-util.h \
946 src/basic/alloc-util.c \
947 src/basic/formats-util.h \
950 nodist_libbasic_la_SOURCES = \
951 src/basic/errno-from-name.h \
952 src/basic/errno-to-name.h \
953 src/basic/af-from-name.h \
954 src/basic/af-to-name.h \
955 src/basic/arphrd-from-name.h \
956 src/basic/arphrd-to-name.h \
957 src/basic/cap-from-name.h \
958 src/basic/cap-to-name.h
960 libbasic_la_CFLAGS = \
966 libbasic_la_LIBADD = \
972 # -----------------------------------------------------------------------------
973 noinst_LTLIBRARIES += \
976 libshared_la_SOURCES = \
977 src/shared/output-mode.h \
978 src/shared/output-mode.c \
980 src/shared/udev-util.h \
981 src/shared/linux/auto_dev-ioctl.h \
982 src/shared/initreq.h \
983 src/shared/dns-domain.c \
984 src/shared/dns-domain.h \
985 src/shared/efivars.c \
986 src/shared/efivars.h \
987 src/shared/fstab-util.c \
988 src/shared/fstab-util.h \
989 src/shared/sleep-config.c \
990 src/shared/sleep-config.h \
991 src/shared/conf-parser.c \
992 src/shared/conf-parser.h \
995 src/shared/spawn-polkit-agent.c \
996 src/shared/spawn-polkit-agent.h \
997 src/shared/apparmor-util.c \
998 src/shared/apparmor-util.h \
999 src/shared/ima-util.c \
1000 src/shared/ima-util.h \
1001 src/shared/ptyfwd.c \
1002 src/shared/ptyfwd.h \
1003 src/shared/base-filesystem.c \
1004 src/shared/base-filesystem.h \
1005 src/shared/uid-range.c \
1006 src/shared/uid-range.h \
1007 src/shared/install.c \
1008 src/shared/install.h \
1009 src/shared/install-printf.c \
1010 src/shared/install-printf.h \
1011 src/shared/path-lookup.c \
1012 src/shared/path-lookup.h \
1013 src/shared/specifier.c \
1014 src/shared/specifier.h \
1015 src/shared/dev-setup.c \
1016 src/shared/dev-setup.h \
1017 src/shared/dropin.c \
1018 src/shared/dropin.h \
1019 src/shared/condition.c \
1020 src/shared/condition.h \
1021 src/shared/clean-ipc.c \
1022 src/shared/clean-ipc.h \
1023 src/shared/generator.h \
1024 src/shared/generator.c \
1025 src/shared/acpi-fpdt.h \
1026 src/shared/acpi-fpdt.c \
1027 src/shared/boot-timestamps.h \
1028 src/shared/boot-timestamps.c \
1029 src/shared/cgroup-show.c \
1030 src/shared/cgroup-show.h \
1031 src/shared/utmp-wtmp.h \
1032 src/shared/watchdog.c \
1033 src/shared/watchdog.h \
1034 src/shared/spawn-ask-password-agent.c \
1035 src/shared/spawn-ask-password-agent.h \
1036 src/shared/ask-password-api.c \
1037 src/shared/ask-password-api.h \
1038 src/shared/switch-root.h \
1039 src/shared/switch-root.c \
1040 src/shared/import-util.c \
1041 src/shared/import-util.h \
1042 src/shared/sysctl-util.c \
1043 src/shared/sysctl-util.h \
1044 src/shared/bus-util.c \
1045 src/shared/bus-util.h \
1046 src/shared/logs-show.c \
1047 src/shared/logs-show.h \
1048 src/shared/machine-image.c \
1049 src/shared/machine-image.h \
1050 src/shared/machine-pool.c \
1051 src/shared/machine-pool.h \
1052 src/shared/resolve-util.c \
1053 src/shared/resolve-util.h \
1054 src/shared/bus-unit-util.c \
1055 src/shared/bus-unit-util.h \
1056 src/shared/vlan-util.h \
1057 src/shared/vlan-util.c \
1058 src/shared/tests.h \
1059 src/shared/tests.c \
1060 src/shared/fdset.c \
1064 libshared_la_SOURCES += \
1065 src/shared/utmp-wtmp.c
1069 libshared_la_SOURCES += \
1070 src/shared/seccomp-util.h \
1071 src/shared/seccomp-util.c
1075 libshared_la_SOURCES += \
1076 src/shared/acl-util.c \
1077 src/shared/acl-util.h
1080 libshared_la_CFLAGS = \
1086 libshared_la_LIBADD = \
1087 libsystemd-internal.la \
1089 libsystemd-journal-internal.la \
1090 libudev-internal.la \
1095 rootlibexec_LTLIBRARIES += \
1096 libsystemd-shared.la
1098 libsystemd_shared_la_SOURCES = \
1099 $(libbasic_la_SOURCES) \
1100 $(libshared_la_SOURCES) \
1101 $(libsystemd_internal_la_SOURCES) \
1102 $(libsystemd_journal_internal_la_SOURCES) \
1103 $(libudev_internal_la_SOURCES)
1105 libsystemd_shared_la_CFLAGS = \
1107 $(libbasic_la_CFLAGS) \
1108 $(libshared_la_CFLAGS) \
1109 $(libsystemd_internal_la_CFLAGS) \
1110 $(libsystemd_journal_internal_la_CFLAGS) \
1111 $(libudev_internal_la_CFLAGS) \
1115 -fvisibility=default
1117 # We can't use libshared_la_LIBADD here because it would
1118 # pull in libsystemd*-internal.la
1119 libsystemd_shared_la_LIBADD = \
1120 $(libbasic_la_LIBADD) \
1121 $(libsystemd_internal_la_LIBADD) \
1122 $(libsystemd_journal_internal_la_LIBADD) \
1123 $(libudev_internal_la_LIBADD) \
1128 libsystemd_shared_la_LDFLAGS = \
1130 -release $(PACKAGE_VERSION)
1133 # -----------------------------------------------------------------------------
1135 noinst_LTLIBRARIES += \
1138 libfirewall_la_SOURCES = \
1139 src/shared/firewall-util.h \
1140 src/shared/firewall-util.c
1142 libfirewall_la_CFLAGS = \
1146 libfirewall_la_LIBADD = \
1150 # -----------------------------------------------------------------------------
1152 dist_systemunit_DATA += \
1153 units/ldconfig.service
1155 SYSINIT_TARGET_WANTS += \
1159 # ------------------------------------------------------------------------------
1160 noinst_LTLIBRARIES += \
1163 libcore_la_SOURCES = \
1166 src/core/unit-printf.c \
1167 src/core/unit-printf.h \
1170 src/core/manager.c \
1171 src/core/manager.h \
1172 src/core/transaction.c \
1173 src/core/transaction.h \
1174 src/core/load-fragment.c \
1175 src/core/load-fragment.h \
1176 src/core/service.c \
1177 src/core/service.h \
1180 src/core/busname.c \
1181 src/core/busname.h \
1182 src/core/bus-policy.c \
1183 src/core/bus-policy.h \
1190 src/core/automount.c \
1191 src/core/automount.h \
1202 src/core/load-dropin.c \
1203 src/core/load-dropin.h \
1204 src/core/execute.c \
1205 src/core/execute.h \
1206 src/core/dynamic-user.c \
1207 src/core/dynamic-user.h \
1212 src/core/dbus-manager.c \
1213 src/core/dbus-manager.h \
1214 src/core/dbus-unit.c \
1215 src/core/dbus-unit.h \
1216 src/core/dbus-job.c \
1217 src/core/dbus-job.h \
1218 src/core/dbus-service.c \
1219 src/core/dbus-service.h \
1220 src/core/dbus-socket.c \
1221 src/core/dbus-socket.h \
1222 src/core/dbus-busname.c \
1223 src/core/dbus-busname.h \
1224 src/core/dbus-target.c \
1225 src/core/dbus-target.h \
1226 src/core/dbus-device.c \
1227 src/core/dbus-device.h \
1228 src/core/dbus-mount.c \
1229 src/core/dbus-mount.h \
1230 src/core/dbus-automount.c \
1231 src/core/dbus-automount.h \
1232 src/core/dbus-swap.c \
1233 src/core/dbus-swap.h \
1234 src/core/dbus-timer.c \
1235 src/core/dbus-timer.h \
1236 src/core/dbus-path.c \
1237 src/core/dbus-path.h \
1238 src/core/dbus-slice.c \
1239 src/core/dbus-slice.h \
1240 src/core/dbus-scope.c \
1241 src/core/dbus-scope.h \
1242 src/core/dbus-execute.c \
1243 src/core/dbus-execute.h \
1244 src/core/dbus-kill.c \
1245 src/core/dbus-kill.h \
1246 src/core/dbus-cgroup.c \
1247 src/core/dbus-cgroup.h \
1250 src/core/selinux-access.c \
1251 src/core/selinux-access.h \
1252 src/core/selinux-setup.c \
1253 src/core/selinux-setup.h \
1254 src/core/smack-setup.c \
1255 src/core/smack-setup.h \
1256 src/core/ima-setup.c \
1257 src/core/ima-setup.h \
1258 src/core/locale-setup.h \
1259 src/core/locale-setup.c \
1260 src/core/hostname-setup.c \
1261 src/core/hostname-setup.h \
1262 src/core/machine-id-setup.c \
1263 src/core/machine-id-setup.h \
1264 src/core/mount-setup.c \
1265 src/core/mount-setup.h \
1266 src/core/kmod-setup.c \
1267 src/core/kmod-setup.h \
1268 src/core/loopback-setup.h \
1269 src/core/loopback-setup.c \
1270 src/core/namespace.c \
1271 src/core/namespace.h \
1272 src/core/killall.h \
1273 src/core/killall.c \
1274 src/core/audit-fd.c \
1275 src/core/audit-fd.h \
1276 src/core/show-status.c \
1277 src/core/show-status.h \
1278 src/core/failure-action.c \
1279 src/core/failure-action.h
1281 nodist_libcore_la_SOURCES = \
1282 src/core/load-fragment-gperf.c \
1283 src/core/load-fragment-gperf-nulstr.c
1285 libcore_la_CFLAGS = \
1290 $(APPARMOR_CFLAGS) \
1294 libcore_la_LIBADD = \
1295 libsystemd-shared.la \
1302 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1303 $(AM_V_at)$(MKDIR_P) $(dir $@)
1304 $(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 ";" }' < $< > $@
1306 gperf_gperf_m4_sources = \
1307 src/core/load-fragment-gperf.gperf.m4
1309 gperf_txt_sources = \
1310 src/basic/errno-list.txt \
1311 src/basic/af-list.txt \
1312 src/basic/arphrd-list.txt \
1313 src/basic/cap-list.txt
1316 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1317 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1318 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1319 $(gperf_txt_sources:-list.txt=-from-name.h) \
1320 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
1323 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1325 $(gperf_txt_sources)
1328 $(gperf_gperf_m4_sources) \
1329 $(gperf_gperf_sources)
1332 $(gperf_txt_sources)
1334 %-from-name.gperf: %-list.txt
1335 $(AM_V_at)$(MKDIR_P) $(dir $@)
1336 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1338 %-from-name.h: %-from-name.gperf
1339 $(AM_V_at)$(MKDIR_P) $(dir $@)
1340 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1343 src/basic/errno-list.txt:
1344 $(AM_V_at)$(MKDIR_P) $(dir $@)
1345 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1347 src/basic/errno-to-name.h: src/basic/errno-list.txt
1348 $(AM_V_at)$(MKDIR_P) $(dir $@)
1349 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1352 src/basic/af-list.txt:
1353 $(AM_V_at)$(MKDIR_P) $(dir $@)
1354 $(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; }' >$@
1356 src/basic/af-to-name.h: src/basic/af-list.txt
1357 $(AM_V_at)$(MKDIR_P) $(dir $@)
1358 $(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 "};"}' <$< >$@
1361 src/basic/arphrd-list.txt:
1362 $(AM_V_at)$(MKDIR_P) $(dir $@)
1363 $(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_//' >$@
1365 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1366 $(AM_V_at)$(MKDIR_P) $(dir $@)
1367 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1369 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1370 $(AM_V_at)$(MKDIR_P) $(dir $@)
1371 $(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 }' <$< >$@
1374 src/basic/cap-list.txt:
1375 $(AM_V_at)$(MKDIR_P) $(dir $@)
1376 $(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 >$@
1378 src/basic/cap-to-name.h: src/basic/cap-list.txt
1379 $(AM_V_at)$(MKDIR_P) $(dir $@)
1380 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1382 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1383 $(AM_V_at)$(MKDIR_P) $(dir $@)
1384 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1386 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1387 $(AM_V_at)$(MKDIR_P) $(dir $@)
1388 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1390 audit_list_includes = -include linux/audit.h -include missing.h
1392 audit_list_includes += -include libaudit.h
1395 src/journal/audit_type-list.txt:
1396 $(AM_V_at)$(MKDIR_P) $(dir $@)
1397 $(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 >$@
1399 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1400 $(AM_V_at)$(MKDIR_P) $(dir $@)
1401 $(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" }' <$< >$@
1404 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1405 $(AM_V_at)$(MKDIR_P) $(dir $@)
1406 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1408 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1409 $(AM_V_at)$(MKDIR_P) $(dir $@)
1410 $(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" }' <$< >$@
1412 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1413 $(AM_V_at)$(MKDIR_P) $(dir $@)
1414 $(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 }' <$< >$@
1416 # ------------------------------------------------------------------------------
1428 dist_pkgsysconf_DATA += \
1429 src/core/system.conf \
1432 dist_dbuspolicy_DATA += \
1433 src/core/org.freedesktop.systemd1.conf
1435 dist_dbussystemservice_DATA += \
1436 src/core/org.freedesktop.systemd1.service
1438 polkitpolicy_in_in_files += \
1439 src/core/org.freedesktop.systemd1.policy.in.in
1441 pkgconfigdata_DATA += \
1444 nodist_rpmmacros_DATA = \
1445 src/core/macros.systemd
1448 src/core/triggers.systemd
1451 src/core/systemd.pc.in \
1452 src/core/macros.systemd.in \
1453 src/core/triggers.systemd.in
1455 # ------------------------------------------------------------------------------
1463 test-ipv4ll-manual \
1464 test-ask-password-api
1516 test-hostname-util \
1518 test-terminal-util \
1528 test-strip-tab-ansi \
1578 test/daughter.service \
1583 test/grandchild.service \
1585 test/hello-after-sleep.target \
1586 test/hello.service \
1588 test/parent-deep.slice \
1590 test/sched_idle_bad.service \
1591 test/sched_idle_ok.service \
1592 test/sched_rr_bad.service \
1593 test/sched_rr_change.service \
1594 test/sched_rr_ok.service \
1595 test/shutdown.target \
1596 test/sleep.service \
1597 test/sockets.target \
1599 test/sysinit.target \
1600 test/testsuite.target \
1601 test/timers.target \
1602 test/unstoppable.service \
1603 test/test-path/paths.target \
1604 test/test-path/basic.target \
1605 test/test-path/sysinit.target \
1606 test/test-path/path-changed.service \
1607 test/test-path/path-directorynotempty.service \
1608 test/test-path/path-existsglob.service \
1609 test/test-path/path-exists.service \
1610 test/test-path/path-makedirectory.service \
1611 test/test-path/path-modified.service \
1612 test/test-path/path-mycustomunit.service \
1613 test/test-path/path-service.service \
1614 test/test-path/path-changed.path \
1615 test/test-path/path-directorynotempty.path \
1616 test/test-path/path-existsglob.path \
1617 test/test-path/path-exists.path \
1618 test/test-path/path-makedirectory.path \
1619 test/test-path/path-modified.path \
1620 test/test-path/path-unit.path \
1621 test/test-execute/exec-environment-empty.service \
1622 test/test-execute/exec-environment-multiple.service \
1623 test/test-execute/exec-environment.service \
1624 test/test-execute/exec-passenvironment-absent.service \
1625 test/test-execute/exec-passenvironment-empty.service \
1626 test/test-execute/exec-passenvironment-repeated.service \
1627 test/test-execute/exec-passenvironment.service \
1628 test/test-execute/exec-group.service \
1629 test/test-execute/exec-group-nfsnobody.service \
1630 test/test-execute/exec-ignoresigpipe-no.service \
1631 test/test-execute/exec-ignoresigpipe-yes.service \
1632 test/test-execute/exec-personality-x86-64.service \
1633 test/test-execute/exec-personality-x86.service \
1634 test/test-execute/exec-personality-s390.service \
1635 test/test-execute/exec-personality-ppc64.service \
1636 test/test-execute/exec-personality-ppc64le.service \
1637 test/test-execute/exec-personality-aarch64.service \
1638 test/test-execute/exec-privatedevices-no.service \
1639 test/test-execute/exec-privatedevices-yes.service \
1640 test/test-execute/exec-privatedevices-no-capability-mknod.service \
1641 test/test-execute/exec-privatedevices-yes-capability-mknod.service \
1642 test/test-execute/exec-protectkernelmodules-no-capabilities.service \
1643 test/test-execute/exec-protectkernelmodules-yes-capabilities.service \
1644 test/test-execute/exec-protectkernelmodules-yes-mount-propagation.service \
1645 test/test-execute/exec-privatetmp-no.service \
1646 test/test-execute/exec-privatetmp-yes.service \
1647 test/test-execute/exec-readonlypaths.service \
1648 test/test-execute/exec-readonlypaths-mount-propagation.service \
1649 test/test-execute/exec-readwritepaths-mount-propagation.service \
1650 test/test-execute/exec-inaccessiblepaths-mount-propagation.service \
1651 test/test-execute/exec-spec-interpolation.service \
1652 test/test-execute/exec-systemcallerrornumber.service \
1653 test/test-execute/exec-systemcallfilter-failing2.service \
1654 test/test-execute/exec-systemcallfilter-failing.service \
1655 test/test-execute/exec-systemcallfilter-not-failing2.service \
1656 test/test-execute/exec-systemcallfilter-not-failing.service \
1657 test/test-execute/exec-systemcallfilter-system-user.service \
1658 test/test-execute/exec-systemcallfilter-system-user-nfsnobody.service \
1659 test/test-execute/exec-user.service \
1660 test/test-execute/exec-user-nfsnobody.service \
1661 test/test-execute/exec-workingdirectory.service \
1662 test/test-execute/exec-umask-0177.service \
1663 test/test-execute/exec-umask-default.service \
1664 test/test-execute/exec-privatenetwork-yes.service \
1665 test/test-execute/exec-environmentfile.service \
1666 test/test-execute/exec-oomscoreadjust-positive.service \
1667 test/test-execute/exec-oomscoreadjust-negative.service \
1668 test/test-execute/exec-ioschedulingclass-best-effort.service \
1669 test/test-execute/exec-ioschedulingclass-idle.service \
1670 test/test-execute/exec-ioschedulingclass-none.service \
1671 test/test-execute/exec-ioschedulingclass-realtime.service \
1672 test/test-execute/exec-capabilityboundingset-invert.service \
1673 test/test-execute/exec-capabilityboundingset-merge.service \
1674 test/test-execute/exec-capabilityboundingset-reset.service \
1675 test/test-execute/exec-capabilityboundingset-simple.service \
1676 test/test-execute/exec-capabilityambientset.service \
1677 test/test-execute/exec-capabilityambientset-nfsnobody.service \
1678 test/test-execute/exec-capabilityambientset-merge.service \
1679 test/test-execute/exec-capabilityambientset-merge-nfsnobody.service \
1680 test/test-execute/exec-runtimedirectory.service \
1681 test/test-execute/exec-runtimedirectory-mode.service \
1682 test/test-execute/exec-runtimedirectory-owner.service \
1683 test/test-execute/exec-runtimedirectory-owner-nfsnobody.service \
1684 test/bus-policy/hello.conf \
1685 test/bus-policy/methods.conf \
1686 test/bus-policy/ownerships.conf \
1687 test/bus-policy/signals.conf \
1688 test/bus-policy/check-own-rules.conf \
1689 test/bus-policy/many-rules.conf \
1690 test/bus-policy/test.conf
1694 src/test/test-helper.h
1696 test_device_nodes_SOURCES = \
1697 src/test/test-device-nodes.c
1699 test_device_nodes_LDADD = \
1700 libsystemd-shared.la
1702 test_engine_SOURCES = \
1703 src/test/test-engine.c
1705 test_engine_CFLAGS = \
1710 test_engine_LDADD = \
1713 test_job_type_SOURCES = \
1714 src/test/test-job-type.c
1716 test_job_type_CFLAGS = \
1721 test_job_type_LDADD = \
1734 test_loopback_SOURCES = \
1735 src/test/test-loopback.c
1737 test_loopback_LDADD = \
1740 test_hostname_SOURCES = \
1741 src/test/test-hostname.c
1743 test_hostname_LDADD = \
1746 test_dns_domain_SOURCES = \
1747 src/test/test-dns-domain.c
1749 test_dns_domain_LDADD = \
1750 libsystemd-network.la \
1751 libsystemd-shared.la
1756 test-boot-timestamps
1758 test_boot_timestamps_SOURCES = \
1759 src/test/test-boot-timestamps.c
1761 test_boot_timestamps_LDADD = \
1762 libsystemd-shared.la
1765 test_unit_name_SOURCES = \
1766 src/test/test-unit-name.c
1768 test_unit_name_CFLAGS = \
1773 test_unit_name_LDADD = \
1776 test_unit_file_SOURCES = \
1777 src/test/test-unit-file.c
1779 test_unit_file_CFLAGS = \
1784 test_unit_file_LDADD = \
1787 test_utf8_SOURCES = \
1788 src/test/test-utf8.c
1791 libsystemd-shared.la
1793 test_capability_SOURCES = \
1794 src/test/test-capability.c
1796 test_capability_CFLAGS = \
1800 test_capability_LDADD = \
1801 libsystemd-shared.la \
1804 test_async_SOURCES = \
1805 src/test/test-async.c
1807 test_async_LDADD = \
1808 libsystemd-shared.la
1810 test_locale_util_SOURCES = \
1811 src/test/test-locale-util.c
1813 test_locale_util_LDADD = \
1814 libsystemd-shared.la
1816 test_copy_SOURCES = \
1817 src/test/test-copy.c
1819 # Link statically to ensure file is large
1823 test_sigbus_SOURCES = \
1824 src/test/test-sigbus.c
1826 test_sigbus_LDADD = \
1827 libsystemd-shared.la
1829 test_condition_SOURCES = \
1830 src/test/test-condition.c
1832 test_condition_LDADD = \
1833 libsystemd-shared.la
1835 test_fdset_SOURCES = \
1836 src/test/test-fdset.c
1838 test_fdset_LDADD = \
1839 libsystemd-shared.la
1841 test_fstab_util_SOURCES = \
1842 src/test/test-fstab-util.c
1844 test_fstab_util_LDADD = \
1845 libsystemd-shared.la
1847 test_ratelimit_SOURCES = \
1848 src/test/test-ratelimit.c
1850 test_ratelimit_LDADD = \
1851 libsystemd-shared.la
1853 test_util_SOURCES = \
1854 src/test/test-util.c
1857 libsystemd-shared.la
1859 test_hexdecoct_SOURCES = \
1860 src/test/test-hexdecoct.c
1862 test_hexdecoct_LDADD = \
1863 libsystemd-shared.la
1865 test_alloc_util_SOURCES = \
1866 src/test/test-alloc-util.c
1868 test_alloc_util_LDADD = \
1869 libsystemd-shared.la
1871 test_xattr_util_SOURCES = \
1872 src/test/test-xattr-util.c
1874 test_xattr_util_LDADD = \
1875 libsystemd-shared.la
1877 test_io_util_SOURCES = \
1878 src/test/test-io-util.c
1880 test_io_util_LDADD = \
1881 libsystemd-shared.la
1883 test_glob_util_SOURCES = \
1884 src/test/test-glob-util.c
1886 test_glob_util_LDADD = \
1887 libsystemd-shared.la
1889 test_fs_util_SOURCES = \
1890 src/test/test-fs-util.c
1892 test_fs_util_LDADD = \
1893 libsystemd-shared.la
1895 test_proc_cmdline_SOURCES = \
1896 src/test/test-proc-cmdline.c
1898 test_proc_cmdline_LDADD = \
1899 libsystemd-shared.la
1901 test_fd_util_SOURCES = \
1902 src/test/test-fd-util.c
1904 test_fd_util_LDADD = \
1905 libsystemd-shared.la
1907 test_web_util_SOURCES = \
1908 src/test/test-web-util.c
1910 test_web_util_LDADD = \
1911 libsystemd-shared.la
1913 test_cpu_set_util_SOURCES = \
1914 src/test/test-cpu-set-util.c
1916 test_cpu_set_util_LDADD = \
1917 libsystemd-shared.la
1919 test_stat_util_SOURCES = \
1920 src/test/test-stat-util.c
1922 test_stat_util_LDADD = \
1923 libsystemd-shared.la
1925 test_escape_SOURCES = \
1926 src/test/test-escape.c
1928 test_escape_LDADD = \
1929 libsystemd-shared.la
1931 test_string_util_SOURCES = \
1932 src/test/test-string-util.c
1934 test_string_util_LDADD = \
1935 libsystemd-shared.la
1937 test_extract_word_SOURCES = \
1938 src/test/test-extract-word.c
1940 test_extract_word_LDADD = \
1941 libsystemd-shared.la
1943 test_parse_util_SOURCES = \
1944 src/test/test-parse-util.c
1946 test_parse_util_LDADD = \
1947 libsystemd-shared.la
1949 test_user_util_SOURCES = \
1950 src/test/test-user-util.c
1952 test_user_util_LDADD = \
1953 libsystemd-shared.la
1955 test_hostname_util_SOURCES = \
1956 src/test/test-hostname-util.c
1958 test_hostname_util_LDADD = \
1959 libsystemd-shared.la
1961 test_process_util_SOURCES = \
1962 src/test/test-process-util.c
1964 test_process_util_LDADD = \
1965 libsystemd-shared.la
1967 test_terminal_util_SOURCES = \
1968 src/test/test-terminal-util.c
1970 test_terminal_util_LDADD = \
1971 libsystemd-shared.la
1973 test_path_lookup_SOURCES = \
1974 src/test/test-path-lookup.c
1976 test_path_lookup_LDADD = \
1977 libsystemd-shared.la
1979 test_uid_range_SOURCES = \
1980 src/test/test-uid-range.c
1982 test_uid_range_LDADD = \
1983 libsystemd-shared.la
1985 test_cap_list_SOURCES = \
1986 src/test/test-cap-list.c
1988 test_cap_list_CFLAGS = \
1992 test_cap_list_LDADD = \
1993 libsystemd-shared.la \
1996 test_socket_util_SOURCES = \
1997 src/test/test-socket-util.c
1999 test_socket_util_LDADD = \
2000 libsystemd-shared.la
2002 test_barrier_SOURCES = \
2003 src/test/test-barrier.c
2005 test_barrier_LDADD = \
2006 libsystemd-shared.la
2008 test_tmpfiles_SOURCES = \
2009 src/test/test-tmpfiles.c
2011 test_tmpfiles_LDADD = \
2012 libsystemd-shared.la
2014 test_namespace_SOURCES = \
2015 src/test/test-namespace.c
2017 test_verbs_SOURCES = \
2018 src/test/test-verbs.c
2020 test_verbs_LDADD = \
2021 libsystemd-shared.la
2023 test_install_root_SOURCES = \
2024 src/test/test-install-root.c
2026 test_install_root_LDADD = \
2027 libsystemd-shared.la
2029 test_acl_util_SOURCES = \
2030 src/test/test-acl-util.c
2032 test_acl_util_LDADD = \
2033 libsystemd-shared.la
2035 test_namespace_LDADD = \
2038 test_rlimit_util_SOURCES = \
2039 src/test/test-rlimit-util.c
2041 test_rlimit_util_LDADD = \
2042 libsystemd-shared.la
2044 test_ask_password_api_SOURCES = \
2045 src/test/test-ask-password-api.c
2047 test_ask_password_api_LDADD = \
2048 libsystemd-shared.la
2050 test_signal_util_SOURCES = \
2051 src/test/test-signal-util.c
2053 test_signal_util_LDADD = \
2054 libsystemd-shared.la
2056 test_selinux_SOURCES = \
2057 src/test/test-selinux.c
2059 test_selinux_LDADD = \
2060 libsystemd-shared.la
2062 test_sizeof_SOURCES = \
2063 src/test/test-sizeof.c
2065 test_sizeof_LDADD = \
2066 libsystemd-shared.la
2069 src/test/test-hashmap-ordered.c
2071 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
2072 $(AM_V_at)$(MKDIR_P) $(dir $@)
2073 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
2074 { if (!match($$0, "^#include")) \
2075 gsub(/hashmap/, "ordered_hashmap"); \
2076 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
2077 gsub(/Hashmap/, "OrderedHashmap"); \
2080 nodist_test_hashmap_SOURCES = \
2081 src/test/test-hashmap-ordered.c
2083 test_hashmap_SOURCES = \
2084 src/test/test-hashmap.c \
2085 src/test/test-hashmap-plain.c
2087 test_hashmap_LDADD = \
2088 libsystemd-shared.la
2090 test_set_SOURCES = \
2094 libsystemd-shared.la
2096 test_bitmap_SOURCES = \
2097 src/test/test-bitmap.c
2099 test_bitmap_LDADD = \
2100 libsystemd-shared.la
2102 test_xml_SOURCES = \
2106 libsystemd-shared.la
2108 test_list_SOURCES = \
2109 src/test/test-list.c
2112 libsystemd-shared.la
2114 test_unaligned_LDADD = \
2115 libsystemd-shared.la
2117 test_unaligned_SOURCES = \
2118 src/test/test-unaligned.c
2120 test_tables_SOURCES = \
2121 src/test/test-tables.c \
2122 src/shared/test-tables.h \
2123 src/journal/journald-server.c \
2124 src/journal/journald-server.h
2126 test_tables_CPPFLAGS = \
2129 test_tables_CFLAGS = \
2134 test_tables_LDADD = \
2135 libjournal-core.la \
2139 test_prioq_SOURCES = \
2140 src/test/test-prioq.c
2142 test_prioq_LDADD = \
2143 libsystemd-shared.la
2145 test_fileio_SOURCES = \
2146 src/test/test-fileio.c
2148 test_fileio_LDADD = \
2149 libsystemd-shared.la
2151 test_time_SOURCES = \
2152 src/test/test-time.c
2155 libsystemd-shared.la
2157 test_clock_SOURCES = \
2158 src/test/test-clock.c
2160 test_clock_LDADD = \
2161 libsystemd-shared.la
2163 test_architecture_SOURCES = \
2164 src/test/test-architecture.c
2166 test_architecture_LDADD = \
2167 libsystemd-shared.la
2169 test_log_SOURCES = \
2173 libsystemd-shared.la
2175 test_ipcrm_SOURCES = \
2176 src/test/test-ipcrm.c
2178 test_ipcrm_LDADD = \
2179 libsystemd-shared.la
2181 test_btrfs_SOURCES = \
2182 src/test/test-btrfs.c
2184 test_btrfs_LDADD = \
2185 libsystemd-shared.la
2188 test_firewall_util_SOURCES = \
2189 src/test/test-firewall-util.c
2191 test_firewall_util_CFLAGS = \
2195 test_firewall_util_LDADD = \
2197 libsystemd-shared.la \
2201 test_netlink_manual_SOURCES = \
2202 src/test/test-netlink-manual.c
2204 test_netlink_manual_CFLAGS = \
2208 test_netlink_manual_LDADD = \
2209 libsystemd-shared.la \
2212 test_ellipsize_SOURCES = \
2213 src/test/test-ellipsize.c
2215 test_ellipsize_LDADD = \
2216 libsystemd-shared.la
2218 test_date_SOURCES = \
2219 src/test/test-date.c
2222 libsystemd-shared.la
2224 test_sleep_SOURCES = \
2225 src/test/test-sleep.c
2227 test_sleep_LDADD = \
2230 test_replace_var_SOURCES = \
2231 src/test/test-replace-var.c
2233 test_replace_var_LDADD = \
2234 libsystemd-shared.la
2236 test_calendarspec_SOURCES = \
2237 src/test/test-calendarspec.c
2239 test_calendarspec_LDADD = \
2240 libsystemd-shared.la
2242 test_strip_tab_ansi_SOURCES = \
2243 src/test/test-strip-tab-ansi.c
2245 test_strip_tab_ansi_LDADD = \
2246 libsystemd-shared.la
2248 test_daemon_SOURCES = \
2249 src/test/test-daemon.c
2251 test_daemon_LDADD = \
2252 libsystemd-shared.la
2254 test_cgroup_SOURCES = \
2255 src/test/test-cgroup.c
2257 test_cgroup_LDADD = \
2258 libsystemd-shared.la
2260 test_cgroup_mask_SOURCES = \
2261 src/test/test-cgroup-mask.c
2263 test_cgroup_mask_CPPFLAGS = \
2267 test_cgroup_mask_CFLAGS = \
2271 test_cgroup_mask_LDADD = \
2274 test_cgroup_util_SOURCES = \
2275 src/test/test-cgroup-util.c
2277 test_cgroup_util_LDADD = \
2278 libsystemd-shared.la
2280 test_env_util_SOURCES = \
2281 src/test/test-env-util.c
2283 test_env_util_LDADD = \
2284 libsystemd-shared.la
2286 test_strbuf_SOURCES = \
2287 src/test/test-strbuf.c
2289 test_strbuf_LDADD = \
2290 libsystemd-shared.la
2292 test_strv_SOURCES = \
2293 src/test/test-strv.c
2296 libsystemd-shared.la
2298 test_path_util_SOURCES = \
2299 src/test/test-path-util.c
2301 test_path_util_LDADD = \
2302 libsystemd-shared.la
2304 test_path_SOURCES = \
2305 src/test/test-path.c
2307 test_path_CFLAGS = \
2314 test_execute_SOURCES = \
2315 src/test/test-execute.c
2317 test_execute_CFLAGS = \
2321 test_execute_LDADD = \
2324 test_siphash24_SOURCES = \
2325 src/test/test-siphash24.c
2327 test_siphash24_LDADD = \
2328 libsystemd-shared.la
2330 test_strxcpyx_SOURCES = \
2331 src/test/test-strxcpyx.c
2333 test_strxcpyx_LDADD = \
2334 libsystemd-shared.la
2336 test_install_SOURCES = \
2337 src/test/test-install.c
2339 test_install_LDADD = \
2340 libsystemd-shared.la
2342 test_watchdog_SOURCES = \
2343 src/test/test-watchdog.c
2345 test_watchdog_LDADD = \
2346 libsystemd-shared.la
2348 test_sched_prio_SOURCES = \
2349 src/test/test-sched-prio.c
2351 test_sched_prio_CPPFLAGS = \
2355 test_sched_prio_CFLAGS = \
2359 test_sched_prio_LDADD = \
2362 test_conf_files_SOURCES = \
2363 src/test/test-conf-files.c
2365 test_conf_files_LDADD = \
2366 libsystemd-shared.la
2368 test_conf_parser_SOURCES = \
2369 src/test/test-conf-parser.c
2371 test_conf_parser_LDADD = \
2372 libsystemd-shared.la
2374 test_af_list_SOURCES = \
2375 src/test/test-af-list.c
2377 test_af_list_LDADD = \
2378 libsystemd-shared.la
2380 test_arphrd_list_SOURCES = \
2381 src/test/test-arphrd-list.c
2383 test_arphrd_list_LDADD = \
2384 libsystemd-shared.la
2386 # ------------------------------------------------------------------------------
2387 ## .PHONY so it always rebuilds it
2388 .PHONY: coverage lcov-run lcov-report coverage-sync
2390 # run lcov from scratch, always
2395 coverage_dir = coverage
2396 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2399 # reset run coverage tests
2401 @rm -rf $(coverage_dir)
2402 lcov $(coverage_opts) --zerocounters
2405 # generate report based on current coverage data
2407 $(MKDIR_P) $(coverage_dir)
2408 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2409 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2410 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2411 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2412 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2414 # lcov doesn't work properly with vpath builds, make sure that bad
2415 # output is not uploaded by mistake.
2416 coverage-sync: coverage
2417 test "$(builddir)" = "$(srcdir)"
2418 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2421 lcov-run lcov-report:
2422 echo "Need to reconfigure with --enable-coverage"
2425 # ------------------------------------------------------------------------------
2426 systemd_analyze_SOURCES = \
2427 src/analyze/analyze.c \
2428 src/analyze/analyze-verify.c \
2429 src/analyze/analyze-verify.h
2431 systemd_analyze_CFLAGS = \
2436 systemd_analyze_LDADD = \
2439 # ------------------------------------------------------------------------------
2440 systemd_initctl_SOURCES = \
2441 src/initctl/initctl.c
2443 systemd_initctl_LDADD = \
2444 libsystemd-shared.la
2446 # ------------------------------------------------------------------------------
2447 systemd_update_utmp_SOURCES = \
2448 src/update-utmp/update-utmp.c
2450 systemd_update_utmp_CFLAGS = \
2454 systemd_update_utmp_LDADD = \
2455 libsystemd-shared.la \
2458 # ------------------------------------------------------------------------------
2459 systemd_update_done_SOURCES = \
2460 src/update-done/update-done.c
2462 systemd_update_done_LDADD = \
2463 libsystemd-shared.la
2465 # ------------------------------------------------------------------------------
2466 systemd_shutdown_SOURCES = \
2469 src/core/shutdown.c \
2470 src/core/mount-setup.c \
2471 src/core/mount-setup.h \
2472 src/core/killall.h \
2475 systemd_shutdown_LDADD = \
2476 libsystemd-shared.la
2478 # ------------------------------------------------------------------------------
2480 systemd_modules_load_SOURCES = \
2481 src/modules-load/modules-load.c
2483 systemd_modules_load_CFLAGS = \
2487 systemd_modules_load_LDADD = \
2488 libsystemd-shared.la \
2491 rootlibexec_PROGRAMS += \
2492 systemd-modules-load
2494 nodist_systemunit_DATA += \
2495 units/systemd-modules-load.service
2497 SYSINIT_TARGET_WANTS += \
2498 systemd-modules-load.service
2501 nodist_systemunit_DATA += \
2502 units/kmod-static-nodes.service
2504 SYSINIT_TARGET_WANTS += \
2505 kmod-static-nodes.service
2510 units/systemd-modules-load.service.in \
2511 units/kmod-static-nodes.service.in
2513 # ------------------------------------------------------------------------------
2515 systemd_tmpfiles_SOURCES = \
2516 src/tmpfiles/tmpfiles.c
2518 systemd_tmpfiles_CFLAGS = \
2522 systemd_tmpfiles_LDADD = \
2523 libsystemd-shared.la \
2526 rootbin_PROGRAMS += \
2529 dist_systemunit_DATA += \
2530 units/systemd-tmpfiles-clean.timer
2532 nodist_systemunit_DATA += \
2533 units/systemd-tmpfiles-setup-dev.service \
2534 units/systemd-tmpfiles-setup.service \
2535 units/systemd-tmpfiles-clean.service
2537 nodist_tmpfiles_DATA = \
2538 tmpfiles.d/systemd.conf \
2541 dist_tmpfiles_DATA = \
2542 tmpfiles.d/systemd-nologin.conf \
2543 tmpfiles.d/tmp.conf \
2544 tmpfiles.d/x11.conf \
2545 tmpfiles.d/var.conf \
2546 tmpfiles.d/home.conf \
2547 tmpfiles.d/systemd-nspawn.conf \
2548 tmpfiles.d/journal-nocow.conf
2551 dist_tmpfiles_DATA += \
2552 tmpfiles.d/legacy.conf
2555 SYSINIT_TARGET_WANTS += \
2556 systemd-tmpfiles-setup-dev.service \
2557 systemd-tmpfiles-setup.service
2559 dist_zshcompletion_data += \
2560 shell-completion/zsh/_systemd-tmpfiles
2562 TIMERS_TARGET_WANTS += \
2563 systemd-tmpfiles-clean.timer
2567 $(sysconfdir)/tmpfiles.d
2571 tmpfiles.d/systemd.conf.m4 \
2572 tmpfiles.d/etc.conf.m4 \
2573 units/systemd-tmpfiles-setup-dev.service.in \
2574 units/systemd-tmpfiles-setup.service.in \
2575 units/systemd-tmpfiles-clean.service.in
2577 # ------------------------------------------------------------------------------
2579 systemd_sysusers_SOURCES = \
2580 src/sysusers/sysusers.c
2582 systemd_sysusers_LDADD = \
2583 libsystemd-shared.la
2585 rootbin_PROGRAMS += \
2588 nodist_systemunit_DATA += \
2589 units/systemd-sysusers.service
2591 SYSINIT_TARGET_WANTS += \
2592 systemd-sysusers.service
2594 nodist_sysusers_DATA = \
2595 sysusers.d/systemd.conf \
2596 sysusers.d/basic.conf
2599 nodist_sysusers_DATA += \
2600 sysusers.d/systemd-remote.conf
2608 units/systemd-sysusers.service.in \
2609 sysusers.d/systemd.conf.m4 \
2610 sysusers.d/systemd-remote.conf.m4 \
2611 sysusers.d/basic.conf.in
2613 # ------------------------------------------------------------------------------
2614 dist_factory_etc_DATA = \
2615 factory/etc/nsswitch.conf
2618 dist_factory_pam_DATA = \
2619 factory/etc/pam.d/system-auth \
2620 factory/etc/pam.d/other
2623 # ------------------------------------------------------------------------------
2625 systemd_firstboot_SOURCES = \
2626 src/firstboot/firstboot.c
2628 systemd_firstboot_LDADD = \
2629 libsystemd-shared.la \
2632 rootbin_PROGRAMS += \
2635 nodist_systemunit_DATA += \
2636 units/systemd-firstboot.service
2638 SYSINIT_TARGET_WANTS += \
2639 systemd-firstboot.service
2643 units/systemd-firstboot.service.in
2645 # ------------------------------------------------------------------------------
2646 systemd_machine_id_setup_SOURCES = \
2647 src/machine-id-setup/machine-id-setup-main.c \
2648 src/core/machine-id-setup.c \
2649 src/core/machine-id-setup.h
2651 systemd_machine_id_setup_LDADD = \
2652 libsystemd-shared.la
2654 SYSINIT_TARGET_WANTS += \
2655 systemd-machine-id-commit.service
2657 # ------------------------------------------------------------------------------
2658 systemd_sysctl_SOURCES = \
2661 systemd_sysctl_LDADD = \
2662 libsystemd-shared.la
2664 # ------------------------------------------------------------------------------
2665 systemd_sleep_SOURCES = \
2668 systemd_sleep_LDADD = \
2669 libsystemd-shared.la
2671 # ------------------------------------------------------------------------------
2672 systemd_fsck_SOURCES = \
2675 systemd_fsck_LDADD = \
2676 libsystemd-shared.la
2678 # ------------------------------------------------------------------------------
2679 systemd_ac_power_SOURCES = \
2680 src/ac-power/ac-power.c
2682 systemd_ac_power_LDADD = \
2683 libsystemd-shared.la
2685 # ------------------------------------------------------------------------------
2686 systemd_detect_virt_SOURCES = \
2687 src/detect-virt/detect-virt.c
2689 systemd_detect_virt_LDADD = \
2690 libsystemd-shared.la
2692 INSTALL_EXEC_HOOKS += \
2693 systemd-detect-virt-install-hook
2695 # ------------------------------------------------------------------------------
2696 systemd_delta_SOURCES = \
2699 systemd_delta_LDADD = \
2700 libsystemd-shared.la
2702 # ------------------------------------------------------------------------------
2703 systemd_getty_generator_SOURCES = \
2704 src/getty-generator/getty-generator.c
2706 systemd_getty_generator_LDADD = \
2707 libsystemd-shared.la
2709 # ------------------------------------------------------------------------------
2710 systemd_debug_generator_SOURCES = \
2711 src/debug-generator/debug-generator.c
2713 systemd_debug_generator_LDADD = \
2714 libsystemd-shared.la
2716 # ------------------------------------------------------------------------------
2717 systemd_fstab_generator_SOURCES = \
2718 src/fstab-generator/fstab-generator.c \
2719 src/core/mount-setup.c
2721 systemd_fstab_generator_LDADD = \
2722 libsystemd-shared.la
2724 # ------------------------------------------------------------------------------
2725 systemd_system_update_generator_SOURCES = \
2726 src/system-update-generator/system-update-generator.c
2728 systemd_system_update_generator_LDADD = \
2729 libsystemd-shared.la
2731 # ------------------------------------------------------------------------------
2733 systemgenerator_PROGRAMS += \
2734 systemd-hibernate-resume-generator
2736 rootlibexec_PROGRAMS += \
2737 systemd-hibernate-resume
2739 systemd_hibernate_resume_SOURCES = \
2740 src/hibernate-resume/hibernate-resume.c
2742 systemd_hibernate_resume_LDADD = \
2743 libsystemd-shared.la
2745 systemd_hibernate_resume_generator_SOURCES = \
2746 src/hibernate-resume/hibernate-resume-generator.c
2748 systemd_hibernate_resume_generator_LDADD = \
2749 libsystemd-shared.la
2751 dist_systemunit_DATA += \
2752 units/hibernate.target \
2753 units/hybrid-sleep.target
2755 nodist_systemunit_DATA += \
2756 units/systemd-hibernate.service \
2757 units/systemd-hibernate-resume@.service \
2758 units/systemd-hybrid-sleep.service
2762 units/systemd-hibernate.service.in \
2763 units/systemd-hibernate-resume@.service.in \
2764 units/systemd-hybrid-sleep.service.in
2766 # ------------------------------------------------------------------------------
2772 bootctl_CPPFLAGS = \
2774 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2775 -DBOOTLIBDIR=\"$(bootlibdir)\"
2782 libsystemd-shared.la \
2788 dist_bashcompletion_data += \
2789 shell-completion/bash/bootctl
2791 dist_zshcompletion_data += \
2792 shell-completion/zsh/_bootctl
2795 # ------------------------------------------------------------------------------
2799 -I$(top_builddir) -include config.h \
2800 -I$(EFI_INC_DIR)/efi \
2801 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2802 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2815 -fno-strict-aliasing \
2816 -fno-stack-protector \
2818 -Wno-missing-field-initializers
2825 -DEFI_FUNCTION_WRAPPER \
2826 -DGNU_EFI_USE_MS_ABI
2837 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2843 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2845 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2846 # and add required symbols manually.
2848 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2849 EFI_FORMAT = -O binary
2851 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2856 # ------------------------------------------------------------------------------
2857 systemd_boot_headers = \
2858 src/boot/efi/util.h \
2859 src/boot/efi/console.h \
2860 src/boot/efi/graphics.h \
2861 src/boot/efi/pefile.h \
2862 src/boot/efi/measure.h \
2865 systemd_boot_sources = \
2866 src/boot/efi/util.c \
2867 src/boot/efi/console.c \
2868 src/boot/efi/graphics.c \
2869 src/boot/efi/pefile.c \
2870 src/boot/efi/disk.c \
2871 src/boot/efi/measure.c \
2874 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2876 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2877 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2878 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2882 bootlib_DATA = $(systemd_boot)
2884 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2885 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2886 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2888 $(systemd_boot_solib): $(systemd_boot_objects)
2889 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2890 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2891 nm -D -u $@ | grep ' U ' && exit 1 || :
2893 $(systemd_boot): $(systemd_boot_solib)
2894 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2895 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2899 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2901 # ------------------------------------------------------------------------------
2903 src/boot/efi/util.h \
2904 src/boot/efi/pefile.h \
2905 src/boot/efi/disk.h \
2906 src/boot/efi/graphics.h \
2907 src/boot/efi/splash.h \
2908 src/boot/efi/measure.h \
2909 src/boot/efi/linux.h
2912 src/boot/efi/util.c \
2913 src/boot/efi/pefile.c \
2914 src/boot/efi/disk.c \
2915 src/boot/efi/graphics.c \
2916 src/boot/efi/splash.c \
2917 src/boot/efi/linux.c \
2918 src/boot/efi/measure.c \
2926 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2927 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2928 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2932 bootlib_DATA += $(stub)
2934 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2935 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2936 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2938 $(stub_solib): $(stub_objects)
2939 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2940 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2941 nm -D -u $@ | grep ' U ' && exit 1 || :
2943 $(stub): $(stub_solib)
2944 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2945 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2949 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2952 # ------------------------------------------------------------------------------
2953 CLEANFILES += test-efi-disk.img
2955 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2956 $(AM_V_GEN)test/test-efi-create-disk.sh
2958 test-efi: test-efi-disk.img
2959 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2961 EXTRA_DIST += test/test-efi-create-disk.sh
2963 # ------------------------------------------------------------------------------
2965 systemgenerator_PROGRAMS += \
2966 systemd-gpt-auto-generator
2968 systemd_gpt_auto_generator_SOURCES = \
2969 src/gpt-auto-generator/gpt-auto-generator.c \
2970 src/basic/blkid-util.h
2972 systemd_gpt_auto_generator_LDADD = \
2973 libsystemd-shared.la \
2976 systemd_gpt_auto_generator_CFLAGS = \
2981 # ------------------------------------------------------------------------------
2982 dist_xinitrc_SCRIPTS = \
2983 xorg/50-systemd-user.sh
2985 # ------------------------------------------------------------------------------
2986 systemd_sysv_generator_SOURCES = \
2987 src/sysv-generator/sysv-generator.c
2989 systemd_sysv_generator_LDADD = \
2992 # ------------------------------------------------------------------------------
2993 systemd_rc_local_generator_SOURCES = \
2994 src/rc-local-generator/rc-local-generator.c
2996 systemd_rc_local_generator_LDADD = \
2997 libsystemd-shared.la
2999 # ------------------------------------------------------------------------------
3000 systemd_remount_fs_SOURCES = \
3001 src/remount-fs/remount-fs.c \
3002 src/core/mount-setup.c \
3003 src/core/mount-setup.h
3005 systemd_remount_fs_LDADD = \
3006 libsystemd-shared.la
3008 # ------------------------------------------------------------------------------
3009 systemd_cgroups_agent_SOURCES = \
3010 src/cgroups-agent/cgroups-agent.c
3012 systemd_cgroups_agent_LDADD = \
3013 libsystemd-shared.la
3015 # ------------------------------------------------------------------------------
3016 systemd_escape_SOURCES = \
3019 systemd_escape_LDADD = \
3020 libsystemd-shared.la
3022 # -----------------------------------------------------------------------------
3023 systemctl_SOURCES = \
3024 src/systemctl/systemctl.c
3027 libsystemd-shared.la
3029 # ------------------------------------------------------------------------------
3030 systemd_notify_SOURCES = \
3033 systemd_notify_LDADD = \
3034 libsystemd-shared.la
3036 # ------------------------------------------------------------------------------
3037 systemd_path_SOURCES = \
3040 systemd_path_LDADD = \
3041 libsystemd-shared.la
3043 # ------------------------------------------------------------------------------
3044 systemd_ask_password_SOURCES = \
3045 src/ask-password/ask-password.c
3047 systemd_ask_password_LDADD = \
3048 libsystemd-shared.la
3050 # ------------------------------------------------------------------------------
3051 systemd_reply_password_SOURCES = \
3052 src/reply-password/reply-password.c
3054 systemd_reply_password_LDADD = \
3055 libsystemd-shared.la
3057 # ------------------------------------------------------------------------------
3058 systemd_cgls_SOURCES = \
3061 systemd_cgls_LDADD = \
3062 libsystemd-shared.la
3064 # ------------------------------------------------------------------------------
3065 systemd_cgtop_SOURCES = \
3068 systemd_cgtop_LDADD = \
3069 libsystemd-shared.la
3071 # ------------------------------------------------------------------------------
3072 systemd_nspawn_SOURCES = \
3073 src/nspawn/nspawn.c \
3074 src/nspawn/nspawn-settings.c \
3075 src/nspawn/nspawn-settings.h \
3076 src/nspawn/nspawn-mount.c \
3077 src/nspawn/nspawn-mount.h \
3078 src/nspawn/nspawn-network.c \
3079 src/nspawn/nspawn-network.h \
3080 src/nspawn/nspawn-expose-ports.c \
3081 src/nspawn/nspawn-expose-ports.h \
3082 src/nspawn/nspawn-cgroup.c \
3083 src/nspawn/nspawn-cgroup.h \
3084 src/nspawn/nspawn-seccomp.c \
3085 src/nspawn/nspawn-seccomp.h \
3086 src/nspawn/nspawn-register.c \
3087 src/nspawn/nspawn-register.h \
3088 src/nspawn/nspawn-setuid.c \
3089 src/nspawn/nspawn-setuid.h \
3090 src/nspawn/nspawn-stub-pid1.c \
3091 src/nspawn/nspawn-stub-pid1.h \
3092 src/nspawn/nspawn-patch-uid.c \
3093 src/nspawn/nspawn-patch-uid.h \
3094 src/core/mount-setup.c \
3095 src/core/mount-setup.h \
3096 src/core/loopback-setup.c \
3097 src/core/loopback-setup.h
3099 nodist_systemd_nspawn_SOURCES = \
3100 src/nspawn/nspawn-gperf.c
3102 gperf_gperf_sources += \
3103 src/nspawn/nspawn-gperf.gperf
3105 systemd_nspawn_CFLAGS = \
3112 systemd_nspawn_LDADD = \
3113 libsystemd-shared.la \
3120 systemd_nspawn_LDADD += \
3124 test_patch_uid_SOURCES = \
3125 src/nspawn/nspawn-patch-uid.c \
3126 src/nspawn/nspawn-patch-uid.h \
3127 src/nspawn/test-patch-uid.c
3129 test_patch_uid_CFLAGS = \
3133 test_patch_uid_LDADD = \
3134 libsystemd-shared.la \
3140 # ------------------------------------------------------------------------------
3141 systemd_run_SOURCES = \
3144 systemd_run_LDADD = \
3145 libsystemd-shared.la
3147 # ------------------------------------------------------------------------------
3148 systemd_mount_SOURCES = \
3149 src/mount/mount-tool.c
3151 systemd_mount_LDADD = \
3152 libsystemd-shared.la
3154 # ------------------------------------------------------------------------------
3155 systemd_stdio_bridge_SOURCES = \
3156 src/stdio-bridge/stdio-bridge.c
3158 systemd_stdio_bridge_LDADD = \
3159 libsystemd-shared.la
3161 # ------------------------------------------------------------------------------
3162 systemd_tty_ask_password_agent_SOURCES = \
3163 src/tty-ask-password-agent/tty-ask-password-agent.c
3165 systemd_tty_ask_password_agent_LDADD = \
3166 libsystemd-shared.la
3168 # ------------------------------------------------------------------------------
3169 libsystemd_internal_la_SOURCES = \
3170 src/systemd/sd-bus.h \
3171 src/systemd/sd-bus-protocol.h \
3172 src/systemd/sd-bus-vtable.h \
3173 src/systemd/sd-utf8.h \
3174 src/systemd/sd-event.h \
3175 src/systemd/sd-netlink.h \
3176 src/systemd/sd-resolve.h \
3177 src/systemd/sd-login.h \
3178 src/systemd/sd-id128.h \
3179 src/systemd/sd-daemon.h \
3180 src/systemd/sd-path.h \
3181 src/systemd/sd-network.h \
3182 src/systemd/sd-hwdb.h \
3183 src/systemd/sd-device.h \
3184 src/libsystemd/libsystemd.sym \
3185 src/libsystemd/sd-bus/sd-bus.c \
3186 src/libsystemd/sd-bus/bus-control.c \
3187 src/libsystemd/sd-bus/bus-control.h \
3188 src/libsystemd/sd-bus/bus-error.c \
3189 src/libsystemd/sd-bus/bus-error.h \
3190 src/libsystemd/sd-bus/bus-common-errors.h \
3191 src/libsystemd/sd-bus/bus-common-errors.c \
3192 src/libsystemd/sd-bus/bus-internal.c \
3193 src/libsystemd/sd-bus/bus-internal.h \
3194 src/libsystemd/sd-bus/bus-socket.c \
3195 src/libsystemd/sd-bus/bus-socket.h \
3196 src/libsystemd/sd-bus/bus-kernel.c \
3197 src/libsystemd/sd-bus/bus-kernel.h \
3198 src/libsystemd/sd-bus/bus-container.c \
3199 src/libsystemd/sd-bus/bus-container.h \
3200 src/libsystemd/sd-bus/bus-message.c \
3201 src/libsystemd/sd-bus/bus-message.h \
3202 src/libsystemd/sd-bus/bus-creds.c \
3203 src/libsystemd/sd-bus/bus-creds.h \
3204 src/libsystemd/sd-bus/bus-signature.c \
3205 src/libsystemd/sd-bus/bus-signature.h \
3206 src/libsystemd/sd-bus/bus-type.c \
3207 src/libsystemd/sd-bus/bus-type.h \
3208 src/libsystemd/sd-bus/bus-match.c \
3209 src/libsystemd/sd-bus/bus-match.h \
3210 src/libsystemd/sd-bus/bus-bloom.c \
3211 src/libsystemd/sd-bus/bus-bloom.h \
3212 src/libsystemd/sd-bus/bus-introspect.c \
3213 src/libsystemd/sd-bus/bus-introspect.h \
3214 src/libsystemd/sd-bus/bus-objects.c \
3215 src/libsystemd/sd-bus/bus-objects.h \
3216 src/libsystemd/sd-bus/bus-gvariant.c \
3217 src/libsystemd/sd-bus/bus-gvariant.h \
3218 src/libsystemd/sd-bus/bus-convenience.c \
3219 src/libsystemd/sd-bus/bus-track.c \
3220 src/libsystemd/sd-bus/bus-track.h \
3221 src/libsystemd/sd-bus/bus-slot.c \
3222 src/libsystemd/sd-bus/bus-slot.h \
3223 src/libsystemd/sd-bus/bus-protocol.h \
3224 src/libsystemd/sd-bus/kdbus.h \
3225 src/libsystemd/sd-bus/bus-dump.c \
3226 src/libsystemd/sd-bus/bus-dump.h \
3227 src/libsystemd/sd-utf8/sd-utf8.c \
3228 src/libsystemd/sd-event/sd-event.c \
3229 src/libsystemd/sd-netlink/sd-netlink.c \
3230 src/libsystemd/sd-netlink/netlink-internal.h \
3231 src/libsystemd/sd-netlink/netlink-message.c \
3232 src/libsystemd/sd-netlink/netlink-socket.c \
3233 src/libsystemd/sd-netlink/rtnl-message.c \
3234 src/libsystemd/sd-netlink/netlink-types.h \
3235 src/libsystemd/sd-netlink/netlink-types.c \
3236 src/libsystemd/sd-netlink/netlink-util.h \
3237 src/libsystemd/sd-netlink/netlink-util.c \
3238 src/libsystemd/sd-netlink/local-addresses.h \
3239 src/libsystemd/sd-netlink/local-addresses.c \
3240 src/libsystemd/sd-id128/sd-id128.c \
3241 src/libsystemd/sd-id128/id128-util.h \
3242 src/libsystemd/sd-id128/id128-util.c \
3243 src/libsystemd/sd-daemon/sd-daemon.c \
3244 src/libsystemd/sd-login/sd-login.c \
3245 src/libsystemd/sd-path/sd-path.c \
3246 src/libsystemd/sd-network/sd-network.c \
3247 src/libsystemd/sd-network/network-util.h \
3248 src/libsystemd/sd-network/network-util.c \
3249 src/libsystemd/sd-hwdb/sd-hwdb.c \
3250 src/libsystemd/sd-hwdb/hwdb-util.h \
3251 src/libsystemd/sd-hwdb/hwdb-internal.h \
3252 src/libsystemd/sd-device/device-internal.h \
3253 src/libsystemd/sd-device/device-util.h \
3254 src/libsystemd/sd-device/device-enumerator.c \
3255 src/libsystemd/sd-device/device-enumerator-private.h \
3256 src/libsystemd/sd-device/sd-device.c \
3257 src/libsystemd/sd-device/device-private.c \
3258 src/libsystemd/sd-device/device-private.h \
3259 src/libsystemd/sd-resolve/sd-resolve.c
3261 libsystemd_internal_la_LIBADD = \
3264 noinst_LTLIBRARIES += \
3265 libsystemd-internal.la
3268 src/libsystemd/libsystemd.pc.in \
3269 src/libsystemd/sd-bus/DIFFERENCES \
3270 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3272 libsystemd_la_SOURCES =
3274 libsystemd_la_LDFLAGS = \
3276 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3277 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3279 libsystemd_la_LIBADD = \
3280 libsystemd-internal.la \
3282 libsystemd-journal-internal.la
3284 pkgconfiglib_DATA += \
3285 src/libsystemd/libsystemd.pc
3287 pkginclude_HEADERS += \
3288 src/systemd/sd-bus.h \
3289 src/systemd/sd-bus-protocol.h \
3290 src/systemd/sd-bus-vtable.h \
3291 src/systemd/sd-event.h \
3292 src/systemd/sd-login.h \
3293 src/systemd/sd-id128.h \
3294 src/systemd/sd-daemon.h
3296 rootlib_LTLIBRARIES += \
3301 test-bus-signature \
3302 test-bus-benchmark \
3308 test-bus-kernel-bloom \
3309 test-bus-zero-copy \
3310 test-bus-introspect \
3318 test-local-addresses \
3324 test_bus_marshal_SOURCES = \
3325 src/libsystemd/sd-bus/test-bus-marshal.c
3327 test_bus_marshal_LDADD = \
3328 libsystemd-shared.la \
3332 test_bus_marshal_CFLAGS = \
3337 test_bus_signature_SOURCES = \
3338 src/libsystemd/sd-bus/test-bus-signature.c
3340 test_bus_signature_LDADD = \
3341 libsystemd-shared.la
3343 test_bus_chat_SOURCES = \
3344 src/libsystemd/sd-bus/test-bus-chat.c
3346 test_bus_chat_LDADD = \
3347 libsystemd-shared.la
3349 test_bus_cleanup_SOURCES = \
3350 src/libsystemd/sd-bus/test-bus-cleanup.c
3352 test_bus_cleanup_CFLAGS = \
3356 test_bus_cleanup_LDADD = \
3357 libsystemd-shared.la
3359 test_bus_track_SOURCES = \
3360 src/libsystemd/sd-bus/test-bus-track.c
3362 test_bus_track_CFLAGS = \
3366 test_bus_track_LDADD = \
3367 libsystemd-shared.la
3369 test_bus_server_SOURCES = \
3370 src/libsystemd/sd-bus/test-bus-server.c
3372 test_bus_server_LDADD = \
3373 libsystemd-shared.la
3375 test_bus_objects_SOURCES = \
3376 src/libsystemd/sd-bus/test-bus-objects.c
3378 test_bus_objects_LDADD = \
3379 libsystemd-shared.la
3381 test_bus_error_SOURCES = \
3382 src/libsystemd/sd-bus/test-bus-error.c
3384 # Link statically because this test uses BUS_ERROR_MAP_ELF_REGISTER
3385 test_bus_error_LDADD = \
3388 test_bus_gvariant_SOURCES = \
3389 src/libsystemd/sd-bus/test-bus-gvariant.c
3391 test_bus_gvariant_LDADD = \
3392 libsystemd-shared.la \
3395 test_bus_gvariant_CFLAGS = \
3399 test_bus_creds_SOURCES = \
3400 src/libsystemd/sd-bus/test-bus-creds.c
3402 test_bus_creds_LDADD = \
3403 libsystemd-shared.la
3405 test_bus_match_SOURCES = \
3406 src/libsystemd/sd-bus/test-bus-match.c
3408 test_bus_match_LDADD = \
3409 libsystemd-shared.la
3411 test_bus_kernel_SOURCES = \
3412 src/libsystemd/sd-bus/test-bus-kernel.c
3414 test_bus_kernel_LDADD = \
3415 libsystemd-shared.la
3417 test_bus_kernel_bloom_SOURCES = \
3418 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3420 test_bus_kernel_bloom_LDADD = \
3421 libsystemd-shared.la
3423 test_bus_benchmark_SOURCES = \
3424 src/libsystemd/sd-bus/test-bus-benchmark.c
3426 test_bus_benchmark_LDADD = \
3427 libsystemd-shared.la
3429 test_bus_zero_copy_SOURCES = \
3430 src/libsystemd/sd-bus/test-bus-zero-copy.c
3432 test_bus_zero_copy_LDADD = \
3433 libsystemd-shared.la
3435 test_bus_introspect_SOURCES = \
3436 src/libsystemd/sd-bus/test-bus-introspect.c
3438 test_bus_introspect_LDADD = \
3439 libsystemd-shared.la
3441 test_event_SOURCES = \
3442 src/libsystemd/sd-event/test-event.c
3444 test_event_LDADD = \
3445 libsystemd-shared.la
3447 test_netlink_SOURCES = \
3448 src/libsystemd/sd-netlink/test-netlink.c
3450 test_netlink_LDADD = \
3451 libsystemd-shared.la
3453 test_local_addresses_SOURCES = \
3454 src/libsystemd/sd-netlink/test-local-addresses.c
3456 test_local_addresses_LDADD = \
3457 libsystemd-shared.la
3459 test_resolve_SOURCES = \
3460 src/libsystemd/sd-resolve/test-resolve.c
3462 test_resolve_LDADD = \
3463 libsystemd-shared.la
3466 src/libsystemd/sd-bus/busctl.c \
3467 src/libsystemd/sd-bus/busctl-introspect.c \
3468 src/libsystemd/sd-bus/busctl-introspect.h
3471 libsystemd-shared.la
3473 # ------------------------------------------------------------------------------
3474 noinst_LTLIBRARIES += \
3475 libsystemd-network.la
3477 libsystemd_network_la_CFLAGS = \
3481 libsystemd_network_la_SOURCES = \
3482 src/systemd/sd-dhcp-client.h \
3483 src/systemd/sd-dhcp-server.h \
3484 src/systemd/sd-dhcp-lease.h \
3485 src/systemd/sd-ipv4ll.h \
3486 src/systemd/sd-ipv4acd.h \
3487 src/systemd/sd-ndisc.h \
3488 src/systemd/sd-dhcp6-client.h \
3489 src/systemd/sd-dhcp6-lease.h \
3490 src/systemd/sd-lldp.h \
3491 src/libsystemd-network/sd-dhcp-client.c \
3492 src/libsystemd-network/sd-dhcp-server.c \
3493 src/libsystemd-network/dhcp-network.c \
3494 src/libsystemd-network/dhcp-option.c \
3495 src/libsystemd-network/dhcp-packet.c \
3496 src/libsystemd-network/dhcp-internal.h \
3497 src/libsystemd-network/dhcp-server-internal.h \
3498 src/libsystemd-network/dhcp-protocol.h \
3499 src/libsystemd-network/dhcp-lease-internal.h \
3500 src/libsystemd-network/sd-dhcp-lease.c \
3501 src/libsystemd-network/sd-ipv4ll.c \
3502 src/libsystemd-network/sd-ipv4acd.c \
3503 src/libsystemd-network/arp-util.h \
3504 src/libsystemd-network/arp-util.c \
3505 src/libsystemd-network/network-internal.c \
3506 src/libsystemd-network/network-internal.h \
3507 src/libsystemd-network/sd-ndisc.c \
3508 src/libsystemd-network/ndisc-internal.h \
3509 src/libsystemd-network/ndisc-router.h \
3510 src/libsystemd-network/ndisc-router.c \
3511 src/libsystemd-network/icmp6-util.h \
3512 src/libsystemd-network/icmp6-util.c \
3513 src/libsystemd-network/sd-dhcp6-client.c \
3514 src/libsystemd-network/dhcp6-internal.h \
3515 src/libsystemd-network/dhcp6-protocol.h \
3516 src/libsystemd-network/dhcp6-network.c \
3517 src/libsystemd-network/dhcp6-option.c \
3518 src/libsystemd-network/dhcp6-lease-internal.h \
3519 src/libsystemd-network/sd-dhcp6-lease.c \
3520 src/libsystemd-network/dhcp-identifier.h \
3521 src/libsystemd-network/dhcp-identifier.c \
3522 src/libsystemd-network/lldp-internal.h \
3523 src/libsystemd-network/lldp-network.h \
3524 src/libsystemd-network/lldp-network.c \
3525 src/libsystemd-network/lldp-neighbor.h \
3526 src/libsystemd-network/lldp-neighbor.c \
3527 src/libsystemd-network/sd-lldp.c
3529 libsystemd_network_la_LIBADD = \
3532 test_dhcp_option_SOURCES = \
3533 src/libsystemd-network/dhcp-protocol.h \
3534 src/libsystemd-network/dhcp-internal.h \
3535 src/libsystemd-network/test-dhcp-option.c
3537 test_dhcp_option_LDADD = \
3538 libsystemd-network.la \
3539 libsystemd-shared.la
3541 test_dhcp_client_SOURCES = \
3542 src/systemd/sd-dhcp-client.h \
3543 src/libsystemd-network/dhcp-protocol.h \
3544 src/libsystemd-network/dhcp-internal.h \
3545 src/libsystemd-network/test-dhcp-client.c
3547 test_dhcp_client_LDADD = \
3548 libsystemd-network.la \
3549 libsystemd-shared.la
3551 test_dhcp_server_SOURCES = \
3552 src/libsystemd-network/test-dhcp-server.c
3554 test_dhcp_server_LDADD = \
3555 libsystemd-network.la \
3556 libsystemd-shared.la
3558 test_ipv4ll_SOURCES = \
3559 src/systemd/sd-ipv4ll.h \
3560 src/libsystemd-network/arp-util.h \
3561 src/libsystemd-network/test-ipv4ll.c
3563 test_ipv4ll_LDADD = \
3564 libsystemd-network.la \
3565 libsystemd-shared.la
3567 test_ipv4ll_manual_SOURCES = \
3568 src/systemd/sd-ipv4ll.h \
3569 src/libsystemd-network/test-ipv4ll-manual.c
3571 test_ipv4ll_manual_LDADD = \
3572 libsystemd-network.la \
3573 libsystemd-shared.la
3575 test_acd_SOURCES = \
3576 src/systemd/sd-ipv4acd.h \
3577 src/libsystemd-network/test-acd.c
3580 libsystemd-network.la \
3581 libsystemd-shared.la
3583 test_ndisc_rs_SOURCES = \
3584 src/systemd/sd-dhcp6-client.h \
3585 src/systemd/sd-ndisc.h \
3586 src/libsystemd-network/icmp6-util.h \
3587 src/libsystemd-network/test-ndisc-rs.c \
3588 src/libsystemd-network/dhcp-identifier.h \
3589 src/libsystemd-network/dhcp-identifier.c
3591 test_ndisc_rs_LDADD = \
3592 libsystemd-network.la \
3594 libsystemd-shared.la
3596 test_dhcp6_client_SOURCES = \
3597 src/systemd/sd-dhcp6-client.h \
3598 src/libsystemd-network/dhcp6-internal.h \
3599 src/libsystemd-network/test-dhcp6-client.c \
3600 src/libsystemd-network/dhcp-identifier.h \
3601 src/libsystemd-network/dhcp-identifier.c
3603 test_dhcp6_client_LDADD = \
3604 libsystemd-network.la \
3606 libsystemd-shared.la
3608 test_lldp_SOURCES = \
3609 src/libsystemd-network/test-lldp.c
3612 libsystemd-network.la \
3613 libsystemd-shared.la
3624 # ------------------------------------------------------------------------------
3625 include_HEADERS += \
3626 src/libudev/libudev.h
3628 rootlib_LTLIBRARIES += \
3631 libudev_la_SOURCES =\
3632 src/libudev/libudev.sym \
3633 src/libudev/libudev-private.h \
3634 src/libudev/libudev-device-internal.h \
3635 src/libudev/libudev.c \
3636 src/libudev/libudev-list.c \
3637 src/libudev/libudev-util.c \
3638 src/libudev/libudev-device.c \
3639 src/libudev/libudev-device-private.c \
3640 src/libudev/libudev-enumerate.c \
3641 src/libudev/libudev-monitor.c \
3642 src/libudev/libudev-queue.c \
3643 src/libudev/libudev-hwdb.c
3645 libudev_la_LDFLAGS = \
3647 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3648 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3650 libudev_la_LIBADD = \
3651 libsystemd-internal.la \
3654 pkgconfiglib_DATA += \
3655 src/libudev/libudev.pc
3658 src/libudev/libudev.pc.in
3660 # ------------------------------------------------------------------------------
3661 noinst_LTLIBRARIES += \
3664 libudev_internal_la_SOURCES =\
3665 $(libudev_la_SOURCES)
3667 # ------------------------------------------------------------------------------
3669 $(sysconfdir)/udev/rules.d
3671 dist_network_DATA = \
3672 network/99-default.link \
3673 network/80-container-host0.network \
3674 network/80-container-ve.network \
3675 network/80-container-vz.network
3677 dist_udevrules_DATA += \
3678 rules/50-udev-default.rules \
3679 rules/60-block.rules \
3680 rules/60-drm.rules \
3681 rules/60-evdev.rules \
3682 rules/60-persistent-storage-tape.rules \
3683 rules/60-persistent-input.rules \
3684 rules/60-persistent-alsa.rules \
3685 rules/60-persistent-storage.rules \
3686 rules/60-serial.rules \
3687 rules/64-btrfs.rules \
3688 rules/70-mouse.rules \
3689 rules/70-touchpad.rules \
3690 rules/75-net-description.rules \
3691 rules/78-sound-card.rules \
3692 rules/80-net-setup-link.rules
3694 nodist_udevrules_DATA += \
3695 rules/99-systemd.rules
3697 udevconfdir = $(sysconfdir)/udev
3698 dist_udevconf_DATA = \
3701 pkgconfigdata_DATA += \
3705 rules/99-systemd.rules.in \
3709 units/systemd-udevd.service.in \
3710 units/systemd-udev-trigger.service.in \
3711 units/systemd-udev-settle.service.in
3713 SOCKETS_TARGET_WANTS += \
3714 systemd-udevd-control.socket \
3715 systemd-udevd-kernel.socket
3717 SYSINIT_TARGET_WANTS += \
3718 systemd-udevd.service \
3719 systemd-udev-trigger.service
3721 rootbin_PROGRAMS += \
3724 rootlibexec_PROGRAMS += \
3727 noinst_LTLIBRARIES += \
3730 src/udev/keyboard-keys-list.txt:
3731 $(AM_V_at)$(MKDIR_P) $(dir $@)
3732 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9K]/ { if ($$2 != "KEY_MAX") { print $$2 } }' > $@
3734 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3735 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3737 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3738 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3740 gperf_txt_sources += \
3741 src/udev/keyboard-keys-list.txt
3743 libudev_core_la_SOURCES = \
3745 src/udev/udev-event.c \
3746 src/udev/udev-watch.c \
3747 src/udev/udev-node.c \
3748 src/udev/udev-rules.c \
3749 src/udev/udev-ctrl.c \
3750 src/udev/udev-builtin.c \
3751 src/udev/udev-builtin-btrfs.c \
3752 src/udev/udev-builtin-hwdb.c \
3753 src/udev/udev-builtin-input_id.c \
3754 src/udev/udev-builtin-keyboard.c \
3755 src/udev/udev-builtin-net_id.c \
3756 src/udev/udev-builtin-net_setup_link.c \
3757 src/udev/udev-builtin-path_id.c \
3758 src/udev/udev-builtin-usb_id.c \
3759 src/udev/net/link-config.h \
3760 src/udev/net/link-config.c \
3761 src/udev/net/ethtool-util.h \
3762 src/udev/net/ethtool-util.c
3764 nodist_libudev_core_la_SOURCES = \
3765 src/udev/keyboard-keys-from-name.h \
3766 src/udev/net/link-config-gperf.c
3768 gperf_gperf_sources += \
3769 src/udev/net/link-config-gperf.gperf
3771 libudev_core_la_CFLAGS = \
3776 libudev_core_la_LIBADD = \
3777 libsystemd-network.la \
3783 libudev_core_la_SOURCES += \
3784 src/udev/udev-builtin-kmod.c
3786 dist_udevrules_DATA += \
3787 rules/80-drivers.rules
3791 libudev_core_la_SOURCES += \
3792 src/udev/udev-builtin-blkid.c
3796 libudev_core_la_SOURCES += \
3797 src/udev/udev-builtin-uaccess.c \
3798 src/login/logind-acl.c \
3799 src/libsystemd/sd-login/sd-login.c \
3800 src/systemd/sd-login.h
3803 systemd_udevd_SOURCES = \
3806 systemd_udevd_LDADD = \
3811 src/udev/udevadm.c \
3812 src/udev/udevadm-info.c \
3813 src/udev/udevadm-control.c \
3814 src/udev/udevadm-monitor.c \
3815 src/udev/udevadm-hwdb.c \
3816 src/udev/udevadm-settle.c \
3817 src/udev/udevadm-trigger.c \
3818 src/udev/udevadm-test.c \
3819 src/udev/udevadm-test-builtin.c \
3820 src/udev/udevadm-util.c \
3821 src/udev/udevadm-util.h
3827 # ------------------------------------------------------------------------------
3830 $(sysconfdir)/udev/hwdb.d
3832 systemd_hwdb_SOURCES = \
3833 src/libsystemd/sd-hwdb/hwdb-internal.h \
3836 systemd_hwdb_LDADD = \
3839 rootbin_PROGRAMS += \
3842 dist_udevhwdb_DATA = \
3843 hwdb/20-pci-vendor-model.hwdb \
3844 hwdb/20-pci-classes.hwdb \
3845 hwdb/20-usb-vendor-model.hwdb \
3846 hwdb/20-usb-classes.hwdb \
3847 hwdb/20-sdio-vendor-model.hwdb \
3848 hwdb/20-sdio-classes.hwdb \
3849 hwdb/20-bluetooth-vendor-product.hwdb \
3850 hwdb/20-acpi-vendor.hwdb \
3852 hwdb/20-net-ifname.hwdb \
3853 hwdb/60-evdev.hwdb \
3854 hwdb/60-keyboard.hwdb \
3855 hwdb/70-mouse.hwdb \
3856 hwdb/70-pointingstick.hwdb \
3857 hwdb/70-touchpad.hwdb
3859 SYSINIT_TARGET_WANTS += \
3860 systemd-hwdb-update.service
3862 # Update hwdb on installation. Do not bother if installing
3863 # in DESTDIR, since this is likely for packaging purposes.
3865 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3867 INSTALL_DATA_HOOKS += \
3871 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3875 units/systemd-hwdb-update.service.in \
3876 hwdb/ids-update.pl \
3879 # ------------------------------------------------------------------------------
3886 test/rule-syntax-check.py \
3891 test/sysv-generator-test.py
3902 test_libudev_SOURCES = \
3903 src/test/test-libudev.c
3905 test_libudev_LDADD = \
3906 libsystemd-shared.la
3908 test_udev_SOURCES = \
3909 src/test/test-udev.c
3913 libsystemd-shared.la \
3923 # packed sysfs test tree
3924 test/sys: test/sys.tar.xz
3926 $(AM_V_at)$(MKDIR_P) $(dir $@)
3927 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3932 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3937 test/rule-syntax-check.py \
3938 test/sysv-generator-test.py \
3942 # ------------------------------------------------------------------------------
3944 src/udev/ata_id/ata_id.c
3949 udevlibexec_PROGRAMS += \
3952 # ------------------------------------------------------------------------------
3953 cdrom_id_SOURCES = \
3954 src/udev/cdrom_id/cdrom_id.c
3959 udevlibexec_PROGRAMS += \
3962 dist_udevrules_DATA += \
3963 rules/60-cdrom_id.rules
3965 # ------------------------------------------------------------------------------
3967 src/udev/collect/collect.c
3972 udevlibexec_PROGRAMS += \
3975 # ------------------------------------------------------------------------------
3977 src/udev/scsi_id/scsi_id.c \
3978 src/udev/scsi_id/scsi_serial.c \
3979 src/udev/scsi_id/scsi.h \
3980 src/udev/scsi_id/scsi_id.h
3985 udevlibexec_PROGRAMS += \
3989 src/udev/scsi_id/README
3991 # ------------------------------------------------------------------------------
3993 src/udev/v4l_id/v4l_id.c
3998 udevlibexec_PROGRAMS += \
4001 dist_udevrules_DATA += \
4002 rules/60-persistent-v4l.rules
4004 # ------------------------------------------------------------------------------
4005 mtd_probe_SOURCES = \
4006 src/udev/mtd_probe/mtd_probe.c \
4007 src/udev/mtd_probe/mtd_probe.h \
4008 src/udev/mtd_probe/probe_smartmedia.c
4010 dist_udevrules_DATA += \
4011 rules/75-probe_mtd.rules
4013 udevlibexec_PROGRAMS += \
4016 # ------------------------------------------------------------------------------
4017 test_id128_SOURCES = \
4018 src/test/test-id128.c
4020 test_id128_LDADD = \
4021 libsystemd-shared.la
4026 # ------------------------------------------------------------------------------
4029 systemd-socket-activate
4031 systemd_socket_activate_SOURCES = \
4032 src/activate/activate.c
4034 systemd_socket_activate_LDADD = \
4035 libsystemd-shared.la
4037 # ------------------------------------------------------------------------------
4038 systemd_journald_SOURCES = \
4039 src/journal/journald.c \
4040 src/journal/journald-server.h
4042 systemd_journald_LDADD = \
4043 libjournal-core.la \
4044 libsystemd-shared.la
4046 systemd_cat_SOURCES = \
4049 systemd_cat_LDADD = \
4053 rootlibexec_PROGRAMS += \
4054 systemd-journal-upload
4056 systemd_journal_upload_SOURCES = \
4057 src/journal-remote/journal-upload.h \
4058 src/journal-remote/journal-upload.c \
4059 src/journal-remote/journal-upload-journal.c
4061 systemd_journal_upload_CFLAGS = \
4065 systemd_journal_upload_LDADD = \
4066 libsystemd-shared.la \
4069 nodist_systemunit_DATA += \
4070 units/systemd-journal-upload.service
4072 nodist_pkgsysconf_DATA += \
4073 src/journal-remote/journal-upload.conf
4077 units/systemd-journal-upload.service.in \
4078 src/journal-remote/journal-upload.conf.in
4081 rootlibexec_PROGRAMS += \
4082 systemd-journal-remote
4084 systemd_journal_remote_SOURCES = \
4085 src/journal-remote/journal-remote-parse.h \
4086 src/journal-remote/journal-remote-parse.c \
4087 src/journal-remote/journal-remote-write.h \
4088 src/journal-remote/journal-remote-write.c \
4089 src/journal-remote/journal-remote.h \
4090 src/journal-remote/journal-remote.c
4092 systemd_journal_remote_LDADD = \
4095 systemd_journal_remote_SOURCES += \
4096 src/journal-remote/microhttpd-util.h \
4097 src/journal-remote/microhttpd-util.c
4099 systemd_journal_remote_CFLAGS = \
4101 $(MICROHTTPD_CFLAGS)
4103 systemd_journal_remote_LDADD += \
4107 dist_tmpfiles_DATA += \
4108 tmpfiles.d/systemd-remote.conf
4112 systemd_journal_remote_LDADD += \
4116 # systemd-journal-remote make sense mostly with full crypto stack
4117 dist_systemunit_DATA += \
4118 units/systemd-journal-remote.socket
4120 nodist_systemunit_DATA += \
4121 units/systemd-journal-remote.service
4123 journal-remote-install-hook: journal-install-hook
4124 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4125 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4126 -chmod 755 $(DESTDIR)/var/log/journal/remote
4128 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4130 nodist_pkgsysconf_DATA += \
4131 src/journal-remote/journal-remote.conf
4134 units/systemd-journal-remote.service.in \
4135 src/journal-remote/journal-remote.conf.in \
4136 src/journal-remote/log-generator.py
4139 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4140 journalctl_CFLAGS = \
4143 journalctl_SOURCES = \
4144 src/journal/journalctl.c
4146 journalctl_LDADD = \
4147 libsystemd-shared.la \
4151 journalctl_SOURCES += \
4152 src/journal/journal-qrcode.c \
4153 src/journal/journal-qrcode.h
4155 journalctl_CFLAGS += \
4158 journalctl_LDADD += \
4162 test_journal_SOURCES = \
4163 src/journal/test-journal.c
4165 test_journal_LDADD = \
4168 test_journal_send_SOURCES = \
4169 src/journal/test-journal-send.c
4171 test_journal_send_LDADD = \
4174 test_journal_syslog_SOURCES = \
4175 src/journal/test-journal-syslog.c
4177 test_journal_syslog_LDADD = \
4180 test_journal_match_SOURCES = \
4181 src/journal/test-journal-match.c
4183 test_journal_match_LDADD = \
4186 test_journal_enum_SOURCES = \
4187 src/journal/test-journal-enum.c
4189 test_journal_enum_LDADD = \
4192 test_journal_stream_SOURCES = \
4193 src/journal/test-journal-stream.c
4195 test_journal_stream_LDADD = \
4198 test_journal_flush_SOURCES = \
4199 src/journal/test-journal-flush.c
4201 test_journal_flush_LDADD = \
4204 test_journal_init_SOURCES = \
4205 src/journal/test-journal-init.c
4207 test_journal_init_LDADD = \
4210 test_journal_verify_SOURCES = \
4211 src/journal/test-journal-verify.c
4213 test_journal_verify_LDADD = \
4216 test_journal_interleaving_SOURCES = \
4217 src/journal/test-journal-interleaving.c
4219 test_journal_interleaving_LDADD = \
4222 test_mmap_cache_SOURCES = \
4223 src/journal/test-mmap-cache.c
4225 test_mmap_cache_LDADD = \
4228 test_catalog_SOURCES = \
4229 src/journal/test-catalog.c
4231 test_catalog_CPPFLAGS = \
4233 -DCATALOG_DIR=\"$(abs_top_builddir)/catalog\"
4235 test_catalog_LDADD = \
4238 test_compress_SOURCES = \
4239 src/journal/test-compress.c
4241 test_compress_LDADD = \
4242 libsystemd-shared.la
4245 test_compress_LDADD += \
4249 test_compress_benchmark_SOURCES = \
4250 src/journal/test-compress-benchmark.c
4252 test_compress_benchmark_LDADD = \
4253 libsystemd-shared.la
4255 test_audit_type_SOURCES = \
4256 src/journal/test-audit-type.c
4258 test_audit_type_LDADD = \
4261 libjournal_core_la_SOURCES = \
4262 src/journal/journald-kmsg.c \
4263 src/journal/journald-kmsg.h \
4264 src/journal/journald-syslog.c \
4265 src/journal/journald-syslog.h \
4266 src/journal/journald-stream.c \
4267 src/journal/journald-stream.h \
4268 src/journal/journald-server.c \
4269 src/journal/journald-server.h \
4270 src/journal/journald-console.c \
4271 src/journal/journald-console.h \
4272 src/journal/journald-wall.c \
4273 src/journal/journald-wall.h \
4274 src/journal/journald-native.c \
4275 src/journal/journald-native.h \
4276 src/journal/journald-audit.c \
4277 src/journal/journald-audit.h \
4278 src/journal/journald-rate-limit.c \
4279 src/journal/journald-rate-limit.h \
4280 src/journal/journal-internal.h
4282 nodist_libjournal_core_la_SOURCES = \
4283 src/journal/journald-gperf.c
4285 libjournal_core_la_LIBADD = \
4286 libsystemd-shared.la
4288 noinst_LTLIBRARIES += \
4291 journal-install-hook:
4292 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4293 -chown 0:0 $(DESTDIR)/var/log/journal
4294 -chmod 755 $(DESTDIR)/var/log/journal
4295 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4296 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4298 journal-uninstall-hook:
4299 -rmdir $(DESTDIR)/var/log/journal/remote
4300 -rmdir $(DESTDIR)/var/log/journal/
4302 INSTALL_EXEC_HOOKS += journal-install-hook
4303 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4305 # ------------------------------------------------------------------------------
4306 # Update catalog on installation. Do not bother if installing
4307 # in DESTDIR, since this is likely for packaging purposes.
4308 catalog-update-hook:
4309 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4311 INSTALL_DATA_HOOKS += \
4314 catalog-remove-hook:
4315 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4317 UNINSTALL_DATA_HOOKS += \
4324 test-journal-syslog \
4325 test-journal-match \
4326 test-journal-stream \
4328 test-journal-verify \
4329 test-journal-interleaving \
4330 test-journal-flush \
4338 test-compress-benchmark
4341 pkginclude_HEADERS += \
4342 src/systemd/sd-journal.h \
4343 src/systemd/sd-messages.h \
4344 src/systemd/_sd-common.h
4346 libsystemd_journal_internal_la_SOURCES = \
4347 src/journal/sd-journal.c \
4348 src/systemd/sd-journal.h \
4349 src/systemd/_sd-common.h \
4350 src/journal/journal-file.c \
4351 src/journal/journal-file.h \
4352 src/journal/journal-vacuum.c \
4353 src/journal/journal-vacuum.h \
4354 src/journal/journal-verify.c \
4355 src/journal/journal-verify.h \
4356 src/journal/lookup3.c \
4357 src/journal/lookup3.h \
4358 src/journal/journal-send.c \
4359 src/journal/journal-def.h \
4360 src/journal/compress.h \
4361 src/journal/catalog.c \
4362 src/journal/catalog.h \
4363 src/journal/mmap-cache.c \
4364 src/journal/mmap-cache.h \
4365 src/journal/compress.c \
4366 src/journal/audit-type.h \
4367 src/journal/audit-type.c \
4368 src/shared/gcrypt-util.h \
4369 src/shared/gcrypt-util.c
4371 nodist_libsystemd_journal_internal_la_SOURCES = \
4372 src/journal/audit_type-to-name.h
4374 gperf_txt_sources += \
4375 src/journal/audit_type-list.txt
4377 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4378 libsystemd_journal_internal_la_CFLAGS = \
4381 libsystemd_journal_internal_la_LIBADD =
4384 libsystemd_journal_internal_la_CFLAGS += \
4387 libsystemd_journal_internal_la_LIBADD += \
4392 libsystemd_journal_internal_la_LIBADD += \
4397 libsystemd_journal_internal_la_SOURCES += \
4398 src/journal/journal-authenticate.c \
4399 src/journal/journal-authenticate.h \
4400 src/journal/fsprg.c \
4403 libsystemd_journal_internal_la_LIBADD += \
4406 # fsprg.c is a drop-in file using void pointer arithmetic
4407 libsystemd_journal_internal_la_CFLAGS += \
4412 noinst_LTLIBRARIES += \
4413 libsystemd-journal-internal.la
4415 rootlibexec_PROGRAMS += \
4418 rootbin_PROGRAMS += \
4424 dist_systemunit_DATA += \
4425 units/systemd-journald.socket \
4426 units/systemd-journald-dev-log.socket \
4427 units/systemd-journald-audit.socket
4429 nodist_systemunit_DATA += \
4430 units/systemd-journald.service \
4431 units/systemd-journal-flush.service \
4432 units/systemd-journal-catalog-update.service
4434 dist_pkgsysconf_DATA += \
4435 src/journal/journald.conf
4437 nodist_catalog_DATA = \
4438 catalog/systemd.bg.catalog \
4439 catalog/systemd.be.catalog \
4440 catalog/systemd.be@latin.catalog \
4441 catalog/systemd.fr.catalog \
4442 catalog/systemd.it.catalog \
4443 catalog/systemd.pl.catalog \
4444 catalog/systemd.pt_BR.catalog \
4445 catalog/systemd.ru.catalog \
4446 catalog/systemd.zh_CN.catalog \
4447 catalog/systemd.zh_TW.catalog \
4448 catalog/systemd.catalog
4451 $(nodist_catalog_DATA:.catalog=.catalog.in)
4453 # Note that we don't use @@ for replacement markers here, but %%. This is
4454 # because the catalog uses @@ already for its runtime replacement handling and
4455 # we don't want to conflict with that.
4456 catalog/%.catalog: catalog/%.catalog.in
4457 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4458 $(SED) -e 's~%SUPPORT_URL%~$(SUPPORT_URL)~' < $< > $@
4460 SOCKETS_TARGET_WANTS += \
4461 systemd-journald.socket \
4462 systemd-journald-dev-log.socket \
4463 systemd-journald-audit.socket
4465 SYSINIT_TARGET_WANTS += \
4466 systemd-journald.service \
4467 systemd-journal-flush.service \
4468 systemd-journal-catalog-update.service
4471 units/systemd-journald.service.in \
4472 units/systemd-journal-flush.service.in \
4473 units/systemd-journal-catalog-update.service.in
4475 gperf_gperf_sources += \
4476 src/journal/journald-gperf.gperf
4478 # ------------------------------------------------------------------------------
4480 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4482 rootlibexec_PROGRAMS += \
4483 systemd-journal-gatewayd
4485 systemd_journal_gatewayd_SOURCES = \
4486 src/journal-remote/journal-gatewayd.c \
4487 src/journal-remote/microhttpd-util.h \
4488 src/journal-remote/microhttpd-util.c
4490 systemd_journal_gatewayd_LDADD = \
4491 libsystemd-shared.la \
4495 systemd_journal_gatewayd_LDADD += \
4499 systemd_journal_gatewayd_CFLAGS = \
4501 $(MICROHTTPD_CFLAGS)
4503 systemd_journal_gatewayd_CPPFLAGS = \
4505 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4507 dist_systemunit_DATA += \
4508 units/systemd-journal-gatewayd.socket
4510 nodist_systemunit_DATA += \
4511 units/systemd-journal-gatewayd.service
4513 dist_gatewayddocumentroot_DATA = \
4514 src/journal-remote/browse.html
4519 units/systemd-journal-gatewayd.service.in
4521 # ------------------------------------------------------------------------------
4523 systemd_socket_proxyd_SOURCES = \
4524 src/socket-proxy/socket-proxyd.c
4526 systemd_socket_proxyd_LDADD = \
4527 libsystemd-shared.la
4529 # ------------------------------------------------------------------------------
4531 systemd_coredump_SOURCES = \
4532 src/coredump/coredump.c \
4533 src/coredump/coredump-vacuum.c \
4534 src/coredump/coredump-vacuum.h
4536 systemd_coredump_CFLAGS = \
4540 systemd_coredump_LDADD = \
4541 libsystemd-shared.la \
4545 systemd_coredump_SOURCES += \
4546 src/coredump/stacktrace.c \
4547 src/coredump/stacktrace.h
4549 systemd_coredump_LDADD += \
4553 nodist_systemunit_DATA += \
4554 units/systemd-coredump@.service
4556 dist_systemunit_DATA += \
4557 units/systemd-coredump.socket
4559 SOCKETS_TARGET_WANTS += \
4560 systemd-coredump.socket
4562 rootlibexec_PROGRAMS += \
4565 dist_pkgsysconf_DATA += \
4566 src/coredump/coredump.conf
4568 coredumpctl_SOURCES = \
4569 src/coredump/coredumpctl.c
4571 coredumpctl_LDADD = \
4572 libsystemd-shared.la
4578 test-coredump-vacuum
4580 test_coredump_vacuum_SOURCES = \
4581 src/coredump/test-coredump-vacuum.c \
4582 src/coredump/coredump-vacuum.c \
4583 src/coredump/coredump-vacuum.h
4585 test_coredump_vacuum_LDADD = \
4586 libsystemd-shared.la
4588 dist_bashcompletion_data += \
4589 shell-completion/bash/coredumpctl
4591 dist_zshcompletion_data += \
4592 shell-completion/zsh/_coredumpctl
4594 nodist_sysctl_DATA = \
4595 sysctl.d/50-coredump.conf
4598 sysctl.d/50-coredump.conf
4602 sysctl.d/50-coredump.conf.in \
4603 units/systemd-coredump@.service.in
4605 # ------------------------------------------------------------------------------
4607 systemd_binfmt_SOURCES = \
4610 systemd_binfmt_LDADD = \
4611 libsystemd-shared.la
4613 rootlibexec_PROGRAMS += \
4616 dist_systemunit_DATA += \
4617 units/proc-sys-fs-binfmt_misc.automount \
4618 units/proc-sys-fs-binfmt_misc.mount
4620 nodist_systemunit_DATA += \
4621 units/systemd-binfmt.service
4624 $(prefix)/lib/binfmt.d \
4625 $(sysconfdir)/binfmt.d
4627 SYSINIT_TARGET_WANTS += \
4628 systemd-binfmt.service \
4629 proc-sys-fs-binfmt_misc.automount
4634 units/systemd-binfmt.service.in
4636 # ------------------------------------------------------------------------------
4638 systemd_vconsole_setup_SOURCES = \
4639 src/vconsole/vconsole-setup.c
4641 systemd_vconsole_setup_LDADD = \
4642 libsystemd-shared.la
4644 rootlibexec_PROGRAMS += \
4645 systemd-vconsole-setup
4647 nodist_udevrules_DATA += \
4648 src/vconsole/90-vconsole.rules
4650 nodist_systemunit_DATA += \
4651 units/systemd-vconsole-setup.service
4655 src/vconsole/90-vconsole.rules.in \
4656 units/systemd-vconsole-setup.service.in
4658 # ------------------------------------------------------------------------------
4659 if ENABLE_QUOTACHECK
4660 rootlibexec_PROGRAMS += \
4663 nodist_systemunit_DATA += \
4664 units/systemd-quotacheck.service
4666 systemd_quotacheck_SOURCES = \
4667 src/quotacheck/quotacheck.c
4669 systemd_quotacheck_LDADD = \
4670 libsystemd-shared.la
4674 units/systemd-quotacheck.service.in
4676 nodist_systemunit_DATA += \
4677 units/quotaon.service
4679 # ------------------------------------------------------------------------------
4680 if ENABLE_RANDOMSEED
4681 rootlibexec_PROGRAMS += \
4684 nodist_systemunit_DATA += \
4685 units/systemd-random-seed.service
4687 systemd_random_seed_SOURCES = \
4688 src/random-seed/random-seed.c
4690 systemd_random_seed_LDADD = \
4691 libsystemd-shared.la
4693 SYSINIT_TARGET_WANTS += \
4694 systemd-random-seed.service
4699 units/systemd-random-seed.service.in
4701 # ------------------------------------------------------------------------------
4703 rootlibexec_PROGRAMS += \
4706 nodist_systemunit_DATA += \
4707 units/systemd-backlight@.service
4709 systemd_backlight_SOURCES = \
4710 src/backlight/backlight.c
4712 systemd_backlight_LDADD = \
4713 libsystemd-shared.la
4717 units/systemd-backlight@.service.in
4719 # ------------------------------------------------------------------------------
4721 rootlibexec_PROGRAMS += \
4724 nodist_systemunit_DATA += \
4725 units/systemd-rfkill.service
4727 dist_systemunit_DATA += \
4728 units/systemd-rfkill.socket
4730 systemd_rfkill_SOURCES = \
4733 systemd_rfkill_LDADD = \
4734 libsystemd-shared.la
4738 units/systemd-rfkill.service.in
4740 # ------------------------------------------------------------------------------
4741 if HAVE_LIBCRYPTSETUP
4742 rootlibexec_PROGRAMS += \
4745 systemgenerator_PROGRAMS += \
4746 systemd-cryptsetup-generator
4748 dist_systemunit_DATA += \
4749 units/cryptsetup.target \
4750 units/cryptsetup-pre.target
4752 systemd_cryptsetup_SOURCES = \
4753 src/cryptsetup/cryptsetup.c
4755 systemd_cryptsetup_CFLAGS = \
4757 $(LIBCRYPTSETUP_CFLAGS)
4759 systemd_cryptsetup_LDADD = \
4760 libsystemd-shared.la \
4761 $(LIBCRYPTSETUP_LIBS)
4763 systemd_cryptsetup_generator_SOURCES = \
4764 src/cryptsetup/cryptsetup-generator.c
4766 systemd_cryptsetup_generator_LDADD = \
4767 libsystemd-shared.la
4769 SYSINIT_TARGET_WANTS += \
4774 # ------------------------------------------------------------------------------
4776 systemd_hostnamed_SOURCES = \
4777 src/hostname/hostnamed.c
4779 systemd_hostnamed_LDADD = \
4780 libsystemd-shared.la
4782 rootlibexec_PROGRAMS += \
4785 nodist_systemunit_DATA += \
4786 units/systemd-hostnamed.service
4788 dist_systemunit_DATA_busnames += \
4789 units/org.freedesktop.hostname1.busname
4791 dist_dbuspolicy_DATA += \
4792 src/hostname/org.freedesktop.hostname1.conf
4794 dist_dbussystemservice_DATA += \
4795 src/hostname/org.freedesktop.hostname1.service
4797 polkitpolicy_files += \
4798 src/hostname/org.freedesktop.hostname1.policy
4800 SYSTEM_UNIT_ALIASES += \
4801 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4803 BUSNAMES_TARGET_WANTS += \
4804 org.freedesktop.hostname1.busname
4806 hostnamectl_SOURCES = \
4807 src/hostname/hostnamectl.c
4809 hostnamectl_LDADD = \
4810 libsystemd-shared.la
4815 dist_bashcompletion_data += \
4816 shell-completion/bash/hostnamectl
4818 dist_zshcompletion_data += \
4819 shell-completion/zsh/_hostnamectl
4822 polkitpolicy_in_files += \
4823 src/hostname/org.freedesktop.hostname1.policy.in
4826 units/systemd-hostnamed.service.in
4828 # ------------------------------------------------------------------------------
4829 dist_systemunit_DATA_busnames += \
4830 units/org.freedesktop.systemd1.busname
4832 BUSNAMES_TARGET_WANTS += \
4833 org.freedesktop.systemd1.busname
4835 # ------------------------------------------------------------------------------
4837 systemd_localed_SOURCES = \
4838 src/locale/localed.c \
4839 src/locale/keymap-util.c \
4840 src/locale/keymap-util.h
4842 systemd_localed_LDADD = \
4843 libsystemd-shared.la \
4846 systemd_localed_CFLAGS = \
4850 nodist_systemunit_DATA += \
4851 units/systemd-localed.service
4853 dist_systemunit_DATA_busnames += \
4854 units/org.freedesktop.locale1.busname
4856 rootlibexec_PROGRAMS += \
4859 dist_dbuspolicy_DATA += \
4860 src/locale/org.freedesktop.locale1.conf
4862 dist_dbussystemservice_DATA += \
4863 src/locale/org.freedesktop.locale1.service
4865 polkitpolicy_files += \
4866 src/locale/org.freedesktop.locale1.policy
4868 SYSTEM_UNIT_ALIASES += \
4869 systemd-localed.service dbus-org.freedesktop.locale1.service
4871 BUSNAMES_TARGET_WANTS += \
4872 org.freedesktop.locale1.busname
4874 dist_pkgdata_DATA = \
4875 src/locale/kbd-model-map \
4876 src/locale/language-fallback-map
4878 test_keymap_util_SOURCES = \
4879 src/locale/test-keymap-util.c \
4880 src/locale/keymap-util.c \
4881 src/locale/keymap-util.h
4883 test_keymap_util_LDADD = \
4884 libsystemd-shared.la \
4890 localectl_SOURCES = \
4891 src/locale/localectl.c
4894 libsystemd-shared.la
4899 dist_bashcompletion_data += \
4900 shell-completion/bash/localectl
4902 dist_zshcompletion_data += \
4903 shell-completion/zsh/_localectl
4906 .PHONY: update-kbd-model-map
4908 polkitpolicy_in_files += \
4909 src/locale/org.freedesktop.locale1.policy.in
4912 units/systemd-localed.service.in
4914 # ------------------------------------------------------------------------------
4916 systemd_timedated_SOURCES = \
4917 src/timedate/timedated.c
4919 systemd_timedated_LDADD = \
4920 libsystemd-shared.la
4922 rootlibexec_PROGRAMS += \
4925 dist_dbussystemservice_DATA += \
4926 src/timedate/org.freedesktop.timedate1.service
4928 dist_dbuspolicy_DATA += \
4929 src/timedate/org.freedesktop.timedate1.conf
4931 nodist_systemunit_DATA += \
4932 units/systemd-timedated.service
4934 dist_systemunit_DATA_busnames += \
4935 units/org.freedesktop.timedate1.busname
4937 polkitpolicy_files += \
4938 src/timedate/org.freedesktop.timedate1.policy
4940 SYSTEM_UNIT_ALIASES += \
4941 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4943 BUSNAMES_TARGET_WANTS += \
4944 org.freedesktop.timedate1.busname
4946 timedatectl_SOURCES = \
4947 src/timedate/timedatectl.c
4949 timedatectl_LDADD = \
4950 libsystemd-shared.la
4955 dist_bashcompletion_data += \
4956 shell-completion/bash/timedatectl
4958 dist_zshcompletion_data += \
4959 shell-completion/zsh/_timedatectl
4962 polkitpolicy_in_files += \
4963 src/timedate/org.freedesktop.timedate1.policy.in
4966 units/systemd-timedated.service.in
4968 # ------------------------------------------------------------------------------
4970 systemd_timesyncd_SOURCES = \
4971 src/timesync/timesyncd.c \
4972 src/timesync/timesyncd-manager.c \
4973 src/timesync/timesyncd-manager.h \
4974 src/timesync/timesyncd-conf.c \
4975 src/timesync/timesyncd-conf.h \
4976 src/timesync/timesyncd-server.c \
4977 src/timesync/timesyncd-server.h
4979 nodist_systemd_timesyncd_SOURCES = \
4980 src/timesync/timesyncd-gperf.c
4982 systemd_timesyncd_LDADD = \
4983 libsystemd-network.la \
4984 libsystemd-shared.la \
4987 rootlibexec_PROGRAMS += \
4990 nodist_systemunit_DATA += \
4991 units/systemd-timesyncd.service
4993 GENERAL_ALIASES += \
4994 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4996 nodist_pkgsysconf_DATA += \
4997 src/timesync/timesyncd.conf
5001 gperf_gperf_sources += \
5002 src/timesync/timesyncd-gperf.gperf
5005 units/systemd-timesyncd.service.in \
5006 src/timesync/timesyncd.conf.in
5008 # ------------------------------------------------------------------------------
5009 test_nss_SOURCES = \
5013 libsystemd-internal.la \
5020 # ------------------------------------------------------------------------------
5021 libnss_systemd_la_SOURCES = \
5022 src/nss-systemd/nss-systemd.sym \
5023 src/nss-systemd/nss-systemd.c
5025 libnss_systemd_la_LDFLAGS = \
5032 -Wl,--version-script=$(top_srcdir)/src/nss-systemd/nss-systemd.sym
5034 libnss_systemd_la_LIBADD = \
5035 libsystemd-internal.la \
5038 rootlib_LTLIBRARIES += \
5041 # ------------------------------------------------------------------------------
5043 libnss_myhostname_la_SOURCES = \
5044 src/nss-myhostname/nss-myhostname.sym \
5045 src/nss-myhostname/nss-myhostname.c
5047 libnss_myhostname_la_LDFLAGS = \
5054 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5056 libnss_myhostname_la_LIBADD = \
5057 libsystemd-internal.la \
5060 rootlib_LTLIBRARIES += \
5061 libnss_myhostname.la
5064 # ------------------------------------------------------------------------------
5066 systemd_machined_SOURCES = \
5067 src/machine/machined.c \
5068 src/machine/machined.h
5070 systemd_machined_LDADD = \
5073 rootlibexec_PROGRAMS += \
5076 libmachine_core_la_SOURCES = \
5077 src/machine/machine.c \
5078 src/machine/machine.h \
5079 src/machine/machined-dbus.c \
5080 src/machine/machine-dbus.c \
5081 src/machine/machine-dbus.h \
5082 src/machine/image-dbus.c \
5083 src/machine/image-dbus.h \
5084 src/machine/operation.c \
5085 src/machine/operation.h
5087 libmachine_core_la_LIBADD = \
5088 libsystemd-shared.la
5090 noinst_LTLIBRARIES += \
5093 machinectl_SOURCES = \
5094 src/machine/machinectl.c
5096 machinectl_LDADD = \
5097 libsystemd-shared.la
5099 rootbin_PROGRAMS += \
5102 test_machine_tables_SOURCES = \
5103 src/machine/test-machine-tables.c
5105 test_machine_tables_LDADD = \
5111 nodist_systemunit_DATA += \
5112 units/systemd-machined.service
5114 dist_systemunit_DATA += \
5117 dist_systemunit_DATA_busnames += \
5118 units/org.freedesktop.machine1.busname
5120 dist_dbussystemservice_DATA += \
5121 src/machine/org.freedesktop.machine1.service
5123 dist_dbuspolicy_DATA += \
5124 src/machine/org.freedesktop.machine1.conf
5126 polkitpolicy_files += \
5127 src/machine/org.freedesktop.machine1.policy
5129 dist_bashcompletion_data += \
5130 shell-completion/bash/machinectl
5132 dist_zshcompletion_data += \
5133 shell-completion/zsh/_machinectl \
5134 shell-completion/zsh/_sd_machines
5136 SYSTEM_UNIT_ALIASES += \
5137 systemd-machined.service dbus-org.freedesktop.machine1.service
5139 BUSNAMES_TARGET_WANTS += \
5140 org.freedesktop.machine1.busname
5142 libnss_mymachines_la_SOURCES = \
5143 src/nss-mymachines/nss-mymachines.sym \
5144 src/nss-mymachines/nss-mymachines.c
5146 libnss_mymachines_la_LDFLAGS = \
5153 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5155 libnss_mymachines_la_LIBADD = \
5156 libsystemd-internal.la \
5159 rootlib_LTLIBRARIES += \
5160 libnss_mymachines.la
5164 polkitpolicy_in_files += \
5165 src/machine/org.freedesktop.machine1.policy.in
5168 units/systemd-machined.service.in
5170 # ------------------------------------------------------------------------------
5179 rootlibexec_PROGRAMS += \
5185 systemd_importd_SOURCES = \
5186 src/import/importd.c
5188 systemd_importd_CFLAGS = \
5190 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5191 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5192 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5194 systemd_importd_LDADD = \
5195 libsystemd-shared.la
5197 systemd_pull_SOURCES = \
5199 src/import/pull-raw.c \
5200 src/import/pull-raw.h \
5201 src/import/pull-tar.c \
5202 src/import/pull-tar.h \
5203 src/import/pull-job.c \
5204 src/import/pull-job.h \
5205 src/import/pull-common.c \
5206 src/import/pull-common.h \
5207 src/import/import-common.c \
5208 src/import/import-common.h \
5209 src/import/import-compress.c \
5210 src/import/import-compress.h \
5211 src/import/curl-util.c \
5212 src/import/curl-util.h \
5213 src/import/qcow2-util.c \
5214 src/import/qcow2-util.h
5216 systemd_pull_CFLAGS = \
5222 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5223 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5225 systemd_pull_LDADD = \
5226 libsystemd-shared.la \
5233 systemd_import_SOURCES = \
5234 src/import/import.c \
5235 src/import/import-raw.c \
5236 src/import/import-raw.h \
5237 src/import/import-tar.c \
5238 src/import/import-tar.h \
5239 src/import/import-common.c \
5240 src/import/import-common.h \
5241 src/import/import-compress.c \
5242 src/import/import-compress.h \
5243 src/import/qcow2-util.c \
5244 src/import/qcow2-util.h
5246 systemd_import_CFLAGS = \
5251 systemd_import_LDADD = \
5252 libsystemd-shared.la \
5257 systemd_export_SOURCES = \
5258 src/import/export.c \
5259 src/import/export-tar.c \
5260 src/import/export-tar.h \
5261 src/import/export-raw.c \
5262 src/import/export-raw.h \
5263 src/import/import-common.c \
5264 src/import/import-common.h \
5265 src/import/import-compress.c \
5266 src/import/import-compress.h
5268 systemd_export_CFLAGS = \
5273 systemd_export_LDADD = \
5274 libsystemd-shared.la \
5279 dist_rootlibexec_DATA += \
5280 src/import/import-pubring.gpg
5282 nodist_systemunit_DATA += \
5283 units/systemd-importd.service
5285 dist_systemunit_DATA_busnames += \
5286 units/org.freedesktop.import1.busname
5288 BUSNAMES_TARGET_WANTS += \
5289 org.freedesktop.import1.busname
5291 SYSTEM_UNIT_ALIASES += \
5292 systemd-importd.service dbus-org.freedesktop.import1.service
5294 dist_dbussystemservice_DATA += \
5295 src/import/org.freedesktop.import1.service
5297 dist_dbuspolicy_DATA += \
5298 src/import/org.freedesktop.import1.conf
5300 polkitpolicy_files += \
5301 src/import/org.freedesktop.import1.policy
5306 test_qcow2_SOURCES = \
5307 src/import/test-qcow2.c \
5308 src/import/qcow2-util.c \
5309 src/import/qcow2-util.h
5311 test_qcow2_CFLAGS = \
5315 test_qcow2_LDADD = \
5316 libsystemd-shared.la \
5327 polkitpolicy_in_files += \
5328 src/import/org.freedesktop.import1.policy.in
5331 units/systemd-importd.service.in
5334 # ------------------------------------------------------------------------------
5337 basic_dns_sources = \
5338 src/resolve/resolved-dns-dnssec.c \
5339 src/resolve/resolved-dns-dnssec.h \
5340 src/resolve/resolved-dns-packet.c \
5341 src/resolve/resolved-dns-packet.h \
5342 src/resolve/resolved-dns-rr.c \
5343 src/resolve/resolved-dns-rr.h \
5344 src/resolve/resolved-dns-answer.c \
5345 src/resolve/resolved-dns-answer.h \
5346 src/resolve/resolved-dns-question.c \
5347 src/resolve/resolved-dns-question.h \
5348 src/resolve/dns-type.c \
5349 src/resolve/dns-type.h
5351 systemd_resolved_SOURCES = \
5352 src/resolve/resolved.c \
5353 src/resolve/resolved-manager.c \
5354 src/resolve/resolved-manager.h \
5355 src/resolve/resolved-conf.c \
5356 src/resolve/resolved-conf.h \
5357 src/resolve/resolved-resolv-conf.c \
5358 src/resolve/resolved-resolv-conf.h \
5359 src/resolve/resolved-bus.c \
5360 src/resolve/resolved-bus.h \
5361 src/resolve/resolved-link.h \
5362 src/resolve/resolved-link.c \
5363 src/resolve/resolved-link-bus.c \
5364 src/resolve/resolved-link-bus.h \
5365 src/resolve/resolved-llmnr.h \
5366 src/resolve/resolved-llmnr.c \
5367 src/resolve/resolved-mdns.h \
5368 src/resolve/resolved-mdns.c \
5369 src/resolve/resolved-def.h \
5370 $(basic_dns_sources) \
5371 src/resolve/resolved-dns-query.h \
5372 src/resolve/resolved-dns-query.c \
5373 src/resolve/resolved-dns-synthesize.h \
5374 src/resolve/resolved-dns-synthesize.c \
5375 src/resolve/resolved-dns-transaction.h \
5376 src/resolve/resolved-dns-transaction.c \
5377 src/resolve/resolved-dns-scope.h \
5378 src/resolve/resolved-dns-scope.c \
5379 src/resolve/resolved-dns-server.h \
5380 src/resolve/resolved-dns-server.c \
5381 src/resolve/resolved-dns-search-domain.h \
5382 src/resolve/resolved-dns-search-domain.c \
5383 src/resolve/resolved-dns-cache.h \
5384 src/resolve/resolved-dns-cache.c \
5385 src/resolve/resolved-dns-zone.h \
5386 src/resolve/resolved-dns-zone.c \
5387 src/resolve/resolved-dns-stream.h \
5388 src/resolve/resolved-dns-stream.c \
5389 src/resolve/resolved-dns-trust-anchor.h \
5390 src/resolve/resolved-dns-trust-anchor.c \
5391 src/resolve/resolved-dns-stub.h \
5392 src/resolve/resolved-dns-stub.c \
5393 src/resolve/resolved-etc-hosts.h \
5394 src/resolve/resolved-etc-hosts.c \
5395 src/shared/gcrypt-util.c \
5396 src/shared/gcrypt-util.h
5398 nodist_systemd_resolved_SOURCES = \
5399 src/resolve/dns_type-from-name.h \
5400 src/resolve/dns_type-to-name.h \
5401 src/resolve/resolved-gperf.c
5403 systemd_resolved_CFLAGS = \
5407 systemd_resolved_LDADD = \
5408 libsystemd-network.la \
5409 libsystemd-shared.la \
5413 rootlibexec_PROGRAMS += \
5416 nodist_systemunit_DATA += \
5417 units/systemd-resolved.service
5419 dist_systemunit_DATA_busnames += \
5420 units/org.freedesktop.resolve1.busname
5422 dist_dbuspolicy_DATA += \
5423 src/resolve/org.freedesktop.resolve1.conf
5425 dist_dbussystemservice_DATA += \
5426 src/resolve/org.freedesktop.resolve1.service
5428 SYSTEM_UNIT_ALIASES += \
5429 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5431 BUSNAMES_TARGET_WANTS += \
5432 org.freedesktop.resolve1.busname
5434 GENERAL_ALIASES += \
5435 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5437 nodist_pkgsysconf_DATA += \
5438 src/resolve/resolved.conf
5440 libnss_resolve_la_SOURCES = \
5441 src/nss-resolve/nss-resolve.sym \
5442 src/nss-resolve/nss-resolve.c
5444 libnss_resolve_la_LDFLAGS = \
5451 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5453 libnss_resolve_la_LIBADD = \
5454 libsystemd-internal.la \
5458 rootlib_LTLIBRARIES += \
5461 systemd_resolve_SOURCES = \
5462 src/resolve/resolve-tool.c \
5463 $(basic_dns_sources) \
5464 src/shared/gcrypt-util.c \
5465 src/shared/gcrypt-util.h
5467 nodist_systemd_resolve_SOURCES = \
5468 src/resolve/dns_type-from-name.h \
5469 src/resolve/dns_type-to-name.h
5471 systemd_resolve_CFLAGS = \
5475 systemd_resolve_LDADD = \
5476 libsystemd-shared.la \
5483 dist_bashcompletion_data += \
5484 shell-completion/bash/systemd-resolve
5486 dist_zshcompletion_data += \
5487 shell-completion/zsh/_systemd-resolve
5491 test-resolve-tables \
5497 test_resolve_tables_SOURCES = \
5498 src/resolve/test-resolve-tables.c \
5499 src/resolve/dns_type-from-name.h \
5500 src/resolve/dns_type-to-name.h \
5501 $(basic_dns_sources) \
5502 src/shared/test-tables.h
5504 test_resolve_tables_CFLAGS = \
5508 test_resolve_tables_LDADD = \
5509 libsystemd-shared.la \
5513 test_dns_packet_SOURCES = \
5514 src/resolve/test-dns-packet.c \
5515 $(basic_dns_sources)
5517 test_dns_packet_CPPFLAGS = \
5519 -DRESOLVE_TEST_DIR=\"$(abs_top_srcdir)/src/resolve/test-data\"
5521 test_dns_packet_CFLAGS = \
5525 test_dns_packet_LDADD = \
5526 libsystemd-shared.la \
5531 src/resolve/test-data/_openpgpkey.fedoraproject.org.pkts \
5532 src/resolve/test-data/fedoraproject.org.pkts \
5533 src/resolve/test-data/gandi.net.pkts \
5534 src/resolve/test-data/google.com.pkts \
5535 src/resolve/test-data/root.pkts \
5536 src/resolve/test-data/sw1a1aa-sw1a2aa-sw1a2ab-sw1a2ac.find.me.uk.pkts \
5537 src/resolve/test-data/teamits.com.pkts \
5538 src/resolve/test-data/zbyszek@fedoraproject.org.pkts \
5539 src/resolve/test-data/_443._tcp.fedoraproject.org.pkts \
5540 src/resolve/test-data/kyhwana.org.pkts \
5541 src/resolve/test-data/fake-caa.pkts
5543 test_dnssec_SOURCES = \
5544 src/resolve/test-dnssec.c \
5545 $(basic_dns_sources)
5547 test_dnssec_CFLAGS = \
5551 test_dnssec_LDADD = \
5552 libsystemd-shared.la \
5556 test_dnssec_complex_SOURCES = \
5557 src/resolve/test-dnssec-complex.c \
5558 src/resolve/dns-type.c \
5559 src/resolve/dns-type.h
5561 test_dnssec_complex_LDADD = \
5562 libsystemd-shared.la
5566 gperf_txt_sources += \
5567 src/resolve/dns_type-list.txt
5569 gperf_gperf_sources += \
5570 src/resolve/resolved-gperf.gperf
5573 units/systemd-resolved.service.m4.in \
5574 src/resolve/resolved.conf.in
5576 dist_rootlibexec_DATA += \
5577 src/resolve/resolv.conf
5579 # ------------------------------------------------------------------------------
5581 rootlibexec_PROGRAMS += \
5584 systemd_networkd_SOURCES = \
5585 src/network/networkd.c
5587 systemd_networkd_LDADD = \
5591 systemd_networkd_LDADD += \
5595 noinst_LTLIBRARIES += \
5598 libnetworkd_core_la_CFLAGS = \
5601 libnetworkd_core_la_SOURCES = \
5602 src/libsystemd-network/network-internal.h \
5603 src/network/networkd.h \
5604 src/network/networkd-conf.h \
5605 src/network/networkd-conf.c \
5606 src/network/networkd-link.h \
5607 src/network/networkd-link.c \
5608 src/network/networkd-netdev.h \
5609 src/network/networkd-netdev.c \
5610 src/network/networkd-netdev-vrf.h \
5611 src/network/networkd-netdev-vrf.c \
5612 src/network/networkd-netdev-tunnel.h \
5613 src/network/networkd-netdev-tunnel.c \
5614 src/network/networkd-netdev-veth.h \
5615 src/network/networkd-netdev-veth.c \
5616 src/network/networkd-netdev-vxlan.h \
5617 src/network/networkd-netdev-vxlan.c \
5618 src/network/networkd-netdev-vlan.h \
5619 src/network/networkd-netdev-vlan.c \
5620 src/network/networkd-netdev-macvlan.h \
5621 src/network/networkd-netdev-macvlan.c \
5622 src/network/networkd-netdev-ipvlan.h \
5623 src/network/networkd-netdev-ipvlan.c \
5624 src/network/networkd-netdev-dummy.h \
5625 src/network/networkd-netdev-dummy.c \
5626 src/network/networkd-netdev-tuntap.h \
5627 src/network/networkd-netdev-tuntap.c \
5628 src/network/networkd-netdev-bond.h \
5629 src/network/networkd-netdev-bond.c \
5630 src/network/networkd-netdev-bridge.h \
5631 src/network/networkd-netdev-bridge.c \
5632 src/network/networkd-netdev-vcan.h \
5633 src/network/networkd-netdev-vcan.c \
5634 src/network/networkd-link-bus.c \
5635 src/network/networkd-ipv4ll.c \
5636 src/network/networkd-dhcp4.c \
5637 src/network/networkd-dhcp6.c \
5638 src/network/networkd-ndisc.h \
5639 src/network/networkd-ndisc.c \
5640 src/network/networkd-network.h \
5641 src/network/networkd-network.c \
5642 src/network/networkd-network-bus.c \
5643 src/network/networkd-address.h \
5644 src/network/networkd-address.c \
5645 src/network/networkd-route.h \
5646 src/network/networkd-route.c \
5647 src/network/networkd-manager.c \
5648 src/network/networkd-manager-bus.c \
5649 src/network/networkd-fdb.h \
5650 src/network/networkd-fdb.c \
5651 src/network/networkd-brvlan.h \
5652 src/network/networkd-brvlan.c \
5653 src/network/networkd-address-pool.h \
5654 src/network/networkd-address-pool.c \
5655 src/network/networkd-util.h \
5656 src/network/networkd-util.c \
5657 src/network/networkd-lldp-tx.h \
5658 src/network/networkd-lldp-tx.c
5660 nodist_libnetworkd_core_la_SOURCES = \
5661 src/network/networkd-gperf.c \
5662 src/network/networkd-network-gperf.c \
5663 src/network/networkd-netdev-gperf.c
5665 libnetworkd_core_la_LIBADD = \
5666 libsystemd-network.la \
5667 libsystemd-shared.la
5669 rootlibexec_PROGRAMS += \
5670 systemd-networkd-wait-online
5672 systemd_networkd_wait_online_CFLAGS = \
5675 systemd_networkd_wait_online_SOURCES = \
5676 src/libsystemd-network/network-internal.h \
5677 src/network/networkd-wait-online.h \
5678 src/network/networkd-wait-online-link.h \
5679 src/network/networkd-wait-online.c \
5680 src/network/networkd-wait-online-manager.c \
5681 src/network/networkd-wait-online-link.c
5683 systemd_networkd_wait_online_LDADD = \
5684 libsystemd-network.la \
5685 libsystemd-shared.la
5687 rootbin_PROGRAMS += \
5690 networkctl_SOURCES = \
5691 src/network/networkctl.c
5693 networkctl_LDADD = \
5694 libsystemd-shared.la \
5695 libsystemd-network.la
5697 dist_bashcompletion_data += \
5698 shell-completion/bash/networkctl
5700 test_networkd_conf_SOURCES = \
5701 src/network/test-networkd-conf.c
5703 test_networkd_conf_LDADD = \
5706 test_network_SOURCES = \
5707 src/network/test-network.c
5709 test_network_LDADD = \
5713 test_network_LDADD += \
5717 test_network_tables_SOURCES = \
5718 src/network/test-network-tables.c \
5719 src/shared/test-tables.h
5721 test_network_tables_LDADD = \
5722 libnetworkd-core.la \
5726 test_network_tables_LDADD += \
5731 test-networkd-conf \
5735 dist_systemunit_DATA += \
5736 units/systemd-networkd.socket
5738 nodist_systemunit_DATA += \
5739 units/systemd-networkd.service \
5740 units/systemd-networkd-wait-online.service
5742 dist_systemunit_DATA_busnames += \
5743 units/org.freedesktop.network1.busname
5745 dist_dbussystemservice_DATA += \
5746 src/network/org.freedesktop.network1.service
5748 dist_dbuspolicy_DATA += \
5749 src/network/org.freedesktop.network1.conf
5751 GENERAL_ALIASES += \
5752 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5753 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5754 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5756 SYSTEM_UNIT_ALIASES += \
5757 systemd-networkd.service dbus-org.freedesktop.network1.service
5759 BUSNAMES_TARGET_WANTS += \
5760 org.freedesktop.network1.busname
5764 gperf_gperf_sources += \
5765 src/network/networkd-gperf.gperf \
5766 src/network/networkd-network-gperf.gperf \
5767 src/network/networkd-netdev-gperf.gperf
5770 units/systemd-networkd.service.m4.in \
5771 units/systemd-networkd-wait-online.service.in \
5772 test/networkd-test.py
5774 # ------------------------------------------------------------------------------
5776 systemd_logind_SOURCES = \
5777 src/login/logind.c \
5780 nodist_systemd_logind_SOURCES = \
5781 src/login/logind-gperf.c
5783 systemd_logind_LDADD = \
5786 liblogind_core_la_SOURCES = \
5787 src/login/logind-core.c \
5788 src/login/logind-device.c \
5789 src/login/logind-device.h \
5790 src/login/logind-button.c \
5791 src/login/logind-button.h \
5792 src/login/logind-action.c \
5793 src/login/logind-action.h \
5794 src/login/logind-seat.c \
5795 src/login/logind-seat.h \
5796 src/login/logind-session.c \
5797 src/login/logind-session.h \
5798 src/login/logind-session-device.c \
5799 src/login/logind-session-device.h \
5800 src/login/logind-user.c \
5801 src/login/logind-user.h \
5802 src/login/logind-inhibit.c \
5803 src/login/logind-inhibit.h \
5804 src/login/logind-dbus.c \
5805 src/login/logind-session-dbus.c \
5806 src/login/logind-seat-dbus.c \
5807 src/login/logind-user-dbus.c \
5808 src/login/logind-utmp.c \
5809 src/login/logind-acl.h
5811 liblogind_core_la_LIBADD = \
5812 libsystemd-shared.la
5815 liblogind_core_la_SOURCES += \
5816 src/login/logind-acl.c
5819 noinst_LTLIBRARIES += \
5822 rootlibexec_PROGRAMS += \
5825 loginctl_SOURCES = \
5826 src/login/loginctl.c \
5827 src/login/sysfs-show.h \
5828 src/login/sysfs-show.c
5831 libsystemd-shared.la
5833 rootbin_PROGRAMS += \
5836 dist_bashcompletion_data += \
5837 shell-completion/bash/loginctl
5839 dist_zshcompletion_data += \
5840 shell-completion/zsh/_loginctl \
5841 shell-completion/zsh/_systemd-inhibit
5843 systemd_inhibit_SOURCES = \
5846 systemd_inhibit_LDADD = \
5847 libsystemd-shared.la
5849 rootbin_PROGRAMS += \
5852 test_login_SOURCES = \
5853 src/libsystemd/sd-login/test-login.c
5855 test_login_LDADD = \
5856 libsystemd-shared.la
5858 test_login_shared_SOURCES = \
5859 src/login/test-login-shared.c
5861 test_login_shared_LDADD = \
5862 libsystemd-shared.la
5864 test_inhibit_SOURCES = \
5865 src/login/test-inhibit.c
5867 test_inhibit_LDADD = \
5868 libsystemd-shared.la
5870 test_login_tables_SOURCES = \
5871 src/login/test-login-tables.c
5873 test_login_tables_LDADD = \
5885 pam_systemd_la_SOURCES = \
5886 src/login/pam_systemd.sym \
5887 src/login/pam_systemd.c
5889 pam_systemd_la_CFLAGS = \
5893 pam_systemd_la_LDFLAGS = \
5899 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5901 pam_systemd_la_LIBADD = \
5905 pamlib_LTLIBRARIES = \
5908 if ENABLE_PAM_CONFIG
5909 dist_pamconf_DATA = \
5910 src/login/systemd-user
5914 src/login/systemd-user.m4
5917 nodist_systemunit_DATA += \
5918 units/systemd-logind.service
5920 dist_systemunit_DATA += \
5923 dist_systemunit_DATA_busnames += \
5924 units/org.freedesktop.login1.busname
5926 dist_dbussystemservice_DATA += \
5927 src/login/org.freedesktop.login1.service
5929 dist_dbuspolicy_DATA += \
5930 src/login/org.freedesktop.login1.conf
5932 nodist_pkgsysconf_DATA += \
5933 src/login/logind.conf
5935 polkitpolicy_files += \
5936 src/login/org.freedesktop.login1.policy
5941 MULTI_USER_TARGET_WANTS += \
5942 systemd-logind.service
5944 SYSTEM_UNIT_ALIASES += \
5945 systemd-logind.service dbus-org.freedesktop.login1.service
5947 BUSNAMES_TARGET_WANTS += \
5948 org.freedesktop.login1.busname
5950 dist_udevrules_DATA += \
5951 src/login/70-uaccess.rules \
5952 src/login/70-power-switch.rules
5954 nodist_udevrules_DATA += \
5955 src/login/71-seat.rules \
5956 src/login/73-seat-late.rules
5960 polkitpolicy_in_files += \
5961 src/login/org.freedesktop.login1.policy.in
5963 gperf_gperf_sources += \
5964 src/login/logind-gperf.gperf
5967 src/login/71-seat.rules.in \
5968 src/login/73-seat-late.rules.in \
5969 units/systemd-logind.service.in \
5970 src/login/logind.conf.in
5972 # ------------------------------------------------------------------------------
5975 systemd_user_sessions_SOURCES = \
5976 src/user-sessions/user-sessions.c
5978 systemd_user_sessions_LDADD = \
5979 libsystemd-shared.la
5981 rootlibexec_PROGRAMS += \
5982 systemd-user-sessions
5984 nodist_systemunit_DATA += \
5985 units/systemd-user-sessions.service
5987 MULTI_USER_TARGET_WANTS += \
5988 systemd-user-sessions.service
5993 units/systemd-user-sessions.service.in
5995 # ------------------------------------------------------------------------------
5998 test/README.testsuite \
5999 test/TEST-01-BASIC \
6000 test/TEST-01-BASIC/Makefile \
6001 test/TEST-01-BASIC/test.sh \
6002 test/TEST-02-CRYPTSETUP \
6003 test/TEST-02-CRYPTSETUP/Makefile \
6004 test/TEST-02-CRYPTSETUP/test.sh \
6006 test/TEST-03-JOBS/Makefile \
6007 test/TEST-03-JOBS/test-jobs.sh \
6008 test/TEST-03-JOBS/test.sh \
6009 test/TEST-04-JOURNAL/Makefile \
6010 test/TEST-04-JOURNAL/test-journal.sh \
6011 test/TEST-04-JOURNAL/test.sh \
6012 test/TEST-05-RLIMITS/Makefile \
6013 test/TEST-05-RLIMITS/test-rlimits.sh \
6014 test/TEST-05-RLIMITS/test.sh \
6015 test/TEST-06-SELINUX/Makefile \
6016 test/TEST-06-SELINUX/test-selinux-checks.sh \
6017 test/TEST-06-SELINUX/test.sh \
6018 test/TEST-06-SELINUX/systemd_test.te \
6019 test/TEST-06-SELINUX/systemd_test.if \
6020 test/TEST-07-ISSUE-1981/Makefile \
6021 test/TEST-07-ISSUE-1981/test-segfault.sh \
6022 test/TEST-07-ISSUE-1981/test.sh \
6023 test/TEST-08-ISSUE-2730/Makefile \
6024 test/TEST-08-ISSUE-2730/test.sh \
6025 test/TEST-09-ISSUE-2691/Makefile \
6026 test/TEST-09-ISSUE-2691/test.sh \
6027 test/TEST-10-ISSUE-2467/Makefile \
6028 test/TEST-10-ISSUE-2467/test.sh \
6029 test/TEST-11-ISSUE-3166/Makefile \
6030 test/TEST-11-ISSUE-3166/test.sh \
6031 test/TEST-12-ISSUE-3171/Makefile \
6032 test/TEST-12-ISSUE-3171/test.sh \
6036 test/loopy2.service \
6037 test/loopy3.service \
6038 test/loopy4.service \
6039 test/loopy.service \
6040 test/loopy.service.d \
6041 test/loopy.service.d/compat.conf
6043 # ------------------------------------------------------------------------------
6045 '|rootlibexecdir=$(rootlibexecdir)|' \
6046 '|rootbindir=$(rootbindir)|' \
6047 '|bindir=$(bindir)|' \
6048 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6049 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6050 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6051 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6052 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6053 '|pkgdatadir=$(pkgdatadir)|' \
6054 '|systemunitdir=$(systemunitdir)|' \
6055 '|userunitdir=$(userunitdir)|' \
6056 '|systempresetdir=$(systempresetdir)|' \
6057 '|userpresetdir=$(userpresetdir)|' \
6058 '|udevhwdbdir=$(udevhwdbdir)|' \
6059 '|udevrulesdir=$(udevrulesdir)|' \
6060 '|catalogdir=$(catalogdir)|' \
6061 '|tmpfilesdir=$(tmpfilesdir)|' \
6062 '|sysusersdir=$(sysusersdir)|' \
6063 '|sysctldir=$(sysctldir)|' \
6064 '|systemgeneratordir=$(systemgeneratordir)|' \
6065 '|usergeneratordir=$(usergeneratordir)|' \
6066 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6067 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6068 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6069 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6070 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6071 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6072 '|prefix=$(prefix)|' \
6073 '|exec_prefix=$(exec_prefix)|' \
6074 '|libdir=$(libdir)|' \
6075 '|includedir=$(includedir)|' \
6076 '|VERSION=$(VERSION)|' \
6077 '|rootprefix=$(rootprefix)|' \
6078 '|udevlibexecdir=$(udevlibexecdir)|' \
6079 '|SUSHELL=$(SUSHELL)|' \
6080 '|SULOGIN=$(SULOGIN)|' \
6081 '|DEBUGTTY=$(DEBUGTTY)|' \
6084 '|MOUNT_PATH=$(MOUNT_PATH)|' \
6085 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
6086 '|MKDIR_P=$(MKDIR_P)|' \
6087 '|QUOTAON=$(QUOTAON)|' \
6088 '|QUOTACHECK=$(QUOTACHECK)|' \
6089 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6090 '|VARLOGDIR=$(varlogdir)|' \
6091 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6092 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6093 '|PYTHON=$(PYTHON)|' \
6094 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6095 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6096 '|DEFAULT_DNSSEC_MODE=$(DEFAULT_DNSSEC_MODE)|' \
6097 '|KILL_USER_PROCESSES=$(KILL_USER_PROCESSES)|' \
6098 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6099 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6100 '|TTY_GID=$(TTY_GID)|' \
6101 '|systemsleepdir=$(systemsleepdir)|' \
6102 '|systemshutdowndir=$(systemshutdowndir)|' \
6103 '|binfmtdir=$(binfmtdir)|' \
6104 '|modulesloaddir=$(modulesloaddir)|'
6107 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6108 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6117 sysctl.d/%: sysctl.d/%.in
6126 src/core/%.systemd: src/core/%.systemd.in
6129 src/%.policy.in: src/%.policy.in.in
6132 shell-completion/%: shell-completion/%.in
6143 $(AM_V_GEN)chmod +x $@
6145 src/%.c: src/%.gperf
6146 $(AM_V_at)$(MKDIR_P) $(dir $@)
6147 $(AM_V_GPERF)$(GPERF) < $< > $@
6149 src/%: src/%.m4 $(top_builddir)/config.status
6150 $(AM_V_at)$(MKDIR_P) $(dir $@)
6151 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6153 sysusers.d/%: sysusers.d/%.m4 $(top_builddir)/config.status
6154 $(AM_V_at)$(MKDIR_P) $(dir $@)
6155 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6157 tmpfiles.d/%: tmpfiles.d/%.m4 $(top_builddir)/config.status
6158 $(AM_V_at)$(MKDIR_P) $(dir $@)
6159 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6162 units/%: units/%.m4 $(top_builddir)/config.status
6163 $(AM_V_at)$(MKDIR_P) $(dir $@)
6164 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6166 units/user/%: units/user/%.m4 $(top_builddir)/config.status
6167 $(AM_V_at)$(MKDIR_P) $(dir $@)
6168 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6171 nodist_polkitpolicy_DATA = \
6172 $(polkitpolicy_files) \
6173 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6177 $(polkitpolicy_in_files) \
6178 $(polkitpolicy_in_in_files)
6180 # ------------------------------------------------------------------------------
6181 man/custom-entities.ent: configure.ac
6182 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6183 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6184 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6188 man/custom-entities.ent
6193 --stringparam man.output.quietly 1 \
6194 --stringparam funcsynopsis.style ansi \
6195 --stringparam man.authors.section.enabled 0 \
6196 --stringparam man.copyright.section.enabled 0 \
6197 --stringparam systemd.version $(VERSION) \
6198 --path '$(builddir)/man:$(srcdir)/man'
6200 XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
6201 XSLTPROC_PROCESS_MAN = \
6202 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6204 XSLTPROC_PROCESS_HTML = \
6205 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6207 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6208 $(XSLTPROC_PROCESS_MAN)
6210 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6211 $(XSLTPROC_PROCESS_MAN)
6213 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6214 $(XSLTPROC_PROCESS_MAN)
6216 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6217 $(XSLTPROC_PROCESS_MAN)
6219 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6220 $(XSLTPROC_PROCESS_MAN)
6222 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6223 $(XSLTPROC_PROCESS_HTML)
6226 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6230 man/custom-html.xsl \
6233 # ------------------------------------------------------------------------------
6236 docs/sysvinit/README
6241 docs/sysvinit/README: docs/sysvinit/README.in
6244 docs/var-log/README: docs/var-log/README.in
6248 docs/sysvinit/README \
6253 docs/sysvinit/README.in \
6254 docs/var-log/README.in
6256 SOCKETS_TARGET_WANTS += \
6257 systemd-initctl.socket
6261 MULTI_USER_TARGET_WANTS += \
6262 systemd-update-utmp-runlevel.service
6263 GRAPHICAL_TARGET_WANTS += \
6264 systemd-update-utmp-runlevel.service
6265 RESCUE_TARGET_WANTS += \
6266 systemd-update-utmp-runlevel.service
6269 SYSINIT_TARGET_WANTS += \
6270 systemd-update-utmp.service
6273 SYSINIT_TARGET_WANTS += \
6274 systemd-update-done.service
6276 LOCAL_FS_TARGET_WANTS += \
6277 systemd-remount-fs.service \
6279 var-lib-machines.mount
6281 MULTI_USER_TARGET_WANTS += \
6283 systemd-ask-password-wall.path
6285 SYSINIT_TARGET_WANTS += \
6286 dev-hugepages.mount \
6288 sys-kernel-config.mount \
6289 sys-kernel-debug.mount \
6290 sys-fs-fuse-connections.mount \
6291 systemd-sysctl.service \
6292 systemd-ask-password-console.path
6295 SYSTEM_UNIT_ALIASES += \
6296 poweroff.target runlevel0.target \
6297 rescue.target runlevel1.target \
6298 multi-user.target runlevel2.target \
6299 multi-user.target runlevel3.target \
6300 multi-user.target runlevel4.target \
6301 graphical.target runlevel5.target \
6302 reboot.target runlevel6.target
6305 SYSTEM_UNIT_ALIASES += \
6306 graphical.target default.target \
6307 reboot.target ctrl-alt-del.target \
6308 getty@.service autovt@.service
6310 GENERAL_ALIASES += \
6311 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6312 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6313 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6314 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6318 $(systemunitdir)/runlevel1.target.wants \
6319 $(systemunitdir)/runlevel2.target.wants \
6320 $(systemunitdir)/runlevel3.target.wants \
6321 $(systemunitdir)/runlevel4.target.wants \
6322 $(systemunitdir)/runlevel5.target.wants
6326 $(prefix)/lib/modules-load.d \
6327 $(sysconfdir)/modules-load.d \
6328 $(prefix)/lib/systemd/network \
6329 $(sysconfdir)/systemd/network \
6330 $(prefix)/lib/sysctl.d \
6331 $(sysconfdir)/sysctl.d \
6332 $(prefix)/lib/kernel/install.d \
6333 $(sysconfdir)/kernel/install.d \
6334 $(systemshutdowndir) \
6336 $(systemgeneratordir) \
6337 $(usergeneratordir) \
6340 $(pkgsysconfdir)/system \
6341 $(pkgsysconfdir)/system/multi-user.target.wants \
6342 $(pkgsysconfdir)/system/getty.target.wants \
6343 $(pkgsysconfdir)/user \
6344 $(dbussessionservicedir) \
6345 $(sysconfdir)/xdg/systemd
6347 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6349 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6351 install-data-hook: $(INSTALL_DATA_HOOKS)
6353 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6355 clean-local: $(CLEAN_LOCAL_HOOKS)
6356 rm -rf $(abs_srcdir)/install-tree
6357 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6358 $(abs_srcdir)/hwdb/iab.txt
6360 DISTCHECK_CONFIGURE_FLAGS = \
6361 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6362 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6363 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6364 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6365 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6366 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6367 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6368 --with-rootprefix=$$dc_install_base \
6369 --enable-compat-libs
6372 DISTCHECK_CONFIGURE_FLAGS += \
6373 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6374 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6376 DISTCHECK_CONFIGURE_FLAGS += \
6377 --with-sysvinit-path= \
6378 --with-sysvrcnd-path=
6382 DISTCHECK_CONFIGURE_FLAGS += \
6385 DISTCHECK_CONFIGURE_FLAGS += \
6389 .PHONY: dist-check-help
6390 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6391 for i in $(abspath $^); do \
6392 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6393 echo "$(basename $$i) --help output is too wide:"; \
6394 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6398 include_compilers = "$(CC)" "$(CC) -ansi" "$(CC) -std=iso9899:1990"
6399 public_headers = $(filter-out src/systemd/_sd-common.h, $(pkginclude_HEADERS) $(include_HEADERS))
6400 .PHONY: dist-check-includes
6401 dist-check-includes: $(public_headers)
6403 for i in $(abspath $^); do \
6404 for cc in $(include_compilers); do \
6405 echo "$$cc -o/dev/null -c -x c -include "$$i" - </dev/null"; \
6406 $$cc -o/dev/null -c -x c -include "$$i" - </dev/null || res=1; \
6412 ( cd $(top_srcdir)/hwdb && \
6413 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6414 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6415 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6416 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6417 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6418 wget -O pnp_id_registry.html 'http://www.uefi.org/uefi-pnp-export' && \
6419 wget -O acpi_id_registry.html 'http://www.uefi.org/uefi-acpi-export' && \
6420 ./ids-update.pl && \
6421 ./acpi-update.py > 20-acpi-vendor.hwdb.base && \
6422 patch -p0 -o- 20-acpi-vendor.hwdb.base < 20-acpi-vendor.hwdb.patch > 20-acpi-vendor.hwdb )
6424 .PHONY: built-sources
6425 built-sources: $(BUILT_SOURCES)
6429 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6433 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6435 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6439 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6441 .PHONY: install-tree
6443 rm -rf $(abs_srcdir)/install-tree
6444 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6445 tree $(abs_srcdir)/install-tree
6447 # Let's run all tests of the test suite, but under valgrind. Let's
6448 # exclude perl/python/shell scripts we have in there
6449 .PHONY: valgrind-tests
6450 valgrind-tests: $(TESTS)
6451 $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \
6452 if $(LIBTOOL) --mode=execute file $$f | grep -q shell; then \
6453 echo -e "$${x}Skipping non-binary $$f"; else \
6454 echo -e "$${x}Running $$f"; \
6455 $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6460 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6462 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6463 $(AM_V_GEN)sort -u $^ > $@
6465 .PHONY: check-api-docs
6466 check-api-docs: exported man
6467 $(AM_V_GEN)for symbol in `cat exported` ; do \
6468 if test -f $(builddir)/man/$$symbol.html ; then \
6469 echo " Symbol $$symbol() is documented." ; \
6471 echo "‣ Symbol $$symbol() lacks documentation." ; \
6475 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6476 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6478 undefined defined: $(ALL_OBJECTS)
6479 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6480 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6481 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6487 .PHONY: check-api-unused
6488 check-api-unused: defined undefined exported
6489 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6491 .PHONY: check-includes
6492 check-includes: $(top_srcdir)/tools/check-includes.pl
6493 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6494 | xargs $(top_srcdir)/tools/check-includes.pl
6497 $(top_srcdir)/tools/check-includes.pl
6499 # Stupid test that everything purported to be exported really is
6500 define generate-sym-test
6501 $(AM_V_at)$(MKDIR_P) $(dir $@)
6502 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6503 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6504 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6505 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6506 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6507 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6508 $(AM_V_at)printf 'return 0; }\n' >> $@
6511 test-libsystemd-sym.c: \
6512 $(top_builddir)/src/libsystemd/libsystemd.sym \
6513 src/systemd/sd-journal.h \
6514 src/systemd/sd-daemon.h \
6515 src/systemd/sd-login.h \
6516 src/systemd/sd-bus.h \
6517 src/systemd/sd-utf8.h \
6518 src/systemd/sd-resolve.h \
6519 src/systemd/sd-path.h \
6520 src/systemd/sd-event.h
6521 $(generate-sym-test)
6523 test-libudev-sym.c: \
6524 src/libudev/libudev.sym \
6526 $(generate-sym-test)
6528 nodist_test_libsystemd_sym_SOURCES = \
6529 test-libsystemd-sym.c
6530 test_libsystemd_sym_LDADD = \
6533 nodist_test_libudev_sym_SOURCES = \
6535 test_libudev_sym_CFLAGS = \
6537 -Wno-deprecated-declarations
6538 test_libudev_sym_LDADD = \
6542 test-libsystemd-sym.c \
6546 test-libsystemd-sym.c \
6550 test-libsystemd-sym \
6555 cppcheck --enable=all -q $(top_srcdir)
6557 # Used to extract compile flags for YCM.
6562 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | sed 's/ / /g' | awk '{ print $$0 "," }' | sort -u
6565 tools/gdb-sd_dump_hashmaps.py
6568 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6571 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -