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 sd_bootlibdir = $(prefix)/lib/systemd/sd-boot
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 RUNLEVEL1_TARGET_WANTS =
246 RUNLEVEL2_TARGET_WANTS =
247 RUNLEVEL3_TARGET_WANTS =
248 RUNLEVEL4_TARGET_WANTS =
249 RUNLEVEL5_TARGET_WANTS =
250 SHUTDOWN_TARGET_WANTS =
251 LOCAL_FS_TARGET_WANTS =
252 MULTI_USER_TARGET_WANTS =
253 SYSINIT_TARGET_WANTS =
254 SOCKETS_TARGET_WANTS =
255 BUSNAMES_TARGET_WANTS =
256 TIMERS_TARGET_WANTS =
257 USER_SOCKETS_TARGET_WANTS =
258 USER_DEFAULT_TARGET_WANTS =
259 USER_BUSNAMES_TARGET_WANTS =
261 SYSTEM_UNIT_ALIASES =
265 install-target-wants-hook:
266 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
274 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
275 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
276 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
277 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
279 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
281 install-busnames-target-wants-hook:
282 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
283 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
286 [ -z "$$what" ] || ( \
287 dir=$(DESTDIR)$$dir/$$wants.wants && \
288 $(MKDIR_P) -m 0755 $$dir && \
291 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
294 install-directories-hook:
295 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
297 install-aliases-hook:
298 set -- $(SYSTEM_UNIT_ALIASES) && \
299 dir=$(systemunitdir) && $(install-aliases)
300 set -- $(USER_UNIT_ALIASES) && \
301 dir=$(userunitdir) && $(install-relative-aliases)
302 set -- $(GENERAL_ALIASES) && \
303 dir= && $(install-relative-aliases)
305 define install-aliases
306 while [ -n "$$1" ]; do \
307 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
308 rm -f $(DESTDIR)$$dir/$$2 && \
309 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
310 shift 2 || exit $$?; \
314 define install-relative-aliases
315 while [ -n "$$1" ]; do \
316 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
317 rm -f $(DESTDIR)$$dir/$$2 && \
318 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
319 shift 2 || exit $$?; \
323 install-touch-usr-hook:
324 touch -c $(DESTDIR)/$(prefix)
326 INSTALL_EXEC_HOOKS += \
327 install-target-wants-hook \
328 install-directories-hook \
329 install-aliases-hook \
330 install-touch-usr-hook
333 INSTALL_EXEC_HOOKS += \
334 install-busnames-target-wants-hook
337 # ------------------------------------------------------------------------------
338 AM_V_M4 = $(AM_V_M4_$(V))
339 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
340 AM_V_M4_0 = @echo " M4 " $@;
342 AM_V_XSLT = $(AM_V_XSLT_$(V))
343 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
344 AM_V_XSLT_0 = @echo " XSLT " $@;
346 AM_V_GPERF = $(AM_V_GPERF_$(V))
347 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
348 AM_V_GPERF_0 = @echo " GPERF " $@;
350 AM_V_LN = $(AM_V_LN_$(V))
351 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
352 AM_V_LN_0 = @echo " LN " $@;
354 AM_V_RM = $(AM_V_RM_$(V))
355 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
356 AM_V_RM_0 = @echo " RM " $@;
358 # ------------------------------------------------------------------------------
362 systemd-ask-password \
363 systemd-tty-ask-password-agent \
364 systemd-machine-id-setup \
371 systemd-detect-virt \
375 systemd-stdio-bridge \
379 src/kernel-install/kernel-install
381 dist_kernelinstall_SCRIPTS = \
382 src/kernel-install/50-depmod.install \
383 src/kernel-install/90-loaderentry.install
385 rootlibexec_PROGRAMS = \
387 systemd-cgroups-agent \
392 systemd-reply-password \
394 systemd-machine-id-commit \
399 systemd-socket-proxyd \
403 rootlibexec_PROGRAMS += \
407 systemgenerator_PROGRAMS = \
408 systemd-getty-generator \
409 systemd-fstab-generator \
410 systemd-system-update-generator \
411 systemd-debug-generator
413 dist_bashcompletion_DATA = \
414 shell-completion/bash/busctl \
415 shell-completion/bash/journalctl \
416 shell-completion/bash/systemd-analyze \
417 shell-completion/bash/systemd-cat \
418 shell-completion/bash/systemd-cgls \
419 shell-completion/bash/systemd-cgtop \
420 shell-completion/bash/systemd-delta \
421 shell-completion/bash/systemd-detect-virt \
422 shell-completion/bash/systemd-nspawn \
423 shell-completion/bash/systemd-run \
424 shell-completion/bash/udevadm \
425 shell-completion/bash/kernel-install
427 nodist_bashcompletion_DATA = \
428 shell-completion/bash/systemctl
430 dist_zshcompletion_DATA = \
431 shell-completion/zsh/_journalctl \
432 shell-completion/zsh/_udevadm \
433 shell-completion/zsh/_kernel-install \
434 shell-completion/zsh/_systemd-nspawn \
435 shell-completion/zsh/_systemd-analyze \
436 shell-completion/zsh/_systemd-run \
437 shell-completion/zsh/_sd_hosts_or_user_at_host \
438 shell-completion/zsh/_sd_outputmodes \
439 shell-completion/zsh/_sd_unit_files \
440 shell-completion/zsh/_systemd-delta \
441 shell-completion/zsh/_systemd
443 nodist_zshcompletion_DATA = \
444 shell-completion/zsh/_systemctl
447 shell-completion/bash/systemctl.in \
448 shell-completion/zsh/_systemctl.in
451 $(nodist_bashcompletion_DATA) \
452 $(nodist_zshcompletion_DATA)
455 sysctl.d/50-default.conf
457 dist_systemunit_DATA = \
458 units/graphical.target \
459 units/multi-user.target \
460 units/emergency.target \
461 units/sysinit.target \
466 units/local-fs.target \
467 units/local-fs-pre.target \
468 units/initrd.target \
469 units/initrd-fs.target \
470 units/initrd-root-fs.target \
471 units/remote-fs.target \
472 units/remote-fs-pre.target \
473 units/network.target \
474 units/network-pre.target \
475 units/network-online.target \
476 units/nss-lookup.target \
477 units/nss-user-lookup.target \
478 units/poweroff.target \
479 units/reboot.target \
480 units/rescue.target \
481 units/rpcbind.target \
482 units/time-sync.target \
483 units/shutdown.target \
485 units/umount.target \
486 units/sigpwr.target \
488 units/sockets.target \
489 units/timers.target \
491 units/suspend.target \
493 units/slices.target \
496 units/systemd-initctl.socket \
497 units/systemd-shutdownd.socket \
498 units/syslog.socket \
499 units/dev-hugepages.mount \
500 units/dev-mqueue.mount \
501 units/sys-kernel-config.mount \
502 units/sys-kernel-debug.mount \
503 units/sys-fs-fuse-connections.mount \
505 units/printer.target \
507 units/bluetooth.target \
508 units/smartcard.target \
509 units/systemd-ask-password-wall.path \
510 units/systemd-ask-password-console.path \
511 units/systemd-udevd-control.socket \
512 units/systemd-udevd-kernel.socket \
513 units/system-update.target \
514 units/initrd-switch-root.target \
515 units/machines.target
518 dist_systemunit_DATA += \
519 $(dist_systemunit_DATA_busnames)
522 dist_systemunit_DATA_busnames += \
523 units/busnames.target
525 nodist_systemunit_DATA = \
526 units/getty@.service \
527 units/serial-getty@.service \
528 units/console-shell.service \
529 units/console-getty.service \
530 units/container-getty@.service \
531 units/systemd-initctl.service \
532 units/systemd-shutdownd.service \
533 units/systemd-remount-fs.service \
534 units/systemd-ask-password-wall.service \
535 units/systemd-ask-password-console.service \
536 units/systemd-sysctl.service \
537 units/emergency.service \
538 units/rescue.service \
539 units/user@.service \
540 units/systemd-suspend.service \
541 units/systemd-halt.service \
542 units/systemd-poweroff.service \
543 units/systemd-reboot.service \
544 units/systemd-kexec.service \
545 units/systemd-fsck@.service \
546 units/systemd-fsck-root.service \
547 units/systemd-machine-id-commit.service \
548 units/systemd-udevd.service \
549 units/systemd-udev-trigger.service \
550 units/systemd-udev-settle.service \
551 units/systemd-hwdb-update.service \
552 units/debug-shell.service \
553 units/initrd-parse-etc.service \
554 units/initrd-cleanup.service \
555 units/initrd-udevadm-cleanup-db.service \
556 units/initrd-switch-root.service \
557 units/systemd-nspawn@.service \
558 units/systemd-update-done.service
561 nodist_systemunit_DATA += \
562 units/systemd-update-utmp.service \
563 units/systemd-update-utmp-runlevel.service
566 dist_userunit_DATA = \
567 units/user/basic.target \
568 units/user/default.target \
569 units/user/exit.target
571 nodist_userunit_DATA = \
572 units/user/systemd-exit.service
574 dist_systempreset_DATA = \
575 system-preset/90-systemd.preset
578 units/getty@.service.m4 \
579 units/serial-getty@.service.m4 \
580 units/console-shell.service.m4.in \
581 units/console-getty.service.m4.in \
582 units/container-getty@.service.m4.in \
583 units/rescue.service.in \
584 units/systemd-initctl.service.in \
585 units/systemd-shutdownd.service.in \
586 units/systemd-remount-fs.service.in \
587 units/systemd-update-utmp.service.in \
588 units/systemd-update-utmp-runlevel.service.in \
589 units/systemd-ask-password-wall.service.in \
590 units/systemd-ask-password-console.service.in \
591 units/systemd-sysctl.service.in \
592 units/emergency.service.in \
593 units/systemd-halt.service.in \
594 units/systemd-poweroff.service.in \
595 units/systemd-reboot.service.in \
596 units/systemd-kexec.service.in \
597 units/user/systemd-exit.service.in \
598 units/systemd-fsck@.service.in \
599 units/systemd-fsck-root.service.in \
600 units/systemd-machine-id-commit.service.in \
601 units/user@.service.m4.in \
602 units/debug-shell.service.in \
603 units/systemd-suspend.service.in \
604 units/quotaon.service.in \
605 units/initrd-parse-etc.service.in \
606 units/initrd-cleanup.service.in \
607 units/initrd-udevadm-cleanup-db.service.in \
608 units/initrd-switch-root.service.in \
609 units/systemd-nspawn@.service.in \
610 units/systemd-update-done.service.in
613 units/console-shell.service.m4 \
614 units/console-getty.service.m4 \
615 units/container-getty@.service.m4 \
616 units/user@.service.m4
619 nodist_systemunit_DATA += \
620 units/rc-local.service \
621 units/halt-local.service
623 systemgenerator_PROGRAMS += \
624 systemd-sysv-generator \
625 systemd-rc-local-generator
629 units/rc-local.service.in \
630 units/halt-local.service.in
632 # automake is broken and can't handle files with a dash in front
633 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
635 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
637 units-uninstall-hook:
638 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
640 INSTALL_DATA_HOOKS += units-install-hook
641 UNINSTALL_DATA_HOOKS += units-uninstall-hook
650 src/libsystemd/sd-bus/PORTING-DBUS1 \
651 src/libsystemd/sd-bus/DIFFERENCES \
652 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
654 @INTLTOOL_POLICY_RULE@
656 # ------------------------------------------------------------------------------
661 include Makefile-man.am
663 .PHONY: man update-man-list
664 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
667 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
669 ${XML_FILES:.xml=.html}
671 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
688 $(AM_V_at)$(MKDIR_P) $(dir $@)
689 $(AM_V_LN)$(LN_S) -f ../../man $@
698 man/index.html: man/systemd.index.html
699 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
707 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
708 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
709 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
711 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
712 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
713 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
714 @echo "Makefile-man.am has been regenerated"
716 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
717 $(AM_V_at)$(MKDIR_P) $(dir $@)
718 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
720 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
721 $(AM_V_at)$(MKDIR_P) $(dir $@)
722 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
725 man/systemd.index.xml \
727 man/systemd.directives.xml \
728 man/glib-event-glue.c
731 man/systemd.index.xml \
732 man/systemd.directives.xml
743 tools/make-man-index.py \
744 tools/make-directive-index.py \
747 # ------------------------------------------------------------------------------
748 noinst_LTLIBRARIES += \
751 libsystemd_shared_la_SOURCES = \
752 src/shared/capability.c \
753 src/shared/capability.h \
754 src/shared/linux/auto_dev-ioctl.h \
755 src/shared/ioprio.h \
756 src/shared/missing.h \
757 src/shared/initreq.h \
758 src/shared/securebits.h \
759 src/shared/special.h \
761 src/shared/unaligned.h \
764 src/shared/sparse-endian.h \
765 src/shared/refcnt.h \
766 src/shared/udev-util.h \
767 src/shared/device-nodes.c \
768 src/shared/device-nodes.h \
773 src/shared/architecture.c \
774 src/shared/architecture.h \
775 src/shared/efivars.c \
776 src/shared/efivars.h \
777 src/shared/fstab-util.c \
778 src/shared/fstab-util.h \
779 src/shared/path-util.c \
780 src/shared/path-util.h \
781 src/shared/time-util.c \
782 src/shared/time-util.h \
783 src/shared/locale-util.c \
784 src/shared/locale-util.h \
785 src/shared/mempool.c \
786 src/shared/mempool.h \
787 src/shared/hashmap.c \
788 src/shared/hashmap.h \
789 src/shared/siphash24.c \
790 src/shared/siphash24.h \
796 src/shared/sleep-config.c \
797 src/shared/sleep-config.h \
800 src/shared/env-util.c \
801 src/shared/env-util.h \
802 src/shared/strbuf.c \
803 src/shared/strbuf.h \
804 src/shared/strxcpyx.c \
805 src/shared/strxcpyx.h \
806 src/shared/conf-parser.c \
807 src/shared/conf-parser.h \
810 src/shared/ratelimit.h \
811 src/shared/ratelimit.c \
812 src/shared/exit-status.c \
813 src/shared/exit-status.h \
816 src/shared/gunicode.c \
817 src/shared/gunicode.h \
820 src/shared/socket-util.c \
821 src/shared/socket-util.h \
822 src/shared/in-addr-util.c \
823 src/shared/in-addr-util.h \
824 src/shared/ether-addr-util.h \
825 src/shared/conf-files.c \
826 src/shared/conf-files.h \
827 src/shared/cgroup-util.c \
828 src/shared/cgroup-util.h \
829 src/shared/cgroup-show.c \
830 src/shared/cgroup-show.h \
831 src/shared/unit-name.c \
832 src/shared/unit-name.h \
833 src/shared/utmp-wtmp.h \
834 src/shared/watchdog.c \
835 src/shared/watchdog.h \
836 src/shared/spawn-ask-password-agent.c \
837 src/shared/spawn-ask-password-agent.h \
838 src/shared/replace-var.c \
839 src/shared/replace-var.h \
840 src/shared/spawn-polkit-agent.c \
841 src/shared/spawn-polkit-agent.h \
842 src/shared/clock-util.c \
843 src/shared/clock-util.h \
844 src/shared/time-dst.c \
845 src/shared/time-dst.h \
846 src/shared/calendarspec.c \
847 src/shared/calendarspec.h \
848 src/shared/fileio.c \
849 src/shared/fileio.h \
850 src/shared/output-mode.h \
851 src/shared/MurmurHash2.c \
852 src/shared/MurmurHash2.h \
853 src/shared/acpi-fpdt.h \
854 src/shared/acpi-fpdt.c \
855 src/shared/boot-timestamps.h \
856 src/shared/boot-timestamps.c \
859 src/shared/smack-util.c \
860 src/shared/smack-util.h \
861 src/shared/apparmor-util.c \
862 src/shared/apparmor-util.h \
863 src/shared/ima-util.c \
864 src/shared/ima-util.h \
865 src/shared/ptyfwd.c \
866 src/shared/ptyfwd.h \
867 src/shared/errno-list.c \
868 src/shared/errno-list.h \
869 src/shared/af-list.c \
870 src/shared/af-list.h \
871 src/shared/arphrd-list.c \
872 src/shared/arphrd-list.h \
873 src/shared/cap-list.c \
874 src/shared/cap-list.h \
881 src/shared/bus-label.c \
882 src/shared/bus-label.h \
884 src/shared/clean-ipc.h \
885 src/shared/clean-ipc.c \
886 src/shared/login-shared.c \
887 src/shared/login-shared.h \
890 src/shared/barrier.c \
891 src/shared/barrier.h \
896 src/shared/base-filesystem.c \
897 src/shared/base-filesystem.h \
898 src/shared/memfd-util.c \
899 src/shared/memfd-util.h \
900 src/shared/uid-range.c \
901 src/shared/uid-range.h \
902 src/shared/nss-util.h \
905 src/shared/sigbus.c \
906 src/shared/sigbus.h \
908 src/shared/import-util.c \
909 src/shared/import-util.h
912 libsystemd_shared_la_SOURCES += \
913 src/shared/utmp-wtmp.c
916 nodist_libsystemd_shared_la_SOURCES = \
917 src/shared/errno-from-name.h \
918 src/shared/errno-to-name.h \
919 src/shared/af-from-name.h \
920 src/shared/af-to-name.h \
921 src/shared/arphrd-from-name.h \
922 src/shared/arphrd-to-name.h \
923 src/shared/cap-from-name.h \
924 src/shared/cap-to-name.h
926 libsystemd_shared_la_CFLAGS = \
932 libsystemd_shared_la_LIBADD = \
936 # ------------------------------------------------------------------------------
937 noinst_LTLIBRARIES += \
940 libsystemd_units_la_SOURCES = \
941 src/shared/install.c \
942 src/shared/install.h \
943 src/shared/install-printf.c \
944 src/shared/install-printf.h \
945 src/shared/path-lookup.c \
946 src/shared/path-lookup.h \
947 src/shared/specifier.c \
948 src/shared/specifier.h
950 # ------------------------------------------------------------------------------
951 noinst_LTLIBRARIES += \
954 libsystemd_label_la_SOURCES = \
955 src/shared/socket-label.c \
958 src/shared/selinux-util.c \
959 src/shared/selinux-util.h \
960 src/shared/mkdir-label.c \
961 src/shared/ask-password-api.c \
962 src/shared/ask-password-api.h \
963 src/shared/switch-root.h \
964 src/shared/switch-root.c \
965 src/shared/fileio-label.c \
966 src/shared/fileio-label.h \
967 src/shared/dev-setup.c \
968 src/shared/dev-setup.h \
969 src/shared/dropin.c \
970 src/shared/dropin.h \
971 src/shared/condition.c \
972 src/shared/condition.h \
973 src/shared/generator.h \
974 src/shared/generator.c \
975 src/shared/btrfs-util.c \
976 src/shared/btrfs-util.h \
977 src/shared/btrfs-ctree.h \
978 src/shared/machine-image.c \
979 src/shared/machine-image.h \
983 libsystemd_label_la_CFLAGS = \
987 libsystemd_label_la_LIBADD = \
990 # -----------------------------------------------------------------------------
993 noinst_LTLIBRARIES += \
996 libsystemd_fw_la_SOURCES = \
997 src/shared/fw-util.h \
1000 libsystemd_fw_la_CFLAGS = \
1004 libsystemd_fw_la_LIBADD = \
1008 # -----------------------------------------------------------------------------
1011 dist_systemunit_DATA += \
1012 units/ldconfig.service
1014 SYSINIT_TARGET_WANTS += \
1018 # ------------------------------------------------------------------------------
1021 noinst_LTLIBRARIES += \
1022 libsystemd-seccomp.la
1024 libsystemd_seccomp_la_SOURCES = \
1025 src/shared/seccomp-util.h \
1026 src/shared/seccomp-util.c
1028 libsystemd_seccomp_la_CFLAGS = \
1032 libsystemd_seccomp_la_LIBADD = \
1036 # ------------------------------------------------------------------------------
1037 noinst_LTLIBRARIES += \
1040 libsystemd_logs_la_SOURCES = \
1041 src/shared/logs-show.c \
1042 src/shared/logs-show.h
1044 # ------------------------------------------------------------------------------
1046 noinst_LTLIBRARIES += \
1049 libsystemd_acl_la_SOURCES = \
1050 src/shared/acl-util.c \
1051 src/shared/acl-util.h
1053 libsystemd_acl_la_CFLAGS = \
1057 libsystemd_acl_la_LIBADD = \
1061 # ------------------------------------------------------------------------------
1062 noinst_LTLIBRARIES += \
1065 libsystemd_core_la_SOURCES = \
1068 src/core/unit-printf.c \
1069 src/core/unit-printf.h \
1072 src/core/manager.c \
1073 src/core/manager.h \
1074 src/core/transaction.c \
1075 src/core/transaction.h \
1076 src/core/load-fragment.c \
1077 src/core/load-fragment.h \
1078 src/core/service.c \
1079 src/core/service.h \
1082 src/core/busname.c \
1083 src/core/busname.h \
1084 src/core/bus-endpoint.c \
1085 src/core/bus-endpoint.h \
1086 src/core/bus-policy.c \
1087 src/core/bus-policy.h \
1090 src/core/snapshot.c \
1091 src/core/snapshot.h \
1096 src/core/automount.c \
1097 src/core/automount.h \
1108 src/core/load-dropin.c \
1109 src/core/load-dropin.h \
1110 src/core/execute.c \
1111 src/core/execute.h \
1116 src/core/dbus-manager.c \
1117 src/core/dbus-manager.h \
1118 src/core/dbus-unit.c \
1119 src/core/dbus-unit.h \
1120 src/core/dbus-job.c \
1121 src/core/dbus-job.h \
1122 src/core/dbus-service.c \
1123 src/core/dbus-service.h \
1124 src/core/dbus-socket.c \
1125 src/core/dbus-socket.h \
1126 src/core/dbus-busname.c \
1127 src/core/dbus-busname.h \
1128 src/core/dbus-target.c \
1129 src/core/dbus-target.h \
1130 src/core/dbus-snapshot.c \
1131 src/core/dbus-snapshot.h \
1132 src/core/dbus-device.c \
1133 src/core/dbus-device.h \
1134 src/core/dbus-mount.c \
1135 src/core/dbus-mount.h \
1136 src/core/dbus-automount.c \
1137 src/core/dbus-automount.h \
1138 src/core/dbus-swap.c \
1139 src/core/dbus-swap.h \
1140 src/core/dbus-timer.c \
1141 src/core/dbus-timer.h \
1142 src/core/dbus-path.c \
1143 src/core/dbus-path.h \
1144 src/core/dbus-slice.c \
1145 src/core/dbus-slice.h \
1146 src/core/dbus-scope.c \
1147 src/core/dbus-scope.h \
1148 src/core/dbus-execute.c \
1149 src/core/dbus-execute.h \
1150 src/core/dbus-kill.c \
1151 src/core/dbus-kill.h \
1152 src/core/dbus-cgroup.c \
1153 src/core/dbus-cgroup.h \
1156 src/core/selinux-access.c \
1157 src/core/selinux-access.h \
1158 src/core/selinux-setup.c \
1159 src/core/selinux-setup.h \
1160 src/core/smack-setup.c \
1161 src/core/smack-setup.h \
1162 src/core/ima-setup.c \
1163 src/core/ima-setup.h \
1164 src/core/locale-setup.h \
1165 src/core/locale-setup.c \
1166 src/core/hostname-setup.c \
1167 src/core/hostname-setup.h \
1168 src/core/machine-id-setup.c \
1169 src/core/machine-id-setup.h \
1170 src/core/mount-setup.c \
1171 src/core/mount-setup.h \
1172 src/core/kmod-setup.c \
1173 src/core/kmod-setup.h \
1174 src/core/loopback-setup.h \
1175 src/core/loopback-setup.c \
1176 src/core/namespace.c \
1177 src/core/namespace.h \
1178 src/core/killall.h \
1179 src/core/killall.c \
1180 src/core/audit-fd.c \
1181 src/core/audit-fd.h \
1182 src/core/show-status.c \
1183 src/core/show-status.h \
1184 src/core/failure-action.c \
1185 src/core/failure-action.h
1187 nodist_libsystemd_core_la_SOURCES = \
1188 src/core/load-fragment-gperf.c \
1189 src/core/load-fragment-gperf-nulstr.c
1191 libsystemd_core_la_CFLAGS = \
1196 $(APPARMOR_CFLAGS) \
1201 libsystemd_core_la_LIBADD = \
1202 libsystemd-units.la \
1203 libsystemd-label.la \
1204 libudev-internal.la \
1205 libsystemd-shared.la \
1206 libsystemd-internal.la \
1215 libsystemd_core_la_LIBADD += \
1216 libsystemd-seccomp.la
1219 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1220 $(AM_V_at)$(MKDIR_P) $(dir $@)
1221 $(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 ";" }' < $< > $@
1224 src/core/load-fragment-gperf.gperf.m4
1227 src/core/load-fragment-gperf.gperf \
1228 src/core/load-fragment-gperf.c \
1229 src/core/load-fragment-gperf-nulstr.c \
1230 src/shared/errno-list.txt \
1231 src/shared/errno-from-name.gperf \
1232 src/shared/af-list.txt \
1233 src/shared/af-from-name.gperf \
1234 src/shared/arphrd-list.txt \
1235 src/shared/arphrd-from-name.gperf \
1236 src/shared/cap-list.txt \
1237 src/shared/cap-from-name.gperf \
1238 src/resolve/dns_type-list.txt \
1239 src/resolve/dns_type-from-name.gperf
1242 src/shared/errno-from-name.h \
1243 src/shared/errno-to-name.h \
1244 src/shared/af-from-name.h \
1245 src/shared/af-to-name.h \
1246 src/shared/arphrd-from-name.h \
1247 src/shared/arphrd-to-name.h \
1248 src/shared/cap-from-name.h \
1249 src/shared/cap-to-name.h \
1250 src/resolve/dns_type-from-name.h \
1251 src/resolve/dns_type-to-name.h
1253 %-from-name.gperf: %-list.txt
1254 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1256 %-from-name.h: %-from-name.gperf
1257 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1260 src/shared/errno-list.txt:
1261 $(AM_V_at)$(MKDIR_P) $(dir $@)
1262 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1264 src/shared/errno-to-name.h: src/shared/errno-list.txt
1265 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1268 src/shared/af-list.txt:
1269 $(AM_V_at)$(MKDIR_P) $(dir $@)
1270 $(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; }' >$@
1272 src/shared/af-to-name.h: src/shared/af-list.txt
1273 $(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 "};"}' <$< >$@
1276 src/shared/arphrd-list.txt:
1277 $(AM_V_at)$(MKDIR_P) $(dir $@)
1278 $(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_//' >$@
1280 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1281 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1283 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1284 $(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 }' <$< >$@
1287 src/shared/cap-list.txt:
1288 $(AM_V_at)$(MKDIR_P) $(dir $@)
1289 $(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 >$@
1291 src/shared/cap-to-name.h: src/shared/cap-list.txt
1292 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1294 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1295 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1297 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1298 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1301 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1302 $(AM_V_at)$(MKDIR_P) $(dir $@)
1303 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1305 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1306 $(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" }' <$< >$@
1308 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1309 $(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 }' <$< >$@
1311 # ------------------------------------------------------------------------------
1320 libsystemd-core.la \
1323 dist_pkgsysconf_DATA += \
1324 src/core/system.conf \
1327 dist_dbuspolicy_DATA += \
1328 src/core/org.freedesktop.systemd1.conf
1330 dist_dbussystemservice_DATA += \
1331 src/core/org.freedesktop.systemd1.service
1333 polkitpolicy_in_in_files += \
1334 src/core/org.freedesktop.systemd1.policy.in.in
1336 pkgconfiglib_DATA += \
1339 nodist_rpmmacros_DATA = \
1340 src/core/macros.systemd
1343 src/core/systemd.pc.in \
1344 src/core/macros.systemd.in
1347 src/core/macros.systemd \
1348 src/core/org.freedesktop.systemd1.policy.in
1350 # ------------------------------------------------------------------------------
1400 test-strip-tab-ansi \
1436 test/daughter.service \
1438 test/end.service.in \
1441 test/grandchild.service \
1443 test/hello-after-sleep.target \
1444 test/hello.service \
1446 test/parent-deep.slice \
1449 test/sched_idle_bad.service \
1450 test/sched_idle_ok.service \
1451 test/sched_rr_bad.service \
1452 test/sched_rr_change.service \
1453 test/sched_rr_ok.service \
1454 test/shutdown.target \
1455 test/sleep.service \
1456 test/sockets.target \
1458 test/sysinit.target \
1459 test/testsuite.target \
1460 test/timers.target \
1461 test/unstoppable.service \
1462 test/path-changed.service \
1463 test/path-directorynotempty.service \
1464 test/path-existsglob.service \
1465 test/path-exists.service \
1466 test/path-makedirectory.service \
1467 test/path-modified.service \
1468 test/path-mycustomunit.service \
1469 test/path-service.service \
1470 test/path-changed.path \
1471 test/path-directorynotempty.path \
1472 test/path-existsglob.path \
1473 test/path-exists.path \
1474 test/path-makedirectory.path \
1475 test/path-modified.path \
1476 test/path-unit.path \
1477 test/exec-environment-empty.service \
1478 test/exec-environment-multiple.service \
1479 test/exec-environment.service \
1480 test/exec-group.service \
1481 test/exec-ignoresigpipe-no.service \
1482 test/exec-ignoresigpipe-yes.service \
1483 test/exec-personality-x86-64.service \
1484 test/exec-personality-x86.service \
1485 test/exec-privatedevices-no.service \
1486 test/exec-privatedevices-yes.service \
1487 test/exec-privatetmp-no.service \
1488 test/exec-privatetmp-yes.service \
1489 test/exec-systemcallerrornumber.service \
1490 test/exec-systemcallfilter-failing2.service \
1491 test/exec-systemcallfilter-failing.service \
1492 test/exec-systemcallfilter-not-failing2.service \
1493 test/exec-systemcallfilter-not-failing.service \
1494 test/exec-user.service \
1495 test/exec-workingdirectory.service \
1496 test/exec-umask-0177.service \
1497 test/exec-umask-default.service \
1498 test/bus-policy/hello.conf \
1499 test/bus-policy/methods.conf \
1500 test/bus-policy/ownerships.conf \
1501 test/bus-policy/signals.conf \
1502 test/bus-policy/check-own-rules.conf \
1503 test/bus-policy/many-rules.conf \
1504 test/bus-policy/test.conf
1508 src/test/test-helper.h
1510 test_device_nodes_SOURCES = \
1511 src/test/test-device-nodes.c
1513 test_device_nodes_LDADD = \
1514 libsystemd-shared.la
1516 test_engine_SOURCES = \
1517 src/test/test-engine.c
1519 test_engine_CFLAGS = \
1523 test_engine_LDADD = \
1524 libsystemd-core.la \
1527 test_job_type_SOURCES = \
1528 src/test/test-job-type.c
1530 test_job_type_CFLAGS = \
1534 test_job_type_LDADD = \
1535 libsystemd-core.la \
1548 test_loopback_SOURCES = \
1549 src/test/test-loopback.c
1551 test_loopback_LDADD = \
1554 test_hostname_SOURCES = \
1555 src/test/test-hostname.c
1557 test_hostname_LDADD = \
1564 test_boot_timestamp_SOURCES = \
1565 src/test/test-boot-timestamps.c
1567 test_boot_timestamp_LDADD = \
1568 libsystemd-shared.la
1571 test_unit_name_SOURCES = \
1572 src/test/test-unit-name.c
1574 test_unit_name_CFLAGS = \
1578 test_unit_name_LDADD = \
1579 libsystemd-core.la \
1582 test_unit_file_SOURCES = \
1583 src/test/test-unit-file.c
1585 test_unit_file_CFLAGS = \
1589 test_unit_file_LDADD = \
1590 libsystemd-core.la \
1593 test_utf8_SOURCES = \
1594 src/test/test-utf8.c
1597 libsystemd-shared.la
1599 test_capability_SOURCES = \
1600 src/test/test-capability.c
1602 test_capability_LDADD = \
1603 libsystemd-shared.la
1605 test_async_SOURCES = \
1606 src/test/test-async.c
1608 test_async_LDADD = \
1609 libsystemd-shared.la
1611 test_locale_util_SOURCES = \
1612 src/test/test-locale-util.c
1614 test_locale_util_LDADD = \
1615 libsystemd-shared.la
1617 test_copy_SOURCES = \
1618 src/test/test-copy.c
1621 libsystemd-label.la \
1622 libsystemd-shared.la
1624 test_sigbus_SOURCES = \
1625 src/test/test-sigbus.c
1627 test_sigbus_LDADD = \
1628 libsystemd-shared.la
1630 test_condition_SOURCES = \
1631 src/test/test-condition.c
1633 test_condition_LDADD = \
1634 libsystemd-label.la \
1635 libsystemd-internal.la \
1636 libsystemd-shared.la
1638 test_fdset_SOURCES = \
1639 src/test/test-fdset.c
1641 test_fdset_LDADD = \
1642 libsystemd-shared.la \
1643 libsystemd-internal.la
1645 test_fstab_util_SOURCES = \
1646 src/test/test-fstab-util.c
1648 test_fstab_util_LDADD = \
1649 libsystemd-shared.la
1651 test_ratelimit_SOURCES = \
1652 src/test/test-ratelimit.c
1654 test_ratelimit_LDADD = \
1655 libsystemd-shared.la
1657 test_util_SOURCES = \
1658 src/test/test-util.c
1661 libsystemd-shared.la
1663 test_path_lookup_SOURCES = \
1664 src/test/test-path-lookup.c
1666 test_path_lookup_LDADD = \
1668 libsystemd-units.la \
1669 libsystemd-shared.la
1671 test_uid_range_SOURCES = \
1672 src/test/test-uid-range.c
1674 test_uid_range_LDADD = \
1675 libsystemd-shared.la
1677 test_cap_list_SOURCES = \
1678 src/test/test-cap-list.c
1680 test_cap_list_LDADD = \
1681 libsystemd-shared.la
1683 test_socket_util_SOURCES = \
1684 src/test/test-socket-util.c
1686 test_socket_util_LDADD = \
1687 libsystemd-shared.la
1689 test_ring_SOURCES = \
1690 src/test/test-ring.c
1693 libsystemd-shared.la
1695 test_barrier_SOURCES = \
1696 src/test/test-barrier.c
1698 test_barrier_LDADD = \
1699 libsystemd-shared.la
1701 test_pty_SOURCES = \
1707 test_tmpfiles_SOURCES = \
1708 src/test/test-tmpfiles.c
1710 test_tmpfiles_LDADD = \
1711 libsystemd-shared.la
1713 test_namespace_SOURCES = \
1714 src/test/test-namespace.c
1716 test_verbs_SOURCES = \
1717 src/test/test-verbs.c
1719 test_verbs_LDADD = \
1720 libsystemd-shared.la
1722 test_namespace_LDADD = \
1726 src/test/test-hashmap-ordered.c
1729 src/test/test-hashmap-ordered.c
1731 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1732 $(AM_V_at)$(MKDIR_P) $(dir $@)
1733 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1734 { if (!match($$0, "^#include")) \
1735 gsub(/hashmap/, "ordered_hashmap"); \
1736 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1737 gsub(/Hashmap/, "OrderedHashmap"); \
1740 nodist_test_hashmap_SOURCES = \
1741 src/test/test-hashmap-ordered.c
1743 test_hashmap_SOURCES = \
1744 src/test/test-hashmap.c \
1745 src/test/test-hashmap-plain.c
1747 test_hashmap_LDADD = \
1748 libsystemd-shared.la
1750 test_set_SOURCES = \
1754 libsystemd-shared.la
1756 test_xml_SOURCES = \
1760 libsystemd-shared.la
1762 test_json_SOURCES = \
1763 src/test/test-json.c
1766 libsystemd-shared.la
1768 test_list_SOURCES = \
1769 src/test/test-list.c
1772 libsystemd-shared.la
1774 test_unaligned_LDADD = \
1775 libsystemd-shared.la
1777 test_unaligned_SOURCES = \
1778 src/test/test-unaligned.c
1780 test_tables_SOURCES = \
1781 src/test/test-tables.c \
1782 src/shared/test-tables.h \
1783 src/bus-proxyd/bus-xml-policy.c \
1784 src/bus-proxyd/bus-xml-policy.h \
1785 src/journal/journald-server.c \
1786 src/journal/journald-server.h
1788 test_tables_CPPFLAGS = \
1790 -I$(top_srcdir)/src/bus-proxyd
1792 test_tables_CFLAGS = \
1796 test_tables_LDADD = \
1797 libsystemd-logs.la \
1798 libsystemd-journal-internal.la \
1799 libsystemd-journal-core.la \
1800 libsystemd-core.la \
1804 test_prioq_SOURCES = \
1805 src/test/test-prioq.c
1807 test_prioq_LDADD = \
1808 libsystemd-shared.la
1810 test_fileio_SOURCES = \
1811 src/test/test-fileio.c
1813 test_fileio_LDADD = \
1814 libsystemd-shared.la
1816 test_time_SOURCES = \
1817 src/test/test-time.c
1820 libsystemd-shared.la
1822 test_architecture_SOURCES = \
1823 src/test/test-architecture.c
1825 test_architecture_LDADD = \
1826 libsystemd-shared.la
1828 test_log_SOURCES = \
1832 libsystemd-shared.la
1834 test_ipcrm_SOURCES = \
1835 src/test/test-ipcrm.c
1837 test_ipcrm_LDADD = \
1838 libsystemd-shared.la \
1841 test_btrfs_SOURCES = \
1842 src/test/test-btrfs.c
1844 test_btrfs_LDADD = \
1845 libsystemd-label.la \
1846 libsystemd-shared.la
1849 test_fw_util_SOURCES = \
1850 src/test/test-fw-util.c
1852 test_fw_util_CFLAGS = \
1856 test_fw_util_LDADD = \
1858 libsystemd-shared.la \
1862 test_rtnl_manual_SOURCES = \
1863 src/test/test-rtnl-manual.c
1865 test_rtnl_manual_CFLAGS = \
1869 test_rtnl_manual_LDADD = \
1870 libsystemd-internal.la \
1871 libsystemd-shared.la \
1874 test_ellipsize_SOURCES = \
1875 src/test/test-ellipsize.c
1877 test_ellipsize_LDADD = \
1878 libsystemd-shared.la
1880 test_date_SOURCES = \
1881 src/test/test-date.c
1884 libsystemd-shared.la
1886 test_sleep_SOURCES = \
1887 src/test/test-sleep.c
1889 test_sleep_LDADD = \
1892 test_replace_var_SOURCES = \
1893 src/test/test-replace-var.c
1895 test_replace_var_LDADD = \
1896 libsystemd-shared.la
1898 test_calendarspec_SOURCES = \
1899 src/test/test-calendarspec.c
1901 test_calendarspec_LDADD = \
1902 libsystemd-shared.la
1904 test_strip_tab_ansi_SOURCES = \
1905 src/test/test-strip-tab-ansi.c
1907 test_strip_tab_ansi_LDADD = \
1908 libsystemd-shared.la
1910 test_daemon_SOURCES = \
1911 src/test/test-daemon.c
1913 test_daemon_LDADD = \
1914 libsystemd-internal.la \
1915 libsystemd-shared.la
1917 test_cgroup_SOURCES = \
1918 src/test/test-cgroup.c
1920 test_cgroup_LDADD = \
1921 libsystemd-label.la \
1922 libsystemd-shared.la \
1923 libsystemd-internal.la
1925 test_cgroup_mask_SOURCES = \
1926 src/test/test-cgroup-mask.c
1928 test_cgroup_mask_CPPFLAGS = \
1931 test_cgroup_mask_CFLAGS = \
1935 test_cgroup_mask_LDADD = \
1936 libsystemd-core.la \
1939 test_cgroup_util_SOURCES = \
1940 src/test/test-cgroup-util.c
1942 test_cgroup_util_LDADD = \
1943 libsystemd-label.la \
1944 libsystemd-internal.la \
1945 libsystemd-shared.la
1947 test_env_replace_SOURCES = \
1948 src/test/test-env-replace.c
1950 test_env_replace_LDADD = \
1951 libsystemd-shared.la
1953 test_strbuf_SOURCES = \
1954 src/test/test-strbuf.c
1956 test_strbuf_LDADD = \
1957 libsystemd-shared.la
1959 test_strv_SOURCES = \
1960 src/test/test-strv.c
1963 libsystemd-units.la \
1964 libsystemd-internal.la \
1965 libsystemd-shared.la
1967 test_path_util_SOURCES = \
1968 src/test/test-path-util.c
1970 test_path_util_LDADD = \
1971 libsystemd-shared.la
1973 test_path_SOURCES = \
1974 src/test/test-path.c
1976 test_path_CFLAGS = \
1982 test_execute_SOURCES = \
1983 src/test/test-execute.c
1985 test_execute_CFLAGS = \
1988 test_execute_LDADD = \
1991 test_strxcpyx_SOURCES = \
1992 src/test/test-strxcpyx.c
1994 test_strxcpyx_LDADD = \
1995 libsystemd-shared.la
1997 test_install_SOURCES = \
1998 src/test/test-install.c
2000 test_install_LDADD = \
2001 libsystemd-units.la \
2002 libsystemd-label.la \
2003 libsystemd-shared.la \
2004 libsystemd-internal.la
2006 test_watchdog_SOURCES = \
2007 src/test/test-watchdog.c
2009 test_watchdog_LDADD = \
2010 libsystemd-shared.la
2012 test_sched_prio_SOURCES = \
2013 src/test/test-sched-prio.c
2015 test_sched_prio_CPPFLAGS = \
2018 test_sched_prio_CFLAGS = \
2022 test_sched_prio_LDADD = \
2023 libsystemd-core.la \
2026 test_conf_files_SOURCES = \
2027 src/test/test-conf-files.c
2029 test_conf_files_LDADD = \
2030 libsystemd-shared.la
2032 test_bus_policy_SOURCES = \
2033 src/bus-proxyd/test-bus-xml-policy.c
2035 test_bus_policy_LDADD = \
2036 libsystemd-proxy.la \
2037 libsystemd-internal.la \
2038 libsystemd-shared.la
2040 # ------------------------------------------------------------------------------
2041 ## .PHONY so it always rebuilds it
2042 .PHONY: coverage lcov-run lcov-report coverage-sync
2044 # run lcov from scratch, always
2049 coverage_dir = coverage
2050 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2053 # reset run coverage tests
2055 @rm -rf $(coverage_dir)
2056 lcov $(coverage_opts) --zerocounters
2059 # generate report based on current coverage data
2061 $(MKDIR_P) $(coverage_dir)
2062 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2063 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2064 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2065 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2066 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2068 # lcov doesn't work properly with vpath builds, make sure that bad
2069 # output is not uploaded by mistake.
2070 coverage-sync: coverage
2071 test "$(builddir)" = "$(srcdir)"
2072 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2075 lcov-run lcov-report:
2076 echo "Need to reconfigure with --enable-coverage"
2079 # ------------------------------------------------------------------------------
2080 systemd_analyze_SOURCES = \
2081 src/analyze/analyze.c \
2082 src/analyze/analyze-verify.c \
2083 src/analyze/analyze-verify.h
2085 systemd_verify_CFLAGS = \
2089 systemd_analyze_LDADD = \
2090 libsystemd-core.la \
2091 libsystemd-internal.la \
2092 libsystemd-shared.la \
2095 # ------------------------------------------------------------------------------
2096 systemd_initctl_SOURCES = \
2097 src/initctl/initctl.c
2099 systemd_initctl_LDADD = \
2100 libsystemd-internal.la \
2101 libsystemd-shared.la
2103 # ------------------------------------------------------------------------------
2104 systemd_update_utmp_SOURCES = \
2105 src/update-utmp/update-utmp.c
2107 systemd_update_utmp_CFLAGS = \
2111 systemd_update_utmp_LDADD = \
2112 libsystemd-internal.la \
2113 libsystemd-shared.la \
2116 # ------------------------------------------------------------------------------
2117 systemd_update_done_SOURCES = \
2118 src/update-done/update-done.c
2120 systemd_update_done_LDADD = \
2121 libsystemd-internal.la \
2122 libsystemd-label.la \
2123 libsystemd-shared.la
2125 # ------------------------------------------------------------------------------
2126 systemd_shutdownd_SOURCES = \
2127 src/shutdownd/shutdownd.c
2129 systemd_shutdownd_LDADD = \
2130 libsystemd-label.la \
2131 libsystemd-internal.la \
2132 libsystemd-shared.la
2135 src/systemd/sd-shutdown.h
2137 # ------------------------------------------------------------------------------
2138 systemd_shutdown_SOURCES = \
2141 src/core/shutdown.c \
2142 src/core/mount-setup.c \
2143 src/core/mount-setup.h \
2144 src/core/killall.h \
2147 systemd_shutdown_LDADD = \
2148 libsystemd-label.la \
2149 libudev-internal.la \
2150 libsystemd-shared.la
2152 # ------------------------------------------------------------------------------
2154 systemd_modules_load_SOURCES = \
2155 src/modules-load/modules-load.c
2157 systemd_modules_load_CFLAGS = \
2161 systemd_modules_load_LDADD = \
2162 libsystemd-shared.la \
2165 rootlibexec_PROGRAMS += \
2166 systemd-modules-load
2168 nodist_systemunit_DATA += \
2169 units/systemd-modules-load.service
2171 SYSINIT_TARGET_WANTS += \
2172 systemd-modules-load.service
2175 nodist_systemunit_DATA += \
2176 units/kmod-static-nodes.service
2178 SYSINIT_TARGET_WANTS += \
2179 kmod-static-nodes.service
2184 units/systemd-modules-load.service.in \
2185 units/kmod-static-nodes.service.in
2187 # ------------------------------------------------------------------------------
2189 systemd_tmpfiles_SOURCES = \
2190 src/tmpfiles/tmpfiles.c
2192 systemd_tmpfiles_LDADD = \
2193 libsystemd-units.la \
2194 libsystemd-label.la \
2195 libsystemd-internal.la \
2196 libsystemd-shared.la
2199 systemd_tmpfiles_LDADD += \
2203 rootbin_PROGRAMS += \
2206 dist_systemunit_DATA += \
2207 units/systemd-tmpfiles-clean.timer
2209 nodist_systemunit_DATA += \
2210 units/systemd-tmpfiles-setup-dev.service \
2211 units/systemd-tmpfiles-setup.service \
2212 units/systemd-tmpfiles-clean.service
2214 nodist_tmpfiles_DATA = \
2217 dist_tmpfiles_DATA = \
2218 tmpfiles.d/systemd.conf \
2219 tmpfiles.d/systemd-nologin.conf \
2220 tmpfiles.d/tmp.conf \
2221 tmpfiles.d/x11.conf \
2225 dist_tmpfiles_DATA += \
2226 tmpfiles.d/legacy.conf
2229 SYSINIT_TARGET_WANTS += \
2230 systemd-tmpfiles-setup-dev.service \
2231 systemd-tmpfiles-setup.service
2233 dist_zshcompletion_DATA += \
2234 shell-completion/zsh/_systemd-tmpfiles
2236 TIMERS_TARGET_WANTS += \
2237 systemd-tmpfiles-clean.timer
2241 $(sysconfdir)/tmpfiles.d
2245 tmpfiles.d/etc.conf.m4 \
2246 units/systemd-tmpfiles-setup-dev.service.in \
2247 units/systemd-tmpfiles-setup.service.in \
2248 units/systemd-tmpfiles-clean.service.in
2253 # ------------------------------------------------------------------------------
2255 systemd_sysusers_SOURCES = \
2256 src/sysusers/sysusers.c
2258 systemd_sysusers_LDADD = \
2259 libsystemd-units.la \
2260 libsystemd-label.la \
2261 libsystemd-internal.la \
2262 libsystemd-shared.la
2264 rootbin_PROGRAMS += \
2267 nodist_systemunit_DATA += \
2268 units/systemd-sysusers.service
2270 SYSINIT_TARGET_WANTS += \
2271 systemd-sysusers.service
2273 dist_sysusers_DATA = \
2274 sysusers.d/systemd.conf
2276 nodist_sysusers_DATA = \
2277 sysusers.d/basic.conf
2280 units/systemd-sysusers.service.in \
2281 sysusers.d/basic.conf.in
2284 sysusers.d/basic.conf
2290 # ------------------------------------------------------------------------------
2291 dist_factory_etc_DATA = \
2292 factory/etc/nsswitch.conf
2295 dist_factory_pam_DATA = \
2296 factory/etc/pam.d/system-auth \
2297 factory/etc/pam.d/other
2300 # ------------------------------------------------------------------------------
2302 systemd_firstboot_SOURCES = \
2303 src/firstboot/firstboot.c
2305 systemd_firstboot_LDADD = \
2306 libsystemd-units.la \
2307 libsystemd-label.la \
2308 libsystemd-internal.la \
2309 libsystemd-shared.la \
2312 rootbin_PROGRAMS += \
2315 nodist_systemunit_DATA += \
2316 units/systemd-firstboot.service
2319 units/systemd-firstboot.service.in
2321 SYSINIT_TARGET_WANTS += \
2322 systemd-firstboot.service
2325 # ------------------------------------------------------------------------------
2326 systemd_machine_id_setup_SOURCES = \
2327 src/machine-id-setup/machine-id-setup-main.c \
2328 src/core/machine-id-setup.c \
2329 src/core/machine-id-setup.h
2331 systemd_machine_id_setup_LDADD = \
2332 libsystemd-label.la \
2333 libsystemd-internal.la \
2334 libsystemd-shared.la
2336 # ------------------------------------------------------------------------------
2337 systemd_sysctl_SOURCES = \
2340 systemd_sysctl_LDADD = \
2341 libsystemd-shared.la
2343 # ------------------------------------------------------------------------------
2344 systemd_sleep_SOURCES = \
2347 systemd_sleep_LDADD = \
2348 libsystemd-shared.la
2350 # ------------------------------------------------------------------------------
2351 systemd_fsck_SOURCES = \
2354 systemd_fsck_LDADD = \
2355 libsystemd-internal.la \
2356 libudev-internal.la \
2357 libsystemd-shared.la
2359 # ------------------------------------------------------------------------------
2360 systemd_machine_id_commit_SOURCES = \
2361 src/machine-id-commit/machine-id-commit.c \
2362 src/core/machine-id-setup.c \
2363 src/core/machine-id-setup.h
2365 systemd_machine_id_commit_LDADD = \
2366 libsystemd-label.la \
2367 libsystemd-internal.la \
2368 libsystemd-shared.la
2370 SYSINIT_TARGET_WANTS += \
2371 systemd-machine-id-commit.service
2373 # ------------------------------------------------------------------------------
2374 systemd_ac_power_SOURCES = \
2375 src/ac-power/ac-power.c
2377 systemd_ac_power_LDADD = \
2378 libudev-internal.la \
2379 libsystemd-shared.la
2381 # ------------------------------------------------------------------------------
2382 systemd_detect_virt_SOURCES = \
2383 src/detect-virt/detect-virt.c
2385 systemd_detect_virt_LDADD = \
2386 libsystemd-shared.la
2388 INSTALL_EXEC_HOOKS += \
2389 systemd-detect-virt-install-hook
2391 # ------------------------------------------------------------------------------
2392 systemd_delta_SOURCES = \
2395 systemd_delta_LDADD = \
2396 libsystemd-shared.la
2398 # ------------------------------------------------------------------------------
2399 systemd_getty_generator_SOURCES = \
2400 src/getty-generator/getty-generator.c
2402 systemd_getty_generator_LDADD = \
2403 libsystemd-label.la \
2404 libsystemd-shared.la
2406 # ------------------------------------------------------------------------------
2407 systemd_debug_generator_SOURCES = \
2408 src/debug-generator/debug-generator.c
2410 systemd_debug_generator_LDADD = \
2411 libsystemd-label.la \
2412 libsystemd-shared.la
2414 # ------------------------------------------------------------------------------
2415 systemd_fstab_generator_SOURCES = \
2416 src/fstab-generator/fstab-generator.c \
2417 src/core/mount-setup.c
2419 systemd_fstab_generator_LDADD = \
2420 libsystemd-label.la \
2421 libsystemd-shared.la
2423 # ------------------------------------------------------------------------------
2424 systemd_system_update_generator_SOURCES = \
2425 src/system-update-generator/system-update-generator.c
2427 systemd_system_update_generator_LDADD = \
2428 libsystemd-label.la \
2429 libsystemd-shared.la
2431 # ------------------------------------------------------------------------------
2433 systemgenerator_PROGRAMS += \
2434 systemd-hibernate-resume-generator
2436 rootlibexec_PROGRAMS += \
2437 systemd-hibernate-resume
2439 systemd_hibernate_resume_SOURCES = \
2440 src/hibernate-resume/hibernate-resume.c
2442 systemd_hibernate_resume_LDADD = \
2443 libsystemd-internal.la \
2444 libsystemd-shared.la
2446 systemd_hibernate_resume_generator_SOURCES = \
2447 src/hibernate-resume/hibernate-resume-generator.c
2449 systemd_hibernate_resume_generator_LDADD = \
2450 libsystemd-label.la \
2451 libsystemd-shared.la
2454 units/systemd-hibernate.service.in \
2455 units/systemd-hibernate-resume@.service.in \
2456 units/systemd-hybrid-sleep.service.in
2458 dist_systemunit_DATA += \
2459 units/hibernate.target \
2460 units/hybrid-sleep.target
2462 nodist_systemunit_DATA += \
2463 units/systemd-hibernate.service \
2464 units/systemd-hibernate-resume@.service \
2465 units/systemd-hybrid-sleep.service
2468 # ------------------------------------------------------------------------------
2470 systemgenerator_PROGRAMS += \
2471 systemd-efi-boot-generator
2473 systemd_efi_boot_generator_SOURCES = \
2474 src/efi-boot-generator/efi-boot-generator.c
2476 systemd_efi_boot_generator_LDADD = \
2477 libsystemd-label.la \
2478 libsystemd-shared.la
2480 # ------------------------------------------------------------------------------
2484 bootctl_CPPFLAGS = \
2486 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2487 -DSD_BOOTLIBDIR=\"$(sd_bootlibdir)\"
2494 libsystemd-shared.la \
2495 libsystemd-internal.la \
2501 dist_bashcompletion_DATA += \
2502 shell-completion/bash/bootctl
2504 dist_zshcompletion_DATA += \
2505 shell-completion/zsh/_bootctl
2507 # ------------------------------------------------------------------------------
2511 -I$(top_builddir) -include config.h \
2512 -I$(EFI_INC_DIR)/efi \
2513 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2514 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2526 -fno-strict-aliasing \
2527 -fno-stack-protector \
2535 -DEFI_FUNCTION_WRAPPER \
2536 -DGNU_EFI_USE_MS_ABI
2541 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2547 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2549 # ------------------------------------------------------------------------------
2551 src/sd-boot/util.h \
2552 src/sd-boot/console.h \
2553 src/sd-boot/graphics.h \
2554 src/sd-boot/pefile.h
2557 src/sd-boot/util.c \
2558 src/sd-boot/console.c \
2559 src/sd-boot/graphics.c \
2560 src/sd-boot/pefile.c \
2561 src/sd-boot/sd-boot.c
2563 sd_boot_objects = $(addprefix $(top_builddir)/,$(sd_boot_sources:.c=.o))
2564 sd_boot_solib = $(top_builddir)/src/sd-boot/sd_boot.so
2565 sd_boot = sd-boot$(EFI_MACHINE_TYPE_NAME).efi
2567 sd_bootlib_DATA = $(sd_boot)
2568 CLEANFILES += $(sd_boot_objects) $(sd_boot_solib) $(sd_boot)
2569 EXTRA_DIST += $(sd_boot_sources) $(sd_boot_headers)
2571 $(top_builddir)/src/sd-boot/%.o: $(top_srcdir)/src/sd-boot/%.c $(addprefix $(top_srcdir)/,$(sd_boot_headers))
2572 @$(MKDIR_P) $(top_builddir)/src/sd-boot/
2573 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2575 $(sd_boot_solib): $(sd_boot_objects)
2576 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(sd_boot_objects) \
2577 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2578 nm -D -u $@ | grep ' U ' && exit 1 || :
2580 $(sd_boot): $(sd_boot_solib)
2581 $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
2582 -j .dynsym -j .rel -j .rela -j .reloc \
2583 --target=efi-app-$(EFI_ARCH) $< $@
2585 # ------------------------------------------------------------------------------
2587 src/sd-boot/util.h \
2588 src/sd-boot/pefile.h \
2592 src/sd-boot/util.c \
2593 src/sd-boot/pefile.c \
2594 src/sd-boot/linux.c \
2597 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2598 stub_solib = $(top_builddir)/src/sd-boot/stub.so
2599 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2601 sd_bootlib_DATA += $(stub)
2602 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2603 EXTRA_DIST += $(stub_sources) $(stub_headers)
2605 $(top_builddir)/src/sd-boot/%.o: $(top_srcdir)/src/sd-boot/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2606 @$(MKDIR_P) $(top_builddir)/src/sd-boot/
2607 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2609 $(stub_solib): $(stub_objects)
2610 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2611 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2612 nm -D -u $@ | grep ' U ' && exit 1 || :
2614 $(stub): $(stub_solib)
2615 $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
2616 -j .dynsym -j .rel -j .rela -j .reloc \
2617 --target=efi-app-$(EFI_ARCH) $< $@
2619 # ------------------------------------------------------------------------------
2620 CLEANFILES += test-efi-disk.img
2621 EXTRA_DIST += test/test-efi-create-disk.sh
2623 test-efi-disk.img: $(sd_boot) $(stub) test/test-efi-create-disk.sh
2624 $(AM_V_GEN)test/test-efi-create-disk.sh
2626 test-efi: test-efi-disk.img
2627 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2631 # ------------------------------------------------------------------------------
2633 systemgenerator_PROGRAMS += \
2634 systemd-gpt-auto-generator
2636 systemd_gpt_auto_generator_SOURCES = \
2637 src/gpt-auto-generator/gpt-auto-generator.c \
2638 src/shared/blkid-util.h
2640 systemd_gpt_auto_generator_LDADD = \
2641 libsystemd-label.la \
2642 libsystemd-internal.la \
2643 libudev-internal.la \
2644 libsystemd-shared.la \
2647 systemd_gpt_auto_generator_CFLAGS = \
2652 # ------------------------------------------------------------------------------
2654 systemgenerator_PROGRAMS += \
2655 systemd-dbus1-generator
2657 systemd_dbus1_generator_SOURCES = \
2658 src/dbus1-generator/dbus1-generator.c
2660 systemd_dbus1_generator_LDADD = \
2661 libsystemd-label.la \
2662 libsystemd-internal.la \
2663 libsystemd-shared.la
2665 dbus1-generator-install-hook:
2666 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2667 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2668 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2670 dbus1-generator-uninstall-hook:
2671 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2673 dist_xinitrc_SCRIPTS = \
2674 xorg/50-systemd-user.sh
2676 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2677 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2680 # ------------------------------------------------------------------------------
2681 systemd_sysv_generator_SOURCES = \
2682 src/sysv-generator/sysv-generator.c
2684 systemd_sysv_generator_LDADD = \
2685 libsystemd-core.la \
2686 libsystemd-label.la \
2687 libsystemd-shared.la
2689 # ------------------------------------------------------------------------------
2690 systemd_rc_local_generator_SOURCES = \
2691 src/rc-local-generator/rc-local-generator.c
2693 systemd_rc_local_generator_LDADD = \
2694 libsystemd-label.la \
2695 libsystemd-shared.la
2697 # ------------------------------------------------------------------------------
2698 systemd_remount_fs_SOURCES = \
2699 src/remount-fs/remount-fs.c \
2700 src/core/mount-setup.c \
2701 src/core/mount-setup.h
2703 systemd_remount_fs_LDADD = \
2704 libsystemd-label.la \
2705 libsystemd-shared.la
2707 # ------------------------------------------------------------------------------
2708 systemd_cgroups_agent_SOURCES = \
2709 src/cgroups-agent/cgroups-agent.c
2711 systemd_cgroups_agent_LDADD = \
2712 libsystemd-internal.la \
2713 libsystemd-shared.la
2715 # ------------------------------------------------------------------------------
2716 systemd_escape_SOURCES = \
2719 systemd_escape_LDADD = \
2720 libsystemd-shared.la
2722 # -----------------------------------------------------------------------------
2723 systemctl_SOURCES = \
2724 src/systemctl/systemctl.c
2727 libsystemd-units.la \
2728 libsystemd-label.la \
2729 libsystemd-internal.la \
2730 libsystemd-logs.la \
2731 libsystemd-journal-internal.la \
2732 libsystemd-shared.la
2734 # ------------------------------------------------------------------------------
2735 systemd_notify_SOURCES = \
2738 systemd_notify_LDADD = \
2739 libsystemd-internal.la \
2740 libsystemd-shared.la
2742 # ------------------------------------------------------------------------------
2743 systemd_path_SOURCES = \
2746 systemd_path_LDADD = \
2747 libsystemd-internal.la \
2748 libsystemd-shared.la
2750 # ------------------------------------------------------------------------------
2751 systemd_ask_password_SOURCES = \
2752 src/ask-password/ask-password.c
2754 systemd_ask_password_LDADD = \
2755 libsystemd-label.la \
2756 libsystemd-shared.la
2758 # ------------------------------------------------------------------------------
2759 systemd_reply_password_SOURCES = \
2760 src/reply-password/reply-password.c
2762 systemd_reply_password_LDADD = \
2763 libsystemd-shared.la
2765 # ------------------------------------------------------------------------------
2766 systemd_cgls_SOURCES = \
2769 systemd_cgls_LDADD = \
2770 libsystemd-internal.la \
2771 libsystemd-shared.la
2773 # ------------------------------------------------------------------------------
2774 systemd_cgtop_SOURCES = \
2777 systemd_cgtop_LDADD = \
2778 libsystemd-shared.la
2780 # ------------------------------------------------------------------------------
2781 systemd_nspawn_SOURCES = \
2782 src/nspawn/nspawn.c \
2783 src/core/mount-setup.c \
2784 src/core/mount-setup.h \
2785 src/core/loopback-setup.c \
2786 src/core/loopback-setup.h
2788 systemd_nspawn_CFLAGS = \
2793 systemd_nspawn_LDADD = \
2794 libsystemd-label.la \
2795 libsystemd-internal.la \
2796 libudev-internal.la \
2797 libsystemd-shared.la \
2801 systemd_nspawn_LDADD += \
2802 libsystemd-seccomp.la \
2807 systemd_nspawn_LDADD += \
2811 # ------------------------------------------------------------------------------
2812 systemd_run_SOURCES = \
2815 systemd_run_LDADD = \
2816 libsystemd-label.la \
2817 libsystemd-internal.la \
2818 libsystemd-shared.la
2820 # ------------------------------------------------------------------------------
2821 noinst_LTLIBRARIES += \
2824 libsystemd_proxy_la_SOURCES = \
2825 src/bus-proxyd/bus-xml-policy.c \
2826 src/bus-proxyd/bus-xml-policy.h \
2827 src/bus-proxyd/driver.c \
2828 src/bus-proxyd/driver.h \
2829 src/bus-proxyd/proxy.c \
2830 src/bus-proxyd/proxy.h \
2831 src/bus-proxyd/synthesize.c \
2832 src/bus-proxyd/synthesize.h
2834 libsystemd_proxy_la_CFLAGS = \
2838 libsystemd_proxy_la_LIBADD = \
2839 libsystemd-internal.la \
2840 libsystemd-shared.la
2842 systemd_bus_proxyd_SOURCES = \
2843 src/bus-proxyd/bus-proxyd.c
2845 systemd_bus_proxyd_CFLAGS = \
2849 systemd_bus_proxyd_LDADD = \
2850 libsystemd-proxy.la \
2851 libsystemd-internal.la \
2852 libsystemd-shared.la
2854 systemd_stdio_bridge_SOURCES = \
2855 src/bus-proxyd/stdio-bridge.c
2857 systemd_stdio_bridge_LDADD = \
2858 libsystemd-proxy.la \
2859 libsystemd-internal.la \
2860 libsystemd-shared.la
2863 nodist_systemunit_DATA += \
2864 units/systemd-bus-proxyd.service
2866 dist_systemunit_DATA += \
2867 units/systemd-bus-proxyd.socket
2869 nodist_userunit_DATA += \
2870 units/user/systemd-bus-proxyd.service
2872 dist_userunit_DATA += \
2873 units/user/systemd-bus-proxyd.socket
2877 units/systemd-bus-proxyd.service.m4.in \
2878 units/user/systemd-bus-proxyd.service.in
2881 units/systemd-bus-proxyd.service.m4
2884 bus-proxyd-set-cap-hook:
2885 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2887 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2890 # ------------------------------------------------------------------------------
2891 systemd_tty_ask_password_agent_SOURCES = \
2892 src/tty-ask-password-agent/tty-ask-password-agent.c
2894 systemd_tty_ask_password_agent_LDADD = \
2895 libsystemd-label.la \
2896 libsystemd-shared.la
2898 # ------------------------------------------------------------------------------
2899 libsystemd_internal_la_SOURCES = \
2900 src/systemd/sd-bus.h \
2901 src/systemd/sd-bus-protocol.h \
2902 src/systemd/sd-bus-vtable.h \
2903 src/systemd/sd-utf8.h \
2904 src/systemd/sd-event.h \
2905 src/systemd/sd-rtnl.h \
2906 src/systemd/sd-resolve.h \
2907 src/systemd/sd-login.h \
2908 src/systemd/sd-id128.h \
2909 src/systemd/sd-daemon.h \
2910 src/systemd/sd-path.h \
2911 src/systemd/sd-network.h \
2912 src/systemd/sd-hwdb.h \
2913 src/libsystemd/sd-bus/sd-bus.c \
2914 src/libsystemd/sd-bus/bus-control.c \
2915 src/libsystemd/sd-bus/bus-control.h \
2916 src/libsystemd/sd-bus/bus-error.c \
2917 src/libsystemd/sd-bus/bus-error.h \
2918 src/libsystemd/sd-bus/bus-common-errors.h \
2919 src/libsystemd/sd-bus/bus-common-errors.c \
2920 src/libsystemd/sd-bus/bus-internal.c \
2921 src/libsystemd/sd-bus/bus-internal.h \
2922 src/libsystemd/sd-bus/bus-socket.c \
2923 src/libsystemd/sd-bus/bus-socket.h \
2924 src/libsystemd/sd-bus/bus-kernel.c \
2925 src/libsystemd/sd-bus/bus-kernel.h \
2926 src/libsystemd/sd-bus/bus-container.c \
2927 src/libsystemd/sd-bus/bus-container.h \
2928 src/libsystemd/sd-bus/bus-message.c \
2929 src/libsystemd/sd-bus/bus-message.h \
2930 src/libsystemd/sd-bus/bus-creds.c \
2931 src/libsystemd/sd-bus/bus-creds.h \
2932 src/libsystemd/sd-bus/bus-signature.c \
2933 src/libsystemd/sd-bus/bus-signature.h \
2934 src/libsystemd/sd-bus/bus-type.c \
2935 src/libsystemd/sd-bus/bus-type.h \
2936 src/libsystemd/sd-bus/bus-match.c \
2937 src/libsystemd/sd-bus/bus-match.h \
2938 src/libsystemd/sd-bus/bus-bloom.c \
2939 src/libsystemd/sd-bus/bus-bloom.h \
2940 src/libsystemd/sd-bus/bus-introspect.c \
2941 src/libsystemd/sd-bus/bus-introspect.h \
2942 src/libsystemd/sd-bus/bus-objects.c \
2943 src/libsystemd/sd-bus/bus-objects.h \
2944 src/libsystemd/sd-bus/bus-gvariant.c \
2945 src/libsystemd/sd-bus/bus-gvariant.h \
2946 src/libsystemd/sd-bus/bus-convenience.c \
2947 src/libsystemd/sd-bus/bus-track.c \
2948 src/libsystemd/sd-bus/bus-track.h \
2949 src/libsystemd/sd-bus/bus-util.c \
2950 src/libsystemd/sd-bus/bus-util.h \
2951 src/libsystemd/sd-bus/bus-slot.c \
2952 src/libsystemd/sd-bus/bus-slot.h \
2953 src/libsystemd/sd-bus/bus-protocol.h \
2954 src/libsystemd/sd-bus/kdbus.h \
2955 src/libsystemd/sd-utf8/sd-utf8.c \
2956 src/libsystemd/sd-event/sd-event.c \
2957 src/libsystemd/sd-event/event-util.h \
2958 src/libsystemd/sd-rtnl/sd-rtnl.c \
2959 src/libsystemd/sd-rtnl/rtnl-internal.h \
2960 src/libsystemd/sd-rtnl/rtnl-message.c \
2961 src/libsystemd/sd-rtnl/rtnl-types.h \
2962 src/libsystemd/sd-rtnl/rtnl-types.c \
2963 src/libsystemd/sd-rtnl/rtnl-util.h \
2964 src/libsystemd/sd-rtnl/rtnl-util.c \
2965 src/libsystemd/sd-rtnl/local-addresses.h \
2966 src/libsystemd/sd-rtnl/local-addresses.c \
2967 src/libsystemd/sd-id128/sd-id128.c \
2968 src/libsystemd/sd-daemon/sd-daemon.c \
2969 src/libsystemd/sd-login/sd-login.c \
2970 src/libsystemd/sd-path/sd-path.c \
2971 src/libsystemd/sd-network/sd-network.c \
2972 src/libsystemd/sd-network/network-util.h \
2973 src/libsystemd/sd-network/network-util.c \
2974 src/libsystemd/sd-hwdb/sd-hwdb.c \
2975 src/libsystemd/sd-hwdb/hwdb-util.h \
2976 src/libsystemd/sd-hwdb/hwdb-internal.h
2978 nodist_libsystemd_internal_la_SOURCES = \
2979 src/libsystemd/libsystemd.sym
2981 libsystemd_internal_la_CFLAGS = \
2985 libsystemd_internal_la_LIBADD = \
2988 libsystemd_resolve_la_SOURCES = \
2989 src/libsystemd/sd-resolve/sd-resolve.c \
2990 src/libsystemd/sd-resolve/resolve-util.h
2992 libsystemd_resolve_la_CFLAGS = \
2996 libsystemd_resolve_la_LIBADD = \
2999 noinst_LTLIBRARIES += \
3000 libsystemd-internal.la \
3001 libsystemd-resolve.la
3003 libsystemd_dump_la_SOURCES = \
3004 src/libsystemd/sd-bus/bus-dump.c \
3005 src/libsystemd/sd-bus/bus-dump.h
3007 noinst_LTLIBRARIES += \
3011 src/libsystemd/libsystemd.sym.m4 \
3012 src/libsystemd/libsystemd.pc.in \
3013 src/libsystemd/sd-bus/DIFFERENCES \
3014 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3017 src/libsystemd/libsystemd.sym
3020 src/libsystemd/libsystemd.sym
3022 libsystemd_la_SOURCES = \
3023 $(libsystemd_internal_la_SOURCES) \
3024 $(libsystemd_resolve_la_SOURCES) \
3025 $(libsystemd_journal_internal_la_SOURCES)
3027 nodist_libsystemd_la_SOURCES = \
3028 $(nodist_libsystemd_internal_la_SOURCES)
3030 libsystemd_la_CFLAGS = \
3031 $(libsystemd_internal_la_CFLAGS) \
3032 $(libsystemd_resolve_la_CFLAGS) \
3033 $(libsystemd_journal_internal_la_CFLAGS)
3035 libsystemd_la_LDFLAGS = \
3037 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3038 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
3040 libsystemd_la_LIBADD = \
3041 libsystemd-shared.la \
3042 $(libsystemd_internal_la_LIBADD) \
3043 $(libsystemd_journal_internal_la_LIBADD) \
3044 $(libsystemd_resolve_la_LIBADD)
3046 libsystemd-install-hook:
3047 libname=libsystemd.so && $(move-to-rootlibdir)
3049 libsystemd-uninstall-hook:
3050 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3052 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3053 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3055 pkgconfiglib_DATA += \
3056 src/libsystemd/libsystemd.pc
3058 pkginclude_HEADERS += \
3059 src/systemd/sd-login.h \
3060 src/systemd/sd-id128.h \
3061 src/systemd/sd-daemon.h
3064 pkginclude_HEADERS += \
3065 src/systemd/sd-bus.h \
3066 src/systemd/sd-bus-protocol.h \
3067 src/systemd/sd-bus-vtable.h \
3068 src/systemd/sd-utf8.h \
3069 src/systemd/sd-event.h \
3070 src/systemd/sd-rtnl.h \
3071 src/systemd/sd-resolve.h \
3072 src/systemd/sd-path.h
3075 lib_LTLIBRARIES += \
3080 test-bus-signature \
3086 test-bus-kernel-bloom \
3087 test-bus-kernel-benchmark \
3088 test-bus-zero-copy \
3089 test-bus-introspect \
3096 test-local-addresses \
3102 test_bus_marshal_SOURCES = \
3103 src/libsystemd/sd-bus/test-bus-marshal.c
3105 test_bus_marshal_LDADD = \
3106 libsystemd-dump.la \
3107 libsystemd-internal.la \
3108 libsystemd-shared.la \
3112 test_bus_marshal_CFLAGS = \
3117 test_bus_signature_SOURCES = \
3118 src/libsystemd/sd-bus/test-bus-signature.c
3120 test_bus_signature_LDADD = \
3121 libsystemd-internal.la \
3122 libsystemd-shared.la
3124 test_bus_chat_SOURCES = \
3125 src/libsystemd/sd-bus/test-bus-chat.c
3127 test_bus_chat_CFLAGS = \
3131 test_bus_chat_LDADD = \
3132 libsystemd-internal.la \
3133 libsystemd-shared.la
3135 test_bus_cleanup_SOURCES = \
3136 src/libsystemd/sd-bus/test-bus-cleanup.c
3138 test_bus_cleanup_CFLAGS = \
3142 test_bus_cleanup_LDADD = \
3143 libsystemd-internal.la \
3144 libsystemd-shared.la
3146 test_bus_server_SOURCES = \
3147 src/libsystemd/sd-bus/test-bus-server.c
3149 test_bus_server_CFLAGS = \
3153 test_bus_server_LDADD = \
3154 libsystemd-internal.la \
3155 libsystemd-shared.la
3157 test_bus_objects_SOURCES = \
3158 src/libsystemd/sd-bus/test-bus-objects.c
3160 test_bus_objects_CFLAGS = \
3164 test_bus_objects_LDADD = \
3165 libsystemd-dump.la \
3166 libsystemd-internal.la \
3167 libsystemd-shared.la
3169 test_bus_error_SOURCES = \
3170 src/libsystemd/sd-bus/test-bus-error.c
3172 test_bus_error_LDADD = \
3173 libsystemd-internal.la \
3174 libsystemd-shared.la
3176 test_bus_gvariant_SOURCES = \
3177 src/libsystemd/sd-bus/test-bus-gvariant.c
3179 test_bus_gvariant_LDADD = \
3180 libsystemd-dump.la \
3181 libsystemd-internal.la \
3182 libsystemd-shared.la \
3185 test_bus_gvariant_CFLAGS = \
3189 test_bus_creds_SOURCES = \
3190 src/libsystemd/sd-bus/test-bus-creds.c
3192 test_bus_creds_LDADD = \
3193 libsystemd-dump.la \
3194 libsystemd-internal.la \
3195 libsystemd-shared.la
3197 test_bus_match_SOURCES = \
3198 src/libsystemd/sd-bus/test-bus-match.c
3200 test_bus_match_LDADD = \
3201 libsystemd-internal.la \
3202 libsystemd-shared.la
3204 test_bus_kernel_SOURCES = \
3205 src/libsystemd/sd-bus/test-bus-kernel.c
3207 test_bus_kernel_LDADD = \
3208 libsystemd-dump.la \
3209 libsystemd-internal.la \
3210 libsystemd-shared.la
3212 test_bus_kernel_bloom_SOURCES = \
3213 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3215 test_bus_kernel_bloom_LDADD = \
3216 libsystemd-internal.la \
3217 libsystemd-shared.la
3219 test_bus_kernel_benchmark_SOURCES = \
3220 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3222 test_bus_kernel_benchmark_LDADD = \
3223 libsystemd-internal.la \
3224 libsystemd-shared.la
3226 test_bus_zero_copy_SOURCES = \
3227 src/libsystemd/sd-bus/test-bus-zero-copy.c
3229 test_bus_zero_copy_LDADD = \
3230 libsystemd-dump.la \
3231 libsystemd-internal.la \
3232 libsystemd-shared.la
3234 test_bus_introspect_SOURCES = \
3235 src/libsystemd/sd-bus/test-bus-introspect.c
3237 test_bus_introspect_LDADD = \
3238 libsystemd-internal.la \
3239 libsystemd-shared.la
3241 test_event_SOURCES = \
3242 src/libsystemd/sd-event/test-event.c
3244 test_event_LDADD = \
3245 libsystemd-internal.la \
3246 libsystemd-shared.la
3248 test_rtnl_SOURCES = \
3249 src/libsystemd/sd-rtnl/test-rtnl.c
3252 libsystemd-internal.la \
3253 libsystemd-shared.la
3255 test_local_addresses_SOURCES = \
3256 src/libsystemd/sd-rtnl/test-local-addresses.c
3258 test_local_addresses_LDADD = \
3259 libsystemd-internal.la \
3260 libsystemd-shared.la
3262 test_resolve_SOURCES = \
3263 src/libsystemd/sd-resolve/test-resolve.c
3265 test_resolve_LDADD = \
3266 libsystemd-resolve.la \
3267 libsystemd-internal.la \
3268 libsystemd-shared.la
3270 test_resolve_CFLAGS = \
3275 src/libsystemd/sd-bus/busctl.c \
3276 src/libsystemd/sd-bus/busctl-introspect.c \
3277 src/libsystemd/sd-bus/busctl-introspect.h
3280 libsystemd-dump.la \
3281 libsystemd-internal.la \
3282 libsystemd-shared.la
3284 # ------------------------------------------------------------------------------
3285 noinst_LTLIBRARIES += \
3286 libsystemd-network.la
3288 libsystemd_network_la_CFLAGS = \
3292 libsystemd_network_la_SOURCES = \
3293 src/systemd/sd-dhcp-client.h \
3294 src/systemd/sd-dhcp-server.h \
3295 src/systemd/sd-dhcp-lease.h \
3296 src/systemd/sd-ipv4ll.h \
3297 src/systemd/sd-icmp6-nd.h \
3298 src/systemd/sd-dhcp6-client.h \
3299 src/systemd/sd-dhcp6-lease.h \
3300 src/systemd/sd-pppoe.h \
3301 src/systemd/sd-lldp.h \
3302 src/libsystemd-network/sd-dhcp-client.c \
3303 src/libsystemd-network/sd-dhcp-server.c \
3304 src/libsystemd-network/dhcp-network.c \
3305 src/libsystemd-network/dhcp-option.c \
3306 src/libsystemd-network/dhcp-packet.c \
3307 src/libsystemd-network/dhcp-internal.h \
3308 src/libsystemd-network/dhcp-server-internal.h \
3309 src/libsystemd-network/dhcp-protocol.h \
3310 src/libsystemd-network/dhcp-lease-internal.h \
3311 src/libsystemd-network/sd-dhcp-lease.c \
3312 src/libsystemd-network/sd-ipv4ll.c \
3313 src/libsystemd-network/ipv4ll-network.c \
3314 src/libsystemd-network/ipv4ll-packet.c \
3315 src/libsystemd-network/ipv4ll-internal.h \
3316 src/libsystemd-network/sd-pppoe.c \
3317 src/libsystemd-network/network-internal.c \
3318 src/libsystemd-network/network-internal.h \
3319 src/libsystemd-network/sd-icmp6-nd.c \
3320 src/libsystemd-network/sd-dhcp6-client.c \
3321 src/libsystemd-network/dhcp6-internal.h \
3322 src/libsystemd-network/dhcp6-protocol.h \
3323 src/libsystemd-network/dhcp6-network.c \
3324 src/libsystemd-network/dhcp6-option.c \
3325 src/libsystemd-network/dhcp6-lease-internal.h \
3326 src/libsystemd-network/sd-dhcp6-lease.c \
3327 src/libsystemd-network/dhcp-identifier.h \
3328 src/libsystemd-network/dhcp-identifier.c \
3329 src/libsystemd-network/lldp.h \
3330 src/libsystemd-network/lldp-tlv.h \
3331 src/libsystemd-network/lldp-tlv.c \
3332 src/libsystemd-network/lldp-network.h \
3333 src/libsystemd-network/lldp-network.c \
3334 src/libsystemd-network/lldp-port.h \
3335 src/libsystemd-network/lldp-port.c \
3336 src/libsystemd-network/lldp-internal.h \
3337 src/libsystemd-network/lldp-internal.c \
3338 src/libsystemd-network/lldp-util.h \
3339 src/libsystemd-network/sd-lldp.c
3341 libsystemd_network_la_LIBADD = \
3342 libudev-internal.la \
3343 libsystemd-label.la \
3344 libsystemd-internal.la \
3345 libsystemd-shared.la \
3348 test_dhcp_option_SOURCES = \
3349 src/libsystemd-network/dhcp-protocol.h \
3350 src/libsystemd-network/dhcp-internal.h \
3351 src/libsystemd-network/test-dhcp-option.c
3353 test_dhcp_option_LDADD = \
3354 libsystemd-network.la \
3355 libsystemd-internal.la \
3356 libsystemd-shared.la
3358 test_dhcp_client_SOURCES = \
3359 src/systemd/sd-dhcp-client.h \
3360 src/libsystemd-network/dhcp-protocol.h \
3361 src/libsystemd-network/dhcp-internal.h \
3362 src/libsystemd-network/test-dhcp-client.c
3364 test_dhcp_client_LDADD = \
3365 libsystemd-network.la \
3366 libsystemd-label.la \
3367 libsystemd-internal.la \
3368 libsystemd-shared.la
3370 test_dhcp_server_SOURCES = \
3371 src/libsystemd-network/test-dhcp-server.c
3373 test_dhcp_server_LDADD = \
3374 libsystemd-network.la \
3375 libsystemd-internal.la \
3376 libsystemd-shared.la
3378 test_ipv4ll_SOURCES = \
3379 src/systemd/sd-ipv4ll.h \
3380 src/libsystemd-network/ipv4ll-internal.h \
3381 src/libsystemd-network/test-ipv4ll.c
3383 test_ipv4ll_LDADD = \
3384 libsystemd-network.la \
3385 libsystemd-label.la \
3386 libsystemd-internal.la \
3387 libsystemd-shared.la
3389 test_pppoe_SOURCES = \
3390 src/systemd/sd-pppoe.h \
3391 src/libsystemd-network/test-pppoe.c
3393 test_pppoe_LDADD = \
3394 libsystemd-network.la \
3395 libsystemd-shared.la
3397 test_icmp6_rs_SOURCES = \
3398 src/systemd/sd-dhcp6-client.h \
3399 src/systemd/sd-icmp6-nd.h \
3400 src/libsystemd-network/dhcp6-internal.h \
3401 src/libsystemd-network/test-icmp6-rs.c \
3402 src/libsystemd-network/dhcp-identifier.h \
3403 src/libsystemd-network/dhcp-identifier.c
3405 test_icmp6_rs_LDADD = \
3406 libsystemd-network.la \
3407 libsystemd-internal.la \
3408 libsystemd-shared.la
3410 test_dhcp6_client_SOURCES = \
3411 src/systemd/sd-dhcp6-client.h \
3412 src/libsystemd-network/dhcp6-internal.h \
3413 src/libsystemd-network/test-dhcp6-client.c \
3414 src/libsystemd-network/dhcp-identifier.h \
3415 src/libsystemd-network/dhcp-identifier.c
3417 test_dhcp6_client_LDADD = \
3418 libsystemd-network.la \
3419 libsystemd-internal.la \
3420 libsystemd-shared.la
3422 test_lldp_SOURCES = \
3423 src/libsystemd-network/lldp.h \
3424 src/libsystemd-network/lldp-tlv.h \
3425 src/libsystemd-network/lldp-tlv.c \
3426 src/libsystemd-network/test-lldp.c
3429 libsystemd-network.la \
3430 libsystemd-internal.la \
3431 libsystemd-shared.la
3445 # ------------------------------------------------------------------------------
3447 noinst_LTLIBRARIES += \
3448 libsystemd-terminal.la
3450 rootlibexec_PROGRAMS += \
3453 noinst_PROGRAMS += \
3458 dist_pkgdata_DATA += \
3459 src/libsystemd-terminal/unifont-glyph-array.bin
3461 nodist_userunit_DATA += \
3462 units/user/systemd-consoled.service
3464 USER_DEFAULT_TARGET_WANTS += \
3465 systemd-consoled.service
3474 units/user/systemd-consoled.service.in
3476 libsystemd_terminal_la_CFLAGS = \
3480 libsystemd_terminal_la_SOURCES = \
3481 src/libsystemd-terminal/grdev.h \
3482 src/libsystemd-terminal/grdev-internal.h \
3483 src/libsystemd-terminal/grdev.c \
3484 src/libsystemd-terminal/grdev-drm.c \
3485 src/libsystemd-terminal/idev.h \
3486 src/libsystemd-terminal/idev-internal.h \
3487 src/libsystemd-terminal/idev.c \
3488 src/libsystemd-terminal/idev-evdev.c \
3489 src/libsystemd-terminal/idev-keyboard.c \
3490 src/libsystemd-terminal/sysview.h \
3491 src/libsystemd-terminal/sysview-internal.h \
3492 src/libsystemd-terminal/sysview.c \
3493 src/libsystemd-terminal/term.h \
3494 src/libsystemd-terminal/term-internal.h \
3495 src/libsystemd-terminal/term-charset.c \
3496 src/libsystemd-terminal/term-page.c \
3497 src/libsystemd-terminal/term-parser.c \
3498 src/libsystemd-terminal/term-screen.c \
3499 src/libsystemd-terminal/term-wcwidth.c \
3500 src/libsystemd-terminal/unifont.h \
3501 src/libsystemd-terminal/unifont-def.h \
3502 src/libsystemd-terminal/unifont.c
3504 libsystemd_terminal_la_LIBADD = \
3505 libudev-internal.la \
3506 libsystemd-internal.la \
3507 libsystemd-shared.la \
3510 systemd_consoled_CFLAGS = \
3514 systemd_consoled_SOURCES = \
3515 src/console/consoled.h \
3516 src/console/consoled.c \
3517 src/console/consoled-display.c \
3518 src/console/consoled-manager.c \
3519 src/console/consoled-session.c \
3520 src/console/consoled-terminal.c \
3521 src/console/consoled-workspace.c
3523 systemd_consoled_LDADD = \
3524 libsystemd-terminal.la \
3525 libsystemd-internal.la \
3526 libsystemd-shared.la \
3529 systemd_evcat_CFLAGS = \
3533 systemd_evcat_SOURCES = \
3534 src/libsystemd-terminal/evcat.c
3536 systemd_evcat_LDADD = \
3537 libsystemd-terminal.la \
3538 libsystemd-internal.la \
3539 libsystemd-shared.la \
3542 systemd_modeset_CFLAGS = \
3546 systemd_modeset_SOURCES = \
3547 src/libsystemd-terminal/modeset.c
3549 systemd_modeset_LDADD = \
3550 libsystemd-terminal.la \
3551 libsystemd-internal.la \
3552 libsystemd-shared.la \
3555 systemd_subterm_SOURCES = \
3556 src/libsystemd-terminal/subterm.c
3558 systemd_subterm_LDADD = \
3559 libsystemd-terminal.la \
3560 libsystemd-internal.la \
3561 libsystemd-shared.la
3563 test_term_page_SOURCES = \
3564 src/libsystemd-terminal/test-term-page.c
3566 test_term_page_LDADD = \
3567 libsystemd-terminal.la \
3568 libsystemd-internal.la \
3569 libsystemd-shared.la
3571 test_term_parser_SOURCES = \
3572 src/libsystemd-terminal/test-term-parser.c
3574 test_term_parser_LDADD = \
3575 libsystemd-terminal.la \
3576 libsystemd-internal.la \
3577 libsystemd-shared.la
3579 test_unifont_SOURCES = \
3580 src/libsystemd-terminal/test-unifont.c
3582 test_unifont_LDADD = \
3583 libsystemd-terminal.la \
3584 libsystemd-internal.la \
3585 libsystemd-shared.la
3587 src/libsystemd-terminal/unifont-glyph-array.bin: tools/compile-unifont.py $(UNIFONT)
3588 $(AM_V_GEN)$(PYTHON) $< <$(UNIFONT) >$@
3590 # ------------------------------------------------------------------------------
3600 include_HEADERS += \
3601 src/libudev/libudev.h
3603 lib_LTLIBRARIES += \
3606 libudev_la_SOURCES =\
3607 src/libudev/libudev.sym \
3608 src/libudev/libudev-private.h \
3609 src/libudev/libudev.c \
3610 src/libudev/libudev-list.c \
3611 src/libudev/libudev-util.c \
3612 src/libudev/libudev-device.c \
3613 src/libudev/libudev-enumerate.c \
3614 src/libudev/libudev-monitor.c \
3615 src/libudev/libudev-queue.c \
3616 src/libudev/libudev-hwdb.c
3618 libudev_la_CFLAGS = \
3622 libudev_la_LDFLAGS = \
3624 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3625 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3627 libudev_la_LIBADD = \
3628 libsystemd-internal.la \
3629 libsystemd-shared.la
3631 pkgconfiglib_DATA += \
3632 src/libudev/libudev.pc
3635 src/libudev/libudev.pc.in
3638 src/libudev/libudev.pc \
3643 $(AM_V_at)$(MKDIR_P) $(dir $@)
3644 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3647 $(AM_V_at)$(MKDIR_P) $(dir $@)
3648 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3650 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3651 libudev-install-hook:
3652 libname=libudev.so && $(move-to-rootlibdir)
3654 libudev-uninstall-hook:
3655 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3657 INSTALL_EXEC_HOOKS += libudev-install-hook
3658 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3660 # ------------------------------------------------------------------------------
3661 noinst_LTLIBRARIES += \
3664 libudev_internal_la_SOURCES =\
3665 $(libudev_la_SOURCES) \
3666 src/libudev/libudev-device-private.c
3668 libudev_internal_la_CFLAGS = \
3670 -fvisibility=default
3672 # ------------------------------------------------------------------------------
3674 $(sysconfdir)/udev/rules.d
3676 dist_network_DATA = \
3677 network/99-default.link \
3678 network/80-container-host0.network \
3679 network/80-container-ve.network
3681 dist_udevrules_DATA += \
3682 rules/42-usb-hid-pm.rules \
3683 rules/50-udev-default.rules \
3684 rules/60-drm.rules \
3685 rules/60-keyboard.rules \
3686 rules/60-persistent-storage-tape.rules \
3687 rules/60-persistent-serial.rules \
3688 rules/60-persistent-input.rules \
3689 rules/60-persistent-alsa.rules \
3690 rules/60-persistent-storage.rules \
3691 rules/64-btrfs.rules \
3692 rules/70-mouse.rules \
3693 rules/70-touchpad.rules \
3694 rules/75-net-description.rules \
3695 rules/75-tty-description.rules \
3696 rules/78-sound-card.rules \
3697 rules/80-net-setup-link.rules \
3698 rules/95-udev-late.rules
3700 nodist_udevrules_DATA += \
3701 rules/99-systemd.rules
3703 udevconfdir = $(sysconfdir)/udev
3704 dist_udevconf_DATA = \
3707 sharepkgconfigdir = $(datadir)/pkgconfig
3708 sharepkgconfig_DATA = \
3712 rules/99-systemd.rules.in \
3716 rules/99-systemd.rules \
3720 units/systemd-udevd.service.in \
3721 units/systemd-udev-trigger.service.in \
3722 units/systemd-udev-settle.service.in
3725 units/systemd-udevd.service \
3726 units/systemd-udev-trigger.service \
3727 units/systemd-udev-settle.service
3729 SOCKETS_TARGET_WANTS += \
3730 systemd-udevd-control.socket \
3731 systemd-udevd-kernel.socket
3733 SYSINIT_TARGET_WANTS += \
3734 systemd-udevd.service \
3735 systemd-udev-trigger.service
3737 rootbin_PROGRAMS += \
3740 rootlibexec_PROGRAMS += \
3743 noinst_LTLIBRARIES += \
3746 src/udev/keyboard-keys.txt:
3747 $(AM_V_at)$(MKDIR_P) $(dir $@)
3748 $(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/' > $@
3750 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3751 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3753 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3754 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3756 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3757 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3759 libudev_core_la_SOURCES = \
3761 src/udev/udev-event.c \
3762 src/udev/udev-watch.c \
3763 src/udev/udev-node.c \
3764 src/udev/udev-rules.c \
3765 src/udev/udev-ctrl.c \
3766 src/udev/udev-builtin.c \
3767 src/udev/udev-builtin-btrfs.c \
3768 src/udev/udev-builtin-hwdb.c \
3769 src/udev/udev-builtin-input_id.c \
3770 src/udev/udev-builtin-keyboard.c \
3771 src/udev/udev-builtin-net_id.c \
3772 src/udev/udev-builtin-net_setup_link.c \
3773 src/udev/udev-builtin-path_id.c \
3774 src/udev/udev-builtin-usb_id.c \
3775 src/udev/net/link-config.h \
3776 src/udev/net/link-config.c \
3777 src/udev/net/ethtool-util.h \
3778 src/udev/net/ethtool-util.c
3780 nodist_libudev_core_la_SOURCES = \
3781 src/udev/keyboard-keys-from-name.h \
3782 src/udev/keyboard-keys-to-name.h \
3783 src/udev/net/link-config-gperf.c
3786 $(nodist_libudev_core_la_SOURCES)
3789 src/udev/keyboard-keys-from-name.gperf \
3790 src/udev/keyboard-keys.txt \
3791 src/udev/net/link-config-gperf.c
3794 src/udev/net/link-config-gperf.gperf
3796 libudev_core_la_CFLAGS = \
3801 libudev_core_la_LIBADD = \
3802 libudev-internal.la \
3803 libsystemd-label.la \
3804 libsystemd-internal.la \
3805 libsystemd-network.la \
3806 libsystemd-shared.la \
3811 libudev_core_la_SOURCES += \
3812 src/udev/udev-builtin-kmod.c
3814 dist_udevrules_DATA += \
3815 rules/80-drivers.rules
3819 libudev_core_la_SOURCES += \
3820 src/udev/udev-builtin-blkid.c
3824 libudev_core_la_SOURCES += \