1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
46 LIBSYSTEMD_LOGIN_CURRENT=9
47 LIBSYSTEMD_LOGIN_REVISION=1
48 LIBSYSTEMD_LOGIN_AGE=9
50 LIBSYSTEMD_DAEMON_CURRENT=0
51 LIBSYSTEMD_DAEMON_REVISION=10
52 LIBSYSTEMD_DAEMON_AGE=0
54 LIBSYSTEMD_ID128_CURRENT=0
55 LIBSYSTEMD_ID128_REVISION=26
56 LIBSYSTEMD_ID128_AGE=0
58 LIBSYSTEMD_JOURNAL_CURRENT=11
59 LIBSYSTEMD_JOURNAL_REVISION=3
60 LIBSYSTEMD_JOURNAL_AGE=11
62 # Dirs of external packages
63 dbuspolicydir=@dbuspolicydir@
64 dbussessionservicedir=@dbussessionservicedir@
65 dbussystemservicedir=@dbussystemservicedir@
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 linkdir=$(prefix)/lib/net/links
87 pkgincludedir=$(includedir)/systemd
88 systemgeneratordir=$(rootlibexecdir)/system-generators
89 usergeneratordir=$(prefix)/lib/systemd/user-generators
90 systemshutdowndir=$(rootlibexecdir)/system-shutdown
91 systemsleepdir=$(rootlibexecdir)/system-sleep
92 systemunitdir=$(rootprefix)/lib/systemd/system
93 systempresetdir=$(rootprefix)/lib/systemd/system-preset
94 udevlibexecdir=$(rootprefix)/lib/udev
95 udevhomedir=$(udevlibexecdir)
96 udevrulesdir=$(udevlibexecdir)/rules.d
97 udevhwdbdir=$(udevlibexecdir)/hwdb.d
98 catalogdir=$(prefix)/lib/systemd/catalog
99 kernelinstalldir = $(prefix)/lib/kernel/install.d
101 # And these are the special ones for /
102 rootprefix=@rootprefix@
103 rootbindir=$(rootprefix)/bin
104 rootlibexecdir=$(rootprefix)/lib/systemd
106 CLEANFILES = $(BUILT_SOURCES)
111 UNINSTALL_EXEC_HOOKS =
113 UNINSTALL_DATA_HOOKS =
114 DISTCLEAN_LOCAL_HOOKS =
122 polkitpolicy_in_in_files =
123 polkitpolicy_in_files =
125 dist_udevrules_DATA =
126 nodist_udevrules_DATA =
127 dist_pkgsysconf_DATA =
129 dist_dbuspolicy_DATA =
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_srcdir)/src/udev/net \
184 -I $(top_builddir)/src/udev \
185 -I $(top_srcdir)/src/libsystemd-bus \
188 AM_CFLAGS = $(OUR_CFLAGS)
189 AM_LDFLAGS = $(OUR_LDFLAGS)
191 # ------------------------------------------------------------------------------
192 define move-to-rootlibdir
193 if test "$(libdir)" != "$(rootlibdir)"; then \
194 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
195 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
196 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
197 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
198 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
204 RUNLEVEL1_TARGET_WANTS =
205 RUNLEVEL2_TARGET_WANTS =
206 RUNLEVEL3_TARGET_WANTS =
207 RUNLEVEL4_TARGET_WANTS =
208 RUNLEVEL5_TARGET_WANTS =
209 SHUTDOWN_TARGET_WANTS =
210 LOCAL_FS_TARGET_WANTS =
211 MULTI_USER_TARGET_WANTS =
212 SYSINIT_TARGET_WANTS =
213 SOCKETS_TARGET_WANTS =
214 TIMERS_TARGET_WANTS =
216 SYSTEM_UNIT_ALIASES =
221 install-target-wants-hook:
222 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
223 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
224 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
225 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
226 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
227 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
228 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
229 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
230 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
231 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
232 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
233 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
236 [ -z "$$what" ] || ( \
237 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
238 $(MKDIR_P) -m 0755 $$dir && \
241 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
244 install-directories-hook:
245 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
247 install-aliases-hook:
248 set -- $(SYSTEM_UNIT_ALIASES) && \
249 dir=$(systemunitdir) && $(install-aliases)
250 set -- $(USER_UNIT_ALIASES) && \
251 dir=$(userunitdir) && $(install-aliases)
252 set -- $(GENERAL_ALIASES) && \
253 dir= && $(install-aliases)
255 define install-aliases
256 while [ -n "$$1" ]; do \
257 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
258 rm -f $(DESTDIR)$$dir/$$2 && \
259 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
260 shift 2 || exit $$?; \
264 INSTALL_EXEC_HOOKS += \
265 install-target-wants-hook \
266 install-directories-hook \
269 # ------------------------------------------------------------------------------
270 AM_V_M4 = $(AM_V_M4_$(V))
271 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
272 AM_V_M4_0 = @echo " M4 " $@;
274 AM_V_XSLT = $(AM_V_XSLT_$(V))
275 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
276 AM_V_XSLT_0 = @echo " XSLT " $@;
278 AM_V_GPERF = $(AM_V_GPERF_$(V))
279 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
280 AM_V_GPERF_0 = @echo " GPERF " $@;
282 AM_V_LN = $(AM_V_LN_$(V))
283 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
284 AM_V_LN_0 = @echo " LN " $@;
286 # ------------------------------------------------------------------------------
290 systemd-ask-password \
291 systemd-tty-ask-password-agent \
292 systemd-machine-id-setup
297 systemd-stdio-bridge \
299 systemd-detect-virt \
305 src/kernel-install/kernel-install
307 dist_kernelinstall_SCRIPTS = \
308 src/kernel-install/50-depmod.install \
309 src/kernel-install/90-loaderentry.install
311 rootlibexec_PROGRAMS = \
313 systemd-cgroups-agent \
315 systemd-update-utmp \
319 systemd-reply-password \
324 systemd-socket-proxyd
326 systemgenerator_PROGRAMS = \
327 systemd-getty-generator \
328 systemd-fstab-generator \
329 systemd-system-update-generator
331 dist_bashcompletion_DATA = \
332 shell-completion/bash/journalctl \
333 shell-completion/bash/systemctl \
334 shell-completion/bash/systemd-analyze \
335 shell-completion/bash/systemd-run \
336 shell-completion/bash/udevadm \
337 shell-completion/bash/kernel-install
339 dist_zshcompletion_DATA = \
340 shell-completion/zsh/_systemctl \
341 shell-completion/zsh/_journalctl \
342 shell-completion/zsh/_udevadm \
343 shell-completion/zsh/_kernel-install \
344 shell-completion/zsh/_systemd-nspawn \
345 shell-completion/zsh/_systemd-analyze \
346 shell-completion/zsh/_sd_hosts_or_user_at_host \
347 shell-completion/zsh/_systemd-delta \
348 shell-completion/zsh/_systemd
351 sysctl.d/50-default.conf
353 dist_systemunit_DATA = \
354 units/graphical.target \
355 units/multi-user.target \
356 units/emergency.service \
357 units/emergency.target \
358 units/sysinit.target \
363 units/local-fs.target \
364 units/local-fs-pre.target \
365 units/initrd.target \
366 units/initrd-fs.target \
367 units/initrd-root-fs.target \
368 units/remote-fs.target \
369 units/remote-fs-pre.target \
370 units/network.target \
371 units/network-online.target \
372 units/nss-lookup.target \
373 units/nss-user-lookup.target \
374 units/hibernate.target \
375 units/hybrid-sleep.target \
376 units/poweroff.target \
377 units/reboot.target \
378 units/rescue.target \
379 units/rpcbind.target \
380 units/time-sync.target \
381 units/shutdown.target \
383 units/umount.target \
384 units/sigpwr.target \
386 units/sockets.target \
387 units/timers.target \
389 units/suspend.target \
391 units/slices.target \
394 units/systemd-initctl.socket \
395 units/systemd-shutdownd.socket \
396 units/syslog.socket \
397 units/dev-hugepages.mount \
398 units/dev-mqueue.mount \
399 units/sys-kernel-config.mount \
400 units/sys-kernel-debug.mount \
401 units/sys-fs-fuse-connections.mount \
403 units/printer.target \
405 units/bluetooth.target \
406 units/smartcard.target \
407 units/systemd-ask-password-wall.path \
408 units/systemd-ask-password-console.path \
409 units/systemd-udevd-control.socket \
410 units/systemd-udevd-kernel.socket \
411 units/system-update.target \
412 units/initrd-switch-root.target
414 nodist_systemunit_DATA = \
415 units/getty@.service \
416 units/serial-getty@.service \
417 units/console-shell.service \
418 units/console-getty.service \
419 units/systemd-initctl.service \
420 units/systemd-shutdownd.service \
421 units/systemd-remount-fs.service \
422 units/systemd-update-utmp.service \
423 units/systemd-update-utmp-runlevel.service \
424 units/systemd-ask-password-wall.service \
425 units/systemd-ask-password-console.service \
426 units/systemd-sysctl.service \
427 units/emergency.service \
428 units/rescue.service \
429 units/user@.service \
430 units/systemd-hibernate.service \
431 units/systemd-hybrid-sleep.service \
432 units/systemd-suspend.service \
433 units/systemd-halt.service \
434 units/systemd-poweroff.service \
435 units/systemd-reboot.service \
436 units/systemd-kexec.service \
437 units/systemd-fsck@.service \
438 units/systemd-fsck-root.service \
439 units/systemd-udevd.service \
440 units/systemd-udev-trigger.service \
441 units/systemd-udev-settle.service \
442 units/debug-shell.service \
443 units/initrd-parse-etc.service \
444 units/initrd-cleanup.service \
445 units/initrd-udevadm-cleanup-db.service \
446 units/initrd-switch-root.service \
447 units/systemd-nspawn@.service
449 dist_userunit_DATA = \
450 units/user/default.target \
451 units/user/exit.target
453 nodist_userunit_DATA = \
454 units/user/systemd-exit.service
457 units/getty@.service.m4 \
458 units/serial-getty@.service.m4 \
459 units/console-shell.service.m4.in \
460 units/console-getty.service.m4.in \
461 units/rescue.service.m4.in \
462 units/systemd-initctl.service.in \
463 units/systemd-shutdownd.service.in \
464 units/systemd-remount-fs.service.in \
465 units/systemd-update-utmp.service.in \
466 units/systemd-update-utmp-runlevel.service.in \
467 units/systemd-ask-password-wall.service.in \
468 units/systemd-ask-password-console.service.in \
469 units/systemd-sysctl.service.in \
470 units/emergency.service.in \
471 units/systemd-halt.service.in \
472 units/systemd-poweroff.service.in \
473 units/systemd-reboot.service.in \
474 units/systemd-kexec.service.in \
475 units/user/systemd-exit.service.in \
476 units/systemd-fsck@.service.in \
477 units/systemd-fsck-root.service.in \
478 units/user@.service.in \
479 units/systemd-udevd.service \
480 units/systemd-udev-trigger.service \
481 units/systemd-udev-settle.service \
482 units/debug-shell.service.in \
483 units/systemd-hibernate.service.in \
484 units/systemd-hybrid-sleep.service.in \
485 units/systemd-suspend.service.in \
486 units/quotaon.service.in \
487 units/initrd-parse-etc.service.in \
488 units/initrd-cleanup.service.in \
489 units/initrd-udevadm-cleanup-db.service.in \
490 units/initrd-switch-root.service.in \
491 units/systemd-nspawn@.service.in
494 units/console-shell.service.m4 \
495 units/console-getty.service.m4 \
496 units/rescue.service.m4
499 nodist_systemunit_DATA += \
500 units/rc-local.service \
501 units/halt-local.service
503 systemgenerator_PROGRAMS += \
504 systemd-rc-local-generator
508 units/rc-local.service.in \
509 units/halt-local.service.in
511 # automake is broken and can't handle files with a dash in front
512 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
514 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
516 units-uninstall-hook:
517 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
519 INSTALL_DATA_HOOKS += units-install-hook
520 UNINSTALL_DATA_HOOKS += units-uninstall-hook
530 @INTLTOOL_POLICY_RULE@
532 # ------------------------------------------------------------------------------
537 include Makefile-man.am
540 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
543 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
545 ${XML_FILES:.xml=.html}
547 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
564 $(AM_V_at)$(MKDIR_P) $(dir $@)
565 $(AM_V_LN)$(LN_S) -f ../../man $@
574 man/index.html: man/systemd.index.html
575 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
583 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
584 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
585 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
587 update-man-list: make-man-rules.py $(XML_GLOB)
588 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
589 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
590 @echo "Makefile-man.am has been regenerated"
592 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
593 $(AM_V_at)$(MKDIR_P) $(dir $@)
594 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
596 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
597 $(AM_V_at)$(MKDIR_P) $(dir $@)
598 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
601 man/systemd.index.xml \
603 man/systemd.directives.xml
606 man/systemd.index.xml \
607 man/systemd.directives.xml
619 make-directive-index.py \
622 # ------------------------------------------------------------------------------
623 noinst_LTLIBRARIES += \
626 libsystemd_shared_la_SOURCES = \
627 src/shared/linux/auto_dev-ioctl.h \
628 src/shared/linux/fanotify.h \
629 src/shared/linux/seccomp.h \
630 src/shared/linux/seccomp-bpf.h \
631 src/shared/missing.h \
635 src/shared/device-nodes.c \
636 src/shared/device-nodes.h \
637 src/shared/sparse-endian.h \
640 src/shared/udev-util.h \
643 src/shared/efivars.c \
644 src/shared/efivars.h \
645 src/shared/path-util.c \
646 src/shared/path-util.h \
647 src/shared/time-util.c \
648 src/shared/time-util.h \
649 src/shared/hashmap.c \
650 src/shared/hashmap.h \
657 src/shared/sleep-config.c \
658 src/shared/sleep-config.h \
661 src/shared/env-util.c \
662 src/shared/env-util.h \
663 src/shared/strbuf.c \
664 src/shared/strbuf.h \
665 src/shared/strxcpyx.c \
666 src/shared/strxcpyx.h \
667 src/shared/conf-parser.c \
668 src/shared/conf-parser.h \
671 src/shared/ratelimit.h \
672 src/shared/ratelimit.c \
673 src/shared/exit-status.c \
674 src/shared/exit-status.h \
677 src/shared/gunicode.c \
678 src/shared/gunicode.h \
681 src/shared/ioprio.h \
682 src/shared/socket-util.c \
683 src/shared/socket-util.h \
684 src/shared/conf-files.c \
685 src/shared/conf-files.h \
686 src/shared/cgroup-util.c \
687 src/shared/cgroup-util.h \
688 src/shared/cgroup-show.c \
689 src/shared/cgroup-show.h \
690 src/shared/unit-name.c \
691 src/shared/unit-name.h \
692 src/shared/utmp-wtmp.c \
693 src/shared/utmp-wtmp.h \
694 src/shared/watchdog.c \
695 src/shared/watchdog.h \
696 src/shared/spawn-ask-password-agent.c \
697 src/shared/spawn-ask-password-agent.h \
698 src/shared/replace-var.c \
699 src/shared/replace-var.h \
700 src/shared/spawn-polkit-agent.c \
701 src/shared/spawn-polkit-agent.h \
702 src/shared/hwclock.c \
703 src/shared/hwclock.h \
704 src/shared/time-dst.c \
705 src/shared/time-dst.h \
706 src/shared/calendarspec.c \
707 src/shared/calendarspec.h \
708 src/shared/fileio.c \
709 src/shared/fileio.h \
710 src/shared/output-mode.h \
711 src/shared/MurmurHash3.c \
712 src/shared/MurmurHash3.h \
713 src/shared/acpi-fpdt.h \
714 src/shared/acpi-fpdt.c \
715 src/shared/boot-timestamps.h \
716 src/shared/boot-timestamps.c \
717 src/shared/refcnt.h \
720 src/shared/smack-util.c \
721 src/shared/smack-util.h \
722 src/shared/apparmor-util.c \
723 src/shared/apparmor-util.h \
724 src/shared/ima-util.c \
725 src/shared/ima-util.h
727 #-------------------------------------------------------------------------------
728 noinst_LTLIBRARIES += \
731 libsystemd_dbus_la_SOURCES = \
732 src/shared/dbus-common.c \
733 src/shared/dbus-common.h \
734 src/shared/dbus-loop.c \
735 src/shared/dbus-loop.h \
736 src/shared/polkit.c \
739 libsystemd_dbus_la_CFLAGS = \
743 libsystemd_dbus_la_LIBADD = \
746 # ------------------------------------------------------------------------------
747 noinst_LTLIBRARIES += \
750 libsystemd_units_la_SOURCES = \
751 src/shared/install.c \
752 src/shared/install.h \
753 src/shared/install-printf.c \
754 src/shared/install-printf.h \
755 src/shared/path-lookup.c \
756 src/shared/path-lookup.h \
757 src/shared/specifier.c \
758 src/shared/specifier.h
760 libsystemd_units_la_CFLAGS = \
764 # ------------------------------------------------------------------------------
765 noinst_LTLIBRARIES += \
768 libsystemd_label_la_SOURCES = \
769 src/shared/socket-label.c \
772 src/shared/selinux-util.c \
773 src/shared/selinux-util.h \
774 src/shared/mkdir-label.c \
775 src/shared/ask-password-api.c \
776 src/shared/ask-password-api.h \
777 src/shared/fileio-label.c \
778 src/shared/fileio-label.h \
779 src/shared/dev-setup.c \
780 src/shared/dev-setup.h
782 libsystemd_label_la_CFLAGS = \
786 libsystemd_label_la_LIBADD = \
789 # ------------------------------------------------------------------------------
790 noinst_LTLIBRARIES += \
793 libsystemd_logs_la_SOURCES = \
794 src/shared/logs-show.c \
795 src/shared/logs-show.h
797 libsystemd_logs_la_LIBADD = \
798 libsystemd-journal-internal.la \
799 libsystemd-id128-internal.la \
802 # ------------------------------------------------------------------------------
803 noinst_LTLIBRARIES += \
804 libsystemd-capability.la
806 libsystemd_capability_la_SOURCES = \
807 src/shared/capability.c \
808 src/shared/capability.h
810 libsystemd_capability_la_CFLAGS = \
814 libsystemd_capability_la_LIBADD = \
817 # ------------------------------------------------------------------------------
818 noinst_LTLIBRARIES += \
821 libsystemd_audit_la_SOURCES = \
825 libsystemd_audit_la_LIBADD = \
826 libsystemd-capability.la
828 # ------------------------------------------------------------------------------
830 noinst_LTLIBRARIES += \
833 libsystemd_acl_la_SOURCES = \
834 src/shared/acl-util.c \
835 src/shared/acl-util.h
837 libsystemd_acl_la_CFLAGS = \
841 libsystemd_acl_la_LIBADD = \
846 # ------------------------------------------------------------------------------
847 noinst_LTLIBRARIES += \
850 libsystemd_core_la_SOURCES = \
853 src/core/unit-printf.c \
854 src/core/unit-printf.h \
859 src/core/transaction.c \
860 src/core/transaction.h \
861 src/core/load-fragment.c \
862 src/core/load-fragment.h \
865 src/core/automount.c \
866 src/core/automount.h \
875 src/core/snapshot.c \
876 src/core/snapshot.h \
887 src/core/load-dropin.c \
888 src/core/load-dropin.h \
895 src/core/dbus-manager.c \
896 src/core/dbus-manager.h \
897 src/core/dbus-unit.c \
898 src/core/dbus-unit.h \
899 src/core/dbus-job.c \
900 src/core/dbus-job.h \
901 src/core/dbus-service.c \
902 src/core/dbus-service.h \
903 src/core/dbus-socket.c \
904 src/core/dbus-socket.h \
905 src/core/dbus-timer.c \
906 src/core/dbus-timer.h \
907 src/core/dbus-target.c \
908 src/core/dbus-target.h \
909 src/core/dbus-mount.c \
910 src/core/dbus-mount.h \
911 src/core/dbus-automount.c \
912 src/core/dbus-automount.h \
913 src/core/dbus-swap.c \
914 src/core/dbus-swap.h \
915 src/core/dbus-snapshot.c \
916 src/core/dbus-snapshot.h \
917 src/core/dbus-device.c \
918 src/core/dbus-device.h \
919 src/core/dbus-path.c \
920 src/core/dbus-path.h \
921 src/core/dbus-slice.c \
922 src/core/dbus-slice.h \
923 src/core/dbus-scope.c \
924 src/core/dbus-scope.h \
925 src/core/dbus-execute.c \
926 src/core/dbus-execute.h \
927 src/core/dbus-kill.c \
928 src/core/dbus-kill.h \
929 src/core/dbus-cgroup.c \
930 src/core/dbus-cgroup.h \
933 src/core/selinux-access.c \
934 src/core/selinux-access.h \
935 src/core/selinux-setup.c \
936 src/core/selinux-setup.h \
937 src/core/smack-setup.c \
938 src/core/smack-setup.h \
939 src/core/ima-setup.c \
940 src/core/ima-setup.h \
941 src/core/locale-setup.h \
942 src/core/locale-setup.c \
943 src/core/hostname-setup.c \
944 src/core/hostname-setup.h \
945 src/core/machine-id-setup.c \
946 src/core/machine-id-setup.h \
947 src/core/mount-setup.c \
948 src/core/mount-setup.h \
949 src/core/loopback-setup.h \
950 src/core/loopback-setup.c \
951 src/core/condition.c \
952 src/core/condition.h \
953 src/core/namespace.c \
954 src/core/namespace.h \
957 src/core/securebits.h \
960 src/core/bus-errors.h \
962 src/core/sysfs-show.h \
963 src/core/switch-root.h \
964 src/core/switch-root.c \
967 src/core/syscall-list.c \
968 src/core/syscall-list.h \
969 src/core/audit-fd.c \
970 src/core/audit-fd.h \
975 libsystemd_core_la_SOURCES += \
976 src/core/kmod-setup.c \
977 src/core/kmod-setup.h
980 nodist_libsystemd_core_la_SOURCES = \
981 src/core/load-fragment-gperf.c \
982 src/core/load-fragment-gperf-nulstr.c \
983 src/core/syscall-from-name.h \
984 src/core/syscall-to-name.h
986 libsystemd_core_la_CFLAGS = \
995 libsystemd_core_la_LIBADD = \
996 libsystemd-capability.la \
997 libsystemd-units.la \
998 libsystemd-label.la \
999 libsystemd-shared.la \
1000 libsystemd-dbus.la \
1001 libsystemd-audit.la \
1002 libsystemd-id128-internal.la \
1003 libsystemd-daemon.la \
1011 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1012 $(AM_V_at)$(MKDIR_P) $(dir $@)
1013 $(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 ";" }' < $< > $@
1016 src/core/load-fragment-gperf.gperf.m4
1019 src/core/load-fragment-gperf.gperf \
1020 src/core/load-fragment-gperf.c \
1021 src/core/load-fragment-gperf-nulstr.c \
1022 src/core/syscall-list.txt \
1023 src/core/syscall-from-name.gperf
1026 src/core/syscall-from-name.h \
1027 src/core/syscall-to-name.h
1029 src/core/syscall-list.txt: Makefile
1030 $(AM_V_at)$(MKDIR_P) $(dir $@)
1031 $(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; }' > $@
1033 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
1034 $(AM_V_at)$(MKDIR_P) $(dir $@)
1035 $(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 }' < $< > $@
1037 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
1038 $(AM_V_at)$(MKDIR_P) $(dir $@)
1039 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1041 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
1042 $(AM_V_at)$(MKDIR_P) $(dir $@)
1043 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1045 # ------------------------------------------------------------------------------
1054 libsystemd-core.la \
1055 libsystemd-daemon.la \
1056 libsystemd-id128-internal.la \
1059 dist_pkgsysconf_DATA += \
1060 src/core/system.conf \
1063 dist_dbuspolicy_DATA += \
1064 src/core/org.freedesktop.systemd1.conf
1066 dist_dbussystemservice_DATA += \
1067 src/core/org.freedesktop.systemd1.service
1069 polkitpolicy_in_in_files += \
1070 src/core/org.freedesktop.systemd1.policy.in.in
1072 pkgconfigdata_DATA = \
1075 nodist_rpmmacros_DATA = \
1076 src/core/macros.systemd
1079 src/core/systemd.pc.in \
1080 src/core/macros.systemd.in
1083 src/core/macros.systemd \
1084 src/core/org.freedesktop.systemd1.policy.in
1086 # ------------------------------------------------------------------------------
1116 test-strip-tab-ansi \
1127 test/sched_idle_bad.service \
1128 test/sched_idle_ok.service \
1129 test/sched_rr_bad.service \
1130 test/sched_rr_ok.service \
1131 test/sched_rr_change.service
1134 src/test/test-helper.h
1136 test_device_nodes_SOURCES = \
1137 src/test/test-device-nodes.c
1139 test_device_nodes_LDADD = \
1140 libsystemd-shared.la
1142 test_engine_SOURCES = \
1143 src/test/test-engine.c
1145 test_engine_CFLAGS = \
1149 test_engine_LDADD = \
1150 libsystemd-core.la \
1151 libsystemd-daemon.la \
1154 test_job_type_SOURCES = \
1155 src/test/test-job-type.c
1157 test_job_type_CFLAGS = \
1161 test_job_type_LDADD = \
1162 libsystemd-core.la \
1163 libsystemd-daemon.la
1175 test_loopback_SOURCES = \
1176 src/test/test-loopback.c
1178 test_loopback_LDADD = \
1179 libsystemd-shared.la \
1182 test_hostname_SOURCES = \
1183 src/test/test-hostname.c
1185 test_hostname_LDADD = \
1192 test_boot_timestamp_SOURCES = \
1193 src/test/test-boot-timestamps.c
1195 test_boot_timestamp_LDADD = \
1196 libsystemd-shared.la
1199 test_unit_name_SOURCES = \
1200 src/test/test-unit-name.c
1202 test_unit_name_CFLAGS = \
1206 test_unit_name_LDADD = \
1209 test_unit_file_SOURCES = \
1210 src/test/test-unit-file.c
1212 test_unit_file_CFLAGS = \
1216 test_unit_file_LDADD = \
1219 test_utf8_SOURCES = \
1220 src/test/test-utf8.c
1223 libsystemd-shared.la
1225 test_util_SOURCES = \
1226 src/test/test-util.c
1231 test_namespace_SOURCES = \
1232 src/test/test-namespace.c
1234 test_namespace_LDADD = \
1237 test_hashmap_SOURCES = \
1238 src/test/test-hashmap.c
1240 test_hashmap_LDADD = \
1243 test_list_SOURCES = \
1244 src/test/test-list.c
1249 test_tables_SOURCES = \
1250 src/test/test-tables.c \
1251 src/shared/test-tables.h
1253 test_tables_CFLAGS = \
1257 test_tables_LDADD = \
1258 libsystemd-core.la \
1261 test_prioq_SOURCES = \
1262 src/test/test-prioq.c
1264 test_prioq_LDADD = \
1267 test_fileio_SOURCES = \
1268 src/test/test-fileio.c
1270 test_fileio_LDADD = \
1273 test_time_SOURCES = \
1274 src/test/test-time.c
1279 test_log_SOURCES = \
1285 test_ellipsize_SOURCES = \
1286 src/test/test-ellipsize.c
1288 test_ellipsize_LDADD = \
1291 test_date_SOURCES = \
1292 src/test/test-date.c
1297 test_sleep_SOURCES = \
1298 src/test/test-sleep.c
1300 test_sleep_LDADD = \
1303 test_replace_var_SOURCES = \
1304 src/test/test-replace-var.c
1306 test_replace_var_LDADD = \
1307 libsystemd-shared.la
1309 test_calendarspec_SOURCES = \
1310 src/test/test-calendarspec.c
1312 test_calendarspec_LDADD = \
1313 libsystemd-shared.la
1315 test_strip_tab_ansi_SOURCES = \
1316 src/test/test-strip-tab-ansi.c
1318 test_strip_tab_ansi_LDADD = \
1319 libsystemd-shared.la
1321 test_daemon_SOURCES = \
1322 src/test/test-daemon.c
1324 test_daemon_LDADD = \
1325 libsystemd-shared.la \
1326 libsystemd-daemon.la
1328 test_cgroup_SOURCES = \
1329 src/test/test-cgroup.c
1331 test_cgroup_LDADD = \
1332 libsystemd-label.la \
1333 libsystemd-shared.la
1335 test_cgroup_util_SOURCES = \
1336 src/test/test-cgroup-util.c
1338 test_cgroup_util_LDADD = \
1339 libsystemd-label.la \
1340 libsystemd-shared.la \
1341 libsystemd-daemon.la
1343 test_env_replace_SOURCES = \
1344 src/test/test-env-replace.c
1346 test_env_replace_LDADD = \
1347 libsystemd-shared.la
1349 test_strbuf_SOURCES = \
1350 src/test/test-strbuf.c
1352 test_strbuf_LDADD = \
1353 libsystemd-shared.la
1355 test_strv_SOURCES = \
1356 src/test/test-strv.c
1359 libsystemd-shared.la \
1360 libsystemd-units.la \
1361 libsystemd-id128-internal.la
1363 test_path_util_SOURCES = \
1364 src/test/test-path-util.c
1366 test_path_util_LDADD = \
1367 libsystemd-shared.la
1369 test_strxcpyx_SOURCES = \
1370 src/test/test-strxcpyx.c
1372 test_strxcpyx_LDADD = \
1373 libsystemd-shared.la
1375 test_install_SOURCES = \
1376 src/test/test-install.c
1378 test_install_CFLAGS = \
1382 test_install_LDADD = \
1383 libsystemd-units.la \
1384 libsystemd-label.la \
1385 libsystemd-shared.la \
1386 libsystemd-id128-internal.la
1388 test_watchdog_SOURCES = \
1389 src/test/test-watchdog.c
1391 test_watchdog_LDADD = \
1392 libsystemd-shared.la
1394 test_sched_prio_SOURCES = \
1395 src/test/test-sched-prio.c
1397 test_sched_prio_CFLAGS = \
1400 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1402 test_sched_prio_LDADD = \
1403 libsystemd-core.la \
1404 libsystemd-daemon.la
1406 # ------------------------------------------------------------------------------
1407 ## .PHONY so it always rebuilds it
1408 .PHONY: coverage lcov-run lcov-report
1410 # run lcov from scratch, always
1415 coverage_dir = coverage
1416 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1419 # reset run coverage tests
1421 @rm -rf $(coverage_dir)
1422 lcov $(coverage_opts) --zerocounters
1425 # generate report based on current coverage data
1427 $(MKDIR_P) $(coverage_dir)
1428 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1429 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1430 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1431 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1433 # lcov doesn't work properly with vpath builds, make sure that bad
1434 # output is not uploaded by mistake.
1435 coverage-sync: coverage
1436 test "$(builddir)" = "$(srcdir)"
1437 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1440 lcov-run lcov-report:
1441 echo "Need to reconfigure with --enable-coverage"
1444 # ------------------------------------------------------------------------------
1445 systemd_analyze_SOURCES = \
1446 src/analyze/analyze.c
1448 systemd_analyze_CFLAGS = \
1452 systemd_analyze_LDADD = \
1453 libsystemd-shared.la \
1456 # ------------------------------------------------------------------------------
1457 systemd_initctl_SOURCES = \
1458 src/initctl/initctl.c
1460 systemd_initctl_CFLAGS = \
1464 systemd_initctl_LDADD = \
1465 libsystemd-shared.la \
1466 libsystemd-daemon.la \
1469 # ------------------------------------------------------------------------------
1470 systemd_update_utmp_SOURCES = \
1471 src/update-utmp/update-utmp.c
1473 systemd_update_utmp_CFLAGS = \
1478 systemd_update_utmp_LDADD = \
1479 libsystemd-shared.la \
1483 # ------------------------------------------------------------------------------
1484 systemd_shutdownd_SOURCES = \
1485 src/shutdownd/shutdownd.c
1487 systemd_shutdownd_LDADD = \
1488 libsystemd-label.la \
1489 libsystemd-shared.la \
1490 libsystemd-daemon.la
1492 pkginclude_HEADERS += \
1493 src/systemd/sd-shutdown.h
1495 # ------------------------------------------------------------------------------
1496 systemd_shutdown_SOURCES = \
1499 src/core/shutdown.c \
1500 src/core/mount-setup.c \
1501 src/core/mount-setup.h \
1502 src/core/killall.h \
1505 systemd_shutdown_LDADD = \
1506 libsystemd-label.la \
1507 libsystemd-shared.la \
1510 # ------------------------------------------------------------------------------
1512 systemd_modules_load_SOURCES = \
1513 src/modules-load/modules-load.c
1515 systemd_modules_load_CFLAGS = \
1519 systemd_modules_load_LDADD = \
1520 libsystemd-shared.la \
1523 rootlibexec_PROGRAMS += \
1524 systemd-modules-load
1526 nodist_systemunit_DATA += \
1527 units/systemd-modules-load.service
1529 SYSINIT_TARGET_WANTS += \
1530 systemd-modules-load.service
1533 nodist_systemunit_DATA += \
1534 units/kmod-static-nodes.service
1536 SYSINIT_TARGET_WANTS += \
1537 kmod-static-nodes.service
1542 units/systemd-modules-load.service.in \
1543 units/kmod-static-nodes.service.in
1545 # ------------------------------------------------------------------------------
1547 systemd_tmpfiles_SOURCES = \
1548 src/tmpfiles/tmpfiles.c \
1549 src/shared/specifier.c \
1550 src/shared/specifier.h
1552 systemd_tmpfiles_LDADD = \
1553 libsystemd-label.la \
1554 libsystemd-shared.la \
1555 libsystemd-capability.la \
1556 libsystemd-id128-internal.la
1558 rootbin_PROGRAMS += \
1561 dist_systemunit_DATA += \
1562 units/systemd-tmpfiles-clean.timer
1564 nodist_systemunit_DATA += \
1565 units/systemd-tmpfiles-setup-dev.service \
1566 units/systemd-tmpfiles-setup.service \
1567 units/systemd-tmpfiles-clean.service
1569 dist_tmpfiles_DATA = \
1570 tmpfiles.d/systemd.conf \
1571 tmpfiles.d/tmp.conf \
1575 dist_tmpfiles_DATA += \
1576 tmpfiles.d/legacy.conf
1579 SYSINIT_TARGET_WANTS += \
1580 systemd-tmpfiles-setup-dev.service \
1581 systemd-tmpfiles-setup.service
1583 dist_zshcompletion_DATA += \
1584 shell-completion/zsh/_systemd-tmpfiles
1586 TIMERS_TARGET_WANTS += \
1587 systemd-tmpfiles-clean.timer
1591 $(sysconfdir)/tmpfiles.d
1595 units/systemd-tmpfiles-setup-dev.service.in \
1596 units/systemd-tmpfiles-setup.service.in \
1597 units/systemd-tmpfiles-clean.service.in
1599 # ------------------------------------------------------------------------------
1600 systemd_machine_id_setup_SOURCES = \
1601 src/machine-id-setup/machine-id-setup-main.c \
1602 src/core/machine-id-setup.c \
1603 src/core/machine-id-setup.h
1605 systemd_machine_id_setup_LDADD = \
1606 libsystemd-label.la \
1607 libsystemd-shared.la \
1608 libsystemd-id128-internal.la
1610 # ------------------------------------------------------------------------------
1611 systemd_sysctl_SOURCES = \
1614 systemd_sysctl_LDADD = \
1615 libsystemd-shared.la
1617 # ------------------------------------------------------------------------------
1618 systemd_sleep_SOURCES = \
1621 systemd_sleep_LDADD = \
1622 libsystemd-shared.la
1624 # ------------------------------------------------------------------------------
1625 systemd_fsck_SOURCES = \
1628 systemd_fsck_CFLAGS = \
1632 systemd_fsck_LDADD = \
1633 libsystemd-shared.la \
1637 # ------------------------------------------------------------------------------
1638 systemd_ac_power_SOURCES = \
1639 src/ac-power/ac-power.c
1641 systemd_ac_power_LDADD = \
1642 libsystemd-shared.la \
1645 # ------------------------------------------------------------------------------
1646 systemd_detect_virt_SOURCES = \
1647 src/detect-virt/detect-virt.c
1649 systemd_detect_virt_LDADD = \
1650 libsystemd-shared.la
1652 systemd-detect-virt-install-hook:
1653 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1655 INSTALL_EXEC_HOOKS += \
1656 systemd-detect-virt-install-hook
1658 # ------------------------------------------------------------------------------
1659 systemd_delta_SOURCES = \
1662 systemd_delta_LDADD = \
1663 libsystemd-shared.la
1665 # ------------------------------------------------------------------------------
1666 systemd_getty_generator_SOURCES = \
1667 src/getty-generator/getty-generator.c
1669 systemd_getty_generator_LDADD = \
1670 libsystemd-label.la \
1671 libsystemd-shared.la
1673 # ------------------------------------------------------------------------------
1674 systemd_fstab_generator_SOURCES = \
1675 src/fstab-generator/fstab-generator.c \
1676 src/core/mount-setup.c
1678 systemd_fstab_generator_LDADD = \
1679 libsystemd-label.la \
1680 libsystemd-shared.la
1682 # ------------------------------------------------------------------------------
1683 systemd_system_update_generator_SOURCES = \
1684 src/system-update-generator/system-update-generator.c
1686 systemd_system_update_generator_LDADD = \
1687 libsystemd-label.la \
1688 libsystemd-shared.la
1691 # ------------------------------------------------------------------------------
1692 systemgenerator_PROGRAMS += \
1693 systemd-efi-boot-generator
1695 systemd_efi_boot_generator_SOURCES = \
1696 src/efi-boot-generator/efi-boot-generator.c
1698 systemd_efi_boot_generator_LDADD = \
1699 libsystemd-label.la \
1700 libsystemd-shared.la
1702 # ------------------------------------------------------------------------------
1705 src/boot/boot-loader.h \
1706 src/boot/bootctl.c \
1707 src/boot/boot-loader.c \
1711 libsystemd-shared.la \
1712 libsystemd-id128.la \
1713 libsystemd-daemon.la
1719 # ------------------------------------------------------------------------------
1721 systemgenerator_PROGRAMS += \
1722 systemd-gpt-auto-generator
1724 systemd_gpt_auto_generator_SOURCES = \
1725 src/gpt-auto-generator/gpt-auto-generator.c
1727 systemd_gpt_auto_generator_LDADD = \
1728 libsystemd-label.la \
1729 libsystemd-shared.la \
1730 libsystemd-id128-internal.la \
1731 libudev-private.la \
1734 systemd_gpt_auto_generator_CFLAGS = \
1739 # ------------------------------------------------------------------------------
1740 systemd_rc_local_generator_SOURCES = \
1741 src/rc-local-generator/rc-local-generator.c
1743 systemd_rc_local_generator_LDADD = \
1744 libsystemd-label.la \
1745 libsystemd-shared.la
1747 # ------------------------------------------------------------------------------
1748 systemd_remount_fs_SOURCES = \
1749 src/remount-fs/remount-fs.c \
1750 src/core/mount-setup.c \
1751 src/core/mount-setup.h
1753 systemd_remount_fs_LDADD = \
1754 libsystemd-label.la \
1755 libsystemd-shared.la
1757 # ------------------------------------------------------------------------------
1758 systemd_cgroups_agent_SOURCES = \
1759 src/cgroups-agent/cgroups-agent.c
1761 systemd_cgroups_agent_LDADD = \
1762 libsystemd-shared.la \
1765 # ------------------------------------------------------------------------------
1766 systemctl_SOURCES = \
1767 src/systemctl/systemctl.c
1769 systemctl_CFLAGS = \
1774 libsystemd-units.la \
1775 libsystemd-label.la \
1776 libsystemd-shared.la \
1777 libsystemd-daemon.la \
1778 libsystemd-dbus.la \
1781 # ------------------------------------------------------------------------------
1782 systemd_notify_SOURCES = \
1783 src/notify/notify.c \
1784 src/readahead/sd-readahead.c
1786 systemd_notify_LDADD = \
1787 libsystemd-shared.la \
1788 libsystemd-daemon.la
1790 # ------------------------------------------------------------------------------
1791 systemd_ask_password_SOURCES = \
1792 src/ask-password/ask-password.c
1794 systemd_ask_password_LDADD = \
1795 libsystemd-label.la \
1796 libsystemd-shared.la
1798 # ------------------------------------------------------------------------------
1799 systemd_reply_password_SOURCES = \
1800 src/reply-password/reply-password.c
1802 systemd_reply_password_LDADD = \
1803 libsystemd-shared.la
1805 # ------------------------------------------------------------------------------
1806 systemd_cgls_SOURCES = \
1809 systemd_cgls_LDADD = \
1810 libsystemd-shared.la
1812 # ------------------------------------------------------------------------------
1813 systemd_cgtop_SOURCES = \
1816 systemd_cgtop_LDADD = \
1817 libsystemd-shared.la
1819 # ------------------------------------------------------------------------------
1820 systemd_nspawn_SOURCES = \
1821 src/nspawn/nspawn.c \
1822 src/core/mount-setup.c \
1823 src/core/mount-setup.h \
1824 src/core/loopback-setup.c \
1825 src/core/loopback-setup.h
1827 systemd_nspawn_LDADD = \
1828 libsystemd-label.la \
1829 libsystemd-capability.la \
1830 libsystemd-shared.la \
1831 libsystemd-daemon.la \
1832 libsystemd-id128-internal.la \
1835 # ------------------------------------------------------------------------------
1836 systemd_run_SOURCES = \
1839 systemd_run_LDADD = \
1840 libsystemd-label.la \
1841 libsystemd-capability.la \
1842 libsystemd-shared.la \
1843 libsystemd-daemon.la \
1844 libsystemd-id128-internal.la \
1847 # ------------------------------------------------------------------------------
1848 systemd_stdio_bridge_SOURCES = \
1849 src/stdio-bridge/stdio-bridge.c
1851 systemd_stdio_bridge_LDADD = \
1852 libsystemd-shared.la \
1854 libsystemd-daemon.la
1856 # ------------------------------------------------------------------------------
1857 systemd_tty_ask_password_agent_SOURCES = \
1858 src/tty-ask-password-agent/tty-ask-password-agent.c
1860 systemd_tty_ask_password_agent_LDADD = \
1861 libsystemd-label.la \
1862 libsystemd-shared.la
1864 # ------------------------------------------------------------------------------
1865 libsystemd_daemon_la_SOURCES = \
1866 src/libsystemd-daemon/sd-daemon.c
1868 libsystemd_daemon_internal_la_SOURCES = \
1869 $(libsystemd_daemon_la_SOURCES)
1871 libsystemd_daemon_la_CFLAGS = \
1873 -fvisibility=hidden \
1876 libsystemd_daemon_la_LDFLAGS = \
1878 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1879 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1881 libsystemd_daemon_la_LIBADD = \
1884 pkginclude_HEADERS += \
1885 src/systemd/sd-daemon.h
1887 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1888 libsystemd-daemon-install-hook:
1889 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1891 libsystemd-daemon-uninstall-hook:
1892 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1894 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1895 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1897 lib_LTLIBRARIES += \
1898 libsystemd-daemon.la
1900 noinst_LTLIBRARIES += \
1901 libsystemd-daemon-internal.la
1903 pkgconfiglib_DATA += \
1904 src/libsystemd-daemon/libsystemd-daemon.pc
1907 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1908 src/libsystemd-daemon/libsystemd-daemon.sym
1910 # ------------------------------------------------------------------------------
1911 libsystemd_bus_la_SOURCES = \
1912 src/systemd/sd-bus.h \
1913 src/systemd/sd-bus-protocol.h \
1914 src/systemd/sd-bus-vtable.h \
1915 src/systemd/sd-memfd.h \
1916 src/systemd/sd-event.h \
1917 src/libsystemd-bus/sd-bus.c \
1918 src/libsystemd-bus/bus-control.c \
1919 src/libsystemd-bus/bus-control.h \
1920 src/libsystemd-bus/bus-error.c \
1921 src/libsystemd-bus/bus-error.h \
1922 src/libsystemd-bus/bus-internal.c \
1923 src/libsystemd-bus/bus-internal.h \
1924 src/libsystemd-bus/bus-socket.c \
1925 src/libsystemd-bus/bus-socket.h \
1926 src/libsystemd-bus/bus-kernel.c \
1927 src/libsystemd-bus/bus-kernel.h \
1928 src/libsystemd-bus/bus-message.c \
1929 src/libsystemd-bus/bus-message.h \
1930 src/libsystemd-bus/bus-signature.c \
1931 src/libsystemd-bus/bus-signature.h \
1932 src/libsystemd-bus/bus-type.c \
1933 src/libsystemd-bus/bus-type.h \
1934 src/libsystemd-bus/bus-match.c \
1935 src/libsystemd-bus/bus-match.h \
1936 src/libsystemd-bus/bus-bloom.c \
1937 src/libsystemd-bus/bus-bloom.h \
1938 src/libsystemd-bus/bus-introspect.c \
1939 src/libsystemd-bus/bus-introspect.h \
1940 src/libsystemd-bus/bus-objects.c \
1941 src/libsystemd-bus/bus-objects.h \
1942 src/libsystemd-bus/bus-convenience.c \
1943 src/libsystemd-bus/kdbus.h \
1944 src/libsystemd-bus/sd-memfd.c \
1945 src/libsystemd-bus/sd-event.c \
1946 src/libsystemd-bus/bus-util.c \
1947 src/libsystemd-bus/bus-util.h \
1948 src/libsystemd-bus/event-util.h
1950 libsystemd_bus_la_LIBADD = \
1951 libsystemd-id128-internal.la \
1952 libsystemd-shared.la \
1953 libsystemd-daemon.la
1955 libsystemd_bus_la_CFLAGS = \
1959 noinst_LTLIBRARIES += \
1964 test-bus-signature \
1969 test-bus-kernel-bloom \
1970 test-bus-kernel-benchmark \
1972 test-bus-zero-copy \
1973 test-bus-introspect \
1977 noinst_PROGRAMS += \
1980 test_bus_marshal_SOURCES = \
1981 src/libsystemd-bus/test-bus-marshal.c
1983 test_bus_marshal_LDADD = \
1984 libsystemd-shared.la \
1989 test_bus_marshal_CFLAGS = \
1994 test_bus_signature_SOURCES = \
1995 src/libsystemd-bus/test-bus-signature.c
1997 test_bus_signature_LDADD = \
1998 libsystemd-shared.la \
2001 test_bus_chat_SOURCES = \
2002 src/libsystemd-bus/test-bus-chat.c
2004 test_bus_chat_CFLAGS = \
2008 test_bus_chat_LDADD = \
2009 libsystemd-shared.la \
2011 libsystemd-id128-internal.la
2013 test_bus_server_SOURCES = \
2014 src/libsystemd-bus/test-bus-server.c
2016 test_bus_server_CFLAGS = \
2020 test_bus_server_LDADD = \
2021 libsystemd-shared.la \
2023 libsystemd-id128-internal.la
2025 test_bus_objects_SOURCES = \
2026 src/libsystemd-bus/test-bus-objects.c
2028 test_bus_objects_CFLAGS = \
2032 test_bus_objects_LDADD = \
2033 libsystemd-shared.la \
2035 libsystemd-id128-internal.la
2037 test_bus_match_SOURCES = \
2038 src/libsystemd-bus/test-bus-match.c
2040 test_bus_match_LDADD = \
2041 libsystemd-shared.la \
2043 libsystemd-id128-internal.la
2045 test_bus_kernel_SOURCES = \
2046 src/libsystemd-bus/test-bus-kernel.c
2048 test_bus_kernel_LDADD = \
2049 libsystemd-shared.la \
2051 libsystemd-id128-internal.la
2053 test_bus_kernel_bloom_SOURCES = \
2054 src/libsystemd-bus/test-bus-kernel-bloom.c
2056 test_bus_kernel_bloom_LDADD = \
2057 libsystemd-shared.la \
2059 libsystemd-id128-internal.la
2061 test_bus_kernel_benchmark_SOURCES = \
2062 src/libsystemd-bus/test-bus-kernel-benchmark.c
2064 test_bus_kernel_benchmark_LDADD = \
2065 libsystemd-shared.la \
2067 libsystemd-id128-internal.la
2069 test_bus_memfd_SOURCES = \
2070 src/libsystemd-bus/test-bus-memfd.c
2072 test_bus_memfd_LDADD = \
2073 libsystemd-shared.la \
2076 test_bus_zero_copy_SOURCES = \
2077 src/libsystemd-bus/test-bus-zero-copy.c
2079 test_bus_zero_copy_LDADD = \
2080 libsystemd-shared.la \
2083 test_bus_introspect_SOURCES = \
2084 src/libsystemd-bus/test-bus-introspect.c
2086 test_bus_introspect_LDADD = \
2087 libsystemd-shared.la \
2090 test_event_SOURCES = \
2091 src/libsystemd-bus/test-event.c
2093 test_event_LDADD = \
2094 libsystemd-shared.la \
2096 libsystemd-id128-internal.la
2099 src/libsystemd-bus/busctl.c
2102 libsystemd-shared.la \
2105 # ------------------------------------------------------------------------------
2115 include_HEADERS += \
2116 src/libudev/libudev.h
2118 lib_LTLIBRARIES += \
2121 libudev_la_SOURCES =\
2122 src/libudev/libudev-private.h \
2123 src/libudev/libudev.c \
2124 src/libudev/libudev-list.c \
2125 src/libudev/libudev-util.c \
2126 src/libudev/libudev-device.c \
2127 src/libudev/libudev-enumerate.c \
2128 src/libudev/libudev-monitor.c \
2129 src/libudev/libudev-queue.c \
2130 src/libudev/libudev-hwdb-def.h \
2131 src/libudev/libudev-hwdb.c
2133 libudev_la_CFLAGS = \
2137 libudev_la_LDFLAGS = \
2139 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2140 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2142 libudev_la_LIBADD = \
2143 libsystemd-shared.la \
2144 libsystemd-daemon-internal.la \
2145 libsystemd-id128-internal.la
2147 pkgconfiglib_DATA += \
2148 src/libudev/libudev.pc
2151 src/libudev/libudev.pc.in \
2152 src/libudev/libudev.sym
2155 src/libudev/libudev.pc \
2160 $(AM_V_at)$(MKDIR_P) $(dir $@)
2161 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2164 $(AM_V_at)$(MKDIR_P) $(dir $@)
2165 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2167 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2168 libudev-install-hook:
2169 libname=libudev.so && $(move-to-rootlibdir)
2171 libudev-uninstall-hook:
2172 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2174 INSTALL_EXEC_HOOKS += libudev-install-hook
2175 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2177 # ------------------------------------------------------------------------------
2178 noinst_LTLIBRARIES += \
2181 libudev_private_la_SOURCES =\
2182 $(libudev_la_SOURCES) \
2183 src/libudev/libudev-device-private.c \
2184 src/libudev/libudev-queue-private.c
2186 libudev_private_la_CFLAGS = \
2188 -fvisibility=default
2190 libudev_private_la_LIBADD = \
2191 libsystemd-shared.la
2193 # ------------------------------------------------------------------------------
2195 $(sysconfdir)/udev/rules.d \
2196 $(sysconfdir)/udev/hwdb.d
2198 dist_udevrules_DATA += \
2199 rules/99-systemd.rules \
2200 rules/42-usb-hid-pm.rules \
2201 rules/50-udev-default.rules \
2202 rules/60-keyboard.rules \
2203 rules/60-persistent-storage-tape.rules \
2204 rules/60-persistent-serial.rules \
2205 rules/60-persistent-input.rules \
2206 rules/60-persistent-alsa.rules \
2207 rules/60-persistent-storage.rules \
2208 rules/64-btrfs.rules \
2209 rules/75-net-description.rules \
2210 rules/75-tty-description.rules \
2211 rules/78-sound-card.rules \
2212 rules/80-net-name-slot.rules \
2213 rules/85-net-configure-link.rules \
2214 rules/95-udev-late.rules
2216 dist_udevhwdb_DATA = \
2217 hwdb/20-pci-vendor-model.hwdb \
2218 hwdb/20-pci-classes.hwdb \
2219 hwdb/20-usb-vendor-model.hwdb \
2220 hwdb/20-usb-classes.hwdb \
2221 hwdb/20-bluetooth-vendor-product.hwdb \
2222 hwdb/20-acpi-vendor.hwdb \
2224 hwdb/60-keyboard.hwdb
2226 udevconfdir = $(sysconfdir)/udev
2227 dist_udevconf_DATA = \
2230 sharepkgconfigdir = $(datadir)/pkgconfig
2231 sharepkgconfig_DATA = \
2235 rules/99-systemd.rules.in \
2239 rules/99-systemd.rules \
2243 units/systemd-udevd.service.in \
2244 units/systemd-udev-trigger.service.in \
2245 units/systemd-udev-settle.service.in
2248 units/systemd-udevd.service \
2249 units/systemd-udev-trigger.service \
2250 units/systemd-udev-settle.service
2252 SOCKETS_TARGET_WANTS += \
2253 systemd-udevd-control.socket \
2254 systemd-udevd-kernel.socket
2255 SYSINIT_TARGET_WANTS += \
2256 systemd-udevd.service \
2257 systemd-udev-trigger.service
2259 rootbin_PROGRAMS += \
2262 rootlibexec_PROGRAMS += \
2265 noinst_LTLIBRARIES += \
2268 src/udev/keyboard-keys.txt: Makefile
2269 $(AM_V_at)$(MKDIR_P) $(dir $@)
2270 $(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/' > $@
2272 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2273 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2275 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2276 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2278 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2279 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2281 libudev_core_la_SOURCES = \
2283 src/udev/udev-event.c \
2284 src/udev/udev-watch.c \
2285 src/udev/udev-node.c \
2286 src/udev/udev-rules.c \
2287 src/udev/udev-ctrl.c \
2288 src/udev/udev-builtin.c \
2289 src/udev/udev-builtin-btrfs.c \
2290 src/udev/udev-builtin-hwdb.c \
2291 src/udev/udev-builtin-input_id.c \
2292 src/udev/udev-builtin-keyboard.c \
2293 src/udev/udev-builtin-net_id.c \
2294 src/udev/udev-builtin-net_link.c \
2295 src/udev/udev-builtin-path_id.c \
2296 src/udev/udev-builtin-usb_id.c \
2297 src/udev/net/link-config.h \
2298 src/udev/net/link-config.c
2300 nodist_libudev_core_la_SOURCES = \
2301 src/udev/keyboard-keys-from-name.h \
2302 src/udev/keyboard-keys-to-name.h \
2303 src/udev/net/link-config-gperf.c
2306 $(nodist_libudev_core_la_SOURCES)
2309 src/udev/keyboard-keys-from-name.gperf \
2310 src/udev/keyboard-keys.txt \
2311 src/udev/net/link-config-gperf.c
2314 src/udev/net/link-config-gperf.gperf
2316 libudev_core_la_CFLAGS = \
2321 libudev_core_la_LIBADD = \
2322 libudev-private.la \
2323 libsystemd-label.la \
2324 libsystemd-daemon-internal.la \
2325 libsystemd-shared.la \
2329 libudev_core_la_CPPFLAGS = \
2331 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2334 libudev_core_la_SOURCES += \
2335 src/udev/udev-builtin-firmware.c
2337 dist_udevrules_DATA += \
2338 rules/50-firmware.rules
2342 libudev_core_la_SOURCES += \
2343 src/udev/udev-builtin-kmod.c
2345 dist_udevrules_DATA += \
2346 rules/80-drivers.rules
2350 libudev_core_la_SOURCES += \
2351 src/udev/udev-builtin-blkid.c
2355 libudev_core_la_SOURCES += \
2356 src/udev/udev-builtin-uaccess.c \
2357 src/login/logind-acl.c \
2358 src/login/sd-login.c \
2359 src/systemd/sd-login.h \
2360 src/login/login-shared.c \
2361 src/login/login-shared.h
2363 libudev_core_la_LIBADD += \
2367 systemd_udevd_SOURCES = \
2370 systemd_udevd_LDADD = \
2374 src/udev/udevadm.c \
2375 src/udev/udevadm-info.c \
2376 src/udev/udevadm-control.c \
2377 src/udev/udevadm-monitor.c \
2378 src/udev/udevadm-hwdb.c \
2379 src/udev/udevadm-settle.c \
2380 src/udev/udevadm-trigger.c \
2381 src/udev/udevadm-test.c \
2382 src/udev/udevadm-test-builtin.c
2386 libsystemd-label.la \
2387 libsystemd-shared.la
2389 # Update hwdb on installation. Do not bother if installing
2390 # in DESTDIR, since this is likely for packaging purposes.
2392 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2394 INSTALL_DATA_HOOKS += \
2398 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2400 # ------------------------------------------------------------------------------
2409 test_libudev_SOURCES = \
2410 src/test/test-libudev.c
2412 test_libudev_LDADD = \
2413 libsystemd-label.la \
2414 libsystemd-shared.la \
2417 test_udev_SOURCES = \
2418 src/test/test-udev.c
2422 libsystemd-shared.la \
2428 test_udev_LDADD += \
2435 # packed sysfs test tree
2437 $(AM_V_at)$(MKDIR_P) $(dir $@)
2438 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2442 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2447 test/rules-test.sh \
2448 test/rule-syntax-check.py
2450 # ------------------------------------------------------------------------------
2452 src/udev/ata_id/ata_id.c
2455 libudev-private.la \
2456 libsystemd-shared.la
2458 udevlibexec_PROGRAMS += \
2461 # ------------------------------------------------------------------------------
2462 cdrom_id_SOURCES = \
2463 src/udev/cdrom_id/cdrom_id.c
2467 libsystemd-shared.la
2469 udevlibexec_PROGRAMS += \
2472 dist_udevrules_DATA += \
2473 rules/60-cdrom_id.rules
2475 # ------------------------------------------------------------------------------
2477 src/udev/collect/collect.c
2482 udevlibexec_PROGRAMS += \
2485 # ------------------------------------------------------------------------------
2487 src/udev/scsi_id/scsi_id.c \
2488 src/udev/scsi_id/scsi_serial.c \
2489 src/udev/scsi_id/scsi.h \
2490 src/udev/scsi_id/scsi_id.h
2493 libudev-private.la \
2494 libsystemd-shared.la
2496 udevlibexec_PROGRAMS += \
2500 src/udev/scsi_id/README
2502 # ------------------------------------------------------------------------------
2504 src/udev/v4l_id/v4l_id.c
2509 udevlibexec_PROGRAMS += \
2512 dist_udevrules_DATA += \
2513 rules/60-persistent-v4l.rules
2515 # ------------------------------------------------------------------------------
2516 accelerometer_SOURCES = \
2517 src/udev/accelerometer/accelerometer.c
2519 accelerometer_LDADD = \
2521 libsystemd-shared.la
2523 udevlibexec_PROGRAMS += \
2526 dist_udevrules_DATA += \
2527 rules/61-accelerometer.rules
2529 # ------------------------------------------------------------------------------
2536 libgudev_includedir = \
2537 $(includedir)/gudev-1.0/gudev
2539 libgudev_include_HEADERS = \
2541 src/gudev/gudevenums.h \
2542 src/gudev/gudevenumtypes.h \
2543 src/gudev/gudevtypes.h \
2544 src/gudev/gudevclient.h \
2545 src/gudev/gudevdevice.h \
2546 src/gudev/gudevenumerator.h
2548 lib_LTLIBRARIES += libgudev-1.0.la
2550 pkgconfiglib_DATA += \
2551 src/gudev/gudev-1.0.pc
2554 src/gudev/gudev-1.0.pc
2556 libgudev_1_0_la_SOURCES = \
2557 src/gudev/gudevenums.h \
2558 src/gudev/gudevenumtypes.h \
2559 src/gudev/gudevenumtypes.h\
2560 src/gudev/gudevtypes.h \
2561 src/gudev/gudevclient.h \
2562 src/gudev/gudevclient.c \
2563 src/gudev/gudevdevice.h \
2564 src/gudev/gudevdevice.c \
2565 src/gudev/gudevenumerator.h \
2566 src/gudev/gudevenumerator.c \
2567 src/gudev/gudevprivate.h
2569 nodist_libgudev_1_0_la_SOURCES = \
2570 src/gudev/gudevmarshal.h \
2571 src/gudev/gudevmarshal.c \
2572 src/gudev/gudevenumtypes.h \
2573 src/gudev/gudevenumtypes.c
2576 $(nodist_libgudev_1_0_la_SOURCES)
2578 libgudev_1_0_la_CPPFLAGS = \
2580 -I$(top_builddir)/src\
2581 -I$(top_srcdir)/src\
2582 -I$(top_builddir)/src/gudev \
2583 -I$(top_srcdir)/src/gudev \
2584 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2585 -D_GUDEV_COMPILATION \
2586 -DG_LOG_DOMAIN=\"GUdev\"
2588 libgudev_1_0_la_CFLAGS = \
2590 -fvisibility=default \
2593 libgudev_1_0_la_LIBADD = \
2597 libgudev_1_0_la_LDFLAGS = \
2599 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2600 -export-dynamic -no-undefined \
2601 -export-symbols-regex '^g_udev_.*'
2603 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2604 $(AM_V_at)$(MKDIR_P) $(dir $@)
2605 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2607 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2608 $(AM_V_at)$(MKDIR_P) $(dir $@)
2609 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2610 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2612 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2613 $(AM_V_at)$(MKDIR_P) $(dir $@)
2614 $(AM_V_GEN)glib-mkenums --template $^ > $@
2616 if HAVE_INTROSPECTION
2617 -include $(INTROSPECTION_MAKEFILE)
2619 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2621 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2623 src_gudev_GUdev_1_0_gir_CFLAGS = \
2626 -D_GUDEV_COMPILATION \
2627 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2628 -I$(top_srcdir)/src \
2629 -I$(top_builddir)/src \
2630 -I$(top_srcdir)/src/gudev \
2631 -I$(top_builddir)/src/gudev
2633 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2635 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2636 --pkg-export=gudev-1.0 \
2639 src_gudev_GUdev_1_0_gir_FILES = \
2641 src/gudev/gudevtypes.h \
2642 src/gudev/gudevenums.h \
2643 src/gudev/gudevenumtypes.h \
2644 src/gudev/gudevclient.h \
2645 src/gudev/gudevdevice.h \
2646 src/gudev/gudevenumerator.h \
2647 src/gudev/gudevclient.c \
2648 src/gudev/gudevdevice.c \
2649 src/gudev/gudevenumerator.c
2651 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2652 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2654 girdir = $(datadir)/gir-1.0
2656 src/gudev/GUdev-1.0.gir
2658 typelibsdir = $(libdir)/girepository-1.0
2660 src/gudev/GUdev-1.0.typelib
2662 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2663 endif # HAVE_INTROSPECTION
2665 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2666 libgudev-install-hook:
2667 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2669 libgudev-uninstall-hook:
2670 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2672 INSTALL_EXEC_HOOKS += libgudev-install-hook
2673 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2677 src/gudev/gudev-1.0.pc.in \
2678 src/gudev/gudevmarshal.list \
2679 src/gudev/gudevenumtypes.h.template \
2680 src/gudev/gudevenumtypes.c.template \
2681 src/gudev/gjs-example.js \
2682 src/gudev/seed-example-enum.js \
2683 src/gudev/seed-example.js
2685 # ------------------------------------------------------------------------------
2686 mtd_probe_SOURCES = \
2687 src/udev/mtd_probe/mtd_probe.c \
2688 src/udev/mtd_probe/mtd_probe.h \
2689 src/udev/mtd_probe/probe_smartmedia.c
2691 mtd_probe_CPPFLAGS = \
2694 dist_udevrules_DATA += \
2695 rules/75-probe_mtd.rules
2697 udevlibexec_PROGRAMS += \
2700 # ------------------------------------------------------------------------------
2701 libsystemd_id128_la_SOURCES = \
2702 src/libsystemd-id128/sd-id128.c
2704 libsystemd_id128_la_CFLAGS = \
2708 libsystemd_id128_la_LDFLAGS = \
2710 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2711 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2713 libsystemd_id128_la_LIBADD = \
2714 libsystemd-shared.la
2716 libsystemd_id128_internal_la_SOURCES = \
2717 $(libsystemd_id128_la_SOURCES)
2719 test_id128_SOURCES = \
2720 src/test/test-id128.c
2722 test_id128_LDADD = \
2723 libsystemd-shared.la \
2724 libsystemd-id128-internal.la \
2725 libsystemd-daemon.la
2730 pkginclude_HEADERS += \
2731 src/systemd/sd-id128.h
2733 lib_LTLIBRARIES += \
2736 noinst_LTLIBRARIES += \
2737 libsystemd-id128-internal.la
2739 pkgconfiglib_DATA += \
2740 src/libsystemd-id128/libsystemd-id128.pc
2742 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2743 libsystemd-id128-install-hook:
2744 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2746 libsystemd-id128-uninstall-hook:
2747 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2749 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2750 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2753 src/libsystemd-id128/libsystemd-id128.pc.in \
2754 src/libsystemd-id128/libsystemd-id128.sym
2756 # ------------------------------------------------------------------------------
2758 rootlibexec_PROGRAMS += \
2761 systemd_activate_SOURCES = \
2762 src/activate/activate.c
2764 systemd_activate_LDADD = \
2765 libsystemd-shared.la \
2766 libsystemd-daemon.la
2768 # ------------------------------------------------------------------------------
2769 systemd_journald_SOURCES = \
2770 src/journal/journald.c \
2771 src/journal/journald-server.h
2773 systemd_journald_LDADD = \
2774 libsystemd-journal-internal.la \
2775 libsystemd-shared.la \
2776 libsystemd-id128-internal.la
2778 systemd_cat_SOURCES = \
2781 systemd_cat_LDADD = \
2782 libsystemd-shared.la \
2783 libsystemd-journal-internal.la
2785 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2786 journalctl_CFLAGS = \
2789 journalctl_SOURCES = \
2790 src/journal/journalctl.c
2792 journalctl_LDADD = \
2793 libsystemd-shared.la \
2794 libsystemd-journal-internal.la \
2795 libsystemd-id128-internal.la \
2799 journalctl_LDADD += \
2804 journalctl_SOURCES += \
2805 src/journal/journal-qrcode.c \
2806 src/journal/journal-qrcode.h
2808 journalctl_CFLAGS += \
2811 journalctl_LDADD += \
2815 test_journal_SOURCES = \
2816 src/journal/test-journal.c
2818 test_journal_LDADD = \
2819 libsystemd-shared.la \
2820 libsystemd-journal-internal.la \
2821 libsystemd-id128-internal.la
2823 test_journal_send_SOURCES = \
2824 src/journal/test-journal-send.c
2826 test_journal_send_LDADD = \
2827 libsystemd-shared.la \
2828 libsystemd-journal-internal.la \
2829 libsystemd-id128-internal.la
2831 test_journal_syslog_SOURCES = \
2832 src/journal/test-journal-syslog.c
2834 test_journal_syslog_LDADD = \
2835 libsystemd-journal-internal.la \
2836 libsystemd-shared.la \
2837 libsystemd-id128-internal.la
2839 test_journal_match_SOURCES = \
2840 src/journal/test-journal-match.c
2842 test_journal_match_LDADD = \
2843 libsystemd-shared.la \
2844 libsystemd-journal-internal.la \
2845 libsystemd-id128-internal.la
2847 test_journal_enum_SOURCES = \
2848 src/journal/test-journal-enum.c
2850 test_journal_enum_LDADD = \
2851 libsystemd-shared.la \
2852 libsystemd-journal-internal.la \
2853 libsystemd-id128-internal.la
2855 test_journal_stream_SOURCES = \
2856 src/journal/test-journal-stream.c
2858 test_journal_stream_LDADD = \
2859 libsystemd-shared.la \
2860 libsystemd-journal-internal.la \
2861 libsystemd-id128-internal.la
2863 test_journal_init_SOURCES = \
2864 src/journal/test-journal-init.c
2866 test_journal_init_LDADD = \
2867 libsystemd-shared.la \
2868 libsystemd-daemon-internal.la \
2870 libsystemd-journal.la
2872 test_journal_verify_SOURCES = \
2873 src/journal/test-journal-verify.c
2875 test_journal_verify_LDADD = \
2876 libsystemd-shared.la \
2877 libsystemd-journal-internal.la \
2878 libsystemd-id128-internal.la
2880 test_journal_interleaving_SOURCES = \
2881 src/journal/test-journal-interleaving.c
2883 test_journal_interleaving_LDADD = \
2884 libsystemd-shared.la \
2885 libsystemd-journal-internal.la \
2886 libsystemd-id128-internal.la
2888 test_mmap_cache_SOURCES = \
2889 src/journal/test-mmap-cache.c
2891 test_mmap_cache_LDADD = \
2892 libsystemd-shared.la \
2893 libsystemd-journal-internal.la
2895 test_catalog_SOURCES = \
2896 src/journal/test-catalog.c
2898 test_catalog_CFLAGS = \
2900 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
2902 test_catalog_LDADD = \
2903 libsystemd-shared.la \
2904 libsystemd-label.la \
2905 libsystemd-journal-internal.la \
2906 libsystemd-id128-internal.la
2908 libsystemd_journal_la_SOURCES = \
2909 src/journal/sd-journal.c \
2910 src/systemd/sd-journal.h \
2911 src/systemd/_sd-common.h \
2912 src/journal/journal-file.c \
2913 src/journal/journal-file.h \
2914 src/journal/journal-vacuum.c \
2915 src/journal/journal-vacuum.h \
2916 src/journal/journal-verify.c \
2917 src/journal/journal-verify.h \
2918 src/journal/lookup3.c \
2919 src/journal/lookup3.h \
2920 src/journal/journal-send.c \
2921 src/journal/journal-def.h \
2922 src/journal/compress.h \
2923 src/journal/catalog.c \
2924 src/journal/catalog.h \
2925 src/journal/mmap-cache.c \
2926 src/journal/mmap-cache.h
2928 libsystemd_journal_la_CFLAGS = \
2932 libsystemd_journal_la_LDFLAGS = \
2934 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2935 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2937 libsystemd_journal_la_LIBADD = \
2938 libsystemd-shared.la \
2939 libsystemd-label.la \
2940 libsystemd-daemon-internal.la \
2942 libsystemd-id128-internal.la
2944 libsystemd_journal_internal_la_SOURCES = \
2945 $(libsystemd_journal_la_SOURCES) \
2946 src/journal/journald-kmsg.c \
2947 src/journal/journald-kmsg.h \
2948 src/journal/journald-syslog.c \
2949 src/journal/journald-syslog.h \
2950 src/journal/journald-stream.c \
2951 src/journal/journald-stream.h \
2952 src/journal/journald-server.c \
2953 src/journal/journald-server.h \
2954 src/journal/journald-console.c \
2955 src/journal/journald-console.h \
2956 src/journal/journald-native.c \
2957 src/journal/journald-native.h \
2958 src/journal/journald-rate-limit.c \
2959 src/journal/journald-rate-limit.h \
2960 src/journal/journal-internal.h
2962 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2963 libsystemd_journal_internal_la_CFLAGS = \
2966 libsystemd_journal_internal_la_LIBADD = \
2967 libsystemd-audit.la \
2968 libsystemd-daemon.la \
2970 libsystemd-shared.la \
2973 nodist_libsystemd_journal_internal_la_SOURCES = \
2974 src/journal/journald-gperf.c
2977 libsystemd_journal_internal_la_LIBADD += \
2978 libsystemd-login-internal.la
2982 libsystemd_journal_internal_la_LIBADD += \
2987 libsystemd_journal_la_SOURCES += \
2988 src/journal/compress.c
2990 libsystemd_journal_la_CFLAGS += \
2993 libsystemd_journal_la_LIBADD += \
2996 libsystemd_journal_internal_la_CFLAGS += \
2999 libsystemd_journal_internal_la_LIBADD += \
3005 libsystemd_journal_la_SOURCES += \
3006 src/journal/journal-authenticate.c \
3007 src/journal/journal-authenticate.h \
3008 src/journal/fsprg.c \
3011 libsystemd_journal_la_CFLAGS += \
3015 libsystemd_journal_la_LIBADD += \
3018 libsystemd_journal_internal_la_CFLAGS += \
3022 libsystemd_journal_internal_la_LIBADD += \
3026 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3027 # needed. Also, grant read access to new journal files to members of
3028 # "adm" and "wheel".
3029 libsystemd-journal-install-hook:
3030 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3031 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3032 -chown 0:0 $(DESTDIR)/var/log/journal
3033 -chmod 755 $(DESTDIR)/var/log/journal
3034 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3035 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3037 libsystemd-journal-uninstall-hook:
3038 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3040 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3041 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3043 # ------------------------------------------------------------------------------
3045 # Update catalog on installation. Do not bother if installing
3046 # in DESTDIR, since this is likely for packaging purposes.
3047 catalog-update-hook:
3048 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3050 INSTALL_DATA_HOOKS += \
3053 catalog-remove-hook:
3054 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3056 UNINSTALL_DATA_HOOKS += \
3065 test-journal-syslog \
3066 test-journal-match \
3067 test-journal-stream \
3069 test-journal-verify \
3070 test-journal-interleaving \
3074 pkginclude_HEADERS += \
3075 src/systemd/sd-journal.h \
3076 src/systemd/sd-messages.h \
3077 src/systemd/_sd-common.h
3079 lib_LTLIBRARIES += \
3080 libsystemd-journal.la
3082 noinst_LTLIBRARIES += \
3083 libsystemd-journal-internal.la
3085 rootlibexec_PROGRAMS += \
3088 rootbin_PROGRAMS += \
3094 dist_systemunit_DATA += \
3095 units/systemd-journald.socket
3097 nodist_systemunit_DATA += \
3098 units/systemd-journald.service \
3099 units/systemd-journal-flush.service
3101 dist_pkgsysconf_DATA += \
3102 src/journal/journald.conf
3104 pkgconfiglib_DATA += \
3105 src/journal/libsystemd-journal.pc
3107 dist_catalog_DATA = \
3108 catalog/systemd.catalog
3110 SOCKETS_TARGET_WANTS += \
3111 systemd-journald.socket
3112 SYSINIT_TARGET_WANTS += \
3113 systemd-journald.service \
3114 systemd-journal-flush.service
3117 src/journal/libsystemd-journal.pc.in \
3118 src/journal/libsystemd-journal.sym \
3119 units/systemd-journald.service.in \
3120 units/systemd-journal-flush.service.in \
3121 src/journal/journald-gperf.gperf
3124 src/journal/journald-gperf.c
3126 # ------------------------------------------------------------------------------
3128 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3130 rootlibexec_PROGRAMS += \
3131 systemd-journal-gatewayd
3133 systemd_journal_gatewayd_SOURCES = \
3134 src/journal/journal-gatewayd.c \
3135 src/journal/microhttpd-util.h \
3136 src/journal/microhttpd-util.c
3138 systemd_journal_gatewayd_LDADD = \
3139 libsystemd-shared.la \
3140 libsystemd-logs.la \
3141 libsystemd-journal-internal.la \
3142 libsystemd-id128-internal.la \
3143 libsystemd-daemon.la \
3147 systemd_journal_gatewayd_CFLAGS = \
3149 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3150 $(MICROHTTPD_CFLAGS)
3152 dist_systemunit_DATA += \
3153 units/systemd-journal-gatewayd.socket
3155 nodist_systemunit_DATA += \
3156 units/systemd-journal-gatewayd.service
3158 dist_gatewayddocumentroot_DATA = \
3159 src/journal/browse.html
3164 units/systemd-journal-gatewayd.service.in
3166 # ------------------------------------------------------------------------------
3168 systemd_socket_proxyd_SOURCES = \
3169 src/socket-proxy/socket-proxyd.c
3171 systemd_socket_proxyd_LDADD = \
3172 libsystemd-shared.la \
3173 libsystemd-logs.la \
3174 libsystemd-journal-internal.la \
3175 libsystemd-id128-internal.la \
3176 libsystemd-daemon.la \
3179 # ------------------------------------------------------------------------------
3181 systemd_coredump_SOURCES = \
3182 src/journal/coredump.c
3184 systemd_coredump_LDADD = \
3185 libsystemd-journal-internal.la \
3186 libsystemd-label.la \
3187 libsystemd-shared.la
3190 systemd_coredump_LDADD += \
3191 libsystemd-login-internal.la
3194 rootlibexec_PROGRAMS += \
3197 systemd_coredumpctl_SOURCES = \
3198 src/journal/coredumpctl.c
3200 systemd_coredumpctl_LDADD = \
3201 libsystemd-shared.la \
3202 libsystemd-journal.la \
3203 libsystemd-journal-internal.la \
3204 libsystemd-id128-internal.la
3209 dist_bashcompletion_DATA += \
3210 shell-completion/bash/systemd-coredumpctl
3212 dist_zshcompletion_DATA += \
3213 shell-completion/zsh/_systemd-coredumpctl
3216 sysctl.d/50-coredump.conf
3219 sysctl.d/50-coredump.conf
3223 sysctl.d/50-coredump.conf.in
3225 # ------------------------------------------------------------------------------
3227 systemd_binfmt_SOURCES = \
3230 systemd_binfmt_LDADD = \
3231 libsystemd-shared.la
3233 rootlibexec_PROGRAMS += \
3236 dist_systemunit_DATA += \
3237 units/proc-sys-fs-binfmt_misc.automount \
3238 units/proc-sys-fs-binfmt_misc.mount
3240 nodist_systemunit_DATA += \
3241 units/systemd-binfmt.service
3244 $(prefix)/lib/binfmt.d \
3245 $(sysconfdir)/binfmt.d
3247 SYSINIT_TARGET_WANTS += \
3248 systemd-binfmt.service \
3249 proc-sys-fs-binfmt_misc.automount
3254 units/systemd-binfmt.service.in
3256 # ------------------------------------------------------------------------------
3258 systemd_vconsole_setup_SOURCES = \
3259 src/vconsole/vconsole-setup.c
3261 systemd_vconsole_setup_LDADD = \
3262 libsystemd-shared.la
3264 rootlibexec_PROGRAMS += \
3265 systemd-vconsole-setup
3267 nodist_systemunit_DATA += \
3268 units/systemd-vconsole-setup.service
3270 SYSINIT_TARGET_WANTS += \
3271 systemd-vconsole-setup.service
3275 units/systemd-vconsole-setup.service.in
3277 # ------------------------------------------------------------------------------
3279 systemd_readahead_SOURCES = \
3280 src/readahead/readahead.c \
3281 src/readahead/readahead-collect.c \
3282 src/readahead/readahead-replay.c \
3283 src/readahead/readahead-analyze.c \
3284 src/readahead/readahead-common.c \
3285 src/readahead/readahead-common.h
3287 systemd_readahead_LDADD = \
3288 libsystemd-shared.la \
3289 libsystemd-daemon.la \
3293 src/readahead/sd-readahead.c \
3294 src/systemd/sd-readahead.h
3296 rootlibexec_PROGRAMS += \
3299 dist_systemunit_DATA += \
3300 units/systemd-readahead-drop.service \
3301 units/systemd-readahead-done.timer
3303 nodist_systemunit_DATA += \
3304 units/systemd-readahead-collect.service \
3305 units/systemd-readahead-replay.service \
3306 units/systemd-readahead-done.service
3311 units/systemd-readahead-collect.service.in \
3312 units/systemd-readahead-replay.service.in \
3313 units/systemd-readahead-done.service.in
3315 # ------------------------------------------------------------------------------
3317 systemd_bootchart_SOURCES = \
3318 src/bootchart/bootchart.c \
3319 src/bootchart/bootchart.h \
3320 src/bootchart/store.c \
3321 src/bootchart/store.h \
3322 src/bootchart/svg.c \
3325 systemd_bootchart_LDADD = \
3326 libsystemd-shared.la \
3327 libsystemd-journal.la
3329 rootlibexec_PROGRAMS += \
3332 dist_pkgsysconf_DATA += \
3333 src/bootchart/bootchart.conf
3336 # ------------------------------------------------------------------------------
3337 if ENABLE_QUOTACHECK
3338 rootlibexec_PROGRAMS += \
3341 nodist_systemunit_DATA += \
3342 units/systemd-quotacheck.service
3344 systemd_quotacheck_SOURCES = \
3345 src/quotacheck/quotacheck.c
3347 systemd_quotacheck_LDADD = \
3348 libsystemd-shared.la
3352 units/systemd-quotacheck.service.in
3354 nodist_systemunit_DATA += \
3355 units/quotaon.service
3357 # ------------------------------------------------------------------------------
3358 if ENABLE_RANDOMSEED
3359 rootlibexec_PROGRAMS += \
3362 nodist_systemunit_DATA += \
3363 units/systemd-random-seed.service
3365 systemd_random_seed_SOURCES = \
3366 src/random-seed/random-seed.c
3368 systemd_random_seed_LDADD = \
3369 libsystemd-label.la \
3370 libsystemd-shared.la
3372 SYSINIT_TARGET_WANTS += \
3373 systemd-random-seed.service
3378 units/systemd-random-seed.service.in
3380 # ------------------------------------------------------------------------------
3382 rootlibexec_PROGRAMS += \
3385 nodist_systemunit_DATA += \
3386 units/systemd-backlight@.service
3388 systemd_backlight_SOURCES = \
3389 src/backlight/backlight.c
3391 systemd_backlight_LDADD = \
3392 libsystemd-label.la \
3393 libsystemd-shared.la \
3398 units/systemd-backlight@.service.in
3400 # ------------------------------------------------------------------------------
3402 rootlibexec_PROGRAMS += \
3405 nodist_systemunit_DATA += \
3406 units/systemd-rfkill@.service
3408 systemd_rfkill_SOURCES = \
3411 systemd_rfkill_LDADD = \
3412 libsystemd-label.la \
3413 libsystemd-shared.la \
3418 units/systemd-rfkill@.service.in
3420 # ------------------------------------------------------------------------------
3421 if HAVE_LIBCRYPTSETUP
3422 rootlibexec_PROGRAMS += \
3425 systemgenerator_PROGRAMS += \
3426 systemd-cryptsetup-generator
3428 dist_systemunit_DATA += \
3429 units/cryptsetup.target
3431 systemd_cryptsetup_SOURCES = \
3432 src/cryptsetup/cryptsetup.c
3434 systemd_cryptsetup_CFLAGS = \
3436 $(LIBCRYPTSETUP_CFLAGS)
3438 systemd_cryptsetup_LDADD = \
3439 libsystemd-label.la \
3440 libsystemd-shared.la \
3442 $(LIBCRYPTSETUP_LIBS)
3444 systemd_cryptsetup_generator_SOURCES = \
3445 src/cryptsetup/cryptsetup-generator.c
3447 systemd_cryptsetup_generator_LDADD = \
3448 libsystemd-label.la \
3449 libsystemd-shared.la
3451 SYSINIT_TARGET_WANTS += \
3456 # ------------------------------------------------------------------------------
3458 systemd_hostnamed_SOURCES = \
3459 src/hostname/hostnamed.c
3461 systemd_hostnamed_LDADD = \
3462 libsystemd-label.la \
3463 libsystemd-shared.la \
3464 libsystemd-daemon.la \
3467 rootlibexec_PROGRAMS += \
3470 nodist_systemunit_DATA += \
3471 units/systemd-hostnamed.service
3473 dist_dbuspolicy_DATA += \
3474 src/hostname/org.freedesktop.hostname1.conf
3476 dist_dbussystemservice_DATA += \
3477 src/hostname/org.freedesktop.hostname1.service
3479 polkitpolicy_files += \
3480 src/hostname/org.freedesktop.hostname1.policy
3482 SYSTEM_UNIT_ALIASES += \
3483 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3485 hostnamectl_SOURCES = \
3486 src/hostname/hostnamectl.c
3488 hostnamectl_CFLAGS = \
3492 hostnamectl_LDADD = \
3493 libsystemd-shared.la \
3494 libsystemd-dbus.la \
3495 libsystemd-id128-internal.la
3500 dist_bashcompletion_DATA += \
3501 shell-completion/bash/hostnamectl
3503 dist_zshcompletion_DATA += \
3504 shell-completion/zsh/_hostnamectl
3508 polkitpolicy_in_files += \
3509 src/hostname/org.freedesktop.hostname1.policy.in
3512 units/systemd-hostnamed.service.in
3514 # ------------------------------------------------------------------------------
3516 systemd_localed_SOURCES = \
3517 src/locale/localed.c
3519 systemd_localed_LDADD = \
3520 libsystemd-label.la \
3521 libsystemd-shared.la \
3522 libsystemd-daemon.la \
3525 nodist_systemunit_DATA += \
3526 units/systemd-localed.service
3528 rootlibexec_PROGRAMS += \
3531 dist_dbuspolicy_DATA += \
3532 src/locale/org.freedesktop.locale1.conf
3534 dist_dbussystemservice_DATA += \
3535 src/locale/org.freedesktop.locale1.service
3537 polkitpolicy_files += \
3538 src/locale/org.freedesktop.locale1.policy
3540 SYSTEM_UNIT_ALIASES += \
3541 systemd-localed.service dbus-org.freedesktop.locale1.service
3543 dist_pkgdata_DATA += \
3544 src/locale/kbd-model-map
3546 dist_noinst_SCRIPT = \
3547 src/locale/generate-kbd-model-map
3549 update-kbd-model-map: src/locale/generate-kbd-model-map
3550 $PYTHON $< > src/locale/kbd-model-map
3552 localectl_SOURCES = \
3553 src/locale/localectl.c
3555 localectl_CFLAGS = \
3560 libsystemd-shared.la \
3561 libsystemd-dbus.la \
3562 libsystemd-id128-internal.la
3567 dist_bashcompletion_DATA += \
3568 shell-completion/bash/localectl
3570 dist_zshcompletion_DATA += \
3571 shell-completion/zsh/_localectl
3575 polkitpolicy_in_files += \
3576 src/locale/org.freedesktop.locale1.policy.in
3579 units/systemd-localed.service.in
3581 # ------------------------------------------------------------------------------
3583 systemd_timedated_SOURCES = \
3584 src/timedate/timedated.c
3586 systemd_timedated_LDADD = \
3587 libsystemd-label.la \
3588 libsystemd-shared.la \
3589 libsystemd-daemon.la \
3592 rootlibexec_PROGRAMS += \
3595 dist_dbussystemservice_DATA += \
3596 src/timedate/org.freedesktop.timedate1.service
3598 dist_dbuspolicy_DATA += \
3599 src/timedate/org.freedesktop.timedate1.conf
3601 nodist_systemunit_DATA += \
3602 units/systemd-timedated.service
3604 polkitpolicy_files += \
3605 src/timedate/org.freedesktop.timedate1.policy
3608 $(prefix)/lib/systemd/ntp-units.d \
3609 $(sysconfdir)/systemd/ntp-units.d
3611 SYSTEM_UNIT_ALIASES += \
3612 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3614 timedatectl_SOURCES = \
3615 src/timedate/timedatectl.c
3617 timedatectl_CFLAGS = \
3621 timedatectl_LDADD = \
3622 libsystemd-shared.la \
3628 dist_bashcompletion_DATA += \
3629 shell-completion/bash/timedatectl
3631 dist_zshcompletion_DATA += \
3632 shell-completion/zsh/_timedatectl
3635 polkitpolicy_in_files += \
3636 src/timedate/org.freedesktop.timedate1.policy.in
3639 units/systemd-timedated.service.in
3641 # ------------------------------------------------------------------------------
3643 libnss_myhostname_la_SOURCES = \
3644 src/nss-myhostname/nss-myhostname.c \
3645 src/nss-myhostname/ifconf.h \
3646 src/nss-myhostname/netlink.c
3648 libnss_myhostname_la_LDFLAGS = \
3656 lib_LTLIBRARIES += \
3657 libnss_myhostname.la
3660 # ------------------------------------------------------------------------------
3662 systemd_machined_SOURCES = \
3663 src/machine/machined.c \
3664 src/machine/machined.h
3666 systemd_machined_CFLAGS = \
3667 $(libsystemd_machine_core_la_CFLAGS)
3669 systemd_machined_LDADD = \
3670 libsystemd-machine-core.la \
3671 $(libsystemd_machine_core_la_LIBADD)
3673 rootlibexec_PROGRAMS += \
3676 libsystemd_machine_core_la_SOURCES = \
3677 src/machine/machined-dbus.c \
3678 src/machine/machine.c \
3679 src/machine/machine.h \
3680 src/machine/machine-dbus.c
3682 libsystemd_machine_core_la_CFLAGS = \
3686 libsystemd_machine_core_la_LIBADD = \
3687 libsystemd-label.la \
3688 libsystemd-audit.la \
3689 libsystemd-shared.la \
3690 libsystemd-daemon.la \
3691 libsystemd-dbus.la \
3692 libsystemd-id128-internal.la \
3695 noinst_LTLIBRARIES += \
3696 libsystemd-machine-core.la
3698 machinectl_SOURCES = \
3699 src/machine/machinectl.c
3701 machinectl_CFLAGS = \
3705 machinectl_LDADD = \
3706 libsystemd-shared.la \
3707 libsystemd-dbus.la \
3710 rootbin_PROGRAMS += \
3713 test_machine_tables_SOURCES = \
3714 src/machine/test-machine-tables.c
3716 test_machine_tables_CFLAGS = \
3720 test_machine_tables_LDADD = \
3721 libsystemd-machine-core.la
3726 nodist_systemunit_DATA += \
3727 units/systemd-machined.service
3729 dist_systemunit_DATA += \
3732 dist_dbussystemservice_DATA += \
3733 src/machine/org.freedesktop.machine1.service
3735 dist_dbuspolicy_DATA += \
3736 src/machine/org.freedesktop.machine1.conf
3738 dist_zshcompletion_DATA += \
3739 shell-completion/zsh/_machinectl
3741 SYSTEM_UNIT_ALIASES += \
3742 systemd-machined.service dbus-org.freedesktop.machine1.service
3745 units/systemd-machined.service.in
3749 # ------------------------------------------------------------------------------
3751 systemd_logind_SOURCES = \
3752 src/login/logind.c \
3755 nodist_systemd_logind_SOURCES = \
3756 src/login/logind-gperf.c
3758 systemd_logind_CFLAGS = \
3759 $(libsystemd_logind_core_la_CFLAGS)
3761 systemd_logind_LDADD = \
3762 libsystemd-logind-core.la \
3763 $(libsystemd_logind_core_la_LIBADD)
3765 libsystemd_logind_core_la_SOURCES = \
3766 src/login/logind-core.c \
3767 src/login/logind-dbus.c \
3768 src/login/logind-device.c \
3769 src/login/logind-device.h \
3770 src/login/logind-button.c \
3771 src/login/logind-button.h \
3772 src/login/logind-action.c \
3773 src/login/logind-action.h \
3774 src/login/logind-seat.c \
3775 src/login/logind-seat.h \
3776 src/login/logind-session.c \
3777 src/login/logind-session.h \
3778 src/login/logind-session-device.c \
3779 src/login/logind-session-device.h \
3780 src/login/logind-user.c \
3781 src/login/logind-user.h \
3782 src/login/logind-inhibit.c \
3783 src/login/logind-inhibit.h \
3784 src/login/logind-session-dbus.c \
3785 src/login/logind-seat-dbus.c \
3786 src/login/logind-user-dbus.c \
3787 src/login/logind-acl.h \
3788 src/login/login-shared.c \
3789 src/login/login-shared.h
3791 libsystemd_logind_core_la_CFLAGS = \
3795 libsystemd_logind_core_la_LIBADD = \
3796 libsystemd-label.la \
3797 libsystemd-audit.la \
3798 libsystemd-shared.la \
3799 libsystemd-daemon.la \
3800 libsystemd-dbus.la \
3801 libsystemd-id128-internal.la \
3805 libsystemd_logind_core_la_SOURCES += \
3806 src/login/logind-acl.c
3808 libsystemd_logind_core_la_LIBADD += \
3812 noinst_LTLIBRARIES += \
3813 libsystemd-logind-core.la
3815 systemd_user_sessions_SOURCES = \
3816 src/login/user-sessions.c
3818 systemd_user_sessions_LDADD = \
3819 libsystemd-shared.la
3821 rootlibexec_PROGRAMS += \
3823 systemd-user-sessions
3825 loginctl_SOURCES = \
3826 src/login/loginctl.c \
3827 src/login/sysfs-show.c
3834 libsystemd-shared.la \
3835 libsystemd-dbus.la \
3838 rootbin_PROGRAMS += \
3841 dist_bashcompletion_DATA += \
3842 shell-completion/bash/loginctl
3844 dist_zshcompletion_DATA += \
3845 shell-completion/zsh/_loginctl \
3846 shell-completion/zsh/_systemd-inhibit
3848 systemd_inhibit_SOURCES = \
3851 systemd_inhibit_CFLAGS = \
3855 systemd_inhibit_LDADD = \
3856 libsystemd-shared.la \
3859 rootbin_PROGRAMS += \
3862 test_login_SOURCES = \
3863 src/login/test-login.c
3865 test_login_LDADD = \
3866 libsystemd-login-internal.la \
3867 libsystemd-shared.la
3869 test_login_shared_SOURCES = \
3870 src/login/test-login-shared.c
3872 test_login_shared_LDADD = \
3873 libsystemd-login-internal.la \
3874 libsystemd-shared.la
3876 test_inhibit_SOURCES = \
3877 src/login/test-inhibit.c
3879 test_inhibit_LDADD = \
3880 libsystemd-shared.la \
3883 test_inhibit_CFLAGS = \
3887 test_login_tables_SOURCES = \
3888 src/login/test-login-tables.c
3890 test_login_tables_CFLAGS = \
3894 test_login_tables_LDADD = \
3895 libsystemd-logind-core.la
3905 libsystemd_login_la_SOURCES = \
3906 src/login/sd-login.c \
3907 src/systemd/sd-login.h \
3908 src/login/login-shared.c \
3909 src/login/login-shared.h
3911 libsystemd_login_la_CFLAGS = \
3915 libsystemd_login_la_LDFLAGS = \
3917 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3918 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3920 libsystemd_login_la_LIBADD = \
3921 libsystemd-shared.la \
3922 libsystemd-daemon-internal.la \
3925 libsystemd_login_internal_la_SOURCES = \
3926 $(libsystemd_login_la_SOURCES)
3929 pam_systemd_la_SOURCES = \
3930 src/login/pam-module.c
3932 pam_systemd_la_CFLAGS = \
3938 pam_systemd_la_LDFLAGS = \
3944 -export-symbols-regex '^pam_sm_.*'
3946 pam_systemd_la_LIBADD = \
3947 libsystemd-audit.la \
3948 libsystemd-dbus.la \
3949 libsystemd-shared.la \
3950 libsystemd-daemon-internal.la \
3954 pamlib_LTLIBRARIES = \
3957 dist_pamconf_DATA = \
3958 src/login/systemd-user
3961 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3962 libsystemd-login-install-hook:
3963 libname=libsystemd-login.so && $(move-to-rootlibdir)
3965 libsystemd-login-uninstall-hook:
3966 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3968 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3969 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
3971 nodist_systemunit_DATA += \
3972 units/systemd-logind.service \
3973 units/systemd-user-sessions.service
3975 dist_systemunit_DATA += \
3978 dist_dbussystemservice_DATA += \
3979 src/login/org.freedesktop.login1.service
3981 dist_dbuspolicy_DATA += \
3982 src/login/org.freedesktop.login1.conf
3984 dist_pkgsysconf_DATA += \
3985 src/login/logind.conf
3987 pkginclude_HEADERS += \
3988 src/systemd/sd-login.h
3990 lib_LTLIBRARIES += \
3993 noinst_LTLIBRARIES += \
3994 libsystemd-login-internal.la
3996 pkgconfiglib_DATA += \
3997 src/login/libsystemd-login.pc
3999 polkitpolicy_files += \
4000 src/login/org.freedesktop.login1.policy
4005 MULTI_USER_TARGET_WANTS += \
4006 systemd-logind.service \
4007 systemd-user-sessions.service
4009 SYSTEM_UNIT_ALIASES += \
4010 systemd-logind.service dbus-org.freedesktop.login1.service
4012 systemd_multi_seat_x_SOURCES = \
4013 src/login/multi-seat-x.c
4015 systemd_multi_seat_x_LDADD = \
4016 libsystemd-label.la \
4017 libsystemd-shared.la
4019 rootlibexec_PROGRAMS += \
4020 systemd-multi-seat-x
4022 dist_udevrules_DATA += \
4023 src/login/70-uaccess.rules \
4024 src/login/70-power-switch.rules
4026 nodist_udevrules_DATA += \
4027 src/login/71-seat.rules \
4028 src/login/73-seat-late.rules
4031 src/login/logind-gperf.c \
4032 src/login/71-seat.rules \
4033 src/login/73-seat-late.rules
4036 polkitpolicy_in_files += \
4037 src/login/org.freedesktop.login1.policy.in
4040 src/login/logind-gperf.gperf \
4041 src/login/libsystemd-login.pc.in \
4042 src/login/libsystemd-login.sym \
4043 src/login/71-seat.rules.in \
4044 src/login/73-seat-late.rules.in \
4045 units/systemd-logind.service.in \
4046 units/systemd-user-sessions.service.in
4048 # ------------------------------------------------------------------------------
4049 if HAVE_PYTHON_DEVEL
4050 pkgpyexec_LTLIBRARIES = \
4057 _journal_la_SOURCES = \
4058 src/python-systemd/_journal.c
4060 _journal_la_CFLAGS = \
4062 -fvisibility=default \
4063 $(PYTHON_DEVEL_CFLAGS)
4065 _journal_la_LDFLAGS = \
4071 _journal_la_LIBADD = \
4072 $(PYTHON_DEVEL_LIBS) \
4073 libsystemd-journal.la
4075 id128_la_SOURCES = \
4076 src/python-systemd/id128.c \
4077 src/python-systemd/id128-constants.h \
4078 src/python-systemd/pyutil.c \
4079 src/python-systemd/pyutil.h
4083 -fvisibility=default \
4084 $(PYTHON_DEVEL_CFLAGS) \
4085 -I$(top_builddir)/src/python-systemd
4087 id128_la_LDFLAGS = \
4094 $(PYTHON_DEVEL_LIBS) \
4097 _daemon_la_SOURCES = \
4098 src/python-systemd/_daemon.c \
4099 src/python-systemd/pyutil.c \
4100 src/python-systemd/pyutil.h
4102 _daemon_la_CFLAGS = \
4104 -fvisibility=default \
4105 $(PYTHON_DEVEL_CFLAGS) \
4106 -I$(top_builddir)/src/python-systemd
4108 _daemon_la_LDFLAGS = \
4114 _daemon_la_LIBADD = \
4115 $(PYTHON_DEVEL_LIBS) \
4116 libsystemd-daemon.la
4118 _reader_la_SOURCES = \
4119 src/python-systemd/_reader.c \
4120 src/python-systemd/pyutil.c \
4121 src/python-systemd/pyutil.h
4123 _reader_la_CFLAGS = \
4125 -fvisibility=default \
4126 $(PYTHON_DEVEL_CFLAGS)
4128 _reader_la_LDFLAGS = \
4134 _reader_la_LIBADD = \
4135 $(PYTHON_DEVEL_LIBS) \
4136 libsystemd-journal.la \
4137 libsystemd-id128.la \
4138 libsystemd-shared.la \
4139 libsystemd-daemon-internal.la \
4142 login_la_SOURCES = \
4143 src/python-systemd/login.c \
4144 src/python-systemd/pyutil.c \
4145 src/python-systemd/pyutil.h
4149 -fvisibility=default \
4150 $(PYTHON_DEVEL_CFLAGS)
4152 login_la_LDFLAGS = \
4159 $(PYTHON_DEVEL_LIBS) \
4160 libsystemd-journal.la \
4161 libsystemd-login.la \
4162 libsystemd-shared.la \
4163 libsystemd-daemon-internal.la \
4166 dist_pkgpyexec_PYTHON = \
4167 src/python-systemd/journal.py \
4168 src/python-systemd/daemon.py \
4169 src/python-systemd/__init__.py
4171 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4172 $(AM_V_at)$(MKDIR_P) $(dir $@)
4173 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4176 src/python-systemd/id128-constants.h
4178 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4180 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4181 $(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/
4182 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4185 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4186 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4189 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4190 $(MAKE) DESTDIR="$$dir" install && \
4191 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4196 CLEAN_LOCAL_HOOKS += clean-sphinx
4199 -rm -rf docs/html/python-systemd/
4201 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4203 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4204 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4206 # ------------------------------------------------------------------------------
4208 '|rootlibexecdir=$(rootlibexecdir)|' \
4209 '|rootbindir=$(rootbindir)|' \
4210 '|bindir=$(bindir)|' \
4211 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4212 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4213 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4214 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4215 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4216 '|pkgdatadir=$(pkgdatadir)|' \
4217 '|systemunitdir=$(systemunitdir)|' \
4218 '|userunitdir=$(userunitdir)|' \
4219 '|systempresetdir=$(systempresetdir)|' \
4220 '|userpresetdir=$(userpresetdir)|' \
4221 '|udevhwdbdir=$(udevhwdbdir)|' \
4222 '|udevrulesdir=$(udevrulesdir)|' \
4223 '|catalogdir=$(catalogdir)|' \
4224 '|tmpfilesdir=$(tmpfilesdir)|' \
4225 '|sysctldir=$(sysctldir)|' \
4226 '|systemgeneratordir=$(systemgeneratordir)|' \
4227 '|usergeneratordir=$(usergeneratordir)|' \
4228 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4229 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4230 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4231 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4232 '|prefix=$(prefix)|' \
4233 '|exec_prefix=$(exec_prefix)|' \
4234 '|libdir=$(libdir)|' \
4235 '|includedir=$(includedir)|' \
4236 '|VERSION=$(VERSION)|' \
4237 '|rootprefix=$(rootprefix)|' \
4238 '|udevlibexecdir=$(udevlibexecdir)|' \
4239 '|SUSHELL=$(SUSHELL)|' \
4240 '|DEBUGTTY=$(DEBUGTTY)|' \
4243 '|MKDIR_P=$(MKDIR_P)|' \
4244 '|QUOTAON=$(QUOTAON)|' \
4245 '|QUOTACHECK=$(QUOTACHECK)|' \
4246 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4247 '|VARLOGDIR=$(varlogdir)|' \
4248 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4249 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4250 '|PYTHON=$(PYTHON)|' \
4251 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4254 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4255 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4258 units/%: units/%.in Makefile
4261 man/%: man/%.in Makefile
4264 sysctl.d/%: sysctl.d/%.in Makefile
4267 %.pc: %.pc.in Makefile
4270 src/core/macros.%: src/core/macros.%.in Makefile
4273 src/%.policy.in: src/%.policy.in.in Makefile
4276 %.rules: %.rules.in Makefile
4279 %.sh: %.sh.in Makefile
4281 $(AM_V_GEN)chmod +x $@
4283 src/%.c: src/%.gperf
4284 $(AM_V_at)$(MKDIR_P) $(dir $@)
4285 $(AM_V_GPERF)$(GPERF) < $< > $@
4288 $(AM_V_at)$(MKDIR_P) $(dir $@)
4289 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4291 units/%: units/%.m4 Makefile
4292 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4293 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4295 units/user/%: units/%.m4 Makefile
4296 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4297 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4300 nodist_polkitpolicy_DATA = \
4301 $(polkitpolicy_files) \
4302 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4306 $(polkitpolicy_in_files) \
4307 $(polkitpolicy_in_in_files)
4310 $(nodist_systemunit_DATA) \
4311 $(nodist_userunit_DATA) \
4312 $(pkgconfigdata_DATA) \
4313 $(pkgconfiglib_DATA) \
4314 $(nodist_polkitpolicy_DATA)
4316 # ------------------------------------------------------------------------------
4318 man/custom-entities.ent: Makefile
4319 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4320 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4321 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4325 man/custom-entities.ent
4329 --stringparam man.output.quietly 1 \
4330 --stringparam funcsynopsis.style ansi \
4331 --stringparam man.authors.section.enabled 0 \
4332 --stringparam man.copyright.section.enabled 0 \
4333 --stringparam systemd.version $(VERSION) \
4334 --path '$(builddir)/man:$(srcdir)/man'
4336 XSLTPROC_PROCESS_MAN = \
4337 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4339 XSLTPROC_PROCESS_HTML = \
4340 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4342 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4343 $(XSLTPROC_PROCESS_MAN)
4345 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4346 $(XSLTPROC_PROCESS_MAN)
4348 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4349 $(XSLTPROC_PROCESS_MAN)
4351 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4352 $(XSLTPROC_PROCESS_MAN)
4354 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4355 $(XSLTPROC_PROCESS_MAN)
4357 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4358 $(XSLTPROC_PROCESS_HTML)
4361 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4367 man/custom-html.xsl \
4370 # ------------------------------------------------------------------------------
4373 docs/sysvinit/README
4378 docs/sysvinit/README: docs/sysvinit/README.in
4381 docs/var-log/README: docs/var-log/README.in
4385 docs/sysvinit/README \
4390 docs/sysvinit/README.in \
4391 docs/var-log/README.in
4393 SOCKETS_TARGET_WANTS += \
4394 systemd-initctl.socket \
4395 systemd-shutdownd.socket
4398 RUNLEVEL1_TARGET_WANTS += \
4399 systemd-update-utmp-runlevel.service
4400 RUNLEVEL2_TARGET_WANTS += \
4401 systemd-update-utmp-runlevel.service
4402 RUNLEVEL3_TARGET_WANTS += \
4403 systemd-update-utmp-runlevel.service
4404 RUNLEVEL4_TARGET_WANTS += \
4405 systemd-update-utmp-runlevel.service
4406 RUNLEVEL5_TARGET_WANTS += \
4407 systemd-update-utmp-runlevel.service
4409 SYSINIT_TARGET_WANTS += \
4410 systemd-update-utmp.service
4411 LOCAL_FS_TARGET_WANTS += \
4412 systemd-remount-fs.service \
4414 MULTI_USER_TARGET_WANTS += \
4416 systemd-ask-password-wall.path
4417 SYSINIT_TARGET_WANTS += \
4418 dev-hugepages.mount \
4420 sys-kernel-config.mount \
4421 sys-kernel-debug.mount \
4422 sys-fs-fuse-connections.mount \
4423 systemd-sysctl.service \
4424 systemd-ask-password-console.path
4427 SYSTEM_UNIT_ALIASES += \
4428 poweroff.target runlevel0.target \
4429 rescue.target runlevel1.target \
4430 multi-user.target runlevel2.target \
4431 multi-user.target runlevel3.target \
4432 multi-user.target runlevel4.target \
4433 graphical.target runlevel5.target \
4434 reboot.target runlevel6.target
4437 SYSTEM_UNIT_ALIASES += \
4438 graphical.target default.target \
4439 reboot.target ctrl-alt-del.target \
4440 getty@.service autovt@.service
4442 USER_UNIT_ALIASES += \
4443 $(systemunitdir)/shutdown.target shutdown.target \
4444 $(systemunitdir)/sockets.target sockets.target \
4445 $(systemunitdir)/timers.target timers.target \
4446 $(systemunitdir)/paths.target paths.target \
4447 $(systemunitdir)/bluetooth.target bluetooth.target \
4448 $(systemunitdir)/printer.target printer.target \
4449 $(systemunitdir)/sound.target sound.target \
4450 $(systemunitdir)/smartcard.target smartcard.target
4452 GENERAL_ALIASES += \
4453 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4454 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4455 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4456 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4460 $(systemunitdir)/runlevel1.target.wants \
4461 $(systemunitdir)/runlevel2.target.wants \
4462 $(systemunitdir)/runlevel3.target.wants \
4463 $(systemunitdir)/runlevel4.target.wants \
4464 $(systemunitdir)/runlevel5.target.wants
4468 $(prefix)/lib/modules-load.d \
4469 $(sysconfdir)/modules-load.d \
4470 $(prefix)/lib/net/links \
4471 $(sysconfdir)/net/links \
4472 $(prefix)/lib/sysctl.d \
4473 $(sysconfdir)/sysctl.d \
4474 $(prefix)/lib/kernel/install.d \
4475 $(sysconfdir)/kernel/install.d \
4476 $(systemshutdowndir) \
4478 $(systemgeneratordir) \
4479 $(usergeneratordir) \
4482 $(pkgsysconfdir)/system \
4483 $(pkgsysconfdir)/system/multi-user.target.wants \
4484 $(pkgsysconfdir)/system/getty.target.wants \
4485 $(pkgsysconfdir)/user \
4486 $(dbussessionservicedir) \
4487 $(sysconfdir)/xdg/systemd
4489 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4491 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4493 install-data-hook: $(INSTALL_DATA_HOOKS)
4495 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4497 clean-local: $(CLEAN_LOCAL_HOOKS)
4498 rm -rf $(abs_srcdir)/install-tree
4499 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4500 $(abs_srcdir)/hwdb/iab.txt
4502 DISTCHECK_CONFIGURE_FLAGS = \
4503 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4504 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4505 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4506 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4507 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4508 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4509 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4510 --with-rootprefix=$$dc_install_base \
4514 DISTCHECK_CONFIGURE_FLAGS += \
4515 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4516 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4518 DISTCHECK_CONFIGURE_FLAGS += \
4519 --with-sysvinit-path= \
4520 --with-sysvrcnd-path=
4524 DISTCHECK_CONFIGURE_FLAGS += \
4529 ( cd $(top_srcdir)/hwdb && \
4530 wget -N http://www.linux-usb.org/usb.ids \
4531 http://pci-ids.ucw.cz/v2.2/pci.ids \
4532 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4533 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4537 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4538 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4540 upload: all distcheck
4541 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4542 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4543 scp man/*.html tango:public/systemd-man/
4545 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4546 doc-sync: all destdir-sphinx
4547 gtkdoc-rebase --html-dir=docs/libudev/html --online
4548 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4549 gtkdoc-rebase --html-dir=docs/gudev/html --online
4550 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4551 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4552 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4555 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4558 rm -rf $(abs_srcdir)/install-tree
4559 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4560 tree $(abs_srcdir)/install-tree
4562 # Let's run all tests of the test suite, but under valgrind. Let's
4563 # exclude the one perl script we have in there
4564 valgrind-tests: $(TESTS)
4565 for f in $(TESTS) ; do [ "$$f" == "$${f/.pl/}" ] && libtool --mode=execute valgrind --leak-check=full --error-exitcode=55 $(builddir)/$$f ; done