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 # ------------------------------------------------------------------------------
1113 test-strip-tab-ansi \
1124 test/sched_idle_bad.service \
1125 test/sched_idle_ok.service \
1126 test/sched_rr_bad.service \
1127 test/sched_rr_ok.service \
1128 test/sched_rr_change.service
1131 src/test/test-helper.h
1133 test_device_nodes_SOURCES = \
1134 src/test/test-device-nodes.c
1136 test_device_nodes_LDADD = \
1137 libsystemd-shared.la
1139 test_engine_SOURCES = \
1140 src/test/test-engine.c
1142 test_engine_CFLAGS = \
1146 test_engine_LDADD = \
1147 libsystemd-core.la \
1148 libsystemd-daemon.la \
1151 test_job_type_SOURCES = \
1152 src/test/test-job-type.c
1154 test_job_type_CFLAGS = \
1158 test_job_type_LDADD = \
1159 libsystemd-core.la \
1160 libsystemd-daemon.la
1172 test_loopback_SOURCES = \
1173 src/test/test-loopback.c
1175 test_loopback_LDADD = \
1176 libsystemd-shared.la \
1179 test_hostname_SOURCES = \
1180 src/test/test-hostname.c
1182 test_hostname_LDADD = \
1189 test_boot_timestamp_SOURCES = \
1190 src/test/test-boot-timestamps.c
1192 test_boot_timestamp_LDADD = \
1193 libsystemd-shared.la
1196 test_unit_name_SOURCES = \
1197 src/test/test-unit-name.c
1199 test_unit_name_CFLAGS = \
1203 test_unit_name_LDADD = \
1206 test_unit_file_SOURCES = \
1207 src/test/test-unit-file.c
1209 test_unit_file_CFLAGS = \
1213 test_unit_file_LDADD = \
1216 test_utf8_SOURCES = \
1217 src/test/test-utf8.c
1220 libsystemd-shared.la
1222 test_util_SOURCES = \
1223 src/test/test-util.c
1228 test_hashmap_SOURCES = \
1229 src/test/test-hashmap.c
1231 test_hashmap_LDADD = \
1234 test_list_SOURCES = \
1235 src/test/test-list.c
1240 test_tables_SOURCES = \
1241 src/test/test-tables.c \
1242 src/shared/test-tables.h
1244 test_tables_CFLAGS = \
1248 test_tables_LDADD = \
1249 libsystemd-core.la \
1252 test_prioq_SOURCES = \
1253 src/test/test-prioq.c
1255 test_prioq_LDADD = \
1258 test_fileio_SOURCES = \
1259 src/test/test-fileio.c
1261 test_fileio_LDADD = \
1264 test_time_SOURCES = \
1265 src/test/test-time.c
1270 test_log_SOURCES = \
1276 test_ellipsize_SOURCES = \
1277 src/test/test-ellipsize.c
1279 test_ellipsize_LDADD = \
1282 test_date_SOURCES = \
1283 src/test/test-date.c
1288 test_sleep_SOURCES = \
1289 src/test/test-sleep.c
1291 test_sleep_LDADD = \
1294 test_replace_var_SOURCES = \
1295 src/test/test-replace-var.c
1297 test_replace_var_LDADD = \
1298 libsystemd-shared.la
1300 test_calendarspec_SOURCES = \
1301 src/test/test-calendarspec.c
1303 test_calendarspec_LDADD = \
1304 libsystemd-shared.la
1306 test_strip_tab_ansi_SOURCES = \
1307 src/test/test-strip-tab-ansi.c
1309 test_strip_tab_ansi_LDADD = \
1310 libsystemd-shared.la
1312 test_daemon_SOURCES = \
1313 src/test/test-daemon.c
1315 test_daemon_LDADD = \
1316 libsystemd-shared.la \
1317 libsystemd-daemon.la
1319 test_cgroup_SOURCES = \
1320 src/test/test-cgroup.c
1322 test_cgroup_LDADD = \
1323 libsystemd-label.la \
1324 libsystemd-shared.la
1326 test_cgroup_util_SOURCES = \
1327 src/test/test-cgroup-util.c
1329 test_cgroup_util_LDADD = \
1330 libsystemd-label.la \
1331 libsystemd-shared.la \
1332 libsystemd-daemon.la
1334 test_env_replace_SOURCES = \
1335 src/test/test-env-replace.c
1337 test_env_replace_LDADD = \
1338 libsystemd-shared.la
1340 test_strbuf_SOURCES = \
1341 src/test/test-strbuf.c
1343 test_strbuf_LDADD = \
1344 libsystemd-shared.la
1346 test_strv_SOURCES = \
1347 src/test/test-strv.c
1350 libsystemd-shared.la \
1351 libsystemd-units.la \
1352 libsystemd-id128-internal.la
1354 test_path_util_SOURCES = \
1355 src/test/test-path-util.c
1357 test_path_util_LDADD = \
1358 libsystemd-shared.la
1360 test_strxcpyx_SOURCES = \
1361 src/test/test-strxcpyx.c
1363 test_strxcpyx_LDADD = \
1364 libsystemd-shared.la
1366 test_install_SOURCES = \
1367 src/test/test-install.c
1369 test_install_CFLAGS = \
1373 test_install_LDADD = \
1374 libsystemd-units.la \
1375 libsystemd-label.la \
1376 libsystemd-shared.la \
1377 libsystemd-id128-internal.la
1379 test_watchdog_SOURCES = \
1380 src/test/test-watchdog.c
1382 test_watchdog_LDADD = \
1383 libsystemd-shared.la
1385 test_sched_prio_SOURCES = \
1386 src/test/test-sched-prio.c
1388 test_sched_prio_CFLAGS = \
1391 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1393 test_sched_prio_LDADD = \
1394 libsystemd-core.la \
1395 libsystemd-daemon.la
1397 # ------------------------------------------------------------------------------
1398 ## .PHONY so it always rebuilds it
1399 .PHONY: coverage lcov-run lcov-report
1401 # run lcov from scratch, always
1406 coverage_dir = coverage
1407 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1410 # reset run coverage tests
1412 @rm -rf $(coverage_dir)
1413 lcov $(coverage_opts) --zerocounters
1416 # generate report based on current coverage data
1418 $(MKDIR_P) $(coverage_dir)
1419 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1420 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1421 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1422 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1424 # lcov doesn't work properly with vpath builds, make sure that bad
1425 # output is not uploaded by mistake.
1426 coverage-sync: coverage
1427 test "$(builddir)" = "$(srcdir)"
1428 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1431 lcov-run lcov-report:
1432 echo "Need to reconfigure with --enable-coverage"
1435 # ------------------------------------------------------------------------------
1436 systemd_analyze_SOURCES = \
1437 src/analyze/analyze.c
1439 systemd_analyze_CFLAGS = \
1443 systemd_analyze_LDADD = \
1444 libsystemd-shared.la \
1447 # ------------------------------------------------------------------------------
1448 systemd_initctl_SOURCES = \
1449 src/initctl/initctl.c
1451 systemd_initctl_CFLAGS = \
1455 systemd_initctl_LDADD = \
1456 libsystemd-shared.la \
1457 libsystemd-daemon.la \
1460 # ------------------------------------------------------------------------------
1461 systemd_update_utmp_SOURCES = \
1462 src/update-utmp/update-utmp.c
1464 systemd_update_utmp_CFLAGS = \
1469 systemd_update_utmp_LDADD = \
1470 libsystemd-shared.la \
1474 # ------------------------------------------------------------------------------
1475 systemd_shutdownd_SOURCES = \
1476 src/shutdownd/shutdownd.c
1478 systemd_shutdownd_LDADD = \
1479 libsystemd-label.la \
1480 libsystemd-shared.la \
1481 libsystemd-daemon.la
1483 pkginclude_HEADERS += \
1484 src/systemd/sd-shutdown.h
1486 # ------------------------------------------------------------------------------
1487 systemd_shutdown_SOURCES = \
1490 src/core/shutdown.c \
1491 src/core/mount-setup.c \
1492 src/core/mount-setup.h \
1493 src/core/killall.h \
1496 systemd_shutdown_LDADD = \
1497 libsystemd-label.la \
1498 libsystemd-shared.la \
1501 # ------------------------------------------------------------------------------
1503 systemd_modules_load_SOURCES = \
1504 src/modules-load/modules-load.c
1506 systemd_modules_load_CFLAGS = \
1510 systemd_modules_load_LDADD = \
1511 libsystemd-shared.la \
1514 rootlibexec_PROGRAMS += \
1515 systemd-modules-load
1517 nodist_systemunit_DATA += \
1518 units/systemd-modules-load.service
1520 SYSINIT_TARGET_WANTS += \
1521 systemd-modules-load.service
1524 nodist_systemunit_DATA += \
1525 units/kmod-static-nodes.service
1527 SYSINIT_TARGET_WANTS += \
1528 kmod-static-nodes.service
1533 units/systemd-modules-load.service.in \
1534 units/kmod-static-nodes.service.in
1536 # ------------------------------------------------------------------------------
1538 systemd_tmpfiles_SOURCES = \
1539 src/tmpfiles/tmpfiles.c \
1540 src/shared/specifier.c \
1541 src/shared/specifier.h
1543 systemd_tmpfiles_LDADD = \
1544 libsystemd-label.la \
1545 libsystemd-shared.la \
1546 libsystemd-capability.la \
1547 libsystemd-id128-internal.la
1549 rootbin_PROGRAMS += \
1552 dist_systemunit_DATA += \
1553 units/systemd-tmpfiles-clean.timer
1555 nodist_systemunit_DATA += \
1556 units/systemd-tmpfiles-setup-dev.service \
1557 units/systemd-tmpfiles-setup.service \
1558 units/systemd-tmpfiles-clean.service
1560 dist_tmpfiles_DATA = \
1561 tmpfiles.d/systemd.conf \
1562 tmpfiles.d/tmp.conf \
1566 dist_tmpfiles_DATA += \
1567 tmpfiles.d/legacy.conf
1570 SYSINIT_TARGET_WANTS += \
1571 systemd-tmpfiles-setup-dev.service \
1572 systemd-tmpfiles-setup.service
1574 dist_zshcompletion_DATA += \
1575 shell-completion/zsh/_systemd-tmpfiles
1577 TIMERS_TARGET_WANTS += \
1578 systemd-tmpfiles-clean.timer
1582 $(sysconfdir)/tmpfiles.d
1586 units/systemd-tmpfiles-setup-dev.service.in \
1587 units/systemd-tmpfiles-setup.service.in \
1588 units/systemd-tmpfiles-clean.service.in
1590 # ------------------------------------------------------------------------------
1591 systemd_machine_id_setup_SOURCES = \
1592 src/machine-id-setup/machine-id-setup-main.c \
1593 src/core/machine-id-setup.c \
1594 src/core/machine-id-setup.h
1596 systemd_machine_id_setup_LDADD = \
1597 libsystemd-label.la \
1598 libsystemd-shared.la \
1599 libsystemd-id128-internal.la
1601 # ------------------------------------------------------------------------------
1602 systemd_sysctl_SOURCES = \
1605 systemd_sysctl_LDADD = \
1606 libsystemd-shared.la
1608 # ------------------------------------------------------------------------------
1609 systemd_sleep_SOURCES = \
1612 systemd_sleep_LDADD = \
1613 libsystemd-shared.la
1615 # ------------------------------------------------------------------------------
1616 systemd_fsck_SOURCES = \
1619 systemd_fsck_CFLAGS = \
1623 systemd_fsck_LDADD = \
1624 libsystemd-shared.la \
1628 # ------------------------------------------------------------------------------
1629 systemd_ac_power_SOURCES = \
1630 src/ac-power/ac-power.c
1632 systemd_ac_power_LDADD = \
1633 libsystemd-shared.la \
1636 # ------------------------------------------------------------------------------
1637 systemd_detect_virt_SOURCES = \
1638 src/detect-virt/detect-virt.c
1640 systemd_detect_virt_LDADD = \
1641 libsystemd-shared.la
1643 systemd-detect-virt-install-hook:
1644 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1646 INSTALL_EXEC_HOOKS += \
1647 systemd-detect-virt-install-hook
1649 # ------------------------------------------------------------------------------
1650 systemd_delta_SOURCES = \
1653 systemd_delta_LDADD = \
1654 libsystemd-shared.la
1656 # ------------------------------------------------------------------------------
1657 systemd_getty_generator_SOURCES = \
1658 src/getty-generator/getty-generator.c
1660 systemd_getty_generator_LDADD = \
1661 libsystemd-label.la \
1662 libsystemd-shared.la
1664 # ------------------------------------------------------------------------------
1665 systemd_fstab_generator_SOURCES = \
1666 src/fstab-generator/fstab-generator.c \
1667 src/core/mount-setup.c
1669 systemd_fstab_generator_LDADD = \
1670 libsystemd-label.la \
1671 libsystemd-shared.la
1673 # ------------------------------------------------------------------------------
1674 systemd_system_update_generator_SOURCES = \
1675 src/system-update-generator/system-update-generator.c
1677 systemd_system_update_generator_LDADD = \
1678 libsystemd-label.la \
1679 libsystemd-shared.la
1682 # ------------------------------------------------------------------------------
1683 systemgenerator_PROGRAMS += \
1684 systemd-efi-boot-generator
1686 systemd_efi_boot_generator_SOURCES = \
1687 src/efi-boot-generator/efi-boot-generator.c
1689 systemd_efi_boot_generator_LDADD = \
1690 libsystemd-label.la \
1691 libsystemd-shared.la
1693 # ------------------------------------------------------------------------------
1696 src/boot/boot-loader.h \
1697 src/boot/bootctl.c \
1698 src/boot/boot-loader.c \
1702 libsystemd-shared.la \
1703 libsystemd-id128.la \
1704 libsystemd-daemon.la
1710 # ------------------------------------------------------------------------------
1712 systemgenerator_PROGRAMS += \
1713 systemd-gpt-auto-generator
1715 systemd_gpt_auto_generator_SOURCES = \
1716 src/gpt-auto-generator/gpt-auto-generator.c
1718 systemd_gpt_auto_generator_LDADD = \
1719 libsystemd-label.la \
1720 libsystemd-shared.la \
1721 libsystemd-id128-internal.la \
1722 libudev-private.la \
1725 systemd_gpt_auto_generator_CFLAGS = \
1730 # ------------------------------------------------------------------------------
1731 systemd_rc_local_generator_SOURCES = \
1732 src/rc-local-generator/rc-local-generator.c
1734 systemd_rc_local_generator_LDADD = \
1735 libsystemd-label.la \
1736 libsystemd-shared.la
1738 # ------------------------------------------------------------------------------
1739 systemd_remount_fs_SOURCES = \
1740 src/remount-fs/remount-fs.c \
1741 src/core/mount-setup.c \
1742 src/core/mount-setup.h
1744 systemd_remount_fs_LDADD = \
1745 libsystemd-label.la \
1746 libsystemd-shared.la
1748 # ------------------------------------------------------------------------------
1749 systemd_cgroups_agent_SOURCES = \
1750 src/cgroups-agent/cgroups-agent.c
1752 systemd_cgroups_agent_LDADD = \
1753 libsystemd-shared.la \
1756 # ------------------------------------------------------------------------------
1757 systemctl_SOURCES = \
1758 src/systemctl/systemctl.c
1760 systemctl_CFLAGS = \
1765 libsystemd-units.la \
1766 libsystemd-label.la \
1767 libsystemd-shared.la \
1768 libsystemd-daemon.la \
1769 libsystemd-dbus.la \
1772 # ------------------------------------------------------------------------------
1773 systemd_notify_SOURCES = \
1774 src/notify/notify.c \
1775 src/readahead/sd-readahead.c
1777 systemd_notify_LDADD = \
1778 libsystemd-shared.la \
1779 libsystemd-daemon.la
1781 # ------------------------------------------------------------------------------
1782 systemd_ask_password_SOURCES = \
1783 src/ask-password/ask-password.c
1785 systemd_ask_password_LDADD = \
1786 libsystemd-label.la \
1787 libsystemd-shared.la
1789 # ------------------------------------------------------------------------------
1790 systemd_reply_password_SOURCES = \
1791 src/reply-password/reply-password.c
1793 systemd_reply_password_LDADD = \
1794 libsystemd-shared.la
1796 # ------------------------------------------------------------------------------
1797 systemd_cgls_SOURCES = \
1800 systemd_cgls_LDADD = \
1801 libsystemd-shared.la
1803 # ------------------------------------------------------------------------------
1804 systemd_cgtop_SOURCES = \
1807 systemd_cgtop_LDADD = \
1808 libsystemd-shared.la
1810 # ------------------------------------------------------------------------------
1811 systemd_nspawn_SOURCES = \
1812 src/nspawn/nspawn.c \
1813 src/core/mount-setup.c \
1814 src/core/mount-setup.h \
1815 src/core/loopback-setup.c \
1816 src/core/loopback-setup.h
1818 systemd_nspawn_LDADD = \
1819 libsystemd-label.la \
1820 libsystemd-capability.la \
1821 libsystemd-shared.la \
1822 libsystemd-daemon.la \
1823 libsystemd-id128-internal.la \
1826 # ------------------------------------------------------------------------------
1827 systemd_run_SOURCES = \
1830 systemd_run_LDADD = \
1831 libsystemd-label.la \
1832 libsystemd-capability.la \
1833 libsystemd-shared.la \
1834 libsystemd-daemon.la \
1835 libsystemd-id128-internal.la \
1838 # ------------------------------------------------------------------------------
1839 systemd_stdio_bridge_SOURCES = \
1840 src/stdio-bridge/stdio-bridge.c
1842 systemd_stdio_bridge_LDADD = \
1843 libsystemd-shared.la \
1845 libsystemd-daemon.la
1847 # ------------------------------------------------------------------------------
1848 systemd_tty_ask_password_agent_SOURCES = \
1849 src/tty-ask-password-agent/tty-ask-password-agent.c
1851 systemd_tty_ask_password_agent_LDADD = \
1852 libsystemd-label.la \
1853 libsystemd-shared.la
1855 # ------------------------------------------------------------------------------
1856 libsystemd_daemon_la_SOURCES = \
1857 src/libsystemd-daemon/sd-daemon.c
1859 libsystemd_daemon_internal_la_SOURCES = \
1860 $(libsystemd_daemon_la_SOURCES)
1862 libsystemd_daemon_la_CFLAGS = \
1864 -fvisibility=hidden \
1867 libsystemd_daemon_la_LDFLAGS = \
1869 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1870 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1872 libsystemd_daemon_la_LIBADD = \
1875 pkginclude_HEADERS += \
1876 src/systemd/sd-daemon.h
1878 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1879 libsystemd-daemon-install-hook:
1880 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1882 libsystemd-daemon-uninstall-hook:
1883 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1885 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1886 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1888 lib_LTLIBRARIES += \
1889 libsystemd-daemon.la
1891 noinst_LTLIBRARIES += \
1892 libsystemd-daemon-internal.la
1894 pkgconfiglib_DATA += \
1895 src/libsystemd-daemon/libsystemd-daemon.pc
1898 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1899 src/libsystemd-daemon/libsystemd-daemon.sym
1901 # ------------------------------------------------------------------------------
1902 libsystemd_bus_la_SOURCES = \
1903 src/systemd/sd-bus.h \
1904 src/systemd/sd-bus-protocol.h \
1905 src/systemd/sd-bus-vtable.h \
1906 src/systemd/sd-memfd.h \
1907 src/systemd/sd-event.h \
1908 src/libsystemd-bus/sd-bus.c \
1909 src/libsystemd-bus/bus-control.c \
1910 src/libsystemd-bus/bus-control.h \
1911 src/libsystemd-bus/bus-error.c \
1912 src/libsystemd-bus/bus-error.h \
1913 src/libsystemd-bus/bus-internal.c \
1914 src/libsystemd-bus/bus-internal.h \
1915 src/libsystemd-bus/bus-socket.c \
1916 src/libsystemd-bus/bus-socket.h \
1917 src/libsystemd-bus/bus-kernel.c \
1918 src/libsystemd-bus/bus-kernel.h \
1919 src/libsystemd-bus/bus-message.c \
1920 src/libsystemd-bus/bus-message.h \
1921 src/libsystemd-bus/bus-signature.c \
1922 src/libsystemd-bus/bus-signature.h \
1923 src/libsystemd-bus/bus-type.c \
1924 src/libsystemd-bus/bus-type.h \
1925 src/libsystemd-bus/bus-match.c \
1926 src/libsystemd-bus/bus-match.h \
1927 src/libsystemd-bus/bus-bloom.c \
1928 src/libsystemd-bus/bus-bloom.h \
1929 src/libsystemd-bus/bus-introspect.c \
1930 src/libsystemd-bus/bus-introspect.h \
1931 src/libsystemd-bus/bus-objects.c \
1932 src/libsystemd-bus/bus-objects.h \
1933 src/libsystemd-bus/bus-convenience.c \
1934 src/libsystemd-bus/kdbus.h \
1935 src/libsystemd-bus/sd-memfd.c \
1936 src/libsystemd-bus/sd-event.c \
1937 src/libsystemd-bus/bus-util.c \
1938 src/libsystemd-bus/bus-util.h \
1939 src/libsystemd-bus/event-util.h
1941 libsystemd_bus_la_LIBADD = \
1942 libsystemd-id128-internal.la \
1943 libsystemd-shared.la \
1944 libsystemd-daemon.la
1946 libsystemd_bus_la_CFLAGS = \
1950 noinst_LTLIBRARIES += \
1955 test-bus-signature \
1960 test-bus-kernel-bloom \
1961 test-bus-kernel-benchmark \
1963 test-bus-zero-copy \
1964 test-bus-introspect \
1968 noinst_PROGRAMS += \
1971 test_bus_marshal_SOURCES = \
1972 src/libsystemd-bus/test-bus-marshal.c
1974 test_bus_marshal_LDADD = \
1975 libsystemd-shared.la \
1980 test_bus_marshal_CFLAGS = \
1985 test_bus_signature_SOURCES = \
1986 src/libsystemd-bus/test-bus-signature.c
1988 test_bus_signature_LDADD = \
1989 libsystemd-shared.la \
1992 test_bus_chat_SOURCES = \
1993 src/libsystemd-bus/test-bus-chat.c
1995 test_bus_chat_CFLAGS = \
1999 test_bus_chat_LDADD = \
2000 libsystemd-shared.la \
2002 libsystemd-id128-internal.la
2004 test_bus_server_SOURCES = \
2005 src/libsystemd-bus/test-bus-server.c
2007 test_bus_server_CFLAGS = \
2011 test_bus_server_LDADD = \
2012 libsystemd-shared.la \
2014 libsystemd-id128-internal.la
2016 test_bus_objects_SOURCES = \
2017 src/libsystemd-bus/test-bus-objects.c
2019 test_bus_objects_CFLAGS = \
2023 test_bus_objects_LDADD = \
2024 libsystemd-shared.la \
2026 libsystemd-id128-internal.la
2028 test_bus_match_SOURCES = \
2029 src/libsystemd-bus/test-bus-match.c
2031 test_bus_match_LDADD = \
2032 libsystemd-shared.la \
2034 libsystemd-id128-internal.la
2036 test_bus_kernel_SOURCES = \
2037 src/libsystemd-bus/test-bus-kernel.c
2039 test_bus_kernel_LDADD = \
2040 libsystemd-shared.la \
2042 libsystemd-id128-internal.la
2044 test_bus_kernel_bloom_SOURCES = \
2045 src/libsystemd-bus/test-bus-kernel-bloom.c
2047 test_bus_kernel_bloom_LDADD = \
2048 libsystemd-shared.la \
2050 libsystemd-id128-internal.la
2052 test_bus_kernel_benchmark_SOURCES = \
2053 src/libsystemd-bus/test-bus-kernel-benchmark.c
2055 test_bus_kernel_benchmark_LDADD = \
2056 libsystemd-shared.la \
2058 libsystemd-id128-internal.la
2060 test_bus_memfd_SOURCES = \
2061 src/libsystemd-bus/test-bus-memfd.c
2063 test_bus_memfd_LDADD = \
2064 libsystemd-shared.la \
2067 test_bus_zero_copy_SOURCES = \
2068 src/libsystemd-bus/test-bus-zero-copy.c
2070 test_bus_zero_copy_LDADD = \
2071 libsystemd-shared.la \
2074 test_bus_introspect_SOURCES = \
2075 src/libsystemd-bus/test-bus-introspect.c
2077 test_bus_introspect_LDADD = \
2078 libsystemd-shared.la \
2081 test_event_SOURCES = \
2082 src/libsystemd-bus/test-event.c
2084 test_event_LDADD = \
2085 libsystemd-shared.la \
2087 libsystemd-id128-internal.la
2090 src/libsystemd-bus/busctl.c
2093 libsystemd-shared.la \
2096 # ------------------------------------------------------------------------------
2106 include_HEADERS += \
2107 src/libudev/libudev.h
2109 lib_LTLIBRARIES += \
2112 libudev_la_SOURCES =\
2113 src/libudev/libudev-private.h \
2114 src/libudev/libudev.c \
2115 src/libudev/libudev-list.c \
2116 src/libudev/libudev-util.c \
2117 src/libudev/libudev-device.c \
2118 src/libudev/libudev-enumerate.c \
2119 src/libudev/libudev-monitor.c \
2120 src/libudev/libudev-queue.c \
2121 src/libudev/libudev-hwdb-def.h \
2122 src/libudev/libudev-hwdb.c
2124 libudev_la_CFLAGS = \
2128 libudev_la_LDFLAGS = \
2130 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2131 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2133 libudev_la_LIBADD = \
2134 libsystemd-shared.la \
2135 libsystemd-daemon-internal.la \
2136 libsystemd-id128-internal.la
2138 pkgconfiglib_DATA += \
2139 src/libudev/libudev.pc
2142 src/libudev/libudev.pc.in \
2143 src/libudev/libudev.sym
2146 src/libudev/libudev.pc \
2151 $(AM_V_at)$(MKDIR_P) $(dir $@)
2152 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2155 $(AM_V_at)$(MKDIR_P) $(dir $@)
2156 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2158 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2159 libudev-install-hook:
2160 libname=libudev.so && $(move-to-rootlibdir)
2162 libudev-uninstall-hook:
2163 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2165 INSTALL_EXEC_HOOKS += libudev-install-hook
2166 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2168 # ------------------------------------------------------------------------------
2169 noinst_LTLIBRARIES += \
2172 libudev_private_la_SOURCES =\
2173 $(libudev_la_SOURCES) \
2174 src/libudev/libudev-device-private.c \
2175 src/libudev/libudev-queue-private.c
2177 libudev_private_la_CFLAGS = \
2179 -fvisibility=default
2181 libudev_private_la_LIBADD = \
2182 libsystemd-shared.la
2184 # ------------------------------------------------------------------------------
2186 $(sysconfdir)/udev/rules.d \
2187 $(sysconfdir)/udev/hwdb.d
2189 dist_udevrules_DATA += \
2190 rules/99-systemd.rules \
2191 rules/42-usb-hid-pm.rules \
2192 rules/50-udev-default.rules \
2193 rules/60-keyboard.rules \
2194 rules/60-persistent-storage-tape.rules \
2195 rules/60-persistent-serial.rules \
2196 rules/60-persistent-input.rules \
2197 rules/60-persistent-alsa.rules \
2198 rules/60-persistent-storage.rules \
2199 rules/64-btrfs.rules \
2200 rules/75-net-description.rules \
2201 rules/75-tty-description.rules \
2202 rules/78-sound-card.rules \
2203 rules/80-net-name-slot.rules \
2204 rules/95-udev-late.rules
2206 dist_udevhwdb_DATA = \
2207 hwdb/20-pci-vendor-model.hwdb \
2208 hwdb/20-pci-classes.hwdb \
2209 hwdb/20-usb-vendor-model.hwdb \
2210 hwdb/20-usb-classes.hwdb \
2211 hwdb/20-bluetooth-vendor-product.hwdb \
2212 hwdb/20-acpi-vendor.hwdb \
2214 hwdb/60-keyboard.hwdb
2216 udevconfdir = $(sysconfdir)/udev
2217 dist_udevconf_DATA = \
2220 sharepkgconfigdir = $(datadir)/pkgconfig
2221 sharepkgconfig_DATA = \
2225 rules/99-systemd.rules.in \
2229 rules/99-systemd.rules \
2233 units/systemd-udevd.service.in \
2234 units/systemd-udev-trigger.service.in \
2235 units/systemd-udev-settle.service.in
2238 units/systemd-udevd.service \
2239 units/systemd-udev-trigger.service \
2240 units/systemd-udev-settle.service
2242 SOCKETS_TARGET_WANTS += \
2243 systemd-udevd-control.socket \
2244 systemd-udevd-kernel.socket
2245 SYSINIT_TARGET_WANTS += \
2246 systemd-udevd.service \
2247 systemd-udev-trigger.service
2249 rootbin_PROGRAMS += \
2252 rootlibexec_PROGRAMS += \
2255 noinst_LTLIBRARIES += \
2258 src/udev/keyboard-keys.txt: Makefile
2259 $(AM_V_at)$(MKDIR_P) $(dir $@)
2260 $(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/' > $@
2262 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2263 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2265 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2266 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2268 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2269 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2271 libudev_core_la_SOURCES = \
2273 src/udev/udev-event.c \
2274 src/udev/udev-watch.c \
2275 src/udev/udev-node.c \
2276 src/udev/udev-rules.c \
2277 src/udev/udev-ctrl.c \
2278 src/udev/udev-builtin.c \
2279 src/udev/udev-builtin-btrfs.c \
2280 src/udev/udev-builtin-hwdb.c \
2281 src/udev/udev-builtin-input_id.c \
2282 src/udev/udev-builtin-keyboard.c \
2283 src/udev/udev-builtin-net_id.c \
2284 src/udev/udev-builtin-path_id.c \
2285 src/udev/udev-builtin-usb_id.c
2287 nodist_libudev_core_la_SOURCES = \
2288 src/udev/keyboard-keys-from-name.h \
2289 src/udev/keyboard-keys-to-name.h
2292 $(nodist_libudev_core_la_SOURCES)
2295 src/udev/keyboard-keys-from-name.gperf \
2296 src/udev/keyboard-keys.txt
2298 libudev_core_la_CFLAGS = \
2303 libudev_core_la_LIBADD = \
2304 libudev-private.la \
2305 libsystemd-label.la \
2306 libsystemd-daemon-internal.la \
2307 libsystemd-shared.la \
2311 libudev_core_la_CPPFLAGS = \
2313 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2316 libudev_core_la_SOURCES += \
2317 src/udev/udev-builtin-firmware.c
2319 dist_udevrules_DATA += \
2320 rules/50-firmware.rules
2324 libudev_core_la_SOURCES += \
2325 src/udev/udev-builtin-kmod.c
2327 dist_udevrules_DATA += \
2328 rules/80-drivers.rules
2332 libudev_core_la_SOURCES += \
2333 src/udev/udev-builtin-blkid.c
2337 libudev_core_la_SOURCES += \
2338 src/udev/udev-builtin-uaccess.c \
2339 src/login/logind-acl.c \
2340 src/login/sd-login.c \
2341 src/systemd/sd-login.h \
2342 src/login/login-shared.c \
2343 src/login/login-shared.h
2345 libudev_core_la_LIBADD += \
2349 systemd_udevd_SOURCES = \
2352 systemd_udevd_LDADD = \
2356 src/udev/udevadm.c \
2357 src/udev/udevadm-info.c \
2358 src/udev/udevadm-control.c \
2359 src/udev/udevadm-monitor.c \
2360 src/udev/udevadm-hwdb.c \
2361 src/udev/udevadm-settle.c \
2362 src/udev/udevadm-trigger.c \
2363 src/udev/udevadm-test.c \
2364 src/udev/udevadm-test-builtin.c
2368 libsystemd-label.la \
2369 libsystemd-shared.la
2371 # Update hwdb on installation. Do not bother if installing
2372 # in DESTDIR, since this is likely for packaging purposes.
2374 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2376 INSTALL_DATA_HOOKS += \
2380 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2382 # ------------------------------------------------------------------------------
2391 test_libudev_SOURCES = \
2392 src/test/test-libudev.c
2394 test_libudev_LDADD = \
2395 libsystemd-label.la \
2396 libsystemd-shared.la \
2399 test_udev_SOURCES = \
2400 src/test/test-udev.c
2404 libsystemd-shared.la \
2410 test_udev_LDADD += \
2417 # packed sysfs test tree
2419 $(AM_V_at)$(MKDIR_P) $(dir $@)
2420 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2424 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2429 test/rules-test.sh \
2430 test/rule-syntax-check.py
2432 # ------------------------------------------------------------------------------
2434 src/udev/ata_id/ata_id.c
2437 libudev-private.la \
2438 libsystemd-shared.la
2440 udevlibexec_PROGRAMS += \
2443 # ------------------------------------------------------------------------------
2444 cdrom_id_SOURCES = \
2445 src/udev/cdrom_id/cdrom_id.c
2449 libsystemd-shared.la
2451 udevlibexec_PROGRAMS += \
2454 dist_udevrules_DATA += \
2455 rules/60-cdrom_id.rules
2457 # ------------------------------------------------------------------------------
2459 src/udev/collect/collect.c
2464 udevlibexec_PROGRAMS += \
2467 # ------------------------------------------------------------------------------
2469 src/udev/scsi_id/scsi_id.c \
2470 src/udev/scsi_id/scsi_serial.c \
2471 src/udev/scsi_id/scsi.h \
2472 src/udev/scsi_id/scsi_id.h
2475 libudev-private.la \
2476 libsystemd-shared.la
2478 udevlibexec_PROGRAMS += \
2482 src/udev/scsi_id/README
2484 # ------------------------------------------------------------------------------
2486 src/udev/v4l_id/v4l_id.c
2491 udevlibexec_PROGRAMS += \
2494 dist_udevrules_DATA += \
2495 rules/60-persistent-v4l.rules
2497 # ------------------------------------------------------------------------------
2498 accelerometer_SOURCES = \
2499 src/udev/accelerometer/accelerometer.c
2501 accelerometer_LDADD = \
2503 libsystemd-shared.la
2505 udevlibexec_PROGRAMS += \
2508 dist_udevrules_DATA += \
2509 rules/61-accelerometer.rules
2511 # ------------------------------------------------------------------------------
2518 libgudev_includedir = \
2519 $(includedir)/gudev-1.0/gudev
2521 libgudev_include_HEADERS = \
2523 src/gudev/gudevenums.h \
2524 src/gudev/gudevenumtypes.h \
2525 src/gudev/gudevtypes.h \
2526 src/gudev/gudevclient.h \
2527 src/gudev/gudevdevice.h \
2528 src/gudev/gudevenumerator.h
2530 lib_LTLIBRARIES += libgudev-1.0.la
2532 pkgconfiglib_DATA += \
2533 src/gudev/gudev-1.0.pc
2536 src/gudev/gudev-1.0.pc
2538 libgudev_1_0_la_SOURCES = \
2539 src/gudev/gudevenums.h \
2540 src/gudev/gudevenumtypes.h \
2541 src/gudev/gudevenumtypes.h\
2542 src/gudev/gudevtypes.h \
2543 src/gudev/gudevclient.h \
2544 src/gudev/gudevclient.c \
2545 src/gudev/gudevdevice.h \
2546 src/gudev/gudevdevice.c \
2547 src/gudev/gudevenumerator.h \
2548 src/gudev/gudevenumerator.c \
2549 src/gudev/gudevprivate.h
2551 nodist_libgudev_1_0_la_SOURCES = \
2552 src/gudev/gudevmarshal.h \
2553 src/gudev/gudevmarshal.c \
2554 src/gudev/gudevenumtypes.h \
2555 src/gudev/gudevenumtypes.c
2558 $(nodist_libgudev_1_0_la_SOURCES)
2560 libgudev_1_0_la_CPPFLAGS = \
2562 -I$(top_builddir)/src\
2563 -I$(top_srcdir)/src\
2564 -I$(top_builddir)/src/gudev \
2565 -I$(top_srcdir)/src/gudev \
2566 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2567 -D_GUDEV_COMPILATION \
2568 -DG_LOG_DOMAIN=\"GUdev\"
2570 libgudev_1_0_la_CFLAGS = \
2572 -fvisibility=default \
2575 libgudev_1_0_la_LIBADD = \
2579 libgudev_1_0_la_LDFLAGS = \
2581 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2582 -export-dynamic -no-undefined \
2583 -export-symbols-regex '^g_udev_.*'
2585 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2586 $(AM_V_at)$(MKDIR_P) $(dir $@)
2587 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2589 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2590 $(AM_V_at)$(MKDIR_P) $(dir $@)
2591 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2592 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2594 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2595 $(AM_V_at)$(MKDIR_P) $(dir $@)
2596 $(AM_V_GEN)glib-mkenums --template $^ > $@
2598 if HAVE_INTROSPECTION
2599 -include $(INTROSPECTION_MAKEFILE)
2601 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2603 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2605 src_gudev_GUdev_1_0_gir_CFLAGS = \
2608 -D_GUDEV_COMPILATION \
2609 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2610 -I$(top_srcdir)/src \
2611 -I$(top_builddir)/src \
2612 -I$(top_srcdir)/src/gudev \
2613 -I$(top_builddir)/src/gudev
2615 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2617 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2618 --pkg-export=gudev-1.0 \
2621 src_gudev_GUdev_1_0_gir_FILES = \
2623 src/gudev/gudevtypes.h \
2624 src/gudev/gudevenums.h \
2625 src/gudev/gudevenumtypes.h \
2626 src/gudev/gudevclient.h \
2627 src/gudev/gudevdevice.h \
2628 src/gudev/gudevenumerator.h \
2629 src/gudev/gudevclient.c \
2630 src/gudev/gudevdevice.c \
2631 src/gudev/gudevenumerator.c
2633 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2634 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2636 girdir = $(datadir)/gir-1.0
2638 src/gudev/GUdev-1.0.gir
2640 typelibsdir = $(libdir)/girepository-1.0
2642 src/gudev/GUdev-1.0.typelib
2644 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2645 endif # HAVE_INTROSPECTION
2647 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2648 libgudev-install-hook:
2649 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2651 libgudev-uninstall-hook:
2652 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2654 INSTALL_EXEC_HOOKS += libgudev-install-hook
2655 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2659 src/gudev/gudev-1.0.pc.in \
2660 src/gudev/gudevmarshal.list \
2661 src/gudev/gudevenumtypes.h.template \
2662 src/gudev/gudevenumtypes.c.template \
2663 src/gudev/gjs-example.js \
2664 src/gudev/seed-example-enum.js \
2665 src/gudev/seed-example.js
2667 # ------------------------------------------------------------------------------
2668 mtd_probe_SOURCES = \
2669 src/udev/mtd_probe/mtd_probe.c \
2670 src/udev/mtd_probe/mtd_probe.h \
2671 src/udev/mtd_probe/probe_smartmedia.c
2673 mtd_probe_CPPFLAGS = \
2676 dist_udevrules_DATA += \
2677 rules/75-probe_mtd.rules
2679 udevlibexec_PROGRAMS += \
2682 # ------------------------------------------------------------------------------
2683 libsystemd_id128_la_SOURCES = \
2684 src/libsystemd-id128/sd-id128.c
2686 libsystemd_id128_la_CFLAGS = \
2690 libsystemd_id128_la_LDFLAGS = \
2692 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2693 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2695 libsystemd_id128_la_LIBADD = \
2696 libsystemd-shared.la
2698 libsystemd_id128_internal_la_SOURCES = \
2699 $(libsystemd_id128_la_SOURCES)
2701 test_id128_SOURCES = \
2702 src/test/test-id128.c
2704 test_id128_LDADD = \
2705 libsystemd-shared.la \
2706 libsystemd-id128-internal.la \
2707 libsystemd-daemon.la
2712 pkginclude_HEADERS += \
2713 src/systemd/sd-id128.h
2715 lib_LTLIBRARIES += \
2718 noinst_LTLIBRARIES += \
2719 libsystemd-id128-internal.la
2721 pkgconfiglib_DATA += \
2722 src/libsystemd-id128/libsystemd-id128.pc
2724 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2725 libsystemd-id128-install-hook:
2726 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2728 libsystemd-id128-uninstall-hook:
2729 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2731 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2732 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2735 src/libsystemd-id128/libsystemd-id128.pc.in \
2736 src/libsystemd-id128/libsystemd-id128.sym
2738 # ------------------------------------------------------------------------------
2740 rootlibexec_PROGRAMS += \
2743 systemd_activate_SOURCES = \
2744 src/activate/activate.c
2746 systemd_activate_LDADD = \
2747 libsystemd-shared.la \
2748 libsystemd-daemon.la
2750 # ------------------------------------------------------------------------------
2751 systemd_journald_SOURCES = \
2752 src/journal/journald.c \
2753 src/journal/journald-server.h
2755 systemd_journald_LDADD = \
2756 libsystemd-journal-internal.la \
2757 libsystemd-shared.la \
2758 libsystemd-id128-internal.la
2760 systemd_cat_SOURCES = \
2763 systemd_cat_LDADD = \
2764 libsystemd-shared.la \
2765 libsystemd-journal-internal.la
2767 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2768 journalctl_CFLAGS = \
2771 journalctl_SOURCES = \
2772 src/journal/journalctl.c
2774 journalctl_LDADD = \
2775 libsystemd-shared.la \
2776 libsystemd-journal-internal.la \
2777 libsystemd-id128-internal.la \
2781 journalctl_LDADD += \
2786 journalctl_SOURCES += \
2787 src/journal/journal-qrcode.c \
2788 src/journal/journal-qrcode.h
2790 journalctl_CFLAGS += \
2793 journalctl_LDADD += \
2797 test_journal_SOURCES = \
2798 src/journal/test-journal.c
2800 test_journal_LDADD = \
2801 libsystemd-shared.la \
2802 libsystemd-journal-internal.la \
2803 libsystemd-id128-internal.la
2805 test_journal_send_SOURCES = \
2806 src/journal/test-journal-send.c
2808 test_journal_send_LDADD = \
2809 libsystemd-shared.la \
2810 libsystemd-journal-internal.la \
2811 libsystemd-id128-internal.la
2813 test_journal_syslog_SOURCES = \
2814 src/journal/test-journal-syslog.c
2816 test_journal_syslog_LDADD = \
2817 libsystemd-journal-internal.la \
2818 libsystemd-shared.la \
2819 libsystemd-id128-internal.la
2821 test_journal_match_SOURCES = \
2822 src/journal/test-journal-match.c
2824 test_journal_match_LDADD = \
2825 libsystemd-shared.la \
2826 libsystemd-journal-internal.la \
2827 libsystemd-id128-internal.la
2829 test_journal_enum_SOURCES = \
2830 src/journal/test-journal-enum.c
2832 test_journal_enum_LDADD = \
2833 libsystemd-shared.la \
2834 libsystemd-journal-internal.la \
2835 libsystemd-id128-internal.la
2837 test_journal_stream_SOURCES = \
2838 src/journal/test-journal-stream.c
2840 test_journal_stream_LDADD = \
2841 libsystemd-shared.la \
2842 libsystemd-journal-internal.la \
2843 libsystemd-id128-internal.la
2845 test_journal_init_SOURCES = \
2846 src/journal/test-journal-init.c
2848 test_journal_init_LDADD = \
2849 libsystemd-shared.la \
2850 libsystemd-daemon-internal.la \
2852 libsystemd-journal.la
2854 test_journal_verify_SOURCES = \
2855 src/journal/test-journal-verify.c
2857 test_journal_verify_LDADD = \
2858 libsystemd-shared.la \
2859 libsystemd-journal-internal.la \
2860 libsystemd-id128-internal.la
2862 test_journal_interleaving_SOURCES = \
2863 src/journal/test-journal-interleaving.c
2865 test_journal_interleaving_LDADD = \
2866 libsystemd-shared.la \
2867 libsystemd-journal-internal.la \
2868 libsystemd-id128-internal.la
2870 test_mmap_cache_SOURCES = \
2871 src/journal/test-mmap-cache.c
2873 test_mmap_cache_LDADD = \
2874 libsystemd-shared.la \
2875 libsystemd-journal-internal.la
2877 test_catalog_SOURCES = \
2878 src/journal/test-catalog.c
2880 test_catalog_CFLAGS = \
2882 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
2884 test_catalog_LDADD = \
2885 libsystemd-shared.la \
2886 libsystemd-label.la \
2887 libsystemd-journal-internal.la \
2888 libsystemd-id128-internal.la
2890 libsystemd_journal_la_SOURCES = \
2891 src/journal/sd-journal.c \
2892 src/systemd/sd-journal.h \
2893 src/systemd/_sd-common.h \
2894 src/journal/journal-file.c \
2895 src/journal/journal-file.h \
2896 src/journal/journal-vacuum.c \
2897 src/journal/journal-vacuum.h \
2898 src/journal/journal-verify.c \
2899 src/journal/journal-verify.h \
2900 src/journal/lookup3.c \
2901 src/journal/lookup3.h \
2902 src/journal/journal-send.c \
2903 src/journal/journal-def.h \
2904 src/journal/compress.h \
2905 src/journal/catalog.c \
2906 src/journal/catalog.h \
2907 src/journal/mmap-cache.c \
2908 src/journal/mmap-cache.h
2910 libsystemd_journal_la_CFLAGS = \
2914 libsystemd_journal_la_LDFLAGS = \
2916 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2917 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2919 libsystemd_journal_la_LIBADD = \
2920 libsystemd-shared.la \
2921 libsystemd-label.la \
2922 libsystemd-daemon-internal.la \
2924 libsystemd-id128-internal.la
2926 libsystemd_journal_internal_la_SOURCES = \
2927 $(libsystemd_journal_la_SOURCES) \
2928 src/journal/journald-kmsg.c \
2929 src/journal/journald-kmsg.h \
2930 src/journal/journald-syslog.c \
2931 src/journal/journald-syslog.h \
2932 src/journal/journald-stream.c \
2933 src/journal/journald-stream.h \
2934 src/journal/journald-server.c \
2935 src/journal/journald-server.h \
2936 src/journal/journald-console.c \
2937 src/journal/journald-console.h \
2938 src/journal/journald-native.c \
2939 src/journal/journald-native.h \
2940 src/journal/journald-rate-limit.c \
2941 src/journal/journald-rate-limit.h \
2942 src/journal/journal-internal.h
2944 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2945 libsystemd_journal_internal_la_CFLAGS = \
2948 libsystemd_journal_internal_la_LIBADD = \
2949 libsystemd-audit.la \
2950 libsystemd-daemon.la \
2952 libsystemd-shared.la \
2955 nodist_libsystemd_journal_internal_la_SOURCES = \
2956 src/journal/journald-gperf.c
2959 libsystemd_journal_internal_la_LIBADD += \
2960 libsystemd-login-internal.la
2964 libsystemd_journal_internal_la_LIBADD += \
2969 libsystemd_journal_la_SOURCES += \
2970 src/journal/compress.c
2972 libsystemd_journal_la_CFLAGS += \
2975 libsystemd_journal_la_LIBADD += \
2978 libsystemd_journal_internal_la_CFLAGS += \
2981 libsystemd_journal_internal_la_LIBADD += \
2987 libsystemd_journal_la_SOURCES += \
2988 src/journal/journal-authenticate.c \
2989 src/journal/journal-authenticate.h \
2990 src/journal/fsprg.c \
2993 libsystemd_journal_la_CFLAGS += \
2997 libsystemd_journal_la_LIBADD += \
3000 libsystemd_journal_internal_la_CFLAGS += \
3004 libsystemd_journal_internal_la_LIBADD += \
3008 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3009 # needed. Also, grant read access to new journal files to members of
3010 # "adm" and "wheel".
3011 libsystemd-journal-install-hook:
3012 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3013 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3014 -chown 0:0 $(DESTDIR)/var/log/journal
3015 -chmod 755 $(DESTDIR)/var/log/journal
3016 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3017 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3019 libsystemd-journal-uninstall-hook:
3020 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3022 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3023 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3025 # ------------------------------------------------------------------------------
3027 # Update catalog on installation. Do not bother if installing
3028 # in DESTDIR, since this is likely for packaging purposes.
3029 catalog-update-hook:
3030 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3032 INSTALL_DATA_HOOKS += \
3035 catalog-remove-hook:
3036 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3038 UNINSTALL_DATA_HOOKS += \
3047 test-journal-syslog \
3048 test-journal-match \
3049 test-journal-stream \
3051 test-journal-verify \
3052 test-journal-interleaving \
3056 pkginclude_HEADERS += \
3057 src/systemd/sd-journal.h \
3058 src/systemd/sd-messages.h \
3059 src/systemd/_sd-common.h
3061 lib_LTLIBRARIES += \
3062 libsystemd-journal.la
3064 noinst_LTLIBRARIES += \
3065 libsystemd-journal-internal.la
3067 rootlibexec_PROGRAMS += \
3070 rootbin_PROGRAMS += \
3076 dist_systemunit_DATA += \
3077 units/systemd-journald.socket
3079 nodist_systemunit_DATA += \
3080 units/systemd-journald.service \
3081 units/systemd-journal-flush.service
3083 dist_pkgsysconf_DATA += \
3084 src/journal/journald.conf
3086 pkgconfiglib_DATA += \
3087 src/journal/libsystemd-journal.pc
3089 dist_catalog_DATA = \
3090 catalog/systemd.catalog
3092 SOCKETS_TARGET_WANTS += \
3093 systemd-journald.socket
3094 SYSINIT_TARGET_WANTS += \
3095 systemd-journald.service \
3096 systemd-journal-flush.service
3099 src/journal/libsystemd-journal.pc.in \
3100 src/journal/libsystemd-journal.sym \
3101 units/systemd-journald.service.in \
3102 units/systemd-journal-flush.service.in \
3103 src/journal/journald-gperf.gperf
3106 src/journal/journald-gperf.c
3108 # ------------------------------------------------------------------------------
3110 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3112 rootlibexec_PROGRAMS += \
3113 systemd-journal-gatewayd
3115 systemd_journal_gatewayd_SOURCES = \
3116 src/journal/journal-gatewayd.c \
3117 src/journal/microhttpd-util.h \
3118 src/journal/microhttpd-util.c
3120 systemd_journal_gatewayd_LDADD = \
3121 libsystemd-shared.la \
3122 libsystemd-logs.la \
3123 libsystemd-journal-internal.la \
3124 libsystemd-id128-internal.la \
3125 libsystemd-daemon.la \
3129 systemd_journal_gatewayd_CFLAGS = \
3131 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3132 $(MICROHTTPD_CFLAGS)
3134 dist_systemunit_DATA += \
3135 units/systemd-journal-gatewayd.socket
3137 nodist_systemunit_DATA += \
3138 units/systemd-journal-gatewayd.service
3140 dist_gatewayddocumentroot_DATA = \
3141 src/journal/browse.html
3146 units/systemd-journal-gatewayd.service.in
3148 # ------------------------------------------------------------------------------
3150 systemd_socket_proxyd_SOURCES = \
3151 src/socket-proxy/socket-proxyd.c
3153 systemd_socket_proxyd_LDADD = \
3154 libsystemd-shared.la \
3155 libsystemd-logs.la \
3156 libsystemd-journal-internal.la \
3157 libsystemd-id128-internal.la \
3158 libsystemd-daemon.la \
3161 # ------------------------------------------------------------------------------
3163 systemd_coredump_SOURCES = \
3164 src/journal/coredump.c
3166 systemd_coredump_LDADD = \
3167 libsystemd-journal-internal.la \
3168 libsystemd-label.la \
3169 libsystemd-shared.la
3172 systemd_coredump_LDADD += \
3173 libsystemd-login-internal.la
3176 rootlibexec_PROGRAMS += \
3179 systemd_coredumpctl_SOURCES = \
3180 src/journal/coredumpctl.c
3182 systemd_coredumpctl_LDADD = \
3183 libsystemd-shared.la \
3184 libsystemd-journal.la \
3185 libsystemd-journal-internal.la \
3186 libsystemd-id128-internal.la
3191 dist_bashcompletion_DATA += \
3192 shell-completion/bash/systemd-coredumpctl
3194 dist_zshcompletion_DATA += \
3195 shell-completion/zsh/_systemd-coredumpctl
3198 sysctl.d/50-coredump.conf
3201 sysctl.d/50-coredump.conf
3205 sysctl.d/50-coredump.conf.in
3207 # ------------------------------------------------------------------------------
3209 systemd_binfmt_SOURCES = \
3212 systemd_binfmt_LDADD = \
3213 libsystemd-shared.la
3215 rootlibexec_PROGRAMS += \
3218 dist_systemunit_DATA += \
3219 units/proc-sys-fs-binfmt_misc.automount \
3220 units/proc-sys-fs-binfmt_misc.mount
3222 nodist_systemunit_DATA += \
3223 units/systemd-binfmt.service
3226 $(prefix)/lib/binfmt.d \
3227 $(sysconfdir)/binfmt.d
3229 SYSINIT_TARGET_WANTS += \
3230 systemd-binfmt.service \
3231 proc-sys-fs-binfmt_misc.automount
3236 units/systemd-binfmt.service.in
3238 # ------------------------------------------------------------------------------
3240 systemd_vconsole_setup_SOURCES = \
3241 src/vconsole/vconsole-setup.c
3243 systemd_vconsole_setup_LDADD = \
3244 libsystemd-shared.la
3246 rootlibexec_PROGRAMS += \
3247 systemd-vconsole-setup
3249 nodist_systemunit_DATA += \
3250 units/systemd-vconsole-setup.service
3252 SYSINIT_TARGET_WANTS += \
3253 systemd-vconsole-setup.service
3257 units/systemd-vconsole-setup.service.in
3259 # ------------------------------------------------------------------------------
3261 systemd_readahead_SOURCES = \
3262 src/readahead/readahead.c \
3263 src/readahead/readahead-collect.c \
3264 src/readahead/readahead-replay.c \
3265 src/readahead/readahead-analyze.c \
3266 src/readahead/readahead-common.c \
3267 src/readahead/readahead-common.h
3269 systemd_readahead_LDADD = \
3270 libsystemd-shared.la \
3271 libsystemd-daemon.la \
3275 src/readahead/sd-readahead.c \
3276 src/systemd/sd-readahead.h
3278 rootlibexec_PROGRAMS += \
3281 dist_systemunit_DATA += \
3282 units/systemd-readahead-drop.service \
3283 units/systemd-readahead-done.timer
3285 nodist_systemunit_DATA += \
3286 units/systemd-readahead-collect.service \
3287 units/systemd-readahead-replay.service \
3288 units/systemd-readahead-done.service
3293 units/systemd-readahead-collect.service.in \
3294 units/systemd-readahead-replay.service.in \
3295 units/systemd-readahead-done.service.in
3297 # ------------------------------------------------------------------------------
3299 systemd_bootchart_SOURCES = \
3300 src/bootchart/bootchart.c \
3301 src/bootchart/bootchart.h \
3302 src/bootchart/store.c \
3303 src/bootchart/store.h \
3304 src/bootchart/svg.c \
3307 systemd_bootchart_LDADD = \
3308 libsystemd-shared.la \
3309 libsystemd-journal.la
3311 rootlibexec_PROGRAMS += \
3314 dist_pkgsysconf_DATA += \
3315 src/bootchart/bootchart.conf
3318 # ------------------------------------------------------------------------------
3319 if ENABLE_QUOTACHECK
3320 rootlibexec_PROGRAMS += \
3323 nodist_systemunit_DATA += \
3324 units/systemd-quotacheck.service
3326 systemd_quotacheck_SOURCES = \
3327 src/quotacheck/quotacheck.c
3329 systemd_quotacheck_LDADD = \
3330 libsystemd-shared.la
3334 units/systemd-quotacheck.service.in
3336 nodist_systemunit_DATA += \
3337 units/quotaon.service
3339 # ------------------------------------------------------------------------------
3340 if ENABLE_RANDOMSEED
3341 rootlibexec_PROGRAMS += \
3344 nodist_systemunit_DATA += \
3345 units/systemd-random-seed.service
3347 systemd_random_seed_SOURCES = \
3348 src/random-seed/random-seed.c
3350 systemd_random_seed_LDADD = \
3351 libsystemd-label.la \
3352 libsystemd-shared.la
3354 SYSINIT_TARGET_WANTS += \
3355 systemd-random-seed.service
3360 units/systemd-random-seed.service.in
3362 # ------------------------------------------------------------------------------
3364 rootlibexec_PROGRAMS += \
3367 nodist_systemunit_DATA += \
3368 units/systemd-backlight@.service
3370 systemd_backlight_SOURCES = \
3371 src/backlight/backlight.c
3373 systemd_backlight_LDADD = \
3374 libsystemd-label.la \
3375 libsystemd-shared.la \
3380 units/systemd-backlight@.service.in
3382 # ------------------------------------------------------------------------------
3384 rootlibexec_PROGRAMS += \
3387 nodist_systemunit_DATA += \
3388 units/systemd-rfkill@.service
3390 systemd_rfkill_SOURCES = \
3393 systemd_rfkill_LDADD = \
3394 libsystemd-label.la \
3395 libsystemd-shared.la \
3400 units/systemd-rfkill@.service.in
3402 # ------------------------------------------------------------------------------
3403 if HAVE_LIBCRYPTSETUP
3404 rootlibexec_PROGRAMS += \
3407 systemgenerator_PROGRAMS += \
3408 systemd-cryptsetup-generator
3410 dist_systemunit_DATA += \
3411 units/cryptsetup.target
3413 systemd_cryptsetup_SOURCES = \
3414 src/cryptsetup/cryptsetup.c
3416 systemd_cryptsetup_CFLAGS = \
3418 $(LIBCRYPTSETUP_CFLAGS)
3420 systemd_cryptsetup_LDADD = \
3421 libsystemd-label.la \
3422 libsystemd-shared.la \
3424 $(LIBCRYPTSETUP_LIBS)
3426 systemd_cryptsetup_generator_SOURCES = \
3427 src/cryptsetup/cryptsetup-generator.c
3429 systemd_cryptsetup_generator_LDADD = \
3430 libsystemd-label.la \
3431 libsystemd-shared.la
3433 SYSINIT_TARGET_WANTS += \
3438 # ------------------------------------------------------------------------------
3440 systemd_hostnamed_SOURCES = \
3441 src/hostname/hostnamed.c
3443 systemd_hostnamed_LDADD = \
3444 libsystemd-label.la \
3445 libsystemd-shared.la \
3446 libsystemd-daemon.la \
3449 rootlibexec_PROGRAMS += \
3452 nodist_systemunit_DATA += \
3453 units/systemd-hostnamed.service
3455 dist_dbuspolicy_DATA += \
3456 src/hostname/org.freedesktop.hostname1.conf
3458 dist_dbussystemservice_DATA += \
3459 src/hostname/org.freedesktop.hostname1.service
3461 polkitpolicy_files += \
3462 src/hostname/org.freedesktop.hostname1.policy
3464 SYSTEM_UNIT_ALIASES += \
3465 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3467 hostnamectl_SOURCES = \
3468 src/hostname/hostnamectl.c
3470 hostnamectl_CFLAGS = \
3474 hostnamectl_LDADD = \
3475 libsystemd-shared.la \
3476 libsystemd-dbus.la \
3477 libsystemd-id128-internal.la
3482 dist_bashcompletion_DATA += \
3483 shell-completion/bash/hostnamectl
3485 dist_zshcompletion_DATA += \
3486 shell-completion/zsh/_hostnamectl
3490 polkitpolicy_in_files += \
3491 src/hostname/org.freedesktop.hostname1.policy.in
3494 units/systemd-hostnamed.service.in
3496 # ------------------------------------------------------------------------------
3498 systemd_localed_SOURCES = \
3499 src/locale/localed.c
3501 systemd_localed_LDADD = \
3502 libsystemd-label.la \
3503 libsystemd-shared.la \
3504 libsystemd-daemon.la \
3507 nodist_systemunit_DATA += \
3508 units/systemd-localed.service
3510 rootlibexec_PROGRAMS += \
3513 dist_dbuspolicy_DATA += \
3514 src/locale/org.freedesktop.locale1.conf
3516 dist_dbussystemservice_DATA += \
3517 src/locale/org.freedesktop.locale1.service
3519 polkitpolicy_files += \
3520 src/locale/org.freedesktop.locale1.policy
3522 SYSTEM_UNIT_ALIASES += \
3523 systemd-localed.service dbus-org.freedesktop.locale1.service
3525 dist_pkgdata_DATA += \
3526 src/locale/kbd-model-map
3528 dist_noinst_SCRIPT = \
3529 src/locale/generate-kbd-model-map
3531 update-kbd-model-map: src/locale/generate-kbd-model-map
3532 $PYTHON $< > src/locale/kbd-model-map
3534 localectl_SOURCES = \
3535 src/locale/localectl.c
3537 localectl_CFLAGS = \
3542 libsystemd-shared.la \
3543 libsystemd-dbus.la \
3544 libsystemd-id128-internal.la
3549 dist_bashcompletion_DATA += \
3550 shell-completion/bash/localectl
3552 dist_zshcompletion_DATA += \
3553 shell-completion/zsh/_localectl
3557 polkitpolicy_in_files += \
3558 src/locale/org.freedesktop.locale1.policy.in
3561 units/systemd-localed.service.in
3563 # ------------------------------------------------------------------------------
3565 systemd_timedated_SOURCES = \
3566 src/timedate/timedated.c
3568 systemd_timedated_LDADD = \
3569 libsystemd-label.la \
3570 libsystemd-shared.la \
3571 libsystemd-daemon.la \
3574 rootlibexec_PROGRAMS += \
3577 dist_dbussystemservice_DATA += \
3578 src/timedate/org.freedesktop.timedate1.service
3580 dist_dbuspolicy_DATA += \
3581 src/timedate/org.freedesktop.timedate1.conf
3583 nodist_systemunit_DATA += \
3584 units/systemd-timedated.service
3586 polkitpolicy_files += \
3587 src/timedate/org.freedesktop.timedate1.policy
3590 $(prefix)/lib/systemd/ntp-units.d \
3591 $(sysconfdir)/systemd/ntp-units.d
3593 SYSTEM_UNIT_ALIASES += \
3594 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3596 timedatectl_SOURCES = \
3597 src/timedate/timedatectl.c
3599 timedatectl_CFLAGS = \
3603 timedatectl_LDADD = \
3604 libsystemd-shared.la \
3610 dist_bashcompletion_DATA += \
3611 shell-completion/bash/timedatectl
3613 dist_zshcompletion_DATA += \
3614 shell-completion/zsh/_timedatectl
3617 polkitpolicy_in_files += \
3618 src/timedate/org.freedesktop.timedate1.policy.in
3621 units/systemd-timedated.service.in
3623 # ------------------------------------------------------------------------------
3625 libnss_myhostname_la_SOURCES = \
3626 src/nss-myhostname/nss-myhostname.c \
3627 src/nss-myhostname/ifconf.h \
3628 src/nss-myhostname/netlink.c
3630 libnss_myhostname_la_LDFLAGS = \
3638 lib_LTLIBRARIES += \
3639 libnss_myhostname.la
3642 # ------------------------------------------------------------------------------
3644 systemd_machined_SOURCES = \
3645 src/machine/machined.c \
3646 src/machine/machined.h
3648 systemd_machined_CFLAGS = \
3649 $(libsystemd_machine_core_la_CFLAGS)
3651 systemd_machined_LDADD = \
3652 libsystemd-machine-core.la \
3653 $(libsystemd_machine_core_la_LIBADD)
3655 rootlibexec_PROGRAMS += \
3658 libsystemd_machine_core_la_SOURCES = \
3659 src/machine/machined-dbus.c \
3660 src/machine/machine.c \
3661 src/machine/machine.h \
3662 src/machine/machine-dbus.c
3664 libsystemd_machine_core_la_CFLAGS = \
3668 libsystemd_machine_core_la_LIBADD = \
3669 libsystemd-label.la \
3670 libsystemd-audit.la \
3671 libsystemd-shared.la \
3672 libsystemd-daemon.la \
3673 libsystemd-dbus.la \
3674 libsystemd-id128-internal.la \
3677 noinst_LTLIBRARIES += \
3678 libsystemd-machine-core.la
3680 machinectl_SOURCES = \
3681 src/machine/machinectl.c
3683 machinectl_CFLAGS = \
3687 machinectl_LDADD = \
3688 libsystemd-shared.la \
3689 libsystemd-dbus.la \
3692 rootbin_PROGRAMS += \
3695 test_machine_tables_SOURCES = \
3696 src/machine/test-machine-tables.c
3698 test_machine_tables_CFLAGS = \
3702 test_machine_tables_LDADD = \
3703 libsystemd-machine-core.la
3708 nodist_systemunit_DATA += \
3709 units/systemd-machined.service
3711 dist_systemunit_DATA += \
3714 dist_dbussystemservice_DATA += \
3715 src/machine/org.freedesktop.machine1.service
3717 dist_dbuspolicy_DATA += \
3718 src/machine/org.freedesktop.machine1.conf
3720 dist_zshcompletion_DATA += \
3721 shell-completion/zsh/_machinectl
3723 SYSTEM_UNIT_ALIASES += \
3724 systemd-machined.service dbus-org.freedesktop.machine1.service
3727 units/systemd-machined.service.in
3731 # ------------------------------------------------------------------------------
3733 systemd_logind_SOURCES = \
3734 src/login/logind.c \
3737 nodist_systemd_logind_SOURCES = \
3738 src/login/logind-gperf.c
3740 systemd_logind_CFLAGS = \
3741 $(libsystemd_logind_core_la_CFLAGS)
3743 systemd_logind_LDADD = \
3744 libsystemd-logind-core.la \
3745 $(libsystemd_logind_core_la_LIBADD)
3747 libsystemd_logind_core_la_SOURCES = \
3748 src/login/logind-core.c \
3749 src/login/logind-dbus.c \
3750 src/login/logind-device.c \
3751 src/login/logind-device.h \
3752 src/login/logind-button.c \
3753 src/login/logind-button.h \
3754 src/login/logind-action.c \
3755 src/login/logind-action.h \
3756 src/login/logind-seat.c \
3757 src/login/logind-seat.h \
3758 src/login/logind-session.c \
3759 src/login/logind-session.h \
3760 src/login/logind-session-device.c \
3761 src/login/logind-session-device.h \
3762 src/login/logind-user.c \
3763 src/login/logind-user.h \
3764 src/login/logind-inhibit.c \
3765 src/login/logind-inhibit.h \
3766 src/login/logind-session-dbus.c \
3767 src/login/logind-seat-dbus.c \
3768 src/login/logind-user-dbus.c \
3769 src/login/logind-acl.h \
3770 src/login/login-shared.c \
3771 src/login/login-shared.h
3773 libsystemd_logind_core_la_CFLAGS = \
3777 libsystemd_logind_core_la_LIBADD = \
3778 libsystemd-label.la \
3779 libsystemd-audit.la \
3780 libsystemd-shared.la \
3781 libsystemd-daemon.la \
3782 libsystemd-dbus.la \
3783 libsystemd-id128-internal.la \
3787 libsystemd_logind_core_la_SOURCES += \
3788 src/login/logind-acl.c
3790 libsystemd_logind_core_la_LIBADD += \
3794 noinst_LTLIBRARIES += \
3795 libsystemd-logind-core.la
3797 systemd_user_sessions_SOURCES = \
3798 src/login/user-sessions.c
3800 systemd_user_sessions_LDADD = \
3801 libsystemd-shared.la
3803 rootlibexec_PROGRAMS += \
3805 systemd-user-sessions
3807 loginctl_SOURCES = \
3808 src/login/loginctl.c \
3809 src/login/sysfs-show.c
3816 libsystemd-shared.la \
3817 libsystemd-dbus.la \
3820 rootbin_PROGRAMS += \
3823 dist_bashcompletion_DATA += \
3824 shell-completion/bash/loginctl
3826 dist_zshcompletion_DATA += \
3827 shell-completion/zsh/_loginctl \
3828 shell-completion/zsh/_systemd-inhibit
3830 systemd_inhibit_SOURCES = \
3833 systemd_inhibit_CFLAGS = \
3837 systemd_inhibit_LDADD = \
3838 libsystemd-shared.la \
3841 rootbin_PROGRAMS += \
3844 test_login_SOURCES = \
3845 src/login/test-login.c
3847 test_login_LDADD = \
3848 libsystemd-login-internal.la \
3849 libsystemd-shared.la
3851 test_login_shared_SOURCES = \
3852 src/login/test-login-shared.c
3854 test_login_shared_LDADD = \
3855 libsystemd-login-internal.la \
3856 libsystemd-shared.la
3858 test_inhibit_SOURCES = \
3859 src/login/test-inhibit.c
3861 test_inhibit_LDADD = \
3862 libsystemd-shared.la \
3865 test_inhibit_CFLAGS = \
3869 test_login_tables_SOURCES = \
3870 src/login/test-login-tables.c
3872 test_login_tables_CFLAGS = \
3876 test_login_tables_LDADD = \
3877 libsystemd-logind-core.la
3887 libsystemd_login_la_SOURCES = \
3888 src/login/sd-login.c \
3889 src/systemd/sd-login.h \
3890 src/login/login-shared.c \
3891 src/login/login-shared.h
3893 libsystemd_login_la_CFLAGS = \
3897 libsystemd_login_la_LDFLAGS = \
3899 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3900 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3902 libsystemd_login_la_LIBADD = \
3903 libsystemd-shared.la \
3904 libsystemd-daemon-internal.la \
3907 libsystemd_login_internal_la_SOURCES = \
3908 $(libsystemd_login_la_SOURCES)
3911 pam_systemd_la_SOURCES = \
3912 src/login/pam-module.c
3914 pam_systemd_la_CFLAGS = \
3920 pam_systemd_la_LDFLAGS = \
3926 -export-symbols-regex '^pam_sm_.*'
3928 pam_systemd_la_LIBADD = \
3929 libsystemd-audit.la \
3930 libsystemd-dbus.la \
3931 libsystemd-shared.la \
3932 libsystemd-daemon-internal.la \
3936 pamlib_LTLIBRARIES = \
3939 dist_pamconf_DATA = \
3940 src/login/systemd-user
3943 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3944 libsystemd-login-install-hook:
3945 libname=libsystemd-login.so && $(move-to-rootlibdir)
3947 libsystemd-login-uninstall-hook:
3948 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3950 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3951 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
3953 nodist_systemunit_DATA += \
3954 units/systemd-logind.service \
3955 units/systemd-user-sessions.service
3957 dist_systemunit_DATA += \
3960 dist_dbussystemservice_DATA += \
3961 src/login/org.freedesktop.login1.service
3963 dist_dbuspolicy_DATA += \
3964 src/login/org.freedesktop.login1.conf
3966 dist_pkgsysconf_DATA += \
3967 src/login/logind.conf
3969 pkginclude_HEADERS += \
3970 src/systemd/sd-login.h
3972 lib_LTLIBRARIES += \
3975 noinst_LTLIBRARIES += \
3976 libsystemd-login-internal.la
3978 pkgconfiglib_DATA += \
3979 src/login/libsystemd-login.pc
3981 polkitpolicy_files += \
3982 src/login/org.freedesktop.login1.policy
3987 MULTI_USER_TARGET_WANTS += \
3988 systemd-logind.service \
3989 systemd-user-sessions.service
3991 SYSTEM_UNIT_ALIASES += \
3992 systemd-logind.service dbus-org.freedesktop.login1.service
3994 systemd_multi_seat_x_SOURCES = \
3995 src/login/multi-seat-x.c
3997 systemd_multi_seat_x_LDADD = \
3998 libsystemd-label.la \
3999 libsystemd-shared.la
4001 rootlibexec_PROGRAMS += \
4002 systemd-multi-seat-x
4004 dist_udevrules_DATA += \
4005 src/login/70-uaccess.rules \
4006 src/login/70-power-switch.rules
4008 nodist_udevrules_DATA += \
4009 src/login/71-seat.rules \
4010 src/login/73-seat-late.rules
4013 src/login/logind-gperf.c \
4014 src/login/71-seat.rules \
4015 src/login/73-seat-late.rules
4018 polkitpolicy_in_files += \
4019 src/login/org.freedesktop.login1.policy.in
4022 src/login/logind-gperf.gperf \
4023 src/login/libsystemd-login.pc.in \
4024 src/login/libsystemd-login.sym \
4025 src/login/71-seat.rules.in \
4026 src/login/73-seat-late.rules.in \
4027 units/systemd-logind.service.in \
4028 units/systemd-user-sessions.service.in
4030 # ------------------------------------------------------------------------------
4031 if HAVE_PYTHON_DEVEL
4032 pkgpyexec_LTLIBRARIES = \
4039 _journal_la_SOURCES = \
4040 src/python-systemd/_journal.c
4042 _journal_la_CFLAGS = \
4044 -fvisibility=default \
4045 $(PYTHON_DEVEL_CFLAGS)
4047 _journal_la_LDFLAGS = \
4053 _journal_la_LIBADD = \
4054 $(PYTHON_DEVEL_LIBS) \
4055 libsystemd-journal.la
4057 id128_la_SOURCES = \
4058 src/python-systemd/id128.c \
4059 src/python-systemd/id128-constants.h \
4060 src/python-systemd/pyutil.c \
4061 src/python-systemd/pyutil.h
4065 -fvisibility=default \
4066 $(PYTHON_DEVEL_CFLAGS) \
4067 -I$(top_builddir)/src/python-systemd
4069 id128_la_LDFLAGS = \
4076 $(PYTHON_DEVEL_LIBS) \
4079 _daemon_la_SOURCES = \
4080 src/python-systemd/_daemon.c \
4081 src/python-systemd/pyutil.c \
4082 src/python-systemd/pyutil.h
4084 _daemon_la_CFLAGS = \
4086 -fvisibility=default \
4087 $(PYTHON_DEVEL_CFLAGS) \
4088 -I$(top_builddir)/src/python-systemd
4090 _daemon_la_LDFLAGS = \
4096 _daemon_la_LIBADD = \
4097 $(PYTHON_DEVEL_LIBS) \
4098 libsystemd-daemon.la
4100 _reader_la_SOURCES = \
4101 src/python-systemd/_reader.c \
4102 src/python-systemd/pyutil.c \
4103 src/python-systemd/pyutil.h
4105 _reader_la_CFLAGS = \
4107 -fvisibility=default \
4108 $(PYTHON_DEVEL_CFLAGS)
4110 _reader_la_LDFLAGS = \
4116 _reader_la_LIBADD = \
4117 $(PYTHON_DEVEL_LIBS) \
4118 libsystemd-journal.la \
4119 libsystemd-id128.la \
4120 libsystemd-shared.la \
4121 libsystemd-daemon-internal.la \
4124 login_la_SOURCES = \
4125 src/python-systemd/login.c \
4126 src/python-systemd/pyutil.c \
4127 src/python-systemd/pyutil.h
4131 -fvisibility=default \
4132 $(PYTHON_DEVEL_CFLAGS)
4134 login_la_LDFLAGS = \
4141 $(PYTHON_DEVEL_LIBS) \
4142 libsystemd-journal.la \
4143 libsystemd-login.la \
4144 libsystemd-shared.la \
4145 libsystemd-daemon-internal.la \
4148 dist_pkgpyexec_PYTHON = \
4149 src/python-systemd/journal.py \
4150 src/python-systemd/daemon.py \
4151 src/python-systemd/__init__.py
4153 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4154 $(AM_V_at)$(MKDIR_P) $(dir $@)
4155 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4158 src/python-systemd/id128-constants.h
4160 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4162 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4163 $(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/
4164 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4167 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4168 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4171 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4172 $(MAKE) DESTDIR="$$dir" install && \
4173 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4178 CLEAN_LOCAL_HOOKS += clean-sphinx
4181 -rm -rf docs/html/python-systemd/
4183 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4185 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4186 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4188 # ------------------------------------------------------------------------------
4190 '|rootlibexecdir=$(rootlibexecdir)|' \
4191 '|rootbindir=$(rootbindir)|' \
4192 '|bindir=$(bindir)|' \
4193 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4194 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4195 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4196 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4197 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4198 '|pkgdatadir=$(pkgdatadir)|' \
4199 '|systemunitdir=$(systemunitdir)|' \
4200 '|userunitdir=$(userunitdir)|' \
4201 '|systempresetdir=$(systempresetdir)|' \
4202 '|userpresetdir=$(userpresetdir)|' \
4203 '|udevhwdbdir=$(udevhwdbdir)|' \
4204 '|udevrulesdir=$(udevrulesdir)|' \
4205 '|catalogdir=$(catalogdir)|' \
4206 '|tmpfilesdir=$(tmpfilesdir)|' \
4207 '|sysctldir=$(sysctldir)|' \
4208 '|systemgeneratordir=$(systemgeneratordir)|' \
4209 '|usergeneratordir=$(usergeneratordir)|' \
4210 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4211 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4212 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4213 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4214 '|prefix=$(prefix)|' \
4215 '|exec_prefix=$(exec_prefix)|' \
4216 '|libdir=$(libdir)|' \
4217 '|includedir=$(includedir)|' \
4218 '|VERSION=$(VERSION)|' \
4219 '|rootprefix=$(rootprefix)|' \
4220 '|udevlibexecdir=$(udevlibexecdir)|' \
4221 '|SUSHELL=$(SUSHELL)|' \
4222 '|DEBUGTTY=$(DEBUGTTY)|' \
4225 '|MKDIR_P=$(MKDIR_P)|' \
4226 '|QUOTAON=$(QUOTAON)|' \
4227 '|QUOTACHECK=$(QUOTACHECK)|' \
4228 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4229 '|VARLOGDIR=$(varlogdir)|' \
4230 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4231 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4232 '|PYTHON=$(PYTHON)|' \
4233 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4236 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4237 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4240 units/%: units/%.in Makefile
4243 man/%: man/%.in Makefile
4246 sysctl.d/%: sysctl.d/%.in Makefile
4249 %.pc: %.pc.in Makefile
4252 src/core/macros.%: src/core/macros.%.in Makefile
4255 src/%.policy.in: src/%.policy.in.in Makefile
4258 %.rules: %.rules.in Makefile
4261 %.sh: %.sh.in Makefile
4263 $(AM_V_GEN)chmod +x $@
4265 src/%.c: src/%.gperf
4266 $(AM_V_at)$(MKDIR_P) $(dir $@)
4267 $(AM_V_GPERF)$(GPERF) < $< > $@
4270 $(AM_V_at)$(MKDIR_P) $(dir $@)
4271 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4273 units/%: units/%.m4 Makefile
4274 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4275 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4277 units/user/%: units/%.m4 Makefile
4278 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4279 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4282 nodist_polkitpolicy_DATA = \
4283 $(polkitpolicy_files) \
4284 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4288 $(polkitpolicy_in_files) \
4289 $(polkitpolicy_in_in_files)
4292 $(nodist_systemunit_DATA) \
4293 $(nodist_userunit_DATA) \
4294 $(pkgconfigdata_DATA) \
4295 $(pkgconfiglib_DATA) \
4296 $(nodist_polkitpolicy_DATA)
4298 # ------------------------------------------------------------------------------
4300 man/custom-entities.ent: Makefile
4301 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4302 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4303 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4307 man/custom-entities.ent
4311 --stringparam man.output.quietly 1 \
4312 --stringparam funcsynopsis.style ansi \
4313 --stringparam man.authors.section.enabled 0 \
4314 --stringparam man.copyright.section.enabled 0 \
4315 --stringparam systemd.version $(VERSION) \
4316 --path '$(builddir)/man:$(srcdir)/man'
4318 XSLTPROC_PROCESS_MAN = \
4319 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4321 XSLTPROC_PROCESS_HTML = \
4322 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4324 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4325 $(XSLTPROC_PROCESS_MAN)
4327 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4328 $(XSLTPROC_PROCESS_MAN)
4330 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4331 $(XSLTPROC_PROCESS_MAN)
4333 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4334 $(XSLTPROC_PROCESS_MAN)
4336 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4337 $(XSLTPROC_PROCESS_MAN)
4339 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4340 $(XSLTPROC_PROCESS_HTML)
4343 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4349 man/custom-html.xsl \
4352 # ------------------------------------------------------------------------------
4355 docs/sysvinit/README
4360 docs/sysvinit/README: docs/sysvinit/README.in
4363 docs/var-log/README: docs/var-log/README.in
4367 docs/sysvinit/README \
4372 docs/sysvinit/README.in \
4373 docs/var-log/README.in
4375 SOCKETS_TARGET_WANTS += \
4376 systemd-initctl.socket \
4377 systemd-shutdownd.socket
4380 RUNLEVEL1_TARGET_WANTS += \
4381 systemd-update-utmp-runlevel.service
4382 RUNLEVEL2_TARGET_WANTS += \
4383 systemd-update-utmp-runlevel.service
4384 RUNLEVEL3_TARGET_WANTS += \
4385 systemd-update-utmp-runlevel.service
4386 RUNLEVEL4_TARGET_WANTS += \
4387 systemd-update-utmp-runlevel.service
4388 RUNLEVEL5_TARGET_WANTS += \
4389 systemd-update-utmp-runlevel.service
4391 SYSINIT_TARGET_WANTS += \
4392 systemd-update-utmp.service
4393 LOCAL_FS_TARGET_WANTS += \
4394 systemd-remount-fs.service \
4396 MULTI_USER_TARGET_WANTS += \
4398 systemd-ask-password-wall.path
4399 SYSINIT_TARGET_WANTS += \
4400 dev-hugepages.mount \
4402 sys-kernel-config.mount \
4403 sys-kernel-debug.mount \
4404 sys-fs-fuse-connections.mount \
4405 systemd-sysctl.service \
4406 systemd-ask-password-console.path
4409 SYSTEM_UNIT_ALIASES += \
4410 poweroff.target runlevel0.target \
4411 rescue.target runlevel1.target \
4412 multi-user.target runlevel2.target \
4413 multi-user.target runlevel3.target \
4414 multi-user.target runlevel4.target \
4415 graphical.target runlevel5.target \
4416 reboot.target runlevel6.target
4419 SYSTEM_UNIT_ALIASES += \
4420 graphical.target default.target \
4421 reboot.target ctrl-alt-del.target \
4422 getty@.service autovt@.service
4424 USER_UNIT_ALIASES += \
4425 $(systemunitdir)/shutdown.target shutdown.target \
4426 $(systemunitdir)/sockets.target sockets.target \
4427 $(systemunitdir)/timers.target timers.target \
4428 $(systemunitdir)/paths.target paths.target \
4429 $(systemunitdir)/bluetooth.target bluetooth.target \
4430 $(systemunitdir)/printer.target printer.target \
4431 $(systemunitdir)/sound.target sound.target \
4432 $(systemunitdir)/smartcard.target smartcard.target
4434 GENERAL_ALIASES += \
4435 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4436 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4437 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4438 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4442 $(systemunitdir)/runlevel1.target.wants \
4443 $(systemunitdir)/runlevel2.target.wants \
4444 $(systemunitdir)/runlevel3.target.wants \
4445 $(systemunitdir)/runlevel4.target.wants \
4446 $(systemunitdir)/runlevel5.target.wants
4450 $(prefix)/lib/modules-load.d \
4451 $(sysconfdir)/modules-load.d \
4452 $(prefix)/lib/sysctl.d \
4453 $(sysconfdir)/sysctl.d \
4454 $(prefix)/lib/kernel/install.d \
4455 $(sysconfdir)/kernel/install.d \
4456 $(systemshutdowndir) \
4458 $(systemgeneratordir) \
4459 $(usergeneratordir) \
4462 $(pkgsysconfdir)/system \
4463 $(pkgsysconfdir)/system/multi-user.target.wants \
4464 $(pkgsysconfdir)/system/getty.target.wants \
4465 $(pkgsysconfdir)/user \
4466 $(dbussessionservicedir) \
4467 $(sysconfdir)/xdg/systemd
4469 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4471 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4473 install-data-hook: $(INSTALL_DATA_HOOKS)
4475 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4477 clean-local: $(CLEAN_LOCAL_HOOKS)
4478 rm -rf $(abs_srcdir)/install-tree
4479 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4480 $(abs_srcdir)/hwdb/iab.txt
4482 DISTCHECK_CONFIGURE_FLAGS = \
4483 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4484 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4485 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4486 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4487 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4488 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4489 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4490 --with-rootprefix=$$dc_install_base \
4494 DISTCHECK_CONFIGURE_FLAGS += \
4495 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4496 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4498 DISTCHECK_CONFIGURE_FLAGS += \
4499 --with-sysvinit-path= \
4500 --with-sysvrcnd-path=
4504 DISTCHECK_CONFIGURE_FLAGS += \
4509 ( cd $(top_srcdir)/hwdb && \
4510 wget -N http://www.linux-usb.org/usb.ids \
4511 http://pci-ids.ucw.cz/v2.2/pci.ids \
4512 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4513 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4517 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4518 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4520 upload: all distcheck
4521 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4522 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4523 scp man/*.html tango:public/systemd-man/
4525 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4526 doc-sync: all destdir-sphinx
4527 gtkdoc-rebase --html-dir=docs/libudev/html --online
4528 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4529 gtkdoc-rebase --html-dir=docs/gudev/html --online
4530 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4531 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4532 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4535 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4538 rm -rf $(abs_srcdir)/install-tree
4539 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4540 tree $(abs_srcdir)/install-tree
4542 # Let's run all tests of the test suite, but under valgrind. Let's
4543 # exclude the one perl script we have in there
4544 valgrind-tests: $(TESTS)
4545 for f in $(TESTS) ; do [ "$$f" == "$${f/.pl/}" ] && libtool --mode=execute valgrind --leak-check=full --error-exitcode=55 $(builddir)/$$f ; done