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 if ENABLE_BASH_COMPLETION
159 dist_bashcompletion_DATA = $(dist_bashcompletion_data)
160 nodist_bashcompletion_DATA = $(nodist_bashcompletion_data)
162 if ENABLE_ZSH_COMPLETION
163 dist_zshcompletion_DATA = $(dist_zshcompletion_data)
164 nodist_zshcompletion_DATA = $(nodist_zshcompletion_data)
166 udevlibexec_PROGRAMS =
167 gperf_gperf_sources =
169 in_files = $(filter %.in,$(EXTRA_DIST))
170 in_in_files = $(filter %.in.in, $(in_files))
171 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
173 CLEANFILES = $(BUILT_SOURCES) \
174 $(pkgconfigdata_DATA) \
175 $(pkgconfiglib_DATA) \
176 $(nodist_bashcompletion_data) \
177 $(nodist_zshcompletion_data) \
178 $(in_files:.in=) $(in_in_files:.in.in=) \
181 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
182 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
183 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
186 -include $(top_builddir)/config.h \
187 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
188 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
189 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
190 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
191 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
192 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
193 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
194 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
195 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
196 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
197 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
198 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
199 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
200 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
201 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
202 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
203 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
204 -DROOTPREFIX=\"$(rootprefix)\" \
205 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
206 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
207 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
208 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
209 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
210 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
211 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
212 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
213 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
214 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
215 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
216 -DQUOTACHECK=\"$(QUOTACHECK)\" \
217 -DKEXEC=\"$(KEXEC)\" \
218 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
219 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
220 -DLIBDIR=\"$(libdir)\" \
221 -DROOTLIBDIR=\"$(rootlibdir)\" \
222 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
223 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
224 -I $(top_srcdir)/src \
225 -I $(top_builddir)/src/basic \
226 -I $(top_srcdir)/src/basic \
227 -I $(top_srcdir)/src/shared \
228 -I $(top_builddir)/src/shared \
229 -I $(top_srcdir)/src/network \
230 -I $(top_srcdir)/src/login \
231 -I $(top_srcdir)/src/journal \
232 -I $(top_builddir)/src/journal \
233 -I $(top_srcdir)/src/timedate \
234 -I $(top_srcdir)/src/timesync \
235 -I $(top_srcdir)/src/nspawn \
236 -I $(top_srcdir)/src/resolve \
237 -I $(top_builddir)/src/resolve \
238 -I $(top_srcdir)/src/systemd \
239 -I $(top_builddir)/src/core \
240 -I $(top_srcdir)/src/core \
241 -I $(top_srcdir)/src/libudev \
242 -I $(top_srcdir)/src/udev \
243 -I $(top_srcdir)/src/udev/net \
244 -I $(top_builddir)/src/udev \
245 -I $(top_srcdir)/src/libsystemd/sd-bus \
246 -I $(top_srcdir)/src/libsystemd/sd-event \
247 -I $(top_srcdir)/src/libsystemd/sd-login \
248 -I $(top_srcdir)/src/libsystemd/sd-netlink \
249 -I $(top_srcdir)/src/libsystemd/sd-network \
250 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
251 -I $(top_srcdir)/src/libsystemd/sd-device \
252 -I $(top_srcdir)/src/libsystemd-network \
255 AM_CFLAGS = $(OUR_CFLAGS)
256 AM_LDFLAGS = $(OUR_LDFLAGS)
258 # ------------------------------------------------------------------------------
259 define move-to-rootlibdir
260 if test "$(libdir)" != "$(rootlibdir)"; then \
261 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
262 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
263 rm -f $(DESTDIR)$(libdir)/$$libname && \
264 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
265 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
271 SHUTDOWN_TARGET_WANTS =
272 LOCAL_FS_TARGET_WANTS =
273 MULTI_USER_TARGET_WANTS =
274 GRAPHICAL_TARGET_WANTS =
275 RESCUE_TARGET_WANTS =
276 SYSINIT_TARGET_WANTS =
277 SOCKETS_TARGET_WANTS =
278 BUSNAMES_TARGET_WANTS =
279 TIMERS_TARGET_WANTS =
280 USER_SOCKETS_TARGET_WANTS =
281 USER_DEFAULT_TARGET_WANTS =
282 USER_BUSNAMES_TARGET_WANTS =
284 SYSTEM_UNIT_ALIASES =
288 install-target-wants-hook:
289 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
290 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
291 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
292 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
293 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
294 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
295 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
296 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
297 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
298 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
299 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
301 install-busnames-target-wants-hook:
302 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
303 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
306 [ -z "$$what" ] || ( \
307 dir=$(DESTDIR)$$dir/$$wants.wants && \
308 $(MKDIR_P) -m 0755 $$dir && \
311 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
314 install-directories-hook:
315 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
317 install-aliases-hook:
318 set -- $(SYSTEM_UNIT_ALIASES) && \
319 dir=$(systemunitdir) && $(install-aliases)
320 set -- $(USER_UNIT_ALIASES) && \
321 dir=$(userunitdir) && $(install-relative-aliases)
322 set -- $(GENERAL_ALIASES) && \
323 dir= && $(install-relative-aliases)
325 define install-aliases
326 while [ -n "$$1" ]; do \
327 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
328 rm -f $(DESTDIR)$$dir/$$2 && \
329 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
330 shift 2 || exit $$?; \
334 define install-relative-aliases
335 while [ -n "$$1" ]; do \
336 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
337 rm -f $(DESTDIR)$$dir/$$2 && \
338 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
339 shift 2 || exit $$?; \
343 install-touch-usr-hook:
344 touch -c $(DESTDIR)/$(prefix)
346 INSTALL_EXEC_HOOKS += \
347 install-target-wants-hook \
348 install-directories-hook \
349 install-aliases-hook \
350 install-touch-usr-hook
352 INSTALL_EXEC_HOOKS += \
353 install-busnames-target-wants-hook
355 # ------------------------------------------------------------------------------
356 AM_V_M4 = $(AM_V_M4_$(V))
357 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
358 AM_V_M4_0 = @echo " M4 " $@;
360 AM_V_XSLT = $(AM_V_XSLT_$(V))
361 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
362 AM_V_XSLT_0 = @echo " XSLT " $@;
364 AM_V_GPERF = $(AM_V_GPERF_$(V))
365 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
366 AM_V_GPERF_0 = @echo " GPERF " $@;
368 AM_V_LN = $(AM_V_LN_$(V))
369 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
370 AM_V_LN_0 = @echo " LN " $@;
372 AM_V_RM = $(AM_V_RM_$(V))
373 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
374 AM_V_RM_0 = @echo " RM " $@;
376 # ------------------------------------------------------------------------------
380 systemd-ask-password \
381 systemd-tty-ask-password-agent \
382 systemd-machine-id-setup \
389 systemd-detect-virt \
393 systemd-stdio-bridge \
397 src/kernel-install/kernel-install
399 dist_kernelinstall_SCRIPTS = \
400 src/kernel-install/50-depmod.install \
401 src/kernel-install/90-loaderentry.install
403 rootlibexec_PROGRAMS = \
405 systemd-cgroups-agent \
409 systemd-reply-password \
415 systemd-socket-proxyd \
419 rootlibexec_PROGRAMS += \
423 systemgenerator_PROGRAMS = \
424 systemd-getty-generator \
425 systemd-fstab-generator \
426 systemd-system-update-generator \
427 systemd-debug-generator
429 dist_bashcompletion_data = \
430 shell-completion/bash/busctl \
431 shell-completion/bash/journalctl \
432 shell-completion/bash/systemd-analyze \
433 shell-completion/bash/systemd-cat \
434 shell-completion/bash/systemd-cgls \
435 shell-completion/bash/systemd-cgtop \
436 shell-completion/bash/systemd-delta \
437 shell-completion/bash/systemd-detect-virt \
438 shell-completion/bash/systemd-nspawn \
439 shell-completion/bash/systemd-path \
440 shell-completion/bash/systemd-run \
441 shell-completion/bash/udevadm \
442 shell-completion/bash/kernel-install
444 nodist_bashcompletion_data = \
445 shell-completion/bash/systemctl
447 dist_zshcompletion_data = \
448 shell-completion/zsh/_busctl \
449 shell-completion/zsh/_journalctl \
450 shell-completion/zsh/_udevadm \
451 shell-completion/zsh/_kernel-install \
452 shell-completion/zsh/_systemd-nspawn \
453 shell-completion/zsh/_systemd-analyze \
454 shell-completion/zsh/_systemd-run \
455 shell-completion/zsh/_sd_hosts_or_user_at_host \
456 shell-completion/zsh/_sd_outputmodes \
457 shell-completion/zsh/_sd_unit_files \
458 shell-completion/zsh/_systemd-delta \
459 shell-completion/zsh/_systemd
461 nodist_zshcompletion_data = \
462 shell-completion/zsh/_systemctl
465 shell-completion/bash/systemctl.in \
466 shell-completion/zsh/_systemctl.in
469 sysctl.d/50-default.conf
471 dist_systemunit_DATA = \
472 units/graphical.target \
473 units/multi-user.target \
474 units/emergency.target \
475 units/sysinit.target \
481 units/local-fs.target \
482 units/local-fs-pre.target \
483 units/initrd.target \
484 units/initrd-fs.target \
485 units/initrd-root-fs.target \
486 units/remote-fs.target \
487 units/remote-fs-pre.target \
488 units/network.target \
489 units/network-pre.target \
490 units/network-online.target \
491 units/nss-lookup.target \
492 units/nss-user-lookup.target \
493 units/poweroff.target \
494 units/reboot.target \
495 units/rescue.target \
496 units/rpcbind.target \
497 units/time-sync.target \
498 units/shutdown.target \
500 units/umount.target \
501 units/sigpwr.target \
503 units/sockets.target \
504 units/timers.target \
506 units/suspend.target \
508 units/slices.target \
511 units/systemd-initctl.socket \
512 units/syslog.socket \
513 units/dev-hugepages.mount \
514 units/dev-mqueue.mount \
515 units/sys-kernel-config.mount \
516 units/sys-kernel-debug.mount \
517 units/sys-fs-fuse-connections.mount \
519 units/var-lib-machines.mount \
520 units/printer.target \
522 units/bluetooth.target \
523 units/smartcard.target \
524 units/systemd-ask-password-wall.path \
525 units/systemd-ask-password-console.path \
526 units/systemd-udevd-control.socket \
527 units/systemd-udevd-kernel.socket \
528 units/system-update.target \
529 units/initrd-switch-root.target \
530 units/machines.target
532 dist_systemunit_DATA += \
533 $(dist_systemunit_DATA_busnames)
535 dist_systemunit_DATA_busnames += \
536 units/busnames.target
538 nodist_systemunit_DATA = \
539 units/getty@.service \
540 units/serial-getty@.service \
541 units/console-shell.service \
542 units/console-getty.service \
543 units/container-getty@.service \
544 units/systemd-initctl.service \
545 units/systemd-remount-fs.service \
546 units/systemd-ask-password-wall.service \
547 units/systemd-ask-password-console.service \
548 units/systemd-sysctl.service \
549 units/emergency.service \
550 units/rescue.service \
551 units/user@.service \
552 units/systemd-suspend.service \
553 units/systemd-halt.service \
554 units/systemd-poweroff.service \
555 units/systemd-reboot.service \
556 units/systemd-kexec.service \
557 units/systemd-exit.service \
558 units/systemd-fsck@.service \
559 units/systemd-fsck-root.service \
560 units/systemd-machine-id-commit.service \
561 units/systemd-udevd.service \
562 units/systemd-udev-trigger.service \
563 units/systemd-udev-settle.service \
564 units/systemd-hwdb-update.service \
565 units/debug-shell.service \
566 units/initrd-parse-etc.service \
567 units/initrd-cleanup.service \
568 units/initrd-udevadm-cleanup-db.service \
569 units/initrd-switch-root.service \
570 units/systemd-nspawn@.service \
571 units/systemd-update-done.service
574 nodist_systemunit_DATA += \
575 units/systemd-update-utmp.service \
576 units/systemd-update-utmp-runlevel.service
579 dist_userunit_DATA = \
580 units/user/basic.target \
581 units/user/default.target \
582 units/user/exit.target
584 nodist_userunit_DATA = \
585 units/user/systemd-exit.service
587 dist_systempreset_DATA = \
588 system-preset/90-systemd.preset
591 units/getty@.service.m4 \
592 units/serial-getty@.service.m4 \
593 units/console-shell.service.m4.in \
594 units/console-getty.service.m4.in \
595 units/container-getty@.service.m4.in \
596 units/rescue.service.in \
597 units/systemd-initctl.service.in \
598 units/systemd-remount-fs.service.in \
599 units/systemd-update-utmp.service.in \
600 units/systemd-update-utmp-runlevel.service.in \
601 units/systemd-ask-password-wall.service.in \
602 units/systemd-ask-password-console.service.in \
603 units/systemd-sysctl.service.in \
604 units/emergency.service.in \
605 units/systemd-halt.service.in \
606 units/systemd-poweroff.service.in \
607 units/systemd-reboot.service.in \
608 units/systemd-kexec.service.in \
609 units/systemd-exit.service.in \
610 units/user/systemd-exit.service.in \
611 units/systemd-fsck@.service.in \
612 units/systemd-fsck-root.service.in \
613 units/systemd-machine-id-commit.service.in \
614 units/user@.service.m4.in \
615 units/debug-shell.service.in \
616 units/systemd-suspend.service.in \
617 units/quotaon.service.in \
618 units/initrd-parse-etc.service.in \
619 units/initrd-cleanup.service.in \
620 units/initrd-udevadm-cleanup-db.service.in \
621 units/initrd-switch-root.service.in \
622 units/systemd-nspawn@.service.in \
623 units/systemd-update-done.service.in \
627 nodist_systemunit_DATA += \
628 units/rc-local.service \
629 units/halt-local.service
631 systemgenerator_PROGRAMS += \
632 systemd-sysv-generator \
633 systemd-rc-local-generator
637 src/systemctl/systemd-sysv-install.SKELETON \
638 units/rc-local.service.in \
639 units/halt-local.service.in
641 # automake is broken and can't handle files with a dash in front
642 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
644 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
646 units-uninstall-hook:
647 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
649 INSTALL_DATA_HOOKS += units-install-hook
650 UNINSTALL_DATA_HOOKS += units-uninstall-hook
659 src/libsystemd/sd-bus/PORTING-DBUS1 \
660 src/libsystemd/sd-bus/DIFFERENCES \
661 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
673 @INTLTOOL_POLICY_RULE@
675 # ------------------------------------------------------------------------------
680 include Makefile-man.am
682 .PHONY: man update-man-list
683 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
686 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
688 ${XML_FILES:.xml=.html}
690 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
710 $(AM_V_at)$(MKDIR_P) $(dir $@)
711 $(AM_V_LN)$(LN_S) -f ../../man $@
713 man/index.html: man/systemd.index.html
714 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
724 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
725 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
726 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
728 # This target should only be run manually. It recreates Makefile-man.am
729 # file in the source directory based on all man/*.xml files. Run it after
730 # adding, removing, or changing the conditional in a man page.
731 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
732 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
733 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
734 @echo "Makefile-man.am has been regenerated"
736 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
737 $(AM_V_at)$(MKDIR_P) $(dir $@)
738 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
740 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
741 $(AM_V_at)$(MKDIR_P) $(dir $@)
742 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
745 man/systemd.index.xml \
746 man/systemd.directives.xml
749 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
750 tools/make-man-index.py \
751 tools/make-man-rules.py \
752 tools/make-directive-index.py \
753 tools/xml_helper.py \
754 man/glib-event-glue.c
756 # ------------------------------------------------------------------------------
757 noinst_LTLIBRARIES += \
760 libbasic_la_SOURCES = \
761 src/basic/missing.h \
762 src/basic/capability-util.c \
763 src/basic/capability-util.h \
764 src/basic/c-rbtree.c \
765 src/basic/c-rbtree.h \
766 src/basic/conf-files.c \
767 src/basic/conf-files.h \
768 src/basic/stdio-util.h \
769 src/basic/hostname-util.h \
770 src/basic/hostname-util.c \
771 src/basic/unit-name.c \
772 src/basic/unit-name.h \
774 src/basic/securebits.h \
775 src/basic/special.h \
777 src/basic/unaligned.h \
780 src/basic/sparse-endian.h \
784 src/basic/io-util.c \
785 src/basic/io-util.h \
786 src/basic/string-util.c \
787 src/basic/string-util.h \
788 src/basic/fd-util.c \
789 src/basic/fd-util.h \
790 src/basic/parse-util.c \
791 src/basic/parse-util.h \
792 src/basic/user-util.c \
793 src/basic/user-util.h \
794 src/basic/rlimit-util.c \
795 src/basic/rlimit-util.h \
796 src/basic/dirent-util.c \
797 src/basic/dirent-util.h \
798 src/basic/xattr-util.c \
799 src/basic/xattr-util.h \
800 src/basic/chattr-util.c \
801 src/basic/chattr-util.h \
802 src/basic/proc-cmdline.c \
803 src/basic/proc-cmdline.h \
804 src/basic/fs-util.c \
805 src/basic/fs-util.h \
806 src/basic/syslog-util.c \
807 src/basic/syslog-util.h \
808 src/basic/stat-util.c \
809 src/basic/stat-util.h \
810 src/basic/mount-util.c \
811 src/basic/mount-util.h \
812 src/basic/hexdecoct.c \
813 src/basic/hexdecoct.h \
814 src/basic/glob-util.h \
815 src/basic/glob-util.c \
816 src/basic/extract-word.c \
817 src/basic/extract-word.h \
820 src/basic/cpu-set-util.c \
821 src/basic/cpu-set-util.h \
822 src/basic/lockfile-util.c \
823 src/basic/lockfile-util.h \
824 src/basic/path-util.c \
825 src/basic/path-util.h \
826 src/basic/time-util.c \
827 src/basic/time-util.h \
828 src/basic/locale-util.c \
829 src/basic/locale-util.h \
830 src/basic/umask-util.h \
831 src/basic/signal-util.c \
832 src/basic/signal-util.h \
833 src/basic/string-table.c \
834 src/basic/string-table.h \
835 src/basic/mempool.c \
836 src/basic/mempool.h \
837 src/basic/hashmap.c \
838 src/basic/hashmap.h \
839 src/basic/hash-funcs.c \
840 src/basic/hash-funcs.h \
841 src/basic/siphash24.c \
842 src/basic/siphash24.h \
844 src/basic/ordered-set.h \
845 src/basic/ordered-set.c \
852 src/basic/web-util.c \
853 src/basic/web-util.h \
856 src/basic/env-util.c \
857 src/basic/env-util.h \
860 src/basic/strxcpyx.c \
861 src/basic/strxcpyx.h \
864 src/basic/bus-label.c \
865 src/basic/bus-label.h \
866 src/basic/ratelimit.h \
867 src/basic/ratelimit.c \
868 src/basic/exit-status.c \
869 src/basic/exit-status.h \
872 src/basic/smack-util.c \
873 src/basic/smack-util.h \
874 src/basic/device-nodes.c \
875 src/basic/device-nodes.h \
878 src/basic/gunicode.c \
879 src/basic/gunicode.h \
880 src/basic/socket-util.c \
881 src/basic/socket-util.h \
882 src/basic/in-addr-util.c \
883 src/basic/in-addr-util.h \
884 src/basic/ether-addr-util.h \
885 src/basic/ether-addr-util.c \
886 src/basic/replace-var.c \
887 src/basic/replace-var.h \
888 src/basic/clock-util.c \
889 src/basic/clock-util.h \
890 src/basic/calendarspec.c \
891 src/basic/calendarspec.h \
894 src/basic/MurmurHash2.c \
895 src/basic/MurmurHash2.h \
898 src/basic/cgroup-util.c \
899 src/basic/cgroup-util.h \
900 src/basic/errno-list.c \
901 src/basic/errno-list.h \
902 src/basic/af-list.c \
903 src/basic/af-list.h \
904 src/basic/arphrd-list.c \
905 src/basic/arphrd-list.h \
906 src/basic/terminal-util.c \
907 src/basic/terminal-util.h \
908 src/basic/login-util.h \
909 src/basic/login-util.c \
910 src/basic/cap-list.c \
911 src/basic/cap-list.h \
912 src/basic/audit-util.c \
913 src/basic/audit-util.h \
918 src/basic/barrier.c \
919 src/basic/barrier.h \
922 src/basic/memfd-util.c \
923 src/basic/memfd-util.h \
924 src/basic/process-util.c \
925 src/basic/process-util.h \
926 src/basic/random-util.c \
927 src/basic/random-util.h \
933 src/basic/socket-label.c \
936 src/basic/btrfs-util.c \
937 src/basic/btrfs-util.h \
938 src/basic/btrfs-ctree.h \
939 src/basic/selinux-util.c \
940 src/basic/selinux-util.h \
941 src/basic/mkdir-label.c \
942 src/basic/fileio-label.c \
943 src/basic/fileio-label.h \
948 src/basic/alloc-util.h \
949 src/basic/alloc-util.c \
950 src/basic/formats-util.h \
953 nodist_libbasic_la_SOURCES = \
954 src/basic/errno-from-name.h \
955 src/basic/errno-to-name.h \
956 src/basic/af-from-name.h \
957 src/basic/af-to-name.h \
958 src/basic/arphrd-from-name.h \
959 src/basic/arphrd-to-name.h \
960 src/basic/cap-from-name.h \
961 src/basic/cap-to-name.h
963 libbasic_la_CFLAGS = \
969 libbasic_la_LIBADD = \
975 # -----------------------------------------------------------------------------
976 noinst_LTLIBRARIES += \
979 libshared_la_SOURCES = \
980 src/shared/output-mode.h \
982 src/shared/udev-util.h \
983 src/shared/linux/auto_dev-ioctl.h \
984 src/shared/initreq.h \
985 src/shared/dns-domain.c \
986 src/shared/dns-domain.h \
987 src/shared/architecture.c \
988 src/shared/architecture.h \
989 src/shared/efivars.c \
990 src/shared/efivars.h \
991 src/shared/fstab-util.c \
992 src/shared/fstab-util.h \
993 src/shared/sleep-config.c \
994 src/shared/sleep-config.h \
995 src/shared/conf-parser.c \
996 src/shared/conf-parser.h \
999 src/shared/spawn-polkit-agent.c \
1000 src/shared/spawn-polkit-agent.h \
1001 src/shared/apparmor-util.c \
1002 src/shared/apparmor-util.h \
1003 src/shared/ima-util.c \
1004 src/shared/ima-util.h \
1005 src/shared/ptyfwd.c \
1006 src/shared/ptyfwd.h \
1007 src/shared/base-filesystem.c \
1008 src/shared/base-filesystem.h \
1009 src/shared/uid-range.c \
1010 src/shared/uid-range.h \
1011 src/shared/install.c \
1012 src/shared/install.h \
1013 src/shared/install-printf.c \
1014 src/shared/install-printf.h \
1015 src/shared/path-lookup.c \
1016 src/shared/path-lookup.h \
1017 src/shared/specifier.c \
1018 src/shared/specifier.h \
1019 src/shared/dev-setup.c \
1020 src/shared/dev-setup.h \
1021 src/shared/dropin.c \
1022 src/shared/dropin.h \
1023 src/shared/condition.c \
1024 src/shared/condition.h \
1025 src/shared/clean-ipc.c \
1026 src/shared/clean-ipc.h \
1027 src/shared/generator.h \
1028 src/shared/generator.c \
1029 src/shared/acpi-fpdt.h \
1030 src/shared/acpi-fpdt.c \
1031 src/shared/boot-timestamps.h \
1032 src/shared/boot-timestamps.c \
1033 src/shared/cgroup-show.c \
1034 src/shared/cgroup-show.h \
1035 src/shared/utmp-wtmp.h \
1036 src/shared/watchdog.c \
1037 src/shared/watchdog.h \
1038 src/shared/spawn-ask-password-agent.c \
1039 src/shared/spawn-ask-password-agent.h \
1040 src/shared/ask-password-api.c \
1041 src/shared/ask-password-api.h \
1042 src/shared/switch-root.h \
1043 src/shared/switch-root.c \
1044 src/shared/import-util.c \
1045 src/shared/import-util.h \
1046 src/shared/sysctl-util.c \
1047 src/shared/sysctl-util.h \
1048 src/shared/bus-util.c \
1049 src/shared/bus-util.h \
1050 src/shared/logs-show.c \
1051 src/shared/logs-show.h \
1052 src/shared/machine-image.c \
1053 src/shared/machine-image.h \
1054 src/shared/machine-pool.c \
1055 src/shared/machine-pool.h \
1056 src/shared/resolve-util.c \
1057 src/shared/resolve-util.h
1060 libshared_la_SOURCES += \
1061 src/shared/utmp-wtmp.c
1065 libshared_la_SOURCES += \
1066 src/shared/seccomp-util.h \
1067 src/shared/seccomp-util.c
1071 libshared_la_SOURCES += \
1072 src/shared/acl-util.c \
1073 src/shared/acl-util.h
1076 libshared_la_CFLAGS = \
1082 libshared_la_LIBADD = \
1083 libsystemd-internal.la \
1084 libsystemd-journal-internal.la \
1085 libudev-internal.la \
1090 # -----------------------------------------------------------------------------
1092 noinst_LTLIBRARIES += \
1095 libfirewall_la_SOURCES = \
1096 src/shared/firewall-util.h \
1097 src/shared/firewall-util.c
1099 libfirewall_la_CFLAGS = \
1103 libfirewall_la_LIBADD = \
1107 # -----------------------------------------------------------------------------
1109 dist_systemunit_DATA += \
1110 units/ldconfig.service
1112 SYSINIT_TARGET_WANTS += \
1116 # ------------------------------------------------------------------------------
1117 noinst_LTLIBRARIES += \
1120 libcore_la_SOURCES = \
1123 src/core/unit-printf.c \
1124 src/core/unit-printf.h \
1127 src/core/manager.c \
1128 src/core/manager.h \
1129 src/core/transaction.c \
1130 src/core/transaction.h \
1131 src/core/load-fragment.c \
1132 src/core/load-fragment.h \
1133 src/core/service.c \
1134 src/core/service.h \
1137 src/core/busname.c \
1138 src/core/busname.h \
1139 src/core/bus-endpoint.c \
1140 src/core/bus-endpoint.h \
1141 src/core/bus-policy.c \
1142 src/core/bus-policy.h \
1149 src/core/automount.c \
1150 src/core/automount.h \
1161 src/core/load-dropin.c \
1162 src/core/load-dropin.h \
1163 src/core/execute.c \
1164 src/core/execute.h \
1169 src/core/dbus-manager.c \
1170 src/core/dbus-manager.h \
1171 src/core/dbus-unit.c \
1172 src/core/dbus-unit.h \
1173 src/core/dbus-job.c \
1174 src/core/dbus-job.h \
1175 src/core/dbus-service.c \
1176 src/core/dbus-service.h \
1177 src/core/dbus-socket.c \
1178 src/core/dbus-socket.h \
1179 src/core/dbus-busname.c \
1180 src/core/dbus-busname.h \
1181 src/core/dbus-target.c \
1182 src/core/dbus-target.h \
1183 src/core/dbus-device.c \
1184 src/core/dbus-device.h \
1185 src/core/dbus-mount.c \
1186 src/core/dbus-mount.h \
1187 src/core/dbus-automount.c \
1188 src/core/dbus-automount.h \
1189 src/core/dbus-swap.c \
1190 src/core/dbus-swap.h \
1191 src/core/dbus-timer.c \
1192 src/core/dbus-timer.h \
1193 src/core/dbus-path.c \
1194 src/core/dbus-path.h \
1195 src/core/dbus-slice.c \
1196 src/core/dbus-slice.h \
1197 src/core/dbus-scope.c \
1198 src/core/dbus-scope.h \
1199 src/core/dbus-execute.c \
1200 src/core/dbus-execute.h \
1201 src/core/dbus-kill.c \
1202 src/core/dbus-kill.h \
1203 src/core/dbus-cgroup.c \
1204 src/core/dbus-cgroup.h \
1207 src/core/selinux-access.c \
1208 src/core/selinux-access.h \
1209 src/core/selinux-setup.c \
1210 src/core/selinux-setup.h \
1211 src/core/smack-setup.c \
1212 src/core/smack-setup.h \
1213 src/core/ima-setup.c \
1214 src/core/ima-setup.h \
1215 src/core/locale-setup.h \
1216 src/core/locale-setup.c \
1217 src/core/hostname-setup.c \
1218 src/core/hostname-setup.h \
1219 src/core/machine-id-setup.c \
1220 src/core/machine-id-setup.h \
1221 src/core/mount-setup.c \
1222 src/core/mount-setup.h \
1223 src/core/kmod-setup.c \
1224 src/core/kmod-setup.h \
1225 src/core/loopback-setup.h \
1226 src/core/loopback-setup.c \
1227 src/core/namespace.c \
1228 src/core/namespace.h \
1229 src/core/killall.h \
1230 src/core/killall.c \
1231 src/core/audit-fd.c \
1232 src/core/audit-fd.h \
1233 src/core/show-status.c \
1234 src/core/show-status.h \
1235 src/core/failure-action.c \
1236 src/core/failure-action.h
1238 nodist_libcore_la_SOURCES = \
1239 src/core/load-fragment-gperf.c \
1240 src/core/load-fragment-gperf-nulstr.c
1242 libcore_la_CFLAGS = \
1247 $(APPARMOR_CFLAGS) \
1251 libcore_la_LIBADD = \
1259 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1260 $(AM_V_at)$(MKDIR_P) $(dir $@)
1261 $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
1263 gperf_gperf_m4_sources = \
1264 src/core/load-fragment-gperf.gperf.m4
1266 gperf_txt_sources = \
1267 src/basic/errno-list.txt \
1268 src/basic/af-list.txt \
1269 src/basic/arphrd-list.txt \
1270 src/basic/cap-list.txt
1273 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1274 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1275 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1276 $(gperf_txt_sources:-list.txt=-from-name.h) \
1277 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
1280 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1282 $(gperf_txt_sources)
1285 $(gperf_gperf_m4_sources) \
1286 $(gperf_gperf_sources)
1289 $(gperf_txt_sources)
1291 %-from-name.gperf: %-list.txt
1292 $(AM_V_at)$(MKDIR_P) $(dir $@)
1293 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1295 %-from-name.h: %-from-name.gperf
1296 $(AM_V_at)$(MKDIR_P) $(dir $@)
1297 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1300 src/basic/errno-list.txt:
1301 $(AM_V_at)$(MKDIR_P) $(dir $@)
1302 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1304 src/basic/errno-to-name.h: src/basic/errno-list.txt
1305 $(AM_V_at)$(MKDIR_P) $(dir $@)
1306 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1309 src/basic/af-list.txt:
1310 $(AM_V_at)$(MKDIR_P) $(dir $@)
1311 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1313 src/basic/af-to-name.h: src/basic/af-list.txt
1314 $(AM_V_at)$(MKDIR_P) $(dir $@)
1315 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1318 src/basic/arphrd-list.txt:
1319 $(AM_V_at)$(MKDIR_P) $(dir $@)
1320 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1322 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1323 $(AM_V_at)$(MKDIR_P) $(dir $@)
1324 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1326 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1327 $(AM_V_at)$(MKDIR_P) $(dir $@)
1328 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1331 src/basic/cap-list.txt:
1332 $(AM_V_at)$(MKDIR_P) $(dir $@)
1333 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
1335 src/basic/cap-to-name.h: src/basic/cap-list.txt
1336 $(AM_V_at)$(MKDIR_P) $(dir $@)
1337 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1339 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1340 $(AM_V_at)$(MKDIR_P) $(dir $@)
1341 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1343 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1344 $(AM_V_at)$(MKDIR_P) $(dir $@)
1345 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1347 audit_list_includes = -include linux/audit.h -include missing.h
1349 audit_list_includes += -include libaudit.h
1352 src/journal/audit_type-list.txt:
1353 $(AM_V_at)$(MKDIR_P) $(dir $@)
1354 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM $(audit_list_includes) - </dev/null | grep -vE 'AUDIT_.*(FIRST|LAST)_' | $(SED) -r -n 's/^#define\s+AUDIT_(\w+)\s+([0-9]{4})\s*$$/\1\t\2/p' | sort -k2 >$@
1356 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1357 $(AM_V_at)$(MKDIR_P) $(dir $@)
1358 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" } {printf " case AUDIT_%s: return \"%s\";\n", $$1, $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@
1361 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1362 $(AM_V_at)$(MKDIR_P) $(dir $@)
1363 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1365 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1366 $(AM_V_at)$(MKDIR_P) $(dir $@)
1367 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@
1369 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1370 $(AM_V_at)$(MKDIR_P) $(dir $@)
1371 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1373 # ------------------------------------------------------------------------------
1385 dist_pkgsysconf_DATA += \
1386 src/core/system.conf \
1389 dist_dbuspolicy_DATA += \
1390 src/core/org.freedesktop.systemd1.conf
1392 dist_dbussystemservice_DATA += \
1393 src/core/org.freedesktop.systemd1.service
1395 polkitpolicy_in_in_files += \
1396 src/core/org.freedesktop.systemd1.policy.in.in
1398 pkgconfigdata_DATA += \
1401 nodist_rpmmacros_DATA = \
1402 src/core/macros.systemd
1405 src/core/systemd.pc.in \
1406 src/core/macros.systemd.in \
1407 src/core/triggers.systemd.in
1409 # ------------------------------------------------------------------------------
1423 test-ipv4ll-manual \
1424 test-ask-password-api
1456 test-hostname-util \
1458 test-terminal-util \
1468 test-strip-tab-ansi \
1504 test-resolve-tables \
1519 test/daughter.service \
1524 test/grandchild.service \
1526 test/hello-after-sleep.target \
1527 test/hello.service \
1529 test/parent-deep.slice \
1531 test/sched_idle_bad.service \
1532 test/sched_idle_ok.service \
1533 test/sched_rr_bad.service \
1534 test/sched_rr_change.service \
1535 test/sched_rr_ok.service \
1536 test/shutdown.target \
1537 test/sleep.service \
1538 test/sockets.target \
1540 test/sysinit.target \
1541 test/testsuite.target \
1542 test/timers.target \
1543 test/unstoppable.service \
1544 test/test-path/paths.target \
1545 test/test-path/basic.target \
1546 test/test-path/sysinit.target \
1547 test/test-path/path-changed.service \
1548 test/test-path/path-directorynotempty.service \
1549 test/test-path/path-existsglob.service \
1550 test/test-path/path-exists.service \
1551 test/test-path/path-makedirectory.service \
1552 test/test-path/path-modified.service \
1553 test/test-path/path-mycustomunit.service \
1554 test/test-path/path-service.service \
1555 test/test-path/path-changed.path \
1556 test/test-path/path-directorynotempty.path \
1557 test/test-path/path-existsglob.path \
1558 test/test-path/path-exists.path \
1559 test/test-path/path-makedirectory.path \
1560 test/test-path/path-modified.path \
1561 test/test-path/path-unit.path \
1562 test/test-execute/exec-environment-empty.service \
1563 test/test-execute/exec-environment-multiple.service \
1564 test/test-execute/exec-environment.service \
1565 test/test-execute/exec-passenvironment-absent.service \
1566 test/test-execute/exec-passenvironment-empty.service \
1567 test/test-execute/exec-passenvironment-repeated.service \
1568 test/test-execute/exec-passenvironment.service \
1569 test/test-execute/exec-group.service \
1570 test/test-execute/exec-ignoresigpipe-no.service \
1571 test/test-execute/exec-ignoresigpipe-yes.service \
1572 test/test-execute/exec-personality-x86-64.service \
1573 test/test-execute/exec-personality-x86.service \
1574 test/test-execute/exec-personality-s390.service \
1575 test/test-execute/exec-privatedevices-no.service \
1576 test/test-execute/exec-privatedevices-yes.service \
1577 test/test-execute/exec-privatetmp-no.service \
1578 test/test-execute/exec-privatetmp-yes.service \
1579 test/test-execute/exec-systemcallerrornumber.service \
1580 test/test-execute/exec-systemcallfilter-failing2.service \
1581 test/test-execute/exec-systemcallfilter-failing.service \
1582 test/test-execute/exec-systemcallfilter-not-failing2.service \
1583 test/test-execute/exec-systemcallfilter-not-failing.service \
1584 test/test-execute/exec-user.service \
1585 test/test-execute/exec-workingdirectory.service \
1586 test/test-execute/exec-umask-0177.service \
1587 test/test-execute/exec-umask-default.service \
1588 test/test-execute/exec-privatenetwork-yes.service \
1589 test/test-execute/exec-environmentfile.service \
1590 test/test-execute/exec-oomscoreadjust-positive.service \
1591 test/test-execute/exec-oomscoreadjust-negative.service \
1592 test/test-execute/exec-ioschedulingclass-best-effort.service \
1593 test/test-execute/exec-ioschedulingclass-idle.service \
1594 test/test-execute/exec-ioschedulingclass-none.service \
1595 test/test-execute/exec-ioschedulingclass-realtime.service \
1596 test/test-execute/exec-capabilityboundingset-invert.service \
1597 test/test-execute/exec-capabilityboundingset-merge.service \
1598 test/test-execute/exec-capabilityboundingset-reset.service \
1599 test/test-execute/exec-capabilityboundingset-simple.service \
1600 test/bus-policy/hello.conf \
1601 test/bus-policy/methods.conf \
1602 test/bus-policy/ownerships.conf \
1603 test/bus-policy/signals.conf \
1604 test/bus-policy/check-own-rules.conf \
1605 test/bus-policy/many-rules.conf \
1606 test/bus-policy/test.conf
1610 src/test/test-helper.h
1612 test_device_nodes_SOURCES = \
1613 src/test/test-device-nodes.c
1615 test_device_nodes_LDADD = \
1618 test_engine_SOURCES = \
1619 src/test/test-engine.c
1621 test_engine_CFLAGS = \
1626 test_engine_LDADD = \
1629 test_job_type_SOURCES = \
1630 src/test/test-job-type.c
1632 test_job_type_CFLAGS = \
1637 test_job_type_LDADD = \
1650 test_loopback_SOURCES = \
1651 src/test/test-loopback.c
1653 test_loopback_LDADD = \
1656 test_hostname_SOURCES = \
1657 src/test/test-hostname.c
1659 test_hostname_LDADD = \
1662 test_dns_domain_SOURCES = \
1663 src/test/test-dns-domain.c
1665 test_dns_domain_LDADD = \
1666 libsystemd-network.la \
1669 test_resolve_tables_SOURCES = \
1670 src/resolve/test-resolve-tables.c \
1671 src/shared/test-tables.h \
1672 src/resolve/dns-type.c \
1673 src/resolve/dns-type.h \
1674 src/resolve/dns_type-from-name.h \
1675 src/resolve/dns_type-to-name.h
1677 test_resolve_tables_LDADD = \
1684 test_boot_timestamp_SOURCES = \
1685 src/test/test-boot-timestamps.c
1687 test_boot_timestamp_LDADD = \
1691 test_unit_name_SOURCES = \
1692 src/test/test-unit-name.c
1694 test_unit_name_CFLAGS = \
1699 test_unit_name_LDADD = \
1702 test_unit_file_SOURCES = \
1703 src/test/test-unit-file.c
1705 test_unit_file_CFLAGS = \
1710 test_unit_file_LDADD = \
1713 test_utf8_SOURCES = \
1714 src/test/test-utf8.c
1719 test_capability_SOURCES = \
1720 src/test/test-capability.c
1722 test_capability_LDADD = \
1725 test_async_SOURCES = \
1726 src/test/test-async.c
1728 test_async_LDADD = \
1731 test_locale_util_SOURCES = \
1732 src/test/test-locale-util.c
1734 test_locale_util_LDADD = \
1737 test_copy_SOURCES = \
1738 src/test/test-copy.c
1743 test_sigbus_SOURCES = \
1744 src/test/test-sigbus.c
1746 test_sigbus_LDADD = \
1749 test_rbtree_SOURCES = \
1750 src/test/test-rbtree.c
1752 test_rbtree_LDADD = \
1755 test_condition_SOURCES = \
1756 src/test/test-condition.c
1758 test_condition_LDADD = \
1761 test_fdset_SOURCES = \
1762 src/test/test-fdset.c
1764 test_fdset_LDADD = \
1767 test_fstab_util_SOURCES = \
1768 src/test/test-fstab-util.c
1770 test_fstab_util_LDADD = \
1773 test_ratelimit_SOURCES = \
1774 src/test/test-ratelimit.c
1776 test_ratelimit_LDADD = \
1779 test_util_SOURCES = \
1780 src/test/test-util.c
1785 test_string_util_SOURCES = \
1786 src/test/test-string-util.c
1788 test_string_util_LDADD = \
1791 test_extract_word_SOURCES = \
1792 src/test/test-extract-word.c
1794 test_extract_word_LDADD = \
1797 test_parse_util_SOURCES = \
1798 src/test/test-parse-util.c
1800 test_parse_util_LDADD = \
1803 test_user_util_SOURCES = \
1804 src/test/test-user-util.c
1806 test_user_util_LDADD = \
1809 test_hostname_util_SOURCES = \
1810 src/test/test-hostname-util.c
1812 test_hostname_util_LDADD = \
1815 test_process_util_SOURCES = \
1816 src/test/test-process-util.c
1818 test_process_util_LDADD = \
1821 test_terminal_util_SOURCES = \
1822 src/test/test-terminal-util.c
1824 test_terminal_util_LDADD = \
1827 test_path_lookup_SOURCES = \
1828 src/test/test-path-lookup.c
1830 test_path_lookup_LDADD = \
1833 test_uid_range_SOURCES = \
1834 src/test/test-uid-range.c
1836 test_uid_range_LDADD = \
1839 test_cap_list_SOURCES = \
1840 src/test/test-cap-list.c
1842 test_cap_list_LDADD = \
1845 test_socket_util_SOURCES = \
1846 src/test/test-socket-util.c
1848 test_socket_util_LDADD = \
1851 test_barrier_SOURCES = \
1852 src/test/test-barrier.c
1854 test_barrier_LDADD = \
1857 test_tmpfiles_SOURCES = \
1858 src/test/test-tmpfiles.c
1860 test_tmpfiles_LDADD = \
1863 test_namespace_SOURCES = \
1864 src/test/test-namespace.c
1866 test_verbs_SOURCES = \
1867 src/test/test-verbs.c
1869 test_verbs_LDADD = \
1872 test_install_root_SOURCES = \
1873 src/test/test-install-root.c
1875 test_install_root_LDADD = \
1878 test_acl_util_SOURCES = \
1879 src/test/test-acl-util.c
1881 test_acl_util_LDADD = \
1884 test_namespace_LDADD = \
1887 test_rlimit_util_SOURCES = \
1888 src/test/test-rlimit-util.c
1890 test_rlimit_util_LDADD = \
1893 test_ask_password_api_SOURCES = \
1894 src/test/test-ask-password-api.c
1896 test_ask_password_api_LDADD = \
1899 test_signal_util_SOURCES = \
1900 src/test/test-signal-util.c
1902 test_signal_util_LDADD = \
1906 src/test/test-hashmap-ordered.c
1908 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1909 $(AM_V_at)$(MKDIR_P) $(dir $@)
1910 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1911 { if (!match($$0, "^#include")) \
1912 gsub(/hashmap/, "ordered_hashmap"); \
1913 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1914 gsub(/Hashmap/, "OrderedHashmap"); \
1917 nodist_test_hashmap_SOURCES = \
1918 src/test/test-hashmap-ordered.c
1920 test_hashmap_SOURCES = \
1921 src/test/test-hashmap.c \
1922 src/test/test-hashmap-plain.c
1924 test_hashmap_LDADD = \
1927 test_set_SOURCES = \
1933 test_bitmap_SOURCES = \
1934 src/test/test-bitmap.c
1936 test_bitmap_LDADD = \
1939 test_xml_SOURCES = \
1945 test_json_SOURCES = \
1946 src/test/test-json.c
1951 test_list_SOURCES = \
1952 src/test/test-list.c
1957 test_unaligned_LDADD = \
1960 test_unaligned_SOURCES = \
1961 src/test/test-unaligned.c
1963 test_tables_SOURCES = \
1964 src/test/test-tables.c \
1965 src/shared/test-tables.h \
1966 src/bus-proxyd/bus-xml-policy.c \
1967 src/bus-proxyd/bus-xml-policy.h \
1968 src/journal/journald-server.c \
1969 src/journal/journald-server.h
1971 test_tables_CPPFLAGS = \
1973 -I$(top_srcdir)/src/bus-proxyd
1975 test_tables_CFLAGS = \
1980 test_tables_LDADD = \
1981 libjournal-core.la \
1985 test_prioq_SOURCES = \
1986 src/test/test-prioq.c
1988 test_prioq_LDADD = \
1991 test_fileio_SOURCES = \
1992 src/test/test-fileio.c
1994 test_fileio_LDADD = \
1997 test_time_SOURCES = \
1998 src/test/test-time.c
2003 test_architecture_SOURCES = \
2004 src/test/test-architecture.c
2006 test_architecture_LDADD = \
2009 test_log_SOURCES = \
2015 test_ipcrm_SOURCES = \
2016 src/test/test-ipcrm.c
2018 test_ipcrm_LDADD = \
2021 test_btrfs_SOURCES = \
2022 src/test/test-btrfs.c
2024 test_btrfs_LDADD = \
2028 test_firewall_util_SOURCES = \
2029 src/test/test-firewall-util.c
2031 test_firewall_util_CFLAGS = \
2035 test_firewall_util_LDADD = \
2041 test_netlink_manual_SOURCES = \
2042 src/test/test-netlink-manual.c
2044 test_netlink_manual_CFLAGS = \
2048 test_netlink_manual_LDADD = \
2052 test_ellipsize_SOURCES = \
2053 src/test/test-ellipsize.c
2055 test_ellipsize_LDADD = \
2058 test_date_SOURCES = \
2059 src/test/test-date.c
2064 test_sleep_SOURCES = \
2065 src/test/test-sleep.c
2067 test_sleep_LDADD = \
2070 test_replace_var_SOURCES = \
2071 src/test/test-replace-var.c
2073 test_replace_var_LDADD = \
2076 test_calendarspec_SOURCES = \
2077 src/test/test-calendarspec.c
2079 test_calendarspec_LDADD = \
2082 test_strip_tab_ansi_SOURCES = \
2083 src/test/test-strip-tab-ansi.c
2085 test_strip_tab_ansi_LDADD = \
2088 test_daemon_SOURCES = \
2089 src/test/test-daemon.c
2091 test_daemon_LDADD = \
2094 test_cgroup_SOURCES = \
2095 src/test/test-cgroup.c
2097 test_cgroup_LDADD = \
2100 test_cgroup_mask_SOURCES = \
2101 src/test/test-cgroup-mask.c
2103 test_cgroup_mask_CPPFLAGS = \
2107 test_cgroup_mask_CFLAGS = \
2111 test_cgroup_mask_LDADD = \
2114 test_cgroup_util_SOURCES = \
2115 src/test/test-cgroup-util.c
2117 test_cgroup_util_LDADD = \
2120 test_env_replace_SOURCES = \
2121 src/test/test-env-replace.c
2123 test_env_replace_LDADD = \
2126 test_strbuf_SOURCES = \
2127 src/test/test-strbuf.c
2129 test_strbuf_LDADD = \
2132 test_strv_SOURCES = \
2133 src/test/test-strv.c
2138 test_path_util_SOURCES = \
2139 src/test/test-path-util.c
2141 test_path_util_LDADD = \
2144 test_path_SOURCES = \
2145 src/test/test-path.c
2147 test_path_CFLAGS = \
2154 test_execute_SOURCES = \
2155 src/test/test-execute.c
2157 test_execute_CFLAGS = \
2161 test_execute_LDADD = \
2164 test_siphash24_SOURCES = \
2165 src/test/test-siphash24.c
2167 test_siphash24_LDADD = \
2170 test_strxcpyx_SOURCES = \
2171 src/test/test-strxcpyx.c
2173 test_strxcpyx_LDADD = \
2176 test_install_SOURCES = \
2177 src/test/test-install.c
2179 test_install_LDADD = \
2182 test_watchdog_SOURCES = \
2183 src/test/test-watchdog.c
2185 test_watchdog_LDADD = \
2188 test_sched_prio_SOURCES = \
2189 src/test/test-sched-prio.c
2191 test_sched_prio_CPPFLAGS = \
2195 test_sched_prio_CFLAGS = \
2199 test_sched_prio_LDADD = \
2202 test_conf_files_SOURCES = \
2203 src/test/test-conf-files.c
2205 test_conf_files_LDADD = \
2208 test_conf_parser_SOURCES = \
2209 src/test/test-conf-parser.c
2211 test_conf_parser_LDADD = \
2214 test_bus_policy_SOURCES = \
2215 src/bus-proxyd/test-bus-xml-policy.c
2217 test_bus_policy_LDADD = \
2218 libbus-proxy-core.la \
2221 test_af_list_SOURCES = \
2222 src/test/test-af-list.c
2224 test_af_list_LDADD = \
2227 test_arphrd_list_SOURCES = \
2228 src/test/test-arphrd-list.c
2230 test_arphrd_list_LDADD = \
2233 # ------------------------------------------------------------------------------
2234 ## .PHONY so it always rebuilds it
2235 .PHONY: coverage lcov-run lcov-report coverage-sync
2237 # run lcov from scratch, always
2242 coverage_dir = coverage
2243 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2246 # reset run coverage tests
2248 @rm -rf $(coverage_dir)
2249 lcov $(coverage_opts) --zerocounters
2252 # generate report based on current coverage data
2254 $(MKDIR_P) $(coverage_dir)
2255 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2256 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2257 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2258 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2259 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2261 # lcov doesn't work properly with vpath builds, make sure that bad
2262 # output is not uploaded by mistake.
2263 coverage-sync: coverage
2264 test "$(builddir)" = "$(srcdir)"
2265 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2268 lcov-run lcov-report:
2269 echo "Need to reconfigure with --enable-coverage"
2272 # ------------------------------------------------------------------------------
2273 systemd_analyze_SOURCES = \
2274 src/analyze/analyze.c \
2275 src/analyze/analyze-verify.c \
2276 src/analyze/analyze-verify.h
2278 systemd_analyze_CFLAGS = \
2283 systemd_analyze_LDADD = \
2286 # ------------------------------------------------------------------------------
2287 systemd_initctl_SOURCES = \
2288 src/initctl/initctl.c
2290 systemd_initctl_LDADD = \
2293 # ------------------------------------------------------------------------------
2294 systemd_update_utmp_SOURCES = \
2295 src/update-utmp/update-utmp.c
2297 systemd_update_utmp_CFLAGS = \
2301 systemd_update_utmp_LDADD = \
2305 # ------------------------------------------------------------------------------
2306 systemd_update_done_SOURCES = \
2307 src/update-done/update-done.c
2309 systemd_update_done_LDADD = \
2312 # ------------------------------------------------------------------------------
2313 systemd_shutdown_SOURCES = \
2316 src/core/shutdown.c \
2317 src/core/mount-setup.c \
2318 src/core/mount-setup.h \
2319 src/core/killall.h \
2322 systemd_shutdown_LDADD = \
2325 # ------------------------------------------------------------------------------
2327 systemd_modules_load_SOURCES = \
2328 src/modules-load/modules-load.c
2330 systemd_modules_load_CFLAGS = \
2334 systemd_modules_load_LDADD = \
2338 rootlibexec_PROGRAMS += \
2339 systemd-modules-load
2341 nodist_systemunit_DATA += \
2342 units/systemd-modules-load.service
2344 SYSINIT_TARGET_WANTS += \
2345 systemd-modules-load.service
2348 nodist_systemunit_DATA += \
2349 units/kmod-static-nodes.service
2351 SYSINIT_TARGET_WANTS += \
2352 kmod-static-nodes.service
2357 units/systemd-modules-load.service.in \
2358 units/kmod-static-nodes.service.in
2360 # ------------------------------------------------------------------------------
2362 systemd_tmpfiles_SOURCES = \
2363 src/tmpfiles/tmpfiles.c
2365 systemd_tmpfiles_LDADD = \
2368 rootbin_PROGRAMS += \
2371 dist_systemunit_DATA += \
2372 units/systemd-tmpfiles-clean.timer
2374 nodist_systemunit_DATA += \
2375 units/systemd-tmpfiles-setup-dev.service \
2376 units/systemd-tmpfiles-setup.service \
2377 units/systemd-tmpfiles-clean.service
2379 nodist_tmpfiles_DATA = \
2380 tmpfiles.d/systemd.conf \
2383 dist_tmpfiles_DATA = \
2384 tmpfiles.d/systemd-nologin.conf \
2385 tmpfiles.d/tmp.conf \
2386 tmpfiles.d/x11.conf \
2387 tmpfiles.d/var.conf \
2388 tmpfiles.d/home.conf \
2389 tmpfiles.d/systemd-nspawn.conf \
2390 tmpfiles.d/journal-nocow.conf
2393 dist_tmpfiles_DATA += \
2394 tmpfiles.d/legacy.conf
2397 SYSINIT_TARGET_WANTS += \
2398 systemd-tmpfiles-setup-dev.service \
2399 systemd-tmpfiles-setup.service
2401 dist_zshcompletion_data += \
2402 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 dist_bashcompletion_data += \
2631 shell-completion/bash/bootctl
2633 dist_zshcompletion_data += \
2634 shell-completion/zsh/_bootctl
2637 # ------------------------------------------------------------------------------
2641 -I$(top_builddir) -include config.h \
2642 -I$(EFI_INC_DIR)/efi \
2643 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2644 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2657 -fno-strict-aliasing \
2658 -fno-stack-protector \
2660 -Wno-missing-field-initializers
2667 -DEFI_FUNCTION_WRAPPER \
2668 -DGNU_EFI_USE_MS_ABI
2679 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2685 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2687 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2688 # and add required symbols manually.
2690 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2691 EFI_FORMAT = -O binary
2693 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2698 # ------------------------------------------------------------------------------
2699 systemd_boot_headers = \
2700 src/boot/efi/util.h \
2701 src/boot/efi/console.h \
2702 src/boot/efi/graphics.h \
2703 src/boot/efi/pefile.h \
2706 systemd_boot_sources = \
2707 src/boot/efi/util.c \
2708 src/boot/efi/console.c \
2709 src/boot/efi/graphics.c \
2710 src/boot/efi/pefile.c \
2711 src/boot/efi/disk.c \
2714 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2716 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2717 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2718 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2722 bootlib_DATA = $(systemd_boot)
2724 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2725 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2726 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2728 $(systemd_boot_solib): $(systemd_boot_objects)
2729 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2730 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2731 nm -D -u $@ | grep ' U ' && exit 1 || :
2733 $(systemd_boot): $(systemd_boot_solib)
2734 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2735 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2739 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2741 # ------------------------------------------------------------------------------
2743 src/boot/efi/util.h \
2744 src/boot/efi/pefile.h \
2745 src/boot/efi/disk.h \
2746 src/boot/efi/graphics.h \
2747 src/boot/efi/splash.h \
2748 src/boot/efi/linux.h
2751 src/boot/efi/util.c \
2752 src/boot/efi/pefile.c \
2753 src/boot/efi/disk.c \
2754 src/boot/efi/graphics.c \
2755 src/boot/efi/splash.c \
2756 src/boot/efi/linux.c \
2764 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2765 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2766 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2770 bootlib_DATA += $(stub)
2772 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2773 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2774 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2776 $(stub_solib): $(stub_objects)
2777 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2778 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2779 nm -D -u $@ | grep ' U ' && exit 1 || :
2781 $(stub): $(stub_solib)
2782 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2783 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2787 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2790 # ------------------------------------------------------------------------------
2791 CLEANFILES += test-efi-disk.img
2793 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2794 $(AM_V_GEN)test/test-efi-create-disk.sh
2796 test-efi: test-efi-disk.img
2797 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2799 EXTRA_DIST += test/test-efi-create-disk.sh
2801 # ------------------------------------------------------------------------------
2803 systemgenerator_PROGRAMS += \
2804 systemd-gpt-auto-generator
2806 systemd_gpt_auto_generator_SOURCES = \
2807 src/gpt-auto-generator/gpt-auto-generator.c \
2808 src/basic/blkid-util.h
2810 systemd_gpt_auto_generator_LDADD = \
2814 systemd_gpt_auto_generator_CFLAGS = \
2819 # ------------------------------------------------------------------------------
2820 systemgenerator_PROGRAMS += \
2821 systemd-dbus1-generator
2823 systemd_dbus1_generator_SOURCES = \
2824 src/dbus1-generator/dbus1-generator.c
2826 systemd_dbus1_generator_LDADD = \
2829 dbus1-generator-install-hook:
2830 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2831 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2832 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2834 dbus1-generator-uninstall-hook:
2835 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2837 dist_xinitrc_SCRIPTS = \
2838 xorg/50-systemd-user.sh
2840 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2841 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2843 # ------------------------------------------------------------------------------
2844 systemd_sysv_generator_SOURCES = \
2845 src/sysv-generator/sysv-generator.c
2847 systemd_sysv_generator_LDADD = \
2850 # ------------------------------------------------------------------------------
2851 systemd_rc_local_generator_SOURCES = \
2852 src/rc-local-generator/rc-local-generator.c
2854 systemd_rc_local_generator_LDADD = \
2857 # ------------------------------------------------------------------------------
2858 systemd_remount_fs_SOURCES = \
2859 src/remount-fs/remount-fs.c \
2860 src/core/mount-setup.c \
2861 src/core/mount-setup.h
2863 systemd_remount_fs_LDADD = \
2866 # ------------------------------------------------------------------------------
2867 systemd_cgroups_agent_SOURCES = \
2868 src/cgroups-agent/cgroups-agent.c
2870 systemd_cgroups_agent_LDADD = \
2873 # ------------------------------------------------------------------------------
2874 systemd_escape_SOURCES = \
2877 systemd_escape_LDADD = \
2880 # -----------------------------------------------------------------------------
2881 systemctl_SOURCES = \
2882 src/systemctl/systemctl.c
2887 # ------------------------------------------------------------------------------
2888 systemd_notify_SOURCES = \
2891 systemd_notify_LDADD = \
2894 # ------------------------------------------------------------------------------
2895 systemd_path_SOURCES = \
2898 systemd_path_LDADD = \
2901 # ------------------------------------------------------------------------------
2902 systemd_ask_password_SOURCES = \
2903 src/ask-password/ask-password.c
2905 systemd_ask_password_LDADD = \
2908 # ------------------------------------------------------------------------------
2909 systemd_reply_password_SOURCES = \
2910 src/reply-password/reply-password.c
2912 systemd_reply_password_LDADD = \
2915 # ------------------------------------------------------------------------------
2916 systemd_cgls_SOURCES = \
2919 systemd_cgls_LDADD = \
2922 # ------------------------------------------------------------------------------
2923 systemd_cgtop_SOURCES = \
2926 systemd_cgtop_LDADD = \
2929 # ------------------------------------------------------------------------------
2930 systemd_nspawn_SOURCES = \
2931 src/nspawn/nspawn.c \
2932 src/nspawn/nspawn-settings.c \
2933 src/nspawn/nspawn-settings.h \
2934 src/nspawn/nspawn-mount.c \
2935 src/nspawn/nspawn-mount.h \
2936 src/nspawn/nspawn-network.c \
2937 src/nspawn/nspawn-network.h \
2938 src/nspawn/nspawn-expose-ports.c \
2939 src/nspawn/nspawn-expose-ports.h \
2940 src/nspawn/nspawn-cgroup.c \
2941 src/nspawn/nspawn-cgroup.h \
2942 src/nspawn/nspawn-register.c \
2943 src/nspawn/nspawn-register.h \
2944 src/nspawn/nspawn-setuid.c \
2945 src/nspawn/nspawn-setuid.h \
2946 src/nspawn/nspawn-stub-pid1.c \
2947 src/nspawn/nspawn-stub-pid1.h \
2948 src/core/mount-setup.c \
2949 src/core/mount-setup.h \
2950 src/core/loopback-setup.c \
2951 src/core/loopback-setup.h
2953 nodist_systemd_nspawn_SOURCES = \
2954 src/nspawn/nspawn-gperf.c
2956 gperf_gperf_sources += \
2957 src/nspawn/nspawn-gperf.gperf
2959 systemd_nspawn_CFLAGS = \
2964 systemd_nspawn_LDADD = \
2969 systemd_nspawn_LDADD += \
2973 # ------------------------------------------------------------------------------
2974 systemd_run_SOURCES = \
2977 systemd_run_LDADD = \
2980 # ------------------------------------------------------------------------------
2981 noinst_LTLIBRARIES += \
2982 libbus-proxy-core.la
2984 libbus_proxy_core_la_SOURCES = \
2985 src/bus-proxyd/bus-xml-policy.c \
2986 src/bus-proxyd/bus-xml-policy.h \
2987 src/bus-proxyd/driver.c \
2988 src/bus-proxyd/driver.h \
2989 src/bus-proxyd/proxy.c \
2990 src/bus-proxyd/proxy.h \
2991 src/bus-proxyd/synthesize.c \
2992 src/bus-proxyd/synthesize.h
2994 libbus_proxy_core_la_LIBADD = \
2997 systemd_bus_proxyd_SOURCES = \
2998 src/bus-proxyd/bus-proxyd.c
3000 systemd_bus_proxyd_LDADD = \
3001 libbus-proxy-core.la \
3004 systemd_stdio_bridge_SOURCES = \
3005 src/bus-proxyd/stdio-bridge.c
3007 systemd_stdio_bridge_LDADD = \
3008 libbus-proxy-core.la \
3011 nodist_systemunit_DATA += \
3012 units/systemd-bus-proxyd.service
3014 dist_systemunit_DATA += \
3015 units/systemd-bus-proxyd.socket
3017 nodist_userunit_DATA += \
3018 units/user/systemd-bus-proxyd.service
3020 dist_userunit_DATA += \
3021 units/user/systemd-bus-proxyd.socket
3024 units/systemd-bus-proxyd.service.m4.in \
3025 units/user/systemd-bus-proxyd.service.in
3028 bus-proxyd-set-cap-hook:
3029 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
3031 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
3034 # ------------------------------------------------------------------------------
3035 systemd_tty_ask_password_agent_SOURCES = \
3036 src/tty-ask-password-agent/tty-ask-password-agent.c
3038 systemd_tty_ask_password_agent_LDADD = \
3041 # ------------------------------------------------------------------------------
3042 libsystemd_internal_la_SOURCES = \
3043 src/systemd/sd-bus.h \
3044 src/systemd/sd-bus-protocol.h \
3045 src/systemd/sd-bus-vtable.h \
3046 src/systemd/sd-utf8.h \
3047 src/systemd/sd-event.h \
3048 src/systemd/sd-netlink.h \
3049 src/systemd/sd-resolve.h \
3050 src/systemd/sd-login.h \
3051 src/systemd/sd-id128.h \
3052 src/systemd/sd-daemon.h \
3053 src/systemd/sd-path.h \
3054 src/systemd/sd-network.h \
3055 src/systemd/sd-hwdb.h \
3056 src/systemd/sd-device.h \
3057 src/libsystemd/libsystemd.sym \
3058 src/libsystemd/sd-bus/sd-bus.c \
3059 src/libsystemd/sd-bus/bus-control.c \
3060 src/libsystemd/sd-bus/bus-control.h \
3061 src/libsystemd/sd-bus/bus-error.c \
3062 src/libsystemd/sd-bus/bus-error.h \
3063 src/libsystemd/sd-bus/bus-common-errors.h \
3064 src/libsystemd/sd-bus/bus-common-errors.c \
3065 src/libsystemd/sd-bus/bus-internal.c \
3066 src/libsystemd/sd-bus/bus-internal.h \
3067 src/libsystemd/sd-bus/bus-socket.c \
3068 src/libsystemd/sd-bus/bus-socket.h \
3069 src/libsystemd/sd-bus/bus-kernel.c \
3070 src/libsystemd/sd-bus/bus-kernel.h \
3071 src/libsystemd/sd-bus/bus-container.c \
3072 src/libsystemd/sd-bus/bus-container.h \
3073 src/libsystemd/sd-bus/bus-message.c \
3074 src/libsystemd/sd-bus/bus-message.h \
3075 src/libsystemd/sd-bus/bus-creds.c \
3076 src/libsystemd/sd-bus/bus-creds.h \
3077 src/libsystemd/sd-bus/bus-signature.c \
3078 src/libsystemd/sd-bus/bus-signature.h \
3079 src/libsystemd/sd-bus/bus-type.c \
3080 src/libsystemd/sd-bus/bus-type.h \
3081 src/libsystemd/sd-bus/bus-match.c \
3082 src/libsystemd/sd-bus/bus-match.h \
3083 src/libsystemd/sd-bus/bus-bloom.c \
3084 src/libsystemd/sd-bus/bus-bloom.h \
3085 src/libsystemd/sd-bus/bus-introspect.c \
3086 src/libsystemd/sd-bus/bus-introspect.h \
3087 src/libsystemd/sd-bus/bus-objects.c \
3088 src/libsystemd/sd-bus/bus-objects.h \
3089 src/libsystemd/sd-bus/bus-gvariant.c \
3090 src/libsystemd/sd-bus/bus-gvariant.h \
3091 src/libsystemd/sd-bus/bus-convenience.c \
3092 src/libsystemd/sd-bus/bus-track.c \
3093 src/libsystemd/sd-bus/bus-track.h \
3094 src/libsystemd/sd-bus/bus-slot.c \
3095 src/libsystemd/sd-bus/bus-slot.h \
3096 src/libsystemd/sd-bus/bus-protocol.h \
3097 src/libsystemd/sd-bus/kdbus.h \
3098 src/libsystemd/sd-bus/bus-dump.c \
3099 src/libsystemd/sd-bus/bus-dump.h \
3100 src/libsystemd/sd-utf8/sd-utf8.c \
3101 src/libsystemd/sd-event/sd-event.c \
3102 src/libsystemd/sd-netlink/sd-netlink.c \
3103 src/libsystemd/sd-netlink/netlink-internal.h \
3104 src/libsystemd/sd-netlink/netlink-message.c \
3105 src/libsystemd/sd-netlink/netlink-socket.c \
3106 src/libsystemd/sd-netlink/rtnl-message.c \
3107 src/libsystemd/sd-netlink/netlink-types.h \
3108 src/libsystemd/sd-netlink/netlink-types.c \
3109 src/libsystemd/sd-netlink/netlink-util.h \
3110 src/libsystemd/sd-netlink/netlink-util.c \
3111 src/libsystemd/sd-netlink/local-addresses.h \
3112 src/libsystemd/sd-netlink/local-addresses.c \
3113 src/libsystemd/sd-id128/sd-id128.c \
3114 src/libsystemd/sd-daemon/sd-daemon.c \
3115 src/libsystemd/sd-login/sd-login.c \
3116 src/libsystemd/sd-path/sd-path.c \
3117 src/libsystemd/sd-network/sd-network.c \
3118 src/libsystemd/sd-network/network-util.h \
3119 src/libsystemd/sd-network/network-util.c \
3120 src/libsystemd/sd-hwdb/sd-hwdb.c \
3121 src/libsystemd/sd-hwdb/hwdb-util.h \
3122 src/libsystemd/sd-hwdb/hwdb-internal.h \
3123 src/libsystemd/sd-device/device-internal.h \
3124 src/libsystemd/sd-device/device-util.h \
3125 src/libsystemd/sd-device/device-enumerator.c \
3126 src/libsystemd/sd-device/device-enumerator-private.h \
3127 src/libsystemd/sd-device/sd-device.c \
3128 src/libsystemd/sd-device/device-private.c \
3129 src/libsystemd/sd-device/device-private.h \
3130 src/libsystemd/sd-resolve/sd-resolve.c
3132 libsystemd_internal_la_LIBADD = \
3136 noinst_LTLIBRARIES += \
3137 libsystemd-internal.la
3140 src/libsystemd/libsystemd.pc.in \
3141 src/libsystemd/sd-bus/DIFFERENCES \
3142 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3144 libsystemd_la_SOURCES = \
3145 $(libsystemd_internal_la_SOURCES) \
3146 $(libsystemd_journal_internal_la_SOURCES)
3148 nodist_libsystemd_la_SOURCES = \
3149 $(nodist_libsystemd_internal_la_SOURCES)
3151 libsystemd_la_CFLAGS = \
3152 $(libsystemd_internal_la_CFLAGS) \
3153 $(libsystemd_journal_internal_la_CFLAGS)
3155 libsystemd_la_LDFLAGS = \
3157 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3158 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3160 libsystemd_la_LIBADD = \
3161 $(libsystemd_internal_la_LIBADD) \
3162 $(libsystemd_journal_internal_la_LIBADD)
3164 libsystemd-install-hook:
3165 libname=libsystemd.so && $(move-to-rootlibdir)
3167 libsystemd-uninstall-hook:
3168 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3170 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3171 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3173 pkgconfiglib_DATA += \
3174 src/libsystemd/libsystemd.pc
3176 pkginclude_HEADERS += \
3177 src/systemd/sd-bus.h \
3178 src/systemd/sd-bus-protocol.h \
3179 src/systemd/sd-bus-vtable.h \
3180 src/systemd/sd-event.h \
3181 src/systemd/sd-login.h \
3182 src/systemd/sd-id128.h \
3183 src/systemd/sd-daemon.h
3185 lib_LTLIBRARIES += \
3190 test-bus-signature \
3191 test-bus-benchmark \
3198 test-bus-kernel-bloom \
3199 test-bus-zero-copy \
3200 test-bus-introspect \
3207 test-local-addresses \
3213 test_bus_marshal_SOURCES = \
3214 src/libsystemd/sd-bus/test-bus-marshal.c
3216 test_bus_marshal_LDADD = \
3221 test_bus_marshal_CFLAGS = \
3226 test_bus_signature_SOURCES = \
3227 src/libsystemd/sd-bus/test-bus-signature.c
3229 test_bus_signature_LDADD = \
3232 test_bus_chat_SOURCES = \
3233 src/libsystemd/sd-bus/test-bus-chat.c
3235 test_bus_chat_LDADD = \
3238 test_bus_cleanup_SOURCES = \
3239 src/libsystemd/sd-bus/test-bus-cleanup.c
3241 test_bus_cleanup_CFLAGS = \
3245 test_bus_cleanup_LDADD = \
3248 test_bus_server_SOURCES = \
3249 src/libsystemd/sd-bus/test-bus-server.c
3251 test_bus_server_LDADD = \
3254 test_bus_objects_SOURCES = \
3255 src/libsystemd/sd-bus/test-bus-objects.c
3257 test_bus_objects_LDADD = \
3260 test_bus_error_SOURCES = \
3261 src/libsystemd/sd-bus/test-bus-error.c
3263 test_bus_error_LDADD = \
3266 test_bus_gvariant_SOURCES = \
3267 src/libsystemd/sd-bus/test-bus-gvariant.c
3269 test_bus_gvariant_LDADD = \
3273 test_bus_gvariant_CFLAGS = \
3277 test_bus_creds_SOURCES = \
3278 src/libsystemd/sd-bus/test-bus-creds.c
3280 test_bus_creds_LDADD = \
3283 test_bus_match_SOURCES = \
3284 src/libsystemd/sd-bus/test-bus-match.c
3286 test_bus_match_LDADD = \
3289 test_bus_proxy_SOURCES = \
3290 src/libsystemd/sd-bus/test-bus-proxy.c
3292 test_bus_proxy_LDADD = \
3295 test_bus_kernel_SOURCES = \
3296 src/libsystemd/sd-bus/test-bus-kernel.c
3298 test_bus_kernel_LDADD = \
3301 test_bus_kernel_bloom_SOURCES = \
3302 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3304 test_bus_kernel_bloom_LDADD = \
3307 test_bus_benchmark_SOURCES = \
3308 src/libsystemd/sd-bus/test-bus-benchmark.c
3310 test_bus_benchmark_LDADD = \
3313 test_bus_zero_copy_SOURCES = \
3314 src/libsystemd/sd-bus/test-bus-zero-copy.c
3316 test_bus_zero_copy_LDADD = \
3319 test_bus_introspect_SOURCES = \
3320 src/libsystemd/sd-bus/test-bus-introspect.c
3322 test_bus_introspect_LDADD = \
3325 test_event_SOURCES = \
3326 src/libsystemd/sd-event/test-event.c
3328 test_event_LDADD = \
3331 test_netlink_SOURCES = \
3332 src/libsystemd/sd-netlink/test-netlink.c
3334 test_netlink_LDADD = \
3337 test_local_addresses_SOURCES = \
3338 src/libsystemd/sd-netlink/test-local-addresses.c
3340 test_local_addresses_LDADD = \
3343 test_resolve_SOURCES = \
3344 src/libsystemd/sd-resolve/test-resolve.c
3346 test_resolve_LDADD = \
3350 src/libsystemd/sd-bus/busctl.c \
3351 src/libsystemd/sd-bus/busctl-introspect.c \
3352 src/libsystemd/sd-bus/busctl-introspect.h
3357 # ------------------------------------------------------------------------------
3358 noinst_LTLIBRARIES += \
3359 libsystemd-network.la
3361 libsystemd_network_la_CFLAGS = \
3365 libsystemd_network_la_SOURCES = \
3366 src/systemd/sd-dhcp-client.h \
3367 src/systemd/sd-dhcp-server.h \
3368 src/systemd/sd-dhcp-lease.h \
3369 src/systemd/sd-ipv4ll.h \
3370 src/systemd/sd-ipv4acd.h \
3371 src/systemd/sd-ndisc.h \
3372 src/systemd/sd-dhcp6-client.h \
3373 src/systemd/sd-dhcp6-lease.h \
3374 src/systemd/sd-lldp.h \
3375 src/libsystemd-network/sd-dhcp-client.c \
3376 src/libsystemd-network/sd-dhcp-server.c \
3377 src/libsystemd-network/dhcp-network.c \
3378 src/libsystemd-network/dhcp-option.c \
3379 src/libsystemd-network/dhcp-packet.c \
3380 src/libsystemd-network/dhcp-internal.h \
3381 src/libsystemd-network/dhcp-server-internal.h \
3382 src/libsystemd-network/dhcp-protocol.h \
3383 src/libsystemd-network/dhcp-lease-internal.h \
3384 src/libsystemd-network/sd-dhcp-lease.c \
3385 src/libsystemd-network/sd-ipv4ll.c \
3386 src/libsystemd-network/sd-ipv4acd.c \
3387 src/libsystemd-network/arp-util.h \
3388 src/libsystemd-network/arp-util.c \
3389 src/libsystemd-network/network-internal.c \
3390 src/libsystemd-network/network-internal.h \
3391 src/libsystemd-network/sd-ndisc.c \
3392 src/libsystemd-network/icmp6-util.h \
3393 src/libsystemd-network/icmp6-util.c \
3394 src/libsystemd-network/sd-dhcp6-client.c \
3395 src/libsystemd-network/dhcp6-internal.h \
3396 src/libsystemd-network/dhcp6-protocol.h \
3397 src/libsystemd-network/dhcp6-network.c \
3398 src/libsystemd-network/dhcp6-option.c \
3399 src/libsystemd-network/dhcp6-lease-internal.h \
3400 src/libsystemd-network/sd-dhcp6-lease.c \
3401 src/libsystemd-network/dhcp-identifier.h \
3402 src/libsystemd-network/dhcp-identifier.c \
3403 src/libsystemd-network/lldp.h \
3404 src/libsystemd-network/lldp-tlv.h \
3405 src/libsystemd-network/lldp-tlv.c \
3406 src/libsystemd-network/lldp-network.h \
3407 src/libsystemd-network/lldp-network.c \
3408 src/libsystemd-network/lldp-port.h \
3409 src/libsystemd-network/lldp-port.c \
3410 src/libsystemd-network/lldp-internal.h \
3411 src/libsystemd-network/lldp-internal.c \
3412 src/libsystemd-network/sd-lldp.c
3414 libsystemd_network_la_LIBADD = \
3417 test_dhcp_option_SOURCES = \
3418 src/libsystemd-network/dhcp-protocol.h \
3419 src/libsystemd-network/dhcp-internal.h \
3420 src/libsystemd-network/test-dhcp-option.c
3422 test_dhcp_option_LDADD = \
3423 libsystemd-network.la \
3426 test_dhcp_client_SOURCES = \
3427 src/systemd/sd-dhcp-client.h \
3428 src/libsystemd-network/dhcp-protocol.h \
3429 src/libsystemd-network/dhcp-internal.h \
3430 src/libsystemd-network/test-dhcp-client.c
3432 test_dhcp_client_LDADD = \
3433 libsystemd-network.la \
3436 test_dhcp_server_SOURCES = \
3437 src/libsystemd-network/test-dhcp-server.c
3439 test_dhcp_server_LDADD = \
3440 libsystemd-network.la \
3443 test_ipv4ll_SOURCES = \
3444 src/systemd/sd-ipv4ll.h \
3445 src/libsystemd-network/arp-util.h \
3446 src/libsystemd-network/test-ipv4ll.c
3448 test_ipv4ll_LDADD = \
3449 libsystemd-network.la \
3452 test_ipv4ll_manual_SOURCES = \
3453 src/systemd/sd-ipv4ll.h \
3454 src/libsystemd-network/test-ipv4ll-manual.c
3456 test_ipv4ll_manual_LDADD = \
3457 libsystemd-network.la \
3460 test_acd_SOURCES = \
3461 src/systemd/sd-ipv4acd.h \
3462 src/libsystemd-network/test-acd.c
3465 libsystemd-network.la \
3468 test_ndisc_rs_SOURCES = \
3469 src/systemd/sd-dhcp6-client.h \
3470 src/systemd/sd-ndisc.h \
3471 src/libsystemd-network/icmp6-util.h \
3472 src/libsystemd-network/test-ndisc-rs.c \
3473 src/libsystemd-network/dhcp-identifier.h \
3474 src/libsystemd-network/dhcp-identifier.c
3476 test_ndisc_rs_LDADD = \
3477 libsystemd-network.la \
3481 test_dhcp6_client_SOURCES = \
3482 src/systemd/sd-dhcp6-client.h \
3483 src/libsystemd-network/dhcp6-internal.h \
3484 src/libsystemd-network/test-dhcp6-client.c \
3485 src/libsystemd-network/dhcp-identifier.h \
3486 src/libsystemd-network/dhcp-identifier.c
3488 test_dhcp6_client_LDADD = \
3489 libsystemd-network.la \
3493 test_lldp_SOURCES = \
3494 src/libsystemd-network/lldp.h \
3495 src/libsystemd-network/lldp-tlv.h \
3496 src/libsystemd-network/lldp-tlv.c \
3497 src/libsystemd-network/test-lldp.c
3500 libsystemd-network.la \
3512 # ------------------------------------------------------------------------------
3513 include_HEADERS += \
3514 src/libudev/libudev.h
3516 lib_LTLIBRARIES += \
3519 libudev_la_SOURCES =\
3520 src/libudev/libudev.sym \
3521 src/libudev/libudev-private.h \
3522 src/libudev/libudev-device-internal.h \
3523 src/libudev/libudev.c \
3524 src/libudev/libudev-list.c \
3525 src/libudev/libudev-util.c \
3526 src/libudev/libudev-device.c \
3527 src/libudev/libudev-device-private.c \
3528 src/libudev/libudev-enumerate.c \
3529 src/libudev/libudev-monitor.c \
3530 src/libudev/libudev-queue.c \
3531 src/libudev/libudev-hwdb.c
3533 libudev_la_LDFLAGS = \
3535 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3536 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3538 libudev_la_LIBADD = \
3539 libsystemd-internal.la
3541 pkgconfiglib_DATA += \
3542 src/libudev/libudev.pc
3545 src/libudev/libudev.pc.in
3547 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3548 libudev-install-hook:
3549 libname=libudev.so && $(move-to-rootlibdir)
3551 libudev-uninstall-hook:
3552 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3554 INSTALL_EXEC_HOOKS += libudev-install-hook
3555 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3557 # ------------------------------------------------------------------------------
3558 noinst_LTLIBRARIES += \
3561 libudev_internal_la_SOURCES =\
3562 $(libudev_la_SOURCES)
3564 # ------------------------------------------------------------------------------
3566 $(sysconfdir)/udev/rules.d
3568 dist_network_DATA = \
3569 network/99-default.link \
3570 network/80-container-host0.network \
3571 network/80-container-ve.network
3573 dist_udevrules_DATA += \
3574 rules/50-udev-default.rules \
3575 rules/60-block.rules \
3576 rules/60-drm.rules \
3577 rules/60-evdev.rules \
3578 rules/60-persistent-storage-tape.rules \
3579 rules/60-persistent-input.rules \
3580 rules/60-persistent-alsa.rules \
3581 rules/60-persistent-storage.rules \
3582 rules/60-serial.rules \
3583 rules/64-btrfs.rules \
3584 rules/70-mouse.rules \
3585 rules/75-net-description.rules \
3586 rules/78-sound-card.rules \
3587 rules/80-net-setup-link.rules
3589 nodist_udevrules_DATA += \
3590 rules/99-systemd.rules
3592 udevconfdir = $(sysconfdir)/udev
3593 dist_udevconf_DATA = \
3596 pkgconfigdata_DATA += \
3600 rules/99-systemd.rules.in \
3604 units/systemd-udevd.service.in \
3605 units/systemd-udev-trigger.service.in \
3606 units/systemd-udev-settle.service.in
3608 SOCKETS_TARGET_WANTS += \
3609 systemd-udevd-control.socket \
3610 systemd-udevd-kernel.socket
3612 SYSINIT_TARGET_WANTS += \
3613 systemd-udevd.service \
3614 systemd-udev-trigger.service
3616 rootbin_PROGRAMS += \
3619 rootlibexec_PROGRAMS += \
3622 noinst_LTLIBRARIES += \
3625 src/udev/keyboard-keys-list.txt:
3626 $(AM_V_at)$(MKDIR_P) $(dir $@)
3627 $(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 } }' > $@
3629 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3630 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3632 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3633 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3635 gperf_txt_sources += \
3636 src/udev/keyboard-keys-list.txt
3638 libudev_core_la_SOURCES = \
3640 src/udev/udev-event.c \
3641 src/udev/udev-watch.c \
3642 src/udev/udev-node.c \
3643 src/udev/udev-rules.c \
3644 src/udev/udev-ctrl.c \
3645 src/udev/udev-builtin.c \
3646 src/udev/udev-builtin-btrfs.c \
3647 src/udev/udev-builtin-hwdb.c \
3648 src/udev/udev-builtin-input_id.c \
3649 src/udev/udev-builtin-keyboard.c \
3650 src/udev/udev-builtin-net_id.c \
3651 src/udev/udev-builtin-net_setup_link.c \
3652 src/udev/udev-builtin-path_id.c \
3653 src/udev/udev-builtin-usb_id.c \
3654 src/udev/net/link-config.h \
3655 src/udev/net/link-config.c \
3656 src/udev/net/ethtool-util.h \
3657 src/udev/net/ethtool-util.c
3659 nodist_libudev_core_la_SOURCES = \
3660 src/udev/keyboard-keys-from-name.h \
3661 src/udev/net/link-config-gperf.c
3663 gperf_gperf_sources += \
3664 src/udev/net/link-config-gperf.gperf
3666 libudev_core_la_CFLAGS = \
3671 libudev_core_la_LIBADD = \
3672 libsystemd-network.la \
3678 libudev_core_la_SOURCES += \
3679 src/udev/udev-builtin-kmod.c
3681 dist_udevrules_DATA += \
3682 rules/80-drivers.rules
3686 libudev_core_la_SOURCES += \
3687 src/udev/udev-builtin-blkid.c
3691 libudev_core_la_SOURCES += \
3692 src/udev/udev-builtin-uaccess.c \
3693 src/login/logind-acl.c \
3694 src/libsystemd/sd-login/sd-login.c \
3695 src/systemd/sd-login.h
3698 systemd_udevd_SOURCES = \
3701 systemd_udevd_LDADD = \
3705 src/udev/udevadm.c \
3706 src/udev/udevadm-info.c \
3707 src/udev/udevadm-control.c \
3708 src/udev/udevadm-monitor.c \
3709 src/udev/udevadm-hwdb.c \
3710 src/udev/udevadm-settle.c \
3711 src/udev/udevadm-trigger.c \
3712 src/udev/udevadm-test.c \
3713 src/udev/udevadm-test-builtin.c \
3714 src/udev/udevadm-util.c \
3715 src/udev/udevadm-util.h
3720 # ------------------------------------------------------------------------------
3723 $(sysconfdir)/udev/hwdb.d
3725 systemd_hwdb_SOURCES = \
3726 src/libsystemd/sd-hwdb/hwdb-internal.h \
3729 systemd_hwdb_LDADD = \
3732 rootbin_PROGRAMS += \
3735 dist_udevhwdb_DATA = \
3736 hwdb/20-pci-vendor-model.hwdb \
3737 hwdb/20-pci-classes.hwdb \
3738 hwdb/20-usb-vendor-model.hwdb \
3739 hwdb/20-usb-classes.hwdb \
3740 hwdb/20-sdio-vendor-model.hwdb \
3741 hwdb/20-sdio-classes.hwdb \
3742 hwdb/20-bluetooth-vendor-product.hwdb \
3743 hwdb/20-acpi-vendor.hwdb \
3745 hwdb/20-net-ifname.hwdb \
3746 hwdb/60-evdev.hwdb \
3747 hwdb/60-keyboard.hwdb \
3748 hwdb/70-mouse.hwdb \
3749 hwdb/70-pointingstick.hwdb
3751 SYSINIT_TARGET_WANTS += \
3752 systemd-hwdb-update.service
3754 # Update hwdb on installation. Do not bother if installing
3755 # in DESTDIR, since this is likely for packaging purposes.
3757 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3759 INSTALL_DATA_HOOKS += \
3763 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3767 units/systemd-hwdb-update.service.in \
3768 hwdb/ids-update.pl \
3771 # ------------------------------------------------------------------------------
3778 test/rule-syntax-check.py
3782 test/sysv-generator-test.py
3791 test_libudev_SOURCES = \
3792 src/test/test-libudev.c
3794 test_libudev_LDADD = \
3797 test_udev_SOURCES = \
3798 src/test/test-udev.c
3810 # packed sysfs test tree
3812 $(AM_V_at)$(MKDIR_P) $(dir $@)
3813 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3817 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3822 test/rule-syntax-check.py \
3823 test/sysv-generator-test.py \
3826 # ------------------------------------------------------------------------------
3828 src/udev/ata_id/ata_id.c
3833 udevlibexec_PROGRAMS += \
3836 # ------------------------------------------------------------------------------
3837 cdrom_id_SOURCES = \
3838 src/udev/cdrom_id/cdrom_id.c
3843 udevlibexec_PROGRAMS += \
3846 dist_udevrules_DATA += \
3847 rules/60-cdrom_id.rules
3849 # ------------------------------------------------------------------------------
3851 src/udev/collect/collect.c
3856 udevlibexec_PROGRAMS += \
3859 # ------------------------------------------------------------------------------
3861 src/udev/scsi_id/scsi_id.c \
3862 src/udev/scsi_id/scsi_serial.c \
3863 src/udev/scsi_id/scsi.h \
3864 src/udev/scsi_id/scsi_id.h
3869 udevlibexec_PROGRAMS += \
3873 src/udev/scsi_id/README
3875 # ------------------------------------------------------------------------------
3877 src/udev/v4l_id/v4l_id.c
3882 udevlibexec_PROGRAMS += \
3885 dist_udevrules_DATA += \
3886 rules/60-persistent-v4l.rules
3888 # ------------------------------------------------------------------------------
3889 mtd_probe_SOURCES = \
3890 src/udev/mtd_probe/mtd_probe.c \
3891 src/udev/mtd_probe/mtd_probe.h \
3892 src/udev/mtd_probe/probe_smartmedia.c
3894 dist_udevrules_DATA += \
3895 rules/75-probe_mtd.rules
3897 udevlibexec_PROGRAMS += \
3900 # ------------------------------------------------------------------------------
3901 test_id128_SOURCES = \
3902 src/test/test-id128.c
3904 test_id128_LDADD = \
3910 # ------------------------------------------------------------------------------
3912 rootlibexec_PROGRAMS += \
3915 systemd_activate_SOURCES = \
3916 src/activate/activate.c
3918 systemd_activate_LDADD = \
3921 # ------------------------------------------------------------------------------
3922 systemd_journald_SOURCES = \
3923 src/journal/journald.c \
3924 src/journal/journald-server.h
3926 systemd_journald_LDADD = \
3927 libjournal-core.la \
3930 systemd_cat_SOURCES = \
3933 systemd_cat_LDADD = \
3937 rootlibexec_PROGRAMS += \
3938 systemd-journal-remote
3940 systemd_journal_remote_SOURCES = \
3941 src/journal-remote/journal-remote-parse.h \
3942 src/journal-remote/journal-remote-parse.c \
3943 src/journal-remote/journal-remote-write.h \
3944 src/journal-remote/journal-remote-write.c \
3945 src/journal-remote/journal-remote.h \
3946 src/journal-remote/journal-remote.c
3948 systemd_journal_remote_LDADD = \
3951 systemd_journal_remote_SOURCES += \
3952 src/journal-remote/microhttpd-util.h \
3953 src/journal-remote/microhttpd-util.c
3955 systemd_journal_remote_CFLAGS = \
3957 $(MICROHTTPD_CFLAGS)
3959 systemd_journal_remote_LDADD += \
3963 dist_tmpfiles_DATA += \
3964 tmpfiles.d/systemd-remote.conf
3968 systemd_journal_remote_LDADD += \
3972 # systemd-journal-remote make sense mostly with full crypto stack
3973 dist_systemunit_DATA += \
3974 units/systemd-journal-remote.socket
3976 nodist_systemunit_DATA += \
3977 units/systemd-journal-remote.service
3979 journal-remote-install-hook: journal-install-hook
3980 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3981 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3982 -chmod 755 $(DESTDIR)/var/log/journal/remote
3984 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3986 nodist_pkgsysconf_DATA += \
3987 src/journal-remote/journal-remote.conf
3990 units/systemd-journal-remote.service.in \
3991 src/journal-remote/journal-remote.conf.in \
3992 src/journal-remote/log-generator.py
3996 rootlibexec_PROGRAMS += \
3997 systemd-journal-upload
3999 systemd_journal_upload_SOURCES = \
4000 src/journal-remote/journal-upload.h \
4001 src/journal-remote/journal-upload.c \
4002 src/journal-remote/journal-upload-journal.c
4004 systemd_journal_upload_CFLAGS = \
4008 systemd_journal_upload_LDADD = \
4012 nodist_systemunit_DATA += \
4013 units/systemd-journal-upload.service
4015 nodist_pkgsysconf_DATA += \
4016 src/journal-remote/journal-upload.conf
4020 units/systemd-journal-upload.service.in \
4021 src/journal-remote/journal-upload.conf.in
4023 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4024 journalctl_CFLAGS = \
4027 journalctl_SOURCES = \
4028 src/journal/journalctl.c
4030 journalctl_LDADD = \
4035 journalctl_SOURCES += \
4036 src/journal/journal-qrcode.c \
4037 src/journal/journal-qrcode.h
4039 journalctl_CFLAGS += \
4042 journalctl_LDADD += \
4046 test_journal_SOURCES = \
4047 src/journal/test-journal.c
4049 test_journal_LDADD = \
4052 test_journal_send_SOURCES = \
4053 src/journal/test-journal-send.c
4055 test_journal_send_LDADD = \
4058 test_journal_syslog_SOURCES = \
4059 src/journal/test-journal-syslog.c
4061 test_journal_syslog_LDADD = \
4064 test_journal_match_SOURCES = \
4065 src/journal/test-journal-match.c
4067 test_journal_match_LDADD = \
4070 test_journal_enum_SOURCES = \
4071 src/journal/test-journal-enum.c
4073 test_journal_enum_LDADD = \
4076 test_journal_stream_SOURCES = \
4077 src/journal/test-journal-stream.c
4079 test_journal_stream_LDADD = \
4082 test_journal_flush_SOURCES = \
4083 src/journal/test-journal-flush.c
4085 test_journal_flush_LDADD = \
4088 test_journal_init_SOURCES = \
4089 src/journal/test-journal-init.c
4091 test_journal_init_LDADD = \
4094 test_journal_verify_SOURCES = \
4095 src/journal/test-journal-verify.c
4097 test_journal_verify_LDADD = \
4100 test_journal_interleaving_SOURCES = \
4101 src/journal/test-journal-interleaving.c
4103 test_journal_interleaving_LDADD = \
4106 test_mmap_cache_SOURCES = \
4107 src/journal/test-mmap-cache.c
4109 test_mmap_cache_LDADD = \
4112 test_catalog_SOURCES = \
4113 src/journal/test-catalog.c
4115 test_catalog_CPPFLAGS = \
4117 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4119 test_catalog_LDADD = \
4122 test_compress_SOURCES = \
4123 src/journal/test-compress.c
4125 test_compress_LDADD = \
4128 test_compress_benchmark_SOURCES = \
4129 src/journal/test-compress-benchmark.c
4131 test_compress_benchmark_LDADD = \
4134 test_audit_type_SOURCES = \
4135 src/journal/test-audit-type.c
4137 test_audit_type_LDADD = \
4140 libjournal_core_la_SOURCES = \
4141 src/journal/journald-kmsg.c \
4142 src/journal/journald-kmsg.h \
4143 src/journal/journald-syslog.c \
4144 src/journal/journald-syslog.h \
4145 src/journal/journald-stream.c \
4146 src/journal/journald-stream.h \
4147 src/journal/journald-server.c \
4148 src/journal/journald-server.h \
4149 src/journal/journald-console.c \
4150 src/journal/journald-console.h \
4151 src/journal/journald-wall.c \
4152 src/journal/journald-wall.h \
4153 src/journal/journald-native.c \
4154 src/journal/journald-native.h \
4155 src/journal/journald-audit.c \
4156 src/journal/journald-audit.h \
4157 src/journal/journald-rate-limit.c \
4158 src/journal/journald-rate-limit.h \
4159 src/journal/journal-internal.h
4161 nodist_libjournal_core_la_SOURCES = \
4162 src/journal/journald-gperf.c
4164 libjournal_core_la_LIBADD = \
4167 noinst_LTLIBRARIES += \
4170 journal-install-hook:
4171 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4172 -chown 0:0 $(DESTDIR)/var/log/journal
4173 -chmod 755 $(DESTDIR)/var/log/journal
4174 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4175 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4177 journal-uninstall-hook:
4178 -rmdir $(DESTDIR)/var/log/journal/remote
4179 -rmdir $(DESTDIR)/var/log/journal/
4181 INSTALL_EXEC_HOOKS += journal-install-hook
4182 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4184 # ------------------------------------------------------------------------------
4185 # Update catalog on installation. Do not bother if installing
4186 # in DESTDIR, since this is likely for packaging purposes.
4187 catalog-update-hook:
4188 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4190 INSTALL_DATA_HOOKS += \
4193 catalog-remove-hook:
4194 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4196 UNINSTALL_DATA_HOOKS += \
4205 test-journal-syslog \
4206 test-journal-match \
4207 test-journal-stream \
4209 test-journal-verify \
4210 test-journal-interleaving \
4211 test-journal-flush \
4219 test-compress-benchmark
4222 pkginclude_HEADERS += \
4223 src/systemd/sd-journal.h \
4224 src/systemd/sd-messages.h \
4225 src/systemd/_sd-common.h
4227 libsystemd_journal_internal_la_SOURCES = \
4228 src/journal/sd-journal.c \
4229 src/systemd/sd-journal.h \
4230 src/systemd/_sd-common.h \
4231 src/journal/journal-file.c \
4232 src/journal/journal-file.h \
4233 src/journal/journal-vacuum.c \
4234 src/journal/journal-vacuum.h \
4235 src/journal/journal-verify.c \
4236 src/journal/journal-verify.h \
4237 src/journal/lookup3.c \
4238 src/journal/lookup3.h \
4239 src/journal/journal-send.c \
4240 src/journal/journal-def.h \
4241 src/journal/compress.h \
4242 src/journal/catalog.c \
4243 src/journal/catalog.h \
4244 src/journal/mmap-cache.c \
4245 src/journal/mmap-cache.h \
4246 src/journal/compress.c \
4247 src/journal/audit-type.h \
4248 src/journal/audit-type.c
4250 nodist_libsystemd_journal_internal_la_SOURCES = \
4251 src/journal/audit_type-to-name.h
4253 gperf_txt_sources += \
4254 src/journal/audit_type-list.txt
4256 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4257 libsystemd_journal_internal_la_CFLAGS = \
4260 libsystemd_journal_internal_la_LIBADD =
4263 libsystemd_journal_internal_la_CFLAGS += \
4266 libsystemd_journal_internal_la_LIBADD += \
4271 libsystemd_journal_internal_la_LIBADD += \
4276 libsystemd_journal_internal_la_SOURCES += \
4277 src/journal/journal-authenticate.c \
4278 src/journal/journal-authenticate.h \
4279 src/journal/fsprg.c \
4282 libsystemd_journal_internal_la_LIBADD += \
4285 # fsprg.c is a drop-in file using void pointer arithmetic
4286 libsystemd_journal_internal_la_CFLAGS += \
4291 noinst_LTLIBRARIES += \
4292 libsystemd-journal-internal.la
4294 rootlibexec_PROGRAMS += \
4297 rootbin_PROGRAMS += \
4303 dist_systemunit_DATA += \
4304 units/systemd-journald.socket \
4305 units/systemd-journald-dev-log.socket \
4306 units/systemd-journald-audit.socket
4308 nodist_systemunit_DATA += \
4309 units/systemd-journald.service \
4310 units/systemd-journal-flush.service \
4311 units/systemd-journal-catalog-update.service
4313 dist_pkgsysconf_DATA += \
4314 src/journal/journald.conf
4316 dist_catalog_DATA = \
4317 catalog/systemd.be.catalog \
4318 catalog/systemd.be@latin.catalog \
4319 catalog/systemd.fr.catalog \
4320 catalog/systemd.it.catalog \
4321 catalog/systemd.pl.catalog \
4322 catalog/systemd.pt_BR.catalog \
4323 catalog/systemd.ru.catalog \
4324 catalog/systemd.zh_CN.catalog \
4325 catalog/systemd.zh_TW.catalog \
4326 catalog/systemd.catalog
4328 SOCKETS_TARGET_WANTS += \
4329 systemd-journald.socket \
4330 systemd-journald-dev-log.socket \
4331 systemd-journald-audit.socket
4333 SYSINIT_TARGET_WANTS += \
4334 systemd-journald.service \
4335 systemd-journal-flush.service \
4336 systemd-journal-catalog-update.service
4339 units/systemd-journald.service.in \
4340 units/systemd-journal-flush.service.in \
4341 units/systemd-journal-catalog-update.service.in
4343 gperf_gperf_sources += \
4344 src/journal/journald-gperf.gperf
4346 # ------------------------------------------------------------------------------
4348 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4350 rootlibexec_PROGRAMS += \
4351 systemd-journal-gatewayd
4353 systemd_journal_gatewayd_SOURCES = \
4354 src/journal-remote/journal-gatewayd.c \
4355 src/journal-remote/microhttpd-util.h \
4356 src/journal-remote/microhttpd-util.c
4358 systemd_journal_gatewayd_LDADD = \
4363 systemd_journal_gatewayd_LDADD += \
4367 systemd_journal_gatewayd_CFLAGS = \
4369 $(MICROHTTPD_CFLAGS)
4371 systemd_journal_gatewayd_CPPFLAGS = \
4373 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4375 dist_systemunit_DATA += \
4376 units/systemd-journal-gatewayd.socket
4378 nodist_systemunit_DATA += \
4379 units/systemd-journal-gatewayd.service
4381 dist_gatewayddocumentroot_DATA = \
4382 src/journal-remote/browse.html
4387 units/systemd-journal-gatewayd.service.in
4389 # ------------------------------------------------------------------------------
4391 systemd_socket_proxyd_SOURCES = \
4392 src/socket-proxy/socket-proxyd.c
4394 systemd_socket_proxyd_LDADD = \
4397 # ------------------------------------------------------------------------------
4399 systemd_coredump_SOURCES = \
4400 src/coredump/coredump.c \
4401 src/coredump/coredump-vacuum.c \
4402 src/coredump/coredump-vacuum.h
4404 systemd_coredump_LDADD = \
4408 systemd_coredump_SOURCES += \
4409 src/coredump/stacktrace.c \
4410 src/coredump/stacktrace.h
4412 systemd_coredump_LDADD += \
4416 nodist_systemunit_DATA += \
4417 units/systemd-coredump@.service
4419 dist_systemunit_DATA += \
4420 units/systemd-coredump.socket
4422 SOCKETS_TARGET_WANTS += \
4423 systemd-coredump.socket
4425 rootlibexec_PROGRAMS += \
4428 dist_pkgsysconf_DATA += \
4429 src/coredump/coredump.conf
4431 coredumpctl_SOURCES = \
4432 src/coredump/coredumpctl.c
4434 coredumpctl_LDADD = \
4441 test-coredump-vacuum
4443 test_coredump_vacuum_SOURCES = \
4444 src/coredump/test-coredump-vacuum.c \
4445 src/coredump/coredump-vacuum.c \
4446 src/coredump/coredump-vacuum.h
4448 test_coredump_vacuum_LDADD = \
4451 dist_bashcompletion_data += \
4452 shell-completion/bash/coredumpctl
4454 dist_zshcompletion_data += \
4455 shell-completion/zsh/_coredumpctl
4457 nodist_sysctl_DATA = \
4458 sysctl.d/50-coredump.conf
4461 sysctl.d/50-coredump.conf
4465 sysctl.d/50-coredump.conf.in \
4466 units/systemd-coredump@.service.in
4468 # ------------------------------------------------------------------------------
4470 systemd_binfmt_SOURCES = \
4473 systemd_binfmt_LDADD = \
4476 rootlibexec_PROGRAMS += \
4479 dist_systemunit_DATA += \
4480 units/proc-sys-fs-binfmt_misc.automount \
4481 units/proc-sys-fs-binfmt_misc.mount
4483 nodist_systemunit_DATA += \
4484 units/systemd-binfmt.service
4487 $(prefix)/lib/binfmt.d \
4488 $(sysconfdir)/binfmt.d
4490 SYSINIT_TARGET_WANTS += \
4491 systemd-binfmt.service \
4492 proc-sys-fs-binfmt_misc.automount
4497 units/systemd-binfmt.service.in
4499 # ------------------------------------------------------------------------------
4501 systemd_vconsole_setup_SOURCES = \
4502 src/vconsole/vconsole-setup.c
4504 systemd_vconsole_setup_LDADD = \
4507 rootlibexec_PROGRAMS += \
4508 systemd-vconsole-setup
4510 nodist_udevrules_DATA += \
4511 src/vconsole/90-vconsole.rules
4513 nodist_systemunit_DATA += \
4514 units/systemd-vconsole-setup.service
4516 SYSINIT_TARGET_WANTS += \
4517 systemd-vconsole-setup.service
4521 src/vconsole/90-vconsole.rules.in \
4522 units/systemd-vconsole-setup.service.in
4524 # ------------------------------------------------------------------------------
4526 systemd_bootchart_SOURCES = \
4527 src/bootchart/bootchart.c \
4528 src/bootchart/bootchart.h \
4529 src/bootchart/store.c \
4530 src/bootchart/store.h \
4531 src/bootchart/svg.c \
4534 systemd_bootchart_LDADD = \
4537 rootlibexec_PROGRAMS += \
4540 dist_pkgsysconf_DATA += \
4541 src/bootchart/bootchart.conf
4543 nodist_systemunit_DATA += \
4544 units/systemd-bootchart.service
4548 units/systemd-bootchart.service.in
4550 # ------------------------------------------------------------------------------
4551 if ENABLE_QUOTACHECK
4552 rootlibexec_PROGRAMS += \
4555 nodist_systemunit_DATA += \
4556 units/systemd-quotacheck.service
4558 systemd_quotacheck_SOURCES = \
4559 src/quotacheck/quotacheck.c
4561 systemd_quotacheck_LDADD = \
4566 units/systemd-quotacheck.service.in
4568 nodist_systemunit_DATA += \
4569 units/quotaon.service
4571 # ------------------------------------------------------------------------------
4572 if ENABLE_RANDOMSEED
4573 rootlibexec_PROGRAMS += \
4576 nodist_systemunit_DATA += \
4577 units/systemd-random-seed.service
4579 systemd_random_seed_SOURCES = \
4580 src/random-seed/random-seed.c
4582 systemd_random_seed_LDADD = \
4585 SYSINIT_TARGET_WANTS += \
4586 systemd-random-seed.service
4591 units/systemd-random-seed.service.in
4593 # ------------------------------------------------------------------------------
4595 rootlibexec_PROGRAMS += \
4598 nodist_systemunit_DATA += \
4599 units/systemd-backlight@.service
4601 systemd_backlight_SOURCES = \
4602 src/backlight/backlight.c
4604 systemd_backlight_LDADD = \
4609 units/systemd-backlight@.service.in
4611 # ------------------------------------------------------------------------------
4613 rootlibexec_PROGRAMS += \
4616 nodist_systemunit_DATA += \
4617 units/systemd-rfkill.service
4619 dist_systemunit_DATA += \
4620 units/systemd-rfkill.socket
4622 systemd_rfkill_SOURCES = \
4625 systemd_rfkill_LDADD = \
4630 units/systemd-rfkill.service.in
4632 # ------------------------------------------------------------------------------
4633 if HAVE_LIBCRYPTSETUP
4634 rootlibexec_PROGRAMS += \
4637 systemgenerator_PROGRAMS += \
4638 systemd-cryptsetup-generator
4640 dist_systemunit_DATA += \
4641 units/cryptsetup.target \
4642 units/cryptsetup-pre.target
4644 systemd_cryptsetup_SOURCES = \
4645 src/cryptsetup/cryptsetup.c
4647 systemd_cryptsetup_CFLAGS = \
4649 $(LIBCRYPTSETUP_CFLAGS)
4651 systemd_cryptsetup_LDADD = \
4653 $(LIBCRYPTSETUP_LIBS)
4655 systemd_cryptsetup_generator_SOURCES = \
4656 src/cryptsetup/cryptsetup-generator.c
4658 systemd_cryptsetup_generator_LDADD = \
4661 SYSINIT_TARGET_WANTS += \
4666 # ------------------------------------------------------------------------------
4668 systemd_hostnamed_SOURCES = \
4669 src/hostname/hostnamed.c
4671 systemd_hostnamed_LDADD = \
4674 rootlibexec_PROGRAMS += \
4677 nodist_systemunit_DATA += \
4678 units/systemd-hostnamed.service
4680 dist_systemunit_DATA_busnames += \
4681 units/org.freedesktop.hostname1.busname
4683 dist_dbuspolicy_DATA += \
4684 src/hostname/org.freedesktop.hostname1.conf
4686 dist_dbussystemservice_DATA += \
4687 src/hostname/org.freedesktop.hostname1.service
4689 polkitpolicy_files += \
4690 src/hostname/org.freedesktop.hostname1.policy
4692 SYSTEM_UNIT_ALIASES += \
4693 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4695 BUSNAMES_TARGET_WANTS += \
4696 org.freedesktop.hostname1.busname
4698 hostnamectl_SOURCES = \
4699 src/hostname/hostnamectl.c
4701 hostnamectl_LDADD = \
4707 dist_bashcompletion_data += \
4708 shell-completion/bash/hostnamectl
4710 dist_zshcompletion_data += \
4711 shell-completion/zsh/_hostnamectl
4714 polkitpolicy_in_files += \
4715 src/hostname/org.freedesktop.hostname1.policy.in
4718 units/systemd-hostnamed.service.in
4720 # ------------------------------------------------------------------------------
4721 dist_systemunit_DATA_busnames += \
4722 units/org.freedesktop.systemd1.busname
4724 BUSNAMES_TARGET_WANTS += \
4725 org.freedesktop.systemd1.busname
4727 # ------------------------------------------------------------------------------
4729 systemd_localed_SOURCES = \
4730 src/locale/localed.c
4732 systemd_localed_LDADD = \
4736 systemd_localed_CFLAGS = \
4740 nodist_systemunit_DATA += \
4741 units/systemd-localed.service
4743 dist_systemunit_DATA_busnames += \
4744 units/org.freedesktop.locale1.busname
4746 rootlibexec_PROGRAMS += \
4749 dist_dbuspolicy_DATA += \
4750 src/locale/org.freedesktop.locale1.conf
4752 dist_dbussystemservice_DATA += \
4753 src/locale/org.freedesktop.locale1.service
4755 polkitpolicy_files += \
4756 src/locale/org.freedesktop.locale1.policy
4758 SYSTEM_UNIT_ALIASES += \
4759 systemd-localed.service dbus-org.freedesktop.locale1.service
4761 BUSNAMES_TARGET_WANTS += \
4762 org.freedesktop.locale1.busname
4764 dist_pkgdata_DATA = \
4765 src/locale/kbd-model-map \
4766 src/locale/language-fallback-map
4768 localectl_SOURCES = \
4769 src/locale/localectl.c
4777 dist_bashcompletion_data += \
4778 shell-completion/bash/localectl
4780 dist_zshcompletion_data += \
4781 shell-completion/zsh/_localectl
4784 .PHONY: update-kbd-model-map
4786 polkitpolicy_in_files += \
4787 src/locale/org.freedesktop.locale1.policy.in
4790 units/systemd-localed.service.in
4792 # ------------------------------------------------------------------------------
4794 systemd_timedated_SOURCES = \
4795 src/timedate/timedated.c
4797 systemd_timedated_LDADD = \
4800 rootlibexec_PROGRAMS += \
4803 dist_dbussystemservice_DATA += \
4804 src/timedate/org.freedesktop.timedate1.service
4806 dist_dbuspolicy_DATA += \
4807 src/timedate/org.freedesktop.timedate1.conf
4809 nodist_systemunit_DATA += \
4810 units/systemd-timedated.service
4812 dist_systemunit_DATA_busnames += \
4813 units/org.freedesktop.timedate1.busname
4815 polkitpolicy_files += \
4816 src/timedate/org.freedesktop.timedate1.policy
4818 SYSTEM_UNIT_ALIASES += \
4819 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4821 BUSNAMES_TARGET_WANTS += \
4822 org.freedesktop.timedate1.busname
4824 timedatectl_SOURCES = \
4825 src/timedate/timedatectl.c
4827 timedatectl_LDADD = \
4833 dist_bashcompletion_data += \
4834 shell-completion/bash/timedatectl
4836 dist_zshcompletion_data += \
4837 shell-completion/zsh/_timedatectl
4840 polkitpolicy_in_files += \
4841 src/timedate/org.freedesktop.timedate1.policy.in
4844 units/systemd-timedated.service.in
4846 # ------------------------------------------------------------------------------
4848 systemd_timesyncd_SOURCES = \
4849 src/timesync/timesyncd.c \
4850 src/timesync/timesyncd-manager.c \
4851 src/timesync/timesyncd-manager.h \
4852 src/timesync/timesyncd-conf.c \
4853 src/timesync/timesyncd-conf.h \
4854 src/timesync/timesyncd-server.c \
4855 src/timesync/timesyncd-server.h
4857 nodist_systemd_timesyncd_SOURCES = \
4858 src/timesync/timesyncd-gperf.c
4860 systemd_timesyncd_LDADD = \
4861 libsystemd-network.la \
4864 rootlibexec_PROGRAMS += \
4867 nodist_systemunit_DATA += \
4868 units/systemd-timesyncd.service
4870 GENERAL_ALIASES += \
4871 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4873 nodist_pkgsysconf_DATA += \
4874 src/timesync/timesyncd.conf
4878 gperf_gperf_sources += \
4879 src/timesync/timesyncd-gperf.gperf
4882 units/systemd-timesyncd.service.in \
4883 src/timesync/timesyncd.conf.in
4885 # ------------------------------------------------------------------------------
4887 libnss_myhostname_la_SOURCES = \
4888 src/nss-myhostname/nss-myhostname.sym \
4889 src/nss-myhostname/nss-myhostname.c
4891 libnss_myhostname_la_LDFLAGS = \
4898 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4900 libnss_myhostname_la_LIBADD = \
4901 libsystemd-internal.la
4903 lib_LTLIBRARIES += \
4904 libnss_myhostname.la
4907 # ------------------------------------------------------------------------------
4909 systemd_machined_SOURCES = \
4910 src/machine/machined.c \
4911 src/machine/machined.h
4913 systemd_machined_LDADD = \
4916 rootlibexec_PROGRAMS += \
4919 libmachine_core_la_SOURCES = \
4920 src/machine/machine.c \
4921 src/machine/machine.h \
4922 src/machine/machined-dbus.c \
4923 src/machine/machine-dbus.c \
4924 src/machine/machine-dbus.h \
4925 src/machine/image-dbus.c \
4926 src/machine/image-dbus.h
4928 libmachine_core_la_LIBADD = \
4931 noinst_LTLIBRARIES += \
4934 machinectl_SOURCES = \
4935 src/machine/machinectl.c
4937 machinectl_LDADD = \
4940 rootbin_PROGRAMS += \
4943 test_machine_tables_SOURCES = \
4944 src/machine/test-machine-tables.c
4946 test_machine_tables_LDADD = \
4952 nodist_systemunit_DATA += \
4953 units/systemd-machined.service
4955 dist_systemunit_DATA += \
4958 dist_systemunit_DATA_busnames += \
4959 units/org.freedesktop.machine1.busname
4961 dist_dbussystemservice_DATA += \
4962 src/machine/org.freedesktop.machine1.service
4964 dist_dbuspolicy_DATA += \
4965 src/machine/org.freedesktop.machine1.conf
4967 polkitpolicy_files += \
4968 src/machine/org.freedesktop.machine1.policy
4970 dist_bashcompletion_data += \
4971 shell-completion/bash/machinectl
4973 dist_zshcompletion_data += \
4974 shell-completion/zsh/_machinectl \
4975 shell-completion/zsh/_sd_machines
4977 SYSTEM_UNIT_ALIASES += \
4978 systemd-machined.service dbus-org.freedesktop.machine1.service
4980 BUSNAMES_TARGET_WANTS += \
4981 org.freedesktop.machine1.busname
4983 libnss_mymachines_la_SOURCES = \
4984 src/nss-mymachines/nss-mymachines.sym \
4985 src/nss-mymachines/nss-mymachines.c
4987 libnss_mymachines_la_LDFLAGS = \
4994 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4996 libnss_mymachines_la_LIBADD = \
4997 libsystemd-internal.la
4999 lib_LTLIBRARIES += \
5000 libnss_mymachines.la
5004 polkitpolicy_in_files += \
5005 src/machine/org.freedesktop.machine1.policy.in
5008 units/systemd-machined.service.in
5010 # ------------------------------------------------------------------------------
5019 rootlibexec_PROGRAMS += \
5025 systemd_importd_SOURCES = \
5026 src/import/importd.c
5028 systemd_importd_CFLAGS = \
5030 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5031 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5032 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5034 systemd_importd_LDADD = \
5037 systemd_pull_SOURCES = \
5039 src/import/pull-raw.c \
5040 src/import/pull-raw.h \
5041 src/import/pull-tar.c \
5042 src/import/pull-tar.h \
5043 src/import/pull-job.c \
5044 src/import/pull-job.h \
5045 src/import/pull-common.c \
5046 src/import/pull-common.h \
5047 src/import/import-common.c \
5048 src/import/import-common.h \
5049 src/import/import-compress.c \
5050 src/import/import-compress.h \
5051 src/import/curl-util.c \
5052 src/import/curl-util.h \
5053 src/import/aufs-util.c \
5054 src/import/aufs-util.h \
5055 src/import/qcow2-util.c \
5056 src/import/qcow2-util.h
5058 systemd_pull_CFLAGS = \
5064 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5065 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5067 systemd_pull_LDADD = \
5075 systemd_import_SOURCES = \
5076 src/import/import.c \
5077 src/import/import-raw.c \
5078 src/import/import-raw.h \
5079 src/import/import-tar.c \
5080 src/import/import-tar.h \
5081 src/import/import-common.c \
5082 src/import/import-common.h \
5083 src/import/import-compress.c \
5084 src/import/import-compress.h \
5085 src/import/qcow2-util.c \
5086 src/import/qcow2-util.h
5088 systemd_import_CFLAGS = \
5093 systemd_import_LDADD = \
5099 systemd_export_SOURCES = \
5100 src/import/export.c \
5101 src/import/export-tar.c \
5102 src/import/export-tar.h \
5103 src/import/export-raw.c \
5104 src/import/export-raw.h \
5105 src/import/import-common.c \
5106 src/import/import-common.h \
5107 src/import/import-compress.c \
5108 src/import/import-compress.h
5110 systemd_export_CFLAGS = \
5115 systemd_export_LDADD = \
5121 dist_rootlibexec_DATA = \
5122 src/import/import-pubring.gpg
5124 nodist_systemunit_DATA += \
5125 units/systemd-importd.service
5127 dist_systemunit_DATA_busnames += \
5128 units/org.freedesktop.import1.busname
5130 BUSNAMES_TARGET_WANTS += \
5131 org.freedesktop.import1.busname
5133 SYSTEM_UNIT_ALIASES += \
5134 systemd-importd.service dbus-org.freedesktop.import1.service
5136 dist_dbussystemservice_DATA += \
5137 src/import/org.freedesktop.import1.service
5139 dist_dbuspolicy_DATA += \
5140 src/import/org.freedesktop.import1.conf
5142 polkitpolicy_files += \
5143 src/import/org.freedesktop.import1.policy
5148 test_qcow2_SOURCES = \
5149 src/import/test-qcow2.c \
5150 src/import/qcow2-util.c \
5151 src/import/qcow2-util.h
5153 test_qcow2_CFLAGS = \
5157 test_qcow2_LDADD = \
5169 polkitpolicy_in_files += \
5170 src/import/org.freedesktop.import1.policy.in
5173 units/systemd-importd.service.in
5176 # ------------------------------------------------------------------------------
5179 systemd_resolved_SOURCES = \
5180 src/resolve/resolved.c \
5181 src/resolve/resolved-manager.c \
5182 src/resolve/resolved-manager.h \
5183 src/resolve/resolved-conf.c \
5184 src/resolve/resolved-conf.h \
5185 src/resolve/resolved-resolv-conf.c \
5186 src/resolve/resolved-resolv-conf.h \
5187 src/resolve/resolved-bus.c \
5188 src/resolve/resolved-bus.h \
5189 src/resolve/resolved-link.h \
5190 src/resolve/resolved-link.c \
5191 src/resolve/resolved-link-bus.c \
5192 src/resolve/resolved-link-bus.h \
5193 src/resolve/resolved-llmnr.h \
5194 src/resolve/resolved-llmnr.c \
5195 src/resolve/resolved-mdns.h \
5196 src/resolve/resolved-mdns.c \
5197 src/resolve/resolved-def.h \
5198 src/resolve/resolved-dns-rr.h \
5199 src/resolve/resolved-dns-rr.c \
5200 src/resolve/resolved-dns-question.h \
5201 src/resolve/resolved-dns-question.c \
5202 src/resolve/resolved-dns-answer.h \
5203 src/resolve/resolved-dns-answer.c \
5204 src/resolve/resolved-dns-packet.h \
5205 src/resolve/resolved-dns-packet.c \
5206 src/resolve/resolved-dns-query.h \
5207 src/resolve/resolved-dns-query.c \
5208 src/resolve/resolved-dns-synthesize.h \
5209 src/resolve/resolved-dns-synthesize.c \
5210 src/resolve/resolved-dns-transaction.h \
5211 src/resolve/resolved-dns-transaction.c \
5212 src/resolve/resolved-dns-scope.h \
5213 src/resolve/resolved-dns-scope.c \
5214 src/resolve/resolved-dns-server.h \
5215 src/resolve/resolved-dns-server.c \
5216 src/resolve/resolved-dns-search-domain.h \
5217 src/resolve/resolved-dns-search-domain.c \
5218 src/resolve/resolved-dns-cache.h \
5219 src/resolve/resolved-dns-cache.c \
5220 src/resolve/resolved-dns-zone.h \
5221 src/resolve/resolved-dns-zone.c \
5222 src/resolve/resolved-dns-stream.h \
5223 src/resolve/resolved-dns-stream.c \
5224 src/resolve/resolved-dns-dnssec.h \
5225 src/resolve/resolved-dns-dnssec.c \
5226 src/resolve/resolved-dns-trust-anchor.h \
5227 src/resolve/resolved-dns-trust-anchor.c \
5228 src/resolve/resolved-etc-hosts.h \
5229 src/resolve/resolved-etc-hosts.c \
5230 src/resolve/dns-type.c \
5231 src/resolve/dns-type.h
5233 nodist_systemd_resolved_SOURCES = \
5234 src/resolve/dns_type-from-name.h \
5235 src/resolve/dns_type-to-name.h \
5236 src/resolve/resolved-gperf.c
5238 systemd_resolved_LDADD = \
5239 libsystemd-network.la \
5242 rootlibexec_PROGRAMS += \
5245 nodist_systemunit_DATA += \
5246 units/systemd-resolved.service
5248 dist_systemunit_DATA_busnames += \
5249 units/org.freedesktop.resolve1.busname
5251 dist_dbuspolicy_DATA += \
5252 src/resolve/org.freedesktop.resolve1.conf
5254 dist_dbussystemservice_DATA += \
5255 src/resolve/org.freedesktop.resolve1.service
5257 SYSTEM_UNIT_ALIASES += \
5258 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5260 BUSNAMES_TARGET_WANTS += \
5261 org.freedesktop.resolve1.busname
5263 GENERAL_ALIASES += \
5264 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5266 nodist_pkgsysconf_DATA += \
5267 src/resolve/resolved.conf
5269 libnss_resolve_la_SOURCES = \
5270 src/nss-resolve/nss-resolve.sym \
5271 src/nss-resolve/nss-resolve.c
5273 libnss_resolve_la_LDFLAGS = \
5280 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5282 libnss_resolve_la_LIBADD = \
5283 libsystemd-internal.la \
5286 lib_LTLIBRARIES += \
5289 systemd_resolve_SOURCES = \
5290 src/resolve/resolve-tool.c \
5291 src/resolve/resolved-dns-dnssec.c \
5292 src/resolve/resolved-dns-dnssec.h \
5293 src/resolve/resolved-dns-packet.c \
5294 src/resolve/resolved-dns-packet.h \
5295 src/resolve/resolved-dns-rr.c \
5296 src/resolve/resolved-dns-rr.h \
5297 src/resolve/resolved-dns-answer.c \
5298 src/resolve/resolved-dns-answer.h \
5299 src/resolve/resolved-dns-question.c \
5300 src/resolve/resolved-dns-question.h \
5301 src/resolve/dns-type.c \
5302 src/resolve/dns-type.h
5304 nodist_systemd_resolve_SOURCES = \
5305 src/resolve/dns_type-from-name.h \
5306 src/resolve/dns_type-to-name.h
5308 systemd_resolve_LDADD = \
5321 test_dnssec_SOURCES = \
5322 src/resolve/test-dnssec.c \
5323 src/resolve/resolved-dns-packet.c \
5324 src/resolve/resolved-dns-packet.h \
5325 src/resolve/resolved-dns-rr.c \
5326 src/resolve/resolved-dns-rr.h \
5327 src/resolve/resolved-dns-answer.c \
5328 src/resolve/resolved-dns-answer.h \
5329 src/resolve/resolved-dns-question.c \
5330 src/resolve/resolved-dns-question.h \
5331 src/resolve/resolved-dns-dnssec.c \
5332 src/resolve/resolved-dns-dnssec.h \
5333 src/resolve/dns-type.c \
5334 src/resolve/dns-type.h
5336 test_dnssec_LDADD = \
5339 test_dnssec_complex_SOURCES = \
5340 src/resolve/test-dnssec-complex.c \
5341 src/resolve/dns-type.c \
5342 src/resolve/dns-type.h
5344 test_dnssec_complex_LDADD = \
5349 gperf_txt_sources += \
5350 src/resolve/dns_type-list.txt
5352 gperf_gperf_sources += \
5353 src/resolve/resolved-gperf.gperf
5356 units/systemd-resolved.service.m4.in \
5357 src/resolve/resolved.conf.in
5359 # ------------------------------------------------------------------------------
5361 rootlibexec_PROGRAMS += \
5364 systemd_networkd_SOURCES = \
5365 src/network/networkd.c
5367 systemd_networkd_LDADD = \
5371 systemd_networkd_LDADD += \
5375 noinst_LTLIBRARIES += \
5378 libnetworkd_core_la_CFLAGS = \
5381 libnetworkd_core_la_SOURCES = \
5382 src/libsystemd-network/network-internal.h \
5383 src/network/networkd.h \
5384 src/network/networkd-link.h \
5385 src/network/networkd-link.c \
5386 src/network/networkd-netdev.h \
5387 src/network/networkd-netdev.c \
5388 src/network/networkd-netdev-tunnel.h \
5389 src/network/networkd-netdev-tunnel.c \
5390 src/network/networkd-netdev-veth.h \
5391 src/network/networkd-netdev-veth.c \
5392 src/network/networkd-netdev-vxlan.h \
5393 src/network/networkd-netdev-vxlan.c \
5394 src/network/networkd-netdev-vlan.h \
5395 src/network/networkd-netdev-vlan.c \
5396 src/network/networkd-netdev-macvlan.h \
5397 src/network/networkd-netdev-macvlan.c \
5398 src/network/networkd-netdev-ipvlan.h \
5399 src/network/networkd-netdev-ipvlan.c \
5400 src/network/networkd-netdev-dummy.h \
5401 src/network/networkd-netdev-dummy.c \
5402 src/network/networkd-netdev-tuntap.h \
5403 src/network/networkd-netdev-tuntap.c \
5404 src/network/networkd-netdev-bond.h \
5405 src/network/networkd-netdev-bond.c \
5406 src/network/networkd-netdev-bridge.h \
5407 src/network/networkd-netdev-bridge.c \
5408 src/network/networkd-link-bus.c \
5409 src/network/networkd-ipv4ll.c \
5410 src/network/networkd-dhcp4.c \
5411 src/network/networkd-dhcp6.c \
5412 src/network/networkd-ndisc.c \
5413 src/network/networkd-network.h \
5414 src/network/networkd-network.c \
5415 src/network/networkd-network-bus.c \
5416 src/network/networkd-address.h \
5417 src/network/networkd-address.c \
5418 src/network/networkd-route.h \
5419 src/network/networkd-route.c \
5420 src/network/networkd-manager.c \
5421 src/network/networkd-manager-bus.c \
5422 src/network/networkd-fdb.h \
5423 src/network/networkd-fdb.c \
5424 src/network/networkd-address-pool.h \
5425 src/network/networkd-address-pool.c \
5426 src/network/networkd-util.h \
5427 src/network/networkd-util.c
5429 nodist_libnetworkd_core_la_SOURCES = \
5430 src/network/networkd-network-gperf.c \
5431 src/network/networkd-netdev-gperf.c
5433 libnetworkd_core_la_LIBADD = \
5434 libsystemd-network.la \
5437 rootlibexec_PROGRAMS += \
5438 systemd-networkd-wait-online
5440 systemd_networkd_wait_online_CFLAGS = \
5443 systemd_networkd_wait_online_SOURCES = \
5444 src/libsystemd-network/network-internal.h \
5445 src/network/networkd-wait-online.h \
5446 src/network/networkd-wait-online-link.h \
5447 src/network/networkd-wait-online.c \
5448 src/network/networkd-wait-online-manager.c \
5449 src/network/networkd-wait-online-link.c
5451 systemd_networkd_wait_online_LDADD = \
5452 libsystemd-network.la \
5455 rootbin_PROGRAMS += \
5458 networkctl_SOURCES = \
5459 src/network/networkctl.c
5461 networkctl_LDADD = \
5463 libsystemd-network.la
5465 dist_bashcompletion_data += \
5466 shell-completion/bash/networkctl
5468 test_network_SOURCES = \
5469 src/network/test-network.c
5471 test_network_LDADD = \
5475 test_network_LDADD += \
5479 test_network_tables_SOURCES = \
5480 src/network/test-network-tables.c \
5481 src/shared/test-tables.h
5483 test_network_tables_LDADD = \
5484 libnetworkd-core.la \
5488 test_network_tables_LDADD += \
5496 dist_systemunit_DATA += \
5497 units/systemd-networkd.socket
5499 nodist_systemunit_DATA += \
5500 units/systemd-networkd.service \
5501 units/systemd-networkd-wait-online.service
5503 dist_systemunit_DATA_busnames += \
5504 units/org.freedesktop.network1.busname
5506 dist_dbussystemservice_DATA += \
5507 src/network/org.freedesktop.network1.service
5509 dist_dbuspolicy_DATA += \
5510 src/network/org.freedesktop.network1.conf
5512 GENERAL_ALIASES += \
5513 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5514 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5515 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5517 SYSTEM_UNIT_ALIASES += \
5518 systemd-networkd.service dbus-org.freedesktop.network1.service
5520 BUSNAMES_TARGET_WANTS += \
5521 org.freedesktop.network1.busname
5525 gperf_gperf_sources += \
5526 src/network/networkd-network-gperf.gperf \
5527 src/network/networkd-netdev-gperf.gperf
5530 units/systemd-networkd.service.m4.in \
5531 units/systemd-networkd-wait-online.service.in \
5532 test/networkd-test.py
5534 # ------------------------------------------------------------------------------
5536 systemd_logind_SOURCES = \
5537 src/login/logind.c \
5540 nodist_systemd_logind_SOURCES = \
5541 src/login/logind-gperf.c
5543 systemd_logind_LDADD = \
5546 liblogind_core_la_SOURCES = \
5547 src/login/logind-core.c \
5548 src/login/logind-device.c \
5549 src/login/logind-device.h \
5550 src/login/logind-button.c \
5551 src/login/logind-button.h \
5552 src/login/logind-action.c \
5553 src/login/logind-action.h \
5554 src/login/logind-seat.c \
5555 src/login/logind-seat.h \
5556 src/login/logind-session.c \
5557 src/login/logind-session.h \
5558 src/login/logind-session-device.c \
5559 src/login/logind-session-device.h \
5560 src/login/logind-user.c \
5561 src/login/logind-user.h \
5562 src/login/logind-inhibit.c \
5563 src/login/logind-inhibit.h \
5564 src/login/logind-dbus.c \
5565 src/login/logind-session-dbus.c \
5566 src/login/logind-seat-dbus.c \
5567 src/login/logind-user-dbus.c \
5568 src/login/logind-utmp.c \
5569 src/login/logind-acl.h
5571 liblogind_core_la_LIBADD = \
5575 liblogind_core_la_SOURCES += \
5576 src/login/logind-acl.c
5579 noinst_LTLIBRARIES += \
5582 rootlibexec_PROGRAMS += \
5585 loginctl_SOURCES = \
5586 src/login/loginctl.c \
5587 src/login/sysfs-show.h \
5588 src/login/sysfs-show.c
5593 rootbin_PROGRAMS += \
5596 dist_bashcompletion_data += \
5597 shell-completion/bash/loginctl
5599 dist_zshcompletion_data += \
5600 shell-completion/zsh/_loginctl \
5601 shell-completion/zsh/_systemd-inhibit
5603 systemd_inhibit_SOURCES = \
5606 systemd_inhibit_LDADD = \
5609 rootbin_PROGRAMS += \
5612 test_login_SOURCES = \
5613 src/libsystemd/sd-login/test-login.c
5615 test_login_LDADD = \
5618 test_login_shared_SOURCES = \
5619 src/login/test-login-shared.c
5621 test_login_shared_LDADD = \
5624 test_inhibit_SOURCES = \
5625 src/login/test-inhibit.c
5627 test_inhibit_LDADD = \
5630 test_login_tables_SOURCES = \
5631 src/login/test-login-tables.c
5633 test_login_tables_LDADD = \
5645 pam_systemd_la_SOURCES = \
5646 src/login/pam_systemd.sym \
5647 src/login/pam_systemd.c
5649 pam_systemd_la_CFLAGS = \
5653 pam_systemd_la_LDFLAGS = \
5659 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5661 pam_systemd_la_LIBADD = \
5665 pamlib_LTLIBRARIES = \
5668 dist_pamconf_DATA = \
5669 src/login/systemd-user
5672 src/login/systemd-user.m4
5675 nodist_systemunit_DATA += \
5676 units/systemd-logind.service
5678 dist_systemunit_DATA += \
5681 dist_systemunit_DATA_busnames += \
5682 units/org.freedesktop.login1.busname
5684 dist_dbussystemservice_DATA += \
5685 src/login/org.freedesktop.login1.service
5687 dist_dbuspolicy_DATA += \
5688 src/login/org.freedesktop.login1.conf
5690 dist_pkgsysconf_DATA += \
5691 src/login/logind.conf
5693 polkitpolicy_files += \
5694 src/login/org.freedesktop.login1.policy
5699 MULTI_USER_TARGET_WANTS += \
5700 systemd-logind.service
5702 SYSTEM_UNIT_ALIASES += \
5703 systemd-logind.service dbus-org.freedesktop.login1.service
5705 BUSNAMES_TARGET_WANTS += \
5706 org.freedesktop.login1.busname
5708 dist_udevrules_DATA += \
5709 src/login/70-uaccess.rules \
5710 src/login/70-power-switch.rules
5712 nodist_udevrules_DATA += \
5713 src/login/71-seat.rules \
5714 src/login/73-seat-late.rules
5718 polkitpolicy_in_files += \
5719 src/login/org.freedesktop.login1.policy.in
5721 gperf_gperf_sources += \
5722 src/login/logind-gperf.gperf
5725 src/login/71-seat.rules.in \
5726 src/login/73-seat-late.rules.in \
5727 units/systemd-logind.service.in
5729 # ------------------------------------------------------------------------------
5732 systemd_user_sessions_SOURCES = \
5733 src/user-sessions/user-sessions.c
5735 systemd_user_sessions_LDADD = \
5738 rootlibexec_PROGRAMS += \
5739 systemd-user-sessions
5741 nodist_systemunit_DATA += \
5742 units/systemd-user-sessions.service
5744 MULTI_USER_TARGET_WANTS += \
5745 systemd-user-sessions.service
5750 units/systemd-user-sessions.service.in
5752 # ------------------------------------------------------------------------------
5755 test/README.testsuite \
5756 test/TEST-01-BASIC \
5757 test/TEST-01-BASIC/Makefile \
5758 test/TEST-01-BASIC/test.sh \
5759 test/TEST-02-CRYPTSETUP \
5760 test/TEST-02-CRYPTSETUP/Makefile \
5761 test/TEST-02-CRYPTSETUP/test.sh \
5763 test/TEST-03-JOBS/Makefile \
5764 test/TEST-03-JOBS/test-jobs.sh \
5765 test/TEST-03-JOBS/test.sh \
5766 test/TEST-04-JOURNAL/Makefile \
5767 test/TEST-04-JOURNAL/test-journal.sh \
5768 test/TEST-04-JOURNAL/test.sh \
5769 test/TEST-05-RLIMITS/Makefile \
5770 test/TEST-05-RLIMITS/test-rlimits.sh \
5771 test/TEST-05-RLIMITS/test.sh \
5775 test/loopy2.service \
5776 test/loopy3.service \
5777 test/loopy4.service \
5778 test/loopy.service \
5779 test/loopy.service.d \
5780 test/loopy.service.d/compat.conf
5782 # ------------------------------------------------------------------------------
5783 if ENABLE_COMPAT_LIBS
5784 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5785 $(AM_V_at)$(MKDIR_P) $(dir $@)
5786 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5789 libsystemd-journal.c \
5790 libsystemd-login.c \
5791 libsystemd-id128.c \
5794 nodist_libsystemd_journal_la_SOURCES = \
5795 libsystemd-journal.c
5797 libsystemd_journal_la_SOURCES = \
5798 src/compat-libs/libsystemd-journal.sym
5800 libsystemd_journal_la_CPPFLAGS = \
5802 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5804 libsystemd_journal_la_LDFLAGS = \
5806 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5807 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5809 libsystemd_journal_la_LIBADD = \
5810 libsystemd-journal-internal.la \
5811 libsystemd-internal.la
5813 nodist_libsystemd_login_la_SOURCES = \
5816 libsystemd_login_la_SOURCES = \
5817 src/compat-libs/libsystemd-login.sym
5819 libsystemd_login_la_CPPFLAGS = \
5821 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5823 libsystemd_login_la_LDFLAGS = \
5825 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5826 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5828 libsystemd_login_la_LIBADD = \
5829 libsystemd-internal.la
5831 nodist_libsystemd_id128_la_SOURCES = \
5834 libsystemd_id128_la_SOURCES = \
5835 src/compat-libs/libsystemd-id128.sym
5837 libsystemd_id128_la_CPPFLAGS = \
5839 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5841 libsystemd_id128_la_LDFLAGS = \
5843 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5844 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5846 libsystemd_id128_la_LIBADD = \
5847 libsystemd-internal.la
5849 nodist_libsystemd_daemon_la_SOURCES = \
5852 libsystemd_daemon_la_SOURCES = \
5853 src/compat-libs/libsystemd-daemon.sym
5855 libsystemd_daemon_la_CPPFLAGS = \
5857 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5859 libsystemd_daemon_la_LDFLAGS = \
5861 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5862 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5864 libsystemd_daemon_la_LIBADD = \
5865 libsystemd-internal.la
5867 lib_LTLIBRARIES += \
5868 libsystemd-journal.la \
5869 libsystemd-login.la \
5870 libsystemd-id128.la \
5871 libsystemd-daemon.la
5873 pkgconfiglib_DATA += \
5874 src/compat-libs/libsystemd-journal.pc \
5875 src/compat-libs/libsystemd-login.pc \
5876 src/compat-libs/libsystemd-id128.pc \
5877 src/compat-libs/libsystemd-daemon.pc
5879 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5880 compat-lib-install-hook:
5881 libname=libsystemd-login.so && $(move-to-rootlibdir)
5882 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5883 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5884 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5886 compat-lib-uninstall-hook:
5887 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5888 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5889 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5890 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5892 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5893 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5897 src/compat-libs/linkwarning.h \
5898 src/compat-libs/libsystemd-journal.pc.in \
5899 src/compat-libs/libsystemd-login.pc.in \
5900 src/compat-libs/libsystemd-id128.pc.in \
5901 src/compat-libs/libsystemd-daemon.pc.in
5903 # ------------------------------------------------------------------------------
5905 '|rootlibexecdir=$(rootlibexecdir)|' \
5906 '|rootbindir=$(rootbindir)|' \
5907 '|bindir=$(bindir)|' \
5908 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5909 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5910 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5911 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5912 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5913 '|pkgdatadir=$(pkgdatadir)|' \
5914 '|systemunitdir=$(systemunitdir)|' \
5915 '|userunitdir=$(userunitdir)|' \
5916 '|systempresetdir=$(systempresetdir)|' \
5917 '|userpresetdir=$(userpresetdir)|' \
5918 '|udevhwdbdir=$(udevhwdbdir)|' \
5919 '|udevrulesdir=$(udevrulesdir)|' \
5920 '|catalogdir=$(catalogdir)|' \
5921 '|tmpfilesdir=$(tmpfilesdir)|' \
5922 '|sysusersdir=$(sysusersdir)|' \
5923 '|sysctldir=$(sysctldir)|' \
5924 '|systemgeneratordir=$(systemgeneratordir)|' \
5925 '|usergeneratordir=$(usergeneratordir)|' \
5926 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5927 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5928 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5929 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5930 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5931 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5932 '|prefix=$(prefix)|' \
5933 '|exec_prefix=$(exec_prefix)|' \
5934 '|libdir=$(libdir)|' \
5935 '|includedir=$(includedir)|' \
5936 '|VERSION=$(VERSION)|' \
5937 '|rootprefix=$(rootprefix)|' \
5938 '|udevlibexecdir=$(udevlibexecdir)|' \
5939 '|SUSHELL=$(SUSHELL)|' \
5940 '|SULOGIN=$(SULOGIN)|' \
5941 '|DEBUGTTY=$(DEBUGTTY)|' \
5944 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5945 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5946 '|MKDIR_P=$(MKDIR_P)|' \
5947 '|QUOTAON=$(QUOTAON)|' \
5948 '|QUOTACHECK=$(QUOTACHECK)|' \
5949 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5950 '|VARLOGDIR=$(varlogdir)|' \
5951 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5952 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5953 '|PYTHON=$(PYTHON)|' \
5954 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5955 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5956 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5957 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5958 '|TTY_GID=$(TTY_GID)|' \
5959 '|systemsleepdir=$(systemsleepdir)|' \
5960 '|systemshutdowndir=$(systemshutdowndir)|' \
5961 '|binfmtdir=$(binfmtdir)|' \
5962 '|modulesloaddir=$(modulesloaddir)|'
5965 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5966 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5975 sysctl.d/%: sysctl.d/%.in
5984 src/core/%.systemd: src/core/%.systemd.in
5987 src/%.policy.in: src/%.policy.in.in
5990 shell-completion/%: shell-completion/%.in
6001 $(AM_V_GEN)chmod +x $@
6003 src/%.c: src/%.gperf
6004 $(AM_V_at)$(MKDIR_P) $(dir $@)
6005 $(AM_V_GPERF)$(GPERF) < $< > $@
6007 src/%: src/%.m4 $(top_builddir)/config.status
6008 $(AM_V_at)$(MKDIR_P) $(dir $@)
6009 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6011 sysusers.d/%: sysusers.d/%.m4 $(top_builddir)/config.status
6012 $(AM_V_at)$(MKDIR_P) $(dir $@)
6013 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6015 tmpfiles.d/%: tmpfiles.d/%.m4 $(top_builddir)/config.status
6016 $(AM_V_at)$(MKDIR_P) $(dir $@)
6017 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6020 units/%: units/%.m4 $(top_builddir)/config.status
6021 $(AM_V_at)$(MKDIR_P) $(dir $@)
6022 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6024 units/user/%: units/user/%.m4 $(top_builddir)/config.status
6025 $(AM_V_at)$(MKDIR_P) $(dir $@)
6026 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6029 nodist_polkitpolicy_DATA = \
6030 $(polkitpolicy_files) \
6031 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6035 $(polkitpolicy_in_files) \
6036 $(polkitpolicy_in_in_files)
6038 # ------------------------------------------------------------------------------
6039 man/custom-entities.ent: configure.ac
6040 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6041 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6042 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6046 man/custom-entities.ent
6051 --stringparam man.output.quietly 1 \
6052 --stringparam funcsynopsis.style ansi \
6053 --stringparam man.authors.section.enabled 0 \
6054 --stringparam man.copyright.section.enabled 0 \
6055 --stringparam systemd.version $(VERSION) \
6056 --path '$(builddir)/man:$(srcdir)/man'
6058 XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
6059 XSLTPROC_PROCESS_MAN = \
6060 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6062 XSLTPROC_PROCESS_HTML = \
6063 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6065 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6066 $(XSLTPROC_PROCESS_MAN)
6068 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6069 $(XSLTPROC_PROCESS_MAN)
6071 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6072 $(XSLTPROC_PROCESS_MAN)
6074 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6075 $(XSLTPROC_PROCESS_MAN)
6077 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6078 $(XSLTPROC_PROCESS_MAN)
6080 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6081 $(XSLTPROC_PROCESS_HTML)
6084 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6088 man/custom-html.xsl \
6091 # ------------------------------------------------------------------------------
6094 docs/sysvinit/README
6099 docs/sysvinit/README: docs/sysvinit/README.in
6102 docs/var-log/README: docs/var-log/README.in
6106 docs/sysvinit/README \
6111 docs/sysvinit/README.in \
6112 docs/var-log/README.in
6114 SOCKETS_TARGET_WANTS += \
6115 systemd-initctl.socket
6119 MULTI_USER_TARGET_WANTS += \
6120 systemd-update-utmp-runlevel.service
6121 GRAPHICAL_TARGET_WANTS += \
6122 systemd-update-utmp-runlevel.service
6123 RESCUE_TARGET_WANTS += \
6124 systemd-update-utmp-runlevel.service
6127 SYSINIT_TARGET_WANTS += \
6128 systemd-update-utmp.service
6131 SYSINIT_TARGET_WANTS += \
6132 systemd-update-done.service
6134 LOCAL_FS_TARGET_WANTS += \
6135 systemd-remount-fs.service \
6137 var-lib-machines.mount
6139 MULTI_USER_TARGET_WANTS += \
6141 systemd-ask-password-wall.path
6143 SYSINIT_TARGET_WANTS += \
6144 dev-hugepages.mount \
6146 sys-kernel-config.mount \
6147 sys-kernel-debug.mount \
6148 sys-fs-fuse-connections.mount \
6149 systemd-sysctl.service \
6150 systemd-ask-password-console.path
6153 SYSTEM_UNIT_ALIASES += \
6154 poweroff.target runlevel0.target \
6155 rescue.target runlevel1.target \
6156 multi-user.target runlevel2.target \
6157 multi-user.target runlevel3.target \
6158 multi-user.target runlevel4.target \
6159 graphical.target runlevel5.target \
6160 reboot.target runlevel6.target
6163 SYSTEM_UNIT_ALIASES += \
6164 graphical.target default.target \
6165 reboot.target ctrl-alt-del.target \
6166 getty@.service autovt@.service
6168 USER_UNIT_ALIASES += \
6169 $(systemunitdir)/shutdown.target shutdown.target \
6170 $(systemunitdir)/sockets.target sockets.target \
6171 $(systemunitdir)/timers.target timers.target \
6172 $(systemunitdir)/paths.target paths.target \
6173 $(systemunitdir)/bluetooth.target bluetooth.target \
6174 $(systemunitdir)/printer.target printer.target \
6175 $(systemunitdir)/sound.target sound.target \
6176 $(systemunitdir)/smartcard.target smartcard.target
6178 USER_UNIT_ALIASES += \
6179 $(systemunitdir)/busnames.target busnames.target
6181 GENERAL_ALIASES += \
6182 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6183 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6184 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6185 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6189 $(systemunitdir)/runlevel1.target.wants \
6190 $(systemunitdir)/runlevel2.target.wants \
6191 $(systemunitdir)/runlevel3.target.wants \
6192 $(systemunitdir)/runlevel4.target.wants \
6193 $(systemunitdir)/runlevel5.target.wants
6197 $(prefix)/lib/modules-load.d \
6198 $(sysconfdir)/modules-load.d \
6199 $(prefix)/lib/systemd/network \
6200 $(sysconfdir)/systemd/network \
6201 $(prefix)/lib/sysctl.d \
6202 $(sysconfdir)/sysctl.d \
6203 $(prefix)/lib/kernel/install.d \
6204 $(sysconfdir)/kernel/install.d \
6205 $(systemshutdowndir) \
6207 $(systemgeneratordir) \
6208 $(usergeneratordir) \
6211 $(pkgsysconfdir)/system \
6212 $(pkgsysconfdir)/system/multi-user.target.wants \
6213 $(pkgsysconfdir)/system/getty.target.wants \
6214 $(pkgsysconfdir)/user \
6215 $(dbussessionservicedir) \
6216 $(sysconfdir)/xdg/systemd
6218 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6220 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6222 install-data-hook: $(INSTALL_DATA_HOOKS)
6224 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6226 clean-local: $(CLEAN_LOCAL_HOOKS)
6227 rm -rf $(abs_srcdir)/install-tree
6228 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6229 $(abs_srcdir)/hwdb/iab.txt
6231 DISTCHECK_CONFIGURE_FLAGS = \
6232 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6233 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6234 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6235 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6236 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6237 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6238 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6239 --with-rootprefix=$$dc_install_base \
6240 --enable-compat-libs
6243 DISTCHECK_CONFIGURE_FLAGS += \
6244 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6245 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6247 DISTCHECK_CONFIGURE_FLAGS += \
6248 --with-sysvinit-path= \
6249 --with-sysvrcnd-path=
6253 DISTCHECK_CONFIGURE_FLAGS += \
6256 DISTCHECK_CONFIGURE_FLAGS += \
6260 .PHONY: dist-check-help
6262 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6263 for i in $(abspath $^); do \
6264 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6265 echo "$(basename $$i) --help output is too wide:"; \
6266 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6272 ( cd $(top_srcdir)/hwdb && \
6273 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6274 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6275 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6276 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6277 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6280 .PHONY: built-sources
6281 built-sources: $(BUILT_SOURCES)
6285 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6289 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6291 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6295 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6297 .PHONY: install-tree
6299 rm -rf $(abs_srcdir)/install-tree
6300 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6301 tree $(abs_srcdir)/install-tree
6303 # Let's run all tests of the test suite, but under valgrind. Let's
6304 # exclude perl/python/shell scripts we have in there
6305 .PHONY: valgrind-tests
6306 valgrind-tests: $(TESTS)
6307 $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \
6308 if file $$f | grep -q shell; then \
6309 echo -e "$${x}Skipping non-binary $$f"; else \
6310 echo -e "$${x}Running $$f"; \
6311 $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6316 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6318 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6319 $(AM_V_GEN)sort -u $^ > $@
6321 .PHONY: check-api-docs
6322 check-api-docs: exported man
6323 $(AM_V_GEN)for symbol in `cat exported` ; do \
6324 if test -f $(builddir)/man/$$symbol.html ; then \
6325 echo " Symbol $$symbol() is documented." ; \
6327 echo "‣ Symbol $$symbol() lacks documentation." ; \
6331 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6332 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6334 undefined defined: $(ALL_OBJECTS)
6335 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6336 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6337 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6343 .PHONY: check-api-unused
6344 check-api-unused: defined undefined exported
6345 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6347 .PHONY: check-includes
6348 check-includes: $(top_srcdir)/tools/check-includes.pl
6349 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6350 | xargs $(top_srcdir)/tools/check-includes.pl
6353 $(top_srcdir)/tools/check-includes.pl
6355 # Stupid test that everything purported to be exported really is
6356 define generate-sym-test
6357 $(AM_V_at)$(MKDIR_P) $(dir $@)
6358 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6359 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6360 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6361 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6362 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6363 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6364 $(AM_V_at)printf 'return 0; }\n' >> $@
6367 test-libsystemd-sym.c: \
6368 $(top_builddir)/src/libsystemd/libsystemd.sym \
6369 src/systemd/sd-journal.h \
6370 src/systemd/sd-daemon.h \
6371 src/systemd/sd-login.h \
6372 src/systemd/sd-bus.h \
6373 src/systemd/sd-utf8.h \
6374 src/systemd/sd-resolve.h \
6375 src/systemd/sd-path.h \
6376 src/systemd/sd-event.h
6377 $(generate-sym-test)
6379 test-libudev-sym.c: \
6380 src/libudev/libudev.sym \
6382 $(generate-sym-test)
6384 nodist_test_libsystemd_sym_SOURCES = \
6385 test-libsystemd-sym.c
6386 test_libsystemd_sym_LDADD = \
6389 nodist_test_libudev_sym_SOURCES = \
6391 test_libudev_sym_CFLAGS = \
6393 -Wno-deprecated-declarations
6394 test_libudev_sym_LDADD = \
6398 test-libsystemd-sym.c \
6402 test-libsystemd-sym.c \
6406 test-libsystemd-sym \
6411 cppcheck --enable=all -q $(top_srcdir)
6413 # Used to extract compile flags for YCM.
6418 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6421 tools/gdb-sd_dump_hashmaps.py
6424 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6427 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -