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/systemd \
194 -I $(top_builddir)/src/core \
195 -I $(top_srcdir)/src/core \
196 -I $(top_srcdir)/src/libudev \
197 -I $(top_srcdir)/src/udev \
198 -I $(top_srcdir)/src/udev/net \
199 -I $(top_builddir)/src/udev \
200 -I $(top_srcdir)/src/libsystemd/sd-bus \
201 -I $(top_srcdir)/src/libsystemd/sd-event \
202 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
203 -I $(top_srcdir)/src/libsystemd-network \
206 AM_CFLAGS = $(OUR_CFLAGS)
207 AM_LDFLAGS = $(OUR_LDFLAGS)
209 # ------------------------------------------------------------------------------
210 define move-to-rootlibdir
211 if test "$(libdir)" != "$(rootlibdir)"; then \
212 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
213 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
214 rm -f $(DESTDIR)$(libdir)/$$libname && \
215 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
216 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
222 RUNLEVEL1_TARGET_WANTS =
223 RUNLEVEL2_TARGET_WANTS =
224 RUNLEVEL3_TARGET_WANTS =
225 RUNLEVEL4_TARGET_WANTS =
226 RUNLEVEL5_TARGET_WANTS =
227 SHUTDOWN_TARGET_WANTS =
228 LOCAL_FS_TARGET_WANTS =
229 MULTI_USER_TARGET_WANTS =
230 SYSINIT_TARGET_WANTS =
231 SOCKETS_TARGET_WANTS =
232 BUSNAMES_TARGET_WANTS =
233 TIMERS_TARGET_WANTS =
234 USER_SOCKETS_TARGET_WANTS =
235 USER_BUSNAMES_TARGET_WANTS =
237 SYSTEM_UNIT_ALIASES =
241 install-target-wants-hook:
242 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
243 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
244 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
245 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
246 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
247 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
248 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
249 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
254 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
255 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
256 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
259 [ -z "$$what" ] || ( \
260 dir=$(DESTDIR)$$dir/$$wants.wants && \
261 $(MKDIR_P) -m 0755 $$dir && \
264 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
267 install-directories-hook:
268 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
270 install-aliases-hook:
271 set -- $(SYSTEM_UNIT_ALIASES) && \
272 dir=$(systemunitdir) && $(install-aliases)
273 set -- $(USER_UNIT_ALIASES) && \
274 dir=$(userunitdir) && $(install-relative-aliases)
275 set -- $(GENERAL_ALIASES) && \
276 dir= && $(install-relative-aliases)
278 define install-aliases
279 while [ -n "$$1" ]; do \
280 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
281 rm -f $(DESTDIR)$$dir/$$2 && \
282 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
283 shift 2 || exit $$?; \
287 define install-relative-aliases
288 while [ -n "$$1" ]; do \
289 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
290 rm -f $(DESTDIR)$$dir/$$2 && \
291 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
292 shift 2 || exit $$?; \
296 INSTALL_EXEC_HOOKS += \
297 install-target-wants-hook \
298 install-directories-hook \
301 # ------------------------------------------------------------------------------
302 AM_V_M4 = $(AM_V_M4_$(V))
303 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
304 AM_V_M4_0 = @echo " M4 " $@;
306 AM_V_XSLT = $(AM_V_XSLT_$(V))
307 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
308 AM_V_XSLT_0 = @echo " XSLT " $@;
310 AM_V_GPERF = $(AM_V_GPERF_$(V))
311 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
312 AM_V_GPERF_0 = @echo " GPERF " $@;
314 AM_V_LN = $(AM_V_LN_$(V))
315 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
316 AM_V_LN_0 = @echo " LN " $@;
318 AM_V_RM = $(AM_V_RM_$(V))
319 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
320 AM_V_RM_0 = @echo " RM " $@;
322 # ------------------------------------------------------------------------------
326 systemd-ask-password \
327 systemd-tty-ask-password-agent \
328 systemd-machine-id-setup
334 systemd-detect-virt \
340 src/kernel-install/kernel-install
342 dist_kernelinstall_SCRIPTS = \
343 src/kernel-install/50-depmod.install \
344 src/kernel-install/90-loaderentry.install
346 rootlibexec_PROGRAMS = \
348 systemd-cgroups-agent \
350 systemd-update-utmp \
354 systemd-reply-password \
360 systemd-socket-proxyd
362 systemgenerator_PROGRAMS = \
363 systemd-getty-generator \
364 systemd-fstab-generator \
365 systemd-system-update-generator
367 dist_bashcompletion_DATA = \
368 shell-completion/bash/busctl \
369 shell-completion/bash/journalctl \
370 shell-completion/bash/systemctl \
371 shell-completion/bash/systemd-analyze \
372 shell-completion/bash/systemd-cat \
373 shell-completion/bash/systemd-cgls \
374 shell-completion/bash/systemd-cgtop \
375 shell-completion/bash/systemd-delta \
376 shell-completion/bash/systemd-detect-virt \
377 shell-completion/bash/systemd-nspawn \
378 shell-completion/bash/systemd-run \
379 shell-completion/bash/udevadm \
380 shell-completion/bash/kernel-install
382 dist_zshcompletion_DATA = \
383 shell-completion/zsh/_systemctl \
384 shell-completion/zsh/_journalctl \
385 shell-completion/zsh/_udevadm \
386 shell-completion/zsh/_kernel-install \
387 shell-completion/zsh/_systemd-nspawn \
388 shell-completion/zsh/_systemd-analyze \
389 shell-completion/zsh/_systemd-run \
390 shell-completion/zsh/_sd_hosts_or_user_at_host \
391 shell-completion/zsh/_systemd-delta \
392 shell-completion/zsh/_systemd
395 sysctl.d/50-default.conf
397 dist_systemunit_DATA = \
398 units/graphical.target \
399 units/multi-user.target \
400 units/emergency.service \
401 units/emergency.target \
402 units/sysinit.target \
407 units/local-fs.target \
408 units/local-fs-pre.target \
409 units/initrd.target \
410 units/initrd-fs.target \
411 units/initrd-root-fs.target \
412 units/remote-fs.target \
413 units/remote-fs-pre.target \
414 units/network.target \
415 units/network-online.target \
416 units/nss-lookup.target \
417 units/nss-user-lookup.target \
418 units/hibernate.target \
419 units/hybrid-sleep.target \
420 units/poweroff.target \
421 units/reboot.target \
422 units/rescue.target \
423 units/rpcbind.target \
424 units/time-sync.target \
425 units/shutdown.target \
427 units/umount.target \
428 units/sigpwr.target \
430 units/sockets.target \
431 units/busnames.target \
432 units/timers.target \
434 units/suspend.target \
436 units/slices.target \
439 units/systemd-initctl.socket \
440 units/systemd-shutdownd.socket \
441 units/syslog.socket \
442 units/dev-hugepages.mount \
443 units/dev-mqueue.mount \
444 units/sys-kernel-config.mount \
445 units/sys-kernel-debug.mount \
446 units/sys-fs-fuse-connections.mount \
448 units/printer.target \
450 units/bluetooth.target \
451 units/smartcard.target \
452 units/systemd-ask-password-wall.path \
453 units/systemd-ask-password-console.path \
454 units/systemd-udevd-control.socket \
455 units/systemd-udevd-kernel.socket \
456 units/system-update.target \
457 units/initrd-switch-root.target
459 nodist_systemunit_DATA = \
460 units/getty@.service \
461 units/serial-getty@.service \
462 units/console-shell.service \
463 units/console-getty.service \
464 units/container-getty@.service \
465 units/systemd-initctl.service \
466 units/systemd-shutdownd.service \
467 units/systemd-remount-fs.service \
468 units/systemd-update-utmp.service \
469 units/systemd-update-utmp-runlevel.service \
470 units/systemd-ask-password-wall.service \
471 units/systemd-ask-password-console.service \
472 units/systemd-sysctl.service \
473 units/emergency.service \
474 units/rescue.service \
475 units/user@.service \
476 units/systemd-hibernate.service \
477 units/systemd-hybrid-sleep.service \
478 units/systemd-suspend.service \
479 units/systemd-halt.service \
480 units/systemd-poweroff.service \
481 units/systemd-reboot.service \
482 units/systemd-kexec.service \
483 units/systemd-fsck@.service \
484 units/systemd-fsck-root.service \
485 units/systemd-udevd.service \
486 units/systemd-udev-trigger.service \
487 units/systemd-udev-settle.service \
488 units/debug-shell.service \
489 units/initrd-parse-etc.service \
490 units/initrd-cleanup.service \
491 units/initrd-udevadm-cleanup-db.service \
492 units/initrd-switch-root.service \
493 units/systemd-nspawn@.service
495 dist_userunit_DATA = \
496 units/user/basic.target \
497 units/user/default.target \
498 units/user/exit.target
500 nodist_userunit_DATA = \
501 units/user/systemd-exit.service
504 units/getty@.service.m4 \
505 units/serial-getty@.service.m4 \
506 units/console-shell.service.m4.in \
507 units/console-getty.service.m4.in \
508 units/container-getty@.service.m4.in \
509 units/rescue.service.m4.in \
510 units/systemd-initctl.service.in \
511 units/systemd-shutdownd.service.in \
512 units/systemd-remount-fs.service.in \
513 units/systemd-update-utmp.service.in \
514 units/systemd-update-utmp-runlevel.service.in \
515 units/systemd-ask-password-wall.service.in \
516 units/systemd-ask-password-console.service.in \
517 units/systemd-sysctl.service.in \
518 units/emergency.service.in \
519 units/systemd-halt.service.in \
520 units/systemd-poweroff.service.in \
521 units/systemd-reboot.service.in \
522 units/systemd-kexec.service.in \
523 units/user/systemd-exit.service.in \
524 units/systemd-fsck@.service.in \
525 units/systemd-fsck-root.service.in \
526 units/user@.service.in \
527 units/debug-shell.service.in \
528 units/systemd-hibernate.service.in \
529 units/systemd-hybrid-sleep.service.in \
530 units/systemd-suspend.service.in \
531 units/quotaon.service.in \
532 units/initrd-parse-etc.service.in \
533 units/initrd-cleanup.service.in \
534 units/initrd-udevadm-cleanup-db.service.in \
535 units/initrd-switch-root.service.in \
536 units/systemd-nspawn@.service.in
539 units/console-shell.service.m4 \
540 units/console-getty.service.m4 \
541 units/container-getty@.service.m4 \
542 units/rescue.service.m4 \
543 units/user@.service.m4
546 nodist_systemunit_DATA += \
547 units/rc-local.service \
548 units/halt-local.service
550 systemgenerator_PROGRAMS += \
551 systemd-rc-local-generator
555 units/rc-local.service.in \
556 units/halt-local.service.in
558 # automake is broken and can't handle files with a dash in front
559 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
561 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
563 units-uninstall-hook:
564 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
566 INSTALL_DATA_HOOKS += units-install-hook
567 UNINSTALL_DATA_HOOKS += units-uninstall-hook
576 src/libsystemd/sd-bus/PORTING-DBUS1 \
577 src/libsystemd/sd-bus/DIFFERENCES \
578 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
580 @INTLTOOL_POLICY_RULE@
582 # ------------------------------------------------------------------------------
587 include Makefile-man.am
589 .PHONY: man update-man-list
590 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
593 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
595 ${XML_FILES:.xml=.html}
597 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
614 $(AM_V_at)$(MKDIR_P) $(dir $@)
615 $(AM_V_LN)$(LN_S) -f ../../man $@
624 man/index.html: man/systemd.index.html
625 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
633 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
634 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
635 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
637 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
638 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
639 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
640 @echo "Makefile-man.am has been regenerated"
642 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
643 $(AM_V_at)$(MKDIR_P) $(dir $@)
644 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
646 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
647 $(AM_V_at)$(MKDIR_P) $(dir $@)
648 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
651 man/systemd.index.xml \
653 man/systemd.directives.xml
656 man/systemd.index.xml \
657 man/systemd.directives.xml
668 tools/make-man-index.py \
669 tools/make-directive-index.py \
670 tools/make-man-rules.py \
673 # ------------------------------------------------------------------------------
674 noinst_LTLIBRARIES += \
677 libsystemd_shared_la_SOURCES = \
678 src/shared/linux/auto_dev-ioctl.h \
679 src/shared/linux/fanotify.h \
680 src/shared/ioprio.h \
681 src/shared/missing.h \
682 src/shared/initreq.h \
683 src/shared/securebits.h \
684 src/shared/special.h \
688 src/shared/sparse-endian.h \
689 src/shared/refcnt.h \
690 src/shared/udev-util.h \
691 src/shared/bus-errors.h \
692 src/shared/device-nodes.c \
693 src/shared/device-nodes.h \
698 src/shared/architecture.c \
699 src/shared/architecture.h \
700 src/shared/efivars.c \
701 src/shared/efivars.h \
702 src/shared/path-util.c \
703 src/shared/path-util.h \
704 src/shared/time-util.c \
705 src/shared/time-util.h \
706 src/shared/hashmap.c \
707 src/shared/hashmap.h \
708 src/shared/siphash24.c \
709 src/shared/siphash24.h \
716 src/shared/sleep-config.c \
717 src/shared/sleep-config.h \
720 src/shared/env-util.c \
721 src/shared/env-util.h \
722 src/shared/strbuf.c \
723 src/shared/strbuf.h \
724 src/shared/strxcpyx.c \
725 src/shared/strxcpyx.h \
726 src/shared/conf-parser.c \
727 src/shared/conf-parser.h \
730 src/shared/ratelimit.h \
731 src/shared/ratelimit.c \
732 src/shared/exit-status.c \
733 src/shared/exit-status.h \
736 src/shared/gunicode.c \
737 src/shared/gunicode.h \
740 src/shared/socket-util.c \
741 src/shared/socket-util.h \
742 src/shared/conf-files.c \
743 src/shared/conf-files.h \
744 src/shared/cgroup-util.c \
745 src/shared/cgroup-util.h \
746 src/shared/cgroup-show.c \
747 src/shared/cgroup-show.h \
748 src/shared/unit-name.c \
749 src/shared/unit-name.h \
750 src/shared/utmp-wtmp.c \
751 src/shared/utmp-wtmp.h \
752 src/shared/watchdog.c \
753 src/shared/watchdog.h \
754 src/shared/spawn-ask-password-agent.c \
755 src/shared/spawn-ask-password-agent.h \
756 src/shared/replace-var.c \
757 src/shared/replace-var.h \
758 src/shared/spawn-polkit-agent.c \
759 src/shared/spawn-polkit-agent.h \
760 src/shared/hwclock.c \
761 src/shared/hwclock.h \
762 src/shared/time-dst.c \
763 src/shared/time-dst.h \
764 src/shared/calendarspec.c \
765 src/shared/calendarspec.h \
766 src/shared/fileio.c \
767 src/shared/fileio.h \
768 src/shared/output-mode.h \
769 src/shared/MurmurHash2.c \
770 src/shared/MurmurHash2.h \
771 src/shared/acpi-fpdt.h \
772 src/shared/acpi-fpdt.c \
773 src/shared/boot-timestamps.h \
774 src/shared/boot-timestamps.c \
777 src/shared/smack-util.c \
778 src/shared/smack-util.h \
779 src/shared/apparmor-util.c \
780 src/shared/apparmor-util.h \
781 src/shared/ima-util.c \
782 src/shared/ima-util.h \
783 src/shared/ptyfwd.c \
784 src/shared/ptyfwd.h \
785 src/shared/errno-list.c \
786 src/shared/errno-list.h \
787 src/shared/af-list.c \
788 src/shared/af-list.h \
793 src/shared/condition-util.c \
794 src/shared/condition-util.h \
795 src/shared/bus-label.c \
796 src/shared/bus-label.h \
798 src/shared/generator.h \
799 src/shared/generator.c \
800 src/shared/clean-ipc.h \
801 src/shared/clean-ipc.c \
802 src/shared/login-shared.c \
803 src/shared/login-shared.h \
809 nodist_libsystemd_shared_la_SOURCES = \
810 src/shared/errno-from-name.h \
811 src/shared/errno-to-name.h \
812 src/shared/af-from-name.h \
813 src/shared/af-to-name.h
815 libsystemd_shared_la_CFLAGS = \
819 # ------------------------------------------------------------------------------
820 noinst_LTLIBRARIES += \
823 libsystemd_units_la_SOURCES = \
824 src/shared/install.c \
825 src/shared/install.h \
826 src/shared/install-printf.c \
827 src/shared/install-printf.h \
828 src/shared/path-lookup.c \
829 src/shared/path-lookup.h \
830 src/shared/specifier.c \
831 src/shared/specifier.h
833 # ------------------------------------------------------------------------------
834 noinst_LTLIBRARIES += \
837 libsystemd_label_la_SOURCES = \
838 src/shared/socket-label.c \
841 src/shared/selinux-util.c \
842 src/shared/selinux-util.h \
843 src/shared/mkdir-label.c \
844 src/shared/ask-password-api.c \
845 src/shared/ask-password-api.h \
846 src/shared/fileio-label.c \
847 src/shared/fileio-label.h \
848 src/shared/dev-setup.c \
849 src/shared/dev-setup.h
851 libsystemd_label_la_CFLAGS = \
855 libsystemd_label_la_LIBADD = \
858 # ------------------------------------------------------------------------------
861 noinst_LTLIBRARIES += \
862 libsystemd-seccomp.la
864 libsystemd_seccomp_la_SOURCES = \
865 src/shared/seccomp-util.h \
866 src/shared/seccomp-util.c
868 libsystemd_seccomp_la_CFLAGS = \
872 libsystemd_seccomp_la_LIBADD = \
876 # ------------------------------------------------------------------------------
877 noinst_LTLIBRARIES += \
880 libsystemd_logs_la_SOURCES = \
881 src/shared/logs-show.c \
882 src/shared/logs-show.h
884 # ------------------------------------------------------------------------------
885 noinst_LTLIBRARIES += \
886 libsystemd-capability.la
888 libsystemd_capability_la_SOURCES = \
889 src/shared/capability.c \
890 src/shared/capability.h
892 libsystemd_capability_la_CFLAGS = \
896 libsystemd_capability_la_LIBADD = \
899 # ------------------------------------------------------------------------------
901 noinst_LTLIBRARIES += \
904 libsystemd_acl_la_SOURCES = \
905 src/shared/acl-util.c \
906 src/shared/acl-util.h
908 libsystemd_acl_la_CFLAGS = \
912 libsystemd_acl_la_LIBADD = \
916 # ------------------------------------------------------------------------------
917 noinst_LTLIBRARIES += \
920 libsystemd_core_la_SOURCES = \
923 src/core/unit-printf.c \
924 src/core/unit-printf.h \
929 src/core/transaction.c \
930 src/core/transaction.h \
931 src/core/load-fragment.c \
932 src/core/load-fragment.h \
941 src/core/snapshot.c \
942 src/core/snapshot.h \
947 src/core/automount.c \
948 src/core/automount.h \
959 src/core/load-dropin.c \
960 src/core/load-dropin.h \
967 src/core/dbus-manager.c \
968 src/core/dbus-manager.h \
969 src/core/dbus-unit.c \
970 src/core/dbus-unit.h \
971 src/core/dbus-job.c \
972 src/core/dbus-job.h \
973 src/core/dbus-service.c \
974 src/core/dbus-service.h \
975 src/core/dbus-socket.c \
976 src/core/dbus-socket.h \
977 src/core/dbus-busname.c \
978 src/core/dbus-busname.h \
979 src/core/dbus-target.c \
980 src/core/dbus-target.h \
981 src/core/dbus-snapshot.c \
982 src/core/dbus-snapshot.h \
983 src/core/dbus-device.c \
984 src/core/dbus-device.h \
985 src/core/dbus-mount.c \
986 src/core/dbus-mount.h \
987 src/core/dbus-automount.c \
988 src/core/dbus-automount.h \
989 src/core/dbus-swap.c \
990 src/core/dbus-swap.h \
991 src/core/dbus-timer.c \
992 src/core/dbus-timer.h \
993 src/core/dbus-path.c \
994 src/core/dbus-path.h \
995 src/core/dbus-slice.c \
996 src/core/dbus-slice.h \
997 src/core/dbus-scope.c \
998 src/core/dbus-scope.h \
999 src/core/dbus-execute.c \
1000 src/core/dbus-execute.h \
1001 src/core/dbus-kill.c \
1002 src/core/dbus-kill.h \
1003 src/core/dbus-cgroup.c \
1004 src/core/dbus-cgroup.h \
1007 src/core/selinux-access.c \
1008 src/core/selinux-access.h \
1009 src/core/selinux-setup.c \
1010 src/core/selinux-setup.h \
1011 src/core/smack-setup.c \
1012 src/core/smack-setup.h \
1013 src/core/ima-setup.c \
1014 src/core/ima-setup.h \
1015 src/core/locale-setup.h \
1016 src/core/locale-setup.c \
1017 src/core/hostname-setup.c \
1018 src/core/hostname-setup.h \
1019 src/core/machine-id-setup.c \
1020 src/core/machine-id-setup.h \
1021 src/core/mount-setup.c \
1022 src/core/mount-setup.h \
1023 src/core/loopback-setup.h \
1024 src/core/loopback-setup.c \
1025 src/core/condition.c \
1026 src/core/condition.h \
1027 src/core/namespace.c \
1028 src/core/namespace.h \
1030 src/core/sysfs-show.h \
1031 src/core/switch-root.h \
1032 src/core/switch-root.c \
1033 src/core/killall.h \
1034 src/core/killall.c \
1035 src/core/audit-fd.c \
1036 src/core/audit-fd.h \
1037 src/core/show-status.c \
1038 src/core/show-status.h
1041 libsystemd_core_la_SOURCES += \
1042 src/core/kmod-setup.c \
1043 src/core/kmod-setup.h
1046 nodist_libsystemd_core_la_SOURCES = \
1047 src/core/load-fragment-gperf.c \
1048 src/core/load-fragment-gperf-nulstr.c
1050 libsystemd_core_la_CFLAGS = \
1056 $(APPARMOR_CFLAGS) \
1060 libsystemd_core_la_LIBADD = \
1061 libsystemd-capability.la \
1062 libsystemd-units.la \
1063 libsystemd-label.la \
1064 libudev-internal.la \
1065 libsystemd-shared.la \
1066 libsystemd-internal.la \
1075 libsystemd_core_la_LIBADD += \
1076 libsystemd-seccomp.la
1079 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1080 $(AM_V_at)$(MKDIR_P) $(dir $@)
1081 $(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 ";" }' < $< > $@
1084 src/core/load-fragment-gperf.gperf.m4
1087 src/core/load-fragment-gperf.gperf \
1088 src/core/load-fragment-gperf.c \
1089 src/core/load-fragment-gperf-nulstr.c \
1090 src/shared/errno-list.txt \
1091 src/shared/errno-from-name.gperf \
1092 src/shared/af-list.txt \
1093 src/shared/af-from-name.gperf
1096 src/shared/errno-from-name.h \
1097 src/shared/errno-to-name.h \
1098 src/shared/af-from-name.h \
1099 src/shared/af-to-name.h
1101 src/shared/errno-list.txt:
1102 $(AM_V_at)$(MKDIR_P) $(dir $@)
1103 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1105 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1106 $(AM_V_at)$(MKDIR_P) $(dir $@)
1107 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1109 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1110 $(AM_V_at)$(MKDIR_P) $(dir $@)
1111 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1113 src/shared/errno-to-name.h: src/shared/errno-list.txt
1114 $(AM_V_at)$(MKDIR_P) $(dir $@)
1115 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1117 src/shared/af-list.txt:
1118 $(AM_V_at)$(MKDIR_P) $(dir $@)
1119 $(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; }' > $@
1121 src/shared/af-from-name.gperf: src/shared/af-list.txt
1122 $(AM_V_at)$(MKDIR_P) $(dir $@)
1123 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1125 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1126 $(AM_V_at)$(MKDIR_P) $(dir $@)
1127 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1129 src/shared/af-to-name.h: src/shared/af-list.txt
1130 $(AM_V_at)$(MKDIR_P) $(dir $@)
1131 $(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 "};"}' < $< > $@
1133 # ------------------------------------------------------------------------------
1142 libsystemd-core.la \
1145 dist_pkgsysconf_DATA += \
1146 src/core/system.conf \
1149 dist_dbuspolicy_DATA += \
1150 src/core/org.freedesktop.systemd1.conf
1152 dist_dbussystemservice_DATA += \
1153 src/core/org.freedesktop.systemd1.service
1155 polkitpolicy_in_in_files += \
1156 src/core/org.freedesktop.systemd1.policy.in.in
1158 pkgconfigdata_DATA = \
1161 nodist_rpmmacros_DATA = \
1162 src/core/macros.systemd
1165 src/core/systemd.pc.in \
1166 src/core/macros.systemd.in
1169 src/core/macros.systemd \
1170 src/core/org.freedesktop.systemd1.policy.in
1172 # ------------------------------------------------------------------------------
1211 test-strip-tab-ansi \
1224 test/sched_idle_bad.service \
1225 test/sched_idle_ok.service \
1226 test/sched_rr_bad.service \
1227 test/sched_rr_ok.service \
1228 test/sched_rr_change.service \
1230 test/daughter.service \
1234 src/test/test-helper.h
1236 test_device_nodes_SOURCES = \
1237 src/test/test-device-nodes.c
1239 test_device_nodes_LDADD = \
1240 libsystemd-shared.la
1242 test_engine_SOURCES = \
1243 src/test/test-engine.c
1245 test_engine_CFLAGS = \
1249 test_engine_LDADD = \
1250 libsystemd-core.la \
1253 test_job_type_SOURCES = \
1254 src/test/test-job-type.c
1256 test_job_type_CFLAGS = \
1260 test_job_type_LDADD = \
1261 libsystemd-core.la \
1274 test_loopback_SOURCES = \
1275 src/test/test-loopback.c
1277 test_loopback_LDADD = \
1280 test_hostname_SOURCES = \
1281 src/test/test-hostname.c
1283 test_hostname_LDADD = \
1290 test_boot_timestamp_SOURCES = \
1291 src/test/test-boot-timestamps.c
1293 test_boot_timestamp_LDADD = \
1294 libsystemd-shared.la
1297 test_unit_name_SOURCES = \
1298 src/test/test-unit-name.c
1300 test_unit_name_CFLAGS = \
1304 test_unit_name_LDADD = \
1305 libsystemd-core.la \
1308 test_unit_file_SOURCES = \
1309 src/test/test-unit-file.c
1311 test_unit_file_CFLAGS = \
1315 test_unit_file_LDADD = \
1316 libsystemd-core.la \
1319 test_utf8_SOURCES = \
1320 src/test/test-utf8.c
1323 libsystemd-shared.la
1325 test_util_SOURCES = \
1326 src/test/test-util.c
1331 test_ring_SOURCES = \
1332 src/test/test-ring.c
1337 test_tmpfiles_SOURCES = \
1338 src/test/test-tmpfiles.c
1340 test_tmpfiles_LDADD = \
1341 libsystemd-shared.la
1343 test_namespace_SOURCES = \
1344 src/test/test-namespace.c
1346 test_namespace_LDADD = \
1349 test_hashmap_SOURCES = \
1350 src/test/test-hashmap.c
1352 test_hashmap_LDADD = \
1355 test_xml_SOURCES = \
1359 libsystemd-shared.la
1361 test_list_SOURCES = \
1362 src/test/test-list.c
1367 test_tables_SOURCES = \
1368 src/test/test-tables.c \
1369 src/shared/test-tables.h
1371 test_tables_CFLAGS = \
1375 test_tables_LDADD = \
1376 libsystemd-logs.la \
1377 libsystemd-journal-internal.la \
1378 libsystemd-core.la \
1381 test_prioq_SOURCES = \
1382 src/test/test-prioq.c
1384 test_prioq_LDADD = \
1387 test_fileio_SOURCES = \
1388 src/test/test-fileio.c
1390 test_fileio_LDADD = \
1393 test_time_SOURCES = \
1394 src/test/test-time.c
1399 test_architecture_SOURCES = \
1400 src/test/test-architecture.c
1402 test_architecture_LDADD = \
1403 libsystemd-shared.la
1405 test_log_SOURCES = \
1411 test_ipcrm_SOURCES = \
1412 src/test/test-ipcrm.c
1414 test_ipcrm_LDADD = \
1415 libsystemd-shared.la \
1418 test_rtnl_manual_SOURCES = \
1419 src/test/test-rtnl-manual.c
1421 test_rtnl_manual_CFLAGS = \
1425 test_rtnl_manual_LDADD = \
1426 libsystemd-internal.la \
1427 libsystemd-shared.la \
1430 test_ellipsize_SOURCES = \
1431 src/test/test-ellipsize.c
1433 test_ellipsize_LDADD = \
1436 test_date_SOURCES = \
1437 src/test/test-date.c
1442 test_sleep_SOURCES = \
1443 src/test/test-sleep.c
1445 test_sleep_LDADD = \
1448 test_replace_var_SOURCES = \
1449 src/test/test-replace-var.c
1451 test_replace_var_LDADD = \
1452 libsystemd-shared.la
1454 test_calendarspec_SOURCES = \
1455 src/test/test-calendarspec.c
1457 test_calendarspec_LDADD = \
1458 libsystemd-shared.la
1460 test_strip_tab_ansi_SOURCES = \
1461 src/test/test-strip-tab-ansi.c
1463 test_strip_tab_ansi_LDADD = \
1464 libsystemd-shared.la
1466 test_daemon_SOURCES = \
1467 src/test/test-daemon.c
1469 test_daemon_LDADD = \
1470 libsystemd-internal.la \
1471 libsystemd-shared.la
1473 test_cgroup_SOURCES = \
1474 src/test/test-cgroup.c
1476 test_cgroup_LDADD = \
1477 libsystemd-label.la \
1478 libsystemd-shared.la \
1479 libsystemd-internal.la
1481 test_cgroup_mask_SOURCES = \
1482 src/test/test-cgroup-mask.c
1484 test_cgroup_mask_CPPFLAGS = \
1486 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1488 test_cgroup_mask_CFLAGS = \
1492 test_cgroup_mask_LDADD = \
1493 libsystemd-core.la \
1496 test_cgroup_util_SOURCES = \
1497 src/test/test-cgroup-util.c
1499 test_cgroup_util_LDADD = \
1500 libsystemd-label.la \
1501 libsystemd-internal.la \
1502 libsystemd-shared.la
1504 test_env_replace_SOURCES = \
1505 src/test/test-env-replace.c
1507 test_env_replace_LDADD = \
1508 libsystemd-shared.la
1510 test_strbuf_SOURCES = \
1511 src/test/test-strbuf.c
1513 test_strbuf_LDADD = \
1514 libsystemd-shared.la
1516 test_strv_SOURCES = \
1517 src/test/test-strv.c
1520 libsystemd-units.la \
1521 libsystemd-internal.la \
1522 libsystemd-shared.la
1524 test_path_util_SOURCES = \
1525 src/test/test-path-util.c
1527 test_path_util_LDADD = \
1528 libsystemd-shared.la
1530 test_strxcpyx_SOURCES = \
1531 src/test/test-strxcpyx.c
1533 test_strxcpyx_LDADD = \
1534 libsystemd-shared.la
1536 test_install_SOURCES = \
1537 src/test/test-install.c
1539 test_install_LDADD = \
1540 libsystemd-units.la \
1541 libsystemd-label.la \
1542 libsystemd-shared.la \
1543 libsystemd-internal.la
1545 test_watchdog_SOURCES = \
1546 src/test/test-watchdog.c
1548 test_watchdog_LDADD = \
1549 libsystemd-shared.la
1551 test_sched_prio_SOURCES = \
1552 src/test/test-sched-prio.c
1554 test_sched_prio_CPPFLAGS = \
1556 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1558 test_sched_prio_CFLAGS = \
1562 test_sched_prio_LDADD = \
1563 libsystemd-core.la \
1566 # ------------------------------------------------------------------------------
1567 ## .PHONY so it always rebuilds it
1568 .PHONY: coverage lcov-run lcov-report coverage-sync
1570 # run lcov from scratch, always
1575 coverage_dir = coverage
1576 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1579 # reset run coverage tests
1581 @rm -rf $(coverage_dir)
1582 lcov $(coverage_opts) --zerocounters
1585 # generate report based on current coverage data
1587 $(MKDIR_P) $(coverage_dir)
1588 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1589 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1590 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1591 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1593 # lcov doesn't work properly with vpath builds, make sure that bad
1594 # output is not uploaded by mistake.
1595 coverage-sync: coverage
1596 test "$(builddir)" = "$(srcdir)"
1597 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1600 lcov-run lcov-report:
1601 echo "Need to reconfigure with --enable-coverage"
1604 # ------------------------------------------------------------------------------
1605 systemd_analyze_SOURCES = \
1606 src/analyze/analyze.c
1608 systemd_analyze_LDADD = \
1609 libsystemd-internal.la \
1610 libsystemd-shared.la
1612 # ------------------------------------------------------------------------------
1613 systemd_initctl_SOURCES = \
1614 src/initctl/initctl.c
1616 systemd_initctl_LDADD = \
1617 libsystemd-internal.la \
1618 libsystemd-shared.la
1620 # ------------------------------------------------------------------------------
1621 systemd_update_utmp_SOURCES = \
1622 src/update-utmp/update-utmp.c
1624 systemd_update_utmp_CFLAGS = \
1628 systemd_update_utmp_LDADD = \
1629 libsystemd-internal.la \
1630 libsystemd-shared.la \
1633 # ------------------------------------------------------------------------------
1634 systemd_shutdownd_SOURCES = \
1635 src/shutdownd/shutdownd.c
1637 systemd_shutdownd_LDADD = \
1638 libsystemd-label.la \
1639 libsystemd-internal.la \
1640 libsystemd-shared.la
1643 src/systemd/sd-shutdown.h
1645 # ------------------------------------------------------------------------------
1646 systemd_shutdown_SOURCES = \
1649 src/core/shutdown.c \
1650 src/core/mount-setup.c \
1651 src/core/mount-setup.h \
1652 src/core/killall.h \
1655 systemd_shutdown_LDADD = \
1656 libsystemd-label.la \
1657 libudev-internal.la \
1658 libsystemd-shared.la
1660 # ------------------------------------------------------------------------------
1662 systemd_modules_load_SOURCES = \
1663 src/modules-load/modules-load.c
1665 systemd_modules_load_CFLAGS = \
1669 systemd_modules_load_LDADD = \
1670 libsystemd-shared.la \
1673 rootlibexec_PROGRAMS += \
1674 systemd-modules-load
1676 nodist_systemunit_DATA += \
1677 units/systemd-modules-load.service
1679 SYSINIT_TARGET_WANTS += \
1680 systemd-modules-load.service
1683 nodist_systemunit_DATA += \
1684 units/kmod-static-nodes.service
1686 SYSINIT_TARGET_WANTS += \
1687 kmod-static-nodes.service
1692 units/systemd-modules-load.service.in \
1693 units/kmod-static-nodes.service.in
1695 # ------------------------------------------------------------------------------
1697 systemd_tmpfiles_SOURCES = \
1698 src/tmpfiles/tmpfiles.c
1700 systemd_tmpfiles_LDADD = \
1701 libsystemd-units.la \
1702 libsystemd-label.la \
1703 libsystemd-capability.la \
1704 libsystemd-internal.la \
1705 libsystemd-shared.la
1707 rootbin_PROGRAMS += \
1710 dist_systemunit_DATA += \
1711 units/systemd-tmpfiles-clean.timer
1713 nodist_systemunit_DATA += \
1714 units/systemd-tmpfiles-setup-dev.service \
1715 units/systemd-tmpfiles-setup.service \
1716 units/systemd-tmpfiles-clean.service
1718 dist_tmpfiles_DATA = \
1719 tmpfiles.d/systemd.conf \
1720 tmpfiles.d/systemd-nologin.conf \
1721 tmpfiles.d/tmp.conf \
1725 dist_tmpfiles_DATA += \
1726 tmpfiles.d/legacy.conf
1729 SYSINIT_TARGET_WANTS += \
1730 systemd-tmpfiles-setup-dev.service \
1731 systemd-tmpfiles-setup.service
1733 dist_zshcompletion_DATA += \
1734 shell-completion/zsh/_systemd-tmpfiles
1736 TIMERS_TARGET_WANTS += \
1737 systemd-tmpfiles-clean.timer
1741 $(sysconfdir)/tmpfiles.d
1745 units/systemd-tmpfiles-setup-dev.service.in \
1746 units/systemd-tmpfiles-setup.service.in \
1747 units/systemd-tmpfiles-clean.service.in
1749 # ------------------------------------------------------------------------------
1750 systemd_machine_id_setup_SOURCES = \
1751 src/machine-id-setup/machine-id-setup-main.c \
1752 src/core/machine-id-setup.c \
1753 src/core/machine-id-setup.h
1755 systemd_machine_id_setup_LDADD = \
1756 libsystemd-label.la \
1757 libsystemd-internal.la \
1758 libsystemd-shared.la
1760 # ------------------------------------------------------------------------------
1761 systemd_sysctl_SOURCES = \
1764 systemd_sysctl_LDADD = \
1765 libsystemd-shared.la
1767 # ------------------------------------------------------------------------------
1768 systemd_sleep_SOURCES = \
1771 systemd_sleep_LDADD = \
1772 libsystemd-shared.la
1774 # ------------------------------------------------------------------------------
1775 systemd_fsck_SOURCES = \
1778 systemd_fsck_LDADD = \
1779 libsystemd-internal.la \
1780 libudev-internal.la \
1781 libsystemd-shared.la
1783 # ------------------------------------------------------------------------------
1784 systemd_ac_power_SOURCES = \
1785 src/ac-power/ac-power.c
1787 systemd_ac_power_LDADD = \
1788 libudev-internal.la \
1789 libsystemd-shared.la
1791 # ------------------------------------------------------------------------------
1792 systemd_detect_virt_SOURCES = \
1793 src/detect-virt/detect-virt.c
1795 systemd_detect_virt_LDADD = \
1796 libsystemd-shared.la
1798 systemd-detect-virt-install-hook:
1799 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1801 INSTALL_EXEC_HOOKS += \
1802 systemd-detect-virt-install-hook
1804 # ------------------------------------------------------------------------------
1805 systemd_delta_SOURCES = \
1808 systemd_delta_LDADD = \
1809 libsystemd-shared.la
1811 # ------------------------------------------------------------------------------
1812 systemd_getty_generator_SOURCES = \
1813 src/getty-generator/getty-generator.c
1815 systemd_getty_generator_LDADD = \
1816 libsystemd-label.la \
1817 libsystemd-shared.la
1819 # ------------------------------------------------------------------------------
1820 systemd_fstab_generator_SOURCES = \
1821 src/fstab-generator/fstab-generator.c \
1822 src/core/mount-setup.c
1824 systemd_fstab_generator_LDADD = \
1825 libsystemd-label.la \
1826 libsystemd-shared.la
1828 # ------------------------------------------------------------------------------
1829 systemd_system_update_generator_SOURCES = \
1830 src/system-update-generator/system-update-generator.c
1832 systemd_system_update_generator_LDADD = \
1833 libsystemd-label.la \
1834 libsystemd-shared.la
1837 # ------------------------------------------------------------------------------
1838 systemgenerator_PROGRAMS += \
1839 systemd-efi-boot-generator
1841 systemd_efi_boot_generator_SOURCES = \
1842 src/efi-boot-generator/efi-boot-generator.c
1844 systemd_efi_boot_generator_LDADD = \
1845 libsystemd-label.la \
1846 libsystemd-shared.la
1848 # ------------------------------------------------------------------------------
1851 src/boot/boot-loader.h \
1852 src/boot/bootctl.c \
1853 src/boot/boot-loader.c \
1857 libsystemd-shared.la \
1858 libsystemd-internal.la
1863 dist_bashcompletion_DATA += \
1864 shell-completion/bash/bootctl
1866 dist_zshcompletion_DATA += \
1867 shell-completion/zsh/_bootctl
1871 # ------------------------------------------------------------------------------
1873 systemgenerator_PROGRAMS += \
1874 systemd-gpt-auto-generator
1876 systemd_gpt_auto_generator_SOURCES = \
1877 src/gpt-auto-generator/gpt-auto-generator.c \
1878 src/shared/blkid-util.h
1880 systemd_gpt_auto_generator_LDADD = \
1881 libsystemd-label.la \
1882 libsystemd-internal.la \
1883 libudev-internal.la \
1884 libsystemd-shared.la \
1887 systemd_gpt_auto_generator_CFLAGS = \
1892 # ------------------------------------------------------------------------------
1894 systemgenerator_PROGRAMS += \
1895 systemd-dbus1-generator
1897 systemd_dbus1_generator_SOURCES = \
1898 src/dbus1-generator/dbus1-generator.c
1900 systemd_dbus1_generator_LDADD = \
1901 libsystemd-label.la \
1902 libsystemd-shared.la \
1903 libsystemd-internal.la
1905 dbus1-generator-install-hook:
1906 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
1907 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1908 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1910 dbus1-generator-uninstall-hook:
1911 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1913 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1914 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1917 # ------------------------------------------------------------------------------
1918 systemd_rc_local_generator_SOURCES = \
1919 src/rc-local-generator/rc-local-generator.c
1921 systemd_rc_local_generator_LDADD = \
1922 libsystemd-label.la \
1923 libsystemd-shared.la
1925 # ------------------------------------------------------------------------------
1926 systemd_remount_fs_SOURCES = \
1927 src/remount-fs/remount-fs.c \
1928 src/core/mount-setup.c \
1929 src/core/mount-setup.h
1931 systemd_remount_fs_LDADD = \
1932 libsystemd-label.la \
1933 libsystemd-shared.la
1935 # ------------------------------------------------------------------------------
1936 systemd_cgroups_agent_SOURCES = \
1937 src/cgroups-agent/cgroups-agent.c
1939 systemd_cgroups_agent_LDADD = \
1940 libsystemd-internal.la \
1941 libsystemd-shared.la
1943 # ------------------------------------------------------------------------------
1944 systemctl_SOURCES = \
1945 src/systemctl/systemctl.c
1948 libsystemd-units.la \
1949 libsystemd-label.la \
1950 libsystemd-internal.la \
1951 libsystemd-logs.la \
1952 libsystemd-journal-internal.la \
1953 libsystemd-shared.la
1955 # ------------------------------------------------------------------------------
1956 systemd_notify_SOURCES = \
1957 src/notify/notify.c \
1958 src/readahead/sd-readahead.c
1960 systemd_notify_LDADD = \
1961 libsystemd-internal.la \
1962 libsystemd-shared.la
1964 # ------------------------------------------------------------------------------
1965 systemd_ask_password_SOURCES = \
1966 src/ask-password/ask-password.c
1968 systemd_ask_password_LDADD = \
1969 libsystemd-label.la \
1970 libsystemd-shared.la
1972 # ------------------------------------------------------------------------------
1973 systemd_reply_password_SOURCES = \
1974 src/reply-password/reply-password.c
1976 systemd_reply_password_LDADD = \
1977 libsystemd-shared.la
1979 # ------------------------------------------------------------------------------
1980 systemd_cgls_SOURCES = \
1983 systemd_cgls_LDADD = \
1984 libsystemd-internal.la \
1985 libsystemd-shared.la
1987 # ------------------------------------------------------------------------------
1988 systemd_cgtop_SOURCES = \
1991 systemd_cgtop_LDADD = \
1992 libsystemd-shared.la
1994 # ------------------------------------------------------------------------------
1995 systemd_nspawn_SOURCES = \
1996 src/nspawn/nspawn.c \
1997 src/core/mount-setup.c \
1998 src/core/mount-setup.h \
1999 src/core/loopback-setup.c \
2000 src/core/loopback-setup.h
2002 systemd_nspawn_CFLAGS = \
2007 systemd_nspawn_LDADD = \
2008 libsystemd-label.la \
2009 libsystemd-capability.la \
2010 libsystemd-internal.la \
2011 libudev-internal.la \
2012 libsystemd-shared.la \
2016 systemd_nspawn_LDADD += \
2017 libsystemd-seccomp.la \
2021 # ------------------------------------------------------------------------------
2022 systemd_run_SOURCES = \
2025 systemd_run_LDADD = \
2026 libsystemd-label.la \
2027 libsystemd-capability.la \
2028 libsystemd-internal.la \
2029 libsystemd-shared.la
2031 # ------------------------------------------------------------------------------
2032 systemd_bus_proxyd_SOURCES = \
2033 src/bus-proxyd/bus-proxyd.c
2035 systemd_bus_proxyd_LDADD = \
2036 libsystemd-internal.la \
2037 libsystemd-shared.la
2039 bus-proxyd-install-hook:
2040 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2041 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2042 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2044 bus-proxyd-uninstall-hook:
2045 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2047 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2048 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2051 nodist_systemunit_DATA += \
2052 units/systemd-bus-proxyd@.service
2054 dist_systemunit_DATA += \
2055 units/systemd-bus-proxyd.socket
2057 dist_userunit_DATA += \
2058 units/user/systemd-bus-proxyd.socket \
2059 units/user/systemd-bus-proxyd@.service
2063 units/systemd-bus-proxyd@.service.in
2065 # ------------------------------------------------------------------------------
2066 systemd_tty_ask_password_agent_SOURCES = \
2067 src/tty-ask-password-agent/tty-ask-password-agent.c
2069 systemd_tty_ask_password_agent_LDADD = \
2070 libsystemd-label.la \
2071 libsystemd-shared.la
2073 # ------------------------------------------------------------------------------
2074 libsystemd_internal_la_SOURCES = \
2075 src/systemd/sd-bus.h \
2076 src/systemd/sd-bus-protocol.h \
2077 src/systemd/sd-bus-vtable.h \
2078 src/systemd/sd-memfd.h \
2079 src/systemd/sd-utf8.h \
2080 src/systemd/sd-event.h \
2081 src/systemd/sd-rtnl.h \
2082 src/systemd/sd-resolve.h \
2083 src/systemd/sd-login.h \
2084 src/systemd/sd-id128.h \
2085 src/systemd/sd-daemon.h \
2086 src/libsystemd/sd-bus/sd-bus.c \
2087 src/libsystemd/sd-bus/bus-control.c \
2088 src/libsystemd/sd-bus/bus-control.h \
2089 src/libsystemd/sd-bus/bus-error.c \
2090 src/libsystemd/sd-bus/bus-error.h \
2091 src/libsystemd/sd-bus/bus-internal.c \
2092 src/libsystemd/sd-bus/bus-internal.h \
2093 src/libsystemd/sd-bus/bus-socket.c \
2094 src/libsystemd/sd-bus/bus-socket.h \
2095 src/libsystemd/sd-bus/bus-kernel.c \
2096 src/libsystemd/sd-bus/bus-kernel.h \
2097 src/libsystemd/sd-bus/bus-container.c \
2098 src/libsystemd/sd-bus/bus-container.h \
2099 src/libsystemd/sd-bus/bus-message.c \
2100 src/libsystemd/sd-bus/bus-message.h \
2101 src/libsystemd/sd-bus/bus-creds.c \
2102 src/libsystemd/sd-bus/bus-creds.h \
2103 src/libsystemd/sd-bus/bus-signature.c \
2104 src/libsystemd/sd-bus/bus-signature.h \
2105 src/libsystemd/sd-bus/bus-type.c \
2106 src/libsystemd/sd-bus/bus-type.h \
2107 src/libsystemd/sd-bus/bus-match.c \
2108 src/libsystemd/sd-bus/bus-match.h \
2109 src/libsystemd/sd-bus/bus-bloom.c \
2110 src/libsystemd/sd-bus/bus-bloom.h \
2111 src/libsystemd/sd-bus/bus-introspect.c \
2112 src/libsystemd/sd-bus/bus-introspect.h \
2113 src/libsystemd/sd-bus/bus-objects.c \
2114 src/libsystemd/sd-bus/bus-objects.h \
2115 src/libsystemd/sd-bus/bus-gvariant.c \
2116 src/libsystemd/sd-bus/bus-gvariant.h \
2117 src/libsystemd/sd-bus/bus-convenience.c \
2118 src/libsystemd/sd-bus/bus-track.c \
2119 src/libsystemd/sd-bus/bus-track.h \
2120 src/libsystemd/sd-bus/bus-util.c \
2121 src/libsystemd/sd-bus/bus-util.h \
2122 src/libsystemd/sd-bus/bus-slot.c \
2123 src/libsystemd/sd-bus/bus-slot.h \
2124 src/libsystemd/sd-bus/bus-protocol.h \
2125 src/libsystemd/sd-bus/kdbus.h \
2126 src/libsystemd/sd-bus/sd-memfd.c \
2127 src/libsystemd/sd-utf8/sd-utf8.c \
2128 src/libsystemd/sd-event/sd-event.c \
2129 src/libsystemd/sd-event/event-util.h \
2130 src/libsystemd/sd-rtnl/sd-rtnl.c \
2131 src/libsystemd/sd-rtnl/rtnl-internal.h \
2132 src/libsystemd/sd-rtnl/rtnl-message.c \
2133 src/libsystemd/sd-rtnl/rtnl-types.h \
2134 src/libsystemd/sd-rtnl/rtnl-types.c \
2135 src/libsystemd/sd-rtnl/rtnl-util.h \
2136 src/libsystemd/sd-rtnl/rtnl-util.c \
2137 src/libsystemd/sd-id128/sd-id128.c \
2138 src/libsystemd/sd-daemon/sd-daemon.c \
2139 src/libsystemd/sd-login/sd-login.c
2141 nodist_libsystemd_internal_la_SOURCES = \
2142 src/libsystemd/libsystemd.sym \
2143 src/libsystemd/sd-bus/bus-error-mapping.c
2145 libsystemd_internal_la_CFLAGS = \
2149 libsystemd_internal_la_LIBADD = \
2152 libsystemd_resolve_la_SOURCES = \
2153 src/libsystemd/sd-resolve/sd-resolve.c \
2154 src/libsystemd/sd-resolve/resolve-util.h
2156 libsystemd_resolve_la_CFLAGS = \
2160 libsystemd_resolve_la_LIBADD = \
2163 noinst_LTLIBRARIES += \
2164 libsystemd-internal.la \
2165 libsystemd-resolve.la
2167 libsystemd_dump_la_SOURCES = \
2168 src/libsystemd/sd-bus/bus-dump.c \
2169 src/libsystemd/sd-bus/bus-dump.h
2171 libsystemd_dump_la_CFLAGS = \
2175 noinst_LTLIBRARIES += \
2179 src/libsystemd/libsystemd.sym.m4 \
2180 src/libsystemd/libsystemd.pc.in \
2181 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2182 src/libsystemd/sd-bus/DIFFERENCES \
2183 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2186 src/libsystemd/libsystemd.sym \
2187 src/libsystemd/sd-bus/bus-error-mapping.c
2190 src/libsystemd/libsystemd.sym
2192 libsystemd_la_SOURCES = \
2193 $(libsystemd_internal_la_SOURCES) \
2194 $(libsystemd_resolve_la_SOURCES) \
2195 $(libsystemd_journal_internal_la_SOURCES)
2197 nodist_libsystemd_la_SOURCES = \
2198 $(nodist_libsystemd_internal_la_SOURCES)
2200 libsystemd_la_CFLAGS = \
2201 $(libsystemd_internal_la_CFLAGS) \
2202 $(libsystemd_resolve_la_CFLAGS) \
2203 $(libsystemd_journal_internal_la_CFLAGS)
2205 libsystemd_la_LDFLAGS = \
2207 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2208 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2210 libsystemd_la_LIBADD = \
2211 libsystemd-shared.la \
2212 $(libsystemd_internal_la_LIBADD) \
2213 $(libsystemd_journal_internal_la_LIBADD) \
2214 $(libsystemd_resolve_la_LIBADD)
2216 libsystemd-install-hook:
2217 libname=libsystemd.so && $(move-to-rootlibdir)
2219 libsystemd-uninstall-hook:
2220 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2222 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2223 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2225 pkgconfiglib_DATA += \
2226 src/libsystemd/libsystemd.pc
2228 pkginclude_HEADERS += \
2229 src/systemd/sd-login.h \
2230 src/systemd/sd-id128.h \
2231 src/systemd/sd-daemon.h
2234 pkginclude_HEADERS += \
2235 src/systemd/sd-bus.h \
2236 src/systemd/sd-bus-protocol.h \
2237 src/systemd/sd-bus-vtable.h \
2238 src/systemd/sd-memfd.h \
2239 src/systemd/sd-utf8.h \
2240 src/systemd/sd-event.h \
2241 src/systemd/sd-rtnl.h \
2242 src/systemd/sd-resolve.h
2245 lib_LTLIBRARIES += \
2250 test-bus-signature \
2256 test-bus-kernel-bloom \
2257 test-bus-kernel-benchmark \
2259 test-bus-zero-copy \
2260 test-bus-introspect \
2272 test_bus_marshal_SOURCES = \
2273 src/libsystemd/sd-bus/test-bus-marshal.c
2275 test_bus_marshal_LDADD = \
2276 libsystemd-internal.la \
2277 libsystemd-shared.la \
2278 libsystemd-dump.la \
2279 libsystemd-capability.la \
2284 test_bus_marshal_CFLAGS = \
2290 test_bus_signature_SOURCES = \
2291 src/libsystemd/sd-bus/test-bus-signature.c
2293 test_bus_signature_LDADD = \
2294 libsystemd-shared.la \
2295 libsystemd-internal.la
2297 test_bus_chat_SOURCES = \
2298 src/libsystemd/sd-bus/test-bus-chat.c
2300 test_bus_chat_CFLAGS = \
2304 test_bus_chat_LDADD = \
2305 libsystemd-internal.la \
2306 libsystemd-shared.la
2308 test_bus_cleanup_SOURCES = \
2309 src/libsystemd/sd-bus/test-bus-cleanup.c
2311 test_bus_cleanup_CFLAGS = \
2315 test_bus_cleanup_LDADD = \
2316 libsystemd-internal.la \
2317 libsystemd-shared.la
2319 test_bus_server_SOURCES = \
2320 src/libsystemd/sd-bus/test-bus-server.c
2322 test_bus_server_CFLAGS = \
2326 test_bus_server_LDADD = \
2327 libsystemd-internal.la \
2328 libsystemd-shared.la
2330 test_bus_objects_SOURCES = \
2331 src/libsystemd/sd-bus/test-bus-objects.c
2333 test_bus_objects_CFLAGS = \
2338 test_bus_objects_LDADD = \
2339 libsystemd-internal.la \
2340 libsystemd-shared.la \
2341 libsystemd-dump.la \
2342 libsystemd-capability.la \
2345 test_bus_error_SOURCES = \
2346 src/libsystemd/sd-bus/test-bus-error.c
2348 test_bus_error_LDADD = \
2349 libsystemd-internal.la \
2350 libsystemd-shared.la
2352 test_bus_gvariant_SOURCES = \
2353 src/libsystemd/sd-bus/test-bus-gvariant.c
2355 test_bus_gvariant_LDADD = \
2356 libsystemd-internal.la \
2357 libsystemd-shared.la \
2358 libsystemd-dump.la \
2359 libsystemd-capability.la \
2363 test_bus_gvariant_CFLAGS = \
2368 test_bus_creds_SOURCES = \
2369 src/libsystemd/sd-bus/test-bus-creds.c
2371 test_bus_creds_LDADD = \
2372 libsystemd-internal.la \
2373 libsystemd-shared.la \
2374 libsystemd-dump.la \
2375 libsystemd-capability.la
2377 test_bus_match_SOURCES = \
2378 src/libsystemd/sd-bus/test-bus-match.c
2380 test_bus_match_LDADD = \
2381 libsystemd-internal.la \
2382 libsystemd-shared.la
2384 test_bus_kernel_SOURCES = \
2385 src/libsystemd/sd-bus/test-bus-kernel.c
2387 test_bus_kernel_LDADD = \
2388 libsystemd-internal.la \
2389 libsystemd-shared.la \
2390 libsystemd-dump.la \
2391 libsystemd-capability.la \
2394 test_bus_kernel_CFLAGS = \
2398 test_bus_kernel_bloom_SOURCES = \
2399 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2401 test_bus_kernel_bloom_LDADD = \
2402 libsystemd-internal.la \
2403 libsystemd-shared.la
2405 test_bus_kernel_benchmark_SOURCES = \
2406 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2408 test_bus_kernel_benchmark_LDADD = \
2409 libsystemd-internal.la \
2410 libsystemd-shared.la
2412 test_bus_memfd_SOURCES = \
2413 src/libsystemd/sd-bus/test-bus-memfd.c
2415 test_bus_memfd_LDADD = \
2416 libsystemd-internal.la \
2417 libsystemd-shared.la
2419 test_bus_zero_copy_SOURCES = \
2420 src/libsystemd/sd-bus/test-bus-zero-copy.c
2422 test_bus_zero_copy_LDADD = \
2423 libsystemd-internal.la \
2424 libsystemd-shared.la \
2425 libsystemd-dump.la \
2426 libsystemd-capability.la \
2429 test_bus_zero_copy_CFLAGS = \
2433 test_bus_introspect_SOURCES = \
2434 src/libsystemd/sd-bus/test-bus-introspect.c
2436 test_bus_introspect_LDADD = \
2437 libsystemd-internal.la \
2438 libsystemd-shared.la
2440 test_event_SOURCES = \
2441 src/libsystemd/sd-event/test-event.c
2443 test_event_LDADD = \
2444 libsystemd-internal.la \
2445 libsystemd-shared.la
2447 test_rtnl_SOURCES = \
2448 src/libsystemd/sd-rtnl/test-rtnl.c
2451 libsystemd-internal.la \
2452 libsystemd-shared.la
2454 test_resolve_SOURCES = \
2455 src/libsystemd/sd-resolve/test-resolve.c
2457 test_resolve_LDADD = \
2458 libsystemd-resolve.la \
2459 libsystemd-internal.la \
2460 libsystemd-shared.la
2462 test_resolve_CFLAGS = \
2467 src/libsystemd/sd-bus/busctl.c
2470 libsystemd-internal.la \
2471 libsystemd-shared.la \
2472 libsystemd-dump.la \
2473 libsystemd-capability.la \
2480 # ------------------------------------------------------------------------------
2481 noinst_LTLIBRARIES += \
2482 libsystemd-network.la
2484 libsystemd_network_la_SOURCES = \
2485 src/systemd/sd-network.h \
2486 src/systemd/sd-dhcp-client.h \
2487 src/systemd/sd-dhcp-lease.h \
2488 src/systemd/sd-ipv4ll.h \
2489 src/network/sd-network.c \
2490 src/network/network-util.h \
2491 src/libsystemd-network/sd-dhcp-client.c \
2492 src/libsystemd-network/dhcp-network.c \
2493 src/libsystemd-network/dhcp-option.c \
2494 src/libsystemd-network/dhcp-packet.c \
2495 src/libsystemd-network/dhcp-internal.h \
2496 src/libsystemd-network/dhcp-protocol.h \
2497 src/libsystemd-network/dhcp-lease-internal.h \
2498 src/libsystemd-network/sd-dhcp-lease.c \
2499 src/libsystemd-network/sd-ipv4ll.c \
2500 src/libsystemd-network/ipv4ll-network.c \
2501 src/libsystemd-network/ipv4ll-packet.c \
2502 src/libsystemd-network/ipv4ll-internal.h \
2503 src/libsystemd-network/network-internal.c \
2504 src/libsystemd-network/network-internal.h
2506 libsystemd_network_la_LIBADD = \
2507 libsystemd-label.la \
2508 libsystemd-internal.la \
2509 libsystemd-shared.la
2511 test_dhcp_option_SOURCES = \
2512 src/libsystemd-network/dhcp-protocol.h \
2513 src/libsystemd-network/dhcp-internal.h \
2514 src/libsystemd-network/test-dhcp-option.c
2516 test_dhcp_option_LDADD = \
2517 libsystemd-network.la \
2518 libsystemd-internal.la \
2519 libsystemd-shared.la
2521 test_dhcp_client_SOURCES = \
2522 src/systemd/sd-dhcp-client.h \
2523 src/libsystemd-network/dhcp-protocol.h \
2524 src/libsystemd-network/dhcp-internal.h \
2525 src/libsystemd-network/test-dhcp-client.c
2527 test_dhcp_client_LDADD = \
2528 libsystemd-network.la \
2529 libsystemd-label.la \
2530 libsystemd-internal.la \
2531 libsystemd-shared.la
2533 test_ipv4ll_SOURCES = \
2534 src/systemd/sd-ipv4ll.h \
2535 src/libsystemd-network/ipv4ll-internal.h \
2536 src/libsystemd-network/test-ipv4ll.c
2538 test_ipv4ll_LDADD = \
2539 libsystemd-network.la \
2540 libsystemd-label.la \
2541 libsystemd-internal.la \
2542 libsystemd-shared.la
2549 # ------------------------------------------------------------------------------
2559 include_HEADERS += \
2560 src/libudev/libudev.h
2562 lib_LTLIBRARIES += \
2565 libudev_la_SOURCES =\
2566 src/libudev/libudev.sym \
2567 src/libudev/libudev-private.h \
2568 src/libudev/libudev.c \
2569 src/libudev/libudev-list.c \
2570 src/libudev/libudev-util.c \
2571 src/libudev/libudev-device.c \
2572 src/libudev/libudev-enumerate.c \
2573 src/libudev/libudev-monitor.c \
2574 src/libudev/libudev-queue.c \
2575 src/libudev/libudev-hwdb-def.h \
2576 src/libudev/libudev-hwdb.c
2578 libudev_la_CFLAGS = \
2582 libudev_la_LDFLAGS = \
2584 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2585 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2587 libudev_la_LIBADD = \
2588 libsystemd-internal.la \
2589 libsystemd-shared.la
2591 pkgconfiglib_DATA += \
2592 src/libudev/libudev.pc
2595 src/libudev/libudev.pc.in
2598 src/libudev/libudev.pc \
2603 $(AM_V_at)$(MKDIR_P) $(dir $@)
2604 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2607 $(AM_V_at)$(MKDIR_P) $(dir $@)
2608 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2610 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2611 libudev-install-hook:
2612 libname=libudev.so && $(move-to-rootlibdir)
2614 libudev-uninstall-hook:
2615 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2617 INSTALL_EXEC_HOOKS += libudev-install-hook
2618 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2620 # ------------------------------------------------------------------------------
2621 noinst_LTLIBRARIES += \
2624 libudev_internal_la_SOURCES =\
2625 $(libudev_la_SOURCES) \
2626 src/libudev/libudev-device-private.c
2628 libudev_internal_la_CFLAGS = \
2630 -fvisibility=default
2632 # ------------------------------------------------------------------------------
2634 $(sysconfdir)/udev/rules.d \
2635 $(sysconfdir)/udev/hwdb.d
2637 dist_network_DATA = \
2638 network/99-default.link \
2639 network/80-container-host0.network
2641 dist_udevrules_DATA += \
2642 rules/42-usb-hid-pm.rules \
2643 rules/50-udev-default.rules \
2644 rules/60-drm.rules \
2645 rules/60-keyboard.rules \
2646 rules/60-persistent-storage-tape.rules \
2647 rules/60-persistent-serial.rules \
2648 rules/60-persistent-input.rules \
2649 rules/60-persistent-alsa.rules \
2650 rules/60-persistent-storage.rules \
2651 rules/64-btrfs.rules \
2652 rules/75-net-description.rules \
2653 rules/75-tty-description.rules \
2654 rules/78-sound-card.rules \
2655 rules/80-net-setup-link.rules \
2656 rules/95-udev-late.rules
2658 nodist_udevrules_DATA += \
2659 rules/99-systemd.rules
2661 dist_udevhwdb_DATA = \
2662 hwdb/20-pci-vendor-model.hwdb \
2663 hwdb/20-pci-classes.hwdb \
2664 hwdb/20-usb-vendor-model.hwdb \
2665 hwdb/20-usb-classes.hwdb \
2666 hwdb/20-sdio-vendor-model.hwdb \
2667 hwdb/20-sdio-classes.hwdb \
2668 hwdb/20-bluetooth-vendor-product.hwdb \
2669 hwdb/20-acpi-vendor.hwdb \
2671 hwdb/20-net-ifname.hwdb \
2672 hwdb/60-keyboard.hwdb
2674 udevconfdir = $(sysconfdir)/udev
2675 dist_udevconf_DATA = \
2678 sharepkgconfigdir = $(datadir)/pkgconfig
2679 sharepkgconfig_DATA = \
2683 rules/99-systemd.rules.in \
2687 rules/99-systemd.rules \
2691 units/systemd-udevd.service.in \
2692 units/systemd-udev-trigger.service.in \
2693 units/systemd-udev-settle.service.in
2696 units/systemd-udevd.service \
2697 units/systemd-udev-trigger.service \
2698 units/systemd-udev-settle.service
2700 SOCKETS_TARGET_WANTS += \
2701 systemd-udevd-control.socket \
2702 systemd-udevd-kernel.socket
2703 SYSINIT_TARGET_WANTS += \
2704 systemd-udevd.service \
2705 systemd-udev-trigger.service
2707 rootbin_PROGRAMS += \
2710 rootlibexec_PROGRAMS += \
2713 noinst_LTLIBRARIES += \
2716 src/udev/keyboard-keys.txt:
2717 $(AM_V_at)$(MKDIR_P) $(dir $@)
2718 $(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/' > $@
2720 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2721 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2723 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2724 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2726 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2727 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2729 libudev_core_la_SOURCES = \
2731 src/udev/udev-event.c \
2732 src/udev/udev-watch.c \
2733 src/udev/udev-node.c \
2734 src/udev/udev-rules.c \
2735 src/udev/udev-ctrl.c \
2736 src/udev/udev-builtin.c \
2737 src/udev/udev-builtin-btrfs.c \
2738 src/udev/udev-builtin-hwdb.c \
2739 src/udev/udev-builtin-input_id.c \
2740 src/udev/udev-builtin-keyboard.c \
2741 src/udev/udev-builtin-net_id.c \
2742 src/udev/udev-builtin-net_setup_link.c \
2743 src/udev/udev-builtin-path_id.c \
2744 src/udev/udev-builtin-usb_id.c \
2745 src/udev/net/link-config.h \
2746 src/udev/net/link-config.c \
2747 src/udev/net/ethtool-util.h \
2748 src/udev/net/ethtool-util.c
2750 nodist_libudev_core_la_SOURCES = \
2751 src/udev/keyboard-keys-from-name.h \
2752 src/udev/keyboard-keys-to-name.h \
2753 src/udev/net/link-config-gperf.c
2756 $(nodist_libudev_core_la_SOURCES)
2759 src/udev/keyboard-keys-from-name.gperf \
2760 src/udev/keyboard-keys.txt \
2761 src/udev/net/link-config-gperf.c
2764 src/udev/net/link-config-gperf.gperf
2766 libudev_core_la_CFLAGS = \
2771 libudev_core_la_LIBADD = \
2772 libudev-internal.la \
2773 libsystemd-label.la \
2774 libsystemd-internal.la \
2775 libsystemd-network.la \
2776 libsystemd-shared.la \
2780 libudev_core_la_CPPFLAGS = \
2782 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2785 libudev_core_la_SOURCES += \
2786 src/udev/udev-builtin-firmware.c
2788 dist_udevrules_DATA += \
2789 rules/50-firmware.rules
2793 libudev_core_la_SOURCES += \
2794 src/udev/udev-builtin-kmod.c
2796 dist_udevrules_DATA += \
2797 rules/80-drivers.rules
2801 libudev_core_la_SOURCES += \
2802 src/udev/udev-builtin-blkid.c
2806 libudev_core_la_SOURCES += \
2807 src/udev/udev-builtin-uaccess.c \
2808 src/login/logind-acl.c \
2809 src/libsystemd/sd-login/sd-login.c \
2810 src/systemd/sd-login.h
2812 libudev_core_la_LIBADD += \
2816 systemd_udevd_SOURCES = \
2819 systemd_udevd_LDADD = \
2823 src/udev/udevadm.c \
2824 src/udev/udevadm-info.c \
2825 src/udev/udevadm-control.c \
2826 src/udev/udevadm-monitor.c \
2827 src/udev/udevadm-hwdb.c \
2828 src/udev/udevadm-settle.c \
2829 src/udev/udevadm-trigger.c \
2830 src/udev/udevadm-test.c \
2831 src/udev/udevadm-test-builtin.c
2836 # Update hwdb on installation. Do not bother if installing
2837 # in DESTDIR, since this is likely for packaging purposes.
2839 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2841 INSTALL_DATA_HOOKS += \
2845 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2847 # ------------------------------------------------------------------------------
2856 test_libudev_SOURCES = \
2857 src/test/test-libudev.c
2859 test_libudev_LDADD = \
2860 libsystemd-label.la \
2861 libudev-internal.la \
2862 libsystemd-shared.la
2864 test_udev_SOURCES = \
2865 src/test/test-udev.c
2874 test_udev_LDADD += \
2881 # packed sysfs test tree
2883 $(AM_V_at)$(MKDIR_P) $(dir $@)
2884 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2888 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2893 test/rules-test.sh \
2894 test/rule-syntax-check.py
2896 # ------------------------------------------------------------------------------
2898 src/udev/ata_id/ata_id.c
2901 libudev-internal.la \
2902 libsystemd-shared.la
2904 udevlibexec_PROGRAMS += \
2907 # ------------------------------------------------------------------------------
2908 cdrom_id_SOURCES = \
2909 src/udev/cdrom_id/cdrom_id.c
2912 libudev-internal.la \
2913 libsystemd-shared.la
2915 udevlibexec_PROGRAMS += \
2918 dist_udevrules_DATA += \
2919 rules/60-cdrom_id.rules
2921 # ------------------------------------------------------------------------------
2923 src/udev/collect/collect.c
2926 libudev-internal.la \
2927 libsystemd-shared.la
2929 udevlibexec_PROGRAMS += \
2932 # ------------------------------------------------------------------------------
2934 src/udev/scsi_id/scsi_id.c \
2935 src/udev/scsi_id/scsi_serial.c \
2936 src/udev/scsi_id/scsi.h \
2937 src/udev/scsi_id/scsi_id.h
2940 libudev-internal.la \
2941 libsystemd-shared.la
2943 udevlibexec_PROGRAMS += \
2947 src/udev/scsi_id/README
2949 # ------------------------------------------------------------------------------
2951 src/udev/v4l_id/v4l_id.c
2956 udevlibexec_PROGRAMS += \
2959 dist_udevrules_DATA += \
2960 rules/60-persistent-v4l.rules
2962 # ------------------------------------------------------------------------------
2963 accelerometer_SOURCES = \
2964 src/udev/accelerometer/accelerometer.c
2966 accelerometer_LDADD = \
2967 libudev-internal.la -lm \
2968 libsystemd-shared.la
2970 udevlibexec_PROGRAMS += \
2973 dist_udevrules_DATA += \
2974 rules/61-accelerometer.rules
2976 # ------------------------------------------------------------------------------
2983 libgudev_includedir = \
2984 $(includedir)/gudev-1.0/gudev
2986 libgudev_include_HEADERS = \
2988 src/gudev/gudevenums.h \
2989 src/gudev/gudevenumtypes.h \
2990 src/gudev/gudevtypes.h \
2991 src/gudev/gudevclient.h \
2992 src/gudev/gudevdevice.h \
2993 src/gudev/gudevenumerator.h
2995 lib_LTLIBRARIES += libgudev-1.0.la
2997 pkgconfiglib_DATA += \
2998 src/gudev/gudev-1.0.pc
3001 src/gudev/gudev-1.0.pc
3003 libgudev_1_0_la_SOURCES = \
3004 src/gudev/gudevenums.h \
3005 src/gudev/gudevenumtypes.h \
3006 src/gudev/gudevenumtypes.h\
3007 src/gudev/gudevtypes.h \
3008 src/gudev/gudevclient.h \
3009 src/gudev/gudevclient.c \
3010 src/gudev/gudevdevice.h \
3011 src/gudev/gudevdevice.c \
3012 src/gudev/gudevenumerator.h \
3013 src/gudev/gudevenumerator.c \
3014 src/gudev/gudevprivate.h
3016 nodist_libgudev_1_0_la_SOURCES = \
3017 src/gudev/gudevmarshal.h \
3018 src/gudev/gudevmarshal.c \
3019 src/gudev/gudevenumtypes.h \
3020 src/gudev/gudevenumtypes.c
3023 $(nodist_libgudev_1_0_la_SOURCES)
3025 libgudev_1_0_la_CPPFLAGS = \
3027 -I$(top_builddir)/src\
3028 -I$(top_srcdir)/src\
3029 -I$(top_builddir)/src/gudev \
3030 -I$(top_srcdir)/src/gudev \
3031 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3032 -D_GUDEV_COMPILATION \
3033 -DG_LOG_DOMAIN=\"GUdev\"
3035 libgudev_1_0_la_CFLAGS = \
3037 -fvisibility=default \
3040 libgudev_1_0_la_LIBADD = \
3044 libgudev_1_0_la_LDFLAGS = \
3046 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3047 -export-dynamic -no-undefined \
3048 -export-symbols-regex '^g_udev_.*'
3050 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3051 $(AM_V_at)$(MKDIR_P) $(dir $@)
3052 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3054 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3055 $(AM_V_at)$(MKDIR_P) $(dir $@)
3056 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3057 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3059 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3060 $(AM_V_at)$(MKDIR_P) $(dir $@)
3061 $(AM_V_GEN)glib-mkenums --template $^ > $@
3063 if HAVE_INTROSPECTION
3064 -include $(INTROSPECTION_MAKEFILE)
3066 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3068 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3070 src_gudev_GUdev_1_0_gir_CFLAGS = \
3073 -D_GUDEV_COMPILATION \
3074 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3075 -I$(top_srcdir)/src \
3076 -I$(top_builddir)/src \
3077 -I$(top_srcdir)/src/gudev \
3078 -I$(top_builddir)/src/gudev
3080 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3082 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3083 --pkg-export=gudev-1.0 \
3086 src_gudev_GUdev_1_0_gir_FILES = \
3088 src/gudev/gudevtypes.h \
3089 src/gudev/gudevenums.h \
3090 src/gudev/gudevenumtypes.h \
3091 src/gudev/gudevclient.h \
3092 src/gudev/gudevdevice.h \
3093 src/gudev/gudevenumerator.h \
3094 src/gudev/gudevclient.c \
3095 src/gudev/gudevdevice.c \
3096 src/gudev/gudevenumerator.c
3098 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3099 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3101 girdir = $(datadir)/gir-1.0
3103 src/gudev/GUdev-1.0.gir
3105 typelibsdir = $(libdir)/girepository-1.0
3107 src/gudev/GUdev-1.0.typelib
3109 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3110 endif # HAVE_INTROSPECTION
3112 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3113 libgudev-install-hook:
3114 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3116 libgudev-uninstall-hook:
3117 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3119 INSTALL_EXEC_HOOKS += libgudev-install-hook
3120 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3124 src/gudev/gudev-1.0.pc.in \
3125 src/gudev/gudevmarshal.list \
3126 src/gudev/gudevenumtypes.h.template \
3127 src/gudev/gudevenumtypes.c.template \
3128 src/gudev/gjs-example.js \
3129 src/gudev/seed-example-enum.js \
3130 src/gudev/seed-example.js
3132 # ------------------------------------------------------------------------------
3133 mtd_probe_SOURCES = \
3134 src/udev/mtd_probe/mtd_probe.c \
3135 src/udev/mtd_probe/mtd_probe.h \
3136 src/udev/mtd_probe/probe_smartmedia.c
3138 dist_udevrules_DATA += \
3139 rules/75-probe_mtd.rules
3141 udevlibexec_PROGRAMS += \
3144 # ------------------------------------------------------------------------------
3145 test_id128_SOURCES = \
3146 src/test/test-id128.c
3148 test_id128_LDADD = \
3149 libsystemd-internal.la \
3150 libsystemd-shared.la
3155 # ------------------------------------------------------------------------------
3157 rootlibexec_PROGRAMS += \
3160 systemd_activate_SOURCES = \
3161 src/activate/activate.c
3163 systemd_activate_LDADD = \
3164 libsystemd-label.la \
3165 libsystemd-internal.la \
3166 libsystemd-shared.la
3168 # ------------------------------------------------------------------------------
3169 systemd_journald_SOURCES = \
3170 src/journal/journald.c \
3171 src/journal/journald-server.h
3173 systemd_journald_LDADD = \
3174 libsystemd-journal-core.la \
3175 libsystemd-internal.la \
3176 libsystemd-shared.la
3178 systemd_cat_SOURCES = \
3181 systemd_cat_LDADD = \
3182 libsystemd-journal-core.la
3185 rootlibexec_PROGRAMS += \
3186 systemd-journal-remote
3188 systemd_journal_remote_SOURCES = \
3189 src/journal/journal-remote-parse.h \
3190 src/journal/journal-remote-parse.c \
3191 src/journal/journal-remote-write.h \
3192 src/journal/journal-remote-write.c \
3193 src/journal/journal-remote.c
3195 systemd_journal_remote_LDADD = \
3196 libsystemd-internal.la \
3197 libsystemd-journal-core.la
3199 systemd_journal_remote_SOURCES += \
3200 src/journal/microhttpd-util.h \
3201 src/journal/microhttpd-util.c
3203 systemd_journal_remote_CFLAGS = \
3205 $(MICROHTTPD_CFLAGS)
3207 systemd_journal_remote_LDADD += \
3211 systemd_journal_remote_LDADD += \
3216 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3217 journalctl_CFLAGS = \
3220 journalctl_SOURCES = \
3221 src/journal/journalctl.c
3223 journalctl_LDADD = \
3224 libsystemd-journal-internal.la \
3225 libsystemd-internal.la \
3226 libsystemd-logs.la \
3227 libsystemd-shared.la
3230 journalctl_LDADD += \
3235 journalctl_SOURCES += \
3236 src/journal/journal-qrcode.c \
3237 src/journal/journal-qrcode.h
3239 journalctl_CFLAGS += \
3242 journalctl_LDADD += \
3246 test_journal_SOURCES = \
3247 src/journal/test-journal.c
3249 test_journal_LDADD = \
3250 libsystemd-journal-core.la
3252 test_journal_send_SOURCES = \
3253 src/journal/test-journal-send.c
3255 test_journal_send_LDADD = \
3256 libsystemd-journal-core.la
3258 test_journal_syslog_SOURCES = \
3259 src/journal/test-journal-syslog.c
3261 test_journal_syslog_LDADD = \
3262 libsystemd-journal-core.la
3264 test_journal_match_SOURCES = \
3265 src/journal/test-journal-match.c
3267 test_journal_match_LDADD = \
3268 libsystemd-journal-core.la
3270 test_journal_enum_SOURCES = \
3271 src/journal/test-journal-enum.c
3273 test_journal_enum_LDADD = \
3274 libsystemd-journal-core.la
3276 test_journal_stream_SOURCES = \
3277 src/journal/test-journal-stream.c
3279 test_journal_stream_LDADD = \
3280 libsystemd-journal-core.la
3282 test_journal_flush_SOURCES = \
3283 src/journal/test-journal-flush.c
3285 test_journal_flush_LDADD = \
3286 libsystemd-journal-core.la
3288 test_journal_init_SOURCES = \
3289 src/journal/test-journal-init.c
3291 test_journal_init_LDADD = \
3292 libsystemd-journal-core.la
3294 test_journal_verify_SOURCES = \
3295 src/journal/test-journal-verify.c
3297 test_journal_verify_LDADD = \
3298 libsystemd-journal-core.la
3300 test_journal_interleaving_SOURCES = \
3301 src/journal/test-journal-interleaving.c
3303 test_journal_interleaving_LDADD = \
3304 libsystemd-journal-core.la
3306 test_mmap_cache_SOURCES = \
3307 src/journal/test-mmap-cache.c
3309 test_mmap_cache_LDADD = \
3310 libsystemd-journal-core.la
3312 test_catalog_SOURCES = \
3313 src/journal/test-catalog.c
3315 test_catalog_CPPFLAGS = \
3317 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3319 test_catalog_LDADD = \
3320 libsystemd-journal-core.la
3322 libsystemd_journal_core_la_SOURCES = \
3323 src/journal/journald-kmsg.c \
3324 src/journal/journald-kmsg.h \
3325 src/journal/journald-syslog.c \
3326 src/journal/journald-syslog.h \
3327 src/journal/journald-stream.c \
3328 src/journal/journald-stream.h \
3329 src/journal/journald-server.c \
3330 src/journal/journald-server.h \
3331 src/journal/journald-console.c \
3332 src/journal/journald-console.h \
3333 src/journal/journald-wall.c \
3334 src/journal/journald-wall.h \
3335 src/journal/journald-native.c \
3336 src/journal/journald-native.h \
3337 src/journal/journald-rate-limit.c \
3338 src/journal/journald-rate-limit.h \
3339 src/journal/journal-internal.h
3341 nodist_libsystemd_journal_core_la_SOURCES = \
3342 src/journal/journald-gperf.c
3344 libsystemd_journal_core_la_LIBADD = \
3345 libsystemd-journal-internal.la \
3346 libudev-internal.la \
3347 libsystemd-capability.la \
3348 libsystemd-label.la \
3349 libsystemd-internal.la \
3350 libsystemd-shared.la
3353 libsystemd_journal_core_la_LIBADD += \
3357 noinst_LTLIBRARIES += \
3358 libsystemd-journal-core.la
3360 journal-install-hook:
3361 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3362 -chown 0:0 $(DESTDIR)/var/log/journal
3363 -chmod 755 $(DESTDIR)/var/log/journal
3364 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3365 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3367 journal-uninstall-hook:
3368 -rmdir $(DESTDIR)/var/log/journal/
3370 INSTALL_EXEC_HOOKS += journal-install-hook
3371 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3373 # ------------------------------------------------------------------------------
3374 # Update catalog on installation. Do not bother if installing
3375 # in DESTDIR, since this is likely for packaging purposes.
3376 catalog-update-hook:
3377 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3379 INSTALL_DATA_HOOKS += \
3382 catalog-remove-hook:
3383 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3385 UNINSTALL_DATA_HOOKS += \
3394 test-journal-syslog \
3395 test-journal-match \
3396 test-journal-stream \
3398 test-journal-verify \
3399 test-journal-interleaving \
3400 test-journal-flush \
3404 pkginclude_HEADERS += \
3405 src/systemd/sd-journal.h \
3406 src/systemd/sd-messages.h \
3407 src/systemd/_sd-common.h
3409 libsystemd_journal_internal_la_SOURCES = \
3410 src/journal/sd-journal.c \
3411 src/systemd/sd-journal.h \
3412 src/systemd/_sd-common.h \
3413 src/journal/journal-file.c \
3414 src/journal/journal-file.h \
3415 src/journal/journal-vacuum.c \
3416 src/journal/journal-vacuum.h \
3417 src/journal/journal-verify.c \
3418 src/journal/journal-verify.h \
3419 src/journal/lookup3.c \
3420 src/journal/lookup3.h \
3421 src/journal/journal-send.c \
3422 src/journal/journal-def.h \
3423 src/journal/compress.h \
3424 src/journal/catalog.c \
3425 src/journal/catalog.h \
3426 src/journal/mmap-cache.c \
3427 src/journal/mmap-cache.h
3429 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3430 libsystemd_journal_internal_la_CFLAGS =
3433 libsystemd_journal_internal_la_LIBADD =
3436 libsystemd_journal_internal_la_SOURCES += \
3437 src/journal/compress.c
3439 libsystemd_journal_internal_la_CFLAGS += \
3442 libsystemd_journal_internal_la_LIBADD += \
3447 libsystemd_journal_internal_la_SOURCES += \
3448 src/journal/journal-authenticate.c \
3449 src/journal/journal-authenticate.h \
3450 src/journal/fsprg.c \
3453 libsystemd_journal_internal_la_LIBADD += \
3456 # fsprg.c is a drop-in file using void pointer arithmetic
3457 libsystemd_journal_internal_la_CFLAGS += \
3462 noinst_LTLIBRARIES += \
3463 libsystemd-journal-internal.la
3465 rootlibexec_PROGRAMS += \
3468 rootbin_PROGRAMS += \
3474 dist_systemunit_DATA += \
3475 units/systemd-journald.socket
3477 nodist_systemunit_DATA += \
3478 units/systemd-journald.service \
3479 units/systemd-journal-flush.service
3481 dist_pkgsysconf_DATA += \
3482 src/journal/journald.conf
3484 dist_catalog_DATA = \
3485 catalog/systemd.fr.catalog \
3486 catalog/systemd.ru.catalog \
3487 catalog/systemd.it.catalog \
3488 catalog/systemd.catalog
3490 SOCKETS_TARGET_WANTS += \
3491 systemd-journald.socket
3492 SYSINIT_TARGET_WANTS += \
3493 systemd-journald.service \
3494 systemd-journal-flush.service
3497 units/systemd-journald.service.in \
3498 units/systemd-journal-flush.service.in \
3499 src/journal/journald-gperf.gperf
3502 src/journal/journald-gperf.c
3504 # ------------------------------------------------------------------------------
3506 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3508 rootlibexec_PROGRAMS += \
3509 systemd-journal-gatewayd
3511 systemd_journal_gatewayd_SOURCES = \
3512 src/journal/journal-gatewayd.c \
3513 src/journal/microhttpd-util.h \
3514 src/journal/microhttpd-util.c
3516 systemd_journal_gatewayd_LDADD = \
3517 libsystemd-logs.la \
3518 libsystemd-journal-internal.la \
3519 libsystemd-internal.la \
3520 libsystemd-shared.la \
3524 systemd_journal_gatewayd_LDADD += \
3528 systemd_journal_gatewayd_CFLAGS = \
3530 $(MICROHTTPD_CFLAGS)
3532 systemd_journal_gatewayd_CPPFLAGS = \
3534 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3536 dist_systemunit_DATA += \
3537 units/systemd-journal-gatewayd.socket
3539 nodist_systemunit_DATA += \
3540 units/systemd-journal-gatewayd.service
3542 dist_gatewayddocumentroot_DATA = \
3543 src/journal/browse.html
3548 units/systemd-journal-gatewayd.service.in
3550 # ------------------------------------------------------------------------------
3552 systemd_socket_proxyd_SOURCES = \
3553 src/socket-proxy/socket-proxyd.c
3555 systemd_socket_proxyd_LDADD = \
3556 libsystemd-logs.la \
3557 libsystemd-internal.la \
3558 libsystemd-journal-internal.la \
3559 libsystemd-shared.la
3561 # ------------------------------------------------------------------------------
3563 systemd_coredump_SOURCES = \
3564 src/journal/coredump.c
3566 systemd_coredump_LDADD = \
3567 libsystemd-journal-internal.la \
3568 libsystemd-label.la \
3569 libsystemd-internal.la \
3570 libsystemd-shared.la
3572 rootlibexec_PROGRAMS += \
3575 systemd_coredumpctl_SOURCES = \
3576 src/journal/coredumpctl.c
3578 systemd_coredumpctl_LDADD = \
3579 libsystemd-journal-internal.la \
3580 libsystemd-internal.la \
3581 libsystemd-shared.la
3586 dist_bashcompletion_DATA += \
3587 shell-completion/bash/systemd-coredumpctl
3589 dist_zshcompletion_DATA += \
3590 shell-completion/zsh/_systemd-coredumpctl
3593 sysctl.d/50-coredump.conf
3596 sysctl.d/50-coredump.conf
3600 sysctl.d/50-coredump.conf.in
3602 # ------------------------------------------------------------------------------
3604 systemd_binfmt_SOURCES = \
3607 systemd_binfmt_LDADD = \
3608 libsystemd-shared.la
3610 rootlibexec_PROGRAMS += \
3613 dist_systemunit_DATA += \
3614 units/proc-sys-fs-binfmt_misc.automount \
3615 units/proc-sys-fs-binfmt_misc.mount
3617 nodist_systemunit_DATA += \
3618 units/systemd-binfmt.service
3621 $(prefix)/lib/binfmt.d \
3622 $(sysconfdir)/binfmt.d
3624 SYSINIT_TARGET_WANTS += \
3625 systemd-binfmt.service \
3626 proc-sys-fs-binfmt_misc.automount
3631 units/systemd-binfmt.service.in
3633 # ------------------------------------------------------------------------------
3635 systemd_vconsole_setup_SOURCES = \
3636 src/vconsole/vconsole-setup.c
3638 systemd_vconsole_setup_LDADD = \
3639 libsystemd-shared.la
3641 rootlibexec_PROGRAMS += \
3642 systemd-vconsole-setup
3644 nodist_systemunit_DATA += \
3645 units/systemd-vconsole-setup.service
3647 SYSINIT_TARGET_WANTS += \
3648 systemd-vconsole-setup.service
3652 units/systemd-vconsole-setup.service.in
3654 # ------------------------------------------------------------------------------
3656 systemd_readahead_SOURCES = \
3657 src/readahead/readahead.c \
3658 src/readahead/readahead-collect.c \
3659 src/readahead/readahead-replay.c \
3660 src/readahead/readahead-analyze.c \
3661 src/readahead/readahead-common.c \
3662 src/readahead/readahead-common.h
3664 systemd_readahead_LDADD = \
3665 libsystemd-internal.la \
3666 libudev-internal.la \
3667 libsystemd-shared.la
3670 src/readahead/sd-readahead.c \
3671 src/systemd/sd-readahead.h
3673 rootlibexec_PROGRAMS += \
3676 dist_systemunit_DATA += \
3677 units/systemd-readahead-drop.service \
3678 units/systemd-readahead-done.timer
3680 nodist_systemunit_DATA += \
3681 units/systemd-readahead-collect.service \
3682 units/systemd-readahead-replay.service \
3683 units/systemd-readahead-done.service
3688 test_ssd_SOURCES = \
3689 src/readahead/test-ssd.c \
3690 src/readahead/readahead-common.c \
3691 src/readahead/readahead-common.h
3694 libsystemd-internal.la \
3695 libudev-internal.la \
3696 libsystemd-shared.la
3701 units/systemd-readahead-collect.service.in \
3702 units/systemd-readahead-replay.service.in \
3703 units/systemd-readahead-done.service.in
3705 # ------------------------------------------------------------------------------
3707 systemd_bootchart_SOURCES = \
3708 src/bootchart/bootchart.c \
3709 src/bootchart/bootchart.h \
3710 src/bootchart/store.c \
3711 src/bootchart/store.h \
3712 src/bootchart/svg.c \
3715 systemd_bootchart_LDADD = \
3716 libsystemd-journal-internal.la \
3717 libsystemd-shared.la
3719 rootlibexec_PROGRAMS += \
3722 dist_pkgsysconf_DATA += \
3723 src/bootchart/bootchart.conf
3726 # ------------------------------------------------------------------------------
3727 if ENABLE_QUOTACHECK
3728 rootlibexec_PROGRAMS += \
3731 nodist_systemunit_DATA += \
3732 units/systemd-quotacheck.service
3734 systemd_quotacheck_SOURCES = \
3735 src/quotacheck/quotacheck.c
3737 systemd_quotacheck_LDADD = \
3738 libsystemd-shared.la
3742 units/systemd-quotacheck.service.in
3744 nodist_systemunit_DATA += \
3745 units/quotaon.service
3747 # ------------------------------------------------------------------------------
3748 if ENABLE_RANDOMSEED
3749 rootlibexec_PROGRAMS += \
3752 nodist_systemunit_DATA += \
3753 units/systemd-random-seed.service
3755 systemd_random_seed_SOURCES = \
3756 src/random-seed/random-seed.c
3758 systemd_random_seed_LDADD = \
3759 libsystemd-label.la \
3760 libsystemd-shared.la
3762 SYSINIT_TARGET_WANTS += \
3763 systemd-random-seed.service
3768 units/systemd-random-seed.service.in
3770 # ------------------------------------------------------------------------------
3772 rootlibexec_PROGRAMS += \
3775 nodist_systemunit_DATA += \
3776 units/systemd-backlight@.service
3778 systemd_backlight_SOURCES = \
3779 src/backlight/backlight.c
3781 systemd_backlight_LDADD = \
3782 libsystemd-label.la \
3783 libudev-internal.la \
3784 libsystemd-shared.la
3788 units/systemd-backlight@.service.in
3790 # ------------------------------------------------------------------------------
3792 rootlibexec_PROGRAMS += \
3795 nodist_systemunit_DATA += \
3796 units/systemd-rfkill@.service
3798 systemd_rfkill_SOURCES = \
3801 systemd_rfkill_LDADD = \
3802 libsystemd-label.la \
3803 libudev-internal.la \
3804 libsystemd-shared.la
3808 units/systemd-rfkill@.service.in
3810 # ------------------------------------------------------------------------------
3811 if HAVE_LIBCRYPTSETUP
3812 rootlibexec_PROGRAMS += \
3815 systemgenerator_PROGRAMS += \
3816 systemd-cryptsetup-generator
3818 dist_systemunit_DATA += \
3819 units/cryptsetup.target
3821 systemd_cryptsetup_SOURCES = \
3822 src/cryptsetup/cryptsetup.c
3824 systemd_cryptsetup_CFLAGS = \
3826 $(LIBCRYPTSETUP_CFLAGS)
3828 systemd_cryptsetup_LDADD = \
3829 libsystemd-label.la \
3830 libudev-internal.la \
3831 libsystemd-shared.la \
3832 $(LIBCRYPTSETUP_LIBS)
3834 systemd_cryptsetup_generator_SOURCES = \
3835 src/cryptsetup/cryptsetup-generator.c
3837 systemd_cryptsetup_generator_LDADD = \
3838 libsystemd-label.la \
3839 libsystemd-shared.la
3841 SYSINIT_TARGET_WANTS += \
3846 # ------------------------------------------------------------------------------
3848 systemd_hostnamed_SOURCES = \
3849 src/hostname/hostnamed.c
3851 systemd_hostnamed_LDADD = \
3852 libsystemd-label.la \
3853 libsystemd-internal.la \
3854 libsystemd-shared.la
3856 rootlibexec_PROGRAMS += \
3859 nodist_systemunit_DATA += \
3860 units/systemd-hostnamed.service
3862 dist_systemunit_DATA += \
3863 units/org.freedesktop.hostname1.busname
3865 dist_dbuspolicy_DATA += \
3866 src/hostname/org.freedesktop.hostname1.conf
3868 dist_dbussystemservice_DATA += \
3869 src/hostname/org.freedesktop.hostname1.service
3871 polkitpolicy_files += \
3872 src/hostname/org.freedesktop.hostname1.policy
3874 SYSTEM_UNIT_ALIASES += \
3875 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3877 BUSNAMES_TARGET_WANTS += \
3878 org.freedesktop.hostname1.busname
3880 hostnamectl_SOURCES = \
3881 src/hostname/hostnamectl.c
3883 hostnamectl_LDADD = \
3884 libsystemd-internal.la \
3885 libsystemd-shared.la
3890 dist_bashcompletion_DATA += \
3891 shell-completion/bash/hostnamectl
3893 dist_zshcompletion_DATA += \
3894 shell-completion/zsh/_hostnamectl
3898 polkitpolicy_in_files += \
3899 src/hostname/org.freedesktop.hostname1.policy.in
3902 units/systemd-hostnamed.service.in
3904 # ------------------------------------------------------------------------------
3906 dist_systemunit_DATA += \
3907 units/org.freedesktop.systemd1.busname
3909 BUSNAMES_TARGET_WANTS += \
3910 org.freedesktop.systemd1.busname
3913 # ------------------------------------------------------------------------------
3915 systemd_localed_SOURCES = \
3916 src/locale/localed.c
3918 systemd_localed_LDADD = \
3919 libsystemd-label.la \
3920 libsystemd-internal.la \
3921 libsystemd-shared.la
3923 nodist_systemunit_DATA += \
3924 units/systemd-localed.service
3926 dist_systemunit_DATA += \
3927 units/org.freedesktop.locale1.busname
3929 rootlibexec_PROGRAMS += \
3932 dist_dbuspolicy_DATA += \
3933 src/locale/org.freedesktop.locale1.conf
3935 dist_dbussystemservice_DATA += \
3936 src/locale/org.freedesktop.locale1.service
3938 polkitpolicy_files += \
3939 src/locale/org.freedesktop.locale1.policy
3941 SYSTEM_UNIT_ALIASES += \
3942 systemd-localed.service dbus-org.freedesktop.locale1.service
3944 BUSNAMES_TARGET_WANTS += \
3945 org.freedesktop.locale1.busname
3947 dist_pkgdata_DATA += \
3948 src/locale/kbd-model-map
3950 dist_noinst_SCRIPT = \
3951 src/locale/generate-kbd-model-map
3953 update-kbd-model-map: src/locale/generate-kbd-model-map
3954 $PYTHON $< >src/locale/kbd-model-map
3956 localectl_SOURCES = \
3957 src/locale/localectl.c
3960 libsystemd-internal.la \
3961 libsystemd-shared.la
3966 dist_bashcompletion_DATA += \
3967 shell-completion/bash/localectl
3969 dist_zshcompletion_DATA += \
3970 shell-completion/zsh/_localectl
3974 .PHONY: update-kbd-model-map
3976 polkitpolicy_in_files += \
3977 src/locale/org.freedesktop.locale1.policy.in
3980 units/systemd-localed.service.in
3982 # ------------------------------------------------------------------------------
3984 systemd_timedated_SOURCES = \
3985 src/timedate/timedated.c
3987 systemd_timedated_LDADD = \
3988 libsystemd-label.la \
3989 libsystemd-internal.la \
3990 libsystemd-shared.la
3992 rootlibexec_PROGRAMS += \
3995 dist_dbussystemservice_DATA += \
3996 src/timedate/org.freedesktop.timedate1.service
3998 dist_dbuspolicy_DATA += \
3999 src/timedate/org.freedesktop.timedate1.conf
4001 nodist_systemunit_DATA += \
4002 units/systemd-timedated.service
4004 dist_systemunit_DATA += \
4005 units/org.freedesktop.timedate1.busname
4007 polkitpolicy_files += \
4008 src/timedate/org.freedesktop.timedate1.policy
4011 $(prefix)/lib/systemd/ntp-units.d \
4012 $(sysconfdir)/systemd/ntp-units.d
4014 SYSTEM_UNIT_ALIASES += \
4015 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4017 BUSNAMES_TARGET_WANTS += \
4018 org.freedesktop.timedate1.busname
4020 timedatectl_SOURCES = \
4021 src/timedate/timedatectl.c
4023 timedatectl_LDADD = \
4024 libsystemd-internal.la \
4025 libsystemd-shared.la
4030 dist_bashcompletion_DATA += \
4031 shell-completion/bash/timedatectl
4033 dist_zshcompletion_DATA += \
4034 shell-completion/zsh/_timedatectl
4037 polkitpolicy_in_files += \
4038 src/timedate/org.freedesktop.timedate1.policy.in
4041 units/systemd-timedated.service.in
4043 # ------------------------------------------------------------------------------
4045 systemd_timesyncd_SOURCES = \
4046 src/timesync/timesyncd.c \
4047 src/timesync/timesyncd.h
4049 nodist_systemd_timesyncd_SOURCES = \
4050 src/timesync/timesyncd-gperf.c
4053 src/timesync/timesyncd-gperf.gperf
4056 src/timesync/timesyncd-gperf.c
4058 systemd_timesyncd_LDADD = \
4059 libsystemd-label.la \
4060 libsystemd-internal.la \
4061 libsystemd-shared.la \
4062 libsystemd-resolve.la \
4063 libsystemd-network.la \
4066 rootlibexec_PROGRAMS += \
4069 nodist_systemunit_DATA += \
4070 units/systemd-timesyncd.service
4073 units/systemd-timesyncd.service.in
4075 nodist_pkgsysconf_DATA += \
4076 src/timesync/timesyncd.conf
4079 src/timesync/timesyncd.conf.in
4082 src/timesync/timesyncd.conf
4084 dist_ntpunits_DATA = \
4085 src/timesync/90-systemd.list
4089 # ------------------------------------------------------------------------------
4091 libnss_myhostname_la_SOURCES = \
4092 src/nss-myhostname/nss-myhostname.c \
4093 src/nss-myhostname/ifconf.h \
4094 src/nss-myhostname/netlink.c
4096 libnss_myhostname_la_LDFLAGS = \
4104 libnss_myhostname_la_LIBADD = \
4105 libsystemd-shared.la \
4106 libsystemd-internal.la
4108 lib_LTLIBRARIES += \
4109 libnss_myhostname.la
4112 # ------------------------------------------------------------------------------
4114 systemd_machined_SOURCES = \
4115 src/machine/machined.c \
4116 src/machine/machined.h
4118 systemd_machined_LDADD = \
4119 libsystemd-machine-core.la
4121 rootlibexec_PROGRAMS += \
4124 libsystemd_machine_core_la_SOURCES = \
4125 src/machine/machined-dbus.c \
4126 src/machine/machine.c \
4127 src/machine/machine.h \
4128 src/machine/machine-dbus.c
4130 libsystemd_machine_core_la_LIBADD = \
4131 libsystemd-label.la \
4132 libsystemd-internal.la \
4133 libudev-internal.la \
4134 libsystemd-shared.la
4136 noinst_LTLIBRARIES += \
4137 libsystemd-machine-core.la
4139 machinectl_SOURCES = \
4140 src/machine/machinectl.c
4142 machinectl_LDADD = \
4143 libsystemd-internal.la \
4144 libsystemd-shared.la
4146 rootbin_PROGRAMS += \
4149 dist_bashcompletion_DATA += \
4150 shell-completion/bash/machinectl
4152 test_machine_tables_SOURCES = \
4153 src/machine/test-machine-tables.c
4155 test_machine_tables_LDADD = \
4156 libsystemd-machine-core.la
4161 nodist_systemunit_DATA += \
4162 units/systemd-machined.service
4164 dist_systemunit_DATA += \
4165 units/machine.slice \
4166 units/org.freedesktop.machine1.busname
4168 dist_dbussystemservice_DATA += \
4169 src/machine/org.freedesktop.machine1.service
4171 dist_dbuspolicy_DATA += \
4172 src/machine/org.freedesktop.machine1.conf
4174 dist_zshcompletion_DATA += \
4175 shell-completion/zsh/_machinectl \
4176 shell-completion/zsh/_sd_machines
4178 SYSTEM_UNIT_ALIASES += \
4179 systemd-machined.service dbus-org.freedesktop.machine1.service
4181 BUSNAMES_TARGET_WANTS += \
4182 org.freedesktop.machine1.busname
4185 units/systemd-machined.service.in
4189 # ------------------------------------------------------------------------------
4191 rootlibexec_PROGRAMS += \
4194 systemd_networkd_SOURCES = \
4195 src/network/networkd.c
4197 systemd_networkd_LDADD = \
4198 libsystemd-networkd-core.la \
4201 noinst_LTLIBRARIES += \
4202 libsystemd-networkd-core.la
4204 libsystemd_networkd_core_la_SOURCES = \
4205 src/libsystemd-network/network-internal.h \
4206 src/network/networkd.h \
4207 src/network/networkd-link.c \
4208 src/network/networkd-netdev.c \
4209 src/network/networkd-tunnel.c \
4210 src/network/networkd-network.c \
4211 src/network/networkd-address.c \
4212 src/network/networkd-route.c \
4213 src/network/networkd-manager.c
4215 nodist_libsystemd_networkd_core_la_SOURCES = \
4216 src/network/networkd-network-gperf.c \
4217 src/network/networkd-netdev-gperf.c
4219 libsystemd_networkd_core_la_LIBADD = \
4220 libudev-internal.la \
4221 libsystemd-internal.la \
4222 libsystemd-network.la \
4223 libsystemd-label.la \
4224 libsystemd-shared.la
4226 nodist_systemunit_DATA += \
4227 units/systemd-networkd.service \
4228 units/systemd-networkd-wait-online.service
4230 GENERAL_ALIASES += \
4231 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4232 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4234 rootlibexec_PROGRAMS += \
4235 systemd-networkd-wait-online
4237 systemd_networkd_wait_online_SOURCES = \
4238 src/libsystemd-network/network-internal.h \
4239 src/network/networkd-wait-online.c \
4240 src/network/networkd-wait-online.h
4242 systemd_networkd_wait_online_LDADD = \
4243 libsystemd-network.la \
4244 libudev-internal.la \
4245 libsystemd-internal.la \
4246 libsystemd-shared.la \
4247 libsystemd-network.la
4249 test_network_SOURCES = \
4250 src/network/test-network.c
4252 test_network_LDADD = \
4253 libsystemd-networkd-core.la \
4260 src/network/networkd-network-gperf.gperf \
4261 src/network/networkd-netdev-gperf.gperf \
4262 units/systemd-networkd.service.in \
4263 units/systemd-networkd-wait-online.service.in
4266 src/network/networkd-network-gperf.c \
4267 src/network/networkd-netdev-gperf.c
4270 # ------------------------------------------------------------------------------
4272 systemd_logind_SOURCES = \
4273 src/login/logind.c \
4276 nodist_systemd_logind_SOURCES = \
4277 src/login/logind-gperf.c
4279 systemd_logind_LDADD = \
4280 libsystemd-logind-core.la
4282 libsystemd_logind_core_la_SOURCES = \
4283 src/login/logind-core.c \
4284 src/login/logind-device.c \
4285 src/login/logind-device.h \
4286 src/login/logind-button.c \
4287 src/login/logind-button.h \
4288 src/login/logind-action.c \
4289 src/login/logind-action.h \
4290 src/login/logind-seat.c \
4291 src/login/logind-seat.h \
4292 src/login/logind-session.c \
4293 src/login/logind-session.h \
4294 src/login/logind-session-device.c \
4295 src/login/logind-session-device.h \
4296 src/login/logind-user.c \
4297 src/login/logind-user.h \
4298 src/login/logind-inhibit.c \
4299 src/login/logind-inhibit.h \
4300 src/login/logind-dbus.c \
4301 src/login/logind-session-dbus.c \
4302 src/login/logind-seat-dbus.c \
4303 src/login/logind-user-dbus.c \
4304 src/login/logind-acl.h
4306 libsystemd_logind_core_la_LIBADD = \
4307 libsystemd-label.la \
4308 libsystemd-capability.la \
4309 libsystemd-internal.la \
4310 libudev-internal.la \
4311 libsystemd-shared.la
4314 libsystemd_logind_core_la_SOURCES += \
4315 src/login/logind-acl.c
4317 libsystemd_logind_core_la_LIBADD += \
4321 noinst_LTLIBRARIES += \
4322 libsystemd-logind-core.la
4324 systemd_user_sessions_SOURCES = \
4325 src/login/user-sessions.c
4327 systemd_user_sessions_LDADD = \
4328 libsystemd-shared.la
4330 rootlibexec_PROGRAMS += \
4332 systemd-user-sessions
4334 loginctl_SOURCES = \
4335 src/login/loginctl.c \
4336 src/login/sysfs-show.c
4339 libsystemd-internal.la \
4340 libudev-internal.la \
4341 libsystemd-shared.la
4343 rootbin_PROGRAMS += \
4346 dist_bashcompletion_DATA += \
4347 shell-completion/bash/loginctl
4349 dist_zshcompletion_DATA += \
4350 shell-completion/zsh/_loginctl \
4351 shell-completion/zsh/_systemd-inhibit
4353 systemd_inhibit_SOURCES = \
4356 systemd_inhibit_LDADD = \
4357 libsystemd-internal.la \
4358 libsystemd-shared.la
4360 rootbin_PROGRAMS += \
4363 test_login_SOURCES = \
4364 src/libsystemd/sd-login/test-login.c
4366 test_login_LDADD = \
4367 libsystemd-internal.la \
4368 libsystemd-shared.la
4370 test_login_shared_SOURCES = \
4371 src/login/test-login-shared.c
4373 test_login_shared_LDADD = \
4374 libsystemd-internal.la \
4375 libsystemd-shared.la
4377 test_inhibit_SOURCES = \
4378 src/login/test-inhibit.c
4380 test_inhibit_LDADD = \
4381 libsystemd-internal.la \
4382 libsystemd-shared.la
4384 test_login_tables_SOURCES = \
4385 src/login/test-login-tables.c
4387 test_login_tables_LDADD = \
4388 libsystemd-logind-core.la
4399 pam_systemd_la_SOURCES = \
4400 src/login/pam-module.c
4402 pam_systemd_la_CFLAGS = \
4407 pam_systemd_la_LDFLAGS = \
4413 -export-symbols-regex '^pam_sm_.*'
4415 pam_systemd_la_LIBADD = \
4416 libsystemd-capability.la \
4417 libsystemd-internal.la \
4418 libsystemd-shared.la \
4421 pamlib_LTLIBRARIES = \
4424 dist_pamconf_DATA = \
4425 src/login/systemd-user
4428 nodist_systemunit_DATA += \
4429 units/systemd-logind.service \
4430 units/systemd-user-sessions.service
4432 dist_systemunit_DATA += \
4434 units/org.freedesktop.login1.busname
4436 dist_dbussystemservice_DATA += \
4437 src/login/org.freedesktop.login1.service
4439 dist_dbuspolicy_DATA += \
4440 src/login/org.freedesktop.login1.conf
4442 dist_pkgsysconf_DATA += \
4443 src/login/logind.conf
4445 polkitpolicy_files += \
4446 src/login/org.freedesktop.login1.policy
4451 MULTI_USER_TARGET_WANTS += \
4452 systemd-logind.service \
4453 systemd-user-sessions.service
4455 SYSTEM_UNIT_ALIASES += \
4456 systemd-logind.service dbus-org.freedesktop.login1.service
4458 BUSNAMES_TARGET_WANTS += \
4459 org.freedesktop.login1.busname
4461 if ENABLE_MULTI_SEAT_X
4463 systemd_multi_seat_x_SOURCES = \
4464 src/login/multi-seat-x.c
4466 systemd_multi_seat_x_LDADD = \
4467 libsystemd-label.la \
4468 libsystemd-shared.la
4470 rootlibexec_PROGRAMS += \
4471 systemd-multi-seat-x
4475 dist_udevrules_DATA += \
4476 src/login/70-uaccess.rules \
4477 src/login/70-power-switch.rules
4479 nodist_udevrules_DATA += \
4480 src/login/71-seat.rules \
4481 src/login/73-seat-late.rules
4484 src/login/logind-gperf.c \
4485 src/login/71-seat.rules \
4486 src/login/73-seat-late.rules
4489 polkitpolicy_in_files += \
4490 src/login/org.freedesktop.login1.policy.in
4493 src/login/logind-gperf.gperf \
4494 src/login/71-seat.rules.in \
4495 src/login/73-seat-late.rules.in \
4496 units/systemd-logind.service.in \
4497 units/systemd-user-sessions.service.in
4499 # ------------------------------------------------------------------------------
4500 if HAVE_PYTHON_DEVEL
4501 pkgpyexec_LTLIBRARIES = \
4508 _journal_la_SOURCES = \
4509 src/python-systemd/_journal.c
4511 _journal_la_CFLAGS = \
4513 -fvisibility=default \
4514 $(PYTHON_DEVEL_CFLAGS)
4516 _journal_la_LDFLAGS = \
4522 _journal_la_LIBADD = \
4523 $(PYTHON_DEVEL_LIBS) \
4526 id128_la_SOURCES = \
4527 src/python-systemd/id128.c \
4528 src/python-systemd/id128-constants.h \
4529 src/python-systemd/pyutil.c \
4530 src/python-systemd/pyutil.h
4534 -fvisibility=default \
4535 $(PYTHON_DEVEL_CFLAGS) \
4536 -I$(top_builddir)/src/python-systemd
4538 id128_la_LDFLAGS = \
4545 $(PYTHON_DEVEL_LIBS) \
4546 libsystemd-shared.la \
4549 _daemon_la_SOURCES = \
4550 src/python-systemd/_daemon.c \
4551 src/python-systemd/pyutil.c \
4552 src/python-systemd/pyutil.h
4554 _daemon_la_CFLAGS = \
4556 -fvisibility=default \
4557 $(PYTHON_DEVEL_CFLAGS) \
4558 -I$(top_builddir)/src/python-systemd
4560 _daemon_la_LDFLAGS = \
4566 _daemon_la_LIBADD = \
4567 $(PYTHON_DEVEL_LIBS) \
4568 libsystemd-shared.la \
4571 _reader_la_SOURCES = \
4572 src/python-systemd/_reader.c \
4573 src/python-systemd/pyutil.c \
4574 src/python-systemd/pyutil.h
4576 _reader_la_CFLAGS = \
4578 -fvisibility=default \
4579 $(PYTHON_DEVEL_CFLAGS)
4581 _reader_la_LDFLAGS = \
4587 _reader_la_LIBADD = \
4588 $(PYTHON_DEVEL_LIBS) \
4589 libsystemd-shared.la \
4592 login_la_SOURCES = \
4593 src/python-systemd/login.c \
4594 src/python-systemd/pyutil.c \
4595 src/python-systemd/pyutil.h
4599 -fvisibility=default \
4600 $(PYTHON_DEVEL_CFLAGS)
4602 login_la_LDFLAGS = \
4609 $(PYTHON_DEVEL_LIBS) \
4610 libsystemd-shared.la \
4613 dist_pkgpyexec_PYTHON = \
4614 src/python-systemd/journal.py \
4615 src/python-systemd/daemon.py \
4616 src/python-systemd/__init__.py
4618 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4619 $(AM_V_at)$(MKDIR_P) $(dir $@)
4620 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4623 src/python-systemd/id128-constants.h
4625 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4627 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4628 $(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/
4629 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4632 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4633 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4636 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4637 $(MAKE) DESTDIR="$$dir" install && \
4638 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4643 CLEAN_LOCAL_HOOKS += clean-sphinx
4645 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4648 -rm -rf docs/html/python-systemd/
4650 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4652 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4653 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4655 # ------------------------------------------------------------------------------
4656 if ENABLE_COMPAT_LIBS
4658 src/compat-libs/linkwarning.h
4660 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4661 $(AM_V_at)$(MKDIR_P) $(dir $@)
4662 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4665 libsystemd-journal.c \
4666 libsystemd-login.c \
4667 libsystemd-id128.c \
4670 libsystemd_journal_la_SOURCES = \
4671 libsystemd-journal.c \
4672 src/compat-libs/libsystemd-journal.sym
4674 libsystemd_journal_la_CPPFLAGS = \
4676 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4678 libsystemd_journal_la_LDFLAGS = \
4680 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4681 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
4683 libsystemd_journal_la_LIBADD = \
4684 libsystemd-journal-internal.la \
4685 libsystemd-internal.la \
4686 libsystemd-shared.la
4688 libsystemd_login_la_SOURCES = \
4689 libsystemd-login.c \
4690 src/compat-libs/libsystemd-login.sym
4692 libsystemd_login_la_CPPFLAGS = \
4694 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4696 libsystemd_login_la_LDFLAGS = \
4698 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4699 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
4701 libsystemd_login_la_LIBADD = \
4702 libsystemd-internal.la \
4703 libsystemd-shared.la
4705 libsystemd_id128_la_SOURCES = \
4706 libsystemd-id128.c \
4707 src/compat-libs/libsystemd-id128.sym
4709 libsystemd_id128_la_CPPFLAGS = \
4711 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4713 libsystemd_id128_la_LDFLAGS = \
4715 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
4716 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
4718 libsystemd_id128_la_LIBADD = \
4719 libsystemd-internal.la \
4720 libsystemd-shared.la
4722 libsystemd_daemon_la_SOURCES = \
4723 libsystemd-daemon.c \
4724 src/compat-libs/libsystemd-daemon.sym
4726 libsystemd_daemon_la_CPPFLAGS = \
4728 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4730 libsystemd_daemon_la_LDFLAGS = \
4732 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
4733 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
4735 libsystemd_daemon_la_LIBADD = \
4736 libsystemd-internal.la \
4737 libsystemd-shared.la
4739 lib_LTLIBRARIES += \
4740 libsystemd-journal.la \
4741 libsystemd-login.la \
4742 libsystemd-id128.la \
4743 libsystemd-daemon.la
4745 pkgconfiglib_DATA += \
4746 src/compat-libs/libsystemd-journal.pc \
4747 src/compat-libs/libsystemd-login.pc \
4748 src/compat-libs/libsystemd-id128.pc \
4749 src/compat-libs/libsystemd-daemon.pc
4751 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4752 compat-lib-install-hook:
4753 libname=libsystemd-login.so && $(move-to-rootlibdir)
4754 libname=libsystemd-journal.so && $(move-to-rootlibdir)
4755 libname=libsystemd-id128.so && $(move-to-rootlibdir)
4756 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
4758 compat-lib-uninstall-hook:
4759 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4760 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
4761 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
4762 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
4764 INSTALL_EXEC_HOOKS += compat-lib-install-hook
4765 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
4769 src/compat-libs/libsystemd-journal.pc.in \
4770 src/compat-libs/libsystemd-login.pc.in \
4771 src/compat-libs/libsystemd-id128.pc.in \
4772 src/compat-libs/libsystemd-daemon.pc.in
4774 # ------------------------------------------------------------------------------
4776 '|rootlibexecdir=$(rootlibexecdir)|' \
4777 '|rootbindir=$(rootbindir)|' \
4778 '|bindir=$(bindir)|' \
4779 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4780 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4781 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4782 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4783 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4784 '|pkgdatadir=$(pkgdatadir)|' \
4785 '|systemunitdir=$(systemunitdir)|' \
4786 '|userunitdir=$(userunitdir)|' \
4787 '|systempresetdir=$(systempresetdir)|' \
4788 '|userpresetdir=$(userpresetdir)|' \
4789 '|udevhwdbdir=$(udevhwdbdir)|' \
4790 '|udevrulesdir=$(udevrulesdir)|' \
4791 '|catalogdir=$(catalogdir)|' \
4792 '|tmpfilesdir=$(tmpfilesdir)|' \
4793 '|sysctldir=$(sysctldir)|' \
4794 '|systemgeneratordir=$(systemgeneratordir)|' \
4795 '|usergeneratordir=$(usergeneratordir)|' \
4796 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4797 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4798 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4799 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4800 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4801 '|prefix=$(prefix)|' \
4802 '|exec_prefix=$(exec_prefix)|' \
4803 '|libdir=$(libdir)|' \
4804 '|includedir=$(includedir)|' \
4805 '|VERSION=$(VERSION)|' \
4806 '|rootprefix=$(rootprefix)|' \
4807 '|udevlibexecdir=$(udevlibexecdir)|' \
4808 '|SUSHELL=$(SUSHELL)|' \
4809 '|DEBUGTTY=$(DEBUGTTY)|' \
4812 '|MKDIR_P=$(MKDIR_P)|' \
4813 '|QUOTAON=$(QUOTAON)|' \
4814 '|QUOTACHECK=$(QUOTACHECK)|' \
4815 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4816 '|VARLOGDIR=$(varlogdir)|' \
4817 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4818 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4819 '|PYTHON=$(PYTHON)|' \
4820 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
4821 '|NTP_SERVERS=$(NTP_SERVERS)|'
4824 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4825 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4834 sysctl.d/%: sysctl.d/%.in
4840 src/core/macros.%: src/core/macros.%.in
4843 src/%.policy.in: src/%.policy.in.in
4854 $(AM_V_GEN)chmod +x $@
4856 src/%.c: src/%.gperf
4857 $(AM_V_at)$(MKDIR_P) $(dir $@)
4858 $(AM_V_GPERF)$(GPERF) < $< > $@
4861 $(AM_V_at)$(MKDIR_P) $(dir $@)
4862 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4865 $(AM_V_at)$(MKDIR_P) $(dir $@)
4866 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4868 units/user/%: units/%.m4
4869 $(AM_V_at)$(MKDIR_P) $(dir $@)
4870 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4873 nodist_polkitpolicy_DATA = \
4874 $(polkitpolicy_files) \
4875 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4879 $(polkitpolicy_in_files) \
4880 $(polkitpolicy_in_in_files)
4883 $(nodist_systemunit_DATA) \
4884 $(nodist_userunit_DATA) \
4885 $(pkgconfigdata_DATA) \
4886 $(pkgconfiglib_DATA) \
4887 $(nodist_polkitpolicy_DATA)
4889 # ------------------------------------------------------------------------------
4891 man/custom-entities.ent: configure.ac
4892 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4893 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4894 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
4898 man/custom-entities.ent
4903 --stringparam man.output.quietly 1 \
4904 --stringparam funcsynopsis.style ansi \
4905 --stringparam man.authors.section.enabled 0 \
4906 --stringparam man.copyright.section.enabled 0 \
4907 --stringparam systemd.version $(VERSION) \
4908 --path '$(builddir)/man:$(srcdir)/man'
4910 XSLTPROC_PROCESS_MAN = \
4911 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4913 XSLTPROC_PROCESS_HTML = \
4914 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4916 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4917 $(XSLTPROC_PROCESS_MAN)
4919 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4920 $(XSLTPROC_PROCESS_MAN)
4922 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4923 $(XSLTPROC_PROCESS_MAN)
4925 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4926 $(XSLTPROC_PROCESS_MAN)
4928 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4929 $(XSLTPROC_PROCESS_MAN)
4931 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4932 $(XSLTPROC_PROCESS_HTML)
4935 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4941 man/custom-html.xsl \
4944 # ------------------------------------------------------------------------------
4947 docs/sysvinit/README
4952 docs/sysvinit/README: docs/sysvinit/README.in
4955 docs/var-log/README: docs/var-log/README.in
4959 docs/sysvinit/README \
4964 docs/sysvinit/README.in \
4965 docs/var-log/README.in
4967 SOCKETS_TARGET_WANTS += \
4968 systemd-initctl.socket \
4969 systemd-shutdownd.socket
4972 RUNLEVEL1_TARGET_WANTS += \
4973 systemd-update-utmp-runlevel.service
4974 RUNLEVEL2_TARGET_WANTS += \
4975 systemd-update-utmp-runlevel.service
4976 RUNLEVEL3_TARGET_WANTS += \
4977 systemd-update-utmp-runlevel.service
4978 RUNLEVEL4_TARGET_WANTS += \
4979 systemd-update-utmp-runlevel.service
4980 RUNLEVEL5_TARGET_WANTS += \
4981 systemd-update-utmp-runlevel.service
4983 SYSINIT_TARGET_WANTS += \
4984 systemd-update-utmp.service
4985 LOCAL_FS_TARGET_WANTS += \
4986 systemd-remount-fs.service \
4988 MULTI_USER_TARGET_WANTS += \
4990 systemd-ask-password-wall.path
4991 SYSINIT_TARGET_WANTS += \
4992 dev-hugepages.mount \
4994 sys-kernel-config.mount \
4995 sys-kernel-debug.mount \
4996 sys-fs-fuse-connections.mount \
4997 systemd-sysctl.service \
4998 systemd-ask-password-console.path
5001 SYSTEM_UNIT_ALIASES += \
5002 poweroff.target runlevel0.target \
5003 rescue.target runlevel1.target \
5004 multi-user.target runlevel2.target \
5005 multi-user.target runlevel3.target \
5006 multi-user.target runlevel4.target \
5007 graphical.target runlevel5.target \
5008 reboot.target runlevel6.target
5011 SYSTEM_UNIT_ALIASES += \
5012 graphical.target default.target \
5013 reboot.target ctrl-alt-del.target \
5014 getty@.service autovt@.service
5016 USER_UNIT_ALIASES += \
5017 $(systemunitdir)/shutdown.target shutdown.target \
5018 $(systemunitdir)/sockets.target sockets.target \
5019 $(systemunitdir)/busnames.target busnames.target \
5020 $(systemunitdir)/timers.target timers.target \
5021 $(systemunitdir)/paths.target paths.target \
5022 $(systemunitdir)/bluetooth.target bluetooth.target \
5023 $(systemunitdir)/printer.target printer.target \
5024 $(systemunitdir)/sound.target sound.target \
5025 $(systemunitdir)/smartcard.target smartcard.target
5027 GENERAL_ALIASES += \
5028 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5029 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5030 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5031 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5035 $(systemunitdir)/runlevel1.target.wants \
5036 $(systemunitdir)/runlevel2.target.wants \
5037 $(systemunitdir)/runlevel3.target.wants \
5038 $(systemunitdir)/runlevel4.target.wants \
5039 $(systemunitdir)/runlevel5.target.wants
5043 $(prefix)/lib/modules-load.d \
5044 $(sysconfdir)/modules-load.d \
5045 $(prefix)/lib/systemd/network \
5046 $(sysconfdir)/systemd/network \
5047 $(prefix)/lib/sysctl.d \
5048 $(sysconfdir)/sysctl.d \
5049 $(prefix)/lib/kernel/install.d \
5050 $(sysconfdir)/kernel/install.d \
5051 $(systemshutdowndir) \
5053 $(systemgeneratordir) \
5054 $(usergeneratordir) \
5057 $(pkgsysconfdir)/system \
5058 $(pkgsysconfdir)/system/multi-user.target.wants \
5059 $(pkgsysconfdir)/system/getty.target.wants \
5060 $(pkgsysconfdir)/user \
5061 $(dbussessionservicedir) \
5062 $(sysconfdir)/xdg/systemd
5064 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5066 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5068 install-data-hook: $(INSTALL_DATA_HOOKS)
5070 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5072 clean-local: $(CLEAN_LOCAL_HOOKS)
5073 rm -rf $(abs_srcdir)/install-tree
5074 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5075 $(abs_srcdir)/hwdb/iab.txt
5077 DISTCHECK_CONFIGURE_FLAGS = \
5078 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5079 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5080 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5081 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5082 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5083 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5084 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5085 --with-rootprefix=$$dc_install_base \
5086 --disable-split-usr \
5088 --enable-compat-libs
5091 DISTCHECK_CONFIGURE_FLAGS += \
5092 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5093 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5095 DISTCHECK_CONFIGURE_FLAGS += \
5096 --with-sysvinit-path= \
5097 --with-sysvrcnd-path=
5101 DISTCHECK_CONFIGURE_FLAGS += \
5105 # check "broken" platforms limited toolchains for link breakage before we release
5108 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5112 ( cd $(top_srcdir)/hwdb && \
5113 wget -N http://www.linux-usb.org/usb.ids \
5114 http://pci-ids.ucw.cz/v2.2/pci.ids \
5115 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5116 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5119 .PHONY: kdbus-update
5121 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5122 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5126 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5128 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5130 upload: all check dist
5131 scp systemd-$(VERSION).tar.xz $(www_target)
5134 doc-sync: all destdir-sphinx
5135 gtkdoc-rebase --html-dir=docs/libudev/html --online
5136 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5137 gtkdoc-rebase --html-dir=docs/gudev/html --online
5138 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5139 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5140 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5144 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5145 scp man/*.html tango:public/systemd-man/
5147 .PHONY: install-tree
5149 rm -rf $(abs_srcdir)/install-tree
5150 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5151 tree $(abs_srcdir)/install-tree
5153 # Let's run all tests of the test suite, but under valgrind. Let's
5154 # exclude the one perl script we have in there
5155 .PHONY: valgrind-tests
5156 valgrind-tests: $(TESTS)
5157 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5158 if file $$f | grep -q shell; then \
5159 echo -e "$${x}Skipping non-binary $$f"; else \
5160 echo -e "$${x}Running $$f"; \
5161 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5166 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5168 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5169 $(AM_V_GEN)cat $^ > $@
5171 .PHONY: check-api-docs
5172 check-api-docs: exported man
5173 $(AM_V_GEN)for symbol in `cat exported` ; do \
5174 if test -f $(builddir)/man/$$symbol.html ; then \
5175 echo " Symbol $$symbol() is documented." ; \
5177 echo "‣ Symbol $$symbol() lacks documentation." ; \
5181 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5182 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5184 undefined defined: $(ALL_OBJECTS)
5185 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5186 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5187 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5193 .PHONY: check-api-unused
5194 check-api-unused: defined undefined exported
5195 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5197 .PHONY: check-includes
5198 check-includes: $(top_srcdir)/tools/check-includes.pl
5199 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5200 | xargs $(top_srcdir)/tools/check-includes.pl
5203 $(top_srcdir)/tools/check-includes.pl
5205 # Stupid test that everything purported to be exported really is
5206 define generate-sym-test
5207 $(AM_V_at)$(MKDIR_P) $(dir $@)
5208 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5209 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5210 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5211 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5212 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5213 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5214 $(AM_V_at)printf 'return 0; }\n' >> $@
5217 test-libsystemd-sym.c: \
5218 $(top_builddir)/src/libsystemd/libsystemd.sym \
5219 src/systemd/sd-journal.h \
5220 src/systemd/sd-daemon.h \
5221 src/systemd/sd-login.h \
5222 src/systemd/sd-bus.h \
5223 src/systemd/sd-utf8.h \
5224 src/systemd/sd-resolve.h
5225 $(generate-sym-test)
5227 test-libudev-sym.c: \
5228 src/libudev/libudev.sym \
5230 $(generate-sym-test)
5232 test_libsystemd_sym_SOURCES = \
5233 test-libsystemd-sym.c
5234 test_libsystemd_sym_LDADD = \
5237 test_libudev_sym_SOURCES = \
5239 test_libudev_sym_CFLAGS = \
5241 -Wno-deprecated-declarations
5242 test_libudev_sym_LDADD = \
5246 $(test_libsystemd_sym_SOURCES) \
5247 $(test_libudev_sym_SOURCES)
5250 test-libsystemd-sym \
5253 if ENABLE_COMPAT_LIBS
5254 test-libsystemd-daemon-sym.c: \
5255 src/compat-libs/libsystemd-daemon.sym \
5256 src/systemd/sd-daemon.h
5257 $(generate-sym-test)
5259 test-libsystemd-id128-sym.c: \
5260 src/compat-libs/libsystemd-id128.sym \
5261 src/systemd/sd-id128.h
5262 $(generate-sym-test)
5264 test-libsystemd-journal-sym.c: \
5265 src/compat-libs/libsystemd-journal.sym \
5266 src/systemd/sd-journal.h
5267 $(generate-sym-test)
5269 test-libsystemd-login-sym.c: \
5270 src/compat-libs/libsystemd-login.sym \
5271 src/systemd/sd-login.h
5272 $(generate-sym-test)
5274 test_libsystemd_daemon_sym_SOURCES = \
5275 test-libsystemd-daemon-sym.c
5276 test_libsystemd_daemon_sym_LDADD = \
5277 libsystemd-daemon.la
5279 test_libsystemd_id128_sym_SOURCES = \
5280 test-libsystemd-id128-sym.c
5281 test_libsystemd_id128_sym_LDADD = \
5284 test_libsystemd_journal_sym_SOURCES = \
5285 test-libsystemd-journal-sym.c
5286 test_libsystemd_journal_sym_LDADD = \
5287 libsystemd-journal.la
5289 test_libsystemd_login_sym_SOURCES = \
5290 test-libsystemd-login-sym.c
5291 test_libsystemd_login_sym_LDADD = \
5295 $(test_libsystemd_journal_sym_SOURCES) \
5296 $(test_libsystemd_login_sym_SOURCES) \
5297 $(test_libsystemd_id128_sym_SOURCES) \
5298 $(test_libsystemd_daemon_sym_SOURCES)
5301 test-libsystemd-journal-sym \
5302 test-libsystemd-login-sym \
5303 test-libsystemd-id128-sym \
5304 test-libsystemd-daemon-sym
5309 cppcheck --enable=all -q $(top_srcdir)
5311 # Used to extract compile flags for YCM.
5316 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u