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=1
48 LIBSYSTEMD_LOGIN_AGE=9
50 LIBSYSTEMD_DAEMON_CURRENT=0
51 LIBSYSTEMD_DAEMON_REVISION=10
52 LIBSYSTEMD_DAEMON_AGE=0
54 LIBSYSTEMD_ID128_CURRENT=0
55 LIBSYSTEMD_ID128_REVISION=26
56 LIBSYSTEMD_ID128_AGE=0
58 LIBSYSTEMD_JOURNAL_CURRENT=11
59 LIBSYSTEMD_JOURNAL_REVISION=3
60 LIBSYSTEMD_JOURNAL_AGE=11
62 # Dirs of external packages
63 dbuspolicydir=@dbuspolicydir@
64 dbussessionservicedir=@dbussessionservicedir@
65 dbussystemservicedir=@dbussystemservicedir@
66 dbusinterfacedir=@dbusinterfacedir@
68 pamconfdir=@pamconfdir@
69 pkgconfigdatadir=$(datadir)/pkgconfig
70 pkgconfiglibdir=$(libdir)/pkgconfig
71 polkitpolicydir=$(datadir)/polkit-1/actions
72 bashcompletiondir=@bashcompletiondir@
73 zshcompletiondir=@zshcompletiondir@
74 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
75 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
76 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
77 varlogdir=$(localstatedir)/log
78 systemdstatedir=$(localstatedir)/lib/systemd
79 catalogstatedir=$(systemdstatedir)/catalog
81 # Our own, non-special dirs
82 pkgsysconfdir=$(sysconfdir)/systemd
83 userunitdir=$(prefix)/lib/systemd/user
84 userpresetdir=$(prefix)/lib/systemd/user-preset
85 tmpfilesdir=$(prefix)/lib/tmpfiles.d
86 sysctldir=$(prefix)/lib/sysctl.d
87 pkgincludedir=$(includedir)/systemd
88 systemgeneratordir=$(rootlibexecdir)/system-generators
89 usergeneratordir=$(prefix)/lib/systemd/user-generators
90 systemshutdowndir=$(rootlibexecdir)/system-shutdown
91 systemsleepdir=$(rootlibexecdir)/system-sleep
92 systemunitdir=$(rootprefix)/lib/systemd/system
93 systempresetdir=$(rootprefix)/lib/systemd/system-preset
94 udevlibexecdir=$(rootprefix)/lib/udev
95 udevhomedir=$(udevlibexecdir)
96 udevrulesdir=$(udevlibexecdir)/rules.d
97 udevhwdbdir=$(udevlibexecdir)/hwdb.d
98 catalogdir=$(prefix)/lib/systemd/catalog
99 kernelinstalldir = $(prefix)/lib/kernel/install.d
101 # And these are the special ones for /
102 rootprefix=@rootprefix@
103 rootbindir=$(rootprefix)/bin
104 rootlibexecdir=$(rootprefix)/lib/systemd
106 CLEANFILES = $(BUILT_SOURCES)
111 UNINSTALL_EXEC_HOOKS =
113 UNINSTALL_DATA_HOOKS =
114 DISTCLEAN_LOCAL_HOOKS =
122 polkitpolicy_in_in_files =
123 polkitpolicy_in_files =
125 dist_udevrules_DATA =
126 nodist_udevrules_DATA =
127 dist_pkgsysconf_DATA =
129 dist_dbuspolicy_DATA =
131 dist_dbussystemservice_DATA =
137 noinst_PROGRAMS = $(manual_tests) $(tests)
143 udevlibexec_PROGRAMS =
146 -include $(top_builddir)/config.h \
147 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
148 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
149 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
150 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
151 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
152 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
153 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
154 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
155 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
156 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
157 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
158 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
159 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
160 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
161 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
162 -DROOTPREFIX=\"$(rootprefix)\" \
163 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
164 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
165 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
166 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
167 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
168 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
169 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
170 -DX_SERVER=\"$(bindir)/X\" \
171 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
172 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
173 -DQUOTACHECK=\"$(QUOTACHECK)\" \
174 -DKEXEC=\"$(KEXEC)\" \
175 -I $(top_srcdir)/src \
176 -I $(top_srcdir)/src/shared \
177 -I $(top_srcdir)/src/login \
178 -I $(top_srcdir)/src/journal \
179 -I $(top_srcdir)/src/systemd \
180 -I $(top_builddir)/src/core \
181 -I $(top_srcdir)/src/core \
182 -I $(top_srcdir)/src/libudev \
183 -I $(top_srcdir)/src/udev \
184 -I $(top_builddir)/src/udev \
185 -I $(top_srcdir)/src/libsystemd-bus \
188 AM_CFLAGS = $(OUR_CFLAGS)
189 AM_LDFLAGS = $(OUR_LDFLAGS)
191 # ------------------------------------------------------------------------------
192 define move-to-rootlibdir
193 if test "$(libdir)" != "$(rootlibdir)"; then \
194 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
195 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
196 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
197 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
198 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
204 RUNLEVEL1_TARGET_WANTS =
205 RUNLEVEL2_TARGET_WANTS =
206 RUNLEVEL3_TARGET_WANTS =
207 RUNLEVEL4_TARGET_WANTS =
208 RUNLEVEL5_TARGET_WANTS =
209 SHUTDOWN_TARGET_WANTS =
210 LOCAL_FS_TARGET_WANTS =
211 MULTI_USER_TARGET_WANTS =
212 SYSINIT_TARGET_WANTS =
213 SOCKETS_TARGET_WANTS =
214 TIMERS_TARGET_WANTS =
216 SYSTEM_UNIT_ALIASES =
221 install-target-wants-hook:
222 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
223 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
224 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
225 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
226 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
227 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
228 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
229 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
230 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
231 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
232 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
233 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
236 [ -z "$$what" ] || ( \
237 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
238 $(MKDIR_P) -m 0755 $$dir && \
241 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
244 install-directories-hook:
245 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
247 install-aliases-hook:
248 set -- $(SYSTEM_UNIT_ALIASES) && \
249 dir=$(systemunitdir) && $(install-aliases)
250 set -- $(USER_UNIT_ALIASES) && \
251 dir=$(userunitdir) && $(install-aliases)
252 set -- $(GENERAL_ALIASES) && \
253 dir= && $(install-aliases)
255 define install-aliases
256 while [ -n "$$1" ]; do \
257 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
258 rm -f $(DESTDIR)$$dir/$$2 && \
259 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
260 shift 2 || exit $$?; \
264 INSTALL_EXEC_HOOKS += \
265 install-target-wants-hook \
266 install-directories-hook \
269 # ------------------------------------------------------------------------------
270 AM_V_M4 = $(AM_V_M4_$(V))
271 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
272 AM_V_M4_0 = @echo " M4 " $@;
274 AM_V_XSLT = $(AM_V_XSLT_$(V))
275 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
276 AM_V_XSLT_0 = @echo " XSLT " $@;
278 AM_V_GPERF = $(AM_V_GPERF_$(V))
279 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
280 AM_V_GPERF_0 = @echo " GPERF " $@;
282 AM_V_LN = $(AM_V_LN_$(V))
283 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
284 AM_V_LN_0 = @echo " LN " $@;
286 # ------------------------------------------------------------------------------
290 systemd-ask-password \
291 systemd-tty-ask-password-agent \
292 systemd-machine-id-setup
297 systemd-stdio-bridge \
299 systemd-detect-virt \
306 src/kernel-install/kernel-install
308 dist_kernelinstall_SCRIPTS = \
309 src/kernel-install/50-depmod.install \
310 src/kernel-install/90-loaderentry.install
312 rootlibexec_PROGRAMS = \
314 systemd-cgroups-agent \
316 systemd-update-utmp \
320 systemd-reply-password \
326 systemgenerator_PROGRAMS = \
327 systemd-getty-generator \
328 systemd-fstab-generator \
329 systemd-system-update-generator
331 systemd_analyze_SOURCES = \
332 src/analyze/systemd-analyze.c
334 systemd_analyze_CFLAGS = \
338 systemd_analyze_LDADD = \
339 libsystemd-shared.la \
342 dist_bashcompletion_DATA = \
343 shell-completion/bash/journalctl \
344 shell-completion/bash/systemctl \
345 shell-completion/bash/systemd-analyze \
346 shell-completion/bash/systemd-run \
347 shell-completion/bash/udevadm \
348 shell-completion/bash/kernel-install
350 dist_zshcompletion_DATA = \
351 shell-completion/zsh/_systemctl \
352 shell-completion/zsh/_journalctl \
353 shell-completion/zsh/_udevadm \
354 shell-completion/zsh/_kernel-install \
355 shell-completion/zsh/_systemd-nspawn \
356 shell-completion/zsh/_systemd-analyze \
357 shell-completion/zsh/_sd_hosts_or_user_at_host \
358 shell-completion/zsh/_systemd-delta \
359 shell-completion/zsh/_systemd
362 sysctl.d/50-default.conf
364 dist_systemunit_DATA = \
365 units/graphical.target \
366 units/multi-user.target \
367 units/emergency.service \
368 units/emergency.target \
369 units/sysinit.target \
374 units/local-fs.target \
375 units/local-fs-pre.target \
376 units/initrd.target \
377 units/initrd-fs.target \
378 units/initrd-root-fs.target \
379 units/remote-fs.target \
380 units/remote-fs-pre.target \
381 units/network.target \
382 units/network-online.target \
383 units/nss-lookup.target \
384 units/nss-user-lookup.target \
385 units/hibernate.target \
386 units/hybrid-sleep.target \
387 units/poweroff.target \
388 units/reboot.target \
389 units/rescue.target \
390 units/rpcbind.target \
391 units/time-sync.target \
392 units/shutdown.target \
394 units/umount.target \
395 units/sigpwr.target \
397 units/sockets.target \
398 units/timers.target \
400 units/suspend.target \
402 units/slices.target \
405 units/systemd-initctl.socket \
406 units/systemd-shutdownd.socket \
407 units/syslog.socket \
408 units/dev-hugepages.mount \
409 units/dev-mqueue.mount \
410 units/sys-kernel-config.mount \
411 units/sys-kernel-debug.mount \
412 units/sys-fs-fuse-connections.mount \
414 units/printer.target \
416 units/bluetooth.target \
417 units/smartcard.target \
418 units/systemd-ask-password-wall.path \
419 units/systemd-ask-password-console.path \
420 units/systemd-udevd-control.socket \
421 units/systemd-udevd-kernel.socket \
422 units/system-update.target \
423 units/initrd-switch-root.target
425 nodist_systemunit_DATA = \
426 units/getty@.service \
427 units/serial-getty@.service \
428 units/console-shell.service \
429 units/console-getty.service \
430 units/systemd-initctl.service \
431 units/systemd-shutdownd.service \
432 units/systemd-remount-fs.service \
433 units/systemd-update-utmp.service \
434 units/systemd-update-utmp-runlevel.service \
435 units/systemd-ask-password-wall.service \
436 units/systemd-ask-password-console.service \
437 units/systemd-sysctl.service \
438 units/emergency.service \
439 units/rescue.service \
440 units/user@.service \
441 units/systemd-hibernate.service \
442 units/systemd-hybrid-sleep.service \
443 units/systemd-suspend.service \
444 units/systemd-halt.service \
445 units/systemd-poweroff.service \
446 units/systemd-reboot.service \
447 units/systemd-kexec.service \
448 units/systemd-fsck@.service \
449 units/systemd-fsck-root.service \
450 units/systemd-udevd.service \
451 units/systemd-udev-trigger.service \
452 units/systemd-udev-settle.service \
453 units/debug-shell.service \
454 units/initrd-parse-etc.service \
455 units/initrd-cleanup.service \
456 units/initrd-udevadm-cleanup-db.service \
457 units/initrd-switch-root.service \
458 units/systemd-nspawn@.service
460 dist_userunit_DATA = \
461 units/user/default.target \
462 units/user/exit.target
464 nodist_userunit_DATA = \
465 units/user/systemd-exit.service
468 units/getty@.service.m4 \
469 units/serial-getty@.service.m4 \
470 units/console-shell.service.m4.in \
471 units/console-getty.service.m4.in \
472 units/rescue.service.m4.in \
473 units/systemd-initctl.service.in \
474 units/systemd-shutdownd.service.in \
475 units/systemd-remount-fs.service.in \
476 units/systemd-update-utmp.service.in \
477 units/systemd-update-utmp-runlevel.service.in \
478 units/systemd-ask-password-wall.service.in \
479 units/systemd-ask-password-console.service.in \
480 units/systemd-sysctl.service.in \
481 units/emergency.service.in \
482 units/systemd-halt.service.in \
483 units/systemd-poweroff.service.in \
484 units/systemd-reboot.service.in \
485 units/systemd-kexec.service.in \
486 units/user/systemd-exit.service.in \
487 units/systemd-fsck@.service.in \
488 units/systemd-fsck-root.service.in \
489 units/user@.service.in \
490 units/systemd-udevd.service \
491 units/systemd-udev-trigger.service \
492 units/systemd-udev-settle.service \
493 units/debug-shell.service.in \
494 units/systemd-hibernate.service.in \
495 units/systemd-hybrid-sleep.service.in \
496 units/systemd-suspend.service.in \
497 units/quotaon.service.in \
498 units/initrd-parse-etc.service.in \
499 units/initrd-cleanup.service.in \
500 units/initrd-udevadm-cleanup-db.service.in \
501 units/initrd-switch-root.service.in \
502 units/systemd-nspawn@.service.in \
506 units/console-shell.service.m4 \
507 units/console-getty.service.m4 \
508 units/rescue.service.m4
511 nodist_systemunit_DATA += \
512 units/rc-local.service \
513 units/halt-local.service
515 systemgenerator_PROGRAMS += \
516 systemd-rc-local-generator
520 units/rc-local.service.in \
521 units/halt-local.service.in
523 # automake is broken and can't handle files with a dash in front
524 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
526 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
528 units-uninstall-hook:
529 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
531 INSTALL_DATA_HOOKS += units-install-hook
532 UNINSTALL_DATA_HOOKS += units-uninstall-hook
542 @INTLTOOL_POLICY_RULE@
544 # ------------------------------------------------------------------------------
549 include Makefile-man.am
552 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
555 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
557 ${XML_FILES:.xml=.html}
559 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
576 $(AM_V_at)$(MKDIR_P) $(dir $@)
577 $(AM_V_LN)$(LN_S) -f ../../man $@
586 man/index.html: man/systemd.index.html
587 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
595 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
596 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
597 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
599 update-man-list: make-man-rules.py $(XML_GLOB)
600 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
601 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
602 @echo "Makefile-man.am has been regenerated"
604 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
605 $(AM_V_at)$(MKDIR_P) $(dir $@)
606 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
608 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
609 $(AM_V_at)$(MKDIR_P) $(dir $@)
610 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
613 man/systemd.index.xml \
615 man/systemd.directives.xml
618 man/systemd.index.xml \
619 man/systemd.directives.xml
631 make-directive-index.py \
634 # ------------------------------------------------------------------------------
635 noinst_LTLIBRARIES += \
638 libsystemd_shared_la_SOURCES = \
639 src/shared/linux/auto_dev-ioctl.h \
640 src/shared/linux/fanotify.h \
641 src/shared/linux/seccomp.h \
642 src/shared/linux/seccomp-bpf.h \
643 src/shared/missing.h \
647 src/shared/device-nodes.c \
648 src/shared/device-nodes.h \
649 src/shared/sparse-endian.h \
652 src/shared/udev-util.h \
655 src/shared/efivars.c \
656 src/shared/efivars.h \
657 src/shared/path-util.c \
658 src/shared/path-util.h \
659 src/shared/time-util.c \
660 src/shared/time-util.h \
661 src/shared/hashmap.c \
662 src/shared/hashmap.h \
669 src/shared/sleep-config.c \
670 src/shared/sleep-config.h \
673 src/shared/env-util.c \
674 src/shared/env-util.h \
675 src/shared/strbuf.c \
676 src/shared/strbuf.h \
677 src/shared/strxcpyx.c \
678 src/shared/strxcpyx.h \
679 src/shared/conf-parser.c \
680 src/shared/conf-parser.h \
683 src/shared/ratelimit.h \
684 src/shared/ratelimit.c \
685 src/shared/exit-status.c \
686 src/shared/exit-status.h \
689 src/shared/gunicode.c \
690 src/shared/gunicode.h \
693 src/shared/ioprio.h \
694 src/shared/socket-util.c \
695 src/shared/socket-util.h \
696 src/shared/conf-files.c \
697 src/shared/conf-files.h \
698 src/shared/cgroup-util.c \
699 src/shared/cgroup-util.h \
700 src/shared/cgroup-show.c \
701 src/shared/cgroup-show.h \
702 src/shared/unit-name.c \
703 src/shared/unit-name.h \
704 src/shared/utmp-wtmp.c \
705 src/shared/utmp-wtmp.h \
706 src/shared/watchdog.c \
707 src/shared/watchdog.h \
708 src/shared/spawn-ask-password-agent.c \
709 src/shared/spawn-ask-password-agent.h \
710 src/shared/replace-var.c \
711 src/shared/replace-var.h \
712 src/shared/spawn-polkit-agent.c \
713 src/shared/spawn-polkit-agent.h \
714 src/shared/hwclock.c \
715 src/shared/hwclock.h \
716 src/shared/time-dst.c \
717 src/shared/time-dst.h \
718 src/shared/calendarspec.c \
719 src/shared/calendarspec.h \
720 src/shared/fileio.c \
721 src/shared/fileio.h \
722 src/shared/output-mode.h \
723 src/shared/MurmurHash3.c \
724 src/shared/MurmurHash3.h \
725 src/shared/acpi-fpdt.h \
726 src/shared/acpi-fpdt.c \
727 src/shared/boot-timestamps.h \
728 src/shared/boot-timestamps.c \
729 src/shared/refcnt.h \
732 src/shared/smack-util.c \
733 src/shared/smack-util.h \
734 src/shared/apparmor-util.c \
735 src/shared/apparmor-util.h \
736 src/shared/ima-util.c \
737 src/shared/ima-util.h
739 #-------------------------------------------------------------------------------
740 noinst_LTLIBRARIES += \
743 libsystemd_dbus_la_SOURCES = \
744 src/shared/dbus-common.c \
745 src/shared/dbus-common.h \
746 src/shared/dbus-loop.c \
747 src/shared/dbus-loop.h \
748 src/shared/polkit.c \
751 libsystemd_dbus_la_CFLAGS = \
755 libsystemd_dbus_la_LIBADD = \
758 # ------------------------------------------------------------------------------
759 noinst_LTLIBRARIES += \
762 libsystemd_units_la_SOURCES = \
763 src/shared/install.c \
764 src/shared/install.h \
765 src/shared/install-printf.c \
766 src/shared/install-printf.h \
767 src/shared/path-lookup.c \
768 src/shared/path-lookup.h \
769 src/shared/specifier.c \
770 src/shared/specifier.h
772 libsystemd_units_la_CFLAGS = \
776 # ------------------------------------------------------------------------------
777 noinst_LTLIBRARIES += \
780 libsystemd_label_la_SOURCES = \
781 src/shared/socket-label.c \
784 src/shared/selinux-util.c \
785 src/shared/selinux-util.h \
786 src/shared/mkdir-label.c \
787 src/shared/ask-password-api.c \
788 src/shared/ask-password-api.h \
789 src/shared/fileio-label.c \
790 src/shared/fileio-label.h \
791 src/shared/dev-setup.c \
792 src/shared/dev-setup.h
794 libsystemd_label_la_CFLAGS = \
798 libsystemd_label_la_LIBADD = \
801 # ------------------------------------------------------------------------------
802 noinst_LTLIBRARIES += \
805 libsystemd_logs_la_SOURCES = \
806 src/shared/logs-show.c \
807 src/shared/logs-show.h
809 libsystemd_logs_la_CFLAGS = \
812 libsystemd_logs_la_LIBADD = \
813 libsystemd-journal-internal.la \
814 libsystemd-id128-internal.la \
817 # ------------------------------------------------------------------------------
818 noinst_LTLIBRARIES += \
819 libsystemd-capability.la
821 libsystemd_capability_la_SOURCES = \
822 src/shared/capability.c \
823 src/shared/capability.h
825 libsystemd_capability_la_CFLAGS = \
829 libsystemd_capability_la_LIBADD = \
832 # ------------------------------------------------------------------------------
833 noinst_LTLIBRARIES += \
836 libsystemd_audit_la_SOURCES = \
840 libsystemd_audit_la_LIBADD = \
841 libsystemd-capability.la
843 # ------------------------------------------------------------------------------
845 noinst_LTLIBRARIES += \
848 libsystemd_acl_la_SOURCES = \
849 src/shared/acl-util.c \
850 src/shared/acl-util.h
852 libsystemd_acl_la_CFLAGS = \
856 libsystemd_acl_la_LIBADD = \
861 # ------------------------------------------------------------------------------
862 noinst_LTLIBRARIES += \
865 libsystemd_core_la_SOURCES = \
868 src/core/unit-printf.c \
869 src/core/unit-printf.h \
874 src/core/transaction.c \
875 src/core/transaction.h \
876 src/core/load-fragment.c \
877 src/core/load-fragment.h \
880 src/core/automount.c \
881 src/core/automount.h \
890 src/core/snapshot.c \
891 src/core/snapshot.h \
902 src/core/load-dropin.c \
903 src/core/load-dropin.h \
910 src/core/dbus-manager.c \
911 src/core/dbus-manager.h \
912 src/core/dbus-unit.c \
913 src/core/dbus-unit.h \
914 src/core/dbus-job.c \
915 src/core/dbus-job.h \
916 src/core/dbus-service.c \
917 src/core/dbus-service.h \
918 src/core/dbus-socket.c \
919 src/core/dbus-socket.h \
920 src/core/dbus-timer.c \
921 src/core/dbus-timer.h \
922 src/core/dbus-target.c \
923 src/core/dbus-target.h \
924 src/core/dbus-mount.c \
925 src/core/dbus-mount.h \
926 src/core/dbus-automount.c \
927 src/core/dbus-automount.h \
928 src/core/dbus-swap.c \
929 src/core/dbus-swap.h \
930 src/core/dbus-snapshot.c \
931 src/core/dbus-snapshot.h \
932 src/core/dbus-device.c \
933 src/core/dbus-device.h \
934 src/core/dbus-path.c \
935 src/core/dbus-path.h \
936 src/core/dbus-slice.c \
937 src/core/dbus-slice.h \
938 src/core/dbus-scope.c \
939 src/core/dbus-scope.h \
940 src/core/dbus-execute.c \
941 src/core/dbus-execute.h \
942 src/core/dbus-kill.c \
943 src/core/dbus-kill.h \
944 src/core/dbus-cgroup.c \
945 src/core/dbus-cgroup.h \
948 src/core/selinux-access.c \
949 src/core/selinux-access.h \
950 src/core/selinux-setup.c \
951 src/core/selinux-setup.h \
952 src/core/smack-setup.c \
953 src/core/smack-setup.h \
954 src/core/ima-setup.c \
955 src/core/ima-setup.h \
956 src/core/locale-setup.h \
957 src/core/locale-setup.c \
958 src/core/hostname-setup.c \
959 src/core/hostname-setup.h \
960 src/core/machine-id-setup.c \
961 src/core/machine-id-setup.h \
962 src/core/mount-setup.c \
963 src/core/mount-setup.h \
964 src/core/loopback-setup.h \
965 src/core/loopback-setup.c \
966 src/core/condition.c \
967 src/core/condition.h \
968 src/core/namespace.c \
969 src/core/namespace.h \
972 src/core/securebits.h \
975 src/core/bus-errors.h \
977 src/core/sysfs-show.h \
978 src/core/switch-root.h \
979 src/core/switch-root.c \
982 src/core/syscall-list.c \
983 src/core/syscall-list.h \
984 src/core/audit-fd.c \
985 src/core/audit-fd.h \
990 libsystemd_core_la_SOURCES += \
991 src/core/kmod-setup.c \
992 src/core/kmod-setup.h
995 nodist_libsystemd_core_la_SOURCES = \
996 src/core/load-fragment-gperf.c \
997 src/core/load-fragment-gperf-nulstr.c \
998 src/core/syscall-from-name.h \
999 src/core/syscall-to-name.h
1001 libsystemd_core_la_CFLAGS = \
1010 libsystemd_core_la_LIBADD = \
1011 libsystemd-capability.la \
1012 libsystemd-units.la \
1013 libsystemd-label.la \
1014 libsystemd-shared.la \
1015 libsystemd-dbus.la \
1016 libsystemd-audit.la \
1017 libsystemd-id128-internal.la \
1018 libsystemd-daemon.la \
1026 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1027 $(AM_V_at)$(MKDIR_P) $(dir $@)
1028 $(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 ";" }' < $< > $@
1031 src/core/load-fragment-gperf.gperf.m4
1034 src/core/load-fragment-gperf.gperf \
1035 src/core/load-fragment-gperf.c \
1036 src/core/load-fragment-gperf-nulstr.c \
1037 src/core/syscall-list.txt \
1038 src/core/syscall-from-name.gperf
1041 src/core/syscall-from-name.h \
1042 src/core/syscall-to-name.h
1044 src/core/syscall-list.txt: Makefile
1045 $(AM_V_at)$(MKDIR_P) $(dir $@)
1046 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h - < /dev/null | $(AWK) '/^#define[ \t]+__NR_[^ ]+[ \t]+[0-9(]/ { sub(/__NR_/, "", $$2); if ($$2 !~ /SYSCALL_BASE/) print $$2; }' > $@
1048 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
1049 $(AM_V_at)$(MKDIR_P) $(dir $@)
1050 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct syscall_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, __NR_%s\n", $$1, $$1 }' < $< > $@
1052 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
1053 $(AM_V_at)$(MKDIR_P) $(dir $@)
1054 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1056 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
1057 $(AM_V_at)$(MKDIR_P) $(dir $@)
1058 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1060 # ------------------------------------------------------------------------------
1069 libsystemd-core.la \
1070 libsystemd-daemon.la \
1071 libsystemd-id128-internal.la \
1074 dist_pkgsysconf_DATA += \
1075 src/core/system.conf \
1078 dist_dbuspolicy_DATA += \
1079 src/core/org.freedesktop.systemd1.conf
1081 dist_dbussystemservice_DATA += \
1082 src/core/org.freedesktop.systemd1.service
1084 dbusinterface_DATA += \
1085 org.freedesktop.systemd1.Manager.xml \
1086 org.freedesktop.systemd1.Job.xml \
1087 org.freedesktop.systemd1.Unit.xml \
1088 org.freedesktop.systemd1.Service.xml \
1089 org.freedesktop.systemd1.Socket.xml \
1090 org.freedesktop.systemd1.Timer.xml \
1091 org.freedesktop.systemd1.Target.xml \
1092 org.freedesktop.systemd1.Device.xml \
1093 org.freedesktop.systemd1.Mount.xml \
1094 org.freedesktop.systemd1.Automount.xml \
1095 org.freedesktop.systemd1.Snapshot.xml \
1096 org.freedesktop.systemd1.Swap.xml \
1097 org.freedesktop.systemd1.Path.xml
1099 polkitpolicy_in_in_files += \
1100 src/core/org.freedesktop.systemd1.policy.in.in
1102 org.freedesktop.systemd1.%.xml: systemd
1103 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1104 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1105 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1107 pkgconfigdata_DATA = \
1110 nodist_rpmmacros_DATA = \
1111 src/core/macros.systemd
1114 src/core/systemd.pc.in \
1115 src/core/macros.systemd.in
1118 src/core/macros.systemd \
1119 src/core/org.freedesktop.systemd1.policy.in
1121 # ------------------------------------------------------------------------------
1150 test-strip-tab-ansi \
1161 test/sched_idle_bad.service \
1162 test/sched_idle_ok.service \
1163 test/sched_rr_bad.service \
1164 test/sched_rr_ok.service \
1165 test/sched_rr_change.service
1168 src/test/test-helper.h
1170 test_device_nodes_SOURCES = \
1171 src/test/test-device-nodes.c
1173 test_device_nodes_LDADD = \
1174 libsystemd-shared.la
1176 test_engine_SOURCES = \
1177 src/test/test-engine.c
1179 test_engine_CFLAGS = \
1183 test_engine_LDADD = \
1184 libsystemd-core.la \
1185 libsystemd-daemon.la \
1188 test_job_type_SOURCES = \
1189 src/test/test-job-type.c
1191 test_job_type_CFLAGS = \
1195 test_job_type_LDADD = \
1196 libsystemd-core.la \
1197 libsystemd-daemon.la
1209 test_loopback_SOURCES = \
1210 src/test/test-loopback.c
1212 test_loopback_LDADD = \
1213 libsystemd-shared.la \
1216 test_hostname_SOURCES = \
1217 src/test/test-hostname.c
1219 test_hostname_LDADD = \
1226 test_boot_timestamp_SOURCES = \
1227 src/test/test-boot-timestamps.c
1229 test_boot_timestamp_LDADD = \
1230 libsystemd-shared.la
1233 test_unit_name_SOURCES = \
1234 src/test/test-unit-name.c
1236 test_unit_name_CFLAGS = \
1240 test_unit_name_LDADD = \
1243 test_unit_file_SOURCES = \
1244 src/test/test-unit-file.c
1246 test_unit_file_CFLAGS = \
1250 test_unit_file_LDADD = \
1253 test_utf8_SOURCES = \
1254 src/test/test-utf8.c
1256 test_utf8_CFLAGS = \
1260 libsystemd-shared.la
1262 test_util_SOURCES = \
1263 src/test/test-util.c
1265 test_util_CFLAGS = \
1271 test_hashmap_SOURCES = \
1272 src/test/test-hashmap.c
1274 test_hashmap_CFLAGS = \
1277 test_hashmap_LDADD = \
1280 test_list_SOURCES = \
1281 src/test/test-list.c
1283 test_list_CFLAGS = \
1289 test_tables_SOURCES = \
1290 src/test/test-tables.c \
1291 src/shared/test-tables.h
1293 test_tables_CFLAGS = \
1297 test_tables_LDADD = \
1298 libsystemd-core.la \
1301 test_prioq_SOURCES = \
1302 src/test/test-prioq.c
1304 test_prioq_CFLAGS = \
1307 test_prioq_LDADD = \
1310 test_fileio_SOURCES = \
1311 src/test/test-fileio.c
1313 test_fileio_CFLAGS = \
1316 test_fileio_LDADD = \
1319 test_time_SOURCES = \
1320 src/test/test-time.c
1322 test_time_CFLAGS = \
1328 test_log_SOURCES = \
1334 test_ellipsize_SOURCES = \
1335 src/test/test-ellipsize.c
1337 test_ellipsize_LDADD = \
1340 test_date_SOURCES = \
1341 src/test/test-date.c
1346 test_sleep_SOURCES = \
1347 src/test/test-sleep.c
1349 test_sleep_LDADD = \
1352 test_replace_var_SOURCES = \
1353 src/test/test-replace-var.c
1355 test_replace_var_LDADD = \
1356 libsystemd-shared.la
1358 test_calendarspec_SOURCES = \
1359 src/test/test-calendarspec.c
1361 test_calendarspec_LDADD = \
1362 libsystemd-shared.la
1364 test_strip_tab_ansi_SOURCES = \
1365 src/test/test-strip-tab-ansi.c
1367 test_strip_tab_ansi_LDADD = \
1368 libsystemd-shared.la
1370 test_daemon_SOURCES = \
1371 src/test/test-daemon.c
1373 test_daemon_LDADD = \
1374 libsystemd-shared.la \
1375 libsystemd-daemon.la
1377 test_cgroup_SOURCES = \
1378 src/test/test-cgroup.c
1380 test_cgroup_LDADD = \
1381 libsystemd-label.la \
1382 libsystemd-shared.la
1384 test_cgroup_util_SOURCES = \
1385 src/test/test-cgroup-util.c
1387 test_cgroup_util_LDADD = \
1388 libsystemd-label.la \
1389 libsystemd-shared.la \
1390 libsystemd-daemon.la
1392 test_env_replace_SOURCES = \
1393 src/test/test-env-replace.c
1395 test_env_replace_LDADD = \
1396 libsystemd-shared.la
1398 test_strbuf_SOURCES = \
1399 src/test/test-strbuf.c
1401 test_strbuf_LDADD = \
1402 libsystemd-shared.la
1404 test_strv_SOURCES = \
1405 src/test/test-strv.c
1408 libsystemd-shared.la \
1409 libsystemd-units.la \
1410 libsystemd-id128-internal.la
1412 test_path_util_SOURCES = \
1413 src/test/test-path-util.c
1415 test_path_util_LDADD = \
1416 libsystemd-shared.la
1418 test_strxcpyx_SOURCES = \
1419 src/test/test-strxcpyx.c
1421 test_strxcpyx_LDADD = \
1422 libsystemd-shared.la
1424 test_install_SOURCES = \
1425 src/test/test-install.c
1427 test_install_CFLAGS = \
1431 test_install_LDADD = \
1432 libsystemd-units.la \
1433 libsystemd-label.la \
1434 libsystemd-shared.la \
1435 libsystemd-id128-internal.la
1437 test_watchdog_SOURCES = \
1438 src/test/test-watchdog.c
1440 test_watchdog_LDADD = \
1441 libsystemd-shared.la
1443 test_sched_prio_SOURCES = \
1444 src/test/test-sched-prio.c
1446 test_sched_prio_CFLAGS = \
1449 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1451 test_sched_prio_LDADD = \
1452 libsystemd-core.la \
1453 libsystemd-daemon.la
1455 # ------------------------------------------------------------------------------
1456 ## .PHONY so it always rebuilds it
1457 .PHONY: coverage lcov-run lcov-report
1459 # run lcov from scratch, always
1464 coverage_dir = coverage
1465 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1468 # reset run coverage tests
1470 @rm -rf $(coverage_dir)
1471 lcov $(coverage_opts) --zerocounters
1474 # generate report based on current coverage data
1476 $(MKDIR_P) $(coverage_dir)
1477 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1478 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1479 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1480 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1482 # lcov doesn't work properly with vpath builds, make sure that bad
1483 # output is not uploaded by mistake.
1484 coverage-sync: coverage
1485 test "$(builddir)" = "$(srcdir)"
1486 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1489 lcov-run lcov-report:
1490 echo "Need to reconfigure with --enable-coverage"
1493 # ------------------------------------------------------------------------------
1494 systemd_initctl_SOURCES = \
1495 src/initctl/initctl.c
1497 systemd_initctl_CFLAGS = \
1501 systemd_initctl_LDADD = \
1502 libsystemd-shared.la \
1503 libsystemd-daemon.la \
1506 # ------------------------------------------------------------------------------
1507 systemd_update_utmp_SOURCES = \
1508 src/update-utmp/update-utmp.c
1510 systemd_update_utmp_CFLAGS = \
1515 systemd_update_utmp_LDADD = \
1516 libsystemd-shared.la \
1517 libsystemd-dbus.la \
1520 # ------------------------------------------------------------------------------
1521 systemd_shutdownd_SOURCES = \
1522 src/shutdownd/shutdownd.c
1524 systemd_shutdownd_LDADD = \
1525 libsystemd-label.la \
1526 libsystemd-shared.la \
1527 libsystemd-daemon.la
1529 pkginclude_HEADERS += \
1530 src/systemd/sd-shutdown.h
1532 # ------------------------------------------------------------------------------
1533 systemd_shutdown_SOURCES = \
1536 src/core/shutdown.c \
1537 src/core/mount-setup.c \
1538 src/core/mount-setup.h \
1539 src/core/killall.h \
1542 systemd_shutdown_LDADD = \
1543 libsystemd-label.la \
1544 libsystemd-shared.la \
1547 # ------------------------------------------------------------------------------
1549 systemd_modules_load_SOURCES = \
1550 src/modules-load/modules-load.c
1552 systemd_modules_load_CFLAGS = \
1556 systemd_modules_load_LDADD = \
1557 libsystemd-shared.la \
1560 rootlibexec_PROGRAMS += \
1561 systemd-modules-load
1563 nodist_systemunit_DATA += \
1564 units/systemd-modules-load.service
1566 SYSINIT_TARGET_WANTS += \
1567 systemd-modules-load.service
1570 nodist_systemunit_DATA += \
1571 units/kmod-static-nodes.service
1573 SYSINIT_TARGET_WANTS += \
1574 kmod-static-nodes.service
1579 units/systemd-modules-load.service.in \
1580 units/kmod-static-nodes.service.in
1582 # ------------------------------------------------------------------------------
1584 systemd_tmpfiles_SOURCES = \
1585 src/tmpfiles/tmpfiles.c \
1586 src/shared/specifier.c \
1587 src/shared/specifier.h
1589 systemd_tmpfiles_LDADD = \
1590 libsystemd-label.la \
1591 libsystemd-shared.la \
1592 libsystemd-capability.la \
1593 libsystemd-id128-internal.la
1595 rootbin_PROGRAMS += \
1598 dist_systemunit_DATA += \
1599 units/systemd-tmpfiles-clean.timer
1601 nodist_systemunit_DATA += \
1602 units/systemd-tmpfiles-setup-dev.service \
1603 units/systemd-tmpfiles-setup.service \
1604 units/systemd-tmpfiles-clean.service
1606 dist_tmpfiles_DATA = \
1607 tmpfiles.d/systemd.conf \
1608 tmpfiles.d/tmp.conf \
1612 dist_tmpfiles_DATA += \
1613 tmpfiles.d/legacy.conf
1616 SYSINIT_TARGET_WANTS += \
1617 systemd-tmpfiles-setup-dev.service \
1618 systemd-tmpfiles-setup.service
1620 dist_zshcompletion_DATA += \
1621 shell-completion/zsh/_systemd-tmpfiles
1623 TIMERS_TARGET_WANTS += \
1624 systemd-tmpfiles-clean.timer
1628 $(sysconfdir)/tmpfiles.d
1632 units/systemd-tmpfiles-setup-dev.service.in \
1633 units/systemd-tmpfiles-setup.service.in \
1634 units/systemd-tmpfiles-clean.service.in
1636 # ------------------------------------------------------------------------------
1637 systemd_machine_id_setup_SOURCES = \
1638 src/machine-id-setup/machine-id-setup-main.c \
1639 src/core/machine-id-setup.c \
1640 src/core/machine-id-setup.h
1642 systemd_machine_id_setup_LDADD = \
1643 libsystemd-label.la \
1644 libsystemd-shared.la \
1645 libsystemd-id128-internal.la
1647 # ------------------------------------------------------------------------------
1648 systemd_sysctl_SOURCES = \
1651 systemd_sysctl_LDADD = \
1652 libsystemd-shared.la
1654 # ------------------------------------------------------------------------------
1655 systemd_sleep_SOURCES = \
1658 systemd_sleep_LDADD = \
1659 libsystemd-shared.la
1661 # ------------------------------------------------------------------------------
1662 systemd_fsck_SOURCES = \
1665 systemd_fsck_CFLAGS = \
1669 systemd_fsck_LDADD = \
1670 libsystemd-shared.la \
1671 libsystemd-dbus.la \
1674 # ------------------------------------------------------------------------------
1675 systemd_ac_power_SOURCES = \
1676 src/ac-power/ac-power.c
1678 systemd_ac_power_LDADD = \
1679 libsystemd-shared.la \
1682 # ------------------------------------------------------------------------------
1683 systemd_detect_virt_SOURCES = \
1684 src/detect-virt/detect-virt.c
1686 systemd_detect_virt_LDADD = \
1687 libsystemd-shared.la
1689 systemd-detect-virt-install-hook:
1690 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1692 INSTALL_EXEC_HOOKS += \
1693 systemd-detect-virt-install-hook
1695 # ------------------------------------------------------------------------------
1696 systemd_delta_SOURCES = \
1699 systemd_delta_LDADD = \
1700 libsystemd-shared.la
1702 # ------------------------------------------------------------------------------
1703 systemd_getty_generator_SOURCES = \
1704 src/getty-generator/getty-generator.c
1706 systemd_getty_generator_LDADD = \
1707 libsystemd-label.la \
1708 libsystemd-shared.la
1710 # ------------------------------------------------------------------------------
1711 systemd_fstab_generator_SOURCES = \
1712 src/fstab-generator/fstab-generator.c \
1713 src/core/mount-setup.c
1715 systemd_fstab_generator_LDADD = \
1716 libsystemd-label.la \
1717 libsystemd-shared.la
1719 # ------------------------------------------------------------------------------
1720 systemd_system_update_generator_SOURCES = \
1721 src/system-update-generator/system-update-generator.c
1723 systemd_system_update_generator_LDADD = \
1724 libsystemd-label.la \
1725 libsystemd-shared.la
1728 # ------------------------------------------------------------------------------
1729 systemgenerator_PROGRAMS += \
1730 systemd-efi-boot-generator
1732 systemd_efi_boot_generator_SOURCES = \
1733 src/efi-boot-generator/efi-boot-generator.c
1735 systemd_efi_boot_generator_LDADD = \
1736 libsystemd-label.la \
1737 libsystemd-shared.la
1739 # ------------------------------------------------------------------------------
1742 src/boot/boot-loader.h \
1743 src/boot/bootctl.c \
1744 src/boot/boot-loader.c \
1748 libsystemd-shared.la \
1749 libsystemd-id128.la \
1750 libsystemd-daemon.la
1756 # ------------------------------------------------------------------------------
1758 systemgenerator_PROGRAMS += \
1759 systemd-gpt-auto-generator
1761 systemd_gpt_auto_generator_SOURCES = \
1762 src/gpt-auto-generator/gpt-auto-generator.c
1764 systemd_gpt_auto_generator_LDADD = \
1765 libsystemd-label.la \
1766 libsystemd-shared.la \
1767 libsystemd-id128-internal.la \
1768 libudev-private.la \
1771 systemd_gpt_auto_generator_CFLAGS = \
1776 # ------------------------------------------------------------------------------
1777 systemd_rc_local_generator_SOURCES = \
1778 src/rc-local-generator/rc-local-generator.c
1780 systemd_rc_local_generator_LDADD = \
1781 libsystemd-label.la \
1782 libsystemd-shared.la
1784 # ------------------------------------------------------------------------------
1785 systemd_remount_fs_SOURCES = \
1786 src/remount-fs/remount-fs.c \
1787 src/core/mount-setup.c \
1788 src/core/mount-setup.h
1790 systemd_remount_fs_LDADD = \
1791 libsystemd-label.la \
1792 libsystemd-shared.la
1794 # ------------------------------------------------------------------------------
1795 systemd_cgroups_agent_SOURCES = \
1796 src/cgroups-agent/cgroups-agent.c
1798 systemd_cgroups_agent_CFLAGS = \
1802 systemd_cgroups_agent_LDADD = \
1803 libsystemd-shared.la \
1806 # ------------------------------------------------------------------------------
1807 systemctl_SOURCES = \
1808 src/systemctl/systemctl.c
1810 systemctl_CFLAGS = \
1815 libsystemd-units.la \
1816 libsystemd-label.la \
1817 libsystemd-shared.la \
1818 libsystemd-daemon.la \
1819 libsystemd-dbus.la \
1822 # ------------------------------------------------------------------------------
1823 systemd_notify_SOURCES = \
1824 src/notify/notify.c \
1825 src/readahead/sd-readahead.c
1827 systemd_notify_LDADD = \
1828 libsystemd-shared.la \
1829 libsystemd-daemon.la
1831 # ------------------------------------------------------------------------------
1832 systemd_ask_password_SOURCES = \
1833 src/ask-password/ask-password.c
1835 systemd_ask_password_LDADD = \
1836 libsystemd-label.la \
1837 libsystemd-shared.la
1839 # ------------------------------------------------------------------------------
1840 systemd_reply_password_SOURCES = \
1841 src/reply-password/reply-password.c
1843 systemd_reply_password_LDADD = \
1844 libsystemd-shared.la
1846 # ------------------------------------------------------------------------------
1847 systemd_cgls_SOURCES = \
1850 systemd_cgls_LDADD = \
1851 libsystemd-shared.la
1853 # ------------------------------------------------------------------------------
1854 systemd_cgtop_SOURCES = \
1857 systemd_cgtop_LDADD = \
1858 libsystemd-shared.la
1860 # ------------------------------------------------------------------------------
1861 systemd_nspawn_SOURCES = \
1862 src/nspawn/nspawn.c \
1863 src/core/mount-setup.c \
1864 src/core/mount-setup.h \
1865 src/core/loopback-setup.c \
1866 src/core/loopback-setup.h
1868 systemd_nspawn_LDADD = \
1869 libsystemd-label.la \
1870 libsystemd-capability.la \
1871 libsystemd-shared.la \
1872 libsystemd-daemon.la \
1873 libsystemd-id128-internal.la \
1876 # ------------------------------------------------------------------------------
1877 systemd_run_SOURCES = \
1880 systemd_run_LDADD = \
1881 libsystemd-label.la \
1882 libsystemd-capability.la \
1883 libsystemd-shared.la \
1884 libsystemd-daemon.la \
1885 libsystemd-id128-internal.la \
1888 # ------------------------------------------------------------------------------
1889 systemd_stdio_bridge_SOURCES = \
1890 src/stdio-bridge/stdio-bridge.c
1892 systemd_stdio_bridge_LDADD = \
1893 libsystemd-shared.la \
1895 libsystemd-daemon.la
1897 # ------------------------------------------------------------------------------
1898 systemd_tty_ask_password_agent_SOURCES = \
1899 src/tty-ask-password-agent/tty-ask-password-agent.c
1901 systemd_tty_ask_password_agent_LDADD = \
1902 libsystemd-label.la \
1903 libsystemd-shared.la
1905 # ------------------------------------------------------------------------------
1906 libsystemd_daemon_la_SOURCES = \
1907 src/libsystemd-daemon/sd-daemon.c
1909 libsystemd_daemon_internal_la_SOURCES = \
1910 $(libsystemd_daemon_la_SOURCES)
1912 libsystemd_daemon_la_CFLAGS = \
1914 -fvisibility=hidden \
1917 libsystemd_daemon_la_LDFLAGS = \
1919 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1920 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1922 libsystemd_daemon_la_LIBADD = \
1925 pkginclude_HEADERS += \
1926 src/systemd/sd-daemon.h
1928 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1929 libsystemd-daemon-install-hook:
1930 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1932 libsystemd-daemon-uninstall-hook:
1933 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1935 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1936 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1938 lib_LTLIBRARIES += \
1939 libsystemd-daemon.la
1941 noinst_LTLIBRARIES += \
1942 libsystemd-daemon-internal.la
1944 pkgconfiglib_DATA += \
1945 src/libsystemd-daemon/libsystemd-daemon.pc
1948 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1949 src/libsystemd-daemon/libsystemd-daemon.sym
1951 # ------------------------------------------------------------------------------
1952 libsystemd_bus_la_SOURCES = \
1953 src/systemd/sd-bus.h \
1954 src/systemd/sd-bus-protocol.h \
1955 src/systemd/sd-bus-vtable.h \
1956 src/systemd/sd-memfd.h \
1957 src/systemd/sd-event.h \
1958 src/libsystemd-bus/sd-bus.c \
1959 src/libsystemd-bus/bus-control.c \
1960 src/libsystemd-bus/bus-control.h \
1961 src/libsystemd-bus/bus-error.c \
1962 src/libsystemd-bus/bus-error.h \
1963 src/libsystemd-bus/bus-internal.c \
1964 src/libsystemd-bus/bus-internal.h \
1965 src/libsystemd-bus/bus-socket.c \
1966 src/libsystemd-bus/bus-socket.h \
1967 src/libsystemd-bus/bus-kernel.c \
1968 src/libsystemd-bus/bus-kernel.h \
1969 src/libsystemd-bus/bus-message.c \
1970 src/libsystemd-bus/bus-message.h \
1971 src/libsystemd-bus/bus-signature.c \
1972 src/libsystemd-bus/bus-signature.h \
1973 src/libsystemd-bus/bus-type.c \
1974 src/libsystemd-bus/bus-type.h \
1975 src/libsystemd-bus/bus-match.c \
1976 src/libsystemd-bus/bus-match.h \
1977 src/libsystemd-bus/bus-bloom.c \
1978 src/libsystemd-bus/bus-bloom.h \
1979 src/libsystemd-bus/bus-introspect.c \
1980 src/libsystemd-bus/bus-introspect.h \
1981 src/libsystemd-bus/bus-objects.c \
1982 src/libsystemd-bus/bus-objects.h \
1983 src/libsystemd-bus/bus-convenience.c \
1984 src/libsystemd-bus/kdbus.h \
1985 src/libsystemd-bus/sd-memfd.c \
1986 src/libsystemd-bus/sd-event.c
1988 libsystemd_bus_la_LIBADD = \
1989 libsystemd-id128-internal.la \
1990 libsystemd-shared.la \
1991 libsystemd-daemon.la
1993 libsystemd_bus_la_CFLAGS = \
1997 noinst_LTLIBRARIES += \
2002 test-bus-signature \
2007 test-bus-kernel-bloom \
2008 test-bus-kernel-benchmark \
2010 test-bus-zero-copy \
2011 test-bus-introspect \
2015 noinst_PROGRAMS += \
2018 test_bus_marshal_SOURCES = \
2019 src/libsystemd-bus/test-bus-marshal.c
2021 test_bus_marshal_LDADD = \
2022 libsystemd-shared.la \
2027 test_bus_marshal_CFLAGS = \
2032 test_bus_signature_SOURCES = \
2033 src/libsystemd-bus/test-bus-signature.c
2035 test_bus_signature_LDADD = \
2036 libsystemd-shared.la \
2039 test_bus_chat_SOURCES = \
2040 src/libsystemd-bus/test-bus-chat.c
2042 test_bus_chat_CFLAGS = \
2046 test_bus_chat_LDADD = \
2047 libsystemd-shared.la \
2049 libsystemd-id128-internal.la
2051 test_bus_server_SOURCES = \
2052 src/libsystemd-bus/test-bus-server.c
2054 test_bus_server_CFLAGS = \
2058 test_bus_server_LDADD = \
2059 libsystemd-shared.la \
2061 libsystemd-id128-internal.la
2063 test_bus_objects_SOURCES = \
2064 src/libsystemd-bus/test-bus-objects.c
2066 test_bus_objects_CFLAGS = \
2070 test_bus_objects_LDADD = \
2071 libsystemd-shared.la \
2073 libsystemd-id128-internal.la
2075 test_bus_match_SOURCES = \
2076 src/libsystemd-bus/test-bus-match.c
2078 test_bus_match_CFLAGS = \
2081 test_bus_match_LDADD = \
2082 libsystemd-shared.la \
2084 libsystemd-id128-internal.la
2086 test_bus_kernel_SOURCES = \
2087 src/libsystemd-bus/test-bus-kernel.c
2089 test_bus_kernel_CFLAGS = \
2092 test_bus_kernel_LDADD = \
2093 libsystemd-shared.la \
2095 libsystemd-id128-internal.la
2097 test_bus_kernel_bloom_SOURCES = \
2098 src/libsystemd-bus/test-bus-kernel-bloom.c
2100 test_bus_kernel_bloom_CFLAGS = \
2103 test_bus_kernel_bloom_LDADD = \
2104 libsystemd-shared.la \
2106 libsystemd-id128-internal.la
2108 test_bus_kernel_benchmark_SOURCES = \
2109 src/libsystemd-bus/test-bus-kernel-benchmark.c
2111 test_bus_kernel_benchmark_CFLAGS = \
2114 test_bus_kernel_benchmark_LDADD = \
2115 libsystemd-shared.la \
2117 libsystemd-id128-internal.la
2119 test_bus_memfd_SOURCES = \
2120 src/libsystemd-bus/test-bus-memfd.c
2122 test_bus_memfd_CFLAGS = \
2125 test_bus_memfd_LDADD = \
2126 libsystemd-shared.la \
2129 test_bus_zero_copy_SOURCES = \
2130 src/libsystemd-bus/test-bus-zero-copy.c
2132 test_bus_zero_copy_CFLAGS = \
2135 test_bus_zero_copy_LDADD = \
2136 libsystemd-shared.la \
2139 test_bus_introspect_SOURCES = \
2140 src/libsystemd-bus/test-bus-introspect.c
2142 test_bus_introspect_CFLAGS = \
2145 test_bus_introspect_LDADD = \
2146 libsystemd-shared.la \
2149 test_event_SOURCES = \
2150 src/libsystemd-bus/test-event.c
2152 test_event_LDADD = \
2153 libsystemd-shared.la \
2155 libsystemd-id128-internal.la
2158 src/libsystemd-bus/busctl.c
2161 libsystemd-shared.la \
2164 # ------------------------------------------------------------------------------
2174 include_HEADERS += \
2175 src/libudev/libudev.h
2177 lib_LTLIBRARIES += \
2180 libudev_la_SOURCES =\
2181 src/libudev/libudev-private.h \
2182 src/libudev/libudev.c \
2183 src/libudev/libudev-list.c \
2184 src/libudev/libudev-util.c \
2185 src/libudev/libudev-device.c \
2186 src/libudev/libudev-enumerate.c \
2187 src/libudev/libudev-monitor.c \
2188 src/libudev/libudev-queue.c \
2189 src/libudev/libudev-hwdb-def.h \
2190 src/libudev/libudev-hwdb.c
2192 libudev_la_CFLAGS = \
2196 libudev_la_LDFLAGS = \
2198 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2199 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2201 libudev_la_LIBADD = \
2202 libsystemd-shared.la \
2203 libsystemd-daemon-internal.la \
2204 libsystemd-id128-internal.la
2206 pkgconfiglib_DATA += \
2207 src/libudev/libudev.pc
2210 src/libudev/libudev.pc.in \
2211 src/libudev/libudev.sym
2214 src/libudev/libudev.pc \
2219 $(AM_V_at)$(MKDIR_P) $(dir $@)
2220 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2223 $(AM_V_at)$(MKDIR_P) $(dir $@)
2224 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2226 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2227 libudev-install-hook:
2228 libname=libudev.so && $(move-to-rootlibdir)
2230 libudev-uninstall-hook:
2231 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2233 INSTALL_EXEC_HOOKS += libudev-install-hook
2234 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2236 # ------------------------------------------------------------------------------
2237 noinst_LTLIBRARIES += \
2240 libudev_private_la_SOURCES =\
2241 $(libudev_la_SOURCES) \
2242 src/libudev/libudev-device-private.c \
2243 src/libudev/libudev-queue-private.c
2245 libudev_private_la_CFLAGS = \
2247 -fvisibility=default
2249 libudev_private_la_LIBADD = \
2250 libsystemd-shared.la
2252 # ------------------------------------------------------------------------------
2254 $(sysconfdir)/udev/rules.d \
2255 $(sysconfdir)/udev/hwdb.d
2257 dist_udevrules_DATA += \
2258 rules/99-systemd.rules \
2259 rules/42-usb-hid-pm.rules \
2260 rules/50-udev-default.rules \
2261 rules/60-keyboard.rules \
2262 rules/60-persistent-storage-tape.rules \
2263 rules/60-persistent-serial.rules \
2264 rules/60-persistent-input.rules \
2265 rules/60-persistent-alsa.rules \
2266 rules/60-persistent-storage.rules \
2267 rules/64-btrfs.rules \
2268 rules/75-net-description.rules \
2269 rules/75-tty-description.rules \
2270 rules/78-sound-card.rules \
2271 rules/80-net-name-slot.rules \
2272 rules/95-udev-late.rules
2274 dist_udevhwdb_DATA = \
2275 hwdb/20-pci-vendor-model.hwdb \
2276 hwdb/20-pci-classes.hwdb \
2277 hwdb/20-usb-vendor-model.hwdb \
2278 hwdb/20-usb-classes.hwdb \
2279 hwdb/20-bluetooth-vendor-product.hwdb \
2280 hwdb/20-acpi-vendor.hwdb \
2282 hwdb/60-keyboard.hwdb
2284 udevconfdir = $(sysconfdir)/udev
2285 dist_udevconf_DATA = \
2288 sharepkgconfigdir = $(datadir)/pkgconfig
2289 sharepkgconfig_DATA = \
2293 rules/99-systemd.rules.in \
2297 rules/99-systemd.rules \
2301 units/systemd-udevd.service.in \
2302 units/systemd-udev-trigger.service.in \
2303 units/systemd-udev-settle.service.in
2306 units/systemd-udevd.service \
2307 units/systemd-udev-trigger.service \
2308 units/systemd-udev-settle.service
2310 SOCKETS_TARGET_WANTS += \
2311 systemd-udevd-control.socket \
2312 systemd-udevd-kernel.socket
2313 SYSINIT_TARGET_WANTS += \
2314 systemd-udevd.service \
2315 systemd-udev-trigger.service
2317 rootbin_PROGRAMS += \
2320 rootlibexec_PROGRAMS += \
2323 noinst_LTLIBRARIES += \
2326 src/udev/keyboard-keys.txt: Makefile
2327 $(AM_V_at)$(MKDIR_P) $(dir $@)
2328 $(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/' > $@
2330 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2331 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2333 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2334 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2336 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2337 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2339 libudev_core_la_SOURCES = \
2341 src/udev/udev-event.c \
2342 src/udev/udev-watch.c \
2343 src/udev/udev-node.c \
2344 src/udev/udev-rules.c \
2345 src/udev/udev-ctrl.c \
2346 src/udev/udev-builtin.c \
2347 src/udev/udev-builtin-btrfs.c \
2348 src/udev/udev-builtin-hwdb.c \
2349 src/udev/udev-builtin-input_id.c \
2350 src/udev/udev-builtin-keyboard.c \
2351 src/udev/udev-builtin-net_id.c \
2352 src/udev/udev-builtin-path_id.c \
2353 src/udev/udev-builtin-usb_id.c
2355 nodist_libudev_core_la_SOURCES = \
2356 src/udev/keyboard-keys-from-name.h \
2357 src/udev/keyboard-keys-to-name.h
2360 $(nodist_libudev_core_la_SOURCES)
2363 src/udev/keyboard-keys-from-name.gperf \
2364 src/udev/keyboard-keys.txt
2366 libudev_core_la_CFLAGS = \
2371 libudev_core_la_LIBADD = \
2372 libudev-private.la \
2373 libsystemd-label.la \
2374 libsystemd-daemon-internal.la \
2375 libsystemd-shared.la \
2379 libudev_core_la_CPPFLAGS = \
2381 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2384 libudev_core_la_SOURCES += \
2385 src/udev/udev-builtin-firmware.c
2387 dist_udevrules_DATA += \
2388 rules/50-firmware.rules
2392 libudev_core_la_SOURCES += \
2393 src/udev/udev-builtin-kmod.c
2395 dist_udevrules_DATA += \
2396 rules/80-drivers.rules
2400 libudev_core_la_SOURCES += \
2401 src/udev/udev-builtin-blkid.c
2405 libudev_core_la_SOURCES += \
2406 src/udev/udev-builtin-uaccess.c \
2407 src/login/logind-acl.c \
2408 src/login/sd-login.c \
2409 src/systemd/sd-login.h \
2410 src/login/login-shared.c \
2411 src/login/login-shared.h
2413 libudev_core_la_LIBADD += \
2417 systemd_udevd_SOURCES = \
2420 systemd_udevd_LDADD = \
2424 src/udev/udevadm.c \
2425 src/udev/udevadm-info.c \
2426 src/udev/udevadm-control.c \
2427 src/udev/udevadm-monitor.c \
2428 src/udev/udevadm-hwdb.c \
2429 src/udev/udevadm-settle.c \
2430 src/udev/udevadm-trigger.c \
2431 src/udev/udevadm-test.c \
2432 src/udev/udevadm-test-builtin.c
2436 libsystemd-label.la \
2437 libsystemd-shared.la
2439 # Update hwdb on installation. Do not bother if installing
2440 # in DESTDIR, since this is likely for packaging purposes.
2442 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2444 INSTALL_DATA_HOOKS += \
2448 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2450 # ------------------------------------------------------------------------------
2459 test_libudev_SOURCES = \
2460 src/test/test-libudev.c
2462 test_libudev_LDADD = \
2463 libsystemd-label.la \
2464 libsystemd-shared.la \
2467 test_udev_SOURCES = \
2468 src/test/test-udev.c
2472 libsystemd-shared.la \
2478 test_udev_LDADD += \
2485 # packed sysfs test tree
2487 $(AM_V_at)$(MKDIR_P) $(dir $@)
2488 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2492 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2497 test/rules-test.sh \
2498 test/rule-syntax-check.py
2500 # ------------------------------------------------------------------------------
2502 src/udev/ata_id/ata_id.c
2505 libudev-private.la \
2506 libsystemd-shared.la
2508 udevlibexec_PROGRAMS += \
2511 # ------------------------------------------------------------------------------
2512 cdrom_id_SOURCES = \
2513 src/udev/cdrom_id/cdrom_id.c
2517 libsystemd-shared.la
2519 udevlibexec_PROGRAMS += \
2522 dist_udevrules_DATA += \
2523 rules/60-cdrom_id.rules
2525 # ------------------------------------------------------------------------------
2527 src/udev/collect/collect.c
2532 udevlibexec_PROGRAMS += \
2535 # ------------------------------------------------------------------------------
2537 src/udev/scsi_id/scsi_id.c \
2538 src/udev/scsi_id/scsi_serial.c \
2539 src/udev/scsi_id/scsi.h \
2540 src/udev/scsi_id/scsi_id.h
2543 libudev-private.la \
2544 libsystemd-shared.la
2546 udevlibexec_PROGRAMS += \
2550 src/udev/scsi_id/README
2552 # ------------------------------------------------------------------------------
2554 src/udev/v4l_id/v4l_id.c
2559 udevlibexec_PROGRAMS += \
2562 dist_udevrules_DATA += \
2563 rules/60-persistent-v4l.rules
2565 # ------------------------------------------------------------------------------
2566 accelerometer_SOURCES = \
2567 src/udev/accelerometer/accelerometer.c
2569 accelerometer_LDADD = \
2571 libsystemd-shared.la
2573 udevlibexec_PROGRAMS += \
2576 dist_udevrules_DATA += \
2577 rules/61-accelerometer.rules
2579 # ------------------------------------------------------------------------------
2586 libgudev_includedir = \
2587 $(includedir)/gudev-1.0/gudev
2589 libgudev_include_HEADERS = \
2591 src/gudev/gudevenums.h \
2592 src/gudev/gudevenumtypes.h \
2593 src/gudev/gudevtypes.h \
2594 src/gudev/gudevclient.h \
2595 src/gudev/gudevdevice.h \
2596 src/gudev/gudevenumerator.h
2598 lib_LTLIBRARIES += libgudev-1.0.la
2600 pkgconfiglib_DATA += \
2601 src/gudev/gudev-1.0.pc
2604 src/gudev/gudev-1.0.pc
2606 libgudev_1_0_la_SOURCES = \
2607 src/gudev/gudevenums.h \
2608 src/gudev/gudevenumtypes.h \
2609 src/gudev/gudevenumtypes.h\
2610 src/gudev/gudevtypes.h \
2611 src/gudev/gudevclient.h \
2612 src/gudev/gudevclient.c \
2613 src/gudev/gudevdevice.h \
2614 src/gudev/gudevdevice.c \
2615 src/gudev/gudevenumerator.h \
2616 src/gudev/gudevenumerator.c \
2617 src/gudev/gudevprivate.h
2619 nodist_libgudev_1_0_la_SOURCES = \
2620 src/gudev/gudevmarshal.h \
2621 src/gudev/gudevmarshal.c \
2622 src/gudev/gudevenumtypes.h \
2623 src/gudev/gudevenumtypes.c
2626 $(nodist_libgudev_1_0_la_SOURCES)
2628 libgudev_1_0_la_CPPFLAGS = \
2630 -I$(top_builddir)/src\
2631 -I$(top_srcdir)/src\
2632 -I$(top_builddir)/src/gudev \
2633 -I$(top_srcdir)/src/gudev \
2634 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2635 -D_GUDEV_COMPILATION \
2636 -DG_LOG_DOMAIN=\"GUdev\"
2638 libgudev_1_0_la_CFLAGS = \
2640 -fvisibility=default \
2643 libgudev_1_0_la_LIBADD = \
2647 libgudev_1_0_la_LDFLAGS = \
2649 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2650 -export-dynamic -no-undefined \
2651 -export-symbols-regex '^g_udev_.*'
2653 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2654 $(AM_V_at)$(MKDIR_P) $(dir $@)
2655 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2657 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2658 $(AM_V_at)$(MKDIR_P) $(dir $@)
2659 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2660 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2662 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2663 $(AM_V_at)$(MKDIR_P) $(dir $@)
2664 $(AM_V_GEN)glib-mkenums --template $^ > $@
2666 if HAVE_INTROSPECTION
2667 -include $(INTROSPECTION_MAKEFILE)
2669 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2671 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2673 src_gudev_GUdev_1_0_gir_CFLAGS = \
2675 -D_GUDEV_COMPILATION \
2676 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2677 -I$(top_srcdir)/src \
2678 -I$(top_builddir)/src \
2679 -I$(top_srcdir)/src/gdev \
2680 -I$(top_builddir)/src/gdev
2682 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2684 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2685 --pkg-export=gudev-1.0 \
2688 src_gudev_GUdev_1_0_gir_FILES = \
2690 src/gudev/gudevtypes.h \
2691 src/gudev/gudevenums.h \
2692 src/gudev/gudevenumtypes.h \
2693 src/gudev/gudevclient.h \
2694 src/gudev/gudevdevice.h \
2695 src/gudev/gudevenumerator.h \
2696 src/gudev/gudevclient.c \
2697 src/gudev/gudevdevice.c \
2698 src/gudev/gudevenumerator.c
2700 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2701 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2703 girdir = $(datadir)/gir-1.0
2705 src/gudev/GUdev-1.0.gir
2707 typelibsdir = $(libdir)/girepository-1.0
2709 src/gudev/GUdev-1.0.typelib
2711 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2712 endif # HAVE_INTROSPECTION
2714 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2715 libgudev-install-hook:
2716 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2718 libgudev-uninstall-hook:
2719 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2721 INSTALL_EXEC_HOOKS += libgudev-install-hook
2722 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2726 src/gudev/gudev-1.0.pc.in \
2727 src/gudev/gudevmarshal.list \
2728 src/gudev/gudevenumtypes.h.template \
2729 src/gudev/gudevenumtypes.c.template \
2730 src/gudev/gjs-example.js \
2731 src/gudev/seed-example-enum.js \
2732 src/gudev/seed-example.js
2734 # ------------------------------------------------------------------------------
2735 mtd_probe_SOURCES = \
2736 src/udev/mtd_probe/mtd_probe.c \
2737 src/udev/mtd_probe/mtd_probe.h \
2738 src/udev/mtd_probe/probe_smartmedia.c
2740 mtd_probe_CPPFLAGS = \
2743 dist_udevrules_DATA += \
2744 rules/75-probe_mtd.rules
2746 udevlibexec_PROGRAMS += \
2749 # ------------------------------------------------------------------------------
2750 libsystemd_id128_la_SOURCES = \
2751 src/libsystemd-id128/sd-id128.c
2753 libsystemd_id128_la_CFLAGS = \
2757 libsystemd_id128_la_LDFLAGS = \
2759 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2760 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2762 libsystemd_id128_la_LIBADD = \
2763 libsystemd-shared.la
2765 libsystemd_id128_internal_la_SOURCES = \
2766 $(libsystemd_id128_la_SOURCES)
2768 test_id128_SOURCES = \
2769 src/test/test-id128.c
2771 test_id128_LDADD = \
2772 libsystemd-shared.la \
2773 libsystemd-id128-internal.la \
2774 libsystemd-daemon.la
2779 pkginclude_HEADERS += \
2780 src/systemd/sd-id128.h
2782 lib_LTLIBRARIES += \
2785 noinst_LTLIBRARIES += \
2786 libsystemd-id128-internal.la
2788 pkgconfiglib_DATA += \
2789 src/libsystemd-id128/libsystemd-id128.pc
2791 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2792 libsystemd-id128-install-hook:
2793 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2795 libsystemd-id128-uninstall-hook:
2796 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2798 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2799 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2802 src/libsystemd-id128/libsystemd-id128.pc.in \
2803 src/libsystemd-id128/libsystemd-id128.sym
2805 # ------------------------------------------------------------------------------
2807 rootlibexec_PROGRAMS += \
2810 systemd_activate_SOURCES = \
2811 src/activate/activate.c
2813 systemd_activate_LDADD = \
2814 libsystemd-shared.la \
2815 libsystemd-daemon.la
2817 # ------------------------------------------------------------------------------
2818 systemd_journald_SOURCES = \
2819 src/journal/journald.c \
2820 src/journal/journald-server.h
2822 systemd_journald_LDADD = \
2823 libsystemd-journal-internal.la \
2824 libsystemd-shared.la \
2825 libsystemd-id128-internal.la
2827 systemd_cat_SOURCES = \
2830 systemd_cat_LDADD = \
2831 libsystemd-shared.la \
2832 libsystemd-journal-internal.la
2834 journalctl_SOURCES = \
2835 src/journal/journalctl.c
2837 journalctl_CFLAGS = \
2840 journalctl_LDADD = \
2841 libsystemd-shared.la \
2842 libsystemd-journal-internal.la \
2843 libsystemd-id128-internal.la \
2847 journalctl_LDADD += \
2852 journalctl_SOURCES += \
2853 src/journal/journal-qrcode.c \
2854 src/journal/journal-qrcode.h
2856 journalctl_CFLAGS += \
2859 journalctl_LDADD += \
2863 test_journal_SOURCES = \
2864 src/journal/test-journal.c
2866 test_journal_LDADD = \
2867 libsystemd-shared.la \
2868 libsystemd-journal-internal.la \
2869 libsystemd-id128-internal.la
2871 test_journal_send_SOURCES = \
2872 src/journal/test-journal-send.c
2874 test_journal_send_LDADD = \
2875 libsystemd-shared.la \
2876 libsystemd-journal-internal.la \
2877 libsystemd-id128-internal.la
2879 test_journal_syslog_SOURCES = \
2880 src/journal/test-journal-syslog.c
2882 test_journal_syslog_LDADD = \
2883 libsystemd-journal-internal.la \
2884 libsystemd-shared.la \
2885 libsystemd-id128-internal.la
2887 test_journal_match_SOURCES = \
2888 src/journal/test-journal-match.c
2890 test_journal_match_LDADD = \
2891 libsystemd-shared.la \
2892 libsystemd-journal-internal.la \
2893 libsystemd-id128-internal.la
2895 test_journal_enum_SOURCES = \
2896 src/journal/test-journal-enum.c
2898 test_journal_enum_LDADD = \
2899 libsystemd-shared.la \
2900 libsystemd-journal-internal.la \
2901 libsystemd-id128-internal.la
2903 test_journal_stream_SOURCES = \
2904 src/journal/test-journal-stream.c
2906 test_journal_stream_LDADD = \
2907 libsystemd-shared.la \
2908 libsystemd-journal-internal.la \
2909 libsystemd-id128-internal.la
2911 test_journal_init_SOURCES = \
2912 src/journal/test-journal-init.c
2914 test_journal_init_LDADD = \
2915 libsystemd-shared.la \
2916 libsystemd-daemon-internal.la \
2918 libsystemd-journal.la
2920 test_journal_verify_SOURCES = \
2921 src/journal/test-journal-verify.c
2923 test_journal_verify_LDADD = \
2924 libsystemd-shared.la \
2925 libsystemd-journal-internal.la \
2926 libsystemd-id128-internal.la
2928 test_journal_interleaving_SOURCES = \
2929 src/journal/test-journal-interleaving.c
2931 test_journal_interleaving_LDADD = \
2932 libsystemd-shared.la \
2933 libsystemd-journal-internal.la \
2934 libsystemd-id128-internal.la
2936 test_mmap_cache_SOURCES = \
2937 src/journal/test-mmap-cache.c
2939 test_mmap_cache_LDADD = \
2940 libsystemd-shared.la \
2941 libsystemd-journal-internal.la
2943 test_catalog_SOURCES = \
2944 src/journal/test-catalog.c
2946 test_catalog_CFLAGS = \
2948 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
2950 test_catalog_LDADD = \
2951 libsystemd-shared.la \
2952 libsystemd-label.la \
2953 libsystemd-journal-internal.la \
2954 libsystemd-id128-internal.la
2956 libsystemd_journal_la_SOURCES = \
2957 src/journal/sd-journal.c \
2958 src/systemd/sd-journal.h \
2959 src/journal/journal-file.c \
2960 src/journal/journal-file.h \
2961 src/journal/journal-vacuum.c \
2962 src/journal/journal-vacuum.h \
2963 src/journal/journal-verify.c \
2964 src/journal/journal-verify.h \
2965 src/journal/lookup3.c \
2966 src/journal/lookup3.h \
2967 src/journal/journal-send.c \
2968 src/journal/journal-def.h \
2969 src/journal/compress.h \
2970 src/journal/catalog.c \
2971 src/journal/catalog.h \
2972 src/journal/mmap-cache.c \
2973 src/journal/mmap-cache.h
2975 libsystemd_journal_la_CFLAGS = \
2979 libsystemd_journal_la_LDFLAGS = \
2981 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2982 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2984 libsystemd_journal_la_LIBADD = \
2985 libsystemd-shared.la \
2986 libsystemd-label.la \
2987 libsystemd-daemon-internal.la \
2989 libsystemd-id128-internal.la
2991 libsystemd_journal_internal_la_SOURCES = \
2992 $(libsystemd_journal_la_SOURCES) \
2993 src/journal/journald-kmsg.c \
2994 src/journal/journald-kmsg.h \
2995 src/journal/journald-syslog.c \
2996 src/journal/journald-syslog.h \
2997 src/journal/journald-stream.c \
2998 src/journal/journald-stream.h \
2999 src/journal/journald-server.c \
3000 src/journal/journald-server.h \
3001 src/journal/journald-console.c \
3002 src/journal/journald-console.h \
3003 src/journal/journald-native.c \
3004 src/journal/journald-native.h \
3005 src/journal/journald-rate-limit.c \
3006 src/journal/journald-rate-limit.h \
3007 src/journal/journal-internal.h
3009 libsystemd_journal_internal_la_CFLAGS = \
3012 libsystemd_journal_internal_la_LIBADD = \
3013 libsystemd-audit.la \
3014 libsystemd-daemon.la \
3016 libsystemd-shared.la \
3019 nodist_libsystemd_journal_internal_la_SOURCES = \
3020 src/journal/journald-gperf.c
3023 libsystemd_journal_internal_la_LIBADD += \
3024 libsystemd-login-internal.la
3028 libsystemd_journal_internal_la_LIBADD += \
3033 libsystemd_journal_la_SOURCES += \
3034 src/journal/compress.c
3036 libsystemd_journal_la_CFLAGS += \
3039 libsystemd_journal_la_LIBADD += \
3042 libsystemd_journal_internal_la_CFLAGS += \
3045 libsystemd_journal_internal_la_LIBADD += \
3051 libsystemd_journal_la_SOURCES += \
3052 src/journal/journal-authenticate.c \
3053 src/journal/journal-authenticate.h \
3054 src/journal/fsprg.c \
3057 libsystemd_journal_la_CFLAGS += \
3061 libsystemd_journal_la_LIBADD += \
3064 libsystemd_journal_internal_la_CFLAGS += \
3068 libsystemd_journal_internal_la_LIBADD += \
3072 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3073 # needed. Also, grant read access to new journal files to members of
3074 # "adm" and "wheel".
3075 libsystemd-journal-install-hook:
3076 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3077 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3078 -chown 0:0 $(DESTDIR)/var/log/journal
3079 -chmod 755 $(DESTDIR)/var/log/journal
3080 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3081 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3083 libsystemd-journal-uninstall-hook:
3084 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3086 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3087 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3089 # ------------------------------------------------------------------------------
3091 # Update catalog on installation. Do not bother if installing
3092 # in DESTDIR, since this is likely for packaging purposes.
3093 catalog-update-hook:
3094 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3096 INSTALL_DATA_HOOKS += \
3099 catalog-remove-hook:
3100 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3102 UNINSTALL_DATA_HOOKS += \
3111 test-journal-syslog \
3112 test-journal-match \
3113 test-journal-stream \
3115 test-journal-verify \
3116 test-journal-interleaving \
3120 pkginclude_HEADERS += \
3121 src/systemd/sd-journal.h \
3122 src/systemd/sd-messages.h
3124 lib_LTLIBRARIES += \
3125 libsystemd-journal.la
3127 noinst_LTLIBRARIES += \
3128 libsystemd-journal-internal.la
3130 rootlibexec_PROGRAMS += \
3133 rootbin_PROGRAMS += \
3139 dist_systemunit_DATA += \
3140 units/systemd-journald.socket
3142 nodist_systemunit_DATA += \
3143 units/systemd-journald.service \
3144 units/systemd-journal-flush.service
3146 dist_pkgsysconf_DATA += \
3147 src/journal/journald.conf
3149 pkgconfiglib_DATA += \
3150 src/journal/libsystemd-journal.pc
3152 dist_catalog_DATA = \
3153 catalog/systemd.catalog
3155 SOCKETS_TARGET_WANTS += \
3156 systemd-journald.socket
3157 SYSINIT_TARGET_WANTS += \
3158 systemd-journald.service \
3159 systemd-journal-flush.service
3162 src/journal/libsystemd-journal.pc.in \
3163 src/journal/libsystemd-journal.sym \
3164 units/systemd-journald.service.in \
3165 units/systemd-journal-flush.service.in \
3166 src/journal/journald-gperf.gperf
3169 src/journal/journald-gperf.c
3171 # ------------------------------------------------------------------------------
3173 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3175 rootlibexec_PROGRAMS += \
3176 systemd-journal-gatewayd
3178 systemd_journal_gatewayd_SOURCES = \
3179 src/journal/journal-gatewayd.c \
3180 src/journal/microhttpd-util.h \
3181 src/journal/microhttpd-util.c
3183 systemd_journal_gatewayd_LDADD = \
3184 libsystemd-shared.la \
3185 libsystemd-logs.la \
3186 libsystemd-journal-internal.la \
3187 libsystemd-id128-internal.la \
3188 libsystemd-daemon.la \
3192 systemd_journal_gatewayd_CFLAGS = \
3193 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3195 $(MICROHTTPD_CFLAGS)
3197 dist_systemunit_DATA += \
3198 units/systemd-journal-gatewayd.socket
3200 nodist_systemunit_DATA += \
3201 units/systemd-journal-gatewayd.service
3203 dist_gatewayddocumentroot_DATA = \
3204 src/journal/browse.html
3209 units/systemd-journal-gatewayd.service.in
3211 # ------------------------------------------------------------------------------
3213 systemd_saproxy_SOURCES = \
3214 src/saproxy/saproxy.c
3216 systemd_saproxy_LDADD = \
3217 libsystemd-shared.la \
3218 libsystemd-logs.la \
3219 libsystemd-journal-internal.la \
3220 libsystemd-id128-internal.la \
3221 libsystemd-daemon.la \
3224 systemd_saproxy_CFLAGS = \
3227 # ------------------------------------------------------------------------------
3229 systemd_coredump_SOURCES = \
3230 src/journal/coredump.c
3232 systemd_coredump_LDADD = \
3233 libsystemd-journal-internal.la \
3234 libsystemd-label.la \
3235 libsystemd-shared.la
3238 systemd_coredump_LDADD += \
3239 libsystemd-login-internal.la
3242 rootlibexec_PROGRAMS += \
3245 systemd_coredumpctl_SOURCES = \
3246 src/journal/coredumpctl.c
3248 systemd_coredumpctl_LDADD = \
3249 libsystemd-shared.la \
3250 libsystemd-journal.la \
3251 libsystemd-journal-internal.la \
3252 libsystemd-id128-internal.la
3257 dist_bashcompletion_DATA += \
3258 shell-completion/bash/systemd-coredumpctl
3260 dist_zshcompletion_DATA += \
3261 shell-completion/zsh/_systemd-coredumpctl
3264 sysctl.d/50-coredump.conf
3267 sysctl.d/50-coredump.conf
3271 sysctl.d/50-coredump.conf.in
3273 # ------------------------------------------------------------------------------
3275 systemd_binfmt_SOURCES = \
3278 systemd_binfmt_LDADD = \
3279 libsystemd-shared.la
3281 rootlibexec_PROGRAMS += \
3284 dist_systemunit_DATA += \
3285 units/proc-sys-fs-binfmt_misc.automount \
3286 units/proc-sys-fs-binfmt_misc.mount
3288 nodist_systemunit_DATA += \
3289 units/systemd-binfmt.service
3292 $(prefix)/lib/binfmt.d \
3293 $(sysconfdir)/binfmt.d
3295 SYSINIT_TARGET_WANTS += \
3296 systemd-binfmt.service \
3297 proc-sys-fs-binfmt_misc.automount
3302 units/systemd-binfmt.service.in
3304 # ------------------------------------------------------------------------------
3306 systemd_vconsole_setup_SOURCES = \
3307 src/vconsole/vconsole-setup.c
3309 systemd_vconsole_setup_LDADD = \
3310 libsystemd-shared.la
3312 rootlibexec_PROGRAMS += \
3313 systemd-vconsole-setup
3315 nodist_systemunit_DATA += \
3316 units/systemd-vconsole-setup.service
3318 SYSINIT_TARGET_WANTS += \
3319 systemd-vconsole-setup.service
3323 units/systemd-vconsole-setup.service.in
3325 # ------------------------------------------------------------------------------
3327 systemd_readahead_SOURCES = \
3328 src/readahead/readahead.c \
3329 src/readahead/readahead-collect.c \
3330 src/readahead/readahead-replay.c \
3331 src/readahead/readahead-analyze.c \
3332 src/readahead/readahead-common.c \
3333 src/readahead/readahead-common.h
3335 systemd_readahead_LDADD = \
3336 libsystemd-shared.la \
3337 libsystemd-daemon.la \
3341 src/readahead/sd-readahead.c \
3342 src/systemd/sd-readahead.h
3344 rootlibexec_PROGRAMS += \
3347 dist_systemunit_DATA += \
3348 units/systemd-readahead-drop.service \
3349 units/systemd-readahead-done.timer
3351 nodist_systemunit_DATA += \
3352 units/systemd-readahead-collect.service \
3353 units/systemd-readahead-replay.service \
3354 units/systemd-readahead-done.service
3359 units/systemd-readahead-collect.service.in \
3360 units/systemd-readahead-replay.service.in \
3361 units/systemd-readahead-done.service.in
3363 # ------------------------------------------------------------------------------
3365 systemd_bootchart_SOURCES = \
3366 src/bootchart/bootchart.c \
3367 src/bootchart/bootchart.h \
3368 src/bootchart/store.c \
3369 src/bootchart/store.h \
3370 src/bootchart/svg.c \
3373 systemd_bootchart_LDADD = \
3374 libsystemd-shared.la \
3375 libsystemd-journal.la
3377 rootlibexec_PROGRAMS += \
3380 dist_pkgsysconf_DATA += \
3381 src/bootchart/bootchart.conf
3384 # ------------------------------------------------------------------------------
3385 if ENABLE_QUOTACHECK
3386 rootlibexec_PROGRAMS += \
3389 nodist_systemunit_DATA += \
3390 units/systemd-quotacheck.service
3392 systemd_quotacheck_SOURCES = \
3393 src/quotacheck/quotacheck.c
3395 systemd_quotacheck_LDADD = \
3396 libsystemd-shared.la
3400 units/systemd-quotacheck.service.in
3402 nodist_systemunit_DATA += \
3403 units/quotaon.service
3405 # ------------------------------------------------------------------------------
3406 if ENABLE_RANDOMSEED
3407 rootlibexec_PROGRAMS += \
3410 nodist_systemunit_DATA += \
3411 units/systemd-random-seed.service
3413 systemd_random_seed_SOURCES = \
3414 src/random-seed/random-seed.c
3416 systemd_random_seed_LDADD = \
3417 libsystemd-label.la \
3418 libsystemd-shared.la
3420 SYSINIT_TARGET_WANTS += \
3421 systemd-random-seed.service
3426 units/systemd-random-seed.service.in
3428 # ------------------------------------------------------------------------------
3430 rootlibexec_PROGRAMS += \
3433 nodist_systemunit_DATA += \
3434 units/systemd-backlight@.service
3436 systemd_backlight_SOURCES = \
3437 src/backlight/backlight.c
3439 systemd_backlight_LDADD = \
3440 libsystemd-label.la \
3441 libsystemd-shared.la \
3446 units/systemd-backlight@.service.in
3448 # ------------------------------------------------------------------------------
3450 rootlibexec_PROGRAMS += \
3453 nodist_systemunit_DATA += \
3454 units/systemd-rfkill@.service
3456 systemd_rfkill_SOURCES = \
3459 systemd_rfkill_LDADD = \
3460 libsystemd-label.la \
3461 libsystemd-shared.la \
3466 units/systemd-rfkill@.service.in
3468 # ------------------------------------------------------------------------------
3469 if HAVE_LIBCRYPTSETUP
3470 rootlibexec_PROGRAMS += \
3473 systemgenerator_PROGRAMS += \
3474 systemd-cryptsetup-generator
3476 dist_systemunit_DATA += \
3477 units/cryptsetup.target
3479 systemd_cryptsetup_SOURCES = \
3480 src/cryptsetup/cryptsetup.c
3482 systemd_cryptsetup_CFLAGS = \
3484 $(LIBCRYPTSETUP_CFLAGS)
3486 systemd_cryptsetup_LDADD = \
3487 libsystemd-label.la \
3488 libsystemd-shared.la \
3490 $(LIBCRYPTSETUP_LIBS)
3492 systemd_cryptsetup_generator_SOURCES = \
3493 src/cryptsetup/cryptsetup-generator.c
3495 systemd_cryptsetup_generator_LDADD = \
3496 libsystemd-label.la \
3497 libsystemd-shared.la
3499 SYSINIT_TARGET_WANTS += \
3504 # ------------------------------------------------------------------------------
3506 systemd_hostnamed_SOURCES = \
3507 src/hostname/hostnamed.c
3509 systemd_hostnamed_CFLAGS = \
3513 systemd_hostnamed_LDADD = \
3514 libsystemd-label.la \
3515 libsystemd-shared.la \
3516 libsystemd-daemon.la \
3519 rootlibexec_PROGRAMS += \
3522 nodist_systemunit_DATA += \
3523 units/systemd-hostnamed.service
3525 dist_dbuspolicy_DATA += \
3526 src/hostname/org.freedesktop.hostname1.conf
3528 dist_dbussystemservice_DATA += \
3529 src/hostname/org.freedesktop.hostname1.service
3531 polkitpolicy_files += \
3532 src/hostname/org.freedesktop.hostname1.policy
3534 dbusinterface_DATA += \
3535 org.freedesktop.hostname1.xml
3537 org.freedesktop.hostname1.xml: systemd-hostnamed
3538 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
3539 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3540 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3542 SYSTEM_UNIT_ALIASES += \
3543 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3545 hostnamectl_SOURCES = \
3546 src/hostname/hostnamectl.c
3548 hostnamectl_CFLAGS = \
3552 hostnamectl_LDADD = \
3553 libsystemd-shared.la \
3554 libsystemd-dbus.la \
3555 libsystemd-id128-internal.la
3560 dist_bashcompletion_DATA += \
3561 shell-completion/bash/hostnamectl
3563 dist_zshcompletion_DATA += \
3564 shell-completion/zsh/_hostnamectl
3568 polkitpolicy_in_files += \
3569 src/hostname/org.freedesktop.hostname1.policy.in
3572 units/systemd-hostnamed.service.in
3574 # ------------------------------------------------------------------------------
3576 systemd_localed_SOURCES = \
3577 src/locale/localed.c
3579 systemd_localed_CFLAGS = \
3583 systemd_localed_LDADD = \
3584 libsystemd-label.la \
3585 libsystemd-shared.la \
3586 libsystemd-daemon.la \
3589 nodist_systemunit_DATA += \
3590 units/systemd-localed.service
3592 rootlibexec_PROGRAMS += \
3595 dist_dbuspolicy_DATA += \
3596 src/locale/org.freedesktop.locale1.conf
3598 dist_dbussystemservice_DATA += \
3599 src/locale/org.freedesktop.locale1.service
3601 polkitpolicy_files += \
3602 src/locale/org.freedesktop.locale1.policy
3604 dbusinterface_DATA += \
3605 org.freedesktop.locale1.xml
3607 org.freedesktop.locale1.xml: systemd-localed
3608 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
3609 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3610 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3612 SYSTEM_UNIT_ALIASES += \
3613 systemd-localed.service dbus-org.freedesktop.locale1.service
3615 dist_pkgdata_DATA += \
3616 src/locale/kbd-model-map
3618 dist_noinst_SCRIPT = \
3619 src/locale/generate-kbd-model-map
3621 update-kbd-model-map: src/locale/generate-kbd-model-map
3622 $PYTHON $< > src/locale/kbd-model-map
3624 localectl_SOURCES = \
3625 src/locale/localectl.c
3627 localectl_CFLAGS = \
3632 libsystemd-shared.la \
3633 libsystemd-dbus.la \
3634 libsystemd-id128-internal.la
3639 dist_bashcompletion_DATA += \
3640 shell-completion/bash/localectl
3642 dist_zshcompletion_DATA += \
3643 shell-completion/zsh/_localectl
3647 polkitpolicy_in_files += \
3648 src/locale/org.freedesktop.locale1.policy.in
3651 units/systemd-localed.service.in
3653 # ------------------------------------------------------------------------------
3655 systemd_timedated_SOURCES = \
3656 src/timedate/timedated.c
3658 systemd_timedated_CFLAGS = \
3662 systemd_timedated_LDADD = \
3663 libsystemd-label.la \
3664 libsystemd-shared.la \
3665 libsystemd-daemon.la \
3668 rootlibexec_PROGRAMS += \
3671 dist_dbussystemservice_DATA += \
3672 src/timedate/org.freedesktop.timedate1.service
3674 dist_dbuspolicy_DATA += \
3675 src/timedate/org.freedesktop.timedate1.conf
3677 nodist_systemunit_DATA += \
3678 units/systemd-timedated.service
3680 polkitpolicy_files += \
3681 src/timedate/org.freedesktop.timedate1.policy
3683 org.freedesktop.timedate1.xml: systemd-timedated
3684 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
3685 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3686 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3688 dbusinterface_DATA += \
3689 org.freedesktop.timedate1.xml
3692 $(prefix)/lib/systemd/ntp-units.d \
3693 $(sysconfdir)/systemd/ntp-units.d
3695 SYSTEM_UNIT_ALIASES += \
3696 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3698 timedatectl_SOURCES = \
3699 src/timedate/timedatectl.c
3701 timedatectl_CFLAGS = \
3705 timedatectl_LDADD = \
3706 libsystemd-shared.la \
3712 dist_bashcompletion_DATA += \
3713 shell-completion/bash/timedatectl
3715 dist_zshcompletion_DATA += \
3716 shell-completion/zsh/_timedatectl
3719 polkitpolicy_in_files += \
3720 src/timedate/org.freedesktop.timedate1.policy.in
3723 units/systemd-timedated.service.in
3725 # ------------------------------------------------------------------------------
3727 libnss_myhostname_la_SOURCES = \
3728 src/nss-myhostname/nss-myhostname.c \
3729 src/nss-myhostname/ifconf.h \
3730 src/nss-myhostname/netlink.c
3732 libnss_myhostname_la_CFLAGS = \
3735 libnss_myhostname_la_LDFLAGS = \
3743 lib_LTLIBRARIES += \
3744 libnss_myhostname.la
3747 # ------------------------------------------------------------------------------
3749 systemd_machined_SOURCES = \
3750 src/machine/machined.c \
3751 src/machine/machined.h
3753 systemd_machined_CFLAGS = \
3754 $(libsystemd_machine_core_la_CFLAGS)
3756 systemd_machined_LDADD = \
3757 libsystemd-machine-core.la \
3758 $(libsystemd_machine_core_la_LIBADD)
3760 rootlibexec_PROGRAMS += \
3763 libsystemd_machine_core_la_SOURCES = \
3764 src/machine/machined-dbus.c \
3765 src/machine/machine.c \
3766 src/machine/machine.h \
3767 src/machine/machine-dbus.c
3769 libsystemd_machine_core_la_CFLAGS = \
3773 libsystemd_machine_core_la_LIBADD = \
3774 libsystemd-label.la \
3775 libsystemd-audit.la \
3776 libsystemd-shared.la \
3777 libsystemd-daemon.la \
3778 libsystemd-dbus.la \
3779 libsystemd-id128-internal.la \
3782 noinst_LTLIBRARIES += \
3783 libsystemd-machine-core.la
3785 machinectl_SOURCES = \
3786 src/machine/machinectl.c
3788 machinectl_CFLAGS = \
3792 machinectl_LDADD = \
3793 libsystemd-shared.la \
3794 libsystemd-dbus.la \
3797 rootbin_PROGRAMS += \
3800 test_machine_tables_SOURCES = \
3801 src/machine/test-machine-tables.c
3803 test_machine_tables_CFLAGS = \
3807 test_machine_tables_LDADD = \
3808 libsystemd-machine-core.la
3813 nodist_systemunit_DATA += \
3814 units/systemd-machined.service
3816 dist_systemunit_DATA += \
3819 dist_dbussystemservice_DATA += \
3820 src/machine/org.freedesktop.machine1.service
3822 dist_dbuspolicy_DATA += \
3823 src/machine/org.freedesktop.machine1.conf
3825 dist_zshcompletion_DATA += \
3826 shell-completion/zsh/_machinectl
3828 SYSTEM_UNIT_ALIASES += \
3829 systemd-machined.service dbus-org.freedesktop.machine1.service
3832 units/systemd-machined.service.in
3836 # ------------------------------------------------------------------------------
3838 systemd_logind_SOURCES = \
3839 src/login/logind.c \
3842 nodist_systemd_logind_SOURCES = \
3843 src/login/logind-gperf.c
3845 systemd_logind_CFLAGS = \
3846 $(libsystemd_logind_core_la_CFLAGS)
3848 systemd_logind_LDADD = \
3849 libsystemd-logind-core.la \
3850 $(libsystemd_logind_core_la_LIBADD)
3852 libsystemd_logind_core_la_SOURCES = \
3853 src/login/logind-core.c \
3854 src/login/logind-dbus.c \
3855 src/login/logind-device.c \
3856 src/login/logind-device.h \
3857 src/login/logind-button.c \
3858 src/login/logind-button.h \
3859 src/login/logind-action.c \
3860 src/login/logind-action.h \
3861 src/login/logind-seat.c \
3862 src/login/logind-seat.h \
3863 src/login/logind-session.c \
3864 src/login/logind-session.h \
3865 src/login/logind-session-device.c \
3866 src/login/logind-session-device.h \
3867 src/login/logind-user.c \
3868 src/login/logind-user.h \
3869 src/login/logind-inhibit.c \
3870 src/login/logind-inhibit.h \
3871 src/login/logind-session-dbus.c \
3872 src/login/logind-seat-dbus.c \
3873 src/login/logind-user-dbus.c \
3874 src/login/logind-acl.h \
3875 src/login/login-shared.c \
3876 src/login/login-shared.h
3878 libsystemd_logind_core_la_CFLAGS = \
3882 libsystemd_logind_core_la_LIBADD = \
3883 libsystemd-label.la \
3884 libsystemd-audit.la \
3885 libsystemd-shared.la \
3886 libsystemd-daemon.la \
3887 libsystemd-dbus.la \
3888 libsystemd-id128-internal.la \
3892 libsystemd_logind_core_la_SOURCES += \
3893 src/login/logind-acl.c
3895 libsystemd_logind_core_la_LIBADD += \
3899 noinst_LTLIBRARIES += \
3900 libsystemd-logind-core.la
3902 systemd_user_sessions_SOURCES = \
3903 src/login/user-sessions.c
3905 systemd_user_sessions_LDADD = \
3906 libsystemd-shared.la
3908 rootlibexec_PROGRAMS += \
3910 systemd-user-sessions
3912 loginctl_SOURCES = \
3913 src/login/loginctl.c \
3914 src/login/sysfs-show.c
3921 libsystemd-shared.la \
3922 libsystemd-dbus.la \
3925 rootbin_PROGRAMS += \
3928 dist_bashcompletion_DATA += \
3929 shell-completion/bash/loginctl
3931 dist_zshcompletion_DATA += \
3932 shell-completion/zsh/_loginctl \
3933 shell-completion/zsh/_systemd-inhibit
3935 systemd_inhibit_SOURCES = \
3938 systemd_inhibit_CFLAGS = \
3942 systemd_inhibit_LDADD = \
3943 libsystemd-shared.la \
3946 rootbin_PROGRAMS += \
3949 test_login_SOURCES = \
3950 src/login/test-login.c
3952 test_login_LDADD = \
3953 libsystemd-login-internal.la \
3954 libsystemd-shared.la
3956 test_login_shared_SOURCES = \
3957 src/login/test-login-shared.c
3959 test_login_shared_LDADD = \
3960 libsystemd-login-internal.la \
3961 libsystemd-shared.la
3963 test_inhibit_SOURCES = \
3964 src/login/test-inhibit.c
3966 test_inhibit_LDADD = \
3967 libsystemd-shared.la \
3970 test_inhibit_CFLAGS = \
3974 test_login_tables_SOURCES = \
3975 src/login/test-login-tables.c
3977 test_login_tables_CFLAGS = \
3981 test_login_tables_LDADD = \
3982 libsystemd-logind-core.la
3992 libsystemd_login_la_SOURCES = \
3993 src/login/sd-login.c \
3994 src/systemd/sd-login.h \
3995 src/login/login-shared.c \
3996 src/login/login-shared.h
3998 libsystemd_login_la_CFLAGS = \
4002 libsystemd_login_la_LDFLAGS = \
4004 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4005 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
4007 libsystemd_login_la_LIBADD = \
4008 libsystemd-shared.la \
4009 libsystemd-daemon-internal.la \
4012 libsystemd_login_internal_la_SOURCES = \
4013 $(libsystemd_login_la_SOURCES)
4016 pam_systemd_la_SOURCES = \
4017 src/login/pam-module.c
4019 pam_systemd_la_CFLAGS = \
4025 pam_systemd_la_LDFLAGS = \
4031 -export-symbols-regex '^pam_sm_.*'
4033 pam_systemd_la_LIBADD = \
4034 libsystemd-audit.la \
4035 libsystemd-dbus.la \
4036 libsystemd-shared.la \
4037 libsystemd-daemon-internal.la \
4041 pamlib_LTLIBRARIES = \
4044 dist_pamconf_DATA = \
4045 src/login/systemd-user
4048 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4049 libsystemd-login-install-hook:
4050 libname=libsystemd-login.so && $(move-to-rootlibdir)
4052 libsystemd-login-uninstall-hook:
4053 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4055 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
4056 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
4058 nodist_systemunit_DATA += \
4059 units/systemd-logind.service \
4060 units/systemd-user-sessions.service
4062 dist_systemunit_DATA += \
4065 dist_dbussystemservice_DATA += \
4066 src/login/org.freedesktop.login1.service
4068 dist_dbuspolicy_DATA += \
4069 src/login/org.freedesktop.login1.conf
4071 dist_pkgsysconf_DATA += \
4072 src/login/logind.conf
4074 pkginclude_HEADERS += \
4075 src/systemd/sd-login.h
4077 lib_LTLIBRARIES += \
4080 noinst_LTLIBRARIES += \
4081 libsystemd-login-internal.la
4083 pkgconfiglib_DATA += \
4084 src/login/libsystemd-login.pc
4086 polkitpolicy_files += \
4087 src/login/org.freedesktop.login1.policy
4092 MULTI_USER_TARGET_WANTS += \
4093 systemd-logind.service \
4094 systemd-user-sessions.service
4096 SYSTEM_UNIT_ALIASES += \
4097 systemd-logind.service dbus-org.freedesktop.login1.service
4099 systemd_multi_seat_x_SOURCES = \
4100 src/login/multi-seat-x.c
4102 systemd_multi_seat_x_LDADD = \
4103 libsystemd-label.la \
4104 libsystemd-shared.la
4106 rootlibexec_PROGRAMS += \
4107 systemd-multi-seat-x
4109 dist_udevrules_DATA += \
4110 src/login/70-uaccess.rules \
4111 src/login/70-power-switch.rules
4113 nodist_udevrules_DATA += \
4114 src/login/71-seat.rules \
4115 src/login/73-seat-late.rules
4118 src/login/logind-gperf.c \
4119 src/login/71-seat.rules \
4120 src/login/73-seat-late.rules
4123 polkitpolicy_in_files += \
4124 src/login/org.freedesktop.login1.policy.in
4127 src/login/logind-gperf.gperf \
4128 src/login/libsystemd-login.pc.in \
4129 src/login/libsystemd-login.sym \
4130 src/login/71-seat.rules.in \
4131 src/login/73-seat-late.rules.in \
4132 units/systemd-logind.service.in \
4133 units/systemd-user-sessions.service.in
4135 # ------------------------------------------------------------------------------
4136 if HAVE_PYTHON_DEVEL
4137 pkgpyexec_LTLIBRARIES = \
4144 _journal_la_SOURCES = \
4145 src/python-systemd/_journal.c
4147 _journal_la_CFLAGS = \
4149 -fvisibility=default \
4150 $(PYTHON_DEVEL_CFLAGS)
4152 _journal_la_LDFLAGS = \
4158 _journal_la_LIBADD = \
4159 $(PYTHON_DEVEL_LIBS) \
4160 libsystemd-journal.la
4162 id128_la_SOURCES = \
4163 src/python-systemd/id128.c \
4164 src/python-systemd/id128-constants.h \
4165 src/python-systemd/pyutil.c \
4166 src/python-systemd/pyutil.h
4170 -fvisibility=default \
4171 $(PYTHON_DEVEL_CFLAGS) \
4172 -I$(top_builddir)/src/python-systemd
4174 id128_la_LDFLAGS = \
4181 $(PYTHON_DEVEL_LIBS) \
4184 _daemon_la_SOURCES = \
4185 src/python-systemd/_daemon.c \
4186 src/python-systemd/pyutil.c \
4187 src/python-systemd/pyutil.h
4189 _daemon_la_CFLAGS = \
4191 -fvisibility=default \
4192 $(PYTHON_DEVEL_CFLAGS) \
4193 -I$(top_builddir)/src/python-systemd
4195 _daemon_la_LDFLAGS = \
4201 _daemon_la_LIBADD = \
4202 $(PYTHON_DEVEL_LIBS) \
4203 libsystemd-daemon.la
4205 _reader_la_SOURCES = \
4206 src/python-systemd/_reader.c \
4207 src/python-systemd/pyutil.c \
4208 src/python-systemd/pyutil.h
4210 _reader_la_CFLAGS = \
4212 -fvisibility=default \
4213 $(PYTHON_DEVEL_CFLAGS)
4215 _reader_la_LDFLAGS = \
4221 _reader_la_LIBADD = \
4222 $(PYTHON_DEVEL_LIBS) \
4223 libsystemd-journal.la \
4224 libsystemd-id128.la \
4225 libsystemd-shared.la \
4226 libsystemd-daemon-internal.la \
4229 login_la_SOURCES = \
4230 src/python-systemd/login.c \
4231 src/python-systemd/pyutil.c \
4232 src/python-systemd/pyutil.h
4236 -fvisibility=default \
4237 $(PYTHON_DEVEL_CFLAGS)
4239 login_la_LDFLAGS = \
4246 $(PYTHON_DEVEL_LIBS) \
4247 libsystemd-journal.la \
4248 libsystemd-login.la \
4249 libsystemd-shared.la \
4250 libsystemd-daemon-internal.la \
4253 dist_pkgpyexec_PYTHON = \
4254 src/python-systemd/journal.py \
4255 src/python-systemd/daemon.py \
4256 src/python-systemd/__init__.py
4258 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4259 $(AM_V_at)$(MKDIR_P) $(dir $@)
4260 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4263 src/python-systemd/id128-constants.h
4265 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4267 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4268 $(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/
4269 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4272 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4273 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4276 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4277 $(MAKE) DESTDIR="$$dir" install && \
4278 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4283 CLEAN_LOCAL_HOOKS += clean-sphinx
4286 -rm -rf docs/html/python-systemd/
4288 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4290 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4291 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4293 # ------------------------------------------------------------------------------
4295 '|rootlibexecdir=$(rootlibexecdir)|' \
4296 '|rootbindir=$(rootbindir)|' \
4297 '|bindir=$(bindir)|' \
4298 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4299 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4300 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4301 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4302 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4303 '|pkgdatadir=$(pkgdatadir)|' \
4304 '|systemunitdir=$(systemunitdir)|' \
4305 '|userunitdir=$(userunitdir)|' \
4306 '|systempresetdir=$(systempresetdir)|' \
4307 '|userpresetdir=$(userpresetdir)|' \
4308 '|udevhwdbdir=$(udevhwdbdir)|' \
4309 '|udevrulesdir=$(udevrulesdir)|' \
4310 '|catalogdir=$(catalogdir)|' \
4311 '|tmpfilesdir=$(tmpfilesdir)|' \
4312 '|sysctldir=$(sysctldir)|' \
4313 '|systemgeneratordir=$(systemgeneratordir)|' \
4314 '|usergeneratordir=$(usergeneratordir)|' \
4315 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4316 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4317 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4318 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4319 '|prefix=$(prefix)|' \
4320 '|exec_prefix=$(exec_prefix)|' \
4321 '|libdir=$(libdir)|' \
4322 '|includedir=$(includedir)|' \
4323 '|VERSION=$(VERSION)|' \
4324 '|rootprefix=$(rootprefix)|' \
4325 '|udevlibexecdir=$(udevlibexecdir)|' \
4326 '|SUSHELL=$(SUSHELL)|' \
4327 '|DEBUGTTY=$(DEBUGTTY)|' \
4330 '|MKDIR_P=$(MKDIR_P)|' \
4331 '|QUOTAON=$(QUOTAON)|' \
4332 '|QUOTACHECK=$(QUOTACHECK)|' \
4333 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4334 '|VARLOGDIR=$(varlogdir)|' \
4335 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4336 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4337 '|PYTHON=$(PYTHON)|' \
4338 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4341 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4342 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4345 units/%: units/%.in Makefile
4348 man/%: man/%.in Makefile
4351 sysctl.d/%: sysctl.d/%.in Makefile
4354 %.pc: %.pc.in Makefile
4357 src/core/macros.%: src/core/macros.%.in Makefile
4360 src/%.policy.in: src/%.policy.in.in Makefile
4363 %.rules: %.rules.in Makefile
4366 %.sh: %.sh.in Makefile
4368 $(AM_V_GEN)chmod +x $@
4370 src/%.c: src/%.gperf
4371 $(AM_V_at)$(MKDIR_P) $(dir $@)
4372 $(AM_V_GPERF)$(GPERF) < $< > $@
4375 $(AM_V_at)$(MKDIR_P) $(dir $@)
4376 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4378 units/%: units/%.m4 Makefile
4379 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4380 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4382 units/user/%: units/%.m4 Makefile
4383 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4384 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4387 nodist_polkitpolicy_DATA = \
4388 $(polkitpolicy_files) \
4389 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4393 $(polkitpolicy_in_files) \
4394 $(polkitpolicy_in_in_files)
4397 $(nodist_systemunit_DATA) \
4398 $(nodist_userunit_DATA) \
4399 $(pkgconfigdata_DATA) \
4400 $(pkgconfiglib_DATA) \
4401 $(nodist_polkitpolicy_DATA)
4403 # ------------------------------------------------------------------------------
4405 man/custom-entities.ent: Makefile
4406 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4407 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4408 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4412 man/custom-entities.ent
4416 --stringparam man.output.quietly 1 \
4417 --stringparam funcsynopsis.style ansi \
4418 --stringparam man.authors.section.enabled 0 \
4419 --stringparam man.copyright.section.enabled 0 \
4420 --stringparam systemd.version $(VERSION) \
4421 --path '$(builddir)/man:$(srcdir)/man'
4423 XSLTPROC_PROCESS_MAN = \
4424 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4426 XSLTPROC_PROCESS_HTML = \
4427 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4429 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4430 $(XSLTPROC_PROCESS_MAN)
4432 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4433 $(XSLTPROC_PROCESS_MAN)
4435 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4436 $(XSLTPROC_PROCESS_MAN)
4438 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4439 $(XSLTPROC_PROCESS_MAN)
4441 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4442 $(XSLTPROC_PROCESS_MAN)
4444 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4445 $(XSLTPROC_PROCESS_HTML)
4448 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4454 man/custom-html.xsl \
4457 # ------------------------------------------------------------------------------
4458 DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
4461 $(dbusinterface_DATA)
4465 docs/sysvinit/README
4470 docs/sysvinit/README: docs/sysvinit/README.in
4473 docs/var-log/README: docs/var-log/README.in
4477 docs/sysvinit/README \
4482 docs/sysvinit/README.in \
4483 docs/var-log/README.in
4485 SOCKETS_TARGET_WANTS += \
4486 systemd-initctl.socket \
4487 systemd-shutdownd.socket
4490 RUNLEVEL1_TARGET_WANTS += \
4491 systemd-update-utmp-runlevel.service
4492 RUNLEVEL2_TARGET_WANTS += \
4493 systemd-update-utmp-runlevel.service
4494 RUNLEVEL3_TARGET_WANTS += \
4495 systemd-update-utmp-runlevel.service
4496 RUNLEVEL4_TARGET_WANTS += \
4497 systemd-update-utmp-runlevel.service
4498 RUNLEVEL5_TARGET_WANTS += \
4499 systemd-update-utmp-runlevel.service
4501 SYSINIT_TARGET_WANTS += \
4502 systemd-update-utmp.service
4503 LOCAL_FS_TARGET_WANTS += \
4504 systemd-remount-fs.service \
4505 systemd-fsck-root.service \
4507 MULTI_USER_TARGET_WANTS += \
4509 systemd-ask-password-wall.path
4510 SYSINIT_TARGET_WANTS += \
4511 dev-hugepages.mount \
4513 sys-kernel-config.mount \
4514 sys-kernel-debug.mount \
4515 sys-fs-fuse-connections.mount \
4516 systemd-sysctl.service \
4517 systemd-ask-password-console.path
4520 SYSTEM_UNIT_ALIASES += \
4521 poweroff.target runlevel0.target \
4522 rescue.target runlevel1.target \
4523 multi-user.target runlevel2.target \
4524 multi-user.target runlevel3.target \
4525 multi-user.target runlevel4.target \
4526 graphical.target runlevel5.target \
4527 reboot.target runlevel6.target
4530 SYSTEM_UNIT_ALIASES += \
4531 graphical.target default.target \
4532 reboot.target ctrl-alt-del.target \
4533 getty@.service autovt@.service
4535 USER_UNIT_ALIASES += \
4536 $(systemunitdir)/shutdown.target shutdown.target \
4537 $(systemunitdir)/sockets.target sockets.target \
4538 $(systemunitdir)/timers.target timers.target \
4539 $(systemunitdir)/paths.target paths.target \
4540 $(systemunitdir)/bluetooth.target bluetooth.target \
4541 $(systemunitdir)/printer.target printer.target \
4542 $(systemunitdir)/sound.target sound.target \
4543 $(systemunitdir)/smartcard.target smartcard.target
4545 GENERAL_ALIASES += \
4546 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4547 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4548 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4549 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4553 $(systemunitdir)/runlevel1.target.wants \
4554 $(systemunitdir)/runlevel2.target.wants \
4555 $(systemunitdir)/runlevel3.target.wants \
4556 $(systemunitdir)/runlevel4.target.wants \
4557 $(systemunitdir)/runlevel5.target.wants
4561 $(prefix)/lib/modules-load.d \
4562 $(sysconfdir)/modules-load.d \
4563 $(prefix)/lib/sysctl.d \
4564 $(sysconfdir)/sysctl.d \
4565 $(prefix)/lib/kernel/install.d \
4566 $(sysconfdir)/kernel/install.d \
4567 $(systemshutdowndir) \
4569 $(systemgeneratordir) \
4570 $(usergeneratordir) \
4573 $(pkgsysconfdir)/system \
4574 $(pkgsysconfdir)/system/multi-user.target.wants \
4575 $(pkgsysconfdir)/system/getty.target.wants \
4576 $(pkgsysconfdir)/user \
4577 $(dbussessionservicedir) \
4578 $(sysconfdir)/xdg/systemd
4580 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4582 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4584 install-data-hook: $(INSTALL_DATA_HOOKS)
4586 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4588 clean-local: $(CLEAN_LOCAL_HOOKS)
4589 rm -rf $(abs_srcdir)/install-tree
4590 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4591 $(abs_srcdir)/hwdb/iab.txt
4593 DISTCHECK_CONFIGURE_FLAGS = \
4594 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4595 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4596 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4597 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
4598 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4599 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4600 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4601 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4602 --with-rootprefix=$$dc_install_base \
4606 DISTCHECK_CONFIGURE_FLAGS += \
4607 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4608 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4610 DISTCHECK_CONFIGURE_FLAGS += \
4611 --with-sysvinit-path= \
4612 --with-sysvrcnd-path=
4616 DISTCHECK_CONFIGURE_FLAGS += \
4621 ( cd $(top_srcdir)/hwdb && \
4622 wget -N http://www.linux-usb.org/usb.ids \
4623 http://pci-ids.ucw.cz/v2.2/pci.ids \
4624 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4625 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4629 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4630 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4632 upload: all distcheck
4633 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4634 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4635 scp man/*.html tango:public/systemd-man/
4637 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4638 doc-sync: all destdir-sphinx
4639 gtkdoc-rebase --html-dir=docs/libudev/html --online
4640 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4641 gtkdoc-rebase --html-dir=docs/gudev/html --online
4642 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4643 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4644 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4647 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4650 rm -rf $(abs_srcdir)/install-tree
4651 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4652 tree $(abs_srcdir)/install-tree
4654 # Let's run all tests of the test suite, but under valgrind. Let's
4655 # exclude the one perl script we have in there
4656 valgrind-tests: $(TESTS)
4657 for f in $(TESTS) ; do [ "$$f" == "$${f/.pl/}" ] && libtool --mode=execute valgrind --leak-check=full --error-exitcode=55 $(builddir)/$$f ; done