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
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfigdatadir=$(datadir)/pkgconfig
78 pkgconfiglibdir=$(libdir)/pkgconfig
79 polkitpolicydir=$(datadir)/polkit-1/actions
80 bashcompletiondir=@bashcompletiondir@
81 zshcompletiondir=@zshcompletiondir@
82 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
83 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
84 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
85 varlogdir=$(localstatedir)/log
86 systemdstatedir=$(localstatedir)/lib/systemd
87 catalogstatedir=$(systemdstatedir)/catalog
88 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
90 # Our own, non-special dirs
91 pkgsysconfdir=$(sysconfdir)/systemd
92 userunitdir=$(prefix)/lib/systemd/user
93 userpresetdir=$(prefix)/lib/systemd/user-preset
94 tmpfilesdir=$(prefix)/lib/tmpfiles.d
95 sysusersdir=$(prefix)/lib/sysusers.d
96 sysctldir=$(prefix)/lib/sysctl.d
97 binfmtdir=$(prefix)/lib/binfmt.d
98 modulesloaddir=$(prefix)/lib/modules-load.d
99 networkdir=$(rootprefix)/lib/systemd/network
100 pkgincludedir=$(includedir)/systemd
101 systemgeneratordir=$(rootlibexecdir)/system-generators
102 usergeneratordir=$(prefix)/lib/systemd/user-generators
103 systemshutdowndir=$(rootlibexecdir)/system-shutdown
104 systemsleepdir=$(rootlibexecdir)/system-sleep
105 systemunitdir=$(rootprefix)/lib/systemd/system
106 systempresetdir=$(rootprefix)/lib/systemd/system-preset
107 udevlibexecdir=$(rootprefix)/lib/udev
108 udevhomedir=$(udevlibexecdir)
109 udevrulesdir=$(udevlibexecdir)/rules.d
110 udevhwdbdir=$(udevlibexecdir)/hwdb.d
111 catalogdir=$(prefix)/lib/systemd/catalog
112 kernelinstalldir = $(prefix)/lib/kernel/install.d
113 factory_etcdir = $(datadir)/factory/etc
114 factory_pamdir = $(datadir)/factory/etc/pam.d
115 bootlibdir = $(prefix)/lib/systemd/boot/efi
117 # And these are the special ones for /
118 rootprefix=@rootprefix@
119 rootbindir=$(rootprefix)/bin
120 rootlibexecdir=$(rootprefix)/lib/systemd
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
137 polkitpolicy_in_in_files =
138 polkitpolicy_in_files =
140 dist_udevrules_DATA =
141 nodist_udevrules_DATA =
142 dist_pkgsysconf_DATA =
143 nodist_pkgsysconf_DATA =
145 dist_dbuspolicy_DATA =
146 dist_dbussystemservice_DATA =
147 dist_systemunit_DATA_busnames =
153 TEST_EXTENSIONS = .py
154 PY_LOG_COMPILER = $(PYTHON)
156 noinst_PROGRAMS = $(manual_tests) $(tests)
162 udevlibexec_PROGRAMS =
164 in_files = $(filter %.in,$(EXTRA_DIST))
165 in_in_files = $(filter %.in.in, $(in_files))
166 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
168 CLEANFILES = $(BUILT_SOURCES) \
169 $(pkgconfigdata_DATA) \
170 $(pkgconfiglib_DATA) \
171 $(in_files:.in=) $(in_in_files:.in.in=) \
174 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
175 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
176 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
179 -include $(top_builddir)/config.h \
180 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
181 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
182 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
183 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
184 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
185 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
186 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
187 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
188 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
189 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
190 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
191 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
192 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
193 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
194 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
195 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
196 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
197 -DROOTPREFIX=\"$(rootprefix)\" \
198 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
199 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
200 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
201 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
202 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
203 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
204 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
205 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
206 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
207 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
208 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
209 -DQUOTACHECK=\"$(QUOTACHECK)\" \
210 -DKEXEC=\"$(KEXEC)\" \
211 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
212 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
213 -DLIBDIR=\"$(libdir)\" \
214 -DROOTLIBDIR=\"$(rootlibdir)\" \
215 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
216 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
217 -I $(top_srcdir)/src \
218 -I $(top_builddir)/src/shared \
219 -I $(top_srcdir)/src/shared \
220 -I $(top_srcdir)/src/network \
221 -I $(top_srcdir)/src/login \
222 -I $(top_srcdir)/src/journal \
223 -I $(top_builddir)/src/journal \
224 -I $(top_srcdir)/src/timedate \
225 -I $(top_srcdir)/src/timesync \
226 -I $(top_srcdir)/src/resolve \
227 -I $(top_builddir)/src/resolve \
228 -I $(top_srcdir)/src/systemd \
229 -I $(top_builddir)/src/core \
230 -I $(top_srcdir)/src/core \
231 -I $(top_srcdir)/src/libudev \
232 -I $(top_srcdir)/src/udev \
233 -I $(top_srcdir)/src/udev/net \
234 -I $(top_builddir)/src/udev \
235 -I $(top_srcdir)/src/libsystemd/sd-bus \
236 -I $(top_srcdir)/src/libsystemd/sd-event \
237 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
238 -I $(top_srcdir)/src/libsystemd/sd-network \
239 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
240 -I $(top_srcdir)/src/libsystemd/sd-device \
241 -I $(top_srcdir)/src/libsystemd-network \
242 -I $(top_srcdir)/src/libsystemd-terminal \
245 AM_CFLAGS = $(OUR_CFLAGS)
246 AM_LDFLAGS = $(OUR_LDFLAGS)
248 # ------------------------------------------------------------------------------
249 define move-to-rootlibdir
250 if test "$(libdir)" != "$(rootlibdir)"; then \
251 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
252 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
253 rm -f $(DESTDIR)$(libdir)/$$libname && \
254 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
255 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
261 SHUTDOWN_TARGET_WANTS =
262 LOCAL_FS_TARGET_WANTS =
263 MULTI_USER_TARGET_WANTS =
264 GRAPHICAL_TARGET_WANTS =
265 RESCUE_TARGET_WANTS =
266 SYSINIT_TARGET_WANTS =
267 SOCKETS_TARGET_WANTS =
268 BUSNAMES_TARGET_WANTS =
269 TIMERS_TARGET_WANTS =
270 USER_SOCKETS_TARGET_WANTS =
271 USER_DEFAULT_TARGET_WANTS =
272 USER_BUSNAMES_TARGET_WANTS =
274 SYSTEM_UNIT_ALIASES =
278 install-target-wants-hook:
279 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
280 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
281 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
282 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
283 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
284 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
285 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
286 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
287 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
288 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
289 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
291 install-busnames-target-wants-hook:
292 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
293 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
296 [ -z "$$what" ] || ( \
297 dir=$(DESTDIR)$$dir/$$wants.wants && \
298 $(MKDIR_P) -m 0755 $$dir && \
301 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
304 install-directories-hook:
305 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
307 install-aliases-hook:
308 set -- $(SYSTEM_UNIT_ALIASES) && \
309 dir=$(systemunitdir) && $(install-aliases)
310 set -- $(USER_UNIT_ALIASES) && \
311 dir=$(userunitdir) && $(install-relative-aliases)
312 set -- $(GENERAL_ALIASES) && \
313 dir= && $(install-relative-aliases)
315 define install-aliases
316 while [ -n "$$1" ]; do \
317 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
318 rm -f $(DESTDIR)$$dir/$$2 && \
319 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
320 shift 2 || exit $$?; \
324 define install-relative-aliases
325 while [ -n "$$1" ]; do \
326 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
327 rm -f $(DESTDIR)$$dir/$$2 && \
328 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
329 shift 2 || exit $$?; \
333 install-touch-usr-hook:
334 touch -c $(DESTDIR)/$(prefix)
336 INSTALL_EXEC_HOOKS += \
337 install-target-wants-hook \
338 install-directories-hook \
339 install-aliases-hook \
340 install-touch-usr-hook
343 INSTALL_EXEC_HOOKS += \
344 install-busnames-target-wants-hook
347 # ------------------------------------------------------------------------------
348 AM_V_M4 = $(AM_V_M4_$(V))
349 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
350 AM_V_M4_0 = @echo " M4 " $@;
352 AM_V_XSLT = $(AM_V_XSLT_$(V))
353 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
354 AM_V_XSLT_0 = @echo " XSLT " $@;
356 AM_V_GPERF = $(AM_V_GPERF_$(V))
357 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
358 AM_V_GPERF_0 = @echo " GPERF " $@;
360 AM_V_LN = $(AM_V_LN_$(V))
361 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
362 AM_V_LN_0 = @echo " LN " $@;
364 AM_V_RM = $(AM_V_RM_$(V))
365 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
366 AM_V_RM_0 = @echo " RM " $@;
368 # ------------------------------------------------------------------------------
372 systemd-ask-password \
373 systemd-tty-ask-password-agent \
374 systemd-machine-id-setup \
381 systemd-detect-virt \
385 systemd-stdio-bridge \
389 src/kernel-install/kernel-install
391 dist_kernelinstall_SCRIPTS = \
392 src/kernel-install/50-depmod.install \
393 src/kernel-install/90-loaderentry.install
395 rootlibexec_PROGRAMS = \
397 systemd-cgroups-agent \
401 systemd-reply-password \
403 systemd-machine-id-commit \
408 systemd-socket-proxyd \
412 rootlibexec_PROGRAMS += \
416 systemgenerator_PROGRAMS = \
417 systemd-getty-generator \
418 systemd-fstab-generator \
419 systemd-system-update-generator \
420 systemd-debug-generator
422 dist_bashcompletion_DATA = \
423 shell-completion/bash/busctl \
424 shell-completion/bash/journalctl \
425 shell-completion/bash/systemd-analyze \
426 shell-completion/bash/systemd-cat \
427 shell-completion/bash/systemd-cgls \
428 shell-completion/bash/systemd-cgtop \
429 shell-completion/bash/systemd-delta \
430 shell-completion/bash/systemd-detect-virt \
431 shell-completion/bash/systemd-nspawn \
432 shell-completion/bash/systemd-run \
433 shell-completion/bash/udevadm \
434 shell-completion/bash/kernel-install
436 nodist_bashcompletion_DATA = \
437 shell-completion/bash/systemctl
439 dist_zshcompletion_DATA = \
440 shell-completion/zsh/_journalctl \
441 shell-completion/zsh/_udevadm \
442 shell-completion/zsh/_kernel-install \
443 shell-completion/zsh/_systemd-nspawn \
444 shell-completion/zsh/_systemd-analyze \
445 shell-completion/zsh/_systemd-run \
446 shell-completion/zsh/_sd_hosts_or_user_at_host \
447 shell-completion/zsh/_sd_outputmodes \
448 shell-completion/zsh/_sd_unit_files \
449 shell-completion/zsh/_systemd-delta \
450 shell-completion/zsh/_systemd
452 nodist_zshcompletion_DATA = \
453 shell-completion/zsh/_systemctl
456 shell-completion/bash/systemctl.in \
457 shell-completion/zsh/_systemctl.in
460 $(nodist_bashcompletion_DATA) \
461 $(nodist_zshcompletion_DATA)
464 sysctl.d/50-default.conf
466 dist_systemunit_DATA = \
467 units/graphical.target \
468 units/multi-user.target \
469 units/emergency.target \
470 units/sysinit.target \
475 units/local-fs.target \
476 units/local-fs-pre.target \
477 units/initrd.target \
478 units/initrd-fs.target \
479 units/initrd-root-fs.target \
480 units/remote-fs.target \
481 units/remote-fs-pre.target \
482 units/network.target \
483 units/network-pre.target \
484 units/network-online.target \
485 units/nss-lookup.target \
486 units/nss-user-lookup.target \
487 units/poweroff.target \
488 units/reboot.target \
489 units/rescue.target \
490 units/rpcbind.target \
491 units/time-sync.target \
492 units/shutdown.target \
494 units/umount.target \
495 units/sigpwr.target \
497 units/sockets.target \
498 units/timers.target \
500 units/suspend.target \
502 units/slices.target \
505 units/systemd-initctl.socket \
506 units/syslog.socket \
507 units/dev-hugepages.mount \
508 units/dev-mqueue.mount \
509 units/sys-kernel-config.mount \
510 units/sys-kernel-debug.mount \
511 units/sys-fs-fuse-connections.mount \
513 units/var-lib-machines.mount \
514 units/printer.target \
516 units/bluetooth.target \
517 units/smartcard.target \
518 units/systemd-ask-password-wall.path \
519 units/systemd-ask-password-console.path \
520 units/systemd-udevd-control.socket \
521 units/systemd-udevd-kernel.socket \
522 units/system-update.target \
523 units/initrd-switch-root.target \
524 units/machines.target
527 dist_systemunit_DATA += \
528 $(dist_systemunit_DATA_busnames)
531 dist_systemunit_DATA_busnames += \
532 units/busnames.target
534 nodist_systemunit_DATA = \
535 units/getty@.service \
536 units/serial-getty@.service \
537 units/console-shell.service \
538 units/console-getty.service \
539 units/container-getty@.service \
540 units/systemd-initctl.service \
541 units/systemd-remount-fs.service \
542 units/systemd-ask-password-wall.service \
543 units/systemd-ask-password-console.service \
544 units/systemd-sysctl.service \
545 units/emergency.service \
546 units/rescue.service \
547 units/user@.service \
548 units/systemd-suspend.service \
549 units/systemd-halt.service \
550 units/systemd-poweroff.service \
551 units/systemd-reboot.service \
552 units/systemd-kexec.service \
553 units/systemd-fsck@.service \
554 units/systemd-fsck-root.service \
555 units/systemd-machine-id-commit.service \
556 units/systemd-udevd.service \
557 units/systemd-udev-trigger.service \
558 units/systemd-udev-settle.service \
559 units/systemd-hwdb-update.service \
560 units/debug-shell.service \
561 units/initrd-parse-etc.service \
562 units/initrd-cleanup.service \
563 units/initrd-udevadm-cleanup-db.service \
564 units/initrd-switch-root.service \
565 units/systemd-nspawn@.service \
566 units/systemd-update-done.service
569 nodist_systemunit_DATA += \
570 units/systemd-update-utmp.service \
571 units/systemd-update-utmp-runlevel.service
574 dist_userunit_DATA = \
575 units/user/basic.target \
576 units/user/default.target \
577 units/user/exit.target
579 nodist_userunit_DATA = \
580 units/user/systemd-exit.service
582 dist_systempreset_DATA = \
583 system-preset/90-systemd.preset
586 units/getty@.service.m4 \
587 units/serial-getty@.service.m4 \
588 units/console-shell.service.m4.in \
589 units/console-getty.service.m4.in \
590 units/container-getty@.service.m4.in \
591 units/rescue.service.in \
592 units/systemd-initctl.service.in \
593 units/systemd-remount-fs.service.in \
594 units/systemd-update-utmp.service.in \
595 units/systemd-update-utmp-runlevel.service.in \
596 units/systemd-ask-password-wall.service.in \
597 units/systemd-ask-password-console.service.in \
598 units/systemd-sysctl.service.in \
599 units/emergency.service.in \
600 units/systemd-halt.service.in \
601 units/systemd-poweroff.service.in \
602 units/systemd-reboot.service.in \
603 units/systemd-kexec.service.in \
604 units/user/systemd-exit.service.in \
605 units/systemd-fsck@.service.in \
606 units/systemd-fsck-root.service.in \
607 units/systemd-machine-id-commit.service.in \
608 units/user@.service.m4.in \
609 units/debug-shell.service.in \
610 units/systemd-suspend.service.in \
611 units/quotaon.service.in \
612 units/initrd-parse-etc.service.in \
613 units/initrd-cleanup.service.in \
614 units/initrd-udevadm-cleanup-db.service.in \
615 units/initrd-switch-root.service.in \
616 units/systemd-nspawn@.service.in \
617 units/systemd-update-done.service.in
620 nodist_systemunit_DATA += \
621 units/rc-local.service \
622 units/halt-local.service
624 systemgenerator_PROGRAMS += \
625 systemd-sysv-generator \
626 systemd-rc-local-generator
630 src/systemctl/systemd-sysv-install.SKELETON \
631 units/rc-local.service.in \
632 units/halt-local.service.in
634 # automake is broken and can't handle files with a dash in front
635 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
637 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
639 units-uninstall-hook:
640 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
642 INSTALL_DATA_HOOKS += units-install-hook
643 UNINSTALL_DATA_HOOKS += units-uninstall-hook
651 src/libsystemd/sd-bus/PORTING-DBUS1 \
652 src/libsystemd/sd-bus/DIFFERENCES \
653 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
655 @INTLTOOL_POLICY_RULE@
657 # ------------------------------------------------------------------------------
662 include Makefile-man.am
664 .PHONY: man update-man-list
665 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
668 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
670 ${XML_FILES:.xml=.html}
672 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
689 $(AM_V_at)$(MKDIR_P) $(dir $@)
690 $(AM_V_LN)$(LN_S) -f ../../man $@
699 man/index.html: man/systemd.index.html
700 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
708 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
709 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
710 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
712 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
713 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
714 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
715 @echo "Makefile-man.am has been regenerated"
717 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
718 $(AM_V_at)$(MKDIR_P) $(dir $@)
719 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
721 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
722 $(AM_V_at)$(MKDIR_P) $(dir $@)
723 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
726 man/systemd.index.xml \
727 man/systemd.directives.xml
738 tools/make-man-index.py \
739 tools/make-directive-index.py \
740 tools/xml_helper.py \
741 man/systemd.index.xml \
743 man/systemd.directives.xml \
744 man/glib-event-glue.c \
747 # ------------------------------------------------------------------------------
748 noinst_LTLIBRARIES += \
751 libsystemd_shared_la_SOURCES = \
752 src/shared/capability.c \
753 src/shared/capability.h \
754 src/shared/linux/auto_dev-ioctl.h \
755 src/shared/ioprio.h \
756 src/shared/missing.h \
757 src/shared/initreq.h \
758 src/shared/securebits.h \
759 src/shared/special.h \
761 src/shared/unaligned.h \
764 src/shared/sparse-endian.h \
765 src/shared/refcnt.h \
766 src/shared/udev-util.h \
767 src/shared/device-nodes.c \
768 src/shared/device-nodes.h \
773 src/shared/architecture.c \
774 src/shared/architecture.h \
775 src/shared/efivars.c \
776 src/shared/efivars.h \
777 src/shared/formats-util.h \
778 src/shared/fstab-util.c \
779 src/shared/fstab-util.h \
780 src/shared/lockfile-util.c \
781 src/shared/lockfile-util.h \
782 src/shared/path-util.c \
783 src/shared/path-util.h \
784 src/shared/time-util.c \
785 src/shared/time-util.h \
786 src/shared/locale-util.c \
787 src/shared/locale-util.h \
788 src/shared/signal-util.c \
789 src/shared/signal-util.h \
790 src/shared/mempool.c \
791 src/shared/mempool.h \
792 src/shared/hashmap.c \
793 src/shared/hashmap.h \
794 src/shared/siphash24.c \
795 src/shared/siphash24.h \
797 src/shared/ordered-set.h \
802 src/shared/sleep-config.c \
803 src/shared/sleep-config.h \
806 src/shared/env-util.c \
807 src/shared/env-util.h \
808 src/shared/strbuf.c \
809 src/shared/strbuf.h \
810 src/shared/strxcpyx.c \
811 src/shared/strxcpyx.h \
812 src/shared/conf-parser.c \
813 src/shared/conf-parser.h \
816 src/shared/ratelimit.h \
817 src/shared/ratelimit.c \
818 src/shared/exit-status.c \
819 src/shared/exit-status.h \
822 src/shared/gunicode.c \
823 src/shared/gunicode.h \
826 src/shared/socket-util.c \
827 src/shared/socket-util.h \
828 src/shared/in-addr-util.c \
829 src/shared/in-addr-util.h \
830 src/shared/ether-addr-util.h \
831 src/shared/conf-files.c \
832 src/shared/conf-files.h \
833 src/shared/cgroup-util.c \
834 src/shared/cgroup-util.h \
835 src/shared/cgroup-show.c \
836 src/shared/cgroup-show.h \
837 src/shared/unit-name.c \
838 src/shared/unit-name.h \
839 src/shared/utmp-wtmp.h \
840 src/shared/watchdog.c \
841 src/shared/watchdog.h \
842 src/shared/spawn-ask-password-agent.c \
843 src/shared/spawn-ask-password-agent.h \
844 src/shared/replace-var.c \
845 src/shared/replace-var.h \
846 src/shared/spawn-polkit-agent.c \
847 src/shared/spawn-polkit-agent.h \
848 src/shared/clock-util.c \
849 src/shared/clock-util.h \
850 src/shared/calendarspec.c \
851 src/shared/calendarspec.h \
852 src/shared/fileio.c \
853 src/shared/fileio.h \
854 src/shared/output-mode.h \
855 src/shared/MurmurHash2.c \
856 src/shared/MurmurHash2.h \
857 src/shared/acpi-fpdt.h \
858 src/shared/acpi-fpdt.c \
859 src/shared/boot-timestamps.h \
860 src/shared/boot-timestamps.c \
863 src/shared/smack-util.c \
864 src/shared/smack-util.h \
865 src/shared/apparmor-util.c \
866 src/shared/apparmor-util.h \
867 src/shared/ima-util.c \
868 src/shared/ima-util.h \
869 src/shared/ptyfwd.c \
870 src/shared/ptyfwd.h \
871 src/shared/errno-list.c \
872 src/shared/errno-list.h \
873 src/shared/af-list.c \
874 src/shared/af-list.h \
875 src/shared/arphrd-list.c \
876 src/shared/arphrd-list.h \
877 src/shared/cap-list.c \
878 src/shared/cap-list.h \
885 src/shared/bus-label.c \
886 src/shared/bus-label.h \
888 src/shared/clean-ipc.h \
889 src/shared/clean-ipc.c \
890 src/shared/login-shared.c \
891 src/shared/login-shared.h \
894 src/shared/barrier.c \
895 src/shared/barrier.h \
900 src/shared/base-filesystem.c \
901 src/shared/base-filesystem.h \
902 src/shared/memfd-util.c \
903 src/shared/memfd-util.h \
904 src/shared/process-util.c \
905 src/shared/process-util.h \
906 src/shared/random-util.c \
907 src/shared/random-util.h \
908 src/shared/terminal-util.c \
909 src/shared/terminal-util.h \
910 src/shared/uid-range.c \
911 src/shared/uid-range.h \
912 src/shared/nss-util.h \
915 src/shared/sigbus.c \
916 src/shared/sigbus.h \
918 src/shared/import-util.c \
919 src/shared/import-util.h \
920 src/shared/sysctl-util.c \
921 src/shared/sysctl-util.h \
922 src/shared/hostname-util.h \
923 src/shared/hostname-util.c
926 libsystemd_shared_la_SOURCES += \
927 src/shared/utmp-wtmp.c
930 nodist_libsystemd_shared_la_SOURCES = \
931 src/shared/errno-from-name.h \
932 src/shared/errno-to-name.h \
933 src/shared/af-from-name.h \
934 src/shared/af-to-name.h \
935 src/shared/arphrd-from-name.h \
936 src/shared/arphrd-to-name.h \
937 src/shared/cap-from-name.h \
938 src/shared/cap-to-name.h
940 libsystemd_shared_la_CFLAGS = \
946 libsystemd_shared_la_LIBADD = \
950 # ------------------------------------------------------------------------------
951 noinst_LTLIBRARIES += \
954 libsystemd_units_la_SOURCES = \
955 src/shared/install.c \
956 src/shared/install.h \
957 src/shared/install-printf.c \
958 src/shared/install-printf.h \
959 src/shared/path-lookup.c \
960 src/shared/path-lookup.h \
961 src/shared/specifier.c \
962 src/shared/specifier.h
964 # ------------------------------------------------------------------------------
965 noinst_LTLIBRARIES += \
968 libsystemd_label_la_SOURCES = \
969 src/shared/socket-label.c \
972 src/shared/selinux-util.c \
973 src/shared/selinux-util.h \
974 src/shared/mkdir-label.c \
975 src/shared/ask-password-api.c \
976 src/shared/ask-password-api.h \
977 src/shared/switch-root.h \
978 src/shared/switch-root.c \
979 src/shared/fileio-label.c \
980 src/shared/fileio-label.h \
981 src/shared/dev-setup.c \
982 src/shared/dev-setup.h \
983 src/shared/dropin.c \
984 src/shared/dropin.h \
985 src/shared/condition.c \
986 src/shared/condition.h \
987 src/shared/generator.h \
988 src/shared/generator.c \
989 src/shared/btrfs-util.c \
990 src/shared/btrfs-util.h \
991 src/shared/btrfs-ctree.h \
994 src/shared/machine-image.c \
995 src/shared/machine-image.h \
996 src/shared/machine-pool.c \
997 src/shared/machine-pool.h \
1001 libsystemd_label_la_CFLAGS = \
1005 libsystemd_label_la_LIBADD = \
1008 # -----------------------------------------------------------------------------
1011 noinst_LTLIBRARIES += \
1014 libsystemd_fw_la_SOURCES = \
1015 src/shared/fw-util.h \
1016 src/shared/fw-util.c
1018 libsystemd_fw_la_CFLAGS = \
1022 libsystemd_fw_la_LIBADD = \
1026 # -----------------------------------------------------------------------------
1029 dist_systemunit_DATA += \
1030 units/ldconfig.service
1032 SYSINIT_TARGET_WANTS += \
1036 # ------------------------------------------------------------------------------
1039 noinst_LTLIBRARIES += \
1040 libsystemd-seccomp.la
1042 libsystemd_seccomp_la_SOURCES = \
1043 src/shared/seccomp-util.h \
1044 src/shared/seccomp-util.c
1046 libsystemd_seccomp_la_CFLAGS = \
1050 libsystemd_seccomp_la_LIBADD = \
1054 # ------------------------------------------------------------------------------
1055 noinst_LTLIBRARIES += \
1058 libsystemd_logs_la_SOURCES = \
1059 src/shared/logs-show.c \
1060 src/shared/logs-show.h
1062 # ------------------------------------------------------------------------------
1064 noinst_LTLIBRARIES += \
1067 libsystemd_acl_la_SOURCES = \
1068 src/shared/acl-util.c \
1069 src/shared/acl-util.h
1071 libsystemd_acl_la_CFLAGS = \
1075 libsystemd_acl_la_LIBADD = \
1079 # ------------------------------------------------------------------------------
1080 noinst_LTLIBRARIES += \
1083 libsystemd_core_la_SOURCES = \
1086 src/core/unit-printf.c \
1087 src/core/unit-printf.h \
1090 src/core/manager.c \
1091 src/core/manager.h \
1092 src/core/transaction.c \
1093 src/core/transaction.h \
1094 src/core/load-fragment.c \
1095 src/core/load-fragment.h \
1096 src/core/service.c \
1097 src/core/service.h \
1100 src/core/busname.c \
1101 src/core/busname.h \
1102 src/core/bus-endpoint.c \
1103 src/core/bus-endpoint.h \
1104 src/core/bus-policy.c \
1105 src/core/bus-policy.h \
1108 src/core/snapshot.c \
1109 src/core/snapshot.h \
1114 src/core/automount.c \
1115 src/core/automount.h \
1126 src/core/load-dropin.c \
1127 src/core/load-dropin.h \
1128 src/core/execute.c \
1129 src/core/execute.h \
1134 src/core/dbus-manager.c \
1135 src/core/dbus-manager.h \
1136 src/core/dbus-unit.c \
1137 src/core/dbus-unit.h \
1138 src/core/dbus-job.c \
1139 src/core/dbus-job.h \
1140 src/core/dbus-service.c \
1141 src/core/dbus-service.h \
1142 src/core/dbus-socket.c \
1143 src/core/dbus-socket.h \
1144 src/core/dbus-busname.c \
1145 src/core/dbus-busname.h \
1146 src/core/dbus-target.c \
1147 src/core/dbus-target.h \
1148 src/core/dbus-snapshot.c \
1149 src/core/dbus-snapshot.h \
1150 src/core/dbus-device.c \
1151 src/core/dbus-device.h \
1152 src/core/dbus-mount.c \
1153 src/core/dbus-mount.h \
1154 src/core/dbus-automount.c \
1155 src/core/dbus-automount.h \
1156 src/core/dbus-swap.c \
1157 src/core/dbus-swap.h \
1158 src/core/dbus-timer.c \
1159 src/core/dbus-timer.h \
1160 src/core/dbus-path.c \
1161 src/core/dbus-path.h \
1162 src/core/dbus-slice.c \
1163 src/core/dbus-slice.h \
1164 src/core/dbus-scope.c \
1165 src/core/dbus-scope.h \
1166 src/core/dbus-execute.c \
1167 src/core/dbus-execute.h \
1168 src/core/dbus-kill.c \
1169 src/core/dbus-kill.h \
1170 src/core/dbus-cgroup.c \
1171 src/core/dbus-cgroup.h \
1174 src/core/selinux-access.c \
1175 src/core/selinux-access.h \
1176 src/core/selinux-setup.c \
1177 src/core/selinux-setup.h \
1178 src/core/smack-setup.c \
1179 src/core/smack-setup.h \
1180 src/core/ima-setup.c \
1181 src/core/ima-setup.h \
1182 src/core/locale-setup.h \
1183 src/core/locale-setup.c \
1184 src/core/hostname-setup.c \
1185 src/core/hostname-setup.h \
1186 src/core/machine-id-setup.c \
1187 src/core/machine-id-setup.h \
1188 src/core/mount-setup.c \
1189 src/core/mount-setup.h \
1190 src/core/kmod-setup.c \
1191 src/core/kmod-setup.h \
1192 src/core/loopback-setup.h \
1193 src/core/loopback-setup.c \
1194 src/core/namespace.c \
1195 src/core/namespace.h \
1196 src/core/killall.h \
1197 src/core/killall.c \
1198 src/core/audit-fd.c \
1199 src/core/audit-fd.h \
1200 src/core/show-status.c \
1201 src/core/show-status.h \
1202 src/core/failure-action.c \
1203 src/core/failure-action.h
1205 nodist_libsystemd_core_la_SOURCES = \
1206 src/core/load-fragment-gperf.c \
1207 src/core/load-fragment-gperf-nulstr.c
1209 libsystemd_core_la_CFLAGS = \
1214 $(APPARMOR_CFLAGS) \
1219 libsystemd_core_la_LIBADD = \
1220 libsystemd-units.la \
1221 libsystemd-label.la \
1222 libudev-internal.la \
1223 libsystemd-shared.la \
1224 libsystemd-internal.la \
1233 libsystemd_core_la_LIBADD += \
1234 libsystemd-seccomp.la
1237 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1238 $(AM_V_at)$(MKDIR_P) $(dir $@)
1239 $(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 ";" }' < $< > $@
1241 gperf_gperf_m4_sources = \
1242 src/core/load-fragment-gperf.gperf.m4
1244 gperf_txt_sources = \
1245 src/shared/errno-list.txt \
1246 src/shared/af-list.txt \
1247 src/shared/arphrd-list.txt \
1248 src/shared/cap-list.txt
1251 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1252 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1253 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1254 $(gperf_txt_sources:-list.txt=-from-name.h) \
1255 $(gperf_txt_sources:-list.txt=-to-name.h)
1258 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1260 $(gperf_txt_sources)
1263 $(gperf_gperf_m4_sources) \
1264 $(gperf_gperf_sources)
1267 $(gperf_txt_sources)
1269 %-from-name.gperf: %-list.txt
1270 $(AM_V_at)$(MKDIR_P) $(dir $@)
1271 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1273 %-from-name.h: %-from-name.gperf
1274 $(AM_V_at)$(MKDIR_P) $(dir $@)
1275 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1278 src/shared/errno-list.txt:
1279 $(AM_V_at)$(MKDIR_P) $(dir $@)
1280 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1282 src/shared/errno-to-name.h: src/shared/errno-list.txt
1283 $(AM_V_at)$(MKDIR_P) $(dir $@)
1284 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1287 src/shared/af-list.txt:
1288 $(AM_V_at)$(MKDIR_P) $(dir $@)
1289 $(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; }' >$@
1291 src/shared/af-to-name.h: src/shared/af-list.txt
1292 $(AM_V_at)$(MKDIR_P) $(dir $@)
1293 $(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 "};"}' <$< >$@
1296 src/shared/arphrd-list.txt:
1297 $(AM_V_at)$(MKDIR_P) $(dir $@)
1298 $(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_//' >$@
1300 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1301 $(AM_V_at)$(MKDIR_P) $(dir $@)
1302 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1304 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1305 $(AM_V_at)$(MKDIR_P) $(dir $@)
1306 $(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 }' <$< >$@
1309 src/shared/cap-list.txt:
1310 $(AM_V_at)$(MKDIR_P) $(dir $@)
1311 $(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 >$@
1313 src/shared/cap-to-name.h: src/shared/cap-list.txt
1314 $(AM_V_at)$(MKDIR_P) $(dir $@)
1315 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1317 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1318 $(AM_V_at)$(MKDIR_P) $(dir $@)
1319 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1321 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1322 $(AM_V_at)$(MKDIR_P) $(dir $@)
1323 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1325 audit_list_includes = -include linux/audit.h missing.h
1327 audit_list_includes += -include libaudit.h
1330 src/journal/audit_type-list.txt:
1331 $(AM_V_at)$(MKDIR_P) $(dir $@)
1332 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/audit.h -include missing.h - </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 >$@
1334 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1335 $(AM_V_at)$(MKDIR_P) $(dir $@)
1336 $(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" }' <$< >$@
1339 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1340 $(AM_V_at)$(MKDIR_P) $(dir $@)
1341 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1343 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1344 $(AM_V_at)$(MKDIR_P) $(dir $@)
1345 $(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" }' <$< >$@
1347 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1348 $(AM_V_at)$(MKDIR_P) $(dir $@)
1349 $(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 }' <$< >$@
1351 # ------------------------------------------------------------------------------
1360 libsystemd-core.la \
1363 dist_pkgsysconf_DATA += \
1364 src/core/system.conf \
1367 dist_dbuspolicy_DATA += \
1368 src/core/org.freedesktop.systemd1.conf
1370 dist_dbussystemservice_DATA += \
1371 src/core/org.freedesktop.systemd1.service
1373 polkitpolicy_in_in_files += \
1374 src/core/org.freedesktop.systemd1.policy.in.in
1376 pkgconfigdata_DATA += \
1379 nodist_rpmmacros_DATA = \
1380 src/core/macros.systemd
1383 src/core/systemd.pc.in \
1384 src/core/macros.systemd.in
1386 # ------------------------------------------------------------------------------
1426 test-terminal-util \
1438 test-strip-tab-ansi \
1475 test/daughter.service \
1477 test/end.service.in \
1480 test/grandchild.service \
1482 test/hello-after-sleep.target \
1483 test/hello.service \
1485 test/parent-deep.slice \
1488 test/sched_idle_bad.service \
1489 test/sched_idle_ok.service \
1490 test/sched_rr_bad.service \
1491 test/sched_rr_change.service \
1492 test/sched_rr_ok.service \
1493 test/shutdown.target \
1494 test/sleep.service \
1495 test/sockets.target \
1497 test/sysinit.target \
1498 test/testsuite.target \
1499 test/timers.target \
1500 test/unstoppable.service \
1501 test/path-changed.service \
1502 test/path-directorynotempty.service \
1503 test/path-existsglob.service \
1504 test/path-exists.service \
1505 test/path-makedirectory.service \
1506 test/path-modified.service \
1507 test/path-mycustomunit.service \
1508 test/path-service.service \
1509 test/path-changed.path \
1510 test/path-directorynotempty.path \
1511 test/path-existsglob.path \
1512 test/path-exists.path \
1513 test/path-makedirectory.path \
1514 test/path-modified.path \
1515 test/path-unit.path \
1516 test/exec-environment-empty.service \
1517 test/exec-environment-multiple.service \
1518 test/exec-environment.service \
1519 test/exec-group.service \
1520 test/exec-ignoresigpipe-no.service \
1521 test/exec-ignoresigpipe-yes.service \
1522 test/exec-personality-x86-64.service \
1523 test/exec-personality-x86.service \
1524 test/exec-privatedevices-no.service \
1525 test/exec-privatedevices-yes.service \
1526 test/exec-privatetmp-no.service \
1527 test/exec-privatetmp-yes.service \
1528 test/exec-systemcallerrornumber.service \
1529 test/exec-systemcallfilter-failing2.service \
1530 test/exec-systemcallfilter-failing.service \
1531 test/exec-systemcallfilter-not-failing2.service \
1532 test/exec-systemcallfilter-not-failing.service \
1533 test/exec-user.service \
1534 test/exec-workingdirectory.service \
1535 test/exec-umask-0177.service \
1536 test/exec-umask-default.service \
1537 test/bus-policy/hello.conf \
1538 test/bus-policy/methods.conf \
1539 test/bus-policy/ownerships.conf \
1540 test/bus-policy/signals.conf \
1541 test/bus-policy/check-own-rules.conf \
1542 test/bus-policy/many-rules.conf \
1543 test/bus-policy/test.conf
1547 src/test/test-helper.h
1549 test_device_nodes_SOURCES = \
1550 src/test/test-device-nodes.c
1552 test_device_nodes_LDADD = \
1553 libsystemd-shared.la
1555 test_engine_SOURCES = \
1556 src/test/test-engine.c
1558 test_engine_CFLAGS = \
1562 test_engine_LDADD = \
1563 libsystemd-core.la \
1566 test_job_type_SOURCES = \
1567 src/test/test-job-type.c
1569 test_job_type_CFLAGS = \
1573 test_job_type_LDADD = \
1574 libsystemd-core.la \
1587 test_loopback_SOURCES = \
1588 src/test/test-loopback.c
1590 test_loopback_LDADD = \
1593 test_hostname_SOURCES = \
1594 src/test/test-hostname.c
1596 test_hostname_LDADD = \
1603 test_boot_timestamp_SOURCES = \
1604 src/test/test-boot-timestamps.c
1606 test_boot_timestamp_LDADD = \
1607 libsystemd-shared.la
1610 test_unit_name_SOURCES = \
1611 src/test/test-unit-name.c
1613 test_unit_name_CFLAGS = \
1617 test_unit_name_LDADD = \
1618 libsystemd-core.la \
1621 test_unit_file_SOURCES = \
1622 src/test/test-unit-file.c
1624 test_unit_file_CFLAGS = \
1628 test_unit_file_LDADD = \
1629 libsystemd-core.la \
1632 test_utf8_SOURCES = \
1633 src/test/test-utf8.c
1636 libsystemd-shared.la
1638 test_capability_SOURCES = \
1639 src/test/test-capability.c
1641 test_capability_LDADD = \
1642 libsystemd-shared.la
1644 test_async_SOURCES = \
1645 src/test/test-async.c
1647 test_async_LDADD = \
1648 libsystemd-shared.la
1650 test_locale_util_SOURCES = \
1651 src/test/test-locale-util.c
1653 test_locale_util_LDADD = \
1654 libsystemd-shared.la
1656 test_copy_SOURCES = \
1657 src/test/test-copy.c
1660 libsystemd-label.la \
1661 libsystemd-shared.la
1663 test_sigbus_SOURCES = \
1664 src/test/test-sigbus.c
1666 test_sigbus_LDADD = \
1667 libsystemd-shared.la
1669 test_condition_SOURCES = \
1670 src/test/test-condition.c
1672 test_condition_LDADD = \
1673 libsystemd-label.la \
1674 libsystemd-internal.la \
1675 libsystemd-shared.la
1677 test_fdset_SOURCES = \
1678 src/test/test-fdset.c
1680 test_fdset_LDADD = \
1681 libsystemd-shared.la \
1682 libsystemd-internal.la
1684 test_fstab_util_SOURCES = \
1685 src/test/test-fstab-util.c
1687 test_fstab_util_LDADD = \
1688 libsystemd-shared.la
1690 test_ratelimit_SOURCES = \
1691 src/test/test-ratelimit.c
1693 test_ratelimit_LDADD = \
1694 libsystemd-shared.la
1696 test_util_SOURCES = \
1697 src/test/test-util.c
1700 libsystemd-label.la \
1701 libsystemd-shared.la
1703 test_process_util_SOURCES = \
1704 src/test/test-process-util.c
1706 test_process_util_LDADD = \
1707 libsystemd-shared.la
1709 test_terminal_util_SOURCES = \
1710 src/test/test-terminal-util.c
1712 test_terminal_util_LDADD = \
1713 libsystemd-shared.la
1715 test_path_lookup_SOURCES = \
1716 src/test/test-path-lookup.c
1718 test_path_lookup_LDADD = \
1720 libsystemd-units.la \
1721 libsystemd-label.la \
1722 libsystemd-shared.la
1724 test_uid_range_SOURCES = \
1725 src/test/test-uid-range.c
1727 test_uid_range_LDADD = \
1728 libsystemd-shared.la
1730 test_cap_list_SOURCES = \
1731 src/test/test-cap-list.c
1733 test_cap_list_LDADD = \
1734 libsystemd-shared.la
1736 test_socket_util_SOURCES = \
1737 src/test/test-socket-util.c
1739 test_socket_util_LDADD = \
1740 libsystemd-shared.la
1742 test_ring_SOURCES = \
1743 src/test/test-ring.c
1746 libsystemd-shared.la
1748 test_barrier_SOURCES = \
1749 src/test/test-barrier.c
1751 test_barrier_LDADD = \
1752 libsystemd-shared.la
1754 test_pty_SOURCES = \
1760 test_tmpfiles_SOURCES = \
1761 src/test/test-tmpfiles.c
1763 test_tmpfiles_LDADD = \
1764 libsystemd-shared.la
1766 test_namespace_SOURCES = \
1767 src/test/test-namespace.c
1769 test_verbs_SOURCES = \
1770 src/test/test-verbs.c
1772 test_verbs_LDADD = \
1773 libsystemd-shared.la
1775 test_namespace_LDADD = \
1779 src/test/test-hashmap-ordered.c
1781 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1782 $(AM_V_at)$(MKDIR_P) $(dir $@)
1783 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1784 { if (!match($$0, "^#include")) \
1785 gsub(/hashmap/, "ordered_hashmap"); \
1786 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1787 gsub(/Hashmap/, "OrderedHashmap"); \
1790 nodist_test_hashmap_SOURCES = \
1791 src/test/test-hashmap-ordered.c
1793 test_hashmap_SOURCES = \
1794 src/test/test-hashmap.c \
1795 src/test/test-hashmap-plain.c
1797 test_hashmap_LDADD = \
1798 libsystemd-shared.la
1800 test_set_SOURCES = \
1804 libsystemd-shared.la
1806 test_xml_SOURCES = \
1810 libsystemd-shared.la
1812 test_json_SOURCES = \
1813 src/test/test-json.c
1816 libsystemd-shared.la
1818 test_list_SOURCES = \
1819 src/test/test-list.c
1822 libsystemd-shared.la
1824 test_unaligned_LDADD = \
1825 libsystemd-shared.la
1827 test_unaligned_SOURCES = \
1828 src/test/test-unaligned.c
1830 test_tables_SOURCES = \
1831 src/test/test-tables.c \
1832 src/shared/test-tables.h \
1833 src/bus-proxyd/bus-xml-policy.c \
1834 src/bus-proxyd/bus-xml-policy.h \
1835 src/journal/journald-server.c \
1836 src/journal/journald-server.h
1838 test_tables_CPPFLAGS = \
1840 -I$(top_srcdir)/src/bus-proxyd
1842 test_tables_CFLAGS = \
1846 test_tables_LDADD = \
1847 libsystemd-logs.la \
1848 libsystemd-journal-internal.la \
1849 libsystemd-journal-core.la \
1850 libsystemd-core.la \
1854 test_prioq_SOURCES = \
1855 src/test/test-prioq.c
1857 test_prioq_LDADD = \
1858 libsystemd-shared.la
1860 test_fileio_SOURCES = \
1861 src/test/test-fileio.c
1863 test_fileio_LDADD = \
1864 libsystemd-shared.la
1866 test_time_SOURCES = \
1867 src/test/test-time.c
1870 libsystemd-shared.la
1872 test_architecture_SOURCES = \
1873 src/test/test-architecture.c
1875 test_architecture_LDADD = \
1876 libsystemd-shared.la
1878 test_log_SOURCES = \
1882 libsystemd-shared.la
1884 test_ipcrm_SOURCES = \
1885 src/test/test-ipcrm.c
1887 test_ipcrm_LDADD = \
1888 libsystemd-shared.la \
1891 test_btrfs_SOURCES = \
1892 src/test/test-btrfs.c
1894 test_btrfs_LDADD = \
1895 libsystemd-label.la \
1896 libsystemd-shared.la
1899 test_fw_util_SOURCES = \
1900 src/test/test-fw-util.c
1902 test_fw_util_CFLAGS = \
1906 test_fw_util_LDADD = \
1908 libsystemd-shared.la \
1912 test_rtnl_manual_SOURCES = \
1913 src/test/test-rtnl-manual.c
1915 test_rtnl_manual_CFLAGS = \
1919 test_rtnl_manual_LDADD = \
1920 libsystemd-internal.la \
1921 libsystemd-shared.la \
1924 test_ellipsize_SOURCES = \
1925 src/test/test-ellipsize.c
1927 test_ellipsize_LDADD = \
1928 libsystemd-shared.la
1930 test_date_SOURCES = \
1931 src/test/test-date.c
1934 libsystemd-shared.la
1936 test_sleep_SOURCES = \
1937 src/test/test-sleep.c
1939 test_sleep_LDADD = \
1942 test_replace_var_SOURCES = \
1943 src/test/test-replace-var.c
1945 test_replace_var_LDADD = \
1946 libsystemd-shared.la
1948 test_calendarspec_SOURCES = \
1949 src/test/test-calendarspec.c
1951 test_calendarspec_LDADD = \
1952 libsystemd-shared.la
1954 test_strip_tab_ansi_SOURCES = \
1955 src/test/test-strip-tab-ansi.c
1957 test_strip_tab_ansi_LDADD = \
1958 libsystemd-shared.la
1960 test_daemon_SOURCES = \
1961 src/test/test-daemon.c
1963 test_daemon_LDADD = \
1964 libsystemd-internal.la \
1965 libsystemd-shared.la
1967 test_cgroup_SOURCES = \
1968 src/test/test-cgroup.c
1970 test_cgroup_LDADD = \
1971 libsystemd-label.la \
1972 libsystemd-shared.la \
1973 libsystemd-internal.la
1975 test_cgroup_mask_SOURCES = \
1976 src/test/test-cgroup-mask.c
1978 test_cgroup_mask_CPPFLAGS = \
1981 test_cgroup_mask_CFLAGS = \
1985 test_cgroup_mask_LDADD = \
1986 libsystemd-core.la \
1989 test_cgroup_util_SOURCES = \
1990 src/test/test-cgroup-util.c
1992 test_cgroup_util_LDADD = \
1993 libsystemd-label.la \
1994 libsystemd-internal.la \
1995 libsystemd-shared.la
1997 test_env_replace_SOURCES = \
1998 src/test/test-env-replace.c
2000 test_env_replace_LDADD = \
2001 libsystemd-shared.la
2003 test_strbuf_SOURCES = \
2004 src/test/test-strbuf.c
2006 test_strbuf_LDADD = \
2007 libsystemd-shared.la
2009 test_strv_SOURCES = \
2010 src/test/test-strv.c
2013 libsystemd-units.la \
2014 libsystemd-internal.la \
2015 libsystemd-shared.la
2017 test_path_util_SOURCES = \
2018 src/test/test-path-util.c
2020 test_path_util_LDADD = \
2021 libsystemd-label.la \
2022 libsystemd-shared.la
2024 test_path_SOURCES = \
2025 src/test/test-path.c
2027 test_path_CFLAGS = \
2033 test_execute_SOURCES = \
2034 src/test/test-execute.c
2036 test_execute_CFLAGS = \
2039 test_execute_LDADD = \
2042 test_strxcpyx_SOURCES = \
2043 src/test/test-strxcpyx.c
2045 test_strxcpyx_LDADD = \
2046 libsystemd-shared.la
2048 test_install_SOURCES = \
2049 src/test/test-install.c
2051 test_install_LDADD = \
2052 libsystemd-units.la \
2053 libsystemd-label.la \
2054 libsystemd-shared.la \
2055 libsystemd-internal.la
2057 test_watchdog_SOURCES = \
2058 src/test/test-watchdog.c
2060 test_watchdog_LDADD = \
2061 libsystemd-shared.la
2063 test_sched_prio_SOURCES = \
2064 src/test/test-sched-prio.c
2066 test_sched_prio_CPPFLAGS = \
2069 test_sched_prio_CFLAGS = \
2073 test_sched_prio_LDADD = \
2074 libsystemd-core.la \
2077 test_conf_files_SOURCES = \
2078 src/test/test-conf-files.c
2080 test_conf_files_LDADD = \
2081 libsystemd-label.la \
2082 libsystemd-shared.la
2084 test_conf_parser_SOURCES = \
2085 src/test/test-conf-parser.c
2087 test_conf_parser_LDADD = \
2088 libsystemd-shared.la
2090 test_bus_policy_SOURCES = \
2091 src/bus-proxyd/test-bus-xml-policy.c
2093 test_bus_policy_LDADD = \
2094 libsystemd-proxy.la \
2095 libsystemd-internal.la \
2096 libsystemd-shared.la
2098 # ------------------------------------------------------------------------------
2099 ## .PHONY so it always rebuilds it
2100 .PHONY: coverage lcov-run lcov-report coverage-sync
2102 # run lcov from scratch, always
2107 coverage_dir = coverage
2108 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2111 # reset run coverage tests
2113 @rm -rf $(coverage_dir)
2114 lcov $(coverage_opts) --zerocounters
2117 # generate report based on current coverage data
2119 $(MKDIR_P) $(coverage_dir)
2120 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2121 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2122 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2123 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2124 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2126 # lcov doesn't work properly with vpath builds, make sure that bad
2127 # output is not uploaded by mistake.
2128 coverage-sync: coverage
2129 test "$(builddir)" = "$(srcdir)"
2130 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2133 lcov-run lcov-report:
2134 echo "Need to reconfigure with --enable-coverage"
2137 # ------------------------------------------------------------------------------
2138 systemd_analyze_SOURCES = \
2139 src/analyze/analyze.c \
2140 src/analyze/analyze-verify.c \
2141 src/analyze/analyze-verify.h
2143 systemd_analyze_CFLAGS = \
2147 systemd_analyze_LDADD = \
2148 libsystemd-core.la \
2149 libsystemd-internal.la \
2150 libsystemd-shared.la \
2153 # ------------------------------------------------------------------------------
2154 systemd_initctl_SOURCES = \
2155 src/initctl/initctl.c
2157 systemd_initctl_LDADD = \
2158 libsystemd-internal.la \
2159 libsystemd-shared.la
2161 # ------------------------------------------------------------------------------
2162 systemd_update_utmp_SOURCES = \
2163 src/update-utmp/update-utmp.c
2165 systemd_update_utmp_CFLAGS = \
2169 systemd_update_utmp_LDADD = \
2170 libsystemd-internal.la \
2171 libsystemd-shared.la \
2174 # ------------------------------------------------------------------------------
2175 systemd_update_done_SOURCES = \
2176 src/update-done/update-done.c
2178 systemd_update_done_LDADD = \
2179 libsystemd-internal.la \
2180 libsystemd-label.la \
2181 libsystemd-shared.la
2183 # ------------------------------------------------------------------------------
2184 systemd_shutdown_SOURCES = \
2187 src/core/shutdown.c \
2188 src/core/mount-setup.c \
2189 src/core/mount-setup.h \
2190 src/core/killall.h \
2193 systemd_shutdown_LDADD = \
2194 libsystemd-label.la \
2195 libudev-internal.la \
2196 libsystemd-internal.la \
2197 libsystemd-shared.la
2199 # ------------------------------------------------------------------------------
2201 systemd_modules_load_SOURCES = \
2202 src/modules-load/modules-load.c
2204 systemd_modules_load_CFLAGS = \
2208 systemd_modules_load_LDADD = \
2209 libsystemd-shared.la \
2212 rootlibexec_PROGRAMS += \
2213 systemd-modules-load
2215 nodist_systemunit_DATA += \
2216 units/systemd-modules-load.service
2218 SYSINIT_TARGET_WANTS += \
2219 systemd-modules-load.service
2222 nodist_systemunit_DATA += \
2223 units/kmod-static-nodes.service
2225 SYSINIT_TARGET_WANTS += \
2226 kmod-static-nodes.service
2231 units/systemd-modules-load.service.in \
2232 units/kmod-static-nodes.service.in
2234 # ------------------------------------------------------------------------------
2236 systemd_tmpfiles_SOURCES = \
2237 src/tmpfiles/tmpfiles.c
2239 systemd_tmpfiles_LDADD = \
2240 libsystemd-units.la \
2241 libsystemd-label.la \
2242 libsystemd-internal.la \
2243 libsystemd-shared.la
2246 systemd_tmpfiles_LDADD += \
2250 rootbin_PROGRAMS += \
2253 dist_systemunit_DATA += \
2254 units/systemd-tmpfiles-clean.timer
2256 nodist_systemunit_DATA += \
2257 units/systemd-tmpfiles-setup-dev.service \
2258 units/systemd-tmpfiles-setup.service \
2259 units/systemd-tmpfiles-clean.service
2261 nodist_tmpfiles_DATA = \
2262 tmpfiles.d/systemd.conf \
2265 dist_tmpfiles_DATA = \
2266 tmpfiles.d/systemd-nologin.conf \
2267 tmpfiles.d/tmp.conf \
2268 tmpfiles.d/x11.conf \
2269 tmpfiles.d/var.conf \
2270 tmpfiles.d/home.conf
2273 dist_tmpfiles_DATA += \
2274 tmpfiles.d/legacy.conf
2277 SYSINIT_TARGET_WANTS += \
2278 systemd-tmpfiles-setup-dev.service \
2279 systemd-tmpfiles-setup.service
2281 dist_zshcompletion_DATA += \
2282 shell-completion/zsh/_systemd-tmpfiles
2284 TIMERS_TARGET_WANTS += \
2285 systemd-tmpfiles-clean.timer
2289 $(sysconfdir)/tmpfiles.d
2293 tmpfiles.d/systemd.conf.m4 \
2294 tmpfiles.d/etc.conf.m4 \
2295 units/systemd-tmpfiles-setup-dev.service.in \
2296 units/systemd-tmpfiles-setup.service.in \
2297 units/systemd-tmpfiles-clean.service.in
2299 # ------------------------------------------------------------------------------
2301 systemd_sysusers_SOURCES = \
2302 src/sysusers/sysusers.c
2304 systemd_sysusers_LDADD = \
2305 libsystemd-units.la \
2306 libsystemd-label.la \
2307 libsystemd-internal.la \
2308 libsystemd-shared.la
2310 rootbin_PROGRAMS += \
2313 nodist_systemunit_DATA += \
2314 units/systemd-sysusers.service
2316 SYSINIT_TARGET_WANTS += \
2317 systemd-sysusers.service
2319 nodist_sysusers_DATA = \
2320 sysusers.d/systemd.conf \
2321 sysusers.d/basic.conf
2328 units/systemd-sysusers.service.in \
2329 sysusers.d/systemd.conf.m4 \
2330 sysusers.d/basic.conf.in
2332 # ------------------------------------------------------------------------------
2333 dist_factory_etc_DATA = \
2334 factory/etc/nsswitch.conf
2337 dist_factory_pam_DATA = \
2338 factory/etc/pam.d/system-auth \
2339 factory/etc/pam.d/other
2342 # ------------------------------------------------------------------------------
2344 systemd_firstboot_SOURCES = \
2345 src/firstboot/firstboot.c
2347 systemd_firstboot_LDADD = \
2348 libsystemd-units.la \
2349 libsystemd-label.la \
2350 libsystemd-internal.la \
2351 libsystemd-shared.la \
2354 rootbin_PROGRAMS += \
2357 nodist_systemunit_DATA += \
2358 units/systemd-firstboot.service
2360 SYSINIT_TARGET_WANTS += \
2361 systemd-firstboot.service
2365 units/systemd-firstboot.service.in
2367 # ------------------------------------------------------------------------------
2368 systemd_machine_id_setup_SOURCES = \
2369 src/machine-id-setup/machine-id-setup-main.c \
2370 src/core/machine-id-setup.c \
2371 src/core/machine-id-setup.h
2373 systemd_machine_id_setup_LDADD = \
2374 libsystemd-label.la \
2375 libsystemd-internal.la \
2376 libsystemd-shared.la
2378 # ------------------------------------------------------------------------------
2379 systemd_sysctl_SOURCES = \
2382 systemd_sysctl_LDADD = \
2383 libsystemd-shared.la
2385 # ------------------------------------------------------------------------------
2386 systemd_sleep_SOURCES = \
2389 systemd_sleep_LDADD = \
2390 libsystemd-shared.la
2392 # ------------------------------------------------------------------------------
2393 systemd_fsck_SOURCES = \
2396 systemd_fsck_LDADD = \
2397 libsystemd-internal.la \
2398 libudev-internal.la \
2399 libsystemd-internal.la \
2400 libsystemd-shared.la
2402 # ------------------------------------------------------------------------------
2403 systemd_machine_id_commit_SOURCES = \
2404 src/machine-id-commit/machine-id-commit.c \
2405 src/core/machine-id-setup.c \
2406 src/core/machine-id-setup.h
2408 systemd_machine_id_commit_LDADD = \
2409 libsystemd-label.la \
2410 libsystemd-internal.la \
2411 libsystemd-shared.la
2413 SYSINIT_TARGET_WANTS += \
2414 systemd-machine-id-commit.service
2416 # ------------------------------------------------------------------------------
2417 systemd_ac_power_SOURCES = \
2418 src/ac-power/ac-power.c
2420 systemd_ac_power_LDADD = \
2421 libudev-internal.la \
2422 libsystemd-internal.la \
2423 libsystemd-shared.la
2425 # ------------------------------------------------------------------------------
2426 systemd_detect_virt_SOURCES = \
2427 src/detect-virt/detect-virt.c
2429 systemd_detect_virt_LDADD = \
2430 libsystemd-shared.la
2432 INSTALL_EXEC_HOOKS += \
2433 systemd-detect-virt-install-hook
2435 # ------------------------------------------------------------------------------
2436 systemd_delta_SOURCES = \
2439 systemd_delta_LDADD = \
2440 libsystemd-shared.la
2442 # ------------------------------------------------------------------------------
2443 systemd_getty_generator_SOURCES = \
2444 src/getty-generator/getty-generator.c
2446 systemd_getty_generator_LDADD = \
2447 libsystemd-label.la \
2448 libsystemd-shared.la
2450 # ------------------------------------------------------------------------------
2451 systemd_debug_generator_SOURCES = \
2452 src/debug-generator/debug-generator.c
2454 systemd_debug_generator_LDADD = \
2455 libsystemd-label.la \
2456 libsystemd-shared.la
2458 # ------------------------------------------------------------------------------
2459 systemd_fstab_generator_SOURCES = \
2460 src/fstab-generator/fstab-generator.c \
2461 src/core/mount-setup.c
2463 systemd_fstab_generator_LDADD = \
2464 libsystemd-label.la \
2465 libsystemd-shared.la
2467 # ------------------------------------------------------------------------------
2468 systemd_system_update_generator_SOURCES = \
2469 src/system-update-generator/system-update-generator.c
2471 systemd_system_update_generator_LDADD = \
2472 libsystemd-label.la \
2473 libsystemd-shared.la
2475 # ------------------------------------------------------------------------------
2477 systemgenerator_PROGRAMS += \
2478 systemd-hibernate-resume-generator
2480 rootlibexec_PROGRAMS += \
2481 systemd-hibernate-resume
2483 systemd_hibernate_resume_SOURCES = \
2484 src/hibernate-resume/hibernate-resume.c
2486 systemd_hibernate_resume_LDADD = \
2487 libsystemd-internal.la \
2488 libsystemd-shared.la
2490 systemd_hibernate_resume_generator_SOURCES = \
2491 src/hibernate-resume/hibernate-resume-generator.c
2493 systemd_hibernate_resume_generator_LDADD = \
2494 libsystemd-label.la \
2495 libsystemd-shared.la
2497 dist_systemunit_DATA += \
2498 units/hibernate.target \
2499 units/hybrid-sleep.target
2501 nodist_systemunit_DATA += \
2502 units/systemd-hibernate.service \
2503 units/systemd-hibernate-resume@.service \
2504 units/systemd-hybrid-sleep.service
2508 units/systemd-hibernate.service.in \
2509 units/systemd-hibernate-resume@.service.in \
2510 units/systemd-hybrid-sleep.service.in
2512 # ------------------------------------------------------------------------------
2514 systemgenerator_PROGRAMS += \
2515 systemd-efi-boot-generator
2517 systemd_efi_boot_generator_SOURCES = \
2518 src/efi-boot-generator/efi-boot-generator.c
2520 systemd_efi_boot_generator_LDADD = \
2521 libsystemd-label.la \
2522 libsystemd-shared.la
2524 # ------------------------------------------------------------------------------
2529 bootctl_CPPFLAGS = \
2531 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2532 -DBOOTLIBDIR=\"$(bootlibdir)\"
2539 libsystemd-label.la \
2540 libsystemd-shared.la \
2541 libsystemd-internal.la \
2547 dist_bashcompletion_DATA += \
2548 shell-completion/bash/bootctl
2550 dist_zshcompletion_DATA += \
2551 shell-completion/zsh/_bootctl
2554 # ------------------------------------------------------------------------------
2558 -I$(top_builddir) -include config.h \
2559 -I$(EFI_INC_DIR)/efi \
2560 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2561 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2574 -fno-strict-aliasing \
2575 -fno-stack-protector \
2577 -Wno-missing-field-initializers
2584 -DEFI_FUNCTION_WRAPPER \
2585 -DGNU_EFI_USE_MS_ABI
2596 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2602 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2604 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2605 # and add required symbols manually.
2607 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2608 EFI_FORMAT = -O binary
2610 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2615 # ------------------------------------------------------------------------------
2616 systemd_boot_headers = \
2617 src/boot/efi/util.h \
2618 src/boot/efi/console.h \
2619 src/boot/efi/graphics.h \
2620 src/boot/efi/pefile.h
2622 systemd_boot_sources = \
2623 src/boot/efi/util.c \
2624 src/boot/efi/console.c \
2625 src/boot/efi/graphics.c \
2626 src/boot/efi/pefile.c \
2629 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2633 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2634 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2635 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2637 bootlib_DATA = $(systemd_boot)
2638 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2640 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2641 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2642 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2644 $(systemd_boot_solib): $(systemd_boot_objects)
2645 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2646 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2647 nm -D -u $@ | grep ' U ' && exit 1 || :
2649 $(systemd_boot): $(systemd_boot_solib)
2650 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2651 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2655 # ------------------------------------------------------------------------------
2657 src/boot/efi/util.h \
2658 src/boot/efi/pefile.h \
2659 src/boot/efi/graphics.h \
2660 src/boot/efi/splash.h \
2661 src/boot/efi/linux.h
2664 src/boot/efi/util.c \
2665 src/boot/efi/pefile.c \
2666 src/boot/efi/graphics.c \
2667 src/boot/efi/splash.c \
2668 src/boot/efi/linux.c \
2671 EXTRA_DIST += $(stub_sources) $(stub_headers)
2675 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2676 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2677 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2679 bootlib_DATA += $(stub)
2680 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2682 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2683 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2684 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2686 $(stub_solib): $(stub_objects)
2687 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2688 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2689 nm -D -u $@ | grep ' U ' && exit 1 || :
2691 $(stub): $(stub_solib)
2692 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2693 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2695 # ------------------------------------------------------------------------------
2696 CLEANFILES += test-efi-disk.img
2698 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2699 $(AM_V_GEN)test/test-efi-create-disk.sh
2701 test-efi: test-efi-disk.img
2702 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2706 EXTRA_DIST += test/test-efi-create-disk.sh
2708 # ------------------------------------------------------------------------------
2710 systemgenerator_PROGRAMS += \
2711 systemd-gpt-auto-generator
2713 systemd_gpt_auto_generator_SOURCES = \
2714 src/gpt-auto-generator/gpt-auto-generator.c \
2715 src/shared/blkid-util.h
2717 systemd_gpt_auto_generator_LDADD = \
2718 libsystemd-label.la \
2719 libudev-internal.la \
2720 libsystemd-internal.la \
2721 libsystemd-shared.la \
2724 systemd_gpt_auto_generator_CFLAGS = \
2729 # ------------------------------------------------------------------------------
2731 systemgenerator_PROGRAMS += \
2732 systemd-dbus1-generator
2734 systemd_dbus1_generator_SOURCES = \
2735 src/dbus1-generator/dbus1-generator.c
2737 systemd_dbus1_generator_LDADD = \
2738 libsystemd-label.la \
2739 libsystemd-internal.la \
2740 libsystemd-shared.la
2742 dbus1-generator-install-hook:
2743 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2744 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2745 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2747 dbus1-generator-uninstall-hook:
2748 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2750 dist_xinitrc_SCRIPTS = \
2751 xorg/50-systemd-user.sh
2753 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2754 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2757 # ------------------------------------------------------------------------------
2758 systemd_sysv_generator_SOURCES = \
2759 src/sysv-generator/sysv-generator.c
2761 systemd_sysv_generator_LDADD = \
2762 libsystemd-core.la \
2763 libsystemd-label.la \
2764 libsystemd-shared.la
2766 # ------------------------------------------------------------------------------
2767 systemd_rc_local_generator_SOURCES = \
2768 src/rc-local-generator/rc-local-generator.c
2770 systemd_rc_local_generator_LDADD = \
2771 libsystemd-label.la \
2772 libsystemd-shared.la
2774 # ------------------------------------------------------------------------------
2775 systemd_remount_fs_SOURCES = \
2776 src/remount-fs/remount-fs.c \
2777 src/core/mount-setup.c \
2778 src/core/mount-setup.h
2780 systemd_remount_fs_LDADD = \
2781 libsystemd-label.la \
2782 libsystemd-shared.la
2784 # ------------------------------------------------------------------------------
2785 systemd_cgroups_agent_SOURCES = \
2786 src/cgroups-agent/cgroups-agent.c
2788 systemd_cgroups_agent_LDADD = \
2789 libsystemd-internal.la \
2790 libsystemd-shared.la
2792 # ------------------------------------------------------------------------------
2793 systemd_escape_SOURCES = \
2796 systemd_escape_LDADD = \
2797 libsystemd-shared.la
2799 # -----------------------------------------------------------------------------
2800 systemctl_SOURCES = \
2801 src/systemctl/systemctl.c
2804 libsystemd-units.la \
2805 libsystemd-label.la \
2806 libsystemd-internal.la \
2807 libsystemd-logs.la \
2808 libsystemd-journal-internal.la \
2809 libsystemd-shared.la
2811 # ------------------------------------------------------------------------------
2812 systemd_notify_SOURCES = \
2815 systemd_notify_LDADD = \
2816 libsystemd-internal.la \
2817 libsystemd-shared.la
2819 # ------------------------------------------------------------------------------
2820 systemd_path_SOURCES = \
2823 systemd_path_LDADD = \
2824 libsystemd-internal.la \
2825 libsystemd-shared.la
2827 # ------------------------------------------------------------------------------
2828 systemd_ask_password_SOURCES = \
2829 src/ask-password/ask-password.c
2831 systemd_ask_password_LDADD = \
2832 libsystemd-label.la \
2833 libsystemd-shared.la
2835 # ------------------------------------------------------------------------------
2836 systemd_reply_password_SOURCES = \
2837 src/reply-password/reply-password.c
2839 systemd_reply_password_LDADD = \
2840 libsystemd-shared.la
2842 # ------------------------------------------------------------------------------
2843 systemd_cgls_SOURCES = \
2846 systemd_cgls_LDADD = \
2847 libsystemd-internal.la \
2848 libsystemd-shared.la
2850 # ------------------------------------------------------------------------------
2851 systemd_cgtop_SOURCES = \
2854 systemd_cgtop_LDADD = \
2855 libsystemd-shared.la
2857 # ------------------------------------------------------------------------------
2858 systemd_nspawn_SOURCES = \
2859 src/nspawn/nspawn.c \
2860 src/core/mount-setup.c \
2861 src/core/mount-setup.h \
2862 src/core/loopback-setup.c \
2863 src/core/loopback-setup.h
2865 systemd_nspawn_CFLAGS = \
2870 systemd_nspawn_LDADD = \
2871 libsystemd-label.la \
2872 libudev-internal.la \
2873 libsystemd-internal.la \
2874 libsystemd-shared.la \
2878 systemd_nspawn_LDADD += \
2879 libsystemd-seccomp.la \
2884 systemd_nspawn_LDADD += \
2888 # ------------------------------------------------------------------------------
2889 systemd_run_SOURCES = \
2892 systemd_run_LDADD = \
2893 libsystemd-label.la \
2894 libsystemd-internal.la \
2895 libsystemd-shared.la
2897 # ------------------------------------------------------------------------------
2898 noinst_LTLIBRARIES += \
2901 libsystemd_proxy_la_SOURCES = \
2902 src/bus-proxyd/bus-xml-policy.c \
2903 src/bus-proxyd/bus-xml-policy.h \
2904 src/bus-proxyd/driver.c \
2905 src/bus-proxyd/driver.h \
2906 src/bus-proxyd/proxy.c \
2907 src/bus-proxyd/proxy.h \
2908 src/bus-proxyd/synthesize.c \
2909 src/bus-proxyd/synthesize.h
2911 libsystemd_proxy_la_CFLAGS = \
2915 libsystemd_proxy_la_LIBADD = \
2916 libsystemd-internal.la \
2917 libsystemd-shared.la
2919 systemd_bus_proxyd_SOURCES = \
2920 src/bus-proxyd/bus-proxyd.c
2922 systemd_bus_proxyd_CFLAGS = \
2926 systemd_bus_proxyd_LDADD = \
2927 libsystemd-proxy.la \
2928 libsystemd-internal.la \
2929 libsystemd-shared.la
2931 systemd_stdio_bridge_SOURCES = \
2932 src/bus-proxyd/stdio-bridge.c
2934 systemd_stdio_bridge_LDADD = \
2935 libsystemd-proxy.la \
2936 libsystemd-internal.la \
2937 libsystemd-shared.la
2940 nodist_systemunit_DATA += \
2941 units/systemd-bus-proxyd.service
2943 dist_systemunit_DATA += \
2944 units/systemd-bus-proxyd.socket
2946 nodist_userunit_DATA += \
2947 units/user/systemd-bus-proxyd.service
2949 dist_userunit_DATA += \
2950 units/user/systemd-bus-proxyd.socket
2954 units/systemd-bus-proxyd.service.m4.in \
2955 units/user/systemd-bus-proxyd.service.in
2958 bus-proxyd-set-cap-hook:
2959 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2961 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2964 # ------------------------------------------------------------------------------
2965 systemd_tty_ask_password_agent_SOURCES = \
2966 src/tty-ask-password-agent/tty-ask-password-agent.c
2968 systemd_tty_ask_password_agent_LDADD = \
2969 libsystemd-label.la \
2970 libsystemd-shared.la
2972 # ------------------------------------------------------------------------------
2973 libsystemd_internal_la_SOURCES = \
2974 src/systemd/sd-bus.h \
2975 src/systemd/sd-bus-protocol.h \
2976 src/systemd/sd-bus-vtable.h \
2977 src/systemd/sd-utf8.h \
2978 src/systemd/sd-event.h \
2979 src/systemd/sd-rtnl.h \
2980 src/systemd/sd-resolve.h \
2981 src/systemd/sd-login.h \
2982 src/systemd/sd-id128.h \
2983 src/systemd/sd-daemon.h \
2984 src/systemd/sd-path.h \
2985 src/systemd/sd-network.h \
2986 src/systemd/sd-hwdb.h \
2987 src/systemd/sd-device.h \
2988 src/libsystemd/sd-bus/sd-bus.c \
2989 src/libsystemd/sd-bus/bus-control.c \
2990 src/libsystemd/sd-bus/bus-control.h \
2991 src/libsystemd/sd-bus/bus-error.c \
2992 src/libsystemd/sd-bus/bus-error.h \
2993 src/libsystemd/sd-bus/bus-common-errors.h \
2994 src/libsystemd/sd-bus/bus-common-errors.c \
2995 src/libsystemd/sd-bus/bus-internal.c \
2996 src/libsystemd/sd-bus/bus-internal.h \
2997 src/libsystemd/sd-bus/bus-socket.c \
2998 src/libsystemd/sd-bus/bus-socket.h \
2999 src/libsystemd/sd-bus/bus-kernel.c \
3000 src/libsystemd/sd-bus/bus-kernel.h \
3001 src/libsystemd/sd-bus/bus-container.c \
3002 src/libsystemd/sd-bus/bus-container.h \
3003 src/libsystemd/sd-bus/bus-message.c \
3004 src/libsystemd/sd-bus/bus-message.h \
3005 src/libsystemd/sd-bus/bus-creds.c \
3006 src/libsystemd/sd-bus/bus-creds.h \
3007 src/libsystemd/sd-bus/bus-signature.c \
3008 src/libsystemd/sd-bus/bus-signature.h \
3009 src/libsystemd/sd-bus/bus-type.c \
3010 src/libsystemd/sd-bus/bus-type.h \
3011 src/libsystemd/sd-bus/bus-match.c \
3012 src/libsystemd/sd-bus/bus-match.h \
3013 src/libsystemd/sd-bus/bus-bloom.c \
3014 src/libsystemd/sd-bus/bus-bloom.h \
3015 src/libsystemd/sd-bus/bus-introspect.c \
3016 src/libsystemd/sd-bus/bus-introspect.h \
3017 src/libsystemd/sd-bus/bus-objects.c \
3018 src/libsystemd/sd-bus/bus-objects.h \
3019 src/libsystemd/sd-bus/bus-gvariant.c \
3020 src/libsystemd/sd-bus/bus-gvariant.h \
3021 src/libsystemd/sd-bus/bus-convenience.c \
3022 src/libsystemd/sd-bus/bus-track.c \
3023 src/libsystemd/sd-bus/bus-track.h \
3024 src/libsystemd/sd-bus/bus-util.c \
3025 src/libsystemd/sd-bus/bus-util.h \
3026 src/libsystemd/sd-bus/bus-slot.c \
3027 src/libsystemd/sd-bus/bus-slot.h \
3028 src/libsystemd/sd-bus/bus-protocol.h \
3029 src/libsystemd/sd-bus/kdbus.h \
3030 src/libsystemd/sd-utf8/sd-utf8.c \
3031 src/libsystemd/sd-event/sd-event.c \
3032 src/libsystemd/sd-event/event-util.h \
3033 src/libsystemd/sd-rtnl/sd-rtnl.c \
3034 src/libsystemd/sd-rtnl/rtnl-internal.h \
3035 src/libsystemd/sd-rtnl/rtnl-message.c \
3036 src/libsystemd/sd-rtnl/rtnl-types.h \
3037 src/libsystemd/sd-rtnl/rtnl-types.c \
3038 src/libsystemd/sd-rtnl/rtnl-util.h \
3039 src/libsystemd/sd-rtnl/rtnl-util.c \
3040 src/libsystemd/sd-rtnl/local-addresses.h \
3041 src/libsystemd/sd-rtnl/local-addresses.c \
3042 src/libsystemd/sd-id128/sd-id128.c \
3043 src/libsystemd/sd-daemon/sd-daemon.c \
3044 src/libsystemd/sd-login/sd-login.c \
3045 src/libsystemd/sd-path/sd-path.c \
3046 src/libsystemd/sd-network/sd-network.c \
3047 src/libsystemd/sd-network/network-util.h \
3048 src/libsystemd/sd-network/network-util.c \
3049 src/libsystemd/sd-hwdb/sd-hwdb.c \
3050 src/libsystemd/sd-hwdb/hwdb-util.h \
3051 src/libsystemd/sd-hwdb/hwdb-internal.h \
3052 src/libsystemd/sd-device/device-internal.h \
3053 src/libsystemd/sd-device/device-util.h \
3054 src/libsystemd/sd-device/device-enumerator.c \
3055 src/libsystemd/sd-device/device-enumerator-private.h \
3056 src/libsystemd/sd-device/sd-device.c \
3057 src/libsystemd/sd-device/device-private.c \
3058 src/libsystemd/sd-device/device-private.h
3060 nodist_libsystemd_internal_la_SOURCES = \
3061 src/libsystemd/libsystemd.sym
3063 libsystemd_internal_la_CFLAGS = \
3067 libsystemd_internal_la_LIBADD = \
3070 libsystemd_resolve_la_SOURCES = \
3071 src/libsystemd/sd-resolve/sd-resolve.c \
3072 src/libsystemd/sd-resolve/resolve-util.h
3074 libsystemd_resolve_la_CFLAGS = \
3078 libsystemd_resolve_la_LIBADD = \
3081 noinst_LTLIBRARIES += \
3082 libsystemd-internal.la \
3083 libsystemd-resolve.la
3085 libsystemd_dump_la_SOURCES = \
3086 src/libsystemd/sd-bus/bus-dump.c \
3087 src/libsystemd/sd-bus/bus-dump.h
3089 noinst_LTLIBRARIES += \
3093 src/libsystemd/libsystemd.sym.m4 \
3094 src/libsystemd/libsystemd.pc.in \
3095 src/libsystemd/sd-bus/DIFFERENCES \
3096 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3099 src/libsystemd/libsystemd.sym
3101 libsystemd_la_SOURCES = \
3102 $(libsystemd_internal_la_SOURCES) \
3103 $(libsystemd_resolve_la_SOURCES) \
3104 $(libsystemd_journal_internal_la_SOURCES)
3106 nodist_libsystemd_la_SOURCES = \
3107 $(nodist_libsystemd_internal_la_SOURCES)
3109 libsystemd_la_CFLAGS = \
3110 $(libsystemd_internal_la_CFLAGS) \
3111 $(libsystemd_resolve_la_CFLAGS) \
3112 $(libsystemd_journal_internal_la_CFLAGS)
3114 libsystemd_la_LDFLAGS = \
3116 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3117 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
3119 libsystemd_la_LIBADD = \
3120 libsystemd-shared.la \
3121 $(libsystemd_internal_la_LIBADD) \
3122 $(libsystemd_journal_internal_la_LIBADD) \
3123 $(libsystemd_resolve_la_LIBADD)
3125 libsystemd-install-hook:
3126 libname=libsystemd.so && $(move-to-rootlibdir)
3128 libsystemd-uninstall-hook:
3129 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3131 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3132 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3134 pkgconfiglib_DATA += \
3135 src/libsystemd/libsystemd.pc
3137 pkginclude_HEADERS += \
3138 src/systemd/sd-bus.h \
3139 src/systemd/sd-bus-protocol.h \
3140 src/systemd/sd-bus-vtable.h \
3141 src/systemd/sd-event.h \
3142 src/systemd/sd-login.h \
3143 src/systemd/sd-id128.h \
3144 src/systemd/sd-daemon.h
3147 pkginclude_HEADERS += \
3148 src/systemd/sd-utf8.h \
3149 src/systemd/sd-rtnl.h \
3150 src/systemd/sd-resolve.h \
3151 src/systemd/sd-path.h
3154 lib_LTLIBRARIES += \
3159 test-bus-signature \
3160 test-bus-benchmark \
3166 test-bus-kernel-bloom \
3167 test-bus-zero-copy \
3168 test-bus-introspect \
3175 test-local-addresses \
3181 test_bus_marshal_SOURCES = \
3182 src/libsystemd/sd-bus/test-bus-marshal.c
3184 test_bus_marshal_LDADD = \
3185 libsystemd-dump.la \
3186 libsystemd-internal.la \
3187 libsystemd-shared.la \
3191 test_bus_marshal_CFLAGS = \
3196 test_bus_signature_SOURCES = \
3197 src/libsystemd/sd-bus/test-bus-signature.c
3199 test_bus_signature_LDADD = \
3200 libsystemd-internal.la \
3201 libsystemd-shared.la
3203 test_bus_chat_SOURCES = \
3204 src/libsystemd/sd-bus/test-bus-chat.c
3206 test_bus_chat_CFLAGS = \
3210 test_bus_chat_LDADD = \
3211 libsystemd-internal.la \
3212 libsystemd-shared.la
3214 test_bus_cleanup_SOURCES = \
3215 src/libsystemd/sd-bus/test-bus-cleanup.c
3217 test_bus_cleanup_CFLAGS = \
3221 test_bus_cleanup_LDADD = \
3222 libsystemd-internal.la \
3223 libsystemd-shared.la
3225 test_bus_server_SOURCES = \
3226 src/libsystemd/sd-bus/test-bus-server.c
3228 test_bus_server_CFLAGS = \
3232 test_bus_server_LDADD = \
3233 libsystemd-internal.la \
3234 libsystemd-shared.la
3236 test_bus_objects_SOURCES = \
3237 src/libsystemd/sd-bus/test-bus-objects.c
3239 test_bus_objects_CFLAGS = \
3243 test_bus_objects_LDADD = \
3244 libsystemd-dump.la \
3245 libsystemd-internal.la \
3246 libsystemd-shared.la
3248 test_bus_error_SOURCES = \
3249 src/libsystemd/sd-bus/test-bus-error.c
3251 test_bus_error_LDADD = \
3252 libsystemd-internal.la \
3253 libsystemd-shared.la
3255 test_bus_gvariant_SOURCES = \
3256 src/libsystemd/sd-bus/test-bus-gvariant.c
3258 test_bus_gvariant_LDADD = \
3259 libsystemd-dump.la \
3260 libsystemd-internal.la \
3261 libsystemd-shared.la \
3264 test_bus_gvariant_CFLAGS = \
3268 test_bus_creds_SOURCES = \
3269 src/libsystemd/sd-bus/test-bus-creds.c
3271 test_bus_creds_LDADD = \
3272 libsystemd-dump.la \
3273 libsystemd-internal.la \
3274 libsystemd-shared.la
3276 test_bus_match_SOURCES = \
3277 src/libsystemd/sd-bus/test-bus-match.c
3279 test_bus_match_LDADD = \
3280 libsystemd-internal.la \
3281 libsystemd-shared.la
3283 test_bus_kernel_SOURCES = \
3284 src/libsystemd/sd-bus/test-bus-kernel.c
3286 test_bus_kernel_LDADD = \
3287 libsystemd-dump.la \
3288 libsystemd-internal.la \
3289 libsystemd-shared.la
3291 test_bus_kernel_bloom_SOURCES = \
3292 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3294 test_bus_kernel_bloom_LDADD = \
3295 libsystemd-internal.la \
3296 libsystemd-shared.la
3298 test_bus_benchmark_SOURCES = \
3299 src/libsystemd/sd-bus/test-bus-benchmark.c
3301 test_bus_benchmark_LDADD = \
3302 libsystemd-internal.la \
3303 libsystemd-shared.la
3305 test_bus_zero_copy_SOURCES = \
3306 src/libsystemd/sd-bus/test-bus-zero-copy.c
3308 test_bus_zero_copy_LDADD = \
3309 libsystemd-dump.la \
3310 libsystemd-internal.la \
3311 libsystemd-shared.la
3313 test_bus_introspect_SOURCES = \
3314 src/libsystemd/sd-bus/test-bus-introspect.c
3316 test_bus_introspect_LDADD = \
3317 libsystemd-internal.la \
3318 libsystemd-shared.la
3320 test_event_SOURCES = \
3321 src/libsystemd/sd-event/test-event.c
3323 test_event_LDADD = \
3324 libsystemd-internal.la \
3325 libsystemd-shared.la
3327 test_rtnl_SOURCES = \
3328 src/libsystemd/sd-rtnl/test-rtnl.c
3331 libsystemd-internal.la \
3332 libsystemd-shared.la
3334 test_local_addresses_SOURCES = \
3335 src/libsystemd/sd-rtnl/test-local-addresses.c
3337 test_local_addresses_LDADD = \
3338 libsystemd-internal.la \
3339 libsystemd-shared.la
3341 test_resolve_SOURCES = \
3342 src/libsystemd/sd-resolve/test-resolve.c
3344 test_resolve_LDADD = \
3345 libsystemd-resolve.la \
3346 libsystemd-internal.la \
3347 libsystemd-shared.la
3349 test_resolve_CFLAGS = \
3354 src/libsystemd/sd-bus/busctl.c \
3355 src/libsystemd/sd-bus/busctl-introspect.c \
3356 src/libsystemd/sd-bus/busctl-introspect.h
3359 libsystemd-dump.la \
3360 libsystemd-internal.la \
3361 libsystemd-shared.la
3363 # ------------------------------------------------------------------------------
3364 noinst_LTLIBRARIES += \
3365 libsystemd-network.la
3367 libsystemd_network_la_CFLAGS = \
3371 libsystemd_network_la_SOURCES = \
3372 src/systemd/sd-dhcp-client.h \
3373 src/systemd/sd-dhcp-server.h \
3374 src/systemd/sd-dhcp-lease.h \
3375 src/systemd/sd-ipv4ll.h \
3376 src/systemd/sd-icmp6-nd.h \
3377 src/systemd/sd-dhcp6-client.h \
3378 src/systemd/sd-dhcp6-lease.h \
3379 src/systemd/sd-pppoe.h \
3380 src/systemd/sd-lldp.h \
3381 src/libsystemd-network/sd-dhcp-client.c \
3382 src/libsystemd-network/sd-dhcp-server.c \
3383 src/libsystemd-network/dhcp-network.c \
3384 src/libsystemd-network/dhcp-option.c \
3385 src/libsystemd-network/dhcp-packet.c \
3386 src/libsystemd-network/dhcp-internal.h \
3387 src/libsystemd-network/dhcp-server-internal.h \
3388 src/libsystemd-network/dhcp-protocol.h \
3389 src/libsystemd-network/dhcp-lease-internal.h \
3390 src/libsystemd-network/sd-dhcp-lease.c \
3391 src/libsystemd-network/sd-ipv4ll.c \
3392 src/libsystemd-network/ipv4ll-network.c \
3393 src/libsystemd-network/ipv4ll-packet.c \
3394 src/libsystemd-network/ipv4ll-internal.h \
3395 src/libsystemd-network/sd-pppoe.c \
3396 src/libsystemd-network/network-internal.c \
3397 src/libsystemd-network/network-internal.h \
3398 src/libsystemd-network/sd-icmp6-nd.c \
3399 src/libsystemd-network/sd-dhcp6-client.c \
3400 src/libsystemd-network/dhcp6-internal.h \
3401 src/libsystemd-network/dhcp6-protocol.h \
3402 src/libsystemd-network/dhcp6-network.c \
3403 src/libsystemd-network/dhcp6-option.c \
3404 src/libsystemd-network/dhcp6-lease-internal.h \
3405 src/libsystemd-network/sd-dhcp6-lease.c \
3406 src/libsystemd-network/dhcp-identifier.h \
3407 src/libsystemd-network/dhcp-identifier.c \
3408 src/libsystemd-network/lldp.h \
3409 src/libsystemd-network/lldp-tlv.h \
3410 src/libsystemd-network/lldp-tlv.c \
3411 src/libsystemd-network/lldp-network.h \
3412 src/libsystemd-network/lldp-network.c \
3413 src/libsystemd-network/lldp-port.h \
3414 src/libsystemd-network/lldp-port.c \
3415 src/libsystemd-network/lldp-internal.h \
3416 src/libsystemd-network/lldp-internal.c \
3417 src/libsystemd-network/lldp-util.h \
3418 src/libsystemd-network/sd-lldp.c
3420 libsystemd_network_la_LIBADD = \
3421 libudev-internal.la \
3422 libsystemd-label.la \
3423 libsystemd-internal.la \
3424 libsystemd-shared.la \
3427 test_dhcp_option_SOURCES = \
3428 src/libsystemd-network/dhcp-protocol.h \
3429 src/libsystemd-network/dhcp-internal.h \
3430 src/libsystemd-network/test-dhcp-option.c
3432 test_dhcp_option_LDADD = \
3433 libsystemd-network.la \
3434 libsystemd-internal.la \
3435 libsystemd-shared.la
3437 test_dhcp_client_SOURCES = \
3438 src/systemd/sd-dhcp-client.h \
3439 src/libsystemd-network/dhcp-protocol.h \
3440 src/libsystemd-network/dhcp-internal.h \
3441 src/libsystemd-network/test-dhcp-client.c
3443 test_dhcp_client_LDADD = \
3444 libsystemd-network.la \
3445 libsystemd-label.la \
3446 libsystemd-internal.la \
3447 libsystemd-shared.la
3449 test_dhcp_server_SOURCES = \
3450 src/libsystemd-network/test-dhcp-server.c
3452 test_dhcp_server_LDADD = \
3453 libsystemd-network.la \
3454 libsystemd-internal.la \
3455 libsystemd-shared.la
3457 test_ipv4ll_SOURCES = \
3458 src/systemd/sd-ipv4ll.h \
3459 src/libsystemd-network/ipv4ll-internal.h \
3460 src/libsystemd-network/test-ipv4ll.c
3462 test_ipv4ll_LDADD = \
3463 libsystemd-network.la \
3464 libsystemd-label.la \
3465 libsystemd-internal.la \
3466 libsystemd-shared.la
3468 test_pppoe_SOURCES = \
3469 src/systemd/sd-pppoe.h \
3470 src/libsystemd-network/test-pppoe.c
3472 test_pppoe_LDADD = \
3473 libsystemd-network.la \
3474 libsystemd-shared.la
3476 test_icmp6_rs_SOURCES = \
3477 src/systemd/sd-dhcp6-client.h \
3478 src/systemd/sd-icmp6-nd.h \
3479 src/libsystemd-network/dhcp6-internal.h \
3480 src/libsystemd-network/test-icmp6-rs.c \
3481 src/libsystemd-network/dhcp-identifier.h \
3482 src/libsystemd-network/dhcp-identifier.c
3484 test_icmp6_rs_LDADD = \
3485 libsystemd-network.la \
3486 libsystemd-internal.la \
3487 libsystemd-shared.la
3489 test_dhcp6_client_SOURCES = \
3490 src/systemd/sd-dhcp6-client.h \
3491 src/libsystemd-network/dhcp6-internal.h \
3492 src/libsystemd-network/test-dhcp6-client.c \
3493 src/libsystemd-network/dhcp-identifier.h \
3494 src/libsystemd-network/dhcp-identifier.c
3496 test_dhcp6_client_LDADD = \
3497 libsystemd-network.la \
3498 libsystemd-internal.la \
3499 libsystemd-shared.la
3501 test_lldp_SOURCES = \
3502 src/libsystemd-network/lldp.h \
3503 src/libsystemd-network/lldp-tlv.h \
3504 src/libsystemd-network/lldp-tlv.c \
3505 src/libsystemd-network/test-lldp.c
3508 libsystemd-network.la \
3509 libsystemd-internal.la \
3510 libsystemd-shared.la
3524 # ------------------------------------------------------------------------------
3526 noinst_LTLIBRARIES += \
3527 libsystemd-terminal.la
3529 rootlibexec_PROGRAMS += \
3532 noinst_PROGRAMS += \
3537 dist_pkgdata_DATA += \
3538 src/libsystemd-terminal/unifont-glyph-array.bin
3540 nodist_userunit_DATA += \
3541 units/user/systemd-consoled.service
3543 USER_DEFAULT_TARGET_WANTS += \
3544 systemd-consoled.service
3553 units/user/systemd-consoled.service.in
3555 libsystemd_terminal_la_CFLAGS = \
3559 libsystemd_terminal_la_SOURCES = \
3560 src/libsystemd-terminal/grdev.h \
3561 src/libsystemd-terminal/grdev-internal.h \
3562 src/libsystemd-terminal/grdev.c \
3563 src/libsystemd-terminal/grdev-drm.c \
3564 src/libsystemd-terminal/idev.h \
3565 src/libsystemd-terminal/idev-internal.h \
3566 src/libsystemd-terminal/idev.c \
3567 src/libsystemd-terminal/idev-evdev.c \
3568 src/libsystemd-terminal/idev-keyboard.c \
3569 src/libsystemd-terminal/sysview.h \
3570 src/libsystemd-terminal/sysview-internal.h \
3571 src/libsystemd-terminal/sysview.c \
3572 src/libsystemd-terminal/term.h \
3573 src/libsystemd-terminal/term-internal.h \
3574 src/libsystemd-terminal/term-charset.c \
3575 src/libsystemd-terminal/term-page.c \
3576 src/libsystemd-terminal/term-parser.c \
3577 src/libsystemd-terminal/term-screen.c \
3578 src/libsystemd-terminal/term-wcwidth.c \
3579 src/libsystemd-terminal/unifont.h \
3580 src/libsystemd-terminal/unifont-def.h \
3581 src/libsystemd-terminal/unifont.c
3583 libsystemd_terminal_la_LIBADD = \
3584 libudev-internal.la \
3585 libsystemd-internal.la \
3586 libsystemd-shared.la \
3589 systemd_consoled_CFLAGS = \
3593 systemd_consoled_SOURCES = \
3594 src/console/consoled.h \
3595 src/console/consoled.c \
3596 src/console/consoled-display.c \
3597 src/console/consoled-manager.c \
3598 src/console/consoled-session.c \
3599 src/console/consoled-terminal.c \
3600 src/console/consoled-workspace.c
3602 systemd_consoled_LDADD = \
3603 libsystemd-terminal.la \
3604 libsystemd-internal.la \
3605 libsystemd-shared.la \
3608 systemd_evcat_CFLAGS = \
3612 systemd_evcat_SOURCES = \
3613 src/libsystemd-terminal/evcat.c
3615 systemd_evcat_LDADD = \
3616 libsystemd-terminal.la \
3617 libsystemd-internal.la \
3618 libsystemd-shared.la \
3621 systemd_modeset_CFLAGS = \
3625 systemd_modeset_SOURCES = \
3626 src/libsystemd-terminal/modeset.c
3628 systemd_modeset_LDADD = \
3629 libsystemd-terminal.la \
3630 libsystemd-internal.la \
3631 libsystemd-shared.la \
3634 systemd_subterm_SOURCES = \
3635 src/libsystemd-terminal/subterm.c
3637 systemd_subterm_LDADD = \
3638 libsystemd-terminal.la \
3639 libsystemd-internal.la \
3640 libsystemd-shared.la
3642 test_term_page_SOURCES = \
3643 src/libsystemd-terminal/test-term-page.c
3645 test_term_page_LDADD = \
3646 libsystemd-terminal.la \
3647 libsystemd-internal.la \
3648 libsystemd-shared.la
3650 test_term_parser_SOURCES = \
3651 src/libsystemd-terminal/test-term-parser.c
3653 test_term_parser_LDADD = \
3654 libsystemd-terminal.la \
3655 libsystemd-internal.la \
3656 libsystemd-shared.la
3658 test_unifont_SOURCES = \
3659 src/libsystemd-terminal/test-unifont.c
3661 test_unifont_LDADD = \
3662 libsystemd-terminal.la \
3663 libsystemd-internal.la \
3664 libsystemd-shared.la
3666 src/libsystemd-terminal/unifont-glyph-array.bin: tools/compile-unifont.py $(UNIFONT)
3667 $(AM_V_GEN)$(PYTHON) $< <$(UNIFONT) >$@
3669 # ------------------------------------------------------------------------------
3679 include_HEADERS += \
3680 src/libudev/libudev.h
3682 lib_LTLIBRARIES += \
3685 libudev_la_SOURCES =\
3686 src/libudev/libudev.sym \
3687 src/libudev/libudev-private.h \
3688 src/libudev/libudev-device-internal.h \
3689 src/libudev/libudev.c \
3690 src/libudev/libudev-list.c \
3691 src/libudev/libudev-util.c \
3692 src/libudev/libudev-device.c \
3693 src/libudev/libudev-device-private.c \
3694 src/libudev/libudev-enumerate.c \
3695 src/libudev/libudev-monitor.c \
3696 src/libudev/libudev-queue.c \
3697 src/libudev/libudev-hwdb.c
3699 libudev_la_CFLAGS = \
3703 libudev_la_LDFLAGS = \
3705 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3706 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3708 libudev_la_LIBADD = \
3709 libsystemd-internal.la \
3710 libsystemd-shared.la
3712 pkgconfiglib_DATA += \
3713 src/libudev/libudev.pc
3716 src/libudev/libudev.pc.in
3723 $(AM_V_at)$(MKDIR_P) $(dir $@)
3724 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3727 $(AM_V_at)$(MKDIR_P) $(dir $@)
3728 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3730 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3731 libudev-install-hook:
3732 libname=libudev.so && $(move-to-rootlibdir)
3734 libudev-uninstall-hook:
3735 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3737 INSTALL_EXEC_HOOKS += libudev-install-hook
3738 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3740 # ------------------------------------------------------------------------------
3741 noinst_LTLIBRARIES += \
3744 libudev_internal_la_SOURCES =\
3745 $(libudev_la_SOURCES)
3747 libudev_internal_la_CFLAGS = \
3749 -fvisibility=default
3751 # ------------------------------------------------------------------------------
3753 $(sysconfdir)/udev/rules.d
3755 dist_network_DATA = \
3756 network/99-default.link \
3757 network/80-container-host0.network \
3758 network/80-container-ve.network
3760 dist_udevrules_DATA += \
3761 rules/42-usb-hid-pm.rules \
3762 rules/50-udev-default.rules \
3763 rules/60-block.rules \
3764 rules/60-drm.rules \
3765 rules/60-evdev.rules \
3766 rules/60-persistent-storage-tape.rules \
3767 rules/60-persistent-input.rules \
3768 rules/60-persistent-alsa.rules \
3769 rules/60-persistent-storage.rules \
3770 rules/60-serial.rules \
3771 rules/64-btrfs.rules \
3772 rules/70-mouse.rules \
3773 rules/70-touchpad.rules \
3774 rules/75-net-description.rules \
3775 rules/78-sound-card.rules \
3776 rules/80-net-setup-link.rules
3778 nodist_udevrules_DATA += \
3779 rules/99-systemd.rules
3781 udevconfdir = $(sysconfdir)/udev
3782 dist_udevconf_DATA = \
3785 pkgconfigdata_DATA += \
3789 rules/99-systemd.rules.in \
3793 units/systemd-udevd.service.in \
3794 units/systemd-udev-trigger.service.in \
3795 units/systemd-udev-settle.service.in
3797 SOCKETS_TARGET_WANTS += \
3798 systemd-udevd-control.socket \
3799 systemd-udevd-kernel.socket
3801 SYSINIT_TARGET_WANTS += \
3802 systemd-udevd.service \
3803 systemd-udev-trigger.service
3805 rootbin_PROGRAMS += \
3808 rootlibexec_PROGRAMS += \
3811 noinst_LTLIBRARIES += \
3814 src/udev/keyboard-keys-list.txt:
3815 $(AM_V_at)$(MKDIR_P) $(dir $@)
3816 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
3818 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3819 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3821 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3822 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3824 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys-list.txt
3825 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3827 gperf_txt_sources += \
3828 src/udev/keyboard-keys-list.txt
3830 libudev_core_la_SOURCES = \
3832 src/udev/udev-event.c \
3833 src/udev/udev-watch.c \
3834 src/udev/udev-node.c \
3835 src/udev/udev-rules.c \
3836 src/udev/udev-ctrl.c \
3837 src/udev/udev-builtin.c \
3838 src/udev/udev-builtin-btrfs.c \
3839 src/udev/udev-builtin-hwdb.c \
3840 src/udev/udev-builtin-input_id.c \
3841 src/udev/udev-builtin-keyboard.c \
3842 src/udev/udev-builtin-net_id.c \
3843 src/udev/udev-builtin-net_setup_link.c \
3844 src/udev/udev-builtin-path_id.c \
3845 src/udev/udev-builtin-usb_id.c \
3846 src/udev/net/link-config.h \
3847 src/udev/net/link-config.c \
3848 src/udev/net/ethtool-util.h \
3849 src/udev/net/ethtool-util.c
3851 nodist_libudev_core_la_SOURCES = \
3852 src/udev/keyboard-keys-from-name.h \
3853 src/udev/keyboard-keys-to-name.h \
3854 src/udev/net/link-config-gperf.c
3856 gperf_gperf_sources = \
3857 src/udev/net/link-config-gperf.gperf
3859 libudev_core_la_CFLAGS = \
3864 libudev_core_la_LIBADD = \
3865 libudev-internal.la \
3866 libsystemd-label.la \
3867 libsystemd-internal.la \
3868 libsystemd-network.la \
3869 libsystemd-shared.la \
3874 libudev_core_la_SOURCES += \
3875 src/udev/udev-builtin-kmod.c
3877 dist_udevrules_DATA += \
3878 rules/80-drivers.rules
3882 libudev_core_la_SOURCES += \
3883 src/udev/udev-builtin-blkid.c
3887 libudev_core_la_SOURCES += \
3888 src/udev/udev-builtin-uaccess.c \
3889 src/login/logind-acl.c \
3890 src/libsystemd/sd-login/sd-login.c \
3891 src/systemd/sd-login.h
3893 libudev_core_la_LIBADD += \
3897 systemd_udevd_SOURCES = \
3900 systemd_udevd_LDADD = \
3904 src/udev/udevadm.c \
3905 src/udev/udevadm-info.c \
3906 src/udev/udevadm-control.c \
3907 src/udev/udevadm-monitor.c \
3908 src/udev/udevadm-hwdb.c \
3909 src/udev/udevadm-settle.c \
3910 src/udev/udevadm-trigger.c \
3911 src/udev/udevadm-test.c \
3912 src/udev/udevadm-test-builtin.c \
3913 src/udev/udevadm-util.c \
3914 src/udev/udevadm-util.h
3919 # ------------------------------------------------------------------------------
3922 $(sysconfdir)/udev/hwdb.d
3924 systemd_hwdb_SOURCES = \
3925 src/libsystemd/sd-hwdb/hwdb-internal.h \
3928 systemd_hwdb_LDADD = \
3929 libudev-internal.la \
3930 libsystemd-shared.la \
3931 libsystemd-internal.la
3933 rootbin_PROGRAMS += \
3936 dist_udevhwdb_DATA = \
3937 hwdb/20-pci-vendor-model.hwdb \
3938 hwdb/20-pci-classes.hwdb \
3939 hwdb/20-usb-vendor-model.hwdb \
3940 hwdb/20-usb-classes.hwdb \
3941 hwdb/20-sdio-vendor-model.hwdb \
3942 hwdb/20-sdio-classes.hwdb \
3943 hwdb/20-bluetooth-vendor-product.hwdb \
3944 hwdb/20-acpi-vendor.hwdb \
3946 hwdb/20-net-ifname.hwdb \
3947 hwdb/60-evdev.hwdb \
3948 hwdb/60-keyboard.hwdb \
3949 hwdb/70-mouse.hwdb \
3950 hwdb/70-pointingstick.hwdb \
3951 hwdb/70-touchpad.hwdb
3953 SYSINIT_TARGET_WANTS += \
3954 systemd-hwdb-update.service
3956 # Update hwdb on installation. Do not bother if installing
3957 # in DESTDIR, since this is likely for packaging purposes.
3959 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3961 INSTALL_DATA_HOOKS += \
3965 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3969 units/systemd-hwdb-update.service.in \
3970 hwdb/ids-update.pl \
3973 # ------------------------------------------------------------------------------
3980 test/rule-syntax-check.py \
3985 test/sysv-generator-test.py \
3994 test_libudev_SOURCES = \
3995 src/test/test-libudev.c
3997 test_libudev_LDADD = \
3998 libsystemd-label.la \
3999 libudev-internal.la \
4000 libsystemd-internal.la \
4001 libsystemd-shared.la
4003 test_udev_SOURCES = \
4004 src/test/test-udev.c
4013 test_udev_LDADD += \
4020 # packed sysfs test tree
4022 $(AM_V_at)$(MKDIR_P) $(dir $@)
4023 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
4027 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
4032 test/rule-syntax-check.py \
4033 test/sysv-generator-test.py \
4038 # ------------------------------------------------------------------------------
4040 src/udev/ata_id/ata_id.c
4043 libudev-internal.la \
4044 libsystemd-internal.la \
4045 libsystemd-shared.la
4047 udevlibexec_PROGRAMS += \
4050 # ------------------------------------------------------------------------------
4051 cdrom_id_SOURCES = \
4052 src/udev/cdrom_id/cdrom_id.c
4055 libudev-internal.la \
4056 libsystemd-internal.la \
4057 libsystemd-shared.la
4059 udevlibexec_PROGRAMS += \
4062 dist_udevrules_DATA += \
4063 rules/60-cdrom_id.rules
4065 # ------------------------------------------------------------------------------
4067 src/udev/collect/collect.c
4070 libudev-internal.la \
4071 libsystemd-internal.la \
4072 libsystemd-shared.la
4074 udevlibexec_PROGRAMS += \
4077 # ------------------------------------------------------------------------------
4079 src/udev/scsi_id/scsi_id.c \
4080 src/udev/scsi_id/scsi_serial.c \
4081 src/udev/scsi_id/scsi.h \
4082 src/udev/scsi_id/scsi_id.h
4085 libudev-internal.la \
4086 libsystemd-internal.la \
4087 libsystemd-shared.la
4089 udevlibexec_PROGRAMS += \
4093 src/udev/scsi_id/README
4095 # ------------------------------------------------------------------------------
4097 src/udev/v4l_id/v4l_id.c
4100 libudev-internal.la \
4101 libsystemd-internal.la \
4102 libsystemd-shared.la
4104 udevlibexec_PROGRAMS += \
4107 dist_udevrules_DATA += \
4108 rules/60-persistent-v4l.rules
4110 # ------------------------------------------------------------------------------
4111 accelerometer_SOURCES = \
4112 src/udev/accelerometer/accelerometer.c
4114 accelerometer_LDADD = \
4115 libudev-internal.la \
4116 libsystemd-internal.la \
4117 libsystemd-shared.la
4119 udevlibexec_PROGRAMS += \
4122 dist_udevrules_DATA += \
4123 rules/61-accelerometer.rules
4125 # ------------------------------------------------------------------------------
4132 libgudev_includedir = \
4133 $(includedir)/gudev-1.0/gudev
4135 libgudev_include_HEADERS = \
4137 src/gudev/gudevenums.h \
4138 src/gudev/gudevenumtypes.h \
4139 src/gudev/gudevtypes.h \
4140 src/gudev/gudevclient.h \
4141 src/gudev/gudevdevice.h \
4142 src/gudev/gudevenumerator.h
4144 lib_LTLIBRARIES += libgudev-1.0.la
4146 pkgconfiglib_DATA += \
4147 src/gudev/gudev-1.0.pc
4149 libgudev_1_0_la_SOURCES = \
4150 src/gudev/libgudev-1.0.sym \
4151 src/gudev/gudevenums.h \
4152 src/gudev/gudevenumtypes.h \
4153 src/gudev/gudevenumtypes.h\
4154 src/gudev/gudevtypes.h \
4155 src/gudev/gudevclient.h \
4156 src/gudev/gudevclient.c \
4157 src/gudev/gudevdevice.h \
4158 src/gudev/gudevdevice.c \
4159 src/gudev/gudevenumerator.h \
4160 src/gudev/gudevenumerator.c \
4161 src/gudev/gudevprivate.h
4163 nodist_libgudev_1_0_la_SOURCES = \
4164 src/gudev/gudevmarshal.h \
4165 src/gudev/gudevmarshal.c \
4166 src/gudev/gudevenumtypes.h \
4167 src/gudev/gudevenumtypes.c
4170 $(nodist_libgudev_1_0_la_SOURCES)
4172 libgudev_1_0_la_CPPFLAGS = \
4174 -I$(top_builddir)/src\
4175 -I$(top_srcdir)/src\
4176 -I$(top_builddir)/src/gudev \
4177 -I$(top_srcdir)/src/gudev \
4178 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
4179 -D_GUDEV_COMPILATION \
4180 -DG_LOG_DOMAIN=\"GUdev\"
4182 libgudev_1_0_la_CFLAGS = \
4184 -fvisibility=default \
4187 libgudev_1_0_la_LIBADD = \
4191 libgudev_1_0_la_LDFLAGS = \
4193 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
4196 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
4198 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
4199 $(AM_V_at)$(MKDIR_P) $(dir $@)
4200 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
4202 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
4203 $(AM_V_at)$(MKDIR_P) $(dir $@)
4204 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
4205 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
4207 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
4208 $(AM_V_at)$(MKDIR_P) $(dir $@)
4209 $(AM_V_GEN)glib-mkenums --template $^ > $@
4211 if HAVE_INTROSPECTION
4212 -include $(INTROSPECTION_MAKEFILE)
4214 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
4216 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
4218 src_gudev_GUdev_1_0_gir_CFLAGS = \
4221 -D_GUDEV_COMPILATION \
4222 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
4223 -I$(top_srcdir)/src \
4224 -I$(top_builddir)/src \
4225 -I$(top_srcdir)/src/gudev \
4226 -I$(top_builddir)/src/gudev
4228 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
4230 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
4231 --pkg-export=gudev-1.0 \
4234 src_gudev_GUdev_1_0_gir_FILES = \
4236 src/gudev/gudevtypes.h \
4237 src/gudev/gudevenums.h \
4238 src/gudev/gudevenumtypes.h \
4239 src/gudev/gudevclient.h \
4240 src/gudev/gudevdevice.h \
4241 src/gudev/gudevenumerator.h \
4242 src/gudev/gudevclient.c \
4243 src/gudev/gudevdevice.c \
4244 src/gudev/gudevenumerator.c
4246 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
4247 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
4249 girdir = $(datadir)/gir-1.0
4251 src/gudev/GUdev-1.0.gir
4253 typelibsdir = $(libdir)/girepository-1.0
4255 src/gudev/GUdev-1.0.typelib
4257 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
4258 endif # HAVE_INTROSPECTION
4262 src/gudev/gudev-1.0.pc.in \
4263 src/gudev/gudevmarshal.list \
4264 src/gudev/gudevenumtypes.h.template \
4265 src/gudev/gudevenumtypes.c.template \
4266 src/gudev/gjs-example.js \
4267 src/gudev/seed-example-enum.js \
4268 src/gudev/seed-example.js
4270 # ------------------------------------------------------------------------------
4271 mtd_probe_SOURCES = \
4272 src/udev/mtd_probe/mtd_probe.c \
4273 src/udev/mtd_probe/mtd_probe.h \
4274 src/udev/mtd_probe/probe_smartmedia.c
4276 dist_udevrules_DATA += \
4277 rules/75-probe_mtd.rules
4279 udevlibexec_PROGRAMS += \
4282 # ------------------------------------------------------------------------------
4283 test_id128_SOURCES = \
4284 src/test/test-id128.c
4286 test_id128_LDADD = \
4287 libsystemd-internal.la \
4288 libsystemd-shared.la
4293 # ------------------------------------------------------------------------------
4295 rootlibexec_PROGRAMS += \
4298 systemd_activate_SOURCES = \
4299 src/activate/activate.c
4301 systemd_activate_LDADD = \
4302 libsystemd-label.la \
4303 libsystemd-internal.la \
4304 libsystemd-shared.la
4306 # ------------------------------------------------------------------------------
4307 systemd_journald_SOURCES = \
4308 src/journal/journald.c \
4309 src/journal/journald-server.h
4311 systemd_journald_LDADD = \
4312 libsystemd-journal-core.la \
4313 libsystemd-internal.la \
4314 libsystemd-shared.la
4316 systemd_cat_SOURCES = \
4319 systemd_cat_LDADD = \
4320 libsystemd-journal-core.la
4323 rootlibexec_PROGRAMS += \
4324 systemd-journal-remote
4326 systemd_journal_remote_SOURCES = \
4327 src/journal-remote/journal-remote-parse.h \
4328 src/journal-remote/journal-remote-parse.c \
4329 src/journal-remote/journal-remote-write.h \
4330 src/journal-remote/journal-remote-write.c \
4331 src/journal-remote/journal-remote.h \
4332 src/journal-remote/journal-remote.c
4334 systemd_journal_remote_LDADD = \
4335 libsystemd-internal.la \
4336 libsystemd-journal-core.la
4338 systemd_journal_remote_SOURCES += \
4339 src/journal-remote/microhttpd-util.h \
4340 src/journal-remote/microhttpd-util.c
4342 systemd_journal_remote_CFLAGS = \
4344 $(MICROHTTPD_CFLAGS)
4346 systemd_journal_remote_LDADD += \
4350 dist_sysusers_DATA += \
4351 sysusers.d/systemd-remote.conf
4355 dist_tmpfiles_DATA += \
4356 tmpfiles.d/systemd-remote.conf
4360 systemd_journal_remote_LDADD += \
4363 # systemd-journal-remote make sense mostly with full crypto stack
4364 dist_systemunit_DATA += \
4365 units/systemd-journal-remote.socket
4367 nodist_systemunit_DATA += \
4368 units/systemd-journal-remote.service
4370 journal-remote-install-hook: journal-install-hook
4371 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4372 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4373 -chmod 755 $(DESTDIR)/var/log/journal/remote
4375 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4379 nodist_pkgsysconf_DATA += \
4380 src/journal-remote/journal-remote.conf
4383 units/systemd-journal-remote.service.in \
4384 src/journal-remote/journal-remote.conf.in
4389 rootlibexec_PROGRAMS += \
4390 systemd-journal-upload
4392 systemd_journal_upload_SOURCES = \
4393 src/journal-remote/journal-upload.h \
4394 src/journal-remote/journal-upload.c \
4395 src/journal-remote/journal-upload-journal.c
4397 systemd_journal_upload_CFLAGS = \
4401 systemd_journal_upload_LDADD = \
4402 libsystemd-internal.la \
4403 libsystemd-journal-internal.la \
4404 libsystemd-shared.la \
4407 nodist_systemunit_DATA += \
4408 units/systemd-journal-upload.service
4410 nodist_pkgsysconf_DATA += \
4411 src/journal-remote/journal-upload.conf
4416 units/systemd-journal-upload.service.in \
4417 src/journal-remote/journal-upload.conf.in
4419 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4420 journalctl_CFLAGS = \
4423 journalctl_SOURCES = \
4424 src/journal/journalctl.c
4426 journalctl_LDADD = \
4427 libsystemd-journal-internal.la \
4428 libsystemd-internal.la \
4429 libsystemd-logs.la \
4430 libsystemd-shared.la
4433 journalctl_LDADD += \
4438 journalctl_SOURCES += \
4439 src/journal/journal-qrcode.c \
4440 src/journal/journal-qrcode.h
4442 journalctl_CFLAGS += \
4445 journalctl_LDADD += \
4449 test_journal_SOURCES = \
4450 src/journal/test-journal.c
4452 test_journal_LDADD = \
4453 libsystemd-journal-core.la
4455 test_journal_send_SOURCES = \
4456 src/journal/test-journal-send.c
4458 test_journal_send_LDADD = \
4459 libsystemd-journal-core.la
4461 test_journal_syslog_SOURCES = \
4462 src/journal/test-journal-syslog.c
4464 test_journal_syslog_LDADD = \
4465 libsystemd-journal-core.la
4467 test_journal_match_SOURCES = \
4468 src/journal/test-journal-match.c
4470 test_journal_match_LDADD = \
4471 libsystemd-journal-core.la
4473 test_journal_enum_SOURCES = \
4474 src/journal/test-journal-enum.c
4476 test_journal_enum_LDADD = \
4477 libsystemd-journal-core.la
4479 test_journal_stream_SOURCES = \
4480 src/journal/test-journal-stream.c
4482 test_journal_stream_LDADD = \
4483 libsystemd-journal-core.la
4485 test_journal_flush_SOURCES = \
4486 src/journal/test-journal-flush.c
4488 test_journal_flush_LDADD = \
4489 libsystemd-journal-core.la
4491 test_journal_init_SOURCES = \
4492 src/journal/test-journal-init.c
4494 test_journal_init_LDADD = \
4495 libsystemd-journal-core.la
4497 test_journal_verify_SOURCES = \
4498 src/journal/test-journal-verify.c
4500 test_journal_verify_LDADD = \
4501 libsystemd-journal-core.la
4503 test_journal_interleaving_SOURCES = \
4504 src/journal/test-journal-interleaving.c
4506 test_journal_interleaving_LDADD = \
4507 libsystemd-journal-core.la
4509 test_mmap_cache_SOURCES = \
4510 src/journal/test-mmap-cache.c
4512 test_mmap_cache_LDADD = \
4513 libsystemd-journal-core.la
4515 test_catalog_SOURCES = \
4516 src/journal/test-catalog.c
4518 test_catalog_CPPFLAGS = \
4520 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4522 test_catalog_LDADD = \
4523 libsystemd-journal-core.la
4525 test_compress_SOURCES = \
4526 src/journal/test-compress.c
4528 test_compress_LDADD = \
4529 libsystemd-journal-internal.la \
4530 libsystemd-shared.la
4532 test_compress_benchmark_SOURCES = \
4533 src/journal/test-compress-benchmark.c
4535 test_compress_benchmark_LDADD = \
4536 libsystemd-journal-internal.la \
4537 libsystemd-shared.la
4539 test_audit_type_SOURCES = \
4540 src/journal/test-audit-type.c
4542 test_audit_type_LDADD = \
4543 libsystemd-journal-core.la
4545 libsystemd_journal_core_la_SOURCES = \
4546 src/journal/journald-kmsg.c \
4547 src/journal/journald-kmsg.h \
4548 src/journal/journald-syslog.c \
4549 src/journal/journald-syslog.h \
4550 src/journal/journald-stream.c \
4551 src/journal/journald-stream.h \
4552 src/journal/journald-server.c \
4553 src/journal/journald-server.h \
4554 src/journal/journald-console.c \
4555 src/journal/journald-console.h \
4556 src/journal/journald-wall.c \
4557 src/journal/journald-wall.h \
4558 src/journal/journald-native.c \
4559 src/journal/journald-native.h \
4560 src/journal/journald-audit.c \
4561 src/journal/journald-audit.h \
4562 src/journal/journald-rate-limit.c \
4563 src/journal/journald-rate-limit.h \
4564 src/journal/journal-internal.h
4566 nodist_libsystemd_journal_core_la_SOURCES = \
4567 src/journal/journald-gperf.c
4569 libsystemd_journal_core_la_LIBADD = \
4570 libsystemd-journal-internal.la \
4571 libudev-internal.la \
4572 libsystemd-label.la \
4573 libsystemd-internal.la \
4574 libsystemd-shared.la
4577 libsystemd_journal_core_la_LIBADD += \
4581 noinst_LTLIBRARIES += \
4582 libsystemd-journal-core.la
4584 journal-install-hook:
4585 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4586 -chown 0:0 $(DESTDIR)/var/log/journal
4587 -chmod 755 $(DESTDIR)/var/log/journal
4588 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4589 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4591 journal-uninstall-hook:
4592 -rmdir $(DESTDIR)/var/log/journal/remote
4593 -rmdir $(DESTDIR)/var/log/journal/
4595 INSTALL_EXEC_HOOKS += journal-install-hook
4596 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4598 # ------------------------------------------------------------------------------
4599 # Update catalog on installation. Do not bother if installing
4600 # in DESTDIR, since this is likely for packaging purposes.
4601 catalog-update-hook:
4602 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4604 INSTALL_DATA_HOOKS += \
4607 catalog-remove-hook:
4608 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4610 UNINSTALL_DATA_HOOKS += \
4619 test-journal-syslog \
4620 test-journal-match \
4621 test-journal-stream \
4623 test-journal-verify \
4624 test-journal-interleaving \
4625 test-journal-flush \
4633 test-compress-benchmark
4636 pkginclude_HEADERS += \
4637 src/systemd/sd-journal.h \
4638 src/systemd/sd-messages.h \
4639 src/systemd/_sd-common.h
4641 libsystemd_journal_internal_la_SOURCES = \
4642 src/journal/sd-journal.c \
4643 src/systemd/sd-journal.h \
4644 src/systemd/_sd-common.h \
4645 src/journal/journal-file.c \
4646 src/journal/journal-file.h \
4647 src/journal/journal-vacuum.c \
4648 src/journal/journal-vacuum.h \
4649 src/journal/journal-verify.c \
4650 src/journal/journal-verify.h \
4651 src/journal/lookup3.c \
4652 src/journal/lookup3.h \
4653 src/journal/journal-send.c \
4654 src/journal/journal-def.h \
4655 src/journal/compress.h \
4656 src/journal/catalog.c \
4657 src/journal/catalog.h \
4658 src/journal/mmap-cache.c \
4659 src/journal/mmap-cache.h \
4660 src/journal/compress.c \
4661 src/journal/audit-type.h \
4662 src/journal/audit-type.c
4664 nodist_libsystemd_journal_internal_la_SOURCES = \
4665 src/journal/audit_type-to-name.h
4667 gperf_txt_sources += \
4668 src/journal/audit_type-list.txt
4670 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4671 libsystemd_journal_internal_la_CFLAGS = \
4674 libsystemd_journal_internal_la_LIBADD = \
4678 libsystemd_journal_internal_la_CFLAGS += \
4681 libsystemd_journal_internal_la_LIBADD += \
4686 libsystemd_journal_internal_la_LIBADD += \
4691 libsystemd_journal_internal_la_SOURCES += \
4692 src/journal/journal-authenticate.c \
4693 src/journal/journal-authenticate.h \
4694 src/journal/fsprg.c \
4697 libsystemd_journal_internal_la_LIBADD += \
4700 # fsprg.c is a drop-in file using void pointer arithmetic
4701 libsystemd_journal_internal_la_CFLAGS += \
4706 noinst_LTLIBRARIES += \
4707 libsystemd-journal-internal.la
4709 rootlibexec_PROGRAMS += \
4712 rootbin_PROGRAMS += \
4718 dist_systemunit_DATA += \
4719 units/systemd-journald.socket \
4720 units/systemd-journald-dev-log.socket \
4721 units/systemd-journald-audit.socket
4723 nodist_systemunit_DATA += \
4724 units/systemd-journald.service \
4725 units/systemd-journal-flush.service \
4726 units/systemd-journal-catalog-update.service
4728 dist_pkgsysconf_DATA += \
4729 src/journal/journald.conf
4731 dist_catalog_DATA = \
4732 catalog/systemd.fr.catalog \
4733 catalog/systemd.it.catalog \
4734 catalog/systemd.pl.catalog \
4735 catalog/systemd.pt_BR.catalog \
4736 catalog/systemd.ru.catalog \
4737 catalog/systemd.catalog
4739 SOCKETS_TARGET_WANTS += \
4740 systemd-journald.socket \
4741 systemd-journald-dev-log.socket \
4742 systemd-journald-audit.socket
4744 SYSINIT_TARGET_WANTS += \
4745 systemd-journald.service \
4746 systemd-journal-flush.service \
4747 systemd-journal-catalog-update.service
4750 units/systemd-journald.service.in \
4751 units/systemd-journal-flush.service.in \
4752 units/systemd-journal-catalog-update.service.in
4754 gperf_gperf_sources += \
4755 src/journal/journald-gperf.gperf
4757 # ------------------------------------------------------------------------------
4759 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4761 rootlibexec_PROGRAMS += \
4762 systemd-journal-gatewayd
4764 systemd_journal_gatewayd_SOURCES = \
4765 src/journal-remote/journal-gatewayd.c \
4766 src/journal-remote/microhttpd-util.h \
4767 src/journal-remote/microhttpd-util.c
4769 systemd_journal_gatewayd_LDADD = \
4770 libsystemd-logs.la \
4771 libsystemd-journal-internal.la \
4772 libsystemd-internal.la \
4773 libsystemd-shared.la \
4777 systemd_journal_gatewayd_LDADD += \
4781 systemd_journal_gatewayd_CFLAGS = \
4783 $(MICROHTTPD_CFLAGS)
4785 systemd_journal_gatewayd_CPPFLAGS = \
4787 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4789 dist_systemunit_DATA += \
4790 units/systemd-journal-gatewayd.socket
4792 nodist_systemunit_DATA += \
4793 units/systemd-journal-gatewayd.service
4795 dist_gatewayddocumentroot_DATA = \
4796 src/journal-remote/browse.html
4801 units/systemd-journal-gatewayd.service.in
4803 # ------------------------------------------------------------------------------
4805 systemd_socket_proxyd_SOURCES = \
4806 src/socket-proxy/socket-proxyd.c
4808 systemd_socket_proxyd_LDADD = \
4809 libsystemd-logs.la \
4810 libsystemd-internal.la \
4811 libsystemd-journal-internal.la \
4812 libsystemd-shared.la \
4813 libsystemd-resolve.la
4815 # ------------------------------------------------------------------------------
4817 systemd_coredump_SOURCES = \
4818 src/journal/coredump.c \
4819 src/journal/coredump-vacuum.c \
4820 src/journal/coredump-vacuum.h
4822 systemd_coredump_LDADD = \
4823 libsystemd-journal-internal.la \
4824 libsystemd-label.la \
4825 libsystemd-internal.la \
4826 libsystemd-shared.la
4829 systemd_coredump_SOURCES += \
4830 src/journal/stacktrace.c \
4831 src/journal/stacktrace.h
4833 systemd_coredump_LDADD += \
4837 rootlibexec_PROGRAMS += \
4840 dist_pkgsysconf_DATA += \
4841 src/journal/coredump.conf
4844 systemd_coredump_LDADD += \
4848 coredumpctl_SOURCES = \
4849 src/journal/coredumpctl.c
4851 coredumpctl_LDADD = \
4852 libsystemd-journal-internal.la \
4853 libsystemd-internal.la \
4854 libsystemd-shared.la
4860 test-coredump-vacuum
4862 test_coredump_vacuum_SOURCES = \
4863 src/journal/test-coredump-vacuum.c \
4864 src/journal/coredump-vacuum.c \
4865 src/journal/coredump-vacuum.h
4867 test_coredump_vacuum_LDADD = \
4868 libsystemd-internal.la \
4869 libsystemd-shared.la
4871 dist_bashcompletion_DATA += \
4872 shell-completion/bash/coredumpctl
4874 dist_zshcompletion_DATA += \
4875 shell-completion/zsh/_coredumpctl
4877 nodist_sysctl_DATA = \
4878 sysctl.d/50-coredump.conf
4881 sysctl.d/50-coredump.conf
4885 sysctl.d/50-coredump.conf.in
4887 # ------------------------------------------------------------------------------
4889 systemd_binfmt_SOURCES = \
4892 systemd_binfmt_LDADD = \
4893 libsystemd-shared.la
4895 rootlibexec_PROGRAMS += \
4898 dist_systemunit_DATA += \
4899 units/proc-sys-fs-binfmt_misc.automount \
4900 units/proc-sys-fs-binfmt_misc.mount
4902 nodist_systemunit_DATA += \
4903 units/systemd-binfmt.service
4906 $(prefix)/lib/binfmt.d \
4907 $(sysconfdir)/binfmt.d
4909 SYSINIT_TARGET_WANTS += \
4910 systemd-binfmt.service \
4911 proc-sys-fs-binfmt_misc.automount
4916 units/systemd-binfmt.service.in
4918 # ------------------------------------------------------------------------------
4920 systemd_vconsole_setup_SOURCES = \
4921 src/vconsole/vconsole-setup.c
4923 systemd_vconsole_setup_LDADD = \
4924 libsystemd-shared.la
4926 rootlibexec_PROGRAMS += \
4927 systemd-vconsole-setup
4929 nodist_udevrules_DATA += \
4930 src/vconsole/90-vconsole.rules
4932 nodist_systemunit_DATA += \
4933 units/systemd-vconsole-setup.service
4935 SYSINIT_TARGET_WANTS += \
4936 systemd-vconsole-setup.service
4940 src/vconsole/90-vconsole.rules.in \
4941 units/systemd-vconsole-setup.service.in
4943 # ------------------------------------------------------------------------------
4945 systemd_bootchart_SOURCES = \
4946 src/bootchart/bootchart.c \
4947 src/bootchart/bootchart.h \
4948 src/bootchart/store.c \
4949 src/bootchart/store.h \
4950 src/bootchart/svg.c \
4953 systemd_bootchart_LDADD = \
4954 libsystemd-journal-internal.la \
4955 libsystemd-shared.la
4957 rootlibexec_PROGRAMS += \
4960 dist_pkgsysconf_DATA += \
4961 src/bootchart/bootchart.conf
4963 nodist_systemunit_DATA += \
4964 units/systemd-bootchart.service
4968 units/systemd-bootchart.service.in
4970 # ------------------------------------------------------------------------------
4971 if ENABLE_QUOTACHECK
4972 rootlibexec_PROGRAMS += \
4975 nodist_systemunit_DATA += \
4976 units/systemd-quotacheck.service
4978 systemd_quotacheck_SOURCES = \
4979 src/quotacheck/quotacheck.c
4981 systemd_quotacheck_LDADD = \
4982 libsystemd-shared.la
4986 units/systemd-quotacheck.service.in
4988 nodist_systemunit_DATA += \
4989 units/quotaon.service
4991 # ------------------------------------------------------------------------------
4992 if ENABLE_RANDOMSEED
4993 rootlibexec_PROGRAMS += \
4996 nodist_systemunit_DATA += \
4997 units/systemd-random-seed.service
4999 systemd_random_seed_SOURCES = \
5000 src/random-seed/random-seed.c
5002 systemd_random_seed_LDADD = \
5003 libsystemd-label.la \
5004 libsystemd-shared.la
5006 SYSINIT_TARGET_WANTS += \
5007 systemd-random-seed.service
5012 units/systemd-random-seed.service.in
5014 # ------------------------------------------------------------------------------
5016 rootlibexec_PROGRAMS += \
5019 nodist_systemunit_DATA += \
5020 units/systemd-backlight@.service
5022 systemd_backlight_SOURCES = \
5023 src/backlight/backlight.c
5025 systemd_backlight_LDADD = \
5026 libsystemd-label.la \
5027 libudev-internal.la \
5028 libsystemd-internal.la \
5029 libsystemd-shared.la
5033 units/systemd-backlight@.service.in
5035 # ------------------------------------------------------------------------------
5037 rootlibexec_PROGRAMS += \
5040 nodist_systemunit_DATA += \
5041 units/systemd-rfkill@.service
5043 systemd_rfkill_SOURCES = \
5046 systemd_rfkill_LDADD = \
5047 libsystemd-label.la \
5048 libudev-internal.la \
5049 libsystemd-internal.la \
5050 libsystemd-shared.la
5054 units/systemd-rfkill@.service.in
5056 # ------------------------------------------------------------------------------
5057 if HAVE_LIBCRYPTSETUP
5058 rootlibexec_PROGRAMS += \
5061 systemgenerator_PROGRAMS += \
5062 systemd-cryptsetup-generator
5064 dist_systemunit_DATA += \
5065 units/cryptsetup.target \
5066 units/cryptsetup-pre.target
5068 systemd_cryptsetup_SOURCES = \
5069 src/cryptsetup/cryptsetup.c
5071 systemd_cryptsetup_CFLAGS = \
5073 $(LIBCRYPTSETUP_CFLAGS)
5075 systemd_cryptsetup_LDADD = \
5076 libsystemd-label.la \
5077 libudev-internal.la \
5078 libsystemd-internal.la \
5079 libsystemd-shared.la \
5080 $(LIBCRYPTSETUP_LIBS)
5082 systemd_cryptsetup_generator_SOURCES = \
5083 src/cryptsetup/cryptsetup-generator.c
5085 systemd_cryptsetup_generator_LDADD = \
5086 libsystemd-label.la \
5087 libsystemd-shared.la
5089 SYSINIT_TARGET_WANTS += \
5094 # ------------------------------------------------------------------------------
5096 systemd_hostnamed_SOURCES = \
5097 src/hostname/hostnamed.c
5099 systemd_hostnamed_LDADD = \
5100 libsystemd-label.la \
5101 libsystemd-internal.la \
5102 libsystemd-shared.la
5104 rootlibexec_PROGRAMS += \
5107 nodist_systemunit_DATA += \
5108 units/systemd-hostnamed.service
5110 dist_systemunit_DATA_busnames += \
5111 units/org.freedesktop.hostname1.busname
5113 dist_dbuspolicy_DATA += \
5114 src/hostname/org.freedesktop.hostname1.conf
5116 dist_dbussystemservice_DATA += \
5117 src/hostname/org.freedesktop.hostname1.service
5119 polkitpolicy_files += \
5120 src/hostname/org.freedesktop.hostname1.policy
5122 SYSTEM_UNIT_ALIASES += \
5123 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
5125 BUSNAMES_TARGET_WANTS += \
5126 org.freedesktop.hostname1.busname
5128 hostnamectl_SOURCES = \
5129 src/hostname/hostnamectl.c
5131 hostnamectl_LDADD = \
5132 libsystemd-internal.la \
5133 libsystemd-shared.la
5138 dist_bashcompletion_DATA += \
5139 shell-completion/bash/hostnamectl
5141 dist_zshcompletion_DATA += \
5142 shell-completion/zsh/_hostnamectl
5146 polkitpolicy_in_files += \
5147 src/hostname/org.freedesktop.hostname1.policy.in
5150 units/systemd-hostnamed.service.in
5152 # ------------------------------------------------------------------------------
5153 dist_systemunit_DATA_busnames += \
5154 units/org.freedesktop.systemd1.busname
5156 BUSNAMES_TARGET_WANTS += \
5157 org.freedesktop.systemd1.busname
5159 # ------------------------------------------------------------------------------
5161 systemd_localed_SOURCES = \
5162 src/locale/localed.c
5164 systemd_localed_LDADD = \
5165 libsystemd-label.la \
5166 libsystemd-internal.la \
5167 libsystemd-shared.la \
5170 systemd_localed_CFLAGS = \
5174 nodist_systemunit_DATA += \
5175 units/systemd-localed.service
5177 dist_systemunit_DATA_busnames += \
5178 units/org.freedesktop.locale1.busname
5180 rootlibexec_PROGRAMS += \
5183 dist_dbuspolicy_DATA += \
5184 src/locale/org.freedesktop.locale1.conf
5186 dist_dbussystemservice_DATA += \
5187 src/locale/org.freedesktop.locale1.service
5189 polkitpolicy_files += \
5190 src/locale/org.freedesktop.locale1.policy
5192 SYSTEM_UNIT_ALIASES += \
5193 systemd-localed.service dbus-org.freedesktop.locale1.service
5195 BUSNAMES_TARGET_WANTS += \
5196 org.freedesktop.locale1.busname
5198 dist_pkgdata_DATA += \
5199 src/locale/kbd-model-map \
5200 src/locale/language-fallback-map
5202 localectl_SOURCES = \
5203 src/locale/localectl.c
5206 libsystemd-internal.la \
5207 libsystemd-shared.la
5212 dist_bashcompletion_DATA += \
5213 shell-completion/bash/localectl
5215 dist_zshcompletion_DATA += \
5216 shell-completion/zsh/_localectl
5220 .PHONY: update-kbd-model-map
5222 polkitpolicy_in_files += \
5223 src/locale/org.freedesktop.locale1.policy.in
5226 units/systemd-localed.service.in
5228 # ------------------------------------------------------------------------------
5230 systemd_timedated_SOURCES = \
5231 src/timedate/timedated.c
5233 systemd_timedated_LDADD = \
5234 libsystemd-label.la \
5235 libsystemd-internal.la \
5236 libsystemd-shared.la
5238 rootlibexec_PROGRAMS += \
5241 dist_dbussystemservice_DATA += \
5242 src/timedate/org.freedesktop.timedate1.service
5244 dist_dbuspolicy_DATA += \
5245 src/timedate/org.freedesktop.timedate1.conf
5247 nodist_systemunit_DATA += \
5248 units/systemd-timedated.service
5250 dist_systemunit_DATA_busnames += \
5251 units/org.freedesktop.timedate1.busname
5253 polkitpolicy_files += \
5254 src/timedate/org.freedesktop.timedate1.policy
5256 SYSTEM_UNIT_ALIASES += \
5257 systemd-timedated.service dbus-org.freedesktop.timedate1.service
5259 BUSNAMES_TARGET_WANTS += \
5260 org.freedesktop.timedate1.busname
5262 timedatectl_SOURCES = \
5263 src/timedate/timedatectl.c
5265 timedatectl_LDADD = \
5266 libsystemd-internal.la \
5267 libsystemd-shared.la
5272 dist_bashcompletion_DATA += \
5273 shell-completion/bash/timedatectl
5275 dist_zshcompletion_DATA += \
5276 shell-completion/zsh/_timedatectl
5279 polkitpolicy_in_files += \
5280 src/timedate/org.freedesktop.timedate1.policy.in
5283 units/systemd-timedated.service.in
5285 # ------------------------------------------------------------------------------
5287 systemd_timesyncd_SOURCES = \
5288 src/timesync/timesyncd.c \
5289 src/timesync/timesyncd-manager.c \
5290 src/timesync/timesyncd-manager.h \
5291 src/timesync/timesyncd-conf.c \
5292 src/timesync/timesyncd-conf.h \
5293 src/timesync/timesyncd-server.c \
5294 src/timesync/timesyncd-server.h
5296 nodist_systemd_timesyncd_SOURCES = \
5297 src/timesync/timesyncd-gperf.c
5299 gperf_gperf_sources += \
5300 src/timesync/timesyncd-gperf.gperf
5302 systemd_timesyncd_LDADD = \
5303 libsystemd-resolve.la \
5304 libsystemd-network.la \
5305 libsystemd-label.la \
5306 libsystemd-internal.la \
5307 libsystemd-shared.la
5309 rootlibexec_PROGRAMS += \
5312 nodist_systemunit_DATA += \
5313 units/systemd-timesyncd.service
5315 GENERAL_ALIASES += \
5316 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5319 units/systemd-timesyncd.service.in
5321 nodist_pkgsysconf_DATA += \
5322 src/timesync/timesyncd.conf
5325 src/timesync/timesyncd.conf.in
5328 # ------------------------------------------------------------------------------
5330 libnss_myhostname_la_SOURCES = \
5331 src/nss-myhostname/nss-myhostname.sym \
5332 src/nss-myhostname/nss-myhostname.c
5334 libnss_myhostname_la_LDFLAGS = \
5341 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5343 libnss_myhostname_la_LIBADD = \
5344 libsystemd-shared.la \
5345 libsystemd-internal.la
5347 lib_LTLIBRARIES += \
5348 libnss_myhostname.la
5351 # ------------------------------------------------------------------------------
5353 systemd_machined_SOURCES = \
5354 src/machine/machined.c \
5355 src/machine/machined.h
5357 systemd_machined_LDADD = \
5358 libsystemd-machine-core.la
5360 rootlibexec_PROGRAMS += \
5363 libsystemd_machine_core_la_SOURCES = \
5364 src/machine/machine.c \
5365 src/machine/machine.h \
5366 src/machine/machined-dbus.c \
5367 src/machine/machine-dbus.c \
5368 src/machine/machine-dbus.h \
5369 src/machine/image-dbus.c \
5370 src/machine/image-dbus.h
5372 libsystemd_machine_core_la_LIBADD = \
5373 libsystemd-label.la \
5374 libudev-internal.la \
5375 libsystemd-internal.la \
5376 libsystemd-shared.la
5378 noinst_LTLIBRARIES += \
5379 libsystemd-machine-core.la
5381 machinectl_SOURCES = \
5382 src/machine/machinectl.c
5384 machinectl_LDADD = \
5385 libsystemd-internal.la \
5386 libsystemd-logs.la \
5387 libsystemd-journal-internal.la \
5388 libsystemd-units.la \
5389 libsystemd-shared.la
5391 rootbin_PROGRAMS += \
5394 dist_bashcompletion_DATA += \
5395 shell-completion/bash/machinectl
5397 test_machine_tables_SOURCES = \
5398 src/machine/test-machine-tables.c
5400 test_machine_tables_LDADD = \
5401 libsystemd-machine-core.la
5406 nodist_systemunit_DATA += \
5407 units/systemd-machined.service
5409 dist_systemunit_DATA += \
5412 dist_systemunit_DATA_busnames += \
5413 units/org.freedesktop.machine1.busname
5415 dist_dbussystemservice_DATA += \
5416 src/machine/org.freedesktop.machine1.service
5418 dist_dbuspolicy_DATA += \
5419 src/machine/org.freedesktop.machine1.conf
5421 polkitpolicy_files += \
5422 src/machine/org.freedesktop.machine1.policy
5424 polkitpolicy_in_files += \
5425 src/machine/org.freedesktop.machine1.policy.in
5427 dist_zshcompletion_DATA += \
5428 shell-completion/zsh/_machinectl \
5429 shell-completion/zsh/_sd_machines
5431 SYSTEM_UNIT_ALIASES += \
5432 systemd-machined.service dbus-org.freedesktop.machine1.service
5434 BUSNAMES_TARGET_WANTS += \
5435 org.freedesktop.machine1.busname
5437 libnss_mymachines_la_SOURCES = \
5438 src/nss-mymachines/nss-mymachines.sym \
5439 src/nss-mymachines/nss-mymachines.c
5441 libnss_mymachines_la_LDFLAGS = \
5448 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5450 libnss_mymachines_la_LIBADD = \
5451 libsystemd-shared.la \
5452 libsystemd-internal.la
5454 lib_LTLIBRARIES += \
5455 libnss_mymachines.la
5460 units/systemd-machined.service.in
5462 # ------------------------------------------------------------------------------
5471 rootlibexec_PROGRAMS += \
5477 systemd_importd_SOURCES = \
5478 src/import/importd.c
5480 systemd_importd_CFLAGS = \
5482 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5483 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5484 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5486 systemd_importd_LDADD = \
5487 libsystemd-internal.la \
5488 libsystemd-label.la \
5489 libsystemd-shared.la
5491 systemd_pull_SOURCES = \
5493 src/import/pull-raw.c \
5494 src/import/pull-raw.h \
5495 src/import/pull-tar.c \
5496 src/import/pull-tar.h \
5497 src/import/pull-dkr.c \
5498 src/import/pull-dkr.h \
5499 src/import/pull-job.c \
5500 src/import/pull-job.h \
5501 src/import/pull-common.c \
5502 src/import/pull-common.h \
5503 src/import/import-common.c \
5504 src/import/import-common.h \
5505 src/import/import-compress.c \
5506 src/import/import-compress.h \
5507 src/import/curl-util.c \
5508 src/import/curl-util.h \
5509 src/import/aufs-util.c \
5510 src/import/aufs-util.h \
5511 src/import/qcow2-util.c \
5512 src/import/qcow2-util.h
5514 systemd_pull_CFLAGS = \
5520 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5521 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5523 systemd_pull_LDADD = \
5524 libsystemd-label.la \
5525 libsystemd-internal.la \
5526 libsystemd-shared.la \
5533 systemd_import_SOURCES = \
5534 src/import/import.c \
5535 src/import/import-raw.c \
5536 src/import/import-raw.h \
5537 src/import/import-tar.c \
5538 src/import/import-tar.h \
5539 src/import/import-common.c \
5540 src/import/import-common.h \
5541 src/import/import-compress.c \
5542 src/import/import-compress.h \
5543 src/import/qcow2-util.c \
5544 src/import/qcow2-util.h
5546 systemd_import_CFLAGS = \
5551 systemd_import_LDADD = \
5552 libsystemd-label.la \
5553 libsystemd-internal.la \
5554 libsystemd-shared.la \
5559 systemd_export_SOURCES = \
5560 src/import/export.c \
5561 src/import/export-tar.c \
5562 src/import/export-tar.h \
5563 src/import/export-raw.c \
5564 src/import/export-raw.h \
5565 src/import/import-common.c \
5566 src/import/import-common.h \
5567 src/import/import-compress.c \
5568 src/import/import-compress.h
5570 systemd_export_CFLAGS = \
5575 systemd_export_LDADD = \
5576 libsystemd-label.la \
5577 libsystemd-internal.la \
5578 libsystemd-shared.la \
5583 dist_rootlibexec_DATA = \
5584 src/import/import-pubring.gpg
5586 nodist_systemunit_DATA += \
5587 units/systemd-importd.service
5589 dist_systemunit_DATA_busnames += \
5590 units/org.freedesktop.import1.busname
5592 BUSNAMES_TARGET_WANTS += \
5593 org.freedesktop.import1.busname
5595 SYSTEM_UNIT_ALIASES += \
5596 systemd-importd.service dbus-org.freedesktop.import1.service
5598 dist_dbussystemservice_DATA += \
5599 src/import/org.freedesktop.import1.service
5601 dist_dbuspolicy_DATA += \
5602 src/import/org.freedesktop.import1.conf
5604 polkitpolicy_files += \
5605 src/import/org.freedesktop.import1.policy
5607 polkitpolicy_in_files += \
5608 src/import/org.freedesktop.import1.policy.in
5613 test_qcow2_SOURCES = \
5614 src/import/test-qcow2.c \
5615 src/import/qcow2-util.c \
5616 src/import/qcow2-util.h
5618 test_qcow2_CFLAGS = \
5622 test_qcow2_LDADD = \
5623 libsystemd-internal.la \
5624 libsystemd-label.la \
5625 libsystemd-shared.la \
5637 units/systemd-importd.service.in \
5638 src/resolve/resolved.conf.in
5641 # ------------------------------------------------------------------------------
5643 systemd_resolved_SOURCES = \
5644 src/resolve/resolved.c \
5645 src/resolve/resolved-manager.c \
5646 src/resolve/resolved-manager.h \
5647 src/resolve/resolved-conf.c \
5648 src/resolve/resolved-conf.h \
5649 src/resolve/resolved-bus.c \
5650 src/resolve/resolved-bus.h \
5651 src/resolve/resolved-link.h \
5652 src/resolve/resolved-link.c \
5653 src/resolve/resolved-def.h \
5654 src/resolve/resolved-dns-domain.h \
5655 src/resolve/resolved-dns-domain.c \
5656 src/resolve/resolved-dns-rr.h \
5657 src/resolve/resolved-dns-rr.c \
5658 src/resolve/resolved-dns-question.h \
5659 src/resolve/resolved-dns-question.c \
5660 src/resolve/resolved-dns-answer.h \
5661 src/resolve/resolved-dns-answer.c \
5662 src/resolve/resolved-dns-packet.h \
5663 src/resolve/resolved-dns-packet.c \
5664 src/resolve/resolved-dns-query.h \
5665 src/resolve/resolved-dns-query.c \
5666 src/resolve/resolved-dns-transaction.h \
5667 src/resolve/resolved-dns-transaction.c \
5668 src/resolve/resolved-dns-scope.h \
5669 src/resolve/resolved-dns-scope.c \
5670 src/resolve/resolved-dns-server.h \
5671 src/resolve/resolved-dns-server.c \
5672 src/resolve/resolved-dns-cache.h \
5673 src/resolve/resolved-dns-cache.c \
5674 src/resolve/resolved-dns-zone.h \
5675 src/resolve/resolved-dns-zone.c \
5676 src/resolve/resolved-dns-stream.h \
5677 src/resolve/resolved-dns-stream.c \
5678 src/resolve/dns-type.c \
5679 src/resolve/dns-type.h
5681 nodist_systemd_resolved_SOURCES = \
5682 src/resolve/dns_type-from-name.h \
5683 src/resolve/dns_type-to-name.h \
5684 src/resolve/resolved-gperf.c
5686 gperf_gperf_sources += \
5687 src/resolve/resolved-gperf.gperf
5689 gperf_txt_sources += \
5690 src/resolve/dns_type-list.txt
5692 systemd_resolved_LDADD = \
5693 libsystemd-network.la \
5694 libsystemd-label.la \
5695 libsystemd-internal.la \
5696 libsystemd-shared.la \
5699 rootlibexec_PROGRAMS += \
5702 nodist_systemunit_DATA += \
5703 units/systemd-resolved.service
5705 dist_systemunit_DATA_busnames += \
5706 units/org.freedesktop.resolve1.busname
5708 dist_dbuspolicy_DATA += \
5709 src/resolve/org.freedesktop.resolve1.conf
5711 dist_dbussystemservice_DATA += \
5712 src/resolve/org.freedesktop.resolve1.service
5714 SYSTEM_UNIT_ALIASES += \
5715 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5717 BUSNAMES_TARGET_WANTS += \
5718 org.freedesktop.resolve1.busname
5720 GENERAL_ALIASES += \
5721 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5723 nodist_pkgsysconf_DATA += \
5724 src/resolve/resolved.conf
5729 test_dns_domain_SOURCES = \
5730 src/resolve/resolved-dns-domain.h \
5731 src/resolve/resolved-dns-domain.c \
5732 src/resolve/test-dns-domain.c
5734 test_dns_domain_LDADD = \
5735 libsystemd-network.la \
5736 libsystemd-label.la \
5737 libsystemd-internal.la \
5738 libsystemd-shared.la \
5741 libnss_resolve_la_SOURCES = \
5742 src/nss-resolve/nss-resolve.sym \
5743 src/nss-resolve/nss-resolve.c
5745 libnss_resolve_la_LDFLAGS = \
5752 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5754 libnss_resolve_la_LIBADD = \
5755 libsystemd-internal.la \
5756 libsystemd-shared.la
5758 lib_LTLIBRARIES += \
5761 systemd_resolve_host_SOURCES = \
5762 src/resolve-host/resolve-host.c \
5763 src/resolve/resolved-dns-packet.c \
5764 src/resolve/resolved-dns-packet.h \
5765 src/resolve/resolved-dns-rr.c \
5766 src/resolve/resolved-dns-rr.h \
5767 src/resolve/resolved-dns-answer.c \
5768 src/resolve/resolved-dns-answer.h \
5769 src/resolve/resolved-dns-question.c \
5770 src/resolve/resolved-dns-question.h \
5771 src/resolve/resolved-dns-domain.c \
5772 src/resolve/resolved-dns-domain.h \
5773 src/resolve/dns-type.c \
5774 src/resolve/dns-type.h
5776 nodist_systemd_resolve_host_SOURCES = \
5777 src/resolve/dns_type-from-name.h \
5778 src/resolve/dns_type-to-name.h
5780 systemd_resolve_host_LDADD = \
5781 libsystemd-internal.la \
5782 libsystemd-shared.la \
5785 rootlibexec_PROGRAMS += \
5786 systemd-resolve-host
5791 units/systemd-resolved.service.m4.in
5793 # ------------------------------------------------------------------------------
5795 rootlibexec_PROGRAMS += \
5798 systemd_networkd_SOURCES = \
5799 src/network/networkd.c
5801 systemd_networkd_LDADD = \
5802 libsystemd-networkd-core.la
5805 systemd_networkd_LDADD += \
5809 noinst_LTLIBRARIES += \
5810 libsystemd-networkd-core.la
5812 libsystemd_networkd_core_la_CFLAGS = \
5815 libsystemd_networkd_core_la_SOURCES = \
5816 src/libsystemd-network/network-internal.h \
5817 src/network/networkd.h \
5818 src/network/networkd-link.h \
5819 src/network/networkd-netdev.h \
5820 src/network/networkd-netdev-tunnel.h \
5821 src/network/networkd-netdev-veth.h \
5822 src/network/networkd-netdev-vxlan.h \
5823 src/network/networkd-netdev-vlan.h \
5824 src/network/networkd-netdev-macvlan.h \
5825 src/network/networkd-netdev-ipvlan.h \
5826 src/network/networkd-netdev-dummy.h \
5827 src/network/networkd-netdev-tuntap.h \
5828 src/network/networkd-netdev-bond.h \
5829 src/network/networkd-netdev-bridge.h \
5830 src/network/networkd-netdev.c \
5831 src/network/networkd-netdev-tunnel.c \
5832 src/network/networkd-netdev-veth.c \
5833 src/network/networkd-netdev-vxlan.c \
5834 src/network/networkd-netdev-vlan.c \
5835 src/network/networkd-netdev-macvlan.c \
5836 src/network/networkd-netdev-ipvlan.c \
5837 src/network/networkd-netdev-dummy.c \
5838 src/network/networkd-netdev-tuntap.c \
5839 src/network/networkd-netdev-bond.c \
5840 src/network/networkd-netdev-bridge.c \
5841 src/network/networkd-link.c \
5842 src/network/networkd-link-bus.c \
5843 src/network/networkd-ipv4ll.c \
5844 src/network/networkd-dhcp4.c \
5845 src/network/networkd-dhcp6.c \
5846 src/network/networkd-network.c \
5847 src/network/networkd-network-bus.c \
5848 src/network/networkd-address.c \
5849 src/network/networkd-route.c \
5850 src/network/networkd-manager.c \
5851 src/network/networkd-manager-bus.c \
5852 src/network/networkd-fdb.c \
5853 src/network/networkd-address-pool.c
5855 nodist_libsystemd_networkd_core_la_SOURCES = \
5856 src/network/networkd-network-gperf.c \
5857 src/network/networkd-netdev-gperf.c
5859 libsystemd_networkd_core_la_LIBADD = \
5860 libudev-internal.la \
5861 libsystemd-internal.la \
5862 libsystemd-network.la \
5863 libsystemd-label.la \
5864 libsystemd-shared.la
5866 rootlibexec_PROGRAMS += \
5867 systemd-networkd-wait-online
5869 systemd_networkd_wait_online_CFLAGS = \
5872 systemd_networkd_wait_online_SOURCES = \
5873 src/libsystemd-network/network-internal.h \
5874 src/network/networkd-wait-online.h \
5875 src/network/networkd-wait-online-link.h \
5876 src/network/networkd-wait-online.c \
5877 src/network/networkd-wait-online-manager.c \
5878 src/network/networkd-wait-online-link.c
5880 systemd_networkd_wait_online_LDADD = \
5881 libsystemd-network.la \
5882 libudev-internal.la \
5883 libsystemd-internal.la \
5884 libsystemd-shared.la
5886 rootbin_PROGRAMS += \
5889 networkctl_SOURCES = \
5890 src/network/networkctl.c
5892 networkctl_LDADD = \
5893 libudev-internal.la \
5894 libsystemd-internal.la \
5895 libsystemd-shared.la \
5896 libsystemd-network.la
5898 test_network_SOURCES = \
5899 src/network/test-network.c
5901 test_network_LDADD = \
5902 libsystemd-networkd-core.la
5905 test_network_LDADD += \
5909 test_network_tables_SOURCES = \
5910 src/network/test-network-tables.c \
5911 src/shared/test-tables.h
5913 test_network_tables_LDADD = \
5914 libsystemd-networkd-core.la \
5918 test_network_tables_LDADD += \
5926 dist_systemunit_DATA += \
5927 units/systemd-networkd.socket
5929 nodist_systemunit_DATA += \
5930 units/systemd-networkd.service \
5931 units/systemd-networkd-wait-online.service
5933 dist_systemunit_DATA_busnames += \
5934 units/org.freedesktop.network1.busname
5936 dist_dbussystemservice_DATA += \
5937 src/network/org.freedesktop.network1.service
5939 dist_dbuspolicy_DATA += \
5940 src/network/org.freedesktop.network1.conf
5942 GENERAL_ALIASES += \
5943 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5944 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5945 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5947 SYSTEM_UNIT_ALIASES += \
5948 systemd-networkd.service dbus-org.freedesktop.network1.service
5950 BUSNAMES_TARGET_WANTS += \
5951 org.freedesktop.network1.busname
5953 gperf_gperf_sources += \
5954 src/network/networkd-network-gperf.gperf \
5955 src/network/networkd-netdev-gperf.gperf
5959 units/systemd-networkd.service.m4.in \
5960 units/systemd-networkd-wait-online.service.in
5962 # ------------------------------------------------------------------------------
5964 systemd_logind_SOURCES = \
5965 src/login/logind.c \
5968 nodist_systemd_logind_SOURCES = \
5969 src/login/logind-gperf.c
5971 systemd_logind_LDADD = \
5972 libsystemd-logind-core.la
5974 libsystemd_logind_core_la_SOURCES = \
5975 src/login/logind-core.c \
5976 src/login/logind-device.c \
5977 src/login/logind-device.h \
5978 src/login/logind-button.c \
5979 src/login/logind-button.h \
5980 src/login/logind-action.c \
5981 src/login/logind-action.h \
5982 src/login/logind-seat.c \
5983 src/login/logind-seat.h \
5984 src/login/logind-session.c \
5985 src/login/logind-session.h \
5986 src/login/logind-session-device.c \
5987 src/login/logind-session-device.h \
5988 src/login/logind-user.c \
5989 src/login/logind-user.h \
5990 src/login/logind-inhibit.c \
5991 src/login/logind-inhibit.h \
5992 src/login/logind-dbus.c \
5993 src/login/logind-session-dbus.c \
5994 src/login/logind-seat-dbus.c \
5995 src/login/logind-user-dbus.c \
5996 src/login/logind-utmp.c \
5997 src/login/logind-acl.h
5999 libsystemd_logind_core_la_LIBADD = \
6000 libsystemd-label.la \
6001 libudev-internal.la \
6002 libsystemd-internal.la \
6003 libsystemd-shared.la
6006 libsystemd_logind_core_la_SOURCES += \
6007 src/login/logind-acl.c
6009 libsystemd_logind_core_la_LIBADD += \
6013 noinst_LTLIBRARIES += \
6014 libsystemd-logind-core.la
6016 rootlibexec_PROGRAMS += \
6019 loginctl_SOURCES = \
6020 src/login/loginctl.c \
6021 src/login/sysfs-show.h \
6022 src/login/sysfs-show.c
6025 libudev-internal.la \
6026 libsystemd-internal.la \
6027 libsystemd-logs.la \
6028 libsystemd-journal-internal.la \
6029 libsystemd-shared.la
6031 rootbin_PROGRAMS += \
6034 dist_bashcompletion_DATA += \
6035 shell-completion/bash/loginctl
6037 dist_zshcompletion_DATA += \
6038 shell-completion/zsh/_loginctl \
6039 shell-completion/zsh/_systemd-inhibit
6041 systemd_inhibit_SOURCES = \
6044 systemd_inhibit_LDADD = \
6045 libsystemd-internal.la \
6046 libsystemd-shared.la
6048 rootbin_PROGRAMS += \
6051 test_login_SOURCES = \
6052 src/libsystemd/sd-login/test-login.c
6054 test_login_LDADD = \
6055 libsystemd-internal.la \
6056 libsystemd-shared.la
6058 test_login_shared_SOURCES = \
6059 src/login/test-login-shared.c
6061 test_login_shared_LDADD = \
6062 libsystemd-internal.la \
6063 libsystemd-shared.la
6065 test_inhibit_SOURCES = \
6066 src/login/test-inhibit.c
6068 test_inhibit_LDADD = \
6069 libsystemd-internal.la \
6070 libsystemd-shared.la
6072 test_login_tables_SOURCES = \
6073 src/login/test-login-tables.c
6075 test_login_tables_LDADD = \
6076 libsystemd-logind-core.la
6087 pam_systemd_la_SOURCES = \
6088 src/login/pam_systemd.sym \
6089 src/login/pam_systemd.c
6091 pam_systemd_la_CFLAGS = \
6096 pam_systemd_la_LDFLAGS = \
6102 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
6104 pam_systemd_la_LIBADD = \
6105 libsystemd-internal.la \
6106 libsystemd-shared.la \
6109 pamlib_LTLIBRARIES = \
6112 dist_pamconf_DATA = \
6113 src/login/systemd-user
6117 nodist_systemunit_DATA += \
6118 units/systemd-logind.service
6120 dist_systemunit_DATA += \
6123 dist_systemunit_DATA_busnames += \
6124 units/org.freedesktop.login1.busname
6126 dist_dbussystemservice_DATA += \
6127 src/login/org.freedesktop.login1.service
6129 dist_dbuspolicy_DATA += \
6130 src/login/org.freedesktop.login1.conf
6132 dist_pkgsysconf_DATA += \
6133 src/login/logind.conf
6135 polkitpolicy_files += \
6136 src/login/org.freedesktop.login1.policy
6141 MULTI_USER_TARGET_WANTS += \
6142 systemd-logind.service
6144 SYSTEM_UNIT_ALIASES += \
6145 systemd-logind.service dbus-org.freedesktop.login1.service
6147 BUSNAMES_TARGET_WANTS += \
6148 org.freedesktop.login1.busname
6150 dist_udevrules_DATA += \
6151 src/login/70-uaccess.rules \
6152 src/login/70-power-switch.rules
6154 nodist_udevrules_DATA += \
6155 src/login/71-seat.rules \
6156 src/login/73-seat-late.rules
6160 polkitpolicy_in_files += \
6161 src/login/org.freedesktop.login1.policy.in
6163 gperf_gperf_sources += \
6164 src/login/logind-gperf.gperf
6167 src/login/71-seat.rules.in \
6168 src/login/73-seat-late.rules.in \
6169 units/systemd-logind.service.in
6171 # ------------------------------------------------------------------------------
6174 systemd_user_sessions_SOURCES = \
6175 src/user-sessions/user-sessions.c
6177 systemd_user_sessions_LDADD = \
6178 libsystemd-shared.la
6180 rootlibexec_PROGRAMS += \
6181 systemd-user-sessions
6183 nodist_systemunit_DATA += \
6184 units/systemd-user-sessions.service
6186 MULTI_USER_TARGET_WANTS += \
6187 systemd-user-sessions.service
6192 units/systemd-user-sessions.service.in
6194 # ------------------------------------------------------------------------------
6196 if HAVE_PYTHON_DEVEL
6197 pkgpyexec_LTLIBRARIES = \
6204 _journal_la_SOURCES = \
6205 src/python-systemd/_journal.c
6207 _journal_la_CFLAGS = \
6209 -fvisibility=default \
6210 $(PYTHON_DEVEL_CFLAGS)
6212 _journal_la_LDFLAGS = \
6218 _journal_la_LIBADD = \
6219 $(PYTHON_DEVEL_LIBS) \
6222 id128_la_SOURCES = \
6223 src/python-systemd/id128.c \
6224 src/python-systemd/pyutil.c \
6225 src/python-systemd/pyutil.h
6227 nodist_id128_la_SOURCES = \
6228 src/python-systemd/id128-constants.h
6232 -fvisibility=default \
6233 $(PYTHON_DEVEL_CFLAGS) \
6234 -I$(top_builddir)/src/python-systemd
6236 id128_la_LDFLAGS = \
6243 $(PYTHON_DEVEL_LIBS) \
6244 libsystemd-shared.la \
6247 _daemon_la_SOURCES = \
6248 src/python-systemd/_daemon.c \
6249 src/python-systemd/pyutil.c \
6250 src/python-systemd/pyutil.h
6252 _daemon_la_CFLAGS = \
6254 -fvisibility=default \
6255 $(PYTHON_DEVEL_CFLAGS) \
6256 -I$(top_builddir)/src/python-systemd
6258 _daemon_la_LDFLAGS = \
6264 _daemon_la_LIBADD = \
6265 $(PYTHON_DEVEL_LIBS) \
6266 libsystemd-shared.la \
6269 _reader_la_SOURCES = \
6270 src/python-systemd/_reader.c \
6271 src/python-systemd/pyutil.c \
6272 src/python-systemd/pyutil.h
6274 _reader_la_CFLAGS = \
6276 -fvisibility=default \
6277 $(PYTHON_DEVEL_CFLAGS)
6279 _reader_la_LDFLAGS = \
6285 _reader_la_LIBADD = \
6286 $(PYTHON_DEVEL_LIBS) \
6287 libsystemd-shared.la \
6290 login_la_SOURCES = \
6291 src/python-systemd/login.c \
6292 src/python-systemd/pyutil.c \
6293 src/python-systemd/pyutil.h
6297 -fvisibility=default \
6298 $(PYTHON_DEVEL_CFLAGS)
6300 login_la_LDFLAGS = \
6307 $(PYTHON_DEVEL_LIBS) \
6308 libsystemd-shared.la \
6311 dist_pkgpyexec_PYTHON = \
6312 src/python-systemd/journal.py \
6313 src/python-systemd/daemon.py \
6314 src/python-systemd/__init__.py
6316 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
6317 $(AM_V_at)$(MKDIR_P) $(dir $@)
6318 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
6321 $(nodist_id128_la_SOURCES)
6323 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
6325 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
6326 $(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/
6327 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
6330 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
6331 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
6334 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
6335 $(MAKE) DESTDIR="$$dir" install && \
6336 $(MAKE) DESTDIR="$$dir" sphinx-html && \
6341 CLEAN_LOCAL_HOOKS += clean-sphinx
6343 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
6346 -rm -rf docs/html/python-systemd/
6348 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
6350 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
6351 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
6353 # ------------------------------------------------------------------------------
6354 if ENABLE_COMPAT_LIBS
6355 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
6356 $(AM_V_at)$(MKDIR_P) $(dir $@)
6357 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
6360 libsystemd-journal.c \
6361 libsystemd-login.c \
6362 libsystemd-id128.c \
6365 libsystemd_journal_la_SOURCES = \
6366 libsystemd-journal.c \
6367 src/compat-libs/libsystemd-journal.sym
6369 libsystemd_journal_la_CPPFLAGS = \
6371 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6373 libsystemd_journal_la_LDFLAGS = \
6375 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
6376 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
6378 libsystemd_journal_la_LIBADD = \
6379 libsystemd-journal-internal.la \
6380 libsystemd-internal.la \
6381 libsystemd-shared.la
6383 libsystemd_login_la_SOURCES = \
6384 libsystemd-login.c \
6385 src/compat-libs/libsystemd-login.sym
6387 libsystemd_login_la_CPPFLAGS = \
6389 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6391 libsystemd_login_la_LDFLAGS = \
6393 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
6394 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
6396 libsystemd_login_la_LIBADD = \
6397 libsystemd-internal.la \
6398 libsystemd-shared.la
6400 libsystemd_id128_la_SOURCES = \
6401 libsystemd-id128.c \
6402 src/compat-libs/libsystemd-id128.sym
6404 libsystemd_id128_la_CPPFLAGS = \
6406 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6408 libsystemd_id128_la_LDFLAGS = \
6410 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
6411 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
6413 libsystemd_id128_la_LIBADD = \
6414 libsystemd-internal.la \
6415 libsystemd-shared.la
6417 libsystemd_daemon_la_SOURCES = \
6418 libsystemd-daemon.c \
6419 src/compat-libs/libsystemd-daemon.sym
6421 libsystemd_daemon_la_CPPFLAGS = \
6423 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6425 libsystemd_daemon_la_LDFLAGS = \
6427 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
6428 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
6430 libsystemd_daemon_la_LIBADD = \
6431 libsystemd-internal.la \
6432 libsystemd-shared.la
6434 lib_LTLIBRARIES += \
6435 libsystemd-journal.la \
6436 libsystemd-login.la \
6437 libsystemd-id128.la \
6438 libsystemd-daemon.la
6440 pkgconfiglib_DATA += \
6441 src/compat-libs/libsystemd-journal.pc \
6442 src/compat-libs/libsystemd-login.pc \
6443 src/compat-libs/libsystemd-id128.pc \
6444 src/compat-libs/libsystemd-daemon.pc
6446 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
6447 compat-lib-install-hook:
6448 libname=libsystemd-login.so && $(move-to-rootlibdir)
6449 libname=libsystemd-journal.so && $(move-to-rootlibdir)
6450 libname=libsystemd-id128.so && $(move-to-rootlibdir)
6451 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
6453 compat-lib-uninstall-hook:
6454 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
6455 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
6456 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
6457 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
6459 INSTALL_EXEC_HOOKS += compat-lib-install-hook
6460 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
6464 src/compat-libs/linkwarning.h \
6465 src/compat-libs/libsystemd-journal.pc.in \
6466 src/compat-libs/libsystemd-login.pc.in \
6467 src/compat-libs/libsystemd-id128.pc.in \
6468 src/compat-libs/libsystemd-daemon.pc.in
6470 # ------------------------------------------------------------------------------
6472 '|rootlibexecdir=$(rootlibexecdir)|' \
6473 '|rootbindir=$(rootbindir)|' \
6474 '|bindir=$(bindir)|' \
6475 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6476 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6477 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6478 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6479 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6480 '|pkgdatadir=$(pkgdatadir)|' \
6481 '|systemunitdir=$(systemunitdir)|' \
6482 '|userunitdir=$(userunitdir)|' \
6483 '|systempresetdir=$(systempresetdir)|' \
6484 '|userpresetdir=$(userpresetdir)|' \
6485 '|udevhwdbdir=$(udevhwdbdir)|' \
6486 '|udevrulesdir=$(udevrulesdir)|' \
6487 '|catalogdir=$(catalogdir)|' \
6488 '|tmpfilesdir=$(tmpfilesdir)|' \
6489 '|sysusersdir=$(sysusersdir)|' \
6490 '|sysctldir=$(sysctldir)|' \
6491 '|systemgeneratordir=$(systemgeneratordir)|' \
6492 '|usergeneratordir=$(usergeneratordir)|' \
6493 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6494 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6495 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6496 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6497 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6498 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6499 '|prefix=$(prefix)|' \
6500 '|exec_prefix=$(exec_prefix)|' \
6501 '|libdir=$(libdir)|' \
6502 '|includedir=$(includedir)|' \
6503 '|VERSION=$(VERSION)|' \
6504 '|rootprefix=$(rootprefix)|' \
6505 '|udevlibexecdir=$(udevlibexecdir)|' \
6506 '|SUSHELL=$(SUSHELL)|' \
6507 '|SULOGIN=$(SULOGIN)|' \
6508 '|DEBUGTTY=$(DEBUGTTY)|' \
6511 '|MOUNT_PATH=$(MOUNT_PATH)|' \
6512 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
6513 '|MKDIR_P=$(MKDIR_P)|' \
6514 '|QUOTAON=$(QUOTAON)|' \
6515 '|QUOTACHECK=$(QUOTACHECK)|' \
6516 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6517 '|VARLOGDIR=$(varlogdir)|' \
6518 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6519 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6520 '|PYTHON=$(PYTHON)|' \
6521 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6522 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6523 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6524 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6525 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6526 '|TTY_GID=$(TTY_GID)|' \
6527 '|systemsleepdir=$(systemsleepdir)|' \
6528 '|binfmtdir=$(binfmtdir)|' \
6529 '|modulesloaddir=$(modulesloaddir)|'
6532 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6533 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6542 sysctl.d/%: sysctl.d/%.in
6551 src/core/macros.%: src/core/macros.%.in
6554 src/%.policy.in: src/%.policy.in.in
6557 shell-completion/%: shell-completion/%.in
6568 $(AM_V_GEN)chmod +x $@
6570 src/%.c: src/%.gperf
6571 $(AM_V_at)$(MKDIR_P) $(dir $@)
6572 $(AM_V_GPERF)$(GPERF) < $< > $@
6575 $(AM_V_at)$(MKDIR_P) $(dir $@)
6576 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6578 sysusers.d/%: sysusers.d/%.m4
6579 $(AM_V_at)$(MKDIR_P) $(dir $@)
6580 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6582 tmpfiles.d/%: tmpfiles.d/%.m4
6583 $(AM_V_at)$(MKDIR_P) $(dir $@)
6584 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6588 $(AM_V_at)$(MKDIR_P) $(dir $@)
6589 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6591 units/user/%: units/user/%.m4
6592 $(AM_V_at)$(MKDIR_P) $(dir $@)
6593 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6596 nodist_polkitpolicy_DATA = \
6597 $(polkitpolicy_files) \
6598 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6602 $(polkitpolicy_in_files) \
6603 $(polkitpolicy_in_in_files)
6605 # ------------------------------------------------------------------------------
6607 man/custom-entities.ent: configure.ac
6608 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6609 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6610 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6614 man/custom-entities.ent
6619 --stringparam man.output.quietly 1 \
6620 --stringparam funcsynopsis.style ansi \
6621 --stringparam man.authors.section.enabled 0 \
6622 --stringparam man.copyright.section.enabled 0 \
6623 --stringparam systemd.version $(VERSION) \
6624 --path '$(builddir)/man:$(srcdir)/man'
6626 XSLTPROC_PROCESS_MAN = \
6627 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6629 XSLTPROC_PROCESS_HTML = \
6630 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6632 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6633 $(XSLTPROC_PROCESS_MAN)
6635 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6636 $(XSLTPROC_PROCESS_MAN)
6638 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6639 $(XSLTPROC_PROCESS_MAN)
6641 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6642 $(XSLTPROC_PROCESS_MAN)
6644 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6645 $(XSLTPROC_PROCESS_MAN)
6647 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6648 $(XSLTPROC_PROCESS_HTML)
6651 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6657 man/custom-html.xsl \
6660 # ------------------------------------------------------------------------------
6663 docs/sysvinit/README
6668 docs/sysvinit/README: docs/sysvinit/README.in
6671 docs/var-log/README: docs/var-log/README.in
6675 docs/sysvinit/README \
6680 docs/sysvinit/README.in \
6681 docs/var-log/README.in
6683 SOCKETS_TARGET_WANTS += \
6684 systemd-initctl.socket
6688 MULTI_USER_TARGET_WANTS += \
6689 systemd-update-utmp-runlevel.service
6690 GRAPHICAL_TARGET_WANTS += \
6691 systemd-update-utmp-runlevel.service
6692 RESCUE_TARGET_WANTS += \
6693 systemd-update-utmp-runlevel.service
6696 SYSINIT_TARGET_WANTS += \
6697 systemd-update-utmp.service
6700 SYSINIT_TARGET_WANTS += \
6701 systemd-update-done.service
6703 LOCAL_FS_TARGET_WANTS += \
6704 systemd-remount-fs.service \
6706 var-lib-machines.mount
6708 MULTI_USER_TARGET_WANTS += \
6710 systemd-ask-password-wall.path
6712 SYSINIT_TARGET_WANTS += \
6713 dev-hugepages.mount \
6715 sys-kernel-config.mount \
6716 sys-kernel-debug.mount \
6717 sys-fs-fuse-connections.mount \
6718 systemd-sysctl.service \
6719 systemd-ask-password-console.path
6722 SYSTEM_UNIT_ALIASES += \
6723 poweroff.target runlevel0.target \
6724 rescue.target runlevel1.target \
6725 multi-user.target runlevel2.target \
6726 multi-user.target runlevel3.target \
6727 multi-user.target runlevel4.target \
6728 graphical.target runlevel5.target \
6729 reboot.target runlevel6.target
6732 SYSTEM_UNIT_ALIASES += \
6733 graphical.target default.target \
6734 reboot.target ctrl-alt-del.target \
6735 getty@.service autovt@.service
6737 USER_UNIT_ALIASES += \
6738 $(systemunitdir)/shutdown.target shutdown.target \
6739 $(systemunitdir)/sockets.target sockets.target \
6740 $(systemunitdir)/timers.target timers.target \
6741 $(systemunitdir)/paths.target paths.target \
6742 $(systemunitdir)/bluetooth.target bluetooth.target \
6743 $(systemunitdir)/printer.target printer.target \
6744 $(systemunitdir)/sound.target sound.target \
6745 $(systemunitdir)/smartcard.target smartcard.target
6748 USER_UNIT_ALIASES += \
6749 $(systemunitdir)/busnames.target busnames.target
6752 GENERAL_ALIASES += \
6753 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6754 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6755 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6756 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6760 $(systemunitdir)/runlevel1.target.wants \
6761 $(systemunitdir)/runlevel2.target.wants \
6762 $(systemunitdir)/runlevel3.target.wants \
6763 $(systemunitdir)/runlevel4.target.wants \
6764 $(systemunitdir)/runlevel5.target.wants
6768 $(prefix)/lib/modules-load.d \
6769 $(sysconfdir)/modules-load.d \
6770 $(prefix)/lib/systemd/network \
6771 $(sysconfdir)/systemd/network \
6772 $(prefix)/lib/sysctl.d \
6773 $(sysconfdir)/sysctl.d \
6774 $(prefix)/lib/kernel/install.d \
6775 $(sysconfdir)/kernel/install.d \
6776 $(systemshutdowndir) \
6778 $(systemgeneratordir) \
6779 $(usergeneratordir) \
6782 $(pkgsysconfdir)/system \
6783 $(pkgsysconfdir)/system/multi-user.target.wants \
6784 $(pkgsysconfdir)/system/getty.target.wants \
6785 $(pkgsysconfdir)/user \
6786 $(dbussessionservicedir) \
6787 $(sysconfdir)/xdg/systemd
6789 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6791 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6793 install-data-hook: $(INSTALL_DATA_HOOKS)
6795 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6797 clean-local: $(CLEAN_LOCAL_HOOKS)
6798 rm -rf $(abs_srcdir)/install-tree
6799 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6800 $(abs_srcdir)/hwdb/iab.txt
6802 DISTCHECK_CONFIGURE_FLAGS = \
6803 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6804 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6805 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6806 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6807 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6808 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6809 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6810 --with-rootprefix=$$dc_install_base \
6812 --enable-compat-libs
6815 DISTCHECK_CONFIGURE_FLAGS += \
6816 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6817 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6819 DISTCHECK_CONFIGURE_FLAGS += \
6820 --with-sysvinit-path= \
6821 --with-sysvrcnd-path=
6825 DISTCHECK_CONFIGURE_FLAGS += \
6830 DISTCHECK_CONFIGURE_FLAGS += \
6835 DISTCHECK_CONFIGURE_FLAGS += \
6838 DISTCHECK_CONFIGURE_FLAGS += \
6843 # Require python when making dist
6845 .PHONY: dist-check-python dist-check-compat-libs dist-check-help
6848 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6852 dist-check-compat-libs:
6853 if !ENABLE_COMPAT_LIBS
6854 @echo "*** compat-libs must be enabled in order to make dist"
6858 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6859 for i in $(abspath $^); do \
6860 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6861 echo "$(basename $$i) --help output is too wide:"; \
6862 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6866 dist: dist-check-python dist-check-compat-libs
6868 # check "broken" platforms limited toolchains for link breakage before we release
6871 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6875 ( cd $(top_srcdir)/hwdb && \
6876 wget -N http://www.linux-usb.org/usb.ids \
6877 http://pci-ids.ucw.cz/v2.2/pci.ids \
6878 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6879 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6882 .PHONY: kdbus-update
6884 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6885 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6889 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6891 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6893 upload: all check dist
6894 scp systemd-$(VERSION).tar.xz $(www_target)
6897 doc-sync: all destdir-sphinx
6898 gtkdoc-rebase --html-dir=docs/libudev/html --online
6899 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6900 gtkdoc-rebase --html-dir=docs/gudev/html --online
6901 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6902 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6903 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6907 scp man/*.html gardel:public/systemd-man/
6909 .PHONY: lennart-fedora
6911 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6913 .PHONY: install-tree
6915 rm -rf $(abs_srcdir)/install-tree
6916 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6917 tree $(abs_srcdir)/install-tree
6919 # Let's run all tests of the test suite, but under valgrind. Let's
6920 # exclude the one perl script we have in there
6921 .PHONY: valgrind-tests
6922 valgrind-tests: $(TESTS)
6923 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6924 if file $$f | grep -q shell; then \
6925 echo -e "$${x}Skipping non-binary $$f"; else \
6926 echo -e "$${x}Running $$f"; \
6927 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6932 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6934 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6935 $(AM_V_GEN)cat $^ > $@
6937 .PHONY: check-api-docs
6938 check-api-docs: exported man
6939 $(AM_V_GEN)for symbol in `cat exported` ; do \
6940 if test -f $(builddir)/man/$$symbol.html ; then \
6941 echo " Symbol $$symbol() is documented." ; \
6943 echo "‣ Symbol $$symbol() lacks documentation." ; \
6947 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6948 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6950 undefined defined: $(ALL_OBJECTS)
6951 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6952 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6953 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6959 .PHONY: check-api-unused
6960 check-api-unused: defined undefined exported
6961 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6963 .PHONY: check-includes
6964 check-includes: $(top_srcdir)/tools/check-includes.pl
6965 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6966 | xargs $(top_srcdir)/tools/check-includes.pl
6969 $(top_srcdir)/tools/check-includes.pl
6971 # Stupid test that everything purported to be exported really is
6972 define generate-sym-test
6973 $(AM_V_at)$(MKDIR_P) $(dir $@)
6974 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6975 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6976 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6977 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6978 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6979 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6980 $(AM_V_at)printf 'return 0; }\n' >> $@
6983 test-libsystemd-sym.c: \
6984 $(top_builddir)/src/libsystemd/libsystemd.sym \
6985 src/systemd/sd-journal.h \
6986 src/systemd/sd-daemon.h \
6987 src/systemd/sd-login.h \
6988 src/systemd/sd-bus.h \
6989 src/systemd/sd-utf8.h \
6990 src/systemd/sd-resolve.h \
6991 src/systemd/sd-path.h \
6992 src/systemd/sd-event.h
6993 $(generate-sym-test)
6995 test-libudev-sym.c: \
6996 src/libudev/libudev.sym \
6998 $(generate-sym-test)
7000 test_libsystemd_sym_SOURCES = \
7001 test-libsystemd-sym.c
7002 test_libsystemd_sym_LDADD = \
7005 test_libudev_sym_SOURCES = \
7007 test_libudev_sym_CFLAGS = \
7009 -Wno-deprecated-declarations
7010 test_libudev_sym_LDADD = \
7014 $(test_libsystemd_sym_SOURCES) \
7015 $(test_libudev_sym_SOURCES)
7018 test-libsystemd-sym \
7023 cppcheck --enable=all -q $(top_srcdir)
7025 # Used to extract compile flags for YCM.
7030 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
7033 tools/gdb-sd_dump_hashmaps.py
7036 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
7039 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -