1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
46 LIBSYSTEMD_LOGIN_CURRENT=9
47 LIBSYSTEMD_LOGIN_REVISION=1
48 LIBSYSTEMD_LOGIN_AGE=9
50 LIBSYSTEMD_DAEMON_CURRENT=0
51 LIBSYSTEMD_DAEMON_REVISION=10
52 LIBSYSTEMD_DAEMON_AGE=0
54 LIBSYSTEMD_ID128_CURRENT=0
55 LIBSYSTEMD_ID128_REVISION=26
56 LIBSYSTEMD_ID128_AGE=0
58 LIBSYSTEMD_JOURNAL_CURRENT=11
59 LIBSYSTEMD_JOURNAL_REVISION=3
60 LIBSYSTEMD_JOURNAL_AGE=11
62 # Dirs of external packages
63 dbuspolicydir=@dbuspolicydir@
64 dbussessionservicedir=@dbussessionservicedir@
65 dbussystemservicedir=@dbussystemservicedir@
67 pamconfdir=@pamconfdir@
68 pkgconfigdatadir=$(datadir)/pkgconfig
69 pkgconfiglibdir=$(libdir)/pkgconfig
70 polkitpolicydir=$(datadir)/polkit-1/actions
71 bashcompletiondir=@bashcompletiondir@
72 zshcompletiondir=@zshcompletiondir@
73 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
74 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
75 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
76 varlogdir=$(localstatedir)/log
77 systemdstatedir=$(localstatedir)/lib/systemd
78 catalogstatedir=$(systemdstatedir)/catalog
80 # Our own, non-special dirs
81 pkgsysconfdir=$(sysconfdir)/systemd
82 userunitdir=$(prefix)/lib/systemd/user
83 userpresetdir=$(prefix)/lib/systemd/user-preset
84 tmpfilesdir=$(prefix)/lib/tmpfiles.d
85 sysctldir=$(prefix)/lib/sysctl.d
86 pkgincludedir=$(includedir)/systemd
87 systemgeneratordir=$(rootlibexecdir)/system-generators
88 usergeneratordir=$(prefix)/lib/systemd/user-generators
89 systemshutdowndir=$(rootlibexecdir)/system-shutdown
90 systemsleepdir=$(rootlibexecdir)/system-sleep
91 systemunitdir=$(rootprefix)/lib/systemd/system
92 systempresetdir=$(rootprefix)/lib/systemd/system-preset
93 udevlibexecdir=$(rootprefix)/lib/udev
94 udevhomedir=$(udevlibexecdir)
95 udevrulesdir=$(udevlibexecdir)/rules.d
96 udevhwdbdir=$(udevlibexecdir)/hwdb.d
97 catalogdir=$(prefix)/lib/systemd/catalog
98 kernelinstalldir = $(prefix)/lib/kernel/install.d
100 # And these are the special ones for /
101 rootprefix=@rootprefix@
102 rootbindir=$(rootprefix)/bin
103 rootlibexecdir=$(rootprefix)/lib/systemd
105 CLEANFILES = $(BUILT_SOURCES)
110 UNINSTALL_EXEC_HOOKS =
112 UNINSTALL_DATA_HOOKS =
113 DISTCLEAN_LOCAL_HOOKS =
121 polkitpolicy_in_in_files =
122 polkitpolicy_in_files =
124 dist_udevrules_DATA =
125 nodist_udevrules_DATA =
126 dist_pkgsysconf_DATA =
128 dist_dbuspolicy_DATA =
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/systemd/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 \
322 systemd-socket-proxyd
324 systemgenerator_PROGRAMS = \
325 systemd-getty-generator \
326 systemd-fstab-generator \
327 systemd-system-update-generator
329 dist_bashcompletion_DATA = \
330 shell-completion/bash/journalctl \
331 shell-completion/bash/systemctl \
332 shell-completion/bash/systemd-analyze \
333 shell-completion/bash/systemd-run \
334 shell-completion/bash/udevadm \
335 shell-completion/bash/kernel-install
337 dist_zshcompletion_DATA = \
338 shell-completion/zsh/_systemctl \
339 shell-completion/zsh/_journalctl \
340 shell-completion/zsh/_udevadm \
341 shell-completion/zsh/_kernel-install \
342 shell-completion/zsh/_systemd-nspawn \
343 shell-completion/zsh/_systemd-analyze \
344 shell-completion/zsh/_sd_hosts_or_user_at_host \
345 shell-completion/zsh/_systemd-delta \
346 shell-completion/zsh/_systemd
349 sysctl.d/50-default.conf
351 dist_systemunit_DATA = \
352 units/graphical.target \
353 units/multi-user.target \
354 units/emergency.service \
355 units/emergency.target \
356 units/sysinit.target \
361 units/local-fs.target \
362 units/local-fs-pre.target \
363 units/initrd.target \
364 units/initrd-fs.target \
365 units/initrd-root-fs.target \
366 units/remote-fs.target \
367 units/remote-fs-pre.target \
368 units/network.target \
369 units/network-online.target \
370 units/nss-lookup.target \
371 units/nss-user-lookup.target \
372 units/hibernate.target \
373 units/hybrid-sleep.target \
374 units/poweroff.target \
375 units/reboot.target \
376 units/rescue.target \
377 units/rpcbind.target \
378 units/time-sync.target \
379 units/shutdown.target \
381 units/umount.target \
382 units/sigpwr.target \
384 units/sockets.target \
385 units/timers.target \
387 units/suspend.target \
389 units/slices.target \
392 units/systemd-initctl.socket \
393 units/systemd-shutdownd.socket \
394 units/syslog.socket \
395 units/dev-hugepages.mount \
396 units/dev-mqueue.mount \
397 units/sys-kernel-config.mount \
398 units/sys-kernel-debug.mount \
399 units/sys-fs-fuse-connections.mount \
401 units/printer.target \
403 units/bluetooth.target \
404 units/smartcard.target \
405 units/systemd-ask-password-wall.path \
406 units/systemd-ask-password-console.path \
407 units/systemd-udevd-control.socket \
408 units/systemd-udevd-kernel.socket \
409 units/system-update.target \
410 units/initrd-switch-root.target
412 nodist_systemunit_DATA = \
413 units/getty@.service \
414 units/serial-getty@.service \
415 units/console-shell.service \
416 units/console-getty.service \
417 units/systemd-initctl.service \
418 units/systemd-shutdownd.service \
419 units/systemd-remount-fs.service \
420 units/systemd-update-utmp.service \
421 units/systemd-update-utmp-runlevel.service \
422 units/systemd-ask-password-wall.service \
423 units/systemd-ask-password-console.service \
424 units/systemd-sysctl.service \
425 units/emergency.service \
426 units/rescue.service \
427 units/user@.service \
428 units/systemd-hibernate.service \
429 units/systemd-hybrid-sleep.service \
430 units/systemd-suspend.service \
431 units/systemd-halt.service \
432 units/systemd-poweroff.service \
433 units/systemd-reboot.service \
434 units/systemd-kexec.service \
435 units/systemd-fsck@.service \
436 units/systemd-fsck-root.service \
437 units/systemd-udevd.service \
438 units/systemd-udev-trigger.service \
439 units/systemd-udev-settle.service \
440 units/debug-shell.service \
441 units/initrd-parse-etc.service \
442 units/initrd-cleanup.service \
443 units/initrd-udevadm-cleanup-db.service \
444 units/initrd-switch-root.service \
445 units/systemd-nspawn@.service
447 dist_userunit_DATA = \
448 units/user/default.target \
449 units/user/exit.target
451 nodist_userunit_DATA = \
452 units/user/systemd-exit.service
455 units/getty@.service.m4 \
456 units/serial-getty@.service.m4 \
457 units/console-shell.service.m4.in \
458 units/console-getty.service.m4.in \
459 units/rescue.service.m4.in \
460 units/systemd-initctl.service.in \
461 units/systemd-shutdownd.service.in \
462 units/systemd-remount-fs.service.in \
463 units/systemd-update-utmp.service.in \
464 units/systemd-update-utmp-runlevel.service.in \
465 units/systemd-ask-password-wall.service.in \
466 units/systemd-ask-password-console.service.in \
467 units/systemd-sysctl.service.in \
468 units/emergency.service.in \
469 units/systemd-halt.service.in \
470 units/systemd-poweroff.service.in \
471 units/systemd-reboot.service.in \
472 units/systemd-kexec.service.in \
473 units/user/systemd-exit.service.in \
474 units/systemd-fsck@.service.in \
475 units/systemd-fsck-root.service.in \
476 units/user@.service.in \
477 units/systemd-udevd.service \
478 units/systemd-udev-trigger.service \
479 units/systemd-udev-settle.service \
480 units/debug-shell.service.in \
481 units/systemd-hibernate.service.in \
482 units/systemd-hybrid-sleep.service.in \
483 units/systemd-suspend.service.in \
484 units/quotaon.service.in \
485 units/initrd-parse-etc.service.in \
486 units/initrd-cleanup.service.in \
487 units/initrd-udevadm-cleanup-db.service.in \
488 units/initrd-switch-root.service.in \
489 units/systemd-nspawn@.service.in
492 units/console-shell.service.m4 \
493 units/console-getty.service.m4 \
494 units/rescue.service.m4
497 nodist_systemunit_DATA += \
498 units/rc-local.service \
499 units/halt-local.service
501 systemgenerator_PROGRAMS += \
502 systemd-rc-local-generator
506 units/rc-local.service.in \
507 units/halt-local.service.in
509 # automake is broken and can't handle files with a dash in front
510 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
512 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
514 units-uninstall-hook:
515 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
517 INSTALL_DATA_HOOKS += units-install-hook
518 UNINSTALL_DATA_HOOKS += units-uninstall-hook
528 @INTLTOOL_POLICY_RULE@
530 # ------------------------------------------------------------------------------
535 include Makefile-man.am
538 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
541 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
543 ${XML_FILES:.xml=.html}
545 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
562 $(AM_V_at)$(MKDIR_P) $(dir $@)
563 $(AM_V_LN)$(LN_S) -f ../../man $@
572 man/index.html: man/systemd.index.html
573 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
581 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
582 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
583 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
585 update-man-list: make-man-rules.py $(XML_GLOB)
586 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
587 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
588 @echo "Makefile-man.am has been regenerated"
590 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
591 $(AM_V_at)$(MKDIR_P) $(dir $@)
592 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
594 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
595 $(AM_V_at)$(MKDIR_P) $(dir $@)
596 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
599 man/systemd.index.xml \
601 man/systemd.directives.xml
604 man/systemd.index.xml \
605 man/systemd.directives.xml
617 make-directive-index.py \
620 # ------------------------------------------------------------------------------
621 noinst_LTLIBRARIES += \
624 libsystemd_shared_la_SOURCES = \
625 src/shared/linux/auto_dev-ioctl.h \
626 src/shared/linux/fanotify.h \
627 src/shared/linux/seccomp.h \
628 src/shared/linux/seccomp-bpf.h \
629 src/shared/missing.h \
633 src/shared/device-nodes.c \
634 src/shared/device-nodes.h \
635 src/shared/sparse-endian.h \
638 src/shared/udev-util.h \
641 src/shared/efivars.c \
642 src/shared/efivars.h \
643 src/shared/path-util.c \
644 src/shared/path-util.h \
645 src/shared/time-util.c \
646 src/shared/time-util.h \
647 src/shared/hashmap.c \
648 src/shared/hashmap.h \
655 src/shared/sleep-config.c \
656 src/shared/sleep-config.h \
659 src/shared/env-util.c \
660 src/shared/env-util.h \
661 src/shared/strbuf.c \
662 src/shared/strbuf.h \
663 src/shared/strxcpyx.c \
664 src/shared/strxcpyx.h \
665 src/shared/conf-parser.c \
666 src/shared/conf-parser.h \
669 src/shared/ratelimit.h \
670 src/shared/ratelimit.c \
671 src/shared/exit-status.c \
672 src/shared/exit-status.h \
675 src/shared/gunicode.c \
676 src/shared/gunicode.h \
679 src/shared/ioprio.h \
680 src/shared/socket-util.c \
681 src/shared/socket-util.h \
682 src/shared/conf-files.c \
683 src/shared/conf-files.h \
684 src/shared/cgroup-util.c \
685 src/shared/cgroup-util.h \
686 src/shared/cgroup-show.c \
687 src/shared/cgroup-show.h \
688 src/shared/unit-name.c \
689 src/shared/unit-name.h \
690 src/shared/utmp-wtmp.c \
691 src/shared/utmp-wtmp.h \
692 src/shared/watchdog.c \
693 src/shared/watchdog.h \
694 src/shared/spawn-ask-password-agent.c \
695 src/shared/spawn-ask-password-agent.h \
696 src/shared/replace-var.c \
697 src/shared/replace-var.h \
698 src/shared/spawn-polkit-agent.c \
699 src/shared/spawn-polkit-agent.h \
700 src/shared/hwclock.c \
701 src/shared/hwclock.h \
702 src/shared/time-dst.c \
703 src/shared/time-dst.h \
704 src/shared/calendarspec.c \
705 src/shared/calendarspec.h \
706 src/shared/fileio.c \
707 src/shared/fileio.h \
708 src/shared/output-mode.h \
709 src/shared/MurmurHash3.c \
710 src/shared/MurmurHash3.h \
711 src/shared/acpi-fpdt.h \
712 src/shared/acpi-fpdt.c \
713 src/shared/boot-timestamps.h \
714 src/shared/boot-timestamps.c \
715 src/shared/refcnt.h \
718 src/shared/smack-util.c \
719 src/shared/smack-util.h \
720 src/shared/apparmor-util.c \
721 src/shared/apparmor-util.h \
722 src/shared/ima-util.c \
723 src/shared/ima-util.h
725 #-------------------------------------------------------------------------------
726 noinst_LTLIBRARIES += \
729 libsystemd_dbus_la_SOURCES = \
730 src/shared/dbus-common.c \
731 src/shared/dbus-common.h \
732 src/shared/dbus-loop.c \
733 src/shared/dbus-loop.h \
734 src/shared/polkit.c \
737 libsystemd_dbus_la_CFLAGS = \
741 libsystemd_dbus_la_LIBADD = \
744 # ------------------------------------------------------------------------------
745 noinst_LTLIBRARIES += \
748 libsystemd_units_la_SOURCES = \
749 src/shared/install.c \
750 src/shared/install.h \
751 src/shared/install-printf.c \
752 src/shared/install-printf.h \
753 src/shared/path-lookup.c \
754 src/shared/path-lookup.h \
755 src/shared/specifier.c \
756 src/shared/specifier.h
758 libsystemd_units_la_CFLAGS = \
762 # ------------------------------------------------------------------------------
763 noinst_LTLIBRARIES += \
766 libsystemd_label_la_SOURCES = \
767 src/shared/socket-label.c \
770 src/shared/selinux-util.c \
771 src/shared/selinux-util.h \
772 src/shared/mkdir-label.c \
773 src/shared/ask-password-api.c \
774 src/shared/ask-password-api.h \
775 src/shared/fileio-label.c \
776 src/shared/fileio-label.h \
777 src/shared/dev-setup.c \
778 src/shared/dev-setup.h
780 libsystemd_label_la_CFLAGS = \
784 libsystemd_label_la_LIBADD = \
787 # ------------------------------------------------------------------------------
788 noinst_LTLIBRARIES += \
791 libsystemd_logs_la_SOURCES = \
792 src/shared/logs-show.c \
793 src/shared/logs-show.h
795 libsystemd_logs_la_LIBADD = \
796 libsystemd-journal-internal.la \
797 libsystemd-id128-internal.la \
800 # ------------------------------------------------------------------------------
801 noinst_LTLIBRARIES += \
802 libsystemd-capability.la
804 libsystemd_capability_la_SOURCES = \
805 src/shared/capability.c \
806 src/shared/capability.h
808 libsystemd_capability_la_CFLAGS = \
812 libsystemd_capability_la_LIBADD = \
815 # ------------------------------------------------------------------------------
816 noinst_LTLIBRARIES += \
819 libsystemd_audit_la_SOURCES = \
823 libsystemd_audit_la_LIBADD = \
824 libsystemd-capability.la
826 # ------------------------------------------------------------------------------
828 noinst_LTLIBRARIES += \
831 libsystemd_acl_la_SOURCES = \
832 src/shared/acl-util.c \
833 src/shared/acl-util.h
835 libsystemd_acl_la_CFLAGS = \
839 libsystemd_acl_la_LIBADD = \
844 # ------------------------------------------------------------------------------
845 noinst_LTLIBRARIES += \
848 libsystemd_core_la_SOURCES = \
851 src/core/unit-printf.c \
852 src/core/unit-printf.h \
857 src/core/transaction.c \
858 src/core/transaction.h \
859 src/core/load-fragment.c \
860 src/core/load-fragment.h \
863 src/core/automount.c \
864 src/core/automount.h \
873 src/core/snapshot.c \
874 src/core/snapshot.h \
885 src/core/load-dropin.c \
886 src/core/load-dropin.h \
893 src/core/dbus-manager.c \
894 src/core/dbus-manager.h \
895 src/core/dbus-unit.c \
896 src/core/dbus-unit.h \
897 src/core/dbus-job.c \
898 src/core/dbus-job.h \
899 src/core/dbus-service.c \
900 src/core/dbus-service.h \
901 src/core/dbus-socket.c \
902 src/core/dbus-socket.h \
903 src/core/dbus-timer.c \
904 src/core/dbus-timer.h \
905 src/core/dbus-target.c \
906 src/core/dbus-target.h \
907 src/core/dbus-mount.c \
908 src/core/dbus-mount.h \
909 src/core/dbus-automount.c \
910 src/core/dbus-automount.h \
911 src/core/dbus-swap.c \
912 src/core/dbus-swap.h \
913 src/core/dbus-snapshot.c \
914 src/core/dbus-snapshot.h \
915 src/core/dbus-device.c \
916 src/core/dbus-device.h \
917 src/core/dbus-path.c \
918 src/core/dbus-path.h \
919 src/core/dbus-slice.c \
920 src/core/dbus-slice.h \
921 src/core/dbus-scope.c \
922 src/core/dbus-scope.h \
923 src/core/dbus-execute.c \
924 src/core/dbus-execute.h \
925 src/core/dbus-kill.c \
926 src/core/dbus-kill.h \
927 src/core/dbus-cgroup.c \
928 src/core/dbus-cgroup.h \
931 src/core/selinux-access.c \
932 src/core/selinux-access.h \
933 src/core/selinux-setup.c \
934 src/core/selinux-setup.h \
935 src/core/smack-setup.c \
936 src/core/smack-setup.h \
937 src/core/ima-setup.c \
938 src/core/ima-setup.h \
939 src/core/locale-setup.h \
940 src/core/locale-setup.c \
941 src/core/hostname-setup.c \
942 src/core/hostname-setup.h \
943 src/core/machine-id-setup.c \
944 src/core/machine-id-setup.h \
945 src/core/mount-setup.c \
946 src/core/mount-setup.h \
947 src/core/loopback-setup.h \
948 src/core/loopback-setup.c \
949 src/core/condition.c \
950 src/core/condition.h \
951 src/core/namespace.c \
952 src/core/namespace.h \
955 src/core/securebits.h \
958 src/core/bus-errors.h \
960 src/core/sysfs-show.h \
961 src/core/switch-root.h \
962 src/core/switch-root.c \
965 src/core/syscall-list.c \
966 src/core/syscall-list.h \
967 src/core/audit-fd.c \
968 src/core/audit-fd.h \
973 libsystemd_core_la_SOURCES += \
974 src/core/kmod-setup.c \
975 src/core/kmod-setup.h
978 nodist_libsystemd_core_la_SOURCES = \
979 src/core/load-fragment-gperf.c \
980 src/core/load-fragment-gperf-nulstr.c \
981 src/core/syscall-from-name.h \
982 src/core/syscall-to-name.h
984 libsystemd_core_la_CFLAGS = \
993 libsystemd_core_la_LIBADD = \
994 libsystemd-capability.la \
995 libsystemd-units.la \
996 libsystemd-label.la \
997 libsystemd-shared.la \
999 libsystemd-audit.la \
1000 libsystemd-id128-internal.la \
1001 libsystemd-daemon.la \
1009 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1010 $(AM_V_at)$(MKDIR_P) $(dir $@)
1011 $(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 ";" }' < $< > $@
1014 src/core/load-fragment-gperf.gperf.m4
1017 src/core/load-fragment-gperf.gperf \
1018 src/core/load-fragment-gperf.c \
1019 src/core/load-fragment-gperf-nulstr.c \
1020 src/core/syscall-list.txt \
1021 src/core/syscall-from-name.gperf
1024 src/core/syscall-from-name.h \
1025 src/core/syscall-to-name.h
1027 src/core/syscall-list.txt: Makefile
1028 $(AM_V_at)$(MKDIR_P) $(dir $@)
1029 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h - < /dev/null | $(AWK) '/^#define[ \t]+__NR_[^ ]+[ \t]+[0-9(]/ { sub(/__NR_/, "", $$2); if ($$2 !~ /SYSCALL_BASE/) print $$2; }' > $@
1031 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
1032 $(AM_V_at)$(MKDIR_P) $(dir $@)
1033 $(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 }' < $< > $@
1035 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
1036 $(AM_V_at)$(MKDIR_P) $(dir $@)
1037 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1039 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
1040 $(AM_V_at)$(MKDIR_P) $(dir $@)
1041 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1043 # ------------------------------------------------------------------------------
1052 libsystemd-core.la \
1053 libsystemd-daemon.la \
1054 libsystemd-id128-internal.la \
1057 dist_pkgsysconf_DATA += \
1058 src/core/system.conf \
1061 dist_dbuspolicy_DATA += \
1062 src/core/org.freedesktop.systemd1.conf
1064 dist_dbussystemservice_DATA += \
1065 src/core/org.freedesktop.systemd1.service
1067 polkitpolicy_in_in_files += \
1068 src/core/org.freedesktop.systemd1.policy.in.in
1070 pkgconfigdata_DATA = \
1073 nodist_rpmmacros_DATA = \
1074 src/core/macros.systemd
1077 src/core/systemd.pc.in \
1078 src/core/macros.systemd.in
1081 src/core/macros.systemd \
1082 src/core/org.freedesktop.systemd1.policy.in
1084 # ------------------------------------------------------------------------------
1114 test-strip-tab-ansi \
1125 test/sched_idle_bad.service \
1126 test/sched_idle_ok.service \
1127 test/sched_rr_bad.service \
1128 test/sched_rr_ok.service \
1129 test/sched_rr_change.service
1132 src/test/test-helper.h
1134 test_device_nodes_SOURCES = \
1135 src/test/test-device-nodes.c
1137 test_device_nodes_LDADD = \
1138 libsystemd-shared.la
1140 test_engine_SOURCES = \
1141 src/test/test-engine.c
1143 test_engine_CFLAGS = \
1147 test_engine_LDADD = \
1148 libsystemd-core.la \
1149 libsystemd-daemon.la \
1152 test_job_type_SOURCES = \
1153 src/test/test-job-type.c
1155 test_job_type_CFLAGS = \
1159 test_job_type_LDADD = \
1160 libsystemd-core.la \
1161 libsystemd-daemon.la
1173 test_loopback_SOURCES = \
1174 src/test/test-loopback.c
1176 test_loopback_LDADD = \
1177 libsystemd-shared.la \
1180 test_hostname_SOURCES = \
1181 src/test/test-hostname.c
1183 test_hostname_LDADD = \
1190 test_boot_timestamp_SOURCES = \
1191 src/test/test-boot-timestamps.c
1193 test_boot_timestamp_LDADD = \
1194 libsystemd-shared.la
1197 test_unit_name_SOURCES = \
1198 src/test/test-unit-name.c
1200 test_unit_name_CFLAGS = \
1204 test_unit_name_LDADD = \
1207 test_unit_file_SOURCES = \
1208 src/test/test-unit-file.c
1210 test_unit_file_CFLAGS = \
1214 test_unit_file_LDADD = \
1217 test_utf8_SOURCES = \
1218 src/test/test-utf8.c
1221 libsystemd-shared.la
1223 test_util_SOURCES = \
1224 src/test/test-util.c
1229 test_namespace_SOURCES = \
1230 src/test/test-namespace.c
1232 test_namespace_LDADD = \
1235 test_hashmap_SOURCES = \
1236 src/test/test-hashmap.c
1238 test_hashmap_LDADD = \
1241 test_list_SOURCES = \
1242 src/test/test-list.c
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_LDADD = \
1265 test_fileio_SOURCES = \
1266 src/test/test-fileio.c
1268 test_fileio_LDADD = \
1271 test_time_SOURCES = \
1272 src/test/test-time.c
1277 test_log_SOURCES = \
1283 test_ellipsize_SOURCES = \
1284 src/test/test-ellipsize.c
1286 test_ellipsize_LDADD = \
1289 test_date_SOURCES = \
1290 src/test/test-date.c
1295 test_sleep_SOURCES = \
1296 src/test/test-sleep.c
1298 test_sleep_LDADD = \
1301 test_replace_var_SOURCES = \
1302 src/test/test-replace-var.c
1304 test_replace_var_LDADD = \
1305 libsystemd-shared.la
1307 test_calendarspec_SOURCES = \
1308 src/test/test-calendarspec.c
1310 test_calendarspec_LDADD = \
1311 libsystemd-shared.la
1313 test_strip_tab_ansi_SOURCES = \
1314 src/test/test-strip-tab-ansi.c
1316 test_strip_tab_ansi_LDADD = \
1317 libsystemd-shared.la
1319 test_daemon_SOURCES = \
1320 src/test/test-daemon.c
1322 test_daemon_LDADD = \
1323 libsystemd-shared.la \
1324 libsystemd-daemon.la
1326 test_cgroup_SOURCES = \
1327 src/test/test-cgroup.c
1329 test_cgroup_LDADD = \
1330 libsystemd-label.la \
1331 libsystemd-shared.la
1333 test_cgroup_util_SOURCES = \
1334 src/test/test-cgroup-util.c
1336 test_cgroup_util_LDADD = \
1337 libsystemd-label.la \
1338 libsystemd-shared.la \
1339 libsystemd-daemon.la
1341 test_env_replace_SOURCES = \
1342 src/test/test-env-replace.c
1344 test_env_replace_LDADD = \
1345 libsystemd-shared.la
1347 test_strbuf_SOURCES = \
1348 src/test/test-strbuf.c
1350 test_strbuf_LDADD = \
1351 libsystemd-shared.la
1353 test_strv_SOURCES = \
1354 src/test/test-strv.c
1357 libsystemd-shared.la \
1358 libsystemd-units.la \
1359 libsystemd-id128-internal.la
1361 test_path_util_SOURCES = \
1362 src/test/test-path-util.c
1364 test_path_util_LDADD = \
1365 libsystemd-shared.la
1367 test_strxcpyx_SOURCES = \
1368 src/test/test-strxcpyx.c
1370 test_strxcpyx_LDADD = \
1371 libsystemd-shared.la
1373 test_install_SOURCES = \
1374 src/test/test-install.c
1376 test_install_CFLAGS = \
1380 test_install_LDADD = \
1381 libsystemd-units.la \
1382 libsystemd-label.la \
1383 libsystemd-shared.la \
1384 libsystemd-id128-internal.la
1386 test_watchdog_SOURCES = \
1387 src/test/test-watchdog.c
1389 test_watchdog_LDADD = \
1390 libsystemd-shared.la
1392 test_sched_prio_SOURCES = \
1393 src/test/test-sched-prio.c
1395 test_sched_prio_CFLAGS = \
1398 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1400 test_sched_prio_LDADD = \
1401 libsystemd-core.la \
1402 libsystemd-daemon.la
1404 # ------------------------------------------------------------------------------
1405 ## .PHONY so it always rebuilds it
1406 .PHONY: coverage lcov-run lcov-report
1408 # run lcov from scratch, always
1413 coverage_dir = coverage
1414 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1417 # reset run coverage tests
1419 @rm -rf $(coverage_dir)
1420 lcov $(coverage_opts) --zerocounters
1423 # generate report based on current coverage data
1425 $(MKDIR_P) $(coverage_dir)
1426 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1427 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1428 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1429 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1431 # lcov doesn't work properly with vpath builds, make sure that bad
1432 # output is not uploaded by mistake.
1433 coverage-sync: coverage
1434 test "$(builddir)" = "$(srcdir)"
1435 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1438 lcov-run lcov-report:
1439 echo "Need to reconfigure with --enable-coverage"
1442 # ------------------------------------------------------------------------------
1443 systemd_analyze_SOURCES = \
1444 src/analyze/analyze.c
1446 systemd_analyze_CFLAGS = \
1450 systemd_analyze_LDADD = \
1451 libsystemd-shared.la \
1454 # ------------------------------------------------------------------------------
1455 systemd_initctl_SOURCES = \
1456 src/initctl/initctl.c
1458 systemd_initctl_CFLAGS = \
1462 systemd_initctl_LDADD = \
1463 libsystemd-shared.la \
1464 libsystemd-daemon.la \
1467 # ------------------------------------------------------------------------------
1468 systemd_update_utmp_SOURCES = \
1469 src/update-utmp/update-utmp.c
1471 systemd_update_utmp_CFLAGS = \
1476 systemd_update_utmp_LDADD = \
1477 libsystemd-shared.la \
1481 # ------------------------------------------------------------------------------
1482 systemd_shutdownd_SOURCES = \
1483 src/shutdownd/shutdownd.c
1485 systemd_shutdownd_LDADD = \
1486 libsystemd-label.la \
1487 libsystemd-shared.la \
1488 libsystemd-daemon.la
1490 pkginclude_HEADERS += \
1491 src/systemd/sd-shutdown.h
1493 # ------------------------------------------------------------------------------
1494 systemd_shutdown_SOURCES = \
1497 src/core/shutdown.c \
1498 src/core/mount-setup.c \
1499 src/core/mount-setup.h \
1500 src/core/killall.h \
1503 systemd_shutdown_LDADD = \
1504 libsystemd-label.la \
1505 libsystemd-shared.la \
1508 # ------------------------------------------------------------------------------
1510 systemd_modules_load_SOURCES = \
1511 src/modules-load/modules-load.c
1513 systemd_modules_load_CFLAGS = \
1517 systemd_modules_load_LDADD = \
1518 libsystemd-shared.la \
1521 rootlibexec_PROGRAMS += \
1522 systemd-modules-load
1524 nodist_systemunit_DATA += \
1525 units/systemd-modules-load.service
1527 SYSINIT_TARGET_WANTS += \
1528 systemd-modules-load.service
1531 nodist_systemunit_DATA += \
1532 units/kmod-static-nodes.service
1534 SYSINIT_TARGET_WANTS += \
1535 kmod-static-nodes.service
1540 units/systemd-modules-load.service.in \
1541 units/kmod-static-nodes.service.in
1543 # ------------------------------------------------------------------------------
1545 systemd_tmpfiles_SOURCES = \
1546 src/tmpfiles/tmpfiles.c \
1547 src/shared/specifier.c \
1548 src/shared/specifier.h
1550 systemd_tmpfiles_LDADD = \
1551 libsystemd-label.la \
1552 libsystemd-shared.la \
1553 libsystemd-capability.la \
1554 libsystemd-id128-internal.la
1556 rootbin_PROGRAMS += \
1559 dist_systemunit_DATA += \
1560 units/systemd-tmpfiles-clean.timer
1562 nodist_systemunit_DATA += \
1563 units/systemd-tmpfiles-setup-dev.service \
1564 units/systemd-tmpfiles-setup.service \
1565 units/systemd-tmpfiles-clean.service
1567 dist_tmpfiles_DATA = \
1568 tmpfiles.d/systemd.conf \
1569 tmpfiles.d/tmp.conf \
1573 dist_tmpfiles_DATA += \
1574 tmpfiles.d/legacy.conf
1577 SYSINIT_TARGET_WANTS += \
1578 systemd-tmpfiles-setup-dev.service \
1579 systemd-tmpfiles-setup.service
1581 dist_zshcompletion_DATA += \
1582 shell-completion/zsh/_systemd-tmpfiles
1584 TIMERS_TARGET_WANTS += \
1585 systemd-tmpfiles-clean.timer
1589 $(sysconfdir)/tmpfiles.d
1593 units/systemd-tmpfiles-setup-dev.service.in \
1594 units/systemd-tmpfiles-setup.service.in \
1595 units/systemd-tmpfiles-clean.service.in
1597 # ------------------------------------------------------------------------------
1598 systemd_machine_id_setup_SOURCES = \
1599 src/machine-id-setup/machine-id-setup-main.c \
1600 src/core/machine-id-setup.c \
1601 src/core/machine-id-setup.h
1603 systemd_machine_id_setup_LDADD = \
1604 libsystemd-label.la \
1605 libsystemd-shared.la \
1606 libsystemd-id128-internal.la
1608 # ------------------------------------------------------------------------------
1609 systemd_sysctl_SOURCES = \
1612 systemd_sysctl_LDADD = \
1613 libsystemd-shared.la
1615 # ------------------------------------------------------------------------------
1616 systemd_sleep_SOURCES = \
1619 systemd_sleep_LDADD = \
1620 libsystemd-shared.la
1622 # ------------------------------------------------------------------------------
1623 systemd_fsck_SOURCES = \
1626 systemd_fsck_CFLAGS = \
1630 systemd_fsck_LDADD = \
1631 libsystemd-shared.la \
1635 # ------------------------------------------------------------------------------
1636 systemd_ac_power_SOURCES = \
1637 src/ac-power/ac-power.c
1639 systemd_ac_power_LDADD = \
1640 libsystemd-shared.la \
1643 # ------------------------------------------------------------------------------
1644 systemd_detect_virt_SOURCES = \
1645 src/detect-virt/detect-virt.c
1647 systemd_detect_virt_LDADD = \
1648 libsystemd-shared.la
1650 systemd-detect-virt-install-hook:
1651 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1653 INSTALL_EXEC_HOOKS += \
1654 systemd-detect-virt-install-hook
1656 # ------------------------------------------------------------------------------
1657 systemd_delta_SOURCES = \
1660 systemd_delta_LDADD = \
1661 libsystemd-shared.la
1663 # ------------------------------------------------------------------------------
1664 systemd_getty_generator_SOURCES = \
1665 src/getty-generator/getty-generator.c
1667 systemd_getty_generator_LDADD = \
1668 libsystemd-label.la \
1669 libsystemd-shared.la
1671 # ------------------------------------------------------------------------------
1672 systemd_fstab_generator_SOURCES = \
1673 src/fstab-generator/fstab-generator.c \
1674 src/core/mount-setup.c
1676 systemd_fstab_generator_LDADD = \
1677 libsystemd-label.la \
1678 libsystemd-shared.la
1680 # ------------------------------------------------------------------------------
1681 systemd_system_update_generator_SOURCES = \
1682 src/system-update-generator/system-update-generator.c
1684 systemd_system_update_generator_LDADD = \
1685 libsystemd-label.la \
1686 libsystemd-shared.la
1689 # ------------------------------------------------------------------------------
1690 systemgenerator_PROGRAMS += \
1691 systemd-efi-boot-generator
1693 systemd_efi_boot_generator_SOURCES = \
1694 src/efi-boot-generator/efi-boot-generator.c
1696 systemd_efi_boot_generator_LDADD = \
1697 libsystemd-label.la \
1698 libsystemd-shared.la
1700 # ------------------------------------------------------------------------------
1703 src/boot/boot-loader.h \
1704 src/boot/bootctl.c \
1705 src/boot/boot-loader.c \
1709 libsystemd-shared.la \
1710 libsystemd-id128.la \
1711 libsystemd-daemon.la
1717 # ------------------------------------------------------------------------------
1719 systemgenerator_PROGRAMS += \
1720 systemd-gpt-auto-generator
1722 systemd_gpt_auto_generator_SOURCES = \
1723 src/gpt-auto-generator/gpt-auto-generator.c
1725 systemd_gpt_auto_generator_LDADD = \
1726 libsystemd-label.la \
1727 libsystemd-shared.la \
1728 libsystemd-id128-internal.la \
1729 libudev-private.la \
1732 systemd_gpt_auto_generator_CFLAGS = \
1737 # ------------------------------------------------------------------------------
1738 systemd_rc_local_generator_SOURCES = \
1739 src/rc-local-generator/rc-local-generator.c
1741 systemd_rc_local_generator_LDADD = \
1742 libsystemd-label.la \
1743 libsystemd-shared.la
1745 # ------------------------------------------------------------------------------
1746 systemd_remount_fs_SOURCES = \
1747 src/remount-fs/remount-fs.c \
1748 src/core/mount-setup.c \
1749 src/core/mount-setup.h
1751 systemd_remount_fs_LDADD = \
1752 libsystemd-label.la \
1753 libsystemd-shared.la
1755 # ------------------------------------------------------------------------------
1756 systemd_cgroups_agent_SOURCES = \
1757 src/cgroups-agent/cgroups-agent.c
1759 systemd_cgroups_agent_LDADD = \
1760 libsystemd-shared.la \
1763 # ------------------------------------------------------------------------------
1764 systemctl_SOURCES = \
1765 src/systemctl/systemctl.c
1767 systemctl_CFLAGS = \
1772 libsystemd-units.la \
1773 libsystemd-label.la \
1774 libsystemd-shared.la \
1775 libsystemd-daemon.la \
1776 libsystemd-dbus.la \
1779 # ------------------------------------------------------------------------------
1780 systemd_notify_SOURCES = \
1781 src/notify/notify.c \
1782 src/readahead/sd-readahead.c
1784 systemd_notify_LDADD = \
1785 libsystemd-shared.la \
1786 libsystemd-daemon.la
1788 # ------------------------------------------------------------------------------
1789 systemd_ask_password_SOURCES = \
1790 src/ask-password/ask-password.c
1792 systemd_ask_password_LDADD = \
1793 libsystemd-label.la \
1794 libsystemd-shared.la
1796 # ------------------------------------------------------------------------------
1797 systemd_reply_password_SOURCES = \
1798 src/reply-password/reply-password.c
1800 systemd_reply_password_LDADD = \
1801 libsystemd-shared.la
1803 # ------------------------------------------------------------------------------
1804 systemd_cgls_SOURCES = \
1807 systemd_cgls_LDADD = \
1808 libsystemd-shared.la
1810 # ------------------------------------------------------------------------------
1811 systemd_cgtop_SOURCES = \
1814 systemd_cgtop_LDADD = \
1815 libsystemd-shared.la
1817 # ------------------------------------------------------------------------------
1818 systemd_nspawn_SOURCES = \
1819 src/nspawn/nspawn.c \
1820 src/core/mount-setup.c \
1821 src/core/mount-setup.h \
1822 src/core/loopback-setup.c \
1823 src/core/loopback-setup.h
1825 systemd_nspawn_LDADD = \
1826 libsystemd-label.la \
1827 libsystemd-capability.la \
1828 libsystemd-shared.la \
1829 libsystemd-daemon.la \
1830 libsystemd-id128-internal.la \
1833 # ------------------------------------------------------------------------------
1834 systemd_run_SOURCES = \
1837 systemd_run_LDADD = \
1838 libsystemd-label.la \
1839 libsystemd-capability.la \
1840 libsystemd-shared.la \
1841 libsystemd-daemon.la \
1842 libsystemd-id128-internal.la \
1845 # ------------------------------------------------------------------------------
1846 systemd_stdio_bridge_SOURCES = \
1847 src/stdio-bridge/stdio-bridge.c
1849 systemd_stdio_bridge_LDADD = \
1850 libsystemd-shared.la \
1852 libsystemd-daemon.la
1854 # ------------------------------------------------------------------------------
1855 systemd_tty_ask_password_agent_SOURCES = \
1856 src/tty-ask-password-agent/tty-ask-password-agent.c
1858 systemd_tty_ask_password_agent_LDADD = \
1859 libsystemd-label.la \
1860 libsystemd-shared.la
1862 # ------------------------------------------------------------------------------
1863 libsystemd_daemon_la_SOURCES = \
1864 src/libsystemd-daemon/sd-daemon.c
1866 libsystemd_daemon_internal_la_SOURCES = \
1867 $(libsystemd_daemon_la_SOURCES)
1869 libsystemd_daemon_la_CFLAGS = \
1871 -fvisibility=hidden \
1874 libsystemd_daemon_la_LDFLAGS = \
1876 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1877 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1879 libsystemd_daemon_la_LIBADD = \
1882 pkginclude_HEADERS += \
1883 src/systemd/sd-daemon.h
1885 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1886 libsystemd-daemon-install-hook:
1887 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1889 libsystemd-daemon-uninstall-hook:
1890 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1892 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1893 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1895 lib_LTLIBRARIES += \
1896 libsystemd-daemon.la
1898 noinst_LTLIBRARIES += \
1899 libsystemd-daemon-internal.la
1901 pkgconfiglib_DATA += \
1902 src/libsystemd-daemon/libsystemd-daemon.pc
1905 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1906 src/libsystemd-daemon/libsystemd-daemon.sym
1908 # ------------------------------------------------------------------------------
1909 libsystemd_bus_la_SOURCES = \
1910 src/systemd/sd-bus.h \
1911 src/systemd/sd-bus-protocol.h \
1912 src/systemd/sd-bus-vtable.h \
1913 src/systemd/sd-memfd.h \
1914 src/systemd/sd-event.h \
1915 src/libsystemd-bus/sd-bus.c \
1916 src/libsystemd-bus/bus-control.c \
1917 src/libsystemd-bus/bus-control.h \
1918 src/libsystemd-bus/bus-error.c \
1919 src/libsystemd-bus/bus-error.h \
1920 src/libsystemd-bus/bus-internal.c \
1921 src/libsystemd-bus/bus-internal.h \
1922 src/libsystemd-bus/bus-socket.c \
1923 src/libsystemd-bus/bus-socket.h \
1924 src/libsystemd-bus/bus-kernel.c \
1925 src/libsystemd-bus/bus-kernel.h \
1926 src/libsystemd-bus/bus-message.c \
1927 src/libsystemd-bus/bus-message.h \
1928 src/libsystemd-bus/bus-signature.c \
1929 src/libsystemd-bus/bus-signature.h \
1930 src/libsystemd-bus/bus-type.c \
1931 src/libsystemd-bus/bus-type.h \
1932 src/libsystemd-bus/bus-match.c \
1933 src/libsystemd-bus/bus-match.h \
1934 src/libsystemd-bus/bus-bloom.c \
1935 src/libsystemd-bus/bus-bloom.h \
1936 src/libsystemd-bus/bus-introspect.c \
1937 src/libsystemd-bus/bus-introspect.h \
1938 src/libsystemd-bus/bus-objects.c \
1939 src/libsystemd-bus/bus-objects.h \
1940 src/libsystemd-bus/bus-convenience.c \
1941 src/libsystemd-bus/kdbus.h \
1942 src/libsystemd-bus/sd-memfd.c \
1943 src/libsystemd-bus/sd-event.c \
1944 src/libsystemd-bus/bus-util.c \
1945 src/libsystemd-bus/bus-util.h \
1946 src/libsystemd-bus/event-util.h
1948 libsystemd_bus_la_LIBADD = \
1949 libsystemd-id128-internal.la \
1950 libsystemd-shared.la \
1951 libsystemd-daemon.la
1953 libsystemd_bus_la_CFLAGS = \
1957 noinst_LTLIBRARIES += \
1962 test-bus-signature \
1967 test-bus-kernel-bloom \
1968 test-bus-kernel-benchmark \
1970 test-bus-zero-copy \
1971 test-bus-introspect \
1975 noinst_PROGRAMS += \
1978 test_bus_marshal_SOURCES = \
1979 src/libsystemd-bus/test-bus-marshal.c
1981 test_bus_marshal_LDADD = \
1982 libsystemd-shared.la \
1987 test_bus_marshal_CFLAGS = \
1992 test_bus_signature_SOURCES = \
1993 src/libsystemd-bus/test-bus-signature.c
1995 test_bus_signature_LDADD = \
1996 libsystemd-shared.la \
1999 test_bus_chat_SOURCES = \
2000 src/libsystemd-bus/test-bus-chat.c
2002 test_bus_chat_CFLAGS = \
2006 test_bus_chat_LDADD = \
2007 libsystemd-shared.la \
2009 libsystemd-id128-internal.la
2011 test_bus_server_SOURCES = \
2012 src/libsystemd-bus/test-bus-server.c
2014 test_bus_server_CFLAGS = \
2018 test_bus_server_LDADD = \
2019 libsystemd-shared.la \
2021 libsystemd-id128-internal.la
2023 test_bus_objects_SOURCES = \
2024 src/libsystemd-bus/test-bus-objects.c
2026 test_bus_objects_CFLAGS = \
2030 test_bus_objects_LDADD = \
2031 libsystemd-shared.la \
2033 libsystemd-id128-internal.la
2035 test_bus_match_SOURCES = \
2036 src/libsystemd-bus/test-bus-match.c
2038 test_bus_match_LDADD = \
2039 libsystemd-shared.la \
2041 libsystemd-id128-internal.la
2043 test_bus_kernel_SOURCES = \
2044 src/libsystemd-bus/test-bus-kernel.c
2046 test_bus_kernel_LDADD = \
2047 libsystemd-shared.la \
2049 libsystemd-id128-internal.la
2051 test_bus_kernel_bloom_SOURCES = \
2052 src/libsystemd-bus/test-bus-kernel-bloom.c
2054 test_bus_kernel_bloom_LDADD = \
2055 libsystemd-shared.la \
2057 libsystemd-id128-internal.la
2059 test_bus_kernel_benchmark_SOURCES = \
2060 src/libsystemd-bus/test-bus-kernel-benchmark.c
2062 test_bus_kernel_benchmark_LDADD = \
2063 libsystemd-shared.la \
2065 libsystemd-id128-internal.la
2067 test_bus_memfd_SOURCES = \
2068 src/libsystemd-bus/test-bus-memfd.c
2070 test_bus_memfd_LDADD = \
2071 libsystemd-shared.la \
2074 test_bus_zero_copy_SOURCES = \
2075 src/libsystemd-bus/test-bus-zero-copy.c
2077 test_bus_zero_copy_LDADD = \
2078 libsystemd-shared.la \
2081 test_bus_introspect_SOURCES = \
2082 src/libsystemd-bus/test-bus-introspect.c
2084 test_bus_introspect_LDADD = \
2085 libsystemd-shared.la \
2088 test_event_SOURCES = \
2089 src/libsystemd-bus/test-event.c
2091 test_event_LDADD = \
2092 libsystemd-shared.la \
2094 libsystemd-id128-internal.la
2097 src/libsystemd-bus/busctl.c
2100 libsystemd-shared.la \
2103 # ------------------------------------------------------------------------------
2113 include_HEADERS += \
2114 src/libudev/libudev.h
2116 lib_LTLIBRARIES += \
2119 libudev_la_SOURCES =\
2120 src/libudev/libudev-private.h \
2121 src/libudev/libudev.c \
2122 src/libudev/libudev-list.c \
2123 src/libudev/libudev-util.c \
2124 src/libudev/libudev-device.c \
2125 src/libudev/libudev-enumerate.c \
2126 src/libudev/libudev-monitor.c \
2127 src/libudev/libudev-queue.c \
2128 src/libudev/libudev-hwdb-def.h \
2129 src/libudev/libudev-hwdb.c
2131 libudev_la_CFLAGS = \
2135 libudev_la_LDFLAGS = \
2137 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2138 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2140 libudev_la_LIBADD = \
2141 libsystemd-shared.la \
2142 libsystemd-daemon-internal.la \
2143 libsystemd-id128-internal.la
2145 pkgconfiglib_DATA += \
2146 src/libudev/libudev.pc
2149 src/libudev/libudev.pc.in \
2150 src/libudev/libudev.sym
2153 src/libudev/libudev.pc \
2158 $(AM_V_at)$(MKDIR_P) $(dir $@)
2159 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2162 $(AM_V_at)$(MKDIR_P) $(dir $@)
2163 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2165 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2166 libudev-install-hook:
2167 libname=libudev.so && $(move-to-rootlibdir)
2169 libudev-uninstall-hook:
2170 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2172 INSTALL_EXEC_HOOKS += libudev-install-hook
2173 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2175 # ------------------------------------------------------------------------------
2176 noinst_LTLIBRARIES += \
2179 libudev_private_la_SOURCES =\
2180 $(libudev_la_SOURCES) \
2181 src/libudev/libudev-device-private.c \
2182 src/libudev/libudev-queue-private.c
2184 libudev_private_la_CFLAGS = \
2186 -fvisibility=default
2188 libudev_private_la_LIBADD = \
2189 libsystemd-shared.la
2191 # ------------------------------------------------------------------------------
2193 $(sysconfdir)/udev/rules.d \
2194 $(sysconfdir)/udev/hwdb.d
2196 dist_udevrules_DATA += \
2197 rules/99-systemd.rules \
2198 rules/42-usb-hid-pm.rules \
2199 rules/50-udev-default.rules \
2200 rules/60-keyboard.rules \
2201 rules/60-persistent-storage-tape.rules \
2202 rules/60-persistent-serial.rules \
2203 rules/60-persistent-input.rules \
2204 rules/60-persistent-alsa.rules \
2205 rules/60-persistent-storage.rules \
2206 rules/64-btrfs.rules \
2207 rules/75-net-description.rules \
2208 rules/75-tty-description.rules \
2209 rules/78-sound-card.rules \
2210 rules/80-net-name-slot.rules \
2211 rules/95-udev-late.rules
2213 dist_udevhwdb_DATA = \
2214 hwdb/20-pci-vendor-model.hwdb \
2215 hwdb/20-pci-classes.hwdb \
2216 hwdb/20-usb-vendor-model.hwdb \
2217 hwdb/20-usb-classes.hwdb \
2218 hwdb/20-bluetooth-vendor-product.hwdb \
2219 hwdb/20-acpi-vendor.hwdb \
2221 hwdb/60-keyboard.hwdb
2223 udevconfdir = $(sysconfdir)/udev
2224 dist_udevconf_DATA = \
2227 sharepkgconfigdir = $(datadir)/pkgconfig
2228 sharepkgconfig_DATA = \
2232 rules/99-systemd.rules.in \
2236 rules/99-systemd.rules \
2240 units/systemd-udevd.service.in \
2241 units/systemd-udev-trigger.service.in \
2242 units/systemd-udev-settle.service.in
2245 units/systemd-udevd.service \
2246 units/systemd-udev-trigger.service \
2247 units/systemd-udev-settle.service
2249 SOCKETS_TARGET_WANTS += \
2250 systemd-udevd-control.socket \
2251 systemd-udevd-kernel.socket
2252 SYSINIT_TARGET_WANTS += \
2253 systemd-udevd.service \
2254 systemd-udev-trigger.service
2256 rootbin_PROGRAMS += \
2259 rootlibexec_PROGRAMS += \
2262 noinst_LTLIBRARIES += \
2265 src/udev/keyboard-keys.txt: Makefile
2266 $(AM_V_at)$(MKDIR_P) $(dir $@)
2267 $(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/' > $@
2269 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2270 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2272 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2273 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2275 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2276 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2278 libudev_core_la_SOURCES = \
2280 src/udev/udev-event.c \
2281 src/udev/udev-watch.c \
2282 src/udev/udev-node.c \
2283 src/udev/udev-rules.c \
2284 src/udev/udev-ctrl.c \
2285 src/udev/udev-builtin.c \
2286 src/udev/udev-builtin-btrfs.c \
2287 src/udev/udev-builtin-hwdb.c \
2288 src/udev/udev-builtin-input_id.c \
2289 src/udev/udev-builtin-keyboard.c \
2290 src/udev/udev-builtin-net_id.c \
2291 src/udev/udev-builtin-path_id.c \
2292 src/udev/udev-builtin-usb_id.c
2294 nodist_libudev_core_la_SOURCES = \
2295 src/udev/keyboard-keys-from-name.h \
2296 src/udev/keyboard-keys-to-name.h
2299 $(nodist_libudev_core_la_SOURCES)
2302 src/udev/keyboard-keys-from-name.gperf \
2303 src/udev/keyboard-keys.txt
2305 libudev_core_la_CFLAGS = \
2310 libudev_core_la_LIBADD = \
2311 libudev-private.la \
2312 libsystemd-label.la \
2313 libsystemd-daemon-internal.la \
2314 libsystemd-shared.la \
2318 libudev_core_la_CPPFLAGS = \
2320 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2323 libudev_core_la_SOURCES += \
2324 src/udev/udev-builtin-firmware.c
2326 dist_udevrules_DATA += \
2327 rules/50-firmware.rules
2331 libudev_core_la_SOURCES += \
2332 src/udev/udev-builtin-kmod.c
2334 dist_udevrules_DATA += \
2335 rules/80-drivers.rules
2339 libudev_core_la_SOURCES += \
2340 src/udev/udev-builtin-blkid.c
2344 libudev_core_la_SOURCES += \
2345 src/udev/udev-builtin-uaccess.c \
2346 src/login/logind-acl.c \
2347 src/login/sd-login.c \
2348 src/systemd/sd-login.h \
2349 src/login/login-shared.c \
2350 src/login/login-shared.h
2352 libudev_core_la_LIBADD += \
2356 systemd_udevd_SOURCES = \
2359 systemd_udevd_LDADD = \
2363 src/udev/udevadm.c \
2364 src/udev/udevadm-info.c \
2365 src/udev/udevadm-control.c \
2366 src/udev/udevadm-monitor.c \
2367 src/udev/udevadm-hwdb.c \
2368 src/udev/udevadm-settle.c \
2369 src/udev/udevadm-trigger.c \
2370 src/udev/udevadm-test.c \
2371 src/udev/udevadm-test-builtin.c
2375 libsystemd-label.la \
2376 libsystemd-shared.la
2378 # Update hwdb on installation. Do not bother if installing
2379 # in DESTDIR, since this is likely for packaging purposes.
2381 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2383 INSTALL_DATA_HOOKS += \
2387 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2389 # ------------------------------------------------------------------------------
2398 test_libudev_SOURCES = \
2399 src/test/test-libudev.c
2401 test_libudev_LDADD = \
2402 libsystemd-label.la \
2403 libsystemd-shared.la \
2406 test_udev_SOURCES = \
2407 src/test/test-udev.c
2411 libsystemd-shared.la \
2417 test_udev_LDADD += \
2424 # packed sysfs test tree
2426 $(AM_V_at)$(MKDIR_P) $(dir $@)
2427 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2431 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2436 test/rules-test.sh \
2437 test/rule-syntax-check.py
2439 # ------------------------------------------------------------------------------
2441 src/udev/ata_id/ata_id.c
2444 libudev-private.la \
2445 libsystemd-shared.la
2447 udevlibexec_PROGRAMS += \
2450 # ------------------------------------------------------------------------------
2451 cdrom_id_SOURCES = \
2452 src/udev/cdrom_id/cdrom_id.c
2456 libsystemd-shared.la
2458 udevlibexec_PROGRAMS += \
2461 dist_udevrules_DATA += \
2462 rules/60-cdrom_id.rules
2464 # ------------------------------------------------------------------------------
2466 src/udev/collect/collect.c
2471 udevlibexec_PROGRAMS += \
2474 # ------------------------------------------------------------------------------
2476 src/udev/scsi_id/scsi_id.c \
2477 src/udev/scsi_id/scsi_serial.c \
2478 src/udev/scsi_id/scsi.h \
2479 src/udev/scsi_id/scsi_id.h
2482 libudev-private.la \
2483 libsystemd-shared.la
2485 udevlibexec_PROGRAMS += \
2489 src/udev/scsi_id/README
2491 # ------------------------------------------------------------------------------
2493 src/udev/v4l_id/v4l_id.c
2498 udevlibexec_PROGRAMS += \
2501 dist_udevrules_DATA += \
2502 rules/60-persistent-v4l.rules
2504 # ------------------------------------------------------------------------------
2505 accelerometer_SOURCES = \
2506 src/udev/accelerometer/accelerometer.c
2508 accelerometer_LDADD = \
2510 libsystemd-shared.la
2512 udevlibexec_PROGRAMS += \
2515 dist_udevrules_DATA += \
2516 rules/61-accelerometer.rules
2518 # ------------------------------------------------------------------------------
2525 libgudev_includedir = \
2526 $(includedir)/gudev-1.0/gudev
2528 libgudev_include_HEADERS = \
2530 src/gudev/gudevenums.h \
2531 src/gudev/gudevenumtypes.h \
2532 src/gudev/gudevtypes.h \
2533 src/gudev/gudevclient.h \
2534 src/gudev/gudevdevice.h \
2535 src/gudev/gudevenumerator.h
2537 lib_LTLIBRARIES += libgudev-1.0.la
2539 pkgconfiglib_DATA += \
2540 src/gudev/gudev-1.0.pc
2543 src/gudev/gudev-1.0.pc
2545 libgudev_1_0_la_SOURCES = \
2546 src/gudev/gudevenums.h \
2547 src/gudev/gudevenumtypes.h \
2548 src/gudev/gudevenumtypes.h\
2549 src/gudev/gudevtypes.h \
2550 src/gudev/gudevclient.h \
2551 src/gudev/gudevclient.c \
2552 src/gudev/gudevdevice.h \
2553 src/gudev/gudevdevice.c \
2554 src/gudev/gudevenumerator.h \
2555 src/gudev/gudevenumerator.c \
2556 src/gudev/gudevprivate.h
2558 nodist_libgudev_1_0_la_SOURCES = \
2559 src/gudev/gudevmarshal.h \
2560 src/gudev/gudevmarshal.c \
2561 src/gudev/gudevenumtypes.h \
2562 src/gudev/gudevenumtypes.c
2565 $(nodist_libgudev_1_0_la_SOURCES)
2567 libgudev_1_0_la_CPPFLAGS = \
2569 -I$(top_builddir)/src\
2570 -I$(top_srcdir)/src\
2571 -I$(top_builddir)/src/gudev \
2572 -I$(top_srcdir)/src/gudev \
2573 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2574 -D_GUDEV_COMPILATION \
2575 -DG_LOG_DOMAIN=\"GUdev\"
2577 libgudev_1_0_la_CFLAGS = \
2579 -fvisibility=default \
2582 libgudev_1_0_la_LIBADD = \
2586 libgudev_1_0_la_LDFLAGS = \
2588 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2589 -export-dynamic -no-undefined \
2590 -export-symbols-regex '^g_udev_.*'
2592 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2593 $(AM_V_at)$(MKDIR_P) $(dir $@)
2594 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2596 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2597 $(AM_V_at)$(MKDIR_P) $(dir $@)
2598 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2599 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2601 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2602 $(AM_V_at)$(MKDIR_P) $(dir $@)
2603 $(AM_V_GEN)glib-mkenums --template $^ > $@
2605 if HAVE_INTROSPECTION
2606 -include $(INTROSPECTION_MAKEFILE)
2608 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2610 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2612 src_gudev_GUdev_1_0_gir_CFLAGS = \
2615 -D_GUDEV_COMPILATION \
2616 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2617 -I$(top_srcdir)/src \
2618 -I$(top_builddir)/src \
2619 -I$(top_srcdir)/src/gudev \
2620 -I$(top_builddir)/src/gudev
2622 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2624 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2625 --pkg-export=gudev-1.0 \
2628 src_gudev_GUdev_1_0_gir_FILES = \
2630 src/gudev/gudevtypes.h \
2631 src/gudev/gudevenums.h \
2632 src/gudev/gudevenumtypes.h \
2633 src/gudev/gudevclient.h \
2634 src/gudev/gudevdevice.h \
2635 src/gudev/gudevenumerator.h \
2636 src/gudev/gudevclient.c \
2637 src/gudev/gudevdevice.c \
2638 src/gudev/gudevenumerator.c
2640 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2641 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2643 girdir = $(datadir)/gir-1.0
2645 src/gudev/GUdev-1.0.gir
2647 typelibsdir = $(libdir)/girepository-1.0
2649 src/gudev/GUdev-1.0.typelib
2651 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2652 endif # HAVE_INTROSPECTION
2654 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2655 libgudev-install-hook:
2656 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2658 libgudev-uninstall-hook:
2659 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2661 INSTALL_EXEC_HOOKS += libgudev-install-hook
2662 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2666 src/gudev/gudev-1.0.pc.in \
2667 src/gudev/gudevmarshal.list \
2668 src/gudev/gudevenumtypes.h.template \
2669 src/gudev/gudevenumtypes.c.template \
2670 src/gudev/gjs-example.js \
2671 src/gudev/seed-example-enum.js \
2672 src/gudev/seed-example.js
2674 # ------------------------------------------------------------------------------
2675 mtd_probe_SOURCES = \
2676 src/udev/mtd_probe/mtd_probe.c \
2677 src/udev/mtd_probe/mtd_probe.h \
2678 src/udev/mtd_probe/probe_smartmedia.c
2680 mtd_probe_CPPFLAGS = \
2683 dist_udevrules_DATA += \
2684 rules/75-probe_mtd.rules
2686 udevlibexec_PROGRAMS += \
2689 # ------------------------------------------------------------------------------
2690 libsystemd_id128_la_SOURCES = \
2691 src/libsystemd-id128/sd-id128.c
2693 libsystemd_id128_la_CFLAGS = \
2697 libsystemd_id128_la_LDFLAGS = \
2699 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2700 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2702 libsystemd_id128_la_LIBADD = \
2703 libsystemd-shared.la
2705 libsystemd_id128_internal_la_SOURCES = \
2706 $(libsystemd_id128_la_SOURCES)
2708 test_id128_SOURCES = \
2709 src/test/test-id128.c
2711 test_id128_LDADD = \
2712 libsystemd-shared.la \
2713 libsystemd-id128-internal.la \
2714 libsystemd-daemon.la
2719 pkginclude_HEADERS += \
2720 src/systemd/sd-id128.h
2722 lib_LTLIBRARIES += \
2725 noinst_LTLIBRARIES += \
2726 libsystemd-id128-internal.la
2728 pkgconfiglib_DATA += \
2729 src/libsystemd-id128/libsystemd-id128.pc
2731 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2732 libsystemd-id128-install-hook:
2733 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2735 libsystemd-id128-uninstall-hook:
2736 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2738 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2739 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2742 src/libsystemd-id128/libsystemd-id128.pc.in \
2743 src/libsystemd-id128/libsystemd-id128.sym
2745 # ------------------------------------------------------------------------------
2747 rootlibexec_PROGRAMS += \
2750 systemd_activate_SOURCES = \
2751 src/activate/activate.c
2753 systemd_activate_LDADD = \
2754 libsystemd-shared.la \
2755 libsystemd-daemon.la
2757 # ------------------------------------------------------------------------------
2758 systemd_journald_SOURCES = \
2759 src/journal/journald.c \
2760 src/journal/journald-server.h
2762 systemd_journald_LDADD = \
2763 libsystemd-journal-internal.la \
2764 libsystemd-shared.la \
2765 libsystemd-id128-internal.la
2767 systemd_cat_SOURCES = \
2770 systemd_cat_LDADD = \
2771 libsystemd-shared.la \
2772 libsystemd-journal-internal.la
2774 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2775 journalctl_CFLAGS = \
2778 journalctl_SOURCES = \
2779 src/journal/journalctl.c
2781 journalctl_LDADD = \
2782 libsystemd-shared.la \
2783 libsystemd-journal-internal.la \
2784 libsystemd-id128-internal.la \
2788 journalctl_LDADD += \
2793 journalctl_SOURCES += \
2794 src/journal/journal-qrcode.c \
2795 src/journal/journal-qrcode.h
2797 journalctl_CFLAGS += \
2800 journalctl_LDADD += \
2804 test_journal_SOURCES = \
2805 src/journal/test-journal.c
2807 test_journal_LDADD = \
2808 libsystemd-shared.la \
2809 libsystemd-journal-internal.la \
2810 libsystemd-id128-internal.la
2812 test_journal_send_SOURCES = \
2813 src/journal/test-journal-send.c
2815 test_journal_send_LDADD = \
2816 libsystemd-shared.la \
2817 libsystemd-journal-internal.la \
2818 libsystemd-id128-internal.la
2820 test_journal_syslog_SOURCES = \
2821 src/journal/test-journal-syslog.c
2823 test_journal_syslog_LDADD = \
2824 libsystemd-journal-internal.la \
2825 libsystemd-shared.la \
2826 libsystemd-id128-internal.la
2828 test_journal_match_SOURCES = \
2829 src/journal/test-journal-match.c
2831 test_journal_match_LDADD = \
2832 libsystemd-shared.la \
2833 libsystemd-journal-internal.la \
2834 libsystemd-id128-internal.la
2836 test_journal_enum_SOURCES = \
2837 src/journal/test-journal-enum.c
2839 test_journal_enum_LDADD = \
2840 libsystemd-shared.la \
2841 libsystemd-journal-internal.la \
2842 libsystemd-id128-internal.la
2844 test_journal_stream_SOURCES = \
2845 src/journal/test-journal-stream.c
2847 test_journal_stream_LDADD = \
2848 libsystemd-shared.la \
2849 libsystemd-journal-internal.la \
2850 libsystemd-id128-internal.la
2852 test_journal_init_SOURCES = \
2853 src/journal/test-journal-init.c
2855 test_journal_init_LDADD = \
2856 libsystemd-shared.la \
2857 libsystemd-daemon-internal.la \
2859 libsystemd-journal.la
2861 test_journal_verify_SOURCES = \
2862 src/journal/test-journal-verify.c
2864 test_journal_verify_LDADD = \
2865 libsystemd-shared.la \
2866 libsystemd-journal-internal.la \
2867 libsystemd-id128-internal.la
2869 test_journal_interleaving_SOURCES = \
2870 src/journal/test-journal-interleaving.c
2872 test_journal_interleaving_LDADD = \
2873 libsystemd-shared.la \
2874 libsystemd-journal-internal.la \
2875 libsystemd-id128-internal.la
2877 test_mmap_cache_SOURCES = \
2878 src/journal/test-mmap-cache.c
2880 test_mmap_cache_LDADD = \
2881 libsystemd-shared.la \
2882 libsystemd-journal-internal.la
2884 test_catalog_SOURCES = \
2885 src/journal/test-catalog.c
2887 test_catalog_CFLAGS = \
2889 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
2891 test_catalog_LDADD = \
2892 libsystemd-shared.la \
2893 libsystemd-label.la \
2894 libsystemd-journal-internal.la \
2895 libsystemd-id128-internal.la
2897 libsystemd_journal_la_SOURCES = \
2898 src/journal/sd-journal.c \
2899 src/systemd/sd-journal.h \
2900 src/systemd/_sd-common.h \
2901 src/journal/journal-file.c \
2902 src/journal/journal-file.h \
2903 src/journal/journal-vacuum.c \
2904 src/journal/journal-vacuum.h \
2905 src/journal/journal-verify.c \
2906 src/journal/journal-verify.h \
2907 src/journal/lookup3.c \
2908 src/journal/lookup3.h \
2909 src/journal/journal-send.c \
2910 src/journal/journal-def.h \
2911 src/journal/compress.h \
2912 src/journal/catalog.c \
2913 src/journal/catalog.h \
2914 src/journal/mmap-cache.c \
2915 src/journal/mmap-cache.h
2917 libsystemd_journal_la_CFLAGS = \
2921 libsystemd_journal_la_LDFLAGS = \
2923 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2924 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2926 libsystemd_journal_la_LIBADD = \
2927 libsystemd-shared.la \
2928 libsystemd-label.la \
2929 libsystemd-daemon-internal.la \
2931 libsystemd-id128-internal.la
2933 libsystemd_journal_internal_la_SOURCES = \
2934 $(libsystemd_journal_la_SOURCES) \
2935 src/journal/journald-kmsg.c \
2936 src/journal/journald-kmsg.h \
2937 src/journal/journald-syslog.c \
2938 src/journal/journald-syslog.h \
2939 src/journal/journald-stream.c \
2940 src/journal/journald-stream.h \
2941 src/journal/journald-server.c \
2942 src/journal/journald-server.h \
2943 src/journal/journald-console.c \
2944 src/journal/journald-console.h \
2945 src/journal/journald-native.c \
2946 src/journal/journald-native.h \
2947 src/journal/journald-rate-limit.c \
2948 src/journal/journald-rate-limit.h \
2949 src/journal/journal-internal.h
2951 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2952 libsystemd_journal_internal_la_CFLAGS = \
2955 libsystemd_journal_internal_la_LIBADD = \
2956 libsystemd-audit.la \
2957 libsystemd-daemon.la \
2959 libsystemd-shared.la \
2962 nodist_libsystemd_journal_internal_la_SOURCES = \
2963 src/journal/journald-gperf.c
2966 libsystemd_journal_internal_la_LIBADD += \
2967 libsystemd-login-internal.la
2971 libsystemd_journal_internal_la_LIBADD += \
2976 libsystemd_journal_la_SOURCES += \
2977 src/journal/compress.c
2979 libsystemd_journal_la_CFLAGS += \
2982 libsystemd_journal_la_LIBADD += \
2985 libsystemd_journal_internal_la_CFLAGS += \
2988 libsystemd_journal_internal_la_LIBADD += \
2994 libsystemd_journal_la_SOURCES += \
2995 src/journal/journal-authenticate.c \
2996 src/journal/journal-authenticate.h \
2997 src/journal/fsprg.c \
3000 libsystemd_journal_la_CFLAGS += \
3004 libsystemd_journal_la_LIBADD += \
3007 libsystemd_journal_internal_la_CFLAGS += \
3011 libsystemd_journal_internal_la_LIBADD += \
3015 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3016 # needed. Also, grant read access to new journal files to members of
3017 # "adm" and "wheel".
3018 libsystemd-journal-install-hook:
3019 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3020 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3021 -chown 0:0 $(DESTDIR)/var/log/journal
3022 -chmod 755 $(DESTDIR)/var/log/journal
3023 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3024 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3026 libsystemd-journal-uninstall-hook:
3027 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3029 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3030 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3032 # ------------------------------------------------------------------------------
3034 # Update catalog on installation. Do not bother if installing
3035 # in DESTDIR, since this is likely for packaging purposes.
3036 catalog-update-hook:
3037 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3039 INSTALL_DATA_HOOKS += \
3042 catalog-remove-hook:
3043 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3045 UNINSTALL_DATA_HOOKS += \
3054 test-journal-syslog \
3055 test-journal-match \
3056 test-journal-stream \
3058 test-journal-verify \
3059 test-journal-interleaving \
3063 pkginclude_HEADERS += \
3064 src/systemd/sd-journal.h \
3065 src/systemd/sd-messages.h \
3066 src/systemd/_sd-common.h
3068 lib_LTLIBRARIES += \
3069 libsystemd-journal.la
3071 noinst_LTLIBRARIES += \
3072 libsystemd-journal-internal.la
3074 rootlibexec_PROGRAMS += \
3077 rootbin_PROGRAMS += \
3083 dist_systemunit_DATA += \
3084 units/systemd-journald.socket
3086 nodist_systemunit_DATA += \
3087 units/systemd-journald.service \
3088 units/systemd-journal-flush.service
3090 dist_pkgsysconf_DATA += \
3091 src/journal/journald.conf
3093 pkgconfiglib_DATA += \
3094 src/journal/libsystemd-journal.pc
3096 dist_catalog_DATA = \
3097 catalog/systemd.catalog
3099 SOCKETS_TARGET_WANTS += \
3100 systemd-journald.socket
3101 SYSINIT_TARGET_WANTS += \
3102 systemd-journald.service \
3103 systemd-journal-flush.service
3106 src/journal/libsystemd-journal.pc.in \
3107 src/journal/libsystemd-journal.sym \
3108 units/systemd-journald.service.in \
3109 units/systemd-journal-flush.service.in \
3110 src/journal/journald-gperf.gperf
3113 src/journal/journald-gperf.c
3115 # ------------------------------------------------------------------------------
3117 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3119 rootlibexec_PROGRAMS += \
3120 systemd-journal-gatewayd
3122 systemd_journal_gatewayd_SOURCES = \
3123 src/journal/journal-gatewayd.c \
3124 src/journal/microhttpd-util.h \
3125 src/journal/microhttpd-util.c
3127 systemd_journal_gatewayd_LDADD = \
3128 libsystemd-shared.la \
3129 libsystemd-logs.la \
3130 libsystemd-journal-internal.la \
3131 libsystemd-id128-internal.la \
3132 libsystemd-daemon.la \
3136 systemd_journal_gatewayd_CFLAGS = \
3138 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3139 $(MICROHTTPD_CFLAGS)
3141 dist_systemunit_DATA += \
3142 units/systemd-journal-gatewayd.socket
3144 nodist_systemunit_DATA += \
3145 units/systemd-journal-gatewayd.service
3147 dist_gatewayddocumentroot_DATA = \
3148 src/journal/browse.html
3153 units/systemd-journal-gatewayd.service.in
3155 # ------------------------------------------------------------------------------
3157 systemd_socket_proxyd_SOURCES = \
3158 src/socket-proxy/socket-proxyd.c
3160 systemd_socket_proxyd_LDADD = \
3161 libsystemd-shared.la \
3162 libsystemd-logs.la \
3163 libsystemd-journal-internal.la \
3164 libsystemd-id128-internal.la \
3165 libsystemd-daemon.la \
3168 # ------------------------------------------------------------------------------
3170 systemd_coredump_SOURCES = \
3171 src/journal/coredump.c
3173 systemd_coredump_LDADD = \
3174 libsystemd-journal-internal.la \
3175 libsystemd-label.la \
3176 libsystemd-shared.la
3179 systemd_coredump_LDADD += \
3180 libsystemd-login-internal.la
3183 rootlibexec_PROGRAMS += \
3186 systemd_coredumpctl_SOURCES = \
3187 src/journal/coredumpctl.c
3189 systemd_coredumpctl_LDADD = \
3190 libsystemd-shared.la \
3191 libsystemd-journal.la \
3192 libsystemd-journal-internal.la \
3193 libsystemd-id128-internal.la
3198 dist_bashcompletion_DATA += \
3199 shell-completion/bash/systemd-coredumpctl
3201 dist_zshcompletion_DATA += \
3202 shell-completion/zsh/_systemd-coredumpctl
3205 sysctl.d/50-coredump.conf
3208 sysctl.d/50-coredump.conf
3212 sysctl.d/50-coredump.conf.in
3214 # ------------------------------------------------------------------------------
3216 systemd_binfmt_SOURCES = \
3219 systemd_binfmt_LDADD = \
3220 libsystemd-shared.la
3222 rootlibexec_PROGRAMS += \
3225 dist_systemunit_DATA += \
3226 units/proc-sys-fs-binfmt_misc.automount \
3227 units/proc-sys-fs-binfmt_misc.mount
3229 nodist_systemunit_DATA += \
3230 units/systemd-binfmt.service
3233 $(prefix)/lib/binfmt.d \
3234 $(sysconfdir)/binfmt.d
3236 SYSINIT_TARGET_WANTS += \
3237 systemd-binfmt.service \
3238 proc-sys-fs-binfmt_misc.automount
3243 units/systemd-binfmt.service.in
3245 # ------------------------------------------------------------------------------
3247 systemd_vconsole_setup_SOURCES = \
3248 src/vconsole/vconsole-setup.c
3250 systemd_vconsole_setup_LDADD = \
3251 libsystemd-shared.la
3253 rootlibexec_PROGRAMS += \
3254 systemd-vconsole-setup
3256 nodist_systemunit_DATA += \
3257 units/systemd-vconsole-setup.service
3259 SYSINIT_TARGET_WANTS += \
3260 systemd-vconsole-setup.service
3264 units/systemd-vconsole-setup.service.in
3266 # ------------------------------------------------------------------------------
3268 systemd_readahead_SOURCES = \
3269 src/readahead/readahead.c \
3270 src/readahead/readahead-collect.c \
3271 src/readahead/readahead-replay.c \
3272 src/readahead/readahead-analyze.c \
3273 src/readahead/readahead-common.c \
3274 src/readahead/readahead-common.h
3276 systemd_readahead_LDADD = \
3277 libsystemd-shared.la \
3278 libsystemd-daemon.la \
3282 src/readahead/sd-readahead.c \
3283 src/systemd/sd-readahead.h
3285 rootlibexec_PROGRAMS += \
3288 dist_systemunit_DATA += \
3289 units/systemd-readahead-drop.service \
3290 units/systemd-readahead-done.timer
3292 nodist_systemunit_DATA += \
3293 units/systemd-readahead-collect.service \
3294 units/systemd-readahead-replay.service \
3295 units/systemd-readahead-done.service
3300 units/systemd-readahead-collect.service.in \
3301 units/systemd-readahead-replay.service.in \
3302 units/systemd-readahead-done.service.in
3304 # ------------------------------------------------------------------------------
3306 systemd_bootchart_SOURCES = \
3307 src/bootchart/bootchart.c \
3308 src/bootchart/bootchart.h \
3309 src/bootchart/store.c \
3310 src/bootchart/store.h \
3311 src/bootchart/svg.c \
3314 systemd_bootchart_LDADD = \
3315 libsystemd-shared.la \
3316 libsystemd-journal.la
3318 rootlibexec_PROGRAMS += \
3321 dist_pkgsysconf_DATA += \
3322 src/bootchart/bootchart.conf
3325 # ------------------------------------------------------------------------------
3326 if ENABLE_QUOTACHECK
3327 rootlibexec_PROGRAMS += \
3330 nodist_systemunit_DATA += \
3331 units/systemd-quotacheck.service
3333 systemd_quotacheck_SOURCES = \
3334 src/quotacheck/quotacheck.c
3336 systemd_quotacheck_LDADD = \
3337 libsystemd-shared.la
3341 units/systemd-quotacheck.service.in
3343 nodist_systemunit_DATA += \
3344 units/quotaon.service
3346 # ------------------------------------------------------------------------------
3347 if ENABLE_RANDOMSEED
3348 rootlibexec_PROGRAMS += \
3351 nodist_systemunit_DATA += \
3352 units/systemd-random-seed.service
3354 systemd_random_seed_SOURCES = \
3355 src/random-seed/random-seed.c
3357 systemd_random_seed_LDADD = \
3358 libsystemd-label.la \
3359 libsystemd-shared.la
3361 SYSINIT_TARGET_WANTS += \
3362 systemd-random-seed.service
3367 units/systemd-random-seed.service.in
3369 # ------------------------------------------------------------------------------
3371 rootlibexec_PROGRAMS += \
3374 nodist_systemunit_DATA += \
3375 units/systemd-backlight@.service
3377 systemd_backlight_SOURCES = \
3378 src/backlight/backlight.c
3380 systemd_backlight_LDADD = \
3381 libsystemd-label.la \
3382 libsystemd-shared.la \
3387 units/systemd-backlight@.service.in
3389 # ------------------------------------------------------------------------------
3391 rootlibexec_PROGRAMS += \
3394 nodist_systemunit_DATA += \
3395 units/systemd-rfkill@.service
3397 systemd_rfkill_SOURCES = \
3400 systemd_rfkill_LDADD = \
3401 libsystemd-label.la \
3402 libsystemd-shared.la \
3407 units/systemd-rfkill@.service.in
3409 # ------------------------------------------------------------------------------
3410 if HAVE_LIBCRYPTSETUP
3411 rootlibexec_PROGRAMS += \
3414 systemgenerator_PROGRAMS += \
3415 systemd-cryptsetup-generator
3417 dist_systemunit_DATA += \
3418 units/cryptsetup.target
3420 systemd_cryptsetup_SOURCES = \
3421 src/cryptsetup/cryptsetup.c
3423 systemd_cryptsetup_CFLAGS = \
3425 $(LIBCRYPTSETUP_CFLAGS)
3427 systemd_cryptsetup_LDADD = \
3428 libsystemd-label.la \
3429 libsystemd-shared.la \
3431 $(LIBCRYPTSETUP_LIBS)
3433 systemd_cryptsetup_generator_SOURCES = \
3434 src/cryptsetup/cryptsetup-generator.c
3436 systemd_cryptsetup_generator_LDADD = \
3437 libsystemd-label.la \
3438 libsystemd-shared.la
3440 SYSINIT_TARGET_WANTS += \
3445 # ------------------------------------------------------------------------------
3447 systemd_hostnamed_SOURCES = \
3448 src/hostname/hostnamed.c
3450 systemd_hostnamed_LDADD = \
3451 libsystemd-label.la \
3452 libsystemd-shared.la \
3453 libsystemd-daemon.la \
3456 rootlibexec_PROGRAMS += \
3459 nodist_systemunit_DATA += \
3460 units/systemd-hostnamed.service
3462 dist_dbuspolicy_DATA += \
3463 src/hostname/org.freedesktop.hostname1.conf
3465 dist_dbussystemservice_DATA += \
3466 src/hostname/org.freedesktop.hostname1.service
3468 polkitpolicy_files += \
3469 src/hostname/org.freedesktop.hostname1.policy
3471 SYSTEM_UNIT_ALIASES += \
3472 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3474 hostnamectl_SOURCES = \
3475 src/hostname/hostnamectl.c
3477 hostnamectl_CFLAGS = \
3481 hostnamectl_LDADD = \
3482 libsystemd-shared.la \
3483 libsystemd-dbus.la \
3484 libsystemd-id128-internal.la
3489 dist_bashcompletion_DATA += \
3490 shell-completion/bash/hostnamectl
3492 dist_zshcompletion_DATA += \
3493 shell-completion/zsh/_hostnamectl
3497 polkitpolicy_in_files += \
3498 src/hostname/org.freedesktop.hostname1.policy.in
3501 units/systemd-hostnamed.service.in
3503 # ------------------------------------------------------------------------------
3505 systemd_localed_SOURCES = \
3506 src/locale/localed.c
3508 systemd_localed_LDADD = \
3509 libsystemd-label.la \
3510 libsystemd-shared.la \
3511 libsystemd-daemon.la \
3514 nodist_systemunit_DATA += \
3515 units/systemd-localed.service
3517 rootlibexec_PROGRAMS += \
3520 dist_dbuspolicy_DATA += \
3521 src/locale/org.freedesktop.locale1.conf
3523 dist_dbussystemservice_DATA += \
3524 src/locale/org.freedesktop.locale1.service
3526 polkitpolicy_files += \
3527 src/locale/org.freedesktop.locale1.policy
3529 SYSTEM_UNIT_ALIASES += \
3530 systemd-localed.service dbus-org.freedesktop.locale1.service
3532 dist_pkgdata_DATA += \
3533 src/locale/kbd-model-map
3535 dist_noinst_SCRIPT = \
3536 src/locale/generate-kbd-model-map
3538 update-kbd-model-map: src/locale/generate-kbd-model-map
3539 $PYTHON $< > src/locale/kbd-model-map
3541 localectl_SOURCES = \
3542 src/locale/localectl.c
3544 localectl_CFLAGS = \
3549 libsystemd-shared.la \
3550 libsystemd-dbus.la \
3551 libsystemd-id128-internal.la
3556 dist_bashcompletion_DATA += \
3557 shell-completion/bash/localectl
3559 dist_zshcompletion_DATA += \
3560 shell-completion/zsh/_localectl
3564 polkitpolicy_in_files += \
3565 src/locale/org.freedesktop.locale1.policy.in
3568 units/systemd-localed.service.in
3570 # ------------------------------------------------------------------------------
3572 systemd_timedated_SOURCES = \
3573 src/timedate/timedated.c
3575 systemd_timedated_LDADD = \
3576 libsystemd-label.la \
3577 libsystemd-shared.la \
3578 libsystemd-daemon.la \
3581 rootlibexec_PROGRAMS += \
3584 dist_dbussystemservice_DATA += \
3585 src/timedate/org.freedesktop.timedate1.service
3587 dist_dbuspolicy_DATA += \
3588 src/timedate/org.freedesktop.timedate1.conf
3590 nodist_systemunit_DATA += \
3591 units/systemd-timedated.service
3593 polkitpolicy_files += \
3594 src/timedate/org.freedesktop.timedate1.policy
3597 $(prefix)/lib/systemd/ntp-units.d \
3598 $(sysconfdir)/systemd/ntp-units.d
3600 SYSTEM_UNIT_ALIASES += \
3601 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3603 timedatectl_SOURCES = \
3604 src/timedate/timedatectl.c
3606 timedatectl_CFLAGS = \
3610 timedatectl_LDADD = \
3611 libsystemd-shared.la \
3617 dist_bashcompletion_DATA += \
3618 shell-completion/bash/timedatectl
3620 dist_zshcompletion_DATA += \
3621 shell-completion/zsh/_timedatectl
3624 polkitpolicy_in_files += \
3625 src/timedate/org.freedesktop.timedate1.policy.in
3628 units/systemd-timedated.service.in
3630 # ------------------------------------------------------------------------------
3632 libnss_myhostname_la_SOURCES = \
3633 src/nss-myhostname/nss-myhostname.c \
3634 src/nss-myhostname/ifconf.h \
3635 src/nss-myhostname/netlink.c
3637 libnss_myhostname_la_LDFLAGS = \
3645 lib_LTLIBRARIES += \
3646 libnss_myhostname.la
3649 # ------------------------------------------------------------------------------
3651 systemd_machined_SOURCES = \
3652 src/machine/machined.c \
3653 src/machine/machined.h
3655 systemd_machined_CFLAGS = \
3656 $(libsystemd_machine_core_la_CFLAGS)
3658 systemd_machined_LDADD = \
3659 libsystemd-machine-core.la \
3660 $(libsystemd_machine_core_la_LIBADD)
3662 rootlibexec_PROGRAMS += \
3665 libsystemd_machine_core_la_SOURCES = \
3666 src/machine/machined-dbus.c \
3667 src/machine/machine.c \
3668 src/machine/machine.h \
3669 src/machine/machine-dbus.c
3671 libsystemd_machine_core_la_CFLAGS = \
3675 libsystemd_machine_core_la_LIBADD = \
3676 libsystemd-label.la \
3677 libsystemd-audit.la \
3678 libsystemd-shared.la \
3679 libsystemd-daemon.la \
3680 libsystemd-dbus.la \
3681 libsystemd-id128-internal.la \
3684 noinst_LTLIBRARIES += \
3685 libsystemd-machine-core.la
3687 machinectl_SOURCES = \
3688 src/machine/machinectl.c
3690 machinectl_CFLAGS = \
3694 machinectl_LDADD = \
3695 libsystemd-shared.la \
3696 libsystemd-dbus.la \
3699 rootbin_PROGRAMS += \
3702 test_machine_tables_SOURCES = \
3703 src/machine/test-machine-tables.c
3705 test_machine_tables_CFLAGS = \
3709 test_machine_tables_LDADD = \
3710 libsystemd-machine-core.la
3715 nodist_systemunit_DATA += \
3716 units/systemd-machined.service
3718 dist_systemunit_DATA += \
3721 dist_dbussystemservice_DATA += \
3722 src/machine/org.freedesktop.machine1.service
3724 dist_dbuspolicy_DATA += \
3725 src/machine/org.freedesktop.machine1.conf
3727 dist_zshcompletion_DATA += \
3728 shell-completion/zsh/_machinectl
3730 SYSTEM_UNIT_ALIASES += \
3731 systemd-machined.service dbus-org.freedesktop.machine1.service
3734 units/systemd-machined.service.in
3738 # ------------------------------------------------------------------------------
3740 systemd_logind_SOURCES = \
3741 src/login/logind.c \
3744 nodist_systemd_logind_SOURCES = \
3745 src/login/logind-gperf.c
3747 systemd_logind_CFLAGS = \
3748 $(libsystemd_logind_core_la_CFLAGS)
3750 systemd_logind_LDADD = \
3751 libsystemd-logind-core.la \
3752 $(libsystemd_logind_core_la_LIBADD)
3754 libsystemd_logind_core_la_SOURCES = \
3755 src/login/logind-core.c \
3756 src/login/logind-dbus.c \
3757 src/login/logind-device.c \
3758 src/login/logind-device.h \
3759 src/login/logind-button.c \
3760 src/login/logind-button.h \
3761 src/login/logind-action.c \
3762 src/login/logind-action.h \
3763 src/login/logind-seat.c \
3764 src/login/logind-seat.h \
3765 src/login/logind-session.c \
3766 src/login/logind-session.h \
3767 src/login/logind-session-device.c \
3768 src/login/logind-session-device.h \
3769 src/login/logind-user.c \
3770 src/login/logind-user.h \
3771 src/login/logind-inhibit.c \
3772 src/login/logind-inhibit.h \
3773 src/login/logind-session-dbus.c \
3774 src/login/logind-seat-dbus.c \
3775 src/login/logind-user-dbus.c \
3776 src/login/logind-acl.h \
3777 src/login/login-shared.c \
3778 src/login/login-shared.h
3780 libsystemd_logind_core_la_CFLAGS = \
3784 libsystemd_logind_core_la_LIBADD = \
3785 libsystemd-label.la \
3786 libsystemd-audit.la \
3787 libsystemd-shared.la \
3788 libsystemd-daemon.la \
3789 libsystemd-dbus.la \
3790 libsystemd-id128-internal.la \
3794 libsystemd_logind_core_la_SOURCES += \
3795 src/login/logind-acl.c
3797 libsystemd_logind_core_la_LIBADD += \
3801 noinst_LTLIBRARIES += \
3802 libsystemd-logind-core.la
3804 systemd_user_sessions_SOURCES = \
3805 src/login/user-sessions.c
3807 systemd_user_sessions_LDADD = \
3808 libsystemd-shared.la
3810 rootlibexec_PROGRAMS += \
3812 systemd-user-sessions
3814 loginctl_SOURCES = \
3815 src/login/loginctl.c \
3816 src/login/sysfs-show.c
3823 libsystemd-shared.la \
3824 libsystemd-dbus.la \
3827 rootbin_PROGRAMS += \
3830 dist_bashcompletion_DATA += \
3831 shell-completion/bash/loginctl
3833 dist_zshcompletion_DATA += \
3834 shell-completion/zsh/_loginctl \
3835 shell-completion/zsh/_systemd-inhibit
3837 systemd_inhibit_SOURCES = \
3840 systemd_inhibit_CFLAGS = \
3844 systemd_inhibit_LDADD = \
3845 libsystemd-shared.la \
3848 rootbin_PROGRAMS += \
3851 test_login_SOURCES = \
3852 src/login/test-login.c
3854 test_login_LDADD = \
3855 libsystemd-login-internal.la \
3856 libsystemd-shared.la
3858 test_login_shared_SOURCES = \
3859 src/login/test-login-shared.c
3861 test_login_shared_LDADD = \
3862 libsystemd-login-internal.la \
3863 libsystemd-shared.la
3865 test_inhibit_SOURCES = \
3866 src/login/test-inhibit.c
3868 test_inhibit_LDADD = \
3869 libsystemd-shared.la \
3872 test_inhibit_CFLAGS = \
3876 test_login_tables_SOURCES = \
3877 src/login/test-login-tables.c
3879 test_login_tables_CFLAGS = \
3883 test_login_tables_LDADD = \
3884 libsystemd-logind-core.la
3894 libsystemd_login_la_SOURCES = \
3895 src/login/sd-login.c \
3896 src/systemd/sd-login.h \
3897 src/login/login-shared.c \
3898 src/login/login-shared.h
3900 libsystemd_login_la_CFLAGS = \
3904 libsystemd_login_la_LDFLAGS = \
3906 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3907 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3909 libsystemd_login_la_LIBADD = \
3910 libsystemd-shared.la \
3911 libsystemd-daemon-internal.la \
3914 libsystemd_login_internal_la_SOURCES = \
3915 $(libsystemd_login_la_SOURCES)
3918 pam_systemd_la_SOURCES = \
3919 src/login/pam-module.c
3921 pam_systemd_la_CFLAGS = \
3927 pam_systemd_la_LDFLAGS = \
3933 -export-symbols-regex '^pam_sm_.*'
3935 pam_systemd_la_LIBADD = \
3936 libsystemd-audit.la \
3937 libsystemd-dbus.la \
3938 libsystemd-shared.la \
3939 libsystemd-daemon-internal.la \
3943 pamlib_LTLIBRARIES = \
3946 dist_pamconf_DATA = \
3947 src/login/systemd-user
3950 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3951 libsystemd-login-install-hook:
3952 libname=libsystemd-login.so && $(move-to-rootlibdir)
3954 libsystemd-login-uninstall-hook:
3955 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3957 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3958 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
3960 nodist_systemunit_DATA += \
3961 units/systemd-logind.service \
3962 units/systemd-user-sessions.service
3964 dist_systemunit_DATA += \
3967 dist_dbussystemservice_DATA += \
3968 src/login/org.freedesktop.login1.service
3970 dist_dbuspolicy_DATA += \
3971 src/login/org.freedesktop.login1.conf
3973 dist_pkgsysconf_DATA += \
3974 src/login/logind.conf
3976 pkginclude_HEADERS += \
3977 src/systemd/sd-login.h
3979 lib_LTLIBRARIES += \
3982 noinst_LTLIBRARIES += \
3983 libsystemd-login-internal.la
3985 pkgconfiglib_DATA += \
3986 src/login/libsystemd-login.pc
3988 polkitpolicy_files += \
3989 src/login/org.freedesktop.login1.policy
3994 MULTI_USER_TARGET_WANTS += \
3995 systemd-logind.service \
3996 systemd-user-sessions.service
3998 SYSTEM_UNIT_ALIASES += \
3999 systemd-logind.service dbus-org.freedesktop.login1.service
4001 systemd_multi_seat_x_SOURCES = \
4002 src/login/multi-seat-x.c
4004 systemd_multi_seat_x_LDADD = \
4005 libsystemd-label.la \
4006 libsystemd-shared.la
4008 rootlibexec_PROGRAMS += \
4009 systemd-multi-seat-x
4011 dist_udevrules_DATA += \
4012 src/login/70-uaccess.rules \
4013 src/login/70-power-switch.rules
4015 nodist_udevrules_DATA += \
4016 src/login/71-seat.rules \
4017 src/login/73-seat-late.rules
4020 src/login/logind-gperf.c \
4021 src/login/71-seat.rules \
4022 src/login/73-seat-late.rules
4025 polkitpolicy_in_files += \
4026 src/login/org.freedesktop.login1.policy.in
4029 src/login/logind-gperf.gperf \
4030 src/login/libsystemd-login.pc.in \
4031 src/login/libsystemd-login.sym \
4032 src/login/71-seat.rules.in \
4033 src/login/73-seat-late.rules.in \
4034 units/systemd-logind.service.in \
4035 units/systemd-user-sessions.service.in
4037 # ------------------------------------------------------------------------------
4038 if HAVE_PYTHON_DEVEL
4039 pkgpyexec_LTLIBRARIES = \
4046 _journal_la_SOURCES = \
4047 src/python-systemd/_journal.c
4049 _journal_la_CFLAGS = \
4051 -fvisibility=default \
4052 $(PYTHON_DEVEL_CFLAGS)
4054 _journal_la_LDFLAGS = \
4060 _journal_la_LIBADD = \
4061 $(PYTHON_DEVEL_LIBS) \
4062 libsystemd-journal.la
4064 id128_la_SOURCES = \
4065 src/python-systemd/id128.c \
4066 src/python-systemd/id128-constants.h \
4067 src/python-systemd/pyutil.c \
4068 src/python-systemd/pyutil.h
4072 -fvisibility=default \
4073 $(PYTHON_DEVEL_CFLAGS) \
4074 -I$(top_builddir)/src/python-systemd
4076 id128_la_LDFLAGS = \
4083 $(PYTHON_DEVEL_LIBS) \
4086 _daemon_la_SOURCES = \
4087 src/python-systemd/_daemon.c \
4088 src/python-systemd/pyutil.c \
4089 src/python-systemd/pyutil.h
4091 _daemon_la_CFLAGS = \
4093 -fvisibility=default \
4094 $(PYTHON_DEVEL_CFLAGS) \
4095 -I$(top_builddir)/src/python-systemd
4097 _daemon_la_LDFLAGS = \
4103 _daemon_la_LIBADD = \
4104 $(PYTHON_DEVEL_LIBS) \
4105 libsystemd-daemon.la
4107 _reader_la_SOURCES = \
4108 src/python-systemd/_reader.c \
4109 src/python-systemd/pyutil.c \
4110 src/python-systemd/pyutil.h
4112 _reader_la_CFLAGS = \
4114 -fvisibility=default \
4115 $(PYTHON_DEVEL_CFLAGS)
4117 _reader_la_LDFLAGS = \
4123 _reader_la_LIBADD = \
4124 $(PYTHON_DEVEL_LIBS) \
4125 libsystemd-journal.la \
4126 libsystemd-id128.la \
4127 libsystemd-shared.la \
4128 libsystemd-daemon-internal.la \
4131 login_la_SOURCES = \
4132 src/python-systemd/login.c \
4133 src/python-systemd/pyutil.c \
4134 src/python-systemd/pyutil.h
4138 -fvisibility=default \
4139 $(PYTHON_DEVEL_CFLAGS)
4141 login_la_LDFLAGS = \
4148 $(PYTHON_DEVEL_LIBS) \
4149 libsystemd-journal.la \
4150 libsystemd-login.la \
4151 libsystemd-shared.la \
4152 libsystemd-daemon-internal.la \
4155 dist_pkgpyexec_PYTHON = \
4156 src/python-systemd/journal.py \
4157 src/python-systemd/daemon.py \
4158 src/python-systemd/__init__.py
4160 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4161 $(AM_V_at)$(MKDIR_P) $(dir $@)
4162 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4165 src/python-systemd/id128-constants.h
4167 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4169 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4170 $(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/
4171 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4174 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4175 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4178 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4179 $(MAKE) DESTDIR="$$dir" install && \
4180 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4185 CLEAN_LOCAL_HOOKS += clean-sphinx
4188 -rm -rf docs/html/python-systemd/
4190 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4192 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4193 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4195 # ------------------------------------------------------------------------------
4197 '|rootlibexecdir=$(rootlibexecdir)|' \
4198 '|rootbindir=$(rootbindir)|' \
4199 '|bindir=$(bindir)|' \
4200 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4201 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4202 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4203 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4204 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4205 '|pkgdatadir=$(pkgdatadir)|' \
4206 '|systemunitdir=$(systemunitdir)|' \
4207 '|userunitdir=$(userunitdir)|' \
4208 '|systempresetdir=$(systempresetdir)|' \
4209 '|userpresetdir=$(userpresetdir)|' \
4210 '|udevhwdbdir=$(udevhwdbdir)|' \
4211 '|udevrulesdir=$(udevrulesdir)|' \
4212 '|catalogdir=$(catalogdir)|' \
4213 '|tmpfilesdir=$(tmpfilesdir)|' \
4214 '|sysctldir=$(sysctldir)|' \
4215 '|systemgeneratordir=$(systemgeneratordir)|' \
4216 '|usergeneratordir=$(usergeneratordir)|' \
4217 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4218 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4219 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4220 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4221 '|prefix=$(prefix)|' \
4222 '|exec_prefix=$(exec_prefix)|' \
4223 '|libdir=$(libdir)|' \
4224 '|includedir=$(includedir)|' \
4225 '|VERSION=$(VERSION)|' \
4226 '|rootprefix=$(rootprefix)|' \
4227 '|udevlibexecdir=$(udevlibexecdir)|' \
4228 '|SUSHELL=$(SUSHELL)|' \
4229 '|DEBUGTTY=$(DEBUGTTY)|' \
4232 '|MKDIR_P=$(MKDIR_P)|' \
4233 '|QUOTAON=$(QUOTAON)|' \
4234 '|QUOTACHECK=$(QUOTACHECK)|' \
4235 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4236 '|VARLOGDIR=$(varlogdir)|' \
4237 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4238 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4239 '|PYTHON=$(PYTHON)|' \
4240 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4243 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4244 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4247 units/%: units/%.in Makefile
4250 man/%: man/%.in Makefile
4253 sysctl.d/%: sysctl.d/%.in Makefile
4256 %.pc: %.pc.in Makefile
4259 src/core/macros.%: src/core/macros.%.in Makefile
4262 src/%.policy.in: src/%.policy.in.in Makefile
4265 %.rules: %.rules.in Makefile
4268 %.sh: %.sh.in Makefile
4270 $(AM_V_GEN)chmod +x $@
4272 src/%.c: src/%.gperf
4273 $(AM_V_at)$(MKDIR_P) $(dir $@)
4274 $(AM_V_GPERF)$(GPERF) < $< > $@
4277 $(AM_V_at)$(MKDIR_P) $(dir $@)
4278 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4280 units/%: units/%.m4 Makefile
4281 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4282 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4284 units/user/%: units/%.m4 Makefile
4285 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4286 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4289 nodist_polkitpolicy_DATA = \
4290 $(polkitpolicy_files) \
4291 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4295 $(polkitpolicy_in_files) \
4296 $(polkitpolicy_in_in_files)
4299 $(nodist_systemunit_DATA) \
4300 $(nodist_userunit_DATA) \
4301 $(pkgconfigdata_DATA) \
4302 $(pkgconfiglib_DATA) \
4303 $(nodist_polkitpolicy_DATA)
4305 # ------------------------------------------------------------------------------
4307 man/custom-entities.ent: Makefile
4308 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4309 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4310 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4314 man/custom-entities.ent
4318 --stringparam man.output.quietly 1 \
4319 --stringparam funcsynopsis.style ansi \
4320 --stringparam man.authors.section.enabled 0 \
4321 --stringparam man.copyright.section.enabled 0 \
4322 --stringparam systemd.version $(VERSION) \
4323 --path '$(builddir)/man:$(srcdir)/man'
4325 XSLTPROC_PROCESS_MAN = \
4326 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4328 XSLTPROC_PROCESS_HTML = \
4329 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4331 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4332 $(XSLTPROC_PROCESS_MAN)
4334 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4335 $(XSLTPROC_PROCESS_MAN)
4337 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4338 $(XSLTPROC_PROCESS_MAN)
4340 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4341 $(XSLTPROC_PROCESS_MAN)
4343 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4344 $(XSLTPROC_PROCESS_MAN)
4346 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4347 $(XSLTPROC_PROCESS_HTML)
4350 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4356 man/custom-html.xsl \
4359 # ------------------------------------------------------------------------------
4362 docs/sysvinit/README
4367 docs/sysvinit/README: docs/sysvinit/README.in
4370 docs/var-log/README: docs/var-log/README.in
4374 docs/sysvinit/README \
4379 docs/sysvinit/README.in \
4380 docs/var-log/README.in
4382 SOCKETS_TARGET_WANTS += \
4383 systemd-initctl.socket \
4384 systemd-shutdownd.socket
4387 RUNLEVEL1_TARGET_WANTS += \
4388 systemd-update-utmp-runlevel.service
4389 RUNLEVEL2_TARGET_WANTS += \
4390 systemd-update-utmp-runlevel.service
4391 RUNLEVEL3_TARGET_WANTS += \
4392 systemd-update-utmp-runlevel.service
4393 RUNLEVEL4_TARGET_WANTS += \
4394 systemd-update-utmp-runlevel.service
4395 RUNLEVEL5_TARGET_WANTS += \
4396 systemd-update-utmp-runlevel.service
4398 SYSINIT_TARGET_WANTS += \
4399 systemd-update-utmp.service
4400 LOCAL_FS_TARGET_WANTS += \
4401 systemd-remount-fs.service \
4403 MULTI_USER_TARGET_WANTS += \
4405 systemd-ask-password-wall.path
4406 SYSINIT_TARGET_WANTS += \
4407 dev-hugepages.mount \
4409 sys-kernel-config.mount \
4410 sys-kernel-debug.mount \
4411 sys-fs-fuse-connections.mount \
4412 systemd-sysctl.service \
4413 systemd-ask-password-console.path
4416 SYSTEM_UNIT_ALIASES += \
4417 poweroff.target runlevel0.target \
4418 rescue.target runlevel1.target \
4419 multi-user.target runlevel2.target \
4420 multi-user.target runlevel3.target \
4421 multi-user.target runlevel4.target \
4422 graphical.target runlevel5.target \
4423 reboot.target runlevel6.target
4426 SYSTEM_UNIT_ALIASES += \
4427 graphical.target default.target \
4428 reboot.target ctrl-alt-del.target \
4429 getty@.service autovt@.service
4431 USER_UNIT_ALIASES += \
4432 $(systemunitdir)/shutdown.target shutdown.target \
4433 $(systemunitdir)/sockets.target sockets.target \
4434 $(systemunitdir)/timers.target timers.target \
4435 $(systemunitdir)/paths.target paths.target \
4436 $(systemunitdir)/bluetooth.target bluetooth.target \
4437 $(systemunitdir)/printer.target printer.target \
4438 $(systemunitdir)/sound.target sound.target \
4439 $(systemunitdir)/smartcard.target smartcard.target
4441 GENERAL_ALIASES += \
4442 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4443 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4444 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4445 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4449 $(systemunitdir)/runlevel1.target.wants \
4450 $(systemunitdir)/runlevel2.target.wants \
4451 $(systemunitdir)/runlevel3.target.wants \
4452 $(systemunitdir)/runlevel4.target.wants \
4453 $(systemunitdir)/runlevel5.target.wants
4457 $(prefix)/lib/modules-load.d \
4458 $(sysconfdir)/modules-load.d \
4459 $(prefix)/lib/sysctl.d \
4460 $(sysconfdir)/sysctl.d \
4461 $(prefix)/lib/kernel/install.d \
4462 $(sysconfdir)/kernel/install.d \
4463 $(systemshutdowndir) \
4465 $(systemgeneratordir) \
4466 $(usergeneratordir) \
4469 $(pkgsysconfdir)/system \
4470 $(pkgsysconfdir)/system/multi-user.target.wants \
4471 $(pkgsysconfdir)/system/getty.target.wants \
4472 $(pkgsysconfdir)/user \
4473 $(dbussessionservicedir) \
4474 $(sysconfdir)/xdg/systemd
4476 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4478 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4480 install-data-hook: $(INSTALL_DATA_HOOKS)
4482 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4484 clean-local: $(CLEAN_LOCAL_HOOKS)
4485 rm -rf $(abs_srcdir)/install-tree
4486 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4487 $(abs_srcdir)/hwdb/iab.txt
4489 DISTCHECK_CONFIGURE_FLAGS = \
4490 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4491 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4492 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4493 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4494 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4495 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4496 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4497 --with-rootprefix=$$dc_install_base \
4501 DISTCHECK_CONFIGURE_FLAGS += \
4502 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4503 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4505 DISTCHECK_CONFIGURE_FLAGS += \
4506 --with-sysvinit-path= \
4507 --with-sysvrcnd-path=
4511 DISTCHECK_CONFIGURE_FLAGS += \
4516 ( cd $(top_srcdir)/hwdb && \
4517 wget -N http://www.linux-usb.org/usb.ids \
4518 http://pci-ids.ucw.cz/v2.2/pci.ids \
4519 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4520 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4524 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4525 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4527 upload: all distcheck
4528 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4529 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4530 scp man/*.html tango:public/systemd-man/
4532 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4533 doc-sync: all destdir-sphinx
4534 gtkdoc-rebase --html-dir=docs/libudev/html --online
4535 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4536 gtkdoc-rebase --html-dir=docs/gudev/html --online
4537 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4538 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4539 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4542 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4545 rm -rf $(abs_srcdir)/install-tree
4546 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4547 tree $(abs_srcdir)/install-tree
4549 # Let's run all tests of the test suite, but under valgrind. Let's
4550 # exclude the one perl script we have in there
4551 valgrind-tests: $(TESTS)
4552 for f in $(TESTS) ; do [ "$$f" == "$${f/.pl/}" ] && libtool --mode=execute valgrind --leak-check=full --error-exitcode=55 $(builddir)/$$f ; done