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
50 # The following four libraries only exist for compatibility reasons,
51 # their version info should not be bumped anymore
52 LIBSYSTEMD_LOGIN_CURRENT=9
53 LIBSYSTEMD_LOGIN_REVISION=3
54 LIBSYSTEMD_LOGIN_AGE=9
56 LIBSYSTEMD_DAEMON_CURRENT=0
57 LIBSYSTEMD_DAEMON_REVISION=12
58 LIBSYSTEMD_DAEMON_AGE=0
60 LIBSYSTEMD_ID128_CURRENT=0
61 LIBSYSTEMD_ID128_REVISION=28
62 LIBSYSTEMD_ID128_AGE=0
64 LIBSYSTEMD_JOURNAL_CURRENT=11
65 LIBSYSTEMD_JOURNAL_REVISION=5
66 LIBSYSTEMD_JOURNAL_AGE=11
68 # Dirs of external packages
69 dbuspolicydir=@dbuspolicydir@
70 dbussessionservicedir=@dbussessionservicedir@
71 dbussystemservicedir=@dbussystemservicedir@
73 pamconfdir=@pamconfdir@
74 pkgconfigdatadir=$(datadir)/pkgconfig
75 pkgconfiglibdir=$(libdir)/pkgconfig
76 polkitpolicydir=$(datadir)/polkit-1/actions
77 bashcompletiondir=@bashcompletiondir@
78 zshcompletiondir=@zshcompletiondir@
79 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
80 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
81 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
82 varlogdir=$(localstatedir)/log
83 systemdstatedir=$(localstatedir)/lib/systemd
84 catalogstatedir=$(systemdstatedir)/catalog
86 # Our own, non-special dirs
87 pkgsysconfdir=$(sysconfdir)/systemd
88 userunitdir=$(prefix)/lib/systemd/user
89 userpresetdir=$(prefix)/lib/systemd/user-preset
90 tmpfilesdir=$(prefix)/lib/tmpfiles.d
91 sysctldir=$(prefix)/lib/sysctl.d
92 networkdir=$(rootprefix)/lib/systemd/network
93 pkgincludedir=$(includedir)/systemd
94 systemgeneratordir=$(rootlibexecdir)/system-generators
95 usergeneratordir=$(prefix)/lib/systemd/user-generators
96 systemshutdowndir=$(rootlibexecdir)/system-shutdown
97 systemsleepdir=$(rootlibexecdir)/system-sleep
98 systemunitdir=$(rootprefix)/lib/systemd/system
99 systempresetdir=$(rootprefix)/lib/systemd/system-preset
100 udevlibexecdir=$(rootprefix)/lib/udev
101 udevhomedir=$(udevlibexecdir)
102 udevrulesdir=$(udevlibexecdir)/rules.d
103 udevhwdbdir=$(udevlibexecdir)/hwdb.d
104 catalogdir=$(prefix)/lib/systemd/catalog
105 kernelinstalldir = $(prefix)/lib/kernel/install.d
106 ntpunitsdir=$(prefix)/lib/systemd/ntp-units.d
108 # And these are the special ones for /
109 rootprefix=@rootprefix@
110 rootbindir=$(rootprefix)/bin
111 rootlibexecdir=$(rootprefix)/lib/systemd
113 CLEANFILES = $(BUILT_SOURCES)
118 UNINSTALL_EXEC_HOOKS =
120 UNINSTALL_DATA_HOOKS =
121 DISTCLEAN_LOCAL_HOOKS =
129 polkitpolicy_in_in_files =
130 polkitpolicy_in_files =
132 dist_udevrules_DATA =
133 nodist_udevrules_DATA =
134 nodist_pkgsysconf_DATA =
135 dist_pkgsysconf_DATA =
137 dist_dbuspolicy_DATA =
138 dist_dbussystemservice_DATA =
144 noinst_PROGRAMS = $(manual_tests) $(tests)
150 udevlibexec_PROGRAMS =
152 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
153 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
154 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
157 -include $(top_builddir)/config.h \
158 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
159 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
160 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
161 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
162 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
163 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
164 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
165 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
166 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
167 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
168 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
169 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
170 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
171 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
172 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
173 -DROOTPREFIX=\"$(rootprefix)\" \
174 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
175 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
176 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
177 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
178 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
179 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
180 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
181 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
182 -DX_SERVER=\"$(bindir)/X\" \
183 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
184 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
185 -DQUOTACHECK=\"$(QUOTACHECK)\" \
186 -DKEXEC=\"$(KEXEC)\" \
187 -I $(top_srcdir)/src \
188 -I $(top_builddir)/src/shared \
189 -I $(top_srcdir)/src/shared \
190 -I $(top_srcdir)/src/network \
191 -I $(top_srcdir)/src/login \
192 -I $(top_srcdir)/src/journal \
193 -I $(top_srcdir)/src/timedate \
194 -I $(top_srcdir)/src/timesync \
195 -I $(top_srcdir)/src/resolve \
196 -I $(top_srcdir)/src/systemd \
197 -I $(top_builddir)/src/core \
198 -I $(top_srcdir)/src/core \
199 -I $(top_srcdir)/src/libudev \
200 -I $(top_srcdir)/src/udev \
201 -I $(top_srcdir)/src/udev/net \
202 -I $(top_builddir)/src/udev \
203 -I $(top_srcdir)/src/libsystemd/sd-bus \
204 -I $(top_srcdir)/src/libsystemd/sd-event \
205 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
206 -I $(top_srcdir)/src/libsystemd-network \
209 AM_CFLAGS = $(OUR_CFLAGS)
210 AM_LDFLAGS = $(OUR_LDFLAGS)
212 # ------------------------------------------------------------------------------
213 define move-to-rootlibdir
214 if test "$(libdir)" != "$(rootlibdir)"; then \
215 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
216 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
217 rm -f $(DESTDIR)$(libdir)/$$libname && \
218 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
219 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
225 RUNLEVEL1_TARGET_WANTS =
226 RUNLEVEL2_TARGET_WANTS =
227 RUNLEVEL3_TARGET_WANTS =
228 RUNLEVEL4_TARGET_WANTS =
229 RUNLEVEL5_TARGET_WANTS =
230 SHUTDOWN_TARGET_WANTS =
231 LOCAL_FS_TARGET_WANTS =
232 MULTI_USER_TARGET_WANTS =
233 SYSINIT_TARGET_WANTS =
234 SOCKETS_TARGET_WANTS =
235 BUSNAMES_TARGET_WANTS =
236 TIMERS_TARGET_WANTS =
237 USER_SOCKETS_TARGET_WANTS =
238 USER_BUSNAMES_TARGET_WANTS =
240 SYSTEM_UNIT_ALIASES =
244 install-target-wants-hook:
245 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
246 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
247 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
248 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
249 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
254 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
255 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
256 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
257 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
258 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
259 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
262 [ -z "$$what" ] || ( \
263 dir=$(DESTDIR)$$dir/$$wants.wants && \
264 $(MKDIR_P) -m 0755 $$dir && \
267 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
270 install-directories-hook:
271 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
273 install-aliases-hook:
274 set -- $(SYSTEM_UNIT_ALIASES) && \
275 dir=$(systemunitdir) && $(install-aliases)
276 set -- $(USER_UNIT_ALIASES) && \
277 dir=$(userunitdir) && $(install-relative-aliases)
278 set -- $(GENERAL_ALIASES) && \
279 dir= && $(install-relative-aliases)
281 define install-aliases
282 while [ -n "$$1" ]; do \
283 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
284 rm -f $(DESTDIR)$$dir/$$2 && \
285 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
286 shift 2 || exit $$?; \
290 define install-relative-aliases
291 while [ -n "$$1" ]; do \
292 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
293 rm -f $(DESTDIR)$$dir/$$2 && \
294 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
295 shift 2 || exit $$?; \
299 INSTALL_EXEC_HOOKS += \
300 install-target-wants-hook \
301 install-directories-hook \
304 # ------------------------------------------------------------------------------
305 AM_V_M4 = $(AM_V_M4_$(V))
306 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
307 AM_V_M4_0 = @echo " M4 " $@;
309 AM_V_XSLT = $(AM_V_XSLT_$(V))
310 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
311 AM_V_XSLT_0 = @echo " XSLT " $@;
313 AM_V_GPERF = $(AM_V_GPERF_$(V))
314 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
315 AM_V_GPERF_0 = @echo " GPERF " $@;
317 AM_V_LN = $(AM_V_LN_$(V))
318 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
319 AM_V_LN_0 = @echo " LN " $@;
321 AM_V_RM = $(AM_V_RM_$(V))
322 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
323 AM_V_RM_0 = @echo " RM " $@;
325 # ------------------------------------------------------------------------------
329 systemd-ask-password \
330 systemd-tty-ask-password-agent \
331 systemd-machine-id-setup
337 systemd-detect-virt \
343 src/kernel-install/kernel-install
345 dist_kernelinstall_SCRIPTS = \
346 src/kernel-install/50-depmod.install \
347 src/kernel-install/90-loaderentry.install
349 rootlibexec_PROGRAMS = \
351 systemd-cgroups-agent \
353 systemd-update-utmp \
357 systemd-reply-password \
363 systemd-socket-proxyd
365 systemgenerator_PROGRAMS = \
366 systemd-getty-generator \
367 systemd-fstab-generator \
368 systemd-system-update-generator
370 dist_bashcompletion_DATA = \
371 shell-completion/bash/busctl \
372 shell-completion/bash/journalctl \
373 shell-completion/bash/systemctl \
374 shell-completion/bash/systemd-analyze \
375 shell-completion/bash/systemd-cat \
376 shell-completion/bash/systemd-cgls \
377 shell-completion/bash/systemd-cgtop \
378 shell-completion/bash/systemd-delta \
379 shell-completion/bash/systemd-detect-virt \
380 shell-completion/bash/systemd-nspawn \
381 shell-completion/bash/systemd-run \
382 shell-completion/bash/udevadm \
383 shell-completion/bash/kernel-install
385 dist_zshcompletion_DATA = \
386 shell-completion/zsh/_systemctl \
387 shell-completion/zsh/_journalctl \
388 shell-completion/zsh/_udevadm \
389 shell-completion/zsh/_kernel-install \
390 shell-completion/zsh/_systemd-nspawn \
391 shell-completion/zsh/_systemd-analyze \
392 shell-completion/zsh/_systemd-run \
393 shell-completion/zsh/_sd_hosts_or_user_at_host \
394 shell-completion/zsh/_systemd-delta \
395 shell-completion/zsh/_systemd
398 sysctl.d/50-default.conf
400 dist_systemunit_DATA = \
401 units/graphical.target \
402 units/multi-user.target \
403 units/emergency.service \
404 units/emergency.target \
405 units/sysinit.target \
410 units/local-fs.target \
411 units/local-fs-pre.target \
412 units/initrd.target \
413 units/initrd-fs.target \
414 units/initrd-root-fs.target \
415 units/remote-fs.target \
416 units/remote-fs-pre.target \
417 units/network.target \
418 units/network-pre.target \
419 units/network-online.target \
420 units/nss-lookup.target \
421 units/nss-user-lookup.target \
422 units/hibernate.target \
423 units/hybrid-sleep.target \
424 units/poweroff.target \
425 units/reboot.target \
426 units/rescue.target \
427 units/rpcbind.target \
428 units/time-sync.target \
429 units/shutdown.target \
431 units/umount.target \
432 units/sigpwr.target \
434 units/sockets.target \
435 units/busnames.target \
436 units/timers.target \
438 units/suspend.target \
440 units/slices.target \
443 units/systemd-initctl.socket \
444 units/systemd-shutdownd.socket \
445 units/syslog.socket \
446 units/dev-hugepages.mount \
447 units/dev-mqueue.mount \
448 units/sys-kernel-config.mount \
449 units/sys-kernel-debug.mount \
450 units/sys-fs-fuse-connections.mount \
452 units/printer.target \
454 units/bluetooth.target \
455 units/smartcard.target \
456 units/systemd-ask-password-wall.path \
457 units/systemd-ask-password-console.path \
458 units/systemd-udevd-control.socket \
459 units/systemd-udevd-kernel.socket \
460 units/system-update.target \
461 units/initrd-switch-root.target
463 nodist_systemunit_DATA = \
464 units/getty@.service \
465 units/serial-getty@.service \
466 units/console-shell.service \
467 units/console-getty.service \
468 units/container-getty@.service \
469 units/systemd-initctl.service \
470 units/systemd-shutdownd.service \
471 units/systemd-remount-fs.service \
472 units/systemd-update-utmp.service \
473 units/systemd-update-utmp-runlevel.service \
474 units/systemd-ask-password-wall.service \
475 units/systemd-ask-password-console.service \
476 units/systemd-sysctl.service \
477 units/emergency.service \
478 units/rescue.service \
479 units/user@.service \
480 units/systemd-hibernate.service \
481 units/systemd-hybrid-sleep.service \
482 units/systemd-suspend.service \
483 units/systemd-halt.service \
484 units/systemd-poweroff.service \
485 units/systemd-reboot.service \
486 units/systemd-kexec.service \
487 units/systemd-fsck@.service \
488 units/systemd-fsck-root.service \
489 units/systemd-udevd.service \
490 units/systemd-udev-trigger.service \
491 units/systemd-udev-settle.service \
492 units/debug-shell.service \
493 units/initrd-parse-etc.service \
494 units/initrd-cleanup.service \
495 units/initrd-udevadm-cleanup-db.service \
496 units/initrd-switch-root.service \
497 units/systemd-nspawn@.service
499 dist_userunit_DATA = \
500 units/user/basic.target \
501 units/user/default.target \
502 units/user/exit.target
504 nodist_userunit_DATA = \
505 units/user/systemd-exit.service
508 units/getty@.service.m4 \
509 units/serial-getty@.service.m4 \
510 units/console-shell.service.m4.in \
511 units/console-getty.service.m4.in \
512 units/container-getty@.service.m4.in \
513 units/rescue.service.m4.in \
514 units/systemd-initctl.service.in \
515 units/systemd-shutdownd.service.in \
516 units/systemd-remount-fs.service.in \
517 units/systemd-update-utmp.service.in \
518 units/systemd-update-utmp-runlevel.service.in \
519 units/systemd-ask-password-wall.service.in \
520 units/systemd-ask-password-console.service.in \
521 units/systemd-sysctl.service.in \
522 units/emergency.service.in \
523 units/systemd-halt.service.in \
524 units/systemd-poweroff.service.in \
525 units/systemd-reboot.service.in \
526 units/systemd-kexec.service.in \
527 units/user/systemd-exit.service.in \
528 units/systemd-fsck@.service.in \
529 units/systemd-fsck-root.service.in \
530 units/user@.service.in \
531 units/debug-shell.service.in \
532 units/systemd-hibernate.service.in \
533 units/systemd-hybrid-sleep.service.in \
534 units/systemd-suspend.service.in \
535 units/quotaon.service.in \
536 units/initrd-parse-etc.service.in \
537 units/initrd-cleanup.service.in \
538 units/initrd-udevadm-cleanup-db.service.in \
539 units/initrd-switch-root.service.in \
540 units/systemd-nspawn@.service.in
543 units/console-shell.service.m4 \
544 units/console-getty.service.m4 \
545 units/container-getty@.service.m4 \
546 units/rescue.service.m4 \
547 units/user@.service.m4
550 nodist_systemunit_DATA += \
551 units/rc-local.service \
552 units/halt-local.service
554 systemgenerator_PROGRAMS += \
555 systemd-sysv-generator \
556 systemd-rc-local-generator
560 units/rc-local.service.in \
561 units/halt-local.service.in
563 # automake is broken and can't handle files with a dash in front
564 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
566 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
568 units-uninstall-hook:
569 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
571 INSTALL_DATA_HOOKS += units-install-hook
572 UNINSTALL_DATA_HOOKS += units-uninstall-hook
581 src/libsystemd/sd-bus/PORTING-DBUS1 \
582 src/libsystemd/sd-bus/DIFFERENCES \
583 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
585 @INTLTOOL_POLICY_RULE@
587 # ------------------------------------------------------------------------------
592 include Makefile-man.am
594 .PHONY: man update-man-list
595 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
598 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
600 ${XML_FILES:.xml=.html}
602 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
619 $(AM_V_at)$(MKDIR_P) $(dir $@)
620 $(AM_V_LN)$(LN_S) -f ../../man $@
629 man/index.html: man/systemd.index.html
630 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
638 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
639 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
640 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
642 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
643 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
644 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
645 @echo "Makefile-man.am has been regenerated"
647 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
648 $(AM_V_at)$(MKDIR_P) $(dir $@)
649 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
651 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
652 $(AM_V_at)$(MKDIR_P) $(dir $@)
653 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
656 man/systemd.index.xml \
658 man/systemd.directives.xml
661 man/systemd.index.xml \
662 man/systemd.directives.xml
673 tools/make-man-index.py \
674 tools/make-directive-index.py \
675 tools/make-man-rules.py \
678 # ------------------------------------------------------------------------------
679 noinst_LTLIBRARIES += \
682 libsystemd_shared_la_SOURCES = \
683 src/shared/linux/auto_dev-ioctl.h \
684 src/shared/linux/fanotify.h \
685 src/shared/ioprio.h \
686 src/shared/missing.h \
687 src/shared/initreq.h \
688 src/shared/securebits.h \
689 src/shared/special.h \
693 src/shared/sparse-endian.h \
694 src/shared/refcnt.h \
695 src/shared/udev-util.h \
696 src/shared/bus-errors.h \
697 src/shared/device-nodes.c \
698 src/shared/device-nodes.h \
703 src/shared/architecture.c \
704 src/shared/architecture.h \
705 src/shared/efivars.c \
706 src/shared/efivars.h \
707 src/shared/path-util.c \
708 src/shared/path-util.h \
709 src/shared/time-util.c \
710 src/shared/time-util.h \
711 src/shared/hashmap.c \
712 src/shared/hashmap.h \
713 src/shared/siphash24.c \
714 src/shared/siphash24.h \
721 src/shared/sleep-config.c \
722 src/shared/sleep-config.h \
725 src/shared/env-util.c \
726 src/shared/env-util.h \
727 src/shared/strbuf.c \
728 src/shared/strbuf.h \
729 src/shared/strxcpyx.c \
730 src/shared/strxcpyx.h \
731 src/shared/conf-parser.c \
732 src/shared/conf-parser.h \
735 src/shared/ratelimit.h \
736 src/shared/ratelimit.c \
737 src/shared/exit-status.c \
738 src/shared/exit-status.h \
741 src/shared/gunicode.c \
742 src/shared/gunicode.h \
745 src/shared/socket-util.c \
746 src/shared/socket-util.h \
747 src/shared/conf-files.c \
748 src/shared/conf-files.h \
749 src/shared/cgroup-util.c \
750 src/shared/cgroup-util.h \
751 src/shared/cgroup-show.c \
752 src/shared/cgroup-show.h \
753 src/shared/unit-name.c \
754 src/shared/unit-name.h \
755 src/shared/utmp-wtmp.c \
756 src/shared/utmp-wtmp.h \
757 src/shared/watchdog.c \
758 src/shared/watchdog.h \
759 src/shared/spawn-ask-password-agent.c \
760 src/shared/spawn-ask-password-agent.h \
761 src/shared/replace-var.c \
762 src/shared/replace-var.h \
763 src/shared/spawn-polkit-agent.c \
764 src/shared/spawn-polkit-agent.h \
765 src/shared/clock-util.c \
766 src/shared/clock-util.h \
767 src/shared/time-dst.c \
768 src/shared/time-dst.h \
769 src/shared/calendarspec.c \
770 src/shared/calendarspec.h \
771 src/shared/fileio.c \
772 src/shared/fileio.h \
773 src/shared/output-mode.h \
774 src/shared/MurmurHash2.c \
775 src/shared/MurmurHash2.h \
776 src/shared/acpi-fpdt.h \
777 src/shared/acpi-fpdt.c \
778 src/shared/boot-timestamps.h \
779 src/shared/boot-timestamps.c \
782 src/shared/smack-util.c \
783 src/shared/smack-util.h \
784 src/shared/apparmor-util.c \
785 src/shared/apparmor-util.h \
786 src/shared/ima-util.c \
787 src/shared/ima-util.h \
788 src/shared/ptyfwd.c \
789 src/shared/ptyfwd.h \
790 src/shared/errno-list.c \
791 src/shared/errno-list.h \
792 src/shared/af-list.c \
793 src/shared/af-list.h \
798 src/shared/condition-util.c \
799 src/shared/condition-util.h \
800 src/shared/bus-label.c \
801 src/shared/bus-label.h \
803 src/shared/generator.h \
804 src/shared/generator.c \
805 src/shared/clean-ipc.h \
806 src/shared/clean-ipc.c \
807 src/shared/login-shared.c \
808 src/shared/login-shared.h \
813 src/shared/eventfd-util.c \
814 src/shared/eventfd-util.h \
818 nodist_libsystemd_shared_la_SOURCES = \
819 src/shared/errno-from-name.h \
820 src/shared/errno-to-name.h \
821 src/shared/af-from-name.h \
822 src/shared/af-to-name.h
824 libsystemd_shared_la_CFLAGS = \
828 # ------------------------------------------------------------------------------
829 noinst_LTLIBRARIES += \
832 libsystemd_units_la_SOURCES = \
833 src/shared/install.c \
834 src/shared/install.h \
835 src/shared/install-printf.c \
836 src/shared/install-printf.h \
837 src/shared/path-lookup.c \
838 src/shared/path-lookup.h \
839 src/shared/specifier.c \
840 src/shared/specifier.h
842 # ------------------------------------------------------------------------------
843 noinst_LTLIBRARIES += \
846 libsystemd_label_la_SOURCES = \
847 src/shared/socket-label.c \
850 src/shared/selinux-util.c \
851 src/shared/selinux-util.h \
852 src/shared/mkdir-label.c \
853 src/shared/ask-password-api.c \
854 src/shared/ask-password-api.h \
855 src/shared/fileio-label.c \
856 src/shared/fileio-label.h \
857 src/shared/dev-setup.c \
858 src/shared/dev-setup.h
860 libsystemd_label_la_CFLAGS = \
864 libsystemd_label_la_LIBADD = \
867 # ------------------------------------------------------------------------------
870 noinst_LTLIBRARIES += \
871 libsystemd-seccomp.la
873 libsystemd_seccomp_la_SOURCES = \
874 src/shared/seccomp-util.h \
875 src/shared/seccomp-util.c
877 libsystemd_seccomp_la_CFLAGS = \
881 libsystemd_seccomp_la_LIBADD = \
885 # ------------------------------------------------------------------------------
886 noinst_LTLIBRARIES += \
889 libsystemd_logs_la_SOURCES = \
890 src/shared/logs-show.c \
891 src/shared/logs-show.h
893 # ------------------------------------------------------------------------------
894 noinst_LTLIBRARIES += \
895 libsystemd-capability.la
897 libsystemd_capability_la_SOURCES = \
898 src/shared/capability.c \
899 src/shared/capability.h
901 libsystemd_capability_la_CFLAGS = \
905 libsystemd_capability_la_LIBADD = \
908 # ------------------------------------------------------------------------------
910 noinst_LTLIBRARIES += \
913 libsystemd_acl_la_SOURCES = \
914 src/shared/acl-util.c \
915 src/shared/acl-util.h
917 libsystemd_acl_la_CFLAGS = \
921 libsystemd_acl_la_LIBADD = \
925 # ------------------------------------------------------------------------------
926 noinst_LTLIBRARIES += \
929 libsystemd_core_la_SOURCES = \
932 src/core/unit-printf.c \
933 src/core/unit-printf.h \
938 src/core/transaction.c \
939 src/core/transaction.h \
940 src/core/load-fragment.c \
941 src/core/load-fragment.h \
950 src/core/snapshot.c \
951 src/core/snapshot.h \
956 src/core/automount.c \
957 src/core/automount.h \
968 src/core/load-dropin.c \
969 src/core/load-dropin.h \
976 src/core/dbus-manager.c \
977 src/core/dbus-manager.h \
978 src/core/dbus-unit.c \
979 src/core/dbus-unit.h \
980 src/core/dbus-job.c \
981 src/core/dbus-job.h \
982 src/core/dbus-service.c \
983 src/core/dbus-service.h \
984 src/core/dbus-socket.c \
985 src/core/dbus-socket.h \
986 src/core/dbus-busname.c \
987 src/core/dbus-busname.h \
988 src/core/dbus-target.c \
989 src/core/dbus-target.h \
990 src/core/dbus-snapshot.c \
991 src/core/dbus-snapshot.h \
992 src/core/dbus-device.c \
993 src/core/dbus-device.h \
994 src/core/dbus-mount.c \
995 src/core/dbus-mount.h \
996 src/core/dbus-automount.c \
997 src/core/dbus-automount.h \
998 src/core/dbus-swap.c \
999 src/core/dbus-swap.h \
1000 src/core/dbus-timer.c \
1001 src/core/dbus-timer.h \
1002 src/core/dbus-path.c \
1003 src/core/dbus-path.h \
1004 src/core/dbus-slice.c \
1005 src/core/dbus-slice.h \
1006 src/core/dbus-scope.c \
1007 src/core/dbus-scope.h \
1008 src/core/dbus-execute.c \
1009 src/core/dbus-execute.h \
1010 src/core/dbus-kill.c \
1011 src/core/dbus-kill.h \
1012 src/core/dbus-cgroup.c \
1013 src/core/dbus-cgroup.h \
1016 src/core/selinux-access.c \
1017 src/core/selinux-access.h \
1018 src/core/selinux-setup.c \
1019 src/core/selinux-setup.h \
1020 src/core/smack-setup.c \
1021 src/core/smack-setup.h \
1022 src/core/ima-setup.c \
1023 src/core/ima-setup.h \
1024 src/core/locale-setup.h \
1025 src/core/locale-setup.c \
1026 src/core/hostname-setup.c \
1027 src/core/hostname-setup.h \
1028 src/core/machine-id-setup.c \
1029 src/core/machine-id-setup.h \
1030 src/core/mount-setup.c \
1031 src/core/mount-setup.h \
1032 src/core/loopback-setup.h \
1033 src/core/loopback-setup.c \
1034 src/core/condition.c \
1035 src/core/condition.h \
1036 src/core/namespace.c \
1037 src/core/namespace.h \
1039 src/core/sysfs-show.h \
1040 src/core/switch-root.h \
1041 src/core/switch-root.c \
1042 src/core/killall.h \
1043 src/core/killall.c \
1044 src/core/audit-fd.c \
1045 src/core/audit-fd.h \
1046 src/core/show-status.c \
1047 src/core/show-status.h
1050 libsystemd_core_la_SOURCES += \
1051 src/core/kmod-setup.c \
1052 src/core/kmod-setup.h
1055 nodist_libsystemd_core_la_SOURCES = \
1056 src/core/load-fragment-gperf.c \
1057 src/core/load-fragment-gperf-nulstr.c
1059 libsystemd_core_la_CFLAGS = \
1065 $(APPARMOR_CFLAGS) \
1069 libsystemd_core_la_LIBADD = \
1070 libsystemd-capability.la \
1071 libsystemd-units.la \
1072 libsystemd-label.la \
1073 libudev-internal.la \
1074 libsystemd-shared.la \
1075 libsystemd-internal.la \
1084 libsystemd_core_la_LIBADD += \
1085 libsystemd-seccomp.la
1088 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1089 $(AM_V_at)$(MKDIR_P) $(dir $@)
1090 $(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 ";" }' < $< > $@
1093 src/core/load-fragment-gperf.gperf.m4
1096 src/core/load-fragment-gperf.gperf \
1097 src/core/load-fragment-gperf.c \
1098 src/core/load-fragment-gperf-nulstr.c \
1099 src/shared/errno-list.txt \
1100 src/shared/errno-from-name.gperf \
1101 src/shared/af-list.txt \
1102 src/shared/af-from-name.gperf
1105 src/shared/errno-from-name.h \
1106 src/shared/errno-to-name.h \
1107 src/shared/af-from-name.h \
1108 src/shared/af-to-name.h
1110 src/shared/errno-list.txt:
1111 $(AM_V_at)$(MKDIR_P) $(dir $@)
1112 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1114 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1115 $(AM_V_at)$(MKDIR_P) $(dir $@)
1116 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1118 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1119 $(AM_V_at)$(MKDIR_P) $(dir $@)
1120 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1122 src/shared/errno-to-name.h: src/shared/errno-list.txt
1123 $(AM_V_at)$(MKDIR_P) $(dir $@)
1124 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1126 src/shared/af-list.txt:
1127 $(AM_V_at)$(MKDIR_P) $(dir $@)
1128 $(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; }' > $@
1130 src/shared/af-from-name.gperf: src/shared/af-list.txt
1131 $(AM_V_at)$(MKDIR_P) $(dir $@)
1132 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1134 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1135 $(AM_V_at)$(MKDIR_P) $(dir $@)
1136 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1138 src/shared/af-to-name.h: src/shared/af-list.txt
1139 $(AM_V_at)$(MKDIR_P) $(dir $@)
1140 $(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 "};"}' < $< > $@
1142 # ------------------------------------------------------------------------------
1151 libsystemd-core.la \
1154 dist_pkgsysconf_DATA += \
1155 src/core/system.conf \
1158 dist_dbuspolicy_DATA += \
1159 src/core/org.freedesktop.systemd1.conf
1161 dist_dbussystemservice_DATA += \
1162 src/core/org.freedesktop.systemd1.service
1164 polkitpolicy_in_in_files += \
1165 src/core/org.freedesktop.systemd1.policy.in.in
1167 pkgconfigdata_DATA = \
1170 nodist_rpmmacros_DATA = \
1171 src/core/macros.systemd
1174 src/core/systemd.pc.in \
1175 src/core/macros.systemd.in
1178 src/core/macros.systemd \
1179 src/core/org.freedesktop.systemd1.policy.in
1181 # ------------------------------------------------------------------------------
1220 test-strip-tab-ansi \
1233 test/sched_idle_bad.service \
1234 test/sched_idle_ok.service \
1235 test/sched_rr_bad.service \
1236 test/sched_rr_ok.service \
1237 test/sched_rr_change.service \
1239 test/daughter.service \
1243 src/test/test-helper.h
1245 test_device_nodes_SOURCES = \
1246 src/test/test-device-nodes.c
1248 test_device_nodes_LDADD = \
1249 libsystemd-shared.la
1251 test_engine_SOURCES = \
1252 src/test/test-engine.c
1254 test_engine_CFLAGS = \
1258 test_engine_LDADD = \
1259 libsystemd-core.la \
1262 test_job_type_SOURCES = \
1263 src/test/test-job-type.c
1265 test_job_type_CFLAGS = \
1269 test_job_type_LDADD = \
1270 libsystemd-core.la \
1283 test_loopback_SOURCES = \
1284 src/test/test-loopback.c
1286 test_loopback_LDADD = \
1289 test_hostname_SOURCES = \
1290 src/test/test-hostname.c
1292 test_hostname_LDADD = \
1299 test_boot_timestamp_SOURCES = \
1300 src/test/test-boot-timestamps.c
1302 test_boot_timestamp_LDADD = \
1303 libsystemd-shared.la
1306 test_unit_name_SOURCES = \
1307 src/test/test-unit-name.c
1309 test_unit_name_CFLAGS = \
1313 test_unit_name_LDADD = \
1314 libsystemd-core.la \
1317 test_unit_file_SOURCES = \
1318 src/test/test-unit-file.c
1320 test_unit_file_CFLAGS = \
1324 test_unit_file_LDADD = \
1325 libsystemd-core.la \
1328 test_utf8_SOURCES = \
1329 src/test/test-utf8.c
1332 libsystemd-shared.la
1334 test_util_SOURCES = \
1335 src/test/test-util.c
1340 test_ring_SOURCES = \
1341 src/test/test-ring.c
1346 test_tmpfiles_SOURCES = \
1347 src/test/test-tmpfiles.c
1349 test_tmpfiles_LDADD = \
1350 libsystemd-shared.la
1352 test_namespace_SOURCES = \
1353 src/test/test-namespace.c
1355 test_namespace_LDADD = \
1358 test_hashmap_SOURCES = \
1359 src/test/test-hashmap.c
1361 test_hashmap_LDADD = \
1364 test_xml_SOURCES = \
1368 libsystemd-shared.la
1370 test_list_SOURCES = \
1371 src/test/test-list.c
1376 test_tables_SOURCES = \
1377 src/test/test-tables.c \
1378 src/shared/test-tables.h
1380 test_tables_CFLAGS = \
1384 test_tables_LDADD = \
1385 libsystemd-logs.la \
1386 libsystemd-journal-internal.la \
1387 libsystemd-core.la \
1390 test_prioq_SOURCES = \
1391 src/test/test-prioq.c
1393 test_prioq_LDADD = \
1396 test_fileio_SOURCES = \
1397 src/test/test-fileio.c
1399 test_fileio_LDADD = \
1402 test_time_SOURCES = \
1403 src/test/test-time.c
1408 test_architecture_SOURCES = \
1409 src/test/test-architecture.c
1411 test_architecture_LDADD = \
1412 libsystemd-shared.la
1414 test_log_SOURCES = \
1420 test_ipcrm_SOURCES = \
1421 src/test/test-ipcrm.c
1423 test_ipcrm_LDADD = \
1424 libsystemd-shared.la \
1427 test_rtnl_manual_SOURCES = \
1428 src/test/test-rtnl-manual.c
1430 test_rtnl_manual_CFLAGS = \
1434 test_rtnl_manual_LDADD = \
1435 libsystemd-internal.la \
1436 libsystemd-shared.la \
1439 test_ellipsize_SOURCES = \
1440 src/test/test-ellipsize.c
1442 test_ellipsize_LDADD = \
1445 test_date_SOURCES = \
1446 src/test/test-date.c
1451 test_sleep_SOURCES = \
1452 src/test/test-sleep.c
1454 test_sleep_LDADD = \
1457 test_replace_var_SOURCES = \
1458 src/test/test-replace-var.c
1460 test_replace_var_LDADD = \
1461 libsystemd-shared.la
1463 test_calendarspec_SOURCES = \
1464 src/test/test-calendarspec.c
1466 test_calendarspec_LDADD = \
1467 libsystemd-shared.la
1469 test_strip_tab_ansi_SOURCES = \
1470 src/test/test-strip-tab-ansi.c
1472 test_strip_tab_ansi_LDADD = \
1473 libsystemd-shared.la
1475 test_daemon_SOURCES = \
1476 src/test/test-daemon.c
1478 test_daemon_LDADD = \
1479 libsystemd-internal.la \
1480 libsystemd-shared.la
1482 test_cgroup_SOURCES = \
1483 src/test/test-cgroup.c
1485 test_cgroup_LDADD = \
1486 libsystemd-label.la \
1487 libsystemd-shared.la \
1488 libsystemd-internal.la
1490 test_cgroup_mask_SOURCES = \
1491 src/test/test-cgroup-mask.c
1493 test_cgroup_mask_CPPFLAGS = \
1495 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1497 test_cgroup_mask_CFLAGS = \
1501 test_cgroup_mask_LDADD = \
1502 libsystemd-core.la \
1505 test_cgroup_util_SOURCES = \
1506 src/test/test-cgroup-util.c
1508 test_cgroup_util_LDADD = \
1509 libsystemd-label.la \
1510 libsystemd-internal.la \
1511 libsystemd-shared.la
1513 test_env_replace_SOURCES = \
1514 src/test/test-env-replace.c
1516 test_env_replace_LDADD = \
1517 libsystemd-shared.la
1519 test_strbuf_SOURCES = \
1520 src/test/test-strbuf.c
1522 test_strbuf_LDADD = \
1523 libsystemd-shared.la
1525 test_strv_SOURCES = \
1526 src/test/test-strv.c
1529 libsystemd-units.la \
1530 libsystemd-internal.la \
1531 libsystemd-shared.la
1533 test_path_util_SOURCES = \
1534 src/test/test-path-util.c
1536 test_path_util_LDADD = \
1537 libsystemd-shared.la
1539 test_strxcpyx_SOURCES = \
1540 src/test/test-strxcpyx.c
1542 test_strxcpyx_LDADD = \
1543 libsystemd-shared.la
1545 test_install_SOURCES = \
1546 src/test/test-install.c
1548 test_install_LDADD = \
1549 libsystemd-units.la \
1550 libsystemd-label.la \
1551 libsystemd-shared.la \
1552 libsystemd-internal.la
1554 test_watchdog_SOURCES = \
1555 src/test/test-watchdog.c
1557 test_watchdog_LDADD = \
1558 libsystemd-shared.la
1560 test_sched_prio_SOURCES = \
1561 src/test/test-sched-prio.c
1563 test_sched_prio_CPPFLAGS = \
1565 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1567 test_sched_prio_CFLAGS = \
1571 test_sched_prio_LDADD = \
1572 libsystemd-core.la \
1575 # ------------------------------------------------------------------------------
1576 ## .PHONY so it always rebuilds it
1577 .PHONY: coverage lcov-run lcov-report coverage-sync
1579 # run lcov from scratch, always
1584 coverage_dir = coverage
1585 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1588 # reset run coverage tests
1590 @rm -rf $(coverage_dir)
1591 lcov $(coverage_opts) --zerocounters
1594 # generate report based on current coverage data
1596 $(MKDIR_P) $(coverage_dir)
1597 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1598 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1599 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1600 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1602 # lcov doesn't work properly with vpath builds, make sure that bad
1603 # output is not uploaded by mistake.
1604 coverage-sync: coverage
1605 test "$(builddir)" = "$(srcdir)"
1606 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1609 lcov-run lcov-report:
1610 echo "Need to reconfigure with --enable-coverage"
1613 # ------------------------------------------------------------------------------
1614 systemd_analyze_SOURCES = \
1615 src/analyze/analyze.c
1617 systemd_analyze_LDADD = \
1618 libsystemd-internal.la \
1619 libsystemd-shared.la
1621 # ------------------------------------------------------------------------------
1622 systemd_initctl_SOURCES = \
1623 src/initctl/initctl.c
1625 systemd_initctl_LDADD = \
1626 libsystemd-internal.la \
1627 libsystemd-shared.la
1629 # ------------------------------------------------------------------------------
1630 systemd_update_utmp_SOURCES = \
1631 src/update-utmp/update-utmp.c
1633 systemd_update_utmp_CFLAGS = \
1637 systemd_update_utmp_LDADD = \
1638 libsystemd-internal.la \
1639 libsystemd-shared.la \
1642 # ------------------------------------------------------------------------------
1643 systemd_shutdownd_SOURCES = \
1644 src/shutdownd/shutdownd.c
1646 systemd_shutdownd_LDADD = \
1647 libsystemd-label.la \
1648 libsystemd-internal.la \
1649 libsystemd-shared.la
1652 src/systemd/sd-shutdown.h
1654 # ------------------------------------------------------------------------------
1655 systemd_shutdown_SOURCES = \
1658 src/core/shutdown.c \
1659 src/core/mount-setup.c \
1660 src/core/mount-setup.h \
1661 src/core/killall.h \
1664 systemd_shutdown_LDADD = \
1665 libsystemd-label.la \
1666 libudev-internal.la \
1667 libsystemd-shared.la
1669 # ------------------------------------------------------------------------------
1671 systemd_modules_load_SOURCES = \
1672 src/modules-load/modules-load.c
1674 systemd_modules_load_CFLAGS = \
1678 systemd_modules_load_LDADD = \
1679 libsystemd-shared.la \
1682 rootlibexec_PROGRAMS += \
1683 systemd-modules-load
1685 nodist_systemunit_DATA += \
1686 units/systemd-modules-load.service
1688 SYSINIT_TARGET_WANTS += \
1689 systemd-modules-load.service
1692 nodist_systemunit_DATA += \
1693 units/kmod-static-nodes.service
1695 SYSINIT_TARGET_WANTS += \
1696 kmod-static-nodes.service
1701 units/systemd-modules-load.service.in \
1702 units/kmod-static-nodes.service.in
1704 # ------------------------------------------------------------------------------
1706 systemd_tmpfiles_SOURCES = \
1707 src/tmpfiles/tmpfiles.c
1709 systemd_tmpfiles_LDADD = \
1710 libsystemd-units.la \
1711 libsystemd-label.la \
1712 libsystemd-capability.la \
1713 libsystemd-internal.la \
1714 libsystemd-shared.la
1716 rootbin_PROGRAMS += \
1719 dist_systemunit_DATA += \
1720 units/systemd-tmpfiles-clean.timer
1722 nodist_systemunit_DATA += \
1723 units/systemd-tmpfiles-setup-dev.service \
1724 units/systemd-tmpfiles-setup.service \
1725 units/systemd-tmpfiles-clean.service
1727 dist_tmpfiles_DATA = \
1728 tmpfiles.d/systemd.conf \
1729 tmpfiles.d/systemd-nologin.conf \
1730 tmpfiles.d/tmp.conf \
1731 tmpfiles.d/x11.conf \
1735 dist_tmpfiles_DATA += \
1736 tmpfiles.d/legacy.conf
1739 SYSINIT_TARGET_WANTS += \
1740 systemd-tmpfiles-setup-dev.service \
1741 systemd-tmpfiles-setup.service
1743 dist_zshcompletion_DATA += \
1744 shell-completion/zsh/_systemd-tmpfiles
1746 TIMERS_TARGET_WANTS += \
1747 systemd-tmpfiles-clean.timer
1751 $(sysconfdir)/tmpfiles.d
1755 units/systemd-tmpfiles-setup-dev.service.in \
1756 units/systemd-tmpfiles-setup.service.in \
1757 units/systemd-tmpfiles-clean.service.in
1759 # ------------------------------------------------------------------------------
1760 systemd_machine_id_setup_SOURCES = \
1761 src/machine-id-setup/machine-id-setup-main.c \
1762 src/core/machine-id-setup.c \
1763 src/core/machine-id-setup.h
1765 systemd_machine_id_setup_LDADD = \
1766 libsystemd-label.la \
1767 libsystemd-internal.la \
1768 libsystemd-shared.la
1770 # ------------------------------------------------------------------------------
1771 systemd_sysctl_SOURCES = \
1774 systemd_sysctl_LDADD = \
1775 libsystemd-shared.la
1777 # ------------------------------------------------------------------------------
1778 systemd_sleep_SOURCES = \
1781 systemd_sleep_LDADD = \
1782 libsystemd-shared.la
1784 # ------------------------------------------------------------------------------
1785 systemd_fsck_SOURCES = \
1788 systemd_fsck_LDADD = \
1789 libsystemd-internal.la \
1790 libudev-internal.la \
1791 libsystemd-shared.la
1793 # ------------------------------------------------------------------------------
1794 systemd_ac_power_SOURCES = \
1795 src/ac-power/ac-power.c
1797 systemd_ac_power_LDADD = \
1798 libudev-internal.la \
1799 libsystemd-shared.la
1801 # ------------------------------------------------------------------------------
1802 systemd_detect_virt_SOURCES = \
1803 src/detect-virt/detect-virt.c
1805 systemd_detect_virt_LDADD = \
1806 libsystemd-shared.la
1808 INSTALL_EXEC_HOOKS += \
1809 systemd-detect-virt-install-hook
1811 # ------------------------------------------------------------------------------
1812 systemd_delta_SOURCES = \
1815 systemd_delta_LDADD = \
1816 libsystemd-shared.la
1818 # ------------------------------------------------------------------------------
1819 systemd_getty_generator_SOURCES = \
1820 src/getty-generator/getty-generator.c
1822 systemd_getty_generator_LDADD = \
1823 libsystemd-label.la \
1824 libsystemd-shared.la
1826 # ------------------------------------------------------------------------------
1827 systemd_fstab_generator_SOURCES = \
1828 src/fstab-generator/fstab-generator.c \
1829 src/core/mount-setup.c
1831 systemd_fstab_generator_LDADD = \
1832 libsystemd-label.la \
1833 libsystemd-shared.la
1835 # ------------------------------------------------------------------------------
1836 systemd_system_update_generator_SOURCES = \
1837 src/system-update-generator/system-update-generator.c
1839 systemd_system_update_generator_LDADD = \
1840 libsystemd-label.la \
1841 libsystemd-shared.la
1844 # ------------------------------------------------------------------------------
1845 systemgenerator_PROGRAMS += \
1846 systemd-efi-boot-generator
1848 systemd_efi_boot_generator_SOURCES = \
1849 src/efi-boot-generator/efi-boot-generator.c
1851 systemd_efi_boot_generator_LDADD = \
1852 libsystemd-label.la \
1853 libsystemd-shared.la
1855 # ------------------------------------------------------------------------------
1858 src/boot/boot-loader.h \
1859 src/boot/bootctl.c \
1860 src/boot/boot-loader.c \
1864 libsystemd-shared.la \
1865 libsystemd-internal.la
1870 dist_bashcompletion_DATA += \
1871 shell-completion/bash/bootctl
1873 dist_zshcompletion_DATA += \
1874 shell-completion/zsh/_bootctl
1878 # ------------------------------------------------------------------------------
1880 systemgenerator_PROGRAMS += \
1881 systemd-gpt-auto-generator
1883 systemd_gpt_auto_generator_SOURCES = \
1884 src/gpt-auto-generator/gpt-auto-generator.c \
1885 src/shared/blkid-util.h
1887 systemd_gpt_auto_generator_LDADD = \
1888 libsystemd-label.la \
1889 libsystemd-internal.la \
1890 libudev-internal.la \
1891 libsystemd-shared.la \
1894 systemd_gpt_auto_generator_CFLAGS = \
1899 # ------------------------------------------------------------------------------
1901 systemgenerator_PROGRAMS += \
1902 systemd-dbus1-generator
1904 systemd_dbus1_generator_SOURCES = \
1905 src/dbus1-generator/dbus1-generator.c
1907 systemd_dbus1_generator_LDADD = \
1908 libsystemd-label.la \
1909 libsystemd-shared.la \
1910 libsystemd-internal.la
1912 dbus1-generator-install-hook:
1913 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
1914 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1915 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1917 dbus1-generator-uninstall-hook:
1918 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1920 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1921 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1924 # ------------------------------------------------------------------------------
1925 systemd_sysv_generator_SOURCES = \
1926 src/sysv-generator/sysv-generator.c
1928 systemd_sysv_generator_LDADD = \
1929 libsystemd-core.la \
1930 libsystemd-label.la \
1931 libsystemd-shared.la
1933 # ------------------------------------------------------------------------------
1934 systemd_rc_local_generator_SOURCES = \
1935 src/rc-local-generator/rc-local-generator.c
1937 systemd_rc_local_generator_LDADD = \
1938 libsystemd-label.la \
1939 libsystemd-shared.la
1941 # ------------------------------------------------------------------------------
1942 systemd_remount_fs_SOURCES = \
1943 src/remount-fs/remount-fs.c \
1944 src/core/mount-setup.c \
1945 src/core/mount-setup.h
1947 systemd_remount_fs_LDADD = \
1948 libsystemd-label.la \
1949 libsystemd-shared.la
1951 # ------------------------------------------------------------------------------
1952 systemd_cgroups_agent_SOURCES = \
1953 src/cgroups-agent/cgroups-agent.c
1955 systemd_cgroups_agent_LDADD = \
1956 libsystemd-internal.la \
1957 libsystemd-shared.la
1959 # ------------------------------------------------------------------------------
1960 systemctl_SOURCES = \
1961 src/systemctl/systemctl.c
1964 libsystemd-units.la \
1965 libsystemd-label.la \
1966 libsystemd-internal.la \
1967 libsystemd-logs.la \
1968 libsystemd-journal-internal.la \
1969 libsystemd-shared.la
1971 # ------------------------------------------------------------------------------
1972 systemd_notify_SOURCES = \
1973 src/notify/notify.c \
1974 src/readahead/sd-readahead.c
1976 systemd_notify_LDADD = \
1977 libsystemd-internal.la \
1978 libsystemd-shared.la
1980 # ------------------------------------------------------------------------------
1981 systemd_ask_password_SOURCES = \
1982 src/ask-password/ask-password.c
1984 systemd_ask_password_LDADD = \
1985 libsystemd-label.la \
1986 libsystemd-shared.la
1988 # ------------------------------------------------------------------------------
1989 systemd_reply_password_SOURCES = \
1990 src/reply-password/reply-password.c
1992 systemd_reply_password_LDADD = \
1993 libsystemd-shared.la
1995 # ------------------------------------------------------------------------------
1996 systemd_cgls_SOURCES = \
1999 systemd_cgls_LDADD = \
2000 libsystemd-internal.la \
2001 libsystemd-shared.la
2003 # ------------------------------------------------------------------------------
2004 systemd_cgtop_SOURCES = \
2007 systemd_cgtop_LDADD = \
2008 libsystemd-shared.la
2010 # ------------------------------------------------------------------------------
2011 systemd_nspawn_SOURCES = \
2012 src/nspawn/nspawn.c \
2013 src/core/mount-setup.c \
2014 src/core/mount-setup.h \
2015 src/core/loopback-setup.c \
2016 src/core/loopback-setup.h
2018 systemd_nspawn_CFLAGS = \
2023 systemd_nspawn_LDADD = \
2024 libsystemd-label.la \
2025 libsystemd-capability.la \
2026 libsystemd-internal.la \
2027 libudev-internal.la \
2028 libsystemd-shared.la \
2032 systemd_nspawn_LDADD += \
2033 libsystemd-seccomp.la \
2037 # ------------------------------------------------------------------------------
2038 systemd_run_SOURCES = \
2041 systemd_run_LDADD = \
2042 libsystemd-label.la \
2043 libsystemd-capability.la \
2044 libsystemd-internal.la \
2045 libsystemd-shared.la
2047 # ------------------------------------------------------------------------------
2048 systemd_bus_proxyd_SOURCES = \
2049 src/bus-proxyd/bus-proxyd.c \
2050 src/bus-proxyd/bus-policy.c \
2051 src/bus-proxyd/bus-policy.h
2053 systemd_bus_proxyd_LDADD = \
2054 libsystemd-capability.la \
2055 libsystemd-internal.la \
2056 libsystemd-shared.la
2058 bus-proxyd-install-hook:
2059 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2060 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2061 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2063 bus-proxyd-uninstall-hook:
2064 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2066 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2067 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2070 nodist_systemunit_DATA += \
2071 units/systemd-bus-proxyd@.service
2073 dist_systemunit_DATA += \
2074 units/systemd-bus-proxyd.socket
2076 dist_userunit_DATA += \
2077 units/user/systemd-bus-proxyd.socket \
2078 units/user/systemd-bus-proxyd@.service
2082 units/systemd-bus-proxyd@.service.in
2084 # ------------------------------------------------------------------------------
2085 systemd_tty_ask_password_agent_SOURCES = \
2086 src/tty-ask-password-agent/tty-ask-password-agent.c
2088 systemd_tty_ask_password_agent_LDADD = \
2089 libsystemd-label.la \
2090 libsystemd-shared.la
2092 # ------------------------------------------------------------------------------
2093 libsystemd_internal_la_SOURCES = \
2094 src/systemd/sd-bus.h \
2095 src/systemd/sd-bus-protocol.h \
2096 src/systemd/sd-bus-vtable.h \
2097 src/systemd/sd-memfd.h \
2098 src/systemd/sd-utf8.h \
2099 src/systemd/sd-event.h \
2100 src/systemd/sd-rtnl.h \
2101 src/systemd/sd-resolve.h \
2102 src/systemd/sd-login.h \
2103 src/systemd/sd-id128.h \
2104 src/systemd/sd-daemon.h \
2105 src/libsystemd/sd-bus/sd-bus.c \
2106 src/libsystemd/sd-bus/bus-control.c \
2107 src/libsystemd/sd-bus/bus-control.h \
2108 src/libsystemd/sd-bus/bus-error.c \
2109 src/libsystemd/sd-bus/bus-error.h \
2110 src/libsystemd/sd-bus/bus-internal.c \
2111 src/libsystemd/sd-bus/bus-internal.h \
2112 src/libsystemd/sd-bus/bus-socket.c \
2113 src/libsystemd/sd-bus/bus-socket.h \
2114 src/libsystemd/sd-bus/bus-kernel.c \
2115 src/libsystemd/sd-bus/bus-kernel.h \
2116 src/libsystemd/sd-bus/bus-container.c \
2117 src/libsystemd/sd-bus/bus-container.h \
2118 src/libsystemd/sd-bus/bus-message.c \
2119 src/libsystemd/sd-bus/bus-message.h \
2120 src/libsystemd/sd-bus/bus-creds.c \
2121 src/libsystemd/sd-bus/bus-creds.h \
2122 src/libsystemd/sd-bus/bus-signature.c \
2123 src/libsystemd/sd-bus/bus-signature.h \
2124 src/libsystemd/sd-bus/bus-type.c \
2125 src/libsystemd/sd-bus/bus-type.h \
2126 src/libsystemd/sd-bus/bus-match.c \
2127 src/libsystemd/sd-bus/bus-match.h \
2128 src/libsystemd/sd-bus/bus-bloom.c \
2129 src/libsystemd/sd-bus/bus-bloom.h \
2130 src/libsystemd/sd-bus/bus-introspect.c \
2131 src/libsystemd/sd-bus/bus-introspect.h \
2132 src/libsystemd/sd-bus/bus-objects.c \
2133 src/libsystemd/sd-bus/bus-objects.h \
2134 src/libsystemd/sd-bus/bus-gvariant.c \
2135 src/libsystemd/sd-bus/bus-gvariant.h \
2136 src/libsystemd/sd-bus/bus-convenience.c \
2137 src/libsystemd/sd-bus/bus-track.c \
2138 src/libsystemd/sd-bus/bus-track.h \
2139 src/libsystemd/sd-bus/bus-util.c \
2140 src/libsystemd/sd-bus/bus-util.h \
2141 src/libsystemd/sd-bus/bus-slot.c \
2142 src/libsystemd/sd-bus/bus-slot.h \
2143 src/libsystemd/sd-bus/bus-protocol.h \
2144 src/libsystemd/sd-bus/kdbus.h \
2145 src/libsystemd/sd-bus/sd-memfd.c \
2146 src/libsystemd/sd-utf8/sd-utf8.c \
2147 src/libsystemd/sd-event/sd-event.c \
2148 src/libsystemd/sd-event/event-util.h \
2149 src/libsystemd/sd-rtnl/sd-rtnl.c \
2150 src/libsystemd/sd-rtnl/rtnl-internal.h \
2151 src/libsystemd/sd-rtnl/rtnl-message.c \
2152 src/libsystemd/sd-rtnl/rtnl-types.h \
2153 src/libsystemd/sd-rtnl/rtnl-types.c \
2154 src/libsystemd/sd-rtnl/rtnl-util.h \
2155 src/libsystemd/sd-rtnl/rtnl-util.c \
2156 src/libsystemd/sd-id128/sd-id128.c \
2157 src/libsystemd/sd-daemon/sd-daemon.c \
2158 src/libsystemd/sd-login/sd-login.c
2160 nodist_libsystemd_internal_la_SOURCES = \
2161 src/libsystemd/libsystemd.sym \
2162 src/libsystemd/sd-bus/bus-error-mapping.c
2164 libsystemd_internal_la_CFLAGS = \
2168 libsystemd_internal_la_LIBADD = \
2171 libsystemd_resolve_la_SOURCES = \
2172 src/libsystemd/sd-resolve/sd-resolve.c \
2173 src/libsystemd/sd-resolve/resolve-util.h
2175 libsystemd_resolve_la_CFLAGS = \
2179 libsystemd_resolve_la_LIBADD = \
2182 noinst_LTLIBRARIES += \
2183 libsystemd-internal.la \
2184 libsystemd-resolve.la
2186 libsystemd_dump_la_SOURCES = \
2187 src/libsystemd/sd-bus/bus-dump.c \
2188 src/libsystemd/sd-bus/bus-dump.h
2190 libsystemd_dump_la_CFLAGS = \
2194 noinst_LTLIBRARIES += \
2198 src/libsystemd/libsystemd.sym.m4 \
2199 src/libsystemd/libsystemd.pc.in \
2200 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2201 src/libsystemd/sd-bus/DIFFERENCES \
2202 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2205 src/libsystemd/libsystemd.sym \
2206 src/libsystemd/sd-bus/bus-error-mapping.c
2209 src/libsystemd/libsystemd.sym
2211 libsystemd_la_SOURCES = \
2212 $(libsystemd_internal_la_SOURCES) \
2213 $(libsystemd_resolve_la_SOURCES) \
2214 $(libsystemd_journal_internal_la_SOURCES)
2216 nodist_libsystemd_la_SOURCES = \
2217 $(nodist_libsystemd_internal_la_SOURCES)
2219 libsystemd_la_CFLAGS = \
2220 $(libsystemd_internal_la_CFLAGS) \
2221 $(libsystemd_resolve_la_CFLAGS) \
2222 $(libsystemd_journal_internal_la_CFLAGS)
2224 libsystemd_la_LDFLAGS = \
2226 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2227 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2229 libsystemd_la_LIBADD = \
2230 libsystemd-shared.la \
2231 $(libsystemd_internal_la_LIBADD) \
2232 $(libsystemd_journal_internal_la_LIBADD) \
2233 $(libsystemd_resolve_la_LIBADD)
2235 libsystemd-install-hook:
2236 libname=libsystemd.so && $(move-to-rootlibdir)
2238 libsystemd-uninstall-hook:
2239 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2241 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2242 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2244 pkgconfiglib_DATA += \
2245 src/libsystemd/libsystemd.pc
2247 pkginclude_HEADERS += \
2248 src/systemd/sd-login.h \
2249 src/systemd/sd-id128.h \
2250 src/systemd/sd-daemon.h
2253 pkginclude_HEADERS += \
2254 src/systemd/sd-bus.h \
2255 src/systemd/sd-bus-protocol.h \
2256 src/systemd/sd-bus-vtable.h \
2257 src/systemd/sd-memfd.h \
2258 src/systemd/sd-utf8.h \
2259 src/systemd/sd-event.h \
2260 src/systemd/sd-rtnl.h \
2261 src/systemd/sd-resolve.h
2264 lib_LTLIBRARIES += \
2269 test-bus-signature \
2275 test-bus-kernel-bloom \
2276 test-bus-kernel-benchmark \
2278 test-bus-zero-copy \
2279 test-bus-introspect \
2291 test_bus_marshal_SOURCES = \
2292 src/libsystemd/sd-bus/test-bus-marshal.c
2294 test_bus_marshal_LDADD = \
2295 libsystemd-internal.la \
2296 libsystemd-shared.la \
2297 libsystemd-dump.la \
2298 libsystemd-capability.la \
2303 test_bus_marshal_CFLAGS = \
2309 test_bus_signature_SOURCES = \
2310 src/libsystemd/sd-bus/test-bus-signature.c
2312 test_bus_signature_LDADD = \
2313 libsystemd-shared.la \
2314 libsystemd-internal.la
2316 test_bus_chat_SOURCES = \
2317 src/libsystemd/sd-bus/test-bus-chat.c
2319 test_bus_chat_CFLAGS = \
2323 test_bus_chat_LDADD = \
2324 libsystemd-internal.la \
2325 libsystemd-shared.la
2327 test_bus_cleanup_SOURCES = \
2328 src/libsystemd/sd-bus/test-bus-cleanup.c
2330 test_bus_cleanup_CFLAGS = \
2334 test_bus_cleanup_LDADD = \
2335 libsystemd-internal.la \
2336 libsystemd-shared.la
2338 test_bus_server_SOURCES = \
2339 src/libsystemd/sd-bus/test-bus-server.c
2341 test_bus_server_CFLAGS = \
2345 test_bus_server_LDADD = \
2346 libsystemd-internal.la \
2347 libsystemd-shared.la
2349 test_bus_objects_SOURCES = \
2350 src/libsystemd/sd-bus/test-bus-objects.c
2352 test_bus_objects_CFLAGS = \
2357 test_bus_objects_LDADD = \
2358 libsystemd-internal.la \
2359 libsystemd-shared.la \
2360 libsystemd-dump.la \
2361 libsystemd-capability.la \
2364 test_bus_error_SOURCES = \
2365 src/libsystemd/sd-bus/test-bus-error.c
2367 test_bus_error_LDADD = \
2368 libsystemd-internal.la \
2369 libsystemd-shared.la
2371 test_bus_gvariant_SOURCES = \
2372 src/libsystemd/sd-bus/test-bus-gvariant.c
2374 test_bus_gvariant_LDADD = \
2375 libsystemd-internal.la \
2376 libsystemd-shared.la \
2377 libsystemd-dump.la \
2378 libsystemd-capability.la \
2382 test_bus_gvariant_CFLAGS = \
2387 test_bus_creds_SOURCES = \
2388 src/libsystemd/sd-bus/test-bus-creds.c
2390 test_bus_creds_LDADD = \
2391 libsystemd-internal.la \
2392 libsystemd-shared.la \
2393 libsystemd-dump.la \
2394 libsystemd-capability.la
2396 test_bus_match_SOURCES = \
2397 src/libsystemd/sd-bus/test-bus-match.c
2399 test_bus_match_LDADD = \
2400 libsystemd-internal.la \
2401 libsystemd-shared.la
2403 test_bus_kernel_SOURCES = \
2404 src/libsystemd/sd-bus/test-bus-kernel.c
2406 test_bus_kernel_LDADD = \
2407 libsystemd-internal.la \
2408 libsystemd-shared.la \
2409 libsystemd-dump.la \
2410 libsystemd-capability.la \
2413 test_bus_kernel_CFLAGS = \
2417 test_bus_kernel_bloom_SOURCES = \
2418 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2420 test_bus_kernel_bloom_LDADD = \
2421 libsystemd-internal.la \
2422 libsystemd-shared.la
2424 test_bus_kernel_benchmark_SOURCES = \
2425 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2427 test_bus_kernel_benchmark_LDADD = \
2428 libsystemd-internal.la \
2429 libsystemd-shared.la
2431 test_bus_memfd_SOURCES = \
2432 src/libsystemd/sd-bus/test-bus-memfd.c
2434 test_bus_memfd_LDADD = \
2435 libsystemd-internal.la \
2436 libsystemd-shared.la
2438 test_bus_zero_copy_SOURCES = \
2439 src/libsystemd/sd-bus/test-bus-zero-copy.c
2441 test_bus_zero_copy_LDADD = \
2442 libsystemd-internal.la \
2443 libsystemd-shared.la \
2444 libsystemd-dump.la \
2445 libsystemd-capability.la \
2448 test_bus_zero_copy_CFLAGS = \
2452 test_bus_introspect_SOURCES = \
2453 src/libsystemd/sd-bus/test-bus-introspect.c
2455 test_bus_introspect_LDADD = \
2456 libsystemd-internal.la \
2457 libsystemd-shared.la
2459 test_event_SOURCES = \
2460 src/libsystemd/sd-event/test-event.c
2462 test_event_LDADD = \
2463 libsystemd-internal.la \
2464 libsystemd-shared.la
2466 test_rtnl_SOURCES = \
2467 src/libsystemd/sd-rtnl/test-rtnl.c
2470 libsystemd-internal.la \
2471 libsystemd-shared.la
2473 test_resolve_SOURCES = \
2474 src/libsystemd/sd-resolve/test-resolve.c
2476 test_resolve_LDADD = \
2477 libsystemd-resolve.la \
2478 libsystemd-internal.la \
2479 libsystemd-shared.la
2481 test_resolve_CFLAGS = \
2486 src/libsystemd/sd-bus/busctl.c
2489 libsystemd-internal.la \
2490 libsystemd-shared.la \
2491 libsystemd-dump.la \
2492 libsystemd-capability.la \
2499 # ------------------------------------------------------------------------------
2500 noinst_LTLIBRARIES += \
2501 libsystemd-network.la
2503 libsystemd_network_la_CFLAGS = \
2507 libsystemd_network_la_SOURCES = \
2508 src/systemd/sd-network.h \
2509 src/systemd/sd-dhcp-client.h \
2510 src/systemd/sd-dhcp-lease.h \
2511 src/systemd/sd-ipv4ll.h \
2512 src/network/sd-network.c \
2513 src/network/network-util.h \
2514 src/libsystemd-network/sd-dhcp-client.c \
2515 src/libsystemd-network/dhcp-network.c \
2516 src/libsystemd-network/dhcp-option.c \
2517 src/libsystemd-network/dhcp-packet.c \
2518 src/libsystemd-network/dhcp-internal.h \
2519 src/libsystemd-network/dhcp-protocol.h \
2520 src/libsystemd-network/dhcp-lease-internal.h \
2521 src/libsystemd-network/sd-dhcp-lease.c \
2522 src/libsystemd-network/sd-ipv4ll.c \
2523 src/libsystemd-network/ipv4ll-network.c \
2524 src/libsystemd-network/ipv4ll-packet.c \
2525 src/libsystemd-network/ipv4ll-internal.h \
2526 src/libsystemd-network/network-internal.c \
2527 src/libsystemd-network/network-internal.h
2529 libsystemd_network_la_LIBADD = \
2530 libudev-internal.la \
2531 libsystemd-label.la \
2532 libsystemd-internal.la \
2533 libsystemd-shared.la \
2536 test_dhcp_option_SOURCES = \
2537 src/libsystemd-network/dhcp-protocol.h \
2538 src/libsystemd-network/dhcp-internal.h \
2539 src/libsystemd-network/test-dhcp-option.c
2541 test_dhcp_option_LDADD = \
2542 libsystemd-network.la \
2543 libsystemd-internal.la \
2544 libsystemd-shared.la
2546 test_dhcp_client_SOURCES = \
2547 src/systemd/sd-dhcp-client.h \
2548 src/libsystemd-network/dhcp-protocol.h \
2549 src/libsystemd-network/dhcp-internal.h \
2550 src/libsystemd-network/test-dhcp-client.c
2552 test_dhcp_client_LDADD = \
2553 libsystemd-network.la \
2554 libsystemd-label.la \
2555 libsystemd-internal.la \
2556 libsystemd-shared.la
2558 test_ipv4ll_SOURCES = \
2559 src/systemd/sd-ipv4ll.h \
2560 src/libsystemd-network/ipv4ll-internal.h \
2561 src/libsystemd-network/test-ipv4ll.c
2563 test_ipv4ll_LDADD = \
2564 libsystemd-network.la \
2565 libsystemd-label.la \
2566 libsystemd-internal.la \
2567 libsystemd-shared.la
2574 # ------------------------------------------------------------------------------
2584 include_HEADERS += \
2585 src/libudev/libudev.h
2587 lib_LTLIBRARIES += \
2590 libudev_la_SOURCES =\
2591 src/libudev/libudev.sym \
2592 src/libudev/libudev-private.h \
2593 src/libudev/libudev.c \
2594 src/libudev/libudev-list.c \
2595 src/libudev/libudev-util.c \
2596 src/libudev/libudev-device.c \
2597 src/libudev/libudev-enumerate.c \
2598 src/libudev/libudev-monitor.c \
2599 src/libudev/libudev-queue.c \
2600 src/libudev/libudev-hwdb-def.h \
2601 src/libudev/libudev-hwdb.c
2603 libudev_la_CFLAGS = \
2607 libudev_la_LDFLAGS = \
2609 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2610 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2612 libudev_la_LIBADD = \
2613 libsystemd-internal.la \
2614 libsystemd-shared.la
2616 pkgconfiglib_DATA += \
2617 src/libudev/libudev.pc
2620 src/libudev/libudev.pc.in
2623 src/libudev/libudev.pc \
2628 $(AM_V_at)$(MKDIR_P) $(dir $@)
2629 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2632 $(AM_V_at)$(MKDIR_P) $(dir $@)
2633 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2635 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2636 libudev-install-hook:
2637 libname=libudev.so && $(move-to-rootlibdir)
2639 libudev-uninstall-hook:
2640 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2642 INSTALL_EXEC_HOOKS += libudev-install-hook
2643 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2645 # ------------------------------------------------------------------------------
2646 noinst_LTLIBRARIES += \
2649 libudev_internal_la_SOURCES =\
2650 $(libudev_la_SOURCES) \
2651 src/libudev/libudev-device-private.c
2653 libudev_internal_la_CFLAGS = \
2655 -fvisibility=default
2657 # ------------------------------------------------------------------------------
2659 $(sysconfdir)/udev/rules.d \
2660 $(sysconfdir)/udev/hwdb.d
2662 dist_network_DATA = \
2663 network/99-default.link \
2664 network/80-container-host0.network \
2665 network/80-container-ve.network
2667 dist_udevrules_DATA += \
2668 rules/42-usb-hid-pm.rules \
2669 rules/50-udev-default.rules \
2670 rules/60-drm.rules \
2671 rules/60-keyboard.rules \
2672 rules/60-persistent-storage-tape.rules \
2673 rules/60-persistent-serial.rules \
2674 rules/60-persistent-input.rules \
2675 rules/60-persistent-alsa.rules \
2676 rules/60-persistent-storage.rules \
2677 rules/64-btrfs.rules \
2678 rules/75-net-description.rules \
2679 rules/75-tty-description.rules \
2680 rules/78-sound-card.rules \
2681 rules/80-net-setup-link.rules \
2682 rules/95-udev-late.rules
2684 nodist_udevrules_DATA += \
2685 rules/99-systemd.rules
2687 dist_udevhwdb_DATA = \
2688 hwdb/20-pci-vendor-model.hwdb \
2689 hwdb/20-pci-classes.hwdb \
2690 hwdb/20-usb-vendor-model.hwdb \
2691 hwdb/20-usb-classes.hwdb \
2692 hwdb/20-sdio-vendor-model.hwdb \
2693 hwdb/20-sdio-classes.hwdb \
2694 hwdb/20-bluetooth-vendor-product.hwdb \
2695 hwdb/20-acpi-vendor.hwdb \
2697 hwdb/20-net-ifname.hwdb \
2698 hwdb/60-keyboard.hwdb
2700 udevconfdir = $(sysconfdir)/udev
2701 dist_udevconf_DATA = \
2704 sharepkgconfigdir = $(datadir)/pkgconfig
2705 sharepkgconfig_DATA = \
2709 rules/99-systemd.rules.in \
2713 rules/99-systemd.rules \
2717 units/systemd-udevd.service.in \
2718 units/systemd-udev-trigger.service.in \
2719 units/systemd-udev-settle.service.in
2722 units/systemd-udevd.service \
2723 units/systemd-udev-trigger.service \
2724 units/systemd-udev-settle.service
2726 SOCKETS_TARGET_WANTS += \
2727 systemd-udevd-control.socket \
2728 systemd-udevd-kernel.socket
2729 SYSINIT_TARGET_WANTS += \
2730 systemd-udevd.service \
2731 systemd-udev-trigger.service
2733 rootbin_PROGRAMS += \
2736 rootlibexec_PROGRAMS += \
2739 noinst_LTLIBRARIES += \
2742 src/udev/keyboard-keys.txt:
2743 $(AM_V_at)$(MKDIR_P) $(dir $@)
2744 $(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/' > $@
2746 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2747 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2749 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2750 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2752 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2753 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2755 libudev_core_la_SOURCES = \
2757 src/udev/udev-event.c \
2758 src/udev/udev-watch.c \
2759 src/udev/udev-node.c \
2760 src/udev/udev-rules.c \
2761 src/udev/udev-ctrl.c \
2762 src/udev/udev-builtin.c \
2763 src/udev/udev-builtin-btrfs.c \
2764 src/udev/udev-builtin-hwdb.c \
2765 src/udev/udev-builtin-input_id.c \
2766 src/udev/udev-builtin-keyboard.c \
2767 src/udev/udev-builtin-net_id.c \
2768 src/udev/udev-builtin-net_setup_link.c \
2769 src/udev/udev-builtin-path_id.c \
2770 src/udev/udev-builtin-usb_id.c \
2771 src/udev/net/link-config.h \
2772 src/udev/net/link-config.c \
2773 src/udev/net/ethtool-util.h \
2774 src/udev/net/ethtool-util.c
2776 nodist_libudev_core_la_SOURCES = \
2777 src/udev/keyboard-keys-from-name.h \
2778 src/udev/keyboard-keys-to-name.h \
2779 src/udev/net/link-config-gperf.c
2782 $(nodist_libudev_core_la_SOURCES)
2785 src/udev/keyboard-keys-from-name.gperf \
2786 src/udev/keyboard-keys.txt \
2787 src/udev/net/link-config-gperf.c
2790 src/udev/net/link-config-gperf.gperf
2792 libudev_core_la_CFLAGS = \
2797 libudev_core_la_LIBADD = \
2798 libudev-internal.la \
2799 libsystemd-label.la \
2800 libsystemd-internal.la \
2801 libsystemd-network.la \
2802 libsystemd-shared.la \
2806 libudev_core_la_CPPFLAGS = \
2808 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2811 libudev_core_la_SOURCES += \
2812 src/udev/udev-builtin-firmware.c
2814 dist_udevrules_DATA += \
2815 rules/50-firmware.rules
2819 libudev_core_la_SOURCES += \
2820 src/udev/udev-builtin-kmod.c
2822 dist_udevrules_DATA += \
2823 rules/80-drivers.rules
2827 libudev_core_la_SOURCES += \
2828 src/udev/udev-builtin-blkid.c
2832 libudev_core_la_SOURCES += \
2833 src/udev/udev-builtin-uaccess.c \
2834 src/login/logind-acl.c \
2835 src/libsystemd/sd-login/sd-login.c \
2836 src/systemd/sd-login.h
2838 libudev_core_la_LIBADD += \
2842 systemd_udevd_SOURCES = \
2845 systemd_udevd_LDADD = \
2849 src/udev/udevadm.c \
2850 src/udev/udevadm-info.c \
2851 src/udev/udevadm-control.c \
2852 src/udev/udevadm-monitor.c \
2853 src/udev/udevadm-hwdb.c \
2854 src/udev/udevadm-settle.c \
2855 src/udev/udevadm-trigger.c \
2856 src/udev/udevadm-test.c \
2857 src/udev/udevadm-test-builtin.c
2862 # Update hwdb on installation. Do not bother if installing
2863 # in DESTDIR, since this is likely for packaging purposes.
2865 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2867 INSTALL_DATA_HOOKS += \
2871 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2873 # ------------------------------------------------------------------------------
2882 test_libudev_SOURCES = \
2883 src/test/test-libudev.c
2885 test_libudev_LDADD = \
2886 libsystemd-label.la \
2887 libudev-internal.la \
2888 libsystemd-shared.la
2890 test_udev_SOURCES = \
2891 src/test/test-udev.c
2900 test_udev_LDADD += \
2907 # packed sysfs test tree
2909 $(AM_V_at)$(MKDIR_P) $(dir $@)
2910 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2914 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2919 test/rules-test.sh \
2920 test/rule-syntax-check.py
2922 # ------------------------------------------------------------------------------
2924 src/udev/ata_id/ata_id.c
2927 libudev-internal.la \
2928 libsystemd-shared.la
2930 udevlibexec_PROGRAMS += \
2933 # ------------------------------------------------------------------------------
2934 cdrom_id_SOURCES = \
2935 src/udev/cdrom_id/cdrom_id.c
2938 libudev-internal.la \
2939 libsystemd-shared.la
2941 udevlibexec_PROGRAMS += \
2944 dist_udevrules_DATA += \
2945 rules/60-cdrom_id.rules
2947 # ------------------------------------------------------------------------------
2949 src/udev/collect/collect.c
2952 libudev-internal.la \
2953 libsystemd-shared.la
2955 udevlibexec_PROGRAMS += \
2958 # ------------------------------------------------------------------------------
2960 src/udev/scsi_id/scsi_id.c \
2961 src/udev/scsi_id/scsi_serial.c \
2962 src/udev/scsi_id/scsi.h \
2963 src/udev/scsi_id/scsi_id.h
2966 libudev-internal.la \
2967 libsystemd-shared.la
2969 udevlibexec_PROGRAMS += \
2973 src/udev/scsi_id/README
2975 # ------------------------------------------------------------------------------
2977 src/udev/v4l_id/v4l_id.c
2982 udevlibexec_PROGRAMS += \
2985 dist_udevrules_DATA += \
2986 rules/60-persistent-v4l.rules
2988 # ------------------------------------------------------------------------------
2989 accelerometer_SOURCES = \
2990 src/udev/accelerometer/accelerometer.c
2992 accelerometer_LDADD = \
2993 libudev-internal.la -lm \
2994 libsystemd-shared.la
2996 udevlibexec_PROGRAMS += \
2999 dist_udevrules_DATA += \
3000 rules/61-accelerometer.rules
3002 # ------------------------------------------------------------------------------
3009 libgudev_includedir = \
3010 $(includedir)/gudev-1.0/gudev
3012 libgudev_include_HEADERS = \
3014 src/gudev/gudevenums.h \
3015 src/gudev/gudevenumtypes.h \
3016 src/gudev/gudevtypes.h \
3017 src/gudev/gudevclient.h \
3018 src/gudev/gudevdevice.h \
3019 src/gudev/gudevenumerator.h
3021 lib_LTLIBRARIES += libgudev-1.0.la
3023 pkgconfiglib_DATA += \
3024 src/gudev/gudev-1.0.pc
3027 src/gudev/gudev-1.0.pc
3029 libgudev_1_0_la_SOURCES = \
3030 src/gudev/gudevenums.h \
3031 src/gudev/gudevenumtypes.h \
3032 src/gudev/gudevenumtypes.h\
3033 src/gudev/gudevtypes.h \
3034 src/gudev/gudevclient.h \
3035 src/gudev/gudevclient.c \
3036 src/gudev/gudevdevice.h \
3037 src/gudev/gudevdevice.c \
3038 src/gudev/gudevenumerator.h \
3039 src/gudev/gudevenumerator.c \
3040 src/gudev/gudevprivate.h
3042 nodist_libgudev_1_0_la_SOURCES = \
3043 src/gudev/gudevmarshal.h \
3044 src/gudev/gudevmarshal.c \
3045 src/gudev/gudevenumtypes.h \
3046 src/gudev/gudevenumtypes.c
3049 $(nodist_libgudev_1_0_la_SOURCES)
3051 libgudev_1_0_la_CPPFLAGS = \
3053 -I$(top_builddir)/src\
3054 -I$(top_srcdir)/src\
3055 -I$(top_builddir)/src/gudev \
3056 -I$(top_srcdir)/src/gudev \
3057 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3058 -D_GUDEV_COMPILATION \
3059 -DG_LOG_DOMAIN=\"GUdev\"
3061 libgudev_1_0_la_CFLAGS = \
3063 -fvisibility=default \
3066 libgudev_1_0_la_LIBADD = \
3070 libgudev_1_0_la_LDFLAGS = \
3072 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3073 -export-dynamic -no-undefined \
3074 -export-symbols-regex '^g_udev_.*'
3076 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3077 $(AM_V_at)$(MKDIR_P) $(dir $@)
3078 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3080 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3081 $(AM_V_at)$(MKDIR_P) $(dir $@)
3082 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3083 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3085 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3086 $(AM_V_at)$(MKDIR_P) $(dir $@)
3087 $(AM_V_GEN)glib-mkenums --template $^ > $@
3089 if HAVE_INTROSPECTION
3090 -include $(INTROSPECTION_MAKEFILE)
3092 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3094 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3096 src_gudev_GUdev_1_0_gir_CFLAGS = \
3099 -D_GUDEV_COMPILATION \
3100 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3101 -I$(top_srcdir)/src \
3102 -I$(top_builddir)/src \
3103 -I$(top_srcdir)/src/gudev \
3104 -I$(top_builddir)/src/gudev
3106 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3108 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3109 --pkg-export=gudev-1.0 \
3112 src_gudev_GUdev_1_0_gir_FILES = \
3114 src/gudev/gudevtypes.h \
3115 src/gudev/gudevenums.h \
3116 src/gudev/gudevenumtypes.h \
3117 src/gudev/gudevclient.h \
3118 src/gudev/gudevdevice.h \
3119 src/gudev/gudevenumerator.h \
3120 src/gudev/gudevclient.c \
3121 src/gudev/gudevdevice.c \
3122 src/gudev/gudevenumerator.c
3124 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3125 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3127 girdir = $(datadir)/gir-1.0
3129 src/gudev/GUdev-1.0.gir
3131 typelibsdir = $(libdir)/girepository-1.0
3133 src/gudev/GUdev-1.0.typelib
3135 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3136 endif # HAVE_INTROSPECTION
3138 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3139 libgudev-install-hook:
3140 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3142 libgudev-uninstall-hook:
3143 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3145 INSTALL_EXEC_HOOKS += libgudev-install-hook
3146 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3150 src/gudev/gudev-1.0.pc.in \
3151 src/gudev/gudevmarshal.list \
3152 src/gudev/gudevenumtypes.h.template \
3153 src/gudev/gudevenumtypes.c.template \
3154 src/gudev/gjs-example.js \
3155 src/gudev/seed-example-enum.js \
3156 src/gudev/seed-example.js
3158 # ------------------------------------------------------------------------------
3159 mtd_probe_SOURCES = \
3160 src/udev/mtd_probe/mtd_probe.c \
3161 src/udev/mtd_probe/mtd_probe.h \
3162 src/udev/mtd_probe/probe_smartmedia.c
3164 dist_udevrules_DATA += \
3165 rules/75-probe_mtd.rules
3167 udevlibexec_PROGRAMS += \
3170 # ------------------------------------------------------------------------------
3171 test_id128_SOURCES = \
3172 src/test/test-id128.c
3174 test_id128_LDADD = \
3175 libsystemd-internal.la \
3176 libsystemd-shared.la
3181 # ------------------------------------------------------------------------------
3183 rootlibexec_PROGRAMS += \
3186 systemd_activate_SOURCES = \
3187 src/activate/activate.c
3189 systemd_activate_LDADD = \
3190 libsystemd-label.la \
3191 libsystemd-internal.la \
3192 libsystemd-shared.la
3194 # ------------------------------------------------------------------------------
3195 systemd_journald_SOURCES = \
3196 src/journal/journald.c \
3197 src/journal/journald-server.h
3199 systemd_journald_LDADD = \
3200 libsystemd-journal-core.la \
3201 libsystemd-internal.la \
3202 libsystemd-shared.la
3204 systemd_cat_SOURCES = \
3207 systemd_cat_LDADD = \
3208 libsystemd-journal-core.la
3211 rootlibexec_PROGRAMS += \
3212 systemd-journal-remote
3214 systemd_journal_remote_SOURCES = \
3215 src/journal/journal-remote-parse.h \
3216 src/journal/journal-remote-parse.c \
3217 src/journal/journal-remote-write.h \
3218 src/journal/journal-remote-write.c \
3219 src/journal/journal-remote.c
3221 systemd_journal_remote_LDADD = \
3222 libsystemd-internal.la \
3223 libsystemd-journal-core.la
3225 systemd_journal_remote_SOURCES += \
3226 src/journal/microhttpd-util.h \
3227 src/journal/microhttpd-util.c
3229 systemd_journal_remote_CFLAGS = \
3231 $(MICROHTTPD_CFLAGS)
3233 systemd_journal_remote_LDADD += \
3237 systemd_journal_remote_LDADD += \
3242 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3243 journalctl_CFLAGS = \
3246 journalctl_SOURCES = \
3247 src/journal/journalctl.c
3249 journalctl_LDADD = \
3250 libsystemd-journal-internal.la \
3251 libsystemd-internal.la \
3252 libsystemd-logs.la \
3253 libsystemd-shared.la
3256 journalctl_LDADD += \
3261 journalctl_SOURCES += \
3262 src/journal/journal-qrcode.c \
3263 src/journal/journal-qrcode.h
3265 journalctl_CFLAGS += \
3268 journalctl_LDADD += \
3272 test_journal_SOURCES = \
3273 src/journal/test-journal.c
3275 test_journal_LDADD = \
3276 libsystemd-journal-core.la
3278 test_journal_send_SOURCES = \
3279 src/journal/test-journal-send.c
3281 test_journal_send_LDADD = \
3282 libsystemd-journal-core.la
3284 test_journal_syslog_SOURCES = \
3285 src/journal/test-journal-syslog.c
3287 test_journal_syslog_LDADD = \
3288 libsystemd-journal-core.la
3290 test_journal_match_SOURCES = \
3291 src/journal/test-journal-match.c
3293 test_journal_match_LDADD = \
3294 libsystemd-journal-core.la
3296 test_journal_enum_SOURCES = \
3297 src/journal/test-journal-enum.c
3299 test_journal_enum_LDADD = \
3300 libsystemd-journal-core.la
3302 test_journal_stream_SOURCES = \
3303 src/journal/test-journal-stream.c
3305 test_journal_stream_LDADD = \
3306 libsystemd-journal-core.la
3308 test_journal_flush_SOURCES = \
3309 src/journal/test-journal-flush.c
3311 test_journal_flush_LDADD = \
3312 libsystemd-journal-core.la
3314 test_journal_init_SOURCES = \
3315 src/journal/test-journal-init.c
3317 test_journal_init_LDADD = \
3318 libsystemd-journal-core.la
3320 test_journal_verify_SOURCES = \
3321 src/journal/test-journal-verify.c
3323 test_journal_verify_LDADD = \
3324 libsystemd-journal-core.la
3326 test_journal_interleaving_SOURCES = \
3327 src/journal/test-journal-interleaving.c
3329 test_journal_interleaving_LDADD = \
3330 libsystemd-journal-core.la
3332 test_mmap_cache_SOURCES = \
3333 src/journal/test-mmap-cache.c
3335 test_mmap_cache_LDADD = \
3336 libsystemd-journal-core.la
3338 test_catalog_SOURCES = \
3339 src/journal/test-catalog.c
3341 test_catalog_CPPFLAGS = \
3343 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3345 test_catalog_LDADD = \
3346 libsystemd-journal-core.la
3348 libsystemd_journal_core_la_SOURCES = \
3349 src/journal/journald-kmsg.c \
3350 src/journal/journald-kmsg.h \
3351 src/journal/journald-syslog.c \
3352 src/journal/journald-syslog.h \
3353 src/journal/journald-stream.c \
3354 src/journal/journald-stream.h \
3355 src/journal/journald-server.c \
3356 src/journal/journald-server.h \
3357 src/journal/journald-console.c \
3358 src/journal/journald-console.h \
3359 src/journal/journald-wall.c \
3360 src/journal/journald-wall.h \
3361 src/journal/journald-native.c \
3362 src/journal/journald-native.h \
3363 src/journal/journald-rate-limit.c \
3364 src/journal/journald-rate-limit.h \
3365 src/journal/journal-internal.h
3367 nodist_libsystemd_journal_core_la_SOURCES = \
3368 src/journal/journald-gperf.c
3370 libsystemd_journal_core_la_LIBADD = \
3371 libsystemd-journal-internal.la \
3372 libudev-internal.la \
3373 libsystemd-capability.la \
3374 libsystemd-label.la \
3375 libsystemd-internal.la \
3376 libsystemd-shared.la
3379 libsystemd_journal_core_la_LIBADD += \
3383 noinst_LTLIBRARIES += \
3384 libsystemd-journal-core.la
3386 journal-install-hook:
3387 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3388 -chown 0:0 $(DESTDIR)/var/log/journal
3389 -chmod 755 $(DESTDIR)/var/log/journal
3390 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3391 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3393 journal-uninstall-hook:
3394 -rmdir $(DESTDIR)/var/log/journal/
3396 INSTALL_EXEC_HOOKS += journal-install-hook
3397 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3399 # ------------------------------------------------------------------------------
3400 # Update catalog on installation. Do not bother if installing
3401 # in DESTDIR, since this is likely for packaging purposes.
3402 catalog-update-hook:
3403 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3405 INSTALL_DATA_HOOKS += \
3408 catalog-remove-hook:
3409 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3411 UNINSTALL_DATA_HOOKS += \
3420 test-journal-syslog \
3421 test-journal-match \
3422 test-journal-stream \
3424 test-journal-verify \
3425 test-journal-interleaving \
3426 test-journal-flush \
3430 pkginclude_HEADERS += \
3431 src/systemd/sd-journal.h \
3432 src/systemd/sd-messages.h \
3433 src/systemd/_sd-common.h
3435 libsystemd_journal_internal_la_SOURCES = \
3436 src/journal/sd-journal.c \
3437 src/systemd/sd-journal.h \
3438 src/systemd/_sd-common.h \
3439 src/journal/journal-file.c \
3440 src/journal/journal-file.h \
3441 src/journal/journal-vacuum.c \
3442 src/journal/journal-vacuum.h \
3443 src/journal/journal-verify.c \
3444 src/journal/journal-verify.h \
3445 src/journal/lookup3.c \
3446 src/journal/lookup3.h \
3447 src/journal/journal-send.c \
3448 src/journal/journal-def.h \
3449 src/journal/compress.h \
3450 src/journal/catalog.c \
3451 src/journal/catalog.h \
3452 src/journal/mmap-cache.c \
3453 src/journal/mmap-cache.h
3455 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3456 libsystemd_journal_internal_la_CFLAGS =
3459 libsystemd_journal_internal_la_LIBADD =
3462 libsystemd_journal_internal_la_SOURCES += \
3463 src/journal/compress.c
3465 libsystemd_journal_internal_la_CFLAGS += \
3468 libsystemd_journal_internal_la_LIBADD += \
3473 libsystemd_journal_internal_la_SOURCES += \
3474 src/journal/journal-authenticate.c \
3475 src/journal/journal-authenticate.h \
3476 src/journal/fsprg.c \
3479 libsystemd_journal_internal_la_LIBADD += \
3482 # fsprg.c is a drop-in file using void pointer arithmetic
3483 libsystemd_journal_internal_la_CFLAGS += \
3488 noinst_LTLIBRARIES += \
3489 libsystemd-journal-internal.la
3491 rootlibexec_PROGRAMS += \
3494 rootbin_PROGRAMS += \
3500 dist_systemunit_DATA += \
3501 units/systemd-journald.socket \
3502 units/systemd-journald-dev-log.socket
3504 nodist_systemunit_DATA += \
3505 units/systemd-journald.service \
3506 units/systemd-journal-flush.service
3508 dist_pkgsysconf_DATA += \
3509 src/journal/journald.conf
3511 dist_catalog_DATA = \
3512 catalog/systemd.fr.catalog \
3513 catalog/systemd.ru.catalog \
3514 catalog/systemd.it.catalog \
3515 catalog/systemd.catalog
3517 SOCKETS_TARGET_WANTS += \
3518 systemd-journald.socket \
3519 systemd-journald-dev-log.socket
3521 SYSINIT_TARGET_WANTS += \
3522 systemd-journald.service \
3523 systemd-journal-flush.service
3526 units/systemd-journald.service.in \
3527 units/systemd-journal-flush.service.in \
3528 src/journal/journald-gperf.gperf
3531 src/journal/journald-gperf.c
3533 # ------------------------------------------------------------------------------
3535 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3537 rootlibexec_PROGRAMS += \
3538 systemd-journal-gatewayd
3540 systemd_journal_gatewayd_SOURCES = \
3541 src/journal/journal-gatewayd.c \
3542 src/journal/microhttpd-util.h \
3543 src/journal/microhttpd-util.c
3545 systemd_journal_gatewayd_LDADD = \
3546 libsystemd-logs.la \
3547 libsystemd-journal-internal.la \
3548 libsystemd-internal.la \
3549 libsystemd-shared.la \
3553 systemd_journal_gatewayd_LDADD += \
3557 systemd_journal_gatewayd_CFLAGS = \
3559 $(MICROHTTPD_CFLAGS)
3561 systemd_journal_gatewayd_CPPFLAGS = \
3563 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3565 dist_systemunit_DATA += \
3566 units/systemd-journal-gatewayd.socket
3568 nodist_systemunit_DATA += \
3569 units/systemd-journal-gatewayd.service
3571 dist_gatewayddocumentroot_DATA = \
3572 src/journal/browse.html
3577 units/systemd-journal-gatewayd.service.in
3579 # ------------------------------------------------------------------------------
3581 systemd_socket_proxyd_SOURCES = \
3582 src/socket-proxy/socket-proxyd.c
3584 systemd_socket_proxyd_LDADD = \
3585 libsystemd-logs.la \
3586 libsystemd-internal.la \
3587 libsystemd-journal-internal.la \
3588 libsystemd-shared.la \
3589 libsystemd-resolve.la
3591 # ------------------------------------------------------------------------------
3593 systemd_coredump_SOURCES = \
3594 src/journal/coredump.c
3596 systemd_coredump_LDADD = \
3597 libsystemd-journal-internal.la \
3598 libsystemd-label.la \
3599 libsystemd-internal.la \
3600 libsystemd-shared.la
3602 rootlibexec_PROGRAMS += \
3605 systemd_coredumpctl_SOURCES = \
3606 src/journal/coredumpctl.c
3608 systemd_coredumpctl_LDADD = \
3609 libsystemd-journal-internal.la \
3610 libsystemd-internal.la \
3611 libsystemd-shared.la
3616 dist_bashcompletion_DATA += \
3617 shell-completion/bash/systemd-coredumpctl
3619 dist_zshcompletion_DATA += \
3620 shell-completion/zsh/_systemd-coredumpctl
3623 sysctl.d/50-coredump.conf
3626 sysctl.d/50-coredump.conf
3630 sysctl.d/50-coredump.conf.in
3632 # ------------------------------------------------------------------------------
3634 systemd_binfmt_SOURCES = \
3637 systemd_binfmt_LDADD = \
3638 libsystemd-shared.la
3640 rootlibexec_PROGRAMS += \
3643 dist_systemunit_DATA += \
3644 units/proc-sys-fs-binfmt_misc.automount \
3645 units/proc-sys-fs-binfmt_misc.mount
3647 nodist_systemunit_DATA += \
3648 units/systemd-binfmt.service
3651 $(prefix)/lib/binfmt.d \
3652 $(sysconfdir)/binfmt.d
3654 SYSINIT_TARGET_WANTS += \
3655 systemd-binfmt.service \
3656 proc-sys-fs-binfmt_misc.automount
3661 units/systemd-binfmt.service.in
3663 # ------------------------------------------------------------------------------
3665 systemd_vconsole_setup_SOURCES = \
3666 src/vconsole/vconsole-setup.c
3668 systemd_vconsole_setup_LDADD = \
3669 libsystemd-shared.la
3671 rootlibexec_PROGRAMS += \
3672 systemd-vconsole-setup
3674 nodist_systemunit_DATA += \
3675 units/systemd-vconsole-setup.service
3677 SYSINIT_TARGET_WANTS += \
3678 systemd-vconsole-setup.service
3682 units/systemd-vconsole-setup.service.in
3684 # ------------------------------------------------------------------------------
3686 systemd_readahead_SOURCES = \
3687 src/readahead/readahead.c \
3688 src/readahead/readahead-collect.c \
3689 src/readahead/readahead-replay.c \
3690 src/readahead/readahead-analyze.c \
3691 src/readahead/readahead-common.c \
3692 src/readahead/readahead-common.h
3694 systemd_readahead_LDADD = \
3695 libsystemd-internal.la \
3696 libudev-internal.la \
3697 libsystemd-shared.la
3700 src/readahead/sd-readahead.c \
3701 src/systemd/sd-readahead.h
3703 rootlibexec_PROGRAMS += \
3706 dist_systemunit_DATA += \
3707 units/systemd-readahead-drop.service \
3708 units/systemd-readahead-done.timer
3710 nodist_systemunit_DATA += \
3711 units/systemd-readahead-collect.service \
3712 units/systemd-readahead-replay.service \
3713 units/systemd-readahead-done.service
3718 test_ssd_SOURCES = \
3719 src/readahead/test-ssd.c \
3720 src/readahead/readahead-common.c \
3721 src/readahead/readahead-common.h
3724 libsystemd-internal.la \
3725 libudev-internal.la \
3726 libsystemd-shared.la
3731 units/systemd-readahead-collect.service.in \
3732 units/systemd-readahead-replay.service.in \
3733 units/systemd-readahead-done.service.in
3735 # ------------------------------------------------------------------------------
3737 systemd_bootchart_SOURCES = \
3738 src/bootchart/bootchart.c \
3739 src/bootchart/bootchart.h \
3740 src/bootchart/store.c \
3741 src/bootchart/store.h \
3742 src/bootchart/svg.c \
3745 systemd_bootchart_LDADD = \
3746 libsystemd-journal-internal.la \
3747 libsystemd-shared.la
3749 rootlibexec_PROGRAMS += \
3752 dist_pkgsysconf_DATA += \
3753 src/bootchart/bootchart.conf
3756 # ------------------------------------------------------------------------------
3757 if ENABLE_QUOTACHECK
3758 rootlibexec_PROGRAMS += \
3761 nodist_systemunit_DATA += \
3762 units/systemd-quotacheck.service
3764 systemd_quotacheck_SOURCES = \
3765 src/quotacheck/quotacheck.c
3767 systemd_quotacheck_LDADD = \
3768 libsystemd-shared.la
3772 units/systemd-quotacheck.service.in
3774 nodist_systemunit_DATA += \
3775 units/quotaon.service
3777 # ------------------------------------------------------------------------------
3778 if ENABLE_RANDOMSEED
3779 rootlibexec_PROGRAMS += \
3782 nodist_systemunit_DATA += \
3783 units/systemd-random-seed.service
3785 systemd_random_seed_SOURCES = \
3786 src/random-seed/random-seed.c
3788 systemd_random_seed_LDADD = \
3789 libsystemd-label.la \
3790 libsystemd-shared.la
3792 SYSINIT_TARGET_WANTS += \
3793 systemd-random-seed.service
3798 units/systemd-random-seed.service.in
3800 # ------------------------------------------------------------------------------
3802 rootlibexec_PROGRAMS += \
3805 nodist_systemunit_DATA += \
3806 units/systemd-backlight@.service
3808 systemd_backlight_SOURCES = \
3809 src/backlight/backlight.c
3811 systemd_backlight_LDADD = \
3812 libsystemd-label.la \
3813 libudev-internal.la \
3814 libsystemd-shared.la
3818 units/systemd-backlight@.service.in
3820 # ------------------------------------------------------------------------------
3822 rootlibexec_PROGRAMS += \
3825 nodist_systemunit_DATA += \
3826 units/systemd-rfkill@.service
3828 systemd_rfkill_SOURCES = \
3831 systemd_rfkill_LDADD = \
3832 libsystemd-label.la \
3833 libudev-internal.la \
3834 libsystemd-shared.la
3838 units/systemd-rfkill@.service.in
3840 # ------------------------------------------------------------------------------
3841 if HAVE_LIBCRYPTSETUP
3842 rootlibexec_PROGRAMS += \
3845 systemgenerator_PROGRAMS += \
3846 systemd-cryptsetup-generator
3848 dist_systemunit_DATA += \
3849 units/cryptsetup.target
3851 systemd_cryptsetup_SOURCES = \
3852 src/cryptsetup/cryptsetup.c
3854 systemd_cryptsetup_CFLAGS = \
3856 $(LIBCRYPTSETUP_CFLAGS)
3858 systemd_cryptsetup_LDADD = \
3859 libsystemd-label.la \
3860 libudev-internal.la \
3861 libsystemd-shared.la \
3862 $(LIBCRYPTSETUP_LIBS)
3864 systemd_cryptsetup_generator_SOURCES = \
3865 src/cryptsetup/cryptsetup-generator.c
3867 systemd_cryptsetup_generator_LDADD = \
3868 libsystemd-label.la \
3869 libsystemd-shared.la
3871 SYSINIT_TARGET_WANTS += \
3876 # ------------------------------------------------------------------------------
3878 systemd_hostnamed_SOURCES = \
3879 src/hostname/hostnamed.c
3881 systemd_hostnamed_LDADD = \
3882 libsystemd-label.la \
3883 libsystemd-internal.la \
3884 libsystemd-shared.la
3886 rootlibexec_PROGRAMS += \
3889 nodist_systemunit_DATA += \
3890 units/systemd-hostnamed.service
3892 dist_systemunit_DATA += \
3893 units/org.freedesktop.hostname1.busname
3895 dist_dbuspolicy_DATA += \
3896 src/hostname/org.freedesktop.hostname1.conf
3898 dist_dbussystemservice_DATA += \
3899 src/hostname/org.freedesktop.hostname1.service
3901 polkitpolicy_files += \
3902 src/hostname/org.freedesktop.hostname1.policy
3904 SYSTEM_UNIT_ALIASES += \
3905 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3907 BUSNAMES_TARGET_WANTS += \
3908 org.freedesktop.hostname1.busname
3910 hostnamectl_SOURCES = \
3911 src/hostname/hostnamectl.c
3913 hostnamectl_LDADD = \
3914 libsystemd-internal.la \
3915 libsystemd-shared.la
3920 dist_bashcompletion_DATA += \
3921 shell-completion/bash/hostnamectl
3923 dist_zshcompletion_DATA += \
3924 shell-completion/zsh/_hostnamectl
3928 polkitpolicy_in_files += \
3929 src/hostname/org.freedesktop.hostname1.policy.in
3932 units/systemd-hostnamed.service.in
3934 # ------------------------------------------------------------------------------
3936 dist_systemunit_DATA += \
3937 units/org.freedesktop.systemd1.busname
3939 BUSNAMES_TARGET_WANTS += \
3940 org.freedesktop.systemd1.busname
3943 # ------------------------------------------------------------------------------
3945 systemd_localed_SOURCES = \
3946 src/locale/localed.c
3948 systemd_localed_LDADD = \
3949 libsystemd-label.la \
3950 libsystemd-internal.la \
3951 libsystemd-shared.la
3953 nodist_systemunit_DATA += \
3954 units/systemd-localed.service
3956 dist_systemunit_DATA += \
3957 units/org.freedesktop.locale1.busname
3959 rootlibexec_PROGRAMS += \
3962 dist_dbuspolicy_DATA += \
3963 src/locale/org.freedesktop.locale1.conf
3965 dist_dbussystemservice_DATA += \
3966 src/locale/org.freedesktop.locale1.service
3968 polkitpolicy_files += \
3969 src/locale/org.freedesktop.locale1.policy
3971 SYSTEM_UNIT_ALIASES += \
3972 systemd-localed.service dbus-org.freedesktop.locale1.service
3974 BUSNAMES_TARGET_WANTS += \
3975 org.freedesktop.locale1.busname
3977 dist_pkgdata_DATA += \
3978 src/locale/kbd-model-map
3980 dist_noinst_SCRIPT = \
3981 src/locale/generate-kbd-model-map
3983 update-kbd-model-map: src/locale/generate-kbd-model-map
3984 $PYTHON $< >src/locale/kbd-model-map
3986 localectl_SOURCES = \
3987 src/locale/localectl.c
3990 libsystemd-internal.la \
3991 libsystemd-shared.la
3996 dist_bashcompletion_DATA += \
3997 shell-completion/bash/localectl
3999 dist_zshcompletion_DATA += \
4000 shell-completion/zsh/_localectl
4004 .PHONY: update-kbd-model-map
4006 polkitpolicy_in_files += \
4007 src/locale/org.freedesktop.locale1.policy.in
4010 units/systemd-localed.service.in
4012 # ------------------------------------------------------------------------------
4014 systemd_timedated_SOURCES = \
4015 src/timedate/timedated.c
4017 systemd_timedated_LDADD = \
4018 libsystemd-label.la \
4019 libsystemd-internal.la \
4020 libsystemd-shared.la
4022 rootlibexec_PROGRAMS += \
4025 dist_dbussystemservice_DATA += \
4026 src/timedate/org.freedesktop.timedate1.service
4028 dist_dbuspolicy_DATA += \
4029 src/timedate/org.freedesktop.timedate1.conf
4031 nodist_systemunit_DATA += \
4032 units/systemd-timedated.service
4034 dist_systemunit_DATA += \
4035 units/org.freedesktop.timedate1.busname
4037 polkitpolicy_files += \
4038 src/timedate/org.freedesktop.timedate1.policy
4041 $(prefix)/lib/systemd/ntp-units.d \
4042 $(sysconfdir)/systemd/ntp-units.d
4044 SYSTEM_UNIT_ALIASES += \
4045 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4047 BUSNAMES_TARGET_WANTS += \
4048 org.freedesktop.timedate1.busname
4050 timedatectl_SOURCES = \
4051 src/timedate/timedatectl.c
4053 timedatectl_LDADD = \
4054 libsystemd-internal.la \
4055 libsystemd-shared.la
4060 dist_bashcompletion_DATA += \
4061 shell-completion/bash/timedatectl
4063 dist_zshcompletion_DATA += \
4064 shell-completion/zsh/_timedatectl
4067 polkitpolicy_in_files += \
4068 src/timedate/org.freedesktop.timedate1.policy.in
4071 units/systemd-timedated.service.in
4073 # ------------------------------------------------------------------------------
4075 systemd_timesyncd_SOURCES = \
4076 src/timesync/timesyncd.c \
4077 src/timesync/timesyncd.h
4079 nodist_systemd_timesyncd_SOURCES = \
4080 src/timesync/timesyncd-gperf.c
4083 src/timesync/timesyncd-gperf.gperf
4086 src/timesync/timesyncd-gperf.c
4088 systemd_timesyncd_LDADD = \
4089 libsystemd-resolve.la \
4090 libsystemd-network.la \
4091 libsystemd-label.la \
4092 libsystemd-capability.la \
4093 libsystemd-internal.la \
4094 libsystemd-shared.la \
4097 rootlibexec_PROGRAMS += \
4100 nodist_systemunit_DATA += \
4101 units/systemd-timesyncd.service
4104 units/systemd-timesyncd.service.in
4106 nodist_pkgsysconf_DATA += \
4107 src/timesync/timesyncd.conf
4110 src/timesync/timesyncd.conf.in
4113 src/timesync/timesyncd.conf
4115 dist_ntpunits_DATA = \
4116 src/timesync/90-systemd.list
4120 # ------------------------------------------------------------------------------
4122 libnss_myhostname_la_SOURCES = \
4123 src/nss-myhostname/nss-myhostname.c \
4124 src/nss-myhostname/ifconf.h \
4125 src/nss-myhostname/netlink.c
4127 libnss_myhostname_la_LDFLAGS = \
4135 libnss_myhostname_la_LIBADD = \
4136 libsystemd-shared.la \
4137 libsystemd-internal.la
4139 lib_LTLIBRARIES += \
4140 libnss_myhostname.la
4143 # ------------------------------------------------------------------------------
4145 systemd_machined_SOURCES = \
4146 src/machine/machined.c \
4147 src/machine/machined.h
4149 systemd_machined_LDADD = \
4150 libsystemd-machine-core.la
4152 rootlibexec_PROGRAMS += \
4155 libsystemd_machine_core_la_SOURCES = \
4156 src/machine/machined-dbus.c \
4157 src/machine/machine.c \
4158 src/machine/machine.h \
4159 src/machine/machine-dbus.c
4161 libsystemd_machine_core_la_LIBADD = \
4162 libsystemd-label.la \
4163 libsystemd-internal.la \
4164 libudev-internal.la \
4165 libsystemd-shared.la
4167 noinst_LTLIBRARIES += \
4168 libsystemd-machine-core.la
4170 machinectl_SOURCES = \
4171 src/machine/machinectl.c
4173 machinectl_LDADD = \
4174 libsystemd-internal.la \
4175 libsystemd-shared.la
4177 rootbin_PROGRAMS += \
4180 dist_bashcompletion_DATA += \
4181 shell-completion/bash/machinectl
4183 test_machine_tables_SOURCES = \
4184 src/machine/test-machine-tables.c
4186 test_machine_tables_LDADD = \
4187 libsystemd-machine-core.la
4192 nodist_systemunit_DATA += \
4193 units/systemd-machined.service
4195 dist_systemunit_DATA += \
4196 units/machine.slice \
4197 units/org.freedesktop.machine1.busname
4199 dist_dbussystemservice_DATA += \
4200 src/machine/org.freedesktop.machine1.service
4202 dist_dbuspolicy_DATA += \
4203 src/machine/org.freedesktop.machine1.conf
4205 dist_zshcompletion_DATA += \
4206 shell-completion/zsh/_machinectl \
4207 shell-completion/zsh/_sd_machines
4209 SYSTEM_UNIT_ALIASES += \
4210 systemd-machined.service dbus-org.freedesktop.machine1.service
4212 BUSNAMES_TARGET_WANTS += \
4213 org.freedesktop.machine1.busname
4216 units/systemd-machined.service.in
4220 # ------------------------------------------------------------------------------
4222 systemd_resolved_SOURCES = \
4223 src/resolve/resolved.h \
4224 src/resolve/resolved.c \
4225 src/resolve/resolved-manager.c
4227 systemd_resolved_CFLAGS = \
4231 nodist_systemd_resolved_SOURCES = \
4232 src/resolve/resolved-gperf.c
4235 src/resolve/resolved-gperf.gperf
4238 src/resolve/resolved-gperf.c
4240 systemd_resolved_LDADD = \
4241 libsystemd-capability.la \
4242 libsystemd-network.la \
4243 libsystemd-label.la \
4244 libsystemd-internal.la \
4245 libsystemd-shared.la
4247 rootlibexec_PROGRAMS += \
4250 nodist_systemunit_DATA += \
4251 units/systemd-resolved.service
4254 units/systemd-resolved.service.in
4256 GENERAL_ALIASES += \
4257 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4259 nodist_pkgsysconf_DATA += \
4260 src/resolve/resolved.conf
4263 src/resolve/resolved.conf.in
4266 src/resolve/resolved.conf
4270 # ------------------------------------------------------------------------------
4272 rootlibexec_PROGRAMS += \
4275 systemd_networkd_SOURCES = \
4276 src/network/networkd.c
4278 systemd_networkd_LDADD = \
4279 libsystemd-networkd-core.la \
4280 libsystemd-capability.la
4282 noinst_LTLIBRARIES += \
4283 libsystemd-networkd-core.la
4285 libsystemd_networkd_core_la_CFLAGS = \
4288 libsystemd_networkd_core_la_SOURCES = \
4289 src/libsystemd-network/network-internal.h \
4290 src/network/networkd.h \
4291 src/network/networkd-link.c \
4292 src/network/networkd-netdev.c \
4293 src/network/networkd-tunnel.c \
4294 src/network/networkd-veth.c \
4295 src/network/networkd-network.c \
4296 src/network/networkd-address.c \
4297 src/network/networkd-route.c \
4298 src/network/networkd-manager.c
4300 nodist_libsystemd_networkd_core_la_SOURCES = \
4301 src/network/networkd-network-gperf.c \
4302 src/network/networkd-netdev-gperf.c
4304 libsystemd_networkd_core_la_LIBADD = \
4305 libudev-internal.la \
4306 libsystemd-internal.la \
4307 libsystemd-network.la \
4308 libsystemd-label.la \
4309 libsystemd-shared.la
4311 rootlibexec_PROGRAMS += \
4312 systemd-networkd-wait-online
4314 systemd_networkd_wait_online_CFLAGS = \
4317 systemd_networkd_wait_online_SOURCES = \
4318 src/libsystemd-network/network-internal.h \
4319 src/network/networkd-wait-online.c \
4320 src/network/networkd-wait-online.h
4322 systemd_networkd_wait_online_LDADD = \
4323 libsystemd-network.la \
4324 libudev-internal.la \
4325 libsystemd-internal.la \
4326 libsystemd-shared.la
4328 test_network_SOURCES = \
4329 src/network/test-network.c
4331 test_network_CFLAGS = \
4334 test_network_LDADD = \
4335 libsystemd-networkd-core.la
4340 nodist_systemunit_DATA += \
4341 units/systemd-networkd.service \
4342 units/systemd-networkd-wait-online.service
4344 GENERAL_ALIASES += \
4345 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4346 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4349 src/network/networkd-network-gperf.gperf \
4350 src/network/networkd-netdev-gperf.gperf \
4351 units/systemd-networkd.service.in \
4352 units/systemd-networkd-wait-online.service.in
4355 src/network/networkd-network-gperf.c \
4356 src/network/networkd-netdev-gperf.c
4359 # ------------------------------------------------------------------------------
4361 systemd_logind_SOURCES = \
4362 src/login/logind.c \
4365 nodist_systemd_logind_SOURCES = \
4366 src/login/logind-gperf.c
4368 systemd_logind_LDADD = \
4369 libsystemd-logind-core.la
4371 libsystemd_logind_core_la_SOURCES = \
4372 src/login/logind-core.c \
4373 src/login/logind-device.c \
4374 src/login/logind-device.h \
4375 src/login/logind-button.c \
4376 src/login/logind-button.h \
4377 src/login/logind-action.c \
4378 src/login/logind-action.h \
4379 src/login/logind-seat.c \
4380 src/login/logind-seat.h \
4381 src/login/logind-session.c \
4382 src/login/logind-session.h \
4383 src/login/logind-session-device.c \
4384 src/login/logind-session-device.h \
4385 src/login/logind-user.c \
4386 src/login/logind-user.h \
4387 src/login/logind-inhibit.c \
4388 src/login/logind-inhibit.h \
4389 src/login/logind-dbus.c \
4390 src/login/logind-session-dbus.c \
4391 src/login/logind-seat-dbus.c \
4392 src/login/logind-user-dbus.c \
4393 src/login/logind-acl.h
4395 libsystemd_logind_core_la_LIBADD = \
4396 libsystemd-label.la \
4397 libsystemd-capability.la \
4398 libsystemd-internal.la \
4399 libudev-internal.la \
4400 libsystemd-shared.la
4403 libsystemd_logind_core_la_SOURCES += \
4404 src/login/logind-acl.c
4406 libsystemd_logind_core_la_LIBADD += \
4410 noinst_LTLIBRARIES += \
4411 libsystemd-logind-core.la
4413 systemd_user_sessions_SOURCES = \
4414 src/login/user-sessions.c
4416 systemd_user_sessions_LDADD = \
4417 libsystemd-shared.la
4419 rootlibexec_PROGRAMS += \
4421 systemd-user-sessions
4423 loginctl_SOURCES = \
4424 src/login/loginctl.c \
4425 src/login/sysfs-show.c
4428 libsystemd-internal.la \
4429 libudev-internal.la \
4430 libsystemd-shared.la
4432 rootbin_PROGRAMS += \
4435 dist_bashcompletion_DATA += \
4436 shell-completion/bash/loginctl
4438 dist_zshcompletion_DATA += \
4439 shell-completion/zsh/_loginctl \
4440 shell-completion/zsh/_systemd-inhibit
4442 systemd_inhibit_SOURCES = \
4445 systemd_inhibit_LDADD = \
4446 libsystemd-internal.la \
4447 libsystemd-shared.la
4449 rootbin_PROGRAMS += \
4452 test_login_SOURCES = \
4453 src/libsystemd/sd-login/test-login.c
4455 test_login_LDADD = \
4456 libsystemd-internal.la \
4457 libsystemd-shared.la
4459 test_login_shared_SOURCES = \
4460 src/login/test-login-shared.c
4462 test_login_shared_LDADD = \
4463 libsystemd-internal.la \
4464 libsystemd-shared.la
4466 test_inhibit_SOURCES = \
4467 src/login/test-inhibit.c
4469 test_inhibit_LDADD = \
4470 libsystemd-internal.la \
4471 libsystemd-shared.la
4473 test_login_tables_SOURCES = \
4474 src/login/test-login-tables.c
4476 test_login_tables_LDADD = \
4477 libsystemd-logind-core.la
4488 pam_systemd_la_SOURCES = \
4489 src/login/pam-module.c
4491 pam_systemd_la_CFLAGS = \
4496 pam_systemd_la_LDFLAGS = \
4502 -export-symbols-regex '^pam_sm_.*'
4504 pam_systemd_la_LIBADD = \
4505 libsystemd-capability.la \
4506 libsystemd-internal.la \
4507 libsystemd-shared.la \
4510 pamlib_LTLIBRARIES = \
4513 dist_pamconf_DATA = \
4514 src/login/systemd-user
4517 nodist_systemunit_DATA += \
4518 units/systemd-logind.service \
4519 units/systemd-user-sessions.service
4521 dist_systemunit_DATA += \
4523 units/org.freedesktop.login1.busname
4525 dist_dbussystemservice_DATA += \
4526 src/login/org.freedesktop.login1.service
4528 dist_dbuspolicy_DATA += \
4529 src/login/org.freedesktop.login1.conf
4531 dist_pkgsysconf_DATA += \
4532 src/login/logind.conf
4534 polkitpolicy_files += \
4535 src/login/org.freedesktop.login1.policy
4540 MULTI_USER_TARGET_WANTS += \
4541 systemd-logind.service \
4542 systemd-user-sessions.service
4544 SYSTEM_UNIT_ALIASES += \
4545 systemd-logind.service dbus-org.freedesktop.login1.service
4547 BUSNAMES_TARGET_WANTS += \
4548 org.freedesktop.login1.busname
4550 if ENABLE_MULTI_SEAT_X
4552 systemd_multi_seat_x_SOURCES = \
4553 src/login/multi-seat-x.c
4555 systemd_multi_seat_x_LDADD = \
4556 libsystemd-label.la \
4557 libsystemd-shared.la
4559 rootlibexec_PROGRAMS += \
4560 systemd-multi-seat-x
4564 dist_udevrules_DATA += \
4565 src/login/70-uaccess.rules \
4566 src/login/70-power-switch.rules
4568 nodist_udevrules_DATA += \
4569 src/login/71-seat.rules \
4570 src/login/73-seat-late.rules
4573 src/login/logind-gperf.c \
4574 src/login/71-seat.rules \
4575 src/login/73-seat-late.rules
4578 polkitpolicy_in_files += \
4579 src/login/org.freedesktop.login1.policy.in
4582 src/login/logind-gperf.gperf \
4583 src/login/71-seat.rules.in \
4584 src/login/73-seat-late.rules.in \
4585 units/systemd-logind.service.in \
4586 units/systemd-user-sessions.service.in
4588 # ------------------------------------------------------------------------------
4589 if HAVE_PYTHON_DEVEL
4590 pkgpyexec_LTLIBRARIES = \
4597 _journal_la_SOURCES = \
4598 src/python-systemd/_journal.c
4600 _journal_la_CFLAGS = \
4602 -fvisibility=default \
4603 $(PYTHON_DEVEL_CFLAGS)
4605 _journal_la_LDFLAGS = \
4611 _journal_la_LIBADD = \
4612 $(PYTHON_DEVEL_LIBS) \
4615 id128_la_SOURCES = \
4616 src/python-systemd/id128.c \
4617 src/python-systemd/id128-constants.h \
4618 src/python-systemd/pyutil.c \
4619 src/python-systemd/pyutil.h
4623 -fvisibility=default \
4624 $(PYTHON_DEVEL_CFLAGS) \
4625 -I$(top_builddir)/src/python-systemd
4627 id128_la_LDFLAGS = \
4634 $(PYTHON_DEVEL_LIBS) \
4635 libsystemd-shared.la \
4638 _daemon_la_SOURCES = \
4639 src/python-systemd/_daemon.c \
4640 src/python-systemd/pyutil.c \
4641 src/python-systemd/pyutil.h
4643 _daemon_la_CFLAGS = \
4645 -fvisibility=default \
4646 $(PYTHON_DEVEL_CFLAGS) \
4647 -I$(top_builddir)/src/python-systemd
4649 _daemon_la_LDFLAGS = \
4655 _daemon_la_LIBADD = \
4656 $(PYTHON_DEVEL_LIBS) \
4657 libsystemd-shared.la \
4660 _reader_la_SOURCES = \
4661 src/python-systemd/_reader.c \
4662 src/python-systemd/pyutil.c \
4663 src/python-systemd/pyutil.h
4665 _reader_la_CFLAGS = \
4667 -fvisibility=default \
4668 $(PYTHON_DEVEL_CFLAGS)
4670 _reader_la_LDFLAGS = \
4676 _reader_la_LIBADD = \
4677 $(PYTHON_DEVEL_LIBS) \
4678 libsystemd-shared.la \
4681 login_la_SOURCES = \
4682 src/python-systemd/login.c \
4683 src/python-systemd/pyutil.c \
4684 src/python-systemd/pyutil.h
4688 -fvisibility=default \
4689 $(PYTHON_DEVEL_CFLAGS)
4691 login_la_LDFLAGS = \
4698 $(PYTHON_DEVEL_LIBS) \
4699 libsystemd-shared.la \
4702 dist_pkgpyexec_PYTHON = \
4703 src/python-systemd/journal.py \
4704 src/python-systemd/daemon.py \
4705 src/python-systemd/__init__.py
4707 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4708 $(AM_V_at)$(MKDIR_P) $(dir $@)
4709 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4712 src/python-systemd/id128-constants.h
4714 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4716 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4717 $(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/
4718 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4721 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4722 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4725 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4726 $(MAKE) DESTDIR="$$dir" install && \
4727 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4732 CLEAN_LOCAL_HOOKS += clean-sphinx
4734 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4737 -rm -rf docs/html/python-systemd/
4739 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4741 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4742 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4744 # ------------------------------------------------------------------------------
4745 if ENABLE_COMPAT_LIBS
4747 src/compat-libs/linkwarning.h
4749 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4750 $(AM_V_at)$(MKDIR_P) $(dir $@)
4751 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4754 libsystemd-journal.c \
4755 libsystemd-login.c \
4756 libsystemd-id128.c \
4759 libsystemd_journal_la_SOURCES = \
4760 libsystemd-journal.c \
4761 src/compat-libs/libsystemd-journal.sym
4763 libsystemd_journal_la_CPPFLAGS = \
4765 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4767 libsystemd_journal_la_LDFLAGS = \
4769 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4770 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
4772 libsystemd_journal_la_LIBADD = \
4773 libsystemd-journal-internal.la \
4774 libsystemd-internal.la \
4775 libsystemd-shared.la
4777 libsystemd_login_la_SOURCES = \
4778 libsystemd-login.c \
4779 src/compat-libs/libsystemd-login.sym
4781 libsystemd_login_la_CPPFLAGS = \
4783 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4785 libsystemd_login_la_LDFLAGS = \
4787 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4788 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
4790 libsystemd_login_la_LIBADD = \
4791 libsystemd-internal.la \
4792 libsystemd-shared.la
4794 libsystemd_id128_la_SOURCES = \
4795 libsystemd-id128.c \
4796 src/compat-libs/libsystemd-id128.sym
4798 libsystemd_id128_la_CPPFLAGS = \
4800 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4802 libsystemd_id128_la_LDFLAGS = \
4804 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
4805 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
4807 libsystemd_id128_la_LIBADD = \
4808 libsystemd-internal.la \
4809 libsystemd-shared.la
4811 libsystemd_daemon_la_SOURCES = \
4812 libsystemd-daemon.c \
4813 src/compat-libs/libsystemd-daemon.sym
4815 libsystemd_daemon_la_CPPFLAGS = \
4817 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4819 libsystemd_daemon_la_LDFLAGS = \
4821 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
4822 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
4824 libsystemd_daemon_la_LIBADD = \
4825 libsystemd-internal.la \
4826 libsystemd-shared.la
4828 lib_LTLIBRARIES += \
4829 libsystemd-journal.la \
4830 libsystemd-login.la \
4831 libsystemd-id128.la \
4832 libsystemd-daemon.la
4834 pkgconfiglib_DATA += \
4835 src/compat-libs/libsystemd-journal.pc \
4836 src/compat-libs/libsystemd-login.pc \
4837 src/compat-libs/libsystemd-id128.pc \
4838 src/compat-libs/libsystemd-daemon.pc
4840 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4841 compat-lib-install-hook:
4842 libname=libsystemd-login.so && $(move-to-rootlibdir)
4843 libname=libsystemd-journal.so && $(move-to-rootlibdir)
4844 libname=libsystemd-id128.so && $(move-to-rootlibdir)
4845 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
4847 compat-lib-uninstall-hook:
4848 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4849 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
4850 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
4851 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
4853 INSTALL_EXEC_HOOKS += compat-lib-install-hook
4854 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
4858 src/compat-libs/libsystemd-journal.pc.in \
4859 src/compat-libs/libsystemd-login.pc.in \
4860 src/compat-libs/libsystemd-id128.pc.in \
4861 src/compat-libs/libsystemd-daemon.pc.in
4863 # ------------------------------------------------------------------------------
4865 '|rootlibexecdir=$(rootlibexecdir)|' \
4866 '|rootbindir=$(rootbindir)|' \
4867 '|bindir=$(bindir)|' \
4868 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4869 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4870 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4871 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4872 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4873 '|pkgdatadir=$(pkgdatadir)|' \
4874 '|systemunitdir=$(systemunitdir)|' \
4875 '|userunitdir=$(userunitdir)|' \
4876 '|systempresetdir=$(systempresetdir)|' \
4877 '|userpresetdir=$(userpresetdir)|' \
4878 '|udevhwdbdir=$(udevhwdbdir)|' \
4879 '|udevrulesdir=$(udevrulesdir)|' \
4880 '|catalogdir=$(catalogdir)|' \
4881 '|tmpfilesdir=$(tmpfilesdir)|' \
4882 '|sysctldir=$(sysctldir)|' \
4883 '|systemgeneratordir=$(systemgeneratordir)|' \
4884 '|usergeneratordir=$(usergeneratordir)|' \
4885 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4886 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4887 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4888 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4889 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4890 '|prefix=$(prefix)|' \
4891 '|exec_prefix=$(exec_prefix)|' \
4892 '|libdir=$(libdir)|' \
4893 '|includedir=$(includedir)|' \
4894 '|VERSION=$(VERSION)|' \
4895 '|rootprefix=$(rootprefix)|' \
4896 '|udevlibexecdir=$(udevlibexecdir)|' \
4897 '|SUSHELL=$(SUSHELL)|' \
4898 '|DEBUGTTY=$(DEBUGTTY)|' \
4901 '|MKDIR_P=$(MKDIR_P)|' \
4902 '|QUOTAON=$(QUOTAON)|' \
4903 '|QUOTACHECK=$(QUOTACHECK)|' \
4904 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4905 '|VARLOGDIR=$(varlogdir)|' \
4906 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4907 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4908 '|PYTHON=$(PYTHON)|' \
4909 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
4910 '|NTP_SERVERS=$(NTP_SERVERS)|' \
4911 '|DNS_SERVERS=$(DNS_SERVERS)|' \
4912 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
4913 '|systemgidmax=$(SYSTEM_GID_MAX)|'
4916 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4917 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4926 sysctl.d/%: sysctl.d/%.in
4932 src/core/macros.%: src/core/macros.%.in
4935 src/%.policy.in: src/%.policy.in.in
4946 $(AM_V_GEN)chmod +x $@
4948 src/%.c: src/%.gperf
4949 $(AM_V_at)$(MKDIR_P) $(dir $@)
4950 $(AM_V_GPERF)$(GPERF) < $< > $@
4953 $(AM_V_at)$(MKDIR_P) $(dir $@)
4954 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4957 $(AM_V_at)$(MKDIR_P) $(dir $@)
4958 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4960 units/user/%: units/%.m4
4961 $(AM_V_at)$(MKDIR_P) $(dir $@)
4962 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4965 nodist_polkitpolicy_DATA = \
4966 $(polkitpolicy_files) \
4967 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4971 $(polkitpolicy_in_files) \
4972 $(polkitpolicy_in_in_files)
4975 $(nodist_systemunit_DATA) \
4976 $(nodist_userunit_DATA) \
4977 $(pkgconfigdata_DATA) \
4978 $(pkgconfiglib_DATA) \
4979 $(nodist_polkitpolicy_DATA)
4981 # ------------------------------------------------------------------------------
4983 man/custom-entities.ent: configure.ac
4984 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4985 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4986 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
4990 man/custom-entities.ent
4995 --stringparam man.output.quietly 1 \
4996 --stringparam funcsynopsis.style ansi \
4997 --stringparam man.authors.section.enabled 0 \
4998 --stringparam man.copyright.section.enabled 0 \
4999 --stringparam systemd.version $(VERSION) \
5000 --path '$(builddir)/man:$(srcdir)/man'
5002 XSLTPROC_PROCESS_MAN = \
5003 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5005 XSLTPROC_PROCESS_HTML = \
5006 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5008 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5009 $(XSLTPROC_PROCESS_MAN)
5011 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5012 $(XSLTPROC_PROCESS_MAN)
5014 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5015 $(XSLTPROC_PROCESS_MAN)
5017 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5018 $(XSLTPROC_PROCESS_MAN)
5020 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5021 $(XSLTPROC_PROCESS_MAN)
5023 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5024 $(XSLTPROC_PROCESS_HTML)
5027 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5033 man/custom-html.xsl \
5036 # ------------------------------------------------------------------------------
5039 docs/sysvinit/README
5044 docs/sysvinit/README: docs/sysvinit/README.in
5047 docs/var-log/README: docs/var-log/README.in
5051 docs/sysvinit/README \
5056 docs/sysvinit/README.in \
5057 docs/var-log/README.in
5059 SOCKETS_TARGET_WANTS += \
5060 systemd-initctl.socket \
5061 systemd-shutdownd.socket
5064 RUNLEVEL1_TARGET_WANTS += \
5065 systemd-update-utmp-runlevel.service
5066 RUNLEVEL2_TARGET_WANTS += \
5067 systemd-update-utmp-runlevel.service
5068 RUNLEVEL3_TARGET_WANTS += \
5069 systemd-update-utmp-runlevel.service
5070 RUNLEVEL4_TARGET_WANTS += \
5071 systemd-update-utmp-runlevel.service
5072 RUNLEVEL5_TARGET_WANTS += \
5073 systemd-update-utmp-runlevel.service
5075 SYSINIT_TARGET_WANTS += \
5076 systemd-update-utmp.service
5077 LOCAL_FS_TARGET_WANTS += \
5078 systemd-remount-fs.service \
5080 MULTI_USER_TARGET_WANTS += \
5082 systemd-ask-password-wall.path
5083 SYSINIT_TARGET_WANTS += \
5084 dev-hugepages.mount \
5086 sys-kernel-config.mount \
5087 sys-kernel-debug.mount \
5088 sys-fs-fuse-connections.mount \
5089 systemd-sysctl.service \
5090 systemd-ask-password-console.path
5093 SYSTEM_UNIT_ALIASES += \
5094 poweroff.target runlevel0.target \
5095 rescue.target runlevel1.target \
5096 multi-user.target runlevel2.target \
5097 multi-user.target runlevel3.target \
5098 multi-user.target runlevel4.target \
5099 graphical.target runlevel5.target \
5100 reboot.target runlevel6.target
5103 SYSTEM_UNIT_ALIASES += \
5104 graphical.target default.target \
5105 reboot.target ctrl-alt-del.target \
5106 getty@.service autovt@.service
5108 USER_UNIT_ALIASES += \
5109 $(systemunitdir)/shutdown.target shutdown.target \
5110 $(systemunitdir)/sockets.target sockets.target \
5111 $(systemunitdir)/busnames.target busnames.target \
5112 $(systemunitdir)/timers.target timers.target \
5113 $(systemunitdir)/paths.target paths.target \
5114 $(systemunitdir)/bluetooth.target bluetooth.target \
5115 $(systemunitdir)/printer.target printer.target \
5116 $(systemunitdir)/sound.target sound.target \
5117 $(systemunitdir)/smartcard.target smartcard.target
5119 GENERAL_ALIASES += \
5120 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5121 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5122 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5123 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5127 $(systemunitdir)/runlevel1.target.wants \
5128 $(systemunitdir)/runlevel2.target.wants \
5129 $(systemunitdir)/runlevel3.target.wants \
5130 $(systemunitdir)/runlevel4.target.wants \
5131 $(systemunitdir)/runlevel5.target.wants
5135 $(prefix)/lib/modules-load.d \
5136 $(sysconfdir)/modules-load.d \
5137 $(prefix)/lib/systemd/network \
5138 $(sysconfdir)/systemd/network \
5139 $(prefix)/lib/sysctl.d \
5140 $(sysconfdir)/sysctl.d \
5141 $(prefix)/lib/kernel/install.d \
5142 $(sysconfdir)/kernel/install.d \
5143 $(systemshutdowndir) \
5145 $(systemgeneratordir) \
5146 $(usergeneratordir) \
5149 $(pkgsysconfdir)/system \
5150 $(pkgsysconfdir)/system/multi-user.target.wants \
5151 $(pkgsysconfdir)/system/getty.target.wants \
5152 $(pkgsysconfdir)/user \
5153 $(dbussessionservicedir) \
5154 $(sysconfdir)/xdg/systemd
5156 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5158 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5160 install-data-hook: $(INSTALL_DATA_HOOKS)
5162 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5164 clean-local: $(CLEAN_LOCAL_HOOKS)
5165 rm -rf $(abs_srcdir)/install-tree
5166 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5167 $(abs_srcdir)/hwdb/iab.txt
5169 DISTCHECK_CONFIGURE_FLAGS = \
5170 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5171 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5172 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5173 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5174 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5175 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5176 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5177 --with-rootprefix=$$dc_install_base \
5178 --disable-split-usr \
5180 --enable-compat-libs
5183 DISTCHECK_CONFIGURE_FLAGS += \
5184 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5185 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5187 DISTCHECK_CONFIGURE_FLAGS += \
5188 --with-sysvinit-path= \
5189 --with-sysvrcnd-path=
5193 DISTCHECK_CONFIGURE_FLAGS += \
5197 # check "broken" platforms limited toolchains for link breakage before we release
5200 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5204 ( cd $(top_srcdir)/hwdb && \
5205 wget -N http://www.linux-usb.org/usb.ids \
5206 http://pci-ids.ucw.cz/v2.2/pci.ids \
5207 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5208 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5211 .PHONY: kdbus-update
5213 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5214 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5218 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5220 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5222 upload: all check dist
5223 scp systemd-$(VERSION).tar.xz $(www_target)
5226 doc-sync: all destdir-sphinx
5227 gtkdoc-rebase --html-dir=docs/libudev/html --online
5228 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5229 gtkdoc-rebase --html-dir=docs/gudev/html --online
5230 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5231 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5232 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5236 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5237 scp man/*.html tango:public/systemd-man/
5239 .PHONY: install-tree
5241 rm -rf $(abs_srcdir)/install-tree
5242 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5243 tree $(abs_srcdir)/install-tree
5245 # Let's run all tests of the test suite, but under valgrind. Let's
5246 # exclude the one perl script we have in there
5247 .PHONY: valgrind-tests
5248 valgrind-tests: $(TESTS)
5249 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5250 if file $$f | grep -q shell; then \
5251 echo -e "$${x}Skipping non-binary $$f"; else \
5252 echo -e "$${x}Running $$f"; \
5253 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5258 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5260 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5261 $(AM_V_GEN)cat $^ > $@
5263 .PHONY: check-api-docs
5264 check-api-docs: exported man
5265 $(AM_V_GEN)for symbol in `cat exported` ; do \
5266 if test -f $(builddir)/man/$$symbol.html ; then \
5267 echo " Symbol $$symbol() is documented." ; \
5269 echo "‣ Symbol $$symbol() lacks documentation." ; \
5273 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5274 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5276 undefined defined: $(ALL_OBJECTS)
5277 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5278 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5279 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5285 .PHONY: check-api-unused
5286 check-api-unused: defined undefined exported
5287 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5289 .PHONY: check-includes
5290 check-includes: $(top_srcdir)/tools/check-includes.pl
5291 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5292 | xargs $(top_srcdir)/tools/check-includes.pl
5295 $(top_srcdir)/tools/check-includes.pl
5297 # Stupid test that everything purported to be exported really is
5298 define generate-sym-test
5299 $(AM_V_at)$(MKDIR_P) $(dir $@)
5300 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5301 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5302 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5303 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5304 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5305 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5306 $(AM_V_at)printf 'return 0; }\n' >> $@
5309 test-libsystemd-sym.c: \
5310 $(top_builddir)/src/libsystemd/libsystemd.sym \
5311 src/systemd/sd-journal.h \
5312 src/systemd/sd-daemon.h \
5313 src/systemd/sd-login.h \
5314 src/systemd/sd-bus.h \
5315 src/systemd/sd-utf8.h \
5316 src/systemd/sd-resolve.h
5317 $(generate-sym-test)
5319 test-libudev-sym.c: \
5320 src/libudev/libudev.sym \
5322 $(generate-sym-test)
5324 test_libsystemd_sym_SOURCES = \
5325 test-libsystemd-sym.c
5326 test_libsystemd_sym_LDADD = \
5329 test_libudev_sym_SOURCES = \
5331 test_libudev_sym_CFLAGS = \
5333 -Wno-deprecated-declarations
5334 test_libudev_sym_LDADD = \
5338 $(test_libsystemd_sym_SOURCES) \
5339 $(test_libudev_sym_SOURCES)
5342 test-libsystemd-sym \
5347 cppcheck --enable=all -q $(top_srcdir)
5349 # Used to extract compile flags for YCM.
5354 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u