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
9 # systemd is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU Lesser General Public License as published by
11 # the Free Software Foundation; either version 2.1 of the License, or
12 # (at your option) any later version.
14 # systemd is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Lesser General Public License for more details.
19 # You should have received a copy of the GNU Lesser General Public License
20 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
22 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
23 AM_MAKEFLAGS = --no-print-directory
24 AUTOMAKE_OPTIONS = color-tests parallel-tests
28 # remove targets if the command fails
31 # keep intermediate files
34 # Keep the test-suite.log
35 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
45 LIBSYSTEMD_LOGIN_CURRENT=9
46 LIBSYSTEMD_LOGIN_REVISION=1
47 LIBSYSTEMD_LOGIN_AGE=9
49 LIBSYSTEMD_DAEMON_CURRENT=0
50 LIBSYSTEMD_DAEMON_REVISION=10
51 LIBSYSTEMD_DAEMON_AGE=0
53 LIBSYSTEMD_ID128_CURRENT=0
54 LIBSYSTEMD_ID128_REVISION=26
55 LIBSYSTEMD_ID128_AGE=0
57 LIBSYSTEMD_JOURNAL_CURRENT=11
58 LIBSYSTEMD_JOURNAL_REVISION=3
59 LIBSYSTEMD_JOURNAL_AGE=11
61 # Dirs of external packages
62 dbuspolicydir=@dbuspolicydir@
63 dbussessionservicedir=@dbussessionservicedir@
64 dbussystemservicedir=@dbussystemservicedir@
65 dbusinterfacedir=@dbusinterfacedir@
67 pamconfdir=@pamconfdir@
68 pkgconfigdatadir=$(datadir)/pkgconfig
69 pkgconfiglibdir=$(libdir)/pkgconfig
70 polkitpolicydir=$(datadir)/polkit-1/actions
71 bashcompletiondir=@bashcompletiondir@
72 zshcompletiondir=@zshcompletiondir@
73 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
74 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
75 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
76 varlogdir=$(localstatedir)/log
77 systemdstatedir=$(localstatedir)/lib/systemd
78 catalogstatedir=$(systemdstatedir)/catalog
80 # Our own, non-special dirs
81 pkgsysconfdir=$(sysconfdir)/systemd
82 userunitdir=$(prefix)/lib/systemd/user
83 userpresetdir=$(prefix)/lib/systemd/user-preset
84 tmpfilesdir=$(prefix)/lib/tmpfiles.d
85 sysctldir=$(prefix)/lib/sysctl.d
86 pkgincludedir=$(includedir)/systemd
87 systemgeneratordir=$(rootlibexecdir)/system-generators
88 usergeneratordir=$(prefix)/lib/systemd/user-generators
89 systemshutdowndir=$(rootlibexecdir)/system-shutdown
90 systemsleepdir=$(rootlibexecdir)/system-sleep
91 systemunitdir=$(rootprefix)/lib/systemd/system
92 systempresetdir=$(rootprefix)/lib/systemd/system-preset
93 udevlibexecdir=$(rootprefix)/lib/udev
94 udevhomedir=$(udevlibexecdir)
95 udevrulesdir=$(udevlibexecdir)/rules.d
96 udevhwdbdir=$(udevlibexecdir)/hwdb.d
97 catalogdir=$(prefix)/lib/systemd/catalog
98 kernelinstalldir = $(prefix)/lib/kernel/install.d
100 # And these are the special ones for /
101 rootprefix=@rootprefix@
102 rootbindir=$(rootprefix)/bin
103 rootlibexecdir=$(rootprefix)/lib/systemd
105 CLEANFILES = $(BUILT_SOURCES)
110 UNINSTALL_EXEC_HOOKS =
112 UNINSTALL_DATA_HOOKS =
113 DISTCLEAN_LOCAL_HOOKS =
121 polkitpolicy_in_in_files =
122 polkitpolicy_in_files =
124 dist_udevrules_DATA =
125 nodist_udevrules_DATA =
126 dist_pkgsysconf_DATA =
128 dist_dbuspolicy_DATA =
130 dist_dbussystemservice_DATA =
136 noinst_PROGRAMS = $(manual_tests) $(tests)
142 udevlibexec_PROGRAMS =
145 -include $(top_builddir)/config.h \
146 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
147 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
148 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
149 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
150 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
151 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
152 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
153 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
154 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
155 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
156 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
157 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
158 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
159 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
160 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
161 -DROOTPREFIX=\"$(rootprefix)\" \
162 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
163 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
164 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
165 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
166 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
167 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
168 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
169 -DX_SERVER=\"$(bindir)/X\" \
170 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
171 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
172 -DQUOTACHECK=\"$(QUOTACHECK)\" \
173 -DKEXEC=\"$(KEXEC)\" \
174 -I $(top_srcdir)/src \
175 -I $(top_srcdir)/src/shared \
176 -I $(top_srcdir)/src/login \
177 -I $(top_srcdir)/src/journal \
178 -I $(top_srcdir)/src/systemd \
179 -I $(top_builddir)/src/core \
180 -I $(top_srcdir)/src/core \
181 -I $(top_srcdir)/src/libudev \
182 -I $(top_srcdir)/src/udev \
183 -I $(top_builddir)/src/udev \
184 -I $(top_srcdir)/src/libsystemd-bus \
187 AM_CFLAGS = $(OUR_CFLAGS)
188 AM_LDFLAGS = $(OUR_LDFLAGS)
190 # ------------------------------------------------------------------------------
191 define move-to-rootlibdir
192 if test "$(libdir)" != "$(rootlibdir)"; then \
193 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
194 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
195 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
196 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
197 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
203 RUNLEVEL1_TARGET_WANTS =
204 RUNLEVEL2_TARGET_WANTS =
205 RUNLEVEL3_TARGET_WANTS =
206 RUNLEVEL4_TARGET_WANTS =
207 RUNLEVEL5_TARGET_WANTS =
208 SHUTDOWN_TARGET_WANTS =
209 LOCAL_FS_TARGET_WANTS =
210 MULTI_USER_TARGET_WANTS =
211 SYSINIT_TARGET_WANTS =
212 SOCKETS_TARGET_WANTS =
213 TIMERS_TARGET_WANTS =
215 SYSTEM_UNIT_ALIASES =
220 install-target-wants-hook:
221 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
222 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
223 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
224 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
225 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
226 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
227 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
228 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
229 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
230 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
231 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
232 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
235 [ -z "$$what" ] || ( \
236 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
237 $(MKDIR_P) -m 0755 $$dir && \
240 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
243 install-directories-hook:
244 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
246 install-aliases-hook:
247 set -- $(SYSTEM_UNIT_ALIASES) && \
248 dir=$(systemunitdir) && $(install-aliases)
249 set -- $(USER_UNIT_ALIASES) && \
250 dir=$(userunitdir) && $(install-aliases)
251 set -- $(GENERAL_ALIASES) && \
252 dir= && $(install-aliases)
254 define install-aliases
255 while [ -n "$$1" ]; do \
256 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
257 rm -f $(DESTDIR)$$dir/$$2 && \
258 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
259 shift 2 || exit $$?; \
263 INSTALL_EXEC_HOOKS += \
264 install-target-wants-hook \
265 install-directories-hook \
268 # ------------------------------------------------------------------------------
269 AM_V_M4 = $(AM_V_M4_$(V))
270 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
271 AM_V_M4_0 = @echo " M4 " $@;
273 AM_V_XSLT = $(AM_V_XSLT_$(V))
274 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
275 AM_V_XSLT_0 = @echo " XSLT " $@;
277 AM_V_GPERF = $(AM_V_GPERF_$(V))
278 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
279 AM_V_GPERF_0 = @echo " GPERF " $@;
281 AM_V_LN = $(AM_V_LN_$(V))
282 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
283 AM_V_LN_0 = @echo " LN " $@;
285 # ------------------------------------------------------------------------------
289 systemd-ask-password \
290 systemd-tty-ask-password-agent \
291 systemd-machine-id-setup
296 systemd-stdio-bridge \
298 systemd-detect-virt \
304 src/kernel-install/kernel-install
306 dist_kernelinstall_SCRIPTS = \
307 src/kernel-install/50-depmod.install \
308 src/kernel-install/90-loaderentry.install
310 rootlibexec_PROGRAMS = \
312 systemd-cgroups-agent \
314 systemd-update-utmp \
318 systemd-reply-password \
324 systemgenerator_PROGRAMS = \
325 systemd-getty-generator \
326 systemd-fstab-generator \
327 systemd-system-update-generator
329 systemd_analyze_SOURCES = \
330 src/analyze/systemd-analyze.c
332 systemd_analyze_CFLAGS = \
336 systemd_analyze_LDADD = \
337 libsystemd-shared.la \
340 dist_bashcompletion_DATA = \
341 shell-completion/bash/journalctl \
342 shell-completion/bash/systemctl \
343 shell-completion/bash/systemd-analyze \
344 shell-completion/bash/systemd-run \
345 shell-completion/bash/udevadm \
346 shell-completion/bash/kernel-install
348 dist_zshcompletion_DATA = \
349 shell-completion/zsh/_systemctl \
350 shell-completion/zsh/_journalctl \
351 shell-completion/zsh/_udevadm \
352 shell-completion/zsh/_kernel-install \
353 shell-completion/zsh/_systemd-nspawn \
354 shell-completion/zsh/_systemd-analyze \
355 shell-completion/zsh/_sd_hosts_or_user_at_host \
356 shell-completion/zsh/_systemd-delta \
357 shell-completion/zsh/_systemd
360 sysctl.d/50-default.conf
362 dist_systemunit_DATA = \
363 units/graphical.target \
364 units/multi-user.target \
365 units/emergency.service \
366 units/emergency.target \
367 units/sysinit.target \
372 units/local-fs.target \
373 units/local-fs-pre.target \
374 units/initrd.target \
375 units/initrd-fs.target \
376 units/initrd-root-fs.target \
377 units/remote-fs.target \
378 units/remote-fs-pre.target \
379 units/network.target \
380 units/network-online.target \
381 units/nss-lookup.target \
382 units/nss-user-lookup.target \
383 units/hibernate.target \
384 units/hybrid-sleep.target \
385 units/poweroff.target \
386 units/reboot.target \
387 units/rescue.target \
388 units/rpcbind.target \
389 units/time-sync.target \
390 units/shutdown.target \
392 units/umount.target \
393 units/sigpwr.target \
395 units/sockets.target \
396 units/timers.target \
398 units/suspend.target \
400 units/slices.target \
403 units/systemd-initctl.socket \
404 units/systemd-shutdownd.socket \
405 units/syslog.socket \
406 units/dev-hugepages.mount \
407 units/dev-mqueue.mount \
408 units/sys-kernel-config.mount \
409 units/sys-kernel-debug.mount \
410 units/sys-fs-fuse-connections.mount \
412 units/printer.target \
414 units/bluetooth.target \
415 units/smartcard.target \
416 units/systemd-ask-password-wall.path \
417 units/systemd-ask-password-console.path \
418 units/systemd-udevd-control.socket \
419 units/systemd-udevd-kernel.socket \
420 units/system-update.target \
421 units/initrd-switch-root.target
423 nodist_systemunit_DATA = \
424 units/getty@.service \
425 units/serial-getty@.service \
426 units/console-shell.service \
427 units/console-getty.service \
428 units/systemd-initctl.service \
429 units/systemd-shutdownd.service \
430 units/systemd-remount-fs.service \
431 units/systemd-update-utmp.service \
432 units/systemd-update-utmp-runlevel.service \
433 units/systemd-ask-password-wall.service \
434 units/systemd-ask-password-console.service \
435 units/systemd-sysctl.service \
436 units/emergency.service \
437 units/rescue.service \
438 units/user@.service \
439 units/systemd-hibernate.service \
440 units/systemd-hybrid-sleep.service \
441 units/systemd-suspend.service \
442 units/systemd-halt.service \
443 units/systemd-poweroff.service \
444 units/systemd-reboot.service \
445 units/systemd-kexec.service \
446 units/systemd-fsck@.service \
447 units/systemd-fsck-root.service \
448 units/systemd-udevd.service \
449 units/systemd-udev-trigger.service \
450 units/systemd-udev-settle.service \
451 units/debug-shell.service \
452 units/initrd-parse-etc.service \
453 units/initrd-cleanup.service \
454 units/initrd-udevadm-cleanup-db.service \
455 units/initrd-switch-root.service \
456 units/systemd-nspawn@.service
458 dist_userunit_DATA = \
459 units/user/default.target \
460 units/user/exit.target
462 nodist_userunit_DATA = \
463 units/user/systemd-exit.service
466 units/getty@.service.m4 \
467 units/serial-getty@.service.m4 \
468 units/console-shell.service.m4.in \
469 units/console-getty.service.m4.in \
470 units/rescue.service.m4.in \
471 units/systemd-initctl.service.in \
472 units/systemd-shutdownd.service.in \
473 units/systemd-remount-fs.service.in \
474 units/systemd-update-utmp.service.in \
475 units/systemd-update-utmp-runlevel.service.in \
476 units/systemd-ask-password-wall.service.in \
477 units/systemd-ask-password-console.service.in \
478 units/systemd-sysctl.service.in \
479 units/emergency.service.in \
480 units/systemd-halt.service.in \
481 units/systemd-poweroff.service.in \
482 units/systemd-reboot.service.in \
483 units/systemd-kexec.service.in \
484 units/user/systemd-exit.service.in \
485 units/systemd-fsck@.service.in \
486 units/systemd-fsck-root.service.in \
487 units/user@.service.in \
488 units/systemd-udevd.service \
489 units/systemd-udev-trigger.service \
490 units/systemd-udev-settle.service \
491 units/debug-shell.service.in \
492 units/systemd-hibernate.service.in \
493 units/systemd-hybrid-sleep.service.in \
494 units/systemd-suspend.service.in \
495 units/quotaon.service.in \
496 units/initrd-parse-etc.service.in \
497 units/initrd-cleanup.service.in \
498 units/initrd-udevadm-cleanup-db.service.in \
499 units/initrd-switch-root.service.in \
500 units/systemd-nspawn@.service.in \
504 units/console-shell.service.m4 \
505 units/console-getty.service.m4 \
506 units/rescue.service.m4
509 nodist_systemunit_DATA += \
510 units/rc-local.service \
511 units/halt-local.service
513 systemgenerator_PROGRAMS += \
514 systemd-rc-local-generator
518 units/rc-local.service.in \
519 units/halt-local.service.in
521 # automake is broken and can't handle files with a dash in front
522 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
524 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
526 units-uninstall-hook:
527 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
529 INSTALL_DATA_HOOKS += units-install-hook
530 UNINSTALL_DATA_HOOKS += units-uninstall-hook
540 @INTLTOOL_POLICY_RULE@
542 # ------------------------------------------------------------------------------
547 include Makefile-man.am
550 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
553 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
555 ${XML_FILES:.xml=.html}
557 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
574 $(AM_V_at)$(MKDIR_P) $(dir $@)
575 $(AM_V_LN)$(LN_S) -f ../../man $@
584 man/index.html: man/systemd.index.html
585 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
593 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
594 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
595 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
597 update-man-list: make-man-rules.py $(XML_GLOB)
598 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
599 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
600 @echo "Makefile-man.am has been regenerated"
602 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
603 $(AM_V_at)$(MKDIR_P) $(dir $@)
604 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
606 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
607 $(AM_V_at)$(MKDIR_P) $(dir $@)
608 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
611 man/systemd.index.xml \
613 man/systemd.directives.xml
616 man/systemd.index.xml \
617 man/systemd.directives.xml
629 make-directive-index.py \
632 # ------------------------------------------------------------------------------
633 noinst_LTLIBRARIES += \
636 libsystemd_shared_la_SOURCES = \
637 src/shared/linux/auto_dev-ioctl.h \
638 src/shared/linux/fanotify.h \
639 src/shared/linux/seccomp.h \
640 src/shared/linux/seccomp-bpf.h \
641 src/shared/missing.h \
645 src/shared/device-nodes.c \
646 src/shared/device-nodes.h \
647 src/shared/sparse-endian.h \
652 src/shared/efivars.c \
653 src/shared/efivars.h \
654 src/shared/path-util.c \
655 src/shared/path-util.h \
656 src/shared/time-util.c \
657 src/shared/time-util.h \
658 src/shared/hashmap.c \
659 src/shared/hashmap.h \
666 src/shared/sleep-config.c \
667 src/shared/sleep-config.h \
670 src/shared/env-util.c \
671 src/shared/env-util.h \
672 src/shared/strbuf.c \
673 src/shared/strbuf.h \
674 src/shared/strxcpyx.c \
675 src/shared/strxcpyx.h \
676 src/shared/conf-parser.c \
677 src/shared/conf-parser.h \
680 src/shared/ratelimit.h \
681 src/shared/ratelimit.c \
682 src/shared/exit-status.c \
683 src/shared/exit-status.h \
688 src/shared/ioprio.h \
689 src/shared/socket-util.c \
690 src/shared/socket-util.h \
691 src/shared/conf-files.c \
692 src/shared/conf-files.h \
693 src/shared/cgroup-util.c \
694 src/shared/cgroup-util.h \
695 src/shared/cgroup-show.c \
696 src/shared/cgroup-show.h \
697 src/shared/unit-name.c \
698 src/shared/unit-name.h \
699 src/shared/utmp-wtmp.c \
700 src/shared/utmp-wtmp.h \
701 src/shared/watchdog.c \
702 src/shared/watchdog.h \
703 src/shared/spawn-ask-password-agent.c \
704 src/shared/spawn-ask-password-agent.h \
705 src/shared/replace-var.c \
706 src/shared/replace-var.h \
707 src/shared/spawn-polkit-agent.c \
708 src/shared/spawn-polkit-agent.h \
709 src/shared/hwclock.c \
710 src/shared/hwclock.h \
711 src/shared/time-dst.c \
712 src/shared/time-dst.h \
713 src/shared/calendarspec.c \
714 src/shared/calendarspec.h \
715 src/shared/fileio.c \
716 src/shared/fileio.h \
717 src/shared/output-mode.h \
718 src/shared/MurmurHash3.c \
719 src/shared/MurmurHash3.h \
720 src/shared/acpi-fpdt.h \
721 src/shared/acpi-fpdt.c \
722 src/shared/boot-timestamps.h \
723 src/shared/boot-timestamps.c \
724 src/shared/refcnt.h \
728 #-------------------------------------------------------------------------------
729 noinst_LTLIBRARIES += \
732 libsystemd_dbus_la_SOURCES = \
733 src/shared/dbus-common.c \
734 src/shared/dbus-common.h \
735 src/shared/dbus-loop.c \
736 src/shared/dbus-loop.h \
737 src/shared/polkit.c \
740 libsystemd_dbus_la_CFLAGS = \
744 libsystemd_dbus_la_LIBADD = \
747 # ------------------------------------------------------------------------------
748 noinst_LTLIBRARIES += \
751 libsystemd_units_la_SOURCES = \
752 src/shared/install.c \
753 src/shared/install.h \
754 src/shared/install-printf.c \
755 src/shared/install-printf.h \
756 src/shared/path-lookup.c \
757 src/shared/path-lookup.h \
758 src/shared/specifier.c \
759 src/shared/specifier.h
761 libsystemd_units_la_CFLAGS = \
765 # ------------------------------------------------------------------------------
766 noinst_LTLIBRARIES += \
769 libsystemd_label_la_SOURCES = \
770 src/shared/socket-label.c \
773 src/shared/selinux-util.c \
774 src/shared/selinux-util.h \
775 src/shared/mkdir-label.c \
776 src/shared/ask-password-api.c \
777 src/shared/ask-password-api.h \
778 src/shared/fileio-label.c \
779 src/shared/fileio-label.h \
780 src/shared/dev-setup.c \
781 src/shared/dev-setup.h
783 libsystemd_label_la_CFLAGS = \
787 libsystemd_label_la_LIBADD = \
790 # ------------------------------------------------------------------------------
791 noinst_LTLIBRARIES += \
794 libsystemd_logs_la_SOURCES = \
795 src/shared/logs-show.c \
796 src/shared/logs-show.h
798 libsystemd_logs_la_CFLAGS = \
801 libsystemd_logs_la_LIBADD = \
802 libsystemd-journal-internal.la \
803 libsystemd-id128-internal.la \
806 # ------------------------------------------------------------------------------
807 noinst_LTLIBRARIES += \
808 libsystemd-capability.la
810 libsystemd_capability_la_SOURCES = \
811 src/shared/capability.c \
812 src/shared/capability.h
814 libsystemd_capability_la_CFLAGS = \
818 libsystemd_capability_la_LIBADD = \
821 # ------------------------------------------------------------------------------
822 noinst_LTLIBRARIES += \
825 libsystemd_audit_la_SOURCES = \
829 libsystemd_audit_la_LIBADD = \
830 libsystemd-capability.la
832 # ------------------------------------------------------------------------------
834 noinst_LTLIBRARIES += \
837 libsystemd_acl_la_SOURCES = \
838 src/shared/acl-util.c \
839 src/shared/acl-util.h
841 libsystemd_acl_la_CFLAGS = \
845 libsystemd_acl_la_LIBADD = \
850 # ------------------------------------------------------------------------------
851 noinst_LTLIBRARIES += \
854 libsystemd_core_la_SOURCES = \
857 src/core/unit-printf.c \
858 src/core/unit-printf.h \
863 src/core/transaction.c \
864 src/core/transaction.h \
865 src/core/load-fragment.c \
866 src/core/load-fragment.h \
869 src/core/automount.c \
870 src/core/automount.h \
879 src/core/snapshot.c \
880 src/core/snapshot.h \
891 src/core/load-dropin.c \
892 src/core/load-dropin.h \
899 src/core/dbus-manager.c \
900 src/core/dbus-manager.h \
901 src/core/dbus-unit.c \
902 src/core/dbus-unit.h \
903 src/core/dbus-job.c \
904 src/core/dbus-job.h \
905 src/core/dbus-service.c \
906 src/core/dbus-service.h \
907 src/core/dbus-socket.c \
908 src/core/dbus-socket.h \
909 src/core/dbus-timer.c \
910 src/core/dbus-timer.h \
911 src/core/dbus-target.c \
912 src/core/dbus-target.h \
913 src/core/dbus-mount.c \
914 src/core/dbus-mount.h \
915 src/core/dbus-automount.c \
916 src/core/dbus-automount.h \
917 src/core/dbus-swap.c \
918 src/core/dbus-swap.h \
919 src/core/dbus-snapshot.c \
920 src/core/dbus-snapshot.h \
921 src/core/dbus-device.c \
922 src/core/dbus-device.h \
923 src/core/dbus-path.c \
924 src/core/dbus-path.h \
925 src/core/dbus-slice.c \
926 src/core/dbus-slice.h \
927 src/core/dbus-scope.c \
928 src/core/dbus-scope.h \
929 src/core/dbus-execute.c \
930 src/core/dbus-execute.h \
931 src/core/dbus-kill.c \
932 src/core/dbus-kill.h \
933 src/core/dbus-cgroup.c \
934 src/core/dbus-cgroup.h \
937 src/core/selinux-access.c \
938 src/core/selinux-access.h \
939 src/core/selinux-setup.c \
940 src/core/selinux-setup.h \
941 src/core/smack-setup.c \
942 src/core/smack-setup.h \
943 src/core/ima-setup.c \
944 src/core/ima-setup.h \
945 src/core/locale-setup.h \
946 src/core/locale-setup.c \
947 src/core/hostname-setup.c \
948 src/core/hostname-setup.h \
949 src/core/machine-id-setup.c \
950 src/core/machine-id-setup.h \
951 src/core/mount-setup.c \
952 src/core/mount-setup.h \
953 src/core/loopback-setup.h \
954 src/core/loopback-setup.c \
955 src/core/condition.c \
956 src/core/condition.h \
957 src/core/namespace.c \
958 src/core/namespace.h \
961 src/core/securebits.h \
964 src/core/bus-errors.h \
966 src/core/sysfs-show.h \
967 src/core/switch-root.h \
968 src/core/switch-root.c \
971 src/core/syscall-list.c \
972 src/core/syscall-list.h \
973 src/core/audit-fd.c \
974 src/core/audit-fd.h \
979 libsystemd_core_la_SOURCES += \
980 src/core/kmod-setup.c \
981 src/core/kmod-setup.h
984 nodist_libsystemd_core_la_SOURCES = \
985 src/core/load-fragment-gperf.c \
986 src/core/load-fragment-gperf-nulstr.c \
987 src/core/syscall-from-name.h \
988 src/core/syscall-to-name.h
990 libsystemd_core_la_CFLAGS = \
999 libsystemd_core_la_LIBADD = \
1000 libsystemd-capability.la \
1001 libsystemd-units.la \
1002 libsystemd-label.la \
1003 libsystemd-shared.la \
1004 libsystemd-dbus.la \
1005 libsystemd-audit.la \
1006 libsystemd-id128-internal.la \
1007 libsystemd-daemon.la \
1015 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1016 $(AM_V_at)$(MKDIR_P) $(dir $@)
1017 $(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 ";" }' < $< > $@
1020 src/core/load-fragment-gperf.gperf.m4
1023 src/core/load-fragment-gperf.gperf \
1024 src/core/load-fragment-gperf.c \
1025 src/core/load-fragment-gperf-nulstr.c \
1026 src/core/syscall-list.txt \
1027 src/core/syscall-from-name.gperf
1030 src/core/syscall-from-name.h \
1031 src/core/syscall-to-name.h
1033 src/core/syscall-list.txt: Makefile
1034 $(AM_V_at)$(MKDIR_P) $(dir $@)
1035 $(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; }' > $@
1037 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
1038 $(AM_V_at)$(MKDIR_P) $(dir $@)
1039 $(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 }' < $< > $@
1041 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
1042 $(AM_V_at)$(MKDIR_P) $(dir $@)
1043 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1045 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
1046 $(AM_V_at)$(MKDIR_P) $(dir $@)
1047 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1049 # ------------------------------------------------------------------------------
1058 libsystemd-core.la \
1059 libsystemd-daemon.la \
1060 libsystemd-id128-internal.la \
1063 dist_pkgsysconf_DATA += \
1064 src/core/system.conf \
1067 dist_dbuspolicy_DATA += \
1068 src/core/org.freedesktop.systemd1.conf
1070 dist_dbussystemservice_DATA += \
1071 src/core/org.freedesktop.systemd1.service
1073 dbusinterface_DATA += \
1074 org.freedesktop.systemd1.Manager.xml \
1075 org.freedesktop.systemd1.Job.xml \
1076 org.freedesktop.systemd1.Unit.xml \
1077 org.freedesktop.systemd1.Service.xml \
1078 org.freedesktop.systemd1.Socket.xml \
1079 org.freedesktop.systemd1.Timer.xml \
1080 org.freedesktop.systemd1.Target.xml \
1081 org.freedesktop.systemd1.Device.xml \
1082 org.freedesktop.systemd1.Mount.xml \
1083 org.freedesktop.systemd1.Automount.xml \
1084 org.freedesktop.systemd1.Snapshot.xml \
1085 org.freedesktop.systemd1.Swap.xml \
1086 org.freedesktop.systemd1.Path.xml
1088 polkitpolicy_in_in_files += \
1089 src/core/org.freedesktop.systemd1.policy.in.in
1091 org.freedesktop.systemd1.%.xml: systemd
1092 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1093 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1094 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1096 pkgconfigdata_DATA = \
1099 nodist_rpmmacros_DATA = \
1100 src/core/macros.systemd
1103 src/core/systemd.pc.in \
1104 src/core/macros.systemd.in
1107 src/core/macros.systemd \
1108 src/core/org.freedesktop.systemd1.policy.in
1110 # ------------------------------------------------------------------------------
1138 test-strip-tab-ansi \
1149 test/sched_idle_bad.service \
1150 test/sched_idle_ok.service \
1151 test/sched_rr_bad.service \
1152 test/sched_rr_ok.service \
1153 test/sched_rr_change.service
1156 src/test/test-helper.h
1158 test_device_nodes_SOURCES = \
1159 src/test/test-device-nodes.c
1161 test_device_nodes_LDADD = \
1162 libsystemd-shared.la
1164 test_engine_SOURCES = \
1165 src/test/test-engine.c
1167 test_engine_CFLAGS = \
1171 test_engine_LDADD = \
1172 libsystemd-core.la \
1173 libsystemd-daemon.la \
1176 test_job_type_SOURCES = \
1177 src/test/test-job-type.c
1179 test_job_type_CFLAGS = \
1183 test_job_type_LDADD = \
1184 libsystemd-core.la \
1185 libsystemd-daemon.la
1197 test_loopback_SOURCES = \
1198 src/test/test-loopback.c
1200 test_loopback_LDADD = \
1201 libsystemd-shared.la \
1204 test_hostname_SOURCES = \
1205 src/test/test-hostname.c
1207 test_hostname_LDADD = \
1214 test_boot_timestamp_SOURCES = \
1215 src/test/test-boot-timestamps.c
1217 test_boot_timestamp_LDADD = \
1218 libsystemd-shared.la
1221 test_unit_name_SOURCES = \
1222 src/test/test-unit-name.c
1224 test_unit_name_CFLAGS = \
1228 test_unit_name_LDADD = \
1231 test_unit_file_SOURCES = \
1232 src/test/test-unit-file.c
1234 test_unit_file_CFLAGS = \
1238 test_unit_file_LDADD = \
1241 test_utf8_SOURCES = \
1242 src/test/test-utf8.c
1244 test_utf8_CFLAGS = \
1248 libsystemd-shared.la
1250 test_util_SOURCES = \
1251 src/test/test-util.c
1253 test_util_CFLAGS = \
1259 test_hashmap_SOURCES = \
1260 src/test/test-hashmap.c
1262 test_hashmap_CFLAGS = \
1265 test_hashmap_LDADD = \
1268 test_list_SOURCES = \
1269 src/test/test-list.c
1271 test_list_CFLAGS = \
1277 test_tables_SOURCES = \
1278 src/test/test-tables.c \
1279 src/shared/test-tables.h
1281 test_tables_CFLAGS = \
1285 test_tables_LDADD = \
1286 libsystemd-core.la \
1289 test_prioq_SOURCES = \
1290 src/test/test-prioq.c
1292 test_prioq_CFLAGS = \
1295 test_prioq_LDADD = \
1298 test_fileio_SOURCES = \
1299 src/test/test-fileio.c
1301 test_fileio_CFLAGS = \
1304 test_fileio_LDADD = \
1307 test_time_SOURCES = \
1308 src/test/test-time.c
1310 test_time_CFLAGS = \
1316 test_log_SOURCES = \
1322 test_date_SOURCES = \
1323 src/test/test-date.c
1328 test_sleep_SOURCES = \
1329 src/test/test-sleep.c
1331 test_sleep_LDADD = \
1334 test_replace_var_SOURCES = \
1335 src/test/test-replace-var.c
1337 test_replace_var_LDADD = \
1338 libsystemd-shared.la
1340 test_calendarspec_SOURCES = \
1341 src/test/test-calendarspec.c
1343 test_calendarspec_LDADD = \
1344 libsystemd-shared.la
1346 test_strip_tab_ansi_SOURCES = \
1347 src/test/test-strip-tab-ansi.c
1349 test_strip_tab_ansi_LDADD = \
1350 libsystemd-shared.la
1352 test_daemon_SOURCES = \
1353 src/test/test-daemon.c
1355 test_daemon_LDADD = \
1356 libsystemd-shared.la \
1357 libsystemd-daemon.la
1359 test_cgroup_SOURCES = \
1360 src/test/test-cgroup.c
1362 test_cgroup_LDADD = \
1363 libsystemd-label.la \
1364 libsystemd-shared.la
1366 test_cgroup_util_SOURCES = \
1367 src/test/test-cgroup-util.c
1369 test_cgroup_util_LDADD = \
1370 libsystemd-label.la \
1371 libsystemd-shared.la \
1372 libsystemd-daemon.la
1374 test_env_replace_SOURCES = \
1375 src/test/test-env-replace.c
1377 test_env_replace_LDADD = \
1378 libsystemd-shared.la
1380 test_strbuf_SOURCES = \
1381 src/test/test-strbuf.c
1383 test_strbuf_LDADD = \
1384 libsystemd-shared.la
1386 test_strv_SOURCES = \
1387 src/test/test-strv.c
1390 libsystemd-shared.la \
1391 libsystemd-units.la \
1392 libsystemd-id128-internal.la
1394 test_path_util_SOURCES = \
1395 src/test/test-path-util.c
1397 test_path_util_LDADD = \
1398 libsystemd-shared.la
1400 test_strxcpyx_SOURCES = \
1401 src/test/test-strxcpyx.c
1403 test_strxcpyx_LDADD = \
1404 libsystemd-shared.la
1406 test_install_SOURCES = \
1407 src/test/test-install.c
1409 test_install_CFLAGS = \
1413 test_install_LDADD = \
1414 libsystemd-units.la \
1415 libsystemd-label.la \
1416 libsystemd-shared.la \
1417 libsystemd-id128-internal.la
1419 test_watchdog_SOURCES = \
1420 src/test/test-watchdog.c
1422 test_watchdog_LDADD = \
1423 libsystemd-shared.la
1425 test_sched_prio_SOURCES = \
1426 src/test/test-sched-prio.c
1428 test_sched_prio_CFLAGS = \
1431 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1433 test_sched_prio_LDADD = \
1434 libsystemd-core.la \
1435 libsystemd-daemon.la
1437 # ------------------------------------------------------------------------------
1438 ## .PHONY so it always rebuilds it
1439 .PHONY: coverage lcov-run lcov-report
1441 # run lcov from scratch, always
1446 coverage_dir = coverage
1447 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1450 # reset run coverage tests
1452 @rm -rf $(coverage_dir)
1453 lcov $(coverage_opts) --zerocounters
1456 # generate report based on current coverage data
1458 $(MKDIR_P) $(coverage_dir)
1459 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1460 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1461 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1462 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1464 # lcov doesn't work properly with vpath builds, make sure that bad
1465 # output is not uploaded by mistake.
1466 coverage-sync: coverage
1467 test "$(builddir)" = "$(srcdir)"
1468 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1471 lcov-run lcov-report:
1472 echo "Need to reconfigure with --enable-coverage"
1475 # ------------------------------------------------------------------------------
1476 systemd_initctl_SOURCES = \
1477 src/initctl/initctl.c
1479 systemd_initctl_CFLAGS = \
1483 systemd_initctl_LDADD = \
1484 libsystemd-shared.la \
1485 libsystemd-daemon.la \
1488 # ------------------------------------------------------------------------------
1489 systemd_update_utmp_SOURCES = \
1490 src/update-utmp/update-utmp.c
1492 systemd_update_utmp_CFLAGS = \
1497 systemd_update_utmp_LDADD = \
1498 libsystemd-shared.la \
1499 libsystemd-dbus.la \
1502 # ------------------------------------------------------------------------------
1503 systemd_shutdownd_SOURCES = \
1504 src/shutdownd/shutdownd.c
1506 systemd_shutdownd_LDADD = \
1507 libsystemd-label.la \
1508 libsystemd-shared.la \
1509 libsystemd-daemon.la
1511 pkginclude_HEADERS += \
1512 src/systemd/sd-shutdown.h
1514 # ------------------------------------------------------------------------------
1515 systemd_shutdown_SOURCES = \
1518 src/core/shutdown.c \
1519 src/core/mount-setup.c \
1520 src/core/mount-setup.h \
1521 src/core/killall.h \
1524 systemd_shutdown_LDADD = \
1525 libsystemd-label.la \
1526 libsystemd-shared.la \
1529 # ------------------------------------------------------------------------------
1531 systemd_modules_load_SOURCES = \
1532 src/modules-load/modules-load.c
1534 systemd_modules_load_CFLAGS = \
1538 systemd_modules_load_LDADD = \
1539 libsystemd-shared.la \
1542 rootlibexec_PROGRAMS += \
1543 systemd-modules-load
1545 nodist_systemunit_DATA += \
1546 units/systemd-modules-load.service
1548 SYSINIT_TARGET_WANTS += \
1549 systemd-modules-load.service
1552 nodist_systemunit_DATA += \
1553 units/kmod-static-nodes.service
1555 SYSINIT_TARGET_WANTS += \
1556 kmod-static-nodes.service
1561 units/systemd-modules-load.service.in \
1562 units/kmod-static-nodes.service.in
1564 # ------------------------------------------------------------------------------
1566 systemd_tmpfiles_SOURCES = \
1567 src/tmpfiles/tmpfiles.c \
1568 src/shared/specifier.c \
1569 src/shared/specifier.h
1571 systemd_tmpfiles_LDADD = \
1572 libsystemd-label.la \
1573 libsystemd-shared.la \
1574 libsystemd-capability.la \
1575 libsystemd-id128-internal.la
1577 rootbin_PROGRAMS += \
1580 dist_systemunit_DATA += \
1581 units/systemd-tmpfiles-clean.timer
1583 nodist_systemunit_DATA += \
1584 units/systemd-tmpfiles-setup-dev.service \
1585 units/systemd-tmpfiles-setup.service \
1586 units/systemd-tmpfiles-clean.service
1588 dist_tmpfiles_DATA = \
1589 tmpfiles.d/systemd.conf \
1590 tmpfiles.d/tmp.conf \
1594 dist_tmpfiles_DATA += \
1595 tmpfiles.d/legacy.conf
1598 SYSINIT_TARGET_WANTS += \
1599 systemd-tmpfiles-setup-dev.service \
1600 systemd-tmpfiles-setup.service
1602 dist_zshcompletion_DATA += \
1603 shell-completion/zsh/_systemd-tmpfiles
1605 TIMERS_TARGET_WANTS += \
1606 systemd-tmpfiles-clean.timer
1610 $(sysconfdir)/tmpfiles.d
1614 units/systemd-tmpfiles-setup-dev.service.in \
1615 units/systemd-tmpfiles-setup.service.in \
1616 units/systemd-tmpfiles-clean.service.in
1618 # ------------------------------------------------------------------------------
1619 systemd_machine_id_setup_SOURCES = \
1620 src/machine-id-setup/machine-id-setup-main.c \
1621 src/core/machine-id-setup.c \
1622 src/core/machine-id-setup.h
1624 systemd_machine_id_setup_LDADD = \
1625 libsystemd-label.la \
1626 libsystemd-shared.la \
1627 libsystemd-id128-internal.la
1629 # ------------------------------------------------------------------------------
1630 systemd_sysctl_SOURCES = \
1633 systemd_sysctl_LDADD = \
1634 libsystemd-shared.la
1636 # ------------------------------------------------------------------------------
1637 systemd_sleep_SOURCES = \
1640 systemd_sleep_LDADD = \
1641 libsystemd-shared.la
1643 # ------------------------------------------------------------------------------
1644 systemd_fsck_SOURCES = \
1647 systemd_fsck_CFLAGS = \
1651 systemd_fsck_LDADD = \
1652 libsystemd-shared.la \
1653 libsystemd-dbus.la \
1656 # ------------------------------------------------------------------------------
1657 systemd_ac_power_SOURCES = \
1658 src/ac-power/ac-power.c
1660 systemd_ac_power_LDADD = \
1661 libsystemd-shared.la \
1664 # ------------------------------------------------------------------------------
1665 systemd_detect_virt_SOURCES = \
1666 src/detect-virt/detect-virt.c
1668 systemd_detect_virt_LDADD = \
1669 libsystemd-shared.la
1671 systemd-detect-virt-install-hook:
1672 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1674 INSTALL_EXEC_HOOKS += \
1675 systemd-detect-virt-install-hook
1677 # ------------------------------------------------------------------------------
1678 systemd_delta_SOURCES = \
1681 systemd_delta_LDADD = \
1682 libsystemd-shared.la
1684 # ------------------------------------------------------------------------------
1685 systemd_getty_generator_SOURCES = \
1686 src/getty-generator/getty-generator.c
1688 systemd_getty_generator_LDADD = \
1689 libsystemd-label.la \
1690 libsystemd-shared.la
1692 # ------------------------------------------------------------------------------
1693 systemd_fstab_generator_SOURCES = \
1694 src/fstab-generator/fstab-generator.c \
1695 src/core/mount-setup.c
1697 systemd_fstab_generator_LDADD = \
1698 libsystemd-label.la \
1699 libsystemd-shared.la
1701 # ------------------------------------------------------------------------------
1702 systemd_system_update_generator_SOURCES = \
1703 src/system-update-generator/system-update-generator.c
1705 systemd_system_update_generator_LDADD = \
1706 libsystemd-label.la \
1707 libsystemd-shared.la
1710 # ------------------------------------------------------------------------------
1711 systemgenerator_PROGRAMS += \
1712 systemd-efi-boot-generator
1714 systemd_efi_boot_generator_SOURCES = \
1715 src/efi-boot-generator/efi-boot-generator.c
1717 systemd_efi_boot_generator_LDADD = \
1718 libsystemd-label.la \
1719 libsystemd-shared.la
1721 # ------------------------------------------------------------------------------
1724 src/boot/boot-loader.h \
1725 src/boot/bootctl.c \
1726 src/boot/boot-loader.c \
1730 libsystemd-shared.la \
1731 libsystemd-id128.la \
1732 libsystemd-daemon.la
1738 # ------------------------------------------------------------------------------
1740 systemgenerator_PROGRAMS += \
1741 systemd-gpt-auto-generator
1743 systemd_gpt_auto_generator_SOURCES = \
1744 src/gpt-auto-generator/gpt-auto-generator.c
1746 systemd_gpt_auto_generator_LDADD = \
1747 libsystemd-label.la \
1748 libsystemd-shared.la \
1749 libsystemd-id128-internal.la \
1750 libudev-private.la \
1753 systemd_gpt_auto_generator_CFLAGS = \
1758 # ------------------------------------------------------------------------------
1759 systemd_rc_local_generator_SOURCES = \
1760 src/rc-local-generator/rc-local-generator.c
1762 systemd_rc_local_generator_LDADD = \
1763 libsystemd-label.la \
1764 libsystemd-shared.la
1766 # ------------------------------------------------------------------------------
1767 systemd_remount_fs_SOURCES = \
1768 src/remount-fs/remount-fs.c \
1769 src/core/mount-setup.c \
1770 src/core/mount-setup.h
1772 systemd_remount_fs_LDADD = \
1773 libsystemd-label.la \
1774 libsystemd-shared.la
1776 # ------------------------------------------------------------------------------
1777 systemd_cgroups_agent_SOURCES = \
1778 src/cgroups-agent/cgroups-agent.c
1780 systemd_cgroups_agent_CFLAGS = \
1784 systemd_cgroups_agent_LDADD = \
1785 libsystemd-shared.la \
1788 # ------------------------------------------------------------------------------
1789 systemctl_SOURCES = \
1790 src/systemctl/systemctl.c
1792 systemctl_CFLAGS = \
1797 libsystemd-units.la \
1798 libsystemd-label.la \
1799 libsystemd-shared.la \
1800 libsystemd-daemon.la \
1801 libsystemd-dbus.la \
1804 # ------------------------------------------------------------------------------
1805 systemd_notify_SOURCES = \
1806 src/notify/notify.c \
1807 src/readahead/sd-readahead.c
1809 systemd_notify_LDADD = \
1810 libsystemd-shared.la \
1811 libsystemd-daemon.la
1813 # ------------------------------------------------------------------------------
1814 systemd_ask_password_SOURCES = \
1815 src/ask-password/ask-password.c
1817 systemd_ask_password_LDADD = \
1818 libsystemd-label.la \
1819 libsystemd-shared.la
1821 # ------------------------------------------------------------------------------
1822 systemd_reply_password_SOURCES = \
1823 src/reply-password/reply-password.c
1825 systemd_reply_password_LDADD = \
1826 libsystemd-shared.la
1828 # ------------------------------------------------------------------------------
1829 systemd_cgls_SOURCES = \
1832 systemd_cgls_LDADD = \
1833 libsystemd-shared.la
1835 # ------------------------------------------------------------------------------
1836 systemd_cgtop_SOURCES = \
1839 systemd_cgtop_LDADD = \
1840 libsystemd-shared.la
1842 # ------------------------------------------------------------------------------
1843 systemd_nspawn_SOURCES = \
1844 src/nspawn/nspawn.c \
1845 src/core/mount-setup.c \
1846 src/core/mount-setup.h \
1847 src/core/loopback-setup.c \
1848 src/core/loopback-setup.h
1850 systemd_nspawn_LDADD = \
1851 libsystemd-label.la \
1852 libsystemd-capability.la \
1853 libsystemd-shared.la \
1854 libsystemd-daemon.la \
1855 libsystemd-id128-internal.la \
1858 # ------------------------------------------------------------------------------
1859 systemd_run_SOURCES = \
1862 systemd_run_LDADD = \
1863 libsystemd-label.la \
1864 libsystemd-capability.la \
1865 libsystemd-shared.la \
1866 libsystemd-daemon.la \
1867 libsystemd-id128-internal.la \
1870 # ------------------------------------------------------------------------------
1871 systemd_stdio_bridge_SOURCES = \
1872 src/stdio-bridge/stdio-bridge.c
1874 systemd_stdio_bridge_LDADD = \
1875 libsystemd-shared.la \
1877 libsystemd-daemon.la
1879 # ------------------------------------------------------------------------------
1880 systemd_tty_ask_password_agent_SOURCES = \
1881 src/tty-ask-password-agent/tty-ask-password-agent.c
1883 systemd_tty_ask_password_agent_LDADD = \
1884 libsystemd-label.la \
1885 libsystemd-shared.la
1887 # ------------------------------------------------------------------------------
1888 libsystemd_daemon_la_SOURCES = \
1889 src/libsystemd-daemon/sd-daemon.c
1891 libsystemd_daemon_internal_la_SOURCES = \
1892 $(libsystemd_daemon_la_SOURCES)
1894 libsystemd_daemon_la_CFLAGS = \
1896 -fvisibility=hidden \
1899 libsystemd_daemon_la_LDFLAGS = \
1901 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1902 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1904 libsystemd_daemon_la_LIBADD = \
1907 pkginclude_HEADERS += \
1908 src/systemd/sd-daemon.h
1910 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1911 libsystemd-daemon-install-hook:
1912 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1914 libsystemd-daemon-uninstall-hook:
1915 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1917 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1918 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1920 lib_LTLIBRARIES += \
1921 libsystemd-daemon.la
1923 noinst_LTLIBRARIES += \
1924 libsystemd-daemon-internal.la
1926 pkgconfiglib_DATA += \
1927 src/libsystemd-daemon/libsystemd-daemon.pc
1930 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1931 src/libsystemd-daemon/libsystemd-daemon.sym
1933 # ------------------------------------------------------------------------------
1934 libsystemd_bus_la_SOURCES = \
1935 src/systemd/sd-bus.h \
1936 src/systemd/sd-bus-protocol.h \
1937 src/systemd/sd-memfd.h \
1938 src/systemd/sd-bus-vtable.h \
1939 src/libsystemd-bus/sd-bus.c \
1940 src/libsystemd-bus/bus-control.c \
1941 src/libsystemd-bus/bus-control.h \
1942 src/libsystemd-bus/bus-error.c \
1943 src/libsystemd-bus/bus-error.h \
1944 src/libsystemd-bus/bus-internal.c \
1945 src/libsystemd-bus/bus-internal.h \
1946 src/libsystemd-bus/bus-socket.c \
1947 src/libsystemd-bus/bus-socket.h \
1948 src/libsystemd-bus/bus-kernel.c \
1949 src/libsystemd-bus/bus-kernel.h \
1950 src/libsystemd-bus/bus-message.c \
1951 src/libsystemd-bus/bus-message.h \
1952 src/libsystemd-bus/bus-signature.c \
1953 src/libsystemd-bus/bus-signature.h \
1954 src/libsystemd-bus/bus-type.c \
1955 src/libsystemd-bus/bus-type.h \
1956 src/libsystemd-bus/bus-match.c \
1957 src/libsystemd-bus/bus-match.h \
1958 src/libsystemd-bus/bus-bloom.c \
1959 src/libsystemd-bus/bus-bloom.h \
1960 src/libsystemd-bus/bus-introspect.c \
1961 src/libsystemd-bus/bus-introspect.h \
1962 src/libsystemd-bus/kdbus.h \
1963 src/libsystemd-bus/sd-memfd.c
1965 libsystemd_bus_la_LIBADD = \
1966 libsystemd-id128-internal.la \
1967 libsystemd-shared.la \
1968 libsystemd-daemon.la
1970 libsystemd_bus_la_CFLAGS = \
1974 noinst_LTLIBRARIES += \
1979 test-bus-signature \
1984 test-bus-kernel-bloom \
1985 test-bus-kernel-benchmark \
1987 test-bus-zero-copy \
1988 test-bus-introspect \
1991 noinst_PROGRAMS += \
1994 test_bus_marshal_SOURCES = \
1995 src/libsystemd-bus/test-bus-marshal.c
1997 test_bus_marshal_LDADD = \
1998 libsystemd-shared.la \
2003 test_bus_marshal_CFLAGS = \
2008 test_bus_signature_SOURCES = \
2009 src/libsystemd-bus/test-bus-signature.c
2011 test_bus_signature_LDADD = \
2012 libsystemd-shared.la \
2015 test_bus_chat_SOURCES = \
2016 src/libsystemd-bus/test-bus-chat.c
2018 test_bus_chat_CFLAGS = \
2022 test_bus_chat_LDADD = \
2023 libsystemd-shared.la \
2025 libsystemd-id128-internal.la
2027 test_bus_server_SOURCES = \
2028 src/libsystemd-bus/test-bus-server.c
2030 test_bus_server_CFLAGS = \
2034 test_bus_server_LDADD = \
2035 libsystemd-shared.la \
2037 libsystemd-id128-internal.la
2039 test_bus_objects_SOURCES = \
2040 src/libsystemd-bus/test-bus-objects.c
2042 test_bus_objects_CFLAGS = \
2046 test_bus_objects_LDADD = \
2047 libsystemd-shared.la \
2049 libsystemd-id128-internal.la
2051 test_bus_match_SOURCES = \
2052 src/libsystemd-bus/test-bus-match.c
2054 test_bus_match_CFLAGS = \
2057 test_bus_match_LDADD = \
2058 libsystemd-shared.la \
2060 libsystemd-id128-internal.la
2062 test_bus_kernel_SOURCES = \
2063 src/libsystemd-bus/test-bus-kernel.c
2065 test_bus_kernel_CFLAGS = \
2068 test_bus_kernel_LDADD = \
2069 libsystemd-shared.la \
2071 libsystemd-id128-internal.la
2073 test_bus_kernel_bloom_SOURCES = \
2074 src/libsystemd-bus/test-bus-kernel-bloom.c
2076 test_bus_kernel_bloom_CFLAGS = \
2079 test_bus_kernel_bloom_LDADD = \
2080 libsystemd-shared.la \
2082 libsystemd-id128-internal.la
2084 test_bus_kernel_benchmark_SOURCES = \
2085 src/libsystemd-bus/test-bus-kernel-benchmark.c
2087 test_bus_kernel_benchmark_CFLAGS = \
2090 test_bus_kernel_benchmark_LDADD = \
2091 libsystemd-shared.la \
2093 libsystemd-id128-internal.la
2095 test_bus_memfd_SOURCES = \
2096 src/libsystemd-bus/test-bus-memfd.c
2098 test_bus_memfd_CFLAGS = \
2101 test_bus_memfd_LDADD = \
2102 libsystemd-shared.la \
2105 test_bus_zero_copy_SOURCES = \
2106 src/libsystemd-bus/test-bus-zero-copy.c
2108 test_bus_zero_copy_CFLAGS = \
2111 test_bus_zero_copy_LDADD = \
2112 libsystemd-shared.la \
2115 test_bus_introspect_SOURCES = \
2116 src/libsystemd-bus/test-bus-introspect.c
2118 test_bus_introspect_CFLAGS = \
2121 test_bus_introspect_LDADD = \
2122 libsystemd-shared.la \
2126 src/libsystemd-bus/busctl.c
2129 libsystemd-shared.la \
2132 # ------------------------------------------------------------------------------
2142 include_HEADERS += \
2143 src/libudev/libudev.h
2145 lib_LTLIBRARIES += \
2148 libudev_la_SOURCES =\
2149 src/libudev/libudev-private.h \
2150 src/libudev/libudev.c \
2151 src/libudev/libudev-list.c \
2152 src/libudev/libudev-util.c \
2153 src/libudev/libudev-device.c \
2154 src/libudev/libudev-enumerate.c \
2155 src/libudev/libudev-monitor.c \
2156 src/libudev/libudev-queue.c \
2157 src/libudev/libudev-hwdb-def.h \
2158 src/libudev/libudev-hwdb.c
2160 libudev_la_CFLAGS = \
2164 libudev_la_LDFLAGS = \
2166 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2167 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2169 libudev_la_LIBADD = \
2170 libsystemd-shared.la \
2171 libsystemd-label.la \
2172 libsystemd-daemon-internal.la \
2174 libsystemd-id128-internal.la
2176 pkgconfiglib_DATA += \
2177 src/libudev/libudev.pc
2180 src/libudev/libudev.pc.in \
2181 src/libudev/libudev.sym
2184 src/libudev/libudev.pc \
2189 $(AM_V_at)$(MKDIR_P) $(dir $@)
2190 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2193 $(AM_V_at)$(MKDIR_P) $(dir $@)
2194 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2196 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2197 libudev-install-hook:
2198 libname=libudev.so && $(move-to-rootlibdir)
2200 libudev-uninstall-hook:
2201 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2203 INSTALL_EXEC_HOOKS += libudev-install-hook
2204 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2206 # ------------------------------------------------------------------------------
2207 noinst_LTLIBRARIES += \
2210 libudev_private_la_SOURCES =\
2211 $(libudev_la_SOURCES) \
2212 src/libudev/libudev-device-private.c \
2213 src/libudev/libudev-queue-private.c
2215 libudev_private_la_CFLAGS = \
2217 -fvisibility=default
2219 libudev_private_la_LIBADD = \
2220 libsystemd-shared.la
2222 # ------------------------------------------------------------------------------
2224 $(sysconfdir)/udev/rules.d \
2225 $(sysconfdir)/udev/hwdb.d
2227 dist_udevrules_DATA += \
2228 rules/99-systemd.rules \
2229 rules/42-usb-hid-pm.rules \
2230 rules/50-udev-default.rules \
2231 rules/60-keyboard.rules \
2232 rules/60-persistent-storage-tape.rules \
2233 rules/60-persistent-serial.rules \
2234 rules/60-persistent-input.rules \
2235 rules/60-persistent-alsa.rules \
2236 rules/60-persistent-storage.rules \
2237 rules/64-btrfs.rules \
2238 rules/75-net-description.rules \
2239 rules/75-tty-description.rules \
2240 rules/78-sound-card.rules \
2241 rules/80-net-name-slot.rules \
2242 rules/95-udev-late.rules
2244 dist_udevhwdb_DATA = \
2245 hwdb/20-pci-vendor-model.hwdb \
2246 hwdb/20-pci-classes.hwdb \
2247 hwdb/20-usb-vendor-model.hwdb \
2248 hwdb/20-usb-classes.hwdb \
2249 hwdb/20-bluetooth-vendor-product.hwdb \
2250 hwdb/20-acpi-vendor.hwdb \
2252 hwdb/60-keyboard.hwdb
2254 udevconfdir = $(sysconfdir)/udev
2255 dist_udevconf_DATA = \
2258 sharepkgconfigdir = $(datadir)/pkgconfig
2259 sharepkgconfig_DATA = \
2263 rules/99-systemd.rules.in \
2267 rules/99-systemd.rules \
2271 units/systemd-udevd.service.in \
2272 units/systemd-udev-trigger.service.in \
2273 units/systemd-udev-settle.service.in
2276 units/systemd-udevd.service \
2277 units/systemd-udev-trigger.service \
2278 units/systemd-udev-settle.service
2280 SOCKETS_TARGET_WANTS += \
2281 systemd-udevd-control.socket \
2282 systemd-udevd-kernel.socket
2283 SYSINIT_TARGET_WANTS += \
2284 systemd-udevd.service \
2285 systemd-udev-trigger.service
2287 rootbin_PROGRAMS += \
2290 rootlibexec_PROGRAMS += \
2293 noinst_LTLIBRARIES += \
2296 src/udev/keyboard-keys.txt: Makefile
2297 $(AM_V_at)$(MKDIR_P) $(dir $@)
2298 $(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/' > $@
2300 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2301 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2303 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2304 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2306 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2307 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2309 libudev_core_la_SOURCES = \
2311 src/udev/udev-event.c \
2312 src/udev/udev-watch.c \
2313 src/udev/udev-node.c \
2314 src/udev/udev-rules.c \
2315 src/udev/udev-ctrl.c \
2316 src/udev/udev-builtin.c \
2317 src/udev/udev-builtin-btrfs.c \
2318 src/udev/udev-builtin-hwdb.c \
2319 src/udev/udev-builtin-input_id.c \
2320 src/udev/udev-builtin-keyboard.c \
2321 src/udev/udev-builtin-net_id.c \
2322 src/udev/udev-builtin-path_id.c \
2323 src/udev/udev-builtin-usb_id.c
2325 nodist_libudev_core_la_SOURCES = \
2326 src/udev/keyboard-keys-from-name.h \
2327 src/udev/keyboard-keys-to-name.h
2330 $(nodist_libudev_core_la_SOURCES)
2333 src/udev/keyboard-keys-from-name.gperf \
2334 src/udev/keyboard-keys.txt
2336 libudev_core_la_CFLAGS = \
2341 libudev_core_la_LIBADD = \
2342 libudev-private.la \
2343 libsystemd-label.la \
2344 libsystemd-daemon-internal.la \
2346 libsystemd-shared.la \
2350 libudev_core_la_CPPFLAGS = \
2352 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2355 libudev_core_la_SOURCES += \
2356 src/udev/udev-builtin-firmware.c
2358 dist_udevrules_DATA += \
2359 rules/50-firmware.rules
2363 libudev_core_la_SOURCES += \
2364 src/udev/udev-builtin-kmod.c
2366 dist_udevrules_DATA += \
2367 rules/80-drivers.rules
2371 libudev_core_la_SOURCES += \
2372 src/udev/udev-builtin-blkid.c
2376 libudev_core_la_SOURCES += \
2377 src/udev/udev-builtin-uaccess.c \
2378 src/login/logind-acl.c \
2379 src/login/sd-login.c \
2380 src/systemd/sd-login.h \
2381 src/login/login-shared.c \
2382 src/login/login-shared.h
2384 libudev_core_la_LIBADD += \
2388 systemd_udevd_SOURCES = \
2391 systemd_udevd_LDADD = \
2395 src/udev/udevadm.c \
2396 src/udev/udevadm-info.c \
2397 src/udev/udevadm-control.c \
2398 src/udev/udevadm-monitor.c \
2399 src/udev/udevadm-hwdb.c \
2400 src/udev/udevadm-settle.c \
2401 src/udev/udevadm-trigger.c \
2402 src/udev/udevadm-test.c \
2403 src/udev/udevadm-test-builtin.c
2407 libsystemd-shared.la
2409 # Update hwdb on installation. Do not bother if installing
2410 # in DESTDIR, since this is likely for packaging purposes.
2412 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2414 INSTALL_DATA_HOOKS += \
2418 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2420 # ------------------------------------------------------------------------------
2429 test_libudev_SOURCES = \
2430 src/test/test-libudev.c
2432 test_libudev_LDADD = \
2433 libsystemd-label.la \
2434 libsystemd-shared.la \
2437 test_udev_SOURCES = \
2438 src/test/test-udev.c
2442 libsystemd-shared.la \
2448 test_udev_LDADD += \
2455 # packed sysfs test tree
2457 $(AM_V_at)$(MKDIR_P) $(dir $@)
2458 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2462 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2467 test/rules-test.sh \
2468 test/rule-syntax-check.py
2470 # ------------------------------------------------------------------------------
2472 src/udev/ata_id/ata_id.c
2475 libudev-private.la \
2476 libsystemd-shared.la
2478 udevlibexec_PROGRAMS += \
2481 # ------------------------------------------------------------------------------
2482 cdrom_id_SOURCES = \
2483 src/udev/cdrom_id/cdrom_id.c
2487 libsystemd-shared.la
2489 udevlibexec_PROGRAMS += \
2492 dist_udevrules_DATA += \
2493 rules/60-cdrom_id.rules
2495 # ------------------------------------------------------------------------------
2497 src/udev/collect/collect.c
2502 udevlibexec_PROGRAMS += \
2505 # ------------------------------------------------------------------------------
2507 src/udev/scsi_id/scsi_id.c \
2508 src/udev/scsi_id/scsi_serial.c \
2509 src/udev/scsi_id/scsi.h \
2510 src/udev/scsi_id/scsi_id.h
2513 libudev-private.la \
2514 libsystemd-shared.la
2516 udevlibexec_PROGRAMS += \
2520 src/udev/scsi_id/README
2522 # ------------------------------------------------------------------------------
2524 src/udev/v4l_id/v4l_id.c
2529 udevlibexec_PROGRAMS += \
2532 dist_udevrules_DATA += \
2533 rules/60-persistent-v4l.rules
2535 # ------------------------------------------------------------------------------
2536 accelerometer_SOURCES = \
2537 src/udev/accelerometer/accelerometer.c
2539 accelerometer_LDADD = \
2541 libsystemd-shared.la
2543 udevlibexec_PROGRAMS += \
2546 dist_udevrules_DATA += \
2547 rules/61-accelerometer.rules
2549 # ------------------------------------------------------------------------------
2556 libgudev_includedir = \
2557 $(includedir)/gudev-1.0/gudev
2559 libgudev_include_HEADERS = \
2561 src/gudev/gudevenums.h \
2562 src/gudev/gudevenumtypes.h \
2563 src/gudev/gudevtypes.h \
2564 src/gudev/gudevclient.h \
2565 src/gudev/gudevdevice.h \
2566 src/gudev/gudevenumerator.h
2568 lib_LTLIBRARIES += libgudev-1.0.la
2570 pkgconfiglib_DATA += \
2571 src/gudev/gudev-1.0.pc
2574 src/gudev/gudev-1.0.pc
2576 libgudev_1_0_la_SOURCES = \
2577 src/gudev/gudevenums.h \
2578 src/gudev/gudevenumtypes.h \
2579 src/gudev/gudevenumtypes.h\
2580 src/gudev/gudevtypes.h \
2581 src/gudev/gudevclient.h \
2582 src/gudev/gudevclient.c \
2583 src/gudev/gudevdevice.h \
2584 src/gudev/gudevdevice.c \
2585 src/gudev/gudevenumerator.h \
2586 src/gudev/gudevenumerator.c \
2587 src/gudev/gudevprivate.h
2589 nodist_libgudev_1_0_la_SOURCES = \
2590 src/gudev/gudevmarshal.h \
2591 src/gudev/gudevmarshal.c \
2592 src/gudev/gudevenumtypes.h \
2593 src/gudev/gudevenumtypes.c
2596 $(nodist_libgudev_1_0_la_SOURCES)
2598 libgudev_1_0_la_CPPFLAGS = \
2600 -I$(top_builddir)/src\
2601 -I$(top_srcdir)/src\
2602 -I$(top_builddir)/src/gudev \
2603 -I$(top_srcdir)/src/gudev \
2604 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2605 -D_GUDEV_COMPILATION \
2606 -DG_LOG_DOMAIN=\"GUdev\"
2608 libgudev_1_0_la_CFLAGS = \
2610 -fvisibility=default \
2613 libgudev_1_0_la_LIBADD = \
2617 libgudev_1_0_la_LDFLAGS = \
2619 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2620 -export-dynamic -no-undefined \
2621 -export-symbols-regex '^g_udev_.*'
2623 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2624 $(AM_V_at)$(MKDIR_P) $(dir $@)
2625 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2627 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2628 $(AM_V_at)$(MKDIR_P) $(dir $@)
2629 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2630 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2632 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2633 $(AM_V_at)$(MKDIR_P) $(dir $@)
2634 $(AM_V_GEN)glib-mkenums --template $^ > $@
2636 if HAVE_INTROSPECTION
2637 -include $(INTROSPECTION_MAKEFILE)
2639 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2641 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2643 src_gudev_GUdev_1_0_gir_CFLAGS = \
2645 -D_GUDEV_COMPILATION \
2646 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2647 -I$(top_srcdir)/src \
2648 -I$(top_builddir)/src \
2649 -I$(top_srcdir)/src/gdev \
2650 -I$(top_builddir)/src/gdev
2652 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2654 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2655 --pkg-export=gudev-1.0 \
2658 src_gudev_GUdev_1_0_gir_FILES = \
2660 src/gudev/gudevtypes.h \
2661 src/gudev/gudevenums.h \
2662 src/gudev/gudevenumtypes.h \
2663 src/gudev/gudevclient.h \
2664 src/gudev/gudevdevice.h \
2665 src/gudev/gudevenumerator.h \
2666 src/gudev/gudevclient.c \
2667 src/gudev/gudevdevice.c \
2668 src/gudev/gudevenumerator.c
2670 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2671 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2673 girdir = $(datadir)/gir-1.0
2675 src/gudev/GUdev-1.0.gir
2677 typelibsdir = $(libdir)/girepository-1.0
2679 src/gudev/GUdev-1.0.typelib
2681 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2682 endif # HAVE_INTROSPECTION
2684 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2685 libgudev-install-hook:
2686 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2688 libgudev-uninstall-hook:
2689 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2691 INSTALL_EXEC_HOOKS += libgudev-install-hook
2692 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2696 src/gudev/gudev-1.0.pc.in \
2697 src/gudev/gudevmarshal.list \
2698 src/gudev/gudevenumtypes.h.template \
2699 src/gudev/gudevenumtypes.c.template \
2700 src/gudev/gjs-example.js \
2701 src/gudev/seed-example-enum.js \
2702 src/gudev/seed-example.js
2704 # ------------------------------------------------------------------------------
2705 mtd_probe_SOURCES = \
2706 src/udev/mtd_probe/mtd_probe.c \
2707 src/udev/mtd_probe/mtd_probe.h \
2708 src/udev/mtd_probe/probe_smartmedia.c
2710 mtd_probe_CPPFLAGS = \
2713 dist_udevrules_DATA += \
2714 rules/75-probe_mtd.rules
2716 udevlibexec_PROGRAMS += \
2719 # ------------------------------------------------------------------------------
2720 libsystemd_id128_la_SOURCES = \
2721 src/libsystemd-id128/sd-id128.c
2723 libsystemd_id128_la_CFLAGS = \
2727 libsystemd_id128_la_LDFLAGS = \
2729 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2730 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2732 libsystemd_id128_la_LIBADD = \
2733 libsystemd-shared.la \
2734 libsystemd-label.la \
2735 libsystemd-daemon-internal.la \
2738 libsystemd_id128_internal_la_SOURCES = \
2739 $(libsystemd_id128_la_SOURCES)
2741 test_id128_SOURCES = \
2742 src/test/test-id128.c
2744 test_id128_LDADD = \
2745 libsystemd-shared.la \
2746 libsystemd-id128-internal.la \
2747 libsystemd-daemon.la
2752 pkginclude_HEADERS += \
2753 src/systemd/sd-id128.h
2755 lib_LTLIBRARIES += \
2758 noinst_LTLIBRARIES += \
2759 libsystemd-id128-internal.la
2761 pkgconfiglib_DATA += \
2762 src/libsystemd-id128/libsystemd-id128.pc
2764 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2765 libsystemd-id128-install-hook:
2766 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2768 libsystemd-id128-uninstall-hook:
2769 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2771 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2772 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2775 src/libsystemd-id128/libsystemd-id128.pc.in \
2776 src/libsystemd-id128/libsystemd-id128.sym
2778 # ------------------------------------------------------------------------------
2780 rootlibexec_PROGRAMS += \
2783 systemd_activate_SOURCES = \
2784 src/activate/activate.c
2786 systemd_activate_LDADD = \
2787 libsystemd-shared.la \
2788 libsystemd-daemon.la
2790 # ------------------------------------------------------------------------------
2791 systemd_journald_SOURCES = \
2792 src/journal/journald.c \
2793 src/journal/journald-server.h
2795 systemd_journald_LDADD = \
2796 libsystemd-journal-internal.la \
2797 libsystemd-shared.la \
2798 libsystemd-id128-internal.la
2800 systemd_cat_SOURCES = \
2803 systemd_cat_LDADD = \
2804 libsystemd-shared.la \
2805 libsystemd-journal-internal.la
2807 journalctl_SOURCES = \
2808 src/journal/journalctl.c
2810 journalctl_CFLAGS = \
2813 journalctl_LDADD = \
2814 libsystemd-shared.la \
2815 libsystemd-journal-internal.la \
2816 libsystemd-id128-internal.la \
2820 journalctl_LDADD += \
2825 journalctl_SOURCES += \
2826 src/journal/journal-qrcode.c \
2827 src/journal/journal-qrcode.h
2829 journalctl_CFLAGS += \
2832 journalctl_LDADD += \
2836 test_journal_SOURCES = \
2837 src/journal/test-journal.c
2839 test_journal_LDADD = \
2840 libsystemd-shared.la \
2841 libsystemd-journal-internal.la \
2842 libsystemd-id128-internal.la
2844 test_journal_send_SOURCES = \
2845 src/journal/test-journal-send.c
2847 test_journal_send_LDADD = \
2848 libsystemd-shared.la \
2849 libsystemd-journal-internal.la \
2850 libsystemd-id128-internal.la
2852 test_journal_syslog_SOURCES = \
2853 src/journal/test-journal-syslog.c
2855 test_journal_syslog_LDADD = \
2856 libsystemd-journal-internal.la \
2857 libsystemd-shared.la \
2858 libsystemd-id128-internal.la
2860 test_journal_match_SOURCES = \
2861 src/journal/test-journal-match.c
2863 test_journal_match_LDADD = \
2864 libsystemd-shared.la \
2865 libsystemd-journal-internal.la \
2866 libsystemd-id128-internal.la
2868 test_journal_enum_SOURCES = \
2869 src/journal/test-journal-enum.c
2871 test_journal_enum_LDADD = \
2872 libsystemd-shared.la \
2873 libsystemd-journal-internal.la \
2874 libsystemd-id128-internal.la
2876 test_journal_stream_SOURCES = \
2877 src/journal/test-journal-stream.c
2879 test_journal_stream_LDADD = \
2880 libsystemd-shared.la \
2881 libsystemd-journal-internal.la \
2882 libsystemd-id128-internal.la
2884 test_journal_init_SOURCES = \
2885 src/journal/test-journal-init.c
2887 test_journal_init_LDADD = \
2888 libsystemd-shared.la \
2889 libsystemd-daemon-internal.la \
2891 libsystemd-journal.la
2893 test_journal_verify_SOURCES = \
2894 src/journal/test-journal-verify.c
2896 test_journal_verify_LDADD = \
2897 libsystemd-shared.la \
2898 libsystemd-journal-internal.la \
2899 libsystemd-id128-internal.la
2901 test_journal_interleaving_SOURCES = \
2902 src/journal/test-journal-interleaving.c
2904 test_journal_interleaving_LDADD = \
2905 libsystemd-shared.la \
2906 libsystemd-journal-internal.la \
2907 libsystemd-id128-internal.la
2909 test_mmap_cache_SOURCES = \
2910 src/journal/test-mmap-cache.c
2912 test_mmap_cache_LDADD = \
2913 libsystemd-shared.la \
2914 libsystemd-journal-internal.la
2916 test_catalog_SOURCES = \
2917 src/journal/test-catalog.c
2919 test_catalog_CFLAGS = \
2921 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
2923 test_catalog_LDADD = \
2924 libsystemd-shared.la \
2925 libsystemd-label.la \
2926 libsystemd-journal-internal.la \
2927 libsystemd-id128-internal.la
2929 libsystemd_journal_la_SOURCES = \
2930 src/journal/sd-journal.c \
2931 src/systemd/sd-journal.h \
2932 src/journal/journal-file.c \
2933 src/journal/journal-file.h \
2934 src/journal/journal-vacuum.c \
2935 src/journal/journal-vacuum.h \
2936 src/journal/journal-verify.c \
2937 src/journal/journal-verify.h \
2938 src/journal/lookup3.c \
2939 src/journal/lookup3.h \
2940 src/journal/journal-send.c \
2941 src/journal/journal-def.h \
2942 src/journal/compress.h \
2943 src/journal/catalog.c \
2944 src/journal/catalog.h \
2945 src/journal/mmap-cache.c \
2946 src/journal/mmap-cache.h
2948 libsystemd_journal_la_CFLAGS = \
2952 libsystemd_journal_la_LDFLAGS = \
2954 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2955 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2957 libsystemd_journal_la_LIBADD = \
2958 libsystemd-shared.la \
2959 libsystemd-label.la \
2960 libsystemd-daemon-internal.la \
2962 libsystemd-id128-internal.la
2964 libsystemd_journal_internal_la_SOURCES = \
2965 $(libsystemd_journal_la_SOURCES) \
2966 src/journal/journald-kmsg.c \
2967 src/journal/journald-kmsg.h \
2968 src/journal/journald-syslog.c \
2969 src/journal/journald-syslog.h \
2970 src/journal/journald-stream.c \
2971 src/journal/journald-stream.h \
2972 src/journal/journald-server.c \
2973 src/journal/journald-server.h \
2974 src/journal/journald-console.c \
2975 src/journal/journald-console.h \
2976 src/journal/journald-native.c \
2977 src/journal/journald-native.h \
2978 src/journal/journald-rate-limit.c \
2979 src/journal/journald-rate-limit.h \
2980 src/journal/journal-internal.h
2982 libsystemd_journal_internal_la_CFLAGS = \
2985 libsystemd_journal_internal_la_LIBADD = \
2986 libsystemd-label.la \
2987 libsystemd-audit.la \
2988 libsystemd-daemon.la \
2990 libsystemd-shared.la \
2993 nodist_libsystemd_journal_internal_la_SOURCES = \
2994 src/journal/journald-gperf.c
2997 libsystemd_journal_internal_la_LIBADD += \
2998 libsystemd-login-internal.la
3002 libsystemd_journal_internal_la_LIBADD += \
3007 libsystemd_journal_la_SOURCES += \
3008 src/journal/compress.c
3010 libsystemd_journal_la_CFLAGS += \
3013 libsystemd_journal_la_LIBADD += \
3016 libsystemd_journal_internal_la_CFLAGS += \
3019 libsystemd_journal_internal_la_LIBADD += \
3025 libsystemd_journal_la_SOURCES += \
3026 src/journal/journal-authenticate.c \
3027 src/journal/journal-authenticate.h \
3028 src/journal/fsprg.c \
3031 libsystemd_journal_la_CFLAGS += \
3035 libsystemd_journal_la_LIBADD += \
3038 libsystemd_journal_internal_la_CFLAGS += \
3042 libsystemd_journal_internal_la_LIBADD += \
3046 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3047 # needed. Also, grant read access to new journal files to members of
3048 # "adm" and "wheel".
3049 libsystemd-journal-install-hook:
3050 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3051 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3052 -chown 0:0 $(DESTDIR)/var/log/journal
3053 -chmod 755 $(DESTDIR)/var/log/journal
3054 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3055 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3057 libsystemd-journal-uninstall-hook:
3058 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3060 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3061 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3063 # ------------------------------------------------------------------------------
3065 # Update catalog on installation. Do not bother if installing
3066 # in DESTDIR, since this is likely for packaging purposes.
3067 catalog-update-hook:
3068 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3070 INSTALL_DATA_HOOKS += \
3073 catalog-remove-hook:
3074 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3076 UNINSTALL_DATA_HOOKS += \
3085 test-journal-syslog \
3086 test-journal-match \
3087 test-journal-stream \
3089 test-journal-verify \
3090 test-journal-interleaving \
3094 pkginclude_HEADERS += \
3095 src/systemd/sd-journal.h \
3096 src/systemd/sd-messages.h
3098 lib_LTLIBRARIES += \
3099 libsystemd-journal.la
3101 noinst_LTLIBRARIES += \
3102 libsystemd-journal-internal.la
3104 rootlibexec_PROGRAMS += \
3107 rootbin_PROGRAMS += \
3113 dist_systemunit_DATA += \
3114 units/systemd-journald.socket
3116 nodist_systemunit_DATA += \
3117 units/systemd-journald.service \
3118 units/systemd-journal-flush.service
3120 dist_pkgsysconf_DATA += \
3121 src/journal/journald.conf
3123 pkgconfiglib_DATA += \
3124 src/journal/libsystemd-journal.pc
3126 dist_catalog_DATA = \
3127 catalog/systemd.catalog
3129 SOCKETS_TARGET_WANTS += \
3130 systemd-journald.socket
3131 SYSINIT_TARGET_WANTS += \
3132 systemd-journald.service \
3133 systemd-journal-flush.service
3136 src/journal/libsystemd-journal.pc.in \
3137 src/journal/libsystemd-journal.sym \
3138 units/systemd-journald.service.in \
3139 units/systemd-journal-flush.service.in \
3140 src/journal/journald-gperf.gperf
3143 src/journal/journald-gperf.c
3145 # ------------------------------------------------------------------------------
3147 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3149 rootlibexec_PROGRAMS += \
3150 systemd-journal-gatewayd
3152 systemd_journal_gatewayd_SOURCES = \
3153 src/journal/journal-gatewayd.c \
3154 src/journal/microhttpd-util.h \
3155 src/journal/microhttpd-util.c
3157 systemd_journal_gatewayd_LDADD = \
3158 libsystemd-shared.la \
3159 libsystemd-logs.la \
3160 libsystemd-journal-internal.la \
3161 libsystemd-id128-internal.la \
3162 libsystemd-daemon.la \
3166 systemd_journal_gatewayd_CFLAGS = \
3167 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3169 $(MICROHTTPD_CFLAGS)
3171 dist_systemunit_DATA += \
3172 units/systemd-journal-gatewayd.socket
3174 nodist_systemunit_DATA += \
3175 units/systemd-journal-gatewayd.service
3177 dist_gatewayddocumentroot_DATA = \
3178 src/journal/browse.html
3183 units/systemd-journal-gatewayd.service.in
3185 # ------------------------------------------------------------------------------
3187 systemd_coredump_SOURCES = \
3188 src/journal/coredump.c
3190 systemd_coredump_LDADD = \
3191 libsystemd-journal-internal.la \
3192 libsystemd-label.la \
3193 libsystemd-shared.la
3196 systemd_coredump_LDADD += \
3197 libsystemd-login-internal.la
3200 rootlibexec_PROGRAMS += \
3203 systemd_coredumpctl_SOURCES = \
3204 src/journal/coredumpctl.c
3206 systemd_coredumpctl_LDADD = \
3207 libsystemd-shared.la \
3208 libsystemd-journal.la \
3209 libsystemd-journal-internal.la \
3210 libsystemd-id128-internal.la
3215 dist_bashcompletion_DATA += \
3216 shell-completion/bash/systemd-coredumpctl
3218 dist_zshcompletion_DATA += \
3219 shell-completion/zsh/_systemd-coredumpctl
3222 sysctl.d/50-coredump.conf
3225 sysctl.d/50-coredump.conf
3229 sysctl.d/50-coredump.conf.in
3231 # ------------------------------------------------------------------------------
3233 systemd_binfmt_SOURCES = \
3236 systemd_binfmt_LDADD = \
3237 libsystemd-shared.la
3239 rootlibexec_PROGRAMS += \
3242 dist_systemunit_DATA += \
3243 units/proc-sys-fs-binfmt_misc.automount \
3244 units/proc-sys-fs-binfmt_misc.mount
3246 nodist_systemunit_DATA += \
3247 units/systemd-binfmt.service
3250 $(prefix)/lib/binfmt.d \
3251 $(sysconfdir)/binfmt.d
3253 SYSINIT_TARGET_WANTS += \
3254 systemd-binfmt.service \
3255 proc-sys-fs-binfmt_misc.automount
3260 units/systemd-binfmt.service.in
3262 # ------------------------------------------------------------------------------
3264 systemd_vconsole_setup_SOURCES = \
3265 src/vconsole/vconsole-setup.c
3267 systemd_vconsole_setup_LDADD = \
3268 libsystemd-shared.la
3270 rootlibexec_PROGRAMS += \
3271 systemd-vconsole-setup
3273 nodist_systemunit_DATA += \
3274 units/systemd-vconsole-setup.service
3276 SYSINIT_TARGET_WANTS += \
3277 systemd-vconsole-setup.service
3281 units/systemd-vconsole-setup.service.in
3283 # ------------------------------------------------------------------------------
3285 systemd_readahead_SOURCES = \
3286 src/readahead/readahead.c \
3287 src/readahead/readahead-collect.c \
3288 src/readahead/readahead-replay.c \
3289 src/readahead/readahead-analyze.c \
3290 src/readahead/readahead-common.c \
3291 src/readahead/readahead-common.h
3293 systemd_readahead_LDADD = \
3294 libsystemd-shared.la \
3295 libsystemd-daemon.la \
3299 src/readahead/sd-readahead.c \
3300 src/systemd/sd-readahead.h
3302 rootlibexec_PROGRAMS += \
3305 dist_systemunit_DATA += \
3306 units/systemd-readahead-drop.service \
3307 units/systemd-readahead-done.timer
3309 nodist_systemunit_DATA += \
3310 units/systemd-readahead-collect.service \
3311 units/systemd-readahead-replay.service \
3312 units/systemd-readahead-done.service
3317 units/systemd-readahead-collect.service.in \
3318 units/systemd-readahead-replay.service.in \
3319 units/systemd-readahead-done.service.in
3321 # ------------------------------------------------------------------------------
3323 systemd_bootchart_SOURCES = \
3324 src/bootchart/bootchart.c \
3325 src/bootchart/bootchart.h \
3326 src/bootchart/store.c \
3327 src/bootchart/store.h \
3328 src/bootchart/svg.c \
3331 systemd_bootchart_LDADD = \
3332 libsystemd-shared.la \
3333 libsystemd-journal.la
3335 rootlibexec_PROGRAMS += \
3338 dist_pkgsysconf_DATA += \
3339 src/bootchart/bootchart.conf
3342 # ------------------------------------------------------------------------------
3343 if ENABLE_QUOTACHECK
3344 rootlibexec_PROGRAMS += \
3347 nodist_systemunit_DATA += \
3348 units/systemd-quotacheck.service
3350 systemd_quotacheck_SOURCES = \
3351 src/quotacheck/quotacheck.c
3353 systemd_quotacheck_LDADD = \
3354 libsystemd-shared.la
3358 units/systemd-quotacheck.service.in
3360 nodist_systemunit_DATA += \
3361 units/quotaon.service
3363 # ------------------------------------------------------------------------------
3364 if ENABLE_RANDOMSEED
3365 rootlibexec_PROGRAMS += \
3368 nodist_systemunit_DATA += \
3369 units/systemd-random-seed.service
3371 systemd_random_seed_SOURCES = \
3372 src/random-seed/random-seed.c
3374 systemd_random_seed_LDADD = \
3375 libsystemd-label.la \
3376 libsystemd-shared.la
3378 SYSINIT_TARGET_WANTS += \
3379 systemd-random-seed.service
3384 units/systemd-random-seed.service.in
3386 # ------------------------------------------------------------------------------
3388 rootlibexec_PROGRAMS += \
3391 nodist_systemunit_DATA += \
3392 units/systemd-backlight@.service
3394 systemd_backlight_SOURCES = \
3395 src/backlight/backlight.c
3397 systemd_backlight_LDADD = \
3398 libsystemd-label.la \
3399 libsystemd-shared.la \
3404 units/systemd-backlight@.service.in
3406 # ------------------------------------------------------------------------------
3407 if HAVE_LIBCRYPTSETUP
3408 rootlibexec_PROGRAMS += \
3411 systemgenerator_PROGRAMS += \
3412 systemd-cryptsetup-generator
3414 dist_systemunit_DATA += \
3415 units/cryptsetup.target
3417 systemd_cryptsetup_SOURCES = \
3418 src/cryptsetup/cryptsetup.c
3420 systemd_cryptsetup_CFLAGS = \
3422 $(LIBCRYPTSETUP_CFLAGS)
3424 systemd_cryptsetup_LDADD = \
3425 libsystemd-label.la \
3426 libsystemd-shared.la \
3428 $(LIBCRYPTSETUP_LIBS)
3430 systemd_cryptsetup_generator_SOURCES = \
3431 src/cryptsetup/cryptsetup-generator.c
3433 systemd_cryptsetup_generator_LDADD = \
3434 libsystemd-label.la \
3435 libsystemd-shared.la
3437 SYSINIT_TARGET_WANTS += \
3442 # ------------------------------------------------------------------------------
3444 systemd_hostnamed_SOURCES = \
3445 src/hostname/hostnamed.c
3447 systemd_hostnamed_CFLAGS = \
3451 systemd_hostnamed_LDADD = \
3452 libsystemd-label.la \
3453 libsystemd-shared.la \
3454 libsystemd-daemon.la \
3457 rootlibexec_PROGRAMS += \
3460 nodist_systemunit_DATA += \
3461 units/systemd-hostnamed.service
3463 dist_dbuspolicy_DATA += \
3464 src/hostname/org.freedesktop.hostname1.conf
3466 dist_dbussystemservice_DATA += \
3467 src/hostname/org.freedesktop.hostname1.service
3469 polkitpolicy_files += \
3470 src/hostname/org.freedesktop.hostname1.policy
3472 dbusinterface_DATA += \
3473 org.freedesktop.hostname1.xml
3475 org.freedesktop.hostname1.xml: systemd-hostnamed
3476 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
3477 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3478 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3480 SYSTEM_UNIT_ALIASES += \
3481 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3483 hostnamectl_SOURCES = \
3484 src/hostname/hostnamectl.c
3486 hostnamectl_CFLAGS = \
3490 hostnamectl_LDADD = \
3491 libsystemd-shared.la \
3492 libsystemd-dbus.la \
3493 libsystemd-id128-internal.la
3498 dist_bashcompletion_DATA += \
3499 shell-completion/bash/hostnamectl
3501 dist_zshcompletion_DATA += \
3502 shell-completion/zsh/_hostnamectl
3506 polkitpolicy_in_files += \
3507 src/hostname/org.freedesktop.hostname1.policy.in
3510 units/systemd-hostnamed.service.in
3512 # ------------------------------------------------------------------------------
3514 systemd_localed_SOURCES = \
3515 src/locale/localed.c
3517 systemd_localed_CFLAGS = \
3521 systemd_localed_LDADD = \
3522 libsystemd-label.la \
3523 libsystemd-shared.la \
3524 libsystemd-daemon.la \
3527 nodist_systemunit_DATA += \
3528 units/systemd-localed.service
3530 rootlibexec_PROGRAMS += \
3533 dist_dbuspolicy_DATA += \
3534 src/locale/org.freedesktop.locale1.conf
3536 dist_dbussystemservice_DATA += \
3537 src/locale/org.freedesktop.locale1.service
3539 polkitpolicy_files += \
3540 src/locale/org.freedesktop.locale1.policy
3542 dbusinterface_DATA += \
3543 org.freedesktop.locale1.xml
3545 org.freedesktop.locale1.xml: systemd-localed
3546 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
3547 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3548 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3550 SYSTEM_UNIT_ALIASES += \
3551 systemd-localed.service dbus-org.freedesktop.locale1.service
3553 dist_pkgdata_DATA += \
3554 src/locale/kbd-model-map
3556 dist_noinst_SCRIPT = \
3557 src/locale/generate-kbd-model-map
3559 update-kbd-model-map: src/locale/generate-kbd-model-map
3560 $PYTHON $< > src/locale/kbd-model-map
3562 localectl_SOURCES = \
3563 src/locale/localectl.c
3565 localectl_CFLAGS = \
3570 libsystemd-shared.la \
3571 libsystemd-dbus.la \
3572 libsystemd-id128-internal.la
3577 dist_bashcompletion_DATA += \
3578 shell-completion/bash/localectl
3580 dist_zshcompletion_DATA += \
3581 shell-completion/zsh/_localectl
3585 polkitpolicy_in_files += \
3586 src/locale/org.freedesktop.locale1.policy.in
3589 units/systemd-localed.service.in
3591 # ------------------------------------------------------------------------------
3593 systemd_timedated_SOURCES = \
3594 src/timedate/timedated.c
3596 systemd_timedated_CFLAGS = \
3600 systemd_timedated_LDADD = \
3601 libsystemd-label.la \
3602 libsystemd-shared.la \
3603 libsystemd-daemon.la \
3606 rootlibexec_PROGRAMS += \
3609 dist_dbussystemservice_DATA += \
3610 src/timedate/org.freedesktop.timedate1.service
3612 dist_dbuspolicy_DATA += \
3613 src/timedate/org.freedesktop.timedate1.conf
3615 nodist_systemunit_DATA += \
3616 units/systemd-timedated.service
3618 polkitpolicy_files += \
3619 src/timedate/org.freedesktop.timedate1.policy
3621 org.freedesktop.timedate1.xml: systemd-timedated
3622 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
3623 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3624 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3626 dbusinterface_DATA += \
3627 org.freedesktop.timedate1.xml
3630 $(prefix)/lib/systemd/ntp-units.d \
3631 $(sysconfdir)/systemd/ntp-units.d
3633 SYSTEM_UNIT_ALIASES += \
3634 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3636 timedatectl_SOURCES = \
3637 src/timedate/timedatectl.c
3639 timedatectl_CFLAGS = \
3643 timedatectl_LDADD = \
3644 libsystemd-shared.la \
3650 dist_bashcompletion_DATA += \
3651 shell-completion/bash/timedatectl
3653 dist_zshcompletion_DATA += \
3654 shell-completion/zsh/_timedatectl
3657 polkitpolicy_in_files += \
3658 src/timedate/org.freedesktop.timedate1.policy.in
3661 units/systemd-timedated.service.in
3663 # ------------------------------------------------------------------------------
3665 libnss_myhostname_la_SOURCES = \
3666 src/nss-myhostname/nss-myhostname.c \
3667 src/nss-myhostname/ifconf.h \
3668 src/nss-myhostname/netlink.c
3670 libnss_myhostname_la_CFLAGS = \
3673 libnss_myhostname_la_LDFLAGS = \
3681 lib_LTLIBRARIES += \
3682 libnss_myhostname.la
3685 # ------------------------------------------------------------------------------
3687 systemd_machined_SOURCES = \
3688 src/machine/machined.c \
3689 src/machine/machined.h
3691 systemd_machined_CFLAGS = \
3692 $(libsystemd_machine_core_la_CFLAGS)
3694 systemd_machined_LDADD = \
3695 libsystemd-machine-core.la \
3696 $(libsystemd_machine_core_la_LIBADD)
3698 rootlibexec_PROGRAMS += \
3701 libsystemd_machine_core_la_SOURCES = \
3702 src/machine/machined-dbus.c \
3703 src/machine/machine.c \
3704 src/machine/machine.h \
3705 src/machine/machine-dbus.c
3707 libsystemd_machine_core_la_CFLAGS = \
3711 libsystemd_machine_core_la_LIBADD = \
3712 libsystemd-label.la \
3713 libsystemd-audit.la \
3714 libsystemd-shared.la \
3715 libsystemd-daemon.la \
3716 libsystemd-dbus.la \
3717 libsystemd-id128-internal.la \
3720 noinst_LTLIBRARIES += \
3721 libsystemd-machine-core.la
3723 machinectl_SOURCES = \
3724 src/machine/machinectl.c
3726 machinectl_CFLAGS = \
3730 machinectl_LDADD = \
3731 libsystemd-shared.la \
3732 libsystemd-dbus.la \
3735 rootbin_PROGRAMS += \
3738 test_machine_tables_SOURCES = \
3739 src/machine/test-machine-tables.c
3741 test_machine_tables_CFLAGS = \
3745 test_machine_tables_LDADD = \
3746 libsystemd-machine-core.la
3751 nodist_systemunit_DATA += \
3752 units/systemd-machined.service
3754 dist_systemunit_DATA += \
3757 dist_dbussystemservice_DATA += \
3758 src/machine/org.freedesktop.machine1.service
3760 dist_dbuspolicy_DATA += \
3761 src/machine/org.freedesktop.machine1.conf
3763 dist_zshcompletion_DATA += \
3764 shell-completion/zsh/_machinectl
3766 SYSTEM_UNIT_ALIASES += \
3767 systemd-machined.service dbus-org.freedesktop.machine1.service
3770 units/systemd-machined.service.in
3774 # ------------------------------------------------------------------------------
3776 systemd_logind_SOURCES = \
3777 src/login/logind.c \
3780 nodist_systemd_logind_SOURCES = \
3781 src/login/logind-gperf.c
3783 systemd_logind_CFLAGS = \
3784 $(libsystemd_logind_core_la_CFLAGS)
3786 systemd_logind_LDADD = \
3787 libsystemd-logind-core.la \
3788 $(libsystemd_logind_core_la_LIBADD)
3790 libsystemd_logind_core_la_SOURCES = \
3791 src/login/logind-core.c \
3792 src/login/logind-dbus.c \
3793 src/login/logind-device.c \
3794 src/login/logind-device.h \
3795 src/login/logind-button.c \
3796 src/login/logind-button.h \
3797 src/login/logind-action.c \
3798 src/login/logind-action.h \
3799 src/login/logind-seat.c \
3800 src/login/logind-seat.h \
3801 src/login/logind-session.c \
3802 src/login/logind-session.h \
3803 src/login/logind-session-device.c \
3804 src/login/logind-session-device.h \
3805 src/login/logind-user.c \
3806 src/login/logind-user.h \
3807 src/login/logind-inhibit.c \
3808 src/login/logind-inhibit.h \
3809 src/login/logind-session-dbus.c \
3810 src/login/logind-seat-dbus.c \
3811 src/login/logind-user-dbus.c \
3812 src/login/logind-acl.h \
3813 src/login/login-shared.c \
3814 src/login/login-shared.h
3816 libsystemd_logind_core_la_CFLAGS = \
3820 libsystemd_logind_core_la_LIBADD = \
3821 libsystemd-label.la \
3822 libsystemd-audit.la \
3823 libsystemd-shared.la \
3824 libsystemd-daemon.la \
3825 libsystemd-dbus.la \
3826 libsystemd-id128-internal.la \
3830 libsystemd_logind_core_la_SOURCES += \
3831 src/login/logind-acl.c
3833 libsystemd_logind_core_la_LIBADD += \
3837 noinst_LTLIBRARIES += \
3838 libsystemd-logind-core.la
3840 systemd_user_sessions_SOURCES = \
3841 src/login/user-sessions.c
3843 systemd_user_sessions_LDADD = \
3844 libsystemd-shared.la
3846 rootlibexec_PROGRAMS += \
3848 systemd-user-sessions
3850 loginctl_SOURCES = \
3851 src/login/loginctl.c \
3852 src/login/sysfs-show.c
3859 libsystemd-shared.la \
3860 libsystemd-dbus.la \
3863 rootbin_PROGRAMS += \
3866 dist_bashcompletion_DATA += \
3867 shell-completion/bash/loginctl
3869 dist_zshcompletion_DATA += \
3870 shell-completion/zsh/_loginctl \
3871 shell-completion/zsh/_systemd-inhibit
3873 systemd_inhibit_SOURCES = \
3876 systemd_inhibit_CFLAGS = \
3880 systemd_inhibit_LDADD = \
3881 libsystemd-shared.la \
3884 rootbin_PROGRAMS += \
3887 test_login_SOURCES = \
3888 src/login/test-login.c
3890 test_login_LDADD = \
3891 libsystemd-login-internal.la \
3892 libsystemd-shared.la
3894 test_login_shared_SOURCES = \
3895 src/login/test-login-shared.c
3897 test_login_shared_LDADD = \
3898 libsystemd-login-internal.la \
3899 libsystemd-shared.la
3901 test_inhibit_SOURCES = \
3902 src/login/test-inhibit.c
3904 test_inhibit_LDADD = \
3905 libsystemd-shared.la \
3908 test_inhibit_CFLAGS = \
3912 test_login_tables_SOURCES = \
3913 src/login/test-login-tables.c
3915 test_login_tables_CFLAGS = \
3919 test_login_tables_LDADD = \
3920 libsystemd-logind-core.la
3930 libsystemd_login_la_SOURCES = \
3931 src/login/sd-login.c \
3932 src/systemd/sd-login.h \
3933 src/login/login-shared.c \
3934 src/login/login-shared.h
3936 libsystemd_login_la_CFLAGS = \
3940 libsystemd_login_la_LDFLAGS = \
3942 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3943 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3945 libsystemd_login_la_LIBADD = \
3946 libsystemd-shared.la \
3947 libsystemd-daemon-internal.la \
3950 libsystemd_login_internal_la_SOURCES = \
3951 $(libsystemd_login_la_SOURCES)
3954 pam_systemd_la_SOURCES = \
3955 src/login/pam-module.c
3957 pam_systemd_la_CFLAGS = \
3963 pam_systemd_la_LDFLAGS = \
3969 -export-symbols-regex '^pam_sm_.*'
3971 pam_systemd_la_LIBADD = \
3972 libsystemd-audit.la \
3973 libsystemd-dbus.la \
3974 libsystemd-shared.la \
3975 libsystemd-daemon-internal.la \
3979 pamlib_LTLIBRARIES = \
3982 dist_pamconf_DATA = \
3983 src/login/systemd-user
3986 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3987 libsystemd-login-install-hook:
3988 libname=libsystemd-login.so && $(move-to-rootlibdir)
3990 libsystemd-login-uninstall-hook:
3991 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3993 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3994 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
3996 nodist_systemunit_DATA += \
3997 units/systemd-logind.service \
3998 units/systemd-user-sessions.service
4000 dist_systemunit_DATA += \
4003 dist_dbussystemservice_DATA += \
4004 src/login/org.freedesktop.login1.service
4006 dist_dbuspolicy_DATA += \
4007 src/login/org.freedesktop.login1.conf
4009 dist_pkgsysconf_DATA += \
4010 src/login/logind.conf
4012 pkginclude_HEADERS += \
4013 src/systemd/sd-login.h
4015 lib_LTLIBRARIES += \
4018 noinst_LTLIBRARIES += \
4019 libsystemd-login-internal.la
4021 pkgconfiglib_DATA += \
4022 src/login/libsystemd-login.pc
4024 polkitpolicy_files += \
4025 src/login/org.freedesktop.login1.policy
4030 MULTI_USER_TARGET_WANTS += \
4031 systemd-logind.service \
4032 systemd-user-sessions.service
4034 SYSTEM_UNIT_ALIASES += \
4035 systemd-logind.service dbus-org.freedesktop.login1.service
4037 systemd_multi_seat_x_SOURCES = \
4038 src/login/multi-seat-x.c
4040 systemd_multi_seat_x_LDADD = \
4041 libsystemd-label.la \
4042 libsystemd-shared.la
4044 rootlibexec_PROGRAMS += \
4045 systemd-multi-seat-x
4047 dist_udevrules_DATA += \
4048 src/login/70-uaccess.rules \
4049 src/login/70-power-switch.rules
4051 nodist_udevrules_DATA += \
4052 src/login/71-seat.rules \
4053 src/login/73-seat-late.rules
4056 src/login/logind-gperf.c \
4057 src/login/71-seat.rules \
4058 src/login/73-seat-late.rules
4061 polkitpolicy_in_files += \
4062 src/login/org.freedesktop.login1.policy.in
4065 src/login/logind-gperf.gperf \
4066 src/login/libsystemd-login.pc.in \
4067 src/login/libsystemd-login.sym \
4068 src/login/71-seat.rules.in \
4069 src/login/73-seat-late.rules.in \
4070 units/systemd-logind.service.in \
4071 units/systemd-user-sessions.service.in
4073 # ------------------------------------------------------------------------------
4074 if HAVE_PYTHON_DEVEL
4075 pkgpyexec_LTLIBRARIES = \
4082 _journal_la_SOURCES = \
4083 src/python-systemd/_journal.c
4085 _journal_la_CFLAGS = \
4087 -fvisibility=default \
4088 $(PYTHON_DEVEL_CFLAGS)
4090 _journal_la_LDFLAGS = \
4096 _journal_la_LIBADD = \
4097 $(PYTHON_DEVEL_LIBS) \
4098 libsystemd-journal.la
4100 id128_la_SOURCES = \
4101 src/python-systemd/id128.c \
4102 src/python-systemd/id128-constants.h \
4103 src/python-systemd/pyutil.c \
4104 src/python-systemd/pyutil.h
4108 -fvisibility=default \
4109 $(PYTHON_DEVEL_CFLAGS) \
4110 -I$(top_builddir)/src/python-systemd
4112 id128_la_LDFLAGS = \
4119 $(PYTHON_DEVEL_LIBS) \
4122 _daemon_la_SOURCES = \
4123 src/python-systemd/_daemon.c \
4124 src/python-systemd/pyutil.c \
4125 src/python-systemd/pyutil.h
4127 _daemon_la_CFLAGS = \
4129 -fvisibility=default \
4130 $(PYTHON_DEVEL_CFLAGS) \
4131 -I$(top_builddir)/src/python-systemd
4133 _daemon_la_LDFLAGS = \
4139 _daemon_la_LIBADD = \
4140 $(PYTHON_DEVEL_LIBS) \
4141 libsystemd-daemon.la
4143 _reader_la_SOURCES = \
4144 src/python-systemd/_reader.c \
4145 src/python-systemd/pyutil.c \
4146 src/python-systemd/pyutil.h
4148 _reader_la_CFLAGS = \
4150 -fvisibility=default \
4151 $(PYTHON_DEVEL_CFLAGS)
4153 _reader_la_LDFLAGS = \
4159 _reader_la_LIBADD = \
4160 $(PYTHON_DEVEL_LIBS) \
4161 libsystemd-journal.la \
4162 libsystemd-id128.la \
4163 libsystemd-shared.la \
4164 libsystemd-daemon-internal.la \
4167 login_la_SOURCES = \
4168 src/python-systemd/login.c \
4169 src/python-systemd/pyutil.c \
4170 src/python-systemd/pyutil.h
4174 -fvisibility=default \
4175 $(PYTHON_DEVEL_CFLAGS)
4177 login_la_LDFLAGS = \
4184 $(PYTHON_DEVEL_LIBS) \
4185 libsystemd-journal.la \
4186 libsystemd-login.la \
4187 libsystemd-shared.la \
4188 libsystemd-daemon-internal.la \
4191 dist_pkgpyexec_PYTHON = \
4192 src/python-systemd/journal.py \
4193 src/python-systemd/daemon.py \
4194 src/python-systemd/__init__.py
4196 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4197 $(AM_V_at)$(MKDIR_P) $(dir $@)
4198 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4201 src/python-systemd/id128-constants.h
4203 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4205 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4206 $(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/
4207 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4210 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4211 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4214 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4215 $(MAKE) DESTDIR="$$dir" install && \
4216 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4221 CLEAN_LOCAL_HOOKS += clean-sphinx
4224 -rm -rf docs/html/python-systemd/
4226 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4228 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4229 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4231 # ------------------------------------------------------------------------------
4233 '|rootlibexecdir=$(rootlibexecdir)|' \
4234 '|rootbindir=$(rootbindir)|' \
4235 '|bindir=$(bindir)|' \
4236 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4237 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4238 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4239 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4240 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4241 '|pkgdatadir=$(pkgdatadir)|' \
4242 '|systemunitdir=$(systemunitdir)|' \
4243 '|userunitdir=$(userunitdir)|' \
4244 '|systempresetdir=$(systempresetdir)|' \
4245 '|userpresetdir=$(userpresetdir)|' \
4246 '|udevhwdbdir=$(udevhwdbdir)|' \
4247 '|udevrulesdir=$(udevrulesdir)|' \
4248 '|catalogdir=$(catalogdir)|' \
4249 '|tmpfilesdir=$(tmpfilesdir)|' \
4250 '|sysctldir=$(sysctldir)|' \
4251 '|systemgeneratordir=$(systemgeneratordir)|' \
4252 '|usergeneratordir=$(usergeneratordir)|' \
4253 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4254 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4255 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4256 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4257 '|prefix=$(prefix)|' \
4258 '|exec_prefix=$(exec_prefix)|' \
4259 '|libdir=$(libdir)|' \
4260 '|includedir=$(includedir)|' \
4261 '|VERSION=$(VERSION)|' \
4262 '|rootprefix=$(rootprefix)|' \
4263 '|udevlibexecdir=$(udevlibexecdir)|' \
4264 '|SUSHELL=$(SUSHELL)|' \
4265 '|DEBUGTTY=$(DEBUGTTY)|' \
4268 '|MKDIR_P=$(MKDIR_P)|' \
4269 '|QUOTAON=$(QUOTAON)|' \
4270 '|QUOTACHECK=$(QUOTACHECK)|' \
4271 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4272 '|VARLOGDIR=$(varlogdir)|' \
4273 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4274 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4275 '|PYTHON=$(PYTHON)|' \
4276 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4279 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4280 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4283 units/%: units/%.in Makefile
4286 man/%: man/%.in Makefile
4289 sysctl.d/%: sysctl.d/%.in Makefile
4292 %.pc: %.pc.in Makefile
4295 src/core/macros.%: src/core/macros.%.in Makefile
4298 src/%.policy.in: src/%.policy.in.in Makefile
4301 %.rules: %.rules.in Makefile
4304 %.sh: %.sh.in Makefile
4306 $(AM_V_GEN)chmod +x $@
4308 src/%.c: src/%.gperf
4309 $(AM_V_at)$(MKDIR_P) $(dir $@)
4310 $(AM_V_GPERF)$(GPERF) < $< > $@
4313 $(AM_V_at)$(MKDIR_P) $(dir $@)
4314 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4316 units/%: units/%.m4 Makefile
4317 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4318 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4320 units/user/%: units/%.m4 Makefile
4321 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4322 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4325 nodist_polkitpolicy_DATA = \
4326 $(polkitpolicy_files) \
4327 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4331 $(polkitpolicy_in_files) \
4332 $(polkitpolicy_in_in_files)
4335 $(nodist_systemunit_DATA) \
4336 $(nodist_userunit_DATA) \
4337 $(pkgconfigdata_DATA) \
4338 $(pkgconfiglib_DATA) \
4339 $(nodist_polkitpolicy_DATA)
4341 # ------------------------------------------------------------------------------
4343 man/custom-entities.ent: Makefile
4344 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4345 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4346 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4350 man/custom-entities.ent
4354 --stringparam man.output.quietly 1 \
4355 --stringparam funcsynopsis.style ansi \
4356 --stringparam man.authors.section.enabled 0 \
4357 --stringparam man.copyright.section.enabled 0 \
4358 --stringparam systemd.version $(VERSION) \
4359 --path '$(builddir)/man:$(srcdir)/man'
4361 XSLTPROC_PROCESS_MAN = \
4362 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4364 XSLTPROC_PROCESS_HTML = \
4365 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4367 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4368 $(XSLTPROC_PROCESS_MAN)
4370 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4371 $(XSLTPROC_PROCESS_MAN)
4373 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4374 $(XSLTPROC_PROCESS_MAN)
4376 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4377 $(XSLTPROC_PROCESS_MAN)
4379 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4380 $(XSLTPROC_PROCESS_MAN)
4382 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4383 $(XSLTPROC_PROCESS_HTML)
4386 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4392 man/custom-html.xsl \
4395 # ------------------------------------------------------------------------------
4396 DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
4399 $(dbusinterface_DATA)
4403 docs/sysvinit/README
4408 docs/sysvinit/README: docs/sysvinit/README.in
4411 docs/var-log/README: docs/var-log/README.in
4415 docs/sysvinit/README \
4420 docs/sysvinit/README.in \
4421 docs/var-log/README.in
4423 SOCKETS_TARGET_WANTS += \
4424 systemd-initctl.socket \
4425 systemd-shutdownd.socket
4428 RUNLEVEL1_TARGET_WANTS += \
4429 systemd-update-utmp-runlevel.service
4430 RUNLEVEL2_TARGET_WANTS += \
4431 systemd-update-utmp-runlevel.service
4432 RUNLEVEL3_TARGET_WANTS += \
4433 systemd-update-utmp-runlevel.service
4434 RUNLEVEL4_TARGET_WANTS += \
4435 systemd-update-utmp-runlevel.service
4436 RUNLEVEL5_TARGET_WANTS += \
4437 systemd-update-utmp-runlevel.service
4439 SYSINIT_TARGET_WANTS += \
4440 systemd-update-utmp.service
4441 LOCAL_FS_TARGET_WANTS += \
4442 systemd-remount-fs.service \
4443 systemd-fsck-root.service \
4445 MULTI_USER_TARGET_WANTS += \
4447 systemd-ask-password-wall.path
4448 SYSINIT_TARGET_WANTS += \
4449 dev-hugepages.mount \
4451 sys-kernel-config.mount \
4452 sys-kernel-debug.mount \
4453 sys-fs-fuse-connections.mount \
4454 systemd-sysctl.service \
4455 systemd-ask-password-console.path
4458 SYSTEM_UNIT_ALIASES += \
4459 poweroff.target runlevel0.target \
4460 rescue.target runlevel1.target \
4461 multi-user.target runlevel2.target \
4462 multi-user.target runlevel3.target \
4463 multi-user.target runlevel4.target \
4464 graphical.target runlevel5.target \
4465 reboot.target runlevel6.target
4468 SYSTEM_UNIT_ALIASES += \
4469 graphical.target default.target \
4470 reboot.target ctrl-alt-del.target \
4471 getty@.service autovt@.service
4473 USER_UNIT_ALIASES += \
4474 $(systemunitdir)/shutdown.target shutdown.target \
4475 $(systemunitdir)/sockets.target sockets.target \
4476 $(systemunitdir)/timers.target timers.target \
4477 $(systemunitdir)/paths.target paths.target \
4478 $(systemunitdir)/bluetooth.target bluetooth.target \
4479 $(systemunitdir)/printer.target printer.target \
4480 $(systemunitdir)/sound.target sound.target \
4481 $(systemunitdir)/smartcard.target smartcard.target
4483 GENERAL_ALIASES += \
4484 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4485 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4486 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4487 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4491 $(systemunitdir)/runlevel1.target.wants \
4492 $(systemunitdir)/runlevel2.target.wants \
4493 $(systemunitdir)/runlevel3.target.wants \
4494 $(systemunitdir)/runlevel4.target.wants \
4495 $(systemunitdir)/runlevel5.target.wants
4499 $(prefix)/lib/modules-load.d \
4500 $(sysconfdir)/modules-load.d \
4501 $(prefix)/lib/sysctl.d \
4502 $(sysconfdir)/sysctl.d \
4503 $(prefix)/lib/kernel/install.d \
4504 $(sysconfdir)/kernel/install.d \
4505 $(systemshutdowndir) \
4507 $(systemgeneratordir) \
4508 $(usergeneratordir) \
4511 $(pkgsysconfdir)/system \
4512 $(pkgsysconfdir)/system/multi-user.target.wants \
4513 $(pkgsysconfdir)/system/getty.target.wants \
4514 $(pkgsysconfdir)/user \
4515 $(dbussessionservicedir) \
4516 $(sysconfdir)/xdg/systemd
4518 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4520 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4522 install-data-hook: $(INSTALL_DATA_HOOKS)
4524 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4526 clean-local: $(CLEAN_LOCAL_HOOKS)
4527 rm -rf $(abs_srcdir)/install-tree
4528 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4529 $(abs_srcdir)/hwdb/iab.txt
4531 DISTCHECK_CONFIGURE_FLAGS = \
4532 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4533 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4534 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4535 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
4536 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4537 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4538 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4539 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4540 --with-rootprefix=$$dc_install_base \
4544 DISTCHECK_CONFIGURE_FLAGS += \
4545 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4546 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4548 DISTCHECK_CONFIGURE_FLAGS += \
4549 --with-sysvinit-path= \
4550 --with-sysvrcnd-path=
4554 DISTCHECK_CONFIGURE_FLAGS += \
4559 ( cd $(top_srcdir)/hwdb && \
4560 wget -N http://www.linux-usb.org/usb.ids \
4561 http://pci-ids.ucw.cz/v2.2/pci.ids \
4562 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4563 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4567 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4568 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4570 upload: all distcheck
4571 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4572 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4573 scp man/*.html tango:public/systemd-man/
4575 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4576 doc-sync: all destdir-sphinx
4577 gtkdoc-rebase --html-dir=docs/libudev/html --online
4578 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4579 gtkdoc-rebase --html-dir=docs/gudev/html --online
4580 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4581 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4582 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4585 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4588 rm -rf $(abs_srcdir)/install-tree
4589 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4590 tree $(abs_srcdir)/install-tree