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 LIBSYSTEMD_BUS_CURRENT=0
63 LIBSYSTEMD_BUS_REVISION=0
66 # Dirs of external packages
67 dbuspolicydir=@dbuspolicydir@
68 dbussessionservicedir=@dbussessionservicedir@
69 dbussystemservicedir=@dbussystemservicedir@
71 pamconfdir=@pamconfdir@
72 pkgconfigdatadir=$(datadir)/pkgconfig
73 pkgconfiglibdir=$(libdir)/pkgconfig
74 polkitpolicydir=$(datadir)/polkit-1/actions
75 bashcompletiondir=@bashcompletiondir@
76 zshcompletiondir=@zshcompletiondir@
77 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
78 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
79 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
80 varlogdir=$(localstatedir)/log
81 systemdstatedir=$(localstatedir)/lib/systemd
82 catalogstatedir=$(systemdstatedir)/catalog
84 # Our own, non-special dirs
85 pkgsysconfdir=$(sysconfdir)/systemd
86 userunitdir=$(prefix)/lib/systemd/user
87 userpresetdir=$(prefix)/lib/systemd/user-preset
88 tmpfilesdir=$(prefix)/lib/tmpfiles.d
89 sysctldir=$(prefix)/lib/sysctl.d
90 networkdir=$(prefix)/lib/systemd/network
91 pkgincludedir=$(includedir)/systemd
92 systemgeneratordir=$(rootlibexecdir)/system-generators
93 usergeneratordir=$(prefix)/lib/systemd/user-generators
94 systemshutdowndir=$(rootlibexecdir)/system-shutdown
95 systemsleepdir=$(rootlibexecdir)/system-sleep
96 systemunitdir=$(rootprefix)/lib/systemd/system
97 systempresetdir=$(rootprefix)/lib/systemd/system-preset
98 udevlibexecdir=$(rootprefix)/lib/udev
99 udevhomedir=$(udevlibexecdir)
100 udevrulesdir=$(udevlibexecdir)/rules.d
101 udevhwdbdir=$(udevlibexecdir)/hwdb.d
102 catalogdir=$(prefix)/lib/systemd/catalog
103 kernelinstalldir = $(prefix)/lib/kernel/install.d
105 # And these are the special ones for /
106 rootprefix=@rootprefix@
107 rootbindir=$(rootprefix)/bin
108 rootlibexecdir=$(rootprefix)/lib/systemd
110 CLEANFILES = $(BUILT_SOURCES)
115 UNINSTALL_EXEC_HOOKS =
117 UNINSTALL_DATA_HOOKS =
118 DISTCLEAN_LOCAL_HOOKS =
126 polkitpolicy_in_in_files =
127 polkitpolicy_in_files =
129 dist_udevrules_DATA =
130 nodist_udevrules_DATA =
131 dist_pkgsysconf_DATA =
133 dist_dbuspolicy_DATA =
134 dist_dbussystemservice_DATA =
140 noinst_PROGRAMS = $(manual_tests) $(tests)
146 udevlibexec_PROGRAMS =
149 -include $(top_builddir)/config.h \
150 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
151 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
152 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
153 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
154 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
155 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
156 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
157 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
158 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
159 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
160 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
161 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
162 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
163 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
164 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
165 -DROOTPREFIX=\"$(rootprefix)\" \
166 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
167 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
168 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
169 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
170 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
171 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
172 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
173 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
174 -DX_SERVER=\"$(bindir)/X\" \
175 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
176 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
177 -DQUOTACHECK=\"$(QUOTACHECK)\" \
178 -DKEXEC=\"$(KEXEC)\" \
179 -I $(top_srcdir)/src \
180 -I $(top_builddir)/src/shared \
181 -I $(top_srcdir)/src/shared \
182 -I $(top_srcdir)/src/network \
183 -I $(top_srcdir)/src/login \
184 -I $(top_srcdir)/src/journal \
185 -I $(top_srcdir)/src/systemd \
186 -I $(top_builddir)/src/core \
187 -I $(top_srcdir)/src/core \
188 -I $(top_srcdir)/src/libudev \
189 -I $(top_srcdir)/src/udev \
190 -I $(top_srcdir)/src/udev/net \
191 -I $(top_builddir)/src/udev \
192 -I $(top_srcdir)/src/libsystemd-bus \
193 -I $(top_srcdir)/src/libsystemd-rtnl \
196 AM_CFLAGS = $(OUR_CFLAGS)
197 AM_LDFLAGS = $(OUR_LDFLAGS)
199 # ------------------------------------------------------------------------------
200 define move-to-rootlibdir
201 if test "$(libdir)" != "$(rootlibdir)"; then \
202 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
203 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
204 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
205 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
206 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
212 RUNLEVEL1_TARGET_WANTS =
213 RUNLEVEL2_TARGET_WANTS =
214 RUNLEVEL3_TARGET_WANTS =
215 RUNLEVEL4_TARGET_WANTS =
216 RUNLEVEL5_TARGET_WANTS =
217 SHUTDOWN_TARGET_WANTS =
218 LOCAL_FS_TARGET_WANTS =
219 MULTI_USER_TARGET_WANTS =
220 SYSINIT_TARGET_WANTS =
221 SOCKETS_TARGET_WANTS =
222 TIMERS_TARGET_WANTS =
224 SYSTEM_UNIT_ALIASES =
229 install-target-wants-hook:
230 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
231 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
232 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
233 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
234 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
235 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
236 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
237 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
238 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
239 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
240 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
241 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
244 [ -z "$$what" ] || ( \
245 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
246 $(MKDIR_P) -m 0755 $$dir && \
249 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
252 install-directories-hook:
253 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
255 install-aliases-hook:
256 set -- $(SYSTEM_UNIT_ALIASES) && \
257 dir=$(systemunitdir) && $(install-aliases)
258 set -- $(USER_UNIT_ALIASES) && \
259 dir=$(userunitdir) && $(install-aliases)
260 set -- $(GENERAL_ALIASES) && \
261 dir= && $(install-aliases)
263 define install-aliases
264 while [ -n "$$1" ]; do \
265 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
266 rm -f $(DESTDIR)$$dir/$$2 && \
267 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
268 shift 2 || exit $$?; \
272 INSTALL_EXEC_HOOKS += \
273 install-target-wants-hook \
274 install-directories-hook \
277 # ------------------------------------------------------------------------------
278 AM_V_M4 = $(AM_V_M4_$(V))
279 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
280 AM_V_M4_0 = @echo " M4 " $@;
282 AM_V_XSLT = $(AM_V_XSLT_$(V))
283 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
284 AM_V_XSLT_0 = @echo " XSLT " $@;
286 AM_V_GPERF = $(AM_V_GPERF_$(V))
287 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
288 AM_V_GPERF_0 = @echo " GPERF " $@;
290 AM_V_LN = $(AM_V_LN_$(V))
291 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
292 AM_V_LN_0 = @echo " LN " $@;
294 # ------------------------------------------------------------------------------
298 systemd-ask-password \
299 systemd-tty-ask-password-agent \
300 systemd-machine-id-setup
305 systemd-stdio-bridge \
307 systemd-detect-virt \
313 src/kernel-install/kernel-install
315 dist_kernelinstall_SCRIPTS = \
316 src/kernel-install/50-depmod.install \
317 src/kernel-install/90-loaderentry.install
319 rootlibexec_PROGRAMS = \
321 systemd-cgroups-agent \
323 systemd-update-utmp \
327 systemd-reply-password \
332 systemd-socket-proxyd
334 systemgenerator_PROGRAMS = \
335 systemd-getty-generator \
336 systemd-fstab-generator \
337 systemd-system-update-generator
339 dist_bashcompletion_DATA = \
340 shell-completion/bash/journalctl \
341 shell-completion/bash/systemctl \
342 shell-completion/bash/systemd-analyze \
343 shell-completion/bash/systemd-run \
344 shell-completion/bash/udevadm \
345 shell-completion/bash/kernel-install
347 dist_zshcompletion_DATA = \
348 shell-completion/zsh/_systemctl \
349 shell-completion/zsh/_journalctl \
350 shell-completion/zsh/_udevadm \
351 shell-completion/zsh/_kernel-install \
352 shell-completion/zsh/_systemd-nspawn \
353 shell-completion/zsh/_systemd-analyze \
354 shell-completion/zsh/_systemd-run \
355 shell-completion/zsh/_sd_hosts_or_user_at_host \
356 shell-completion/zsh/_systemd-delta \
357 shell-completion/zsh/_systemd
360 sysctl.d/50-default.conf
362 dist_systemunit_DATA = \
363 units/graphical.target \
364 units/multi-user.target \
365 units/emergency.service \
366 units/emergency.target \
367 units/sysinit.target \
372 units/local-fs.target \
373 units/local-fs-pre.target \
374 units/initrd.target \
375 units/initrd-fs.target \
376 units/initrd-root-fs.target \
377 units/remote-fs.target \
378 units/remote-fs-pre.target \
379 units/network.target \
380 units/network-online.target \
381 units/nss-lookup.target \
382 units/nss-user-lookup.target \
383 units/hibernate.target \
384 units/hybrid-sleep.target \
385 units/poweroff.target \
386 units/reboot.target \
387 units/rescue.target \
388 units/rpcbind.target \
389 units/time-sync.target \
390 units/shutdown.target \
392 units/umount.target \
393 units/sigpwr.target \
395 units/sockets.target \
396 units/timers.target \
398 units/suspend.target \
400 units/slices.target \
403 units/systemd-initctl.socket \
404 units/systemd-shutdownd.socket \
405 units/syslog.socket \
406 units/dev-hugepages.mount \
407 units/dev-mqueue.mount \
408 units/sys-kernel-config.mount \
409 units/sys-kernel-debug.mount \
410 units/sys-fs-fuse-connections.mount \
412 units/printer.target \
414 units/bluetooth.target \
415 units/smartcard.target \
416 units/systemd-ask-password-wall.path \
417 units/systemd-ask-password-console.path \
418 units/systemd-udevd-control.socket \
419 units/systemd-udevd-kernel.socket \
420 units/system-update.target \
421 units/initrd-switch-root.target
423 nodist_systemunit_DATA = \
424 units/getty@.service \
425 units/serial-getty@.service \
426 units/console-shell.service \
427 units/console-getty.service \
428 units/container-getty@.service \
429 units/systemd-initctl.service \
430 units/systemd-shutdownd.service \
431 units/systemd-remount-fs.service \
432 units/systemd-update-utmp.service \
433 units/systemd-update-utmp-runlevel.service \
434 units/systemd-ask-password-wall.service \
435 units/systemd-ask-password-console.service \
436 units/systemd-sysctl.service \
437 units/emergency.service \
438 units/rescue.service \
439 units/user@.service \
440 units/systemd-hibernate.service \
441 units/systemd-hybrid-sleep.service \
442 units/systemd-suspend.service \
443 units/systemd-halt.service \
444 units/systemd-poweroff.service \
445 units/systemd-reboot.service \
446 units/systemd-kexec.service \
447 units/systemd-fsck@.service \
448 units/systemd-fsck-root.service \
449 units/systemd-udevd.service \
450 units/systemd-udev-trigger.service \
451 units/systemd-udev-settle.service \
452 units/debug-shell.service \
453 units/initrd-parse-etc.service \
454 units/initrd-cleanup.service \
455 units/initrd-udevadm-cleanup-db.service \
456 units/initrd-switch-root.service \
457 units/systemd-nspawn@.service
459 dist_userunit_DATA = \
460 units/user/default.target \
461 units/user/exit.target
463 nodist_userunit_DATA = \
464 units/user/systemd-exit.service
467 units/getty@.service.m4 \
468 units/serial-getty@.service.m4 \
469 units/console-shell.service.m4.in \
470 units/console-getty.service.m4.in \
471 units/container-getty@.service.m4.in \
472 units/rescue.service.m4.in \
473 units/systemd-initctl.service.in \
474 units/systemd-shutdownd.service.in \
475 units/systemd-remount-fs.service.in \
476 units/systemd-update-utmp.service.in \
477 units/systemd-update-utmp-runlevel.service.in \
478 units/systemd-ask-password-wall.service.in \
479 units/systemd-ask-password-console.service.in \
480 units/systemd-sysctl.service.in \
481 units/emergency.service.in \
482 units/systemd-halt.service.in \
483 units/systemd-poweroff.service.in \
484 units/systemd-reboot.service.in \
485 units/systemd-kexec.service.in \
486 units/user/systemd-exit.service.in \
487 units/systemd-fsck@.service.in \
488 units/systemd-fsck-root.service.in \
489 units/user@.service.in \
490 units/systemd-udevd.service \
491 units/systemd-udev-trigger.service \
492 units/systemd-udev-settle.service \
493 units/debug-shell.service.in \
494 units/systemd-hibernate.service.in \
495 units/systemd-hybrid-sleep.service.in \
496 units/systemd-suspend.service.in \
497 units/quotaon.service.in \
498 units/initrd-parse-etc.service.in \
499 units/initrd-cleanup.service.in \
500 units/initrd-udevadm-cleanup-db.service.in \
501 units/initrd-switch-root.service.in \
502 units/systemd-nspawn@.service.in
505 units/console-shell.service.m4 \
506 units/console-getty.service.m4 \
507 units/container-getty@.service.m4 \
508 units/rescue.service.m4
511 nodist_systemunit_DATA += \
512 units/rc-local.service \
513 units/halt-local.service
515 systemgenerator_PROGRAMS += \
516 systemd-rc-local-generator
520 units/rc-local.service.in \
521 units/halt-local.service.in
523 # automake is broken and can't handle files with a dash in front
524 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
526 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
528 units-uninstall-hook:
529 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
531 INSTALL_DATA_HOOKS += units-install-hook
532 UNINSTALL_DATA_HOOKS += units-uninstall-hook
542 @INTLTOOL_POLICY_RULE@
544 # ------------------------------------------------------------------------------
549 include Makefile-man.am
552 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
555 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
557 ${XML_FILES:.xml=.html}
559 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
576 $(AM_V_at)$(MKDIR_P) $(dir $@)
577 $(AM_V_LN)$(LN_S) -f ../../man $@
586 man/index.html: man/systemd.index.html
587 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
595 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
596 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
597 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
599 update-man-list: make-man-rules.py $(XML_GLOB)
600 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
601 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
602 @echo "Makefile-man.am has been regenerated"
604 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
605 $(AM_V_at)$(MKDIR_P) $(dir $@)
606 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
608 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
609 $(AM_V_at)$(MKDIR_P) $(dir $@)
610 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
613 man/systemd.index.xml \
615 man/systemd.directives.xml
618 man/systemd.index.xml \
619 man/systemd.directives.xml
631 make-directive-index.py \
634 # ------------------------------------------------------------------------------
635 noinst_LTLIBRARIES += \
638 libsystemd_rtnl_la_SOURCES = \
639 src/systemd/sd-rtnl.h \
640 src/libsystemd-rtnl/sd-rtnl.c \
641 src/libsystemd-rtnl/rtnl-internal.h \
642 src/libsystemd-rtnl/rtnl-message.c \
643 src/libsystemd-rtnl/rtnl-util.h \
644 src/libsystemd-rtnl/rtnl-util.c
646 test_rtnl_SOURCES = \
647 src/libsystemd-rtnl/test-rtnl.c
651 libsystemd-bus-internal.la \
652 libsystemd-id128-internal.la \
657 # ------------------------------------------------------------------------------
658 noinst_LTLIBRARIES += \
661 libsystemd_shared_la_SOURCES = \
662 src/shared/linux/auto_dev-ioctl.h \
663 src/shared/linux/fanotify.h \
664 src/shared/linux/seccomp.h \
665 src/shared/linux/seccomp-bpf.h \
666 src/shared/ioprio.h \
667 src/shared/missing.h \
668 src/shared/initreq.h \
669 src/shared/securebits.h \
670 src/shared/special.h \
674 src/shared/sparse-endian.h \
675 src/shared/refcnt.h \
676 src/shared/udev-util.h \
677 src/shared/bus-errors.h \
678 src/shared/device-nodes.c \
679 src/shared/device-nodes.h \
684 src/shared/efivars.c \
685 src/shared/efivars.h \
686 src/shared/path-util.c \
687 src/shared/path-util.h \
688 src/shared/time-util.c \
689 src/shared/time-util.h \
690 src/shared/hashmap.c \
691 src/shared/hashmap.h \
698 src/shared/sleep-config.c \
699 src/shared/sleep-config.h \
702 src/shared/env-util.c \
703 src/shared/env-util.h \
704 src/shared/strbuf.c \
705 src/shared/strbuf.h \
706 src/shared/strxcpyx.c \
707 src/shared/strxcpyx.h \
708 src/shared/conf-parser.c \
709 src/shared/conf-parser.h \
712 src/shared/ratelimit.h \
713 src/shared/ratelimit.c \
714 src/shared/exit-status.c \
715 src/shared/exit-status.h \
718 src/shared/gunicode.c \
719 src/shared/gunicode.h \
722 src/shared/socket-util.c \
723 src/shared/socket-util.h \
724 src/shared/conf-files.c \
725 src/shared/conf-files.h \
726 src/shared/cgroup-util.c \
727 src/shared/cgroup-util.h \
728 src/shared/cgroup-show.c \
729 src/shared/cgroup-show.h \
730 src/shared/unit-name.c \
731 src/shared/unit-name.h \
732 src/shared/utmp-wtmp.c \
733 src/shared/utmp-wtmp.h \
734 src/shared/watchdog.c \
735 src/shared/watchdog.h \
736 src/shared/spawn-ask-password-agent.c \
737 src/shared/spawn-ask-password-agent.h \
738 src/shared/replace-var.c \
739 src/shared/replace-var.h \
740 src/shared/spawn-polkit-agent.c \
741 src/shared/spawn-polkit-agent.h \
742 src/shared/hwclock.c \
743 src/shared/hwclock.h \
744 src/shared/time-dst.c \
745 src/shared/time-dst.h \
746 src/shared/calendarspec.c \
747 src/shared/calendarspec.h \
748 src/shared/fileio.c \
749 src/shared/fileio.h \
750 src/shared/output-mode.h \
751 src/shared/MurmurHash3.c \
752 src/shared/MurmurHash3.h \
753 src/shared/acpi-fpdt.h \
754 src/shared/acpi-fpdt.c \
755 src/shared/boot-timestamps.h \
756 src/shared/boot-timestamps.c \
759 src/shared/smack-util.c \
760 src/shared/smack-util.h \
761 src/shared/apparmor-util.c \
762 src/shared/apparmor-util.h \
763 src/shared/ima-util.c \
764 src/shared/ima-util.h \
765 src/shared/ptyfwd.c \
766 src/shared/ptyfwd.h \
767 src/shared/net-util.c \
768 src/shared/net-util.h \
769 src/shared/errno-list.c \
770 src/shared/errno-list.h \
771 src/shared/syscall-list.c \
772 src/shared/syscall-list.h
774 nodist_libsystemd_shared_la_SOURCES = \
775 src/shared/errno-from-name.h \
776 src/shared/errno-to-name.h \
777 src/shared/syscall-from-name.h \
778 src/shared/syscall-to-name.h
780 # ------------------------------------------------------------------------------
781 noinst_LTLIBRARIES += \
784 libsystemd_units_la_SOURCES = \
785 src/shared/install.c \
786 src/shared/install.h \
787 src/shared/install-printf.c \
788 src/shared/install-printf.h \
789 src/shared/path-lookup.c \
790 src/shared/path-lookup.h \
791 src/shared/specifier.c \
792 src/shared/specifier.h
794 libsystemd_units_la_CFLAGS = \
797 # ------------------------------------------------------------------------------
798 noinst_LTLIBRARIES += \
801 libsystemd_label_la_SOURCES = \
802 src/shared/socket-label.c \
805 src/shared/selinux-util.c \
806 src/shared/selinux-util.h \
807 src/shared/mkdir-label.c \
808 src/shared/ask-password-api.c \
809 src/shared/ask-password-api.h \
810 src/shared/fileio-label.c \
811 src/shared/fileio-label.h \
812 src/shared/dev-setup.c \
813 src/shared/dev-setup.h
815 libsystemd_label_la_CFLAGS = \
819 libsystemd_label_la_LIBADD = \
822 # ------------------------------------------------------------------------------
823 noinst_LTLIBRARIES += \
826 libsystemd_logs_la_SOURCES = \
827 src/shared/logs-show.c \
828 src/shared/logs-show.h
830 # ------------------------------------------------------------------------------
831 noinst_LTLIBRARIES += \
832 libsystemd-capability.la
834 libsystemd_capability_la_SOURCES = \
835 src/shared/capability.c \
836 src/shared/capability.h
838 libsystemd_capability_la_CFLAGS = \
842 libsystemd_capability_la_LIBADD = \
845 # ------------------------------------------------------------------------------
846 noinst_LTLIBRARIES += \
849 libsystemd_audit_la_SOURCES = \
853 # ------------------------------------------------------------------------------
855 noinst_LTLIBRARIES += \
858 libsystemd_acl_la_SOURCES = \
859 src/shared/acl-util.c \
860 src/shared/acl-util.h
862 libsystemd_acl_la_CFLAGS = \
866 libsystemd_acl_la_LIBADD = \
870 # ------------------------------------------------------------------------------
871 noinst_LTLIBRARIES += \
874 libsystemd_core_la_SOURCES = \
877 src/core/unit-printf.c \
878 src/core/unit-printf.h \
883 src/core/transaction.c \
884 src/core/transaction.h \
885 src/core/load-fragment.c \
886 src/core/load-fragment.h \
889 src/core/automount.c \
890 src/core/automount.h \
899 src/core/snapshot.c \
900 src/core/snapshot.h \
911 src/core/load-dropin.c \
912 src/core/load-dropin.h \
919 src/core/dbus-manager.c \
920 src/core/dbus-manager.h \
921 src/core/dbus-unit.c \
922 src/core/dbus-unit.h \
923 src/core/dbus-job.c \
924 src/core/dbus-job.h \
925 src/core/dbus-service.c \
926 src/core/dbus-service.h \
927 src/core/dbus-socket.c \
928 src/core/dbus-socket.h \
929 src/core/dbus-timer.c \
930 src/core/dbus-timer.h \
931 src/core/dbus-target.c \
932 src/core/dbus-target.h \
933 src/core/dbus-mount.c \
934 src/core/dbus-mount.h \
935 src/core/dbus-automount.c \
936 src/core/dbus-automount.h \
937 src/core/dbus-swap.c \
938 src/core/dbus-swap.h \
939 src/core/dbus-snapshot.c \
940 src/core/dbus-snapshot.h \
941 src/core/dbus-device.c \
942 src/core/dbus-device.h \
943 src/core/dbus-path.c \
944 src/core/dbus-path.h \
945 src/core/dbus-slice.c \
946 src/core/dbus-slice.h \
947 src/core/dbus-scope.c \
948 src/core/dbus-scope.h \
949 src/core/dbus-execute.c \
950 src/core/dbus-execute.h \
951 src/core/dbus-kill.c \
952 src/core/dbus-kill.h \
953 src/core/dbus-cgroup.c \
954 src/core/dbus-cgroup.h \
955 src/core/dbus-client-track.c \
956 src/core/dbus-client-track.h \
959 src/core/selinux-access.c \
960 src/core/selinux-access.h \
961 src/core/selinux-setup.c \
962 src/core/selinux-setup.h \
963 src/core/smack-setup.c \
964 src/core/smack-setup.h \
965 src/core/ima-setup.c \
966 src/core/ima-setup.h \
967 src/core/locale-setup.h \
968 src/core/locale-setup.c \
969 src/core/hostname-setup.c \
970 src/core/hostname-setup.h \
971 src/core/machine-id-setup.c \
972 src/core/machine-id-setup.h \
973 src/core/mount-setup.c \
974 src/core/mount-setup.h \
975 src/core/loopback-setup.h \
976 src/core/loopback-setup.c \
977 src/core/condition.c \
978 src/core/condition.h \
979 src/core/namespace.c \
980 src/core/namespace.h \
984 src/core/sysfs-show.h \
985 src/core/switch-root.h \
986 src/core/switch-root.c \
989 src/core/audit-fd.c \
990 src/core/audit-fd.h \
995 libsystemd_core_la_SOURCES += \
996 src/core/kmod-setup.c \
997 src/core/kmod-setup.h
1000 nodist_libsystemd_core_la_SOURCES = \
1001 src/core/load-fragment-gperf.c \
1002 src/core/load-fragment-gperf-nulstr.c
1004 libsystemd_core_la_CFLAGS = \
1012 libsystemd_core_la_LIBADD = \
1013 libsystemd-capability.la \
1014 libsystemd-units.la \
1015 libsystemd-label.la \
1016 libsystemd-audit.la \
1017 libsystemd-id128-internal.la \
1018 libsystemd-daemon-internal.la \
1019 libudev-internal.la \
1020 libsystemd-shared.la \
1021 libsystemd-rtnl.la \
1022 libsystemd-bus-internal.la \
1029 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1030 $(AM_V_at)$(MKDIR_P) $(dir $@)
1031 $(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 ";" }' < $< > $@
1034 src/core/load-fragment-gperf.gperf.m4
1037 src/core/load-fragment-gperf.gperf \
1038 src/core/load-fragment-gperf.c \
1039 src/core/load-fragment-gperf-nulstr.c \
1040 src/shared/syscall-list.txt \
1041 src/shared/syscall-from-name.gperf \
1042 src/shared/errno-list.txt \
1043 src/shared/errno-from-name.gperf
1046 src/shared/syscall-from-name.h \
1047 src/shared/syscall-to-name.h \
1048 src/shared/errno-from-name.h \
1049 src/shared/errno-to-name.h
1051 src/shared/syscall-list.txt: Makefile
1052 $(AM_V_at)$(MKDIR_P) $(dir $@)
1053 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h - < /dev/null | $(AWK) '/^#define[ \t]+__NR_[^ ]+[ \t]+[0-9(]/ { sub(/__NR_/, "", $$2); if ($$2 !~ /SYSCALL_BASE/) print $$2; }' > $@
1055 src/shared/syscall-from-name.gperf: src/shared/syscall-list.txt Makefile
1056 $(AM_V_at)$(MKDIR_P) $(dir $@)
1057 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct syscall_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, __NR_%s\n", $$1, $$1 }' < $< > $@
1059 src/shared/syscall-from-name.h: src/shared/syscall-from-name.gperf Makefile
1060 $(AM_V_at)$(MKDIR_P) $(dir $@)
1061 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1063 src/shared/syscall-to-name.h: src/shared/syscall-list.txt Makefile
1064 $(AM_V_at)$(MKDIR_P) $(dir $@)
1065 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1067 src/shared/errno-list.txt: Makefile
1068 $(AM_V_at)$(MKDIR_P) $(dir $@)
1069 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+[0-9]/ { print $$2; }' > $@
1071 src/shared/errno-from-name.gperf: src/shared/errno-list.txt Makefile
1072 $(AM_V_at)$(MKDIR_P) $(dir $@)
1073 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1075 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf Makefile
1076 $(AM_V_at)$(MKDIR_P) $(dir $@)
1077 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1079 src/shared/errno-to-name.h: src/shared/errno-list.txt Makefile
1080 $(AM_V_at)$(MKDIR_P) $(dir $@)
1081 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1083 # ------------------------------------------------------------------------------
1088 libsystemd-core.la \
1091 dist_pkgsysconf_DATA += \
1092 src/core/system.conf \
1095 dist_dbuspolicy_DATA += \
1096 src/core/org.freedesktop.systemd1.conf
1098 dist_dbussystemservice_DATA += \
1099 src/core/org.freedesktop.systemd1.service
1101 polkitpolicy_in_in_files += \
1102 src/core/org.freedesktop.systemd1.policy.in.in
1104 pkgconfigdata_DATA = \
1107 nodist_rpmmacros_DATA = \
1108 src/core/macros.systemd
1111 src/core/systemd.pc.in \
1112 src/core/macros.systemd.in
1115 src/core/macros.systemd \
1116 src/core/org.freedesktop.systemd1.policy.in
1118 # ------------------------------------------------------------------------------
1148 test-strip-tab-ansi \
1160 test/sched_idle_bad.service \
1161 test/sched_idle_ok.service \
1162 test/sched_rr_bad.service \
1163 test/sched_rr_ok.service \
1164 test/sched_rr_change.service
1167 src/test/test-helper.h
1169 test_device_nodes_SOURCES = \
1170 src/test/test-device-nodes.c
1172 test_device_nodes_LDADD = \
1173 libsystemd-shared.la
1175 test_engine_SOURCES = \
1176 src/test/test-engine.c
1178 test_engine_LDADD = \
1179 libsystemd-core.la \
1182 test_job_type_SOURCES = \
1183 src/test/test-job-type.c
1185 test_job_type_LDADD = \
1186 libsystemd-core.la \
1195 test_loopback_SOURCES = \
1196 src/test/test-loopback.c
1198 test_loopback_LDADD = \
1201 test_hostname_SOURCES = \
1202 src/test/test-hostname.c
1204 test_hostname_LDADD = \
1211 test_boot_timestamp_SOURCES = \
1212 src/test/test-boot-timestamps.c
1214 test_boot_timestamp_LDADD = \
1215 libsystemd-shared.la
1218 test_unit_name_SOURCES = \
1219 src/test/test-unit-name.c
1221 test_unit_name_LDADD = \
1222 libsystemd-core.la \
1225 test_unit_file_SOURCES = \
1226 src/test/test-unit-file.c
1228 test_unit_file_LDADD = \
1229 libsystemd-core.la \
1232 test_utf8_SOURCES = \
1233 src/test/test-utf8.c
1236 libsystemd-shared.la
1238 test_util_SOURCES = \
1239 src/test/test-util.c
1244 test_namespace_SOURCES = \
1245 src/test/test-namespace.c
1247 test_namespace_LDADD = \
1250 test_hashmap_SOURCES = \
1251 src/test/test-hashmap.c
1253 test_hashmap_LDADD = \
1256 test_list_SOURCES = \
1257 src/test/test-list.c
1262 test_tables_SOURCES = \
1263 src/test/test-tables.c \
1264 src/shared/test-tables.h
1266 test_tables_LDADD = \
1267 libsystemd-logs.la \
1268 libsystemd-journal-internal.la \
1269 libsystemd-core.la \
1272 test_prioq_SOURCES = \
1273 src/test/test-prioq.c
1275 test_prioq_LDADD = \
1278 test_fileio_SOURCES = \
1279 src/test/test-fileio.c
1281 test_fileio_LDADD = \
1284 test_time_SOURCES = \
1285 src/test/test-time.c
1290 test_log_SOURCES = \
1296 test_ellipsize_SOURCES = \
1297 src/test/test-ellipsize.c
1299 test_ellipsize_LDADD = \
1302 test_date_SOURCES = \
1303 src/test/test-date.c
1308 test_sleep_SOURCES = \
1309 src/test/test-sleep.c
1311 test_sleep_LDADD = \
1314 test_replace_var_SOURCES = \
1315 src/test/test-replace-var.c
1317 test_replace_var_LDADD = \
1318 libsystemd-shared.la
1320 test_calendarspec_SOURCES = \
1321 src/test/test-calendarspec.c
1323 test_calendarspec_LDADD = \
1324 libsystemd-shared.la
1326 test_strip_tab_ansi_SOURCES = \
1327 src/test/test-strip-tab-ansi.c
1329 test_strip_tab_ansi_LDADD = \
1330 libsystemd-shared.la
1332 test_daemon_SOURCES = \
1333 src/test/test-daemon.c
1335 test_daemon_LDADD = \
1336 libsystemd-daemon-internal.la \
1337 libsystemd-shared.la
1339 test_cgroup_SOURCES = \
1340 src/test/test-cgroup.c
1342 test_cgroup_LDADD = \
1343 libsystemd-label.la \
1344 libsystemd-shared.la
1346 test_cgroup_mask_SOURCES = \
1347 src/test/test-cgroup-mask.c
1349 test_cgroup_mask_CFLAGS = \
1352 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1354 test_cgroup_mask_LDADD = \
1355 libsystemd-core.la \
1358 test_cgroup_util_SOURCES = \
1359 src/test/test-cgroup-util.c
1361 test_cgroup_util_LDADD = \
1362 libsystemd-label.la \
1363 libsystemd-daemon-internal.la \
1364 libsystemd-shared.la
1366 test_env_replace_SOURCES = \
1367 src/test/test-env-replace.c
1369 test_env_replace_LDADD = \
1370 libsystemd-shared.la
1372 test_strbuf_SOURCES = \
1373 src/test/test-strbuf.c
1375 test_strbuf_LDADD = \
1376 libsystemd-shared.la
1378 test_strv_SOURCES = \
1379 src/test/test-strv.c
1382 libsystemd-units.la \
1383 libsystemd-id128-internal.la \
1384 libsystemd-shared.la
1386 test_path_util_SOURCES = \
1387 src/test/test-path-util.c
1389 test_path_util_LDADD = \
1390 libsystemd-shared.la
1392 test_strxcpyx_SOURCES = \
1393 src/test/test-strxcpyx.c
1395 test_strxcpyx_LDADD = \
1396 libsystemd-shared.la
1398 test_install_SOURCES = \
1399 src/test/test-install.c
1401 test_install_LDADD = \
1402 libsystemd-units.la \
1403 libsystemd-label.la \
1404 libsystemd-id128-internal.la \
1405 libsystemd-shared.la
1407 test_watchdog_SOURCES = \
1408 src/test/test-watchdog.c
1410 test_watchdog_LDADD = \
1411 libsystemd-shared.la
1413 test_sched_prio_SOURCES = \
1414 src/test/test-sched-prio.c
1416 test_sched_prio_CFLAGS = \
1418 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1420 test_sched_prio_LDADD = \
1421 libsystemd-core.la \
1424 # ------------------------------------------------------------------------------
1425 ## .PHONY so it always rebuilds it
1426 .PHONY: coverage lcov-run lcov-report
1428 # run lcov from scratch, always
1433 coverage_dir = coverage
1434 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1437 # reset run coverage tests
1439 @rm -rf $(coverage_dir)
1440 lcov $(coverage_opts) --zerocounters
1443 # generate report based on current coverage data
1445 $(MKDIR_P) $(coverage_dir)
1446 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1447 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1448 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1449 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1451 # lcov doesn't work properly with vpath builds, make sure that bad
1452 # output is not uploaded by mistake.
1453 coverage-sync: coverage
1454 test "$(builddir)" = "$(srcdir)"
1455 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1458 lcov-run lcov-report:
1459 echo "Need to reconfigure with --enable-coverage"
1462 # ------------------------------------------------------------------------------
1463 systemd_analyze_SOURCES = \
1464 src/analyze/analyze.c
1466 systemd_analyze_LDADD = \
1467 libsystemd-bus-internal.la \
1468 libsystemd-id128-internal.la \
1469 libsystemd-daemon-internal.la \
1470 libsystemd-shared.la
1472 # ------------------------------------------------------------------------------
1473 systemd_initctl_SOURCES = \
1474 src/initctl/initctl.c
1476 systemd_initctl_LDADD = \
1477 libsystemd-bus-internal.la \
1478 libsystemd-id128-internal.la \
1479 libsystemd-daemon-internal.la \
1480 libsystemd-shared.la
1482 # ------------------------------------------------------------------------------
1483 systemd_update_utmp_SOURCES = \
1484 src/update-utmp/update-utmp.c
1486 systemd_update_utmp_CFLAGS = \
1490 systemd_update_utmp_LDADD = \
1491 libsystemd-bus-internal.la \
1492 libsystemd-id128-internal.la \
1493 libsystemd-daemon-internal.la \
1494 libsystemd-shared.la \
1497 # ------------------------------------------------------------------------------
1498 systemd_shutdownd_SOURCES = \
1499 src/shutdownd/shutdownd.c
1501 systemd_shutdownd_LDADD = \
1502 libsystemd-label.la \
1503 libsystemd-daemon-internal.la \
1504 libsystemd-shared.la
1507 src/systemd/sd-shutdown.h
1509 # ------------------------------------------------------------------------------
1510 systemd_shutdown_SOURCES = \
1513 src/core/shutdown.c \
1514 src/core/mount-setup.c \
1515 src/core/mount-setup.h \
1516 src/core/killall.h \
1519 systemd_shutdown_LDADD = \
1520 libsystemd-label.la \
1521 libudev-internal.la \
1522 libsystemd-shared.la
1524 # ------------------------------------------------------------------------------
1526 systemd_modules_load_SOURCES = \
1527 src/modules-load/modules-load.c
1529 systemd_modules_load_CFLAGS = \
1533 systemd_modules_load_LDADD = \
1534 libsystemd-shared.la \
1537 rootlibexec_PROGRAMS += \
1538 systemd-modules-load
1540 nodist_systemunit_DATA += \
1541 units/systemd-modules-load.service
1543 SYSINIT_TARGET_WANTS += \
1544 systemd-modules-load.service
1547 nodist_systemunit_DATA += \
1548 units/kmod-static-nodes.service
1550 SYSINIT_TARGET_WANTS += \
1551 kmod-static-nodes.service
1556 units/systemd-modules-load.service.in \
1557 units/kmod-static-nodes.service.in
1559 # ------------------------------------------------------------------------------
1561 systemd_tmpfiles_SOURCES = \
1562 src/tmpfiles/tmpfiles.c \
1563 src/shared/specifier.c \
1564 src/shared/specifier.h
1566 systemd_tmpfiles_LDADD = \
1567 libsystemd-label.la \
1568 libsystemd-capability.la \
1569 libsystemd-id128-internal.la \
1570 libsystemd-shared.la
1572 rootbin_PROGRAMS += \
1575 dist_systemunit_DATA += \
1576 units/systemd-tmpfiles-clean.timer
1578 nodist_systemunit_DATA += \
1579 units/systemd-tmpfiles-setup-dev.service \
1580 units/systemd-tmpfiles-setup.service \
1581 units/systemd-tmpfiles-clean.service
1583 dist_tmpfiles_DATA = \
1584 tmpfiles.d/systemd.conf \
1585 tmpfiles.d/tmp.conf \
1589 dist_tmpfiles_DATA += \
1590 tmpfiles.d/legacy.conf
1593 SYSINIT_TARGET_WANTS += \
1594 systemd-tmpfiles-setup-dev.service \
1595 systemd-tmpfiles-setup.service
1597 dist_zshcompletion_DATA += \
1598 shell-completion/zsh/_systemd-tmpfiles
1600 TIMERS_TARGET_WANTS += \
1601 systemd-tmpfiles-clean.timer
1605 $(sysconfdir)/tmpfiles.d
1609 units/systemd-tmpfiles-setup-dev.service.in \
1610 units/systemd-tmpfiles-setup.service.in \
1611 units/systemd-tmpfiles-clean.service.in
1613 # ------------------------------------------------------------------------------
1614 systemd_machine_id_setup_SOURCES = \
1615 src/machine-id-setup/machine-id-setup-main.c \
1616 src/core/machine-id-setup.c \
1617 src/core/machine-id-setup.h
1619 systemd_machine_id_setup_LDADD = \
1620 libsystemd-label.la \
1621 libsystemd-id128-internal.la \
1622 libsystemd-shared.la
1624 # ------------------------------------------------------------------------------
1625 systemd_sysctl_SOURCES = \
1628 systemd_sysctl_LDADD = \
1629 libsystemd-shared.la
1631 # ------------------------------------------------------------------------------
1632 systemd_sleep_SOURCES = \
1635 systemd_sleep_LDADD = \
1636 libsystemd-shared.la
1638 # ------------------------------------------------------------------------------
1639 systemd_fsck_SOURCES = \
1642 systemd_fsck_LDADD = \
1643 libsystemd-bus-internal.la \
1644 libsystemd-id128-internal.la \
1645 libsystemd-daemon-internal.la \
1646 libudev-internal.la \
1647 libsystemd-shared.la
1649 # ------------------------------------------------------------------------------
1650 systemd_ac_power_SOURCES = \
1651 src/ac-power/ac-power.c
1653 systemd_ac_power_LDADD = \
1654 libudev-internal.la \
1655 libsystemd-shared.la
1657 # ------------------------------------------------------------------------------
1658 systemd_detect_virt_SOURCES = \
1659 src/detect-virt/detect-virt.c
1661 systemd_detect_virt_LDADD = \
1662 libsystemd-shared.la
1664 systemd-detect-virt-install-hook:
1665 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1667 INSTALL_EXEC_HOOKS += \
1668 systemd-detect-virt-install-hook
1670 # ------------------------------------------------------------------------------
1671 systemd_delta_SOURCES = \
1674 systemd_delta_LDADD = \
1675 libsystemd-shared.la
1677 # ------------------------------------------------------------------------------
1678 systemd_getty_generator_SOURCES = \
1679 src/getty-generator/getty-generator.c
1681 systemd_getty_generator_LDADD = \
1682 libsystemd-label.la \
1683 libsystemd-shared.la
1685 # ------------------------------------------------------------------------------
1686 systemd_fstab_generator_SOURCES = \
1687 src/fstab-generator/fstab-generator.c \
1688 src/core/mount-setup.c
1690 systemd_fstab_generator_LDADD = \
1691 libsystemd-label.la \
1692 libsystemd-shared.la
1694 # ------------------------------------------------------------------------------
1695 systemd_system_update_generator_SOURCES = \
1696 src/system-update-generator/system-update-generator.c
1698 systemd_system_update_generator_LDADD = \
1699 libsystemd-label.la \
1700 libsystemd-shared.la
1703 # ------------------------------------------------------------------------------
1704 systemgenerator_PROGRAMS += \
1705 systemd-efi-boot-generator
1707 systemd_efi_boot_generator_SOURCES = \
1708 src/efi-boot-generator/efi-boot-generator.c
1710 systemd_efi_boot_generator_LDADD = \
1711 libsystemd-label.la \
1712 libsystemd-shared.la
1714 # ------------------------------------------------------------------------------
1717 src/boot/boot-loader.h \
1718 src/boot/bootctl.c \
1719 src/boot/boot-loader.c \
1723 libsystemd-shared.la \
1724 libsystemd-id128-internal.la \
1725 libsystemd-daemon-internal.la
1730 dist_zshcompletion_DATA += \
1731 shell-completion/zsh/_bootctl
1735 # ------------------------------------------------------------------------------
1737 systemgenerator_PROGRAMS += \
1738 systemd-gpt-auto-generator
1740 systemd_gpt_auto_generator_SOURCES = \
1741 src/gpt-auto-generator/gpt-auto-generator.c
1743 systemd_gpt_auto_generator_LDADD = \
1744 libsystemd-label.la \
1745 libsystemd-id128-internal.la \
1746 libudev-internal.la \
1747 libsystemd-shared.la \
1750 systemd_gpt_auto_generator_CFLAGS = \
1755 # ------------------------------------------------------------------------------
1756 systemd_rc_local_generator_SOURCES = \
1757 src/rc-local-generator/rc-local-generator.c
1759 systemd_rc_local_generator_LDADD = \
1760 libsystemd-label.la \
1761 libsystemd-shared.la
1763 # ------------------------------------------------------------------------------
1764 systemd_remount_fs_SOURCES = \
1765 src/remount-fs/remount-fs.c \
1766 src/core/mount-setup.c \
1767 src/core/mount-setup.h
1769 systemd_remount_fs_LDADD = \
1770 libsystemd-label.la \
1771 libsystemd-shared.la
1773 # ------------------------------------------------------------------------------
1774 systemd_cgroups_agent_SOURCES = \
1775 src/cgroups-agent/cgroups-agent.c
1777 systemd_cgroups_agent_LDADD = \
1778 libsystemd-bus-internal.la \
1779 libsystemd-id128-internal.la \
1780 libsystemd-daemon-internal.la \
1781 libsystemd-shared.la
1783 # ------------------------------------------------------------------------------
1784 systemctl_SOURCES = \
1785 src/systemctl/systemctl.c
1788 libsystemd-units.la \
1789 libsystemd-label.la \
1790 libsystemd-bus-internal.la \
1791 libsystemd-logs.la \
1792 libsystemd-login-internal.la \
1793 libsystemd-journal-internal.la \
1794 libsystemd-id128-internal.la \
1795 libsystemd-daemon-internal.la \
1796 libsystemd-shared.la
1798 # ------------------------------------------------------------------------------
1799 systemd_notify_SOURCES = \
1800 src/notify/notify.c \
1801 src/readahead/sd-readahead.c
1803 systemd_notify_LDADD = \
1804 libsystemd-daemon-internal.la \
1805 libsystemd-shared.la
1807 # ------------------------------------------------------------------------------
1808 systemd_ask_password_SOURCES = \
1809 src/ask-password/ask-password.c
1811 systemd_ask_password_LDADD = \
1812 libsystemd-label.la \
1813 libsystemd-shared.la
1815 # ------------------------------------------------------------------------------
1816 systemd_reply_password_SOURCES = \
1817 src/reply-password/reply-password.c
1819 systemd_reply_password_LDADD = \
1820 libsystemd-shared.la
1822 # ------------------------------------------------------------------------------
1823 systemd_cgls_SOURCES = \
1826 systemd_cgls_LDADD = \
1827 libsystemd-shared.la
1829 # ------------------------------------------------------------------------------
1830 systemd_cgtop_SOURCES = \
1833 systemd_cgtop_LDADD = \
1834 libsystemd-shared.la
1836 # ------------------------------------------------------------------------------
1837 systemd_nspawn_SOURCES = \
1838 src/nspawn/nspawn.c \
1839 src/core/mount-setup.c \
1840 src/core/mount-setup.h \
1841 src/core/loopback-setup.c \
1842 src/core/loopback-setup.h
1844 systemd_nspawn_LDADD = \
1845 libsystemd-label.la \
1846 libsystemd-capability.la \
1847 libsystemd-bus-internal.la \
1848 libsystemd-id128-internal.la \
1849 libsystemd-daemon-internal.la \
1850 libsystemd-shared.la \
1853 # ------------------------------------------------------------------------------
1854 systemd_run_SOURCES = \
1857 systemd_run_LDADD = \
1858 libsystemd-label.la \
1859 libsystemd-capability.la \
1860 libsystemd-bus-internal.la \
1861 libsystemd-daemon-internal.la \
1862 libsystemd-id128-internal.la \
1863 libsystemd-shared.la
1865 # ------------------------------------------------------------------------------
1866 systemd_stdio_bridge_SOURCES = \
1867 src/stdio-bridge/stdio-bridge.c
1869 systemd_stdio_bridge_LDADD = \
1870 libsystemd-bus-internal.la \
1871 libsystemd-daemon-internal.la \
1872 libsystemd-id128-internal.la \
1873 libsystemd-shared.la
1875 # ------------------------------------------------------------------------------
1876 systemd_tty_ask_password_agent_SOURCES = \
1877 src/tty-ask-password-agent/tty-ask-password-agent.c
1879 systemd_tty_ask_password_agent_LDADD = \
1880 libsystemd-label.la \
1881 libsystemd-shared.la
1883 # ------------------------------------------------------------------------------
1884 libsystemd_daemon_la_SOURCES = \
1885 src/libsystemd-daemon/libsystemd-daemon.sym \
1886 src/libsystemd-daemon/sd-daemon.c
1888 libsystemd_daemon_internal_la_SOURCES = \
1889 $(libsystemd_daemon_la_SOURCES)
1891 libsystemd_daemon_internal_la_CPPFLAGS = \
1893 -DSD_DAEMON_DISABLE_MQ
1895 libsystemd_daemon_la_CFLAGS = \
1897 -fvisibility=hidden \
1900 libsystemd_daemon_la_LDFLAGS = \
1902 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1903 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1905 libsystemd_daemon_la_LIBADD = \
1908 pkginclude_HEADERS += \
1909 src/systemd/sd-daemon.h
1911 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1912 libsystemd-daemon-install-hook:
1913 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1915 libsystemd-daemon-uninstall-hook:
1916 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1918 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1919 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1921 lib_LTLIBRARIES += \
1922 libsystemd-daemon.la
1924 noinst_LTLIBRARIES += \
1925 libsystemd-daemon-internal.la
1927 pkgconfiglib_DATA += \
1928 src/libsystemd-daemon/libsystemd-daemon.pc
1931 src/libsystemd-daemon/libsystemd-daemon.pc.in
1933 # ------------------------------------------------------------------------------
1934 libsystemd_bus_la_SOURCES = \
1935 src/libsystemd-bus/libsystemd-bus.sym \
1936 src/systemd/sd-bus.h \
1937 src/systemd/sd-bus-protocol.h \
1938 src/systemd/sd-bus-vtable.h \
1939 src/systemd/sd-memfd.h \
1940 src/systemd/sd-utf8.h \
1941 src/systemd/sd-event.h \
1942 src/libsystemd-bus/sd-bus.c \
1943 src/libsystemd-bus/bus-control.c \
1944 src/libsystemd-bus/bus-control.h \
1945 src/libsystemd-bus/bus-error.c \
1946 src/libsystemd-bus/bus-error.h \
1947 src/libsystemd-bus/bus-internal.c \
1948 src/libsystemd-bus/bus-internal.h \
1949 src/libsystemd-bus/bus-socket.c \
1950 src/libsystemd-bus/bus-socket.h \
1951 src/libsystemd-bus/bus-kernel.c \
1952 src/libsystemd-bus/bus-kernel.h \
1953 src/libsystemd-bus/bus-container.c \
1954 src/libsystemd-bus/bus-container.h \
1955 src/libsystemd-bus/bus-message.c \
1956 src/libsystemd-bus/bus-message.h \
1957 src/libsystemd-bus/bus-signature.c \
1958 src/libsystemd-bus/bus-signature.h \
1959 src/libsystemd-bus/bus-type.c \
1960 src/libsystemd-bus/bus-type.h \
1961 src/libsystemd-bus/bus-match.c \
1962 src/libsystemd-bus/bus-match.h \
1963 src/libsystemd-bus/bus-bloom.c \
1964 src/libsystemd-bus/bus-bloom.h \
1965 src/libsystemd-bus/bus-introspect.c \
1966 src/libsystemd-bus/bus-introspect.h \
1967 src/libsystemd-bus/bus-objects.c \
1968 src/libsystemd-bus/bus-objects.h \
1969 src/libsystemd-bus/bus-convenience.c \
1970 src/libsystemd-bus/kdbus.h \
1971 src/libsystemd-bus/sd-memfd.c \
1972 src/libsystemd-bus/bus-util.c \
1973 src/libsystemd-bus/bus-util.h \
1974 src/libsystemd-bus/sd-utf8.c \
1975 src/libsystemd-bus/sd-event.c \
1976 src/libsystemd-bus/event-util.h
1978 libsystemd_bus_la_LIBADD = \
1979 libsystemd-id128-internal.la \
1980 libsystemd-daemon-internal.la \
1981 libsystemd-shared.la
1983 libsystemd_bus_la_CFLAGS = \
1987 libsystemd_bus_la_LDFLAGS = \
1989 -version-info $(LIBSYSTEMD_BUS_CURRENT):$(LIBSYSTEMD_BUS_REVISION):$(LIBSYSTEMD_BUS_AGE) \
1990 -Wl,--version-script=$(top_srcdir)/src/libsystemd-bus/libsystemd-bus.sym
1992 pkgconfiglib_DATA += \
1993 src/libsystemd-bus/libsystemd-bus.pc
1996 src/libsystemd-bus/libsystemd-bus.pc.in
1998 lib_LTLIBRARIES += \
2001 libsystemd_bus_internal_la_SOURCES = \
2002 $(libsystemd_bus_la_SOURCES)
2004 libsystemd_bus_internal_la_CFLAGS = \
2005 $(libsystemd_bus_la_CFLAGS)
2007 noinst_LTLIBRARIES += \
2008 libsystemd-bus-internal.la
2010 libsystemd_bus_dump_la_SOURCES = \
2011 src/libsystemd-bus/bus-dump.c \
2012 src/libsystemd-bus/bus-dump.h
2014 libsystemd_bus_dump_la_CFLAGS = \
2018 noinst_LTLIBRARIES += \
2019 libsystemd-bus-dump.la
2023 test-bus-signature \
2028 test-bus-kernel-bloom \
2029 test-bus-kernel-benchmark \
2031 test-bus-zero-copy \
2032 test-bus-introspect \
2040 test_bus_marshal_SOURCES = \
2041 src/libsystemd-bus/test-bus-marshal.c
2043 test_bus_marshal_LDADD = \
2044 libsystemd-bus-internal.la \
2045 libsystemd-id128-internal.la \
2046 libsystemd-daemon-internal.la \
2047 libsystemd-shared.la \
2048 libsystemd-bus-dump.la \
2049 libsystemd-capability.la \
2054 test_bus_marshal_CFLAGS = \
2060 test_bus_signature_SOURCES = \
2061 src/libsystemd-bus/test-bus-signature.c
2063 test_bus_signature_LDADD = \
2064 libsystemd-shared.la \
2065 libsystemd-bus-internal.la
2067 test_bus_chat_SOURCES = \
2068 src/libsystemd-bus/test-bus-chat.c
2070 test_bus_chat_CFLAGS = \
2074 test_bus_chat_LDADD = \
2075 libsystemd-bus-internal.la \
2076 libsystemd-id128-internal.la \
2077 libsystemd-daemon-internal.la \
2078 libsystemd-shared.la
2080 test_bus_server_SOURCES = \
2081 src/libsystemd-bus/test-bus-server.c
2083 test_bus_server_CFLAGS = \
2087 test_bus_server_LDADD = \
2088 libsystemd-bus-internal.la \
2089 libsystemd-id128-internal.la \
2090 libsystemd-daemon-internal.la \
2091 libsystemd-shared.la
2093 test_bus_objects_SOURCES = \
2094 src/libsystemd-bus/test-bus-objects.c
2096 test_bus_objects_CFLAGS = \
2101 test_bus_objects_LDADD = \
2102 libsystemd-bus-internal.la \
2103 libsystemd-id128-internal.la \
2104 libsystemd-daemon-internal.la \
2105 libsystemd-shared.la \
2106 libsystemd-bus-dump.la \
2107 libsystemd-capability.la \
2110 test_bus_error_SOURCES = \
2111 src/libsystemd-bus/test-bus-error.c
2113 test_bus_error_LDADD = \
2114 libsystemd-bus-internal.la \
2115 libsystemd-id128-internal.la \
2116 libsystemd-daemon-internal.la \
2117 libsystemd-shared.la
2119 test_bus_match_SOURCES = \
2120 src/libsystemd-bus/test-bus-match.c
2122 test_bus_match_LDADD = \
2123 libsystemd-bus-internal.la \
2124 libsystemd-id128-internal.la \
2125 libsystemd-daemon-internal.la \
2126 libsystemd-shared.la
2128 test_bus_kernel_SOURCES = \
2129 src/libsystemd-bus/test-bus-kernel.c
2131 test_bus_kernel_LDADD = \
2132 libsystemd-bus-internal.la \
2133 libsystemd-id128-internal.la \
2134 libsystemd-daemon-internal.la \
2135 libsystemd-shared.la \
2136 libsystemd-bus-dump.la \
2137 libsystemd-capability.la \
2140 test_bus_kernel_CFLAGS = \
2144 test_bus_kernel_bloom_SOURCES = \
2145 src/libsystemd-bus/test-bus-kernel-bloom.c
2147 test_bus_kernel_bloom_LDADD = \
2148 libsystemd-bus-internal.la \
2149 libsystemd-id128-internal.la \
2150 libsystemd-daemon-internal.la \
2151 libsystemd-shared.la
2153 test_bus_kernel_benchmark_SOURCES = \
2154 src/libsystemd-bus/test-bus-kernel-benchmark.c
2156 test_bus_kernel_benchmark_LDADD = \
2157 libsystemd-bus-internal.la \
2158 libsystemd-id128-internal.la \
2159 libsystemd-daemon-internal.la \
2160 libsystemd-shared.la
2162 test_bus_memfd_SOURCES = \
2163 src/libsystemd-bus/test-bus-memfd.c
2165 test_bus_memfd_LDADD = \
2166 libsystemd-bus-internal.la \
2167 libsystemd-shared.la
2169 test_bus_zero_copy_SOURCES = \
2170 src/libsystemd-bus/test-bus-zero-copy.c
2172 test_bus_zero_copy_LDADD = \
2173 libsystemd-bus-internal.la \
2174 libsystemd-id128-internal.la \
2175 libsystemd-daemon-internal.la \
2176 libsystemd-shared.la \
2177 libsystemd-bus-dump.la \
2178 libsystemd-capability.la \
2181 test_bus_zero_copy_CFLAGS = \
2185 test_bus_introspect_SOURCES = \
2186 src/libsystemd-bus/test-bus-introspect.c
2188 test_bus_introspect_LDADD = \
2189 libsystemd-shared.la \
2190 libsystemd-bus-internal.la
2192 test_event_SOURCES = \
2193 src/libsystemd-bus/test-event.c
2195 test_event_LDADD = \
2196 libsystemd-bus-internal.la \
2197 libsystemd-id128-internal.la \
2198 libsystemd-daemon-internal.la \
2199 libsystemd-shared.la
2202 src/libsystemd-bus/busctl.c
2205 libsystemd-bus-internal.la \
2206 libsystemd-id128-internal.la \
2207 libsystemd-daemon-internal.la \
2208 libsystemd-shared.la \
2209 libsystemd-bus-dump.la \
2210 libsystemd-capability.la \
2217 # ------------------------------------------------------------------------------
2227 include_HEADERS += \
2228 src/libudev/libudev.h
2230 lib_LTLIBRARIES += \
2233 libudev_la_SOURCES =\
2234 src/libudev/libudev.sym \
2235 src/libudev/libudev-private.h \
2236 src/libudev/libudev.c \
2237 src/libudev/libudev-list.c \
2238 src/libudev/libudev-util.c \
2239 src/libudev/libudev-device.c \
2240 src/libudev/libudev-enumerate.c \
2241 src/libudev/libudev-monitor.c \
2242 src/libudev/libudev-queue.c \
2243 src/libudev/libudev-hwdb-def.h \
2244 src/libudev/libudev-hwdb.c
2246 libudev_la_CFLAGS = \
2250 libudev_la_LDFLAGS = \
2252 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2253 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2255 libudev_la_LIBADD = \
2256 libsystemd-daemon-internal.la \
2257 libsystemd-id128-internal.la \
2258 libsystemd-shared.la
2260 pkgconfiglib_DATA += \
2261 src/libudev/libudev.pc
2264 src/libudev/libudev.pc.in
2267 src/libudev/libudev.pc \
2272 $(AM_V_at)$(MKDIR_P) $(dir $@)
2273 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2276 $(AM_V_at)$(MKDIR_P) $(dir $@)
2277 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2279 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2280 libudev-install-hook:
2281 libname=libudev.so && $(move-to-rootlibdir)
2283 libudev-uninstall-hook:
2284 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2286 INSTALL_EXEC_HOOKS += libudev-install-hook
2287 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2289 # ------------------------------------------------------------------------------
2290 noinst_LTLIBRARIES += \
2293 libudev_internal_la_SOURCES =\
2294 $(libudev_la_SOURCES) \
2295 src/libudev/libudev-device-private.c \
2296 src/libudev/libudev-queue-private.c
2298 libudev_internal_la_CFLAGS = \
2300 -fvisibility=default
2302 # ------------------------------------------------------------------------------
2304 $(sysconfdir)/udev/rules.d \
2305 $(sysconfdir)/udev/hwdb.d
2307 dist_network_DATA = \
2308 network/99-default.link
2310 dist_udevrules_DATA += \
2311 rules/99-systemd.rules \
2312 rules/42-usb-hid-pm.rules \
2313 rules/50-udev-default.rules \
2314 rules/60-drm.rules \
2315 rules/60-keyboard.rules \
2316 rules/60-persistent-storage-tape.rules \
2317 rules/60-persistent-serial.rules \
2318 rules/60-persistent-input.rules \
2319 rules/60-persistent-alsa.rules \
2320 rules/60-persistent-storage.rules \
2321 rules/64-btrfs.rules \
2322 rules/75-net-description.rules \
2323 rules/75-tty-description.rules \
2324 rules/78-sound-card.rules \
2325 rules/80-net-setup-link.rules \
2326 rules/95-udev-late.rules
2328 dist_udevhwdb_DATA = \
2329 hwdb/20-pci-vendor-model.hwdb \
2330 hwdb/20-pci-classes.hwdb \
2331 hwdb/20-usb-vendor-model.hwdb \
2332 hwdb/20-usb-classes.hwdb \
2333 hwdb/20-bluetooth-vendor-product.hwdb \
2334 hwdb/20-acpi-vendor.hwdb \
2336 hwdb/60-keyboard.hwdb
2338 udevconfdir = $(sysconfdir)/udev
2339 dist_udevconf_DATA = \
2342 sharepkgconfigdir = $(datadir)/pkgconfig
2343 sharepkgconfig_DATA = \
2347 rules/99-systemd.rules.in \
2351 rules/99-systemd.rules \
2355 units/systemd-udevd.service.in \
2356 units/systemd-udev-trigger.service.in \
2357 units/systemd-udev-settle.service.in
2360 units/systemd-udevd.service \
2361 units/systemd-udev-trigger.service \
2362 units/systemd-udev-settle.service
2364 SOCKETS_TARGET_WANTS += \
2365 systemd-udevd-control.socket \
2366 systemd-udevd-kernel.socket
2367 SYSINIT_TARGET_WANTS += \
2368 systemd-udevd.service \
2369 systemd-udev-trigger.service
2371 rootbin_PROGRAMS += \
2374 rootlibexec_PROGRAMS += \
2377 noinst_LTLIBRARIES += \
2380 src/udev/keyboard-keys.txt: Makefile
2381 $(AM_V_at)$(MKDIR_P) $(dir $@)
2382 $(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/' > $@
2384 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2385 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2387 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2388 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2390 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2391 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2393 libudev_core_la_SOURCES = \
2395 src/udev/udev-event.c \
2396 src/udev/udev-watch.c \
2397 src/udev/udev-node.c \
2398 src/udev/udev-rules.c \
2399 src/udev/udev-ctrl.c \
2400 src/udev/udev-builtin.c \
2401 src/udev/udev-builtin-btrfs.c \
2402 src/udev/udev-builtin-hwdb.c \
2403 src/udev/udev-builtin-input_id.c \
2404 src/udev/udev-builtin-keyboard.c \
2405 src/udev/udev-builtin-net_id.c \
2406 src/udev/udev-builtin-net_setup_link.c \
2407 src/udev/udev-builtin-path_id.c \
2408 src/udev/udev-builtin-usb_id.c \
2409 src/udev/net/link-config.h \
2410 src/udev/net/link-config.c \
2411 src/udev/net/ethtool-util.h \
2412 src/udev/net/ethtool-util.c
2414 nodist_libudev_core_la_SOURCES = \
2415 src/udev/keyboard-keys-from-name.h \
2416 src/udev/keyboard-keys-to-name.h \
2417 src/udev/net/link-config-gperf.c
2420 $(nodist_libudev_core_la_SOURCES)
2423 src/udev/keyboard-keys-from-name.gperf \
2424 src/udev/keyboard-keys.txt \
2425 src/udev/net/link-config-gperf.c
2428 src/udev/net/link-config-gperf.gperf
2430 libudev_core_la_CFLAGS = \
2435 libudev_core_la_LIBADD = \
2436 libudev-internal.la \
2437 libsystemd-label.la \
2438 libsystemd-daemon-internal.la \
2439 libsystemd-rtnl.la \
2440 libsystemd-id128-internal.la \
2441 libsystemd-shared.la \
2445 libudev_core_la_CPPFLAGS = \
2447 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2450 libudev_core_la_SOURCES += \
2451 src/udev/udev-builtin-firmware.c
2453 dist_udevrules_DATA += \
2454 rules/50-firmware.rules
2458 libudev_core_la_SOURCES += \
2459 src/udev/udev-builtin-kmod.c
2461 dist_udevrules_DATA += \
2462 rules/80-drivers.rules
2466 libudev_core_la_SOURCES += \
2467 src/udev/udev-builtin-blkid.c
2471 libudev_core_la_SOURCES += \
2472 src/udev/udev-builtin-uaccess.c \
2473 src/login/logind-acl.c \
2474 src/login/sd-login.c \
2475 src/systemd/sd-login.h \
2476 src/login/login-shared.c \
2477 src/login/login-shared.h
2479 libudev_core_la_LIBADD += \
2483 systemd_udevd_SOURCES = \
2486 systemd_udevd_LDADD = \
2490 src/udev/udevadm.c \
2491 src/udev/udevadm-info.c \
2492 src/udev/udevadm-control.c \
2493 src/udev/udevadm-monitor.c \
2494 src/udev/udevadm-hwdb.c \
2495 src/udev/udevadm-settle.c \
2496 src/udev/udevadm-trigger.c \
2497 src/udev/udevadm-test.c \
2498 src/udev/udevadm-test-builtin.c
2503 # Update hwdb on installation. Do not bother if installing
2504 # in DESTDIR, since this is likely for packaging purposes.
2506 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2508 INSTALL_DATA_HOOKS += \
2512 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2514 # ------------------------------------------------------------------------------
2523 test_libudev_SOURCES = \
2524 src/test/test-libudev.c
2526 test_libudev_LDADD = \
2527 libsystemd-label.la \
2528 libudev-internal.la \
2529 libsystemd-shared.la
2531 test_udev_SOURCES = \
2532 src/test/test-udev.c
2541 test_udev_LDADD += \
2548 # packed sysfs test tree
2550 $(AM_V_at)$(MKDIR_P) $(dir $@)
2551 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2555 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2560 test/rules-test.sh \
2561 test/rule-syntax-check.py
2563 # ------------------------------------------------------------------------------
2565 src/udev/ata_id/ata_id.c
2568 libudev-internal.la \
2569 libsystemd-shared.la
2571 udevlibexec_PROGRAMS += \
2574 # ------------------------------------------------------------------------------
2575 cdrom_id_SOURCES = \
2576 src/udev/cdrom_id/cdrom_id.c
2579 libudev-internal.la \
2580 libsystemd-shared.la
2582 udevlibexec_PROGRAMS += \
2585 dist_udevrules_DATA += \
2586 rules/60-cdrom_id.rules
2588 # ------------------------------------------------------------------------------
2590 src/udev/collect/collect.c
2593 libudev-internal.la \
2594 libsystemd-shared.la
2596 udevlibexec_PROGRAMS += \
2599 # ------------------------------------------------------------------------------
2601 src/udev/scsi_id/scsi_id.c \
2602 src/udev/scsi_id/scsi_serial.c \
2603 src/udev/scsi_id/scsi.h \
2604 src/udev/scsi_id/scsi_id.h
2607 libudev-internal.la \
2608 libsystemd-shared.la
2610 udevlibexec_PROGRAMS += \
2614 src/udev/scsi_id/README
2616 # ------------------------------------------------------------------------------
2618 src/udev/v4l_id/v4l_id.c
2623 udevlibexec_PROGRAMS += \
2626 dist_udevrules_DATA += \
2627 rules/60-persistent-v4l.rules
2629 # ------------------------------------------------------------------------------
2630 accelerometer_SOURCES = \
2631 src/udev/accelerometer/accelerometer.c
2633 accelerometer_LDADD = \
2634 libudev-internal.la -lm \
2635 libsystemd-shared.la
2637 udevlibexec_PROGRAMS += \
2640 dist_udevrules_DATA += \
2641 rules/61-accelerometer.rules
2643 # ------------------------------------------------------------------------------
2650 libgudev_includedir = \
2651 $(includedir)/gudev-1.0/gudev
2653 libgudev_include_HEADERS = \
2655 src/gudev/gudevenums.h \
2656 src/gudev/gudevenumtypes.h \
2657 src/gudev/gudevtypes.h \
2658 src/gudev/gudevclient.h \
2659 src/gudev/gudevdevice.h \
2660 src/gudev/gudevenumerator.h
2662 lib_LTLIBRARIES += libgudev-1.0.la
2664 pkgconfiglib_DATA += \
2665 src/gudev/gudev-1.0.pc
2668 src/gudev/gudev-1.0.pc
2670 libgudev_1_0_la_SOURCES = \
2671 src/gudev/gudevenums.h \
2672 src/gudev/gudevenumtypes.h \
2673 src/gudev/gudevenumtypes.h\
2674 src/gudev/gudevtypes.h \
2675 src/gudev/gudevclient.h \
2676 src/gudev/gudevclient.c \
2677 src/gudev/gudevdevice.h \
2678 src/gudev/gudevdevice.c \
2679 src/gudev/gudevenumerator.h \
2680 src/gudev/gudevenumerator.c \
2681 src/gudev/gudevprivate.h
2683 nodist_libgudev_1_0_la_SOURCES = \
2684 src/gudev/gudevmarshal.h \
2685 src/gudev/gudevmarshal.c \
2686 src/gudev/gudevenumtypes.h \
2687 src/gudev/gudevenumtypes.c
2690 $(nodist_libgudev_1_0_la_SOURCES)
2692 libgudev_1_0_la_CPPFLAGS = \
2694 -I$(top_builddir)/src\
2695 -I$(top_srcdir)/src\
2696 -I$(top_builddir)/src/gudev \
2697 -I$(top_srcdir)/src/gudev \
2698 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2699 -D_GUDEV_COMPILATION \
2700 -DG_LOG_DOMAIN=\"GUdev\"
2702 libgudev_1_0_la_CFLAGS = \
2704 -fvisibility=default \
2707 libgudev_1_0_la_LIBADD = \
2711 libgudev_1_0_la_LDFLAGS = \
2713 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2714 -export-dynamic -no-undefined \
2715 -export-symbols-regex '^g_udev_.*'
2717 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2718 $(AM_V_at)$(MKDIR_P) $(dir $@)
2719 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2721 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2722 $(AM_V_at)$(MKDIR_P) $(dir $@)
2723 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2724 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2726 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2727 $(AM_V_at)$(MKDIR_P) $(dir $@)
2728 $(AM_V_GEN)glib-mkenums --template $^ > $@
2730 if HAVE_INTROSPECTION
2731 -include $(INTROSPECTION_MAKEFILE)
2733 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2735 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2737 src_gudev_GUdev_1_0_gir_CFLAGS = \
2740 -D_GUDEV_COMPILATION \
2741 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2742 -I$(top_srcdir)/src \
2743 -I$(top_builddir)/src \
2744 -I$(top_srcdir)/src/gudev \
2745 -I$(top_builddir)/src/gudev
2747 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2749 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2750 --pkg-export=gudev-1.0 \
2753 src_gudev_GUdev_1_0_gir_FILES = \
2755 src/gudev/gudevtypes.h \
2756 src/gudev/gudevenums.h \
2757 src/gudev/gudevenumtypes.h \
2758 src/gudev/gudevclient.h \
2759 src/gudev/gudevdevice.h \
2760 src/gudev/gudevenumerator.h \
2761 src/gudev/gudevclient.c \
2762 src/gudev/gudevdevice.c \
2763 src/gudev/gudevenumerator.c
2765 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2766 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2768 girdir = $(datadir)/gir-1.0
2770 src/gudev/GUdev-1.0.gir
2772 typelibsdir = $(libdir)/girepository-1.0
2774 src/gudev/GUdev-1.0.typelib
2776 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2777 endif # HAVE_INTROSPECTION
2779 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2780 libgudev-install-hook:
2781 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2783 libgudev-uninstall-hook:
2784 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2786 INSTALL_EXEC_HOOKS += libgudev-install-hook
2787 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2791 src/gudev/gudev-1.0.pc.in \
2792 src/gudev/gudevmarshal.list \
2793 src/gudev/gudevenumtypes.h.template \
2794 src/gudev/gudevenumtypes.c.template \
2795 src/gudev/gjs-example.js \
2796 src/gudev/seed-example-enum.js \
2797 src/gudev/seed-example.js
2799 # ------------------------------------------------------------------------------
2800 mtd_probe_SOURCES = \
2801 src/udev/mtd_probe/mtd_probe.c \
2802 src/udev/mtd_probe/mtd_probe.h \
2803 src/udev/mtd_probe/probe_smartmedia.c
2805 dist_udevrules_DATA += \
2806 rules/75-probe_mtd.rules
2808 udevlibexec_PROGRAMS += \
2811 # ------------------------------------------------------------------------------
2812 libsystemd_id128_la_SOURCES = \
2813 src/libsystemd-id128/libsystemd-id128.sym \
2814 src/libsystemd-id128/sd-id128.c
2816 libsystemd_id128_la_CFLAGS = \
2820 libsystemd_id128_la_LDFLAGS = \
2822 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2823 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2825 libsystemd_id128_la_LIBADD = \
2826 libsystemd-daemon-internal.la \
2827 libsystemd-shared.la
2829 libsystemd_id128_internal_la_SOURCES = \
2830 $(libsystemd_id128_la_SOURCES)
2832 test_id128_SOURCES = \
2833 src/test/test-id128.c
2835 test_id128_LDADD = \
2836 libsystemd-id128-internal.la \
2837 libsystemd-daemon-internal.la \
2838 libsystemd-shared.la
2843 pkginclude_HEADERS += \
2844 src/systemd/sd-id128.h
2846 lib_LTLIBRARIES += \
2849 noinst_LTLIBRARIES += \
2850 libsystemd-id128-internal.la
2852 pkgconfiglib_DATA += \
2853 src/libsystemd-id128/libsystemd-id128.pc
2855 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2856 libsystemd-id128-install-hook:
2857 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2859 libsystemd-id128-uninstall-hook:
2860 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2862 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2863 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2866 src/libsystemd-id128/libsystemd-id128.pc.in
2868 # ------------------------------------------------------------------------------
2870 rootlibexec_PROGRAMS += \
2873 systemd_activate_SOURCES = \
2874 src/activate/activate.c
2876 systemd_activate_LDADD = \
2877 libsystemd-label.la \
2878 libsystemd-daemon-internal.la \
2879 libsystemd-shared.la
2881 # ------------------------------------------------------------------------------
2882 systemd_journald_SOURCES = \
2883 src/journal/journald.c \
2884 src/journal/journald-server.h
2886 systemd_journald_LDADD = \
2887 libsystemd-journal-core.la
2889 systemd_cat_SOURCES = \
2892 systemd_cat_LDADD = \
2893 libsystemd-journal-core.la
2895 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2896 journalctl_CFLAGS = \
2899 journalctl_SOURCES = \
2900 src/journal/journalctl.c
2902 journalctl_LDADD = \
2903 libsystemd-journal-internal.la \
2904 libsystemd-id128-internal.la \
2905 libsystemd-logs.la \
2906 libsystemd-shared.la
2909 journalctl_LDADD += \
2914 journalctl_SOURCES += \
2915 src/journal/journal-qrcode.c \
2916 src/journal/journal-qrcode.h
2918 journalctl_CFLAGS += \
2921 journalctl_LDADD += \
2925 test_journal_SOURCES = \
2926 src/journal/test-journal.c
2928 test_journal_LDADD = \
2929 libsystemd-journal-core.la
2931 test_journal_send_SOURCES = \
2932 src/journal/test-journal-send.c
2934 test_journal_send_LDADD = \
2935 libsystemd-journal-core.la
2937 test_journal_syslog_SOURCES = \
2938 src/journal/test-journal-syslog.c
2940 test_journal_syslog_LDADD = \
2941 libsystemd-journal-core.la
2943 test_journal_match_SOURCES = \
2944 src/journal/test-journal-match.c
2946 test_journal_match_LDADD = \
2947 libsystemd-journal-core.la
2949 test_journal_enum_SOURCES = \
2950 src/journal/test-journal-enum.c
2952 test_journal_enum_LDADD = \
2953 libsystemd-journal-core.la
2955 test_journal_stream_SOURCES = \
2956 src/journal/test-journal-stream.c
2958 test_journal_stream_LDADD = \
2959 libsystemd-journal-core.la
2961 test_journal_init_SOURCES = \
2962 src/journal/test-journal-init.c
2964 test_journal_init_LDADD = \
2965 libsystemd-journal-core.la
2967 test_journal_verify_SOURCES = \
2968 src/journal/test-journal-verify.c
2970 test_journal_verify_LDADD = \
2971 libsystemd-journal-core.la
2973 test_journal_interleaving_SOURCES = \
2974 src/journal/test-journal-interleaving.c
2976 test_journal_interleaving_LDADD = \
2977 libsystemd-journal-core.la
2979 test_mmap_cache_SOURCES = \
2980 src/journal/test-mmap-cache.c
2982 test_mmap_cache_LDADD = \
2983 libsystemd-journal-core.la
2985 test_catalog_SOURCES = \
2986 src/journal/test-catalog.c
2988 test_catalog_CFLAGS = \
2990 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
2992 test_catalog_LDADD = \
2993 libsystemd-journal-core.la
2995 libsystemd_journal_la_SOURCES = \
2996 src/journal/libsystemd-journal.sym \
2997 src/journal/sd-journal.c \
2998 src/systemd/sd-journal.h \
2999 src/systemd/_sd-common.h \
3000 src/journal/journal-file.c \
3001 src/journal/journal-file.h \
3002 src/journal/journal-vacuum.c \
3003 src/journal/journal-vacuum.h \
3004 src/journal/journal-verify.c \
3005 src/journal/journal-verify.h \
3006 src/journal/lookup3.c \
3007 src/journal/lookup3.h \
3008 src/journal/journal-send.c \
3009 src/journal/journal-def.h \
3010 src/journal/compress.h \
3011 src/journal/catalog.c \
3012 src/journal/catalog.h \
3013 src/journal/mmap-cache.c \
3014 src/journal/mmap-cache.h
3016 libsystemd_journal_la_CFLAGS = \
3020 libsystemd_journal_la_LDFLAGS = \
3022 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
3023 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
3025 libsystemd_journal_la_LIBADD = \
3026 libsystemd-label.la \
3027 libsystemd-daemon-internal.la \
3028 libsystemd-id128-internal.la \
3029 libsystemd-shared.la
3031 libsystemd_journal_internal_la_SOURCES = \
3032 $(libsystemd_journal_la_SOURCES)
3034 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3035 libsystemd_journal_internal_la_CFLAGS = \
3038 libsystemd_journal_internal_la_LIBADD =
3041 libsystemd_journal_la_SOURCES += \
3042 src/journal/compress.c
3044 libsystemd_journal_la_CFLAGS += \
3047 libsystemd_journal_la_LIBADD += \
3050 libsystemd_journal_internal_la_CFLAGS += \
3053 libsystemd_journal_internal_la_LIBADD += \
3057 libsystemd_journal_core_la_SOURCES = \
3058 src/journal/journald-kmsg.c \
3059 src/journal/journald-kmsg.h \
3060 src/journal/journald-syslog.c \
3061 src/journal/journald-syslog.h \
3062 src/journal/journald-stream.c \
3063 src/journal/journald-stream.h \
3064 src/journal/journald-server.c \
3065 src/journal/journald-server.h \
3066 src/journal/journald-console.c \
3067 src/journal/journald-console.h \
3068 src/journal/journald-native.c \
3069 src/journal/journald-native.h \
3070 src/journal/journald-rate-limit.c \
3071 src/journal/journald-rate-limit.h \
3072 src/journal/journal-internal.h
3074 nodist_libsystemd_journal_core_la_SOURCES = \
3075 src/journal/journald-gperf.c
3077 libsystemd_journal_core_la_LIBADD = \
3078 libsystemd-journal-internal.la \
3079 libudev-internal.la \
3080 libsystemd-audit.la \
3081 libsystemd-capability.la \
3082 libsystemd-label.la \
3083 libsystemd-daemon-internal.la \
3084 libsystemd-id128-internal.la \
3085 libsystemd-shared.la
3088 libsystemd_journal_core_la_LIBADD += \
3089 libsystemd-login-internal.la
3093 libsystemd_journal_core_la_LIBADD += \
3097 noinst_LTLIBRARIES += \
3098 libsystemd-journal-core.la
3101 libsystemd_journal_la_SOURCES += \
3102 src/journal/journal-authenticate.c \
3103 src/journal/journal-authenticate.h \
3104 src/journal/fsprg.c \
3107 libsystemd_journal_la_CFLAGS += \
3111 libsystemd_journal_la_LIBADD += \
3114 libsystemd_journal_internal_la_CFLAGS += \
3118 libsystemd_journal_internal_la_LIBADD += \
3122 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3123 # needed. Also, grant read access to new journal files to members of
3124 # "adm" and "wheel".
3125 libsystemd-journal-install-hook:
3126 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3127 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3128 -chown 0:0 $(DESTDIR)/var/log/journal
3129 -chmod 755 $(DESTDIR)/var/log/journal
3130 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3131 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3133 libsystemd-journal-uninstall-hook:
3134 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3136 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3137 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3139 # ------------------------------------------------------------------------------
3141 # Update catalog on installation. Do not bother if installing
3142 # in DESTDIR, since this is likely for packaging purposes.
3143 catalog-update-hook:
3144 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3146 INSTALL_DATA_HOOKS += \
3149 catalog-remove-hook:
3150 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3152 UNINSTALL_DATA_HOOKS += \
3161 test-journal-syslog \
3162 test-journal-match \
3163 test-journal-stream \
3165 test-journal-verify \
3166 test-journal-interleaving \
3170 pkginclude_HEADERS += \
3171 src/systemd/sd-journal.h \
3172 src/systemd/sd-messages.h \
3173 src/systemd/_sd-common.h
3175 lib_LTLIBRARIES += \
3176 libsystemd-journal.la
3178 noinst_LTLIBRARIES += \
3179 libsystemd-journal-internal.la
3181 rootlibexec_PROGRAMS += \
3184 rootbin_PROGRAMS += \
3190 dist_systemunit_DATA += \
3191 units/systemd-journald.socket
3193 nodist_systemunit_DATA += \
3194 units/systemd-journald.service \
3195 units/systemd-journal-flush.service
3197 dist_pkgsysconf_DATA += \
3198 src/journal/journald.conf
3200 pkgconfiglib_DATA += \
3201 src/journal/libsystemd-journal.pc
3203 dist_catalog_DATA = \
3204 catalog/systemd-fr.catalog \
3205 catalog/systemd.catalog
3207 SOCKETS_TARGET_WANTS += \
3208 systemd-journald.socket
3209 SYSINIT_TARGET_WANTS += \
3210 systemd-journald.service \
3211 systemd-journal-flush.service
3214 src/journal/libsystemd-journal.pc.in \
3215 units/systemd-journald.service.in \
3216 units/systemd-journal-flush.service.in \
3217 src/journal/journald-gperf.gperf
3220 src/journal/journald-gperf.c
3222 # ------------------------------------------------------------------------------
3224 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3226 rootlibexec_PROGRAMS += \
3227 systemd-journal-gatewayd
3229 systemd_journal_gatewayd_SOURCES = \
3230 src/journal/journal-gatewayd.c \
3231 src/journal/microhttpd-util.h \
3232 src/journal/microhttpd-util.c
3234 systemd_journal_gatewayd_LDADD = \
3235 libsystemd-logs.la \
3236 libsystemd-journal-internal.la \
3237 libsystemd-id128-internal.la \
3238 libsystemd-daemon-internal.la \
3239 libsystemd-bus-internal.la \
3240 libsystemd-shared.la \
3243 systemd_journal_gatewayd_CFLAGS = \
3245 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3246 $(MICROHTTPD_CFLAGS)
3248 dist_systemunit_DATA += \
3249 units/systemd-journal-gatewayd.socket
3251 nodist_systemunit_DATA += \
3252 units/systemd-journal-gatewayd.service
3254 dist_gatewayddocumentroot_DATA = \
3255 src/journal/browse.html
3260 units/systemd-journal-gatewayd.service.in
3262 # ------------------------------------------------------------------------------
3264 systemd_socket_proxyd_SOURCES = \
3265 src/socket-proxy/socket-proxyd.c
3267 systemd_socket_proxyd_LDADD = \
3268 libsystemd-logs.la \
3269 libsystemd-bus-internal.la \
3270 libsystemd-journal-internal.la \
3271 libsystemd-id128-internal.la \
3272 libsystemd-daemon-internal.la \
3273 libsystemd-shared.la
3275 # ------------------------------------------------------------------------------
3277 systemd_coredump_SOURCES = \
3278 src/journal/coredump.c
3280 systemd_coredump_LDADD = \
3281 libsystemd-journal-internal.la \
3282 libsystemd-label.la \
3283 libsystemd-shared.la
3286 systemd_coredump_LDADD += \
3287 libsystemd-login-internal.la
3290 rootlibexec_PROGRAMS += \
3293 systemd_coredumpctl_SOURCES = \
3294 src/journal/coredumpctl.c
3296 systemd_coredumpctl_LDADD = \
3297 libsystemd-journal-internal.la \
3298 libsystemd-id128-internal.la \
3299 libsystemd-shared.la
3304 dist_bashcompletion_DATA += \
3305 shell-completion/bash/systemd-coredumpctl
3307 dist_zshcompletion_DATA += \
3308 shell-completion/zsh/_systemd-coredumpctl
3311 sysctl.d/50-coredump.conf
3314 sysctl.d/50-coredump.conf
3318 sysctl.d/50-coredump.conf.in
3320 # ------------------------------------------------------------------------------
3322 systemd_binfmt_SOURCES = \
3325 systemd_binfmt_LDADD = \
3326 libsystemd-shared.la
3328 rootlibexec_PROGRAMS += \
3331 dist_systemunit_DATA += \
3332 units/proc-sys-fs-binfmt_misc.automount \
3333 units/proc-sys-fs-binfmt_misc.mount
3335 nodist_systemunit_DATA += \
3336 units/systemd-binfmt.service
3339 $(prefix)/lib/binfmt.d \
3340 $(sysconfdir)/binfmt.d
3342 SYSINIT_TARGET_WANTS += \
3343 systemd-binfmt.service \
3344 proc-sys-fs-binfmt_misc.automount
3349 units/systemd-binfmt.service.in
3351 # ------------------------------------------------------------------------------
3353 systemd_vconsole_setup_SOURCES = \
3354 src/vconsole/vconsole-setup.c
3356 systemd_vconsole_setup_LDADD = \
3357 libsystemd-shared.la
3359 rootlibexec_PROGRAMS += \
3360 systemd-vconsole-setup
3362 nodist_systemunit_DATA += \
3363 units/systemd-vconsole-setup.service
3365 SYSINIT_TARGET_WANTS += \
3366 systemd-vconsole-setup.service
3370 units/systemd-vconsole-setup.service.in
3372 # ------------------------------------------------------------------------------
3374 systemd_readahead_SOURCES = \
3375 src/readahead/readahead.c \
3376 src/readahead/readahead-collect.c \
3377 src/readahead/readahead-replay.c \
3378 src/readahead/readahead-analyze.c \
3379 src/readahead/readahead-common.c \
3380 src/readahead/readahead-common.h
3382 systemd_readahead_LDADD = \
3383 libsystemd-daemon-internal.la \
3384 libudev-internal.la \
3385 libsystemd-shared.la
3388 src/readahead/sd-readahead.c \
3389 src/systemd/sd-readahead.h
3391 rootlibexec_PROGRAMS += \
3394 dist_systemunit_DATA += \
3395 units/systemd-readahead-drop.service \
3396 units/systemd-readahead-done.timer
3398 nodist_systemunit_DATA += \
3399 units/systemd-readahead-collect.service \
3400 units/systemd-readahead-replay.service \
3401 units/systemd-readahead-done.service
3406 units/systemd-readahead-collect.service.in \
3407 units/systemd-readahead-replay.service.in \
3408 units/systemd-readahead-done.service.in
3410 # ------------------------------------------------------------------------------
3412 systemd_bootchart_SOURCES = \
3413 src/bootchart/bootchart.c \
3414 src/bootchart/bootchart.h \
3415 src/bootchart/store.c \
3416 src/bootchart/store.h \
3417 src/bootchart/svg.c \
3420 systemd_bootchart_LDADD = \
3421 libsystemd-journal-internal.la \
3422 libsystemd-shared.la
3424 rootlibexec_PROGRAMS += \
3427 dist_pkgsysconf_DATA += \
3428 src/bootchart/bootchart.conf
3431 # ------------------------------------------------------------------------------
3432 if ENABLE_QUOTACHECK
3433 rootlibexec_PROGRAMS += \
3436 nodist_systemunit_DATA += \
3437 units/systemd-quotacheck.service
3439 systemd_quotacheck_SOURCES = \
3440 src/quotacheck/quotacheck.c
3442 systemd_quotacheck_LDADD = \
3443 libsystemd-shared.la
3447 units/systemd-quotacheck.service.in
3449 nodist_systemunit_DATA += \
3450 units/quotaon.service
3452 # ------------------------------------------------------------------------------
3453 if ENABLE_RANDOMSEED
3454 rootlibexec_PROGRAMS += \
3457 nodist_systemunit_DATA += \
3458 units/systemd-random-seed.service
3460 systemd_random_seed_SOURCES = \
3461 src/random-seed/random-seed.c
3463 systemd_random_seed_LDADD = \
3464 libsystemd-label.la \
3465 libsystemd-shared.la
3467 SYSINIT_TARGET_WANTS += \
3468 systemd-random-seed.service
3473 units/systemd-random-seed.service.in
3475 # ------------------------------------------------------------------------------
3477 rootlibexec_PROGRAMS += \
3480 nodist_systemunit_DATA += \
3481 units/systemd-backlight@.service
3483 systemd_backlight_SOURCES = \
3484 src/backlight/backlight.c
3486 systemd_backlight_LDADD = \
3487 libsystemd-label.la \
3488 libudev-internal.la \
3489 libsystemd-shared.la
3493 units/systemd-backlight@.service.in
3495 # ------------------------------------------------------------------------------
3497 rootlibexec_PROGRAMS += \
3500 nodist_systemunit_DATA += \
3501 units/systemd-rfkill@.service
3503 systemd_rfkill_SOURCES = \
3506 systemd_rfkill_LDADD = \
3507 libsystemd-label.la \
3508 libudev-internal.la \
3509 libsystemd-shared.la
3513 units/systemd-rfkill@.service.in
3515 # ------------------------------------------------------------------------------
3516 if HAVE_LIBCRYPTSETUP
3517 rootlibexec_PROGRAMS += \
3520 systemgenerator_PROGRAMS += \
3521 systemd-cryptsetup-generator
3523 dist_systemunit_DATA += \
3524 units/cryptsetup.target
3526 systemd_cryptsetup_SOURCES = \
3527 src/cryptsetup/cryptsetup.c
3529 systemd_cryptsetup_CFLAGS = \
3531 $(LIBCRYPTSETUP_CFLAGS)
3533 systemd_cryptsetup_LDADD = \
3534 libsystemd-label.la \
3535 libudev-internal.la \
3536 libsystemd-shared.la \
3537 $(LIBCRYPTSETUP_LIBS)
3539 systemd_cryptsetup_generator_SOURCES = \
3540 src/cryptsetup/cryptsetup-generator.c
3542 systemd_cryptsetup_generator_LDADD = \
3543 libsystemd-label.la \
3544 libsystemd-shared.la
3546 SYSINIT_TARGET_WANTS += \
3551 # ------------------------------------------------------------------------------
3553 systemd_hostnamed_SOURCES = \
3554 src/hostname/hostnamed.c
3556 systemd_hostnamed_LDADD = \
3557 libsystemd-label.la \
3558 libsystemd-bus-internal.la \
3559 libsystemd-id128-internal.la \
3560 libsystemd-daemon-internal.la \
3561 libsystemd-shared.la
3563 rootlibexec_PROGRAMS += \
3566 nodist_systemunit_DATA += \
3567 units/systemd-hostnamed.service
3569 dist_dbuspolicy_DATA += \
3570 src/hostname/org.freedesktop.hostname1.conf
3572 dist_dbussystemservice_DATA += \
3573 src/hostname/org.freedesktop.hostname1.service
3575 polkitpolicy_files += \
3576 src/hostname/org.freedesktop.hostname1.policy
3578 SYSTEM_UNIT_ALIASES += \
3579 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3581 hostnamectl_SOURCES = \
3582 src/hostname/hostnamectl.c
3584 hostnamectl_LDADD = \
3585 libsystemd-bus-internal.la \
3586 libsystemd-id128-internal.la \
3587 libsystemd-daemon-internal.la \
3588 libsystemd-shared.la
3593 dist_bashcompletion_DATA += \
3594 shell-completion/bash/hostnamectl
3596 dist_zshcompletion_DATA += \
3597 shell-completion/zsh/_hostnamectl
3601 polkitpolicy_in_files += \
3602 src/hostname/org.freedesktop.hostname1.policy.in
3605 units/systemd-hostnamed.service.in
3607 # ------------------------------------------------------------------------------
3609 systemd_localed_SOURCES = \
3610 src/locale/localed.c
3612 systemd_localed_LDADD = \
3613 libsystemd-label.la \
3614 libsystemd-bus-internal.la \
3615 libsystemd-id128-internal.la \
3616 libsystemd-daemon-internal.la \
3617 libsystemd-shared.la
3619 nodist_systemunit_DATA += \
3620 units/systemd-localed.service
3622 rootlibexec_PROGRAMS += \
3625 dist_dbuspolicy_DATA += \
3626 src/locale/org.freedesktop.locale1.conf
3628 dist_dbussystemservice_DATA += \
3629 src/locale/org.freedesktop.locale1.service
3631 polkitpolicy_files += \
3632 src/locale/org.freedesktop.locale1.policy
3634 SYSTEM_UNIT_ALIASES += \
3635 systemd-localed.service dbus-org.freedesktop.locale1.service
3637 dist_pkgdata_DATA += \
3638 src/locale/kbd-model-map
3640 dist_noinst_SCRIPT = \
3641 src/locale/generate-kbd-model-map
3643 update-kbd-model-map: src/locale/generate-kbd-model-map
3644 $PYTHON $< > src/locale/kbd-model-map
3646 localectl_SOURCES = \
3647 src/locale/localectl.c
3650 libsystemd-bus-internal.la \
3651 libsystemd-id128-internal.la \
3652 libsystemd-daemon-internal.la \
3653 libsystemd-shared.la
3658 dist_bashcompletion_DATA += \
3659 shell-completion/bash/localectl
3661 dist_zshcompletion_DATA += \
3662 shell-completion/zsh/_localectl
3666 polkitpolicy_in_files += \
3667 src/locale/org.freedesktop.locale1.policy.in
3670 units/systemd-localed.service.in
3672 # ------------------------------------------------------------------------------
3674 systemd_timedated_SOURCES = \
3675 src/timedate/timedated.c
3677 systemd_timedated_LDADD = \
3678 libsystemd-label.la \
3679 libsystemd-bus-internal.la \
3680 libsystemd-id128-internal.la \
3681 libsystemd-daemon-internal.la \
3682 libsystemd-shared.la
3684 rootlibexec_PROGRAMS += \
3687 dist_dbussystemservice_DATA += \
3688 src/timedate/org.freedesktop.timedate1.service
3690 dist_dbuspolicy_DATA += \
3691 src/timedate/org.freedesktop.timedate1.conf
3693 nodist_systemunit_DATA += \
3694 units/systemd-timedated.service
3696 polkitpolicy_files += \
3697 src/timedate/org.freedesktop.timedate1.policy
3700 $(prefix)/lib/systemd/ntp-units.d \
3701 $(sysconfdir)/systemd/ntp-units.d
3703 SYSTEM_UNIT_ALIASES += \
3704 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3706 timedatectl_SOURCES = \
3707 src/timedate/timedatectl.c
3709 timedatectl_LDADD = \
3710 libsystemd-bus-internal.la \
3711 libsystemd-id128-internal.la \
3712 libsystemd-daemon-internal.la \
3713 libsystemd-shared.la
3718 dist_bashcompletion_DATA += \
3719 shell-completion/bash/timedatectl
3721 dist_zshcompletion_DATA += \
3722 shell-completion/zsh/_timedatectl
3725 polkitpolicy_in_files += \
3726 src/timedate/org.freedesktop.timedate1.policy.in
3729 units/systemd-timedated.service.in
3731 # ------------------------------------------------------------------------------
3733 libnss_myhostname_la_SOURCES = \
3734 src/nss-myhostname/nss-myhostname.c \
3735 src/nss-myhostname/ifconf.h \
3736 src/nss-myhostname/netlink.c
3738 libnss_myhostname_la_LDFLAGS = \
3746 lib_LTLIBRARIES += \
3747 libnss_myhostname.la
3750 # ------------------------------------------------------------------------------
3752 systemd_machined_SOURCES = \
3753 src/machine/machined.c \
3754 src/machine/machined.h
3756 systemd_machined_LDADD = \
3757 libsystemd-machine-core.la
3759 rootlibexec_PROGRAMS += \
3762 libsystemd_machine_core_la_SOURCES = \
3763 src/machine/machined-dbus.c \
3764 src/machine/machine.c \
3765 src/machine/machine.h \
3766 src/machine/machine-dbus.c
3768 libsystemd_machine_core_la_LIBADD = \
3769 libsystemd-label.la \
3770 libsystemd-audit.la \
3771 libsystemd-daemon-internal.la \
3772 libsystemd-bus-internal.la \
3773 libsystemd-id128-internal.la \
3774 libudev-internal.la \
3775 libsystemd-shared.la
3777 noinst_LTLIBRARIES += \
3778 libsystemd-machine-core.la
3780 machinectl_SOURCES = \
3781 src/machine/machinectl.c
3783 machinectl_LDADD = \
3784 libsystemd-bus-internal.la \
3785 libsystemd-id128-internal.la \
3786 libsystemd-daemon-internal.la \
3787 libsystemd-shared.la
3789 rootbin_PROGRAMS += \
3792 test_machine_tables_SOURCES = \
3793 src/machine/test-machine-tables.c
3795 test_machine_tables_LDADD = \
3796 libsystemd-machine-core.la
3801 nodist_systemunit_DATA += \
3802 units/systemd-machined.service
3804 dist_systemunit_DATA += \
3807 dist_dbussystemservice_DATA += \
3808 src/machine/org.freedesktop.machine1.service
3810 dist_dbuspolicy_DATA += \
3811 src/machine/org.freedesktop.machine1.conf
3813 dist_zshcompletion_DATA += \
3814 shell-completion/zsh/_machinectl
3816 SYSTEM_UNIT_ALIASES += \
3817 systemd-machined.service dbus-org.freedesktop.machine1.service
3820 units/systemd-machined.service.in
3824 # ------------------------------------------------------------------------------
3826 rootlibexec_PROGRAMS += \
3829 systemd_networkd_SOURCES = \
3830 src/network/networkd.h \
3831 src/network/networkd.c \
3832 src/network/networkd-link.c \
3833 src/network/networkd-network.c \
3834 src/network/networkd-address.c \
3835 src/network/networkd-route.c \
3836 src/network/networkd-manager.c
3838 nodist_systemd_networkd_SOURCES = \
3839 src/network/networkd-gperf.c
3841 systemd_networkd_LDADD = \
3842 libudev-internal.la \
3843 libsystemd-bus-internal.la \
3844 libsystemd-id128-internal.la \
3845 libsystemd-rtnl.la \
3846 libsystemd-shared.la
3848 nodist_systemunit_DATA += \
3849 units/systemd-networkd.service
3851 MULTI_USER_TARGET_WANTS += \
3852 systemd-networkd.service
3854 test_network_SOURCES = \
3855 src/network/test-network.c \
3856 src/network/networkd.h \
3857 src/network/networkd-link.c \
3858 src/network/networkd-network.c \
3859 src/network/networkd-address.c \
3860 src/network/networkd-route.c \
3861 src/network/networkd-manager.c \
3862 src/network/networkd-gperf.c
3864 test_network_LDADD = \
3865 libudev-internal.la \
3866 libsystemd-bus-internal.la \
3867 libsystemd-id128-internal.la \
3868 libsystemd-rtnl.la \
3869 libsystemd-shared.la
3871 tests += test-network
3874 src/network/networkd-gperf.gperf \
3875 units/systemd-networkd.service.in
3878 src/network/networkd-gperf.c
3881 # ------------------------------------------------------------------------------
3883 systemd_logind_SOURCES = \
3884 src/login/logind.c \
3887 nodist_systemd_logind_SOURCES = \
3888 src/login/logind-gperf.c
3890 systemd_logind_LDADD = \
3891 libsystemd-logind-core.la
3893 libsystemd_logind_core_la_SOURCES = \
3894 src/login/logind-core.c \
3895 src/login/logind-device.c \
3896 src/login/logind-device.h \
3897 src/login/logind-button.c \
3898 src/login/logind-button.h \
3899 src/login/logind-action.c \
3900 src/login/logind-action.h \
3901 src/login/logind-seat.c \
3902 src/login/logind-seat.h \
3903 src/login/logind-session.c \
3904 src/login/logind-session.h \
3905 src/login/logind-session-device.c \
3906 src/login/logind-session-device.h \
3907 src/login/logind-user.c \
3908 src/login/logind-user.h \
3909 src/login/logind-inhibit.c \
3910 src/login/logind-inhibit.h \
3911 src/login/logind-dbus.c \
3912 src/login/logind-session-dbus.c \
3913 src/login/logind-seat-dbus.c \
3914 src/login/logind-user-dbus.c \
3915 src/login/logind-acl.h \
3916 src/login/login-shared.c \
3917 src/login/login-shared.h
3919 libsystemd_logind_core_la_LIBADD = \
3920 libsystemd-label.la \
3921 libsystemd-capability.la \
3922 libsystemd-audit.la \
3923 libsystemd-daemon-internal.la \
3924 libsystemd-id128-internal.la \
3925 libsystemd-bus-internal.la \
3926 libudev-internal.la \
3927 libsystemd-shared.la
3930 libsystemd_logind_core_la_SOURCES += \
3931 src/login/logind-acl.c
3933 libsystemd_logind_core_la_LIBADD += \
3937 noinst_LTLIBRARIES += \
3938 libsystemd-logind-core.la
3940 systemd_user_sessions_SOURCES = \
3941 src/login/user-sessions.c
3943 systemd_user_sessions_LDADD = \
3944 libsystemd-shared.la
3946 rootlibexec_PROGRAMS += \
3948 systemd-user-sessions
3950 loginctl_SOURCES = \
3951 src/login/loginctl.c \
3952 src/login/sysfs-show.c
3955 libsystemd-bus-internal.la \
3956 libudev-internal.la \
3957 libsystemd-shared.la \
3958 libsystemd-id128-internal.la \
3959 libsystemd-daemon-internal.la
3961 rootbin_PROGRAMS += \
3964 dist_bashcompletion_DATA += \
3965 shell-completion/bash/loginctl
3967 dist_zshcompletion_DATA += \
3968 shell-completion/zsh/_loginctl \
3969 shell-completion/zsh/_systemd-inhibit
3971 systemd_inhibit_SOURCES = \
3974 systemd_inhibit_LDADD = \
3975 libsystemd-bus-internal.la \
3976 libsystemd-id128-internal.la \
3977 libsystemd-daemon-internal.la \
3978 libsystemd-shared.la
3980 rootbin_PROGRAMS += \
3983 test_login_SOURCES = \
3984 src/login/test-login.c
3986 test_login_LDADD = \
3987 libsystemd-login-internal.la \
3988 libsystemd-shared.la
3990 test_login_shared_SOURCES = \
3991 src/login/test-login-shared.c
3993 test_login_shared_LDADD = \
3994 libsystemd-login-internal.la \
3995 libsystemd-shared.la
3997 test_inhibit_SOURCES = \
3998 src/login/test-inhibit.c
4000 test_inhibit_LDADD = \
4001 libsystemd-bus-internal.la \
4002 libsystemd-daemon-internal.la \
4003 libsystemd-id128-internal.la \
4004 libsystemd-shared.la
4006 test_login_tables_SOURCES = \
4007 src/login/test-login-tables.c
4009 test_login_tables_LDADD = \
4010 libsystemd-logind-core.la
4020 libsystemd_login_la_SOURCES = \
4021 src/login/libsystemd-login.sym \
4022 src/login/sd-login.c \
4023 src/systemd/sd-login.h \
4024 src/login/login-shared.c \
4025 src/login/login-shared.h
4027 libsystemd_login_la_CFLAGS = \
4031 libsystemd_login_la_LDFLAGS = \
4033 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4034 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
4036 libsystemd_login_la_LIBADD = \
4037 libsystemd-daemon-internal.la \
4038 libsystemd-shared.la
4040 libsystemd_login_internal_la_SOURCES = \
4041 $(libsystemd_login_la_SOURCES)
4044 pam_systemd_la_SOURCES = \
4045 src/login/pam-module.c
4047 pam_systemd_la_CFLAGS = \
4052 pam_systemd_la_LDFLAGS = \
4058 -export-symbols-regex '^pam_sm_.*'
4060 pam_systemd_la_LIBADD = \
4061 libsystemd-capability.la \
4062 libsystemd-audit.la \
4063 libsystemd-bus-internal.la \
4064 libsystemd-id128-internal.la \
4065 libsystemd-daemon-internal.la \
4066 libsystemd-shared.la \
4069 pamlib_LTLIBRARIES = \
4072 dist_pamconf_DATA = \
4073 src/login/systemd-user
4076 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4077 libsystemd-login-install-hook:
4078 libname=libsystemd-login.so && $(move-to-rootlibdir)
4080 libsystemd-login-uninstall-hook:
4081 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4083 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
4084 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
4086 nodist_systemunit_DATA += \
4087 units/systemd-logind.service \
4088 units/systemd-user-sessions.service
4090 dist_systemunit_DATA += \
4093 dist_dbussystemservice_DATA += \
4094 src/login/org.freedesktop.login1.service
4096 dist_dbuspolicy_DATA += \
4097 src/login/org.freedesktop.login1.conf
4099 dist_pkgsysconf_DATA += \
4100 src/login/logind.conf
4102 pkginclude_HEADERS += \
4103 src/systemd/sd-login.h
4105 lib_LTLIBRARIES += \
4108 noinst_LTLIBRARIES += \
4109 libsystemd-login-internal.la
4111 pkgconfiglib_DATA += \
4112 src/login/libsystemd-login.pc
4114 polkitpolicy_files += \
4115 src/login/org.freedesktop.login1.policy
4120 MULTI_USER_TARGET_WANTS += \
4121 systemd-logind.service \
4122 systemd-user-sessions.service
4124 SYSTEM_UNIT_ALIASES += \
4125 systemd-logind.service dbus-org.freedesktop.login1.service
4127 systemd_multi_seat_x_SOURCES = \
4128 src/login/multi-seat-x.c
4130 systemd_multi_seat_x_LDADD = \
4131 libsystemd-label.la \
4132 libsystemd-shared.la
4134 rootlibexec_PROGRAMS += \
4135 systemd-multi-seat-x
4137 dist_udevrules_DATA += \
4138 src/login/70-uaccess.rules \
4139 src/login/70-power-switch.rules
4141 nodist_udevrules_DATA += \
4142 src/login/71-seat.rules \
4143 src/login/73-seat-late.rules
4146 src/login/logind-gperf.c \
4147 src/login/71-seat.rules \
4148 src/login/73-seat-late.rules
4151 polkitpolicy_in_files += \
4152 src/login/org.freedesktop.login1.policy.in
4155 src/login/logind-gperf.gperf \
4156 src/login/libsystemd-login.pc.in \
4157 src/login/71-seat.rules.in \
4158 src/login/73-seat-late.rules.in \
4159 units/systemd-logind.service.in \
4160 units/systemd-user-sessions.service.in
4162 # ------------------------------------------------------------------------------
4163 if HAVE_PYTHON_DEVEL
4164 pkgpyexec_LTLIBRARIES = \
4171 _journal_la_SOURCES = \
4172 src/python-systemd/_journal.c
4174 _journal_la_CFLAGS = \
4176 -fvisibility=default \
4177 $(PYTHON_DEVEL_CFLAGS)
4179 _journal_la_LDFLAGS = \
4185 _journal_la_LIBADD = \
4186 $(PYTHON_DEVEL_LIBS) \
4187 libsystemd-journal.la
4189 id128_la_SOURCES = \
4190 src/python-systemd/id128.c \
4191 src/python-systemd/id128-constants.h \
4192 src/python-systemd/pyutil.c \
4193 src/python-systemd/pyutil.h
4197 -fvisibility=default \
4198 $(PYTHON_DEVEL_CFLAGS) \
4199 -I$(top_builddir)/src/python-systemd
4201 id128_la_LDFLAGS = \
4208 $(PYTHON_DEVEL_LIBS) \
4211 _daemon_la_SOURCES = \
4212 src/python-systemd/_daemon.c \
4213 src/python-systemd/pyutil.c \
4214 src/python-systemd/pyutil.h
4216 _daemon_la_CFLAGS = \
4218 -fvisibility=default \
4219 $(PYTHON_DEVEL_CFLAGS) \
4220 -I$(top_builddir)/src/python-systemd
4222 _daemon_la_LDFLAGS = \
4228 _daemon_la_LIBADD = \
4229 $(PYTHON_DEVEL_LIBS) \
4230 libsystemd-daemon.la
4232 _reader_la_SOURCES = \
4233 src/python-systemd/_reader.c \
4234 src/python-systemd/pyutil.c \
4235 src/python-systemd/pyutil.h
4237 _reader_la_CFLAGS = \
4239 -fvisibility=default \
4240 $(PYTHON_DEVEL_CFLAGS)
4242 _reader_la_LDFLAGS = \
4248 _reader_la_LIBADD = \
4249 $(PYTHON_DEVEL_LIBS) \
4250 libsystemd-journal.la \
4251 libsystemd-id128.la \
4252 libsystemd-daemon-internal.la \
4253 libsystemd-shared.la
4255 login_la_SOURCES = \
4256 src/python-systemd/login.c \
4257 src/python-systemd/pyutil.c \
4258 src/python-systemd/pyutil.h
4262 -fvisibility=default \
4263 $(PYTHON_DEVEL_CFLAGS)
4265 login_la_LDFLAGS = \
4272 $(PYTHON_DEVEL_LIBS) \
4273 libsystemd-journal.la \
4274 libsystemd-login.la \
4275 libsystemd-daemon-internal.la \
4276 libsystemd-shared.la
4278 dist_pkgpyexec_PYTHON = \
4279 src/python-systemd/journal.py \
4280 src/python-systemd/daemon.py \
4281 src/python-systemd/__init__.py
4283 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4284 $(AM_V_at)$(MKDIR_P) $(dir $@)
4285 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4288 src/python-systemd/id128-constants.h
4290 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4292 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4293 $(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/
4294 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4297 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4298 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4301 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4302 $(MAKE) DESTDIR="$$dir" install && \
4303 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4308 CLEAN_LOCAL_HOOKS += clean-sphinx
4311 -rm -rf docs/html/python-systemd/
4313 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4315 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4316 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4318 # ------------------------------------------------------------------------------
4320 '|rootlibexecdir=$(rootlibexecdir)|' \
4321 '|rootbindir=$(rootbindir)|' \
4322 '|bindir=$(bindir)|' \
4323 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4324 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4325 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4326 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4327 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4328 '|pkgdatadir=$(pkgdatadir)|' \
4329 '|systemunitdir=$(systemunitdir)|' \
4330 '|userunitdir=$(userunitdir)|' \
4331 '|systempresetdir=$(systempresetdir)|' \
4332 '|userpresetdir=$(userpresetdir)|' \
4333 '|udevhwdbdir=$(udevhwdbdir)|' \
4334 '|udevrulesdir=$(udevrulesdir)|' \
4335 '|catalogdir=$(catalogdir)|' \
4336 '|tmpfilesdir=$(tmpfilesdir)|' \
4337 '|sysctldir=$(sysctldir)|' \
4338 '|systemgeneratordir=$(systemgeneratordir)|' \
4339 '|usergeneratordir=$(usergeneratordir)|' \
4340 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4341 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4342 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4343 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4344 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4345 '|prefix=$(prefix)|' \
4346 '|exec_prefix=$(exec_prefix)|' \
4347 '|libdir=$(libdir)|' \
4348 '|includedir=$(includedir)|' \
4349 '|VERSION=$(VERSION)|' \
4350 '|rootprefix=$(rootprefix)|' \
4351 '|udevlibexecdir=$(udevlibexecdir)|' \
4352 '|SUSHELL=$(SUSHELL)|' \
4353 '|DEBUGTTY=$(DEBUGTTY)|' \
4356 '|MKDIR_P=$(MKDIR_P)|' \
4357 '|QUOTAON=$(QUOTAON)|' \
4358 '|QUOTACHECK=$(QUOTACHECK)|' \
4359 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4360 '|VARLOGDIR=$(varlogdir)|' \
4361 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4362 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4363 '|PYTHON=$(PYTHON)|' \
4364 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4367 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4368 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4371 units/%: units/%.in Makefile
4374 man/%: man/%.in Makefile
4377 sysctl.d/%: sysctl.d/%.in Makefile
4380 %.pc: %.pc.in Makefile
4383 src/core/macros.%: src/core/macros.%.in Makefile
4386 src/%.policy.in: src/%.policy.in.in Makefile
4389 %.rules: %.rules.in Makefile
4392 %.sh: %.sh.in Makefile
4394 $(AM_V_GEN)chmod +x $@
4396 src/%.c: src/%.gperf
4397 $(AM_V_at)$(MKDIR_P) $(dir $@)
4398 $(AM_V_GPERF)$(GPERF) < $< > $@
4401 $(AM_V_at)$(MKDIR_P) $(dir $@)
4402 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4404 units/%: units/%.m4 Makefile
4405 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4406 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4408 units/user/%: units/%.m4 Makefile
4409 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4410 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4413 nodist_polkitpolicy_DATA = \
4414 $(polkitpolicy_files) \
4415 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4419 $(polkitpolicy_in_files) \
4420 $(polkitpolicy_in_in_files)
4423 $(nodist_systemunit_DATA) \
4424 $(nodist_userunit_DATA) \
4425 $(pkgconfigdata_DATA) \
4426 $(pkgconfiglib_DATA) \
4427 $(nodist_polkitpolicy_DATA)
4429 # ------------------------------------------------------------------------------
4431 man/custom-entities.ent: Makefile
4432 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4433 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4434 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4438 man/custom-entities.ent
4442 --stringparam man.output.quietly 1 \
4443 --stringparam funcsynopsis.style ansi \
4444 --stringparam man.authors.section.enabled 0 \
4445 --stringparam man.copyright.section.enabled 0 \
4446 --stringparam systemd.version $(VERSION) \
4447 --path '$(builddir)/man:$(srcdir)/man'
4449 XSLTPROC_PROCESS_MAN = \
4450 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4452 XSLTPROC_PROCESS_HTML = \
4453 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4455 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4456 $(XSLTPROC_PROCESS_MAN)
4458 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4459 $(XSLTPROC_PROCESS_MAN)
4461 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4462 $(XSLTPROC_PROCESS_MAN)
4464 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4465 $(XSLTPROC_PROCESS_MAN)
4467 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4468 $(XSLTPROC_PROCESS_MAN)
4470 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4471 $(XSLTPROC_PROCESS_HTML)
4474 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4480 man/custom-html.xsl \
4483 # ------------------------------------------------------------------------------
4486 docs/sysvinit/README
4491 docs/sysvinit/README: docs/sysvinit/README.in
4494 docs/var-log/README: docs/var-log/README.in
4498 docs/sysvinit/README \
4503 docs/sysvinit/README.in \
4504 docs/var-log/README.in
4506 SOCKETS_TARGET_WANTS += \
4507 systemd-initctl.socket \
4508 systemd-shutdownd.socket
4511 RUNLEVEL1_TARGET_WANTS += \
4512 systemd-update-utmp-runlevel.service
4513 RUNLEVEL2_TARGET_WANTS += \
4514 systemd-update-utmp-runlevel.service
4515 RUNLEVEL3_TARGET_WANTS += \
4516 systemd-update-utmp-runlevel.service
4517 RUNLEVEL4_TARGET_WANTS += \
4518 systemd-update-utmp-runlevel.service
4519 RUNLEVEL5_TARGET_WANTS += \
4520 systemd-update-utmp-runlevel.service
4522 SYSINIT_TARGET_WANTS += \
4523 systemd-update-utmp.service
4524 LOCAL_FS_TARGET_WANTS += \
4525 systemd-remount-fs.service \
4527 MULTI_USER_TARGET_WANTS += \
4529 systemd-ask-password-wall.path
4530 SYSINIT_TARGET_WANTS += \
4531 dev-hugepages.mount \
4533 sys-kernel-config.mount \
4534 sys-kernel-debug.mount \
4535 sys-fs-fuse-connections.mount \
4536 systemd-sysctl.service \
4537 systemd-ask-password-console.path
4540 SYSTEM_UNIT_ALIASES += \
4541 poweroff.target runlevel0.target \
4542 rescue.target runlevel1.target \
4543 multi-user.target runlevel2.target \
4544 multi-user.target runlevel3.target \
4545 multi-user.target runlevel4.target \
4546 graphical.target runlevel5.target \
4547 reboot.target runlevel6.target
4550 SYSTEM_UNIT_ALIASES += \
4551 graphical.target default.target \
4552 reboot.target ctrl-alt-del.target \
4553 getty@.service autovt@.service
4555 USER_UNIT_ALIASES += \
4556 $(systemunitdir)/shutdown.target shutdown.target \
4557 $(systemunitdir)/sockets.target sockets.target \
4558 $(systemunitdir)/timers.target timers.target \
4559 $(systemunitdir)/paths.target paths.target \
4560 $(systemunitdir)/bluetooth.target bluetooth.target \
4561 $(systemunitdir)/printer.target printer.target \
4562 $(systemunitdir)/sound.target sound.target \
4563 $(systemunitdir)/smartcard.target smartcard.target
4565 GENERAL_ALIASES += \
4566 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4567 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4568 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4569 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4573 $(systemunitdir)/runlevel1.target.wants \
4574 $(systemunitdir)/runlevel2.target.wants \
4575 $(systemunitdir)/runlevel3.target.wants \
4576 $(systemunitdir)/runlevel4.target.wants \
4577 $(systemunitdir)/runlevel5.target.wants
4581 $(prefix)/lib/modules-load.d \
4582 $(sysconfdir)/modules-load.d \
4583 $(prefix)/lib/systemd/network \
4584 $(sysconfdir)/systemd/network \
4585 $(prefix)/lib/sysctl.d \
4586 $(sysconfdir)/sysctl.d \
4587 $(prefix)/lib/kernel/install.d \
4588 $(sysconfdir)/kernel/install.d \
4589 $(systemshutdowndir) \
4591 $(systemgeneratordir) \
4592 $(usergeneratordir) \
4595 $(pkgsysconfdir)/system \
4596 $(pkgsysconfdir)/system/multi-user.target.wants \
4597 $(pkgsysconfdir)/system/getty.target.wants \
4598 $(pkgsysconfdir)/user \
4599 $(dbussessionservicedir) \
4600 $(sysconfdir)/xdg/systemd
4602 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4604 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4606 install-data-hook: $(INSTALL_DATA_HOOKS)
4608 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4610 clean-local: $(CLEAN_LOCAL_HOOKS)
4611 rm -rf $(abs_srcdir)/install-tree
4612 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4613 $(abs_srcdir)/hwdb/iab.txt
4615 DISTCHECK_CONFIGURE_FLAGS = \
4616 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4617 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4618 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4619 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4620 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4621 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4622 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4623 --with-rootprefix=$$dc_install_base \
4627 DISTCHECK_CONFIGURE_FLAGS += \
4628 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4629 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4631 DISTCHECK_CONFIGURE_FLAGS += \
4632 --with-sysvinit-path= \
4633 --with-sysvrcnd-path=
4637 DISTCHECK_CONFIGURE_FLAGS += \
4642 ( cd $(top_srcdir)/hwdb && \
4643 wget -N http://www.linux-usb.org/usb.ids \
4644 http://pci-ids.ucw.cz/v2.2/pci.ids \
4645 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4646 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4650 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4651 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4653 upload: all distcheck
4654 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4655 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4656 scp man/*.html tango:public/systemd-man/
4658 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4659 doc-sync: all destdir-sphinx
4660 gtkdoc-rebase --html-dir=docs/libudev/html --online
4661 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4662 gtkdoc-rebase --html-dir=docs/gudev/html --online
4663 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4664 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4665 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4668 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4671 rm -rf $(abs_srcdir)/install-tree
4672 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4673 tree $(abs_srcdir)/install-tree
4675 # Let's run all tests of the test suite, but under valgrind. Let's
4676 # exclude the one perl script we have in there
4677 valgrind-tests: $(TESTS)
4678 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
4679 echo "Running $$f"; \
4680 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=4194400 --error-exitcode=55 $(builddir)/$$f ; \
4684 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
4686 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
4687 $(AM_V_GEN)cat $^ > $@
4689 check-api-docs: exported man
4690 $(AM_V_GEN)for symbol in `cat exported` ; do \
4691 if test -f $(builddir)/man/$$symbol.html ; then \
4692 echo " Symbol $$symbol() is documented." ; \
4694 echo "‣ Symbol $$symbol() lacks documentation." ; \
4698 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
4699 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
4701 undefined defined: $(ALL_OBJECTS)
4702 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
4703 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
4704 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
4710 check-api-unused: defined undefined exported
4711 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
4713 # Stupid test that everything purported to be exported really is
4715 define generate-sym-test
4716 $(AM_V_at)$(MKDIR_P) $(dir $@)
4717 $(AM_V_at)printf '#include <stdio.h>\n' > $@
4718 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
4719 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
4720 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
4721 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
4722 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
4723 $(AM_V_at)printf 'return 0; }\n' >> $@
4726 test-libsystemd-bus-sym.c: \
4727 src/libsystemd-bus/libsystemd-bus.sym \
4728 src/systemd/sd-bus.h \
4729 src/systemd/sd-utf8.h \
4731 $(generate-sym-test)
4733 test-libsystemd-daemon-sym.c: \
4734 src/libsystemd-daemon/libsystemd-daemon.sym \
4735 src/systemd/sd-daemon.h \
4737 $(generate-sym-test)
4739 test-libsystemd-id128-sym.c: \
4740 src/libsystemd-id128/libsystemd-id128.sym \
4741 src/systemd/sd-id128.h \
4743 $(generate-sym-test)
4745 test-libsystemd-journal-sym.c: \
4746 src/journal/libsystemd-journal.sym \
4747 src/systemd/sd-journal.h \
4749 $(generate-sym-test)
4751 test-libsystemd-login-sym.c: \
4752 src/login/libsystemd-login.sym \
4753 src/systemd/sd-login.h \
4755 $(generate-sym-test)
4757 test-libudev-sym.c: \
4758 src/libudev/libudev.sym \
4761 $(generate-sym-test)
4763 test_libsystemd_bus_sym_SOURCES = \
4764 test-libsystemd-bus-sym.c
4765 test_libsystemd_bus_sym_LDADD = \
4768 test_libsystemd_daemon_sym_SOURCES = \
4769 test-libsystemd-daemon-sym.c
4770 test_libsystemd_daemon_sym_LDADD = \
4771 libsystemd-daemon.la
4773 test_libsystemd_id128_sym_SOURCES = \
4774 test-libsystemd-id128-sym.c
4775 test_libsystemd_id128_sym_LDADD = \
4778 test_libsystemd_journal_sym_SOURCES = \
4779 test-libsystemd-journal-sym.c
4780 test_libsystemd_journal_sym_LDADD = \
4781 libsystemd-journal.la
4783 test_libsystemd_login_sym_SOURCES = \
4784 test-libsystemd-login-sym.c
4785 test_libsystemd_login_sym_LDADD = \
4788 test_libudev_sym_SOURCES = \
4790 test_libudev_sym_LDADD = \
4794 $(test_libsystemd_bus_sym_SOURCES) \
4795 $(test_libsystemd_daemon_sym_SOURCES) \
4796 $(test_libsystemd_id128_sym_SOURCES) \
4797 $(test_libsystemd_journal_sym_SOURCES) \
4798 $(test_libsystemd_login_sym_SOURCES) \
4799 $(test_libudev_sym_SOURCES)
4802 test-libsystemd-bus-sym \
4803 test-libsystemd-daemon-sym \
4804 test-libsystemd-id128-sym \
4805 test-libsystemd-journal-sym \
4806 test-libsystemd-login-sym \