1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
9 # systemd is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU Lesser General Public License as published by
11 # the Free Software Foundation; either version 2.1 of the License, or
12 # (at your option) any later version.
14 # systemd is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Lesser General Public License for more details.
19 # You should have received a copy of the GNU Lesser General Public License
20 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
22 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
23 AM_MAKEFLAGS = --no-print-directory
24 AUTOMAKE_OPTIONS = color-tests parallel-tests
28 # remove targets if the command fails
31 # keep intermediate files
34 # Keep the test-suite.log
35 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
45 LIBSYSTEMD_LOGIN_CURRENT=8
46 LIBSYSTEMD_LOGIN_REVISION=1
47 LIBSYSTEMD_LOGIN_AGE=8
49 LIBSYSTEMD_DAEMON_CURRENT=0
50 LIBSYSTEMD_DAEMON_REVISION=10
51 LIBSYSTEMD_DAEMON_AGE=0
53 LIBSYSTEMD_ID128_CURRENT=0
54 LIBSYSTEMD_ID128_REVISION=24
55 LIBSYSTEMD_ID128_AGE=0
57 LIBSYSTEMD_JOURNAL_CURRENT=11
58 LIBSYSTEMD_JOURNAL_REVISION=1
59 LIBSYSTEMD_JOURNAL_AGE=11
61 # Dirs of external packages
62 dbuspolicydir=@dbuspolicydir@
63 dbussessionservicedir=@dbussessionservicedir@
64 dbussystemservicedir=@dbussystemservicedir@
65 dbusinterfacedir=@dbusinterfacedir@
67 pkgconfigdatadir=$(datadir)/pkgconfig
68 pkgconfiglibdir=$(libdir)/pkgconfig
69 polkitpolicydir=$(datadir)/polkit-1/actions
70 bashcompletiondir=@bashcompletiondir@
71 zshcompletiondir=@zshcompletiondir@
72 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
73 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
74 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
75 varlogdir=$(localstatedir)/log
76 systemdstatedir=$(localstatedir)/lib/systemd
77 catalogstatedir=$(systemdstatedir)/catalog
79 # Our own, non-special dirs
80 pkgsysconfdir=$(sysconfdir)/systemd
81 userunitdir=$(prefix)/lib/systemd/user
82 userpresetdir=$(prefix)/lib/systemd/user-preset
83 tmpfilesdir=$(prefix)/lib/tmpfiles.d
84 sysctldir=$(prefix)/lib/sysctl.d
85 usergeneratordir=$(prefix)/lib/systemd/user-generators
86 pkgincludedir=$(includedir)/systemd
87 systemgeneratordir=$(rootlibexecdir)/system-generators
88 systemshutdowndir=$(rootlibexecdir)/system-shutdown
89 systemsleepdir=$(rootlibexecdir)/system-sleep
90 systemunitdir=$(rootprefix)/lib/systemd/system
91 systempresetdir=$(rootprefix)/lib/systemd/system-preset
92 udevlibexecdir=$(rootprefix)/lib/udev
93 udevhomedir=$(udevlibexecdir)
94 udevrulesdir=$(udevlibexecdir)/rules.d
95 udevhwdbdir=$(udevlibexecdir)/hwdb.d
96 catalogdir=$(prefix)/lib/systemd/catalog
97 kernelinstalldir = $(prefix)/lib/kernel/install.d
99 # And these are the special ones for /
100 rootprefix=@rootprefix@
101 rootbindir=$(rootprefix)/bin
102 rootlibexecdir=$(rootprefix)/lib/systemd
104 CLEANFILES = $(BUILT_SOURCES)
109 UNINSTALL_EXEC_HOOKS =
111 UNINSTALL_DATA_HOOKS =
112 DISTCLEAN_LOCAL_HOOKS =
120 polkitpolicy_in_in_files =
121 polkitpolicy_in_files =
123 dist_udevrules_DATA =
124 nodist_udevrules_DATA =
125 dist_pkgsysconf_DATA =
127 dist_dbuspolicy_DATA =
129 dist_dbussystemservice_DATA =
135 noinst_PROGRAMS = $(manual_tests) $(tests)
141 udevlibexec_PROGRAMS =
144 -include $(top_builddir)/config.h \
145 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
146 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
147 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
148 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
149 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
150 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
151 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
152 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
153 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
154 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
155 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
156 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
157 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
158 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
159 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
160 -DROOTPREFIX=\"$(rootprefix)\" \
161 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
162 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
163 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
164 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
165 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
166 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
167 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
168 -DX_SERVER=\"$(bindir)/X\" \
169 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
170 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
171 -DQUOTACHECK=\"$(QUOTACHECK)\" \
172 -DKEXEC=\"$(KEXEC)\" \
173 -I $(top_srcdir)/src \
174 -I $(top_srcdir)/src/shared \
175 -I $(top_srcdir)/src/login \
176 -I $(top_srcdir)/src/journal \
177 -I $(top_srcdir)/src/systemd \
178 -I $(top_builddir)/src/core \
179 -I $(top_srcdir)/src/core \
180 -I $(top_srcdir)/src/libudev \
181 -I $(top_srcdir)/src/udev \
182 -I $(top_builddir)/src/udev \
183 -I $(top_srcdir)/src/libsystemd-bus \
186 AM_CFLAGS = $(OUR_CFLAGS)
187 AM_LDFLAGS = $(OUR_LDFLAGS)
189 # ------------------------------------------------------------------------------
190 define move-to-rootlibdir
191 if test "$(libdir)" != "$(rootlibdir)"; then \
192 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
193 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
194 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
195 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
196 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
202 RUNLEVEL1_TARGET_WANTS =
203 RUNLEVEL2_TARGET_WANTS =
204 RUNLEVEL3_TARGET_WANTS =
205 RUNLEVEL4_TARGET_WANTS =
206 RUNLEVEL5_TARGET_WANTS =
207 SHUTDOWN_TARGET_WANTS =
208 LOCAL_FS_TARGET_WANTS =
209 MULTI_USER_TARGET_WANTS =
210 SYSINIT_TARGET_WANTS =
211 SOCKETS_TARGET_WANTS =
212 TIMERS_TARGET_WANTS =
214 SYSTEM_UNIT_ALIASES =
219 install-target-wants-hook:
220 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
221 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
222 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
223 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
224 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
225 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
226 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
227 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
228 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
229 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
230 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
231 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
234 [ -z "$$what" ] || ( \
235 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
236 $(MKDIR_P) -m 0755 $$dir && \
239 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
242 install-directories-hook:
243 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
245 install-aliases-hook:
246 set -- $(SYSTEM_UNIT_ALIASES) && \
247 dir=$(systemunitdir) && $(install-aliases)
248 set -- $(USER_UNIT_ALIASES) && \
249 dir=$(userunitdir) && $(install-aliases)
250 set -- $(GENERAL_ALIASES) && \
251 dir= && $(install-aliases)
253 define install-aliases
254 while [ -n "$$1" ]; do \
255 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
256 rm -f $(DESTDIR)$$dir/$$2 && \
257 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
258 shift 2 || exit $$?; \
262 INSTALL_EXEC_HOOKS += \
263 install-target-wants-hook \
264 install-directories-hook \
267 # ------------------------------------------------------------------------------
268 AM_V_M4 = $(AM_V_M4_$(V))
269 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
270 AM_V_M4_0 = @echo " M4 " $@;
272 AM_V_XSLT = $(AM_V_XSLT_$(V))
273 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
274 AM_V_XSLT_0 = @echo " XSLT " $@;
276 AM_V_GPERF = $(AM_V_GPERF_$(V))
277 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
278 AM_V_GPERF_0 = @echo " GPERF " $@;
280 AM_V_LN = $(AM_V_LN_$(V))
281 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
282 AM_V_LN_0 = @echo " LN " $@;
284 # ------------------------------------------------------------------------------
288 systemd-ask-password \
289 systemd-tty-ask-password-agent \
290 systemd-machine-id-setup
295 systemd-stdio-bridge \
297 systemd-detect-virt \
303 src/kernel-install/kernel-install
305 dist_kernelinstall_SCRIPTS = \
306 src/kernel-install/50-depmod.install \
307 src/kernel-install/90-loaderentry.install
309 rootlibexec_PROGRAMS = \
311 systemd-cgroups-agent \
313 systemd-update-utmp \
317 systemd-reply-password \
323 systemgenerator_PROGRAMS = \
324 systemd-getty-generator \
325 systemd-fstab-generator \
326 systemd-system-update-generator
328 systemd_analyze_SOURCES = \
329 src/analyze/systemd-analyze.c
331 systemd_analyze_CFLAGS = \
335 systemd_analyze_LDADD = \
336 libsystemd-shared.la \
339 dist_bashcompletion_DATA = \
340 shell-completion/bash/journalctl \
341 shell-completion/bash/systemctl \
342 shell-completion/bash/systemd-analyze \
343 shell-completion/bash/udevadm \
344 shell-completion/bash/kernel-install
346 dist_zshcompletion_DATA = \
347 shell-completion/zsh/_systemctl \
348 shell-completion/zsh/_journalctl \
349 shell-completion/zsh/_udevadm \
350 shell-completion/zsh/_systemd-nspawn \
351 shell-completion/zsh/_systemd-analyze \
352 shell-completion/zsh/_systemd
355 sysctl.d/50-default.conf
357 dist_systemunit_DATA = \
358 units/graphical.target \
359 units/multi-user.target \
360 units/emergency.service \
361 units/emergency.target \
362 units/sysinit.target \
367 units/local-fs.target \
368 units/local-fs-pre.target \
369 units/initrd.target \
370 units/initrd-fs.target \
371 units/initrd-root-fs.target \
372 units/remote-fs.target \
373 units/remote-fs-pre.target \
374 units/network.target \
375 units/network-online.target \
376 units/nss-lookup.target \
377 units/nss-user-lookup.target \
378 units/hibernate.target \
379 units/hybrid-sleep.target \
380 units/poweroff.target \
381 units/reboot.target \
382 units/rescue.target \
383 units/rpcbind.target \
384 units/time-sync.target \
385 units/shutdown.target \
387 units/umount.target \
388 units/sigpwr.target \
390 units/sockets.target \
391 units/timers.target \
393 units/suspend.target \
395 units/slices.target \
398 units/systemd-initctl.socket \
399 units/systemd-shutdownd.socket \
400 units/syslog.socket \
401 units/dev-hugepages.mount \
402 units/dev-mqueue.mount \
403 units/sys-kernel-config.mount \
404 units/sys-kernel-debug.mount \
405 units/sys-fs-fuse-connections.mount \
407 units/printer.target \
409 units/bluetooth.target \
410 units/smartcard.target \
411 units/systemd-ask-password-wall.path \
412 units/systemd-ask-password-console.path \
413 units/systemd-udevd-control.socket \
414 units/systemd-udevd-kernel.socket \
415 units/system-update.target \
416 units/initrd-switch-root.target
418 nodist_systemunit_DATA = \
419 units/getty@.service \
420 units/serial-getty@.service \
421 units/console-shell.service \
422 units/console-getty.service \
423 units/systemd-initctl.service \
424 units/systemd-shutdownd.service \
425 units/systemd-remount-fs.service \
426 units/systemd-update-utmp.service \
427 units/systemd-update-utmp-runlevel.service \
428 units/systemd-ask-password-wall.service \
429 units/systemd-ask-password-console.service \
430 units/systemd-sysctl.service \
431 units/emergency.service \
432 units/rescue.service \
433 units/user@.service \
434 units/systemd-hibernate.service \
435 units/systemd-hybrid-sleep.service \
436 units/systemd-suspend.service \
437 units/systemd-halt.service \
438 units/systemd-poweroff.service \
439 units/systemd-reboot.service \
440 units/systemd-kexec.service \
441 units/systemd-fsck@.service \
442 units/systemd-fsck-root.service \
443 units/systemd-udevd.service \
444 units/systemd-udev-trigger.service \
445 units/systemd-udev-settle.service \
446 units/debug-shell.service \
447 units/initrd-parse-etc.service \
448 units/initrd-cleanup.service \
449 units/initrd-udevadm-cleanup-db.service \
450 units/initrd-switch-root.service \
451 units/systemd-nspawn@.service
453 dist_userunit_DATA = \
454 units/user/default.target \
455 units/user/exit.target
457 nodist_userunit_DATA = \
458 units/user/systemd-exit.service
461 units/getty@.service.m4 \
462 units/serial-getty@.service.m4 \
463 units/console-shell.service.m4.in \
464 units/console-getty.service.m4.in \
465 units/rescue.service.m4.in \
466 units/systemd-initctl.service.in \
467 units/systemd-shutdownd.service.in \
468 units/systemd-remount-fs.service.in \
469 units/systemd-update-utmp.service.in \
470 units/systemd-update-utmp-runlevel.service.in \
471 units/systemd-ask-password-wall.service.in \
472 units/systemd-ask-password-console.service.in \
473 units/systemd-sysctl.service.in \
474 units/emergency.service.in \
475 units/systemd-halt.service.in \
476 units/systemd-poweroff.service.in \
477 units/systemd-reboot.service.in \
478 units/systemd-kexec.service.in \
479 units/user/systemd-exit.service.in \
480 units/systemd-fsck@.service.in \
481 units/systemd-fsck-root.service.in \
482 units/user@.service.in \
483 units/systemd-udevd.service \
484 units/systemd-udev-trigger.service \
485 units/systemd-udev-settle.service \
486 units/debug-shell.service.in \
487 units/systemd-hibernate.service.in \
488 units/systemd-hybrid-sleep.service.in \
489 units/systemd-suspend.service.in \
490 units/quotaon.service.in \
491 units/initrd-parse-etc.service.in \
492 units/initrd-cleanup.service.in \
493 units/initrd-udevadm-cleanup-db.service.in \
494 units/initrd-switch-root.service.in \
495 units/systemd-nspawn@.service.in \
499 units/console-shell.service.m4 \
500 units/console-getty.service.m4 \
501 units/rescue.service.m4
504 nodist_systemunit_DATA += \
505 units/rc-local.service \
506 units/halt-local.service
508 systemgenerator_PROGRAMS += \
509 systemd-rc-local-generator
513 units/rc-local.service.in \
514 units/halt-local.service.in
516 # automake is broken and can't handle files with a dash in front
517 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
519 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
521 units-uninstall-hook:
522 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
524 INSTALL_DATA_HOOKS += units-install-hook
525 UNINSTALL_DATA_HOOKS += units-uninstall-hook
535 @INTLTOOL_POLICY_RULE@
537 # ------------------------------------------------------------------------------
542 include Makefile-man.am
545 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
548 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
550 ${XML_FILES:.xml=.html}
552 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
569 $(AM_V_at)$(MKDIR_P) $(dir $@)
570 $(AM_V_LN)$(LN_S) -f ../../man $@
579 man/index.html: man/systemd.index.html
580 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
588 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
589 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
590 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
592 update-man-list: make-man-rules.py $(XML_GLOB)
593 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
594 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
595 @echo "Makefile-man.am has been regenerated"
597 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
598 $(AM_V_at)$(MKDIR_P) $(dir $@)
599 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
601 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
602 $(AM_V_at)$(MKDIR_P) $(dir $@)
603 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
606 man/systemd.index.xml \
608 man/systemd.directives.xml
611 man/systemd.index.xml \
612 man/systemd.directives.xml
624 make-directive-index.py \
627 # ------------------------------------------------------------------------------
628 noinst_LTLIBRARIES += \
631 libsystemd_shared_la_SOURCES = \
632 src/shared/linux/auto_dev-ioctl.h \
633 src/shared/linux/fanotify.h \
634 src/shared/linux/seccomp.h \
635 src/shared/linux/seccomp-bpf.h \
636 src/shared/missing.h \
640 src/shared/sparse-endian.h \
645 src/shared/efivars.c \
646 src/shared/efivars.h \
647 src/shared/path-util.c \
648 src/shared/path-util.h \
649 src/shared/time-util.c \
650 src/shared/time-util.h \
651 src/shared/hashmap.c \
652 src/shared/hashmap.h \
659 src/shared/sleep-config.c \
660 src/shared/sleep-config.h \
663 src/shared/env-util.c \
664 src/shared/env-util.h \
665 src/shared/strbuf.c \
666 src/shared/strbuf.h \
667 src/shared/strxcpyx.c \
668 src/shared/strxcpyx.h \
669 src/shared/conf-parser.c \
670 src/shared/conf-parser.h \
673 src/shared/ratelimit.h \
674 src/shared/ratelimit.c \
675 src/shared/exit-status.c \
676 src/shared/exit-status.h \
681 src/shared/ioprio.h \
682 src/shared/socket-util.c \
683 src/shared/socket-util.h \
684 src/shared/conf-files.c \
685 src/shared/conf-files.h \
686 src/shared/cgroup-util.c \
687 src/shared/cgroup-util.h \
688 src/shared/cgroup-show.c \
689 src/shared/cgroup-show.h \
690 src/shared/unit-name.c \
691 src/shared/unit-name.h \
692 src/shared/utmp-wtmp.c \
693 src/shared/utmp-wtmp.h \
694 src/shared/watchdog.c \
695 src/shared/watchdog.h \
696 src/shared/spawn-ask-password-agent.c \
697 src/shared/spawn-ask-password-agent.h \
698 src/shared/replace-var.c \
699 src/shared/replace-var.h \
700 src/shared/spawn-polkit-agent.c \
701 src/shared/spawn-polkit-agent.h \
702 src/shared/hwclock.c \
703 src/shared/hwclock.h \
704 src/shared/time-dst.c \
705 src/shared/time-dst.h \
706 src/shared/calendarspec.c \
707 src/shared/calendarspec.h \
708 src/shared/fileio.c \
709 src/shared/fileio.h \
710 src/shared/output-mode.h \
711 src/shared/MurmurHash3.c \
712 src/shared/MurmurHash3.h \
715 #-------------------------------------------------------------------------------
716 noinst_LTLIBRARIES += \
719 libsystemd_dbus_la_SOURCES = \
720 src/shared/dbus-common.c \
721 src/shared/dbus-common.h \
722 src/shared/dbus-loop.c \
723 src/shared/dbus-loop.h \
724 src/shared/polkit.c \
727 libsystemd_dbus_la_CFLAGS = \
731 libsystemd_dbus_la_LIBADD = \
734 # ------------------------------------------------------------------------------
735 noinst_LTLIBRARIES += \
738 libsystemd_units_la_SOURCES = \
739 src/shared/install.c \
740 src/shared/install.h \
741 src/shared/install-printf.c \
742 src/shared/install-printf.h \
743 src/shared/path-lookup.c \
744 src/shared/path-lookup.h \
745 src/shared/specifier.c \
746 src/shared/specifier.h
748 libsystemd_units_la_CFLAGS = \
752 # ------------------------------------------------------------------------------
753 noinst_LTLIBRARIES += \
756 libsystemd_label_la_SOURCES = \
757 src/shared/cgroup-label.c \
758 src/shared/socket-label.c \
761 src/shared/selinux-util.c \
762 src/shared/selinux-util.h \
764 src/shared/mkdir-label.c \
766 src/shared/ask-password-api.c \
767 src/shared/ask-password-api.h \
768 src/shared/fileio-label.c \
769 src/shared/fileio-label.h \
770 src/shared/dev-setup.c \
771 src/shared/dev-setup.h
773 libsystemd_label_la_CFLAGS = \
777 libsystemd_label_la_LIBADD = \
780 # ------------------------------------------------------------------------------
781 noinst_LTLIBRARIES += \
784 libsystemd_logs_la_SOURCES = \
785 src/shared/logs-show.c \
786 src/shared/logs-show.h
788 libsystemd_logs_la_CFLAGS = \
791 libsystemd_logs_la_LIBADD = \
792 libsystemd-journal-internal.la \
793 libsystemd-id128-internal.la \
796 # ------------------------------------------------------------------------------
797 noinst_LTLIBRARIES += \
798 libsystemd-capability.la
800 libsystemd_capability_la_SOURCES = \
801 src/shared/capability.c \
802 src/shared/capability.h
804 libsystemd_capability_la_CFLAGS = \
808 libsystemd_capability_la_LIBADD = \
811 # ------------------------------------------------------------------------------
812 noinst_LTLIBRARIES += \
815 libsystemd_audit_la_SOURCES = \
819 libsystemd_audit_la_LIBADD = \
820 libsystemd-capability.la
822 # ------------------------------------------------------------------------------
824 noinst_LTLIBRARIES += \
827 libsystemd_acl_la_SOURCES = \
828 src/shared/acl-util.c \
829 src/shared/acl-util.h
831 libsystemd_acl_la_CFLAGS = \
835 libsystemd_acl_la_LIBADD = \
840 # ------------------------------------------------------------------------------
841 noinst_LTLIBRARIES += \
844 libsystemd_core_la_SOURCES = \
847 src/core/unit-printf.c \
848 src/core/unit-printf.h \
853 src/core/transaction.c \
854 src/core/transaction.h \
855 src/core/load-fragment.c \
856 src/core/load-fragment.h \
859 src/core/automount.c \
860 src/core/automount.h \
869 src/core/snapshot.c \
870 src/core/snapshot.h \
881 src/core/load-dropin.c \
882 src/core/load-dropin.h \
889 src/core/dbus-manager.c \
890 src/core/dbus-manager.h \
891 src/core/dbus-unit.c \
892 src/core/dbus-unit.h \
893 src/core/dbus-job.c \
894 src/core/dbus-job.h \
895 src/core/dbus-service.c \
896 src/core/dbus-service.h \
897 src/core/dbus-socket.c \
898 src/core/dbus-socket.h \
899 src/core/dbus-timer.c \
900 src/core/dbus-timer.h \
901 src/core/dbus-target.c \
902 src/core/dbus-target.h \
903 src/core/dbus-mount.c \
904 src/core/dbus-mount.h \
905 src/core/dbus-automount.c \
906 src/core/dbus-automount.h \
907 src/core/dbus-swap.c \
908 src/core/dbus-swap.h \
909 src/core/dbus-snapshot.c \
910 src/core/dbus-snapshot.h \
911 src/core/dbus-device.c \
912 src/core/dbus-device.h \
913 src/core/dbus-path.c \
914 src/core/dbus-path.h \
915 src/core/dbus-slice.c \
916 src/core/dbus-slice.h \
917 src/core/dbus-scope.c \
918 src/core/dbus-scope.h \
919 src/core/dbus-execute.c \
920 src/core/dbus-execute.h \
921 src/core/dbus-kill.c \
922 src/core/dbus-kill.h \
923 src/core/dbus-cgroup.c \
924 src/core/dbus-cgroup.h \
927 src/core/selinux-access.c \
928 src/core/selinux-access.h \
929 src/core/selinux-setup.c \
930 src/core/selinux-setup.h \
931 src/core/smack-setup.c \
932 src/core/smack-setup.h \
933 src/core/ima-setup.c \
934 src/core/ima-setup.h \
935 src/core/locale-setup.h \
936 src/core/locale-setup.c \
937 src/core/hostname-setup.c \
938 src/core/hostname-setup.h \
939 src/core/machine-id-setup.c \
940 src/core/machine-id-setup.h \
941 src/core/mount-setup.c \
942 src/core/mount-setup.h \
943 src/core/loopback-setup.h \
944 src/core/loopback-setup.c \
945 src/core/condition.c \
946 src/core/condition.h \
947 src/core/namespace.c \
948 src/core/namespace.h \
951 src/core/securebits.h \
954 src/core/bus-errors.h \
956 src/core/sysfs-show.h \
957 src/core/switch-root.h \
958 src/core/switch-root.c \
961 src/core/syscall-list.c \
962 src/core/syscall-list.h \
963 src/core/audit-fd.c \
964 src/core/audit-fd.h \
969 libsystemd_core_la_SOURCES += \
970 src/core/kmod-setup.c \
971 src/core/kmod-setup.h
974 nodist_libsystemd_core_la_SOURCES = \
975 src/core/load-fragment-gperf.c \
976 src/core/load-fragment-gperf-nulstr.c \
977 src/core/syscall-from-name.h \
978 src/core/syscall-to-name.h
980 libsystemd_core_la_CFLAGS = \
989 libsystemd_core_la_LIBADD = \
990 libsystemd-capability.la \
991 libsystemd-units.la \
992 libsystemd-label.la \
993 libsystemd-shared.la \
995 libsystemd-audit.la \
996 libsystemd-id128-internal.la \
997 libsystemd-daemon.la \
1005 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1006 $(AM_V_at)$(MKDIR_P) $(dir $@)
1007 $(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 ";" }' < $< > $@
1010 src/core/load-fragment-gperf.gperf.m4
1013 src/core/load-fragment-gperf.gperf \
1014 src/core/load-fragment-gperf.c \
1015 src/core/load-fragment-gperf-nulstr.c \
1016 src/core/syscall-list.txt \
1017 src/core/syscall-from-name.gperf
1020 src/core/syscall-from-name.h \
1021 src/core/syscall-to-name.h
1023 src/core/syscall-list.txt: Makefile
1024 $(AM_V_at)$(MKDIR_P) $(dir $@)
1025 $(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; }' > $@
1027 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
1028 $(AM_V_at)$(MKDIR_P) $(dir $@)
1029 $(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 }' < $< > $@
1031 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
1032 $(AM_V_at)$(MKDIR_P) $(dir $@)
1033 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1035 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
1036 $(AM_V_at)$(MKDIR_P) $(dir $@)
1037 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1039 # ------------------------------------------------------------------------------
1048 libsystemd-core.la \
1049 libsystemd-daemon.la \
1050 libsystemd-id128-internal.la \
1053 dist_pkgsysconf_DATA += \
1054 src/core/system.conf \
1057 dist_dbuspolicy_DATA += \
1058 src/core/org.freedesktop.systemd1.conf
1060 dist_dbussystemservice_DATA += \
1061 src/core/org.freedesktop.systemd1.service
1063 dbusinterface_DATA += \
1064 org.freedesktop.systemd1.Manager.xml \
1065 org.freedesktop.systemd1.Job.xml \
1066 org.freedesktop.systemd1.Unit.xml \
1067 org.freedesktop.systemd1.Service.xml \
1068 org.freedesktop.systemd1.Socket.xml \
1069 org.freedesktop.systemd1.Timer.xml \
1070 org.freedesktop.systemd1.Target.xml \
1071 org.freedesktop.systemd1.Device.xml \
1072 org.freedesktop.systemd1.Mount.xml \
1073 org.freedesktop.systemd1.Automount.xml \
1074 org.freedesktop.systemd1.Snapshot.xml \
1075 org.freedesktop.systemd1.Swap.xml \
1076 org.freedesktop.systemd1.Path.xml
1078 polkitpolicy_in_in_files += \
1079 src/core/org.freedesktop.systemd1.policy.in.in
1081 org.freedesktop.systemd1.%.xml: systemd
1082 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1083 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1084 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1086 pkgconfigdata_DATA = \
1089 nodist_rpmmacros_DATA = \
1090 src/core/macros.systemd
1093 src/core/systemd.pc.in \
1094 src/core/macros.systemd.in
1097 src/core/macros.systemd \
1098 src/core/org.freedesktop.systemd1.policy.in
1100 # ------------------------------------------------------------------------------
1127 test-strip-tab-ansi \
1137 test/sched_idle_bad.service \
1138 test/sched_idle_ok.service \
1139 test/sched_rr_bad.service \
1140 test/sched_rr_ok.service \
1141 test/sched_rr_change.service
1143 test_engine_SOURCES = \
1144 src/test/test-engine.c
1146 test_engine_CFLAGS = \
1150 test_engine_LDADD = \
1151 libsystemd-core.la \
1152 libsystemd-daemon.la \
1155 test_job_type_SOURCES = \
1156 src/test/test-job-type.c
1158 test_job_type_CFLAGS = \
1162 test_job_type_LDADD = \
1163 libsystemd-core.la \
1164 libsystemd-daemon.la
1176 test_loopback_SOURCES = \
1177 src/test/test-loopback.c
1179 test_loopback_LDADD = \
1180 libsystemd-shared.la \
1183 test_hostname_SOURCES = \
1184 src/test/test-hostname.c
1186 test_hostname_LDADD = \
1193 test_efivars_SOURCES = \
1194 src/test/test-efivars.c
1196 test_efivars_LDADD = \
1197 libsystemd-shared.la
1200 test_unit_name_SOURCES = \
1201 src/test/test-unit-name.c
1203 test_unit_name_CFLAGS = \
1207 test_unit_name_LDADD = \
1210 test_unit_file_SOURCES = \
1211 src/test/test-unit-file.c
1213 test_unit_file_CFLAGS = \
1217 test_unit_file_LDADD = \
1220 test_util_SOURCES = \
1221 src/test/test-util.c
1223 test_util_CFLAGS = \
1229 test_hashmap_SOURCES = \
1230 src/test/test-hashmap.c
1232 test_hashmap_CFLAGS = \
1235 test_hashmap_LDADD = \
1238 test_list_SOURCES = \
1239 src/test/test-list.c
1241 test_list_CFLAGS = \
1247 test_tables_SOURCES = \
1248 src/test/test-tables.c \
1249 src/shared/test-tables.h
1251 test_tables_CFLAGS = \
1255 test_tables_LDADD = \
1256 libsystemd-core.la \
1259 test_prioq_SOURCES = \
1260 src/test/test-prioq.c
1262 test_prioq_CFLAGS = \
1265 test_prioq_LDADD = \
1268 test_fileio_SOURCES = \
1269 src/test/test-fileio.c
1271 test_fileio_CFLAGS = \
1274 test_fileio_LDADD = \
1277 test_time_SOURCES = \
1278 src/test/test-time.c
1280 test_time_CFLAGS = \
1286 test_log_SOURCES = \
1292 test_date_SOURCES = \
1293 src/test/test-date.c
1298 test_sleep_SOURCES = \
1299 src/test/test-sleep.c
1301 test_sleep_LDADD = \
1304 test_replace_var_SOURCES = \
1305 src/test/test-replace-var.c
1307 test_replace_var_LDADD = \
1308 libsystemd-shared.la
1310 test_calendarspec_SOURCES = \
1311 src/test/test-calendarspec.c
1313 test_calendarspec_LDADD = \
1314 libsystemd-shared.la
1316 test_strip_tab_ansi_SOURCES = \
1317 src/test/test-strip-tab-ansi.c
1319 test_strip_tab_ansi_LDADD = \
1320 libsystemd-shared.la
1322 test_daemon_SOURCES = \
1323 src/test/test-daemon.c
1325 test_daemon_LDADD = \
1326 libsystemd-shared.la \
1327 libsystemd-daemon.la
1329 test_cgroup_SOURCES = \
1330 src/test/test-cgroup.c
1332 test_cgroup_LDADD = \
1333 libsystemd-label.la \
1334 libsystemd-shared.la
1336 test_cgroup_util_SOURCES = \
1337 src/test/test-cgroup-util.c
1339 test_cgroup_util_LDADD = \
1340 libsystemd-label.la \
1341 libsystemd-shared.la
1343 test_env_replace_SOURCES = \
1344 src/test/test-env-replace.c
1346 test_env_replace_LDADD = \
1347 libsystemd-shared.la
1349 test_strbuf_SOURCES = \
1350 src/test/test-strbuf.c
1352 test_strbuf_LDADD = \
1353 libsystemd-shared.la
1355 test_strv_SOURCES = \
1356 src/test/test-strv.c
1359 libsystemd-shared.la \
1360 libsystemd-units.la \
1361 libsystemd-id128-internal.la
1363 test_path_util_SOURCES = \
1364 src/test/test-path-util.c
1366 test_path_util_LDADD = \
1367 libsystemd-shared.la
1369 test_strxcpyx_SOURCES = \
1370 src/test/test-strxcpyx.c
1372 test_strxcpyx_LDADD = \
1373 libsystemd-shared.la
1375 test_install_SOURCES = \
1376 src/test/test-install.c
1378 test_install_CFLAGS = \
1382 test_install_LDADD = \
1383 libsystemd-units.la \
1384 libsystemd-label.la \
1385 libsystemd-shared.la \
1386 libsystemd-id128-internal.la
1388 test_watchdog_SOURCES = \
1389 src/test/test-watchdog.c
1391 test_watchdog_LDADD = \
1392 libsystemd-shared.la
1394 test_sched_prio_SOURCES = \
1395 src/test/test-sched-prio.c
1397 test_sched_prio_CFLAGS = \
1400 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1402 test_sched_prio_LDADD = \
1403 libsystemd-core.la \
1404 libsystemd-daemon.la
1406 # ------------------------------------------------------------------------------
1407 ## .PHONY so it always rebuilds it
1408 .PHONY: coverage lcov-run lcov-report
1410 # run lcov from scratch, always
1415 coverage_dir = coverage
1416 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1419 # reset run coverage tests
1421 @rm -rf $(coverage_dir)
1422 lcov $(coverage_opts) --zerocounters
1425 # generate report based on current coverage data
1427 $(MKDIR_P) $(coverage_dir)
1428 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1429 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1430 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1431 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1433 # lcov doesn't work properly with vpath builds, make sure that bad
1434 # output is not uploaded by mistake.
1435 coverage-sync: coverage
1436 test "$(builddir)" = "$(srcdir)"
1437 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1440 lcov-run lcov-report:
1441 echo "Need to reconfigure with --enable-coverage"
1444 # ------------------------------------------------------------------------------
1445 systemd_initctl_SOURCES = \
1446 src/initctl/initctl.c
1448 systemd_initctl_CFLAGS = \
1452 systemd_initctl_LDADD = \
1453 libsystemd-shared.la \
1454 libsystemd-daemon.la \
1457 # ------------------------------------------------------------------------------
1458 systemd_update_utmp_SOURCES = \
1459 src/update-utmp/update-utmp.c
1461 systemd_update_utmp_CFLAGS = \
1466 systemd_update_utmp_LDADD = \
1467 libsystemd-shared.la \
1468 libsystemd-dbus.la \
1471 # ------------------------------------------------------------------------------
1472 systemd_shutdownd_SOURCES = \
1473 src/shutdownd/shutdownd.c
1475 systemd_shutdownd_LDADD = \
1476 libsystemd-label.la \
1477 libsystemd-shared.la \
1478 libsystemd-daemon.la
1480 pkginclude_HEADERS += \
1481 src/systemd/sd-shutdown.h
1483 # ------------------------------------------------------------------------------
1484 systemd_shutdown_SOURCES = \
1487 src/core/shutdown.c \
1488 src/core/mount-setup.c \
1489 src/core/mount-setup.h \
1490 src/core/killall.h \
1493 systemd_shutdown_LDADD = \
1494 libsystemd-label.la \
1495 libsystemd-shared.la \
1498 # ------------------------------------------------------------------------------
1500 systemd_modules_load_SOURCES = \
1501 src/modules-load/modules-load.c
1503 systemd_modules_load_CFLAGS = \
1507 systemd_modules_load_LDADD = \
1508 libsystemd-shared.la \
1511 rootlibexec_PROGRAMS += \
1512 systemd-modules-load
1514 nodist_systemunit_DATA += \
1515 units/systemd-modules-load.service
1517 SYSINIT_TARGET_WANTS += \
1518 systemd-modules-load.service
1521 nodist_systemunit_DATA += \
1522 units/kmod-static-nodes.service
1524 SYSINIT_TARGET_WANTS += \
1525 kmod-static-nodes.service
1530 units/systemd-modules-load.service.in \
1531 units/kmod-static-nodes.service.in
1533 # ------------------------------------------------------------------------------
1535 systemd_tmpfiles_SOURCES = \
1536 src/tmpfiles/tmpfiles.c
1538 systemd_tmpfiles_LDADD = \
1539 libsystemd-label.la \
1540 libsystemd-shared.la \
1541 libsystemd-capability.la
1543 rootbin_PROGRAMS += \
1546 dist_systemunit_DATA += \
1547 units/systemd-tmpfiles-clean.timer
1549 nodist_systemunit_DATA += \
1550 units/systemd-tmpfiles-setup-dev.service \
1551 units/systemd-tmpfiles-setup.service \
1552 units/systemd-tmpfiles-clean.service
1554 dist_tmpfiles_DATA = \
1555 tmpfiles.d/systemd.conf \
1556 tmpfiles.d/tmp.conf \
1560 dist_tmpfiles_DATA += \
1561 tmpfiles.d/legacy.conf
1564 SYSINIT_TARGET_WANTS += \
1565 systemd-tmpfiles-setup-dev.service \
1566 systemd-tmpfiles-setup.service
1568 TIMERS_TARGET_WANTS += \
1569 systemd-tmpfiles-clean.timer
1573 $(sysconfdir)/tmpfiles.d
1577 units/systemd-tmpfiles-setup-dev.service.in \
1578 units/systemd-tmpfiles-setup.service.in \
1579 units/systemd-tmpfiles-clean.service.in
1581 # ------------------------------------------------------------------------------
1582 systemd_machine_id_setup_SOURCES = \
1583 src/machine-id-setup/machine-id-setup-main.c \
1584 src/core/machine-id-setup.c \
1585 src/core/machine-id-setup.h
1587 systemd_machine_id_setup_LDADD = \
1588 libsystemd-label.la \
1589 libsystemd-shared.la \
1590 libsystemd-id128-internal.la
1592 # ------------------------------------------------------------------------------
1593 systemd_sysctl_SOURCES = \
1596 systemd_sysctl_LDADD = \
1597 libsystemd-shared.la
1599 # ------------------------------------------------------------------------------
1600 systemd_sleep_SOURCES = \
1603 systemd_sleep_LDADD = \
1604 libsystemd-shared.la
1606 # ------------------------------------------------------------------------------
1607 systemd_fsck_SOURCES = \
1610 systemd_fsck_CFLAGS = \
1614 systemd_fsck_LDADD = \
1615 libsystemd-shared.la \
1616 libsystemd-dbus.la \
1619 # ------------------------------------------------------------------------------
1620 systemd_ac_power_SOURCES = \
1621 src/ac-power/ac-power.c
1623 systemd_ac_power_LDADD = \
1624 libsystemd-shared.la \
1627 # ------------------------------------------------------------------------------
1628 systemd_detect_virt_SOURCES = \
1629 src/detect-virt/detect-virt.c
1631 systemd_detect_virt_LDADD = \
1632 libsystemd-shared.la
1634 systemd-detect-virt-install-hook:
1635 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1637 INSTALL_EXEC_HOOKS += \
1638 systemd-detect-virt-install-hook
1640 # ------------------------------------------------------------------------------
1641 systemd_delta_SOURCES = \
1644 systemd_delta_LDADD = \
1645 libsystemd-shared.la
1647 # ------------------------------------------------------------------------------
1648 systemd_getty_generator_SOURCES = \
1649 src/getty-generator/getty-generator.c
1651 systemd_getty_generator_LDADD = \
1652 libsystemd-label.la \
1653 libsystemd-shared.la
1655 # ------------------------------------------------------------------------------
1656 systemd_fstab_generator_SOURCES = \
1657 src/fstab-generator/fstab-generator.c \
1658 src/core/mount-setup.c
1660 systemd_fstab_generator_LDADD = \
1661 libsystemd-label.la \
1662 libsystemd-shared.la
1664 # ------------------------------------------------------------------------------
1665 systemd_system_update_generator_SOURCES = \
1666 src/system-update-generator/system-update-generator.c
1668 systemd_system_update_generator_LDADD = \
1669 libsystemd-label.la \
1670 libsystemd-shared.la
1673 # ------------------------------------------------------------------------------
1674 systemgenerator_PROGRAMS += \
1675 systemd-efi-boot-generator
1677 systemd_efi_boot_generator_SOURCES = \
1678 src/efi-boot-generator/efi-boot-generator.c
1680 systemd_efi_boot_generator_LDADD = \
1681 libsystemd-label.la \
1682 libsystemd-shared.la
1684 # ------------------------------------------------------------------------------
1687 src/boot/boot-loader.h \
1688 src/boot/bootctl.c \
1689 src/boot/boot-loader.c \
1693 libsystemd-shared.la \
1694 libsystemd-id128.la \
1695 libsystemd-daemon.la
1701 # ------------------------------------------------------------------------------
1702 systemd_rc_local_generator_SOURCES = \
1703 src/rc-local-generator/rc-local-generator.c
1705 systemd_rc_local_generator_LDADD = \
1706 libsystemd-label.la \
1707 libsystemd-shared.la
1709 # ------------------------------------------------------------------------------
1710 systemd_remount_fs_SOURCES = \
1711 src/remount-fs/remount-fs.c \
1712 src/core/mount-setup.c \
1713 src/core/mount-setup.h
1715 systemd_remount_fs_LDADD = \
1716 libsystemd-label.la \
1717 libsystemd-shared.la
1719 # ------------------------------------------------------------------------------
1720 systemd_cgroups_agent_SOURCES = \
1721 src/cgroups-agent/cgroups-agent.c
1723 systemd_cgroups_agent_CFLAGS = \
1727 systemd_cgroups_agent_LDADD = \
1728 libsystemd-shared.la \
1731 # ------------------------------------------------------------------------------
1732 systemctl_SOURCES = \
1733 src/systemctl/systemctl.c
1735 systemctl_CFLAGS = \
1740 libsystemd-units.la \
1741 libsystemd-label.la \
1742 libsystemd-shared.la \
1743 libsystemd-daemon.la \
1744 libsystemd-dbus.la \
1747 # ------------------------------------------------------------------------------
1748 systemd_notify_SOURCES = \
1749 src/notify/notify.c \
1750 src/readahead/sd-readahead.c
1752 systemd_notify_LDADD = \
1753 libsystemd-shared.la \
1754 libsystemd-daemon.la
1756 # ------------------------------------------------------------------------------
1757 systemd_ask_password_SOURCES = \
1758 src/ask-password/ask-password.c
1760 systemd_ask_password_LDADD = \
1761 libsystemd-label.la \
1762 libsystemd-shared.la
1764 # ------------------------------------------------------------------------------
1765 systemd_reply_password_SOURCES = \
1766 src/reply-password/reply-password.c
1768 systemd_reply_password_LDADD = \
1769 libsystemd-shared.la
1771 # ------------------------------------------------------------------------------
1772 systemd_cgls_SOURCES = \
1775 systemd_cgls_LDADD = \
1776 libsystemd-shared.la
1778 # ------------------------------------------------------------------------------
1779 systemd_cgtop_SOURCES = \
1782 systemd_cgtop_LDADD = \
1783 libsystemd-shared.la
1785 # ------------------------------------------------------------------------------
1786 systemd_nspawn_SOURCES = \
1787 src/nspawn/nspawn.c \
1788 src/core/mount-setup.c \
1789 src/core/mount-setup.h \
1790 src/core/loopback-setup.c \
1791 src/core/loopback-setup.h
1793 systemd_nspawn_LDADD = \
1794 libsystemd-label.la \
1795 libsystemd-capability.la \
1796 libsystemd-shared.la \
1797 libsystemd-daemon.la \
1798 libsystemd-id128-internal.la \
1801 # ------------------------------------------------------------------------------
1802 systemd_run_SOURCES = \
1805 systemd_run_LDADD = \
1806 libsystemd-label.la \
1807 libsystemd-capability.la \
1808 libsystemd-shared.la \
1809 libsystemd-daemon.la \
1810 libsystemd-id128-internal.la \
1813 # ------------------------------------------------------------------------------
1814 systemd_stdio_bridge_SOURCES = \
1815 src/stdio-bridge/stdio-bridge.c
1817 systemd_stdio_bridge_LDADD = \
1818 libsystemd-shared.la \
1820 libsystemd-daemon.la
1822 # ------------------------------------------------------------------------------
1823 systemd_tty_ask_password_agent_SOURCES = \
1824 src/tty-ask-password-agent/tty-ask-password-agent.c
1826 systemd_tty_ask_password_agent_LDADD = \
1827 libsystemd-label.la \
1828 libsystemd-shared.la
1830 # ------------------------------------------------------------------------------
1831 libsystemd_daemon_la_SOURCES = \
1832 src/libsystemd-daemon/sd-daemon.c
1834 libsystemd_daemon_internal_la_SOURCES = \
1835 $(libsystemd_daemon_la_SOURCES)
1837 libsystemd_daemon_la_CFLAGS = \
1839 -fvisibility=hidden \
1842 libsystemd_daemon_la_LDFLAGS = \
1844 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1845 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1847 libsystemd_daemon_la_LIBADD = \
1850 pkginclude_HEADERS += \
1851 src/systemd/sd-daemon.h
1853 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1854 libsystemd-daemon-install-hook:
1855 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1857 libsystemd-daemon-uninstall-hook:
1858 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1860 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1861 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1863 lib_LTLIBRARIES += \
1864 libsystemd-daemon.la
1866 noinst_LTLIBRARIES += \
1867 libsystemd-daemon-internal.la
1869 pkgconfiglib_DATA += \
1870 src/libsystemd-daemon/libsystemd-daemon.pc
1873 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1874 src/libsystemd-daemon/libsystemd-daemon.sym
1876 # ------------------------------------------------------------------------------
1877 libsystemd_bus_la_SOURCES = \
1878 src/systemd/sd-bus.h \
1879 src/systemd/sd-bus-protocol.h \
1880 src/systemd/sd-memfd.h \
1881 src/libsystemd-bus/sd-bus.c \
1882 src/libsystemd-bus/bus-control.c \
1883 src/libsystemd-bus/bus-control.h \
1884 src/libsystemd-bus/bus-error.c \
1885 src/libsystemd-bus/bus-error.h \
1886 src/libsystemd-bus/bus-internal.c \
1887 src/libsystemd-bus/bus-internal.h \
1888 src/libsystemd-bus/bus-socket.c \
1889 src/libsystemd-bus/bus-socket.h \
1890 src/libsystemd-bus/bus-kernel.c \
1891 src/libsystemd-bus/bus-kernel.h \
1892 src/libsystemd-bus/bus-message.c \
1893 src/libsystemd-bus/bus-message.h \
1894 src/libsystemd-bus/bus-signature.c \
1895 src/libsystemd-bus/bus-signature.h \
1896 src/libsystemd-bus/bus-type.c \
1897 src/libsystemd-bus/bus-type.h \
1898 src/libsystemd-bus/bus-match.c \
1899 src/libsystemd-bus/bus-match.h \
1900 src/libsystemd-bus/bus-bloom.c \
1901 src/libsystemd-bus/bus-bloom.h \
1902 src/libsystemd-bus/kdbus.h \
1903 src/libsystemd-bus/sd-memfd.c
1905 libsystemd_bus_la_LIBADD = \
1906 libsystemd-id128-internal.la \
1907 libsystemd-shared.la \
1908 libsystemd-daemon.la
1910 libsystemd_bus_la_CFLAGS = \
1914 noinst_LTLIBRARIES += \
1919 test-bus-signature \
1924 test-bus-kernel-bloom \
1925 test-bus-kernel-benchmark \
1929 noinst_PROGRAMS += \
1932 test_bus_marshal_SOURCES = \
1933 src/libsystemd-bus/test-bus-marshal.c
1935 test_bus_marshal_LDADD = \
1936 libsystemd-shared.la \
1941 test_bus_marshal_CFLAGS = \
1946 test_bus_signature_SOURCES = \
1947 src/libsystemd-bus/test-bus-signature.c
1949 test_bus_signature_LDADD = \
1950 libsystemd-shared.la \
1953 test_bus_chat_SOURCES = \
1954 src/libsystemd-bus/test-bus-chat.c
1956 test_bus_chat_CFLAGS = \
1960 test_bus_chat_LDADD = \
1961 libsystemd-shared.la \
1963 libsystemd-id128-internal.la
1965 test_bus_server_SOURCES = \
1966 src/libsystemd-bus/test-bus-server.c
1968 test_bus_server_CFLAGS = \
1972 test_bus_server_LDADD = \
1973 libsystemd-shared.la \
1975 libsystemd-id128-internal.la
1977 test_bus_match_SOURCES = \
1978 src/libsystemd-bus/test-bus-match.c
1980 test_bus_match_CFLAGS = \
1983 test_bus_match_LDADD = \
1984 libsystemd-shared.la \
1986 libsystemd-id128-internal.la
1988 test_bus_kernel_SOURCES = \
1989 src/libsystemd-bus/test-bus-kernel.c
1991 test_bus_kernel_CFLAGS = \
1994 test_bus_kernel_LDADD = \
1995 libsystemd-shared.la \
1997 libsystemd-id128-internal.la
1999 test_bus_kernel_bloom_SOURCES = \
2000 src/libsystemd-bus/test-bus-kernel-bloom.c
2002 test_bus_kernel_bloom_CFLAGS = \
2005 test_bus_kernel_bloom_LDADD = \
2006 libsystemd-shared.la \
2008 libsystemd-id128-internal.la
2010 test_bus_kernel_benchmark_SOURCES = \
2011 src/libsystemd-bus/test-bus-kernel-benchmark.c
2013 test_bus_kernel_benchmark_CFLAGS = \
2016 test_bus_kernel_benchmark_LDADD = \
2017 libsystemd-shared.la \
2019 libsystemd-id128-internal.la
2021 test_bus_memfd_SOURCES = \
2022 src/libsystemd-bus/test-bus-memfd.c
2024 test_bus_memfd_CFLAGS = \
2027 test_bus_memfd_LDADD = \
2028 libsystemd-shared.la \
2031 test_bus_zero_copy_SOURCES = \
2032 src/libsystemd-bus/test-bus-zero-copy.c
2034 test_bus_zero_copy_CFLAGS = \
2037 test_bus_zero_copy_LDADD = \
2038 libsystemd-shared.la \
2042 src/libsystemd-bus/busctl.c
2045 libsystemd-shared.la \
2048 # ------------------------------------------------------------------------------
2058 include_HEADERS += \
2059 src/libudev/libudev.h
2061 lib_LTLIBRARIES += \
2064 libudev_la_SOURCES =\
2065 src/libudev/libudev-private.h \
2066 src/libudev/libudev.c \
2067 src/libudev/libudev-list.c \
2068 src/libudev/libudev-util.c \
2069 src/libudev/libudev-device.c \
2070 src/libudev/libudev-enumerate.c \
2071 src/libudev/libudev-monitor.c \
2072 src/libudev/libudev-queue.c \
2073 src/libudev/libudev-hwdb-def.h \
2074 src/libudev/libudev-hwdb.c
2076 libudev_la_CFLAGS = \
2080 libudev_la_LDFLAGS = \
2082 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2083 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2085 libudev_la_LIBADD = \
2086 libsystemd-shared.la \
2087 libsystemd-label.la \
2088 libsystemd-daemon-internal.la \
2089 libsystemd-id128-internal.la
2091 pkgconfiglib_DATA += \
2092 src/libudev/libudev.pc
2095 src/libudev/libudev.pc.in \
2096 src/libudev/libudev.sym
2099 src/libudev/libudev.pc \
2104 $(AM_V_at)$(MKDIR_P) $(dir $@)
2105 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2108 $(AM_V_at)$(MKDIR_P) $(dir $@)
2109 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2111 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2112 libudev-install-hook:
2113 libname=libudev.so && $(move-to-rootlibdir)
2115 libudev-uninstall-hook:
2116 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2118 INSTALL_EXEC_HOOKS += libudev-install-hook
2119 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2121 # ------------------------------------------------------------------------------
2122 noinst_LTLIBRARIES += \
2125 libudev_private_la_SOURCES =\
2126 $(libudev_la_SOURCES) \
2127 src/libudev/libudev-device-private.c \
2128 src/libudev/libudev-queue-private.c
2130 libudev_private_la_CFLAGS = \
2132 -fvisibility=default
2134 libudev_private_la_LIBADD = \
2135 libsystemd-shared.la
2137 # ------------------------------------------------------------------------------
2139 $(sysconfdir)/udev/rules.d \
2140 $(sysconfdir)/udev/hwdb.d
2142 dist_udevrules_DATA += \
2143 rules/99-systemd.rules \
2144 rules/42-usb-hid-pm.rules \
2145 rules/50-udev-default.rules \
2146 rules/60-keyboard.rules \
2147 rules/60-persistent-storage-tape.rules \
2148 rules/60-persistent-serial.rules \
2149 rules/60-persistent-input.rules \
2150 rules/60-persistent-alsa.rules \
2151 rules/60-persistent-storage.rules \
2152 rules/64-btrfs.rules \
2153 rules/75-net-description.rules \
2154 rules/75-tty-description.rules \
2155 rules/78-sound-card.rules \
2156 rules/80-net-name-slot.rules \
2157 rules/95-udev-late.rules
2159 dist_udevhwdb_DATA = \
2160 hwdb/20-pci-vendor-model.hwdb \
2161 hwdb/20-pci-classes.hwdb \
2162 hwdb/20-usb-vendor-model.hwdb \
2163 hwdb/20-usb-classes.hwdb \
2164 hwdb/20-bluetooth-vendor-product.hwdb \
2165 hwdb/20-acpi-vendor.hwdb \
2167 hwdb/60-keyboard.hwdb
2169 udevconfdir = $(sysconfdir)/udev
2170 dist_udevconf_DATA = \
2173 sharepkgconfigdir = $(datadir)/pkgconfig
2174 sharepkgconfig_DATA = \
2178 rules/99-systemd.rules.in \
2182 rules/99-systemd.rules \
2186 units/systemd-udevd.service.in \
2187 units/systemd-udev-trigger.service.in \
2188 units/systemd-udev-settle.service.in
2191 units/systemd-udevd.service \
2192 units/systemd-udev-trigger.service \
2193 units/systemd-udev-settle.service
2195 SOCKETS_TARGET_WANTS += \
2196 systemd-udevd-control.socket \
2197 systemd-udevd-kernel.socket
2198 SYSINIT_TARGET_WANTS += \
2199 systemd-udevd.service \
2200 systemd-udev-trigger.service
2202 rootbin_PROGRAMS += \
2205 rootlibexec_PROGRAMS += \
2208 noinst_LTLIBRARIES += \
2211 src/udev/keyboard-keys.txt: Makefile
2212 $(AM_V_at)$(MKDIR_P) $(dir $@)
2213 $(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/' > $@
2215 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2216 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2218 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2219 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2221 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2222 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2224 libudev_core_la_SOURCES = \
2226 src/udev/udev-event.c \
2227 src/udev/udev-watch.c \
2228 src/udev/udev-node.c \
2229 src/udev/udev-rules.c \
2230 src/udev/udev-ctrl.c \
2231 src/udev/udev-builtin.c \
2232 src/udev/udev-builtin-btrfs.c \
2233 src/udev/udev-builtin-hwdb.c \
2234 src/udev/udev-builtin-input_id.c \
2235 src/udev/udev-builtin-keyboard.c \
2236 src/udev/udev-builtin-net_id.c \
2237 src/udev/udev-builtin-path_id.c \
2238 src/udev/udev-builtin-usb_id.c
2240 nodist_libudev_core_la_SOURCES = \
2241 src/udev/keyboard-keys-from-name.h \
2242 src/udev/keyboard-keys-to-name.h
2245 $(nodist_libudev_core_la_SOURCES)
2248 src/udev/keyboard-keys-from-name.gperf \
2249 src/udev/keyboard-keys.txt
2251 libudev_core_la_CFLAGS = \
2256 libudev_core_la_LIBADD = \
2257 libudev-private.la \
2258 libsystemd-label.la \
2259 libsystemd-daemon-internal.la \
2260 libsystemd-shared.la \
2264 libudev_core_la_CPPFLAGS = \
2266 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2269 libudev_core_la_SOURCES += \
2270 src/udev/udev-builtin-firmware.c
2272 dist_udevrules_DATA += \
2273 rules/50-firmware.rules
2277 libudev_core_la_SOURCES += \
2278 src/udev/udev-builtin-kmod.c
2280 dist_udevrules_DATA += \
2281 rules/80-drivers.rules
2285 libudev_core_la_SOURCES += \
2286 src/udev/udev-builtin-blkid.c
2290 libudev_core_la_SOURCES += \
2291 src/udev/udev-builtin-uaccess.c \
2292 src/login/logind-acl.c \
2293 src/login/sd-login.c
2295 libudev_core_la_LIBADD += \
2299 systemd_udevd_SOURCES = \
2302 systemd_udevd_LDADD = \
2306 src/udev/udevadm.c \
2307 src/udev/udevadm-info.c \
2308 src/udev/udevadm-control.c \
2309 src/udev/udevadm-monitor.c \
2310 src/udev/udevadm-hwdb.c \
2311 src/udev/udevadm-settle.c \
2312 src/udev/udevadm-trigger.c \
2313 src/udev/udevadm-test.c \
2314 src/udev/udevadm-test-builtin.c
2318 libsystemd-shared.la
2320 # Update hwdb on installation. Do not bother if installing
2321 # in DESTDIR, since this is likely for packaging purposes.
2323 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2325 INSTALL_DATA_HOOKS += \
2329 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2331 # ------------------------------------------------------------------------------
2340 test_libudev_SOURCES = \
2341 src/test/test-libudev.c
2343 test_libudev_LDADD = \
2344 libsystemd-label.la \
2345 libsystemd-shared.la \
2348 test_udev_SOURCES = \
2349 src/test/test-udev.c
2353 libsystemd-shared.la \
2359 test_udev_LDADD += \
2366 # packed sysfs test tree
2368 $(AM_V_at)$(MKDIR_P) $(dir $@)
2369 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2373 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2378 test/rules-test.sh \
2379 test/rule-syntax-check.py
2381 # ------------------------------------------------------------------------------
2383 src/udev/ata_id/ata_id.c
2386 libudev-private.la \
2387 libsystemd-shared.la
2389 udevlibexec_PROGRAMS += \
2392 # ------------------------------------------------------------------------------
2393 cdrom_id_SOURCES = \
2394 src/udev/cdrom_id/cdrom_id.c
2398 libsystemd-shared.la
2400 udevlibexec_PROGRAMS += \
2403 dist_udevrules_DATA += \
2404 rules/60-cdrom_id.rules
2406 # ------------------------------------------------------------------------------
2408 src/udev/collect/collect.c
2413 udevlibexec_PROGRAMS += \
2416 # ------------------------------------------------------------------------------
2418 src/udev/scsi_id/scsi_id.c \
2419 src/udev/scsi_id/scsi_serial.c \
2420 src/udev/scsi_id/scsi.h \
2421 src/udev/scsi_id/scsi_id.h
2424 libudev-private.la \
2425 libsystemd-shared.la
2427 udevlibexec_PROGRAMS += \
2431 src/udev/scsi_id/README
2433 # ------------------------------------------------------------------------------
2435 src/udev/v4l_id/v4l_id.c
2440 udevlibexec_PROGRAMS += \
2443 dist_udevrules_DATA += \
2444 rules/60-persistent-v4l.rules
2446 # ------------------------------------------------------------------------------
2447 accelerometer_SOURCES = \
2448 src/udev/accelerometer/accelerometer.c
2450 accelerometer_LDADD = \
2452 libsystemd-shared.la
2454 udevlibexec_PROGRAMS += \
2457 dist_udevrules_DATA += \
2458 rules/61-accelerometer.rules
2460 # ------------------------------------------------------------------------------
2467 libgudev_includedir = \
2468 $(includedir)/gudev-1.0/gudev
2470 libgudev_include_HEADERS = \
2472 src/gudev/gudevenums.h \
2473 src/gudev/gudevenumtypes.h \
2474 src/gudev/gudevtypes.h \
2475 src/gudev/gudevclient.h \
2476 src/gudev/gudevdevice.h \
2477 src/gudev/gudevenumerator.h
2479 lib_LTLIBRARIES += libgudev-1.0.la
2481 pkgconfiglib_DATA += \
2482 src/gudev/gudev-1.0.pc
2485 src/gudev/gudev-1.0.pc
2487 libgudev_1_0_la_SOURCES = \
2488 src/gudev/gudevenums.h \
2489 src/gudev/gudevenumtypes.h \
2490 src/gudev/gudevenumtypes.h\
2491 src/gudev/gudevtypes.h \
2492 src/gudev/gudevclient.h \
2493 src/gudev/gudevclient.c \
2494 src/gudev/gudevdevice.h \
2495 src/gudev/gudevdevice.c \
2496 src/gudev/gudevenumerator.h \
2497 src/gudev/gudevenumerator.c \
2498 src/gudev/gudevprivate.h
2500 nodist_libgudev_1_0_la_SOURCES = \
2501 src/gudev/gudevmarshal.h \
2502 src/gudev/gudevmarshal.c \
2503 src/gudev/gudevenumtypes.h \
2504 src/gudev/gudevenumtypes.c
2507 $(nodist_libgudev_1_0_la_SOURCES)
2509 libgudev_1_0_la_CPPFLAGS = \
2511 -I$(top_builddir)/src\
2512 -I$(top_srcdir)/src\
2513 -I$(top_builddir)/src/gudev \
2514 -I$(top_srcdir)/src/gudev \
2515 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2516 -D_GUDEV_COMPILATION \
2517 -DG_LOG_DOMAIN=\"GUdev\"
2519 libgudev_1_0_la_CFLAGS = \
2521 -fvisibility=default \
2524 libgudev_1_0_la_LIBADD = \
2528 libgudev_1_0_la_LDFLAGS = \
2530 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2531 -export-dynamic -no-undefined \
2532 -export-symbols-regex '^g_udev_.*'
2534 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2535 $(AM_V_at)$(MKDIR_P) $(dir $@)
2536 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2538 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2539 $(AM_V_at)$(MKDIR_P) $(dir $@)
2540 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2541 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2543 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2544 $(AM_V_at)$(MKDIR_P) $(dir $@)
2545 $(AM_V_GEN)glib-mkenums --template $^ > $@
2547 if HAVE_INTROSPECTION
2548 -include $(INTROSPECTION_MAKEFILE)
2550 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2552 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2554 src_gudev_GUdev_1_0_gir_CFLAGS = \
2556 -D_GUDEV_COMPILATION \
2557 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2558 -I$(top_srcdir)/src \
2559 -I$(top_builddir)/src \
2560 -I$(top_srcdir)/src/gdev \
2561 -I$(top_builddir)/src/gdev
2563 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2565 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2566 --pkg-export=gudev-1.0 \
2569 src_gudev_GUdev_1_0_gir_FILES = \
2571 src/gudev/gudevtypes.h \
2572 src/gudev/gudevenums.h \
2573 src/gudev/gudevenumtypes.h \
2574 src/gudev/gudevclient.h \
2575 src/gudev/gudevdevice.h \
2576 src/gudev/gudevenumerator.h \
2577 src/gudev/gudevclient.c \
2578 src/gudev/gudevdevice.c \
2579 src/gudev/gudevenumerator.c
2581 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2582 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2584 girdir = $(datadir)/gir-1.0
2586 src/gudev/GUdev-1.0.gir
2588 typelibsdir = $(libdir)/girepository-1.0
2590 src/gudev/GUdev-1.0.typelib
2592 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2593 endif # HAVE_INTROSPECTION
2595 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2596 libgudev-install-hook:
2597 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2599 libgudev-uninstall-hook:
2600 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2602 INSTALL_EXEC_HOOKS += libgudev-install-hook
2603 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2607 src/gudev/gudev-1.0.pc.in \
2608 src/gudev/gudevmarshal.list \
2609 src/gudev/gudevenumtypes.h.template \
2610 src/gudev/gudevenumtypes.c.template \
2611 src/gudev/gjs-example.js \
2612 src/gudev/seed-example-enum.js \
2613 src/gudev/seed-example.js
2615 # ------------------------------------------------------------------------------
2616 mtd_probe_SOURCES = \
2617 src/udev/mtd_probe/mtd_probe.c \
2618 src/udev/mtd_probe/mtd_probe.h \
2619 src/udev/mtd_probe/probe_smartmedia.c
2621 mtd_probe_CPPFLAGS = \
2624 dist_udevrules_DATA += \
2625 rules/75-probe_mtd.rules
2627 udevlibexec_PROGRAMS += \
2630 # ------------------------------------------------------------------------------
2631 libsystemd_id128_la_SOURCES = \
2632 src/libsystemd-id128/sd-id128.c
2634 libsystemd_id128_la_CFLAGS = \
2638 libsystemd_id128_la_LDFLAGS = \
2640 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2641 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2643 libsystemd_id128_la_LIBADD = \
2644 libsystemd-shared.la \
2645 libsystemd-label.la \
2646 libsystemd-daemon-internal.la
2648 libsystemd_id128_internal_la_SOURCES = \
2649 $(libsystemd_id128_la_SOURCES)
2651 test_id128_SOURCES = \
2652 src/test/test-id128.c
2654 test_id128_LDADD = \
2655 libsystemd-shared.la \
2656 libsystemd-id128-internal.la
2661 pkginclude_HEADERS += \
2662 src/systemd/sd-id128.h
2664 lib_LTLIBRARIES += \
2667 noinst_LTLIBRARIES += \
2668 libsystemd-id128-internal.la
2670 pkgconfiglib_DATA += \
2671 src/libsystemd-id128/libsystemd-id128.pc
2673 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2674 libsystemd-id128-install-hook:
2675 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2677 libsystemd-id128-uninstall-hook:
2678 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2680 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2681 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2684 src/libsystemd-id128/libsystemd-id128.pc.in \
2685 src/libsystemd-id128/libsystemd-id128.sym
2687 # ------------------------------------------------------------------------------
2689 rootlibexec_PROGRAMS += \
2692 systemd_activate_SOURCES = \
2693 src/activate/activate.c
2695 systemd_activate_LDADD = \
2696 libsystemd-shared.la \
2697 libsystemd-daemon.la
2699 # ------------------------------------------------------------------------------
2700 systemd_journald_SOURCES = \
2701 src/journal/journald.c \
2702 src/journal/journald-server.h
2704 systemd_journald_LDADD = \
2705 libsystemd-journal-internal.la \
2706 libsystemd-shared.la \
2707 libsystemd-id128-internal.la
2709 systemd_cat_SOURCES = \
2712 systemd_cat_LDADD = \
2713 libsystemd-shared.la \
2714 libsystemd-journal-internal.la
2716 journalctl_SOURCES = \
2717 src/journal/journalctl.c
2719 journalctl_CFLAGS = \
2722 journalctl_LDADD = \
2723 libsystemd-shared.la \
2724 libsystemd-journal-internal.la \
2725 libsystemd-id128-internal.la \
2729 journalctl_LDADD += \
2734 journalctl_SOURCES += \
2735 src/journal/journal-qrcode.c \
2736 src/journal/journal-qrcode.h
2738 journalctl_CFLAGS += \
2741 journalctl_LDADD += \
2745 test_journal_SOURCES = \
2746 src/journal/test-journal.c
2748 test_journal_LDADD = \
2749 libsystemd-shared.la \
2750 libsystemd-journal-internal.la \
2751 libsystemd-id128-internal.la
2753 test_journal_send_SOURCES = \
2754 src/journal/test-journal-send.c
2756 test_journal_send_LDADD = \
2757 libsystemd-shared.la \
2758 libsystemd-journal-internal.la \
2759 libsystemd-id128-internal.la
2761 test_journal_syslog_SOURCES = \
2762 src/journal/test-journal-syslog.c
2764 test_journal_syslog_LDADD = \
2765 libsystemd-journal-internal.la \
2766 libsystemd-shared.la \
2767 libsystemd-id128-internal.la
2769 test_journal_match_SOURCES = \
2770 src/journal/test-journal-match.c
2772 test_journal_match_LDADD = \
2773 libsystemd-shared.la \
2774 libsystemd-journal-internal.la \
2775 libsystemd-id128-internal.la
2777 test_journal_enum_SOURCES = \
2778 src/journal/test-journal-enum.c
2780 test_journal_enum_LDADD = \
2781 libsystemd-shared.la \
2782 libsystemd-journal-internal.la \
2783 libsystemd-id128-internal.la
2785 test_journal_stream_SOURCES = \
2786 src/journal/test-journal-stream.c
2788 test_journal_stream_LDADD = \
2789 libsystemd-shared.la \
2790 libsystemd-journal-internal.la \
2791 libsystemd-id128-internal.la
2793 test_journal_verify_SOURCES = \
2794 src/journal/test-journal-verify.c
2796 test_journal_verify_LDADD = \
2797 libsystemd-shared.la \
2798 libsystemd-journal-internal.la \
2799 libsystemd-id128-internal.la
2801 test_journal_interleaving_SOURCES = \
2802 src/journal/test-journal-interleaving.c
2804 test_journal_interleaving_LDADD = \
2805 libsystemd-shared.la \
2806 libsystemd-journal-internal.la \
2807 libsystemd-id128-internal.la
2809 test_mmap_cache_SOURCES = \
2810 src/journal/test-mmap-cache.c
2812 test_mmap_cache_LDADD = \
2813 libsystemd-shared.la \
2814 libsystemd-journal-internal.la
2816 test_catalog_SOURCES = \
2817 src/journal/test-catalog.c
2819 test_catalog_LDADD = \
2820 libsystemd-shared.la \
2821 libsystemd-label.la \
2822 libsystemd-journal-internal.la \
2823 libsystemd-id128-internal.la
2825 libsystemd_journal_la_SOURCES = \
2826 src/journal/sd-journal.c \
2827 src/systemd/sd-journal.h \
2828 src/journal/journal-file.c \
2829 src/journal/journal-file.h \
2830 src/journal/journal-vacuum.c \
2831 src/journal/journal-vacuum.h \
2832 src/journal/journal-verify.c \
2833 src/journal/journal-verify.h \
2834 src/journal/lookup3.c \
2835 src/journal/lookup3.h \
2836 src/journal/journal-send.c \
2837 src/journal/journal-def.h \
2838 src/journal/compress.h \
2839 src/journal/catalog.c \
2840 src/journal/catalog.h \
2841 src/journal/mmap-cache.c \
2842 src/journal/mmap-cache.h
2844 libsystemd_journal_la_CFLAGS = \
2848 libsystemd_journal_la_LDFLAGS = \
2850 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2851 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2853 libsystemd_journal_la_LIBADD = \
2854 libsystemd-shared.la \
2855 libsystemd-label.la \
2856 libsystemd-daemon-internal.la \
2857 libsystemd-id128-internal.la
2859 libsystemd_journal_internal_la_SOURCES = \
2860 $(libsystemd_journal_la_SOURCES) \
2861 src/journal/journald-kmsg.c \
2862 src/journal/journald-kmsg.h \
2863 src/journal/journald-syslog.c \
2864 src/journal/journald-syslog.h \
2865 src/journal/journald-stream.c \
2866 src/journal/journald-stream.h \
2867 src/journal/journald-server.c \
2868 src/journal/journald-server.h \
2869 src/journal/journald-console.c \
2870 src/journal/journald-console.h \
2871 src/journal/journald-native.c \
2872 src/journal/journald-native.h \
2873 src/journal/journald-rate-limit.c \
2874 src/journal/journald-rate-limit.h \
2875 src/journal/journal-internal.h
2877 libsystemd_journal_internal_la_CFLAGS = \
2880 libsystemd_journal_internal_la_LIBADD = \
2881 libsystemd-label.la \
2882 libsystemd-audit.la \
2883 libsystemd-daemon.la \
2885 libsystemd-shared.la \
2888 nodist_libsystemd_journal_internal_la_SOURCES = \
2889 src/journal/journald-gperf.c
2892 libsystemd_journal_internal_la_LIBADD += \
2893 libsystemd-login-internal.la
2897 libsystemd_journal_internal_la_LIBADD += \
2902 libsystemd_journal_la_SOURCES += \
2903 src/journal/compress.c
2905 libsystemd_journal_la_CFLAGS += \
2908 libsystemd_journal_la_LIBADD += \
2911 libsystemd_journal_internal_la_CFLAGS += \
2914 libsystemd_journal_internal_la_LIBADD += \
2920 libsystemd_journal_la_SOURCES += \
2921 src/journal/journal-authenticate.c \
2922 src/journal/journal-authenticate.h \
2923 src/journal/fsprg.c \
2926 libsystemd_journal_la_CFLAGS += \
2930 libsystemd_journal_la_LIBADD += \
2933 libsystemd_journal_internal_la_CFLAGS += \
2937 libsystemd_journal_internal_la_LIBADD += \
2941 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
2942 # needed. Also, grant read access to new journal files to members of
2943 # "adm" and "wheel".
2944 libsystemd-journal-install-hook:
2945 libname=libsystemd-journal.so && $(move-to-rootlibdir)
2946 -$(MKDIR_P) $(DESTDIR)/var/log/journal
2947 -chown 0:0 $(DESTDIR)/var/log/journal
2948 -chmod 755 $(DESTDIR)/var/log/journal
2949 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
2950 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
2952 libsystemd-journal-uninstall-hook:
2953 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
2955 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
2956 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
2958 # ------------------------------------------------------------------------------
2960 # Update catalog on installation. Do not bother if installing
2961 # in DESTDIR, since this is likely for packaging purposes.
2962 catalog-update-hook:
2963 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
2965 INSTALL_DATA_HOOKS += \
2968 catalog-remove-hook:
2969 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
2971 UNINSTALL_DATA_HOOKS += \
2980 test-journal-syslog \
2981 test-journal-match \
2982 test-journal-stream \
2983 test-journal-verify \
2984 test-journal-interleaving \
2988 pkginclude_HEADERS += \
2989 src/systemd/sd-journal.h \
2990 src/systemd/sd-messages.h
2992 lib_LTLIBRARIES += \
2993 libsystemd-journal.la
2995 noinst_LTLIBRARIES += \
2996 libsystemd-journal-internal.la
2998 rootlibexec_PROGRAMS += \
3001 rootbin_PROGRAMS += \
3007 dist_systemunit_DATA += \
3008 units/systemd-journald.socket
3010 nodist_systemunit_DATA += \
3011 units/systemd-journald.service \
3012 units/systemd-journal-flush.service
3014 dist_pkgsysconf_DATA += \
3015 src/journal/journald.conf
3017 pkgconfiglib_DATA += \
3018 src/journal/libsystemd-journal.pc
3020 dist_catalog_DATA = \
3021 catalog/systemd.catalog
3023 SOCKETS_TARGET_WANTS += \
3024 systemd-journald.socket
3025 SYSINIT_TARGET_WANTS += \
3026 systemd-journald.service \
3027 systemd-journal-flush.service
3030 src/journal/libsystemd-journal.pc.in \
3031 src/journal/libsystemd-journal.sym \
3032 units/systemd-journald.service.in \
3033 units/systemd-journal-flush.service.in \
3034 src/journal/journald-gperf.gperf
3037 src/journal/journald-gperf.c
3039 # ------------------------------------------------------------------------------
3041 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3043 rootlibexec_PROGRAMS += \
3044 systemd-journal-gatewayd
3046 systemd_journal_gatewayd_SOURCES = \
3047 src/journal/journal-gatewayd.c \
3048 src/journal/microhttpd-util.h \
3049 src/journal/microhttpd-util.c
3051 systemd_journal_gatewayd_LDADD = \
3052 libsystemd-shared.la \
3053 libsystemd-logs.la \
3054 libsystemd-journal-internal.la \
3055 libsystemd-id128-internal.la \
3056 libsystemd-daemon.la \
3060 systemd_journal_gatewayd_CFLAGS = \
3061 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3063 $(MICROHTTPD_CFLAGS)
3065 dist_systemunit_DATA += \
3066 units/systemd-journal-gatewayd.socket
3068 nodist_systemunit_DATA += \
3069 units/systemd-journal-gatewayd.service
3071 dist_gatewayddocumentroot_DATA = \
3072 src/journal/browse.html
3077 units/systemd-journal-gatewayd.service.in
3079 # ------------------------------------------------------------------------------
3081 systemd_coredump_SOURCES = \
3082 src/journal/coredump.c
3084 systemd_coredump_LDADD = \
3085 libsystemd-journal-internal.la \
3086 libsystemd-label.la \
3087 libsystemd-shared.la
3090 systemd_coredump_LDADD += \
3091 libsystemd-login-internal.la
3094 rootlibexec_PROGRAMS += \
3097 systemd_coredumpctl_SOURCES = \
3098 src/journal/coredumpctl.c
3100 systemd_coredumpctl_LDADD = \
3101 libsystemd-shared.la \
3102 libsystemd-journal.la
3107 dist_bashcompletion_DATA += \
3108 shell-completion/bash/systemd-coredumpctl
3110 dist_zshcompletion_DATA += \
3111 shell-completion/zsh/_systemd-coredumpctl
3114 sysctl.d/50-coredump.conf
3117 sysctl.d/50-coredump.conf
3121 sysctl.d/50-coredump.conf.in
3123 # ------------------------------------------------------------------------------
3125 systemd_binfmt_SOURCES = \
3128 systemd_binfmt_LDADD = \
3129 libsystemd-shared.la
3131 rootlibexec_PROGRAMS += \
3134 dist_systemunit_DATA += \
3135 units/proc-sys-fs-binfmt_misc.automount \
3136 units/proc-sys-fs-binfmt_misc.mount
3138 nodist_systemunit_DATA += \
3139 units/systemd-binfmt.service
3142 $(prefix)/lib/binfmt.d \
3143 $(sysconfdir)/binfmt.d
3145 SYSINIT_TARGET_WANTS += \
3146 systemd-binfmt.service \
3147 proc-sys-fs-binfmt_misc.automount
3152 units/systemd-binfmt.service.in
3154 # ------------------------------------------------------------------------------
3156 systemd_vconsole_setup_SOURCES = \
3157 src/vconsole/vconsole-setup.c
3159 systemd_vconsole_setup_LDADD = \
3160 libsystemd-shared.la
3162 rootlibexec_PROGRAMS += \
3163 systemd-vconsole-setup
3165 nodist_systemunit_DATA += \
3166 units/systemd-vconsole-setup.service
3168 SYSINIT_TARGET_WANTS += \
3169 systemd-vconsole-setup.service
3173 units/systemd-vconsole-setup.service.in
3175 # ------------------------------------------------------------------------------
3177 systemd_readahead_SOURCES = \
3178 src/readahead/readahead.c \
3179 src/readahead/readahead-collect.c \
3180 src/readahead/readahead-replay.c \
3181 src/readahead/readahead-analyze.c \
3182 src/readahead/readahead-common.c \
3183 src/readahead/readahead-common.h
3185 systemd_readahead_LDADD = \
3186 libsystemd-shared.la \
3187 libsystemd-daemon.la \
3191 src/readahead/sd-readahead.c \
3192 src/systemd/sd-readahead.h
3194 rootlibexec_PROGRAMS += \
3197 dist_systemunit_DATA += \
3198 units/systemd-readahead-drop.service \
3199 units/systemd-readahead-done.timer
3201 nodist_systemunit_DATA += \
3202 units/systemd-readahead-collect.service \
3203 units/systemd-readahead-replay.service \
3204 units/systemd-readahead-done.service
3209 units/systemd-readahead-collect.service.in \
3210 units/systemd-readahead-replay.service.in \
3211 units/systemd-readahead-done.service.in
3213 # ------------------------------------------------------------------------------
3215 systemd_bootchart_SOURCES = \
3216 src/bootchart/bootchart.c \
3217 src/bootchart/bootchart.h \
3218 src/bootchart/store.c \
3219 src/bootchart/store.h \
3220 src/bootchart/svg.c \
3223 systemd_bootchart_LDADD = \
3224 libsystemd-shared.la \
3225 libsystemd-journal.la
3227 rootlibexec_PROGRAMS += \
3230 dist_pkgsysconf_DATA += \
3231 src/bootchart/bootchart.conf
3234 # ------------------------------------------------------------------------------
3235 if ENABLE_QUOTACHECK
3236 rootlibexec_PROGRAMS += \
3239 nodist_systemunit_DATA += \
3240 units/systemd-quotacheck.service
3242 systemd_quotacheck_SOURCES = \
3243 src/quotacheck/quotacheck.c
3245 systemd_quotacheck_LDADD = \
3246 libsystemd-shared.la
3250 units/systemd-quotacheck.service.in
3252 nodist_systemunit_DATA += \
3253 units/quotaon.service
3255 # ------------------------------------------------------------------------------
3256 if ENABLE_RANDOMSEED
3257 rootlibexec_PROGRAMS += \
3260 nodist_systemunit_DATA += \
3261 units/systemd-random-seed.service
3263 systemd_random_seed_SOURCES = \
3264 src/random-seed/random-seed.c
3266 systemd_random_seed_LDADD = \
3267 libsystemd-label.la \
3268 libsystemd-shared.la
3270 SYSINIT_TARGET_WANTS += \
3271 systemd-random-seed.service
3276 units/systemd-random-seed.service.in
3278 # ------------------------------------------------------------------------------
3279 if HAVE_LIBCRYPTSETUP
3280 rootlibexec_PROGRAMS += \
3283 systemgenerator_PROGRAMS += \
3284 systemd-cryptsetup-generator
3286 dist_systemunit_DATA += \
3287 units/cryptsetup.target
3289 systemd_cryptsetup_SOURCES = \
3290 src/cryptsetup/cryptsetup.c
3292 systemd_cryptsetup_CFLAGS = \
3294 $(LIBCRYPTSETUP_CFLAGS)
3296 systemd_cryptsetup_LDADD = \
3297 libsystemd-label.la \
3298 libsystemd-shared.la \
3300 $(LIBCRYPTSETUP_LIBS)
3302 systemd_cryptsetup_generator_SOURCES = \
3303 src/cryptsetup/cryptsetup-generator.c
3305 systemd_cryptsetup_generator_LDADD = \
3306 libsystemd-label.la \
3307 libsystemd-shared.la
3309 SYSINIT_TARGET_WANTS += \
3314 # ------------------------------------------------------------------------------
3316 systemd_hostnamed_SOURCES = \
3317 src/hostname/hostnamed.c
3319 systemd_hostnamed_CFLAGS = \
3323 systemd_hostnamed_LDADD = \
3324 libsystemd-label.la \
3325 libsystemd-shared.la \
3326 libsystemd-daemon.la \
3329 rootlibexec_PROGRAMS += \
3332 nodist_systemunit_DATA += \
3333 units/systemd-hostnamed.service
3335 dist_dbuspolicy_DATA += \
3336 src/hostname/org.freedesktop.hostname1.conf
3338 dist_dbussystemservice_DATA += \
3339 src/hostname/org.freedesktop.hostname1.service
3341 polkitpolicy_files += \
3342 src/hostname/org.freedesktop.hostname1.policy
3344 dbusinterface_DATA += \
3345 org.freedesktop.hostname1.xml
3347 org.freedesktop.hostname1.xml: systemd-hostnamed
3348 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
3349 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3350 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3352 SYSTEM_UNIT_ALIASES += \
3353 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3355 hostnamectl_SOURCES = \
3356 src/hostname/hostnamectl.c
3358 hostnamectl_CFLAGS = \
3362 hostnamectl_LDADD = \
3363 libsystemd-shared.la \
3364 libsystemd-dbus.la \
3365 libsystemd-id128-internal.la
3370 dist_bashcompletion_DATA += \
3371 shell-completion/bash/hostnamectl
3373 dist_zshcompletion_DATA += \
3374 shell-completion/zsh/_hostnamectl
3378 polkitpolicy_in_files += \
3379 src/hostname/org.freedesktop.hostname1.policy.in
3382 units/systemd-hostnamed.service.in
3384 # ------------------------------------------------------------------------------
3386 systemd_localed_SOURCES = \
3387 src/locale/localed.c
3389 systemd_localed_CFLAGS = \
3393 systemd_localed_LDADD = \
3394 libsystemd-label.la \
3395 libsystemd-shared.la \
3396 libsystemd-daemon.la \
3399 nodist_systemunit_DATA += \
3400 units/systemd-localed.service
3402 rootlibexec_PROGRAMS += \
3405 dist_dbuspolicy_DATA += \
3406 src/locale/org.freedesktop.locale1.conf
3408 dist_dbussystemservice_DATA += \
3409 src/locale/org.freedesktop.locale1.service
3411 polkitpolicy_files += \
3412 src/locale/org.freedesktop.locale1.policy
3414 dbusinterface_DATA += \
3415 org.freedesktop.locale1.xml
3417 org.freedesktop.locale1.xml: systemd-localed
3418 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
3419 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3420 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3422 SYSTEM_UNIT_ALIASES += \
3423 systemd-localed.service dbus-org.freedesktop.locale1.service
3425 dist_pkgdata_DATA += \
3426 src/locale/kbd-model-map
3428 dist_noinst_SCRIPT = \
3429 src/locale/generate-kbd-model-map
3431 update-kbd-model-map: src/locale/generate-kbd-model-map
3432 $PYTHON $< > src/locale/kbd-model-map
3434 localectl_SOURCES = \
3435 src/locale/localectl.c
3437 localectl_CFLAGS = \
3442 libsystemd-shared.la \
3443 libsystemd-dbus.la \
3444 libsystemd-id128-internal.la
3449 dist_bashcompletion_DATA += \
3450 shell-completion/bash/localectl
3452 dist_zshcompletion_DATA += \
3453 shell-completion/zsh/_localectl
3457 polkitpolicy_in_files += \
3458 src/locale/org.freedesktop.locale1.policy.in
3461 units/systemd-localed.service.in
3463 # ------------------------------------------------------------------------------
3465 systemd_timedated_SOURCES = \
3466 src/timedate/timedated.c
3468 systemd_timedated_CFLAGS = \
3472 systemd_timedated_LDADD = \
3473 libsystemd-label.la \
3474 libsystemd-shared.la \
3475 libsystemd-daemon.la \
3478 rootlibexec_PROGRAMS += \
3481 dist_dbussystemservice_DATA += \
3482 src/timedate/org.freedesktop.timedate1.service
3484 dist_dbuspolicy_DATA += \
3485 src/timedate/org.freedesktop.timedate1.conf
3487 nodist_systemunit_DATA += \
3488 units/systemd-timedated.service
3490 polkitpolicy_files += \
3491 src/timedate/org.freedesktop.timedate1.policy
3493 org.freedesktop.timedate1.xml: systemd-timedated
3494 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
3495 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3496 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3498 dbusinterface_DATA += \
3499 org.freedesktop.timedate1.xml
3502 $(prefix)/lib/systemd/ntp-units.d \
3503 $(sysconfdir)/systemd/ntp-units.d
3505 SYSTEM_UNIT_ALIASES += \
3506 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3508 timedatectl_SOURCES = \
3509 src/timedate/timedatectl.c
3511 timedatectl_CFLAGS = \
3515 timedatectl_LDADD = \
3516 libsystemd-shared.la \
3522 dist_bashcompletion_DATA += \
3523 shell-completion/bash/timedatectl
3525 dist_zshcompletion_DATA += \
3526 shell-completion/zsh/_timedatectl
3529 polkitpolicy_in_files += \
3530 src/timedate/org.freedesktop.timedate1.policy.in
3533 units/systemd-timedated.service.in
3535 # ------------------------------------------------------------------------------
3537 libnss_myhostname_la_SOURCES = \
3538 src/nss-myhostname/nss-myhostname.c \
3539 src/nss-myhostname/ifconf.h \
3540 src/nss-myhostname/netlink.c
3542 libnss_myhostname_la_CFLAGS = \
3545 libnss_myhostname_la_LDFLAGS = \
3553 lib_LTLIBRARIES += \
3554 libnss_myhostname.la
3557 # ------------------------------------------------------------------------------
3559 systemd_machined_SOURCES = \
3560 src/machine/machined.c \
3561 src/machine/machined.h
3563 systemd_machined_CFLAGS = \
3564 $(libsystemd_machine_core_la_CFLAGS)
3566 systemd_machined_LDADD = \
3567 libsystemd-machine-core.la \
3568 $(libsystemd_machine_core_la_LIBADD)
3570 rootlibexec_PROGRAMS += \
3573 libsystemd_machine_core_la_SOURCES = \
3574 src/machine/machined-dbus.c \
3575 src/machine/machine.c \
3576 src/machine/machine.h \
3577 src/machine/machine-dbus.c
3579 libsystemd_machine_core_la_CFLAGS = \
3583 libsystemd_machine_core_la_LIBADD = \
3584 libsystemd-label.la \
3585 libsystemd-audit.la \
3586 libsystemd-shared.la \
3587 libsystemd-daemon.la \
3588 libsystemd-dbus.la \
3589 libsystemd-id128-internal.la \
3592 noinst_LTLIBRARIES += \
3593 libsystemd-machine-core.la
3595 machinectl_SOURCES = \
3596 src/machine/machinectl.c
3598 machinectl_CFLAGS = \
3602 machinectl_LDADD = \
3603 libsystemd-shared.la \
3604 libsystemd-dbus.la \
3607 rootbin_PROGRAMS += \
3610 test_machine_tables_SOURCES = \
3611 src/machine/test-machine-tables.c
3613 test_machine_tables_CFLAGS = \
3617 test_machine_tables_LDADD = \
3618 libsystemd-machine-core.la
3623 nodist_systemunit_DATA += \
3624 units/systemd-machined.service
3626 dist_systemunit_DATA += \
3629 dist_dbussystemservice_DATA += \
3630 src/machine/org.freedesktop.machine1.service
3632 dist_dbuspolicy_DATA += \
3633 src/machine/org.freedesktop.machine1.conf
3635 SYSTEM_UNIT_ALIASES += \
3636 systemd-machined.service dbus-org.freedesktop.machine1.service
3639 units/systemd-machined.service.in
3643 # ------------------------------------------------------------------------------
3645 systemd_logind_SOURCES = \
3646 src/login/logind.c \
3649 nodist_systemd_logind_SOURCES = \
3650 src/login/logind-gperf.c
3652 systemd_logind_CFLAGS = \
3653 $(libsystemd_logind_core_la_CFLAGS)
3655 systemd_logind_LDADD = \
3656 libsystemd-logind-core.la \
3657 $(libsystemd_logind_core_la_LIBADD)
3660 systemd_logind_SOURCES += \
3661 src/login/logind-acl.c
3663 systemd_logind_LDADD += \
3667 libsystemd_logind_core_la_SOURCES = \
3668 src/login/logind-dbus.c \
3669 src/login/logind-device.c \
3670 src/login/logind-device.h \
3671 src/login/logind-button.c \
3672 src/login/logind-button.h \
3673 src/login/logind-action.c \
3674 src/login/logind-action.h \
3675 src/login/logind-seat.c \
3676 src/login/logind-seat.h \
3677 src/login/logind-session.c \
3678 src/login/logind-session.h \
3679 src/login/logind-user.c \
3680 src/login/logind-user.h \
3681 src/login/logind-inhibit.c \
3682 src/login/logind-inhibit.h \
3683 src/login/logind-session-dbus.c \
3684 src/login/logind-seat-dbus.c \
3685 src/login/logind-user-dbus.c \
3686 src/login/logind-acl.h
3688 libsystemd_logind_core_la_CFLAGS = \
3692 libsystemd_logind_core_la_LIBADD = \
3693 libsystemd-label.la \
3694 libsystemd-audit.la \
3695 libsystemd-shared.la \
3696 libsystemd-daemon.la \
3697 libsystemd-dbus.la \
3698 libsystemd-id128-internal.la \
3701 noinst_LTLIBRARIES += \
3702 libsystemd-logind-core.la
3704 systemd_user_sessions_SOURCES = \
3705 src/login/user-sessions.c
3707 systemd_user_sessions_LDADD = \
3708 libsystemd-shared.la
3710 rootlibexec_PROGRAMS += \
3712 systemd-user-sessions
3714 loginctl_SOURCES = \
3715 src/login/loginctl.c \
3716 src/login/sysfs-show.c
3723 libsystemd-shared.la \
3724 libsystemd-dbus.la \
3727 rootbin_PROGRAMS += \
3730 dist_bashcompletion_DATA += \
3731 shell-completion/bash/loginctl
3733 dist_zshcompletion_DATA += \
3734 shell-completion/zsh/_loginctl \
3735 shell-completion/zsh/_systemd-inhibit
3737 systemd_inhibit_SOURCES = \
3740 systemd_inhibit_CFLAGS = \
3744 systemd_inhibit_LDADD = \
3745 libsystemd-shared.la \
3748 rootbin_PROGRAMS += \
3751 test_login_SOURCES = \
3752 src/login/test-login.c
3754 test_login_LDADD = \
3755 libsystemd-login-internal.la \
3756 libsystemd-shared.la
3758 test_inhibit_SOURCES = \
3759 src/login/test-inhibit.c
3761 test_inhibit_LDADD = \
3762 libsystemd-shared.la \
3765 test_inhibit_CFLAGS = \
3769 test_login_tables_SOURCES = \
3770 src/login/test-login-tables.c
3772 test_login_tables_CFLAGS = \
3776 test_login_tables_LDADD = \
3777 libsystemd-logind-core.la
3786 libsystemd_login_la_SOURCES = \
3787 src/login/sd-login.c
3789 libsystemd_login_la_CFLAGS = \
3793 libsystemd_login_la_LDFLAGS = \
3795 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3796 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3798 libsystemd_login_la_LIBADD = \
3799 libsystemd-shared.la \
3800 libsystemd-daemon-internal.la
3802 libsystemd_login_internal_la_SOURCES = \
3803 $(libsystemd_login_la_SOURCES)
3806 pam_systemd_la_SOURCES = \
3807 src/login/pam-module.c
3809 pam_systemd_la_CFLAGS = \
3815 pam_systemd_la_LDFLAGS = \
3821 -export-symbols-regex '^pam_sm_.*'
3823 pam_systemd_la_LIBADD = \
3824 libsystemd-audit.la \
3825 libsystemd-dbus.la \
3826 libsystemd-shared.la \
3827 libsystemd-daemon-internal.la \
3830 pamlib_LTLIBRARIES = \
3834 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3835 libsystemd-login-install-hook:
3836 libname=libsystemd-login.so && $(move-to-rootlibdir)
3838 libsystemd-login-uninstall-hook:
3839 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3841 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3842 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
3844 nodist_systemunit_DATA += \
3845 units/systemd-logind.service \
3846 units/systemd-user-sessions.service
3848 dist_systemunit_DATA += \
3851 dist_dbussystemservice_DATA += \
3852 src/login/org.freedesktop.login1.service
3854 dist_dbuspolicy_DATA += \
3855 src/login/org.freedesktop.login1.conf
3857 dist_pkgsysconf_DATA += \
3858 src/login/logind.conf
3860 pkginclude_HEADERS += \
3861 src/systemd/sd-login.h
3863 lib_LTLIBRARIES += \
3866 noinst_LTLIBRARIES += \
3867 libsystemd-login-internal.la
3869 pkgconfiglib_DATA += \
3870 src/login/libsystemd-login.pc
3872 polkitpolicy_files += \
3873 src/login/org.freedesktop.login1.policy
3878 MULTI_USER_TARGET_WANTS += \
3879 systemd-logind.service \
3880 systemd-user-sessions.service
3882 SYSTEM_UNIT_ALIASES += \
3883 systemd-logind.service dbus-org.freedesktop.login1.service
3885 systemd_multi_seat_x_SOURCES = \
3886 src/login/multi-seat-x.c
3888 systemd_multi_seat_x_LDADD = \
3889 libsystemd-label.la \
3890 libsystemd-shared.la
3892 rootlibexec_PROGRAMS += \
3893 systemd-multi-seat-x
3895 dist_udevrules_DATA += \
3896 src/login/70-uaccess.rules \
3897 src/login/70-power-switch.rules
3899 nodist_udevrules_DATA += \
3900 src/login/71-seat.rules \
3901 src/login/73-seat-late.rules
3904 src/login/logind-gperf.c \
3905 src/login/71-seat.rules \
3906 src/login/73-seat-late.rules
3909 polkitpolicy_in_files += \
3910 src/login/org.freedesktop.login1.policy.in
3913 src/login/logind-gperf.gperf \
3914 src/login/libsystemd-login.pc.in \
3915 src/login/libsystemd-login.sym \
3916 src/login/71-seat.rules.in \
3917 src/login/73-seat-late.rules.in \
3918 units/systemd-logind.service.in \
3919 units/systemd-user-sessions.service.in
3921 # ------------------------------------------------------------------------------
3922 if HAVE_PYTHON_DEVEL
3923 pkgpyexec_LTLIBRARIES = \
3930 _journal_la_SOURCES = \
3931 src/python-systemd/_journal.c
3933 _journal_la_CFLAGS = \
3935 -fvisibility=default \
3936 $(PYTHON_DEVEL_CFLAGS)
3938 _journal_la_LDFLAGS = \
3944 _journal_la_LIBADD = \
3945 $(PYTHON_DEVEL_LIBS) \
3946 libsystemd-journal.la
3948 id128_la_SOURCES = \
3949 src/python-systemd/id128.c \
3950 src/python-systemd/id128-constants.h \
3951 src/python-systemd/pyutil.c \
3952 src/python-systemd/pyutil.h
3956 -fvisibility=default \
3957 $(PYTHON_DEVEL_CFLAGS) \
3958 -I$(top_builddir)/src/python-systemd
3960 id128_la_LDFLAGS = \
3967 $(PYTHON_DEVEL_LIBS) \
3970 _daemon_la_SOURCES = \
3971 src/python-systemd/_daemon.c \
3972 src/python-systemd/pyutil.c \
3973 src/python-systemd/pyutil.h
3975 _daemon_la_CFLAGS = \
3977 -fvisibility=default \
3978 $(PYTHON_DEVEL_CFLAGS) \
3979 -I$(top_builddir)/src/python-systemd
3981 _daemon_la_LDFLAGS = \
3987 _daemon_la_LIBADD = \
3988 $(PYTHON_DEVEL_LIBS) \
3989 libsystemd-daemon.la
3991 _reader_la_SOURCES = \
3992 src/python-systemd/_reader.c \
3993 src/python-systemd/pyutil.c \
3994 src/python-systemd/pyutil.h
3996 _reader_la_CFLAGS = \
3998 -fvisibility=default \
3999 $(PYTHON_DEVEL_CFLAGS)
4001 _reader_la_LDFLAGS = \
4007 _reader_la_LIBADD = \
4008 $(PYTHON_DEVEL_LIBS) \
4009 libsystemd-journal.la \
4010 libsystemd-id128.la \
4011 libsystemd-shared.la \
4012 libsystemd-daemon-internal.la
4014 login_la_SOURCES = \
4015 src/python-systemd/login.c \
4016 src/python-systemd/pyutil.c \
4017 src/python-systemd/pyutil.h
4021 -fvisibility=default \
4022 $(PYTHON_DEVEL_CFLAGS)
4024 login_la_LDFLAGS = \
4031 $(PYTHON_DEVEL_LIBS) \
4032 libsystemd-journal.la \
4033 libsystemd-login.la \
4034 libsystemd-shared.la \
4035 libsystemd-daemon-internal.la
4037 dist_pkgpyexec_PYTHON = \
4038 src/python-systemd/journal.py \
4039 src/python-systemd/daemon.py \
4040 src/python-systemd/__init__.py
4042 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4043 $(AM_V_at)$(MKDIR_P) $(dir $@)
4044 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4047 src/python-systemd/id128-constants.h
4049 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4051 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4052 $(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/
4053 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4056 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4057 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4060 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4061 $(MAKE) DESTDIR="$$dir" install && \
4062 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4067 CLEAN_LOCAL_HOOKS += clean-sphinx
4070 -rm -rf docs/html/python-systemd/
4072 # ------------------------------------------------------------------------------
4074 '|rootlibexecdir=$(rootlibexecdir)|' \
4075 '|rootbindir=$(rootbindir)|' \
4076 '|bindir=$(bindir)|' \
4077 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4078 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4079 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4080 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4081 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4082 '|pkgdatadir=$(pkgdatadir)|' \
4083 '|systemunitdir=$(systemunitdir)|' \
4084 '|userunitdir=$(userunitdir)|' \
4085 '|systempresetdir=$(systempresetdir)|' \
4086 '|userpresetdir=$(userpresetdir)|' \
4087 '|udevhwdbdir=$(udevhwdbdir)|' \
4088 '|udevrulesdir=$(udevrulesdir)|' \
4089 '|catalogdir=$(catalogdir)|' \
4090 '|tmpfilesdir=$(tmpfilesdir)|' \
4091 '|sysctldir=$(sysctldir)|' \
4092 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4093 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4094 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4095 '|RANDOM_SEED=$(localstatedir)/lib/random-seed|' \
4096 '|prefix=$(prefix)|' \
4097 '|exec_prefix=$(exec_prefix)|' \
4098 '|libdir=$(libdir)|' \
4099 '|includedir=$(includedir)|' \
4100 '|VERSION=$(VERSION)|' \
4101 '|rootprefix=$(rootprefix)|' \
4102 '|udevlibexecdir=$(udevlibexecdir)|' \
4103 '|SUSHELL=$(SUSHELL)|' \
4104 '|DEBUGTTY=$(DEBUGTTY)|' \
4107 '|MKDIR_P=$(MKDIR_P)|' \
4108 '|QUOTAON=$(QUOTAON)|' \
4109 '|QUOTACHECK=$(QUOTACHECK)|' \
4110 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4111 '|VARLOGDIR=$(varlogdir)|' \
4112 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4113 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4114 '|PYTHON=$(PYTHON)|' \
4115 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4118 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4119 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4122 units/%: units/%.in Makefile
4125 man/%: man/%.in Makefile
4128 sysctl.d/%: sysctl.d/%.in Makefile
4131 %.pc: %.pc.in Makefile
4134 src/core/macros.%: src/core/macros.%.in Makefile
4137 src/%.policy.in: src/%.policy.in.in Makefile
4140 %.rules: %.rules.in Makefile
4143 %.sh: %.sh.in Makefile
4145 $(AM_V_GEN)chmod +x $@
4147 src/%.c: src/%.gperf
4148 $(AM_V_at)$(MKDIR_P) $(dir $@)
4149 $(AM_V_GPERF)$(GPERF) < $< > $@
4152 $(AM_V_at)$(MKDIR_P) $(dir $@)
4153 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4155 units/%: units/%.m4 Makefile
4156 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4157 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4159 units/user/%: units/%.m4 Makefile
4160 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4161 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4164 nodist_polkitpolicy_DATA = \
4165 $(polkitpolicy_files) \
4166 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4170 $(polkitpolicy_in_files) \
4171 $(polkitpolicy_in_in_files)
4174 $(nodist_systemunit_DATA) \
4175 $(nodist_userunit_DATA) \
4176 $(pkgconfigdata_DATA) \
4177 $(pkgconfiglib_DATA) \
4178 $(nodist_polkitpolicy_DATA)
4180 # ------------------------------------------------------------------------------
4182 man/custom-entities.ent: Makefile
4183 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4184 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4185 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4189 man/custom-entities.ent
4193 --stringparam man.output.quietly 1 \
4194 --stringparam funcsynopsis.style ansi \
4195 --stringparam man.authors.section.enabled 0 \
4196 --stringparam man.copyright.section.enabled 0 \
4197 --stringparam systemd.version $(VERSION) \
4198 --path '$(builddir)/man:$(srcdir)/man'
4200 XSLTPROC_PROCESS_MAN = \
4201 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4203 XSLTPROC_PROCESS_HTML = \
4204 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4206 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4207 $(XSLTPROC_PROCESS_MAN)
4209 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4210 $(XSLTPROC_PROCESS_MAN)
4212 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4213 $(XSLTPROC_PROCESS_MAN)
4215 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4216 $(XSLTPROC_PROCESS_MAN)
4218 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4219 $(XSLTPROC_PROCESS_MAN)
4221 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4222 $(XSLTPROC_PROCESS_HTML)
4225 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4231 man/custom-html.xsl \
4234 # ------------------------------------------------------------------------------
4235 DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
4238 $(dbusinterface_DATA)
4242 docs/sysvinit/README
4247 docs/sysvinit/README: docs/sysvinit/README.in
4250 docs/var-log/README: docs/var-log/README.in
4254 docs/sysvinit/README \
4259 docs/sysvinit/README.in \
4260 docs/var-log/README.in
4262 SOCKETS_TARGET_WANTS += \
4263 systemd-initctl.socket \
4264 systemd-shutdownd.socket
4267 RUNLEVEL1_TARGET_WANTS += \
4268 systemd-update-utmp-runlevel.service
4269 RUNLEVEL2_TARGET_WANTS += \
4270 systemd-update-utmp-runlevel.service
4271 RUNLEVEL3_TARGET_WANTS += \
4272 systemd-update-utmp-runlevel.service
4273 RUNLEVEL4_TARGET_WANTS += \
4274 systemd-update-utmp-runlevel.service
4275 RUNLEVEL5_TARGET_WANTS += \
4276 systemd-update-utmp-runlevel.service
4278 SYSINIT_TARGET_WANTS += \
4279 systemd-update-utmp.service
4280 LOCAL_FS_TARGET_WANTS += \
4281 systemd-remount-fs.service \
4282 systemd-fsck-root.service \
4284 MULTI_USER_TARGET_WANTS += \
4286 systemd-ask-password-wall.path
4287 SYSINIT_TARGET_WANTS += \
4288 dev-hugepages.mount \
4290 sys-kernel-config.mount \
4291 sys-kernel-debug.mount \
4292 sys-fs-fuse-connections.mount \
4293 systemd-sysctl.service \
4294 systemd-ask-password-console.path
4297 SYSTEM_UNIT_ALIASES += \
4298 poweroff.target runlevel0.target \
4299 rescue.target runlevel1.target \
4300 multi-user.target runlevel2.target \
4301 multi-user.target runlevel3.target \
4302 multi-user.target runlevel4.target \
4303 graphical.target runlevel5.target \
4304 reboot.target runlevel6.target
4307 SYSTEM_UNIT_ALIASES += \
4308 graphical.target default.target \
4309 reboot.target ctrl-alt-del.target \
4310 getty@.service autovt@.service
4312 USER_UNIT_ALIASES += \
4313 $(systemunitdir)/shutdown.target shutdown.target \
4314 $(systemunitdir)/sockets.target sockets.target \
4315 $(systemunitdir)/timers.target timers.target \
4316 $(systemunitdir)/paths.target paths.target \
4317 $(systemunitdir)/bluetooth.target bluetooth.target \
4318 $(systemunitdir)/printer.target printer.target \
4319 $(systemunitdir)/sound.target sound.target \
4320 $(systemunitdir)/smartcard.target smartcard.target
4322 GENERAL_ALIASES += \
4323 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4324 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4325 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4326 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4330 $(systemunitdir)/runlevel1.target.wants \
4331 $(systemunitdir)/runlevel2.target.wants \
4332 $(systemunitdir)/runlevel3.target.wants \
4333 $(systemunitdir)/runlevel4.target.wants \
4334 $(systemunitdir)/runlevel5.target.wants
4338 $(prefix)/lib/modules-load.d \
4339 $(sysconfdir)/modules-load.d \
4340 $(prefix)/lib/sysctl.d \
4341 $(sysconfdir)/sysctl.d \
4342 $(prefix)/lib/kernel/install.d \
4343 $(sysconfdir)/kernel/install.d \
4344 $(systemshutdowndir) \
4346 $(systemgeneratordir) \
4347 $(usergeneratordir) \
4350 $(pkgsysconfdir)/system \
4351 $(pkgsysconfdir)/system/multi-user.target.wants \
4352 $(pkgsysconfdir)/system/getty.target.wants \
4353 $(pkgsysconfdir)/user \
4354 $(dbussessionservicedir) \
4355 $(sysconfdir)/xdg/systemd
4357 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4359 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4361 install-data-hook: $(INSTALL_DATA_HOOKS)
4363 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4365 clean-local: $(CLEAN_LOCAL_HOOKS)
4366 rm -rf $(abs_srcdir)/install-tree
4367 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4368 $(abs_srcdir)/hwdb/iab.txt
4370 DISTCHECK_CONFIGURE_FLAGS = \
4371 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4372 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4373 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4374 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
4375 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4376 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4377 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4378 --with-rootprefix=$$dc_install_base \
4382 DISTCHECK_CONFIGURE_FLAGS += \
4383 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4384 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4386 DISTCHECK_CONFIGURE_FLAGS += \
4387 --with-sysvinit-path= \
4388 --with-sysvrcnd-path=
4392 DISTCHECK_CONFIGURE_FLAGS += \
4397 ( cd $(top_srcdir)/hwdb && \
4398 wget -N http://www.linux-usb.org/usb.ids \
4399 http://pci-ids.ucw.cz/v2.2/pci.ids \
4400 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4401 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4405 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4406 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4408 upload: all distcheck
4409 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4410 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4411 scp man/*.html tango:public/systemd-man/
4413 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4414 doc-sync: all destdir-sphinx
4415 gtkdoc-rebase --html-dir=docs/libudev/html --online
4416 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4417 gtkdoc-rebase --html-dir=docs/gudev/html --online
4418 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4419 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4420 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4423 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4426 rm -rf $(abs_srcdir)/install-tree
4427 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4428 tree $(abs_srcdir)/install-tree