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)}}}}}
708 $(AM_V_at)$(MKDIR_P) $(dir $@)
709 $(AM_V_LN)$(LN_S) -f ../../man $@
711 man/index.html: man/systemd.index.html
712 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
722 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
723 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
724 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
726 # This target should only be run manually. It recreates Makefile-man.am
727 # file in the source directory based on all man/*.xml files. Run it after
728 # adding, removing, or changing the conditional in a man page.
729 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
730 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
731 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
732 @echo "Makefile-man.am has been regenerated"
734 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
735 $(AM_V_at)$(MKDIR_P) $(dir $@)
736 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
738 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
739 $(AM_V_at)$(MKDIR_P) $(dir $@)
740 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
743 man/systemd.index.xml \
744 man/systemd.directives.xml
747 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
748 tools/make-man-index.py \
749 tools/make-man-rules.py \
750 tools/make-directive-index.py \
751 tools/xml_helper.py \
752 man/glib-event-glue.c
754 # ------------------------------------------------------------------------------
755 noinst_LTLIBRARIES += \
758 libbasic_la_SOURCES = \
759 src/basic/missing.h \
760 src/basic/capability-util.c \
761 src/basic/capability-util.h \
762 src/basic/c-rbtree.c \
763 src/basic/c-rbtree.h \
764 src/basic/conf-files.c \
765 src/basic/conf-files.h \
766 src/basic/stdio-util.h \
767 src/basic/hostname-util.h \
768 src/basic/hostname-util.c \
769 src/basic/unit-name.c \
770 src/basic/unit-name.h \
772 src/basic/securebits.h \
773 src/basic/special.h \
775 src/basic/unaligned.h \
778 src/basic/sparse-endian.h \
782 src/basic/io-util.c \
783 src/basic/io-util.h \
784 src/basic/string-util.c \
785 src/basic/string-util.h \
786 src/basic/fd-util.c \
787 src/basic/fd-util.h \
788 src/basic/parse-util.c \
789 src/basic/parse-util.h \
790 src/basic/user-util.c \
791 src/basic/user-util.h \
792 src/basic/rlimit-util.c \
793 src/basic/rlimit-util.h \
794 src/basic/dirent-util.c \
795 src/basic/dirent-util.h \
796 src/basic/xattr-util.c \
797 src/basic/xattr-util.h \
798 src/basic/chattr-util.c \
799 src/basic/chattr-util.h \
800 src/basic/proc-cmdline.c \
801 src/basic/proc-cmdline.h \
802 src/basic/fs-util.c \
803 src/basic/fs-util.h \
804 src/basic/syslog-util.c \
805 src/basic/syslog-util.h \
806 src/basic/stat-util.c \
807 src/basic/stat-util.h \
808 src/basic/mount-util.c \
809 src/basic/mount-util.h \
810 src/basic/hexdecoct.c \
811 src/basic/hexdecoct.h \
812 src/basic/glob-util.h \
813 src/basic/glob-util.c \
814 src/basic/extract-word.c \
815 src/basic/extract-word.h \
818 src/basic/cpu-set-util.c \
819 src/basic/cpu-set-util.h \
820 src/basic/lockfile-util.c \
821 src/basic/lockfile-util.h \
822 src/basic/path-util.c \
823 src/basic/path-util.h \
824 src/basic/time-util.c \
825 src/basic/time-util.h \
826 src/basic/locale-util.c \
827 src/basic/locale-util.h \
828 src/basic/umask-util.h \
829 src/basic/signal-util.c \
830 src/basic/signal-util.h \
831 src/basic/string-table.c \
832 src/basic/string-table.h \
833 src/basic/mempool.c \
834 src/basic/mempool.h \
835 src/basic/hashmap.c \
836 src/basic/hashmap.h \
837 src/basic/hash-funcs.c \
838 src/basic/hash-funcs.h \
839 src/basic/siphash24.c \
840 src/basic/siphash24.h \
842 src/basic/ordered-set.h \
843 src/basic/ordered-set.c \
850 src/basic/web-util.c \
851 src/basic/web-util.h \
854 src/basic/env-util.c \
855 src/basic/env-util.h \
858 src/basic/strxcpyx.c \
859 src/basic/strxcpyx.h \
862 src/basic/bus-label.c \
863 src/basic/bus-label.h \
864 src/basic/ratelimit.h \
865 src/basic/ratelimit.c \
866 src/basic/exit-status.c \
867 src/basic/exit-status.h \
870 src/basic/smack-util.c \
871 src/basic/smack-util.h \
872 src/basic/device-nodes.c \
873 src/basic/device-nodes.h \
876 src/basic/gunicode.c \
877 src/basic/gunicode.h \
878 src/basic/socket-util.c \
879 src/basic/socket-util.h \
880 src/basic/in-addr-util.c \
881 src/basic/in-addr-util.h \
882 src/basic/ether-addr-util.h \
883 src/basic/ether-addr-util.c \
884 src/basic/replace-var.c \
885 src/basic/replace-var.h \
886 src/basic/clock-util.c \
887 src/basic/clock-util.h \
888 src/basic/calendarspec.c \
889 src/basic/calendarspec.h \
892 src/basic/MurmurHash2.c \
893 src/basic/MurmurHash2.h \
896 src/basic/cgroup-util.c \
897 src/basic/cgroup-util.h \
898 src/basic/errno-list.c \
899 src/basic/errno-list.h \
900 src/basic/af-list.c \
901 src/basic/af-list.h \
902 src/basic/arphrd-list.c \
903 src/basic/arphrd-list.h \
904 src/basic/terminal-util.c \
905 src/basic/terminal-util.h \
906 src/basic/login-util.h \
907 src/basic/login-util.c \
908 src/basic/cap-list.c \
909 src/basic/cap-list.h \
910 src/basic/audit-util.c \
911 src/basic/audit-util.h \
916 src/basic/barrier.c \
917 src/basic/barrier.h \
920 src/basic/memfd-util.c \
921 src/basic/memfd-util.h \
922 src/basic/process-util.c \
923 src/basic/process-util.h \
924 src/basic/random-util.c \
925 src/basic/random-util.h \
931 src/basic/socket-label.c \
934 src/basic/btrfs-util.c \
935 src/basic/btrfs-util.h \
936 src/basic/btrfs-ctree.h \
937 src/basic/selinux-util.c \
938 src/basic/selinux-util.h \
939 src/basic/mkdir-label.c \
940 src/basic/fileio-label.c \
941 src/basic/fileio-label.h \
946 src/basic/alloc-util.h \
947 src/basic/alloc-util.c \
948 src/basic/formats-util.h \
951 nodist_libbasic_la_SOURCES = \
952 src/basic/errno-from-name.h \
953 src/basic/errno-to-name.h \
954 src/basic/af-from-name.h \
955 src/basic/af-to-name.h \
956 src/basic/arphrd-from-name.h \
957 src/basic/arphrd-to-name.h \
958 src/basic/cap-from-name.h \
959 src/basic/cap-to-name.h
961 libbasic_la_CFLAGS = \
967 libbasic_la_LIBADD = \
973 # -----------------------------------------------------------------------------
974 noinst_LTLIBRARIES += \
977 libshared_la_SOURCES = \
978 src/shared/output-mode.h \
980 src/shared/udev-util.h \
981 src/shared/linux/auto_dev-ioctl.h \
982 src/shared/initreq.h \
983 src/shared/dns-domain.c \
984 src/shared/dns-domain.h \
985 src/shared/architecture.c \
986 src/shared/architecture.h \
987 src/shared/efivars.c \
988 src/shared/efivars.h \
989 src/shared/fstab-util.c \
990 src/shared/fstab-util.h \
991 src/shared/sleep-config.c \
992 src/shared/sleep-config.h \
993 src/shared/conf-parser.c \
994 src/shared/conf-parser.h \
997 src/shared/spawn-polkit-agent.c \
998 src/shared/spawn-polkit-agent.h \
999 src/shared/apparmor-util.c \
1000 src/shared/apparmor-util.h \
1001 src/shared/ima-util.c \
1002 src/shared/ima-util.h \
1003 src/shared/ptyfwd.c \
1004 src/shared/ptyfwd.h \
1005 src/shared/base-filesystem.c \
1006 src/shared/base-filesystem.h \
1007 src/shared/uid-range.c \
1008 src/shared/uid-range.h \
1009 src/shared/install.c \
1010 src/shared/install.h \
1011 src/shared/install-printf.c \
1012 src/shared/install-printf.h \
1013 src/shared/path-lookup.c \
1014 src/shared/path-lookup.h \
1015 src/shared/specifier.c \
1016 src/shared/specifier.h \
1017 src/shared/dev-setup.c \
1018 src/shared/dev-setup.h \
1019 src/shared/dropin.c \
1020 src/shared/dropin.h \
1021 src/shared/condition.c \
1022 src/shared/condition.h \
1023 src/shared/clean-ipc.c \
1024 src/shared/clean-ipc.h \
1025 src/shared/generator.h \
1026 src/shared/generator.c \
1027 src/shared/acpi-fpdt.h \
1028 src/shared/acpi-fpdt.c \
1029 src/shared/boot-timestamps.h \
1030 src/shared/boot-timestamps.c \
1031 src/shared/cgroup-show.c \
1032 src/shared/cgroup-show.h \
1033 src/shared/utmp-wtmp.h \
1034 src/shared/watchdog.c \
1035 src/shared/watchdog.h \
1036 src/shared/spawn-ask-password-agent.c \
1037 src/shared/spawn-ask-password-agent.h \
1038 src/shared/ask-password-api.c \
1039 src/shared/ask-password-api.h \
1040 src/shared/switch-root.h \
1041 src/shared/switch-root.c \
1042 src/shared/import-util.c \
1043 src/shared/import-util.h \
1044 src/shared/sysctl-util.c \
1045 src/shared/sysctl-util.h \
1046 src/shared/bus-util.c \
1047 src/shared/bus-util.h \
1048 src/shared/logs-show.c \
1049 src/shared/logs-show.h \
1050 src/shared/machine-image.c \
1051 src/shared/machine-image.h \
1052 src/shared/machine-pool.c \
1053 src/shared/machine-pool.h \
1054 src/shared/resolve-util.c \
1055 src/shared/resolve-util.h
1058 libshared_la_SOURCES += \
1059 src/shared/utmp-wtmp.c
1063 libshared_la_SOURCES += \
1064 src/shared/seccomp-util.h \
1065 src/shared/seccomp-util.c
1069 libshared_la_SOURCES += \
1070 src/shared/acl-util.c \
1071 src/shared/acl-util.h
1074 libshared_la_CFLAGS = \
1080 libshared_la_LIBADD = \
1081 libsystemd-internal.la \
1082 libsystemd-journal-internal.la \
1083 libudev-internal.la \
1088 # -----------------------------------------------------------------------------
1090 noinst_LTLIBRARIES += \
1093 libfirewall_la_SOURCES = \
1094 src/shared/firewall-util.h \
1095 src/shared/firewall-util.c
1097 libfirewall_la_CFLAGS = \
1101 libfirewall_la_LIBADD = \
1105 # -----------------------------------------------------------------------------
1107 dist_systemunit_DATA += \
1108 units/ldconfig.service
1110 SYSINIT_TARGET_WANTS += \
1114 # ------------------------------------------------------------------------------
1115 noinst_LTLIBRARIES += \
1118 libcore_la_SOURCES = \
1121 src/core/unit-printf.c \
1122 src/core/unit-printf.h \
1125 src/core/manager.c \
1126 src/core/manager.h \
1127 src/core/transaction.c \
1128 src/core/transaction.h \
1129 src/core/load-fragment.c \
1130 src/core/load-fragment.h \
1131 src/core/service.c \
1132 src/core/service.h \
1135 src/core/busname.c \
1136 src/core/busname.h \
1137 src/core/bus-endpoint.c \
1138 src/core/bus-endpoint.h \
1139 src/core/bus-policy.c \
1140 src/core/bus-policy.h \
1147 src/core/automount.c \
1148 src/core/automount.h \
1159 src/core/load-dropin.c \
1160 src/core/load-dropin.h \
1161 src/core/execute.c \
1162 src/core/execute.h \
1167 src/core/dbus-manager.c \
1168 src/core/dbus-manager.h \
1169 src/core/dbus-unit.c \
1170 src/core/dbus-unit.h \
1171 src/core/dbus-job.c \
1172 src/core/dbus-job.h \
1173 src/core/dbus-service.c \
1174 src/core/dbus-service.h \
1175 src/core/dbus-socket.c \
1176 src/core/dbus-socket.h \
1177 src/core/dbus-busname.c \
1178 src/core/dbus-busname.h \
1179 src/core/dbus-target.c \
1180 src/core/dbus-target.h \
1181 src/core/dbus-device.c \
1182 src/core/dbus-device.h \
1183 src/core/dbus-mount.c \
1184 src/core/dbus-mount.h \
1185 src/core/dbus-automount.c \
1186 src/core/dbus-automount.h \
1187 src/core/dbus-swap.c \
1188 src/core/dbus-swap.h \
1189 src/core/dbus-timer.c \
1190 src/core/dbus-timer.h \
1191 src/core/dbus-path.c \
1192 src/core/dbus-path.h \
1193 src/core/dbus-slice.c \
1194 src/core/dbus-slice.h \
1195 src/core/dbus-scope.c \
1196 src/core/dbus-scope.h \
1197 src/core/dbus-execute.c \
1198 src/core/dbus-execute.h \
1199 src/core/dbus-kill.c \
1200 src/core/dbus-kill.h \
1201 src/core/dbus-cgroup.c \
1202 src/core/dbus-cgroup.h \
1205 src/core/selinux-access.c \
1206 src/core/selinux-access.h \
1207 src/core/selinux-setup.c \
1208 src/core/selinux-setup.h \
1209 src/core/smack-setup.c \
1210 src/core/smack-setup.h \
1211 src/core/ima-setup.c \
1212 src/core/ima-setup.h \
1213 src/core/locale-setup.h \
1214 src/core/locale-setup.c \
1215 src/core/hostname-setup.c \
1216 src/core/hostname-setup.h \
1217 src/core/machine-id-setup.c \
1218 src/core/machine-id-setup.h \
1219 src/core/mount-setup.c \
1220 src/core/mount-setup.h \
1221 src/core/kmod-setup.c \
1222 src/core/kmod-setup.h \
1223 src/core/loopback-setup.h \
1224 src/core/loopback-setup.c \
1225 src/core/namespace.c \
1226 src/core/namespace.h \
1227 src/core/killall.h \
1228 src/core/killall.c \
1229 src/core/audit-fd.c \
1230 src/core/audit-fd.h \
1231 src/core/show-status.c \
1232 src/core/show-status.h \
1233 src/core/failure-action.c \
1234 src/core/failure-action.h
1236 nodist_libcore_la_SOURCES = \
1237 src/core/load-fragment-gperf.c \
1238 src/core/load-fragment-gperf-nulstr.c
1240 libcore_la_CFLAGS = \
1245 $(APPARMOR_CFLAGS) \
1249 libcore_la_LIBADD = \
1257 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1258 $(AM_V_at)$(MKDIR_P) $(dir $@)
1259 $(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 ";" }' < $< > $@
1261 gperf_gperf_m4_sources = \
1262 src/core/load-fragment-gperf.gperf.m4
1264 gperf_txt_sources = \
1265 src/basic/errno-list.txt \
1266 src/basic/af-list.txt \
1267 src/basic/arphrd-list.txt \
1268 src/basic/cap-list.txt
1271 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1272 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1273 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1274 $(gperf_txt_sources:-list.txt=-from-name.h) \
1275 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
1278 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1280 $(gperf_txt_sources)
1283 $(gperf_gperf_m4_sources) \
1284 $(gperf_gperf_sources)
1287 $(gperf_txt_sources)
1289 %-from-name.gperf: %-list.txt
1290 $(AM_V_at)$(MKDIR_P) $(dir $@)
1291 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1293 %-from-name.h: %-from-name.gperf
1294 $(AM_V_at)$(MKDIR_P) $(dir $@)
1295 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1298 src/basic/errno-list.txt:
1299 $(AM_V_at)$(MKDIR_P) $(dir $@)
1300 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1302 src/basic/errno-to-name.h: src/basic/errno-list.txt
1303 $(AM_V_at)$(MKDIR_P) $(dir $@)
1304 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1307 src/basic/af-list.txt:
1308 $(AM_V_at)$(MKDIR_P) $(dir $@)
1309 $(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; }' >$@
1311 src/basic/af-to-name.h: src/basic/af-list.txt
1312 $(AM_V_at)$(MKDIR_P) $(dir $@)
1313 $(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 "};"}' <$< >$@
1316 src/basic/arphrd-list.txt:
1317 $(AM_V_at)$(MKDIR_P) $(dir $@)
1318 $(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_//' >$@
1320 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1321 $(AM_V_at)$(MKDIR_P) $(dir $@)
1322 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1324 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1325 $(AM_V_at)$(MKDIR_P) $(dir $@)
1326 $(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 }' <$< >$@
1329 src/basic/cap-list.txt:
1330 $(AM_V_at)$(MKDIR_P) $(dir $@)
1331 $(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 >$@
1333 src/basic/cap-to-name.h: src/basic/cap-list.txt
1334 $(AM_V_at)$(MKDIR_P) $(dir $@)
1335 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1337 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1338 $(AM_V_at)$(MKDIR_P) $(dir $@)
1339 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1341 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1342 $(AM_V_at)$(MKDIR_P) $(dir $@)
1343 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1345 audit_list_includes = -include linux/audit.h -include missing.h
1347 audit_list_includes += -include libaudit.h
1350 src/journal/audit_type-list.txt:
1351 $(AM_V_at)$(MKDIR_P) $(dir $@)
1352 $(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 >$@
1354 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1355 $(AM_V_at)$(MKDIR_P) $(dir $@)
1356 $(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" }' <$< >$@
1359 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1360 $(AM_V_at)$(MKDIR_P) $(dir $@)
1361 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1363 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1364 $(AM_V_at)$(MKDIR_P) $(dir $@)
1365 $(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" }' <$< >$@
1367 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1368 $(AM_V_at)$(MKDIR_P) $(dir $@)
1369 $(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 }' <$< >$@
1371 # ------------------------------------------------------------------------------
1383 dist_pkgsysconf_DATA += \
1384 src/core/system.conf \
1387 dist_dbuspolicy_DATA += \
1388 src/core/org.freedesktop.systemd1.conf
1390 dist_dbussystemservice_DATA += \
1391 src/core/org.freedesktop.systemd1.service
1393 polkitpolicy_in_in_files += \
1394 src/core/org.freedesktop.systemd1.policy.in.in
1396 pkgconfigdata_DATA += \
1399 nodist_rpmmacros_DATA = \
1400 src/core/macros.systemd
1403 src/core/systemd.pc.in \
1404 src/core/macros.systemd.in \
1405 src/core/triggers.systemd.in
1407 # ------------------------------------------------------------------------------
1421 test-ipv4ll-manual \
1422 test-ask-password-api
1454 test-hostname-util \
1456 test-terminal-util \
1466 test-strip-tab-ansi \
1502 test-resolve-tables \
1517 test/daughter.service \
1522 test/grandchild.service \
1524 test/hello-after-sleep.target \
1525 test/hello.service \
1527 test/parent-deep.slice \
1529 test/sched_idle_bad.service \
1530 test/sched_idle_ok.service \
1531 test/sched_rr_bad.service \
1532 test/sched_rr_change.service \
1533 test/sched_rr_ok.service \
1534 test/shutdown.target \
1535 test/sleep.service \
1536 test/sockets.target \
1538 test/sysinit.target \
1539 test/testsuite.target \
1540 test/timers.target \
1541 test/unstoppable.service \
1542 test/test-path/paths.target \
1543 test/test-path/basic.target \
1544 test/test-path/sysinit.target \
1545 test/test-path/path-changed.service \
1546 test/test-path/path-directorynotempty.service \
1547 test/test-path/path-existsglob.service \
1548 test/test-path/path-exists.service \
1549 test/test-path/path-makedirectory.service \
1550 test/test-path/path-modified.service \
1551 test/test-path/path-mycustomunit.service \
1552 test/test-path/path-service.service \
1553 test/test-path/path-changed.path \
1554 test/test-path/path-directorynotempty.path \
1555 test/test-path/path-existsglob.path \
1556 test/test-path/path-exists.path \
1557 test/test-path/path-makedirectory.path \
1558 test/test-path/path-modified.path \
1559 test/test-path/path-unit.path \
1560 test/test-execute/exec-environment-empty.service \
1561 test/test-execute/exec-environment-multiple.service \
1562 test/test-execute/exec-environment.service \
1563 test/test-execute/exec-passenvironment-absent.service \
1564 test/test-execute/exec-passenvironment-empty.service \
1565 test/test-execute/exec-passenvironment-repeated.service \
1566 test/test-execute/exec-passenvironment.service \
1567 test/test-execute/exec-group.service \
1568 test/test-execute/exec-ignoresigpipe-no.service \
1569 test/test-execute/exec-ignoresigpipe-yes.service \
1570 test/test-execute/exec-personality-x86-64.service \
1571 test/test-execute/exec-personality-x86.service \
1572 test/test-execute/exec-personality-s390.service \
1573 test/test-execute/exec-privatedevices-no.service \
1574 test/test-execute/exec-privatedevices-yes.service \
1575 test/test-execute/exec-privatetmp-no.service \
1576 test/test-execute/exec-privatetmp-yes.service \
1577 test/test-execute/exec-systemcallerrornumber.service \
1578 test/test-execute/exec-systemcallfilter-failing2.service \
1579 test/test-execute/exec-systemcallfilter-failing.service \
1580 test/test-execute/exec-systemcallfilter-not-failing2.service \
1581 test/test-execute/exec-systemcallfilter-not-failing.service \
1582 test/test-execute/exec-user.service \
1583 test/test-execute/exec-workingdirectory.service \
1584 test/test-execute/exec-umask-0177.service \
1585 test/test-execute/exec-umask-default.service \
1586 test/test-execute/exec-privatenetwork-yes.service \
1587 test/test-execute/exec-environmentfile.service \
1588 test/test-execute/exec-oomscoreadjust-positive.service \
1589 test/test-execute/exec-oomscoreadjust-negative.service \
1590 test/test-execute/exec-ioschedulingclass-best-effort.service \
1591 test/test-execute/exec-ioschedulingclass-idle.service \
1592 test/test-execute/exec-ioschedulingclass-none.service \
1593 test/test-execute/exec-ioschedulingclass-realtime.service \
1594 test/test-execute/exec-capabilityboundingset-invert.service \
1595 test/test-execute/exec-capabilityboundingset-merge.service \
1596 test/test-execute/exec-capabilityboundingset-reset.service \
1597 test/test-execute/exec-capabilityboundingset-simple.service \
1598 test/bus-policy/hello.conf \
1599 test/bus-policy/methods.conf \
1600 test/bus-policy/ownerships.conf \
1601 test/bus-policy/signals.conf \
1602 test/bus-policy/check-own-rules.conf \
1603 test/bus-policy/many-rules.conf \
1604 test/bus-policy/test.conf
1608 src/test/test-helper.h
1610 test_device_nodes_SOURCES = \
1611 src/test/test-device-nodes.c
1613 test_device_nodes_LDADD = \
1616 test_engine_SOURCES = \
1617 src/test/test-engine.c
1619 test_engine_CFLAGS = \
1624 test_engine_LDADD = \
1627 test_job_type_SOURCES = \
1628 src/test/test-job-type.c
1630 test_job_type_CFLAGS = \
1635 test_job_type_LDADD = \
1648 test_loopback_SOURCES = \
1649 src/test/test-loopback.c
1651 test_loopback_LDADD = \
1654 test_hostname_SOURCES = \
1655 src/test/test-hostname.c
1657 test_hostname_LDADD = \
1660 test_dns_domain_SOURCES = \
1661 src/test/test-dns-domain.c
1663 test_dns_domain_LDADD = \
1664 libsystemd-network.la \
1667 test_resolve_tables_SOURCES = \
1668 src/resolve/test-resolve-tables.c \
1669 src/shared/test-tables.h \
1670 src/resolve/dns-type.c \
1671 src/resolve/dns-type.h \
1672 src/resolve/dns_type-from-name.h \
1673 src/resolve/dns_type-to-name.h
1675 test_resolve_tables_LDADD = \
1682 test_boot_timestamp_SOURCES = \
1683 src/test/test-boot-timestamps.c
1685 test_boot_timestamp_LDADD = \
1689 test_unit_name_SOURCES = \
1690 src/test/test-unit-name.c
1692 test_unit_name_CFLAGS = \
1697 test_unit_name_LDADD = \
1700 test_unit_file_SOURCES = \
1701 src/test/test-unit-file.c
1703 test_unit_file_CFLAGS = \
1708 test_unit_file_LDADD = \
1711 test_utf8_SOURCES = \
1712 src/test/test-utf8.c
1717 test_capability_SOURCES = \
1718 src/test/test-capability.c
1720 test_capability_LDADD = \
1723 test_async_SOURCES = \
1724 src/test/test-async.c
1726 test_async_LDADD = \
1729 test_locale_util_SOURCES = \
1730 src/test/test-locale-util.c
1732 test_locale_util_LDADD = \
1735 test_copy_SOURCES = \
1736 src/test/test-copy.c
1741 test_sigbus_SOURCES = \
1742 src/test/test-sigbus.c
1744 test_sigbus_LDADD = \
1747 test_rbtree_SOURCES = \
1748 src/test/test-rbtree.c
1750 test_rbtree_LDADD = \
1753 test_condition_SOURCES = \
1754 src/test/test-condition.c
1756 test_condition_LDADD = \
1759 test_fdset_SOURCES = \
1760 src/test/test-fdset.c
1762 test_fdset_LDADD = \
1765 test_fstab_util_SOURCES = \
1766 src/test/test-fstab-util.c
1768 test_fstab_util_LDADD = \
1771 test_ratelimit_SOURCES = \
1772 src/test/test-ratelimit.c
1774 test_ratelimit_LDADD = \
1777 test_util_SOURCES = \
1778 src/test/test-util.c
1783 test_string_util_SOURCES = \
1784 src/test/test-string-util.c
1786 test_string_util_LDADD = \
1789 test_extract_word_SOURCES = \
1790 src/test/test-extract-word.c
1792 test_extract_word_LDADD = \
1795 test_parse_util_SOURCES = \
1796 src/test/test-parse-util.c
1798 test_parse_util_LDADD = \
1801 test_user_util_SOURCES = \
1802 src/test/test-user-util.c
1804 test_user_util_LDADD = \
1807 test_hostname_util_SOURCES = \
1808 src/test/test-hostname-util.c
1810 test_hostname_util_LDADD = \
1813 test_process_util_SOURCES = \
1814 src/test/test-process-util.c
1816 test_process_util_LDADD = \
1819 test_terminal_util_SOURCES = \
1820 src/test/test-terminal-util.c
1822 test_terminal_util_LDADD = \
1825 test_path_lookup_SOURCES = \
1826 src/test/test-path-lookup.c
1828 test_path_lookup_LDADD = \
1831 test_uid_range_SOURCES = \
1832 src/test/test-uid-range.c
1834 test_uid_range_LDADD = \
1837 test_cap_list_SOURCES = \
1838 src/test/test-cap-list.c
1840 test_cap_list_LDADD = \
1843 test_socket_util_SOURCES = \
1844 src/test/test-socket-util.c
1846 test_socket_util_LDADD = \
1849 test_barrier_SOURCES = \
1850 src/test/test-barrier.c
1852 test_barrier_LDADD = \
1855 test_tmpfiles_SOURCES = \
1856 src/test/test-tmpfiles.c
1858 test_tmpfiles_LDADD = \
1861 test_namespace_SOURCES = \
1862 src/test/test-namespace.c
1864 test_verbs_SOURCES = \
1865 src/test/test-verbs.c
1867 test_verbs_LDADD = \
1870 test_install_root_SOURCES = \
1871 src/test/test-install-root.c
1873 test_install_root_LDADD = \
1876 test_acl_util_SOURCES = \
1877 src/test/test-acl-util.c
1879 test_acl_util_LDADD = \
1882 test_namespace_LDADD = \
1885 test_rlimit_util_SOURCES = \
1886 src/test/test-rlimit-util.c
1888 test_rlimit_util_LDADD = \
1891 test_ask_password_api_SOURCES = \
1892 src/test/test-ask-password-api.c
1894 test_ask_password_api_LDADD = \
1897 test_signal_util_SOURCES = \
1898 src/test/test-signal-util.c
1900 test_signal_util_LDADD = \
1904 src/test/test-hashmap-ordered.c
1906 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1907 $(AM_V_at)$(MKDIR_P) $(dir $@)
1908 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1909 { if (!match($$0, "^#include")) \
1910 gsub(/hashmap/, "ordered_hashmap"); \
1911 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1912 gsub(/Hashmap/, "OrderedHashmap"); \
1915 nodist_test_hashmap_SOURCES = \
1916 src/test/test-hashmap-ordered.c
1918 test_hashmap_SOURCES = \
1919 src/test/test-hashmap.c \
1920 src/test/test-hashmap-plain.c
1922 test_hashmap_LDADD = \
1925 test_set_SOURCES = \
1931 test_bitmap_SOURCES = \
1932 src/test/test-bitmap.c
1934 test_bitmap_LDADD = \
1937 test_xml_SOURCES = \
1943 test_json_SOURCES = \
1944 src/test/test-json.c
1949 test_list_SOURCES = \
1950 src/test/test-list.c
1955 test_unaligned_LDADD = \
1958 test_unaligned_SOURCES = \
1959 src/test/test-unaligned.c
1961 test_tables_SOURCES = \
1962 src/test/test-tables.c \
1963 src/shared/test-tables.h \
1964 src/bus-proxyd/bus-xml-policy.c \
1965 src/bus-proxyd/bus-xml-policy.h \
1966 src/journal/journald-server.c \
1967 src/journal/journald-server.h
1969 test_tables_CPPFLAGS = \
1971 -I$(top_srcdir)/src/bus-proxyd
1973 test_tables_CFLAGS = \
1978 test_tables_LDADD = \
1979 libjournal-core.la \
1983 test_prioq_SOURCES = \
1984 src/test/test-prioq.c
1986 test_prioq_LDADD = \
1989 test_fileio_SOURCES = \
1990 src/test/test-fileio.c
1992 test_fileio_LDADD = \
1995 test_time_SOURCES = \
1996 src/test/test-time.c
2001 test_architecture_SOURCES = \
2002 src/test/test-architecture.c
2004 test_architecture_LDADD = \
2007 test_log_SOURCES = \
2013 test_ipcrm_SOURCES = \
2014 src/test/test-ipcrm.c
2016 test_ipcrm_LDADD = \
2019 test_btrfs_SOURCES = \
2020 src/test/test-btrfs.c
2022 test_btrfs_LDADD = \
2026 test_firewall_util_SOURCES = \
2027 src/test/test-firewall-util.c
2029 test_firewall_util_CFLAGS = \
2033 test_firewall_util_LDADD = \
2039 test_netlink_manual_SOURCES = \
2040 src/test/test-netlink-manual.c
2042 test_netlink_manual_CFLAGS = \
2046 test_netlink_manual_LDADD = \
2050 test_ellipsize_SOURCES = \
2051 src/test/test-ellipsize.c
2053 test_ellipsize_LDADD = \
2056 test_date_SOURCES = \
2057 src/test/test-date.c
2062 test_sleep_SOURCES = \
2063 src/test/test-sleep.c
2065 test_sleep_LDADD = \
2068 test_replace_var_SOURCES = \
2069 src/test/test-replace-var.c
2071 test_replace_var_LDADD = \
2074 test_calendarspec_SOURCES = \
2075 src/test/test-calendarspec.c
2077 test_calendarspec_LDADD = \
2080 test_strip_tab_ansi_SOURCES = \
2081 src/test/test-strip-tab-ansi.c
2083 test_strip_tab_ansi_LDADD = \
2086 test_daemon_SOURCES = \
2087 src/test/test-daemon.c
2089 test_daemon_LDADD = \
2092 test_cgroup_SOURCES = \
2093 src/test/test-cgroup.c
2095 test_cgroup_LDADD = \
2098 test_cgroup_mask_SOURCES = \
2099 src/test/test-cgroup-mask.c
2101 test_cgroup_mask_CPPFLAGS = \
2105 test_cgroup_mask_CFLAGS = \
2109 test_cgroup_mask_LDADD = \
2112 test_cgroup_util_SOURCES = \
2113 src/test/test-cgroup-util.c
2115 test_cgroup_util_LDADD = \
2118 test_env_replace_SOURCES = \
2119 src/test/test-env-replace.c
2121 test_env_replace_LDADD = \
2124 test_strbuf_SOURCES = \
2125 src/test/test-strbuf.c
2127 test_strbuf_LDADD = \
2130 test_strv_SOURCES = \
2131 src/test/test-strv.c
2136 test_path_util_SOURCES = \
2137 src/test/test-path-util.c
2139 test_path_util_LDADD = \
2142 test_path_SOURCES = \
2143 src/test/test-path.c
2145 test_path_CFLAGS = \
2152 test_execute_SOURCES = \
2153 src/test/test-execute.c
2155 test_execute_CFLAGS = \
2159 test_execute_LDADD = \
2162 test_siphash24_SOURCES = \
2163 src/test/test-siphash24.c
2165 test_siphash24_LDADD = \
2168 test_strxcpyx_SOURCES = \
2169 src/test/test-strxcpyx.c
2171 test_strxcpyx_LDADD = \
2174 test_install_SOURCES = \
2175 src/test/test-install.c
2177 test_install_LDADD = \
2180 test_watchdog_SOURCES = \
2181 src/test/test-watchdog.c
2183 test_watchdog_LDADD = \
2186 test_sched_prio_SOURCES = \
2187 src/test/test-sched-prio.c
2189 test_sched_prio_CPPFLAGS = \
2193 test_sched_prio_CFLAGS = \
2197 test_sched_prio_LDADD = \
2200 test_conf_files_SOURCES = \
2201 src/test/test-conf-files.c
2203 test_conf_files_LDADD = \
2206 test_conf_parser_SOURCES = \
2207 src/test/test-conf-parser.c
2209 test_conf_parser_LDADD = \
2212 test_bus_policy_SOURCES = \
2213 src/bus-proxyd/test-bus-xml-policy.c
2215 test_bus_policy_LDADD = \
2216 libbus-proxy-core.la \
2219 test_af_list_SOURCES = \
2220 src/test/test-af-list.c
2222 test_af_list_LDADD = \
2225 test_arphrd_list_SOURCES = \
2226 src/test/test-arphrd-list.c
2228 test_arphrd_list_LDADD = \
2231 # ------------------------------------------------------------------------------
2232 ## .PHONY so it always rebuilds it
2233 .PHONY: coverage lcov-run lcov-report coverage-sync
2235 # run lcov from scratch, always
2240 coverage_dir = coverage
2241 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2244 # reset run coverage tests
2246 @rm -rf $(coverage_dir)
2247 lcov $(coverage_opts) --zerocounters
2250 # generate report based on current coverage data
2252 $(MKDIR_P) $(coverage_dir)
2253 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2254 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2255 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2256 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2257 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2259 # lcov doesn't work properly with vpath builds, make sure that bad
2260 # output is not uploaded by mistake.
2261 coverage-sync: coverage
2262 test "$(builddir)" = "$(srcdir)"
2263 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2266 lcov-run lcov-report:
2267 echo "Need to reconfigure with --enable-coverage"
2270 # ------------------------------------------------------------------------------
2271 systemd_analyze_SOURCES = \
2272 src/analyze/analyze.c \
2273 src/analyze/analyze-verify.c \
2274 src/analyze/analyze-verify.h
2276 systemd_analyze_CFLAGS = \
2281 systemd_analyze_LDADD = \
2284 # ------------------------------------------------------------------------------
2285 systemd_initctl_SOURCES = \
2286 src/initctl/initctl.c
2288 systemd_initctl_LDADD = \
2291 # ------------------------------------------------------------------------------
2292 systemd_update_utmp_SOURCES = \
2293 src/update-utmp/update-utmp.c
2295 systemd_update_utmp_CFLAGS = \
2299 systemd_update_utmp_LDADD = \
2303 # ------------------------------------------------------------------------------
2304 systemd_update_done_SOURCES = \
2305 src/update-done/update-done.c
2307 systemd_update_done_LDADD = \
2310 # ------------------------------------------------------------------------------
2311 systemd_shutdown_SOURCES = \
2314 src/core/shutdown.c \
2315 src/core/mount-setup.c \
2316 src/core/mount-setup.h \
2317 src/core/killall.h \
2320 systemd_shutdown_LDADD = \
2323 # ------------------------------------------------------------------------------
2325 systemd_modules_load_SOURCES = \
2326 src/modules-load/modules-load.c
2328 systemd_modules_load_CFLAGS = \
2332 systemd_modules_load_LDADD = \
2336 rootlibexec_PROGRAMS += \
2337 systemd-modules-load
2339 nodist_systemunit_DATA += \
2340 units/systemd-modules-load.service
2342 SYSINIT_TARGET_WANTS += \
2343 systemd-modules-load.service
2346 nodist_systemunit_DATA += \
2347 units/kmod-static-nodes.service
2349 SYSINIT_TARGET_WANTS += \
2350 kmod-static-nodes.service
2355 units/systemd-modules-load.service.in \
2356 units/kmod-static-nodes.service.in
2358 # ------------------------------------------------------------------------------
2360 systemd_tmpfiles_SOURCES = \
2361 src/tmpfiles/tmpfiles.c
2363 systemd_tmpfiles_LDADD = \
2366 rootbin_PROGRAMS += \
2369 dist_systemunit_DATA += \
2370 units/systemd-tmpfiles-clean.timer
2372 nodist_systemunit_DATA += \
2373 units/systemd-tmpfiles-setup-dev.service \
2374 units/systemd-tmpfiles-setup.service \
2375 units/systemd-tmpfiles-clean.service
2377 nodist_tmpfiles_DATA = \
2378 tmpfiles.d/systemd.conf \
2381 dist_tmpfiles_DATA = \
2382 tmpfiles.d/systemd-nologin.conf \
2383 tmpfiles.d/tmp.conf \
2384 tmpfiles.d/x11.conf \
2385 tmpfiles.d/var.conf \
2386 tmpfiles.d/home.conf \
2387 tmpfiles.d/systemd-nspawn.conf \
2388 tmpfiles.d/journal-nocow.conf
2391 dist_tmpfiles_DATA += \
2392 tmpfiles.d/legacy.conf
2395 SYSINIT_TARGET_WANTS += \
2396 systemd-tmpfiles-setup-dev.service \
2397 systemd-tmpfiles-setup.service
2399 if ENABLE_ZSH_COMPLETION
2400 dist_zshcompletion_DATA += \
2401 shell-completion/zsh/_systemd-tmpfiles
2404 TIMERS_TARGET_WANTS += \
2405 systemd-tmpfiles-clean.timer
2409 $(sysconfdir)/tmpfiles.d
2413 tmpfiles.d/systemd.conf.m4 \
2414 tmpfiles.d/etc.conf.m4 \
2415 units/systemd-tmpfiles-setup-dev.service.in \
2416 units/systemd-tmpfiles-setup.service.in \
2417 units/systemd-tmpfiles-clean.service.in
2419 # ------------------------------------------------------------------------------
2421 systemd_sysusers_SOURCES = \
2422 src/sysusers/sysusers.c
2424 systemd_sysusers_LDADD = \
2427 rootbin_PROGRAMS += \
2430 nodist_systemunit_DATA += \
2431 units/systemd-sysusers.service
2433 SYSINIT_TARGET_WANTS += \
2434 systemd-sysusers.service
2436 nodist_sysusers_DATA = \
2437 sysusers.d/systemd.conf \
2438 sysusers.d/basic.conf
2441 nodist_sysusers_DATA += \
2442 sysusers.d/systemd-remote.conf
2450 units/systemd-sysusers.service.in \
2451 sysusers.d/systemd.conf.m4 \
2452 sysusers.d/systemd-remote.conf.m4 \
2453 sysusers.d/basic.conf.in
2455 # ------------------------------------------------------------------------------
2456 dist_factory_etc_DATA = \
2457 factory/etc/nsswitch.conf
2460 dist_factory_pam_DATA = \
2461 factory/etc/pam.d/system-auth \
2462 factory/etc/pam.d/other
2465 # ------------------------------------------------------------------------------
2467 systemd_firstboot_SOURCES = \
2468 src/firstboot/firstboot.c
2470 systemd_firstboot_LDADD = \
2474 rootbin_PROGRAMS += \
2477 nodist_systemunit_DATA += \
2478 units/systemd-firstboot.service
2480 SYSINIT_TARGET_WANTS += \
2481 systemd-firstboot.service
2485 units/systemd-firstboot.service.in
2487 # ------------------------------------------------------------------------------
2488 systemd_machine_id_setup_SOURCES = \
2489 src/machine-id-setup/machine-id-setup-main.c \
2490 src/core/machine-id-setup.c \
2491 src/core/machine-id-setup.h
2493 systemd_machine_id_setup_LDADD = \
2496 SYSINIT_TARGET_WANTS += \
2497 systemd-machine-id-commit.service
2499 # ------------------------------------------------------------------------------
2500 systemd_sysctl_SOURCES = \
2503 systemd_sysctl_LDADD = \
2506 # ------------------------------------------------------------------------------
2507 systemd_sleep_SOURCES = \
2510 systemd_sleep_LDADD = \
2513 # ------------------------------------------------------------------------------
2514 systemd_fsck_SOURCES = \
2517 systemd_fsck_LDADD = \
2520 # ------------------------------------------------------------------------------
2521 systemd_ac_power_SOURCES = \
2522 src/ac-power/ac-power.c
2524 systemd_ac_power_LDADD = \
2527 # ------------------------------------------------------------------------------
2528 systemd_detect_virt_SOURCES = \
2529 src/detect-virt/detect-virt.c
2531 systemd_detect_virt_LDADD = \
2534 INSTALL_EXEC_HOOKS += \
2535 systemd-detect-virt-install-hook
2537 # ------------------------------------------------------------------------------
2538 systemd_delta_SOURCES = \
2541 systemd_delta_LDADD = \
2544 # ------------------------------------------------------------------------------
2545 systemd_getty_generator_SOURCES = \
2546 src/getty-generator/getty-generator.c
2548 systemd_getty_generator_LDADD = \
2551 # ------------------------------------------------------------------------------
2552 systemd_debug_generator_SOURCES = \
2553 src/debug-generator/debug-generator.c
2555 systemd_debug_generator_LDADD = \
2558 # ------------------------------------------------------------------------------
2559 systemd_fstab_generator_SOURCES = \
2560 src/fstab-generator/fstab-generator.c \
2561 src/core/mount-setup.c
2563 systemd_fstab_generator_LDADD = \
2566 # ------------------------------------------------------------------------------
2567 systemd_system_update_generator_SOURCES = \
2568 src/system-update-generator/system-update-generator.c
2570 systemd_system_update_generator_LDADD = \
2573 # ------------------------------------------------------------------------------
2575 systemgenerator_PROGRAMS += \
2576 systemd-hibernate-resume-generator
2578 rootlibexec_PROGRAMS += \
2579 systemd-hibernate-resume
2581 systemd_hibernate_resume_SOURCES = \
2582 src/hibernate-resume/hibernate-resume.c
2584 systemd_hibernate_resume_LDADD = \
2587 systemd_hibernate_resume_generator_SOURCES = \
2588 src/hibernate-resume/hibernate-resume-generator.c
2590 systemd_hibernate_resume_generator_LDADD = \
2593 dist_systemunit_DATA += \
2594 units/hibernate.target \
2595 units/hybrid-sleep.target
2597 nodist_systemunit_DATA += \
2598 units/systemd-hibernate.service \
2599 units/systemd-hibernate-resume@.service \
2600 units/systemd-hybrid-sleep.service
2604 units/systemd-hibernate.service.in \
2605 units/systemd-hibernate-resume@.service.in \
2606 units/systemd-hybrid-sleep.service.in
2608 # ------------------------------------------------------------------------------
2614 bootctl_CPPFLAGS = \
2616 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2617 -DBOOTLIBDIR=\"$(bootlibdir)\"
2630 if ENABLE_BASH_COMPLETION
2631 dist_bashcompletion_DATA += \
2632 shell-completion/bash/bootctl
2635 if ENABLE_ZSH_COMPLETION
2636 dist_zshcompletion_DATA += \
2637 shell-completion/zsh/_bootctl
2641 # ------------------------------------------------------------------------------
2645 -I$(top_builddir) -include config.h \
2646 -I$(EFI_INC_DIR)/efi \
2647 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2648 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2661 -fno-strict-aliasing \
2662 -fno-stack-protector \
2664 -Wno-missing-field-initializers
2671 -DEFI_FUNCTION_WRAPPER \
2672 -DGNU_EFI_USE_MS_ABI
2683 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2689 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2691 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2692 # and add required symbols manually.
2694 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2695 EFI_FORMAT = -O binary
2697 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2702 # ------------------------------------------------------------------------------
2703 systemd_boot_headers = \
2704 src/boot/efi/util.h \
2705 src/boot/efi/console.h \
2706 src/boot/efi/graphics.h \
2707 src/boot/efi/pefile.h \
2710 systemd_boot_sources = \
2711 src/boot/efi/util.c \
2712 src/boot/efi/console.c \
2713 src/boot/efi/graphics.c \
2714 src/boot/efi/pefile.c \
2715 src/boot/efi/disk.c \
2718 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2722 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2723 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2724 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2726 bootlib_DATA = $(systemd_boot)
2727 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2729 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2730 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2731 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2733 $(systemd_boot_solib): $(systemd_boot_objects)
2734 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2735 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2736 nm -D -u $@ | grep ' U ' && exit 1 || :
2738 $(systemd_boot): $(systemd_boot_solib)
2739 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2740 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2744 # ------------------------------------------------------------------------------
2746 src/boot/efi/util.h \
2747 src/boot/efi/pefile.h \
2748 src/boot/efi/disk.h \
2749 src/boot/efi/graphics.h \
2750 src/boot/efi/splash.h \
2751 src/boot/efi/linux.h
2754 src/boot/efi/util.c \
2755 src/boot/efi/pefile.c \
2756 src/boot/efi/disk.c \
2757 src/boot/efi/graphics.c \
2758 src/boot/efi/splash.c \
2759 src/boot/efi/linux.c \
2769 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2770 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2771 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2773 bootlib_DATA += $(stub)
2774 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2776 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2777 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2778 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2780 $(stub_solib): $(stub_objects)
2781 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2782 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2783 nm -D -u $@ | grep ' U ' && exit 1 || :
2785 $(stub): $(stub_solib)
2786 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2787 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2789 # ------------------------------------------------------------------------------
2790 CLEANFILES += test-efi-disk.img
2792 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2793 $(AM_V_GEN)test/test-efi-create-disk.sh
2795 test-efi: test-efi-disk.img
2796 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2800 EXTRA_DIST += test/test-efi-create-disk.sh
2802 # ------------------------------------------------------------------------------
2804 systemgenerator_PROGRAMS += \
2805 systemd-gpt-auto-generator
2807 systemd_gpt_auto_generator_SOURCES = \
2808 src/gpt-auto-generator/gpt-auto-generator.c \
2809 src/basic/blkid-util.h
2811 systemd_gpt_auto_generator_LDADD = \
2815 systemd_gpt_auto_generator_CFLAGS = \
2820 # ------------------------------------------------------------------------------
2821 systemgenerator_PROGRAMS += \
2822 systemd-dbus1-generator
2824 systemd_dbus1_generator_SOURCES = \
2825 src/dbus1-generator/dbus1-generator.c
2827 systemd_dbus1_generator_LDADD = \
2830 dbus1-generator-install-hook:
2831 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2832 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2833 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2835 dbus1-generator-uninstall-hook:
2836 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2838 dist_xinitrc_SCRIPTS = \
2839 xorg/50-systemd-user.sh
2841 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2842 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2844 # ------------------------------------------------------------------------------
2845 systemd_sysv_generator_SOURCES = \
2846 src/sysv-generator/sysv-generator.c
2848 systemd_sysv_generator_LDADD = \
2851 # ------------------------------------------------------------------------------
2852 systemd_rc_local_generator_SOURCES = \
2853 src/rc-local-generator/rc-local-generator.c
2855 systemd_rc_local_generator_LDADD = \
2858 # ------------------------------------------------------------------------------
2859 systemd_remount_fs_SOURCES = \
2860 src/remount-fs/remount-fs.c \
2861 src/core/mount-setup.c \
2862 src/core/mount-setup.h
2864 systemd_remount_fs_LDADD = \
2867 # ------------------------------------------------------------------------------
2868 systemd_cgroups_agent_SOURCES = \
2869 src/cgroups-agent/cgroups-agent.c
2871 systemd_cgroups_agent_LDADD = \
2874 # ------------------------------------------------------------------------------
2875 systemd_escape_SOURCES = \
2878 systemd_escape_LDADD = \
2881 # -----------------------------------------------------------------------------
2882 systemctl_SOURCES = \
2883 src/systemctl/systemctl.c
2888 # ------------------------------------------------------------------------------
2889 systemd_notify_SOURCES = \
2892 systemd_notify_LDADD = \
2895 # ------------------------------------------------------------------------------
2896 systemd_path_SOURCES = \
2899 systemd_path_LDADD = \
2902 # ------------------------------------------------------------------------------
2903 systemd_ask_password_SOURCES = \
2904 src/ask-password/ask-password.c
2906 systemd_ask_password_LDADD = \
2909 # ------------------------------------------------------------------------------
2910 systemd_reply_password_SOURCES = \
2911 src/reply-password/reply-password.c
2913 systemd_reply_password_LDADD = \
2916 # ------------------------------------------------------------------------------
2917 systemd_cgls_SOURCES = \
2920 systemd_cgls_LDADD = \
2923 # ------------------------------------------------------------------------------
2924 systemd_cgtop_SOURCES = \
2927 systemd_cgtop_LDADD = \
2930 # ------------------------------------------------------------------------------
2931 systemd_nspawn_SOURCES = \
2932 src/nspawn/nspawn.c \
2933 src/nspawn/nspawn-settings.c \
2934 src/nspawn/nspawn-settings.h \
2935 src/nspawn/nspawn-mount.c \
2936 src/nspawn/nspawn-mount.h \
2937 src/nspawn/nspawn-network.c \
2938 src/nspawn/nspawn-network.h \
2939 src/nspawn/nspawn-expose-ports.c \
2940 src/nspawn/nspawn-expose-ports.h \
2941 src/nspawn/nspawn-cgroup.c \
2942 src/nspawn/nspawn-cgroup.h \
2943 src/nspawn/nspawn-register.c \
2944 src/nspawn/nspawn-register.h \
2945 src/nspawn/nspawn-setuid.c \
2946 src/nspawn/nspawn-setuid.h \
2947 src/nspawn/nspawn-stub-pid1.c \
2948 src/nspawn/nspawn-stub-pid1.h \
2949 src/core/mount-setup.c \
2950 src/core/mount-setup.h \
2951 src/core/loopback-setup.c \
2952 src/core/loopback-setup.h
2954 nodist_systemd_nspawn_SOURCES = \
2955 src/nspawn/nspawn-gperf.c
2957 gperf_gperf_sources += \
2958 src/nspawn/nspawn-gperf.gperf
2960 systemd_nspawn_CFLAGS = \
2965 systemd_nspawn_LDADD = \
2970 systemd_nspawn_LDADD += \
2974 # ------------------------------------------------------------------------------
2975 systemd_run_SOURCES = \
2978 systemd_run_LDADD = \
2981 # ------------------------------------------------------------------------------
2982 noinst_LTLIBRARIES += \
2983 libbus-proxy-core.la
2985 libbus_proxy_core_la_SOURCES = \
2986 src/bus-proxyd/bus-xml-policy.c \
2987 src/bus-proxyd/bus-xml-policy.h \
2988 src/bus-proxyd/driver.c \
2989 src/bus-proxyd/driver.h \
2990 src/bus-proxyd/proxy.c \
2991 src/bus-proxyd/proxy.h \
2992 src/bus-proxyd/synthesize.c \
2993 src/bus-proxyd/synthesize.h
2995 libbus_proxy_core_la_LIBADD = \
2998 systemd_bus_proxyd_SOURCES = \
2999 src/bus-proxyd/bus-proxyd.c
3001 systemd_bus_proxyd_LDADD = \
3002 libbus-proxy-core.la \
3005 systemd_stdio_bridge_SOURCES = \
3006 src/bus-proxyd/stdio-bridge.c
3008 systemd_stdio_bridge_LDADD = \
3009 libbus-proxy-core.la \
3012 nodist_systemunit_DATA += \
3013 units/systemd-bus-proxyd.service
3015 dist_systemunit_DATA += \
3016 units/systemd-bus-proxyd.socket
3018 nodist_userunit_DATA += \
3019 units/user/systemd-bus-proxyd.service
3021 dist_userunit_DATA += \
3022 units/user/systemd-bus-proxyd.socket
3025 units/systemd-bus-proxyd.service.m4.in \
3026 units/user/systemd-bus-proxyd.service.in
3029 bus-proxyd-set-cap-hook:
3030 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
3032 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
3035 # ------------------------------------------------------------------------------
3036 systemd_tty_ask_password_agent_SOURCES = \
3037 src/tty-ask-password-agent/tty-ask-password-agent.c
3039 systemd_tty_ask_password_agent_LDADD = \
3042 # ------------------------------------------------------------------------------
3043 libsystemd_internal_la_SOURCES = \
3044 src/systemd/sd-bus.h \
3045 src/systemd/sd-bus-protocol.h \
3046 src/systemd/sd-bus-vtable.h \
3047 src/systemd/sd-utf8.h \
3048 src/systemd/sd-event.h \
3049 src/systemd/sd-netlink.h \
3050 src/systemd/sd-resolve.h \
3051 src/systemd/sd-login.h \
3052 src/systemd/sd-id128.h \
3053 src/systemd/sd-daemon.h \
3054 src/systemd/sd-path.h \
3055 src/systemd/sd-network.h \
3056 src/systemd/sd-hwdb.h \
3057 src/systemd/sd-device.h \
3058 src/libsystemd/libsystemd.sym \
3059 src/libsystemd/sd-bus/sd-bus.c \
3060 src/libsystemd/sd-bus/bus-control.c \
3061 src/libsystemd/sd-bus/bus-control.h \
3062 src/libsystemd/sd-bus/bus-error.c \
3063 src/libsystemd/sd-bus/bus-error.h \
3064 src/libsystemd/sd-bus/bus-common-errors.h \
3065 src/libsystemd/sd-bus/bus-common-errors.c \
3066 src/libsystemd/sd-bus/bus-internal.c \
3067 src/libsystemd/sd-bus/bus-internal.h \
3068 src/libsystemd/sd-bus/bus-socket.c \
3069 src/libsystemd/sd-bus/bus-socket.h \
3070 src/libsystemd/sd-bus/bus-kernel.c \
3071 src/libsystemd/sd-bus/bus-kernel.h \
3072 src/libsystemd/sd-bus/bus-container.c \
3073 src/libsystemd/sd-bus/bus-container.h \
3074 src/libsystemd/sd-bus/bus-message.c \
3075 src/libsystemd/sd-bus/bus-message.h \
3076 src/libsystemd/sd-bus/bus-creds.c \
3077 src/libsystemd/sd-bus/bus-creds.h \
3078 src/libsystemd/sd-bus/bus-signature.c \
3079 src/libsystemd/sd-bus/bus-signature.h \
3080 src/libsystemd/sd-bus/bus-type.c \
3081 src/libsystemd/sd-bus/bus-type.h \
3082 src/libsystemd/sd-bus/bus-match.c \
3083 src/libsystemd/sd-bus/bus-match.h \
3084 src/libsystemd/sd-bus/bus-bloom.c \
3085 src/libsystemd/sd-bus/bus-bloom.h \
3086 src/libsystemd/sd-bus/bus-introspect.c \
3087 src/libsystemd/sd-bus/bus-introspect.h \
3088 src/libsystemd/sd-bus/bus-objects.c \
3089 src/libsystemd/sd-bus/bus-objects.h \
3090 src/libsystemd/sd-bus/bus-gvariant.c \
3091 src/libsystemd/sd-bus/bus-gvariant.h \
3092 src/libsystemd/sd-bus/bus-convenience.c \
3093 src/libsystemd/sd-bus/bus-track.c \
3094 src/libsystemd/sd-bus/bus-track.h \
3095 src/libsystemd/sd-bus/bus-slot.c \
3096 src/libsystemd/sd-bus/bus-slot.h \
3097 src/libsystemd/sd-bus/bus-protocol.h \
3098 src/libsystemd/sd-bus/kdbus.h \
3099 src/libsystemd/sd-bus/bus-dump.c \
3100 src/libsystemd/sd-bus/bus-dump.h \
3101 src/libsystemd/sd-utf8/sd-utf8.c \
3102 src/libsystemd/sd-event/sd-event.c \
3103 src/libsystemd/sd-netlink/sd-netlink.c \
3104 src/libsystemd/sd-netlink/netlink-internal.h \
3105 src/libsystemd/sd-netlink/netlink-message.c \
3106 src/libsystemd/sd-netlink/netlink-socket.c \
3107 src/libsystemd/sd-netlink/rtnl-message.c \
3108 src/libsystemd/sd-netlink/netlink-types.h \
3109 src/libsystemd/sd-netlink/netlink-types.c \
3110 src/libsystemd/sd-netlink/netlink-util.h \
3111 src/libsystemd/sd-netlink/netlink-util.c \
3112 src/libsystemd/sd-netlink/local-addresses.h \
3113 src/libsystemd/sd-netlink/local-addresses.c \
3114 src/libsystemd/sd-id128/sd-id128.c \
3115 src/libsystemd/sd-daemon/sd-daemon.c \
3116 src/libsystemd/sd-login/sd-login.c \
3117 src/libsystemd/sd-path/sd-path.c \
3118 src/libsystemd/sd-network/sd-network.c \
3119 src/libsystemd/sd-network/network-util.h \
3120 src/libsystemd/sd-network/network-util.c \
3121 src/libsystemd/sd-hwdb/sd-hwdb.c \
3122 src/libsystemd/sd-hwdb/hwdb-util.h \
3123 src/libsystemd/sd-hwdb/hwdb-internal.h \
3124 src/libsystemd/sd-device/device-internal.h \
3125 src/libsystemd/sd-device/device-util.h \
3126 src/libsystemd/sd-device/device-enumerator.c \
3127 src/libsystemd/sd-device/device-enumerator-private.h \
3128 src/libsystemd/sd-device/sd-device.c \
3129 src/libsystemd/sd-device/device-private.c \
3130 src/libsystemd/sd-device/device-private.h \
3131 src/libsystemd/sd-resolve/sd-resolve.c
3133 libsystemd_internal_la_LIBADD = \
3137 noinst_LTLIBRARIES += \
3138 libsystemd-internal.la
3141 src/libsystemd/libsystemd.pc.in \
3142 src/libsystemd/sd-bus/DIFFERENCES \
3143 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3145 libsystemd_la_SOURCES = \
3146 $(libsystemd_internal_la_SOURCES) \
3147 $(libsystemd_journal_internal_la_SOURCES)
3149 nodist_libsystemd_la_SOURCES = \
3150 $(nodist_libsystemd_internal_la_SOURCES)
3152 libsystemd_la_CFLAGS = \
3153 $(libsystemd_internal_la_CFLAGS) \
3154 $(libsystemd_journal_internal_la_CFLAGS)
3156 libsystemd_la_LDFLAGS = \
3158 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3159 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3161 libsystemd_la_LIBADD = \
3162 $(libsystemd_internal_la_LIBADD) \
3163 $(libsystemd_journal_internal_la_LIBADD)
3165 libsystemd-install-hook:
3166 libname=libsystemd.so && $(move-to-rootlibdir)
3168 libsystemd-uninstall-hook:
3169 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3171 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3172 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3174 pkgconfiglib_DATA += \
3175 src/libsystemd/libsystemd.pc
3177 pkginclude_HEADERS += \
3178 src/systemd/sd-bus.h \
3179 src/systemd/sd-bus-protocol.h \
3180 src/systemd/sd-bus-vtable.h \
3181 src/systemd/sd-event.h \
3182 src/systemd/sd-login.h \
3183 src/systemd/sd-id128.h \
3184 src/systemd/sd-daemon.h
3186 lib_LTLIBRARIES += \
3191 test-bus-signature \
3192 test-bus-benchmark \
3199 test-bus-kernel-bloom \
3200 test-bus-zero-copy \
3201 test-bus-introspect \
3208 test-local-addresses \
3214 test_bus_marshal_SOURCES = \
3215 src/libsystemd/sd-bus/test-bus-marshal.c
3217 test_bus_marshal_LDADD = \
3222 test_bus_marshal_CFLAGS = \
3227 test_bus_signature_SOURCES = \
3228 src/libsystemd/sd-bus/test-bus-signature.c
3230 test_bus_signature_LDADD = \
3233 test_bus_chat_SOURCES = \
3234 src/libsystemd/sd-bus/test-bus-chat.c
3236 test_bus_chat_LDADD = \
3239 test_bus_cleanup_SOURCES = \
3240 src/libsystemd/sd-bus/test-bus-cleanup.c
3242 test_bus_cleanup_CFLAGS = \
3246 test_bus_cleanup_LDADD = \
3249 test_bus_server_SOURCES = \
3250 src/libsystemd/sd-bus/test-bus-server.c
3252 test_bus_server_LDADD = \
3255 test_bus_objects_SOURCES = \
3256 src/libsystemd/sd-bus/test-bus-objects.c
3258 test_bus_objects_LDADD = \
3261 test_bus_error_SOURCES = \
3262 src/libsystemd/sd-bus/test-bus-error.c
3264 test_bus_error_LDADD = \
3267 test_bus_gvariant_SOURCES = \
3268 src/libsystemd/sd-bus/test-bus-gvariant.c
3270 test_bus_gvariant_LDADD = \
3274 test_bus_gvariant_CFLAGS = \
3278 test_bus_creds_SOURCES = \
3279 src/libsystemd/sd-bus/test-bus-creds.c
3281 test_bus_creds_LDADD = \
3284 test_bus_match_SOURCES = \
3285 src/libsystemd/sd-bus/test-bus-match.c
3287 test_bus_match_LDADD = \
3290 test_bus_proxy_SOURCES = \
3291 src/libsystemd/sd-bus/test-bus-proxy.c
3293 test_bus_proxy_LDADD = \
3296 test_bus_kernel_SOURCES = \
3297 src/libsystemd/sd-bus/test-bus-kernel.c
3299 test_bus_kernel_LDADD = \
3302 test_bus_kernel_bloom_SOURCES = \
3303 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3305 test_bus_kernel_bloom_LDADD = \
3308 test_bus_benchmark_SOURCES = \
3309 src/libsystemd/sd-bus/test-bus-benchmark.c
3311 test_bus_benchmark_LDADD = \
3314 test_bus_zero_copy_SOURCES = \
3315 src/libsystemd/sd-bus/test-bus-zero-copy.c
3317 test_bus_zero_copy_LDADD = \
3320 test_bus_introspect_SOURCES = \
3321 src/libsystemd/sd-bus/test-bus-introspect.c
3323 test_bus_introspect_LDADD = \
3326 test_event_SOURCES = \
3327 src/libsystemd/sd-event/test-event.c
3329 test_event_LDADD = \
3332 test_netlink_SOURCES = \
3333 src/libsystemd/sd-netlink/test-netlink.c
3335 test_netlink_LDADD = \
3338 test_local_addresses_SOURCES = \
3339 src/libsystemd/sd-netlink/test-local-addresses.c
3341 test_local_addresses_LDADD = \
3344 test_resolve_SOURCES = \
3345 src/libsystemd/sd-resolve/test-resolve.c
3347 test_resolve_LDADD = \
3351 src/libsystemd/sd-bus/busctl.c \
3352 src/libsystemd/sd-bus/busctl-introspect.c \
3353 src/libsystemd/sd-bus/busctl-introspect.h
3358 # ------------------------------------------------------------------------------
3359 noinst_LTLIBRARIES += \
3360 libsystemd-network.la
3362 libsystemd_network_la_CFLAGS = \
3366 libsystemd_network_la_SOURCES = \
3367 src/systemd/sd-dhcp-client.h \
3368 src/systemd/sd-dhcp-server.h \
3369 src/systemd/sd-dhcp-lease.h \
3370 src/systemd/sd-ipv4ll.h \
3371 src/systemd/sd-ipv4acd.h \
3372 src/systemd/sd-ndisc.h \
3373 src/systemd/sd-dhcp6-client.h \
3374 src/systemd/sd-dhcp6-lease.h \
3375 src/systemd/sd-lldp.h \
3376 src/libsystemd-network/sd-dhcp-client.c \
3377 src/libsystemd-network/sd-dhcp-server.c \
3378 src/libsystemd-network/dhcp-network.c \
3379 src/libsystemd-network/dhcp-option.c \
3380 src/libsystemd-network/dhcp-packet.c \
3381 src/libsystemd-network/dhcp-internal.h \
3382 src/libsystemd-network/dhcp-server-internal.h \
3383 src/libsystemd-network/dhcp-protocol.h \
3384 src/libsystemd-network/dhcp-lease-internal.h \
3385 src/libsystemd-network/sd-dhcp-lease.c \
3386 src/libsystemd-network/sd-ipv4ll.c \
3387 src/libsystemd-network/sd-ipv4acd.c \
3388 src/libsystemd-network/arp-util.h \
3389 src/libsystemd-network/arp-util.c \
3390 src/libsystemd-network/network-internal.c \
3391 src/libsystemd-network/network-internal.h \
3392 src/libsystemd-network/sd-ndisc.c \
3393 src/libsystemd-network/icmp6-util.h \
3394 src/libsystemd-network/icmp6-util.c \
3395 src/libsystemd-network/sd-dhcp6-client.c \
3396 src/libsystemd-network/dhcp6-internal.h \
3397 src/libsystemd-network/dhcp6-protocol.h \
3398 src/libsystemd-network/dhcp6-network.c \
3399 src/libsystemd-network/dhcp6-option.c \
3400 src/libsystemd-network/dhcp6-lease-internal.h \
3401 src/libsystemd-network/sd-dhcp6-lease.c \
3402 src/libsystemd-network/dhcp-identifier.h \
3403 src/libsystemd-network/dhcp-identifier.c \
3404 src/libsystemd-network/lldp.h \
3405 src/libsystemd-network/lldp-tlv.h \
3406 src/libsystemd-network/lldp-tlv.c \
3407 src/libsystemd-network/lldp-network.h \
3408 src/libsystemd-network/lldp-network.c \
3409 src/libsystemd-network/lldp-port.h \
3410 src/libsystemd-network/lldp-port.c \
3411 src/libsystemd-network/lldp-internal.h \
3412 src/libsystemd-network/lldp-internal.c \
3413 src/libsystemd-network/sd-lldp.c
3415 libsystemd_network_la_LIBADD = \
3418 test_dhcp_option_SOURCES = \
3419 src/libsystemd-network/dhcp-protocol.h \
3420 src/libsystemd-network/dhcp-internal.h \
3421 src/libsystemd-network/test-dhcp-option.c
3423 test_dhcp_option_LDADD = \
3424 libsystemd-network.la \
3427 test_dhcp_client_SOURCES = \
3428 src/systemd/sd-dhcp-client.h \
3429 src/libsystemd-network/dhcp-protocol.h \
3430 src/libsystemd-network/dhcp-internal.h \
3431 src/libsystemd-network/test-dhcp-client.c
3433 test_dhcp_client_LDADD = \
3434 libsystemd-network.la \
3437 test_dhcp_server_SOURCES = \
3438 src/libsystemd-network/test-dhcp-server.c
3440 test_dhcp_server_LDADD = \
3441 libsystemd-network.la \
3444 test_ipv4ll_SOURCES = \
3445 src/systemd/sd-ipv4ll.h \
3446 src/libsystemd-network/arp-util.h \
3447 src/libsystemd-network/test-ipv4ll.c
3449 test_ipv4ll_LDADD = \
3450 libsystemd-network.la \
3453 test_ipv4ll_manual_SOURCES = \
3454 src/systemd/sd-ipv4ll.h \
3455 src/libsystemd-network/test-ipv4ll-manual.c
3457 test_ipv4ll_manual_LDADD = \
3458 libsystemd-network.la \
3461 test_acd_SOURCES = \
3462 src/systemd/sd-ipv4acd.h \
3463 src/libsystemd-network/test-acd.c
3466 libsystemd-network.la \
3469 test_ndisc_rs_SOURCES = \
3470 src/systemd/sd-dhcp6-client.h \
3471 src/systemd/sd-ndisc.h \
3472 src/libsystemd-network/icmp6-util.h \
3473 src/libsystemd-network/test-ndisc-rs.c \
3474 src/libsystemd-network/dhcp-identifier.h \
3475 src/libsystemd-network/dhcp-identifier.c
3477 test_ndisc_rs_LDADD = \
3478 libsystemd-network.la \
3482 test_dhcp6_client_SOURCES = \
3483 src/systemd/sd-dhcp6-client.h \
3484 src/libsystemd-network/dhcp6-internal.h \
3485 src/libsystemd-network/test-dhcp6-client.c \
3486 src/libsystemd-network/dhcp-identifier.h \
3487 src/libsystemd-network/dhcp-identifier.c
3489 test_dhcp6_client_LDADD = \
3490 libsystemd-network.la \
3494 test_lldp_SOURCES = \
3495 src/libsystemd-network/lldp.h \
3496 src/libsystemd-network/lldp-tlv.h \
3497 src/libsystemd-network/lldp-tlv.c \
3498 src/libsystemd-network/test-lldp.c
3501 libsystemd-network.la \
3513 # ------------------------------------------------------------------------------
3514 include_HEADERS += \
3515 src/libudev/libudev.h
3517 lib_LTLIBRARIES += \
3520 libudev_la_SOURCES =\
3521 src/libudev/libudev.sym \
3522 src/libudev/libudev-private.h \
3523 src/libudev/libudev-device-internal.h \
3524 src/libudev/libudev.c \
3525 src/libudev/libudev-list.c \
3526 src/libudev/libudev-util.c \
3527 src/libudev/libudev-device.c \
3528 src/libudev/libudev-device-private.c \
3529 src/libudev/libudev-enumerate.c \
3530 src/libudev/libudev-monitor.c \
3531 src/libudev/libudev-queue.c \
3532 src/libudev/libudev-hwdb.c
3534 libudev_la_LDFLAGS = \
3536 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3537 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3539 libudev_la_LIBADD = \
3540 libsystemd-internal.la
3542 pkgconfiglib_DATA += \
3543 src/libudev/libudev.pc
3546 src/libudev/libudev.pc.in
3548 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3549 libudev-install-hook:
3550 libname=libudev.so && $(move-to-rootlibdir)
3552 libudev-uninstall-hook:
3553 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3555 INSTALL_EXEC_HOOKS += libudev-install-hook
3556 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3558 # ------------------------------------------------------------------------------
3559 noinst_LTLIBRARIES += \
3562 libudev_internal_la_SOURCES =\
3563 $(libudev_la_SOURCES)
3565 # ------------------------------------------------------------------------------
3567 $(sysconfdir)/udev/rules.d
3569 dist_network_DATA = \
3570 network/99-default.link \
3571 network/80-container-host0.network \
3572 network/80-container-ve.network
3574 dist_udevrules_DATA += \
3575 rules/50-udev-default.rules \
3576 rules/60-block.rules \
3577 rules/60-drm.rules \
3578 rules/60-evdev.rules \
3579 rules/60-persistent-storage-tape.rules \
3580 rules/60-persistent-input.rules \
3581 rules/60-persistent-alsa.rules \
3582 rules/60-persistent-storage.rules \
3583 rules/60-serial.rules \
3584 rules/64-btrfs.rules \
3585 rules/70-mouse.rules \
3586 rules/75-net-description.rules \
3587 rules/78-sound-card.rules \
3588 rules/80-net-setup-link.rules
3590 nodist_udevrules_DATA += \
3591 rules/99-systemd.rules
3593 udevconfdir = $(sysconfdir)/udev
3594 dist_udevconf_DATA = \
3597 pkgconfigdata_DATA += \
3601 rules/99-systemd.rules.in \
3605 units/systemd-udevd.service.in \
3606 units/systemd-udev-trigger.service.in \
3607 units/systemd-udev-settle.service.in
3609 SOCKETS_TARGET_WANTS += \
3610 systemd-udevd-control.socket \
3611 systemd-udevd-kernel.socket
3613 SYSINIT_TARGET_WANTS += \
3614 systemd-udevd.service \
3615 systemd-udev-trigger.service
3617 rootbin_PROGRAMS += \
3620 rootlibexec_PROGRAMS += \
3623 noinst_LTLIBRARIES += \
3626 src/udev/keyboard-keys-list.txt:
3627 $(AM_V_at)$(MKDIR_P) $(dir $@)
3628 $(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 } }' > $@
3630 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3631 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3633 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3634 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3636 gperf_txt_sources += \
3637 src/udev/keyboard-keys-list.txt
3639 libudev_core_la_SOURCES = \
3641 src/udev/udev-event.c \
3642 src/udev/udev-watch.c \
3643 src/udev/udev-node.c \
3644 src/udev/udev-rules.c \
3645 src/udev/udev-ctrl.c \
3646 src/udev/udev-builtin.c \
3647 src/udev/udev-builtin-btrfs.c \
3648 src/udev/udev-builtin-hwdb.c \
3649 src/udev/udev-builtin-input_id.c \
3650 src/udev/udev-builtin-keyboard.c \
3651 src/udev/udev-builtin-net_id.c \
3652 src/udev/udev-builtin-net_setup_link.c \
3653 src/udev/udev-builtin-path_id.c \
3654 src/udev/udev-builtin-usb_id.c \
3655 src/udev/net/link-config.h \
3656 src/udev/net/link-config.c \
3657 src/udev/net/ethtool-util.h \
3658 src/udev/net/ethtool-util.c
3660 nodist_libudev_core_la_SOURCES = \
3661 src/udev/keyboard-keys-from-name.h \
3662 src/udev/net/link-config-gperf.c
3664 gperf_gperf_sources += \
3665 src/udev/net/link-config-gperf.gperf
3667 libudev_core_la_CFLAGS = \
3672 libudev_core_la_LIBADD = \
3673 libsystemd-network.la \
3679 libudev_core_la_SOURCES += \
3680 src/udev/udev-builtin-kmod.c
3682 dist_udevrules_DATA += \
3683 rules/80-drivers.rules
3687 libudev_core_la_SOURCES += \
3688 src/udev/udev-builtin-blkid.c
3692 libudev_core_la_SOURCES += \
3693 src/udev/udev-builtin-uaccess.c \
3694 src/login/logind-acl.c \
3695 src/libsystemd/sd-login/sd-login.c \
3696 src/systemd/sd-login.h
3699 systemd_udevd_SOURCES = \
3702 systemd_udevd_LDADD = \
3706 src/udev/udevadm.c \
3707 src/udev/udevadm-info.c \
3708 src/udev/udevadm-control.c \
3709 src/udev/udevadm-monitor.c \
3710 src/udev/udevadm-hwdb.c \
3711 src/udev/udevadm-settle.c \
3712 src/udev/udevadm-trigger.c \
3713 src/udev/udevadm-test.c \
3714 src/udev/udevadm-test-builtin.c \
3715 src/udev/udevadm-util.c \
3716 src/udev/udevadm-util.h
3721 # ------------------------------------------------------------------------------
3724 $(sysconfdir)/udev/hwdb.d
3726 systemd_hwdb_SOURCES = \
3727 src/libsystemd/sd-hwdb/hwdb-internal.h \
3730 systemd_hwdb_LDADD = \
3733 rootbin_PROGRAMS += \
3736 dist_udevhwdb_DATA = \
3737 hwdb/20-pci-vendor-model.hwdb \
3738 hwdb/20-pci-classes.hwdb \
3739 hwdb/20-usb-vendor-model.hwdb \
3740 hwdb/20-usb-classes.hwdb \
3741 hwdb/20-sdio-vendor-model.hwdb \
3742 hwdb/20-sdio-classes.hwdb \
3743 hwdb/20-bluetooth-vendor-product.hwdb \
3744 hwdb/20-acpi-vendor.hwdb \
3746 hwdb/20-net-ifname.hwdb \
3747 hwdb/60-evdev.hwdb \
3748 hwdb/60-keyboard.hwdb \
3749 hwdb/70-mouse.hwdb \
3750 hwdb/70-pointingstick.hwdb
3752 SYSINIT_TARGET_WANTS += \
3753 systemd-hwdb-update.service
3755 # Update hwdb on installation. Do not bother if installing
3756 # in DESTDIR, since this is likely for packaging purposes.
3758 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3760 INSTALL_DATA_HOOKS += \
3764 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3768 units/systemd-hwdb-update.service.in \
3769 hwdb/ids-update.pl \
3772 # ------------------------------------------------------------------------------
3779 test/rule-syntax-check.py
3783 test/sysv-generator-test.py
3792 test_libudev_SOURCES = \
3793 src/test/test-libudev.c
3795 test_libudev_LDADD = \
3798 test_udev_SOURCES = \
3799 src/test/test-udev.c
3811 # packed sysfs test tree
3813 $(AM_V_at)$(MKDIR_P) $(dir $@)
3814 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3818 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3823 test/rule-syntax-check.py \
3824 test/sysv-generator-test.py \
3827 # ------------------------------------------------------------------------------
3829 src/udev/ata_id/ata_id.c
3834 udevlibexec_PROGRAMS += \
3837 # ------------------------------------------------------------------------------
3838 cdrom_id_SOURCES = \
3839 src/udev/cdrom_id/cdrom_id.c
3844 udevlibexec_PROGRAMS += \
3847 dist_udevrules_DATA += \
3848 rules/60-cdrom_id.rules
3850 # ------------------------------------------------------------------------------
3852 src/udev/collect/collect.c
3857 udevlibexec_PROGRAMS += \
3860 # ------------------------------------------------------------------------------
3862 src/udev/scsi_id/scsi_id.c \
3863 src/udev/scsi_id/scsi_serial.c \
3864 src/udev/scsi_id/scsi.h \
3865 src/udev/scsi_id/scsi_id.h
3870 udevlibexec_PROGRAMS += \
3874 src/udev/scsi_id/README
3876 # ------------------------------------------------------------------------------
3878 src/udev/v4l_id/v4l_id.c
3883 udevlibexec_PROGRAMS += \
3886 dist_udevrules_DATA += \
3887 rules/60-persistent-v4l.rules
3889 # ------------------------------------------------------------------------------
3890 mtd_probe_SOURCES = \
3891 src/udev/mtd_probe/mtd_probe.c \
3892 src/udev/mtd_probe/mtd_probe.h \
3893 src/udev/mtd_probe/probe_smartmedia.c
3895 dist_udevrules_DATA += \
3896 rules/75-probe_mtd.rules
3898 udevlibexec_PROGRAMS += \
3901 # ------------------------------------------------------------------------------
3902 test_id128_SOURCES = \
3903 src/test/test-id128.c
3905 test_id128_LDADD = \
3911 # ------------------------------------------------------------------------------
3913 rootlibexec_PROGRAMS += \
3916 systemd_activate_SOURCES = \
3917 src/activate/activate.c
3919 systemd_activate_LDADD = \
3922 # ------------------------------------------------------------------------------
3923 systemd_journald_SOURCES = \
3924 src/journal/journald.c \
3925 src/journal/journald-server.h
3927 systemd_journald_LDADD = \
3928 libjournal-core.la \
3931 systemd_cat_SOURCES = \
3934 systemd_cat_LDADD = \
3938 rootlibexec_PROGRAMS += \
3939 systemd-journal-remote
3941 systemd_journal_remote_SOURCES = \
3942 src/journal-remote/journal-remote-parse.h \
3943 src/journal-remote/journal-remote-parse.c \
3944 src/journal-remote/journal-remote-write.h \
3945 src/journal-remote/journal-remote-write.c \
3946 src/journal-remote/journal-remote.h \
3947 src/journal-remote/journal-remote.c
3949 systemd_journal_remote_LDADD = \
3952 systemd_journal_remote_SOURCES += \
3953 src/journal-remote/microhttpd-util.h \
3954 src/journal-remote/microhttpd-util.c
3956 systemd_journal_remote_CFLAGS = \
3958 $(MICROHTTPD_CFLAGS)
3960 systemd_journal_remote_LDADD += \
3964 dist_tmpfiles_DATA += \
3965 tmpfiles.d/systemd-remote.conf
3969 systemd_journal_remote_LDADD += \
3973 # systemd-journal-remote make sense mostly with full crypto stack
3974 dist_systemunit_DATA += \
3975 units/systemd-journal-remote.socket
3977 nodist_systemunit_DATA += \
3978 units/systemd-journal-remote.service
3980 journal-remote-install-hook: journal-install-hook
3981 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3982 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3983 -chmod 755 $(DESTDIR)/var/log/journal/remote
3985 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3987 nodist_pkgsysconf_DATA += \
3988 src/journal-remote/journal-remote.conf
3991 units/systemd-journal-remote.service.in \
3992 src/journal-remote/journal-remote.conf.in \
3993 src/journal-remote/log-generator.py
3997 rootlibexec_PROGRAMS += \
3998 systemd-journal-upload
4000 systemd_journal_upload_SOURCES = \
4001 src/journal-remote/journal-upload.h \
4002 src/journal-remote/journal-upload.c \
4003 src/journal-remote/journal-upload-journal.c
4005 systemd_journal_upload_CFLAGS = \
4009 systemd_journal_upload_LDADD = \
4013 nodist_systemunit_DATA += \
4014 units/systemd-journal-upload.service
4016 nodist_pkgsysconf_DATA += \
4017 src/journal-remote/journal-upload.conf
4021 units/systemd-journal-upload.service.in \
4022 src/journal-remote/journal-upload.conf.in
4024 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4025 journalctl_CFLAGS = \
4028 journalctl_SOURCES = \
4029 src/journal/journalctl.c
4031 journalctl_LDADD = \
4036 journalctl_SOURCES += \
4037 src/journal/journal-qrcode.c \
4038 src/journal/journal-qrcode.h
4040 journalctl_CFLAGS += \
4043 journalctl_LDADD += \
4047 test_journal_SOURCES = \
4048 src/journal/test-journal.c
4050 test_journal_LDADD = \
4053 test_journal_send_SOURCES = \
4054 src/journal/test-journal-send.c
4056 test_journal_send_LDADD = \
4059 test_journal_syslog_SOURCES = \
4060 src/journal/test-journal-syslog.c
4062 test_journal_syslog_LDADD = \
4065 test_journal_match_SOURCES = \
4066 src/journal/test-journal-match.c
4068 test_journal_match_LDADD = \
4071 test_journal_enum_SOURCES = \
4072 src/journal/test-journal-enum.c
4074 test_journal_enum_LDADD = \
4077 test_journal_stream_SOURCES = \
4078 src/journal/test-journal-stream.c
4080 test_journal_stream_LDADD = \
4083 test_journal_flush_SOURCES = \
4084 src/journal/test-journal-flush.c
4086 test_journal_flush_LDADD = \
4089 test_journal_init_SOURCES = \
4090 src/journal/test-journal-init.c
4092 test_journal_init_LDADD = \
4095 test_journal_verify_SOURCES = \
4096 src/journal/test-journal-verify.c
4098 test_journal_verify_LDADD = \
4101 test_journal_interleaving_SOURCES = \
4102 src/journal/test-journal-interleaving.c
4104 test_journal_interleaving_LDADD = \
4107 test_mmap_cache_SOURCES = \
4108 src/journal/test-mmap-cache.c
4110 test_mmap_cache_LDADD = \
4113 test_catalog_SOURCES = \
4114 src/journal/test-catalog.c
4116 test_catalog_CPPFLAGS = \
4118 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4120 test_catalog_LDADD = \
4123 test_compress_SOURCES = \
4124 src/journal/test-compress.c
4126 test_compress_LDADD = \
4129 test_compress_benchmark_SOURCES = \
4130 src/journal/test-compress-benchmark.c
4132 test_compress_benchmark_LDADD = \
4135 test_audit_type_SOURCES = \
4136 src/journal/test-audit-type.c
4138 test_audit_type_LDADD = \
4141 libjournal_core_la_SOURCES = \
4142 src/journal/journald-kmsg.c \
4143 src/journal/journald-kmsg.h \
4144 src/journal/journald-syslog.c \
4145 src/journal/journald-syslog.h \
4146 src/journal/journald-stream.c \
4147 src/journal/journald-stream.h \
4148 src/journal/journald-server.c \
4149 src/journal/journald-server.h \
4150 src/journal/journald-console.c \
4151 src/journal/journald-console.h \
4152 src/journal/journald-wall.c \
4153 src/journal/journald-wall.h \
4154 src/journal/journald-native.c \
4155 src/journal/journald-native.h \
4156 src/journal/journald-audit.c \
4157 src/journal/journald-audit.h \
4158 src/journal/journald-rate-limit.c \
4159 src/journal/journald-rate-limit.h \
4160 src/journal/journal-internal.h
4162 nodist_libjournal_core_la_SOURCES = \
4163 src/journal/journald-gperf.c
4165 libjournal_core_la_LIBADD = \
4168 noinst_LTLIBRARIES += \
4171 journal-install-hook:
4172 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4173 -chown 0:0 $(DESTDIR)/var/log/journal
4174 -chmod 755 $(DESTDIR)/var/log/journal
4175 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4176 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4178 journal-uninstall-hook:
4179 -rmdir $(DESTDIR)/var/log/journal/remote
4180 -rmdir $(DESTDIR)/var/log/journal/
4182 INSTALL_EXEC_HOOKS += journal-install-hook
4183 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4185 # ------------------------------------------------------------------------------
4186 # Update catalog on installation. Do not bother if installing
4187 # in DESTDIR, since this is likely for packaging purposes.
4188 catalog-update-hook:
4189 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4191 INSTALL_DATA_HOOKS += \
4194 catalog-remove-hook:
4195 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4197 UNINSTALL_DATA_HOOKS += \
4206 test-journal-syslog \
4207 test-journal-match \
4208 test-journal-stream \
4210 test-journal-verify \
4211 test-journal-interleaving \
4212 test-journal-flush \
4220 test-compress-benchmark
4223 pkginclude_HEADERS += \
4224 src/systemd/sd-journal.h \
4225 src/systemd/sd-messages.h \
4226 src/systemd/_sd-common.h
4228 libsystemd_journal_internal_la_SOURCES = \
4229 src/journal/sd-journal.c \
4230 src/systemd/sd-journal.h \
4231 src/systemd/_sd-common.h \
4232 src/journal/journal-file.c \
4233 src/journal/journal-file.h \
4234 src/journal/journal-vacuum.c \
4235 src/journal/journal-vacuum.h \
4236 src/journal/journal-verify.c \
4237 src/journal/journal-verify.h \
4238 src/journal/lookup3.c \
4239 src/journal/lookup3.h \
4240 src/journal/journal-send.c \
4241 src/journal/journal-def.h \
4242 src/journal/compress.h \
4243 src/journal/catalog.c \
4244 src/journal/catalog.h \
4245 src/journal/mmap-cache.c \
4246 src/journal/mmap-cache.h \
4247 src/journal/compress.c \
4248 src/journal/audit-type.h \
4249 src/journal/audit-type.c
4251 nodist_libsystemd_journal_internal_la_SOURCES = \
4252 src/journal/audit_type-to-name.h
4254 gperf_txt_sources += \
4255 src/journal/audit_type-list.txt
4257 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4258 libsystemd_journal_internal_la_CFLAGS = \
4261 libsystemd_journal_internal_la_LIBADD =
4264 libsystemd_journal_internal_la_CFLAGS += \
4267 libsystemd_journal_internal_la_LIBADD += \
4272 libsystemd_journal_internal_la_LIBADD += \
4277 libsystemd_journal_internal_la_SOURCES += \
4278 src/journal/journal-authenticate.c \
4279 src/journal/journal-authenticate.h \
4280 src/journal/fsprg.c \
4283 libsystemd_journal_internal_la_LIBADD += \
4286 # fsprg.c is a drop-in file using void pointer arithmetic
4287 libsystemd_journal_internal_la_CFLAGS += \
4292 noinst_LTLIBRARIES += \
4293 libsystemd-journal-internal.la
4295 rootlibexec_PROGRAMS += \
4298 rootbin_PROGRAMS += \
4304 dist_systemunit_DATA += \
4305 units/systemd-journald.socket \
4306 units/systemd-journald-dev-log.socket \
4307 units/systemd-journald-audit.socket
4309 nodist_systemunit_DATA += \
4310 units/systemd-journald.service \
4311 units/systemd-journal-flush.service \
4312 units/systemd-journal-catalog-update.service
4314 dist_pkgsysconf_DATA += \
4315 src/journal/journald.conf
4317 dist_catalog_DATA = \
4318 catalog/systemd.be.catalog \
4319 catalog/systemd.be@latin.catalog \
4320 catalog/systemd.fr.catalog \
4321 catalog/systemd.it.catalog \
4322 catalog/systemd.pl.catalog \
4323 catalog/systemd.pt_BR.catalog \
4324 catalog/systemd.ru.catalog \
4325 catalog/systemd.zh_CN.catalog \
4326 catalog/systemd.zh_TW.catalog \
4327 catalog/systemd.catalog
4329 SOCKETS_TARGET_WANTS += \
4330 systemd-journald.socket \
4331 systemd-journald-dev-log.socket \
4332 systemd-journald-audit.socket
4334 SYSINIT_TARGET_WANTS += \
4335 systemd-journald.service \
4336 systemd-journal-flush.service \
4337 systemd-journal-catalog-update.service
4340 units/systemd-journald.service.in \
4341 units/systemd-journal-flush.service.in \
4342 units/systemd-journal-catalog-update.service.in
4344 gperf_gperf_sources += \
4345 src/journal/journald-gperf.gperf
4347 # ------------------------------------------------------------------------------
4349 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4351 rootlibexec_PROGRAMS += \
4352 systemd-journal-gatewayd
4354 systemd_journal_gatewayd_SOURCES = \
4355 src/journal-remote/journal-gatewayd.c \
4356 src/journal-remote/microhttpd-util.h \
4357 src/journal-remote/microhttpd-util.c
4359 systemd_journal_gatewayd_LDADD = \
4364 systemd_journal_gatewayd_LDADD += \
4368 systemd_journal_gatewayd_CFLAGS = \
4370 $(MICROHTTPD_CFLAGS)
4372 systemd_journal_gatewayd_CPPFLAGS = \
4374 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4376 dist_systemunit_DATA += \
4377 units/systemd-journal-gatewayd.socket
4379 nodist_systemunit_DATA += \
4380 units/systemd-journal-gatewayd.service
4382 dist_gatewayddocumentroot_DATA = \
4383 src/journal-remote/browse.html
4388 units/systemd-journal-gatewayd.service.in
4390 # ------------------------------------------------------------------------------
4392 systemd_socket_proxyd_SOURCES = \
4393 src/socket-proxy/socket-proxyd.c
4395 systemd_socket_proxyd_LDADD = \
4398 # ------------------------------------------------------------------------------
4400 systemd_coredump_SOURCES = \
4401 src/journal/coredump.c \
4402 src/journal/coredump-vacuum.c \
4403 src/journal/coredump-vacuum.h
4405 systemd_coredump_LDADD = \
4409 systemd_coredump_SOURCES += \
4410 src/journal/stacktrace.c \
4411 src/journal/stacktrace.h
4413 systemd_coredump_LDADD += \
4417 rootlibexec_PROGRAMS += \
4420 dist_pkgsysconf_DATA += \
4421 src/journal/coredump.conf
4423 coredumpctl_SOURCES = \
4424 src/journal/coredumpctl.c
4426 coredumpctl_LDADD = \
4433 test-coredump-vacuum
4435 test_coredump_vacuum_SOURCES = \
4436 src/journal/test-coredump-vacuum.c \
4437 src/journal/coredump-vacuum.c \
4438 src/journal/coredump-vacuum.h
4440 test_coredump_vacuum_LDADD = \
4443 if ENABLE_BASH_COMPLETION
4444 dist_bashcompletion_DATA += \
4445 shell-completion/bash/coredumpctl
4448 if ENABLE_ZSH_COMPLETION
4449 dist_zshcompletion_DATA += \
4450 shell-completion/zsh/_coredumpctl
4453 nodist_sysctl_DATA = \
4454 sysctl.d/50-coredump.conf
4457 sysctl.d/50-coredump.conf
4461 sysctl.d/50-coredump.conf.in
4463 # ------------------------------------------------------------------------------
4465 systemd_binfmt_SOURCES = \
4468 systemd_binfmt_LDADD = \
4471 rootlibexec_PROGRAMS += \
4474 dist_systemunit_DATA += \
4475 units/proc-sys-fs-binfmt_misc.automount \
4476 units/proc-sys-fs-binfmt_misc.mount
4478 nodist_systemunit_DATA += \
4479 units/systemd-binfmt.service
4482 $(prefix)/lib/binfmt.d \
4483 $(sysconfdir)/binfmt.d
4485 SYSINIT_TARGET_WANTS += \
4486 systemd-binfmt.service \
4487 proc-sys-fs-binfmt_misc.automount
4492 units/systemd-binfmt.service.in
4494 # ------------------------------------------------------------------------------
4496 systemd_vconsole_setup_SOURCES = \
4497 src/vconsole/vconsole-setup.c
4499 systemd_vconsole_setup_LDADD = \
4502 rootlibexec_PROGRAMS += \
4503 systemd-vconsole-setup
4505 nodist_udevrules_DATA += \
4506 src/vconsole/90-vconsole.rules
4508 nodist_systemunit_DATA += \
4509 units/systemd-vconsole-setup.service
4511 SYSINIT_TARGET_WANTS += \
4512 systemd-vconsole-setup.service
4516 src/vconsole/90-vconsole.rules.in \
4517 units/systemd-vconsole-setup.service.in
4519 # ------------------------------------------------------------------------------
4521 systemd_bootchart_SOURCES = \
4522 src/bootchart/bootchart.c \
4523 src/bootchart/bootchart.h \
4524 src/bootchart/store.c \
4525 src/bootchart/store.h \
4526 src/bootchart/svg.c \
4529 systemd_bootchart_LDADD = \
4532 rootlibexec_PROGRAMS += \
4535 dist_pkgsysconf_DATA += \
4536 src/bootchart/bootchart.conf
4538 nodist_systemunit_DATA += \
4539 units/systemd-bootchart.service
4543 units/systemd-bootchart.service.in
4545 # ------------------------------------------------------------------------------
4546 if ENABLE_QUOTACHECK
4547 rootlibexec_PROGRAMS += \
4550 nodist_systemunit_DATA += \
4551 units/systemd-quotacheck.service
4553 systemd_quotacheck_SOURCES = \
4554 src/quotacheck/quotacheck.c
4556 systemd_quotacheck_LDADD = \
4561 units/systemd-quotacheck.service.in
4563 nodist_systemunit_DATA += \
4564 units/quotaon.service
4566 # ------------------------------------------------------------------------------
4567 if ENABLE_RANDOMSEED
4568 rootlibexec_PROGRAMS += \
4571 nodist_systemunit_DATA += \
4572 units/systemd-random-seed.service
4574 systemd_random_seed_SOURCES = \
4575 src/random-seed/random-seed.c
4577 systemd_random_seed_LDADD = \
4580 SYSINIT_TARGET_WANTS += \
4581 systemd-random-seed.service
4586 units/systemd-random-seed.service.in
4588 # ------------------------------------------------------------------------------
4590 rootlibexec_PROGRAMS += \
4593 nodist_systemunit_DATA += \
4594 units/systemd-backlight@.service
4596 systemd_backlight_SOURCES = \
4597 src/backlight/backlight.c
4599 systemd_backlight_LDADD = \
4604 units/systemd-backlight@.service.in
4606 # ------------------------------------------------------------------------------
4608 rootlibexec_PROGRAMS += \
4611 nodist_systemunit_DATA += \
4612 units/systemd-rfkill.service
4614 dist_systemunit_DATA += \
4615 units/systemd-rfkill.socket
4617 systemd_rfkill_SOURCES = \
4620 systemd_rfkill_LDADD = \
4625 units/systemd-rfkill.service.in
4627 # ------------------------------------------------------------------------------
4628 if HAVE_LIBCRYPTSETUP
4629 rootlibexec_PROGRAMS += \
4632 systemgenerator_PROGRAMS += \
4633 systemd-cryptsetup-generator
4635 dist_systemunit_DATA += \
4636 units/cryptsetup.target \
4637 units/cryptsetup-pre.target
4639 systemd_cryptsetup_SOURCES = \
4640 src/cryptsetup/cryptsetup.c
4642 systemd_cryptsetup_CFLAGS = \
4644 $(LIBCRYPTSETUP_CFLAGS)
4646 systemd_cryptsetup_LDADD = \
4648 $(LIBCRYPTSETUP_LIBS)
4650 systemd_cryptsetup_generator_SOURCES = \
4651 src/cryptsetup/cryptsetup-generator.c
4653 systemd_cryptsetup_generator_LDADD = \
4656 SYSINIT_TARGET_WANTS += \
4661 # ------------------------------------------------------------------------------
4663 systemd_hostnamed_SOURCES = \
4664 src/hostname/hostnamed.c
4666 systemd_hostnamed_LDADD = \
4669 rootlibexec_PROGRAMS += \
4672 nodist_systemunit_DATA += \
4673 units/systemd-hostnamed.service
4675 dist_systemunit_DATA_busnames += \
4676 units/org.freedesktop.hostname1.busname
4678 dist_dbuspolicy_DATA += \
4679 src/hostname/org.freedesktop.hostname1.conf
4681 dist_dbussystemservice_DATA += \
4682 src/hostname/org.freedesktop.hostname1.service
4684 polkitpolicy_files += \
4685 src/hostname/org.freedesktop.hostname1.policy
4687 SYSTEM_UNIT_ALIASES += \
4688 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4690 BUSNAMES_TARGET_WANTS += \
4691 org.freedesktop.hostname1.busname
4693 hostnamectl_SOURCES = \
4694 src/hostname/hostnamectl.c
4696 hostnamectl_LDADD = \
4702 if ENABLE_BASH_COMPLETION
4703 dist_bashcompletion_DATA += \
4704 shell-completion/bash/hostnamectl
4707 if ENABLE_ZSH_COMPLETION
4708 dist_zshcompletion_DATA += \
4709 shell-completion/zsh/_hostnamectl
4713 polkitpolicy_in_files += \
4714 src/hostname/org.freedesktop.hostname1.policy.in
4717 units/systemd-hostnamed.service.in
4719 # ------------------------------------------------------------------------------
4720 dist_systemunit_DATA_busnames += \
4721 units/org.freedesktop.systemd1.busname
4723 BUSNAMES_TARGET_WANTS += \
4724 org.freedesktop.systemd1.busname
4726 # ------------------------------------------------------------------------------
4728 systemd_localed_SOURCES = \
4729 src/locale/localed.c
4731 systemd_localed_LDADD = \
4735 systemd_localed_CFLAGS = \
4739 nodist_systemunit_DATA += \
4740 units/systemd-localed.service
4742 dist_systemunit_DATA_busnames += \
4743 units/org.freedesktop.locale1.busname
4745 rootlibexec_PROGRAMS += \
4748 dist_dbuspolicy_DATA += \
4749 src/locale/org.freedesktop.locale1.conf
4751 dist_dbussystemservice_DATA += \
4752 src/locale/org.freedesktop.locale1.service
4754 polkitpolicy_files += \
4755 src/locale/org.freedesktop.locale1.policy
4757 SYSTEM_UNIT_ALIASES += \
4758 systemd-localed.service dbus-org.freedesktop.locale1.service
4760 BUSNAMES_TARGET_WANTS += \
4761 org.freedesktop.locale1.busname
4763 dist_pkgdata_DATA = \
4764 src/locale/kbd-model-map \
4765 src/locale/language-fallback-map
4767 localectl_SOURCES = \
4768 src/locale/localectl.c
4776 if ENABLE_BASH_COMPLETION
4777 dist_bashcompletion_DATA += \
4778 shell-completion/bash/localectl
4781 if ENABLE_ZSH_COMPLETION
4782 dist_zshcompletion_DATA += \
4783 shell-completion/zsh/_localectl
4787 .PHONY: update-kbd-model-map
4789 polkitpolicy_in_files += \
4790 src/locale/org.freedesktop.locale1.policy.in
4793 units/systemd-localed.service.in
4795 # ------------------------------------------------------------------------------
4797 systemd_timedated_SOURCES = \
4798 src/timedate/timedated.c
4800 systemd_timedated_LDADD = \
4803 rootlibexec_PROGRAMS += \
4806 dist_dbussystemservice_DATA += \
4807 src/timedate/org.freedesktop.timedate1.service
4809 dist_dbuspolicy_DATA += \
4810 src/timedate/org.freedesktop.timedate1.conf
4812 nodist_systemunit_DATA += \
4813 units/systemd-timedated.service
4815 dist_systemunit_DATA_busnames += \
4816 units/org.freedesktop.timedate1.busname
4818 polkitpolicy_files += \
4819 src/timedate/org.freedesktop.timedate1.policy
4821 SYSTEM_UNIT_ALIASES += \
4822 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4824 BUSNAMES_TARGET_WANTS += \
4825 org.freedesktop.timedate1.busname
4827 timedatectl_SOURCES = \
4828 src/timedate/timedatectl.c
4830 timedatectl_LDADD = \
4836 if ENABLE_BASH_COMPLETION
4837 dist_bashcompletion_DATA += \
4838 shell-completion/bash/timedatectl
4841 if ENABLE_ZSH_COMPLETION
4842 dist_zshcompletion_DATA += \
4843 shell-completion/zsh/_timedatectl
4847 polkitpolicy_in_files += \
4848 src/timedate/org.freedesktop.timedate1.policy.in
4851 units/systemd-timedated.service.in
4853 # ------------------------------------------------------------------------------
4855 systemd_timesyncd_SOURCES = \
4856 src/timesync/timesyncd.c \
4857 src/timesync/timesyncd-manager.c \
4858 src/timesync/timesyncd-manager.h \
4859 src/timesync/timesyncd-conf.c \
4860 src/timesync/timesyncd-conf.h \
4861 src/timesync/timesyncd-server.c \
4862 src/timesync/timesyncd-server.h
4864 nodist_systemd_timesyncd_SOURCES = \
4865 src/timesync/timesyncd-gperf.c
4867 systemd_timesyncd_LDADD = \
4868 libsystemd-network.la \
4871 rootlibexec_PROGRAMS += \
4874 nodist_systemunit_DATA += \
4875 units/systemd-timesyncd.service
4877 GENERAL_ALIASES += \
4878 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4881 nodist_pkgsysconf_DATA += \
4882 src/timesync/timesyncd.conf
4886 gperf_gperf_sources += \
4887 src/timesync/timesyncd-gperf.gperf
4890 units/systemd-timesyncd.service.in \
4891 src/timesync/timesyncd.conf.in
4893 # ------------------------------------------------------------------------------
4895 libnss_myhostname_la_SOURCES = \
4896 src/nss-myhostname/nss-myhostname.sym \
4897 src/nss-myhostname/nss-myhostname.c
4899 libnss_myhostname_la_LDFLAGS = \
4906 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4908 libnss_myhostname_la_LIBADD = \
4909 libsystemd-internal.la
4911 lib_LTLIBRARIES += \
4912 libnss_myhostname.la
4915 # ------------------------------------------------------------------------------
4917 systemd_machined_SOURCES = \
4918 src/machine/machined.c \
4919 src/machine/machined.h
4921 systemd_machined_LDADD = \
4924 rootlibexec_PROGRAMS += \
4927 libmachine_core_la_SOURCES = \
4928 src/machine/machine.c \
4929 src/machine/machine.h \
4930 src/machine/machined-dbus.c \
4931 src/machine/machine-dbus.c \
4932 src/machine/machine-dbus.h \
4933 src/machine/image-dbus.c \
4934 src/machine/image-dbus.h
4936 libmachine_core_la_LIBADD = \
4939 noinst_LTLIBRARIES += \
4942 machinectl_SOURCES = \
4943 src/machine/machinectl.c
4945 machinectl_LDADD = \
4948 rootbin_PROGRAMS += \
4951 if ENABLE_BASH_COMPLETION
4952 dist_bashcompletion_DATA += \
4953 shell-completion/bash/machinectl
4956 test_machine_tables_SOURCES = \
4957 src/machine/test-machine-tables.c
4959 test_machine_tables_LDADD = \
4965 nodist_systemunit_DATA += \
4966 units/systemd-machined.service
4968 dist_systemunit_DATA += \
4971 dist_systemunit_DATA_busnames += \
4972 units/org.freedesktop.machine1.busname
4974 dist_dbussystemservice_DATA += \
4975 src/machine/org.freedesktop.machine1.service
4977 dist_dbuspolicy_DATA += \
4978 src/machine/org.freedesktop.machine1.conf
4980 polkitpolicy_files += \
4981 src/machine/org.freedesktop.machine1.policy
4983 if ENABLE_ZSH_COMPLETION
4984 dist_zshcompletion_DATA += \
4985 shell-completion/zsh/_machinectl \
4986 shell-completion/zsh/_sd_machines
4989 SYSTEM_UNIT_ALIASES += \
4990 systemd-machined.service dbus-org.freedesktop.machine1.service
4992 BUSNAMES_TARGET_WANTS += \
4993 org.freedesktop.machine1.busname
4995 libnss_mymachines_la_SOURCES = \
4996 src/nss-mymachines/nss-mymachines.sym \
4997 src/nss-mymachines/nss-mymachines.c
4999 libnss_mymachines_la_LDFLAGS = \
5006 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5008 libnss_mymachines_la_LIBADD = \
5009 libsystemd-internal.la
5011 lib_LTLIBRARIES += \
5012 libnss_mymachines.la
5016 polkitpolicy_in_files += \
5017 src/machine/org.freedesktop.machine1.policy.in
5020 units/systemd-machined.service.in
5022 # ------------------------------------------------------------------------------
5031 rootlibexec_PROGRAMS += \
5037 systemd_importd_SOURCES = \
5038 src/import/importd.c
5040 systemd_importd_CFLAGS = \
5042 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5043 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5044 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5046 systemd_importd_LDADD = \
5049 systemd_pull_SOURCES = \
5051 src/import/pull-raw.c \
5052 src/import/pull-raw.h \
5053 src/import/pull-tar.c \
5054 src/import/pull-tar.h \
5055 src/import/pull-job.c \
5056 src/import/pull-job.h \
5057 src/import/pull-common.c \
5058 src/import/pull-common.h \
5059 src/import/import-common.c \
5060 src/import/import-common.h \
5061 src/import/import-compress.c \
5062 src/import/import-compress.h \
5063 src/import/curl-util.c \
5064 src/import/curl-util.h \
5065 src/import/aufs-util.c \
5066 src/import/aufs-util.h \
5067 src/import/qcow2-util.c \
5068 src/import/qcow2-util.h
5070 systemd_pull_CFLAGS = \
5076 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5077 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5079 systemd_pull_LDADD = \
5087 systemd_import_SOURCES = \
5088 src/import/import.c \
5089 src/import/import-raw.c \
5090 src/import/import-raw.h \
5091 src/import/import-tar.c \
5092 src/import/import-tar.h \
5093 src/import/import-common.c \
5094 src/import/import-common.h \
5095 src/import/import-compress.c \
5096 src/import/import-compress.h \
5097 src/import/qcow2-util.c \
5098 src/import/qcow2-util.h
5100 systemd_import_CFLAGS = \
5105 systemd_import_LDADD = \
5111 systemd_export_SOURCES = \
5112 src/import/export.c \
5113 src/import/export-tar.c \
5114 src/import/export-tar.h \
5115 src/import/export-raw.c \
5116 src/import/export-raw.h \
5117 src/import/import-common.c \
5118 src/import/import-common.h \
5119 src/import/import-compress.c \
5120 src/import/import-compress.h
5122 systemd_export_CFLAGS = \
5127 systemd_export_LDADD = \
5133 dist_rootlibexec_DATA = \
5134 src/import/import-pubring.gpg
5136 nodist_systemunit_DATA += \
5137 units/systemd-importd.service
5139 dist_systemunit_DATA_busnames += \
5140 units/org.freedesktop.import1.busname
5142 BUSNAMES_TARGET_WANTS += \
5143 org.freedesktop.import1.busname
5145 SYSTEM_UNIT_ALIASES += \
5146 systemd-importd.service dbus-org.freedesktop.import1.service
5148 dist_dbussystemservice_DATA += \
5149 src/import/org.freedesktop.import1.service
5151 dist_dbuspolicy_DATA += \
5152 src/import/org.freedesktop.import1.conf
5154 polkitpolicy_files += \
5155 src/import/org.freedesktop.import1.policy
5160 test_qcow2_SOURCES = \
5161 src/import/test-qcow2.c \
5162 src/import/qcow2-util.c \
5163 src/import/qcow2-util.h
5165 test_qcow2_CFLAGS = \
5169 test_qcow2_LDADD = \
5181 polkitpolicy_in_files += \
5182 src/import/org.freedesktop.import1.policy.in
5185 units/systemd-importd.service.in
5188 # ------------------------------------------------------------------------------
5191 systemd_resolved_SOURCES = \
5192 src/resolve/resolved.c \
5193 src/resolve/resolved-manager.c \
5194 src/resolve/resolved-manager.h \
5195 src/resolve/resolved-conf.c \
5196 src/resolve/resolved-conf.h \
5197 src/resolve/resolved-resolv-conf.c \
5198 src/resolve/resolved-resolv-conf.h \
5199 src/resolve/resolved-bus.c \
5200 src/resolve/resolved-bus.h \
5201 src/resolve/resolved-link.h \
5202 src/resolve/resolved-link.c \
5203 src/resolve/resolved-link-bus.c \
5204 src/resolve/resolved-link-bus.h \
5205 src/resolve/resolved-llmnr.h \
5206 src/resolve/resolved-llmnr.c \
5207 src/resolve/resolved-mdns.h \
5208 src/resolve/resolved-mdns.c \
5209 src/resolve/resolved-def.h \
5210 src/resolve/resolved-dns-rr.h \
5211 src/resolve/resolved-dns-rr.c \
5212 src/resolve/resolved-dns-question.h \
5213 src/resolve/resolved-dns-question.c \
5214 src/resolve/resolved-dns-answer.h \
5215 src/resolve/resolved-dns-answer.c \
5216 src/resolve/resolved-dns-packet.h \
5217 src/resolve/resolved-dns-packet.c \
5218 src/resolve/resolved-dns-query.h \
5219 src/resolve/resolved-dns-query.c \
5220 src/resolve/resolved-dns-synthesize.h \
5221 src/resolve/resolved-dns-synthesize.c \
5222 src/resolve/resolved-dns-transaction.h \
5223 src/resolve/resolved-dns-transaction.c \
5224 src/resolve/resolved-dns-scope.h \
5225 src/resolve/resolved-dns-scope.c \
5226 src/resolve/resolved-dns-server.h \
5227 src/resolve/resolved-dns-server.c \
5228 src/resolve/resolved-dns-search-domain.h \
5229 src/resolve/resolved-dns-search-domain.c \
5230 src/resolve/resolved-dns-cache.h \
5231 src/resolve/resolved-dns-cache.c \
5232 src/resolve/resolved-dns-zone.h \
5233 src/resolve/resolved-dns-zone.c \
5234 src/resolve/resolved-dns-stream.h \
5235 src/resolve/resolved-dns-stream.c \
5236 src/resolve/resolved-dns-dnssec.h \
5237 src/resolve/resolved-dns-dnssec.c \
5238 src/resolve/resolved-dns-trust-anchor.h \
5239 src/resolve/resolved-dns-trust-anchor.c \
5240 src/resolve/resolved-etc-hosts.h \
5241 src/resolve/resolved-etc-hosts.c \
5242 src/resolve/dns-type.c \
5243 src/resolve/dns-type.h
5245 nodist_systemd_resolved_SOURCES = \
5246 src/resolve/dns_type-from-name.h \
5247 src/resolve/dns_type-to-name.h \
5248 src/resolve/resolved-gperf.c
5250 systemd_resolved_LDADD = \
5251 libsystemd-network.la \
5254 rootlibexec_PROGRAMS += \
5257 nodist_systemunit_DATA += \
5258 units/systemd-resolved.service
5260 dist_systemunit_DATA_busnames += \
5261 units/org.freedesktop.resolve1.busname
5263 dist_dbuspolicy_DATA += \
5264 src/resolve/org.freedesktop.resolve1.conf
5266 dist_dbussystemservice_DATA += \
5267 src/resolve/org.freedesktop.resolve1.service
5269 SYSTEM_UNIT_ALIASES += \
5270 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5272 BUSNAMES_TARGET_WANTS += \
5273 org.freedesktop.resolve1.busname
5275 GENERAL_ALIASES += \
5276 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5278 nodist_pkgsysconf_DATA += \
5279 src/resolve/resolved.conf
5281 libnss_resolve_la_SOURCES = \
5282 src/nss-resolve/nss-resolve.sym \
5283 src/nss-resolve/nss-resolve.c
5285 libnss_resolve_la_LDFLAGS = \
5292 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5294 libnss_resolve_la_LIBADD = \
5295 libsystemd-internal.la \
5298 lib_LTLIBRARIES += \
5301 systemd_resolve_SOURCES = \
5302 src/resolve/resolve-tool.c \
5303 src/resolve/resolved-dns-dnssec.c \
5304 src/resolve/resolved-dns-dnssec.h \
5305 src/resolve/resolved-dns-packet.c \
5306 src/resolve/resolved-dns-packet.h \
5307 src/resolve/resolved-dns-rr.c \
5308 src/resolve/resolved-dns-rr.h \
5309 src/resolve/resolved-dns-answer.c \
5310 src/resolve/resolved-dns-answer.h \
5311 src/resolve/resolved-dns-question.c \
5312 src/resolve/resolved-dns-question.h \
5313 src/resolve/dns-type.c \
5314 src/resolve/dns-type.h
5316 nodist_systemd_resolve_SOURCES = \
5317 src/resolve/dns_type-from-name.h \
5318 src/resolve/dns_type-to-name.h
5320 systemd_resolve_LDADD = \
5333 test_dnssec_SOURCES = \
5334 src/resolve/test-dnssec.c \
5335 src/resolve/resolved-dns-packet.c \
5336 src/resolve/resolved-dns-packet.h \
5337 src/resolve/resolved-dns-rr.c \
5338 src/resolve/resolved-dns-rr.h \
5339 src/resolve/resolved-dns-answer.c \
5340 src/resolve/resolved-dns-answer.h \
5341 src/resolve/resolved-dns-question.c \
5342 src/resolve/resolved-dns-question.h \
5343 src/resolve/resolved-dns-dnssec.c \
5344 src/resolve/resolved-dns-dnssec.h \
5345 src/resolve/dns-type.c \
5346 src/resolve/dns-type.h
5348 test_dnssec_LDADD = \
5351 test_dnssec_complex_SOURCES = \
5352 src/resolve/test-dnssec-complex.c \
5353 src/resolve/dns-type.c \
5354 src/resolve/dns-type.h
5356 test_dnssec_complex_LDADD = \
5361 gperf_txt_sources += \
5362 src/resolve/dns_type-list.txt
5364 gperf_gperf_sources += \
5365 src/resolve/resolved-gperf.gperf
5368 units/systemd-resolved.service.m4.in \
5369 src/resolve/resolved.conf.in
5371 # ------------------------------------------------------------------------------
5373 rootlibexec_PROGRAMS += \
5376 systemd_networkd_SOURCES = \
5377 src/network/networkd.c
5379 systemd_networkd_LDADD = \
5383 systemd_networkd_LDADD += \
5387 noinst_LTLIBRARIES += \
5390 libnetworkd_core_la_CFLAGS = \
5393 libnetworkd_core_la_SOURCES = \
5394 src/libsystemd-network/network-internal.h \
5395 src/network/networkd.h \
5396 src/network/networkd-link.h \
5397 src/network/networkd-link.c \
5398 src/network/networkd-netdev.h \
5399 src/network/networkd-netdev.c \
5400 src/network/networkd-netdev-tunnel.h \
5401 src/network/networkd-netdev-tunnel.c \
5402 src/network/networkd-netdev-veth.h \
5403 src/network/networkd-netdev-veth.c \
5404 src/network/networkd-netdev-vxlan.h \
5405 src/network/networkd-netdev-vxlan.c \
5406 src/network/networkd-netdev-vlan.h \
5407 src/network/networkd-netdev-vlan.c \
5408 src/network/networkd-netdev-macvlan.h \
5409 src/network/networkd-netdev-macvlan.c \
5410 src/network/networkd-netdev-ipvlan.h \
5411 src/network/networkd-netdev-ipvlan.c \
5412 src/network/networkd-netdev-dummy.h \
5413 src/network/networkd-netdev-dummy.c \
5414 src/network/networkd-netdev-tuntap.h \
5415 src/network/networkd-netdev-tuntap.c \
5416 src/network/networkd-netdev-bond.h \
5417 src/network/networkd-netdev-bond.c \
5418 src/network/networkd-netdev-bridge.h \
5419 src/network/networkd-netdev-bridge.c \
5420 src/network/networkd-link-bus.c \
5421 src/network/networkd-ipv4ll.c \
5422 src/network/networkd-dhcp4.c \
5423 src/network/networkd-dhcp6.c \
5424 src/network/networkd-ndisc.c \
5425 src/network/networkd-network.h \
5426 src/network/networkd-network.c \
5427 src/network/networkd-network-bus.c \
5428 src/network/networkd-address.h \
5429 src/network/networkd-address.c \
5430 src/network/networkd-route.h \
5431 src/network/networkd-route.c \
5432 src/network/networkd-manager.c \
5433 src/network/networkd-manager-bus.c \
5434 src/network/networkd-fdb.h \
5435 src/network/networkd-fdb.c \
5436 src/network/networkd-address-pool.h \
5437 src/network/networkd-address-pool.c \
5438 src/network/networkd-util.h \
5439 src/network/networkd-util.c
5441 nodist_libnetworkd_core_la_SOURCES = \
5442 src/network/networkd-network-gperf.c \
5443 src/network/networkd-netdev-gperf.c
5445 libnetworkd_core_la_LIBADD = \
5446 libsystemd-network.la \
5449 rootlibexec_PROGRAMS += \
5450 systemd-networkd-wait-online
5452 systemd_networkd_wait_online_CFLAGS = \
5455 systemd_networkd_wait_online_SOURCES = \
5456 src/libsystemd-network/network-internal.h \
5457 src/network/networkd-wait-online.h \
5458 src/network/networkd-wait-online-link.h \
5459 src/network/networkd-wait-online.c \
5460 src/network/networkd-wait-online-manager.c \
5461 src/network/networkd-wait-online-link.c
5463 systemd_networkd_wait_online_LDADD = \
5464 libsystemd-network.la \
5467 rootbin_PROGRAMS += \
5470 networkctl_SOURCES = \
5471 src/network/networkctl.c
5473 networkctl_LDADD = \
5475 libsystemd-network.la
5477 if ENABLE_BASH_COMPLETION
5478 dist_bashcompletion_DATA += \
5479 shell-completion/bash/networkctl
5482 test_network_SOURCES = \
5483 src/network/test-network.c
5485 test_network_LDADD = \
5489 test_network_LDADD += \
5493 test_network_tables_SOURCES = \
5494 src/network/test-network-tables.c \
5495 src/shared/test-tables.h
5497 test_network_tables_LDADD = \
5498 libnetworkd-core.la \
5502 test_network_tables_LDADD += \
5510 dist_systemunit_DATA += \
5511 units/systemd-networkd.socket
5513 nodist_systemunit_DATA += \
5514 units/systemd-networkd.service \
5515 units/systemd-networkd-wait-online.service
5517 dist_systemunit_DATA_busnames += \
5518 units/org.freedesktop.network1.busname
5520 dist_dbussystemservice_DATA += \
5521 src/network/org.freedesktop.network1.service
5523 dist_dbuspolicy_DATA += \
5524 src/network/org.freedesktop.network1.conf
5526 GENERAL_ALIASES += \
5527 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5528 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5529 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5531 SYSTEM_UNIT_ALIASES += \
5532 systemd-networkd.service dbus-org.freedesktop.network1.service
5534 BUSNAMES_TARGET_WANTS += \
5535 org.freedesktop.network1.busname
5539 gperf_gperf_sources += \
5540 src/network/networkd-network-gperf.gperf \
5541 src/network/networkd-netdev-gperf.gperf
5544 units/systemd-networkd.service.m4.in \
5545 units/systemd-networkd-wait-online.service.in \
5546 test/networkd-test.py
5548 # ------------------------------------------------------------------------------
5550 systemd_logind_SOURCES = \
5551 src/login/logind.c \
5554 nodist_systemd_logind_SOURCES = \
5555 src/login/logind-gperf.c
5557 systemd_logind_LDADD = \
5560 liblogind_core_la_SOURCES = \
5561 src/login/logind-core.c \
5562 src/login/logind-device.c \
5563 src/login/logind-device.h \
5564 src/login/logind-button.c \
5565 src/login/logind-button.h \
5566 src/login/logind-action.c \
5567 src/login/logind-action.h \
5568 src/login/logind-seat.c \
5569 src/login/logind-seat.h \
5570 src/login/logind-session.c \
5571 src/login/logind-session.h \
5572 src/login/logind-session-device.c \
5573 src/login/logind-session-device.h \
5574 src/login/logind-user.c \
5575 src/login/logind-user.h \
5576 src/login/logind-inhibit.c \
5577 src/login/logind-inhibit.h \
5578 src/login/logind-dbus.c \
5579 src/login/logind-session-dbus.c \
5580 src/login/logind-seat-dbus.c \
5581 src/login/logind-user-dbus.c \
5582 src/login/logind-utmp.c \
5583 src/login/logind-acl.h
5585 liblogind_core_la_LIBADD = \
5589 liblogind_core_la_SOURCES += \
5590 src/login/logind-acl.c
5593 noinst_LTLIBRARIES += \
5596 rootlibexec_PROGRAMS += \
5599 loginctl_SOURCES = \
5600 src/login/loginctl.c \
5601 src/login/sysfs-show.h \
5602 src/login/sysfs-show.c
5607 rootbin_PROGRAMS += \
5610 if ENABLE_BASH_COMPLETION
5611 dist_bashcompletion_DATA += \
5612 shell-completion/bash/loginctl
5615 if ENABLE_ZSH_COMPLETION
5616 dist_zshcompletion_DATA += \
5617 shell-completion/zsh/_loginctl \
5618 shell-completion/zsh/_systemd-inhibit
5621 systemd_inhibit_SOURCES = \
5624 systemd_inhibit_LDADD = \
5627 rootbin_PROGRAMS += \
5630 test_login_SOURCES = \
5631 src/libsystemd/sd-login/test-login.c
5633 test_login_LDADD = \
5636 test_login_shared_SOURCES = \
5637 src/login/test-login-shared.c
5639 test_login_shared_LDADD = \
5642 test_inhibit_SOURCES = \
5643 src/login/test-inhibit.c
5645 test_inhibit_LDADD = \
5648 test_login_tables_SOURCES = \
5649 src/login/test-login-tables.c
5651 test_login_tables_LDADD = \
5663 pam_systemd_la_SOURCES = \
5664 src/login/pam_systemd.sym \
5665 src/login/pam_systemd.c
5667 pam_systemd_la_CFLAGS = \
5671 pam_systemd_la_LDFLAGS = \
5677 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5679 pam_systemd_la_LIBADD = \
5683 pamlib_LTLIBRARIES = \
5686 dist_pamconf_DATA = \
5687 src/login/systemd-user
5690 src/login/systemd-user.m4
5693 nodist_systemunit_DATA += \
5694 units/systemd-logind.service
5696 dist_systemunit_DATA += \
5699 dist_systemunit_DATA_busnames += \
5700 units/org.freedesktop.login1.busname
5702 dist_dbussystemservice_DATA += \
5703 src/login/org.freedesktop.login1.service
5705 dist_dbuspolicy_DATA += \
5706 src/login/org.freedesktop.login1.conf
5708 dist_pkgsysconf_DATA += \
5709 src/login/logind.conf
5711 polkitpolicy_files += \
5712 src/login/org.freedesktop.login1.policy
5717 MULTI_USER_TARGET_WANTS += \
5718 systemd-logind.service
5720 SYSTEM_UNIT_ALIASES += \
5721 systemd-logind.service dbus-org.freedesktop.login1.service
5723 BUSNAMES_TARGET_WANTS += \
5724 org.freedesktop.login1.busname
5726 dist_udevrules_DATA += \
5727 src/login/70-uaccess.rules \
5728 src/login/70-power-switch.rules
5730 nodist_udevrules_DATA += \
5731 src/login/71-seat.rules \
5732 src/login/73-seat-late.rules
5736 polkitpolicy_in_files += \
5737 src/login/org.freedesktop.login1.policy.in
5739 gperf_gperf_sources += \
5740 src/login/logind-gperf.gperf
5743 src/login/71-seat.rules.in \
5744 src/login/73-seat-late.rules.in \
5745 units/systemd-logind.service.in
5747 # ------------------------------------------------------------------------------
5750 systemd_user_sessions_SOURCES = \
5751 src/user-sessions/user-sessions.c
5753 systemd_user_sessions_LDADD = \
5756 rootlibexec_PROGRAMS += \
5757 systemd-user-sessions
5759 nodist_systemunit_DATA += \
5760 units/systemd-user-sessions.service
5762 MULTI_USER_TARGET_WANTS += \
5763 systemd-user-sessions.service
5768 units/systemd-user-sessions.service.in
5770 # ------------------------------------------------------------------------------
5773 test/README.testsuite \
5774 test/TEST-01-BASIC \
5775 test/TEST-01-BASIC/Makefile \
5776 test/TEST-01-BASIC/test.sh \
5777 test/TEST-02-CRYPTSETUP \
5778 test/TEST-02-CRYPTSETUP/Makefile \
5779 test/TEST-02-CRYPTSETUP/test.sh \
5781 test/TEST-03-JOBS/Makefile \
5782 test/TEST-03-JOBS/test-jobs.sh \
5783 test/TEST-03-JOBS/test.sh \
5784 test/TEST-04-JOURNAL/Makefile \
5785 test/TEST-04-JOURNAL/test-journal.sh \
5786 test/TEST-04-JOURNAL/test.sh \
5787 test/TEST-05-RLIMITS/Makefile \
5788 test/TEST-05-RLIMITS/test-rlimits.sh \
5789 test/TEST-05-RLIMITS/test.sh \
5793 test/loopy2.service \
5794 test/loopy3.service \
5795 test/loopy4.service \
5796 test/loopy.service \
5797 test/loopy.service.d \
5798 test/loopy.service.d/compat.conf
5800 # ------------------------------------------------------------------------------
5801 if ENABLE_COMPAT_LIBS
5802 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5803 $(AM_V_at)$(MKDIR_P) $(dir $@)
5804 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5807 libsystemd-journal.c \
5808 libsystemd-login.c \
5809 libsystemd-id128.c \
5812 nodist_libsystemd_journal_la_SOURCES = \
5813 libsystemd-journal.c
5815 libsystemd_journal_la_SOURCES = \
5816 src/compat-libs/libsystemd-journal.sym
5818 libsystemd_journal_la_CPPFLAGS = \
5820 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5822 libsystemd_journal_la_LDFLAGS = \
5824 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5825 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5827 libsystemd_journal_la_LIBADD = \
5828 libsystemd-journal-internal.la \
5829 libsystemd-internal.la
5831 nodist_libsystemd_login_la_SOURCES = \
5834 libsystemd_login_la_SOURCES = \
5835 src/compat-libs/libsystemd-login.sym
5837 libsystemd_login_la_CPPFLAGS = \
5839 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5841 libsystemd_login_la_LDFLAGS = \
5843 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5844 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5846 libsystemd_login_la_LIBADD = \
5847 libsystemd-internal.la
5849 nodist_libsystemd_id128_la_SOURCES = \
5852 libsystemd_id128_la_SOURCES = \
5853 src/compat-libs/libsystemd-id128.sym
5855 libsystemd_id128_la_CPPFLAGS = \
5857 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5859 libsystemd_id128_la_LDFLAGS = \
5861 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5862 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5864 libsystemd_id128_la_LIBADD = \
5865 libsystemd-internal.la
5867 nodist_libsystemd_daemon_la_SOURCES = \
5870 libsystemd_daemon_la_SOURCES = \
5871 src/compat-libs/libsystemd-daemon.sym
5873 libsystemd_daemon_la_CPPFLAGS = \
5875 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5877 libsystemd_daemon_la_LDFLAGS = \
5879 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5880 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5882 libsystemd_daemon_la_LIBADD = \
5883 libsystemd-internal.la
5885 lib_LTLIBRARIES += \
5886 libsystemd-journal.la \
5887 libsystemd-login.la \
5888 libsystemd-id128.la \
5889 libsystemd-daemon.la
5891 pkgconfiglib_DATA += \
5892 src/compat-libs/libsystemd-journal.pc \
5893 src/compat-libs/libsystemd-login.pc \
5894 src/compat-libs/libsystemd-id128.pc \
5895 src/compat-libs/libsystemd-daemon.pc
5897 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5898 compat-lib-install-hook:
5899 libname=libsystemd-login.so && $(move-to-rootlibdir)
5900 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5901 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5902 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5904 compat-lib-uninstall-hook:
5905 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5906 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5907 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5908 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5910 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5911 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5915 src/compat-libs/linkwarning.h \
5916 src/compat-libs/libsystemd-journal.pc.in \
5917 src/compat-libs/libsystemd-login.pc.in \
5918 src/compat-libs/libsystemd-id128.pc.in \
5919 src/compat-libs/libsystemd-daemon.pc.in
5921 # ------------------------------------------------------------------------------
5923 '|rootlibexecdir=$(rootlibexecdir)|' \
5924 '|rootbindir=$(rootbindir)|' \
5925 '|bindir=$(bindir)|' \
5926 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5927 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5928 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5929 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5930 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5931 '|pkgdatadir=$(pkgdatadir)|' \
5932 '|systemunitdir=$(systemunitdir)|' \
5933 '|userunitdir=$(userunitdir)|' \
5934 '|systempresetdir=$(systempresetdir)|' \
5935 '|userpresetdir=$(userpresetdir)|' \
5936 '|udevhwdbdir=$(udevhwdbdir)|' \
5937 '|udevrulesdir=$(udevrulesdir)|' \
5938 '|catalogdir=$(catalogdir)|' \
5939 '|tmpfilesdir=$(tmpfilesdir)|' \
5940 '|sysusersdir=$(sysusersdir)|' \
5941 '|sysctldir=$(sysctldir)|' \
5942 '|systemgeneratordir=$(systemgeneratordir)|' \
5943 '|usergeneratordir=$(usergeneratordir)|' \
5944 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5945 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5946 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5947 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5948 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5949 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5950 '|prefix=$(prefix)|' \
5951 '|exec_prefix=$(exec_prefix)|' \
5952 '|libdir=$(libdir)|' \
5953 '|includedir=$(includedir)|' \
5954 '|VERSION=$(VERSION)|' \
5955 '|rootprefix=$(rootprefix)|' \
5956 '|udevlibexecdir=$(udevlibexecdir)|' \
5957 '|SUSHELL=$(SUSHELL)|' \
5958 '|SULOGIN=$(SULOGIN)|' \
5959 '|DEBUGTTY=$(DEBUGTTY)|' \
5962 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5963 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5964 '|MKDIR_P=$(MKDIR_P)|' \
5965 '|QUOTAON=$(QUOTAON)|' \
5966 '|QUOTACHECK=$(QUOTACHECK)|' \
5967 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5968 '|VARLOGDIR=$(varlogdir)|' \
5969 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5970 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5971 '|PYTHON=$(PYTHON)|' \
5972 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5973 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5974 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5975 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5976 '|TTY_GID=$(TTY_GID)|' \
5977 '|systemsleepdir=$(systemsleepdir)|' \
5978 '|systemshutdowndir=$(systemshutdowndir)|' \
5979 '|binfmtdir=$(binfmtdir)|' \
5980 '|modulesloaddir=$(modulesloaddir)|'
5983 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5984 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5993 sysctl.d/%: sysctl.d/%.in
6002 src/core/%.systemd: src/core/%.systemd.in
6005 src/%.policy.in: src/%.policy.in.in
6008 shell-completion/%: shell-completion/%.in
6019 $(AM_V_GEN)chmod +x $@
6021 src/%.c: src/%.gperf
6022 $(AM_V_at)$(MKDIR_P) $(dir $@)
6023 $(AM_V_GPERF)$(GPERF) < $< > $@
6025 src/%: src/%.m4 $(top_builddir)/config.status
6026 $(AM_V_at)$(MKDIR_P) $(dir $@)
6027 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6029 sysusers.d/%: sysusers.d/%.m4 $(top_builddir)/config.status
6030 $(AM_V_at)$(MKDIR_P) $(dir $@)
6031 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6033 tmpfiles.d/%: tmpfiles.d/%.m4 $(top_builddir)/config.status
6034 $(AM_V_at)$(MKDIR_P) $(dir $@)
6035 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6038 units/%: units/%.m4 $(top_builddir)/config.status
6039 $(AM_V_at)$(MKDIR_P) $(dir $@)
6040 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6042 units/user/%: units/user/%.m4 $(top_builddir)/config.status
6043 $(AM_V_at)$(MKDIR_P) $(dir $@)
6044 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6047 nodist_polkitpolicy_DATA = \
6048 $(polkitpolicy_files) \
6049 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6053 $(polkitpolicy_in_files) \
6054 $(polkitpolicy_in_in_files)
6056 # ------------------------------------------------------------------------------
6057 man/custom-entities.ent: configure.ac
6058 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6059 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6060 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6064 man/custom-entities.ent
6069 --stringparam man.output.quietly 1 \
6070 --stringparam funcsynopsis.style ansi \
6071 --stringparam man.authors.section.enabled 0 \
6072 --stringparam man.copyright.section.enabled 0 \
6073 --stringparam systemd.version $(VERSION) \
6074 --path '$(builddir)/man:$(srcdir)/man'
6076 XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
6077 XSLTPROC_PROCESS_MAN = \
6078 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6080 XSLTPROC_PROCESS_HTML = \
6081 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6083 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6084 $(XSLTPROC_PROCESS_MAN)
6086 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6087 $(XSLTPROC_PROCESS_MAN)
6089 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6090 $(XSLTPROC_PROCESS_MAN)
6092 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6093 $(XSLTPROC_PROCESS_MAN)
6095 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6096 $(XSLTPROC_PROCESS_MAN)
6098 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6099 $(XSLTPROC_PROCESS_HTML)
6102 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6106 man/custom-html.xsl \
6109 # ------------------------------------------------------------------------------
6112 docs/sysvinit/README
6117 docs/sysvinit/README: docs/sysvinit/README.in
6120 docs/var-log/README: docs/var-log/README.in
6124 docs/sysvinit/README \
6129 docs/sysvinit/README.in \
6130 docs/var-log/README.in
6132 SOCKETS_TARGET_WANTS += \
6133 systemd-initctl.socket
6137 MULTI_USER_TARGET_WANTS += \
6138 systemd-update-utmp-runlevel.service
6139 GRAPHICAL_TARGET_WANTS += \
6140 systemd-update-utmp-runlevel.service
6141 RESCUE_TARGET_WANTS += \
6142 systemd-update-utmp-runlevel.service
6145 SYSINIT_TARGET_WANTS += \
6146 systemd-update-utmp.service
6149 SYSINIT_TARGET_WANTS += \
6150 systemd-update-done.service
6152 LOCAL_FS_TARGET_WANTS += \
6153 systemd-remount-fs.service \
6155 var-lib-machines.mount
6157 MULTI_USER_TARGET_WANTS += \
6159 systemd-ask-password-wall.path
6161 SYSINIT_TARGET_WANTS += \
6162 dev-hugepages.mount \
6164 sys-kernel-config.mount \
6165 sys-kernel-debug.mount \
6166 sys-fs-fuse-connections.mount \
6167 systemd-sysctl.service \
6168 systemd-ask-password-console.path
6171 SYSTEM_UNIT_ALIASES += \
6172 poweroff.target runlevel0.target \
6173 rescue.target runlevel1.target \
6174 multi-user.target runlevel2.target \
6175 multi-user.target runlevel3.target \
6176 multi-user.target runlevel4.target \
6177 graphical.target runlevel5.target \
6178 reboot.target runlevel6.target
6181 SYSTEM_UNIT_ALIASES += \
6182 graphical.target default.target \
6183 reboot.target ctrl-alt-del.target \
6184 getty@.service autovt@.service
6186 USER_UNIT_ALIASES += \
6187 $(systemunitdir)/shutdown.target shutdown.target \
6188 $(systemunitdir)/sockets.target sockets.target \
6189 $(systemunitdir)/timers.target timers.target \
6190 $(systemunitdir)/paths.target paths.target \
6191 $(systemunitdir)/bluetooth.target bluetooth.target \
6192 $(systemunitdir)/printer.target printer.target \
6193 $(systemunitdir)/sound.target sound.target \
6194 $(systemunitdir)/smartcard.target smartcard.target
6196 USER_UNIT_ALIASES += \
6197 $(systemunitdir)/busnames.target busnames.target
6199 GENERAL_ALIASES += \
6200 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6201 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6202 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6203 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6207 $(systemunitdir)/runlevel1.target.wants \
6208 $(systemunitdir)/runlevel2.target.wants \
6209 $(systemunitdir)/runlevel3.target.wants \
6210 $(systemunitdir)/runlevel4.target.wants \
6211 $(systemunitdir)/runlevel5.target.wants
6215 $(prefix)/lib/modules-load.d \
6216 $(sysconfdir)/modules-load.d \
6217 $(prefix)/lib/systemd/network \
6218 $(sysconfdir)/systemd/network \
6219 $(prefix)/lib/sysctl.d \
6220 $(sysconfdir)/sysctl.d \
6221 $(prefix)/lib/kernel/install.d \
6222 $(sysconfdir)/kernel/install.d \
6223 $(systemshutdowndir) \
6225 $(systemgeneratordir) \
6226 $(usergeneratordir) \
6229 $(pkgsysconfdir)/system \
6230 $(pkgsysconfdir)/system/multi-user.target.wants \
6231 $(pkgsysconfdir)/system/getty.target.wants \
6232 $(pkgsysconfdir)/user \
6233 $(dbussessionservicedir) \
6234 $(sysconfdir)/xdg/systemd
6236 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6238 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6240 install-data-hook: $(INSTALL_DATA_HOOKS)
6242 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6244 clean-local: $(CLEAN_LOCAL_HOOKS)
6245 rm -rf $(abs_srcdir)/install-tree
6246 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6247 $(abs_srcdir)/hwdb/iab.txt
6249 DISTCHECK_CONFIGURE_FLAGS = \
6250 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6251 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6252 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6253 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6254 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6255 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6256 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6257 --with-rootprefix=$$dc_install_base \
6258 --enable-compat-libs
6261 DISTCHECK_CONFIGURE_FLAGS += \
6262 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6263 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6265 DISTCHECK_CONFIGURE_FLAGS += \
6266 --with-sysvinit-path= \
6267 --with-sysvrcnd-path=
6271 DISTCHECK_CONFIGURE_FLAGS += \
6274 DISTCHECK_CONFIGURE_FLAGS += \
6278 .PHONY: dist-check-help
6280 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6281 for i in $(abspath $^); do \
6282 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6283 echo "$(basename $$i) --help output is too wide:"; \
6284 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6290 ( cd $(top_srcdir)/hwdb && \
6291 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6292 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6293 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6294 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6295 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6298 .PHONY: built-sources
6299 built-sources: $(BUILT_SOURCES)
6303 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6307 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6309 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6313 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6317 scp man/*.html gardel:public/systemd-man/
6319 .PHONY: lennart-fedora
6321 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6323 .PHONY: install-tree
6325 rm -rf $(abs_srcdir)/install-tree
6326 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6327 tree $(abs_srcdir)/install-tree
6329 # Let's run all tests of the test suite, but under valgrind. Let's
6330 # exclude perl/python/shell scripts we have in there
6331 .PHONY: valgrind-tests
6332 valgrind-tests: $(TESTS)
6333 $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \
6334 if file $$f | grep -q shell; then \
6335 echo -e "$${x}Skipping non-binary $$f"; else \
6336 echo -e "$${x}Running $$f"; \
6337 $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6342 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6344 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6345 $(AM_V_GEN)sort -u $^ > $@
6347 .PHONY: check-api-docs
6348 check-api-docs: exported man
6349 $(AM_V_GEN)for symbol in `cat exported` ; do \
6350 if test -f $(builddir)/man/$$symbol.html ; then \
6351 echo " Symbol $$symbol() is documented." ; \
6353 echo "‣ Symbol $$symbol() lacks documentation." ; \
6357 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6358 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6360 undefined defined: $(ALL_OBJECTS)
6361 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6362 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6363 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6369 .PHONY: check-api-unused
6370 check-api-unused: defined undefined exported
6371 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6373 .PHONY: check-includes
6374 check-includes: $(top_srcdir)/tools/check-includes.pl
6375 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6376 | xargs $(top_srcdir)/tools/check-includes.pl
6379 $(top_srcdir)/tools/check-includes.pl
6381 # Stupid test that everything purported to be exported really is
6382 define generate-sym-test
6383 $(AM_V_at)$(MKDIR_P) $(dir $@)
6384 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6385 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6386 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6387 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6388 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6389 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6390 $(AM_V_at)printf 'return 0; }\n' >> $@
6393 test-libsystemd-sym.c: \
6394 $(top_builddir)/src/libsystemd/libsystemd.sym \
6395 src/systemd/sd-journal.h \
6396 src/systemd/sd-daemon.h \
6397 src/systemd/sd-login.h \
6398 src/systemd/sd-bus.h \
6399 src/systemd/sd-utf8.h \
6400 src/systemd/sd-resolve.h \
6401 src/systemd/sd-path.h \
6402 src/systemd/sd-event.h
6403 $(generate-sym-test)
6405 test-libudev-sym.c: \
6406 src/libudev/libudev.sym \
6408 $(generate-sym-test)
6410 nodist_test_libsystemd_sym_SOURCES = \
6411 test-libsystemd-sym.c
6412 test_libsystemd_sym_LDADD = \
6415 nodist_test_libudev_sym_SOURCES = \
6417 test_libudev_sym_CFLAGS = \
6419 -Wno-deprecated-declarations
6420 test_libudev_sym_LDADD = \
6424 test-libsystemd-sym.c \
6428 test-libsystemd-sym.c \
6432 test-libsystemd-sym \
6437 cppcheck --enable=all -q $(top_srcdir)
6439 # Used to extract compile flags for YCM.
6444 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6447 tools/gdb-sd_dump_hashmaps.py
6450 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6453 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -