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 sysusersdir=$(prefix)/lib/sysusers.d
92 sysctldir=$(prefix)/lib/sysctl.d
93 networkdir=$(rootprefix)/lib/systemd/network
94 pkgincludedir=$(includedir)/systemd
95 systemgeneratordir=$(rootlibexecdir)/system-generators
96 usergeneratordir=$(prefix)/lib/systemd/user-generators
97 systemshutdowndir=$(rootlibexecdir)/system-shutdown
98 systemsleepdir=$(rootlibexecdir)/system-sleep
99 systemunitdir=$(rootprefix)/lib/systemd/system
100 systempresetdir=$(rootprefix)/lib/systemd/system-preset
101 udevlibexecdir=$(rootprefix)/lib/udev
102 udevhomedir=$(udevlibexecdir)
103 udevrulesdir=$(udevlibexecdir)/rules.d
104 udevhwdbdir=$(udevlibexecdir)/hwdb.d
105 catalogdir=$(prefix)/lib/systemd/catalog
106 kernelinstalldir = $(prefix)/lib/kernel/install.d
107 ntpunitsdir=$(prefix)/lib/systemd/ntp-units.d
109 # And these are the special ones for /
110 rootprefix=@rootprefix@
111 rootbindir=$(rootprefix)/bin
112 rootlibexecdir=$(rootprefix)/lib/systemd
114 CLEANFILES = $(BUILT_SOURCES)
119 UNINSTALL_EXEC_HOOKS =
121 UNINSTALL_DATA_HOOKS =
122 DISTCLEAN_LOCAL_HOOKS =
130 polkitpolicy_in_in_files =
131 polkitpolicy_in_files =
133 dist_udevrules_DATA =
134 nodist_udevrules_DATA =
135 nodist_pkgsysconf_DATA =
136 dist_pkgsysconf_DATA =
138 dist_dbuspolicy_DATA =
139 dist_dbussystemservice_DATA =
145 noinst_PROGRAMS = $(manual_tests) $(tests)
151 udevlibexec_PROGRAMS =
153 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
154 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
155 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
158 -include $(top_builddir)/config.h \
159 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
160 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
161 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
162 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
163 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
164 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
165 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
166 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
167 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
168 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
169 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
170 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
171 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
172 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
173 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
174 -DROOTPREFIX=\"$(rootprefix)\" \
175 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
176 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
177 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
178 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
179 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
180 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
181 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
182 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
183 -DX_SERVER=\"$(bindir)/X\" \
184 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
185 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
186 -DQUOTACHECK=\"$(QUOTACHECK)\" \
187 -DKEXEC=\"$(KEXEC)\" \
188 -I $(top_srcdir)/src \
189 -I $(top_builddir)/src/shared \
190 -I $(top_srcdir)/src/shared \
191 -I $(top_srcdir)/src/network \
192 -I $(top_srcdir)/src/login \
193 -I $(top_srcdir)/src/journal \
194 -I $(top_srcdir)/src/timedate \
195 -I $(top_srcdir)/src/timesync \
196 -I $(top_srcdir)/src/resolve \
197 -I $(top_srcdir)/src/systemd \
198 -I $(top_builddir)/src/core \
199 -I $(top_srcdir)/src/core \
200 -I $(top_srcdir)/src/libudev \
201 -I $(top_srcdir)/src/udev \
202 -I $(top_srcdir)/src/udev/net \
203 -I $(top_builddir)/src/udev \
204 -I $(top_srcdir)/src/libsystemd/sd-bus \
205 -I $(top_srcdir)/src/libsystemd/sd-event \
206 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
207 -I $(top_srcdir)/src/libsystemd-network \
210 AM_CFLAGS = $(OUR_CFLAGS)
211 AM_LDFLAGS = $(OUR_LDFLAGS)
213 # ------------------------------------------------------------------------------
214 define move-to-rootlibdir
215 if test "$(libdir)" != "$(rootlibdir)"; then \
216 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
217 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
218 rm -f $(DESTDIR)$(libdir)/$$libname && \
219 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
220 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
226 RUNLEVEL1_TARGET_WANTS =
227 RUNLEVEL2_TARGET_WANTS =
228 RUNLEVEL3_TARGET_WANTS =
229 RUNLEVEL4_TARGET_WANTS =
230 RUNLEVEL5_TARGET_WANTS =
231 SHUTDOWN_TARGET_WANTS =
232 LOCAL_FS_TARGET_WANTS =
233 MULTI_USER_TARGET_WANTS =
234 SYSINIT_TARGET_WANTS =
235 SOCKETS_TARGET_WANTS =
236 BUSNAMES_TARGET_WANTS =
237 TIMERS_TARGET_WANTS =
238 USER_SOCKETS_TARGET_WANTS =
239 USER_BUSNAMES_TARGET_WANTS =
241 SYSTEM_UNIT_ALIASES =
245 install-target-wants-hook:
246 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
247 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
248 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
249 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
254 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
255 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
256 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
257 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
258 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
259 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
260 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
263 [ -z "$$what" ] || ( \
264 dir=$(DESTDIR)$$dir/$$wants.wants && \
265 $(MKDIR_P) -m 0755 $$dir && \
268 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
271 install-directories-hook:
272 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
274 install-aliases-hook:
275 set -- $(SYSTEM_UNIT_ALIASES) && \
276 dir=$(systemunitdir) && $(install-aliases)
277 set -- $(USER_UNIT_ALIASES) && \
278 dir=$(userunitdir) && $(install-relative-aliases)
279 set -- $(GENERAL_ALIASES) && \
280 dir= && $(install-relative-aliases)
282 define install-aliases
283 while [ -n "$$1" ]; do \
284 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
285 rm -f $(DESTDIR)$$dir/$$2 && \
286 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
287 shift 2 || exit $$?; \
291 define install-relative-aliases
292 while [ -n "$$1" ]; do \
293 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
294 rm -f $(DESTDIR)$$dir/$$2 && \
295 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
296 shift 2 || exit $$?; \
300 INSTALL_EXEC_HOOKS += \
301 install-target-wants-hook \
302 install-directories-hook \
305 # ------------------------------------------------------------------------------
306 AM_V_M4 = $(AM_V_M4_$(V))
307 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
308 AM_V_M4_0 = @echo " M4 " $@;
310 AM_V_XSLT = $(AM_V_XSLT_$(V))
311 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
312 AM_V_XSLT_0 = @echo " XSLT " $@;
314 AM_V_GPERF = $(AM_V_GPERF_$(V))
315 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
316 AM_V_GPERF_0 = @echo " GPERF " $@;
318 AM_V_LN = $(AM_V_LN_$(V))
319 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
320 AM_V_LN_0 = @echo " LN " $@;
322 AM_V_RM = $(AM_V_RM_$(V))
323 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
324 AM_V_RM_0 = @echo " RM " $@;
326 # ------------------------------------------------------------------------------
330 systemd-ask-password \
331 systemd-tty-ask-password-agent \
332 systemd-machine-id-setup
338 systemd-detect-virt \
344 src/kernel-install/kernel-install
346 dist_kernelinstall_SCRIPTS = \
347 src/kernel-install/50-depmod.install \
348 src/kernel-install/90-loaderentry.install
350 rootlibexec_PROGRAMS = \
352 systemd-cgroups-agent \
354 systemd-update-utmp \
358 systemd-reply-password \
364 systemd-socket-proxyd
366 systemgenerator_PROGRAMS = \
367 systemd-getty-generator \
368 systemd-fstab-generator \
369 systemd-system-update-generator
371 dist_bashcompletion_DATA = \
372 shell-completion/bash/busctl \
373 shell-completion/bash/journalctl \
374 shell-completion/bash/systemctl \
375 shell-completion/bash/systemd-analyze \
376 shell-completion/bash/systemd-cat \
377 shell-completion/bash/systemd-cgls \
378 shell-completion/bash/systemd-cgtop \
379 shell-completion/bash/systemd-delta \
380 shell-completion/bash/systemd-detect-virt \
381 shell-completion/bash/systemd-nspawn \
382 shell-completion/bash/systemd-run \
383 shell-completion/bash/udevadm \
384 shell-completion/bash/kernel-install
386 dist_zshcompletion_DATA = \
387 shell-completion/zsh/_systemctl \
388 shell-completion/zsh/_journalctl \
389 shell-completion/zsh/_udevadm \
390 shell-completion/zsh/_kernel-install \
391 shell-completion/zsh/_systemd-nspawn \
392 shell-completion/zsh/_systemd-analyze \
393 shell-completion/zsh/_systemd-run \
394 shell-completion/zsh/_sd_hosts_or_user_at_host \
395 shell-completion/zsh/_systemd-delta \
396 shell-completion/zsh/_systemd
399 sysctl.d/50-default.conf
401 dist_systemunit_DATA = \
402 units/graphical.target \
403 units/multi-user.target \
404 units/emergency.service \
405 units/emergency.target \
406 units/sysinit.target \
411 units/local-fs.target \
412 units/local-fs-pre.target \
413 units/initrd.target \
414 units/initrd-fs.target \
415 units/initrd-root-fs.target \
416 units/remote-fs.target \
417 units/remote-fs-pre.target \
418 units/network.target \
419 units/network-pre.target \
420 units/network-online.target \
421 units/nss-lookup.target \
422 units/nss-user-lookup.target \
423 units/hibernate.target \
424 units/hybrid-sleep.target \
425 units/poweroff.target \
426 units/reboot.target \
427 units/rescue.target \
428 units/rpcbind.target \
429 units/time-sync.target \
430 units/shutdown.target \
432 units/umount.target \
433 units/sigpwr.target \
435 units/sockets.target \
436 units/busnames.target \
437 units/timers.target \
439 units/suspend.target \
441 units/slices.target \
444 units/systemd-initctl.socket \
445 units/systemd-shutdownd.socket \
446 units/syslog.socket \
447 units/dev-hugepages.mount \
448 units/dev-mqueue.mount \
449 units/sys-kernel-config.mount \
450 units/sys-kernel-debug.mount \
451 units/sys-fs-fuse-connections.mount \
453 units/printer.target \
455 units/bluetooth.target \
456 units/smartcard.target \
457 units/systemd-ask-password-wall.path \
458 units/systemd-ask-password-console.path \
459 units/systemd-udevd-control.socket \
460 units/systemd-udevd-kernel.socket \
461 units/system-update.target \
462 units/initrd-switch-root.target
464 nodist_systemunit_DATA = \
465 units/getty@.service \
466 units/serial-getty@.service \
467 units/console-shell.service \
468 units/console-getty.service \
469 units/container-getty@.service \
470 units/systemd-initctl.service \
471 units/systemd-shutdownd.service \
472 units/systemd-remount-fs.service \
473 units/systemd-update-utmp.service \
474 units/systemd-update-utmp-runlevel.service \
475 units/systemd-ask-password-wall.service \
476 units/systemd-ask-password-console.service \
477 units/systemd-sysctl.service \
478 units/emergency.service \
479 units/rescue.service \
480 units/user@.service \
481 units/systemd-hibernate.service \
482 units/systemd-hybrid-sleep.service \
483 units/systemd-suspend.service \
484 units/systemd-halt.service \
485 units/systemd-poweroff.service \
486 units/systemd-reboot.service \
487 units/systemd-kexec.service \
488 units/systemd-fsck@.service \
489 units/systemd-fsck-root.service \
490 units/systemd-udevd.service \
491 units/systemd-udev-trigger.service \
492 units/systemd-udev-settle.service \
493 units/debug-shell.service \
494 units/initrd-parse-etc.service \
495 units/initrd-cleanup.service \
496 units/initrd-udevadm-cleanup-db.service \
497 units/initrd-switch-root.service \
498 units/systemd-nspawn@.service
500 dist_userunit_DATA = \
501 units/user/basic.target \
502 units/user/default.target \
503 units/user/exit.target
505 nodist_userunit_DATA = \
506 units/user/systemd-exit.service
509 units/getty@.service.m4 \
510 units/serial-getty@.service.m4 \
511 units/console-shell.service.m4.in \
512 units/console-getty.service.m4.in \
513 units/container-getty@.service.m4.in \
514 units/rescue.service.m4.in \
515 units/systemd-initctl.service.in \
516 units/systemd-shutdownd.service.in \
517 units/systemd-remount-fs.service.in \
518 units/systemd-update-utmp.service.in \
519 units/systemd-update-utmp-runlevel.service.in \
520 units/systemd-ask-password-wall.service.in \
521 units/systemd-ask-password-console.service.in \
522 units/systemd-sysctl.service.in \
523 units/emergency.service.in \
524 units/systemd-halt.service.in \
525 units/systemd-poweroff.service.in \
526 units/systemd-reboot.service.in \
527 units/systemd-kexec.service.in \
528 units/user/systemd-exit.service.in \
529 units/systemd-fsck@.service.in \
530 units/systemd-fsck-root.service.in \
531 units/user@.service.in \
532 units/debug-shell.service.in \
533 units/systemd-hibernate.service.in \
534 units/systemd-hybrid-sleep.service.in \
535 units/systemd-suspend.service.in \
536 units/quotaon.service.in \
537 units/initrd-parse-etc.service.in \
538 units/initrd-cleanup.service.in \
539 units/initrd-udevadm-cleanup-db.service.in \
540 units/initrd-switch-root.service.in \
541 units/systemd-nspawn@.service.in
544 units/console-shell.service.m4 \
545 units/console-getty.service.m4 \
546 units/container-getty@.service.m4 \
547 units/rescue.service.m4 \
548 units/user@.service.m4
551 nodist_systemunit_DATA += \
552 units/rc-local.service \
553 units/halt-local.service
555 systemgenerator_PROGRAMS += \
556 systemd-sysv-generator \
557 systemd-rc-local-generator
561 units/rc-local.service.in \
562 units/halt-local.service.in
564 # automake is broken and can't handle files with a dash in front
565 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
567 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
569 units-uninstall-hook:
570 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
572 INSTALL_DATA_HOOKS += units-install-hook
573 UNINSTALL_DATA_HOOKS += units-uninstall-hook
582 src/libsystemd/sd-bus/PORTING-DBUS1 \
583 src/libsystemd/sd-bus/DIFFERENCES \
584 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
586 @INTLTOOL_POLICY_RULE@
588 # ------------------------------------------------------------------------------
593 include Makefile-man.am
595 .PHONY: man update-man-list
596 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
599 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
601 ${XML_FILES:.xml=.html}
603 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
620 $(AM_V_at)$(MKDIR_P) $(dir $@)
621 $(AM_V_LN)$(LN_S) -f ../../man $@
630 man/index.html: man/systemd.index.html
631 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
639 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
640 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
641 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
643 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
644 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
645 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
646 @echo "Makefile-man.am has been regenerated"
648 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
649 $(AM_V_at)$(MKDIR_P) $(dir $@)
650 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
652 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
653 $(AM_V_at)$(MKDIR_P) $(dir $@)
654 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
657 man/systemd.index.xml \
659 man/systemd.directives.xml
662 man/systemd.index.xml \
663 man/systemd.directives.xml
674 tools/make-man-index.py \
675 tools/make-directive-index.py \
676 tools/make-man-rules.py \
679 # ------------------------------------------------------------------------------
680 noinst_LTLIBRARIES += \
683 libsystemd_shared_la_SOURCES = \
684 src/shared/linux/auto_dev-ioctl.h \
685 src/shared/linux/fanotify.h \
686 src/shared/ioprio.h \
687 src/shared/missing.h \
688 src/shared/initreq.h \
689 src/shared/securebits.h \
690 src/shared/special.h \
694 src/shared/sparse-endian.h \
695 src/shared/refcnt.h \
696 src/shared/udev-util.h \
697 src/shared/bus-errors.h \
698 src/shared/device-nodes.c \
699 src/shared/device-nodes.h \
704 src/shared/architecture.c \
705 src/shared/architecture.h \
706 src/shared/efivars.c \
707 src/shared/efivars.h \
708 src/shared/path-util.c \
709 src/shared/path-util.h \
710 src/shared/time-util.c \
711 src/shared/time-util.h \
712 src/shared/hashmap.c \
713 src/shared/hashmap.h \
714 src/shared/siphash24.c \
715 src/shared/siphash24.h \
722 src/shared/sleep-config.c \
723 src/shared/sleep-config.h \
726 src/shared/env-util.c \
727 src/shared/env-util.h \
728 src/shared/strbuf.c \
729 src/shared/strbuf.h \
730 src/shared/strxcpyx.c \
731 src/shared/strxcpyx.h \
732 src/shared/conf-parser.c \
733 src/shared/conf-parser.h \
736 src/shared/ratelimit.h \
737 src/shared/ratelimit.c \
738 src/shared/exit-status.c \
739 src/shared/exit-status.h \
742 src/shared/gunicode.c \
743 src/shared/gunicode.h \
746 src/shared/socket-util.c \
747 src/shared/socket-util.h \
748 src/shared/conf-files.c \
749 src/shared/conf-files.h \
750 src/shared/cgroup-util.c \
751 src/shared/cgroup-util.h \
752 src/shared/cgroup-show.c \
753 src/shared/cgroup-show.h \
754 src/shared/unit-name.c \
755 src/shared/unit-name.h \
756 src/shared/utmp-wtmp.c \
757 src/shared/utmp-wtmp.h \
758 src/shared/watchdog.c \
759 src/shared/watchdog.h \
760 src/shared/spawn-ask-password-agent.c \
761 src/shared/spawn-ask-password-agent.h \
762 src/shared/replace-var.c \
763 src/shared/replace-var.h \
764 src/shared/spawn-polkit-agent.c \
765 src/shared/spawn-polkit-agent.h \
766 src/shared/clock-util.c \
767 src/shared/clock-util.h \
768 src/shared/time-dst.c \
769 src/shared/time-dst.h \
770 src/shared/calendarspec.c \
771 src/shared/calendarspec.h \
772 src/shared/fileio.c \
773 src/shared/fileio.h \
774 src/shared/output-mode.h \
775 src/shared/MurmurHash2.c \
776 src/shared/MurmurHash2.h \
777 src/shared/acpi-fpdt.h \
778 src/shared/acpi-fpdt.c \
779 src/shared/boot-timestamps.h \
780 src/shared/boot-timestamps.c \
783 src/shared/smack-util.c \
784 src/shared/smack-util.h \
785 src/shared/apparmor-util.c \
786 src/shared/apparmor-util.h \
787 src/shared/ima-util.c \
788 src/shared/ima-util.h \
789 src/shared/ptyfwd.c \
790 src/shared/ptyfwd.h \
791 src/shared/errno-list.c \
792 src/shared/errno-list.h \
793 src/shared/af-list.c \
794 src/shared/af-list.h \
799 src/shared/condition-util.c \
800 src/shared/condition-util.h \
801 src/shared/bus-label.c \
802 src/shared/bus-label.h \
804 src/shared/generator.h \
805 src/shared/generator.c \
806 src/shared/clean-ipc.h \
807 src/shared/clean-ipc.c \
808 src/shared/login-shared.c \
809 src/shared/login-shared.h \
814 src/shared/eventfd-util.c \
815 src/shared/eventfd-util.h \
819 nodist_libsystemd_shared_la_SOURCES = \
820 src/shared/errno-from-name.h \
821 src/shared/errno-to-name.h \
822 src/shared/af-from-name.h \
823 src/shared/af-to-name.h
825 libsystemd_shared_la_CFLAGS = \
829 # ------------------------------------------------------------------------------
830 noinst_LTLIBRARIES += \
833 libsystemd_units_la_SOURCES = \
834 src/shared/install.c \
835 src/shared/install.h \
836 src/shared/install-printf.c \
837 src/shared/install-printf.h \
838 src/shared/path-lookup.c \
839 src/shared/path-lookup.h \
840 src/shared/specifier.c \
841 src/shared/specifier.h
843 # ------------------------------------------------------------------------------
844 noinst_LTLIBRARIES += \
847 libsystemd_label_la_SOURCES = \
848 src/shared/socket-label.c \
851 src/shared/selinux-util.c \
852 src/shared/selinux-util.h \
853 src/shared/mkdir-label.c \
854 src/shared/ask-password-api.c \
855 src/shared/ask-password-api.h \
856 src/shared/fileio-label.c \
857 src/shared/fileio-label.h \
858 src/shared/dev-setup.c \
859 src/shared/dev-setup.h
861 libsystemd_label_la_CFLAGS = \
865 libsystemd_label_la_LIBADD = \
868 # ------------------------------------------------------------------------------
871 noinst_LTLIBRARIES += \
872 libsystemd-seccomp.la
874 libsystemd_seccomp_la_SOURCES = \
875 src/shared/seccomp-util.h \
876 src/shared/seccomp-util.c
878 libsystemd_seccomp_la_CFLAGS = \
882 libsystemd_seccomp_la_LIBADD = \
886 # ------------------------------------------------------------------------------
887 noinst_LTLIBRARIES += \
890 libsystemd_logs_la_SOURCES = \
891 src/shared/logs-show.c \
892 src/shared/logs-show.h
894 # ------------------------------------------------------------------------------
895 noinst_LTLIBRARIES += \
896 libsystemd-capability.la
898 libsystemd_capability_la_SOURCES = \
899 src/shared/capability.c \
900 src/shared/capability.h
902 libsystemd_capability_la_CFLAGS = \
906 libsystemd_capability_la_LIBADD = \
909 # ------------------------------------------------------------------------------
911 noinst_LTLIBRARIES += \
914 libsystemd_acl_la_SOURCES = \
915 src/shared/acl-util.c \
916 src/shared/acl-util.h
918 libsystemd_acl_la_CFLAGS = \
922 libsystemd_acl_la_LIBADD = \
926 # ------------------------------------------------------------------------------
927 noinst_LTLIBRARIES += \
930 libsystemd_core_la_SOURCES = \
933 src/core/unit-printf.c \
934 src/core/unit-printf.h \
939 src/core/transaction.c \
940 src/core/transaction.h \
941 src/core/load-fragment.c \
942 src/core/load-fragment.h \
951 src/core/snapshot.c \
952 src/core/snapshot.h \
957 src/core/automount.c \
958 src/core/automount.h \
969 src/core/load-dropin.c \
970 src/core/load-dropin.h \
977 src/core/dbus-manager.c \
978 src/core/dbus-manager.h \
979 src/core/dbus-unit.c \
980 src/core/dbus-unit.h \
981 src/core/dbus-job.c \
982 src/core/dbus-job.h \
983 src/core/dbus-service.c \
984 src/core/dbus-service.h \
985 src/core/dbus-socket.c \
986 src/core/dbus-socket.h \
987 src/core/dbus-busname.c \
988 src/core/dbus-busname.h \
989 src/core/dbus-target.c \
990 src/core/dbus-target.h \
991 src/core/dbus-snapshot.c \
992 src/core/dbus-snapshot.h \
993 src/core/dbus-device.c \
994 src/core/dbus-device.h \
995 src/core/dbus-mount.c \
996 src/core/dbus-mount.h \
997 src/core/dbus-automount.c \
998 src/core/dbus-automount.h \
999 src/core/dbus-swap.c \
1000 src/core/dbus-swap.h \
1001 src/core/dbus-timer.c \
1002 src/core/dbus-timer.h \
1003 src/core/dbus-path.c \
1004 src/core/dbus-path.h \
1005 src/core/dbus-slice.c \
1006 src/core/dbus-slice.h \
1007 src/core/dbus-scope.c \
1008 src/core/dbus-scope.h \
1009 src/core/dbus-execute.c \
1010 src/core/dbus-execute.h \
1011 src/core/dbus-kill.c \
1012 src/core/dbus-kill.h \
1013 src/core/dbus-cgroup.c \
1014 src/core/dbus-cgroup.h \
1017 src/core/selinux-access.c \
1018 src/core/selinux-access.h \
1019 src/core/selinux-setup.c \
1020 src/core/selinux-setup.h \
1021 src/core/smack-setup.c \
1022 src/core/smack-setup.h \
1023 src/core/ima-setup.c \
1024 src/core/ima-setup.h \
1025 src/core/locale-setup.h \
1026 src/core/locale-setup.c \
1027 src/core/hostname-setup.c \
1028 src/core/hostname-setup.h \
1029 src/core/machine-id-setup.c \
1030 src/core/machine-id-setup.h \
1031 src/core/mount-setup.c \
1032 src/core/mount-setup.h \
1033 src/core/loopback-setup.h \
1034 src/core/loopback-setup.c \
1035 src/core/condition.c \
1036 src/core/condition.h \
1037 src/core/namespace.c \
1038 src/core/namespace.h \
1040 src/core/sysfs-show.h \
1041 src/core/switch-root.h \
1042 src/core/switch-root.c \
1043 src/core/killall.h \
1044 src/core/killall.c \
1045 src/core/audit-fd.c \
1046 src/core/audit-fd.h \
1047 src/core/show-status.c \
1048 src/core/show-status.h
1051 libsystemd_core_la_SOURCES += \
1052 src/core/kmod-setup.c \
1053 src/core/kmod-setup.h
1056 nodist_libsystemd_core_la_SOURCES = \
1057 src/core/load-fragment-gperf.c \
1058 src/core/load-fragment-gperf-nulstr.c
1060 libsystemd_core_la_CFLAGS = \
1066 $(APPARMOR_CFLAGS) \
1070 libsystemd_core_la_LIBADD = \
1071 libsystemd-capability.la \
1072 libsystemd-units.la \
1073 libsystemd-label.la \
1074 libudev-internal.la \
1075 libsystemd-shared.la \
1076 libsystemd-internal.la \
1085 libsystemd_core_la_LIBADD += \
1086 libsystemd-seccomp.la
1089 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1090 $(AM_V_at)$(MKDIR_P) $(dir $@)
1091 $(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 ";" }' < $< > $@
1094 src/core/load-fragment-gperf.gperf.m4
1097 src/core/load-fragment-gperf.gperf \
1098 src/core/load-fragment-gperf.c \
1099 src/core/load-fragment-gperf-nulstr.c \
1100 src/shared/errno-list.txt \
1101 src/shared/errno-from-name.gperf \
1102 src/shared/af-list.txt \
1103 src/shared/af-from-name.gperf
1106 src/shared/errno-from-name.h \
1107 src/shared/errno-to-name.h \
1108 src/shared/af-from-name.h \
1109 src/shared/af-to-name.h
1111 src/shared/errno-list.txt:
1112 $(AM_V_at)$(MKDIR_P) $(dir $@)
1113 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1115 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1116 $(AM_V_at)$(MKDIR_P) $(dir $@)
1117 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1119 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1120 $(AM_V_at)$(MKDIR_P) $(dir $@)
1121 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1123 src/shared/errno-to-name.h: src/shared/errno-list.txt
1124 $(AM_V_at)$(MKDIR_P) $(dir $@)
1125 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1127 src/shared/af-list.txt:
1128 $(AM_V_at)$(MKDIR_P) $(dir $@)
1129 $(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; }' > $@
1131 src/shared/af-from-name.gperf: src/shared/af-list.txt
1132 $(AM_V_at)$(MKDIR_P) $(dir $@)
1133 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1135 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1136 $(AM_V_at)$(MKDIR_P) $(dir $@)
1137 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1139 src/shared/af-to-name.h: src/shared/af-list.txt
1140 $(AM_V_at)$(MKDIR_P) $(dir $@)
1141 $(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 "};"}' < $< > $@
1143 # ------------------------------------------------------------------------------
1152 libsystemd-core.la \
1155 dist_pkgsysconf_DATA += \
1156 src/core/system.conf \
1159 dist_dbuspolicy_DATA += \
1160 src/core/org.freedesktop.systemd1.conf
1162 dist_dbussystemservice_DATA += \
1163 src/core/org.freedesktop.systemd1.service
1165 polkitpolicy_in_in_files += \
1166 src/core/org.freedesktop.systemd1.policy.in.in
1168 pkgconfigdata_DATA = \
1171 nodist_rpmmacros_DATA = \
1172 src/core/macros.systemd
1175 src/core/systemd.pc.in \
1176 src/core/macros.systemd.in
1179 src/core/macros.systemd \
1180 src/core/org.freedesktop.systemd1.policy.in
1182 # ------------------------------------------------------------------------------
1221 test-strip-tab-ansi \
1234 test/sched_idle_bad.service \
1235 test/sched_idle_ok.service \
1236 test/sched_rr_bad.service \
1237 test/sched_rr_ok.service \
1238 test/sched_rr_change.service \
1240 test/daughter.service \
1244 src/test/test-helper.h
1246 test_device_nodes_SOURCES = \
1247 src/test/test-device-nodes.c
1249 test_device_nodes_LDADD = \
1250 libsystemd-shared.la
1252 test_engine_SOURCES = \
1253 src/test/test-engine.c
1255 test_engine_CFLAGS = \
1259 test_engine_LDADD = \
1260 libsystemd-core.la \
1263 test_job_type_SOURCES = \
1264 src/test/test-job-type.c
1266 test_job_type_CFLAGS = \
1270 test_job_type_LDADD = \
1271 libsystemd-core.la \
1284 test_loopback_SOURCES = \
1285 src/test/test-loopback.c
1287 test_loopback_LDADD = \
1290 test_hostname_SOURCES = \
1291 src/test/test-hostname.c
1293 test_hostname_LDADD = \
1300 test_boot_timestamp_SOURCES = \
1301 src/test/test-boot-timestamps.c
1303 test_boot_timestamp_LDADD = \
1304 libsystemd-shared.la
1307 test_unit_name_SOURCES = \
1308 src/test/test-unit-name.c
1310 test_unit_name_CFLAGS = \
1314 test_unit_name_LDADD = \
1315 libsystemd-core.la \
1318 test_unit_file_SOURCES = \
1319 src/test/test-unit-file.c
1321 test_unit_file_CFLAGS = \
1325 test_unit_file_LDADD = \
1326 libsystemd-core.la \
1329 test_utf8_SOURCES = \
1330 src/test/test-utf8.c
1333 libsystemd-shared.la
1335 test_util_SOURCES = \
1336 src/test/test-util.c
1341 test_ring_SOURCES = \
1342 src/test/test-ring.c
1347 test_tmpfiles_SOURCES = \
1348 src/test/test-tmpfiles.c
1350 test_tmpfiles_LDADD = \
1351 libsystemd-shared.la
1353 test_namespace_SOURCES = \
1354 src/test/test-namespace.c
1356 test_namespace_LDADD = \
1359 test_hashmap_SOURCES = \
1360 src/test/test-hashmap.c
1362 test_hashmap_LDADD = \
1365 test_xml_SOURCES = \
1369 libsystemd-shared.la
1371 test_list_SOURCES = \
1372 src/test/test-list.c
1377 test_tables_SOURCES = \
1378 src/test/test-tables.c \
1379 src/shared/test-tables.h
1381 test_tables_CFLAGS = \
1385 test_tables_LDADD = \
1386 libsystemd-logs.la \
1387 libsystemd-journal-internal.la \
1388 libsystemd-core.la \
1391 test_prioq_SOURCES = \
1392 src/test/test-prioq.c
1394 test_prioq_LDADD = \
1397 test_fileio_SOURCES = \
1398 src/test/test-fileio.c
1400 test_fileio_LDADD = \
1403 test_time_SOURCES = \
1404 src/test/test-time.c
1409 test_architecture_SOURCES = \
1410 src/test/test-architecture.c
1412 test_architecture_LDADD = \
1413 libsystemd-shared.la
1415 test_log_SOURCES = \
1421 test_ipcrm_SOURCES = \
1422 src/test/test-ipcrm.c
1424 test_ipcrm_LDADD = \
1425 libsystemd-shared.la \
1428 test_rtnl_manual_SOURCES = \
1429 src/test/test-rtnl-manual.c
1431 test_rtnl_manual_CFLAGS = \
1435 test_rtnl_manual_LDADD = \
1436 libsystemd-internal.la \
1437 libsystemd-shared.la \
1440 test_ellipsize_SOURCES = \
1441 src/test/test-ellipsize.c
1443 test_ellipsize_LDADD = \
1446 test_date_SOURCES = \
1447 src/test/test-date.c
1452 test_sleep_SOURCES = \
1453 src/test/test-sleep.c
1455 test_sleep_LDADD = \
1458 test_replace_var_SOURCES = \
1459 src/test/test-replace-var.c
1461 test_replace_var_LDADD = \
1462 libsystemd-shared.la
1464 test_calendarspec_SOURCES = \
1465 src/test/test-calendarspec.c
1467 test_calendarspec_LDADD = \
1468 libsystemd-shared.la
1470 test_strip_tab_ansi_SOURCES = \
1471 src/test/test-strip-tab-ansi.c
1473 test_strip_tab_ansi_LDADD = \
1474 libsystemd-shared.la
1476 test_daemon_SOURCES = \
1477 src/test/test-daemon.c
1479 test_daemon_LDADD = \
1480 libsystemd-internal.la \
1481 libsystemd-shared.la
1483 test_cgroup_SOURCES = \
1484 src/test/test-cgroup.c
1486 test_cgroup_LDADD = \
1487 libsystemd-label.la \
1488 libsystemd-shared.la \
1489 libsystemd-internal.la
1491 test_cgroup_mask_SOURCES = \
1492 src/test/test-cgroup-mask.c
1494 test_cgroup_mask_CPPFLAGS = \
1496 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1498 test_cgroup_mask_CFLAGS = \
1502 test_cgroup_mask_LDADD = \
1503 libsystemd-core.la \
1506 test_cgroup_util_SOURCES = \
1507 src/test/test-cgroup-util.c
1509 test_cgroup_util_LDADD = \
1510 libsystemd-label.la \
1511 libsystemd-internal.la \
1512 libsystemd-shared.la
1514 test_env_replace_SOURCES = \
1515 src/test/test-env-replace.c
1517 test_env_replace_LDADD = \
1518 libsystemd-shared.la
1520 test_strbuf_SOURCES = \
1521 src/test/test-strbuf.c
1523 test_strbuf_LDADD = \
1524 libsystemd-shared.la
1526 test_strv_SOURCES = \
1527 src/test/test-strv.c
1530 libsystemd-units.la \
1531 libsystemd-internal.la \
1532 libsystemd-shared.la
1534 test_path_util_SOURCES = \
1535 src/test/test-path-util.c
1537 test_path_util_LDADD = \
1538 libsystemd-shared.la
1540 test_strxcpyx_SOURCES = \
1541 src/test/test-strxcpyx.c
1543 test_strxcpyx_LDADD = \
1544 libsystemd-shared.la
1546 test_install_SOURCES = \
1547 src/test/test-install.c
1549 test_install_LDADD = \
1550 libsystemd-units.la \
1551 libsystemd-label.la \
1552 libsystemd-shared.la \
1553 libsystemd-internal.la
1555 test_watchdog_SOURCES = \
1556 src/test/test-watchdog.c
1558 test_watchdog_LDADD = \
1559 libsystemd-shared.la
1561 test_sched_prio_SOURCES = \
1562 src/test/test-sched-prio.c
1564 test_sched_prio_CPPFLAGS = \
1566 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1568 test_sched_prio_CFLAGS = \
1572 test_sched_prio_LDADD = \
1573 libsystemd-core.la \
1576 # ------------------------------------------------------------------------------
1577 ## .PHONY so it always rebuilds it
1578 .PHONY: coverage lcov-run lcov-report coverage-sync
1580 # run lcov from scratch, always
1585 coverage_dir = coverage
1586 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1589 # reset run coverage tests
1591 @rm -rf $(coverage_dir)
1592 lcov $(coverage_opts) --zerocounters
1595 # generate report based on current coverage data
1597 $(MKDIR_P) $(coverage_dir)
1598 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1599 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1600 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1601 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1603 # lcov doesn't work properly with vpath builds, make sure that bad
1604 # output is not uploaded by mistake.
1605 coverage-sync: coverage
1606 test "$(builddir)" = "$(srcdir)"
1607 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1610 lcov-run lcov-report:
1611 echo "Need to reconfigure with --enable-coverage"
1614 # ------------------------------------------------------------------------------
1615 systemd_analyze_SOURCES = \
1616 src/analyze/analyze.c
1618 systemd_analyze_LDADD = \
1619 libsystemd-internal.la \
1620 libsystemd-shared.la
1622 # ------------------------------------------------------------------------------
1623 systemd_initctl_SOURCES = \
1624 src/initctl/initctl.c
1626 systemd_initctl_LDADD = \
1627 libsystemd-internal.la \
1628 libsystemd-shared.la
1630 # ------------------------------------------------------------------------------
1631 systemd_update_utmp_SOURCES = \
1632 src/update-utmp/update-utmp.c
1634 systemd_update_utmp_CFLAGS = \
1638 systemd_update_utmp_LDADD = \
1639 libsystemd-internal.la \
1640 libsystemd-shared.la \
1643 # ------------------------------------------------------------------------------
1644 systemd_shutdownd_SOURCES = \
1645 src/shutdownd/shutdownd.c
1647 systemd_shutdownd_LDADD = \
1648 libsystemd-label.la \
1649 libsystemd-internal.la \
1650 libsystemd-shared.la
1653 src/systemd/sd-shutdown.h
1655 # ------------------------------------------------------------------------------
1656 systemd_shutdown_SOURCES = \
1659 src/core/shutdown.c \
1660 src/core/mount-setup.c \
1661 src/core/mount-setup.h \
1662 src/core/killall.h \
1665 systemd_shutdown_LDADD = \
1666 libsystemd-label.la \
1667 libudev-internal.la \
1668 libsystemd-shared.la
1670 # ------------------------------------------------------------------------------
1672 systemd_modules_load_SOURCES = \
1673 src/modules-load/modules-load.c
1675 systemd_modules_load_CFLAGS = \
1679 systemd_modules_load_LDADD = \
1680 libsystemd-shared.la \
1683 rootlibexec_PROGRAMS += \
1684 systemd-modules-load
1686 nodist_systemunit_DATA += \
1687 units/systemd-modules-load.service
1689 SYSINIT_TARGET_WANTS += \
1690 systemd-modules-load.service
1693 nodist_systemunit_DATA += \
1694 units/kmod-static-nodes.service
1696 SYSINIT_TARGET_WANTS += \
1697 kmod-static-nodes.service
1702 units/systemd-modules-load.service.in \
1703 units/kmod-static-nodes.service.in
1705 # ------------------------------------------------------------------------------
1707 systemd_tmpfiles_SOURCES = \
1708 src/tmpfiles/tmpfiles.c
1710 systemd_tmpfiles_LDADD = \
1711 libsystemd-units.la \
1712 libsystemd-label.la \
1713 libsystemd-capability.la \
1714 libsystemd-internal.la \
1715 libsystemd-shared.la
1717 rootbin_PROGRAMS += \
1720 dist_systemunit_DATA += \
1721 units/systemd-tmpfiles-clean.timer
1723 nodist_systemunit_DATA += \
1724 units/systemd-tmpfiles-setup-dev.service \
1725 units/systemd-tmpfiles-setup.service \
1726 units/systemd-tmpfiles-clean.service
1728 dist_tmpfiles_DATA = \
1729 tmpfiles.d/systemd.conf \
1730 tmpfiles.d/systemd-nologin.conf \
1731 tmpfiles.d/tmp.conf \
1732 tmpfiles.d/x11.conf \
1736 dist_tmpfiles_DATA += \
1737 tmpfiles.d/legacy.conf
1740 SYSINIT_TARGET_WANTS += \
1741 systemd-tmpfiles-setup-dev.service \
1742 systemd-tmpfiles-setup.service
1744 dist_zshcompletion_DATA += \
1745 shell-completion/zsh/_systemd-tmpfiles
1747 TIMERS_TARGET_WANTS += \
1748 systemd-tmpfiles-clean.timer
1752 $(sysconfdir)/tmpfiles.d
1756 units/systemd-tmpfiles-setup-dev.service.in \
1757 units/systemd-tmpfiles-setup.service.in \
1758 units/systemd-tmpfiles-clean.service.in
1760 # ------------------------------------------------------------------------------
1762 systemd_sysusers_SOURCES = \
1763 src/sysusers/sysusers.c
1765 systemd_sysusers_LDADD = \
1766 libsystemd-units.la \
1767 libsystemd-label.la \
1768 libsystemd-capability.la \
1769 libsystemd-internal.la \
1770 libsystemd-shared.la
1772 rootbin_PROGRAMS += \
1775 nodist_sysusers_DATA = \
1776 sysusers.d/systemd.conf
1779 sysusers.d/systemd.conf.in
1785 # ------------------------------------------------------------------------------
1786 systemd_machine_id_setup_SOURCES = \
1787 src/machine-id-setup/machine-id-setup-main.c \
1788 src/core/machine-id-setup.c \
1789 src/core/machine-id-setup.h
1791 systemd_machine_id_setup_LDADD = \
1792 libsystemd-label.la \
1793 libsystemd-internal.la \
1794 libsystemd-shared.la
1796 # ------------------------------------------------------------------------------
1797 systemd_sysctl_SOURCES = \
1800 systemd_sysctl_LDADD = \
1801 libsystemd-shared.la
1803 # ------------------------------------------------------------------------------
1804 systemd_sleep_SOURCES = \
1807 systemd_sleep_LDADD = \
1808 libsystemd-shared.la
1810 # ------------------------------------------------------------------------------
1811 systemd_fsck_SOURCES = \
1814 systemd_fsck_LDADD = \
1815 libsystemd-internal.la \
1816 libudev-internal.la \
1817 libsystemd-shared.la
1819 # ------------------------------------------------------------------------------
1820 systemd_ac_power_SOURCES = \
1821 src/ac-power/ac-power.c
1823 systemd_ac_power_LDADD = \
1824 libudev-internal.la \
1825 libsystemd-shared.la
1827 # ------------------------------------------------------------------------------
1828 systemd_detect_virt_SOURCES = \
1829 src/detect-virt/detect-virt.c
1831 systemd_detect_virt_LDADD = \
1832 libsystemd-shared.la
1834 INSTALL_EXEC_HOOKS += \
1835 systemd-detect-virt-install-hook
1837 # ------------------------------------------------------------------------------
1838 systemd_delta_SOURCES = \
1841 systemd_delta_LDADD = \
1842 libsystemd-shared.la
1844 # ------------------------------------------------------------------------------
1845 systemd_getty_generator_SOURCES = \
1846 src/getty-generator/getty-generator.c
1848 systemd_getty_generator_LDADD = \
1849 libsystemd-label.la \
1850 libsystemd-shared.la
1852 # ------------------------------------------------------------------------------
1853 systemd_fstab_generator_SOURCES = \
1854 src/fstab-generator/fstab-generator.c \
1855 src/core/mount-setup.c
1857 systemd_fstab_generator_LDADD = \
1858 libsystemd-label.la \
1859 libsystemd-shared.la
1861 # ------------------------------------------------------------------------------
1862 systemd_system_update_generator_SOURCES = \
1863 src/system-update-generator/system-update-generator.c
1865 systemd_system_update_generator_LDADD = \
1866 libsystemd-label.la \
1867 libsystemd-shared.la
1870 # ------------------------------------------------------------------------------
1871 systemgenerator_PROGRAMS += \
1872 systemd-efi-boot-generator
1874 systemd_efi_boot_generator_SOURCES = \
1875 src/efi-boot-generator/efi-boot-generator.c
1877 systemd_efi_boot_generator_LDADD = \
1878 libsystemd-label.la \
1879 libsystemd-shared.la
1881 # ------------------------------------------------------------------------------
1884 src/boot/boot-loader.h \
1885 src/boot/bootctl.c \
1886 src/boot/boot-loader.c \
1890 libsystemd-shared.la \
1891 libsystemd-internal.la
1896 dist_bashcompletion_DATA += \
1897 shell-completion/bash/bootctl
1899 dist_zshcompletion_DATA += \
1900 shell-completion/zsh/_bootctl
1904 # ------------------------------------------------------------------------------
1906 systemgenerator_PROGRAMS += \
1907 systemd-gpt-auto-generator
1909 systemd_gpt_auto_generator_SOURCES = \
1910 src/gpt-auto-generator/gpt-auto-generator.c \
1911 src/shared/blkid-util.h
1913 systemd_gpt_auto_generator_LDADD = \
1914 libsystemd-label.la \
1915 libsystemd-internal.la \
1916 libudev-internal.la \
1917 libsystemd-shared.la \
1920 systemd_gpt_auto_generator_CFLAGS = \
1925 # ------------------------------------------------------------------------------
1927 systemgenerator_PROGRAMS += \
1928 systemd-dbus1-generator
1930 systemd_dbus1_generator_SOURCES = \
1931 src/dbus1-generator/dbus1-generator.c
1933 systemd_dbus1_generator_LDADD = \
1934 libsystemd-label.la \
1935 libsystemd-shared.la \
1936 libsystemd-internal.la
1938 dbus1-generator-install-hook:
1939 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
1940 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1941 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1943 dbus1-generator-uninstall-hook:
1944 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1946 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1947 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1950 # ------------------------------------------------------------------------------
1951 systemd_sysv_generator_SOURCES = \
1952 src/sysv-generator/sysv-generator.c
1954 systemd_sysv_generator_LDADD = \
1955 libsystemd-core.la \
1956 libsystemd-label.la \
1957 libsystemd-shared.la
1959 # ------------------------------------------------------------------------------
1960 systemd_rc_local_generator_SOURCES = \
1961 src/rc-local-generator/rc-local-generator.c
1963 systemd_rc_local_generator_LDADD = \
1964 libsystemd-label.la \
1965 libsystemd-shared.la
1967 # ------------------------------------------------------------------------------
1968 systemd_remount_fs_SOURCES = \
1969 src/remount-fs/remount-fs.c \
1970 src/core/mount-setup.c \
1971 src/core/mount-setup.h
1973 systemd_remount_fs_LDADD = \
1974 libsystemd-label.la \
1975 libsystemd-shared.la
1977 # ------------------------------------------------------------------------------
1978 systemd_cgroups_agent_SOURCES = \
1979 src/cgroups-agent/cgroups-agent.c
1981 systemd_cgroups_agent_LDADD = \
1982 libsystemd-internal.la \
1983 libsystemd-shared.la
1985 # ------------------------------------------------------------------------------
1986 systemctl_SOURCES = \
1987 src/systemctl/systemctl.c
1990 libsystemd-units.la \
1991 libsystemd-label.la \
1992 libsystemd-internal.la \
1993 libsystemd-logs.la \
1994 libsystemd-journal-internal.la \
1995 libsystemd-shared.la
1997 # ------------------------------------------------------------------------------
1998 systemd_notify_SOURCES = \
1999 src/notify/notify.c \
2000 src/readahead/sd-readahead.c
2002 systemd_notify_LDADD = \
2003 libsystemd-internal.la \
2004 libsystemd-shared.la
2006 # ------------------------------------------------------------------------------
2007 systemd_ask_password_SOURCES = \
2008 src/ask-password/ask-password.c
2010 systemd_ask_password_LDADD = \
2011 libsystemd-label.la \
2012 libsystemd-shared.la
2014 # ------------------------------------------------------------------------------
2015 systemd_reply_password_SOURCES = \
2016 src/reply-password/reply-password.c
2018 systemd_reply_password_LDADD = \
2019 libsystemd-shared.la
2021 # ------------------------------------------------------------------------------
2022 systemd_cgls_SOURCES = \
2025 systemd_cgls_LDADD = \
2026 libsystemd-internal.la \
2027 libsystemd-shared.la
2029 # ------------------------------------------------------------------------------
2030 systemd_cgtop_SOURCES = \
2033 systemd_cgtop_LDADD = \
2034 libsystemd-shared.la
2036 # ------------------------------------------------------------------------------
2037 systemd_nspawn_SOURCES = \
2038 src/nspawn/nspawn.c \
2039 src/core/mount-setup.c \
2040 src/core/mount-setup.h \
2041 src/core/loopback-setup.c \
2042 src/core/loopback-setup.h
2044 systemd_nspawn_CFLAGS = \
2049 systemd_nspawn_LDADD = \
2050 libsystemd-label.la \
2051 libsystemd-capability.la \
2052 libsystemd-internal.la \
2053 libudev-internal.la \
2054 libsystemd-shared.la \
2058 systemd_nspawn_LDADD += \
2059 libsystemd-seccomp.la \
2063 # ------------------------------------------------------------------------------
2064 systemd_run_SOURCES = \
2067 systemd_run_LDADD = \
2068 libsystemd-label.la \
2069 libsystemd-capability.la \
2070 libsystemd-internal.la \
2071 libsystemd-shared.la
2073 # ------------------------------------------------------------------------------
2074 systemd_bus_proxyd_SOURCES = \
2075 src/bus-proxyd/bus-proxyd.c \
2076 src/bus-proxyd/bus-policy.c \
2077 src/bus-proxyd/bus-policy.h
2079 systemd_bus_proxyd_LDADD = \
2080 libsystemd-capability.la \
2081 libsystemd-internal.la \
2082 libsystemd-shared.la
2084 bus-proxyd-install-hook:
2085 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2086 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2087 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2089 bus-proxyd-uninstall-hook:
2090 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2092 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2093 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2096 nodist_systemunit_DATA += \
2097 units/systemd-bus-proxyd@.service
2099 dist_systemunit_DATA += \
2100 units/systemd-bus-proxyd.socket
2102 dist_userunit_DATA += \
2103 units/user/systemd-bus-proxyd.socket \
2104 units/user/systemd-bus-proxyd@.service
2108 units/systemd-bus-proxyd@.service.in
2110 # ------------------------------------------------------------------------------
2111 systemd_tty_ask_password_agent_SOURCES = \
2112 src/tty-ask-password-agent/tty-ask-password-agent.c
2114 systemd_tty_ask_password_agent_LDADD = \
2115 libsystemd-label.la \
2116 libsystemd-shared.la
2118 # ------------------------------------------------------------------------------
2119 libsystemd_internal_la_SOURCES = \
2120 src/systemd/sd-bus.h \
2121 src/systemd/sd-bus-protocol.h \
2122 src/systemd/sd-bus-vtable.h \
2123 src/systemd/sd-memfd.h \
2124 src/systemd/sd-utf8.h \
2125 src/systemd/sd-event.h \
2126 src/systemd/sd-rtnl.h \
2127 src/systemd/sd-resolve.h \
2128 src/systemd/sd-login.h \
2129 src/systemd/sd-id128.h \
2130 src/systemd/sd-daemon.h \
2131 src/libsystemd/sd-bus/sd-bus.c \
2132 src/libsystemd/sd-bus/bus-control.c \
2133 src/libsystemd/sd-bus/bus-control.h \
2134 src/libsystemd/sd-bus/bus-error.c \
2135 src/libsystemd/sd-bus/bus-error.h \
2136 src/libsystemd/sd-bus/bus-internal.c \
2137 src/libsystemd/sd-bus/bus-internal.h \
2138 src/libsystemd/sd-bus/bus-socket.c \
2139 src/libsystemd/sd-bus/bus-socket.h \
2140 src/libsystemd/sd-bus/bus-kernel.c \
2141 src/libsystemd/sd-bus/bus-kernel.h \
2142 src/libsystemd/sd-bus/bus-container.c \
2143 src/libsystemd/sd-bus/bus-container.h \
2144 src/libsystemd/sd-bus/bus-message.c \
2145 src/libsystemd/sd-bus/bus-message.h \
2146 src/libsystemd/sd-bus/bus-creds.c \
2147 src/libsystemd/sd-bus/bus-creds.h \
2148 src/libsystemd/sd-bus/bus-signature.c \
2149 src/libsystemd/sd-bus/bus-signature.h \
2150 src/libsystemd/sd-bus/bus-type.c \
2151 src/libsystemd/sd-bus/bus-type.h \
2152 src/libsystemd/sd-bus/bus-match.c \
2153 src/libsystemd/sd-bus/bus-match.h \
2154 src/libsystemd/sd-bus/bus-bloom.c \
2155 src/libsystemd/sd-bus/bus-bloom.h \
2156 src/libsystemd/sd-bus/bus-introspect.c \
2157 src/libsystemd/sd-bus/bus-introspect.h \
2158 src/libsystemd/sd-bus/bus-objects.c \
2159 src/libsystemd/sd-bus/bus-objects.h \
2160 src/libsystemd/sd-bus/bus-gvariant.c \
2161 src/libsystemd/sd-bus/bus-gvariant.h \
2162 src/libsystemd/sd-bus/bus-convenience.c \
2163 src/libsystemd/sd-bus/bus-track.c \
2164 src/libsystemd/sd-bus/bus-track.h \
2165 src/libsystemd/sd-bus/bus-util.c \
2166 src/libsystemd/sd-bus/bus-util.h \
2167 src/libsystemd/sd-bus/bus-slot.c \
2168 src/libsystemd/sd-bus/bus-slot.h \
2169 src/libsystemd/sd-bus/bus-protocol.h \
2170 src/libsystemd/sd-bus/kdbus.h \
2171 src/libsystemd/sd-bus/sd-memfd.c \
2172 src/libsystemd/sd-utf8/sd-utf8.c \
2173 src/libsystemd/sd-event/sd-event.c \
2174 src/libsystemd/sd-event/event-util.h \
2175 src/libsystemd/sd-rtnl/sd-rtnl.c \
2176 src/libsystemd/sd-rtnl/rtnl-internal.h \
2177 src/libsystemd/sd-rtnl/rtnl-message.c \
2178 src/libsystemd/sd-rtnl/rtnl-types.h \
2179 src/libsystemd/sd-rtnl/rtnl-types.c \
2180 src/libsystemd/sd-rtnl/rtnl-util.h \
2181 src/libsystemd/sd-rtnl/rtnl-util.c \
2182 src/libsystemd/sd-id128/sd-id128.c \
2183 src/libsystemd/sd-daemon/sd-daemon.c \
2184 src/libsystemd/sd-login/sd-login.c
2186 nodist_libsystemd_internal_la_SOURCES = \
2187 src/libsystemd/libsystemd.sym \
2188 src/libsystemd/sd-bus/bus-error-mapping.c
2190 libsystemd_internal_la_CFLAGS = \
2194 libsystemd_internal_la_LIBADD = \
2197 libsystemd_resolve_la_SOURCES = \
2198 src/libsystemd/sd-resolve/sd-resolve.c \
2199 src/libsystemd/sd-resolve/resolve-util.h
2201 libsystemd_resolve_la_CFLAGS = \
2205 libsystemd_resolve_la_LIBADD = \
2208 noinst_LTLIBRARIES += \
2209 libsystemd-internal.la \
2210 libsystemd-resolve.la
2212 libsystemd_dump_la_SOURCES = \
2213 src/libsystemd/sd-bus/bus-dump.c \
2214 src/libsystemd/sd-bus/bus-dump.h
2216 libsystemd_dump_la_CFLAGS = \
2220 noinst_LTLIBRARIES += \
2224 src/libsystemd/libsystemd.sym.m4 \
2225 src/libsystemd/libsystemd.pc.in \
2226 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2227 src/libsystemd/sd-bus/DIFFERENCES \
2228 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2231 src/libsystemd/libsystemd.sym \
2232 src/libsystemd/sd-bus/bus-error-mapping.c
2235 src/libsystemd/libsystemd.sym
2237 libsystemd_la_SOURCES = \
2238 $(libsystemd_internal_la_SOURCES) \
2239 $(libsystemd_resolve_la_SOURCES) \
2240 $(libsystemd_journal_internal_la_SOURCES)
2242 nodist_libsystemd_la_SOURCES = \
2243 $(nodist_libsystemd_internal_la_SOURCES)
2245 libsystemd_la_CFLAGS = \
2246 $(libsystemd_internal_la_CFLAGS) \
2247 $(libsystemd_resolve_la_CFLAGS) \
2248 $(libsystemd_journal_internal_la_CFLAGS)
2250 libsystemd_la_LDFLAGS = \
2252 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2253 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2255 libsystemd_la_LIBADD = \
2256 libsystemd-shared.la \
2257 $(libsystemd_internal_la_LIBADD) \
2258 $(libsystemd_journal_internal_la_LIBADD) \
2259 $(libsystemd_resolve_la_LIBADD)
2261 libsystemd-install-hook:
2262 libname=libsystemd.so && $(move-to-rootlibdir)
2264 libsystemd-uninstall-hook:
2265 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2267 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2268 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2270 pkgconfiglib_DATA += \
2271 src/libsystemd/libsystemd.pc
2273 pkginclude_HEADERS += \
2274 src/systemd/sd-login.h \
2275 src/systemd/sd-id128.h \
2276 src/systemd/sd-daemon.h
2279 pkginclude_HEADERS += \
2280 src/systemd/sd-bus.h \
2281 src/systemd/sd-bus-protocol.h \
2282 src/systemd/sd-bus-vtable.h \
2283 src/systemd/sd-memfd.h \
2284 src/systemd/sd-utf8.h \
2285 src/systemd/sd-event.h \
2286 src/systemd/sd-rtnl.h \
2287 src/systemd/sd-resolve.h
2290 lib_LTLIBRARIES += \
2295 test-bus-signature \
2301 test-bus-kernel-bloom \
2302 test-bus-kernel-benchmark \
2304 test-bus-zero-copy \
2305 test-bus-introspect \
2317 test_bus_marshal_SOURCES = \
2318 src/libsystemd/sd-bus/test-bus-marshal.c
2320 test_bus_marshal_LDADD = \
2321 libsystemd-internal.la \
2322 libsystemd-shared.la \
2323 libsystemd-dump.la \
2324 libsystemd-capability.la \
2329 test_bus_marshal_CFLAGS = \
2335 test_bus_signature_SOURCES = \
2336 src/libsystemd/sd-bus/test-bus-signature.c
2338 test_bus_signature_LDADD = \
2339 libsystemd-shared.la \
2340 libsystemd-internal.la
2342 test_bus_chat_SOURCES = \
2343 src/libsystemd/sd-bus/test-bus-chat.c
2345 test_bus_chat_CFLAGS = \
2349 test_bus_chat_LDADD = \
2350 libsystemd-internal.la \
2351 libsystemd-shared.la
2353 test_bus_cleanup_SOURCES = \
2354 src/libsystemd/sd-bus/test-bus-cleanup.c
2356 test_bus_cleanup_CFLAGS = \
2360 test_bus_cleanup_LDADD = \
2361 libsystemd-internal.la \
2362 libsystemd-shared.la
2364 test_bus_server_SOURCES = \
2365 src/libsystemd/sd-bus/test-bus-server.c
2367 test_bus_server_CFLAGS = \
2371 test_bus_server_LDADD = \
2372 libsystemd-internal.la \
2373 libsystemd-shared.la
2375 test_bus_objects_SOURCES = \
2376 src/libsystemd/sd-bus/test-bus-objects.c
2378 test_bus_objects_CFLAGS = \
2383 test_bus_objects_LDADD = \
2384 libsystemd-internal.la \
2385 libsystemd-shared.la \
2386 libsystemd-dump.la \
2387 libsystemd-capability.la \
2390 test_bus_error_SOURCES = \
2391 src/libsystemd/sd-bus/test-bus-error.c
2393 test_bus_error_LDADD = \
2394 libsystemd-internal.la \
2395 libsystemd-shared.la
2397 test_bus_gvariant_SOURCES = \
2398 src/libsystemd/sd-bus/test-bus-gvariant.c
2400 test_bus_gvariant_LDADD = \
2401 libsystemd-internal.la \
2402 libsystemd-shared.la \
2403 libsystemd-dump.la \
2404 libsystemd-capability.la \
2408 test_bus_gvariant_CFLAGS = \
2413 test_bus_creds_SOURCES = \
2414 src/libsystemd/sd-bus/test-bus-creds.c
2416 test_bus_creds_LDADD = \
2417 libsystemd-internal.la \
2418 libsystemd-shared.la \
2419 libsystemd-dump.la \
2420 libsystemd-capability.la
2422 test_bus_match_SOURCES = \
2423 src/libsystemd/sd-bus/test-bus-match.c
2425 test_bus_match_LDADD = \
2426 libsystemd-internal.la \
2427 libsystemd-shared.la
2429 test_bus_kernel_SOURCES = \
2430 src/libsystemd/sd-bus/test-bus-kernel.c
2432 test_bus_kernel_LDADD = \
2433 libsystemd-internal.la \
2434 libsystemd-shared.la \
2435 libsystemd-dump.la \
2436 libsystemd-capability.la \
2439 test_bus_kernel_CFLAGS = \
2443 test_bus_kernel_bloom_SOURCES = \
2444 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2446 test_bus_kernel_bloom_LDADD = \
2447 libsystemd-internal.la \
2448 libsystemd-shared.la
2450 test_bus_kernel_benchmark_SOURCES = \
2451 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2453 test_bus_kernel_benchmark_LDADD = \
2454 libsystemd-internal.la \
2455 libsystemd-shared.la
2457 test_bus_memfd_SOURCES = \
2458 src/libsystemd/sd-bus/test-bus-memfd.c
2460 test_bus_memfd_LDADD = \
2461 libsystemd-internal.la \
2462 libsystemd-shared.la
2464 test_bus_zero_copy_SOURCES = \
2465 src/libsystemd/sd-bus/test-bus-zero-copy.c
2467 test_bus_zero_copy_LDADD = \
2468 libsystemd-internal.la \
2469 libsystemd-shared.la \
2470 libsystemd-dump.la \
2471 libsystemd-capability.la \
2474 test_bus_zero_copy_CFLAGS = \
2478 test_bus_introspect_SOURCES = \
2479 src/libsystemd/sd-bus/test-bus-introspect.c
2481 test_bus_introspect_LDADD = \
2482 libsystemd-internal.la \
2483 libsystemd-shared.la
2485 test_event_SOURCES = \
2486 src/libsystemd/sd-event/test-event.c
2488 test_event_LDADD = \
2489 libsystemd-internal.la \
2490 libsystemd-shared.la
2492 test_rtnl_SOURCES = \
2493 src/libsystemd/sd-rtnl/test-rtnl.c
2496 libsystemd-internal.la \
2497 libsystemd-shared.la
2499 test_resolve_SOURCES = \
2500 src/libsystemd/sd-resolve/test-resolve.c
2502 test_resolve_LDADD = \
2503 libsystemd-resolve.la \
2504 libsystemd-internal.la \
2505 libsystemd-shared.la
2507 test_resolve_CFLAGS = \
2512 src/libsystemd/sd-bus/busctl.c
2515 libsystemd-internal.la \
2516 libsystemd-shared.la \
2517 libsystemd-dump.la \
2518 libsystemd-capability.la \
2525 # ------------------------------------------------------------------------------
2526 noinst_LTLIBRARIES += \
2527 libsystemd-network.la
2529 libsystemd_network_la_CFLAGS = \
2533 libsystemd_network_la_SOURCES = \
2534 src/systemd/sd-network.h \
2535 src/systemd/sd-dhcp-client.h \
2536 src/systemd/sd-dhcp-lease.h \
2537 src/systemd/sd-ipv4ll.h \
2538 src/network/sd-network.c \
2539 src/network/network-util.h \
2540 src/libsystemd-network/sd-dhcp-client.c \
2541 src/libsystemd-network/dhcp-network.c \
2542 src/libsystemd-network/dhcp-option.c \
2543 src/libsystemd-network/dhcp-packet.c \
2544 src/libsystemd-network/dhcp-internal.h \
2545 src/libsystemd-network/dhcp-protocol.h \
2546 src/libsystemd-network/dhcp-lease-internal.h \
2547 src/libsystemd-network/sd-dhcp-lease.c \
2548 src/libsystemd-network/sd-ipv4ll.c \
2549 src/libsystemd-network/ipv4ll-network.c \
2550 src/libsystemd-network/ipv4ll-packet.c \
2551 src/libsystemd-network/ipv4ll-internal.h \
2552 src/libsystemd-network/network-internal.c \
2553 src/libsystemd-network/network-internal.h
2555 libsystemd_network_la_LIBADD = \
2556 libudev-internal.la \
2557 libsystemd-label.la \
2558 libsystemd-internal.la \
2559 libsystemd-shared.la \
2562 test_dhcp_option_SOURCES = \
2563 src/libsystemd-network/dhcp-protocol.h \
2564 src/libsystemd-network/dhcp-internal.h \
2565 src/libsystemd-network/test-dhcp-option.c
2567 test_dhcp_option_LDADD = \
2568 libsystemd-network.la \
2569 libsystemd-internal.la \
2570 libsystemd-shared.la
2572 test_dhcp_client_SOURCES = \
2573 src/systemd/sd-dhcp-client.h \
2574 src/libsystemd-network/dhcp-protocol.h \
2575 src/libsystemd-network/dhcp-internal.h \
2576 src/libsystemd-network/test-dhcp-client.c
2578 test_dhcp_client_LDADD = \
2579 libsystemd-network.la \
2580 libsystemd-label.la \
2581 libsystemd-internal.la \
2582 libsystemd-shared.la
2584 test_ipv4ll_SOURCES = \
2585 src/systemd/sd-ipv4ll.h \
2586 src/libsystemd-network/ipv4ll-internal.h \
2587 src/libsystemd-network/test-ipv4ll.c
2589 test_ipv4ll_LDADD = \
2590 libsystemd-network.la \
2591 libsystemd-label.la \
2592 libsystemd-internal.la \
2593 libsystemd-shared.la
2600 # ------------------------------------------------------------------------------
2610 include_HEADERS += \
2611 src/libudev/libudev.h
2613 lib_LTLIBRARIES += \
2616 libudev_la_SOURCES =\
2617 src/libudev/libudev.sym \
2618 src/libudev/libudev-private.h \
2619 src/libudev/libudev.c \
2620 src/libudev/libudev-list.c \
2621 src/libudev/libudev-util.c \
2622 src/libudev/libudev-device.c \
2623 src/libudev/libudev-enumerate.c \
2624 src/libudev/libudev-monitor.c \
2625 src/libudev/libudev-queue.c \
2626 src/libudev/libudev-hwdb-def.h \
2627 src/libudev/libudev-hwdb.c
2629 libudev_la_CFLAGS = \
2633 libudev_la_LDFLAGS = \
2635 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2636 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2638 libudev_la_LIBADD = \
2639 libsystemd-internal.la \
2640 libsystemd-shared.la
2642 pkgconfiglib_DATA += \
2643 src/libudev/libudev.pc
2646 src/libudev/libudev.pc.in
2649 src/libudev/libudev.pc \
2654 $(AM_V_at)$(MKDIR_P) $(dir $@)
2655 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2658 $(AM_V_at)$(MKDIR_P) $(dir $@)
2659 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2661 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2662 libudev-install-hook:
2663 libname=libudev.so && $(move-to-rootlibdir)
2665 libudev-uninstall-hook:
2666 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2668 INSTALL_EXEC_HOOKS += libudev-install-hook
2669 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2671 # ------------------------------------------------------------------------------
2672 noinst_LTLIBRARIES += \
2675 libudev_internal_la_SOURCES =\
2676 $(libudev_la_SOURCES) \
2677 src/libudev/libudev-device-private.c
2679 libudev_internal_la_CFLAGS = \
2681 -fvisibility=default
2683 # ------------------------------------------------------------------------------
2685 $(sysconfdir)/udev/rules.d \
2686 $(sysconfdir)/udev/hwdb.d
2688 dist_network_DATA = \
2689 network/99-default.link \
2690 network/80-container-host0.network \
2691 network/80-container-ve.network
2693 dist_udevrules_DATA += \
2694 rules/42-usb-hid-pm.rules \
2695 rules/50-udev-default.rules \
2696 rules/60-drm.rules \
2697 rules/60-keyboard.rules \
2698 rules/60-persistent-storage-tape.rules \
2699 rules/60-persistent-serial.rules \
2700 rules/60-persistent-input.rules \
2701 rules/60-persistent-alsa.rules \
2702 rules/60-persistent-storage.rules \
2703 rules/64-btrfs.rules \
2704 rules/75-net-description.rules \
2705 rules/75-tty-description.rules \
2706 rules/78-sound-card.rules \
2707 rules/80-net-setup-link.rules \
2708 rules/95-udev-late.rules
2710 nodist_udevrules_DATA += \
2711 rules/99-systemd.rules
2713 dist_udevhwdb_DATA = \
2714 hwdb/20-pci-vendor-model.hwdb \
2715 hwdb/20-pci-classes.hwdb \
2716 hwdb/20-usb-vendor-model.hwdb \
2717 hwdb/20-usb-classes.hwdb \
2718 hwdb/20-sdio-vendor-model.hwdb \
2719 hwdb/20-sdio-classes.hwdb \
2720 hwdb/20-bluetooth-vendor-product.hwdb \
2721 hwdb/20-acpi-vendor.hwdb \
2723 hwdb/20-net-ifname.hwdb \
2724 hwdb/60-keyboard.hwdb
2726 udevconfdir = $(sysconfdir)/udev
2727 dist_udevconf_DATA = \
2730 sharepkgconfigdir = $(datadir)/pkgconfig
2731 sharepkgconfig_DATA = \
2735 rules/99-systemd.rules.in \
2739 rules/99-systemd.rules \
2743 units/systemd-udevd.service.in \
2744 units/systemd-udev-trigger.service.in \
2745 units/systemd-udev-settle.service.in
2748 units/systemd-udevd.service \
2749 units/systemd-udev-trigger.service \
2750 units/systemd-udev-settle.service
2752 SOCKETS_TARGET_WANTS += \
2753 systemd-udevd-control.socket \
2754 systemd-udevd-kernel.socket
2755 SYSINIT_TARGET_WANTS += \
2756 systemd-udevd.service \
2757 systemd-udev-trigger.service
2759 rootbin_PROGRAMS += \
2762 rootlibexec_PROGRAMS += \
2765 noinst_LTLIBRARIES += \
2768 src/udev/keyboard-keys.txt:
2769 $(AM_V_at)$(MKDIR_P) $(dir $@)
2770 $(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/' > $@
2772 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2773 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2775 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2776 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2778 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2779 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2781 libudev_core_la_SOURCES = \
2783 src/udev/udev-event.c \
2784 src/udev/udev-watch.c \
2785 src/udev/udev-node.c \
2786 src/udev/udev-rules.c \
2787 src/udev/udev-ctrl.c \
2788 src/udev/udev-builtin.c \
2789 src/udev/udev-builtin-btrfs.c \
2790 src/udev/udev-builtin-hwdb.c \
2791 src/udev/udev-builtin-input_id.c \
2792 src/udev/udev-builtin-keyboard.c \
2793 src/udev/udev-builtin-net_id.c \
2794 src/udev/udev-builtin-net_setup_link.c \
2795 src/udev/udev-builtin-path_id.c \
2796 src/udev/udev-builtin-usb_id.c \
2797 src/udev/net/link-config.h \
2798 src/udev/net/link-config.c \
2799 src/udev/net/ethtool-util.h \
2800 src/udev/net/ethtool-util.c
2802 nodist_libudev_core_la_SOURCES = \
2803 src/udev/keyboard-keys-from-name.h \
2804 src/udev/keyboard-keys-to-name.h \
2805 src/udev/net/link-config-gperf.c
2808 $(nodist_libudev_core_la_SOURCES)
2811 src/udev/keyboard-keys-from-name.gperf \
2812 src/udev/keyboard-keys.txt \
2813 src/udev/net/link-config-gperf.c
2816 src/udev/net/link-config-gperf.gperf
2818 libudev_core_la_CFLAGS = \
2823 libudev_core_la_LIBADD = \
2824 libudev-internal.la \
2825 libsystemd-label.la \
2826 libsystemd-internal.la \
2827 libsystemd-network.la \
2828 libsystemd-shared.la \
2832 libudev_core_la_CPPFLAGS = \
2834 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2837 libudev_core_la_SOURCES += \
2838 src/udev/udev-builtin-firmware.c
2840 dist_udevrules_DATA += \
2841 rules/50-firmware.rules
2845 libudev_core_la_SOURCES += \
2846 src/udev/udev-builtin-kmod.c
2848 dist_udevrules_DATA += \
2849 rules/80-drivers.rules
2853 libudev_core_la_SOURCES += \
2854 src/udev/udev-builtin-blkid.c
2858 libudev_core_la_SOURCES += \
2859 src/udev/udev-builtin-uaccess.c \
2860 src/login/logind-acl.c \
2861 src/libsystemd/sd-login/sd-login.c \
2862 src/systemd/sd-login.h
2864 libudev_core_la_LIBADD += \
2868 systemd_udevd_SOURCES = \
2871 systemd_udevd_LDADD = \
2875 src/udev/udevadm.c \
2876 src/udev/udevadm-info.c \
2877 src/udev/udevadm-control.c \
2878 src/udev/udevadm-monitor.c \
2879 src/udev/udevadm-hwdb.c \
2880 src/udev/udevadm-settle.c \
2881 src/udev/udevadm-trigger.c \
2882 src/udev/udevadm-test.c \
2883 src/udev/udevadm-test-builtin.c
2888 # Update hwdb on installation. Do not bother if installing
2889 # in DESTDIR, since this is likely for packaging purposes.
2891 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2893 INSTALL_DATA_HOOKS += \
2897 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2899 # ------------------------------------------------------------------------------
2908 test_libudev_SOURCES = \
2909 src/test/test-libudev.c
2911 test_libudev_LDADD = \
2912 libsystemd-label.la \
2913 libudev-internal.la \
2914 libsystemd-shared.la
2916 test_udev_SOURCES = \
2917 src/test/test-udev.c
2926 test_udev_LDADD += \
2933 # packed sysfs test tree
2935 $(AM_V_at)$(MKDIR_P) $(dir $@)
2936 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2940 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2945 test/rules-test.sh \
2946 test/rule-syntax-check.py
2948 # ------------------------------------------------------------------------------
2950 src/udev/ata_id/ata_id.c
2953 libudev-internal.la \
2954 libsystemd-shared.la
2956 udevlibexec_PROGRAMS += \
2959 # ------------------------------------------------------------------------------
2960 cdrom_id_SOURCES = \
2961 src/udev/cdrom_id/cdrom_id.c
2964 libudev-internal.la \
2965 libsystemd-shared.la
2967 udevlibexec_PROGRAMS += \
2970 dist_udevrules_DATA += \
2971 rules/60-cdrom_id.rules
2973 # ------------------------------------------------------------------------------
2975 src/udev/collect/collect.c
2978 libudev-internal.la \
2979 libsystemd-shared.la
2981 udevlibexec_PROGRAMS += \
2984 # ------------------------------------------------------------------------------
2986 src/udev/scsi_id/scsi_id.c \
2987 src/udev/scsi_id/scsi_serial.c \
2988 src/udev/scsi_id/scsi.h \
2989 src/udev/scsi_id/scsi_id.h
2992 libudev-internal.la \
2993 libsystemd-shared.la
2995 udevlibexec_PROGRAMS += \
2999 src/udev/scsi_id/README
3001 # ------------------------------------------------------------------------------
3003 src/udev/v4l_id/v4l_id.c
3008 udevlibexec_PROGRAMS += \
3011 dist_udevrules_DATA += \
3012 rules/60-persistent-v4l.rules
3014 # ------------------------------------------------------------------------------
3015 accelerometer_SOURCES = \
3016 src/udev/accelerometer/accelerometer.c
3018 accelerometer_LDADD = \
3019 libudev-internal.la -lm \
3020 libsystemd-shared.la
3022 udevlibexec_PROGRAMS += \
3025 dist_udevrules_DATA += \
3026 rules/61-accelerometer.rules
3028 # ------------------------------------------------------------------------------
3035 libgudev_includedir = \
3036 $(includedir)/gudev-1.0/gudev
3038 libgudev_include_HEADERS = \
3040 src/gudev/gudevenums.h \
3041 src/gudev/gudevenumtypes.h \
3042 src/gudev/gudevtypes.h \
3043 src/gudev/gudevclient.h \
3044 src/gudev/gudevdevice.h \
3045 src/gudev/gudevenumerator.h
3047 lib_LTLIBRARIES += libgudev-1.0.la
3049 pkgconfiglib_DATA += \
3050 src/gudev/gudev-1.0.pc
3053 src/gudev/gudev-1.0.pc
3055 libgudev_1_0_la_SOURCES = \
3056 src/gudev/gudevenums.h \
3057 src/gudev/gudevenumtypes.h \
3058 src/gudev/gudevenumtypes.h\
3059 src/gudev/gudevtypes.h \
3060 src/gudev/gudevclient.h \
3061 src/gudev/gudevclient.c \
3062 src/gudev/gudevdevice.h \
3063 src/gudev/gudevdevice.c \
3064 src/gudev/gudevenumerator.h \
3065 src/gudev/gudevenumerator.c \
3066 src/gudev/gudevprivate.h
3068 nodist_libgudev_1_0_la_SOURCES = \
3069 src/gudev/gudevmarshal.h \
3070 src/gudev/gudevmarshal.c \
3071 src/gudev/gudevenumtypes.h \
3072 src/gudev/gudevenumtypes.c
3075 $(nodist_libgudev_1_0_la_SOURCES)
3077 libgudev_1_0_la_CPPFLAGS = \
3079 -I$(top_builddir)/src\
3080 -I$(top_srcdir)/src\
3081 -I$(top_builddir)/src/gudev \
3082 -I$(top_srcdir)/src/gudev \
3083 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3084 -D_GUDEV_COMPILATION \
3085 -DG_LOG_DOMAIN=\"GUdev\"
3087 libgudev_1_0_la_CFLAGS = \
3089 -fvisibility=default \
3092 libgudev_1_0_la_LIBADD = \
3096 libgudev_1_0_la_LDFLAGS = \
3098 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3099 -export-dynamic -no-undefined \
3100 -export-symbols-regex '^g_udev_.*'
3102 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3103 $(AM_V_at)$(MKDIR_P) $(dir $@)
3104 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3106 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3107 $(AM_V_at)$(MKDIR_P) $(dir $@)
3108 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3109 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3111 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3112 $(AM_V_at)$(MKDIR_P) $(dir $@)
3113 $(AM_V_GEN)glib-mkenums --template $^ > $@
3115 if HAVE_INTROSPECTION
3116 -include $(INTROSPECTION_MAKEFILE)
3118 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3120 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3122 src_gudev_GUdev_1_0_gir_CFLAGS = \
3125 -D_GUDEV_COMPILATION \
3126 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3127 -I$(top_srcdir)/src \
3128 -I$(top_builddir)/src \
3129 -I$(top_srcdir)/src/gudev \
3130 -I$(top_builddir)/src/gudev
3132 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3134 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3135 --pkg-export=gudev-1.0 \
3138 src_gudev_GUdev_1_0_gir_FILES = \
3140 src/gudev/gudevtypes.h \
3141 src/gudev/gudevenums.h \
3142 src/gudev/gudevenumtypes.h \
3143 src/gudev/gudevclient.h \
3144 src/gudev/gudevdevice.h \
3145 src/gudev/gudevenumerator.h \
3146 src/gudev/gudevclient.c \
3147 src/gudev/gudevdevice.c \
3148 src/gudev/gudevenumerator.c
3150 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3151 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3153 girdir = $(datadir)/gir-1.0
3155 src/gudev/GUdev-1.0.gir
3157 typelibsdir = $(libdir)/girepository-1.0
3159 src/gudev/GUdev-1.0.typelib
3161 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3162 endif # HAVE_INTROSPECTION
3164 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3165 libgudev-install-hook:
3166 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3168 libgudev-uninstall-hook:
3169 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3171 INSTALL_EXEC_HOOKS += libgudev-install-hook
3172 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3176 src/gudev/gudev-1.0.pc.in \
3177 src/gudev/gudevmarshal.list \
3178 src/gudev/gudevenumtypes.h.template \
3179 src/gudev/gudevenumtypes.c.template \
3180 src/gudev/gjs-example.js \
3181 src/gudev/seed-example-enum.js \
3182 src/gudev/seed-example.js
3184 # ------------------------------------------------------------------------------
3185 mtd_probe_SOURCES = \
3186 src/udev/mtd_probe/mtd_probe.c \
3187 src/udev/mtd_probe/mtd_probe.h \
3188 src/udev/mtd_probe/probe_smartmedia.c
3190 dist_udevrules_DATA += \
3191 rules/75-probe_mtd.rules
3193 udevlibexec_PROGRAMS += \
3196 # ------------------------------------------------------------------------------
3197 test_id128_SOURCES = \
3198 src/test/test-id128.c
3200 test_id128_LDADD = \
3201 libsystemd-internal.la \
3202 libsystemd-shared.la
3207 # ------------------------------------------------------------------------------
3209 rootlibexec_PROGRAMS += \
3212 systemd_activate_SOURCES = \
3213 src/activate/activate.c
3215 systemd_activate_LDADD = \
3216 libsystemd-label.la \
3217 libsystemd-internal.la \
3218 libsystemd-shared.la
3220 # ------------------------------------------------------------------------------
3221 systemd_journald_SOURCES = \
3222 src/journal/journald.c \
3223 src/journal/journald-server.h
3225 systemd_journald_LDADD = \
3226 libsystemd-journal-core.la \
3227 libsystemd-internal.la \
3228 libsystemd-shared.la
3230 systemd_cat_SOURCES = \
3233 systemd_cat_LDADD = \
3234 libsystemd-journal-core.la
3237 rootlibexec_PROGRAMS += \
3238 systemd-journal-remote
3240 systemd_journal_remote_SOURCES = \
3241 src/journal/journal-remote-parse.h \
3242 src/journal/journal-remote-parse.c \
3243 src/journal/journal-remote-write.h \
3244 src/journal/journal-remote-write.c \
3245 src/journal/journal-remote.c
3247 systemd_journal_remote_LDADD = \
3248 libsystemd-internal.la \
3249 libsystemd-journal-core.la
3251 systemd_journal_remote_SOURCES += \
3252 src/journal/microhttpd-util.h \
3253 src/journal/microhttpd-util.c
3255 systemd_journal_remote_CFLAGS = \
3257 $(MICROHTTPD_CFLAGS)
3259 systemd_journal_remote_LDADD += \
3263 systemd_journal_remote_LDADD += \
3268 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3269 journalctl_CFLAGS = \
3272 journalctl_SOURCES = \
3273 src/journal/journalctl.c
3275 journalctl_LDADD = \
3276 libsystemd-journal-internal.la \
3277 libsystemd-internal.la \
3278 libsystemd-logs.la \
3279 libsystemd-shared.la
3282 journalctl_LDADD += \
3287 journalctl_SOURCES += \
3288 src/journal/journal-qrcode.c \
3289 src/journal/journal-qrcode.h
3291 journalctl_CFLAGS += \
3294 journalctl_LDADD += \
3298 test_journal_SOURCES = \
3299 src/journal/test-journal.c
3301 test_journal_LDADD = \
3302 libsystemd-journal-core.la
3304 test_journal_send_SOURCES = \
3305 src/journal/test-journal-send.c
3307 test_journal_send_LDADD = \
3308 libsystemd-journal-core.la
3310 test_journal_syslog_SOURCES = \
3311 src/journal/test-journal-syslog.c
3313 test_journal_syslog_LDADD = \
3314 libsystemd-journal-core.la
3316 test_journal_match_SOURCES = \
3317 src/journal/test-journal-match.c
3319 test_journal_match_LDADD = \
3320 libsystemd-journal-core.la
3322 test_journal_enum_SOURCES = \
3323 src/journal/test-journal-enum.c
3325 test_journal_enum_LDADD = \
3326 libsystemd-journal-core.la
3328 test_journal_stream_SOURCES = \
3329 src/journal/test-journal-stream.c
3331 test_journal_stream_LDADD = \
3332 libsystemd-journal-core.la
3334 test_journal_flush_SOURCES = \
3335 src/journal/test-journal-flush.c
3337 test_journal_flush_LDADD = \
3338 libsystemd-journal-core.la
3340 test_journal_init_SOURCES = \
3341 src/journal/test-journal-init.c
3343 test_journal_init_LDADD = \
3344 libsystemd-journal-core.la
3346 test_journal_verify_SOURCES = \
3347 src/journal/test-journal-verify.c
3349 test_journal_verify_LDADD = \
3350 libsystemd-journal-core.la
3352 test_journal_interleaving_SOURCES = \
3353 src/journal/test-journal-interleaving.c
3355 test_journal_interleaving_LDADD = \
3356 libsystemd-journal-core.la
3358 test_mmap_cache_SOURCES = \
3359 src/journal/test-mmap-cache.c
3361 test_mmap_cache_LDADD = \
3362 libsystemd-journal-core.la
3364 test_catalog_SOURCES = \
3365 src/journal/test-catalog.c
3367 test_catalog_CPPFLAGS = \
3369 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3371 test_catalog_LDADD = \
3372 libsystemd-journal-core.la
3374 libsystemd_journal_core_la_SOURCES = \
3375 src/journal/journald-kmsg.c \
3376 src/journal/journald-kmsg.h \
3377 src/journal/journald-syslog.c \
3378 src/journal/journald-syslog.h \
3379 src/journal/journald-stream.c \
3380 src/journal/journald-stream.h \
3381 src/journal/journald-server.c \
3382 src/journal/journald-server.h \
3383 src/journal/journald-console.c \
3384 src/journal/journald-console.h \
3385 src/journal/journald-wall.c \
3386 src/journal/journald-wall.h \
3387 src/journal/journald-native.c \
3388 src/journal/journald-native.h \
3389 src/journal/journald-rate-limit.c \
3390 src/journal/journald-rate-limit.h \
3391 src/journal/journal-internal.h
3393 nodist_libsystemd_journal_core_la_SOURCES = \
3394 src/journal/journald-gperf.c
3396 libsystemd_journal_core_la_LIBADD = \
3397 libsystemd-journal-internal.la \
3398 libudev-internal.la \
3399 libsystemd-capability.la \
3400 libsystemd-label.la \
3401 libsystemd-internal.la \
3402 libsystemd-shared.la
3405 libsystemd_journal_core_la_LIBADD += \
3409 noinst_LTLIBRARIES += \
3410 libsystemd-journal-core.la
3412 journal-install-hook:
3413 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3414 -chown 0:0 $(DESTDIR)/var/log/journal
3415 -chmod 755 $(DESTDIR)/var/log/journal
3416 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3417 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3419 journal-uninstall-hook:
3420 -rmdir $(DESTDIR)/var/log/journal/
3422 INSTALL_EXEC_HOOKS += journal-install-hook
3423 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3425 # ------------------------------------------------------------------------------
3426 # Update catalog on installation. Do not bother if installing
3427 # in DESTDIR, since this is likely for packaging purposes.
3428 catalog-update-hook:
3429 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3431 INSTALL_DATA_HOOKS += \
3434 catalog-remove-hook:
3435 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3437 UNINSTALL_DATA_HOOKS += \
3446 test-journal-syslog \
3447 test-journal-match \
3448 test-journal-stream \
3450 test-journal-verify \
3451 test-journal-interleaving \
3452 test-journal-flush \
3456 pkginclude_HEADERS += \
3457 src/systemd/sd-journal.h \
3458 src/systemd/sd-messages.h \
3459 src/systemd/_sd-common.h
3461 libsystemd_journal_internal_la_SOURCES = \
3462 src/journal/sd-journal.c \
3463 src/systemd/sd-journal.h \
3464 src/systemd/_sd-common.h \
3465 src/journal/journal-file.c \
3466 src/journal/journal-file.h \
3467 src/journal/journal-vacuum.c \
3468 src/journal/journal-vacuum.h \
3469 src/journal/journal-verify.c \
3470 src/journal/journal-verify.h \
3471 src/journal/lookup3.c \
3472 src/journal/lookup3.h \
3473 src/journal/journal-send.c \
3474 src/journal/journal-def.h \
3475 src/journal/compress.h \
3476 src/journal/catalog.c \
3477 src/journal/catalog.h \
3478 src/journal/mmap-cache.c \
3479 src/journal/mmap-cache.h
3481 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3482 libsystemd_journal_internal_la_CFLAGS =
3485 libsystemd_journal_internal_la_LIBADD =
3488 libsystemd_journal_internal_la_SOURCES += \
3489 src/journal/compress.c
3491 libsystemd_journal_internal_la_CFLAGS += \
3494 libsystemd_journal_internal_la_LIBADD += \
3499 libsystemd_journal_internal_la_SOURCES += \
3500 src/journal/journal-authenticate.c \
3501 src/journal/journal-authenticate.h \
3502 src/journal/fsprg.c \
3505 libsystemd_journal_internal_la_LIBADD += \
3508 # fsprg.c is a drop-in file using void pointer arithmetic
3509 libsystemd_journal_internal_la_CFLAGS += \
3514 noinst_LTLIBRARIES += \
3515 libsystemd-journal-internal.la
3517 rootlibexec_PROGRAMS += \
3520 rootbin_PROGRAMS += \
3526 dist_systemunit_DATA += \
3527 units/systemd-journald.socket \
3528 units/systemd-journald-dev-log.socket
3530 nodist_systemunit_DATA += \
3531 units/systemd-journald.service \
3532 units/systemd-journal-flush.service
3534 dist_pkgsysconf_DATA += \
3535 src/journal/journald.conf
3537 dist_catalog_DATA = \
3538 catalog/systemd.fr.catalog \
3539 catalog/systemd.ru.catalog \
3540 catalog/systemd.it.catalog \
3541 catalog/systemd.catalog
3543 SOCKETS_TARGET_WANTS += \
3544 systemd-journald.socket \
3545 systemd-journald-dev-log.socket
3547 SYSINIT_TARGET_WANTS += \
3548 systemd-journald.service \
3549 systemd-journal-flush.service
3552 units/systemd-journald.service.in \
3553 units/systemd-journal-flush.service.in \
3554 src/journal/journald-gperf.gperf
3557 src/journal/journald-gperf.c
3559 # ------------------------------------------------------------------------------
3561 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3563 rootlibexec_PROGRAMS += \
3564 systemd-journal-gatewayd
3566 systemd_journal_gatewayd_SOURCES = \
3567 src/journal/journal-gatewayd.c \
3568 src/journal/microhttpd-util.h \
3569 src/journal/microhttpd-util.c
3571 systemd_journal_gatewayd_LDADD = \
3572 libsystemd-logs.la \
3573 libsystemd-journal-internal.la \
3574 libsystemd-internal.la \
3575 libsystemd-shared.la \
3579 systemd_journal_gatewayd_LDADD += \
3583 systemd_journal_gatewayd_CFLAGS = \
3585 $(MICROHTTPD_CFLAGS)
3587 systemd_journal_gatewayd_CPPFLAGS = \
3589 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3591 dist_systemunit_DATA += \
3592 units/systemd-journal-gatewayd.socket
3594 nodist_systemunit_DATA += \
3595 units/systemd-journal-gatewayd.service
3597 dist_gatewayddocumentroot_DATA = \
3598 src/journal/browse.html
3603 units/systemd-journal-gatewayd.service.in
3605 # ------------------------------------------------------------------------------
3607 systemd_socket_proxyd_SOURCES = \
3608 src/socket-proxy/socket-proxyd.c
3610 systemd_socket_proxyd_LDADD = \
3611 libsystemd-logs.la \
3612 libsystemd-internal.la \
3613 libsystemd-journal-internal.la \
3614 libsystemd-shared.la \
3615 libsystemd-resolve.la
3617 # ------------------------------------------------------------------------------
3619 systemd_coredump_SOURCES = \
3620 src/journal/coredump.c
3622 systemd_coredump_LDADD = \
3623 libsystemd-journal-internal.la \
3624 libsystemd-label.la \
3625 libsystemd-internal.la \
3626 libsystemd-shared.la
3628 rootlibexec_PROGRAMS += \
3631 systemd_coredumpctl_SOURCES = \
3632 src/journal/coredumpctl.c
3634 systemd_coredumpctl_LDADD = \
3635 libsystemd-journal-internal.la \
3636 libsystemd-internal.la \
3637 libsystemd-shared.la
3642 dist_bashcompletion_DATA += \
3643 shell-completion/bash/systemd-coredumpctl
3645 dist_zshcompletion_DATA += \
3646 shell-completion/zsh/_systemd-coredumpctl
3649 sysctl.d/50-coredump.conf
3652 sysctl.d/50-coredump.conf
3656 sysctl.d/50-coredump.conf.in
3658 # ------------------------------------------------------------------------------
3660 systemd_binfmt_SOURCES = \
3663 systemd_binfmt_LDADD = \
3664 libsystemd-shared.la
3666 rootlibexec_PROGRAMS += \
3669 dist_systemunit_DATA += \
3670 units/proc-sys-fs-binfmt_misc.automount \
3671 units/proc-sys-fs-binfmt_misc.mount
3673 nodist_systemunit_DATA += \
3674 units/systemd-binfmt.service
3677 $(prefix)/lib/binfmt.d \
3678 $(sysconfdir)/binfmt.d
3680 SYSINIT_TARGET_WANTS += \
3681 systemd-binfmt.service \
3682 proc-sys-fs-binfmt_misc.automount
3687 units/systemd-binfmt.service.in
3689 # ------------------------------------------------------------------------------
3691 systemd_vconsole_setup_SOURCES = \
3692 src/vconsole/vconsole-setup.c
3694 systemd_vconsole_setup_LDADD = \
3695 libsystemd-shared.la
3697 rootlibexec_PROGRAMS += \
3698 systemd-vconsole-setup
3700 nodist_systemunit_DATA += \
3701 units/systemd-vconsole-setup.service
3703 SYSINIT_TARGET_WANTS += \
3704 systemd-vconsole-setup.service
3708 units/systemd-vconsole-setup.service.in
3710 # ------------------------------------------------------------------------------
3712 systemd_readahead_SOURCES = \
3713 src/readahead/readahead.c \
3714 src/readahead/readahead-collect.c \
3715 src/readahead/readahead-replay.c \
3716 src/readahead/readahead-analyze.c \
3717 src/readahead/readahead-common.c \
3718 src/readahead/readahead-common.h
3720 systemd_readahead_LDADD = \
3721 libsystemd-internal.la \
3722 libudev-internal.la \
3723 libsystemd-shared.la
3726 src/readahead/sd-readahead.c \
3727 src/systemd/sd-readahead.h
3729 rootlibexec_PROGRAMS += \
3732 dist_systemunit_DATA += \
3733 units/systemd-readahead-drop.service \
3734 units/systemd-readahead-done.timer
3736 nodist_systemunit_DATA += \
3737 units/systemd-readahead-collect.service \
3738 units/systemd-readahead-replay.service \
3739 units/systemd-readahead-done.service
3744 test_ssd_SOURCES = \
3745 src/readahead/test-ssd.c \
3746 src/readahead/readahead-common.c \
3747 src/readahead/readahead-common.h
3750 libsystemd-internal.la \
3751 libudev-internal.la \
3752 libsystemd-shared.la
3757 units/systemd-readahead-collect.service.in \
3758 units/systemd-readahead-replay.service.in \
3759 units/systemd-readahead-done.service.in
3761 # ------------------------------------------------------------------------------
3763 systemd_bootchart_SOURCES = \
3764 src/bootchart/bootchart.c \
3765 src/bootchart/bootchart.h \
3766 src/bootchart/store.c \
3767 src/bootchart/store.h \
3768 src/bootchart/svg.c \
3771 systemd_bootchart_LDADD = \
3772 libsystemd-journal-internal.la \
3773 libsystemd-shared.la
3775 rootlibexec_PROGRAMS += \
3778 dist_pkgsysconf_DATA += \
3779 src/bootchart/bootchart.conf
3782 # ------------------------------------------------------------------------------
3783 if ENABLE_QUOTACHECK
3784 rootlibexec_PROGRAMS += \
3787 nodist_systemunit_DATA += \
3788 units/systemd-quotacheck.service
3790 systemd_quotacheck_SOURCES = \
3791 src/quotacheck/quotacheck.c
3793 systemd_quotacheck_LDADD = \
3794 libsystemd-shared.la
3798 units/systemd-quotacheck.service.in
3800 nodist_systemunit_DATA += \
3801 units/quotaon.service
3803 # ------------------------------------------------------------------------------
3804 if ENABLE_RANDOMSEED
3805 rootlibexec_PROGRAMS += \
3808 nodist_systemunit_DATA += \
3809 units/systemd-random-seed.service
3811 systemd_random_seed_SOURCES = \
3812 src/random-seed/random-seed.c
3814 systemd_random_seed_LDADD = \
3815 libsystemd-label.la \
3816 libsystemd-shared.la
3818 SYSINIT_TARGET_WANTS += \
3819 systemd-random-seed.service
3824 units/systemd-random-seed.service.in
3826 # ------------------------------------------------------------------------------
3828 rootlibexec_PROGRAMS += \
3831 nodist_systemunit_DATA += \
3832 units/systemd-backlight@.service
3834 systemd_backlight_SOURCES = \
3835 src/backlight/backlight.c
3837 systemd_backlight_LDADD = \
3838 libsystemd-label.la \
3839 libudev-internal.la \
3840 libsystemd-shared.la
3844 units/systemd-backlight@.service.in
3846 # ------------------------------------------------------------------------------
3848 rootlibexec_PROGRAMS += \
3851 nodist_systemunit_DATA += \
3852 units/systemd-rfkill@.service
3854 systemd_rfkill_SOURCES = \
3857 systemd_rfkill_LDADD = \
3858 libsystemd-label.la \
3859 libudev-internal.la \
3860 libsystemd-shared.la
3864 units/systemd-rfkill@.service.in
3866 # ------------------------------------------------------------------------------
3867 if HAVE_LIBCRYPTSETUP
3868 rootlibexec_PROGRAMS += \
3871 systemgenerator_PROGRAMS += \
3872 systemd-cryptsetup-generator
3874 dist_systemunit_DATA += \
3875 units/cryptsetup.target
3877 systemd_cryptsetup_SOURCES = \
3878 src/cryptsetup/cryptsetup.c
3880 systemd_cryptsetup_CFLAGS = \
3882 $(LIBCRYPTSETUP_CFLAGS)
3884 systemd_cryptsetup_LDADD = \
3885 libsystemd-label.la \
3886 libudev-internal.la \
3887 libsystemd-shared.la \
3888 $(LIBCRYPTSETUP_LIBS)
3890 systemd_cryptsetup_generator_SOURCES = \
3891 src/cryptsetup/cryptsetup-generator.c
3893 systemd_cryptsetup_generator_LDADD = \
3894 libsystemd-label.la \
3895 libsystemd-shared.la
3897 SYSINIT_TARGET_WANTS += \
3902 # ------------------------------------------------------------------------------
3904 systemd_hostnamed_SOURCES = \
3905 src/hostname/hostnamed.c
3907 systemd_hostnamed_LDADD = \
3908 libsystemd-label.la \
3909 libsystemd-internal.la \
3910 libsystemd-shared.la
3912 rootlibexec_PROGRAMS += \
3915 nodist_systemunit_DATA += \
3916 units/systemd-hostnamed.service
3918 dist_systemunit_DATA += \
3919 units/org.freedesktop.hostname1.busname
3921 dist_dbuspolicy_DATA += \
3922 src/hostname/org.freedesktop.hostname1.conf
3924 dist_dbussystemservice_DATA += \
3925 src/hostname/org.freedesktop.hostname1.service
3927 polkitpolicy_files += \
3928 src/hostname/org.freedesktop.hostname1.policy
3930 SYSTEM_UNIT_ALIASES += \
3931 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3933 BUSNAMES_TARGET_WANTS += \
3934 org.freedesktop.hostname1.busname
3936 hostnamectl_SOURCES = \
3937 src/hostname/hostnamectl.c
3939 hostnamectl_LDADD = \
3940 libsystemd-internal.la \
3941 libsystemd-shared.la
3946 dist_bashcompletion_DATA += \
3947 shell-completion/bash/hostnamectl
3949 dist_zshcompletion_DATA += \
3950 shell-completion/zsh/_hostnamectl
3954 polkitpolicy_in_files += \
3955 src/hostname/org.freedesktop.hostname1.policy.in
3958 units/systemd-hostnamed.service.in
3960 # ------------------------------------------------------------------------------
3962 dist_systemunit_DATA += \
3963 units/org.freedesktop.systemd1.busname
3965 BUSNAMES_TARGET_WANTS += \
3966 org.freedesktop.systemd1.busname
3969 # ------------------------------------------------------------------------------
3971 systemd_localed_SOURCES = \
3972 src/locale/localed.c
3974 systemd_localed_LDADD = \
3975 libsystemd-label.la \
3976 libsystemd-internal.la \
3977 libsystemd-shared.la
3979 nodist_systemunit_DATA += \
3980 units/systemd-localed.service
3982 dist_systemunit_DATA += \
3983 units/org.freedesktop.locale1.busname
3985 rootlibexec_PROGRAMS += \
3988 dist_dbuspolicy_DATA += \
3989 src/locale/org.freedesktop.locale1.conf
3991 dist_dbussystemservice_DATA += \
3992 src/locale/org.freedesktop.locale1.service
3994 polkitpolicy_files += \
3995 src/locale/org.freedesktop.locale1.policy
3997 SYSTEM_UNIT_ALIASES += \
3998 systemd-localed.service dbus-org.freedesktop.locale1.service
4000 BUSNAMES_TARGET_WANTS += \
4001 org.freedesktop.locale1.busname
4003 dist_pkgdata_DATA += \
4004 src/locale/kbd-model-map
4006 dist_noinst_SCRIPT = \
4007 src/locale/generate-kbd-model-map
4009 update-kbd-model-map: src/locale/generate-kbd-model-map
4010 $PYTHON $< >src/locale/kbd-model-map
4012 localectl_SOURCES = \
4013 src/locale/localectl.c
4016 libsystemd-internal.la \
4017 libsystemd-shared.la
4022 dist_bashcompletion_DATA += \
4023 shell-completion/bash/localectl
4025 dist_zshcompletion_DATA += \
4026 shell-completion/zsh/_localectl
4030 .PHONY: update-kbd-model-map
4032 polkitpolicy_in_files += \
4033 src/locale/org.freedesktop.locale1.policy.in
4036 units/systemd-localed.service.in
4038 # ------------------------------------------------------------------------------
4040 systemd_timedated_SOURCES = \
4041 src/timedate/timedated.c
4043 systemd_timedated_LDADD = \
4044 libsystemd-label.la \
4045 libsystemd-internal.la \
4046 libsystemd-shared.la
4048 rootlibexec_PROGRAMS += \
4051 dist_dbussystemservice_DATA += \
4052 src/timedate/org.freedesktop.timedate1.service
4054 dist_dbuspolicy_DATA += \
4055 src/timedate/org.freedesktop.timedate1.conf
4057 nodist_systemunit_DATA += \
4058 units/systemd-timedated.service
4060 dist_systemunit_DATA += \
4061 units/org.freedesktop.timedate1.busname
4063 polkitpolicy_files += \
4064 src/timedate/org.freedesktop.timedate1.policy
4067 $(prefix)/lib/systemd/ntp-units.d \
4068 $(sysconfdir)/systemd/ntp-units.d
4070 SYSTEM_UNIT_ALIASES += \
4071 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4073 BUSNAMES_TARGET_WANTS += \
4074 org.freedesktop.timedate1.busname
4076 timedatectl_SOURCES = \
4077 src/timedate/timedatectl.c
4079 timedatectl_LDADD = \
4080 libsystemd-internal.la \
4081 libsystemd-shared.la
4086 dist_bashcompletion_DATA += \
4087 shell-completion/bash/timedatectl
4089 dist_zshcompletion_DATA += \
4090 shell-completion/zsh/_timedatectl
4093 polkitpolicy_in_files += \
4094 src/timedate/org.freedesktop.timedate1.policy.in
4097 units/systemd-timedated.service.in
4099 # ------------------------------------------------------------------------------
4101 systemd_timesyncd_SOURCES = \
4102 src/timesync/timesyncd.c \
4103 src/timesync/timesyncd.h
4105 nodist_systemd_timesyncd_SOURCES = \
4106 src/timesync/timesyncd-gperf.c
4109 src/timesync/timesyncd-gperf.gperf
4112 src/timesync/timesyncd-gperf.c
4114 systemd_timesyncd_LDADD = \
4115 libsystemd-resolve.la \
4116 libsystemd-network.la \
4117 libsystemd-label.la \
4118 libsystemd-capability.la \
4119 libsystemd-internal.la \
4120 libsystemd-shared.la \
4123 rootlibexec_PROGRAMS += \
4126 nodist_systemunit_DATA += \
4127 units/systemd-timesyncd.service
4130 units/systemd-timesyncd.service.in
4132 nodist_pkgsysconf_DATA += \
4133 src/timesync/timesyncd.conf
4136 src/timesync/timesyncd.conf.in
4139 src/timesync/timesyncd.conf
4141 dist_ntpunits_DATA = \
4142 src/timesync/90-systemd.list
4146 # ------------------------------------------------------------------------------
4148 libnss_myhostname_la_SOURCES = \
4149 src/nss-myhostname/nss-myhostname.c \
4150 src/nss-myhostname/ifconf.h \
4151 src/nss-myhostname/netlink.c
4153 libnss_myhostname_la_LDFLAGS = \
4161 libnss_myhostname_la_LIBADD = \
4162 libsystemd-shared.la \
4163 libsystemd-internal.la
4165 lib_LTLIBRARIES += \
4166 libnss_myhostname.la
4169 # ------------------------------------------------------------------------------
4171 systemd_machined_SOURCES = \
4172 src/machine/machined.c \
4173 src/machine/machined.h
4175 systemd_machined_LDADD = \
4176 libsystemd-machine-core.la
4178 rootlibexec_PROGRAMS += \
4181 libsystemd_machine_core_la_SOURCES = \
4182 src/machine/machined-dbus.c \
4183 src/machine/machine.c \
4184 src/machine/machine.h \
4185 src/machine/machine-dbus.c
4187 libsystemd_machine_core_la_LIBADD = \
4188 libsystemd-label.la \
4189 libsystemd-internal.la \
4190 libudev-internal.la \
4191 libsystemd-shared.la
4193 noinst_LTLIBRARIES += \
4194 libsystemd-machine-core.la
4196 machinectl_SOURCES = \
4197 src/machine/machinectl.c
4199 machinectl_LDADD = \
4200 libsystemd-internal.la \
4201 libsystemd-shared.la
4203 rootbin_PROGRAMS += \
4206 dist_bashcompletion_DATA += \
4207 shell-completion/bash/machinectl
4209 test_machine_tables_SOURCES = \
4210 src/machine/test-machine-tables.c
4212 test_machine_tables_LDADD = \
4213 libsystemd-machine-core.la
4218 nodist_systemunit_DATA += \
4219 units/systemd-machined.service
4221 dist_systemunit_DATA += \
4222 units/machine.slice \
4223 units/org.freedesktop.machine1.busname
4225 dist_dbussystemservice_DATA += \
4226 src/machine/org.freedesktop.machine1.service
4228 dist_dbuspolicy_DATA += \
4229 src/machine/org.freedesktop.machine1.conf
4231 dist_zshcompletion_DATA += \
4232 shell-completion/zsh/_machinectl \
4233 shell-completion/zsh/_sd_machines
4235 SYSTEM_UNIT_ALIASES += \
4236 systemd-machined.service dbus-org.freedesktop.machine1.service
4238 BUSNAMES_TARGET_WANTS += \
4239 org.freedesktop.machine1.busname
4242 units/systemd-machined.service.in
4246 # ------------------------------------------------------------------------------
4248 systemd_resolved_SOURCES = \
4249 src/resolve/resolved.h \
4250 src/resolve/resolved.c \
4251 src/resolve/resolved-manager.c
4253 systemd_resolved_CFLAGS = \
4257 nodist_systemd_resolved_SOURCES = \
4258 src/resolve/resolved-gperf.c
4261 src/resolve/resolved-gperf.gperf
4264 src/resolve/resolved-gperf.c
4266 systemd_resolved_LDADD = \
4267 libsystemd-capability.la \
4268 libsystemd-network.la \
4269 libsystemd-label.la \
4270 libsystemd-internal.la \
4271 libsystemd-shared.la
4273 rootlibexec_PROGRAMS += \
4276 nodist_systemunit_DATA += \
4277 units/systemd-resolved.service
4280 units/systemd-resolved.service.in
4282 GENERAL_ALIASES += \
4283 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4285 nodist_pkgsysconf_DATA += \
4286 src/resolve/resolved.conf
4289 src/resolve/resolved.conf.in
4292 src/resolve/resolved.conf
4296 # ------------------------------------------------------------------------------
4298 rootlibexec_PROGRAMS += \
4301 systemd_networkd_SOURCES = \
4302 src/network/networkd.c
4304 systemd_networkd_LDADD = \
4305 libsystemd-networkd-core.la \
4306 libsystemd-capability.la
4308 noinst_LTLIBRARIES += \
4309 libsystemd-networkd-core.la
4311 libsystemd_networkd_core_la_CFLAGS = \
4314 libsystemd_networkd_core_la_SOURCES = \
4315 src/libsystemd-network/network-internal.h \
4316 src/network/networkd.h \
4317 src/network/networkd-link.c \
4318 src/network/networkd-netdev.c \
4319 src/network/networkd-tunnel.c \
4320 src/network/networkd-veth.c \
4321 src/network/networkd-network.c \
4322 src/network/networkd-address.c \
4323 src/network/networkd-route.c \
4324 src/network/networkd-manager.c
4326 nodist_libsystemd_networkd_core_la_SOURCES = \
4327 src/network/networkd-network-gperf.c \
4328 src/network/networkd-netdev-gperf.c
4330 libsystemd_networkd_core_la_LIBADD = \
4331 libudev-internal.la \
4332 libsystemd-internal.la \
4333 libsystemd-network.la \
4334 libsystemd-label.la \
4335 libsystemd-shared.la
4337 rootlibexec_PROGRAMS += \
4338 systemd-networkd-wait-online
4340 systemd_networkd_wait_online_CFLAGS = \
4343 systemd_networkd_wait_online_SOURCES = \
4344 src/libsystemd-network/network-internal.h \
4345 src/network/networkd-wait-online.c \
4346 src/network/networkd-wait-online.h
4348 systemd_networkd_wait_online_LDADD = \
4349 libsystemd-network.la \
4350 libudev-internal.la \
4351 libsystemd-internal.la \
4352 libsystemd-shared.la
4354 test_network_SOURCES = \
4355 src/network/test-network.c
4357 test_network_CFLAGS = \
4360 test_network_LDADD = \
4361 libsystemd-networkd-core.la
4366 nodist_systemunit_DATA += \
4367 units/systemd-networkd.service \
4368 units/systemd-networkd-wait-online.service
4370 GENERAL_ALIASES += \
4371 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4372 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4375 src/network/networkd-network-gperf.gperf \
4376 src/network/networkd-netdev-gperf.gperf \
4377 units/systemd-networkd.service.in \
4378 units/systemd-networkd-wait-online.service.in
4381 src/network/networkd-network-gperf.c \
4382 src/network/networkd-netdev-gperf.c
4385 # ------------------------------------------------------------------------------
4387 systemd_logind_SOURCES = \
4388 src/login/logind.c \
4391 nodist_systemd_logind_SOURCES = \
4392 src/login/logind-gperf.c
4394 systemd_logind_LDADD = \
4395 libsystemd-logind-core.la
4397 libsystemd_logind_core_la_SOURCES = \
4398 src/login/logind-core.c \
4399 src/login/logind-device.c \
4400 src/login/logind-device.h \
4401 src/login/logind-button.c \
4402 src/login/logind-button.h \
4403 src/login/logind-action.c \
4404 src/login/logind-action.h \
4405 src/login/logind-seat.c \
4406 src/login/logind-seat.h \
4407 src/login/logind-session.c \
4408 src/login/logind-session.h \
4409 src/login/logind-session-device.c \
4410 src/login/logind-session-device.h \
4411 src/login/logind-user.c \
4412 src/login/logind-user.h \
4413 src/login/logind-inhibit.c \
4414 src/login/logind-inhibit.h \
4415 src/login/logind-dbus.c \
4416 src/login/logind-session-dbus.c \
4417 src/login/logind-seat-dbus.c \
4418 src/login/logind-user-dbus.c \
4419 src/login/logind-acl.h
4421 libsystemd_logind_core_la_LIBADD = \
4422 libsystemd-label.la \
4423 libsystemd-capability.la \
4424 libsystemd-internal.la \
4425 libudev-internal.la \
4426 libsystemd-shared.la
4429 libsystemd_logind_core_la_SOURCES += \
4430 src/login/logind-acl.c
4432 libsystemd_logind_core_la_LIBADD += \
4436 noinst_LTLIBRARIES += \
4437 libsystemd-logind-core.la
4439 systemd_user_sessions_SOURCES = \
4440 src/login/user-sessions.c
4442 systemd_user_sessions_LDADD = \
4443 libsystemd-shared.la
4445 rootlibexec_PROGRAMS += \
4447 systemd-user-sessions
4449 loginctl_SOURCES = \
4450 src/login/loginctl.c \
4451 src/login/sysfs-show.c
4454 libsystemd-internal.la \
4455 libudev-internal.la \
4456 libsystemd-shared.la
4458 rootbin_PROGRAMS += \
4461 dist_bashcompletion_DATA += \
4462 shell-completion/bash/loginctl
4464 dist_zshcompletion_DATA += \
4465 shell-completion/zsh/_loginctl \
4466 shell-completion/zsh/_systemd-inhibit
4468 systemd_inhibit_SOURCES = \
4471 systemd_inhibit_LDADD = \
4472 libsystemd-internal.la \
4473 libsystemd-shared.la
4475 rootbin_PROGRAMS += \
4478 test_login_SOURCES = \
4479 src/libsystemd/sd-login/test-login.c
4481 test_login_LDADD = \
4482 libsystemd-internal.la \
4483 libsystemd-shared.la
4485 test_login_shared_SOURCES = \
4486 src/login/test-login-shared.c
4488 test_login_shared_LDADD = \
4489 libsystemd-internal.la \
4490 libsystemd-shared.la
4492 test_inhibit_SOURCES = \
4493 src/login/test-inhibit.c
4495 test_inhibit_LDADD = \
4496 libsystemd-internal.la \
4497 libsystemd-shared.la
4499 test_login_tables_SOURCES = \
4500 src/login/test-login-tables.c
4502 test_login_tables_LDADD = \
4503 libsystemd-logind-core.la
4514 pam_systemd_la_SOURCES = \
4515 src/login/pam-module.c
4517 pam_systemd_la_CFLAGS = \
4522 pam_systemd_la_LDFLAGS = \
4528 -export-symbols-regex '^pam_sm_.*'
4530 pam_systemd_la_LIBADD = \
4531 libsystemd-capability.la \
4532 libsystemd-internal.la \
4533 libsystemd-shared.la \
4536 pamlib_LTLIBRARIES = \
4539 dist_pamconf_DATA = \
4540 src/login/systemd-user
4543 nodist_systemunit_DATA += \
4544 units/systemd-logind.service \
4545 units/systemd-user-sessions.service
4547 dist_systemunit_DATA += \
4549 units/org.freedesktop.login1.busname
4551 dist_dbussystemservice_DATA += \
4552 src/login/org.freedesktop.login1.service
4554 dist_dbuspolicy_DATA += \
4555 src/login/org.freedesktop.login1.conf
4557 dist_pkgsysconf_DATA += \
4558 src/login/logind.conf
4560 polkitpolicy_files += \
4561 src/login/org.freedesktop.login1.policy
4566 MULTI_USER_TARGET_WANTS += \
4567 systemd-logind.service \
4568 systemd-user-sessions.service
4570 SYSTEM_UNIT_ALIASES += \
4571 systemd-logind.service dbus-org.freedesktop.login1.service
4573 BUSNAMES_TARGET_WANTS += \
4574 org.freedesktop.login1.busname
4576 if ENABLE_MULTI_SEAT_X
4578 systemd_multi_seat_x_SOURCES = \
4579 src/login/multi-seat-x.c
4581 systemd_multi_seat_x_LDADD = \
4582 libsystemd-label.la \
4583 libsystemd-shared.la
4585 rootlibexec_PROGRAMS += \
4586 systemd-multi-seat-x
4590 dist_udevrules_DATA += \
4591 src/login/70-uaccess.rules \
4592 src/login/70-power-switch.rules
4594 nodist_udevrules_DATA += \
4595 src/login/71-seat.rules \
4596 src/login/73-seat-late.rules
4599 src/login/logind-gperf.c \
4600 src/login/71-seat.rules \
4601 src/login/73-seat-late.rules
4604 polkitpolicy_in_files += \
4605 src/login/org.freedesktop.login1.policy.in
4608 src/login/logind-gperf.gperf \
4609 src/login/71-seat.rules.in \
4610 src/login/73-seat-late.rules.in \
4611 units/systemd-logind.service.in \
4612 units/systemd-user-sessions.service.in
4614 # ------------------------------------------------------------------------------
4615 if HAVE_PYTHON_DEVEL
4616 pkgpyexec_LTLIBRARIES = \
4623 _journal_la_SOURCES = \
4624 src/python-systemd/_journal.c
4626 _journal_la_CFLAGS = \
4628 -fvisibility=default \
4629 $(PYTHON_DEVEL_CFLAGS)
4631 _journal_la_LDFLAGS = \
4637 _journal_la_LIBADD = \
4638 $(PYTHON_DEVEL_LIBS) \
4641 id128_la_SOURCES = \
4642 src/python-systemd/id128.c \
4643 src/python-systemd/id128-constants.h \
4644 src/python-systemd/pyutil.c \
4645 src/python-systemd/pyutil.h
4649 -fvisibility=default \
4650 $(PYTHON_DEVEL_CFLAGS) \
4651 -I$(top_builddir)/src/python-systemd
4653 id128_la_LDFLAGS = \
4660 $(PYTHON_DEVEL_LIBS) \
4661 libsystemd-shared.la \
4664 _daemon_la_SOURCES = \
4665 src/python-systemd/_daemon.c \
4666 src/python-systemd/pyutil.c \
4667 src/python-systemd/pyutil.h
4669 _daemon_la_CFLAGS = \
4671 -fvisibility=default \
4672 $(PYTHON_DEVEL_CFLAGS) \
4673 -I$(top_builddir)/src/python-systemd
4675 _daemon_la_LDFLAGS = \
4681 _daemon_la_LIBADD = \
4682 $(PYTHON_DEVEL_LIBS) \
4683 libsystemd-shared.la \
4686 _reader_la_SOURCES = \
4687 src/python-systemd/_reader.c \
4688 src/python-systemd/pyutil.c \
4689 src/python-systemd/pyutil.h
4691 _reader_la_CFLAGS = \
4693 -fvisibility=default \
4694 $(PYTHON_DEVEL_CFLAGS)
4696 _reader_la_LDFLAGS = \
4702 _reader_la_LIBADD = \
4703 $(PYTHON_DEVEL_LIBS) \
4704 libsystemd-shared.la \
4707 login_la_SOURCES = \
4708 src/python-systemd/login.c \
4709 src/python-systemd/pyutil.c \
4710 src/python-systemd/pyutil.h
4714 -fvisibility=default \
4715 $(PYTHON_DEVEL_CFLAGS)
4717 login_la_LDFLAGS = \
4724 $(PYTHON_DEVEL_LIBS) \
4725 libsystemd-shared.la \
4728 dist_pkgpyexec_PYTHON = \
4729 src/python-systemd/journal.py \
4730 src/python-systemd/daemon.py \
4731 src/python-systemd/__init__.py
4733 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4734 $(AM_V_at)$(MKDIR_P) $(dir $@)
4735 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4738 src/python-systemd/id128-constants.h
4740 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4742 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4743 $(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/
4744 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4747 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4748 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4751 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4752 $(MAKE) DESTDIR="$$dir" install && \
4753 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4758 CLEAN_LOCAL_HOOKS += clean-sphinx
4760 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4763 -rm -rf docs/html/python-systemd/
4765 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4767 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4768 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4770 # ------------------------------------------------------------------------------
4771 if ENABLE_COMPAT_LIBS
4773 src/compat-libs/linkwarning.h
4775 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4776 $(AM_V_at)$(MKDIR_P) $(dir $@)
4777 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4780 libsystemd-journal.c \
4781 libsystemd-login.c \
4782 libsystemd-id128.c \
4785 libsystemd_journal_la_SOURCES = \
4786 libsystemd-journal.c \
4787 src/compat-libs/libsystemd-journal.sym
4789 libsystemd_journal_la_CPPFLAGS = \
4791 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4793 libsystemd_journal_la_LDFLAGS = \
4795 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4796 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
4798 libsystemd_journal_la_LIBADD = \
4799 libsystemd-journal-internal.la \
4800 libsystemd-internal.la \
4801 libsystemd-shared.la
4803 libsystemd_login_la_SOURCES = \
4804 libsystemd-login.c \
4805 src/compat-libs/libsystemd-login.sym
4807 libsystemd_login_la_CPPFLAGS = \
4809 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4811 libsystemd_login_la_LDFLAGS = \
4813 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4814 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
4816 libsystemd_login_la_LIBADD = \
4817 libsystemd-internal.la \
4818 libsystemd-shared.la
4820 libsystemd_id128_la_SOURCES = \
4821 libsystemd-id128.c \
4822 src/compat-libs/libsystemd-id128.sym
4824 libsystemd_id128_la_CPPFLAGS = \
4826 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4828 libsystemd_id128_la_LDFLAGS = \
4830 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
4831 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
4833 libsystemd_id128_la_LIBADD = \
4834 libsystemd-internal.la \
4835 libsystemd-shared.la
4837 libsystemd_daemon_la_SOURCES = \
4838 libsystemd-daemon.c \
4839 src/compat-libs/libsystemd-daemon.sym
4841 libsystemd_daemon_la_CPPFLAGS = \
4843 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4845 libsystemd_daemon_la_LDFLAGS = \
4847 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
4848 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
4850 libsystemd_daemon_la_LIBADD = \
4851 libsystemd-internal.la \
4852 libsystemd-shared.la
4854 lib_LTLIBRARIES += \
4855 libsystemd-journal.la \
4856 libsystemd-login.la \
4857 libsystemd-id128.la \
4858 libsystemd-daemon.la
4860 pkgconfiglib_DATA += \
4861 src/compat-libs/libsystemd-journal.pc \
4862 src/compat-libs/libsystemd-login.pc \
4863 src/compat-libs/libsystemd-id128.pc \
4864 src/compat-libs/libsystemd-daemon.pc
4866 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4867 compat-lib-install-hook:
4868 libname=libsystemd-login.so && $(move-to-rootlibdir)
4869 libname=libsystemd-journal.so && $(move-to-rootlibdir)
4870 libname=libsystemd-id128.so && $(move-to-rootlibdir)
4871 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
4873 compat-lib-uninstall-hook:
4874 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4875 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
4876 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
4877 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
4879 INSTALL_EXEC_HOOKS += compat-lib-install-hook
4880 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
4884 src/compat-libs/libsystemd-journal.pc.in \
4885 src/compat-libs/libsystemd-login.pc.in \
4886 src/compat-libs/libsystemd-id128.pc.in \
4887 src/compat-libs/libsystemd-daemon.pc.in
4889 # ------------------------------------------------------------------------------
4891 '|rootlibexecdir=$(rootlibexecdir)|' \
4892 '|rootbindir=$(rootbindir)|' \
4893 '|bindir=$(bindir)|' \
4894 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4895 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4896 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4897 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4898 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4899 '|pkgdatadir=$(pkgdatadir)|' \
4900 '|systemunitdir=$(systemunitdir)|' \
4901 '|userunitdir=$(userunitdir)|' \
4902 '|systempresetdir=$(systempresetdir)|' \
4903 '|userpresetdir=$(userpresetdir)|' \
4904 '|udevhwdbdir=$(udevhwdbdir)|' \
4905 '|udevrulesdir=$(udevrulesdir)|' \
4906 '|catalogdir=$(catalogdir)|' \
4907 '|tmpfilesdir=$(tmpfilesdir)|' \
4908 '|sysusersdir=$(sysusersdir)|' \
4909 '|sysctldir=$(sysctldir)|' \
4910 '|systemgeneratordir=$(systemgeneratordir)|' \
4911 '|usergeneratordir=$(usergeneratordir)|' \
4912 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4913 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4914 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4915 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4916 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4917 '|prefix=$(prefix)|' \
4918 '|exec_prefix=$(exec_prefix)|' \
4919 '|libdir=$(libdir)|' \
4920 '|includedir=$(includedir)|' \
4921 '|VERSION=$(VERSION)|' \
4922 '|rootprefix=$(rootprefix)|' \
4923 '|udevlibexecdir=$(udevlibexecdir)|' \
4924 '|SUSHELL=$(SUSHELL)|' \
4925 '|DEBUGTTY=$(DEBUGTTY)|' \
4928 '|MKDIR_P=$(MKDIR_P)|' \
4929 '|QUOTAON=$(QUOTAON)|' \
4930 '|QUOTACHECK=$(QUOTACHECK)|' \
4931 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4932 '|VARLOGDIR=$(varlogdir)|' \
4933 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4934 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4935 '|PYTHON=$(PYTHON)|' \
4936 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
4937 '|NTP_SERVERS=$(NTP_SERVERS)|' \
4938 '|DNS_SERVERS=$(DNS_SERVERS)|' \
4939 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
4940 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
4941 '|TTY_GID=$(TTY_GID)|'
4944 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4945 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4954 sysctl.d/%: sysctl.d/%.in
4960 src/core/macros.%: src/core/macros.%.in
4963 src/%.policy.in: src/%.policy.in.in
4974 $(AM_V_GEN)chmod +x $@
4976 src/%.c: src/%.gperf
4977 $(AM_V_at)$(MKDIR_P) $(dir $@)
4978 $(AM_V_GPERF)$(GPERF) < $< > $@
4981 $(AM_V_at)$(MKDIR_P) $(dir $@)
4982 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4985 $(AM_V_at)$(MKDIR_P) $(dir $@)
4986 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4988 units/user/%: units/%.m4
4989 $(AM_V_at)$(MKDIR_P) $(dir $@)
4990 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4993 nodist_polkitpolicy_DATA = \
4994 $(polkitpolicy_files) \
4995 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4999 $(polkitpolicy_in_files) \
5000 $(polkitpolicy_in_in_files)
5003 $(nodist_systemunit_DATA) \
5004 $(nodist_userunit_DATA) \
5005 $(pkgconfigdata_DATA) \
5006 $(pkgconfiglib_DATA) \
5007 $(nodist_polkitpolicy_DATA)
5009 # ------------------------------------------------------------------------------
5011 man/custom-entities.ent: configure.ac
5012 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5013 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5014 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5018 man/custom-entities.ent
5023 --stringparam man.output.quietly 1 \
5024 --stringparam funcsynopsis.style ansi \
5025 --stringparam man.authors.section.enabled 0 \
5026 --stringparam man.copyright.section.enabled 0 \
5027 --stringparam systemd.version $(VERSION) \
5028 --path '$(builddir)/man:$(srcdir)/man'
5030 XSLTPROC_PROCESS_MAN = \
5031 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5033 XSLTPROC_PROCESS_HTML = \
5034 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5036 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5037 $(XSLTPROC_PROCESS_MAN)
5039 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5040 $(XSLTPROC_PROCESS_MAN)
5042 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5043 $(XSLTPROC_PROCESS_MAN)
5045 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5046 $(XSLTPROC_PROCESS_MAN)
5048 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5049 $(XSLTPROC_PROCESS_MAN)
5051 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5052 $(XSLTPROC_PROCESS_HTML)
5055 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5061 man/custom-html.xsl \
5064 # ------------------------------------------------------------------------------
5067 docs/sysvinit/README
5072 docs/sysvinit/README: docs/sysvinit/README.in
5075 docs/var-log/README: docs/var-log/README.in
5079 docs/sysvinit/README \
5084 docs/sysvinit/README.in \
5085 docs/var-log/README.in
5087 SOCKETS_TARGET_WANTS += \
5088 systemd-initctl.socket \
5089 systemd-shutdownd.socket
5092 RUNLEVEL1_TARGET_WANTS += \
5093 systemd-update-utmp-runlevel.service
5094 RUNLEVEL2_TARGET_WANTS += \
5095 systemd-update-utmp-runlevel.service
5096 RUNLEVEL3_TARGET_WANTS += \
5097 systemd-update-utmp-runlevel.service
5098 RUNLEVEL4_TARGET_WANTS += \
5099 systemd-update-utmp-runlevel.service
5100 RUNLEVEL5_TARGET_WANTS += \
5101 systemd-update-utmp-runlevel.service
5103 SYSINIT_TARGET_WANTS += \
5104 systemd-update-utmp.service
5105 LOCAL_FS_TARGET_WANTS += \
5106 systemd-remount-fs.service \
5108 MULTI_USER_TARGET_WANTS += \
5110 systemd-ask-password-wall.path
5111 SYSINIT_TARGET_WANTS += \
5112 dev-hugepages.mount \
5114 sys-kernel-config.mount \
5115 sys-kernel-debug.mount \
5116 sys-fs-fuse-connections.mount \
5117 systemd-sysctl.service \
5118 systemd-ask-password-console.path
5121 SYSTEM_UNIT_ALIASES += \
5122 poweroff.target runlevel0.target \
5123 rescue.target runlevel1.target \
5124 multi-user.target runlevel2.target \
5125 multi-user.target runlevel3.target \
5126 multi-user.target runlevel4.target \
5127 graphical.target runlevel5.target \
5128 reboot.target runlevel6.target
5131 SYSTEM_UNIT_ALIASES += \
5132 graphical.target default.target \
5133 reboot.target ctrl-alt-del.target \
5134 getty@.service autovt@.service
5136 USER_UNIT_ALIASES += \
5137 $(systemunitdir)/shutdown.target shutdown.target \
5138 $(systemunitdir)/sockets.target sockets.target \
5139 $(systemunitdir)/busnames.target busnames.target \
5140 $(systemunitdir)/timers.target timers.target \
5141 $(systemunitdir)/paths.target paths.target \
5142 $(systemunitdir)/bluetooth.target bluetooth.target \
5143 $(systemunitdir)/printer.target printer.target \
5144 $(systemunitdir)/sound.target sound.target \
5145 $(systemunitdir)/smartcard.target smartcard.target
5147 GENERAL_ALIASES += \
5148 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5149 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5150 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5151 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5155 $(systemunitdir)/runlevel1.target.wants \
5156 $(systemunitdir)/runlevel2.target.wants \
5157 $(systemunitdir)/runlevel3.target.wants \
5158 $(systemunitdir)/runlevel4.target.wants \
5159 $(systemunitdir)/runlevel5.target.wants
5163 $(prefix)/lib/modules-load.d \
5164 $(sysconfdir)/modules-load.d \
5165 $(prefix)/lib/systemd/network \
5166 $(sysconfdir)/systemd/network \
5167 $(prefix)/lib/sysctl.d \
5168 $(sysconfdir)/sysctl.d \
5169 $(prefix)/lib/kernel/install.d \
5170 $(sysconfdir)/kernel/install.d \
5171 $(systemshutdowndir) \
5173 $(systemgeneratordir) \
5174 $(usergeneratordir) \
5177 $(pkgsysconfdir)/system \
5178 $(pkgsysconfdir)/system/multi-user.target.wants \
5179 $(pkgsysconfdir)/system/getty.target.wants \
5180 $(pkgsysconfdir)/user \
5181 $(dbussessionservicedir) \
5182 $(sysconfdir)/xdg/systemd
5184 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5186 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5188 install-data-hook: $(INSTALL_DATA_HOOKS)
5190 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5192 clean-local: $(CLEAN_LOCAL_HOOKS)
5193 rm -rf $(abs_srcdir)/install-tree
5194 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5195 $(abs_srcdir)/hwdb/iab.txt
5197 DISTCHECK_CONFIGURE_FLAGS = \
5198 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5199 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5200 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5201 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5202 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5203 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5204 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5205 --with-rootprefix=$$dc_install_base \
5206 --disable-split-usr \
5208 --enable-compat-libs
5211 DISTCHECK_CONFIGURE_FLAGS += \
5212 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5213 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5215 DISTCHECK_CONFIGURE_FLAGS += \
5216 --with-sysvinit-path= \
5217 --with-sysvrcnd-path=
5221 DISTCHECK_CONFIGURE_FLAGS += \
5225 # check "broken" platforms limited toolchains for link breakage before we release
5228 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5232 ( cd $(top_srcdir)/hwdb && \
5233 wget -N http://www.linux-usb.org/usb.ids \
5234 http://pci-ids.ucw.cz/v2.2/pci.ids \
5235 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5236 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5239 .PHONY: kdbus-update
5241 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5242 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5246 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5248 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5250 upload: all check dist
5251 scp systemd-$(VERSION).tar.xz $(www_target)
5254 doc-sync: all destdir-sphinx
5255 gtkdoc-rebase --html-dir=docs/libudev/html --online
5256 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5257 gtkdoc-rebase --html-dir=docs/gudev/html --online
5258 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5259 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5260 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5264 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5265 scp man/*.html tango:public/systemd-man/
5267 .PHONY: install-tree
5269 rm -rf $(abs_srcdir)/install-tree
5270 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5271 tree $(abs_srcdir)/install-tree
5273 # Let's run all tests of the test suite, but under valgrind. Let's
5274 # exclude the one perl script we have in there
5275 .PHONY: valgrind-tests
5276 valgrind-tests: $(TESTS)
5277 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5278 if file $$f | grep -q shell; then \
5279 echo -e "$${x}Skipping non-binary $$f"; else \
5280 echo -e "$${x}Running $$f"; \
5281 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5286 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5288 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5289 $(AM_V_GEN)cat $^ > $@
5291 .PHONY: check-api-docs
5292 check-api-docs: exported man
5293 $(AM_V_GEN)for symbol in `cat exported` ; do \
5294 if test -f $(builddir)/man/$$symbol.html ; then \
5295 echo " Symbol $$symbol() is documented." ; \
5297 echo "‣ Symbol $$symbol() lacks documentation." ; \
5301 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5302 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5304 undefined defined: $(ALL_OBJECTS)
5305 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5306 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5307 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5313 .PHONY: check-api-unused
5314 check-api-unused: defined undefined exported
5315 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5317 .PHONY: check-includes
5318 check-includes: $(top_srcdir)/tools/check-includes.pl
5319 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5320 | xargs $(top_srcdir)/tools/check-includes.pl
5323 $(top_srcdir)/tools/check-includes.pl
5325 # Stupid test that everything purported to be exported really is
5326 define generate-sym-test
5327 $(AM_V_at)$(MKDIR_P) $(dir $@)
5328 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5329 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5330 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5331 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5332 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5333 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5334 $(AM_V_at)printf 'return 0; }\n' >> $@
5337 test-libsystemd-sym.c: \
5338 $(top_builddir)/src/libsystemd/libsystemd.sym \
5339 src/systemd/sd-journal.h \
5340 src/systemd/sd-daemon.h \
5341 src/systemd/sd-login.h \
5342 src/systemd/sd-bus.h \
5343 src/systemd/sd-utf8.h \
5344 src/systemd/sd-resolve.h
5345 $(generate-sym-test)
5347 test-libudev-sym.c: \
5348 src/libudev/libudev.sym \
5350 $(generate-sym-test)
5352 test_libsystemd_sym_SOURCES = \
5353 test-libsystemd-sym.c
5354 test_libsystemd_sym_LDADD = \
5357 test_libudev_sym_SOURCES = \
5359 test_libudev_sym_CFLAGS = \
5361 -Wno-deprecated-declarations
5362 test_libudev_sym_LDADD = \
5366 $(test_libsystemd_sym_SOURCES) \
5367 $(test_libudev_sym_SOURCES)
5370 test-libsystemd-sym \
5375 cppcheck --enable=all -q $(top_srcdir)
5377 # Used to extract compile flags for YCM.
5382 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u