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
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfiglibdir=$(libdir)/pkgconfig
78 polkitpolicydir=$(datadir)/polkit-1/actions
79 bashcompletiondir=@bashcompletiondir@
80 zshcompletiondir=@zshcompletiondir@
81 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
82 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
83 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
84 varlogdir=$(localstatedir)/log
85 systemdstatedir=$(localstatedir)/lib/systemd
86 catalogstatedir=$(systemdstatedir)/catalog
87 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
114 bootlibdir = $(prefix)/lib/systemd/boot/efi
116 # And these are the special ones for /
117 rootprefix=@rootprefix@
118 rootbindir=$(rootprefix)/bin
119 rootlibexecdir=$(rootprefix)/lib/systemd
121 CLEANFILES = $(BUILT_SOURCES)
126 UNINSTALL_EXEC_HOOKS =
128 UNINSTALL_DATA_HOOKS =
129 DISTCLEAN_LOCAL_HOOKS =
137 polkitpolicy_in_in_files =
138 polkitpolicy_in_files =
140 dist_udevrules_DATA =
141 nodist_udevrules_DATA =
142 dist_pkgsysconf_DATA =
143 nodist_pkgsysconf_DATA =
145 dist_dbuspolicy_DATA =
146 dist_dbussystemservice_DATA =
147 dist_systemunit_DATA_busnames =
152 TEST_EXTENSIONS = .py
153 PY_LOG_COMPILER = $(PYTHON)
155 noinst_PROGRAMS = $(manual_tests) $(tests)
161 udevlibexec_PROGRAMS =
163 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
164 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
165 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
168 -include $(top_builddir)/config.h \
169 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
170 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
171 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
172 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
173 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
174 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
175 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
176 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
177 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
178 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
179 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
180 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
181 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
182 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
183 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
184 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
185 -DROOTPREFIX=\"$(rootprefix)\" \
186 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
187 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
188 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
189 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
190 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
191 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
192 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
193 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
194 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
195 -DX_SERVER=\"$(bindir)/X\" \
196 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
197 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
198 -DQUOTACHECK=\"$(QUOTACHECK)\" \
199 -DKEXEC=\"$(KEXEC)\" \
200 -DLIBDIR=\"$(libdir)\" \
201 -DROOTLIBDIR=\"$(rootlibdir)\" \
202 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
203 -I $(top_srcdir)/src \
204 -I $(top_builddir)/src/shared \
205 -I $(top_srcdir)/src/shared \
206 -I $(top_srcdir)/src/network \
207 -I $(top_srcdir)/src/login \
208 -I $(top_srcdir)/src/journal \
209 -I $(top_srcdir)/src/timedate \
210 -I $(top_srcdir)/src/timesync \
211 -I $(top_srcdir)/src/resolve \
212 -I $(top_builddir)/src/resolve \
213 -I $(top_srcdir)/src/systemd \
214 -I $(top_builddir)/src/core \
215 -I $(top_srcdir)/src/core \
216 -I $(top_srcdir)/src/libudev \
217 -I $(top_srcdir)/src/udev \
218 -I $(top_srcdir)/src/udev/net \
219 -I $(top_builddir)/src/udev \
220 -I $(top_srcdir)/src/libsystemd/sd-bus \
221 -I $(top_srcdir)/src/libsystemd/sd-event \
222 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
223 -I $(top_srcdir)/src/libsystemd/sd-network \
224 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
225 -I $(top_srcdir)/src/libsystemd-network \
226 -I $(top_srcdir)/src/libsystemd-terminal \
229 AM_CFLAGS = $(OUR_CFLAGS)
230 AM_LDFLAGS = $(OUR_LDFLAGS)
232 # ------------------------------------------------------------------------------
233 define move-to-rootlibdir
234 if test "$(libdir)" != "$(rootlibdir)"; then \
235 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
236 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
237 rm -f $(DESTDIR)$(libdir)/$$libname && \
238 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
239 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 GRAPHICAL_TARGET_WANTS =
249 RESCUE_TARGET_WANTS =
250 SYSINIT_TARGET_WANTS =
251 SOCKETS_TARGET_WANTS =
252 BUSNAMES_TARGET_WANTS =
253 TIMERS_TARGET_WANTS =
254 USER_SOCKETS_TARGET_WANTS =
255 USER_DEFAULT_TARGET_WANTS =
256 USER_BUSNAMES_TARGET_WANTS =
258 SYSTEM_UNIT_ALIASES =
262 install-target-wants-hook:
263 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
273 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
275 install-busnames-target-wants-hook:
276 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
277 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
280 [ -z "$$what" ] || ( \
281 dir=$(DESTDIR)$$dir/$$wants.wants && \
282 $(MKDIR_P) -m 0755 $$dir && \
285 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
288 install-directories-hook:
289 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
291 install-aliases-hook:
292 set -- $(SYSTEM_UNIT_ALIASES) && \
293 dir=$(systemunitdir) && $(install-aliases)
294 set -- $(USER_UNIT_ALIASES) && \
295 dir=$(userunitdir) && $(install-relative-aliases)
296 set -- $(GENERAL_ALIASES) && \
297 dir= && $(install-relative-aliases)
299 define install-aliases
300 while [ -n "$$1" ]; do \
301 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
302 rm -f $(DESTDIR)$$dir/$$2 && \
303 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
304 shift 2 || exit $$?; \
308 define install-relative-aliases
309 while [ -n "$$1" ]; do \
310 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
311 rm -f $(DESTDIR)$$dir/$$2 && \
312 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
313 shift 2 || exit $$?; \
317 install-touch-usr-hook:
318 touch -c $(DESTDIR)/$(prefix)
320 INSTALL_EXEC_HOOKS += \
321 install-target-wants-hook \
322 install-directories-hook \
323 install-aliases-hook \
324 install-touch-usr-hook
327 INSTALL_EXEC_HOOKS += \
328 install-busnames-target-wants-hook
331 # ------------------------------------------------------------------------------
332 AM_V_M4 = $(AM_V_M4_$(V))
333 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
334 AM_V_M4_0 = @echo " M4 " $@;
336 AM_V_XSLT = $(AM_V_XSLT_$(V))
337 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
338 AM_V_XSLT_0 = @echo " XSLT " $@;
340 AM_V_GPERF = $(AM_V_GPERF_$(V))
341 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
342 AM_V_GPERF_0 = @echo " GPERF " $@;
344 AM_V_LN = $(AM_V_LN_$(V))
345 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
346 AM_V_LN_0 = @echo " LN " $@;
348 AM_V_RM = $(AM_V_RM_$(V))
349 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
350 AM_V_RM_0 = @echo " RM " $@;
352 # ------------------------------------------------------------------------------
356 systemd-ask-password \
357 systemd-tty-ask-password-agent \
358 systemd-machine-id-setup \
365 systemd-detect-virt \
369 systemd-stdio-bridge \
373 src/kernel-install/kernel-install
375 dist_kernelinstall_SCRIPTS = \
376 src/kernel-install/50-depmod.install \
377 src/kernel-install/90-loaderentry.install
379 rootlibexec_PROGRAMS = \
381 systemd-cgroups-agent \
386 systemd-reply-password \
389 systemd-machine-id-commit \
394 systemd-socket-proxyd \
398 rootlibexec_PROGRAMS += \
402 systemgenerator_PROGRAMS = \
403 systemd-getty-generator \
404 systemd-fstab-generator \
405 systemd-system-update-generator \
406 systemd-debug-generator
408 dist_bashcompletion_DATA = \
409 shell-completion/bash/busctl \
410 shell-completion/bash/journalctl \
411 shell-completion/bash/systemd-analyze \
412 shell-completion/bash/systemd-cat \
413 shell-completion/bash/systemd-cgls \
414 shell-completion/bash/systemd-cgtop \
415 shell-completion/bash/systemd-delta \
416 shell-completion/bash/systemd-detect-virt \
417 shell-completion/bash/systemd-nspawn \
418 shell-completion/bash/systemd-run \
419 shell-completion/bash/udevadm \
420 shell-completion/bash/kernel-install
422 nodist_bashcompletion_DATA = \
423 shell-completion/bash/systemctl
425 dist_zshcompletion_DATA = \
426 shell-completion/zsh/_journalctl \
427 shell-completion/zsh/_udevadm \
428 shell-completion/zsh/_kernel-install \
429 shell-completion/zsh/_systemd-nspawn \
430 shell-completion/zsh/_systemd-analyze \
431 shell-completion/zsh/_systemd-run \
432 shell-completion/zsh/_sd_hosts_or_user_at_host \
433 shell-completion/zsh/_sd_outputmodes \
434 shell-completion/zsh/_sd_unit_files \
435 shell-completion/zsh/_systemd-delta \
436 shell-completion/zsh/_systemd
438 nodist_zshcompletion_DATA = \
439 shell-completion/zsh/_systemctl
442 shell-completion/bash/systemctl.in \
443 shell-completion/zsh/_systemctl.in
446 $(nodist_bashcompletion_DATA) \
447 $(nodist_zshcompletion_DATA)
450 sysctl.d/50-default.conf
452 dist_systemunit_DATA = \
453 units/graphical.target \
454 units/multi-user.target \
455 units/emergency.target \
456 units/sysinit.target \
461 units/local-fs.target \
462 units/local-fs-pre.target \
463 units/initrd.target \
464 units/initrd-fs.target \
465 units/initrd-root-fs.target \
466 units/remote-fs.target \
467 units/remote-fs-pre.target \
468 units/network.target \
469 units/network-pre.target \
470 units/network-online.target \
471 units/nss-lookup.target \
472 units/nss-user-lookup.target \
473 units/poweroff.target \
474 units/reboot.target \
475 units/rescue.target \
476 units/rpcbind.target \
477 units/time-sync.target \
478 units/shutdown.target \
480 units/umount.target \
481 units/sigpwr.target \
483 units/sockets.target \
484 units/timers.target \
486 units/suspend.target \
488 units/slices.target \
491 units/systemd-fsckd.socket \
492 units/systemd-initctl.socket \
493 units/systemd-shutdownd.socket \
494 units/syslog.socket \
495 units/dev-hugepages.mount \
496 units/dev-mqueue.mount \
497 units/sys-kernel-config.mount \
498 units/sys-kernel-debug.mount \
499 units/sys-fs-fuse-connections.mount \
501 units/printer.target \
503 units/bluetooth.target \
504 units/smartcard.target \
505 units/systemd-ask-password-wall.path \
506 units/systemd-ask-password-console.path \
507 units/systemd-udevd-control.socket \
508 units/systemd-udevd-kernel.socket \
509 units/system-update.target \
510 units/initrd-switch-root.target \
511 units/machines.target
514 dist_systemunit_DATA += \
515 $(dist_systemunit_DATA_busnames)
518 dist_systemunit_DATA_busnames += \
519 units/busnames.target
521 nodist_systemunit_DATA = \
522 units/getty@.service \
523 units/serial-getty@.service \
524 units/console-shell.service \
525 units/console-getty.service \
526 units/container-getty@.service \
527 units/systemd-initctl.service \
528 units/systemd-shutdownd.service \
529 units/systemd-remount-fs.service \
530 units/systemd-ask-password-wall.service \
531 units/systemd-ask-password-console.service \
532 units/systemd-sysctl.service \
533 units/emergency.service \
534 units/rescue.service \
535 units/user@.service \
536 units/systemd-suspend.service \
537 units/systemd-halt.service \
538 units/systemd-poweroff.service \
539 units/systemd-reboot.service \
540 units/systemd-kexec.service \
541 units/systemd-fsck@.service \
542 units/systemd-fsck-root.service \
543 units/systemd-fsckd.service \
544 units/systemd-machine-id-commit.service \
545 units/systemd-udevd.service \
546 units/systemd-udev-trigger.service \
547 units/systemd-udev-settle.service \
548 units/systemd-hwdb-update.service \
549 units/debug-shell.service \
550 units/initrd-parse-etc.service \
551 units/initrd-cleanup.service \
552 units/initrd-udevadm-cleanup-db.service \
553 units/initrd-switch-root.service \
554 units/systemd-nspawn@.service \
555 units/systemd-update-done.service
558 nodist_systemunit_DATA += \
559 units/systemd-update-utmp.service \
560 units/systemd-update-utmp-runlevel.service
563 dist_userunit_DATA = \
564 units/user/basic.target \
565 units/user/default.target \
566 units/user/exit.target
568 nodist_userunit_DATA = \
569 units/user/systemd-exit.service
571 dist_systempreset_DATA = \
572 system-preset/90-systemd.preset
575 units/getty@.service.m4 \
576 units/serial-getty@.service.m4 \
577 units/console-shell.service.m4.in \
578 units/console-getty.service.m4.in \
579 units/container-getty@.service.m4.in \
580 units/rescue.service.in \
581 units/systemd-initctl.service.in \
582 units/systemd-shutdownd.service.in \
583 units/systemd-remount-fs.service.in \
584 units/systemd-update-utmp.service.in \
585 units/systemd-update-utmp-runlevel.service.in \
586 units/systemd-ask-password-wall.service.in \
587 units/systemd-ask-password-console.service.in \
588 units/systemd-sysctl.service.in \
589 units/emergency.service.in \
590 units/systemd-halt.service.in \
591 units/systemd-poweroff.service.in \
592 units/systemd-reboot.service.in \
593 units/systemd-kexec.service.in \
594 units/user/systemd-exit.service.in \
595 units/systemd-fsck@.service.in \
596 units/systemd-fsck-root.service.in \
597 units/systemd-fsckd.service.in \
598 units/systemd-machine-id-commit.service.in \
599 units/user@.service.m4.in \
600 units/debug-shell.service.in \
601 units/systemd-suspend.service.in \
602 units/quotaon.service.in \
603 units/initrd-parse-etc.service.in \
604 units/initrd-cleanup.service.in \
605 units/initrd-udevadm-cleanup-db.service.in \
606 units/initrd-switch-root.service.in \
607 units/systemd-nspawn@.service.in \
608 units/systemd-update-done.service.in
611 units/console-shell.service.m4 \
612 units/console-getty.service.m4 \
613 units/container-getty@.service.m4 \
614 units/user@.service.m4
617 nodist_systemunit_DATA += \
618 units/rc-local.service \
619 units/halt-local.service
621 systemgenerator_PROGRAMS += \
622 systemd-sysv-generator \
623 systemd-rc-local-generator
627 units/rc-local.service.in \
628 units/halt-local.service.in
630 # automake is broken and can't handle files with a dash in front
631 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
633 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
635 units-uninstall-hook:
636 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
638 INSTALL_DATA_HOOKS += units-install-hook
639 UNINSTALL_DATA_HOOKS += units-uninstall-hook
648 src/libsystemd/sd-bus/PORTING-DBUS1 \
649 src/libsystemd/sd-bus/DIFFERENCES \
650 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
652 @INTLTOOL_POLICY_RULE@
654 # ------------------------------------------------------------------------------
659 include Makefile-man.am
661 .PHONY: man update-man-list
662 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
665 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
667 ${XML_FILES:.xml=.html}
669 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
686 $(AM_V_at)$(MKDIR_P) $(dir $@)
687 $(AM_V_LN)$(LN_S) -f ../../man $@
696 man/index.html: man/systemd.index.html
697 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
705 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
706 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
707 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
709 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
710 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
711 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
712 @echo "Makefile-man.am has been regenerated"
714 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
715 $(AM_V_at)$(MKDIR_P) $(dir $@)
716 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
718 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
719 $(AM_V_at)$(MKDIR_P) $(dir $@)
720 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
723 man/systemd.index.xml \
725 man/systemd.directives.xml \
726 man/glib-event-glue.c
729 man/systemd.index.xml \
730 man/systemd.directives.xml
741 tools/make-man-index.py \
742 tools/make-directive-index.py \
745 # ------------------------------------------------------------------------------
746 noinst_LTLIBRARIES += \
749 libsystemd_shared_la_SOURCES = \
750 src/shared/capability.c \
751 src/shared/capability.h \
752 src/shared/linux/auto_dev-ioctl.h \
753 src/shared/ioprio.h \
754 src/shared/missing.h \
755 src/shared/initreq.h \
756 src/shared/securebits.h \
757 src/shared/special.h \
759 src/shared/unaligned.h \
762 src/shared/sparse-endian.h \
763 src/shared/refcnt.h \
764 src/shared/udev-util.h \
765 src/shared/device-nodes.c \
766 src/shared/device-nodes.h \
771 src/shared/architecture.c \
772 src/shared/architecture.h \
773 src/shared/efivars.c \
774 src/shared/efivars.h \
775 src/shared/fstab-util.c \
776 src/shared/fstab-util.h \
777 src/shared/path-util.c \
778 src/shared/path-util.h \
779 src/shared/time-util.c \
780 src/shared/time-util.h \
781 src/shared/locale-util.c \
782 src/shared/locale-util.h \
783 src/shared/mempool.c \
784 src/shared/mempool.h \
785 src/shared/hashmap.c \
786 src/shared/hashmap.h \
787 src/shared/siphash24.c \
788 src/shared/siphash24.h \
794 src/shared/sleep-config.c \
795 src/shared/sleep-config.h \
798 src/shared/env-util.c \
799 src/shared/env-util.h \
800 src/shared/strbuf.c \
801 src/shared/strbuf.h \
802 src/shared/strxcpyx.c \
803 src/shared/strxcpyx.h \
804 src/shared/conf-parser.c \
805 src/shared/conf-parser.h \
808 src/shared/ratelimit.h \
809 src/shared/ratelimit.c \
810 src/shared/exit-status.c \
811 src/shared/exit-status.h \
814 src/shared/gunicode.c \
815 src/shared/gunicode.h \
818 src/shared/socket-util.c \
819 src/shared/socket-util.h \
820 src/shared/in-addr-util.c \
821 src/shared/in-addr-util.h \
822 src/shared/ether-addr-util.h \
823 src/shared/conf-files.c \
824 src/shared/conf-files.h \
825 src/shared/cgroup-util.c \
826 src/shared/cgroup-util.h \
827 src/shared/cgroup-show.c \
828 src/shared/cgroup-show.h \
829 src/shared/unit-name.c \
830 src/shared/unit-name.h \
831 src/shared/utmp-wtmp.h \
832 src/shared/watchdog.c \
833 src/shared/watchdog.h \
834 src/shared/spawn-ask-password-agent.c \
835 src/shared/spawn-ask-password-agent.h \
836 src/shared/replace-var.c \
837 src/shared/replace-var.h \
838 src/shared/spawn-polkit-agent.c \
839 src/shared/spawn-polkit-agent.h \
840 src/shared/clock-util.c \
841 src/shared/clock-util.h \
842 src/shared/time-dst.c \
843 src/shared/time-dst.h \
844 src/shared/calendarspec.c \
845 src/shared/calendarspec.h \
846 src/shared/fileio.c \
847 src/shared/fileio.h \
848 src/shared/output-mode.h \
849 src/shared/MurmurHash2.c \
850 src/shared/MurmurHash2.h \
851 src/shared/acpi-fpdt.h \
852 src/shared/acpi-fpdt.c \
853 src/shared/boot-timestamps.h \
854 src/shared/boot-timestamps.c \
857 src/shared/smack-util.c \
858 src/shared/smack-util.h \
859 src/shared/apparmor-util.c \
860 src/shared/apparmor-util.h \
861 src/shared/ima-util.c \
862 src/shared/ima-util.h \
863 src/shared/ptyfwd.c \
864 src/shared/ptyfwd.h \
865 src/shared/errno-list.c \
866 src/shared/errno-list.h \
867 src/shared/af-list.c \
868 src/shared/af-list.h \
869 src/shared/arphrd-list.c \
870 src/shared/arphrd-list.h \
871 src/shared/cap-list.c \
872 src/shared/cap-list.h \
879 src/shared/bus-label.c \
880 src/shared/bus-label.h \
882 src/shared/clean-ipc.h \
883 src/shared/clean-ipc.c \
884 src/shared/login-shared.c \
885 src/shared/login-shared.h \
888 src/shared/barrier.c \
889 src/shared/barrier.h \
894 src/shared/base-filesystem.c \
895 src/shared/base-filesystem.h \
896 src/shared/memfd-util.c \
897 src/shared/memfd-util.h \
898 src/shared/uid-range.c \
899 src/shared/uid-range.h \
900 src/shared/nss-util.h \
903 src/shared/sigbus.c \
904 src/shared/sigbus.h \
906 src/shared/import-util.c \
907 src/shared/import-util.h
910 libsystemd_shared_la_SOURCES += \
911 src/shared/utmp-wtmp.c
914 nodist_libsystemd_shared_la_SOURCES = \
915 src/shared/errno-from-name.h \
916 src/shared/errno-to-name.h \
917 src/shared/af-from-name.h \
918 src/shared/af-to-name.h \
919 src/shared/arphrd-from-name.h \
920 src/shared/arphrd-to-name.h \
921 src/shared/cap-from-name.h \
922 src/shared/cap-to-name.h
924 libsystemd_shared_la_CFLAGS = \
930 libsystemd_shared_la_LIBADD = \
934 # ------------------------------------------------------------------------------
935 noinst_LTLIBRARIES += \
938 libsystemd_units_la_SOURCES = \
939 src/shared/install.c \
940 src/shared/install.h \
941 src/shared/install-printf.c \
942 src/shared/install-printf.h \
943 src/shared/path-lookup.c \
944 src/shared/path-lookup.h \
945 src/shared/specifier.c \
946 src/shared/specifier.h
948 # ------------------------------------------------------------------------------
949 noinst_LTLIBRARIES += \
952 libsystemd_label_la_SOURCES = \
953 src/shared/socket-label.c \
956 src/shared/selinux-util.c \
957 src/shared/selinux-util.h \
958 src/shared/mkdir-label.c \
959 src/shared/ask-password-api.c \
960 src/shared/ask-password-api.h \
961 src/shared/switch-root.h \
962 src/shared/switch-root.c \
963 src/shared/fileio-label.c \
964 src/shared/fileio-label.h \
965 src/shared/dev-setup.c \
966 src/shared/dev-setup.h \
967 src/shared/dropin.c \
968 src/shared/dropin.h \
969 src/shared/condition.c \
970 src/shared/condition.h \
971 src/shared/generator.h \
972 src/shared/generator.c \
973 src/shared/btrfs-util.c \
974 src/shared/btrfs-util.h \
975 src/shared/btrfs-ctree.h \
976 src/shared/machine-image.c \
977 src/shared/machine-image.h \
981 libsystemd_label_la_CFLAGS = \
985 libsystemd_label_la_LIBADD = \
988 # -----------------------------------------------------------------------------
991 noinst_LTLIBRARIES += \
994 libsystemd_fw_la_SOURCES = \
995 src/shared/fw-util.h \
998 libsystemd_fw_la_CFLAGS = \
1002 libsystemd_fw_la_LIBADD = \
1006 # -----------------------------------------------------------------------------
1009 dist_systemunit_DATA += \
1010 units/ldconfig.service
1012 SYSINIT_TARGET_WANTS += \
1016 # ------------------------------------------------------------------------------
1019 noinst_LTLIBRARIES += \
1020 libsystemd-seccomp.la
1022 libsystemd_seccomp_la_SOURCES = \
1023 src/shared/seccomp-util.h \
1024 src/shared/seccomp-util.c
1026 libsystemd_seccomp_la_CFLAGS = \
1030 libsystemd_seccomp_la_LIBADD = \
1034 # ------------------------------------------------------------------------------
1035 noinst_LTLIBRARIES += \
1038 libsystemd_logs_la_SOURCES = \
1039 src/shared/logs-show.c \
1040 src/shared/logs-show.h
1042 # ------------------------------------------------------------------------------
1044 noinst_LTLIBRARIES += \
1047 libsystemd_acl_la_SOURCES = \
1048 src/shared/acl-util.c \
1049 src/shared/acl-util.h
1051 libsystemd_acl_la_CFLAGS = \
1055 libsystemd_acl_la_LIBADD = \
1059 # ------------------------------------------------------------------------------
1060 noinst_LTLIBRARIES += \
1063 libsystemd_core_la_SOURCES = \
1066 src/core/unit-printf.c \
1067 src/core/unit-printf.h \
1070 src/core/manager.c \
1071 src/core/manager.h \
1072 src/core/transaction.c \
1073 src/core/transaction.h \
1074 src/core/load-fragment.c \
1075 src/core/load-fragment.h \
1076 src/core/service.c \
1077 src/core/service.h \
1080 src/core/busname.c \
1081 src/core/busname.h \
1082 src/core/bus-endpoint.c \
1083 src/core/bus-endpoint.h \
1084 src/core/bus-policy.c \
1085 src/core/bus-policy.h \
1088 src/core/snapshot.c \
1089 src/core/snapshot.h \
1094 src/core/automount.c \
1095 src/core/automount.h \
1106 src/core/load-dropin.c \
1107 src/core/load-dropin.h \
1108 src/core/execute.c \
1109 src/core/execute.h \
1114 src/core/dbus-manager.c \
1115 src/core/dbus-manager.h \
1116 src/core/dbus-unit.c \
1117 src/core/dbus-unit.h \
1118 src/core/dbus-job.c \
1119 src/core/dbus-job.h \
1120 src/core/dbus-service.c \
1121 src/core/dbus-service.h \
1122 src/core/dbus-socket.c \
1123 src/core/dbus-socket.h \
1124 src/core/dbus-busname.c \
1125 src/core/dbus-busname.h \
1126 src/core/dbus-target.c \
1127 src/core/dbus-target.h \
1128 src/core/dbus-snapshot.c \
1129 src/core/dbus-snapshot.h \
1130 src/core/dbus-device.c \
1131 src/core/dbus-device.h \
1132 src/core/dbus-mount.c \
1133 src/core/dbus-mount.h \
1134 src/core/dbus-automount.c \
1135 src/core/dbus-automount.h \
1136 src/core/dbus-swap.c \
1137 src/core/dbus-swap.h \
1138 src/core/dbus-timer.c \
1139 src/core/dbus-timer.h \
1140 src/core/dbus-path.c \
1141 src/core/dbus-path.h \
1142 src/core/dbus-slice.c \
1143 src/core/dbus-slice.h \
1144 src/core/dbus-scope.c \
1145 src/core/dbus-scope.h \
1146 src/core/dbus-execute.c \
1147 src/core/dbus-execute.h \
1148 src/core/dbus-kill.c \
1149 src/core/dbus-kill.h \
1150 src/core/dbus-cgroup.c \
1151 src/core/dbus-cgroup.h \
1154 src/core/selinux-access.c \
1155 src/core/selinux-access.h \
1156 src/core/selinux-setup.c \
1157 src/core/selinux-setup.h \
1158 src/core/smack-setup.c \
1159 src/core/smack-setup.h \
1160 src/core/ima-setup.c \
1161 src/core/ima-setup.h \
1162 src/core/locale-setup.h \
1163 src/core/locale-setup.c \
1164 src/core/hostname-setup.c \
1165 src/core/hostname-setup.h \
1166 src/core/machine-id-setup.c \
1167 src/core/machine-id-setup.h \
1168 src/core/mount-setup.c \
1169 src/core/mount-setup.h \
1170 src/core/kmod-setup.c \
1171 src/core/kmod-setup.h \
1172 src/core/loopback-setup.h \
1173 src/core/loopback-setup.c \
1174 src/core/namespace.c \
1175 src/core/namespace.h \
1176 src/core/killall.h \
1177 src/core/killall.c \
1178 src/core/audit-fd.c \
1179 src/core/audit-fd.h \
1180 src/core/show-status.c \
1181 src/core/show-status.h \
1182 src/core/failure-action.c \
1183 src/core/failure-action.h
1185 nodist_libsystemd_core_la_SOURCES = \
1186 src/core/load-fragment-gperf.c \
1187 src/core/load-fragment-gperf-nulstr.c
1189 libsystemd_core_la_CFLAGS = \
1194 $(APPARMOR_CFLAGS) \
1199 libsystemd_core_la_LIBADD = \
1200 libsystemd-units.la \
1201 libsystemd-label.la \
1202 libudev-internal.la \
1203 libsystemd-shared.la \
1204 libsystemd-internal.la \
1213 libsystemd_core_la_LIBADD += \
1214 libsystemd-seccomp.la
1217 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1218 $(AM_V_at)$(MKDIR_P) $(dir $@)
1219 $(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 ";" }' < $< > $@
1222 src/core/load-fragment-gperf.gperf.m4
1225 src/core/load-fragment-gperf.gperf \
1226 src/core/load-fragment-gperf.c \
1227 src/core/load-fragment-gperf-nulstr.c \
1228 src/shared/errno-list.txt \
1229 src/shared/errno-from-name.gperf \
1230 src/shared/af-list.txt \
1231 src/shared/af-from-name.gperf \
1232 src/shared/arphrd-list.txt \
1233 src/shared/arphrd-from-name.gperf \
1234 src/shared/cap-list.txt \
1235 src/shared/cap-from-name.gperf \
1236 src/resolve/dns_type-list.txt \
1237 src/resolve/dns_type-from-name.gperf
1240 src/shared/errno-from-name.h \
1241 src/shared/errno-to-name.h \
1242 src/shared/af-from-name.h \
1243 src/shared/af-to-name.h \
1244 src/shared/arphrd-from-name.h \
1245 src/shared/arphrd-to-name.h \
1246 src/shared/cap-from-name.h \
1247 src/shared/cap-to-name.h \
1248 src/resolve/dns_type-from-name.h \
1249 src/resolve/dns_type-to-name.h
1251 %-from-name.gperf: %-list.txt
1252 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1254 %-from-name.h: %-from-name.gperf
1255 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1258 src/shared/errno-list.txt:
1259 $(AM_V_at)$(MKDIR_P) $(dir $@)
1260 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1262 src/shared/errno-to-name.h: src/shared/errno-list.txt
1263 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1266 src/shared/af-list.txt:
1267 $(AM_V_at)$(MKDIR_P) $(dir $@)
1268 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1270 src/shared/af-to-name.h: src/shared/af-list.txt
1271 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1274 src/shared/arphrd-list.txt:
1275 $(AM_V_at)$(MKDIR_P) $(dir $@)
1276 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1278 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1279 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1281 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1282 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1285 src/shared/cap-list.txt:
1286 $(AM_V_at)$(MKDIR_P) $(dir $@)
1287 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
1289 src/shared/cap-to-name.h: src/shared/cap-list.txt
1290 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1292 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1293 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1295 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1296 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1299 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1300 $(AM_V_at)$(MKDIR_P) $(dir $@)
1301 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1303 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1304 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1306 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1307 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1309 # ------------------------------------------------------------------------------
1318 libsystemd-core.la \
1321 dist_pkgsysconf_DATA += \
1322 src/core/system.conf \
1325 dist_dbuspolicy_DATA += \
1326 src/core/org.freedesktop.systemd1.conf
1328 dist_dbussystemservice_DATA += \
1329 src/core/org.freedesktop.systemd1.service
1331 polkitpolicy_in_in_files += \
1332 src/core/org.freedesktop.systemd1.policy.in.in
1334 pkgconfiglib_DATA += \
1337 nodist_rpmmacros_DATA = \
1338 src/core/macros.systemd
1341 src/core/systemd.pc.in \
1342 src/core/macros.systemd.in
1345 src/core/macros.systemd \
1346 src/core/org.freedesktop.systemd1.policy.in
1348 # ------------------------------------------------------------------------------
1398 test-strip-tab-ansi \
1434 test/daughter.service \
1436 test/end.service.in \
1439 test/grandchild.service \
1441 test/hello-after-sleep.target \
1442 test/hello.service \
1444 test/parent-deep.slice \
1447 test/sched_idle_bad.service \
1448 test/sched_idle_ok.service \
1449 test/sched_rr_bad.service \
1450 test/sched_rr_change.service \
1451 test/sched_rr_ok.service \
1452 test/shutdown.target \
1453 test/sleep.service \
1454 test/sockets.target \
1456 test/sysinit.target \
1457 test/testsuite.target \
1458 test/timers.target \
1459 test/unstoppable.service \
1460 test/path-changed.service \
1461 test/path-directorynotempty.service \
1462 test/path-existsglob.service \
1463 test/path-exists.service \
1464 test/path-makedirectory.service \
1465 test/path-modified.service \
1466 test/path-mycustomunit.service \
1467 test/path-service.service \
1468 test/path-changed.path \
1469 test/path-directorynotempty.path \
1470 test/path-existsglob.path \
1471 test/path-exists.path \
1472 test/path-makedirectory.path \
1473 test/path-modified.path \
1474 test/path-unit.path \
1475 test/exec-environment-empty.service \
1476 test/exec-environment-multiple.service \
1477 test/exec-environment.service \
1478 test/exec-group.service \
1479 test/exec-ignoresigpipe-no.service \
1480 test/exec-ignoresigpipe-yes.service \
1481 test/exec-personality-x86-64.service \
1482 test/exec-personality-x86.service \
1483 test/exec-privatedevices-no.service \
1484 test/exec-privatedevices-yes.service \
1485 test/exec-privatetmp-no.service \
1486 test/exec-privatetmp-yes.service \
1487 test/exec-systemcallerrornumber.service \
1488 test/exec-systemcallfilter-failing2.service \
1489 test/exec-systemcallfilter-failing.service \
1490 test/exec-systemcallfilter-not-failing2.service \
1491 test/exec-systemcallfilter-not-failing.service \
1492 test/exec-user.service \
1493 test/exec-workingdirectory.service \
1494 test/exec-umask-0177.service \
1495 test/exec-umask-default.service \
1496 test/bus-policy/hello.conf \
1497 test/bus-policy/methods.conf \
1498 test/bus-policy/ownerships.conf \
1499 test/bus-policy/signals.conf \
1500 test/bus-policy/check-own-rules.conf \
1501 test/bus-policy/many-rules.conf \
1502 test/bus-policy/test.conf
1506 src/test/test-helper.h
1508 test_device_nodes_SOURCES = \
1509 src/test/test-device-nodes.c
1511 test_device_nodes_LDADD = \
1512 libsystemd-shared.la
1514 test_engine_SOURCES = \
1515 src/test/test-engine.c
1517 test_engine_CFLAGS = \
1521 test_engine_LDADD = \
1522 libsystemd-core.la \
1525 test_job_type_SOURCES = \
1526 src/test/test-job-type.c
1528 test_job_type_CFLAGS = \
1532 test_job_type_LDADD = \
1533 libsystemd-core.la \
1546 test_loopback_SOURCES = \
1547 src/test/test-loopback.c
1549 test_loopback_LDADD = \
1552 test_hostname_SOURCES = \
1553 src/test/test-hostname.c
1555 test_hostname_LDADD = \
1562 test_boot_timestamp_SOURCES = \
1563 src/test/test-boot-timestamps.c
1565 test_boot_timestamp_LDADD = \
1566 libsystemd-shared.la
1569 test_unit_name_SOURCES = \
1570 src/test/test-unit-name.c
1572 test_unit_name_CFLAGS = \
1576 test_unit_name_LDADD = \
1577 libsystemd-core.la \
1580 test_unit_file_SOURCES = \
1581 src/test/test-unit-file.c
1583 test_unit_file_CFLAGS = \
1587 test_unit_file_LDADD = \
1588 libsystemd-core.la \
1591 test_utf8_SOURCES = \
1592 src/test/test-utf8.c
1595 libsystemd-shared.la
1597 test_capability_SOURCES = \
1598 src/test/test-capability.c
1600 test_capability_LDADD = \
1601 libsystemd-shared.la
1603 test_async_SOURCES = \
1604 src/test/test-async.c
1606 test_async_LDADD = \
1607 libsystemd-shared.la
1609 test_locale_util_SOURCES = \
1610 src/test/test-locale-util.c
1612 test_locale_util_LDADD = \
1613 libsystemd-shared.la
1615 test_copy_SOURCES = \
1616 src/test/test-copy.c
1619 libsystemd-label.la \
1620 libsystemd-shared.la
1622 test_sigbus_SOURCES = \
1623 src/test/test-sigbus.c
1625 test_sigbus_LDADD = \
1626 libsystemd-shared.la
1628 test_condition_SOURCES = \
1629 src/test/test-condition.c
1631 test_condition_LDADD = \
1632 libsystemd-label.la \
1633 libsystemd-internal.la \
1634 libsystemd-shared.la
1636 test_fdset_SOURCES = \
1637 src/test/test-fdset.c
1639 test_fdset_LDADD = \
1640 libsystemd-shared.la \
1641 libsystemd-internal.la
1643 test_fstab_util_SOURCES = \
1644 src/test/test-fstab-util.c
1646 test_fstab_util_LDADD = \
1647 libsystemd-shared.la
1649 test_ratelimit_SOURCES = \
1650 src/test/test-ratelimit.c
1652 test_ratelimit_LDADD = \
1653 libsystemd-shared.la
1655 test_util_SOURCES = \
1656 src/test/test-util.c
1659 libsystemd-shared.la
1661 test_path_lookup_SOURCES = \
1662 src/test/test-path-lookup.c
1664 test_path_lookup_LDADD = \
1666 libsystemd-units.la \
1667 libsystemd-shared.la
1669 test_uid_range_SOURCES = \
1670 src/test/test-uid-range.c
1672 test_uid_range_LDADD = \
1673 libsystemd-shared.la
1675 test_cap_list_SOURCES = \
1676 src/test/test-cap-list.c
1678 test_cap_list_LDADD = \
1679 libsystemd-shared.la
1681 test_socket_util_SOURCES = \
1682 src/test/test-socket-util.c
1684 test_socket_util_LDADD = \
1685 libsystemd-shared.la
1687 test_ring_SOURCES = \
1688 src/test/test-ring.c
1691 libsystemd-shared.la
1693 test_barrier_SOURCES = \
1694 src/test/test-barrier.c
1696 test_barrier_LDADD = \
1697 libsystemd-shared.la
1699 test_pty_SOURCES = \
1705 test_tmpfiles_SOURCES = \
1706 src/test/test-tmpfiles.c
1708 test_tmpfiles_LDADD = \
1709 libsystemd-shared.la
1711 test_namespace_SOURCES = \
1712 src/test/test-namespace.c
1714 test_verbs_SOURCES = \
1715 src/test/test-verbs.c
1717 test_verbs_LDADD = \
1718 libsystemd-shared.la
1720 test_namespace_LDADD = \
1724 src/test/test-hashmap-ordered.c
1727 src/test/test-hashmap-ordered.c
1729 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1730 $(AM_V_at)$(MKDIR_P) $(dir $@)
1731 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1732 { if (!match($$0, "^#include")) \
1733 gsub(/hashmap/, "ordered_hashmap"); \
1734 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1735 gsub(/Hashmap/, "OrderedHashmap"); \
1738 nodist_test_hashmap_SOURCES = \
1739 src/test/test-hashmap-ordered.c
1741 test_hashmap_SOURCES = \
1742 src/test/test-hashmap.c \
1743 src/test/test-hashmap-plain.c
1745 test_hashmap_LDADD = \
1746 libsystemd-shared.la
1748 test_set_SOURCES = \
1752 libsystemd-shared.la
1754 test_xml_SOURCES = \
1758 libsystemd-shared.la
1760 test_json_SOURCES = \
1761 src/test/test-json.c
1764 libsystemd-shared.la
1766 test_list_SOURCES = \
1767 src/test/test-list.c
1770 libsystemd-shared.la
1772 test_unaligned_LDADD = \
1773 libsystemd-shared.la
1775 test_unaligned_SOURCES = \
1776 src/test/test-unaligned.c
1778 test_tables_SOURCES = \
1779 src/test/test-tables.c \
1780 src/shared/test-tables.h \
1781 src/bus-proxyd/bus-xml-policy.c \
1782 src/bus-proxyd/bus-xml-policy.h \
1783 src/journal/journald-server.c \
1784 src/journal/journald-server.h
1786 test_tables_CPPFLAGS = \
1788 -I$(top_srcdir)/src/bus-proxyd
1790 test_tables_CFLAGS = \
1794 test_tables_LDADD = \
1795 libsystemd-logs.la \
1796 libsystemd-journal-internal.la \
1797 libsystemd-journal-core.la \
1798 libsystemd-core.la \
1802 test_prioq_SOURCES = \
1803 src/test/test-prioq.c
1805 test_prioq_LDADD = \
1806 libsystemd-shared.la
1808 test_fileio_SOURCES = \
1809 src/test/test-fileio.c
1811 test_fileio_LDADD = \
1812 libsystemd-shared.la
1814 test_time_SOURCES = \
1815 src/test/test-time.c
1818 libsystemd-shared.la
1820 test_architecture_SOURCES = \
1821 src/test/test-architecture.c
1823 test_architecture_LDADD = \
1824 libsystemd-shared.la
1826 test_log_SOURCES = \
1830 libsystemd-shared.la
1832 test_ipcrm_SOURCES = \
1833 src/test/test-ipcrm.c
1835 test_ipcrm_LDADD = \
1836 libsystemd-shared.la \
1839 test_btrfs_SOURCES = \
1840 src/test/test-btrfs.c
1842 test_btrfs_LDADD = \
1843 libsystemd-label.la \
1844 libsystemd-shared.la
1847 test_fw_util_SOURCES = \
1848 src/test/test-fw-util.c
1850 test_fw_util_CFLAGS = \
1854 test_fw_util_LDADD = \
1856 libsystemd-shared.la \
1860 test_rtnl_manual_SOURCES = \
1861 src/test/test-rtnl-manual.c
1863 test_rtnl_manual_CFLAGS = \
1867 test_rtnl_manual_LDADD = \
1868 libsystemd-internal.la \
1869 libsystemd-shared.la \
1872 test_ellipsize_SOURCES = \
1873 src/test/test-ellipsize.c
1875 test_ellipsize_LDADD = \
1876 libsystemd-shared.la
1878 test_date_SOURCES = \
1879 src/test/test-date.c
1882 libsystemd-shared.la
1884 test_sleep_SOURCES = \
1885 src/test/test-sleep.c
1887 test_sleep_LDADD = \
1890 test_replace_var_SOURCES = \
1891 src/test/test-replace-var.c
1893 test_replace_var_LDADD = \
1894 libsystemd-shared.la
1896 test_calendarspec_SOURCES = \
1897 src/test/test-calendarspec.c
1899 test_calendarspec_LDADD = \
1900 libsystemd-shared.la
1902 test_strip_tab_ansi_SOURCES = \
1903 src/test/test-strip-tab-ansi.c
1905 test_strip_tab_ansi_LDADD = \
1906 libsystemd-shared.la
1908 test_daemon_SOURCES = \
1909 src/test/test-daemon.c
1911 test_daemon_LDADD = \
1912 libsystemd-internal.la \
1913 libsystemd-shared.la
1915 test_cgroup_SOURCES = \
1916 src/test/test-cgroup.c
1918 test_cgroup_LDADD = \
1919 libsystemd-label.la \
1920 libsystemd-shared.la \
1921 libsystemd-internal.la
1923 test_cgroup_mask_SOURCES = \
1924 src/test/test-cgroup-mask.c
1926 test_cgroup_mask_CPPFLAGS = \
1929 test_cgroup_mask_CFLAGS = \
1933 test_cgroup_mask_LDADD = \
1934 libsystemd-core.la \
1937 test_cgroup_util_SOURCES = \
1938 src/test/test-cgroup-util.c
1940 test_cgroup_util_LDADD = \
1941 libsystemd-label.la \
1942 libsystemd-internal.la \
1943 libsystemd-shared.la
1945 test_env_replace_SOURCES = \
1946 src/test/test-env-replace.c
1948 test_env_replace_LDADD = \
1949 libsystemd-shared.la
1951 test_strbuf_SOURCES = \
1952 src/test/test-strbuf.c
1954 test_strbuf_LDADD = \
1955 libsystemd-shared.la
1957 test_strv_SOURCES = \
1958 src/test/test-strv.c
1961 libsystemd-units.la \
1962 libsystemd-internal.la \
1963 libsystemd-shared.la
1965 test_path_util_SOURCES = \
1966 src/test/test-path-util.c
1968 test_path_util_LDADD = \
1969 libsystemd-shared.la
1971 test_path_SOURCES = \
1972 src/test/test-path.c
1974 test_path_CFLAGS = \
1980 test_execute_SOURCES = \
1981 src/test/test-execute.c
1983 test_execute_CFLAGS = \
1986 test_execute_LDADD = \
1989 test_strxcpyx_SOURCES = \
1990 src/test/test-strxcpyx.c
1992 test_strxcpyx_LDADD = \
1993 libsystemd-shared.la
1995 test_install_SOURCES = \
1996 src/test/test-install.c
1998 test_install_LDADD = \
1999 libsystemd-units.la \
2000 libsystemd-label.la \
2001 libsystemd-shared.la \
2002 libsystemd-internal.la
2004 test_watchdog_SOURCES = \
2005 src/test/test-watchdog.c
2007 test_watchdog_LDADD = \
2008 libsystemd-shared.la
2010 test_sched_prio_SOURCES = \
2011 src/test/test-sched-prio.c
2013 test_sched_prio_CPPFLAGS = \
2016 test_sched_prio_CFLAGS = \
2020 test_sched_prio_LDADD = \
2021 libsystemd-core.la \
2024 test_conf_files_SOURCES = \
2025 src/test/test-conf-files.c
2027 test_conf_files_LDADD = \
2028 libsystemd-shared.la
2030 test_bus_policy_SOURCES = \
2031 src/bus-proxyd/test-bus-xml-policy.c
2033 test_bus_policy_LDADD = \
2034 libsystemd-proxy.la \
2035 libsystemd-internal.la \
2036 libsystemd-shared.la
2038 # ------------------------------------------------------------------------------
2039 ## .PHONY so it always rebuilds it
2040 .PHONY: coverage lcov-run lcov-report coverage-sync
2042 # run lcov from scratch, always
2047 coverage_dir = coverage
2048 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2051 # reset run coverage tests
2053 @rm -rf $(coverage_dir)
2054 lcov $(coverage_opts) --zerocounters
2057 # generate report based on current coverage data
2059 $(MKDIR_P) $(coverage_dir)
2060 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2061 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2062 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2063 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2064 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2066 # lcov doesn't work properly with vpath builds, make sure that bad
2067 # output is not uploaded by mistake.
2068 coverage-sync: coverage
2069 test "$(builddir)" = "$(srcdir)"
2070 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2073 lcov-run lcov-report:
2074 echo "Need to reconfigure with --enable-coverage"
2077 # ------------------------------------------------------------------------------
2078 systemd_analyze_SOURCES = \
2079 src/analyze/analyze.c \
2080 src/analyze/analyze-verify.c \
2081 src/analyze/analyze-verify.h
2083 systemd_verify_CFLAGS = \
2087 systemd_analyze_LDADD = \
2088 libsystemd-core.la \
2089 libsystemd-internal.la \
2090 libsystemd-shared.la \
2093 # ------------------------------------------------------------------------------
2094 systemd_initctl_SOURCES = \
2095 src/initctl/initctl.c
2097 systemd_initctl_LDADD = \
2098 libsystemd-internal.la \
2099 libsystemd-shared.la
2101 # ------------------------------------------------------------------------------
2102 systemd_update_utmp_SOURCES = \
2103 src/update-utmp/update-utmp.c
2105 systemd_update_utmp_CFLAGS = \
2109 systemd_update_utmp_LDADD = \
2110 libsystemd-internal.la \
2111 libsystemd-shared.la \
2114 # ------------------------------------------------------------------------------
2115 systemd_update_done_SOURCES = \
2116 src/update-done/update-done.c
2118 systemd_update_done_LDADD = \
2119 libsystemd-internal.la \
2120 libsystemd-label.la \
2121 libsystemd-shared.la
2123 # ------------------------------------------------------------------------------
2124 systemd_shutdownd_SOURCES = \
2125 src/shutdownd/shutdownd.c
2127 systemd_shutdownd_LDADD = \
2128 libsystemd-label.la \
2129 libsystemd-internal.la \
2130 libsystemd-shared.la
2133 src/systemd/sd-shutdown.h
2135 # ------------------------------------------------------------------------------
2136 systemd_shutdown_SOURCES = \
2139 src/core/shutdown.c \
2140 src/core/mount-setup.c \
2141 src/core/mount-setup.h \
2142 src/core/killall.h \
2145 systemd_shutdown_LDADD = \
2146 libsystemd-label.la \
2147 libudev-internal.la \
2148 libsystemd-shared.la
2150 # ------------------------------------------------------------------------------
2152 systemd_modules_load_SOURCES = \
2153 src/modules-load/modules-load.c
2155 systemd_modules_load_CFLAGS = \
2159 systemd_modules_load_LDADD = \
2160 libsystemd-shared.la \
2163 rootlibexec_PROGRAMS += \
2164 systemd-modules-load
2166 nodist_systemunit_DATA += \
2167 units/systemd-modules-load.service
2169 SYSINIT_TARGET_WANTS += \
2170 systemd-modules-load.service
2173 nodist_systemunit_DATA += \
2174 units/kmod-static-nodes.service
2176 SYSINIT_TARGET_WANTS += \
2177 kmod-static-nodes.service
2182 units/systemd-modules-load.service.in \
2183 units/kmod-static-nodes.service.in
2185 # ------------------------------------------------------------------------------
2187 systemd_tmpfiles_SOURCES = \
2188 src/tmpfiles/tmpfiles.c
2190 systemd_tmpfiles_LDADD = \
2191 libsystemd-units.la \
2192 libsystemd-label.la \
2193 libsystemd-internal.la \
2194 libsystemd-shared.la
2197 systemd_tmpfiles_LDADD += \
2201 rootbin_PROGRAMS += \
2204 dist_systemunit_DATA += \
2205 units/systemd-tmpfiles-clean.timer
2207 nodist_systemunit_DATA += \
2208 units/systemd-tmpfiles-setup-dev.service \
2209 units/systemd-tmpfiles-setup.service \
2210 units/systemd-tmpfiles-clean.service
2212 nodist_tmpfiles_DATA = \
2215 dist_tmpfiles_DATA = \
2216 tmpfiles.d/systemd.conf \
2217 tmpfiles.d/systemd-nologin.conf \
2218 tmpfiles.d/tmp.conf \
2219 tmpfiles.d/x11.conf \
2223 dist_tmpfiles_DATA += \
2224 tmpfiles.d/legacy.conf
2227 SYSINIT_TARGET_WANTS += \
2228 systemd-tmpfiles-setup-dev.service \
2229 systemd-tmpfiles-setup.service
2231 dist_zshcompletion_DATA += \
2232 shell-completion/zsh/_systemd-tmpfiles
2234 TIMERS_TARGET_WANTS += \
2235 systemd-tmpfiles-clean.timer
2239 $(sysconfdir)/tmpfiles.d
2243 tmpfiles.d/etc.conf.m4 \
2244 units/systemd-tmpfiles-setup-dev.service.in \
2245 units/systemd-tmpfiles-setup.service.in \
2246 units/systemd-tmpfiles-clean.service.in
2251 # ------------------------------------------------------------------------------
2253 systemd_sysusers_SOURCES = \
2254 src/sysusers/sysusers.c
2256 systemd_sysusers_LDADD = \
2257 libsystemd-units.la \
2258 libsystemd-label.la \
2259 libsystemd-internal.la \
2260 libsystemd-shared.la
2262 rootbin_PROGRAMS += \
2265 nodist_systemunit_DATA += \
2266 units/systemd-sysusers.service
2268 SYSINIT_TARGET_WANTS += \
2269 systemd-sysusers.service
2271 dist_sysusers_DATA = \
2272 sysusers.d/systemd.conf
2274 nodist_sysusers_DATA = \
2275 sysusers.d/basic.conf
2278 units/systemd-sysusers.service.in \
2279 sysusers.d/basic.conf.in
2282 sysusers.d/basic.conf
2288 # ------------------------------------------------------------------------------
2289 dist_factory_etc_DATA = \
2290 factory/etc/nsswitch.conf
2293 dist_factory_pam_DATA = \
2294 factory/etc/pam.d/system-auth \
2295 factory/etc/pam.d/other
2298 # ------------------------------------------------------------------------------
2300 systemd_firstboot_SOURCES = \
2301 src/firstboot/firstboot.c
2303 systemd_firstboot_LDADD = \
2304 libsystemd-units.la \
2305 libsystemd-label.la \
2306 libsystemd-internal.la \
2307 libsystemd-shared.la \
2310 rootbin_PROGRAMS += \
2313 nodist_systemunit_DATA += \
2314 units/systemd-firstboot.service
2317 units/systemd-firstboot.service.in
2319 SYSINIT_TARGET_WANTS += \
2320 systemd-firstboot.service
2323 # ------------------------------------------------------------------------------
2324 systemd_machine_id_setup_SOURCES = \
2325 src/machine-id-setup/machine-id-setup-main.c \
2326 src/core/machine-id-setup.c \
2327 src/core/machine-id-setup.h
2329 systemd_machine_id_setup_LDADD = \
2330 libsystemd-label.la \
2331 libsystemd-internal.la \
2332 libsystemd-shared.la
2334 # ------------------------------------------------------------------------------
2335 systemd_sysctl_SOURCES = \
2338 systemd_sysctl_LDADD = \
2339 libsystemd-shared.la
2341 # ------------------------------------------------------------------------------
2342 systemd_sleep_SOURCES = \
2345 systemd_sleep_LDADD = \
2346 libsystemd-shared.la
2348 # ------------------------------------------------------------------------------
2349 systemd_fsck_SOURCES = \
2352 systemd_fsck_LDADD = \
2353 libsystemd-internal.la \
2354 libudev-internal.la \
2355 libsystemd-shared.la
2357 # ------------------------------------------------------------------------------
2358 systemd_fsckd_SOURCES = \
2362 systemd_fsckd_LDADD = \
2363 libsystemd-internal.la \
2364 libsystemd-label.la \
2365 libsystemd-shared.la \
2366 libudev-internal.la \
2369 # ------------------------------------------------------------------------------
2370 systemd_machine_id_commit_SOURCES = \
2371 src/machine-id-commit/machine-id-commit.c \
2372 src/core/machine-id-setup.c \
2373 src/core/machine-id-setup.h
2375 systemd_machine_id_commit_LDADD = \
2376 libsystemd-label.la \
2377 libsystemd-internal.la \
2378 libsystemd-shared.la
2380 SYSINIT_TARGET_WANTS += \
2381 systemd-machine-id-commit.service
2383 # ------------------------------------------------------------------------------
2384 systemd_ac_power_SOURCES = \
2385 src/ac-power/ac-power.c
2387 systemd_ac_power_LDADD = \
2388 libudev-internal.la \
2389 libsystemd-shared.la
2391 # ------------------------------------------------------------------------------
2392 systemd_detect_virt_SOURCES = \
2393 src/detect-virt/detect-virt.c
2395 systemd_detect_virt_LDADD = \
2396 libsystemd-shared.la
2398 INSTALL_EXEC_HOOKS += \
2399 systemd-detect-virt-install-hook
2401 # ------------------------------------------------------------------------------
2402 systemd_delta_SOURCES = \
2405 systemd_delta_LDADD = \
2406 libsystemd-shared.la
2408 # ------------------------------------------------------------------------------
2409 systemd_getty_generator_SOURCES = \
2410 src/getty-generator/getty-generator.c
2412 systemd_getty_generator_LDADD = \
2413 libsystemd-label.la \
2414 libsystemd-shared.la
2416 # ------------------------------------------------------------------------------
2417 systemd_debug_generator_SOURCES = \
2418 src/debug-generator/debug-generator.c
2420 systemd_debug_generator_LDADD = \
2421 libsystemd-label.la \
2422 libsystemd-shared.la
2424 # ------------------------------------------------------------------------------
2425 systemd_fstab_generator_SOURCES = \
2426 src/fstab-generator/fstab-generator.c \
2427 src/core/mount-setup.c
2429 systemd_fstab_generator_LDADD = \
2430 libsystemd-label.la \
2431 libsystemd-shared.la
2433 # ------------------------------------------------------------------------------
2434 systemd_system_update_generator_SOURCES = \
2435 src/system-update-generator/system-update-generator.c
2437 systemd_system_update_generator_LDADD = \
2438 libsystemd-label.la \
2439 libsystemd-shared.la
2441 # ------------------------------------------------------------------------------
2443 systemgenerator_PROGRAMS += \
2444 systemd-hibernate-resume-generator
2446 rootlibexec_PROGRAMS += \
2447 systemd-hibernate-resume
2449 systemd_hibernate_resume_SOURCES = \
2450 src/hibernate-resume/hibernate-resume.c
2452 systemd_hibernate_resume_LDADD = \
2453 libsystemd-internal.la \
2454 libsystemd-shared.la
2456 systemd_hibernate_resume_generator_SOURCES = \
2457 src/hibernate-resume/hibernate-resume-generator.c
2459 systemd_hibernate_resume_generator_LDADD = \
2460 libsystemd-label.la \
2461 libsystemd-shared.la
2464 units/systemd-hibernate.service.in \
2465 units/systemd-hibernate-resume@.service.in \
2466 units/systemd-hybrid-sleep.service.in
2468 dist_systemunit_DATA += \
2469 units/hibernate.target \
2470 units/hybrid-sleep.target
2472 nodist_systemunit_DATA += \
2473 units/systemd-hibernate.service \
2474 units/systemd-hibernate-resume@.service \
2475 units/systemd-hybrid-sleep.service
2478 # ------------------------------------------------------------------------------
2480 systemgenerator_PROGRAMS += \
2481 systemd-efi-boot-generator
2483 systemd_efi_boot_generator_SOURCES = \
2484 src/efi-boot-generator/efi-boot-generator.c
2486 systemd_efi_boot_generator_LDADD = \
2487 libsystemd-label.la \
2488 libsystemd-shared.la
2490 # ------------------------------------------------------------------------------
2494 bootctl_CPPFLAGS = \
2496 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2497 -DBOOTLIBDIR=\"$(bootlibdir)\"
2504 libsystemd-shared.la \
2505 libsystemd-internal.la \
2511 dist_bashcompletion_DATA += \
2512 shell-completion/bash/bootctl
2514 dist_zshcompletion_DATA += \
2515 shell-completion/zsh/_bootctl
2517 # ------------------------------------------------------------------------------
2521 -I$(top_builddir) -include config.h \
2522 -I$(EFI_INC_DIR)/efi \
2523 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2524 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2536 -fno-strict-aliasing \
2537 -fno-stack-protector \
2545 -DEFI_FUNCTION_WRAPPER \
2546 -DGNU_EFI_USE_MS_ABI \
2552 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2558 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2560 # ------------------------------------------------------------------------------
2561 systemd_boot_headers = \
2562 src/boot/efi/util.h \
2563 src/boot/efi/console.h \
2564 src/boot/efi/graphics.h \
2565 src/boot/efi/pefile.h
2567 systemd_boot_sources = \
2568 src/boot/efi/util.c \
2569 src/boot/efi/console.c \
2570 src/boot/efi/graphics.c \
2571 src/boot/efi/pefile.c \
2574 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2575 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2576 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2578 bootlib_DATA = $(systemd_boot)
2579 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2580 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2582 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2583 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2584 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2586 $(systemd_boot_solib): $(systemd_boot_objects)
2587 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2588 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2589 nm -D -u $@ | grep ' U ' && exit 1 || :
2591 $(systemd_boot): $(systemd_boot_solib)
2592 $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
2593 -j .dynsym -j .rel -j .rela -j .reloc \
2594 --target=efi-app-$(EFI_ARCH) $< $@
2596 # ------------------------------------------------------------------------------
2598 src/boot/efi/util.h \
2599 src/boot/efi/pefile.h \
2600 src/boot/efi/linux.h
2603 src/boot/efi/util.c \
2604 src/boot/efi/pefile.c \
2605 src/boot/efi/linux.c \
2608 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2609 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2610 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2612 bootlib_DATA += $(stub)
2613 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2614 EXTRA_DIST += $(stub_sources) $(stub_headers)
2616 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2617 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2618 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2620 $(stub_solib): $(stub_objects)
2621 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2622 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2623 nm -D -u $@ | grep ' U ' && exit 1 || :
2625 $(stub): $(stub_solib)
2626 $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
2627 -j .dynsym -j .rel -j .rela -j .reloc \
2628 --target=efi-app-$(EFI_ARCH) $< $@
2630 # ------------------------------------------------------------------------------
2631 CLEANFILES += test-efi-disk.img
2632 EXTRA_DIST += test/test-efi-create-disk.sh
2634 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2635 $(AM_V_GEN)test/test-efi-create-disk.sh
2637 test-efi: test-efi-disk.img
2638 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2642 # ------------------------------------------------------------------------------
2644 systemgenerator_PROGRAMS += \
2645 systemd-gpt-auto-generator
2647 systemd_gpt_auto_generator_SOURCES = \
2648 src/gpt-auto-generator/gpt-auto-generator.c \
2649 src/shared/blkid-util.h
2651 systemd_gpt_auto_generator_LDADD = \
2652 libsystemd-label.la \
2653 libsystemd-internal.la \
2654 libudev-internal.la \
2655 libsystemd-shared.la \
2658 systemd_gpt_auto_generator_CFLAGS = \
2663 # ------------------------------------------------------------------------------
2665 systemgenerator_PROGRAMS += \
2666 systemd-dbus1-generator
2668 systemd_dbus1_generator_SOURCES = \
2669 src/dbus1-generator/dbus1-generator.c
2671 systemd_dbus1_generator_LDADD = \
2672 libsystemd-label.la \
2673 libsystemd-internal.la \
2674 libsystemd-shared.la
2676 dbus1-generator-install-hook:
2677 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2678 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2679 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2681 dbus1-generator-uninstall-hook:
2682 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2684 dist_xinitrc_SCRIPTS = \
2685 xorg/50-systemd-user.sh
2687 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2688 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2691 # ------------------------------------------------------------------------------
2692 systemd_sysv_generator_SOURCES = \
2693 src/sysv-generator/sysv-generator.c
2695 systemd_sysv_generator_LDADD = \
2696 libsystemd-core.la \
2697 libsystemd-label.la \
2698 libsystemd-shared.la
2700 # ------------------------------------------------------------------------------
2701 systemd_rc_local_generator_SOURCES = \
2702 src/rc-local-generator/rc-local-generator.c
2704 systemd_rc_local_generator_LDADD = \
2705 libsystemd-label.la \
2706 libsystemd-shared.la
2708 # ------------------------------------------------------------------------------
2709 systemd_remount_fs_SOURCES = \
2710 src/remount-fs/remount-fs.c \
2711 src/core/mount-setup.c \
2712 src/core/mount-setup.h
2714 systemd_remount_fs_LDADD = \
2715 libsystemd-label.la \
2716 libsystemd-shared.la
2718 # ------------------------------------------------------------------------------
2719 systemd_cgroups_agent_SOURCES = \
2720 src/cgroups-agent/cgroups-agent.c
2722 systemd_cgroups_agent_LDADD = \
2723 libsystemd-internal.la \
2724 libsystemd-shared.la
2726 # ------------------------------------------------------------------------------
2727 systemd_escape_SOURCES = \
2730 systemd_escape_LDADD = \
2731 libsystemd-shared.la
2733 # -----------------------------------------------------------------------------
2734 systemctl_SOURCES = \
2735 src/systemctl/systemctl.c
2738 libsystemd-units.la \
2739 libsystemd-label.la \
2740 libsystemd-internal.la \
2741 libsystemd-logs.la \
2742 libsystemd-journal-internal.la \
2743 libsystemd-shared.la
2745 # ------------------------------------------------------------------------------
2746 systemd_notify_SOURCES = \
2749 systemd_notify_LDADD = \
2750 libsystemd-internal.la \
2751 libsystemd-shared.la
2753 # ------------------------------------------------------------------------------
2754 systemd_path_SOURCES = \
2757 systemd_path_LDADD = \
2758 libsystemd-internal.la \
2759 libsystemd-shared.la
2761 # ------------------------------------------------------------------------------
2762 systemd_ask_password_SOURCES = \
2763 src/ask-password/ask-password.c
2765 systemd_ask_password_LDADD = \
2766 libsystemd-label.la \
2767 libsystemd-shared.la
2769 # ------------------------------------------------------------------------------
2770 systemd_reply_password_SOURCES = \
2771 src/reply-password/reply-password.c
2773 systemd_reply_password_LDADD = \
2774 libsystemd-shared.la
2776 # ------------------------------------------------------------------------------
2777 systemd_cgls_SOURCES = \
2780 systemd_cgls_LDADD = \
2781 libsystemd-internal.la \
2782 libsystemd-shared.la
2784 # ------------------------------------------------------------------------------
2785 systemd_cgtop_SOURCES = \
2788 systemd_cgtop_LDADD = \
2789 libsystemd-shared.la
2791 # ------------------------------------------------------------------------------
2792 systemd_nspawn_SOURCES = \
2793 src/nspawn/nspawn.c \
2794 src/core/mount-setup.c \
2795 src/core/mount-setup.h \
2796 src/core/loopback-setup.c \
2797 src/core/loopback-setup.h
2799 systemd_nspawn_CFLAGS = \
2804 systemd_nspawn_LDADD = \
2805 libsystemd-label.la \
2806 libsystemd-internal.la \
2807 libudev-internal.la \
2808 libsystemd-shared.la \
2812 systemd_nspawn_LDADD += \
2813 libsystemd-seccomp.la \
2818 systemd_nspawn_LDADD += \
2822 # ------------------------------------------------------------------------------
2823 systemd_run_SOURCES = \
2826 systemd_run_LDADD = \
2827 libsystemd-label.la \
2828 libsystemd-internal.la \
2829 libsystemd-shared.la
2831 # ------------------------------------------------------------------------------
2832 noinst_LTLIBRARIES += \
2835 libsystemd_proxy_la_SOURCES = \
2836 src/bus-proxyd/bus-xml-policy.c \
2837 src/bus-proxyd/bus-xml-policy.h \
2838 src/bus-proxyd/driver.c \
2839 src/bus-proxyd/driver.h \
2840 src/bus-proxyd/proxy.c \
2841 src/bus-proxyd/proxy.h \
2842 src/bus-proxyd/synthesize.c \
2843 src/bus-proxyd/synthesize.h
2845 libsystemd_proxy_la_CFLAGS = \
2849 libsystemd_proxy_la_LIBADD = \
2850 libsystemd-internal.la \
2851 libsystemd-shared.la
2853 systemd_bus_proxyd_SOURCES = \
2854 src/bus-proxyd/bus-proxyd.c
2856 systemd_bus_proxyd_CFLAGS = \
2860 systemd_bus_proxyd_LDADD = \
2861 libsystemd-proxy.la \
2862 libsystemd-internal.la \
2863 libsystemd-shared.la
2865 systemd_stdio_bridge_SOURCES = \
2866 src/bus-proxyd/stdio-bridge.c
2868 systemd_stdio_bridge_LDADD = \
2869 libsystemd-proxy.la \
2870 libsystemd-internal.la \
2871 libsystemd-shared.la
2874 nodist_systemunit_DATA += \
2875 units/systemd-bus-proxyd.service
2877 dist_systemunit_DATA += \
2878 units/systemd-bus-proxyd.socket
2880 nodist_userunit_DATA += \
2881 units/user/systemd-bus-proxyd.service
2883 dist_userunit_DATA += \
2884 units/user/systemd-bus-proxyd.socket
2888 units/systemd-bus-proxyd.service.m4.in \
2889 units/user/systemd-bus-proxyd.service.in
2892 units/systemd-bus-proxyd.service.m4
2895 bus-proxyd-set-cap-hook:
2896 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2898 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2901 # ------------------------------------------------------------------------------
2902 systemd_tty_ask_password_agent_SOURCES = \
2903 src/tty-ask-password-agent/tty-ask-password-agent.c
2905 systemd_tty_ask_password_agent_LDADD = \
2906 libsystemd-label.la \
2907 libsystemd-shared.la
2909 # ------------------------------------------------------------------------------
2910 libsystemd_internal_la_SOURCES = \
2911 src/systemd/sd-bus.h \
2912 src/systemd/sd-bus-protocol.h \
2913 src/systemd/sd-bus-vtable.h \
2914 src/systemd/sd-utf8.h \
2915 src/systemd/sd-event.h \
2916 src/systemd/sd-rtnl.h \
2917 src/systemd/sd-resolve.h \
2918 src/systemd/sd-login.h \
2919 src/systemd/sd-id128.h \
2920 src/systemd/sd-daemon.h \
2921 src/systemd/sd-path.h \
2922 src/systemd/sd-network.h \
2923 src/systemd/sd-hwdb.h \
2924 src/libsystemd/sd-bus/sd-bus.c \
2925 src/libsystemd/sd-bus/bus-control.c \
2926 src/libsystemd/sd-bus/bus-control.h \
2927 src/libsystemd/sd-bus/bus-error.c \
2928 src/libsystemd/sd-bus/bus-error.h \
2929 src/libsystemd/sd-bus/bus-common-errors.h \
2930 src/libsystemd/sd-bus/bus-common-errors.c \
2931 src/libsystemd/sd-bus/bus-internal.c \
2932 src/libsystemd/sd-bus/bus-internal.h \
2933 src/libsystemd/sd-bus/bus-socket.c \
2934 src/libsystemd/sd-bus/bus-socket.h \
2935 src/libsystemd/sd-bus/bus-kernel.c \
2936 src/libsystemd/sd-bus/bus-kernel.h \
2937 src/libsystemd/sd-bus/bus-container.c \
2938 src/libsystemd/sd-bus/bus-container.h \
2939 src/libsystemd/sd-bus/bus-message.c \
2940 src/libsystemd/sd-bus/bus-message.h \
2941 src/libsystemd/sd-bus/bus-creds.c \
2942 src/libsystemd/sd-bus/bus-creds.h \
2943 src/libsystemd/sd-bus/bus-signature.c \
2944 src/libsystemd/sd-bus/bus-signature.h \
2945 src/libsystemd/sd-bus/bus-type.c \
2946 src/libsystemd/sd-bus/bus-type.h \
2947 src/libsystemd/sd-bus/bus-match.c \
2948 src/libsystemd/sd-bus/bus-match.h \
2949 src/libsystemd/sd-bus/bus-bloom.c \
2950 src/libsystemd/sd-bus/bus-bloom.h \
2951 src/libsystemd/sd-bus/bus-introspect.c \
2952 src/libsystemd/sd-bus/bus-introspect.h \
2953 src/libsystemd/sd-bus/bus-objects.c \
2954 src/libsystemd/sd-bus/bus-objects.h \
2955 src/libsystemd/sd-bus/bus-gvariant.c \
2956 src/libsystemd/sd-bus/bus-gvariant.h \
2957 src/libsystemd/sd-bus/bus-convenience.c \
2958 src/libsystemd/sd-bus/bus-track.c \
2959 src/libsystemd/sd-bus/bus-track.h \
2960 src/libsystemd/sd-bus/bus-util.c \
2961 src/libsystemd/sd-bus/bus-util.h \
2962 src/libsystemd/sd-bus/bus-slot.c \
2963 src/libsystemd/sd-bus/bus-slot.h \
2964 src/libsystemd/sd-bus/bus-protocol.h \
2965 src/libsystemd/sd-bus/kdbus.h \
2966 src/libsystemd/sd-utf8/sd-utf8.c \
2967 src/libsystemd/sd-event/sd-event.c \
2968 src/libsystemd/sd-event/event-util.h \
2969 src/libsystemd/sd-rtnl/sd-rtnl.c \
2970 src/libsystemd/sd-rtnl/rtnl-internal.h \
2971 src/libsystemd/sd-rtnl/rtnl-message.c \
2972 src/libsystemd/sd-rtnl/rtnl-types.h \
2973 src/libsystemd/sd-rtnl/rtnl-types.c \
2974 src/libsystemd/sd-rtnl/rtnl-util.h \
2975 src/libsystemd/sd-rtnl/rtnl-util.c \
2976 src/libsystemd/sd-rtnl/local-addresses.h \
2977 src/libsystemd/sd-rtnl/local-addresses.c \
2978 src/libsystemd/sd-id128/sd-id128.c \
2979 src/libsystemd/sd-daemon/sd-daemon.c \
2980 src/libsystemd/sd-login/sd-login.c \
2981 src/libsystemd/sd-path/sd-path.c \
2982 src/libsystemd/sd-network/sd-network.c \
2983 src/libsystemd/sd-network/network-util.h \
2984 src/libsystemd/sd-network/network-util.c \
2985 src/libsystemd/sd-hwdb/sd-hwdb.c \
2986 src/libsystemd/sd-hwdb/hwdb-util.h \
2987 src/libsystemd/sd-hwdb/hwdb-internal.h
2989 nodist_libsystemd_internal_la_SOURCES = \
2990 src/libsystemd/libsystemd.sym
2992 libsystemd_internal_la_CFLAGS = \
2996 libsystemd_internal_la_LIBADD = \
2999 libsystemd_resolve_la_SOURCES = \
3000 src/libsystemd/sd-resolve/sd-resolve.c \
3001 src/libsystemd/sd-resolve/resolve-util.h
3003 libsystemd_resolve_la_CFLAGS = \
3007 libsystemd_resolve_la_LIBADD = \
3010 noinst_LTLIBRARIES += \
3011 libsystemd-internal.la \
3012 libsystemd-resolve.la
3014 libsystemd_dump_la_SOURCES = \
3015 src/libsystemd/sd-bus/bus-dump.c \
3016 src/libsystemd/sd-bus/bus-dump.h
3018 noinst_LTLIBRARIES += \
3022 src/libsystemd/libsystemd.sym.m4 \
3023 src/libsystemd/libsystemd.pc.in \
3024 src/libsystemd/sd-bus/DIFFERENCES \
3025 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3028 src/libsystemd/libsystemd.sym
3031 src/libsystemd/libsystemd.sym
3033 libsystemd_la_SOURCES = \
3034 $(libsystemd_internal_la_SOURCES) \
3035 $(libsystemd_resolve_la_SOURCES) \
3036 $(libsystemd_journal_internal_la_SOURCES)
3038 nodist_libsystemd_la_SOURCES = \
3039 $(nodist_libsystemd_internal_la_SOURCES)
3041 libsystemd_la_CFLAGS = \
3042 $(libsystemd_internal_la_CFLAGS) \
3043 $(libsystemd_resolve_la_CFLAGS) \
3044 $(libsystemd_journal_internal_la_CFLAGS)
3046 libsystemd_la_LDFLAGS = \
3048 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3049 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
3051 libsystemd_la_LIBADD = \
3052 libsystemd-shared.la \
3053 $(libsystemd_internal_la_LIBADD) \
3054 $(libsystemd_journal_internal_la_LIBADD) \
3055 $(libsystemd_resolve_la_LIBADD)
3057 libsystemd-install-hook:
3058 libname=libsystemd.so && $(move-to-rootlibdir)
3060 libsystemd-uninstall-hook:
3061 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3063 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3064 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3066 pkgconfiglib_DATA += \
3067 src/libsystemd/libsystemd.pc
3069 pkginclude_HEADERS += \
3070 src/systemd/sd-login.h \
3071 src/systemd/sd-id128.h \
3072 src/systemd/sd-daemon.h
3075 pkginclude_HEADERS += \
3076 src/systemd/sd-bus.h \
3077 src/systemd/sd-bus-protocol.h \
3078 src/systemd/sd-bus-vtable.h \
3079 src/systemd/sd-utf8.h \
3080 src/systemd/sd-event.h \
3081 src/systemd/sd-rtnl.h \
3082 src/systemd/sd-resolve.h \
3083 src/systemd/sd-path.h
3086 lib_LTLIBRARIES += \
3091 test-bus-signature \
3097 test-bus-kernel-bloom \
3098 test-bus-kernel-benchmark \
3099 test-bus-zero-copy \
3100 test-bus-introspect \
3107 test-local-addresses \
3113 test_bus_marshal_SOURCES = \
3114 src/libsystemd/sd-bus/test-bus-marshal.c
3116 test_bus_marshal_LDADD = \
3117 libsystemd-dump.la \
3118 libsystemd-internal.la \
3119 libsystemd-shared.la \
3123 test_bus_marshal_CFLAGS = \
3128 test_bus_signature_SOURCES = \
3129 src/libsystemd/sd-bus/test-bus-signature.c
3131 test_bus_signature_LDADD = \
3132 libsystemd-internal.la \
3133 libsystemd-shared.la
3135 test_bus_chat_SOURCES = \
3136 src/libsystemd/sd-bus/test-bus-chat.c
3138 test_bus_chat_CFLAGS = \
3142 test_bus_chat_LDADD = \
3143 libsystemd-internal.la \
3144 libsystemd-shared.la
3146 test_bus_cleanup_SOURCES = \
3147 src/libsystemd/sd-bus/test-bus-cleanup.c
3149 test_bus_cleanup_CFLAGS = \
3153 test_bus_cleanup_LDADD = \
3154 libsystemd-internal.la \
3155 libsystemd-shared.la
3157 test_bus_server_SOURCES = \
3158 src/libsystemd/sd-bus/test-bus-server.c
3160 test_bus_server_CFLAGS = \
3164 test_bus_server_LDADD = \
3165 libsystemd-internal.la \
3166 libsystemd-shared.la
3168 test_bus_objects_SOURCES = \
3169 src/libsystemd/sd-bus/test-bus-objects.c
3171 test_bus_objects_CFLAGS = \
3175 test_bus_objects_LDADD = \
3176 libsystemd-dump.la \
3177 libsystemd-internal.la \
3178 libsystemd-shared.la
3180 test_bus_error_SOURCES = \
3181 src/libsystemd/sd-bus/test-bus-error.c
3183 test_bus_error_LDADD = \
3184 libsystemd-internal.la \
3185 libsystemd-shared.la
3187 test_bus_gvariant_SOURCES = \
3188 src/libsystemd/sd-bus/test-bus-gvariant.c
3190 test_bus_gvariant_LDADD = \
3191 libsystemd-dump.la \
3192 libsystemd-internal.la \
3193 libsystemd-shared.la \
3196 test_bus_gvariant_CFLAGS = \
3200 test_bus_creds_SOURCES = \
3201 src/libsystemd/sd-bus/test-bus-creds.c
3203 test_bus_creds_LDADD = \
3204 libsystemd-dump.la \
3205 libsystemd-internal.la \
3206 libsystemd-shared.la
3208 test_bus_match_SOURCES = \
3209 src/libsystemd/sd-bus/test-bus-match.c
3211 test_bus_match_LDADD = \
3212 libsystemd-internal.la \
3213 libsystemd-shared.la
3215 test_bus_kernel_SOURCES = \
3216 src/libsystemd/sd-bus/test-bus-kernel.c
3218 test_bus_kernel_LDADD = \
3219 libsystemd-dump.la \
3220 libsystemd-internal.la \
3221 libsystemd-shared.la
3223 test_bus_kernel_bloom_SOURCES = \
3224 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3226 test_bus_kernel_bloom_LDADD = \
3227 libsystemd-internal.la \
3228 libsystemd-shared.la
3230 test_bus_kernel_benchmark_SOURCES = \
3231 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3233 test_bus_kernel_benchmark_LDADD = \
3234 libsystemd-internal.la \
3235 libsystemd-shared.la
3237 test_bus_zero_copy_SOURCES = \
3238 src/libsystemd/sd-bus/test-bus-zero-copy.c
3240 test_bus_zero_copy_LDADD = \
3241 libsystemd-dump.la \
3242 libsystemd-internal.la \
3243 libsystemd-shared.la
3245 test_bus_introspect_SOURCES = \
3246 src/libsystemd/sd-bus/test-bus-introspect.c
3248 test_bus_introspect_LDADD = \
3249 libsystemd-internal.la \
3250 libsystemd-shared.la
3252 test_event_SOURCES = \
3253 src/libsystemd/sd-event/test-event.c
3255 test_event_LDADD = \
3256 libsystemd-internal.la \
3257 libsystemd-shared.la
3259 test_rtnl_SOURCES = \
3260 src/libsystemd/sd-rtnl/test-rtnl.c
3263 libsystemd-internal.la \
3264 libsystemd-shared.la
3266 test_local_addresses_SOURCES = \
3267 src/libsystemd/sd-rtnl/test-local-addresses.c
3269 test_local_addresses_LDADD = \
3270 libsystemd-internal.la \
3271 libsystemd-shared.la
3273 test_resolve_SOURCES = \
3274 src/libsystemd/sd-resolve/test-resolve.c
3276 test_resolve_LDADD = \
3277 libsystemd-resolve.la \
3278 libsystemd-internal.la \
3279 libsystemd-shared.la
3281 test_resolve_CFLAGS = \
3286 src/libsystemd/sd-bus/busctl.c \
3287 src/libsystemd/sd-bus/busctl-introspect.c \
3288 src/libsystemd/sd-bus/busctl-introspect.h
3291 libsystemd-dump.la \
3292 libsystemd-internal.la \
3293 libsystemd-shared.la
3295 # ------------------------------------------------------------------------------
3296 noinst_LTLIBRARIES += \
3297 libsystemd-network.la
3299 libsystemd_network_la_CFLAGS = \
3303 libsystemd_network_la_SOURCES = \
3304 src/systemd/sd-dhcp-client.h \
3305 src/systemd/sd-dhcp-server.h \
3306 src/systemd/sd-dhcp-lease.h \
3307 src/systemd/sd-ipv4ll.h \
3308 src/systemd/sd-icmp6-nd.h \
3309 src/systemd/sd-dhcp6-client.h \
3310 src/systemd/sd-dhcp6-lease.h \
3311 src/systemd/sd-pppoe.h \
3312 src/systemd/sd-lldp.h \
3313 src/libsystemd-network/sd-dhcp-client.c \
3314 src/libsystemd-network/sd-dhcp-server.c \
3315 src/libsystemd-network/dhcp-network.c \
3316 src/libsystemd-network/dhcp-option.c \
3317 src/libsystemd-network/dhcp-packet.c \
3318 src/libsystemd-network/dhcp-internal.h \
3319 src/libsystemd-network/dhcp-server-internal.h \
3320 src/libsystemd-network/dhcp-protocol.h \
3321 src/libsystemd-network/dhcp-lease-internal.h \
3322 src/libsystemd-network/sd-dhcp-lease.c \
3323 src/libsystemd-network/sd-ipv4ll.c \
3324 src/libsystemd-network/ipv4ll-network.c \
3325 src/libsystemd-network/ipv4ll-packet.c \
3326 src/libsystemd-network/ipv4ll-internal.h \
3327 src/libsystemd-network/sd-pppoe.c \
3328 src/libsystemd-network/network-internal.c \
3329 src/libsystemd-network/network-internal.h \
3330 src/libsystemd-network/sd-icmp6-nd.c \
3331 src/libsystemd-network/sd-dhcp6-client.c \
3332 src/libsystemd-network/dhcp6-internal.h \
3333 src/libsystemd-network/dhcp6-protocol.h \
3334 src/libsystemd-network/dhcp6-network.c \
3335 src/libsystemd-network/dhcp6-option.c \
3336 src/libsystemd-network/dhcp6-lease-internal.h \
3337 src/libsystemd-network/sd-dhcp6-lease.c \
3338 src/libsystemd-network/dhcp-identifier.h \
3339 src/libsystemd-network/dhcp-identifier.c \
3340 src/libsystemd-network/lldp.h \
3341 src/libsystemd-network/lldp-tlv.h \
3342 src/libsystemd-network/lldp-tlv.c \
3343 src/libsystemd-network/lldp-network.h \
3344 src/libsystemd-network/lldp-network.c \
3345 src/libsystemd-network/lldp-port.h \
3346 src/libsystemd-network/lldp-port.c \
3347 src/libsystemd-network/lldp-internal.h \
3348 src/libsystemd-network/lldp-internal.c \
3349 src/libsystemd-network/lldp-util.h \
3350 src/libsystemd-network/sd-lldp.c
3352 libsystemd_network_la_LIBADD = \
3353 libudev-internal.la \
3354 libsystemd-label.la \
3355 libsystemd-internal.la \
3356 libsystemd-shared.la \
3359 test_dhcp_option_SOURCES = \
3360 src/libsystemd-network/dhcp-protocol.h \
3361 src/libsystemd-network/dhcp-internal.h \
3362 src/libsystemd-network/test-dhcp-option.c
3364 test_dhcp_option_LDADD = \
3365 libsystemd-network.la \
3366 libsystemd-internal.la \
3367 libsystemd-shared.la
3369 test_dhcp_client_SOURCES = \
3370 src/systemd/sd-dhcp-client.h \
3371 src/libsystemd-network/dhcp-protocol.h \
3372 src/libsystemd-network/dhcp-internal.h \
3373 src/libsystemd-network/test-dhcp-client.c
3375 test_dhcp_client_LDADD = \
3376 libsystemd-network.la \
3377 libsystemd-label.la \
3378 libsystemd-internal.la \
3379 libsystemd-shared.la
3381 test_dhcp_server_SOURCES = \
3382 src/libsystemd-network/test-dhcp-server.c
3384 test_dhcp_server_LDADD = \
3385 libsystemd-network.la \
3386 libsystemd-internal.la \
3387 libsystemd-shared.la
3389 test_ipv4ll_SOURCES = \
3390 src/systemd/sd-ipv4ll.h \
3391 src/libsystemd-network/ipv4ll-internal.h \
3392 src/libsystemd-network/test-ipv4ll.c
3394 test_ipv4ll_LDADD = \
3395 libsystemd-network.la \
3396 libsystemd-label.la \
3397 libsystemd-internal.la \
3398 libsystemd-shared.la
3400 test_pppoe_SOURCES = \
3401 src/systemd/sd-pppoe.h \
3402 src/libsystemd-network/test-pppoe.c
3404 test_pppoe_LDADD = \
3405 libsystemd-network.la \
3406 libsystemd-shared.la
3408 test_icmp6_rs_SOURCES = \
3409 src/systemd/sd-dhcp6-client.h \
3410 src/systemd/sd-icmp6-nd.h \
3411 src/libsystemd-network/dhcp6-internal.h \
3412 src/libsystemd-network/test-icmp6-rs.c \
3413 src/libsystemd-network/dhcp-identifier.h \
3414 src/libsystemd-network/dhcp-identifier.c
3416 test_icmp6_rs_LDADD = \
3417 libsystemd-network.la \
3418 libsystemd-internal.la \
3419 libsystemd-shared.la
3421 test_dhcp6_client_SOURCES = \
3422 src/systemd/sd-dhcp6-client.h \
3423 src/libsystemd-network/dhcp6-internal.h \
3424 src/libsystemd-network/test-dhcp6-client.c \
3425 src/libsystemd-network/dhcp-identifier.h \
3426 src/libsystemd-network/dhcp-identifier.c
3428 test_dhcp6_client_LDADD = \
3429 libsystemd-network.la \
3430 libsystemd-internal.la \
3431 libsystemd-shared.la
3433 test_lldp_SOURCES = \
3434 src/libsystemd-network/lldp.h \
3435 src/libsystemd-network/lldp-tlv.h \
3436 src/libsystemd-network/lldp-tlv.c \
3437 src/libsystemd-network/test-lldp.c
3440 libsystemd-network.la \
3441 libsystemd-internal.la \
3442 libsystemd-shared.la
3456 # ------------------------------------------------------------------------------
3458 noinst_LTLIBRARIES += \
3459 libsystemd-terminal.la
3461 rootlibexec_PROGRAMS += \
3464 noinst_PROGRAMS += \
3469 dist_pkgdata_DATA += \
3470 src/libsystemd-terminal/unifont-glyph-array.bin
3472 nodist_userunit_DATA += \
3473 units/user/systemd-consoled.service
3475 USER_DEFAULT_TARGET_WANTS += \
3476 systemd-consoled.service
3485 units/user/systemd-consoled.service.in
3487 libsystemd_terminal_la_CFLAGS = \
3491 libsystemd_terminal_la_SOURCES = \
3492 src/libsystemd-terminal/grdev.h \
3493 src/libsystemd-terminal/grdev-internal.h \
3494 src/libsystemd-terminal/grdev.c \
3495 src/libsystemd-terminal/grdev-drm.c \
3496 src/libsystemd-terminal/idev.h \
3497 src/libsystemd-terminal/idev-internal.h \
3498 src/libsystemd-terminal/idev.c \
3499 src/libsystemd-terminal/idev-evdev.c \
3500 src/libsystemd-terminal/idev-keyboard.c \
3501 src/libsystemd-terminal/sysview.h \
3502 src/libsystemd-terminal/sysview-internal.h \
3503 src/libsystemd-terminal/sysview.c \
3504 src/libsystemd-terminal/term.h \
3505 src/libsystemd-terminal/term-internal.h \
3506 src/libsystemd-terminal/term-charset.c \
3507 src/libsystemd-terminal/term-page.c \
3508 src/libsystemd-terminal/term-parser.c \
3509 src/libsystemd-terminal/term-screen.c \
3510 src/libsystemd-terminal/term-wcwidth.c \
3511 src/libsystemd-terminal/unifont.h \
3512 src/libsystemd-terminal/unifont-def.h \
3513 src/libsystemd-terminal/unifont.c
3515 libsystemd_terminal_la_LIBADD = \
3516 libudev-internal.la \
3517 libsystemd-internal.la \
3518 libsystemd-shared.la \
3521 systemd_consoled_CFLAGS = \
3525 systemd_consoled_SOURCES = \
3526 src/console/consoled.h \
3527 src/console/consoled.c \
3528 src/console/consoled-display.c \
3529 src/console/consoled-manager.c \
3530 src/console/consoled-session.c \
3531 src/console/consoled-terminal.c \
3532 src/console/consoled-workspace.c
3534 systemd_consoled_LDADD = \
3535 libsystemd-terminal.la \
3536 libsystemd-internal.la \
3537 libsystemd-shared.la \
3540 systemd_evcat_CFLAGS = \
3544 systemd_evcat_SOURCES = \
3545 src/libsystemd-terminal/evcat.c
3547 systemd_evcat_LDADD = \
3548 libsystemd-terminal.la \
3549 libsystemd-internal.la \
3550 libsystemd-shared.la \
3553 systemd_modeset_CFLAGS = \
3557 systemd_modeset_SOURCES = \
3558 src/libsystemd-terminal/modeset.c
3560 systemd_modeset_LDADD = \
3561 libsystemd-terminal.la \
3562 libsystemd-internal.la \
3563 libsystemd-shared.la \
3566 systemd_subterm_SOURCES = \
3567 src/libsystemd-terminal/subterm.c
3569 systemd_subterm_LDADD = \
3570 libsystemd-terminal.la \
3571 libsystemd-internal.la \
3572 libsystemd-shared.la
3574 test_term_page_SOURCES = \
3575 src/libsystemd-terminal/test-term-page.c
3577 test_term_page_LDADD = \
3578 libsystemd-terminal.la \
3579 libsystemd-internal.la \
3580 libsystemd-shared.la
3582 test_term_parser_SOURCES = \
3583 src/libsystemd-terminal/test-term-parser.c
3585 test_term_parser_LDADD = \
3586 libsystemd-terminal.la \
3587 libsystemd-internal.la \
3588 libsystemd-shared.la
3590 test_unifont_SOURCES = \
3591 src/libsystemd-terminal/test-unifont.c
3593 test_unifont_LDADD = \
3594 libsystemd-terminal.la \
3595 libsystemd-internal.la \
3596 libsystemd-shared.la
3598 src/libsystemd-terminal/unifont-glyph-array.bin: tools/compile-unifont.py $(UNIFONT)
3599 $(AM_V_GEN)$(PYTHON) $< <$(UNIFONT) >$@
3601 # ------------------------------------------------------------------------------
3611 include_HEADERS += \
3612 src/libudev/libudev.h
3614 lib_LTLIBRARIES += \
3617 libudev_la_SOURCES =\
3618 src/libudev/libudev.sym \
3619 src/libudev/libudev-private.h \
3620 src/libudev/libudev.c \
3621 src/libudev/libudev-list.c \
3622 src/libudev/libudev-util.c \
3623 src/libudev/libudev-device.c \
3624 src/libudev/libudev-enumerate.c \
3625 src/libudev/libudev-monitor.c \
3626 src/libudev/libudev-queue.c \
3627 src/libudev/libudev-hwdb.c
3629 libudev_la_CFLAGS = \
3633 libudev_la_LDFLAGS = \
3635 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3636 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3638 libudev_la_LIBADD = \
3639 libsystemd-internal.la \
3640 libsystemd-shared.la
3642 pkgconfiglib_DATA += \
3643 src/libudev/libudev.pc
3646 src/libudev/libudev.pc.in
3649 src/libudev/libudev.pc \
3654 $(AM_V_at)$(MKDIR_P) $(dir $@)
3655 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3658 $(AM_V_at)$(MKDIR_P) $(dir $@)
3659 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3661 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3662 libudev-install-hook:
3663 libname=libudev.so && $(move-to-rootlibdir)
3665 libudev-uninstall-hook:
3666 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3668 INSTALL_EXEC_HOOKS += libudev-install-hook
3669 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3671 # ------------------------------------------------------------------------------
3672 noinst_LTLIBRARIES += \
3675 libudev_internal_la_SOURCES =\
3676 $(libudev_la_SOURCES) \
3677 src/libudev/libudev-device-private.c
3679 libudev_internal_la_CFLAGS = \
3681 -fvisibility=default
3683 # ------------------------------------------------------------------------------
3685 $(sysconfdir)/udev/rules.d
3687 dist_network_DATA = \
3688 network/99-default.link \
3689 network/80-container-host0.network \
3690 network/80-container-ve.network
3692 dist_udevrules_DATA += \
3693 rules/42-usb-hid-pm.rules \
3694 rules/50-udev-default.rules \
3695 rules/60-drm.rules \
3696 rules/60-keyboard.rules \
3697 rules/60-persistent-storage-tape.rules \
3698 rules/60-persistent-serial.rules \
3699 rules/60-persistent-input.rules \
3700 rules/60-persistent-alsa.rules \
3701 rules/60-persistent-storage.rules \
3702 rules/64-btrfs.rules \
3703 rules/70-mouse.rules \
3704 rules/70-touchpad.rules \
3705 rules/75-net-description.rules \
3706 rules/75-tty-description.rules \
3707 rules/78-sound-card.rules \
3708 rules/80-net-setup-link.rules \
3709 rules/95-udev-late.rules
3711 nodist_udevrules_DATA += \
3712 rules/99-systemd.rules
3714 udevconfdir = $(sysconfdir)/udev
3715 dist_udevconf_DATA = \
3718 sharepkgconfigdir = $(datadir)/pkgconfig
3719 sharepkgconfig_DATA = \
3723 rules/99-systemd.rules.in \
3727 rules/99-systemd.rules \
3731 units/systemd-udevd.service.in \
3732 units/systemd-udev-trigger.service.in \
3733 units/systemd-udev-settle.service.in
3736 units/systemd-udevd.service \
3737 units/systemd-udev-trigger.service \
3738 units/systemd-udev-settle.service
3740 SOCKETS_TARGET_WANTS += \
3741 systemd-udevd-control.socket \
3742 systemd-udevd-kernel.socket
3744 SYSINIT_TARGET_WANTS += \
3745 systemd-udevd.service \
3746 systemd-udev-trigger.service
3748 rootbin_PROGRAMS += \
3751 rootlibexec_PROGRAMS += \
3754 noinst_LTLIBRARIES += \
3757 src/udev/keyboard-keys.txt:
3758 $(AM_V_at)$(MKDIR_P) $(dir $@)
3759 $(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/' > $@
3761 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3762 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3764 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3765 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3767 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3768 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3770 libudev_core_la_SOURCES = \
3772 src/udev/udev-event.c \
3773 src/udev/udev-watch.c \
3774 src/udev/udev-node.c \
3775 src/udev/udev-rules.c \
3776 src/udev/udev-ctrl.c \
3777 src/udev/udev-builtin.c \
3778 src/udev/udev-builtin-btrfs.c \
3779 src/udev/udev-builtin-hwdb.c \
3780 src/udev/udev-builtin-input_id.c \
3781 src/udev/udev-builtin-keyboard.c \
3782 src/udev/udev-builtin-net_id.c \
3783 src/udev/udev-builtin-net_setup_link.c \
3784 src/udev/udev-builtin-path_id.c \
3785 src/udev/udev-builtin-usb_id.c \
3786 src/udev/net/link-config.h \
3787 src/udev/net/link-config.c \
3788 src/udev/net/ethtool-util.h \
3789 src/udev/net/ethtool-util.c
3791 nodist_libudev_core_la_SOURCES = \
3792 src/udev/keyboard-keys-from-name.h \
3793 src/udev/keyboard-keys-to-name.h \
3794 src/udev/net/link-config-gperf.c
3797 $(nodist_libudev_core_la_SOURCES)
3800 src/udev/keyboard-keys-from-name.gperf \
3801 src/udev/keyboard-keys.txt \
3802 src/udev/net/link-config-gperf.c
3805 src/udev/net/link-config-gperf.gperf
3807 libudev_core_la_CFLAGS = \
3812 libudev_core_la_LIBADD = \
3813 libudev-internal.la \
3814 libsystemd-label.la \
3815 libsystemd-internal.la \
3816 libsystemd-network.la \
3817 libsystemd-shared.la \
3822 libudev_core_la_SOURCES += \
3823 src/udev/udev-builtin-kmod.c
3825 dist_udevrules_DATA += \
3826 rules/80-drivers.rules