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-rc-local-generator
556 units/rc-local.service.in \
557 units/halt-local.service.in
559 # automake is broken and can't handle files with a dash in front
560 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
562 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
564 units-uninstall-hook:
565 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
567 INSTALL_DATA_HOOKS += units-install-hook
568 UNINSTALL_DATA_HOOKS += units-uninstall-hook
577 src/libsystemd/sd-bus/PORTING-DBUS1 \
578 src/libsystemd/sd-bus/DIFFERENCES \
579 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
581 @INTLTOOL_POLICY_RULE@
583 # ------------------------------------------------------------------------------
588 include Makefile-man.am
590 .PHONY: man update-man-list
591 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
594 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
596 ${XML_FILES:.xml=.html}
598 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
615 $(AM_V_at)$(MKDIR_P) $(dir $@)
616 $(AM_V_LN)$(LN_S) -f ../../man $@
625 man/index.html: man/systemd.index.html
626 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
634 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
635 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
636 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
638 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
639 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
640 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
641 @echo "Makefile-man.am has been regenerated"
643 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
644 $(AM_V_at)$(MKDIR_P) $(dir $@)
645 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
647 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
648 $(AM_V_at)$(MKDIR_P) $(dir $@)
649 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
652 man/systemd.index.xml \
654 man/systemd.directives.xml
657 man/systemd.index.xml \
658 man/systemd.directives.xml
669 tools/make-man-index.py \
670 tools/make-directive-index.py \
671 tools/make-man-rules.py \
674 # ------------------------------------------------------------------------------
675 noinst_LTLIBRARIES += \
678 libsystemd_shared_la_SOURCES = \
679 src/shared/linux/auto_dev-ioctl.h \
680 src/shared/linux/fanotify.h \
681 src/shared/ioprio.h \
682 src/shared/missing.h \
683 src/shared/initreq.h \
684 src/shared/securebits.h \
685 src/shared/special.h \
689 src/shared/sparse-endian.h \
690 src/shared/refcnt.h \
691 src/shared/udev-util.h \
692 src/shared/bus-errors.h \
693 src/shared/device-nodes.c \
694 src/shared/device-nodes.h \
699 src/shared/architecture.c \
700 src/shared/architecture.h \
701 src/shared/efivars.c \
702 src/shared/efivars.h \
703 src/shared/path-util.c \
704 src/shared/path-util.h \
705 src/shared/time-util.c \
706 src/shared/time-util.h \
707 src/shared/hashmap.c \
708 src/shared/hashmap.h \
709 src/shared/siphash24.c \
710 src/shared/siphash24.h \
717 src/shared/sleep-config.c \
718 src/shared/sleep-config.h \
721 src/shared/env-util.c \
722 src/shared/env-util.h \
723 src/shared/strbuf.c \
724 src/shared/strbuf.h \
725 src/shared/strxcpyx.c \
726 src/shared/strxcpyx.h \
727 src/shared/conf-parser.c \
728 src/shared/conf-parser.h \
731 src/shared/ratelimit.h \
732 src/shared/ratelimit.c \
733 src/shared/exit-status.c \
734 src/shared/exit-status.h \
737 src/shared/gunicode.c \
738 src/shared/gunicode.h \
741 src/shared/socket-util.c \
742 src/shared/socket-util.h \
743 src/shared/conf-files.c \
744 src/shared/conf-files.h \
745 src/shared/cgroup-util.c \
746 src/shared/cgroup-util.h \
747 src/shared/cgroup-show.c \
748 src/shared/cgroup-show.h \
749 src/shared/unit-name.c \
750 src/shared/unit-name.h \
751 src/shared/utmp-wtmp.c \
752 src/shared/utmp-wtmp.h \
753 src/shared/watchdog.c \
754 src/shared/watchdog.h \
755 src/shared/spawn-ask-password-agent.c \
756 src/shared/spawn-ask-password-agent.h \
757 src/shared/replace-var.c \
758 src/shared/replace-var.h \
759 src/shared/spawn-polkit-agent.c \
760 src/shared/spawn-polkit-agent.h \
761 src/shared/hwclock.c \
762 src/shared/hwclock.h \
763 src/shared/time-dst.c \
764 src/shared/time-dst.h \
765 src/shared/calendarspec.c \
766 src/shared/calendarspec.h \
767 src/shared/fileio.c \
768 src/shared/fileio.h \
769 src/shared/output-mode.h \
770 src/shared/MurmurHash2.c \
771 src/shared/MurmurHash2.h \
772 src/shared/acpi-fpdt.h \
773 src/shared/acpi-fpdt.c \
774 src/shared/boot-timestamps.h \
775 src/shared/boot-timestamps.c \
778 src/shared/smack-util.c \
779 src/shared/smack-util.h \
780 src/shared/apparmor-util.c \
781 src/shared/apparmor-util.h \
782 src/shared/ima-util.c \
783 src/shared/ima-util.h \
784 src/shared/ptyfwd.c \
785 src/shared/ptyfwd.h \
786 src/shared/errno-list.c \
787 src/shared/errno-list.h \
788 src/shared/af-list.c \
789 src/shared/af-list.h \
794 src/shared/condition-util.c \
795 src/shared/condition-util.h \
796 src/shared/bus-label.c \
797 src/shared/bus-label.h \
799 src/shared/generator.h \
800 src/shared/generator.c \
801 src/shared/clean-ipc.h \
802 src/shared/clean-ipc.c \
803 src/shared/login-shared.c \
804 src/shared/login-shared.h \
810 nodist_libsystemd_shared_la_SOURCES = \
811 src/shared/errno-from-name.h \
812 src/shared/errno-to-name.h \
813 src/shared/af-from-name.h \
814 src/shared/af-to-name.h
816 libsystemd_shared_la_CFLAGS = \
820 # ------------------------------------------------------------------------------
821 noinst_LTLIBRARIES += \
824 libsystemd_units_la_SOURCES = \
825 src/shared/install.c \
826 src/shared/install.h \
827 src/shared/install-printf.c \
828 src/shared/install-printf.h \
829 src/shared/path-lookup.c \
830 src/shared/path-lookup.h \
831 src/shared/specifier.c \
832 src/shared/specifier.h
834 # ------------------------------------------------------------------------------
835 noinst_LTLIBRARIES += \
838 libsystemd_label_la_SOURCES = \
839 src/shared/socket-label.c \
842 src/shared/selinux-util.c \
843 src/shared/selinux-util.h \
844 src/shared/mkdir-label.c \
845 src/shared/ask-password-api.c \
846 src/shared/ask-password-api.h \
847 src/shared/fileio-label.c \
848 src/shared/fileio-label.h \
849 src/shared/dev-setup.c \
850 src/shared/dev-setup.h
852 libsystemd_label_la_CFLAGS = \
856 libsystemd_label_la_LIBADD = \
859 # ------------------------------------------------------------------------------
862 noinst_LTLIBRARIES += \
863 libsystemd-seccomp.la
865 libsystemd_seccomp_la_SOURCES = \
866 src/shared/seccomp-util.h \
867 src/shared/seccomp-util.c
869 libsystemd_seccomp_la_CFLAGS = \
873 libsystemd_seccomp_la_LIBADD = \
877 # ------------------------------------------------------------------------------
878 noinst_LTLIBRARIES += \
881 libsystemd_logs_la_SOURCES = \
882 src/shared/logs-show.c \
883 src/shared/logs-show.h
885 # ------------------------------------------------------------------------------
886 noinst_LTLIBRARIES += \
887 libsystemd-capability.la
889 libsystemd_capability_la_SOURCES = \
890 src/shared/capability.c \
891 src/shared/capability.h
893 libsystemd_capability_la_CFLAGS = \
897 libsystemd_capability_la_LIBADD = \
900 # ------------------------------------------------------------------------------
902 noinst_LTLIBRARIES += \
905 libsystemd_acl_la_SOURCES = \
906 src/shared/acl-util.c \
907 src/shared/acl-util.h
909 libsystemd_acl_la_CFLAGS = \
913 libsystemd_acl_la_LIBADD = \
917 # ------------------------------------------------------------------------------
918 noinst_LTLIBRARIES += \
921 libsystemd_core_la_SOURCES = \
924 src/core/unit-printf.c \
925 src/core/unit-printf.h \
930 src/core/transaction.c \
931 src/core/transaction.h \
932 src/core/load-fragment.c \
933 src/core/load-fragment.h \
942 src/core/snapshot.c \
943 src/core/snapshot.h \
948 src/core/automount.c \
949 src/core/automount.h \
960 src/core/load-dropin.c \
961 src/core/load-dropin.h \
968 src/core/dbus-manager.c \
969 src/core/dbus-manager.h \
970 src/core/dbus-unit.c \
971 src/core/dbus-unit.h \
972 src/core/dbus-job.c \
973 src/core/dbus-job.h \
974 src/core/dbus-service.c \
975 src/core/dbus-service.h \
976 src/core/dbus-socket.c \
977 src/core/dbus-socket.h \
978 src/core/dbus-busname.c \
979 src/core/dbus-busname.h \
980 src/core/dbus-target.c \
981 src/core/dbus-target.h \
982 src/core/dbus-snapshot.c \
983 src/core/dbus-snapshot.h \
984 src/core/dbus-device.c \
985 src/core/dbus-device.h \
986 src/core/dbus-mount.c \
987 src/core/dbus-mount.h \
988 src/core/dbus-automount.c \
989 src/core/dbus-automount.h \
990 src/core/dbus-swap.c \
991 src/core/dbus-swap.h \
992 src/core/dbus-timer.c \
993 src/core/dbus-timer.h \
994 src/core/dbus-path.c \
995 src/core/dbus-path.h \
996 src/core/dbus-slice.c \
997 src/core/dbus-slice.h \
998 src/core/dbus-scope.c \
999 src/core/dbus-scope.h \
1000 src/core/dbus-execute.c \
1001 src/core/dbus-execute.h \
1002 src/core/dbus-kill.c \
1003 src/core/dbus-kill.h \
1004 src/core/dbus-cgroup.c \
1005 src/core/dbus-cgroup.h \
1008 src/core/selinux-access.c \
1009 src/core/selinux-access.h \
1010 src/core/selinux-setup.c \
1011 src/core/selinux-setup.h \
1012 src/core/smack-setup.c \
1013 src/core/smack-setup.h \
1014 src/core/ima-setup.c \
1015 src/core/ima-setup.h \
1016 src/core/locale-setup.h \
1017 src/core/locale-setup.c \
1018 src/core/hostname-setup.c \
1019 src/core/hostname-setup.h \
1020 src/core/machine-id-setup.c \
1021 src/core/machine-id-setup.h \
1022 src/core/mount-setup.c \
1023 src/core/mount-setup.h \
1024 src/core/loopback-setup.h \
1025 src/core/loopback-setup.c \
1026 src/core/condition.c \
1027 src/core/condition.h \
1028 src/core/namespace.c \
1029 src/core/namespace.h \
1031 src/core/sysfs-show.h \
1032 src/core/switch-root.h \
1033 src/core/switch-root.c \
1034 src/core/killall.h \
1035 src/core/killall.c \
1036 src/core/audit-fd.c \
1037 src/core/audit-fd.h \
1038 src/core/show-status.c \
1039 src/core/show-status.h
1042 libsystemd_core_la_SOURCES += \
1043 src/core/kmod-setup.c \
1044 src/core/kmod-setup.h
1047 nodist_libsystemd_core_la_SOURCES = \
1048 src/core/load-fragment-gperf.c \
1049 src/core/load-fragment-gperf-nulstr.c
1051 libsystemd_core_la_CFLAGS = \
1057 $(APPARMOR_CFLAGS) \
1061 libsystemd_core_la_LIBADD = \
1062 libsystemd-capability.la \
1063 libsystemd-units.la \
1064 libsystemd-label.la \
1065 libudev-internal.la \
1066 libsystemd-shared.la \
1067 libsystemd-internal.la \
1076 libsystemd_core_la_LIBADD += \
1077 libsystemd-seccomp.la
1080 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1081 $(AM_V_at)$(MKDIR_P) $(dir $@)
1082 $(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 ";" }' < $< > $@
1085 src/core/load-fragment-gperf.gperf.m4
1088 src/core/load-fragment-gperf.gperf \
1089 src/core/load-fragment-gperf.c \
1090 src/core/load-fragment-gperf-nulstr.c \
1091 src/shared/errno-list.txt \
1092 src/shared/errno-from-name.gperf \
1093 src/shared/af-list.txt \
1094 src/shared/af-from-name.gperf
1097 src/shared/errno-from-name.h \
1098 src/shared/errno-to-name.h \
1099 src/shared/af-from-name.h \
1100 src/shared/af-to-name.h
1102 src/shared/errno-list.txt:
1103 $(AM_V_at)$(MKDIR_P) $(dir $@)
1104 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1106 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1107 $(AM_V_at)$(MKDIR_P) $(dir $@)
1108 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1110 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1111 $(AM_V_at)$(MKDIR_P) $(dir $@)
1112 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1114 src/shared/errno-to-name.h: src/shared/errno-list.txt
1115 $(AM_V_at)$(MKDIR_P) $(dir $@)
1116 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1118 src/shared/af-list.txt:
1119 $(AM_V_at)$(MKDIR_P) $(dir $@)
1120 $(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; }' > $@
1122 src/shared/af-from-name.gperf: src/shared/af-list.txt
1123 $(AM_V_at)$(MKDIR_P) $(dir $@)
1124 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1126 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1127 $(AM_V_at)$(MKDIR_P) $(dir $@)
1128 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1130 src/shared/af-to-name.h: src/shared/af-list.txt
1131 $(AM_V_at)$(MKDIR_P) $(dir $@)
1132 $(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 "};"}' < $< > $@
1134 # ------------------------------------------------------------------------------
1143 libsystemd-core.la \
1146 dist_pkgsysconf_DATA += \
1147 src/core/system.conf \
1150 dist_dbuspolicy_DATA += \
1151 src/core/org.freedesktop.systemd1.conf
1153 dist_dbussystemservice_DATA += \
1154 src/core/org.freedesktop.systemd1.service
1156 polkitpolicy_in_in_files += \
1157 src/core/org.freedesktop.systemd1.policy.in.in
1159 pkgconfigdata_DATA = \
1162 nodist_rpmmacros_DATA = \
1163 src/core/macros.systemd
1166 src/core/systemd.pc.in \
1167 src/core/macros.systemd.in
1170 src/core/macros.systemd \
1171 src/core/org.freedesktop.systemd1.policy.in
1173 # ------------------------------------------------------------------------------
1212 test-strip-tab-ansi \
1225 test/sched_idle_bad.service \
1226 test/sched_idle_ok.service \
1227 test/sched_rr_bad.service \
1228 test/sched_rr_ok.service \
1229 test/sched_rr_change.service \
1231 test/daughter.service \
1235 src/test/test-helper.h
1237 test_device_nodes_SOURCES = \
1238 src/test/test-device-nodes.c
1240 test_device_nodes_LDADD = \
1241 libsystemd-shared.la
1243 test_engine_SOURCES = \
1244 src/test/test-engine.c
1246 test_engine_CFLAGS = \
1250 test_engine_LDADD = \
1251 libsystemd-core.la \
1254 test_job_type_SOURCES = \
1255 src/test/test-job-type.c
1257 test_job_type_CFLAGS = \
1261 test_job_type_LDADD = \
1262 libsystemd-core.la \
1275 test_loopback_SOURCES = \
1276 src/test/test-loopback.c
1278 test_loopback_LDADD = \
1281 test_hostname_SOURCES = \
1282 src/test/test-hostname.c
1284 test_hostname_LDADD = \
1291 test_boot_timestamp_SOURCES = \
1292 src/test/test-boot-timestamps.c
1294 test_boot_timestamp_LDADD = \
1295 libsystemd-shared.la
1298 test_unit_name_SOURCES = \
1299 src/test/test-unit-name.c
1301 test_unit_name_CFLAGS = \
1305 test_unit_name_LDADD = \
1306 libsystemd-core.la \
1309 test_unit_file_SOURCES = \
1310 src/test/test-unit-file.c
1312 test_unit_file_CFLAGS = \
1316 test_unit_file_LDADD = \
1317 libsystemd-core.la \
1320 test_utf8_SOURCES = \
1321 src/test/test-utf8.c
1324 libsystemd-shared.la
1326 test_util_SOURCES = \
1327 src/test/test-util.c
1332 test_ring_SOURCES = \
1333 src/test/test-ring.c
1338 test_tmpfiles_SOURCES = \
1339 src/test/test-tmpfiles.c
1341 test_tmpfiles_LDADD = \
1342 libsystemd-shared.la
1344 test_namespace_SOURCES = \
1345 src/test/test-namespace.c
1347 test_namespace_LDADD = \
1350 test_hashmap_SOURCES = \
1351 src/test/test-hashmap.c
1353 test_hashmap_LDADD = \
1356 test_xml_SOURCES = \
1360 libsystemd-shared.la
1362 test_list_SOURCES = \
1363 src/test/test-list.c
1368 test_tables_SOURCES = \
1369 src/test/test-tables.c \
1370 src/shared/test-tables.h
1372 test_tables_CFLAGS = \
1376 test_tables_LDADD = \
1377 libsystemd-logs.la \
1378 libsystemd-journal-internal.la \
1379 libsystemd-core.la \
1382 test_prioq_SOURCES = \
1383 src/test/test-prioq.c
1385 test_prioq_LDADD = \
1388 test_fileio_SOURCES = \
1389 src/test/test-fileio.c
1391 test_fileio_LDADD = \
1394 test_time_SOURCES = \
1395 src/test/test-time.c
1400 test_architecture_SOURCES = \
1401 src/test/test-architecture.c
1403 test_architecture_LDADD = \
1404 libsystemd-shared.la
1406 test_log_SOURCES = \
1412 test_ipcrm_SOURCES = \
1413 src/test/test-ipcrm.c
1415 test_ipcrm_LDADD = \
1416 libsystemd-shared.la \
1419 test_rtnl_manual_SOURCES = \
1420 src/test/test-rtnl-manual.c
1422 test_rtnl_manual_CFLAGS = \
1426 test_rtnl_manual_LDADD = \
1427 libsystemd-internal.la \
1428 libsystemd-shared.la \
1431 test_ellipsize_SOURCES = \
1432 src/test/test-ellipsize.c
1434 test_ellipsize_LDADD = \
1437 test_date_SOURCES = \
1438 src/test/test-date.c
1443 test_sleep_SOURCES = \
1444 src/test/test-sleep.c
1446 test_sleep_LDADD = \
1449 test_replace_var_SOURCES = \
1450 src/test/test-replace-var.c
1452 test_replace_var_LDADD = \
1453 libsystemd-shared.la
1455 test_calendarspec_SOURCES = \
1456 src/test/test-calendarspec.c
1458 test_calendarspec_LDADD = \
1459 libsystemd-shared.la
1461 test_strip_tab_ansi_SOURCES = \
1462 src/test/test-strip-tab-ansi.c
1464 test_strip_tab_ansi_LDADD = \
1465 libsystemd-shared.la
1467 test_daemon_SOURCES = \
1468 src/test/test-daemon.c
1470 test_daemon_LDADD = \
1471 libsystemd-internal.la \
1472 libsystemd-shared.la
1474 test_cgroup_SOURCES = \
1475 src/test/test-cgroup.c
1477 test_cgroup_LDADD = \
1478 libsystemd-label.la \
1479 libsystemd-shared.la \
1480 libsystemd-internal.la
1482 test_cgroup_mask_SOURCES = \
1483 src/test/test-cgroup-mask.c
1485 test_cgroup_mask_CPPFLAGS = \
1487 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1489 test_cgroup_mask_CFLAGS = \
1493 test_cgroup_mask_LDADD = \
1494 libsystemd-core.la \
1497 test_cgroup_util_SOURCES = \
1498 src/test/test-cgroup-util.c
1500 test_cgroup_util_LDADD = \
1501 libsystemd-label.la \
1502 libsystemd-internal.la \
1503 libsystemd-shared.la
1505 test_env_replace_SOURCES = \
1506 src/test/test-env-replace.c
1508 test_env_replace_LDADD = \
1509 libsystemd-shared.la
1511 test_strbuf_SOURCES = \
1512 src/test/test-strbuf.c
1514 test_strbuf_LDADD = \
1515 libsystemd-shared.la
1517 test_strv_SOURCES = \
1518 src/test/test-strv.c
1521 libsystemd-units.la \
1522 libsystemd-internal.la \
1523 libsystemd-shared.la
1525 test_path_util_SOURCES = \
1526 src/test/test-path-util.c
1528 test_path_util_LDADD = \
1529 libsystemd-shared.la
1531 test_strxcpyx_SOURCES = \
1532 src/test/test-strxcpyx.c
1534 test_strxcpyx_LDADD = \
1535 libsystemd-shared.la
1537 test_install_SOURCES = \
1538 src/test/test-install.c
1540 test_install_LDADD = \
1541 libsystemd-units.la \
1542 libsystemd-label.la \
1543 libsystemd-shared.la \
1544 libsystemd-internal.la
1546 test_watchdog_SOURCES = \
1547 src/test/test-watchdog.c
1549 test_watchdog_LDADD = \
1550 libsystemd-shared.la
1552 test_sched_prio_SOURCES = \
1553 src/test/test-sched-prio.c
1555 test_sched_prio_CPPFLAGS = \
1557 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1559 test_sched_prio_CFLAGS = \
1563 test_sched_prio_LDADD = \
1564 libsystemd-core.la \
1567 # ------------------------------------------------------------------------------
1568 ## .PHONY so it always rebuilds it
1569 .PHONY: coverage lcov-run lcov-report coverage-sync
1571 # run lcov from scratch, always
1576 coverage_dir = coverage
1577 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1580 # reset run coverage tests
1582 @rm -rf $(coverage_dir)
1583 lcov $(coverage_opts) --zerocounters
1586 # generate report based on current coverage data
1588 $(MKDIR_P) $(coverage_dir)
1589 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1590 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1591 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1592 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1594 # lcov doesn't work properly with vpath builds, make sure that bad
1595 # output is not uploaded by mistake.
1596 coverage-sync: coverage
1597 test "$(builddir)" = "$(srcdir)"
1598 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1601 lcov-run lcov-report:
1602 echo "Need to reconfigure with --enable-coverage"
1605 # ------------------------------------------------------------------------------
1606 systemd_analyze_SOURCES = \
1607 src/analyze/analyze.c
1609 systemd_analyze_LDADD = \
1610 libsystemd-internal.la \
1611 libsystemd-shared.la
1613 # ------------------------------------------------------------------------------
1614 systemd_initctl_SOURCES = \
1615 src/initctl/initctl.c
1617 systemd_initctl_LDADD = \
1618 libsystemd-internal.la \
1619 libsystemd-shared.la
1621 # ------------------------------------------------------------------------------
1622 systemd_update_utmp_SOURCES = \
1623 src/update-utmp/update-utmp.c
1625 systemd_update_utmp_CFLAGS = \
1629 systemd_update_utmp_LDADD = \
1630 libsystemd-internal.la \
1631 libsystemd-shared.la \
1634 # ------------------------------------------------------------------------------
1635 systemd_shutdownd_SOURCES = \
1636 src/shutdownd/shutdownd.c
1638 systemd_shutdownd_LDADD = \
1639 libsystemd-label.la \
1640 libsystemd-internal.la \
1641 libsystemd-shared.la
1644 src/systemd/sd-shutdown.h
1646 # ------------------------------------------------------------------------------
1647 systemd_shutdown_SOURCES = \
1650 src/core/shutdown.c \
1651 src/core/mount-setup.c \
1652 src/core/mount-setup.h \
1653 src/core/killall.h \
1656 systemd_shutdown_LDADD = \
1657 libsystemd-label.la \
1658 libudev-internal.la \
1659 libsystemd-shared.la
1661 # ------------------------------------------------------------------------------
1663 systemd_modules_load_SOURCES = \
1664 src/modules-load/modules-load.c
1666 systemd_modules_load_CFLAGS = \
1670 systemd_modules_load_LDADD = \
1671 libsystemd-shared.la \
1674 rootlibexec_PROGRAMS += \
1675 systemd-modules-load
1677 nodist_systemunit_DATA += \
1678 units/systemd-modules-load.service
1680 SYSINIT_TARGET_WANTS += \
1681 systemd-modules-load.service
1684 nodist_systemunit_DATA += \
1685 units/kmod-static-nodes.service
1687 SYSINIT_TARGET_WANTS += \
1688 kmod-static-nodes.service
1693 units/systemd-modules-load.service.in \
1694 units/kmod-static-nodes.service.in
1696 # ------------------------------------------------------------------------------
1698 systemd_tmpfiles_SOURCES = \
1699 src/tmpfiles/tmpfiles.c
1701 systemd_tmpfiles_LDADD = \
1702 libsystemd-units.la \
1703 libsystemd-label.la \
1704 libsystemd-capability.la \
1705 libsystemd-internal.la \
1706 libsystemd-shared.la
1708 rootbin_PROGRAMS += \
1711 dist_systemunit_DATA += \
1712 units/systemd-tmpfiles-clean.timer
1714 nodist_systemunit_DATA += \
1715 units/systemd-tmpfiles-setup-dev.service \
1716 units/systemd-tmpfiles-setup.service \
1717 units/systemd-tmpfiles-clean.service
1719 dist_tmpfiles_DATA = \
1720 tmpfiles.d/systemd.conf \
1721 tmpfiles.d/systemd-nologin.conf \
1722 tmpfiles.d/tmp.conf \
1726 dist_tmpfiles_DATA += \
1727 tmpfiles.d/legacy.conf
1730 SYSINIT_TARGET_WANTS += \
1731 systemd-tmpfiles-setup-dev.service \
1732 systemd-tmpfiles-setup.service
1734 dist_zshcompletion_DATA += \
1735 shell-completion/zsh/_systemd-tmpfiles
1737 TIMERS_TARGET_WANTS += \
1738 systemd-tmpfiles-clean.timer
1742 $(sysconfdir)/tmpfiles.d
1746 units/systemd-tmpfiles-setup-dev.service.in \
1747 units/systemd-tmpfiles-setup.service.in \
1748 units/systemd-tmpfiles-clean.service.in
1750 # ------------------------------------------------------------------------------
1751 systemd_machine_id_setup_SOURCES = \
1752 src/machine-id-setup/machine-id-setup-main.c \
1753 src/core/machine-id-setup.c \
1754 src/core/machine-id-setup.h
1756 systemd_machine_id_setup_LDADD = \
1757 libsystemd-label.la \
1758 libsystemd-internal.la \
1759 libsystemd-shared.la
1761 # ------------------------------------------------------------------------------
1762 systemd_sysctl_SOURCES = \
1765 systemd_sysctl_LDADD = \
1766 libsystemd-shared.la
1768 # ------------------------------------------------------------------------------
1769 systemd_sleep_SOURCES = \
1772 systemd_sleep_LDADD = \
1773 libsystemd-shared.la
1775 # ------------------------------------------------------------------------------
1776 systemd_fsck_SOURCES = \
1779 systemd_fsck_LDADD = \
1780 libsystemd-internal.la \
1781 libudev-internal.la \
1782 libsystemd-shared.la
1784 # ------------------------------------------------------------------------------
1785 systemd_ac_power_SOURCES = \
1786 src/ac-power/ac-power.c
1788 systemd_ac_power_LDADD = \
1789 libudev-internal.la \
1790 libsystemd-shared.la
1792 # ------------------------------------------------------------------------------
1793 systemd_detect_virt_SOURCES = \
1794 src/detect-virt/detect-virt.c
1796 systemd_detect_virt_LDADD = \
1797 libsystemd-shared.la
1799 systemd-detect-virt-install-hook:
1800 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1802 INSTALL_EXEC_HOOKS += \
1803 systemd-detect-virt-install-hook
1805 # ------------------------------------------------------------------------------
1806 systemd_delta_SOURCES = \
1809 systemd_delta_LDADD = \
1810 libsystemd-shared.la
1812 # ------------------------------------------------------------------------------
1813 systemd_getty_generator_SOURCES = \
1814 src/getty-generator/getty-generator.c
1816 systemd_getty_generator_LDADD = \
1817 libsystemd-label.la \
1818 libsystemd-shared.la
1820 # ------------------------------------------------------------------------------
1821 systemd_fstab_generator_SOURCES = \
1822 src/fstab-generator/fstab-generator.c \
1823 src/core/mount-setup.c
1825 systemd_fstab_generator_LDADD = \
1826 libsystemd-label.la \
1827 libsystemd-shared.la
1829 # ------------------------------------------------------------------------------
1830 systemd_system_update_generator_SOURCES = \
1831 src/system-update-generator/system-update-generator.c
1833 systemd_system_update_generator_LDADD = \
1834 libsystemd-label.la \
1835 libsystemd-shared.la
1838 # ------------------------------------------------------------------------------
1839 systemgenerator_PROGRAMS += \
1840 systemd-efi-boot-generator
1842 systemd_efi_boot_generator_SOURCES = \
1843 src/efi-boot-generator/efi-boot-generator.c
1845 systemd_efi_boot_generator_LDADD = \
1846 libsystemd-label.la \
1847 libsystemd-shared.la
1849 # ------------------------------------------------------------------------------
1852 src/boot/boot-loader.h \
1853 src/boot/bootctl.c \
1854 src/boot/boot-loader.c \
1858 libsystemd-shared.la \
1859 libsystemd-internal.la
1864 dist_bashcompletion_DATA += \
1865 shell-completion/bash/bootctl
1867 dist_zshcompletion_DATA += \
1868 shell-completion/zsh/_bootctl
1872 # ------------------------------------------------------------------------------
1874 systemgenerator_PROGRAMS += \
1875 systemd-gpt-auto-generator
1877 systemd_gpt_auto_generator_SOURCES = \
1878 src/gpt-auto-generator/gpt-auto-generator.c \
1879 src/shared/blkid-util.h
1881 systemd_gpt_auto_generator_LDADD = \
1882 libsystemd-label.la \
1883 libsystemd-internal.la \
1884 libudev-internal.la \
1885 libsystemd-shared.la \
1888 systemd_gpt_auto_generator_CFLAGS = \
1893 # ------------------------------------------------------------------------------
1895 systemgenerator_PROGRAMS += \
1896 systemd-dbus1-generator
1898 systemd_dbus1_generator_SOURCES = \
1899 src/dbus1-generator/dbus1-generator.c
1901 systemd_dbus1_generator_LDADD = \
1902 libsystemd-label.la \
1903 libsystemd-shared.la \
1904 libsystemd-internal.la
1906 dbus1-generator-install-hook:
1907 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
1908 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1909 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1911 dbus1-generator-uninstall-hook:
1912 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1914 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1915 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1918 # ------------------------------------------------------------------------------
1919 systemd_rc_local_generator_SOURCES = \
1920 src/rc-local-generator/rc-local-generator.c
1922 systemd_rc_local_generator_LDADD = \
1923 libsystemd-label.la \
1924 libsystemd-shared.la
1926 # ------------------------------------------------------------------------------
1927 systemd_remount_fs_SOURCES = \
1928 src/remount-fs/remount-fs.c \
1929 src/core/mount-setup.c \
1930 src/core/mount-setup.h
1932 systemd_remount_fs_LDADD = \
1933 libsystemd-label.la \
1934 libsystemd-shared.la
1936 # ------------------------------------------------------------------------------
1937 systemd_cgroups_agent_SOURCES = \
1938 src/cgroups-agent/cgroups-agent.c
1940 systemd_cgroups_agent_LDADD = \
1941 libsystemd-internal.la \
1942 libsystemd-shared.la
1944 # ------------------------------------------------------------------------------
1945 systemctl_SOURCES = \
1946 src/systemctl/systemctl.c
1949 libsystemd-units.la \
1950 libsystemd-label.la \
1951 libsystemd-internal.la \
1952 libsystemd-logs.la \
1953 libsystemd-journal-internal.la \
1954 libsystemd-shared.la
1956 # ------------------------------------------------------------------------------
1957 systemd_notify_SOURCES = \
1958 src/notify/notify.c \
1959 src/readahead/sd-readahead.c
1961 systemd_notify_LDADD = \
1962 libsystemd-internal.la \
1963 libsystemd-shared.la
1965 # ------------------------------------------------------------------------------
1966 systemd_ask_password_SOURCES = \
1967 src/ask-password/ask-password.c
1969 systemd_ask_password_LDADD = \
1970 libsystemd-label.la \
1971 libsystemd-shared.la
1973 # ------------------------------------------------------------------------------
1974 systemd_reply_password_SOURCES = \
1975 src/reply-password/reply-password.c
1977 systemd_reply_password_LDADD = \
1978 libsystemd-shared.la
1980 # ------------------------------------------------------------------------------
1981 systemd_cgls_SOURCES = \
1984 systemd_cgls_LDADD = \
1985 libsystemd-internal.la \
1986 libsystemd-shared.la
1988 # ------------------------------------------------------------------------------
1989 systemd_cgtop_SOURCES = \
1992 systemd_cgtop_LDADD = \
1993 libsystemd-shared.la
1995 # ------------------------------------------------------------------------------
1996 systemd_nspawn_SOURCES = \
1997 src/nspawn/nspawn.c \
1998 src/core/mount-setup.c \
1999 src/core/mount-setup.h \
2000 src/core/loopback-setup.c \
2001 src/core/loopback-setup.h
2003 systemd_nspawn_CFLAGS = \
2008 systemd_nspawn_LDADD = \
2009 libsystemd-label.la \
2010 libsystemd-capability.la \
2011 libsystemd-internal.la \
2012 libudev-internal.la \
2013 libsystemd-shared.la \
2017 systemd_nspawn_LDADD += \
2018 libsystemd-seccomp.la \
2022 # ------------------------------------------------------------------------------
2023 systemd_run_SOURCES = \
2026 systemd_run_LDADD = \
2027 libsystemd-label.la \
2028 libsystemd-capability.la \
2029 libsystemd-internal.la \
2030 libsystemd-shared.la
2032 # ------------------------------------------------------------------------------
2033 systemd_bus_proxyd_SOURCES = \
2034 src/bus-proxyd/bus-proxyd.c
2036 systemd_bus_proxyd_LDADD = \
2037 libsystemd-internal.la \
2038 libsystemd-shared.la
2040 bus-proxyd-install-hook:
2041 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2042 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2043 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2045 bus-proxyd-uninstall-hook:
2046 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2048 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2049 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2052 nodist_systemunit_DATA += \
2053 units/systemd-bus-proxyd@.service
2055 dist_systemunit_DATA += \
2056 units/systemd-bus-proxyd.socket
2058 dist_userunit_DATA += \
2059 units/user/systemd-bus-proxyd.socket \
2060 units/user/systemd-bus-proxyd@.service
2064 units/systemd-bus-proxyd@.service.in
2066 # ------------------------------------------------------------------------------
2067 systemd_tty_ask_password_agent_SOURCES = \
2068 src/tty-ask-password-agent/tty-ask-password-agent.c
2070 systemd_tty_ask_password_agent_LDADD = \
2071 libsystemd-label.la \
2072 libsystemd-shared.la
2074 # ------------------------------------------------------------------------------
2075 libsystemd_internal_la_SOURCES = \
2076 src/systemd/sd-bus.h \
2077 src/systemd/sd-bus-protocol.h \
2078 src/systemd/sd-bus-vtable.h \
2079 src/systemd/sd-memfd.h \
2080 src/systemd/sd-utf8.h \
2081 src/systemd/sd-event.h \
2082 src/systemd/sd-rtnl.h \
2083 src/systemd/sd-resolve.h \
2084 src/systemd/sd-login.h \
2085 src/systemd/sd-id128.h \
2086 src/systemd/sd-daemon.h \
2087 src/libsystemd/sd-bus/sd-bus.c \
2088 src/libsystemd/sd-bus/bus-control.c \
2089 src/libsystemd/sd-bus/bus-control.h \
2090 src/libsystemd/sd-bus/bus-error.c \
2091 src/libsystemd/sd-bus/bus-error.h \
2092 src/libsystemd/sd-bus/bus-internal.c \
2093 src/libsystemd/sd-bus/bus-internal.h \
2094 src/libsystemd/sd-bus/bus-socket.c \
2095 src/libsystemd/sd-bus/bus-socket.h \
2096 src/libsystemd/sd-bus/bus-kernel.c \
2097 src/libsystemd/sd-bus/bus-kernel.h \
2098 src/libsystemd/sd-bus/bus-container.c \
2099 src/libsystemd/sd-bus/bus-container.h \
2100 src/libsystemd/sd-bus/bus-message.c \
2101 src/libsystemd/sd-bus/bus-message.h \
2102 src/libsystemd/sd-bus/bus-creds.c \
2103 src/libsystemd/sd-bus/bus-creds.h \
2104 src/libsystemd/sd-bus/bus-signature.c \
2105 src/libsystemd/sd-bus/bus-signature.h \
2106 src/libsystemd/sd-bus/bus-type.c \
2107 src/libsystemd/sd-bus/bus-type.h \
2108 src/libsystemd/sd-bus/bus-match.c \
2109 src/libsystemd/sd-bus/bus-match.h \
2110 src/libsystemd/sd-bus/bus-bloom.c \
2111 src/libsystemd/sd-bus/bus-bloom.h \
2112 src/libsystemd/sd-bus/bus-introspect.c \
2113 src/libsystemd/sd-bus/bus-introspect.h \
2114 src/libsystemd/sd-bus/bus-objects.c \
2115 src/libsystemd/sd-bus/bus-objects.h \
2116 src/libsystemd/sd-bus/bus-gvariant.c \
2117 src/libsystemd/sd-bus/bus-gvariant.h \
2118 src/libsystemd/sd-bus/bus-convenience.c \
2119 src/libsystemd/sd-bus/bus-track.c \
2120 src/libsystemd/sd-bus/bus-track.h \
2121 src/libsystemd/sd-bus/bus-util.c \
2122 src/libsystemd/sd-bus/bus-util.h \
2123 src/libsystemd/sd-bus/bus-slot.c \
2124 src/libsystemd/sd-bus/bus-slot.h \
2125 src/libsystemd/sd-bus/bus-protocol.h \
2126 src/libsystemd/sd-bus/kdbus.h \
2127 src/libsystemd/sd-bus/sd-memfd.c \
2128 src/libsystemd/sd-utf8/sd-utf8.c \
2129 src/libsystemd/sd-event/sd-event.c \
2130 src/libsystemd/sd-event/event-util.h \
2131 src/libsystemd/sd-rtnl/sd-rtnl.c \
2132 src/libsystemd/sd-rtnl/rtnl-internal.h \
2133 src/libsystemd/sd-rtnl/rtnl-message.c \
2134 src/libsystemd/sd-rtnl/rtnl-types.h \
2135 src/libsystemd/sd-rtnl/rtnl-types.c \
2136 src/libsystemd/sd-rtnl/rtnl-util.h \
2137 src/libsystemd/sd-rtnl/rtnl-util.c \
2138 src/libsystemd/sd-id128/sd-id128.c \
2139 src/libsystemd/sd-daemon/sd-daemon.c \
2140 src/libsystemd/sd-login/sd-login.c
2142 nodist_libsystemd_internal_la_SOURCES = \
2143 src/libsystemd/libsystemd.sym \
2144 src/libsystemd/sd-bus/bus-error-mapping.c
2146 libsystemd_internal_la_CFLAGS = \
2150 libsystemd_internal_la_LIBADD = \
2153 libsystemd_resolve_la_SOURCES = \
2154 src/libsystemd/sd-resolve/sd-resolve.c \
2155 src/libsystemd/sd-resolve/resolve-util.h
2157 libsystemd_resolve_la_CFLAGS = \
2161 libsystemd_resolve_la_LIBADD = \
2164 noinst_LTLIBRARIES += \
2165 libsystemd-internal.la \
2166 libsystemd-resolve.la
2168 libsystemd_dump_la_SOURCES = \
2169 src/libsystemd/sd-bus/bus-dump.c \
2170 src/libsystemd/sd-bus/bus-dump.h
2172 libsystemd_dump_la_CFLAGS = \
2176 noinst_LTLIBRARIES += \
2180 src/libsystemd/libsystemd.sym.m4 \
2181 src/libsystemd/libsystemd.pc.in \
2182 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2183 src/libsystemd/sd-bus/DIFFERENCES \
2184 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2187 src/libsystemd/libsystemd.sym \
2188 src/libsystemd/sd-bus/bus-error-mapping.c
2191 src/libsystemd/libsystemd.sym
2193 libsystemd_la_SOURCES = \
2194 $(libsystemd_internal_la_SOURCES) \
2195 $(libsystemd_resolve_la_SOURCES) \
2196 $(libsystemd_journal_internal_la_SOURCES)
2198 nodist_libsystemd_la_SOURCES = \
2199 $(nodist_libsystemd_internal_la_SOURCES)
2201 libsystemd_la_CFLAGS = \
2202 $(libsystemd_internal_la_CFLAGS) \
2203 $(libsystemd_resolve_la_CFLAGS) \
2204 $(libsystemd_journal_internal_la_CFLAGS)
2206 libsystemd_la_LDFLAGS = \
2208 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2209 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2211 libsystemd_la_LIBADD = \
2212 libsystemd-shared.la \
2213 $(libsystemd_internal_la_LIBADD) \
2214 $(libsystemd_journal_internal_la_LIBADD) \
2215 $(libsystemd_resolve_la_LIBADD)
2217 libsystemd-install-hook:
2218 libname=libsystemd.so && $(move-to-rootlibdir)
2220 libsystemd-uninstall-hook:
2221 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2223 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2224 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2226 pkgconfiglib_DATA += \
2227 src/libsystemd/libsystemd.pc
2229 pkginclude_HEADERS += \
2230 src/systemd/sd-login.h \
2231 src/systemd/sd-id128.h \
2232 src/systemd/sd-daemon.h
2235 pkginclude_HEADERS += \
2236 src/systemd/sd-bus.h \
2237 src/systemd/sd-bus-protocol.h \
2238 src/systemd/sd-bus-vtable.h \
2239 src/systemd/sd-memfd.h \
2240 src/systemd/sd-utf8.h \
2241 src/systemd/sd-event.h \
2242 src/systemd/sd-rtnl.h \
2243 src/systemd/sd-resolve.h
2246 lib_LTLIBRARIES += \
2251 test-bus-signature \
2257 test-bus-kernel-bloom \
2258 test-bus-kernel-benchmark \
2260 test-bus-zero-copy \
2261 test-bus-introspect \
2273 test_bus_marshal_SOURCES = \
2274 src/libsystemd/sd-bus/test-bus-marshal.c
2276 test_bus_marshal_LDADD = \
2277 libsystemd-internal.la \
2278 libsystemd-shared.la \
2279 libsystemd-dump.la \
2280 libsystemd-capability.la \
2285 test_bus_marshal_CFLAGS = \
2291 test_bus_signature_SOURCES = \
2292 src/libsystemd/sd-bus/test-bus-signature.c
2294 test_bus_signature_LDADD = \
2295 libsystemd-shared.la \
2296 libsystemd-internal.la
2298 test_bus_chat_SOURCES = \
2299 src/libsystemd/sd-bus/test-bus-chat.c
2301 test_bus_chat_CFLAGS = \
2305 test_bus_chat_LDADD = \
2306 libsystemd-internal.la \
2307 libsystemd-shared.la
2309 test_bus_cleanup_SOURCES = \
2310 src/libsystemd/sd-bus/test-bus-cleanup.c
2312 test_bus_cleanup_CFLAGS = \
2316 test_bus_cleanup_LDADD = \
2317 libsystemd-internal.la \
2318 libsystemd-shared.la
2320 test_bus_server_SOURCES = \
2321 src/libsystemd/sd-bus/test-bus-server.c
2323 test_bus_server_CFLAGS = \
2327 test_bus_server_LDADD = \
2328 libsystemd-internal.la \
2329 libsystemd-shared.la
2331 test_bus_objects_SOURCES = \
2332 src/libsystemd/sd-bus/test-bus-objects.c
2334 test_bus_objects_CFLAGS = \
2339 test_bus_objects_LDADD = \
2340 libsystemd-internal.la \
2341 libsystemd-shared.la \
2342 libsystemd-dump.la \
2343 libsystemd-capability.la \
2346 test_bus_error_SOURCES = \
2347 src/libsystemd/sd-bus/test-bus-error.c
2349 test_bus_error_LDADD = \
2350 libsystemd-internal.la \
2351 libsystemd-shared.la
2353 test_bus_gvariant_SOURCES = \
2354 src/libsystemd/sd-bus/test-bus-gvariant.c
2356 test_bus_gvariant_LDADD = \
2357 libsystemd-internal.la \
2358 libsystemd-shared.la \
2359 libsystemd-dump.la \
2360 libsystemd-capability.la \
2364 test_bus_gvariant_CFLAGS = \
2369 test_bus_creds_SOURCES = \
2370 src/libsystemd/sd-bus/test-bus-creds.c
2372 test_bus_creds_LDADD = \
2373 libsystemd-internal.la \
2374 libsystemd-shared.la \
2375 libsystemd-dump.la \
2376 libsystemd-capability.la
2378 test_bus_match_SOURCES = \
2379 src/libsystemd/sd-bus/test-bus-match.c
2381 test_bus_match_LDADD = \
2382 libsystemd-internal.la \
2383 libsystemd-shared.la
2385 test_bus_kernel_SOURCES = \
2386 src/libsystemd/sd-bus/test-bus-kernel.c
2388 test_bus_kernel_LDADD = \
2389 libsystemd-internal.la \
2390 libsystemd-shared.la \
2391 libsystemd-dump.la \
2392 libsystemd-capability.la \
2395 test_bus_kernel_CFLAGS = \
2399 test_bus_kernel_bloom_SOURCES = \
2400 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2402 test_bus_kernel_bloom_LDADD = \
2403 libsystemd-internal.la \
2404 libsystemd-shared.la
2406 test_bus_kernel_benchmark_SOURCES = \
2407 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2409 test_bus_kernel_benchmark_LDADD = \
2410 libsystemd-internal.la \
2411 libsystemd-shared.la
2413 test_bus_memfd_SOURCES = \
2414 src/libsystemd/sd-bus/test-bus-memfd.c
2416 test_bus_memfd_LDADD = \
2417 libsystemd-internal.la \
2418 libsystemd-shared.la
2420 test_bus_zero_copy_SOURCES = \
2421 src/libsystemd/sd-bus/test-bus-zero-copy.c
2423 test_bus_zero_copy_LDADD = \
2424 libsystemd-internal.la \
2425 libsystemd-shared.la \
2426 libsystemd-dump.la \
2427 libsystemd-capability.la \
2430 test_bus_zero_copy_CFLAGS = \
2434 test_bus_introspect_SOURCES = \
2435 src/libsystemd/sd-bus/test-bus-introspect.c
2437 test_bus_introspect_LDADD = \
2438 libsystemd-internal.la \
2439 libsystemd-shared.la
2441 test_event_SOURCES = \
2442 src/libsystemd/sd-event/test-event.c
2444 test_event_LDADD = \
2445 libsystemd-internal.la \
2446 libsystemd-shared.la
2448 test_rtnl_SOURCES = \
2449 src/libsystemd/sd-rtnl/test-rtnl.c
2452 libsystemd-internal.la \
2453 libsystemd-shared.la
2455 test_resolve_SOURCES = \
2456 src/libsystemd/sd-resolve/test-resolve.c
2458 test_resolve_LDADD = \
2459 libsystemd-resolve.la \
2460 libsystemd-internal.la \
2461 libsystemd-shared.la
2463 test_resolve_CFLAGS = \
2468 src/libsystemd/sd-bus/busctl.c
2471 libsystemd-internal.la \
2472 libsystemd-shared.la \
2473 libsystemd-dump.la \
2474 libsystemd-capability.la \
2481 # ------------------------------------------------------------------------------
2482 noinst_LTLIBRARIES += \
2483 libsystemd-network.la
2485 libsystemd_network_la_CFLAGS = \
2489 libsystemd_network_la_SOURCES = \
2490 src/systemd/sd-network.h \
2491 src/systemd/sd-dhcp-client.h \
2492 src/systemd/sd-dhcp-lease.h \
2493 src/systemd/sd-ipv4ll.h \
2494 src/network/sd-network.c \
2495 src/network/network-util.h \
2496 src/libsystemd-network/sd-dhcp-client.c \
2497 src/libsystemd-network/dhcp-network.c \
2498 src/libsystemd-network/dhcp-option.c \
2499 src/libsystemd-network/dhcp-packet.c \
2500 src/libsystemd-network/dhcp-internal.h \
2501 src/libsystemd-network/dhcp-protocol.h \
2502 src/libsystemd-network/dhcp-lease-internal.h \
2503 src/libsystemd-network/sd-dhcp-lease.c \
2504 src/libsystemd-network/sd-ipv4ll.c \
2505 src/libsystemd-network/ipv4ll-network.c \
2506 src/libsystemd-network/ipv4ll-packet.c \
2507 src/libsystemd-network/ipv4ll-internal.h \
2508 src/libsystemd-network/network-internal.c \
2509 src/libsystemd-network/network-internal.h
2511 libsystemd_network_la_LIBADD = \
2512 libudev-internal.la \
2513 libsystemd-label.la \
2514 libsystemd-internal.la \
2515 libsystemd-shared.la \
2518 test_dhcp_option_SOURCES = \
2519 src/libsystemd-network/dhcp-protocol.h \
2520 src/libsystemd-network/dhcp-internal.h \
2521 src/libsystemd-network/test-dhcp-option.c
2523 test_dhcp_option_LDADD = \
2524 libsystemd-network.la \
2525 libsystemd-internal.la \
2526 libsystemd-shared.la
2528 test_dhcp_client_SOURCES = \
2529 src/systemd/sd-dhcp-client.h \
2530 src/libsystemd-network/dhcp-protocol.h \
2531 src/libsystemd-network/dhcp-internal.h \
2532 src/libsystemd-network/test-dhcp-client.c
2534 test_dhcp_client_LDADD = \
2535 libsystemd-network.la \
2536 libsystemd-label.la \
2537 libsystemd-internal.la \
2538 libsystemd-shared.la
2540 test_ipv4ll_SOURCES = \
2541 src/systemd/sd-ipv4ll.h \
2542 src/libsystemd-network/ipv4ll-internal.h \
2543 src/libsystemd-network/test-ipv4ll.c
2545 test_ipv4ll_LDADD = \
2546 libsystemd-network.la \
2547 libsystemd-label.la \
2548 libsystemd-internal.la \
2549 libsystemd-shared.la
2556 # ------------------------------------------------------------------------------
2566 include_HEADERS += \
2567 src/libudev/libudev.h
2569 lib_LTLIBRARIES += \
2572 libudev_la_SOURCES =\
2573 src/libudev/libudev.sym \
2574 src/libudev/libudev-private.h \
2575 src/libudev/libudev.c \
2576 src/libudev/libudev-list.c \
2577 src/libudev/libudev-util.c \
2578 src/libudev/libudev-device.c \
2579 src/libudev/libudev-enumerate.c \
2580 src/libudev/libudev-monitor.c \
2581 src/libudev/libudev-queue.c \
2582 src/libudev/libudev-hwdb-def.h \
2583 src/libudev/libudev-hwdb.c
2585 libudev_la_CFLAGS = \
2589 libudev_la_LDFLAGS = \
2591 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2592 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2594 libudev_la_LIBADD = \
2595 libsystemd-internal.la \
2596 libsystemd-shared.la
2598 pkgconfiglib_DATA += \
2599 src/libudev/libudev.pc
2602 src/libudev/libudev.pc.in
2605 src/libudev/libudev.pc \
2610 $(AM_V_at)$(MKDIR_P) $(dir $@)
2611 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2614 $(AM_V_at)$(MKDIR_P) $(dir $@)
2615 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2617 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2618 libudev-install-hook:
2619 libname=libudev.so && $(move-to-rootlibdir)
2621 libudev-uninstall-hook:
2622 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2624 INSTALL_EXEC_HOOKS += libudev-install-hook
2625 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2627 # ------------------------------------------------------------------------------
2628 noinst_LTLIBRARIES += \
2631 libudev_internal_la_SOURCES =\
2632 $(libudev_la_SOURCES) \
2633 src/libudev/libudev-device-private.c
2635 libudev_internal_la_CFLAGS = \
2637 -fvisibility=default
2639 # ------------------------------------------------------------------------------
2641 $(sysconfdir)/udev/rules.d \
2642 $(sysconfdir)/udev/hwdb.d
2644 dist_network_DATA = \
2645 network/99-default.link \
2646 network/80-container-host0.network \
2647 network/80-container-ve.network
2649 dist_udevrules_DATA += \
2650 rules/42-usb-hid-pm.rules \
2651 rules/50-udev-default.rules \
2652 rules/60-drm.rules \
2653 rules/60-keyboard.rules \
2654 rules/60-persistent-storage-tape.rules \
2655 rules/60-persistent-serial.rules \
2656 rules/60-persistent-input.rules \
2657 rules/60-persistent-alsa.rules \
2658 rules/60-persistent-storage.rules \
2659 rules/64-btrfs.rules \
2660 rules/75-net-description.rules \
2661 rules/75-tty-description.rules \
2662 rules/78-sound-card.rules \
2663 rules/80-net-setup-link.rules \
2664 rules/95-udev-late.rules
2666 nodist_udevrules_DATA += \
2667 rules/99-systemd.rules
2669 dist_udevhwdb_DATA = \
2670 hwdb/20-pci-vendor-model.hwdb \
2671 hwdb/20-pci-classes.hwdb \
2672 hwdb/20-usb-vendor-model.hwdb \
2673 hwdb/20-usb-classes.hwdb \
2674 hwdb/20-sdio-vendor-model.hwdb \
2675 hwdb/20-sdio-classes.hwdb \
2676 hwdb/20-bluetooth-vendor-product.hwdb \
2677 hwdb/20-acpi-vendor.hwdb \
2679 hwdb/20-net-ifname.hwdb \
2680 hwdb/60-keyboard.hwdb
2682 udevconfdir = $(sysconfdir)/udev
2683 dist_udevconf_DATA = \
2686 sharepkgconfigdir = $(datadir)/pkgconfig
2687 sharepkgconfig_DATA = \
2691 rules/99-systemd.rules.in \
2695 rules/99-systemd.rules \
2699 units/systemd-udevd.service.in \
2700 units/systemd-udev-trigger.service.in \
2701 units/systemd-udev-settle.service.in
2704 units/systemd-udevd.service \
2705 units/systemd-udev-trigger.service \
2706 units/systemd-udev-settle.service
2708 SOCKETS_TARGET_WANTS += \
2709 systemd-udevd-control.socket \
2710 systemd-udevd-kernel.socket
2711 SYSINIT_TARGET_WANTS += \
2712 systemd-udevd.service \
2713 systemd-udev-trigger.service
2715 rootbin_PROGRAMS += \
2718 rootlibexec_PROGRAMS += \
2721 noinst_LTLIBRARIES += \
2724 src/udev/keyboard-keys.txt:
2725 $(AM_V_at)$(MKDIR_P) $(dir $@)
2726 $(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/' > $@
2728 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2729 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2731 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2732 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2734 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2735 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2737 libudev_core_la_SOURCES = \
2739 src/udev/udev-event.c \
2740 src/udev/udev-watch.c \
2741 src/udev/udev-node.c \
2742 src/udev/udev-rules.c \
2743 src/udev/udev-ctrl.c \
2744 src/udev/udev-builtin.c \
2745 src/udev/udev-builtin-btrfs.c \
2746 src/udev/udev-builtin-hwdb.c \
2747 src/udev/udev-builtin-input_id.c \
2748 src/udev/udev-builtin-keyboard.c \
2749 src/udev/udev-builtin-net_id.c \
2750 src/udev/udev-builtin-net_setup_link.c \
2751 src/udev/udev-builtin-path_id.c \
2752 src/udev/udev-builtin-usb_id.c \
2753 src/udev/net/link-config.h \
2754 src/udev/net/link-config.c \
2755 src/udev/net/ethtool-util.h \
2756 src/udev/net/ethtool-util.c
2758 nodist_libudev_core_la_SOURCES = \
2759 src/udev/keyboard-keys-from-name.h \
2760 src/udev/keyboard-keys-to-name.h \
2761 src/udev/net/link-config-gperf.c
2764 $(nodist_libudev_core_la_SOURCES)
2767 src/udev/keyboard-keys-from-name.gperf \
2768 src/udev/keyboard-keys.txt \
2769 src/udev/net/link-config-gperf.c
2772 src/udev/net/link-config-gperf.gperf
2774 libudev_core_la_CFLAGS = \
2779 libudev_core_la_LIBADD = \
2780 libudev-internal.la \
2781 libsystemd-label.la \
2782 libsystemd-internal.la \
2783 libsystemd-network.la \
2784 libsystemd-shared.la \
2788 libudev_core_la_CPPFLAGS = \
2790 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2793 libudev_core_la_SOURCES += \
2794 src/udev/udev-builtin-firmware.c
2796 dist_udevrules_DATA += \
2797 rules/50-firmware.rules
2801 libudev_core_la_SOURCES += \
2802 src/udev/udev-builtin-kmod.c
2804 dist_udevrules_DATA += \
2805 rules/80-drivers.rules
2809 libudev_core_la_SOURCES += \
2810 src/udev/udev-builtin-blkid.c
2814 libudev_core_la_SOURCES += \
2815 src/udev/udev-builtin-uaccess.c \
2816 src/login/logind-acl.c \
2817 src/libsystemd/sd-login/sd-login.c \
2818 src/systemd/sd-login.h
2820 libudev_core_la_LIBADD += \
2824 systemd_udevd_SOURCES = \
2827 systemd_udevd_LDADD = \
2831 src/udev/udevadm.c \
2832 src/udev/udevadm-info.c \
2833 src/udev/udevadm-control.c \
2834 src/udev/udevadm-monitor.c \
2835 src/udev/udevadm-hwdb.c \
2836 src/udev/udevadm-settle.c \
2837 src/udev/udevadm-trigger.c \
2838 src/udev/udevadm-test.c \
2839 src/udev/udevadm-test-builtin.c
2844 # Update hwdb on installation. Do not bother if installing
2845 # in DESTDIR, since this is likely for packaging purposes.
2847 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2849 INSTALL_DATA_HOOKS += \
2853 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2855 # ------------------------------------------------------------------------------
2864 test_libudev_SOURCES = \
2865 src/test/test-libudev.c
2867 test_libudev_LDADD = \
2868 libsystemd-label.la \
2869 libudev-internal.la \
2870 libsystemd-shared.la
2872 test_udev_SOURCES = \
2873 src/test/test-udev.c
2882 test_udev_LDADD += \
2889 # packed sysfs test tree
2891 $(AM_V_at)$(MKDIR_P) $(dir $@)
2892 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2896 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2901 test/rules-test.sh \
2902 test/rule-syntax-check.py
2904 # ------------------------------------------------------------------------------
2906 src/udev/ata_id/ata_id.c
2909 libudev-internal.la \
2910 libsystemd-shared.la
2912 udevlibexec_PROGRAMS += \
2915 # ------------------------------------------------------------------------------
2916 cdrom_id_SOURCES = \
2917 src/udev/cdrom_id/cdrom_id.c
2920 libudev-internal.la \
2921 libsystemd-shared.la
2923 udevlibexec_PROGRAMS += \
2926 dist_udevrules_DATA += \
2927 rules/60-cdrom_id.rules
2929 # ------------------------------------------------------------------------------
2931 src/udev/collect/collect.c
2934 libudev-internal.la \
2935 libsystemd-shared.la
2937 udevlibexec_PROGRAMS += \
2940 # ------------------------------------------------------------------------------
2942 src/udev/scsi_id/scsi_id.c \
2943 src/udev/scsi_id/scsi_serial.c \
2944 src/udev/scsi_id/scsi.h \
2945 src/udev/scsi_id/scsi_id.h
2948 libudev-internal.la \
2949 libsystemd-shared.la
2951 udevlibexec_PROGRAMS += \
2955 src/udev/scsi_id/README
2957 # ------------------------------------------------------------------------------
2959 src/udev/v4l_id/v4l_id.c
2964 udevlibexec_PROGRAMS += \
2967 dist_udevrules_DATA += \
2968 rules/60-persistent-v4l.rules
2970 # ------------------------------------------------------------------------------
2971 accelerometer_SOURCES = \
2972 src/udev/accelerometer/accelerometer.c
2974 accelerometer_LDADD = \
2975 libudev-internal.la -lm \
2976 libsystemd-shared.la
2978 udevlibexec_PROGRAMS += \
2981 dist_udevrules_DATA += \
2982 rules/61-accelerometer.rules
2984 # ------------------------------------------------------------------------------
2991 libgudev_includedir = \
2992 $(includedir)/gudev-1.0/gudev
2994 libgudev_include_HEADERS = \
2996 src/gudev/gudevenums.h \
2997 src/gudev/gudevenumtypes.h \
2998 src/gudev/gudevtypes.h \
2999 src/gudev/gudevclient.h \
3000 src/gudev/gudevdevice.h \
3001 src/gudev/gudevenumerator.h
3003 lib_LTLIBRARIES += libgudev-1.0.la
3005 pkgconfiglib_DATA += \
3006 src/gudev/gudev-1.0.pc
3009 src/gudev/gudev-1.0.pc
3011 libgudev_1_0_la_SOURCES = \
3012 src/gudev/gudevenums.h \
3013 src/gudev/gudevenumtypes.h \
3014 src/gudev/gudevenumtypes.h\
3015 src/gudev/gudevtypes.h \
3016 src/gudev/gudevclient.h \
3017 src/gudev/gudevclient.c \
3018 src/gudev/gudevdevice.h \
3019 src/gudev/gudevdevice.c \
3020 src/gudev/gudevenumerator.h \
3021 src/gudev/gudevenumerator.c \
3022 src/gudev/gudevprivate.h
3024 nodist_libgudev_1_0_la_SOURCES = \
3025 src/gudev/gudevmarshal.h \
3026 src/gudev/gudevmarshal.c \
3027 src/gudev/gudevenumtypes.h \
3028 src/gudev/gudevenumtypes.c
3031 $(nodist_libgudev_1_0_la_SOURCES)
3033 libgudev_1_0_la_CPPFLAGS = \
3035 -I$(top_builddir)/src\
3036 -I$(top_srcdir)/src\
3037 -I$(top_builddir)/src/gudev \
3038 -I$(top_srcdir)/src/gudev \
3039 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3040 -D_GUDEV_COMPILATION \
3041 -DG_LOG_DOMAIN=\"GUdev\"
3043 libgudev_1_0_la_CFLAGS = \
3045 -fvisibility=default \
3048 libgudev_1_0_la_LIBADD = \
3052 libgudev_1_0_la_LDFLAGS = \
3054 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3055 -export-dynamic -no-undefined \
3056 -export-symbols-regex '^g_udev_.*'
3058 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3059 $(AM_V_at)$(MKDIR_P) $(dir $@)
3060 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3062 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3063 $(AM_V_at)$(MKDIR_P) $(dir $@)
3064 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3065 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3067 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3068 $(AM_V_at)$(MKDIR_P) $(dir $@)
3069 $(AM_V_GEN)glib-mkenums --template $^ > $@
3071 if HAVE_INTROSPECTION
3072 -include $(INTROSPECTION_MAKEFILE)
3074 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3076 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3078 src_gudev_GUdev_1_0_gir_CFLAGS = \
3081 -D_GUDEV_COMPILATION \
3082 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3083 -I$(top_srcdir)/src \
3084 -I$(top_builddir)/src \
3085 -I$(top_srcdir)/src/gudev \
3086 -I$(top_builddir)/src/gudev
3088 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3090 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3091 --pkg-export=gudev-1.0 \
3094 src_gudev_GUdev_1_0_gir_FILES = \
3096 src/gudev/gudevtypes.h \
3097 src/gudev/gudevenums.h \
3098 src/gudev/gudevenumtypes.h \
3099 src/gudev/gudevclient.h \
3100 src/gudev/gudevdevice.h \
3101 src/gudev/gudevenumerator.h \
3102 src/gudev/gudevclient.c \
3103 src/gudev/gudevdevice.c \
3104 src/gudev/gudevenumerator.c
3106 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3107 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3109 girdir = $(datadir)/gir-1.0
3111 src/gudev/GUdev-1.0.gir
3113 typelibsdir = $(libdir)/girepository-1.0
3115 src/gudev/GUdev-1.0.typelib
3117 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3118 endif # HAVE_INTROSPECTION
3120 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3121 libgudev-install-hook:
3122 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3124 libgudev-uninstall-hook:
3125 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3127 INSTALL_EXEC_HOOKS += libgudev-install-hook
3128 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3132 src/gudev/gudev-1.0.pc.in \
3133 src/gudev/gudevmarshal.list \
3134 src/gudev/gudevenumtypes.h.template \
3135 src/gudev/gudevenumtypes.c.template \
3136 src/gudev/gjs-example.js \
3137 src/gudev/seed-example-enum.js \
3138 src/gudev/seed-example.js
3140 # ------------------------------------------------------------------------------
3141 mtd_probe_SOURCES = \
3142 src/udev/mtd_probe/mtd_probe.c \
3143 src/udev/mtd_probe/mtd_probe.h \
3144 src/udev/mtd_probe/probe_smartmedia.c
3146 dist_udevrules_DATA += \
3147 rules/75-probe_mtd.rules
3149 udevlibexec_PROGRAMS += \
3152 # ------------------------------------------------------------------------------
3153 test_id128_SOURCES = \
3154 src/test/test-id128.c
3156 test_id128_LDADD = \
3157 libsystemd-internal.la \
3158 libsystemd-shared.la
3163 # ------------------------------------------------------------------------------
3165 rootlibexec_PROGRAMS += \
3168 systemd_activate_SOURCES = \
3169 src/activate/activate.c
3171 systemd_activate_LDADD = \
3172 libsystemd-label.la \
3173 libsystemd-internal.la \
3174 libsystemd-shared.la
3176 # ------------------------------------------------------------------------------
3177 systemd_journald_SOURCES = \
3178 src/journal/journald.c \
3179 src/journal/journald-server.h
3181 systemd_journald_LDADD = \
3182 libsystemd-journal-core.la \
3183 libsystemd-internal.la \
3184 libsystemd-shared.la
3186 systemd_cat_SOURCES = \
3189 systemd_cat_LDADD = \
3190 libsystemd-journal-core.la
3193 rootlibexec_PROGRAMS += \
3194 systemd-journal-remote
3196 systemd_journal_remote_SOURCES = \
3197 src/journal/journal-remote-parse.h \
3198 src/journal/journal-remote-parse.c \
3199 src/journal/journal-remote-write.h \
3200 src/journal/journal-remote-write.c \
3201 src/journal/journal-remote.c
3203 systemd_journal_remote_LDADD = \
3204 libsystemd-internal.la \
3205 libsystemd-journal-core.la
3207 systemd_journal_remote_SOURCES += \
3208 src/journal/microhttpd-util.h \
3209 src/journal/microhttpd-util.c
3211 systemd_journal_remote_CFLAGS = \
3213 $(MICROHTTPD_CFLAGS)
3215 systemd_journal_remote_LDADD += \
3219 systemd_journal_remote_LDADD += \
3224 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3225 journalctl_CFLAGS = \
3228 journalctl_SOURCES = \
3229 src/journal/journalctl.c
3231 journalctl_LDADD = \
3232 libsystemd-journal-internal.la \
3233 libsystemd-internal.la \
3234 libsystemd-logs.la \
3235 libsystemd-shared.la
3238 journalctl_LDADD += \
3243 journalctl_SOURCES += \
3244 src/journal/journal-qrcode.c \
3245 src/journal/journal-qrcode.h
3247 journalctl_CFLAGS += \
3250 journalctl_LDADD += \
3254 test_journal_SOURCES = \
3255 src/journal/test-journal.c
3257 test_journal_LDADD = \
3258 libsystemd-journal-core.la
3260 test_journal_send_SOURCES = \
3261 src/journal/test-journal-send.c
3263 test_journal_send_LDADD = \
3264 libsystemd-journal-core.la
3266 test_journal_syslog_SOURCES = \
3267 src/journal/test-journal-syslog.c
3269 test_journal_syslog_LDADD = \
3270 libsystemd-journal-core.la
3272 test_journal_match_SOURCES = \
3273 src/journal/test-journal-match.c
3275 test_journal_match_LDADD = \
3276 libsystemd-journal-core.la
3278 test_journal_enum_SOURCES = \
3279 src/journal/test-journal-enum.c
3281 test_journal_enum_LDADD = \
3282 libsystemd-journal-core.la
3284 test_journal_stream_SOURCES = \
3285 src/journal/test-journal-stream.c
3287 test_journal_stream_LDADD = \
3288 libsystemd-journal-core.la
3290 test_journal_flush_SOURCES = \
3291 src/journal/test-journal-flush.c
3293 test_journal_flush_LDADD = \
3294 libsystemd-journal-core.la
3296 test_journal_init_SOURCES = \
3297 src/journal/test-journal-init.c
3299 test_journal_init_LDADD = \
3300 libsystemd-journal-core.la
3302 test_journal_verify_SOURCES = \
3303 src/journal/test-journal-verify.c
3305 test_journal_verify_LDADD = \
3306 libsystemd-journal-core.la
3308 test_journal_interleaving_SOURCES = \
3309 src/journal/test-journal-interleaving.c
3311 test_journal_interleaving_LDADD = \
3312 libsystemd-journal-core.la
3314 test_mmap_cache_SOURCES = \
3315 src/journal/test-mmap-cache.c
3317 test_mmap_cache_LDADD = \
3318 libsystemd-journal-core.la
3320 test_catalog_SOURCES = \
3321 src/journal/test-catalog.c
3323 test_catalog_CPPFLAGS = \
3325 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3327 test_catalog_LDADD = \
3328 libsystemd-journal-core.la
3330 libsystemd_journal_core_la_SOURCES = \
3331 src/journal/journald-kmsg.c \
3332 src/journal/journald-kmsg.h \
3333 src/journal/journald-syslog.c \
3334 src/journal/journald-syslog.h \
3335 src/journal/journald-stream.c \
3336 src/journal/journald-stream.h \
3337 src/journal/journald-server.c \
3338 src/journal/journald-server.h \
3339 src/journal/journald-console.c \
3340 src/journal/journald-console.h \
3341 src/journal/journald-wall.c \
3342 src/journal/journald-wall.h \
3343 src/journal/journald-native.c \
3344 src/journal/journald-native.h \
3345 src/journal/journald-rate-limit.c \
3346 src/journal/journald-rate-limit.h \
3347 src/journal/journal-internal.h
3349 nodist_libsystemd_journal_core_la_SOURCES = \
3350 src/journal/journald-gperf.c
3352 libsystemd_journal_core_la_LIBADD = \
3353 libsystemd-journal-internal.la \
3354 libudev-internal.la \
3355 libsystemd-capability.la \
3356 libsystemd-label.la \
3357 libsystemd-internal.la \
3358 libsystemd-shared.la
3361 libsystemd_journal_core_la_LIBADD += \
3365 noinst_LTLIBRARIES += \
3366 libsystemd-journal-core.la
3368 journal-install-hook:
3369 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3370 -chown 0:0 $(DESTDIR)/var/log/journal
3371 -chmod 755 $(DESTDIR)/var/log/journal
3372 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3373 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3375 journal-uninstall-hook:
3376 -rmdir $(DESTDIR)/var/log/journal/
3378 INSTALL_EXEC_HOOKS += journal-install-hook
3379 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3381 # ------------------------------------------------------------------------------
3382 # Update catalog on installation. Do not bother if installing
3383 # in DESTDIR, since this is likely for packaging purposes.
3384 catalog-update-hook:
3385 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3387 INSTALL_DATA_HOOKS += \
3390 catalog-remove-hook:
3391 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3393 UNINSTALL_DATA_HOOKS += \
3402 test-journal-syslog \
3403 test-journal-match \
3404 test-journal-stream \
3406 test-journal-verify \
3407 test-journal-interleaving \
3408 test-journal-flush \
3412 pkginclude_HEADERS += \
3413 src/systemd/sd-journal.h \
3414 src/systemd/sd-messages.h \
3415 src/systemd/_sd-common.h
3417 libsystemd_journal_internal_la_SOURCES = \
3418 src/journal/sd-journal.c \
3419 src/systemd/sd-journal.h \
3420 src/systemd/_sd-common.h \
3421 src/journal/journal-file.c \
3422 src/journal/journal-file.h \
3423 src/journal/journal-vacuum.c \
3424 src/journal/journal-vacuum.h \
3425 src/journal/journal-verify.c \
3426 src/journal/journal-verify.h \
3427 src/journal/lookup3.c \
3428 src/journal/lookup3.h \
3429 src/journal/journal-send.c \
3430 src/journal/journal-def.h \
3431 src/journal/compress.h \
3432 src/journal/catalog.c \
3433 src/journal/catalog.h \
3434 src/journal/mmap-cache.c \
3435 src/journal/mmap-cache.h
3437 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3438 libsystemd_journal_internal_la_CFLAGS =
3441 libsystemd_journal_internal_la_LIBADD =
3444 libsystemd_journal_internal_la_SOURCES += \
3445 src/journal/compress.c
3447 libsystemd_journal_internal_la_CFLAGS += \
3450 libsystemd_journal_internal_la_LIBADD += \
3455 libsystemd_journal_internal_la_SOURCES += \
3456 src/journal/journal-authenticate.c \
3457 src/journal/journal-authenticate.h \
3458 src/journal/fsprg.c \
3461 libsystemd_journal_internal_la_LIBADD += \
3464 # fsprg.c is a drop-in file using void pointer arithmetic
3465 libsystemd_journal_internal_la_CFLAGS += \
3470 noinst_LTLIBRARIES += \
3471 libsystemd-journal-internal.la
3473 rootlibexec_PROGRAMS += \
3476 rootbin_PROGRAMS += \
3482 dist_systemunit_DATA += \
3483 units/systemd-journald.socket
3485 nodist_systemunit_DATA += \
3486 units/systemd-journald.service \
3487 units/systemd-journal-flush.service
3489 dist_pkgsysconf_DATA += \
3490 src/journal/journald.conf
3492 dist_catalog_DATA = \
3493 catalog/systemd.fr.catalog \
3494 catalog/systemd.ru.catalog \
3495 catalog/systemd.it.catalog \
3496 catalog/systemd.catalog
3498 SOCKETS_TARGET_WANTS += \
3499 systemd-journald.socket
3500 SYSINIT_TARGET_WANTS += \
3501 systemd-journald.service \
3502 systemd-journal-flush.service
3505 units/systemd-journald.service.in \
3506 units/systemd-journal-flush.service.in \
3507 src/journal/journald-gperf.gperf
3510 src/journal/journald-gperf.c
3512 # ------------------------------------------------------------------------------
3514 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3516 rootlibexec_PROGRAMS += \
3517 systemd-journal-gatewayd
3519 systemd_journal_gatewayd_SOURCES = \
3520 src/journal/journal-gatewayd.c \
3521 src/journal/microhttpd-util.h \
3522 src/journal/microhttpd-util.c
3524 systemd_journal_gatewayd_LDADD = \
3525 libsystemd-logs.la \
3526 libsystemd-journal-internal.la \
3527 libsystemd-internal.la \
3528 libsystemd-shared.la \
3532 systemd_journal_gatewayd_LDADD += \
3536 systemd_journal_gatewayd_CFLAGS = \
3538 $(MICROHTTPD_CFLAGS)
3540 systemd_journal_gatewayd_CPPFLAGS = \
3542 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3544 dist_systemunit_DATA += \
3545 units/systemd-journal-gatewayd.socket
3547 nodist_systemunit_DATA += \
3548 units/systemd-journal-gatewayd.service
3550 dist_gatewayddocumentroot_DATA = \
3551 src/journal/browse.html
3556 units/systemd-journal-gatewayd.service.in
3558 # ------------------------------------------------------------------------------
3560 systemd_socket_proxyd_SOURCES = \
3561 src/socket-proxy/socket-proxyd.c
3563 systemd_socket_proxyd_LDADD = \
3564 libsystemd-logs.la \
3565 libsystemd-internal.la \
3566 libsystemd-journal-internal.la \
3567 libsystemd-shared.la
3569 # ------------------------------------------------------------------------------
3571 systemd_coredump_SOURCES = \
3572 src/journal/coredump.c
3574 systemd_coredump_LDADD = \
3575 libsystemd-journal-internal.la \
3576 libsystemd-label.la \
3577 libsystemd-internal.la \
3578 libsystemd-shared.la
3580 rootlibexec_PROGRAMS += \
3583 systemd_coredumpctl_SOURCES = \
3584 src/journal/coredumpctl.c
3586 systemd_coredumpctl_LDADD = \
3587 libsystemd-journal-internal.la \
3588 libsystemd-internal.la \
3589 libsystemd-shared.la
3594 dist_bashcompletion_DATA += \
3595 shell-completion/bash/systemd-coredumpctl
3597 dist_zshcompletion_DATA += \
3598 shell-completion/zsh/_systemd-coredumpctl
3601 sysctl.d/50-coredump.conf
3604 sysctl.d/50-coredump.conf
3608 sysctl.d/50-coredump.conf.in
3610 # ------------------------------------------------------------------------------
3612 systemd_binfmt_SOURCES = \
3615 systemd_binfmt_LDADD = \
3616 libsystemd-shared.la
3618 rootlibexec_PROGRAMS += \
3621 dist_systemunit_DATA += \
3622 units/proc-sys-fs-binfmt_misc.automount \
3623 units/proc-sys-fs-binfmt_misc.mount
3625 nodist_systemunit_DATA += \
3626 units/systemd-binfmt.service
3629 $(prefix)/lib/binfmt.d \
3630 $(sysconfdir)/binfmt.d
3632 SYSINIT_TARGET_WANTS += \
3633 systemd-binfmt.service \
3634 proc-sys-fs-binfmt_misc.automount
3639 units/systemd-binfmt.service.in
3641 # ------------------------------------------------------------------------------
3643 systemd_vconsole_setup_SOURCES = \
3644 src/vconsole/vconsole-setup.c
3646 systemd_vconsole_setup_LDADD = \
3647 libsystemd-shared.la
3649 rootlibexec_PROGRAMS += \
3650 systemd-vconsole-setup
3652 nodist_systemunit_DATA += \
3653 units/systemd-vconsole-setup.service
3655 SYSINIT_TARGET_WANTS += \
3656 systemd-vconsole-setup.service
3660 units/systemd-vconsole-setup.service.in
3662 # ------------------------------------------------------------------------------
3664 systemd_readahead_SOURCES = \
3665 src/readahead/readahead.c \
3666 src/readahead/readahead-collect.c \
3667 src/readahead/readahead-replay.c \
3668 src/readahead/readahead-analyze.c \
3669 src/readahead/readahead-common.c \
3670 src/readahead/readahead-common.h
3672 systemd_readahead_LDADD = \
3673 libsystemd-internal.la \
3674 libudev-internal.la \
3675 libsystemd-shared.la
3678 src/readahead/sd-readahead.c \
3679 src/systemd/sd-readahead.h
3681 rootlibexec_PROGRAMS += \
3684 dist_systemunit_DATA += \
3685 units/systemd-readahead-drop.service \
3686 units/systemd-readahead-done.timer
3688 nodist_systemunit_DATA += \
3689 units/systemd-readahead-collect.service \
3690 units/systemd-readahead-replay.service \
3691 units/systemd-readahead-done.service
3696 test_ssd_SOURCES = \
3697 src/readahead/test-ssd.c \
3698 src/readahead/readahead-common.c \
3699 src/readahead/readahead-common.h
3702 libsystemd-internal.la \
3703 libudev-internal.la \
3704 libsystemd-shared.la
3709 units/systemd-readahead-collect.service.in \
3710 units/systemd-readahead-replay.service.in \
3711 units/systemd-readahead-done.service.in
3713 # ------------------------------------------------------------------------------
3715 systemd_bootchart_SOURCES = \
3716 src/bootchart/bootchart.c \
3717 src/bootchart/bootchart.h \
3718 src/bootchart/store.c \
3719 src/bootchart/store.h \
3720 src/bootchart/svg.c \
3723 systemd_bootchart_LDADD = \
3724 libsystemd-journal-internal.la \
3725 libsystemd-shared.la
3727 rootlibexec_PROGRAMS += \
3730 dist_pkgsysconf_DATA += \
3731 src/bootchart/bootchart.conf
3734 # ------------------------------------------------------------------------------
3735 if ENABLE_QUOTACHECK
3736 rootlibexec_PROGRAMS += \
3739 nodist_systemunit_DATA += \
3740 units/systemd-quotacheck.service
3742 systemd_quotacheck_SOURCES = \
3743 src/quotacheck/quotacheck.c
3745 systemd_quotacheck_LDADD = \
3746 libsystemd-shared.la
3750 units/systemd-quotacheck.service.in
3752 nodist_systemunit_DATA += \
3753 units/quotaon.service
3755 # ------------------------------------------------------------------------------
3756 if ENABLE_RANDOMSEED
3757 rootlibexec_PROGRAMS += \
3760 nodist_systemunit_DATA += \
3761 units/systemd-random-seed.service
3763 systemd_random_seed_SOURCES = \
3764 src/random-seed/random-seed.c
3766 systemd_random_seed_LDADD = \
3767 libsystemd-label.la \
3768 libsystemd-shared.la
3770 SYSINIT_TARGET_WANTS += \
3771 systemd-random-seed.service
3776 units/systemd-random-seed.service.in
3778 # ------------------------------------------------------------------------------
3780 rootlibexec_PROGRAMS += \
3783 nodist_systemunit_DATA += \
3784 units/systemd-backlight@.service
3786 systemd_backlight_SOURCES = \
3787 src/backlight/backlight.c
3789 systemd_backlight_LDADD = \
3790 libsystemd-label.la \
3791 libudev-internal.la \
3792 libsystemd-shared.la
3796 units/systemd-backlight@.service.in
3798 # ------------------------------------------------------------------------------
3800 rootlibexec_PROGRAMS += \
3803 nodist_systemunit_DATA += \
3804 units/systemd-rfkill@.service
3806 systemd_rfkill_SOURCES = \
3809 systemd_rfkill_LDADD = \
3810 libsystemd-label.la \
3811 libudev-internal.la \
3812 libsystemd-shared.la
3816 units/systemd-rfkill@.service.in
3818 # ------------------------------------------------------------------------------
3819 if HAVE_LIBCRYPTSETUP
3820 rootlibexec_PROGRAMS += \
3823 systemgenerator_PROGRAMS += \
3824 systemd-cryptsetup-generator
3826 dist_systemunit_DATA += \
3827 units/cryptsetup.target
3829 systemd_cryptsetup_SOURCES = \
3830 src/cryptsetup/cryptsetup.c
3832 systemd_cryptsetup_CFLAGS = \
3834 $(LIBCRYPTSETUP_CFLAGS)
3836 systemd_cryptsetup_LDADD = \
3837 libsystemd-label.la \
3838 libudev-internal.la \
3839 libsystemd-shared.la \
3840 $(LIBCRYPTSETUP_LIBS)
3842 systemd_cryptsetup_generator_SOURCES = \
3843 src/cryptsetup/cryptsetup-generator.c
3845 systemd_cryptsetup_generator_LDADD = \
3846 libsystemd-label.la \
3847 libsystemd-shared.la
3849 SYSINIT_TARGET_WANTS += \
3854 # ------------------------------------------------------------------------------
3856 systemd_hostnamed_SOURCES = \
3857 src/hostname/hostnamed.c
3859 systemd_hostnamed_LDADD = \
3860 libsystemd-label.la \
3861 libsystemd-internal.la \
3862 libsystemd-shared.la
3864 rootlibexec_PROGRAMS += \
3867 nodist_systemunit_DATA += \
3868 units/systemd-hostnamed.service
3870 dist_systemunit_DATA += \
3871 units/org.freedesktop.hostname1.busname
3873 dist_dbuspolicy_DATA += \
3874 src/hostname/org.freedesktop.hostname1.conf
3876 dist_dbussystemservice_DATA += \
3877 src/hostname/org.freedesktop.hostname1.service
3879 polkitpolicy_files += \
3880 src/hostname/org.freedesktop.hostname1.policy
3882 SYSTEM_UNIT_ALIASES += \
3883 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3885 BUSNAMES_TARGET_WANTS += \
3886 org.freedesktop.hostname1.busname
3888 hostnamectl_SOURCES = \
3889 src/hostname/hostnamectl.c
3891 hostnamectl_LDADD = \
3892 libsystemd-internal.la \
3893 libsystemd-shared.la
3898 dist_bashcompletion_DATA += \
3899 shell-completion/bash/hostnamectl
3901 dist_zshcompletion_DATA += \
3902 shell-completion/zsh/_hostnamectl
3906 polkitpolicy_in_files += \
3907 src/hostname/org.freedesktop.hostname1.policy.in
3910 units/systemd-hostnamed.service.in
3912 # ------------------------------------------------------------------------------
3914 dist_systemunit_DATA += \
3915 units/org.freedesktop.systemd1.busname
3917 BUSNAMES_TARGET_WANTS += \
3918 org.freedesktop.systemd1.busname
3921 # ------------------------------------------------------------------------------
3923 systemd_localed_SOURCES = \
3924 src/locale/localed.c
3926 systemd_localed_LDADD = \
3927 libsystemd-label.la \
3928 libsystemd-internal.la \
3929 libsystemd-shared.la
3931 nodist_systemunit_DATA += \
3932 units/systemd-localed.service
3934 dist_systemunit_DATA += \
3935 units/org.freedesktop.locale1.busname
3937 rootlibexec_PROGRAMS += \
3940 dist_dbuspolicy_DATA += \
3941 src/locale/org.freedesktop.locale1.conf
3943 dist_dbussystemservice_DATA += \
3944 src/locale/org.freedesktop.locale1.service
3946 polkitpolicy_files += \
3947 src/locale/org.freedesktop.locale1.policy
3949 SYSTEM_UNIT_ALIASES += \
3950 systemd-localed.service dbus-org.freedesktop.locale1.service
3952 BUSNAMES_TARGET_WANTS += \
3953 org.freedesktop.locale1.busname
3955 dist_pkgdata_DATA += \
3956 src/locale/kbd-model-map
3958 dist_noinst_SCRIPT = \
3959 src/locale/generate-kbd-model-map
3961 update-kbd-model-map: src/locale/generate-kbd-model-map
3962 $PYTHON $< >src/locale/kbd-model-map
3964 localectl_SOURCES = \
3965 src/locale/localectl.c
3968 libsystemd-internal.la \
3969 libsystemd-shared.la
3974 dist_bashcompletion_DATA += \
3975 shell-completion/bash/localectl
3977 dist_zshcompletion_DATA += \
3978 shell-completion/zsh/_localectl
3982 .PHONY: update-kbd-model-map
3984 polkitpolicy_in_files += \
3985 src/locale/org.freedesktop.locale1.policy.in
3988 units/systemd-localed.service.in
3990 # ------------------------------------------------------------------------------
3992 systemd_timedated_SOURCES = \
3993 src/timedate/timedated.c
3995 systemd_timedated_LDADD = \
3996 libsystemd-label.la \
3997 libsystemd-internal.la \
3998 libsystemd-shared.la
4000 rootlibexec_PROGRAMS += \
4003 dist_dbussystemservice_DATA += \
4004 src/timedate/org.freedesktop.timedate1.service
4006 dist_dbuspolicy_DATA += \
4007 src/timedate/org.freedesktop.timedate1.conf
4009 nodist_systemunit_DATA += \
4010 units/systemd-timedated.service
4012 dist_systemunit_DATA += \
4013 units/org.freedesktop.timedate1.busname
4015 polkitpolicy_files += \
4016 src/timedate/org.freedesktop.timedate1.policy
4019 $(prefix)/lib/systemd/ntp-units.d \
4020 $(sysconfdir)/systemd/ntp-units.d
4022 SYSTEM_UNIT_ALIASES += \
4023 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4025 BUSNAMES_TARGET_WANTS += \
4026 org.freedesktop.timedate1.busname
4028 timedatectl_SOURCES = \
4029 src/timedate/timedatectl.c
4031 timedatectl_LDADD = \
4032 libsystemd-internal.la \
4033 libsystemd-shared.la
4038 dist_bashcompletion_DATA += \
4039 shell-completion/bash/timedatectl
4041 dist_zshcompletion_DATA += \
4042 shell-completion/zsh/_timedatectl
4045 polkitpolicy_in_files += \
4046 src/timedate/org.freedesktop.timedate1.policy.in
4049 units/systemd-timedated.service.in
4051 # ------------------------------------------------------------------------------
4053 systemd_timesyncd_SOURCES = \
4054 src/timesync/timesyncd.c \
4055 src/timesync/timesyncd.h
4057 nodist_systemd_timesyncd_SOURCES = \
4058 src/timesync/timesyncd-gperf.c
4061 src/timesync/timesyncd-gperf.gperf
4064 src/timesync/timesyncd-gperf.c
4066 systemd_timesyncd_LDADD = \
4067 libsystemd-resolve.la \
4068 libsystemd-network.la \
4069 libsystemd-label.la \
4070 libsystemd-capability.la \
4071 libsystemd-internal.la \
4072 libsystemd-shared.la \
4075 rootlibexec_PROGRAMS += \
4078 nodist_systemunit_DATA += \
4079 units/systemd-timesyncd.service
4082 units/systemd-timesyncd.service.in
4084 nodist_pkgsysconf_DATA += \
4085 src/timesync/timesyncd.conf
4088 src/timesync/timesyncd.conf.in
4091 src/timesync/timesyncd.conf
4093 dist_ntpunits_DATA = \
4094 src/timesync/90-systemd.list
4098 # ------------------------------------------------------------------------------
4100 libnss_myhostname_la_SOURCES = \
4101 src/nss-myhostname/nss-myhostname.c \
4102 src/nss-myhostname/ifconf.h \
4103 src/nss-myhostname/netlink.c
4105 libnss_myhostname_la_LDFLAGS = \
4113 libnss_myhostname_la_LIBADD = \
4114 libsystemd-shared.la \
4115 libsystemd-internal.la
4117 lib_LTLIBRARIES += \
4118 libnss_myhostname.la
4121 # ------------------------------------------------------------------------------
4123 systemd_machined_SOURCES = \
4124 src/machine/machined.c \
4125 src/machine/machined.h
4127 systemd_machined_LDADD = \
4128 libsystemd-machine-core.la
4130 rootlibexec_PROGRAMS += \
4133 libsystemd_machine_core_la_SOURCES = \
4134 src/machine/machined-dbus.c \
4135 src/machine/machine.c \
4136 src/machine/machine.h \
4137 src/machine/machine-dbus.c
4139 libsystemd_machine_core_la_LIBADD = \
4140 libsystemd-label.la \
4141 libsystemd-internal.la \
4142 libudev-internal.la \
4143 libsystemd-shared.la
4145 noinst_LTLIBRARIES += \
4146 libsystemd-machine-core.la
4148 machinectl_SOURCES = \
4149 src/machine/machinectl.c
4151 machinectl_LDADD = \
4152 libsystemd-internal.la \
4153 libsystemd-shared.la
4155 rootbin_PROGRAMS += \
4158 dist_bashcompletion_DATA += \
4159 shell-completion/bash/machinectl
4161 test_machine_tables_SOURCES = \
4162 src/machine/test-machine-tables.c
4164 test_machine_tables_LDADD = \
4165 libsystemd-machine-core.la
4170 nodist_systemunit_DATA += \
4171 units/systemd-machined.service
4173 dist_systemunit_DATA += \
4174 units/machine.slice \
4175 units/org.freedesktop.machine1.busname
4177 dist_dbussystemservice_DATA += \
4178 src/machine/org.freedesktop.machine1.service
4180 dist_dbuspolicy_DATA += \
4181 src/machine/org.freedesktop.machine1.conf
4183 dist_zshcompletion_DATA += \
4184 shell-completion/zsh/_machinectl \
4185 shell-completion/zsh/_sd_machines
4187 SYSTEM_UNIT_ALIASES += \
4188 systemd-machined.service dbus-org.freedesktop.machine1.service
4190 BUSNAMES_TARGET_WANTS += \
4191 org.freedesktop.machine1.busname
4194 units/systemd-machined.service.in
4198 # ------------------------------------------------------------------------------
4200 systemd_resolved_SOURCES = \
4201 src/resolve/resolved.h \
4202 src/resolve/resolved.c \
4203 src/resolve/resolved-manager.c
4205 systemd_resolved_CFLAGS = \
4209 nodist_systemd_resolved_SOURCES = \
4210 src/resolve/resolved-gperf.c
4213 src/resolve/resolved-gperf.gperf
4216 src/resolve/resolved-gperf.c
4218 systemd_resolved_LDADD = \
4219 libsystemd-network.la \
4220 libsystemd-label.la \
4221 libsystemd-internal.la \
4222 libsystemd-shared.la
4224 rootlibexec_PROGRAMS += \
4227 nodist_systemunit_DATA += \
4228 units/systemd-resolved.service
4231 units/systemd-resolved.service.in
4233 GENERAL_ALIASES += \
4234 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4236 nodist_pkgsysconf_DATA += \
4237 src/resolve/resolved.conf
4240 src/resolve/resolved.conf.in
4243 src/resolve/resolved.conf
4247 # ------------------------------------------------------------------------------
4249 rootlibexec_PROGRAMS += \
4252 systemd_networkd_SOURCES = \
4253 src/network/networkd.c
4255 systemd_networkd_LDADD = \
4256 libsystemd-networkd-core.la \
4259 noinst_LTLIBRARIES += \
4260 libsystemd-networkd-core.la
4262 libsystemd_networkd_core_la_CFLAGS = \
4266 libsystemd_networkd_core_la_SOURCES = \
4267 src/libsystemd-network/network-internal.h \
4268 src/network/networkd.h \
4269 src/network/networkd-link.c \
4270 src/network/networkd-netdev.c \
4271 src/network/networkd-tunnel.c \
4272 src/network/networkd-network.c \
4273 src/network/networkd-address.c \
4274 src/network/networkd-route.c \
4275 src/network/networkd-manager.c
4277 nodist_libsystemd_networkd_core_la_SOURCES = \
4278 src/network/networkd-network-gperf.c \
4279 src/network/networkd-netdev-gperf.c
4281 libsystemd_networkd_core_la_LIBADD = \
4282 libudev-internal.la \
4283 libsystemd-internal.la \
4284 libsystemd-network.la \
4285 libsystemd-label.la \
4286 libsystemd-shared.la
4288 rootlibexec_PROGRAMS += \
4289 systemd-networkd-wait-online
4291 systemd_networkd_wait_online_CFLAGS = \
4295 systemd_networkd_wait_online_SOURCES = \
4296 src/libsystemd-network/network-internal.h \
4297 src/network/networkd-wait-online.c \
4298 src/network/networkd-wait-online.h
4300 systemd_networkd_wait_online_LDADD = \
4301 libsystemd-network.la \
4302 libudev-internal.la \
4303 libsystemd-internal.la \
4304 libsystemd-shared.la
4306 test_network_SOURCES = \
4307 src/network/test-network.c
4309 test_network_CFLAGS = \
4313 test_network_LDADD = \
4314 libsystemd-networkd-core.la
4320 nodist_systemunit_DATA += \
4321 units/systemd-networkd.service \
4322 units/systemd-networkd-wait-online.service
4324 GENERAL_ALIASES += \
4325 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4326 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4329 src/network/networkd-network-gperf.gperf \
4330 src/network/networkd-netdev-gperf.gperf \
4331 units/systemd-networkd.service.in \
4332 units/systemd-networkd-wait-online.service.in
4335 src/network/networkd-network-gperf.c \
4336 src/network/networkd-netdev-gperf.c
4339 # ------------------------------------------------------------------------------
4341 systemd_logind_SOURCES = \
4342 src/login/logind.c \
4345 nodist_systemd_logind_SOURCES = \
4346 src/login/logind-gperf.c
4348 systemd_logind_LDADD = \
4349 libsystemd-logind-core.la
4351 libsystemd_logind_core_la_SOURCES = \
4352 src/login/logind-core.c \
4353 src/login/logind-device.c \
4354 src/login/logind-device.h \
4355 src/login/logind-button.c \
4356 src/login/logind-button.h \
4357 src/login/logind-action.c \
4358 src/login/logind-action.h \
4359 src/login/logind-seat.c \
4360 src/login/logind-seat.h \
4361 src/login/logind-session.c \
4362 src/login/logind-session.h \
4363 src/login/logind-session-device.c \
4364 src/login/logind-session-device.h \
4365 src/login/logind-user.c \
4366 src/login/logind-user.h \
4367 src/login/logind-inhibit.c \
4368 src/login/logind-inhibit.h \
4369 src/login/logind-dbus.c \
4370 src/login/logind-session-dbus.c \
4371 src/login/logind-seat-dbus.c \
4372 src/login/logind-user-dbus.c \
4373 src/login/logind-acl.h
4375 libsystemd_logind_core_la_LIBADD = \
4376 libsystemd-label.la \
4377 libsystemd-capability.la \
4378 libsystemd-internal.la \
4379 libudev-internal.la \
4380 libsystemd-shared.la
4383 libsystemd_logind_core_la_SOURCES += \
4384 src/login/logind-acl.c
4386 libsystemd_logind_core_la_LIBADD += \
4390 noinst_LTLIBRARIES += \
4391 libsystemd-logind-core.la
4393 systemd_user_sessions_SOURCES = \
4394 src/login/user-sessions.c
4396 systemd_user_sessions_LDADD = \
4397 libsystemd-shared.la
4399 rootlibexec_PROGRAMS += \
4401 systemd-user-sessions
4403 loginctl_SOURCES = \
4404 src/login/loginctl.c \
4405 src/login/sysfs-show.c
4408 libsystemd-internal.la \
4409 libudev-internal.la \
4410 libsystemd-shared.la
4412 rootbin_PROGRAMS += \
4415 dist_bashcompletion_DATA += \
4416 shell-completion/bash/loginctl
4418 dist_zshcompletion_DATA += \
4419 shell-completion/zsh/_loginctl \
4420 shell-completion/zsh/_systemd-inhibit
4422 systemd_inhibit_SOURCES = \
4425 systemd_inhibit_LDADD = \
4426 libsystemd-internal.la \
4427 libsystemd-shared.la
4429 rootbin_PROGRAMS += \
4432 test_login_SOURCES = \
4433 src/libsystemd/sd-login/test-login.c
4435 test_login_LDADD = \
4436 libsystemd-internal.la \
4437 libsystemd-shared.la
4439 test_login_shared_SOURCES = \
4440 src/login/test-login-shared.c
4442 test_login_shared_LDADD = \
4443 libsystemd-internal.la \
4444 libsystemd-shared.la
4446 test_inhibit_SOURCES = \
4447 src/login/test-inhibit.c
4449 test_inhibit_LDADD = \
4450 libsystemd-internal.la \
4451 libsystemd-shared.la
4453 test_login_tables_SOURCES = \
4454 src/login/test-login-tables.c
4456 test_login_tables_LDADD = \
4457 libsystemd-logind-core.la
4468 pam_systemd_la_SOURCES = \
4469 src/login/pam-module.c
4471 pam_systemd_la_CFLAGS = \
4476 pam_systemd_la_LDFLAGS = \
4482 -export-symbols-regex '^pam_sm_.*'
4484 pam_systemd_la_LIBADD = \
4485 libsystemd-capability.la \
4486 libsystemd-internal.la \
4487 libsystemd-shared.la \
4490 pamlib_LTLIBRARIES = \
4493 dist_pamconf_DATA = \
4494 src/login/systemd-user
4497 nodist_systemunit_DATA += \
4498 units/systemd-logind.service \
4499 units/systemd-user-sessions.service
4501 dist_systemunit_DATA += \
4503 units/org.freedesktop.login1.busname
4505 dist_dbussystemservice_DATA += \
4506 src/login/org.freedesktop.login1.service
4508 dist_dbuspolicy_DATA += \
4509 src/login/org.freedesktop.login1.conf
4511 dist_pkgsysconf_DATA += \
4512 src/login/logind.conf
4514 polkitpolicy_files += \
4515 src/login/org.freedesktop.login1.policy
4520 MULTI_USER_TARGET_WANTS += \
4521 systemd-logind.service \
4522 systemd-user-sessions.service
4524 SYSTEM_UNIT_ALIASES += \
4525 systemd-logind.service dbus-org.freedesktop.login1.service
4527 BUSNAMES_TARGET_WANTS += \
4528 org.freedesktop.login1.busname
4530 if ENABLE_MULTI_SEAT_X
4532 systemd_multi_seat_x_SOURCES = \
4533 src/login/multi-seat-x.c
4535 systemd_multi_seat_x_LDADD = \
4536 libsystemd-label.la \
4537 libsystemd-shared.la
4539 rootlibexec_PROGRAMS += \
4540 systemd-multi-seat-x
4544 dist_udevrules_DATA += \
4545 src/login/70-uaccess.rules \
4546 src/login/70-power-switch.rules
4548 nodist_udevrules_DATA += \
4549 src/login/71-seat.rules \
4550 src/login/73-seat-late.rules
4553 src/login/logind-gperf.c \
4554 src/login/71-seat.rules \
4555 src/login/73-seat-late.rules
4558 polkitpolicy_in_files += \
4559 src/login/org.freedesktop.login1.policy.in
4562 src/login/logind-gperf.gperf \
4563 src/login/71-seat.rules.in \
4564 src/login/73-seat-late.rules.in \
4565 units/systemd-logind.service.in \
4566 units/systemd-user-sessions.service.in
4568 # ------------------------------------------------------------------------------
4569 if HAVE_PYTHON_DEVEL
4570 pkgpyexec_LTLIBRARIES = \
4577 _journal_la_SOURCES = \
4578 src/python-systemd/_journal.c
4580 _journal_la_CFLAGS = \
4582 -fvisibility=default \
4583 $(PYTHON_DEVEL_CFLAGS)
4585 _journal_la_LDFLAGS = \
4591 _journal_la_LIBADD = \
4592 $(PYTHON_DEVEL_LIBS) \
4595 id128_la_SOURCES = \
4596 src/python-systemd/id128.c \
4597 src/python-systemd/id128-constants.h \
4598 src/python-systemd/pyutil.c \
4599 src/python-systemd/pyutil.h
4603 -fvisibility=default \
4604 $(PYTHON_DEVEL_CFLAGS) \
4605 -I$(top_builddir)/src/python-systemd
4607 id128_la_LDFLAGS = \
4614 $(PYTHON_DEVEL_LIBS) \
4615 libsystemd-shared.la \
4618 _daemon_la_SOURCES = \
4619 src/python-systemd/_daemon.c \
4620 src/python-systemd/pyutil.c \
4621 src/python-systemd/pyutil.h
4623 _daemon_la_CFLAGS = \
4625 -fvisibility=default \
4626 $(PYTHON_DEVEL_CFLAGS) \
4627 -I$(top_builddir)/src/python-systemd
4629 _daemon_la_LDFLAGS = \
4635 _daemon_la_LIBADD = \
4636 $(PYTHON_DEVEL_LIBS) \
4637 libsystemd-shared.la \
4640 _reader_la_SOURCES = \
4641 src/python-systemd/_reader.c \
4642 src/python-systemd/pyutil.c \
4643 src/python-systemd/pyutil.h
4645 _reader_la_CFLAGS = \
4647 -fvisibility=default \
4648 $(PYTHON_DEVEL_CFLAGS)
4650 _reader_la_LDFLAGS = \
4656 _reader_la_LIBADD = \
4657 $(PYTHON_DEVEL_LIBS) \
4658 libsystemd-shared.la \
4661 login_la_SOURCES = \
4662 src/python-systemd/login.c \
4663 src/python-systemd/pyutil.c \
4664 src/python-systemd/pyutil.h
4668 -fvisibility=default \
4669 $(PYTHON_DEVEL_CFLAGS)
4671 login_la_LDFLAGS = \
4678 $(PYTHON_DEVEL_LIBS) \
4679 libsystemd-shared.la \
4682 dist_pkgpyexec_PYTHON = \
4683 src/python-systemd/journal.py \
4684 src/python-systemd/daemon.py \
4685 src/python-systemd/__init__.py
4687 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4688 $(AM_V_at)$(MKDIR_P) $(dir $@)
4689 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4692 src/python-systemd/id128-constants.h
4694 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4696 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4697 $(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/
4698 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4701 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4702 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4705 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4706 $(MAKE) DESTDIR="$$dir" install && \
4707 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4712 CLEAN_LOCAL_HOOKS += clean-sphinx
4714 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4717 -rm -rf docs/html/python-systemd/
4719 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4721 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4722 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4724 # ------------------------------------------------------------------------------
4725 if ENABLE_COMPAT_LIBS
4727 src/compat-libs/linkwarning.h
4729 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4730 $(AM_V_at)$(MKDIR_P) $(dir $@)
4731 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4734 libsystemd-journal.c \
4735 libsystemd-login.c \
4736 libsystemd-id128.c \
4739 libsystemd_journal_la_SOURCES = \
4740 libsystemd-journal.c \
4741 src/compat-libs/libsystemd-journal.sym
4743 libsystemd_journal_la_CPPFLAGS = \
4745 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4747 libsystemd_journal_la_LDFLAGS = \
4749 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4750 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
4752 libsystemd_journal_la_LIBADD = \
4753 libsystemd-journal-internal.la \
4754 libsystemd-internal.la \
4755 libsystemd-shared.la
4757 libsystemd_login_la_SOURCES = \
4758 libsystemd-login.c \
4759 src/compat-libs/libsystemd-login.sym
4761 libsystemd_login_la_CPPFLAGS = \
4763 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4765 libsystemd_login_la_LDFLAGS = \
4767 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4768 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
4770 libsystemd_login_la_LIBADD = \
4771 libsystemd-internal.la \
4772 libsystemd-shared.la
4774 libsystemd_id128_la_SOURCES = \
4775 libsystemd-id128.c \
4776 src/compat-libs/libsystemd-id128.sym
4778 libsystemd_id128_la_CPPFLAGS = \
4780 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4782 libsystemd_id128_la_LDFLAGS = \
4784 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
4785 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
4787 libsystemd_id128_la_LIBADD = \
4788 libsystemd-internal.la \
4789 libsystemd-shared.la
4791 libsystemd_daemon_la_SOURCES = \
4792 libsystemd-daemon.c \
4793 src/compat-libs/libsystemd-daemon.sym
4795 libsystemd_daemon_la_CPPFLAGS = \
4797 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4799 libsystemd_daemon_la_LDFLAGS = \
4801 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
4802 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
4804 libsystemd_daemon_la_LIBADD = \
4805 libsystemd-internal.la \
4806 libsystemd-shared.la
4808 lib_LTLIBRARIES += \
4809 libsystemd-journal.la \
4810 libsystemd-login.la \
4811 libsystemd-id128.la \
4812 libsystemd-daemon.la
4814 pkgconfiglib_DATA += \
4815 src/compat-libs/libsystemd-journal.pc \
4816 src/compat-libs/libsystemd-login.pc \
4817 src/compat-libs/libsystemd-id128.pc \
4818 src/compat-libs/libsystemd-daemon.pc
4820 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4821 compat-lib-install-hook:
4822 libname=libsystemd-login.so && $(move-to-rootlibdir)
4823 libname=libsystemd-journal.so && $(move-to-rootlibdir)
4824 libname=libsystemd-id128.so && $(move-to-rootlibdir)
4825 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
4827 compat-lib-uninstall-hook:
4828 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4829 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
4830 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
4831 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
4833 INSTALL_EXEC_HOOKS += compat-lib-install-hook
4834 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
4838 src/compat-libs/libsystemd-journal.pc.in \
4839 src/compat-libs/libsystemd-login.pc.in \
4840 src/compat-libs/libsystemd-id128.pc.in \
4841 src/compat-libs/libsystemd-daemon.pc.in
4843 # ------------------------------------------------------------------------------
4845 '|rootlibexecdir=$(rootlibexecdir)|' \
4846 '|rootbindir=$(rootbindir)|' \
4847 '|bindir=$(bindir)|' \
4848 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4849 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4850 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4851 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4852 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4853 '|pkgdatadir=$(pkgdatadir)|' \
4854 '|systemunitdir=$(systemunitdir)|' \
4855 '|userunitdir=$(userunitdir)|' \
4856 '|systempresetdir=$(systempresetdir)|' \
4857 '|userpresetdir=$(userpresetdir)|' \
4858 '|udevhwdbdir=$(udevhwdbdir)|' \
4859 '|udevrulesdir=$(udevrulesdir)|' \
4860 '|catalogdir=$(catalogdir)|' \
4861 '|tmpfilesdir=$(tmpfilesdir)|' \
4862 '|sysctldir=$(sysctldir)|' \
4863 '|systemgeneratordir=$(systemgeneratordir)|' \
4864 '|usergeneratordir=$(usergeneratordir)|' \
4865 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4866 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4867 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4868 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4869 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4870 '|prefix=$(prefix)|' \
4871 '|exec_prefix=$(exec_prefix)|' \
4872 '|libdir=$(libdir)|' \
4873 '|includedir=$(includedir)|' \
4874 '|VERSION=$(VERSION)|' \
4875 '|rootprefix=$(rootprefix)|' \
4876 '|udevlibexecdir=$(udevlibexecdir)|' \
4877 '|SUSHELL=$(SUSHELL)|' \
4878 '|DEBUGTTY=$(DEBUGTTY)|' \
4881 '|MKDIR_P=$(MKDIR_P)|' \
4882 '|QUOTAON=$(QUOTAON)|' \
4883 '|QUOTACHECK=$(QUOTACHECK)|' \
4884 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4885 '|VARLOGDIR=$(varlogdir)|' \
4886 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4887 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4888 '|PYTHON=$(PYTHON)|' \
4889 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
4890 '|NTP_SERVERS=$(NTP_SERVERS)|' \
4891 '|DNS_SERVERS=$(DNS_SERVERS)|' \
4892 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
4893 '|systemgidmax=$(SYSTEM_GID_MAX)|'
4896 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4897 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4906 sysctl.d/%: sysctl.d/%.in
4912 src/core/macros.%: src/core/macros.%.in
4915 src/%.policy.in: src/%.policy.in.in
4926 $(AM_V_GEN)chmod +x $@
4928 src/%.c: src/%.gperf
4929 $(AM_V_at)$(MKDIR_P) $(dir $@)
4930 $(AM_V_GPERF)$(GPERF) < $< > $@
4933 $(AM_V_at)$(MKDIR_P) $(dir $@)
4934 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4937 $(AM_V_at)$(MKDIR_P) $(dir $@)
4938 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4940 units/user/%: units/%.m4
4941 $(AM_V_at)$(MKDIR_P) $(dir $@)
4942 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4945 nodist_polkitpolicy_DATA = \
4946 $(polkitpolicy_files) \
4947 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4951 $(polkitpolicy_in_files) \
4952 $(polkitpolicy_in_in_files)
4955 $(nodist_systemunit_DATA) \
4956 $(nodist_userunit_DATA) \
4957 $(pkgconfigdata_DATA) \
4958 $(pkgconfiglib_DATA) \
4959 $(nodist_polkitpolicy_DATA)
4961 # ------------------------------------------------------------------------------
4963 man/custom-entities.ent: configure.ac
4964 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4965 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4966 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
4970 man/custom-entities.ent
4975 --stringparam man.output.quietly 1 \
4976 --stringparam funcsynopsis.style ansi \
4977 --stringparam man.authors.section.enabled 0 \
4978 --stringparam man.copyright.section.enabled 0 \
4979 --stringparam systemd.version $(VERSION) \
4980 --path '$(builddir)/man:$(srcdir)/man'
4982 XSLTPROC_PROCESS_MAN = \
4983 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4985 XSLTPROC_PROCESS_HTML = \
4986 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4988 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4989 $(XSLTPROC_PROCESS_MAN)
4991 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4992 $(XSLTPROC_PROCESS_MAN)
4994 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4995 $(XSLTPROC_PROCESS_MAN)
4997 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4998 $(XSLTPROC_PROCESS_MAN)
5000 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5001 $(XSLTPROC_PROCESS_MAN)
5003 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5004 $(XSLTPROC_PROCESS_HTML)
5007 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5013 man/custom-html.xsl \
5016 # ------------------------------------------------------------------------------
5019 docs/sysvinit/README
5024 docs/sysvinit/README: docs/sysvinit/README.in
5027 docs/var-log/README: docs/var-log/README.in
5031 docs/sysvinit/README \
5036 docs/sysvinit/README.in \
5037 docs/var-log/README.in
5039 SOCKETS_TARGET_WANTS += \
5040 systemd-initctl.socket \
5041 systemd-shutdownd.socket
5044 RUNLEVEL1_TARGET_WANTS += \
5045 systemd-update-utmp-runlevel.service
5046 RUNLEVEL2_TARGET_WANTS += \
5047 systemd-update-utmp-runlevel.service
5048 RUNLEVEL3_TARGET_WANTS += \
5049 systemd-update-utmp-runlevel.service
5050 RUNLEVEL4_TARGET_WANTS += \
5051 systemd-update-utmp-runlevel.service
5052 RUNLEVEL5_TARGET_WANTS += \
5053 systemd-update-utmp-runlevel.service
5055 SYSINIT_TARGET_WANTS += \
5056 systemd-update-utmp.service
5057 LOCAL_FS_TARGET_WANTS += \
5058 systemd-remount-fs.service \
5060 MULTI_USER_TARGET_WANTS += \
5062 systemd-ask-password-wall.path
5063 SYSINIT_TARGET_WANTS += \
5064 dev-hugepages.mount \
5066 sys-kernel-config.mount \
5067 sys-kernel-debug.mount \
5068 sys-fs-fuse-connections.mount \
5069 systemd-sysctl.service \
5070 systemd-ask-password-console.path
5073 SYSTEM_UNIT_ALIASES += \
5074 poweroff.target runlevel0.target \
5075 rescue.target runlevel1.target \
5076 multi-user.target runlevel2.target \
5077 multi-user.target runlevel3.target \
5078 multi-user.target runlevel4.target \
5079 graphical.target runlevel5.target \
5080 reboot.target runlevel6.target
5083 SYSTEM_UNIT_ALIASES += \
5084 graphical.target default.target \
5085 reboot.target ctrl-alt-del.target \
5086 getty@.service autovt@.service
5088 USER_UNIT_ALIASES += \
5089 $(systemunitdir)/shutdown.target shutdown.target \
5090 $(systemunitdir)/sockets.target sockets.target \
5091 $(systemunitdir)/busnames.target busnames.target \
5092 $(systemunitdir)/timers.target timers.target \
5093 $(systemunitdir)/paths.target paths.target \
5094 $(systemunitdir)/bluetooth.target bluetooth.target \
5095 $(systemunitdir)/printer.target printer.target \
5096 $(systemunitdir)/sound.target sound.target \
5097 $(systemunitdir)/smartcard.target smartcard.target
5099 GENERAL_ALIASES += \
5100 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5101 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5102 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5103 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5107 $(systemunitdir)/runlevel1.target.wants \
5108 $(systemunitdir)/runlevel2.target.wants \
5109 $(systemunitdir)/runlevel3.target.wants \
5110 $(systemunitdir)/runlevel4.target.wants \
5111 $(systemunitdir)/runlevel5.target.wants
5115 $(prefix)/lib/modules-load.d \
5116 $(sysconfdir)/modules-load.d \
5117 $(prefix)/lib/systemd/network \
5118 $(sysconfdir)/systemd/network \
5119 $(prefix)/lib/sysctl.d \
5120 $(sysconfdir)/sysctl.d \
5121 $(prefix)/lib/kernel/install.d \
5122 $(sysconfdir)/kernel/install.d \
5123 $(systemshutdowndir) \
5125 $(systemgeneratordir) \
5126 $(usergeneratordir) \
5129 $(pkgsysconfdir)/system \
5130 $(pkgsysconfdir)/system/multi-user.target.wants \
5131 $(pkgsysconfdir)/system/getty.target.wants \
5132 $(pkgsysconfdir)/user \
5133 $(dbussessionservicedir) \
5134 $(sysconfdir)/xdg/systemd
5136 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5138 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5140 install-data-hook: $(INSTALL_DATA_HOOKS)
5142 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5144 clean-local: $(CLEAN_LOCAL_HOOKS)
5145 rm -rf $(abs_srcdir)/install-tree
5146 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5147 $(abs_srcdir)/hwdb/iab.txt
5149 DISTCHECK_CONFIGURE_FLAGS = \
5150 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5151 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5152 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5153 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5154 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5155 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5156 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5157 --with-rootprefix=$$dc_install_base \
5158 --disable-split-usr \
5160 --enable-compat-libs
5163 DISTCHECK_CONFIGURE_FLAGS += \
5164 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5165 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5167 DISTCHECK_CONFIGURE_FLAGS += \
5168 --with-sysvinit-path= \
5169 --with-sysvrcnd-path=
5173 DISTCHECK_CONFIGURE_FLAGS += \
5177 # check "broken" platforms limited toolchains for link breakage before we release
5180 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5184 ( cd $(top_srcdir)/hwdb && \
5185 wget -N http://www.linux-usb.org/usb.ids \
5186 http://pci-ids.ucw.cz/v2.2/pci.ids \
5187 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5188 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5191 .PHONY: kdbus-update
5193 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5194 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5198 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5200 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5202 upload: all check dist
5203 scp systemd-$(VERSION).tar.xz $(www_target)
5206 doc-sync: all destdir-sphinx
5207 gtkdoc-rebase --html-dir=docs/libudev/html --online
5208 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5209 gtkdoc-rebase --html-dir=docs/gudev/html --online
5210 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5211 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5212 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5216 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5217 scp man/*.html tango:public/systemd-man/
5219 .PHONY: install-tree
5221 rm -rf $(abs_srcdir)/install-tree
5222 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5223 tree $(abs_srcdir)/install-tree
5225 # Let's run all tests of the test suite, but under valgrind. Let's
5226 # exclude the one perl script we have in there
5227 .PHONY: valgrind-tests
5228 valgrind-tests: $(TESTS)
5229 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5230 if file $$f | grep -q shell; then \
5231 echo -e "$${x}Skipping non-binary $$f"; else \
5232 echo -e "$${x}Running $$f"; \
5233 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5238 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5240 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5241 $(AM_V_GEN)cat $^ > $@
5243 .PHONY: check-api-docs
5244 check-api-docs: exported man
5245 $(AM_V_GEN)for symbol in `cat exported` ; do \
5246 if test -f $(builddir)/man/$$symbol.html ; then \
5247 echo " Symbol $$symbol() is documented." ; \
5249 echo "‣ Symbol $$symbol() lacks documentation." ; \
5253 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5254 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5256 undefined defined: $(ALL_OBJECTS)
5257 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5258 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5259 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5265 .PHONY: check-api-unused
5266 check-api-unused: defined undefined exported
5267 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5269 .PHONY: check-includes
5270 check-includes: $(top_srcdir)/tools/check-includes.pl
5271 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5272 | xargs $(top_srcdir)/tools/check-includes.pl
5275 $(top_srcdir)/tools/check-includes.pl
5277 # Stupid test that everything purported to be exported really is
5278 define generate-sym-test
5279 $(AM_V_at)$(MKDIR_P) $(dir $@)
5280 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5281 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5282 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5283 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5284 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5285 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5286 $(AM_V_at)printf 'return 0; }\n' >> $@
5289 test-libsystemd-sym.c: \
5290 $(top_builddir)/src/libsystemd/libsystemd.sym \
5291 src/systemd/sd-journal.h \
5292 src/systemd/sd-daemon.h \
5293 src/systemd/sd-login.h \
5294 src/systemd/sd-bus.h \
5295 src/systemd/sd-utf8.h \
5296 src/systemd/sd-resolve.h
5297 $(generate-sym-test)
5299 test-libudev-sym.c: \
5300 src/libudev/libudev.sym \
5302 $(generate-sym-test)
5304 test_libsystemd_sym_SOURCES = \
5305 test-libsystemd-sym.c
5306 test_libsystemd_sym_LDADD = \
5309 test_libudev_sym_SOURCES = \
5311 test_libudev_sym_CFLAGS = \
5313 -Wno-deprecated-declarations
5314 test_libudev_sym_LDADD = \
5318 $(test_libsystemd_sym_SOURCES) \
5319 $(test_libudev_sym_SOURCES)
5322 test-libsystemd-sym \
5327 cppcheck --enable=all -q $(top_srcdir)
5329 # Used to extract compile flags for YCM.
5334 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u