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 =
161 in_files = $(filter %.in,$(EXTRA_DIST))
162 in_in_files = $(filter %.in.in, $(in_files))
163 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
165 CLEANFILES = $(BUILT_SOURCES) \
166 $(pkgconfigdata_DATA) \
167 $(pkgconfiglib_DATA) \
168 $(nodist_bashcompletion_data) \
169 $(nodist_zshcompletion_data) \
170 $(in_files:.in=) $(in_in_files:.in.in=) \
173 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
174 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
175 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
178 -include $(top_builddir)/config.h \
179 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
180 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
181 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
182 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
183 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
184 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
185 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
186 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
187 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
188 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
189 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
190 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
191 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
192 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
193 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
194 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
195 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
196 -DROOTPREFIX=\"$(rootprefix)\" \
197 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
198 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
199 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
200 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
201 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
202 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
203 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
204 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
205 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
206 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
207 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
208 -DQUOTACHECK=\"$(QUOTACHECK)\" \
209 -DKEXEC=\"$(KEXEC)\" \
210 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
211 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
212 -DLIBDIR=\"$(libdir)\" \
213 -DROOTLIBDIR=\"$(rootlibdir)\" \
214 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
215 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
216 -I $(top_srcdir)/src \
217 -I $(top_builddir)/src/basic \
218 -I $(top_srcdir)/src/basic \
219 -I $(top_srcdir)/src/shared \
220 -I $(top_builddir)/src/shared \
221 -I $(top_srcdir)/src/network \
222 -I $(top_srcdir)/src/locale \
223 -I $(top_srcdir)/src/login \
224 -I $(top_srcdir)/src/journal \
225 -I $(top_builddir)/src/journal \
226 -I $(top_srcdir)/src/timedate \
227 -I $(top_srcdir)/src/timesync \
228 -I $(top_srcdir)/src/nspawn \
229 -I $(top_srcdir)/src/resolve \
230 -I $(top_builddir)/src/resolve \
231 -I $(top_srcdir)/src/systemd \
232 -I $(top_builddir)/src/core \
233 -I $(top_srcdir)/src/core \
234 -I $(top_srcdir)/src/libudev \
235 -I $(top_srcdir)/src/udev \
236 -I $(top_srcdir)/src/udev/net \
237 -I $(top_builddir)/src/udev \
238 -I $(top_srcdir)/src/libsystemd/sd-bus \
239 -I $(top_srcdir)/src/libsystemd/sd-event \
240 -I $(top_srcdir)/src/libsystemd/sd-login \
241 -I $(top_srcdir)/src/libsystemd/sd-netlink \
242 -I $(top_srcdir)/src/libsystemd/sd-network \
243 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
244 -I $(top_srcdir)/src/libsystemd/sd-device \
245 -I $(top_srcdir)/src/libsystemd/sd-id128 \
246 -I $(top_srcdir)/src/libsystemd-network \
249 AM_CFLAGS = $(OUR_CFLAGS)
250 AM_LDFLAGS = $(OUR_LDFLAGS)
252 # ------------------------------------------------------------------------------
253 define move-to-rootlibdir
254 if test "$(libdir)" != "$(rootlibdir)"; then \
255 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
256 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
257 rm -f $(DESTDIR)$(libdir)/$$libname && \
258 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
259 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
265 SHUTDOWN_TARGET_WANTS =
266 LOCAL_FS_TARGET_WANTS =
267 MULTI_USER_TARGET_WANTS =
268 GRAPHICAL_TARGET_WANTS =
269 RESCUE_TARGET_WANTS =
270 SYSINIT_TARGET_WANTS =
271 SOCKETS_TARGET_WANTS =
272 BUSNAMES_TARGET_WANTS =
273 TIMERS_TARGET_WANTS =
274 USER_SOCKETS_TARGET_WANTS =
275 USER_DEFAULT_TARGET_WANTS =
276 USER_BUSNAMES_TARGET_WANTS =
278 SYSTEM_UNIT_ALIASES =
282 install-target-wants-hook:
283 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
284 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
285 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
286 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
287 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
288 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
289 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
290 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
291 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
292 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
293 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
295 install-busnames-target-wants-hook:
296 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
297 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
300 [ -z "$$what" ] || ( \
301 dir=$(DESTDIR)$$dir/$$wants.wants && \
302 $(MKDIR_P) -m 0755 $$dir && \
305 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
308 install-directories-hook:
309 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
311 install-aliases-hook:
312 set -- $(SYSTEM_UNIT_ALIASES) && \
313 dir=$(systemunitdir) && $(install-aliases)
314 set -- $(USER_UNIT_ALIASES) && \
315 dir=$(userunitdir) && $(install-relative-aliases)
316 set -- $(GENERAL_ALIASES) && \
317 dir= && $(install-relative-aliases)
319 define install-aliases
320 while [ -n "$$1" ]; do \
321 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
322 rm -f $(DESTDIR)$$dir/$$2 && \
323 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
324 shift 2 || exit $$?; \
328 define install-relative-aliases
329 while [ -n "$$1" ]; do \
330 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
331 rm -f $(DESTDIR)$$dir/$$2 && \
332 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
333 shift 2 || exit $$?; \
337 install-touch-usr-hook:
338 touch -c $(DESTDIR)/$(prefix)
340 INSTALL_EXEC_HOOKS += \
341 install-target-wants-hook \
342 install-directories-hook \
343 install-aliases-hook \
344 install-touch-usr-hook
346 INSTALL_EXEC_HOOKS += \
347 install-busnames-target-wants-hook
349 # ------------------------------------------------------------------------------
350 AM_V_M4 = $(AM_V_M4_$(V))
351 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
352 AM_V_M4_0 = @echo " M4 " $@;
354 AM_V_XSLT = $(AM_V_XSLT_$(V))
355 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
356 AM_V_XSLT_0 = @echo " XSLT " $@;
358 AM_V_GPERF = $(AM_V_GPERF_$(V))
359 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
360 AM_V_GPERF_0 = @echo " GPERF " $@;
362 AM_V_LN = $(AM_V_LN_$(V))
363 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
364 AM_V_LN_0 = @echo " LN " $@;
366 AM_V_RM = $(AM_V_RM_$(V))
367 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
368 AM_V_RM_0 = @echo " RM " $@;
370 # ------------------------------------------------------------------------------
374 systemd-ask-password \
375 systemd-tty-ask-password-agent \
376 systemd-machine-id-setup \
383 systemd-detect-virt \
388 systemd-stdio-bridge \
392 src/kernel-install/kernel-install
394 dist_kernelinstall_SCRIPTS = \
395 src/kernel-install/50-depmod.install \
396 src/kernel-install/90-loaderentry.install
398 rootlibexec_PROGRAMS = \
400 systemd-cgroups-agent \
404 systemd-reply-password \
409 systemd-socket-proxyd \
413 rootlibexec_PROGRAMS += \
417 systemgenerator_PROGRAMS = \
418 systemd-getty-generator \
419 systemd-fstab-generator \
420 systemd-system-update-generator \
421 systemd-debug-generator
423 dist_bashcompletion_data = \
424 shell-completion/bash/busctl \
425 shell-completion/bash/journalctl \
426 shell-completion/bash/systemd-analyze \
427 shell-completion/bash/systemd-cat \
428 shell-completion/bash/systemd-cgls \
429 shell-completion/bash/systemd-cgtop \
430 shell-completion/bash/systemd-delta \
431 shell-completion/bash/systemd-detect-virt \
432 shell-completion/bash/systemd-nspawn \
433 shell-completion/bash/systemd-path \
434 shell-completion/bash/systemd-run \
435 shell-completion/bash/udevadm \
436 shell-completion/bash/kernel-install
438 nodist_bashcompletion_data = \
439 shell-completion/bash/systemctl
441 dist_zshcompletion_data = \
442 shell-completion/zsh/_busctl \
443 shell-completion/zsh/_journalctl \
444 shell-completion/zsh/_udevadm \
445 shell-completion/zsh/_kernel-install \
446 shell-completion/zsh/_systemd-nspawn \
447 shell-completion/zsh/_systemd-analyze \
448 shell-completion/zsh/_systemd-run \
449 shell-completion/zsh/_sd_hosts_or_user_at_host \
450 shell-completion/zsh/_sd_outputmodes \
451 shell-completion/zsh/_sd_unit_files \
452 shell-completion/zsh/_systemd-delta \
453 shell-completion/zsh/_systemd
455 nodist_zshcompletion_data = \
456 shell-completion/zsh/_systemctl
459 shell-completion/bash/systemctl.in \
460 shell-completion/zsh/_systemctl.in
463 sysctl.d/50-default.conf
465 dist_systemunit_DATA = \
466 units/graphical.target \
467 units/multi-user.target \
468 units/emergency.target \
469 units/sysinit.target \
475 units/local-fs.target \
476 units/local-fs-pre.target \
477 units/initrd.target \
478 units/initrd-fs.target \
479 units/initrd-root-device.target \
480 units/initrd-root-fs.target \
481 units/remote-fs.target \
482 units/remote-fs-pre.target \
483 units/network.target \
484 units/network-pre.target \
485 units/network-online.target \
486 units/nss-lookup.target \
487 units/nss-user-lookup.target \
488 units/poweroff.target \
489 units/reboot.target \
490 units/rescue.target \
491 units/rpcbind.target \
492 units/time-sync.target \
493 units/shutdown.target \
495 units/umount.target \
496 units/sigpwr.target \
498 units/sockets.target \
499 units/timers.target \
501 units/suspend.target \
503 units/slices.target \
506 units/systemd-initctl.socket \
507 units/syslog.socket \
508 units/dev-hugepages.mount \
509 units/dev-mqueue.mount \
510 units/sys-kernel-config.mount \
511 units/sys-kernel-debug.mount \
512 units/sys-fs-fuse-connections.mount \
514 units/var-lib-machines.mount \
515 units/printer.target \
517 units/bluetooth.target \
518 units/smartcard.target \
519 units/systemd-ask-password-wall.path \
520 units/systemd-ask-password-console.path \
521 units/systemd-udevd-control.socket \
522 units/systemd-udevd-kernel.socket \
523 units/system-update.target \
524 units/initrd-switch-root.target \
525 units/machines.target
527 dist_systemunit_DATA += \
528 $(dist_systemunit_DATA_busnames)
530 dist_systemunit_DATA_busnames += \
531 units/busnames.target
533 nodist_systemunit_DATA = \
534 units/getty@.service \
535 units/serial-getty@.service \
536 units/console-shell.service \
537 units/console-getty.service \
538 units/container-getty@.service \
539 units/systemd-initctl.service \
540 units/systemd-remount-fs.service \
541 units/systemd-ask-password-wall.service \
542 units/systemd-ask-password-console.service \
543 units/systemd-sysctl.service \
544 units/emergency.service \
545 units/rescue.service \
546 units/user@.service \
547 units/systemd-suspend.service \
548 units/systemd-halt.service \
549 units/systemd-poweroff.service \
550 units/systemd-reboot.service \
551 units/systemd-kexec.service \
552 units/systemd-exit.service \
553 units/systemd-fsck@.service \
554 units/systemd-fsck-root.service \
555 units/systemd-machine-id-commit.service \
556 units/systemd-udevd.service \
557 units/systemd-udev-trigger.service \
558 units/systemd-udev-settle.service \
559 units/systemd-hwdb-update.service \
560 units/debug-shell.service \
561 units/initrd-parse-etc.service \
562 units/initrd-cleanup.service \
563 units/initrd-udevadm-cleanup-db.service \
564 units/initrd-switch-root.service \
565 units/systemd-nspawn@.service \
566 units/systemd-update-done.service
569 nodist_systemunit_DATA += \
570 units/systemd-update-utmp.service \
571 units/systemd-update-utmp-runlevel.service
574 dist_userunit_DATA = \
575 units/user/basic.target \
576 units/user/default.target \
577 units/user/exit.target \
578 units/user/graphical-session.target \
579 units/user/graphical-session-pre.target \
580 units/user/bluetooth.target \
581 units/user/busnames.target \
582 units/user/paths.target \
583 units/user/printer.target \
584 units/user/shutdown.target \
585 units/user/smartcard.target \
586 units/user/sockets.target \
587 units/user/sound.target \
588 units/user/timers.target
590 nodist_userunit_DATA = \
591 units/user/systemd-exit.service
593 dist_systempreset_DATA = \
594 system-preset/90-systemd.preset
597 units/getty@.service.m4 \
598 units/serial-getty@.service.m4 \
599 units/console-shell.service.m4.in \
600 units/console-getty.service.m4.in \
601 units/container-getty@.service.m4.in \
602 units/rescue.service.in \
603 units/systemd-initctl.service.in \
604 units/systemd-remount-fs.service.in \
605 units/systemd-update-utmp.service.in \
606 units/systemd-update-utmp-runlevel.service.in \
607 units/systemd-ask-password-wall.service.in \
608 units/systemd-ask-password-console.service.in \
609 units/systemd-sysctl.service.in \
610 units/emergency.service.in \
611 units/systemd-halt.service.in \
612 units/systemd-poweroff.service.in \
613 units/systemd-reboot.service.in \
614 units/systemd-kexec.service.in \
615 units/systemd-exit.service.in \
616 units/user/systemd-exit.service.in \
617 units/systemd-fsck@.service.in \
618 units/systemd-fsck-root.service.in \
619 units/systemd-machine-id-commit.service.in \
620 units/user@.service.m4.in \
621 units/debug-shell.service.in \
622 units/systemd-suspend.service.in \
623 units/quotaon.service.in \
624 units/initrd-parse-etc.service.in \
625 units/initrd-cleanup.service.in \
626 units/initrd-udevadm-cleanup-db.service.in \
627 units/initrd-switch-root.service.in \
628 units/systemd-nspawn@.service.in \
629 units/systemd-update-done.service.in \
633 nodist_systemunit_DATA += \
634 units/rc-local.service \
635 units/halt-local.service
637 systemgenerator_PROGRAMS += \
638 systemd-sysv-generator \
639 systemd-rc-local-generator
643 src/systemctl/systemd-sysv-install.SKELETON \
644 units/rc-local.service.in \
645 units/halt-local.service.in
648 $(systemunitdir)/reboot.target $(pkgsysconfdir)/system/ctrl-alt-del.target \
649 $(systemunitdir)/machines.target $(pkgsysconfdir)/system/multi-user.target.wants/machines.target
651 # automake is broken and can't handle files with a dash in front
652 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
654 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
656 units-uninstall-hook:
657 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
659 INSTALL_DATA_HOOKS += units-install-hook
660 UNINSTALL_DATA_HOOKS += units-uninstall-hook
669 src/libsystemd/sd-bus/PORTING-DBUS1 \
670 src/libsystemd/sd-bus/DIFFERENCES \
671 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
683 @INTLTOOL_POLICY_RULE@
685 # ------------------------------------------------------------------------------
690 include Makefile-man.am
692 .PHONY: man update-man-list
693 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
696 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
698 ${XML_FILES:.xml=.html}
700 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
720 $(AM_V_at)$(MKDIR_P) $(dir $@)
721 $(AM_V_LN)$(LN_S) -f ../../man $@
723 man/index.html: man/systemd.index.html
724 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
734 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
735 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
736 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
738 # This target should only be run manually. It recreates Makefile-man.am
739 # file in the source directory based on all man/*.xml files. Run it after
740 # adding, removing, or changing the conditional in a man page.
741 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
742 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
743 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
744 @echo "Makefile-man.am has been regenerated"
746 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
747 $(AM_V_at)$(MKDIR_P) $(dir $@)
748 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
750 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
751 $(AM_V_at)$(MKDIR_P) $(dir $@)
752 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
755 man/systemd.index.xml \
756 man/systemd.directives.xml
759 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
760 tools/make-man-index.py \
761 tools/make-man-rules.py \
762 tools/make-directive-index.py \
763 tools/xml_helper.py \
764 man/glib-event-glue.c
766 # ------------------------------------------------------------------------------
767 noinst_LTLIBRARIES += \
770 libbasic_la_SOURCES = \
771 src/basic/missing.h \
772 src/basic/missing_syscall.h \
773 src/basic/raw-clone.h \
774 src/basic/capability-util.c \
775 src/basic/capability-util.h \
776 src/basic/conf-files.c \
777 src/basic/conf-files.h \
778 src/basic/stdio-util.h \
779 src/basic/hostname-util.h \
780 src/basic/hostname-util.c \
781 src/basic/unit-name.c \
782 src/basic/unit-name.h \
784 src/basic/securebits.h \
785 src/basic/special.h \
787 src/basic/unaligned.h \
790 src/basic/sparse-endian.h \
794 src/basic/io-util.c \
795 src/basic/io-util.h \
796 src/basic/string-util.c \
797 src/basic/string-util.h \
798 src/basic/fd-util.c \
799 src/basic/fd-util.h \
800 src/basic/parse-util.c \
801 src/basic/parse-util.h \
802 src/basic/user-util.c \
803 src/basic/user-util.h \
804 src/basic/rlimit-util.c \
805 src/basic/rlimit-util.h \
806 src/basic/dirent-util.c \
807 src/basic/dirent-util.h \
808 src/basic/xattr-util.c \
809 src/basic/xattr-util.h \
810 src/basic/chattr-util.c \
811 src/basic/chattr-util.h \
812 src/basic/proc-cmdline.c \
813 src/basic/proc-cmdline.h \
814 src/basic/fs-util.c \
815 src/basic/fs-util.h \
816 src/basic/syslog-util.c \
817 src/basic/syslog-util.h \
818 src/basic/stat-util.c \
819 src/basic/stat-util.h \
820 src/basic/mount-util.c \
821 src/basic/mount-util.h \
822 src/basic/hexdecoct.c \
823 src/basic/hexdecoct.h \
824 src/basic/glob-util.h \
825 src/basic/glob-util.c \
826 src/basic/extract-word.c \
827 src/basic/extract-word.h \
830 src/basic/cpu-set-util.c \
831 src/basic/cpu-set-util.h \
832 src/basic/lockfile-util.c \
833 src/basic/lockfile-util.h \
834 src/basic/path-util.c \
835 src/basic/path-util.h \
836 src/basic/time-util.c \
837 src/basic/time-util.h \
838 src/basic/locale-util.c \
839 src/basic/locale-util.h \
840 src/basic/umask-util.h \
841 src/basic/signal-util.c \
842 src/basic/signal-util.h \
843 src/basic/string-table.c \
844 src/basic/string-table.h \
845 src/basic/mempool.c \
846 src/basic/mempool.h \
847 src/basic/hashmap.c \
848 src/basic/hashmap.h \
849 src/basic/hash-funcs.c \
850 src/basic/hash-funcs.h \
851 src/basic/siphash24.c \
852 src/basic/siphash24.h \
854 src/basic/ordered-set.h \
855 src/basic/ordered-set.c \
860 src/basic/web-util.c \
861 src/basic/web-util.h \
864 src/basic/env-util.c \
865 src/basic/env-util.h \
868 src/basic/strxcpyx.c \
869 src/basic/strxcpyx.h \
872 src/basic/bus-label.c \
873 src/basic/bus-label.h \
874 src/basic/ratelimit.h \
875 src/basic/ratelimit.c \
876 src/basic/exit-status.c \
877 src/basic/exit-status.h \
880 src/basic/architecture.c \
881 src/basic/architecture.h \
882 src/basic/smack-util.c \
883 src/basic/smack-util.h \
884 src/basic/device-nodes.c \
885 src/basic/device-nodes.h \
888 src/basic/gunicode.c \
889 src/basic/gunicode.h \
890 src/basic/socket-util.c \
891 src/basic/socket-util.h \
892 src/basic/in-addr-util.c \
893 src/basic/in-addr-util.h \
894 src/basic/ether-addr-util.h \
895 src/basic/ether-addr-util.c \
896 src/basic/replace-var.c \
897 src/basic/replace-var.h \
898 src/basic/clock-util.c \
899 src/basic/clock-util.h \
900 src/basic/calendarspec.c \
901 src/basic/calendarspec.h \
904 src/basic/MurmurHash2.c \
905 src/basic/MurmurHash2.h \
908 src/basic/cgroup-util.c \
909 src/basic/cgroup-util.h \
910 src/basic/errno-list.c \
911 src/basic/errno-list.h \
912 src/basic/af-list.c \
913 src/basic/af-list.h \
914 src/basic/arphrd-list.c \
915 src/basic/arphrd-list.h \
916 src/basic/terminal-util.c \
917 src/basic/terminal-util.h \
918 src/basic/login-util.h \
919 src/basic/login-util.c \
920 src/basic/cap-list.c \
921 src/basic/cap-list.h \
922 src/basic/audit-util.c \
923 src/basic/audit-util.h \
926 src/basic/barrier.c \
927 src/basic/barrier.h \
930 src/basic/memfd-util.c \
931 src/basic/memfd-util.h \
932 src/basic/process-util.c \
933 src/basic/process-util.h \
934 src/basic/random-util.c \
935 src/basic/random-util.h \
941 src/basic/socket-label.c \
944 src/basic/btrfs-util.c \
945 src/basic/btrfs-util.h \
946 src/basic/btrfs-ctree.h \
947 src/basic/selinux-util.c \
948 src/basic/selinux-util.h \
949 src/basic/mkdir-label.c \
950 src/basic/fileio-label.c \
951 src/basic/fileio-label.h \
956 src/basic/alloc-util.h \
957 src/basic/alloc-util.c \
958 src/basic/formats-util.h \
961 nodist_libbasic_la_SOURCES = \
962 src/basic/errno-from-name.h \
963 src/basic/errno-to-name.h \
964 src/basic/af-from-name.h \
965 src/basic/af-to-name.h \
966 src/basic/arphrd-from-name.h \
967 src/basic/arphrd-to-name.h \
968 src/basic/cap-from-name.h \
969 src/basic/cap-to-name.h
971 libbasic_la_CFLAGS = \
977 libbasic_la_LIBADD = \
983 # -----------------------------------------------------------------------------
984 noinst_LTLIBRARIES += \
987 libshared_la_SOURCES = \
988 src/shared/output-mode.h \
989 src/shared/output-mode.c \
991 src/shared/udev-util.h \
992 src/shared/linux/auto_dev-ioctl.h \
993 src/shared/initreq.h \
994 src/shared/dns-domain.c \
995 src/shared/dns-domain.h \
996 src/shared/efivars.c \
997 src/shared/efivars.h \
998 src/shared/fstab-util.c \
999 src/shared/fstab-util.h \
1000 src/shared/sleep-config.c \
1001 src/shared/sleep-config.h \
1002 src/shared/conf-parser.c \
1003 src/shared/conf-parser.h \
1004 src/shared/pager.c \
1005 src/shared/pager.h \
1006 src/shared/spawn-polkit-agent.c \
1007 src/shared/spawn-polkit-agent.h \
1008 src/shared/apparmor-util.c \
1009 src/shared/apparmor-util.h \
1010 src/shared/ima-util.c \
1011 src/shared/ima-util.h \
1012 src/shared/ptyfwd.c \
1013 src/shared/ptyfwd.h \
1014 src/shared/base-filesystem.c \
1015 src/shared/base-filesystem.h \
1016 src/shared/uid-range.c \
1017 src/shared/uid-range.h \
1018 src/shared/install.c \
1019 src/shared/install.h \
1020 src/shared/install-printf.c \
1021 src/shared/install-printf.h \
1022 src/shared/path-lookup.c \
1023 src/shared/path-lookup.h \
1024 src/shared/specifier.c \
1025 src/shared/specifier.h \
1026 src/shared/dev-setup.c \
1027 src/shared/dev-setup.h \
1028 src/shared/dropin.c \
1029 src/shared/dropin.h \
1030 src/shared/condition.c \
1031 src/shared/condition.h \
1032 src/shared/clean-ipc.c \
1033 src/shared/clean-ipc.h \
1034 src/shared/generator.h \
1035 src/shared/generator.c \
1036 src/shared/acpi-fpdt.h \
1037 src/shared/acpi-fpdt.c \
1038 src/shared/boot-timestamps.h \
1039 src/shared/boot-timestamps.c \
1040 src/shared/cgroup-show.c \
1041 src/shared/cgroup-show.h \
1042 src/shared/utmp-wtmp.h \
1043 src/shared/watchdog.c \
1044 src/shared/watchdog.h \
1045 src/shared/spawn-ask-password-agent.c \
1046 src/shared/spawn-ask-password-agent.h \
1047 src/shared/ask-password-api.c \
1048 src/shared/ask-password-api.h \
1049 src/shared/switch-root.h \
1050 src/shared/switch-root.c \
1051 src/shared/import-util.c \
1052 src/shared/import-util.h \
1053 src/shared/sysctl-util.c \
1054 src/shared/sysctl-util.h \
1055 src/shared/bus-util.c \
1056 src/shared/bus-util.h \
1057 src/shared/logs-show.c \
1058 src/shared/logs-show.h \
1059 src/shared/machine-image.c \
1060 src/shared/machine-image.h \
1061 src/shared/machine-pool.c \
1062 src/shared/machine-pool.h \
1063 src/shared/resolve-util.c \
1064 src/shared/resolve-util.h \
1065 src/shared/bus-unit-util.c \
1066 src/shared/bus-unit-util.h \
1067 src/shared/vlan-util.h \
1068 src/shared/vlan-util.c \
1069 src/shared/tests.h \
1070 src/shared/tests.c \
1071 src/shared/fdset.c \
1075 libshared_la_SOURCES += \
1076 src/shared/utmp-wtmp.c
1080 libshared_la_SOURCES += \
1081 src/shared/seccomp-util.h \
1082 src/shared/seccomp-util.c
1086 libshared_la_SOURCES += \
1087 src/shared/acl-util.c \
1088 src/shared/acl-util.h
1091 libshared_la_CFLAGS = \
1097 libshared_la_LIBADD = \
1098 libsystemd-internal.la \
1100 libsystemd-journal-internal.la \
1101 libudev-internal.la \
1106 rootlibexec_LTLIBRARIES += \
1107 libsystemd-shared.la
1109 libsystemd_shared_la_SOURCES = \
1110 $(libbasic_la_SOURCES) \
1111 $(libshared_la_SOURCES) \
1112 $(libsystemd_internal_la_SOURCES) \
1113 $(libsystemd_journal_internal_la_SOURCES) \
1114 $(libudev_internal_la_SOURCES)
1116 libsystemd_shared_la_CFLAGS = \
1118 $(libbasic_la_CFLAGS) \
1119 $(libshared_la_CFLAGS) \
1120 $(libsystemd_internal_la_CFLAGS) \
1121 $(libsystemd_journal_internal_la_CFLAGS) \
1122 $(libudev_internal_la_CFLAGS) \
1126 -fvisibility=default
1128 # We can't use libshared_la_LIBADD here because it would
1129 # pull in libsystemd*-internal.la
1130 libsystemd_shared_la_LIBADD = \
1131 $(libbasic_la_LIBADD) \
1132 $(libsystemd_internal_la_LIBADD) \
1133 $(libsystemd_journal_internal_la_LIBADD) \
1134 $(libudev_internal_la_LIBADD) \
1139 libsystemd_shared_la_LDFLAGS = \
1141 -release $(PACKAGE_VERSION)
1144 # -----------------------------------------------------------------------------
1146 noinst_LTLIBRARIES += \
1149 libfirewall_la_SOURCES = \
1150 src/shared/firewall-util.h \
1151 src/shared/firewall-util.c
1153 libfirewall_la_CFLAGS = \
1157 libfirewall_la_LIBADD = \
1161 # -----------------------------------------------------------------------------
1163 dist_systemunit_DATA += \
1164 units/ldconfig.service
1166 SYSINIT_TARGET_WANTS += \
1170 # ------------------------------------------------------------------------------
1171 noinst_LTLIBRARIES += \
1174 libcore_la_SOURCES = \
1177 src/core/unit-printf.c \
1178 src/core/unit-printf.h \
1181 src/core/manager.c \
1182 src/core/manager.h \
1183 src/core/transaction.c \
1184 src/core/transaction.h \
1185 src/core/load-fragment.c \
1186 src/core/load-fragment.h \
1187 src/core/service.c \
1188 src/core/service.h \
1191 src/core/busname.c \
1192 src/core/busname.h \
1193 src/core/bus-policy.c \
1194 src/core/bus-policy.h \
1201 src/core/automount.c \
1202 src/core/automount.h \
1213 src/core/load-dropin.c \
1214 src/core/load-dropin.h \
1215 src/core/execute.c \
1216 src/core/execute.h \
1217 src/core/dynamic-user.c \
1218 src/core/dynamic-user.h \
1223 src/core/dbus-manager.c \
1224 src/core/dbus-manager.h \
1225 src/core/dbus-unit.c \
1226 src/core/dbus-unit.h \
1227 src/core/dbus-job.c \
1228 src/core/dbus-job.h \
1229 src/core/dbus-service.c \
1230 src/core/dbus-service.h \
1231 src/core/dbus-socket.c \
1232 src/core/dbus-socket.h \
1233 src/core/dbus-busname.c \
1234 src/core/dbus-busname.h \
1235 src/core/dbus-target.c \
1236 src/core/dbus-target.h \
1237 src/core/dbus-device.c \
1238 src/core/dbus-device.h \
1239 src/core/dbus-mount.c \
1240 src/core/dbus-mount.h \
1241 src/core/dbus-automount.c \
1242 src/core/dbus-automount.h \
1243 src/core/dbus-swap.c \
1244 src/core/dbus-swap.h \
1245 src/core/dbus-timer.c \
1246 src/core/dbus-timer.h \
1247 src/core/dbus-path.c \
1248 src/core/dbus-path.h \
1249 src/core/dbus-slice.c \
1250 src/core/dbus-slice.h \
1251 src/core/dbus-scope.c \
1252 src/core/dbus-scope.h \
1253 src/core/dbus-execute.c \
1254 src/core/dbus-execute.h \
1255 src/core/dbus-kill.c \
1256 src/core/dbus-kill.h \
1257 src/core/dbus-cgroup.c \
1258 src/core/dbus-cgroup.h \
1261 src/core/selinux-access.c \
1262 src/core/selinux-access.h \
1263 src/core/selinux-setup.c \
1264 src/core/selinux-setup.h \
1265 src/core/smack-setup.c \
1266 src/core/smack-setup.h \
1267 src/core/ima-setup.c \
1268 src/core/ima-setup.h \
1269 src/core/locale-setup.h \
1270 src/core/locale-setup.c \
1271 src/core/hostname-setup.c \
1272 src/core/hostname-setup.h \
1273 src/core/machine-id-setup.c \
1274 src/core/machine-id-setup.h \
1275 src/core/mount-setup.c \
1276 src/core/mount-setup.h \
1277 src/core/kmod-setup.c \
1278 src/core/kmod-setup.h \
1279 src/core/loopback-setup.h \
1280 src/core/loopback-setup.c \
1281 src/core/namespace.c \
1282 src/core/namespace.h \
1283 src/core/killall.h \
1284 src/core/killall.c \
1285 src/core/audit-fd.c \
1286 src/core/audit-fd.h \
1287 src/core/show-status.c \
1288 src/core/show-status.h \
1289 src/core/failure-action.c \
1290 src/core/failure-action.h
1292 nodist_libcore_la_SOURCES = \
1293 src/core/load-fragment-gperf.c \
1294 src/core/load-fragment-gperf-nulstr.c
1296 libcore_la_CFLAGS = \
1301 $(APPARMOR_CFLAGS) \
1305 libcore_la_LIBADD = \
1306 libsystemd-shared.la \
1313 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1314 $(AM_V_at)$(MKDIR_P) $(dir $@)
1315 $(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 ";" }' < $< > $@
1317 gperf_gperf_m4_sources = \
1318 src/core/load-fragment-gperf.gperf.m4
1320 gperf_txt_sources = \
1321 src/basic/errno-list.txt \
1322 src/basic/af-list.txt \
1323 src/basic/arphrd-list.txt \
1324 src/basic/cap-list.txt
1327 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1328 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1329 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1330 $(gperf_txt_sources:-list.txt=-from-name.h) \
1331 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
1334 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1336 $(gperf_txt_sources)
1339 $(gperf_gperf_m4_sources) \
1340 $(gperf_gperf_sources)
1343 $(gperf_txt_sources)
1345 %-from-name.gperf: %-list.txt
1346 $(AM_V_at)$(MKDIR_P) $(dir $@)
1347 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1349 %-from-name.h: %-from-name.gperf
1350 $(AM_V_at)$(MKDIR_P) $(dir $@)
1351 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1354 src/basic/errno-list.txt:
1355 $(AM_V_at)$(MKDIR_P) $(dir $@)
1356 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1358 src/basic/errno-to-name.h: src/basic/errno-list.txt
1359 $(AM_V_at)$(MKDIR_P) $(dir $@)
1360 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1363 src/basic/af-list.txt:
1364 $(AM_V_at)$(MKDIR_P) $(dir $@)
1365 $(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; }' >$@
1367 src/basic/af-to-name.h: src/basic/af-list.txt
1368 $(AM_V_at)$(MKDIR_P) $(dir $@)
1369 $(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 "};"}' <$< >$@
1372 src/basic/arphrd-list.txt:
1373 $(AM_V_at)$(MKDIR_P) $(dir $@)
1374 $(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_//' >$@
1376 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1377 $(AM_V_at)$(MKDIR_P) $(dir $@)
1378 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1380 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1381 $(AM_V_at)$(MKDIR_P) $(dir $@)
1382 $(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 }' <$< >$@
1385 src/basic/cap-list.txt:
1386 $(AM_V_at)$(MKDIR_P) $(dir $@)
1387 $(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 >$@
1389 src/basic/cap-to-name.h: src/basic/cap-list.txt
1390 $(AM_V_at)$(MKDIR_P) $(dir $@)
1391 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1393 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1394 $(AM_V_at)$(MKDIR_P) $(dir $@)
1395 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1397 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1398 $(AM_V_at)$(MKDIR_P) $(dir $@)
1399 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1401 audit_list_includes = -include linux/audit.h -include missing.h
1403 audit_list_includes += -include libaudit.h
1406 src/journal/audit_type-list.txt:
1407 $(AM_V_at)$(MKDIR_P) $(dir $@)
1408 $(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 >$@
1410 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1411 $(AM_V_at)$(MKDIR_P) $(dir $@)
1412 $(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" }' <$< >$@
1415 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1416 $(AM_V_at)$(MKDIR_P) $(dir $@)
1417 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1419 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1420 $(AM_V_at)$(MKDIR_P) $(dir $@)
1421 $(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" }' <$< >$@
1423 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1424 $(AM_V_at)$(MKDIR_P) $(dir $@)
1425 $(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 }' <$< >$@
1427 # ------------------------------------------------------------------------------
1439 dist_pkgsysconf_DATA += \
1440 src/core/system.conf \
1443 dist_dbuspolicy_DATA += \
1444 src/core/org.freedesktop.systemd1.conf
1446 dist_dbussystemservice_DATA += \
1447 src/core/org.freedesktop.systemd1.service
1449 polkitpolicy_in_in_files += \
1450 src/core/org.freedesktop.systemd1.policy.in.in
1452 pkgconfigdata_DATA += \
1455 nodist_rpmmacros_DATA = \
1456 src/core/macros.systemd
1459 src/core/triggers.systemd
1462 src/core/systemd.pc.in \
1463 src/core/macros.systemd.in \
1464 src/core/triggers.systemd.in
1466 # ------------------------------------------------------------------------------
1474 test-ipv4ll-manual \
1475 test-ask-password-api
1527 test-hostname-util \
1529 test-terminal-util \
1539 test-strip-tab-ansi \
1589 test/daughter.service \
1594 test/grandchild.service \
1596 test/hello-after-sleep.target \
1597 test/hello.service \
1599 test/parent-deep.slice \
1601 test/sched_idle_bad.service \
1602 test/sched_idle_ok.service \
1603 test/sched_rr_bad.service \
1604 test/sched_rr_change.service \
1605 test/sched_rr_ok.service \
1606 test/shutdown.target \
1607 test/sleep.service \
1608 test/sockets.target \
1610 test/sysinit.target \
1611 test/testsuite.target \
1612 test/timers.target \
1613 test/unstoppable.service \
1614 test/test-path/paths.target \
1615 test/test-path/basic.target \
1616 test/test-path/sysinit.target \
1617 test/test-path/path-changed.service \
1618 test/test-path/path-directorynotempty.service \
1619 test/test-path/path-existsglob.service \
1620 test/test-path/path-exists.service \
1621 test/test-path/path-makedirectory.service \
1622 test/test-path/path-modified.service \
1623 test/test-path/path-mycustomunit.service \
1624 test/test-path/path-service.service \
1625 test/test-path/path-changed.path \
1626 test/test-path/path-directorynotempty.path \
1627 test/test-path/path-existsglob.path \
1628 test/test-path/path-exists.path \
1629 test/test-path/path-makedirectory.path \
1630 test/test-path/path-modified.path \
1631 test/test-path/path-unit.path \
1632 test/test-execute/exec-environment-empty.service \
1633 test/test-execute/exec-environment-multiple.service \
1634 test/test-execute/exec-environment.service \
1635 test/test-execute/exec-passenvironment-absent.service \
1636 test/test-execute/exec-passenvironment-empty.service \
1637 test/test-execute/exec-passenvironment-repeated.service \
1638 test/test-execute/exec-passenvironment.service \
1639 test/test-execute/exec-group.service \
1640 test/test-execute/exec-group-nfsnobody.service \
1641 test/test-execute/exec-ignoresigpipe-no.service \
1642 test/test-execute/exec-ignoresigpipe-yes.service \
1643 test/test-execute/exec-personality-x86-64.service \
1644 test/test-execute/exec-personality-x86.service \
1645 test/test-execute/exec-personality-s390.service \
1646 test/test-execute/exec-personality-ppc64.service \
1647 test/test-execute/exec-personality-ppc64le.service \
1648 test/test-execute/exec-personality-aarch64.service \
1649 test/test-execute/exec-privatedevices-no.service \
1650 test/test-execute/exec-privatedevices-yes.service \
1651 test/test-execute/exec-privatetmp-no.service \
1652 test/test-execute/exec-privatetmp-yes.service \
1653 test/test-execute/exec-spec-interpolation.service \
1654 test/test-execute/exec-systemcallerrornumber.service \
1655 test/test-execute/exec-systemcallfilter-failing2.service \
1656 test/test-execute/exec-systemcallfilter-failing.service \
1657 test/test-execute/exec-systemcallfilter-not-failing2.service \
1658 test/test-execute/exec-systemcallfilter-not-failing.service \
1659 test/test-execute/exec-systemcallfilter-system-user.service \
1660 test/test-execute/exec-systemcallfilter-system-user-nfsnobody.service \
1661 test/test-execute/exec-user.service \
1662 test/test-execute/exec-user-nfsnobody.service \
1663 test/test-execute/exec-workingdirectory.service \
1664 test/test-execute/exec-umask-0177.service \
1665 test/test-execute/exec-umask-default.service \
1666 test/test-execute/exec-privatenetwork-yes.service \
1667 test/test-execute/exec-environmentfile.service \
1668 test/test-execute/exec-oomscoreadjust-positive.service \
1669 test/test-execute/exec-oomscoreadjust-negative.service \
1670 test/test-execute/exec-ioschedulingclass-best-effort.service \
1671 test/test-execute/exec-ioschedulingclass-idle.service \
1672 test/test-execute/exec-ioschedulingclass-none.service \
1673 test/test-execute/exec-ioschedulingclass-realtime.service \
1674 test/test-execute/exec-capabilityboundingset-invert.service \
1675 test/test-execute/exec-capabilityboundingset-merge.service \
1676 test/test-execute/exec-capabilityboundingset-reset.service \
1677 test/test-execute/exec-capabilityboundingset-simple.service \
1678 test/test-execute/exec-capabilityambientset.service \
1679 test/test-execute/exec-capabilityambientset-nfsnobody.service \
1680 test/test-execute/exec-capabilityambientset-merge.service \
1681 test/test-execute/exec-capabilityambientset-merge-nfsnobody.service \
1682 test/test-execute/exec-runtimedirectory.service \
1683 test/test-execute/exec-runtimedirectory-mode.service \
1684 test/test-execute/exec-runtimedirectory-owner.service \
1685 test/test-execute/exec-runtimedirectory-owner-nfsnobody.service \
1686 test/bus-policy/hello.conf \
1687 test/bus-policy/methods.conf \
1688 test/bus-policy/ownerships.conf \
1689 test/bus-policy/signals.conf \
1690 test/bus-policy/check-own-rules.conf \
1691 test/bus-policy/many-rules.conf \
1692 test/bus-policy/test.conf
1696 src/test/test-helper.h
1698 test_device_nodes_SOURCES = \
1699 src/test/test-device-nodes.c
1701 test_device_nodes_LDADD = \
1702 libsystemd-shared.la
1704 test_engine_SOURCES = \
1705 src/test/test-engine.c
1707 test_engine_CFLAGS = \
1712 test_engine_LDADD = \
1715 test_job_type_SOURCES = \
1716 src/test/test-job-type.c
1718 test_job_type_CFLAGS = \
1723 test_job_type_LDADD = \
1736 test_loopback_SOURCES = \
1737 src/test/test-loopback.c
1739 test_loopback_LDADD = \
1742 test_hostname_SOURCES = \
1743 src/test/test-hostname.c
1745 test_hostname_LDADD = \
1748 test_dns_domain_SOURCES = \
1749 src/test/test-dns-domain.c
1751 test_dns_domain_LDADD = \
1752 libsystemd-network.la \
1753 libsystemd-shared.la
1758 test-boot-timestamps
1760 test_boot_timestamps_SOURCES = \
1761 src/test/test-boot-timestamps.c
1763 test_boot_timestamps_LDADD = \
1764 libsystemd-shared.la
1767 test_unit_name_SOURCES = \
1768 src/test/test-unit-name.c
1770 test_unit_name_CFLAGS = \
1775 test_unit_name_LDADD = \
1778 test_unit_file_SOURCES = \
1779 src/test/test-unit-file.c
1781 test_unit_file_CFLAGS = \
1786 test_unit_file_LDADD = \
1789 test_utf8_SOURCES = \
1790 src/test/test-utf8.c
1793 libsystemd-shared.la
1795 test_capability_SOURCES = \
1796 src/test/test-capability.c
1798 test_capability_CFLAGS = \
1802 test_capability_LDADD = \
1803 libsystemd-shared.la \
1806 test_async_SOURCES = \
1807 src/test/test-async.c
1809 test_async_LDADD = \
1810 libsystemd-shared.la
1812 test_locale_util_SOURCES = \
1813 src/test/test-locale-util.c
1815 test_locale_util_LDADD = \
1816 libsystemd-shared.la
1818 test_copy_SOURCES = \
1819 src/test/test-copy.c
1821 # Link statically to ensure file is large
1825 test_sigbus_SOURCES = \
1826 src/test/test-sigbus.c
1828 test_sigbus_LDADD = \
1829 libsystemd-shared.la
1831 test_condition_SOURCES = \
1832 src/test/test-condition.c
1834 test_condition_LDADD = \
1835 libsystemd-shared.la
1837 test_fdset_SOURCES = \
1838 src/test/test-fdset.c
1840 test_fdset_LDADD = \
1841 libsystemd-shared.la
1843 test_fstab_util_SOURCES = \
1844 src/test/test-fstab-util.c
1846 test_fstab_util_LDADD = \
1847 libsystemd-shared.la
1849 test_ratelimit_SOURCES = \
1850 src/test/test-ratelimit.c
1852 test_ratelimit_LDADD = \
1853 libsystemd-shared.la
1855 test_util_SOURCES = \
1856 src/test/test-util.c
1859 libsystemd-shared.la
1861 test_hexdecoct_SOURCES = \
1862 src/test/test-hexdecoct.c
1864 test_hexdecoct_LDADD = \
1865 libsystemd-shared.la
1867 test_alloc_util_SOURCES = \
1868 src/test/test-alloc-util.c
1870 test_alloc_util_LDADD = \
1871 libsystemd-shared.la
1873 test_xattr_util_SOURCES = \
1874 src/test/test-xattr-util.c
1876 test_xattr_util_LDADD = \
1877 libsystemd-shared.la
1879 test_io_util_SOURCES = \
1880 src/test/test-io-util.c
1882 test_io_util_LDADD = \
1883 libsystemd-shared.la
1885 test_glob_util_SOURCES = \
1886 src/test/test-glob-util.c
1888 test_glob_util_LDADD = \
1889 libsystemd-shared.la
1891 test_fs_util_SOURCES = \
1892 src/test/test-fs-util.c
1894 test_fs_util_LDADD = \
1895 libsystemd-shared.la
1897 test_proc_cmdline_SOURCES = \
1898 src/test/test-proc-cmdline.c
1900 test_proc_cmdline_LDADD = \
1901 libsystemd-shared.la
1903 test_fd_util_SOURCES = \
1904 src/test/test-fd-util.c
1906 test_fd_util_LDADD = \
1907 libsystemd-shared.la
1909 test_web_util_SOURCES = \
1910 src/test/test-web-util.c
1912 test_web_util_LDADD = \
1913 libsystemd-shared.la
1915 test_cpu_set_util_SOURCES = \
1916 src/test/test-cpu-set-util.c
1918 test_cpu_set_util_LDADD = \
1919 libsystemd-shared.la
1921 test_stat_util_SOURCES = \
1922 src/test/test-stat-util.c
1924 test_stat_util_LDADD = \
1925 libsystemd-shared.la
1927 test_escape_SOURCES = \
1928 src/test/test-escape.c
1930 test_escape_LDADD = \
1931 libsystemd-shared.la
1933 test_string_util_SOURCES = \
1934 src/test/test-string-util.c
1936 test_string_util_LDADD = \
1937 libsystemd-shared.la
1939 test_extract_word_SOURCES = \
1940 src/test/test-extract-word.c
1942 test_extract_word_LDADD = \
1943 libsystemd-shared.la
1945 test_parse_util_SOURCES = \
1946 src/test/test-parse-util.c
1948 test_parse_util_LDADD = \
1949 libsystemd-shared.la
1951 test_user_util_SOURCES = \
1952 src/test/test-user-util.c
1954 test_user_util_LDADD = \
1955 libsystemd-shared.la
1957 test_hostname_util_SOURCES = \
1958 src/test/test-hostname-util.c
1960 test_hostname_util_LDADD = \
1961 libsystemd-shared.la
1963 test_process_util_SOURCES = \
1964 src/test/test-process-util.c
1966 test_process_util_LDADD = \
1967 libsystemd-shared.la
1969 test_terminal_util_SOURCES = \
1970 src/test/test-terminal-util.c
1972 test_terminal_util_LDADD = \
1973 libsystemd-shared.la
1975 test_path_lookup_SOURCES = \
1976 src/test/test-path-lookup.c
1978 test_path_lookup_LDADD = \
1979 libsystemd-shared.la
1981 test_uid_range_SOURCES = \
1982 src/test/test-uid-range.c
1984 test_uid_range_LDADD = \
1985 libsystemd-shared.la
1987 test_cap_list_SOURCES = \
1988 src/test/test-cap-list.c
1990 test_cap_list_CFLAGS = \
1994 test_cap_list_LDADD = \
1995 libsystemd-shared.la \
1998 test_socket_util_SOURCES = \
1999 src/test/test-socket-util.c
2001 test_socket_util_LDADD = \
2002 libsystemd-shared.la
2004 test_barrier_SOURCES = \
2005 src/test/test-barrier.c
2007 test_barrier_LDADD = \
2008 libsystemd-shared.la
2010 test_tmpfiles_SOURCES = \
2011 src/test/test-tmpfiles.c
2013 test_tmpfiles_LDADD = \
2014 libsystemd-shared.la
2016 test_namespace_SOURCES = \
2017 src/test/test-namespace.c
2019 test_verbs_SOURCES = \
2020 src/test/test-verbs.c
2022 test_verbs_LDADD = \
2023 libsystemd-shared.la
2025 test_install_root_SOURCES = \
2026 src/test/test-install-root.c
2028 test_install_root_LDADD = \
2029 libsystemd-shared.la
2031 test_acl_util_SOURCES = \
2032 src/test/test-acl-util.c
2034 test_acl_util_LDADD = \
2035 libsystemd-shared.la
2037 test_namespace_LDADD = \
2040 test_rlimit_util_SOURCES = \
2041 src/test/test-rlimit-util.c
2043 test_rlimit_util_LDADD = \
2044 libsystemd-shared.la
2046 test_ask_password_api_SOURCES = \
2047 src/test/test-ask-password-api.c
2049 test_ask_password_api_LDADD = \
2050 libsystemd-shared.la
2052 test_signal_util_SOURCES = \
2053 src/test/test-signal-util.c
2055 test_signal_util_LDADD = \
2056 libsystemd-shared.la
2058 test_selinux_SOURCES = \
2059 src/test/test-selinux.c
2061 test_selinux_LDADD = \
2062 libsystemd-shared.la
2064 test_sizeof_SOURCES = \
2065 src/test/test-sizeof.c
2067 test_sizeof_LDADD = \
2068 libsystemd-shared.la
2071 src/test/test-hashmap-ordered.c
2073 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
2074 $(AM_V_at)$(MKDIR_P) $(dir $@)
2075 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
2076 { if (!match($$0, "^#include")) \
2077 gsub(/hashmap/, "ordered_hashmap"); \
2078 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
2079 gsub(/Hashmap/, "OrderedHashmap"); \
2082 nodist_test_hashmap_SOURCES = \
2083 src/test/test-hashmap-ordered.c
2085 test_hashmap_SOURCES = \
2086 src/test/test-hashmap.c \
2087 src/test/test-hashmap-plain.c
2089 test_hashmap_LDADD = \
2090 libsystemd-shared.la
2092 test_set_SOURCES = \
2096 libsystemd-shared.la
2098 test_bitmap_SOURCES = \
2099 src/test/test-bitmap.c
2101 test_bitmap_LDADD = \
2102 libsystemd-shared.la
2104 test_xml_SOURCES = \
2108 libsystemd-shared.la
2110 test_list_SOURCES = \
2111 src/test/test-list.c
2114 libsystemd-shared.la
2116 test_unaligned_LDADD = \
2117 libsystemd-shared.la
2119 test_unaligned_SOURCES = \
2120 src/test/test-unaligned.c
2122 test_tables_SOURCES = \
2123 src/test/test-tables.c \
2124 src/shared/test-tables.h \
2125 src/journal/journald-server.c \
2126 src/journal/journald-server.h
2128 test_tables_CPPFLAGS = \
2131 test_tables_CFLAGS = \
2136 test_tables_LDADD = \
2137 libjournal-core.la \
2141 test_prioq_SOURCES = \
2142 src/test/test-prioq.c
2144 test_prioq_LDADD = \
2145 libsystemd-shared.la
2147 test_fileio_SOURCES = \
2148 src/test/test-fileio.c
2150 test_fileio_LDADD = \
2151 libsystemd-shared.la
2153 test_time_SOURCES = \
2154 src/test/test-time.c
2157 libsystemd-shared.la
2159 test_clock_SOURCES = \
2160 src/test/test-clock.c
2162 test_clock_LDADD = \
2163 libsystemd-shared.la
2165 test_architecture_SOURCES = \
2166 src/test/test-architecture.c
2168 test_architecture_LDADD = \
2169 libsystemd-shared.la
2171 test_log_SOURCES = \
2175 libsystemd-shared.la
2177 test_ipcrm_SOURCES = \
2178 src/test/test-ipcrm.c
2180 test_ipcrm_LDADD = \
2181 libsystemd-shared.la
2183 test_btrfs_SOURCES = \
2184 src/test/test-btrfs.c
2186 test_btrfs_LDADD = \
2187 libsystemd-shared.la
2190 test_firewall_util_SOURCES = \
2191 src/test/test-firewall-util.c
2193 test_firewall_util_CFLAGS = \
2197 test_firewall_util_LDADD = \
2199 libsystemd-shared.la \
2203 test_netlink_manual_SOURCES = \
2204 src/test/test-netlink-manual.c
2206 test_netlink_manual_CFLAGS = \
2210 test_netlink_manual_LDADD = \
2211 libsystemd-shared.la \
2214 test_ellipsize_SOURCES = \
2215 src/test/test-ellipsize.c
2217 test_ellipsize_LDADD = \
2218 libsystemd-shared.la
2220 test_date_SOURCES = \
2221 src/test/test-date.c
2224 libsystemd-shared.la
2226 test_sleep_SOURCES = \
2227 src/test/test-sleep.c
2229 test_sleep_LDADD = \
2232 test_replace_var_SOURCES = \
2233 src/test/test-replace-var.c
2235 test_replace_var_LDADD = \
2236 libsystemd-shared.la
2238 test_calendarspec_SOURCES = \
2239 src/test/test-calendarspec.c
2241 test_calendarspec_LDADD = \
2242 libsystemd-shared.la
2244 test_strip_tab_ansi_SOURCES = \
2245 src/test/test-strip-tab-ansi.c
2247 test_strip_tab_ansi_LDADD = \
2248 libsystemd-shared.la
2250 test_daemon_SOURCES = \
2251 src/test/test-daemon.c
2253 test_daemon_LDADD = \
2254 libsystemd-shared.la
2256 test_cgroup_SOURCES = \
2257 src/test/test-cgroup.c
2259 test_cgroup_LDADD = \
2260 libsystemd-shared.la
2262 test_cgroup_mask_SOURCES = \
2263 src/test/test-cgroup-mask.c
2265 test_cgroup_mask_CPPFLAGS = \
2269 test_cgroup_mask_CFLAGS = \
2273 test_cgroup_mask_LDADD = \
2276 test_cgroup_util_SOURCES = \
2277 src/test/test-cgroup-util.c
2279 test_cgroup_util_LDADD = \
2280 libsystemd-shared.la
2282 test_env_util_SOURCES = \
2283 src/test/test-env-util.c
2285 test_env_util_LDADD = \
2286 libsystemd-shared.la
2288 test_strbuf_SOURCES = \
2289 src/test/test-strbuf.c
2291 test_strbuf_LDADD = \
2292 libsystemd-shared.la
2294 test_strv_SOURCES = \
2295 src/test/test-strv.c
2298 libsystemd-shared.la
2300 test_path_util_SOURCES = \
2301 src/test/test-path-util.c
2303 test_path_util_LDADD = \
2304 libsystemd-shared.la
2306 test_path_SOURCES = \
2307 src/test/test-path.c
2309 test_path_CFLAGS = \
2316 test_execute_SOURCES = \
2317 src/test/test-execute.c
2319 test_execute_CFLAGS = \
2323 test_execute_LDADD = \
2326 test_siphash24_SOURCES = \
2327 src/test/test-siphash24.c
2329 test_siphash24_LDADD = \
2330 libsystemd-shared.la
2332 test_strxcpyx_SOURCES = \
2333 src/test/test-strxcpyx.c
2335 test_strxcpyx_LDADD = \
2336 libsystemd-shared.la
2338 test_install_SOURCES = \
2339 src/test/test-install.c
2341 test_install_LDADD = \
2342 libsystemd-shared.la
2344 test_watchdog_SOURCES = \
2345 src/test/test-watchdog.c
2347 test_watchdog_LDADD = \
2348 libsystemd-shared.la
2350 test_sched_prio_SOURCES = \
2351 src/test/test-sched-prio.c
2353 test_sched_prio_CPPFLAGS = \
2357 test_sched_prio_CFLAGS = \
2361 test_sched_prio_LDADD = \
2364 test_conf_files_SOURCES = \
2365 src/test/test-conf-files.c
2367 test_conf_files_LDADD = \
2368 libsystemd-shared.la
2370 test_conf_parser_SOURCES = \
2371 src/test/test-conf-parser.c
2373 test_conf_parser_LDADD = \
2374 libsystemd-shared.la
2376 test_af_list_SOURCES = \
2377 src/test/test-af-list.c
2379 test_af_list_LDADD = \
2380 libsystemd-shared.la
2382 test_arphrd_list_SOURCES = \
2383 src/test/test-arphrd-list.c
2385 test_arphrd_list_LDADD = \
2386 libsystemd-shared.la
2388 # ------------------------------------------------------------------------------
2389 ## .PHONY so it always rebuilds it
2390 .PHONY: coverage lcov-run lcov-report coverage-sync
2392 # run lcov from scratch, always
2397 coverage_dir = coverage
2398 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2401 # reset run coverage tests
2403 @rm -rf $(coverage_dir)
2404 lcov $(coverage_opts) --zerocounters
2407 # generate report based on current coverage data
2409 $(MKDIR_P) $(coverage_dir)
2410 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2411 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2412 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2413 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2414 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2416 # lcov doesn't work properly with vpath builds, make sure that bad
2417 # output is not uploaded by mistake.
2418 coverage-sync: coverage
2419 test "$(builddir)" = "$(srcdir)"
2420 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2423 lcov-run lcov-report:
2424 echo "Need to reconfigure with --enable-coverage"
2427 # ------------------------------------------------------------------------------
2428 systemd_analyze_SOURCES = \
2429 src/analyze/analyze.c \
2430 src/analyze/analyze-verify.c \
2431 src/analyze/analyze-verify.h
2433 systemd_analyze_CFLAGS = \
2438 systemd_analyze_LDADD = \
2441 # ------------------------------------------------------------------------------
2442 systemd_initctl_SOURCES = \
2443 src/initctl/initctl.c
2445 systemd_initctl_LDADD = \
2446 libsystemd-shared.la
2448 # ------------------------------------------------------------------------------
2449 systemd_update_utmp_SOURCES = \
2450 src/update-utmp/update-utmp.c
2452 systemd_update_utmp_CFLAGS = \
2456 systemd_update_utmp_LDADD = \
2457 libsystemd-shared.la \
2460 # ------------------------------------------------------------------------------
2461 systemd_update_done_SOURCES = \
2462 src/update-done/update-done.c
2464 systemd_update_done_LDADD = \
2465 libsystemd-shared.la
2467 # ------------------------------------------------------------------------------
2468 systemd_shutdown_SOURCES = \
2471 src/core/shutdown.c \
2472 src/core/mount-setup.c \
2473 src/core/mount-setup.h \
2474 src/core/killall.h \
2477 systemd_shutdown_LDADD = \
2478 libsystemd-shared.la
2480 # ------------------------------------------------------------------------------
2482 systemd_modules_load_SOURCES = \
2483 src/modules-load/modules-load.c
2485 systemd_modules_load_CFLAGS = \
2489 systemd_modules_load_LDADD = \
2490 libsystemd-shared.la \
2493 rootlibexec_PROGRAMS += \
2494 systemd-modules-load
2496 nodist_systemunit_DATA += \
2497 units/systemd-modules-load.service
2499 SYSINIT_TARGET_WANTS += \
2500 systemd-modules-load.service
2503 nodist_systemunit_DATA += \
2504 units/kmod-static-nodes.service
2506 SYSINIT_TARGET_WANTS += \
2507 kmod-static-nodes.service
2512 units/systemd-modules-load.service.in \
2513 units/kmod-static-nodes.service.in
2515 # ------------------------------------------------------------------------------
2517 systemd_tmpfiles_SOURCES = \
2518 src/tmpfiles/tmpfiles.c
2520 systemd_tmpfiles_CFLAGS = \
2524 systemd_tmpfiles_LDADD = \
2525 libsystemd-shared.la \
2528 rootbin_PROGRAMS += \
2531 dist_systemunit_DATA += \
2532 units/systemd-tmpfiles-clean.timer
2534 nodist_systemunit_DATA += \
2535 units/systemd-tmpfiles-setup-dev.service \
2536 units/systemd-tmpfiles-setup.service \
2537 units/systemd-tmpfiles-clean.service
2539 nodist_tmpfiles_DATA = \
2540 tmpfiles.d/systemd.conf \
2543 dist_tmpfiles_DATA = \
2544 tmpfiles.d/systemd-nologin.conf \
2545 tmpfiles.d/tmp.conf \
2546 tmpfiles.d/x11.conf \
2547 tmpfiles.d/var.conf \
2548 tmpfiles.d/home.conf \
2549 tmpfiles.d/systemd-nspawn.conf \
2550 tmpfiles.d/journal-nocow.conf
2553 dist_tmpfiles_DATA += \
2554 tmpfiles.d/legacy.conf
2557 SYSINIT_TARGET_WANTS += \
2558 systemd-tmpfiles-setup-dev.service \
2559 systemd-tmpfiles-setup.service
2561 dist_zshcompletion_data += \
2562 shell-completion/zsh/_systemd-tmpfiles
2564 TIMERS_TARGET_WANTS += \
2565 systemd-tmpfiles-clean.timer
2569 $(sysconfdir)/tmpfiles.d
2573 tmpfiles.d/systemd.conf.m4 \
2574 tmpfiles.d/etc.conf.m4 \
2575 units/systemd-tmpfiles-setup-dev.service.in \
2576 units/systemd-tmpfiles-setup.service.in \
2577 units/systemd-tmpfiles-clean.service.in
2579 # ------------------------------------------------------------------------------
2581 systemd_sysusers_SOURCES = \
2582 src/sysusers/sysusers.c
2584 systemd_sysusers_LDADD = \
2585 libsystemd-shared.la
2587 rootbin_PROGRAMS += \
2590 nodist_systemunit_DATA += \
2591 units/systemd-sysusers.service
2593 SYSINIT_TARGET_WANTS += \
2594 systemd-sysusers.service
2596 nodist_sysusers_DATA = \
2597 sysusers.d/systemd.conf \
2598 sysusers.d/basic.conf
2601 nodist_sysusers_DATA += \
2602 sysusers.d/systemd-remote.conf
2610 units/systemd-sysusers.service.in \
2611 sysusers.d/systemd.conf.m4 \
2612 sysusers.d/systemd-remote.conf.m4 \
2613 sysusers.d/basic.conf.in
2615 # ------------------------------------------------------------------------------
2616 dist_factory_etc_DATA = \
2617 factory/etc/nsswitch.conf
2620 dist_factory_pam_DATA = \
2621 factory/etc/pam.d/system-auth \
2622 factory/etc/pam.d/other
2625 # ------------------------------------------------------------------------------
2627 systemd_firstboot_SOURCES = \
2628 src/firstboot/firstboot.c
2630 systemd_firstboot_LDADD = \
2631 libsystemd-shared.la \
2634 rootbin_PROGRAMS += \
2637 nodist_systemunit_DATA += \
2638 units/systemd-firstboot.service
2640 SYSINIT_TARGET_WANTS += \
2641 systemd-firstboot.service
2645 units/systemd-firstboot.service.in
2647 # ------------------------------------------------------------------------------
2648 systemd_machine_id_setup_SOURCES = \
2649 src/machine-id-setup/machine-id-setup-main.c \
2650 src/core/machine-id-setup.c \
2651 src/core/machine-id-setup.h
2653 systemd_machine_id_setup_LDADD = \
2654 libsystemd-shared.la
2656 SYSINIT_TARGET_WANTS += \
2657 systemd-machine-id-commit.service
2659 # ------------------------------------------------------------------------------
2660 systemd_sysctl_SOURCES = \
2663 systemd_sysctl_LDADD = \
2664 libsystemd-shared.la
2666 # ------------------------------------------------------------------------------
2667 systemd_sleep_SOURCES = \
2670 systemd_sleep_LDADD = \
2671 libsystemd-shared.la
2673 # ------------------------------------------------------------------------------
2674 systemd_fsck_SOURCES = \
2677 systemd_fsck_LDADD = \
2678 libsystemd-shared.la
2680 # ------------------------------------------------------------------------------
2681 systemd_ac_power_SOURCES = \
2682 src/ac-power/ac-power.c
2684 systemd_ac_power_LDADD = \
2685 libsystemd-shared.la
2687 # ------------------------------------------------------------------------------
2688 systemd_detect_virt_SOURCES = \
2689 src/detect-virt/detect-virt.c
2691 systemd_detect_virt_LDADD = \
2692 libsystemd-shared.la
2694 INSTALL_EXEC_HOOKS += \
2695 systemd-detect-virt-install-hook
2697 # ------------------------------------------------------------------------------
2698 systemd_delta_SOURCES = \
2701 systemd_delta_LDADD = \
2702 libsystemd-shared.la
2704 # ------------------------------------------------------------------------------
2705 systemd_getty_generator_SOURCES = \
2706 src/getty-generator/getty-generator.c
2708 systemd_getty_generator_LDADD = \
2709 libsystemd-shared.la
2711 # ------------------------------------------------------------------------------
2712 systemd_debug_generator_SOURCES = \
2713 src/debug-generator/debug-generator.c
2715 systemd_debug_generator_LDADD = \
2716 libsystemd-shared.la
2718 # ------------------------------------------------------------------------------
2719 systemd_fstab_generator_SOURCES = \
2720 src/fstab-generator/fstab-generator.c \
2721 src/core/mount-setup.c
2723 systemd_fstab_generator_LDADD = \
2724 libsystemd-shared.la
2726 # ------------------------------------------------------------------------------
2727 systemd_system_update_generator_SOURCES = \
2728 src/system-update-generator/system-update-generator.c
2730 systemd_system_update_generator_LDADD = \
2731 libsystemd-shared.la
2733 # ------------------------------------------------------------------------------
2735 systemgenerator_PROGRAMS += \
2736 systemd-hibernate-resume-generator
2738 rootlibexec_PROGRAMS += \
2739 systemd-hibernate-resume
2741 systemd_hibernate_resume_SOURCES = \
2742 src/hibernate-resume/hibernate-resume.c
2744 systemd_hibernate_resume_LDADD = \
2745 libsystemd-shared.la
2747 systemd_hibernate_resume_generator_SOURCES = \
2748 src/hibernate-resume/hibernate-resume-generator.c
2750 systemd_hibernate_resume_generator_LDADD = \
2751 libsystemd-shared.la
2753 dist_systemunit_DATA += \
2754 units/hibernate.target \
2755 units/hybrid-sleep.target
2757 nodist_systemunit_DATA += \
2758 units/systemd-hibernate.service \
2759 units/systemd-hibernate-resume@.service \
2760 units/systemd-hybrid-sleep.service
2764 units/systemd-hibernate.service.in \
2765 units/systemd-hibernate-resume@.service.in \
2766 units/systemd-hybrid-sleep.service.in
2768 # ------------------------------------------------------------------------------
2774 bootctl_CPPFLAGS = \
2776 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2777 -DBOOTLIBDIR=\"$(bootlibdir)\"
2784 libsystemd-shared.la \
2790 dist_bashcompletion_data += \
2791 shell-completion/bash/bootctl
2793 dist_zshcompletion_data += \
2794 shell-completion/zsh/_bootctl
2797 # ------------------------------------------------------------------------------
2801 -I$(top_builddir) -include config.h \
2802 -I$(EFI_INC_DIR)/efi \
2803 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2804 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2817 -fno-strict-aliasing \
2818 -fno-stack-protector \
2820 -Wno-missing-field-initializers
2827 -DEFI_FUNCTION_WRAPPER \
2828 -DGNU_EFI_USE_MS_ABI
2839 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2845 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2847 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2848 # and add required symbols manually.
2850 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2851 EFI_FORMAT = -O binary
2853 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2858 # ------------------------------------------------------------------------------
2859 systemd_boot_headers = \
2860 src/boot/efi/util.h \
2861 src/boot/efi/console.h \
2862 src/boot/efi/graphics.h \
2863 src/boot/efi/pefile.h \
2864 src/boot/efi/measure.h \
2867 systemd_boot_sources = \
2868 src/boot/efi/util.c \
2869 src/boot/efi/console.c \
2870 src/boot/efi/graphics.c \
2871 src/boot/efi/pefile.c \
2872 src/boot/efi/disk.c \
2873 src/boot/efi/measure.c \
2876 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2878 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2879 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2880 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2884 bootlib_DATA = $(systemd_boot)
2886 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2887 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2888 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2890 $(systemd_boot_solib): $(systemd_boot_objects)
2891 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2892 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2893 nm -D -u $@ | grep ' U ' && exit 1 || :
2895 $(systemd_boot): $(systemd_boot_solib)
2896 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2897 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2901 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2903 # ------------------------------------------------------------------------------
2905 src/boot/efi/util.h \
2906 src/boot/efi/pefile.h \
2907 src/boot/efi/disk.h \
2908 src/boot/efi/graphics.h \
2909 src/boot/efi/splash.h \
2910 src/boot/efi/measure.h \
2911 src/boot/efi/linux.h
2914 src/boot/efi/util.c \
2915 src/boot/efi/pefile.c \
2916 src/boot/efi/disk.c \
2917 src/boot/efi/graphics.c \
2918 src/boot/efi/splash.c \
2919 src/boot/efi/linux.c \
2920 src/boot/efi/measure.c \
2928 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2929 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2930 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2934 bootlib_DATA += $(stub)
2936 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2937 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2938 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2940 $(stub_solib): $(stub_objects)
2941 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2942 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2943 nm -D -u $@ | grep ' U ' && exit 1 || :
2945 $(stub): $(stub_solib)
2946 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2947 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2951 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2954 # ------------------------------------------------------------------------------
2955 CLEANFILES += test-efi-disk.img
2957 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2958 $(AM_V_GEN)test/test-efi-create-disk.sh
2960 test-efi: test-efi-disk.img
2961 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2963 EXTRA_DIST += test/test-efi-create-disk.sh
2965 # ------------------------------------------------------------------------------
2967 systemgenerator_PROGRAMS += \
2968 systemd-gpt-auto-generator
2970 systemd_gpt_auto_generator_SOURCES = \
2971 src/gpt-auto-generator/gpt-auto-generator.c \
2972 src/basic/blkid-util.h
2974 systemd_gpt_auto_generator_LDADD = \
2975 libsystemd-shared.la \
2978 systemd_gpt_auto_generator_CFLAGS = \
2983 # ------------------------------------------------------------------------------
2984 dist_xinitrc_SCRIPTS = \
2985 xorg/50-systemd-user.sh
2987 # ------------------------------------------------------------------------------
2988 systemd_sysv_generator_SOURCES = \
2989 src/sysv-generator/sysv-generator.c
2991 systemd_sysv_generator_LDADD = \
2994 # ------------------------------------------------------------------------------
2995 systemd_rc_local_generator_SOURCES = \
2996 src/rc-local-generator/rc-local-generator.c
2998 systemd_rc_local_generator_LDADD = \
2999 libsystemd-shared.la
3001 # ------------------------------------------------------------------------------
3002 systemd_remount_fs_SOURCES = \
3003 src/remount-fs/remount-fs.c \
3004 src/core/mount-setup.c \
3005 src/core/mount-setup.h
3007 systemd_remount_fs_LDADD = \
3008 libsystemd-shared.la
3010 # ------------------------------------------------------------------------------
3011 systemd_cgroups_agent_SOURCES = \
3012 src/cgroups-agent/cgroups-agent.c
3014 systemd_cgroups_agent_LDADD = \
3015 libsystemd-shared.la
3017 # ------------------------------------------------------------------------------
3018 systemd_escape_SOURCES = \
3021 systemd_escape_LDADD = \
3022 libsystemd-shared.la
3024 # -----------------------------------------------------------------------------
3025 systemctl_SOURCES = \
3026 src/systemctl/systemctl.c
3029 libsystemd-shared.la
3031 # ------------------------------------------------------------------------------
3032 systemd_notify_SOURCES = \
3035 systemd_notify_LDADD = \
3036 libsystemd-shared.la
3038 # ------------------------------------------------------------------------------
3039 systemd_path_SOURCES = \
3042 systemd_path_LDADD = \
3043 libsystemd-shared.la
3045 # ------------------------------------------------------------------------------
3046 systemd_ask_password_SOURCES = \
3047 src/ask-password/ask-password.c
3049 systemd_ask_password_LDADD = \
3050 libsystemd-shared.la
3052 # ------------------------------------------------------------------------------
3053 systemd_reply_password_SOURCES = \
3054 src/reply-password/reply-password.c
3056 systemd_reply_password_LDADD = \
3057 libsystemd-shared.la
3059 # ------------------------------------------------------------------------------
3060 systemd_cgls_SOURCES = \
3063 systemd_cgls_LDADD = \
3064 libsystemd-shared.la
3066 # ------------------------------------------------------------------------------
3067 systemd_cgtop_SOURCES = \
3070 systemd_cgtop_LDADD = \
3071 libsystemd-shared.la
3073 # ------------------------------------------------------------------------------
3074 systemd_nspawn_SOURCES = \
3075 src/nspawn/nspawn.c \
3076 src/nspawn/nspawn-settings.c \
3077 src/nspawn/nspawn-settings.h \
3078 src/nspawn/nspawn-mount.c \
3079 src/nspawn/nspawn-mount.h \
3080 src/nspawn/nspawn-network.c \
3081 src/nspawn/nspawn-network.h \
3082 src/nspawn/nspawn-expose-ports.c \
3083 src/nspawn/nspawn-expose-ports.h \
3084 src/nspawn/nspawn-cgroup.c \
3085 src/nspawn/nspawn-cgroup.h \
3086 src/nspawn/nspawn-seccomp.c \
3087 src/nspawn/nspawn-seccomp.h \
3088 src/nspawn/nspawn-register.c \
3089 src/nspawn/nspawn-register.h \
3090 src/nspawn/nspawn-setuid.c \
3091 src/nspawn/nspawn-setuid.h \
3092 src/nspawn/nspawn-stub-pid1.c \
3093 src/nspawn/nspawn-stub-pid1.h \
3094 src/nspawn/nspawn-patch-uid.c \
3095 src/nspawn/nspawn-patch-uid.h \
3096 src/core/mount-setup.c \
3097 src/core/mount-setup.h \
3098 src/core/loopback-setup.c \
3099 src/core/loopback-setup.h
3101 nodist_systemd_nspawn_SOURCES = \
3102 src/nspawn/nspawn-gperf.c
3104 gperf_gperf_sources += \
3105 src/nspawn/nspawn-gperf.gperf
3107 systemd_nspawn_CFLAGS = \
3114 systemd_nspawn_LDADD = \
3115 libsystemd-shared.la \
3122 systemd_nspawn_LDADD += \
3126 test_patch_uid_SOURCES = \
3127 src/nspawn/nspawn-patch-uid.c \
3128 src/nspawn/nspawn-patch-uid.h \
3129 src/nspawn/test-patch-uid.c
3131 test_patch_uid_CFLAGS = \
3135 test_patch_uid_LDADD = \
3136 libsystemd-shared.la \
3142 # ------------------------------------------------------------------------------
3143 systemd_run_SOURCES = \
3146 systemd_run_LDADD = \
3147 libsystemd-shared.la
3149 # ------------------------------------------------------------------------------
3150 systemd_mount_SOURCES = \
3151 src/mount/mount-tool.c
3153 systemd_mount_LDADD = \
3154 libsystemd-shared.la
3156 # ------------------------------------------------------------------------------
3157 systemd_stdio_bridge_SOURCES = \
3158 src/stdio-bridge/stdio-bridge.c
3160 systemd_stdio_bridge_LDADD = \
3161 libsystemd-shared.la
3163 # ------------------------------------------------------------------------------
3164 systemd_tty_ask_password_agent_SOURCES = \
3165 src/tty-ask-password-agent/tty-ask-password-agent.c
3167 systemd_tty_ask_password_agent_LDADD = \
3168 libsystemd-shared.la
3170 # ------------------------------------------------------------------------------
3171 libsystemd_internal_la_SOURCES = \
3172 src/systemd/sd-bus.h \
3173 src/systemd/sd-bus-protocol.h \
3174 src/systemd/sd-bus-vtable.h \
3175 src/systemd/sd-utf8.h \
3176 src/systemd/sd-event.h \
3177 src/systemd/sd-netlink.h \
3178 src/systemd/sd-resolve.h \
3179 src/systemd/sd-login.h \
3180 src/systemd/sd-id128.h \
3181 src/systemd/sd-daemon.h \
3182 src/systemd/sd-path.h \
3183 src/systemd/sd-network.h \
3184 src/systemd/sd-hwdb.h \
3185 src/systemd/sd-device.h \
3186 src/libsystemd/libsystemd.sym \
3187 src/libsystemd/sd-bus/sd-bus.c \
3188 src/libsystemd/sd-bus/bus-control.c \
3189 src/libsystemd/sd-bus/bus-control.h \
3190 src/libsystemd/sd-bus/bus-error.c \
3191 src/libsystemd/sd-bus/bus-error.h \
3192 src/libsystemd/sd-bus/bus-common-errors.h \
3193 src/libsystemd/sd-bus/bus-common-errors.c \
3194 src/libsystemd/sd-bus/bus-internal.c \
3195 src/libsystemd/sd-bus/bus-internal.h \
3196 src/libsystemd/sd-bus/bus-socket.c \
3197 src/libsystemd/sd-bus/bus-socket.h \
3198 src/libsystemd/sd-bus/bus-kernel.c \
3199 src/libsystemd/sd-bus/bus-kernel.h \
3200 src/libsystemd/sd-bus/bus-container.c \
3201 src/libsystemd/sd-bus/bus-container.h \
3202 src/libsystemd/sd-bus/bus-message.c \
3203 src/libsystemd/sd-bus/bus-message.h \
3204 src/libsystemd/sd-bus/bus-creds.c \
3205 src/libsystemd/sd-bus/bus-creds.h \
3206 src/libsystemd/sd-bus/bus-signature.c \
3207 src/libsystemd/sd-bus/bus-signature.h \
3208 src/libsystemd/sd-bus/bus-type.c \
3209 src/libsystemd/sd-bus/bus-type.h \
3210 src/libsystemd/sd-bus/bus-match.c \
3211 src/libsystemd/sd-bus/bus-match.h \
3212 src/libsystemd/sd-bus/bus-bloom.c \
3213 src/libsystemd/sd-bus/bus-bloom.h \
3214 src/libsystemd/sd-bus/bus-introspect.c \
3215 src/libsystemd/sd-bus/bus-introspect.h \
3216 src/libsystemd/sd-bus/bus-objects.c \
3217 src/libsystemd/sd-bus/bus-objects.h \
3218 src/libsystemd/sd-bus/bus-gvariant.c \
3219 src/libsystemd/sd-bus/bus-gvariant.h \
3220 src/libsystemd/sd-bus/bus-convenience.c \
3221 src/libsystemd/sd-bus/bus-track.c \
3222 src/libsystemd/sd-bus/bus-track.h \
3223 src/libsystemd/sd-bus/bus-slot.c \
3224 src/libsystemd/sd-bus/bus-slot.h \
3225 src/libsystemd/sd-bus/bus-protocol.h \
3226 src/libsystemd/sd-bus/kdbus.h \
3227 src/libsystemd/sd-bus/bus-dump.c \
3228 src/libsystemd/sd-bus/bus-dump.h \
3229 src/libsystemd/sd-utf8/sd-utf8.c \
3230 src/libsystemd/sd-event/sd-event.c \
3231 src/libsystemd/sd-netlink/sd-netlink.c \
3232 src/libsystemd/sd-netlink/netlink-internal.h \
3233 src/libsystemd/sd-netlink/netlink-message.c \
3234 src/libsystemd/sd-netlink/netlink-socket.c \
3235 src/libsystemd/sd-netlink/rtnl-message.c \
3236 src/libsystemd/sd-netlink/netlink-types.h \
3237 src/libsystemd/sd-netlink/netlink-types.c \
3238 src/libsystemd/sd-netlink/netlink-util.h \
3239 src/libsystemd/sd-netlink/netlink-util.c \
3240 src/libsystemd/sd-netlink/local-addresses.h \
3241 src/libsystemd/sd-netlink/local-addresses.c \
3242 src/libsystemd/sd-id128/sd-id128.c \
3243 src/libsystemd/sd-id128/id128-util.h \
3244 src/libsystemd/sd-id128/id128-util.c \
3245 src/libsystemd/sd-daemon/sd-daemon.c \
3246 src/libsystemd/sd-login/sd-login.c \
3247 src/libsystemd/sd-path/sd-path.c \
3248 src/libsystemd/sd-network/sd-network.c \
3249 src/libsystemd/sd-network/network-util.h \
3250 src/libsystemd/sd-network/network-util.c \
3251 src/libsystemd/sd-hwdb/sd-hwdb.c \
3252 src/libsystemd/sd-hwdb/hwdb-util.h \
3253 src/libsystemd/sd-hwdb/hwdb-internal.h \
3254 src/libsystemd/sd-device/device-internal.h \
3255 src/libsystemd/sd-device/device-util.h \
3256 src/libsystemd/sd-device/device-enumerator.c \
3257 src/libsystemd/sd-device/device-enumerator-private.h \
3258 src/libsystemd/sd-device/sd-device.c \
3259 src/libsystemd/sd-device/device-private.c \
3260 src/libsystemd/sd-device/device-private.h \
3261 src/libsystemd/sd-resolve/sd-resolve.c
3263 libsystemd_internal_la_LIBADD = \
3266 noinst_LTLIBRARIES += \
3267 libsystemd-internal.la
3270 src/libsystemd/libsystemd.pc.in \
3271 src/libsystemd/sd-bus/DIFFERENCES \
3272 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3274 libsystemd_la_SOURCES =
3276 libsystemd_la_LDFLAGS = \
3278 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3279 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3281 libsystemd_la_LIBADD = \
3282 libsystemd-internal.la \
3284 libsystemd-journal-internal.la
3286 libsystemd-install-hook:
3287 libname=libsystemd.so && $(move-to-rootlibdir)
3289 libsystemd-uninstall-hook:
3290 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3292 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3293 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3295 pkgconfiglib_DATA += \
3296 src/libsystemd/libsystemd.pc
3298 pkginclude_HEADERS += \
3299 src/systemd/sd-bus.h \
3300 src/systemd/sd-bus-protocol.h \
3301 src/systemd/sd-bus-vtable.h \
3302 src/systemd/sd-event.h \
3303 src/systemd/sd-login.h \
3304 src/systemd/sd-id128.h \
3305 src/systemd/sd-daemon.h
3307 lib_LTLIBRARIES += \
3312 test-bus-signature \
3313 test-bus-benchmark \
3319 test-bus-kernel-bloom \
3320 test-bus-zero-copy \
3321 test-bus-introspect \
3328 test-local-addresses \
3334 test_bus_marshal_SOURCES = \
3335 src/libsystemd/sd-bus/test-bus-marshal.c
3337 test_bus_marshal_LDADD = \
3338 libsystemd-shared.la \
3342 test_bus_marshal_CFLAGS = \
3347 test_bus_signature_SOURCES = \
3348 src/libsystemd/sd-bus/test-bus-signature.c
3350 test_bus_signature_LDADD = \
3351 libsystemd-shared.la
3353 test_bus_chat_SOURCES = \
3354 src/libsystemd/sd-bus/test-bus-chat.c
3356 test_bus_chat_LDADD = \
3357 libsystemd-shared.la
3359 test_bus_cleanup_SOURCES = \
3360 src/libsystemd/sd-bus/test-bus-cleanup.c
3362 test_bus_cleanup_CFLAGS = \
3366 test_bus_cleanup_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 lib_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 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3661 libudev-install-hook:
3662 libname=libudev.so && $(move-to-rootlibdir)
3664 libudev-uninstall-hook:
3665 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3667 INSTALL_EXEC_HOOKS += libudev-install-hook
3668 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3670 # ------------------------------------------------------------------------------
3671 noinst_LTLIBRARIES += \
3674 libudev_internal_la_SOURCES =\
3675 $(libudev_la_SOURCES)
3677 # ------------------------------------------------------------------------------
3679 $(sysconfdir)/udev/rules.d
3681 dist_network_DATA = \
3682 network/99-default.link \
3683 network/80-container-host0.network \
3684 network/80-container-ve.network \
3685 network/80-container-vz.network
3687 dist_udevrules_DATA += \
3688 rules/50-udev-default.rules \
3689 rules/60-block.rules \
3690 rules/60-drm.rules \
3691 rules/60-evdev.rules \
3692 rules/60-persistent-storage-tape.rules \
3693 rules/60-persistent-input.rules \
3694 rules/60-persistent-alsa.rules \
3695 rules/60-persistent-storage.rules \
3696 rules/60-serial.rules \
3697 rules/64-btrfs.rules \
3698 rules/70-mouse.rules \
3699 rules/70-touchpad.rules \
3700 rules/75-net-description.rules \
3701 rules/78-sound-card.rules \
3702 rules/80-net-setup-link.rules
3704 nodist_udevrules_DATA += \
3705 rules/99-systemd.rules
3707 udevconfdir = $(sysconfdir)/udev
3708 dist_udevconf_DATA = \
3711 pkgconfigdata_DATA += \
3715 rules/99-systemd.rules.in \
3719 units/systemd-udevd.service.in \
3720 units/systemd-udev-trigger.service.in \
3721 units/systemd-udev-settle.service.in
3723 SOCKETS_TARGET_WANTS += \
3724 systemd-udevd-control.socket \
3725 systemd-udevd-kernel.socket
3727 SYSINIT_TARGET_WANTS += \
3728 systemd-udevd.service \
3729 systemd-udev-trigger.service
3731 rootbin_PROGRAMS += \
3734 rootlibexec_PROGRAMS += \
3737 noinst_LTLIBRARIES += \
3740 src/udev/keyboard-keys-list.txt:
3741 $(AM_V_at)$(MKDIR_P) $(dir $@)
3742 $(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 } }' > $@
3744 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3745 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3747 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3748 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3750 gperf_txt_sources += \
3751 src/udev/keyboard-keys-list.txt
3753 libudev_core_la_SOURCES = \
3755 src/udev/udev-event.c \
3756 src/udev/udev-watch.c \
3757 src/udev/udev-node.c \
3758 src/udev/udev-rules.c \
3759 src/udev/udev-ctrl.c \
3760 src/udev/udev-builtin.c \
3761 src/udev/udev-builtin-btrfs.c \
3762 src/udev/udev-builtin-hwdb.c \
3763 src/udev/udev-builtin-input_id.c \
3764 src/udev/udev-builtin-keyboard.c \
3765 src/udev/udev-builtin-net_id.c \
3766 src/udev/udev-builtin-net_setup_link.c \
3767 src/udev/udev-builtin-path_id.c \
3768 src/udev/udev-builtin-usb_id.c \
3769 src/udev/net/link-config.h \
3770 src/udev/net/link-config.c \
3771 src/udev/net/ethtool-util.h \
3772 src/udev/net/ethtool-util.c
3774 nodist_libudev_core_la_SOURCES = \
3775 src/udev/keyboard-keys-from-name.h \
3776 src/udev/net/link-config-gperf.c
3778 gperf_gperf_sources += \
3779 src/udev/net/link-config-gperf.gperf
3781 libudev_core_la_CFLAGS = \
3786 libudev_core_la_LIBADD = \
3787 libsystemd-network.la \
3793 libudev_core_la_SOURCES += \
3794 src/udev/udev-builtin-kmod.c
3796 dist_udevrules_DATA += \
3797 rules/80-drivers.rules
3801 libudev_core_la_SOURCES += \
3802 src/udev/udev-builtin-blkid.c
3806 libudev_core_la_SOURCES += \
3807 src/udev/udev-builtin-uaccess.c \
3808 src/login/logind-acl.c \
3809 src/libsystemd/sd-login/sd-login.c \
3810 src/systemd/sd-login.h
3813 systemd_udevd_SOURCES = \
3816 systemd_udevd_LDADD = \
3821 src/udev/udevadm.c \
3822 src/udev/udevadm-info.c \
3823 src/udev/udevadm-control.c \
3824 src/udev/udevadm-monitor.c \
3825 src/udev/udevadm-hwdb.c \
3826 src/udev/udevadm-settle.c \
3827 src/udev/udevadm-trigger.c \
3828 src/udev/udevadm-test.c \
3829 src/udev/udevadm-test-builtin.c \
3830 src/udev/udevadm-util.c \
3831 src/udev/udevadm-util.h
3837 # ------------------------------------------------------------------------------
3840 $(sysconfdir)/udev/hwdb.d
3842 systemd_hwdb_SOURCES = \
3843 src/libsystemd/sd-hwdb/hwdb-internal.h \
3846 systemd_hwdb_LDADD = \
3849 rootbin_PROGRAMS += \
3852 dist_udevhwdb_DATA = \
3853 hwdb/20-pci-vendor-model.hwdb \
3854 hwdb/20-pci-classes.hwdb \
3855 hwdb/20-usb-vendor-model.hwdb \
3856 hwdb/20-usb-classes.hwdb \
3857 hwdb/20-sdio-vendor-model.hwdb \
3858 hwdb/20-sdio-classes.hwdb \
3859 hwdb/20-bluetooth-vendor-product.hwdb \
3860 hwdb/20-acpi-vendor.hwdb \
3862 hwdb/20-net-ifname.hwdb \
3863 hwdb/60-evdev.hwdb \
3864 hwdb/60-keyboard.hwdb \
3865 hwdb/70-mouse.hwdb \
3866 hwdb/70-pointingstick.hwdb \
3867 hwdb/70-touchpad.hwdb
3869 SYSINIT_TARGET_WANTS += \
3870 systemd-hwdb-update.service
3872 # Update hwdb on installation. Do not bother if installing
3873 # in DESTDIR, since this is likely for packaging purposes.
3875 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3877 INSTALL_DATA_HOOKS += \
3881 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3885 units/systemd-hwdb-update.service.in \
3886 hwdb/ids-update.pl \
3889 # ------------------------------------------------------------------------------
3896 test/rule-syntax-check.py \
3901 test/sysv-generator-test.py
3912 test_libudev_SOURCES = \
3913 src/test/test-libudev.c
3915 test_libudev_LDADD = \
3916 libsystemd-shared.la
3918 test_udev_SOURCES = \
3919 src/test/test-udev.c
3923 libsystemd-shared.la \
3933 # packed sysfs test tree
3934 test/sys: test/sys.tar.xz
3936 $(AM_V_at)$(MKDIR_P) $(dir $@)
3937 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3942 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3947 test/rule-syntax-check.py \
3948 test/sysv-generator-test.py \
3952 # ------------------------------------------------------------------------------
3954 src/udev/ata_id/ata_id.c
3959 udevlibexec_PROGRAMS += \
3962 # ------------------------------------------------------------------------------
3963 cdrom_id_SOURCES = \
3964 src/udev/cdrom_id/cdrom_id.c
3969 udevlibexec_PROGRAMS += \
3972 dist_udevrules_DATA += \
3973 rules/60-cdrom_id.rules
3975 # ------------------------------------------------------------------------------
3977 src/udev/collect/collect.c
3982 udevlibexec_PROGRAMS += \
3985 # ------------------------------------------------------------------------------
3987 src/udev/scsi_id/scsi_id.c \
3988 src/udev/scsi_id/scsi_serial.c \
3989 src/udev/scsi_id/scsi.h \
3990 src/udev/scsi_id/scsi_id.h
3995 udevlibexec_PROGRAMS += \
3999 src/udev/scsi_id/README
4001 # ------------------------------------------------------------------------------
4003 src/udev/v4l_id/v4l_id.c
4008 udevlibexec_PROGRAMS += \
4011 dist_udevrules_DATA += \
4012 rules/60-persistent-v4l.rules
4014 # ------------------------------------------------------------------------------
4015 mtd_probe_SOURCES = \
4016 src/udev/mtd_probe/mtd_probe.c \
4017 src/udev/mtd_probe/mtd_probe.h \
4018 src/udev/mtd_probe/probe_smartmedia.c
4020 dist_udevrules_DATA += \
4021 rules/75-probe_mtd.rules
4023 udevlibexec_PROGRAMS += \
4026 # ------------------------------------------------------------------------------
4027 test_id128_SOURCES = \
4028 src/test/test-id128.c
4030 test_id128_LDADD = \
4031 libsystemd-shared.la
4036 # ------------------------------------------------------------------------------
4039 systemd-socket-activate
4041 systemd_socket_activate_SOURCES = \
4042 src/activate/activate.c
4044 systemd_socket_activate_LDADD = \
4045 libsystemd-shared.la
4047 # ------------------------------------------------------------------------------
4048 systemd_journald_SOURCES = \
4049 src/journal/journald.c \
4050 src/journal/journald-server.h
4052 systemd_journald_LDADD = \
4053 libjournal-core.la \
4054 libsystemd-shared.la
4056 systemd_cat_SOURCES = \
4059 systemd_cat_LDADD = \
4063 rootlibexec_PROGRAMS += \
4064 systemd-journal-upload
4066 systemd_journal_upload_SOURCES = \
4067 src/journal-remote/journal-upload.h \
4068 src/journal-remote/journal-upload.c \
4069 src/journal-remote/journal-upload-journal.c
4071 systemd_journal_upload_CFLAGS = \
4075 systemd_journal_upload_LDADD = \
4076 libsystemd-shared.la \
4079 nodist_systemunit_DATA += \
4080 units/systemd-journal-upload.service
4082 nodist_pkgsysconf_DATA += \
4083 src/journal-remote/journal-upload.conf
4087 units/systemd-journal-upload.service.in \
4088 src/journal-remote/journal-upload.conf.in
4091 rootlibexec_PROGRAMS += \
4092 systemd-journal-remote
4094 systemd_journal_remote_SOURCES = \
4095 src/journal-remote/journal-remote-parse.h \
4096 src/journal-remote/journal-remote-parse.c \
4097 src/journal-remote/journal-remote-write.h \
4098 src/journal-remote/journal-remote-write.c \
4099 src/journal-remote/journal-remote.h \
4100 src/journal-remote/journal-remote.c
4102 systemd_journal_remote_LDADD = \
4105 systemd_journal_remote_SOURCES += \
4106 src/journal-remote/microhttpd-util.h \
4107 src/journal-remote/microhttpd-util.c
4109 systemd_journal_remote_CFLAGS = \
4111 $(MICROHTTPD_CFLAGS)
4113 systemd_journal_remote_LDADD += \
4117 dist_tmpfiles_DATA += \
4118 tmpfiles.d/systemd-remote.conf
4122 systemd_journal_remote_LDADD += \
4126 # systemd-journal-remote make sense mostly with full crypto stack
4127 dist_systemunit_DATA += \
4128 units/systemd-journal-remote.socket
4130 nodist_systemunit_DATA += \
4131 units/systemd-journal-remote.service
4133 journal-remote-install-hook: journal-install-hook
4134 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4135 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4136 -chmod 755 $(DESTDIR)/var/log/journal/remote
4138 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4140 nodist_pkgsysconf_DATA += \
4141 src/journal-remote/journal-remote.conf
4144 units/systemd-journal-remote.service.in \
4145 src/journal-remote/journal-remote.conf.in \
4146 src/journal-remote/log-generator.py
4149 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4150 journalctl_CFLAGS = \
4153 journalctl_SOURCES = \
4154 src/journal/journalctl.c
4156 journalctl_LDADD = \
4157 libsystemd-shared.la \
4161 journalctl_SOURCES += \
4162 src/journal/journal-qrcode.c \
4163 src/journal/journal-qrcode.h
4165 journalctl_CFLAGS += \
4168 journalctl_LDADD += \
4172 test_journal_SOURCES = \
4173 src/journal/test-journal.c
4175 test_journal_LDADD = \
4178 test_journal_send_SOURCES = \
4179 src/journal/test-journal-send.c
4181 test_journal_send_LDADD = \
4184 test_journal_syslog_SOURCES = \
4185 src/journal/test-journal-syslog.c
4187 test_journal_syslog_LDADD = \
4190 test_journal_match_SOURCES = \
4191 src/journal/test-journal-match.c
4193 test_journal_match_LDADD = \
4196 test_journal_enum_SOURCES = \
4197 src/journal/test-journal-enum.c
4199 test_journal_enum_LDADD = \
4202 test_journal_stream_SOURCES = \
4203 src/journal/test-journal-stream.c
4205 test_journal_stream_LDADD = \
4208 test_journal_flush_SOURCES = \
4209 src/journal/test-journal-flush.c
4211 test_journal_flush_LDADD = \
4214 test_journal_init_SOURCES = \
4215 src/journal/test-journal-init.c
4217 test_journal_init_LDADD = \
4220 test_journal_verify_SOURCES = \
4221 src/journal/test-journal-verify.c
4223 test_journal_verify_LDADD = \
4226 test_journal_interleaving_SOURCES = \
4227 src/journal/test-journal-interleaving.c
4229 test_journal_interleaving_LDADD = \
4232 test_mmap_cache_SOURCES = \
4233 src/journal/test-mmap-cache.c
4235 test_mmap_cache_LDADD = \
4238 test_catalog_SOURCES = \
4239 src/journal/test-catalog.c
4241 test_catalog_CPPFLAGS = \
4243 -DCATALOG_DIR=\"$(abs_top_builddir)/catalog\"
4245 test_catalog_LDADD = \
4248 test_compress_SOURCES = \
4249 src/journal/test-compress.c
4251 test_compress_LDADD = \
4252 libsystemd-shared.la
4255 test_compress_LDADD += \
4259 test_compress_benchmark_SOURCES = \
4260 src/journal/test-compress-benchmark.c
4262 test_compress_benchmark_LDADD = \
4263 libsystemd-shared.la
4265 test_audit_type_SOURCES = \
4266 src/journal/test-audit-type.c
4268 test_audit_type_LDADD = \
4271 libjournal_core_la_SOURCES = \
4272 src/journal/journald-kmsg.c \
4273 src/journal/journald-kmsg.h \
4274 src/journal/journald-syslog.c \
4275 src/journal/journald-syslog.h \
4276 src/journal/journald-stream.c \
4277 src/journal/journald-stream.h \
4278 src/journal/journald-server.c \
4279 src/journal/journald-server.h \
4280 src/journal/journald-console.c \
4281 src/journal/journald-console.h \
4282 src/journal/journald-wall.c \
4283 src/journal/journald-wall.h \
4284 src/journal/journald-native.c \
4285 src/journal/journald-native.h \
4286 src/journal/journald-audit.c \
4287 src/journal/journald-audit.h \
4288 src/journal/journald-rate-limit.c \
4289 src/journal/journald-rate-limit.h \
4290 src/journal/journal-internal.h
4292 nodist_libjournal_core_la_SOURCES = \
4293 src/journal/journald-gperf.c
4295 libjournal_core_la_LIBADD = \
4296 libsystemd-shared.la
4298 noinst_LTLIBRARIES += \
4301 journal-install-hook:
4302 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4303 -chown 0:0 $(DESTDIR)/var/log/journal
4304 -chmod 755 $(DESTDIR)/var/log/journal
4305 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4306 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4308 journal-uninstall-hook:
4309 -rmdir $(DESTDIR)/var/log/journal/remote
4310 -rmdir $(DESTDIR)/var/log/journal/
4312 INSTALL_EXEC_HOOKS += journal-install-hook
4313 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4315 # ------------------------------------------------------------------------------
4316 # Update catalog on installation. Do not bother if installing
4317 # in DESTDIR, since this is likely for packaging purposes.
4318 catalog-update-hook:
4319 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4321 INSTALL_DATA_HOOKS += \
4324 catalog-remove-hook:
4325 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4327 UNINSTALL_DATA_HOOKS += \
4334 test-journal-syslog \
4335 test-journal-match \
4336 test-journal-stream \
4338 test-journal-verify \
4339 test-journal-interleaving \
4340 test-journal-flush \
4348 test-compress-benchmark
4351 pkginclude_HEADERS += \
4352 src/systemd/sd-journal.h \
4353 src/systemd/sd-messages.h \
4354 src/systemd/_sd-common.h
4356 libsystemd_journal_internal_la_SOURCES = \
4357 src/journal/sd-journal.c \
4358 src/systemd/sd-journal.h \
4359 src/systemd/_sd-common.h \
4360 src/journal/journal-file.c \
4361 src/journal/journal-file.h \
4362 src/journal/journal-vacuum.c \
4363 src/journal/journal-vacuum.h \
4364 src/journal/journal-verify.c \
4365 src/journal/journal-verify.h \
4366 src/journal/lookup3.c \
4367 src/journal/lookup3.h \
4368 src/journal/journal-send.c \
4369 src/journal/journal-def.h \
4370 src/journal/compress.h \
4371 src/journal/catalog.c \
4372 src/journal/catalog.h \
4373 src/journal/mmap-cache.c \
4374 src/journal/mmap-cache.h \
4375 src/journal/compress.c \
4376 src/journal/audit-type.h \
4377 src/journal/audit-type.c \
4378 src/shared/gcrypt-util.h \
4379 src/shared/gcrypt-util.c
4381 nodist_libsystemd_journal_internal_la_SOURCES = \
4382 src/journal/audit_type-to-name.h
4384 gperf_txt_sources += \
4385 src/journal/audit_type-list.txt
4387 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4388 libsystemd_journal_internal_la_CFLAGS = \
4391 libsystemd_journal_internal_la_LIBADD =
4394 libsystemd_journal_internal_la_CFLAGS += \
4397 libsystemd_journal_internal_la_LIBADD += \
4402 libsystemd_journal_internal_la_LIBADD += \
4407 libsystemd_journal_internal_la_SOURCES += \
4408 src/journal/journal-authenticate.c \
4409 src/journal/journal-authenticate.h \
4410 src/journal/fsprg.c \
4413 libsystemd_journal_internal_la_LIBADD += \
4416 # fsprg.c is a drop-in file using void pointer arithmetic
4417 libsystemd_journal_internal_la_CFLAGS += \
4422 noinst_LTLIBRARIES += \
4423 libsystemd-journal-internal.la
4425 rootlibexec_PROGRAMS += \
4428 rootbin_PROGRAMS += \
4434 dist_systemunit_DATA += \
4435 units/systemd-journald.socket \
4436 units/systemd-journald-dev-log.socket \
4437 units/systemd-journald-audit.socket
4439 nodist_systemunit_DATA += \
4440 units/systemd-journald.service \
4441 units/systemd-journal-flush.service \
4442 units/systemd-journal-catalog-update.service
4444 dist_pkgsysconf_DATA += \
4445 src/journal/journald.conf
4447 nodist_catalog_DATA = \
4448 catalog/systemd.bg.catalog \
4449 catalog/systemd.be.catalog \
4450 catalog/systemd.be@latin.catalog \
4451 catalog/systemd.fr.catalog \
4452 catalog/systemd.it.catalog \
4453 catalog/systemd.pl.catalog \
4454 catalog/systemd.pt_BR.catalog \
4455 catalog/systemd.ru.catalog \
4456 catalog/systemd.zh_CN.catalog \
4457 catalog/systemd.zh_TW.catalog \
4458 catalog/systemd.catalog
4461 $(nodist_catalog_DATA:.catalog=.catalog.in)
4463 # Note that we don't use @@ for replacement markers here, but %%. This is
4464 # because the catalog uses @@ already for its runtime replacement handling and
4465 # we don't want to conflict with that.
4466 catalog/%.catalog: catalog/%.catalog.in
4467 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4468 $(SED) -e 's~%SUPPORT_URL%~$(SUPPORT_URL)~' < $< > $@
4470 SOCKETS_TARGET_WANTS += \
4471 systemd-journald.socket \
4472 systemd-journald-dev-log.socket \
4473 systemd-journald-audit.socket
4475 SYSINIT_TARGET_WANTS += \
4476 systemd-journald.service \
4477 systemd-journal-flush.service \
4478 systemd-journal-catalog-update.service
4481 units/systemd-journald.service.in \
4482 units/systemd-journal-flush.service.in \
4483 units/systemd-journal-catalog-update.service.in
4485 gperf_gperf_sources += \
4486 src/journal/journald-gperf.gperf
4488 # ------------------------------------------------------------------------------
4490 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4492 rootlibexec_PROGRAMS += \
4493 systemd-journal-gatewayd
4495 systemd_journal_gatewayd_SOURCES = \
4496 src/journal-remote/journal-gatewayd.c \
4497 src/journal-remote/microhttpd-util.h \
4498 src/journal-remote/microhttpd-util.c
4500 systemd_journal_gatewayd_LDADD = \
4501 libsystemd-shared.la \
4505 systemd_journal_gatewayd_LDADD += \
4509 systemd_journal_gatewayd_CFLAGS = \
4511 $(MICROHTTPD_CFLAGS)
4513 systemd_journal_gatewayd_CPPFLAGS = \
4515 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4517 dist_systemunit_DATA += \
4518 units/systemd-journal-gatewayd.socket
4520 nodist_systemunit_DATA += \
4521 units/systemd-journal-gatewayd.service
4523 dist_gatewayddocumentroot_DATA = \
4524 src/journal-remote/browse.html
4529 units/systemd-journal-gatewayd.service.in
4531 # ------------------------------------------------------------------------------
4533 systemd_socket_proxyd_SOURCES = \
4534 src/socket-proxy/socket-proxyd.c
4536 systemd_socket_proxyd_LDADD = \
4537 libsystemd-shared.la
4539 # ------------------------------------------------------------------------------
4541 systemd_coredump_SOURCES = \
4542 src/coredump/coredump.c \
4543 src/coredump/coredump-vacuum.c \
4544 src/coredump/coredump-vacuum.h
4546 systemd_coredump_CFLAGS = \
4550 systemd_coredump_LDADD = \
4551 libsystemd-shared.la \
4555 systemd_coredump_SOURCES += \
4556 src/coredump/stacktrace.c \
4557 src/coredump/stacktrace.h
4559 systemd_coredump_LDADD += \
4563 nodist_systemunit_DATA += \
4564 units/systemd-coredump@.service
4566 dist_systemunit_DATA += \
4567 units/systemd-coredump.socket
4569 SOCKETS_TARGET_WANTS += \
4570 systemd-coredump.socket
4572 rootlibexec_PROGRAMS += \
4575 dist_pkgsysconf_DATA += \
4576 src/coredump/coredump.conf
4578 coredumpctl_SOURCES = \
4579 src/coredump/coredumpctl.c
4581 coredumpctl_LDADD = \
4582 libsystemd-shared.la
4588 test-coredump-vacuum
4590 test_coredump_vacuum_SOURCES = \
4591 src/coredump/test-coredump-vacuum.c \
4592 src/coredump/coredump-vacuum.c \
4593 src/coredump/coredump-vacuum.h
4595 test_coredump_vacuum_LDADD = \
4596 libsystemd-shared.la
4598 dist_bashcompletion_data += \
4599 shell-completion/bash/coredumpctl
4601 dist_zshcompletion_data += \
4602 shell-completion/zsh/_coredumpctl
4604 nodist_sysctl_DATA = \
4605 sysctl.d/50-coredump.conf
4608 sysctl.d/50-coredump.conf
4612 sysctl.d/50-coredump.conf.in \
4613 units/systemd-coredump@.service.in
4615 # ------------------------------------------------------------------------------
4617 systemd_binfmt_SOURCES = \
4620 systemd_binfmt_LDADD = \
4621 libsystemd-shared.la
4623 rootlibexec_PROGRAMS += \
4626 dist_systemunit_DATA += \
4627 units/proc-sys-fs-binfmt_misc.automount \
4628 units/proc-sys-fs-binfmt_misc.mount
4630 nodist_systemunit_DATA += \
4631 units/systemd-binfmt.service
4634 $(prefix)/lib/binfmt.d \
4635 $(sysconfdir)/binfmt.d
4637 SYSINIT_TARGET_WANTS += \
4638 systemd-binfmt.service \
4639 proc-sys-fs-binfmt_misc.automount
4644 units/systemd-binfmt.service.in
4646 # ------------------------------------------------------------------------------
4648 systemd_vconsole_setup_SOURCES = \
4649 src/vconsole/vconsole-setup.c
4651 systemd_vconsole_setup_LDADD = \
4652 libsystemd-shared.la
4654 rootlibexec_PROGRAMS += \
4655 systemd-vconsole-setup
4657 nodist_udevrules_DATA += \
4658 src/vconsole/90-vconsole.rules
4660 nodist_systemunit_DATA += \
4661 units/systemd-vconsole-setup.service
4665 src/vconsole/90-vconsole.rules.in \
4666 units/systemd-vconsole-setup.service.in
4668 # ------------------------------------------------------------------------------
4669 if ENABLE_QUOTACHECK
4670 rootlibexec_PROGRAMS += \
4673 nodist_systemunit_DATA += \
4674 units/systemd-quotacheck.service
4676 systemd_quotacheck_SOURCES = \
4677 src/quotacheck/quotacheck.c
4679 systemd_quotacheck_LDADD = \
4680 libsystemd-shared.la
4684 units/systemd-quotacheck.service.in
4686 nodist_systemunit_DATA += \
4687 units/quotaon.service
4689 # ------------------------------------------------------------------------------
4690 if ENABLE_RANDOMSEED
4691 rootlibexec_PROGRAMS += \
4694 nodist_systemunit_DATA += \
4695 units/systemd-random-seed.service
4697 systemd_random_seed_SOURCES = \
4698 src/random-seed/random-seed.c
4700 systemd_random_seed_LDADD = \
4701 libsystemd-shared.la
4703 SYSINIT_TARGET_WANTS += \
4704 systemd-random-seed.service
4709 units/systemd-random-seed.service.in
4711 # ------------------------------------------------------------------------------
4713 rootlibexec_PROGRAMS += \
4716 nodist_systemunit_DATA += \
4717 units/systemd-backlight@.service
4719 systemd_backlight_SOURCES = \
4720 src/backlight/backlight.c
4722 systemd_backlight_LDADD = \
4723 libsystemd-shared.la
4727 units/systemd-backlight@.service.in
4729 # ------------------------------------------------------------------------------
4731 rootlibexec_PROGRAMS += \
4734 nodist_systemunit_DATA += \
4735 units/systemd-rfkill.service
4737 dist_systemunit_DATA += \
4738 units/systemd-rfkill.socket
4740 systemd_rfkill_SOURCES = \
4743 systemd_rfkill_LDADD = \
4744 libsystemd-shared.la
4748 units/systemd-rfkill.service.in
4750 # ------------------------------------------------------------------------------
4751 if HAVE_LIBCRYPTSETUP
4752 rootlibexec_PROGRAMS += \
4755 systemgenerator_PROGRAMS += \
4756 systemd-cryptsetup-generator
4758 dist_systemunit_DATA += \
4759 units/cryptsetup.target \
4760 units/cryptsetup-pre.target
4762 systemd_cryptsetup_SOURCES = \
4763 src/cryptsetup/cryptsetup.c
4765 systemd_cryptsetup_CFLAGS = \
4767 $(LIBCRYPTSETUP_CFLAGS)
4769 systemd_cryptsetup_LDADD = \
4770 libsystemd-shared.la \
4771 $(LIBCRYPTSETUP_LIBS)
4773 systemd_cryptsetup_generator_SOURCES = \
4774 src/cryptsetup/cryptsetup-generator.c
4776 systemd_cryptsetup_generator_LDADD = \
4777 libsystemd-shared.la
4779 SYSINIT_TARGET_WANTS += \
4784 # ------------------------------------------------------------------------------
4786 systemd_hostnamed_SOURCES = \
4787 src/hostname/hostnamed.c
4789 systemd_hostnamed_LDADD = \
4790 libsystemd-shared.la
4792 rootlibexec_PROGRAMS += \
4795 nodist_systemunit_DATA += \
4796 units/systemd-hostnamed.service
4798 dist_systemunit_DATA_busnames += \
4799 units/org.freedesktop.hostname1.busname
4801 dist_dbuspolicy_DATA += \
4802 src/hostname/org.freedesktop.hostname1.conf
4804 dist_dbussystemservice_DATA += \
4805 src/hostname/org.freedesktop.hostname1.service
4807 polkitpolicy_files += \
4808 src/hostname/org.freedesktop.hostname1.policy
4810 SYSTEM_UNIT_ALIASES += \
4811 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4813 BUSNAMES_TARGET_WANTS += \
4814 org.freedesktop.hostname1.busname
4816 hostnamectl_SOURCES = \
4817 src/hostname/hostnamectl.c
4819 hostnamectl_LDADD = \
4820 libsystemd-shared.la
4825 dist_bashcompletion_data += \
4826 shell-completion/bash/hostnamectl
4828 dist_zshcompletion_data += \
4829 shell-completion/zsh/_hostnamectl
4832 polkitpolicy_in_files += \
4833 src/hostname/org.freedesktop.hostname1.policy.in
4836 units/systemd-hostnamed.service.in
4838 # ------------------------------------------------------------------------------
4839 dist_systemunit_DATA_busnames += \
4840 units/org.freedesktop.systemd1.busname
4842 BUSNAMES_TARGET_WANTS += \
4843 org.freedesktop.systemd1.busname
4845 # ------------------------------------------------------------------------------
4847 systemd_localed_SOURCES = \
4848 src/locale/localed.c \
4849 src/locale/keymap-util.c \
4850 src/locale/keymap-util.h
4852 systemd_localed_LDADD = \
4853 libsystemd-shared.la \
4856 systemd_localed_CFLAGS = \
4860 nodist_systemunit_DATA += \
4861 units/systemd-localed.service
4863 dist_systemunit_DATA_busnames += \
4864 units/org.freedesktop.locale1.busname
4866 rootlibexec_PROGRAMS += \
4869 dist_dbuspolicy_DATA += \
4870 src/locale/org.freedesktop.locale1.conf
4872 dist_dbussystemservice_DATA += \
4873 src/locale/org.freedesktop.locale1.service
4875 polkitpolicy_files += \
4876 src/locale/org.freedesktop.locale1.policy
4878 SYSTEM_UNIT_ALIASES += \
4879 systemd-localed.service dbus-org.freedesktop.locale1.service
4881 BUSNAMES_TARGET_WANTS += \
4882 org.freedesktop.locale1.busname
4884 dist_pkgdata_DATA = \
4885 src/locale/kbd-model-map \
4886 src/locale/language-fallback-map
4888 test_keymap_util_SOURCES = \
4889 src/locale/test-keymap-util.c \
4890 src/locale/keymap-util.c \
4891 src/locale/keymap-util.h
4893 test_keymap_util_LDADD = \
4894 libsystemd-shared.la \
4900 localectl_SOURCES = \
4901 src/locale/localectl.c
4904 libsystemd-shared.la
4909 dist_bashcompletion_data += \
4910 shell-completion/bash/localectl
4912 dist_zshcompletion_data += \
4913 shell-completion/zsh/_localectl
4916 .PHONY: update-kbd-model-map
4918 polkitpolicy_in_files += \
4919 src/locale/org.freedesktop.locale1.policy.in
4922 units/systemd-localed.service.in
4924 # ------------------------------------------------------------------------------
4926 systemd_timedated_SOURCES = \
4927 src/timedate/timedated.c
4929 systemd_timedated_LDADD = \
4930 libsystemd-shared.la
4932 rootlibexec_PROGRAMS += \
4935 dist_dbussystemservice_DATA += \
4936 src/timedate/org.freedesktop.timedate1.service
4938 dist_dbuspolicy_DATA += \
4939 src/timedate/org.freedesktop.timedate1.conf
4941 nodist_systemunit_DATA += \
4942 units/systemd-timedated.service
4944 dist_systemunit_DATA_busnames += \
4945 units/org.freedesktop.timedate1.busname
4947 polkitpolicy_files += \
4948 src/timedate/org.freedesktop.timedate1.policy
4950 SYSTEM_UNIT_ALIASES += \
4951 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4953 BUSNAMES_TARGET_WANTS += \
4954 org.freedesktop.timedate1.busname
4956 timedatectl_SOURCES = \
4957 src/timedate/timedatectl.c
4959 timedatectl_LDADD = \
4960 libsystemd-shared.la
4965 dist_bashcompletion_data += \
4966 shell-completion/bash/timedatectl
4968 dist_zshcompletion_data += \
4969 shell-completion/zsh/_timedatectl
4972 polkitpolicy_in_files += \
4973 src/timedate/org.freedesktop.timedate1.policy.in
4976 units/systemd-timedated.service.in
4978 # ------------------------------------------------------------------------------
4980 systemd_timesyncd_SOURCES = \
4981 src/timesync/timesyncd.c \
4982 src/timesync/timesyncd-manager.c \
4983 src/timesync/timesyncd-manager.h \
4984 src/timesync/timesyncd-conf.c \
4985 src/timesync/timesyncd-conf.h \
4986 src/timesync/timesyncd-server.c \
4987 src/timesync/timesyncd-server.h
4989 nodist_systemd_timesyncd_SOURCES = \
4990 src/timesync/timesyncd-gperf.c
4992 systemd_timesyncd_LDADD = \
4993 libsystemd-network.la \
4994 libsystemd-shared.la \
4997 rootlibexec_PROGRAMS += \
5000 nodist_systemunit_DATA += \
5001 units/systemd-timesyncd.service
5003 GENERAL_ALIASES += \
5004 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5006 nodist_pkgsysconf_DATA += \
5007 src/timesync/timesyncd.conf
5011 gperf_gperf_sources += \
5012 src/timesync/timesyncd-gperf.gperf
5015 units/systemd-timesyncd.service.in \
5016 src/timesync/timesyncd.conf.in
5018 # ------------------------------------------------------------------------------
5019 test_nss_SOURCES = \
5023 libsystemd-internal.la \
5030 # ------------------------------------------------------------------------------
5031 libnss_systemd_la_SOURCES = \
5032 src/nss-systemd/nss-systemd.sym \
5033 src/nss-systemd/nss-systemd.c
5035 libnss_systemd_la_LDFLAGS = \
5042 -Wl,--version-script=$(top_srcdir)/src/nss-systemd/nss-systemd.sym
5044 libnss_systemd_la_LIBADD = \
5045 libsystemd-internal.la \
5048 lib_LTLIBRARIES += \
5051 # ------------------------------------------------------------------------------
5053 libnss_myhostname_la_SOURCES = \
5054 src/nss-myhostname/nss-myhostname.sym \
5055 src/nss-myhostname/nss-myhostname.c
5057 libnss_myhostname_la_LDFLAGS = \
5064 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5066 libnss_myhostname_la_LIBADD = \
5067 libsystemd-internal.la \
5070 lib_LTLIBRARIES += \
5071 libnss_myhostname.la
5074 # ------------------------------------------------------------------------------
5076 systemd_machined_SOURCES = \
5077 src/machine/machined.c \
5078 src/machine/machined.h
5080 systemd_machined_LDADD = \
5083 rootlibexec_PROGRAMS += \
5086 libmachine_core_la_SOURCES = \
5087 src/machine/machine.c \
5088 src/machine/machine.h \
5089 src/machine/machined-dbus.c \
5090 src/machine/machine-dbus.c \
5091 src/machine/machine-dbus.h \
5092 src/machine/image-dbus.c \
5093 src/machine/image-dbus.h \
5094 src/machine/operation.c \
5095 src/machine/operation.h
5097 libmachine_core_la_LIBADD = \
5098 libsystemd-shared.la
5100 noinst_LTLIBRARIES += \
5103 machinectl_SOURCES = \
5104 src/machine/machinectl.c
5106 machinectl_LDADD = \
5107 libsystemd-shared.la
5109 rootbin_PROGRAMS += \
5112 test_machine_tables_SOURCES = \
5113 src/machine/test-machine-tables.c
5115 test_machine_tables_LDADD = \
5121 nodist_systemunit_DATA += \
5122 units/systemd-machined.service
5124 dist_systemunit_DATA += \
5127 dist_systemunit_DATA_busnames += \
5128 units/org.freedesktop.machine1.busname
5130 dist_dbussystemservice_DATA += \
5131 src/machine/org.freedesktop.machine1.service
5133 dist_dbuspolicy_DATA += \
5134 src/machine/org.freedesktop.machine1.conf
5136 polkitpolicy_files += \
5137 src/machine/org.freedesktop.machine1.policy
5139 dist_bashcompletion_data += \
5140 shell-completion/bash/machinectl
5142 dist_zshcompletion_data += \
5143 shell-completion/zsh/_machinectl \
5144 shell-completion/zsh/_sd_machines
5146 SYSTEM_UNIT_ALIASES += \
5147 systemd-machined.service dbus-org.freedesktop.machine1.service
5149 BUSNAMES_TARGET_WANTS += \
5150 org.freedesktop.machine1.busname
5152 libnss_mymachines_la_SOURCES = \
5153 src/nss-mymachines/nss-mymachines.sym \
5154 src/nss-mymachines/nss-mymachines.c
5156 libnss_mymachines_la_LDFLAGS = \
5163 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5165 libnss_mymachines_la_LIBADD = \
5166 libsystemd-internal.la \
5169 lib_LTLIBRARIES += \
5170 libnss_mymachines.la
5174 polkitpolicy_in_files += \
5175 src/machine/org.freedesktop.machine1.policy.in
5178 units/systemd-machined.service.in
5180 # ------------------------------------------------------------------------------
5189 rootlibexec_PROGRAMS += \
5195 systemd_importd_SOURCES = \
5196 src/import/importd.c
5198 systemd_importd_CFLAGS = \
5200 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5201 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5202 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5204 systemd_importd_LDADD = \
5205 libsystemd-shared.la
5207 systemd_pull_SOURCES = \
5209 src/import/pull-raw.c \
5210 src/import/pull-raw.h \
5211 src/import/pull-tar.c \
5212 src/import/pull-tar.h \
5213 src/import/pull-job.c \
5214 src/import/pull-job.h \
5215 src/import/pull-common.c \
5216 src/import/pull-common.h \
5217 src/import/import-common.c \
5218 src/import/import-common.h \
5219 src/import/import-compress.c \
5220 src/import/import-compress.h \
5221 src/import/curl-util.c \
5222 src/import/curl-util.h \
5223 src/import/qcow2-util.c \
5224 src/import/qcow2-util.h
5226 systemd_pull_CFLAGS = \
5232 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5233 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5235 systemd_pull_LDADD = \
5236 libsystemd-shared.la \
5243 systemd_import_SOURCES = \
5244 src/import/import.c \
5245 src/import/import-raw.c \
5246 src/import/import-raw.h \
5247 src/import/import-tar.c \
5248 src/import/import-tar.h \
5249 src/import/import-common.c \
5250 src/import/import-common.h \
5251 src/import/import-compress.c \
5252 src/import/import-compress.h \
5253 src/import/qcow2-util.c \
5254 src/import/qcow2-util.h
5256 systemd_import_CFLAGS = \
5261 systemd_import_LDADD = \
5262 libsystemd-shared.la \
5267 systemd_export_SOURCES = \
5268 src/import/export.c \
5269 src/import/export-tar.c \
5270 src/import/export-tar.h \
5271 src/import/export-raw.c \
5272 src/import/export-raw.h \
5273 src/import/import-common.c \
5274 src/import/import-common.h \
5275 src/import/import-compress.c \
5276 src/import/import-compress.h
5278 systemd_export_CFLAGS = \
5283 systemd_export_LDADD = \
5284 libsystemd-shared.la \
5289 dist_rootlibexec_DATA += \
5290 src/import/import-pubring.gpg
5292 nodist_systemunit_DATA += \
5293 units/systemd-importd.service
5295 dist_systemunit_DATA_busnames += \
5296 units/org.freedesktop.import1.busname
5298 BUSNAMES_TARGET_WANTS += \
5299 org.freedesktop.import1.busname
5301 SYSTEM_UNIT_ALIASES += \
5302 systemd-importd.service dbus-org.freedesktop.import1.service
5304 dist_dbussystemservice_DATA += \
5305 src/import/org.freedesktop.import1.service
5307 dist_dbuspolicy_DATA += \
5308 src/import/org.freedesktop.import1.conf
5310 polkitpolicy_files += \
5311 src/import/org.freedesktop.import1.policy
5316 test_qcow2_SOURCES = \
5317 src/import/test-qcow2.c \
5318 src/import/qcow2-util.c \
5319 src/import/qcow2-util.h
5321 test_qcow2_CFLAGS = \
5325 test_qcow2_LDADD = \
5326 libsystemd-shared.la \
5337 polkitpolicy_in_files += \
5338 src/import/org.freedesktop.import1.policy.in
5341 units/systemd-importd.service.in
5344 # ------------------------------------------------------------------------------
5347 basic_dns_sources = \
5348 src/resolve/resolved-dns-dnssec.c \
5349 src/resolve/resolved-dns-dnssec.h \
5350 src/resolve/resolved-dns-packet.c \
5351 src/resolve/resolved-dns-packet.h \
5352 src/resolve/resolved-dns-rr.c \
5353 src/resolve/resolved-dns-rr.h \
5354 src/resolve/resolved-dns-answer.c \
5355 src/resolve/resolved-dns-answer.h \
5356 src/resolve/resolved-dns-question.c \
5357 src/resolve/resolved-dns-question.h \
5358 src/resolve/dns-type.c \
5359 src/resolve/dns-type.h
5361 systemd_resolved_SOURCES = \
5362 src/resolve/resolved.c \
5363 src/resolve/resolved-manager.c \
5364 src/resolve/resolved-manager.h \
5365 src/resolve/resolved-conf.c \
5366 src/resolve/resolved-conf.h \
5367 src/resolve/resolved-resolv-conf.c \
5368 src/resolve/resolved-resolv-conf.h \
5369 src/resolve/resolved-bus.c \
5370 src/resolve/resolved-bus.h \
5371 src/resolve/resolved-link.h \
5372 src/resolve/resolved-link.c \
5373 src/resolve/resolved-link-bus.c \
5374 src/resolve/resolved-link-bus.h \
5375 src/resolve/resolved-llmnr.h \
5376 src/resolve/resolved-llmnr.c \
5377 src/resolve/resolved-mdns.h \
5378 src/resolve/resolved-mdns.c \
5379 src/resolve/resolved-def.h \
5380 $(basic_dns_sources) \
5381 src/resolve/resolved-dns-query.h \
5382 src/resolve/resolved-dns-query.c \
5383 src/resolve/resolved-dns-synthesize.h \
5384 src/resolve/resolved-dns-synthesize.c \
5385 src/resolve/resolved-dns-transaction.h \
5386 src/resolve/resolved-dns-transaction.c \
5387 src/resolve/resolved-dns-scope.h \
5388 src/resolve/resolved-dns-scope.c \
5389 src/resolve/resolved-dns-server.h \
5390 src/resolve/resolved-dns-server.c \
5391 src/resolve/resolved-dns-search-domain.h \
5392 src/resolve/resolved-dns-search-domain.c \
5393 src/resolve/resolved-dns-cache.h \
5394 src/resolve/resolved-dns-cache.c \
5395 src/resolve/resolved-dns-zone.h \
5396 src/resolve/resolved-dns-zone.c \
5397 src/resolve/resolved-dns-stream.h \
5398 src/resolve/resolved-dns-stream.c \
5399 src/resolve/resolved-dns-trust-anchor.h \
5400 src/resolve/resolved-dns-trust-anchor.c \
5401 src/resolve/resolved-dns-stub.h \
5402 src/resolve/resolved-dns-stub.c \
5403 src/resolve/resolved-etc-hosts.h \
5404 src/resolve/resolved-etc-hosts.c \
5405 src/shared/gcrypt-util.c \
5406 src/shared/gcrypt-util.h
5408 nodist_systemd_resolved_SOURCES = \
5409 src/resolve/dns_type-from-name.h \
5410 src/resolve/dns_type-to-name.h \
5411 src/resolve/resolved-gperf.c
5413 systemd_resolved_CFLAGS = \
5417 systemd_resolved_LDADD = \
5418 libsystemd-network.la \
5419 libsystemd-shared.la \
5423 rootlibexec_PROGRAMS += \
5426 nodist_systemunit_DATA += \
5427 units/systemd-resolved.service
5429 dist_systemunit_DATA_busnames += \
5430 units/org.freedesktop.resolve1.busname
5432 dist_dbuspolicy_DATA += \
5433 src/resolve/org.freedesktop.resolve1.conf
5435 dist_dbussystemservice_DATA += \
5436 src/resolve/org.freedesktop.resolve1.service
5438 SYSTEM_UNIT_ALIASES += \
5439 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5441 BUSNAMES_TARGET_WANTS += \
5442 org.freedesktop.resolve1.busname
5444 GENERAL_ALIASES += \
5445 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5447 nodist_pkgsysconf_DATA += \
5448 src/resolve/resolved.conf
5450 libnss_resolve_la_SOURCES = \
5451 src/nss-resolve/nss-resolve.sym \
5452 src/nss-resolve/nss-resolve.c
5454 libnss_resolve_la_LDFLAGS = \
5461 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5463 libnss_resolve_la_LIBADD = \
5464 libsystemd-internal.la \
5468 lib_LTLIBRARIES += \
5471 systemd_resolve_SOURCES = \
5472 src/resolve/resolve-tool.c \
5473 $(basic_dns_sources) \
5474 src/shared/gcrypt-util.c \
5475 src/shared/gcrypt-util.h
5477 nodist_systemd_resolve_SOURCES = \
5478 src/resolve/dns_type-from-name.h \
5479 src/resolve/dns_type-to-name.h
5481 systemd_resolve_CFLAGS = \
5485 systemd_resolve_LDADD = \
5486 libsystemd-shared.la \
5493 dist_bashcompletion_data += \
5494 shell-completion/bash/systemd-resolve
5496 dist_zshcompletion_data += \
5497 shell-completion/zsh/_systemd-resolve
5501 test-resolve-tables \
5507 test_resolve_tables_SOURCES = \
5508 src/resolve/test-resolve-tables.c \
5509 src/resolve/dns_type-from-name.h \
5510 src/resolve/dns_type-to-name.h \
5511 $(basic_dns_sources) \
5512 src/shared/test-tables.h
5514 test_resolve_tables_CFLAGS = \
5518 test_resolve_tables_LDADD = \
5519 libsystemd-shared.la \
5523 test_dns_packet_SOURCES = \
5524 src/resolve/test-dns-packet.c \
5525 $(basic_dns_sources)
5527 test_dns_packet_CPPFLAGS = \
5529 -DRESOLVE_TEST_DIR=\"$(abs_top_srcdir)/src/resolve/test-data\"
5531 test_dns_packet_CFLAGS = \
5535 test_dns_packet_LDADD = \
5536 libsystemd-shared.la \
5541 src/resolve/test-data/_openpgpkey.fedoraproject.org.pkts \
5542 src/resolve/test-data/fedoraproject.org.pkts \
5543 src/resolve/test-data/gandi.net.pkts \
5544 src/resolve/test-data/google.com.pkts \
5545 src/resolve/test-data/root.pkts \
5546 src/resolve/test-data/sw1a1aa-sw1a2aa-sw1a2ab-sw1a2ac.find.me.uk.pkts \
5547 src/resolve/test-data/teamits.com.pkts \
5548 src/resolve/test-data/zbyszek@fedoraproject.org.pkts \
5549 src/resolve/test-data/_443._tcp.fedoraproject.org.pkts \
5550 src/resolve/test-data/kyhwana.org.pkts \
5551 src/resolve/test-data/fake-caa.pkts
5553 test_dnssec_SOURCES = \
5554 src/resolve/test-dnssec.c \
5555 $(basic_dns_sources)
5557 test_dnssec_CFLAGS = \
5561 test_dnssec_LDADD = \
5562 libsystemd-shared.la \
5566 test_dnssec_complex_SOURCES = \
5567 src/resolve/test-dnssec-complex.c \
5568 src/resolve/dns-type.c \
5569 src/resolve/dns-type.h
5571 test_dnssec_complex_LDADD = \
5572 libsystemd-shared.la
5576 gperf_txt_sources += \
5577 src/resolve/dns_type-list.txt
5579 gperf_gperf_sources += \
5580 src/resolve/resolved-gperf.gperf
5583 units/systemd-resolved.service.m4.in \
5584 src/resolve/resolved.conf.in
5586 dist_rootlibexec_DATA += \
5587 src/resolve/resolv.conf
5589 # ------------------------------------------------------------------------------
5591 rootlibexec_PROGRAMS += \
5594 systemd_networkd_SOURCES = \
5595 src/network/networkd.c
5597 systemd_networkd_LDADD = \
5601 systemd_networkd_LDADD += \
5605 noinst_LTLIBRARIES += \
5608 libnetworkd_core_la_CFLAGS = \
5611 libnetworkd_core_la_SOURCES = \
5612 src/libsystemd-network/network-internal.h \
5613 src/network/networkd.h \
5614 src/network/networkd-conf.h \
5615 src/network/networkd-conf.c \
5616 src/network/networkd-link.h \
5617 src/network/networkd-link.c \
5618 src/network/networkd-netdev.h \
5619 src/network/networkd-netdev.c \
5620 src/network/networkd-netdev-vrf.h \
5621 src/network/networkd-netdev-vrf.c \
5622 src/network/networkd-netdev-tunnel.h \
5623 src/network/networkd-netdev-tunnel.c \
5624 src/network/networkd-netdev-veth.h \
5625 src/network/networkd-netdev-veth.c \
5626 src/network/networkd-netdev-vxlan.h \
5627 src/network/networkd-netdev-vxlan.c \
5628 src/network/networkd-netdev-vlan.h \
5629 src/network/networkd-netdev-vlan.c \
5630 src/network/networkd-netdev-macvlan.h \
5631 src/network/networkd-netdev-macvlan.c \
5632 src/network/networkd-netdev-ipvlan.h \
5633 src/network/networkd-netdev-ipvlan.c \
5634 src/network/networkd-netdev-dummy.h \
5635 src/network/networkd-netdev-dummy.c \
5636 src/network/networkd-netdev-tuntap.h \
5637 src/network/networkd-netdev-tuntap.c \
5638 src/network/networkd-netdev-bond.h \
5639 src/network/networkd-netdev-bond.c \
5640 src/network/networkd-netdev-bridge.h \
5641 src/network/networkd-netdev-bridge.c \
5642 src/network/networkd-link-bus.c \
5643 src/network/networkd-ipv4ll.c \
5644 src/network/networkd-dhcp4.c \
5645 src/network/networkd-dhcp6.c \
5646 src/network/networkd-ndisc.h \
5647 src/network/networkd-ndisc.c \
5648 src/network/networkd-network.h \
5649 src/network/networkd-network.c \
5650 src/network/networkd-network-bus.c \
5651 src/network/networkd-address.h \
5652 src/network/networkd-address.c \
5653 src/network/networkd-route.h \
5654 src/network/networkd-route.c \
5655 src/network/networkd-manager.c \
5656 src/network/networkd-manager-bus.c \
5657 src/network/networkd-fdb.h \
5658 src/network/networkd-fdb.c \
5659 src/network/networkd-brvlan.h \
5660 src/network/networkd-brvlan.c \
5661 src/network/networkd-address-pool.h \
5662 src/network/networkd-address-pool.c \
5663 src/network/networkd-util.h \
5664 src/network/networkd-util.c \
5665 src/network/networkd-lldp-tx.h \
5666 src/network/networkd-lldp-tx.c
5668 nodist_libnetworkd_core_la_SOURCES = \
5669 src/network/networkd-gperf.c \
5670 src/network/networkd-network-gperf.c \
5671 src/network/networkd-netdev-gperf.c
5673 libnetworkd_core_la_LIBADD = \
5674 libsystemd-network.la \
5675 libsystemd-shared.la
5677 rootlibexec_PROGRAMS += \
5678 systemd-networkd-wait-online
5680 systemd_networkd_wait_online_CFLAGS = \
5683 systemd_networkd_wait_online_SOURCES = \
5684 src/libsystemd-network/network-internal.h \
5685 src/network/networkd-wait-online.h \
5686 src/network/networkd-wait-online-link.h \
5687 src/network/networkd-wait-online.c \
5688 src/network/networkd-wait-online-manager.c \
5689 src/network/networkd-wait-online-link.c
5691 systemd_networkd_wait_online_LDADD = \
5692 libsystemd-network.la \
5693 libsystemd-shared.la
5695 rootbin_PROGRAMS += \
5698 networkctl_SOURCES = \
5699 src/network/networkctl.c
5701 networkctl_LDADD = \
5702 libsystemd-shared.la \
5703 libsystemd-network.la
5705 dist_bashcompletion_data += \
5706 shell-completion/bash/networkctl
5708 test_networkd_conf_SOURCES = \
5709 src/network/test-networkd-conf.c
5711 test_networkd_conf_LDADD = \
5714 test_network_SOURCES = \
5715 src/network/test-network.c
5717 test_network_LDADD = \
5721 test_network_LDADD += \
5725 test_network_tables_SOURCES = \
5726 src/network/test-network-tables.c \
5727 src/shared/test-tables.h
5729 test_network_tables_LDADD = \
5730 libnetworkd-core.la \
5734 test_network_tables_LDADD += \
5739 test-networkd-conf \
5743 dist_systemunit_DATA += \
5744 units/systemd-networkd.socket
5746 nodist_systemunit_DATA += \
5747 units/systemd-networkd.service \
5748 units/systemd-networkd-wait-online.service
5750 dist_systemunit_DATA_busnames += \
5751 units/org.freedesktop.network1.busname
5753 dist_dbussystemservice_DATA += \
5754 src/network/org.freedesktop.network1.service
5756 dist_dbuspolicy_DATA += \
5757 src/network/org.freedesktop.network1.conf
5759 GENERAL_ALIASES += \
5760 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5761 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5762 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5764 SYSTEM_UNIT_ALIASES += \
5765 systemd-networkd.service dbus-org.freedesktop.network1.service
5767 BUSNAMES_TARGET_WANTS += \
5768 org.freedesktop.network1.busname
5772 gperf_gperf_sources += \
5773 src/network/networkd-gperf.gperf \
5774 src/network/networkd-network-gperf.gperf \
5775 src/network/networkd-netdev-gperf.gperf
5778 units/systemd-networkd.service.m4.in \
5779 units/systemd-networkd-wait-online.service.in \
5780 test/networkd-test.py
5782 # ------------------------------------------------------------------------------
5784 systemd_logind_SOURCES = \
5785 src/login/logind.c \
5788 nodist_systemd_logind_SOURCES = \
5789 src/login/logind-gperf.c
5791 systemd_logind_LDADD = \
5794 liblogind_core_la_SOURCES = \
5795 src/login/logind-core.c \
5796 src/login/logind-device.c \
5797 src/login/logind-device.h \
5798 src/login/logind-button.c \
5799 src/login/logind-button.h \
5800 src/login/logind-action.c \
5801 src/login/logind-action.h \
5802 src/login/logind-seat.c \
5803 src/login/logind-seat.h \
5804 src/login/logind-session.c \
5805 src/login/logind-session.h \
5806 src/login/logind-session-device.c \
5807 src/login/logind-session-device.h \
5808 src/login/logind-user.c \
5809 src/login/logind-user.h \
5810 src/login/logind-inhibit.c \
5811 src/login/logind-inhibit.h \
5812 src/login/logind-dbus.c \
5813 src/login/logind-session-dbus.c \
5814 src/login/logind-seat-dbus.c \
5815 src/login/logind-user-dbus.c \
5816 src/login/logind-utmp.c \
5817 src/login/logind-acl.h
5819 liblogind_core_la_LIBADD = \
5820 libsystemd-shared.la
5823 liblogind_core_la_SOURCES += \
5824 src/login/logind-acl.c
5827 noinst_LTLIBRARIES += \
5830 rootlibexec_PROGRAMS += \
5833 loginctl_SOURCES = \
5834 src/login/loginctl.c \
5835 src/login/sysfs-show.h \
5836 src/login/sysfs-show.c
5839 libsystemd-shared.la
5841 rootbin_PROGRAMS += \
5844 dist_bashcompletion_data += \
5845 shell-completion/bash/loginctl
5847 dist_zshcompletion_data += \
5848 shell-completion/zsh/_loginctl \
5849 shell-completion/zsh/_systemd-inhibit
5851 systemd_inhibit_SOURCES = \
5854 systemd_inhibit_LDADD = \
5855 libsystemd-shared.la
5857 rootbin_PROGRAMS += \
5860 test_login_SOURCES = \
5861 src/libsystemd/sd-login/test-login.c
5863 test_login_LDADD = \
5864 libsystemd-shared.la
5866 test_login_shared_SOURCES = \
5867 src/login/test-login-shared.c
5869 test_login_shared_LDADD = \
5870 libsystemd-shared.la
5872 test_inhibit_SOURCES = \
5873 src/login/test-inhibit.c
5875 test_inhibit_LDADD = \
5876 libsystemd-shared.la
5878 test_login_tables_SOURCES = \
5879 src/login/test-login-tables.c
5881 test_login_tables_LDADD = \
5893 pam_systemd_la_SOURCES = \
5894 src/login/pam_systemd.sym \
5895 src/login/pam_systemd.c
5897 pam_systemd_la_CFLAGS = \
5901 pam_systemd_la_LDFLAGS = \
5907 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5909 pam_systemd_la_LIBADD = \
5913 pamlib_LTLIBRARIES = \
5916 dist_pamconf_DATA = \
5917 src/login/systemd-user
5920 src/login/systemd-user.m4
5923 nodist_systemunit_DATA += \
5924 units/systemd-logind.service
5926 dist_systemunit_DATA += \
5929 dist_systemunit_DATA_busnames += \
5930 units/org.freedesktop.login1.busname
5932 dist_dbussystemservice_DATA += \
5933 src/login/org.freedesktop.login1.service
5935 dist_dbuspolicy_DATA += \
5936 src/login/org.freedesktop.login1.conf
5938 nodist_pkgsysconf_DATA += \
5939 src/login/logind.conf
5941 polkitpolicy_files += \
5942 src/login/org.freedesktop.login1.policy
5947 MULTI_USER_TARGET_WANTS += \
5948 systemd-logind.service
5950 SYSTEM_UNIT_ALIASES += \
5951 systemd-logind.service dbus-org.freedesktop.login1.service
5953 BUSNAMES_TARGET_WANTS += \
5954 org.freedesktop.login1.busname
5956 dist_udevrules_DATA += \
5957 src/login/70-uaccess.rules \
5958 src/login/70-power-switch.rules
5960 nodist_udevrules_DATA += \
5961 src/login/71-seat.rules \
5962 src/login/73-seat-late.rules
5966 polkitpolicy_in_files += \
5967 src/login/org.freedesktop.login1.policy.in
5969 gperf_gperf_sources += \
5970 src/login/logind-gperf.gperf
5973 src/login/71-seat.rules.in \
5974 src/login/73-seat-late.rules.in \
5975 units/systemd-logind.service.in \
5976 src/login/logind.conf.in
5978 # ------------------------------------------------------------------------------
5981 systemd_user_sessions_SOURCES = \
5982 src/user-sessions/user-sessions.c
5984 systemd_user_sessions_LDADD = \
5985 libsystemd-shared.la
5987 rootlibexec_PROGRAMS += \
5988 systemd-user-sessions
5990 nodist_systemunit_DATA += \
5991 units/systemd-user-sessions.service
5993 MULTI_USER_TARGET_WANTS += \
5994 systemd-user-sessions.service
5999 units/systemd-user-sessions.service.in
6001 # ------------------------------------------------------------------------------
6004 test/README.testsuite \
6005 test/TEST-01-BASIC \
6006 test/TEST-01-BASIC/Makefile \
6007 test/TEST-01-BASIC/test.sh \
6008 test/TEST-02-CRYPTSETUP \
6009 test/TEST-02-CRYPTSETUP/Makefile \
6010 test/TEST-02-CRYPTSETUP/test.sh \
6012 test/TEST-03-JOBS/Makefile \
6013 test/TEST-03-JOBS/test-jobs.sh \
6014 test/TEST-03-JOBS/test.sh \
6015 test/TEST-04-JOURNAL/Makefile \
6016 test/TEST-04-JOURNAL/test-journal.sh \
6017 test/TEST-04-JOURNAL/test.sh \
6018 test/TEST-05-RLIMITS/Makefile \
6019 test/TEST-05-RLIMITS/test-rlimits.sh \
6020 test/TEST-05-RLIMITS/test.sh \
6021 test/TEST-06-SELINUX/Makefile \
6022 test/TEST-06-SELINUX/test-selinux-checks.sh \
6023 test/TEST-06-SELINUX/test.sh \
6024 test/TEST-06-SELINUX/systemd_test.te \
6025 test/TEST-06-SELINUX/systemd_test.if \
6026 test/TEST-07-ISSUE-1981/Makefile \
6027 test/TEST-07-ISSUE-1981/test-segfault.sh \
6028 test/TEST-07-ISSUE-1981/test.sh \
6029 test/TEST-08-ISSUE-2730/Makefile \
6030 test/TEST-08-ISSUE-2730/test.sh \
6031 test/TEST-09-ISSUE-2691/Makefile \
6032 test/TEST-09-ISSUE-2691/test.sh \
6033 test/TEST-10-ISSUE-2467/Makefile \
6034 test/TEST-10-ISSUE-2467/test.sh \
6035 test/TEST-11-ISSUE-3166/Makefile \
6036 test/TEST-11-ISSUE-3166/test.sh \
6037 test/TEST-12-ISSUE-3171/Makefile \
6038 test/TEST-12-ISSUE-3171/test.sh \
6042 test/loopy2.service \
6043 test/loopy3.service \
6044 test/loopy4.service \
6045 test/loopy.service \
6046 test/loopy.service.d \
6047 test/loopy.service.d/compat.conf
6049 # ------------------------------------------------------------------------------
6051 '|rootlibexecdir=$(rootlibexecdir)|' \
6052 '|rootbindir=$(rootbindir)|' \
6053 '|bindir=$(bindir)|' \
6054 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6055 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6056 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6057 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6058 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6059 '|pkgdatadir=$(pkgdatadir)|' \
6060 '|systemunitdir=$(systemunitdir)|' \
6061 '|userunitdir=$(userunitdir)|' \
6062 '|systempresetdir=$(systempresetdir)|' \
6063 '|userpresetdir=$(userpresetdir)|' \
6064 '|udevhwdbdir=$(udevhwdbdir)|' \
6065 '|udevrulesdir=$(udevrulesdir)|' \
6066 '|catalogdir=$(catalogdir)|' \
6067 '|tmpfilesdir=$(tmpfilesdir)|' \
6068 '|sysusersdir=$(sysusersdir)|' \
6069 '|sysctldir=$(sysctldir)|' \
6070 '|systemgeneratordir=$(systemgeneratordir)|' \
6071 '|usergeneratordir=$(usergeneratordir)|' \
6072 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6073 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6074 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6075 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6076 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6077 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6078 '|prefix=$(prefix)|' \
6079 '|exec_prefix=$(exec_prefix)|' \
6080 '|libdir=$(libdir)|' \
6081 '|includedir=$(includedir)|' \
6082 '|VERSION=$(VERSION)|' \
6083 '|rootprefix=$(rootprefix)|' \
6084 '|udevlibexecdir=$(udevlibexecdir)|' \
6085 '|SUSHELL=$(SUSHELL)|' \
6086 '|SULOGIN=$(SULOGIN)|' \
6087 '|DEBUGTTY=$(DEBUGTTY)|' \
6090 '|MOUNT_PATH=$(MOUNT_PATH)|' \
6091 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
6092 '|MKDIR_P=$(MKDIR_P)|' \
6093 '|QUOTAON=$(QUOTAON)|' \
6094 '|QUOTACHECK=$(QUOTACHECK)|' \
6095 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6096 '|VARLOGDIR=$(varlogdir)|' \
6097 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6098 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6099 '|PYTHON=$(PYTHON)|' \
6100 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6101 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6102 '|DEFAULT_DNSSEC_MODE=$(DEFAULT_DNSSEC_MODE)|' \
6103 '|KILL_USER_PROCESSES=$(KILL_USER_PROCESSES)|' \
6104 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6105 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6106 '|TTY_GID=$(TTY_GID)|' \
6107 '|systemsleepdir=$(systemsleepdir)|' \
6108 '|systemshutdowndir=$(systemshutdowndir)|' \
6109 '|binfmtdir=$(binfmtdir)|' \
6110 '|modulesloaddir=$(modulesloaddir)|'
6113 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6114 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6123 sysctl.d/%: sysctl.d/%.in
6132 src/core/%.systemd: src/core/%.systemd.in
6135 src/%.policy.in: src/%.policy.in.in
6138 shell-completion/%: shell-completion/%.in
6149 $(AM_V_GEN)chmod +x $@
6151 src/%.c: src/%.gperf
6152 $(AM_V_at)$(MKDIR_P) $(dir $@)
6153 $(AM_V_GPERF)$(GPERF) < $< > $@
6155 src/%: src/%.m4 $(top_builddir)/config.status
6156 $(AM_V_at)$(MKDIR_P) $(dir $@)
6157 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6159 sysusers.d/%: sysusers.d/%.m4 $(top_builddir)/config.status
6160 $(AM_V_at)$(MKDIR_P) $(dir $@)
6161 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6163 tmpfiles.d/%: tmpfiles.d/%.m4 $(top_builddir)/config.status
6164 $(AM_V_at)$(MKDIR_P) $(dir $@)
6165 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6168 units/%: units/%.m4 $(top_builddir)/config.status
6169 $(AM_V_at)$(MKDIR_P) $(dir $@)
6170 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6172 units/user/%: units/user/%.m4 $(top_builddir)/config.status
6173 $(AM_V_at)$(MKDIR_P) $(dir $@)
6174 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6177 nodist_polkitpolicy_DATA = \
6178 $(polkitpolicy_files) \
6179 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6183 $(polkitpolicy_in_files) \
6184 $(polkitpolicy_in_in_files)
6186 # ------------------------------------------------------------------------------
6187 man/custom-entities.ent: configure.ac
6188 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6189 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6190 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6194 man/custom-entities.ent
6199 --stringparam man.output.quietly 1 \
6200 --stringparam funcsynopsis.style ansi \
6201 --stringparam man.authors.section.enabled 0 \
6202 --stringparam man.copyright.section.enabled 0 \
6203 --stringparam systemd.version $(VERSION) \
6204 --path '$(builddir)/man:$(srcdir)/man'
6206 XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
6207 XSLTPROC_PROCESS_MAN = \
6208 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6210 XSLTPROC_PROCESS_HTML = \
6211 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6213 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6214 $(XSLTPROC_PROCESS_MAN)
6216 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6217 $(XSLTPROC_PROCESS_MAN)
6219 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6220 $(XSLTPROC_PROCESS_MAN)
6222 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6223 $(XSLTPROC_PROCESS_MAN)
6225 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6226 $(XSLTPROC_PROCESS_MAN)
6228 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6229 $(XSLTPROC_PROCESS_HTML)
6232 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6236 man/custom-html.xsl \
6239 # ------------------------------------------------------------------------------
6242 docs/sysvinit/README
6247 docs/sysvinit/README: docs/sysvinit/README.in
6250 docs/var-log/README: docs/var-log/README.in
6254 docs/sysvinit/README \
6259 docs/sysvinit/README.in \
6260 docs/var-log/README.in
6262 SOCKETS_TARGET_WANTS += \
6263 systemd-initctl.socket
6267 MULTI_USER_TARGET_WANTS += \
6268 systemd-update-utmp-runlevel.service
6269 GRAPHICAL_TARGET_WANTS += \
6270 systemd-update-utmp-runlevel.service
6271 RESCUE_TARGET_WANTS += \
6272 systemd-update-utmp-runlevel.service
6275 SYSINIT_TARGET_WANTS += \
6276 systemd-update-utmp.service
6279 SYSINIT_TARGET_WANTS += \
6280 systemd-update-done.service
6282 LOCAL_FS_TARGET_WANTS += \
6283 systemd-remount-fs.service \
6285 var-lib-machines.mount
6287 MULTI_USER_TARGET_WANTS += \
6289 systemd-ask-password-wall.path
6291 SYSINIT_TARGET_WANTS += \
6292 dev-hugepages.mount \
6294 sys-kernel-config.mount \
6295 sys-kernel-debug.mount \
6296 sys-fs-fuse-connections.mount \
6297 systemd-sysctl.service \
6298 systemd-ask-password-console.path
6301 SYSTEM_UNIT_ALIASES += \
6302 poweroff.target runlevel0.target \
6303 rescue.target runlevel1.target \
6304 multi-user.target runlevel2.target \
6305 multi-user.target runlevel3.target \
6306 multi-user.target runlevel4.target \
6307 graphical.target runlevel5.target \
6308 reboot.target runlevel6.target
6311 SYSTEM_UNIT_ALIASES += \
6312 graphical.target default.target \
6313 reboot.target ctrl-alt-del.target \
6314 getty@.service autovt@.service
6316 GENERAL_ALIASES += \
6317 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6318 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6319 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6320 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6324 $(systemunitdir)/runlevel1.target.wants \
6325 $(systemunitdir)/runlevel2.target.wants \
6326 $(systemunitdir)/runlevel3.target.wants \
6327 $(systemunitdir)/runlevel4.target.wants \
6328 $(systemunitdir)/runlevel5.target.wants
6332 $(prefix)/lib/modules-load.d \
6333 $(sysconfdir)/modules-load.d \
6334 $(prefix)/lib/systemd/network \
6335 $(sysconfdir)/systemd/network \
6336 $(prefix)/lib/sysctl.d \
6337 $(sysconfdir)/sysctl.d \
6338 $(prefix)/lib/kernel/install.d \
6339 $(sysconfdir)/kernel/install.d \
6340 $(systemshutdowndir) \
6342 $(systemgeneratordir) \
6343 $(usergeneratordir) \
6346 $(pkgsysconfdir)/system \
6347 $(pkgsysconfdir)/system/multi-user.target.wants \
6348 $(pkgsysconfdir)/system/getty.target.wants \
6349 $(pkgsysconfdir)/user \
6350 $(dbussessionservicedir) \
6351 $(sysconfdir)/xdg/systemd
6353 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6355 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6357 install-data-hook: $(INSTALL_DATA_HOOKS)
6359 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6361 clean-local: $(CLEAN_LOCAL_HOOKS)
6362 rm -rf $(abs_srcdir)/install-tree
6363 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6364 $(abs_srcdir)/hwdb/iab.txt
6366 DISTCHECK_CONFIGURE_FLAGS = \
6367 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6368 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6369 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6370 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6371 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6372 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6373 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6374 --with-rootprefix=$$dc_install_base \
6375 --enable-compat-libs
6378 DISTCHECK_CONFIGURE_FLAGS += \
6379 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6380 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6382 DISTCHECK_CONFIGURE_FLAGS += \
6383 --with-sysvinit-path= \
6384 --with-sysvrcnd-path=
6388 DISTCHECK_CONFIGURE_FLAGS += \
6391 DISTCHECK_CONFIGURE_FLAGS += \
6395 .PHONY: dist-check-help
6396 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6397 for i in $(abspath $^); do \
6398 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6399 echo "$(basename $$i) --help output is too wide:"; \
6400 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6404 include_compilers = "$(CC)" "$(CC) -ansi" "$(CC) -std=iso9899:1990"
6405 public_headers = $(filter-out src/systemd/_sd-common.h, $(pkginclude_HEADERS) $(include_HEADERS))
6406 .PHONY: dist-check-includes
6407 dist-check-includes: $(public_headers)
6409 for i in $(abspath $^); do \
6410 for cc in $(include_compilers); do \
6411 echo "$$cc -o/dev/null -c -x c -include "$$i" - </dev/null"; \
6412 $$cc -o/dev/null -c -x c -include "$$i" - </dev/null || res=1; \
6418 ( cd $(top_srcdir)/hwdb && \
6419 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6420 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6421 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6422 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6423 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6424 wget -O pnp_id_registry.html 'http://www.uefi.org/uefi-pnp-export' && \
6425 wget -O acpi_id_registry.html 'http://www.uefi.org/uefi-acpi-export' && \
6426 ./ids-update.pl && \
6427 ./acpi-update.py > 20-acpi-vendor.hwdb.base && \
6428 patch -p0 -o- 20-acpi-vendor.hwdb.base < 20-acpi-vendor.hwdb.patch > 20-acpi-vendor.hwdb )
6430 .PHONY: built-sources
6431 built-sources: $(BUILT_SOURCES)
6435 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6439 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6441 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6445 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6447 .PHONY: install-tree
6449 rm -rf $(abs_srcdir)/install-tree
6450 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6451 tree $(abs_srcdir)/install-tree
6453 # Let's run all tests of the test suite, but under valgrind. Let's
6454 # exclude perl/python/shell scripts we have in there
6455 .PHONY: valgrind-tests
6456 valgrind-tests: $(TESTS)
6457 $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \
6458 if $(LIBTOOL) --mode=execute file $$f | grep -q shell; then \
6459 echo -e "$${x}Skipping non-binary $$f"; else \
6460 echo -e "$${x}Running $$f"; \
6461 $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6466 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6468 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6469 $(AM_V_GEN)sort -u $^ > $@
6471 .PHONY: check-api-docs
6472 check-api-docs: exported man
6473 $(AM_V_GEN)for symbol in `cat exported` ; do \
6474 if test -f $(builddir)/man/$$symbol.html ; then \
6475 echo " Symbol $$symbol() is documented." ; \
6477 echo "‣ Symbol $$symbol() lacks documentation." ; \
6481 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6482 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6484 undefined defined: $(ALL_OBJECTS)
6485 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6486 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6487 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6493 .PHONY: check-api-unused
6494 check-api-unused: defined undefined exported
6495 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6497 .PHONY: check-includes
6498 check-includes: $(top_srcdir)/tools/check-includes.pl
6499 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6500 | xargs $(top_srcdir)/tools/check-includes.pl
6503 $(top_srcdir)/tools/check-includes.pl
6505 # Stupid test that everything purported to be exported really is
6506 define generate-sym-test
6507 $(AM_V_at)$(MKDIR_P) $(dir $@)
6508 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6509 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6510 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6511 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6512 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6513 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6514 $(AM_V_at)printf 'return 0; }\n' >> $@
6517 test-libsystemd-sym.c: \
6518 $(top_builddir)/src/libsystemd/libsystemd.sym \
6519 src/systemd/sd-journal.h \
6520 src/systemd/sd-daemon.h \
6521 src/systemd/sd-login.h \
6522 src/systemd/sd-bus.h \
6523 src/systemd/sd-utf8.h \
6524 src/systemd/sd-resolve.h \
6525 src/systemd/sd-path.h \
6526 src/systemd/sd-event.h
6527 $(generate-sym-test)
6529 test-libudev-sym.c: \
6530 src/libudev/libudev.sym \
6532 $(generate-sym-test)
6534 nodist_test_libsystemd_sym_SOURCES = \
6535 test-libsystemd-sym.c
6536 test_libsystemd_sym_LDADD = \
6539 nodist_test_libudev_sym_SOURCES = \
6541 test_libudev_sym_CFLAGS = \
6543 -Wno-deprecated-declarations
6544 test_libudev_sym_LDADD = \
6548 test-libsystemd-sym.c \
6552 test-libsystemd-sym.c \
6556 test-libsystemd-sym \
6561 cppcheck --enable=all -q $(top_srcdir)
6563 # Used to extract compile flags for YCM.
6568 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6571 tools/gdb-sd_dump_hashmaps.py
6574 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6577 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -