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 BUSNAMES_TARGET_WANTS =
223 TIMERS_TARGET_WANTS =
225 SYSTEM_UNIT_ALIASES =
230 install-target-wants-hook:
231 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
232 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
233 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
234 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
235 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
236 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
237 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
238 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
239 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
240 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
241 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && $(add-wants)
242 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
243 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
246 [ -z "$$what" ] || ( \
247 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
248 $(MKDIR_P) -m 0755 $$dir && \
251 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
254 install-directories-hook:
255 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
257 install-aliases-hook:
258 set -- $(SYSTEM_UNIT_ALIASES) && \
259 dir=$(systemunitdir) && $(install-aliases)
260 set -- $(USER_UNIT_ALIASES) && \
261 dir=$(userunitdir) && $(install-aliases)
262 set -- $(GENERAL_ALIASES) && \
263 dir= && $(install-aliases)
265 define install-aliases
266 while [ -n "$$1" ]; do \
267 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
268 rm -f $(DESTDIR)$$dir/$$2 && \
269 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
270 shift 2 || exit $$?; \
274 INSTALL_EXEC_HOOKS += \
275 install-target-wants-hook \
276 install-directories-hook \
279 # ------------------------------------------------------------------------------
280 AM_V_M4 = $(AM_V_M4_$(V))
281 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
282 AM_V_M4_0 = @echo " M4 " $@;
284 AM_V_XSLT = $(AM_V_XSLT_$(V))
285 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
286 AM_V_XSLT_0 = @echo " XSLT " $@;
288 AM_V_GPERF = $(AM_V_GPERF_$(V))
289 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
290 AM_V_GPERF_0 = @echo " GPERF " $@;
292 AM_V_LN = $(AM_V_LN_$(V))
293 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
294 AM_V_LN_0 = @echo " LN " $@;
296 # ------------------------------------------------------------------------------
300 systemd-ask-password \
301 systemd-tty-ask-password-agent \
302 systemd-machine-id-setup
308 systemd-detect-virt \
314 src/kernel-install/kernel-install
316 dist_kernelinstall_SCRIPTS = \
317 src/kernel-install/50-depmod.install \
318 src/kernel-install/90-loaderentry.install
320 rootlibexec_PROGRAMS = \
322 systemd-cgroups-agent \
324 systemd-update-utmp \
328 systemd-reply-password \
334 systemd-socket-proxyd
336 systemgenerator_PROGRAMS = \
337 systemd-getty-generator \
338 systemd-fstab-generator \
339 systemd-system-update-generator
341 dist_bashcompletion_DATA = \
342 shell-completion/bash/journalctl \
343 shell-completion/bash/systemctl \
344 shell-completion/bash/systemd-analyze \
345 shell-completion/bash/systemd-run \
346 shell-completion/bash/udevadm \
347 shell-completion/bash/kernel-install
349 dist_zshcompletion_DATA = \
350 shell-completion/zsh/_systemctl \
351 shell-completion/zsh/_journalctl \
352 shell-completion/zsh/_udevadm \
353 shell-completion/zsh/_kernel-install \
354 shell-completion/zsh/_systemd-nspawn \
355 shell-completion/zsh/_systemd-analyze \
356 shell-completion/zsh/_systemd-run \
357 shell-completion/zsh/_sd_hosts_or_user_at_host \
358 shell-completion/zsh/_systemd-delta \
359 shell-completion/zsh/_systemd
362 sysctl.d/50-default.conf
364 dist_systemunit_DATA = \
365 units/graphical.target \
366 units/multi-user.target \
367 units/emergency.service \
368 units/emergency.target \
369 units/sysinit.target \
374 units/local-fs.target \
375 units/local-fs-pre.target \
376 units/initrd.target \
377 units/initrd-fs.target \
378 units/initrd-root-fs.target \
379 units/remote-fs.target \
380 units/remote-fs-pre.target \
381 units/network.target \
382 units/network-online.target \
383 units/nss-lookup.target \
384 units/nss-user-lookup.target \
385 units/hibernate.target \
386 units/hybrid-sleep.target \
387 units/poweroff.target \
388 units/reboot.target \
389 units/rescue.target \
390 units/rpcbind.target \
391 units/time-sync.target \
392 units/shutdown.target \
394 units/umount.target \
395 units/sigpwr.target \
397 units/sockets.target \
398 units/busnames.target \
399 units/timers.target \
401 units/suspend.target \
403 units/slices.target \
406 units/systemd-initctl.socket \
407 units/systemd-shutdownd.socket \
408 units/syslog.socket \
409 units/dev-hugepages.mount \
410 units/dev-mqueue.mount \
411 units/sys-kernel-config.mount \
412 units/sys-kernel-debug.mount \
413 units/sys-fs-fuse-connections.mount \
415 units/printer.target \
417 units/bluetooth.target \
418 units/smartcard.target \
419 units/systemd-ask-password-wall.path \
420 units/systemd-ask-password-console.path \
421 units/systemd-udevd-control.socket \
422 units/systemd-udevd-kernel.socket \
423 units/system-update.target \
424 units/initrd-switch-root.target
426 nodist_systemunit_DATA = \
427 units/getty@.service \
428 units/serial-getty@.service \
429 units/console-shell.service \
430 units/console-getty.service \
431 units/container-getty@.service \
432 units/systemd-initctl.service \
433 units/systemd-shutdownd.service \
434 units/systemd-remount-fs.service \
435 units/systemd-update-utmp.service \
436 units/systemd-update-utmp-runlevel.service \
437 units/systemd-ask-password-wall.service \
438 units/systemd-ask-password-console.service \
439 units/systemd-sysctl.service \
440 units/emergency.service \
441 units/rescue.service \
442 units/user@.service \
443 units/systemd-hibernate.service \
444 units/systemd-hybrid-sleep.service \
445 units/systemd-suspend.service \
446 units/systemd-halt.service \
447 units/systemd-poweroff.service \
448 units/systemd-reboot.service \
449 units/systemd-kexec.service \
450 units/systemd-fsck@.service \
451 units/systemd-fsck-root.service \
452 units/systemd-udevd.service \
453 units/systemd-udev-trigger.service \
454 units/systemd-udev-settle.service \
455 units/debug-shell.service \
456 units/initrd-parse-etc.service \
457 units/initrd-cleanup.service \
458 units/initrd-udevadm-cleanup-db.service \
459 units/initrd-switch-root.service \
460 units/systemd-nspawn@.service
462 dist_userunit_DATA = \
463 units/user/default.target \
464 units/user/exit.target
466 nodist_userunit_DATA = \
467 units/user/systemd-exit.service
470 units/getty@.service.m4 \
471 units/serial-getty@.service.m4 \
472 units/console-shell.service.m4.in \
473 units/console-getty.service.m4.in \
474 units/container-getty@.service.m4.in \
475 units/rescue.service.m4.in \
476 units/systemd-initctl.service.in \
477 units/systemd-shutdownd.service.in \
478 units/systemd-remount-fs.service.in \
479 units/systemd-update-utmp.service.in \
480 units/systemd-update-utmp-runlevel.service.in \
481 units/systemd-ask-password-wall.service.in \
482 units/systemd-ask-password-console.service.in \
483 units/systemd-sysctl.service.in \
484 units/emergency.service.in \
485 units/systemd-halt.service.in \
486 units/systemd-poweroff.service.in \
487 units/systemd-reboot.service.in \
488 units/systemd-kexec.service.in \
489 units/user/systemd-exit.service.in \
490 units/systemd-fsck@.service.in \
491 units/systemd-fsck-root.service.in \
492 units/user@.service.in \
493 units/systemd-udevd.service \
494 units/systemd-udev-trigger.service \
495 units/systemd-udev-settle.service \
496 units/debug-shell.service.in \
497 units/systemd-hibernate.service.in \
498 units/systemd-hybrid-sleep.service.in \
499 units/systemd-suspend.service.in \
500 units/quotaon.service.in \
501 units/initrd-parse-etc.service.in \
502 units/initrd-cleanup.service.in \
503 units/initrd-udevadm-cleanup-db.service.in \
504 units/initrd-switch-root.service.in \
505 units/systemd-nspawn@.service.in
508 units/console-shell.service.m4 \
509 units/console-getty.service.m4 \
510 units/container-getty@.service.m4 \
511 units/rescue.service.m4
514 nodist_systemunit_DATA += \
515 units/rc-local.service \
516 units/halt-local.service
518 systemgenerator_PROGRAMS += \
519 systemd-rc-local-generator
523 units/rc-local.service.in \
524 units/halt-local.service.in
526 # automake is broken and can't handle files with a dash in front
527 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
529 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
531 units-uninstall-hook:
532 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
534 INSTALL_DATA_HOOKS += units-install-hook
535 UNINSTALL_DATA_HOOKS += units-uninstall-hook
545 @INTLTOOL_POLICY_RULE@
547 # ------------------------------------------------------------------------------
552 include Makefile-man.am
555 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
558 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
560 ${XML_FILES:.xml=.html}
562 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
579 $(AM_V_at)$(MKDIR_P) $(dir $@)
580 $(AM_V_LN)$(LN_S) -f ../../man $@
589 man/index.html: man/systemd.index.html
590 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
598 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
599 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
600 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
602 update-man-list: make-man-rules.py $(XML_GLOB)
603 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
604 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
605 @echo "Makefile-man.am has been regenerated"
607 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
608 $(AM_V_at)$(MKDIR_P) $(dir $@)
609 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
611 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
612 $(AM_V_at)$(MKDIR_P) $(dir $@)
613 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
616 man/systemd.index.xml \
618 man/systemd.directives.xml
621 man/systemd.index.xml \
622 man/systemd.directives.xml
634 make-directive-index.py \
637 # ------------------------------------------------------------------------------
638 noinst_LTLIBRARIES += \
641 libsystemd_rtnl_la_SOURCES = \
642 src/systemd/sd-rtnl.h \
643 src/libsystemd-rtnl/sd-rtnl.c \
644 src/libsystemd-rtnl/rtnl-internal.h \
645 src/libsystemd-rtnl/rtnl-message.c \
646 src/libsystemd-rtnl/rtnl-util.h \
647 src/libsystemd-rtnl/rtnl-util.c
649 test_rtnl_SOURCES = \
650 src/libsystemd-rtnl/test-rtnl.c
654 libsystemd-bus-internal.la \
655 libsystemd-id128-internal.la \
660 # ------------------------------------------------------------------------------
661 noinst_LTLIBRARIES += \
664 libsystemd_shared_la_SOURCES = \
665 src/shared/linux/auto_dev-ioctl.h \
666 src/shared/linux/fanotify.h \
667 src/shared/linux/seccomp.h \
668 src/shared/linux/seccomp-bpf.h \
669 src/shared/ioprio.h \
670 src/shared/missing.h \
671 src/shared/initreq.h \
672 src/shared/securebits.h \
673 src/shared/special.h \
677 src/shared/sparse-endian.h \
678 src/shared/refcnt.h \
679 src/shared/udev-util.h \
680 src/shared/bus-errors.h \
681 src/shared/device-nodes.c \
682 src/shared/device-nodes.h \
687 src/shared/efivars.c \
688 src/shared/efivars.h \
689 src/shared/path-util.c \
690 src/shared/path-util.h \
691 src/shared/time-util.c \
692 src/shared/time-util.h \
693 src/shared/hashmap.c \
694 src/shared/hashmap.h \
701 src/shared/sleep-config.c \
702 src/shared/sleep-config.h \
705 src/shared/env-util.c \
706 src/shared/env-util.h \
707 src/shared/strbuf.c \
708 src/shared/strbuf.h \
709 src/shared/strxcpyx.c \
710 src/shared/strxcpyx.h \
711 src/shared/conf-parser.c \
712 src/shared/conf-parser.h \
715 src/shared/ratelimit.h \
716 src/shared/ratelimit.c \
717 src/shared/exit-status.c \
718 src/shared/exit-status.h \
721 src/shared/gunicode.c \
722 src/shared/gunicode.h \
725 src/shared/socket-util.c \
726 src/shared/socket-util.h \
727 src/shared/conf-files.c \
728 src/shared/conf-files.h \
729 src/shared/cgroup-util.c \
730 src/shared/cgroup-util.h \
731 src/shared/cgroup-show.c \
732 src/shared/cgroup-show.h \
733 src/shared/unit-name.c \
734 src/shared/unit-name.h \
735 src/shared/utmp-wtmp.c \
736 src/shared/utmp-wtmp.h \
737 src/shared/watchdog.c \
738 src/shared/watchdog.h \
739 src/shared/spawn-ask-password-agent.c \
740 src/shared/spawn-ask-password-agent.h \
741 src/shared/replace-var.c \
742 src/shared/replace-var.h \
743 src/shared/spawn-polkit-agent.c \
744 src/shared/spawn-polkit-agent.h \
745 src/shared/hwclock.c \
746 src/shared/hwclock.h \
747 src/shared/time-dst.c \
748 src/shared/time-dst.h \
749 src/shared/calendarspec.c \
750 src/shared/calendarspec.h \
751 src/shared/fileio.c \
752 src/shared/fileio.h \
753 src/shared/output-mode.h \
754 src/shared/MurmurHash3.c \
755 src/shared/MurmurHash3.h \
756 src/shared/acpi-fpdt.h \
757 src/shared/acpi-fpdt.c \
758 src/shared/boot-timestamps.h \
759 src/shared/boot-timestamps.c \
762 src/shared/smack-util.c \
763 src/shared/smack-util.h \
764 src/shared/apparmor-util.c \
765 src/shared/apparmor-util.h \
766 src/shared/ima-util.c \
767 src/shared/ima-util.h \
768 src/shared/ptyfwd.c \
769 src/shared/ptyfwd.h \
770 src/shared/net-util.c \
771 src/shared/net-util.h \
772 src/shared/errno-list.c \
773 src/shared/errno-list.h \
774 src/shared/syscall-list.c \
775 src/shared/syscall-list.h \
779 nodist_libsystemd_shared_la_SOURCES = \
780 src/shared/errno-from-name.h \
781 src/shared/errno-to-name.h \
782 src/shared/syscall-from-name.h \
783 src/shared/syscall-to-name.h
785 # ------------------------------------------------------------------------------
786 noinst_LTLIBRARIES += \
789 libsystemd_units_la_SOURCES = \
790 src/shared/install.c \
791 src/shared/install.h \
792 src/shared/install-printf.c \
793 src/shared/install-printf.h \
794 src/shared/path-lookup.c \
795 src/shared/path-lookup.h \
796 src/shared/specifier.c \
797 src/shared/specifier.h
799 libsystemd_units_la_CFLAGS = \
802 # ------------------------------------------------------------------------------
803 noinst_LTLIBRARIES += \
806 libsystemd_label_la_SOURCES = \
807 src/shared/socket-label.c \
810 src/shared/selinux-util.c \
811 src/shared/selinux-util.h \
812 src/shared/mkdir-label.c \
813 src/shared/ask-password-api.c \
814 src/shared/ask-password-api.h \
815 src/shared/fileio-label.c \
816 src/shared/fileio-label.h \
817 src/shared/dev-setup.c \
818 src/shared/dev-setup.h
820 libsystemd_label_la_CFLAGS = \
824 libsystemd_label_la_LIBADD = \
827 # ------------------------------------------------------------------------------
828 noinst_LTLIBRARIES += \
831 libsystemd_logs_la_SOURCES = \
832 src/shared/logs-show.c \
833 src/shared/logs-show.h
835 # ------------------------------------------------------------------------------
836 noinst_LTLIBRARIES += \
837 libsystemd-capability.la
839 libsystemd_capability_la_SOURCES = \
840 src/shared/capability.c \
841 src/shared/capability.h
843 libsystemd_capability_la_CFLAGS = \
847 libsystemd_capability_la_LIBADD = \
850 # ------------------------------------------------------------------------------
852 noinst_LTLIBRARIES += \
855 libsystemd_acl_la_SOURCES = \
856 src/shared/acl-util.c \
857 src/shared/acl-util.h
859 libsystemd_acl_la_CFLAGS = \
863 libsystemd_acl_la_LIBADD = \
867 # ------------------------------------------------------------------------------
868 noinst_LTLIBRARIES += \
871 libsystemd_core_la_SOURCES = \
874 src/core/unit-printf.c \
875 src/core/unit-printf.h \
880 src/core/transaction.c \
881 src/core/transaction.h \
882 src/core/load-fragment.c \
883 src/core/load-fragment.h \
892 src/core/snapshot.c \
893 src/core/snapshot.h \
898 src/core/automount.c \
899 src/core/automount.h \
910 src/core/load-dropin.c \
911 src/core/load-dropin.h \
918 src/core/dbus-manager.c \
919 src/core/dbus-manager.h \
920 src/core/dbus-unit.c \
921 src/core/dbus-unit.h \
922 src/core/dbus-job.c \
923 src/core/dbus-job.h \
924 src/core/dbus-service.c \
925 src/core/dbus-service.h \
926 src/core/dbus-socket.c \
927 src/core/dbus-socket.h \
928 src/core/dbus-busname.c \
929 src/core/dbus-busname.h \
930 src/core/dbus-target.c \
931 src/core/dbus-target.h \
932 src/core/dbus-snapshot.c \
933 src/core/dbus-snapshot.h \
934 src/core/dbus-device.c \
935 src/core/dbus-device.h \
936 src/core/dbus-mount.c \
937 src/core/dbus-mount.h \
938 src/core/dbus-automount.c \
939 src/core/dbus-automount.h \
940 src/core/dbus-swap.c \
941 src/core/dbus-swap.h \
942 src/core/dbus-timer.c \
943 src/core/dbus-timer.h \
944 src/core/dbus-path.c \
945 src/core/dbus-path.h \
946 src/core/dbus-slice.c \
947 src/core/dbus-slice.h \
948 src/core/dbus-scope.c \
949 src/core/dbus-scope.h \
950 src/core/dbus-execute.c \
951 src/core/dbus-execute.h \
952 src/core/dbus-kill.c \
953 src/core/dbus-kill.h \
954 src/core/dbus-cgroup.c \
955 src/core/dbus-cgroup.h \
956 src/core/dbus-client-track.c \
957 src/core/dbus-client-track.h \
960 src/core/selinux-access.c \
961 src/core/selinux-access.h \
962 src/core/selinux-setup.c \
963 src/core/selinux-setup.h \
964 src/core/smack-setup.c \
965 src/core/smack-setup.h \
966 src/core/ima-setup.c \
967 src/core/ima-setup.h \
968 src/core/locale-setup.h \
969 src/core/locale-setup.c \
970 src/core/hostname-setup.c \
971 src/core/hostname-setup.h \
972 src/core/machine-id-setup.c \
973 src/core/machine-id-setup.h \
974 src/core/mount-setup.c \
975 src/core/mount-setup.h \
976 src/core/loopback-setup.h \
977 src/core/loopback-setup.c \
978 src/core/condition.c \
979 src/core/condition.h \
980 src/core/namespace.c \
981 src/core/namespace.h \
985 src/core/sysfs-show.h \
986 src/core/switch-root.h \
987 src/core/switch-root.c \
990 src/core/audit-fd.c \
991 src/core/audit-fd.h \
996 libsystemd_core_la_SOURCES += \
997 src/core/kmod-setup.c \
998 src/core/kmod-setup.h
1001 nodist_libsystemd_core_la_SOURCES = \
1002 src/core/load-fragment-gperf.c \
1003 src/core/load-fragment-gperf-nulstr.c
1005 libsystemd_core_la_CFLAGS = \
1013 libsystemd_core_la_LIBADD = \
1014 libsystemd-capability.la \
1015 libsystemd-units.la \
1016 libsystemd-label.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:
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
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
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
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:
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
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
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
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 \
1166 test/daughter.service \
1170 src/test/test-helper.h
1172 test_device_nodes_SOURCES = \
1173 src/test/test-device-nodes.c
1175 test_device_nodes_LDADD = \
1176 libsystemd-shared.la
1178 test_engine_SOURCES = \
1179 src/test/test-engine.c
1181 test_engine_LDADD = \
1182 libsystemd-core.la \
1185 test_job_type_SOURCES = \
1186 src/test/test-job-type.c
1188 test_job_type_LDADD = \
1189 libsystemd-core.la \
1198 test_loopback_SOURCES = \
1199 src/test/test-loopback.c
1201 test_loopback_LDADD = \
1204 test_hostname_SOURCES = \
1205 src/test/test-hostname.c
1207 test_hostname_LDADD = \
1214 test_boot_timestamp_SOURCES = \
1215 src/test/test-boot-timestamps.c
1217 test_boot_timestamp_LDADD = \
1218 libsystemd-shared.la
1221 test_unit_name_SOURCES = \
1222 src/test/test-unit-name.c
1224 test_unit_name_LDADD = \
1225 libsystemd-core.la \
1228 test_unit_file_SOURCES = \
1229 src/test/test-unit-file.c
1231 test_unit_file_LDADD = \
1232 libsystemd-core.la \
1235 test_utf8_SOURCES = \
1236 src/test/test-utf8.c
1239 libsystemd-shared.la
1241 test_util_SOURCES = \
1242 src/test/test-util.c
1247 test_namespace_SOURCES = \
1248 src/test/test-namespace.c
1250 test_namespace_LDADD = \
1253 test_hashmap_SOURCES = \
1254 src/test/test-hashmap.c
1256 test_hashmap_LDADD = \
1259 test_list_SOURCES = \
1260 src/test/test-list.c
1265 test_tables_SOURCES = \
1266 src/test/test-tables.c \
1267 src/shared/test-tables.h
1269 test_tables_LDADD = \
1270 libsystemd-logs.la \
1271 libsystemd-journal-internal.la \
1272 libsystemd-core.la \
1275 test_prioq_SOURCES = \
1276 src/test/test-prioq.c
1278 test_prioq_LDADD = \
1281 test_fileio_SOURCES = \
1282 src/test/test-fileio.c
1284 test_fileio_LDADD = \
1287 test_time_SOURCES = \
1288 src/test/test-time.c
1293 test_log_SOURCES = \
1299 test_ellipsize_SOURCES = \
1300 src/test/test-ellipsize.c
1302 test_ellipsize_LDADD = \
1305 test_date_SOURCES = \
1306 src/test/test-date.c
1311 test_sleep_SOURCES = \
1312 src/test/test-sleep.c
1314 test_sleep_LDADD = \
1317 test_replace_var_SOURCES = \
1318 src/test/test-replace-var.c
1320 test_replace_var_LDADD = \
1321 libsystemd-shared.la
1323 test_calendarspec_SOURCES = \
1324 src/test/test-calendarspec.c
1326 test_calendarspec_LDADD = \
1327 libsystemd-shared.la
1329 test_strip_tab_ansi_SOURCES = \
1330 src/test/test-strip-tab-ansi.c
1332 test_strip_tab_ansi_LDADD = \
1333 libsystemd-shared.la
1335 test_daemon_SOURCES = \
1336 src/test/test-daemon.c
1338 test_daemon_LDADD = \
1339 libsystemd-daemon-internal.la \
1340 libsystemd-shared.la
1342 test_cgroup_SOURCES = \
1343 src/test/test-cgroup.c
1345 test_cgroup_LDADD = \
1346 libsystemd-label.la \
1347 libsystemd-shared.la
1349 test_cgroup_mask_SOURCES = \
1350 src/test/test-cgroup-mask.c
1352 test_cgroup_mask_CFLAGS = \
1355 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1357 test_cgroup_mask_LDADD = \
1358 libsystemd-core.la \
1361 test_cgroup_util_SOURCES = \
1362 src/test/test-cgroup-util.c
1364 test_cgroup_util_LDADD = \
1365 libsystemd-label.la \
1366 libsystemd-daemon-internal.la \
1367 libsystemd-shared.la
1369 test_env_replace_SOURCES = \
1370 src/test/test-env-replace.c
1372 test_env_replace_LDADD = \
1373 libsystemd-shared.la
1375 test_strbuf_SOURCES = \
1376 src/test/test-strbuf.c
1378 test_strbuf_LDADD = \
1379 libsystemd-shared.la
1381 test_strv_SOURCES = \
1382 src/test/test-strv.c
1385 libsystemd-units.la \
1386 libsystemd-id128-internal.la \
1387 libsystemd-shared.la
1389 test_path_util_SOURCES = \
1390 src/test/test-path-util.c
1392 test_path_util_LDADD = \
1393 libsystemd-shared.la
1395 test_strxcpyx_SOURCES = \
1396 src/test/test-strxcpyx.c
1398 test_strxcpyx_LDADD = \
1399 libsystemd-shared.la
1401 test_install_SOURCES = \
1402 src/test/test-install.c
1404 test_install_LDADD = \
1405 libsystemd-units.la \
1406 libsystemd-label.la \
1407 libsystemd-id128-internal.la \
1408 libsystemd-shared.la
1410 test_watchdog_SOURCES = \
1411 src/test/test-watchdog.c
1413 test_watchdog_LDADD = \
1414 libsystemd-shared.la
1416 test_sched_prio_SOURCES = \
1417 src/test/test-sched-prio.c
1419 test_sched_prio_CFLAGS = \
1421 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1423 test_sched_prio_LDADD = \
1424 libsystemd-core.la \
1427 # ------------------------------------------------------------------------------
1428 ## .PHONY so it always rebuilds it
1429 .PHONY: coverage lcov-run lcov-report
1431 # run lcov from scratch, always
1436 coverage_dir = coverage
1437 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1440 # reset run coverage tests
1442 @rm -rf $(coverage_dir)
1443 lcov $(coverage_opts) --zerocounters
1446 # generate report based on current coverage data
1448 $(MKDIR_P) $(coverage_dir)
1449 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1450 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1451 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1452 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1454 # lcov doesn't work properly with vpath builds, make sure that bad
1455 # output is not uploaded by mistake.
1456 coverage-sync: coverage
1457 test "$(builddir)" = "$(srcdir)"
1458 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1461 lcov-run lcov-report:
1462 echo "Need to reconfigure with --enable-coverage"
1465 # ------------------------------------------------------------------------------
1466 systemd_analyze_SOURCES = \
1467 src/analyze/analyze.c
1469 systemd_analyze_LDADD = \
1470 libsystemd-bus-internal.la \
1471 libsystemd-id128-internal.la \
1472 libsystemd-daemon-internal.la \
1473 libsystemd-shared.la
1475 # ------------------------------------------------------------------------------
1476 systemd_initctl_SOURCES = \
1477 src/initctl/initctl.c
1479 systemd_initctl_LDADD = \
1480 libsystemd-bus-internal.la \
1481 libsystemd-id128-internal.la \
1482 libsystemd-daemon-internal.la \
1483 libsystemd-shared.la
1485 # ------------------------------------------------------------------------------
1486 systemd_update_utmp_SOURCES = \
1487 src/update-utmp/update-utmp.c
1489 systemd_update_utmp_CFLAGS = \
1493 systemd_update_utmp_LDADD = \
1494 libsystemd-bus-internal.la \
1495 libsystemd-id128-internal.la \
1496 libsystemd-daemon-internal.la \
1497 libsystemd-shared.la \
1500 # ------------------------------------------------------------------------------
1501 systemd_shutdownd_SOURCES = \
1502 src/shutdownd/shutdownd.c
1504 systemd_shutdownd_LDADD = \
1505 libsystemd-label.la \
1506 libsystemd-daemon-internal.la \
1507 libsystemd-shared.la
1510 src/systemd/sd-shutdown.h
1512 # ------------------------------------------------------------------------------
1513 systemd_shutdown_SOURCES = \
1516 src/core/shutdown.c \
1517 src/core/mount-setup.c \
1518 src/core/mount-setup.h \
1519 src/core/killall.h \
1522 systemd_shutdown_LDADD = \
1523 libsystemd-label.la \
1524 libudev-internal.la \
1525 libsystemd-shared.la
1527 # ------------------------------------------------------------------------------
1529 systemd_modules_load_SOURCES = \
1530 src/modules-load/modules-load.c
1532 systemd_modules_load_CFLAGS = \
1536 systemd_modules_load_LDADD = \
1537 libsystemd-shared.la \
1540 rootlibexec_PROGRAMS += \
1541 systemd-modules-load
1543 nodist_systemunit_DATA += \
1544 units/systemd-modules-load.service
1546 SYSINIT_TARGET_WANTS += \
1547 systemd-modules-load.service
1550 nodist_systemunit_DATA += \
1551 units/kmod-static-nodes.service
1553 SYSINIT_TARGET_WANTS += \
1554 kmod-static-nodes.service
1559 units/systemd-modules-load.service.in \
1560 units/kmod-static-nodes.service.in
1562 # ------------------------------------------------------------------------------
1564 systemd_tmpfiles_SOURCES = \
1565 src/tmpfiles/tmpfiles.c \
1566 src/shared/specifier.c \
1567 src/shared/specifier.h
1569 systemd_tmpfiles_LDADD = \
1570 libsystemd-label.la \
1571 libsystemd-capability.la \
1572 libsystemd-id128-internal.la \
1573 libsystemd-shared.la
1575 rootbin_PROGRAMS += \
1578 dist_systemunit_DATA += \
1579 units/systemd-tmpfiles-clean.timer
1581 nodist_systemunit_DATA += \
1582 units/systemd-tmpfiles-setup-dev.service \
1583 units/systemd-tmpfiles-setup.service \
1584 units/systemd-tmpfiles-clean.service
1586 dist_tmpfiles_DATA = \
1587 tmpfiles.d/systemd.conf \
1588 tmpfiles.d/tmp.conf \
1592 dist_tmpfiles_DATA += \
1593 tmpfiles.d/legacy.conf
1596 SYSINIT_TARGET_WANTS += \
1597 systemd-tmpfiles-setup-dev.service \
1598 systemd-tmpfiles-setup.service
1600 dist_zshcompletion_DATA += \
1601 shell-completion/zsh/_systemd-tmpfiles
1603 TIMERS_TARGET_WANTS += \
1604 systemd-tmpfiles-clean.timer
1608 $(sysconfdir)/tmpfiles.d
1612 units/systemd-tmpfiles-setup-dev.service.in \
1613 units/systemd-tmpfiles-setup.service.in \
1614 units/systemd-tmpfiles-clean.service.in
1616 # ------------------------------------------------------------------------------
1617 systemd_machine_id_setup_SOURCES = \
1618 src/machine-id-setup/machine-id-setup-main.c \
1619 src/core/machine-id-setup.c \
1620 src/core/machine-id-setup.h
1622 systemd_machine_id_setup_LDADD = \
1623 libsystemd-label.la \
1624 libsystemd-id128-internal.la \
1625 libsystemd-shared.la
1627 # ------------------------------------------------------------------------------
1628 systemd_sysctl_SOURCES = \
1631 systemd_sysctl_LDADD = \
1632 libsystemd-shared.la
1634 # ------------------------------------------------------------------------------
1635 systemd_sleep_SOURCES = \
1638 systemd_sleep_LDADD = \
1639 libsystemd-shared.la
1641 # ------------------------------------------------------------------------------
1642 systemd_fsck_SOURCES = \
1645 systemd_fsck_LDADD = \
1646 libsystemd-bus-internal.la \
1647 libsystemd-id128-internal.la \
1648 libsystemd-daemon-internal.la \
1649 libudev-internal.la \
1650 libsystemd-shared.la
1652 # ------------------------------------------------------------------------------
1653 systemd_ac_power_SOURCES = \
1654 src/ac-power/ac-power.c
1656 systemd_ac_power_LDADD = \
1657 libudev-internal.la \
1658 libsystemd-shared.la
1660 # ------------------------------------------------------------------------------
1661 systemd_detect_virt_SOURCES = \
1662 src/detect-virt/detect-virt.c
1664 systemd_detect_virt_LDADD = \
1665 libsystemd-shared.la
1667 systemd-detect-virt-install-hook:
1668 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1670 INSTALL_EXEC_HOOKS += \
1671 systemd-detect-virt-install-hook
1673 # ------------------------------------------------------------------------------
1674 systemd_delta_SOURCES = \
1677 systemd_delta_LDADD = \
1678 libsystemd-shared.la
1680 # ------------------------------------------------------------------------------
1681 systemd_getty_generator_SOURCES = \
1682 src/getty-generator/getty-generator.c
1684 systemd_getty_generator_LDADD = \
1685 libsystemd-label.la \
1686 libsystemd-shared.la
1688 # ------------------------------------------------------------------------------
1689 systemd_fstab_generator_SOURCES = \
1690 src/fstab-generator/fstab-generator.c \
1691 src/core/mount-setup.c
1693 systemd_fstab_generator_LDADD = \
1694 libsystemd-label.la \
1695 libsystemd-shared.la
1697 # ------------------------------------------------------------------------------
1698 systemd_system_update_generator_SOURCES = \
1699 src/system-update-generator/system-update-generator.c
1701 systemd_system_update_generator_LDADD = \
1702 libsystemd-label.la \
1703 libsystemd-shared.la
1706 # ------------------------------------------------------------------------------
1707 systemgenerator_PROGRAMS += \
1708 systemd-efi-boot-generator
1710 systemd_efi_boot_generator_SOURCES = \
1711 src/efi-boot-generator/efi-boot-generator.c
1713 systemd_efi_boot_generator_LDADD = \
1714 libsystemd-label.la \
1715 libsystemd-shared.la
1717 # ------------------------------------------------------------------------------
1720 src/boot/boot-loader.h \
1721 src/boot/bootctl.c \
1722 src/boot/boot-loader.c \
1726 libsystemd-shared.la \
1727 libsystemd-id128-internal.la \
1728 libsystemd-daemon-internal.la
1733 dist_zshcompletion_DATA += \
1734 shell-completion/zsh/_bootctl
1738 # ------------------------------------------------------------------------------
1740 systemgenerator_PROGRAMS += \
1741 systemd-gpt-auto-generator
1743 systemd_gpt_auto_generator_SOURCES = \
1744 src/gpt-auto-generator/gpt-auto-generator.c
1746 systemd_gpt_auto_generator_LDADD = \
1747 libsystemd-label.la \
1748 libsystemd-id128-internal.la \
1749 libudev-internal.la \
1750 libsystemd-shared.la \
1753 systemd_gpt_auto_generator_CFLAGS = \
1758 # ------------------------------------------------------------------------------
1759 systemgenerator_PROGRAMS += \
1760 systemd-dbus1-generator
1762 systemd_dbus1_generator_SOURCES = \
1763 src/dbus1-generator/dbus1-generator.c
1765 systemd_dbus1_generator_LDADD = \
1766 libsystemd-label.la \
1767 libsystemd-shared.la \
1768 libsystemd-bus-internal.la
1770 # ------------------------------------------------------------------------------
1771 systemd_rc_local_generator_SOURCES = \
1772 src/rc-local-generator/rc-local-generator.c
1774 systemd_rc_local_generator_LDADD = \
1775 libsystemd-label.la \
1776 libsystemd-shared.la
1778 # ------------------------------------------------------------------------------
1779 systemd_remount_fs_SOURCES = \
1780 src/remount-fs/remount-fs.c \
1781 src/core/mount-setup.c \
1782 src/core/mount-setup.h
1784 systemd_remount_fs_LDADD = \
1785 libsystemd-label.la \
1786 libsystemd-shared.la
1788 # ------------------------------------------------------------------------------
1789 systemd_cgroups_agent_SOURCES = \
1790 src/cgroups-agent/cgroups-agent.c
1792 systemd_cgroups_agent_LDADD = \
1793 libsystemd-bus-internal.la \
1794 libsystemd-id128-internal.la \
1795 libsystemd-daemon-internal.la \
1796 libsystemd-shared.la
1798 # ------------------------------------------------------------------------------
1799 systemctl_SOURCES = \
1800 src/systemctl/systemctl.c
1803 libsystemd-units.la \
1804 libsystemd-label.la \
1805 libsystemd-bus-internal.la \
1809 systemctl_LDADD += \
1810 libsystemd-login-internal.la
1813 systemctl_LDADD += \
1814 libsystemd-journal-internal.la \
1815 libsystemd-id128-internal.la \
1816 libsystemd-daemon-internal.la \
1817 libsystemd-shared.la
1819 # ------------------------------------------------------------------------------
1820 systemd_notify_SOURCES = \
1821 src/notify/notify.c \
1822 src/readahead/sd-readahead.c
1824 systemd_notify_LDADD = \
1825 libsystemd-daemon-internal.la \
1826 libsystemd-shared.la
1828 # ------------------------------------------------------------------------------
1829 systemd_ask_password_SOURCES = \
1830 src/ask-password/ask-password.c
1832 systemd_ask_password_LDADD = \
1833 libsystemd-label.la \
1834 libsystemd-shared.la
1836 # ------------------------------------------------------------------------------
1837 systemd_reply_password_SOURCES = \
1838 src/reply-password/reply-password.c
1840 systemd_reply_password_LDADD = \
1841 libsystemd-shared.la
1843 # ------------------------------------------------------------------------------
1844 systemd_cgls_SOURCES = \
1847 systemd_cgls_LDADD = \
1848 libsystemd-shared.la
1850 # ------------------------------------------------------------------------------
1851 systemd_cgtop_SOURCES = \
1854 systemd_cgtop_LDADD = \
1855 libsystemd-shared.la
1857 # ------------------------------------------------------------------------------
1858 systemd_nspawn_SOURCES = \
1859 src/nspawn/nspawn.c \
1860 src/core/mount-setup.c \
1861 src/core/mount-setup.h \
1862 src/core/loopback-setup.c \
1863 src/core/loopback-setup.h
1865 systemd_nspawn_LDADD = \
1866 libsystemd-label.la \
1867 libsystemd-capability.la \
1868 libsystemd-bus-internal.la \
1869 libsystemd-id128-internal.la \
1870 libsystemd-daemon-internal.la \
1871 libsystemd-shared.la \
1874 # ------------------------------------------------------------------------------
1875 systemd_run_SOURCES = \
1878 systemd_run_LDADD = \
1879 libsystemd-label.la \
1880 libsystemd-capability.la \
1881 libsystemd-bus-internal.la \
1882 libsystemd-daemon-internal.la \
1883 libsystemd-id128-internal.la \
1884 libsystemd-shared.la
1886 # ------------------------------------------------------------------------------
1887 systemd_bus_proxyd_SOURCES = \
1888 src/bus-proxyd/bus-proxyd.c
1890 systemd_bus_proxyd_LDADD = \
1891 libsystemd-bus-internal.la \
1892 libsystemd-daemon-internal.la \
1893 libsystemd-id128-internal.la \
1894 libsystemd-shared.la
1896 bus-proxyd-install-hook:
1897 $(AM_V_LN)$(LN_S) -f ../../lib/systemd/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
1899 bus-proxyd-uninstall-hook:
1900 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
1902 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
1903 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
1904 # ------------------------------------------------------------------------------
1905 systemd_tty_ask_password_agent_SOURCES = \
1906 src/tty-ask-password-agent/tty-ask-password-agent.c
1908 systemd_tty_ask_password_agent_LDADD = \
1909 libsystemd-label.la \
1910 libsystemd-shared.la
1912 # ------------------------------------------------------------------------------
1913 libsystemd_daemon_la_SOURCES = \
1914 src/libsystemd-daemon/libsystemd-daemon.sym \
1915 src/libsystemd-daemon/sd-daemon.c
1917 libsystemd_daemon_internal_la_SOURCES = \
1918 $(libsystemd_daemon_la_SOURCES)
1920 libsystemd_daemon_internal_la_CPPFLAGS = \
1922 -DSD_DAEMON_DISABLE_MQ
1924 libsystemd_daemon_la_CFLAGS = \
1926 -fvisibility=hidden \
1929 libsystemd_daemon_la_LDFLAGS = \
1931 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1932 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1934 libsystemd_daemon_la_LIBADD = \
1937 pkginclude_HEADERS += \
1938 src/systemd/sd-daemon.h
1940 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1941 libsystemd-daemon-install-hook:
1942 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1944 libsystemd-daemon-uninstall-hook:
1945 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1947 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1948 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1950 lib_LTLIBRARIES += \
1951 libsystemd-daemon.la
1953 noinst_LTLIBRARIES += \
1954 libsystemd-daemon-internal.la
1956 pkgconfiglib_DATA += \
1957 src/libsystemd-daemon/libsystemd-daemon.pc
1960 src/libsystemd-daemon/libsystemd-daemon.pc.in
1962 # ------------------------------------------------------------------------------
1963 libsystemd_bus_la_SOURCES = \
1964 src/libsystemd-bus/libsystemd-bus.sym \
1965 src/systemd/sd-bus.h \
1966 src/systemd/sd-bus-protocol.h \
1967 src/systemd/sd-bus-vtable.h \
1968 src/systemd/sd-memfd.h \
1969 src/systemd/sd-utf8.h \
1970 src/systemd/sd-event.h \
1971 src/libsystemd-bus/sd-bus.c \
1972 src/libsystemd-bus/bus-control.c \
1973 src/libsystemd-bus/bus-control.h \
1974 src/libsystemd-bus/bus-error.c \
1975 src/libsystemd-bus/bus-error.h \
1976 src/libsystemd-bus/bus-internal.c \
1977 src/libsystemd-bus/bus-internal.h \
1978 src/libsystemd-bus/bus-socket.c \
1979 src/libsystemd-bus/bus-socket.h \
1980 src/libsystemd-bus/bus-kernel.c \
1981 src/libsystemd-bus/bus-kernel.h \
1982 src/libsystemd-bus/bus-container.c \
1983 src/libsystemd-bus/bus-container.h \
1984 src/libsystemd-bus/bus-message.c \
1985 src/libsystemd-bus/bus-message.h \
1986 src/libsystemd-bus/bus-creds.c \
1987 src/libsystemd-bus/bus-creds.h \
1988 src/libsystemd-bus/bus-signature.c \
1989 src/libsystemd-bus/bus-signature.h \
1990 src/libsystemd-bus/bus-type.c \
1991 src/libsystemd-bus/bus-type.h \
1992 src/libsystemd-bus/bus-match.c \
1993 src/libsystemd-bus/bus-match.h \
1994 src/libsystemd-bus/bus-bloom.c \
1995 src/libsystemd-bus/bus-bloom.h \
1996 src/libsystemd-bus/bus-introspect.c \
1997 src/libsystemd-bus/bus-introspect.h \
1998 src/libsystemd-bus/bus-objects.c \
1999 src/libsystemd-bus/bus-objects.h \
2000 src/libsystemd-bus/bus-convenience.c \
2001 src/libsystemd-bus/kdbus.h \
2002 src/libsystemd-bus/sd-memfd.c \
2003 src/libsystemd-bus/bus-util.c \
2004 src/libsystemd-bus/bus-util.h \
2005 src/libsystemd-bus/sd-utf8.c \
2006 src/libsystemd-bus/sd-event.c \
2007 src/libsystemd-bus/event-util.h \
2008 src/libsystemd-bus/bus-protocol.h
2010 libsystemd_bus_la_LIBADD = \
2011 libsystemd-id128-internal.la \
2012 libsystemd-daemon-internal.la \
2013 libsystemd-shared.la
2015 libsystemd_bus_la_CFLAGS = \
2019 libsystemd_bus_la_LDFLAGS = \
2021 -version-info $(LIBSYSTEMD_BUS_CURRENT):$(LIBSYSTEMD_BUS_REVISION):$(LIBSYSTEMD_BUS_AGE) \
2022 -Wl,--version-script=$(top_srcdir)/src/libsystemd-bus/libsystemd-bus.sym
2024 pkgconfiglib_DATA += \
2025 src/libsystemd-bus/libsystemd-bus.pc
2028 src/libsystemd-bus/libsystemd-bus.pc.in
2030 lib_LTLIBRARIES += \
2033 libsystemd_bus_internal_la_SOURCES = \
2034 $(libsystemd_bus_la_SOURCES)
2036 libsystemd_bus_internal_la_CFLAGS = \
2037 $(libsystemd_bus_la_CFLAGS)
2039 noinst_LTLIBRARIES += \
2040 libsystemd-bus-internal.la
2042 libsystemd_bus_dump_la_SOURCES = \
2043 src/libsystemd-bus/bus-dump.c \
2044 src/libsystemd-bus/bus-dump.h
2046 libsystemd_bus_dump_la_CFLAGS = \
2050 noinst_LTLIBRARIES += \
2051 libsystemd-bus-dump.la
2055 test-bus-signature \
2060 test-bus-kernel-bloom \
2061 test-bus-kernel-benchmark \
2063 test-bus-zero-copy \
2064 test-bus-introspect \
2073 test_bus_marshal_SOURCES = \
2074 src/libsystemd-bus/test-bus-marshal.c
2076 test_bus_marshal_LDADD = \
2077 libsystemd-bus-internal.la \
2078 libsystemd-id128-internal.la \
2079 libsystemd-daemon-internal.la \
2080 libsystemd-shared.la \
2081 libsystemd-bus-dump.la \
2082 libsystemd-capability.la \
2087 test_bus_marshal_CFLAGS = \
2093 test_bus_signature_SOURCES = \
2094 src/libsystemd-bus/test-bus-signature.c
2096 test_bus_signature_LDADD = \
2097 libsystemd-shared.la \
2098 libsystemd-bus-internal.la
2100 test_bus_chat_SOURCES = \
2101 src/libsystemd-bus/test-bus-chat.c
2103 test_bus_chat_CFLAGS = \
2107 test_bus_chat_LDADD = \
2108 libsystemd-bus-internal.la \
2109 libsystemd-id128-internal.la \
2110 libsystemd-daemon-internal.la \
2111 libsystemd-shared.la
2113 test_bus_server_SOURCES = \
2114 src/libsystemd-bus/test-bus-server.c
2116 test_bus_server_CFLAGS = \
2120 test_bus_server_LDADD = \
2121 libsystemd-bus-internal.la \
2122 libsystemd-id128-internal.la \
2123 libsystemd-daemon-internal.la \
2124 libsystemd-shared.la
2126 test_bus_objects_SOURCES = \
2127 src/libsystemd-bus/test-bus-objects.c
2129 test_bus_objects_CFLAGS = \
2134 test_bus_objects_LDADD = \
2135 libsystemd-bus-internal.la \
2136 libsystemd-id128-internal.la \
2137 libsystemd-daemon-internal.la \
2138 libsystemd-shared.la \
2139 libsystemd-bus-dump.la \
2140 libsystemd-capability.la \
2143 test_bus_error_SOURCES = \
2144 src/libsystemd-bus/test-bus-error.c
2146 test_bus_error_LDADD = \
2147 libsystemd-bus-internal.la \
2148 libsystemd-id128-internal.la \
2149 libsystemd-daemon-internal.la \
2150 libsystemd-shared.la
2152 test_bus_creds_SOURCES = \
2153 src/libsystemd-bus/test-bus-creds.c
2155 test_bus_creds_LDADD = \
2156 libsystemd-bus-internal.la \
2157 libsystemd-id128-internal.la \
2158 libsystemd-daemon-internal.la \
2159 libsystemd-shared.la \
2160 libsystemd-bus-dump.la \
2161 libsystemd-capability.la
2163 test_bus_match_SOURCES = \
2164 src/libsystemd-bus/test-bus-match.c
2166 test_bus_match_LDADD = \
2167 libsystemd-bus-internal.la \
2168 libsystemd-id128-internal.la \
2169 libsystemd-daemon-internal.la \
2170 libsystemd-shared.la
2172 test_bus_kernel_SOURCES = \
2173 src/libsystemd-bus/test-bus-kernel.c
2175 test_bus_kernel_LDADD = \
2176 libsystemd-bus-internal.la \
2177 libsystemd-id128-internal.la \
2178 libsystemd-daemon-internal.la \
2179 libsystemd-shared.la \
2180 libsystemd-bus-dump.la \
2181 libsystemd-capability.la \
2184 test_bus_kernel_CFLAGS = \
2188 test_bus_kernel_bloom_SOURCES = \
2189 src/libsystemd-bus/test-bus-kernel-bloom.c
2191 test_bus_kernel_bloom_LDADD = \
2192 libsystemd-bus-internal.la \
2193 libsystemd-id128-internal.la \
2194 libsystemd-daemon-internal.la \
2195 libsystemd-shared.la
2197 test_bus_kernel_benchmark_SOURCES = \
2198 src/libsystemd-bus/test-bus-kernel-benchmark.c
2200 test_bus_kernel_benchmark_LDADD = \
2201 libsystemd-bus-internal.la \
2202 libsystemd-id128-internal.la \
2203 libsystemd-daemon-internal.la \
2204 libsystemd-shared.la
2206 test_bus_memfd_SOURCES = \
2207 src/libsystemd-bus/test-bus-memfd.c
2209 test_bus_memfd_LDADD = \
2210 libsystemd-bus-internal.la \
2211 libsystemd-shared.la
2213 test_bus_zero_copy_SOURCES = \
2214 src/libsystemd-bus/test-bus-zero-copy.c
2216 test_bus_zero_copy_LDADD = \
2217 libsystemd-bus-internal.la \
2218 libsystemd-id128-internal.la \
2219 libsystemd-daemon-internal.la \
2220 libsystemd-shared.la \
2221 libsystemd-bus-dump.la \
2222 libsystemd-capability.la \
2225 test_bus_zero_copy_CFLAGS = \
2229 test_bus_introspect_SOURCES = \
2230 src/libsystemd-bus/test-bus-introspect.c
2232 test_bus_introspect_LDADD = \
2233 libsystemd-shared.la \
2234 libsystemd-bus-internal.la
2236 test_event_SOURCES = \
2237 src/libsystemd-bus/test-event.c
2239 test_event_LDADD = \
2240 libsystemd-bus-internal.la \
2241 libsystemd-id128-internal.la \
2242 libsystemd-daemon-internal.la \
2243 libsystemd-shared.la
2246 src/libsystemd-bus/busctl.c
2249 libsystemd-bus-internal.la \
2250 libsystemd-id128-internal.la \
2251 libsystemd-daemon-internal.la \
2252 libsystemd-shared.la \
2253 libsystemd-bus-dump.la \
2254 libsystemd-capability.la \
2261 # ------------------------------------------------------------------------------
2271 include_HEADERS += \
2272 src/libudev/libudev.h
2274 lib_LTLIBRARIES += \
2277 libudev_la_SOURCES =\
2278 src/libudev/libudev.sym \
2279 src/libudev/libudev-private.h \
2280 src/libudev/libudev.c \
2281 src/libudev/libudev-list.c \
2282 src/libudev/libudev-util.c \
2283 src/libudev/libudev-device.c \
2284 src/libudev/libudev-enumerate.c \
2285 src/libudev/libudev-monitor.c \
2286 src/libudev/libudev-queue.c \
2287 src/libudev/libudev-hwdb-def.h \
2288 src/libudev/libudev-hwdb.c
2290 libudev_la_CFLAGS = \
2294 libudev_la_LDFLAGS = \
2296 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2297 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2299 libudev_la_LIBADD = \
2300 libsystemd-daemon-internal.la \
2301 libsystemd-id128-internal.la \
2302 libsystemd-shared.la
2304 pkgconfiglib_DATA += \
2305 src/libudev/libudev.pc
2308 src/libudev/libudev.pc.in
2311 src/libudev/libudev.pc \
2316 $(AM_V_at)$(MKDIR_P) $(dir $@)
2317 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2320 $(AM_V_at)$(MKDIR_P) $(dir $@)
2321 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2323 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2324 libudev-install-hook:
2325 libname=libudev.so && $(move-to-rootlibdir)
2327 libudev-uninstall-hook:
2328 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2330 INSTALL_EXEC_HOOKS += libudev-install-hook
2331 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2333 # ------------------------------------------------------------------------------
2334 noinst_LTLIBRARIES += \
2337 libudev_internal_la_SOURCES =\
2338 $(libudev_la_SOURCES) \
2339 src/libudev/libudev-device-private.c \
2340 src/libudev/libudev-queue-private.c
2342 libudev_internal_la_CFLAGS = \
2344 -fvisibility=default
2346 # ------------------------------------------------------------------------------
2348 $(sysconfdir)/udev/rules.d \
2349 $(sysconfdir)/udev/hwdb.d
2351 dist_network_DATA = \
2352 network/99-default.link
2354 dist_udevrules_DATA += \
2355 rules/99-systemd.rules \
2356 rules/42-usb-hid-pm.rules \
2357 rules/50-udev-default.rules \
2358 rules/60-drm.rules \
2359 rules/60-keyboard.rules \
2360 rules/60-persistent-storage-tape.rules \
2361 rules/60-persistent-serial.rules \
2362 rules/60-persistent-input.rules \
2363 rules/60-persistent-alsa.rules \
2364 rules/60-persistent-storage.rules \
2365 rules/64-btrfs.rules \
2366 rules/75-net-description.rules \
2367 rules/75-tty-description.rules \
2368 rules/78-sound-card.rules \
2369 rules/80-net-setup-link.rules \
2370 rules/95-udev-late.rules
2372 dist_udevhwdb_DATA = \
2373 hwdb/20-pci-vendor-model.hwdb \
2374 hwdb/20-pci-classes.hwdb \
2375 hwdb/20-usb-vendor-model.hwdb \
2376 hwdb/20-usb-classes.hwdb \
2377 hwdb/20-bluetooth-vendor-product.hwdb \
2378 hwdb/20-acpi-vendor.hwdb \
2380 hwdb/60-keyboard.hwdb
2382 udevconfdir = $(sysconfdir)/udev
2383 dist_udevconf_DATA = \
2386 sharepkgconfigdir = $(datadir)/pkgconfig
2387 sharepkgconfig_DATA = \
2391 rules/99-systemd.rules.in \
2395 rules/99-systemd.rules \
2399 units/systemd-udevd.service.in \
2400 units/systemd-udev-trigger.service.in \
2401 units/systemd-udev-settle.service.in
2404 units/systemd-udevd.service \
2405 units/systemd-udev-trigger.service \
2406 units/systemd-udev-settle.service
2408 SOCKETS_TARGET_WANTS += \
2409 systemd-udevd-control.socket \
2410 systemd-udevd-kernel.socket
2411 SYSINIT_TARGET_WANTS += \
2412 systemd-udevd.service \
2413 systemd-udev-trigger.service
2415 rootbin_PROGRAMS += \
2418 rootlibexec_PROGRAMS += \
2421 noinst_LTLIBRARIES += \
2424 src/udev/keyboard-keys.txt:
2425 $(AM_V_at)$(MKDIR_P) $(dir $@)
2426 $(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/' > $@
2428 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2429 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2431 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2432 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2434 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2435 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2437 libudev_core_la_SOURCES = \
2439 src/udev/udev-event.c \
2440 src/udev/udev-watch.c \
2441 src/udev/udev-node.c \
2442 src/udev/udev-rules.c \
2443 src/udev/udev-ctrl.c \
2444 src/udev/udev-builtin.c \
2445 src/udev/udev-builtin-btrfs.c \
2446 src/udev/udev-builtin-hwdb.c \
2447 src/udev/udev-builtin-input_id.c \
2448 src/udev/udev-builtin-keyboard.c \
2449 src/udev/udev-builtin-net_id.c \
2450 src/udev/udev-builtin-net_setup_link.c \
2451 src/udev/udev-builtin-path_id.c \
2452 src/udev/udev-builtin-usb_id.c \
2453 src/udev/net/link-config.h \
2454 src/udev/net/link-config.c \
2455 src/udev/net/ethtool-util.h \
2456 src/udev/net/ethtool-util.c
2458 nodist_libudev_core_la_SOURCES = \
2459 src/udev/keyboard-keys-from-name.h \
2460 src/udev/keyboard-keys-to-name.h \
2461 src/udev/net/link-config-gperf.c
2464 $(nodist_libudev_core_la_SOURCES)
2467 src/udev/keyboard-keys-from-name.gperf \
2468 src/udev/keyboard-keys.txt \
2469 src/udev/net/link-config-gperf.c
2472 src/udev/net/link-config-gperf.gperf
2474 libudev_core_la_CFLAGS = \
2479 libudev_core_la_LIBADD = \
2480 libudev-internal.la \
2481 libsystemd-label.la \
2482 libsystemd-daemon-internal.la \
2483 libsystemd-rtnl.la \
2484 libsystemd-id128-internal.la \
2485 libsystemd-shared.la \
2489 libudev_core_la_CPPFLAGS = \
2491 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2494 libudev_core_la_SOURCES += \
2495 src/udev/udev-builtin-firmware.c
2497 dist_udevrules_DATA += \
2498 rules/50-firmware.rules
2502 libudev_core_la_SOURCES += \
2503 src/udev/udev-builtin-kmod.c
2505 dist_udevrules_DATA += \
2506 rules/80-drivers.rules
2510 libudev_core_la_SOURCES += \
2511 src/udev/udev-builtin-blkid.c
2515 libudev_core_la_SOURCES += \
2516 src/udev/udev-builtin-uaccess.c \
2517 src/login/logind-acl.c \
2518 src/login/sd-login.c \
2519 src/systemd/sd-login.h \
2520 src/login/login-shared.c \
2521 src/login/login-shared.h
2523 libudev_core_la_LIBADD += \
2527 systemd_udevd_SOURCES = \
2530 systemd_udevd_LDADD = \
2534 src/udev/udevadm.c \
2535 src/udev/udevadm-info.c \
2536 src/udev/udevadm-control.c \
2537 src/udev/udevadm-monitor.c \
2538 src/udev/udevadm-hwdb.c \
2539 src/udev/udevadm-settle.c \
2540 src/udev/udevadm-trigger.c \
2541 src/udev/udevadm-test.c \
2542 src/udev/udevadm-test-builtin.c
2547 # Update hwdb on installation. Do not bother if installing
2548 # in DESTDIR, since this is likely for packaging purposes.
2550 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2552 INSTALL_DATA_HOOKS += \
2556 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2558 # ------------------------------------------------------------------------------
2567 test_libudev_SOURCES = \
2568 src/test/test-libudev.c
2570 test_libudev_LDADD = \
2571 libsystemd-label.la \
2572 libudev-internal.la \
2573 libsystemd-shared.la
2575 test_udev_SOURCES = \
2576 src/test/test-udev.c
2585 test_udev_LDADD += \
2592 # packed sysfs test tree
2594 $(AM_V_at)$(MKDIR_P) $(dir $@)
2595 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2599 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2604 test/rules-test.sh \
2605 test/rule-syntax-check.py
2607 # ------------------------------------------------------------------------------
2609 src/udev/ata_id/ata_id.c
2612 libudev-internal.la \
2613 libsystemd-shared.la
2615 udevlibexec_PROGRAMS += \
2618 # ------------------------------------------------------------------------------
2619 cdrom_id_SOURCES = \
2620 src/udev/cdrom_id/cdrom_id.c
2623 libudev-internal.la \
2624 libsystemd-shared.la
2626 udevlibexec_PROGRAMS += \
2629 dist_udevrules_DATA += \
2630 rules/60-cdrom_id.rules
2632 # ------------------------------------------------------------------------------
2634 src/udev/collect/collect.c
2637 libudev-internal.la \
2638 libsystemd-shared.la
2640 udevlibexec_PROGRAMS += \
2643 # ------------------------------------------------------------------------------
2645 src/udev/scsi_id/scsi_id.c \
2646 src/udev/scsi_id/scsi_serial.c \
2647 src/udev/scsi_id/scsi.h \
2648 src/udev/scsi_id/scsi_id.h
2651 libudev-internal.la \
2652 libsystemd-shared.la
2654 udevlibexec_PROGRAMS += \
2658 src/udev/scsi_id/README
2660 # ------------------------------------------------------------------------------
2662 src/udev/v4l_id/v4l_id.c
2667 udevlibexec_PROGRAMS += \
2670 dist_udevrules_DATA += \
2671 rules/60-persistent-v4l.rules
2673 # ------------------------------------------------------------------------------
2674 accelerometer_SOURCES = \
2675 src/udev/accelerometer/accelerometer.c
2677 accelerometer_LDADD = \
2678 libudev-internal.la -lm \
2679 libsystemd-shared.la
2681 udevlibexec_PROGRAMS += \
2684 dist_udevrules_DATA += \
2685 rules/61-accelerometer.rules
2687 # ------------------------------------------------------------------------------
2694 libgudev_includedir = \
2695 $(includedir)/gudev-1.0/gudev
2697 libgudev_include_HEADERS = \
2699 src/gudev/gudevenums.h \
2700 src/gudev/gudevenumtypes.h \
2701 src/gudev/gudevtypes.h \
2702 src/gudev/gudevclient.h \
2703 src/gudev/gudevdevice.h \
2704 src/gudev/gudevenumerator.h
2706 lib_LTLIBRARIES += libgudev-1.0.la
2708 pkgconfiglib_DATA += \
2709 src/gudev/gudev-1.0.pc
2712 src/gudev/gudev-1.0.pc
2714 libgudev_1_0_la_SOURCES = \
2715 src/gudev/gudevenums.h \
2716 src/gudev/gudevenumtypes.h \
2717 src/gudev/gudevenumtypes.h\
2718 src/gudev/gudevtypes.h \
2719 src/gudev/gudevclient.h \
2720 src/gudev/gudevclient.c \
2721 src/gudev/gudevdevice.h \
2722 src/gudev/gudevdevice.c \
2723 src/gudev/gudevenumerator.h \
2724 src/gudev/gudevenumerator.c \
2725 src/gudev/gudevprivate.h
2727 nodist_libgudev_1_0_la_SOURCES = \
2728 src/gudev/gudevmarshal.h \
2729 src/gudev/gudevmarshal.c \
2730 src/gudev/gudevenumtypes.h \
2731 src/gudev/gudevenumtypes.c
2734 $(nodist_libgudev_1_0_la_SOURCES)
2736 libgudev_1_0_la_CPPFLAGS = \
2738 -I$(top_builddir)/src\
2739 -I$(top_srcdir)/src\
2740 -I$(top_builddir)/src/gudev \
2741 -I$(top_srcdir)/src/gudev \
2742 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2743 -D_GUDEV_COMPILATION \
2744 -DG_LOG_DOMAIN=\"GUdev\"
2746 libgudev_1_0_la_CFLAGS = \
2748 -fvisibility=default \
2751 libgudev_1_0_la_LIBADD = \
2755 libgudev_1_0_la_LDFLAGS = \
2757 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2758 -export-dynamic -no-undefined \
2759 -export-symbols-regex '^g_udev_.*'
2761 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2762 $(AM_V_at)$(MKDIR_P) $(dir $@)
2763 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2765 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2766 $(AM_V_at)$(MKDIR_P) $(dir $@)
2767 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2768 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2770 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2771 $(AM_V_at)$(MKDIR_P) $(dir $@)
2772 $(AM_V_GEN)glib-mkenums --template $^ > $@
2774 if HAVE_INTROSPECTION
2775 -include $(INTROSPECTION_MAKEFILE)
2777 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2779 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2781 src_gudev_GUdev_1_0_gir_CFLAGS = \
2784 -D_GUDEV_COMPILATION \
2785 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2786 -I$(top_srcdir)/src \
2787 -I$(top_builddir)/src \
2788 -I$(top_srcdir)/src/gudev \
2789 -I$(top_builddir)/src/gudev
2791 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2793 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2794 --pkg-export=gudev-1.0 \
2797 src_gudev_GUdev_1_0_gir_FILES = \
2799 src/gudev/gudevtypes.h \
2800 src/gudev/gudevenums.h \
2801 src/gudev/gudevenumtypes.h \
2802 src/gudev/gudevclient.h \
2803 src/gudev/gudevdevice.h \
2804 src/gudev/gudevenumerator.h \
2805 src/gudev/gudevclient.c \
2806 src/gudev/gudevdevice.c \
2807 src/gudev/gudevenumerator.c
2809 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2810 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2812 girdir = $(datadir)/gir-1.0
2814 src/gudev/GUdev-1.0.gir
2816 typelibsdir = $(libdir)/girepository-1.0
2818 src/gudev/GUdev-1.0.typelib
2820 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2821 endif # HAVE_INTROSPECTION
2823 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2824 libgudev-install-hook:
2825 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2827 libgudev-uninstall-hook:
2828 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2830 INSTALL_EXEC_HOOKS += libgudev-install-hook
2831 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2835 src/gudev/gudev-1.0.pc.in \
2836 src/gudev/gudevmarshal.list \
2837 src/gudev/gudevenumtypes.h.template \
2838 src/gudev/gudevenumtypes.c.template \
2839 src/gudev/gjs-example.js \
2840 src/gudev/seed-example-enum.js \
2841 src/gudev/seed-example.js
2843 # ------------------------------------------------------------------------------
2844 mtd_probe_SOURCES = \
2845 src/udev/mtd_probe/mtd_probe.c \
2846 src/udev/mtd_probe/mtd_probe.h \
2847 src/udev/mtd_probe/probe_smartmedia.c
2849 dist_udevrules_DATA += \
2850 rules/75-probe_mtd.rules
2852 udevlibexec_PROGRAMS += \
2855 # ------------------------------------------------------------------------------
2856 libsystemd_id128_la_SOURCES = \
2857 src/libsystemd-id128/libsystemd-id128.sym \
2858 src/libsystemd-id128/sd-id128.c
2860 libsystemd_id128_la_CFLAGS = \
2864 libsystemd_id128_la_LDFLAGS = \
2866 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2867 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2869 libsystemd_id128_la_LIBADD = \
2870 libsystemd-daemon-internal.la \
2871 libsystemd-shared.la
2873 libsystemd_id128_internal_la_SOURCES = \
2874 $(libsystemd_id128_la_SOURCES)
2876 test_id128_SOURCES = \
2877 src/test/test-id128.c
2879 test_id128_LDADD = \
2880 libsystemd-id128-internal.la \
2881 libsystemd-daemon-internal.la \
2882 libsystemd-shared.la
2887 pkginclude_HEADERS += \
2888 src/systemd/sd-id128.h
2890 lib_LTLIBRARIES += \
2893 noinst_LTLIBRARIES += \
2894 libsystemd-id128-internal.la
2896 pkgconfiglib_DATA += \
2897 src/libsystemd-id128/libsystemd-id128.pc
2899 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2900 libsystemd-id128-install-hook:
2901 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2903 libsystemd-id128-uninstall-hook:
2904 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2906 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2907 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2910 src/libsystemd-id128/libsystemd-id128.pc.in
2912 # ------------------------------------------------------------------------------
2914 rootlibexec_PROGRAMS += \
2917 systemd_activate_SOURCES = \
2918 src/activate/activate.c
2920 systemd_activate_LDADD = \
2921 libsystemd-label.la \
2922 libsystemd-daemon-internal.la \
2923 libsystemd-shared.la
2925 # ------------------------------------------------------------------------------
2926 systemd_journald_SOURCES = \
2927 src/journal/journald.c \
2928 src/journal/journald-server.h
2930 systemd_journald_LDADD = \
2931 libsystemd-journal-core.la
2933 systemd_cat_SOURCES = \
2936 systemd_cat_LDADD = \
2937 libsystemd-journal-core.la
2939 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2940 journalctl_CFLAGS = \
2943 journalctl_SOURCES = \
2944 src/journal/journalctl.c
2946 journalctl_LDADD = \
2947 libsystemd-journal-internal.la \
2948 libsystemd-id128-internal.la \
2949 libsystemd-logs.la \
2950 libsystemd-shared.la
2953 journalctl_LDADD += \
2958 journalctl_SOURCES += \
2959 src/journal/journal-qrcode.c \
2960 src/journal/journal-qrcode.h
2962 journalctl_CFLAGS += \
2965 journalctl_LDADD += \
2969 test_journal_SOURCES = \
2970 src/journal/test-journal.c
2972 test_journal_LDADD = \
2973 libsystemd-journal-core.la
2975 test_journal_send_SOURCES = \
2976 src/journal/test-journal-send.c
2978 test_journal_send_LDADD = \
2979 libsystemd-journal-core.la
2981 test_journal_syslog_SOURCES = \
2982 src/journal/test-journal-syslog.c
2984 test_journal_syslog_LDADD = \
2985 libsystemd-journal-core.la
2987 test_journal_match_SOURCES = \
2988 src/journal/test-journal-match.c
2990 test_journal_match_LDADD = \
2991 libsystemd-journal-core.la
2993 test_journal_enum_SOURCES = \
2994 src/journal/test-journal-enum.c
2996 test_journal_enum_LDADD = \
2997 libsystemd-journal-core.la
2999 test_journal_stream_SOURCES = \
3000 src/journal/test-journal-stream.c
3002 test_journal_stream_LDADD = \
3003 libsystemd-journal-core.la
3005 test_journal_flush_SOURCES = \
3006 src/journal/test-journal-flush.c
3008 test_journal_flush_LDADD = \
3009 libsystemd-journal-core.la
3011 test_journal_init_SOURCES = \
3012 src/journal/test-journal-init.c
3014 test_journal_init_LDADD = \
3015 libsystemd-journal-core.la
3017 test_journal_verify_SOURCES = \
3018 src/journal/test-journal-verify.c
3020 test_journal_verify_LDADD = \
3021 libsystemd-journal-core.la
3023 test_journal_interleaving_SOURCES = \
3024 src/journal/test-journal-interleaving.c
3026 test_journal_interleaving_LDADD = \
3027 libsystemd-journal-core.la
3029 test_mmap_cache_SOURCES = \
3030 src/journal/test-mmap-cache.c
3032 test_mmap_cache_LDADD = \
3033 libsystemd-journal-core.la
3035 test_catalog_SOURCES = \
3036 src/journal/test-catalog.c
3038 test_catalog_CFLAGS = \
3040 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3042 test_catalog_LDADD = \
3043 libsystemd-journal-core.la
3045 libsystemd_journal_la_SOURCES = \
3046 src/journal/libsystemd-journal.sym \
3047 src/journal/sd-journal.c \
3048 src/systemd/sd-journal.h \
3049 src/systemd/_sd-common.h \
3050 src/journal/journal-file.c \
3051 src/journal/journal-file.h \
3052 src/journal/journal-vacuum.c \
3053 src/journal/journal-vacuum.h \
3054 src/journal/journal-verify.c \
3055 src/journal/journal-verify.h \
3056 src/journal/lookup3.c \
3057 src/journal/lookup3.h \
3058 src/journal/journal-send.c \
3059 src/journal/journal-def.h \
3060 src/journal/compress.h \
3061 src/journal/catalog.c \
3062 src/journal/catalog.h \
3063 src/journal/mmap-cache.c \
3064 src/journal/mmap-cache.h
3066 libsystemd_journal_la_CFLAGS = \
3070 libsystemd_journal_la_LDFLAGS = \
3072 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
3073 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
3075 libsystemd_journal_la_LIBADD = \
3076 libsystemd-label.la \
3077 libsystemd-daemon-internal.la \
3078 libsystemd-id128-internal.la \
3079 libsystemd-shared.la
3081 libsystemd_journal_internal_la_SOURCES = \
3082 $(libsystemd_journal_la_SOURCES)
3084 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3085 libsystemd_journal_internal_la_CFLAGS = \
3088 libsystemd_journal_internal_la_LIBADD =
3091 libsystemd_journal_la_SOURCES += \
3092 src/journal/compress.c
3094 libsystemd_journal_la_CFLAGS += \
3097 libsystemd_journal_la_LIBADD += \
3100 libsystemd_journal_internal_la_CFLAGS += \
3103 libsystemd_journal_internal_la_LIBADD += \
3107 libsystemd_journal_core_la_SOURCES = \
3108 src/journal/journald-kmsg.c \
3109 src/journal/journald-kmsg.h \
3110 src/journal/journald-syslog.c \
3111 src/journal/journald-syslog.h \
3112 src/journal/journald-stream.c \
3113 src/journal/journald-stream.h \
3114 src/journal/journald-server.c \
3115 src/journal/journald-server.h \
3116 src/journal/journald-console.c \
3117 src/journal/journald-console.h \
3118 src/journal/journald-native.c \
3119 src/journal/journald-native.h \
3120 src/journal/journald-rate-limit.c \
3121 src/journal/journald-rate-limit.h \
3122 src/journal/journal-internal.h
3124 nodist_libsystemd_journal_core_la_SOURCES = \
3125 src/journal/journald-gperf.c
3127 libsystemd_journal_core_la_LIBADD = \
3128 libsystemd-journal-internal.la \
3129 libudev-internal.la \
3130 libsystemd-capability.la \
3131 libsystemd-label.la \
3132 libsystemd-daemon-internal.la \
3133 libsystemd-id128-internal.la \
3134 libsystemd-shared.la
3137 libsystemd_journal_core_la_LIBADD += \
3138 libsystemd-login-internal.la
3142 libsystemd_journal_core_la_LIBADD += \
3146 noinst_LTLIBRARIES += \
3147 libsystemd-journal-core.la
3150 libsystemd_journal_la_SOURCES += \
3151 src/journal/journal-authenticate.c \
3152 src/journal/journal-authenticate.h \
3153 src/journal/fsprg.c \
3156 libsystemd_journal_la_CFLAGS += \
3160 libsystemd_journal_la_LIBADD += \
3163 libsystemd_journal_internal_la_CFLAGS += \
3167 libsystemd_journal_internal_la_LIBADD += \
3171 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3172 # needed. Also, grant read access to new journal files to members of
3173 # "adm" and "wheel".
3174 libsystemd-journal-install-hook:
3175 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3176 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3177 -chown 0:0 $(DESTDIR)/var/log/journal
3178 -chmod 755 $(DESTDIR)/var/log/journal
3179 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3180 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3182 libsystemd-journal-uninstall-hook:
3183 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3185 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3186 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3188 # ------------------------------------------------------------------------------
3190 # Update catalog on installation. Do not bother if installing
3191 # in DESTDIR, since this is likely for packaging purposes.
3192 catalog-update-hook:
3193 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3195 INSTALL_DATA_HOOKS += \
3198 catalog-remove-hook:
3199 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3201 UNINSTALL_DATA_HOOKS += \
3210 test-journal-syslog \
3211 test-journal-match \
3212 test-journal-stream \
3214 test-journal-verify \
3215 test-journal-interleaving \
3216 test-journal-flush \
3220 pkginclude_HEADERS += \
3221 src/systemd/sd-journal.h \
3222 src/systemd/sd-messages.h \
3223 src/systemd/_sd-common.h
3225 lib_LTLIBRARIES += \
3226 libsystemd-journal.la
3228 noinst_LTLIBRARIES += \
3229 libsystemd-journal-internal.la
3231 rootlibexec_PROGRAMS += \
3234 rootbin_PROGRAMS += \
3240 dist_systemunit_DATA += \
3241 units/systemd-journald.socket
3243 nodist_systemunit_DATA += \
3244 units/systemd-journald.service \
3245 units/systemd-journal-flush.service
3247 dist_pkgsysconf_DATA += \
3248 src/journal/journald.conf
3250 pkgconfiglib_DATA += \
3251 src/journal/libsystemd-journal.pc
3253 dist_catalog_DATA = \
3254 catalog/systemd.fr.catalog \
3255 catalog/systemd.ru.catalog \
3256 catalog/systemd.it.catalog \
3257 catalog/systemd.catalog
3259 SOCKETS_TARGET_WANTS += \
3260 systemd-journald.socket
3261 SYSINIT_TARGET_WANTS += \
3262 systemd-journald.service \
3263 systemd-journal-flush.service
3266 src/journal/libsystemd-journal.pc.in \
3267 units/systemd-journald.service.in \
3268 units/systemd-journal-flush.service.in \
3269 src/journal/journald-gperf.gperf
3272 src/journal/journald-gperf.c
3274 # ------------------------------------------------------------------------------
3276 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3278 rootlibexec_PROGRAMS += \
3279 systemd-journal-gatewayd
3281 systemd_journal_gatewayd_SOURCES = \
3282 src/journal/journal-gatewayd.c \
3283 src/journal/microhttpd-util.h \
3284 src/journal/microhttpd-util.c
3286 systemd_journal_gatewayd_LDADD = \
3287 libsystemd-logs.la \
3288 libsystemd-journal-internal.la \
3289 libsystemd-id128-internal.la \
3290 libsystemd-daemon-internal.la \
3291 libsystemd-bus-internal.la \
3292 libsystemd-shared.la \
3295 systemd_journal_gatewayd_CFLAGS = \
3297 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3298 $(MICROHTTPD_CFLAGS)
3300 dist_systemunit_DATA += \
3301 units/systemd-journal-gatewayd.socket
3303 nodist_systemunit_DATA += \
3304 units/systemd-journal-gatewayd.service
3306 dist_gatewayddocumentroot_DATA = \
3307 src/journal/browse.html
3312 units/systemd-journal-gatewayd.service.in
3314 # ------------------------------------------------------------------------------
3316 systemd_socket_proxyd_SOURCES = \
3317 src/socket-proxy/socket-proxyd.c
3319 systemd_socket_proxyd_LDADD = \
3320 libsystemd-logs.la \
3321 libsystemd-bus-internal.la \
3322 libsystemd-journal-internal.la \
3323 libsystemd-id128-internal.la \
3324 libsystemd-daemon-internal.la \
3325 libsystemd-shared.la
3327 # ------------------------------------------------------------------------------
3329 systemd_coredump_SOURCES = \
3330 src/journal/coredump.c
3332 systemd_coredump_LDADD = \
3333 libsystemd-journal-internal.la \
3334 libsystemd-label.la \
3335 libsystemd-shared.la
3338 systemd_coredump_LDADD += \
3339 libsystemd-login-internal.la
3342 rootlibexec_PROGRAMS += \
3345 systemd_coredumpctl_SOURCES = \
3346 src/journal/coredumpctl.c
3348 systemd_coredumpctl_LDADD = \
3349 libsystemd-journal-internal.la \
3350 libsystemd-id128-internal.la \
3351 libsystemd-shared.la
3356 dist_bashcompletion_DATA += \
3357 shell-completion/bash/systemd-coredumpctl
3359 dist_zshcompletion_DATA += \
3360 shell-completion/zsh/_systemd-coredumpctl
3363 sysctl.d/50-coredump.conf
3366 sysctl.d/50-coredump.conf
3370 sysctl.d/50-coredump.conf.in
3372 # ------------------------------------------------------------------------------
3374 systemd_binfmt_SOURCES = \
3377 systemd_binfmt_LDADD = \
3378 libsystemd-shared.la
3380 rootlibexec_PROGRAMS += \
3383 dist_systemunit_DATA += \
3384 units/proc-sys-fs-binfmt_misc.automount \
3385 units/proc-sys-fs-binfmt_misc.mount
3387 nodist_systemunit_DATA += \
3388 units/systemd-binfmt.service
3391 $(prefix)/lib/binfmt.d \
3392 $(sysconfdir)/binfmt.d
3394 SYSINIT_TARGET_WANTS += \
3395 systemd-binfmt.service \
3396 proc-sys-fs-binfmt_misc.automount
3401 units/systemd-binfmt.service.in
3403 # ------------------------------------------------------------------------------
3405 systemd_vconsole_setup_SOURCES = \
3406 src/vconsole/vconsole-setup.c
3408 systemd_vconsole_setup_LDADD = \
3409 libsystemd-shared.la
3411 rootlibexec_PROGRAMS += \
3412 systemd-vconsole-setup
3414 nodist_systemunit_DATA += \
3415 units/systemd-vconsole-setup.service
3417 SYSINIT_TARGET_WANTS += \
3418 systemd-vconsole-setup.service
3422 units/systemd-vconsole-setup.service.in
3424 # ------------------------------------------------------------------------------
3426 systemd_readahead_SOURCES = \
3427 src/readahead/readahead.c \
3428 src/readahead/readahead-collect.c \
3429 src/readahead/readahead-replay.c \
3430 src/readahead/readahead-analyze.c \
3431 src/readahead/readahead-common.c \
3432 src/readahead/readahead-common.h
3434 systemd_readahead_LDADD = \
3435 libsystemd-daemon-internal.la \
3436 libudev-internal.la \
3437 libsystemd-shared.la
3440 src/readahead/sd-readahead.c \
3441 src/systemd/sd-readahead.h
3443 rootlibexec_PROGRAMS += \
3446 dist_systemunit_DATA += \
3447 units/systemd-readahead-drop.service \
3448 units/systemd-readahead-done.timer
3450 nodist_systemunit_DATA += \
3451 units/systemd-readahead-collect.service \
3452 units/systemd-readahead-replay.service \
3453 units/systemd-readahead-done.service
3458 units/systemd-readahead-collect.service.in \
3459 units/systemd-readahead-replay.service.in \
3460 units/systemd-readahead-done.service.in
3462 # ------------------------------------------------------------------------------
3464 systemd_bootchart_SOURCES = \
3465 src/bootchart/bootchart.c \
3466 src/bootchart/bootchart.h \
3467 src/bootchart/store.c \
3468 src/bootchart/store.h \
3469 src/bootchart/svg.c \
3472 systemd_bootchart_LDADD = \
3473 libsystemd-journal-internal.la \
3474 libsystemd-shared.la
3476 rootlibexec_PROGRAMS += \
3479 dist_pkgsysconf_DATA += \
3480 src/bootchart/bootchart.conf
3483 # ------------------------------------------------------------------------------
3484 if ENABLE_QUOTACHECK
3485 rootlibexec_PROGRAMS += \
3488 nodist_systemunit_DATA += \
3489 units/systemd-quotacheck.service
3491 systemd_quotacheck_SOURCES = \
3492 src/quotacheck/quotacheck.c
3494 systemd_quotacheck_LDADD = \
3495 libsystemd-shared.la
3499 units/systemd-quotacheck.service.in
3501 nodist_systemunit_DATA += \
3502 units/quotaon.service
3504 # ------------------------------------------------------------------------------
3505 if ENABLE_RANDOMSEED
3506 rootlibexec_PROGRAMS += \
3509 nodist_systemunit_DATA += \
3510 units/systemd-random-seed.service
3512 systemd_random_seed_SOURCES = \
3513 src/random-seed/random-seed.c
3515 systemd_random_seed_LDADD = \
3516 libsystemd-label.la \
3517 libsystemd-shared.la
3519 SYSINIT_TARGET_WANTS += \
3520 systemd-random-seed.service
3525 units/systemd-random-seed.service.in
3527 # ------------------------------------------------------------------------------
3529 rootlibexec_PROGRAMS += \
3532 nodist_systemunit_DATA += \
3533 units/systemd-backlight@.service
3535 systemd_backlight_SOURCES = \
3536 src/backlight/backlight.c
3538 systemd_backlight_LDADD = \
3539 libsystemd-label.la \
3540 libudev-internal.la \
3541 libsystemd-shared.la
3545 units/systemd-backlight@.service.in
3547 # ------------------------------------------------------------------------------
3549 rootlibexec_PROGRAMS += \
3552 nodist_systemunit_DATA += \
3553 units/systemd-rfkill@.service
3555 systemd_rfkill_SOURCES = \
3558 systemd_rfkill_LDADD = \
3559 libsystemd-label.la \
3560 libudev-internal.la \
3561 libsystemd-shared.la
3565 units/systemd-rfkill@.service.in
3567 # ------------------------------------------------------------------------------
3568 if HAVE_LIBCRYPTSETUP
3569 rootlibexec_PROGRAMS += \
3572 systemgenerator_PROGRAMS += \
3573 systemd-cryptsetup-generator
3575 dist_systemunit_DATA += \
3576 units/cryptsetup.target
3578 systemd_cryptsetup_SOURCES = \
3579 src/cryptsetup/cryptsetup.c
3581 systemd_cryptsetup_CFLAGS = \
3583 $(LIBCRYPTSETUP_CFLAGS)
3585 systemd_cryptsetup_LDADD = \
3586 libsystemd-label.la \
3587 libudev-internal.la \
3588 libsystemd-shared.la \
3589 $(LIBCRYPTSETUP_LIBS)
3591 systemd_cryptsetup_generator_SOURCES = \
3592 src/cryptsetup/cryptsetup-generator.c
3594 systemd_cryptsetup_generator_LDADD = \
3595 libsystemd-label.la \
3596 libsystemd-shared.la
3598 SYSINIT_TARGET_WANTS += \
3603 # ------------------------------------------------------------------------------
3605 systemd_hostnamed_SOURCES = \
3606 src/hostname/hostnamed.c
3608 systemd_hostnamed_LDADD = \
3609 libsystemd-label.la \
3610 libsystemd-bus-internal.la \
3611 libsystemd-id128-internal.la \
3612 libsystemd-daemon-internal.la \
3613 libsystemd-shared.la
3615 rootlibexec_PROGRAMS += \
3618 nodist_systemunit_DATA += \
3619 units/systemd-hostnamed.service
3621 dist_systemunit_DATA += \
3622 units/org.freedesktop.hostname1.busname
3624 dist_dbuspolicy_DATA += \
3625 src/hostname/org.freedesktop.hostname1.conf
3627 dist_dbussystemservice_DATA += \
3628 src/hostname/org.freedesktop.hostname1.service
3630 polkitpolicy_files += \
3631 src/hostname/org.freedesktop.hostname1.policy
3633 SYSTEM_UNIT_ALIASES += \
3634 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3636 BUSNAMES_TARGET_WANTS += \
3637 org.freedesktop.hostname1.busname
3639 hostnamectl_SOURCES = \
3640 src/hostname/hostnamectl.c
3642 hostnamectl_LDADD = \
3643 libsystemd-bus-internal.la \
3644 libsystemd-id128-internal.la \
3645 libsystemd-daemon-internal.la \
3646 libsystemd-shared.la
3651 dist_bashcompletion_DATA += \
3652 shell-completion/bash/hostnamectl
3654 dist_zshcompletion_DATA += \
3655 shell-completion/zsh/_hostnamectl
3659 polkitpolicy_in_files += \
3660 src/hostname/org.freedesktop.hostname1.policy.in
3663 units/systemd-hostnamed.service.in
3665 # ------------------------------------------------------------------------------
3667 systemd_localed_SOURCES = \
3668 src/locale/localed.c
3670 systemd_localed_LDADD = \
3671 libsystemd-label.la \
3672 libsystemd-bus-internal.la \
3673 libsystemd-id128-internal.la \
3674 libsystemd-daemon-internal.la \
3675 libsystemd-shared.la
3677 nodist_systemunit_DATA += \
3678 units/systemd-localed.service
3680 dist_systemunit_DATA += \
3681 units/org.freedesktop.locale1.busname
3683 rootlibexec_PROGRAMS += \
3686 dist_dbuspolicy_DATA += \
3687 src/locale/org.freedesktop.locale1.conf
3689 dist_dbussystemservice_DATA += \
3690 src/locale/org.freedesktop.locale1.service
3692 polkitpolicy_files += \
3693 src/locale/org.freedesktop.locale1.policy
3695 SYSTEM_UNIT_ALIASES += \
3696 systemd-localed.service dbus-org.freedesktop.locale1.service
3698 BUSNAMES_TARGET_WANTS += \
3699 org.freedesktop.locale1.busname
3701 dist_pkgdata_DATA += \
3702 src/locale/kbd-model-map
3704 dist_noinst_SCRIPT = \
3705 src/locale/generate-kbd-model-map
3707 update-kbd-model-map: src/locale/generate-kbd-model-map
3708 $PYTHON $< > src/locale/kbd-model-map
3710 localectl_SOURCES = \
3711 src/locale/localectl.c
3714 libsystemd-bus-internal.la \
3715 libsystemd-id128-internal.la \
3716 libsystemd-daemon-internal.la \
3717 libsystemd-shared.la
3722 dist_bashcompletion_DATA += \
3723 shell-completion/bash/localectl
3725 dist_zshcompletion_DATA += \
3726 shell-completion/zsh/_localectl
3730 polkitpolicy_in_files += \
3731 src/locale/org.freedesktop.locale1.policy.in
3734 units/systemd-localed.service.in
3736 # ------------------------------------------------------------------------------
3738 systemd_timedated_SOURCES = \
3739 src/timedate/timedated.c
3741 systemd_timedated_LDADD = \
3742 libsystemd-label.la \
3743 libsystemd-bus-internal.la \
3744 libsystemd-id128-internal.la \
3745 libsystemd-daemon-internal.la \
3746 libsystemd-shared.la
3748 rootlibexec_PROGRAMS += \
3751 dist_dbussystemservice_DATA += \
3752 src/timedate/org.freedesktop.timedate1.service
3754 dist_dbuspolicy_DATA += \
3755 src/timedate/org.freedesktop.timedate1.conf
3757 nodist_systemunit_DATA += \
3758 units/systemd-timedated.service
3760 dist_systemunit_DATA += \
3761 units/org.freedesktop.timedate1.busname
3763 polkitpolicy_files += \
3764 src/timedate/org.freedesktop.timedate1.policy
3767 $(prefix)/lib/systemd/ntp-units.d \
3768 $(sysconfdir)/systemd/ntp-units.d
3770 SYSTEM_UNIT_ALIASES += \
3771 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3773 BUSNAMES_TARGET_WANTS += \
3774 org.freedesktop.timedate1.busname
3776 timedatectl_SOURCES = \
3777 src/timedate/timedatectl.c
3779 timedatectl_LDADD = \
3780 libsystemd-bus-internal.la \
3781 libsystemd-id128-internal.la \
3782 libsystemd-daemon-internal.la \
3783 libsystemd-shared.la
3788 dist_bashcompletion_DATA += \
3789 shell-completion/bash/timedatectl
3791 dist_zshcompletion_DATA += \
3792 shell-completion/zsh/_timedatectl
3795 polkitpolicy_in_files += \
3796 src/timedate/org.freedesktop.timedate1.policy.in
3799 units/systemd-timedated.service.in
3801 # ------------------------------------------------------------------------------
3803 libnss_myhostname_la_SOURCES = \
3804 src/nss-myhostname/nss-myhostname.c \
3805 src/nss-myhostname/ifconf.h \
3806 src/nss-myhostname/netlink.c
3808 libnss_myhostname_la_LDFLAGS = \
3816 lib_LTLIBRARIES += \
3817 libnss_myhostname.la
3820 # ------------------------------------------------------------------------------
3822 systemd_machined_SOURCES = \
3823 src/machine/machined.c \
3824 src/machine/machined.h
3826 systemd_machined_LDADD = \
3827 libsystemd-machine-core.la
3829 rootlibexec_PROGRAMS += \
3832 libsystemd_machine_core_la_SOURCES = \
3833 src/machine/machined-dbus.c \
3834 src/machine/machine.c \
3835 src/machine/machine.h \
3836 src/machine/machine-dbus.c
3838 libsystemd_machine_core_la_LIBADD = \
3839 libsystemd-label.la \
3840 libsystemd-daemon-internal.la \
3841 libsystemd-bus-internal.la \
3842 libsystemd-id128-internal.la \
3843 libudev-internal.la \
3844 libsystemd-shared.la
3846 noinst_LTLIBRARIES += \
3847 libsystemd-machine-core.la
3849 machinectl_SOURCES = \
3850 src/machine/machinectl.c
3852 machinectl_LDADD = \
3853 libsystemd-bus-internal.la \
3854 libsystemd-id128-internal.la \
3855 libsystemd-daemon-internal.la \
3856 libsystemd-shared.la
3858 rootbin_PROGRAMS += \
3861 test_machine_tables_SOURCES = \
3862 src/machine/test-machine-tables.c
3864 test_machine_tables_LDADD = \
3865 libsystemd-machine-core.la
3870 nodist_systemunit_DATA += \
3871 units/systemd-machined.service
3873 dist_systemunit_DATA += \
3874 units/machine.slice \
3875 units/org.freedesktop.machine1.busname
3877 dist_dbussystemservice_DATA += \
3878 src/machine/org.freedesktop.machine1.service
3880 dist_dbuspolicy_DATA += \
3881 src/machine/org.freedesktop.machine1.conf
3883 dist_zshcompletion_DATA += \
3884 shell-completion/zsh/_machinectl
3886 SYSTEM_UNIT_ALIASES += \
3887 systemd-machined.service dbus-org.freedesktop.machine1.service
3889 BUSNAMES_TARGET_WANTS += \
3890 org.freedesktop.machine1.busname
3893 units/systemd-machined.service.in
3897 # ------------------------------------------------------------------------------
3899 rootlibexec_PROGRAMS += \
3902 systemd_networkd_SOURCES = \
3903 src/network/networkd.h \
3904 src/network/networkd.c \
3905 src/network/networkd-link.c \
3906 src/network/networkd-bridge.c \
3907 src/network/networkd-network.c \
3908 src/network/networkd-address.c \
3909 src/network/networkd-route.c \
3910 src/network/networkd-manager.c
3912 nodist_systemd_networkd_SOURCES = \
3913 src/network/networkd-gperf.c
3915 systemd_networkd_LDADD = \
3916 libudev-internal.la \
3917 libsystemd-daemon-internal.la \
3918 libsystemd-bus-internal.la \
3919 libsystemd-id128-internal.la \
3920 libsystemd-rtnl.la \
3921 libsystemd-shared.la
3923 nodist_systemunit_DATA += \
3924 units/systemd-networkd.service
3926 MULTI_USER_TARGET_WANTS += \
3927 systemd-networkd.service
3929 test_network_SOURCES = \
3930 src/network/test-network.c \
3931 src/network/networkd.h \
3932 src/network/networkd-link.c \
3933 src/network/networkd-bridge.c \
3934 src/network/networkd-network.c \
3935 src/network/networkd-address.c \
3936 src/network/networkd-route.c \
3937 src/network/networkd-manager.c \
3938 src/network/networkd-gperf.c
3940 test_network_LDADD = \
3941 libudev-internal.la \
3942 libsystemd-bus-internal.la \
3943 libsystemd-id128-internal.la \
3944 libsystemd-rtnl.la \
3945 libsystemd-shared.la
3947 tests += test-network
3950 src/network/networkd-gperf.gperf \
3951 units/systemd-networkd.service.in
3954 src/network/networkd-gperf.c
3957 # ------------------------------------------------------------------------------
3959 systemd_logind_SOURCES = \
3960 src/login/logind.c \
3963 nodist_systemd_logind_SOURCES = \
3964 src/login/logind-gperf.c
3966 systemd_logind_LDADD = \
3967 libsystemd-logind-core.la
3969 libsystemd_logind_core_la_SOURCES = \
3970 src/login/logind-core.c \
3971 src/login/logind-device.c \
3972 src/login/logind-device.h \
3973 src/login/logind-button.c \
3974 src/login/logind-button.h \
3975 src/login/logind-action.c \
3976 src/login/logind-action.h \
3977 src/login/logind-seat.c \
3978 src/login/logind-seat.h \
3979 src/login/logind-session.c \
3980 src/login/logind-session.h \
3981 src/login/logind-session-device.c \
3982 src/login/logind-session-device.h \
3983 src/login/logind-user.c \
3984 src/login/logind-user.h \
3985 src/login/logind-inhibit.c \
3986 src/login/logind-inhibit.h \
3987 src/login/logind-dbus.c \
3988 src/login/logind-session-dbus.c \
3989 src/login/logind-seat-dbus.c \
3990 src/login/logind-user-dbus.c \
3991 src/login/logind-acl.h \
3992 src/login/login-shared.c \
3993 src/login/login-shared.h
3995 libsystemd_logind_core_la_LIBADD = \
3996 libsystemd-label.la \
3997 libsystemd-capability.la \
3998 libsystemd-daemon-internal.la \
3999 libsystemd-id128-internal.la \
4000 libsystemd-bus-internal.la \
4001 libudev-internal.la \
4002 libsystemd-shared.la
4005 libsystemd_logind_core_la_SOURCES += \
4006 src/login/logind-acl.c
4008 libsystemd_logind_core_la_LIBADD += \
4012 noinst_LTLIBRARIES += \
4013 libsystemd-logind-core.la
4015 systemd_user_sessions_SOURCES = \
4016 src/login/user-sessions.c
4018 systemd_user_sessions_LDADD = \
4019 libsystemd-shared.la
4021 rootlibexec_PROGRAMS += \
4023 systemd-user-sessions
4025 loginctl_SOURCES = \
4026 src/login/loginctl.c \
4027 src/login/sysfs-show.c
4030 libsystemd-bus-internal.la \
4031 libudev-internal.la \
4032 libsystemd-shared.la \
4033 libsystemd-id128-internal.la \
4034 libsystemd-daemon-internal.la
4036 rootbin_PROGRAMS += \
4039 dist_bashcompletion_DATA += \
4040 shell-completion/bash/loginctl
4042 dist_zshcompletion_DATA += \
4043 shell-completion/zsh/_loginctl \
4044 shell-completion/zsh/_systemd-inhibit
4046 systemd_inhibit_SOURCES = \
4049 systemd_inhibit_LDADD = \
4050 libsystemd-bus-internal.la \
4051 libsystemd-id128-internal.la \
4052 libsystemd-daemon-internal.la \
4053 libsystemd-shared.la
4055 rootbin_PROGRAMS += \
4058 test_login_SOURCES = \
4059 src/login/test-login.c
4061 test_login_LDADD = \
4062 libsystemd-login-internal.la \
4063 libsystemd-shared.la
4065 test_login_shared_SOURCES = \
4066 src/login/test-login-shared.c
4068 test_login_shared_LDADD = \
4069 libsystemd-login-internal.la \
4070 libsystemd-shared.la
4072 test_inhibit_SOURCES = \
4073 src/login/test-inhibit.c
4075 test_inhibit_LDADD = \
4076 libsystemd-bus-internal.la \
4077 libsystemd-daemon-internal.la \
4078 libsystemd-id128-internal.la \
4079 libsystemd-shared.la
4081 test_login_tables_SOURCES = \
4082 src/login/test-login-tables.c
4084 test_login_tables_LDADD = \
4085 libsystemd-logind-core.la
4095 libsystemd_login_la_SOURCES = \
4096 src/login/libsystemd-login.sym \
4097 src/login/sd-login.c \
4098 src/systemd/sd-login.h \
4099 src/login/login-shared.c \
4100 src/login/login-shared.h
4102 libsystemd_login_la_CFLAGS = \
4106 libsystemd_login_la_LDFLAGS = \
4108 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4109 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
4111 libsystemd_login_la_LIBADD = \
4112 libsystemd-daemon-internal.la \
4113 libsystemd-shared.la
4115 libsystemd_login_internal_la_SOURCES = \
4116 $(libsystemd_login_la_SOURCES)
4119 pam_systemd_la_SOURCES = \
4120 src/login/pam-module.c
4122 pam_systemd_la_CFLAGS = \
4127 pam_systemd_la_LDFLAGS = \
4133 -export-symbols-regex '^pam_sm_.*'
4135 pam_systemd_la_LIBADD = \
4136 libsystemd-capability.la \
4137 libsystemd-bus-internal.la \
4138 libsystemd-id128-internal.la \
4139 libsystemd-daemon-internal.la \
4140 libsystemd-shared.la \
4143 pamlib_LTLIBRARIES = \
4146 dist_pamconf_DATA = \
4147 src/login/systemd-user
4150 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4151 libsystemd-login-install-hook:
4152 libname=libsystemd-login.so && $(move-to-rootlibdir)
4154 libsystemd-login-uninstall-hook:
4155 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4157 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
4158 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
4160 nodist_systemunit_DATA += \
4161 units/systemd-logind.service \
4162 units/systemd-user-sessions.service
4164 dist_systemunit_DATA += \
4166 units/org.freedesktop.login1.busname
4168 dist_dbussystemservice_DATA += \
4169 src/login/org.freedesktop.login1.service
4171 dist_dbuspolicy_DATA += \
4172 src/login/org.freedesktop.login1.conf
4174 dist_pkgsysconf_DATA += \
4175 src/login/logind.conf
4177 pkginclude_HEADERS += \
4178 src/systemd/sd-login.h
4180 lib_LTLIBRARIES += \
4183 noinst_LTLIBRARIES += \
4184 libsystemd-login-internal.la
4186 pkgconfiglib_DATA += \
4187 src/login/libsystemd-login.pc
4189 polkitpolicy_files += \
4190 src/login/org.freedesktop.login1.policy
4195 MULTI_USER_TARGET_WANTS += \
4196 systemd-logind.service \
4197 systemd-user-sessions.service
4199 SYSTEM_UNIT_ALIASES += \
4200 systemd-logind.service dbus-org.freedesktop.login1.service
4202 BUSNAMES_TARGET_WANTS += \
4203 org.freedesktop.login1.busname
4205 if ENABLE_MULTI_SEAT_X
4207 systemd_multi_seat_x_SOURCES = \
4208 src/login/multi-seat-x.c
4210 systemd_multi_seat_x_LDADD = \
4211 libsystemd-label.la \
4212 libsystemd-shared.la
4214 rootlibexec_PROGRAMS += \
4215 systemd-multi-seat-x
4219 dist_udevrules_DATA += \
4220 src/login/70-uaccess.rules \
4221 src/login/70-power-switch.rules
4223 nodist_udevrules_DATA += \
4224 src/login/71-seat.rules \
4225 src/login/73-seat-late.rules
4228 src/login/logind-gperf.c \
4229 src/login/71-seat.rules \
4230 src/login/73-seat-late.rules
4233 polkitpolicy_in_files += \
4234 src/login/org.freedesktop.login1.policy.in
4237 src/login/logind-gperf.gperf \
4238 src/login/libsystemd-login.pc.in \
4239 src/login/71-seat.rules.in \
4240 src/login/73-seat-late.rules.in \
4241 units/systemd-logind.service.in \
4242 units/systemd-user-sessions.service.in
4244 # ------------------------------------------------------------------------------
4245 if HAVE_PYTHON_DEVEL
4246 pkgpyexec_LTLIBRARIES = \
4253 _journal_la_SOURCES = \
4254 src/python-systemd/_journal.c
4256 _journal_la_CFLAGS = \
4258 -fvisibility=default \
4259 $(PYTHON_DEVEL_CFLAGS)
4261 _journal_la_LDFLAGS = \
4267 _journal_la_LIBADD = \
4268 $(PYTHON_DEVEL_LIBS) \
4269 libsystemd-journal.la
4271 id128_la_SOURCES = \
4272 src/python-systemd/id128.c \
4273 src/python-systemd/id128-constants.h \
4274 src/python-systemd/pyutil.c \
4275 src/python-systemd/pyutil.h
4279 -fvisibility=default \
4280 $(PYTHON_DEVEL_CFLAGS) \
4281 -I$(top_builddir)/src/python-systemd
4283 id128_la_LDFLAGS = \
4290 $(PYTHON_DEVEL_LIBS) \
4293 _daemon_la_SOURCES = \
4294 src/python-systemd/_daemon.c \
4295 src/python-systemd/pyutil.c \
4296 src/python-systemd/pyutil.h
4298 _daemon_la_CFLAGS = \
4300 -fvisibility=default \
4301 $(PYTHON_DEVEL_CFLAGS) \
4302 -I$(top_builddir)/src/python-systemd
4304 _daemon_la_LDFLAGS = \
4310 _daemon_la_LIBADD = \
4311 $(PYTHON_DEVEL_LIBS) \
4312 libsystemd-daemon.la
4314 _reader_la_SOURCES = \
4315 src/python-systemd/_reader.c \
4316 src/python-systemd/pyutil.c \
4317 src/python-systemd/pyutil.h
4319 _reader_la_CFLAGS = \
4321 -fvisibility=default \
4322 $(PYTHON_DEVEL_CFLAGS)
4324 _reader_la_LDFLAGS = \
4330 _reader_la_LIBADD = \
4331 $(PYTHON_DEVEL_LIBS) \
4332 libsystemd-journal.la \
4333 libsystemd-id128.la \
4334 libsystemd-daemon-internal.la \
4335 libsystemd-shared.la
4337 login_la_SOURCES = \
4338 src/python-systemd/login.c \
4339 src/python-systemd/pyutil.c \
4340 src/python-systemd/pyutil.h
4344 -fvisibility=default \
4345 $(PYTHON_DEVEL_CFLAGS)
4347 login_la_LDFLAGS = \
4354 $(PYTHON_DEVEL_LIBS) \
4355 libsystemd-journal.la \
4356 libsystemd-login.la \
4357 libsystemd-daemon-internal.la \
4358 libsystemd-shared.la
4360 dist_pkgpyexec_PYTHON = \
4361 src/python-systemd/journal.py \
4362 src/python-systemd/daemon.py \
4363 src/python-systemd/__init__.py
4365 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4366 $(AM_V_at)$(MKDIR_P) $(dir $@)
4367 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4370 src/python-systemd/id128-constants.h
4372 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4374 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4375 $(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/
4376 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4379 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4380 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4383 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4384 $(MAKE) DESTDIR="$$dir" install && \
4385 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4390 CLEAN_LOCAL_HOOKS += clean-sphinx
4393 -rm -rf docs/html/python-systemd/
4395 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4397 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4398 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4400 # ------------------------------------------------------------------------------
4402 '|rootlibexecdir=$(rootlibexecdir)|' \
4403 '|rootbindir=$(rootbindir)|' \
4404 '|bindir=$(bindir)|' \
4405 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4406 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4407 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4408 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4409 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4410 '|pkgdatadir=$(pkgdatadir)|' \
4411 '|systemunitdir=$(systemunitdir)|' \
4412 '|userunitdir=$(userunitdir)|' \
4413 '|systempresetdir=$(systempresetdir)|' \
4414 '|userpresetdir=$(userpresetdir)|' \
4415 '|udevhwdbdir=$(udevhwdbdir)|' \
4416 '|udevrulesdir=$(udevrulesdir)|' \
4417 '|catalogdir=$(catalogdir)|' \
4418 '|tmpfilesdir=$(tmpfilesdir)|' \
4419 '|sysctldir=$(sysctldir)|' \
4420 '|systemgeneratordir=$(systemgeneratordir)|' \
4421 '|usergeneratordir=$(usergeneratordir)|' \
4422 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4423 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4424 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4425 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4426 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4427 '|prefix=$(prefix)|' \
4428 '|exec_prefix=$(exec_prefix)|' \
4429 '|libdir=$(libdir)|' \
4430 '|includedir=$(includedir)|' \
4431 '|VERSION=$(VERSION)|' \
4432 '|rootprefix=$(rootprefix)|' \
4433 '|udevlibexecdir=$(udevlibexecdir)|' \
4434 '|SUSHELL=$(SUSHELL)|' \
4435 '|DEBUGTTY=$(DEBUGTTY)|' \
4438 '|MKDIR_P=$(MKDIR_P)|' \
4439 '|QUOTAON=$(QUOTAON)|' \
4440 '|QUOTACHECK=$(QUOTACHECK)|' \
4441 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4442 '|VARLOGDIR=$(varlogdir)|' \
4443 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4444 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4445 '|PYTHON=$(PYTHON)|' \
4446 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4449 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4450 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4459 sysctl.d/%: sysctl.d/%.in
4465 src/core/macros.%: src/core/macros.%.in
4468 src/%.policy.in: src/%.policy.in.in
4476 $(AM_V_GEN)chmod +x $@
4478 src/%.c: src/%.gperf
4479 $(AM_V_at)$(MKDIR_P) $(dir $@)
4480 $(AM_V_GPERF)$(GPERF) < $< > $@
4483 $(AM_V_at)$(MKDIR_P) $(dir $@)
4484 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4487 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4488 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4490 units/user/%: units/%.m4
4491 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4492 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4495 nodist_polkitpolicy_DATA = \
4496 $(polkitpolicy_files) \
4497 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4501 $(polkitpolicy_in_files) \
4502 $(polkitpolicy_in_in_files)
4505 $(nodist_systemunit_DATA) \
4506 $(nodist_userunit_DATA) \
4507 $(pkgconfigdata_DATA) \
4508 $(pkgconfiglib_DATA) \
4509 $(nodist_polkitpolicy_DATA)
4511 # ------------------------------------------------------------------------------
4513 man/custom-entities.ent:
4514 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4515 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4516 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4520 man/custom-entities.ent
4524 --stringparam man.output.quietly 1 \
4525 --stringparam funcsynopsis.style ansi \
4526 --stringparam man.authors.section.enabled 0 \
4527 --stringparam man.copyright.section.enabled 0 \
4528 --stringparam systemd.version $(VERSION) \
4529 --path '$(builddir)/man:$(srcdir)/man'
4531 XSLTPROC_PROCESS_MAN = \
4532 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4534 XSLTPROC_PROCESS_HTML = \
4535 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4537 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4538 $(XSLTPROC_PROCESS_MAN)
4540 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4541 $(XSLTPROC_PROCESS_MAN)
4543 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4544 $(XSLTPROC_PROCESS_MAN)
4546 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4547 $(XSLTPROC_PROCESS_MAN)
4549 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4550 $(XSLTPROC_PROCESS_MAN)
4552 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4553 $(XSLTPROC_PROCESS_HTML)
4556 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4562 man/custom-html.xsl \
4565 # ------------------------------------------------------------------------------
4568 docs/sysvinit/README
4573 docs/sysvinit/README: docs/sysvinit/README.in
4576 docs/var-log/README: docs/var-log/README.in
4580 docs/sysvinit/README \
4585 docs/sysvinit/README.in \
4586 docs/var-log/README.in
4588 SOCKETS_TARGET_WANTS += \
4589 systemd-initctl.socket \
4590 systemd-shutdownd.socket
4593 RUNLEVEL1_TARGET_WANTS += \
4594 systemd-update-utmp-runlevel.service
4595 RUNLEVEL2_TARGET_WANTS += \
4596 systemd-update-utmp-runlevel.service
4597 RUNLEVEL3_TARGET_WANTS += \
4598 systemd-update-utmp-runlevel.service
4599 RUNLEVEL4_TARGET_WANTS += \
4600 systemd-update-utmp-runlevel.service
4601 RUNLEVEL5_TARGET_WANTS += \
4602 systemd-update-utmp-runlevel.service
4604 SYSINIT_TARGET_WANTS += \
4605 systemd-update-utmp.service
4606 LOCAL_FS_TARGET_WANTS += \
4607 systemd-remount-fs.service \
4609 MULTI_USER_TARGET_WANTS += \
4611 systemd-ask-password-wall.path
4612 SYSINIT_TARGET_WANTS += \
4613 dev-hugepages.mount \
4615 sys-kernel-config.mount \
4616 sys-kernel-debug.mount \
4617 sys-fs-fuse-connections.mount \
4618 systemd-sysctl.service \
4619 systemd-ask-password-console.path
4622 SYSTEM_UNIT_ALIASES += \
4623 poweroff.target runlevel0.target \
4624 rescue.target runlevel1.target \
4625 multi-user.target runlevel2.target \
4626 multi-user.target runlevel3.target \
4627 multi-user.target runlevel4.target \
4628 graphical.target runlevel5.target \
4629 reboot.target runlevel6.target
4632 SYSTEM_UNIT_ALIASES += \
4633 graphical.target default.target \
4634 reboot.target ctrl-alt-del.target \
4635 getty@.service autovt@.service
4637 USER_UNIT_ALIASES += \
4638 $(systemunitdir)/shutdown.target shutdown.target \
4639 $(systemunitdir)/sockets.target sockets.target \
4640 $(systemunitdir)/busnames.target busnames.target \
4641 $(systemunitdir)/timers.target timers.target \
4642 $(systemunitdir)/paths.target paths.target \
4643 $(systemunitdir)/bluetooth.target bluetooth.target \
4644 $(systemunitdir)/printer.target printer.target \
4645 $(systemunitdir)/sound.target sound.target \
4646 $(systemunitdir)/smartcard.target smartcard.target
4648 GENERAL_ALIASES += \
4649 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4650 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4651 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4652 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4656 $(systemunitdir)/runlevel1.target.wants \
4657 $(systemunitdir)/runlevel2.target.wants \
4658 $(systemunitdir)/runlevel3.target.wants \
4659 $(systemunitdir)/runlevel4.target.wants \
4660 $(systemunitdir)/runlevel5.target.wants
4664 $(prefix)/lib/modules-load.d \
4665 $(sysconfdir)/modules-load.d \
4666 $(prefix)/lib/systemd/network \
4667 $(sysconfdir)/systemd/network \
4668 $(prefix)/lib/sysctl.d \
4669 $(sysconfdir)/sysctl.d \
4670 $(prefix)/lib/kernel/install.d \
4671 $(sysconfdir)/kernel/install.d \
4672 $(systemshutdowndir) \
4674 $(systemgeneratordir) \
4675 $(usergeneratordir) \
4678 $(pkgsysconfdir)/system \
4679 $(pkgsysconfdir)/system/multi-user.target.wants \
4680 $(pkgsysconfdir)/system/getty.target.wants \
4681 $(pkgsysconfdir)/user \
4682 $(dbussessionservicedir) \
4683 $(sysconfdir)/xdg/systemd
4685 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4687 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4689 install-data-hook: $(INSTALL_DATA_HOOKS)
4691 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4693 clean-local: $(CLEAN_LOCAL_HOOKS)
4694 rm -rf $(abs_srcdir)/install-tree
4695 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4696 $(abs_srcdir)/hwdb/iab.txt
4698 DISTCHECK_CONFIGURE_FLAGS = \
4699 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4700 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4701 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4702 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4703 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4704 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4705 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4706 --with-rootprefix=$$dc_install_base \
4707 --disable-split-usr \
4711 DISTCHECK_CONFIGURE_FLAGS += \
4712 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4713 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4715 DISTCHECK_CONFIGURE_FLAGS += \
4716 --with-sysvinit-path= \
4717 --with-sysvrcnd-path=
4721 DISTCHECK_CONFIGURE_FLAGS += \
4726 ( cd $(top_srcdir)/hwdb && \
4727 wget -N http://www.linux-usb.org/usb.ids \
4728 http://pci-ids.ucw.cz/v2.2/pci.ids \
4729 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4730 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4734 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4735 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4737 upload: all distcheck
4738 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4739 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4740 scp man/*.html tango:public/systemd-man/
4742 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4743 doc-sync: all destdir-sphinx
4744 gtkdoc-rebase --html-dir=docs/libudev/html --online
4745 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4746 gtkdoc-rebase --html-dir=docs/gudev/html --online
4747 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4748 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4749 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4752 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4755 rm -rf $(abs_srcdir)/install-tree
4756 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4757 tree $(abs_srcdir)/install-tree
4759 # Let's run all tests of the test suite, but under valgrind. Let's
4760 # exclude the one perl script we have in there
4761 valgrind-tests: $(TESTS)
4762 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
4763 echo "Running $$f"; \
4764 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=4194400 --error-exitcode=55 $(builddir)/$$f ; \
4768 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
4770 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
4771 $(AM_V_GEN)cat $^ > $@
4773 check-api-docs: exported man
4774 $(AM_V_GEN)for symbol in `cat exported` ; do \
4775 if test -f $(builddir)/man/$$symbol.html ; then \
4776 echo " Symbol $$symbol() is documented." ; \
4778 echo "‣ Symbol $$symbol() lacks documentation." ; \
4782 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
4783 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
4785 undefined defined: $(ALL_OBJECTS)
4786 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
4787 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
4788 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
4794 check-api-unused: defined undefined exported
4795 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
4797 # Stupid test that everything purported to be exported really is
4799 define generate-sym-test
4800 $(AM_V_at)$(MKDIR_P) $(dir $@)
4801 $(AM_V_at)printf '#include <stdio.h>\n' > $@
4802 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
4803 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
4804 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
4805 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
4806 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
4807 $(AM_V_at)printf 'return 0; }\n' >> $@
4810 test-libsystemd-bus-sym.c: \
4811 src/libsystemd-bus/libsystemd-bus.sym \
4812 src/systemd/sd-bus.h \
4813 src/systemd/sd-utf8.h
4814 $(generate-sym-test)
4816 test-libsystemd-daemon-sym.c: \
4817 src/libsystemd-daemon/libsystemd-daemon.sym \
4818 src/systemd/sd-daemon.h
4819 $(generate-sym-test)
4821 test-libsystemd-id128-sym.c: \
4822 src/libsystemd-id128/libsystemd-id128.sym \
4823 src/systemd/sd-id128.h
4824 $(generate-sym-test)
4826 test-libsystemd-journal-sym.c: \
4827 src/journal/libsystemd-journal.sym \
4828 src/systemd/sd-journal.h
4829 $(generate-sym-test)
4831 test-libsystemd-login-sym.c: \
4832 src/login/libsystemd-login.sym \
4833 src/systemd/sd-login.h
4834 $(generate-sym-test)
4836 test-libudev-sym.c: \
4837 src/libudev/libudev.sym \
4839 $(generate-sym-test)
4841 test_libsystemd_bus_sym_SOURCES = \
4842 test-libsystemd-bus-sym.c
4843 test_libsystemd_bus_sym_LDADD = \
4846 test_libsystemd_daemon_sym_SOURCES = \
4847 test-libsystemd-daemon-sym.c
4848 test_libsystemd_daemon_sym_LDADD = \
4849 libsystemd-daemon.la
4851 test_libsystemd_id128_sym_SOURCES = \
4852 test-libsystemd-id128-sym.c
4853 test_libsystemd_id128_sym_LDADD = \
4856 test_libsystemd_journal_sym_SOURCES = \
4857 test-libsystemd-journal-sym.c
4858 test_libsystemd_journal_sym_LDADD = \
4859 libsystemd-journal.la
4861 test_libsystemd_login_sym_SOURCES = \
4862 test-libsystemd-login-sym.c
4863 test_libsystemd_login_sym_LDADD = \
4866 test_libudev_sym_SOURCES = \
4868 test_libudev_sym_LDADD = \
4872 $(test_libsystemd_bus_sym_SOURCES) \
4873 $(test_libsystemd_daemon_sym_SOURCES) \
4874 $(test_libsystemd_id128_sym_SOURCES) \
4875 $(test_libsystemd_journal_sym_SOURCES) \
4876 $(test_libsystemd_login_sym_SOURCES) \
4877 $(test_libudev_sym_SOURCES)
4880 test-libsystemd-bus-sym \
4881 test-libsystemd-daemon-sym \
4882 test-libsystemd-id128-sym \
4883 test-libsystemd-journal-sym \
4884 test-libsystemd-login-sym \