1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
49 # The following four libraries only exist for compatibility reasons,
50 # their version info should not be bumped anymore
51 LIBSYSTEMD_LOGIN_CURRENT=9
52 LIBSYSTEMD_LOGIN_REVISION=3
53 LIBSYSTEMD_LOGIN_AGE=9
55 LIBSYSTEMD_DAEMON_CURRENT=0
56 LIBSYSTEMD_DAEMON_REVISION=12
57 LIBSYSTEMD_DAEMON_AGE=0
59 LIBSYSTEMD_ID128_CURRENT=0
60 LIBSYSTEMD_ID128_REVISION=28
61 LIBSYSTEMD_ID128_AGE=0
63 LIBSYSTEMD_JOURNAL_CURRENT=11
64 LIBSYSTEMD_JOURNAL_REVISION=5
65 LIBSYSTEMD_JOURNAL_AGE=11
67 # Dirs of external packages
68 dbuspolicydir=@dbuspolicydir@
69 dbussessionservicedir=@dbussessionservicedir@
70 dbussystemservicedir=@dbussystemservicedir@
72 pamconfdir=@pamconfdir@
73 pkgconfigdatadir=$(datadir)/pkgconfig
74 pkgconfiglibdir=$(libdir)/pkgconfig
75 polkitpolicydir=$(datadir)/polkit-1/actions
76 bashcompletiondir=@bashcompletiondir@
77 zshcompletiondir=@zshcompletiondir@
78 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
79 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
80 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
81 varlogdir=$(localstatedir)/log
82 systemdstatedir=$(localstatedir)/lib/systemd
83 catalogstatedir=$(systemdstatedir)/catalog
84 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
86 # Our own, non-special dirs
87 pkgsysconfdir=$(sysconfdir)/systemd
88 userunitdir=$(prefix)/lib/systemd/user
89 userpresetdir=$(prefix)/lib/systemd/user-preset
90 tmpfilesdir=$(prefix)/lib/tmpfiles.d
91 sysusersdir=$(prefix)/lib/sysusers.d
92 sysctldir=$(prefix)/lib/sysctl.d
93 binfmtdir=$(prefix)/lib/binfmt.d
94 modulesloaddir=$(prefix)/lib/modules-load.d
95 networkdir=$(rootprefix)/lib/systemd/network
96 pkgincludedir=$(includedir)/systemd
97 systemgeneratordir=$(rootlibexecdir)/system-generators
98 usergeneratordir=$(prefix)/lib/systemd/user-generators
99 systemshutdowndir=$(rootlibexecdir)/system-shutdown
100 systemsleepdir=$(rootlibexecdir)/system-sleep
101 systemunitdir=$(rootprefix)/lib/systemd/system
102 systempresetdir=$(rootprefix)/lib/systemd/system-preset
103 udevlibexecdir=$(rootprefix)/lib/udev
104 udevhomedir=$(udevlibexecdir)
105 udevrulesdir=$(udevlibexecdir)/rules.d
106 udevhwdbdir=$(udevlibexecdir)/hwdb.d
107 catalogdir=$(prefix)/lib/systemd/catalog
108 kernelinstalldir = $(prefix)/lib/kernel/install.d
109 factory_etcdir = $(datadir)/factory/etc
110 factory_pamdir = $(datadir)/factory/etc/pam.d
111 bootlibdir = $(prefix)/lib/systemd/boot/efi
113 # And these are the special ones for /
114 rootprefix=@rootprefix@
115 rootbindir=$(rootprefix)/bin
116 rootlibexecdir=$(rootprefix)/lib/systemd
121 UNINSTALL_EXEC_HOOKS =
123 UNINSTALL_DATA_HOOKS =
124 DISTCLEAN_LOCAL_HOOKS =
133 polkitpolicy_in_in_files =
134 polkitpolicy_in_files =
136 dist_udevrules_DATA =
137 nodist_udevrules_DATA =
138 dist_pkgsysconf_DATA =
139 nodist_pkgsysconf_DATA =
140 dist_dbuspolicy_DATA =
141 dist_dbussystemservice_DATA =
142 dist_systemunit_DATA_busnames =
148 TEST_EXTENSIONS = .py
149 PY_LOG_COMPILER = $(PYTHON)
150 DISABLE_HARD_ERRORS = yes
152 noinst_PROGRAMS = $(manual_tests) $(tests)
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 $(in_files:.in=) $(in_in_files:.in.in=) \
171 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
172 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
173 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
176 -include $(top_builddir)/config.h \
177 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
178 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
179 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
180 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
181 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
182 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
183 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
184 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
185 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
186 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
187 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
188 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
189 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
190 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
191 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
192 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
193 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
194 -DROOTPREFIX=\"$(rootprefix)\" \
195 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
196 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
197 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
198 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
199 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
200 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
201 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
202 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
203 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
204 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
205 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
206 -DQUOTACHECK=\"$(QUOTACHECK)\" \
207 -DKEXEC=\"$(KEXEC)\" \
208 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
209 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
210 -DLIBDIR=\"$(libdir)\" \
211 -DROOTLIBDIR=\"$(rootlibdir)\" \
212 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
213 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
214 -I $(top_srcdir)/src \
215 -I $(top_builddir)/src/basic \
216 -I $(top_srcdir)/src/basic \
217 -I $(top_srcdir)/src/shared \
218 -I $(top_builddir)/src/shared \
219 -I $(top_srcdir)/src/network \
220 -I $(top_srcdir)/src/login \
221 -I $(top_srcdir)/src/journal \
222 -I $(top_builddir)/src/journal \
223 -I $(top_srcdir)/src/timedate \
224 -I $(top_srcdir)/src/timesync \
225 -I $(top_srcdir)/src/nspawn \
226 -I $(top_srcdir)/src/resolve \
227 -I $(top_builddir)/src/resolve \
228 -I $(top_srcdir)/src/systemd \
229 -I $(top_builddir)/src/core \
230 -I $(top_srcdir)/src/core \
231 -I $(top_srcdir)/src/libudev \
232 -I $(top_srcdir)/src/udev \
233 -I $(top_srcdir)/src/udev/net \
234 -I $(top_builddir)/src/udev \
235 -I $(top_srcdir)/src/libsystemd/sd-bus \
236 -I $(top_srcdir)/src/libsystemd/sd-event \
237 -I $(top_srcdir)/src/libsystemd/sd-login \
238 -I $(top_srcdir)/src/libsystemd/sd-netlink \
239 -I $(top_srcdir)/src/libsystemd/sd-network \
240 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
241 -I $(top_srcdir)/src/libsystemd/sd-device \
242 -I $(top_srcdir)/src/libsystemd-network \
245 AM_CFLAGS = $(OUR_CFLAGS)
246 AM_LDFLAGS = $(OUR_LDFLAGS)
248 # ------------------------------------------------------------------------------
249 define move-to-rootlibdir
250 if test "$(libdir)" != "$(rootlibdir)"; then \
251 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
252 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
253 rm -f $(DESTDIR)$(libdir)/$$libname && \
254 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
255 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
261 SHUTDOWN_TARGET_WANTS =
262 LOCAL_FS_TARGET_WANTS =
263 MULTI_USER_TARGET_WANTS =
264 GRAPHICAL_TARGET_WANTS =
265 RESCUE_TARGET_WANTS =
266 SYSINIT_TARGET_WANTS =
267 SOCKETS_TARGET_WANTS =
268 BUSNAMES_TARGET_WANTS =
269 TIMERS_TARGET_WANTS =
270 USER_SOCKETS_TARGET_WANTS =
271 USER_DEFAULT_TARGET_WANTS =
272 USER_BUSNAMES_TARGET_WANTS =
274 SYSTEM_UNIT_ALIASES =
278 install-target-wants-hook:
279 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
280 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
281 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
282 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
283 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
284 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
285 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
286 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
287 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
288 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
289 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
291 install-busnames-target-wants-hook:
292 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
293 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
296 [ -z "$$what" ] || ( \
297 dir=$(DESTDIR)$$dir/$$wants.wants && \
298 $(MKDIR_P) -m 0755 $$dir && \
301 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
304 install-directories-hook:
305 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
307 install-aliases-hook:
308 set -- $(SYSTEM_UNIT_ALIASES) && \
309 dir=$(systemunitdir) && $(install-aliases)
310 set -- $(USER_UNIT_ALIASES) && \
311 dir=$(userunitdir) && $(install-relative-aliases)
312 set -- $(GENERAL_ALIASES) && \
313 dir= && $(install-relative-aliases)
315 define install-aliases
316 while [ -n "$$1" ]; do \
317 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
318 rm -f $(DESTDIR)$$dir/$$2 && \
319 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
320 shift 2 || exit $$?; \
324 define install-relative-aliases
325 while [ -n "$$1" ]; do \
326 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
327 rm -f $(DESTDIR)$$dir/$$2 && \
328 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
329 shift 2 || exit $$?; \
333 install-touch-usr-hook:
334 touch -c $(DESTDIR)/$(prefix)
336 INSTALL_EXEC_HOOKS += \
337 install-target-wants-hook \
338 install-directories-hook \
339 install-aliases-hook \
340 install-touch-usr-hook
342 INSTALL_EXEC_HOOKS += \
343 install-busnames-target-wants-hook
345 # ------------------------------------------------------------------------------
346 AM_V_M4 = $(AM_V_M4_$(V))
347 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
348 AM_V_M4_0 = @echo " M4 " $@;
350 AM_V_XSLT = $(AM_V_XSLT_$(V))
351 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
352 AM_V_XSLT_0 = @echo " XSLT " $@;
354 AM_V_GPERF = $(AM_V_GPERF_$(V))
355 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
356 AM_V_GPERF_0 = @echo " GPERF " $@;
358 AM_V_LN = $(AM_V_LN_$(V))
359 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
360 AM_V_LN_0 = @echo " LN " $@;
362 AM_V_RM = $(AM_V_RM_$(V))
363 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
364 AM_V_RM_0 = @echo " RM " $@;
366 # ------------------------------------------------------------------------------
370 systemd-ask-password \
371 systemd-tty-ask-password-agent \
372 systemd-machine-id-setup \
379 systemd-detect-virt \
383 systemd-stdio-bridge \
387 src/kernel-install/kernel-install
389 dist_kernelinstall_SCRIPTS = \
390 src/kernel-install/50-depmod.install \
391 src/kernel-install/90-loaderentry.install
393 rootlibexec_PROGRAMS = \
395 systemd-cgroups-agent \
399 systemd-reply-password \
405 systemd-socket-proxyd \
409 rootlibexec_PROGRAMS += \
413 systemgenerator_PROGRAMS = \
414 systemd-getty-generator \
415 systemd-fstab-generator \
416 systemd-system-update-generator \
417 systemd-debug-generator
419 if ENABLE_BASH_COMPLETION
420 dist_bashcompletion_DATA = \
421 shell-completion/bash/busctl \
422 shell-completion/bash/journalctl \
423 shell-completion/bash/systemd-analyze \
424 shell-completion/bash/systemd-cat \
425 shell-completion/bash/systemd-cgls \
426 shell-completion/bash/systemd-cgtop \
427 shell-completion/bash/systemd-delta \
428 shell-completion/bash/systemd-detect-virt \
429 shell-completion/bash/systemd-nspawn \
430 shell-completion/bash/systemd-path \
431 shell-completion/bash/systemd-run \
432 shell-completion/bash/udevadm \
433 shell-completion/bash/kernel-install
435 nodist_bashcompletion_DATA = \
436 shell-completion/bash/systemctl
439 if ENABLE_ZSH_COMPLETION
440 dist_zshcompletion_DATA = \
441 shell-completion/zsh/_busctl \
442 shell-completion/zsh/_journalctl \
443 shell-completion/zsh/_udevadm \
444 shell-completion/zsh/_kernel-install \
445 shell-completion/zsh/_systemd-nspawn \
446 shell-completion/zsh/_systemd-analyze \
447 shell-completion/zsh/_systemd-run \
448 shell-completion/zsh/_sd_hosts_or_user_at_host \
449 shell-completion/zsh/_sd_outputmodes \
450 shell-completion/zsh/_sd_unit_files \
451 shell-completion/zsh/_systemd-delta \
452 shell-completion/zsh/_systemd
454 nodist_zshcompletion_DATA = \
455 shell-completion/zsh/_systemctl
459 shell-completion/bash/systemctl.in \
460 shell-completion/zsh/_systemctl.in
463 $(nodist_bashcompletion_DATA) \
464 $(nodist_zshcompletion_DATA)
467 sysctl.d/50-default.conf
469 dist_systemunit_DATA = \
470 units/graphical.target \
471 units/multi-user.target \
472 units/emergency.target \
473 units/sysinit.target \
479 units/local-fs.target \
480 units/local-fs-pre.target \
481 units/initrd.target \
482 units/initrd-fs.target \
483 units/initrd-root-fs.target \
484 units/remote-fs.target \
485 units/remote-fs-pre.target \
486 units/network.target \
487 units/network-pre.target \
488 units/network-online.target \
489 units/nss-lookup.target \
490 units/nss-user-lookup.target \
491 units/poweroff.target \
492 units/reboot.target \
493 units/rescue.target \
494 units/rpcbind.target \
495 units/time-sync.target \
496 units/shutdown.target \
498 units/umount.target \
499 units/sigpwr.target \
501 units/sockets.target \
502 units/timers.target \
504 units/suspend.target \
506 units/slices.target \
509 units/systemd-initctl.socket \
510 units/syslog.socket \
511 units/dev-hugepages.mount \
512 units/dev-mqueue.mount \
513 units/sys-kernel-config.mount \
514 units/sys-kernel-debug.mount \
515 units/sys-fs-fuse-connections.mount \
517 units/var-lib-machines.mount \
518 units/printer.target \
520 units/bluetooth.target \
521 units/smartcard.target \
522 units/systemd-ask-password-wall.path \
523 units/systemd-ask-password-console.path \
524 units/systemd-udevd-control.socket \
525 units/systemd-udevd-kernel.socket \
526 units/system-update.target \
527 units/initrd-switch-root.target \
528 units/machines.target
530 dist_systemunit_DATA += \
531 $(dist_systemunit_DATA_busnames)
533 dist_systemunit_DATA_busnames += \
534 units/busnames.target
536 nodist_systemunit_DATA = \
537 units/getty@.service \
538 units/serial-getty@.service \
539 units/console-shell.service \
540 units/console-getty.service \
541 units/container-getty@.service \
542 units/systemd-initctl.service \
543 units/systemd-remount-fs.service \
544 units/systemd-ask-password-wall.service \
545 units/systemd-ask-password-console.service \
546 units/systemd-sysctl.service \
547 units/emergency.service \
548 units/rescue.service \
549 units/user@.service \
550 units/systemd-suspend.service \
551 units/systemd-halt.service \
552 units/systemd-poweroff.service \
553 units/systemd-reboot.service \
554 units/systemd-kexec.service \
555 units/systemd-exit.service \
556 units/systemd-fsck@.service \
557 units/systemd-fsck-root.service \
558 units/systemd-machine-id-commit.service \
559 units/systemd-udevd.service \
560 units/systemd-udev-trigger.service \
561 units/systemd-udev-settle.service \
562 units/systemd-hwdb-update.service \
563 units/debug-shell.service \
564 units/initrd-parse-etc.service \
565 units/initrd-cleanup.service \
566 units/initrd-udevadm-cleanup-db.service \
567 units/initrd-switch-root.service \
568 units/systemd-nspawn@.service \
569 units/systemd-update-done.service
572 nodist_systemunit_DATA += \
573 units/systemd-update-utmp.service \
574 units/systemd-update-utmp-runlevel.service
577 dist_userunit_DATA = \
578 units/user/basic.target \
579 units/user/default.target \
580 units/user/exit.target
582 nodist_userunit_DATA = \
583 units/user/systemd-exit.service
585 dist_systempreset_DATA = \
586 system-preset/90-systemd.preset
589 units/getty@.service.m4 \
590 units/serial-getty@.service.m4 \
591 units/console-shell.service.m4.in \
592 units/console-getty.service.m4.in \
593 units/container-getty@.service.m4.in \
594 units/rescue.service.in \
595 units/systemd-initctl.service.in \
596 units/systemd-remount-fs.service.in \
597 units/systemd-update-utmp.service.in \
598 units/systemd-update-utmp-runlevel.service.in \
599 units/systemd-ask-password-wall.service.in \
600 units/systemd-ask-password-console.service.in \
601 units/systemd-sysctl.service.in \
602 units/emergency.service.in \
603 units/systemd-halt.service.in \
604 units/systemd-poweroff.service.in \
605 units/systemd-reboot.service.in \
606 units/systemd-kexec.service.in \
607 units/systemd-exit.service.in \
608 units/user/systemd-exit.service.in \
609 units/systemd-fsck@.service.in \
610 units/systemd-fsck-root.service.in \
611 units/systemd-machine-id-commit.service.in \
612 units/user@.service.m4.in \
613 units/debug-shell.service.in \
614 units/systemd-suspend.service.in \
615 units/quotaon.service.in \
616 units/initrd-parse-etc.service.in \
617 units/initrd-cleanup.service.in \
618 units/initrd-udevadm-cleanup-db.service.in \
619 units/initrd-switch-root.service.in \
620 units/systemd-nspawn@.service.in \
621 units/systemd-update-done.service.in \
625 nodist_systemunit_DATA += \
626 units/rc-local.service \
627 units/halt-local.service
629 systemgenerator_PROGRAMS += \
630 systemd-sysv-generator \
631 systemd-rc-local-generator
635 src/systemctl/systemd-sysv-install.SKELETON \
636 units/rc-local.service.in \
637 units/halt-local.service.in
639 # automake is broken and can't handle files with a dash in front
640 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
642 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
644 units-uninstall-hook:
645 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
647 INSTALL_DATA_HOOKS += units-install-hook
648 UNINSTALL_DATA_HOOKS += units-uninstall-hook
657 src/libsystemd/sd-bus/PORTING-DBUS1 \
658 src/libsystemd/sd-bus/DIFFERENCES \
659 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
671 @INTLTOOL_POLICY_RULE@
673 # ------------------------------------------------------------------------------
678 include Makefile-man.am
680 .PHONY: man update-man-list
681 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
684 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
686 ${XML_FILES:.xml=.html}
688 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
705 $(AM_V_at)$(MKDIR_P) $(dir $@)
706 $(AM_V_LN)$(LN_S) -f ../../man $@
715 man/index.html: man/systemd.index.html
716 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
724 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
725 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
726 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
728 # This target should only be run manually. It recreates Makefile-man.am
729 # file in the source directory based on all man/*.xml files. Run it after
730 # adding, removing, or changing the conditional in a man page.
731 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
732 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
733 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
734 @echo "Makefile-man.am has been regenerated"
736 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
737 $(AM_V_at)$(MKDIR_P) $(dir $@)
738 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
740 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
741 $(AM_V_at)$(MKDIR_P) $(dir $@)
742 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
745 man/systemd.index.xml \
746 man/systemd.directives.xml
754 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
755 tools/make-man-index.py \
756 tools/make-man-rules.py \
757 tools/make-directive-index.py \
758 tools/xml_helper.py \
759 man/glib-event-glue.c
761 # ------------------------------------------------------------------------------
762 noinst_LTLIBRARIES += \
765 libbasic_la_SOURCES = \
766 src/basic/missing.h \
767 src/basic/capability-util.c \
768 src/basic/capability-util.h \
769 src/basic/c-rbtree.c \
770 src/basic/c-rbtree.h \
771 src/basic/conf-files.c \
772 src/basic/conf-files.h \
773 src/basic/stdio-util.h \
774 src/basic/hostname-util.h \
775 src/basic/hostname-util.c \
776 src/basic/unit-name.c \
777 src/basic/unit-name.h \
779 src/basic/securebits.h \
780 src/basic/special.h \
782 src/basic/unaligned.h \
785 src/basic/sparse-endian.h \
789 src/basic/io-util.c \
790 src/basic/io-util.h \
791 src/basic/string-util.c \
792 src/basic/string-util.h \
793 src/basic/fd-util.c \
794 src/basic/fd-util.h \
795 src/basic/parse-util.c \
796 src/basic/parse-util.h \
797 src/basic/user-util.c \
798 src/basic/user-util.h \
799 src/basic/rlimit-util.c \
800 src/basic/rlimit-util.h \
801 src/basic/dirent-util.c \
802 src/basic/dirent-util.h \
803 src/basic/xattr-util.c \
804 src/basic/xattr-util.h \
805 src/basic/chattr-util.c \
806 src/basic/chattr-util.h \
807 src/basic/proc-cmdline.c \
808 src/basic/proc-cmdline.h \
809 src/basic/fs-util.c \
810 src/basic/fs-util.h \
811 src/basic/syslog-util.c \
812 src/basic/syslog-util.h \
813 src/basic/stat-util.c \
814 src/basic/stat-util.h \
815 src/basic/mount-util.c \
816 src/basic/mount-util.h \
817 src/basic/hexdecoct.c \
818 src/basic/hexdecoct.h \
819 src/basic/glob-util.h \
820 src/basic/glob-util.c \
821 src/basic/extract-word.c \
822 src/basic/extract-word.h \
825 src/basic/cpu-set-util.c \
826 src/basic/cpu-set-util.h \
827 src/basic/lockfile-util.c \
828 src/basic/lockfile-util.h \
829 src/basic/path-util.c \
830 src/basic/path-util.h \
831 src/basic/time-util.c \
832 src/basic/time-util.h \
833 src/basic/locale-util.c \
834 src/basic/locale-util.h \
835 src/basic/umask-util.h \
836 src/basic/signal-util.c \
837 src/basic/signal-util.h \
838 src/basic/string-table.c \
839 src/basic/string-table.h \
840 src/basic/mempool.c \
841 src/basic/mempool.h \
842 src/basic/hashmap.c \
843 src/basic/hashmap.h \
844 src/basic/siphash24.c \
845 src/basic/siphash24.h \
847 src/basic/ordered-set.h \
854 src/basic/web-util.c \
855 src/basic/web-util.h \
858 src/basic/env-util.c \
859 src/basic/env-util.h \
862 src/basic/strxcpyx.c \
863 src/basic/strxcpyx.h \
866 src/basic/bus-label.c \
867 src/basic/bus-label.h \
868 src/basic/ratelimit.h \
869 src/basic/ratelimit.c \
870 src/basic/exit-status.c \
871 src/basic/exit-status.h \
874 src/basic/smack-util.c \
875 src/basic/smack-util.h \
876 src/basic/device-nodes.c \
877 src/basic/device-nodes.h \
880 src/basic/gunicode.c \
881 src/basic/gunicode.h \
882 src/basic/socket-util.c \
883 src/basic/socket-util.h \
884 src/basic/in-addr-util.c \
885 src/basic/in-addr-util.h \
886 src/basic/ether-addr-util.h \
887 src/basic/ether-addr-util.c \
888 src/basic/replace-var.c \
889 src/basic/replace-var.h \
890 src/basic/clock-util.c \
891 src/basic/clock-util.h \
892 src/basic/calendarspec.c \
893 src/basic/calendarspec.h \
896 src/basic/MurmurHash2.c \
897 src/basic/MurmurHash2.h \
900 src/basic/cgroup-util.c \
901 src/basic/cgroup-util.h \
902 src/basic/errno-list.c \
903 src/basic/errno-list.h \
904 src/basic/af-list.c \
905 src/basic/af-list.h \
906 src/basic/arphrd-list.c \
907 src/basic/arphrd-list.h \
908 src/basic/terminal-util.c \
909 src/basic/terminal-util.h \
910 src/basic/login-util.h \
911 src/basic/login-util.c \
912 src/basic/cap-list.c \
913 src/basic/cap-list.h \
914 src/basic/audit-util.c \
915 src/basic/audit-util.h \
920 src/basic/barrier.c \
921 src/basic/barrier.h \
924 src/basic/memfd-util.c \
925 src/basic/memfd-util.h \
926 src/basic/process-util.c \
927 src/basic/process-util.h \
928 src/basic/random-util.c \
929 src/basic/random-util.h \
935 src/basic/socket-label.c \
938 src/basic/btrfs-util.c \
939 src/basic/btrfs-util.h \
940 src/basic/btrfs-ctree.h \
941 src/basic/selinux-util.c \
942 src/basic/selinux-util.h \
943 src/basic/mkdir-label.c \
944 src/basic/fileio-label.c \
945 src/basic/fileio-label.h \
950 src/basic/alloc-util.h \
951 src/basic/alloc-util.c \
952 src/basic/formats-util.h \
955 nodist_libbasic_la_SOURCES = \
956 src/basic/errno-from-name.h \
957 src/basic/errno-to-name.h \
958 src/basic/af-from-name.h \
959 src/basic/af-to-name.h \
960 src/basic/arphrd-from-name.h \
961 src/basic/arphrd-to-name.h \
962 src/basic/cap-from-name.h \
963 src/basic/cap-to-name.h
965 libbasic_la_CFLAGS = \
971 libbasic_la_LIBADD = \
977 # -----------------------------------------------------------------------------
978 noinst_LTLIBRARIES += \
981 libshared_la_SOURCES = \
982 src/shared/output-mode.h \
984 src/shared/udev-util.h \
985 src/shared/linux/auto_dev-ioctl.h \
986 src/shared/initreq.h \
987 src/shared/dns-domain.c \
988 src/shared/dns-domain.h \
989 src/shared/architecture.c \
990 src/shared/architecture.h \
991 src/shared/efivars.c \
992 src/shared/efivars.h \
993 src/shared/fstab-util.c \
994 src/shared/fstab-util.h \
995 src/shared/sleep-config.c \
996 src/shared/sleep-config.h \
997 src/shared/conf-parser.c \
998 src/shared/conf-parser.h \
1000 src/shared/pager.h \
1001 src/shared/spawn-polkit-agent.c \
1002 src/shared/spawn-polkit-agent.h \
1003 src/shared/apparmor-util.c \
1004 src/shared/apparmor-util.h \
1005 src/shared/ima-util.c \
1006 src/shared/ima-util.h \
1007 src/shared/ptyfwd.c \
1008 src/shared/ptyfwd.h \
1009 src/shared/base-filesystem.c \
1010 src/shared/base-filesystem.h \
1011 src/shared/uid-range.c \
1012 src/shared/uid-range.h \
1013 src/shared/install.c \
1014 src/shared/install.h \
1015 src/shared/install-printf.c \
1016 src/shared/install-printf.h \
1017 src/shared/path-lookup.c \
1018 src/shared/path-lookup.h \
1019 src/shared/specifier.c \
1020 src/shared/specifier.h \
1021 src/shared/dev-setup.c \
1022 src/shared/dev-setup.h \
1023 src/shared/dropin.c \
1024 src/shared/dropin.h \
1025 src/shared/condition.c \
1026 src/shared/condition.h \
1027 src/shared/clean-ipc.c \
1028 src/shared/clean-ipc.h \
1029 src/shared/generator.h \
1030 src/shared/generator.c \
1031 src/shared/acpi-fpdt.h \
1032 src/shared/acpi-fpdt.c \
1033 src/shared/boot-timestamps.h \
1034 src/shared/boot-timestamps.c \
1035 src/shared/cgroup-show.c \
1036 src/shared/cgroup-show.h \
1037 src/shared/utmp-wtmp.h \
1038 src/shared/watchdog.c \
1039 src/shared/watchdog.h \
1040 src/shared/spawn-ask-password-agent.c \
1041 src/shared/spawn-ask-password-agent.h \
1042 src/shared/ask-password-api.c \
1043 src/shared/ask-password-api.h \
1044 src/shared/switch-root.h \
1045 src/shared/switch-root.c \
1046 src/shared/import-util.c \
1047 src/shared/import-util.h \
1048 src/shared/sysctl-util.c \
1049 src/shared/sysctl-util.h \
1050 src/shared/bus-util.c \
1051 src/shared/bus-util.h \
1052 src/shared/logs-show.c \
1053 src/shared/logs-show.h \
1054 src/shared/machine-image.c \
1055 src/shared/machine-image.h \
1056 src/shared/machine-pool.c \
1057 src/shared/machine-pool.h
1060 libshared_la_SOURCES += \
1061 src/shared/utmp-wtmp.c
1065 libshared_la_SOURCES += \
1066 src/shared/seccomp-util.h \
1067 src/shared/seccomp-util.c
1071 libshared_la_SOURCES += \
1072 src/shared/acl-util.c \
1073 src/shared/acl-util.h
1076 libshared_la_CFLAGS = \
1082 libshared_la_LIBADD = \
1083 libsystemd-internal.la \
1084 libsystemd-journal-internal.la \
1085 libudev-internal.la \
1090 # -----------------------------------------------------------------------------
1092 noinst_LTLIBRARIES += \
1095 libfirewall_la_SOURCES = \
1096 src/shared/firewall-util.h \
1097 src/shared/firewall-util.c
1099 libfirewall_la_CFLAGS = \
1103 libfirewall_la_LIBADD = \
1107 # -----------------------------------------------------------------------------
1109 dist_systemunit_DATA += \
1110 units/ldconfig.service
1112 SYSINIT_TARGET_WANTS += \
1116 # ------------------------------------------------------------------------------
1117 noinst_LTLIBRARIES += \
1120 libcore_la_SOURCES = \
1123 src/core/unit-printf.c \
1124 src/core/unit-printf.h \
1127 src/core/manager.c \
1128 src/core/manager.h \
1129 src/core/transaction.c \
1130 src/core/transaction.h \
1131 src/core/load-fragment.c \
1132 src/core/load-fragment.h \
1133 src/core/service.c \
1134 src/core/service.h \
1137 src/core/busname.c \
1138 src/core/busname.h \
1139 src/core/bus-endpoint.c \
1140 src/core/bus-endpoint.h \
1141 src/core/bus-policy.c \
1142 src/core/bus-policy.h \
1149 src/core/automount.c \
1150 src/core/automount.h \
1161 src/core/load-dropin.c \
1162 src/core/load-dropin.h \
1163 src/core/execute.c \
1164 src/core/execute.h \
1169 src/core/dbus-manager.c \
1170 src/core/dbus-manager.h \
1171 src/core/dbus-unit.c \
1172 src/core/dbus-unit.h \
1173 src/core/dbus-job.c \
1174 src/core/dbus-job.h \
1175 src/core/dbus-service.c \
1176 src/core/dbus-service.h \
1177 src/core/dbus-socket.c \
1178 src/core/dbus-socket.h \
1179 src/core/dbus-busname.c \
1180 src/core/dbus-busname.h \
1181 src/core/dbus-target.c \
1182 src/core/dbus-target.h \
1183 src/core/dbus-device.c \
1184 src/core/dbus-device.h \
1185 src/core/dbus-mount.c \
1186 src/core/dbus-mount.h \
1187 src/core/dbus-automount.c \
1188 src/core/dbus-automount.h \
1189 src/core/dbus-swap.c \
1190 src/core/dbus-swap.h \
1191 src/core/dbus-timer.c \
1192 src/core/dbus-timer.h \
1193 src/core/dbus-path.c \
1194 src/core/dbus-path.h \
1195 src/core/dbus-slice.c \
1196 src/core/dbus-slice.h \
1197 src/core/dbus-scope.c \
1198 src/core/dbus-scope.h \
1199 src/core/dbus-execute.c \
1200 src/core/dbus-execute.h \
1201 src/core/dbus-kill.c \
1202 src/core/dbus-kill.h \
1203 src/core/dbus-cgroup.c \
1204 src/core/dbus-cgroup.h \
1207 src/core/selinux-access.c \
1208 src/core/selinux-access.h \
1209 src/core/selinux-setup.c \
1210 src/core/selinux-setup.h \
1211 src/core/smack-setup.c \
1212 src/core/smack-setup.h \
1213 src/core/ima-setup.c \
1214 src/core/ima-setup.h \
1215 src/core/locale-setup.h \
1216 src/core/locale-setup.c \
1217 src/core/hostname-setup.c \
1218 src/core/hostname-setup.h \
1219 src/core/machine-id-setup.c \
1220 src/core/machine-id-setup.h \
1221 src/core/mount-setup.c \
1222 src/core/mount-setup.h \
1223 src/core/kmod-setup.c \
1224 src/core/kmod-setup.h \
1225 src/core/loopback-setup.h \
1226 src/core/loopback-setup.c \
1227 src/core/namespace.c \
1228 src/core/namespace.h \
1229 src/core/killall.h \
1230 src/core/killall.c \
1231 src/core/audit-fd.c \
1232 src/core/audit-fd.h \
1233 src/core/show-status.c \
1234 src/core/show-status.h \
1235 src/core/failure-action.c \
1236 src/core/failure-action.h
1238 nodist_libcore_la_SOURCES = \
1239 src/core/load-fragment-gperf.c \
1240 src/core/load-fragment-gperf-nulstr.c
1242 libcore_la_CFLAGS = \
1247 $(APPARMOR_CFLAGS) \
1251 libcore_la_LIBADD = \
1259 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1260 $(AM_V_at)$(MKDIR_P) $(dir $@)
1261 $(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 ";" }' < $< > $@
1263 gperf_gperf_m4_sources = \
1264 src/core/load-fragment-gperf.gperf.m4
1266 gperf_txt_sources = \
1267 src/basic/errno-list.txt \
1268 src/basic/af-list.txt \
1269 src/basic/arphrd-list.txt \
1270 src/basic/cap-list.txt
1273 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1274 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1275 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1276 $(gperf_txt_sources:-list.txt=-from-name.h) \
1277 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
1280 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1282 $(gperf_txt_sources)
1285 $(gperf_gperf_m4_sources) \
1286 $(gperf_gperf_sources)
1289 $(gperf_txt_sources)
1291 %-from-name.gperf: %-list.txt
1292 $(AM_V_at)$(MKDIR_P) $(dir $@)
1293 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1295 %-from-name.h: %-from-name.gperf
1296 $(AM_V_at)$(MKDIR_P) $(dir $@)
1297 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1300 src/basic/errno-list.txt:
1301 $(AM_V_at)$(MKDIR_P) $(dir $@)
1302 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1304 src/basic/errno-to-name.h: src/basic/errno-list.txt
1305 $(AM_V_at)$(MKDIR_P) $(dir $@)
1306 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1309 src/basic/af-list.txt:
1310 $(AM_V_at)$(MKDIR_P) $(dir $@)
1311 $(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; }' >$@
1313 src/basic/af-to-name.h: src/basic/af-list.txt
1314 $(AM_V_at)$(MKDIR_P) $(dir $@)
1315 $(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 "};"}' <$< >$@
1318 src/basic/arphrd-list.txt:
1319 $(AM_V_at)$(MKDIR_P) $(dir $@)
1320 $(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_//' >$@
1322 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1323 $(AM_V_at)$(MKDIR_P) $(dir $@)
1324 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1326 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1327 $(AM_V_at)$(MKDIR_P) $(dir $@)
1328 $(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 }' <$< >$@
1331 src/basic/cap-list.txt:
1332 $(AM_V_at)$(MKDIR_P) $(dir $@)
1333 $(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 >$@
1335 src/basic/cap-to-name.h: src/basic/cap-list.txt
1336 $(AM_V_at)$(MKDIR_P) $(dir $@)
1337 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1339 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1340 $(AM_V_at)$(MKDIR_P) $(dir $@)
1341 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1343 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1344 $(AM_V_at)$(MKDIR_P) $(dir $@)
1345 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1347 audit_list_includes = -include linux/audit.h -include missing.h
1349 audit_list_includes += -include libaudit.h
1352 src/journal/audit_type-list.txt:
1353 $(AM_V_at)$(MKDIR_P) $(dir $@)
1354 $(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 >$@
1356 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1357 $(AM_V_at)$(MKDIR_P) $(dir $@)
1358 $(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" }' <$< >$@
1361 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1362 $(AM_V_at)$(MKDIR_P) $(dir $@)
1363 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1365 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1366 $(AM_V_at)$(MKDIR_P) $(dir $@)
1367 $(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" }' <$< >$@
1369 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1370 $(AM_V_at)$(MKDIR_P) $(dir $@)
1371 $(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 }' <$< >$@
1373 # ------------------------------------------------------------------------------
1385 dist_pkgsysconf_DATA += \
1386 src/core/system.conf \
1389 dist_dbuspolicy_DATA += \
1390 src/core/org.freedesktop.systemd1.conf
1392 dist_dbussystemservice_DATA += \
1393 src/core/org.freedesktop.systemd1.service
1395 polkitpolicy_in_in_files += \
1396 src/core/org.freedesktop.systemd1.policy.in.in
1398 pkgconfigdata_DATA += \
1401 nodist_rpmmacros_DATA = \
1402 src/core/macros.systemd
1405 src/core/systemd.pc.in \
1406 src/core/macros.systemd.in \
1407 src/core/triggers.systemd.in
1409 # ------------------------------------------------------------------------------
1455 test-hostname-util \
1457 test-terminal-util \
1467 test-strip-tab-ansi \
1516 test/daughter.service \
1521 test/grandchild.service \
1523 test/hello-after-sleep.target \
1524 test/hello.service \
1526 test/parent-deep.slice \
1528 test/sched_idle_bad.service \
1529 test/sched_idle_ok.service \
1530 test/sched_rr_bad.service \
1531 test/sched_rr_change.service \
1532 test/sched_rr_ok.service \
1533 test/shutdown.target \
1534 test/sleep.service \
1535 test/sockets.target \
1537 test/sysinit.target \
1538 test/testsuite.target \
1539 test/timers.target \
1540 test/unstoppable.service \
1541 test/test-path/paths.target \
1542 test/test-path/basic.target \
1543 test/test-path/sysinit.target \
1544 test/test-path/path-changed.service \
1545 test/test-path/path-directorynotempty.service \
1546 test/test-path/path-existsglob.service \
1547 test/test-path/path-exists.service \
1548 test/test-path/path-makedirectory.service \
1549 test/test-path/path-modified.service \
1550 test/test-path/path-mycustomunit.service \
1551 test/test-path/path-service.service \
1552 test/test-path/path-changed.path \
1553 test/test-path/path-directorynotempty.path \
1554 test/test-path/path-existsglob.path \
1555 test/test-path/path-exists.path \
1556 test/test-path/path-makedirectory.path \
1557 test/test-path/path-modified.path \
1558 test/test-path/path-unit.path \
1559 test/test-execute/exec-environment-empty.service \
1560 test/test-execute/exec-environment-multiple.service \
1561 test/test-execute/exec-environment.service \
1562 test/test-execute/exec-passenvironment-absent.service \
1563 test/test-execute/exec-passenvironment-empty.service \
1564 test/test-execute/exec-passenvironment-repeated.service \
1565 test/test-execute/exec-passenvironment.service \
1566 test/test-execute/exec-group.service \
1567 test/test-execute/exec-ignoresigpipe-no.service \
1568 test/test-execute/exec-ignoresigpipe-yes.service \
1569 test/test-execute/exec-personality-x86-64.service \
1570 test/test-execute/exec-personality-x86.service \
1571 test/test-execute/exec-personality-s390.service \
1572 test/test-execute/exec-privatedevices-no.service \
1573 test/test-execute/exec-privatedevices-yes.service \
1574 test/test-execute/exec-privatetmp-no.service \
1575 test/test-execute/exec-privatetmp-yes.service \
1576 test/test-execute/exec-systemcallerrornumber.service \
1577 test/test-execute/exec-systemcallfilter-failing2.service \
1578 test/test-execute/exec-systemcallfilter-failing.service \
1579 test/test-execute/exec-systemcallfilter-not-failing2.service \
1580 test/test-execute/exec-systemcallfilter-not-failing.service \
1581 test/test-execute/exec-user.service \
1582 test/test-execute/exec-workingdirectory.service \
1583 test/test-execute/exec-umask-0177.service \
1584 test/test-execute/exec-umask-default.service \
1585 test/test-execute/exec-privatenetwork-yes.service \
1586 test/test-execute/exec-environmentfile.service \
1587 test/test-execute/exec-oomscoreadjust-positive.service \
1588 test/test-execute/exec-oomscoreadjust-negative.service \
1589 test/test-execute/exec-ioschedulingclass-best-effort.service \
1590 test/test-execute/exec-ioschedulingclass-idle.service \
1591 test/test-execute/exec-ioschedulingclass-none.service \
1592 test/test-execute/exec-ioschedulingclass-realtime.service \
1593 test/test-execute/exec-capabilityboundingset-invert.service \
1594 test/test-execute/exec-capabilityboundingset-merge.service \
1595 test/test-execute/exec-capabilityboundingset-reset.service \
1596 test/test-execute/exec-capabilityboundingset-simple.service \
1597 test/bus-policy/hello.conf \
1598 test/bus-policy/methods.conf \
1599 test/bus-policy/ownerships.conf \
1600 test/bus-policy/signals.conf \
1601 test/bus-policy/check-own-rules.conf \
1602 test/bus-policy/many-rules.conf \
1603 test/bus-policy/test.conf
1607 src/test/test-helper.h
1609 test_device_nodes_SOURCES = \
1610 src/test/test-device-nodes.c
1612 test_device_nodes_LDADD = \
1615 test_engine_SOURCES = \
1616 src/test/test-engine.c
1618 test_engine_CFLAGS = \
1623 test_engine_LDADD = \
1626 test_job_type_SOURCES = \
1627 src/test/test-job-type.c
1629 test_job_type_CFLAGS = \
1634 test_job_type_LDADD = \
1647 test_loopback_SOURCES = \
1648 src/test/test-loopback.c
1650 test_loopback_LDADD = \
1653 test_hostname_SOURCES = \
1654 src/test/test-hostname.c
1656 test_hostname_LDADD = \
1659 test_dns_domain_SOURCES = \
1660 src/test/test-dns-domain.c
1662 test_dns_domain_LDADD = \
1663 libsystemd-network.la \
1670 test_boot_timestamp_SOURCES = \
1671 src/test/test-boot-timestamps.c
1673 test_boot_timestamp_LDADD = \
1677 test_unit_name_SOURCES = \
1678 src/test/test-unit-name.c
1680 test_unit_name_CFLAGS = \
1685 test_unit_name_LDADD = \
1688 test_unit_file_SOURCES = \
1689 src/test/test-unit-file.c
1691 test_unit_file_CFLAGS = \
1696 test_unit_file_LDADD = \
1699 test_utf8_SOURCES = \
1700 src/test/test-utf8.c
1705 test_capability_SOURCES = \
1706 src/test/test-capability.c
1708 test_capability_LDADD = \
1711 test_async_SOURCES = \
1712 src/test/test-async.c
1714 test_async_LDADD = \
1717 test_locale_util_SOURCES = \
1718 src/test/test-locale-util.c
1720 test_locale_util_LDADD = \
1723 test_copy_SOURCES = \
1724 src/test/test-copy.c
1729 test_sigbus_SOURCES = \
1730 src/test/test-sigbus.c
1732 test_sigbus_LDADD = \
1735 test_rbtree_SOURCES = \
1736 src/test/test-rbtree.c
1738 test_rbtree_LDADD = \
1741 test_condition_SOURCES = \
1742 src/test/test-condition.c
1744 test_condition_LDADD = \
1747 test_fdset_SOURCES = \
1748 src/test/test-fdset.c
1750 test_fdset_LDADD = \
1753 test_fstab_util_SOURCES = \
1754 src/test/test-fstab-util.c
1756 test_fstab_util_LDADD = \
1759 test_ratelimit_SOURCES = \
1760 src/test/test-ratelimit.c
1762 test_ratelimit_LDADD = \
1765 test_util_SOURCES = \
1766 src/test/test-util.c
1771 test_string_util_SOURCES = \
1772 src/test/test-string-util.c
1774 test_string_util_LDADD = \
1777 test_extract_word_SOURCES = \
1778 src/test/test-extract-word.c
1780 test_extract_word_LDADD = \
1783 test_parse_util_SOURCES = \
1784 src/test/test-parse-util.c
1786 test_parse_util_LDADD = \
1789 test_user_util_SOURCES = \
1790 src/test/test-user-util.c
1792 test_user_util_LDADD = \
1795 test_hostname_util_SOURCES = \
1796 src/test/test-hostname-util.c
1798 test_hostname_util_LDADD = \
1801 test_process_util_SOURCES = \
1802 src/test/test-process-util.c
1804 test_process_util_LDADD = \
1807 test_terminal_util_SOURCES = \
1808 src/test/test-terminal-util.c
1810 test_terminal_util_LDADD = \
1813 test_path_lookup_SOURCES = \
1814 src/test/test-path-lookup.c
1816 test_path_lookup_LDADD = \
1819 test_uid_range_SOURCES = \
1820 src/test/test-uid-range.c
1822 test_uid_range_LDADD = \
1825 test_cap_list_SOURCES = \
1826 src/test/test-cap-list.c
1828 test_cap_list_LDADD = \
1831 test_socket_util_SOURCES = \
1832 src/test/test-socket-util.c
1834 test_socket_util_LDADD = \
1837 test_barrier_SOURCES = \
1838 src/test/test-barrier.c
1840 test_barrier_LDADD = \
1843 test_tmpfiles_SOURCES = \
1844 src/test/test-tmpfiles.c
1846 test_tmpfiles_LDADD = \
1849 test_namespace_SOURCES = \
1850 src/test/test-namespace.c
1852 test_verbs_SOURCES = \
1853 src/test/test-verbs.c
1855 test_verbs_LDADD = \
1858 test_install_root_SOURCES = \
1859 src/test/test-install-root.c
1861 test_install_root_LDADD = \
1864 test_acl_util_SOURCES = \
1865 src/test/test-acl-util.c
1867 test_acl_util_LDADD = \
1870 test_namespace_LDADD = \
1873 test_rlimit_util_SOURCES = \
1874 src/test/test-rlimit-util.c
1876 test_rlimit_util_LDADD = \
1880 src/test/test-hashmap-ordered.c
1882 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1883 $(AM_V_at)$(MKDIR_P) $(dir $@)
1884 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1885 { if (!match($$0, "^#include")) \
1886 gsub(/hashmap/, "ordered_hashmap"); \
1887 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1888 gsub(/Hashmap/, "OrderedHashmap"); \
1891 nodist_test_hashmap_SOURCES = \
1892 src/test/test-hashmap-ordered.c
1894 test_hashmap_SOURCES = \
1895 src/test/test-hashmap.c \
1896 src/test/test-hashmap-plain.c
1898 test_hashmap_LDADD = \
1901 test_set_SOURCES = \
1907 test_bitmap_SOURCES = \
1908 src/test/test-bitmap.c
1910 test_bitmap_LDADD = \
1913 test_xml_SOURCES = \
1919 test_json_SOURCES = \
1920 src/test/test-json.c
1925 test_list_SOURCES = \
1926 src/test/test-list.c
1931 test_unaligned_LDADD = \
1934 test_unaligned_SOURCES = \
1935 src/test/test-unaligned.c
1937 test_tables_SOURCES = \
1938 src/test/test-tables.c \
1939 src/shared/test-tables.h \
1940 src/bus-proxyd/bus-xml-policy.c \
1941 src/bus-proxyd/bus-xml-policy.h \
1942 src/journal/journald-server.c \
1943 src/journal/journald-server.h
1945 test_tables_CPPFLAGS = \
1947 -I$(top_srcdir)/src/bus-proxyd
1949 test_tables_CFLAGS = \
1954 test_tables_LDADD = \
1955 libjournal-core.la \
1959 test_prioq_SOURCES = \
1960 src/test/test-prioq.c
1962 test_prioq_LDADD = \
1965 test_fileio_SOURCES = \
1966 src/test/test-fileio.c
1968 test_fileio_LDADD = \
1971 test_time_SOURCES = \
1972 src/test/test-time.c
1977 test_architecture_SOURCES = \
1978 src/test/test-architecture.c
1980 test_architecture_LDADD = \
1983 test_log_SOURCES = \
1989 test_ipcrm_SOURCES = \
1990 src/test/test-ipcrm.c
1992 test_ipcrm_LDADD = \
1995 test_btrfs_SOURCES = \
1996 src/test/test-btrfs.c
1998 test_btrfs_LDADD = \
2002 test_firewall_util_SOURCES = \
2003 src/test/test-firewall-util.c
2005 test_firewall_util_CFLAGS = \
2009 test_firewall_util_LDADD = \
2015 test_netlink_manual_SOURCES = \
2016 src/test/test-netlink-manual.c
2018 test_netlink_manual_CFLAGS = \
2022 test_netlink_manual_LDADD = \
2026 test_ellipsize_SOURCES = \
2027 src/test/test-ellipsize.c
2029 test_ellipsize_LDADD = \
2032 test_date_SOURCES = \
2033 src/test/test-date.c
2038 test_sleep_SOURCES = \
2039 src/test/test-sleep.c
2041 test_sleep_LDADD = \
2044 test_replace_var_SOURCES = \
2045 src/test/test-replace-var.c
2047 test_replace_var_LDADD = \
2050 test_calendarspec_SOURCES = \
2051 src/test/test-calendarspec.c
2053 test_calendarspec_LDADD = \
2056 test_strip_tab_ansi_SOURCES = \
2057 src/test/test-strip-tab-ansi.c
2059 test_strip_tab_ansi_LDADD = \
2062 test_daemon_SOURCES = \
2063 src/test/test-daemon.c
2065 test_daemon_LDADD = \
2068 test_cgroup_SOURCES = \
2069 src/test/test-cgroup.c
2071 test_cgroup_LDADD = \
2074 test_cgroup_mask_SOURCES = \
2075 src/test/test-cgroup-mask.c
2077 test_cgroup_mask_CPPFLAGS = \
2081 test_cgroup_mask_CFLAGS = \
2085 test_cgroup_mask_LDADD = \
2088 test_cgroup_util_SOURCES = \
2089 src/test/test-cgroup-util.c
2091 test_cgroup_util_LDADD = \
2094 test_env_replace_SOURCES = \
2095 src/test/test-env-replace.c
2097 test_env_replace_LDADD = \
2100 test_strbuf_SOURCES = \
2101 src/test/test-strbuf.c
2103 test_strbuf_LDADD = \
2106 test_strv_SOURCES = \
2107 src/test/test-strv.c
2112 test_path_util_SOURCES = \
2113 src/test/test-path-util.c
2115 test_path_util_LDADD = \
2118 test_path_SOURCES = \
2119 src/test/test-path.c
2121 test_path_CFLAGS = \
2128 test_execute_SOURCES = \
2129 src/test/test-execute.c
2131 test_execute_CFLAGS = \
2135 test_execute_LDADD = \
2138 test_siphash24_SOURCES = \
2139 src/test/test-siphash24.c
2141 test_siphash24_LDADD = \
2144 test_strxcpyx_SOURCES = \
2145 src/test/test-strxcpyx.c
2147 test_strxcpyx_LDADD = \
2150 test_install_SOURCES = \
2151 src/test/test-install.c
2153 test_install_LDADD = \
2156 test_watchdog_SOURCES = \
2157 src/test/test-watchdog.c
2159 test_watchdog_LDADD = \
2162 test_sched_prio_SOURCES = \
2163 src/test/test-sched-prio.c
2165 test_sched_prio_CPPFLAGS = \
2169 test_sched_prio_CFLAGS = \
2173 test_sched_prio_LDADD = \
2176 test_conf_files_SOURCES = \
2177 src/test/test-conf-files.c
2179 test_conf_files_LDADD = \
2182 test_conf_parser_SOURCES = \
2183 src/test/test-conf-parser.c
2185 test_conf_parser_LDADD = \
2188 test_bus_policy_SOURCES = \
2189 src/bus-proxyd/test-bus-xml-policy.c
2191 test_bus_policy_LDADD = \
2192 libbus-proxy-core.la \
2195 test_af_list_SOURCES = \
2196 src/test/test-af-list.c
2198 test_af_list_LDADD = \
2201 test_arphrd_list_SOURCES = \
2202 src/test/test-arphrd-list.c
2204 test_arphrd_list_LDADD = \
2207 # ------------------------------------------------------------------------------
2208 ## .PHONY so it always rebuilds it
2209 .PHONY: coverage lcov-run lcov-report coverage-sync
2211 # run lcov from scratch, always
2216 coverage_dir = coverage
2217 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2220 # reset run coverage tests
2222 @rm -rf $(coverage_dir)
2223 lcov $(coverage_opts) --zerocounters
2226 # generate report based on current coverage data
2228 $(MKDIR_P) $(coverage_dir)
2229 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2230 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2231 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2232 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2233 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2235 # lcov doesn't work properly with vpath builds, make sure that bad
2236 # output is not uploaded by mistake.
2237 coverage-sync: coverage
2238 test "$(builddir)" = "$(srcdir)"
2239 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2242 lcov-run lcov-report:
2243 echo "Need to reconfigure with --enable-coverage"
2246 # ------------------------------------------------------------------------------
2247 systemd_analyze_SOURCES = \
2248 src/analyze/analyze.c \
2249 src/analyze/analyze-verify.c \
2250 src/analyze/analyze-verify.h
2252 systemd_analyze_CFLAGS = \
2257 systemd_analyze_LDADD = \
2260 # ------------------------------------------------------------------------------
2261 systemd_initctl_SOURCES = \
2262 src/initctl/initctl.c
2264 systemd_initctl_LDADD = \
2267 # ------------------------------------------------------------------------------
2268 systemd_update_utmp_SOURCES = \
2269 src/update-utmp/update-utmp.c
2271 systemd_update_utmp_CFLAGS = \
2275 systemd_update_utmp_LDADD = \
2279 # ------------------------------------------------------------------------------
2280 systemd_update_done_SOURCES = \
2281 src/update-done/update-done.c
2283 systemd_update_done_LDADD = \
2286 # ------------------------------------------------------------------------------
2287 systemd_shutdown_SOURCES = \
2290 src/core/shutdown.c \
2291 src/core/mount-setup.c \
2292 src/core/mount-setup.h \
2293 src/core/killall.h \
2296 systemd_shutdown_LDADD = \
2299 # ------------------------------------------------------------------------------
2301 systemd_modules_load_SOURCES = \
2302 src/modules-load/modules-load.c
2304 systemd_modules_load_CFLAGS = \
2308 systemd_modules_load_LDADD = \
2312 rootlibexec_PROGRAMS += \
2313 systemd-modules-load
2315 nodist_systemunit_DATA += \
2316 units/systemd-modules-load.service
2318 SYSINIT_TARGET_WANTS += \
2319 systemd-modules-load.service
2322 nodist_systemunit_DATA += \
2323 units/kmod-static-nodes.service
2325 SYSINIT_TARGET_WANTS += \
2326 kmod-static-nodes.service
2331 units/systemd-modules-load.service.in \
2332 units/kmod-static-nodes.service.in
2334 # ------------------------------------------------------------------------------
2336 systemd_tmpfiles_SOURCES = \
2337 src/tmpfiles/tmpfiles.c
2339 systemd_tmpfiles_LDADD = \
2342 rootbin_PROGRAMS += \
2345 dist_systemunit_DATA += \
2346 units/systemd-tmpfiles-clean.timer
2348 nodist_systemunit_DATA += \
2349 units/systemd-tmpfiles-setup-dev.service \
2350 units/systemd-tmpfiles-setup.service \
2351 units/systemd-tmpfiles-clean.service
2353 nodist_tmpfiles_DATA = \
2354 tmpfiles.d/systemd.conf \
2357 dist_tmpfiles_DATA = \
2358 tmpfiles.d/systemd-nologin.conf \
2359 tmpfiles.d/tmp.conf \
2360 tmpfiles.d/x11.conf \
2361 tmpfiles.d/var.conf \
2362 tmpfiles.d/home.conf \
2363 tmpfiles.d/systemd-nspawn.conf \
2364 tmpfiles.d/journal-nocow.conf
2367 dist_tmpfiles_DATA += \
2368 tmpfiles.d/legacy.conf
2371 SYSINIT_TARGET_WANTS += \
2372 systemd-tmpfiles-setup-dev.service \
2373 systemd-tmpfiles-setup.service
2375 if ENABLE_ZSH_COMPLETION
2376 dist_zshcompletion_DATA += \
2377 shell-completion/zsh/_systemd-tmpfiles
2380 TIMERS_TARGET_WANTS += \
2381 systemd-tmpfiles-clean.timer
2385 $(sysconfdir)/tmpfiles.d
2389 tmpfiles.d/systemd.conf.m4 \
2390 tmpfiles.d/etc.conf.m4 \
2391 units/systemd-tmpfiles-setup-dev.service.in \
2392 units/systemd-tmpfiles-setup.service.in \
2393 units/systemd-tmpfiles-clean.service.in
2395 # ------------------------------------------------------------------------------
2397 systemd_sysusers_SOURCES = \
2398 src/sysusers/sysusers.c
2400 systemd_sysusers_LDADD = \
2403 rootbin_PROGRAMS += \
2406 nodist_systemunit_DATA += \
2407 units/systemd-sysusers.service
2409 SYSINIT_TARGET_WANTS += \
2410 systemd-sysusers.service
2412 nodist_sysusers_DATA = \
2413 sysusers.d/systemd.conf \
2414 sysusers.d/basic.conf
2417 nodist_sysusers_DATA += \
2418 sysusers.d/systemd-remote.conf
2426 units/systemd-sysusers.service.in \
2427 sysusers.d/systemd.conf.m4 \
2428 sysusers.d/systemd-remote.conf.m4 \
2429 sysusers.d/basic.conf.in
2431 # ------------------------------------------------------------------------------
2432 dist_factory_etc_DATA = \
2433 factory/etc/nsswitch.conf
2436 dist_factory_pam_DATA = \
2437 factory/etc/pam.d/system-auth \
2438 factory/etc/pam.d/other
2441 # ------------------------------------------------------------------------------
2443 systemd_firstboot_SOURCES = \
2444 src/firstboot/firstboot.c
2446 systemd_firstboot_LDADD = \
2450 rootbin_PROGRAMS += \
2453 nodist_systemunit_DATA += \
2454 units/systemd-firstboot.service
2456 SYSINIT_TARGET_WANTS += \
2457 systemd-firstboot.service
2461 units/systemd-firstboot.service.in
2463 # ------------------------------------------------------------------------------
2464 systemd_machine_id_setup_SOURCES = \
2465 src/machine-id-setup/machine-id-setup-main.c \
2466 src/core/machine-id-setup.c \
2467 src/core/machine-id-setup.h
2469 systemd_machine_id_setup_LDADD = \
2472 SYSINIT_TARGET_WANTS += \
2473 systemd-machine-id-commit.service
2475 # ------------------------------------------------------------------------------
2476 systemd_sysctl_SOURCES = \
2479 systemd_sysctl_LDADD = \
2482 # ------------------------------------------------------------------------------
2483 systemd_sleep_SOURCES = \
2486 systemd_sleep_LDADD = \
2489 # ------------------------------------------------------------------------------
2490 systemd_fsck_SOURCES = \
2493 systemd_fsck_LDADD = \
2496 # ------------------------------------------------------------------------------
2497 systemd_ac_power_SOURCES = \
2498 src/ac-power/ac-power.c
2500 systemd_ac_power_LDADD = \
2503 # ------------------------------------------------------------------------------
2504 systemd_detect_virt_SOURCES = \
2505 src/detect-virt/detect-virt.c
2507 systemd_detect_virt_LDADD = \
2510 INSTALL_EXEC_HOOKS += \
2511 systemd-detect-virt-install-hook
2513 # ------------------------------------------------------------------------------
2514 systemd_delta_SOURCES = \
2517 systemd_delta_LDADD = \
2520 # ------------------------------------------------------------------------------
2521 systemd_getty_generator_SOURCES = \
2522 src/getty-generator/getty-generator.c
2524 systemd_getty_generator_LDADD = \
2527 # ------------------------------------------------------------------------------
2528 systemd_debug_generator_SOURCES = \
2529 src/debug-generator/debug-generator.c
2531 systemd_debug_generator_LDADD = \
2534 # ------------------------------------------------------------------------------
2535 systemd_fstab_generator_SOURCES = \
2536 src/fstab-generator/fstab-generator.c \
2537 src/core/mount-setup.c
2539 systemd_fstab_generator_LDADD = \
2542 # ------------------------------------------------------------------------------
2543 systemd_system_update_generator_SOURCES = \
2544 src/system-update-generator/system-update-generator.c
2546 systemd_system_update_generator_LDADD = \
2549 # ------------------------------------------------------------------------------
2551 systemgenerator_PROGRAMS += \
2552 systemd-hibernate-resume-generator
2554 rootlibexec_PROGRAMS += \
2555 systemd-hibernate-resume
2557 systemd_hibernate_resume_SOURCES = \
2558 src/hibernate-resume/hibernate-resume.c
2560 systemd_hibernate_resume_LDADD = \
2563 systemd_hibernate_resume_generator_SOURCES = \
2564 src/hibernate-resume/hibernate-resume-generator.c
2566 systemd_hibernate_resume_generator_LDADD = \
2569 dist_systemunit_DATA += \
2570 units/hibernate.target \
2571 units/hybrid-sleep.target
2573 nodist_systemunit_DATA += \
2574 units/systemd-hibernate.service \
2575 units/systemd-hibernate-resume@.service \
2576 units/systemd-hybrid-sleep.service
2580 units/systemd-hibernate.service.in \
2581 units/systemd-hibernate-resume@.service.in \
2582 units/systemd-hybrid-sleep.service.in
2584 # ------------------------------------------------------------------------------
2590 bootctl_CPPFLAGS = \
2592 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2593 -DBOOTLIBDIR=\"$(bootlibdir)\"
2606 if ENABLE_BASH_COMPLETION
2607 dist_bashcompletion_DATA += \
2608 shell-completion/bash/bootctl
2611 if ENABLE_ZSH_COMPLETION
2612 dist_zshcompletion_DATA += \
2613 shell-completion/zsh/_bootctl
2617 # ------------------------------------------------------------------------------
2621 -I$(top_builddir) -include config.h \
2622 -I$(EFI_INC_DIR)/efi \
2623 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2624 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2637 -fno-strict-aliasing \
2638 -fno-stack-protector \
2640 -Wno-missing-field-initializers
2647 -DEFI_FUNCTION_WRAPPER \
2648 -DGNU_EFI_USE_MS_ABI
2659 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2665 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2667 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2668 # and add required symbols manually.
2670 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2671 EFI_FORMAT = -O binary
2673 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2678 # ------------------------------------------------------------------------------
2679 systemd_boot_headers = \
2680 src/boot/efi/util.h \
2681 src/boot/efi/console.h \
2682 src/boot/efi/graphics.h \
2683 src/boot/efi/pefile.h \
2686 systemd_boot_sources = \
2687 src/boot/efi/util.c \
2688 src/boot/efi/console.c \
2689 src/boot/efi/graphics.c \
2690 src/boot/efi/pefile.c \
2691 src/boot/efi/disk.c \
2694 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2698 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2699 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2700 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2702 bootlib_DATA = $(systemd_boot)
2703 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2705 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2706 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2707 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2709 $(systemd_boot_solib): $(systemd_boot_objects)
2710 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2711 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2712 nm -D -u $@ | grep ' U ' && exit 1 || :
2714 $(systemd_boot): $(systemd_boot_solib)
2715 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2716 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2720 # ------------------------------------------------------------------------------
2722 src/boot/efi/util.h \
2723 src/boot/efi/pefile.h \
2724 src/boot/efi/disk.h \
2725 src/boot/efi/graphics.h \
2726 src/boot/efi/splash.h \
2727 src/boot/efi/linux.h
2730 src/boot/efi/util.c \
2731 src/boot/efi/pefile.c \
2732 src/boot/efi/disk.c \
2733 src/boot/efi/graphics.c \
2734 src/boot/efi/splash.c \
2735 src/boot/efi/linux.c \
2745 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2746 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2747 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2749 bootlib_DATA += $(stub)
2750 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2752 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2753 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2754 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2756 $(stub_solib): $(stub_objects)
2757 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2758 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2759 nm -D -u $@ | grep ' U ' && exit 1 || :
2761 $(stub): $(stub_solib)
2762 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2763 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2765 # ------------------------------------------------------------------------------
2766 CLEANFILES += test-efi-disk.img
2768 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2769 $(AM_V_GEN)test/test-efi-create-disk.sh
2771 test-efi: test-efi-disk.img
2772 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2776 EXTRA_DIST += test/test-efi-create-disk.sh
2778 # ------------------------------------------------------------------------------
2780 systemgenerator_PROGRAMS += \
2781 systemd-gpt-auto-generator
2783 systemd_gpt_auto_generator_SOURCES = \
2784 src/gpt-auto-generator/gpt-auto-generator.c \
2785 src/basic/blkid-util.h
2787 systemd_gpt_auto_generator_LDADD = \
2791 systemd_gpt_auto_generator_CFLAGS = \
2796 # ------------------------------------------------------------------------------
2797 systemgenerator_PROGRAMS += \
2798 systemd-dbus1-generator
2800 systemd_dbus1_generator_SOURCES = \
2801 src/dbus1-generator/dbus1-generator.c
2803 systemd_dbus1_generator_LDADD = \
2806 dbus1-generator-install-hook:
2807 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2808 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2809 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2811 dbus1-generator-uninstall-hook:
2812 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2814 dist_xinitrc_SCRIPTS = \
2815 xorg/50-systemd-user.sh
2817 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2818 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2820 # ------------------------------------------------------------------------------
2821 systemd_sysv_generator_SOURCES = \
2822 src/sysv-generator/sysv-generator.c
2824 systemd_sysv_generator_LDADD = \
2827 # ------------------------------------------------------------------------------
2828 systemd_rc_local_generator_SOURCES = \
2829 src/rc-local-generator/rc-local-generator.c
2831 systemd_rc_local_generator_LDADD = \
2834 # ------------------------------------------------------------------------------
2835 systemd_remount_fs_SOURCES = \
2836 src/remount-fs/remount-fs.c \
2837 src/core/mount-setup.c \
2838 src/core/mount-setup.h
2840 systemd_remount_fs_LDADD = \
2843 # ------------------------------------------------------------------------------
2844 systemd_cgroups_agent_SOURCES = \
2845 src/cgroups-agent/cgroups-agent.c
2847 systemd_cgroups_agent_LDADD = \
2850 # ------------------------------------------------------------------------------
2851 systemd_escape_SOURCES = \
2854 systemd_escape_LDADD = \
2857 # -----------------------------------------------------------------------------
2858 systemctl_SOURCES = \
2859 src/systemctl/systemctl.c
2864 # ------------------------------------------------------------------------------
2865 systemd_notify_SOURCES = \
2868 systemd_notify_LDADD = \
2871 # ------------------------------------------------------------------------------
2872 systemd_path_SOURCES = \
2875 systemd_path_LDADD = \
2878 # ------------------------------------------------------------------------------
2879 systemd_ask_password_SOURCES = \
2880 src/ask-password/ask-password.c
2882 systemd_ask_password_LDADD = \
2885 # ------------------------------------------------------------------------------
2886 systemd_reply_password_SOURCES = \
2887 src/reply-password/reply-password.c
2889 systemd_reply_password_LDADD = \
2892 # ------------------------------------------------------------------------------
2893 systemd_cgls_SOURCES = \
2896 systemd_cgls_LDADD = \
2899 # ------------------------------------------------------------------------------
2900 systemd_cgtop_SOURCES = \
2903 systemd_cgtop_LDADD = \
2906 # ------------------------------------------------------------------------------
2907 systemd_nspawn_SOURCES = \
2908 src/nspawn/nspawn.c \
2909 src/nspawn/nspawn-settings.c \
2910 src/nspawn/nspawn-settings.h \
2911 src/nspawn/nspawn-mount.c \
2912 src/nspawn/nspawn-mount.h \
2913 src/nspawn/nspawn-network.c \
2914 src/nspawn/nspawn-network.h \
2915 src/nspawn/nspawn-expose-ports.c \
2916 src/nspawn/nspawn-expose-ports.h \
2917 src/nspawn/nspawn-cgroup.c \
2918 src/nspawn/nspawn-cgroup.h \
2919 src/nspawn/nspawn-register.c \
2920 src/nspawn/nspawn-register.h \
2921 src/nspawn/nspawn-setuid.c \
2922 src/nspawn/nspawn-setuid.h \
2923 src/core/mount-setup.c \
2924 src/core/mount-setup.h \
2925 src/core/loopback-setup.c \
2926 src/core/loopback-setup.h
2928 nodist_systemd_nspawn_SOURCES = \
2929 src/nspawn/nspawn-gperf.c
2931 gperf_gperf_sources += \
2932 src/nspawn/nspawn-gperf.gperf
2934 systemd_nspawn_CFLAGS = \
2939 systemd_nspawn_LDADD = \
2944 systemd_nspawn_LDADD += \
2948 # ------------------------------------------------------------------------------
2949 systemd_run_SOURCES = \
2952 systemd_run_LDADD = \
2955 # ------------------------------------------------------------------------------
2956 noinst_LTLIBRARIES += \
2957 libbus-proxy-core.la
2959 libbus_proxy_core_la_SOURCES = \
2960 src/bus-proxyd/bus-xml-policy.c \
2961 src/bus-proxyd/bus-xml-policy.h \
2962 src/bus-proxyd/driver.c \
2963 src/bus-proxyd/driver.h \
2964 src/bus-proxyd/proxy.c \
2965 src/bus-proxyd/proxy.h \
2966 src/bus-proxyd/synthesize.c \
2967 src/bus-proxyd/synthesize.h
2969 libbus_proxy_core_la_LIBADD = \
2972 systemd_bus_proxyd_SOURCES = \
2973 src/bus-proxyd/bus-proxyd.c
2975 systemd_bus_proxyd_LDADD = \
2976 libbus-proxy-core.la \
2979 systemd_stdio_bridge_SOURCES = \
2980 src/bus-proxyd/stdio-bridge.c
2982 systemd_stdio_bridge_LDADD = \
2983 libbus-proxy-core.la \
2986 nodist_systemunit_DATA += \
2987 units/systemd-bus-proxyd.service
2989 dist_systemunit_DATA += \
2990 units/systemd-bus-proxyd.socket
2992 nodist_userunit_DATA += \
2993 units/user/systemd-bus-proxyd.service
2995 dist_userunit_DATA += \
2996 units/user/systemd-bus-proxyd.socket
2999 units/systemd-bus-proxyd.service.m4.in \
3000 units/user/systemd-bus-proxyd.service.in
3003 bus-proxyd-set-cap-hook:
3004 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
3006 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
3009 # ------------------------------------------------------------------------------
3010 systemd_tty_ask_password_agent_SOURCES = \
3011 src/tty-ask-password-agent/tty-ask-password-agent.c
3013 systemd_tty_ask_password_agent_LDADD = \
3016 # ------------------------------------------------------------------------------
3017 libsystemd_internal_la_SOURCES = \
3018 src/systemd/sd-bus.h \
3019 src/systemd/sd-bus-protocol.h \
3020 src/systemd/sd-bus-vtable.h \
3021 src/systemd/sd-utf8.h \
3022 src/systemd/sd-event.h \
3023 src/systemd/sd-netlink.h \
3024 src/systemd/sd-resolve.h \
3025 src/systemd/sd-login.h \
3026 src/systemd/sd-id128.h \
3027 src/systemd/sd-daemon.h \
3028 src/systemd/sd-path.h \
3029 src/systemd/sd-network.h \
3030 src/systemd/sd-hwdb.h \
3031 src/systemd/sd-device.h \
3032 src/libsystemd/libsystemd.sym \
3033 src/libsystemd/sd-bus/sd-bus.c \
3034 src/libsystemd/sd-bus/bus-control.c \
3035 src/libsystemd/sd-bus/bus-control.h \
3036 src/libsystemd/sd-bus/bus-error.c \
3037 src/libsystemd/sd-bus/bus-error.h \
3038 src/libsystemd/sd-bus/bus-common-errors.h \
3039 src/libsystemd/sd-bus/bus-common-errors.c \
3040 src/libsystemd/sd-bus/bus-internal.c \
3041 src/libsystemd/sd-bus/bus-internal.h \
3042 src/libsystemd/sd-bus/bus-socket.c \
3043 src/libsystemd/sd-bus/bus-socket.h \
3044 src/libsystemd/sd-bus/bus-kernel.c \
3045 src/libsystemd/sd-bus/bus-kernel.h \
3046 src/libsystemd/sd-bus/bus-container.c \
3047 src/libsystemd/sd-bus/bus-container.h \
3048 src/libsystemd/sd-bus/bus-message.c \
3049 src/libsystemd/sd-bus/bus-message.h \
3050 src/libsystemd/sd-bus/bus-creds.c \
3051 src/libsystemd/sd-bus/bus-creds.h \
3052 src/libsystemd/sd-bus/bus-signature.c \
3053 src/libsystemd/sd-bus/bus-signature.h \
3054 src/libsystemd/sd-bus/bus-type.c \
3055 src/libsystemd/sd-bus/bus-type.h \
3056 src/libsystemd/sd-bus/bus-match.c \
3057 src/libsystemd/sd-bus/bus-match.h \
3058 src/libsystemd/sd-bus/bus-bloom.c \
3059 src/libsystemd/sd-bus/bus-bloom.h \
3060 src/libsystemd/sd-bus/bus-introspect.c \
3061 src/libsystemd/sd-bus/bus-introspect.h \
3062 src/libsystemd/sd-bus/bus-objects.c \
3063 src/libsystemd/sd-bus/bus-objects.h \
3064 src/libsystemd/sd-bus/bus-gvariant.c \
3065 src/libsystemd/sd-bus/bus-gvariant.h \
3066 src/libsystemd/sd-bus/bus-convenience.c \
3067 src/libsystemd/sd-bus/bus-track.c \
3068 src/libsystemd/sd-bus/bus-track.h \
3069 src/libsystemd/sd-bus/bus-slot.c \
3070 src/libsystemd/sd-bus/bus-slot.h \
3071 src/libsystemd/sd-bus/bus-protocol.h \
3072 src/libsystemd/sd-bus/kdbus.h \
3073 src/libsystemd/sd-bus/bus-dump.c \
3074 src/libsystemd/sd-bus/bus-dump.h \
3075 src/libsystemd/sd-utf8/sd-utf8.c \
3076 src/libsystemd/sd-event/sd-event.c \
3077 src/libsystemd/sd-netlink/sd-netlink.c \
3078 src/libsystemd/sd-netlink/netlink-internal.h \
3079 src/libsystemd/sd-netlink/netlink-message.c \
3080 src/libsystemd/sd-netlink/netlink-socket.c \
3081 src/libsystemd/sd-netlink/rtnl-message.c \
3082 src/libsystemd/sd-netlink/netlink-types.h \
3083 src/libsystemd/sd-netlink/netlink-types.c \
3084 src/libsystemd/sd-netlink/netlink-util.h \
3085 src/libsystemd/sd-netlink/netlink-util.c \
3086 src/libsystemd/sd-netlink/local-addresses.h \
3087 src/libsystemd/sd-netlink/local-addresses.c \
3088 src/libsystemd/sd-id128/sd-id128.c \
3089 src/libsystemd/sd-daemon/sd-daemon.c \
3090 src/libsystemd/sd-login/sd-login.c \
3091 src/libsystemd/sd-path/sd-path.c \
3092 src/libsystemd/sd-network/sd-network.c \
3093 src/libsystemd/sd-network/network-util.h \
3094 src/libsystemd/sd-network/network-util.c \
3095 src/libsystemd/sd-hwdb/sd-hwdb.c \
3096 src/libsystemd/sd-hwdb/hwdb-util.h \
3097 src/libsystemd/sd-hwdb/hwdb-internal.h \
3098 src/libsystemd/sd-device/device-internal.h \
3099 src/libsystemd/sd-device/device-util.h \
3100 src/libsystemd/sd-device/device-enumerator.c \
3101 src/libsystemd/sd-device/device-enumerator-private.h \
3102 src/libsystemd/sd-device/sd-device.c \
3103 src/libsystemd/sd-device/device-private.c \
3104 src/libsystemd/sd-device/device-private.h \
3105 src/libsystemd/sd-resolve/sd-resolve.c
3107 libsystemd_internal_la_LIBADD = \
3111 noinst_LTLIBRARIES += \
3112 libsystemd-internal.la
3115 src/libsystemd/libsystemd.pc.in \
3116 src/libsystemd/sd-bus/DIFFERENCES \
3117 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3119 libsystemd_la_SOURCES = \
3120 $(libsystemd_internal_la_SOURCES) \
3121 $(libsystemd_journal_internal_la_SOURCES)
3123 nodist_libsystemd_la_SOURCES = \
3124 $(nodist_libsystemd_internal_la_SOURCES)
3126 libsystemd_la_CFLAGS = \
3127 $(libsystemd_internal_la_CFLAGS) \
3128 $(libsystemd_journal_internal_la_CFLAGS)
3130 libsystemd_la_LDFLAGS = \
3132 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3133 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3135 libsystemd_la_LIBADD = \
3136 $(libsystemd_internal_la_LIBADD) \
3137 $(libsystemd_journal_internal_la_LIBADD)
3139 libsystemd-install-hook:
3140 libname=libsystemd.so && $(move-to-rootlibdir)
3142 libsystemd-uninstall-hook:
3143 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3145 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3146 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3148 pkgconfiglib_DATA += \
3149 src/libsystemd/libsystemd.pc
3151 pkginclude_HEADERS += \
3152 src/systemd/sd-bus.h \
3153 src/systemd/sd-bus-protocol.h \
3154 src/systemd/sd-bus-vtable.h \
3155 src/systemd/sd-event.h \
3156 src/systemd/sd-login.h \
3157 src/systemd/sd-id128.h \
3158 src/systemd/sd-daemon.h
3160 lib_LTLIBRARIES += \
3165 test-bus-signature \
3166 test-bus-benchmark \
3173 test-bus-kernel-bloom \
3174 test-bus-zero-copy \
3175 test-bus-introspect \
3182 test-local-addresses \
3188 test_bus_marshal_SOURCES = \
3189 src/libsystemd/sd-bus/test-bus-marshal.c
3191 test_bus_marshal_LDADD = \
3196 test_bus_marshal_CFLAGS = \
3201 test_bus_signature_SOURCES = \
3202 src/libsystemd/sd-bus/test-bus-signature.c
3204 test_bus_signature_LDADD = \
3207 test_bus_chat_SOURCES = \
3208 src/libsystemd/sd-bus/test-bus-chat.c
3210 test_bus_chat_LDADD = \
3213 test_bus_cleanup_SOURCES = \
3214 src/libsystemd/sd-bus/test-bus-cleanup.c
3216 test_bus_cleanup_CFLAGS = \
3220 test_bus_cleanup_LDADD = \
3223 test_bus_server_SOURCES = \
3224 src/libsystemd/sd-bus/test-bus-server.c
3226 test_bus_server_LDADD = \
3229 test_bus_objects_SOURCES = \
3230 src/libsystemd/sd-bus/test-bus-objects.c
3232 test_bus_objects_LDADD = \
3235 test_bus_error_SOURCES = \
3236 src/libsystemd/sd-bus/test-bus-error.c
3238 test_bus_error_LDADD = \
3241 test_bus_gvariant_SOURCES = \
3242 src/libsystemd/sd-bus/test-bus-gvariant.c
3244 test_bus_gvariant_LDADD = \
3248 test_bus_gvariant_CFLAGS = \
3252 test_bus_creds_SOURCES = \
3253 src/libsystemd/sd-bus/test-bus-creds.c
3255 test_bus_creds_LDADD = \
3258 test_bus_match_SOURCES = \
3259 src/libsystemd/sd-bus/test-bus-match.c
3261 test_bus_match_LDADD = \
3264 test_bus_proxy_SOURCES = \
3265 src/libsystemd/sd-bus/test-bus-proxy.c
3267 test_bus_proxy_LDADD = \
3270 test_bus_kernel_SOURCES = \
3271 src/libsystemd/sd-bus/test-bus-kernel.c
3273 test_bus_kernel_LDADD = \
3276 test_bus_kernel_bloom_SOURCES = \
3277 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3279 test_bus_kernel_bloom_LDADD = \
3282 test_bus_benchmark_SOURCES = \
3283 src/libsystemd/sd-bus/test-bus-benchmark.c
3285 test_bus_benchmark_LDADD = \
3288 test_bus_zero_copy_SOURCES = \
3289 src/libsystemd/sd-bus/test-bus-zero-copy.c
3291 test_bus_zero_copy_LDADD = \
3294 test_bus_introspect_SOURCES = \
3295 src/libsystemd/sd-bus/test-bus-introspect.c
3297 test_bus_introspect_LDADD = \
3300 test_event_SOURCES = \
3301 src/libsystemd/sd-event/test-event.c
3303 test_event_LDADD = \
3306 test_netlink_SOURCES = \
3307 src/libsystemd/sd-netlink/test-netlink.c
3309 test_netlink_LDADD = \
3312 test_local_addresses_SOURCES = \
3313 src/libsystemd/sd-netlink/test-local-addresses.c
3315 test_local_addresses_LDADD = \
3318 test_resolve_SOURCES = \
3319 src/libsystemd/sd-resolve/test-resolve.c
3321 test_resolve_LDADD = \
3325 src/libsystemd/sd-bus/busctl.c \
3326 src/libsystemd/sd-bus/busctl-introspect.c \
3327 src/libsystemd/sd-bus/busctl-introspect.h
3332 # ------------------------------------------------------------------------------
3333 noinst_LTLIBRARIES += \
3334 libsystemd-network.la
3336 libsystemd_network_la_CFLAGS = \
3340 libsystemd_network_la_SOURCES = \
3341 src/systemd/sd-dhcp-client.h \
3342 src/systemd/sd-dhcp-server.h \
3343 src/systemd/sd-dhcp-lease.h \
3344 src/systemd/sd-ipv4ll.h \
3345 src/systemd/sd-ipv4acd.h \
3346 src/systemd/sd-ndisc.h \
3347 src/systemd/sd-dhcp6-client.h \
3348 src/systemd/sd-dhcp6-lease.h \
3349 src/systemd/sd-lldp.h \
3350 src/libsystemd-network/sd-dhcp-client.c \
3351 src/libsystemd-network/sd-dhcp-server.c \
3352 src/libsystemd-network/dhcp-network.c \
3353 src/libsystemd-network/dhcp-option.c \
3354 src/libsystemd-network/dhcp-packet.c \
3355 src/libsystemd-network/dhcp-internal.h \
3356 src/libsystemd-network/dhcp-server-internal.h \
3357 src/libsystemd-network/dhcp-protocol.h \
3358 src/libsystemd-network/dhcp-lease-internal.h \
3359 src/libsystemd-network/sd-dhcp-lease.c \
3360 src/libsystemd-network/sd-ipv4ll.c \
3361 src/libsystemd-network/sd-ipv4acd.c \
3362 src/libsystemd-network/arp-util.h \
3363 src/libsystemd-network/arp-util.c \
3364 src/libsystemd-network/network-internal.c \
3365 src/libsystemd-network/network-internal.h \
3366 src/libsystemd-network/sd-ndisc.c \
3367 src/libsystemd-network/icmp6-util.h \
3368 src/libsystemd-network/icmp6-util.c \
3369 src/libsystemd-network/sd-dhcp6-client.c \
3370 src/libsystemd-network/dhcp6-internal.h \
3371 src/libsystemd-network/dhcp6-protocol.h \
3372 src/libsystemd-network/dhcp6-network.c \
3373 src/libsystemd-network/dhcp6-option.c \
3374 src/libsystemd-network/dhcp6-lease-internal.h \
3375 src/libsystemd-network/sd-dhcp6-lease.c \
3376 src/libsystemd-network/dhcp-identifier.h \
3377 src/libsystemd-network/dhcp-identifier.c \
3378 src/libsystemd-network/lldp.h \
3379 src/libsystemd-network/lldp-tlv.h \
3380 src/libsystemd-network/lldp-tlv.c \
3381 src/libsystemd-network/lldp-network.h \
3382 src/libsystemd-network/lldp-network.c \
3383 src/libsystemd-network/lldp-port.h \
3384 src/libsystemd-network/lldp-port.c \
3385 src/libsystemd-network/lldp-internal.h \
3386 src/libsystemd-network/lldp-internal.c \
3387 src/libsystemd-network/sd-lldp.c
3389 libsystemd_network_la_LIBADD = \
3392 test_dhcp_option_SOURCES = \
3393 src/libsystemd-network/dhcp-protocol.h \
3394 src/libsystemd-network/dhcp-internal.h \
3395 src/libsystemd-network/test-dhcp-option.c
3397 test_dhcp_option_LDADD = \
3398 libsystemd-network.la \
3401 test_dhcp_client_SOURCES = \
3402 src/systemd/sd-dhcp-client.h \
3403 src/libsystemd-network/dhcp-protocol.h \
3404 src/libsystemd-network/dhcp-internal.h \
3405 src/libsystemd-network/test-dhcp-client.c
3407 test_dhcp_client_LDADD = \
3408 libsystemd-network.la \
3411 test_dhcp_server_SOURCES = \
3412 src/libsystemd-network/test-dhcp-server.c
3414 test_dhcp_server_LDADD = \
3415 libsystemd-network.la \
3418 test_ipv4ll_SOURCES = \
3419 src/systemd/sd-ipv4ll.h \
3420 src/libsystemd-network/arp-util.h \
3421 src/libsystemd-network/test-ipv4ll.c
3423 test_ipv4ll_LDADD = \
3424 libsystemd-network.la \
3427 test_ipv4ll_manual_SOURCES = \
3428 src/systemd/sd-ipv4ll.h \
3429 src/libsystemd-network/test-ipv4ll-manual.c
3431 test_ipv4ll_manual_LDADD = \
3432 libsystemd-network.la \
3435 test_acd_SOURCES = \
3436 src/systemd/sd-ipv4acd.h \
3437 src/libsystemd-network/test-acd.c
3440 libsystemd-network.la \
3443 test_ndisc_rs_SOURCES = \
3444 src/systemd/sd-dhcp6-client.h \
3445 src/systemd/sd-ndisc.h \
3446 src/libsystemd-network/icmp6-util.h \
3447 src/libsystemd-network/test-ndisc-rs.c \
3448 src/libsystemd-network/dhcp-identifier.h \
3449 src/libsystemd-network/dhcp-identifier.c
3451 test_ndisc_rs_LDADD = \
3452 libsystemd-network.la \
3456 test_dhcp6_client_SOURCES = \
3457 src/systemd/sd-dhcp6-client.h \
3458 src/libsystemd-network/dhcp6-internal.h \
3459 src/libsystemd-network/test-dhcp6-client.c \
3460 src/libsystemd-network/dhcp-identifier.h \
3461 src/libsystemd-network/dhcp-identifier.c
3463 test_dhcp6_client_LDADD = \
3464 libsystemd-network.la \
3468 test_lldp_SOURCES = \
3469 src/libsystemd-network/lldp.h \
3470 src/libsystemd-network/lldp-tlv.h \
3471 src/libsystemd-network/lldp-tlv.c \
3472 src/libsystemd-network/test-lldp.c
3475 libsystemd-network.la \
3487 # ------------------------------------------------------------------------------
3488 include_HEADERS += \
3489 src/libudev/libudev.h
3491 lib_LTLIBRARIES += \
3494 libudev_la_SOURCES =\
3495 src/libudev/libudev.sym \
3496 src/libudev/libudev-private.h \
3497 src/libudev/libudev-device-internal.h \
3498 src/libudev/libudev.c \
3499 src/libudev/libudev-list.c \
3500 src/libudev/libudev-util.c \
3501 src/libudev/libudev-device.c \
3502 src/libudev/libudev-device-private.c \
3503 src/libudev/libudev-enumerate.c \
3504 src/libudev/libudev-monitor.c \
3505 src/libudev/libudev-queue.c \
3506 src/libudev/libudev-hwdb.c
3508 libudev_la_LDFLAGS = \
3510 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3511 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3513 libudev_la_LIBADD = \
3514 libsystemd-internal.la
3516 pkgconfiglib_DATA += \
3517 src/libudev/libudev.pc
3520 src/libudev/libudev.pc.in
3522 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3523 libudev-install-hook:
3524 libname=libudev.so && $(move-to-rootlibdir)
3526 libudev-uninstall-hook:
3527 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3529 INSTALL_EXEC_HOOKS += libudev-install-hook
3530 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3532 # ------------------------------------------------------------------------------
3533 noinst_LTLIBRARIES += \
3536 libudev_internal_la_SOURCES =\
3537 $(libudev_la_SOURCES)
3539 # ------------------------------------------------------------------------------
3541 $(sysconfdir)/udev/rules.d
3543 dist_network_DATA = \
3544 network/99-default.link \
3545 network/80-container-host0.network \
3546 network/80-container-ve.network
3548 dist_udevrules_DATA += \
3549 rules/50-udev-default.rules \
3550 rules/60-block.rules \
3551 rules/60-drm.rules \
3552 rules/60-evdev.rules \
3553 rules/60-persistent-storage-tape.rules \
3554 rules/60-persistent-input.rules \
3555 rules/60-persistent-alsa.rules \
3556 rules/60-persistent-storage.rules \
3557 rules/60-serial.rules \
3558 rules/64-btrfs.rules \
3559 rules/70-mouse.rules \
3560 rules/75-net-description.rules \
3561 rules/78-sound-card.rules \
3562 rules/80-net-setup-link.rules
3564 nodist_udevrules_DATA += \
3565 rules/99-systemd.rules
3567 udevconfdir = $(sysconfdir)/udev
3568 dist_udevconf_DATA = \
3571 pkgconfigdata_DATA += \
3575 rules/99-systemd.rules.in \
3579 units/systemd-udevd.service.in \
3580 units/systemd-udev-trigger.service.in \
3581 units/systemd-udev-settle.service.in
3583 SOCKETS_TARGET_WANTS += \
3584 systemd-udevd-control.socket \
3585 systemd-udevd-kernel.socket
3587 SYSINIT_TARGET_WANTS += \
3588 systemd-udevd.service \
3589 systemd-udev-trigger.service
3591 rootbin_PROGRAMS += \
3594 rootlibexec_PROGRAMS += \
3597 noinst_LTLIBRARIES += \
3600 src/udev/keyboard-keys-list.txt:
3601 $(AM_V_at)$(MKDIR_P) $(dir $@)
3602 $(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 } }' > $@
3604 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3605 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3607 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3608 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3610 gperf_txt_sources += \
3611 src/udev/keyboard-keys-list.txt
3613 libudev_core_la_SOURCES = \
3615 src/udev/udev-event.c \
3616 src/udev/udev-watch.c \
3617 src/udev/udev-node.c \
3618 src/udev/udev-rules.c \
3619 src/udev/udev-ctrl.c \
3620 src/udev/udev-builtin.c \
3621 src/udev/udev-builtin-btrfs.c \
3622 src/udev/udev-builtin-hwdb.c \
3623 src/udev/udev-builtin-input_id.c \
3624 src/udev/udev-builtin-keyboard.c \
3625 src/udev/udev-builtin-net_id.c \
3626 src/udev/udev-builtin-net_setup_link.c \
3627 src/udev/udev-builtin-path_id.c \
3628 src/udev/udev-builtin-usb_id.c \
3629 src/udev/net/link-config.h \
3630 src/udev/net/link-config.c \
3631 src/udev/net/ethtool-util.h \
3632 src/udev/net/ethtool-util.c
3634 nodist_libudev_core_la_SOURCES = \
3635 src/udev/keyboard-keys-from-name.h \
3636 src/udev/net/link-config-gperf.c
3638 gperf_gperf_sources += \
3639 src/udev/net/link-config-gperf.gperf
3641 libudev_core_la_CFLAGS = \
3646 libudev_core_la_LIBADD = \
3647 libsystemd-network.la \
3653 libudev_core_la_SOURCES += \
3654 src/udev/udev-builtin-kmod.c
3656 dist_udevrules_DATA += \
3657 rules/80-drivers.rules
3661 libudev_core_la_SOURCES += \
3662 src/udev/udev-builtin-blkid.c
3666 libudev_core_la_SOURCES += \
3667 src/udev/udev-builtin-uaccess.c \
3668 src/login/logind-acl.c \
3669 src/libsystemd/sd-login/sd-login.c \
3670 src/systemd/sd-login.h
3673 systemd_udevd_SOURCES = \
3676 systemd_udevd_LDADD = \
3680 src/udev/udevadm.c \
3681 src/udev/udevadm-info.c \
3682 src/udev/udevadm-control.c \
3683 src/udev/udevadm-monitor.c \
3684 src/udev/udevadm-hwdb.c \
3685 src/udev/udevadm-settle.c \
3686 src/udev/udevadm-trigger.c \
3687 src/udev/udevadm-test.c \
3688 src/udev/udevadm-test-builtin.c \
3689 src/udev/udevadm-util.c \
3690 src/udev/udevadm-util.h
3695 # ------------------------------------------------------------------------------
3698 $(sysconfdir)/udev/hwdb.d
3700 systemd_hwdb_SOURCES = \
3701 src/libsystemd/sd-hwdb/hwdb-internal.h \
3704 systemd_hwdb_LDADD = \
3707 rootbin_PROGRAMS += \
3710 dist_udevhwdb_DATA = \
3711 hwdb/20-pci-vendor-model.hwdb \
3712 hwdb/20-pci-classes.hwdb \
3713 hwdb/20-usb-vendor-model.hwdb \
3714 hwdb/20-usb-classes.hwdb \
3715 hwdb/20-sdio-vendor-model.hwdb \
3716 hwdb/20-sdio-classes.hwdb \
3717 hwdb/20-bluetooth-vendor-product.hwdb \
3718 hwdb/20-acpi-vendor.hwdb \
3720 hwdb/20-net-ifname.hwdb \
3721 hwdb/60-evdev.hwdb \
3722 hwdb/60-keyboard.hwdb \
3723 hwdb/70-mouse.hwdb \
3724 hwdb/70-pointingstick.hwdb
3726 SYSINIT_TARGET_WANTS += \
3727 systemd-hwdb-update.service
3729 # Update hwdb on installation. Do not bother if installing
3730 # in DESTDIR, since this is likely for packaging purposes.
3732 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3734 INSTALL_DATA_HOOKS += \
3738 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3742 units/systemd-hwdb-update.service.in \
3743 hwdb/ids-update.pl \
3746 # ------------------------------------------------------------------------------
3752 test/rule-syntax-check.py
3756 test/sysv-generator-test.py
3764 test_libudev_SOURCES = \
3765 src/test/test-libudev.c
3767 test_libudev_LDADD = \
3770 test_udev_SOURCES = \
3771 src/test/test-udev.c
3781 # packed sysfs test tree
3783 $(AM_V_at)$(MKDIR_P) $(dir $@)
3784 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3788 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3793 test/rule-syntax-check.py \
3794 test/sysv-generator-test.py \
3797 # ------------------------------------------------------------------------------
3799 src/udev/ata_id/ata_id.c
3804 udevlibexec_PROGRAMS += \
3807 # ------------------------------------------------------------------------------
3808 cdrom_id_SOURCES = \
3809 src/udev/cdrom_id/cdrom_id.c
3814 udevlibexec_PROGRAMS += \
3817 dist_udevrules_DATA += \
3818 rules/60-cdrom_id.rules
3820 # ------------------------------------------------------------------------------
3822 src/udev/collect/collect.c
3827 udevlibexec_PROGRAMS += \
3830 # ------------------------------------------------------------------------------
3832 src/udev/scsi_id/scsi_id.c \
3833 src/udev/scsi_id/scsi_serial.c \
3834 src/udev/scsi_id/scsi.h \
3835 src/udev/scsi_id/scsi_id.h
3840 udevlibexec_PROGRAMS += \
3844 src/udev/scsi_id/README
3846 # ------------------------------------------------------------------------------
3848 src/udev/v4l_id/v4l_id.c
3853 udevlibexec_PROGRAMS += \
3856 dist_udevrules_DATA += \
3857 rules/60-persistent-v4l.rules
3859 # ------------------------------------------------------------------------------
3860 mtd_probe_SOURCES = \
3861 src/udev/mtd_probe/mtd_probe.c \
3862 src/udev/mtd_probe/mtd_probe.h \
3863 src/udev/mtd_probe/probe_smartmedia.c
3865 dist_udevrules_DATA += \
3866 rules/75-probe_mtd.rules
3868 udevlibexec_PROGRAMS += \
3871 # ------------------------------------------------------------------------------
3872 test_id128_SOURCES = \
3873 src/test/test-id128.c
3875 test_id128_LDADD = \
3881 # ------------------------------------------------------------------------------
3883 rootlibexec_PROGRAMS += \
3886 systemd_activate_SOURCES = \
3887 src/activate/activate.c
3889 systemd_activate_LDADD = \
3892 # ------------------------------------------------------------------------------
3893 systemd_journald_SOURCES = \
3894 src/journal/journald.c \
3895 src/journal/journald-server.h
3897 systemd_journald_LDADD = \
3898 libjournal-core.la \
3901 systemd_cat_SOURCES = \
3904 systemd_cat_LDADD = \
3908 rootlibexec_PROGRAMS += \
3909 systemd-journal-remote
3911 systemd_journal_remote_SOURCES = \
3912 src/journal-remote/journal-remote-parse.h \
3913 src/journal-remote/journal-remote-parse.c \
3914 src/journal-remote/journal-remote-write.h \
3915 src/journal-remote/journal-remote-write.c \
3916 src/journal-remote/journal-remote.h \
3917 src/journal-remote/journal-remote.c
3919 systemd_journal_remote_LDADD = \
3922 systemd_journal_remote_SOURCES += \
3923 src/journal-remote/microhttpd-util.h \
3924 src/journal-remote/microhttpd-util.c
3926 systemd_journal_remote_CFLAGS = \
3928 $(MICROHTTPD_CFLAGS)
3930 systemd_journal_remote_LDADD += \
3934 dist_tmpfiles_DATA += \
3935 tmpfiles.d/systemd-remote.conf
3939 systemd_journal_remote_LDADD += \
3943 # systemd-journal-remote make sense mostly with full crypto stack
3944 dist_systemunit_DATA += \
3945 units/systemd-journal-remote.socket
3947 nodist_systemunit_DATA += \
3948 units/systemd-journal-remote.service
3950 journal-remote-install-hook: journal-install-hook
3951 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3952 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3953 -chmod 755 $(DESTDIR)/var/log/journal/remote
3955 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3957 nodist_pkgsysconf_DATA += \
3958 src/journal-remote/journal-remote.conf
3961 units/systemd-journal-remote.service.in \
3962 src/journal-remote/journal-remote.conf.in \
3963 src/journal-remote/log-generator.py
3967 rootlibexec_PROGRAMS += \
3968 systemd-journal-upload
3970 systemd_journal_upload_SOURCES = \
3971 src/journal-remote/journal-upload.h \
3972 src/journal-remote/journal-upload.c \
3973 src/journal-remote/journal-upload-journal.c
3975 systemd_journal_upload_CFLAGS = \
3979 systemd_journal_upload_LDADD = \
3983 nodist_systemunit_DATA += \
3984 units/systemd-journal-upload.service
3986 nodist_pkgsysconf_DATA += \
3987 src/journal-remote/journal-upload.conf
3991 units/systemd-journal-upload.service.in \
3992 src/journal-remote/journal-upload.conf.in
3994 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3995 journalctl_CFLAGS = \
3998 journalctl_SOURCES = \
3999 src/journal/journalctl.c
4001 journalctl_LDADD = \
4005 journalctl_SOURCES += \
4006 src/journal/journal-qrcode.c \
4007 src/journal/journal-qrcode.h
4009 journalctl_CFLAGS += \
4012 journalctl_LDADD += \
4016 test_journal_SOURCES = \
4017 src/journal/test-journal.c
4019 test_journal_LDADD = \
4022 test_journal_send_SOURCES = \
4023 src/journal/test-journal-send.c
4025 test_journal_send_LDADD = \
4028 test_journal_syslog_SOURCES = \
4029 src/journal/test-journal-syslog.c
4031 test_journal_syslog_LDADD = \
4034 test_journal_match_SOURCES = \
4035 src/journal/test-journal-match.c
4037 test_journal_match_LDADD = \
4040 test_journal_enum_SOURCES = \
4041 src/journal/test-journal-enum.c
4043 test_journal_enum_LDADD = \
4046 test_journal_stream_SOURCES = \
4047 src/journal/test-journal-stream.c
4049 test_journal_stream_LDADD = \
4052 test_journal_flush_SOURCES = \
4053 src/journal/test-journal-flush.c
4055 test_journal_flush_LDADD = \
4058 test_journal_init_SOURCES = \
4059 src/journal/test-journal-init.c
4061 test_journal_init_LDADD = \
4064 test_journal_verify_SOURCES = \
4065 src/journal/test-journal-verify.c
4067 test_journal_verify_LDADD = \
4070 test_journal_interleaving_SOURCES = \
4071 src/journal/test-journal-interleaving.c
4073 test_journal_interleaving_LDADD = \
4076 test_mmap_cache_SOURCES = \
4077 src/journal/test-mmap-cache.c
4079 test_mmap_cache_LDADD = \
4082 test_catalog_SOURCES = \
4083 src/journal/test-catalog.c
4085 test_catalog_CPPFLAGS = \
4087 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4089 test_catalog_LDADD = \
4092 test_compress_SOURCES = \
4093 src/journal/test-compress.c
4095 test_compress_LDADD = \
4098 test_compress_benchmark_SOURCES = \
4099 src/journal/test-compress-benchmark.c
4101 test_compress_benchmark_LDADD = \
4104 test_audit_type_SOURCES = \
4105 src/journal/test-audit-type.c
4107 test_audit_type_LDADD = \
4110 libjournal_core_la_SOURCES = \
4111 src/journal/journald-kmsg.c \
4112 src/journal/journald-kmsg.h \
4113 src/journal/journald-syslog.c \
4114 src/journal/journald-syslog.h \
4115 src/journal/journald-stream.c \
4116 src/journal/journald-stream.h \
4117 src/journal/journald-server.c \
4118 src/journal/journald-server.h \
4119 src/journal/journald-console.c \
4120 src/journal/journald-console.h \
4121 src/journal/journald-wall.c \
4122 src/journal/journald-wall.h \
4123 src/journal/journald-native.c \
4124 src/journal/journald-native.h \
4125 src/journal/journald-audit.c \
4126 src/journal/journald-audit.h \
4127 src/journal/journald-rate-limit.c \
4128 src/journal/journald-rate-limit.h \
4129 src/journal/journal-internal.h
4131 nodist_libjournal_core_la_SOURCES = \
4132 src/journal/journald-gperf.c
4134 libjournal_core_la_LIBADD = \
4137 noinst_LTLIBRARIES += \
4140 journal-install-hook:
4141 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4142 -chown 0:0 $(DESTDIR)/var/log/journal
4143 -chmod 755 $(DESTDIR)/var/log/journal
4144 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4145 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4147 journal-uninstall-hook:
4148 -rmdir $(DESTDIR)/var/log/journal/remote
4149 -rmdir $(DESTDIR)/var/log/journal/
4151 INSTALL_EXEC_HOOKS += journal-install-hook
4152 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4154 # ------------------------------------------------------------------------------
4155 # Update catalog on installation. Do not bother if installing
4156 # in DESTDIR, since this is likely for packaging purposes.
4157 catalog-update-hook:
4158 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4160 INSTALL_DATA_HOOKS += \
4163 catalog-remove-hook:
4164 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4166 UNINSTALL_DATA_HOOKS += \
4175 test-journal-syslog \
4176 test-journal-match \
4177 test-journal-stream \
4179 test-journal-verify \
4180 test-journal-interleaving \
4181 test-journal-flush \
4189 test-compress-benchmark
4192 pkginclude_HEADERS += \
4193 src/systemd/sd-journal.h \
4194 src/systemd/sd-messages.h \
4195 src/systemd/_sd-common.h
4197 libsystemd_journal_internal_la_SOURCES = \
4198 src/journal/sd-journal.c \
4199 src/systemd/sd-journal.h \
4200 src/systemd/_sd-common.h \
4201 src/journal/journal-file.c \
4202 src/journal/journal-file.h \
4203 src/journal/journal-vacuum.c \
4204 src/journal/journal-vacuum.h \
4205 src/journal/journal-verify.c \
4206 src/journal/journal-verify.h \
4207 src/journal/lookup3.c \
4208 src/journal/lookup3.h \
4209 src/journal/journal-send.c \
4210 src/journal/journal-def.h \
4211 src/journal/compress.h \
4212 src/journal/catalog.c \
4213 src/journal/catalog.h \
4214 src/journal/mmap-cache.c \
4215 src/journal/mmap-cache.h \
4216 src/journal/compress.c \
4217 src/journal/audit-type.h \
4218 src/journal/audit-type.c
4220 nodist_libsystemd_journal_internal_la_SOURCES = \
4221 src/journal/audit_type-to-name.h
4223 gperf_txt_sources += \
4224 src/journal/audit_type-list.txt
4226 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4227 libsystemd_journal_internal_la_CFLAGS = \
4230 libsystemd_journal_internal_la_LIBADD =
4233 libsystemd_journal_internal_la_CFLAGS += \
4236 libsystemd_journal_internal_la_LIBADD += \
4241 libsystemd_journal_internal_la_LIBADD += \
4246 libsystemd_journal_internal_la_SOURCES += \
4247 src/journal/journal-authenticate.c \
4248 src/journal/journal-authenticate.h \
4249 src/journal/fsprg.c \
4252 libsystemd_journal_internal_la_LIBADD += \
4255 # fsprg.c is a drop-in file using void pointer arithmetic
4256 libsystemd_journal_internal_la_CFLAGS += \
4261 noinst_LTLIBRARIES += \
4262 libsystemd-journal-internal.la
4264 rootlibexec_PROGRAMS += \
4267 rootbin_PROGRAMS += \
4273 dist_systemunit_DATA += \
4274 units/systemd-journald.socket \
4275 units/systemd-journald-dev-log.socket \
4276 units/systemd-journald-audit.socket
4278 nodist_systemunit_DATA += \
4279 units/systemd-journald.service \
4280 units/systemd-journal-flush.service \
4281 units/systemd-journal-catalog-update.service
4283 dist_pkgsysconf_DATA += \
4284 src/journal/journald.conf
4286 dist_catalog_DATA = \
4287 catalog/systemd.be.catalog \
4288 catalog/systemd.be@latin.catalog \
4289 catalog/systemd.fr.catalog \
4290 catalog/systemd.it.catalog \
4291 catalog/systemd.pl.catalog \
4292 catalog/systemd.pt_BR.catalog \
4293 catalog/systemd.ru.catalog \
4294 catalog/systemd.zh_CN.catalog \
4295 catalog/systemd.zh_TW.catalog \
4296 catalog/systemd.catalog
4298 SOCKETS_TARGET_WANTS += \
4299 systemd-journald.socket \
4300 systemd-journald-dev-log.socket \
4301 systemd-journald-audit.socket
4303 SYSINIT_TARGET_WANTS += \
4304 systemd-journald.service \
4305 systemd-journal-flush.service \
4306 systemd-journal-catalog-update.service
4309 units/systemd-journald.service.in \
4310 units/systemd-journal-flush.service.in \
4311 units/systemd-journal-catalog-update.service.in
4313 gperf_gperf_sources += \
4314 src/journal/journald-gperf.gperf
4316 # ------------------------------------------------------------------------------
4318 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4320 rootlibexec_PROGRAMS += \
4321 systemd-journal-gatewayd
4323 systemd_journal_gatewayd_SOURCES = \
4324 src/journal-remote/journal-gatewayd.c \
4325 src/journal-remote/microhttpd-util.h \
4326 src/journal-remote/microhttpd-util.c
4328 systemd_journal_gatewayd_LDADD = \
4333 systemd_journal_gatewayd_LDADD += \
4337 systemd_journal_gatewayd_CFLAGS = \
4339 $(MICROHTTPD_CFLAGS)
4341 systemd_journal_gatewayd_CPPFLAGS = \
4343 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4345 dist_systemunit_DATA += \
4346 units/systemd-journal-gatewayd.socket
4348 nodist_systemunit_DATA += \
4349 units/systemd-journal-gatewayd.service
4351 dist_gatewayddocumentroot_DATA = \
4352 src/journal-remote/browse.html
4357 units/systemd-journal-gatewayd.service.in
4359 # ------------------------------------------------------------------------------
4361 systemd_socket_proxyd_SOURCES = \
4362 src/socket-proxy/socket-proxyd.c
4364 systemd_socket_proxyd_LDADD = \
4367 # ------------------------------------------------------------------------------
4369 systemd_coredump_SOURCES = \
4370 src/journal/coredump.c \
4371 src/journal/coredump-vacuum.c \
4372 src/journal/coredump-vacuum.h
4374 systemd_coredump_LDADD = \
4378 systemd_coredump_SOURCES += \
4379 src/journal/stacktrace.c \
4380 src/journal/stacktrace.h
4382 systemd_coredump_LDADD += \
4386 rootlibexec_PROGRAMS += \
4389 dist_pkgsysconf_DATA += \
4390 src/journal/coredump.conf
4392 coredumpctl_SOURCES = \
4393 src/journal/coredumpctl.c
4395 coredumpctl_LDADD = \
4402 test-coredump-vacuum
4404 test_coredump_vacuum_SOURCES = \
4405 src/journal/test-coredump-vacuum.c \
4406 src/journal/coredump-vacuum.c \
4407 src/journal/coredump-vacuum.h
4409 test_coredump_vacuum_LDADD = \
4412 if ENABLE_BASH_COMPLETION
4413 dist_bashcompletion_DATA += \
4414 shell-completion/bash/coredumpctl
4417 if ENABLE_ZSH_COMPLETION
4418 dist_zshcompletion_DATA += \
4419 shell-completion/zsh/_coredumpctl
4422 nodist_sysctl_DATA = \
4423 sysctl.d/50-coredump.conf
4426 sysctl.d/50-coredump.conf
4430 sysctl.d/50-coredump.conf.in
4432 # ------------------------------------------------------------------------------
4434 systemd_binfmt_SOURCES = \
4437 systemd_binfmt_LDADD = \
4440 rootlibexec_PROGRAMS += \
4443 dist_systemunit_DATA += \
4444 units/proc-sys-fs-binfmt_misc.automount \
4445 units/proc-sys-fs-binfmt_misc.mount
4447 nodist_systemunit_DATA += \
4448 units/systemd-binfmt.service
4451 $(prefix)/lib/binfmt.d \
4452 $(sysconfdir)/binfmt.d
4454 SYSINIT_TARGET_WANTS += \
4455 systemd-binfmt.service \
4456 proc-sys-fs-binfmt_misc.automount
4461 units/systemd-binfmt.service.in
4463 # ------------------------------------------------------------------------------
4465 systemd_vconsole_setup_SOURCES = \
4466 src/vconsole/vconsole-setup.c
4468 systemd_vconsole_setup_LDADD = \
4471 rootlibexec_PROGRAMS += \
4472 systemd-vconsole-setup
4474 nodist_udevrules_DATA += \
4475 src/vconsole/90-vconsole.rules
4477 nodist_systemunit_DATA += \
4478 units/systemd-vconsole-setup.service
4480 SYSINIT_TARGET_WANTS += \
4481 systemd-vconsole-setup.service
4485 src/vconsole/90-vconsole.rules.in \
4486 units/systemd-vconsole-setup.service.in
4488 # ------------------------------------------------------------------------------
4490 systemd_bootchart_SOURCES = \
4491 src/bootchart/bootchart.c \
4492 src/bootchart/bootchart.h \
4493 src/bootchart/store.c \
4494 src/bootchart/store.h \
4495 src/bootchart/svg.c \
4498 systemd_bootchart_LDADD = \
4501 rootlibexec_PROGRAMS += \
4504 dist_pkgsysconf_DATA += \
4505 src/bootchart/bootchart.conf
4507 nodist_systemunit_DATA += \
4508 units/systemd-bootchart.service
4512 units/systemd-bootchart.service.in
4514 # ------------------------------------------------------------------------------
4515 if ENABLE_QUOTACHECK
4516 rootlibexec_PROGRAMS += \
4519 nodist_systemunit_DATA += \
4520 units/systemd-quotacheck.service
4522 systemd_quotacheck_SOURCES = \
4523 src/quotacheck/quotacheck.c
4525 systemd_quotacheck_LDADD = \
4530 units/systemd-quotacheck.service.in
4532 nodist_systemunit_DATA += \
4533 units/quotaon.service
4535 # ------------------------------------------------------------------------------
4536 if ENABLE_RANDOMSEED
4537 rootlibexec_PROGRAMS += \
4540 nodist_systemunit_DATA += \
4541 units/systemd-random-seed.service
4543 systemd_random_seed_SOURCES = \
4544 src/random-seed/random-seed.c
4546 systemd_random_seed_LDADD = \
4549 SYSINIT_TARGET_WANTS += \
4550 systemd-random-seed.service
4555 units/systemd-random-seed.service.in
4557 # ------------------------------------------------------------------------------
4559 rootlibexec_PROGRAMS += \
4562 nodist_systemunit_DATA += \
4563 units/systemd-backlight@.service
4565 systemd_backlight_SOURCES = \
4566 src/backlight/backlight.c
4568 systemd_backlight_LDADD = \
4573 units/systemd-backlight@.service.in
4575 # ------------------------------------------------------------------------------
4577 rootlibexec_PROGRAMS += \
4580 nodist_systemunit_DATA += \
4581 units/systemd-rfkill.service
4583 dist_systemunit_DATA += \
4584 units/systemd-rfkill.socket
4586 systemd_rfkill_SOURCES = \
4589 systemd_rfkill_LDADD = \
4594 units/systemd-rfkill.service.in
4596 # ------------------------------------------------------------------------------
4597 if HAVE_LIBCRYPTSETUP
4598 rootlibexec_PROGRAMS += \
4601 systemgenerator_PROGRAMS += \
4602 systemd-cryptsetup-generator
4604 dist_systemunit_DATA += \
4605 units/cryptsetup.target \
4606 units/cryptsetup-pre.target
4608 systemd_cryptsetup_SOURCES = \
4609 src/cryptsetup/cryptsetup.c
4611 systemd_cryptsetup_CFLAGS = \
4613 $(LIBCRYPTSETUP_CFLAGS)
4615 systemd_cryptsetup_LDADD = \
4617 $(LIBCRYPTSETUP_LIBS)
4619 systemd_cryptsetup_generator_SOURCES = \
4620 src/cryptsetup/cryptsetup-generator.c
4622 systemd_cryptsetup_generator_LDADD = \
4625 SYSINIT_TARGET_WANTS += \
4630 # ------------------------------------------------------------------------------
4632 systemd_hostnamed_SOURCES = \
4633 src/hostname/hostnamed.c
4635 systemd_hostnamed_LDADD = \
4638 rootlibexec_PROGRAMS += \
4641 nodist_systemunit_DATA += \
4642 units/systemd-hostnamed.service
4644 dist_systemunit_DATA_busnames += \
4645 units/org.freedesktop.hostname1.busname
4647 dist_dbuspolicy_DATA += \
4648 src/hostname/org.freedesktop.hostname1.conf
4650 dist_dbussystemservice_DATA += \
4651 src/hostname/org.freedesktop.hostname1.service
4653 polkitpolicy_files += \
4654 src/hostname/org.freedesktop.hostname1.policy
4656 SYSTEM_UNIT_ALIASES += \
4657 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4659 BUSNAMES_TARGET_WANTS += \
4660 org.freedesktop.hostname1.busname
4662 hostnamectl_SOURCES = \
4663 src/hostname/hostnamectl.c
4665 hostnamectl_LDADD = \
4671 if ENABLE_BASH_COMPLETION
4672 dist_bashcompletion_DATA += \
4673 shell-completion/bash/hostnamectl
4676 if ENABLE_ZSH_COMPLETION
4677 dist_zshcompletion_DATA += \
4678 shell-completion/zsh/_hostnamectl
4682 polkitpolicy_in_files += \
4683 src/hostname/org.freedesktop.hostname1.policy.in
4686 units/systemd-hostnamed.service.in
4688 # ------------------------------------------------------------------------------
4689 dist_systemunit_DATA_busnames += \
4690 units/org.freedesktop.systemd1.busname
4692 BUSNAMES_TARGET_WANTS += \
4693 org.freedesktop.systemd1.busname
4695 # ------------------------------------------------------------------------------
4697 systemd_localed_SOURCES = \
4698 src/locale/localed.c
4700 systemd_localed_LDADD = \
4704 systemd_localed_CFLAGS = \
4708 nodist_systemunit_DATA += \
4709 units/systemd-localed.service
4711 dist_systemunit_DATA_busnames += \
4712 units/org.freedesktop.locale1.busname
4714 rootlibexec_PROGRAMS += \
4717 dist_dbuspolicy_DATA += \
4718 src/locale/org.freedesktop.locale1.conf
4720 dist_dbussystemservice_DATA += \
4721 src/locale/org.freedesktop.locale1.service
4723 polkitpolicy_files += \
4724 src/locale/org.freedesktop.locale1.policy
4726 SYSTEM_UNIT_ALIASES += \
4727 systemd-localed.service dbus-org.freedesktop.locale1.service
4729 BUSNAMES_TARGET_WANTS += \
4730 org.freedesktop.locale1.busname
4732 dist_pkgdata_DATA = \
4733 src/locale/kbd-model-map \
4734 src/locale/language-fallback-map
4736 localectl_SOURCES = \
4737 src/locale/localectl.c
4745 if ENABLE_BASH_COMPLETION
4746 dist_bashcompletion_DATA += \
4747 shell-completion/bash/localectl
4750 if ENABLE_ZSH_COMPLETION
4751 dist_zshcompletion_DATA += \
4752 shell-completion/zsh/_localectl
4756 .PHONY: update-kbd-model-map
4758 polkitpolicy_in_files += \
4759 src/locale/org.freedesktop.locale1.policy.in
4762 units/systemd-localed.service.in
4764 # ------------------------------------------------------------------------------
4766 systemd_timedated_SOURCES = \
4767 src/timedate/timedated.c
4769 systemd_timedated_LDADD = \
4772 rootlibexec_PROGRAMS += \
4775 dist_dbussystemservice_DATA += \
4776 src/timedate/org.freedesktop.timedate1.service
4778 dist_dbuspolicy_DATA += \
4779 src/timedate/org.freedesktop.timedate1.conf
4781 nodist_systemunit_DATA += \
4782 units/systemd-timedated.service
4784 dist_systemunit_DATA_busnames += \
4785 units/org.freedesktop.timedate1.busname
4787 polkitpolicy_files += \
4788 src/timedate/org.freedesktop.timedate1.policy
4790 SYSTEM_UNIT_ALIASES += \
4791 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4793 BUSNAMES_TARGET_WANTS += \
4794 org.freedesktop.timedate1.busname
4796 timedatectl_SOURCES = \
4797 src/timedate/timedatectl.c
4799 timedatectl_LDADD = \
4805 if ENABLE_BASH_COMPLETION
4806 dist_bashcompletion_DATA += \
4807 shell-completion/bash/timedatectl
4810 if ENABLE_ZSH_COMPLETION
4811 dist_zshcompletion_DATA += \
4812 shell-completion/zsh/_timedatectl
4816 polkitpolicy_in_files += \
4817 src/timedate/org.freedesktop.timedate1.policy.in
4820 units/systemd-timedated.service.in
4822 # ------------------------------------------------------------------------------
4824 systemd_timesyncd_SOURCES = \
4825 src/timesync/timesyncd.c \
4826 src/timesync/timesyncd-manager.c \
4827 src/timesync/timesyncd-manager.h \
4828 src/timesync/timesyncd-conf.c \
4829 src/timesync/timesyncd-conf.h \
4830 src/timesync/timesyncd-server.c \
4831 src/timesync/timesyncd-server.h
4833 nodist_systemd_timesyncd_SOURCES = \
4834 src/timesync/timesyncd-gperf.c
4836 systemd_timesyncd_LDADD = \
4837 libsystemd-network.la \
4840 rootlibexec_PROGRAMS += \
4843 nodist_systemunit_DATA += \
4844 units/systemd-timesyncd.service
4846 GENERAL_ALIASES += \
4847 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4850 nodist_pkgsysconf_DATA += \
4851 src/timesync/timesyncd.conf
4855 gperf_gperf_sources += \
4856 src/timesync/timesyncd-gperf.gperf
4859 units/systemd-timesyncd.service.in \
4860 src/timesync/timesyncd.conf.in
4862 # ------------------------------------------------------------------------------
4864 libnss_myhostname_la_SOURCES = \
4865 src/nss-myhostname/nss-myhostname.sym \
4866 src/nss-myhostname/nss-myhostname.c
4868 libnss_myhostname_la_LDFLAGS = \
4875 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4877 libnss_myhostname_la_LIBADD = \
4880 lib_LTLIBRARIES += \
4881 libnss_myhostname.la
4884 # ------------------------------------------------------------------------------
4886 systemd_machined_SOURCES = \
4887 src/machine/machined.c \
4888 src/machine/machined.h
4890 systemd_machined_LDADD = \
4893 rootlibexec_PROGRAMS += \
4896 libmachine_core_la_SOURCES = \
4897 src/machine/machine.c \
4898 src/machine/machine.h \
4899 src/machine/machined-dbus.c \
4900 src/machine/machine-dbus.c \
4901 src/machine/machine-dbus.h \
4902 src/machine/image-dbus.c \
4903 src/machine/image-dbus.h
4905 libmachine_core_la_LIBADD = \
4908 noinst_LTLIBRARIES += \
4911 machinectl_SOURCES = \
4912 src/machine/machinectl.c
4914 machinectl_LDADD = \
4917 rootbin_PROGRAMS += \
4920 if ENABLE_BASH_COMPLETION
4921 dist_bashcompletion_DATA += \
4922 shell-completion/bash/machinectl
4925 test_machine_tables_SOURCES = \
4926 src/machine/test-machine-tables.c
4928 test_machine_tables_LDADD = \
4934 nodist_systemunit_DATA += \
4935 units/systemd-machined.service
4937 dist_systemunit_DATA += \
4940 dist_systemunit_DATA_busnames += \
4941 units/org.freedesktop.machine1.busname
4943 dist_dbussystemservice_DATA += \
4944 src/machine/org.freedesktop.machine1.service
4946 dist_dbuspolicy_DATA += \
4947 src/machine/org.freedesktop.machine1.conf
4949 polkitpolicy_files += \
4950 src/machine/org.freedesktop.machine1.policy
4952 if ENABLE_ZSH_COMPLETION
4953 dist_zshcompletion_DATA += \
4954 shell-completion/zsh/_machinectl \
4955 shell-completion/zsh/_sd_machines
4958 SYSTEM_UNIT_ALIASES += \
4959 systemd-machined.service dbus-org.freedesktop.machine1.service
4961 BUSNAMES_TARGET_WANTS += \
4962 org.freedesktop.machine1.busname
4964 libnss_mymachines_la_SOURCES = \
4965 src/nss-mymachines/nss-mymachines.sym \
4966 src/nss-mymachines/nss-mymachines.c
4968 libnss_mymachines_la_LDFLAGS = \
4975 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4977 libnss_mymachines_la_LIBADD = \
4980 lib_LTLIBRARIES += \
4981 libnss_mymachines.la
4985 polkitpolicy_in_files += \
4986 src/machine/org.freedesktop.machine1.policy.in
4989 units/systemd-machined.service.in
4991 # ------------------------------------------------------------------------------
5000 rootlibexec_PROGRAMS += \
5006 systemd_importd_SOURCES = \
5007 src/import/importd.c
5009 systemd_importd_CFLAGS = \
5011 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5012 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5013 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5015 systemd_importd_LDADD = \
5018 systemd_pull_SOURCES = \
5020 src/import/pull-raw.c \
5021 src/import/pull-raw.h \
5022 src/import/pull-tar.c \
5023 src/import/pull-tar.h \
5024 src/import/pull-dkr.c \
5025 src/import/pull-dkr.h \
5026 src/import/pull-job.c \
5027 src/import/pull-job.h \
5028 src/import/pull-common.c \
5029 src/import/pull-common.h \
5030 src/import/import-common.c \
5031 src/import/import-common.h \
5032 src/import/import-compress.c \
5033 src/import/import-compress.h \
5034 src/import/curl-util.c \
5035 src/import/curl-util.h \
5036 src/import/aufs-util.c \
5037 src/import/aufs-util.h \
5038 src/import/qcow2-util.c \
5039 src/import/qcow2-util.h
5041 systemd_pull_CFLAGS = \
5047 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5048 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5050 systemd_pull_LDADD = \
5058 systemd_import_SOURCES = \
5059 src/import/import.c \
5060 src/import/import-raw.c \
5061 src/import/import-raw.h \
5062 src/import/import-tar.c \
5063 src/import/import-tar.h \
5064 src/import/import-common.c \
5065 src/import/import-common.h \
5066 src/import/import-compress.c \
5067 src/import/import-compress.h \
5068 src/import/qcow2-util.c \
5069 src/import/qcow2-util.h
5071 systemd_import_CFLAGS = \
5076 systemd_import_LDADD = \
5082 systemd_export_SOURCES = \
5083 src/import/export.c \
5084 src/import/export-tar.c \
5085 src/import/export-tar.h \
5086 src/import/export-raw.c \
5087 src/import/export-raw.h \
5088 src/import/import-common.c \
5089 src/import/import-common.h \
5090 src/import/import-compress.c \
5091 src/import/import-compress.h
5093 systemd_export_CFLAGS = \
5098 systemd_export_LDADD = \
5104 dist_rootlibexec_DATA = \
5105 src/import/import-pubring.gpg
5107 nodist_systemunit_DATA += \
5108 units/systemd-importd.service
5110 dist_systemunit_DATA_busnames += \
5111 units/org.freedesktop.import1.busname
5113 BUSNAMES_TARGET_WANTS += \
5114 org.freedesktop.import1.busname
5116 SYSTEM_UNIT_ALIASES += \
5117 systemd-importd.service dbus-org.freedesktop.import1.service
5119 dist_dbussystemservice_DATA += \
5120 src/import/org.freedesktop.import1.service
5122 dist_dbuspolicy_DATA += \
5123 src/import/org.freedesktop.import1.conf
5125 polkitpolicy_files += \
5126 src/import/org.freedesktop.import1.policy
5131 test_qcow2_SOURCES = \
5132 src/import/test-qcow2.c \
5133 src/import/qcow2-util.c \
5134 src/import/qcow2-util.h
5136 test_qcow2_CFLAGS = \
5140 test_qcow2_LDADD = \
5152 polkitpolicy_in_files += \
5153 src/import/org.freedesktop.import1.policy.in
5156 units/systemd-importd.service.in
5159 # ------------------------------------------------------------------------------
5163 systemd_resolved_SOURCES = \
5164 src/resolve/resolved.c \
5165 src/resolve/resolved-manager.c \
5166 src/resolve/resolved-manager.h \
5167 src/resolve/resolved-conf.c \
5168 src/resolve/resolved-conf.h \
5169 src/resolve/resolved-resolv-conf.c \
5170 src/resolve/resolved-resolv-conf.h \
5171 src/resolve/resolved-bus.c \
5172 src/resolve/resolved-bus.h \
5173 src/resolve/resolved-link.h \
5174 src/resolve/resolved-link.c \
5175 src/resolve/resolved-llmnr.h \
5176 src/resolve/resolved-llmnr.c \
5177 src/resolve/resolved-mdns.h \
5178 src/resolve/resolved-mdns.c \
5179 src/resolve/resolved-def.h \
5180 src/resolve/resolved-dns-rr.h \
5181 src/resolve/resolved-dns-rr.c \
5182 src/resolve/resolved-dns-question.h \
5183 src/resolve/resolved-dns-question.c \
5184 src/resolve/resolved-dns-answer.h \
5185 src/resolve/resolved-dns-answer.c \
5186 src/resolve/resolved-dns-packet.h \
5187 src/resolve/resolved-dns-packet.c \
5188 src/resolve/resolved-dns-query.h \
5189 src/resolve/resolved-dns-query.c \
5190 src/resolve/resolved-dns-transaction.h \
5191 src/resolve/resolved-dns-transaction.c \
5192 src/resolve/resolved-dns-scope.h \
5193 src/resolve/resolved-dns-scope.c \
5194 src/resolve/resolved-dns-server.h \
5195 src/resolve/resolved-dns-server.c \
5196 src/resolve/resolved-dns-search-domain.h \
5197 src/resolve/resolved-dns-search-domain.c \
5198 src/resolve/resolved-dns-cache.h \
5199 src/resolve/resolved-dns-cache.c \
5200 src/resolve/resolved-dns-zone.h \
5201 src/resolve/resolved-dns-zone.c \
5202 src/resolve/resolved-dns-stream.h \
5203 src/resolve/resolved-dns-stream.c \
5204 src/resolve/resolved-dns-dnssec.h \
5205 src/resolve/resolved-dns-dnssec.c \
5206 src/resolve/resolved-dns-trust-anchor.h \
5207 src/resolve/resolved-dns-trust-anchor.c \
5208 src/resolve/dns-type.c \
5209 src/resolve/dns-type.h
5211 nodist_systemd_resolved_SOURCES = \
5212 src/resolve/dns_type-from-name.h \
5213 src/resolve/dns_type-to-name.h \
5214 src/resolve/resolved-gperf.c
5216 systemd_resolved_LDADD = \
5217 libsystemd-network.la \
5220 rootlibexec_PROGRAMS += \
5223 nodist_systemunit_DATA += \
5224 units/systemd-resolved.service
5226 dist_systemunit_DATA_busnames += \
5227 units/org.freedesktop.resolve1.busname
5229 dist_dbuspolicy_DATA += \
5230 src/resolve/org.freedesktop.resolve1.conf
5232 dist_dbussystemservice_DATA += \
5233 src/resolve/org.freedesktop.resolve1.service
5235 SYSTEM_UNIT_ALIASES += \
5236 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5238 BUSNAMES_TARGET_WANTS += \
5239 org.freedesktop.resolve1.busname
5241 GENERAL_ALIASES += \
5242 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5244 nodist_pkgsysconf_DATA += \
5245 src/resolve/resolved.conf
5247 libnss_resolve_la_SOURCES = \
5248 src/nss-resolve/nss-resolve.sym \
5249 src/nss-resolve/nss-resolve.c
5251 libnss_resolve_la_LDFLAGS = \
5258 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5260 libnss_resolve_la_LIBADD = \
5264 lib_LTLIBRARIES += \
5267 systemd_resolve_host_SOURCES = \
5268 src/resolve-host/resolve-host.c \
5269 src/resolve/resolved-dns-packet.c \
5270 src/resolve/resolved-dns-packet.h \
5271 src/resolve/resolved-dns-rr.c \
5272 src/resolve/resolved-dns-rr.h \
5273 src/resolve/resolved-dns-answer.c \
5274 src/resolve/resolved-dns-answer.h \
5275 src/resolve/resolved-dns-question.c \
5276 src/resolve/resolved-dns-question.h \
5277 src/resolve/dns-type.c \
5278 src/resolve/dns-type.h
5280 nodist_systemd_resolve_host_SOURCES = \
5281 src/resolve/dns_type-from-name.h \
5282 src/resolve/dns_type-to-name.h
5284 systemd_resolve_host_LDADD = \
5287 rootlibexec_PROGRAMS += \
5288 systemd-resolve-host
5294 test_dnssec_SOURCES = \
5295 src/resolve/test-dnssec.c \
5296 src/resolve/resolved-dns-packet.c \
5297 src/resolve/resolved-dns-packet.h \
5298 src/resolve/resolved-dns-rr.c \
5299 src/resolve/resolved-dns-rr.h \
5300 src/resolve/resolved-dns-answer.c \
5301 src/resolve/resolved-dns-answer.h \
5302 src/resolve/resolved-dns-question.c \
5303 src/resolve/resolved-dns-question.h \
5304 src/resolve/resolved-dns-dnssec.c \
5305 src/resolve/resolved-dns-dnssec.h \
5306 src/resolve/dns-type.c \
5307 src/resolve/dns-type.h
5309 test_dnssec_LDADD = \
5315 gperf_txt_sources += \
5316 src/resolve/dns_type-list.txt
5318 gperf_gperf_sources += \
5319 src/resolve/resolved-gperf.gperf
5322 units/systemd-resolved.service.m4.in \
5323 src/resolve/resolved.conf.in
5325 # ------------------------------------------------------------------------------
5327 rootlibexec_PROGRAMS += \
5330 systemd_networkd_SOURCES = \
5331 src/network/networkd.c
5333 systemd_networkd_LDADD = \
5337 systemd_networkd_LDADD += \
5341 noinst_LTLIBRARIES += \
5344 libnetworkd_core_la_CFLAGS = \
5347 libnetworkd_core_la_SOURCES = \
5348 src/libsystemd-network/network-internal.h \
5349 src/network/networkd.h \
5350 src/network/networkd-link.h \
5351 src/network/networkd-link.c \
5352 src/network/networkd-netdev.h \
5353 src/network/networkd-netdev.c \
5354 src/network/networkd-netdev-tunnel.h \
5355 src/network/networkd-netdev-tunnel.c \
5356 src/network/networkd-netdev-veth.h \
5357 src/network/networkd-netdev-veth.c \
5358 src/network/networkd-netdev-vxlan.h \
5359 src/network/networkd-netdev-vxlan.c \
5360 src/network/networkd-netdev-vlan.h \
5361 src/network/networkd-netdev-vlan.c \
5362 src/network/networkd-netdev-macvlan.h \
5363 src/network/networkd-netdev-macvlan.c \
5364 src/network/networkd-netdev-ipvlan.h \
5365 src/network/networkd-netdev-ipvlan.c \
5366 src/network/networkd-netdev-dummy.h \
5367 src/network/networkd-netdev-dummy.c \
5368 src/network/networkd-netdev-tuntap.h \
5369 src/network/networkd-netdev-tuntap.c \
5370 src/network/networkd-netdev-bond.h \
5371 src/network/networkd-netdev-bond.c \
5372 src/network/networkd-netdev-bridge.h \
5373 src/network/networkd-netdev-bridge.c \
5374 src/network/networkd-link-bus.c \
5375 src/network/networkd-ipv4ll.c \
5376 src/network/networkd-dhcp4.c \
5377 src/network/networkd-dhcp6.c \
5378 src/network/networkd-ndisc.c \
5379 src/network/networkd-network.h \
5380 src/network/networkd-network.c \
5381 src/network/networkd-network-bus.c \
5382 src/network/networkd-address.h \
5383 src/network/networkd-address.c \
5384 src/network/networkd-route.h \
5385 src/network/networkd-route.c \
5386 src/network/networkd-manager.c \
5387 src/network/networkd-manager-bus.c \
5388 src/network/networkd-fdb.h \
5389 src/network/networkd-fdb.c \
5390 src/network/networkd-address-pool.h \
5391 src/network/networkd-address-pool.c \
5392 src/network/networkd-util.h \
5393 src/network/networkd-util.c
5395 nodist_libnetworkd_core_la_SOURCES = \
5396 src/network/networkd-network-gperf.c \
5397 src/network/networkd-netdev-gperf.c
5399 libnetworkd_core_la_LIBADD = \
5400 libsystemd-network.la \
5403 rootlibexec_PROGRAMS += \
5404 systemd-networkd-wait-online
5406 systemd_networkd_wait_online_CFLAGS = \
5409 systemd_networkd_wait_online_SOURCES = \
5410 src/libsystemd-network/network-internal.h \
5411 src/network/networkd-wait-online.h \
5412 src/network/networkd-wait-online-link.h \
5413 src/network/networkd-wait-online.c \
5414 src/network/networkd-wait-online-manager.c \
5415 src/network/networkd-wait-online-link.c
5417 systemd_networkd_wait_online_LDADD = \
5418 libsystemd-network.la \
5421 rootbin_PROGRAMS += \
5424 networkctl_SOURCES = \
5425 src/network/networkctl.c
5427 networkctl_LDADD = \
5429 libsystemd-network.la
5431 if ENABLE_BASH_COMPLETION
5432 dist_bashcompletion_DATA += \
5433 shell-completion/bash/networkctl
5436 test_network_SOURCES = \
5437 src/network/test-network.c
5439 test_network_LDADD = \
5443 test_network_LDADD += \
5447 test_network_tables_SOURCES = \
5448 src/network/test-network-tables.c \
5449 src/shared/test-tables.h
5451 test_network_tables_LDADD = \
5452 libnetworkd-core.la \
5456 test_network_tables_LDADD += \
5464 dist_systemunit_DATA += \
5465 units/systemd-networkd.socket
5467 nodist_systemunit_DATA += \
5468 units/systemd-networkd.service \
5469 units/systemd-networkd-wait-online.service
5471 dist_systemunit_DATA_busnames += \
5472 units/org.freedesktop.network1.busname
5474 dist_dbussystemservice_DATA += \
5475 src/network/org.freedesktop.network1.service
5477 dist_dbuspolicy_DATA += \
5478 src/network/org.freedesktop.network1.conf
5480 GENERAL_ALIASES += \
5481 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5482 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5483 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5485 SYSTEM_UNIT_ALIASES += \
5486 systemd-networkd.service dbus-org.freedesktop.network1.service
5488 BUSNAMES_TARGET_WANTS += \
5489 org.freedesktop.network1.busname
5493 gperf_gperf_sources += \
5494 src/network/networkd-network-gperf.gperf \
5495 src/network/networkd-netdev-gperf.gperf
5498 units/systemd-networkd.service.m4.in \
5499 units/systemd-networkd-wait-online.service.in \
5500 test/networkd-test.py
5502 # ------------------------------------------------------------------------------
5504 systemd_logind_SOURCES = \
5505 src/login/logind.c \
5508 nodist_systemd_logind_SOURCES = \
5509 src/login/logind-gperf.c
5511 systemd_logind_LDADD = \
5514 liblogind_core_la_SOURCES = \
5515 src/login/logind-core.c \
5516 src/login/logind-device.c \
5517 src/login/logind-device.h \
5518 src/login/logind-button.c \
5519 src/login/logind-button.h \
5520 src/login/logind-action.c \
5521 src/login/logind-action.h \
5522 src/login/logind-seat.c \
5523 src/login/logind-seat.h \
5524 src/login/logind-session.c \
5525 src/login/logind-session.h \
5526 src/login/logind-session-device.c \
5527 src/login/logind-session-device.h \
5528 src/login/logind-user.c \
5529 src/login/logind-user.h \
5530 src/login/logind-inhibit.c \
5531 src/login/logind-inhibit.h \
5532 src/login/logind-dbus.c \
5533 src/login/logind-session-dbus.c \
5534 src/login/logind-seat-dbus.c \
5535 src/login/logind-user-dbus.c \
5536 src/login/logind-utmp.c \
5537 src/login/logind-acl.h
5539 liblogind_core_la_LIBADD = \
5543 liblogind_core_la_SOURCES += \
5544 src/login/logind-acl.c
5547 noinst_LTLIBRARIES += \
5550 rootlibexec_PROGRAMS += \
5553 loginctl_SOURCES = \
5554 src/login/loginctl.c \
5555 src/login/sysfs-show.h \
5556 src/login/sysfs-show.c
5561 rootbin_PROGRAMS += \
5564 if ENABLE_BASH_COMPLETION
5565 dist_bashcompletion_DATA += \
5566 shell-completion/bash/loginctl
5569 if ENABLE_ZSH_COMPLETION
5570 dist_zshcompletion_DATA += \
5571 shell-completion/zsh/_loginctl \
5572 shell-completion/zsh/_systemd-inhibit
5575 systemd_inhibit_SOURCES = \
5578 systemd_inhibit_LDADD = \
5581 rootbin_PROGRAMS += \
5584 test_login_SOURCES = \
5585 src/libsystemd/sd-login/test-login.c
5587 test_login_LDADD = \
5590 test_login_shared_SOURCES = \
5591 src/login/test-login-shared.c
5593 test_login_shared_LDADD = \
5596 test_inhibit_SOURCES = \
5597 src/login/test-inhibit.c
5599 test_inhibit_LDADD = \
5602 test_login_tables_SOURCES = \
5603 src/login/test-login-tables.c
5605 test_login_tables_LDADD = \
5617 pam_systemd_la_SOURCES = \
5618 src/login/pam_systemd.sym \
5619 src/login/pam_systemd.c
5621 pam_systemd_la_CFLAGS = \
5625 pam_systemd_la_LDFLAGS = \
5631 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5633 pam_systemd_la_LIBADD = \
5637 pamlib_LTLIBRARIES = \
5640 dist_pamconf_DATA = \
5641 src/login/systemd-user
5644 src/login/systemd-user.m4
5647 nodist_systemunit_DATA += \
5648 units/systemd-logind.service
5650 dist_systemunit_DATA += \
5653 dist_systemunit_DATA_busnames += \
5654 units/org.freedesktop.login1.busname
5656 dist_dbussystemservice_DATA += \
5657 src/login/org.freedesktop.login1.service
5659 dist_dbuspolicy_DATA += \
5660 src/login/org.freedesktop.login1.conf
5662 dist_pkgsysconf_DATA += \
5663 src/login/logind.conf
5665 polkitpolicy_files += \
5666 src/login/org.freedesktop.login1.policy
5671 MULTI_USER_TARGET_WANTS += \
5672 systemd-logind.service
5674 SYSTEM_UNIT_ALIASES += \
5675 systemd-logind.service dbus-org.freedesktop.login1.service
5677 BUSNAMES_TARGET_WANTS += \
5678 org.freedesktop.login1.busname
5680 dist_udevrules_DATA += \
5681 src/login/70-uaccess.rules \
5682 src/login/70-power-switch.rules
5684 nodist_udevrules_DATA += \
5685 src/login/71-seat.rules \
5686 src/login/73-seat-late.rules
5690 polkitpolicy_in_files += \
5691 src/login/org.freedesktop.login1.policy.in
5693 gperf_gperf_sources += \
5694 src/login/logind-gperf.gperf
5697 src/login/71-seat.rules.in \
5698 src/login/73-seat-late.rules.in \
5699 units/systemd-logind.service.in
5701 # ------------------------------------------------------------------------------
5704 systemd_user_sessions_SOURCES = \
5705 src/user-sessions/user-sessions.c
5707 systemd_user_sessions_LDADD = \
5710 rootlibexec_PROGRAMS += \
5711 systemd-user-sessions
5713 nodist_systemunit_DATA += \
5714 units/systemd-user-sessions.service
5716 MULTI_USER_TARGET_WANTS += \
5717 systemd-user-sessions.service
5722 units/systemd-user-sessions.service.in
5724 # ------------------------------------------------------------------------------
5727 test/README.testsuite \
5728 test/TEST-01-BASIC \
5729 test/TEST-01-BASIC/Makefile \
5730 test/TEST-01-BASIC/test.sh \
5731 test/TEST-02-CRYPTSETUP \
5732 test/TEST-02-CRYPTSETUP/Makefile \
5733 test/TEST-02-CRYPTSETUP/test.sh \
5735 test/TEST-03-JOBS/Makefile \
5736 test/TEST-03-JOBS/test-jobs.sh \
5737 test/TEST-03-JOBS/test.sh \
5738 test/TEST-04-JOURNAL/Makefile \
5739 test/TEST-04-JOURNAL/test-journal.sh \
5740 test/TEST-04-JOURNAL/test.sh \
5741 test/TEST-05-RLIMITS/Makefile \
5742 test/TEST-05-RLIMITS/test-rlimits.sh \
5743 test/TEST-05-RLIMITS/test.sh \
5747 test/loopy2.service \
5748 test/loopy3.service \
5749 test/loopy4.service \
5750 test/loopy.service \
5751 test/loopy.service.d \
5752 test/loopy.service.d/compat.conf
5754 # ------------------------------------------------------------------------------
5755 if ENABLE_COMPAT_LIBS
5756 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5757 $(AM_V_at)$(MKDIR_P) $(dir $@)
5758 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5761 libsystemd-journal.c \
5762 libsystemd-login.c \
5763 libsystemd-id128.c \
5766 nodist_libsystemd_journal_la_SOURCES = \
5767 libsystemd-journal.c
5769 libsystemd_journal_la_SOURCES = \
5770 src/compat-libs/libsystemd-journal.sym
5772 libsystemd_journal_la_CPPFLAGS = \
5774 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5776 libsystemd_journal_la_LDFLAGS = \
5778 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5779 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5781 libsystemd_journal_la_LIBADD = \
5782 libsystemd-journal-internal.la \
5783 libsystemd-internal.la
5785 nodist_libsystemd_login_la_SOURCES = \
5788 libsystemd_login_la_SOURCES = \
5789 src/compat-libs/libsystemd-login.sym
5791 libsystemd_login_la_CPPFLAGS = \
5793 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5795 libsystemd_login_la_LDFLAGS = \
5797 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5798 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5800 libsystemd_login_la_LIBADD = \
5801 libsystemd-internal.la
5803 nodist_libsystemd_id128_la_SOURCES = \
5806 libsystemd_id128_la_SOURCES = \
5807 src/compat-libs/libsystemd-id128.sym
5809 libsystemd_id128_la_CPPFLAGS = \
5811 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5813 libsystemd_id128_la_LDFLAGS = \
5815 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5816 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5818 libsystemd_id128_la_LIBADD = \
5819 libsystemd-internal.la
5821 nodist_libsystemd_daemon_la_SOURCES = \
5824 libsystemd_daemon_la_SOURCES = \
5825 src/compat-libs/libsystemd-daemon.sym
5827 libsystemd_daemon_la_CPPFLAGS = \
5829 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5831 libsystemd_daemon_la_LDFLAGS = \
5833 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5834 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5836 libsystemd_daemon_la_LIBADD = \
5837 libsystemd-internal.la
5839 lib_LTLIBRARIES += \
5840 libsystemd-journal.la \
5841 libsystemd-login.la \
5842 libsystemd-id128.la \
5843 libsystemd-daemon.la
5845 pkgconfiglib_DATA += \
5846 src/compat-libs/libsystemd-journal.pc \
5847 src/compat-libs/libsystemd-login.pc \
5848 src/compat-libs/libsystemd-id128.pc \
5849 src/compat-libs/libsystemd-daemon.pc
5851 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5852 compat-lib-install-hook:
5853 libname=libsystemd-login.so && $(move-to-rootlibdir)
5854 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5855 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5856 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5858 compat-lib-uninstall-hook:
5859 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5860 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5861 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5862 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5864 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5865 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5869 src/compat-libs/linkwarning.h \
5870 src/compat-libs/libsystemd-journal.pc.in \
5871 src/compat-libs/libsystemd-login.pc.in \
5872 src/compat-libs/libsystemd-id128.pc.in \
5873 src/compat-libs/libsystemd-daemon.pc.in
5875 # ------------------------------------------------------------------------------
5877 '|rootlibexecdir=$(rootlibexecdir)|' \
5878 '|rootbindir=$(rootbindir)|' \
5879 '|bindir=$(bindir)|' \
5880 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5881 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5882 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5883 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5884 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5885 '|pkgdatadir=$(pkgdatadir)|' \
5886 '|systemunitdir=$(systemunitdir)|' \
5887 '|userunitdir=$(userunitdir)|' \
5888 '|systempresetdir=$(systempresetdir)|' \
5889 '|userpresetdir=$(userpresetdir)|' \
5890 '|udevhwdbdir=$(udevhwdbdir)|' \
5891 '|udevrulesdir=$(udevrulesdir)|' \
5892 '|catalogdir=$(catalogdir)|' \
5893 '|tmpfilesdir=$(tmpfilesdir)|' \
5894 '|sysusersdir=$(sysusersdir)|' \
5895 '|sysctldir=$(sysctldir)|' \
5896 '|systemgeneratordir=$(systemgeneratordir)|' \
5897 '|usergeneratordir=$(usergeneratordir)|' \
5898 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5899 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5900 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5901 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5902 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5903 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5904 '|prefix=$(prefix)|' \
5905 '|exec_prefix=$(exec_prefix)|' \
5906 '|libdir=$(libdir)|' \
5907 '|includedir=$(includedir)|' \
5908 '|VERSION=$(VERSION)|' \
5909 '|rootprefix=$(rootprefix)|' \
5910 '|udevlibexecdir=$(udevlibexecdir)|' \
5911 '|SUSHELL=$(SUSHELL)|' \
5912 '|SULOGIN=$(SULOGIN)|' \
5913 '|DEBUGTTY=$(DEBUGTTY)|' \
5916 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5917 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5918 '|MKDIR_P=$(MKDIR_P)|' \
5919 '|QUOTAON=$(QUOTAON)|' \
5920 '|QUOTACHECK=$(QUOTACHECK)|' \
5921 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5922 '|VARLOGDIR=$(varlogdir)|' \
5923 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5924 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5925 '|PYTHON=$(PYTHON)|' \
5926 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5927 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5928 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5929 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5930 '|TTY_GID=$(TTY_GID)|' \
5931 '|systemsleepdir=$(systemsleepdir)|' \
5932 '|systemshutdowndir=$(systemshutdowndir)|' \
5933 '|binfmtdir=$(binfmtdir)|' \
5934 '|modulesloaddir=$(modulesloaddir)|'
5937 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5938 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5947 sysctl.d/%: sysctl.d/%.in
5956 src/core/%.systemd: src/core/%.systemd.in
5959 src/%.policy.in: src/%.policy.in.in
5962 shell-completion/%: shell-completion/%.in
5973 $(AM_V_GEN)chmod +x $@
5975 src/%.c: src/%.gperf
5976 $(AM_V_at)$(MKDIR_P) $(dir $@)
5977 $(AM_V_GPERF)$(GPERF) < $< > $@
5980 $(AM_V_at)$(MKDIR_P) $(dir $@)
5981 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5983 sysusers.d/%: sysusers.d/%.m4
5984 $(AM_V_at)$(MKDIR_P) $(dir $@)
5985 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5987 tmpfiles.d/%: tmpfiles.d/%.m4
5988 $(AM_V_at)$(MKDIR_P) $(dir $@)
5989 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5993 $(AM_V_at)$(MKDIR_P) $(dir $@)
5994 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5996 units/user/%: units/user/%.m4
5997 $(AM_V_at)$(MKDIR_P) $(dir $@)
5998 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6001 nodist_polkitpolicy_DATA = \
6002 $(polkitpolicy_files) \
6003 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6007 $(polkitpolicy_in_files) \
6008 $(polkitpolicy_in_in_files)
6010 # ------------------------------------------------------------------------------
6012 man/custom-entities.ent: configure.ac
6013 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6014 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6015 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6019 man/custom-entities.ent
6024 --stringparam man.output.quietly 1 \
6025 --stringparam funcsynopsis.style ansi \
6026 --stringparam man.authors.section.enabled 0 \
6027 --stringparam man.copyright.section.enabled 0 \
6028 --stringparam systemd.version $(VERSION) \
6029 --path '$(builddir)/man:$(srcdir)/man'
6031 XSLTPROC_PROCESS_MAN = \
6032 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6034 XSLTPROC_PROCESS_HTML = \
6035 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6037 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6038 $(XSLTPROC_PROCESS_MAN)
6040 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6041 $(XSLTPROC_PROCESS_MAN)
6043 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6044 $(XSLTPROC_PROCESS_MAN)
6046 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6047 $(XSLTPROC_PROCESS_MAN)
6049 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6050 $(XSLTPROC_PROCESS_MAN)
6052 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6053 $(XSLTPROC_PROCESS_HTML)
6056 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6062 man/custom-html.xsl \
6065 # ------------------------------------------------------------------------------
6068 docs/sysvinit/README
6073 docs/sysvinit/README: docs/sysvinit/README.in
6076 docs/var-log/README: docs/var-log/README.in
6080 docs/sysvinit/README \
6085 docs/sysvinit/README.in \
6086 docs/var-log/README.in
6088 SOCKETS_TARGET_WANTS += \
6089 systemd-initctl.socket
6093 MULTI_USER_TARGET_WANTS += \
6094 systemd-update-utmp-runlevel.service
6095 GRAPHICAL_TARGET_WANTS += \
6096 systemd-update-utmp-runlevel.service
6097 RESCUE_TARGET_WANTS += \
6098 systemd-update-utmp-runlevel.service
6101 SYSINIT_TARGET_WANTS += \
6102 systemd-update-utmp.service
6105 SYSINIT_TARGET_WANTS += \
6106 systemd-update-done.service
6108 LOCAL_FS_TARGET_WANTS += \
6109 systemd-remount-fs.service \
6111 var-lib-machines.mount
6113 MULTI_USER_TARGET_WANTS += \
6115 systemd-ask-password-wall.path
6117 SYSINIT_TARGET_WANTS += \
6118 dev-hugepages.mount \
6120 sys-kernel-config.mount \
6121 sys-kernel-debug.mount \
6122 sys-fs-fuse-connections.mount \
6123 systemd-sysctl.service \
6124 systemd-ask-password-console.path
6127 SYSTEM_UNIT_ALIASES += \
6128 poweroff.target runlevel0.target \
6129 rescue.target runlevel1.target \
6130 multi-user.target runlevel2.target \
6131 multi-user.target runlevel3.target \
6132 multi-user.target runlevel4.target \
6133 graphical.target runlevel5.target \
6134 reboot.target runlevel6.target
6137 SYSTEM_UNIT_ALIASES += \
6138 graphical.target default.target \
6139 reboot.target ctrl-alt-del.target \
6140 getty@.service autovt@.service
6142 USER_UNIT_ALIASES += \
6143 $(systemunitdir)/shutdown.target shutdown.target \
6144 $(systemunitdir)/sockets.target sockets.target \
6145 $(systemunitdir)/timers.target timers.target \
6146 $(systemunitdir)/paths.target paths.target \
6147 $(systemunitdir)/bluetooth.target bluetooth.target \
6148 $(systemunitdir)/printer.target printer.target \
6149 $(systemunitdir)/sound.target sound.target \
6150 $(systemunitdir)/smartcard.target smartcard.target
6152 USER_UNIT_ALIASES += \
6153 $(systemunitdir)/busnames.target busnames.target
6155 GENERAL_ALIASES += \
6156 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6157 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6158 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6159 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6163 $(systemunitdir)/runlevel1.target.wants \
6164 $(systemunitdir)/runlevel2.target.wants \
6165 $(systemunitdir)/runlevel3.target.wants \
6166 $(systemunitdir)/runlevel4.target.wants \
6167 $(systemunitdir)/runlevel5.target.wants
6171 $(prefix)/lib/modules-load.d \
6172 $(sysconfdir)/modules-load.d \
6173 $(prefix)/lib/systemd/network \
6174 $(sysconfdir)/systemd/network \
6175 $(prefix)/lib/sysctl.d \
6176 $(sysconfdir)/sysctl.d \
6177 $(prefix)/lib/kernel/install.d \
6178 $(sysconfdir)/kernel/install.d \
6179 $(systemshutdowndir) \
6181 $(systemgeneratordir) \
6182 $(usergeneratordir) \
6185 $(pkgsysconfdir)/system \
6186 $(pkgsysconfdir)/system/multi-user.target.wants \
6187 $(pkgsysconfdir)/system/getty.target.wants \
6188 $(pkgsysconfdir)/user \
6189 $(dbussessionservicedir) \
6190 $(sysconfdir)/xdg/systemd
6192 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6194 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6196 install-data-hook: $(INSTALL_DATA_HOOKS)
6198 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6200 clean-local: $(CLEAN_LOCAL_HOOKS)
6201 rm -rf $(abs_srcdir)/install-tree
6202 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6203 $(abs_srcdir)/hwdb/iab.txt
6205 DISTCHECK_CONFIGURE_FLAGS = \
6206 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6207 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6208 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6209 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6210 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6211 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6212 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6213 --with-rootprefix=$$dc_install_base \
6214 --enable-compat-libs
6217 DISTCHECK_CONFIGURE_FLAGS += \
6218 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6219 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6221 DISTCHECK_CONFIGURE_FLAGS += \
6222 --with-sysvinit-path= \
6223 --with-sysvrcnd-path=
6227 DISTCHECK_CONFIGURE_FLAGS += \
6230 DISTCHECK_CONFIGURE_FLAGS += \
6234 .PHONY: dist-check-help
6236 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6237 for i in $(abspath $^); do \
6238 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6239 echo "$(basename $$i) --help output is too wide:"; \
6240 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6246 ( cd $(top_srcdir)/hwdb && \
6247 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6248 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6249 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6250 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6251 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6254 .PHONY: built-sources
6255 built-sources: $(BUILT_SOURCES)
6259 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6263 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6265 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6269 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6273 scp man/*.html gardel:public/systemd-man/
6275 .PHONY: lennart-fedora
6277 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6279 .PHONY: install-tree
6281 rm -rf $(abs_srcdir)/install-tree
6282 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6283 tree $(abs_srcdir)/install-tree
6285 # Let's run all tests of the test suite, but under valgrind. Let's
6286 # exclude the one perl script we have in there
6287 .PHONY: valgrind-tests
6288 valgrind-tests: $(TESTS)
6289 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6290 if file $$f | grep -q shell; then \
6291 echo -e "$${x}Skipping non-binary $$f"; else \
6292 echo -e "$${x}Running $$f"; \
6293 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6298 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6300 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6301 $(AM_V_GEN)sort -u $^ > $@
6303 .PHONY: check-api-docs
6304 check-api-docs: exported man
6305 $(AM_V_GEN)for symbol in `cat exported` ; do \
6306 if test -f $(builddir)/man/$$symbol.html ; then \
6307 echo " Symbol $$symbol() is documented." ; \
6309 echo "‣ Symbol $$symbol() lacks documentation." ; \
6313 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6314 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6316 undefined defined: $(ALL_OBJECTS)
6317 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6318 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6319 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6325 .PHONY: check-api-unused
6326 check-api-unused: defined undefined exported
6327 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6329 .PHONY: check-includes
6330 check-includes: $(top_srcdir)/tools/check-includes.pl
6331 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6332 | xargs $(top_srcdir)/tools/check-includes.pl
6335 $(top_srcdir)/tools/check-includes.pl
6337 # Stupid test that everything purported to be exported really is
6338 define generate-sym-test
6339 $(AM_V_at)$(MKDIR_P) $(dir $@)
6340 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6341 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6342 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6343 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6344 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6345 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6346 $(AM_V_at)printf 'return 0; }\n' >> $@
6349 test-libsystemd-sym.c: \
6350 $(top_builddir)/src/libsystemd/libsystemd.sym \
6351 src/systemd/sd-journal.h \
6352 src/systemd/sd-daemon.h \
6353 src/systemd/sd-login.h \
6354 src/systemd/sd-bus.h \
6355 src/systemd/sd-utf8.h \
6356 src/systemd/sd-resolve.h \
6357 src/systemd/sd-path.h \
6358 src/systemd/sd-event.h
6359 $(generate-sym-test)
6361 test-libudev-sym.c: \
6362 src/libudev/libudev.sym \
6364 $(generate-sym-test)
6366 nodist_test_libsystemd_sym_SOURCES = \
6367 test-libsystemd-sym.c
6368 test_libsystemd_sym_LDADD = \
6371 nodist_test_libudev_sym_SOURCES = \
6373 test_libudev_sym_CFLAGS = \
6375 -Wno-deprecated-declarations
6376 test_libudev_sym_LDADD = \
6380 test-libsystemd-sym.c \
6384 test-libsystemd-sym.c \
6388 test-libsystemd-sym \
6393 cppcheck --enable=all -q $(top_srcdir)
6395 # Used to extract compile flags for YCM.
6400 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6403 tools/gdb-sd_dump_hashmaps.py
6406 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6409 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -