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=2
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
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/sd-bus \
193 -I $(top_srcdir)/src/libsystemd/sd-event \
194 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
197 AM_CFLAGS = $(OUR_CFLAGS)
198 AM_LDFLAGS = $(OUR_LDFLAGS)
200 # ------------------------------------------------------------------------------
201 define move-to-rootlibdir
202 if test "$(libdir)" != "$(rootlibdir)"; then \
203 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
204 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
205 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
206 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
207 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
213 RUNLEVEL1_TARGET_WANTS =
214 RUNLEVEL2_TARGET_WANTS =
215 RUNLEVEL3_TARGET_WANTS =
216 RUNLEVEL4_TARGET_WANTS =
217 RUNLEVEL5_TARGET_WANTS =
218 SHUTDOWN_TARGET_WANTS =
219 LOCAL_FS_TARGET_WANTS =
220 MULTI_USER_TARGET_WANTS =
221 SYSINIT_TARGET_WANTS =
222 SOCKETS_TARGET_WANTS =
223 BUSNAMES_TARGET_WANTS =
224 TIMERS_TARGET_WANTS =
225 USER_SOCKETS_TARGET_WANTS =
226 USER_BUSNAMES_TARGET_WANTS =
228 SYSTEM_UNIT_ALIASES =
233 install-target-wants-hook:
234 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
235 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
236 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
237 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
238 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
239 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
240 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
241 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
242 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
243 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
244 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
245 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
246 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
247 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
248 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
251 [ -z "$$what" ] || ( \
252 dir=$(DESTDIR)$$dir/$$wants.wants && \
253 $(MKDIR_P) -m 0755 $$dir && \
256 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
259 install-directories-hook:
260 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
262 install-aliases-hook:
263 set -- $(SYSTEM_UNIT_ALIASES) && \
264 dir=$(systemunitdir) && $(install-aliases)
265 set -- $(USER_UNIT_ALIASES) && \
266 dir=$(userunitdir) && $(install-aliases)
267 set -- $(GENERAL_ALIASES) && \
268 dir= && $(install-aliases)
270 define install-aliases
271 while [ -n "$$1" ]; do \
272 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
273 rm -f $(DESTDIR)$$dir/$$2 && \
274 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
275 shift 2 || exit $$?; \
279 INSTALL_EXEC_HOOKS += \
280 install-target-wants-hook \
281 install-directories-hook \
284 # ------------------------------------------------------------------------------
285 AM_V_M4 = $(AM_V_M4_$(V))
286 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
287 AM_V_M4_0 = @echo " M4 " $@;
289 AM_V_XSLT = $(AM_V_XSLT_$(V))
290 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
291 AM_V_XSLT_0 = @echo " XSLT " $@;
293 AM_V_GPERF = $(AM_V_GPERF_$(V))
294 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
295 AM_V_GPERF_0 = @echo " GPERF " $@;
297 AM_V_LN = $(AM_V_LN_$(V))
298 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
299 AM_V_LN_0 = @echo " LN " $@;
301 # ------------------------------------------------------------------------------
305 systemd-ask-password \
306 systemd-tty-ask-password-agent \
307 systemd-machine-id-setup
313 systemd-detect-virt \
319 src/kernel-install/kernel-install
321 dist_kernelinstall_SCRIPTS = \
322 src/kernel-install/50-depmod.install \
323 src/kernel-install/90-loaderentry.install
325 rootlibexec_PROGRAMS = \
327 systemd-cgroups-agent \
329 systemd-update-utmp \
333 systemd-reply-password \
339 systemd-socket-proxyd
341 systemgenerator_PROGRAMS = \
342 systemd-getty-generator \
343 systemd-fstab-generator \
344 systemd-system-update-generator
346 dist_bashcompletion_DATA = \
347 shell-completion/bash/journalctl \
348 shell-completion/bash/systemctl \
349 shell-completion/bash/systemd-analyze \
350 shell-completion/bash/systemd-run \
351 shell-completion/bash/udevadm \
352 shell-completion/bash/kernel-install
354 dist_zshcompletion_DATA = \
355 shell-completion/zsh/_systemctl \
356 shell-completion/zsh/_journalctl \
357 shell-completion/zsh/_udevadm \
358 shell-completion/zsh/_kernel-install \
359 shell-completion/zsh/_systemd-nspawn \
360 shell-completion/zsh/_systemd-analyze \
361 shell-completion/zsh/_systemd-run \
362 shell-completion/zsh/_sd_hosts_or_user_at_host \
363 shell-completion/zsh/_systemd-delta \
364 shell-completion/zsh/_systemd
367 sysctl.d/50-default.conf
369 dist_systemunit_DATA = \
370 units/graphical.target \
371 units/multi-user.target \
372 units/emergency.service \
373 units/emergency.target \
374 units/sysinit.target \
379 units/local-fs.target \
380 units/local-fs-pre.target \
381 units/initrd.target \
382 units/initrd-fs.target \
383 units/initrd-root-fs.target \
384 units/remote-fs.target \
385 units/remote-fs-pre.target \
386 units/network.target \
387 units/network-online.target \
388 units/nss-lookup.target \
389 units/nss-user-lookup.target \
390 units/hibernate.target \
391 units/hybrid-sleep.target \
392 units/poweroff.target \
393 units/reboot.target \
394 units/rescue.target \
395 units/rpcbind.target \
396 units/time-sync.target \
397 units/shutdown.target \
399 units/umount.target \
400 units/sigpwr.target \
402 units/sockets.target \
403 units/busnames.target \
404 units/timers.target \
406 units/suspend.target \
408 units/slices.target \
411 units/systemd-initctl.socket \
412 units/systemd-shutdownd.socket \
413 units/syslog.socket \
414 units/dev-hugepages.mount \
415 units/dev-mqueue.mount \
416 units/sys-kernel-config.mount \
417 units/sys-kernel-debug.mount \
418 units/sys-fs-fuse-connections.mount \
420 units/printer.target \
422 units/bluetooth.target \
423 units/smartcard.target \
424 units/systemd-ask-password-wall.path \
425 units/systemd-ask-password-console.path \
426 units/systemd-udevd-control.socket \
427 units/systemd-udevd-kernel.socket \
428 units/system-update.target \
429 units/initrd-switch-root.target
431 nodist_systemunit_DATA = \
432 units/getty@.service \
433 units/serial-getty@.service \
434 units/console-shell.service \
435 units/console-getty.service \
436 units/container-getty@.service \
437 units/systemd-initctl.service \
438 units/systemd-shutdownd.service \
439 units/systemd-remount-fs.service \
440 units/systemd-update-utmp.service \
441 units/systemd-update-utmp-runlevel.service \
442 units/systemd-ask-password-wall.service \
443 units/systemd-ask-password-console.service \
444 units/systemd-sysctl.service \
445 units/emergency.service \
446 units/rescue.service \
447 units/user@.service \
448 units/systemd-hibernate.service \
449 units/systemd-hybrid-sleep.service \
450 units/systemd-suspend.service \
451 units/systemd-halt.service \
452 units/systemd-poweroff.service \
453 units/systemd-reboot.service \
454 units/systemd-kexec.service \
455 units/systemd-fsck@.service \
456 units/systemd-fsck-root.service \
457 units/systemd-udevd.service \
458 units/systemd-udev-trigger.service \
459 units/systemd-udev-settle.service \
460 units/debug-shell.service \
461 units/initrd-parse-etc.service \
462 units/initrd-cleanup.service \
463 units/initrd-udevadm-cleanup-db.service \
464 units/initrd-switch-root.service \
465 units/systemd-nspawn@.service
467 dist_userunit_DATA = \
468 units/user/basic.target \
469 units/user/default.target \
470 units/user/exit.target
472 nodist_userunit_DATA = \
473 units/user/systemd-exit.service
476 units/getty@.service.m4 \
477 units/serial-getty@.service.m4 \
478 units/console-shell.service.m4.in \
479 units/console-getty.service.m4.in \
480 units/container-getty@.service.m4.in \
481 units/rescue.service.m4.in \
482 units/systemd-initctl.service.in \
483 units/systemd-shutdownd.service.in \
484 units/systemd-remount-fs.service.in \
485 units/systemd-update-utmp.service.in \
486 units/systemd-update-utmp-runlevel.service.in \
487 units/systemd-ask-password-wall.service.in \
488 units/systemd-ask-password-console.service.in \
489 units/systemd-sysctl.service.in \
490 units/emergency.service.in \
491 units/systemd-halt.service.in \
492 units/systemd-poweroff.service.in \
493 units/systemd-reboot.service.in \
494 units/systemd-kexec.service.in \
495 units/user/systemd-exit.service.in \
496 units/systemd-fsck@.service.in \
497 units/systemd-fsck-root.service.in \
498 units/user@.service.in \
499 units/systemd-udevd.service \
500 units/systemd-udev-trigger.service \
501 units/systemd-udev-settle.service \
502 units/debug-shell.service.in \
503 units/systemd-hibernate.service.in \
504 units/systemd-hybrid-sleep.service.in \
505 units/systemd-suspend.service.in \
506 units/quotaon.service.in \
507 units/initrd-parse-etc.service.in \
508 units/initrd-cleanup.service.in \
509 units/initrd-udevadm-cleanup-db.service.in \
510 units/initrd-switch-root.service.in \
511 units/systemd-nspawn@.service.in
514 units/console-shell.service.m4 \
515 units/console-getty.service.m4 \
516 units/container-getty@.service.m4 \
517 units/rescue.service.m4 \
518 units/user@.service.m4
521 nodist_systemunit_DATA += \
522 units/rc-local.service \
523 units/halt-local.service
525 systemgenerator_PROGRAMS += \
526 systemd-rc-local-generator
530 units/rc-local.service.in \
531 units/halt-local.service.in
533 # automake is broken and can't handle files with a dash in front
534 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
536 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
538 units-uninstall-hook:
539 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
541 INSTALL_DATA_HOOKS += units-install-hook
542 UNINSTALL_DATA_HOOKS += units-uninstall-hook
552 @INTLTOOL_POLICY_RULE@
554 # ------------------------------------------------------------------------------
559 include Makefile-man.am
562 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
565 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
567 ${XML_FILES:.xml=.html}
569 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
586 $(AM_V_at)$(MKDIR_P) $(dir $@)
587 $(AM_V_LN)$(LN_S) -f ../../man $@
596 man/index.html: man/systemd.index.html
597 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
605 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
606 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
607 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
609 update-man-list: make-man-rules.py $(XML_GLOB)
610 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
611 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
612 @echo "Makefile-man.am has been regenerated"
614 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
615 $(AM_V_at)$(MKDIR_P) $(dir $@)
616 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
618 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
619 $(AM_V_at)$(MKDIR_P) $(dir $@)
620 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
623 man/systemd.index.xml \
625 man/systemd.directives.xml
628 man/systemd.index.xml \
629 man/systemd.directives.xml
641 make-directive-index.py \
644 # ------------------------------------------------------------------------------
645 noinst_LTLIBRARIES += \
648 libsystemd_shared_la_SOURCES = \
649 src/shared/linux/auto_dev-ioctl.h \
650 src/shared/linux/fanotify.h \
651 src/shared/linux/seccomp.h \
652 src/shared/linux/seccomp-bpf.h \
653 src/shared/ioprio.h \
654 src/shared/missing.h \
655 src/shared/initreq.h \
656 src/shared/securebits.h \
657 src/shared/special.h \
661 src/shared/sparse-endian.h \
662 src/shared/refcnt.h \
663 src/shared/udev-util.h \
664 src/shared/bus-errors.h \
665 src/shared/device-nodes.c \
666 src/shared/device-nodes.h \
671 src/shared/efivars.c \
672 src/shared/efivars.h \
673 src/shared/path-util.c \
674 src/shared/path-util.h \
675 src/shared/time-util.c \
676 src/shared/time-util.h \
677 src/shared/hashmap.c \
678 src/shared/hashmap.h \
679 src/shared/siphash24.c \
680 src/shared/siphash24.h \
687 src/shared/sleep-config.c \
688 src/shared/sleep-config.h \
691 src/shared/env-util.c \
692 src/shared/env-util.h \
693 src/shared/strbuf.c \
694 src/shared/strbuf.h \
695 src/shared/strxcpyx.c \
696 src/shared/strxcpyx.h \
697 src/shared/conf-parser.c \
698 src/shared/conf-parser.h \
701 src/shared/ratelimit.h \
702 src/shared/ratelimit.c \
703 src/shared/exit-status.c \
704 src/shared/exit-status.h \
707 src/shared/gunicode.c \
708 src/shared/gunicode.h \
711 src/shared/socket-util.c \
712 src/shared/socket-util.h \
713 src/shared/conf-files.c \
714 src/shared/conf-files.h \
715 src/shared/cgroup-util.c \
716 src/shared/cgroup-util.h \
717 src/shared/cgroup-show.c \
718 src/shared/cgroup-show.h \
719 src/shared/unit-name.c \
720 src/shared/unit-name.h \
721 src/shared/utmp-wtmp.c \
722 src/shared/utmp-wtmp.h \
723 src/shared/watchdog.c \
724 src/shared/watchdog.h \
725 src/shared/spawn-ask-password-agent.c \
726 src/shared/spawn-ask-password-agent.h \
727 src/shared/replace-var.c \
728 src/shared/replace-var.h \
729 src/shared/spawn-polkit-agent.c \
730 src/shared/spawn-polkit-agent.h \
731 src/shared/hwclock.c \
732 src/shared/hwclock.h \
733 src/shared/time-dst.c \
734 src/shared/time-dst.h \
735 src/shared/calendarspec.c \
736 src/shared/calendarspec.h \
737 src/shared/fileio.c \
738 src/shared/fileio.h \
739 src/shared/output-mode.h \
740 src/shared/MurmurHash2.c \
741 src/shared/MurmurHash2.h \
742 src/shared/acpi-fpdt.h \
743 src/shared/acpi-fpdt.c \
744 src/shared/boot-timestamps.h \
745 src/shared/boot-timestamps.c \
748 src/shared/smack-util.c \
749 src/shared/smack-util.h \
750 src/shared/apparmor-util.c \
751 src/shared/apparmor-util.h \
752 src/shared/ima-util.c \
753 src/shared/ima-util.h \
754 src/shared/ptyfwd.c \
755 src/shared/ptyfwd.h \
756 src/shared/net-util.c \
757 src/shared/net-util.h \
758 src/shared/errno-list.c \
759 src/shared/errno-list.h \
760 src/shared/syscall-list.c \
761 src/shared/syscall-list.h \
767 nodist_libsystemd_shared_la_SOURCES = \
768 src/shared/errno-from-name.h \
769 src/shared/errno-to-name.h \
770 src/shared/syscall-from-name.h \
771 src/shared/syscall-to-name.h
773 # ------------------------------------------------------------------------------
774 noinst_LTLIBRARIES += \
777 libsystemd_units_la_SOURCES = \
778 src/shared/install.c \
779 src/shared/install.h \
780 src/shared/install-printf.c \
781 src/shared/install-printf.h \
782 src/shared/path-lookup.c \
783 src/shared/path-lookup.h \
784 src/shared/specifier.c \
785 src/shared/specifier.h
787 # ------------------------------------------------------------------------------
788 noinst_LTLIBRARIES += \
791 libsystemd_label_la_SOURCES = \
792 src/shared/socket-label.c \
795 src/shared/selinux-util.c \
796 src/shared/selinux-util.h \
797 src/shared/mkdir-label.c \
798 src/shared/ask-password-api.c \
799 src/shared/ask-password-api.h \
800 src/shared/fileio-label.c \
801 src/shared/fileio-label.h \
802 src/shared/dev-setup.c \
803 src/shared/dev-setup.h
805 libsystemd_label_la_CFLAGS = \
809 libsystemd_label_la_LIBADD = \
812 # ------------------------------------------------------------------------------
813 noinst_LTLIBRARIES += \
816 libsystemd_logs_la_SOURCES = \
817 src/shared/logs-show.c \
818 src/shared/logs-show.h
820 # ------------------------------------------------------------------------------
821 noinst_LTLIBRARIES += \
822 libsystemd-capability.la
824 libsystemd_capability_la_SOURCES = \
825 src/shared/capability.c \
826 src/shared/capability.h
828 libsystemd_capability_la_CFLAGS = \
832 libsystemd_capability_la_LIBADD = \
835 # ------------------------------------------------------------------------------
837 noinst_LTLIBRARIES += \
840 libsystemd_acl_la_SOURCES = \
841 src/shared/acl-util.c \
842 src/shared/acl-util.h
844 libsystemd_acl_la_CFLAGS = \
848 libsystemd_acl_la_LIBADD = \
852 # ------------------------------------------------------------------------------
853 noinst_LTLIBRARIES += \
856 libsystemd_core_la_SOURCES = \
859 src/core/unit-printf.c \
860 src/core/unit-printf.h \
865 src/core/transaction.c \
866 src/core/transaction.h \
867 src/core/load-fragment.c \
868 src/core/load-fragment.h \
877 src/core/snapshot.c \
878 src/core/snapshot.h \
883 src/core/automount.c \
884 src/core/automount.h \
895 src/core/load-dropin.c \
896 src/core/load-dropin.h \
903 src/core/dbus-manager.c \
904 src/core/dbus-manager.h \
905 src/core/dbus-unit.c \
906 src/core/dbus-unit.h \
907 src/core/dbus-job.c \
908 src/core/dbus-job.h \
909 src/core/dbus-service.c \
910 src/core/dbus-service.h \
911 src/core/dbus-socket.c \
912 src/core/dbus-socket.h \
913 src/core/dbus-busname.c \
914 src/core/dbus-busname.h \
915 src/core/dbus-target.c \
916 src/core/dbus-target.h \
917 src/core/dbus-snapshot.c \
918 src/core/dbus-snapshot.h \
919 src/core/dbus-device.c \
920 src/core/dbus-device.h \
921 src/core/dbus-mount.c \
922 src/core/dbus-mount.h \
923 src/core/dbus-automount.c \
924 src/core/dbus-automount.h \
925 src/core/dbus-swap.c \
926 src/core/dbus-swap.h \
927 src/core/dbus-timer.c \
928 src/core/dbus-timer.h \
929 src/core/dbus-path.c \
930 src/core/dbus-path.h \
931 src/core/dbus-slice.c \
932 src/core/dbus-slice.h \
933 src/core/dbus-scope.c \
934 src/core/dbus-scope.h \
935 src/core/dbus-execute.c \
936 src/core/dbus-execute.h \
937 src/core/dbus-kill.c \
938 src/core/dbus-kill.h \
939 src/core/dbus-cgroup.c \
940 src/core/dbus-cgroup.h \
941 src/core/dbus-client-track.c \
942 src/core/dbus-client-track.h \
945 src/core/selinux-access.c \
946 src/core/selinux-access.h \
947 src/core/selinux-setup.c \
948 src/core/selinux-setup.h \
949 src/core/smack-setup.c \
950 src/core/smack-setup.h \
951 src/core/ima-setup.c \
952 src/core/ima-setup.h \
953 src/core/locale-setup.h \
954 src/core/locale-setup.c \
955 src/core/hostname-setup.c \
956 src/core/hostname-setup.h \
957 src/core/machine-id-setup.c \
958 src/core/machine-id-setup.h \
959 src/core/mount-setup.c \
960 src/core/mount-setup.h \
961 src/core/loopback-setup.h \
962 src/core/loopback-setup.c \
963 src/core/condition.c \
964 src/core/condition.h \
965 src/core/namespace.c \
966 src/core/namespace.h \
970 src/core/sysfs-show.h \
971 src/core/switch-root.h \
972 src/core/switch-root.c \
975 src/core/audit-fd.c \
976 src/core/audit-fd.h \
981 libsystemd_core_la_SOURCES += \
982 src/core/kmod-setup.c \
983 src/core/kmod-setup.h
986 nodist_libsystemd_core_la_SOURCES = \
987 src/core/load-fragment-gperf.c \
988 src/core/load-fragment-gperf-nulstr.c
990 libsystemd_core_la_CFLAGS = \
998 libsystemd_core_la_LIBADD = \
999 libsystemd-capability.la \
1000 libsystemd-units.la \
1001 libsystemd-label.la \
1002 libsystemd-id128-internal.la \
1003 libsystemd-daemon-internal.la \
1004 libudev-internal.la \
1005 libsystemd-shared.la \
1006 libsystemd-internal.la \
1013 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1014 $(AM_V_at)$(MKDIR_P) $(dir $@)
1015 $(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 ";" }' < $< > $@
1018 src/core/load-fragment-gperf.gperf.m4
1021 src/core/load-fragment-gperf.gperf \
1022 src/core/load-fragment-gperf.c \
1023 src/core/load-fragment-gperf-nulstr.c \
1024 src/shared/syscall-list.txt \
1025 src/shared/syscall-from-name.gperf \
1026 src/shared/errno-list.txt \
1027 src/shared/errno-from-name.gperf
1030 src/shared/syscall-from-name.h \
1031 src/shared/syscall-to-name.h \
1032 src/shared/errno-from-name.h \
1033 src/shared/errno-to-name.h
1035 src/shared/syscall-list.txt:
1036 $(AM_V_at)$(MKDIR_P) $(dir $@)
1037 $(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; }' > $@
1039 src/shared/syscall-from-name.gperf: src/shared/syscall-list.txt
1040 $(AM_V_at)$(MKDIR_P) $(dir $@)
1041 $(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 }' < $< > $@
1043 src/shared/syscall-from-name.h: src/shared/syscall-from-name.gperf
1044 $(AM_V_at)$(MKDIR_P) $(dir $@)
1045 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1047 src/shared/syscall-to-name.h: src/shared/syscall-list.txt
1048 $(AM_V_at)$(MKDIR_P) $(dir $@)
1049 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1051 src/shared/errno-list.txt:
1052 $(AM_V_at)$(MKDIR_P) $(dir $@)
1053 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+[0-9]/ { print $$2; }' > $@
1055 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1056 $(AM_V_at)$(MKDIR_P) $(dir $@)
1057 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1059 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1060 $(AM_V_at)$(MKDIR_P) $(dir $@)
1061 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1063 src/shared/errno-to-name.h: src/shared/errno-list.txt
1064 $(AM_V_at)$(MKDIR_P) $(dir $@)
1065 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1067 # ------------------------------------------------------------------------------
1072 libsystemd-core.la \
1075 dist_pkgsysconf_DATA += \
1076 src/core/system.conf \
1079 dist_dbuspolicy_DATA += \
1080 src/core/org.freedesktop.systemd1.conf
1082 dist_dbussystemservice_DATA += \
1083 src/core/org.freedesktop.systemd1.service
1085 polkitpolicy_in_in_files += \
1086 src/core/org.freedesktop.systemd1.policy.in.in
1088 pkgconfigdata_DATA = \
1091 nodist_rpmmacros_DATA = \
1092 src/core/macros.systemd
1095 src/core/systemd.pc.in \
1096 src/core/macros.systemd.in
1099 src/core/macros.systemd \
1100 src/core/org.freedesktop.systemd1.policy.in
1102 # ------------------------------------------------------------------------------
1132 test-strip-tab-ansi \
1145 test/sched_idle_bad.service \
1146 test/sched_idle_ok.service \
1147 test/sched_rr_bad.service \
1148 test/sched_rr_ok.service \
1149 test/sched_rr_change.service \
1151 test/daughter.service \
1155 src/test/test-helper.h
1157 test_device_nodes_SOURCES = \
1158 src/test/test-device-nodes.c
1160 test_device_nodes_LDADD = \
1161 libsystemd-shared.la
1163 test_engine_SOURCES = \
1164 src/test/test-engine.c
1166 test_engine_LDADD = \
1167 libsystemd-core.la \
1170 test_job_type_SOURCES = \
1171 src/test/test-job-type.c
1173 test_job_type_LDADD = \
1174 libsystemd-core.la \
1183 test_loopback_SOURCES = \
1184 src/test/test-loopback.c
1186 test_loopback_LDADD = \
1189 test_hostname_SOURCES = \
1190 src/test/test-hostname.c
1192 test_hostname_LDADD = \
1199 test_boot_timestamp_SOURCES = \
1200 src/test/test-boot-timestamps.c
1202 test_boot_timestamp_LDADD = \
1203 libsystemd-shared.la
1206 test_unit_name_SOURCES = \
1207 src/test/test-unit-name.c
1209 test_unit_name_LDADD = \
1210 libsystemd-core.la \
1213 test_unit_file_SOURCES = \
1214 src/test/test-unit-file.c
1216 test_unit_file_LDADD = \
1217 libsystemd-core.la \
1220 test_utf8_SOURCES = \
1221 src/test/test-utf8.c
1224 libsystemd-shared.la
1226 test_util_SOURCES = \
1227 src/test/test-util.c
1232 test_namespace_SOURCES = \
1233 src/test/test-namespace.c
1235 test_namespace_LDADD = \
1238 test_hashmap_SOURCES = \
1239 src/test/test-hashmap.c
1241 test_hashmap_LDADD = \
1244 test_xml_SOURCES = \
1248 libsystemd-shared.la
1250 test_list_SOURCES = \
1251 src/test/test-list.c
1256 test_tables_SOURCES = \
1257 src/test/test-tables.c \
1258 src/shared/test-tables.h
1260 test_tables_LDADD = \
1261 libsystemd-logs.la \
1262 libsystemd-journal-internal.la \
1263 libsystemd-core.la \
1266 test_prioq_SOURCES = \
1267 src/test/test-prioq.c
1269 test_prioq_LDADD = \
1272 test_fileio_SOURCES = \
1273 src/test/test-fileio.c
1275 test_fileio_LDADD = \
1278 test_time_SOURCES = \
1279 src/test/test-time.c
1284 test_log_SOURCES = \
1290 test_ellipsize_SOURCES = \
1291 src/test/test-ellipsize.c
1293 test_ellipsize_LDADD = \
1296 test_date_SOURCES = \
1297 src/test/test-date.c
1302 test_sleep_SOURCES = \
1303 src/test/test-sleep.c
1305 test_sleep_LDADD = \
1308 test_replace_var_SOURCES = \
1309 src/test/test-replace-var.c
1311 test_replace_var_LDADD = \
1312 libsystemd-shared.la
1314 test_calendarspec_SOURCES = \
1315 src/test/test-calendarspec.c
1317 test_calendarspec_LDADD = \
1318 libsystemd-shared.la
1320 test_strip_tab_ansi_SOURCES = \
1321 src/test/test-strip-tab-ansi.c
1323 test_strip_tab_ansi_LDADD = \
1324 libsystemd-shared.la
1326 test_daemon_SOURCES = \
1327 src/test/test-daemon.c
1329 test_daemon_LDADD = \
1330 libsystemd-daemon-internal.la \
1331 libsystemd-shared.la
1333 test_cgroup_SOURCES = \
1334 src/test/test-cgroup.c
1336 test_cgroup_LDADD = \
1337 libsystemd-label.la \
1338 libsystemd-shared.la
1340 test_cgroup_mask_SOURCES = \
1341 src/test/test-cgroup-mask.c
1343 test_cgroup_mask_CPPFLAGS = \
1345 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1347 test_cgroup_mask_LDADD = \
1348 libsystemd-core.la \
1351 test_cgroup_util_SOURCES = \
1352 src/test/test-cgroup-util.c
1354 test_cgroup_util_LDADD = \
1355 libsystemd-label.la \
1356 libsystemd-daemon-internal.la \
1357 libsystemd-shared.la
1359 test_env_replace_SOURCES = \
1360 src/test/test-env-replace.c
1362 test_env_replace_LDADD = \
1363 libsystemd-shared.la
1365 test_strbuf_SOURCES = \
1366 src/test/test-strbuf.c
1368 test_strbuf_LDADD = \
1369 libsystemd-shared.la
1371 test_strv_SOURCES = \
1372 src/test/test-strv.c
1375 libsystemd-units.la \
1376 libsystemd-id128-internal.la \
1377 libsystemd-shared.la
1379 test_path_util_SOURCES = \
1380 src/test/test-path-util.c
1382 test_path_util_LDADD = \
1383 libsystemd-shared.la
1385 test_strxcpyx_SOURCES = \
1386 src/test/test-strxcpyx.c
1388 test_strxcpyx_LDADD = \
1389 libsystemd-shared.la
1391 test_install_SOURCES = \
1392 src/test/test-install.c
1394 test_install_LDADD = \
1395 libsystemd-units.la \
1396 libsystemd-label.la \
1397 libsystemd-id128-internal.la \
1398 libsystemd-shared.la
1400 test_watchdog_SOURCES = \
1401 src/test/test-watchdog.c
1403 test_watchdog_LDADD = \
1404 libsystemd-shared.la
1406 test_sched_prio_SOURCES = \
1407 src/test/test-sched-prio.c
1409 test_sched_prio_CPPFLAGS = \
1411 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1413 test_sched_prio_LDADD = \
1414 libsystemd-core.la \
1417 # ------------------------------------------------------------------------------
1418 ## .PHONY so it always rebuilds it
1419 .PHONY: coverage lcov-run lcov-report
1421 # run lcov from scratch, always
1426 coverage_dir = coverage
1427 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1430 # reset run coverage tests
1432 @rm -rf $(coverage_dir)
1433 lcov $(coverage_opts) --zerocounters
1436 # generate report based on current coverage data
1438 $(MKDIR_P) $(coverage_dir)
1439 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1440 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1441 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1442 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1444 # lcov doesn't work properly with vpath builds, make sure that bad
1445 # output is not uploaded by mistake.
1446 coverage-sync: coverage
1447 test "$(builddir)" = "$(srcdir)"
1448 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1451 lcov-run lcov-report:
1452 echo "Need to reconfigure with --enable-coverage"
1455 # ------------------------------------------------------------------------------
1456 systemd_analyze_SOURCES = \
1457 src/analyze/analyze.c
1459 systemd_analyze_LDADD = \
1460 libsystemd-internal.la \
1461 libsystemd-id128-internal.la \
1462 libsystemd-daemon-internal.la \
1463 libsystemd-shared.la
1465 # ------------------------------------------------------------------------------
1466 systemd_initctl_SOURCES = \
1467 src/initctl/initctl.c
1469 systemd_initctl_LDADD = \
1470 libsystemd-internal.la \
1471 libsystemd-id128-internal.la \
1472 libsystemd-daemon-internal.la \
1473 libsystemd-shared.la
1475 # ------------------------------------------------------------------------------
1476 systemd_update_utmp_SOURCES = \
1477 src/update-utmp/update-utmp.c
1479 systemd_update_utmp_CFLAGS = \
1483 systemd_update_utmp_LDADD = \
1484 libsystemd-internal.la \
1485 libsystemd-id128-internal.la \
1486 libsystemd-daemon-internal.la \
1487 libsystemd-shared.la \
1490 # ------------------------------------------------------------------------------
1491 systemd_shutdownd_SOURCES = \
1492 src/shutdownd/shutdownd.c
1494 systemd_shutdownd_LDADD = \
1495 libsystemd-label.la \
1496 libsystemd-daemon-internal.la \
1497 libsystemd-shared.la
1500 src/systemd/sd-shutdown.h
1502 # ------------------------------------------------------------------------------
1503 systemd_shutdown_SOURCES = \
1506 src/core/shutdown.c \
1507 src/core/mount-setup.c \
1508 src/core/mount-setup.h \
1509 src/core/killall.h \
1512 systemd_shutdown_LDADD = \
1513 libsystemd-label.la \
1514 libudev-internal.la \
1515 libsystemd-shared.la
1517 # ------------------------------------------------------------------------------
1519 systemd_modules_load_SOURCES = \
1520 src/modules-load/modules-load.c
1522 systemd_modules_load_CFLAGS = \
1526 systemd_modules_load_LDADD = \
1527 libsystemd-shared.la \
1530 rootlibexec_PROGRAMS += \
1531 systemd-modules-load
1533 nodist_systemunit_DATA += \
1534 units/systemd-modules-load.service
1536 SYSINIT_TARGET_WANTS += \
1537 systemd-modules-load.service
1540 nodist_systemunit_DATA += \
1541 units/kmod-static-nodes.service
1543 SYSINIT_TARGET_WANTS += \
1544 kmod-static-nodes.service
1549 units/systemd-modules-load.service.in \
1550 units/kmod-static-nodes.service.in
1552 # ------------------------------------------------------------------------------
1554 systemd_tmpfiles_SOURCES = \
1555 src/tmpfiles/tmpfiles.c
1557 systemd_tmpfiles_LDADD = \
1558 libsystemd-units.la \
1559 libsystemd-label.la \
1560 libsystemd-capability.la \
1561 libsystemd-id128-internal.la \
1562 libsystemd-shared.la
1564 rootbin_PROGRAMS += \
1567 dist_systemunit_DATA += \
1568 units/systemd-tmpfiles-clean.timer
1570 nodist_systemunit_DATA += \
1571 units/systemd-tmpfiles-setup-dev.service \
1572 units/systemd-tmpfiles-setup.service \
1573 units/systemd-tmpfiles-clean.service
1575 dist_tmpfiles_DATA = \
1576 tmpfiles.d/systemd.conf \
1577 tmpfiles.d/systemd-nologin.conf \
1578 tmpfiles.d/tmp.conf \
1582 dist_tmpfiles_DATA += \
1583 tmpfiles.d/legacy.conf
1586 SYSINIT_TARGET_WANTS += \
1587 systemd-tmpfiles-setup-dev.service \
1588 systemd-tmpfiles-setup.service
1590 dist_zshcompletion_DATA += \
1591 shell-completion/zsh/_systemd-tmpfiles
1593 TIMERS_TARGET_WANTS += \
1594 systemd-tmpfiles-clean.timer
1598 $(sysconfdir)/tmpfiles.d
1602 units/systemd-tmpfiles-setup-dev.service.in \
1603 units/systemd-tmpfiles-setup.service.in \
1604 units/systemd-tmpfiles-clean.service.in
1606 # ------------------------------------------------------------------------------
1607 systemd_machine_id_setup_SOURCES = \
1608 src/machine-id-setup/machine-id-setup-main.c \
1609 src/core/machine-id-setup.c \
1610 src/core/machine-id-setup.h
1612 systemd_machine_id_setup_LDADD = \
1613 libsystemd-label.la \
1614 libsystemd-id128-internal.la \
1615 libsystemd-shared.la
1617 # ------------------------------------------------------------------------------
1618 systemd_sysctl_SOURCES = \
1621 systemd_sysctl_LDADD = \
1622 libsystemd-shared.la
1624 # ------------------------------------------------------------------------------
1625 systemd_sleep_SOURCES = \
1628 systemd_sleep_LDADD = \
1629 libsystemd-shared.la
1631 # ------------------------------------------------------------------------------
1632 systemd_fsck_SOURCES = \
1635 systemd_fsck_LDADD = \
1636 libsystemd-internal.la \
1637 libsystemd-id128-internal.la \
1638 libsystemd-daemon-internal.la \
1639 libudev-internal.la \
1640 libsystemd-shared.la
1642 # ------------------------------------------------------------------------------
1643 systemd_ac_power_SOURCES = \
1644 src/ac-power/ac-power.c
1646 systemd_ac_power_LDADD = \
1647 libudev-internal.la \
1648 libsystemd-shared.la
1650 # ------------------------------------------------------------------------------
1651 systemd_detect_virt_SOURCES = \
1652 src/detect-virt/detect-virt.c
1654 systemd_detect_virt_LDADD = \
1655 libsystemd-shared.la
1657 systemd-detect-virt-install-hook:
1658 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1660 INSTALL_EXEC_HOOKS += \
1661 systemd-detect-virt-install-hook
1663 # ------------------------------------------------------------------------------
1664 systemd_delta_SOURCES = \
1667 systemd_delta_LDADD = \
1668 libsystemd-shared.la
1670 # ------------------------------------------------------------------------------
1671 systemd_getty_generator_SOURCES = \
1672 src/getty-generator/getty-generator.c
1674 systemd_getty_generator_LDADD = \
1675 libsystemd-label.la \
1676 libsystemd-shared.la
1678 # ------------------------------------------------------------------------------
1679 systemd_fstab_generator_SOURCES = \
1680 src/fstab-generator/fstab-generator.c \
1681 src/core/mount-setup.c
1683 systemd_fstab_generator_LDADD = \
1684 libsystemd-label.la \
1685 libsystemd-shared.la
1687 # ------------------------------------------------------------------------------
1688 systemd_system_update_generator_SOURCES = \
1689 src/system-update-generator/system-update-generator.c
1691 systemd_system_update_generator_LDADD = \
1692 libsystemd-label.la \
1693 libsystemd-shared.la
1696 # ------------------------------------------------------------------------------
1697 systemgenerator_PROGRAMS += \
1698 systemd-efi-boot-generator
1700 systemd_efi_boot_generator_SOURCES = \
1701 src/efi-boot-generator/efi-boot-generator.c
1703 systemd_efi_boot_generator_LDADD = \
1704 libsystemd-label.la \
1705 libsystemd-shared.la
1707 # ------------------------------------------------------------------------------
1710 src/boot/boot-loader.h \
1711 src/boot/bootctl.c \
1712 src/boot/boot-loader.c \
1716 libsystemd-shared.la \
1717 libsystemd-id128-internal.la \
1718 libsystemd-daemon-internal.la
1723 dist_zshcompletion_DATA += \
1724 shell-completion/zsh/_bootctl
1728 # ------------------------------------------------------------------------------
1730 systemgenerator_PROGRAMS += \
1731 systemd-gpt-auto-generator
1733 systemd_gpt_auto_generator_SOURCES = \
1734 src/gpt-auto-generator/gpt-auto-generator.c
1736 systemd_gpt_auto_generator_LDADD = \
1737 libsystemd-label.la \
1738 libsystemd-id128-internal.la \
1739 libudev-internal.la \
1740 libsystemd-shared.la \
1743 systemd_gpt_auto_generator_CFLAGS = \
1748 # ------------------------------------------------------------------------------
1750 systemgenerator_PROGRAMS += \
1751 systemd-dbus1-generator
1753 systemd_dbus1_generator_SOURCES = \
1754 src/dbus1-generator/dbus1-generator.c
1756 systemd_dbus1_generator_LDADD = \
1757 libsystemd-label.la \
1758 libsystemd-shared.la \
1759 libsystemd-internal.la
1761 dbus1-generator-install-hook:
1762 $(AM_V_LN)$(LN_S) -f $(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1764 dbus1-generator-uninstall-hook:
1765 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1767 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1768 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1771 # ------------------------------------------------------------------------------
1772 systemd_rc_local_generator_SOURCES = \
1773 src/rc-local-generator/rc-local-generator.c
1775 systemd_rc_local_generator_LDADD = \
1776 libsystemd-label.la \
1777 libsystemd-shared.la
1779 # ------------------------------------------------------------------------------
1780 systemd_remount_fs_SOURCES = \
1781 src/remount-fs/remount-fs.c \
1782 src/core/mount-setup.c \
1783 src/core/mount-setup.h
1785 systemd_remount_fs_LDADD = \
1786 libsystemd-label.la \
1787 libsystemd-shared.la
1789 # ------------------------------------------------------------------------------
1790 systemd_cgroups_agent_SOURCES = \
1791 src/cgroups-agent/cgroups-agent.c
1793 systemd_cgroups_agent_LDADD = \
1794 libsystemd-internal.la \
1795 libsystemd-id128-internal.la \
1796 libsystemd-daemon-internal.la \
1797 libsystemd-shared.la
1799 # ------------------------------------------------------------------------------
1800 systemctl_SOURCES = \
1801 src/systemctl/systemctl.c
1804 libsystemd-units.la \
1805 libsystemd-label.la \
1806 libsystemd-internal.la \
1807 libsystemd-logs.la \
1808 libsystemd-journal-internal.la \
1809 libsystemd-id128-internal.la \
1810 libsystemd-daemon-internal.la \
1811 libsystemd-shared.la
1813 # ------------------------------------------------------------------------------
1814 systemd_notify_SOURCES = \
1815 src/notify/notify.c \
1816 src/readahead/sd-readahead.c
1818 systemd_notify_LDADD = \
1819 libsystemd-daemon-internal.la \
1820 libsystemd-shared.la
1822 # ------------------------------------------------------------------------------
1823 systemd_ask_password_SOURCES = \
1824 src/ask-password/ask-password.c
1826 systemd_ask_password_LDADD = \
1827 libsystemd-label.la \
1828 libsystemd-shared.la
1830 # ------------------------------------------------------------------------------
1831 systemd_reply_password_SOURCES = \
1832 src/reply-password/reply-password.c
1834 systemd_reply_password_LDADD = \
1835 libsystemd-shared.la
1837 # ------------------------------------------------------------------------------
1838 systemd_cgls_SOURCES = \
1841 systemd_cgls_LDADD = \
1842 libsystemd-shared.la
1844 # ------------------------------------------------------------------------------
1845 systemd_cgtop_SOURCES = \
1848 systemd_cgtop_LDADD = \
1849 libsystemd-shared.la
1851 # ------------------------------------------------------------------------------
1852 systemd_nspawn_SOURCES = \
1853 src/nspawn/nspawn.c \
1854 src/core/mount-setup.c \
1855 src/core/mount-setup.h \
1856 src/core/loopback-setup.c \
1857 src/core/loopback-setup.h
1859 systemd_nspawn_LDADD = \
1860 libsystemd-label.la \
1861 libsystemd-capability.la \
1862 libsystemd-internal.la \
1863 libsystemd-id128-internal.la \
1864 libsystemd-daemon-internal.la \
1865 libsystemd-shared.la
1867 # ------------------------------------------------------------------------------
1868 systemd_run_SOURCES = \
1871 systemd_run_LDADD = \
1872 libsystemd-label.la \
1873 libsystemd-capability.la \
1874 libsystemd-internal.la \
1875 libsystemd-daemon-internal.la \
1876 libsystemd-id128-internal.la \
1877 libsystemd-shared.la
1879 # ------------------------------------------------------------------------------
1880 systemd_bus_proxyd_SOURCES = \
1881 src/bus-proxyd/bus-proxyd.c
1883 systemd_bus_proxyd_LDADD = \
1884 libsystemd-internal.la \
1885 libsystemd-daemon-internal.la \
1886 libsystemd-id128-internal.la \
1887 libsystemd-shared.la
1889 bus-proxyd-install-hook:
1890 $(AM_V_LN)$(LN_S) -f ../lib/systemd/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
1892 bus-proxyd-uninstall-hook:
1893 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
1895 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
1896 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
1899 nodist_systemunit_DATA += \
1900 units/systemd-bus-proxyd@.service
1902 dist_systemunit_DATA += \
1903 units/systemd-bus-proxyd.socket
1905 dist_userunit_DATA += \
1906 units/user/systemd-bus-proxyd.socket \
1907 units/user/systemd-bus-proxyd@.service
1911 units/systemd-bus-proxyd@.service.in
1913 # ------------------------------------------------------------------------------
1914 systemd_tty_ask_password_agent_SOURCES = \
1915 src/tty-ask-password-agent/tty-ask-password-agent.c
1917 systemd_tty_ask_password_agent_LDADD = \
1918 libsystemd-label.la \
1919 libsystemd-shared.la
1921 # ------------------------------------------------------------------------------
1922 libsystemd_daemon_la_SOURCES = \
1923 src/libsystemd-daemon/libsystemd-daemon.sym \
1924 src/libsystemd-daemon/sd-daemon.c
1926 libsystemd_daemon_internal_la_SOURCES = \
1927 $(libsystemd_daemon_la_SOURCES)
1929 libsystemd_daemon_internal_la_CPPFLAGS = \
1931 -DSD_DAEMON_DISABLE_MQ
1933 libsystemd_daemon_la_CFLAGS = \
1935 -fvisibility=hidden \
1938 libsystemd_daemon_la_LDFLAGS = \
1940 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1941 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1943 libsystemd_daemon_la_LIBADD = \
1946 pkginclude_HEADERS += \
1947 src/systemd/sd-daemon.h
1949 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1950 libsystemd-daemon-install-hook:
1951 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1953 libsystemd-daemon-uninstall-hook:
1954 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1956 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1957 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1959 lib_LTLIBRARIES += \
1960 libsystemd-daemon.la
1962 noinst_LTLIBRARIES += \
1963 libsystemd-daemon-internal.la
1965 pkgconfiglib_DATA += \
1966 src/libsystemd-daemon/libsystemd-daemon.pc
1969 src/libsystemd-daemon/libsystemd-daemon.pc.in
1971 # ------------------------------------------------------------------------------
1972 libsystemd_la_SOURCES = \
1973 src/libsystemd/libsystemd.sym \
1974 src/systemd/sd-bus.h \
1975 src/systemd/sd-bus-protocol.h \
1976 src/systemd/sd-bus-vtable.h \
1977 src/systemd/sd-memfd.h \
1978 src/systemd/sd-utf8.h \
1979 src/systemd/sd-event.h \
1980 src/systemd/sd-rtnl.h \
1981 src/systemd/sd-resolve.h \
1982 src/systemd/sd-login.h \
1983 src/libsystemd/sd-bus/sd-bus.c \
1984 src/libsystemd/sd-bus/bus-control.c \
1985 src/libsystemd/sd-bus/bus-control.h \
1986 src/libsystemd/sd-bus/bus-error.c \
1987 src/libsystemd/sd-bus/bus-error.h \
1988 src/libsystemd/sd-bus/bus-internal.c \
1989 src/libsystemd/sd-bus/bus-internal.h \
1990 src/libsystemd/sd-bus/bus-socket.c \
1991 src/libsystemd/sd-bus/bus-socket.h \
1992 src/libsystemd/sd-bus/bus-kernel.c \
1993 src/libsystemd/sd-bus/bus-kernel.h \
1994 src/libsystemd/sd-bus/bus-container.c \
1995 src/libsystemd/sd-bus/bus-container.h \
1996 src/libsystemd/sd-bus/bus-message.c \
1997 src/libsystemd/sd-bus/bus-message.h \
1998 src/libsystemd/sd-bus/bus-creds.c \
1999 src/libsystemd/sd-bus/bus-creds.h \
2000 src/libsystemd/sd-bus/bus-signature.c \
2001 src/libsystemd/sd-bus/bus-signature.h \
2002 src/libsystemd/sd-bus/bus-type.c \
2003 src/libsystemd/sd-bus/bus-type.h \
2004 src/libsystemd/sd-bus/bus-match.c \
2005 src/libsystemd/sd-bus/bus-match.h \
2006 src/libsystemd/sd-bus/bus-bloom.c \
2007 src/libsystemd/sd-bus/bus-bloom.h \
2008 src/libsystemd/sd-bus/bus-introspect.c \
2009 src/libsystemd/sd-bus/bus-introspect.h \
2010 src/libsystemd/sd-bus/bus-objects.c \
2011 src/libsystemd/sd-bus/bus-objects.h \
2012 src/libsystemd/sd-bus/bus-gvariant.c \
2013 src/libsystemd/sd-bus/bus-gvariant.h \
2014 src/libsystemd/sd-bus/bus-convenience.c \
2015 src/libsystemd/sd-bus/bus-util.c \
2016 src/libsystemd/sd-bus/bus-util.h \
2017 src/libsystemd/sd-bus/bus-protocol.h \
2018 src/libsystemd/sd-bus/kdbus.h \
2019 src/libsystemd/sd-bus/sd-memfd.c \
2020 src/libsystemd/sd-utf8/sd-utf8.c \
2021 src/libsystemd/sd-event/sd-event.c \
2022 src/libsystemd/sd-event/event-util.h \
2023 src/libsystemd/sd-rtnl/sd-rtnl.c \
2024 src/libsystemd/sd-rtnl/rtnl-internal.h \
2025 src/libsystemd/sd-rtnl/rtnl-message.c \
2026 src/libsystemd/sd-rtnl/rtnl-util.h \
2027 src/libsystemd/sd-rtnl/rtnl-util.c \
2028 src/libsystemd/sd-resolve/sd-resolve.c \
2029 src/libsystemd/sd-resolve/resolve-util.h \
2030 src/login/sd-login.c \
2031 src/login/login-shared.c \
2032 src/login/login-shared.h
2034 nodist_libsystemd_la_SOURCES = \
2035 src/libsystemd/sd-bus/bus-error-mapping.c
2037 libsystemd_la_LIBADD = \
2038 libsystemd-id128-internal.la \
2039 libsystemd-daemon-internal.la \
2040 libsystemd-shared.la
2042 libsystemd_la_CFLAGS = \
2047 libsystemd_la_LDFLAGS = \
2049 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2050 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
2052 pkgconfiglib_DATA += \
2053 src/libsystemd/libsystemd.pc
2056 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2057 src/libsystemd/sd-bus/DIFFERENCES \
2058 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION \
2059 src/libsystemd/libsystemd.pc.in
2062 src/libsystemd/sd-bus/bus-error-mapping.c
2064 lib_LTLIBRARIES += \
2067 libsystemd_internal_la_SOURCES = \
2068 $(libsystemd_la_SOURCES)
2070 nodist_libsystemd_internal_la_SOURCES = \
2071 $(nodist_libsystemd_la_SOURCES)
2073 libsystemd_internal_la_CFLAGS = \
2074 $(libsystemd_la_CFLAGS)
2076 noinst_LTLIBRARIES += \
2077 libsystemd-internal.la
2079 libsystemd_dump_la_SOURCES = \
2080 src/libsystemd/sd-bus/bus-dump.c \
2081 src/libsystemd/sd-bus/bus-dump.h
2083 libsystemd_dump_la_CFLAGS = \
2087 noinst_LTLIBRARIES += \
2092 test-bus-signature \
2098 test-bus-kernel-bloom \
2099 test-bus-kernel-benchmark \
2101 test-bus-zero-copy \
2102 test-bus-introspect \
2114 test_bus_marshal_SOURCES = \
2115 src/libsystemd/sd-bus/test-bus-marshal.c
2117 test_bus_marshal_LDADD = \
2118 libsystemd-internal.la \
2119 libsystemd-id128-internal.la \
2120 libsystemd-daemon-internal.la \
2121 libsystemd-shared.la \
2122 libsystemd-dump.la \
2123 libsystemd-capability.la \
2128 test_bus_marshal_CFLAGS = \
2134 test_bus_signature_SOURCES = \
2135 src/libsystemd/sd-bus/test-bus-signature.c
2137 test_bus_signature_LDADD = \
2138 libsystemd-shared.la \
2139 libsystemd-internal.la
2141 test_bus_chat_SOURCES = \
2142 src/libsystemd/sd-bus/test-bus-chat.c
2144 test_bus_chat_CFLAGS = \
2148 test_bus_chat_LDADD = \
2149 libsystemd-internal.la \
2150 libsystemd-id128-internal.la \
2151 libsystemd-daemon-internal.la \
2152 libsystemd-shared.la
2154 test_bus_cleanup_SOURCES = \
2155 src/libsystemd/sd-bus/test-bus-cleanup.c
2157 test_bus_cleanup_LDADD = \
2158 libsystemd-internal.la \
2159 libsystemd-id128-internal.la \
2160 libsystemd-daemon-internal.la \
2161 libsystemd-shared.la
2163 test_bus_server_SOURCES = \
2164 src/libsystemd/sd-bus/test-bus-server.c
2166 test_bus_server_CFLAGS = \
2170 test_bus_server_LDADD = \
2171 libsystemd-internal.la \
2172 libsystemd-id128-internal.la \
2173 libsystemd-daemon-internal.la \
2174 libsystemd-shared.la
2176 test_bus_objects_SOURCES = \
2177 src/libsystemd/sd-bus/test-bus-objects.c
2179 test_bus_objects_CFLAGS = \
2184 test_bus_objects_LDADD = \
2185 libsystemd-internal.la \
2186 libsystemd-id128-internal.la \
2187 libsystemd-daemon-internal.la \
2188 libsystemd-shared.la \
2189 libsystemd-dump.la \
2190 libsystemd-capability.la \
2193 test_bus_error_SOURCES = \
2194 src/libsystemd/sd-bus/test-bus-error.c
2196 test_bus_error_LDADD = \
2197 libsystemd-internal.la \
2198 libsystemd-id128-internal.la \
2199 libsystemd-daemon-internal.la \
2200 libsystemd-shared.la
2202 test_bus_gvariant_SOURCES = \
2203 src/libsystemd/sd-bus/test-bus-gvariant.c
2205 test_bus_gvariant_LDADD = \
2206 libsystemd-internal.la \
2207 libsystemd-id128-internal.la \
2208 libsystemd-daemon-internal.la \
2209 libsystemd-shared.la \
2210 libsystemd-dump.la \
2211 libsystemd-capability.la \
2215 test_bus_gvariant_CFLAGS = \
2220 test_bus_creds_SOURCES = \
2221 src/libsystemd/sd-bus/test-bus-creds.c
2223 test_bus_creds_LDADD = \
2224 libsystemd-internal.la \
2225 libsystemd-id128-internal.la \
2226 libsystemd-daemon-internal.la \
2227 libsystemd-shared.la \
2228 libsystemd-dump.la \
2229 libsystemd-capability.la
2231 test_bus_match_SOURCES = \
2232 src/libsystemd/sd-bus/test-bus-match.c
2234 test_bus_match_LDADD = \
2235 libsystemd-internal.la \
2236 libsystemd-id128-internal.la \
2237 libsystemd-daemon-internal.la \
2238 libsystemd-shared.la
2240 test_bus_kernel_SOURCES = \
2241 src/libsystemd/sd-bus/test-bus-kernel.c
2243 test_bus_kernel_LDADD = \
2244 libsystemd-internal.la \
2245 libsystemd-id128-internal.la \
2246 libsystemd-daemon-internal.la \
2247 libsystemd-shared.la \
2248 libsystemd-dump.la \
2249 libsystemd-capability.la \
2252 test_bus_kernel_CFLAGS = \
2256 test_bus_kernel_bloom_SOURCES = \
2257 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2259 test_bus_kernel_bloom_LDADD = \
2260 libsystemd-internal.la \
2261 libsystemd-id128-internal.la \
2262 libsystemd-daemon-internal.la \
2263 libsystemd-shared.la
2265 test_bus_kernel_benchmark_SOURCES = \
2266 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2268 test_bus_kernel_benchmark_LDADD = \
2269 libsystemd-internal.la \
2270 libsystemd-id128-internal.la \
2271 libsystemd-daemon-internal.la \
2272 libsystemd-shared.la
2274 test_bus_memfd_SOURCES = \
2275 src/libsystemd/sd-bus/test-bus-memfd.c
2277 test_bus_memfd_LDADD = \
2278 libsystemd-internal.la \
2279 libsystemd-shared.la
2281 test_bus_zero_copy_SOURCES = \
2282 src/libsystemd/sd-bus/test-bus-zero-copy.c
2284 test_bus_zero_copy_LDADD = \
2285 libsystemd-internal.la \
2286 libsystemd-id128-internal.la \
2287 libsystemd-daemon-internal.la \
2288 libsystemd-shared.la \
2289 libsystemd-dump.la \
2290 libsystemd-capability.la \
2293 test_bus_zero_copy_CFLAGS = \
2297 test_bus_introspect_SOURCES = \
2298 src/libsystemd/sd-bus/test-bus-introspect.c
2300 test_bus_introspect_LDADD = \
2301 libsystemd-shared.la \
2302 libsystemd-internal.la
2304 test_event_SOURCES = \
2305 src/libsystemd/sd-event/test-event.c
2307 test_event_LDADD = \
2308 libsystemd-internal.la \
2309 libsystemd-id128-internal.la \
2310 libsystemd-daemon-internal.la \
2311 libsystemd-shared.la
2313 test_rtnl_SOURCES = \
2314 src/libsystemd/sd-rtnl/test-rtnl.c
2317 libsystemd-internal.la \
2318 libsystemd-daemon-internal.la \
2319 libsystemd-id128-internal.la \
2320 libsystemd-shared.la
2322 test_resolve_SOURCES = \
2323 src/systemd/sd-resolve.h \
2324 src/libsystemd/sd-resolve/test-resolve.c
2326 test_resolve_LDADD = \
2327 libsystemd-internal.la \
2328 libsystemd-shared.la
2330 test_resolve_CFLAGS = \
2335 src/libsystemd/sd-bus/busctl.c
2338 libsystemd-internal.la \
2339 libsystemd-id128-internal.la \
2340 libsystemd-daemon-internal.la \
2341 libsystemd-shared.la \
2342 libsystemd-dump.la \
2343 libsystemd-capability.la \
2350 # ------------------------------------------------------------------------------
2351 noinst_LTLIBRARIES += \
2354 libsystemd_dhcp_la_SOURCES = \
2355 src/systemd/sd-dhcp-client.h \
2356 src/libsystemd-dhcp/sd-dhcp-client.c \
2357 src/libsystemd-dhcp/dhcp-network.c \
2358 src/libsystemd-dhcp/dhcp-option.c \
2359 src/libsystemd-dhcp/dhcp-internal.h \
2360 src/libsystemd-dhcp/dhcp-protocol.h
2362 libsystemd_dhcp_la_LIBADD = \
2363 libsystemd-internal.la \
2364 libsystemd-shared.la
2366 test_dhcp_option_SOURCES = \
2367 src/libsystemd-dhcp/dhcp-protocol.h \
2368 src/libsystemd-dhcp/dhcp-internal.h \
2369 src/libsystemd-dhcp/test-dhcp-option.c
2371 test_dhcp_option_LDADD = \
2372 libsystemd-dhcp.la \
2373 libsystemd-internal.la \
2374 libsystemd-shared.la
2376 test_dhcp_client_SOURCES = \
2377 src/systemd/sd-dhcp-client.h \
2378 src/libsystemd-dhcp/dhcp-protocol.h \
2379 src/libsystemd-dhcp/dhcp-internal.h \
2380 src/libsystemd-dhcp/test-dhcp-client.c
2382 test_dhcp_client_LDADD = \
2383 libsystemd-dhcp.la \
2384 libsystemd-internal.la \
2385 libsystemd-daemon-internal.la \
2386 libsystemd-id128-internal.la \
2387 libsystemd-shared.la
2393 # ------------------------------------------------------------------------------
2403 include_HEADERS += \
2404 src/libudev/libudev.h
2406 lib_LTLIBRARIES += \
2409 libudev_la_SOURCES =\
2410 src/libudev/libudev.sym \
2411 src/libudev/libudev-private.h \
2412 src/libudev/libudev.c \
2413 src/libudev/libudev-list.c \
2414 src/libudev/libudev-util.c \
2415 src/libudev/libudev-device.c \
2416 src/libudev/libudev-enumerate.c \
2417 src/libudev/libudev-monitor.c \
2418 src/libudev/libudev-queue.c \
2419 src/libudev/libudev-hwdb-def.h \
2420 src/libudev/libudev-hwdb.c
2422 libudev_la_CFLAGS = \
2426 libudev_la_LDFLAGS = \
2428 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2429 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2431 libudev_la_LIBADD = \
2432 libsystemd-daemon-internal.la \
2433 libsystemd-id128-internal.la \
2434 libsystemd-shared.la
2436 pkgconfiglib_DATA += \
2437 src/libudev/libudev.pc
2440 src/libudev/libudev.pc.in
2443 src/libudev/libudev.pc \
2448 $(AM_V_at)$(MKDIR_P) $(dir $@)
2449 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2452 $(AM_V_at)$(MKDIR_P) $(dir $@)
2453 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2455 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2456 libudev-install-hook:
2457 libname=libudev.so && $(move-to-rootlibdir)
2459 libudev-uninstall-hook:
2460 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2462 INSTALL_EXEC_HOOKS += libudev-install-hook
2463 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2465 # ------------------------------------------------------------------------------
2466 noinst_LTLIBRARIES += \
2469 libudev_internal_la_SOURCES =\
2470 $(libudev_la_SOURCES) \
2471 src/libudev/libudev-device-private.c \
2472 src/libudev/libudev-queue-private.c
2474 libudev_internal_la_CFLAGS = \
2476 -fvisibility=default
2478 # ------------------------------------------------------------------------------
2480 $(sysconfdir)/udev/rules.d \
2481 $(sysconfdir)/udev/hwdb.d
2483 dist_network_DATA = \
2484 network/99-default.link
2486 dist_udevrules_DATA += \
2487 rules/99-systemd.rules \
2488 rules/42-usb-hid-pm.rules \
2489 rules/50-udev-default.rules \
2490 rules/60-drm.rules \
2491 rules/60-keyboard.rules \
2492 rules/60-persistent-storage-tape.rules \
2493 rules/60-persistent-serial.rules \
2494 rules/60-persistent-input.rules \
2495 rules/60-persistent-alsa.rules \
2496 rules/60-persistent-storage.rules \
2497 rules/64-btrfs.rules \
2498 rules/75-net-description.rules \
2499 rules/75-tty-description.rules \
2500 rules/78-sound-card.rules \
2501 rules/80-net-setup-link.rules \
2502 rules/95-udev-late.rules
2504 dist_udevhwdb_DATA = \
2505 hwdb/20-pci-vendor-model.hwdb \
2506 hwdb/20-pci-classes.hwdb \
2507 hwdb/20-usb-vendor-model.hwdb \
2508 hwdb/20-usb-classes.hwdb \
2509 hwdb/20-sdio-vendor-model.hwdb \
2510 hwdb/20-sdio-classes.hwdb \
2511 hwdb/20-bluetooth-vendor-product.hwdb \
2512 hwdb/20-acpi-vendor.hwdb \
2514 hwdb/60-keyboard.hwdb
2516 udevconfdir = $(sysconfdir)/udev
2517 dist_udevconf_DATA = \
2520 sharepkgconfigdir = $(datadir)/pkgconfig
2521 sharepkgconfig_DATA = \
2525 rules/99-systemd.rules.in \
2529 rules/99-systemd.rules \
2533 units/systemd-udevd.service.in \
2534 units/systemd-udev-trigger.service.in \
2535 units/systemd-udev-settle.service.in
2538 units/systemd-udevd.service \
2539 units/systemd-udev-trigger.service \
2540 units/systemd-udev-settle.service
2542 SOCKETS_TARGET_WANTS += \
2543 systemd-udevd-control.socket \
2544 systemd-udevd-kernel.socket
2545 SYSINIT_TARGET_WANTS += \
2546 systemd-udevd.service \
2547 systemd-udev-trigger.service
2549 rootbin_PROGRAMS += \
2552 rootlibexec_PROGRAMS += \
2555 noinst_LTLIBRARIES += \
2558 src/udev/keyboard-keys.txt:
2559 $(AM_V_at)$(MKDIR_P) $(dir $@)
2560 $(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/' > $@
2562 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2563 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2565 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2566 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2568 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2569 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2571 libudev_core_la_SOURCES = \
2573 src/udev/udev-event.c \
2574 src/udev/udev-watch.c \
2575 src/udev/udev-node.c \
2576 src/udev/udev-rules.c \
2577 src/udev/udev-ctrl.c \
2578 src/udev/udev-builtin.c \
2579 src/udev/udev-builtin-btrfs.c \
2580 src/udev/udev-builtin-hwdb.c \
2581 src/udev/udev-builtin-input_id.c \
2582 src/udev/udev-builtin-keyboard.c \
2583 src/udev/udev-builtin-net_id.c \
2584 src/udev/udev-builtin-net_setup_link.c \
2585 src/udev/udev-builtin-path_id.c \
2586 src/udev/udev-builtin-usb_id.c \
2587 src/udev/net/link-config.h \
2588 src/udev/net/link-config.c \
2589 src/udev/net/ethtool-util.h \
2590 src/udev/net/ethtool-util.c
2592 nodist_libudev_core_la_SOURCES = \
2593 src/udev/keyboard-keys-from-name.h \
2594 src/udev/keyboard-keys-to-name.h \
2595 src/udev/net/link-config-gperf.c
2598 $(nodist_libudev_core_la_SOURCES)
2601 src/udev/keyboard-keys-from-name.gperf \
2602 src/udev/keyboard-keys.txt \
2603 src/udev/net/link-config-gperf.c
2606 src/udev/net/link-config-gperf.gperf
2608 libudev_core_la_CFLAGS = \
2613 libudev_core_la_LIBADD = \
2614 libudev-internal.la \
2615 libsystemd-label.la \
2616 libsystemd-daemon-internal.la \
2617 libsystemd-internal.la \
2618 libsystemd-id128-internal.la \
2619 libsystemd-shared.la \
2623 libudev_core_la_CPPFLAGS = \
2625 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2628 libudev_core_la_SOURCES += \
2629 src/udev/udev-builtin-firmware.c
2631 dist_udevrules_DATA += \
2632 rules/50-firmware.rules
2636 libudev_core_la_SOURCES += \
2637 src/udev/udev-builtin-kmod.c
2639 dist_udevrules_DATA += \
2640 rules/80-drivers.rules
2644 libudev_core_la_SOURCES += \
2645 src/udev/udev-builtin-blkid.c
2649 libudev_core_la_SOURCES += \
2650 src/udev/udev-builtin-uaccess.c \
2651 src/login/logind-acl.c \
2652 src/login/sd-login.c \
2653 src/systemd/sd-login.h \
2654 src/login/login-shared.c \
2655 src/login/login-shared.h
2657 libudev_core_la_LIBADD += \
2661 systemd_udevd_SOURCES = \
2664 systemd_udevd_LDADD = \
2668 src/udev/udevadm.c \
2669 src/udev/udevadm-info.c \
2670 src/udev/udevadm-control.c \
2671 src/udev/udevadm-monitor.c \
2672 src/udev/udevadm-hwdb.c \
2673 src/udev/udevadm-settle.c \
2674 src/udev/udevadm-trigger.c \
2675 src/udev/udevadm-test.c \
2676 src/udev/udevadm-test-builtin.c
2681 # Update hwdb on installation. Do not bother if installing
2682 # in DESTDIR, since this is likely for packaging purposes.
2684 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2686 INSTALL_DATA_HOOKS += \
2690 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2692 # ------------------------------------------------------------------------------
2701 test_libudev_SOURCES = \
2702 src/test/test-libudev.c
2704 test_libudev_LDADD = \
2705 libsystemd-label.la \
2706 libudev-internal.la \
2707 libsystemd-shared.la
2709 test_udev_SOURCES = \
2710 src/test/test-udev.c
2719 test_udev_LDADD += \
2726 # packed sysfs test tree
2728 $(AM_V_at)$(MKDIR_P) $(dir $@)
2729 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2733 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2738 test/rules-test.sh \
2739 test/rule-syntax-check.py
2741 # ------------------------------------------------------------------------------
2743 src/udev/ata_id/ata_id.c
2746 libudev-internal.la \
2747 libsystemd-shared.la
2749 udevlibexec_PROGRAMS += \
2752 # ------------------------------------------------------------------------------
2753 cdrom_id_SOURCES = \
2754 src/udev/cdrom_id/cdrom_id.c
2757 libudev-internal.la \
2758 libsystemd-shared.la
2760 udevlibexec_PROGRAMS += \
2763 dist_udevrules_DATA += \
2764 rules/60-cdrom_id.rules
2766 # ------------------------------------------------------------------------------
2768 src/udev/collect/collect.c
2771 libudev-internal.la \
2772 libsystemd-shared.la
2774 udevlibexec_PROGRAMS += \
2777 # ------------------------------------------------------------------------------
2779 src/udev/scsi_id/scsi_id.c \
2780 src/udev/scsi_id/scsi_serial.c \
2781 src/udev/scsi_id/scsi.h \
2782 src/udev/scsi_id/scsi_id.h
2785 libudev-internal.la \
2786 libsystemd-shared.la
2788 udevlibexec_PROGRAMS += \
2792 src/udev/scsi_id/README
2794 # ------------------------------------------------------------------------------
2796 src/udev/v4l_id/v4l_id.c
2801 udevlibexec_PROGRAMS += \
2804 dist_udevrules_DATA += \
2805 rules/60-persistent-v4l.rules
2807 # ------------------------------------------------------------------------------
2808 accelerometer_SOURCES = \
2809 src/udev/accelerometer/accelerometer.c
2811 accelerometer_LDADD = \
2812 libudev-internal.la -lm \
2813 libsystemd-shared.la
2815 udevlibexec_PROGRAMS += \
2818 dist_udevrules_DATA += \
2819 rules/61-accelerometer.rules
2821 # ------------------------------------------------------------------------------
2828 libgudev_includedir = \
2829 $(includedir)/gudev-1.0/gudev
2831 libgudev_include_HEADERS = \
2833 src/gudev/gudevenums.h \
2834 src/gudev/gudevenumtypes.h \
2835 src/gudev/gudevtypes.h \
2836 src/gudev/gudevclient.h \
2837 src/gudev/gudevdevice.h \
2838 src/gudev/gudevenumerator.h
2840 lib_LTLIBRARIES += libgudev-1.0.la
2842 pkgconfiglib_DATA += \
2843 src/gudev/gudev-1.0.pc
2846 src/gudev/gudev-1.0.pc
2848 libgudev_1_0_la_SOURCES = \
2849 src/gudev/gudevenums.h \
2850 src/gudev/gudevenumtypes.h \
2851 src/gudev/gudevenumtypes.h\
2852 src/gudev/gudevtypes.h \
2853 src/gudev/gudevclient.h \
2854 src/gudev/gudevclient.c \
2855 src/gudev/gudevdevice.h \
2856 src/gudev/gudevdevice.c \
2857 src/gudev/gudevenumerator.h \
2858 src/gudev/gudevenumerator.c \
2859 src/gudev/gudevprivate.h
2861 nodist_libgudev_1_0_la_SOURCES = \
2862 src/gudev/gudevmarshal.h \
2863 src/gudev/gudevmarshal.c \
2864 src/gudev/gudevenumtypes.h \
2865 src/gudev/gudevenumtypes.c
2868 $(nodist_libgudev_1_0_la_SOURCES)
2870 libgudev_1_0_la_CPPFLAGS = \
2872 -I$(top_builddir)/src\
2873 -I$(top_srcdir)/src\
2874 -I$(top_builddir)/src/gudev \
2875 -I$(top_srcdir)/src/gudev \
2876 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2877 -D_GUDEV_COMPILATION \
2878 -DG_LOG_DOMAIN=\"GUdev\"
2880 libgudev_1_0_la_CFLAGS = \
2882 -fvisibility=default \
2885 libgudev_1_0_la_LIBADD = \
2889 libgudev_1_0_la_LDFLAGS = \
2891 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2892 -export-dynamic -no-undefined \
2893 -export-symbols-regex '^g_udev_.*'
2895 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2896 $(AM_V_at)$(MKDIR_P) $(dir $@)
2897 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2899 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2900 $(AM_V_at)$(MKDIR_P) $(dir $@)
2901 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2902 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2904 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2905 $(AM_V_at)$(MKDIR_P) $(dir $@)
2906 $(AM_V_GEN)glib-mkenums --template $^ > $@
2908 if HAVE_INTROSPECTION
2909 -include $(INTROSPECTION_MAKEFILE)
2911 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2913 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2915 src_gudev_GUdev_1_0_gir_CFLAGS = \
2918 -D_GUDEV_COMPILATION \
2919 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2920 -I$(top_srcdir)/src \
2921 -I$(top_builddir)/src \
2922 -I$(top_srcdir)/src/gudev \
2923 -I$(top_builddir)/src/gudev
2925 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2927 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2928 --pkg-export=gudev-1.0 \
2931 src_gudev_GUdev_1_0_gir_FILES = \
2933 src/gudev/gudevtypes.h \
2934 src/gudev/gudevenums.h \
2935 src/gudev/gudevenumtypes.h \
2936 src/gudev/gudevclient.h \
2937 src/gudev/gudevdevice.h \
2938 src/gudev/gudevenumerator.h \
2939 src/gudev/gudevclient.c \
2940 src/gudev/gudevdevice.c \
2941 src/gudev/gudevenumerator.c
2943 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2944 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2946 girdir = $(datadir)/gir-1.0
2948 src/gudev/GUdev-1.0.gir
2950 typelibsdir = $(libdir)/girepository-1.0
2952 src/gudev/GUdev-1.0.typelib
2954 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2955 endif # HAVE_INTROSPECTION
2957 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2958 libgudev-install-hook:
2959 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2961 libgudev-uninstall-hook:
2962 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2964 INSTALL_EXEC_HOOKS += libgudev-install-hook
2965 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2969 src/gudev/gudev-1.0.pc.in \
2970 src/gudev/gudevmarshal.list \
2971 src/gudev/gudevenumtypes.h.template \
2972 src/gudev/gudevenumtypes.c.template \
2973 src/gudev/gjs-example.js \
2974 src/gudev/seed-example-enum.js \
2975 src/gudev/seed-example.js
2977 # ------------------------------------------------------------------------------
2978 mtd_probe_SOURCES = \
2979 src/udev/mtd_probe/mtd_probe.c \
2980 src/udev/mtd_probe/mtd_probe.h \
2981 src/udev/mtd_probe/probe_smartmedia.c
2983 dist_udevrules_DATA += \
2984 rules/75-probe_mtd.rules
2986 udevlibexec_PROGRAMS += \
2989 # ------------------------------------------------------------------------------
2990 libsystemd_id128_la_SOURCES = \
2991 src/libsystemd-id128/libsystemd-id128.sym \
2992 src/libsystemd-id128/sd-id128.c
2994 libsystemd_id128_la_CFLAGS = \
2998 libsystemd_id128_la_LDFLAGS = \
3000 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
3001 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
3003 libsystemd_id128_la_LIBADD = \
3004 libsystemd-daemon-internal.la \
3005 libsystemd-shared.la
3007 libsystemd_id128_internal_la_SOURCES = \
3008 $(libsystemd_id128_la_SOURCES)
3010 test_id128_SOURCES = \
3011 src/test/test-id128.c
3013 test_id128_LDADD = \
3014 libsystemd-id128-internal.la \
3015 libsystemd-daemon-internal.la \
3016 libsystemd-shared.la
3021 pkginclude_HEADERS += \
3022 src/systemd/sd-id128.h
3024 lib_LTLIBRARIES += \
3027 noinst_LTLIBRARIES += \
3028 libsystemd-id128-internal.la
3030 pkgconfiglib_DATA += \
3031 src/libsystemd-id128/libsystemd-id128.pc
3033 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3034 libsystemd-id128-install-hook:
3035 libname=libsystemd-id128.so && $(move-to-rootlibdir)
3037 libsystemd-id128-uninstall-hook:
3038 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
3040 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
3041 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
3044 src/libsystemd-id128/libsystemd-id128.pc.in
3046 # ------------------------------------------------------------------------------
3048 rootlibexec_PROGRAMS += \
3051 systemd_activate_SOURCES = \
3052 src/activate/activate.c
3054 systemd_activate_LDADD = \
3055 libsystemd-label.la \
3056 libsystemd-daemon-internal.la \
3057 libsystemd-shared.la
3059 # ------------------------------------------------------------------------------
3060 systemd_journald_SOURCES = \
3061 src/journal/journald.c \
3062 src/journal/journald-server.h
3064 systemd_journald_LDADD = \
3065 libsystemd-journal-core.la \
3066 libsystemd-internal.la \
3067 libsystemd-shared.la
3069 systemd_cat_SOURCES = \
3072 systemd_cat_LDADD = \
3073 libsystemd-journal-core.la
3075 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3076 journalctl_CFLAGS = \
3079 journalctl_SOURCES = \
3080 src/journal/journalctl.c
3082 journalctl_LDADD = \
3083 libsystemd-journal-internal.la \
3084 libsystemd-id128-internal.la \
3085 libsystemd-logs.la \
3086 libsystemd-shared.la
3089 journalctl_LDADD += \
3094 journalctl_SOURCES += \
3095 src/journal/journal-qrcode.c \
3096 src/journal/journal-qrcode.h
3098 journalctl_CFLAGS += \
3101 journalctl_LDADD += \
3105 test_journal_SOURCES = \
3106 src/journal/test-journal.c
3108 test_journal_LDADD = \
3109 libsystemd-journal-core.la
3111 test_journal_send_SOURCES = \
3112 src/journal/test-journal-send.c
3114 test_journal_send_LDADD = \
3115 libsystemd-journal-core.la
3117 test_journal_syslog_SOURCES = \
3118 src/journal/test-journal-syslog.c
3120 test_journal_syslog_LDADD = \
3121 libsystemd-journal-core.la
3123 test_journal_match_SOURCES = \
3124 src/journal/test-journal-match.c
3126 test_journal_match_LDADD = \
3127 libsystemd-journal-core.la
3129 test_journal_enum_SOURCES = \
3130 src/journal/test-journal-enum.c
3132 test_journal_enum_LDADD = \
3133 libsystemd-journal-core.la
3135 test_journal_stream_SOURCES = \
3136 src/journal/test-journal-stream.c
3138 test_journal_stream_LDADD = \
3139 libsystemd-journal-core.la
3141 test_journal_flush_SOURCES = \
3142 src/journal/test-journal-flush.c
3144 test_journal_flush_LDADD = \
3145 libsystemd-journal-core.la
3147 test_journal_init_SOURCES = \
3148 src/journal/test-journal-init.c
3150 test_journal_init_LDADD = \
3151 libsystemd-journal-core.la
3153 test_journal_verify_SOURCES = \
3154 src/journal/test-journal-verify.c
3156 test_journal_verify_LDADD = \
3157 libsystemd-journal-core.la
3159 test_journal_interleaving_SOURCES = \
3160 src/journal/test-journal-interleaving.c
3162 test_journal_interleaving_LDADD = \
3163 libsystemd-journal-core.la
3165 test_mmap_cache_SOURCES = \
3166 src/journal/test-mmap-cache.c
3168 test_mmap_cache_LDADD = \
3169 libsystemd-journal-core.la
3171 test_catalog_SOURCES = \
3172 src/journal/test-catalog.c
3174 test_catalog_CPPFLAGS = \
3176 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3178 test_catalog_LDADD = \
3179 libsystemd-journal-core.la
3181 libsystemd_journal_la_SOURCES = \
3182 src/journal/libsystemd-journal.sym \
3183 src/journal/sd-journal.c \
3184 src/systemd/sd-journal.h \
3185 src/systemd/_sd-common.h \
3186 src/journal/journal-file.c \
3187 src/journal/journal-file.h \
3188 src/journal/journal-vacuum.c \
3189 src/journal/journal-vacuum.h \
3190 src/journal/journal-verify.c \
3191 src/journal/journal-verify.h \
3192 src/journal/lookup3.c \
3193 src/journal/lookup3.h \
3194 src/journal/journal-send.c \
3195 src/journal/journal-def.h \
3196 src/journal/compress.h \
3197 src/journal/catalog.c \
3198 src/journal/catalog.h \
3199 src/journal/mmap-cache.c \
3200 src/journal/mmap-cache.h
3202 libsystemd_journal_la_CFLAGS = \
3206 libsystemd_journal_la_LDFLAGS = \
3208 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
3209 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
3211 libsystemd_journal_la_LIBADD = \
3212 libsystemd-label.la \
3213 libsystemd-daemon-internal.la \
3214 libsystemd-id128-internal.la \
3215 libsystemd-shared.la
3217 libsystemd_journal_internal_la_SOURCES = \
3218 $(libsystemd_journal_la_SOURCES)
3220 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3221 libsystemd_journal_internal_la_CFLAGS = \
3224 libsystemd_journal_internal_la_LIBADD =
3227 libsystemd_journal_la_SOURCES += \
3228 src/journal/compress.c
3230 libsystemd_journal_la_CFLAGS += \
3233 libsystemd_journal_la_LIBADD += \
3236 libsystemd_journal_internal_la_CFLAGS += \
3239 libsystemd_journal_internal_la_LIBADD += \
3243 libsystemd_journal_core_la_SOURCES = \
3244 src/journal/journald-kmsg.c \
3245 src/journal/journald-kmsg.h \
3246 src/journal/journald-syslog.c \
3247 src/journal/journald-syslog.h \
3248 src/journal/journald-stream.c \
3249 src/journal/journald-stream.h \
3250 src/journal/journald-server.c \
3251 src/journal/journald-server.h \
3252 src/journal/journald-console.c \
3253 src/journal/journald-console.h \
3254 src/journal/journald-native.c \
3255 src/journal/journald-native.h \
3256 src/journal/journald-rate-limit.c \
3257 src/journal/journald-rate-limit.h \
3258 src/journal/journal-internal.h
3260 nodist_libsystemd_journal_core_la_SOURCES = \
3261 src/journal/journald-gperf.c
3263 libsystemd_journal_core_la_LIBADD = \
3264 libsystemd-journal-internal.la \
3265 libudev-internal.la \
3266 libsystemd-capability.la \
3267 libsystemd-label.la \
3268 libsystemd-daemon-internal.la \
3269 libsystemd-id128-internal.la \
3270 libsystemd-shared.la
3273 libsystemd_journal_core_la_LIBADD += \
3277 noinst_LTLIBRARIES += \
3278 libsystemd-journal-core.la
3281 libsystemd_journal_la_SOURCES += \
3282 src/journal/journal-authenticate.c \
3283 src/journal/journal-authenticate.h \
3284 src/journal/fsprg.c \
3287 libsystemd_journal_la_CFLAGS += \
3291 libsystemd_journal_la_LIBADD += \
3294 libsystemd_journal_internal_la_CFLAGS += \
3298 libsystemd_journal_internal_la_LIBADD += \
3302 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3303 # needed. Also, grant read access to new journal files to members of
3304 # "adm" and "wheel".
3305 libsystemd-journal-install-hook:
3306 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3307 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3308 -chown 0:0 $(DESTDIR)/var/log/journal
3309 -chmod 755 $(DESTDIR)/var/log/journal
3310 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3311 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3313 libsystemd-journal-uninstall-hook:
3314 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3316 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3317 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3319 # ------------------------------------------------------------------------------
3321 # Update catalog on installation. Do not bother if installing
3322 # in DESTDIR, since this is likely for packaging purposes.
3323 catalog-update-hook:
3324 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3326 INSTALL_DATA_HOOKS += \
3329 catalog-remove-hook:
3330 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3332 UNINSTALL_DATA_HOOKS += \
3341 test-journal-syslog \
3342 test-journal-match \
3343 test-journal-stream \
3345 test-journal-verify \
3346 test-journal-interleaving \
3347 test-journal-flush \
3351 pkginclude_HEADERS += \
3352 src/systemd/sd-journal.h \
3353 src/systemd/sd-messages.h \
3354 src/systemd/_sd-common.h
3356 lib_LTLIBRARIES += \
3357 libsystemd-journal.la
3359 noinst_LTLIBRARIES += \
3360 libsystemd-journal-internal.la
3362 rootlibexec_PROGRAMS += \
3365 rootbin_PROGRAMS += \
3371 dist_systemunit_DATA += \
3372 units/systemd-journald.socket
3374 nodist_systemunit_DATA += \
3375 units/systemd-journald.service \
3376 units/systemd-journal-flush.service
3378 dist_pkgsysconf_DATA += \
3379 src/journal/journald.conf
3381 pkgconfiglib_DATA += \
3382 src/journal/libsystemd-journal.pc
3384 dist_catalog_DATA = \
3385 catalog/systemd.fr.catalog \
3386 catalog/systemd.ru.catalog \
3387 catalog/systemd.it.catalog \
3388 catalog/systemd.catalog
3390 SOCKETS_TARGET_WANTS += \
3391 systemd-journald.socket
3392 SYSINIT_TARGET_WANTS += \
3393 systemd-journald.service \
3394 systemd-journal-flush.service
3397 src/journal/libsystemd-journal.pc.in \
3398 units/systemd-journald.service.in \
3399 units/systemd-journal-flush.service.in \
3400 src/journal/journald-gperf.gperf
3403 src/journal/journald-gperf.c
3405 # ------------------------------------------------------------------------------
3407 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3409 rootlibexec_PROGRAMS += \
3410 systemd-journal-gatewayd
3412 systemd_journal_gatewayd_SOURCES = \
3413 src/journal/journal-gatewayd.c \
3414 src/journal/microhttpd-util.h \
3415 src/journal/microhttpd-util.c
3417 systemd_journal_gatewayd_LDADD = \
3418 libsystemd-logs.la \
3419 libsystemd-journal-internal.la \
3420 libsystemd-id128-internal.la \
3421 libsystemd-daemon-internal.la \
3422 libsystemd-internal.la \
3423 libsystemd-shared.la \
3426 systemd_journal_gatewayd_CFLAGS = \
3428 $(MICROHTTPD_CFLAGS)
3430 systemd_journal_gatewayd_CPPFLAGS = \
3432 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3434 dist_systemunit_DATA += \
3435 units/systemd-journal-gatewayd.socket
3437 nodist_systemunit_DATA += \
3438 units/systemd-journal-gatewayd.service
3440 dist_gatewayddocumentroot_DATA = \
3441 src/journal/browse.html
3446 units/systemd-journal-gatewayd.service.in
3448 # ------------------------------------------------------------------------------
3450 systemd_socket_proxyd_SOURCES = \
3451 src/socket-proxy/socket-proxyd.c
3453 systemd_socket_proxyd_LDADD = \
3454 libsystemd-logs.la \
3455 libsystemd-internal.la \
3456 libsystemd-journal-internal.la \
3457 libsystemd-id128-internal.la \
3458 libsystemd-daemon-internal.la \
3459 libsystemd-shared.la
3461 # ------------------------------------------------------------------------------
3463 systemd_coredump_SOURCES = \
3464 src/journal/coredump.c
3466 systemd_coredump_LDADD = \
3467 libsystemd-journal-internal.la \
3468 libsystemd-label.la \
3469 libsystemd-shared.la \
3470 libsystemd-internal.la
3472 rootlibexec_PROGRAMS += \
3475 systemd_coredumpctl_SOURCES = \
3476 src/journal/coredumpctl.c
3478 systemd_coredumpctl_LDADD = \
3479 libsystemd-journal-internal.la \
3480 libsystemd-id128-internal.la \
3481 libsystemd-shared.la
3486 dist_bashcompletion_DATA += \
3487 shell-completion/bash/systemd-coredumpctl
3489 dist_zshcompletion_DATA += \
3490 shell-completion/zsh/_systemd-coredumpctl
3493 sysctl.d/50-coredump.conf
3496 sysctl.d/50-coredump.conf
3500 sysctl.d/50-coredump.conf.in
3502 # ------------------------------------------------------------------------------
3504 systemd_binfmt_SOURCES = \
3507 systemd_binfmt_LDADD = \
3508 libsystemd-shared.la
3510 rootlibexec_PROGRAMS += \
3513 dist_systemunit_DATA += \
3514 units/proc-sys-fs-binfmt_misc.automount \
3515 units/proc-sys-fs-binfmt_misc.mount
3517 nodist_systemunit_DATA += \
3518 units/systemd-binfmt.service
3521 $(prefix)/lib/binfmt.d \
3522 $(sysconfdir)/binfmt.d
3524 SYSINIT_TARGET_WANTS += \
3525 systemd-binfmt.service \
3526 proc-sys-fs-binfmt_misc.automount
3531 units/systemd-binfmt.service.in
3533 # ------------------------------------------------------------------------------
3535 systemd_vconsole_setup_SOURCES = \
3536 src/vconsole/vconsole-setup.c
3538 systemd_vconsole_setup_LDADD = \
3539 libsystemd-shared.la
3541 rootlibexec_PROGRAMS += \
3542 systemd-vconsole-setup
3544 nodist_systemunit_DATA += \
3545 units/systemd-vconsole-setup.service
3547 SYSINIT_TARGET_WANTS += \
3548 systemd-vconsole-setup.service
3552 units/systemd-vconsole-setup.service.in
3554 # ------------------------------------------------------------------------------
3556 systemd_readahead_SOURCES = \
3557 src/readahead/readahead.c \
3558 src/readahead/readahead-collect.c \
3559 src/readahead/readahead-replay.c \
3560 src/readahead/readahead-analyze.c \
3561 src/readahead/readahead-common.c \
3562 src/readahead/readahead-common.h
3564 systemd_readahead_LDADD = \
3565 libsystemd-daemon-internal.la \
3566 libudev-internal.la \
3567 libsystemd-shared.la
3570 src/readahead/sd-readahead.c \
3571 src/systemd/sd-readahead.h
3573 rootlibexec_PROGRAMS += \
3576 dist_systemunit_DATA += \
3577 units/systemd-readahead-drop.service \
3578 units/systemd-readahead-done.timer
3580 nodist_systemunit_DATA += \
3581 units/systemd-readahead-collect.service \
3582 units/systemd-readahead-replay.service \
3583 units/systemd-readahead-done.service
3588 units/systemd-readahead-collect.service.in \
3589 units/systemd-readahead-replay.service.in \
3590 units/systemd-readahead-done.service.in
3592 # ------------------------------------------------------------------------------
3594 systemd_bootchart_SOURCES = \
3595 src/bootchart/bootchart.c \
3596 src/bootchart/bootchart.h \
3597 src/bootchart/store.c \
3598 src/bootchart/store.h \
3599 src/bootchart/svg.c \
3602 systemd_bootchart_LDADD = \
3603 libsystemd-journal-internal.la \
3604 libsystemd-shared.la
3606 rootlibexec_PROGRAMS += \
3609 dist_pkgsysconf_DATA += \
3610 src/bootchart/bootchart.conf
3613 # ------------------------------------------------------------------------------
3614 if ENABLE_QUOTACHECK
3615 rootlibexec_PROGRAMS += \
3618 nodist_systemunit_DATA += \
3619 units/systemd-quotacheck.service
3621 systemd_quotacheck_SOURCES = \
3622 src/quotacheck/quotacheck.c
3624 systemd_quotacheck_LDADD = \
3625 libsystemd-shared.la
3629 units/systemd-quotacheck.service.in
3631 nodist_systemunit_DATA += \
3632 units/quotaon.service
3634 # ------------------------------------------------------------------------------
3635 if ENABLE_RANDOMSEED
3636 rootlibexec_PROGRAMS += \
3639 nodist_systemunit_DATA += \
3640 units/systemd-random-seed.service
3642 systemd_random_seed_SOURCES = \
3643 src/random-seed/random-seed.c
3645 systemd_random_seed_LDADD = \
3646 libsystemd-label.la \
3647 libsystemd-shared.la
3649 SYSINIT_TARGET_WANTS += \
3650 systemd-random-seed.service
3655 units/systemd-random-seed.service.in
3657 # ------------------------------------------------------------------------------
3659 rootlibexec_PROGRAMS += \
3662 nodist_systemunit_DATA += \
3663 units/systemd-backlight@.service
3665 systemd_backlight_SOURCES = \
3666 src/backlight/backlight.c
3668 systemd_backlight_LDADD = \
3669 libsystemd-label.la \
3670 libudev-internal.la \
3671 libsystemd-shared.la
3675 units/systemd-backlight@.service.in
3677 # ------------------------------------------------------------------------------
3679 rootlibexec_PROGRAMS += \
3682 nodist_systemunit_DATA += \
3683 units/systemd-rfkill@.service
3685 systemd_rfkill_SOURCES = \
3688 systemd_rfkill_LDADD = \
3689 libsystemd-label.la \
3690 libudev-internal.la \
3691 libsystemd-shared.la
3695 units/systemd-rfkill@.service.in
3697 # ------------------------------------------------------------------------------
3698 if HAVE_LIBCRYPTSETUP
3699 rootlibexec_PROGRAMS += \
3702 systemgenerator_PROGRAMS += \
3703 systemd-cryptsetup-generator
3705 dist_systemunit_DATA += \
3706 units/cryptsetup.target
3708 systemd_cryptsetup_SOURCES = \
3709 src/cryptsetup/cryptsetup.c
3711 systemd_cryptsetup_CFLAGS = \
3713 $(LIBCRYPTSETUP_CFLAGS)
3715 systemd_cryptsetup_LDADD = \
3716 libsystemd-label.la \
3717 libudev-internal.la \
3718 libsystemd-shared.la \
3719 $(LIBCRYPTSETUP_LIBS)
3721 systemd_cryptsetup_generator_SOURCES = \
3722 src/cryptsetup/cryptsetup-generator.c
3724 systemd_cryptsetup_generator_LDADD = \
3725 libsystemd-label.la \
3726 libsystemd-shared.la
3728 SYSINIT_TARGET_WANTS += \
3733 # ------------------------------------------------------------------------------
3735 systemd_hostnamed_SOURCES = \
3736 src/hostname/hostnamed.c
3738 systemd_hostnamed_LDADD = \
3739 libsystemd-label.la \
3740 libsystemd-internal.la \
3741 libsystemd-id128-internal.la \
3742 libsystemd-daemon-internal.la \
3743 libsystemd-shared.la
3745 rootlibexec_PROGRAMS += \
3748 nodist_systemunit_DATA += \
3749 units/systemd-hostnamed.service
3751 dist_systemunit_DATA += \
3752 units/org.freedesktop.hostname1.busname
3754 dist_dbuspolicy_DATA += \
3755 src/hostname/org.freedesktop.hostname1.conf
3757 dist_dbussystemservice_DATA += \
3758 src/hostname/org.freedesktop.hostname1.service
3760 polkitpolicy_files += \
3761 src/hostname/org.freedesktop.hostname1.policy
3763 SYSTEM_UNIT_ALIASES += \
3764 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3766 BUSNAMES_TARGET_WANTS += \
3767 org.freedesktop.hostname1.busname
3769 hostnamectl_SOURCES = \
3770 src/hostname/hostnamectl.c
3772 hostnamectl_LDADD = \
3773 libsystemd-internal.la \
3774 libsystemd-id128-internal.la \
3775 libsystemd-daemon-internal.la \
3776 libsystemd-shared.la
3781 dist_bashcompletion_DATA += \
3782 shell-completion/bash/hostnamectl
3784 dist_zshcompletion_DATA += \
3785 shell-completion/zsh/_hostnamectl
3789 polkitpolicy_in_files += \
3790 src/hostname/org.freedesktop.hostname1.policy.in
3793 units/systemd-hostnamed.service.in
3795 # ------------------------------------------------------------------------------
3797 systemd_bus_driverd_SOURCES = \
3798 src/bus-driverd/bus-driverd.c
3800 systemd_bus_driverd_LDADD = \
3801 libsystemd-internal.la \
3802 libsystemd-id128-internal.la \
3803 libsystemd-daemon-internal.la \
3804 libsystemd-shared.la
3806 rootlibexec_PROGRAMS += \
3809 nodist_systemunit_DATA += \
3810 units/systemd-bus-driverd.service
3812 dist_systemunit_DATA += \
3813 units/org.freedesktop.DBus.busname
3815 BUSNAMES_TARGET_WANTS += \
3816 org.freedesktop.DBus.busname
3818 nodist_userunit_DATA += \
3819 units/user/systemd-bus-driverd.service
3821 USER_BUSNAMES_TARGET_WANTS += \
3822 org.freedesktop.DBus.busname
3824 USER_UNIT_ALIASES += \
3825 $(systemunitdir)/org.freedesktop.DBus.busname org.freedesktop.DBus.busname
3829 units/systemd-bus-driverd.service.in \
3830 units/user/systemd-bus-driverd.service.in
3832 # ------------------------------------------------------------------------------
3834 systemd_localed_SOURCES = \
3835 src/locale/localed.c
3837 systemd_localed_LDADD = \
3838 libsystemd-label.la \
3839 libsystemd-internal.la \
3840 libsystemd-id128-internal.la \
3841 libsystemd-daemon-internal.la \
3842 libsystemd-shared.la
3844 nodist_systemunit_DATA += \
3845 units/systemd-localed.service
3847 dist_systemunit_DATA += \
3848 units/org.freedesktop.locale1.busname
3850 rootlibexec_PROGRAMS += \
3853 dist_dbuspolicy_DATA += \
3854 src/locale/org.freedesktop.locale1.conf
3856 dist_dbussystemservice_DATA += \
3857 src/locale/org.freedesktop.locale1.service
3859 polkitpolicy_files += \
3860 src/locale/org.freedesktop.locale1.policy
3862 SYSTEM_UNIT_ALIASES += \
3863 systemd-localed.service dbus-org.freedesktop.locale1.service
3865 BUSNAMES_TARGET_WANTS += \
3866 org.freedesktop.locale1.busname
3868 dist_pkgdata_DATA += \
3869 src/locale/kbd-model-map
3871 dist_noinst_SCRIPT = \
3872 src/locale/generate-kbd-model-map
3874 update-kbd-model-map: src/locale/generate-kbd-model-map
3875 $PYTHON $< > src/locale/kbd-model-map
3877 localectl_SOURCES = \
3878 src/locale/localectl.c
3881 libsystemd-internal.la \
3882 libsystemd-id128-internal.la \
3883 libsystemd-daemon-internal.la \
3884 libsystemd-shared.la
3889 dist_bashcompletion_DATA += \
3890 shell-completion/bash/localectl
3892 dist_zshcompletion_DATA += \
3893 shell-completion/zsh/_localectl
3897 polkitpolicy_in_files += \
3898 src/locale/org.freedesktop.locale1.policy.in
3901 units/systemd-localed.service.in
3903 # ------------------------------------------------------------------------------
3905 systemd_timedated_SOURCES = \
3906 src/timedate/timedated.c
3908 systemd_timedated_LDADD = \
3909 libsystemd-label.la \
3910 libsystemd-internal.la \
3911 libsystemd-id128-internal.la \
3912 libsystemd-daemon-internal.la \
3913 libsystemd-shared.la
3915 rootlibexec_PROGRAMS += \
3918 dist_dbussystemservice_DATA += \
3919 src/timedate/org.freedesktop.timedate1.service
3921 dist_dbuspolicy_DATA += \
3922 src/timedate/org.freedesktop.timedate1.conf
3924 nodist_systemunit_DATA += \
3925 units/systemd-timedated.service
3927 dist_systemunit_DATA += \
3928 units/org.freedesktop.timedate1.busname
3930 polkitpolicy_files += \
3931 src/timedate/org.freedesktop.timedate1.policy
3934 $(prefix)/lib/systemd/ntp-units.d \
3935 $(sysconfdir)/systemd/ntp-units.d
3937 SYSTEM_UNIT_ALIASES += \
3938 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3940 BUSNAMES_TARGET_WANTS += \
3941 org.freedesktop.timedate1.busname
3943 timedatectl_SOURCES = \
3944 src/timedate/timedatectl.c
3946 timedatectl_LDADD = \
3947 libsystemd-internal.la \
3948 libsystemd-id128-internal.la \
3949 libsystemd-daemon-internal.la \
3950 libsystemd-shared.la
3955 dist_bashcompletion_DATA += \
3956 shell-completion/bash/timedatectl
3958 dist_zshcompletion_DATA += \
3959 shell-completion/zsh/_timedatectl
3962 polkitpolicy_in_files += \
3963 src/timedate/org.freedesktop.timedate1.policy.in
3966 units/systemd-timedated.service.in
3968 # ------------------------------------------------------------------------------
3970 libnss_myhostname_la_SOURCES = \
3971 src/nss-myhostname/nss-myhostname.c \
3972 src/nss-myhostname/ifconf.h \
3973 src/nss-myhostname/netlink.c
3975 libnss_myhostname_la_LDFLAGS = \
3983 lib_LTLIBRARIES += \
3984 libnss_myhostname.la
3987 # ------------------------------------------------------------------------------
3989 systemd_machined_SOURCES = \
3990 src/machine/machined.c \
3991 src/machine/machined.h
3993 systemd_machined_LDADD = \
3994 libsystemd-machine-core.la
3996 rootlibexec_PROGRAMS += \
3999 libsystemd_machine_core_la_SOURCES = \
4000 src/machine/machined-dbus.c \
4001 src/machine/machine.c \
4002 src/machine/machine.h \
4003 src/machine/machine-dbus.c
4005 libsystemd_machine_core_la_LIBADD = \
4006 libsystemd-label.la \
4007 libsystemd-daemon-internal.la \
4008 libsystemd-internal.la \
4009 libsystemd-id128-internal.la \
4010 libudev-internal.la \
4011 libsystemd-shared.la
4013 noinst_LTLIBRARIES += \
4014 libsystemd-machine-core.la
4016 machinectl_SOURCES = \
4017 src/machine/machinectl.c
4019 machinectl_LDADD = \
4020 libsystemd-internal.la \
4021 libsystemd-id128-internal.la \
4022 libsystemd-daemon-internal.la \
4023 libsystemd-shared.la
4025 rootbin_PROGRAMS += \
4028 test_machine_tables_SOURCES = \
4029 src/machine/test-machine-tables.c
4031 test_machine_tables_LDADD = \
4032 libsystemd-machine-core.la
4037 nodist_systemunit_DATA += \
4038 units/systemd-machined.service
4040 dist_systemunit_DATA += \
4041 units/machine.slice \
4042 units/org.freedesktop.machine1.busname
4044 dist_dbussystemservice_DATA += \
4045 src/machine/org.freedesktop.machine1.service
4047 dist_dbuspolicy_DATA += \
4048 src/machine/org.freedesktop.machine1.conf
4050 dist_zshcompletion_DATA += \
4051 shell-completion/zsh/_machinectl
4053 SYSTEM_UNIT_ALIASES += \
4054 systemd-machined.service dbus-org.freedesktop.machine1.service
4056 BUSNAMES_TARGET_WANTS += \
4057 org.freedesktop.machine1.busname
4060 units/systemd-machined.service.in
4064 # ------------------------------------------------------------------------------
4066 rootlibexec_PROGRAMS += \
4069 systemd_networkd_SOURCES = \
4070 src/network/networkd.h \
4071 src/network/networkd.c \
4072 src/network/networkd-link.c \
4073 src/network/networkd-netdev.c \
4074 src/network/networkd-network.c \
4075 src/network/networkd-address.c \
4076 src/network/networkd-route.c \
4077 src/network/networkd-manager.c
4079 nodist_systemd_networkd_SOURCES = \
4080 src/network/networkd-gperf.c
4082 systemd_networkd_LDADD = \
4083 libudev-internal.la \
4084 libsystemd-daemon-internal.la \
4085 libsystemd-internal.la \
4086 libsystemd-dhcp.la \
4087 libsystemd-id128-internal.la \
4088 libsystemd-label.la \
4089 libsystemd-shared.la
4091 nodist_systemunit_DATA += \
4092 units/systemd-networkd.service
4094 MULTI_USER_TARGET_WANTS += \
4095 systemd-networkd.service
4097 test_network_SOURCES = \
4098 src/network/test-network.c \
4099 src/network/networkd.h \
4100 src/network/networkd-link.c \
4101 src/network/networkd-netdev.c \
4102 src/network/networkd-network.c \
4103 src/network/networkd-address.c \
4104 src/network/networkd-route.c \
4105 src/network/networkd-manager.c \
4106 src/network/networkd-gperf.c
4108 test_network_LDADD = \
4109 libudev-internal.la \
4110 libsystemd-internal.la \
4111 libsystemd-dhcp.la \
4112 libsystemd-id128-internal.la \
4113 libsystemd-daemon-internal.la \
4114 libsystemd-label.la \
4115 libsystemd-shared.la
4121 src/network/networkd-gperf.gperf \
4122 units/systemd-networkd.service.in
4125 src/network/networkd-gperf.c
4128 # ------------------------------------------------------------------------------
4130 systemd_logind_SOURCES = \
4131 src/login/logind.c \
4134 nodist_systemd_logind_SOURCES = \
4135 src/login/logind-gperf.c
4137 systemd_logind_LDADD = \
4138 libsystemd-logind-core.la
4140 libsystemd_logind_core_la_SOURCES = \
4141 src/login/logind-core.c \
4142 src/login/logind-device.c \
4143 src/login/logind-device.h \
4144 src/login/logind-button.c \
4145 src/login/logind-button.h \
4146 src/login/logind-action.c \
4147 src/login/logind-action.h \
4148 src/login/logind-seat.c \
4149 src/login/logind-seat.h \
4150 src/login/logind-session.c \
4151 src/login/logind-session.h \
4152 src/login/logind-session-device.c \
4153 src/login/logind-session-device.h \
4154 src/login/logind-user.c \
4155 src/login/logind-user.h \
4156 src/login/logind-inhibit.c \
4157 src/login/logind-inhibit.h \
4158 src/login/logind-dbus.c \
4159 src/login/logind-session-dbus.c \
4160 src/login/logind-seat-dbus.c \
4161 src/login/logind-user-dbus.c \
4162 src/login/logind-acl.h \
4163 src/login/login-shared.c \
4164 src/login/login-shared.h
4166 libsystemd_logind_core_la_LIBADD = \
4167 libsystemd-label.la \
4168 libsystemd-capability.la \
4169 libsystemd-daemon-internal.la \
4170 libsystemd-id128-internal.la \
4171 libsystemd-internal.la \
4172 libudev-internal.la \
4173 libsystemd-shared.la
4176 libsystemd_logind_core_la_SOURCES += \
4177 src/login/logind-acl.c
4179 libsystemd_logind_core_la_LIBADD += \
4183 noinst_LTLIBRARIES += \
4184 libsystemd-logind-core.la
4186 systemd_user_sessions_SOURCES = \
4187 src/login/user-sessions.c
4189 systemd_user_sessions_LDADD = \
4190 libsystemd-shared.la
4192 rootlibexec_PROGRAMS += \
4194 systemd-user-sessions
4196 loginctl_SOURCES = \
4197 src/login/loginctl.c \
4198 src/login/sysfs-show.c
4201 libsystemd-internal.la \
4202 libudev-internal.la \
4203 libsystemd-shared.la \
4204 libsystemd-id128-internal.la \
4205 libsystemd-daemon-internal.la
4207 rootbin_PROGRAMS += \
4210 dist_bashcompletion_DATA += \
4211 shell-completion/bash/loginctl
4213 dist_zshcompletion_DATA += \
4214 shell-completion/zsh/_loginctl \
4215 shell-completion/zsh/_systemd-inhibit
4217 systemd_inhibit_SOURCES = \
4220 systemd_inhibit_LDADD = \
4221 libsystemd-internal.la \
4222 libsystemd-id128-internal.la \
4223 libsystemd-daemon-internal.la \
4224 libsystemd-shared.la
4226 rootbin_PROGRAMS += \
4229 test_login_SOURCES = \
4230 src/login/test-login.c
4232 test_login_LDADD = \
4233 libsystemd-internal.la \
4234 libsystemd-shared.la
4236 test_login_shared_SOURCES = \
4237 src/login/test-login-shared.c
4239 test_login_shared_LDADD = \
4240 libsystemd-internal.la \
4241 libsystemd-shared.la
4243 test_inhibit_SOURCES = \
4244 src/login/test-inhibit.c
4246 test_inhibit_LDADD = \
4247 libsystemd-internal.la \
4248 libsystemd-daemon-internal.la \
4249 libsystemd-id128-internal.la \
4250 libsystemd-shared.la
4252 test_login_tables_SOURCES = \
4253 src/login/test-login-tables.c
4255 test_login_tables_LDADD = \
4256 libsystemd-logind-core.la
4267 pam_systemd_la_SOURCES = \
4268 src/login/pam-module.c
4270 pam_systemd_la_CFLAGS = \
4275 pam_systemd_la_LDFLAGS = \
4281 -export-symbols-regex '^pam_sm_.*'
4283 pam_systemd_la_LIBADD = \
4284 libsystemd-capability.la \
4285 libsystemd-internal.la \
4286 libsystemd-id128-internal.la \
4287 libsystemd-daemon-internal.la \
4288 libsystemd-shared.la \
4291 pamlib_LTLIBRARIES = \
4294 dist_pamconf_DATA = \
4295 src/login/systemd-user
4298 nodist_systemunit_DATA += \
4299 units/systemd-logind.service \
4300 units/systemd-user-sessions.service
4302 dist_systemunit_DATA += \
4304 units/org.freedesktop.login1.busname
4306 dist_dbussystemservice_DATA += \
4307 src/login/org.freedesktop.login1.service
4309 dist_dbuspolicy_DATA += \
4310 src/login/org.freedesktop.login1.conf
4312 dist_pkgsysconf_DATA += \
4313 src/login/logind.conf
4315 pkginclude_HEADERS += \
4316 src/systemd/sd-login.h
4318 polkitpolicy_files += \
4319 src/login/org.freedesktop.login1.policy
4324 MULTI_USER_TARGET_WANTS += \
4325 systemd-logind.service \
4326 systemd-user-sessions.service
4328 SYSTEM_UNIT_ALIASES += \
4329 systemd-logind.service dbus-org.freedesktop.login1.service
4331 BUSNAMES_TARGET_WANTS += \
4332 org.freedesktop.login1.busname
4334 if ENABLE_MULTI_SEAT_X
4336 systemd_multi_seat_x_SOURCES = \
4337 src/login/multi-seat-x.c
4339 systemd_multi_seat_x_LDADD = \
4340 libsystemd-label.la \
4341 libsystemd-shared.la
4343 rootlibexec_PROGRAMS += \
4344 systemd-multi-seat-x
4348 dist_udevrules_DATA += \
4349 src/login/70-uaccess.rules \
4350 src/login/70-power-switch.rules
4352 nodist_udevrules_DATA += \
4353 src/login/71-seat.rules \
4354 src/login/73-seat-late.rules
4357 src/login/logind-gperf.c \
4358 src/login/71-seat.rules \
4359 src/login/73-seat-late.rules
4362 polkitpolicy_in_files += \
4363 src/login/org.freedesktop.login1.policy.in
4366 src/login/logind-gperf.gperf \
4367 src/compat-libs/libsystemd-login.pc.in \
4368 src/login/71-seat.rules.in \
4369 src/login/73-seat-late.rules.in \
4370 units/systemd-logind.service.in \
4371 units/systemd-user-sessions.service.in
4373 # ------------------------------------------------------------------------------
4374 if HAVE_PYTHON_DEVEL
4375 pkgpyexec_LTLIBRARIES = \
4382 _journal_la_SOURCES = \
4383 src/python-systemd/_journal.c
4385 _journal_la_CFLAGS = \
4387 -fvisibility=default \
4388 $(PYTHON_DEVEL_CFLAGS)
4390 _journal_la_LDFLAGS = \
4396 _journal_la_LIBADD = \
4397 $(PYTHON_DEVEL_LIBS) \
4398 libsystemd-journal.la
4400 id128_la_SOURCES = \
4401 src/python-systemd/id128.c \
4402 src/python-systemd/id128-constants.h \
4403 src/python-systemd/pyutil.c \
4404 src/python-systemd/pyutil.h
4408 -fvisibility=default \
4409 $(PYTHON_DEVEL_CFLAGS) \
4410 -I$(top_builddir)/src/python-systemd
4412 id128_la_LDFLAGS = \
4419 $(PYTHON_DEVEL_LIBS) \
4422 _daemon_la_SOURCES = \
4423 src/python-systemd/_daemon.c \
4424 src/python-systemd/pyutil.c \
4425 src/python-systemd/pyutil.h
4427 _daemon_la_CFLAGS = \
4429 -fvisibility=default \
4430 $(PYTHON_DEVEL_CFLAGS) \
4431 -I$(top_builddir)/src/python-systemd
4433 _daemon_la_LDFLAGS = \
4439 _daemon_la_LIBADD = \
4440 $(PYTHON_DEVEL_LIBS) \
4441 libsystemd-daemon.la
4443 _reader_la_SOURCES = \
4444 src/python-systemd/_reader.c \
4445 src/python-systemd/pyutil.c \
4446 src/python-systemd/pyutil.h
4448 _reader_la_CFLAGS = \
4450 -fvisibility=default \
4451 $(PYTHON_DEVEL_CFLAGS)
4453 _reader_la_LDFLAGS = \
4459 _reader_la_LIBADD = \
4460 $(PYTHON_DEVEL_LIBS) \
4461 libsystemd-journal.la \
4462 libsystemd-id128.la \
4463 libsystemd-daemon-internal.la \
4464 libsystemd-shared.la
4466 login_la_SOURCES = \
4467 src/python-systemd/login.c \
4468 src/python-systemd/pyutil.c \
4469 src/python-systemd/pyutil.h
4473 -fvisibility=default \
4474 $(PYTHON_DEVEL_CFLAGS)
4476 login_la_LDFLAGS = \
4483 $(PYTHON_DEVEL_LIBS) \
4484 libsystemd-journal.la \
4486 libsystemd-daemon-internal.la \
4487 libsystemd-shared.la
4489 dist_pkgpyexec_PYTHON = \
4490 src/python-systemd/journal.py \
4491 src/python-systemd/daemon.py \
4492 src/python-systemd/__init__.py
4494 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4495 $(AM_V_at)$(MKDIR_P) $(dir $@)
4496 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4499 src/python-systemd/id128-constants.h
4501 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4503 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4504 $(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/
4505 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4508 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4509 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4512 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4513 $(MAKE) DESTDIR="$$dir" install && \
4514 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4519 CLEAN_LOCAL_HOOKS += clean-sphinx
4522 -rm -rf docs/html/python-systemd/
4524 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4526 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4527 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4529 # ------------------------------------------------------------------------------
4530 if ENABLE_COMPAT_LIBS
4532 define generate-fake-lib
4533 $(AM_V_at)$(MKDIR_P) $(dir $@)
4534 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/void new_\1(void);\n__asm__(".symver new_\1,\1@LIBSYSTEMD_209");\nstatic void (*resolve_\1(void)) (void) {\n\treturn new_\1;\n}\nvoid \1(void) __attribute__((ifunc("resolve_\1")));\nobsolete_lib(\1,$(notdir $(basename $<)));\n/p' <$< >$@
4537 libsystemd_login_la_SOURCES = \
4538 libsystemd-login.c \
4539 src/compat-libs/libsystemd-login.sym
4541 libsystemd_login_la_CFLAGS = \
4543 -fvisibility=default \
4544 -imacros $(top_srcdir)/src/compat-libs/linkwarning.h \
4547 libsystemd_login_la_LDFLAGS = \
4549 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4550 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
4552 libsystemd_login_la_LIBADD = \
4558 libsystemd-login.c: src/compat-libs/libsystemd-login.sym
4559 $(generate-fake-lib)
4561 lib_LTLIBRARIES += \
4564 pkgconfiglib_DATA += \
4565 src/compat-libs/libsystemd-login.pc
4567 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4568 libsystemd-login-install-hook:
4569 libname=libsystemd-login.so && $(move-to-rootlibdir)
4571 libsystemd-login-uninstall-hook:
4572 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4574 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
4575 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
4579 # ------------------------------------------------------------------------------
4581 '|rootlibexecdir=$(rootlibexecdir)|' \
4582 '|rootbindir=$(rootbindir)|' \
4583 '|bindir=$(bindir)|' \
4584 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4585 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4586 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4587 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4588 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4589 '|pkgdatadir=$(pkgdatadir)|' \
4590 '|systemunitdir=$(systemunitdir)|' \
4591 '|userunitdir=$(userunitdir)|' \
4592 '|systempresetdir=$(systempresetdir)|' \
4593 '|userpresetdir=$(userpresetdir)|' \
4594 '|udevhwdbdir=$(udevhwdbdir)|' \
4595 '|udevrulesdir=$(udevrulesdir)|' \
4596 '|catalogdir=$(catalogdir)|' \
4597 '|tmpfilesdir=$(tmpfilesdir)|' \
4598 '|sysctldir=$(sysctldir)|' \
4599 '|systemgeneratordir=$(systemgeneratordir)|' \
4600 '|usergeneratordir=$(usergeneratordir)|' \
4601 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4602 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4603 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4604 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4605 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4606 '|prefix=$(prefix)|' \
4607 '|exec_prefix=$(exec_prefix)|' \
4608 '|libdir=$(libdir)|' \
4609 '|includedir=$(includedir)|' \
4610 '|VERSION=$(VERSION)|' \
4611 '|rootprefix=$(rootprefix)|' \
4612 '|udevlibexecdir=$(udevlibexecdir)|' \
4613 '|SUSHELL=$(SUSHELL)|' \
4614 '|DEBUGTTY=$(DEBUGTTY)|' \
4617 '|MKDIR_P=$(MKDIR_P)|' \
4618 '|QUOTAON=$(QUOTAON)|' \
4619 '|QUOTACHECK=$(QUOTACHECK)|' \
4620 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4621 '|VARLOGDIR=$(varlogdir)|' \
4622 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4623 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4624 '|PYTHON=$(PYTHON)|' \
4625 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4628 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4629 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4638 sysctl.d/%: sysctl.d/%.in
4644 src/core/macros.%: src/core/macros.%.in
4647 src/%.policy.in: src/%.policy.in.in
4655 $(AM_V_GEN)chmod +x $@
4657 src/%.c: src/%.gperf
4658 $(AM_V_at)$(MKDIR_P) $(dir $@)
4659 $(AM_V_GPERF)$(GPERF) < $< > $@
4662 $(AM_V_at)$(MKDIR_P) $(dir $@)
4663 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4666 $(AM_V_at)$(MKDIR_P) $(dir $@)
4667 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4669 units/user/%: units/%.m4
4670 $(AM_V_at)$(MKDIR_P) $(dir $@)
4671 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4674 nodist_polkitpolicy_DATA = \
4675 $(polkitpolicy_files) \
4676 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4680 $(polkitpolicy_in_files) \
4681 $(polkitpolicy_in_in_files)
4684 $(nodist_systemunit_DATA) \
4685 $(nodist_userunit_DATA) \
4686 $(pkgconfigdata_DATA) \
4687 $(pkgconfiglib_DATA) \
4688 $(nodist_polkitpolicy_DATA)
4690 # ------------------------------------------------------------------------------
4692 man/custom-entities.ent:
4693 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4694 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4695 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4699 man/custom-entities.ent
4703 --stringparam man.output.quietly 1 \
4704 --stringparam funcsynopsis.style ansi \
4705 --stringparam man.authors.section.enabled 0 \
4706 --stringparam man.copyright.section.enabled 0 \
4707 --stringparam systemd.version $(VERSION) \
4708 --path '$(builddir)/man:$(srcdir)/man'
4710 XSLTPROC_PROCESS_MAN = \
4711 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4713 XSLTPROC_PROCESS_HTML = \
4714 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4716 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4717 $(XSLTPROC_PROCESS_MAN)
4719 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4720 $(XSLTPROC_PROCESS_MAN)
4722 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4723 $(XSLTPROC_PROCESS_MAN)
4725 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4726 $(XSLTPROC_PROCESS_MAN)
4728 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4729 $(XSLTPROC_PROCESS_MAN)
4731 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4732 $(XSLTPROC_PROCESS_HTML)
4735 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4741 man/custom-html.xsl \
4744 # ------------------------------------------------------------------------------
4747 docs/sysvinit/README
4752 docs/sysvinit/README: docs/sysvinit/README.in
4755 docs/var-log/README: docs/var-log/README.in
4759 docs/sysvinit/README \
4764 docs/sysvinit/README.in \
4765 docs/var-log/README.in
4767 SOCKETS_TARGET_WANTS += \
4768 systemd-initctl.socket \
4769 systemd-shutdownd.socket
4772 RUNLEVEL1_TARGET_WANTS += \
4773 systemd-update-utmp-runlevel.service
4774 RUNLEVEL2_TARGET_WANTS += \
4775 systemd-update-utmp-runlevel.service
4776 RUNLEVEL3_TARGET_WANTS += \
4777 systemd-update-utmp-runlevel.service
4778 RUNLEVEL4_TARGET_WANTS += \
4779 systemd-update-utmp-runlevel.service
4780 RUNLEVEL5_TARGET_WANTS += \
4781 systemd-update-utmp-runlevel.service
4783 SYSINIT_TARGET_WANTS += \
4784 systemd-update-utmp.service
4785 LOCAL_FS_TARGET_WANTS += \
4786 systemd-remount-fs.service \
4788 MULTI_USER_TARGET_WANTS += \
4790 systemd-ask-password-wall.path
4791 SYSINIT_TARGET_WANTS += \
4792 dev-hugepages.mount \
4794 sys-kernel-config.mount \
4795 sys-kernel-debug.mount \
4796 sys-fs-fuse-connections.mount \
4797 systemd-sysctl.service \
4798 systemd-ask-password-console.path
4801 SYSTEM_UNIT_ALIASES += \
4802 poweroff.target runlevel0.target \
4803 rescue.target runlevel1.target \
4804 multi-user.target runlevel2.target \
4805 multi-user.target runlevel3.target \
4806 multi-user.target runlevel4.target \
4807 graphical.target runlevel5.target \
4808 reboot.target runlevel6.target
4811 SYSTEM_UNIT_ALIASES += \
4812 graphical.target default.target \
4813 reboot.target ctrl-alt-del.target \
4814 getty@.service autovt@.service
4816 USER_UNIT_ALIASES += \
4817 $(systemunitdir)/shutdown.target shutdown.target \
4818 $(systemunitdir)/sockets.target sockets.target \
4819 $(systemunitdir)/busnames.target busnames.target \
4820 $(systemunitdir)/timers.target timers.target \
4821 $(systemunitdir)/paths.target paths.target \
4822 $(systemunitdir)/bluetooth.target bluetooth.target \
4823 $(systemunitdir)/printer.target printer.target \
4824 $(systemunitdir)/sound.target sound.target \
4825 $(systemunitdir)/smartcard.target smartcard.target
4827 GENERAL_ALIASES += \
4828 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4829 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4830 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4831 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4835 $(systemunitdir)/runlevel1.target.wants \
4836 $(systemunitdir)/runlevel2.target.wants \
4837 $(systemunitdir)/runlevel3.target.wants \
4838 $(systemunitdir)/runlevel4.target.wants \
4839 $(systemunitdir)/runlevel5.target.wants
4843 $(prefix)/lib/modules-load.d \
4844 $(sysconfdir)/modules-load.d \
4845 $(prefix)/lib/systemd/network \
4846 $(sysconfdir)/systemd/network \
4847 $(prefix)/lib/sysctl.d \
4848 $(sysconfdir)/sysctl.d \
4849 $(prefix)/lib/kernel/install.d \
4850 $(sysconfdir)/kernel/install.d \
4851 $(systemshutdowndir) \
4853 $(systemgeneratordir) \
4854 $(usergeneratordir) \
4857 $(pkgsysconfdir)/system \
4858 $(pkgsysconfdir)/system/multi-user.target.wants \
4859 $(pkgsysconfdir)/system/getty.target.wants \
4860 $(pkgsysconfdir)/user \
4861 $(dbussessionservicedir) \
4862 $(sysconfdir)/xdg/systemd
4864 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4866 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4868 install-data-hook: $(INSTALL_DATA_HOOKS)
4870 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4872 clean-local: $(CLEAN_LOCAL_HOOKS)
4873 rm -rf $(abs_srcdir)/install-tree
4874 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4875 $(abs_srcdir)/hwdb/iab.txt
4877 DISTCHECK_CONFIGURE_FLAGS = \
4878 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4879 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4880 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4881 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4882 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4883 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4884 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4885 --with-rootprefix=$$dc_install_base \
4886 --disable-split-usr \
4890 DISTCHECK_CONFIGURE_FLAGS += \
4891 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4892 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4894 DISTCHECK_CONFIGURE_FLAGS += \
4895 --with-sysvinit-path= \
4896 --with-sysvrcnd-path=
4900 DISTCHECK_CONFIGURE_FLAGS += \
4905 ( cd $(top_srcdir)/hwdb && \
4906 wget -N http://www.linux-usb.org/usb.ids \
4907 http://pci-ids.ucw.cz/v2.2/pci.ids \
4908 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4909 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4913 ( cd $(top_srcdir)/src/libsystemd/ && \
4914 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4916 upload: all distcheck
4917 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4918 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4919 scp man/*.html tango:public/systemd-man/
4921 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4922 doc-sync: all destdir-sphinx
4923 gtkdoc-rebase --html-dir=docs/libudev/html --online
4924 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4925 gtkdoc-rebase --html-dir=docs/gudev/html --online
4926 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4927 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4928 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4931 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4934 rm -rf $(abs_srcdir)/install-tree
4935 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4936 tree $(abs_srcdir)/install-tree
4938 # Let's run all tests of the test suite, but under valgrind. Let's
4939 # exclude the one perl script we have in there
4940 valgrind-tests: $(TESTS)
4941 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
4942 if file $$f | grep -q shell; then \
4943 echo -e "$${x}Skipping non-binary $$f"; else \
4944 echo -e "$${x}Running $$f"; \
4945 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
4950 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
4952 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
4953 $(AM_V_GEN)cat $^ > $@
4955 check-api-docs: exported man
4956 $(AM_V_GEN)for symbol in `cat exported` ; do \
4957 if test -f $(builddir)/man/$$symbol.html ; then \
4958 echo " Symbol $$symbol() is documented." ; \
4960 echo "‣ Symbol $$symbol() lacks documentation." ; \
4964 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
4965 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
4967 undefined defined: $(ALL_OBJECTS)
4968 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
4969 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
4970 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
4976 check-api-unused: defined undefined exported
4977 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
4979 # Stupid test that everything purported to be exported really is
4981 define generate-sym-test
4982 $(AM_V_at)$(MKDIR_P) $(dir $@)
4983 $(AM_V_at)printf '#include <stdio.h>\n' > $@
4984 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
4985 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
4986 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
4987 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
4988 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
4989 $(AM_V_at)printf 'return 0; }\n' >> $@
4992 test-libsystemd-sym.c: \
4993 src/libsystemd/libsystemd.sym \
4994 src/systemd/sd-bus.h \
4995 src/systemd/sd-utf8.h \
4996 src/systemd/sd-login.h
4997 $(generate-sym-test)
4999 test-libsystemd-daemon-sym.c: \
5000 src/libsystemd-daemon/libsystemd-daemon.sym \
5001 src/systemd/sd-daemon.h
5002 $(generate-sym-test)
5004 test-libsystemd-id128-sym.c: \
5005 src/libsystemd-id128/libsystemd-id128.sym \
5006 src/systemd/sd-id128.h
5007 $(generate-sym-test)
5009 test-libsystemd-journal-sym.c: \
5010 src/journal/libsystemd-journal.sym \
5011 src/systemd/sd-journal.h
5012 $(generate-sym-test)
5014 test-libsystemd-login-sym.c: \
5015 src/compat-libs/libsystemd-login.sym \
5016 src/systemd/sd-login.h
5017 $(generate-sym-test)
5019 test-libudev-sym.c: \
5020 src/libudev/libudev.sym \
5022 $(generate-sym-test)
5024 test_libsystemd_sym_SOURCES = \
5025 test-libsystemd-sym.c
5026 test_libsystemd_sym_LDADD = \
5029 test_libsystemd_daemon_sym_SOURCES = \
5030 test-libsystemd-daemon-sym.c
5031 test_libsystemd_daemon_sym_LDADD = \
5032 libsystemd-daemon.la
5034 test_libsystemd_id128_sym_SOURCES = \
5035 test-libsystemd-id128-sym.c
5036 test_libsystemd_id128_sym_LDADD = \
5039 test_libsystemd_journal_sym_SOURCES = \
5040 test-libsystemd-journal-sym.c
5041 test_libsystemd_journal_sym_LDADD = \
5042 libsystemd-journal.la
5044 test_libsystemd_login_sym_SOURCES = \
5045 test-libsystemd-login-sym.c
5046 test_libsystemd_login_sym_LDADD = \
5049 test_libudev_sym_SOURCES = \
5051 test_libudev_sym_LDADD = \
5055 $(test_libsystemd_sym_SOURCES) \
5056 $(test_libsystemd_daemon_sym_SOURCES) \
5057 $(test_libsystemd_id128_sym_SOURCES) \
5058 $(test_libsystemd_journal_sym_SOURCES) \
5059 $(test_libsystemd_login_sym_SOURCES) \
5060 $(test_libudev_sym_SOURCES)
5063 test-libsystemd-sym \
5064 test-libsystemd-daemon-sym \
5065 test-libsystemd-id128-sym \
5066 test-libsystemd-journal-sym \
5069 if ENABLE_COMPAT_LIBS
5071 test-libsystemd-login-sym
5075 cppcheck --enable=all -q $(top_srcdir)
5077 # Used to extract compile flags for YCM.