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 networkdir=$(prefix)/lib/systemd/network
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 \
186 -I $(top_srcdir)/src/libsystemd-rtnl \
189 AM_CFLAGS = $(OUR_CFLAGS)
190 AM_LDFLAGS = $(OUR_LDFLAGS)
192 # ------------------------------------------------------------------------------
193 define move-to-rootlibdir
194 if test "$(libdir)" != "$(rootlibdir)"; then \
195 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
196 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
197 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
198 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
199 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
205 RUNLEVEL1_TARGET_WANTS =
206 RUNLEVEL2_TARGET_WANTS =
207 RUNLEVEL3_TARGET_WANTS =
208 RUNLEVEL4_TARGET_WANTS =
209 RUNLEVEL5_TARGET_WANTS =
210 SHUTDOWN_TARGET_WANTS =
211 LOCAL_FS_TARGET_WANTS =
212 MULTI_USER_TARGET_WANTS =
213 SYSINIT_TARGET_WANTS =
214 SOCKETS_TARGET_WANTS =
215 TIMERS_TARGET_WANTS =
217 SYSTEM_UNIT_ALIASES =
222 install-target-wants-hook:
223 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
224 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
225 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
226 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
227 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
228 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
229 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
230 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
231 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
232 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
233 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
234 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
237 [ -z "$$what" ] || ( \
238 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
239 $(MKDIR_P) -m 0755 $$dir && \
242 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
245 install-directories-hook:
246 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
248 install-aliases-hook:
249 set -- $(SYSTEM_UNIT_ALIASES) && \
250 dir=$(systemunitdir) && $(install-aliases)
251 set -- $(USER_UNIT_ALIASES) && \
252 dir=$(userunitdir) && $(install-aliases)
253 set -- $(GENERAL_ALIASES) && \
254 dir= && $(install-aliases)
256 define install-aliases
257 while [ -n "$$1" ]; do \
258 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
259 rm -f $(DESTDIR)$$dir/$$2 && \
260 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
261 shift 2 || exit $$?; \
265 INSTALL_EXEC_HOOKS += \
266 install-target-wants-hook \
267 install-directories-hook \
270 # ------------------------------------------------------------------------------
271 AM_V_M4 = $(AM_V_M4_$(V))
272 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
273 AM_V_M4_0 = @echo " M4 " $@;
275 AM_V_XSLT = $(AM_V_XSLT_$(V))
276 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
277 AM_V_XSLT_0 = @echo " XSLT " $@;
279 AM_V_GPERF = $(AM_V_GPERF_$(V))
280 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
281 AM_V_GPERF_0 = @echo " GPERF " $@;
283 AM_V_LN = $(AM_V_LN_$(V))
284 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
285 AM_V_LN_0 = @echo " LN " $@;
287 # ------------------------------------------------------------------------------
291 systemd-ask-password \
292 systemd-tty-ask-password-agent \
293 systemd-machine-id-setup
298 systemd-stdio-bridge \
300 systemd-detect-virt \
306 src/kernel-install/kernel-install
308 dist_kernelinstall_SCRIPTS = \
309 src/kernel-install/50-depmod.install \
310 src/kernel-install/90-loaderentry.install
312 rootlibexec_PROGRAMS = \
314 systemd-cgroups-agent \
316 systemd-update-utmp \
320 systemd-reply-password \
325 systemd-socket-proxyd
327 systemgenerator_PROGRAMS = \
328 systemd-getty-generator \
329 systemd-fstab-generator \
330 systemd-system-update-generator
332 dist_bashcompletion_DATA = \
333 shell-completion/bash/journalctl \
334 shell-completion/bash/systemctl \
335 shell-completion/bash/systemd-analyze \
336 shell-completion/bash/systemd-run \
337 shell-completion/bash/udevadm \
338 shell-completion/bash/kernel-install
340 dist_zshcompletion_DATA = \
341 shell-completion/zsh/_systemctl \
342 shell-completion/zsh/_journalctl \
343 shell-completion/zsh/_udevadm \
344 shell-completion/zsh/_kernel-install \
345 shell-completion/zsh/_systemd-nspawn \
346 shell-completion/zsh/_systemd-analyze \
347 shell-completion/zsh/_sd_hosts_or_user_at_host \
348 shell-completion/zsh/_systemd-delta \
349 shell-completion/zsh/_systemd
352 sysctl.d/50-default.conf
354 dist_systemunit_DATA = \
355 units/graphical.target \
356 units/multi-user.target \
357 units/emergency.service \
358 units/emergency.target \
359 units/sysinit.target \
364 units/local-fs.target \
365 units/local-fs-pre.target \
366 units/initrd.target \
367 units/initrd-fs.target \
368 units/initrd-root-fs.target \
369 units/remote-fs.target \
370 units/remote-fs-pre.target \
371 units/network.target \
372 units/network-online.target \
373 units/nss-lookup.target \
374 units/nss-user-lookup.target \
375 units/hibernate.target \
376 units/hybrid-sleep.target \
377 units/poweroff.target \
378 units/reboot.target \
379 units/rescue.target \
380 units/rpcbind.target \
381 units/time-sync.target \
382 units/shutdown.target \
384 units/umount.target \
385 units/sigpwr.target \
387 units/sockets.target \
388 units/timers.target \
390 units/suspend.target \
392 units/slices.target \
395 units/systemd-initctl.socket \
396 units/systemd-shutdownd.socket \
397 units/syslog.socket \
398 units/dev-hugepages.mount \
399 units/dev-mqueue.mount \
400 units/sys-kernel-config.mount \
401 units/sys-kernel-debug.mount \
402 units/sys-fs-fuse-connections.mount \
404 units/printer.target \
406 units/bluetooth.target \
407 units/smartcard.target \
408 units/systemd-ask-password-wall.path \
409 units/systemd-ask-password-console.path \
410 units/systemd-udevd-control.socket \
411 units/systemd-udevd-kernel.socket \
412 units/system-update.target \
413 units/initrd-switch-root.target
415 nodist_systemunit_DATA = \
416 units/getty@.service \
417 units/serial-getty@.service \
418 units/console-shell.service \
419 units/console-getty.service \
420 units/systemd-initctl.service \
421 units/systemd-shutdownd.service \
422 units/systemd-remount-fs.service \
423 units/systemd-update-utmp.service \
424 units/systemd-update-utmp-runlevel.service \
425 units/systemd-ask-password-wall.service \
426 units/systemd-ask-password-console.service \
427 units/systemd-sysctl.service \
428 units/emergency.service \
429 units/rescue.service \
430 units/user@.service \
431 units/systemd-hibernate.service \
432 units/systemd-hybrid-sleep.service \
433 units/systemd-suspend.service \
434 units/systemd-halt.service \
435 units/systemd-poweroff.service \
436 units/systemd-reboot.service \
437 units/systemd-kexec.service \
438 units/systemd-fsck@.service \
439 units/systemd-fsck-root.service \
440 units/systemd-udevd.service \
441 units/systemd-udev-trigger.service \
442 units/systemd-udev-settle.service \
443 units/debug-shell.service \
444 units/initrd-parse-etc.service \
445 units/initrd-cleanup.service \
446 units/initrd-udevadm-cleanup-db.service \
447 units/initrd-switch-root.service \
448 units/systemd-nspawn@.service
450 dist_userunit_DATA = \
451 units/user/default.target \
452 units/user/exit.target
454 nodist_userunit_DATA = \
455 units/user/systemd-exit.service
458 units/getty@.service.m4 \
459 units/serial-getty@.service.m4 \
460 units/console-shell.service.m4.in \
461 units/console-getty.service.m4.in \
462 units/rescue.service.m4.in \
463 units/systemd-initctl.service.in \
464 units/systemd-shutdownd.service.in \
465 units/systemd-remount-fs.service.in \
466 units/systemd-update-utmp.service.in \
467 units/systemd-update-utmp-runlevel.service.in \
468 units/systemd-ask-password-wall.service.in \
469 units/systemd-ask-password-console.service.in \
470 units/systemd-sysctl.service.in \
471 units/emergency.service.in \
472 units/systemd-halt.service.in \
473 units/systemd-poweroff.service.in \
474 units/systemd-reboot.service.in \
475 units/systemd-kexec.service.in \
476 units/user/systemd-exit.service.in \
477 units/systemd-fsck@.service.in \
478 units/systemd-fsck-root.service.in \
479 units/user@.service.in \
480 units/systemd-udevd.service \
481 units/systemd-udev-trigger.service \
482 units/systemd-udev-settle.service \
483 units/debug-shell.service.in \
484 units/systemd-hibernate.service.in \
485 units/systemd-hybrid-sleep.service.in \
486 units/systemd-suspend.service.in \
487 units/quotaon.service.in \
488 units/initrd-parse-etc.service.in \
489 units/initrd-cleanup.service.in \
490 units/initrd-udevadm-cleanup-db.service.in \
491 units/initrd-switch-root.service.in \
492 units/systemd-nspawn@.service.in
495 units/console-shell.service.m4 \
496 units/console-getty.service.m4 \
497 units/rescue.service.m4
500 nodist_systemunit_DATA += \
501 units/rc-local.service \
502 units/halt-local.service
504 systemgenerator_PROGRAMS += \
505 systemd-rc-local-generator
509 units/rc-local.service.in \
510 units/halt-local.service.in
512 # automake is broken and can't handle files with a dash in front
513 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
515 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
517 units-uninstall-hook:
518 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
520 INSTALL_DATA_HOOKS += units-install-hook
521 UNINSTALL_DATA_HOOKS += units-uninstall-hook
531 @INTLTOOL_POLICY_RULE@
533 # ------------------------------------------------------------------------------
538 include Makefile-man.am
541 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
544 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
546 ${XML_FILES:.xml=.html}
548 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
565 $(AM_V_at)$(MKDIR_P) $(dir $@)
566 $(AM_V_LN)$(LN_S) -f ../../man $@
575 man/index.html: man/systemd.index.html
576 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
584 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
585 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
586 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
588 update-man-list: make-man-rules.py $(XML_GLOB)
589 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
590 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
591 @echo "Makefile-man.am has been regenerated"
593 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
594 $(AM_V_at)$(MKDIR_P) $(dir $@)
595 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
597 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
598 $(AM_V_at)$(MKDIR_P) $(dir $@)
599 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
602 man/systemd.index.xml \
604 man/systemd.directives.xml
607 man/systemd.index.xml \
608 man/systemd.directives.xml
620 make-directive-index.py \
623 # ------------------------------------------------------------------------------
624 noinst_LTLIBRARIES += \
627 libsystemd_rtnl_la_SOURCES = \
628 src/systemd/sd-rtnl.h \
629 src/libsystemd-rtnl/sd-rtnl.c \
630 src/libsystemd-rtnl/rtnl-internal.h \
631 src/libsystemd-rtnl/rtnl-message.c \
632 src/libsystemd-rtnl/rtnl-util.h \
633 src/libsystemd-rtnl/rtnl-util.c
635 test_rtnl_SOURCES = \
636 src/libsystemd-rtnl/test-rtnl.c
639 libsystemd-shared.la \
644 # ------------------------------------------------------------------------------
645 noinst_LTLIBRARIES += \
648 libsystemd_shared_la_SOURCES = \
649 src/shared/linux/auto_dev-ioctl.h \
650 src/shared/linux/fanotify.h \
651 src/shared/linux/seccomp.h \
652 src/shared/linux/seccomp-bpf.h \
653 src/shared/missing.h \
657 src/shared/device-nodes.c \
658 src/shared/device-nodes.h \
659 src/shared/sparse-endian.h \
662 src/shared/udev-util.h \
665 src/shared/efivars.c \
666 src/shared/efivars.h \
667 src/shared/path-util.c \
668 src/shared/path-util.h \
669 src/shared/time-util.c \
670 src/shared/time-util.h \
671 src/shared/hashmap.c \
672 src/shared/hashmap.h \
679 src/shared/sleep-config.c \
680 src/shared/sleep-config.h \
683 src/shared/env-util.c \
684 src/shared/env-util.h \
685 src/shared/strbuf.c \
686 src/shared/strbuf.h \
687 src/shared/strxcpyx.c \
688 src/shared/strxcpyx.h \
689 src/shared/conf-parser.c \
690 src/shared/conf-parser.h \
693 src/shared/ratelimit.h \
694 src/shared/ratelimit.c \
695 src/shared/exit-status.c \
696 src/shared/exit-status.h \
699 src/shared/gunicode.c \
700 src/shared/gunicode.h \
703 src/shared/ioprio.h \
704 src/shared/socket-util.c \
705 src/shared/socket-util.h \
706 src/shared/conf-files.c \
707 src/shared/conf-files.h \
708 src/shared/cgroup-util.c \
709 src/shared/cgroup-util.h \
710 src/shared/cgroup-show.c \
711 src/shared/cgroup-show.h \
712 src/shared/unit-name.c \
713 src/shared/unit-name.h \
714 src/shared/utmp-wtmp.c \
715 src/shared/utmp-wtmp.h \
716 src/shared/watchdog.c \
717 src/shared/watchdog.h \
718 src/shared/spawn-ask-password-agent.c \
719 src/shared/spawn-ask-password-agent.h \
720 src/shared/replace-var.c \
721 src/shared/replace-var.h \
722 src/shared/spawn-polkit-agent.c \
723 src/shared/spawn-polkit-agent.h \
724 src/shared/hwclock.c \
725 src/shared/hwclock.h \
726 src/shared/time-dst.c \
727 src/shared/time-dst.h \
728 src/shared/calendarspec.c \
729 src/shared/calendarspec.h \
730 src/shared/fileio.c \
731 src/shared/fileio.h \
732 src/shared/output-mode.h \
733 src/shared/MurmurHash3.c \
734 src/shared/MurmurHash3.h \
735 src/shared/acpi-fpdt.h \
736 src/shared/acpi-fpdt.c \
737 src/shared/boot-timestamps.h \
738 src/shared/boot-timestamps.c \
739 src/shared/refcnt.h \
742 src/shared/smack-util.c \
743 src/shared/smack-util.h \
744 src/shared/apparmor-util.c \
745 src/shared/apparmor-util.h \
746 src/shared/ima-util.c \
747 src/shared/ima-util.h
749 #-------------------------------------------------------------------------------
750 noinst_LTLIBRARIES += \
753 libsystemd_dbus_la_SOURCES = \
754 src/shared/dbus-common.c \
755 src/shared/dbus-common.h \
756 src/shared/dbus-loop.c \
757 src/shared/dbus-loop.h \
758 src/shared/polkit.c \
761 libsystemd_dbus_la_CFLAGS = \
765 libsystemd_dbus_la_LIBADD = \
768 # ------------------------------------------------------------------------------
769 noinst_LTLIBRARIES += \
772 libsystemd_units_la_SOURCES = \
773 src/shared/install.c \
774 src/shared/install.h \
775 src/shared/install-printf.c \
776 src/shared/install-printf.h \
777 src/shared/path-lookup.c \
778 src/shared/path-lookup.h \
779 src/shared/specifier.c \
780 src/shared/specifier.h
782 libsystemd_units_la_CFLAGS = \
786 # ------------------------------------------------------------------------------
787 noinst_LTLIBRARIES += \
790 libsystemd_label_la_SOURCES = \
791 src/shared/socket-label.c \
794 src/shared/selinux-util.c \
795 src/shared/selinux-util.h \
796 src/shared/mkdir-label.c \
797 src/shared/ask-password-api.c \
798 src/shared/ask-password-api.h \
799 src/shared/fileio-label.c \
800 src/shared/fileio-label.h \
801 src/shared/dev-setup.c \
802 src/shared/dev-setup.h
804 libsystemd_label_la_CFLAGS = \
808 libsystemd_label_la_LIBADD = \
811 # ------------------------------------------------------------------------------
812 noinst_LTLIBRARIES += \
815 libsystemd_logs_la_SOURCES = \
816 src/shared/logs-show.c \
817 src/shared/logs-show.h
819 libsystemd_logs_la_LIBADD = \
820 libsystemd-journal-internal.la \
821 libsystemd-id128-internal.la \
824 # ------------------------------------------------------------------------------
825 noinst_LTLIBRARIES += \
826 libsystemd-capability.la
828 libsystemd_capability_la_SOURCES = \
829 src/shared/capability.c \
830 src/shared/capability.h
832 libsystemd_capability_la_CFLAGS = \
836 libsystemd_capability_la_LIBADD = \
839 # ------------------------------------------------------------------------------
840 noinst_LTLIBRARIES += \
843 libsystemd_audit_la_SOURCES = \
847 libsystemd_audit_la_LIBADD = \
848 libsystemd-capability.la
850 # ------------------------------------------------------------------------------
852 noinst_LTLIBRARIES += \
855 libsystemd_acl_la_SOURCES = \
856 src/shared/acl-util.c \
857 src/shared/acl-util.h
859 libsystemd_acl_la_CFLAGS = \
863 libsystemd_acl_la_LIBADD = \
868 # ------------------------------------------------------------------------------
869 noinst_LTLIBRARIES += \
872 libsystemd_core_la_SOURCES = \
875 src/core/unit-printf.c \
876 src/core/unit-printf.h \
881 src/core/transaction.c \
882 src/core/transaction.h \
883 src/core/load-fragment.c \
884 src/core/load-fragment.h \
887 src/core/automount.c \
888 src/core/automount.h \
897 src/core/snapshot.c \
898 src/core/snapshot.h \
909 src/core/load-dropin.c \
910 src/core/load-dropin.h \
917 src/core/dbus-manager.c \
918 src/core/dbus-manager.h \
919 src/core/dbus-unit.c \
920 src/core/dbus-unit.h \
921 src/core/dbus-job.c \
922 src/core/dbus-job.h \
923 src/core/dbus-service.c \
924 src/core/dbus-service.h \
925 src/core/dbus-socket.c \
926 src/core/dbus-socket.h \
927 src/core/dbus-timer.c \
928 src/core/dbus-timer.h \
929 src/core/dbus-target.c \
930 src/core/dbus-target.h \
931 src/core/dbus-mount.c \
932 src/core/dbus-mount.h \
933 src/core/dbus-automount.c \
934 src/core/dbus-automount.h \
935 src/core/dbus-swap.c \
936 src/core/dbus-swap.h \
937 src/core/dbus-snapshot.c \
938 src/core/dbus-snapshot.h \
939 src/core/dbus-device.c \
940 src/core/dbus-device.h \
941 src/core/dbus-path.c \
942 src/core/dbus-path.h \
943 src/core/dbus-slice.c \
944 src/core/dbus-slice.h \
945 src/core/dbus-scope.c \
946 src/core/dbus-scope.h \
947 src/core/dbus-execute.c \
948 src/core/dbus-execute.h \
949 src/core/dbus-kill.c \
950 src/core/dbus-kill.h \
951 src/core/dbus-cgroup.c \
952 src/core/dbus-cgroup.h \
955 src/core/selinux-access.c \
956 src/core/selinux-access.h \
957 src/core/selinux-setup.c \
958 src/core/selinux-setup.h \
959 src/core/smack-setup.c \
960 src/core/smack-setup.h \
961 src/core/ima-setup.c \
962 src/core/ima-setup.h \
963 src/core/locale-setup.h \
964 src/core/locale-setup.c \
965 src/core/hostname-setup.c \
966 src/core/hostname-setup.h \
967 src/core/machine-id-setup.c \
968 src/core/machine-id-setup.h \
969 src/core/mount-setup.c \
970 src/core/mount-setup.h \
971 src/core/loopback-setup.h \
972 src/core/loopback-setup.c \
973 src/core/condition.c \
974 src/core/condition.h \
975 src/core/namespace.c \
976 src/core/namespace.h \
979 src/core/securebits.h \
982 src/core/bus-errors.h \
984 src/core/sysfs-show.h \
985 src/core/switch-root.h \
986 src/core/switch-root.c \
989 src/core/syscall-list.c \
990 src/core/syscall-list.h \
991 src/core/audit-fd.c \
992 src/core/audit-fd.h \
997 libsystemd_core_la_SOURCES += \
998 src/core/kmod-setup.c \
999 src/core/kmod-setup.h
1002 nodist_libsystemd_core_la_SOURCES = \
1003 src/core/load-fragment-gperf.c \
1004 src/core/load-fragment-gperf-nulstr.c \
1005 src/core/syscall-from-name.h \
1006 src/core/syscall-to-name.h
1008 libsystemd_core_la_CFLAGS = \
1017 libsystemd_core_la_LIBADD = \
1018 libsystemd-capability.la \
1019 libsystemd-units.la \
1020 libsystemd-label.la \
1021 libsystemd-shared.la \
1022 libsystemd-dbus.la \
1023 libsystemd-audit.la \
1024 libsystemd-id128-internal.la \
1025 libsystemd-daemon.la \
1033 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1034 $(AM_V_at)$(MKDIR_P) $(dir $@)
1035 $(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 ";" }' < $< > $@
1038 src/core/load-fragment-gperf.gperf.m4
1041 src/core/load-fragment-gperf.gperf \
1042 src/core/load-fragment-gperf.c \
1043 src/core/load-fragment-gperf-nulstr.c \
1044 src/core/syscall-list.txt \
1045 src/core/syscall-from-name.gperf
1048 src/core/syscall-from-name.h \
1049 src/core/syscall-to-name.h
1051 src/core/syscall-list.txt: Makefile
1052 $(AM_V_at)$(MKDIR_P) $(dir $@)
1053 $(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; }' > $@
1055 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
1056 $(AM_V_at)$(MKDIR_P) $(dir $@)
1057 $(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 }' < $< > $@
1059 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
1060 $(AM_V_at)$(MKDIR_P) $(dir $@)
1061 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1063 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
1064 $(AM_V_at)$(MKDIR_P) $(dir $@)
1065 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1067 # ------------------------------------------------------------------------------
1076 libsystemd-core.la \
1077 libsystemd-daemon.la \
1078 libsystemd-id128-internal.la \
1081 dist_pkgsysconf_DATA += \
1082 src/core/system.conf \
1085 dist_dbuspolicy_DATA += \
1086 src/core/org.freedesktop.systemd1.conf
1088 dist_dbussystemservice_DATA += \
1089 src/core/org.freedesktop.systemd1.service
1091 polkitpolicy_in_in_files += \
1092 src/core/org.freedesktop.systemd1.policy.in.in
1094 pkgconfigdata_DATA = \
1097 nodist_rpmmacros_DATA = \
1098 src/core/macros.systemd
1101 src/core/systemd.pc.in \
1102 src/core/macros.systemd.in
1105 src/core/macros.systemd \
1106 src/core/org.freedesktop.systemd1.policy.in
1108 # ------------------------------------------------------------------------------
1138 test-strip-tab-ansi \
1149 test/sched_idle_bad.service \
1150 test/sched_idle_ok.service \
1151 test/sched_rr_bad.service \
1152 test/sched_rr_ok.service \
1153 test/sched_rr_change.service
1156 src/test/test-helper.h
1158 test_device_nodes_SOURCES = \
1159 src/test/test-device-nodes.c
1161 test_device_nodes_LDADD = \
1162 libsystemd-shared.la
1164 test_engine_SOURCES = \
1165 src/test/test-engine.c
1167 test_engine_CFLAGS = \
1171 test_engine_LDADD = \
1172 libsystemd-core.la \
1173 libsystemd-daemon.la \
1176 test_job_type_SOURCES = \
1177 src/test/test-job-type.c
1179 test_job_type_CFLAGS = \
1183 test_job_type_LDADD = \
1184 libsystemd-core.la \
1185 libsystemd-daemon.la
1197 test_loopback_SOURCES = \
1198 src/test/test-loopback.c
1200 test_loopback_LDADD = \
1201 libsystemd-shared.la \
1204 test_hostname_SOURCES = \
1205 src/test/test-hostname.c
1207 test_hostname_LDADD = \
1214 test_boot_timestamp_SOURCES = \
1215 src/test/test-boot-timestamps.c
1217 test_boot_timestamp_LDADD = \
1218 libsystemd-shared.la
1221 test_unit_name_SOURCES = \
1222 src/test/test-unit-name.c
1224 test_unit_name_CFLAGS = \
1228 test_unit_name_LDADD = \
1231 test_unit_file_SOURCES = \
1232 src/test/test-unit-file.c
1234 test_unit_file_CFLAGS = \
1238 test_unit_file_LDADD = \
1241 test_utf8_SOURCES = \
1242 src/test/test-utf8.c
1245 libsystemd-shared.la
1247 test_util_SOURCES = \
1248 src/test/test-util.c
1253 test_namespace_SOURCES = \
1254 src/test/test-namespace.c
1256 test_namespace_LDADD = \
1259 test_hashmap_SOURCES = \
1260 src/test/test-hashmap.c
1262 test_hashmap_LDADD = \
1265 test_list_SOURCES = \
1266 src/test/test-list.c
1271 test_tables_SOURCES = \
1272 src/test/test-tables.c \
1273 src/shared/test-tables.h
1275 test_tables_CFLAGS = \
1279 test_tables_LDADD = \
1280 libsystemd-core.la \
1283 test_prioq_SOURCES = \
1284 src/test/test-prioq.c
1286 test_prioq_LDADD = \
1289 test_fileio_SOURCES = \
1290 src/test/test-fileio.c
1292 test_fileio_LDADD = \
1295 test_time_SOURCES = \
1296 src/test/test-time.c
1301 test_log_SOURCES = \
1307 test_ellipsize_SOURCES = \
1308 src/test/test-ellipsize.c
1310 test_ellipsize_LDADD = \
1313 test_date_SOURCES = \
1314 src/test/test-date.c
1319 test_sleep_SOURCES = \
1320 src/test/test-sleep.c
1322 test_sleep_LDADD = \
1325 test_replace_var_SOURCES = \
1326 src/test/test-replace-var.c
1328 test_replace_var_LDADD = \
1329 libsystemd-shared.la
1331 test_calendarspec_SOURCES = \
1332 src/test/test-calendarspec.c
1334 test_calendarspec_LDADD = \
1335 libsystemd-shared.la
1337 test_strip_tab_ansi_SOURCES = \
1338 src/test/test-strip-tab-ansi.c
1340 test_strip_tab_ansi_LDADD = \
1341 libsystemd-shared.la
1343 test_daemon_SOURCES = \
1344 src/test/test-daemon.c
1346 test_daemon_LDADD = \
1347 libsystemd-shared.la \
1348 libsystemd-daemon.la
1350 test_cgroup_SOURCES = \
1351 src/test/test-cgroup.c
1353 test_cgroup_LDADD = \
1354 libsystemd-label.la \
1355 libsystemd-shared.la
1357 test_cgroup_util_SOURCES = \
1358 src/test/test-cgroup-util.c
1360 test_cgroup_util_LDADD = \
1361 libsystemd-label.la \
1362 libsystemd-shared.la \
1363 libsystemd-daemon.la
1365 test_env_replace_SOURCES = \
1366 src/test/test-env-replace.c
1368 test_env_replace_LDADD = \
1369 libsystemd-shared.la
1371 test_strbuf_SOURCES = \
1372 src/test/test-strbuf.c
1374 test_strbuf_LDADD = \
1375 libsystemd-shared.la
1377 test_strv_SOURCES = \
1378 src/test/test-strv.c
1381 libsystemd-shared.la \
1382 libsystemd-units.la \
1383 libsystemd-id128-internal.la
1385 test_path_util_SOURCES = \
1386 src/test/test-path-util.c
1388 test_path_util_LDADD = \
1389 libsystemd-shared.la
1391 test_strxcpyx_SOURCES = \
1392 src/test/test-strxcpyx.c
1394 test_strxcpyx_LDADD = \
1395 libsystemd-shared.la
1397 test_install_SOURCES = \
1398 src/test/test-install.c
1400 test_install_CFLAGS = \
1404 test_install_LDADD = \
1405 libsystemd-units.la \
1406 libsystemd-label.la \
1407 libsystemd-shared.la \
1408 libsystemd-id128-internal.la
1410 test_watchdog_SOURCES = \
1411 src/test/test-watchdog.c
1413 test_watchdog_LDADD = \
1414 libsystemd-shared.la
1416 test_sched_prio_SOURCES = \
1417 src/test/test-sched-prio.c
1419 test_sched_prio_CFLAGS = \
1422 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1424 test_sched_prio_LDADD = \
1425 libsystemd-core.la \
1426 libsystemd-daemon.la
1428 # ------------------------------------------------------------------------------
1429 ## .PHONY so it always rebuilds it
1430 .PHONY: coverage lcov-run lcov-report
1432 # run lcov from scratch, always
1437 coverage_dir = coverage
1438 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1441 # reset run coverage tests
1443 @rm -rf $(coverage_dir)
1444 lcov $(coverage_opts) --zerocounters
1447 # generate report based on current coverage data
1449 $(MKDIR_P) $(coverage_dir)
1450 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1451 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1452 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1453 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1455 # lcov doesn't work properly with vpath builds, make sure that bad
1456 # output is not uploaded by mistake.
1457 coverage-sync: coverage
1458 test "$(builddir)" = "$(srcdir)"
1459 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1462 lcov-run lcov-report:
1463 echo "Need to reconfigure with --enable-coverage"
1466 # ------------------------------------------------------------------------------
1467 systemd_analyze_SOURCES = \
1468 src/analyze/analyze.c
1470 systemd_analyze_CFLAGS = \
1474 systemd_analyze_LDADD = \
1475 libsystemd-shared.la \
1478 # ------------------------------------------------------------------------------
1479 systemd_initctl_SOURCES = \
1480 src/initctl/initctl.c
1482 systemd_initctl_CFLAGS = \
1486 systemd_initctl_LDADD = \
1487 libsystemd-shared.la \
1488 libsystemd-daemon.la \
1491 # ------------------------------------------------------------------------------
1492 systemd_update_utmp_SOURCES = \
1493 src/update-utmp/update-utmp.c
1495 systemd_update_utmp_CFLAGS = \
1500 systemd_update_utmp_LDADD = \
1501 libsystemd-shared.la \
1505 # ------------------------------------------------------------------------------
1506 systemd_shutdownd_SOURCES = \
1507 src/shutdownd/shutdownd.c
1509 systemd_shutdownd_LDADD = \
1510 libsystemd-label.la \
1511 libsystemd-shared.la \
1512 libsystemd-daemon.la
1514 pkginclude_HEADERS += \
1515 src/systemd/sd-shutdown.h
1517 # ------------------------------------------------------------------------------
1518 systemd_shutdown_SOURCES = \
1521 src/core/shutdown.c \
1522 src/core/mount-setup.c \
1523 src/core/mount-setup.h \
1524 src/core/killall.h \
1527 systemd_shutdown_LDADD = \
1528 libsystemd-label.la \
1529 libsystemd-shared.la \
1532 # ------------------------------------------------------------------------------
1534 systemd_modules_load_SOURCES = \
1535 src/modules-load/modules-load.c
1537 systemd_modules_load_CFLAGS = \
1541 systemd_modules_load_LDADD = \
1542 libsystemd-shared.la \
1545 rootlibexec_PROGRAMS += \
1546 systemd-modules-load
1548 nodist_systemunit_DATA += \
1549 units/systemd-modules-load.service
1551 SYSINIT_TARGET_WANTS += \
1552 systemd-modules-load.service
1555 nodist_systemunit_DATA += \
1556 units/kmod-static-nodes.service
1558 SYSINIT_TARGET_WANTS += \
1559 kmod-static-nodes.service
1564 units/systemd-modules-load.service.in \
1565 units/kmod-static-nodes.service.in
1567 # ------------------------------------------------------------------------------
1569 systemd_tmpfiles_SOURCES = \
1570 src/tmpfiles/tmpfiles.c \
1571 src/shared/specifier.c \
1572 src/shared/specifier.h
1574 systemd_tmpfiles_LDADD = \
1575 libsystemd-label.la \
1576 libsystemd-shared.la \
1577 libsystemd-capability.la \
1578 libsystemd-id128-internal.la
1580 rootbin_PROGRAMS += \
1583 dist_systemunit_DATA += \
1584 units/systemd-tmpfiles-clean.timer
1586 nodist_systemunit_DATA += \
1587 units/systemd-tmpfiles-setup-dev.service \
1588 units/systemd-tmpfiles-setup.service \
1589 units/systemd-tmpfiles-clean.service
1591 dist_tmpfiles_DATA = \
1592 tmpfiles.d/systemd.conf \
1593 tmpfiles.d/tmp.conf \
1597 dist_tmpfiles_DATA += \
1598 tmpfiles.d/legacy.conf
1601 SYSINIT_TARGET_WANTS += \
1602 systemd-tmpfiles-setup-dev.service \
1603 systemd-tmpfiles-setup.service
1605 dist_zshcompletion_DATA += \
1606 shell-completion/zsh/_systemd-tmpfiles
1608 TIMERS_TARGET_WANTS += \
1609 systemd-tmpfiles-clean.timer
1613 $(sysconfdir)/tmpfiles.d
1617 units/systemd-tmpfiles-setup-dev.service.in \
1618 units/systemd-tmpfiles-setup.service.in \
1619 units/systemd-tmpfiles-clean.service.in
1621 # ------------------------------------------------------------------------------
1622 systemd_machine_id_setup_SOURCES = \
1623 src/machine-id-setup/machine-id-setup-main.c \
1624 src/core/machine-id-setup.c \
1625 src/core/machine-id-setup.h
1627 systemd_machine_id_setup_LDADD = \
1628 libsystemd-label.la \
1629 libsystemd-shared.la \
1630 libsystemd-id128-internal.la
1632 # ------------------------------------------------------------------------------
1633 systemd_sysctl_SOURCES = \
1636 systemd_sysctl_LDADD = \
1637 libsystemd-shared.la
1639 # ------------------------------------------------------------------------------
1640 systemd_sleep_SOURCES = \
1643 systemd_sleep_LDADD = \
1644 libsystemd-shared.la
1646 # ------------------------------------------------------------------------------
1647 systemd_fsck_SOURCES = \
1650 systemd_fsck_CFLAGS = \
1654 systemd_fsck_LDADD = \
1655 libsystemd-shared.la \
1659 # ------------------------------------------------------------------------------
1660 systemd_ac_power_SOURCES = \
1661 src/ac-power/ac-power.c
1663 systemd_ac_power_LDADD = \
1664 libsystemd-shared.la \
1667 # ------------------------------------------------------------------------------
1668 systemd_detect_virt_SOURCES = \
1669 src/detect-virt/detect-virt.c
1671 systemd_detect_virt_LDADD = \
1672 libsystemd-shared.la
1674 systemd-detect-virt-install-hook:
1675 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1677 INSTALL_EXEC_HOOKS += \
1678 systemd-detect-virt-install-hook
1680 # ------------------------------------------------------------------------------
1681 systemd_delta_SOURCES = \
1684 systemd_delta_LDADD = \
1685 libsystemd-shared.la
1687 # ------------------------------------------------------------------------------
1688 systemd_getty_generator_SOURCES = \
1689 src/getty-generator/getty-generator.c
1691 systemd_getty_generator_LDADD = \
1692 libsystemd-label.la \
1693 libsystemd-shared.la
1695 # ------------------------------------------------------------------------------
1696 systemd_fstab_generator_SOURCES = \
1697 src/fstab-generator/fstab-generator.c \
1698 src/core/mount-setup.c
1700 systemd_fstab_generator_LDADD = \
1701 libsystemd-label.la \
1702 libsystemd-shared.la
1704 # ------------------------------------------------------------------------------
1705 systemd_system_update_generator_SOURCES = \
1706 src/system-update-generator/system-update-generator.c
1708 systemd_system_update_generator_LDADD = \
1709 libsystemd-label.la \
1710 libsystemd-shared.la
1713 # ------------------------------------------------------------------------------
1714 systemgenerator_PROGRAMS += \
1715 systemd-efi-boot-generator
1717 systemd_efi_boot_generator_SOURCES = \
1718 src/efi-boot-generator/efi-boot-generator.c
1720 systemd_efi_boot_generator_LDADD = \
1721 libsystemd-label.la \
1722 libsystemd-shared.la
1724 # ------------------------------------------------------------------------------
1727 src/boot/boot-loader.h \
1728 src/boot/bootctl.c \
1729 src/boot/boot-loader.c \
1733 libsystemd-shared.la \
1734 libsystemd-id128.la \
1735 libsystemd-daemon.la
1741 # ------------------------------------------------------------------------------
1743 systemgenerator_PROGRAMS += \
1744 systemd-gpt-auto-generator
1746 systemd_gpt_auto_generator_SOURCES = \
1747 src/gpt-auto-generator/gpt-auto-generator.c
1749 systemd_gpt_auto_generator_LDADD = \
1750 libsystemd-label.la \
1751 libsystemd-shared.la \
1752 libsystemd-id128-internal.la \
1753 libudev-private.la \
1756 systemd_gpt_auto_generator_CFLAGS = \
1761 # ------------------------------------------------------------------------------
1762 systemd_rc_local_generator_SOURCES = \
1763 src/rc-local-generator/rc-local-generator.c
1765 systemd_rc_local_generator_LDADD = \
1766 libsystemd-label.la \
1767 libsystemd-shared.la
1769 # ------------------------------------------------------------------------------
1770 systemd_remount_fs_SOURCES = \
1771 src/remount-fs/remount-fs.c \
1772 src/core/mount-setup.c \
1773 src/core/mount-setup.h
1775 systemd_remount_fs_LDADD = \
1776 libsystemd-label.la \
1777 libsystemd-shared.la
1779 # ------------------------------------------------------------------------------
1780 systemd_cgroups_agent_SOURCES = \
1781 src/cgroups-agent/cgroups-agent.c
1783 systemd_cgroups_agent_LDADD = \
1784 libsystemd-shared.la \
1787 # ------------------------------------------------------------------------------
1788 systemctl_SOURCES = \
1789 src/systemctl/systemctl.c
1791 systemctl_CFLAGS = \
1796 libsystemd-units.la \
1797 libsystemd-label.la \
1798 libsystemd-shared.la \
1799 libsystemd-daemon.la \
1800 libsystemd-dbus.la \
1803 # ------------------------------------------------------------------------------
1804 systemd_notify_SOURCES = \
1805 src/notify/notify.c \
1806 src/readahead/sd-readahead.c
1808 systemd_notify_LDADD = \
1809 libsystemd-shared.la \
1810 libsystemd-daemon.la
1812 # ------------------------------------------------------------------------------
1813 systemd_ask_password_SOURCES = \
1814 src/ask-password/ask-password.c
1816 systemd_ask_password_LDADD = \
1817 libsystemd-label.la \
1818 libsystemd-shared.la
1820 # ------------------------------------------------------------------------------
1821 systemd_reply_password_SOURCES = \
1822 src/reply-password/reply-password.c
1824 systemd_reply_password_LDADD = \
1825 libsystemd-shared.la
1827 # ------------------------------------------------------------------------------
1828 systemd_cgls_SOURCES = \
1831 systemd_cgls_LDADD = \
1832 libsystemd-shared.la
1834 # ------------------------------------------------------------------------------
1835 systemd_cgtop_SOURCES = \
1838 systemd_cgtop_LDADD = \
1839 libsystemd-shared.la
1841 # ------------------------------------------------------------------------------
1842 systemd_nspawn_SOURCES = \
1843 src/nspawn/nspawn.c \
1844 src/core/mount-setup.c \
1845 src/core/mount-setup.h \
1846 src/core/loopback-setup.c \
1847 src/core/loopback-setup.h
1849 systemd_nspawn_LDADD = \
1850 libsystemd-label.la \
1851 libsystemd-capability.la \
1852 libsystemd-shared.la \
1853 libsystemd-daemon.la \
1854 libsystemd-id128-internal.la \
1857 # ------------------------------------------------------------------------------
1858 systemd_run_SOURCES = \
1861 systemd_run_LDADD = \
1862 libsystemd-label.la \
1863 libsystemd-capability.la \
1864 libsystemd-shared.la \
1865 libsystemd-daemon.la \
1866 libsystemd-id128-internal.la \
1869 # ------------------------------------------------------------------------------
1870 systemd_stdio_bridge_SOURCES = \
1871 src/stdio-bridge/stdio-bridge.c
1873 systemd_stdio_bridge_LDADD = \
1874 libsystemd-shared.la \
1876 libsystemd-daemon.la
1878 # ------------------------------------------------------------------------------
1879 systemd_tty_ask_password_agent_SOURCES = \
1880 src/tty-ask-password-agent/tty-ask-password-agent.c
1882 systemd_tty_ask_password_agent_LDADD = \
1883 libsystemd-label.la \
1884 libsystemd-shared.la
1886 # ------------------------------------------------------------------------------
1887 libsystemd_daemon_la_SOURCES = \
1888 src/libsystemd-daemon/sd-daemon.c
1890 libsystemd_daemon_internal_la_SOURCES = \
1891 $(libsystemd_daemon_la_SOURCES)
1893 libsystemd_daemon_la_CFLAGS = \
1895 -fvisibility=hidden \
1898 libsystemd_daemon_la_LDFLAGS = \
1900 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1901 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1903 libsystemd_daemon_la_LIBADD = \
1906 pkginclude_HEADERS += \
1907 src/systemd/sd-daemon.h
1909 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1910 libsystemd-daemon-install-hook:
1911 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1913 libsystemd-daemon-uninstall-hook:
1914 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1916 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1917 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1919 lib_LTLIBRARIES += \
1920 libsystemd-daemon.la
1922 noinst_LTLIBRARIES += \
1923 libsystemd-daemon-internal.la
1925 pkgconfiglib_DATA += \
1926 src/libsystemd-daemon/libsystemd-daemon.pc
1929 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1930 src/libsystemd-daemon/libsystemd-daemon.sym
1932 # ------------------------------------------------------------------------------
1933 libsystemd_bus_la_SOURCES = \
1934 src/systemd/sd-bus.h \
1935 src/systemd/sd-bus-protocol.h \
1936 src/systemd/sd-bus-vtable.h \
1937 src/systemd/sd-memfd.h \
1938 src/systemd/sd-event.h \
1939 src/libsystemd-bus/sd-bus.c \
1940 src/libsystemd-bus/bus-control.c \
1941 src/libsystemd-bus/bus-control.h \
1942 src/libsystemd-bus/bus-error.c \
1943 src/libsystemd-bus/bus-error.h \
1944 src/libsystemd-bus/bus-internal.c \
1945 src/libsystemd-bus/bus-internal.h \
1946 src/libsystemd-bus/bus-socket.c \
1947 src/libsystemd-bus/bus-socket.h \
1948 src/libsystemd-bus/bus-kernel.c \
1949 src/libsystemd-bus/bus-kernel.h \
1950 src/libsystemd-bus/bus-message.c \
1951 src/libsystemd-bus/bus-message.h \
1952 src/libsystemd-bus/bus-signature.c \
1953 src/libsystemd-bus/bus-signature.h \
1954 src/libsystemd-bus/bus-type.c \
1955 src/libsystemd-bus/bus-type.h \
1956 src/libsystemd-bus/bus-match.c \
1957 src/libsystemd-bus/bus-match.h \
1958 src/libsystemd-bus/bus-bloom.c \
1959 src/libsystemd-bus/bus-bloom.h \
1960 src/libsystemd-bus/bus-introspect.c \
1961 src/libsystemd-bus/bus-introspect.h \
1962 src/libsystemd-bus/bus-objects.c \
1963 src/libsystemd-bus/bus-objects.h \
1964 src/libsystemd-bus/bus-convenience.c \
1965 src/libsystemd-bus/kdbus.h \
1966 src/libsystemd-bus/sd-memfd.c \
1967 src/libsystemd-bus/sd-event.c \
1968 src/libsystemd-bus/bus-util.c \
1969 src/libsystemd-bus/bus-util.h \
1970 src/libsystemd-bus/event-util.h
1972 libsystemd_bus_la_LIBADD = \
1973 libsystemd-id128-internal.la \
1974 libsystemd-shared.la \
1975 libsystemd-daemon.la
1977 libsystemd_bus_la_CFLAGS = \
1981 noinst_LTLIBRARIES += \
1986 test-bus-signature \
1991 test-bus-kernel-bloom \
1992 test-bus-kernel-benchmark \
1994 test-bus-zero-copy \
1995 test-bus-introspect \
1999 noinst_PROGRAMS += \
2002 test_bus_marshal_SOURCES = \
2003 src/libsystemd-bus/test-bus-marshal.c
2005 test_bus_marshal_LDADD = \
2006 libsystemd-shared.la \
2011 test_bus_marshal_CFLAGS = \
2016 test_bus_signature_SOURCES = \
2017 src/libsystemd-bus/test-bus-signature.c
2019 test_bus_signature_LDADD = \
2020 libsystemd-shared.la \
2023 test_bus_chat_SOURCES = \
2024 src/libsystemd-bus/test-bus-chat.c
2026 test_bus_chat_CFLAGS = \
2030 test_bus_chat_LDADD = \
2031 libsystemd-shared.la \
2033 libsystemd-id128-internal.la
2035 test_bus_server_SOURCES = \
2036 src/libsystemd-bus/test-bus-server.c
2038 test_bus_server_CFLAGS = \
2042 test_bus_server_LDADD = \
2043 libsystemd-shared.la \
2045 libsystemd-id128-internal.la
2047 test_bus_objects_SOURCES = \
2048 src/libsystemd-bus/test-bus-objects.c
2050 test_bus_objects_CFLAGS = \
2054 test_bus_objects_LDADD = \
2055 libsystemd-shared.la \
2057 libsystemd-id128-internal.la
2059 test_bus_match_SOURCES = \
2060 src/libsystemd-bus/test-bus-match.c
2062 test_bus_match_LDADD = \
2063 libsystemd-shared.la \
2065 libsystemd-id128-internal.la
2067 test_bus_kernel_SOURCES = \
2068 src/libsystemd-bus/test-bus-kernel.c
2070 test_bus_kernel_LDADD = \
2071 libsystemd-shared.la \
2073 libsystemd-id128-internal.la
2075 test_bus_kernel_bloom_SOURCES = \
2076 src/libsystemd-bus/test-bus-kernel-bloom.c
2078 test_bus_kernel_bloom_LDADD = \
2079 libsystemd-shared.la \
2081 libsystemd-id128-internal.la
2083 test_bus_kernel_benchmark_SOURCES = \
2084 src/libsystemd-bus/test-bus-kernel-benchmark.c
2086 test_bus_kernel_benchmark_LDADD = \
2087 libsystemd-shared.la \
2089 libsystemd-id128-internal.la
2091 test_bus_memfd_SOURCES = \
2092 src/libsystemd-bus/test-bus-memfd.c
2094 test_bus_memfd_LDADD = \
2095 libsystemd-shared.la \
2098 test_bus_zero_copy_SOURCES = \
2099 src/libsystemd-bus/test-bus-zero-copy.c
2101 test_bus_zero_copy_LDADD = \
2102 libsystemd-shared.la \
2105 test_bus_introspect_SOURCES = \
2106 src/libsystemd-bus/test-bus-introspect.c
2108 test_bus_introspect_LDADD = \
2109 libsystemd-shared.la \
2112 test_event_SOURCES = \
2113 src/libsystemd-bus/test-event.c
2115 test_event_LDADD = \
2116 libsystemd-shared.la \
2118 libsystemd-id128-internal.la
2121 src/libsystemd-bus/busctl.c
2124 libsystemd-shared.la \
2127 # ------------------------------------------------------------------------------
2137 include_HEADERS += \
2138 src/libudev/libudev.h
2140 lib_LTLIBRARIES += \
2143 libudev_la_SOURCES =\
2144 src/libudev/libudev-private.h \
2145 src/libudev/libudev.c \
2146 src/libudev/libudev-list.c \
2147 src/libudev/libudev-util.c \
2148 src/libudev/libudev-device.c \
2149 src/libudev/libudev-enumerate.c \
2150 src/libudev/libudev-monitor.c \
2151 src/libudev/libudev-queue.c \
2152 src/libudev/libudev-hwdb-def.h \
2153 src/libudev/libudev-hwdb.c
2155 libudev_la_CFLAGS = \
2159 libudev_la_LDFLAGS = \
2161 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2162 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2164 libudev_la_LIBADD = \
2165 libsystemd-shared.la \
2166 libsystemd-daemon-internal.la \
2167 libsystemd-id128-internal.la
2169 pkgconfiglib_DATA += \
2170 src/libudev/libudev.pc
2173 src/libudev/libudev.pc.in \
2174 src/libudev/libudev.sym
2177 src/libudev/libudev.pc \
2182 $(AM_V_at)$(MKDIR_P) $(dir $@)
2183 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2186 $(AM_V_at)$(MKDIR_P) $(dir $@)
2187 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2189 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2190 libudev-install-hook:
2191 libname=libudev.so && $(move-to-rootlibdir)
2193 libudev-uninstall-hook:
2194 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2196 INSTALL_EXEC_HOOKS += libudev-install-hook
2197 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2199 # ------------------------------------------------------------------------------
2200 noinst_LTLIBRARIES += \
2203 libudev_private_la_SOURCES =\
2204 $(libudev_la_SOURCES) \
2205 src/libudev/libudev-device-private.c \
2206 src/libudev/libudev-queue-private.c
2208 libudev_private_la_CFLAGS = \
2210 -fvisibility=default
2212 libudev_private_la_LIBADD = \
2213 libsystemd-shared.la
2215 # ------------------------------------------------------------------------------
2217 $(sysconfdir)/udev/rules.d \
2218 $(sysconfdir)/udev/hwdb.d
2220 dist_network_DATA = \
2221 network/99-default.link
2223 dist_udevrules_DATA += \
2224 rules/99-systemd.rules \
2225 rules/42-usb-hid-pm.rules \
2226 rules/50-udev-default.rules \
2227 rules/60-keyboard.rules \
2228 rules/60-persistent-storage-tape.rules \
2229 rules/60-persistent-serial.rules \
2230 rules/60-persistent-input.rules \
2231 rules/60-persistent-alsa.rules \
2232 rules/60-persistent-storage.rules \
2233 rules/64-btrfs.rules \
2234 rules/75-net-description.rules \
2235 rules/75-tty-description.rules \
2236 rules/78-sound-card.rules \
2237 rules/85-net-configure-link.rules \
2238 rules/95-udev-late.rules
2240 dist_udevhwdb_DATA = \
2241 hwdb/20-pci-vendor-model.hwdb \
2242 hwdb/20-pci-classes.hwdb \
2243 hwdb/20-usb-vendor-model.hwdb \
2244 hwdb/20-usb-classes.hwdb \
2245 hwdb/20-bluetooth-vendor-product.hwdb \
2246 hwdb/20-acpi-vendor.hwdb \
2248 hwdb/60-keyboard.hwdb
2250 udevconfdir = $(sysconfdir)/udev
2251 dist_udevconf_DATA = \
2254 sharepkgconfigdir = $(datadir)/pkgconfig
2255 sharepkgconfig_DATA = \
2259 rules/99-systemd.rules.in \
2263 rules/99-systemd.rules \
2267 units/systemd-udevd.service.in \
2268 units/systemd-udev-trigger.service.in \
2269 units/systemd-udev-settle.service.in
2272 units/systemd-udevd.service \
2273 units/systemd-udev-trigger.service \
2274 units/systemd-udev-settle.service
2276 SOCKETS_TARGET_WANTS += \
2277 systemd-udevd-control.socket \
2278 systemd-udevd-kernel.socket
2279 SYSINIT_TARGET_WANTS += \
2280 systemd-udevd.service \
2281 systemd-udev-trigger.service
2283 rootbin_PROGRAMS += \
2286 rootlibexec_PROGRAMS += \
2289 noinst_LTLIBRARIES += \
2292 src/udev/keyboard-keys.txt: Makefile
2293 $(AM_V_at)$(MKDIR_P) $(dir $@)
2294 $(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/' > $@
2296 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2297 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2299 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2300 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2302 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2303 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2305 libudev_core_la_SOURCES = \
2307 src/udev/udev-event.c \
2308 src/udev/udev-watch.c \
2309 src/udev/udev-node.c \
2310 src/udev/udev-rules.c \
2311 src/udev/udev-ctrl.c \
2312 src/udev/udev-builtin.c \
2313 src/udev/udev-builtin-btrfs.c \
2314 src/udev/udev-builtin-hwdb.c \
2315 src/udev/udev-builtin-input_id.c \
2316 src/udev/udev-builtin-keyboard.c \
2317 src/udev/udev-builtin-net_id.c \
2318 src/udev/udev-builtin-net_setup_link.c \
2319 src/udev/udev-builtin-path_id.c \
2320 src/udev/udev-builtin-usb_id.c \
2321 src/udev/net/link-config.h \
2322 src/udev/net/link-config.c \
2323 src/udev/net/link-config-parse.c \
2324 src/udev/net/ethtool-util.h \
2325 src/udev/net/ethtool-util.c
2327 nodist_libudev_core_la_SOURCES = \
2328 src/udev/keyboard-keys-from-name.h \
2329 src/udev/keyboard-keys-to-name.h \
2330 src/udev/net/link-config-gperf.c
2333 $(nodist_libudev_core_la_SOURCES)
2336 src/udev/keyboard-keys-from-name.gperf \
2337 src/udev/keyboard-keys.txt \
2338 src/udev/net/link-config-gperf.c
2341 src/udev/net/link-config-gperf.gperf
2343 libudev_core_la_CFLAGS = \
2348 libudev_core_la_LIBADD = \
2349 libudev-private.la \
2350 libsystemd-label.la \
2351 libsystemd-daemon-internal.la \
2352 libsystemd-shared.la \
2353 libsystemd-rtnl.la \
2354 libsystemd-id128-internal.la \
2358 libudev_core_la_CPPFLAGS = \
2360 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2363 libudev_core_la_SOURCES += \
2364 src/udev/udev-builtin-firmware.c
2366 dist_udevrules_DATA += \
2367 rules/50-firmware.rules
2371 libudev_core_la_SOURCES += \
2372 src/udev/udev-builtin-kmod.c
2374 dist_udevrules_DATA += \
2375 rules/80-drivers.rules
2379 libudev_core_la_SOURCES += \
2380 src/udev/udev-builtin-blkid.c
2384 libudev_core_la_SOURCES += \
2385 src/udev/udev-builtin-uaccess.c \
2386 src/login/logind-acl.c \
2387 src/login/sd-login.c \
2388 src/systemd/sd-login.h \
2389 src/login/login-shared.c \
2390 src/login/login-shared.h
2392 libudev_core_la_LIBADD += \
2396 systemd_udevd_SOURCES = \
2399 systemd_udevd_LDADD = \
2403 src/udev/udevadm.c \
2404 src/udev/udevadm-info.c \
2405 src/udev/udevadm-control.c \
2406 src/udev/udevadm-monitor.c \
2407 src/udev/udevadm-hwdb.c \
2408 src/udev/udevadm-settle.c \
2409 src/udev/udevadm-trigger.c \
2410 src/udev/udevadm-test.c \
2411 src/udev/udevadm-test-builtin.c
2415 libsystemd-label.la \
2416 libsystemd-shared.la
2418 # Update hwdb on installation. Do not bother if installing
2419 # in DESTDIR, since this is likely for packaging purposes.
2421 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2423 INSTALL_DATA_HOOKS += \
2427 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2429 # ------------------------------------------------------------------------------
2438 test_libudev_SOURCES = \
2439 src/test/test-libudev.c
2441 test_libudev_LDADD = \
2442 libsystemd-label.la \
2443 libsystemd-shared.la \
2446 test_udev_SOURCES = \
2447 src/test/test-udev.c
2451 libsystemd-shared.la \
2457 test_udev_LDADD += \
2464 # packed sysfs test tree
2466 $(AM_V_at)$(MKDIR_P) $(dir $@)
2467 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2471 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2476 test/rules-test.sh \
2477 test/rule-syntax-check.py
2479 # ------------------------------------------------------------------------------
2481 src/udev/ata_id/ata_id.c
2484 libudev-private.la \
2485 libsystemd-shared.la
2487 udevlibexec_PROGRAMS += \
2490 # ------------------------------------------------------------------------------
2491 cdrom_id_SOURCES = \
2492 src/udev/cdrom_id/cdrom_id.c
2496 libsystemd-shared.la
2498 udevlibexec_PROGRAMS += \
2501 dist_udevrules_DATA += \
2502 rules/60-cdrom_id.rules
2504 # ------------------------------------------------------------------------------
2506 src/udev/collect/collect.c
2511 udevlibexec_PROGRAMS += \
2514 # ------------------------------------------------------------------------------
2516 src/udev/scsi_id/scsi_id.c \
2517 src/udev/scsi_id/scsi_serial.c \
2518 src/udev/scsi_id/scsi.h \
2519 src/udev/scsi_id/scsi_id.h
2522 libudev-private.la \
2523 libsystemd-shared.la
2525 udevlibexec_PROGRAMS += \
2529 src/udev/scsi_id/README
2531 # ------------------------------------------------------------------------------
2533 src/udev/v4l_id/v4l_id.c
2538 udevlibexec_PROGRAMS += \
2541 dist_udevrules_DATA += \
2542 rules/60-persistent-v4l.rules
2544 # ------------------------------------------------------------------------------
2545 accelerometer_SOURCES = \
2546 src/udev/accelerometer/accelerometer.c
2548 accelerometer_LDADD = \
2550 libsystemd-shared.la
2552 udevlibexec_PROGRAMS += \
2555 dist_udevrules_DATA += \
2556 rules/61-accelerometer.rules
2558 # ------------------------------------------------------------------------------
2565 libgudev_includedir = \
2566 $(includedir)/gudev-1.0/gudev
2568 libgudev_include_HEADERS = \
2570 src/gudev/gudevenums.h \
2571 src/gudev/gudevenumtypes.h \
2572 src/gudev/gudevtypes.h \
2573 src/gudev/gudevclient.h \
2574 src/gudev/gudevdevice.h \
2575 src/gudev/gudevenumerator.h
2577 lib_LTLIBRARIES += libgudev-1.0.la
2579 pkgconfiglib_DATA += \
2580 src/gudev/gudev-1.0.pc
2583 src/gudev/gudev-1.0.pc
2585 libgudev_1_0_la_SOURCES = \
2586 src/gudev/gudevenums.h \
2587 src/gudev/gudevenumtypes.h \
2588 src/gudev/gudevenumtypes.h\
2589 src/gudev/gudevtypes.h \
2590 src/gudev/gudevclient.h \
2591 src/gudev/gudevclient.c \
2592 src/gudev/gudevdevice.h \
2593 src/gudev/gudevdevice.c \
2594 src/gudev/gudevenumerator.h \
2595 src/gudev/gudevenumerator.c \
2596 src/gudev/gudevprivate.h
2598 nodist_libgudev_1_0_la_SOURCES = \
2599 src/gudev/gudevmarshal.h \
2600 src/gudev/gudevmarshal.c \
2601 src/gudev/gudevenumtypes.h \
2602 src/gudev/gudevenumtypes.c
2605 $(nodist_libgudev_1_0_la_SOURCES)
2607 libgudev_1_0_la_CPPFLAGS = \
2609 -I$(top_builddir)/src\
2610 -I$(top_srcdir)/src\
2611 -I$(top_builddir)/src/gudev \
2612 -I$(top_srcdir)/src/gudev \
2613 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2614 -D_GUDEV_COMPILATION \
2615 -DG_LOG_DOMAIN=\"GUdev\"
2617 libgudev_1_0_la_CFLAGS = \
2619 -fvisibility=default \
2622 libgudev_1_0_la_LIBADD = \
2626 libgudev_1_0_la_LDFLAGS = \
2628 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2629 -export-dynamic -no-undefined \
2630 -export-symbols-regex '^g_udev_.*'
2632 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2633 $(AM_V_at)$(MKDIR_P) $(dir $@)
2634 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2636 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2637 $(AM_V_at)$(MKDIR_P) $(dir $@)
2638 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2639 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2641 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2642 $(AM_V_at)$(MKDIR_P) $(dir $@)
2643 $(AM_V_GEN)glib-mkenums --template $^ > $@
2645 if HAVE_INTROSPECTION
2646 -include $(INTROSPECTION_MAKEFILE)
2648 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2650 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2652 src_gudev_GUdev_1_0_gir_CFLAGS = \
2655 -D_GUDEV_COMPILATION \
2656 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2657 -I$(top_srcdir)/src \
2658 -I$(top_builddir)/src \
2659 -I$(top_srcdir)/src/gudev \
2660 -I$(top_builddir)/src/gudev
2662 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2664 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2665 --pkg-export=gudev-1.0 \
2668 src_gudev_GUdev_1_0_gir_FILES = \
2670 src/gudev/gudevtypes.h \
2671 src/gudev/gudevenums.h \
2672 src/gudev/gudevenumtypes.h \
2673 src/gudev/gudevclient.h \
2674 src/gudev/gudevdevice.h \
2675 src/gudev/gudevenumerator.h \
2676 src/gudev/gudevclient.c \
2677 src/gudev/gudevdevice.c \
2678 src/gudev/gudevenumerator.c
2680 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2681 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2683 girdir = $(datadir)/gir-1.0
2685 src/gudev/GUdev-1.0.gir
2687 typelibsdir = $(libdir)/girepository-1.0
2689 src/gudev/GUdev-1.0.typelib
2691 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2692 endif # HAVE_INTROSPECTION
2694 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2695 libgudev-install-hook:
2696 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2698 libgudev-uninstall-hook:
2699 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2701 INSTALL_EXEC_HOOKS += libgudev-install-hook
2702 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2706 src/gudev/gudev-1.0.pc.in \
2707 src/gudev/gudevmarshal.list \
2708 src/gudev/gudevenumtypes.h.template \
2709 src/gudev/gudevenumtypes.c.template \
2710 src/gudev/gjs-example.js \
2711 src/gudev/seed-example-enum.js \
2712 src/gudev/seed-example.js
2714 # ------------------------------------------------------------------------------
2715 mtd_probe_SOURCES = \
2716 src/udev/mtd_probe/mtd_probe.c \
2717 src/udev/mtd_probe/mtd_probe.h \
2718 src/udev/mtd_probe/probe_smartmedia.c
2720 mtd_probe_CPPFLAGS = \
2723 dist_udevrules_DATA += \
2724 rules/75-probe_mtd.rules
2726 udevlibexec_PROGRAMS += \
2729 # ------------------------------------------------------------------------------
2730 libsystemd_id128_la_SOURCES = \
2731 src/libsystemd-id128/sd-id128.c
2733 libsystemd_id128_la_CFLAGS = \
2737 libsystemd_id128_la_LDFLAGS = \
2739 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2740 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2742 libsystemd_id128_la_LIBADD = \
2743 libsystemd-shared.la
2745 libsystemd_id128_internal_la_SOURCES = \
2746 $(libsystemd_id128_la_SOURCES)
2748 test_id128_SOURCES = \
2749 src/test/test-id128.c
2751 test_id128_LDADD = \
2752 libsystemd-shared.la \
2753 libsystemd-id128-internal.la \
2754 libsystemd-daemon.la
2759 pkginclude_HEADERS += \
2760 src/systemd/sd-id128.h
2762 lib_LTLIBRARIES += \
2765 noinst_LTLIBRARIES += \
2766 libsystemd-id128-internal.la
2768 pkgconfiglib_DATA += \
2769 src/libsystemd-id128/libsystemd-id128.pc
2771 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2772 libsystemd-id128-install-hook:
2773 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2775 libsystemd-id128-uninstall-hook:
2776 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2778 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2779 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2782 src/libsystemd-id128/libsystemd-id128.pc.in \
2783 src/libsystemd-id128/libsystemd-id128.sym
2785 # ------------------------------------------------------------------------------
2787 rootlibexec_PROGRAMS += \
2790 systemd_activate_SOURCES = \
2791 src/activate/activate.c
2793 systemd_activate_LDADD = \
2794 libsystemd-shared.la \
2795 libsystemd-daemon.la
2797 # ------------------------------------------------------------------------------
2798 systemd_journald_SOURCES = \
2799 src/journal/journald.c \
2800 src/journal/journald-server.h
2802 systemd_journald_LDADD = \
2803 libsystemd-journal-internal.la \
2804 libsystemd-shared.la \
2805 libsystemd-id128-internal.la
2807 systemd_cat_SOURCES = \
2810 systemd_cat_LDADD = \
2811 libsystemd-shared.la \
2812 libsystemd-journal-internal.la
2814 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2815 journalctl_CFLAGS = \
2818 journalctl_SOURCES = \
2819 src/journal/journalctl.c
2821 journalctl_LDADD = \
2822 libsystemd-shared.la \
2823 libsystemd-journal-internal.la \
2824 libsystemd-id128-internal.la \
2828 journalctl_LDADD += \
2833 journalctl_SOURCES += \
2834 src/journal/journal-qrcode.c \
2835 src/journal/journal-qrcode.h
2837 journalctl_CFLAGS += \
2840 journalctl_LDADD += \
2844 test_journal_SOURCES = \
2845 src/journal/test-journal.c
2847 test_journal_LDADD = \
2848 libsystemd-shared.la \
2849 libsystemd-journal-internal.la \
2850 libsystemd-id128-internal.la
2852 test_journal_send_SOURCES = \
2853 src/journal/test-journal-send.c
2855 test_journal_send_LDADD = \
2856 libsystemd-shared.la \
2857 libsystemd-journal-internal.la \
2858 libsystemd-id128-internal.la
2860 test_journal_syslog_SOURCES = \
2861 src/journal/test-journal-syslog.c
2863 test_journal_syslog_LDADD = \
2864 libsystemd-journal-internal.la \
2865 libsystemd-shared.la \
2866 libsystemd-id128-internal.la
2868 test_journal_match_SOURCES = \
2869 src/journal/test-journal-match.c
2871 test_journal_match_LDADD = \
2872 libsystemd-shared.la \
2873 libsystemd-journal-internal.la \
2874 libsystemd-id128-internal.la
2876 test_journal_enum_SOURCES = \
2877 src/journal/test-journal-enum.c
2879 test_journal_enum_LDADD = \
2880 libsystemd-shared.la \
2881 libsystemd-journal-internal.la \
2882 libsystemd-id128-internal.la
2884 test_journal_stream_SOURCES = \
2885 src/journal/test-journal-stream.c
2887 test_journal_stream_LDADD = \
2888 libsystemd-shared.la \
2889 libsystemd-journal-internal.la \
2890 libsystemd-id128-internal.la
2892 test_journal_init_SOURCES = \
2893 src/journal/test-journal-init.c
2895 test_journal_init_LDADD = \
2896 libsystemd-shared.la \
2897 libsystemd-daemon-internal.la \
2899 libsystemd-journal.la
2901 test_journal_verify_SOURCES = \
2902 src/journal/test-journal-verify.c
2904 test_journal_verify_LDADD = \
2905 libsystemd-shared.la \
2906 libsystemd-journal-internal.la \
2907 libsystemd-id128-internal.la
2909 test_journal_interleaving_SOURCES = \
2910 src/journal/test-journal-interleaving.c
2912 test_journal_interleaving_LDADD = \
2913 libsystemd-shared.la \
2914 libsystemd-journal-internal.la \
2915 libsystemd-id128-internal.la
2917 test_mmap_cache_SOURCES = \
2918 src/journal/test-mmap-cache.c
2920 test_mmap_cache_LDADD = \
2921 libsystemd-shared.la \
2922 libsystemd-journal-internal.la
2924 test_catalog_SOURCES = \
2925 src/journal/test-catalog.c
2927 test_catalog_CFLAGS = \
2929 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
2931 test_catalog_LDADD = \
2932 libsystemd-shared.la \
2933 libsystemd-label.la \
2934 libsystemd-journal-internal.la \
2935 libsystemd-id128-internal.la
2937 libsystemd_journal_la_SOURCES = \
2938 src/journal/sd-journal.c \
2939 src/systemd/sd-journal.h \
2940 src/systemd/_sd-common.h \
2941 src/journal/journal-file.c \
2942 src/journal/journal-file.h \
2943 src/journal/journal-vacuum.c \
2944 src/journal/journal-vacuum.h \
2945 src/journal/journal-verify.c \
2946 src/journal/journal-verify.h \
2947 src/journal/lookup3.c \
2948 src/journal/lookup3.h \
2949 src/journal/journal-send.c \
2950 src/journal/journal-def.h \
2951 src/journal/compress.h \
2952 src/journal/catalog.c \
2953 src/journal/catalog.h \
2954 src/journal/mmap-cache.c \
2955 src/journal/mmap-cache.h
2957 libsystemd_journal_la_CFLAGS = \
2961 libsystemd_journal_la_LDFLAGS = \
2963 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2964 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2966 libsystemd_journal_la_LIBADD = \
2967 libsystemd-shared.la \
2968 libsystemd-label.la \
2969 libsystemd-daemon-internal.la \
2971 libsystemd-id128-internal.la
2973 libsystemd_journal_internal_la_SOURCES = \
2974 $(libsystemd_journal_la_SOURCES) \
2975 src/journal/journald-kmsg.c \
2976 src/journal/journald-kmsg.h \
2977 src/journal/journald-syslog.c \
2978 src/journal/journald-syslog.h \
2979 src/journal/journald-stream.c \
2980 src/journal/journald-stream.h \
2981 src/journal/journald-server.c \
2982 src/journal/journald-server.h \
2983 src/journal/journald-console.c \
2984 src/journal/journald-console.h \
2985 src/journal/journald-native.c \
2986 src/journal/journald-native.h \
2987 src/journal/journald-rate-limit.c \
2988 src/journal/journald-rate-limit.h \
2989 src/journal/journal-internal.h
2991 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2992 libsystemd_journal_internal_la_CFLAGS = \
2995 libsystemd_journal_internal_la_LIBADD = \
2996 libsystemd-audit.la \
2997 libsystemd-daemon.la \
2999 libsystemd-shared.la \
3002 nodist_libsystemd_journal_internal_la_SOURCES = \
3003 src/journal/journald-gperf.c
3006 libsystemd_journal_internal_la_LIBADD += \
3007 libsystemd-login-internal.la
3011 libsystemd_journal_internal_la_LIBADD += \
3016 libsystemd_journal_la_SOURCES += \
3017 src/journal/compress.c
3019 libsystemd_journal_la_CFLAGS += \
3022 libsystemd_journal_la_LIBADD += \
3025 libsystemd_journal_internal_la_CFLAGS += \
3028 libsystemd_journal_internal_la_LIBADD += \
3034 libsystemd_journal_la_SOURCES += \
3035 src/journal/journal-authenticate.c \
3036 src/journal/journal-authenticate.h \
3037 src/journal/fsprg.c \
3040 libsystemd_journal_la_CFLAGS += \
3044 libsystemd_journal_la_LIBADD += \
3047 libsystemd_journal_internal_la_CFLAGS += \
3051 libsystemd_journal_internal_la_LIBADD += \
3055 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3056 # needed. Also, grant read access to new journal files to members of
3057 # "adm" and "wheel".
3058 libsystemd-journal-install-hook:
3059 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3060 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3061 -chown 0:0 $(DESTDIR)/var/log/journal
3062 -chmod 755 $(DESTDIR)/var/log/journal
3063 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3064 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3066 libsystemd-journal-uninstall-hook:
3067 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3069 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3070 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3072 # ------------------------------------------------------------------------------
3074 # Update catalog on installation. Do not bother if installing
3075 # in DESTDIR, since this is likely for packaging purposes.
3076 catalog-update-hook:
3077 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3079 INSTALL_DATA_HOOKS += \
3082 catalog-remove-hook:
3083 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3085 UNINSTALL_DATA_HOOKS += \
3094 test-journal-syslog \
3095 test-journal-match \
3096 test-journal-stream \
3098 test-journal-verify \
3099 test-journal-interleaving \
3103 pkginclude_HEADERS += \
3104 src/systemd/sd-journal.h \
3105 src/systemd/sd-messages.h \
3106 src/systemd/_sd-common.h
3108 lib_LTLIBRARIES += \
3109 libsystemd-journal.la
3111 noinst_LTLIBRARIES += \
3112 libsystemd-journal-internal.la
3114 rootlibexec_PROGRAMS += \
3117 rootbin_PROGRAMS += \
3123 dist_systemunit_DATA += \
3124 units/systemd-journald.socket
3126 nodist_systemunit_DATA += \
3127 units/systemd-journald.service \
3128 units/systemd-journal-flush.service
3130 dist_pkgsysconf_DATA += \
3131 src/journal/journald.conf
3133 pkgconfiglib_DATA += \
3134 src/journal/libsystemd-journal.pc
3136 dist_catalog_DATA = \
3137 catalog/systemd.catalog
3139 SOCKETS_TARGET_WANTS += \
3140 systemd-journald.socket
3141 SYSINIT_TARGET_WANTS += \
3142 systemd-journald.service \
3143 systemd-journal-flush.service
3146 src/journal/libsystemd-journal.pc.in \
3147 src/journal/libsystemd-journal.sym \
3148 units/systemd-journald.service.in \
3149 units/systemd-journal-flush.service.in \
3150 src/journal/journald-gperf.gperf
3153 src/journal/journald-gperf.c
3155 # ------------------------------------------------------------------------------
3157 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3159 rootlibexec_PROGRAMS += \
3160 systemd-journal-gatewayd
3162 systemd_journal_gatewayd_SOURCES = \
3163 src/journal/journal-gatewayd.c \
3164 src/journal/microhttpd-util.h \
3165 src/journal/microhttpd-util.c
3167 systemd_journal_gatewayd_LDADD = \
3168 libsystemd-shared.la \
3169 libsystemd-logs.la \
3170 libsystemd-journal-internal.la \
3171 libsystemd-id128-internal.la \
3172 libsystemd-daemon.la \
3176 systemd_journal_gatewayd_CFLAGS = \
3178 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3179 $(MICROHTTPD_CFLAGS)
3181 dist_systemunit_DATA += \
3182 units/systemd-journal-gatewayd.socket
3184 nodist_systemunit_DATA += \
3185 units/systemd-journal-gatewayd.service
3187 dist_gatewayddocumentroot_DATA = \
3188 src/journal/browse.html
3193 units/systemd-journal-gatewayd.service.in
3195 # ------------------------------------------------------------------------------
3197 systemd_socket_proxyd_SOURCES = \
3198 src/socket-proxy/socket-proxyd.c
3200 systemd_socket_proxyd_LDADD = \
3201 libsystemd-shared.la \
3202 libsystemd-logs.la \
3203 libsystemd-journal-internal.la \
3204 libsystemd-id128-internal.la \
3205 libsystemd-daemon.la \
3208 # ------------------------------------------------------------------------------
3210 systemd_coredump_SOURCES = \
3211 src/journal/coredump.c
3213 systemd_coredump_LDADD = \
3214 libsystemd-journal-internal.la \
3215 libsystemd-label.la \
3216 libsystemd-shared.la
3219 systemd_coredump_LDADD += \
3220 libsystemd-login-internal.la
3223 rootlibexec_PROGRAMS += \
3226 systemd_coredumpctl_SOURCES = \
3227 src/journal/coredumpctl.c
3229 systemd_coredumpctl_LDADD = \
3230 libsystemd-shared.la \
3231 libsystemd-journal.la \
3232 libsystemd-journal-internal.la \
3233 libsystemd-id128-internal.la
3238 dist_bashcompletion_DATA += \
3239 shell-completion/bash/systemd-coredumpctl
3241 dist_zshcompletion_DATA += \
3242 shell-completion/zsh/_systemd-coredumpctl
3245 sysctl.d/50-coredump.conf
3248 sysctl.d/50-coredump.conf
3252 sysctl.d/50-coredump.conf.in
3254 # ------------------------------------------------------------------------------
3256 systemd_binfmt_SOURCES = \
3259 systemd_binfmt_LDADD = \
3260 libsystemd-shared.la
3262 rootlibexec_PROGRAMS += \
3265 dist_systemunit_DATA += \
3266 units/proc-sys-fs-binfmt_misc.automount \
3267 units/proc-sys-fs-binfmt_misc.mount
3269 nodist_systemunit_DATA += \
3270 units/systemd-binfmt.service
3273 $(prefix)/lib/binfmt.d \
3274 $(sysconfdir)/binfmt.d
3276 SYSINIT_TARGET_WANTS += \
3277 systemd-binfmt.service \
3278 proc-sys-fs-binfmt_misc.automount
3283 units/systemd-binfmt.service.in
3285 # ------------------------------------------------------------------------------
3287 systemd_vconsole_setup_SOURCES = \
3288 src/vconsole/vconsole-setup.c
3290 systemd_vconsole_setup_LDADD = \
3291 libsystemd-shared.la
3293 rootlibexec_PROGRAMS += \
3294 systemd-vconsole-setup
3296 nodist_systemunit_DATA += \
3297 units/systemd-vconsole-setup.service
3299 SYSINIT_TARGET_WANTS += \
3300 systemd-vconsole-setup.service
3304 units/systemd-vconsole-setup.service.in
3306 # ------------------------------------------------------------------------------
3308 systemd_readahead_SOURCES = \
3309 src/readahead/readahead.c \
3310 src/readahead/readahead-collect.c \
3311 src/readahead/readahead-replay.c \
3312 src/readahead/readahead-analyze.c \
3313 src/readahead/readahead-common.c \
3314 src/readahead/readahead-common.h
3316 systemd_readahead_LDADD = \
3317 libsystemd-shared.la \
3318 libsystemd-daemon.la \
3322 src/readahead/sd-readahead.c \
3323 src/systemd/sd-readahead.h
3325 rootlibexec_PROGRAMS += \
3328 dist_systemunit_DATA += \
3329 units/systemd-readahead-drop.service \
3330 units/systemd-readahead-done.timer
3332 nodist_systemunit_DATA += \
3333 units/systemd-readahead-collect.service \
3334 units/systemd-readahead-replay.service \
3335 units/systemd-readahead-done.service
3340 units/systemd-readahead-collect.service.in \
3341 units/systemd-readahead-replay.service.in \
3342 units/systemd-readahead-done.service.in
3344 # ------------------------------------------------------------------------------
3346 systemd_bootchart_SOURCES = \
3347 src/bootchart/bootchart.c \
3348 src/bootchart/bootchart.h \
3349 src/bootchart/store.c \
3350 src/bootchart/store.h \
3351 src/bootchart/svg.c \
3354 systemd_bootchart_LDADD = \
3355 libsystemd-shared.la \
3356 libsystemd-journal.la
3358 rootlibexec_PROGRAMS += \
3361 dist_pkgsysconf_DATA += \
3362 src/bootchart/bootchart.conf
3365 # ------------------------------------------------------------------------------
3366 if ENABLE_QUOTACHECK
3367 rootlibexec_PROGRAMS += \
3370 nodist_systemunit_DATA += \
3371 units/systemd-quotacheck.service
3373 systemd_quotacheck_SOURCES = \
3374 src/quotacheck/quotacheck.c
3376 systemd_quotacheck_LDADD = \
3377 libsystemd-shared.la
3381 units/systemd-quotacheck.service.in
3383 nodist_systemunit_DATA += \
3384 units/quotaon.service
3386 # ------------------------------------------------------------------------------
3387 if ENABLE_RANDOMSEED
3388 rootlibexec_PROGRAMS += \
3391 nodist_systemunit_DATA += \
3392 units/systemd-random-seed.service
3394 systemd_random_seed_SOURCES = \
3395 src/random-seed/random-seed.c
3397 systemd_random_seed_LDADD = \
3398 libsystemd-label.la \
3399 libsystemd-shared.la
3401 SYSINIT_TARGET_WANTS += \
3402 systemd-random-seed.service
3407 units/systemd-random-seed.service.in
3409 # ------------------------------------------------------------------------------
3411 rootlibexec_PROGRAMS += \
3414 nodist_systemunit_DATA += \
3415 units/systemd-backlight@.service
3417 systemd_backlight_SOURCES = \
3418 src/backlight/backlight.c
3420 systemd_backlight_LDADD = \
3421 libsystemd-label.la \
3422 libsystemd-shared.la \
3427 units/systemd-backlight@.service.in
3429 # ------------------------------------------------------------------------------
3431 rootlibexec_PROGRAMS += \
3434 nodist_systemunit_DATA += \
3435 units/systemd-rfkill@.service
3437 systemd_rfkill_SOURCES = \
3440 systemd_rfkill_LDADD = \
3441 libsystemd-label.la \
3442 libsystemd-shared.la \
3447 units/systemd-rfkill@.service.in
3449 # ------------------------------------------------------------------------------
3450 if HAVE_LIBCRYPTSETUP
3451 rootlibexec_PROGRAMS += \
3454 systemgenerator_PROGRAMS += \
3455 systemd-cryptsetup-generator
3457 dist_systemunit_DATA += \
3458 units/cryptsetup.target
3460 systemd_cryptsetup_SOURCES = \
3461 src/cryptsetup/cryptsetup.c
3463 systemd_cryptsetup_CFLAGS = \
3465 $(LIBCRYPTSETUP_CFLAGS)
3467 systemd_cryptsetup_LDADD = \
3468 libsystemd-label.la \
3469 libsystemd-shared.la \
3471 $(LIBCRYPTSETUP_LIBS)
3473 systemd_cryptsetup_generator_SOURCES = \
3474 src/cryptsetup/cryptsetup-generator.c
3476 systemd_cryptsetup_generator_LDADD = \
3477 libsystemd-label.la \
3478 libsystemd-shared.la
3480 SYSINIT_TARGET_WANTS += \
3485 # ------------------------------------------------------------------------------
3487 systemd_hostnamed_SOURCES = \
3488 src/hostname/hostnamed.c
3490 systemd_hostnamed_LDADD = \
3491 libsystemd-label.la \
3492 libsystemd-shared.la \
3493 libsystemd-daemon.la \
3496 rootlibexec_PROGRAMS += \
3499 nodist_systemunit_DATA += \
3500 units/systemd-hostnamed.service
3502 dist_dbuspolicy_DATA += \
3503 src/hostname/org.freedesktop.hostname1.conf
3505 dist_dbussystemservice_DATA += \
3506 src/hostname/org.freedesktop.hostname1.service
3508 polkitpolicy_files += \
3509 src/hostname/org.freedesktop.hostname1.policy
3511 SYSTEM_UNIT_ALIASES += \
3512 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3514 hostnamectl_SOURCES = \
3515 src/hostname/hostnamectl.c
3517 hostnamectl_CFLAGS = \
3521 hostnamectl_LDADD = \
3522 libsystemd-shared.la \
3523 libsystemd-dbus.la \
3524 libsystemd-id128-internal.la
3529 dist_bashcompletion_DATA += \
3530 shell-completion/bash/hostnamectl
3532 dist_zshcompletion_DATA += \
3533 shell-completion/zsh/_hostnamectl
3537 polkitpolicy_in_files += \
3538 src/hostname/org.freedesktop.hostname1.policy.in
3541 units/systemd-hostnamed.service.in
3543 # ------------------------------------------------------------------------------
3545 systemd_localed_SOURCES = \
3546 src/locale/localed.c
3548 systemd_localed_LDADD = \
3549 libsystemd-label.la \
3550 libsystemd-shared.la \
3551 libsystemd-daemon.la \
3554 nodist_systemunit_DATA += \
3555 units/systemd-localed.service
3557 rootlibexec_PROGRAMS += \
3560 dist_dbuspolicy_DATA += \
3561 src/locale/org.freedesktop.locale1.conf
3563 dist_dbussystemservice_DATA += \
3564 src/locale/org.freedesktop.locale1.service
3566 polkitpolicy_files += \
3567 src/locale/org.freedesktop.locale1.policy
3569 SYSTEM_UNIT_ALIASES += \
3570 systemd-localed.service dbus-org.freedesktop.locale1.service
3572 dist_pkgdata_DATA += \
3573 src/locale/kbd-model-map
3575 dist_noinst_SCRIPT = \
3576 src/locale/generate-kbd-model-map
3578 update-kbd-model-map: src/locale/generate-kbd-model-map
3579 $PYTHON $< > src/locale/kbd-model-map
3581 localectl_SOURCES = \
3582 src/locale/localectl.c
3584 localectl_CFLAGS = \
3589 libsystemd-shared.la \
3590 libsystemd-dbus.la \
3591 libsystemd-id128-internal.la
3596 dist_bashcompletion_DATA += \
3597 shell-completion/bash/localectl
3599 dist_zshcompletion_DATA += \
3600 shell-completion/zsh/_localectl
3604 polkitpolicy_in_files += \
3605 src/locale/org.freedesktop.locale1.policy.in
3608 units/systemd-localed.service.in
3610 # ------------------------------------------------------------------------------
3612 systemd_timedated_SOURCES = \
3613 src/timedate/timedated.c
3615 systemd_timedated_LDADD = \
3616 libsystemd-label.la \
3617 libsystemd-shared.la \
3618 libsystemd-daemon.la \
3621 rootlibexec_PROGRAMS += \
3624 dist_dbussystemservice_DATA += \
3625 src/timedate/org.freedesktop.timedate1.service
3627 dist_dbuspolicy_DATA += \
3628 src/timedate/org.freedesktop.timedate1.conf
3630 nodist_systemunit_DATA += \
3631 units/systemd-timedated.service
3633 polkitpolicy_files += \
3634 src/timedate/org.freedesktop.timedate1.policy
3637 $(prefix)/lib/systemd/ntp-units.d \
3638 $(sysconfdir)/systemd/ntp-units.d
3640 SYSTEM_UNIT_ALIASES += \
3641 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3643 timedatectl_SOURCES = \
3644 src/timedate/timedatectl.c
3646 timedatectl_CFLAGS = \
3650 timedatectl_LDADD = \
3651 libsystemd-shared.la \
3657 dist_bashcompletion_DATA += \
3658 shell-completion/bash/timedatectl
3660 dist_zshcompletion_DATA += \
3661 shell-completion/zsh/_timedatectl
3664 polkitpolicy_in_files += \
3665 src/timedate/org.freedesktop.timedate1.policy.in
3668 units/systemd-timedated.service.in
3670 # ------------------------------------------------------------------------------
3672 libnss_myhostname_la_SOURCES = \
3673 src/nss-myhostname/nss-myhostname.c \
3674 src/nss-myhostname/ifconf.h \
3675 src/nss-myhostname/netlink.c
3677 libnss_myhostname_la_LDFLAGS = \
3685 lib_LTLIBRARIES += \
3686 libnss_myhostname.la
3689 # ------------------------------------------------------------------------------
3691 systemd_machined_SOURCES = \
3692 src/machine/machined.c \
3693 src/machine/machined.h
3695 systemd_machined_CFLAGS = \
3696 $(libsystemd_machine_core_la_CFLAGS)
3698 systemd_machined_LDADD = \
3699 libsystemd-machine-core.la \
3700 $(libsystemd_machine_core_la_LIBADD)
3702 rootlibexec_PROGRAMS += \
3705 libsystemd_machine_core_la_SOURCES = \
3706 src/machine/machined-dbus.c \
3707 src/machine/machine.c \
3708 src/machine/machine.h \
3709 src/machine/machine-dbus.c
3711 libsystemd_machine_core_la_CFLAGS = \
3715 libsystemd_machine_core_la_LIBADD = \
3716 libsystemd-label.la \
3717 libsystemd-audit.la \
3718 libsystemd-shared.la \
3719 libsystemd-daemon.la \
3720 libsystemd-dbus.la \
3721 libsystemd-id128-internal.la \
3724 noinst_LTLIBRARIES += \
3725 libsystemd-machine-core.la
3727 machinectl_SOURCES = \
3728 src/machine/machinectl.c
3730 machinectl_CFLAGS = \
3734 machinectl_LDADD = \
3735 libsystemd-shared.la \
3736 libsystemd-dbus.la \
3739 rootbin_PROGRAMS += \
3742 test_machine_tables_SOURCES = \
3743 src/machine/test-machine-tables.c
3745 test_machine_tables_CFLAGS = \
3749 test_machine_tables_LDADD = \
3750 libsystemd-machine-core.la
3755 nodist_systemunit_DATA += \
3756 units/systemd-machined.service
3758 dist_systemunit_DATA += \
3761 dist_dbussystemservice_DATA += \
3762 src/machine/org.freedesktop.machine1.service
3764 dist_dbuspolicy_DATA += \
3765 src/machine/org.freedesktop.machine1.conf
3767 dist_zshcompletion_DATA += \
3768 shell-completion/zsh/_machinectl
3770 SYSTEM_UNIT_ALIASES += \
3771 systemd-machined.service dbus-org.freedesktop.machine1.service
3774 units/systemd-machined.service.in
3778 # ------------------------------------------------------------------------------
3780 systemd_logind_SOURCES = \
3781 src/login/logind.c \
3784 nodist_systemd_logind_SOURCES = \
3785 src/login/logind-gperf.c
3787 systemd_logind_CFLAGS = \
3788 $(libsystemd_logind_core_la_CFLAGS)
3790 systemd_logind_LDADD = \
3791 libsystemd-logind-core.la \
3792 $(libsystemd_logind_core_la_LIBADD)
3794 libsystemd_logind_core_la_SOURCES = \
3795 src/login/logind-core.c \
3796 src/login/logind-dbus.c \
3797 src/login/logind-device.c \
3798 src/login/logind-device.h \
3799 src/login/logind-button.c \
3800 src/login/logind-button.h \
3801 src/login/logind-action.c \
3802 src/login/logind-action.h \
3803 src/login/logind-seat.c \
3804 src/login/logind-seat.h \
3805 src/login/logind-session.c \
3806 src/login/logind-session.h \
3807 src/login/logind-session-device.c \
3808 src/login/logind-session-device.h \
3809 src/login/logind-user.c \
3810 src/login/logind-user.h \
3811 src/login/logind-inhibit.c \
3812 src/login/logind-inhibit.h \
3813 src/login/logind-session-dbus.c \
3814 src/login/logind-seat-dbus.c \
3815 src/login/logind-user-dbus.c \
3816 src/login/logind-acl.h \
3817 src/login/login-shared.c \
3818 src/login/login-shared.h
3820 libsystemd_logind_core_la_CFLAGS = \
3824 libsystemd_logind_core_la_LIBADD = \
3825 libsystemd-label.la \
3826 libsystemd-audit.la \
3827 libsystemd-shared.la \
3828 libsystemd-daemon.la \
3829 libsystemd-dbus.la \
3830 libsystemd-id128-internal.la \
3834 libsystemd_logind_core_la_SOURCES += \
3835 src/login/logind-acl.c
3837 libsystemd_logind_core_la_LIBADD += \
3841 noinst_LTLIBRARIES += \
3842 libsystemd-logind-core.la
3844 systemd_user_sessions_SOURCES = \
3845 src/login/user-sessions.c
3847 systemd_user_sessions_LDADD = \
3848 libsystemd-shared.la
3850 rootlibexec_PROGRAMS += \
3852 systemd-user-sessions
3854 loginctl_SOURCES = \
3855 src/login/loginctl.c \
3856 src/login/sysfs-show.c
3863 libsystemd-shared.la \
3864 libsystemd-dbus.la \
3867 rootbin_PROGRAMS += \
3870 dist_bashcompletion_DATA += \
3871 shell-completion/bash/loginctl
3873 dist_zshcompletion_DATA += \
3874 shell-completion/zsh/_loginctl \
3875 shell-completion/zsh/_systemd-inhibit
3877 systemd_inhibit_SOURCES = \
3880 systemd_inhibit_CFLAGS = \
3884 systemd_inhibit_LDADD = \
3885 libsystemd-shared.la \
3888 rootbin_PROGRAMS += \
3891 test_login_SOURCES = \
3892 src/login/test-login.c
3894 test_login_LDADD = \
3895 libsystemd-login-internal.la \
3896 libsystemd-shared.la
3898 test_login_shared_SOURCES = \
3899 src/login/test-login-shared.c
3901 test_login_shared_LDADD = \
3902 libsystemd-login-internal.la \
3903 libsystemd-shared.la
3905 test_inhibit_SOURCES = \
3906 src/login/test-inhibit.c
3908 test_inhibit_LDADD = \
3909 libsystemd-shared.la \
3912 test_inhibit_CFLAGS = \
3916 test_login_tables_SOURCES = \
3917 src/login/test-login-tables.c
3919 test_login_tables_CFLAGS = \
3923 test_login_tables_LDADD = \
3924 libsystemd-logind-core.la
3934 libsystemd_login_la_SOURCES = \
3935 src/login/sd-login.c \
3936 src/systemd/sd-login.h \
3937 src/login/login-shared.c \
3938 src/login/login-shared.h
3940 libsystemd_login_la_CFLAGS = \
3944 libsystemd_login_la_LDFLAGS = \
3946 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3947 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3949 libsystemd_login_la_LIBADD = \
3950 libsystemd-shared.la \
3951 libsystemd-daemon-internal.la \
3954 libsystemd_login_internal_la_SOURCES = \
3955 $(libsystemd_login_la_SOURCES)
3958 pam_systemd_la_SOURCES = \
3959 src/login/pam-module.c
3961 pam_systemd_la_CFLAGS = \
3967 pam_systemd_la_LDFLAGS = \
3973 -export-symbols-regex '^pam_sm_.*'
3975 pam_systemd_la_LIBADD = \
3976 libsystemd-audit.la \
3977 libsystemd-dbus.la \
3978 libsystemd-shared.la \
3979 libsystemd-daemon-internal.la \
3983 pamlib_LTLIBRARIES = \
3986 dist_pamconf_DATA = \
3987 src/login/systemd-user
3990 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3991 libsystemd-login-install-hook:
3992 libname=libsystemd-login.so && $(move-to-rootlibdir)
3994 libsystemd-login-uninstall-hook:
3995 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3997 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3998 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
4000 nodist_systemunit_DATA += \
4001 units/systemd-logind.service \
4002 units/systemd-user-sessions.service
4004 dist_systemunit_DATA += \
4007 dist_dbussystemservice_DATA += \
4008 src/login/org.freedesktop.login1.service
4010 dist_dbuspolicy_DATA += \
4011 src/login/org.freedesktop.login1.conf
4013 dist_pkgsysconf_DATA += \
4014 src/login/logind.conf
4016 pkginclude_HEADERS += \
4017 src/systemd/sd-login.h
4019 lib_LTLIBRARIES += \
4022 noinst_LTLIBRARIES += \
4023 libsystemd-login-internal.la
4025 pkgconfiglib_DATA += \
4026 src/login/libsystemd-login.pc
4028 polkitpolicy_files += \
4029 src/login/org.freedesktop.login1.policy
4034 MULTI_USER_TARGET_WANTS += \
4035 systemd-logind.service \
4036 systemd-user-sessions.service
4038 SYSTEM_UNIT_ALIASES += \
4039 systemd-logind.service dbus-org.freedesktop.login1.service
4041 systemd_multi_seat_x_SOURCES = \
4042 src/login/multi-seat-x.c
4044 systemd_multi_seat_x_LDADD = \
4045 libsystemd-label.la \
4046 libsystemd-shared.la
4048 rootlibexec_PROGRAMS += \
4049 systemd-multi-seat-x
4051 dist_udevrules_DATA += \
4052 src/login/70-uaccess.rules \
4053 src/login/70-power-switch.rules
4055 nodist_udevrules_DATA += \
4056 src/login/71-seat.rules \
4057 src/login/73-seat-late.rules
4060 src/login/logind-gperf.c \
4061 src/login/71-seat.rules \
4062 src/login/73-seat-late.rules
4065 polkitpolicy_in_files += \
4066 src/login/org.freedesktop.login1.policy.in
4069 src/login/logind-gperf.gperf \
4070 src/login/libsystemd-login.pc.in \
4071 src/login/libsystemd-login.sym \
4072 src/login/71-seat.rules.in \
4073 src/login/73-seat-late.rules.in \
4074 units/systemd-logind.service.in \
4075 units/systemd-user-sessions.service.in
4077 # ------------------------------------------------------------------------------
4078 if HAVE_PYTHON_DEVEL
4079 pkgpyexec_LTLIBRARIES = \
4086 _journal_la_SOURCES = \
4087 src/python-systemd/_journal.c
4089 _journal_la_CFLAGS = \
4091 -fvisibility=default \
4092 $(PYTHON_DEVEL_CFLAGS)
4094 _journal_la_LDFLAGS = \
4100 _journal_la_LIBADD = \
4101 $(PYTHON_DEVEL_LIBS) \
4102 libsystemd-journal.la
4104 id128_la_SOURCES = \
4105 src/python-systemd/id128.c \
4106 src/python-systemd/id128-constants.h \
4107 src/python-systemd/pyutil.c \
4108 src/python-systemd/pyutil.h
4112 -fvisibility=default \
4113 $(PYTHON_DEVEL_CFLAGS) \
4114 -I$(top_builddir)/src/python-systemd
4116 id128_la_LDFLAGS = \
4123 $(PYTHON_DEVEL_LIBS) \
4126 _daemon_la_SOURCES = \
4127 src/python-systemd/_daemon.c \
4128 src/python-systemd/pyutil.c \
4129 src/python-systemd/pyutil.h
4131 _daemon_la_CFLAGS = \
4133 -fvisibility=default \
4134 $(PYTHON_DEVEL_CFLAGS) \
4135 -I$(top_builddir)/src/python-systemd
4137 _daemon_la_LDFLAGS = \
4143 _daemon_la_LIBADD = \
4144 $(PYTHON_DEVEL_LIBS) \
4145 libsystemd-daemon.la
4147 _reader_la_SOURCES = \
4148 src/python-systemd/_reader.c \
4149 src/python-systemd/pyutil.c \
4150 src/python-systemd/pyutil.h
4152 _reader_la_CFLAGS = \
4154 -fvisibility=default \
4155 $(PYTHON_DEVEL_CFLAGS)
4157 _reader_la_LDFLAGS = \
4163 _reader_la_LIBADD = \
4164 $(PYTHON_DEVEL_LIBS) \
4165 libsystemd-journal.la \
4166 libsystemd-id128.la \
4167 libsystemd-shared.la \
4168 libsystemd-daemon-internal.la \
4171 login_la_SOURCES = \
4172 src/python-systemd/login.c \
4173 src/python-systemd/pyutil.c \
4174 src/python-systemd/pyutil.h
4178 -fvisibility=default \
4179 $(PYTHON_DEVEL_CFLAGS)
4181 login_la_LDFLAGS = \
4188 $(PYTHON_DEVEL_LIBS) \
4189 libsystemd-journal.la \
4190 libsystemd-login.la \
4191 libsystemd-shared.la \
4192 libsystemd-daemon-internal.la \
4195 dist_pkgpyexec_PYTHON = \
4196 src/python-systemd/journal.py \
4197 src/python-systemd/daemon.py \
4198 src/python-systemd/__init__.py
4200 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4201 $(AM_V_at)$(MKDIR_P) $(dir $@)
4202 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4205 src/python-systemd/id128-constants.h
4207 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4209 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4210 $(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/
4211 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4214 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4215 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4218 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4219 $(MAKE) DESTDIR="$$dir" install && \
4220 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4225 CLEAN_LOCAL_HOOKS += clean-sphinx
4228 -rm -rf docs/html/python-systemd/
4230 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4232 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4233 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4235 # ------------------------------------------------------------------------------
4237 '|rootlibexecdir=$(rootlibexecdir)|' \
4238 '|rootbindir=$(rootbindir)|' \
4239 '|bindir=$(bindir)|' \
4240 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4241 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4242 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4243 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4244 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4245 '|pkgdatadir=$(pkgdatadir)|' \
4246 '|systemunitdir=$(systemunitdir)|' \
4247 '|userunitdir=$(userunitdir)|' \
4248 '|systempresetdir=$(systempresetdir)|' \
4249 '|userpresetdir=$(userpresetdir)|' \
4250 '|udevhwdbdir=$(udevhwdbdir)|' \
4251 '|udevrulesdir=$(udevrulesdir)|' \
4252 '|catalogdir=$(catalogdir)|' \
4253 '|tmpfilesdir=$(tmpfilesdir)|' \
4254 '|sysctldir=$(sysctldir)|' \
4255 '|systemgeneratordir=$(systemgeneratordir)|' \
4256 '|usergeneratordir=$(usergeneratordir)|' \
4257 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4258 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4259 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4260 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4261 '|prefix=$(prefix)|' \
4262 '|exec_prefix=$(exec_prefix)|' \
4263 '|libdir=$(libdir)|' \
4264 '|includedir=$(includedir)|' \
4265 '|VERSION=$(VERSION)|' \
4266 '|rootprefix=$(rootprefix)|' \
4267 '|udevlibexecdir=$(udevlibexecdir)|' \
4268 '|SUSHELL=$(SUSHELL)|' \
4269 '|DEBUGTTY=$(DEBUGTTY)|' \
4272 '|MKDIR_P=$(MKDIR_P)|' \
4273 '|QUOTAON=$(QUOTAON)|' \
4274 '|QUOTACHECK=$(QUOTACHECK)|' \
4275 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4276 '|VARLOGDIR=$(varlogdir)|' \
4277 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4278 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4279 '|PYTHON=$(PYTHON)|' \
4280 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4283 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4284 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4287 units/%: units/%.in Makefile
4290 man/%: man/%.in Makefile
4293 sysctl.d/%: sysctl.d/%.in Makefile
4296 %.pc: %.pc.in Makefile
4299 src/core/macros.%: src/core/macros.%.in Makefile
4302 src/%.policy.in: src/%.policy.in.in Makefile
4305 %.rules: %.rules.in Makefile
4308 %.sh: %.sh.in Makefile
4310 $(AM_V_GEN)chmod +x $@
4312 src/%.c: src/%.gperf
4313 $(AM_V_at)$(MKDIR_P) $(dir $@)
4314 $(AM_V_GPERF)$(GPERF) < $< > $@
4317 $(AM_V_at)$(MKDIR_P) $(dir $@)
4318 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4320 units/%: units/%.m4 Makefile
4321 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4322 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4324 units/user/%: units/%.m4 Makefile
4325 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4326 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4329 nodist_polkitpolicy_DATA = \
4330 $(polkitpolicy_files) \
4331 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4335 $(polkitpolicy_in_files) \
4336 $(polkitpolicy_in_in_files)
4339 $(nodist_systemunit_DATA) \
4340 $(nodist_userunit_DATA) \
4341 $(pkgconfigdata_DATA) \
4342 $(pkgconfiglib_DATA) \
4343 $(nodist_polkitpolicy_DATA)
4345 # ------------------------------------------------------------------------------
4347 man/custom-entities.ent: Makefile
4348 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4349 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4350 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4354 man/custom-entities.ent
4358 --stringparam man.output.quietly 1 \
4359 --stringparam funcsynopsis.style ansi \
4360 --stringparam man.authors.section.enabled 0 \
4361 --stringparam man.copyright.section.enabled 0 \
4362 --stringparam systemd.version $(VERSION) \
4363 --path '$(builddir)/man:$(srcdir)/man'
4365 XSLTPROC_PROCESS_MAN = \
4366 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4368 XSLTPROC_PROCESS_HTML = \
4369 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4371 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4372 $(XSLTPROC_PROCESS_MAN)
4374 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4375 $(XSLTPROC_PROCESS_MAN)
4377 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4378 $(XSLTPROC_PROCESS_MAN)
4380 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4381 $(XSLTPROC_PROCESS_MAN)
4383 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4384 $(XSLTPROC_PROCESS_MAN)
4386 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4387 $(XSLTPROC_PROCESS_HTML)
4390 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4396 man/custom-html.xsl \
4399 # ------------------------------------------------------------------------------
4402 docs/sysvinit/README
4407 docs/sysvinit/README: docs/sysvinit/README.in
4410 docs/var-log/README: docs/var-log/README.in
4414 docs/sysvinit/README \
4419 docs/sysvinit/README.in \
4420 docs/var-log/README.in
4422 SOCKETS_TARGET_WANTS += \
4423 systemd-initctl.socket \
4424 systemd-shutdownd.socket
4427 RUNLEVEL1_TARGET_WANTS += \
4428 systemd-update-utmp-runlevel.service
4429 RUNLEVEL2_TARGET_WANTS += \
4430 systemd-update-utmp-runlevel.service
4431 RUNLEVEL3_TARGET_WANTS += \
4432 systemd-update-utmp-runlevel.service
4433 RUNLEVEL4_TARGET_WANTS += \
4434 systemd-update-utmp-runlevel.service
4435 RUNLEVEL5_TARGET_WANTS += \
4436 systemd-update-utmp-runlevel.service
4438 SYSINIT_TARGET_WANTS += \
4439 systemd-update-utmp.service
4440 LOCAL_FS_TARGET_WANTS += \
4441 systemd-remount-fs.service \
4443 MULTI_USER_TARGET_WANTS += \
4445 systemd-ask-password-wall.path
4446 SYSINIT_TARGET_WANTS += \
4447 dev-hugepages.mount \
4449 sys-kernel-config.mount \
4450 sys-kernel-debug.mount \
4451 sys-fs-fuse-connections.mount \
4452 systemd-sysctl.service \
4453 systemd-ask-password-console.path
4456 SYSTEM_UNIT_ALIASES += \
4457 poweroff.target runlevel0.target \
4458 rescue.target runlevel1.target \
4459 multi-user.target runlevel2.target \
4460 multi-user.target runlevel3.target \
4461 multi-user.target runlevel4.target \
4462 graphical.target runlevel5.target \
4463 reboot.target runlevel6.target
4466 SYSTEM_UNIT_ALIASES += \
4467 graphical.target default.target \
4468 reboot.target ctrl-alt-del.target \
4469 getty@.service autovt@.service
4471 USER_UNIT_ALIASES += \
4472 $(systemunitdir)/shutdown.target shutdown.target \
4473 $(systemunitdir)/sockets.target sockets.target \
4474 $(systemunitdir)/timers.target timers.target \
4475 $(systemunitdir)/paths.target paths.target \
4476 $(systemunitdir)/bluetooth.target bluetooth.target \
4477 $(systemunitdir)/printer.target printer.target \
4478 $(systemunitdir)/sound.target sound.target \
4479 $(systemunitdir)/smartcard.target smartcard.target
4481 GENERAL_ALIASES += \
4482 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4483 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4484 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4485 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4489 $(systemunitdir)/runlevel1.target.wants \
4490 $(systemunitdir)/runlevel2.target.wants \
4491 $(systemunitdir)/runlevel3.target.wants \
4492 $(systemunitdir)/runlevel4.target.wants \
4493 $(systemunitdir)/runlevel5.target.wants
4497 $(prefix)/lib/modules-load.d \
4498 $(sysconfdir)/modules-load.d \
4499 $(prefix)/lib/systemd/network \
4500 $(sysconfdir)/systemd/network \
4501 $(prefix)/lib/sysctl.d \
4502 $(sysconfdir)/sysctl.d \
4503 $(prefix)/lib/kernel/install.d \
4504 $(sysconfdir)/kernel/install.d \
4505 $(systemshutdowndir) \
4507 $(systemgeneratordir) \
4508 $(usergeneratordir) \
4511 $(pkgsysconfdir)/system \
4512 $(pkgsysconfdir)/system/multi-user.target.wants \
4513 $(pkgsysconfdir)/system/getty.target.wants \
4514 $(pkgsysconfdir)/user \
4515 $(dbussessionservicedir) \
4516 $(sysconfdir)/xdg/systemd
4518 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4520 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4522 install-data-hook: $(INSTALL_DATA_HOOKS)
4524 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4526 clean-local: $(CLEAN_LOCAL_HOOKS)
4527 rm -rf $(abs_srcdir)/install-tree
4528 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4529 $(abs_srcdir)/hwdb/iab.txt
4531 DISTCHECK_CONFIGURE_FLAGS = \
4532 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4533 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4534 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4535 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4536 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4537 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4538 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4539 --with-rootprefix=$$dc_install_base \
4543 DISTCHECK_CONFIGURE_FLAGS += \
4544 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4545 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4547 DISTCHECK_CONFIGURE_FLAGS += \
4548 --with-sysvinit-path= \
4549 --with-sysvrcnd-path=
4553 DISTCHECK_CONFIGURE_FLAGS += \
4558 ( cd $(top_srcdir)/hwdb && \
4559 wget -N http://www.linux-usb.org/usb.ids \
4560 http://pci-ids.ucw.cz/v2.2/pci.ids \
4561 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4562 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4566 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4567 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4569 upload: all distcheck
4570 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4571 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4572 scp man/*.html tango:public/systemd-man/
4574 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4575 doc-sync: all destdir-sphinx
4576 gtkdoc-rebase --html-dir=docs/libudev/html --online
4577 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4578 gtkdoc-rebase --html-dir=docs/gudev/html --online
4579 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4580 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4581 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4584 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4587 rm -rf $(abs_srcdir)/install-tree
4588 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4589 tree $(abs_srcdir)/install-tree
4591 # Let's run all tests of the test suite, but under valgrind. Let's
4592 # exclude the one perl script we have in there
4593 valgrind-tests: $(TESTS)
4594 for f in $(TESTS) ; do [ "$$f" == "$${f/.pl/}" ] && libtool --mode=execute valgrind --leak-check=full --error-exitcode=55 $(builddir)/$$f ; done