1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
46 LIBSYSTEMD_LOGIN_CURRENT=9
47 LIBSYSTEMD_LOGIN_REVISION=3
48 LIBSYSTEMD_LOGIN_AGE=9
50 LIBSYSTEMD_DAEMON_CURRENT=0
51 LIBSYSTEMD_DAEMON_REVISION=12
52 LIBSYSTEMD_DAEMON_AGE=0
54 LIBSYSTEMD_ID128_CURRENT=0
55 LIBSYSTEMD_ID128_REVISION=28
56 LIBSYSTEMD_ID128_AGE=0
58 LIBSYSTEMD_JOURNAL_CURRENT=11
59 LIBSYSTEMD_JOURNAL_REVISION=5
60 LIBSYSTEMD_JOURNAL_AGE=11
66 # Dirs of external packages
67 dbuspolicydir=@dbuspolicydir@
68 dbussessionservicedir=@dbussessionservicedir@
69 dbussystemservicedir=@dbussystemservicedir@
71 pamconfdir=@pamconfdir@
72 pkgconfigdatadir=$(datadir)/pkgconfig
73 pkgconfiglibdir=$(libdir)/pkgconfig
74 polkitpolicydir=$(datadir)/polkit-1/actions
75 bashcompletiondir=@bashcompletiondir@
76 zshcompletiondir=@zshcompletiondir@
77 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
78 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
79 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
80 varlogdir=$(localstatedir)/log
81 systemdstatedir=$(localstatedir)/lib/systemd
82 catalogstatedir=$(systemdstatedir)/catalog
84 # Our own, non-special dirs
85 pkgsysconfdir=$(sysconfdir)/systemd
86 userunitdir=$(prefix)/lib/systemd/user
87 userpresetdir=$(prefix)/lib/systemd/user-preset
88 tmpfilesdir=$(prefix)/lib/tmpfiles.d
89 sysctldir=$(prefix)/lib/sysctl.d
90 networkdir=$(rootprefix)/lib/systemd/network
91 pkgincludedir=$(includedir)/systemd
92 systemgeneratordir=$(rootlibexecdir)/system-generators
93 usergeneratordir=$(prefix)/lib/systemd/user-generators
94 systemshutdowndir=$(rootlibexecdir)/system-shutdown
95 systemsleepdir=$(rootlibexecdir)/system-sleep
96 systemunitdir=$(rootprefix)/lib/systemd/system
97 systempresetdir=$(rootprefix)/lib/systemd/system-preset
98 udevlibexecdir=$(rootprefix)/lib/udev
99 udevhomedir=$(udevlibexecdir)
100 udevrulesdir=$(udevlibexecdir)/rules.d
101 udevhwdbdir=$(udevlibexecdir)/hwdb.d
102 catalogdir=$(prefix)/lib/systemd/catalog
103 kernelinstalldir = $(prefix)/lib/kernel/install.d
105 # And these are the special ones for /
106 rootprefix=@rootprefix@
107 rootbindir=$(rootprefix)/bin
108 rootlibexecdir=$(rootprefix)/lib/systemd
110 CLEANFILES = $(BUILT_SOURCES)
115 UNINSTALL_EXEC_HOOKS =
117 UNINSTALL_DATA_HOOKS =
118 DISTCLEAN_LOCAL_HOOKS =
126 polkitpolicy_in_in_files =
127 polkitpolicy_in_files =
129 dist_udevrules_DATA =
130 nodist_udevrules_DATA =
131 dist_pkgsysconf_DATA =
133 dist_dbuspolicy_DATA =
134 dist_dbussystemservice_DATA =
140 noinst_PROGRAMS = $(manual_tests) $(tests)
146 udevlibexec_PROGRAMS =
148 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
149 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
150 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
153 -include $(top_builddir)/config.h \
154 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
155 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
156 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
157 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
158 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
159 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
160 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
161 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
162 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
163 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
164 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
165 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
166 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
167 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
168 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
169 -DROOTPREFIX=\"$(rootprefix)\" \
170 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
171 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
172 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
173 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
174 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
175 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
176 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
177 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
178 -DX_SERVER=\"$(bindir)/X\" \
179 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
180 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
181 -DQUOTACHECK=\"$(QUOTACHECK)\" \
182 -DKEXEC=\"$(KEXEC)\" \
183 -I $(top_srcdir)/src \
184 -I $(top_builddir)/src/shared \
185 -I $(top_srcdir)/src/shared \
186 -I $(top_srcdir)/src/network \
187 -I $(top_srcdir)/src/login \
188 -I $(top_srcdir)/src/journal \
189 -I $(top_srcdir)/src/timedate \
190 -I $(top_srcdir)/src/systemd \
191 -I $(top_builddir)/src/core \
192 -I $(top_srcdir)/src/core \
193 -I $(top_srcdir)/src/libudev \
194 -I $(top_srcdir)/src/udev \
195 -I $(top_srcdir)/src/udev/net \
196 -I $(top_builddir)/src/udev \
197 -I $(top_srcdir)/src/libsystemd/sd-bus \
198 -I $(top_srcdir)/src/libsystemd/sd-event \
199 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
200 -I $(top_srcdir)/src/libsystemd-network \
203 AM_CFLAGS = $(OUR_CFLAGS)
204 AM_LDFLAGS = $(OUR_LDFLAGS)
206 # ------------------------------------------------------------------------------
207 define move-to-rootlibdir
208 if test "$(libdir)" != "$(rootlibdir)"; then \
209 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
210 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
211 rm -f $(DESTDIR)$(libdir)/$$libname && \
212 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
213 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
219 RUNLEVEL1_TARGET_WANTS =
220 RUNLEVEL2_TARGET_WANTS =
221 RUNLEVEL3_TARGET_WANTS =
222 RUNLEVEL4_TARGET_WANTS =
223 RUNLEVEL5_TARGET_WANTS =
224 SHUTDOWN_TARGET_WANTS =
225 LOCAL_FS_TARGET_WANTS =
226 MULTI_USER_TARGET_WANTS =
227 SYSINIT_TARGET_WANTS =
228 SOCKETS_TARGET_WANTS =
229 BUSNAMES_TARGET_WANTS =
230 TIMERS_TARGET_WANTS =
231 USER_SOCKETS_TARGET_WANTS =
232 USER_BUSNAMES_TARGET_WANTS =
234 SYSTEM_UNIT_ALIASES =
238 install-target-wants-hook:
239 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
240 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
241 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
242 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
243 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
244 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
245 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
246 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
247 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
248 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
249 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
253 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
256 [ -z "$$what" ] || ( \
257 dir=$(DESTDIR)$$dir/$$wants.wants && \
258 $(MKDIR_P) -m 0755 $$dir && \
261 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
264 install-directories-hook:
265 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
267 install-aliases-hook:
268 set -- $(SYSTEM_UNIT_ALIASES) && \
269 dir=$(systemunitdir) && $(install-aliases)
270 set -- $(USER_UNIT_ALIASES) && \
271 dir=$(userunitdir) && $(install-relative-aliases)
272 set -- $(GENERAL_ALIASES) && \
273 dir= && $(install-relative-aliases)
275 define install-aliases
276 while [ -n "$$1" ]; do \
277 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
278 rm -f $(DESTDIR)$$dir/$$2 && \
279 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
280 shift 2 || exit $$?; \
284 define install-relative-aliases
285 while [ -n "$$1" ]; do \
286 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
287 rm -f $(DESTDIR)$$dir/$$2 && \
288 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
289 shift 2 || exit $$?; \
293 INSTALL_EXEC_HOOKS += \
294 install-target-wants-hook \
295 install-directories-hook \
298 # ------------------------------------------------------------------------------
299 AM_V_M4 = $(AM_V_M4_$(V))
300 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
301 AM_V_M4_0 = @echo " M4 " $@;
303 AM_V_XSLT = $(AM_V_XSLT_$(V))
304 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
305 AM_V_XSLT_0 = @echo " XSLT " $@;
307 AM_V_GPERF = $(AM_V_GPERF_$(V))
308 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
309 AM_V_GPERF_0 = @echo " GPERF " $@;
311 AM_V_LN = $(AM_V_LN_$(V))
312 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
313 AM_V_LN_0 = @echo " LN " $@;
315 AM_V_RM = $(AM_V_RM_$(V))
316 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
317 AM_V_RM_0 = @echo " RM " $@;
319 # ------------------------------------------------------------------------------
323 systemd-ask-password \
324 systemd-tty-ask-password-agent \
325 systemd-machine-id-setup
331 systemd-detect-virt \
337 src/kernel-install/kernel-install
339 dist_kernelinstall_SCRIPTS = \
340 src/kernel-install/50-depmod.install \
341 src/kernel-install/90-loaderentry.install
343 rootlibexec_PROGRAMS = \
345 systemd-cgroups-agent \
347 systemd-update-utmp \
351 systemd-reply-password \
357 systemd-socket-proxyd
359 systemgenerator_PROGRAMS = \
360 systemd-getty-generator \
361 systemd-fstab-generator \
362 systemd-system-update-generator
364 dist_bashcompletion_DATA = \
365 shell-completion/bash/busctl \
366 shell-completion/bash/journalctl \
367 shell-completion/bash/systemctl \
368 shell-completion/bash/systemd-analyze \
369 shell-completion/bash/systemd-cat \
370 shell-completion/bash/systemd-cgls \
371 shell-completion/bash/systemd-cgtop \
372 shell-completion/bash/systemd-delta \
373 shell-completion/bash/systemd-detect-virt \
374 shell-completion/bash/systemd-nspawn \
375 shell-completion/bash/systemd-run \
376 shell-completion/bash/udevadm \
377 shell-completion/bash/kernel-install
379 dist_zshcompletion_DATA = \
380 shell-completion/zsh/_systemctl \
381 shell-completion/zsh/_journalctl \
382 shell-completion/zsh/_udevadm \
383 shell-completion/zsh/_kernel-install \
384 shell-completion/zsh/_systemd-nspawn \
385 shell-completion/zsh/_systemd-analyze \
386 shell-completion/zsh/_systemd-run \
387 shell-completion/zsh/_sd_hosts_or_user_at_host \
388 shell-completion/zsh/_systemd-delta \
389 shell-completion/zsh/_systemd
392 sysctl.d/50-default.conf
394 dist_systemunit_DATA = \
395 units/graphical.target \
396 units/multi-user.target \
397 units/emergency.service \
398 units/emergency.target \
399 units/sysinit.target \
404 units/local-fs.target \
405 units/local-fs-pre.target \
406 units/initrd.target \
407 units/initrd-fs.target \
408 units/initrd-root-fs.target \
409 units/remote-fs.target \
410 units/remote-fs-pre.target \
411 units/network.target \
412 units/network-online.target \
413 units/nss-lookup.target \
414 units/nss-user-lookup.target \
415 units/hibernate.target \
416 units/hybrid-sleep.target \
417 units/poweroff.target \
418 units/reboot.target \
419 units/rescue.target \
420 units/rpcbind.target \
421 units/time-sync.target \
422 units/shutdown.target \
424 units/umount.target \
425 units/sigpwr.target \
427 units/sockets.target \
428 units/busnames.target \
429 units/timers.target \
431 units/suspend.target \
433 units/slices.target \
436 units/systemd-initctl.socket \
437 units/systemd-shutdownd.socket \
438 units/syslog.socket \
439 units/dev-hugepages.mount \
440 units/dev-mqueue.mount \
441 units/sys-kernel-config.mount \
442 units/sys-kernel-debug.mount \
443 units/sys-fs-fuse-connections.mount \
445 units/printer.target \
447 units/bluetooth.target \
448 units/smartcard.target \
449 units/systemd-ask-password-wall.path \
450 units/systemd-ask-password-console.path \
451 units/systemd-udevd-control.socket \
452 units/systemd-udevd-kernel.socket \
453 units/system-update.target \
454 units/initrd-switch-root.target
456 nodist_systemunit_DATA = \
457 units/getty@.service \
458 units/serial-getty@.service \
459 units/console-shell.service \
460 units/console-getty.service \
461 units/container-getty@.service \
462 units/systemd-initctl.service \
463 units/systemd-shutdownd.service \
464 units/systemd-remount-fs.service \
465 units/systemd-update-utmp.service \
466 units/systemd-update-utmp-runlevel.service \
467 units/systemd-ask-password-wall.service \
468 units/systemd-ask-password-console.service \
469 units/systemd-sysctl.service \
470 units/emergency.service \
471 units/rescue.service \
472 units/user@.service \
473 units/systemd-hibernate.service \
474 units/systemd-hybrid-sleep.service \
475 units/systemd-suspend.service \
476 units/systemd-halt.service \
477 units/systemd-poweroff.service \
478 units/systemd-reboot.service \
479 units/systemd-kexec.service \
480 units/systemd-fsck@.service \
481 units/systemd-fsck-root.service \
482 units/systemd-udevd.service \
483 units/systemd-udev-trigger.service \
484 units/systemd-udev-settle.service \
485 units/debug-shell.service \
486 units/initrd-parse-etc.service \
487 units/initrd-cleanup.service \
488 units/initrd-udevadm-cleanup-db.service \
489 units/initrd-switch-root.service \
490 units/systemd-nspawn@.service
492 dist_userunit_DATA = \
493 units/user/basic.target \
494 units/user/default.target \
495 units/user/exit.target
497 nodist_userunit_DATA = \
498 units/user/systemd-exit.service
501 units/getty@.service.m4 \
502 units/serial-getty@.service.m4 \
503 units/console-shell.service.m4.in \
504 units/console-getty.service.m4.in \
505 units/container-getty@.service.m4.in \
506 units/rescue.service.m4.in \
507 units/systemd-initctl.service.in \
508 units/systemd-shutdownd.service.in \
509 units/systemd-remount-fs.service.in \
510 units/systemd-update-utmp.service.in \
511 units/systemd-update-utmp-runlevel.service.in \
512 units/systemd-ask-password-wall.service.in \
513 units/systemd-ask-password-console.service.in \
514 units/systemd-sysctl.service.in \
515 units/emergency.service.in \
516 units/systemd-halt.service.in \
517 units/systemd-poweroff.service.in \
518 units/systemd-reboot.service.in \
519 units/systemd-kexec.service.in \
520 units/user/systemd-exit.service.in \
521 units/systemd-fsck@.service.in \
522 units/systemd-fsck-root.service.in \
523 units/user@.service.in \
524 units/debug-shell.service.in \
525 units/systemd-hibernate.service.in \
526 units/systemd-hybrid-sleep.service.in \
527 units/systemd-suspend.service.in \
528 units/quotaon.service.in \
529 units/initrd-parse-etc.service.in \
530 units/initrd-cleanup.service.in \
531 units/initrd-udevadm-cleanup-db.service.in \
532 units/initrd-switch-root.service.in \
533 units/systemd-nspawn@.service.in
536 units/console-shell.service.m4 \
537 units/console-getty.service.m4 \
538 units/container-getty@.service.m4 \
539 units/rescue.service.m4 \
540 units/user@.service.m4
543 nodist_systemunit_DATA += \
544 units/rc-local.service \
545 units/halt-local.service
547 systemgenerator_PROGRAMS += \
548 systemd-rc-local-generator
552 units/rc-local.service.in \
553 units/halt-local.service.in
555 # automake is broken and can't handle files with a dash in front
556 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
558 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
560 units-uninstall-hook:
561 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
563 INSTALL_DATA_HOOKS += units-install-hook
564 UNINSTALL_DATA_HOOKS += units-uninstall-hook
573 src/libsystemd/sd-bus/PORTING-DBUS1 \
574 src/libsystemd/sd-bus/DIFFERENCES \
575 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
577 @INTLTOOL_POLICY_RULE@
579 # ------------------------------------------------------------------------------
584 include Makefile-man.am
586 .PHONY: man update-man-list
587 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
590 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
592 ${XML_FILES:.xml=.html}
594 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
611 $(AM_V_at)$(MKDIR_P) $(dir $@)
612 $(AM_V_LN)$(LN_S) -f ../../man $@
621 man/index.html: man/systemd.index.html
622 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
630 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
631 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
632 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
634 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
635 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
636 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
637 @echo "Makefile-man.am has been regenerated"
639 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
640 $(AM_V_at)$(MKDIR_P) $(dir $@)
641 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
643 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
644 $(AM_V_at)$(MKDIR_P) $(dir $@)
645 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
648 man/systemd.index.xml \
650 man/systemd.directives.xml
653 man/systemd.index.xml \
654 man/systemd.directives.xml
665 tools/make-man-index.py \
666 tools/make-directive-index.py \
667 tools/make-man-rules.py \
670 # ------------------------------------------------------------------------------
671 noinst_LTLIBRARIES += \
674 libsystemd_shared_la_SOURCES = \
675 src/shared/linux/auto_dev-ioctl.h \
676 src/shared/linux/fanotify.h \
677 src/shared/ioprio.h \
678 src/shared/missing.h \
679 src/shared/initreq.h \
680 src/shared/securebits.h \
681 src/shared/special.h \
685 src/shared/sparse-endian.h \
686 src/shared/refcnt.h \
687 src/shared/udev-util.h \
688 src/shared/bus-errors.h \
689 src/shared/device-nodes.c \
690 src/shared/device-nodes.h \
695 src/shared/architecture.c \
696 src/shared/architecture.h \
697 src/shared/efivars.c \
698 src/shared/efivars.h \
699 src/shared/path-util.c \
700 src/shared/path-util.h \
701 src/shared/time-util.c \
702 src/shared/time-util.h \
703 src/shared/hashmap.c \
704 src/shared/hashmap.h \
705 src/shared/siphash24.c \
706 src/shared/siphash24.h \
713 src/shared/sleep-config.c \
714 src/shared/sleep-config.h \
717 src/shared/env-util.c \
718 src/shared/env-util.h \
719 src/shared/strbuf.c \
720 src/shared/strbuf.h \
721 src/shared/strxcpyx.c \
722 src/shared/strxcpyx.h \
723 src/shared/conf-parser.c \
724 src/shared/conf-parser.h \
727 src/shared/ratelimit.h \
728 src/shared/ratelimit.c \
729 src/shared/exit-status.c \
730 src/shared/exit-status.h \
733 src/shared/gunicode.c \
734 src/shared/gunicode.h \
737 src/shared/socket-util.c \
738 src/shared/socket-util.h \
739 src/shared/conf-files.c \
740 src/shared/conf-files.h \
741 src/shared/cgroup-util.c \
742 src/shared/cgroup-util.h \
743 src/shared/cgroup-show.c \
744 src/shared/cgroup-show.h \
745 src/shared/unit-name.c \
746 src/shared/unit-name.h \
747 src/shared/utmp-wtmp.c \
748 src/shared/utmp-wtmp.h \
749 src/shared/watchdog.c \
750 src/shared/watchdog.h \
751 src/shared/spawn-ask-password-agent.c \
752 src/shared/spawn-ask-password-agent.h \
753 src/shared/replace-var.c \
754 src/shared/replace-var.h \
755 src/shared/spawn-polkit-agent.c \
756 src/shared/spawn-polkit-agent.h \
757 src/shared/hwclock.c \
758 src/shared/hwclock.h \
759 src/shared/time-dst.c \
760 src/shared/time-dst.h \
761 src/shared/calendarspec.c \
762 src/shared/calendarspec.h \
763 src/shared/fileio.c \
764 src/shared/fileio.h \
765 src/shared/output-mode.h \
766 src/shared/MurmurHash2.c \
767 src/shared/MurmurHash2.h \
768 src/shared/acpi-fpdt.h \
769 src/shared/acpi-fpdt.c \
770 src/shared/boot-timestamps.h \
771 src/shared/boot-timestamps.c \
774 src/shared/smack-util.c \
775 src/shared/smack-util.h \
776 src/shared/apparmor-util.c \
777 src/shared/apparmor-util.h \
778 src/shared/ima-util.c \
779 src/shared/ima-util.h \
780 src/shared/ptyfwd.c \
781 src/shared/ptyfwd.h \
782 src/shared/errno-list.c \
783 src/shared/errno-list.h \
784 src/shared/af-list.c \
785 src/shared/af-list.h \
790 src/shared/condition-util.c \
791 src/shared/condition-util.h \
792 src/shared/bus-label.c \
793 src/shared/bus-label.h \
795 src/shared/generator.h \
796 src/shared/generator.c \
797 src/shared/clean-ipc.h \
798 src/shared/clean-ipc.c \
799 src/shared/login-shared.c \
800 src/shared/login-shared.h
802 nodist_libsystemd_shared_la_SOURCES = \
803 src/shared/errno-from-name.h \
804 src/shared/errno-to-name.h \
805 src/shared/af-from-name.h \
806 src/shared/af-to-name.h
808 libsystemd_shared_la_CFLAGS = \
812 # ------------------------------------------------------------------------------
813 noinst_LTLIBRARIES += \
816 libsystemd_units_la_SOURCES = \
817 src/shared/install.c \
818 src/shared/install.h \
819 src/shared/install-printf.c \
820 src/shared/install-printf.h \
821 src/shared/path-lookup.c \
822 src/shared/path-lookup.h \
823 src/shared/specifier.c \
824 src/shared/specifier.h
826 # ------------------------------------------------------------------------------
827 noinst_LTLIBRARIES += \
830 libsystemd_label_la_SOURCES = \
831 src/shared/socket-label.c \
834 src/shared/selinux-util.c \
835 src/shared/selinux-util.h \
836 src/shared/mkdir-label.c \
837 src/shared/ask-password-api.c \
838 src/shared/ask-password-api.h \
839 src/shared/fileio-label.c \
840 src/shared/fileio-label.h \
841 src/shared/dev-setup.c \
842 src/shared/dev-setup.h
844 libsystemd_label_la_CFLAGS = \
848 libsystemd_label_la_LIBADD = \
851 # ------------------------------------------------------------------------------
854 noinst_LTLIBRARIES += \
855 libsystemd-seccomp.la
857 libsystemd_seccomp_la_SOURCES = \
858 src/shared/seccomp-util.h \
859 src/shared/seccomp-util.c
861 libsystemd_seccomp_la_CFLAGS = \
865 libsystemd_seccomp_la_LIBADD = \
869 # ------------------------------------------------------------------------------
870 noinst_LTLIBRARIES += \
873 libsystemd_logs_la_SOURCES = \
874 src/shared/logs-show.c \
875 src/shared/logs-show.h
877 # ------------------------------------------------------------------------------
878 noinst_LTLIBRARIES += \
879 libsystemd-capability.la
881 libsystemd_capability_la_SOURCES = \
882 src/shared/capability.c \
883 src/shared/capability.h
885 libsystemd_capability_la_CFLAGS = \
889 libsystemd_capability_la_LIBADD = \
892 # ------------------------------------------------------------------------------
894 noinst_LTLIBRARIES += \
897 libsystemd_acl_la_SOURCES = \
898 src/shared/acl-util.c \
899 src/shared/acl-util.h
901 libsystemd_acl_la_CFLAGS = \
905 libsystemd_acl_la_LIBADD = \
909 # ------------------------------------------------------------------------------
910 noinst_LTLIBRARIES += \
913 libsystemd_core_la_SOURCES = \
916 src/core/unit-printf.c \
917 src/core/unit-printf.h \
922 src/core/transaction.c \
923 src/core/transaction.h \
924 src/core/load-fragment.c \
925 src/core/load-fragment.h \
934 src/core/snapshot.c \
935 src/core/snapshot.h \
940 src/core/automount.c \
941 src/core/automount.h \
952 src/core/load-dropin.c \
953 src/core/load-dropin.h \
960 src/core/dbus-manager.c \
961 src/core/dbus-manager.h \
962 src/core/dbus-unit.c \
963 src/core/dbus-unit.h \
964 src/core/dbus-job.c \
965 src/core/dbus-job.h \
966 src/core/dbus-service.c \
967 src/core/dbus-service.h \
968 src/core/dbus-socket.c \
969 src/core/dbus-socket.h \
970 src/core/dbus-busname.c \
971 src/core/dbus-busname.h \
972 src/core/dbus-target.c \
973 src/core/dbus-target.h \
974 src/core/dbus-snapshot.c \
975 src/core/dbus-snapshot.h \
976 src/core/dbus-device.c \
977 src/core/dbus-device.h \
978 src/core/dbus-mount.c \
979 src/core/dbus-mount.h \
980 src/core/dbus-automount.c \
981 src/core/dbus-automount.h \
982 src/core/dbus-swap.c \
983 src/core/dbus-swap.h \
984 src/core/dbus-timer.c \
985 src/core/dbus-timer.h \
986 src/core/dbus-path.c \
987 src/core/dbus-path.h \
988 src/core/dbus-slice.c \
989 src/core/dbus-slice.h \
990 src/core/dbus-scope.c \
991 src/core/dbus-scope.h \
992 src/core/dbus-execute.c \
993 src/core/dbus-execute.h \
994 src/core/dbus-kill.c \
995 src/core/dbus-kill.h \
996 src/core/dbus-cgroup.c \
997 src/core/dbus-cgroup.h \
1000 src/core/selinux-access.c \
1001 src/core/selinux-access.h \
1002 src/core/selinux-setup.c \
1003 src/core/selinux-setup.h \
1004 src/core/smack-setup.c \
1005 src/core/smack-setup.h \
1006 src/core/ima-setup.c \
1007 src/core/ima-setup.h \
1008 src/core/locale-setup.h \
1009 src/core/locale-setup.c \
1010 src/core/hostname-setup.c \
1011 src/core/hostname-setup.h \
1012 src/core/machine-id-setup.c \
1013 src/core/machine-id-setup.h \
1014 src/core/mount-setup.c \
1015 src/core/mount-setup.h \
1016 src/core/loopback-setup.h \
1017 src/core/loopback-setup.c \
1018 src/core/condition.c \
1019 src/core/condition.h \
1020 src/core/namespace.c \
1021 src/core/namespace.h \
1023 src/core/sysfs-show.h \
1024 src/core/switch-root.h \
1025 src/core/switch-root.c \
1026 src/core/killall.h \
1027 src/core/killall.c \
1028 src/core/audit-fd.c \
1029 src/core/audit-fd.h \
1032 src/core/show-status.c \
1033 src/core/show-status.h
1036 libsystemd_core_la_SOURCES += \
1037 src/core/kmod-setup.c \
1038 src/core/kmod-setup.h
1041 nodist_libsystemd_core_la_SOURCES = \
1042 src/core/load-fragment-gperf.c \
1043 src/core/load-fragment-gperf-nulstr.c
1045 libsystemd_core_la_CFLAGS = \
1051 $(APPARMOR_CFLAGS) \
1055 libsystemd_core_la_LIBADD = \
1056 libsystemd-capability.la \
1057 libsystemd-units.la \
1058 libsystemd-label.la \
1059 libudev-internal.la \
1060 libsystemd-shared.la \
1061 libsystemd-internal.la \
1070 libsystemd_core_la_LIBADD += \
1071 libsystemd-seccomp.la
1074 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1075 $(AM_V_at)$(MKDIR_P) $(dir $@)
1076 $(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 ";" }' < $< > $@
1079 src/core/load-fragment-gperf.gperf.m4
1082 src/core/load-fragment-gperf.gperf \
1083 src/core/load-fragment-gperf.c \
1084 src/core/load-fragment-gperf-nulstr.c \
1085 src/shared/errno-list.txt \
1086 src/shared/errno-from-name.gperf \
1087 src/shared/af-list.txt \
1088 src/shared/af-from-name.gperf
1091 src/shared/errno-from-name.h \
1092 src/shared/errno-to-name.h \
1093 src/shared/af-from-name.h \
1094 src/shared/af-to-name.h
1096 src/shared/errno-list.txt:
1097 $(AM_V_at)$(MKDIR_P) $(dir $@)
1098 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1100 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1101 $(AM_V_at)$(MKDIR_P) $(dir $@)
1102 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1104 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1105 $(AM_V_at)$(MKDIR_P) $(dir $@)
1106 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1108 src/shared/errno-to-name.h: src/shared/errno-list.txt
1109 $(AM_V_at)$(MKDIR_P) $(dir $@)
1110 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1112 src/shared/af-list.txt:
1113 $(AM_V_at)$(MKDIR_P) $(dir $@)
1114 $(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; }' > $@
1116 src/shared/af-from-name.gperf: src/shared/af-list.txt
1117 $(AM_V_at)$(MKDIR_P) $(dir $@)
1118 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1120 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1121 $(AM_V_at)$(MKDIR_P) $(dir $@)
1122 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1124 src/shared/af-to-name.h: src/shared/af-list.txt
1125 $(AM_V_at)$(MKDIR_P) $(dir $@)
1126 $(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 "};"}' < $< > $@
1128 # ------------------------------------------------------------------------------
1137 libsystemd-core.la \
1140 dist_pkgsysconf_DATA += \
1141 src/core/system.conf \
1144 dist_dbuspolicy_DATA += \
1145 src/core/org.freedesktop.systemd1.conf
1147 dist_dbussystemservice_DATA += \
1148 src/core/org.freedesktop.systemd1.service
1150 polkitpolicy_in_in_files += \
1151 src/core/org.freedesktop.systemd1.policy.in.in
1153 pkgconfigdata_DATA = \
1156 nodist_rpmmacros_DATA = \
1157 src/core/macros.systemd
1160 src/core/systemd.pc.in \
1161 src/core/macros.systemd.in
1164 src/core/macros.systemd \
1165 src/core/org.freedesktop.systemd1.policy.in
1167 # ------------------------------------------------------------------------------
1205 test-strip-tab-ansi \
1218 test/sched_idle_bad.service \
1219 test/sched_idle_ok.service \
1220 test/sched_rr_bad.service \
1221 test/sched_rr_ok.service \
1222 test/sched_rr_change.service \
1224 test/daughter.service \
1228 src/test/test-helper.h
1230 test_device_nodes_SOURCES = \
1231 src/test/test-device-nodes.c
1233 test_device_nodes_LDADD = \
1234 libsystemd-shared.la
1236 test_engine_SOURCES = \
1237 src/test/test-engine.c
1239 test_engine_CFLAGS = \
1243 test_engine_LDADD = \
1244 libsystemd-core.la \
1247 test_job_type_SOURCES = \
1248 src/test/test-job-type.c
1250 test_job_type_CFLAGS = \
1254 test_job_type_LDADD = \
1255 libsystemd-core.la \
1268 test_loopback_SOURCES = \
1269 src/test/test-loopback.c
1271 test_loopback_LDADD = \
1274 test_hostname_SOURCES = \
1275 src/test/test-hostname.c
1277 test_hostname_LDADD = \
1284 test_boot_timestamp_SOURCES = \
1285 src/test/test-boot-timestamps.c
1287 test_boot_timestamp_LDADD = \
1288 libsystemd-shared.la
1291 test_unit_name_SOURCES = \
1292 src/test/test-unit-name.c
1294 test_unit_name_CFLAGS = \
1298 test_unit_name_LDADD = \
1299 libsystemd-core.la \
1302 test_unit_file_SOURCES = \
1303 src/test/test-unit-file.c
1305 test_unit_file_CFLAGS = \
1309 test_unit_file_LDADD = \
1310 libsystemd-core.la \
1313 test_utf8_SOURCES = \
1314 src/test/test-utf8.c
1317 libsystemd-shared.la
1319 test_util_SOURCES = \
1320 src/test/test-util.c
1325 test_tmpfiles_SOURCES = \
1326 src/test/test-tmpfiles.c
1328 test_tmpfiles_LDADD = \
1329 libsystemd-shared.la
1331 test_namespace_SOURCES = \
1332 src/test/test-namespace.c
1334 test_namespace_LDADD = \
1337 test_hashmap_SOURCES = \
1338 src/test/test-hashmap.c
1340 test_hashmap_LDADD = \
1343 test_xml_SOURCES = \
1347 libsystemd-shared.la
1349 test_list_SOURCES = \
1350 src/test/test-list.c
1355 test_tables_SOURCES = \
1356 src/test/test-tables.c \
1357 src/shared/test-tables.h
1359 test_tables_CFLAGS = \
1363 test_tables_LDADD = \
1364 libsystemd-logs.la \
1365 libsystemd-journal-internal.la \
1366 libsystemd-core.la \
1369 test_prioq_SOURCES = \
1370 src/test/test-prioq.c
1372 test_prioq_LDADD = \
1375 test_fileio_SOURCES = \
1376 src/test/test-fileio.c
1378 test_fileio_LDADD = \
1381 test_time_SOURCES = \
1382 src/test/test-time.c
1387 test_architecture_SOURCES = \
1388 src/test/test-architecture.c
1390 test_architecture_LDADD = \
1391 libsystemd-shared.la
1393 test_log_SOURCES = \
1399 test_ipcrm_SOURCES = \
1400 src/test/test-ipcrm.c
1402 test_ipcrm_LDADD = \
1403 libsystemd-shared.la \
1406 test_rtnl_manual_SOURCES = \
1407 src/test/test-rtnl-manual.c
1409 test_rtnl_manual_CFLAGS = \
1413 test_rtnl_manual_LDADD = \
1414 libsystemd-internal.la \
1415 libsystemd-shared.la \
1418 test_ellipsize_SOURCES = \
1419 src/test/test-ellipsize.c
1421 test_ellipsize_LDADD = \
1424 test_date_SOURCES = \
1425 src/test/test-date.c
1430 test_sleep_SOURCES = \
1431 src/test/test-sleep.c
1433 test_sleep_LDADD = \
1436 test_replace_var_SOURCES = \
1437 src/test/test-replace-var.c
1439 test_replace_var_LDADD = \
1440 libsystemd-shared.la
1442 test_calendarspec_SOURCES = \
1443 src/test/test-calendarspec.c
1445 test_calendarspec_LDADD = \
1446 libsystemd-shared.la
1448 test_strip_tab_ansi_SOURCES = \
1449 src/test/test-strip-tab-ansi.c
1451 test_strip_tab_ansi_LDADD = \
1452 libsystemd-shared.la
1454 test_daemon_SOURCES = \
1455 src/test/test-daemon.c
1457 test_daemon_LDADD = \
1458 libsystemd-internal.la \
1459 libsystemd-shared.la
1461 test_cgroup_SOURCES = \
1462 src/test/test-cgroup.c
1464 test_cgroup_LDADD = \
1465 libsystemd-label.la \
1466 libsystemd-shared.la \
1467 libsystemd-internal.la
1469 test_cgroup_mask_SOURCES = \
1470 src/test/test-cgroup-mask.c
1472 test_cgroup_mask_CPPFLAGS = \
1474 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1476 test_cgroup_mask_CFLAGS = \
1480 test_cgroup_mask_LDADD = \
1481 libsystemd-core.la \
1484 test_cgroup_util_SOURCES = \
1485 src/test/test-cgroup-util.c
1487 test_cgroup_util_LDADD = \
1488 libsystemd-label.la \
1489 libsystemd-internal.la \
1490 libsystemd-shared.la
1492 test_env_replace_SOURCES = \
1493 src/test/test-env-replace.c
1495 test_env_replace_LDADD = \
1496 libsystemd-shared.la
1498 test_strbuf_SOURCES = \
1499 src/test/test-strbuf.c
1501 test_strbuf_LDADD = \
1502 libsystemd-shared.la
1504 test_strv_SOURCES = \
1505 src/test/test-strv.c
1508 libsystemd-units.la \
1509 libsystemd-internal.la \
1510 libsystemd-shared.la
1512 test_path_util_SOURCES = \
1513 src/test/test-path-util.c
1515 test_path_util_LDADD = \
1516 libsystemd-shared.la
1518 test_strxcpyx_SOURCES = \
1519 src/test/test-strxcpyx.c
1521 test_strxcpyx_LDADD = \
1522 libsystemd-shared.la
1524 test_install_SOURCES = \
1525 src/test/test-install.c
1527 test_install_LDADD = \
1528 libsystemd-units.la \
1529 libsystemd-label.la \
1530 libsystemd-shared.la \
1531 libsystemd-internal.la
1533 test_watchdog_SOURCES = \
1534 src/test/test-watchdog.c
1536 test_watchdog_LDADD = \
1537 libsystemd-shared.la
1539 test_sched_prio_SOURCES = \
1540 src/test/test-sched-prio.c
1542 test_sched_prio_CPPFLAGS = \
1544 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1546 test_sched_prio_CFLAGS = \
1550 test_sched_prio_LDADD = \
1551 libsystemd-core.la \
1554 # ------------------------------------------------------------------------------
1555 ## .PHONY so it always rebuilds it
1556 .PHONY: coverage lcov-run lcov-report coverage-sync
1558 # run lcov from scratch, always
1563 coverage_dir = coverage
1564 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1567 # reset run coverage tests
1569 @rm -rf $(coverage_dir)
1570 lcov $(coverage_opts) --zerocounters
1573 # generate report based on current coverage data
1575 $(MKDIR_P) $(coverage_dir)
1576 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1577 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1578 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1579 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1581 # lcov doesn't work properly with vpath builds, make sure that bad
1582 # output is not uploaded by mistake.
1583 coverage-sync: coverage
1584 test "$(builddir)" = "$(srcdir)"
1585 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1588 lcov-run lcov-report:
1589 echo "Need to reconfigure with --enable-coverage"
1592 # ------------------------------------------------------------------------------
1593 systemd_analyze_SOURCES = \
1594 src/analyze/analyze.c
1596 systemd_analyze_LDADD = \
1597 libsystemd-internal.la \
1598 libsystemd-shared.la
1600 # ------------------------------------------------------------------------------
1601 systemd_initctl_SOURCES = \
1602 src/initctl/initctl.c
1604 systemd_initctl_LDADD = \
1605 libsystemd-internal.la \
1606 libsystemd-shared.la
1608 # ------------------------------------------------------------------------------
1609 systemd_update_utmp_SOURCES = \
1610 src/update-utmp/update-utmp.c
1612 systemd_update_utmp_CFLAGS = \
1616 systemd_update_utmp_LDADD = \
1617 libsystemd-internal.la \
1618 libsystemd-shared.la \
1621 # ------------------------------------------------------------------------------
1622 systemd_shutdownd_SOURCES = \
1623 src/shutdownd/shutdownd.c
1625 systemd_shutdownd_LDADD = \
1626 libsystemd-label.la \
1627 libsystemd-internal.la \
1628 libsystemd-shared.la
1631 src/systemd/sd-shutdown.h
1633 # ------------------------------------------------------------------------------
1634 systemd_shutdown_SOURCES = \
1637 src/core/shutdown.c \
1638 src/core/mount-setup.c \
1639 src/core/mount-setup.h \
1640 src/core/killall.h \
1643 systemd_shutdown_LDADD = \
1644 libsystemd-label.la \
1645 libudev-internal.la \
1646 libsystemd-shared.la
1648 # ------------------------------------------------------------------------------
1650 systemd_modules_load_SOURCES = \
1651 src/modules-load/modules-load.c
1653 systemd_modules_load_CFLAGS = \
1657 systemd_modules_load_LDADD = \
1658 libsystemd-shared.la \
1661 rootlibexec_PROGRAMS += \
1662 systemd-modules-load
1664 nodist_systemunit_DATA += \
1665 units/systemd-modules-load.service
1667 SYSINIT_TARGET_WANTS += \
1668 systemd-modules-load.service
1671 nodist_systemunit_DATA += \
1672 units/kmod-static-nodes.service
1674 SYSINIT_TARGET_WANTS += \
1675 kmod-static-nodes.service
1680 units/systemd-modules-load.service.in \
1681 units/kmod-static-nodes.service.in
1683 # ------------------------------------------------------------------------------
1685 systemd_tmpfiles_SOURCES = \
1686 src/tmpfiles/tmpfiles.c
1688 systemd_tmpfiles_LDADD = \
1689 libsystemd-units.la \
1690 libsystemd-label.la \
1691 libsystemd-capability.la \
1692 libsystemd-internal.la \
1693 libsystemd-shared.la
1695 rootbin_PROGRAMS += \
1698 dist_systemunit_DATA += \
1699 units/systemd-tmpfiles-clean.timer
1701 nodist_systemunit_DATA += \
1702 units/systemd-tmpfiles-setup-dev.service \
1703 units/systemd-tmpfiles-setup.service \
1704 units/systemd-tmpfiles-clean.service
1706 dist_tmpfiles_DATA = \
1707 tmpfiles.d/systemd.conf \
1708 tmpfiles.d/systemd-nologin.conf \
1709 tmpfiles.d/tmp.conf \
1713 dist_tmpfiles_DATA += \
1714 tmpfiles.d/legacy.conf
1717 SYSINIT_TARGET_WANTS += \
1718 systemd-tmpfiles-setup-dev.service \
1719 systemd-tmpfiles-setup.service
1721 dist_zshcompletion_DATA += \
1722 shell-completion/zsh/_systemd-tmpfiles
1724 TIMERS_TARGET_WANTS += \
1725 systemd-tmpfiles-clean.timer
1729 $(sysconfdir)/tmpfiles.d
1733 units/systemd-tmpfiles-setup-dev.service.in \
1734 units/systemd-tmpfiles-setup.service.in \
1735 units/systemd-tmpfiles-clean.service.in
1737 # ------------------------------------------------------------------------------
1738 systemd_machine_id_setup_SOURCES = \
1739 src/machine-id-setup/machine-id-setup-main.c \
1740 src/core/machine-id-setup.c \
1741 src/core/machine-id-setup.h
1743 systemd_machine_id_setup_LDADD = \
1744 libsystemd-label.la \
1745 libsystemd-internal.la \
1746 libsystemd-shared.la
1748 # ------------------------------------------------------------------------------
1749 systemd_sysctl_SOURCES = \
1752 systemd_sysctl_LDADD = \
1753 libsystemd-shared.la
1755 # ------------------------------------------------------------------------------
1756 systemd_sleep_SOURCES = \
1759 systemd_sleep_LDADD = \
1760 libsystemd-shared.la
1762 # ------------------------------------------------------------------------------
1763 systemd_fsck_SOURCES = \
1766 systemd_fsck_LDADD = \
1767 libsystemd-internal.la \
1768 libudev-internal.la \
1769 libsystemd-shared.la
1771 # ------------------------------------------------------------------------------
1772 systemd_ac_power_SOURCES = \
1773 src/ac-power/ac-power.c
1775 systemd_ac_power_LDADD = \
1776 libudev-internal.la \
1777 libsystemd-shared.la
1779 # ------------------------------------------------------------------------------
1780 systemd_detect_virt_SOURCES = \
1781 src/detect-virt/detect-virt.c
1783 systemd_detect_virt_LDADD = \
1784 libsystemd-shared.la
1786 systemd-detect-virt-install-hook:
1787 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1789 INSTALL_EXEC_HOOKS += \
1790 systemd-detect-virt-install-hook
1792 # ------------------------------------------------------------------------------
1793 systemd_delta_SOURCES = \
1796 systemd_delta_LDADD = \
1797 libsystemd-shared.la
1799 # ------------------------------------------------------------------------------
1800 systemd_getty_generator_SOURCES = \
1801 src/getty-generator/getty-generator.c
1803 systemd_getty_generator_LDADD = \
1804 libsystemd-label.la \
1805 libsystemd-shared.la
1807 # ------------------------------------------------------------------------------
1808 systemd_fstab_generator_SOURCES = \
1809 src/fstab-generator/fstab-generator.c \
1810 src/core/mount-setup.c
1812 systemd_fstab_generator_LDADD = \
1813 libsystemd-label.la \
1814 libsystemd-shared.la
1816 # ------------------------------------------------------------------------------
1817 systemd_system_update_generator_SOURCES = \
1818 src/system-update-generator/system-update-generator.c
1820 systemd_system_update_generator_LDADD = \
1821 libsystemd-label.la \
1822 libsystemd-shared.la
1825 # ------------------------------------------------------------------------------
1826 systemgenerator_PROGRAMS += \
1827 systemd-efi-boot-generator
1829 systemd_efi_boot_generator_SOURCES = \
1830 src/efi-boot-generator/efi-boot-generator.c
1832 systemd_efi_boot_generator_LDADD = \
1833 libsystemd-label.la \
1834 libsystemd-shared.la
1836 # ------------------------------------------------------------------------------
1839 src/boot/boot-loader.h \
1840 src/boot/bootctl.c \
1841 src/boot/boot-loader.c \
1845 libsystemd-shared.la \
1846 libsystemd-internal.la
1851 dist_bashcompletion_DATA += \
1852 shell-completion/bash/bootctl
1854 dist_zshcompletion_DATA += \
1855 shell-completion/zsh/_bootctl
1859 # ------------------------------------------------------------------------------
1861 systemgenerator_PROGRAMS += \
1862 systemd-gpt-auto-generator
1864 systemd_gpt_auto_generator_SOURCES = \
1865 src/gpt-auto-generator/gpt-auto-generator.c \
1866 src/shared/blkid-util.h
1868 systemd_gpt_auto_generator_LDADD = \
1869 libsystemd-label.la \
1870 libsystemd-internal.la \
1871 libudev-internal.la \
1872 libsystemd-shared.la \
1875 systemd_gpt_auto_generator_CFLAGS = \
1880 # ------------------------------------------------------------------------------
1882 systemgenerator_PROGRAMS += \
1883 systemd-dbus1-generator
1885 systemd_dbus1_generator_SOURCES = \
1886 src/dbus1-generator/dbus1-generator.c
1888 systemd_dbus1_generator_LDADD = \
1889 libsystemd-label.la \
1890 libsystemd-shared.la \
1891 libsystemd-internal.la
1893 dbus1-generator-install-hook:
1894 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
1895 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1896 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1898 dbus1-generator-uninstall-hook:
1899 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1901 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1902 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1905 # ------------------------------------------------------------------------------
1906 systemd_rc_local_generator_SOURCES = \
1907 src/rc-local-generator/rc-local-generator.c
1909 systemd_rc_local_generator_LDADD = \
1910 libsystemd-label.la \
1911 libsystemd-shared.la
1913 # ------------------------------------------------------------------------------
1914 systemd_remount_fs_SOURCES = \
1915 src/remount-fs/remount-fs.c \
1916 src/core/mount-setup.c \
1917 src/core/mount-setup.h
1919 systemd_remount_fs_LDADD = \
1920 libsystemd-label.la \
1921 libsystemd-shared.la
1923 # ------------------------------------------------------------------------------
1924 systemd_cgroups_agent_SOURCES = \
1925 src/cgroups-agent/cgroups-agent.c
1927 systemd_cgroups_agent_LDADD = \
1928 libsystemd-internal.la \
1929 libsystemd-shared.la
1931 # ------------------------------------------------------------------------------
1932 systemctl_SOURCES = \
1933 src/systemctl/systemctl.c
1936 libsystemd-units.la \
1937 libsystemd-label.la \
1938 libsystemd-internal.la \
1939 libsystemd-logs.la \
1940 libsystemd-journal-internal.la \
1941 libsystemd-shared.la
1943 # ------------------------------------------------------------------------------
1944 systemd_notify_SOURCES = \
1945 src/notify/notify.c \
1946 src/readahead/sd-readahead.c
1948 systemd_notify_LDADD = \
1949 libsystemd-internal.la \
1950 libsystemd-shared.la
1952 # ------------------------------------------------------------------------------
1953 systemd_ask_password_SOURCES = \
1954 src/ask-password/ask-password.c
1956 systemd_ask_password_LDADD = \
1957 libsystemd-label.la \
1958 libsystemd-shared.la
1960 # ------------------------------------------------------------------------------
1961 systemd_reply_password_SOURCES = \
1962 src/reply-password/reply-password.c
1964 systemd_reply_password_LDADD = \
1965 libsystemd-shared.la
1967 # ------------------------------------------------------------------------------
1968 systemd_cgls_SOURCES = \
1971 systemd_cgls_LDADD = \
1972 libsystemd-internal.la \
1973 libsystemd-shared.la
1975 # ------------------------------------------------------------------------------
1976 systemd_cgtop_SOURCES = \
1979 systemd_cgtop_LDADD = \
1980 libsystemd-shared.la
1982 # ------------------------------------------------------------------------------
1983 systemd_nspawn_SOURCES = \
1984 src/nspawn/nspawn.c \
1985 src/core/mount-setup.c \
1986 src/core/mount-setup.h \
1987 src/core/loopback-setup.c \
1988 src/core/loopback-setup.h
1990 systemd_nspawn_CFLAGS = \
1995 systemd_nspawn_LDADD = \
1996 libsystemd-label.la \
1997 libsystemd-capability.la \
1998 libsystemd-internal.la \
1999 libudev-internal.la \
2000 libsystemd-shared.la \
2004 systemd_nspawn_LDADD += \
2005 libsystemd-seccomp.la \
2009 # ------------------------------------------------------------------------------
2010 systemd_run_SOURCES = \
2013 systemd_run_LDADD = \
2014 libsystemd-label.la \
2015 libsystemd-capability.la \
2016 libsystemd-internal.la \
2017 libsystemd-shared.la
2019 # ------------------------------------------------------------------------------
2020 systemd_bus_proxyd_SOURCES = \
2021 src/bus-proxyd/bus-proxyd.c
2023 systemd_bus_proxyd_LDADD = \
2024 libsystemd-internal.la \
2025 libsystemd-shared.la
2027 bus-proxyd-install-hook:
2028 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2029 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2030 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2032 bus-proxyd-uninstall-hook:
2033 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2035 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2036 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2039 nodist_systemunit_DATA += \
2040 units/systemd-bus-proxyd@.service
2042 dist_systemunit_DATA += \
2043 units/systemd-bus-proxyd.socket
2045 dist_userunit_DATA += \
2046 units/user/systemd-bus-proxyd.socket \
2047 units/user/systemd-bus-proxyd@.service
2051 units/systemd-bus-proxyd@.service.in
2053 # ------------------------------------------------------------------------------
2054 systemd_tty_ask_password_agent_SOURCES = \
2055 src/tty-ask-password-agent/tty-ask-password-agent.c
2057 systemd_tty_ask_password_agent_LDADD = \
2058 libsystemd-label.la \
2059 libsystemd-shared.la
2061 # ------------------------------------------------------------------------------
2062 libsystemd_internal_la_SOURCES = \
2063 src/systemd/sd-bus.h \
2064 src/systemd/sd-bus-protocol.h \
2065 src/systemd/sd-bus-vtable.h \
2066 src/systemd/sd-memfd.h \
2067 src/systemd/sd-utf8.h \
2068 src/systemd/sd-event.h \
2069 src/systemd/sd-rtnl.h \
2070 src/systemd/sd-resolve.h \
2071 src/systemd/sd-login.h \
2072 src/systemd/sd-id128.h \
2073 src/systemd/sd-daemon.h \
2074 src/libsystemd/sd-bus/sd-bus.c \
2075 src/libsystemd/sd-bus/bus-control.c \
2076 src/libsystemd/sd-bus/bus-control.h \
2077 src/libsystemd/sd-bus/bus-error.c \
2078 src/libsystemd/sd-bus/bus-error.h \
2079 src/libsystemd/sd-bus/bus-internal.c \
2080 src/libsystemd/sd-bus/bus-internal.h \
2081 src/libsystemd/sd-bus/bus-socket.c \
2082 src/libsystemd/sd-bus/bus-socket.h \
2083 src/libsystemd/sd-bus/bus-kernel.c \
2084 src/libsystemd/sd-bus/bus-kernel.h \
2085 src/libsystemd/sd-bus/bus-container.c \
2086 src/libsystemd/sd-bus/bus-container.h \
2087 src/libsystemd/sd-bus/bus-message.c \
2088 src/libsystemd/sd-bus/bus-message.h \
2089 src/libsystemd/sd-bus/bus-creds.c \
2090 src/libsystemd/sd-bus/bus-creds.h \
2091 src/libsystemd/sd-bus/bus-signature.c \
2092 src/libsystemd/sd-bus/bus-signature.h \
2093 src/libsystemd/sd-bus/bus-type.c \
2094 src/libsystemd/sd-bus/bus-type.h \
2095 src/libsystemd/sd-bus/bus-match.c \
2096 src/libsystemd/sd-bus/bus-match.h \
2097 src/libsystemd/sd-bus/bus-bloom.c \
2098 src/libsystemd/sd-bus/bus-bloom.h \
2099 src/libsystemd/sd-bus/bus-introspect.c \
2100 src/libsystemd/sd-bus/bus-introspect.h \
2101 src/libsystemd/sd-bus/bus-objects.c \
2102 src/libsystemd/sd-bus/bus-objects.h \
2103 src/libsystemd/sd-bus/bus-gvariant.c \
2104 src/libsystemd/sd-bus/bus-gvariant.h \
2105 src/libsystemd/sd-bus/bus-convenience.c \
2106 src/libsystemd/sd-bus/bus-track.c \
2107 src/libsystemd/sd-bus/bus-track.h \
2108 src/libsystemd/sd-bus/bus-util.c \
2109 src/libsystemd/sd-bus/bus-util.h \
2110 src/libsystemd/sd-bus/bus-protocol.h \
2111 src/libsystemd/sd-bus/kdbus.h \
2112 src/libsystemd/sd-bus/sd-memfd.c \
2113 src/libsystemd/sd-utf8/sd-utf8.c \
2114 src/libsystemd/sd-event/sd-event.c \
2115 src/libsystemd/sd-event/event-util.h \
2116 src/libsystemd/sd-rtnl/sd-rtnl.c \
2117 src/libsystemd/sd-rtnl/rtnl-internal.h \
2118 src/libsystemd/sd-rtnl/rtnl-message.c \
2119 src/libsystemd/sd-rtnl/rtnl-types.h \
2120 src/libsystemd/sd-rtnl/rtnl-types.c \
2121 src/libsystemd/sd-rtnl/rtnl-util.h \
2122 src/libsystemd/sd-rtnl/rtnl-util.c \
2123 src/libsystemd/sd-id128/sd-id128.c \
2124 src/libsystemd/sd-daemon/sd-daemon.c \
2125 src/libsystemd/sd-login/sd-login.c
2127 nodist_libsystemd_internal_la_SOURCES = \
2128 src/libsystemd/libsystemd.sym \
2129 src/libsystemd/sd-bus/bus-error-mapping.c
2131 libsystemd_internal_la_CFLAGS = \
2135 libsystemd_internal_la_LIBADD = \
2138 libsystemd_resolve_la_SOURCES = \
2139 src/libsystemd/sd-resolve/sd-resolve.c \
2140 src/libsystemd/sd-resolve/resolve-util.h
2142 libsystemd_resolve_la_CFLAGS = \
2146 noinst_LTLIBRARIES += \
2147 libsystemd-internal.la \
2148 libsystemd-resolve.la
2150 libsystemd_dump_la_SOURCES = \
2151 src/libsystemd/sd-bus/bus-dump.c \
2152 src/libsystemd/sd-bus/bus-dump.h
2154 libsystemd_dump_la_CFLAGS = \
2158 noinst_LTLIBRARIES += \
2162 src/libsystemd/libsystemd.sym.m4 \
2163 src/libsystemd/libsystemd.pc.in \
2164 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2165 src/libsystemd/sd-bus/DIFFERENCES \
2166 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2169 src/libsystemd/libsystemd.sym \
2170 src/libsystemd/sd-bus/bus-error-mapping.c
2173 src/libsystemd/libsystemd.sym
2175 libsystemd_la_SOURCES = \
2176 $(libsystemd_internal_la_SOURCES) \
2177 $(libsystemd_resolve_la_SOURCES) \
2178 $(libsystemd_journal_internal_la_SOURCES)
2180 nodist_libsystemd_la_SOURCES = \
2181 $(nodist_libsystemd_internal_la_SOURCES)
2183 libsystemd_la_CFLAGS = \
2184 $(libsystemd_internal_la_CFLAGS) \
2185 $(libsystemd_journal_internal_la_CFLAGS)
2187 libsystemd_la_LDFLAGS = \
2189 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2190 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2192 libsystemd_la_LIBADD = \
2193 libsystemd-shared.la \
2194 $(libsystemd_journal_internal_la_LIBADD) \
2198 libsystemd-install-hook:
2199 libname=libsystemd.so && $(move-to-rootlibdir)
2201 libsystemd-uninstall-hook:
2202 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2204 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2205 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2207 pkgconfiglib_DATA += \
2208 src/libsystemd/libsystemd.pc
2210 pkginclude_HEADERS += \
2211 src/systemd/sd-login.h \
2212 src/systemd/sd-id128.h \
2213 src/systemd/sd-daemon.h
2216 pkginclude_HEADERS += \
2217 src/systemd/sd-bus.h \
2218 src/systemd/sd-bus-protocol.h \
2219 src/systemd/sd-bus-vtable.h \
2220 src/systemd/sd-memfd.h \
2221 src/systemd/sd-utf8.h \
2222 src/systemd/sd-event.h \
2223 src/systemd/sd-rtnl.h \
2224 src/systemd/sd-resolve.h
2227 lib_LTLIBRARIES += \
2232 test-bus-signature \
2238 test-bus-kernel-bloom \
2239 test-bus-kernel-benchmark \
2241 test-bus-zero-copy \
2242 test-bus-introspect \
2254 test_bus_marshal_SOURCES = \
2255 src/libsystemd/sd-bus/test-bus-marshal.c
2257 test_bus_marshal_LDADD = \
2258 libsystemd-internal.la \
2259 libsystemd-shared.la \
2260 libsystemd-dump.la \
2261 libsystemd-capability.la \
2266 test_bus_marshal_CFLAGS = \
2272 test_bus_signature_SOURCES = \
2273 src/libsystemd/sd-bus/test-bus-signature.c
2275 test_bus_signature_LDADD = \
2276 libsystemd-shared.la \
2277 libsystemd-internal.la
2279 test_bus_chat_SOURCES = \
2280 src/libsystemd/sd-bus/test-bus-chat.c
2282 test_bus_chat_CFLAGS = \
2286 test_bus_chat_LDADD = \
2287 libsystemd-internal.la \
2288 libsystemd-shared.la
2290 test_bus_cleanup_SOURCES = \
2291 src/libsystemd/sd-bus/test-bus-cleanup.c
2293 test_bus_cleanup_CFLAGS = \
2297 test_bus_cleanup_LDADD = \
2298 libsystemd-internal.la \
2299 libsystemd-shared.la
2301 test_bus_server_SOURCES = \
2302 src/libsystemd/sd-bus/test-bus-server.c
2304 test_bus_server_CFLAGS = \
2308 test_bus_server_LDADD = \
2309 libsystemd-internal.la \
2310 libsystemd-shared.la
2312 test_bus_objects_SOURCES = \
2313 src/libsystemd/sd-bus/test-bus-objects.c
2315 test_bus_objects_CFLAGS = \
2320 test_bus_objects_LDADD = \
2321 libsystemd-internal.la \
2322 libsystemd-shared.la \
2323 libsystemd-dump.la \
2324 libsystemd-capability.la \
2327 test_bus_error_SOURCES = \
2328 src/libsystemd/sd-bus/test-bus-error.c
2330 test_bus_error_LDADD = \
2331 libsystemd-internal.la \
2332 libsystemd-shared.la
2334 test_bus_gvariant_SOURCES = \
2335 src/libsystemd/sd-bus/test-bus-gvariant.c
2337 test_bus_gvariant_LDADD = \
2338 libsystemd-internal.la \
2339 libsystemd-shared.la \
2340 libsystemd-dump.la \
2341 libsystemd-capability.la \
2345 test_bus_gvariant_CFLAGS = \
2350 test_bus_creds_SOURCES = \
2351 src/libsystemd/sd-bus/test-bus-creds.c
2353 test_bus_creds_LDADD = \
2354 libsystemd-internal.la \
2355 libsystemd-shared.la \
2356 libsystemd-dump.la \
2357 libsystemd-capability.la
2359 test_bus_match_SOURCES = \
2360 src/libsystemd/sd-bus/test-bus-match.c
2362 test_bus_match_LDADD = \
2363 libsystemd-internal.la \
2364 libsystemd-shared.la
2366 test_bus_kernel_SOURCES = \
2367 src/libsystemd/sd-bus/test-bus-kernel.c
2369 test_bus_kernel_LDADD = \
2370 libsystemd-internal.la \
2371 libsystemd-shared.la \
2372 libsystemd-dump.la \
2373 libsystemd-capability.la \
2376 test_bus_kernel_CFLAGS = \
2380 test_bus_kernel_bloom_SOURCES = \
2381 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2383 test_bus_kernel_bloom_LDADD = \
2384 libsystemd-internal.la \
2385 libsystemd-shared.la
2387 test_bus_kernel_benchmark_SOURCES = \
2388 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2390 test_bus_kernel_benchmark_LDADD = \
2391 libsystemd-internal.la \
2392 libsystemd-shared.la
2394 test_bus_memfd_SOURCES = \
2395 src/libsystemd/sd-bus/test-bus-memfd.c
2397 test_bus_memfd_LDADD = \
2398 libsystemd-internal.la \
2399 libsystemd-shared.la
2401 test_bus_zero_copy_SOURCES = \
2402 src/libsystemd/sd-bus/test-bus-zero-copy.c
2404 test_bus_zero_copy_LDADD = \
2405 libsystemd-internal.la \
2406 libsystemd-shared.la \
2407 libsystemd-dump.la \
2408 libsystemd-capability.la \
2411 test_bus_zero_copy_CFLAGS = \
2415 test_bus_introspect_SOURCES = \
2416 src/libsystemd/sd-bus/test-bus-introspect.c
2418 test_bus_introspect_LDADD = \
2419 libsystemd-internal.la \
2420 libsystemd-shared.la
2422 test_event_SOURCES = \
2423 src/libsystemd/sd-event/test-event.c
2425 test_event_LDADD = \
2426 libsystemd-internal.la \
2427 libsystemd-shared.la
2429 test_rtnl_SOURCES = \
2430 src/libsystemd/sd-rtnl/test-rtnl.c
2433 libsystemd-internal.la \
2434 libsystemd-shared.la
2436 test_resolve_SOURCES = \
2437 src/systemd/sd-resolve.h \
2438 src/libsystemd/sd-resolve/test-resolve.c
2440 test_resolve_LDADD = \
2441 libsystemd-internal.la \
2442 libsystemd-resolve.la \
2443 libsystemd-shared.la \
2446 test_resolve_CFLAGS = \
2451 src/libsystemd/sd-bus/busctl.c
2454 libsystemd-internal.la \
2455 libsystemd-shared.la \
2456 libsystemd-dump.la \
2457 libsystemd-capability.la \
2464 # ------------------------------------------------------------------------------
2465 noinst_LTLIBRARIES += \
2466 libsystemd-network.la
2468 libsystemd_network_la_SOURCES = \
2469 src/systemd/sd-network.h \
2470 src/systemd/sd-dhcp-client.h \
2471 src/systemd/sd-dhcp-lease.h \
2472 src/systemd/sd-ipv4ll.h \
2473 src/network/sd-network.c \
2474 src/network/network-util.h \
2475 src/libsystemd-network/sd-dhcp-client.c \
2476 src/libsystemd-network/dhcp-network.c \
2477 src/libsystemd-network/dhcp-option.c \
2478 src/libsystemd-network/dhcp-packet.c \
2479 src/libsystemd-network/dhcp-internal.h \
2480 src/libsystemd-network/dhcp-protocol.h \
2481 src/libsystemd-network/dhcp-lease-internal.h \
2482 src/libsystemd-network/sd-dhcp-lease.c \
2483 src/libsystemd-network/sd-ipv4ll.c \
2484 src/libsystemd-network/ipv4ll-network.c \
2485 src/libsystemd-network/ipv4ll-packet.c \
2486 src/libsystemd-network/ipv4ll-internal.h \
2487 src/libsystemd-network/network-internal.c \
2488 src/libsystemd-network/network-internal.h
2490 libsystemd_network_la_LIBADD = \
2491 libsystemd-label.la \
2492 libsystemd-internal.la \
2493 libsystemd-shared.la
2495 test_dhcp_option_SOURCES = \
2496 src/libsystemd-network/dhcp-protocol.h \
2497 src/libsystemd-network/dhcp-internal.h \
2498 src/libsystemd-network/test-dhcp-option.c
2500 test_dhcp_option_LDADD = \
2501 libsystemd-network.la \
2502 libsystemd-internal.la \
2503 libsystemd-shared.la
2505 test_dhcp_client_SOURCES = \
2506 src/systemd/sd-dhcp-client.h \
2507 src/libsystemd-network/dhcp-protocol.h \
2508 src/libsystemd-network/dhcp-internal.h \
2509 src/libsystemd-network/test-dhcp-client.c
2511 test_dhcp_client_LDADD = \
2512 libsystemd-network.la \
2513 libsystemd-label.la \
2514 libsystemd-internal.la \
2515 libsystemd-shared.la
2521 # ------------------------------------------------------------------------------
2531 include_HEADERS += \
2532 src/libudev/libudev.h
2534 lib_LTLIBRARIES += \
2537 libudev_la_SOURCES =\
2538 src/libudev/libudev.sym \
2539 src/libudev/libudev-private.h \
2540 src/libudev/libudev.c \
2541 src/libudev/libudev-list.c \
2542 src/libudev/libudev-util.c \
2543 src/libudev/libudev-device.c \
2544 src/libudev/libudev-enumerate.c \
2545 src/libudev/libudev-monitor.c \
2546 src/libudev/libudev-queue.c \
2547 src/libudev/libudev-hwdb-def.h \
2548 src/libudev/libudev-hwdb.c
2550 libudev_la_CFLAGS = \
2554 libudev_la_LDFLAGS = \
2556 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2557 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2559 libudev_la_LIBADD = \
2560 libsystemd-internal.la \
2561 libsystemd-shared.la
2563 pkgconfiglib_DATA += \
2564 src/libudev/libudev.pc
2567 src/libudev/libudev.pc.in
2570 src/libudev/libudev.pc \
2575 $(AM_V_at)$(MKDIR_P) $(dir $@)
2576 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2579 $(AM_V_at)$(MKDIR_P) $(dir $@)
2580 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2582 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2583 libudev-install-hook:
2584 libname=libudev.so && $(move-to-rootlibdir)
2586 libudev-uninstall-hook:
2587 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2589 INSTALL_EXEC_HOOKS += libudev-install-hook
2590 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2592 # ------------------------------------------------------------------------------
2593 noinst_LTLIBRARIES += \
2596 libudev_internal_la_SOURCES =\
2597 $(libudev_la_SOURCES) \
2598 src/libudev/libudev-device-private.c
2600 libudev_internal_la_CFLAGS = \
2602 -fvisibility=default
2604 # ------------------------------------------------------------------------------
2606 $(sysconfdir)/udev/rules.d \
2607 $(sysconfdir)/udev/hwdb.d
2609 dist_network_DATA = \
2610 network/99-default.link \
2611 network/80-container-host0.network
2613 dist_udevrules_DATA += \
2614 rules/42-usb-hid-pm.rules \
2615 rules/50-udev-default.rules \
2616 rules/60-drm.rules \
2617 rules/60-keyboard.rules \
2618 rules/60-persistent-storage-tape.rules \
2619 rules/60-persistent-serial.rules \
2620 rules/60-persistent-input.rules \
2621 rules/60-persistent-alsa.rules \
2622 rules/60-persistent-storage.rules \
2623 rules/64-btrfs.rules \
2624 rules/75-net-description.rules \
2625 rules/75-tty-description.rules \
2626 rules/78-sound-card.rules \
2627 rules/80-net-setup-link.rules \
2628 rules/95-udev-late.rules
2630 nodist_udevrules_DATA += \
2631 rules/99-systemd.rules
2633 dist_udevhwdb_DATA = \
2634 hwdb/20-pci-vendor-model.hwdb \
2635 hwdb/20-pci-classes.hwdb \
2636 hwdb/20-usb-vendor-model.hwdb \
2637 hwdb/20-usb-classes.hwdb \
2638 hwdb/20-sdio-vendor-model.hwdb \
2639 hwdb/20-sdio-classes.hwdb \
2640 hwdb/20-bluetooth-vendor-product.hwdb \
2641 hwdb/20-acpi-vendor.hwdb \
2643 hwdb/20-net-ifname.hwdb \
2644 hwdb/60-keyboard.hwdb
2646 udevconfdir = $(sysconfdir)/udev
2647 dist_udevconf_DATA = \
2650 sharepkgconfigdir = $(datadir)/pkgconfig
2651 sharepkgconfig_DATA = \
2655 rules/99-systemd.rules.in \
2659 rules/99-systemd.rules \
2663 units/systemd-udevd.service.in \
2664 units/systemd-udev-trigger.service.in \
2665 units/systemd-udev-settle.service.in
2668 units/systemd-udevd.service \
2669 units/systemd-udev-trigger.service \
2670 units/systemd-udev-settle.service
2672 SOCKETS_TARGET_WANTS += \
2673 systemd-udevd-control.socket \
2674 systemd-udevd-kernel.socket
2675 SYSINIT_TARGET_WANTS += \
2676 systemd-udevd.service \
2677 systemd-udev-trigger.service
2679 rootbin_PROGRAMS += \
2682 rootlibexec_PROGRAMS += \
2685 noinst_LTLIBRARIES += \
2688 src/udev/keyboard-keys.txt:
2689 $(AM_V_at)$(MKDIR_P) $(dir $@)
2690 $(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/' > $@
2692 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2693 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2695 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2696 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2698 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2699 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2701 libudev_core_la_SOURCES = \
2703 src/udev/udev-event.c \
2704 src/udev/udev-watch.c \
2705 src/udev/udev-node.c \
2706 src/udev/udev-rules.c \
2707 src/udev/udev-ctrl.c \
2708 src/udev/udev-builtin.c \
2709 src/udev/udev-builtin-btrfs.c \
2710 src/udev/udev-builtin-hwdb.c \
2711 src/udev/udev-builtin-input_id.c \
2712 src/udev/udev-builtin-keyboard.c \
2713 src/udev/udev-builtin-net_id.c \
2714 src/udev/udev-builtin-net_setup_link.c \
2715 src/udev/udev-builtin-path_id.c \
2716 src/udev/udev-builtin-usb_id.c \
2717 src/udev/net/link-config.h \
2718 src/udev/net/link-config.c \
2719 src/udev/net/ethtool-util.h \
2720 src/udev/net/ethtool-util.c
2722 nodist_libudev_core_la_SOURCES = \
2723 src/udev/keyboard-keys-from-name.h \
2724 src/udev/keyboard-keys-to-name.h \
2725 src/udev/net/link-config-gperf.c
2728 $(nodist_libudev_core_la_SOURCES)
2731 src/udev/keyboard-keys-from-name.gperf \
2732 src/udev/keyboard-keys.txt \
2733 src/udev/net/link-config-gperf.c
2736 src/udev/net/link-config-gperf.gperf
2738 libudev_core_la_CFLAGS = \
2743 libudev_core_la_LIBADD = \
2744 libudev-internal.la \
2745 libsystemd-label.la \
2746 libsystemd-internal.la \
2747 libsystemd-network.la \
2748 libsystemd-shared.la \
2752 libudev_core_la_CPPFLAGS = \
2754 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2757 libudev_core_la_SOURCES += \
2758 src/udev/udev-builtin-firmware.c
2760 dist_udevrules_DATA += \
2761 rules/50-firmware.rules
2765 libudev_core_la_SOURCES += \
2766 src/udev/udev-builtin-kmod.c
2768 dist_udevrules_DATA += \
2769 rules/80-drivers.rules
2773 libudev_core_la_SOURCES += \
2774 src/udev/udev-builtin-blkid.c
2778 libudev_core_la_SOURCES += \
2779 src/udev/udev-builtin-uaccess.c \
2780 src/login/logind-acl.c \
2781 src/libsystemd/sd-login/sd-login.c \
2782 src/systemd/sd-login.h
2784 libudev_core_la_LIBADD += \
2788 systemd_udevd_SOURCES = \
2791 systemd_udevd_LDADD = \
2795 src/udev/udevadm.c \
2796 src/udev/udevadm-info.c \
2797 src/udev/udevadm-control.c \
2798 src/udev/udevadm-monitor.c \
2799 src/udev/udevadm-hwdb.c \
2800 src/udev/udevadm-settle.c \
2801 src/udev/udevadm-trigger.c \
2802 src/udev/udevadm-test.c \
2803 src/udev/udevadm-test-builtin.c
2808 # Update hwdb on installation. Do not bother if installing
2809 # in DESTDIR, since this is likely for packaging purposes.
2811 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2813 INSTALL_DATA_HOOKS += \
2817 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2819 # ------------------------------------------------------------------------------
2828 test_libudev_SOURCES = \
2829 src/test/test-libudev.c
2831 test_libudev_LDADD = \
2832 libsystemd-label.la \
2833 libudev-internal.la \
2834 libsystemd-shared.la
2836 test_udev_SOURCES = \
2837 src/test/test-udev.c
2846 test_udev_LDADD += \
2853 # packed sysfs test tree
2855 $(AM_V_at)$(MKDIR_P) $(dir $@)
2856 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2860 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2865 test/rules-test.sh \
2866 test/rule-syntax-check.py
2868 # ------------------------------------------------------------------------------
2870 src/udev/ata_id/ata_id.c
2873 libudev-internal.la \
2874 libsystemd-shared.la
2876 udevlibexec_PROGRAMS += \
2879 # ------------------------------------------------------------------------------
2880 cdrom_id_SOURCES = \
2881 src/udev/cdrom_id/cdrom_id.c
2884 libudev-internal.la \
2885 libsystemd-shared.la
2887 udevlibexec_PROGRAMS += \
2890 dist_udevrules_DATA += \
2891 rules/60-cdrom_id.rules
2893 # ------------------------------------------------------------------------------
2895 src/udev/collect/collect.c
2898 libudev-internal.la \
2899 libsystemd-shared.la
2901 udevlibexec_PROGRAMS += \
2904 # ------------------------------------------------------------------------------
2906 src/udev/scsi_id/scsi_id.c \
2907 src/udev/scsi_id/scsi_serial.c \
2908 src/udev/scsi_id/scsi.h \
2909 src/udev/scsi_id/scsi_id.h
2912 libudev-internal.la \
2913 libsystemd-shared.la
2915 udevlibexec_PROGRAMS += \
2919 src/udev/scsi_id/README
2921 # ------------------------------------------------------------------------------
2923 src/udev/v4l_id/v4l_id.c
2928 udevlibexec_PROGRAMS += \
2931 dist_udevrules_DATA += \
2932 rules/60-persistent-v4l.rules
2934 # ------------------------------------------------------------------------------
2935 accelerometer_SOURCES = \
2936 src/udev/accelerometer/accelerometer.c
2938 accelerometer_LDADD = \
2939 libudev-internal.la -lm \
2940 libsystemd-shared.la
2942 udevlibexec_PROGRAMS += \
2945 dist_udevrules_DATA += \
2946 rules/61-accelerometer.rules
2948 # ------------------------------------------------------------------------------
2955 libgudev_includedir = \
2956 $(includedir)/gudev-1.0/gudev
2958 libgudev_include_HEADERS = \
2960 src/gudev/gudevenums.h \
2961 src/gudev/gudevenumtypes.h \
2962 src/gudev/gudevtypes.h \
2963 src/gudev/gudevclient.h \
2964 src/gudev/gudevdevice.h \
2965 src/gudev/gudevenumerator.h
2967 lib_LTLIBRARIES += libgudev-1.0.la
2969 pkgconfiglib_DATA += \
2970 src/gudev/gudev-1.0.pc
2973 src/gudev/gudev-1.0.pc
2975 libgudev_1_0_la_SOURCES = \
2976 src/gudev/gudevenums.h \
2977 src/gudev/gudevenumtypes.h \
2978 src/gudev/gudevenumtypes.h\
2979 src/gudev/gudevtypes.h \
2980 src/gudev/gudevclient.h \
2981 src/gudev/gudevclient.c \
2982 src/gudev/gudevdevice.h \
2983 src/gudev/gudevdevice.c \
2984 src/gudev/gudevenumerator.h \
2985 src/gudev/gudevenumerator.c \
2986 src/gudev/gudevprivate.h
2988 nodist_libgudev_1_0_la_SOURCES = \
2989 src/gudev/gudevmarshal.h \
2990 src/gudev/gudevmarshal.c \
2991 src/gudev/gudevenumtypes.h \
2992 src/gudev/gudevenumtypes.c
2995 $(nodist_libgudev_1_0_la_SOURCES)
2997 libgudev_1_0_la_CPPFLAGS = \
2999 -I$(top_builddir)/src\
3000 -I$(top_srcdir)/src\
3001 -I$(top_builddir)/src/gudev \
3002 -I$(top_srcdir)/src/gudev \
3003 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3004 -D_GUDEV_COMPILATION \
3005 -DG_LOG_DOMAIN=\"GUdev\"
3007 libgudev_1_0_la_CFLAGS = \
3009 -fvisibility=default \
3012 libgudev_1_0_la_LIBADD = \
3016 libgudev_1_0_la_LDFLAGS = \
3018 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3019 -export-dynamic -no-undefined \
3020 -export-symbols-regex '^g_udev_.*'
3022 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3023 $(AM_V_at)$(MKDIR_P) $(dir $@)
3024 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3026 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3027 $(AM_V_at)$(MKDIR_P) $(dir $@)
3028 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3029 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3031 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3032 $(AM_V_at)$(MKDIR_P) $(dir $@)
3033 $(AM_V_GEN)glib-mkenums --template $^ > $@
3035 if HAVE_INTROSPECTION
3036 -include $(INTROSPECTION_MAKEFILE)
3038 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3040 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3042 src_gudev_GUdev_1_0_gir_CFLAGS = \
3045 -D_GUDEV_COMPILATION \
3046 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3047 -I$(top_srcdir)/src \
3048 -I$(top_builddir)/src \
3049 -I$(top_srcdir)/src/gudev \
3050 -I$(top_builddir)/src/gudev
3052 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3054 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3055 --pkg-export=gudev-1.0 \
3058 src_gudev_GUdev_1_0_gir_FILES = \
3060 src/gudev/gudevtypes.h \
3061 src/gudev/gudevenums.h \
3062 src/gudev/gudevenumtypes.h \
3063 src/gudev/gudevclient.h \
3064 src/gudev/gudevdevice.h \
3065 src/gudev/gudevenumerator.h \
3066 src/gudev/gudevclient.c \
3067 src/gudev/gudevdevice.c \
3068 src/gudev/gudevenumerator.c
3070 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3071 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3073 girdir = $(datadir)/gir-1.0
3075 src/gudev/GUdev-1.0.gir
3077 typelibsdir = $(libdir)/girepository-1.0
3079 src/gudev/GUdev-1.0.typelib
3081 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3082 endif # HAVE_INTROSPECTION
3084 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3085 libgudev-install-hook:
3086 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3088 libgudev-uninstall-hook:
3089 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3091 INSTALL_EXEC_HOOKS += libgudev-install-hook
3092 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3096 src/gudev/gudev-1.0.pc.in \
3097 src/gudev/gudevmarshal.list \
3098 src/gudev/gudevenumtypes.h.template \
3099 src/gudev/gudevenumtypes.c.template \
3100 src/gudev/gjs-example.js \
3101 src/gudev/seed-example-enum.js \
3102 src/gudev/seed-example.js
3104 # ------------------------------------------------------------------------------
3105 mtd_probe_SOURCES = \
3106 src/udev/mtd_probe/mtd_probe.c \
3107 src/udev/mtd_probe/mtd_probe.h \
3108 src/udev/mtd_probe/probe_smartmedia.c
3110 dist_udevrules_DATA += \
3111 rules/75-probe_mtd.rules
3113 udevlibexec_PROGRAMS += \
3116 # ------------------------------------------------------------------------------
3117 test_id128_SOURCES = \
3118 src/test/test-id128.c
3120 test_id128_LDADD = \
3121 libsystemd-internal.la \
3122 libsystemd-shared.la
3127 # ------------------------------------------------------------------------------
3129 rootlibexec_PROGRAMS += \
3132 systemd_activate_SOURCES = \
3133 src/activate/activate.c
3135 systemd_activate_LDADD = \
3136 libsystemd-label.la \
3137 libsystemd-internal.la \
3138 libsystemd-shared.la
3140 # ------------------------------------------------------------------------------
3141 systemd_journald_SOURCES = \
3142 src/journal/journald.c \
3143 src/journal/journald-server.h
3145 systemd_journald_LDADD = \
3146 libsystemd-journal-core.la \
3147 libsystemd-internal.la \
3148 libsystemd-shared.la
3150 systemd_cat_SOURCES = \
3153 systemd_cat_LDADD = \
3154 libsystemd-journal-core.la
3157 rootlibexec_PROGRAMS += \
3158 systemd-journal-remote
3160 systemd_journal_remote_SOURCES = \
3161 src/journal/journal-remote-parse.h \
3162 src/journal/journal-remote-parse.c \
3163 src/journal/journal-remote-write.h \
3164 src/journal/journal-remote-write.c \
3165 src/journal/journal-remote.c
3167 systemd_journal_remote_LDADD = \
3168 libsystemd-internal.la \
3169 libsystemd-journal-core.la
3171 systemd_journal_remote_SOURCES += \
3172 src/journal/microhttpd-util.h \
3173 src/journal/microhttpd-util.c
3175 systemd_journal_remote_CFLAGS = \
3177 $(MICROHTTPD_CFLAGS)
3179 systemd_journal_remote_LDADD += \
3183 systemd_journal_remote_LDADD += \
3188 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3189 journalctl_CFLAGS = \
3192 journalctl_SOURCES = \
3193 src/journal/journalctl.c
3195 journalctl_LDADD = \
3196 libsystemd-journal-internal.la \
3197 libsystemd-internal.la \
3198 libsystemd-logs.la \
3199 libsystemd-shared.la
3202 journalctl_LDADD += \
3207 journalctl_SOURCES += \
3208 src/journal/journal-qrcode.c \
3209 src/journal/journal-qrcode.h
3211 journalctl_CFLAGS += \
3214 journalctl_LDADD += \
3218 test_journal_SOURCES = \
3219 src/journal/test-journal.c
3221 test_journal_LDADD = \
3222 libsystemd-journal-core.la
3224 test_journal_send_SOURCES = \
3225 src/journal/test-journal-send.c
3227 test_journal_send_LDADD = \
3228 libsystemd-journal-core.la
3230 test_journal_syslog_SOURCES = \
3231 src/journal/test-journal-syslog.c
3233 test_journal_syslog_LDADD = \
3234 libsystemd-journal-core.la
3236 test_journal_match_SOURCES = \
3237 src/journal/test-journal-match.c
3239 test_journal_match_LDADD = \
3240 libsystemd-journal-core.la
3242 test_journal_enum_SOURCES = \
3243 src/journal/test-journal-enum.c
3245 test_journal_enum_LDADD = \
3246 libsystemd-journal-core.la
3248 test_journal_stream_SOURCES = \
3249 src/journal/test-journal-stream.c
3251 test_journal_stream_LDADD = \
3252 libsystemd-journal-core.la
3254 test_journal_flush_SOURCES = \
3255 src/journal/test-journal-flush.c
3257 test_journal_flush_LDADD = \
3258 libsystemd-journal-core.la
3260 test_journal_init_SOURCES = \
3261 src/journal/test-journal-init.c
3263 test_journal_init_LDADD = \
3264 libsystemd-journal-core.la
3266 test_journal_verify_SOURCES = \
3267 src/journal/test-journal-verify.c
3269 test_journal_verify_LDADD = \
3270 libsystemd-journal-core.la
3272 test_journal_interleaving_SOURCES = \
3273 src/journal/test-journal-interleaving.c
3275 test_journal_interleaving_LDADD = \
3276 libsystemd-journal-core.la
3278 test_mmap_cache_SOURCES = \
3279 src/journal/test-mmap-cache.c
3281 test_mmap_cache_LDADD = \
3282 libsystemd-journal-core.la
3284 test_catalog_SOURCES = \
3285 src/journal/test-catalog.c
3287 test_catalog_CPPFLAGS = \
3289 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3291 test_catalog_LDADD = \
3292 libsystemd-journal-core.la
3294 libsystemd_journal_core_la_SOURCES = \
3295 src/journal/journald-kmsg.c \
3296 src/journal/journald-kmsg.h \
3297 src/journal/journald-syslog.c \
3298 src/journal/journald-syslog.h \
3299 src/journal/journald-stream.c \
3300 src/journal/journald-stream.h \
3301 src/journal/journald-server.c \
3302 src/journal/journald-server.h \
3303 src/journal/journald-console.c \
3304 src/journal/journald-console.h \
3305 src/journal/journald-wall.c \
3306 src/journal/journald-wall.h \
3307 src/journal/journald-native.c \
3308 src/journal/journald-native.h \
3309 src/journal/journald-rate-limit.c \
3310 src/journal/journald-rate-limit.h \
3311 src/journal/journal-internal.h
3313 nodist_libsystemd_journal_core_la_SOURCES = \
3314 src/journal/journald-gperf.c
3316 libsystemd_journal_core_la_LIBADD = \
3317 libsystemd-journal-internal.la \
3318 libudev-internal.la \
3319 libsystemd-capability.la \
3320 libsystemd-label.la \
3321 libsystemd-internal.la \
3322 libsystemd-shared.la
3325 libsystemd_journal_core_la_LIBADD += \
3329 noinst_LTLIBRARIES += \
3330 libsystemd-journal-core.la
3332 journal-install-hook:
3333 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3334 -chown 0:0 $(DESTDIR)/var/log/journal
3335 -chmod 755 $(DESTDIR)/var/log/journal
3336 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3337 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3339 journal-uninstall-hook:
3340 -rmdir $(DESTDIR)/var/log/journal/
3342 INSTALL_EXEC_HOOKS += journal-install-hook
3343 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3345 # ------------------------------------------------------------------------------
3346 # Update catalog on installation. Do not bother if installing
3347 # in DESTDIR, since this is likely for packaging purposes.
3348 catalog-update-hook:
3349 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3351 INSTALL_DATA_HOOKS += \
3354 catalog-remove-hook:
3355 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3357 UNINSTALL_DATA_HOOKS += \
3366 test-journal-syslog \
3367 test-journal-match \
3368 test-journal-stream \
3370 test-journal-verify \
3371 test-journal-interleaving \
3372 test-journal-flush \
3376 pkginclude_HEADERS += \
3377 src/systemd/sd-journal.h \
3378 src/systemd/sd-messages.h \
3379 src/systemd/_sd-common.h
3381 libsystemd_journal_internal_la_SOURCES = \
3382 src/journal/sd-journal.c \
3383 src/systemd/sd-journal.h \
3384 src/systemd/_sd-common.h \
3385 src/journal/journal-file.c \
3386 src/journal/journal-file.h \
3387 src/journal/journal-vacuum.c \
3388 src/journal/journal-vacuum.h \
3389 src/journal/journal-verify.c \
3390 src/journal/journal-verify.h \
3391 src/journal/lookup3.c \
3392 src/journal/lookup3.h \
3393 src/journal/journal-send.c \
3394 src/journal/journal-def.h \
3395 src/journal/compress.h \
3396 src/journal/catalog.c \
3397 src/journal/catalog.h \
3398 src/journal/mmap-cache.c \
3399 src/journal/mmap-cache.h
3401 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3402 libsystemd_journal_internal_la_CFLAGS =
3405 libsystemd_journal_internal_la_LIBADD =
3408 libsystemd_journal_internal_la_SOURCES += \
3409 src/journal/compress.c
3411 libsystemd_journal_internal_la_CFLAGS += \
3414 libsystemd_journal_internal_la_LIBADD += \
3419 libsystemd_journal_internal_la_SOURCES += \
3420 src/journal/journal-authenticate.c \
3421 src/journal/journal-authenticate.h \
3422 src/journal/fsprg.c \
3425 libsystemd_journal_internal_la_LIBADD += \
3428 # fsprg.c is a drop-in file using void pointer arithmetic
3429 libsystemd_journal_internal_la_CFLAGS += \
3434 noinst_LTLIBRARIES += \
3435 libsystemd-journal-internal.la
3437 rootlibexec_PROGRAMS += \
3440 rootbin_PROGRAMS += \
3446 dist_systemunit_DATA += \
3447 units/systemd-journald.socket
3449 nodist_systemunit_DATA += \
3450 units/systemd-journald.service \
3451 units/systemd-journal-flush.service
3453 dist_pkgsysconf_DATA += \
3454 src/journal/journald.conf
3456 dist_catalog_DATA = \
3457 catalog/systemd.fr.catalog \
3458 catalog/systemd.ru.catalog \
3459 catalog/systemd.it.catalog \
3460 catalog/systemd.catalog
3462 SOCKETS_TARGET_WANTS += \
3463 systemd-journald.socket
3464 SYSINIT_TARGET_WANTS += \
3465 systemd-journald.service \
3466 systemd-journal-flush.service
3469 units/systemd-journald.service.in \
3470 units/systemd-journal-flush.service.in \
3471 src/journal/journald-gperf.gperf
3474 src/journal/journald-gperf.c
3476 # ------------------------------------------------------------------------------
3478 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3480 rootlibexec_PROGRAMS += \
3481 systemd-journal-gatewayd
3483 systemd_journal_gatewayd_SOURCES = \
3484 src/journal/journal-gatewayd.c \
3485 src/journal/microhttpd-util.h \
3486 src/journal/microhttpd-util.c
3488 systemd_journal_gatewayd_LDADD = \
3489 libsystemd-logs.la \
3490 libsystemd-journal-internal.la \
3491 libsystemd-internal.la \
3492 libsystemd-shared.la \
3496 systemd_journal_gatewayd_LDADD += \
3500 systemd_journal_gatewayd_CFLAGS = \
3502 $(MICROHTTPD_CFLAGS)
3504 systemd_journal_gatewayd_CPPFLAGS = \
3506 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3508 dist_systemunit_DATA += \
3509 units/systemd-journal-gatewayd.socket
3511 nodist_systemunit_DATA += \
3512 units/systemd-journal-gatewayd.service
3514 dist_gatewayddocumentroot_DATA = \
3515 src/journal/browse.html
3520 units/systemd-journal-gatewayd.service.in
3522 # ------------------------------------------------------------------------------
3524 systemd_socket_proxyd_SOURCES = \
3525 src/socket-proxy/socket-proxyd.c
3527 systemd_socket_proxyd_LDADD = \
3528 libsystemd-logs.la \
3529 libsystemd-internal.la \
3530 libsystemd-journal-internal.la \
3531 libsystemd-shared.la
3533 # ------------------------------------------------------------------------------
3535 systemd_coredump_SOURCES = \
3536 src/journal/coredump.c
3538 systemd_coredump_LDADD = \
3539 libsystemd-journal-internal.la \
3540 libsystemd-label.la \
3541 libsystemd-internal.la \
3542 libsystemd-shared.la
3544 rootlibexec_PROGRAMS += \
3547 systemd_coredumpctl_SOURCES = \
3548 src/journal/coredumpctl.c
3550 systemd_coredumpctl_LDADD = \
3551 libsystemd-journal-internal.la \
3552 libsystemd-internal.la \
3553 libsystemd-shared.la
3558 dist_bashcompletion_DATA += \
3559 shell-completion/bash/systemd-coredumpctl
3561 dist_zshcompletion_DATA += \
3562 shell-completion/zsh/_systemd-coredumpctl
3565 sysctl.d/50-coredump.conf
3568 sysctl.d/50-coredump.conf
3572 sysctl.d/50-coredump.conf.in
3574 # ------------------------------------------------------------------------------
3576 systemd_binfmt_SOURCES = \
3579 systemd_binfmt_LDADD = \
3580 libsystemd-shared.la
3582 rootlibexec_PROGRAMS += \
3585 dist_systemunit_DATA += \
3586 units/proc-sys-fs-binfmt_misc.automount \
3587 units/proc-sys-fs-binfmt_misc.mount
3589 nodist_systemunit_DATA += \
3590 units/systemd-binfmt.service
3593 $(prefix)/lib/binfmt.d \
3594 $(sysconfdir)/binfmt.d
3596 SYSINIT_TARGET_WANTS += \
3597 systemd-binfmt.service \
3598 proc-sys-fs-binfmt_misc.automount
3603 units/systemd-binfmt.service.in
3605 # ------------------------------------------------------------------------------
3607 systemd_vconsole_setup_SOURCES = \
3608 src/vconsole/vconsole-setup.c
3610 systemd_vconsole_setup_LDADD = \
3611 libsystemd-shared.la
3613 rootlibexec_PROGRAMS += \
3614 systemd-vconsole-setup
3616 nodist_systemunit_DATA += \
3617 units/systemd-vconsole-setup.service
3619 SYSINIT_TARGET_WANTS += \
3620 systemd-vconsole-setup.service
3624 units/systemd-vconsole-setup.service.in
3626 # ------------------------------------------------------------------------------
3628 systemd_readahead_SOURCES = \
3629 src/readahead/readahead.c \
3630 src/readahead/readahead-collect.c \
3631 src/readahead/readahead-replay.c \
3632 src/readahead/readahead-analyze.c \
3633 src/readahead/readahead-common.c \
3634 src/readahead/readahead-common.h
3636 systemd_readahead_LDADD = \
3637 libsystemd-internal.la \
3638 libudev-internal.la \
3639 libsystemd-shared.la
3642 src/readahead/sd-readahead.c \
3643 src/systemd/sd-readahead.h
3645 rootlibexec_PROGRAMS += \
3648 dist_systemunit_DATA += \
3649 units/systemd-readahead-drop.service \
3650 units/systemd-readahead-done.timer
3652 nodist_systemunit_DATA += \
3653 units/systemd-readahead-collect.service \
3654 units/systemd-readahead-replay.service \
3655 units/systemd-readahead-done.service
3660 units/systemd-readahead-collect.service.in \
3661 units/systemd-readahead-replay.service.in \
3662 units/systemd-readahead-done.service.in
3664 # ------------------------------------------------------------------------------
3666 systemd_bootchart_SOURCES = \
3667 src/bootchart/bootchart.c \
3668 src/bootchart/bootchart.h \
3669 src/bootchart/store.c \
3670 src/bootchart/store.h \
3671 src/bootchart/svg.c \
3674 systemd_bootchart_LDADD = \
3675 libsystemd-journal-internal.la \
3676 libsystemd-shared.la
3678 rootlibexec_PROGRAMS += \
3681 dist_pkgsysconf_DATA += \
3682 src/bootchart/bootchart.conf
3685 # ------------------------------------------------------------------------------
3686 if ENABLE_QUOTACHECK
3687 rootlibexec_PROGRAMS += \
3690 nodist_systemunit_DATA += \
3691 units/systemd-quotacheck.service
3693 systemd_quotacheck_SOURCES = \
3694 src/quotacheck/quotacheck.c
3696 systemd_quotacheck_LDADD = \
3697 libsystemd-shared.la
3701 units/systemd-quotacheck.service.in
3703 nodist_systemunit_DATA += \
3704 units/quotaon.service
3706 # ------------------------------------------------------------------------------
3707 if ENABLE_RANDOMSEED
3708 rootlibexec_PROGRAMS += \
3711 nodist_systemunit_DATA += \
3712 units/systemd-random-seed.service
3714 systemd_random_seed_SOURCES = \
3715 src/random-seed/random-seed.c
3717 systemd_random_seed_LDADD = \
3718 libsystemd-label.la \
3719 libsystemd-shared.la
3721 SYSINIT_TARGET_WANTS += \
3722 systemd-random-seed.service
3727 units/systemd-random-seed.service.in
3729 # ------------------------------------------------------------------------------
3731 rootlibexec_PROGRAMS += \
3734 nodist_systemunit_DATA += \
3735 units/systemd-backlight@.service
3737 systemd_backlight_SOURCES = \
3738 src/backlight/backlight.c
3740 systemd_backlight_LDADD = \
3741 libsystemd-label.la \
3742 libudev-internal.la \
3743 libsystemd-shared.la
3747 units/systemd-backlight@.service.in
3749 # ------------------------------------------------------------------------------
3751 rootlibexec_PROGRAMS += \
3754 nodist_systemunit_DATA += \
3755 units/systemd-rfkill@.service
3757 systemd_rfkill_SOURCES = \
3760 systemd_rfkill_LDADD = \
3761 libsystemd-label.la \
3762 libudev-internal.la \
3763 libsystemd-shared.la
3767 units/systemd-rfkill@.service.in
3769 # ------------------------------------------------------------------------------
3770 if HAVE_LIBCRYPTSETUP
3771 rootlibexec_PROGRAMS += \
3774 systemgenerator_PROGRAMS += \
3775 systemd-cryptsetup-generator
3777 dist_systemunit_DATA += \
3778 units/cryptsetup.target
3780 systemd_cryptsetup_SOURCES = \
3781 src/cryptsetup/cryptsetup.c
3783 systemd_cryptsetup_CFLAGS = \
3785 $(LIBCRYPTSETUP_CFLAGS)
3787 systemd_cryptsetup_LDADD = \
3788 libsystemd-label.la \
3789 libudev-internal.la \
3790 libsystemd-shared.la \
3791 $(LIBCRYPTSETUP_LIBS)
3793 systemd_cryptsetup_generator_SOURCES = \
3794 src/cryptsetup/cryptsetup-generator.c
3796 systemd_cryptsetup_generator_LDADD = \
3797 libsystemd-label.la \
3798 libsystemd-shared.la
3800 SYSINIT_TARGET_WANTS += \
3805 # ------------------------------------------------------------------------------
3807 systemd_hostnamed_SOURCES = \
3808 src/hostname/hostnamed.c
3810 systemd_hostnamed_LDADD = \
3811 libsystemd-label.la \
3812 libsystemd-internal.la \
3813 libsystemd-shared.la
3815 rootlibexec_PROGRAMS += \
3818 nodist_systemunit_DATA += \
3819 units/systemd-hostnamed.service
3821 dist_systemunit_DATA += \
3822 units/org.freedesktop.hostname1.busname
3824 dist_dbuspolicy_DATA += \
3825 src/hostname/org.freedesktop.hostname1.conf
3827 dist_dbussystemservice_DATA += \
3828 src/hostname/org.freedesktop.hostname1.service
3830 polkitpolicy_files += \
3831 src/hostname/org.freedesktop.hostname1.policy
3833 SYSTEM_UNIT_ALIASES += \
3834 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3836 BUSNAMES_TARGET_WANTS += \
3837 org.freedesktop.hostname1.busname
3839 hostnamectl_SOURCES = \
3840 src/hostname/hostnamectl.c
3842 hostnamectl_LDADD = \
3843 libsystemd-internal.la \
3844 libsystemd-shared.la
3849 dist_bashcompletion_DATA += \
3850 shell-completion/bash/hostnamectl
3852 dist_zshcompletion_DATA += \
3853 shell-completion/zsh/_hostnamectl
3857 polkitpolicy_in_files += \
3858 src/hostname/org.freedesktop.hostname1.policy.in
3861 units/systemd-hostnamed.service.in
3863 # ------------------------------------------------------------------------------
3865 dist_systemunit_DATA += \
3866 units/org.freedesktop.systemd1.busname
3868 BUSNAMES_TARGET_WANTS += \
3869 org.freedesktop.systemd1.busname
3872 # ------------------------------------------------------------------------------
3874 systemd_localed_SOURCES = \
3875 src/locale/localed.c
3877 systemd_localed_LDADD = \
3878 libsystemd-label.la \
3879 libsystemd-internal.la \
3880 libsystemd-shared.la
3882 nodist_systemunit_DATA += \
3883 units/systemd-localed.service
3885 dist_systemunit_DATA += \
3886 units/org.freedesktop.locale1.busname
3888 rootlibexec_PROGRAMS += \
3891 dist_dbuspolicy_DATA += \
3892 src/locale/org.freedesktop.locale1.conf
3894 dist_dbussystemservice_DATA += \
3895 src/locale/org.freedesktop.locale1.service
3897 polkitpolicy_files += \
3898 src/locale/org.freedesktop.locale1.policy
3900 SYSTEM_UNIT_ALIASES += \
3901 systemd-localed.service dbus-org.freedesktop.locale1.service
3903 BUSNAMES_TARGET_WANTS += \
3904 org.freedesktop.locale1.busname
3906 dist_pkgdata_DATA += \
3907 src/locale/kbd-model-map
3909 dist_noinst_SCRIPT = \
3910 src/locale/generate-kbd-model-map
3912 update-kbd-model-map: src/locale/generate-kbd-model-map
3913 $PYTHON $< >src/locale/kbd-model-map
3915 localectl_SOURCES = \
3916 src/locale/localectl.c
3919 libsystemd-internal.la \
3920 libsystemd-shared.la
3925 dist_bashcompletion_DATA += \
3926 shell-completion/bash/localectl
3928 dist_zshcompletion_DATA += \
3929 shell-completion/zsh/_localectl
3933 .PHONY: update-kbd-model-map
3935 polkitpolicy_in_files += \
3936 src/locale/org.freedesktop.locale1.policy.in
3939 units/systemd-localed.service.in
3941 # ------------------------------------------------------------------------------
3943 libsystemd_timedated_core_la_SOURCES = \
3944 src/timedate/timedate-sntp.c \
3945 src/timedate/timedate-sntp.h
3947 libsystemd_timedated_core_la_LIBADD = \
3948 libsystemd-label.la \
3949 libsystemd-internal.la \
3950 libsystemd-shared.la \
3953 noinst_LTLIBRARIES += \
3954 libsystemd-timedated-core.la
3956 systemd_timedated_SOURCES = \
3957 src/timedate/timedated.c
3959 systemd_timedated_LDADD = \
3960 libsystemd-timedated-core.la
3962 rootlibexec_PROGRAMS += \
3965 dist_dbussystemservice_DATA += \
3966 src/timedate/org.freedesktop.timedate1.service
3968 dist_dbuspolicy_DATA += \
3969 src/timedate/org.freedesktop.timedate1.conf
3971 nodist_systemunit_DATA += \
3972 units/systemd-timedated.service
3974 dist_systemunit_DATA += \
3975 units/org.freedesktop.timedate1.busname
3977 polkitpolicy_files += \
3978 src/timedate/org.freedesktop.timedate1.policy
3981 $(prefix)/lib/systemd/ntp-units.d \
3982 $(sysconfdir)/systemd/ntp-units.d
3984 SYSTEM_UNIT_ALIASES += \
3985 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3987 BUSNAMES_TARGET_WANTS += \
3988 org.freedesktop.timedate1.busname
3990 timedatectl_SOURCES = \
3991 src/timedate/timedatectl.c
3993 timedatectl_LDADD = \
3994 libsystemd-internal.la \
3995 libsystemd-shared.la
4000 dist_bashcompletion_DATA += \
4001 shell-completion/bash/timedatectl
4003 dist_zshcompletion_DATA += \
4004 shell-completion/zsh/_timedatectl
4006 test_timedate_sntp_SOURCES = \
4007 src/timedate/test-timedate-sntp.c
4009 test_timedate_sntp_LDADD = \
4010 libsystemd-timedated-core.la
4016 polkitpolicy_in_files += \
4017 src/timedate/org.freedesktop.timedate1.policy.in
4020 units/systemd-timedated.service.in
4022 # ------------------------------------------------------------------------------
4024 libnss_myhostname_la_SOURCES = \
4025 src/nss-myhostname/nss-myhostname.c \
4026 src/nss-myhostname/ifconf.h \
4027 src/nss-myhostname/netlink.c
4029 libnss_myhostname_la_LDFLAGS = \
4037 libnss_myhostname_la_LIBADD = \
4038 libsystemd-shared.la \
4039 libsystemd-internal.la
4041 lib_LTLIBRARIES += \
4042 libnss_myhostname.la
4045 # ------------------------------------------------------------------------------
4047 systemd_machined_SOURCES = \
4048 src/machine/machined.c \
4049 src/machine/machined.h
4051 systemd_machined_LDADD = \
4052 libsystemd-machine-core.la
4054 rootlibexec_PROGRAMS += \
4057 libsystemd_machine_core_la_SOURCES = \
4058 src/machine/machined-dbus.c \
4059 src/machine/machine.c \
4060 src/machine/machine.h \
4061 src/machine/machine-dbus.c
4063 libsystemd_machine_core_la_LIBADD = \
4064 libsystemd-label.la \
4065 libsystemd-internal.la \
4066 libudev-internal.la \
4067 libsystemd-shared.la
4069 noinst_LTLIBRARIES += \
4070 libsystemd-machine-core.la
4072 machinectl_SOURCES = \
4073 src/machine/machinectl.c
4075 machinectl_LDADD = \
4076 libsystemd-internal.la \
4077 libsystemd-shared.la
4079 rootbin_PROGRAMS += \
4082 dist_bashcompletion_DATA += \
4083 shell-completion/bash/machinectl
4085 test_machine_tables_SOURCES = \
4086 src/machine/test-machine-tables.c
4088 test_machine_tables_LDADD = \
4089 libsystemd-machine-core.la
4094 nodist_systemunit_DATA += \
4095 units/systemd-machined.service
4097 dist_systemunit_DATA += \
4098 units/machine.slice \
4099 units/org.freedesktop.machine1.busname
4101 dist_dbussystemservice_DATA += \
4102 src/machine/org.freedesktop.machine1.service
4104 dist_dbuspolicy_DATA += \
4105 src/machine/org.freedesktop.machine1.conf
4107 dist_zshcompletion_DATA += \
4108 shell-completion/zsh/_machinectl \
4109 shell-completion/zsh/_sd_machines
4111 SYSTEM_UNIT_ALIASES += \
4112 systemd-machined.service dbus-org.freedesktop.machine1.service
4114 BUSNAMES_TARGET_WANTS += \
4115 org.freedesktop.machine1.busname
4118 units/systemd-machined.service.in
4122 # ------------------------------------------------------------------------------
4124 rootlibexec_PROGRAMS += \
4127 systemd_networkd_SOURCES = \
4128 src/network/networkd.c
4130 systemd_networkd_LDADD = \
4131 libsystemd-networkd-core.la
4133 noinst_LTLIBRARIES += \
4134 libsystemd-networkd-core.la
4136 libsystemd_networkd_core_la_SOURCES = \
4137 src/libsystemd-network/network-internal.h \
4138 src/network/networkd.h \
4139 src/network/networkd-link.c \
4140 src/network/networkd-netdev.c \
4141 src/network/networkd-network.c \
4142 src/network/networkd-address.c \
4143 src/network/networkd-route.c \
4144 src/network/networkd-manager.c
4146 nodist_libsystemd_networkd_core_la_SOURCES = \
4147 src/network/networkd-network-gperf.c \
4148 src/network/networkd-netdev-gperf.c
4150 libsystemd_networkd_core_la_LIBADD = \
4151 libudev-internal.la \
4152 libsystemd-internal.la \
4153 libsystemd-network.la \
4154 libsystemd-label.la \
4155 libsystemd-shared.la
4157 nodist_systemunit_DATA += \
4158 units/systemd-networkd.service \
4159 units/systemd-networkd-wait-online.service
4161 GENERAL_ALIASES += \
4162 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4163 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4165 rootlibexec_PROGRAMS += \
4166 systemd-networkd-wait-online
4168 systemd_networkd_wait_online_SOURCES = \
4169 src/libsystemd-network/network-internal.h \
4170 src/network/networkd-wait-online.c \
4171 src/network/networkd-wait-online.h
4173 nodist_systemd_networkd_wait_online_SOURCES = \
4174 src/network/networkd-wait-online-gperf.c
4176 systemd_networkd_wait_online_LDADD = \
4177 libsystemd-internal.la \
4178 libsystemd-network.la
4180 test_network_SOURCES = \
4181 src/network/test-network.c
4183 test_network_LDADD = \
4184 libsystemd-networkd-core.la
4189 dist_pkgsysconf_DATA += \
4190 src/network/networkd-wait-online.conf
4193 src/network/networkd-network-gperf.gperf \
4194 src/network/networkd-netdev-gperf.gperf \
4195 src/network/networkd-wait-online-gperf.gperf \
4196 units/systemd-networkd.service.in
4199 src/network/networkd-network-gperf.c \
4200 src/network/networkd-netdev-gperf.c \
4201 src/network/networkd-wait-online-gperf.c
4204 # ------------------------------------------------------------------------------
4206 systemd_logind_SOURCES = \
4207 src/login/logind.c \
4210 nodist_systemd_logind_SOURCES = \
4211 src/login/logind-gperf.c
4213 systemd_logind_LDADD = \
4214 libsystemd-logind-core.la
4216 libsystemd_logind_core_la_SOURCES = \
4217 src/login/logind-core.c \
4218 src/login/logind-device.c \
4219 src/login/logind-device.h \
4220 src/login/logind-button.c \
4221 src/login/logind-button.h \
4222 src/login/logind-action.c \
4223 src/login/logind-action.h \
4224 src/login/logind-seat.c \
4225 src/login/logind-seat.h \
4226 src/login/logind-session.c \
4227 src/login/logind-session.h \
4228 src/login/logind-session-device.c \
4229 src/login/logind-session-device.h \
4230 src/login/logind-user.c \
4231 src/login/logind-user.h \
4232 src/login/logind-inhibit.c \
4233 src/login/logind-inhibit.h \
4234 src/login/logind-dbus.c \
4235 src/login/logind-session-dbus.c \
4236 src/login/logind-seat-dbus.c \
4237 src/login/logind-user-dbus.c \
4238 src/login/logind-acl.h
4240 libsystemd_logind_core_la_LIBADD = \
4241 libsystemd-label.la \
4242 libsystemd-capability.la \
4243 libsystemd-internal.la \
4244 libudev-internal.la \
4245 libsystemd-shared.la
4248 libsystemd_logind_core_la_SOURCES += \
4249 src/login/logind-acl.c
4251 libsystemd_logind_core_la_LIBADD += \
4255 noinst_LTLIBRARIES += \
4256 libsystemd-logind-core.la
4258 systemd_user_sessions_SOURCES = \
4259 src/login/user-sessions.c
4261 systemd_user_sessions_LDADD = \
4262 libsystemd-shared.la
4264 rootlibexec_PROGRAMS += \
4266 systemd-user-sessions
4268 loginctl_SOURCES = \
4269 src/login/loginctl.c \
4270 src/login/sysfs-show.c
4273 libsystemd-internal.la \
4274 libudev-internal.la \
4275 libsystemd-shared.la
4277 rootbin_PROGRAMS += \
4280 dist_bashcompletion_DATA += \
4281 shell-completion/bash/loginctl
4283 dist_zshcompletion_DATA += \
4284 shell-completion/zsh/_loginctl \
4285 shell-completion/zsh/_systemd-inhibit
4287 systemd_inhibit_SOURCES = \
4290 systemd_inhibit_LDADD = \
4291 libsystemd-internal.la \
4292 libsystemd-shared.la
4294 rootbin_PROGRAMS += \
4297 test_login_SOURCES = \
4298 src/libsystemd/sd-login/test-login.c
4300 test_login_LDADD = \
4301 libsystemd-internal.la \
4302 libsystemd-shared.la
4304 test_login_shared_SOURCES = \
4305 src/login/test-login-shared.c
4307 test_login_shared_LDADD = \
4308 libsystemd-internal.la \
4309 libsystemd-shared.la
4311 test_inhibit_SOURCES = \
4312 src/login/test-inhibit.c
4314 test_inhibit_LDADD = \
4315 libsystemd-internal.la \
4316 libsystemd-shared.la
4318 test_login_tables_SOURCES = \
4319 src/login/test-login-tables.c
4321 test_login_tables_LDADD = \
4322 libsystemd-logind-core.la
4333 pam_systemd_la_SOURCES = \
4334 src/login/pam-module.c
4336 pam_systemd_la_CFLAGS = \
4341 pam_systemd_la_LDFLAGS = \
4347 -export-symbols-regex '^pam_sm_.*'
4349 pam_systemd_la_LIBADD = \
4350 libsystemd-capability.la \
4351 libsystemd-internal.la \
4352 libsystemd-shared.la \
4355 pamlib_LTLIBRARIES = \
4358 dist_pamconf_DATA = \
4359 src/login/systemd-user
4362 nodist_systemunit_DATA += \
4363 units/systemd-logind.service \
4364 units/systemd-user-sessions.service
4366 dist_systemunit_DATA += \
4368 units/org.freedesktop.login1.busname
4370 dist_dbussystemservice_DATA += \
4371 src/login/org.freedesktop.login1.service
4373 dist_dbuspolicy_DATA += \
4374 src/login/org.freedesktop.login1.conf
4376 dist_pkgsysconf_DATA += \
4377 src/login/logind.conf
4379 polkitpolicy_files += \
4380 src/login/org.freedesktop.login1.policy
4385 MULTI_USER_TARGET_WANTS += \
4386 systemd-logind.service \
4387 systemd-user-sessions.service
4389 SYSTEM_UNIT_ALIASES += \
4390 systemd-logind.service dbus-org.freedesktop.login1.service
4392 BUSNAMES_TARGET_WANTS += \
4393 org.freedesktop.login1.busname
4395 if ENABLE_MULTI_SEAT_X
4397 systemd_multi_seat_x_SOURCES = \
4398 src/login/multi-seat-x.c
4400 systemd_multi_seat_x_LDADD = \
4401 libsystemd-label.la \
4402 libsystemd-shared.la
4404 rootlibexec_PROGRAMS += \
4405 systemd-multi-seat-x
4409 dist_udevrules_DATA += \
4410 src/login/70-uaccess.rules \
4411 src/login/70-power-switch.rules
4413 nodist_udevrules_DATA += \
4414 src/login/71-seat.rules \
4415 src/login/73-seat-late.rules
4418 src/login/logind-gperf.c \
4419 src/login/71-seat.rules \
4420 src/login/73-seat-late.rules
4423 polkitpolicy_in_files += \
4424 src/login/org.freedesktop.login1.policy.in
4427 src/login/logind-gperf.gperf \
4428 src/login/71-seat.rules.in \
4429 src/login/73-seat-late.rules.in \
4430 units/systemd-logind.service.in \
4431 units/systemd-user-sessions.service.in
4433 # ------------------------------------------------------------------------------
4434 if HAVE_PYTHON_DEVEL
4435 pkgpyexec_LTLIBRARIES = \
4442 _journal_la_SOURCES = \
4443 src/python-systemd/_journal.c
4445 _journal_la_CFLAGS = \
4447 -fvisibility=default \
4448 $(PYTHON_DEVEL_CFLAGS)
4450 _journal_la_LDFLAGS = \
4456 _journal_la_LIBADD = \
4457 $(PYTHON_DEVEL_LIBS) \
4460 id128_la_SOURCES = \
4461 src/python-systemd/id128.c \
4462 src/python-systemd/id128-constants.h \
4463 src/python-systemd/pyutil.c \
4464 src/python-systemd/pyutil.h
4468 -fvisibility=default \
4469 $(PYTHON_DEVEL_CFLAGS) \
4470 -I$(top_builddir)/src/python-systemd
4472 id128_la_LDFLAGS = \
4479 $(PYTHON_DEVEL_LIBS) \
4480 libsystemd-shared.la \
4483 _daemon_la_SOURCES = \
4484 src/python-systemd/_daemon.c \
4485 src/python-systemd/pyutil.c \
4486 src/python-systemd/pyutil.h
4488 _daemon_la_CFLAGS = \
4490 -fvisibility=default \
4491 $(PYTHON_DEVEL_CFLAGS) \
4492 -I$(top_builddir)/src/python-systemd
4494 _daemon_la_LDFLAGS = \
4500 _daemon_la_LIBADD = \
4501 $(PYTHON_DEVEL_LIBS) \
4502 libsystemd-shared.la \
4505 _reader_la_SOURCES = \
4506 src/python-systemd/_reader.c \
4507 src/python-systemd/pyutil.c \
4508 src/python-systemd/pyutil.h
4510 _reader_la_CFLAGS = \
4512 -fvisibility=default \
4513 $(PYTHON_DEVEL_CFLAGS)
4515 _reader_la_LDFLAGS = \
4521 _reader_la_LIBADD = \
4522 $(PYTHON_DEVEL_LIBS) \
4523 libsystemd-shared.la \
4526 login_la_SOURCES = \
4527 src/python-systemd/login.c \
4528 src/python-systemd/pyutil.c \
4529 src/python-systemd/pyutil.h
4533 -fvisibility=default \
4534 $(PYTHON_DEVEL_CFLAGS)
4536 login_la_LDFLAGS = \
4543 $(PYTHON_DEVEL_LIBS) \
4544 libsystemd-shared.la \
4547 dist_pkgpyexec_PYTHON = \
4548 src/python-systemd/journal.py \
4549 src/python-systemd/daemon.py \
4550 src/python-systemd/__init__.py
4552 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4553 $(AM_V_at)$(MKDIR_P) $(dir $@)
4554 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4557 src/python-systemd/id128-constants.h
4559 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4561 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4562 $(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/
4563 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4566 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4567 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4570 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4571 $(MAKE) DESTDIR="$$dir" install && \
4572 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4577 CLEAN_LOCAL_HOOKS += clean-sphinx
4579 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4582 -rm -rf docs/html/python-systemd/
4584 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4586 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4587 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4589 # ------------------------------------------------------------------------------
4590 if ENABLE_COMPAT_LIBS
4592 src/compat-libs/linkwarning.h
4594 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4595 $(AM_V_at)$(MKDIR_P) $(dir $@)
4596 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4599 libsystemd-journal.c \
4600 libsystemd-login.c \
4601 libsystemd-id128.c \
4604 libsystemd_journal_la_SOURCES = \
4605 libsystemd-journal.c \
4606 src/compat-libs/libsystemd-journal.sym
4608 libsystemd_journal_la_CPPFLAGS = \
4610 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4612 libsystemd_journal_la_LDFLAGS = \
4614 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4615 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
4617 libsystemd_journal_la_LIBADD = \
4618 libsystemd-journal-internal.la \
4619 libsystemd-internal.la \
4620 libsystemd-shared.la
4622 libsystemd_login_la_SOURCES = \
4623 libsystemd-login.c \
4624 src/compat-libs/libsystemd-login.sym
4626 libsystemd_login_la_CPPFLAGS = \
4628 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4630 libsystemd_login_la_LDFLAGS = \
4632 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4633 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
4635 libsystemd_login_la_LIBADD = \
4636 libsystemd-internal.la \
4637 libsystemd-shared.la
4639 libsystemd_id128_la_SOURCES = \
4640 libsystemd-id128.c \
4641 src/compat-libs/libsystemd-id128.sym
4643 libsystemd_id128_la_CPPFLAGS = \
4645 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4647 libsystemd_id128_la_LDFLAGS = \
4649 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
4650 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
4652 libsystemd_id128_la_LIBADD = \
4653 libsystemd-internal.la \
4654 libsystemd-shared.la
4656 libsystemd_daemon_la_SOURCES = \
4657 libsystemd-daemon.c \
4658 src/compat-libs/libsystemd-daemon.sym
4660 libsystemd_daemon_la_CPPFLAGS = \
4662 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4664 libsystemd_daemon_la_LDFLAGS = \
4666 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
4667 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
4669 libsystemd_daemon_la_LIBADD = \
4670 libsystemd-internal.la \
4671 libsystemd-shared.la
4673 lib_LTLIBRARIES += \
4674 libsystemd-journal.la \
4675 libsystemd-login.la \
4676 libsystemd-id128.la \
4677 libsystemd-daemon.la
4679 pkgconfiglib_DATA += \
4680 src/compat-libs/libsystemd-journal.pc \
4681 src/compat-libs/libsystemd-login.pc \
4682 src/compat-libs/libsystemd-id128.pc \
4683 src/compat-libs/libsystemd-daemon.pc
4685 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4686 compat-lib-install-hook:
4687 libname=libsystemd-login.so && $(move-to-rootlibdir)
4688 libname=libsystemd-journal.so && $(move-to-rootlibdir)
4689 libname=libsystemd-id128.so && $(move-to-rootlibdir)
4690 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
4692 compat-lib-uninstall-hook:
4693 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4694 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
4695 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
4696 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
4698 INSTALL_EXEC_HOOKS += compat-lib-install-hook
4699 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
4703 src/compat-libs/libsystemd-journal.pc.in \
4704 src/compat-libs/libsystemd-login.pc.in \
4705 src/compat-libs/libsystemd-id128.pc.in \
4706 src/compat-libs/libsystemd-daemon.pc.in
4708 # ------------------------------------------------------------------------------
4710 '|rootlibexecdir=$(rootlibexecdir)|' \
4711 '|rootbindir=$(rootbindir)|' \
4712 '|bindir=$(bindir)|' \
4713 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4714 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4715 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4716 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4717 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4718 '|pkgdatadir=$(pkgdatadir)|' \
4719 '|systemunitdir=$(systemunitdir)|' \
4720 '|userunitdir=$(userunitdir)|' \
4721 '|systempresetdir=$(systempresetdir)|' \
4722 '|userpresetdir=$(userpresetdir)|' \
4723 '|udevhwdbdir=$(udevhwdbdir)|' \
4724 '|udevrulesdir=$(udevrulesdir)|' \
4725 '|catalogdir=$(catalogdir)|' \
4726 '|tmpfilesdir=$(tmpfilesdir)|' \
4727 '|sysctldir=$(sysctldir)|' \
4728 '|systemgeneratordir=$(systemgeneratordir)|' \
4729 '|usergeneratordir=$(usergeneratordir)|' \
4730 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4731 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4732 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4733 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4734 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4735 '|prefix=$(prefix)|' \
4736 '|exec_prefix=$(exec_prefix)|' \
4737 '|libdir=$(libdir)|' \
4738 '|includedir=$(includedir)|' \
4739 '|VERSION=$(VERSION)|' \
4740 '|rootprefix=$(rootprefix)|' \
4741 '|udevlibexecdir=$(udevlibexecdir)|' \
4742 '|SUSHELL=$(SUSHELL)|' \
4743 '|DEBUGTTY=$(DEBUGTTY)|' \
4746 '|MKDIR_P=$(MKDIR_P)|' \
4747 '|QUOTAON=$(QUOTAON)|' \
4748 '|QUOTACHECK=$(QUOTACHECK)|' \
4749 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4750 '|VARLOGDIR=$(varlogdir)|' \
4751 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4752 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4753 '|PYTHON=$(PYTHON)|' \
4754 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4757 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4758 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4767 sysctl.d/%: sysctl.d/%.in
4773 src/core/macros.%: src/core/macros.%.in
4776 src/%.policy.in: src/%.policy.in.in
4784 $(AM_V_GEN)chmod +x $@
4786 src/%.c: src/%.gperf
4787 $(AM_V_at)$(MKDIR_P) $(dir $@)
4788 $(AM_V_GPERF)$(GPERF) < $< > $@
4791 $(AM_V_at)$(MKDIR_P) $(dir $@)
4792 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4795 $(AM_V_at)$(MKDIR_P) $(dir $@)
4796 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4798 units/user/%: units/%.m4
4799 $(AM_V_at)$(MKDIR_P) $(dir $@)
4800 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4803 nodist_polkitpolicy_DATA = \
4804 $(polkitpolicy_files) \
4805 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4809 $(polkitpolicy_in_files) \
4810 $(polkitpolicy_in_in_files)
4813 $(nodist_systemunit_DATA) \
4814 $(nodist_userunit_DATA) \
4815 $(pkgconfigdata_DATA) \
4816 $(pkgconfiglib_DATA) \
4817 $(nodist_polkitpolicy_DATA)
4819 # ------------------------------------------------------------------------------
4821 man/custom-entities.ent: configure.ac
4822 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4823 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4824 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
4828 man/custom-entities.ent
4833 --stringparam man.output.quietly 1 \
4834 --stringparam funcsynopsis.style ansi \
4835 --stringparam man.authors.section.enabled 0 \
4836 --stringparam man.copyright.section.enabled 0 \
4837 --stringparam systemd.version $(VERSION) \
4838 --path '$(builddir)/man:$(srcdir)/man'
4840 XSLTPROC_PROCESS_MAN = \
4841 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4843 XSLTPROC_PROCESS_HTML = \
4844 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4846 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4847 $(XSLTPROC_PROCESS_MAN)
4849 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4850 $(XSLTPROC_PROCESS_MAN)
4852 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4853 $(XSLTPROC_PROCESS_MAN)
4855 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4856 $(XSLTPROC_PROCESS_MAN)
4858 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4859 $(XSLTPROC_PROCESS_MAN)
4861 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4862 $(XSLTPROC_PROCESS_HTML)
4865 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4871 man/custom-html.xsl \
4874 # ------------------------------------------------------------------------------
4877 docs/sysvinit/README
4882 docs/sysvinit/README: docs/sysvinit/README.in
4885 docs/var-log/README: docs/var-log/README.in
4889 docs/sysvinit/README \
4894 docs/sysvinit/README.in \
4895 docs/var-log/README.in
4897 SOCKETS_TARGET_WANTS += \
4898 systemd-initctl.socket \
4899 systemd-shutdownd.socket
4902 RUNLEVEL1_TARGET_WANTS += \
4903 systemd-update-utmp-runlevel.service
4904 RUNLEVEL2_TARGET_WANTS += \
4905 systemd-update-utmp-runlevel.service
4906 RUNLEVEL3_TARGET_WANTS += \
4907 systemd-update-utmp-runlevel.service
4908 RUNLEVEL4_TARGET_WANTS += \
4909 systemd-update-utmp-runlevel.service
4910 RUNLEVEL5_TARGET_WANTS += \
4911 systemd-update-utmp-runlevel.service
4913 SYSINIT_TARGET_WANTS += \
4914 systemd-update-utmp.service
4915 LOCAL_FS_TARGET_WANTS += \
4916 systemd-remount-fs.service \
4918 MULTI_USER_TARGET_WANTS += \
4920 systemd-ask-password-wall.path
4921 SYSINIT_TARGET_WANTS += \
4922 dev-hugepages.mount \
4924 sys-kernel-config.mount \
4925 sys-kernel-debug.mount \
4926 sys-fs-fuse-connections.mount \
4927 systemd-sysctl.service \
4928 systemd-ask-password-console.path
4931 SYSTEM_UNIT_ALIASES += \
4932 poweroff.target runlevel0.target \
4933 rescue.target runlevel1.target \
4934 multi-user.target runlevel2.target \
4935 multi-user.target runlevel3.target \
4936 multi-user.target runlevel4.target \
4937 graphical.target runlevel5.target \
4938 reboot.target runlevel6.target
4941 SYSTEM_UNIT_ALIASES += \
4942 graphical.target default.target \
4943 reboot.target ctrl-alt-del.target \
4944 getty@.service autovt@.service
4946 USER_UNIT_ALIASES += \
4947 $(systemunitdir)/shutdown.target shutdown.target \
4948 $(systemunitdir)/sockets.target sockets.target \
4949 $(systemunitdir)/busnames.target busnames.target \
4950 $(systemunitdir)/timers.target timers.target \
4951 $(systemunitdir)/paths.target paths.target \
4952 $(systemunitdir)/bluetooth.target bluetooth.target \
4953 $(systemunitdir)/printer.target printer.target \
4954 $(systemunitdir)/sound.target sound.target \
4955 $(systemunitdir)/smartcard.target smartcard.target
4957 GENERAL_ALIASES += \
4958 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4959 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4960 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4961 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4965 $(systemunitdir)/runlevel1.target.wants \
4966 $(systemunitdir)/runlevel2.target.wants \
4967 $(systemunitdir)/runlevel3.target.wants \
4968 $(systemunitdir)/runlevel4.target.wants \
4969 $(systemunitdir)/runlevel5.target.wants
4973 $(prefix)/lib/modules-load.d \
4974 $(sysconfdir)/modules-load.d \
4975 $(prefix)/lib/systemd/network \
4976 $(sysconfdir)/systemd/network \
4977 $(prefix)/lib/sysctl.d \
4978 $(sysconfdir)/sysctl.d \
4979 $(prefix)/lib/kernel/install.d \
4980 $(sysconfdir)/kernel/install.d \
4981 $(systemshutdowndir) \
4983 $(systemgeneratordir) \
4984 $(usergeneratordir) \
4987 $(pkgsysconfdir)/system \
4988 $(pkgsysconfdir)/system/multi-user.target.wants \
4989 $(pkgsysconfdir)/system/getty.target.wants \
4990 $(pkgsysconfdir)/user \
4991 $(dbussessionservicedir) \
4992 $(sysconfdir)/xdg/systemd
4994 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4996 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4998 install-data-hook: $(INSTALL_DATA_HOOKS)
5000 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5002 clean-local: $(CLEAN_LOCAL_HOOKS)
5003 rm -rf $(abs_srcdir)/install-tree
5004 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5005 $(abs_srcdir)/hwdb/iab.txt
5007 DISTCHECK_CONFIGURE_FLAGS = \
5008 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5009 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5010 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5011 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5012 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5013 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5014 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5015 --with-rootprefix=$$dc_install_base \
5016 --disable-split-usr \
5018 --enable-compat-libs
5021 DISTCHECK_CONFIGURE_FLAGS += \
5022 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5023 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5025 DISTCHECK_CONFIGURE_FLAGS += \
5026 --with-sysvinit-path= \
5027 --with-sysvrcnd-path=
5031 DISTCHECK_CONFIGURE_FLAGS += \
5035 # check "broken" platforms limited toolchains for link breakage before we release
5038 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5042 ( cd $(top_srcdir)/hwdb && \
5043 wget -N http://www.linux-usb.org/usb.ids \
5044 http://pci-ids.ucw.cz/v2.2/pci.ids \
5045 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5046 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5049 .PHONY: kdbus-update
5051 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5052 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5056 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5058 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5060 upload: all check dist
5061 scp systemd-$(VERSION).tar.xz $(www_target)
5064 doc-sync: all destdir-sphinx
5065 gtkdoc-rebase --html-dir=docs/libudev/html --online
5066 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5067 gtkdoc-rebase --html-dir=docs/gudev/html --online
5068 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5069 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5070 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5074 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5075 scp man/*.html tango:public/systemd-man/
5077 .PHONY: install-tree
5079 rm -rf $(abs_srcdir)/install-tree
5080 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5081 tree $(abs_srcdir)/install-tree
5083 # Let's run all tests of the test suite, but under valgrind. Let's
5084 # exclude the one perl script we have in there
5085 .PHONY: valgrind-tests
5086 valgrind-tests: $(TESTS)
5087 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5088 if file $$f | grep -q shell; then \
5089 echo -e "$${x}Skipping non-binary $$f"; else \
5090 echo -e "$${x}Running $$f"; \
5091 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5096 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5098 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5099 $(AM_V_GEN)cat $^ > $@
5101 .PHONY: check-api-docs
5102 check-api-docs: exported man
5103 $(AM_V_GEN)for symbol in `cat exported` ; do \
5104 if test -f $(builddir)/man/$$symbol.html ; then \
5105 echo " Symbol $$symbol() is documented." ; \
5107 echo "‣ Symbol $$symbol() lacks documentation." ; \
5111 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5112 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5114 undefined defined: $(ALL_OBJECTS)
5115 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5116 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5117 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5123 .PHONY: check-api-unused
5124 check-api-unused: defined undefined exported
5125 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5127 .PHONY: check-includes
5128 check-includes: $(top_srcdir)/tools/check-includes.pl
5129 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5130 | xargs $(top_srcdir)/tools/check-includes.pl
5133 $(top_srcdir)/tools/check-includes.pl
5135 # Stupid test that everything purported to be exported really is
5136 define generate-sym-test
5137 $(AM_V_at)$(MKDIR_P) $(dir $@)
5138 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5139 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5140 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5141 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5142 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5143 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5144 $(AM_V_at)printf 'return 0; }\n' >> $@
5147 test-libsystemd-sym.c: \
5148 $(top_builddir)/src/libsystemd/libsystemd.sym \
5149 src/systemd/sd-journal.h \
5150 src/systemd/sd-daemon.h \
5151 src/systemd/sd-login.h \
5152 src/systemd/sd-bus.h \
5153 src/systemd/sd-utf8.h
5154 $(generate-sym-test)
5156 test-libudev-sym.c: \
5157 src/libudev/libudev.sym \
5159 $(generate-sym-test)
5161 test_libsystemd_sym_SOURCES = \
5162 test-libsystemd-sym.c
5163 test_libsystemd_sym_LDADD = \
5166 test_libudev_sym_SOURCES = \
5168 test_libudev_sym_CFLAGS = \
5170 -Wno-deprecated-declarations
5171 test_libudev_sym_LDADD = \
5175 $(test_libsystemd_sym_SOURCES) \
5176 $(test_libudev_sym_SOURCES)
5179 test-libsystemd-sym \
5182 if ENABLE_COMPAT_LIBS
5183 test-libsystemd-daemon-sym.c: \
5184 src/compat-libs/libsystemd-daemon.sym \
5185 src/systemd/sd-daemon.h
5186 $(generate-sym-test)
5188 test-libsystemd-id128-sym.c: \
5189 src/compat-libs/libsystemd-id128.sym \
5190 src/systemd/sd-id128.h
5191 $(generate-sym-test)
5193 test-libsystemd-journal-sym.c: \
5194 src/compat-libs/libsystemd-journal.sym \
5195 src/systemd/sd-journal.h
5196 $(generate-sym-test)
5198 test-libsystemd-login-sym.c: \
5199 src/compat-libs/libsystemd-login.sym \
5200 src/systemd/sd-login.h
5201 $(generate-sym-test)
5203 test_libsystemd_daemon_sym_SOURCES = \
5204 test-libsystemd-daemon-sym.c
5205 test_libsystemd_daemon_sym_LDADD = \
5206 libsystemd-daemon.la
5208 test_libsystemd_id128_sym_SOURCES = \
5209 test-libsystemd-id128-sym.c
5210 test_libsystemd_id128_sym_LDADD = \
5213 test_libsystemd_journal_sym_SOURCES = \
5214 test-libsystemd-journal-sym.c
5215 test_libsystemd_journal_sym_LDADD = \
5216 libsystemd-journal.la
5218 test_libsystemd_login_sym_SOURCES = \
5219 test-libsystemd-login-sym.c
5220 test_libsystemd_login_sym_LDADD = \
5224 $(test_libsystemd_journal_sym_SOURCES) \
5225 $(test_libsystemd_login_sym_SOURCES) \
5226 $(test_libsystemd_id128_sym_SOURCES) \
5227 $(test_libsystemd_daemon_sym_SOURCES)
5230 test-libsystemd-journal-sym \
5231 test-libsystemd-login-sym \
5232 test-libsystemd-id128-sym \
5233 test-libsystemd-daemon-sym
5238 cppcheck --enable=all -q $(top_srcdir)
5240 # Used to extract compile flags for YCM.
5245 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u