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 =
224 USER_SOCKETS_TARGET_WANTS =
225 USER_BUSNAMES_TARGET_WANTS =
227 SYSTEM_UNIT_ALIASES =
232 install-target-wants-hook:
233 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
234 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
235 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
236 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
237 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
238 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
239 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
240 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
241 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
242 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
243 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
244 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
245 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
246 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
247 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
250 [ -z "$$what" ] || ( \
251 dir=$(DESTDIR)$$dir/$$wants.wants && \
252 $(MKDIR_P) -m 0755 $$dir && \
255 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
258 install-directories-hook:
259 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
261 install-aliases-hook:
262 set -- $(SYSTEM_UNIT_ALIASES) && \
263 dir=$(systemunitdir) && $(install-aliases)
264 set -- $(USER_UNIT_ALIASES) && \
265 dir=$(userunitdir) && $(install-aliases)
266 set -- $(GENERAL_ALIASES) && \
267 dir= && $(install-aliases)
269 define install-aliases
270 while [ -n "$$1" ]; do \
271 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
272 rm -f $(DESTDIR)$$dir/$$2 && \
273 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
274 shift 2 || exit $$?; \
278 INSTALL_EXEC_HOOKS += \
279 install-target-wants-hook \
280 install-directories-hook \
283 # ------------------------------------------------------------------------------
284 AM_V_M4 = $(AM_V_M4_$(V))
285 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
286 AM_V_M4_0 = @echo " M4 " $@;
288 AM_V_XSLT = $(AM_V_XSLT_$(V))
289 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
290 AM_V_XSLT_0 = @echo " XSLT " $@;
292 AM_V_GPERF = $(AM_V_GPERF_$(V))
293 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
294 AM_V_GPERF_0 = @echo " GPERF " $@;
296 AM_V_LN = $(AM_V_LN_$(V))
297 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
298 AM_V_LN_0 = @echo " LN " $@;
300 # ------------------------------------------------------------------------------
304 systemd-ask-password \
305 systemd-tty-ask-password-agent \
306 systemd-machine-id-setup
312 systemd-detect-virt \
318 src/kernel-install/kernel-install
320 dist_kernelinstall_SCRIPTS = \
321 src/kernel-install/50-depmod.install \
322 src/kernel-install/90-loaderentry.install
324 rootlibexec_PROGRAMS = \
326 systemd-cgroups-agent \
328 systemd-update-utmp \
332 systemd-reply-password \
338 systemd-socket-proxyd
340 systemgenerator_PROGRAMS = \
341 systemd-getty-generator \
342 systemd-fstab-generator \
343 systemd-system-update-generator
345 dist_bashcompletion_DATA = \
346 shell-completion/bash/journalctl \
347 shell-completion/bash/systemctl \
348 shell-completion/bash/systemd-analyze \
349 shell-completion/bash/systemd-run \
350 shell-completion/bash/udevadm \
351 shell-completion/bash/kernel-install
353 dist_zshcompletion_DATA = \
354 shell-completion/zsh/_systemctl \
355 shell-completion/zsh/_journalctl \
356 shell-completion/zsh/_udevadm \
357 shell-completion/zsh/_kernel-install \
358 shell-completion/zsh/_systemd-nspawn \
359 shell-completion/zsh/_systemd-analyze \
360 shell-completion/zsh/_systemd-run \
361 shell-completion/zsh/_sd_hosts_or_user_at_host \
362 shell-completion/zsh/_systemd-delta \
363 shell-completion/zsh/_systemd
366 sysctl.d/50-default.conf
368 dist_systemunit_DATA = \
369 units/graphical.target \
370 units/multi-user.target \
371 units/emergency.service \
372 units/emergency.target \
373 units/sysinit.target \
378 units/local-fs.target \
379 units/local-fs-pre.target \
380 units/initrd.target \
381 units/initrd-fs.target \
382 units/initrd-root-fs.target \
383 units/remote-fs.target \
384 units/remote-fs-pre.target \
385 units/network.target \
386 units/network-online.target \
387 units/nss-lookup.target \
388 units/nss-user-lookup.target \
389 units/hibernate.target \
390 units/hybrid-sleep.target \
391 units/poweroff.target \
392 units/reboot.target \
393 units/rescue.target \
394 units/rpcbind.target \
395 units/time-sync.target \
396 units/shutdown.target \
398 units/umount.target \
399 units/sigpwr.target \
401 units/sockets.target \
402 units/busnames.target \
403 units/timers.target \
405 units/suspend.target \
407 units/slices.target \
410 units/systemd-initctl.socket \
411 units/systemd-shutdownd.socket \
412 units/syslog.socket \
413 units/dev-hugepages.mount \
414 units/dev-mqueue.mount \
415 units/sys-kernel-config.mount \
416 units/sys-kernel-debug.mount \
417 units/sys-fs-fuse-connections.mount \
419 units/printer.target \
421 units/bluetooth.target \
422 units/smartcard.target \
423 units/systemd-ask-password-wall.path \
424 units/systemd-ask-password-console.path \
425 units/systemd-udevd-control.socket \
426 units/systemd-udevd-kernel.socket \
427 units/system-update.target \
428 units/initrd-switch-root.target
430 nodist_systemunit_DATA = \
431 units/getty@.service \
432 units/serial-getty@.service \
433 units/console-shell.service \
434 units/console-getty.service \
435 units/container-getty@.service \
436 units/systemd-initctl.service \
437 units/systemd-shutdownd.service \
438 units/systemd-remount-fs.service \
439 units/systemd-update-utmp.service \
440 units/systemd-update-utmp-runlevel.service \
441 units/systemd-ask-password-wall.service \
442 units/systemd-ask-password-console.service \
443 units/systemd-sysctl.service \
444 units/emergency.service \
445 units/rescue.service \
446 units/user@.service \
447 units/systemd-hibernate.service \
448 units/systemd-hybrid-sleep.service \
449 units/systemd-suspend.service \
450 units/systemd-halt.service \
451 units/systemd-poweroff.service \
452 units/systemd-reboot.service \
453 units/systemd-kexec.service \
454 units/systemd-fsck@.service \
455 units/systemd-fsck-root.service \
456 units/systemd-udevd.service \
457 units/systemd-udev-trigger.service \
458 units/systemd-udev-settle.service \
459 units/debug-shell.service \
460 units/initrd-parse-etc.service \
461 units/initrd-cleanup.service \
462 units/initrd-udevadm-cleanup-db.service \
463 units/initrd-switch-root.service \
464 units/systemd-nspawn@.service
466 dist_userunit_DATA = \
467 units/user/basic.target \
468 units/user/default.target \
469 units/user/exit.target
471 nodist_userunit_DATA = \
472 units/user/systemd-exit.service
475 units/getty@.service.m4 \
476 units/serial-getty@.service.m4 \
477 units/console-shell.service.m4.in \
478 units/console-getty.service.m4.in \
479 units/container-getty@.service.m4.in \
480 units/rescue.service.m4.in \
481 units/systemd-initctl.service.in \
482 units/systemd-shutdownd.service.in \
483 units/systemd-remount-fs.service.in \
484 units/systemd-update-utmp.service.in \
485 units/systemd-update-utmp-runlevel.service.in \
486 units/systemd-ask-password-wall.service.in \
487 units/systemd-ask-password-console.service.in \
488 units/systemd-sysctl.service.in \
489 units/emergency.service.in \
490 units/systemd-halt.service.in \
491 units/systemd-poweroff.service.in \
492 units/systemd-reboot.service.in \
493 units/systemd-kexec.service.in \
494 units/user/systemd-exit.service.in \
495 units/systemd-fsck@.service.in \
496 units/systemd-fsck-root.service.in \
497 units/user@.service.in \
498 units/systemd-udevd.service \
499 units/systemd-udev-trigger.service \
500 units/systemd-udev-settle.service \
501 units/debug-shell.service.in \
502 units/systemd-hibernate.service.in \
503 units/systemd-hybrid-sleep.service.in \
504 units/systemd-suspend.service.in \
505 units/quotaon.service.in \
506 units/initrd-parse-etc.service.in \
507 units/initrd-cleanup.service.in \
508 units/initrd-udevadm-cleanup-db.service.in \
509 units/initrd-switch-root.service.in \
510 units/systemd-nspawn@.service.in
513 units/console-shell.service.m4 \
514 units/console-getty.service.m4 \
515 units/container-getty@.service.m4 \
516 units/rescue.service.m4 \
517 units/user@.service.m4
520 nodist_systemunit_DATA += \
521 units/rc-local.service \
522 units/halt-local.service
524 systemgenerator_PROGRAMS += \
525 systemd-rc-local-generator
529 units/rc-local.service.in \
530 units/halt-local.service.in
532 # automake is broken and can't handle files with a dash in front
533 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
535 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
537 units-uninstall-hook:
538 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
540 INSTALL_DATA_HOOKS += units-install-hook
541 UNINSTALL_DATA_HOOKS += units-uninstall-hook
551 @INTLTOOL_POLICY_RULE@
553 # ------------------------------------------------------------------------------
558 include Makefile-man.am
561 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
564 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
566 ${XML_FILES:.xml=.html}
568 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
585 $(AM_V_at)$(MKDIR_P) $(dir $@)
586 $(AM_V_LN)$(LN_S) -f ../../man $@
595 man/index.html: man/systemd.index.html
596 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
604 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
605 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
606 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
608 update-man-list: make-man-rules.py $(XML_GLOB)
609 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
610 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
611 @echo "Makefile-man.am has been regenerated"
613 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
614 $(AM_V_at)$(MKDIR_P) $(dir $@)
615 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
617 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
618 $(AM_V_at)$(MKDIR_P) $(dir $@)
619 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
622 man/systemd.index.xml \
624 man/systemd.directives.xml
627 man/systemd.index.xml \
628 man/systemd.directives.xml
640 make-directive-index.py \
643 # ------------------------------------------------------------------------------
644 noinst_LTLIBRARIES += \
647 libsystemd_rtnl_la_SOURCES = \
648 src/systemd/sd-rtnl.h \
649 src/libsystemd-rtnl/sd-rtnl.c \
650 src/libsystemd-rtnl/rtnl-internal.h \
651 src/libsystemd-rtnl/rtnl-message.c \
652 src/libsystemd-rtnl/rtnl-util.h \
653 src/libsystemd-rtnl/rtnl-util.c
655 test_rtnl_SOURCES = \
656 src/libsystemd-rtnl/test-rtnl.c
660 libsystemd-bus-internal.la \
661 libsystemd-daemon-internal.la \
662 libsystemd-id128-internal.la \
668 # ------------------------------------------------------------------------------
669 noinst_LTLIBRARIES += \
672 libsystemd_dns_la_SOURCES = \
673 src/systemd/sd-dns.h \
674 src/libsystemd-bus/sd-dns.c \
675 src/libsystemd-bus/dns-util.h
677 libsystemd_dns_la_LIBADD = \
680 libsystemd_dns_la_CFLAGS = \
684 src/libsystemd-bus/test-dns.c \
697 # ------------------------------------------------------------------------------
698 noinst_LTLIBRARIES += \
701 libsystemd_shared_la_SOURCES = \
702 src/shared/linux/auto_dev-ioctl.h \
703 src/shared/linux/fanotify.h \
704 src/shared/linux/seccomp.h \
705 src/shared/linux/seccomp-bpf.h \
706 src/shared/ioprio.h \
707 src/shared/missing.h \
708 src/shared/initreq.h \
709 src/shared/securebits.h \
710 src/shared/special.h \
714 src/shared/sparse-endian.h \
715 src/shared/refcnt.h \
716 src/shared/udev-util.h \
717 src/shared/bus-errors.h \
718 src/shared/device-nodes.c \
719 src/shared/device-nodes.h \
724 src/shared/efivars.c \
725 src/shared/efivars.h \
726 src/shared/path-util.c \
727 src/shared/path-util.h \
728 src/shared/time-util.c \
729 src/shared/time-util.h \
730 src/shared/hashmap.c \
731 src/shared/hashmap.h \
732 src/shared/siphash24.c \
733 src/shared/siphash24.h \
740 src/shared/sleep-config.c \
741 src/shared/sleep-config.h \
744 src/shared/env-util.c \
745 src/shared/env-util.h \
746 src/shared/strbuf.c \
747 src/shared/strbuf.h \
748 src/shared/strxcpyx.c \
749 src/shared/strxcpyx.h \
750 src/shared/conf-parser.c \
751 src/shared/conf-parser.h \
754 src/shared/ratelimit.h \
755 src/shared/ratelimit.c \
756 src/shared/exit-status.c \
757 src/shared/exit-status.h \
760 src/shared/gunicode.c \
761 src/shared/gunicode.h \
764 src/shared/socket-util.c \
765 src/shared/socket-util.h \
766 src/shared/conf-files.c \
767 src/shared/conf-files.h \
768 src/shared/cgroup-util.c \
769 src/shared/cgroup-util.h \
770 src/shared/cgroup-show.c \
771 src/shared/cgroup-show.h \
772 src/shared/unit-name.c \
773 src/shared/unit-name.h \
774 src/shared/utmp-wtmp.c \
775 src/shared/utmp-wtmp.h \
776 src/shared/watchdog.c \
777 src/shared/watchdog.h \
778 src/shared/spawn-ask-password-agent.c \
779 src/shared/spawn-ask-password-agent.h \
780 src/shared/replace-var.c \
781 src/shared/replace-var.h \
782 src/shared/spawn-polkit-agent.c \
783 src/shared/spawn-polkit-agent.h \
784 src/shared/hwclock.c \
785 src/shared/hwclock.h \
786 src/shared/time-dst.c \
787 src/shared/time-dst.h \
788 src/shared/calendarspec.c \
789 src/shared/calendarspec.h \
790 src/shared/fileio.c \
791 src/shared/fileio.h \
792 src/shared/output-mode.h \
793 src/shared/MurmurHash2.c \
794 src/shared/MurmurHash2.h \
795 src/shared/acpi-fpdt.h \
796 src/shared/acpi-fpdt.c \
797 src/shared/boot-timestamps.h \
798 src/shared/boot-timestamps.c \
801 src/shared/smack-util.c \
802 src/shared/smack-util.h \
803 src/shared/apparmor-util.c \
804 src/shared/apparmor-util.h \
805 src/shared/ima-util.c \
806 src/shared/ima-util.h \
807 src/shared/ptyfwd.c \
808 src/shared/ptyfwd.h \
809 src/shared/net-util.c \
810 src/shared/net-util.h \
811 src/shared/errno-list.c \
812 src/shared/errno-list.h \
813 src/shared/syscall-list.c \
814 src/shared/syscall-list.h \
820 nodist_libsystemd_shared_la_SOURCES = \
821 src/shared/errno-from-name.h \
822 src/shared/errno-to-name.h \
823 src/shared/syscall-from-name.h \
824 src/shared/syscall-to-name.h
826 # ------------------------------------------------------------------------------
827 noinst_LTLIBRARIES += \
830 libsystemd_units_la_SOURCES = \
831 src/shared/install.c \
832 src/shared/install.h \
833 src/shared/install-printf.c \
834 src/shared/install-printf.h \
835 src/shared/path-lookup.c \
836 src/shared/path-lookup.h \
837 src/shared/specifier.c \
838 src/shared/specifier.h
840 # ------------------------------------------------------------------------------
841 noinst_LTLIBRARIES += \
844 libsystemd_label_la_SOURCES = \
845 src/shared/socket-label.c \
848 src/shared/selinux-util.c \
849 src/shared/selinux-util.h \
850 src/shared/mkdir-label.c \
851 src/shared/ask-password-api.c \
852 src/shared/ask-password-api.h \
853 src/shared/fileio-label.c \
854 src/shared/fileio-label.h \
855 src/shared/dev-setup.c \
856 src/shared/dev-setup.h
858 libsystemd_label_la_CFLAGS = \
862 libsystemd_label_la_LIBADD = \
865 # ------------------------------------------------------------------------------
866 noinst_LTLIBRARIES += \
869 libsystemd_logs_la_SOURCES = \
870 src/shared/logs-show.c \
871 src/shared/logs-show.h
873 # ------------------------------------------------------------------------------
874 noinst_LTLIBRARIES += \
875 libsystemd-capability.la
877 libsystemd_capability_la_SOURCES = \
878 src/shared/capability.c \
879 src/shared/capability.h
881 libsystemd_capability_la_CFLAGS = \
885 libsystemd_capability_la_LIBADD = \
888 # ------------------------------------------------------------------------------
890 noinst_LTLIBRARIES += \
893 libsystemd_acl_la_SOURCES = \
894 src/shared/acl-util.c \
895 src/shared/acl-util.h
897 libsystemd_acl_la_CFLAGS = \
901 libsystemd_acl_la_LIBADD = \
905 # ------------------------------------------------------------------------------
906 noinst_LTLIBRARIES += \
909 libsystemd_core_la_SOURCES = \
912 src/core/unit-printf.c \
913 src/core/unit-printf.h \
918 src/core/transaction.c \
919 src/core/transaction.h \
920 src/core/load-fragment.c \
921 src/core/load-fragment.h \
930 src/core/snapshot.c \
931 src/core/snapshot.h \
936 src/core/automount.c \
937 src/core/automount.h \
948 src/core/load-dropin.c \
949 src/core/load-dropin.h \
956 src/core/dbus-manager.c \
957 src/core/dbus-manager.h \
958 src/core/dbus-unit.c \
959 src/core/dbus-unit.h \
960 src/core/dbus-job.c \
961 src/core/dbus-job.h \
962 src/core/dbus-service.c \
963 src/core/dbus-service.h \
964 src/core/dbus-socket.c \
965 src/core/dbus-socket.h \
966 src/core/dbus-busname.c \
967 src/core/dbus-busname.h \
968 src/core/dbus-target.c \
969 src/core/dbus-target.h \
970 src/core/dbus-snapshot.c \
971 src/core/dbus-snapshot.h \
972 src/core/dbus-device.c \
973 src/core/dbus-device.h \
974 src/core/dbus-mount.c \
975 src/core/dbus-mount.h \
976 src/core/dbus-automount.c \
977 src/core/dbus-automount.h \
978 src/core/dbus-swap.c \
979 src/core/dbus-swap.h \
980 src/core/dbus-timer.c \
981 src/core/dbus-timer.h \
982 src/core/dbus-path.c \
983 src/core/dbus-path.h \
984 src/core/dbus-slice.c \
985 src/core/dbus-slice.h \
986 src/core/dbus-scope.c \
987 src/core/dbus-scope.h \
988 src/core/dbus-execute.c \
989 src/core/dbus-execute.h \
990 src/core/dbus-kill.c \
991 src/core/dbus-kill.h \
992 src/core/dbus-cgroup.c \
993 src/core/dbus-cgroup.h \
994 src/core/dbus-client-track.c \
995 src/core/dbus-client-track.h \
998 src/core/selinux-access.c \
999 src/core/selinux-access.h \
1000 src/core/selinux-setup.c \
1001 src/core/selinux-setup.h \
1002 src/core/smack-setup.c \
1003 src/core/smack-setup.h \
1004 src/core/ima-setup.c \
1005 src/core/ima-setup.h \
1006 src/core/locale-setup.h \
1007 src/core/locale-setup.c \
1008 src/core/hostname-setup.c \
1009 src/core/hostname-setup.h \
1010 src/core/machine-id-setup.c \
1011 src/core/machine-id-setup.h \
1012 src/core/mount-setup.c \
1013 src/core/mount-setup.h \
1014 src/core/loopback-setup.h \
1015 src/core/loopback-setup.c \
1016 src/core/condition.c \
1017 src/core/condition.h \
1018 src/core/namespace.c \
1019 src/core/namespace.h \
1020 src/core/tcpwrap.c \
1021 src/core/tcpwrap.h \
1023 src/core/sysfs-show.h \
1024 src/core/switch-root.h \
1025 src/core/switch-root.c \
1026 src/core/killall.h \
1027 src/core/killall.c \
1028 src/core/audit-fd.c \
1029 src/core/audit-fd.h \
1034 libsystemd_core_la_SOURCES += \
1035 src/core/kmod-setup.c \
1036 src/core/kmod-setup.h
1039 nodist_libsystemd_core_la_SOURCES = \
1040 src/core/load-fragment-gperf.c \
1041 src/core/load-fragment-gperf-nulstr.c
1043 libsystemd_core_la_CFLAGS = \
1051 libsystemd_core_la_LIBADD = \
1052 libsystemd-capability.la \
1053 libsystemd-units.la \
1054 libsystemd-label.la \
1055 libsystemd-id128-internal.la \
1056 libsystemd-daemon-internal.la \
1057 libudev-internal.la \
1058 libsystemd-shared.la \
1059 libsystemd-rtnl.la \
1060 libsystemd-bus-internal.la \
1067 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1068 $(AM_V_at)$(MKDIR_P) $(dir $@)
1069 $(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 ";" }' < $< > $@
1072 src/core/load-fragment-gperf.gperf.m4
1075 src/core/load-fragment-gperf.gperf \
1076 src/core/load-fragment-gperf.c \
1077 src/core/load-fragment-gperf-nulstr.c \
1078 src/shared/syscall-list.txt \
1079 src/shared/syscall-from-name.gperf \
1080 src/shared/errno-list.txt \
1081 src/shared/errno-from-name.gperf
1084 src/shared/syscall-from-name.h \
1085 src/shared/syscall-to-name.h \
1086 src/shared/errno-from-name.h \
1087 src/shared/errno-to-name.h
1089 src/shared/syscall-list.txt:
1090 $(AM_V_at)$(MKDIR_P) $(dir $@)
1091 $(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; }' > $@
1093 src/shared/syscall-from-name.gperf: src/shared/syscall-list.txt
1094 $(AM_V_at)$(MKDIR_P) $(dir $@)
1095 $(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 }' < $< > $@
1097 src/shared/syscall-from-name.h: src/shared/syscall-from-name.gperf
1098 $(AM_V_at)$(MKDIR_P) $(dir $@)
1099 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1101 src/shared/syscall-to-name.h: src/shared/syscall-list.txt
1102 $(AM_V_at)$(MKDIR_P) $(dir $@)
1103 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1105 src/shared/errno-list.txt:
1106 $(AM_V_at)$(MKDIR_P) $(dir $@)
1107 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+[0-9]/ { print $$2; }' > $@
1109 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1110 $(AM_V_at)$(MKDIR_P) $(dir $@)
1111 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1113 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1114 $(AM_V_at)$(MKDIR_P) $(dir $@)
1115 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1117 src/shared/errno-to-name.h: src/shared/errno-list.txt
1118 $(AM_V_at)$(MKDIR_P) $(dir $@)
1119 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1121 # ------------------------------------------------------------------------------
1126 libsystemd-core.la \
1129 dist_pkgsysconf_DATA += \
1130 src/core/system.conf \
1133 dist_dbuspolicy_DATA += \
1134 src/core/org.freedesktop.systemd1.conf
1136 dist_dbussystemservice_DATA += \
1137 src/core/org.freedesktop.systemd1.service
1139 polkitpolicy_in_in_files += \
1140 src/core/org.freedesktop.systemd1.policy.in.in
1142 pkgconfigdata_DATA = \
1145 nodist_rpmmacros_DATA = \
1146 src/core/macros.systemd
1149 src/core/systemd.pc.in \
1150 src/core/macros.systemd.in
1153 src/core/macros.systemd \
1154 src/core/org.freedesktop.systemd1.policy.in
1156 # ------------------------------------------------------------------------------
1186 test-strip-tab-ansi \
1199 test/sched_idle_bad.service \
1200 test/sched_idle_ok.service \
1201 test/sched_rr_bad.service \
1202 test/sched_rr_ok.service \
1203 test/sched_rr_change.service \
1205 test/daughter.service \
1209 src/test/test-helper.h
1211 test_device_nodes_SOURCES = \
1212 src/test/test-device-nodes.c
1214 test_device_nodes_LDADD = \
1215 libsystemd-shared.la
1217 test_engine_SOURCES = \
1218 src/test/test-engine.c
1220 test_engine_LDADD = \
1221 libsystemd-core.la \
1224 test_job_type_SOURCES = \
1225 src/test/test-job-type.c
1227 test_job_type_LDADD = \
1228 libsystemd-core.la \
1237 test_loopback_SOURCES = \
1238 src/test/test-loopback.c
1240 test_loopback_LDADD = \
1243 test_hostname_SOURCES = \
1244 src/test/test-hostname.c
1246 test_hostname_LDADD = \
1253 test_boot_timestamp_SOURCES = \
1254 src/test/test-boot-timestamps.c
1256 test_boot_timestamp_LDADD = \
1257 libsystemd-shared.la
1260 test_unit_name_SOURCES = \
1261 src/test/test-unit-name.c
1263 test_unit_name_LDADD = \
1264 libsystemd-core.la \
1267 test_unit_file_SOURCES = \
1268 src/test/test-unit-file.c
1270 test_unit_file_LDADD = \
1271 libsystemd-core.la \
1274 test_utf8_SOURCES = \
1275 src/test/test-utf8.c
1278 libsystemd-shared.la
1280 test_util_SOURCES = \
1281 src/test/test-util.c
1286 test_namespace_SOURCES = \
1287 src/test/test-namespace.c
1289 test_namespace_LDADD = \
1292 test_hashmap_SOURCES = \
1293 src/test/test-hashmap.c
1295 test_hashmap_LDADD = \
1298 test_xml_SOURCES = \
1302 libsystemd-shared.la
1304 test_list_SOURCES = \
1305 src/test/test-list.c
1310 test_tables_SOURCES = \
1311 src/test/test-tables.c \
1312 src/shared/test-tables.h
1314 test_tables_LDADD = \
1315 libsystemd-logs.la \
1316 libsystemd-journal-internal.la \
1317 libsystemd-core.la \
1320 test_prioq_SOURCES = \
1321 src/test/test-prioq.c
1323 test_prioq_LDADD = \
1326 test_fileio_SOURCES = \
1327 src/test/test-fileio.c
1329 test_fileio_LDADD = \
1332 test_time_SOURCES = \
1333 src/test/test-time.c
1338 test_log_SOURCES = \
1344 test_ellipsize_SOURCES = \
1345 src/test/test-ellipsize.c
1347 test_ellipsize_LDADD = \
1350 test_date_SOURCES = \
1351 src/test/test-date.c
1356 test_sleep_SOURCES = \
1357 src/test/test-sleep.c
1359 test_sleep_LDADD = \
1362 test_replace_var_SOURCES = \
1363 src/test/test-replace-var.c
1365 test_replace_var_LDADD = \
1366 libsystemd-shared.la
1368 test_calendarspec_SOURCES = \
1369 src/test/test-calendarspec.c
1371 test_calendarspec_LDADD = \
1372 libsystemd-shared.la
1374 test_strip_tab_ansi_SOURCES = \
1375 src/test/test-strip-tab-ansi.c
1377 test_strip_tab_ansi_LDADD = \
1378 libsystemd-shared.la
1380 test_daemon_SOURCES = \
1381 src/test/test-daemon.c
1383 test_daemon_LDADD = \
1384 libsystemd-daemon-internal.la \
1385 libsystemd-shared.la
1387 test_cgroup_SOURCES = \
1388 src/test/test-cgroup.c
1390 test_cgroup_LDADD = \
1391 libsystemd-label.la \
1392 libsystemd-shared.la
1394 test_cgroup_mask_SOURCES = \
1395 src/test/test-cgroup-mask.c
1397 test_cgroup_mask_CPPFLAGS = \
1399 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1401 test_cgroup_mask_LDADD = \
1402 libsystemd-core.la \
1405 test_cgroup_util_SOURCES = \
1406 src/test/test-cgroup-util.c
1408 test_cgroup_util_LDADD = \
1409 libsystemd-label.la \
1410 libsystemd-daemon-internal.la \
1411 libsystemd-shared.la
1413 test_env_replace_SOURCES = \
1414 src/test/test-env-replace.c
1416 test_env_replace_LDADD = \
1417 libsystemd-shared.la
1419 test_strbuf_SOURCES = \
1420 src/test/test-strbuf.c
1422 test_strbuf_LDADD = \
1423 libsystemd-shared.la
1425 test_strv_SOURCES = \
1426 src/test/test-strv.c
1429 libsystemd-units.la \
1430 libsystemd-id128-internal.la \
1431 libsystemd-shared.la
1433 test_path_util_SOURCES = \
1434 src/test/test-path-util.c
1436 test_path_util_LDADD = \
1437 libsystemd-shared.la
1439 test_strxcpyx_SOURCES = \
1440 src/test/test-strxcpyx.c
1442 test_strxcpyx_LDADD = \
1443 libsystemd-shared.la
1445 test_install_SOURCES = \
1446 src/test/test-install.c
1448 test_install_LDADD = \
1449 libsystemd-units.la \
1450 libsystemd-label.la \
1451 libsystemd-id128-internal.la \
1452 libsystemd-shared.la
1454 test_watchdog_SOURCES = \
1455 src/test/test-watchdog.c
1457 test_watchdog_LDADD = \
1458 libsystemd-shared.la
1460 test_sched_prio_SOURCES = \
1461 src/test/test-sched-prio.c
1463 test_sched_prio_CPPFLAGS = \
1465 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1467 test_sched_prio_LDADD = \
1468 libsystemd-core.la \
1471 # ------------------------------------------------------------------------------
1472 ## .PHONY so it always rebuilds it
1473 .PHONY: coverage lcov-run lcov-report
1475 # run lcov from scratch, always
1480 coverage_dir = coverage
1481 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1484 # reset run coverage tests
1486 @rm -rf $(coverage_dir)
1487 lcov $(coverage_opts) --zerocounters
1490 # generate report based on current coverage data
1492 $(MKDIR_P) $(coverage_dir)
1493 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1494 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1495 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1496 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1498 # lcov doesn't work properly with vpath builds, make sure that bad
1499 # output is not uploaded by mistake.
1500 coverage-sync: coverage
1501 test "$(builddir)" = "$(srcdir)"
1502 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1505 lcov-run lcov-report:
1506 echo "Need to reconfigure with --enable-coverage"
1509 # ------------------------------------------------------------------------------
1510 systemd_analyze_SOURCES = \
1511 src/analyze/analyze.c
1513 systemd_analyze_LDADD = \
1514 libsystemd-bus-internal.la \
1515 libsystemd-id128-internal.la \
1516 libsystemd-daemon-internal.la \
1517 libsystemd-shared.la
1519 # ------------------------------------------------------------------------------
1520 systemd_initctl_SOURCES = \
1521 src/initctl/initctl.c
1523 systemd_initctl_LDADD = \
1524 libsystemd-bus-internal.la \
1525 libsystemd-id128-internal.la \
1526 libsystemd-daemon-internal.la \
1527 libsystemd-shared.la
1529 # ------------------------------------------------------------------------------
1530 systemd_update_utmp_SOURCES = \
1531 src/update-utmp/update-utmp.c
1533 systemd_update_utmp_CFLAGS = \
1537 systemd_update_utmp_LDADD = \
1538 libsystemd-bus-internal.la \
1539 libsystemd-id128-internal.la \
1540 libsystemd-daemon-internal.la \
1541 libsystemd-shared.la \
1544 # ------------------------------------------------------------------------------
1545 systemd_shutdownd_SOURCES = \
1546 src/shutdownd/shutdownd.c
1548 systemd_shutdownd_LDADD = \
1549 libsystemd-label.la \
1550 libsystemd-daemon-internal.la \
1551 libsystemd-shared.la
1554 src/systemd/sd-shutdown.h
1556 # ------------------------------------------------------------------------------
1557 systemd_shutdown_SOURCES = \
1560 src/core/shutdown.c \
1561 src/core/mount-setup.c \
1562 src/core/mount-setup.h \
1563 src/core/killall.h \
1566 systemd_shutdown_LDADD = \
1567 libsystemd-label.la \
1568 libudev-internal.la \
1569 libsystemd-shared.la
1571 # ------------------------------------------------------------------------------
1573 systemd_modules_load_SOURCES = \
1574 src/modules-load/modules-load.c
1576 systemd_modules_load_CFLAGS = \
1580 systemd_modules_load_LDADD = \
1581 libsystemd-shared.la \
1584 rootlibexec_PROGRAMS += \
1585 systemd-modules-load
1587 nodist_systemunit_DATA += \
1588 units/systemd-modules-load.service
1590 SYSINIT_TARGET_WANTS += \
1591 systemd-modules-load.service
1594 nodist_systemunit_DATA += \
1595 units/kmod-static-nodes.service
1597 SYSINIT_TARGET_WANTS += \
1598 kmod-static-nodes.service
1603 units/systemd-modules-load.service.in \
1604 units/kmod-static-nodes.service.in
1606 # ------------------------------------------------------------------------------
1608 systemd_tmpfiles_SOURCES = \
1609 src/tmpfiles/tmpfiles.c
1611 systemd_tmpfiles_LDADD = \
1612 libsystemd-units.la \
1613 libsystemd-label.la \
1614 libsystemd-capability.la \
1615 libsystemd-id128-internal.la \
1616 libsystemd-shared.la
1618 rootbin_PROGRAMS += \
1621 dist_systemunit_DATA += \
1622 units/systemd-tmpfiles-clean.timer
1624 nodist_systemunit_DATA += \
1625 units/systemd-tmpfiles-setup-dev.service \
1626 units/systemd-tmpfiles-setup.service \
1627 units/systemd-tmpfiles-clean.service
1629 dist_tmpfiles_DATA = \
1630 tmpfiles.d/systemd.conf \
1631 tmpfiles.d/systemd-nologin.conf \
1632 tmpfiles.d/tmp.conf \
1636 dist_tmpfiles_DATA += \
1637 tmpfiles.d/legacy.conf
1640 SYSINIT_TARGET_WANTS += \
1641 systemd-tmpfiles-setup-dev.service \
1642 systemd-tmpfiles-setup.service
1644 dist_zshcompletion_DATA += \
1645 shell-completion/zsh/_systemd-tmpfiles
1647 TIMERS_TARGET_WANTS += \
1648 systemd-tmpfiles-clean.timer
1652 $(sysconfdir)/tmpfiles.d
1656 units/systemd-tmpfiles-setup-dev.service.in \
1657 units/systemd-tmpfiles-setup.service.in \
1658 units/systemd-tmpfiles-clean.service.in
1660 # ------------------------------------------------------------------------------
1661 systemd_machine_id_setup_SOURCES = \
1662 src/machine-id-setup/machine-id-setup-main.c \
1663 src/core/machine-id-setup.c \
1664 src/core/machine-id-setup.h
1666 systemd_machine_id_setup_LDADD = \
1667 libsystemd-label.la \
1668 libsystemd-id128-internal.la \
1669 libsystemd-shared.la
1671 # ------------------------------------------------------------------------------
1672 systemd_sysctl_SOURCES = \
1675 systemd_sysctl_LDADD = \
1676 libsystemd-shared.la
1678 # ------------------------------------------------------------------------------
1679 systemd_sleep_SOURCES = \
1682 systemd_sleep_LDADD = \
1683 libsystemd-shared.la
1685 # ------------------------------------------------------------------------------
1686 systemd_fsck_SOURCES = \
1689 systemd_fsck_LDADD = \
1690 libsystemd-bus-internal.la \
1691 libsystemd-id128-internal.la \
1692 libsystemd-daemon-internal.la \
1693 libudev-internal.la \
1694 libsystemd-shared.la
1696 # ------------------------------------------------------------------------------
1697 systemd_ac_power_SOURCES = \
1698 src/ac-power/ac-power.c
1700 systemd_ac_power_LDADD = \
1701 libudev-internal.la \
1702 libsystemd-shared.la
1704 # ------------------------------------------------------------------------------
1705 systemd_detect_virt_SOURCES = \
1706 src/detect-virt/detect-virt.c
1708 systemd_detect_virt_LDADD = \
1709 libsystemd-shared.la
1711 systemd-detect-virt-install-hook:
1712 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1714 INSTALL_EXEC_HOOKS += \
1715 systemd-detect-virt-install-hook
1717 # ------------------------------------------------------------------------------
1718 systemd_delta_SOURCES = \
1721 systemd_delta_LDADD = \
1722 libsystemd-shared.la
1724 # ------------------------------------------------------------------------------
1725 systemd_getty_generator_SOURCES = \
1726 src/getty-generator/getty-generator.c
1728 systemd_getty_generator_LDADD = \
1729 libsystemd-label.la \
1730 libsystemd-shared.la
1732 # ------------------------------------------------------------------------------
1733 systemd_fstab_generator_SOURCES = \
1734 src/fstab-generator/fstab-generator.c \
1735 src/core/mount-setup.c
1737 systemd_fstab_generator_LDADD = \
1738 libsystemd-label.la \
1739 libsystemd-shared.la
1741 # ------------------------------------------------------------------------------
1742 systemd_system_update_generator_SOURCES = \
1743 src/system-update-generator/system-update-generator.c
1745 systemd_system_update_generator_LDADD = \
1746 libsystemd-label.la \
1747 libsystemd-shared.la
1750 # ------------------------------------------------------------------------------
1751 systemgenerator_PROGRAMS += \
1752 systemd-efi-boot-generator
1754 systemd_efi_boot_generator_SOURCES = \
1755 src/efi-boot-generator/efi-boot-generator.c
1757 systemd_efi_boot_generator_LDADD = \
1758 libsystemd-label.la \
1759 libsystemd-shared.la
1761 # ------------------------------------------------------------------------------
1764 src/boot/boot-loader.h \
1765 src/boot/bootctl.c \
1766 src/boot/boot-loader.c \
1770 libsystemd-shared.la \
1771 libsystemd-id128-internal.la \
1772 libsystemd-daemon-internal.la
1777 dist_zshcompletion_DATA += \
1778 shell-completion/zsh/_bootctl
1782 # ------------------------------------------------------------------------------
1784 systemgenerator_PROGRAMS += \
1785 systemd-gpt-auto-generator
1787 systemd_gpt_auto_generator_SOURCES = \
1788 src/gpt-auto-generator/gpt-auto-generator.c
1790 systemd_gpt_auto_generator_LDADD = \
1791 libsystemd-label.la \
1792 libsystemd-id128-internal.la \
1793 libudev-internal.la \
1794 libsystemd-shared.la \
1797 systemd_gpt_auto_generator_CFLAGS = \
1802 # ------------------------------------------------------------------------------
1803 systemgenerator_PROGRAMS += \
1804 systemd-dbus1-generator
1806 systemd_dbus1_generator_SOURCES = \
1807 src/dbus1-generator/dbus1-generator.c
1809 systemd_dbus1_generator_LDADD = \
1810 libsystemd-label.la \
1811 libsystemd-shared.la \
1812 libsystemd-bus-internal.la
1814 dbus1-generator-install-hook:
1815 $(AM_V_LN)$(LN_S) -f $(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1817 dbus1-generator-uninstall-hook:
1818 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1820 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1821 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1823 # ------------------------------------------------------------------------------
1824 systemd_rc_local_generator_SOURCES = \
1825 src/rc-local-generator/rc-local-generator.c
1827 systemd_rc_local_generator_LDADD = \
1828 libsystemd-label.la \
1829 libsystemd-shared.la
1831 # ------------------------------------------------------------------------------
1832 systemd_remount_fs_SOURCES = \
1833 src/remount-fs/remount-fs.c \
1834 src/core/mount-setup.c \
1835 src/core/mount-setup.h
1837 systemd_remount_fs_LDADD = \
1838 libsystemd-label.la \
1839 libsystemd-shared.la
1841 # ------------------------------------------------------------------------------
1842 systemd_cgroups_agent_SOURCES = \
1843 src/cgroups-agent/cgroups-agent.c
1845 systemd_cgroups_agent_LDADD = \
1846 libsystemd-bus-internal.la \
1847 libsystemd-id128-internal.la \
1848 libsystemd-daemon-internal.la \
1849 libsystemd-shared.la
1851 # ------------------------------------------------------------------------------
1852 systemctl_SOURCES = \
1853 src/systemctl/systemctl.c
1856 libsystemd-units.la \
1857 libsystemd-label.la \
1858 libsystemd-bus-internal.la \
1862 systemctl_LDADD += \
1863 libsystemd-login-internal.la
1866 systemctl_LDADD += \
1867 libsystemd-journal-internal.la \
1868 libsystemd-id128-internal.la \
1869 libsystemd-daemon-internal.la \
1870 libsystemd-shared.la
1872 # ------------------------------------------------------------------------------
1873 systemd_notify_SOURCES = \
1874 src/notify/notify.c \
1875 src/readahead/sd-readahead.c
1877 systemd_notify_LDADD = \
1878 libsystemd-daemon-internal.la \
1879 libsystemd-shared.la
1881 # ------------------------------------------------------------------------------
1882 systemd_ask_password_SOURCES = \
1883 src/ask-password/ask-password.c
1885 systemd_ask_password_LDADD = \
1886 libsystemd-label.la \
1887 libsystemd-shared.la
1889 # ------------------------------------------------------------------------------
1890 systemd_reply_password_SOURCES = \
1891 src/reply-password/reply-password.c
1893 systemd_reply_password_LDADD = \
1894 libsystemd-shared.la
1896 # ------------------------------------------------------------------------------
1897 systemd_cgls_SOURCES = \
1900 systemd_cgls_LDADD = \
1901 libsystemd-shared.la
1903 # ------------------------------------------------------------------------------
1904 systemd_cgtop_SOURCES = \
1907 systemd_cgtop_LDADD = \
1908 libsystemd-shared.la
1910 # ------------------------------------------------------------------------------
1911 systemd_nspawn_SOURCES = \
1912 src/nspawn/nspawn.c \
1913 src/core/mount-setup.c \
1914 src/core/mount-setup.h \
1915 src/core/loopback-setup.c \
1916 src/core/loopback-setup.h
1918 systemd_nspawn_LDADD = \
1919 libsystemd-label.la \
1920 libsystemd-capability.la \
1921 libsystemd-bus-internal.la \
1922 libsystemd-id128-internal.la \
1923 libsystemd-daemon-internal.la \
1924 libsystemd-shared.la \
1927 # ------------------------------------------------------------------------------
1928 systemd_run_SOURCES = \
1931 systemd_run_LDADD = \
1932 libsystemd-label.la \
1933 libsystemd-capability.la \
1934 libsystemd-bus-internal.la \
1935 libsystemd-daemon-internal.la \
1936 libsystemd-id128-internal.la \
1937 libsystemd-shared.la
1939 # ------------------------------------------------------------------------------
1940 systemd_bus_proxyd_SOURCES = \
1941 src/bus-proxyd/bus-proxyd.c
1943 systemd_bus_proxyd_LDADD = \
1944 libsystemd-bus-internal.la \
1945 libsystemd-daemon-internal.la \
1946 libsystemd-id128-internal.la \
1947 libsystemd-shared.la
1949 bus-proxyd-install-hook:
1950 $(AM_V_LN)$(LN_S) -f ../lib/systemd/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
1952 bus-proxyd-uninstall-hook:
1953 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
1955 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
1956 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
1959 nodist_systemunit_DATA += \
1960 units/systemd-bus-proxyd@.service
1962 dist_systemunit_DATA += \
1963 units/systemd-bus-proxyd.socket
1965 dist_userunit_DATA += \
1966 units/user/systemd-bus-proxyd.socket \
1967 units/user/systemd-bus-proxyd@.service
1971 units/systemd-bus-proxyd@.service.in
1973 # ------------------------------------------------------------------------------
1974 systemd_tty_ask_password_agent_SOURCES = \
1975 src/tty-ask-password-agent/tty-ask-password-agent.c
1977 systemd_tty_ask_password_agent_LDADD = \
1978 libsystemd-label.la \
1979 libsystemd-shared.la
1981 # ------------------------------------------------------------------------------
1982 libsystemd_daemon_la_SOURCES = \
1983 src/libsystemd-daemon/libsystemd-daemon.sym \
1984 src/libsystemd-daemon/sd-daemon.c
1986 libsystemd_daemon_internal_la_SOURCES = \
1987 $(libsystemd_daemon_la_SOURCES)
1989 libsystemd_daemon_internal_la_CPPFLAGS = \
1991 -DSD_DAEMON_DISABLE_MQ
1993 libsystemd_daemon_la_CFLAGS = \
1995 -fvisibility=hidden \
1998 libsystemd_daemon_la_LDFLAGS = \
2000 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
2001 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
2003 libsystemd_daemon_la_LIBADD = \
2006 pkginclude_HEADERS += \
2007 src/systemd/sd-daemon.h
2009 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2010 libsystemd-daemon-install-hook:
2011 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
2013 libsystemd-daemon-uninstall-hook:
2014 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
2016 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
2017 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
2019 lib_LTLIBRARIES += \
2020 libsystemd-daemon.la
2022 noinst_LTLIBRARIES += \
2023 libsystemd-daemon-internal.la
2025 pkgconfiglib_DATA += \
2026 src/libsystemd-daemon/libsystemd-daemon.pc
2029 src/libsystemd-daemon/libsystemd-daemon.pc.in
2031 # ------------------------------------------------------------------------------
2032 libsystemd_bus_la_SOURCES = \
2033 src/libsystemd-bus/libsystemd-bus.sym \
2034 src/systemd/sd-bus.h \
2035 src/systemd/sd-bus-protocol.h \
2036 src/systemd/sd-bus-vtable.h \
2037 src/systemd/sd-memfd.h \
2038 src/systemd/sd-utf8.h \
2039 src/systemd/sd-event.h \
2040 src/libsystemd-bus/sd-bus.c \
2041 src/libsystemd-bus/bus-control.c \
2042 src/libsystemd-bus/bus-control.h \
2043 src/libsystemd-bus/bus-error.c \
2044 src/libsystemd-bus/bus-error.h \
2045 src/libsystemd-bus/bus-internal.c \
2046 src/libsystemd-bus/bus-internal.h \
2047 src/libsystemd-bus/bus-socket.c \
2048 src/libsystemd-bus/bus-socket.h \
2049 src/libsystemd-bus/bus-kernel.c \
2050 src/libsystemd-bus/bus-kernel.h \
2051 src/libsystemd-bus/bus-container.c \
2052 src/libsystemd-bus/bus-container.h \
2053 src/libsystemd-bus/bus-message.c \
2054 src/libsystemd-bus/bus-message.h \
2055 src/libsystemd-bus/bus-creds.c \
2056 src/libsystemd-bus/bus-creds.h \
2057 src/libsystemd-bus/bus-signature.c \
2058 src/libsystemd-bus/bus-signature.h \
2059 src/libsystemd-bus/bus-type.c \
2060 src/libsystemd-bus/bus-type.h \
2061 src/libsystemd-bus/bus-match.c \
2062 src/libsystemd-bus/bus-match.h \
2063 src/libsystemd-bus/bus-bloom.c \
2064 src/libsystemd-bus/bus-bloom.h \
2065 src/libsystemd-bus/bus-introspect.c \
2066 src/libsystemd-bus/bus-introspect.h \
2067 src/libsystemd-bus/bus-objects.c \
2068 src/libsystemd-bus/bus-objects.h \
2069 src/libsystemd-bus/bus-gvariant.c \
2070 src/libsystemd-bus/bus-gvariant.h \
2071 src/libsystemd-bus/bus-convenience.c \
2072 src/libsystemd-bus/kdbus.h \
2073 src/libsystemd-bus/sd-memfd.c \
2074 src/libsystemd-bus/bus-util.c \
2075 src/libsystemd-bus/bus-util.h \
2076 src/libsystemd-bus/sd-utf8.c \
2077 src/libsystemd-bus/sd-event.c \
2078 src/libsystemd-bus/event-util.h \
2079 src/libsystemd-bus/bus-protocol.h
2081 nodist_libsystemd_bus_la_SOURCES = \
2082 src/libsystemd-bus/bus-error-mapping.c
2084 libsystemd_bus_la_LIBADD = \
2085 libsystemd-id128-internal.la \
2086 libsystemd-daemon-internal.la \
2087 libsystemd-shared.la
2089 libsystemd_bus_la_CFLAGS = \
2093 libsystemd_bus_la_LDFLAGS = \
2095 -version-info $(LIBSYSTEMD_BUS_CURRENT):$(LIBSYSTEMD_BUS_REVISION):$(LIBSYSTEMD_BUS_AGE) \
2096 -Wl,--version-script=$(top_srcdir)/src/libsystemd-bus/libsystemd-bus.sym
2098 pkgconfiglib_DATA += \
2099 src/libsystemd-bus/libsystemd-bus.pc
2102 src/libsystemd-bus/bus-error-mapping.gperf \
2103 src/libsystemd-bus/libsystemd-bus.pc.in \
2104 src/libsystemd-bus/DIFFERENCES \
2105 src/libsystemd-bus/GVARIANT-SERIALIZATION
2108 src/libsystemd-bus/bus-error-mapping.c
2110 lib_LTLIBRARIES += \
2113 libsystemd_bus_internal_la_SOURCES = \
2114 $(libsystemd_bus_la_SOURCES)
2116 nodist_libsystemd_bus_internal_la_SOURCES = \
2117 $(nodist_libsystemd_bus_la_SOURCES)
2119 libsystemd_bus_internal_la_CFLAGS = \
2120 $(libsystemd_bus_la_CFLAGS)
2122 noinst_LTLIBRARIES += \
2123 libsystemd-bus-internal.la
2125 libsystemd_bus_dump_la_SOURCES = \
2126 src/libsystemd-bus/bus-dump.c \
2127 src/libsystemd-bus/bus-dump.h
2129 libsystemd_bus_dump_la_CFLAGS = \
2133 noinst_LTLIBRARIES += \
2134 libsystemd-bus-dump.la
2138 test-bus-signature \
2143 test-bus-kernel-bloom \
2144 test-bus-kernel-benchmark \
2146 test-bus-zero-copy \
2147 test-bus-introspect \
2157 test_bus_marshal_SOURCES = \
2158 src/libsystemd-bus/test-bus-marshal.c
2160 test_bus_marshal_LDADD = \
2161 libsystemd-bus-internal.la \
2162 libsystemd-id128-internal.la \
2163 libsystemd-daemon-internal.la \
2164 libsystemd-shared.la \
2165 libsystemd-bus-dump.la \
2166 libsystemd-capability.la \
2171 test_bus_marshal_CFLAGS = \
2177 test_bus_signature_SOURCES = \
2178 src/libsystemd-bus/test-bus-signature.c
2180 test_bus_signature_LDADD = \
2181 libsystemd-shared.la \
2182 libsystemd-bus-internal.la
2184 test_bus_chat_SOURCES = \
2185 src/libsystemd-bus/test-bus-chat.c
2187 test_bus_chat_CFLAGS = \
2191 test_bus_chat_LDADD = \
2192 libsystemd-bus-internal.la \
2193 libsystemd-id128-internal.la \
2194 libsystemd-daemon-internal.la \
2195 libsystemd-shared.la
2197 test_bus_server_SOURCES = \
2198 src/libsystemd-bus/test-bus-server.c
2200 test_bus_server_CFLAGS = \
2204 test_bus_server_LDADD = \
2205 libsystemd-bus-internal.la \
2206 libsystemd-id128-internal.la \
2207 libsystemd-daemon-internal.la \
2208 libsystemd-shared.la
2210 test_bus_objects_SOURCES = \
2211 src/libsystemd-bus/test-bus-objects.c
2213 test_bus_objects_CFLAGS = \
2218 test_bus_objects_LDADD = \
2219 libsystemd-bus-internal.la \
2220 libsystemd-id128-internal.la \
2221 libsystemd-daemon-internal.la \
2222 libsystemd-shared.la \
2223 libsystemd-bus-dump.la \
2224 libsystemd-capability.la \
2227 test_bus_error_SOURCES = \
2228 src/libsystemd-bus/test-bus-error.c
2230 test_bus_error_LDADD = \
2231 libsystemd-bus-internal.la \
2232 libsystemd-id128-internal.la \
2233 libsystemd-daemon-internal.la \
2234 libsystemd-shared.la
2236 test_bus_gvariant_SOURCES = \
2237 src/libsystemd-bus/test-bus-gvariant.c
2239 test_bus_gvariant_LDADD = \
2240 libsystemd-bus-internal.la \
2241 libsystemd-id128-internal.la \
2242 libsystemd-daemon-internal.la \
2243 libsystemd-shared.la \
2244 libsystemd-bus-dump.la \
2245 libsystemd-capability.la \
2249 test_bus_gvariant_CFLAGS = \
2254 test_bus_creds_SOURCES = \
2255 src/libsystemd-bus/test-bus-creds.c
2257 test_bus_creds_LDADD = \
2258 libsystemd-bus-internal.la \
2259 libsystemd-id128-internal.la \
2260 libsystemd-daemon-internal.la \
2261 libsystemd-shared.la \
2262 libsystemd-bus-dump.la \
2263 libsystemd-capability.la
2265 test_bus_match_SOURCES = \
2266 src/libsystemd-bus/test-bus-match.c
2268 test_bus_match_LDADD = \
2269 libsystemd-bus-internal.la \
2270 libsystemd-id128-internal.la \
2271 libsystemd-daemon-internal.la \
2272 libsystemd-shared.la
2274 test_bus_kernel_SOURCES = \
2275 src/libsystemd-bus/test-bus-kernel.c
2277 test_bus_kernel_LDADD = \
2278 libsystemd-bus-internal.la \
2279 libsystemd-id128-internal.la \
2280 libsystemd-daemon-internal.la \
2281 libsystemd-shared.la \
2282 libsystemd-bus-dump.la \
2283 libsystemd-capability.la \
2286 test_bus_kernel_CFLAGS = \
2290 test_bus_kernel_bloom_SOURCES = \
2291 src/libsystemd-bus/test-bus-kernel-bloom.c
2293 test_bus_kernel_bloom_LDADD = \
2294 libsystemd-bus-internal.la \
2295 libsystemd-id128-internal.la \
2296 libsystemd-daemon-internal.la \
2297 libsystemd-shared.la
2299 test_bus_kernel_benchmark_SOURCES = \
2300 src/libsystemd-bus/test-bus-kernel-benchmark.c
2302 test_bus_kernel_benchmark_LDADD = \
2303 libsystemd-bus-internal.la \
2304 libsystemd-id128-internal.la \
2305 libsystemd-daemon-internal.la \
2306 libsystemd-shared.la
2308 test_bus_memfd_SOURCES = \
2309 src/libsystemd-bus/test-bus-memfd.c
2311 test_bus_memfd_LDADD = \
2312 libsystemd-bus-internal.la \
2313 libsystemd-shared.la
2315 test_bus_zero_copy_SOURCES = \
2316 src/libsystemd-bus/test-bus-zero-copy.c
2318 test_bus_zero_copy_LDADD = \
2319 libsystemd-bus-internal.la \
2320 libsystemd-id128-internal.la \
2321 libsystemd-daemon-internal.la \
2322 libsystemd-shared.la \
2323 libsystemd-bus-dump.la \
2324 libsystemd-capability.la \
2327 test_bus_zero_copy_CFLAGS = \
2331 test_bus_introspect_SOURCES = \
2332 src/libsystemd-bus/test-bus-introspect.c
2334 test_bus_introspect_LDADD = \
2335 libsystemd-shared.la \
2336 libsystemd-bus-internal.la
2338 test_event_SOURCES = \
2339 src/libsystemd-bus/test-event.c
2341 test_event_LDADD = \
2342 libsystemd-bus-internal.la \
2343 libsystemd-id128-internal.la \
2344 libsystemd-daemon-internal.la \
2345 libsystemd-shared.la
2348 src/libsystemd-bus/busctl.c
2351 libsystemd-bus-internal.la \
2352 libsystemd-id128-internal.la \
2353 libsystemd-daemon-internal.la \
2354 libsystemd-shared.la \
2355 libsystemd-bus-dump.la \
2356 libsystemd-capability.la \
2363 # ------------------------------------------------------------------------------
2373 include_HEADERS += \
2374 src/libudev/libudev.h
2376 lib_LTLIBRARIES += \
2379 libudev_la_SOURCES =\
2380 src/libudev/libudev.sym \
2381 src/libudev/libudev-private.h \
2382 src/libudev/libudev.c \
2383 src/libudev/libudev-list.c \
2384 src/libudev/libudev-util.c \
2385 src/libudev/libudev-device.c \
2386 src/libudev/libudev-enumerate.c \
2387 src/libudev/libudev-monitor.c \
2388 src/libudev/libudev-queue.c \
2389 src/libudev/libudev-hwdb-def.h \
2390 src/libudev/libudev-hwdb.c
2392 libudev_la_CFLAGS = \
2396 libudev_la_LDFLAGS = \
2398 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2399 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2401 libudev_la_LIBADD = \
2402 libsystemd-daemon-internal.la \
2403 libsystemd-id128-internal.la \
2404 libsystemd-shared.la
2406 pkgconfiglib_DATA += \
2407 src/libudev/libudev.pc
2410 src/libudev/libudev.pc.in
2413 src/libudev/libudev.pc \
2418 $(AM_V_at)$(MKDIR_P) $(dir $@)
2419 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2422 $(AM_V_at)$(MKDIR_P) $(dir $@)
2423 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2425 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2426 libudev-install-hook:
2427 libname=libudev.so && $(move-to-rootlibdir)
2429 libudev-uninstall-hook:
2430 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2432 INSTALL_EXEC_HOOKS += libudev-install-hook
2433 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2435 # ------------------------------------------------------------------------------
2436 noinst_LTLIBRARIES += \
2439 libudev_internal_la_SOURCES =\
2440 $(libudev_la_SOURCES) \
2441 src/libudev/libudev-device-private.c \
2442 src/libudev/libudev-queue-private.c
2444 libudev_internal_la_CFLAGS = \
2446 -fvisibility=default
2448 # ------------------------------------------------------------------------------
2450 $(sysconfdir)/udev/rules.d \
2451 $(sysconfdir)/udev/hwdb.d
2453 dist_network_DATA = \
2454 network/99-default.link
2456 dist_udevrules_DATA += \
2457 rules/99-systemd.rules \
2458 rules/42-usb-hid-pm.rules \
2459 rules/50-udev-default.rules \
2460 rules/60-drm.rules \
2461 rules/60-keyboard.rules \
2462 rules/60-persistent-storage-tape.rules \
2463 rules/60-persistent-serial.rules \
2464 rules/60-persistent-input.rules \
2465 rules/60-persistent-alsa.rules \
2466 rules/60-persistent-storage.rules \
2467 rules/64-btrfs.rules \
2468 rules/75-net-description.rules \
2469 rules/75-tty-description.rules \
2470 rules/78-sound-card.rules \
2471 rules/80-net-setup-link.rules \
2472 rules/95-udev-late.rules
2474 dist_udevhwdb_DATA = \
2475 hwdb/20-pci-vendor-model.hwdb \
2476 hwdb/20-pci-classes.hwdb \
2477 hwdb/20-usb-vendor-model.hwdb \
2478 hwdb/20-usb-classes.hwdb \
2479 hwdb/20-sdio-vendor-model.hwdb \
2480 hwdb/20-sdio-classes.hwdb \
2481 hwdb/20-bluetooth-vendor-product.hwdb \
2482 hwdb/20-acpi-vendor.hwdb \
2484 hwdb/60-keyboard.hwdb
2486 udevconfdir = $(sysconfdir)/udev
2487 dist_udevconf_DATA = \
2490 sharepkgconfigdir = $(datadir)/pkgconfig
2491 sharepkgconfig_DATA = \
2495 rules/99-systemd.rules.in \
2499 rules/99-systemd.rules \
2503 units/systemd-udevd.service.in \
2504 units/systemd-udev-trigger.service.in \
2505 units/systemd-udev-settle.service.in
2508 units/systemd-udevd.service \
2509 units/systemd-udev-trigger.service \
2510 units/systemd-udev-settle.service
2512 SOCKETS_TARGET_WANTS += \
2513 systemd-udevd-control.socket \
2514 systemd-udevd-kernel.socket
2515 SYSINIT_TARGET_WANTS += \
2516 systemd-udevd.service \
2517 systemd-udev-trigger.service
2519 rootbin_PROGRAMS += \
2522 rootlibexec_PROGRAMS += \
2525 noinst_LTLIBRARIES += \
2528 src/udev/keyboard-keys.txt:
2529 $(AM_V_at)$(MKDIR_P) $(dir $@)
2530 $(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/' > $@
2532 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2533 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2535 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2536 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2538 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2539 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2541 libudev_core_la_SOURCES = \
2543 src/udev/udev-event.c \
2544 src/udev/udev-watch.c \
2545 src/udev/udev-node.c \
2546 src/udev/udev-rules.c \
2547 src/udev/udev-ctrl.c \
2548 src/udev/udev-builtin.c \
2549 src/udev/udev-builtin-btrfs.c \
2550 src/udev/udev-builtin-hwdb.c \
2551 src/udev/udev-builtin-input_id.c \
2552 src/udev/udev-builtin-keyboard.c \
2553 src/udev/udev-builtin-net_id.c \
2554 src/udev/udev-builtin-net_setup_link.c \
2555 src/udev/udev-builtin-path_id.c \
2556 src/udev/udev-builtin-usb_id.c \
2557 src/udev/net/link-config.h \
2558 src/udev/net/link-config.c \
2559 src/udev/net/ethtool-util.h \
2560 src/udev/net/ethtool-util.c
2562 nodist_libudev_core_la_SOURCES = \
2563 src/udev/keyboard-keys-from-name.h \
2564 src/udev/keyboard-keys-to-name.h \
2565 src/udev/net/link-config-gperf.c
2568 $(nodist_libudev_core_la_SOURCES)
2571 src/udev/keyboard-keys-from-name.gperf \
2572 src/udev/keyboard-keys.txt \
2573 src/udev/net/link-config-gperf.c
2576 src/udev/net/link-config-gperf.gperf
2578 libudev_core_la_CFLAGS = \
2583 libudev_core_la_LIBADD = \
2584 libudev-internal.la \
2585 libsystemd-label.la \
2586 libsystemd-daemon-internal.la \
2587 libsystemd-rtnl.la \
2588 libsystemd-id128-internal.la \
2589 libsystemd-shared.la \
2593 libudev_core_la_CPPFLAGS = \
2595 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2598 libudev_core_la_SOURCES += \
2599 src/udev/udev-builtin-firmware.c
2601 dist_udevrules_DATA += \
2602 rules/50-firmware.rules
2606 libudev_core_la_SOURCES += \
2607 src/udev/udev-builtin-kmod.c
2609 dist_udevrules_DATA += \
2610 rules/80-drivers.rules
2614 libudev_core_la_SOURCES += \
2615 src/udev/udev-builtin-blkid.c
2619 libudev_core_la_SOURCES += \
2620 src/udev/udev-builtin-uaccess.c \
2621 src/login/logind-acl.c \
2622 src/login/sd-login.c \
2623 src/systemd/sd-login.h \
2624 src/login/login-shared.c \
2625 src/login/login-shared.h
2627 libudev_core_la_LIBADD += \
2631 systemd_udevd_SOURCES = \
2634 systemd_udevd_LDADD = \
2638 src/udev/udevadm.c \
2639 src/udev/udevadm-info.c \
2640 src/udev/udevadm-control.c \
2641 src/udev/udevadm-monitor.c \
2642 src/udev/udevadm-hwdb.c \
2643 src/udev/udevadm-settle.c \
2644 src/udev/udevadm-trigger.c \
2645 src/udev/udevadm-test.c \
2646 src/udev/udevadm-test-builtin.c
2651 # Update hwdb on installation. Do not bother if installing
2652 # in DESTDIR, since this is likely for packaging purposes.
2654 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2656 INSTALL_DATA_HOOKS += \
2660 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2662 # ------------------------------------------------------------------------------
2671 test_libudev_SOURCES = \
2672 src/test/test-libudev.c
2674 test_libudev_LDADD = \
2675 libsystemd-label.la \
2676 libudev-internal.la \
2677 libsystemd-shared.la
2679 test_udev_SOURCES = \
2680 src/test/test-udev.c
2689 test_udev_LDADD += \
2696 # packed sysfs test tree
2698 $(AM_V_at)$(MKDIR_P) $(dir $@)
2699 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2703 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2708 test/rules-test.sh \
2709 test/rule-syntax-check.py
2711 # ------------------------------------------------------------------------------
2713 src/udev/ata_id/ata_id.c
2716 libudev-internal.la \
2717 libsystemd-shared.la
2719 udevlibexec_PROGRAMS += \
2722 # ------------------------------------------------------------------------------
2723 cdrom_id_SOURCES = \
2724 src/udev/cdrom_id/cdrom_id.c
2727 libudev-internal.la \
2728 libsystemd-shared.la
2730 udevlibexec_PROGRAMS += \
2733 dist_udevrules_DATA += \
2734 rules/60-cdrom_id.rules
2736 # ------------------------------------------------------------------------------
2738 src/udev/collect/collect.c
2741 libudev-internal.la \
2742 libsystemd-shared.la
2744 udevlibexec_PROGRAMS += \
2747 # ------------------------------------------------------------------------------
2749 src/udev/scsi_id/scsi_id.c \
2750 src/udev/scsi_id/scsi_serial.c \
2751 src/udev/scsi_id/scsi.h \
2752 src/udev/scsi_id/scsi_id.h
2755 libudev-internal.la \
2756 libsystemd-shared.la
2758 udevlibexec_PROGRAMS += \
2762 src/udev/scsi_id/README
2764 # ------------------------------------------------------------------------------
2766 src/udev/v4l_id/v4l_id.c
2771 udevlibexec_PROGRAMS += \
2774 dist_udevrules_DATA += \
2775 rules/60-persistent-v4l.rules
2777 # ------------------------------------------------------------------------------
2778 accelerometer_SOURCES = \
2779 src/udev/accelerometer/accelerometer.c
2781 accelerometer_LDADD = \
2782 libudev-internal.la -lm \
2783 libsystemd-shared.la
2785 udevlibexec_PROGRAMS += \
2788 dist_udevrules_DATA += \
2789 rules/61-accelerometer.rules
2791 # ------------------------------------------------------------------------------
2798 libgudev_includedir = \
2799 $(includedir)/gudev-1.0/gudev
2801 libgudev_include_HEADERS = \
2803 src/gudev/gudevenums.h \
2804 src/gudev/gudevenumtypes.h \
2805 src/gudev/gudevtypes.h \
2806 src/gudev/gudevclient.h \
2807 src/gudev/gudevdevice.h \
2808 src/gudev/gudevenumerator.h
2810 lib_LTLIBRARIES += libgudev-1.0.la
2812 pkgconfiglib_DATA += \
2813 src/gudev/gudev-1.0.pc
2816 src/gudev/gudev-1.0.pc
2818 libgudev_1_0_la_SOURCES = \
2819 src/gudev/gudevenums.h \
2820 src/gudev/gudevenumtypes.h \
2821 src/gudev/gudevenumtypes.h\
2822 src/gudev/gudevtypes.h \
2823 src/gudev/gudevclient.h \
2824 src/gudev/gudevclient.c \
2825 src/gudev/gudevdevice.h \
2826 src/gudev/gudevdevice.c \
2827 src/gudev/gudevenumerator.h \
2828 src/gudev/gudevenumerator.c \
2829 src/gudev/gudevprivate.h
2831 nodist_libgudev_1_0_la_SOURCES = \
2832 src/gudev/gudevmarshal.h \
2833 src/gudev/gudevmarshal.c \
2834 src/gudev/gudevenumtypes.h \
2835 src/gudev/gudevenumtypes.c
2838 $(nodist_libgudev_1_0_la_SOURCES)
2840 libgudev_1_0_la_CPPFLAGS = \
2842 -I$(top_builddir)/src\
2843 -I$(top_srcdir)/src\
2844 -I$(top_builddir)/src/gudev \
2845 -I$(top_srcdir)/src/gudev \
2846 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2847 -D_GUDEV_COMPILATION \
2848 -DG_LOG_DOMAIN=\"GUdev\"
2850 libgudev_1_0_la_CFLAGS = \
2852 -fvisibility=default \
2855 libgudev_1_0_la_LIBADD = \
2859 libgudev_1_0_la_LDFLAGS = \
2861 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2862 -export-dynamic -no-undefined \
2863 -export-symbols-regex '^g_udev_.*'
2865 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2866 $(AM_V_at)$(MKDIR_P) $(dir $@)
2867 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2869 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2870 $(AM_V_at)$(MKDIR_P) $(dir $@)
2871 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2872 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2874 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2875 $(AM_V_at)$(MKDIR_P) $(dir $@)
2876 $(AM_V_GEN)glib-mkenums --template $^ > $@
2878 if HAVE_INTROSPECTION
2879 -include $(INTROSPECTION_MAKEFILE)
2881 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2883 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2885 src_gudev_GUdev_1_0_gir_CFLAGS = \
2888 -D_GUDEV_COMPILATION \
2889 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2890 -I$(top_srcdir)/src \
2891 -I$(top_builddir)/src \
2892 -I$(top_srcdir)/src/gudev \
2893 -I$(top_builddir)/src/gudev
2895 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2897 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2898 --pkg-export=gudev-1.0 \
2901 src_gudev_GUdev_1_0_gir_FILES = \
2903 src/gudev/gudevtypes.h \
2904 src/gudev/gudevenums.h \
2905 src/gudev/gudevenumtypes.h \
2906 src/gudev/gudevclient.h \
2907 src/gudev/gudevdevice.h \
2908 src/gudev/gudevenumerator.h \
2909 src/gudev/gudevclient.c \
2910 src/gudev/gudevdevice.c \
2911 src/gudev/gudevenumerator.c
2913 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2914 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2916 girdir = $(datadir)/gir-1.0
2918 src/gudev/GUdev-1.0.gir
2920 typelibsdir = $(libdir)/girepository-1.0
2922 src/gudev/GUdev-1.0.typelib
2924 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2925 endif # HAVE_INTROSPECTION
2927 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2928 libgudev-install-hook:
2929 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2931 libgudev-uninstall-hook:
2932 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2934 INSTALL_EXEC_HOOKS += libgudev-install-hook
2935 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2939 src/gudev/gudev-1.0.pc.in \
2940 src/gudev/gudevmarshal.list \
2941 src/gudev/gudevenumtypes.h.template \
2942 src/gudev/gudevenumtypes.c.template \
2943 src/gudev/gjs-example.js \
2944 src/gudev/seed-example-enum.js \
2945 src/gudev/seed-example.js
2947 # ------------------------------------------------------------------------------
2948 mtd_probe_SOURCES = \
2949 src/udev/mtd_probe/mtd_probe.c \
2950 src/udev/mtd_probe/mtd_probe.h \
2951 src/udev/mtd_probe/probe_smartmedia.c
2953 dist_udevrules_DATA += \
2954 rules/75-probe_mtd.rules
2956 udevlibexec_PROGRAMS += \
2959 # ------------------------------------------------------------------------------
2960 libsystemd_id128_la_SOURCES = \
2961 src/libsystemd-id128/libsystemd-id128.sym \
2962 src/libsystemd-id128/sd-id128.c
2964 libsystemd_id128_la_CFLAGS = \
2968 libsystemd_id128_la_LDFLAGS = \
2970 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2971 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2973 libsystemd_id128_la_LIBADD = \
2974 libsystemd-daemon-internal.la \
2975 libsystemd-shared.la
2977 libsystemd_id128_internal_la_SOURCES = \
2978 $(libsystemd_id128_la_SOURCES)
2980 test_id128_SOURCES = \
2981 src/test/test-id128.c
2983 test_id128_LDADD = \
2984 libsystemd-id128-internal.la \
2985 libsystemd-daemon-internal.la \
2986 libsystemd-shared.la
2991 pkginclude_HEADERS += \
2992 src/systemd/sd-id128.h
2994 lib_LTLIBRARIES += \
2997 noinst_LTLIBRARIES += \
2998 libsystemd-id128-internal.la
3000 pkgconfiglib_DATA += \
3001 src/libsystemd-id128/libsystemd-id128.pc
3003 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3004 libsystemd-id128-install-hook:
3005 libname=libsystemd-id128.so && $(move-to-rootlibdir)
3007 libsystemd-id128-uninstall-hook:
3008 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
3010 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
3011 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
3014 src/libsystemd-id128/libsystemd-id128.pc.in
3016 # ------------------------------------------------------------------------------
3018 rootlibexec_PROGRAMS += \
3021 systemd_activate_SOURCES = \
3022 src/activate/activate.c
3024 systemd_activate_LDADD = \
3025 libsystemd-label.la \
3026 libsystemd-daemon-internal.la \
3027 libsystemd-shared.la
3029 # ------------------------------------------------------------------------------
3030 systemd_journald_SOURCES = \
3031 src/journal/journald.c \
3032 src/journal/journald-server.h
3034 systemd_journald_LDADD = \
3035 libsystemd-journal-core.la \
3036 libsystemd-bus-internal.la \
3037 libsystemd-shared.la
3039 systemd_cat_SOURCES = \
3042 systemd_cat_LDADD = \
3043 libsystemd-journal-core.la
3045 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3046 journalctl_CFLAGS = \
3049 journalctl_SOURCES = \
3050 src/journal/journalctl.c
3052 journalctl_LDADD = \
3053 libsystemd-journal-internal.la \
3054 libsystemd-id128-internal.la \
3055 libsystemd-logs.la \
3056 libsystemd-shared.la
3059 journalctl_LDADD += \
3064 journalctl_SOURCES += \
3065 src/journal/journal-qrcode.c \
3066 src/journal/journal-qrcode.h
3068 journalctl_CFLAGS += \
3071 journalctl_LDADD += \
3075 test_journal_SOURCES = \
3076 src/journal/test-journal.c
3078 test_journal_LDADD = \
3079 libsystemd-journal-core.la
3081 test_journal_send_SOURCES = \
3082 src/journal/test-journal-send.c
3084 test_journal_send_LDADD = \
3085 libsystemd-journal-core.la
3087 test_journal_syslog_SOURCES = \
3088 src/journal/test-journal-syslog.c
3090 test_journal_syslog_LDADD = \
3091 libsystemd-journal-core.la
3093 test_journal_match_SOURCES = \
3094 src/journal/test-journal-match.c
3096 test_journal_match_LDADD = \
3097 libsystemd-journal-core.la
3099 test_journal_enum_SOURCES = \
3100 src/journal/test-journal-enum.c
3102 test_journal_enum_LDADD = \
3103 libsystemd-journal-core.la
3105 test_journal_stream_SOURCES = \
3106 src/journal/test-journal-stream.c
3108 test_journal_stream_LDADD = \
3109 libsystemd-journal-core.la
3111 test_journal_flush_SOURCES = \
3112 src/journal/test-journal-flush.c
3114 test_journal_flush_LDADD = \
3115 libsystemd-journal-core.la
3117 test_journal_init_SOURCES = \
3118 src/journal/test-journal-init.c
3120 test_journal_init_LDADD = \
3121 libsystemd-journal-core.la
3123 test_journal_verify_SOURCES = \
3124 src/journal/test-journal-verify.c
3126 test_journal_verify_LDADD = \
3127 libsystemd-journal-core.la
3129 test_journal_interleaving_SOURCES = \
3130 src/journal/test-journal-interleaving.c
3132 test_journal_interleaving_LDADD = \
3133 libsystemd-journal-core.la
3135 test_mmap_cache_SOURCES = \
3136 src/journal/test-mmap-cache.c
3138 test_mmap_cache_LDADD = \
3139 libsystemd-journal-core.la
3141 test_catalog_SOURCES = \
3142 src/journal/test-catalog.c
3144 test_catalog_CPPFLAGS = \
3146 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3148 test_catalog_LDADD = \
3149 libsystemd-journal-core.la
3151 libsystemd_journal_la_SOURCES = \
3152 src/journal/libsystemd-journal.sym \
3153 src/journal/sd-journal.c \
3154 src/systemd/sd-journal.h \
3155 src/systemd/_sd-common.h \
3156 src/journal/journal-file.c \
3157 src/journal/journal-file.h \
3158 src/journal/journal-vacuum.c \
3159 src/journal/journal-vacuum.h \
3160 src/journal/journal-verify.c \
3161 src/journal/journal-verify.h \
3162 src/journal/lookup3.c \
3163 src/journal/lookup3.h \
3164 src/journal/journal-send.c \
3165 src/journal/journal-def.h \
3166 src/journal/compress.h \
3167 src/journal/catalog.c \
3168 src/journal/catalog.h \
3169 src/journal/mmap-cache.c \
3170 src/journal/mmap-cache.h
3172 libsystemd_journal_la_CFLAGS = \
3176 libsystemd_journal_la_LDFLAGS = \
3178 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
3179 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
3181 libsystemd_journal_la_LIBADD = \
3182 libsystemd-label.la \
3183 libsystemd-daemon-internal.la \
3184 libsystemd-id128-internal.la \
3185 libsystemd-shared.la
3187 libsystemd_journal_internal_la_SOURCES = \
3188 $(libsystemd_journal_la_SOURCES)
3190 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3191 libsystemd_journal_internal_la_CFLAGS = \
3194 libsystemd_journal_internal_la_LIBADD =
3197 libsystemd_journal_la_SOURCES += \
3198 src/journal/compress.c
3200 libsystemd_journal_la_CFLAGS += \
3203 libsystemd_journal_la_LIBADD += \
3206 libsystemd_journal_internal_la_CFLAGS += \
3209 libsystemd_journal_internal_la_LIBADD += \
3213 libsystemd_journal_core_la_SOURCES = \
3214 src/journal/journald-kmsg.c \
3215 src/journal/journald-kmsg.h \
3216 src/journal/journald-syslog.c \
3217 src/journal/journald-syslog.h \
3218 src/journal/journald-stream.c \
3219 src/journal/journald-stream.h \
3220 src/journal/journald-server.c \
3221 src/journal/journald-server.h \
3222 src/journal/journald-console.c \
3223 src/journal/journald-console.h \
3224 src/journal/journald-native.c \
3225 src/journal/journald-native.h \
3226 src/journal/journald-rate-limit.c \
3227 src/journal/journald-rate-limit.h \
3228 src/journal/journal-internal.h
3230 nodist_libsystemd_journal_core_la_SOURCES = \
3231 src/journal/journald-gperf.c
3233 libsystemd_journal_core_la_LIBADD = \
3234 libsystemd-journal-internal.la \
3235 libudev-internal.la \
3236 libsystemd-capability.la \
3237 libsystemd-label.la \
3238 libsystemd-daemon-internal.la \
3239 libsystemd-id128-internal.la \
3240 libsystemd-shared.la
3243 libsystemd_journal_core_la_LIBADD += \
3244 libsystemd-login-internal.la
3248 libsystemd_journal_core_la_LIBADD += \
3252 noinst_LTLIBRARIES += \
3253 libsystemd-journal-core.la
3256 libsystemd_journal_la_SOURCES += \
3257 src/journal/journal-authenticate.c \
3258 src/journal/journal-authenticate.h \
3259 src/journal/fsprg.c \
3262 libsystemd_journal_la_CFLAGS += \
3266 libsystemd_journal_la_LIBADD += \
3269 libsystemd_journal_internal_la_CFLAGS += \
3273 libsystemd_journal_internal_la_LIBADD += \
3277 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3278 # needed. Also, grant read access to new journal files to members of
3279 # "adm" and "wheel".
3280 libsystemd-journal-install-hook:
3281 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3282 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3283 -chown 0:0 $(DESTDIR)/var/log/journal
3284 -chmod 755 $(DESTDIR)/var/log/journal
3285 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3286 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3288 libsystemd-journal-uninstall-hook:
3289 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3291 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3292 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3294 # ------------------------------------------------------------------------------
3296 # Update catalog on installation. Do not bother if installing
3297 # in DESTDIR, since this is likely for packaging purposes.
3298 catalog-update-hook:
3299 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3301 INSTALL_DATA_HOOKS += \
3304 catalog-remove-hook:
3305 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3307 UNINSTALL_DATA_HOOKS += \
3316 test-journal-syslog \
3317 test-journal-match \
3318 test-journal-stream \
3320 test-journal-verify \
3321 test-journal-interleaving \
3322 test-journal-flush \
3326 pkginclude_HEADERS += \
3327 src/systemd/sd-journal.h \
3328 src/systemd/sd-messages.h \
3329 src/systemd/_sd-common.h
3331 lib_LTLIBRARIES += \
3332 libsystemd-journal.la
3334 noinst_LTLIBRARIES += \
3335 libsystemd-journal-internal.la
3337 rootlibexec_PROGRAMS += \
3340 rootbin_PROGRAMS += \
3346 dist_systemunit_DATA += \
3347 units/systemd-journald.socket
3349 nodist_systemunit_DATA += \
3350 units/systemd-journald.service \
3351 units/systemd-journal-flush.service
3353 dist_pkgsysconf_DATA += \
3354 src/journal/journald.conf
3356 pkgconfiglib_DATA += \
3357 src/journal/libsystemd-journal.pc
3359 dist_catalog_DATA = \
3360 catalog/systemd.fr.catalog \
3361 catalog/systemd.ru.catalog \
3362 catalog/systemd.it.catalog \
3363 catalog/systemd.catalog
3365 SOCKETS_TARGET_WANTS += \
3366 systemd-journald.socket
3367 SYSINIT_TARGET_WANTS += \
3368 systemd-journald.service \
3369 systemd-journal-flush.service
3372 src/journal/libsystemd-journal.pc.in \
3373 units/systemd-journald.service.in \
3374 units/systemd-journal-flush.service.in \
3375 src/journal/journald-gperf.gperf
3378 src/journal/journald-gperf.c
3380 # ------------------------------------------------------------------------------
3382 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3384 rootlibexec_PROGRAMS += \
3385 systemd-journal-gatewayd
3387 systemd_journal_gatewayd_SOURCES = \
3388 src/journal/journal-gatewayd.c \
3389 src/journal/microhttpd-util.h \
3390 src/journal/microhttpd-util.c
3392 systemd_journal_gatewayd_LDADD = \
3393 libsystemd-logs.la \
3394 libsystemd-journal-internal.la \
3395 libsystemd-id128-internal.la \
3396 libsystemd-daemon-internal.la \
3397 libsystemd-bus-internal.la \
3398 libsystemd-shared.la \
3401 systemd_journal_gatewayd_CFLAGS = \
3403 $(MICROHTTPD_CFLAGS)
3405 systemd_journal_gatewayd_CPPFLAGS = \
3407 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3409 dist_systemunit_DATA += \
3410 units/systemd-journal-gatewayd.socket
3412 nodist_systemunit_DATA += \
3413 units/systemd-journal-gatewayd.service
3415 dist_gatewayddocumentroot_DATA = \
3416 src/journal/browse.html
3421 units/systemd-journal-gatewayd.service.in
3423 # ------------------------------------------------------------------------------
3425 systemd_socket_proxyd_SOURCES = \
3426 src/socket-proxy/socket-proxyd.c
3428 systemd_socket_proxyd_LDADD = \
3429 libsystemd-logs.la \
3430 libsystemd-bus-internal.la \
3431 libsystemd-journal-internal.la \
3432 libsystemd-id128-internal.la \
3433 libsystemd-daemon-internal.la \
3434 libsystemd-shared.la
3436 # ------------------------------------------------------------------------------
3438 systemd_coredump_SOURCES = \
3439 src/journal/coredump.c
3441 systemd_coredump_LDADD = \
3442 libsystemd-journal-internal.la \
3443 libsystemd-label.la \
3444 libsystemd-shared.la
3447 systemd_coredump_LDADD += \
3448 libsystemd-login-internal.la
3451 rootlibexec_PROGRAMS += \
3454 systemd_coredumpctl_SOURCES = \
3455 src/journal/coredumpctl.c
3457 systemd_coredumpctl_LDADD = \
3458 libsystemd-journal-internal.la \
3459 libsystemd-id128-internal.la \
3460 libsystemd-shared.la
3465 dist_bashcompletion_DATA += \
3466 shell-completion/bash/systemd-coredumpctl
3468 dist_zshcompletion_DATA += \
3469 shell-completion/zsh/_systemd-coredumpctl
3472 sysctl.d/50-coredump.conf
3475 sysctl.d/50-coredump.conf
3479 sysctl.d/50-coredump.conf.in
3481 # ------------------------------------------------------------------------------
3483 systemd_binfmt_SOURCES = \
3486 systemd_binfmt_LDADD = \
3487 libsystemd-shared.la
3489 rootlibexec_PROGRAMS += \
3492 dist_systemunit_DATA += \
3493 units/proc-sys-fs-binfmt_misc.automount \
3494 units/proc-sys-fs-binfmt_misc.mount
3496 nodist_systemunit_DATA += \
3497 units/systemd-binfmt.service
3500 $(prefix)/lib/binfmt.d \
3501 $(sysconfdir)/binfmt.d
3503 SYSINIT_TARGET_WANTS += \
3504 systemd-binfmt.service \
3505 proc-sys-fs-binfmt_misc.automount
3510 units/systemd-binfmt.service.in
3512 # ------------------------------------------------------------------------------
3514 systemd_vconsole_setup_SOURCES = \
3515 src/vconsole/vconsole-setup.c
3517 systemd_vconsole_setup_LDADD = \
3518 libsystemd-shared.la
3520 rootlibexec_PROGRAMS += \
3521 systemd-vconsole-setup
3523 nodist_systemunit_DATA += \
3524 units/systemd-vconsole-setup.service
3526 SYSINIT_TARGET_WANTS += \
3527 systemd-vconsole-setup.service
3531 units/systemd-vconsole-setup.service.in
3533 # ------------------------------------------------------------------------------
3535 systemd_readahead_SOURCES = \
3536 src/readahead/readahead.c \
3537 src/readahead/readahead-collect.c \
3538 src/readahead/readahead-replay.c \
3539 src/readahead/readahead-analyze.c \
3540 src/readahead/readahead-common.c \
3541 src/readahead/readahead-common.h
3543 systemd_readahead_LDADD = \
3544 libsystemd-daemon-internal.la \
3545 libudev-internal.la \
3546 libsystemd-shared.la
3549 src/readahead/sd-readahead.c \
3550 src/systemd/sd-readahead.h
3552 rootlibexec_PROGRAMS += \
3555 dist_systemunit_DATA += \
3556 units/systemd-readahead-drop.service \
3557 units/systemd-readahead-done.timer
3559 nodist_systemunit_DATA += \
3560 units/systemd-readahead-collect.service \
3561 units/systemd-readahead-replay.service \
3562 units/systemd-readahead-done.service
3567 units/systemd-readahead-collect.service.in \
3568 units/systemd-readahead-replay.service.in \
3569 units/systemd-readahead-done.service.in
3571 # ------------------------------------------------------------------------------
3573 systemd_bootchart_SOURCES = \
3574 src/bootchart/bootchart.c \
3575 src/bootchart/bootchart.h \
3576 src/bootchart/store.c \
3577 src/bootchart/store.h \
3578 src/bootchart/svg.c \
3581 systemd_bootchart_LDADD = \
3582 libsystemd-journal-internal.la \
3583 libsystemd-shared.la
3585 rootlibexec_PROGRAMS += \
3588 dist_pkgsysconf_DATA += \
3589 src/bootchart/bootchart.conf
3592 # ------------------------------------------------------------------------------
3593 if ENABLE_QUOTACHECK
3594 rootlibexec_PROGRAMS += \
3597 nodist_systemunit_DATA += \
3598 units/systemd-quotacheck.service
3600 systemd_quotacheck_SOURCES = \
3601 src/quotacheck/quotacheck.c
3603 systemd_quotacheck_LDADD = \
3604 libsystemd-shared.la
3608 units/systemd-quotacheck.service.in
3610 nodist_systemunit_DATA += \
3611 units/quotaon.service
3613 # ------------------------------------------------------------------------------
3614 if ENABLE_RANDOMSEED
3615 rootlibexec_PROGRAMS += \
3618 nodist_systemunit_DATA += \
3619 units/systemd-random-seed.service
3621 systemd_random_seed_SOURCES = \
3622 src/random-seed/random-seed.c
3624 systemd_random_seed_LDADD = \
3625 libsystemd-label.la \
3626 libsystemd-shared.la
3628 SYSINIT_TARGET_WANTS += \
3629 systemd-random-seed.service
3634 units/systemd-random-seed.service.in
3636 # ------------------------------------------------------------------------------
3638 rootlibexec_PROGRAMS += \
3641 nodist_systemunit_DATA += \
3642 units/systemd-backlight@.service
3644 systemd_backlight_SOURCES = \
3645 src/backlight/backlight.c
3647 systemd_backlight_LDADD = \
3648 libsystemd-label.la \
3649 libudev-internal.la \
3650 libsystemd-shared.la
3654 units/systemd-backlight@.service.in
3656 # ------------------------------------------------------------------------------
3658 rootlibexec_PROGRAMS += \
3661 nodist_systemunit_DATA += \
3662 units/systemd-rfkill@.service
3664 systemd_rfkill_SOURCES = \
3667 systemd_rfkill_LDADD = \
3668 libsystemd-label.la \
3669 libudev-internal.la \
3670 libsystemd-shared.la
3674 units/systemd-rfkill@.service.in
3676 # ------------------------------------------------------------------------------
3677 if HAVE_LIBCRYPTSETUP
3678 rootlibexec_PROGRAMS += \
3681 systemgenerator_PROGRAMS += \
3682 systemd-cryptsetup-generator
3684 dist_systemunit_DATA += \
3685 units/cryptsetup.target
3687 systemd_cryptsetup_SOURCES = \
3688 src/cryptsetup/cryptsetup.c
3690 systemd_cryptsetup_CFLAGS = \
3692 $(LIBCRYPTSETUP_CFLAGS)
3694 systemd_cryptsetup_LDADD = \
3695 libsystemd-label.la \
3696 libudev-internal.la \
3697 libsystemd-shared.la \
3698 $(LIBCRYPTSETUP_LIBS)
3700 systemd_cryptsetup_generator_SOURCES = \
3701 src/cryptsetup/cryptsetup-generator.c
3703 systemd_cryptsetup_generator_LDADD = \
3704 libsystemd-label.la \
3705 libsystemd-shared.la
3707 SYSINIT_TARGET_WANTS += \
3712 # ------------------------------------------------------------------------------
3714 systemd_hostnamed_SOURCES = \
3715 src/hostname/hostnamed.c
3717 systemd_hostnamed_LDADD = \
3718 libsystemd-label.la \
3719 libsystemd-bus-internal.la \
3720 libsystemd-id128-internal.la \
3721 libsystemd-daemon-internal.la \
3722 libsystemd-shared.la
3724 rootlibexec_PROGRAMS += \
3727 nodist_systemunit_DATA += \
3728 units/systemd-hostnamed.service
3730 dist_systemunit_DATA += \
3731 units/org.freedesktop.hostname1.busname
3733 dist_dbuspolicy_DATA += \
3734 src/hostname/org.freedesktop.hostname1.conf
3736 dist_dbussystemservice_DATA += \
3737 src/hostname/org.freedesktop.hostname1.service
3739 polkitpolicy_files += \
3740 src/hostname/org.freedesktop.hostname1.policy
3742 SYSTEM_UNIT_ALIASES += \
3743 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3745 BUSNAMES_TARGET_WANTS += \
3746 org.freedesktop.hostname1.busname
3748 hostnamectl_SOURCES = \
3749 src/hostname/hostnamectl.c
3751 hostnamectl_LDADD = \
3752 libsystemd-bus-internal.la \
3753 libsystemd-id128-internal.la \
3754 libsystemd-daemon-internal.la \
3755 libsystemd-shared.la
3760 dist_bashcompletion_DATA += \
3761 shell-completion/bash/hostnamectl
3763 dist_zshcompletion_DATA += \
3764 shell-completion/zsh/_hostnamectl
3768 polkitpolicy_in_files += \
3769 src/hostname/org.freedesktop.hostname1.policy.in
3772 units/systemd-hostnamed.service.in
3774 # ------------------------------------------------------------------------------
3776 systemd_bus_driverd_SOURCES = \
3777 src/bus-driverd/bus-driverd.c
3779 systemd_bus_driverd_LDADD = \
3780 libsystemd-bus-internal.la \
3781 libsystemd-id128-internal.la \
3782 libsystemd-daemon-internal.la \
3783 libsystemd-shared.la
3785 rootlibexec_PROGRAMS += \
3788 nodist_systemunit_DATA += \
3789 units/systemd-bus-driverd.service
3791 dist_systemunit_DATA += \
3792 units/org.freedesktop.DBus.busname
3794 BUSNAMES_TARGET_WANTS += \
3795 org.freedesktop.DBus.busname
3797 nodist_userunit_DATA += \
3798 units/user/systemd-bus-driverd.service
3800 USER_BUSNAMES_TARGET_WANTS += \
3801 org.freedesktop.DBus.busname
3803 USER_UNIT_ALIASES += \
3804 $(systemunitdir)/org.freedesktop.DBus.busname org.freedesktop.DBus.busname
3808 units/systemd-bus-driverd.service.in \
3809 units/user/systemd-bus-driverd.service.in
3811 # ------------------------------------------------------------------------------
3813 systemd_localed_SOURCES = \
3814 src/locale/localed.c
3816 systemd_localed_LDADD = \
3817 libsystemd-label.la \
3818 libsystemd-bus-internal.la \
3819 libsystemd-id128-internal.la \
3820 libsystemd-daemon-internal.la \
3821 libsystemd-shared.la
3823 nodist_systemunit_DATA += \
3824 units/systemd-localed.service
3826 dist_systemunit_DATA += \
3827 units/org.freedesktop.locale1.busname
3829 rootlibexec_PROGRAMS += \
3832 dist_dbuspolicy_DATA += \
3833 src/locale/org.freedesktop.locale1.conf
3835 dist_dbussystemservice_DATA += \
3836 src/locale/org.freedesktop.locale1.service
3838 polkitpolicy_files += \
3839 src/locale/org.freedesktop.locale1.policy
3841 SYSTEM_UNIT_ALIASES += \
3842 systemd-localed.service dbus-org.freedesktop.locale1.service
3844 BUSNAMES_TARGET_WANTS += \
3845 org.freedesktop.locale1.busname
3847 dist_pkgdata_DATA += \
3848 src/locale/kbd-model-map
3850 dist_noinst_SCRIPT = \
3851 src/locale/generate-kbd-model-map
3853 update-kbd-model-map: src/locale/generate-kbd-model-map
3854 $PYTHON $< > src/locale/kbd-model-map
3856 localectl_SOURCES = \
3857 src/locale/localectl.c
3860 libsystemd-bus-internal.la \
3861 libsystemd-id128-internal.la \
3862 libsystemd-daemon-internal.la \
3863 libsystemd-shared.la
3868 dist_bashcompletion_DATA += \
3869 shell-completion/bash/localectl
3871 dist_zshcompletion_DATA += \
3872 shell-completion/zsh/_localectl
3876 polkitpolicy_in_files += \
3877 src/locale/org.freedesktop.locale1.policy.in
3880 units/systemd-localed.service.in
3882 # ------------------------------------------------------------------------------
3884 systemd_timedated_SOURCES = \
3885 src/timedate/timedated.c
3887 systemd_timedated_LDADD = \
3888 libsystemd-label.la \
3889 libsystemd-bus-internal.la \
3890 libsystemd-id128-internal.la \
3891 libsystemd-daemon-internal.la \
3892 libsystemd-shared.la
3894 rootlibexec_PROGRAMS += \
3897 dist_dbussystemservice_DATA += \
3898 src/timedate/org.freedesktop.timedate1.service
3900 dist_dbuspolicy_DATA += \
3901 src/timedate/org.freedesktop.timedate1.conf
3903 nodist_systemunit_DATA += \
3904 units/systemd-timedated.service
3906 dist_systemunit_DATA += \
3907 units/org.freedesktop.timedate1.busname
3909 polkitpolicy_files += \
3910 src/timedate/org.freedesktop.timedate1.policy
3913 $(prefix)/lib/systemd/ntp-units.d \
3914 $(sysconfdir)/systemd/ntp-units.d
3916 SYSTEM_UNIT_ALIASES += \
3917 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3919 BUSNAMES_TARGET_WANTS += \
3920 org.freedesktop.timedate1.busname
3922 timedatectl_SOURCES = \
3923 src/timedate/timedatectl.c
3925 timedatectl_LDADD = \
3926 libsystemd-bus-internal.la \
3927 libsystemd-id128-internal.la \
3928 libsystemd-daemon-internal.la \
3929 libsystemd-shared.la
3934 dist_bashcompletion_DATA += \
3935 shell-completion/bash/timedatectl
3937 dist_zshcompletion_DATA += \
3938 shell-completion/zsh/_timedatectl
3941 polkitpolicy_in_files += \
3942 src/timedate/org.freedesktop.timedate1.policy.in
3945 units/systemd-timedated.service.in
3947 # ------------------------------------------------------------------------------
3949 libnss_myhostname_la_SOURCES = \
3950 src/nss-myhostname/nss-myhostname.c \
3951 src/nss-myhostname/ifconf.h \
3952 src/nss-myhostname/netlink.c
3954 libnss_myhostname_la_LDFLAGS = \
3962 lib_LTLIBRARIES += \
3963 libnss_myhostname.la
3966 # ------------------------------------------------------------------------------
3967 libsystemd_dhcp_la_SOURCES = \
3968 src/systemd/sd-dhcp-client.h \
3969 src/libsystemd-dhcp/dhcp-protocol.h \
3970 src/libsystemd-dhcp/dhcp-internal.h \
3971 src/libsystemd-dhcp/dhcp-network.c \
3972 src/libsystemd-dhcp/dhcp-option.c \
3973 src/libsystemd-dhcp/dhcp-client.c
3975 noinst_LTLIBRARIES += \
3978 libsystemd_dhcp_la_LIBADD = \
3979 libsystemd-bus-internal.la \
3980 libsystemd-shared.la
3982 test_dhcp_option_SOURCES = \
3983 src/libsystemd-dhcp/dhcp-protocol.h \
3984 src/libsystemd-dhcp/dhcp-internal.h \
3985 src/libsystemd-dhcp/test-dhcp-option.c
3987 test_dhcp_option_LDADD = \
3988 libsystemd-dhcp.la \
3989 libsystemd-shared.la
3991 test_dhcp_client_SOURCES = \
3992 src/libsystemd-dhcp/dhcp-protocol.h \
3993 src/systemd/sd-dhcp-client.h \
3994 src/libsystemd-dhcp/dhcp-internal.h \
3995 src/libsystemd-dhcp/test-dhcp-client.c
3997 test_dhcp_client_LDADD = \
3998 libsystemd-bus-internal.la \
3999 libsystemd-daemon-internal.la \
4000 libsystemd-id128-internal.la \
4001 libsystemd-dhcp.la \
4002 libsystemd-shared.la
4008 # ------------------------------------------------------------------------------
4010 systemd_machined_SOURCES = \
4011 src/machine/machined.c \
4012 src/machine/machined.h
4014 systemd_machined_LDADD = \
4015 libsystemd-machine-core.la
4017 rootlibexec_PROGRAMS += \
4020 libsystemd_machine_core_la_SOURCES = \
4021 src/machine/machined-dbus.c \
4022 src/machine/machine.c \
4023 src/machine/machine.h \
4024 src/machine/machine-dbus.c
4026 libsystemd_machine_core_la_LIBADD = \
4027 libsystemd-label.la \
4028 libsystemd-daemon-internal.la \
4029 libsystemd-bus-internal.la \
4030 libsystemd-id128-internal.la \
4031 libudev-internal.la \
4032 libsystemd-shared.la
4034 noinst_LTLIBRARIES += \
4035 libsystemd-machine-core.la
4037 machinectl_SOURCES = \
4038 src/machine/machinectl.c
4040 machinectl_LDADD = \
4041 libsystemd-bus-internal.la \
4042 libsystemd-id128-internal.la \
4043 libsystemd-daemon-internal.la \
4044 libsystemd-shared.la
4046 rootbin_PROGRAMS += \
4049 test_machine_tables_SOURCES = \
4050 src/machine/test-machine-tables.c
4052 test_machine_tables_LDADD = \
4053 libsystemd-machine-core.la
4058 nodist_systemunit_DATA += \
4059 units/systemd-machined.service
4061 dist_systemunit_DATA += \
4062 units/machine.slice \
4063 units/org.freedesktop.machine1.busname
4065 dist_dbussystemservice_DATA += \
4066 src/machine/org.freedesktop.machine1.service
4068 dist_dbuspolicy_DATA += \
4069 src/machine/org.freedesktop.machine1.conf
4071 dist_zshcompletion_DATA += \
4072 shell-completion/zsh/_machinectl
4074 SYSTEM_UNIT_ALIASES += \
4075 systemd-machined.service dbus-org.freedesktop.machine1.service
4077 BUSNAMES_TARGET_WANTS += \
4078 org.freedesktop.machine1.busname
4081 units/systemd-machined.service.in
4085 # ------------------------------------------------------------------------------
4087 rootlibexec_PROGRAMS += \
4090 systemd_networkd_SOURCES = \
4091 src/network/networkd.h \
4092 src/network/networkd.c \
4093 src/network/networkd-link.c \
4094 src/network/networkd-bridge.c \
4095 src/network/networkd-network.c \
4096 src/network/networkd-address.c \
4097 src/network/networkd-route.c \
4098 src/network/networkd-manager.c
4100 nodist_systemd_networkd_SOURCES = \
4101 src/network/networkd-gperf.c
4103 systemd_networkd_LDADD = \
4104 libudev-internal.la \
4105 libsystemd-daemon-internal.la \
4106 libsystemd-bus-internal.la \
4107 libsystemd-id128-internal.la \
4108 libsystemd-rtnl.la \
4109 libsystemd-dhcp.la \
4110 libsystemd-shared.la
4112 nodist_systemunit_DATA += \
4113 units/systemd-networkd.service
4115 MULTI_USER_TARGET_WANTS += \
4116 systemd-networkd.service
4118 test_network_SOURCES = \
4119 src/network/test-network.c \
4120 src/network/networkd.h \
4121 src/network/networkd-link.c \
4122 src/network/networkd-bridge.c \
4123 src/network/networkd-network.c \
4124 src/network/networkd-address.c \
4125 src/network/networkd-route.c \
4126 src/network/networkd-manager.c \
4127 src/network/networkd-gperf.c
4129 test_network_LDADD = \
4130 libudev-internal.la \
4131 libsystemd-bus-internal.la \
4132 libsystemd-id128-internal.la \
4133 libsystemd-daemon-internal.la \
4134 libsystemd-rtnl.la \
4135 libsystemd-dhcp.la \
4136 libsystemd-shared.la
4142 src/network/networkd-gperf.gperf \
4143 units/systemd-networkd.service.in
4146 src/network/networkd-gperf.c
4149 # ------------------------------------------------------------------------------
4151 systemd_logind_SOURCES = \
4152 src/login/logind.c \
4155 nodist_systemd_logind_SOURCES = \
4156 src/login/logind-gperf.c
4158 systemd_logind_LDADD = \
4159 libsystemd-logind-core.la
4161 libsystemd_logind_core_la_SOURCES = \
4162 src/login/logind-core.c \
4163 src/login/logind-device.c \
4164 src/login/logind-device.h \
4165 src/login/logind-button.c \
4166 src/login/logind-button.h \
4167 src/login/logind-action.c \
4168 src/login/logind-action.h \
4169 src/login/logind-seat.c \
4170 src/login/logind-seat.h \
4171 src/login/logind-session.c \
4172 src/login/logind-session.h \
4173 src/login/logind-session-device.c \
4174 src/login/logind-session-device.h \
4175 src/login/logind-user.c \
4176 src/login/logind-user.h \
4177 src/login/logind-inhibit.c \
4178 src/login/logind-inhibit.h \
4179 src/login/logind-dbus.c \
4180 src/login/logind-session-dbus.c \
4181 src/login/logind-seat-dbus.c \
4182 src/login/logind-user-dbus.c \
4183 src/login/logind-acl.h \
4184 src/login/login-shared.c \
4185 src/login/login-shared.h
4187 libsystemd_logind_core_la_LIBADD = \
4188 libsystemd-label.la \
4189 libsystemd-capability.la \
4190 libsystemd-daemon-internal.la \
4191 libsystemd-id128-internal.la \
4192 libsystemd-bus-internal.la \
4193 libudev-internal.la \
4194 libsystemd-shared.la
4197 libsystemd_logind_core_la_SOURCES += \
4198 src/login/logind-acl.c
4200 libsystemd_logind_core_la_LIBADD += \
4204 noinst_LTLIBRARIES += \
4205 libsystemd-logind-core.la
4207 systemd_user_sessions_SOURCES = \
4208 src/login/user-sessions.c
4210 systemd_user_sessions_LDADD = \
4211 libsystemd-shared.la
4213 rootlibexec_PROGRAMS += \
4215 systemd-user-sessions
4217 loginctl_SOURCES = \
4218 src/login/loginctl.c \
4219 src/login/sysfs-show.c
4222 libsystemd-bus-internal.la \
4223 libudev-internal.la \
4224 libsystemd-shared.la \
4225 libsystemd-id128-internal.la \
4226 libsystemd-daemon-internal.la
4228 rootbin_PROGRAMS += \
4231 dist_bashcompletion_DATA += \
4232 shell-completion/bash/loginctl
4234 dist_zshcompletion_DATA += \
4235 shell-completion/zsh/_loginctl \
4236 shell-completion/zsh/_systemd-inhibit
4238 systemd_inhibit_SOURCES = \
4241 systemd_inhibit_LDADD = \
4242 libsystemd-bus-internal.la \
4243 libsystemd-id128-internal.la \
4244 libsystemd-daemon-internal.la \
4245 libsystemd-shared.la
4247 rootbin_PROGRAMS += \
4250 test_login_SOURCES = \
4251 src/login/test-login.c
4253 test_login_LDADD = \
4254 libsystemd-login-internal.la \
4255 libsystemd-shared.la
4257 test_login_shared_SOURCES = \
4258 src/login/test-login-shared.c
4260 test_login_shared_LDADD = \
4261 libsystemd-login-internal.la \
4262 libsystemd-shared.la
4264 test_inhibit_SOURCES = \
4265 src/login/test-inhibit.c
4267 test_inhibit_LDADD = \
4268 libsystemd-bus-internal.la \
4269 libsystemd-daemon-internal.la \
4270 libsystemd-id128-internal.la \
4271 libsystemd-shared.la
4273 test_login_tables_SOURCES = \
4274 src/login/test-login-tables.c
4276 test_login_tables_LDADD = \
4277 libsystemd-logind-core.la
4287 libsystemd_login_la_SOURCES = \
4288 src/login/libsystemd-login.sym \
4289 src/login/sd-login.c \
4290 src/systemd/sd-login.h \
4291 src/login/login-shared.c \
4292 src/login/login-shared.h
4294 libsystemd_login_la_CFLAGS = \
4298 libsystemd_login_la_LDFLAGS = \
4300 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4301 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
4303 libsystemd_login_la_LIBADD = \
4304 libsystemd-daemon-internal.la \
4305 libsystemd-shared.la
4307 libsystemd_login_internal_la_SOURCES = \
4308 $(libsystemd_login_la_SOURCES)
4311 pam_systemd_la_SOURCES = \
4312 src/login/pam-module.c
4314 pam_systemd_la_CFLAGS = \
4319 pam_systemd_la_LDFLAGS = \
4325 -export-symbols-regex '^pam_sm_.*'
4327 pam_systemd_la_LIBADD = \
4328 libsystemd-capability.la \
4329 libsystemd-bus-internal.la \
4330 libsystemd-id128-internal.la \
4331 libsystemd-daemon-internal.la \
4332 libsystemd-shared.la \
4335 pamlib_LTLIBRARIES = \
4338 dist_pamconf_DATA = \
4339 src/login/systemd-user
4342 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4343 libsystemd-login-install-hook:
4344 libname=libsystemd-login.so && $(move-to-rootlibdir)
4346 libsystemd-login-uninstall-hook:
4347 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4349 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
4350 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
4352 nodist_systemunit_DATA += \
4353 units/systemd-logind.service \
4354 units/systemd-user-sessions.service
4356 dist_systemunit_DATA += \
4358 units/org.freedesktop.login1.busname
4360 dist_dbussystemservice_DATA += \
4361 src/login/org.freedesktop.login1.service
4363 dist_dbuspolicy_DATA += \
4364 src/login/org.freedesktop.login1.conf
4366 dist_pkgsysconf_DATA += \
4367 src/login/logind.conf
4369 pkginclude_HEADERS += \
4370 src/systemd/sd-login.h
4372 lib_LTLIBRARIES += \
4375 noinst_LTLIBRARIES += \
4376 libsystemd-login-internal.la
4378 pkgconfiglib_DATA += \
4379 src/login/libsystemd-login.pc
4381 polkitpolicy_files += \
4382 src/login/org.freedesktop.login1.policy
4387 MULTI_USER_TARGET_WANTS += \
4388 systemd-logind.service \
4389 systemd-user-sessions.service
4391 SYSTEM_UNIT_ALIASES += \
4392 systemd-logind.service dbus-org.freedesktop.login1.service
4394 BUSNAMES_TARGET_WANTS += \
4395 org.freedesktop.login1.busname
4397 if ENABLE_MULTI_SEAT_X
4399 systemd_multi_seat_x_SOURCES = \
4400 src/login/multi-seat-x.c
4402 systemd_multi_seat_x_LDADD = \
4403 libsystemd-label.la \
4404 libsystemd-shared.la
4406 rootlibexec_PROGRAMS += \
4407 systemd-multi-seat-x
4411 dist_udevrules_DATA += \
4412 src/login/70-uaccess.rules \
4413 src/login/70-power-switch.rules
4415 nodist_udevrules_DATA += \
4416 src/login/71-seat.rules \
4417 src/login/73-seat-late.rules
4420 src/login/logind-gperf.c \
4421 src/login/71-seat.rules \
4422 src/login/73-seat-late.rules
4425 polkitpolicy_in_files += \
4426 src/login/org.freedesktop.login1.policy.in
4429 src/login/logind-gperf.gperf \
4430 src/login/libsystemd-login.pc.in \
4431 src/login/71-seat.rules.in \
4432 src/login/73-seat-late.rules.in \
4433 units/systemd-logind.service.in \
4434 units/systemd-user-sessions.service.in
4436 # ------------------------------------------------------------------------------
4437 if HAVE_PYTHON_DEVEL
4438 pkgpyexec_LTLIBRARIES = \
4445 _journal_la_SOURCES = \
4446 src/python-systemd/_journal.c
4448 _journal_la_CFLAGS = \
4450 -fvisibility=default \
4451 $(PYTHON_DEVEL_CFLAGS)
4453 _journal_la_LDFLAGS = \
4459 _journal_la_LIBADD = \
4460 $(PYTHON_DEVEL_LIBS) \
4461 libsystemd-journal.la
4463 id128_la_SOURCES = \
4464 src/python-systemd/id128.c \
4465 src/python-systemd/id128-constants.h \
4466 src/python-systemd/pyutil.c \
4467 src/python-systemd/pyutil.h
4471 -fvisibility=default \
4472 $(PYTHON_DEVEL_CFLAGS) \
4473 -I$(top_builddir)/src/python-systemd
4475 id128_la_LDFLAGS = \
4482 $(PYTHON_DEVEL_LIBS) \
4485 _daemon_la_SOURCES = \
4486 src/python-systemd/_daemon.c \
4487 src/python-systemd/pyutil.c \
4488 src/python-systemd/pyutil.h
4490 _daemon_la_CFLAGS = \
4492 -fvisibility=default \
4493 $(PYTHON_DEVEL_CFLAGS) \
4494 -I$(top_builddir)/src/python-systemd
4496 _daemon_la_LDFLAGS = \
4502 _daemon_la_LIBADD = \
4503 $(PYTHON_DEVEL_LIBS) \
4504 libsystemd-daemon.la
4506 _reader_la_SOURCES = \
4507 src/python-systemd/_reader.c \
4508 src/python-systemd/pyutil.c \
4509 src/python-systemd/pyutil.h
4511 _reader_la_CFLAGS = \
4513 -fvisibility=default \
4514 $(PYTHON_DEVEL_CFLAGS)
4516 _reader_la_LDFLAGS = \
4522 _reader_la_LIBADD = \
4523 $(PYTHON_DEVEL_LIBS) \
4524 libsystemd-journal.la \
4525 libsystemd-id128.la \
4526 libsystemd-daemon-internal.la \
4527 libsystemd-shared.la
4529 login_la_SOURCES = \
4530 src/python-systemd/login.c \
4531 src/python-systemd/pyutil.c \
4532 src/python-systemd/pyutil.h
4536 -fvisibility=default \
4537 $(PYTHON_DEVEL_CFLAGS)
4539 login_la_LDFLAGS = \
4546 $(PYTHON_DEVEL_LIBS) \
4547 libsystemd-journal.la \
4548 libsystemd-login.la \
4549 libsystemd-daemon-internal.la \
4550 libsystemd-shared.la
4552 dist_pkgpyexec_PYTHON = \
4553 src/python-systemd/journal.py \
4554 src/python-systemd/daemon.py \
4555 src/python-systemd/__init__.py
4557 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4558 $(AM_V_at)$(MKDIR_P) $(dir $@)
4559 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4562 src/python-systemd/id128-constants.h
4564 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4566 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4567 $(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/
4568 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4571 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4572 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4575 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4576 $(MAKE) DESTDIR="$$dir" install && \
4577 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4582 CLEAN_LOCAL_HOOKS += clean-sphinx
4585 -rm -rf docs/html/python-systemd/
4587 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4589 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4590 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4592 # ------------------------------------------------------------------------------
4594 '|rootlibexecdir=$(rootlibexecdir)|' \
4595 '|rootbindir=$(rootbindir)|' \
4596 '|bindir=$(bindir)|' \
4597 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4598 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4599 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4600 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4601 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4602 '|pkgdatadir=$(pkgdatadir)|' \
4603 '|systemunitdir=$(systemunitdir)|' \
4604 '|userunitdir=$(userunitdir)|' \
4605 '|systempresetdir=$(systempresetdir)|' \
4606 '|userpresetdir=$(userpresetdir)|' \
4607 '|udevhwdbdir=$(udevhwdbdir)|' \
4608 '|udevrulesdir=$(udevrulesdir)|' \
4609 '|catalogdir=$(catalogdir)|' \
4610 '|tmpfilesdir=$(tmpfilesdir)|' \
4611 '|sysctldir=$(sysctldir)|' \
4612 '|systemgeneratordir=$(systemgeneratordir)|' \
4613 '|usergeneratordir=$(usergeneratordir)|' \
4614 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4615 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4616 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4617 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4618 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4619 '|prefix=$(prefix)|' \
4620 '|exec_prefix=$(exec_prefix)|' \
4621 '|libdir=$(libdir)|' \
4622 '|includedir=$(includedir)|' \
4623 '|VERSION=$(VERSION)|' \
4624 '|rootprefix=$(rootprefix)|' \
4625 '|udevlibexecdir=$(udevlibexecdir)|' \
4626 '|SUSHELL=$(SUSHELL)|' \
4627 '|DEBUGTTY=$(DEBUGTTY)|' \
4630 '|MKDIR_P=$(MKDIR_P)|' \
4631 '|QUOTAON=$(QUOTAON)|' \
4632 '|QUOTACHECK=$(QUOTACHECK)|' \
4633 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4634 '|VARLOGDIR=$(varlogdir)|' \
4635 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4636 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4637 '|PYTHON=$(PYTHON)|' \
4638 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4641 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4642 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4651 sysctl.d/%: sysctl.d/%.in
4657 src/core/macros.%: src/core/macros.%.in
4660 src/%.policy.in: src/%.policy.in.in
4668 $(AM_V_GEN)chmod +x $@
4670 src/%.c: src/%.gperf
4671 $(AM_V_at)$(MKDIR_P) $(dir $@)
4672 $(AM_V_GPERF)$(GPERF) < $< > $@
4675 $(AM_V_at)$(MKDIR_P) $(dir $@)
4676 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4679 $(AM_V_at)$(MKDIR_P) $(dir $@)
4680 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4682 units/user/%: units/%.m4
4683 $(AM_V_at)$(MKDIR_P) $(dir $@)
4684 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4687 nodist_polkitpolicy_DATA = \
4688 $(polkitpolicy_files) \
4689 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4693 $(polkitpolicy_in_files) \
4694 $(polkitpolicy_in_in_files)
4697 $(nodist_systemunit_DATA) \
4698 $(nodist_userunit_DATA) \
4699 $(pkgconfigdata_DATA) \
4700 $(pkgconfiglib_DATA) \
4701 $(nodist_polkitpolicy_DATA)
4703 # ------------------------------------------------------------------------------
4705 man/custom-entities.ent:
4706 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4707 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4708 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4712 man/custom-entities.ent
4716 --stringparam man.output.quietly 1 \
4717 --stringparam funcsynopsis.style ansi \
4718 --stringparam man.authors.section.enabled 0 \
4719 --stringparam man.copyright.section.enabled 0 \
4720 --stringparam systemd.version $(VERSION) \
4721 --path '$(builddir)/man:$(srcdir)/man'
4723 XSLTPROC_PROCESS_MAN = \
4724 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4726 XSLTPROC_PROCESS_HTML = \
4727 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4729 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4730 $(XSLTPROC_PROCESS_MAN)
4732 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4733 $(XSLTPROC_PROCESS_MAN)
4735 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4736 $(XSLTPROC_PROCESS_MAN)
4738 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4739 $(XSLTPROC_PROCESS_MAN)
4741 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4742 $(XSLTPROC_PROCESS_MAN)
4744 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4745 $(XSLTPROC_PROCESS_HTML)
4748 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4754 man/custom-html.xsl \
4757 # ------------------------------------------------------------------------------
4760 docs/sysvinit/README
4765 docs/sysvinit/README: docs/sysvinit/README.in
4768 docs/var-log/README: docs/var-log/README.in
4772 docs/sysvinit/README \
4777 docs/sysvinit/README.in \
4778 docs/var-log/README.in
4780 SOCKETS_TARGET_WANTS += \
4781 systemd-initctl.socket \
4782 systemd-shutdownd.socket
4785 RUNLEVEL1_TARGET_WANTS += \
4786 systemd-update-utmp-runlevel.service
4787 RUNLEVEL2_TARGET_WANTS += \
4788 systemd-update-utmp-runlevel.service
4789 RUNLEVEL3_TARGET_WANTS += \
4790 systemd-update-utmp-runlevel.service
4791 RUNLEVEL4_TARGET_WANTS += \
4792 systemd-update-utmp-runlevel.service
4793 RUNLEVEL5_TARGET_WANTS += \
4794 systemd-update-utmp-runlevel.service
4796 SYSINIT_TARGET_WANTS += \
4797 systemd-update-utmp.service
4798 LOCAL_FS_TARGET_WANTS += \
4799 systemd-remount-fs.service \
4801 MULTI_USER_TARGET_WANTS += \
4803 systemd-ask-password-wall.path
4804 SYSINIT_TARGET_WANTS += \
4805 dev-hugepages.mount \
4807 sys-kernel-config.mount \
4808 sys-kernel-debug.mount \
4809 sys-fs-fuse-connections.mount \
4810 systemd-sysctl.service \
4811 systemd-ask-password-console.path
4814 SYSTEM_UNIT_ALIASES += \
4815 poweroff.target runlevel0.target \
4816 rescue.target runlevel1.target \
4817 multi-user.target runlevel2.target \
4818 multi-user.target runlevel3.target \
4819 multi-user.target runlevel4.target \
4820 graphical.target runlevel5.target \
4821 reboot.target runlevel6.target
4824 SYSTEM_UNIT_ALIASES += \
4825 graphical.target default.target \
4826 reboot.target ctrl-alt-del.target \
4827 getty@.service autovt@.service
4829 USER_UNIT_ALIASES += \
4830 $(systemunitdir)/shutdown.target shutdown.target \
4831 $(systemunitdir)/sockets.target sockets.target \
4832 $(systemunitdir)/busnames.target busnames.target \
4833 $(systemunitdir)/timers.target timers.target \
4834 $(systemunitdir)/paths.target paths.target \
4835 $(systemunitdir)/bluetooth.target bluetooth.target \
4836 $(systemunitdir)/printer.target printer.target \
4837 $(systemunitdir)/sound.target sound.target \
4838 $(systemunitdir)/smartcard.target smartcard.target
4840 GENERAL_ALIASES += \
4841 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4842 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4843 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4844 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4848 $(systemunitdir)/runlevel1.target.wants \
4849 $(systemunitdir)/runlevel2.target.wants \
4850 $(systemunitdir)/runlevel3.target.wants \
4851 $(systemunitdir)/runlevel4.target.wants \
4852 $(systemunitdir)/runlevel5.target.wants
4856 $(prefix)/lib/modules-load.d \
4857 $(sysconfdir)/modules-load.d \
4858 $(prefix)/lib/systemd/network \
4859 $(sysconfdir)/systemd/network \
4860 $(prefix)/lib/sysctl.d \
4861 $(sysconfdir)/sysctl.d \
4862 $(prefix)/lib/kernel/install.d \
4863 $(sysconfdir)/kernel/install.d \
4864 $(systemshutdowndir) \
4866 $(systemgeneratordir) \
4867 $(usergeneratordir) \
4870 $(pkgsysconfdir)/system \
4871 $(pkgsysconfdir)/system/multi-user.target.wants \
4872 $(pkgsysconfdir)/system/getty.target.wants \
4873 $(pkgsysconfdir)/user \
4874 $(dbussessionservicedir) \
4875 $(sysconfdir)/xdg/systemd
4877 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4879 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4881 install-data-hook: $(INSTALL_DATA_HOOKS)
4883 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4885 clean-local: $(CLEAN_LOCAL_HOOKS)
4886 rm -rf $(abs_srcdir)/install-tree
4887 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4888 $(abs_srcdir)/hwdb/iab.txt
4890 DISTCHECK_CONFIGURE_FLAGS = \
4891 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4892 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4893 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4894 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4895 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4896 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4897 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4898 --with-rootprefix=$$dc_install_base \
4899 --disable-split-usr \
4903 DISTCHECK_CONFIGURE_FLAGS += \
4904 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4905 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4907 DISTCHECK_CONFIGURE_FLAGS += \
4908 --with-sysvinit-path= \
4909 --with-sysvrcnd-path=
4913 DISTCHECK_CONFIGURE_FLAGS += \
4918 ( cd $(top_srcdir)/hwdb && \
4919 wget -N http://www.linux-usb.org/usb.ids \
4920 http://pci-ids.ucw.cz/v2.2/pci.ids \
4921 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4922 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4926 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4927 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4929 upload: all distcheck
4930 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4931 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4932 scp man/*.html tango:public/systemd-man/
4934 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4935 doc-sync: all destdir-sphinx
4936 gtkdoc-rebase --html-dir=docs/libudev/html --online
4937 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4938 gtkdoc-rebase --html-dir=docs/gudev/html --online
4939 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4940 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4941 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4944 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4947 rm -rf $(abs_srcdir)/install-tree
4948 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4949 tree $(abs_srcdir)/install-tree
4951 # Let's run all tests of the test suite, but under valgrind. Let's
4952 # exclude the one perl script we have in there
4953 valgrind-tests: $(TESTS)
4954 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
4955 if file $$f | grep -q shell; then \
4956 echo -e "$${x}Skipping non-binary $$f"; else \
4957 echo -e "$${x}Running $$f"; \
4958 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=4194400 --error-exitcode=55 $(builddir)/$$f ; fi; \
4963 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
4965 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
4966 $(AM_V_GEN)cat $^ > $@
4968 check-api-docs: exported man
4969 $(AM_V_GEN)for symbol in `cat exported` ; do \
4970 if test -f $(builddir)/man/$$symbol.html ; then \
4971 echo " Symbol $$symbol() is documented." ; \
4973 echo "‣ Symbol $$symbol() lacks documentation." ; \
4977 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
4978 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
4980 undefined defined: $(ALL_OBJECTS)
4981 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
4982 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
4983 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
4989 check-api-unused: defined undefined exported
4990 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
4992 # Stupid test that everything purported to be exported really is
4994 define generate-sym-test
4995 $(AM_V_at)$(MKDIR_P) $(dir $@)
4996 $(AM_V_at)printf '#include <stdio.h>\n' > $@
4997 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
4998 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
4999 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5000 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5001 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5002 $(AM_V_at)printf 'return 0; }\n' >> $@
5005 test-libsystemd-bus-sym.c: \
5006 src/libsystemd-bus/libsystemd-bus.sym \
5007 src/systemd/sd-bus.h \
5008 src/systemd/sd-utf8.h
5009 $(generate-sym-test)
5011 test-libsystemd-daemon-sym.c: \
5012 src/libsystemd-daemon/libsystemd-daemon.sym \
5013 src/systemd/sd-daemon.h
5014 $(generate-sym-test)
5016 test-libsystemd-id128-sym.c: \
5017 src/libsystemd-id128/libsystemd-id128.sym \
5018 src/systemd/sd-id128.h
5019 $(generate-sym-test)
5021 test-libsystemd-journal-sym.c: \
5022 src/journal/libsystemd-journal.sym \
5023 src/systemd/sd-journal.h
5024 $(generate-sym-test)
5026 test-libsystemd-login-sym.c: \
5027 src/login/libsystemd-login.sym \
5028 src/systemd/sd-login.h
5029 $(generate-sym-test)
5031 test-libudev-sym.c: \
5032 src/libudev/libudev.sym \
5034 $(generate-sym-test)
5036 test_libsystemd_bus_sym_SOURCES = \
5037 test-libsystemd-bus-sym.c
5038 test_libsystemd_bus_sym_LDADD = \
5041 test_libsystemd_daemon_sym_SOURCES = \
5042 test-libsystemd-daemon-sym.c
5043 test_libsystemd_daemon_sym_LDADD = \
5044 libsystemd-daemon.la
5046 test_libsystemd_id128_sym_SOURCES = \
5047 test-libsystemd-id128-sym.c
5048 test_libsystemd_id128_sym_LDADD = \
5051 test_libsystemd_journal_sym_SOURCES = \
5052 test-libsystemd-journal-sym.c
5053 test_libsystemd_journal_sym_LDADD = \
5054 libsystemd-journal.la
5056 test_libsystemd_login_sym_SOURCES = \
5057 test-libsystemd-login-sym.c
5058 test_libsystemd_login_sym_LDADD = \
5061 test_libudev_sym_SOURCES = \
5063 test_libudev_sym_LDADD = \
5067 $(test_libsystemd_bus_sym_SOURCES) \
5068 $(test_libsystemd_daemon_sym_SOURCES) \
5069 $(test_libsystemd_id128_sym_SOURCES) \
5070 $(test_libsystemd_journal_sym_SOURCES) \
5071 $(test_libsystemd_login_sym_SOURCES) \
5072 $(test_libudev_sym_SOURCES)
5075 test-libsystemd-bus-sym \
5076 test-libsystemd-daemon-sym \
5077 test-libsystemd-id128-sym \
5078 test-libsystemd-journal-sym \
5079 test-libsystemd-login-sym \
5083 cppcheck --enable=all -q $(top_srcdir)