1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
9 # systemd is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU Lesser General Public License as published by
11 # the Free Software Foundation; either version 2.1 of the License, or
12 # (at your option) any later version.
14 # systemd is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Lesser General Public License for more details.
19 # You should have received a copy of the GNU Lesser General Public License
20 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
22 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
23 AM_MAKEFLAGS = --no-print-directory
24 AUTOMAKE_OPTIONS = color-tests parallel-tests
28 # remove targets if the command fails
31 # keep intermediate files
42 LIBSYSTEMD_LOGIN_CURRENT=8
43 LIBSYSTEMD_LOGIN_REVISION=0
44 LIBSYSTEMD_LOGIN_AGE=8
46 LIBSYSTEMD_DAEMON_CURRENT=0
47 LIBSYSTEMD_DAEMON_REVISION=10
48 LIBSYSTEMD_DAEMON_AGE=0
50 LIBSYSTEMD_ID128_CURRENT=0
51 LIBSYSTEMD_ID128_REVISION=23
52 LIBSYSTEMD_ID128_AGE=0
54 LIBSYSTEMD_JOURNAL_CURRENT=11
55 LIBSYSTEMD_JOURNAL_REVISION=0
56 LIBSYSTEMD_JOURNAL_AGE=11
58 # Dirs of external packages
59 dbuspolicydir=@dbuspolicydir@
60 dbussessionservicedir=@dbussessionservicedir@
61 dbussystemservicedir=@dbussystemservicedir@
62 dbusinterfacedir=@dbusinterfacedir@
64 pkgconfigdatadir=$(datadir)/pkgconfig
65 pkgconfiglibdir=$(libdir)/pkgconfig
66 polkitpolicydir=$(datadir)/polkit-1/actions
67 bashcompletiondir=@bashcompletiondir@
68 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
69 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
70 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
71 varlogdir=$(localstatedir)/log
72 systemdstatedir=$(localstatedir)/lib/systemd
73 catalogstatedir=$(systemdstatedir)/catalog
75 # Our own, non-special dirs
76 pkgsysconfdir=$(sysconfdir)/systemd
77 userunitdir=$(prefix)/lib/systemd/user
78 userpresetdir=$(prefix)/lib/systemd/user-preset
79 tmpfilesdir=$(prefix)/lib/tmpfiles.d
80 sysctldir=$(prefix)/lib/sysctl.d
81 usergeneratordir=$(prefix)/lib/systemd/user-generators
82 pkgincludedir=$(includedir)/systemd
83 systemgeneratordir=$(rootlibexecdir)/system-generators
84 systemshutdowndir=$(rootlibexecdir)/system-shutdown
85 systemsleepdir=$(rootlibexecdir)/system-sleep
86 systemunitdir=$(rootprefix)/lib/systemd/system
87 systempresetdir=$(rootprefix)/lib/systemd/system-preset
88 udevlibexecdir=$(rootprefix)/lib/udev
89 udevhomedir=$(udevlibexecdir)
90 udevrulesdir=$(udevlibexecdir)/rules.d
91 udevhwdbdir=$(udevlibexecdir)/hwdb.d
92 catalogdir=$(prefix)/lib/systemd/catalog
93 kernelinstalldir = $(prefix)/lib/kernel/install.d
95 # And these are the special ones for /
96 rootprefix=@rootprefix@
97 rootbindir=$(rootprefix)/bin
98 rootlibexecdir=$(rootprefix)/lib/systemd
100 CLEANFILES = $(BUILT_SOURCES)
105 UNINSTALL_EXEC_HOOKS =
107 UNINSTALL_DATA_HOOKS =
108 DISTCLEAN_LOCAL_HOOKS =
116 polkitpolicy_in_in_files =
117 polkitpolicy_in_files =
119 dist_udevrules_DATA =
120 nodist_udevrules_DATA =
121 dist_pkgsysconf_DATA =
123 dist_dbuspolicy_DATA =
125 dist_dbussystemservice_DATA =
131 noinst_PROGRAMS = $(manual_tests) $(tests)
137 udevlibexec_PROGRAMS =
140 -include $(top_builddir)/config.h \
141 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
142 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
143 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
144 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
145 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
146 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
147 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
148 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
149 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
150 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
151 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
152 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
153 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
154 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
155 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
156 -DROOTPREFIX=\"$(rootprefix)\" \
157 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
158 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
159 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
160 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
161 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
162 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
163 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
164 -DX_SERVER=\"$(bindir)/X\" \
165 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
166 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
167 -DQUOTACHECK=\"$(QUOTACHECK)\" \
168 -DKEXEC=\"$(KEXEC)\" \
169 -I $(top_srcdir)/src \
170 -I $(top_srcdir)/src/shared \
171 -I $(top_srcdir)/src/login \
172 -I $(top_srcdir)/src/journal \
173 -I $(top_srcdir)/src/systemd \
174 -I $(top_builddir)/src/core \
175 -I $(top_srcdir)/src/core \
176 -I $(top_srcdir)/src/libudev \
177 -I $(top_srcdir)/src/udev \
178 -I $(top_builddir)/src/udev \
179 -I $(top_srcdir)/src/libsystemd-bus \
182 AM_CFLAGS = $(OUR_CFLAGS)
183 AM_LDFLAGS = $(OUR_LDFLAGS)
185 # ------------------------------------------------------------------------------
186 define move-to-rootlibdir
187 if test "$(libdir)" != "$(rootlibdir)"; then \
188 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
189 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
190 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
191 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
192 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
198 RUNLEVEL1_TARGET_WANTS =
199 RUNLEVEL2_TARGET_WANTS =
200 RUNLEVEL3_TARGET_WANTS =
201 RUNLEVEL4_TARGET_WANTS =
202 RUNLEVEL5_TARGET_WANTS =
203 SHUTDOWN_TARGET_WANTS =
204 LOCAL_FS_TARGET_WANTS =
205 MULTI_USER_TARGET_WANTS =
206 SYSINIT_TARGET_WANTS =
207 SOCKETS_TARGET_WANTS =
208 TIMERS_TARGET_WANTS =
210 SYSTEM_UNIT_ALIASES =
215 install-target-wants-hook:
216 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
217 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
218 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
219 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
220 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
221 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
222 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
223 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
224 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
225 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
226 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
227 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
230 [ -z "$$what" ] || ( \
231 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
232 $(MKDIR_P) -m 0755 $$dir && \
235 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
238 install-directories-hook:
239 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
241 install-aliases-hook:
242 set -- $(SYSTEM_UNIT_ALIASES) && \
243 dir=$(systemunitdir) && $(install-aliases)
244 set -- $(USER_UNIT_ALIASES) && \
245 dir=$(userunitdir) && $(install-aliases)
246 set -- $(GENERAL_ALIASES) && \
247 dir= && $(install-aliases)
249 define install-aliases
250 while [ -n "$$1" ]; do \
251 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
252 rm -f $(DESTDIR)$$dir/$$2 && \
253 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
254 shift 2 || exit $$?; \
258 INSTALL_EXEC_HOOKS += \
259 install-target-wants-hook \
260 install-directories-hook \
263 # ------------------------------------------------------------------------------
264 AM_V_M4 = $(AM_V_M4_$(V))
265 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
266 AM_V_M4_0 = @echo " M4 " $@;
268 AM_V_XSLT = $(AM_V_XSLT_$(V))
269 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
270 AM_V_XSLT_0 = @echo " XSLT " $@;
272 AM_V_GPERF = $(AM_V_GPERF_$(V))
273 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
274 AM_V_GPERF_0 = @echo " GPERF " $@;
276 AM_V_LN = $(AM_V_LN_$(V))
277 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
278 AM_V_LN_0 = @echo " LN " $@;
280 # ------------------------------------------------------------------------------
284 systemd-ask-password \
285 systemd-tty-ask-password-agent \
286 systemd-machine-id-setup
291 systemd-stdio-bridge \
293 systemd-detect-virt \
299 src/kernel-install/kernel-install
301 dist_kernelinstall_SCRIPTS = \
302 src/kernel-install/50-depmod.install \
303 src/kernel-install/90-loaderentry.install
305 rootlibexec_PROGRAMS = \
307 systemd-cgroups-agent \
309 systemd-update-utmp \
313 systemd-reply-password \
320 systemgenerator_PROGRAMS = \
321 systemd-getty-generator \
322 systemd-fstab-generator \
323 systemd-system-update-generator
325 systemd_analyze_SOURCES = \
326 src/analyze/systemd-analyze.c
328 systemd_analyze_CFLAGS = \
332 systemd_analyze_LDADD = \
333 libsystemd-shared.la \
336 dist_bashcompletion_DATA = \
337 shell-completion/bash/journalctl \
338 shell-completion/bash/systemctl \
339 shell-completion/bash/systemd-analyze \
340 shell-completion/bash/udevadm
343 sysctl.d/50-default.conf
345 dist_systemunit_DATA = \
346 units/graphical.target \
347 units/multi-user.target \
348 units/emergency.service \
349 units/emergency.target \
350 units/sysinit.target \
355 units/local-fs.target \
356 units/local-fs-pre.target \
357 units/initrd.target \
358 units/initrd-fs.target \
359 units/initrd-root-fs.target \
360 units/remote-fs.target \
361 units/remote-fs-pre.target \
362 units/network.target \
363 units/network-online.target \
364 units/nss-lookup.target \
365 units/nss-user-lookup.target \
366 units/hibernate.target \
367 units/hybrid-sleep.target \
368 units/poweroff.target \
369 units/reboot.target \
370 units/rescue.target \
371 units/rpcbind.target \
372 units/time-sync.target \
373 units/shutdown.target \
375 units/umount.target \
376 units/sigpwr.target \
378 units/sockets.target \
379 units/timers.target \
381 units/suspend.target \
383 units/slices.target \
386 units/systemd-initctl.socket \
387 units/systemd-shutdownd.socket \
388 units/syslog.socket \
389 units/dev-hugepages.mount \
390 units/dev-mqueue.mount \
391 units/sys-kernel-config.mount \
392 units/sys-kernel-debug.mount \
393 units/sys-fs-fuse-connections.mount \
395 units/printer.target \
397 units/bluetooth.target \
398 units/smartcard.target \
399 units/systemd-ask-password-wall.path \
400 units/systemd-ask-password-console.path \
401 units/systemd-udevd-control.socket \
402 units/systemd-udevd-kernel.socket \
403 units/system-update.target \
404 units/initrd-switch-root.target
406 nodist_systemunit_DATA = \
407 units/getty@.service \
408 units/serial-getty@.service \
409 units/console-shell.service \
410 units/console-getty.service \
411 units/systemd-initctl.service \
412 units/systemd-shutdownd.service \
413 units/systemd-remount-fs.service \
414 units/systemd-update-utmp.service \
415 units/systemd-update-utmp-runlevel.service \
416 units/systemd-ask-password-wall.service \
417 units/systemd-ask-password-console.service \
418 units/systemd-sysctl.service \
419 units/emergency.service \
420 units/rescue.service \
421 units/user@.service \
422 units/systemd-hibernate.service \
423 units/systemd-hybrid-sleep.service \
424 units/systemd-suspend.service \
425 units/systemd-halt.service \
426 units/systemd-poweroff.service \
427 units/systemd-reboot.service \
428 units/systemd-kexec.service \
429 units/systemd-fsck@.service \
430 units/systemd-fsck-root.service \
431 units/systemd-udevd.service \
432 units/systemd-udev-trigger.service \
433 units/systemd-udev-settle.service \
434 units/debug-shell.service \
435 units/initrd-parse-etc.service \
436 units/initrd-cleanup.service \
437 units/initrd-udevadm-cleanup-db.service \
438 units/initrd-switch-root.service \
439 units/systemd-nspawn@.service
441 dist_userunit_DATA = \
442 units/user/default.target \
443 units/user/exit.target
445 nodist_userunit_DATA = \
446 units/user/systemd-exit.service
449 units/getty@.service.m4 \
450 units/serial-getty@.service.m4 \
451 units/console-shell.service.m4.in \
452 units/console-getty.service.m4.in \
453 units/rescue.service.m4.in \
454 units/systemd-initctl.service.in \
455 units/systemd-shutdownd.service.in \
456 units/systemd-remount-fs.service.in \
457 units/systemd-update-utmp.service.in \
458 units/systemd-update-utmp-runlevel.service.in \
459 units/systemd-ask-password-wall.service.in \
460 units/systemd-ask-password-console.service.in \
461 units/systemd-sysctl.service.in \
462 units/emergency.service.in \
463 units/systemd-halt.service.in \
464 units/systemd-poweroff.service.in \
465 units/systemd-reboot.service.in \
466 units/systemd-kexec.service.in \
467 units/user/systemd-exit.service.in \
468 units/systemd-fsck@.service.in \
469 units/systemd-fsck-root.service.in \
470 units/user@.service.in \
471 units/systemd-udevd.service \
472 units/systemd-udev-trigger.service \
473 units/systemd-udev-settle.service \
474 units/debug-shell.service.in \
475 units/systemd-hibernate.service.in \
476 units/systemd-hybrid-sleep.service.in \
477 units/systemd-suspend.service.in \
478 units/quotaon.service.in \
479 units/initrd-parse-etc.service.in \
480 units/initrd-cleanup.service.in \
481 units/initrd-udevadm-cleanup-db.service.in \
482 units/initrd-switch-root.service.in \
483 units/systemd-nspawn@.service.in \
487 units/console-shell.service.m4 \
488 units/console-getty.service.m4 \
489 units/rescue.service.m4
492 nodist_systemunit_DATA += \
493 units/rc-local.service \
494 units/halt-local.service
496 systemgenerator_PROGRAMS += \
497 systemd-rc-local-generator
501 units/rc-local.service.in \
502 units/halt-local.service.in
504 # automake is broken and can't handle files with a dash in front
505 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
507 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
509 units-uninstall-hook:
510 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
512 INSTALL_DATA_HOOKS += units-install-hook
513 UNINSTALL_DATA_HOOKS += units-uninstall-hook
523 @INTLTOOL_POLICY_RULE@
525 # ------------------------------------------------------------------------------
530 include Makefile-man.am
533 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
536 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
538 ${XML_FILES:.xml=.html}
540 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
557 $(AM_V_at)$(MKDIR_P) $(dir $@)
558 $(AM_V_LN)$(LN_S) -f ../../man $@
567 man/index.html: man/systemd.index.html
568 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
576 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
577 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
578 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
580 update-man-list: make-man-rules.py $(XML_GLOB)
581 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
582 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
583 @echo "Makefile-man.am has been regenerated"
585 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
586 $(AM_V_at)$(MKDIR_P) $(dir $@)
587 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
589 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
590 $(AM_V_at)$(MKDIR_P) $(dir $@)
591 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
594 man/systemd.index.xml \
596 man/systemd.directives.xml
599 man/systemd.index.xml \
600 man/systemd.directives.xml
612 make-directive-index.py \
615 # ------------------------------------------------------------------------------
616 noinst_LTLIBRARIES += \
619 libsystemd_shared_la_SOURCES = \
620 src/shared/linux/auto_dev-ioctl.h \
621 src/shared/linux/fanotify.h \
622 src/shared/linux/seccomp.h \
623 src/shared/linux/seccomp-bpf.h \
624 src/shared/missing.h \
628 src/shared/sparse-endian.h \
633 src/shared/efivars.c \
634 src/shared/efivars.h \
635 src/shared/path-util.c \
636 src/shared/path-util.h \
637 src/shared/time-util.c \
638 src/shared/time-util.h \
639 src/shared/hashmap.c \
640 src/shared/hashmap.h \
647 src/shared/sleep-config.c \
648 src/shared/sleep-config.h \
651 src/shared/env-util.c \
652 src/shared/env-util.h \
653 src/shared/strbuf.c \
654 src/shared/strbuf.h \
655 src/shared/strxcpyx.c \
656 src/shared/strxcpyx.h \
657 src/shared/conf-parser.c \
658 src/shared/conf-parser.h \
661 src/shared/ratelimit.h \
662 src/shared/ratelimit.c \
663 src/shared/exit-status.c \
664 src/shared/exit-status.h \
669 src/shared/ioprio.h \
670 src/shared/socket-util.c \
671 src/shared/socket-util.h \
672 src/shared/conf-files.c \
673 src/shared/conf-files.h \
674 src/shared/cgroup-util.c \
675 src/shared/cgroup-util.h \
676 src/shared/cgroup-show.c \
677 src/shared/cgroup-show.h \
678 src/shared/unit-name.c \
679 src/shared/unit-name.h \
680 src/shared/utmp-wtmp.c \
681 src/shared/utmp-wtmp.h \
682 src/shared/watchdog.c \
683 src/shared/watchdog.h \
684 src/shared/spawn-ask-password-agent.c \
685 src/shared/spawn-ask-password-agent.h \
686 src/shared/replace-var.c \
687 src/shared/replace-var.h \
688 src/shared/spawn-polkit-agent.c \
689 src/shared/spawn-polkit-agent.h \
690 src/shared/hwclock.c \
691 src/shared/hwclock.h \
692 src/shared/time-dst.c \
693 src/shared/time-dst.h \
694 src/shared/calendarspec.c \
695 src/shared/calendarspec.h \
696 src/shared/fileio.c \
697 src/shared/fileio.h \
698 src/shared/output-mode.h \
699 src/shared/MurmurHash3.c \
700 src/shared/MurmurHash3.h \
703 #-------------------------------------------------------------------------------
704 noinst_LTLIBRARIES += \
707 libsystemd_dbus_la_SOURCES = \
708 src/shared/dbus-common.c \
709 src/shared/dbus-common.h \
710 src/shared/dbus-loop.c \
711 src/shared/dbus-loop.h \
712 src/shared/polkit.c \
715 libsystemd_dbus_la_CFLAGS = \
719 libsystemd_dbus_la_LIBADD = \
722 # ------------------------------------------------------------------------------
723 noinst_LTLIBRARIES += \
726 libsystemd_units_la_SOURCES = \
727 src/shared/install.c \
728 src/shared/install.h \
729 src/shared/install-printf.c \
730 src/shared/install-printf.h \
731 src/shared/path-lookup.c \
732 src/shared/path-lookup.h \
733 src/shared/specifier.c \
734 src/shared/specifier.h
736 libsystemd_units_la_CFLAGS = \
740 # ------------------------------------------------------------------------------
741 noinst_LTLIBRARIES += \
744 libsystemd_label_la_SOURCES = \
745 src/shared/cgroup-label.c \
746 src/shared/socket-label.c \
749 src/shared/selinux-util.c \
750 src/shared/selinux-util.h \
753 src/shared/ask-password-api.c \
754 src/shared/ask-password-api.h \
755 src/shared/fileio-label.c \
756 src/shared/fileio-label.h \
757 src/shared/dev-setup.c \
758 src/shared/dev-setup.h
760 libsystemd_label_la_CFLAGS = \
764 libsystemd_label_la_LIBADD = \
767 # ------------------------------------------------------------------------------
768 noinst_LTLIBRARIES += \
771 libsystemd_logs_la_SOURCES = \
772 src/shared/logs-show.c \
773 src/shared/logs-show.h
775 libsystemd_logs_la_CFLAGS = \
778 libsystemd_logs_la_LIBADD = \
779 libsystemd-journal-internal.la \
780 libsystemd-id128-internal.la \
783 # ------------------------------------------------------------------------------
784 noinst_LTLIBRARIES += \
785 libsystemd-capability.la
787 libsystemd_capability_la_SOURCES = \
788 src/shared/capability.c \
789 src/shared/capability.h
791 libsystemd_capability_la_CFLAGS = \
795 libsystemd_capability_la_LIBADD = \
798 # ------------------------------------------------------------------------------
799 noinst_LTLIBRARIES += \
802 libsystemd_audit_la_SOURCES = \
806 libsystemd_audit_la_LIBADD = \
807 libsystemd-capability.la
809 # ------------------------------------------------------------------------------
811 noinst_LTLIBRARIES += \
814 libsystemd_acl_la_SOURCES = \
815 src/shared/acl-util.c \
816 src/shared/acl-util.h
818 libsystemd_acl_la_CFLAGS = \
822 libsystemd_acl_la_LIBADD = \
827 # ------------------------------------------------------------------------------
828 noinst_LTLIBRARIES += \
831 libsystemd_core_la_SOURCES = \
834 src/core/unit-printf.c \
835 src/core/unit-printf.h \
840 src/core/transaction.c \
841 src/core/transaction.h \
842 src/core/load-fragment.c \
843 src/core/load-fragment.h \
846 src/core/automount.c \
847 src/core/automount.h \
856 src/core/snapshot.c \
857 src/core/snapshot.h \
868 src/core/load-dropin.c \
869 src/core/load-dropin.h \
876 src/core/dbus-manager.c \
877 src/core/dbus-manager.h \
878 src/core/dbus-unit.c \
879 src/core/dbus-unit.h \
880 src/core/dbus-job.c \
881 src/core/dbus-job.h \
882 src/core/dbus-service.c \
883 src/core/dbus-service.h \
884 src/core/dbus-socket.c \
885 src/core/dbus-socket.h \
886 src/core/dbus-timer.c \
887 src/core/dbus-timer.h \
888 src/core/dbus-target.c \
889 src/core/dbus-target.h \
890 src/core/dbus-mount.c \
891 src/core/dbus-mount.h \
892 src/core/dbus-automount.c \
893 src/core/dbus-automount.h \
894 src/core/dbus-swap.c \
895 src/core/dbus-swap.h \
896 src/core/dbus-snapshot.c \
897 src/core/dbus-snapshot.h \
898 src/core/dbus-device.c \
899 src/core/dbus-device.h \
900 src/core/dbus-path.c \
901 src/core/dbus-path.h \
902 src/core/dbus-slice.c \
903 src/core/dbus-slice.h \
904 src/core/dbus-scope.c \
905 src/core/dbus-scope.h \
906 src/core/dbus-execute.c \
907 src/core/dbus-execute.h \
908 src/core/dbus-kill.c \
909 src/core/dbus-kill.h \
910 src/core/dbus-cgroup.c \
911 src/core/dbus-cgroup.h \
914 src/core/selinux-access.c \
915 src/core/selinux-access.h \
916 src/core/selinux-setup.c \
917 src/core/selinux-setup.h \
918 src/core/smack-setup.c \
919 src/core/smack-setup.h \
920 src/core/ima-setup.c \
921 src/core/ima-setup.h \
922 src/core/locale-setup.h \
923 src/core/locale-setup.c \
924 src/core/hostname-setup.c \
925 src/core/hostname-setup.h \
926 src/core/machine-id-setup.c \
927 src/core/machine-id-setup.h \
928 src/core/mount-setup.c \
929 src/core/mount-setup.h \
930 src/core/loopback-setup.h \
931 src/core/loopback-setup.c \
932 src/core/condition.c \
933 src/core/condition.h \
934 src/core/namespace.c \
935 src/core/namespace.h \
938 src/core/securebits.h \
941 src/core/bus-errors.h \
943 src/core/sysfs-show.h \
944 src/core/switch-root.h \
945 src/core/switch-root.c \
948 src/core/syscall-list.c \
949 src/core/syscall-list.h \
950 src/core/audit-fd.c \
951 src/core/audit-fd.h \
956 libsystemd_core_la_SOURCES += \
957 src/core/kmod-setup.c \
958 src/core/kmod-setup.h
961 nodist_libsystemd_core_la_SOURCES = \
962 src/core/load-fragment-gperf.c \
963 src/core/load-fragment-gperf-nulstr.c \
964 src/core/syscall-from-name.h \
965 src/core/syscall-to-name.h
967 libsystemd_core_la_CFLAGS = \
976 libsystemd_core_la_LIBADD = \
977 libsystemd-capability.la \
978 libsystemd-units.la \
979 libsystemd-label.la \
980 libsystemd-shared.la \
982 libsystemd-audit.la \
983 libsystemd-id128-internal.la \
984 libsystemd-daemon.la \
992 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
993 $(AM_V_at)$(MKDIR_P) $(dir $@)
994 $(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 ";" }' < $< > $@
997 src/core/load-fragment-gperf.gperf.m4
1000 src/core/load-fragment-gperf.gperf \
1001 src/core/load-fragment-gperf.c \
1002 src/core/load-fragment-gperf-nulstr.c \
1003 src/core/syscall-list.txt \
1004 src/core/syscall-from-name.gperf
1007 src/core/syscall-from-name.h \
1008 src/core/syscall-to-name.h
1010 src/core/syscall-list.txt: Makefile
1011 $(AM_V_at)$(MKDIR_P) $(dir $@)
1012 $(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); print $$2; }' > $@
1014 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
1015 $(AM_V_at)$(MKDIR_P) $(dir $@)
1016 $(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 }' < $< > $@
1018 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
1019 $(AM_V_at)$(MKDIR_P) $(dir $@)
1020 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1022 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
1023 $(AM_V_at)$(MKDIR_P) $(dir $@)
1024 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1026 # ------------------------------------------------------------------------------
1035 libsystemd-core.la \
1036 libsystemd-daemon.la \
1037 libsystemd-id128-internal.la \
1040 dist_pkgsysconf_DATA += \
1041 src/core/system.conf \
1044 dist_dbuspolicy_DATA += \
1045 src/core/org.freedesktop.systemd1.conf
1047 dist_dbussystemservice_DATA += \
1048 src/core/org.freedesktop.systemd1.service
1050 dbusinterface_DATA += \
1051 org.freedesktop.systemd1.Manager.xml \
1052 org.freedesktop.systemd1.Job.xml \
1053 org.freedesktop.systemd1.Unit.xml \
1054 org.freedesktop.systemd1.Service.xml \
1055 org.freedesktop.systemd1.Socket.xml \
1056 org.freedesktop.systemd1.Timer.xml \
1057 org.freedesktop.systemd1.Target.xml \
1058 org.freedesktop.systemd1.Device.xml \
1059 org.freedesktop.systemd1.Mount.xml \
1060 org.freedesktop.systemd1.Automount.xml \
1061 org.freedesktop.systemd1.Snapshot.xml \
1062 org.freedesktop.systemd1.Swap.xml \
1063 org.freedesktop.systemd1.Path.xml
1065 polkitpolicy_in_in_files += \
1066 src/core/org.freedesktop.systemd1.policy.in.in
1068 org.freedesktop.systemd1.%.xml: systemd
1069 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1070 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1071 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1073 pkgconfigdata_DATA = \
1076 nodist_rpmmacros_DATA = \
1077 src/core/macros.systemd
1080 src/core/systemd.pc.in \
1081 src/core/macros.systemd.in
1084 src/core/macros.systemd \
1085 src/core/org.freedesktop.systemd1.policy.in
1087 # ------------------------------------------------------------------------------
1114 test-strip-tab-ansi \
1124 test/sched_idle_bad.service \
1125 test/sched_idle_ok.service \
1126 test/sched_rr_bad.service \
1127 test/sched_rr_ok.service \
1128 test/sched_rr_change.service
1130 test_engine_SOURCES = \
1131 src/test/test-engine.c
1133 test_engine_CFLAGS = \
1137 test_engine_LDADD = \
1138 libsystemd-core.la \
1139 libsystemd-daemon.la \
1142 test_job_type_SOURCES = \
1143 src/test/test-job-type.c
1145 test_job_type_CFLAGS = \
1149 test_job_type_LDADD = \
1150 libsystemd-core.la \
1151 libsystemd-daemon.la
1163 test_loopback_SOURCES = \
1164 src/test/test-loopback.c
1166 test_loopback_LDADD = \
1167 libsystemd-shared.la \
1170 test_hostname_SOURCES = \
1171 src/test/test-hostname.c
1173 test_hostname_LDADD = \
1180 test_efivars_SOURCES = \
1181 src/test/test-efivars.c
1183 test_efivars_LDADD = \
1184 libsystemd-shared.la
1187 test_unit_name_SOURCES = \
1188 src/test/test-unit-name.c
1190 test_unit_name_CFLAGS = \
1194 test_unit_name_LDADD = \
1197 test_unit_file_SOURCES = \
1198 src/test/test-unit-file.c
1200 test_unit_file_CFLAGS = \
1204 test_unit_file_LDADD = \
1207 test_util_SOURCES = \
1208 src/test/test-util.c
1210 test_util_CFLAGS = \
1216 test_hashmap_SOURCES = \
1217 src/test/test-hashmap.c
1219 test_hashmap_CFLAGS = \
1222 test_hashmap_LDADD = \
1225 test_list_SOURCES = \
1226 src/test/test-list.c
1228 test_list_CFLAGS = \
1234 test_tables_SOURCES = \
1235 src/test/test-tables.c \
1236 src/shared/test-tables.h
1238 test_tables_CFLAGS = \
1242 test_tables_LDADD = \
1243 libsystemd-core.la \
1246 test_prioq_SOURCES = \
1247 src/test/test-prioq.c
1249 test_prioq_CFLAGS = \
1252 test_prioq_LDADD = \
1255 test_fileio_SOURCES = \
1256 src/test/test-fileio.c
1258 test_fileio_CFLAGS = \
1261 test_fileio_LDADD = \
1264 test_time_SOURCES = \
1265 src/test/test-time.c
1267 test_time_CFLAGS = \
1273 test_log_SOURCES = \
1279 test_date_SOURCES = \
1280 src/test/test-date.c
1285 test_sleep_SOURCES = \
1286 src/test/test-sleep.c
1288 test_sleep_LDADD = \
1291 test_replace_var_SOURCES = \
1292 src/test/test-replace-var.c
1294 test_replace_var_LDADD = \
1295 libsystemd-shared.la
1297 test_calendarspec_SOURCES = \
1298 src/test/test-calendarspec.c
1300 test_calendarspec_LDADD = \
1301 libsystemd-shared.la
1303 test_strip_tab_ansi_SOURCES = \
1304 src/test/test-strip-tab-ansi.c
1306 test_strip_tab_ansi_LDADD = \
1307 libsystemd-shared.la
1309 test_daemon_SOURCES = \
1310 src/test/test-daemon.c
1312 test_daemon_LDADD = \
1313 libsystemd-shared.la \
1314 libsystemd-daemon.la
1316 test_cgroup_SOURCES = \
1317 src/test/test-cgroup.c
1319 test_cgroup_LDADD = \
1320 libsystemd-label.la \
1321 libsystemd-shared.la
1323 test_cgroup_util_SOURCES = \
1324 src/test/test-cgroup-util.c
1326 test_cgroup_util_LDADD = \
1327 libsystemd-label.la \
1328 libsystemd-shared.la
1330 test_env_replace_SOURCES = \
1331 src/test/test-env-replace.c
1333 test_env_replace_LDADD = \
1334 libsystemd-shared.la
1336 test_strbuf_SOURCES = \
1337 src/test/test-strbuf.c
1339 test_strbuf_LDADD = \
1340 libsystemd-shared.la
1342 test_strv_SOURCES = \
1343 src/test/test-strv.c
1346 libsystemd-shared.la \
1347 libsystemd-units.la \
1348 libsystemd-id128-internal.la
1350 test_path_util_SOURCES = \
1351 src/test/test-path-util.c
1353 test_path_util_LDADD = \
1354 libsystemd-shared.la
1356 test_strxcpyx_SOURCES = \
1357 src/test/test-strxcpyx.c
1359 test_strxcpyx_LDADD = \
1360 libsystemd-shared.la
1362 test_install_SOURCES = \
1363 src/test/test-install.c
1365 test_install_CFLAGS = \
1369 test_install_LDADD = \
1370 libsystemd-units.la \
1371 libsystemd-label.la \
1372 libsystemd-shared.la \
1373 libsystemd-id128-internal.la
1375 test_watchdog_SOURCES = \
1376 src/test/test-watchdog.c
1378 test_watchdog_LDADD = \
1379 libsystemd-shared.la
1381 test_sched_prio_SOURCES = \
1382 src/test/test-sched-prio.c
1384 test_sched_prio_CFLAGS = \
1387 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1389 test_sched_prio_LDADD = \
1390 libsystemd-core.la \
1391 libsystemd-daemon.la
1393 # ------------------------------------------------------------------------------
1394 ## .PHONY so it always rebuilds it
1395 .PHONY: coverage lcov-run lcov-report
1397 # run lcov from scratch, always
1402 coverage_dir = coverage
1403 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1406 # reset run coverage tests
1408 @rm -rf $(coverage_dir)
1409 lcov $(coverage_opts) --zerocounters
1412 # generate report based on current coverage data
1414 $(MKDIR_P) $(coverage_dir)
1415 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1416 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1417 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1418 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1420 # lcov doesn't work properly with vpath builds, make sure that bad
1421 # output is not uploaded by mistake.
1422 coverage-sync: coverage
1423 test "$(builddir)" = "$(srcdir)"
1424 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1427 lcov-run lcov-report:
1428 echo "Need to reconfigure with --enable-coverage"
1431 # ------------------------------------------------------------------------------
1432 systemd_initctl_SOURCES = \
1433 src/initctl/initctl.c
1435 systemd_initctl_CFLAGS = \
1439 systemd_initctl_LDADD = \
1440 libsystemd-shared.la \
1441 libsystemd-daemon.la \
1444 # ------------------------------------------------------------------------------
1445 systemd_update_utmp_SOURCES = \
1446 src/update-utmp/update-utmp.c
1448 systemd_update_utmp_CFLAGS = \
1453 systemd_update_utmp_LDADD = \
1454 libsystemd-shared.la \
1455 libsystemd-dbus.la \
1458 # ------------------------------------------------------------------------------
1459 systemd_shutdownd_SOURCES = \
1460 src/shutdownd/shutdownd.c
1462 systemd_shutdownd_LDADD = \
1463 libsystemd-label.la \
1464 libsystemd-shared.la \
1465 libsystemd-daemon.la
1467 pkginclude_HEADERS += \
1468 src/systemd/sd-shutdown.h
1470 # ------------------------------------------------------------------------------
1471 systemd_shutdown_SOURCES = \
1474 src/core/shutdown.c \
1475 src/core/mount-setup.c \
1476 src/core/mount-setup.h \
1477 src/core/killall.h \
1480 systemd_shutdown_LDADD = \
1481 libsystemd-label.la \
1482 libsystemd-shared.la \
1485 # ------------------------------------------------------------------------------
1487 systemd_modules_load_SOURCES = \
1488 src/modules-load/modules-load.c
1490 systemd_modules_load_CFLAGS = \
1494 systemd_modules_load_LDADD = \
1495 libsystemd-shared.la \
1498 rootlibexec_PROGRAMS += \
1499 systemd-modules-load
1501 nodist_systemunit_DATA += \
1502 units/systemd-modules-load.service
1504 SYSINIT_TARGET_WANTS += \
1505 systemd-modules-load.service
1508 nodist_systemunit_DATA += \
1509 units/kmod-static-nodes.service
1511 SYSINIT_TARGET_WANTS += \
1512 kmod-static-nodes.service
1517 units/systemd-modules-load.service.in \
1518 units/kmod-static-nodes.service.in
1520 # ------------------------------------------------------------------------------
1522 systemd_tmpfiles_SOURCES = \
1523 src/tmpfiles/tmpfiles.c
1525 systemd_tmpfiles_LDADD = \
1526 libsystemd-label.la \
1527 libsystemd-shared.la \
1528 libsystemd-capability.la
1530 rootbin_PROGRAMS += \
1533 dist_systemunit_DATA += \
1534 units/systemd-tmpfiles-clean.timer
1536 nodist_systemunit_DATA += \
1537 units/systemd-tmpfiles-setup-dev.service \
1538 units/systemd-tmpfiles-setup.service \
1539 units/systemd-tmpfiles-clean.service
1541 dist_tmpfiles_DATA = \
1542 tmpfiles.d/systemd.conf \
1543 tmpfiles.d/tmp.conf \
1547 dist_tmpfiles_DATA += \
1548 tmpfiles.d/legacy.conf
1551 SYSINIT_TARGET_WANTS += \
1552 systemd-tmpfiles-setup-dev.service \
1553 systemd-tmpfiles-setup.service
1555 TIMERS_TARGET_WANTS += \
1556 systemd-tmpfiles-clean.timer
1560 $(sysconfdir)/tmpfiles.d
1564 units/systemd-tmpfiles-setup-dev.service.in \
1565 units/systemd-tmpfiles-setup.service.in \
1566 units/systemd-tmpfiles-clean.service.in
1568 # ------------------------------------------------------------------------------
1569 systemd_machine_id_setup_SOURCES = \
1570 src/machine-id-setup/machine-id-setup-main.c \
1571 src/core/machine-id-setup.c \
1572 src/core/machine-id-setup.h
1574 systemd_machine_id_setup_LDADD = \
1575 libsystemd-label.la \
1576 libsystemd-shared.la \
1577 libsystemd-id128-internal.la
1579 # ------------------------------------------------------------------------------
1580 systemd_sysctl_SOURCES = \
1583 systemd_sysctl_LDADD = \
1584 libsystemd-shared.la
1586 # ------------------------------------------------------------------------------
1587 systemd_sleep_SOURCES = \
1590 systemd_sleep_LDADD = \
1591 libsystemd-shared.la
1593 # ------------------------------------------------------------------------------
1594 systemd_fsck_SOURCES = \
1597 systemd_fsck_CFLAGS = \
1601 systemd_fsck_LDADD = \
1602 libsystemd-shared.la \
1603 libsystemd-dbus.la \
1606 # ------------------------------------------------------------------------------
1607 systemd_timestamp_SOURCES = \
1608 src/timestamp/timestamp.c
1610 systemd_timestamp_LDADD = \
1611 libsystemd-shared.la
1613 # ------------------------------------------------------------------------------
1614 systemd_ac_power_SOURCES = \
1615 src/ac-power/ac-power.c
1617 systemd_ac_power_LDADD = \
1618 libsystemd-shared.la \
1621 # ------------------------------------------------------------------------------
1622 systemd_detect_virt_SOURCES = \
1623 src/detect-virt/detect-virt.c
1625 systemd_detect_virt_LDADD = \
1626 libsystemd-shared.la
1628 systemd-detect-virt-install-hook:
1629 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1631 INSTALL_EXEC_HOOKS += \
1632 systemd-detect-virt-install-hook
1634 # ------------------------------------------------------------------------------
1635 systemd_delta_SOURCES = \
1638 systemd_delta_LDADD = \
1639 libsystemd-shared.la
1641 # ------------------------------------------------------------------------------
1642 systemd_getty_generator_SOURCES = \
1643 src/getty-generator/getty-generator.c
1645 systemd_getty_generator_LDADD = \
1646 libsystemd-label.la \
1647 libsystemd-shared.la
1649 # ------------------------------------------------------------------------------
1650 systemd_fstab_generator_SOURCES = \
1651 src/fstab-generator/fstab-generator.c \
1652 src/core/mount-setup.c
1654 systemd_fstab_generator_LDADD = \
1655 libsystemd-label.la \
1656 libsystemd-shared.la
1658 # ------------------------------------------------------------------------------
1659 systemd_system_update_generator_SOURCES = \
1660 src/system-update-generator/system-update-generator.c
1662 systemd_system_update_generator_LDADD = \
1663 libsystemd-label.la \
1664 libsystemd-shared.la
1667 # ------------------------------------------------------------------------------
1668 systemgenerator_PROGRAMS += \
1669 systemd-efi-boot-generator
1671 systemd_efi_boot_generator_SOURCES = \
1672 src/efi-boot-generator/efi-boot-generator.c
1674 systemd_efi_boot_generator_LDADD = \
1675 libsystemd-label.la \
1676 libsystemd-shared.la
1678 # ------------------------------------------------------------------------------
1681 src/boot/boot-loader.h \
1682 src/boot/bootctl.c \
1683 src/boot/boot-loader.c \
1687 libsystemd-shared.la \
1688 libsystemd-id128.la \
1689 libsystemd-daemon.la
1695 # ------------------------------------------------------------------------------
1696 systemd_rc_local_generator_SOURCES = \
1697 src/rc-local-generator/rc-local-generator.c
1699 systemd_rc_local_generator_LDADD = \
1700 libsystemd-label.la \
1701 libsystemd-shared.la
1703 # ------------------------------------------------------------------------------
1704 systemd_remount_fs_SOURCES = \
1705 src/remount-fs/remount-fs.c \
1706 src/core/mount-setup.c \
1707 src/core/mount-setup.h
1709 systemd_remount_fs_LDADD = \
1710 libsystemd-label.la \
1711 libsystemd-shared.la
1713 # ------------------------------------------------------------------------------
1714 systemd_cgroups_agent_SOURCES = \
1715 src/cgroups-agent/cgroups-agent.c
1717 systemd_cgroups_agent_CFLAGS = \
1721 systemd_cgroups_agent_LDADD = \
1722 libsystemd-shared.la \
1725 # ------------------------------------------------------------------------------
1726 systemctl_SOURCES = \
1727 src/systemctl/systemctl.c
1729 systemctl_CFLAGS = \
1734 libsystemd-units.la \
1735 libsystemd-label.la \
1736 libsystemd-shared.la \
1737 libsystemd-daemon.la \
1738 libsystemd-dbus.la \
1741 # ------------------------------------------------------------------------------
1742 systemd_notify_SOURCES = \
1743 src/notify/notify.c \
1744 src/readahead/sd-readahead.c
1746 systemd_notify_LDADD = \
1747 libsystemd-shared.la \
1748 libsystemd-daemon.la
1750 # ------------------------------------------------------------------------------
1751 systemd_ask_password_SOURCES = \
1752 src/ask-password/ask-password.c
1754 systemd_ask_password_LDADD = \
1755 libsystemd-label.la \
1756 libsystemd-shared.la
1758 # ------------------------------------------------------------------------------
1759 systemd_reply_password_SOURCES = \
1760 src/reply-password/reply-password.c
1762 systemd_reply_password_LDADD = \
1763 libsystemd-shared.la
1765 # ------------------------------------------------------------------------------
1766 systemd_cgls_SOURCES = \
1769 systemd_cgls_LDADD = \
1770 libsystemd-shared.la
1772 # ------------------------------------------------------------------------------
1773 systemd_cgtop_SOURCES = \
1776 systemd_cgtop_LDADD = \
1777 libsystemd-shared.la
1779 # ------------------------------------------------------------------------------
1780 systemd_nspawn_SOURCES = \
1781 src/nspawn/nspawn.c \
1782 src/core/mount-setup.c \
1783 src/core/mount-setup.h \
1784 src/core/loopback-setup.c \
1785 src/core/loopback-setup.h
1787 systemd_nspawn_LDADD = \
1788 libsystemd-label.la \
1789 libsystemd-capability.la \
1790 libsystemd-shared.la \
1791 libsystemd-daemon.la \
1792 libsystemd-id128-internal.la \
1795 # ------------------------------------------------------------------------------
1796 systemd_run_SOURCES = \
1799 systemd_run_LDADD = \
1800 libsystemd-label.la \
1801 libsystemd-capability.la \
1802 libsystemd-shared.la \
1803 libsystemd-daemon.la \
1804 libsystemd-id128-internal.la \
1807 # ------------------------------------------------------------------------------
1808 systemd_stdio_bridge_SOURCES = \
1809 src/stdio-bridge/stdio-bridge.c
1811 systemd_stdio_bridge_LDADD = \
1812 libsystemd-shared.la \
1814 libsystemd-daemon.la
1816 # ------------------------------------------------------------------------------
1817 systemd_tty_ask_password_agent_SOURCES = \
1818 src/tty-ask-password-agent/tty-ask-password-agent.c
1820 systemd_tty_ask_password_agent_LDADD = \
1821 libsystemd-label.la \
1822 libsystemd-shared.la
1824 # ------------------------------------------------------------------------------
1825 libsystemd_daemon_la_SOURCES = \
1826 src/libsystemd-daemon/sd-daemon.c
1828 libsystemd_daemon_internal_la_SOURCES = \
1829 $(libsystemd_daemon_la_SOURCES)
1831 libsystemd_daemon_la_CFLAGS = \
1833 -fvisibility=hidden \
1836 libsystemd_daemon_la_LDFLAGS = \
1838 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1839 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1841 pkginclude_HEADERS += \
1842 src/systemd/sd-daemon.h
1844 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1845 libsystemd-daemon-install-hook:
1846 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1848 libsystemd-daemon-uninstall-hook:
1849 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1851 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1852 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1854 lib_LTLIBRARIES += \
1855 libsystemd-daemon.la
1857 noinst_LTLIBRARIES += \
1858 libsystemd-daemon-internal.la
1860 pkgconfiglib_DATA += \
1861 src/libsystemd-daemon/libsystemd-daemon.pc
1864 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1865 src/libsystemd-daemon/libsystemd-daemon.sym
1867 # ------------------------------------------------------------------------------
1868 libsystemd_bus_la_SOURCES = \
1869 src/systemd/sd-bus.h \
1870 src/systemd/sd-bus-protocol.h \
1871 src/systemd/sd-memfd.h \
1872 src/libsystemd-bus/sd-bus.c \
1873 src/libsystemd-bus/bus-control.c \
1874 src/libsystemd-bus/bus-control.h \
1875 src/libsystemd-bus/bus-error.c \
1876 src/libsystemd-bus/bus-error.h \
1877 src/libsystemd-bus/bus-internal.c \
1878 src/libsystemd-bus/bus-internal.h \
1879 src/libsystemd-bus/bus-socket.c \
1880 src/libsystemd-bus/bus-socket.h \
1881 src/libsystemd-bus/bus-kernel.c \
1882 src/libsystemd-bus/bus-kernel.h \
1883 src/libsystemd-bus/bus-message.c \
1884 src/libsystemd-bus/bus-message.h \
1885 src/libsystemd-bus/bus-signature.c \
1886 src/libsystemd-bus/bus-signature.h \
1887 src/libsystemd-bus/bus-type.c \
1888 src/libsystemd-bus/bus-type.h \
1889 src/libsystemd-bus/bus-match.c \
1890 src/libsystemd-bus/bus-match.h \
1891 src/libsystemd-bus/bus-bloom.c \
1892 src/libsystemd-bus/bus-bloom.h \
1893 src/libsystemd-bus/kdbus.h \
1894 src/libsystemd-bus/sd-memfd.c
1896 libsystemd_bus_la_LIBADD = \
1897 libsystemd-id128-internal.la \
1898 libsystemd-shared.la \
1899 libsystemd-daemon.la
1901 libsystemd_bus_la_CFLAGS = \
1905 noinst_LTLIBRARIES += \
1910 test-bus-signature \
1915 test-bus-kernel-bloom \
1916 test-bus-kernel-benchmark \
1920 noinst_PROGRAMS += \
1923 test_bus_marshal_SOURCES = \
1924 src/libsystemd-bus/test-bus-marshal.c
1926 test_bus_marshal_LDADD = \
1927 libsystemd-shared.la \
1932 test_bus_marshal_CFLAGS = \
1937 test_bus_signature_SOURCES = \
1938 src/libsystemd-bus/test-bus-signature.c
1940 test_bus_signature_LDADD = \
1941 libsystemd-shared.la \
1944 test_bus_chat_SOURCES = \
1945 src/libsystemd-bus/test-bus-chat.c
1947 test_bus_chat_CFLAGS = \
1951 test_bus_chat_LDADD = \
1952 libsystemd-shared.la \
1954 libsystemd-id128-internal.la
1956 test_bus_server_SOURCES = \
1957 src/libsystemd-bus/test-bus-server.c
1959 test_bus_server_CFLAGS = \
1963 test_bus_server_LDADD = \
1964 libsystemd-shared.la \
1966 libsystemd-id128-internal.la
1968 test_bus_match_SOURCES = \
1969 src/libsystemd-bus/test-bus-match.c
1971 test_bus_match_CFLAGS = \
1974 test_bus_match_LDADD = \
1975 libsystemd-shared.la \
1977 libsystemd-id128-internal.la
1979 test_bus_kernel_SOURCES = \
1980 src/libsystemd-bus/test-bus-kernel.c
1982 test_bus_kernel_CFLAGS = \
1985 test_bus_kernel_LDADD = \
1986 libsystemd-shared.la \
1988 libsystemd-id128-internal.la
1990 test_bus_kernel_bloom_SOURCES = \
1991 src/libsystemd-bus/test-bus-kernel-bloom.c
1993 test_bus_kernel_bloom_CFLAGS = \
1996 test_bus_kernel_bloom_LDADD = \
1997 libsystemd-shared.la \
1999 libsystemd-id128-internal.la
2001 test_bus_kernel_benchmark_SOURCES = \
2002 src/libsystemd-bus/test-bus-kernel-benchmark.c
2004 test_bus_kernel_benchmark_CFLAGS = \
2007 test_bus_kernel_benchmark_LDADD = \
2008 libsystemd-shared.la \
2010 libsystemd-id128-internal.la
2012 test_bus_memfd_SOURCES = \
2013 src/libsystemd-bus/test-bus-memfd.c
2015 test_bus_memfd_CFLAGS = \
2018 test_bus_memfd_LDADD = \
2019 libsystemd-shared.la \
2022 test_bus_zero_copy_SOURCES = \
2023 src/libsystemd-bus/test-bus-zero-copy.c
2025 test_bus_zero_copy_CFLAGS = \
2028 test_bus_zero_copy_LDADD = \
2029 libsystemd-shared.la \
2033 src/libsystemd-bus/busctl.c
2036 libsystemd-shared.la \
2039 # ------------------------------------------------------------------------------
2049 include_HEADERS += \
2050 src/libudev/libudev.h
2052 lib_LTLIBRARIES += \
2055 libudev_la_SOURCES =\
2056 src/libudev/libudev-private.h \
2057 src/libudev/libudev.c \
2058 src/libudev/libudev-list.c \
2059 src/libudev/libudev-util.c \
2060 src/libudev/libudev-device.c \
2061 src/libudev/libudev-enumerate.c \
2062 src/libudev/libudev-monitor.c \
2063 src/libudev/libudev-queue.c \
2064 src/libudev/libudev-hwdb-def.h \
2065 src/libudev/libudev-hwdb.c
2067 libudev_la_CFLAGS = \
2071 libudev_la_LDFLAGS = \
2073 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2074 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2076 libudev_la_LIBADD = \
2077 libsystemd-shared.la \
2078 libsystemd-label.la \
2079 libsystemd-daemon-internal.la \
2080 libsystemd-id128-internal.la
2082 pkgconfiglib_DATA += \
2083 src/libudev/libudev.pc
2086 src/libudev/libudev.pc.in \
2087 src/libudev/libudev.sym
2090 src/libudev/libudev.pc \
2095 $(AM_V_at)$(MKDIR_P) $(dir $@)
2096 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2099 $(AM_V_at)$(MKDIR_P) $(dir $@)
2100 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2102 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2103 libudev-install-hook:
2104 libname=libudev.so && $(move-to-rootlibdir)
2106 libudev-uninstall-hook:
2107 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2109 INSTALL_EXEC_HOOKS += libudev-install-hook
2110 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2112 # ------------------------------------------------------------------------------
2113 noinst_LTLIBRARIES += \
2116 libudev_private_la_SOURCES =\
2117 $(libudev_la_SOURCES) \
2118 src/libudev/libudev-device-private.c \
2119 src/libudev/libudev-queue-private.c
2121 libudev_private_la_CFLAGS = \
2123 -fvisibility=default
2125 libudev_private_la_LIBADD = \
2126 libsystemd-shared.la
2128 # ------------------------------------------------------------------------------
2130 $(sysconfdir)/udev/rules.d \
2131 $(sysconfdir)/udev/hwdb.d
2133 dist_udevrules_DATA += \
2134 rules/99-systemd.rules \
2135 rules/42-usb-hid-pm.rules \
2136 rules/50-udev-default.rules \
2137 rules/60-keyboard.rules \
2138 rules/60-persistent-storage-tape.rules \
2139 rules/60-persistent-serial.rules \
2140 rules/60-persistent-input.rules \
2141 rules/60-persistent-alsa.rules \
2142 rules/60-persistent-storage.rules \
2143 rules/64-btrfs.rules \
2144 rules/75-net-description.rules \
2145 rules/75-tty-description.rules \
2146 rules/78-sound-card.rules \
2147 rules/80-net-name-slot.rules \
2148 rules/95-udev-late.rules
2150 dist_udevhwdb_DATA = \
2151 hwdb/20-pci-vendor-model.hwdb \
2152 hwdb/20-pci-classes.hwdb \
2153 hwdb/20-usb-vendor-model.hwdb \
2154 hwdb/20-usb-classes.hwdb \
2155 hwdb/20-bluetooth-vendor-product.hwdb \
2156 hwdb/20-acpi-vendor.hwdb \
2158 hwdb/60-keyboard.hwdb
2160 udevconfdir = $(sysconfdir)/udev
2161 dist_udevconf_DATA = \
2164 sharepkgconfigdir = $(datadir)/pkgconfig
2165 sharepkgconfig_DATA = \
2169 rules/99-systemd.rules.in \
2173 rules/99-systemd.rules \
2177 units/systemd-udevd.service.in \
2178 units/systemd-udev-trigger.service.in \
2179 units/systemd-udev-settle.service.in
2182 units/systemd-udevd.service \
2183 units/systemd-udev-trigger.service \
2184 units/systemd-udev-settle.service
2186 SOCKETS_TARGET_WANTS += \
2187 systemd-udevd-control.socket \
2188 systemd-udevd-kernel.socket
2189 SYSINIT_TARGET_WANTS += \
2190 systemd-udevd.service \
2191 systemd-udev-trigger.service
2193 rootbin_PROGRAMS += \
2196 rootlibexec_PROGRAMS += \
2199 noinst_LTLIBRARIES += \
2202 src/udev/keyboard-keys.txt: Makefile
2203 $(AM_V_at)$(MKDIR_P) $(dir $@)
2204 $(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/' > $@
2206 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2207 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2209 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2210 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2212 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2213 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2215 libudev_core_la_SOURCES = \
2217 src/udev/udev-event.c \
2218 src/udev/udev-watch.c \
2219 src/udev/udev-node.c \
2220 src/udev/udev-rules.c \
2221 src/udev/udev-ctrl.c \
2222 src/udev/udev-builtin.c \
2223 src/udev/udev-builtin-btrfs.c \
2224 src/udev/udev-builtin-hwdb.c \
2225 src/udev/udev-builtin-input_id.c \
2226 src/udev/udev-builtin-keyboard.c \
2227 src/udev/udev-builtin-net_id.c \
2228 src/udev/udev-builtin-path_id.c \
2229 src/udev/udev-builtin-usb_id.c
2231 nodist_libudev_core_la_SOURCES = \
2232 src/udev/keyboard-keys-from-name.h \
2233 src/udev/keyboard-keys-to-name.h
2236 $(nodist_libudev_core_la_SOURCES)
2239 src/udev/keyboard-keys-from-name.gperf \
2240 src/udev/keyboard-keys.txt
2242 libudev_core_la_CFLAGS = \
2247 libudev_core_la_LIBADD = \
2248 libudev-private.la \
2249 libsystemd-label.la \
2250 libsystemd-daemon-internal.la \
2251 libsystemd-shared.la \
2255 libudev_core_la_CPPFLAGS = \
2257 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2260 libudev_core_la_SOURCES += \
2261 src/udev/udev-builtin-firmware.c
2263 dist_udevrules_DATA += \
2264 rules/50-firmware.rules
2268 libudev_core_la_SOURCES += \
2269 src/udev/udev-builtin-kmod.c
2271 dist_udevrules_DATA += \
2272 rules/80-drivers.rules
2276 libudev_core_la_SOURCES += \
2277 src/udev/udev-builtin-blkid.c
2281 libudev_core_la_SOURCES += \
2282 src/udev/udev-builtin-uaccess.c \
2283 src/login/logind-acl.c \
2284 src/login/sd-login.c
2286 libudev_core_la_LIBADD += \
2290 systemd_udevd_SOURCES = \
2293 systemd_udevd_LDADD = \
2297 src/udev/udevadm.c \
2298 src/udev/udevadm-info.c \
2299 src/udev/udevadm-control.c \
2300 src/udev/udevadm-monitor.c \
2301 src/udev/udevadm-hwdb.c \
2302 src/udev/udevadm-settle.c \
2303 src/udev/udevadm-trigger.c \
2304 src/udev/udevadm-test.c \
2305 src/udev/udevadm-test-builtin.c
2309 libsystemd-shared.la
2311 # Update hwdb on installation. Do not bother if installing
2312 # in DESTDIR, since this is likely for packaging purposes.
2314 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2316 INSTALL_DATA_HOOKS += \
2320 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2322 # ------------------------------------------------------------------------------
2331 test_libudev_SOURCES = \
2332 src/test/test-libudev.c
2334 test_libudev_LDADD = \
2335 libsystemd-label.la \
2336 libsystemd-shared.la \
2339 test_udev_SOURCES = \
2340 src/test/test-udev.c
2344 libsystemd-shared.la \
2350 test_udev_LDADD += \
2357 # packed sysfs test tree
2359 $(AM_V_at)$(MKDIR_P) $(dir $@)
2360 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2364 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2369 test/rules-test.sh \
2370 test/rule-syntax-check.py
2372 # ------------------------------------------------------------------------------
2374 src/udev/ata_id/ata_id.c
2377 libudev-private.la \
2378 libsystemd-shared.la
2380 udevlibexec_PROGRAMS += \
2383 # ------------------------------------------------------------------------------
2384 cdrom_id_SOURCES = \
2385 src/udev/cdrom_id/cdrom_id.c
2389 libsystemd-shared.la
2391 udevlibexec_PROGRAMS += \
2394 dist_udevrules_DATA += \
2395 rules/60-cdrom_id.rules
2397 # ------------------------------------------------------------------------------
2399 src/udev/collect/collect.c
2404 udevlibexec_PROGRAMS += \
2407 # ------------------------------------------------------------------------------
2409 src/udev/scsi_id/scsi_id.c \
2410 src/udev/scsi_id/scsi_serial.c \
2411 src/udev/scsi_id/scsi.h \
2412 src/udev/scsi_id/scsi_id.h
2415 libudev-private.la \
2416 libsystemd-shared.la
2418 udevlibexec_PROGRAMS += \
2422 src/udev/scsi_id/README
2424 # ------------------------------------------------------------------------------
2426 src/udev/v4l_id/v4l_id.c
2431 udevlibexec_PROGRAMS += \
2434 dist_udevrules_DATA += \
2435 rules/60-persistent-v4l.rules
2437 # ------------------------------------------------------------------------------
2438 accelerometer_SOURCES = \
2439 src/udev/accelerometer/accelerometer.c
2441 accelerometer_LDADD = \
2443 libsystemd-shared.la
2445 udevlibexec_PROGRAMS += \
2448 dist_udevrules_DATA += \
2449 rules/61-accelerometer.rules
2451 # ------------------------------------------------------------------------------
2458 libgudev_includedir = \
2459 $(includedir)/gudev-1.0/gudev
2461 libgudev_include_HEADERS = \
2463 src/gudev/gudevenums.h \
2464 src/gudev/gudevenumtypes.h \
2465 src/gudev/gudevtypes.h \
2466 src/gudev/gudevclient.h \
2467 src/gudev/gudevdevice.h \
2468 src/gudev/gudevenumerator.h
2470 lib_LTLIBRARIES += libgudev-1.0.la
2472 pkgconfiglib_DATA += \
2473 src/gudev/gudev-1.0.pc
2476 src/gudev/gudev-1.0.pc
2478 libgudev_1_0_la_SOURCES = \
2479 src/gudev/gudevenums.h \
2480 src/gudev/gudevenumtypes.h \
2481 src/gudev/gudevenumtypes.h\
2482 src/gudev/gudevtypes.h \
2483 src/gudev/gudevclient.h \
2484 src/gudev/gudevclient.c \
2485 src/gudev/gudevdevice.h \
2486 src/gudev/gudevdevice.c \
2487 src/gudev/gudevenumerator.h \
2488 src/gudev/gudevenumerator.c \
2489 src/gudev/gudevprivate.h
2491 nodist_libgudev_1_0_la_SOURCES = \
2492 src/gudev/gudevmarshal.h \
2493 src/gudev/gudevmarshal.c \
2494 src/gudev/gudevenumtypes.h \
2495 src/gudev/gudevenumtypes.c
2498 $(nodist_libgudev_1_0_la_SOURCES)
2500 libgudev_1_0_la_CPPFLAGS = \
2502 -I$(top_builddir)/src\
2503 -I$(top_srcdir)/src\
2504 -I$(top_builddir)/src/gudev \
2505 -I$(top_srcdir)/src/gudev \
2506 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2507 -D_GUDEV_COMPILATION \
2508 -DG_LOG_DOMAIN=\"GUdev\"
2510 libgudev_1_0_la_CFLAGS = \
2512 -fvisibility=default \
2515 libgudev_1_0_la_LIBADD = \
2519 libgudev_1_0_la_LDFLAGS = \
2521 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2522 -export-dynamic -no-undefined \
2523 -export-symbols-regex '^g_udev_.*'
2525 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2526 $(AM_V_at)$(MKDIR_P) $(dir $@)
2527 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2529 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2530 $(AM_V_at)$(MKDIR_P) $(dir $@)
2531 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2532 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2534 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2535 $(AM_V_at)$(MKDIR_P) $(dir $@)
2536 $(AM_V_GEN)glib-mkenums --template $^ > $@
2538 if HAVE_INTROSPECTION
2539 -include $(INTROSPECTION_MAKEFILE)
2541 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2543 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2545 src_gudev_GUdev_1_0_gir_CFLAGS = \
2547 -D_GUDEV_COMPILATION \
2548 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2549 -I$(top_srcdir)/src \
2550 -I$(top_builddir)/src \
2551 -I$(top_srcdir)/src/gdev \
2552 -I$(top_builddir)/src/gdev
2554 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2556 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2557 --pkg-export=gudev-1.0 \
2560 src_gudev_GUdev_1_0_gir_FILES = \
2562 src/gudev/gudevtypes.h \
2563 src/gudev/gudevenums.h \
2564 src/gudev/gudevenumtypes.h \
2565 src/gudev/gudevclient.h \
2566 src/gudev/gudevdevice.h \
2567 src/gudev/gudevenumerator.h \
2568 src/gudev/gudevclient.c \
2569 src/gudev/gudevdevice.c \
2570 src/gudev/gudevenumerator.c
2572 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2573 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2575 girdir = $(datadir)/gir-1.0
2577 src/gudev/GUdev-1.0.gir
2579 typelibsdir = $(libdir)/girepository-1.0
2581 src/gudev/GUdev-1.0.typelib
2583 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2584 endif # HAVE_INTROSPECTION
2586 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2587 libgudev-install-hook:
2588 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2590 libgudev-uninstall-hook:
2591 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2593 INSTALL_EXEC_HOOKS += libgudev-install-hook
2594 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2598 src/gudev/gudev-1.0.pc.in \
2599 src/gudev/gudevmarshal.list \
2600 src/gudev/gudevenumtypes.h.template \
2601 src/gudev/gudevenumtypes.c.template \
2602 src/gudev/gjs-example.js \
2603 src/gudev/seed-example-enum.js \
2604 src/gudev/seed-example.js
2606 # ------------------------------------------------------------------------------
2607 mtd_probe_SOURCES = \
2608 src/udev/mtd_probe/mtd_probe.c \
2609 src/udev/mtd_probe/mtd_probe.h \
2610 src/udev/mtd_probe/probe_smartmedia.c
2612 mtd_probe_CPPFLAGS = \
2615 dist_udevrules_DATA += \
2616 rules/75-probe_mtd.rules
2618 udevlibexec_PROGRAMS += \
2621 # ------------------------------------------------------------------------------
2622 libsystemd_id128_la_SOURCES = \
2623 src/libsystemd-id128/sd-id128.c
2625 libsystemd_id128_la_CFLAGS = \
2629 libsystemd_id128_la_LDFLAGS = \
2631 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2632 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2634 libsystemd_id128_la_LIBADD = \
2635 libsystemd-shared.la \
2636 libsystemd-label.la \
2637 libsystemd-daemon-internal.la
2639 libsystemd_id128_internal_la_SOURCES = \
2640 $(libsystemd_id128_la_SOURCES)
2642 test_id128_SOURCES = \
2643 src/test/test-id128.c
2645 test_id128_LDADD = \
2646 libsystemd-shared.la \
2647 libsystemd-id128-internal.la
2652 pkginclude_HEADERS += \
2653 src/systemd/sd-id128.h
2655 lib_LTLIBRARIES += \
2658 noinst_LTLIBRARIES += \
2659 libsystemd-id128-internal.la
2661 pkgconfiglib_DATA += \
2662 src/libsystemd-id128/libsystemd-id128.pc
2664 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2665 libsystemd-id128-install-hook:
2666 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2668 libsystemd-id128-uninstall-hook:
2669 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2671 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2672 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2675 src/libsystemd-id128/libsystemd-id128.pc.in \
2676 src/libsystemd-id128/libsystemd-id128.sym
2678 # ------------------------------------------------------------------------------
2680 rootlibexec_PROGRAMS += \
2683 systemd_activate_SOURCES = \
2684 src/activate/activate.c
2686 systemd_activate_LDADD = \
2687 libsystemd-shared.la \
2688 libsystemd-daemon.la
2690 # ------------------------------------------------------------------------------
2691 systemd_journald_SOURCES = \
2692 src/journal/journald.c \
2693 src/journal/journald-server.h
2695 systemd_journald_LDADD = \
2696 libsystemd-journal-internal.la \
2697 libsystemd-shared.la \
2698 libsystemd-id128-internal.la
2700 systemd_cat_SOURCES = \
2703 systemd_cat_LDADD = \
2704 libsystemd-shared.la \
2705 libsystemd-journal-internal.la
2707 journalctl_SOURCES = \
2708 src/journal/journalctl.c
2710 journalctl_CFLAGS = \
2713 journalctl_LDADD = \
2714 libsystemd-shared.la \
2715 libsystemd-journal-internal.la \
2716 libsystemd-id128-internal.la \
2720 journalctl_LDADD += \
2725 journalctl_SOURCES += \
2726 src/journal/journal-qrcode.c \
2727 src/journal/journal-qrcode.h
2729 journalctl_CFLAGS += \
2732 journalctl_LDADD += \
2736 test_journal_SOURCES = \
2737 src/journal/test-journal.c
2739 test_journal_LDADD = \
2740 libsystemd-shared.la \
2741 libsystemd-journal-internal.la \
2742 libsystemd-id128-internal.la
2744 test_journal_send_SOURCES = \
2745 src/journal/test-journal-send.c
2747 test_journal_send_LDADD = \
2748 libsystemd-shared.la \
2749 libsystemd-journal-internal.la \
2750 libsystemd-id128-internal.la
2752 test_journal_syslog_SOURCES = \
2753 src/journal/test-journal-syslog.c
2755 test_journal_syslog_LDADD = \
2756 libsystemd-journal-internal.la \
2757 libsystemd-shared.la \
2758 libsystemd-id128-internal.la
2760 test_journal_match_SOURCES = \
2761 src/journal/test-journal-match.c
2763 test_journal_match_LDADD = \
2764 libsystemd-shared.la \
2765 libsystemd-journal-internal.la \
2766 libsystemd-id128-internal.la
2768 test_journal_enum_SOURCES = \
2769 src/journal/test-journal-enum.c
2771 test_journal_enum_LDADD = \
2772 libsystemd-shared.la \
2773 libsystemd-journal-internal.la \
2774 libsystemd-id128-internal.la
2776 test_journal_stream_SOURCES = \
2777 src/journal/test-journal-stream.c
2779 test_journal_stream_LDADD = \
2780 libsystemd-shared.la \
2781 libsystemd-journal-internal.la \
2782 libsystemd-id128-internal.la
2784 test_journal_verify_SOURCES = \
2785 src/journal/test-journal-verify.c
2787 test_journal_verify_LDADD = \
2788 libsystemd-shared.la \
2789 libsystemd-journal-internal.la \
2790 libsystemd-id128-internal.la
2792 test_journal_interleaving_SOURCES = \
2793 src/journal/test-journal-interleaving.c
2795 test_journal_interleaving_LDADD = \
2796 libsystemd-shared.la \
2797 libsystemd-journal-internal.la \
2798 libsystemd-id128-internal.la
2800 test_mmap_cache_SOURCES = \
2801 src/journal/test-mmap-cache.c
2803 test_mmap_cache_LDADD = \
2804 libsystemd-shared.la \
2805 libsystemd-journal-internal.la
2807 test_catalog_SOURCES = \
2808 src/journal/test-catalog.c
2810 test_catalog_LDADD = \
2811 libsystemd-shared.la \
2812 libsystemd-label.la \
2813 libsystemd-journal-internal.la \
2814 libsystemd-id128-internal.la
2816 libsystemd_journal_la_SOURCES = \
2817 src/journal/sd-journal.c \
2818 src/systemd/sd-journal.h \
2819 src/journal/journal-file.c \
2820 src/journal/journal-file.h \
2821 src/journal/journal-vacuum.c \
2822 src/journal/journal-vacuum.h \
2823 src/journal/journal-verify.c \
2824 src/journal/journal-verify.h \
2825 src/journal/lookup3.c \
2826 src/journal/lookup3.h \
2827 src/journal/journal-send.c \
2828 src/journal/journal-def.h \
2829 src/journal/compress.h \
2830 src/journal/catalog.c \
2831 src/journal/catalog.h \
2832 src/journal/mmap-cache.c \
2833 src/journal/mmap-cache.h
2835 libsystemd_journal_la_CFLAGS = \
2839 libsystemd_journal_la_LDFLAGS = \
2841 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2842 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2844 libsystemd_journal_la_LIBADD = \
2845 libsystemd-shared.la \
2846 libsystemd-label.la \
2847 libsystemd-daemon-internal.la \
2848 libsystemd-id128-internal.la
2850 libsystemd_journal_internal_la_SOURCES = \
2851 $(libsystemd_journal_la_SOURCES) \
2852 src/journal/journald-kmsg.c \
2853 src/journal/journald-kmsg.h \
2854 src/journal/journald-syslog.c \
2855 src/journal/journald-syslog.h \
2856 src/journal/journald-stream.c \
2857 src/journal/journald-stream.h \
2858 src/journal/journald-server.c \
2859 src/journal/journald-server.h \
2860 src/journal/journald-console.c \
2861 src/journal/journald-console.h \
2862 src/journal/journald-native.c \
2863 src/journal/journald-native.h \
2864 src/journal/journald-rate-limit.c \
2865 src/journal/journald-rate-limit.h \
2866 src/journal/journal-internal.h
2868 libsystemd_journal_internal_la_CFLAGS = \
2871 libsystemd_journal_internal_la_LIBADD = \
2872 libsystemd-label.la \
2873 libsystemd-audit.la \
2874 libsystemd-daemon.la \
2876 libsystemd-shared.la \
2879 nodist_libsystemd_journal_internal_la_SOURCES = \
2880 src/journal/journald-gperf.c
2883 libsystemd_journal_internal_la_LIBADD += \
2884 libsystemd-login-internal.la
2888 libsystemd_journal_internal_la_LIBADD += \
2893 libsystemd_journal_la_SOURCES += \
2894 src/journal/compress.c
2896 libsystemd_journal_la_CFLAGS += \
2899 libsystemd_journal_la_LIBADD += \
2902 libsystemd_journal_internal_la_CFLAGS += \
2905 libsystemd_journal_internal_la_LIBADD += \
2911 libsystemd_journal_la_SOURCES += \
2912 src/journal/journal-authenticate.c \
2913 src/journal/journal-authenticate.h \
2914 src/journal/fsprg.c \
2917 libsystemd_journal_la_CFLAGS += \
2921 libsystemd_journal_la_LIBADD += \
2924 libsystemd_journal_internal_la_CFLAGS += \
2928 libsystemd_journal_internal_la_LIBADD += \
2932 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
2933 # needed. Also, grant read access to new journal files to members of
2934 # "adm" and "wheel".
2935 libsystemd-journal-install-hook:
2936 libname=libsystemd-journal.so && $(move-to-rootlibdir)
2937 -$(MKDIR_P) $(DESTDIR)/var/log/journal
2938 -chown 0:0 $(DESTDIR)/var/log/journal
2939 -chmod 755 $(DESTDIR)/var/log/journal
2940 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
2941 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
2943 libsystemd-journal-uninstall-hook:
2944 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
2946 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
2947 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
2949 # ------------------------------------------------------------------------------
2951 # Update catalog on installation. Do not bother if installing
2952 # in DESTDIR, since this is likely for packaging purposes.
2953 catalog-update-hook:
2954 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
2956 INSTALL_DATA_HOOKS += \
2959 catalog-remove-hook:
2960 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
2962 UNINSTALL_DATA_HOOKS += \
2971 test-journal-syslog \
2972 test-journal-match \
2973 test-journal-stream \
2974 test-journal-verify \
2975 test-journal-interleaving \
2979 pkginclude_HEADERS += \
2980 src/systemd/sd-journal.h \
2981 src/systemd/sd-messages.h
2983 lib_LTLIBRARIES += \
2984 libsystemd-journal.la
2986 noinst_LTLIBRARIES += \
2987 libsystemd-journal-internal.la
2989 rootlibexec_PROGRAMS += \
2992 rootbin_PROGRAMS += \
2998 dist_systemunit_DATA += \
2999 units/systemd-journald.socket
3001 nodist_systemunit_DATA += \
3002 units/systemd-journald.service \
3003 units/systemd-journal-flush.service
3005 dist_pkgsysconf_DATA += \
3006 src/journal/journald.conf
3008 pkgconfiglib_DATA += \
3009 src/journal/libsystemd-journal.pc
3011 dist_catalog_DATA = \
3012 catalog/systemd.catalog
3014 SOCKETS_TARGET_WANTS += \
3015 systemd-journald.socket
3016 SYSINIT_TARGET_WANTS += \
3017 systemd-journald.service \
3018 systemd-journal-flush.service
3021 src/journal/libsystemd-journal.pc.in \
3022 src/journal/libsystemd-journal.sym \
3023 units/systemd-journald.service.in \
3024 units/systemd-journal-flush.service.in \
3025 src/journal/journald-gperf.gperf
3028 src/journal/journald-gperf.c
3030 # ------------------------------------------------------------------------------
3032 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3034 rootlibexec_PROGRAMS += \
3035 systemd-journal-gatewayd
3037 systemd_journal_gatewayd_SOURCES = \
3038 src/journal/journal-gatewayd.c \
3039 src/journal/microhttpd-util.h \
3040 src/journal/microhttpd-util.c
3042 systemd_journal_gatewayd_LDADD = \
3043 libsystemd-shared.la \
3044 libsystemd-logs.la \
3045 libsystemd-journal-internal.la \
3046 libsystemd-id128-internal.la \
3047 libsystemd-daemon.la \
3051 systemd_journal_gatewayd_CFLAGS = \
3052 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3054 $(MICROHTTPD_CFLAGS)
3056 dist_systemunit_DATA += \
3057 units/systemd-journal-gatewayd.socket
3059 nodist_systemunit_DATA += \
3060 units/systemd-journal-gatewayd.service
3062 dist_gatewayddocumentroot_DATA = \
3063 src/journal/browse.html
3068 units/systemd-journal-gatewayd.service.in
3070 # ------------------------------------------------------------------------------
3072 systemd_coredump_SOURCES = \
3073 src/journal/coredump.c
3075 systemd_coredump_LDADD = \
3076 libsystemd-journal-internal.la \
3077 libsystemd-label.la \
3078 libsystemd-shared.la
3081 systemd_coredump_LDADD += \
3082 libsystemd-login-internal.la
3085 rootlibexec_PROGRAMS += \
3088 systemd_coredumpctl_SOURCES = \
3089 src/journal/coredumpctl.c
3091 systemd_coredumpctl_LDADD = \
3092 libsystemd-shared.la \
3093 libsystemd-journal.la
3098 dist_bashcompletion_DATA += \
3099 shell-completion/bash/systemd-coredumpctl
3102 sysctl.d/50-coredump.conf
3105 sysctl.d/50-coredump.conf
3109 sysctl.d/50-coredump.conf.in
3111 # ------------------------------------------------------------------------------
3113 systemd_binfmt_SOURCES = \
3116 systemd_binfmt_LDADD = \
3117 libsystemd-shared.la
3119 rootlibexec_PROGRAMS += \
3122 dist_systemunit_DATA += \
3123 units/proc-sys-fs-binfmt_misc.automount \
3124 units/proc-sys-fs-binfmt_misc.mount
3126 nodist_systemunit_DATA += \
3127 units/systemd-binfmt.service
3130 $(prefix)/lib/binfmt.d \
3131 $(sysconfdir)/binfmt.d
3133 SYSINIT_TARGET_WANTS += \
3134 systemd-binfmt.service \
3135 proc-sys-fs-binfmt_misc.automount
3140 units/systemd-binfmt.service.in
3142 # ------------------------------------------------------------------------------
3144 systemd_vconsole_setup_SOURCES = \
3145 src/vconsole/vconsole-setup.c
3147 systemd_vconsole_setup_LDADD = \
3148 libsystemd-shared.la
3150 rootlibexec_PROGRAMS += \
3151 systemd-vconsole-setup
3153 nodist_systemunit_DATA += \
3154 units/systemd-vconsole-setup.service
3156 SYSINIT_TARGET_WANTS += \
3157 systemd-vconsole-setup.service
3161 units/systemd-vconsole-setup.service.in
3163 # ------------------------------------------------------------------------------
3165 systemd_readahead_SOURCES = \
3166 src/readahead/readahead.c \
3167 src/readahead/readahead-collect.c \
3168 src/readahead/readahead-replay.c \
3169 src/readahead/readahead-analyze.c \
3170 src/readahead/readahead-common.c \
3171 src/readahead/readahead-common.h
3173 systemd_readahead_LDADD = \
3174 libsystemd-shared.la \
3175 libsystemd-daemon.la \
3179 src/readahead/sd-readahead.c \
3180 src/systemd/sd-readahead.h
3182 rootlibexec_PROGRAMS += \
3185 dist_systemunit_DATA += \
3186 units/systemd-readahead-drop.service \
3187 units/systemd-readahead-done.timer
3189 nodist_systemunit_DATA += \
3190 units/systemd-readahead-collect.service \
3191 units/systemd-readahead-replay.service \
3192 units/systemd-readahead-done.service
3197 units/systemd-readahead-collect.service.in \
3198 units/systemd-readahead-replay.service.in \
3199 units/systemd-readahead-done.service.in
3201 # ------------------------------------------------------------------------------
3203 systemd_bootchart_SOURCES = \
3204 src/bootchart/bootchart.c \
3205 src/bootchart/bootchart.h \
3206 src/bootchart/store.c \
3207 src/bootchart/store.h \
3208 src/bootchart/svg.c \
3211 systemd_bootchart_LDADD = \
3212 libsystemd-shared.la \
3213 libsystemd-journal.la
3215 rootlibexec_PROGRAMS += \
3218 dist_pkgsysconf_DATA += \
3219 src/bootchart/bootchart.conf
3222 # ------------------------------------------------------------------------------
3223 if ENABLE_QUOTACHECK
3224 rootlibexec_PROGRAMS += \
3227 nodist_systemunit_DATA += \
3228 units/systemd-quotacheck.service
3230 systemd_quotacheck_SOURCES = \
3231 src/quotacheck/quotacheck.c
3233 systemd_quotacheck_LDADD = \
3234 libsystemd-shared.la
3238 units/systemd-quotacheck.service.in
3240 nodist_systemunit_DATA += \
3241 units/quotaon.service
3243 # ------------------------------------------------------------------------------
3244 if ENABLE_RANDOMSEED
3245 rootlibexec_PROGRAMS += \
3248 nodist_systemunit_DATA += \
3249 units/systemd-random-seed.service
3251 systemd_random_seed_SOURCES = \
3252 src/random-seed/random-seed.c
3254 systemd_random_seed_LDADD = \
3255 libsystemd-label.la \
3256 libsystemd-shared.la
3258 SYSINIT_TARGET_WANTS += \
3259 systemd-random-seed.service
3264 units/systemd-random-seed.service.in
3266 # ------------------------------------------------------------------------------
3267 if HAVE_LIBCRYPTSETUP
3268 rootlibexec_PROGRAMS += \
3271 systemgenerator_PROGRAMS += \
3272 systemd-cryptsetup-generator
3274 dist_systemunit_DATA += \
3275 units/cryptsetup.target
3277 systemd_cryptsetup_SOURCES = \
3278 src/cryptsetup/cryptsetup.c
3280 systemd_cryptsetup_CFLAGS = \
3282 $(LIBCRYPTSETUP_CFLAGS)
3284 systemd_cryptsetup_LDADD = \
3285 libsystemd-label.la \
3286 libsystemd-shared.la \
3288 $(LIBCRYPTSETUP_LIBS)
3290 systemd_cryptsetup_generator_SOURCES = \
3291 src/cryptsetup/cryptsetup-generator.c
3293 systemd_cryptsetup_generator_LDADD = \
3294 libsystemd-label.la \
3295 libsystemd-shared.la
3297 SYSINIT_TARGET_WANTS += \
3302 # ------------------------------------------------------------------------------
3304 systemd_hostnamed_SOURCES = \
3305 src/hostname/hostnamed.c
3307 systemd_hostnamed_CFLAGS = \
3311 systemd_hostnamed_LDADD = \
3312 libsystemd-label.la \
3313 libsystemd-shared.la \
3314 libsystemd-daemon.la \
3317 rootlibexec_PROGRAMS += \
3320 nodist_systemunit_DATA += \
3321 units/systemd-hostnamed.service
3323 dist_dbuspolicy_DATA += \
3324 src/hostname/org.freedesktop.hostname1.conf
3326 dist_dbussystemservice_DATA += \
3327 src/hostname/org.freedesktop.hostname1.service
3329 polkitpolicy_files += \
3330 src/hostname/org.freedesktop.hostname1.policy
3332 dbusinterface_DATA += \
3333 org.freedesktop.hostname1.xml
3335 org.freedesktop.hostname1.xml: systemd-hostnamed
3336 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
3337 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3338 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3340 SYSTEM_UNIT_ALIASES += \
3341 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3343 hostnamectl_SOURCES = \
3344 src/hostname/hostnamectl.c
3346 hostnamectl_CFLAGS = \
3350 hostnamectl_LDADD = \
3351 libsystemd-shared.la \
3352 libsystemd-dbus.la \
3353 libsystemd-id128-internal.la
3358 dist_bashcompletion_DATA += \
3359 shell-completion/bash/hostnamectl
3363 polkitpolicy_in_files += \
3364 src/hostname/org.freedesktop.hostname1.policy.in
3367 units/systemd-hostnamed.service.in
3369 # ------------------------------------------------------------------------------
3371 systemd_localed_SOURCES = \
3372 src/locale/localed.c
3374 systemd_localed_CFLAGS = \
3378 systemd_localed_LDADD = \
3379 libsystemd-label.la \
3380 libsystemd-shared.la \
3381 libsystemd-daemon.la \
3384 nodist_systemunit_DATA += \
3385 units/systemd-localed.service
3387 rootlibexec_PROGRAMS += \
3390 dist_dbuspolicy_DATA += \
3391 src/locale/org.freedesktop.locale1.conf
3393 dist_dbussystemservice_DATA += \
3394 src/locale/org.freedesktop.locale1.service
3396 polkitpolicy_files += \
3397 src/locale/org.freedesktop.locale1.policy
3399 dbusinterface_DATA += \
3400 org.freedesktop.locale1.xml
3402 org.freedesktop.locale1.xml: systemd-localed
3403 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
3404 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3405 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3407 SYSTEM_UNIT_ALIASES += \
3408 systemd-localed.service dbus-org.freedesktop.locale1.service
3410 dist_pkgdata_DATA += \
3411 src/locale/kbd-model-map
3413 dist_noinst_SCRIPT = \
3414 src/locale/generate-kbd-model-map
3416 update-kbd-model-map: src/locale/generate-kbd-model-map
3417 $PYTHON $< > src/locale/kbd-model-map
3419 localectl_SOURCES = \
3420 src/locale/localectl.c
3422 localectl_CFLAGS = \
3427 libsystemd-shared.la \
3428 libsystemd-dbus.la \
3429 libsystemd-id128-internal.la
3434 dist_bashcompletion_DATA += \
3435 shell-completion/bash/localectl
3439 polkitpolicy_in_files += \
3440 src/locale/org.freedesktop.locale1.policy.in
3443 units/systemd-localed.service.in
3445 # ------------------------------------------------------------------------------
3447 systemd_timedated_SOURCES = \
3448 src/timedate/timedated.c
3450 systemd_timedated_CFLAGS = \
3454 systemd_timedated_LDADD = \
3455 libsystemd-label.la \
3456 libsystemd-shared.la \
3457 libsystemd-daemon.la \
3460 rootlibexec_PROGRAMS += \
3463 dist_dbussystemservice_DATA += \
3464 src/timedate/org.freedesktop.timedate1.service
3466 dist_dbuspolicy_DATA += \
3467 src/timedate/org.freedesktop.timedate1.conf
3469 nodist_systemunit_DATA += \
3470 units/systemd-timedated.service
3472 polkitpolicy_files += \
3473 src/timedate/org.freedesktop.timedate1.policy
3475 org.freedesktop.timedate1.xml: systemd-timedated
3476 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
3477 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3478 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3480 dbusinterface_DATA += \
3481 org.freedesktop.timedate1.xml
3484 $(prefix)/lib/systemd/ntp-units.d \
3485 $(sysconfdir)/systemd/ntp-units.d
3487 SYSTEM_UNIT_ALIASES += \
3488 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3490 timedatectl_SOURCES = \
3491 src/timedate/timedatectl.c
3493 timedatectl_CFLAGS = \
3497 timedatectl_LDADD = \
3498 libsystemd-shared.la \
3504 dist_bashcompletion_DATA += \
3505 shell-completion/bash/timedatectl
3508 polkitpolicy_in_files += \
3509 src/timedate/org.freedesktop.timedate1.policy.in
3512 units/systemd-timedated.service.in
3514 # ------------------------------------------------------------------------------
3516 libnss_myhostname_la_SOURCES = \
3517 src/nss-myhostname/nss-myhostname.c \
3518 src/nss-myhostname/ifconf.h \
3519 src/nss-myhostname/netlink.c
3521 libnss_myhostname_la_CFLAGS = \
3524 libnss_myhostname_la_LDFLAGS = \
3532 lib_LTLIBRARIES += \
3533 libnss_myhostname.la
3536 # ------------------------------------------------------------------------------
3538 systemd_machined_SOURCES = \
3539 src/machine/machined.c \
3540 src/machine/machined.h
3542 systemd_machined_CFLAGS = \
3543 $(libsystemd_machine_core_la_CFLAGS)
3545 systemd_machined_LDADD = \
3546 libsystemd-machine-core.la \
3547 $(libsystemd_machine_core_la_LIBADD)
3549 rootlibexec_PROGRAMS += \
3552 libsystemd_machine_core_la_SOURCES = \
3553 src/machine/machined-dbus.c \
3554 src/machine/machine.c \
3555 src/machine/machine.h \
3556 src/machine/machine-dbus.c
3558 libsystemd_machine_core_la_CFLAGS = \
3562 libsystemd_machine_core_la_LIBADD = \
3563 libsystemd-label.la \
3564 libsystemd-audit.la \
3565 libsystemd-shared.la \
3566 libsystemd-daemon.la \
3567 libsystemd-dbus.la \
3568 libsystemd-id128-internal.la \
3571 noinst_LTLIBRARIES += \
3572 libsystemd-machine-core.la
3574 machinectl_SOURCES = \
3575 src/machine/machinectl.c
3577 machinectl_CFLAGS = \
3581 machinectl_LDADD = \
3582 libsystemd-shared.la \
3583 libsystemd-dbus.la \
3586 rootbin_PROGRAMS += \
3589 test_machine_tables_SOURCES = \
3590 src/machine/test-machine-tables.c
3592 test_machine_tables_CFLAGS = \
3596 test_machine_tables_LDADD = \
3597 libsystemd-machine-core.la
3602 nodist_systemunit_DATA += \
3603 units/systemd-machined.service
3605 dist_systemunit_DATA += \
3608 dist_dbussystemservice_DATA += \
3609 src/machine/org.freedesktop.machine1.service
3611 dist_dbuspolicy_DATA += \
3612 src/machine/org.freedesktop.machine1.conf
3614 SYSTEM_UNIT_ALIASES += \
3615 systemd-machined.service dbus-org.freedesktop.machine1.service
3618 units/systemd-machined.service.in
3622 # ------------------------------------------------------------------------------
3624 systemd_logind_SOURCES = \
3625 src/login/logind.c \
3628 nodist_systemd_logind_SOURCES = \
3629 src/login/logind-gperf.c
3631 systemd_logind_CFLAGS = \
3632 $(libsystemd_logind_core_la_CFLAGS)
3634 systemd_logind_LDADD = \
3635 libsystemd-logind-core.la \
3636 $(libsystemd_logind_core_la_LIBADD)
3639 systemd_logind_SOURCES += \
3640 src/login/logind-acl.c
3642 systemd_logind_LDADD += \
3646 libsystemd_logind_core_la_SOURCES = \
3647 src/login/logind-dbus.c \
3648 src/login/logind-device.c \
3649 src/login/logind-device.h \
3650 src/login/logind-button.c \
3651 src/login/logind-button.h \
3652 src/login/logind-action.c \
3653 src/login/logind-action.h \
3654 src/login/logind-seat.c \
3655 src/login/logind-seat.h \
3656 src/login/logind-session.c \
3657 src/login/logind-session.h \
3658 src/login/logind-user.c \
3659 src/login/logind-user.h \
3660 src/login/logind-inhibit.c \
3661 src/login/logind-inhibit.h \
3662 src/login/logind-session-dbus.c \
3663 src/login/logind-seat-dbus.c \
3664 src/login/logind-user-dbus.c \
3665 src/login/logind-acl.h
3667 libsystemd_logind_core_la_CFLAGS = \
3671 libsystemd_logind_core_la_LIBADD = \
3672 libsystemd-label.la \
3673 libsystemd-audit.la \
3674 libsystemd-shared.la \
3675 libsystemd-daemon.la \
3676 libsystemd-dbus.la \
3677 libsystemd-id128-internal.la \
3680 noinst_LTLIBRARIES += \
3681 libsystemd-logind-core.la
3683 systemd_user_sessions_SOURCES = \
3684 src/login/user-sessions.c
3686 systemd_user_sessions_LDADD = \
3687 libsystemd-shared.la
3689 rootlibexec_PROGRAMS += \
3691 systemd-user-sessions
3693 loginctl_SOURCES = \
3694 src/login/loginctl.c \
3695 src/login/sysfs-show.c
3702 libsystemd-shared.la \
3703 libsystemd-dbus.la \
3706 rootbin_PROGRAMS += \
3709 dist_bashcompletion_DATA += \
3710 shell-completion/bash/loginctl
3712 systemd_inhibit_SOURCES = \
3715 systemd_inhibit_CFLAGS = \
3719 systemd_inhibit_LDADD = \
3720 libsystemd-shared.la \
3723 rootbin_PROGRAMS += \
3726 test_login_SOURCES = \
3727 src/login/test-login.c
3729 test_login_LDADD = \
3730 libsystemd-login-internal.la \
3731 libsystemd-shared.la
3733 test_inhibit_SOURCES = \
3734 src/login/test-inhibit.c
3736 test_inhibit_LDADD = \
3737 libsystemd-shared.la \
3740 test_inhibit_CFLAGS = \
3744 test_login_tables_SOURCES = \
3745 src/login/test-login-tables.c
3747 test_login_tables_CFLAGS = \
3751 test_login_tables_LDADD = \
3752 libsystemd-logind-core.la
3761 libsystemd_login_la_SOURCES = \
3762 src/login/sd-login.c
3764 libsystemd_login_la_CFLAGS = \
3768 libsystemd_login_la_LDFLAGS = \
3770 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3771 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3773 libsystemd_login_la_LIBADD = \
3774 libsystemd-shared.la \
3775 libsystemd-daemon-internal.la
3777 libsystemd_login_internal_la_SOURCES = \
3778 $(libsystemd_login_la_SOURCES)
3781 pam_systemd_la_SOURCES = \
3782 src/login/pam-module.c
3784 pam_systemd_la_CFLAGS = \
3790 pam_systemd_la_LDFLAGS = \
3796 -export-symbols-regex '^pam_sm_.*'
3798 pam_systemd_la_LIBADD = \
3799 libsystemd-audit.la \
3800 libsystemd-dbus.la \
3801 libsystemd-shared.la \
3802 libsystemd-daemon-internal.la \
3805 pamlib_LTLIBRARIES = \
3809 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3810 libsystemd-login-install-hook:
3811 libname=libsystemd-login.so && $(move-to-rootlibdir)
3813 libsystemd-login-uninstall-hook:
3814 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3816 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3817 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
3819 nodist_systemunit_DATA += \
3820 units/systemd-logind.service \
3821 units/systemd-user-sessions.service
3823 dist_systemunit_DATA += \
3826 dist_dbussystemservice_DATA += \
3827 src/login/org.freedesktop.login1.service
3829 dist_dbuspolicy_DATA += \
3830 src/login/org.freedesktop.login1.conf
3832 dist_pkgsysconf_DATA += \
3833 src/login/logind.conf
3835 pkginclude_HEADERS += \
3836 src/systemd/sd-login.h
3838 lib_LTLIBRARIES += \
3841 noinst_LTLIBRARIES += \
3842 libsystemd-login-internal.la
3844 pkgconfiglib_DATA += \
3845 src/login/libsystemd-login.pc
3847 polkitpolicy_files += \
3848 src/login/org.freedesktop.login1.policy
3853 MULTI_USER_TARGET_WANTS += \
3854 systemd-logind.service \
3855 systemd-user-sessions.service
3857 SYSTEM_UNIT_ALIASES += \
3858 systemd-logind.service dbus-org.freedesktop.login1.service
3860 systemd_multi_seat_x_SOURCES = \
3861 src/login/multi-seat-x.c
3863 systemd_multi_seat_x_LDADD = \
3864 libsystemd-label.la \
3865 libsystemd-shared.la
3867 rootlibexec_PROGRAMS += \
3868 systemd-multi-seat-x
3870 dist_udevrules_DATA += \
3871 src/login/70-uaccess.rules \
3872 src/login/70-power-switch.rules
3874 nodist_udevrules_DATA += \
3875 src/login/71-seat.rules \
3876 src/login/73-seat-late.rules
3879 src/login/logind-gperf.c \
3880 src/login/71-seat.rules \
3881 src/login/73-seat-late.rules
3884 polkitpolicy_in_files += \
3885 src/login/org.freedesktop.login1.policy.in
3888 src/login/logind-gperf.gperf \
3889 src/login/libsystemd-login.pc.in \
3890 src/login/libsystemd-login.sym \
3891 src/login/71-seat.rules.in \
3892 src/login/73-seat-late.rules.in \
3893 units/systemd-logind.service.in \
3894 units/systemd-user-sessions.service.in
3896 # ------------------------------------------------------------------------------
3897 if HAVE_PYTHON_DEVEL
3898 pkgpyexec_LTLIBRARIES = \
3905 _journal_la_SOURCES = \
3906 src/python-systemd/_journal.c
3908 _journal_la_CFLAGS = \
3910 -fvisibility=default \
3913 _journal_la_LDFLAGS = \
3919 _journal_la_LIBADD = \
3921 libsystemd-journal.la
3923 id128_la_SOURCES = \
3924 src/python-systemd/id128.c \
3925 src/python-systemd/id128-constants.h \
3926 src/python-systemd/pyutil.c \
3927 src/python-systemd/pyutil.h
3931 -fvisibility=default \
3933 -I$(top_builddir)/src/python-systemd
3935 id128_la_LDFLAGS = \
3945 _daemon_la_SOURCES = \
3946 src/python-systemd/_daemon.c \
3947 src/python-systemd/pyutil.c \
3948 src/python-systemd/pyutil.h
3950 _daemon_la_CFLAGS = \
3952 -fvisibility=default \
3954 -I$(top_builddir)/src/python-systemd
3956 _daemon_la_LDFLAGS = \
3962 _daemon_la_LIBADD = \
3964 libsystemd-daemon.la
3966 _reader_la_SOURCES = \
3967 src/python-systemd/_reader.c \
3968 src/python-systemd/pyutil.c \
3969 src/python-systemd/pyutil.h
3971 _reader_la_CFLAGS = \
3973 -fvisibility=default \
3976 _reader_la_LDFLAGS = \
3982 _reader_la_LIBADD = \
3984 libsystemd-journal.la \
3985 libsystemd-id128.la \
3986 libsystemd-shared.la \
3987 libsystemd-daemon-internal.la
3989 login_la_SOURCES = \
3990 src/python-systemd/login.c \
3991 src/python-systemd/pyutil.c \
3992 src/python-systemd/pyutil.h
3996 -fvisibility=default \
3999 login_la_LDFLAGS = \
4007 libsystemd-journal.la \
4008 libsystemd-login.la \
4009 libsystemd-shared.la \
4010 libsystemd-daemon-internal.la
4012 dist_pkgpyexec_PYTHON = \
4013 src/python-systemd/journal.py \
4014 src/python-systemd/daemon.py \
4015 src/python-systemd/__init__.py
4017 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4018 $(AM_V_at)$(MKDIR_P) $(dir $@)
4019 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4022 src/python-systemd/id128-constants.h
4024 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4026 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4027 $(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/
4028 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4031 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4032 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4035 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4036 $(MAKE) DESTDIR="$$dir" install && \
4037 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4042 CLEAN_LOCAL_HOOKS += clean-sphinx
4045 -rm -rf docs/html/python-systemd/
4047 # ------------------------------------------------------------------------------
4049 '|rootlibexecdir=$(rootlibexecdir)|' \
4050 '|rootbindir=$(rootbindir)|' \
4051 '|bindir=$(bindir)|' \
4052 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4053 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4054 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4055 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4056 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4057 '|pkgdatadir=$(pkgdatadir)|' \
4058 '|systemunitdir=$(systemunitdir)|' \
4059 '|userunitdir=$(userunitdir)|' \
4060 '|systempresetdir=$(systempresetdir)|' \
4061 '|userpresetdir=$(userpresetdir)|' \
4062 '|udevhwdbdir=$(udevhwdbdir)|' \
4063 '|udevrulesdir=$(udevrulesdir)|' \
4064 '|catalogdir=$(catalogdir)|' \
4065 '|tmpfilesdir=$(tmpfilesdir)|' \
4066 '|sysctldir=$(sysctldir)|' \
4067 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4068 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4069 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4070 '|RANDOM_SEED=$(localstatedir)/lib/random-seed|' \
4071 '|prefix=$(prefix)|' \
4072 '|exec_prefix=$(exec_prefix)|' \
4073 '|libdir=$(libdir)|' \
4074 '|includedir=$(includedir)|' \
4075 '|VERSION=$(VERSION)|' \
4076 '|rootprefix=$(rootprefix)|' \
4077 '|udevlibexecdir=$(udevlibexecdir)|' \
4078 '|SUSHELL=$(SUSHELL)|' \
4079 '|DEBUGTTY=$(DEBUGTTY)|' \
4082 '|MKDIR_P=$(MKDIR_P)|' \
4083 '|QUOTAON=$(QUOTAON)|' \
4084 '|QUOTACHECK=$(QUOTACHECK)|' \
4085 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4086 '|VARLOGDIR=$(varlogdir)|' \
4087 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4088 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4089 '|PYTHON=$(PYTHON)|' \
4090 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4093 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4094 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4097 units/%: units/%.in Makefile
4100 man/%: man/%.in Makefile
4103 sysctl.d/%: sysctl.d/%.in Makefile
4106 %.pc: %.pc.in Makefile
4109 src/core/macros.%: src/core/macros.%.in Makefile
4112 src/%.policy.in: src/%.policy.in.in Makefile
4115 %.rules: %.rules.in Makefile
4118 %.sh: %.sh.in Makefile
4120 $(AM_V_GEN)chmod +x $@
4122 src/%.c: src/%.gperf
4123 $(AM_V_at)$(MKDIR_P) $(dir $@)
4124 $(AM_V_GPERF)$(GPERF) < $< > $@
4127 $(AM_V_at)$(MKDIR_P) $(dir $@)
4128 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4130 units/%: units/%.m4 Makefile
4131 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4132 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4134 units/user/%: units/%.m4 Makefile
4135 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4136 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4139 nodist_polkitpolicy_DATA = \
4140 $(polkitpolicy_files) \
4141 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4145 $(polkitpolicy_in_files) \
4146 $(polkitpolicy_in_in_files)
4149 $(nodist_systemunit_DATA) \
4150 $(nodist_userunit_DATA) \
4151 $(pkgconfigdata_DATA) \
4152 $(pkgconfiglib_DATA) \
4153 $(nodist_polkitpolicy_DATA)
4155 # ------------------------------------------------------------------------------
4157 man/custom-entities.ent: Makefile
4158 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4159 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4160 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4164 man/custom-entities.ent
4168 --stringparam man.output.quietly 1 \
4169 --stringparam funcsynopsis.style ansi \
4170 --stringparam man.authors.section.enabled 0 \
4171 --stringparam man.copyright.section.enabled 0 \
4172 --stringparam systemd.version $(VERSION) \
4173 --path '$(builddir)/man:$(srcdir)/man'
4175 XSLTPROC_PROCESS_MAN = \
4176 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4178 XSLTPROC_PROCESS_HTML = \
4179 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4181 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4182 $(XSLTPROC_PROCESS_MAN)
4184 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4185 $(XSLTPROC_PROCESS_MAN)
4187 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4188 $(XSLTPROC_PROCESS_MAN)
4190 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4191 $(XSLTPROC_PROCESS_MAN)
4193 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4194 $(XSLTPROC_PROCESS_MAN)
4196 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4197 $(XSLTPROC_PROCESS_HTML)
4200 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4206 man/custom-html.xsl \
4209 # ------------------------------------------------------------------------------
4210 DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
4213 $(dbusinterface_DATA)
4217 docs/sysvinit/README
4222 docs/sysvinit/README: docs/sysvinit/README.in
4225 docs/var-log/README: docs/var-log/README.in
4229 docs/sysvinit/README \
4234 docs/sysvinit/README.in \
4235 docs/var-log/README.in
4238 shell-completion/systemd-zsh-completion.zsh
4240 SOCKETS_TARGET_WANTS += \
4241 systemd-initctl.socket \
4242 systemd-shutdownd.socket
4245 RUNLEVEL1_TARGET_WANTS += \
4246 systemd-update-utmp-runlevel.service
4247 RUNLEVEL2_TARGET_WANTS += \
4248 systemd-update-utmp-runlevel.service
4249 RUNLEVEL3_TARGET_WANTS += \
4250 systemd-update-utmp-runlevel.service
4251 RUNLEVEL4_TARGET_WANTS += \
4252 systemd-update-utmp-runlevel.service
4253 RUNLEVEL5_TARGET_WANTS += \
4254 systemd-update-utmp-runlevel.service
4256 SYSINIT_TARGET_WANTS += \
4257 systemd-update-utmp.service
4258 LOCAL_FS_TARGET_WANTS += \
4259 systemd-remount-fs.service \
4260 systemd-fsck-root.service \
4262 MULTI_USER_TARGET_WANTS += \
4264 systemd-ask-password-wall.path
4265 SYSINIT_TARGET_WANTS += \
4266 dev-hugepages.mount \
4268 sys-kernel-config.mount \
4269 sys-kernel-debug.mount \
4270 sys-fs-fuse-connections.mount \
4271 systemd-sysctl.service \
4272 systemd-ask-password-console.path
4275 SYSTEM_UNIT_ALIASES += \
4276 poweroff.target runlevel0.target \
4277 rescue.target runlevel1.target \
4278 multi-user.target runlevel2.target \
4279 multi-user.target runlevel3.target \
4280 multi-user.target runlevel4.target \
4281 graphical.target runlevel5.target \
4282 reboot.target runlevel6.target
4285 SYSTEM_UNIT_ALIASES += \
4286 graphical.target default.target \
4287 reboot.target ctrl-alt-del.target \
4288 getty@.service autovt@.service
4290 USER_UNIT_ALIASES += \
4291 $(systemunitdir)/shutdown.target shutdown.target \
4292 $(systemunitdir)/sockets.target sockets.target \
4293 $(systemunitdir)/timers.target timers.target \
4294 $(systemunitdir)/paths.target paths.target \
4295 $(systemunitdir)/bluetooth.target bluetooth.target \
4296 $(systemunitdir)/printer.target printer.target \
4297 $(systemunitdir)/sound.target sound.target \
4298 $(systemunitdir)/smartcard.target smartcard.target
4300 GENERAL_ALIASES += \
4301 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4302 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4303 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4304 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4308 $(systemunitdir)/runlevel1.target.wants \
4309 $(systemunitdir)/runlevel2.target.wants \
4310 $(systemunitdir)/runlevel3.target.wants \
4311 $(systemunitdir)/runlevel4.target.wants \
4312 $(systemunitdir)/runlevel5.target.wants
4316 $(prefix)/lib/modules-load.d \
4317 $(sysconfdir)/modules-load.d \
4318 $(prefix)/lib/sysctl.d \
4319 $(sysconfdir)/sysctl.d \
4320 $(prefix)/lib/kernel/install.d \
4321 $(sysconfdir)/kernel/install.d \
4322 $(systemshutdowndir) \
4324 $(systemgeneratordir) \
4325 $(usergeneratordir) \
4328 $(pkgsysconfdir)/system \
4329 $(pkgsysconfdir)/system/multi-user.target.wants \
4330 $(pkgsysconfdir)/system/getty.target.wants \
4331 $(pkgsysconfdir)/user \
4332 $(dbussessionservicedir) \
4333 $(sysconfdir)/xdg/systemd
4335 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4337 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4339 install-data-hook: $(INSTALL_DATA_HOOKS)
4341 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4343 clean-local: $(CLEAN_LOCAL_HOOKS)
4344 rm -rf $(abs_srcdir)/install-tree
4345 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4346 $(abs_srcdir)/hwdb/iab.txt
4348 DISTCHECK_CONFIGURE_FLAGS = \
4349 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4350 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4351 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4352 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
4353 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4354 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4355 --with-rootprefix=$$dc_install_base \
4359 DISTCHECK_CONFIGURE_FLAGS += \
4360 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4361 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4363 DISTCHECK_CONFIGURE_FLAGS += \
4364 --with-sysvinit-path= \
4365 --with-sysvrcnd-path=
4369 DISTCHECK_CONFIGURE_FLAGS += \
4374 ( cd $(top_srcdir)/hwdb && \
4375 wget -N http://www.linux-usb.org/usb.ids \
4376 http://pci-ids.ucw.cz/v2.2/pci.ids \
4377 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4378 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4382 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4383 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4385 upload: all distcheck
4386 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4387 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4388 scp man/*.html tango:public/systemd-man/
4390 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4391 doc-sync: all destdir-sphinx
4392 gtkdoc-rebase --html-dir=docs/libudev/html --online
4393 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4394 gtkdoc-rebase --html-dir=docs/gudev/html --online
4395 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4396 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4397 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4400 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4403 rm -rf $(abs_srcdir)/install-tree
4404 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4405 tree $(abs_srcdir)/install-tree