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
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
46 LIBSYSTEMD_LOGIN_CURRENT=9
47 LIBSYSTEMD_LOGIN_REVISION=3
48 LIBSYSTEMD_LOGIN_AGE=9
50 LIBSYSTEMD_DAEMON_CURRENT=0
51 LIBSYSTEMD_DAEMON_REVISION=12
52 LIBSYSTEMD_DAEMON_AGE=0
54 LIBSYSTEMD_ID128_CURRENT=0
55 LIBSYSTEMD_ID128_REVISION=28
56 LIBSYSTEMD_ID128_AGE=0
58 LIBSYSTEMD_JOURNAL_CURRENT=11
59 LIBSYSTEMD_JOURNAL_REVISION=5
60 LIBSYSTEMD_JOURNAL_AGE=11
66 # Dirs of external packages
67 dbuspolicydir=@dbuspolicydir@
68 dbussessionservicedir=@dbussessionservicedir@
69 dbussystemservicedir=@dbussystemservicedir@
71 pamconfdir=@pamconfdir@
72 pkgconfigdatadir=$(datadir)/pkgconfig
73 pkgconfiglibdir=$(libdir)/pkgconfig
74 polkitpolicydir=$(datadir)/polkit-1/actions
75 bashcompletiondir=@bashcompletiondir@
76 zshcompletiondir=@zshcompletiondir@
77 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
78 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
79 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
80 varlogdir=$(localstatedir)/log
81 systemdstatedir=$(localstatedir)/lib/systemd
82 catalogstatedir=$(systemdstatedir)/catalog
84 # Our own, non-special dirs
85 pkgsysconfdir=$(sysconfdir)/systemd
86 userunitdir=$(prefix)/lib/systemd/user
87 userpresetdir=$(prefix)/lib/systemd/user-preset
88 tmpfilesdir=$(prefix)/lib/tmpfiles.d
89 sysctldir=$(prefix)/lib/sysctl.d
90 networkdir=$(rootprefix)/lib/systemd/network
91 pkgincludedir=$(includedir)/systemd
92 systemgeneratordir=$(rootlibexecdir)/system-generators
93 usergeneratordir=$(prefix)/lib/systemd/user-generators
94 systemshutdowndir=$(rootlibexecdir)/system-shutdown
95 systemsleepdir=$(rootlibexecdir)/system-sleep
96 systemunitdir=$(rootprefix)/lib/systemd/system
97 systempresetdir=$(rootprefix)/lib/systemd/system-preset
98 udevlibexecdir=$(rootprefix)/lib/udev
99 udevhomedir=$(udevlibexecdir)
100 udevrulesdir=$(udevlibexecdir)/rules.d
101 udevhwdbdir=$(udevlibexecdir)/hwdb.d
102 catalogdir=$(prefix)/lib/systemd/catalog
103 kernelinstalldir = $(prefix)/lib/kernel/install.d
104 ntpunitsdir=$(prefix)/lib/systemd/ntp-units.d
106 # And these are the special ones for /
107 rootprefix=@rootprefix@
108 rootbindir=$(rootprefix)/bin
109 rootlibexecdir=$(rootprefix)/lib/systemd
111 CLEANFILES = $(BUILT_SOURCES)
116 UNINSTALL_EXEC_HOOKS =
118 UNINSTALL_DATA_HOOKS =
119 DISTCLEAN_LOCAL_HOOKS =
127 polkitpolicy_in_in_files =
128 polkitpolicy_in_files =
130 dist_udevrules_DATA =
131 nodist_udevrules_DATA =
132 nodist_pkgsysconf_DATA =
133 dist_pkgsysconf_DATA =
135 dist_dbuspolicy_DATA =
136 dist_dbussystemservice_DATA =
142 noinst_PROGRAMS = $(manual_tests) $(tests)
148 udevlibexec_PROGRAMS =
150 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
151 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
152 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
155 -include $(top_builddir)/config.h \
156 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
157 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
158 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
159 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
160 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
161 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
162 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
163 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
164 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
165 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
166 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
167 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
168 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
169 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
170 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
171 -DROOTPREFIX=\"$(rootprefix)\" \
172 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
173 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
174 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
175 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
176 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
177 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
178 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
179 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
180 -DX_SERVER=\"$(bindir)/X\" \
181 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
182 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
183 -DQUOTACHECK=\"$(QUOTACHECK)\" \
184 -DKEXEC=\"$(KEXEC)\" \
185 -I $(top_srcdir)/src \
186 -I $(top_builddir)/src/shared \
187 -I $(top_srcdir)/src/shared \
188 -I $(top_srcdir)/src/network \
189 -I $(top_srcdir)/src/login \
190 -I $(top_srcdir)/src/journal \
191 -I $(top_srcdir)/src/timedate \
192 -I $(top_srcdir)/src/timesync \
193 -I $(top_srcdir)/src/resolve \
194 -I $(top_srcdir)/src/systemd \
195 -I $(top_builddir)/src/core \
196 -I $(top_srcdir)/src/core \
197 -I $(top_srcdir)/src/libudev \
198 -I $(top_srcdir)/src/udev \
199 -I $(top_srcdir)/src/udev/net \
200 -I $(top_builddir)/src/udev \
201 -I $(top_srcdir)/src/libsystemd/sd-bus \
202 -I $(top_srcdir)/src/libsystemd/sd-event \
203 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
204 -I $(top_srcdir)/src/libsystemd-network \
207 AM_CFLAGS = $(OUR_CFLAGS)
208 AM_LDFLAGS = $(OUR_LDFLAGS)
210 # ------------------------------------------------------------------------------
211 define move-to-rootlibdir
212 if test "$(libdir)" != "$(rootlibdir)"; then \
213 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
214 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
215 rm -f $(DESTDIR)$(libdir)/$$libname && \
216 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
217 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
223 RUNLEVEL1_TARGET_WANTS =
224 RUNLEVEL2_TARGET_WANTS =
225 RUNLEVEL3_TARGET_WANTS =
226 RUNLEVEL4_TARGET_WANTS =
227 RUNLEVEL5_TARGET_WANTS =
228 SHUTDOWN_TARGET_WANTS =
229 LOCAL_FS_TARGET_WANTS =
230 MULTI_USER_TARGET_WANTS =
231 SYSINIT_TARGET_WANTS =
232 SOCKETS_TARGET_WANTS =
233 BUSNAMES_TARGET_WANTS =
234 TIMERS_TARGET_WANTS =
235 USER_SOCKETS_TARGET_WANTS =
236 USER_BUSNAMES_TARGET_WANTS =
238 SYSTEM_UNIT_ALIASES =
242 install-target-wants-hook:
243 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
244 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
245 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
246 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
247 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
248 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
249 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
254 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
255 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
256 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
257 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
260 [ -z "$$what" ] || ( \
261 dir=$(DESTDIR)$$dir/$$wants.wants && \
262 $(MKDIR_P) -m 0755 $$dir && \
265 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
268 install-directories-hook:
269 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
271 install-aliases-hook:
272 set -- $(SYSTEM_UNIT_ALIASES) && \
273 dir=$(systemunitdir) && $(install-aliases)
274 set -- $(USER_UNIT_ALIASES) && \
275 dir=$(userunitdir) && $(install-relative-aliases)
276 set -- $(GENERAL_ALIASES) && \
277 dir= && $(install-relative-aliases)
279 define install-aliases
280 while [ -n "$$1" ]; do \
281 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
282 rm -f $(DESTDIR)$$dir/$$2 && \
283 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
284 shift 2 || exit $$?; \
288 define install-relative-aliases
289 while [ -n "$$1" ]; do \
290 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
291 rm -f $(DESTDIR)$$dir/$$2 && \
292 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
293 shift 2 || exit $$?; \
297 INSTALL_EXEC_HOOKS += \
298 install-target-wants-hook \
299 install-directories-hook \
302 # ------------------------------------------------------------------------------
303 AM_V_M4 = $(AM_V_M4_$(V))
304 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
305 AM_V_M4_0 = @echo " M4 " $@;
307 AM_V_XSLT = $(AM_V_XSLT_$(V))
308 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
309 AM_V_XSLT_0 = @echo " XSLT " $@;
311 AM_V_GPERF = $(AM_V_GPERF_$(V))
312 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
313 AM_V_GPERF_0 = @echo " GPERF " $@;
315 AM_V_LN = $(AM_V_LN_$(V))
316 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
317 AM_V_LN_0 = @echo " LN " $@;
319 AM_V_RM = $(AM_V_RM_$(V))
320 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
321 AM_V_RM_0 = @echo " RM " $@;
323 # ------------------------------------------------------------------------------
327 systemd-ask-password \
328 systemd-tty-ask-password-agent \
329 systemd-machine-id-setup
335 systemd-detect-virt \
341 src/kernel-install/kernel-install
343 dist_kernelinstall_SCRIPTS = \
344 src/kernel-install/50-depmod.install \
345 src/kernel-install/90-loaderentry.install
347 rootlibexec_PROGRAMS = \
349 systemd-cgroups-agent \
351 systemd-update-utmp \
355 systemd-reply-password \
361 systemd-socket-proxyd
363 systemgenerator_PROGRAMS = \
364 systemd-getty-generator \
365 systemd-fstab-generator \
366 systemd-system-update-generator
368 dist_bashcompletion_DATA = \
369 shell-completion/bash/busctl \
370 shell-completion/bash/journalctl \
371 shell-completion/bash/systemctl \
372 shell-completion/bash/systemd-analyze \
373 shell-completion/bash/systemd-cat \
374 shell-completion/bash/systemd-cgls \
375 shell-completion/bash/systemd-cgtop \
376 shell-completion/bash/systemd-delta \
377 shell-completion/bash/systemd-detect-virt \
378 shell-completion/bash/systemd-nspawn \
379 shell-completion/bash/systemd-run \
380 shell-completion/bash/udevadm \
381 shell-completion/bash/kernel-install
383 dist_zshcompletion_DATA = \
384 shell-completion/zsh/_systemctl \
385 shell-completion/zsh/_journalctl \
386 shell-completion/zsh/_udevadm \
387 shell-completion/zsh/_kernel-install \
388 shell-completion/zsh/_systemd-nspawn \
389 shell-completion/zsh/_systemd-analyze \
390 shell-completion/zsh/_systemd-run \
391 shell-completion/zsh/_sd_hosts_or_user_at_host \
392 shell-completion/zsh/_systemd-delta \
393 shell-completion/zsh/_systemd
396 sysctl.d/50-default.conf
398 dist_systemunit_DATA = \
399 units/graphical.target \
400 units/multi-user.target \
401 units/emergency.service \
402 units/emergency.target \
403 units/sysinit.target \
408 units/local-fs.target \
409 units/local-fs-pre.target \
410 units/initrd.target \
411 units/initrd-fs.target \
412 units/initrd-root-fs.target \
413 units/remote-fs.target \
414 units/remote-fs-pre.target \
415 units/network.target \
416 units/network-online.target \
417 units/nss-lookup.target \
418 units/nss-user-lookup.target \
419 units/hibernate.target \
420 units/hybrid-sleep.target \
421 units/poweroff.target \
422 units/reboot.target \
423 units/rescue.target \
424 units/rpcbind.target \
425 units/time-sync.target \
426 units/shutdown.target \
428 units/umount.target \
429 units/sigpwr.target \
431 units/sockets.target \
432 units/busnames.target \
433 units/timers.target \
435 units/suspend.target \
437 units/slices.target \
440 units/systemd-initctl.socket \
441 units/systemd-shutdownd.socket \
442 units/syslog.socket \
443 units/dev-hugepages.mount \
444 units/dev-mqueue.mount \
445 units/sys-kernel-config.mount \
446 units/sys-kernel-debug.mount \
447 units/sys-fs-fuse-connections.mount \
449 units/printer.target \
451 units/bluetooth.target \
452 units/smartcard.target \
453 units/systemd-ask-password-wall.path \
454 units/systemd-ask-password-console.path \
455 units/systemd-udevd-control.socket \
456 units/systemd-udevd-kernel.socket \
457 units/system-update.target \
458 units/initrd-switch-root.target
460 nodist_systemunit_DATA = \
461 units/getty@.service \
462 units/serial-getty@.service \
463 units/console-shell.service \
464 units/console-getty.service \
465 units/container-getty@.service \
466 units/systemd-initctl.service \
467 units/systemd-shutdownd.service \
468 units/systemd-remount-fs.service \
469 units/systemd-update-utmp.service \
470 units/systemd-update-utmp-runlevel.service \
471 units/systemd-ask-password-wall.service \
472 units/systemd-ask-password-console.service \
473 units/systemd-sysctl.service \
474 units/emergency.service \
475 units/rescue.service \
476 units/user@.service \
477 units/systemd-hibernate.service \
478 units/systemd-hybrid-sleep.service \
479 units/systemd-suspend.service \
480 units/systemd-halt.service \
481 units/systemd-poweroff.service \
482 units/systemd-reboot.service \
483 units/systemd-kexec.service \
484 units/systemd-fsck@.service \
485 units/systemd-fsck-root.service \
486 units/systemd-udevd.service \
487 units/systemd-udev-trigger.service \
488 units/systemd-udev-settle.service \
489 units/debug-shell.service \
490 units/initrd-parse-etc.service \
491 units/initrd-cleanup.service \
492 units/initrd-udevadm-cleanup-db.service \
493 units/initrd-switch-root.service \
494 units/systemd-nspawn@.service
496 dist_userunit_DATA = \
497 units/user/basic.target \
498 units/user/default.target \
499 units/user/exit.target
501 nodist_userunit_DATA = \
502 units/user/systemd-exit.service
505 units/getty@.service.m4 \
506 units/serial-getty@.service.m4 \
507 units/console-shell.service.m4.in \
508 units/console-getty.service.m4.in \
509 units/container-getty@.service.m4.in \
510 units/rescue.service.m4.in \
511 units/systemd-initctl.service.in \
512 units/systemd-shutdownd.service.in \
513 units/systemd-remount-fs.service.in \
514 units/systemd-update-utmp.service.in \
515 units/systemd-update-utmp-runlevel.service.in \
516 units/systemd-ask-password-wall.service.in \
517 units/systemd-ask-password-console.service.in \
518 units/systemd-sysctl.service.in \
519 units/emergency.service.in \
520 units/systemd-halt.service.in \
521 units/systemd-poweroff.service.in \
522 units/systemd-reboot.service.in \
523 units/systemd-kexec.service.in \
524 units/user/systemd-exit.service.in \
525 units/systemd-fsck@.service.in \
526 units/systemd-fsck-root.service.in \
527 units/user@.service.in \
528 units/debug-shell.service.in \
529 units/systemd-hibernate.service.in \
530 units/systemd-hybrid-sleep.service.in \
531 units/systemd-suspend.service.in \
532 units/quotaon.service.in \
533 units/initrd-parse-etc.service.in \
534 units/initrd-cleanup.service.in \
535 units/initrd-udevadm-cleanup-db.service.in \
536 units/initrd-switch-root.service.in \
537 units/systemd-nspawn@.service.in
540 units/console-shell.service.m4 \
541 units/console-getty.service.m4 \
542 units/container-getty@.service.m4 \
543 units/rescue.service.m4 \
544 units/user@.service.m4
547 nodist_systemunit_DATA += \
548 units/rc-local.service \
549 units/halt-local.service
551 systemgenerator_PROGRAMS += \
552 systemd-sysv-generator \
553 systemd-rc-local-generator
557 units/rc-local.service.in \
558 units/halt-local.service.in
560 # automake is broken and can't handle files with a dash in front
561 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
563 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
565 units-uninstall-hook:
566 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
568 INSTALL_DATA_HOOKS += units-install-hook
569 UNINSTALL_DATA_HOOKS += units-uninstall-hook
578 src/libsystemd/sd-bus/PORTING-DBUS1 \
579 src/libsystemd/sd-bus/DIFFERENCES \
580 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
582 @INTLTOOL_POLICY_RULE@
584 # ------------------------------------------------------------------------------
589 include Makefile-man.am
591 .PHONY: man update-man-list
592 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
595 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
597 ${XML_FILES:.xml=.html}
599 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
616 $(AM_V_at)$(MKDIR_P) $(dir $@)
617 $(AM_V_LN)$(LN_S) -f ../../man $@
626 man/index.html: man/systemd.index.html
627 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
635 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
636 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
637 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
639 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
640 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
641 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
642 @echo "Makefile-man.am has been regenerated"
644 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
645 $(AM_V_at)$(MKDIR_P) $(dir $@)
646 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
648 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
649 $(AM_V_at)$(MKDIR_P) $(dir $@)
650 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
653 man/systemd.index.xml \
655 man/systemd.directives.xml
658 man/systemd.index.xml \
659 man/systemd.directives.xml
670 tools/make-man-index.py \
671 tools/make-directive-index.py \
672 tools/make-man-rules.py \
675 # ------------------------------------------------------------------------------
676 noinst_LTLIBRARIES += \
679 libsystemd_shared_la_SOURCES = \
680 src/shared/linux/auto_dev-ioctl.h \
681 src/shared/linux/fanotify.h \
682 src/shared/ioprio.h \
683 src/shared/missing.h \
684 src/shared/initreq.h \
685 src/shared/securebits.h \
686 src/shared/special.h \
690 src/shared/sparse-endian.h \
691 src/shared/refcnt.h \
692 src/shared/udev-util.h \
693 src/shared/bus-errors.h \
694 src/shared/device-nodes.c \
695 src/shared/device-nodes.h \
700 src/shared/architecture.c \
701 src/shared/architecture.h \
702 src/shared/efivars.c \
703 src/shared/efivars.h \
704 src/shared/path-util.c \
705 src/shared/path-util.h \
706 src/shared/time-util.c \
707 src/shared/time-util.h \
708 src/shared/hashmap.c \
709 src/shared/hashmap.h \
710 src/shared/siphash24.c \
711 src/shared/siphash24.h \
718 src/shared/sleep-config.c \
719 src/shared/sleep-config.h \
722 src/shared/env-util.c \
723 src/shared/env-util.h \
724 src/shared/strbuf.c \
725 src/shared/strbuf.h \
726 src/shared/strxcpyx.c \
727 src/shared/strxcpyx.h \
728 src/shared/conf-parser.c \
729 src/shared/conf-parser.h \
732 src/shared/ratelimit.h \
733 src/shared/ratelimit.c \
734 src/shared/exit-status.c \
735 src/shared/exit-status.h \
738 src/shared/gunicode.c \
739 src/shared/gunicode.h \
742 src/shared/socket-util.c \
743 src/shared/socket-util.h \
744 src/shared/conf-files.c \
745 src/shared/conf-files.h \
746 src/shared/cgroup-util.c \
747 src/shared/cgroup-util.h \
748 src/shared/cgroup-show.c \
749 src/shared/cgroup-show.h \
750 src/shared/unit-name.c \
751 src/shared/unit-name.h \
752 src/shared/utmp-wtmp.c \
753 src/shared/utmp-wtmp.h \
754 src/shared/watchdog.c \
755 src/shared/watchdog.h \
756 src/shared/spawn-ask-password-agent.c \
757 src/shared/spawn-ask-password-agent.h \
758 src/shared/replace-var.c \
759 src/shared/replace-var.h \
760 src/shared/spawn-polkit-agent.c \
761 src/shared/spawn-polkit-agent.h \
762 src/shared/clock-util.c \
763 src/shared/clock-util.h \
764 src/shared/time-dst.c \
765 src/shared/time-dst.h \
766 src/shared/calendarspec.c \
767 src/shared/calendarspec.h \
768 src/shared/fileio.c \
769 src/shared/fileio.h \
770 src/shared/output-mode.h \
771 src/shared/MurmurHash2.c \
772 src/shared/MurmurHash2.h \
773 src/shared/acpi-fpdt.h \
774 src/shared/acpi-fpdt.c \
775 src/shared/boot-timestamps.h \
776 src/shared/boot-timestamps.c \
779 src/shared/smack-util.c \
780 src/shared/smack-util.h \
781 src/shared/apparmor-util.c \
782 src/shared/apparmor-util.h \
783 src/shared/ima-util.c \
784 src/shared/ima-util.h \
785 src/shared/ptyfwd.c \
786 src/shared/ptyfwd.h \
787 src/shared/errno-list.c \
788 src/shared/errno-list.h \
789 src/shared/af-list.c \
790 src/shared/af-list.h \
795 src/shared/condition-util.c \
796 src/shared/condition-util.h \
797 src/shared/bus-label.c \
798 src/shared/bus-label.h \
800 src/shared/generator.h \
801 src/shared/generator.c \
802 src/shared/clean-ipc.h \
803 src/shared/clean-ipc.c \
804 src/shared/login-shared.c \
805 src/shared/login-shared.h \
810 src/shared/eventfd-util.c \
811 src/shared/eventfd-util.h \
815 nodist_libsystemd_shared_la_SOURCES = \
816 src/shared/errno-from-name.h \
817 src/shared/errno-to-name.h \
818 src/shared/af-from-name.h \
819 src/shared/af-to-name.h
821 libsystemd_shared_la_CFLAGS = \
825 # ------------------------------------------------------------------------------
826 noinst_LTLIBRARIES += \
829 libsystemd_units_la_SOURCES = \
830 src/shared/install.c \
831 src/shared/install.h \
832 src/shared/install-printf.c \
833 src/shared/install-printf.h \
834 src/shared/path-lookup.c \
835 src/shared/path-lookup.h \
836 src/shared/specifier.c \
837 src/shared/specifier.h
839 # ------------------------------------------------------------------------------
840 noinst_LTLIBRARIES += \
843 libsystemd_label_la_SOURCES = \
844 src/shared/socket-label.c \
847 src/shared/selinux-util.c \
848 src/shared/selinux-util.h \
849 src/shared/mkdir-label.c \
850 src/shared/ask-password-api.c \
851 src/shared/ask-password-api.h \
852 src/shared/fileio-label.c \
853 src/shared/fileio-label.h \
854 src/shared/dev-setup.c \
855 src/shared/dev-setup.h
857 libsystemd_label_la_CFLAGS = \
861 libsystemd_label_la_LIBADD = \
864 # ------------------------------------------------------------------------------
867 noinst_LTLIBRARIES += \
868 libsystemd-seccomp.la
870 libsystemd_seccomp_la_SOURCES = \
871 src/shared/seccomp-util.h \
872 src/shared/seccomp-util.c
874 libsystemd_seccomp_la_CFLAGS = \
878 libsystemd_seccomp_la_LIBADD = \
882 # ------------------------------------------------------------------------------
883 noinst_LTLIBRARIES += \
886 libsystemd_logs_la_SOURCES = \
887 src/shared/logs-show.c \
888 src/shared/logs-show.h
890 # ------------------------------------------------------------------------------
891 noinst_LTLIBRARIES += \
892 libsystemd-capability.la
894 libsystemd_capability_la_SOURCES = \
895 src/shared/capability.c \
896 src/shared/capability.h
898 libsystemd_capability_la_CFLAGS = \
902 libsystemd_capability_la_LIBADD = \
905 # ------------------------------------------------------------------------------
907 noinst_LTLIBRARIES += \
910 libsystemd_acl_la_SOURCES = \
911 src/shared/acl-util.c \
912 src/shared/acl-util.h
914 libsystemd_acl_la_CFLAGS = \
918 libsystemd_acl_la_LIBADD = \
922 # ------------------------------------------------------------------------------
923 noinst_LTLIBRARIES += \
926 libsystemd_core_la_SOURCES = \
929 src/core/unit-printf.c \
930 src/core/unit-printf.h \
935 src/core/transaction.c \
936 src/core/transaction.h \
937 src/core/load-fragment.c \
938 src/core/load-fragment.h \
947 src/core/snapshot.c \
948 src/core/snapshot.h \
953 src/core/automount.c \
954 src/core/automount.h \
965 src/core/load-dropin.c \
966 src/core/load-dropin.h \
973 src/core/dbus-manager.c \
974 src/core/dbus-manager.h \
975 src/core/dbus-unit.c \
976 src/core/dbus-unit.h \
977 src/core/dbus-job.c \
978 src/core/dbus-job.h \
979 src/core/dbus-service.c \
980 src/core/dbus-service.h \
981 src/core/dbus-socket.c \
982 src/core/dbus-socket.h \
983 src/core/dbus-busname.c \
984 src/core/dbus-busname.h \
985 src/core/dbus-target.c \
986 src/core/dbus-target.h \
987 src/core/dbus-snapshot.c \
988 src/core/dbus-snapshot.h \
989 src/core/dbus-device.c \
990 src/core/dbus-device.h \
991 src/core/dbus-mount.c \
992 src/core/dbus-mount.h \
993 src/core/dbus-automount.c \
994 src/core/dbus-automount.h \
995 src/core/dbus-swap.c \
996 src/core/dbus-swap.h \
997 src/core/dbus-timer.c \
998 src/core/dbus-timer.h \
999 src/core/dbus-path.c \
1000 src/core/dbus-path.h \
1001 src/core/dbus-slice.c \
1002 src/core/dbus-slice.h \
1003 src/core/dbus-scope.c \
1004 src/core/dbus-scope.h \
1005 src/core/dbus-execute.c \
1006 src/core/dbus-execute.h \
1007 src/core/dbus-kill.c \
1008 src/core/dbus-kill.h \
1009 src/core/dbus-cgroup.c \
1010 src/core/dbus-cgroup.h \
1013 src/core/selinux-access.c \
1014 src/core/selinux-access.h \
1015 src/core/selinux-setup.c \
1016 src/core/selinux-setup.h \
1017 src/core/smack-setup.c \
1018 src/core/smack-setup.h \
1019 src/core/ima-setup.c \
1020 src/core/ima-setup.h \
1021 src/core/locale-setup.h \
1022 src/core/locale-setup.c \
1023 src/core/hostname-setup.c \
1024 src/core/hostname-setup.h \
1025 src/core/machine-id-setup.c \
1026 src/core/machine-id-setup.h \
1027 src/core/mount-setup.c \
1028 src/core/mount-setup.h \
1029 src/core/loopback-setup.h \
1030 src/core/loopback-setup.c \
1031 src/core/condition.c \
1032 src/core/condition.h \
1033 src/core/namespace.c \
1034 src/core/namespace.h \
1036 src/core/sysfs-show.h \
1037 src/core/switch-root.h \
1038 src/core/switch-root.c \
1039 src/core/killall.h \
1040 src/core/killall.c \
1041 src/core/audit-fd.c \
1042 src/core/audit-fd.h \
1043 src/core/show-status.c \
1044 src/core/show-status.h
1047 libsystemd_core_la_SOURCES += \
1048 src/core/kmod-setup.c \
1049 src/core/kmod-setup.h
1052 nodist_libsystemd_core_la_SOURCES = \
1053 src/core/load-fragment-gperf.c \
1054 src/core/load-fragment-gperf-nulstr.c
1056 libsystemd_core_la_CFLAGS = \
1062 $(APPARMOR_CFLAGS) \
1066 libsystemd_core_la_LIBADD = \
1067 libsystemd-capability.la \
1068 libsystemd-units.la \
1069 libsystemd-label.la \
1070 libudev-internal.la \
1071 libsystemd-shared.la \
1072 libsystemd-internal.la \
1081 libsystemd_core_la_LIBADD += \
1082 libsystemd-seccomp.la
1085 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1086 $(AM_V_at)$(MKDIR_P) $(dir $@)
1087 $(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 ";" }' < $< > $@
1090 src/core/load-fragment-gperf.gperf.m4
1093 src/core/load-fragment-gperf.gperf \
1094 src/core/load-fragment-gperf.c \
1095 src/core/load-fragment-gperf-nulstr.c \
1096 src/shared/errno-list.txt \
1097 src/shared/errno-from-name.gperf \
1098 src/shared/af-list.txt \
1099 src/shared/af-from-name.gperf
1102 src/shared/errno-from-name.h \
1103 src/shared/errno-to-name.h \
1104 src/shared/af-from-name.h \
1105 src/shared/af-to-name.h
1107 src/shared/errno-list.txt:
1108 $(AM_V_at)$(MKDIR_P) $(dir $@)
1109 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1111 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1112 $(AM_V_at)$(MKDIR_P) $(dir $@)
1113 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1115 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1116 $(AM_V_at)$(MKDIR_P) $(dir $@)
1117 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1119 src/shared/errno-to-name.h: src/shared/errno-list.txt
1120 $(AM_V_at)$(MKDIR_P) $(dir $@)
1121 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1123 src/shared/af-list.txt:
1124 $(AM_V_at)$(MKDIR_P) $(dir $@)
1125 $(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; }' > $@
1127 src/shared/af-from-name.gperf: src/shared/af-list.txt
1128 $(AM_V_at)$(MKDIR_P) $(dir $@)
1129 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1131 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1132 $(AM_V_at)$(MKDIR_P) $(dir $@)
1133 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1135 src/shared/af-to-name.h: src/shared/af-list.txt
1136 $(AM_V_at)$(MKDIR_P) $(dir $@)
1137 $(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 "};"}' < $< > $@
1139 # ------------------------------------------------------------------------------
1148 libsystemd-core.la \
1151 dist_pkgsysconf_DATA += \
1152 src/core/system.conf \
1155 dist_dbuspolicy_DATA += \
1156 src/core/org.freedesktop.systemd1.conf
1158 dist_dbussystemservice_DATA += \
1159 src/core/org.freedesktop.systemd1.service
1161 polkitpolicy_in_in_files += \
1162 src/core/org.freedesktop.systemd1.policy.in.in
1164 pkgconfigdata_DATA = \
1167 nodist_rpmmacros_DATA = \
1168 src/core/macros.systemd
1171 src/core/systemd.pc.in \
1172 src/core/macros.systemd.in
1175 src/core/macros.systemd \
1176 src/core/org.freedesktop.systemd1.policy.in
1178 # ------------------------------------------------------------------------------
1217 test-strip-tab-ansi \
1230 test/sched_idle_bad.service \
1231 test/sched_idle_ok.service \
1232 test/sched_rr_bad.service \
1233 test/sched_rr_ok.service \
1234 test/sched_rr_change.service \
1236 test/daughter.service \
1240 src/test/test-helper.h
1242 test_device_nodes_SOURCES = \
1243 src/test/test-device-nodes.c
1245 test_device_nodes_LDADD = \
1246 libsystemd-shared.la
1248 test_engine_SOURCES = \
1249 src/test/test-engine.c
1251 test_engine_CFLAGS = \
1255 test_engine_LDADD = \
1256 libsystemd-core.la \
1259 test_job_type_SOURCES = \
1260 src/test/test-job-type.c
1262 test_job_type_CFLAGS = \
1266 test_job_type_LDADD = \
1267 libsystemd-core.la \
1280 test_loopback_SOURCES = \
1281 src/test/test-loopback.c
1283 test_loopback_LDADD = \
1286 test_hostname_SOURCES = \
1287 src/test/test-hostname.c
1289 test_hostname_LDADD = \
1296 test_boot_timestamp_SOURCES = \
1297 src/test/test-boot-timestamps.c
1299 test_boot_timestamp_LDADD = \
1300 libsystemd-shared.la
1303 test_unit_name_SOURCES = \
1304 src/test/test-unit-name.c
1306 test_unit_name_CFLAGS = \
1310 test_unit_name_LDADD = \
1311 libsystemd-core.la \
1314 test_unit_file_SOURCES = \
1315 src/test/test-unit-file.c
1317 test_unit_file_CFLAGS = \
1321 test_unit_file_LDADD = \
1322 libsystemd-core.la \
1325 test_utf8_SOURCES = \
1326 src/test/test-utf8.c
1329 libsystemd-shared.la
1331 test_util_SOURCES = \
1332 src/test/test-util.c
1337 test_ring_SOURCES = \
1338 src/test/test-ring.c
1343 test_tmpfiles_SOURCES = \
1344 src/test/test-tmpfiles.c
1346 test_tmpfiles_LDADD = \
1347 libsystemd-shared.la
1349 test_namespace_SOURCES = \
1350 src/test/test-namespace.c
1352 test_namespace_LDADD = \
1355 test_hashmap_SOURCES = \
1356 src/test/test-hashmap.c
1358 test_hashmap_LDADD = \
1361 test_xml_SOURCES = \
1365 libsystemd-shared.la
1367 test_list_SOURCES = \
1368 src/test/test-list.c
1373 test_tables_SOURCES = \
1374 src/test/test-tables.c \
1375 src/shared/test-tables.h
1377 test_tables_CFLAGS = \
1381 test_tables_LDADD = \
1382 libsystemd-logs.la \
1383 libsystemd-journal-internal.la \
1384 libsystemd-core.la \
1387 test_prioq_SOURCES = \
1388 src/test/test-prioq.c
1390 test_prioq_LDADD = \
1393 test_fileio_SOURCES = \
1394 src/test/test-fileio.c
1396 test_fileio_LDADD = \
1399 test_time_SOURCES = \
1400 src/test/test-time.c
1405 test_architecture_SOURCES = \
1406 src/test/test-architecture.c
1408 test_architecture_LDADD = \
1409 libsystemd-shared.la
1411 test_log_SOURCES = \
1417 test_ipcrm_SOURCES = \
1418 src/test/test-ipcrm.c
1420 test_ipcrm_LDADD = \
1421 libsystemd-shared.la \
1424 test_rtnl_manual_SOURCES = \
1425 src/test/test-rtnl-manual.c
1427 test_rtnl_manual_CFLAGS = \
1431 test_rtnl_manual_LDADD = \
1432 libsystemd-internal.la \
1433 libsystemd-shared.la \
1436 test_ellipsize_SOURCES = \
1437 src/test/test-ellipsize.c
1439 test_ellipsize_LDADD = \
1442 test_date_SOURCES = \
1443 src/test/test-date.c
1448 test_sleep_SOURCES = \
1449 src/test/test-sleep.c
1451 test_sleep_LDADD = \
1454 test_replace_var_SOURCES = \
1455 src/test/test-replace-var.c
1457 test_replace_var_LDADD = \
1458 libsystemd-shared.la
1460 test_calendarspec_SOURCES = \
1461 src/test/test-calendarspec.c
1463 test_calendarspec_LDADD = \
1464 libsystemd-shared.la
1466 test_strip_tab_ansi_SOURCES = \
1467 src/test/test-strip-tab-ansi.c
1469 test_strip_tab_ansi_LDADD = \
1470 libsystemd-shared.la
1472 test_daemon_SOURCES = \
1473 src/test/test-daemon.c
1475 test_daemon_LDADD = \
1476 libsystemd-internal.la \
1477 libsystemd-shared.la
1479 test_cgroup_SOURCES = \
1480 src/test/test-cgroup.c
1482 test_cgroup_LDADD = \
1483 libsystemd-label.la \
1484 libsystemd-shared.la \
1485 libsystemd-internal.la
1487 test_cgroup_mask_SOURCES = \
1488 src/test/test-cgroup-mask.c
1490 test_cgroup_mask_CPPFLAGS = \
1492 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1494 test_cgroup_mask_CFLAGS = \
1498 test_cgroup_mask_LDADD = \
1499 libsystemd-core.la \
1502 test_cgroup_util_SOURCES = \
1503 src/test/test-cgroup-util.c
1505 test_cgroup_util_LDADD = \
1506 libsystemd-label.la \
1507 libsystemd-internal.la \
1508 libsystemd-shared.la
1510 test_env_replace_SOURCES = \
1511 src/test/test-env-replace.c
1513 test_env_replace_LDADD = \
1514 libsystemd-shared.la
1516 test_strbuf_SOURCES = \
1517 src/test/test-strbuf.c
1519 test_strbuf_LDADD = \
1520 libsystemd-shared.la
1522 test_strv_SOURCES = \
1523 src/test/test-strv.c
1526 libsystemd-units.la \
1527 libsystemd-internal.la \
1528 libsystemd-shared.la
1530 test_path_util_SOURCES = \
1531 src/test/test-path-util.c
1533 test_path_util_LDADD = \
1534 libsystemd-shared.la
1536 test_strxcpyx_SOURCES = \
1537 src/test/test-strxcpyx.c
1539 test_strxcpyx_LDADD = \
1540 libsystemd-shared.la
1542 test_install_SOURCES = \
1543 src/test/test-install.c
1545 test_install_LDADD = \
1546 libsystemd-units.la \
1547 libsystemd-label.la \
1548 libsystemd-shared.la \
1549 libsystemd-internal.la
1551 test_watchdog_SOURCES = \
1552 src/test/test-watchdog.c
1554 test_watchdog_LDADD = \
1555 libsystemd-shared.la
1557 test_sched_prio_SOURCES = \
1558 src/test/test-sched-prio.c
1560 test_sched_prio_CPPFLAGS = \
1562 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1564 test_sched_prio_CFLAGS = \
1568 test_sched_prio_LDADD = \
1569 libsystemd-core.la \
1572 # ------------------------------------------------------------------------------
1573 ## .PHONY so it always rebuilds it
1574 .PHONY: coverage lcov-run lcov-report coverage-sync
1576 # run lcov from scratch, always
1581 coverage_dir = coverage
1582 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1585 # reset run coverage tests
1587 @rm -rf $(coverage_dir)
1588 lcov $(coverage_opts) --zerocounters
1591 # generate report based on current coverage data
1593 $(MKDIR_P) $(coverage_dir)
1594 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1595 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1596 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1597 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1599 # lcov doesn't work properly with vpath builds, make sure that bad
1600 # output is not uploaded by mistake.
1601 coverage-sync: coverage
1602 test "$(builddir)" = "$(srcdir)"
1603 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1606 lcov-run lcov-report:
1607 echo "Need to reconfigure with --enable-coverage"
1610 # ------------------------------------------------------------------------------
1611 systemd_analyze_SOURCES = \
1612 src/analyze/analyze.c
1614 systemd_analyze_LDADD = \
1615 libsystemd-internal.la \
1616 libsystemd-shared.la
1618 # ------------------------------------------------------------------------------
1619 systemd_initctl_SOURCES = \
1620 src/initctl/initctl.c
1622 systemd_initctl_LDADD = \
1623 libsystemd-internal.la \
1624 libsystemd-shared.la
1626 # ------------------------------------------------------------------------------
1627 systemd_update_utmp_SOURCES = \
1628 src/update-utmp/update-utmp.c
1630 systemd_update_utmp_CFLAGS = \
1634 systemd_update_utmp_LDADD = \
1635 libsystemd-internal.la \
1636 libsystemd-shared.la \
1639 # ------------------------------------------------------------------------------
1640 systemd_shutdownd_SOURCES = \
1641 src/shutdownd/shutdownd.c
1643 systemd_shutdownd_LDADD = \
1644 libsystemd-label.la \
1645 libsystemd-internal.la \
1646 libsystemd-shared.la
1649 src/systemd/sd-shutdown.h
1651 # ------------------------------------------------------------------------------
1652 systemd_shutdown_SOURCES = \
1655 src/core/shutdown.c \
1656 src/core/mount-setup.c \
1657 src/core/mount-setup.h \
1658 src/core/killall.h \
1661 systemd_shutdown_LDADD = \
1662 libsystemd-label.la \
1663 libudev-internal.la \
1664 libsystemd-shared.la
1666 # ------------------------------------------------------------------------------
1668 systemd_modules_load_SOURCES = \
1669 src/modules-load/modules-load.c
1671 systemd_modules_load_CFLAGS = \
1675 systemd_modules_load_LDADD = \
1676 libsystemd-shared.la \
1679 rootlibexec_PROGRAMS += \
1680 systemd-modules-load
1682 nodist_systemunit_DATA += \
1683 units/systemd-modules-load.service
1685 SYSINIT_TARGET_WANTS += \
1686 systemd-modules-load.service
1689 nodist_systemunit_DATA += \
1690 units/kmod-static-nodes.service
1692 SYSINIT_TARGET_WANTS += \
1693 kmod-static-nodes.service
1698 units/systemd-modules-load.service.in \
1699 units/kmod-static-nodes.service.in
1701 # ------------------------------------------------------------------------------
1703 systemd_tmpfiles_SOURCES = \
1704 src/tmpfiles/tmpfiles.c
1706 systemd_tmpfiles_LDADD = \
1707 libsystemd-units.la \
1708 libsystemd-label.la \
1709 libsystemd-capability.la \
1710 libsystemd-internal.la \
1711 libsystemd-shared.la
1713 rootbin_PROGRAMS += \
1716 dist_systemunit_DATA += \
1717 units/systemd-tmpfiles-clean.timer
1719 nodist_systemunit_DATA += \
1720 units/systemd-tmpfiles-setup-dev.service \
1721 units/systemd-tmpfiles-setup.service \
1722 units/systemd-tmpfiles-clean.service
1724 dist_tmpfiles_DATA = \
1725 tmpfiles.d/systemd.conf \
1726 tmpfiles.d/systemd-nologin.conf \
1727 tmpfiles.d/tmp.conf \
1731 dist_tmpfiles_DATA += \
1732 tmpfiles.d/legacy.conf
1735 SYSINIT_TARGET_WANTS += \
1736 systemd-tmpfiles-setup-dev.service \
1737 systemd-tmpfiles-setup.service
1739 dist_zshcompletion_DATA += \
1740 shell-completion/zsh/_systemd-tmpfiles
1742 TIMERS_TARGET_WANTS += \
1743 systemd-tmpfiles-clean.timer
1747 $(sysconfdir)/tmpfiles.d
1751 units/systemd-tmpfiles-setup-dev.service.in \
1752 units/systemd-tmpfiles-setup.service.in \
1753 units/systemd-tmpfiles-clean.service.in
1755 # ------------------------------------------------------------------------------
1756 systemd_machine_id_setup_SOURCES = \
1757 src/machine-id-setup/machine-id-setup-main.c \
1758 src/core/machine-id-setup.c \
1759 src/core/machine-id-setup.h
1761 systemd_machine_id_setup_LDADD = \
1762 libsystemd-label.la \
1763 libsystemd-internal.la \
1764 libsystemd-shared.la
1766 # ------------------------------------------------------------------------------
1767 systemd_sysctl_SOURCES = \
1770 systemd_sysctl_LDADD = \
1771 libsystemd-shared.la
1773 # ------------------------------------------------------------------------------
1774 systemd_sleep_SOURCES = \
1777 systemd_sleep_LDADD = \
1778 libsystemd-shared.la
1780 # ------------------------------------------------------------------------------
1781 systemd_fsck_SOURCES = \
1784 systemd_fsck_LDADD = \
1785 libsystemd-internal.la \
1786 libudev-internal.la \
1787 libsystemd-shared.la
1789 # ------------------------------------------------------------------------------
1790 systemd_ac_power_SOURCES = \
1791 src/ac-power/ac-power.c
1793 systemd_ac_power_LDADD = \
1794 libudev-internal.la \
1795 libsystemd-shared.la
1797 # ------------------------------------------------------------------------------
1798 systemd_detect_virt_SOURCES = \
1799 src/detect-virt/detect-virt.c
1801 systemd_detect_virt_LDADD = \
1802 libsystemd-shared.la
1804 INSTALL_EXEC_HOOKS += \
1805 systemd-detect-virt-install-hook
1807 # ------------------------------------------------------------------------------
1808 systemd_delta_SOURCES = \
1811 systemd_delta_LDADD = \
1812 libsystemd-shared.la
1814 # ------------------------------------------------------------------------------
1815 systemd_getty_generator_SOURCES = \
1816 src/getty-generator/getty-generator.c
1818 systemd_getty_generator_LDADD = \
1819 libsystemd-label.la \
1820 libsystemd-shared.la
1822 # ------------------------------------------------------------------------------
1823 systemd_fstab_generator_SOURCES = \
1824 src/fstab-generator/fstab-generator.c \
1825 src/core/mount-setup.c
1827 systemd_fstab_generator_LDADD = \
1828 libsystemd-label.la \
1829 libsystemd-shared.la
1831 # ------------------------------------------------------------------------------
1832 systemd_system_update_generator_SOURCES = \
1833 src/system-update-generator/system-update-generator.c
1835 systemd_system_update_generator_LDADD = \
1836 libsystemd-label.la \
1837 libsystemd-shared.la
1840 # ------------------------------------------------------------------------------
1841 systemgenerator_PROGRAMS += \
1842 systemd-efi-boot-generator
1844 systemd_efi_boot_generator_SOURCES = \
1845 src/efi-boot-generator/efi-boot-generator.c
1847 systemd_efi_boot_generator_LDADD = \
1848 libsystemd-label.la \
1849 libsystemd-shared.la
1851 # ------------------------------------------------------------------------------
1854 src/boot/boot-loader.h \
1855 src/boot/bootctl.c \
1856 src/boot/boot-loader.c \
1860 libsystemd-shared.la \
1861 libsystemd-internal.la
1866 dist_bashcompletion_DATA += \
1867 shell-completion/bash/bootctl
1869 dist_zshcompletion_DATA += \
1870 shell-completion/zsh/_bootctl
1874 # ------------------------------------------------------------------------------
1876 systemgenerator_PROGRAMS += \
1877 systemd-gpt-auto-generator
1879 systemd_gpt_auto_generator_SOURCES = \
1880 src/gpt-auto-generator/gpt-auto-generator.c \
1881 src/shared/blkid-util.h
1883 systemd_gpt_auto_generator_LDADD = \
1884 libsystemd-label.la \
1885 libsystemd-internal.la \
1886 libudev-internal.la \
1887 libsystemd-shared.la \
1890 systemd_gpt_auto_generator_CFLAGS = \
1895 # ------------------------------------------------------------------------------
1897 systemgenerator_PROGRAMS += \
1898 systemd-dbus1-generator
1900 systemd_dbus1_generator_SOURCES = \
1901 src/dbus1-generator/dbus1-generator.c
1903 systemd_dbus1_generator_LDADD = \
1904 libsystemd-label.la \
1905 libsystemd-shared.la \
1906 libsystemd-internal.la
1908 dbus1-generator-install-hook:
1909 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
1910 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1911 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1913 dbus1-generator-uninstall-hook:
1914 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1916 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1917 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1920 # ------------------------------------------------------------------------------
1921 systemd_sysv_generator_SOURCES = \
1922 src/sysv-generator/sysv-generator.c
1924 systemd_sysv_generator_LDADD = \
1925 libsystemd-core.la \
1926 libsystemd-label.la \
1927 libsystemd-shared.la
1929 # ------------------------------------------------------------------------------
1930 systemd_rc_local_generator_SOURCES = \
1931 src/rc-local-generator/rc-local-generator.c
1933 systemd_rc_local_generator_LDADD = \
1934 libsystemd-label.la \
1935 libsystemd-shared.la
1937 # ------------------------------------------------------------------------------
1938 systemd_remount_fs_SOURCES = \
1939 src/remount-fs/remount-fs.c \
1940 src/core/mount-setup.c \
1941 src/core/mount-setup.h
1943 systemd_remount_fs_LDADD = \
1944 libsystemd-label.la \
1945 libsystemd-shared.la
1947 # ------------------------------------------------------------------------------
1948 systemd_cgroups_agent_SOURCES = \
1949 src/cgroups-agent/cgroups-agent.c
1951 systemd_cgroups_agent_LDADD = \
1952 libsystemd-internal.la \
1953 libsystemd-shared.la
1955 # ------------------------------------------------------------------------------
1956 systemctl_SOURCES = \
1957 src/systemctl/systemctl.c
1960 libsystemd-units.la \
1961 libsystemd-label.la \
1962 libsystemd-internal.la \
1963 libsystemd-logs.la \
1964 libsystemd-journal-internal.la \
1965 libsystemd-shared.la
1967 # ------------------------------------------------------------------------------
1968 systemd_notify_SOURCES = \
1969 src/notify/notify.c \
1970 src/readahead/sd-readahead.c
1972 systemd_notify_LDADD = \
1973 libsystemd-internal.la \
1974 libsystemd-shared.la
1976 # ------------------------------------------------------------------------------
1977 systemd_ask_password_SOURCES = \
1978 src/ask-password/ask-password.c
1980 systemd_ask_password_LDADD = \
1981 libsystemd-label.la \
1982 libsystemd-shared.la
1984 # ------------------------------------------------------------------------------
1985 systemd_reply_password_SOURCES = \
1986 src/reply-password/reply-password.c
1988 systemd_reply_password_LDADD = \
1989 libsystemd-shared.la
1991 # ------------------------------------------------------------------------------
1992 systemd_cgls_SOURCES = \
1995 systemd_cgls_LDADD = \
1996 libsystemd-internal.la \
1997 libsystemd-shared.la
1999 # ------------------------------------------------------------------------------
2000 systemd_cgtop_SOURCES = \
2003 systemd_cgtop_LDADD = \
2004 libsystemd-shared.la
2006 # ------------------------------------------------------------------------------
2007 systemd_nspawn_SOURCES = \
2008 src/nspawn/nspawn.c \
2009 src/core/mount-setup.c \
2010 src/core/mount-setup.h \
2011 src/core/loopback-setup.c \
2012 src/core/loopback-setup.h
2014 systemd_nspawn_CFLAGS = \
2019 systemd_nspawn_LDADD = \
2020 libsystemd-label.la \
2021 libsystemd-capability.la \
2022 libsystemd-internal.la \
2023 libudev-internal.la \
2024 libsystemd-shared.la \
2028 systemd_nspawn_LDADD += \
2029 libsystemd-seccomp.la \
2033 # ------------------------------------------------------------------------------
2034 systemd_run_SOURCES = \
2037 systemd_run_LDADD = \
2038 libsystemd-label.la \
2039 libsystemd-capability.la \
2040 libsystemd-internal.la \
2041 libsystemd-shared.la
2043 # ------------------------------------------------------------------------------
2044 systemd_bus_proxyd_SOURCES = \
2045 src/bus-proxyd/bus-proxyd.c \
2046 src/bus-proxyd/bus-policy.c \
2047 src/bus-proxyd/bus-policy.h
2049 systemd_bus_proxyd_LDADD = \
2050 libsystemd-capability.la \
2051 libsystemd-internal.la \
2052 libsystemd-shared.la
2054 bus-proxyd-install-hook:
2055 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2056 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2057 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2059 bus-proxyd-uninstall-hook:
2060 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2062 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2063 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2066 nodist_systemunit_DATA += \
2067 units/systemd-bus-proxyd@.service
2069 dist_systemunit_DATA += \
2070 units/systemd-bus-proxyd.socket
2072 dist_userunit_DATA += \
2073 units/user/systemd-bus-proxyd.socket \
2074 units/user/systemd-bus-proxyd@.service
2078 units/systemd-bus-proxyd@.service.in
2080 # ------------------------------------------------------------------------------
2081 systemd_tty_ask_password_agent_SOURCES = \
2082 src/tty-ask-password-agent/tty-ask-password-agent.c
2084 systemd_tty_ask_password_agent_LDADD = \
2085 libsystemd-label.la \
2086 libsystemd-shared.la
2088 # ------------------------------------------------------------------------------
2089 libsystemd_internal_la_SOURCES = \
2090 src/systemd/sd-bus.h \
2091 src/systemd/sd-bus-protocol.h \
2092 src/systemd/sd-bus-vtable.h \
2093 src/systemd/sd-memfd.h \
2094 src/systemd/sd-utf8.h \
2095 src/systemd/sd-event.h \
2096 src/systemd/sd-rtnl.h \
2097 src/systemd/sd-resolve.h \
2098 src/systemd/sd-login.h \
2099 src/systemd/sd-id128.h \
2100 src/systemd/sd-daemon.h \
2101 src/libsystemd/sd-bus/sd-bus.c \
2102 src/libsystemd/sd-bus/bus-control.c \
2103 src/libsystemd/sd-bus/bus-control.h \
2104 src/libsystemd/sd-bus/bus-error.c \
2105 src/libsystemd/sd-bus/bus-error.h \
2106 src/libsystemd/sd-bus/bus-internal.c \
2107 src/libsystemd/sd-bus/bus-internal.h \
2108 src/libsystemd/sd-bus/bus-socket.c \
2109 src/libsystemd/sd-bus/bus-socket.h \
2110 src/libsystemd/sd-bus/bus-kernel.c \
2111 src/libsystemd/sd-bus/bus-kernel.h \
2112 src/libsystemd/sd-bus/bus-container.c \
2113 src/libsystemd/sd-bus/bus-container.h \
2114 src/libsystemd/sd-bus/bus-message.c \
2115 src/libsystemd/sd-bus/bus-message.h \
2116 src/libsystemd/sd-bus/bus-creds.c \
2117 src/libsystemd/sd-bus/bus-creds.h \
2118 src/libsystemd/sd-bus/bus-signature.c \
2119 src/libsystemd/sd-bus/bus-signature.h \
2120 src/libsystemd/sd-bus/bus-type.c \
2121 src/libsystemd/sd-bus/bus-type.h \
2122 src/libsystemd/sd-bus/bus-match.c \
2123 src/libsystemd/sd-bus/bus-match.h \
2124 src/libsystemd/sd-bus/bus-bloom.c \
2125 src/libsystemd/sd-bus/bus-bloom.h \
2126 src/libsystemd/sd-bus/bus-introspect.c \
2127 src/libsystemd/sd-bus/bus-introspect.h \
2128 src/libsystemd/sd-bus/bus-objects.c \
2129 src/libsystemd/sd-bus/bus-objects.h \
2130 src/libsystemd/sd-bus/bus-gvariant.c \
2131 src/libsystemd/sd-bus/bus-gvariant.h \
2132 src/libsystemd/sd-bus/bus-convenience.c \
2133 src/libsystemd/sd-bus/bus-track.c \
2134 src/libsystemd/sd-bus/bus-track.h \
2135 src/libsystemd/sd-bus/bus-util.c \
2136 src/libsystemd/sd-bus/bus-util.h \
2137 src/libsystemd/sd-bus/bus-slot.c \
2138 src/libsystemd/sd-bus/bus-slot.h \
2139 src/libsystemd/sd-bus/bus-protocol.h \
2140 src/libsystemd/sd-bus/kdbus.h \
2141 src/libsystemd/sd-bus/sd-memfd.c \
2142 src/libsystemd/sd-utf8/sd-utf8.c \
2143 src/libsystemd/sd-event/sd-event.c \
2144 src/libsystemd/sd-event/event-util.h \
2145 src/libsystemd/sd-rtnl/sd-rtnl.c \
2146 src/libsystemd/sd-rtnl/rtnl-internal.h \
2147 src/libsystemd/sd-rtnl/rtnl-message.c \
2148 src/libsystemd/sd-rtnl/rtnl-types.h \
2149 src/libsystemd/sd-rtnl/rtnl-types.c \
2150 src/libsystemd/sd-rtnl/rtnl-util.h \
2151 src/libsystemd/sd-rtnl/rtnl-util.c \
2152 src/libsystemd/sd-id128/sd-id128.c \
2153 src/libsystemd/sd-daemon/sd-daemon.c \
2154 src/libsystemd/sd-login/sd-login.c
2156 nodist_libsystemd_internal_la_SOURCES = \
2157 src/libsystemd/libsystemd.sym \
2158 src/libsystemd/sd-bus/bus-error-mapping.c
2160 libsystemd_internal_la_CFLAGS = \
2164 libsystemd_internal_la_LIBADD = \
2167 libsystemd_resolve_la_SOURCES = \
2168 src/libsystemd/sd-resolve/sd-resolve.c \
2169 src/libsystemd/sd-resolve/resolve-util.h
2171 libsystemd_resolve_la_CFLAGS = \
2175 libsystemd_resolve_la_LIBADD = \
2178 noinst_LTLIBRARIES += \
2179 libsystemd-internal.la \
2180 libsystemd-resolve.la
2182 libsystemd_dump_la_SOURCES = \
2183 src/libsystemd/sd-bus/bus-dump.c \
2184 src/libsystemd/sd-bus/bus-dump.h
2186 libsystemd_dump_la_CFLAGS = \
2190 noinst_LTLIBRARIES += \
2194 src/libsystemd/libsystemd.sym.m4 \
2195 src/libsystemd/libsystemd.pc.in \
2196 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2197 src/libsystemd/sd-bus/DIFFERENCES \
2198 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2201 src/libsystemd/libsystemd.sym \
2202 src/libsystemd/sd-bus/bus-error-mapping.c
2205 src/libsystemd/libsystemd.sym
2207 libsystemd_la_SOURCES = \
2208 $(libsystemd_internal_la_SOURCES) \
2209 $(libsystemd_resolve_la_SOURCES) \
2210 $(libsystemd_journal_internal_la_SOURCES)
2212 nodist_libsystemd_la_SOURCES = \
2213 $(nodist_libsystemd_internal_la_SOURCES)
2215 libsystemd_la_CFLAGS = \
2216 $(libsystemd_internal_la_CFLAGS) \
2217 $(libsystemd_resolve_la_CFLAGS) \
2218 $(libsystemd_journal_internal_la_CFLAGS)
2220 libsystemd_la_LDFLAGS = \
2222 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2223 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2225 libsystemd_la_LIBADD = \
2226 libsystemd-shared.la \
2227 $(libsystemd_internal_la_LIBADD) \
2228 $(libsystemd_journal_internal_la_LIBADD) \
2229 $(libsystemd_resolve_la_LIBADD)
2231 libsystemd-install-hook:
2232 libname=libsystemd.so && $(move-to-rootlibdir)
2234 libsystemd-uninstall-hook:
2235 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2237 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2238 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2240 pkgconfiglib_DATA += \
2241 src/libsystemd/libsystemd.pc
2243 pkginclude_HEADERS += \
2244 src/systemd/sd-login.h \
2245 src/systemd/sd-id128.h \
2246 src/systemd/sd-daemon.h
2249 pkginclude_HEADERS += \
2250 src/systemd/sd-bus.h \
2251 src/systemd/sd-bus-protocol.h \
2252 src/systemd/sd-bus-vtable.h \
2253 src/systemd/sd-memfd.h \
2254 src/systemd/sd-utf8.h \
2255 src/systemd/sd-event.h \
2256 src/systemd/sd-rtnl.h \
2257 src/systemd/sd-resolve.h
2260 lib_LTLIBRARIES += \
2265 test-bus-signature \
2271 test-bus-kernel-bloom \
2272 test-bus-kernel-benchmark \
2274 test-bus-zero-copy \
2275 test-bus-introspect \
2287 test_bus_marshal_SOURCES = \
2288 src/libsystemd/sd-bus/test-bus-marshal.c
2290 test_bus_marshal_LDADD = \
2291 libsystemd-internal.la \
2292 libsystemd-shared.la \
2293 libsystemd-dump.la \
2294 libsystemd-capability.la \
2299 test_bus_marshal_CFLAGS = \
2305 test_bus_signature_SOURCES = \
2306 src/libsystemd/sd-bus/test-bus-signature.c
2308 test_bus_signature_LDADD = \
2309 libsystemd-shared.la \
2310 libsystemd-internal.la
2312 test_bus_chat_SOURCES = \
2313 src/libsystemd/sd-bus/test-bus-chat.c
2315 test_bus_chat_CFLAGS = \
2319 test_bus_chat_LDADD = \
2320 libsystemd-internal.la \
2321 libsystemd-shared.la
2323 test_bus_cleanup_SOURCES = \
2324 src/libsystemd/sd-bus/test-bus-cleanup.c
2326 test_bus_cleanup_CFLAGS = \
2330 test_bus_cleanup_LDADD = \
2331 libsystemd-internal.la \
2332 libsystemd-shared.la
2334 test_bus_server_SOURCES = \
2335 src/libsystemd/sd-bus/test-bus-server.c
2337 test_bus_server_CFLAGS = \
2341 test_bus_server_LDADD = \
2342 libsystemd-internal.la \
2343 libsystemd-shared.la
2345 test_bus_objects_SOURCES = \
2346 src/libsystemd/sd-bus/test-bus-objects.c
2348 test_bus_objects_CFLAGS = \
2353 test_bus_objects_LDADD = \
2354 libsystemd-internal.la \
2355 libsystemd-shared.la \
2356 libsystemd-dump.la \
2357 libsystemd-capability.la \
2360 test_bus_error_SOURCES = \
2361 src/libsystemd/sd-bus/test-bus-error.c
2363 test_bus_error_LDADD = \
2364 libsystemd-internal.la \
2365 libsystemd-shared.la
2367 test_bus_gvariant_SOURCES = \
2368 src/libsystemd/sd-bus/test-bus-gvariant.c
2370 test_bus_gvariant_LDADD = \
2371 libsystemd-internal.la \
2372 libsystemd-shared.la \
2373 libsystemd-dump.la \
2374 libsystemd-capability.la \
2378 test_bus_gvariant_CFLAGS = \
2383 test_bus_creds_SOURCES = \
2384 src/libsystemd/sd-bus/test-bus-creds.c
2386 test_bus_creds_LDADD = \
2387 libsystemd-internal.la \
2388 libsystemd-shared.la \
2389 libsystemd-dump.la \
2390 libsystemd-capability.la
2392 test_bus_match_SOURCES = \
2393 src/libsystemd/sd-bus/test-bus-match.c
2395 test_bus_match_LDADD = \
2396 libsystemd-internal.la \
2397 libsystemd-shared.la
2399 test_bus_kernel_SOURCES = \
2400 src/libsystemd/sd-bus/test-bus-kernel.c
2402 test_bus_kernel_LDADD = \
2403 libsystemd-internal.la \
2404 libsystemd-shared.la \
2405 libsystemd-dump.la \
2406 libsystemd-capability.la \
2409 test_bus_kernel_CFLAGS = \
2413 test_bus_kernel_bloom_SOURCES = \
2414 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2416 test_bus_kernel_bloom_LDADD = \
2417 libsystemd-internal.la \
2418 libsystemd-shared.la
2420 test_bus_kernel_benchmark_SOURCES = \
2421 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2423 test_bus_kernel_benchmark_LDADD = \
2424 libsystemd-internal.la \
2425 libsystemd-shared.la
2427 test_bus_memfd_SOURCES = \
2428 src/libsystemd/sd-bus/test-bus-memfd.c
2430 test_bus_memfd_LDADD = \
2431 libsystemd-internal.la \
2432 libsystemd-shared.la
2434 test_bus_zero_copy_SOURCES = \
2435 src/libsystemd/sd-bus/test-bus-zero-copy.c
2437 test_bus_zero_copy_LDADD = \
2438 libsystemd-internal.la \
2439 libsystemd-shared.la \
2440 libsystemd-dump.la \
2441 libsystemd-capability.la \
2444 test_bus_zero_copy_CFLAGS = \
2448 test_bus_introspect_SOURCES = \
2449 src/libsystemd/sd-bus/test-bus-introspect.c
2451 test_bus_introspect_LDADD = \
2452 libsystemd-internal.la \
2453 libsystemd-shared.la
2455 test_event_SOURCES = \
2456 src/libsystemd/sd-event/test-event.c
2458 test_event_LDADD = \
2459 libsystemd-internal.la \
2460 libsystemd-shared.la
2462 test_rtnl_SOURCES = \
2463 src/libsystemd/sd-rtnl/test-rtnl.c
2466 libsystemd-internal.la \
2467 libsystemd-shared.la
2469 test_resolve_SOURCES = \
2470 src/libsystemd/sd-resolve/test-resolve.c
2472 test_resolve_LDADD = \
2473 libsystemd-resolve.la \
2474 libsystemd-internal.la \
2475 libsystemd-shared.la
2477 test_resolve_CFLAGS = \
2482 src/libsystemd/sd-bus/busctl.c
2485 libsystemd-internal.la \
2486 libsystemd-shared.la \
2487 libsystemd-dump.la \
2488 libsystemd-capability.la \
2495 # ------------------------------------------------------------------------------
2496 noinst_LTLIBRARIES += \
2497 libsystemd-network.la
2499 libsystemd_network_la_CFLAGS = \
2503 libsystemd_network_la_SOURCES = \
2504 src/systemd/sd-network.h \
2505 src/systemd/sd-dhcp-client.h \
2506 src/systemd/sd-dhcp-lease.h \
2507 src/systemd/sd-ipv4ll.h \
2508 src/network/sd-network.c \
2509 src/network/network-util.h \
2510 src/libsystemd-network/sd-dhcp-client.c \
2511 src/libsystemd-network/dhcp-network.c \
2512 src/libsystemd-network/dhcp-option.c \
2513 src/libsystemd-network/dhcp-packet.c \
2514 src/libsystemd-network/dhcp-internal.h \
2515 src/libsystemd-network/dhcp-protocol.h \
2516 src/libsystemd-network/dhcp-lease-internal.h \
2517 src/libsystemd-network/sd-dhcp-lease.c \
2518 src/libsystemd-network/sd-ipv4ll.c \
2519 src/libsystemd-network/ipv4ll-network.c \
2520 src/libsystemd-network/ipv4ll-packet.c \
2521 src/libsystemd-network/ipv4ll-internal.h \
2522 src/libsystemd-network/network-internal.c \
2523 src/libsystemd-network/network-internal.h
2525 libsystemd_network_la_LIBADD = \
2526 libudev-internal.la \
2527 libsystemd-label.la \
2528 libsystemd-internal.la \
2529 libsystemd-shared.la \
2532 test_dhcp_option_SOURCES = \
2533 src/libsystemd-network/dhcp-protocol.h \
2534 src/libsystemd-network/dhcp-internal.h \
2535 src/libsystemd-network/test-dhcp-option.c
2537 test_dhcp_option_LDADD = \
2538 libsystemd-network.la \
2539 libsystemd-internal.la \
2540 libsystemd-shared.la
2542 test_dhcp_client_SOURCES = \
2543 src/systemd/sd-dhcp-client.h \
2544 src/libsystemd-network/dhcp-protocol.h \
2545 src/libsystemd-network/dhcp-internal.h \
2546 src/libsystemd-network/test-dhcp-client.c
2548 test_dhcp_client_LDADD = \
2549 libsystemd-network.la \
2550 libsystemd-label.la \
2551 libsystemd-internal.la \
2552 libsystemd-shared.la
2554 test_ipv4ll_SOURCES = \
2555 src/systemd/sd-ipv4ll.h \
2556 src/libsystemd-network/ipv4ll-internal.h \
2557 src/libsystemd-network/test-ipv4ll.c
2559 test_ipv4ll_LDADD = \
2560 libsystemd-network.la \
2561 libsystemd-label.la \
2562 libsystemd-internal.la \
2563 libsystemd-shared.la
2570 # ------------------------------------------------------------------------------
2580 include_HEADERS += \
2581 src/libudev/libudev.h
2583 lib_LTLIBRARIES += \
2586 libudev_la_SOURCES =\
2587 src/libudev/libudev.sym \
2588 src/libudev/libudev-private.h \
2589 src/libudev/libudev.c \
2590 src/libudev/libudev-list.c \
2591 src/libudev/libudev-util.c \
2592 src/libudev/libudev-device.c \
2593 src/libudev/libudev-enumerate.c \
2594 src/libudev/libudev-monitor.c \
2595 src/libudev/libudev-queue.c \
2596 src/libudev/libudev-hwdb-def.h \
2597 src/libudev/libudev-hwdb.c
2599 libudev_la_CFLAGS = \
2603 libudev_la_LDFLAGS = \
2605 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2606 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2608 libudev_la_LIBADD = \
2609 libsystemd-internal.la \
2610 libsystemd-shared.la
2612 pkgconfiglib_DATA += \
2613 src/libudev/libudev.pc
2616 src/libudev/libudev.pc.in
2619 src/libudev/libudev.pc \
2624 $(AM_V_at)$(MKDIR_P) $(dir $@)
2625 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2628 $(AM_V_at)$(MKDIR_P) $(dir $@)
2629 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2631 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2632 libudev-install-hook:
2633 libname=libudev.so && $(move-to-rootlibdir)
2635 libudev-uninstall-hook:
2636 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2638 INSTALL_EXEC_HOOKS += libudev-install-hook
2639 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2641 # ------------------------------------------------------------------------------
2642 noinst_LTLIBRARIES += \
2645 libudev_internal_la_SOURCES =\
2646 $(libudev_la_SOURCES) \
2647 src/libudev/libudev-device-private.c
2649 libudev_internal_la_CFLAGS = \
2651 -fvisibility=default
2653 # ------------------------------------------------------------------------------
2655 $(sysconfdir)/udev/rules.d \
2656 $(sysconfdir)/udev/hwdb.d
2658 dist_network_DATA = \
2659 network/99-default.link \
2660 network/80-container-host0.network \
2661 network/80-container-ve.network
2663 dist_udevrules_DATA += \
2664 rules/42-usb-hid-pm.rules \
2665 rules/50-udev-default.rules \
2666 rules/60-drm.rules \
2667 rules/60-keyboard.rules \
2668 rules/60-persistent-storage-tape.rules \
2669 rules/60-persistent-serial.rules \
2670 rules/60-persistent-input.rules \
2671 rules/60-persistent-alsa.rules \
2672 rules/60-persistent-storage.rules \
2673 rules/64-btrfs.rules \
2674 rules/75-net-description.rules \
2675 rules/75-tty-description.rules \
2676 rules/78-sound-card.rules \
2677 rules/80-net-setup-link.rules \
2678 rules/95-udev-late.rules
2680 nodist_udevrules_DATA += \
2681 rules/99-systemd.rules
2683 dist_udevhwdb_DATA = \
2684 hwdb/20-pci-vendor-model.hwdb \
2685 hwdb/20-pci-classes.hwdb \
2686 hwdb/20-usb-vendor-model.hwdb \
2687 hwdb/20-usb-classes.hwdb \
2688 hwdb/20-sdio-vendor-model.hwdb \
2689 hwdb/20-sdio-classes.hwdb \
2690 hwdb/20-bluetooth-vendor-product.hwdb \
2691 hwdb/20-acpi-vendor.hwdb \
2693 hwdb/20-net-ifname.hwdb \
2694 hwdb/60-keyboard.hwdb
2696 udevconfdir = $(sysconfdir)/udev
2697 dist_udevconf_DATA = \
2700 sharepkgconfigdir = $(datadir)/pkgconfig
2701 sharepkgconfig_DATA = \
2705 rules/99-systemd.rules.in \
2709 rules/99-systemd.rules \
2713 units/systemd-udevd.service.in \
2714 units/systemd-udev-trigger.service.in \
2715 units/systemd-udev-settle.service.in
2718 units/systemd-udevd.service \
2719 units/systemd-udev-trigger.service \
2720 units/systemd-udev-settle.service
2722 SOCKETS_TARGET_WANTS += \
2723 systemd-udevd-control.socket \
2724 systemd-udevd-kernel.socket
2725 SYSINIT_TARGET_WANTS += \
2726 systemd-udevd.service \
2727 systemd-udev-trigger.service
2729 rootbin_PROGRAMS += \
2732 rootlibexec_PROGRAMS += \
2735 noinst_LTLIBRARIES += \
2738 src/udev/keyboard-keys.txt:
2739 $(AM_V_at)$(MKDIR_P) $(dir $@)
2740 $(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/' > $@
2742 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2743 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2745 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2746 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2748 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2749 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2751 libudev_core_la_SOURCES = \
2753 src/udev/udev-event.c \
2754 src/udev/udev-watch.c \
2755 src/udev/udev-node.c \
2756 src/udev/udev-rules.c \
2757 src/udev/udev-ctrl.c \
2758 src/udev/udev-builtin.c \
2759 src/udev/udev-builtin-btrfs.c \
2760 src/udev/udev-builtin-hwdb.c \
2761 src/udev/udev-builtin-input_id.c \
2762 src/udev/udev-builtin-keyboard.c \
2763 src/udev/udev-builtin-net_id.c \
2764 src/udev/udev-builtin-net_setup_link.c \
2765 src/udev/udev-builtin-path_id.c \
2766 src/udev/udev-builtin-usb_id.c \
2767 src/udev/net/link-config.h \
2768 src/udev/net/link-config.c \
2769 src/udev/net/ethtool-util.h \
2770 src/udev/net/ethtool-util.c
2772 nodist_libudev_core_la_SOURCES = \
2773 src/udev/keyboard-keys-from-name.h \
2774 src/udev/keyboard-keys-to-name.h \
2775 src/udev/net/link-config-gperf.c
2778 $(nodist_libudev_core_la_SOURCES)
2781 src/udev/keyboard-keys-from-name.gperf \
2782 src/udev/keyboard-keys.txt \
2783 src/udev/net/link-config-gperf.c
2786 src/udev/net/link-config-gperf.gperf
2788 libudev_core_la_CFLAGS = \
2793 libudev_core_la_LIBADD = \
2794 libudev-internal.la \
2795 libsystemd-label.la \
2796 libsystemd-internal.la \
2797 libsystemd-network.la \
2798 libsystemd-shared.la \
2802 libudev_core_la_CPPFLAGS = \
2804 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2807 libudev_core_la_SOURCES += \
2808 src/udev/udev-builtin-firmware.c
2810 dist_udevrules_DATA += \
2811 rules/50-firmware.rules
2815 libudev_core_la_SOURCES += \
2816 src/udev/udev-builtin-kmod.c
2818 dist_udevrules_DATA += \
2819 rules/80-drivers.rules
2823 libudev_core_la_SOURCES += \
2824 src/udev/udev-builtin-blkid.c
2828 libudev_core_la_SOURCES += \
2829 src/udev/udev-builtin-uaccess.c \
2830 src/login/logind-acl.c \
2831 src/libsystemd/sd-login/sd-login.c \
2832 src/systemd/sd-login.h
2834 libudev_core_la_LIBADD += \
2838 systemd_udevd_SOURCES = \
2841 systemd_udevd_LDADD = \
2845 src/udev/udevadm.c \
2846 src/udev/udevadm-info.c \
2847 src/udev/udevadm-control.c \
2848 src/udev/udevadm-monitor.c \
2849 src/udev/udevadm-hwdb.c \
2850 src/udev/udevadm-settle.c \
2851 src/udev/udevadm-trigger.c \
2852 src/udev/udevadm-test.c \
2853 src/udev/udevadm-test-builtin.c
2858 # Update hwdb on installation. Do not bother if installing
2859 # in DESTDIR, since this is likely for packaging purposes.
2861 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2863 INSTALL_DATA_HOOKS += \
2867 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2869 # ------------------------------------------------------------------------------
2878 test_libudev_SOURCES = \
2879 src/test/test-libudev.c
2881 test_libudev_LDADD = \
2882 libsystemd-label.la \
2883 libudev-internal.la \
2884 libsystemd-shared.la
2886 test_udev_SOURCES = \
2887 src/test/test-udev.c
2896 test_udev_LDADD += \
2903 # packed sysfs test tree
2905 $(AM_V_at)$(MKDIR_P) $(dir $@)
2906 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2910 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2915 test/rules-test.sh \
2916 test/rule-syntax-check.py
2918 # ------------------------------------------------------------------------------
2920 src/udev/ata_id/ata_id.c
2923 libudev-internal.la \
2924 libsystemd-shared.la
2926 udevlibexec_PROGRAMS += \
2929 # ------------------------------------------------------------------------------
2930 cdrom_id_SOURCES = \
2931 src/udev/cdrom_id/cdrom_id.c
2934 libudev-internal.la \
2935 libsystemd-shared.la
2937 udevlibexec_PROGRAMS += \
2940 dist_udevrules_DATA += \
2941 rules/60-cdrom_id.rules
2943 # ------------------------------------------------------------------------------
2945 src/udev/collect/collect.c
2948 libudev-internal.la \
2949 libsystemd-shared.la
2951 udevlibexec_PROGRAMS += \
2954 # ------------------------------------------------------------------------------
2956 src/udev/scsi_id/scsi_id.c \
2957 src/udev/scsi_id/scsi_serial.c \
2958 src/udev/scsi_id/scsi.h \
2959 src/udev/scsi_id/scsi_id.h
2962 libudev-internal.la \
2963 libsystemd-shared.la
2965 udevlibexec_PROGRAMS += \
2969 src/udev/scsi_id/README
2971 # ------------------------------------------------------------------------------
2973 src/udev/v4l_id/v4l_id.c
2978 udevlibexec_PROGRAMS += \
2981 dist_udevrules_DATA += \
2982 rules/60-persistent-v4l.rules
2984 # ------------------------------------------------------------------------------
2985 accelerometer_SOURCES = \
2986 src/udev/accelerometer/accelerometer.c
2988 accelerometer_LDADD = \
2989 libudev-internal.la -lm \
2990 libsystemd-shared.la
2992 udevlibexec_PROGRAMS += \
2995 dist_udevrules_DATA += \
2996 rules/61-accelerometer.rules
2998 # ------------------------------------------------------------------------------
3005 libgudev_includedir = \
3006 $(includedir)/gudev-1.0/gudev
3008 libgudev_include_HEADERS = \
3010 src/gudev/gudevenums.h \
3011 src/gudev/gudevenumtypes.h \
3012 src/gudev/gudevtypes.h \
3013 src/gudev/gudevclient.h \
3014 src/gudev/gudevdevice.h \
3015 src/gudev/gudevenumerator.h
3017 lib_LTLIBRARIES += libgudev-1.0.la
3019 pkgconfiglib_DATA += \
3020 src/gudev/gudev-1.0.pc
3023 src/gudev/gudev-1.0.pc
3025 libgudev_1_0_la_SOURCES = \
3026 src/gudev/gudevenums.h \
3027 src/gudev/gudevenumtypes.h \
3028 src/gudev/gudevenumtypes.h\
3029 src/gudev/gudevtypes.h \
3030 src/gudev/gudevclient.h \
3031 src/gudev/gudevclient.c \
3032 src/gudev/gudevdevice.h \
3033 src/gudev/gudevdevice.c \
3034 src/gudev/gudevenumerator.h \
3035 src/gudev/gudevenumerator.c \
3036 src/gudev/gudevprivate.h
3038 nodist_libgudev_1_0_la_SOURCES = \
3039 src/gudev/gudevmarshal.h \
3040 src/gudev/gudevmarshal.c \
3041 src/gudev/gudevenumtypes.h \
3042 src/gudev/gudevenumtypes.c
3045 $(nodist_libgudev_1_0_la_SOURCES)
3047 libgudev_1_0_la_CPPFLAGS = \
3049 -I$(top_builddir)/src\
3050 -I$(top_srcdir)/src\
3051 -I$(top_builddir)/src/gudev \
3052 -I$(top_srcdir)/src/gudev \
3053 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3054 -D_GUDEV_COMPILATION \
3055 -DG_LOG_DOMAIN=\"GUdev\"
3057 libgudev_1_0_la_CFLAGS = \
3059 -fvisibility=default \
3062 libgudev_1_0_la_LIBADD = \
3066 libgudev_1_0_la_LDFLAGS = \
3068 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3069 -export-dynamic -no-undefined \
3070 -export-symbols-regex '^g_udev_.*'
3072 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3073 $(AM_V_at)$(MKDIR_P) $(dir $@)
3074 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3076 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3077 $(AM_V_at)$(MKDIR_P) $(dir $@)
3078 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3079 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3081 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3082 $(AM_V_at)$(MKDIR_P) $(dir $@)
3083 $(AM_V_GEN)glib-mkenums --template $^ > $@
3085 if HAVE_INTROSPECTION
3086 -include $(INTROSPECTION_MAKEFILE)
3088 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3090 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3092 src_gudev_GUdev_1_0_gir_CFLAGS = \
3095 -D_GUDEV_COMPILATION \
3096 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3097 -I$(top_srcdir)/src \
3098 -I$(top_builddir)/src \
3099 -I$(top_srcdir)/src/gudev \
3100 -I$(top_builddir)/src/gudev
3102 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3104 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3105 --pkg-export=gudev-1.0 \
3108 src_gudev_GUdev_1_0_gir_FILES = \
3110 src/gudev/gudevtypes.h \
3111 src/gudev/gudevenums.h \
3112 src/gudev/gudevenumtypes.h \
3113 src/gudev/gudevclient.h \
3114 src/gudev/gudevdevice.h \
3115 src/gudev/gudevenumerator.h \
3116 src/gudev/gudevclient.c \
3117 src/gudev/gudevdevice.c \
3118 src/gudev/gudevenumerator.c
3120 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3121 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3123 girdir = $(datadir)/gir-1.0
3125 src/gudev/GUdev-1.0.gir
3127 typelibsdir = $(libdir)/girepository-1.0
3129 src/gudev/GUdev-1.0.typelib
3131 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3132 endif # HAVE_INTROSPECTION
3134 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3135 libgudev-install-hook:
3136 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3138 libgudev-uninstall-hook:
3139 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3141 INSTALL_EXEC_HOOKS += libgudev-install-hook
3142 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3146 src/gudev/gudev-1.0.pc.in \
3147 src/gudev/gudevmarshal.list \
3148 src/gudev/gudevenumtypes.h.template \
3149 src/gudev/gudevenumtypes.c.template \
3150 src/gudev/gjs-example.js \
3151 src/gudev/seed-example-enum.js \
3152 src/gudev/seed-example.js
3154 # ------------------------------------------------------------------------------
3155 mtd_probe_SOURCES = \
3156 src/udev/mtd_probe/mtd_probe.c \
3157 src/udev/mtd_probe/mtd_probe.h \
3158 src/udev/mtd_probe/probe_smartmedia.c
3160 dist_udevrules_DATA += \
3161 rules/75-probe_mtd.rules
3163 udevlibexec_PROGRAMS += \
3166 # ------------------------------------------------------------------------------
3167 test_id128_SOURCES = \
3168 src/test/test-id128.c
3170 test_id128_LDADD = \
3171 libsystemd-internal.la \
3172 libsystemd-shared.la
3177 # ------------------------------------------------------------------------------
3179 rootlibexec_PROGRAMS += \
3182 systemd_activate_SOURCES = \
3183 src/activate/activate.c
3185 systemd_activate_LDADD = \
3186 libsystemd-label.la \
3187 libsystemd-internal.la \
3188 libsystemd-shared.la
3190 # ------------------------------------------------------------------------------
3191 systemd_journald_SOURCES = \
3192 src/journal/journald.c \
3193 src/journal/journald-server.h
3195 systemd_journald_LDADD = \
3196 libsystemd-journal-core.la \
3197 libsystemd-internal.la \
3198 libsystemd-shared.la
3200 systemd_cat_SOURCES = \
3203 systemd_cat_LDADD = \
3204 libsystemd-journal-core.la
3207 rootlibexec_PROGRAMS += \
3208 systemd-journal-remote
3210 systemd_journal_remote_SOURCES = \
3211 src/journal/journal-remote-parse.h \
3212 src/journal/journal-remote-parse.c \
3213 src/journal/journal-remote-write.h \
3214 src/journal/journal-remote-write.c \
3215 src/journal/journal-remote.c
3217 systemd_journal_remote_LDADD = \
3218 libsystemd-internal.la \
3219 libsystemd-journal-core.la
3221 systemd_journal_remote_SOURCES += \
3222 src/journal/microhttpd-util.h \
3223 src/journal/microhttpd-util.c
3225 systemd_journal_remote_CFLAGS = \
3227 $(MICROHTTPD_CFLAGS)
3229 systemd_journal_remote_LDADD += \
3233 systemd_journal_remote_LDADD += \
3238 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3239 journalctl_CFLAGS = \
3242 journalctl_SOURCES = \
3243 src/journal/journalctl.c
3245 journalctl_LDADD = \
3246 libsystemd-journal-internal.la \
3247 libsystemd-internal.la \
3248 libsystemd-logs.la \
3249 libsystemd-shared.la
3252 journalctl_LDADD += \
3257 journalctl_SOURCES += \
3258 src/journal/journal-qrcode.c \
3259 src/journal/journal-qrcode.h
3261 journalctl_CFLAGS += \
3264 journalctl_LDADD += \
3268 test_journal_SOURCES = \
3269 src/journal/test-journal.c
3271 test_journal_LDADD = \
3272 libsystemd-journal-core.la
3274 test_journal_send_SOURCES = \
3275 src/journal/test-journal-send.c
3277 test_journal_send_LDADD = \
3278 libsystemd-journal-core.la
3280 test_journal_syslog_SOURCES = \
3281 src/journal/test-journal-syslog.c
3283 test_journal_syslog_LDADD = \
3284 libsystemd-journal-core.la
3286 test_journal_match_SOURCES = \
3287 src/journal/test-journal-match.c
3289 test_journal_match_LDADD = \
3290 libsystemd-journal-core.la
3292 test_journal_enum_SOURCES = \
3293 src/journal/test-journal-enum.c
3295 test_journal_enum_LDADD = \
3296 libsystemd-journal-core.la
3298 test_journal_stream_SOURCES = \
3299 src/journal/test-journal-stream.c
3301 test_journal_stream_LDADD = \
3302 libsystemd-journal-core.la
3304 test_journal_flush_SOURCES = \
3305 src/journal/test-journal-flush.c
3307 test_journal_flush_LDADD = \
3308 libsystemd-journal-core.la
3310 test_journal_init_SOURCES = \
3311 src/journal/test-journal-init.c
3313 test_journal_init_LDADD = \
3314 libsystemd-journal-core.la
3316 test_journal_verify_SOURCES = \
3317 src/journal/test-journal-verify.c
3319 test_journal_verify_LDADD = \
3320 libsystemd-journal-core.la
3322 test_journal_interleaving_SOURCES = \
3323 src/journal/test-journal-interleaving.c
3325 test_journal_interleaving_LDADD = \
3326 libsystemd-journal-core.la
3328 test_mmap_cache_SOURCES = \
3329 src/journal/test-mmap-cache.c
3331 test_mmap_cache_LDADD = \
3332 libsystemd-journal-core.la
3334 test_catalog_SOURCES = \
3335 src/journal/test-catalog.c
3337 test_catalog_CPPFLAGS = \
3339 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3341 test_catalog_LDADD = \
3342 libsystemd-journal-core.la
3344 libsystemd_journal_core_la_SOURCES = \
3345 src/journal/journald-kmsg.c \
3346 src/journal/journald-kmsg.h \
3347 src/journal/journald-syslog.c \
3348 src/journal/journald-syslog.h \
3349 src/journal/journald-stream.c \
3350 src/journal/journald-stream.h \
3351 src/journal/journald-server.c \
3352 src/journal/journald-server.h \
3353 src/journal/journald-console.c \
3354 src/journal/journald-console.h \
3355 src/journal/journald-wall.c \
3356 src/journal/journald-wall.h \
3357 src/journal/journald-native.c \
3358 src/journal/journald-native.h \
3359 src/journal/journald-rate-limit.c \
3360 src/journal/journald-rate-limit.h \
3361 src/journal/journal-internal.h
3363 nodist_libsystemd_journal_core_la_SOURCES = \
3364 src/journal/journald-gperf.c
3366 libsystemd_journal_core_la_LIBADD = \
3367 libsystemd-journal-internal.la \
3368 libudev-internal.la \
3369 libsystemd-capability.la \
3370 libsystemd-label.la \
3371 libsystemd-internal.la \
3372 libsystemd-shared.la
3375 libsystemd_journal_core_la_LIBADD += \
3379 noinst_LTLIBRARIES += \
3380 libsystemd-journal-core.la
3382 journal-install-hook:
3383 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3384 -chown 0:0 $(DESTDIR)/var/log/journal
3385 -chmod 755 $(DESTDIR)/var/log/journal
3386 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3387 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3389 journal-uninstall-hook:
3390 -rmdir $(DESTDIR)/var/log/journal/
3392 INSTALL_EXEC_HOOKS += journal-install-hook
3393 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3395 # ------------------------------------------------------------------------------
3396 # Update catalog on installation. Do not bother if installing
3397 # in DESTDIR, since this is likely for packaging purposes.
3398 catalog-update-hook:
3399 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3401 INSTALL_DATA_HOOKS += \
3404 catalog-remove-hook:
3405 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3407 UNINSTALL_DATA_HOOKS += \
3416 test-journal-syslog \
3417 test-journal-match \
3418 test-journal-stream \
3420 test-journal-verify \
3421 test-journal-interleaving \
3422 test-journal-flush \
3426 pkginclude_HEADERS += \
3427 src/systemd/sd-journal.h \
3428 src/systemd/sd-messages.h \
3429 src/systemd/_sd-common.h
3431 libsystemd_journal_internal_la_SOURCES = \
3432 src/journal/sd-journal.c \
3433 src/systemd/sd-journal.h \
3434 src/systemd/_sd-common.h \
3435 src/journal/journal-file.c \
3436 src/journal/journal-file.h \
3437 src/journal/journal-vacuum.c \
3438 src/journal/journal-vacuum.h \
3439 src/journal/journal-verify.c \
3440 src/journal/journal-verify.h \
3441 src/journal/lookup3.c \
3442 src/journal/lookup3.h \
3443 src/journal/journal-send.c \
3444 src/journal/journal-def.h \
3445 src/journal/compress.h \
3446 src/journal/catalog.c \
3447 src/journal/catalog.h \
3448 src/journal/mmap-cache.c \
3449 src/journal/mmap-cache.h
3451 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3452 libsystemd_journal_internal_la_CFLAGS =
3455 libsystemd_journal_internal_la_LIBADD =
3458 libsystemd_journal_internal_la_SOURCES += \
3459 src/journal/compress.c
3461 libsystemd_journal_internal_la_CFLAGS += \
3464 libsystemd_journal_internal_la_LIBADD += \
3469 libsystemd_journal_internal_la_SOURCES += \
3470 src/journal/journal-authenticate.c \
3471 src/journal/journal-authenticate.h \
3472 src/journal/fsprg.c \
3475 libsystemd_journal_internal_la_LIBADD += \
3478 # fsprg.c is a drop-in file using void pointer arithmetic
3479 libsystemd_journal_internal_la_CFLAGS += \
3484 noinst_LTLIBRARIES += \
3485 libsystemd-journal-internal.la
3487 rootlibexec_PROGRAMS += \
3490 rootbin_PROGRAMS += \
3496 dist_systemunit_DATA += \
3497 units/systemd-journald.socket \
3498 units/systemd-journald-dev-log.socket
3500 nodist_systemunit_DATA += \
3501 units/systemd-journald.service \
3502 units/systemd-journal-flush.service
3504 dist_pkgsysconf_DATA += \
3505 src/journal/journald.conf
3507 dist_catalog_DATA = \
3508 catalog/systemd.fr.catalog \
3509 catalog/systemd.ru.catalog \
3510 catalog/systemd.it.catalog \
3511 catalog/systemd.catalog
3513 SOCKETS_TARGET_WANTS += \
3514 systemd-journald.socket \
3515 systemd-journald-dev-log.socket
3517 SYSINIT_TARGET_WANTS += \
3518 systemd-journald.service \
3519 systemd-journal-flush.service
3522 units/systemd-journald.service.in \
3523 units/systemd-journal-flush.service.in \
3524 src/journal/journald-gperf.gperf
3527 src/journal/journald-gperf.c
3529 # ------------------------------------------------------------------------------
3531 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3533 rootlibexec_PROGRAMS += \
3534 systemd-journal-gatewayd
3536 systemd_journal_gatewayd_SOURCES = \
3537 src/journal/journal-gatewayd.c \
3538 src/journal/microhttpd-util.h \
3539 src/journal/microhttpd-util.c
3541 systemd_journal_gatewayd_LDADD = \
3542 libsystemd-logs.la \
3543 libsystemd-journal-internal.la \
3544 libsystemd-internal.la \
3545 libsystemd-shared.la \
3549 systemd_journal_gatewayd_LDADD += \
3553 systemd_journal_gatewayd_CFLAGS = \
3555 $(MICROHTTPD_CFLAGS)
3557 systemd_journal_gatewayd_CPPFLAGS = \
3559 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3561 dist_systemunit_DATA += \
3562 units/systemd-journal-gatewayd.socket
3564 nodist_systemunit_DATA += \
3565 units/systemd-journal-gatewayd.service
3567 dist_gatewayddocumentroot_DATA = \
3568 src/journal/browse.html
3573 units/systemd-journal-gatewayd.service.in
3575 # ------------------------------------------------------------------------------
3577 systemd_socket_proxyd_SOURCES = \
3578 src/socket-proxy/socket-proxyd.c
3580 systemd_socket_proxyd_LDADD = \
3581 libsystemd-logs.la \
3582 libsystemd-internal.la \
3583 libsystemd-journal-internal.la \
3584 libsystemd-shared.la \
3585 libsystemd-resolve.la
3587 # ------------------------------------------------------------------------------
3589 systemd_coredump_SOURCES = \
3590 src/journal/coredump.c
3592 systemd_coredump_LDADD = \
3593 libsystemd-journal-internal.la \
3594 libsystemd-label.la \
3595 libsystemd-internal.la \
3596 libsystemd-shared.la
3598 rootlibexec_PROGRAMS += \
3601 systemd_coredumpctl_SOURCES = \
3602 src/journal/coredumpctl.c
3604 systemd_coredumpctl_LDADD = \
3605 libsystemd-journal-internal.la \
3606 libsystemd-internal.la \
3607 libsystemd-shared.la
3612 dist_bashcompletion_DATA += \
3613 shell-completion/bash/systemd-coredumpctl
3615 dist_zshcompletion_DATA += \
3616 shell-completion/zsh/_systemd-coredumpctl
3619 sysctl.d/50-coredump.conf
3622 sysctl.d/50-coredump.conf
3626 sysctl.d/50-coredump.conf.in
3628 # ------------------------------------------------------------------------------
3630 systemd_binfmt_SOURCES = \
3633 systemd_binfmt_LDADD = \
3634 libsystemd-shared.la
3636 rootlibexec_PROGRAMS += \
3639 dist_systemunit_DATA += \
3640 units/proc-sys-fs-binfmt_misc.automount \
3641 units/proc-sys-fs-binfmt_misc.mount
3643 nodist_systemunit_DATA += \
3644 units/systemd-binfmt.service
3647 $(prefix)/lib/binfmt.d \
3648 $(sysconfdir)/binfmt.d
3650 SYSINIT_TARGET_WANTS += \
3651 systemd-binfmt.service \
3652 proc-sys-fs-binfmt_misc.automount
3657 units/systemd-binfmt.service.in
3659 # ------------------------------------------------------------------------------
3661 systemd_vconsole_setup_SOURCES = \
3662 src/vconsole/vconsole-setup.c
3664 systemd_vconsole_setup_LDADD = \
3665 libsystemd-shared.la
3667 rootlibexec_PROGRAMS += \
3668 systemd-vconsole-setup
3670 nodist_systemunit_DATA += \
3671 units/systemd-vconsole-setup.service
3673 SYSINIT_TARGET_WANTS += \
3674 systemd-vconsole-setup.service
3678 units/systemd-vconsole-setup.service.in
3680 # ------------------------------------------------------------------------------
3682 systemd_readahead_SOURCES = \
3683 src/readahead/readahead.c \
3684 src/readahead/readahead-collect.c \
3685 src/readahead/readahead-replay.c \
3686 src/readahead/readahead-analyze.c \
3687 src/readahead/readahead-common.c \
3688 src/readahead/readahead-common.h
3690 systemd_readahead_LDADD = \
3691 libsystemd-internal.la \
3692 libudev-internal.la \
3693 libsystemd-shared.la
3696 src/readahead/sd-readahead.c \
3697 src/systemd/sd-readahead.h
3699 rootlibexec_PROGRAMS += \
3702 dist_systemunit_DATA += \
3703 units/systemd-readahead-drop.service \
3704 units/systemd-readahead-done.timer
3706 nodist_systemunit_DATA += \
3707 units/systemd-readahead-collect.service \
3708 units/systemd-readahead-replay.service \
3709 units/systemd-readahead-done.service
3714 test_ssd_SOURCES = \
3715 src/readahead/test-ssd.c \
3716 src/readahead/readahead-common.c \
3717 src/readahead/readahead-common.h
3720 libsystemd-internal.la \
3721 libudev-internal.la \
3722 libsystemd-shared.la
3727 units/systemd-readahead-collect.service.in \
3728 units/systemd-readahead-replay.service.in \
3729 units/systemd-readahead-done.service.in
3731 # ------------------------------------------------------------------------------
3733 systemd_bootchart_SOURCES = \
3734 src/bootchart/bootchart.c \
3735 src/bootchart/bootchart.h \
3736 src/bootchart/store.c \
3737 src/bootchart/store.h \
3738 src/bootchart/svg.c \
3741 systemd_bootchart_LDADD = \
3742 libsystemd-journal-internal.la \
3743 libsystemd-shared.la
3745 rootlibexec_PROGRAMS += \
3748 dist_pkgsysconf_DATA += \
3749 src/bootchart/bootchart.conf
3752 # ------------------------------------------------------------------------------
3753 if ENABLE_QUOTACHECK
3754 rootlibexec_PROGRAMS += \
3757 nodist_systemunit_DATA += \
3758 units/systemd-quotacheck.service
3760 systemd_quotacheck_SOURCES = \
3761 src/quotacheck/quotacheck.c
3763 systemd_quotacheck_LDADD = \
3764 libsystemd-shared.la
3768 units/systemd-quotacheck.service.in
3770 nodist_systemunit_DATA += \
3771 units/quotaon.service
3773 # ------------------------------------------------------------------------------
3774 if ENABLE_RANDOMSEED
3775 rootlibexec_PROGRAMS += \
3778 nodist_systemunit_DATA += \
3779 units/systemd-random-seed.service
3781 systemd_random_seed_SOURCES = \
3782 src/random-seed/random-seed.c
3784 systemd_random_seed_LDADD = \
3785 libsystemd-label.la \
3786 libsystemd-shared.la
3788 SYSINIT_TARGET_WANTS += \
3789 systemd-random-seed.service
3794 units/systemd-random-seed.service.in
3796 # ------------------------------------------------------------------------------
3798 rootlibexec_PROGRAMS += \
3801 nodist_systemunit_DATA += \
3802 units/systemd-backlight@.service
3804 systemd_backlight_SOURCES = \
3805 src/backlight/backlight.c
3807 systemd_backlight_LDADD = \
3808 libsystemd-label.la \
3809 libudev-internal.la \
3810 libsystemd-shared.la
3814 units/systemd-backlight@.service.in
3816 # ------------------------------------------------------------------------------
3818 rootlibexec_PROGRAMS += \
3821 nodist_systemunit_DATA += \
3822 units/systemd-rfkill@.service
3824 systemd_rfkill_SOURCES = \
3827 systemd_rfkill_LDADD = \
3828 libsystemd-label.la \
3829 libudev-internal.la \
3830 libsystemd-shared.la
3834 units/systemd-rfkill@.service.in
3836 # ------------------------------------------------------------------------------
3837 if HAVE_LIBCRYPTSETUP
3838 rootlibexec_PROGRAMS += \
3841 systemgenerator_PROGRAMS += \
3842 systemd-cryptsetup-generator
3844 dist_systemunit_DATA += \
3845 units/cryptsetup.target
3847 systemd_cryptsetup_SOURCES = \
3848 src/cryptsetup/cryptsetup.c
3850 systemd_cryptsetup_CFLAGS = \
3852 $(LIBCRYPTSETUP_CFLAGS)
3854 systemd_cryptsetup_LDADD = \
3855 libsystemd-label.la \
3856 libudev-internal.la \
3857 libsystemd-shared.la \
3858 $(LIBCRYPTSETUP_LIBS)
3860 systemd_cryptsetup_generator_SOURCES = \
3861 src/cryptsetup/cryptsetup-generator.c
3863 systemd_cryptsetup_generator_LDADD = \
3864 libsystemd-label.la \
3865 libsystemd-shared.la
3867 SYSINIT_TARGET_WANTS += \
3872 # ------------------------------------------------------------------------------
3874 systemd_hostnamed_SOURCES = \
3875 src/hostname/hostnamed.c
3877 systemd_hostnamed_LDADD = \
3878 libsystemd-label.la \
3879 libsystemd-internal.la \
3880 libsystemd-shared.la
3882 rootlibexec_PROGRAMS += \
3885 nodist_systemunit_DATA += \
3886 units/systemd-hostnamed.service
3888 dist_systemunit_DATA += \
3889 units/org.freedesktop.hostname1.busname
3891 dist_dbuspolicy_DATA += \
3892 src/hostname/org.freedesktop.hostname1.conf
3894 dist_dbussystemservice_DATA += \
3895 src/hostname/org.freedesktop.hostname1.service
3897 polkitpolicy_files += \
3898 src/hostname/org.freedesktop.hostname1.policy
3900 SYSTEM_UNIT_ALIASES += \
3901 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3903 BUSNAMES_TARGET_WANTS += \
3904 org.freedesktop.hostname1.busname
3906 hostnamectl_SOURCES = \
3907 src/hostname/hostnamectl.c
3909 hostnamectl_LDADD = \
3910 libsystemd-internal.la \
3911 libsystemd-shared.la
3916 dist_bashcompletion_DATA += \
3917 shell-completion/bash/hostnamectl
3919 dist_zshcompletion_DATA += \
3920 shell-completion/zsh/_hostnamectl
3924 polkitpolicy_in_files += \
3925 src/hostname/org.freedesktop.hostname1.policy.in
3928 units/systemd-hostnamed.service.in
3930 # ------------------------------------------------------------------------------
3932 dist_systemunit_DATA += \
3933 units/org.freedesktop.systemd1.busname
3935 BUSNAMES_TARGET_WANTS += \
3936 org.freedesktop.systemd1.busname
3939 # ------------------------------------------------------------------------------
3941 systemd_localed_SOURCES = \
3942 src/locale/localed.c
3944 systemd_localed_LDADD = \
3945 libsystemd-label.la \
3946 libsystemd-internal.la \
3947 libsystemd-shared.la
3949 nodist_systemunit_DATA += \
3950 units/systemd-localed.service
3952 dist_systemunit_DATA += \
3953 units/org.freedesktop.locale1.busname
3955 rootlibexec_PROGRAMS += \
3958 dist_dbuspolicy_DATA += \
3959 src/locale/org.freedesktop.locale1.conf
3961 dist_dbussystemservice_DATA += \
3962 src/locale/org.freedesktop.locale1.service
3964 polkitpolicy_files += \
3965 src/locale/org.freedesktop.locale1.policy
3967 SYSTEM_UNIT_ALIASES += \
3968 systemd-localed.service dbus-org.freedesktop.locale1.service
3970 BUSNAMES_TARGET_WANTS += \
3971 org.freedesktop.locale1.busname
3973 dist_pkgdata_DATA += \
3974 src/locale/kbd-model-map
3976 dist_noinst_SCRIPT = \
3977 src/locale/generate-kbd-model-map
3979 update-kbd-model-map: src/locale/generate-kbd-model-map
3980 $PYTHON $< >src/locale/kbd-model-map
3982 localectl_SOURCES = \
3983 src/locale/localectl.c
3986 libsystemd-internal.la \
3987 libsystemd-shared.la
3992 dist_bashcompletion_DATA += \
3993 shell-completion/bash/localectl
3995 dist_zshcompletion_DATA += \
3996 shell-completion/zsh/_localectl
4000 .PHONY: update-kbd-model-map
4002 polkitpolicy_in_files += \
4003 src/locale/org.freedesktop.locale1.policy.in
4006 units/systemd-localed.service.in
4008 # ------------------------------------------------------------------------------
4010 systemd_timedated_SOURCES = \
4011 src/timedate/timedated.c
4013 systemd_timedated_LDADD = \
4014 libsystemd-label.la \
4015 libsystemd-internal.la \
4016 libsystemd-shared.la
4018 rootlibexec_PROGRAMS += \
4021 dist_dbussystemservice_DATA += \
4022 src/timedate/org.freedesktop.timedate1.service
4024 dist_dbuspolicy_DATA += \
4025 src/timedate/org.freedesktop.timedate1.conf
4027 nodist_systemunit_DATA += \
4028 units/systemd-timedated.service
4030 dist_systemunit_DATA += \
4031 units/org.freedesktop.timedate1.busname
4033 polkitpolicy_files += \
4034 src/timedate/org.freedesktop.timedate1.policy
4037 $(prefix)/lib/systemd/ntp-units.d \
4038 $(sysconfdir)/systemd/ntp-units.d
4040 SYSTEM_UNIT_ALIASES += \
4041 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4043 BUSNAMES_TARGET_WANTS += \
4044 org.freedesktop.timedate1.busname
4046 timedatectl_SOURCES = \
4047 src/timedate/timedatectl.c
4049 timedatectl_LDADD = \
4050 libsystemd-internal.la \
4051 libsystemd-shared.la
4056 dist_bashcompletion_DATA += \
4057 shell-completion/bash/timedatectl
4059 dist_zshcompletion_DATA += \
4060 shell-completion/zsh/_timedatectl
4063 polkitpolicy_in_files += \
4064 src/timedate/org.freedesktop.timedate1.policy.in
4067 units/systemd-timedated.service.in
4069 # ------------------------------------------------------------------------------
4071 systemd_timesyncd_SOURCES = \
4072 src/timesync/timesyncd.c \
4073 src/timesync/timesyncd.h
4075 nodist_systemd_timesyncd_SOURCES = \
4076 src/timesync/timesyncd-gperf.c
4079 src/timesync/timesyncd-gperf.gperf
4082 src/timesync/timesyncd-gperf.c
4084 systemd_timesyncd_LDADD = \
4085 libsystemd-resolve.la \
4086 libsystemd-network.la \
4087 libsystemd-label.la \
4088 libsystemd-capability.la \
4089 libsystemd-internal.la \
4090 libsystemd-shared.la \
4093 rootlibexec_PROGRAMS += \
4096 nodist_systemunit_DATA += \
4097 units/systemd-timesyncd.service
4100 units/systemd-timesyncd.service.in
4102 nodist_pkgsysconf_DATA += \
4103 src/timesync/timesyncd.conf
4106 src/timesync/timesyncd.conf.in
4109 src/timesync/timesyncd.conf
4111 dist_ntpunits_DATA = \
4112 src/timesync/90-systemd.list
4116 # ------------------------------------------------------------------------------
4118 libnss_myhostname_la_SOURCES = \
4119 src/nss-myhostname/nss-myhostname.c \
4120 src/nss-myhostname/ifconf.h \
4121 src/nss-myhostname/netlink.c
4123 libnss_myhostname_la_LDFLAGS = \
4131 libnss_myhostname_la_LIBADD = \
4132 libsystemd-shared.la \
4133 libsystemd-internal.la
4135 lib_LTLIBRARIES += \
4136 libnss_myhostname.la
4139 # ------------------------------------------------------------------------------
4141 systemd_machined_SOURCES = \
4142 src/machine/machined.c \
4143 src/machine/machined.h
4145 systemd_machined_LDADD = \
4146 libsystemd-machine-core.la
4148 rootlibexec_PROGRAMS += \
4151 libsystemd_machine_core_la_SOURCES = \
4152 src/machine/machined-dbus.c \
4153 src/machine/machine.c \
4154 src/machine/machine.h \
4155 src/machine/machine-dbus.c
4157 libsystemd_machine_core_la_LIBADD = \
4158 libsystemd-label.la \
4159 libsystemd-internal.la \
4160 libudev-internal.la \
4161 libsystemd-shared.la
4163 noinst_LTLIBRARIES += \
4164 libsystemd-machine-core.la
4166 machinectl_SOURCES = \
4167 src/machine/machinectl.c
4169 machinectl_LDADD = \
4170 libsystemd-internal.la \
4171 libsystemd-shared.la
4173 rootbin_PROGRAMS += \
4176 dist_bashcompletion_DATA += \
4177 shell-completion/bash/machinectl
4179 test_machine_tables_SOURCES = \
4180 src/machine/test-machine-tables.c
4182 test_machine_tables_LDADD = \
4183 libsystemd-machine-core.la
4188 nodist_systemunit_DATA += \
4189 units/systemd-machined.service
4191 dist_systemunit_DATA += \
4192 units/machine.slice \
4193 units/org.freedesktop.machine1.busname
4195 dist_dbussystemservice_DATA += \
4196 src/machine/org.freedesktop.machine1.service
4198 dist_dbuspolicy_DATA += \
4199 src/machine/org.freedesktop.machine1.conf
4201 dist_zshcompletion_DATA += \
4202 shell-completion/zsh/_machinectl \
4203 shell-completion/zsh/_sd_machines
4205 SYSTEM_UNIT_ALIASES += \
4206 systemd-machined.service dbus-org.freedesktop.machine1.service
4208 BUSNAMES_TARGET_WANTS += \
4209 org.freedesktop.machine1.busname
4212 units/systemd-machined.service.in
4216 # ------------------------------------------------------------------------------
4218 systemd_resolved_SOURCES = \
4219 src/resolve/resolved.h \
4220 src/resolve/resolved.c \
4221 src/resolve/resolved-manager.c
4223 systemd_resolved_CFLAGS = \
4227 nodist_systemd_resolved_SOURCES = \
4228 src/resolve/resolved-gperf.c
4231 src/resolve/resolved-gperf.gperf
4234 src/resolve/resolved-gperf.c
4236 systemd_resolved_LDADD = \
4237 libsystemd-capability.la \
4238 libsystemd-network.la \
4239 libsystemd-label.la \
4240 libsystemd-internal.la \
4241 libsystemd-shared.la
4243 rootlibexec_PROGRAMS += \
4246 nodist_systemunit_DATA += \
4247 units/systemd-resolved.service
4250 units/systemd-resolved.service.in
4252 GENERAL_ALIASES += \
4253 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4255 nodist_pkgsysconf_DATA += \
4256 src/resolve/resolved.conf
4259 src/resolve/resolved.conf.in
4262 src/resolve/resolved.conf
4266 # ------------------------------------------------------------------------------
4268 rootlibexec_PROGRAMS += \
4271 systemd_networkd_SOURCES = \
4272 src/network/networkd.c
4274 systemd_networkd_LDADD = \
4275 libsystemd-networkd-core.la \
4276 libsystemd-capability.la
4278 noinst_LTLIBRARIES += \
4279 libsystemd-networkd-core.la
4281 libsystemd_networkd_core_la_CFLAGS = \
4284 libsystemd_networkd_core_la_SOURCES = \
4285 src/libsystemd-network/network-internal.h \
4286 src/network/networkd.h \
4287 src/network/networkd-link.c \
4288 src/network/networkd-netdev.c \
4289 src/network/networkd-tunnel.c \
4290 src/network/networkd-veth.c \
4291 src/network/networkd-network.c \
4292 src/network/networkd-address.c \
4293 src/network/networkd-route.c \
4294 src/network/networkd-manager.c
4296 nodist_libsystemd_networkd_core_la_SOURCES = \
4297 src/network/networkd-network-gperf.c \
4298 src/network/networkd-netdev-gperf.c
4300 libsystemd_networkd_core_la_LIBADD = \
4301 libudev-internal.la \
4302 libsystemd-internal.la \
4303 libsystemd-network.la \
4304 libsystemd-label.la \
4305 libsystemd-shared.la
4307 rootlibexec_PROGRAMS += \
4308 systemd-networkd-wait-online
4310 systemd_networkd_wait_online_CFLAGS = \
4313 systemd_networkd_wait_online_SOURCES = \
4314 src/libsystemd-network/network-internal.h \
4315 src/network/networkd-wait-online.c \
4316 src/network/networkd-wait-online.h
4318 systemd_networkd_wait_online_LDADD = \
4319 libsystemd-network.la \
4320 libudev-internal.la \
4321 libsystemd-internal.la \
4322 libsystemd-shared.la
4324 test_network_SOURCES = \
4325 src/network/test-network.c
4327 test_network_CFLAGS = \
4330 test_network_LDADD = \
4331 libsystemd-networkd-core.la
4336 nodist_systemunit_DATA += \
4337 units/systemd-networkd.service \
4338 units/systemd-networkd-wait-online.service
4340 GENERAL_ALIASES += \
4341 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4342 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4345 src/network/networkd-network-gperf.gperf \
4346 src/network/networkd-netdev-gperf.gperf \
4347 units/systemd-networkd.service.in \
4348 units/systemd-networkd-wait-online.service.in
4351 src/network/networkd-network-gperf.c \
4352 src/network/networkd-netdev-gperf.c
4355 # ------------------------------------------------------------------------------
4357 systemd_logind_SOURCES = \
4358 src/login/logind.c \
4361 nodist_systemd_logind_SOURCES = \
4362 src/login/logind-gperf.c
4364 systemd_logind_LDADD = \
4365 libsystemd-logind-core.la
4367 libsystemd_logind_core_la_SOURCES = \
4368 src/login/logind-core.c \
4369 src/login/logind-device.c \
4370 src/login/logind-device.h \
4371 src/login/logind-button.c \
4372 src/login/logind-button.h \
4373 src/login/logind-action.c \
4374 src/login/logind-action.h \
4375 src/login/logind-seat.c \
4376 src/login/logind-seat.h \
4377 src/login/logind-session.c \
4378 src/login/logind-session.h \
4379 src/login/logind-session-device.c \
4380 src/login/logind-session-device.h \
4381 src/login/logind-user.c \
4382 src/login/logind-user.h \
4383 src/login/logind-inhibit.c \
4384 src/login/logind-inhibit.h \
4385 src/login/logind-dbus.c \
4386 src/login/logind-session-dbus.c \
4387 src/login/logind-seat-dbus.c \
4388 src/login/logind-user-dbus.c \
4389 src/login/logind-acl.h
4391 libsystemd_logind_core_la_LIBADD = \
4392 libsystemd-label.la \
4393 libsystemd-capability.la \
4394 libsystemd-internal.la \
4395 libudev-internal.la \
4396 libsystemd-shared.la
4399 libsystemd_logind_core_la_SOURCES += \
4400 src/login/logind-acl.c
4402 libsystemd_logind_core_la_LIBADD += \
4406 noinst_LTLIBRARIES += \
4407 libsystemd-logind-core.la
4409 systemd_user_sessions_SOURCES = \
4410 src/login/user-sessions.c
4412 systemd_user_sessions_LDADD = \
4413 libsystemd-shared.la
4415 rootlibexec_PROGRAMS += \
4417 systemd-user-sessions
4419 loginctl_SOURCES = \
4420 src/login/loginctl.c \
4421 src/login/sysfs-show.c
4424 libsystemd-internal.la \
4425 libudev-internal.la \
4426 libsystemd-shared.la
4428 rootbin_PROGRAMS += \
4431 dist_bashcompletion_DATA += \
4432 shell-completion/bash/loginctl
4434 dist_zshcompletion_DATA += \
4435 shell-completion/zsh/_loginctl \
4436 shell-completion/zsh/_systemd-inhibit
4438 systemd_inhibit_SOURCES = \
4441 systemd_inhibit_LDADD = \
4442 libsystemd-internal.la \
4443 libsystemd-shared.la
4445 rootbin_PROGRAMS += \
4448 test_login_SOURCES = \
4449 src/libsystemd/sd-login/test-login.c
4451 test_login_LDADD = \
4452 libsystemd-internal.la \
4453 libsystemd-shared.la
4455 test_login_shared_SOURCES = \
4456 src/login/test-login-shared.c
4458 test_login_shared_LDADD = \
4459 libsystemd-internal.la \
4460 libsystemd-shared.la
4462 test_inhibit_SOURCES = \
4463 src/login/test-inhibit.c
4465 test_inhibit_LDADD = \
4466 libsystemd-internal.la \
4467 libsystemd-shared.la
4469 test_login_tables_SOURCES = \
4470 src/login/test-login-tables.c
4472 test_login_tables_LDADD = \
4473 libsystemd-logind-core.la
4484 pam_systemd_la_SOURCES = \
4485 src/login/pam-module.c
4487 pam_systemd_la_CFLAGS = \
4492 pam_systemd_la_LDFLAGS = \
4498 -export-symbols-regex '^pam_sm_.*'
4500 pam_systemd_la_LIBADD = \
4501 libsystemd-capability.la \
4502 libsystemd-internal.la \
4503 libsystemd-shared.la \
4506 pamlib_LTLIBRARIES = \
4509 dist_pamconf_DATA = \
4510 src/login/systemd-user
4513 nodist_systemunit_DATA += \
4514 units/systemd-logind.service \
4515 units/systemd-user-sessions.service
4517 dist_systemunit_DATA += \
4519 units/org.freedesktop.login1.busname
4521 dist_dbussystemservice_DATA += \
4522 src/login/org.freedesktop.login1.service
4524 dist_dbuspolicy_DATA += \
4525 src/login/org.freedesktop.login1.conf
4527 dist_pkgsysconf_DATA += \
4528 src/login/logind.conf
4530 polkitpolicy_files += \
4531 src/login/org.freedesktop.login1.policy
4536 MULTI_USER_TARGET_WANTS += \
4537 systemd-logind.service \
4538 systemd-user-sessions.service
4540 SYSTEM_UNIT_ALIASES += \
4541 systemd-logind.service dbus-org.freedesktop.login1.service
4543 BUSNAMES_TARGET_WANTS += \
4544 org.freedesktop.login1.busname
4546 if ENABLE_MULTI_SEAT_X
4548 systemd_multi_seat_x_SOURCES = \
4549 src/login/multi-seat-x.c
4551 systemd_multi_seat_x_LDADD = \
4552 libsystemd-label.la \
4553 libsystemd-shared.la
4555 rootlibexec_PROGRAMS += \
4556 systemd-multi-seat-x
4560 dist_udevrules_DATA += \
4561 src/login/70-uaccess.rules \
4562 src/login/70-power-switch.rules
4564 nodist_udevrules_DATA += \
4565 src/login/71-seat.rules \
4566 src/login/73-seat-late.rules
4569 src/login/logind-gperf.c \
4570 src/login/71-seat.rules \
4571 src/login/73-seat-late.rules
4574 polkitpolicy_in_files += \
4575 src/login/org.freedesktop.login1.policy.in
4578 src/login/logind-gperf.gperf \
4579 src/login/71-seat.rules.in \
4580 src/login/73-seat-late.rules.in \
4581 units/systemd-logind.service.in \
4582 units/systemd-user-sessions.service.in
4584 # ------------------------------------------------------------------------------
4585 if HAVE_PYTHON_DEVEL
4586 pkgpyexec_LTLIBRARIES = \
4593 _journal_la_SOURCES = \
4594 src/python-systemd/_journal.c
4596 _journal_la_CFLAGS = \
4598 -fvisibility=default \
4599 $(PYTHON_DEVEL_CFLAGS)
4601 _journal_la_LDFLAGS = \
4607 _journal_la_LIBADD = \
4608 $(PYTHON_DEVEL_LIBS) \
4611 id128_la_SOURCES = \
4612 src/python-systemd/id128.c \
4613 src/python-systemd/id128-constants.h \
4614 src/python-systemd/pyutil.c \
4615 src/python-systemd/pyutil.h
4619 -fvisibility=default \
4620 $(PYTHON_DEVEL_CFLAGS) \
4621 -I$(top_builddir)/src/python-systemd
4623 id128_la_LDFLAGS = \
4630 $(PYTHON_DEVEL_LIBS) \
4631 libsystemd-shared.la \
4634 _daemon_la_SOURCES = \
4635 src/python-systemd/_daemon.c \
4636 src/python-systemd/pyutil.c \
4637 src/python-systemd/pyutil.h
4639 _daemon_la_CFLAGS = \
4641 -fvisibility=default \
4642 $(PYTHON_DEVEL_CFLAGS) \
4643 -I$(top_builddir)/src/python-systemd
4645 _daemon_la_LDFLAGS = \
4651 _daemon_la_LIBADD = \
4652 $(PYTHON_DEVEL_LIBS) \
4653 libsystemd-shared.la \
4656 _reader_la_SOURCES = \
4657 src/python-systemd/_reader.c \
4658 src/python-systemd/pyutil.c \
4659 src/python-systemd/pyutil.h
4661 _reader_la_CFLAGS = \
4663 -fvisibility=default \
4664 $(PYTHON_DEVEL_CFLAGS)
4666 _reader_la_LDFLAGS = \
4672 _reader_la_LIBADD = \
4673 $(PYTHON_DEVEL_LIBS) \
4674 libsystemd-shared.la \
4677 login_la_SOURCES = \
4678 src/python-systemd/login.c \
4679 src/python-systemd/pyutil.c \
4680 src/python-systemd/pyutil.h
4684 -fvisibility=default \
4685 $(PYTHON_DEVEL_CFLAGS)
4687 login_la_LDFLAGS = \
4694 $(PYTHON_DEVEL_LIBS) \
4695 libsystemd-shared.la \
4698 dist_pkgpyexec_PYTHON = \
4699 src/python-systemd/journal.py \
4700 src/python-systemd/daemon.py \
4701 src/python-systemd/__init__.py
4703 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4704 $(AM_V_at)$(MKDIR_P) $(dir $@)
4705 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4708 src/python-systemd/id128-constants.h
4710 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4712 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4713 $(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/
4714 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4717 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4718 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4721 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4722 $(MAKE) DESTDIR="$$dir" install && \
4723 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4728 CLEAN_LOCAL_HOOKS += clean-sphinx
4730 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4733 -rm -rf docs/html/python-systemd/
4735 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4737 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4738 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4740 # ------------------------------------------------------------------------------
4741 if ENABLE_COMPAT_LIBS
4743 src/compat-libs/linkwarning.h
4745 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4746 $(AM_V_at)$(MKDIR_P) $(dir $@)
4747 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4750 libsystemd-journal.c \
4751 libsystemd-login.c \
4752 libsystemd-id128.c \
4755 libsystemd_journal_la_SOURCES = \
4756 libsystemd-journal.c \
4757 src/compat-libs/libsystemd-journal.sym
4759 libsystemd_journal_la_CPPFLAGS = \
4761 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4763 libsystemd_journal_la_LDFLAGS = \
4765 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4766 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
4768 libsystemd_journal_la_LIBADD = \
4769 libsystemd-journal-internal.la \
4770 libsystemd-internal.la \
4771 libsystemd-shared.la
4773 libsystemd_login_la_SOURCES = \
4774 libsystemd-login.c \
4775 src/compat-libs/libsystemd-login.sym
4777 libsystemd_login_la_CPPFLAGS = \
4779 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4781 libsystemd_login_la_LDFLAGS = \
4783 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4784 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
4786 libsystemd_login_la_LIBADD = \
4787 libsystemd-internal.la \
4788 libsystemd-shared.la
4790 libsystemd_id128_la_SOURCES = \
4791 libsystemd-id128.c \
4792 src/compat-libs/libsystemd-id128.sym
4794 libsystemd_id128_la_CPPFLAGS = \
4796 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4798 libsystemd_id128_la_LDFLAGS = \
4800 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
4801 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
4803 libsystemd_id128_la_LIBADD = \
4804 libsystemd-internal.la \
4805 libsystemd-shared.la
4807 libsystemd_daemon_la_SOURCES = \
4808 libsystemd-daemon.c \
4809 src/compat-libs/libsystemd-daemon.sym
4811 libsystemd_daemon_la_CPPFLAGS = \
4813 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4815 libsystemd_daemon_la_LDFLAGS = \
4817 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
4818 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
4820 libsystemd_daemon_la_LIBADD = \
4821 libsystemd-internal.la \
4822 libsystemd-shared.la
4824 lib_LTLIBRARIES += \
4825 libsystemd-journal.la \
4826 libsystemd-login.la \
4827 libsystemd-id128.la \
4828 libsystemd-daemon.la
4830 pkgconfiglib_DATA += \
4831 src/compat-libs/libsystemd-journal.pc \
4832 src/compat-libs/libsystemd-login.pc \
4833 src/compat-libs/libsystemd-id128.pc \
4834 src/compat-libs/libsystemd-daemon.pc
4836 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4837 compat-lib-install-hook:
4838 libname=libsystemd-login.so && $(move-to-rootlibdir)
4839 libname=libsystemd-journal.so && $(move-to-rootlibdir)
4840 libname=libsystemd-id128.so && $(move-to-rootlibdir)
4841 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
4843 compat-lib-uninstall-hook:
4844 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4845 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
4846 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
4847 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
4849 INSTALL_EXEC_HOOKS += compat-lib-install-hook
4850 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
4854 src/compat-libs/libsystemd-journal.pc.in \
4855 src/compat-libs/libsystemd-login.pc.in \
4856 src/compat-libs/libsystemd-id128.pc.in \
4857 src/compat-libs/libsystemd-daemon.pc.in
4859 # ------------------------------------------------------------------------------
4861 '|rootlibexecdir=$(rootlibexecdir)|' \
4862 '|rootbindir=$(rootbindir)|' \
4863 '|bindir=$(bindir)|' \
4864 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4865 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4866 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4867 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4868 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4869 '|pkgdatadir=$(pkgdatadir)|' \
4870 '|systemunitdir=$(systemunitdir)|' \
4871 '|userunitdir=$(userunitdir)|' \
4872 '|systempresetdir=$(systempresetdir)|' \
4873 '|userpresetdir=$(userpresetdir)|' \
4874 '|udevhwdbdir=$(udevhwdbdir)|' \
4875 '|udevrulesdir=$(udevrulesdir)|' \
4876 '|catalogdir=$(catalogdir)|' \
4877 '|tmpfilesdir=$(tmpfilesdir)|' \
4878 '|sysctldir=$(sysctldir)|' \
4879 '|systemgeneratordir=$(systemgeneratordir)|' \
4880 '|usergeneratordir=$(usergeneratordir)|' \
4881 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4882 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4883 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4884 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4885 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4886 '|prefix=$(prefix)|' \
4887 '|exec_prefix=$(exec_prefix)|' \
4888 '|libdir=$(libdir)|' \
4889 '|includedir=$(includedir)|' \
4890 '|VERSION=$(VERSION)|' \
4891 '|rootprefix=$(rootprefix)|' \
4892 '|udevlibexecdir=$(udevlibexecdir)|' \
4893 '|SUSHELL=$(SUSHELL)|' \
4894 '|DEBUGTTY=$(DEBUGTTY)|' \
4897 '|MKDIR_P=$(MKDIR_P)|' \
4898 '|QUOTAON=$(QUOTAON)|' \
4899 '|QUOTACHECK=$(QUOTACHECK)|' \
4900 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4901 '|VARLOGDIR=$(varlogdir)|' \
4902 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4903 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4904 '|PYTHON=$(PYTHON)|' \
4905 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
4906 '|NTP_SERVERS=$(NTP_SERVERS)|' \
4907 '|DNS_SERVERS=$(DNS_SERVERS)|' \
4908 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
4909 '|systemgidmax=$(SYSTEM_GID_MAX)|'
4912 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4913 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4922 sysctl.d/%: sysctl.d/%.in
4928 src/core/macros.%: src/core/macros.%.in
4931 src/%.policy.in: src/%.policy.in.in
4942 $(AM_V_GEN)chmod +x $@
4944 src/%.c: src/%.gperf
4945 $(AM_V_at)$(MKDIR_P) $(dir $@)
4946 $(AM_V_GPERF)$(GPERF) < $< > $@
4949 $(AM_V_at)$(MKDIR_P) $(dir $@)
4950 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4953 $(AM_V_at)$(MKDIR_P) $(dir $@)
4954 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4956 units/user/%: units/%.m4
4957 $(AM_V_at)$(MKDIR_P) $(dir $@)
4958 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4961 nodist_polkitpolicy_DATA = \
4962 $(polkitpolicy_files) \
4963 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4967 $(polkitpolicy_in_files) \
4968 $(polkitpolicy_in_in_files)
4971 $(nodist_systemunit_DATA) \
4972 $(nodist_userunit_DATA) \
4973 $(pkgconfigdata_DATA) \
4974 $(pkgconfiglib_DATA) \
4975 $(nodist_polkitpolicy_DATA)
4977 # ------------------------------------------------------------------------------
4979 man/custom-entities.ent: configure.ac
4980 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4981 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4982 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
4986 man/custom-entities.ent
4991 --stringparam man.output.quietly 1 \
4992 --stringparam funcsynopsis.style ansi \
4993 --stringparam man.authors.section.enabled 0 \
4994 --stringparam man.copyright.section.enabled 0 \
4995 --stringparam systemd.version $(VERSION) \
4996 --path '$(builddir)/man:$(srcdir)/man'
4998 XSLTPROC_PROCESS_MAN = \
4999 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5001 XSLTPROC_PROCESS_HTML = \
5002 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5004 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5005 $(XSLTPROC_PROCESS_MAN)
5007 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5008 $(XSLTPROC_PROCESS_MAN)
5010 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5011 $(XSLTPROC_PROCESS_MAN)
5013 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5014 $(XSLTPROC_PROCESS_MAN)
5016 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5017 $(XSLTPROC_PROCESS_MAN)
5019 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5020 $(XSLTPROC_PROCESS_HTML)
5023 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5029 man/custom-html.xsl \
5032 # ------------------------------------------------------------------------------
5035 docs/sysvinit/README
5040 docs/sysvinit/README: docs/sysvinit/README.in
5043 docs/var-log/README: docs/var-log/README.in
5047 docs/sysvinit/README \
5052 docs/sysvinit/README.in \
5053 docs/var-log/README.in
5055 SOCKETS_TARGET_WANTS += \
5056 systemd-initctl.socket \
5057 systemd-shutdownd.socket
5060 RUNLEVEL1_TARGET_WANTS += \
5061 systemd-update-utmp-runlevel.service
5062 RUNLEVEL2_TARGET_WANTS += \
5063 systemd-update-utmp-runlevel.service
5064 RUNLEVEL3_TARGET_WANTS += \
5065 systemd-update-utmp-runlevel.service
5066 RUNLEVEL4_TARGET_WANTS += \
5067 systemd-update-utmp-runlevel.service
5068 RUNLEVEL5_TARGET_WANTS += \
5069 systemd-update-utmp-runlevel.service
5071 SYSINIT_TARGET_WANTS += \
5072 systemd-update-utmp.service
5073 LOCAL_FS_TARGET_WANTS += \
5074 systemd-remount-fs.service \
5076 MULTI_USER_TARGET_WANTS += \
5078 systemd-ask-password-wall.path
5079 SYSINIT_TARGET_WANTS += \
5080 dev-hugepages.mount \
5082 sys-kernel-config.mount \
5083 sys-kernel-debug.mount \
5084 sys-fs-fuse-connections.mount \
5085 systemd-sysctl.service \
5086 systemd-ask-password-console.path
5089 SYSTEM_UNIT_ALIASES += \
5090 poweroff.target runlevel0.target \
5091 rescue.target runlevel1.target \
5092 multi-user.target runlevel2.target \
5093 multi-user.target runlevel3.target \
5094 multi-user.target runlevel4.target \
5095 graphical.target runlevel5.target \
5096 reboot.target runlevel6.target
5099 SYSTEM_UNIT_ALIASES += \
5100 graphical.target default.target \
5101 reboot.target ctrl-alt-del.target \
5102 getty@.service autovt@.service
5104 USER_UNIT_ALIASES += \
5105 $(systemunitdir)/shutdown.target shutdown.target \
5106 $(systemunitdir)/sockets.target sockets.target \
5107 $(systemunitdir)/busnames.target busnames.target \
5108 $(systemunitdir)/timers.target timers.target \
5109 $(systemunitdir)/paths.target paths.target \
5110 $(systemunitdir)/bluetooth.target bluetooth.target \
5111 $(systemunitdir)/printer.target printer.target \
5112 $(systemunitdir)/sound.target sound.target \
5113 $(systemunitdir)/smartcard.target smartcard.target
5115 GENERAL_ALIASES += \
5116 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5117 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5118 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5119 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5123 $(systemunitdir)/runlevel1.target.wants \
5124 $(systemunitdir)/runlevel2.target.wants \
5125 $(systemunitdir)/runlevel3.target.wants \
5126 $(systemunitdir)/runlevel4.target.wants \
5127 $(systemunitdir)/runlevel5.target.wants
5131 $(prefix)/lib/modules-load.d \
5132 $(sysconfdir)/modules-load.d \
5133 $(prefix)/lib/systemd/network \
5134 $(sysconfdir)/systemd/network \
5135 $(prefix)/lib/sysctl.d \
5136 $(sysconfdir)/sysctl.d \
5137 $(prefix)/lib/kernel/install.d \
5138 $(sysconfdir)/kernel/install.d \
5139 $(systemshutdowndir) \
5141 $(systemgeneratordir) \
5142 $(usergeneratordir) \
5145 $(pkgsysconfdir)/system \
5146 $(pkgsysconfdir)/system/multi-user.target.wants \
5147 $(pkgsysconfdir)/system/getty.target.wants \
5148 $(pkgsysconfdir)/user \
5149 $(dbussessionservicedir) \
5150 $(sysconfdir)/xdg/systemd
5152 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5154 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5156 install-data-hook: $(INSTALL_DATA_HOOKS)
5158 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5160 clean-local: $(CLEAN_LOCAL_HOOKS)
5161 rm -rf $(abs_srcdir)/install-tree
5162 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5163 $(abs_srcdir)/hwdb/iab.txt
5165 DISTCHECK_CONFIGURE_FLAGS = \
5166 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5167 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5168 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5169 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5170 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5171 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5172 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5173 --with-rootprefix=$$dc_install_base \
5174 --disable-split-usr \
5176 --enable-compat-libs
5179 DISTCHECK_CONFIGURE_FLAGS += \
5180 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5181 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5183 DISTCHECK_CONFIGURE_FLAGS += \
5184 --with-sysvinit-path= \
5185 --with-sysvrcnd-path=
5189 DISTCHECK_CONFIGURE_FLAGS += \
5193 # check "broken" platforms limited toolchains for link breakage before we release
5196 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5200 ( cd $(top_srcdir)/hwdb && \
5201 wget -N http://www.linux-usb.org/usb.ids \
5202 http://pci-ids.ucw.cz/v2.2/pci.ids \
5203 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5204 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5207 .PHONY: kdbus-update
5209 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5210 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5214 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5216 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5218 upload: all check dist
5219 scp systemd-$(VERSION).tar.xz $(www_target)
5222 doc-sync: all destdir-sphinx
5223 gtkdoc-rebase --html-dir=docs/libudev/html --online
5224 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5225 gtkdoc-rebase --html-dir=docs/gudev/html --online
5226 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5227 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5228 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5232 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5233 scp man/*.html tango:public/systemd-man/
5235 .PHONY: install-tree
5237 rm -rf $(abs_srcdir)/install-tree
5238 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5239 tree $(abs_srcdir)/install-tree
5241 # Let's run all tests of the test suite, but under valgrind. Let's
5242 # exclude the one perl script we have in there
5243 .PHONY: valgrind-tests
5244 valgrind-tests: $(TESTS)
5245 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5246 if file $$f | grep -q shell; then \
5247 echo -e "$${x}Skipping non-binary $$f"; else \
5248 echo -e "$${x}Running $$f"; \
5249 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5254 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5256 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5257 $(AM_V_GEN)cat $^ > $@
5259 .PHONY: check-api-docs
5260 check-api-docs: exported man
5261 $(AM_V_GEN)for symbol in `cat exported` ; do \
5262 if test -f $(builddir)/man/$$symbol.html ; then \
5263 echo " Symbol $$symbol() is documented." ; \
5265 echo "‣ Symbol $$symbol() lacks documentation." ; \
5269 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5270 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5272 undefined defined: $(ALL_OBJECTS)
5273 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5274 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5275 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5281 .PHONY: check-api-unused
5282 check-api-unused: defined undefined exported
5283 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5285 .PHONY: check-includes
5286 check-includes: $(top_srcdir)/tools/check-includes.pl
5287 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5288 | xargs $(top_srcdir)/tools/check-includes.pl
5291 $(top_srcdir)/tools/check-includes.pl
5293 # Stupid test that everything purported to be exported really is
5294 define generate-sym-test
5295 $(AM_V_at)$(MKDIR_P) $(dir $@)
5296 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5297 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5298 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5299 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5300 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5301 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5302 $(AM_V_at)printf 'return 0; }\n' >> $@
5305 test-libsystemd-sym.c: \
5306 $(top_builddir)/src/libsystemd/libsystemd.sym \
5307 src/systemd/sd-journal.h \
5308 src/systemd/sd-daemon.h \
5309 src/systemd/sd-login.h \
5310 src/systemd/sd-bus.h \
5311 src/systemd/sd-utf8.h \
5312 src/systemd/sd-resolve.h
5313 $(generate-sym-test)
5315 test-libudev-sym.c: \
5316 src/libudev/libudev.sym \
5318 $(generate-sym-test)
5320 test_libsystemd_sym_SOURCES = \
5321 test-libsystemd-sym.c
5322 test_libsystemd_sym_LDADD = \
5325 test_libudev_sym_SOURCES = \
5327 test_libudev_sym_CFLAGS = \
5329 -Wno-deprecated-declarations
5330 test_libudev_sym_LDADD = \
5334 $(test_libsystemd_sym_SOURCES) \
5335 $(test_libudev_sym_SOURCES)
5338 test-libsystemd-sym \
5343 cppcheck --enable=all -q $(top_srcdir)
5345 # Used to extract compile flags for YCM.
5350 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u