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/timesync \
191 -I $(top_srcdir)/src/systemd \
192 -I $(top_builddir)/src/core \
193 -I $(top_srcdir)/src/core \
194 -I $(top_srcdir)/src/libudev \
195 -I $(top_srcdir)/src/udev \
196 -I $(top_srcdir)/src/udev/net \
197 -I $(top_builddir)/src/udev \
198 -I $(top_srcdir)/src/libsystemd/sd-bus \
199 -I $(top_srcdir)/src/libsystemd/sd-event \
200 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
201 -I $(top_srcdir)/src/libsystemd-network \
204 AM_CFLAGS = $(OUR_CFLAGS)
205 AM_LDFLAGS = $(OUR_LDFLAGS)
207 # ------------------------------------------------------------------------------
208 define move-to-rootlibdir
209 if test "$(libdir)" != "$(rootlibdir)"; then \
210 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
211 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
212 rm -f $(DESTDIR)$(libdir)/$$libname && \
213 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
214 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
220 RUNLEVEL1_TARGET_WANTS =
221 RUNLEVEL2_TARGET_WANTS =
222 RUNLEVEL3_TARGET_WANTS =
223 RUNLEVEL4_TARGET_WANTS =
224 RUNLEVEL5_TARGET_WANTS =
225 SHUTDOWN_TARGET_WANTS =
226 LOCAL_FS_TARGET_WANTS =
227 MULTI_USER_TARGET_WANTS =
228 SYSINIT_TARGET_WANTS =
229 SOCKETS_TARGET_WANTS =
230 BUSNAMES_TARGET_WANTS =
231 TIMERS_TARGET_WANTS =
232 USER_SOCKETS_TARGET_WANTS =
233 USER_BUSNAMES_TARGET_WANTS =
235 SYSTEM_UNIT_ALIASES =
239 install-target-wants-hook:
240 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
241 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
242 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
243 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
244 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
245 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
246 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
247 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
248 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
249 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
254 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
257 [ -z "$$what" ] || ( \
258 dir=$(DESTDIR)$$dir/$$wants.wants && \
259 $(MKDIR_P) -m 0755 $$dir && \
262 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
265 install-directories-hook:
266 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
268 install-aliases-hook:
269 set -- $(SYSTEM_UNIT_ALIASES) && \
270 dir=$(systemunitdir) && $(install-aliases)
271 set -- $(USER_UNIT_ALIASES) && \
272 dir=$(userunitdir) && $(install-relative-aliases)
273 set -- $(GENERAL_ALIASES) && \
274 dir= && $(install-relative-aliases)
276 define install-aliases
277 while [ -n "$$1" ]; do \
278 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
279 rm -f $(DESTDIR)$$dir/$$2 && \
280 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
281 shift 2 || exit $$?; \
285 define install-relative-aliases
286 while [ -n "$$1" ]; do \
287 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
288 rm -f $(DESTDIR)$$dir/$$2 && \
289 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
290 shift 2 || exit $$?; \
294 INSTALL_EXEC_HOOKS += \
295 install-target-wants-hook \
296 install-directories-hook \
299 # ------------------------------------------------------------------------------
300 AM_V_M4 = $(AM_V_M4_$(V))
301 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
302 AM_V_M4_0 = @echo " M4 " $@;
304 AM_V_XSLT = $(AM_V_XSLT_$(V))
305 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
306 AM_V_XSLT_0 = @echo " XSLT " $@;
308 AM_V_GPERF = $(AM_V_GPERF_$(V))
309 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
310 AM_V_GPERF_0 = @echo " GPERF " $@;
312 AM_V_LN = $(AM_V_LN_$(V))
313 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
314 AM_V_LN_0 = @echo " LN " $@;
316 AM_V_RM = $(AM_V_RM_$(V))
317 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
318 AM_V_RM_0 = @echo " RM " $@;
320 # ------------------------------------------------------------------------------
324 systemd-ask-password \
325 systemd-tty-ask-password-agent \
326 systemd-machine-id-setup
332 systemd-detect-virt \
338 src/kernel-install/kernel-install
340 dist_kernelinstall_SCRIPTS = \
341 src/kernel-install/50-depmod.install \
342 src/kernel-install/90-loaderentry.install
344 rootlibexec_PROGRAMS = \
346 systemd-cgroups-agent \
348 systemd-update-utmp \
352 systemd-reply-password \
358 systemd-socket-proxyd
360 systemgenerator_PROGRAMS = \
361 systemd-getty-generator \
362 systemd-fstab-generator \
363 systemd-system-update-generator
365 dist_bashcompletion_DATA = \
366 shell-completion/bash/busctl \
367 shell-completion/bash/journalctl \
368 shell-completion/bash/systemctl \
369 shell-completion/bash/systemd-analyze \
370 shell-completion/bash/systemd-cat \
371 shell-completion/bash/systemd-cgls \
372 shell-completion/bash/systemd-cgtop \
373 shell-completion/bash/systemd-delta \
374 shell-completion/bash/systemd-detect-virt \
375 shell-completion/bash/systemd-nspawn \
376 shell-completion/bash/systemd-run \
377 shell-completion/bash/udevadm \
378 shell-completion/bash/kernel-install
380 dist_zshcompletion_DATA = \
381 shell-completion/zsh/_systemctl \
382 shell-completion/zsh/_journalctl \
383 shell-completion/zsh/_udevadm \
384 shell-completion/zsh/_kernel-install \
385 shell-completion/zsh/_systemd-nspawn \
386 shell-completion/zsh/_systemd-analyze \
387 shell-completion/zsh/_systemd-run \
388 shell-completion/zsh/_sd_hosts_or_user_at_host \
389 shell-completion/zsh/_systemd-delta \
390 shell-completion/zsh/_systemd
393 sysctl.d/50-default.conf
395 dist_systemunit_DATA = \
396 units/graphical.target \
397 units/multi-user.target \
398 units/emergency.service \
399 units/emergency.target \
400 units/sysinit.target \
405 units/local-fs.target \
406 units/local-fs-pre.target \
407 units/initrd.target \
408 units/initrd-fs.target \
409 units/initrd-root-fs.target \
410 units/remote-fs.target \
411 units/remote-fs-pre.target \
412 units/network.target \
413 units/network-online.target \
414 units/nss-lookup.target \
415 units/nss-user-lookup.target \
416 units/hibernate.target \
417 units/hybrid-sleep.target \
418 units/poweroff.target \
419 units/reboot.target \
420 units/rescue.target \
421 units/rpcbind.target \
422 units/time-sync.target \
423 units/shutdown.target \
425 units/umount.target \
426 units/sigpwr.target \
428 units/sockets.target \
429 units/busnames.target \
430 units/timers.target \
432 units/suspend.target \
434 units/slices.target \
437 units/systemd-initctl.socket \
438 units/systemd-shutdownd.socket \
439 units/syslog.socket \
440 units/dev-hugepages.mount \
441 units/dev-mqueue.mount \
442 units/sys-kernel-config.mount \
443 units/sys-kernel-debug.mount \
444 units/sys-fs-fuse-connections.mount \
446 units/printer.target \
448 units/bluetooth.target \
449 units/smartcard.target \
450 units/systemd-ask-password-wall.path \
451 units/systemd-ask-password-console.path \
452 units/systemd-udevd-control.socket \
453 units/systemd-udevd-kernel.socket \
454 units/system-update.target \
455 units/initrd-switch-root.target
457 nodist_systemunit_DATA = \
458 units/getty@.service \
459 units/serial-getty@.service \
460 units/console-shell.service \
461 units/console-getty.service \
462 units/container-getty@.service \
463 units/systemd-initctl.service \
464 units/systemd-shutdownd.service \
465 units/systemd-remount-fs.service \
466 units/systemd-update-utmp.service \
467 units/systemd-update-utmp-runlevel.service \
468 units/systemd-ask-password-wall.service \
469 units/systemd-ask-password-console.service \
470 units/systemd-sysctl.service \
471 units/emergency.service \
472 units/rescue.service \
473 units/user@.service \
474 units/systemd-hibernate.service \
475 units/systemd-hybrid-sleep.service \
476 units/systemd-suspend.service \
477 units/systemd-halt.service \
478 units/systemd-poweroff.service \
479 units/systemd-reboot.service \
480 units/systemd-kexec.service \
481 units/systemd-fsck@.service \
482 units/systemd-fsck-root.service \
483 units/systemd-udevd.service \
484 units/systemd-udev-trigger.service \
485 units/systemd-udev-settle.service \
486 units/debug-shell.service \
487 units/initrd-parse-etc.service \
488 units/initrd-cleanup.service \
489 units/initrd-udevadm-cleanup-db.service \
490 units/initrd-switch-root.service \
491 units/systemd-nspawn@.service
493 dist_userunit_DATA = \
494 units/user/basic.target \
495 units/user/default.target \
496 units/user/exit.target
498 nodist_userunit_DATA = \
499 units/user/systemd-exit.service
502 units/getty@.service.m4 \
503 units/serial-getty@.service.m4 \
504 units/console-shell.service.m4.in \
505 units/console-getty.service.m4.in \
506 units/container-getty@.service.m4.in \
507 units/rescue.service.m4.in \
508 units/systemd-initctl.service.in \
509 units/systemd-shutdownd.service.in \
510 units/systemd-remount-fs.service.in \
511 units/systemd-update-utmp.service.in \
512 units/systemd-update-utmp-runlevel.service.in \
513 units/systemd-ask-password-wall.service.in \
514 units/systemd-ask-password-console.service.in \
515 units/systemd-sysctl.service.in \
516 units/emergency.service.in \
517 units/systemd-halt.service.in \
518 units/systemd-poweroff.service.in \
519 units/systemd-reboot.service.in \
520 units/systemd-kexec.service.in \
521 units/user/systemd-exit.service.in \
522 units/systemd-fsck@.service.in \
523 units/systemd-fsck-root.service.in \
524 units/user@.service.in \
525 units/debug-shell.service.in \
526 units/systemd-hibernate.service.in \
527 units/systemd-hybrid-sleep.service.in \
528 units/systemd-suspend.service.in \
529 units/quotaon.service.in \
530 units/initrd-parse-etc.service.in \
531 units/initrd-cleanup.service.in \
532 units/initrd-udevadm-cleanup-db.service.in \
533 units/initrd-switch-root.service.in \
534 units/systemd-nspawn@.service.in
537 units/console-shell.service.m4 \
538 units/console-getty.service.m4 \
539 units/container-getty@.service.m4 \
540 units/rescue.service.m4 \
541 units/user@.service.m4
544 nodist_systemunit_DATA += \
545 units/rc-local.service \
546 units/halt-local.service
548 systemgenerator_PROGRAMS += \
549 systemd-rc-local-generator
553 units/rc-local.service.in \
554 units/halt-local.service.in
556 # automake is broken and can't handle files with a dash in front
557 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
559 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
561 units-uninstall-hook:
562 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
564 INSTALL_DATA_HOOKS += units-install-hook
565 UNINSTALL_DATA_HOOKS += units-uninstall-hook
574 src/libsystemd/sd-bus/PORTING-DBUS1 \
575 src/libsystemd/sd-bus/DIFFERENCES \
576 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
578 @INTLTOOL_POLICY_RULE@
580 # ------------------------------------------------------------------------------
585 include Makefile-man.am
587 .PHONY: man update-man-list
588 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
591 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
593 ${XML_FILES:.xml=.html}
595 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
612 $(AM_V_at)$(MKDIR_P) $(dir $@)
613 $(AM_V_LN)$(LN_S) -f ../../man $@
622 man/index.html: man/systemd.index.html
623 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
631 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
632 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
633 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
635 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
636 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
637 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
638 @echo "Makefile-man.am has been regenerated"
640 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
641 $(AM_V_at)$(MKDIR_P) $(dir $@)
642 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
644 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
645 $(AM_V_at)$(MKDIR_P) $(dir $@)
646 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
649 man/systemd.index.xml \
651 man/systemd.directives.xml
654 man/systemd.index.xml \
655 man/systemd.directives.xml
666 tools/make-man-index.py \
667 tools/make-directive-index.py \
668 tools/make-man-rules.py \
671 # ------------------------------------------------------------------------------
672 noinst_LTLIBRARIES += \
675 libsystemd_shared_la_SOURCES = \
676 src/shared/linux/auto_dev-ioctl.h \
677 src/shared/linux/fanotify.h \
678 src/shared/ioprio.h \
679 src/shared/missing.h \
680 src/shared/initreq.h \
681 src/shared/securebits.h \
682 src/shared/special.h \
686 src/shared/sparse-endian.h \
687 src/shared/refcnt.h \
688 src/shared/udev-util.h \
689 src/shared/bus-errors.h \
690 src/shared/device-nodes.c \
691 src/shared/device-nodes.h \
696 src/shared/architecture.c \
697 src/shared/architecture.h \
698 src/shared/efivars.c \
699 src/shared/efivars.h \
700 src/shared/path-util.c \
701 src/shared/path-util.h \
702 src/shared/time-util.c \
703 src/shared/time-util.h \
704 src/shared/hashmap.c \
705 src/shared/hashmap.h \
706 src/shared/siphash24.c \
707 src/shared/siphash24.h \
714 src/shared/sleep-config.c \
715 src/shared/sleep-config.h \
718 src/shared/env-util.c \
719 src/shared/env-util.h \
720 src/shared/strbuf.c \
721 src/shared/strbuf.h \
722 src/shared/strxcpyx.c \
723 src/shared/strxcpyx.h \
724 src/shared/conf-parser.c \
725 src/shared/conf-parser.h \
728 src/shared/ratelimit.h \
729 src/shared/ratelimit.c \
730 src/shared/exit-status.c \
731 src/shared/exit-status.h \
734 src/shared/gunicode.c \
735 src/shared/gunicode.h \
738 src/shared/socket-util.c \
739 src/shared/socket-util.h \
740 src/shared/conf-files.c \
741 src/shared/conf-files.h \
742 src/shared/cgroup-util.c \
743 src/shared/cgroup-util.h \
744 src/shared/cgroup-show.c \
745 src/shared/cgroup-show.h \
746 src/shared/unit-name.c \
747 src/shared/unit-name.h \
748 src/shared/utmp-wtmp.c \
749 src/shared/utmp-wtmp.h \
750 src/shared/watchdog.c \
751 src/shared/watchdog.h \
752 src/shared/spawn-ask-password-agent.c \
753 src/shared/spawn-ask-password-agent.h \
754 src/shared/replace-var.c \
755 src/shared/replace-var.h \
756 src/shared/spawn-polkit-agent.c \
757 src/shared/spawn-polkit-agent.h \
758 src/shared/hwclock.c \
759 src/shared/hwclock.h \
760 src/shared/time-dst.c \
761 src/shared/time-dst.h \
762 src/shared/calendarspec.c \
763 src/shared/calendarspec.h \
764 src/shared/fileio.c \
765 src/shared/fileio.h \
766 src/shared/output-mode.h \
767 src/shared/MurmurHash2.c \
768 src/shared/MurmurHash2.h \
769 src/shared/acpi-fpdt.h \
770 src/shared/acpi-fpdt.c \
771 src/shared/boot-timestamps.h \
772 src/shared/boot-timestamps.c \
775 src/shared/smack-util.c \
776 src/shared/smack-util.h \
777 src/shared/apparmor-util.c \
778 src/shared/apparmor-util.h \
779 src/shared/ima-util.c \
780 src/shared/ima-util.h \
781 src/shared/ptyfwd.c \
782 src/shared/ptyfwd.h \
783 src/shared/errno-list.c \
784 src/shared/errno-list.h \
785 src/shared/af-list.c \
786 src/shared/af-list.h \
791 src/shared/condition-util.c \
792 src/shared/condition-util.h \
793 src/shared/bus-label.c \
794 src/shared/bus-label.h \
796 src/shared/generator.h \
797 src/shared/generator.c \
798 src/shared/clean-ipc.h \
799 src/shared/clean-ipc.c \
800 src/shared/login-shared.c \
801 src/shared/login-shared.h
803 nodist_libsystemd_shared_la_SOURCES = \
804 src/shared/errno-from-name.h \
805 src/shared/errno-to-name.h \
806 src/shared/af-from-name.h \
807 src/shared/af-to-name.h
809 libsystemd_shared_la_CFLAGS = \
813 # ------------------------------------------------------------------------------
814 noinst_LTLIBRARIES += \
817 libsystemd_units_la_SOURCES = \
818 src/shared/install.c \
819 src/shared/install.h \
820 src/shared/install-printf.c \
821 src/shared/install-printf.h \
822 src/shared/path-lookup.c \
823 src/shared/path-lookup.h \
824 src/shared/specifier.c \
825 src/shared/specifier.h
827 # ------------------------------------------------------------------------------
828 noinst_LTLIBRARIES += \
831 libsystemd_label_la_SOURCES = \
832 src/shared/socket-label.c \
835 src/shared/selinux-util.c \
836 src/shared/selinux-util.h \
837 src/shared/mkdir-label.c \
838 src/shared/ask-password-api.c \
839 src/shared/ask-password-api.h \
840 src/shared/fileio-label.c \
841 src/shared/fileio-label.h \
842 src/shared/dev-setup.c \
843 src/shared/dev-setup.h
845 libsystemd_label_la_CFLAGS = \
849 libsystemd_label_la_LIBADD = \
852 # ------------------------------------------------------------------------------
855 noinst_LTLIBRARIES += \
856 libsystemd-seccomp.la
858 libsystemd_seccomp_la_SOURCES = \
859 src/shared/seccomp-util.h \
860 src/shared/seccomp-util.c
862 libsystemd_seccomp_la_CFLAGS = \
866 libsystemd_seccomp_la_LIBADD = \
870 # ------------------------------------------------------------------------------
871 noinst_LTLIBRARIES += \
874 libsystemd_logs_la_SOURCES = \
875 src/shared/logs-show.c \
876 src/shared/logs-show.h
878 # ------------------------------------------------------------------------------
879 noinst_LTLIBRARIES += \
880 libsystemd-capability.la
882 libsystemd_capability_la_SOURCES = \
883 src/shared/capability.c \
884 src/shared/capability.h
886 libsystemd_capability_la_CFLAGS = \
890 libsystemd_capability_la_LIBADD = \
893 # ------------------------------------------------------------------------------
895 noinst_LTLIBRARIES += \
898 libsystemd_acl_la_SOURCES = \
899 src/shared/acl-util.c \
900 src/shared/acl-util.h
902 libsystemd_acl_la_CFLAGS = \
906 libsystemd_acl_la_LIBADD = \
910 # ------------------------------------------------------------------------------
911 noinst_LTLIBRARIES += \
914 libsystemd_core_la_SOURCES = \
917 src/core/unit-printf.c \
918 src/core/unit-printf.h \
923 src/core/transaction.c \
924 src/core/transaction.h \
925 src/core/load-fragment.c \
926 src/core/load-fragment.h \
935 src/core/snapshot.c \
936 src/core/snapshot.h \
941 src/core/automount.c \
942 src/core/automount.h \
953 src/core/load-dropin.c \
954 src/core/load-dropin.h \
961 src/core/dbus-manager.c \
962 src/core/dbus-manager.h \
963 src/core/dbus-unit.c \
964 src/core/dbus-unit.h \
965 src/core/dbus-job.c \
966 src/core/dbus-job.h \
967 src/core/dbus-service.c \
968 src/core/dbus-service.h \
969 src/core/dbus-socket.c \
970 src/core/dbus-socket.h \
971 src/core/dbus-busname.c \
972 src/core/dbus-busname.h \
973 src/core/dbus-target.c \
974 src/core/dbus-target.h \
975 src/core/dbus-snapshot.c \
976 src/core/dbus-snapshot.h \
977 src/core/dbus-device.c \
978 src/core/dbus-device.h \
979 src/core/dbus-mount.c \
980 src/core/dbus-mount.h \
981 src/core/dbus-automount.c \
982 src/core/dbus-automount.h \
983 src/core/dbus-swap.c \
984 src/core/dbus-swap.h \
985 src/core/dbus-timer.c \
986 src/core/dbus-timer.h \
987 src/core/dbus-path.c \
988 src/core/dbus-path.h \
989 src/core/dbus-slice.c \
990 src/core/dbus-slice.h \
991 src/core/dbus-scope.c \
992 src/core/dbus-scope.h \
993 src/core/dbus-execute.c \
994 src/core/dbus-execute.h \
995 src/core/dbus-kill.c \
996 src/core/dbus-kill.h \
997 src/core/dbus-cgroup.c \
998 src/core/dbus-cgroup.h \
1001 src/core/selinux-access.c \
1002 src/core/selinux-access.h \
1003 src/core/selinux-setup.c \
1004 src/core/selinux-setup.h \
1005 src/core/smack-setup.c \
1006 src/core/smack-setup.h \
1007 src/core/ima-setup.c \
1008 src/core/ima-setup.h \
1009 src/core/locale-setup.h \
1010 src/core/locale-setup.c \
1011 src/core/hostname-setup.c \
1012 src/core/hostname-setup.h \
1013 src/core/machine-id-setup.c \
1014 src/core/machine-id-setup.h \
1015 src/core/mount-setup.c \
1016 src/core/mount-setup.h \
1017 src/core/loopback-setup.h \
1018 src/core/loopback-setup.c \
1019 src/core/condition.c \
1020 src/core/condition.h \
1021 src/core/namespace.c \
1022 src/core/namespace.h \
1024 src/core/sysfs-show.h \
1025 src/core/switch-root.h \
1026 src/core/switch-root.c \
1027 src/core/killall.h \
1028 src/core/killall.c \
1029 src/core/audit-fd.c \
1030 src/core/audit-fd.h \
1033 src/core/show-status.c \
1034 src/core/show-status.h
1037 libsystemd_core_la_SOURCES += \
1038 src/core/kmod-setup.c \
1039 src/core/kmod-setup.h
1042 nodist_libsystemd_core_la_SOURCES = \
1043 src/core/load-fragment-gperf.c \
1044 src/core/load-fragment-gperf-nulstr.c
1046 libsystemd_core_la_CFLAGS = \
1052 $(APPARMOR_CFLAGS) \
1056 libsystemd_core_la_LIBADD = \
1057 libsystemd-capability.la \
1058 libsystemd-units.la \
1059 libsystemd-label.la \
1060 libudev-internal.la \
1061 libsystemd-shared.la \
1062 libsystemd-internal.la \
1071 libsystemd_core_la_LIBADD += \
1072 libsystemd-seccomp.la
1075 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1076 $(AM_V_at)$(MKDIR_P) $(dir $@)
1077 $(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 ";" }' < $< > $@
1080 src/core/load-fragment-gperf.gperf.m4
1083 src/core/load-fragment-gperf.gperf \
1084 src/core/load-fragment-gperf.c \
1085 src/core/load-fragment-gperf-nulstr.c \
1086 src/shared/errno-list.txt \
1087 src/shared/errno-from-name.gperf \
1088 src/shared/af-list.txt \
1089 src/shared/af-from-name.gperf
1092 src/shared/errno-from-name.h \
1093 src/shared/errno-to-name.h \
1094 src/shared/af-from-name.h \
1095 src/shared/af-to-name.h
1097 src/shared/errno-list.txt:
1098 $(AM_V_at)$(MKDIR_P) $(dir $@)
1099 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1101 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1102 $(AM_V_at)$(MKDIR_P) $(dir $@)
1103 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1105 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1106 $(AM_V_at)$(MKDIR_P) $(dir $@)
1107 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1109 src/shared/errno-to-name.h: src/shared/errno-list.txt
1110 $(AM_V_at)$(MKDIR_P) $(dir $@)
1111 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1113 src/shared/af-list.txt:
1114 $(AM_V_at)$(MKDIR_P) $(dir $@)
1115 $(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; }' > $@
1117 src/shared/af-from-name.gperf: src/shared/af-list.txt
1118 $(AM_V_at)$(MKDIR_P) $(dir $@)
1119 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1121 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1122 $(AM_V_at)$(MKDIR_P) $(dir $@)
1123 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1125 src/shared/af-to-name.h: src/shared/af-list.txt
1126 $(AM_V_at)$(MKDIR_P) $(dir $@)
1127 $(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 "};"}' < $< > $@
1129 # ------------------------------------------------------------------------------
1138 libsystemd-core.la \
1141 dist_pkgsysconf_DATA += \
1142 src/core/system.conf \
1145 dist_dbuspolicy_DATA += \
1146 src/core/org.freedesktop.systemd1.conf
1148 dist_dbussystemservice_DATA += \
1149 src/core/org.freedesktop.systemd1.service
1151 polkitpolicy_in_in_files += \
1152 src/core/org.freedesktop.systemd1.policy.in.in
1154 pkgconfigdata_DATA = \
1157 nodist_rpmmacros_DATA = \
1158 src/core/macros.systemd
1161 src/core/systemd.pc.in \
1162 src/core/macros.systemd.in
1165 src/core/macros.systemd \
1166 src/core/org.freedesktop.systemd1.policy.in
1168 # ------------------------------------------------------------------------------
1206 test-strip-tab-ansi \
1219 test/sched_idle_bad.service \
1220 test/sched_idle_ok.service \
1221 test/sched_rr_bad.service \
1222 test/sched_rr_ok.service \
1223 test/sched_rr_change.service \
1225 test/daughter.service \
1229 src/test/test-helper.h
1231 test_device_nodes_SOURCES = \
1232 src/test/test-device-nodes.c
1234 test_device_nodes_LDADD = \
1235 libsystemd-shared.la
1237 test_engine_SOURCES = \
1238 src/test/test-engine.c
1240 test_engine_CFLAGS = \
1244 test_engine_LDADD = \
1245 libsystemd-core.la \
1248 test_job_type_SOURCES = \
1249 src/test/test-job-type.c
1251 test_job_type_CFLAGS = \
1255 test_job_type_LDADD = \
1256 libsystemd-core.la \
1269 test_loopback_SOURCES = \
1270 src/test/test-loopback.c
1272 test_loopback_LDADD = \
1275 test_hostname_SOURCES = \
1276 src/test/test-hostname.c
1278 test_hostname_LDADD = \
1285 test_boot_timestamp_SOURCES = \
1286 src/test/test-boot-timestamps.c
1288 test_boot_timestamp_LDADD = \
1289 libsystemd-shared.la
1292 test_unit_name_SOURCES = \
1293 src/test/test-unit-name.c
1295 test_unit_name_CFLAGS = \
1299 test_unit_name_LDADD = \
1300 libsystemd-core.la \
1303 test_unit_file_SOURCES = \
1304 src/test/test-unit-file.c
1306 test_unit_file_CFLAGS = \
1310 test_unit_file_LDADD = \
1311 libsystemd-core.la \
1314 test_utf8_SOURCES = \
1315 src/test/test-utf8.c
1318 libsystemd-shared.la
1320 test_util_SOURCES = \
1321 src/test/test-util.c
1326 test_tmpfiles_SOURCES = \
1327 src/test/test-tmpfiles.c
1329 test_tmpfiles_LDADD = \
1330 libsystemd-shared.la
1332 test_namespace_SOURCES = \
1333 src/test/test-namespace.c
1335 test_namespace_LDADD = \
1338 test_hashmap_SOURCES = \
1339 src/test/test-hashmap.c
1341 test_hashmap_LDADD = \
1344 test_xml_SOURCES = \
1348 libsystemd-shared.la
1350 test_list_SOURCES = \
1351 src/test/test-list.c
1356 test_tables_SOURCES = \
1357 src/test/test-tables.c \
1358 src/shared/test-tables.h
1360 test_tables_CFLAGS = \
1364 test_tables_LDADD = \
1365 libsystemd-logs.la \
1366 libsystemd-journal-internal.la \
1367 libsystemd-core.la \
1370 test_prioq_SOURCES = \
1371 src/test/test-prioq.c
1373 test_prioq_LDADD = \
1376 test_fileio_SOURCES = \
1377 src/test/test-fileio.c
1379 test_fileio_LDADD = \
1382 test_time_SOURCES = \
1383 src/test/test-time.c
1388 test_architecture_SOURCES = \
1389 src/test/test-architecture.c
1391 test_architecture_LDADD = \
1392 libsystemd-shared.la
1394 test_log_SOURCES = \
1400 test_ipcrm_SOURCES = \
1401 src/test/test-ipcrm.c
1403 test_ipcrm_LDADD = \
1404 libsystemd-shared.la \
1407 test_rtnl_manual_SOURCES = \
1408 src/test/test-rtnl-manual.c
1410 test_rtnl_manual_CFLAGS = \
1414 test_rtnl_manual_LDADD = \
1415 libsystemd-internal.la \
1416 libsystemd-shared.la \
1419 test_ellipsize_SOURCES = \
1420 src/test/test-ellipsize.c
1422 test_ellipsize_LDADD = \
1425 test_date_SOURCES = \
1426 src/test/test-date.c
1431 test_sleep_SOURCES = \
1432 src/test/test-sleep.c
1434 test_sleep_LDADD = \
1437 test_replace_var_SOURCES = \
1438 src/test/test-replace-var.c
1440 test_replace_var_LDADD = \
1441 libsystemd-shared.la
1443 test_calendarspec_SOURCES = \
1444 src/test/test-calendarspec.c
1446 test_calendarspec_LDADD = \
1447 libsystemd-shared.la
1449 test_strip_tab_ansi_SOURCES = \
1450 src/test/test-strip-tab-ansi.c
1452 test_strip_tab_ansi_LDADD = \
1453 libsystemd-shared.la
1455 test_daemon_SOURCES = \
1456 src/test/test-daemon.c
1458 test_daemon_LDADD = \
1459 libsystemd-internal.la \
1460 libsystemd-shared.la
1462 test_cgroup_SOURCES = \
1463 src/test/test-cgroup.c
1465 test_cgroup_LDADD = \
1466 libsystemd-label.la \
1467 libsystemd-shared.la \
1468 libsystemd-internal.la
1470 test_cgroup_mask_SOURCES = \
1471 src/test/test-cgroup-mask.c
1473 test_cgroup_mask_CPPFLAGS = \
1475 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1477 test_cgroup_mask_CFLAGS = \
1481 test_cgroup_mask_LDADD = \
1482 libsystemd-core.la \
1485 test_cgroup_util_SOURCES = \
1486 src/test/test-cgroup-util.c
1488 test_cgroup_util_LDADD = \
1489 libsystemd-label.la \
1490 libsystemd-internal.la \
1491 libsystemd-shared.la
1493 test_env_replace_SOURCES = \
1494 src/test/test-env-replace.c
1496 test_env_replace_LDADD = \
1497 libsystemd-shared.la
1499 test_strbuf_SOURCES = \
1500 src/test/test-strbuf.c
1502 test_strbuf_LDADD = \
1503 libsystemd-shared.la
1505 test_strv_SOURCES = \
1506 src/test/test-strv.c
1509 libsystemd-units.la \
1510 libsystemd-internal.la \
1511 libsystemd-shared.la
1513 test_path_util_SOURCES = \
1514 src/test/test-path-util.c
1516 test_path_util_LDADD = \
1517 libsystemd-shared.la
1519 test_strxcpyx_SOURCES = \
1520 src/test/test-strxcpyx.c
1522 test_strxcpyx_LDADD = \
1523 libsystemd-shared.la
1525 test_install_SOURCES = \
1526 src/test/test-install.c
1528 test_install_LDADD = \
1529 libsystemd-units.la \
1530 libsystemd-label.la \
1531 libsystemd-shared.la \
1532 libsystemd-internal.la
1534 test_watchdog_SOURCES = \
1535 src/test/test-watchdog.c
1537 test_watchdog_LDADD = \
1538 libsystemd-shared.la
1540 test_sched_prio_SOURCES = \
1541 src/test/test-sched-prio.c
1543 test_sched_prio_CPPFLAGS = \
1545 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1547 test_sched_prio_CFLAGS = \
1551 test_sched_prio_LDADD = \
1552 libsystemd-core.la \
1555 # ------------------------------------------------------------------------------
1556 ## .PHONY so it always rebuilds it
1557 .PHONY: coverage lcov-run lcov-report coverage-sync
1559 # run lcov from scratch, always
1564 coverage_dir = coverage
1565 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1568 # reset run coverage tests
1570 @rm -rf $(coverage_dir)
1571 lcov $(coverage_opts) --zerocounters
1574 # generate report based on current coverage data
1576 $(MKDIR_P) $(coverage_dir)
1577 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1578 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1579 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1580 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1582 # lcov doesn't work properly with vpath builds, make sure that bad
1583 # output is not uploaded by mistake.
1584 coverage-sync: coverage
1585 test "$(builddir)" = "$(srcdir)"
1586 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1589 lcov-run lcov-report:
1590 echo "Need to reconfigure with --enable-coverage"
1593 # ------------------------------------------------------------------------------
1594 systemd_analyze_SOURCES = \
1595 src/analyze/analyze.c
1597 systemd_analyze_LDADD = \
1598 libsystemd-internal.la \
1599 libsystemd-shared.la
1601 # ------------------------------------------------------------------------------
1602 systemd_initctl_SOURCES = \
1603 src/initctl/initctl.c
1605 systemd_initctl_LDADD = \
1606 libsystemd-internal.la \
1607 libsystemd-shared.la
1609 # ------------------------------------------------------------------------------
1610 systemd_update_utmp_SOURCES = \
1611 src/update-utmp/update-utmp.c
1613 systemd_update_utmp_CFLAGS = \
1617 systemd_update_utmp_LDADD = \
1618 libsystemd-internal.la \
1619 libsystemd-shared.la \
1622 # ------------------------------------------------------------------------------
1623 systemd_shutdownd_SOURCES = \
1624 src/shutdownd/shutdownd.c
1626 systemd_shutdownd_LDADD = \
1627 libsystemd-label.la \
1628 libsystemd-internal.la \
1629 libsystemd-shared.la
1632 src/systemd/sd-shutdown.h
1634 # ------------------------------------------------------------------------------
1635 systemd_shutdown_SOURCES = \
1638 src/core/shutdown.c \
1639 src/core/mount-setup.c \
1640 src/core/mount-setup.h \
1641 src/core/killall.h \
1644 systemd_shutdown_LDADD = \
1645 libsystemd-label.la \
1646 libudev-internal.la \
1647 libsystemd-shared.la
1649 # ------------------------------------------------------------------------------
1651 systemd_modules_load_SOURCES = \
1652 src/modules-load/modules-load.c
1654 systemd_modules_load_CFLAGS = \
1658 systemd_modules_load_LDADD = \
1659 libsystemd-shared.la \
1662 rootlibexec_PROGRAMS += \
1663 systemd-modules-load
1665 nodist_systemunit_DATA += \
1666 units/systemd-modules-load.service
1668 SYSINIT_TARGET_WANTS += \
1669 systemd-modules-load.service
1672 nodist_systemunit_DATA += \
1673 units/kmod-static-nodes.service
1675 SYSINIT_TARGET_WANTS += \
1676 kmod-static-nodes.service
1681 units/systemd-modules-load.service.in \
1682 units/kmod-static-nodes.service.in
1684 # ------------------------------------------------------------------------------
1686 systemd_tmpfiles_SOURCES = \
1687 src/tmpfiles/tmpfiles.c
1689 systemd_tmpfiles_LDADD = \
1690 libsystemd-units.la \
1691 libsystemd-label.la \
1692 libsystemd-capability.la \
1693 libsystemd-internal.la \
1694 libsystemd-shared.la
1696 rootbin_PROGRAMS += \
1699 dist_systemunit_DATA += \
1700 units/systemd-tmpfiles-clean.timer
1702 nodist_systemunit_DATA += \
1703 units/systemd-tmpfiles-setup-dev.service \
1704 units/systemd-tmpfiles-setup.service \
1705 units/systemd-tmpfiles-clean.service
1707 dist_tmpfiles_DATA = \
1708 tmpfiles.d/systemd.conf \
1709 tmpfiles.d/systemd-nologin.conf \
1710 tmpfiles.d/tmp.conf \
1714 dist_tmpfiles_DATA += \
1715 tmpfiles.d/legacy.conf
1718 SYSINIT_TARGET_WANTS += \
1719 systemd-tmpfiles-setup-dev.service \
1720 systemd-tmpfiles-setup.service
1722 dist_zshcompletion_DATA += \
1723 shell-completion/zsh/_systemd-tmpfiles
1725 TIMERS_TARGET_WANTS += \
1726 systemd-tmpfiles-clean.timer
1730 $(sysconfdir)/tmpfiles.d
1734 units/systemd-tmpfiles-setup-dev.service.in \
1735 units/systemd-tmpfiles-setup.service.in \
1736 units/systemd-tmpfiles-clean.service.in
1738 # ------------------------------------------------------------------------------
1739 systemd_machine_id_setup_SOURCES = \
1740 src/machine-id-setup/machine-id-setup-main.c \
1741 src/core/machine-id-setup.c \
1742 src/core/machine-id-setup.h
1744 systemd_machine_id_setup_LDADD = \
1745 libsystemd-label.la \
1746 libsystemd-internal.la \
1747 libsystemd-shared.la
1749 # ------------------------------------------------------------------------------
1750 systemd_sysctl_SOURCES = \
1753 systemd_sysctl_LDADD = \
1754 libsystemd-shared.la
1756 # ------------------------------------------------------------------------------
1757 systemd_sleep_SOURCES = \
1760 systemd_sleep_LDADD = \
1761 libsystemd-shared.la
1763 # ------------------------------------------------------------------------------
1764 systemd_fsck_SOURCES = \
1767 systemd_fsck_LDADD = \
1768 libsystemd-internal.la \
1769 libudev-internal.la \
1770 libsystemd-shared.la
1772 # ------------------------------------------------------------------------------
1773 systemd_ac_power_SOURCES = \
1774 src/ac-power/ac-power.c
1776 systemd_ac_power_LDADD = \
1777 libudev-internal.la \
1778 libsystemd-shared.la
1780 # ------------------------------------------------------------------------------
1781 systemd_detect_virt_SOURCES = \
1782 src/detect-virt/detect-virt.c
1784 systemd_detect_virt_LDADD = \
1785 libsystemd-shared.la
1787 systemd-detect-virt-install-hook:
1788 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1790 INSTALL_EXEC_HOOKS += \
1791 systemd-detect-virt-install-hook
1793 # ------------------------------------------------------------------------------
1794 systemd_delta_SOURCES = \
1797 systemd_delta_LDADD = \
1798 libsystemd-shared.la
1800 # ------------------------------------------------------------------------------
1801 systemd_getty_generator_SOURCES = \
1802 src/getty-generator/getty-generator.c
1804 systemd_getty_generator_LDADD = \
1805 libsystemd-label.la \
1806 libsystemd-shared.la
1808 # ------------------------------------------------------------------------------
1809 systemd_fstab_generator_SOURCES = \
1810 src/fstab-generator/fstab-generator.c \
1811 src/core/mount-setup.c
1813 systemd_fstab_generator_LDADD = \
1814 libsystemd-label.la \
1815 libsystemd-shared.la
1817 # ------------------------------------------------------------------------------
1818 systemd_system_update_generator_SOURCES = \
1819 src/system-update-generator/system-update-generator.c
1821 systemd_system_update_generator_LDADD = \
1822 libsystemd-label.la \
1823 libsystemd-shared.la
1826 # ------------------------------------------------------------------------------
1827 systemgenerator_PROGRAMS += \
1828 systemd-efi-boot-generator
1830 systemd_efi_boot_generator_SOURCES = \
1831 src/efi-boot-generator/efi-boot-generator.c
1833 systemd_efi_boot_generator_LDADD = \
1834 libsystemd-label.la \
1835 libsystemd-shared.la
1837 # ------------------------------------------------------------------------------
1840 src/boot/boot-loader.h \
1841 src/boot/bootctl.c \
1842 src/boot/boot-loader.c \
1846 libsystemd-shared.la \
1847 libsystemd-internal.la
1852 dist_bashcompletion_DATA += \
1853 shell-completion/bash/bootctl
1855 dist_zshcompletion_DATA += \
1856 shell-completion/zsh/_bootctl
1860 # ------------------------------------------------------------------------------
1862 systemgenerator_PROGRAMS += \
1863 systemd-gpt-auto-generator
1865 systemd_gpt_auto_generator_SOURCES = \
1866 src/gpt-auto-generator/gpt-auto-generator.c \
1867 src/shared/blkid-util.h
1869 systemd_gpt_auto_generator_LDADD = \
1870 libsystemd-label.la \
1871 libsystemd-internal.la \
1872 libudev-internal.la \
1873 libsystemd-shared.la \
1876 systemd_gpt_auto_generator_CFLAGS = \
1881 # ------------------------------------------------------------------------------
1883 systemgenerator_PROGRAMS += \
1884 systemd-dbus1-generator
1886 systemd_dbus1_generator_SOURCES = \
1887 src/dbus1-generator/dbus1-generator.c
1889 systemd_dbus1_generator_LDADD = \
1890 libsystemd-label.la \
1891 libsystemd-shared.la \
1892 libsystemd-internal.la
1894 dbus1-generator-install-hook:
1895 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
1896 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1897 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1899 dbus1-generator-uninstall-hook:
1900 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1902 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1903 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1906 # ------------------------------------------------------------------------------
1907 systemd_rc_local_generator_SOURCES = \
1908 src/rc-local-generator/rc-local-generator.c
1910 systemd_rc_local_generator_LDADD = \
1911 libsystemd-label.la \
1912 libsystemd-shared.la
1914 # ------------------------------------------------------------------------------
1915 systemd_remount_fs_SOURCES = \
1916 src/remount-fs/remount-fs.c \
1917 src/core/mount-setup.c \
1918 src/core/mount-setup.h
1920 systemd_remount_fs_LDADD = \
1921 libsystemd-label.la \
1922 libsystemd-shared.la
1924 # ------------------------------------------------------------------------------
1925 systemd_cgroups_agent_SOURCES = \
1926 src/cgroups-agent/cgroups-agent.c
1928 systemd_cgroups_agent_LDADD = \
1929 libsystemd-internal.la \
1930 libsystemd-shared.la
1932 # ------------------------------------------------------------------------------
1933 systemctl_SOURCES = \
1934 src/systemctl/systemctl.c
1937 libsystemd-units.la \
1938 libsystemd-label.la \
1939 libsystemd-internal.la \
1940 libsystemd-logs.la \
1941 libsystemd-journal-internal.la \
1942 libsystemd-shared.la
1944 # ------------------------------------------------------------------------------
1945 systemd_notify_SOURCES = \
1946 src/notify/notify.c \
1947 src/readahead/sd-readahead.c
1949 systemd_notify_LDADD = \
1950 libsystemd-internal.la \
1951 libsystemd-shared.la
1953 # ------------------------------------------------------------------------------
1954 systemd_ask_password_SOURCES = \
1955 src/ask-password/ask-password.c
1957 systemd_ask_password_LDADD = \
1958 libsystemd-label.la \
1959 libsystemd-shared.la
1961 # ------------------------------------------------------------------------------
1962 systemd_reply_password_SOURCES = \
1963 src/reply-password/reply-password.c
1965 systemd_reply_password_LDADD = \
1966 libsystemd-shared.la
1968 # ------------------------------------------------------------------------------
1969 systemd_cgls_SOURCES = \
1972 systemd_cgls_LDADD = \
1973 libsystemd-internal.la \
1974 libsystemd-shared.la
1976 # ------------------------------------------------------------------------------
1977 systemd_cgtop_SOURCES = \
1980 systemd_cgtop_LDADD = \
1981 libsystemd-shared.la
1983 # ------------------------------------------------------------------------------
1984 systemd_nspawn_SOURCES = \
1985 src/nspawn/nspawn.c \
1986 src/core/mount-setup.c \
1987 src/core/mount-setup.h \
1988 src/core/loopback-setup.c \
1989 src/core/loopback-setup.h
1991 systemd_nspawn_CFLAGS = \
1996 systemd_nspawn_LDADD = \
1997 libsystemd-label.la \
1998 libsystemd-capability.la \
1999 libsystemd-internal.la \
2000 libudev-internal.la \
2001 libsystemd-shared.la \
2005 systemd_nspawn_LDADD += \
2006 libsystemd-seccomp.la \
2010 # ------------------------------------------------------------------------------
2011 systemd_run_SOURCES = \
2014 systemd_run_LDADD = \
2015 libsystemd-label.la \
2016 libsystemd-capability.la \
2017 libsystemd-internal.la \
2018 libsystemd-shared.la
2020 # ------------------------------------------------------------------------------
2021 systemd_bus_proxyd_SOURCES = \
2022 src/bus-proxyd/bus-proxyd.c
2024 systemd_bus_proxyd_LDADD = \
2025 libsystemd-internal.la \
2026 libsystemd-shared.la
2028 bus-proxyd-install-hook:
2029 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2030 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2031 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2033 bus-proxyd-uninstall-hook:
2034 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2036 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2037 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2040 nodist_systemunit_DATA += \
2041 units/systemd-bus-proxyd@.service
2043 dist_systemunit_DATA += \
2044 units/systemd-bus-proxyd.socket
2046 dist_userunit_DATA += \
2047 units/user/systemd-bus-proxyd.socket \
2048 units/user/systemd-bus-proxyd@.service
2052 units/systemd-bus-proxyd@.service.in
2054 # ------------------------------------------------------------------------------
2055 systemd_tty_ask_password_agent_SOURCES = \
2056 src/tty-ask-password-agent/tty-ask-password-agent.c
2058 systemd_tty_ask_password_agent_LDADD = \
2059 libsystemd-label.la \
2060 libsystemd-shared.la
2062 # ------------------------------------------------------------------------------
2063 libsystemd_internal_la_SOURCES = \
2064 src/systemd/sd-bus.h \
2065 src/systemd/sd-bus-protocol.h \
2066 src/systemd/sd-bus-vtable.h \
2067 src/systemd/sd-memfd.h \
2068 src/systemd/sd-utf8.h \
2069 src/systemd/sd-event.h \
2070 src/systemd/sd-rtnl.h \
2071 src/systemd/sd-resolve.h \
2072 src/systemd/sd-login.h \
2073 src/systemd/sd-id128.h \
2074 src/systemd/sd-daemon.h \
2075 src/libsystemd/sd-bus/sd-bus.c \
2076 src/libsystemd/sd-bus/bus-control.c \
2077 src/libsystemd/sd-bus/bus-control.h \
2078 src/libsystemd/sd-bus/bus-error.c \
2079 src/libsystemd/sd-bus/bus-error.h \
2080 src/libsystemd/sd-bus/bus-internal.c \
2081 src/libsystemd/sd-bus/bus-internal.h \
2082 src/libsystemd/sd-bus/bus-socket.c \
2083 src/libsystemd/sd-bus/bus-socket.h \
2084 src/libsystemd/sd-bus/bus-kernel.c \
2085 src/libsystemd/sd-bus/bus-kernel.h \
2086 src/libsystemd/sd-bus/bus-container.c \
2087 src/libsystemd/sd-bus/bus-container.h \
2088 src/libsystemd/sd-bus/bus-message.c \
2089 src/libsystemd/sd-bus/bus-message.h \
2090 src/libsystemd/sd-bus/bus-creds.c \
2091 src/libsystemd/sd-bus/bus-creds.h \
2092 src/libsystemd/sd-bus/bus-signature.c \
2093 src/libsystemd/sd-bus/bus-signature.h \
2094 src/libsystemd/sd-bus/bus-type.c \
2095 src/libsystemd/sd-bus/bus-type.h \
2096 src/libsystemd/sd-bus/bus-match.c \
2097 src/libsystemd/sd-bus/bus-match.h \
2098 src/libsystemd/sd-bus/bus-bloom.c \
2099 src/libsystemd/sd-bus/bus-bloom.h \
2100 src/libsystemd/sd-bus/bus-introspect.c \
2101 src/libsystemd/sd-bus/bus-introspect.h \
2102 src/libsystemd/sd-bus/bus-objects.c \
2103 src/libsystemd/sd-bus/bus-objects.h \
2104 src/libsystemd/sd-bus/bus-gvariant.c \
2105 src/libsystemd/sd-bus/bus-gvariant.h \
2106 src/libsystemd/sd-bus/bus-convenience.c \
2107 src/libsystemd/sd-bus/bus-track.c \
2108 src/libsystemd/sd-bus/bus-track.h \
2109 src/libsystemd/sd-bus/bus-util.c \
2110 src/libsystemd/sd-bus/bus-util.h \
2111 src/libsystemd/sd-bus/bus-protocol.h \
2112 src/libsystemd/sd-bus/kdbus.h \
2113 src/libsystemd/sd-bus/sd-memfd.c \
2114 src/libsystemd/sd-utf8/sd-utf8.c \
2115 src/libsystemd/sd-event/sd-event.c \
2116 src/libsystemd/sd-event/event-util.h \
2117 src/libsystemd/sd-rtnl/sd-rtnl.c \
2118 src/libsystemd/sd-rtnl/rtnl-internal.h \
2119 src/libsystemd/sd-rtnl/rtnl-message.c \
2120 src/libsystemd/sd-rtnl/rtnl-types.h \
2121 src/libsystemd/sd-rtnl/rtnl-types.c \
2122 src/libsystemd/sd-rtnl/rtnl-util.h \
2123 src/libsystemd/sd-rtnl/rtnl-util.c \
2124 src/libsystemd/sd-id128/sd-id128.c \
2125 src/libsystemd/sd-daemon/sd-daemon.c \
2126 src/libsystemd/sd-login/sd-login.c
2128 nodist_libsystemd_internal_la_SOURCES = \
2129 src/libsystemd/libsystemd.sym \
2130 src/libsystemd/sd-bus/bus-error-mapping.c
2132 libsystemd_internal_la_CFLAGS = \
2136 libsystemd_internal_la_LIBADD = \
2139 libsystemd_resolve_la_SOURCES = \
2140 src/libsystemd/sd-resolve/sd-resolve.c \
2141 src/libsystemd/sd-resolve/resolve-util.h
2143 libsystemd_resolve_la_CFLAGS = \
2147 noinst_LTLIBRARIES += \
2148 libsystemd-internal.la \
2149 libsystemd-resolve.la
2151 libsystemd_dump_la_SOURCES = \
2152 src/libsystemd/sd-bus/bus-dump.c \
2153 src/libsystemd/sd-bus/bus-dump.h
2155 libsystemd_dump_la_CFLAGS = \
2159 noinst_LTLIBRARIES += \
2163 src/libsystemd/libsystemd.sym.m4 \
2164 src/libsystemd/libsystemd.pc.in \
2165 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2166 src/libsystemd/sd-bus/DIFFERENCES \
2167 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2170 src/libsystemd/libsystemd.sym \
2171 src/libsystemd/sd-bus/bus-error-mapping.c
2174 src/libsystemd/libsystemd.sym
2176 libsystemd_la_SOURCES = \
2177 $(libsystemd_internal_la_SOURCES) \
2178 $(libsystemd_resolve_la_SOURCES) \
2179 $(libsystemd_journal_internal_la_SOURCES)
2181 nodist_libsystemd_la_SOURCES = \
2182 $(nodist_libsystemd_internal_la_SOURCES)
2184 libsystemd_la_CFLAGS = \
2185 $(libsystemd_internal_la_CFLAGS) \
2186 $(libsystemd_journal_internal_la_CFLAGS)
2188 libsystemd_la_LDFLAGS = \
2190 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2191 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2193 libsystemd_la_LIBADD = \
2194 libsystemd-shared.la \
2195 $(libsystemd_journal_internal_la_LIBADD) \
2199 libsystemd-install-hook:
2200 libname=libsystemd.so && $(move-to-rootlibdir)
2202 libsystemd-uninstall-hook:
2203 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2205 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2206 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2208 pkgconfiglib_DATA += \
2209 src/libsystemd/libsystemd.pc
2211 pkginclude_HEADERS += \
2212 src/systemd/sd-login.h \
2213 src/systemd/sd-id128.h \
2214 src/systemd/sd-daemon.h
2217 pkginclude_HEADERS += \
2218 src/systemd/sd-bus.h \
2219 src/systemd/sd-bus-protocol.h \
2220 src/systemd/sd-bus-vtable.h \
2221 src/systemd/sd-memfd.h \
2222 src/systemd/sd-utf8.h \
2223 src/systemd/sd-event.h \
2224 src/systemd/sd-rtnl.h \
2225 src/systemd/sd-resolve.h
2228 lib_LTLIBRARIES += \
2233 test-bus-signature \
2239 test-bus-kernel-bloom \
2240 test-bus-kernel-benchmark \
2242 test-bus-zero-copy \
2243 test-bus-introspect \
2255 test_bus_marshal_SOURCES = \
2256 src/libsystemd/sd-bus/test-bus-marshal.c
2258 test_bus_marshal_LDADD = \
2259 libsystemd-internal.la \
2260 libsystemd-shared.la \
2261 libsystemd-dump.la \
2262 libsystemd-capability.la \
2267 test_bus_marshal_CFLAGS = \
2273 test_bus_signature_SOURCES = \
2274 src/libsystemd/sd-bus/test-bus-signature.c
2276 test_bus_signature_LDADD = \
2277 libsystemd-shared.la \
2278 libsystemd-internal.la
2280 test_bus_chat_SOURCES = \
2281 src/libsystemd/sd-bus/test-bus-chat.c
2283 test_bus_chat_CFLAGS = \
2287 test_bus_chat_LDADD = \
2288 libsystemd-internal.la \
2289 libsystemd-shared.la
2291 test_bus_cleanup_SOURCES = \
2292 src/libsystemd/sd-bus/test-bus-cleanup.c
2294 test_bus_cleanup_CFLAGS = \
2298 test_bus_cleanup_LDADD = \
2299 libsystemd-internal.la \
2300 libsystemd-shared.la
2302 test_bus_server_SOURCES = \
2303 src/libsystemd/sd-bus/test-bus-server.c
2305 test_bus_server_CFLAGS = \
2309 test_bus_server_LDADD = \
2310 libsystemd-internal.la \
2311 libsystemd-shared.la
2313 test_bus_objects_SOURCES = \
2314 src/libsystemd/sd-bus/test-bus-objects.c
2316 test_bus_objects_CFLAGS = \
2321 test_bus_objects_LDADD = \
2322 libsystemd-internal.la \
2323 libsystemd-shared.la \
2324 libsystemd-dump.la \
2325 libsystemd-capability.la \
2328 test_bus_error_SOURCES = \
2329 src/libsystemd/sd-bus/test-bus-error.c
2331 test_bus_error_LDADD = \
2332 libsystemd-internal.la \
2333 libsystemd-shared.la
2335 test_bus_gvariant_SOURCES = \
2336 src/libsystemd/sd-bus/test-bus-gvariant.c
2338 test_bus_gvariant_LDADD = \
2339 libsystemd-internal.la \
2340 libsystemd-shared.la \
2341 libsystemd-dump.la \
2342 libsystemd-capability.la \
2346 test_bus_gvariant_CFLAGS = \
2351 test_bus_creds_SOURCES = \
2352 src/libsystemd/sd-bus/test-bus-creds.c
2354 test_bus_creds_LDADD = \
2355 libsystemd-internal.la \
2356 libsystemd-shared.la \
2357 libsystemd-dump.la \
2358 libsystemd-capability.la
2360 test_bus_match_SOURCES = \
2361 src/libsystemd/sd-bus/test-bus-match.c
2363 test_bus_match_LDADD = \
2364 libsystemd-internal.la \
2365 libsystemd-shared.la
2367 test_bus_kernel_SOURCES = \
2368 src/libsystemd/sd-bus/test-bus-kernel.c
2370 test_bus_kernel_LDADD = \
2371 libsystemd-internal.la \
2372 libsystemd-shared.la \
2373 libsystemd-dump.la \
2374 libsystemd-capability.la \
2377 test_bus_kernel_CFLAGS = \
2381 test_bus_kernel_bloom_SOURCES = \
2382 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2384 test_bus_kernel_bloom_LDADD = \
2385 libsystemd-internal.la \
2386 libsystemd-shared.la
2388 test_bus_kernel_benchmark_SOURCES = \
2389 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2391 test_bus_kernel_benchmark_LDADD = \
2392 libsystemd-internal.la \
2393 libsystemd-shared.la
2395 test_bus_memfd_SOURCES = \
2396 src/libsystemd/sd-bus/test-bus-memfd.c
2398 test_bus_memfd_LDADD = \
2399 libsystemd-internal.la \
2400 libsystemd-shared.la
2402 test_bus_zero_copy_SOURCES = \
2403 src/libsystemd/sd-bus/test-bus-zero-copy.c
2405 test_bus_zero_copy_LDADD = \
2406 libsystemd-internal.la \
2407 libsystemd-shared.la \
2408 libsystemd-dump.la \
2409 libsystemd-capability.la \
2412 test_bus_zero_copy_CFLAGS = \
2416 test_bus_introspect_SOURCES = \
2417 src/libsystemd/sd-bus/test-bus-introspect.c
2419 test_bus_introspect_LDADD = \
2420 libsystemd-internal.la \
2421 libsystemd-shared.la
2423 test_event_SOURCES = \
2424 src/libsystemd/sd-event/test-event.c
2426 test_event_LDADD = \
2427 libsystemd-internal.la \
2428 libsystemd-shared.la
2430 test_rtnl_SOURCES = \
2431 src/libsystemd/sd-rtnl/test-rtnl.c
2434 libsystemd-internal.la \
2435 libsystemd-shared.la
2437 test_resolve_SOURCES = \
2438 src/systemd/sd-resolve.h \
2439 src/libsystemd/sd-resolve/test-resolve.c
2441 test_resolve_LDADD = \
2442 libsystemd-internal.la \
2443 libsystemd-resolve.la \
2444 libsystemd-shared.la \
2447 test_resolve_CFLAGS = \
2452 src/libsystemd/sd-bus/busctl.c
2455 libsystemd-internal.la \
2456 libsystemd-shared.la \
2457 libsystemd-dump.la \
2458 libsystemd-capability.la \
2465 # ------------------------------------------------------------------------------
2466 noinst_LTLIBRARIES += \
2467 libsystemd-network.la
2469 libsystemd_network_la_SOURCES = \
2470 src/systemd/sd-network.h \
2471 src/systemd/sd-dhcp-client.h \
2472 src/systemd/sd-dhcp-lease.h \
2473 src/systemd/sd-ipv4ll.h \
2474 src/network/sd-network.c \
2475 src/network/network-util.h \
2476 src/libsystemd-network/sd-dhcp-client.c \
2477 src/libsystemd-network/dhcp-network.c \
2478 src/libsystemd-network/dhcp-option.c \
2479 src/libsystemd-network/dhcp-packet.c \
2480 src/libsystemd-network/dhcp-internal.h \
2481 src/libsystemd-network/dhcp-protocol.h \
2482 src/libsystemd-network/dhcp-lease-internal.h \
2483 src/libsystemd-network/sd-dhcp-lease.c \
2484 src/libsystemd-network/sd-ipv4ll.c \
2485 src/libsystemd-network/ipv4ll-network.c \
2486 src/libsystemd-network/ipv4ll-packet.c \
2487 src/libsystemd-network/ipv4ll-internal.h \
2488 src/libsystemd-network/network-internal.c \
2489 src/libsystemd-network/network-internal.h
2491 libsystemd_network_la_LIBADD = \
2492 libsystemd-label.la \
2493 libsystemd-internal.la \
2494 libsystemd-shared.la
2496 test_dhcp_option_SOURCES = \
2497 src/libsystemd-network/dhcp-protocol.h \
2498 src/libsystemd-network/dhcp-internal.h \
2499 src/libsystemd-network/test-dhcp-option.c
2501 test_dhcp_option_LDADD = \
2502 libsystemd-network.la \
2503 libsystemd-internal.la \
2504 libsystemd-shared.la
2506 test_dhcp_client_SOURCES = \
2507 src/systemd/sd-dhcp-client.h \
2508 src/libsystemd-network/dhcp-protocol.h \
2509 src/libsystemd-network/dhcp-internal.h \
2510 src/libsystemd-network/test-dhcp-client.c
2512 test_dhcp_client_LDADD = \
2513 libsystemd-network.la \
2514 libsystemd-label.la \
2515 libsystemd-internal.la \
2516 libsystemd-shared.la
2518 test_ipv4ll_SOURCES = \
2519 src/systemd/sd-ipv4ll.h \
2520 src/libsystemd-network/ipv4ll-internal.h \
2521 src/libsystemd-network/test-ipv4ll.c
2523 test_ipv4ll_LDADD = \
2524 libsystemd-network.la \
2525 libsystemd-label.la \
2526 libsystemd-internal.la \
2527 libsystemd-shared.la
2534 # ------------------------------------------------------------------------------
2544 include_HEADERS += \
2545 src/libudev/libudev.h
2547 lib_LTLIBRARIES += \
2550 libudev_la_SOURCES =\
2551 src/libudev/libudev.sym \
2552 src/libudev/libudev-private.h \
2553 src/libudev/libudev.c \
2554 src/libudev/libudev-list.c \
2555 src/libudev/libudev-util.c \
2556 src/libudev/libudev-device.c \
2557 src/libudev/libudev-enumerate.c \
2558 src/libudev/libudev-monitor.c \
2559 src/libudev/libudev-queue.c \
2560 src/libudev/libudev-hwdb-def.h \
2561 src/libudev/libudev-hwdb.c
2563 libudev_la_CFLAGS = \
2567 libudev_la_LDFLAGS = \
2569 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2570 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2572 libudev_la_LIBADD = \
2573 libsystemd-internal.la \
2574 libsystemd-shared.la
2576 pkgconfiglib_DATA += \
2577 src/libudev/libudev.pc
2580 src/libudev/libudev.pc.in
2583 src/libudev/libudev.pc \
2588 $(AM_V_at)$(MKDIR_P) $(dir $@)
2589 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2592 $(AM_V_at)$(MKDIR_P) $(dir $@)
2593 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2595 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2596 libudev-install-hook:
2597 libname=libudev.so && $(move-to-rootlibdir)
2599 libudev-uninstall-hook:
2600 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2602 INSTALL_EXEC_HOOKS += libudev-install-hook
2603 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2605 # ------------------------------------------------------------------------------
2606 noinst_LTLIBRARIES += \
2609 libudev_internal_la_SOURCES =\
2610 $(libudev_la_SOURCES) \
2611 src/libudev/libudev-device-private.c
2613 libudev_internal_la_CFLAGS = \
2615 -fvisibility=default
2617 # ------------------------------------------------------------------------------
2619 $(sysconfdir)/udev/rules.d \
2620 $(sysconfdir)/udev/hwdb.d
2622 dist_network_DATA = \
2623 network/99-default.link \
2624 network/80-container-host0.network
2626 dist_udevrules_DATA += \
2627 rules/42-usb-hid-pm.rules \
2628 rules/50-udev-default.rules \
2629 rules/60-drm.rules \
2630 rules/60-keyboard.rules \
2631 rules/60-persistent-storage-tape.rules \
2632 rules/60-persistent-serial.rules \
2633 rules/60-persistent-input.rules \
2634 rules/60-persistent-alsa.rules \
2635 rules/60-persistent-storage.rules \
2636 rules/64-btrfs.rules \
2637 rules/75-net-description.rules \
2638 rules/75-tty-description.rules \
2639 rules/78-sound-card.rules \
2640 rules/80-net-setup-link.rules \
2641 rules/95-udev-late.rules
2643 nodist_udevrules_DATA += \
2644 rules/99-systemd.rules
2646 dist_udevhwdb_DATA = \
2647 hwdb/20-pci-vendor-model.hwdb \
2648 hwdb/20-pci-classes.hwdb \
2649 hwdb/20-usb-vendor-model.hwdb \
2650 hwdb/20-usb-classes.hwdb \
2651 hwdb/20-sdio-vendor-model.hwdb \
2652 hwdb/20-sdio-classes.hwdb \
2653 hwdb/20-bluetooth-vendor-product.hwdb \
2654 hwdb/20-acpi-vendor.hwdb \
2656 hwdb/20-net-ifname.hwdb \
2657 hwdb/60-keyboard.hwdb
2659 udevconfdir = $(sysconfdir)/udev
2660 dist_udevconf_DATA = \
2663 sharepkgconfigdir = $(datadir)/pkgconfig
2664 sharepkgconfig_DATA = \
2668 rules/99-systemd.rules.in \
2672 rules/99-systemd.rules \
2676 units/systemd-udevd.service.in \
2677 units/systemd-udev-trigger.service.in \
2678 units/systemd-udev-settle.service.in
2681 units/systemd-udevd.service \
2682 units/systemd-udev-trigger.service \
2683 units/systemd-udev-settle.service
2685 SOCKETS_TARGET_WANTS += \
2686 systemd-udevd-control.socket \
2687 systemd-udevd-kernel.socket
2688 SYSINIT_TARGET_WANTS += \
2689 systemd-udevd.service \
2690 systemd-udev-trigger.service
2692 rootbin_PROGRAMS += \
2695 rootlibexec_PROGRAMS += \
2698 noinst_LTLIBRARIES += \
2701 src/udev/keyboard-keys.txt:
2702 $(AM_V_at)$(MKDIR_P) $(dir $@)
2703 $(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/' > $@
2705 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2706 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2708 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2709 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2711 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2712 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2714 libudev_core_la_SOURCES = \
2716 src/udev/udev-event.c \
2717 src/udev/udev-watch.c \
2718 src/udev/udev-node.c \
2719 src/udev/udev-rules.c \
2720 src/udev/udev-ctrl.c \
2721 src/udev/udev-builtin.c \
2722 src/udev/udev-builtin-btrfs.c \
2723 src/udev/udev-builtin-hwdb.c \
2724 src/udev/udev-builtin-input_id.c \
2725 src/udev/udev-builtin-keyboard.c \
2726 src/udev/udev-builtin-net_id.c \
2727 src/udev/udev-builtin-net_setup_link.c \
2728 src/udev/udev-builtin-path_id.c \
2729 src/udev/udev-builtin-usb_id.c \
2730 src/udev/net/link-config.h \
2731 src/udev/net/link-config.c \
2732 src/udev/net/ethtool-util.h \
2733 src/udev/net/ethtool-util.c
2735 nodist_libudev_core_la_SOURCES = \
2736 src/udev/keyboard-keys-from-name.h \
2737 src/udev/keyboard-keys-to-name.h \
2738 src/udev/net/link-config-gperf.c
2741 $(nodist_libudev_core_la_SOURCES)
2744 src/udev/keyboard-keys-from-name.gperf \
2745 src/udev/keyboard-keys.txt \
2746 src/udev/net/link-config-gperf.c
2749 src/udev/net/link-config-gperf.gperf
2751 libudev_core_la_CFLAGS = \
2756 libudev_core_la_LIBADD = \
2757 libudev-internal.la \
2758 libsystemd-label.la \
2759 libsystemd-internal.la \
2760 libsystemd-network.la \
2761 libsystemd-shared.la \
2765 libudev_core_la_CPPFLAGS = \
2767 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2770 libudev_core_la_SOURCES += \
2771 src/udev/udev-builtin-firmware.c
2773 dist_udevrules_DATA += \
2774 rules/50-firmware.rules
2778 libudev_core_la_SOURCES += \
2779 src/udev/udev-builtin-kmod.c
2781 dist_udevrules_DATA += \
2782 rules/80-drivers.rules
2786 libudev_core_la_SOURCES += \
2787 src/udev/udev-builtin-blkid.c
2791 libudev_core_la_SOURCES += \
2792 src/udev/udev-builtin-uaccess.c \
2793 src/login/logind-acl.c \
2794 src/libsystemd/sd-login/sd-login.c \
2795 src/systemd/sd-login.h
2797 libudev_core_la_LIBADD += \
2801 systemd_udevd_SOURCES = \
2804 systemd_udevd_LDADD = \
2808 src/udev/udevadm.c \
2809 src/udev/udevadm-info.c \
2810 src/udev/udevadm-control.c \
2811 src/udev/udevadm-monitor.c \
2812 src/udev/udevadm-hwdb.c \
2813 src/udev/udevadm-settle.c \
2814 src/udev/udevadm-trigger.c \
2815 src/udev/udevadm-test.c \
2816 src/udev/udevadm-test-builtin.c
2821 # Update hwdb on installation. Do not bother if installing
2822 # in DESTDIR, since this is likely for packaging purposes.
2824 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2826 INSTALL_DATA_HOOKS += \
2830 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2832 # ------------------------------------------------------------------------------
2841 test_libudev_SOURCES = \
2842 src/test/test-libudev.c
2844 test_libudev_LDADD = \
2845 libsystemd-label.la \
2846 libudev-internal.la \
2847 libsystemd-shared.la
2849 test_udev_SOURCES = \
2850 src/test/test-udev.c
2859 test_udev_LDADD += \
2866 # packed sysfs test tree
2868 $(AM_V_at)$(MKDIR_P) $(dir $@)
2869 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2873 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2878 test/rules-test.sh \
2879 test/rule-syntax-check.py
2881 # ------------------------------------------------------------------------------
2883 src/udev/ata_id/ata_id.c
2886 libudev-internal.la \
2887 libsystemd-shared.la
2889 udevlibexec_PROGRAMS += \
2892 # ------------------------------------------------------------------------------
2893 cdrom_id_SOURCES = \
2894 src/udev/cdrom_id/cdrom_id.c
2897 libudev-internal.la \
2898 libsystemd-shared.la
2900 udevlibexec_PROGRAMS += \
2903 dist_udevrules_DATA += \
2904 rules/60-cdrom_id.rules
2906 # ------------------------------------------------------------------------------
2908 src/udev/collect/collect.c
2911 libudev-internal.la \
2912 libsystemd-shared.la
2914 udevlibexec_PROGRAMS += \
2917 # ------------------------------------------------------------------------------
2919 src/udev/scsi_id/scsi_id.c \
2920 src/udev/scsi_id/scsi_serial.c \
2921 src/udev/scsi_id/scsi.h \
2922 src/udev/scsi_id/scsi_id.h
2925 libudev-internal.la \
2926 libsystemd-shared.la
2928 udevlibexec_PROGRAMS += \
2932 src/udev/scsi_id/README
2934 # ------------------------------------------------------------------------------
2936 src/udev/v4l_id/v4l_id.c
2941 udevlibexec_PROGRAMS += \
2944 dist_udevrules_DATA += \
2945 rules/60-persistent-v4l.rules
2947 # ------------------------------------------------------------------------------
2948 accelerometer_SOURCES = \
2949 src/udev/accelerometer/accelerometer.c
2951 accelerometer_LDADD = \
2952 libudev-internal.la -lm \
2953 libsystemd-shared.la
2955 udevlibexec_PROGRAMS += \
2958 dist_udevrules_DATA += \
2959 rules/61-accelerometer.rules
2961 # ------------------------------------------------------------------------------
2968 libgudev_includedir = \
2969 $(includedir)/gudev-1.0/gudev
2971 libgudev_include_HEADERS = \
2973 src/gudev/gudevenums.h \
2974 src/gudev/gudevenumtypes.h \
2975 src/gudev/gudevtypes.h \
2976 src/gudev/gudevclient.h \
2977 src/gudev/gudevdevice.h \
2978 src/gudev/gudevenumerator.h
2980 lib_LTLIBRARIES += libgudev-1.0.la
2982 pkgconfiglib_DATA += \
2983 src/gudev/gudev-1.0.pc
2986 src/gudev/gudev-1.0.pc
2988 libgudev_1_0_la_SOURCES = \
2989 src/gudev/gudevenums.h \
2990 src/gudev/gudevenumtypes.h \
2991 src/gudev/gudevenumtypes.h\
2992 src/gudev/gudevtypes.h \
2993 src/gudev/gudevclient.h \
2994 src/gudev/gudevclient.c \
2995 src/gudev/gudevdevice.h \
2996 src/gudev/gudevdevice.c \
2997 src/gudev/gudevenumerator.h \
2998 src/gudev/gudevenumerator.c \
2999 src/gudev/gudevprivate.h
3001 nodist_libgudev_1_0_la_SOURCES = \
3002 src/gudev/gudevmarshal.h \
3003 src/gudev/gudevmarshal.c \
3004 src/gudev/gudevenumtypes.h \
3005 src/gudev/gudevenumtypes.c
3008 $(nodist_libgudev_1_0_la_SOURCES)
3010 libgudev_1_0_la_CPPFLAGS = \
3012 -I$(top_builddir)/src\
3013 -I$(top_srcdir)/src\
3014 -I$(top_builddir)/src/gudev \
3015 -I$(top_srcdir)/src/gudev \
3016 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3017 -D_GUDEV_COMPILATION \
3018 -DG_LOG_DOMAIN=\"GUdev\"
3020 libgudev_1_0_la_CFLAGS = \
3022 -fvisibility=default \
3025 libgudev_1_0_la_LIBADD = \
3029 libgudev_1_0_la_LDFLAGS = \
3031 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3032 -export-dynamic -no-undefined \
3033 -export-symbols-regex '^g_udev_.*'
3035 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3036 $(AM_V_at)$(MKDIR_P) $(dir $@)
3037 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3039 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3040 $(AM_V_at)$(MKDIR_P) $(dir $@)
3041 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3042 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3044 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3045 $(AM_V_at)$(MKDIR_P) $(dir $@)
3046 $(AM_V_GEN)glib-mkenums --template $^ > $@
3048 if HAVE_INTROSPECTION
3049 -include $(INTROSPECTION_MAKEFILE)
3051 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3053 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3055 src_gudev_GUdev_1_0_gir_CFLAGS = \
3058 -D_GUDEV_COMPILATION \
3059 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3060 -I$(top_srcdir)/src \
3061 -I$(top_builddir)/src \
3062 -I$(top_srcdir)/src/gudev \
3063 -I$(top_builddir)/src/gudev
3065 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3067 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3068 --pkg-export=gudev-1.0 \
3071 src_gudev_GUdev_1_0_gir_FILES = \
3073 src/gudev/gudevtypes.h \
3074 src/gudev/gudevenums.h \
3075 src/gudev/gudevenumtypes.h \
3076 src/gudev/gudevclient.h \
3077 src/gudev/gudevdevice.h \
3078 src/gudev/gudevenumerator.h \
3079 src/gudev/gudevclient.c \
3080 src/gudev/gudevdevice.c \
3081 src/gudev/gudevenumerator.c
3083 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3084 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3086 girdir = $(datadir)/gir-1.0
3088 src/gudev/GUdev-1.0.gir
3090 typelibsdir = $(libdir)/girepository-1.0
3092 src/gudev/GUdev-1.0.typelib
3094 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3095 endif # HAVE_INTROSPECTION
3097 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3098 libgudev-install-hook:
3099 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3101 libgudev-uninstall-hook:
3102 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3104 INSTALL_EXEC_HOOKS += libgudev-install-hook
3105 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3109 src/gudev/gudev-1.0.pc.in \
3110 src/gudev/gudevmarshal.list \
3111 src/gudev/gudevenumtypes.h.template \
3112 src/gudev/gudevenumtypes.c.template \
3113 src/gudev/gjs-example.js \
3114 src/gudev/seed-example-enum.js \
3115 src/gudev/seed-example.js
3117 # ------------------------------------------------------------------------------
3118 mtd_probe_SOURCES = \
3119 src/udev/mtd_probe/mtd_probe.c \
3120 src/udev/mtd_probe/mtd_probe.h \
3121 src/udev/mtd_probe/probe_smartmedia.c
3123 dist_udevrules_DATA += \
3124 rules/75-probe_mtd.rules
3126 udevlibexec_PROGRAMS += \
3129 # ------------------------------------------------------------------------------
3130 test_id128_SOURCES = \
3131 src/test/test-id128.c
3133 test_id128_LDADD = \
3134 libsystemd-internal.la \
3135 libsystemd-shared.la
3140 # ------------------------------------------------------------------------------
3142 rootlibexec_PROGRAMS += \
3145 systemd_activate_SOURCES = \
3146 src/activate/activate.c
3148 systemd_activate_LDADD = \
3149 libsystemd-label.la \
3150 libsystemd-internal.la \
3151 libsystemd-shared.la
3153 # ------------------------------------------------------------------------------
3154 systemd_journald_SOURCES = \
3155 src/journal/journald.c \
3156 src/journal/journald-server.h
3158 systemd_journald_LDADD = \
3159 libsystemd-journal-core.la \
3160 libsystemd-internal.la \
3161 libsystemd-shared.la
3163 systemd_cat_SOURCES = \
3166 systemd_cat_LDADD = \
3167 libsystemd-journal-core.la
3170 rootlibexec_PROGRAMS += \
3171 systemd-journal-remote
3173 systemd_journal_remote_SOURCES = \
3174 src/journal/journal-remote-parse.h \
3175 src/journal/journal-remote-parse.c \
3176 src/journal/journal-remote-write.h \
3177 src/journal/journal-remote-write.c \
3178 src/journal/journal-remote.c
3180 systemd_journal_remote_LDADD = \
3181 libsystemd-internal.la \
3182 libsystemd-journal-core.la
3184 systemd_journal_remote_SOURCES += \
3185 src/journal/microhttpd-util.h \
3186 src/journal/microhttpd-util.c
3188 systemd_journal_remote_CFLAGS = \
3190 $(MICROHTTPD_CFLAGS)
3192 systemd_journal_remote_LDADD += \
3196 systemd_journal_remote_LDADD += \
3201 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3202 journalctl_CFLAGS = \
3205 journalctl_SOURCES = \
3206 src/journal/journalctl.c
3208 journalctl_LDADD = \
3209 libsystemd-journal-internal.la \
3210 libsystemd-internal.la \
3211 libsystemd-logs.la \
3212 libsystemd-shared.la
3215 journalctl_LDADD += \
3220 journalctl_SOURCES += \
3221 src/journal/journal-qrcode.c \
3222 src/journal/journal-qrcode.h
3224 journalctl_CFLAGS += \
3227 journalctl_LDADD += \
3231 test_journal_SOURCES = \
3232 src/journal/test-journal.c
3234 test_journal_LDADD = \
3235 libsystemd-journal-core.la
3237 test_journal_send_SOURCES = \
3238 src/journal/test-journal-send.c
3240 test_journal_send_LDADD = \
3241 libsystemd-journal-core.la
3243 test_journal_syslog_SOURCES = \
3244 src/journal/test-journal-syslog.c
3246 test_journal_syslog_LDADD = \
3247 libsystemd-journal-core.la
3249 test_journal_match_SOURCES = \
3250 src/journal/test-journal-match.c
3252 test_journal_match_LDADD = \
3253 libsystemd-journal-core.la
3255 test_journal_enum_SOURCES = \
3256 src/journal/test-journal-enum.c
3258 test_journal_enum_LDADD = \
3259 libsystemd-journal-core.la
3261 test_journal_stream_SOURCES = \
3262 src/journal/test-journal-stream.c
3264 test_journal_stream_LDADD = \
3265 libsystemd-journal-core.la
3267 test_journal_flush_SOURCES = \
3268 src/journal/test-journal-flush.c
3270 test_journal_flush_LDADD = \
3271 libsystemd-journal-core.la
3273 test_journal_init_SOURCES = \
3274 src/journal/test-journal-init.c
3276 test_journal_init_LDADD = \
3277 libsystemd-journal-core.la
3279 test_journal_verify_SOURCES = \
3280 src/journal/test-journal-verify.c
3282 test_journal_verify_LDADD = \
3283 libsystemd-journal-core.la
3285 test_journal_interleaving_SOURCES = \
3286 src/journal/test-journal-interleaving.c
3288 test_journal_interleaving_LDADD = \
3289 libsystemd-journal-core.la
3291 test_mmap_cache_SOURCES = \
3292 src/journal/test-mmap-cache.c
3294 test_mmap_cache_LDADD = \
3295 libsystemd-journal-core.la
3297 test_catalog_SOURCES = \
3298 src/journal/test-catalog.c
3300 test_catalog_CPPFLAGS = \
3302 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3304 test_catalog_LDADD = \
3305 libsystemd-journal-core.la
3307 libsystemd_journal_core_la_SOURCES = \
3308 src/journal/journald-kmsg.c \
3309 src/journal/journald-kmsg.h \
3310 src/journal/journald-syslog.c \
3311 src/journal/journald-syslog.h \
3312 src/journal/journald-stream.c \
3313 src/journal/journald-stream.h \
3314 src/journal/journald-server.c \
3315 src/journal/journald-server.h \
3316 src/journal/journald-console.c \
3317 src/journal/journald-console.h \
3318 src/journal/journald-wall.c \
3319 src/journal/journald-wall.h \
3320 src/journal/journald-native.c \
3321 src/journal/journald-native.h \
3322 src/journal/journald-rate-limit.c \
3323 src/journal/journald-rate-limit.h \
3324 src/journal/journal-internal.h
3326 nodist_libsystemd_journal_core_la_SOURCES = \
3327 src/journal/journald-gperf.c
3329 libsystemd_journal_core_la_LIBADD = \
3330 libsystemd-journal-internal.la \
3331 libudev-internal.la \
3332 libsystemd-capability.la \
3333 libsystemd-label.la \
3334 libsystemd-internal.la \
3335 libsystemd-shared.la
3338 libsystemd_journal_core_la_LIBADD += \
3342 noinst_LTLIBRARIES += \
3343 libsystemd-journal-core.la
3345 journal-install-hook:
3346 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3347 -chown 0:0 $(DESTDIR)/var/log/journal
3348 -chmod 755 $(DESTDIR)/var/log/journal
3349 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3350 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3352 journal-uninstall-hook:
3353 -rmdir $(DESTDIR)/var/log/journal/
3355 INSTALL_EXEC_HOOKS += journal-install-hook
3356 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3358 # ------------------------------------------------------------------------------
3359 # Update catalog on installation. Do not bother if installing
3360 # in DESTDIR, since this is likely for packaging purposes.
3361 catalog-update-hook:
3362 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3364 INSTALL_DATA_HOOKS += \
3367 catalog-remove-hook:
3368 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3370 UNINSTALL_DATA_HOOKS += \
3379 test-journal-syslog \
3380 test-journal-match \
3381 test-journal-stream \
3383 test-journal-verify \
3384 test-journal-interleaving \
3385 test-journal-flush \
3389 pkginclude_HEADERS += \
3390 src/systemd/sd-journal.h \
3391 src/systemd/sd-messages.h \
3392 src/systemd/_sd-common.h
3394 libsystemd_journal_internal_la_SOURCES = \
3395 src/journal/sd-journal.c \
3396 src/systemd/sd-journal.h \
3397 src/systemd/_sd-common.h \
3398 src/journal/journal-file.c \
3399 src/journal/journal-file.h \
3400 src/journal/journal-vacuum.c \
3401 src/journal/journal-vacuum.h \
3402 src/journal/journal-verify.c \
3403 src/journal/journal-verify.h \
3404 src/journal/lookup3.c \
3405 src/journal/lookup3.h \
3406 src/journal/journal-send.c \
3407 src/journal/journal-def.h \
3408 src/journal/compress.h \
3409 src/journal/catalog.c \
3410 src/journal/catalog.h \
3411 src/journal/mmap-cache.c \
3412 src/journal/mmap-cache.h
3414 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3415 libsystemd_journal_internal_la_CFLAGS =
3418 libsystemd_journal_internal_la_LIBADD =
3421 libsystemd_journal_internal_la_SOURCES += \
3422 src/journal/compress.c
3424 libsystemd_journal_internal_la_CFLAGS += \
3427 libsystemd_journal_internal_la_LIBADD += \
3432 libsystemd_journal_internal_la_SOURCES += \
3433 src/journal/journal-authenticate.c \
3434 src/journal/journal-authenticate.h \
3435 src/journal/fsprg.c \
3438 libsystemd_journal_internal_la_LIBADD += \
3441 # fsprg.c is a drop-in file using void pointer arithmetic
3442 libsystemd_journal_internal_la_CFLAGS += \
3447 noinst_LTLIBRARIES += \
3448 libsystemd-journal-internal.la
3450 rootlibexec_PROGRAMS += \
3453 rootbin_PROGRAMS += \
3459 dist_systemunit_DATA += \
3460 units/systemd-journald.socket
3462 nodist_systemunit_DATA += \
3463 units/systemd-journald.service \
3464 units/systemd-journal-flush.service
3466 dist_pkgsysconf_DATA += \
3467 src/journal/journald.conf
3469 dist_catalog_DATA = \
3470 catalog/systemd.fr.catalog \
3471 catalog/systemd.ru.catalog \
3472 catalog/systemd.it.catalog \
3473 catalog/systemd.catalog
3475 SOCKETS_TARGET_WANTS += \
3476 systemd-journald.socket
3477 SYSINIT_TARGET_WANTS += \
3478 systemd-journald.service \
3479 systemd-journal-flush.service
3482 units/systemd-journald.service.in \
3483 units/systemd-journal-flush.service.in \
3484 src/journal/journald-gperf.gperf
3487 src/journal/journald-gperf.c
3489 # ------------------------------------------------------------------------------
3491 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3493 rootlibexec_PROGRAMS += \
3494 systemd-journal-gatewayd
3496 systemd_journal_gatewayd_SOURCES = \
3497 src/journal/journal-gatewayd.c \
3498 src/journal/microhttpd-util.h \
3499 src/journal/microhttpd-util.c
3501 systemd_journal_gatewayd_LDADD = \
3502 libsystemd-logs.la \
3503 libsystemd-journal-internal.la \
3504 libsystemd-internal.la \
3505 libsystemd-shared.la \
3509 systemd_journal_gatewayd_LDADD += \
3513 systemd_journal_gatewayd_CFLAGS = \
3515 $(MICROHTTPD_CFLAGS)
3517 systemd_journal_gatewayd_CPPFLAGS = \
3519 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3521 dist_systemunit_DATA += \
3522 units/systemd-journal-gatewayd.socket
3524 nodist_systemunit_DATA += \
3525 units/systemd-journal-gatewayd.service
3527 dist_gatewayddocumentroot_DATA = \
3528 src/journal/browse.html
3533 units/systemd-journal-gatewayd.service.in
3535 # ------------------------------------------------------------------------------
3537 systemd_socket_proxyd_SOURCES = \
3538 src/socket-proxy/socket-proxyd.c
3540 systemd_socket_proxyd_LDADD = \
3541 libsystemd-logs.la \
3542 libsystemd-internal.la \
3543 libsystemd-journal-internal.la \
3544 libsystemd-shared.la
3546 # ------------------------------------------------------------------------------
3548 systemd_coredump_SOURCES = \
3549 src/journal/coredump.c
3551 systemd_coredump_LDADD = \
3552 libsystemd-journal-internal.la \
3553 libsystemd-label.la \
3554 libsystemd-internal.la \
3555 libsystemd-shared.la
3557 rootlibexec_PROGRAMS += \
3560 systemd_coredumpctl_SOURCES = \
3561 src/journal/coredumpctl.c
3563 systemd_coredumpctl_LDADD = \
3564 libsystemd-journal-internal.la \
3565 libsystemd-internal.la \
3566 libsystemd-shared.la
3571 dist_bashcompletion_DATA += \
3572 shell-completion/bash/systemd-coredumpctl
3574 dist_zshcompletion_DATA += \
3575 shell-completion/zsh/_systemd-coredumpctl
3578 sysctl.d/50-coredump.conf
3581 sysctl.d/50-coredump.conf
3585 sysctl.d/50-coredump.conf.in
3587 # ------------------------------------------------------------------------------
3589 systemd_binfmt_SOURCES = \
3592 systemd_binfmt_LDADD = \
3593 libsystemd-shared.la
3595 rootlibexec_PROGRAMS += \
3598 dist_systemunit_DATA += \
3599 units/proc-sys-fs-binfmt_misc.automount \
3600 units/proc-sys-fs-binfmt_misc.mount
3602 nodist_systemunit_DATA += \
3603 units/systemd-binfmt.service
3606 $(prefix)/lib/binfmt.d \
3607 $(sysconfdir)/binfmt.d
3609 SYSINIT_TARGET_WANTS += \
3610 systemd-binfmt.service \
3611 proc-sys-fs-binfmt_misc.automount
3616 units/systemd-binfmt.service.in
3618 # ------------------------------------------------------------------------------
3620 systemd_vconsole_setup_SOURCES = \
3621 src/vconsole/vconsole-setup.c
3623 systemd_vconsole_setup_LDADD = \
3624 libsystemd-shared.la
3626 rootlibexec_PROGRAMS += \
3627 systemd-vconsole-setup
3629 nodist_systemunit_DATA += \
3630 units/systemd-vconsole-setup.service
3632 SYSINIT_TARGET_WANTS += \
3633 systemd-vconsole-setup.service
3637 units/systemd-vconsole-setup.service.in
3639 # ------------------------------------------------------------------------------
3641 systemd_readahead_SOURCES = \
3642 src/readahead/readahead.c \
3643 src/readahead/readahead-collect.c \
3644 src/readahead/readahead-replay.c \
3645 src/readahead/readahead-analyze.c \
3646 src/readahead/readahead-common.c \
3647 src/readahead/readahead-common.h
3649 systemd_readahead_LDADD = \
3650 libsystemd-internal.la \
3651 libudev-internal.la \
3652 libsystemd-shared.la
3655 src/readahead/sd-readahead.c \
3656 src/systemd/sd-readahead.h
3658 rootlibexec_PROGRAMS += \
3661 dist_systemunit_DATA += \
3662 units/systemd-readahead-drop.service \
3663 units/systemd-readahead-done.timer
3665 nodist_systemunit_DATA += \
3666 units/systemd-readahead-collect.service \
3667 units/systemd-readahead-replay.service \
3668 units/systemd-readahead-done.service
3673 units/systemd-readahead-collect.service.in \
3674 units/systemd-readahead-replay.service.in \
3675 units/systemd-readahead-done.service.in
3677 # ------------------------------------------------------------------------------
3679 systemd_bootchart_SOURCES = \
3680 src/bootchart/bootchart.c \
3681 src/bootchart/bootchart.h \
3682 src/bootchart/store.c \
3683 src/bootchart/store.h \
3684 src/bootchart/svg.c \
3687 systemd_bootchart_LDADD = \
3688 libsystemd-journal-internal.la \
3689 libsystemd-shared.la
3691 rootlibexec_PROGRAMS += \
3694 dist_pkgsysconf_DATA += \
3695 src/bootchart/bootchart.conf
3698 # ------------------------------------------------------------------------------
3699 if ENABLE_QUOTACHECK
3700 rootlibexec_PROGRAMS += \
3703 nodist_systemunit_DATA += \
3704 units/systemd-quotacheck.service
3706 systemd_quotacheck_SOURCES = \
3707 src/quotacheck/quotacheck.c
3709 systemd_quotacheck_LDADD = \
3710 libsystemd-shared.la
3714 units/systemd-quotacheck.service.in
3716 nodist_systemunit_DATA += \
3717 units/quotaon.service
3719 # ------------------------------------------------------------------------------
3720 if ENABLE_RANDOMSEED
3721 rootlibexec_PROGRAMS += \
3724 nodist_systemunit_DATA += \
3725 units/systemd-random-seed.service
3727 systemd_random_seed_SOURCES = \
3728 src/random-seed/random-seed.c
3730 systemd_random_seed_LDADD = \
3731 libsystemd-label.la \
3732 libsystemd-shared.la
3734 SYSINIT_TARGET_WANTS += \
3735 systemd-random-seed.service
3740 units/systemd-random-seed.service.in
3742 # ------------------------------------------------------------------------------
3744 rootlibexec_PROGRAMS += \
3747 nodist_systemunit_DATA += \
3748 units/systemd-backlight@.service
3750 systemd_backlight_SOURCES = \
3751 src/backlight/backlight.c
3753 systemd_backlight_LDADD = \
3754 libsystemd-label.la \
3755 libudev-internal.la \
3756 libsystemd-shared.la
3760 units/systemd-backlight@.service.in
3762 # ------------------------------------------------------------------------------
3764 rootlibexec_PROGRAMS += \
3767 nodist_systemunit_DATA += \
3768 units/systemd-rfkill@.service
3770 systemd_rfkill_SOURCES = \
3773 systemd_rfkill_LDADD = \
3774 libsystemd-label.la \
3775 libudev-internal.la \
3776 libsystemd-shared.la
3780 units/systemd-rfkill@.service.in
3782 # ------------------------------------------------------------------------------
3783 if HAVE_LIBCRYPTSETUP
3784 rootlibexec_PROGRAMS += \
3787 systemgenerator_PROGRAMS += \
3788 systemd-cryptsetup-generator
3790 dist_systemunit_DATA += \
3791 units/cryptsetup.target
3793 systemd_cryptsetup_SOURCES = \
3794 src/cryptsetup/cryptsetup.c
3796 systemd_cryptsetup_CFLAGS = \
3798 $(LIBCRYPTSETUP_CFLAGS)
3800 systemd_cryptsetup_LDADD = \
3801 libsystemd-label.la \
3802 libudev-internal.la \
3803 libsystemd-shared.la \
3804 $(LIBCRYPTSETUP_LIBS)
3806 systemd_cryptsetup_generator_SOURCES = \
3807 src/cryptsetup/cryptsetup-generator.c
3809 systemd_cryptsetup_generator_LDADD = \
3810 libsystemd-label.la \
3811 libsystemd-shared.la
3813 SYSINIT_TARGET_WANTS += \
3818 # ------------------------------------------------------------------------------
3820 systemd_hostnamed_SOURCES = \
3821 src/hostname/hostnamed.c
3823 systemd_hostnamed_LDADD = \
3824 libsystemd-label.la \
3825 libsystemd-internal.la \
3826 libsystemd-shared.la
3828 rootlibexec_PROGRAMS += \
3831 nodist_systemunit_DATA += \
3832 units/systemd-hostnamed.service
3834 dist_systemunit_DATA += \
3835 units/org.freedesktop.hostname1.busname
3837 dist_dbuspolicy_DATA += \
3838 src/hostname/org.freedesktop.hostname1.conf
3840 dist_dbussystemservice_DATA += \
3841 src/hostname/org.freedesktop.hostname1.service
3843 polkitpolicy_files += \
3844 src/hostname/org.freedesktop.hostname1.policy
3846 SYSTEM_UNIT_ALIASES += \
3847 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3849 BUSNAMES_TARGET_WANTS += \
3850 org.freedesktop.hostname1.busname
3852 hostnamectl_SOURCES = \
3853 src/hostname/hostnamectl.c
3855 hostnamectl_LDADD = \
3856 libsystemd-internal.la \
3857 libsystemd-shared.la
3862 dist_bashcompletion_DATA += \
3863 shell-completion/bash/hostnamectl
3865 dist_zshcompletion_DATA += \
3866 shell-completion/zsh/_hostnamectl
3870 polkitpolicy_in_files += \
3871 src/hostname/org.freedesktop.hostname1.policy.in
3874 units/systemd-hostnamed.service.in
3876 # ------------------------------------------------------------------------------
3878 dist_systemunit_DATA += \
3879 units/org.freedesktop.systemd1.busname
3881 BUSNAMES_TARGET_WANTS += \
3882 org.freedesktop.systemd1.busname
3885 # ------------------------------------------------------------------------------
3887 systemd_localed_SOURCES = \
3888 src/locale/localed.c
3890 systemd_localed_LDADD = \
3891 libsystemd-label.la \
3892 libsystemd-internal.la \
3893 libsystemd-shared.la
3895 nodist_systemunit_DATA += \
3896 units/systemd-localed.service
3898 dist_systemunit_DATA += \
3899 units/org.freedesktop.locale1.busname
3901 rootlibexec_PROGRAMS += \
3904 dist_dbuspolicy_DATA += \
3905 src/locale/org.freedesktop.locale1.conf
3907 dist_dbussystemservice_DATA += \
3908 src/locale/org.freedesktop.locale1.service
3910 polkitpolicy_files += \
3911 src/locale/org.freedesktop.locale1.policy
3913 SYSTEM_UNIT_ALIASES += \
3914 systemd-localed.service dbus-org.freedesktop.locale1.service
3916 BUSNAMES_TARGET_WANTS += \
3917 org.freedesktop.locale1.busname
3919 dist_pkgdata_DATA += \
3920 src/locale/kbd-model-map
3922 dist_noinst_SCRIPT = \
3923 src/locale/generate-kbd-model-map
3925 update-kbd-model-map: src/locale/generate-kbd-model-map
3926 $PYTHON $< >src/locale/kbd-model-map
3928 localectl_SOURCES = \
3929 src/locale/localectl.c
3932 libsystemd-internal.la \
3933 libsystemd-shared.la
3938 dist_bashcompletion_DATA += \
3939 shell-completion/bash/localectl
3941 dist_zshcompletion_DATA += \
3942 shell-completion/zsh/_localectl
3946 .PHONY: update-kbd-model-map
3948 polkitpolicy_in_files += \
3949 src/locale/org.freedesktop.locale1.policy.in
3952 units/systemd-localed.service.in
3954 # ------------------------------------------------------------------------------
3956 systemd_timedated_SOURCES = \
3957 src/timedate/timedated.c
3959 systemd_timedated_LDADD = \
3960 libsystemd-label.la \
3961 libsystemd-internal.la \
3962 libsystemd-shared.la
3964 rootlibexec_PROGRAMS += \
3967 dist_dbussystemservice_DATA += \
3968 src/timedate/org.freedesktop.timedate1.service
3970 dist_dbuspolicy_DATA += \
3971 src/timedate/org.freedesktop.timedate1.conf
3973 nodist_systemunit_DATA += \
3974 units/systemd-timedated.service
3976 dist_systemunit_DATA += \
3977 units/org.freedesktop.timedate1.busname
3979 polkitpolicy_files += \
3980 src/timedate/org.freedesktop.timedate1.policy
3983 $(prefix)/lib/systemd/ntp-units.d \
3984 $(sysconfdir)/systemd/ntp-units.d
3986 SYSTEM_UNIT_ALIASES += \
3987 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3989 BUSNAMES_TARGET_WANTS += \
3990 org.freedesktop.timedate1.busname
3992 timedatectl_SOURCES = \
3993 src/timedate/timedatectl.c
3995 timedatectl_LDADD = \
3996 libsystemd-internal.la \
3997 libsystemd-shared.la
4002 dist_bashcompletion_DATA += \
4003 shell-completion/bash/timedatectl
4005 dist_zshcompletion_DATA += \
4006 shell-completion/zsh/_timedatectl
4009 polkitpolicy_in_files += \
4010 src/timedate/org.freedesktop.timedate1.policy.in
4013 units/systemd-timedated.service.in
4015 # ------------------------------------------------------------------------------
4017 systemd_timesyncd_SOURCES = \
4018 src/timesync/timesyncd.c
4020 systemd_timesyncd_LDADD = \
4021 libsystemd-label.la \
4022 libsystemd-internal.la \
4023 libsystemd-shared.la \
4026 rootlibexec_PROGRAMS += \
4029 nodist_systemunit_DATA += \
4030 units/systemd-timesyncd.service
4033 units/systemd-timesyncd.service.in
4036 # ------------------------------------------------------------------------------
4038 libnss_myhostname_la_SOURCES = \
4039 src/nss-myhostname/nss-myhostname.c \
4040 src/nss-myhostname/ifconf.h \
4041 src/nss-myhostname/netlink.c
4043 libnss_myhostname_la_LDFLAGS = \
4051 libnss_myhostname_la_LIBADD = \
4052 libsystemd-shared.la \
4053 libsystemd-internal.la
4055 lib_LTLIBRARIES += \
4056 libnss_myhostname.la
4059 # ------------------------------------------------------------------------------
4061 systemd_machined_SOURCES = \
4062 src/machine/machined.c \
4063 src/machine/machined.h
4065 systemd_machined_LDADD = \
4066 libsystemd-machine-core.la
4068 rootlibexec_PROGRAMS += \
4071 libsystemd_machine_core_la_SOURCES = \
4072 src/machine/machined-dbus.c \
4073 src/machine/machine.c \
4074 src/machine/machine.h \
4075 src/machine/machine-dbus.c
4077 libsystemd_machine_core_la_LIBADD = \
4078 libsystemd-label.la \
4079 libsystemd-internal.la \
4080 libudev-internal.la \
4081 libsystemd-shared.la
4083 noinst_LTLIBRARIES += \
4084 libsystemd-machine-core.la
4086 machinectl_SOURCES = \
4087 src/machine/machinectl.c
4089 machinectl_LDADD = \
4090 libsystemd-internal.la \
4091 libsystemd-shared.la
4093 rootbin_PROGRAMS += \
4096 dist_bashcompletion_DATA += \
4097 shell-completion/bash/machinectl
4099 test_machine_tables_SOURCES = \
4100 src/machine/test-machine-tables.c
4102 test_machine_tables_LDADD = \
4103 libsystemd-machine-core.la
4108 nodist_systemunit_DATA += \
4109 units/systemd-machined.service
4111 dist_systemunit_DATA += \
4112 units/machine.slice \
4113 units/org.freedesktop.machine1.busname
4115 dist_dbussystemservice_DATA += \
4116 src/machine/org.freedesktop.machine1.service
4118 dist_dbuspolicy_DATA += \
4119 src/machine/org.freedesktop.machine1.conf
4121 dist_zshcompletion_DATA += \
4122 shell-completion/zsh/_machinectl \
4123 shell-completion/zsh/_sd_machines
4125 SYSTEM_UNIT_ALIASES += \
4126 systemd-machined.service dbus-org.freedesktop.machine1.service
4128 BUSNAMES_TARGET_WANTS += \
4129 org.freedesktop.machine1.busname
4132 units/systemd-machined.service.in
4136 # ------------------------------------------------------------------------------
4138 rootlibexec_PROGRAMS += \
4141 systemd_networkd_SOURCES = \
4142 src/network/networkd.c
4144 systemd_networkd_LDADD = \
4145 libsystemd-networkd-core.la
4147 noinst_LTLIBRARIES += \
4148 libsystemd-networkd-core.la
4150 libsystemd_networkd_core_la_SOURCES = \
4151 src/libsystemd-network/network-internal.h \
4152 src/network/networkd.h \
4153 src/network/networkd-link.c \
4154 src/network/networkd-netdev.c \
4155 src/network/networkd-network.c \
4156 src/network/networkd-address.c \
4157 src/network/networkd-route.c \
4158 src/network/networkd-manager.c
4160 nodist_libsystemd_networkd_core_la_SOURCES = \
4161 src/network/networkd-network-gperf.c \
4162 src/network/networkd-netdev-gperf.c
4164 libsystemd_networkd_core_la_LIBADD = \
4165 libudev-internal.la \
4166 libsystemd-internal.la \
4167 libsystemd-network.la \
4168 libsystemd-label.la \
4169 libsystemd-shared.la
4171 nodist_systemunit_DATA += \
4172 units/systemd-networkd.service \
4173 units/systemd-networkd-wait-online.service
4175 GENERAL_ALIASES += \
4176 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4177 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4179 rootlibexec_PROGRAMS += \
4180 systemd-networkd-wait-online
4182 systemd_networkd_wait_online_SOURCES = \
4183 src/libsystemd-network/network-internal.h \
4184 src/network/networkd-wait-online.c \
4185 src/network/networkd-wait-online.h
4187 systemd_networkd_wait_online_LDADD = \
4188 libsystemd-internal.la \
4189 libsystemd-network.la
4191 test_network_SOURCES = \
4192 src/network/test-network.c
4194 test_network_LDADD = \
4195 libsystemd-networkd-core.la
4201 src/network/networkd-network-gperf.gperf \
4202 src/network/networkd-netdev-gperf.gperf \
4203 units/systemd-networkd.service.in
4206 src/network/networkd-network-gperf.c \
4207 src/network/networkd-netdev-gperf.c
4210 # ------------------------------------------------------------------------------
4212 systemd_logind_SOURCES = \
4213 src/login/logind.c \
4216 nodist_systemd_logind_SOURCES = \
4217 src/login/logind-gperf.c
4219 systemd_logind_LDADD = \
4220 libsystemd-logind-core.la
4222 libsystemd_logind_core_la_SOURCES = \
4223 src/login/logind-core.c \
4224 src/login/logind-device.c \
4225 src/login/logind-device.h \
4226 src/login/logind-button.c \
4227 src/login/logind-button.h \
4228 src/login/logind-action.c \
4229 src/login/logind-action.h \
4230 src/login/logind-seat.c \
4231 src/login/logind-seat.h \
4232 src/login/logind-session.c \
4233 src/login/logind-session.h \
4234 src/login/logind-session-device.c \
4235 src/login/logind-session-device.h \
4236 src/login/logind-user.c \
4237 src/login/logind-user.h \
4238 src/login/logind-inhibit.c \
4239 src/login/logind-inhibit.h \
4240 src/login/logind-dbus.c \
4241 src/login/logind-session-dbus.c \
4242 src/login/logind-seat-dbus.c \
4243 src/login/logind-user-dbus.c \
4244 src/login/logind-acl.h
4246 libsystemd_logind_core_la_LIBADD = \
4247 libsystemd-label.la \
4248 libsystemd-capability.la \
4249 libsystemd-internal.la \
4250 libudev-internal.la \
4251 libsystemd-shared.la
4254 libsystemd_logind_core_la_SOURCES += \
4255 src/login/logind-acl.c
4257 libsystemd_logind_core_la_LIBADD += \
4261 noinst_LTLIBRARIES += \
4262 libsystemd-logind-core.la
4264 systemd_user_sessions_SOURCES = \
4265 src/login/user-sessions.c
4267 systemd_user_sessions_LDADD = \
4268 libsystemd-shared.la
4270 rootlibexec_PROGRAMS += \
4272 systemd-user-sessions
4274 loginctl_SOURCES = \
4275 src/login/loginctl.c \
4276 src/login/sysfs-show.c
4279 libsystemd-internal.la \
4280 libudev-internal.la \
4281 libsystemd-shared.la
4283 rootbin_PROGRAMS += \
4286 dist_bashcompletion_DATA += \
4287 shell-completion/bash/loginctl
4289 dist_zshcompletion_DATA += \
4290 shell-completion/zsh/_loginctl \
4291 shell-completion/zsh/_systemd-inhibit
4293 systemd_inhibit_SOURCES = \
4296 systemd_inhibit_LDADD = \
4297 libsystemd-internal.la \
4298 libsystemd-shared.la
4300 rootbin_PROGRAMS += \
4303 test_login_SOURCES = \
4304 src/libsystemd/sd-login/test-login.c
4306 test_login_LDADD = \
4307 libsystemd-internal.la \
4308 libsystemd-shared.la
4310 test_login_shared_SOURCES = \
4311 src/login/test-login-shared.c
4313 test_login_shared_LDADD = \
4314 libsystemd-internal.la \
4315 libsystemd-shared.la
4317 test_inhibit_SOURCES = \
4318 src/login/test-inhibit.c
4320 test_inhibit_LDADD = \
4321 libsystemd-internal.la \
4322 libsystemd-shared.la
4324 test_login_tables_SOURCES = \
4325 src/login/test-login-tables.c
4327 test_login_tables_LDADD = \
4328 libsystemd-logind-core.la
4339 pam_systemd_la_SOURCES = \
4340 src/login/pam-module.c
4342 pam_systemd_la_CFLAGS = \
4347 pam_systemd_la_LDFLAGS = \
4353 -export-symbols-regex '^pam_sm_.*'
4355 pam_systemd_la_LIBADD = \
4356 libsystemd-capability.la \
4357 libsystemd-internal.la \
4358 libsystemd-shared.la \
4361 pamlib_LTLIBRARIES = \
4364 dist_pamconf_DATA = \
4365 src/login/systemd-user
4368 nodist_systemunit_DATA += \
4369 units/systemd-logind.service \
4370 units/systemd-user-sessions.service
4372 dist_systemunit_DATA += \
4374 units/org.freedesktop.login1.busname
4376 dist_dbussystemservice_DATA += \
4377 src/login/org.freedesktop.login1.service
4379 dist_dbuspolicy_DATA += \
4380 src/login/org.freedesktop.login1.conf
4382 dist_pkgsysconf_DATA += \
4383 src/login/logind.conf
4385 polkitpolicy_files += \
4386 src/login/org.freedesktop.login1.policy
4391 MULTI_USER_TARGET_WANTS += \
4392 systemd-logind.service \
4393 systemd-user-sessions.service
4395 SYSTEM_UNIT_ALIASES += \
4396 systemd-logind.service dbus-org.freedesktop.login1.service
4398 BUSNAMES_TARGET_WANTS += \
4399 org.freedesktop.login1.busname
4401 if ENABLE_MULTI_SEAT_X
4403 systemd_multi_seat_x_SOURCES = \
4404 src/login/multi-seat-x.c
4406 systemd_multi_seat_x_LDADD = \
4407 libsystemd-label.la \
4408 libsystemd-shared.la
4410 rootlibexec_PROGRAMS += \
4411 systemd-multi-seat-x
4415 dist_udevrules_DATA += \
4416 src/login/70-uaccess.rules \
4417 src/login/70-power-switch.rules
4419 nodist_udevrules_DATA += \
4420 src/login/71-seat.rules \
4421 src/login/73-seat-late.rules
4424 src/login/logind-gperf.c \
4425 src/login/71-seat.rules \
4426 src/login/73-seat-late.rules
4429 polkitpolicy_in_files += \
4430 src/login/org.freedesktop.login1.policy.in
4433 src/login/logind-gperf.gperf \
4434 src/login/71-seat.rules.in \
4435 src/login/73-seat-late.rules.in \
4436 units/systemd-logind.service.in \
4437 units/systemd-user-sessions.service.in
4439 # ------------------------------------------------------------------------------
4440 if HAVE_PYTHON_DEVEL
4441 pkgpyexec_LTLIBRARIES = \
4448 _journal_la_SOURCES = \
4449 src/python-systemd/_journal.c
4451 _journal_la_CFLAGS = \
4453 -fvisibility=default \
4454 $(PYTHON_DEVEL_CFLAGS)
4456 _journal_la_LDFLAGS = \
4462 _journal_la_LIBADD = \
4463 $(PYTHON_DEVEL_LIBS) \
4466 id128_la_SOURCES = \
4467 src/python-systemd/id128.c \
4468 src/python-systemd/id128-constants.h \
4469 src/python-systemd/pyutil.c \
4470 src/python-systemd/pyutil.h
4474 -fvisibility=default \
4475 $(PYTHON_DEVEL_CFLAGS) \
4476 -I$(top_builddir)/src/python-systemd
4478 id128_la_LDFLAGS = \
4485 $(PYTHON_DEVEL_LIBS) \
4486 libsystemd-shared.la \
4489 _daemon_la_SOURCES = \
4490 src/python-systemd/_daemon.c \
4491 src/python-systemd/pyutil.c \
4492 src/python-systemd/pyutil.h
4494 _daemon_la_CFLAGS = \
4496 -fvisibility=default \
4497 $(PYTHON_DEVEL_CFLAGS) \
4498 -I$(top_builddir)/src/python-systemd
4500 _daemon_la_LDFLAGS = \
4506 _daemon_la_LIBADD = \
4507 $(PYTHON_DEVEL_LIBS) \
4508 libsystemd-shared.la \
4511 _reader_la_SOURCES = \
4512 src/python-systemd/_reader.c \
4513 src/python-systemd/pyutil.c \
4514 src/python-systemd/pyutil.h
4516 _reader_la_CFLAGS = \
4518 -fvisibility=default \
4519 $(PYTHON_DEVEL_CFLAGS)
4521 _reader_la_LDFLAGS = \
4527 _reader_la_LIBADD = \
4528 $(PYTHON_DEVEL_LIBS) \
4529 libsystemd-shared.la \
4532 login_la_SOURCES = \
4533 src/python-systemd/login.c \
4534 src/python-systemd/pyutil.c \
4535 src/python-systemd/pyutil.h
4539 -fvisibility=default \
4540 $(PYTHON_DEVEL_CFLAGS)
4542 login_la_LDFLAGS = \
4549 $(PYTHON_DEVEL_LIBS) \
4550 libsystemd-shared.la \
4553 dist_pkgpyexec_PYTHON = \
4554 src/python-systemd/journal.py \
4555 src/python-systemd/daemon.py \
4556 src/python-systemd/__init__.py
4558 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4559 $(AM_V_at)$(MKDIR_P) $(dir $@)
4560 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4563 src/python-systemd/id128-constants.h
4565 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4567 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4568 $(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/
4569 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4572 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4573 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4576 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4577 $(MAKE) DESTDIR="$$dir" install && \
4578 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4583 CLEAN_LOCAL_HOOKS += clean-sphinx
4585 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4588 -rm -rf docs/html/python-systemd/
4590 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4592 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4593 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4595 # ------------------------------------------------------------------------------
4596 if ENABLE_COMPAT_LIBS
4598 src/compat-libs/linkwarning.h
4600 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4601 $(AM_V_at)$(MKDIR_P) $(dir $@)
4602 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4605 libsystemd-journal.c \
4606 libsystemd-login.c \
4607 libsystemd-id128.c \
4610 libsystemd_journal_la_SOURCES = \
4611 libsystemd-journal.c \
4612 src/compat-libs/libsystemd-journal.sym
4614 libsystemd_journal_la_CPPFLAGS = \
4616 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4618 libsystemd_journal_la_LDFLAGS = \
4620 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4621 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
4623 libsystemd_journal_la_LIBADD = \
4624 libsystemd-journal-internal.la \
4625 libsystemd-internal.la \
4626 libsystemd-shared.la
4628 libsystemd_login_la_SOURCES = \
4629 libsystemd-login.c \
4630 src/compat-libs/libsystemd-login.sym
4632 libsystemd_login_la_CPPFLAGS = \
4634 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4636 libsystemd_login_la_LDFLAGS = \
4638 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4639 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
4641 libsystemd_login_la_LIBADD = \
4642 libsystemd-internal.la \
4643 libsystemd-shared.la
4645 libsystemd_id128_la_SOURCES = \
4646 libsystemd-id128.c \
4647 src/compat-libs/libsystemd-id128.sym
4649 libsystemd_id128_la_CPPFLAGS = \
4651 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4653 libsystemd_id128_la_LDFLAGS = \
4655 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
4656 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
4658 libsystemd_id128_la_LIBADD = \
4659 libsystemd-internal.la \
4660 libsystemd-shared.la
4662 libsystemd_daemon_la_SOURCES = \
4663 libsystemd-daemon.c \
4664 src/compat-libs/libsystemd-daemon.sym
4666 libsystemd_daemon_la_CPPFLAGS = \
4668 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4670 libsystemd_daemon_la_LDFLAGS = \
4672 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
4673 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
4675 libsystemd_daemon_la_LIBADD = \
4676 libsystemd-internal.la \
4677 libsystemd-shared.la
4679 lib_LTLIBRARIES += \
4680 libsystemd-journal.la \
4681 libsystemd-login.la \
4682 libsystemd-id128.la \
4683 libsystemd-daemon.la
4685 pkgconfiglib_DATA += \
4686 src/compat-libs/libsystemd-journal.pc \
4687 src/compat-libs/libsystemd-login.pc \
4688 src/compat-libs/libsystemd-id128.pc \
4689 src/compat-libs/libsystemd-daemon.pc
4691 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4692 compat-lib-install-hook:
4693 libname=libsystemd-login.so && $(move-to-rootlibdir)
4694 libname=libsystemd-journal.so && $(move-to-rootlibdir)
4695 libname=libsystemd-id128.so && $(move-to-rootlibdir)
4696 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
4698 compat-lib-uninstall-hook:
4699 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4700 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
4701 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
4702 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
4704 INSTALL_EXEC_HOOKS += compat-lib-install-hook
4705 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
4709 src/compat-libs/libsystemd-journal.pc.in \
4710 src/compat-libs/libsystemd-login.pc.in \
4711 src/compat-libs/libsystemd-id128.pc.in \
4712 src/compat-libs/libsystemd-daemon.pc.in
4714 # ------------------------------------------------------------------------------
4716 '|rootlibexecdir=$(rootlibexecdir)|' \
4717 '|rootbindir=$(rootbindir)|' \
4718 '|bindir=$(bindir)|' \
4719 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4720 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4721 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4722 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4723 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4724 '|pkgdatadir=$(pkgdatadir)|' \
4725 '|systemunitdir=$(systemunitdir)|' \
4726 '|userunitdir=$(userunitdir)|' \
4727 '|systempresetdir=$(systempresetdir)|' \
4728 '|userpresetdir=$(userpresetdir)|' \
4729 '|udevhwdbdir=$(udevhwdbdir)|' \
4730 '|udevrulesdir=$(udevrulesdir)|' \
4731 '|catalogdir=$(catalogdir)|' \
4732 '|tmpfilesdir=$(tmpfilesdir)|' \
4733 '|sysctldir=$(sysctldir)|' \
4734 '|systemgeneratordir=$(systemgeneratordir)|' \
4735 '|usergeneratordir=$(usergeneratordir)|' \
4736 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4737 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4738 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4739 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4740 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4741 '|prefix=$(prefix)|' \
4742 '|exec_prefix=$(exec_prefix)|' \
4743 '|libdir=$(libdir)|' \
4744 '|includedir=$(includedir)|' \
4745 '|VERSION=$(VERSION)|' \
4746 '|rootprefix=$(rootprefix)|' \
4747 '|udevlibexecdir=$(udevlibexecdir)|' \
4748 '|SUSHELL=$(SUSHELL)|' \
4749 '|DEBUGTTY=$(DEBUGTTY)|' \
4752 '|MKDIR_P=$(MKDIR_P)|' \
4753 '|QUOTAON=$(QUOTAON)|' \
4754 '|QUOTACHECK=$(QUOTACHECK)|' \
4755 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4756 '|VARLOGDIR=$(varlogdir)|' \
4757 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4758 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4759 '|PYTHON=$(PYTHON)|' \
4760 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4763 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4764 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4773 sysctl.d/%: sysctl.d/%.in
4779 src/core/macros.%: src/core/macros.%.in
4782 src/%.policy.in: src/%.policy.in.in
4790 $(AM_V_GEN)chmod +x $@
4792 src/%.c: src/%.gperf
4793 $(AM_V_at)$(MKDIR_P) $(dir $@)
4794 $(AM_V_GPERF)$(GPERF) < $< > $@
4797 $(AM_V_at)$(MKDIR_P) $(dir $@)
4798 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4801 $(AM_V_at)$(MKDIR_P) $(dir $@)
4802 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4804 units/user/%: units/%.m4
4805 $(AM_V_at)$(MKDIR_P) $(dir $@)
4806 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4809 nodist_polkitpolicy_DATA = \
4810 $(polkitpolicy_files) \
4811 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4815 $(polkitpolicy_in_files) \
4816 $(polkitpolicy_in_in_files)
4819 $(nodist_systemunit_DATA) \
4820 $(nodist_userunit_DATA) \
4821 $(pkgconfigdata_DATA) \
4822 $(pkgconfiglib_DATA) \
4823 $(nodist_polkitpolicy_DATA)
4825 # ------------------------------------------------------------------------------
4827 man/custom-entities.ent: configure.ac
4828 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4829 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4830 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
4834 man/custom-entities.ent
4839 --stringparam man.output.quietly 1 \
4840 --stringparam funcsynopsis.style ansi \
4841 --stringparam man.authors.section.enabled 0 \
4842 --stringparam man.copyright.section.enabled 0 \
4843 --stringparam systemd.version $(VERSION) \
4844 --path '$(builddir)/man:$(srcdir)/man'
4846 XSLTPROC_PROCESS_MAN = \
4847 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4849 XSLTPROC_PROCESS_HTML = \
4850 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4852 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4853 $(XSLTPROC_PROCESS_MAN)
4855 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4856 $(XSLTPROC_PROCESS_MAN)
4858 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4859 $(XSLTPROC_PROCESS_MAN)
4861 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4862 $(XSLTPROC_PROCESS_MAN)
4864 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4865 $(XSLTPROC_PROCESS_MAN)
4867 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4868 $(XSLTPROC_PROCESS_HTML)
4871 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4877 man/custom-html.xsl \
4880 # ------------------------------------------------------------------------------
4883 docs/sysvinit/README
4888 docs/sysvinit/README: docs/sysvinit/README.in
4891 docs/var-log/README: docs/var-log/README.in
4895 docs/sysvinit/README \
4900 docs/sysvinit/README.in \
4901 docs/var-log/README.in
4903 SOCKETS_TARGET_WANTS += \
4904 systemd-initctl.socket \
4905 systemd-shutdownd.socket
4908 RUNLEVEL1_TARGET_WANTS += \
4909 systemd-update-utmp-runlevel.service
4910 RUNLEVEL2_TARGET_WANTS += \
4911 systemd-update-utmp-runlevel.service
4912 RUNLEVEL3_TARGET_WANTS += \
4913 systemd-update-utmp-runlevel.service
4914 RUNLEVEL4_TARGET_WANTS += \
4915 systemd-update-utmp-runlevel.service
4916 RUNLEVEL5_TARGET_WANTS += \
4917 systemd-update-utmp-runlevel.service
4919 SYSINIT_TARGET_WANTS += \
4920 systemd-update-utmp.service
4921 LOCAL_FS_TARGET_WANTS += \
4922 systemd-remount-fs.service \
4924 MULTI_USER_TARGET_WANTS += \
4926 systemd-ask-password-wall.path
4927 SYSINIT_TARGET_WANTS += \
4928 dev-hugepages.mount \
4930 sys-kernel-config.mount \
4931 sys-kernel-debug.mount \
4932 sys-fs-fuse-connections.mount \
4933 systemd-sysctl.service \
4934 systemd-ask-password-console.path
4937 SYSTEM_UNIT_ALIASES += \
4938 poweroff.target runlevel0.target \
4939 rescue.target runlevel1.target \
4940 multi-user.target runlevel2.target \
4941 multi-user.target runlevel3.target \
4942 multi-user.target runlevel4.target \
4943 graphical.target runlevel5.target \
4944 reboot.target runlevel6.target
4947 SYSTEM_UNIT_ALIASES += \
4948 graphical.target default.target \
4949 reboot.target ctrl-alt-del.target \
4950 getty@.service autovt@.service
4952 USER_UNIT_ALIASES += \
4953 $(systemunitdir)/shutdown.target shutdown.target \
4954 $(systemunitdir)/sockets.target sockets.target \
4955 $(systemunitdir)/busnames.target busnames.target \
4956 $(systemunitdir)/timers.target timers.target \
4957 $(systemunitdir)/paths.target paths.target \
4958 $(systemunitdir)/bluetooth.target bluetooth.target \
4959 $(systemunitdir)/printer.target printer.target \
4960 $(systemunitdir)/sound.target sound.target \
4961 $(systemunitdir)/smartcard.target smartcard.target
4963 GENERAL_ALIASES += \
4964 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4965 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4966 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4967 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4971 $(systemunitdir)/runlevel1.target.wants \
4972 $(systemunitdir)/runlevel2.target.wants \
4973 $(systemunitdir)/runlevel3.target.wants \
4974 $(systemunitdir)/runlevel4.target.wants \
4975 $(systemunitdir)/runlevel5.target.wants
4979 $(prefix)/lib/modules-load.d \
4980 $(sysconfdir)/modules-load.d \
4981 $(prefix)/lib/systemd/network \
4982 $(sysconfdir)/systemd/network \
4983 $(prefix)/lib/sysctl.d \
4984 $(sysconfdir)/sysctl.d \
4985 $(prefix)/lib/kernel/install.d \
4986 $(sysconfdir)/kernel/install.d \
4987 $(systemshutdowndir) \
4989 $(systemgeneratordir) \
4990 $(usergeneratordir) \
4993 $(pkgsysconfdir)/system \
4994 $(pkgsysconfdir)/system/multi-user.target.wants \
4995 $(pkgsysconfdir)/system/getty.target.wants \
4996 $(pkgsysconfdir)/user \
4997 $(dbussessionservicedir) \
4998 $(sysconfdir)/xdg/systemd
5000 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5002 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5004 install-data-hook: $(INSTALL_DATA_HOOKS)
5006 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5008 clean-local: $(CLEAN_LOCAL_HOOKS)
5009 rm -rf $(abs_srcdir)/install-tree
5010 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5011 $(abs_srcdir)/hwdb/iab.txt
5013 DISTCHECK_CONFIGURE_FLAGS = \
5014 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5015 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5016 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5017 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5018 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5019 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5020 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5021 --with-rootprefix=$$dc_install_base \
5022 --disable-split-usr \
5024 --enable-compat-libs
5027 DISTCHECK_CONFIGURE_FLAGS += \
5028 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5029 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5031 DISTCHECK_CONFIGURE_FLAGS += \
5032 --with-sysvinit-path= \
5033 --with-sysvrcnd-path=
5037 DISTCHECK_CONFIGURE_FLAGS += \
5041 # check "broken" platforms limited toolchains for link breakage before we release
5044 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5048 ( cd $(top_srcdir)/hwdb && \
5049 wget -N http://www.linux-usb.org/usb.ids \
5050 http://pci-ids.ucw.cz/v2.2/pci.ids \
5051 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5052 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5055 .PHONY: kdbus-update
5057 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5058 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5062 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5064 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5066 upload: all check dist
5067 scp systemd-$(VERSION).tar.xz $(www_target)
5070 doc-sync: all destdir-sphinx
5071 gtkdoc-rebase --html-dir=docs/libudev/html --online
5072 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5073 gtkdoc-rebase --html-dir=docs/gudev/html --online
5074 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5075 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5076 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5080 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5081 scp man/*.html tango:public/systemd-man/
5083 .PHONY: install-tree
5085 rm -rf $(abs_srcdir)/install-tree
5086 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5087 tree $(abs_srcdir)/install-tree
5089 # Let's run all tests of the test suite, but under valgrind. Let's
5090 # exclude the one perl script we have in there
5091 .PHONY: valgrind-tests
5092 valgrind-tests: $(TESTS)
5093 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5094 if file $$f | grep -q shell; then \
5095 echo -e "$${x}Skipping non-binary $$f"; else \
5096 echo -e "$${x}Running $$f"; \
5097 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5102 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5104 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5105 $(AM_V_GEN)cat $^ > $@
5107 .PHONY: check-api-docs
5108 check-api-docs: exported man
5109 $(AM_V_GEN)for symbol in `cat exported` ; do \
5110 if test -f $(builddir)/man/$$symbol.html ; then \
5111 echo " Symbol $$symbol() is documented." ; \
5113 echo "‣ Symbol $$symbol() lacks documentation." ; \
5117 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5118 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5120 undefined defined: $(ALL_OBJECTS)
5121 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5122 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5123 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5129 .PHONY: check-api-unused
5130 check-api-unused: defined undefined exported
5131 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5133 .PHONY: check-includes
5134 check-includes: $(top_srcdir)/tools/check-includes.pl
5135 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5136 | xargs $(top_srcdir)/tools/check-includes.pl
5139 $(top_srcdir)/tools/check-includes.pl
5141 # Stupid test that everything purported to be exported really is
5142 define generate-sym-test
5143 $(AM_V_at)$(MKDIR_P) $(dir $@)
5144 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5145 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5146 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5147 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5148 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5149 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5150 $(AM_V_at)printf 'return 0; }\n' >> $@
5153 test-libsystemd-sym.c: \
5154 $(top_builddir)/src/libsystemd/libsystemd.sym \
5155 src/systemd/sd-journal.h \
5156 src/systemd/sd-daemon.h \
5157 src/systemd/sd-login.h \
5158 src/systemd/sd-bus.h \
5159 src/systemd/sd-utf8.h
5160 $(generate-sym-test)
5162 test-libudev-sym.c: \
5163 src/libudev/libudev.sym \
5165 $(generate-sym-test)
5167 test_libsystemd_sym_SOURCES = \
5168 test-libsystemd-sym.c
5169 test_libsystemd_sym_LDADD = \
5172 test_libudev_sym_SOURCES = \
5174 test_libudev_sym_CFLAGS = \
5176 -Wno-deprecated-declarations
5177 test_libudev_sym_LDADD = \
5181 $(test_libsystemd_sym_SOURCES) \
5182 $(test_libudev_sym_SOURCES)
5185 test-libsystemd-sym \
5188 if ENABLE_COMPAT_LIBS
5189 test-libsystemd-daemon-sym.c: \
5190 src/compat-libs/libsystemd-daemon.sym \
5191 src/systemd/sd-daemon.h
5192 $(generate-sym-test)
5194 test-libsystemd-id128-sym.c: \
5195 src/compat-libs/libsystemd-id128.sym \
5196 src/systemd/sd-id128.h
5197 $(generate-sym-test)
5199 test-libsystemd-journal-sym.c: \
5200 src/compat-libs/libsystemd-journal.sym \
5201 src/systemd/sd-journal.h
5202 $(generate-sym-test)
5204 test-libsystemd-login-sym.c: \
5205 src/compat-libs/libsystemd-login.sym \
5206 src/systemd/sd-login.h
5207 $(generate-sym-test)
5209 test_libsystemd_daemon_sym_SOURCES = \
5210 test-libsystemd-daemon-sym.c
5211 test_libsystemd_daemon_sym_LDADD = \
5212 libsystemd-daemon.la
5214 test_libsystemd_id128_sym_SOURCES = \
5215 test-libsystemd-id128-sym.c
5216 test_libsystemd_id128_sym_LDADD = \
5219 test_libsystemd_journal_sym_SOURCES = \
5220 test-libsystemd-journal-sym.c
5221 test_libsystemd_journal_sym_LDADD = \
5222 libsystemd-journal.la
5224 test_libsystemd_login_sym_SOURCES = \
5225 test-libsystemd-login-sym.c
5226 test_libsystemd_login_sym_LDADD = \
5230 $(test_libsystemd_journal_sym_SOURCES) \
5231 $(test_libsystemd_login_sym_SOURCES) \
5232 $(test_libsystemd_id128_sym_SOURCES) \
5233 $(test_libsystemd_daemon_sym_SOURCES)
5236 test-libsystemd-journal-sym \
5237 test-libsystemd-login-sym \
5238 test-libsystemd-id128-sym \
5239 test-libsystemd-daemon-sym
5244 cppcheck --enable=all -q $(top_srcdir)
5246 # Used to extract compile flags for YCM.
5251 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u