1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfiglibdir=$(libdir)/pkgconfig
78 polkitpolicydir=$(datadir)/polkit-1/actions
79 bashcompletiondir=@bashcompletiondir@
80 zshcompletiondir=@zshcompletiondir@
81 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
82 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
83 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
84 varlogdir=$(localstatedir)/log
85 systemdstatedir=$(localstatedir)/lib/systemd
86 catalogstatedir=$(systemdstatedir)/catalog
87 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
114 bootlibdir = $(prefix)/lib/systemd/boot/efi
116 # And these are the special ones for /
117 rootprefix=@rootprefix@
118 rootbindir=$(rootprefix)/bin
119 rootlibexecdir=$(rootprefix)/lib/systemd
121 CLEANFILES = $(BUILT_SOURCES)
126 UNINSTALL_EXEC_HOOKS =
128 UNINSTALL_DATA_HOOKS =
129 DISTCLEAN_LOCAL_HOOKS =
137 polkitpolicy_in_in_files =
138 polkitpolicy_in_files =
140 dist_udevrules_DATA =
141 nodist_udevrules_DATA =
142 dist_pkgsysconf_DATA =
143 nodist_pkgsysconf_DATA =
145 dist_dbuspolicy_DATA =
146 dist_dbussystemservice_DATA =
147 dist_systemunit_DATA_busnames =
153 TEST_EXTENSIONS = .py
154 PY_LOG_COMPILER = $(PYTHON)
156 noinst_PROGRAMS = $(manual_tests) $(tests)
162 udevlibexec_PROGRAMS =
164 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
165 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
166 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
169 -include $(top_builddir)/config.h \
170 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
171 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
172 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
173 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
174 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
175 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
176 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
177 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
178 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
179 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
180 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
181 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
182 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
183 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
184 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
185 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
186 -DROOTPREFIX=\"$(rootprefix)\" \
187 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
188 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
189 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
190 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
191 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
192 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
193 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
194 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
195 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
196 -DX_SERVER=\"$(bindir)/X\" \
197 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
198 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
199 -DQUOTACHECK=\"$(QUOTACHECK)\" \
200 -DKEXEC=\"$(KEXEC)\" \
201 -DLIBDIR=\"$(libdir)\" \
202 -DROOTLIBDIR=\"$(rootlibdir)\" \
203 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
204 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
205 -I $(top_srcdir)/src \
206 -I $(top_builddir)/src/shared \
207 -I $(top_srcdir)/src/shared \
208 -I $(top_srcdir)/src/network \
209 -I $(top_srcdir)/src/login \
210 -I $(top_srcdir)/src/journal \
211 -I $(top_srcdir)/src/timedate \
212 -I $(top_srcdir)/src/timesync \
213 -I $(top_srcdir)/src/resolve \
214 -I $(top_builddir)/src/resolve \
215 -I $(top_srcdir)/src/systemd \
216 -I $(top_builddir)/src/core \
217 -I $(top_srcdir)/src/core \
218 -I $(top_srcdir)/src/libudev \
219 -I $(top_srcdir)/src/udev \
220 -I $(top_srcdir)/src/udev/net \
221 -I $(top_builddir)/src/udev \
222 -I $(top_srcdir)/src/libsystemd/sd-bus \
223 -I $(top_srcdir)/src/libsystemd/sd-event \
224 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
225 -I $(top_srcdir)/src/libsystemd/sd-network \
226 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
227 -I $(top_srcdir)/src/libsystemd-network \
228 -I $(top_srcdir)/src/libsystemd-terminal \
231 AM_CFLAGS = $(OUR_CFLAGS)
232 AM_LDFLAGS = $(OUR_LDFLAGS)
234 # ------------------------------------------------------------------------------
235 define move-to-rootlibdir
236 if test "$(libdir)" != "$(rootlibdir)"; then \
237 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
238 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
239 rm -f $(DESTDIR)$(libdir)/$$libname && \
240 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
241 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
247 SHUTDOWN_TARGET_WANTS =
248 LOCAL_FS_TARGET_WANTS =
249 MULTI_USER_TARGET_WANTS =
250 GRAPHICAL_TARGET_WANTS =
251 RESCUE_TARGET_WANTS =
252 SYSINIT_TARGET_WANTS =
253 SOCKETS_TARGET_WANTS =
254 BUSNAMES_TARGET_WANTS =
255 TIMERS_TARGET_WANTS =
256 USER_SOCKETS_TARGET_WANTS =
257 USER_DEFAULT_TARGET_WANTS =
258 USER_BUSNAMES_TARGET_WANTS =
260 SYSTEM_UNIT_ALIASES =
264 install-target-wants-hook:
265 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
274 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
275 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
277 install-busnames-target-wants-hook:
278 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
282 [ -z "$$what" ] || ( \
283 dir=$(DESTDIR)$$dir/$$wants.wants && \
284 $(MKDIR_P) -m 0755 $$dir && \
287 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
290 install-directories-hook:
291 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
293 install-aliases-hook:
294 set -- $(SYSTEM_UNIT_ALIASES) && \
295 dir=$(systemunitdir) && $(install-aliases)
296 set -- $(USER_UNIT_ALIASES) && \
297 dir=$(userunitdir) && $(install-relative-aliases)
298 set -- $(GENERAL_ALIASES) && \
299 dir= && $(install-relative-aliases)
301 define install-aliases
302 while [ -n "$$1" ]; do \
303 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
304 rm -f $(DESTDIR)$$dir/$$2 && \
305 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
306 shift 2 || exit $$?; \
310 define install-relative-aliases
311 while [ -n "$$1" ]; do \
312 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
313 rm -f $(DESTDIR)$$dir/$$2 && \
314 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
315 shift 2 || exit $$?; \
319 install-touch-usr-hook:
320 touch -c $(DESTDIR)/$(prefix)
322 INSTALL_EXEC_HOOKS += \
323 install-target-wants-hook \
324 install-directories-hook \
325 install-aliases-hook \
326 install-touch-usr-hook
329 INSTALL_EXEC_HOOKS += \
330 install-busnames-target-wants-hook
333 # ------------------------------------------------------------------------------
334 AM_V_M4 = $(AM_V_M4_$(V))
335 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
336 AM_V_M4_0 = @echo " M4 " $@;
338 AM_V_XSLT = $(AM_V_XSLT_$(V))
339 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
340 AM_V_XSLT_0 = @echo " XSLT " $@;
342 AM_V_GPERF = $(AM_V_GPERF_$(V))
343 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
344 AM_V_GPERF_0 = @echo " GPERF " $@;
346 AM_V_LN = $(AM_V_LN_$(V))
347 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
348 AM_V_LN_0 = @echo " LN " $@;
350 AM_V_RM = $(AM_V_RM_$(V))
351 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
352 AM_V_RM_0 = @echo " RM " $@;
354 # ------------------------------------------------------------------------------
358 systemd-ask-password \
359 systemd-tty-ask-password-agent \
360 systemd-machine-id-setup \
367 systemd-detect-virt \
371 systemd-stdio-bridge \
375 src/kernel-install/kernel-install
377 dist_kernelinstall_SCRIPTS = \
378 src/kernel-install/50-depmod.install \
379 src/kernel-install/90-loaderentry.install
381 rootlibexec_PROGRAMS = \
383 systemd-cgroups-agent \
388 systemd-reply-password \
391 systemd-machine-id-commit \
396 systemd-socket-proxyd \
400 rootlibexec_PROGRAMS += \
404 systemgenerator_PROGRAMS = \
405 systemd-getty-generator \
406 systemd-fstab-generator \
407 systemd-system-update-generator \
408 systemd-debug-generator
410 dist_bashcompletion_DATA = \
411 shell-completion/bash/busctl \
412 shell-completion/bash/journalctl \
413 shell-completion/bash/systemd-analyze \
414 shell-completion/bash/systemd-cat \
415 shell-completion/bash/systemd-cgls \
416 shell-completion/bash/systemd-cgtop \
417 shell-completion/bash/systemd-delta \
418 shell-completion/bash/systemd-detect-virt \
419 shell-completion/bash/systemd-nspawn \
420 shell-completion/bash/systemd-run \
421 shell-completion/bash/udevadm \
422 shell-completion/bash/kernel-install
424 nodist_bashcompletion_DATA = \
425 shell-completion/bash/systemctl
427 dist_zshcompletion_DATA = \
428 shell-completion/zsh/_journalctl \
429 shell-completion/zsh/_udevadm \
430 shell-completion/zsh/_kernel-install \
431 shell-completion/zsh/_systemd-nspawn \
432 shell-completion/zsh/_systemd-analyze \
433 shell-completion/zsh/_systemd-run \
434 shell-completion/zsh/_sd_hosts_or_user_at_host \
435 shell-completion/zsh/_sd_outputmodes \
436 shell-completion/zsh/_sd_unit_files \
437 shell-completion/zsh/_systemd-delta \
438 shell-completion/zsh/_systemd
440 nodist_zshcompletion_DATA = \
441 shell-completion/zsh/_systemctl
444 shell-completion/bash/systemctl.in \
445 shell-completion/zsh/_systemctl.in
448 $(nodist_bashcompletion_DATA) \
449 $(nodist_zshcompletion_DATA)
452 sysctl.d/50-default.conf
454 dist_systemunit_DATA = \
455 units/graphical.target \
456 units/multi-user.target \
457 units/emergency.target \
458 units/sysinit.target \
463 units/local-fs.target \
464 units/local-fs-pre.target \
465 units/initrd.target \
466 units/initrd-fs.target \
467 units/initrd-root-fs.target \
468 units/remote-fs.target \
469 units/remote-fs-pre.target \
470 units/network.target \
471 units/network-pre.target \
472 units/network-online.target \
473 units/nss-lookup.target \
474 units/nss-user-lookup.target \
475 units/poweroff.target \
476 units/reboot.target \
477 units/rescue.target \
478 units/rpcbind.target \
479 units/time-sync.target \
480 units/shutdown.target \
482 units/umount.target \
483 units/sigpwr.target \
485 units/sockets.target \
486 units/timers.target \
488 units/suspend.target \
490 units/slices.target \
493 units/systemd-fsckd.socket \
494 units/systemd-initctl.socket \
495 units/systemd-shutdownd.socket \
496 units/syslog.socket \
497 units/dev-hugepages.mount \
498 units/dev-mqueue.mount \
499 units/sys-kernel-config.mount \
500 units/sys-kernel-debug.mount \
501 units/sys-fs-fuse-connections.mount \
503 units/var-lib-machines.mount \
504 units/printer.target \
506 units/bluetooth.target \
507 units/smartcard.target \
508 units/systemd-ask-password-wall.path \
509 units/systemd-ask-password-console.path \
510 units/systemd-udevd-control.socket \
511 units/systemd-udevd-kernel.socket \
512 units/system-update.target \
513 units/initrd-switch-root.target \
514 units/machines.target
517 dist_systemunit_DATA += \
518 $(dist_systemunit_DATA_busnames)
521 dist_systemunit_DATA_busnames += \
522 units/busnames.target
524 nodist_systemunit_DATA = \
525 units/getty@.service \
526 units/serial-getty@.service \
527 units/console-shell.service \
528 units/console-getty.service \
529 units/container-getty@.service \
530 units/systemd-initctl.service \
531 units/systemd-shutdownd.service \
532 units/systemd-remount-fs.service \
533 units/systemd-ask-password-wall.service \
534 units/systemd-ask-password-console.service \
535 units/systemd-sysctl.service \
536 units/emergency.service \
537 units/rescue.service \
538 units/user@.service \
539 units/systemd-suspend.service \
540 units/systemd-halt.service \
541 units/systemd-poweroff.service \
542 units/systemd-reboot.service \
543 units/systemd-kexec.service \
544 units/systemd-fsck@.service \
545 units/systemd-fsck-root.service \
546 units/systemd-fsckd.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-fsckd.service.in \
601 units/systemd-machine-id-commit.service.in \
602 units/user@.service.m4.in \
603 units/debug-shell.service.in \
604 units/systemd-suspend.service.in \
605 units/quotaon.service.in \
606 units/initrd-parse-etc.service.in \
607 units/initrd-cleanup.service.in \
608 units/initrd-udevadm-cleanup-db.service.in \
609 units/initrd-switch-root.service.in \
610 units/systemd-nspawn@.service.in \
611 units/systemd-update-done.service.in
614 units/console-shell.service.m4 \
615 units/console-getty.service.m4 \
616 units/container-getty@.service.m4 \
617 units/user@.service.m4
620 nodist_systemunit_DATA += \
621 units/rc-local.service \
622 units/halt-local.service
624 systemgenerator_PROGRAMS += \
625 systemd-sysv-generator \
626 systemd-rc-local-generator
630 units/rc-local.service.in \
631 units/halt-local.service.in
633 # automake is broken and can't handle files with a dash in front
634 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
636 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
638 units-uninstall-hook:
639 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
641 INSTALL_DATA_HOOKS += units-install-hook
642 UNINSTALL_DATA_HOOKS += units-uninstall-hook
651 src/libsystemd/sd-bus/PORTING-DBUS1 \
652 src/libsystemd/sd-bus/DIFFERENCES \
653 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
655 @INTLTOOL_POLICY_RULE@
657 # ------------------------------------------------------------------------------
662 include Makefile-man.am
664 .PHONY: man update-man-list
665 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
668 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
670 ${XML_FILES:.xml=.html}
672 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
689 $(AM_V_at)$(MKDIR_P) $(dir $@)
690 $(AM_V_LN)$(LN_S) -f ../../man $@
699 man/index.html: man/systemd.index.html
700 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
708 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
709 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
710 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
712 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
713 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
714 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
715 @echo "Makefile-man.am has been regenerated"
717 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
718 $(AM_V_at)$(MKDIR_P) $(dir $@)
719 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
721 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
722 $(AM_V_at)$(MKDIR_P) $(dir $@)
723 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
726 man/systemd.index.xml \
728 man/systemd.directives.xml \
729 man/glib-event-glue.c
732 man/systemd.index.xml \
733 man/systemd.directives.xml
744 tools/make-man-index.py \
745 tools/make-directive-index.py \
748 # ------------------------------------------------------------------------------
749 noinst_LTLIBRARIES += \
752 libsystemd_shared_la_SOURCES = \
753 src/shared/capability.c \
754 src/shared/capability.h \
755 src/shared/linux/auto_dev-ioctl.h \
756 src/shared/ioprio.h \
757 src/shared/missing.h \
758 src/shared/initreq.h \
759 src/shared/securebits.h \
760 src/shared/special.h \
762 src/shared/unaligned.h \
765 src/shared/sparse-endian.h \
766 src/shared/refcnt.h \
767 src/shared/udev-util.h \
768 src/shared/device-nodes.c \
769 src/shared/device-nodes.h \
774 src/shared/architecture.c \
775 src/shared/architecture.h \
776 src/shared/efivars.c \
777 src/shared/efivars.h \
778 src/shared/fstab-util.c \
779 src/shared/fstab-util.h \
780 src/shared/path-util.c \
781 src/shared/path-util.h \
782 src/shared/time-util.c \
783 src/shared/time-util.h \
784 src/shared/locale-util.c \
785 src/shared/locale-util.h \
786 src/shared/mempool.c \
787 src/shared/mempool.h \
788 src/shared/hashmap.c \
789 src/shared/hashmap.h \
790 src/shared/siphash24.c \
791 src/shared/siphash24.h \
797 src/shared/sleep-config.c \
798 src/shared/sleep-config.h \
801 src/shared/env-util.c \
802 src/shared/env-util.h \
803 src/shared/strbuf.c \
804 src/shared/strbuf.h \
805 src/shared/strxcpyx.c \
806 src/shared/strxcpyx.h \
807 src/shared/conf-parser.c \
808 src/shared/conf-parser.h \
811 src/shared/ratelimit.h \
812 src/shared/ratelimit.c \
813 src/shared/exit-status.c \
814 src/shared/exit-status.h \
817 src/shared/gunicode.c \
818 src/shared/gunicode.h \
821 src/shared/socket-util.c \
822 src/shared/socket-util.h \
823 src/shared/in-addr-util.c \
824 src/shared/in-addr-util.h \
825 src/shared/ether-addr-util.h \
826 src/shared/conf-files.c \
827 src/shared/conf-files.h \
828 src/shared/cgroup-util.c \
829 src/shared/cgroup-util.h \
830 src/shared/cgroup-show.c \
831 src/shared/cgroup-show.h \
832 src/shared/unit-name.c \
833 src/shared/unit-name.h \
834 src/shared/utmp-wtmp.h \
835 src/shared/watchdog.c \
836 src/shared/watchdog.h \
837 src/shared/spawn-ask-password-agent.c \
838 src/shared/spawn-ask-password-agent.h \
839 src/shared/replace-var.c \
840 src/shared/replace-var.h \
841 src/shared/spawn-polkit-agent.c \
842 src/shared/spawn-polkit-agent.h \
843 src/shared/clock-util.c \
844 src/shared/clock-util.h \
845 src/shared/time-dst.c \
846 src/shared/time-dst.h \
847 src/shared/calendarspec.c \
848 src/shared/calendarspec.h \
849 src/shared/fileio.c \
850 src/shared/fileio.h \
851 src/shared/output-mode.h \
852 src/shared/MurmurHash2.c \
853 src/shared/MurmurHash2.h \
854 src/shared/acpi-fpdt.h \
855 src/shared/acpi-fpdt.c \
856 src/shared/boot-timestamps.h \
857 src/shared/boot-timestamps.c \
860 src/shared/smack-util.c \
861 src/shared/smack-util.h \
862 src/shared/apparmor-util.c \
863 src/shared/apparmor-util.h \
864 src/shared/ima-util.c \
865 src/shared/ima-util.h \
866 src/shared/ptyfwd.c \
867 src/shared/ptyfwd.h \
868 src/shared/errno-list.c \
869 src/shared/errno-list.h \
870 src/shared/af-list.c \
871 src/shared/af-list.h \
872 src/shared/arphrd-list.c \
873 src/shared/arphrd-list.h \
874 src/shared/cap-list.c \
875 src/shared/cap-list.h \
882 src/shared/bus-label.c \
883 src/shared/bus-label.h \
885 src/shared/clean-ipc.h \
886 src/shared/clean-ipc.c \
887 src/shared/login-shared.c \
888 src/shared/login-shared.h \
891 src/shared/barrier.c \
892 src/shared/barrier.h \
897 src/shared/base-filesystem.c \
898 src/shared/base-filesystem.h \
899 src/shared/memfd-util.c \
900 src/shared/memfd-util.h \
901 src/shared/uid-range.c \
902 src/shared/uid-range.h \
903 src/shared/nss-util.h \
906 src/shared/sigbus.c \
907 src/shared/sigbus.h \
909 src/shared/import-util.c \
910 src/shared/import-util.h
913 libsystemd_shared_la_SOURCES += \
914 src/shared/utmp-wtmp.c
917 nodist_libsystemd_shared_la_SOURCES = \
918 src/shared/errno-from-name.h \
919 src/shared/errno-to-name.h \
920 src/shared/af-from-name.h \
921 src/shared/af-to-name.h \
922 src/shared/arphrd-from-name.h \
923 src/shared/arphrd-to-name.h \
924 src/shared/cap-from-name.h \
925 src/shared/cap-to-name.h
927 libsystemd_shared_la_CFLAGS = \
933 libsystemd_shared_la_LIBADD = \
937 # ------------------------------------------------------------------------------
938 noinst_LTLIBRARIES += \
941 libsystemd_units_la_SOURCES = \
942 src/shared/install.c \
943 src/shared/install.h \
944 src/shared/install-printf.c \
945 src/shared/install-printf.h \
946 src/shared/path-lookup.c \
947 src/shared/path-lookup.h \
948 src/shared/specifier.c \
949 src/shared/specifier.h
951 # ------------------------------------------------------------------------------
952 noinst_LTLIBRARIES += \
955 libsystemd_label_la_SOURCES = \
956 src/shared/socket-label.c \
959 src/shared/selinux-util.c \
960 src/shared/selinux-util.h \
961 src/shared/mkdir-label.c \
962 src/shared/ask-password-api.c \
963 src/shared/ask-password-api.h \
964 src/shared/switch-root.h \
965 src/shared/switch-root.c \
966 src/shared/fileio-label.c \
967 src/shared/fileio-label.h \
968 src/shared/dev-setup.c \
969 src/shared/dev-setup.h \
970 src/shared/dropin.c \
971 src/shared/dropin.h \
972 src/shared/condition.c \
973 src/shared/condition.h \
974 src/shared/generator.h \
975 src/shared/generator.c \
976 src/shared/btrfs-util.c \
977 src/shared/btrfs-util.h \
978 src/shared/btrfs-ctree.h \
979 src/shared/machine-image.c \
980 src/shared/machine-image.h \
981 src/shared/machine-pool.c \
982 src/shared/machine-pool.h \
986 libsystemd_label_la_CFLAGS = \
990 libsystemd_label_la_LIBADD = \
993 # -----------------------------------------------------------------------------
996 noinst_LTLIBRARIES += \
999 libsystemd_fw_la_SOURCES = \
1000 src/shared/fw-util.h \
1001 src/shared/fw-util.c
1003 libsystemd_fw_la_CFLAGS = \
1007 libsystemd_fw_la_LIBADD = \
1011 # -----------------------------------------------------------------------------
1014 dist_systemunit_DATA += \
1015 units/ldconfig.service
1017 SYSINIT_TARGET_WANTS += \
1021 # ------------------------------------------------------------------------------
1024 noinst_LTLIBRARIES += \
1025 libsystemd-seccomp.la
1027 libsystemd_seccomp_la_SOURCES = \
1028 src/shared/seccomp-util.h \
1029 src/shared/seccomp-util.c
1031 libsystemd_seccomp_la_CFLAGS = \
1035 libsystemd_seccomp_la_LIBADD = \
1039 # ------------------------------------------------------------------------------
1040 noinst_LTLIBRARIES += \
1043 libsystemd_logs_la_SOURCES = \
1044 src/shared/logs-show.c \
1045 src/shared/logs-show.h
1047 # ------------------------------------------------------------------------------
1049 noinst_LTLIBRARIES += \
1052 libsystemd_acl_la_SOURCES = \
1053 src/shared/acl-util.c \
1054 src/shared/acl-util.h
1056 libsystemd_acl_la_CFLAGS = \
1060 libsystemd_acl_la_LIBADD = \
1064 # ------------------------------------------------------------------------------
1065 noinst_LTLIBRARIES += \
1068 libsystemd_core_la_SOURCES = \
1071 src/core/unit-printf.c \
1072 src/core/unit-printf.h \
1075 src/core/manager.c \
1076 src/core/manager.h \
1077 src/core/transaction.c \
1078 src/core/transaction.h \
1079 src/core/load-fragment.c \
1080 src/core/load-fragment.h \
1081 src/core/service.c \
1082 src/core/service.h \
1085 src/core/busname.c \
1086 src/core/busname.h \
1087 src/core/bus-endpoint.c \
1088 src/core/bus-endpoint.h \
1089 src/core/bus-policy.c \
1090 src/core/bus-policy.h \
1093 src/core/snapshot.c \
1094 src/core/snapshot.h \
1099 src/core/automount.c \
1100 src/core/automount.h \
1111 src/core/load-dropin.c \
1112 src/core/load-dropin.h \
1113 src/core/execute.c \
1114 src/core/execute.h \
1119 src/core/dbus-manager.c \
1120 src/core/dbus-manager.h \
1121 src/core/dbus-unit.c \
1122 src/core/dbus-unit.h \
1123 src/core/dbus-job.c \
1124 src/core/dbus-job.h \
1125 src/core/dbus-service.c \
1126 src/core/dbus-service.h \
1127 src/core/dbus-socket.c \
1128 src/core/dbus-socket.h \
1129 src/core/dbus-busname.c \
1130 src/core/dbus-busname.h \
1131 src/core/dbus-target.c \
1132 src/core/dbus-target.h \
1133 src/core/dbus-snapshot.c \
1134 src/core/dbus-snapshot.h \
1135 src/core/dbus-device.c \
1136 src/core/dbus-device.h \
1137 src/core/dbus-mount.c \
1138 src/core/dbus-mount.h \
1139 src/core/dbus-automount.c \
1140 src/core/dbus-automount.h \
1141 src/core/dbus-swap.c \
1142 src/core/dbus-swap.h \
1143 src/core/dbus-timer.c \
1144 src/core/dbus-timer.h \
1145 src/core/dbus-path.c \
1146 src/core/dbus-path.h \
1147 src/core/dbus-slice.c \
1148 src/core/dbus-slice.h \
1149 src/core/dbus-scope.c \
1150 src/core/dbus-scope.h \
1151 src/core/dbus-execute.c \
1152 src/core/dbus-execute.h \
1153 src/core/dbus-kill.c \
1154 src/core/dbus-kill.h \
1155 src/core/dbus-cgroup.c \
1156 src/core/dbus-cgroup.h \
1159 src/core/selinux-access.c \
1160 src/core/selinux-access.h \
1161 src/core/selinux-setup.c \
1162 src/core/selinux-setup.h \
1163 src/core/smack-setup.c \
1164 src/core/smack-setup.h \
1165 src/core/ima-setup.c \
1166 src/core/ima-setup.h \
1167 src/core/locale-setup.h \
1168 src/core/locale-setup.c \
1169 src/core/hostname-setup.c \
1170 src/core/hostname-setup.h \
1171 src/core/machine-id-setup.c \
1172 src/core/machine-id-setup.h \
1173 src/core/mount-setup.c \
1174 src/core/mount-setup.h \
1175 src/core/kmod-setup.c \
1176 src/core/kmod-setup.h \
1177 src/core/loopback-setup.h \
1178 src/core/loopback-setup.c \
1179 src/core/namespace.c \
1180 src/core/namespace.h \
1181 src/core/killall.h \
1182 src/core/killall.c \
1183 src/core/audit-fd.c \
1184 src/core/audit-fd.h \
1185 src/core/show-status.c \
1186 src/core/show-status.h \
1187 src/core/failure-action.c \
1188 src/core/failure-action.h
1190 nodist_libsystemd_core_la_SOURCES = \
1191 src/core/load-fragment-gperf.c \
1192 src/core/load-fragment-gperf-nulstr.c
1194 libsystemd_core_la_CFLAGS = \
1199 $(APPARMOR_CFLAGS) \
1204 libsystemd_core_la_LIBADD = \
1205 libsystemd-units.la \
1206 libsystemd-label.la \
1207 libudev-internal.la \
1208 libsystemd-shared.la \
1209 libsystemd-internal.la \
1218 libsystemd_core_la_LIBADD += \
1219 libsystemd-seccomp.la
1222 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1223 $(AM_V_at)$(MKDIR_P) $(dir $@)
1224 $(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 ";" }' < $< > $@
1227 src/core/load-fragment-gperf.gperf.m4
1230 src/core/load-fragment-gperf.gperf \
1231 src/core/load-fragment-gperf.c \
1232 src/core/load-fragment-gperf-nulstr.c \
1233 src/shared/errno-list.txt \
1234 src/shared/errno-from-name.gperf \
1235 src/shared/af-list.txt \
1236 src/shared/af-from-name.gperf \
1237 src/shared/arphrd-list.txt \
1238 src/shared/arphrd-from-name.gperf \
1239 src/shared/cap-list.txt \
1240 src/shared/cap-from-name.gperf \
1241 src/resolve/dns_type-list.txt \
1242 src/resolve/dns_type-from-name.gperf
1245 src/shared/errno-from-name.h \
1246 src/shared/errno-to-name.h \
1247 src/shared/af-from-name.h \
1248 src/shared/af-to-name.h \
1249 src/shared/arphrd-from-name.h \
1250 src/shared/arphrd-to-name.h \
1251 src/shared/cap-from-name.h \
1252 src/shared/cap-to-name.h \
1253 src/resolve/dns_type-from-name.h \
1254 src/resolve/dns_type-to-name.h
1256 %-from-name.gperf: %-list.txt
1257 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1259 %-from-name.h: %-from-name.gperf
1260 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1263 src/shared/errno-list.txt:
1264 $(AM_V_at)$(MKDIR_P) $(dir $@)
1265 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1267 src/shared/errno-to-name.h: src/shared/errno-list.txt
1268 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1271 src/shared/af-list.txt:
1272 $(AM_V_at)$(MKDIR_P) $(dir $@)
1273 $(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; }' >$@
1275 src/shared/af-to-name.h: src/shared/af-list.txt
1276 $(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 "};"}' <$< >$@
1279 src/shared/arphrd-list.txt:
1280 $(AM_V_at)$(MKDIR_P) $(dir $@)
1281 $(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_//' >$@
1283 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1284 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1286 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1287 $(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 }' <$< >$@
1290 src/shared/cap-list.txt:
1291 $(AM_V_at)$(MKDIR_P) $(dir $@)
1292 $(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 >$@
1294 src/shared/cap-to-name.h: src/shared/cap-list.txt
1295 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1297 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1298 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1300 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1301 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1304 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1305 $(AM_V_at)$(MKDIR_P) $(dir $@)
1306 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1308 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1309 $(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" }' <$< >$@
1311 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1312 $(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 }' <$< >$@
1314 # ------------------------------------------------------------------------------
1323 libsystemd-core.la \
1326 dist_pkgsysconf_DATA += \
1327 src/core/system.conf \
1330 dist_dbuspolicy_DATA += \
1331 src/core/org.freedesktop.systemd1.conf
1333 dist_dbussystemservice_DATA += \
1334 src/core/org.freedesktop.systemd1.service
1336 polkitpolicy_in_in_files += \
1337 src/core/org.freedesktop.systemd1.policy.in.in
1339 pkgconfiglib_DATA += \
1342 nodist_rpmmacros_DATA = \
1343 src/core/macros.systemd
1346 src/core/systemd.pc.in \
1347 src/core/macros.systemd.in
1350 src/core/macros.systemd \
1351 src/core/org.freedesktop.systemd1.policy.in
1353 # ------------------------------------------------------------------------------
1403 test-strip-tab-ansi \
1439 test/daughter.service \
1441 test/end.service.in \
1444 test/grandchild.service \
1446 test/hello-after-sleep.target \
1447 test/hello.service \
1449 test/parent-deep.slice \
1452 test/sched_idle_bad.service \
1453 test/sched_idle_ok.service \
1454 test/sched_rr_bad.service \
1455 test/sched_rr_change.service \
1456 test/sched_rr_ok.service \
1457 test/shutdown.target \
1458 test/sleep.service \
1459 test/sockets.target \
1461 test/sysinit.target \
1462 test/testsuite.target \
1463 test/timers.target \
1464 test/unstoppable.service \
1465 test/path-changed.service \
1466 test/path-directorynotempty.service \
1467 test/path-existsglob.service \
1468 test/path-exists.service \
1469 test/path-makedirectory.service \
1470 test/path-modified.service \
1471 test/path-mycustomunit.service \
1472 test/path-service.service \
1473 test/path-changed.path \
1474 test/path-directorynotempty.path \
1475 test/path-existsglob.path \
1476 test/path-exists.path \
1477 test/path-makedirectory.path \
1478 test/path-modified.path \
1479 test/path-unit.path \
1480 test/exec-environment-empty.service \
1481 test/exec-environment-multiple.service \
1482 test/exec-environment.service \
1483 test/exec-group.service \
1484 test/exec-ignoresigpipe-no.service \
1485 test/exec-ignoresigpipe-yes.service \
1486 test/exec-personality-x86-64.service \
1487 test/exec-personality-x86.service \
1488 test/exec-privatedevices-no.service \
1489 test/exec-privatedevices-yes.service \
1490 test/exec-privatetmp-no.service \
1491 test/exec-privatetmp-yes.service \
1492 test/exec-systemcallerrornumber.service \
1493 test/exec-systemcallfilter-failing2.service \
1494 test/exec-systemcallfilter-failing.service \
1495 test/exec-systemcallfilter-not-failing2.service \
1496 test/exec-systemcallfilter-not-failing.service \
1497 test/exec-user.service \
1498 test/exec-workingdirectory.service \
1499 test/exec-umask-0177.service \
1500 test/exec-umask-default.service \
1501 test/bus-policy/hello.conf \
1502 test/bus-policy/methods.conf \
1503 test/bus-policy/ownerships.conf \
1504 test/bus-policy/signals.conf \
1505 test/bus-policy/check-own-rules.conf \
1506 test/bus-policy/many-rules.conf \
1507 test/bus-policy/test.conf
1511 src/test/test-helper.h
1513 test_device_nodes_SOURCES = \
1514 src/test/test-device-nodes.c
1516 test_device_nodes_LDADD = \
1517 libsystemd-shared.la
1519 test_engine_SOURCES = \
1520 src/test/test-engine.c
1522 test_engine_CFLAGS = \
1526 test_engine_LDADD = \
1527 libsystemd-core.la \
1530 test_job_type_SOURCES = \
1531 src/test/test-job-type.c
1533 test_job_type_CFLAGS = \
1537 test_job_type_LDADD = \
1538 libsystemd-core.la \
1551 test_loopback_SOURCES = \
1552 src/test/test-loopback.c
1554 test_loopback_LDADD = \
1557 test_hostname_SOURCES = \
1558 src/test/test-hostname.c
1560 test_hostname_LDADD = \
1567 test_boot_timestamp_SOURCES = \
1568 src/test/test-boot-timestamps.c
1570 test_boot_timestamp_LDADD = \
1571 libsystemd-shared.la
1574 test_unit_name_SOURCES = \
1575 src/test/test-unit-name.c
1577 test_unit_name_CFLAGS = \
1581 test_unit_name_LDADD = \
1582 libsystemd-core.la \
1585 test_unit_file_SOURCES = \
1586 src/test/test-unit-file.c
1588 test_unit_file_CFLAGS = \
1592 test_unit_file_LDADD = \
1593 libsystemd-core.la \
1596 test_utf8_SOURCES = \
1597 src/test/test-utf8.c
1600 libsystemd-shared.la
1602 test_capability_SOURCES = \
1603 src/test/test-capability.c
1605 test_capability_LDADD = \
1606 libsystemd-shared.la
1608 test_async_SOURCES = \
1609 src/test/test-async.c
1611 test_async_LDADD = \
1612 libsystemd-shared.la
1614 test_locale_util_SOURCES = \
1615 src/test/test-locale-util.c
1617 test_locale_util_LDADD = \
1618 libsystemd-shared.la
1620 test_copy_SOURCES = \
1621 src/test/test-copy.c
1624 libsystemd-label.la \
1625 libsystemd-shared.la
1627 test_sigbus_SOURCES = \
1628 src/test/test-sigbus.c
1630 test_sigbus_LDADD = \
1631 libsystemd-shared.la
1633 test_condition_SOURCES = \
1634 src/test/test-condition.c
1636 test_condition_LDADD = \
1637 libsystemd-label.la \
1638 libsystemd-internal.la \
1639 libsystemd-shared.la
1641 test_fdset_SOURCES = \
1642 src/test/test-fdset.c
1644 test_fdset_LDADD = \
1645 libsystemd-shared.la \
1646 libsystemd-internal.la
1648 test_fstab_util_SOURCES = \
1649 src/test/test-fstab-util.c
1651 test_fstab_util_LDADD = \
1652 libsystemd-shared.la
1654 test_ratelimit_SOURCES = \
1655 src/test/test-ratelimit.c
1657 test_ratelimit_LDADD = \
1658 libsystemd-shared.la
1660 test_util_SOURCES = \
1661 src/test/test-util.c
1664 libsystemd-shared.la
1666 test_path_lookup_SOURCES = \
1667 src/test/test-path-lookup.c
1669 test_path_lookup_LDADD = \
1671 libsystemd-units.la \
1672 libsystemd-shared.la
1674 test_uid_range_SOURCES = \
1675 src/test/test-uid-range.c
1677 test_uid_range_LDADD = \
1678 libsystemd-shared.la
1680 test_cap_list_SOURCES = \
1681 src/test/test-cap-list.c
1683 test_cap_list_LDADD = \
1684 libsystemd-shared.la
1686 test_socket_util_SOURCES = \
1687 src/test/test-socket-util.c
1689 test_socket_util_LDADD = \
1690 libsystemd-shared.la
1692 test_ring_SOURCES = \
1693 src/test/test-ring.c
1696 libsystemd-shared.la
1698 test_barrier_SOURCES = \
1699 src/test/test-barrier.c
1701 test_barrier_LDADD = \
1702 libsystemd-shared.la
1704 test_pty_SOURCES = \
1710 test_tmpfiles_SOURCES = \
1711 src/test/test-tmpfiles.c
1713 test_tmpfiles_LDADD = \
1714 libsystemd-shared.la
1716 test_namespace_SOURCES = \
1717 src/test/test-namespace.c
1719 test_verbs_SOURCES = \
1720 src/test/test-verbs.c
1722 test_verbs_LDADD = \
1723 libsystemd-shared.la
1725 test_namespace_LDADD = \
1729 src/test/test-hashmap-ordered.c
1732 src/test/test-hashmap-ordered.c
1734 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1735 $(AM_V_at)$(MKDIR_P) $(dir $@)
1736 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1737 { if (!match($$0, "^#include")) \
1738 gsub(/hashmap/, "ordered_hashmap"); \
1739 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1740 gsub(/Hashmap/, "OrderedHashmap"); \
1743 nodist_test_hashmap_SOURCES = \
1744 src/test/test-hashmap-ordered.c
1746 test_hashmap_SOURCES = \
1747 src/test/test-hashmap.c \
1748 src/test/test-hashmap-plain.c
1750 test_hashmap_LDADD = \
1751 libsystemd-shared.la
1753 test_set_SOURCES = \
1757 libsystemd-shared.la
1759 test_xml_SOURCES = \
1763 libsystemd-shared.la
1765 test_json_SOURCES = \
1766 src/test/test-json.c
1769 libsystemd-shared.la
1771 test_list_SOURCES = \
1772 src/test/test-list.c
1775 libsystemd-shared.la
1777 test_unaligned_LDADD = \
1778 libsystemd-shared.la
1780 test_unaligned_SOURCES = \
1781 src/test/test-unaligned.c
1783 test_tables_SOURCES = \
1784 src/test/test-tables.c \
1785 src/shared/test-tables.h \
1786 src/bus-proxyd/bus-xml-policy.c \
1787 src/bus-proxyd/bus-xml-policy.h \
1788 src/journal/journald-server.c \
1789 src/journal/journald-server.h
1791 test_tables_CPPFLAGS = \
1793 -I$(top_srcdir)/src/bus-proxyd
1795 test_tables_CFLAGS = \
1799 test_tables_LDADD = \
1800 libsystemd-logs.la \
1801 libsystemd-journal-internal.la \
1802 libsystemd-journal-core.la \
1803 libsystemd-core.la \
1807 test_prioq_SOURCES = \
1808 src/test/test-prioq.c
1810 test_prioq_LDADD = \
1811 libsystemd-shared.la
1813 test_fileio_SOURCES = \
1814 src/test/test-fileio.c
1816 test_fileio_LDADD = \
1817 libsystemd-shared.la
1819 test_time_SOURCES = \
1820 src/test/test-time.c
1823 libsystemd-shared.la
1825 test_architecture_SOURCES = \
1826 src/test/test-architecture.c
1828 test_architecture_LDADD = \
1829 libsystemd-shared.la
1831 test_log_SOURCES = \
1835 libsystemd-shared.la
1837 test_ipcrm_SOURCES = \
1838 src/test/test-ipcrm.c
1840 test_ipcrm_LDADD = \
1841 libsystemd-shared.la \
1844 test_btrfs_SOURCES = \
1845 src/test/test-btrfs.c
1847 test_btrfs_LDADD = \
1848 libsystemd-label.la \
1849 libsystemd-shared.la
1852 test_fw_util_SOURCES = \
1853 src/test/test-fw-util.c
1855 test_fw_util_CFLAGS = \
1859 test_fw_util_LDADD = \
1861 libsystemd-shared.la \
1865 test_rtnl_manual_SOURCES = \
1866 src/test/test-rtnl-manual.c
1868 test_rtnl_manual_CFLAGS = \
1872 test_rtnl_manual_LDADD = \
1873 libsystemd-internal.la \
1874 libsystemd-shared.la \
1877 test_ellipsize_SOURCES = \
1878 src/test/test-ellipsize.c
1880 test_ellipsize_LDADD = \
1881 libsystemd-shared.la
1883 test_date_SOURCES = \
1884 src/test/test-date.c
1887 libsystemd-shared.la
1889 test_sleep_SOURCES = \
1890 src/test/test-sleep.c
1892 test_sleep_LDADD = \
1895 test_replace_var_SOURCES = \
1896 src/test/test-replace-var.c
1898 test_replace_var_LDADD = \
1899 libsystemd-shared.la
1901 test_calendarspec_SOURCES = \
1902 src/test/test-calendarspec.c
1904 test_calendarspec_LDADD = \
1905 libsystemd-shared.la
1907 test_strip_tab_ansi_SOURCES = \
1908 src/test/test-strip-tab-ansi.c
1910 test_strip_tab_ansi_LDADD = \
1911 libsystemd-shared.la
1913 test_daemon_SOURCES = \
1914 src/test/test-daemon.c
1916 test_daemon_LDADD = \
1917 libsystemd-internal.la \
1918 libsystemd-shared.la
1920 test_cgroup_SOURCES = \
1921 src/test/test-cgroup.c
1923 test_cgroup_LDADD = \
1924 libsystemd-label.la \
1925 libsystemd-shared.la \
1926 libsystemd-internal.la
1928 test_cgroup_mask_SOURCES = \
1929 src/test/test-cgroup-mask.c
1931 test_cgroup_mask_CPPFLAGS = \
1934 test_cgroup_mask_CFLAGS = \
1938 test_cgroup_mask_LDADD = \
1939 libsystemd-core.la \
1942 test_cgroup_util_SOURCES = \
1943 src/test/test-cgroup-util.c
1945 test_cgroup_util_LDADD = \
1946 libsystemd-label.la \
1947 libsystemd-internal.la \
1948 libsystemd-shared.la
1950 test_env_replace_SOURCES = \
1951 src/test/test-env-replace.c
1953 test_env_replace_LDADD = \
1954 libsystemd-shared.la
1956 test_strbuf_SOURCES = \
1957 src/test/test-strbuf.c
1959 test_strbuf_LDADD = \
1960 libsystemd-shared.la
1962 test_strv_SOURCES = \
1963 src/test/test-strv.c
1966 libsystemd-units.la \
1967 libsystemd-internal.la \
1968 libsystemd-shared.la
1970 test_path_util_SOURCES = \
1971 src/test/test-path-util.c
1973 test_path_util_LDADD = \
1974 libsystemd-shared.la
1976 test_path_SOURCES = \
1977 src/test/test-path.c
1979 test_path_CFLAGS = \
1985 test_execute_SOURCES = \
1986 src/test/test-execute.c
1988 test_execute_CFLAGS = \
1991 test_execute_LDADD = \
1994 test_strxcpyx_SOURCES = \
1995 src/test/test-strxcpyx.c
1997 test_strxcpyx_LDADD = \
1998 libsystemd-shared.la
2000 test_install_SOURCES = \
2001 src/test/test-install.c
2003 test_install_LDADD = \
2004 libsystemd-units.la \
2005 libsystemd-label.la \
2006 libsystemd-shared.la \
2007 libsystemd-internal.la
2009 test_watchdog_SOURCES = \
2010 src/test/test-watchdog.c
2012 test_watchdog_LDADD = \
2013 libsystemd-shared.la
2015 test_sched_prio_SOURCES = \
2016 src/test/test-sched-prio.c
2018 test_sched_prio_CPPFLAGS = \
2021 test_sched_prio_CFLAGS = \
2025 test_sched_prio_LDADD = \
2026 libsystemd-core.la \
2029 test_conf_files_SOURCES = \
2030 src/test/test-conf-files.c
2032 test_conf_files_LDADD = \
2033 libsystemd-shared.la
2035 test_bus_policy_SOURCES = \
2036 src/bus-proxyd/test-bus-xml-policy.c
2038 test_bus_policy_LDADD = \
2039 libsystemd-proxy.la \
2040 libsystemd-internal.la \
2041 libsystemd-shared.la
2043 # ------------------------------------------------------------------------------
2044 ## .PHONY so it always rebuilds it
2045 .PHONY: coverage lcov-run lcov-report coverage-sync
2047 # run lcov from scratch, always
2052 coverage_dir = coverage
2053 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2056 # reset run coverage tests
2058 @rm -rf $(coverage_dir)
2059 lcov $(coverage_opts) --zerocounters
2062 # generate report based on current coverage data
2064 $(MKDIR_P) $(coverage_dir)
2065 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2066 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2067 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2068 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2069 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2071 # lcov doesn't work properly with vpath builds, make sure that bad
2072 # output is not uploaded by mistake.
2073 coverage-sync: coverage
2074 test "$(builddir)" = "$(srcdir)"
2075 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2078 lcov-run lcov-report:
2079 echo "Need to reconfigure with --enable-coverage"
2082 # ------------------------------------------------------------------------------
2083 systemd_analyze_SOURCES = \
2084 src/analyze/analyze.c \
2085 src/analyze/analyze-verify.c \
2086 src/analyze/analyze-verify.h
2088 systemd_verify_CFLAGS = \
2092 systemd_analyze_LDADD = \
2093 libsystemd-core.la \
2094 libsystemd-internal.la \
2095 libsystemd-shared.la \
2098 # ------------------------------------------------------------------------------
2099 systemd_initctl_SOURCES = \
2100 src/initctl/initctl.c
2102 systemd_initctl_LDADD = \
2103 libsystemd-internal.la \
2104 libsystemd-shared.la
2106 # ------------------------------------------------------------------------------
2107 systemd_update_utmp_SOURCES = \
2108 src/update-utmp/update-utmp.c
2110 systemd_update_utmp_CFLAGS = \
2114 systemd_update_utmp_LDADD = \
2115 libsystemd-internal.la \
2116 libsystemd-shared.la \
2119 # ------------------------------------------------------------------------------
2120 systemd_update_done_SOURCES = \
2121 src/update-done/update-done.c
2123 systemd_update_done_LDADD = \
2124 libsystemd-internal.la \
2125 libsystemd-label.la \
2126 libsystemd-shared.la
2128 # ------------------------------------------------------------------------------
2129 systemd_shutdownd_SOURCES = \
2130 src/shutdownd/shutdownd.c
2132 systemd_shutdownd_LDADD = \
2133 libsystemd-label.la \
2134 libsystemd-internal.la \
2135 libsystemd-shared.la
2138 src/systemd/sd-shutdown.h
2140 # ------------------------------------------------------------------------------
2141 systemd_shutdown_SOURCES = \
2144 src/core/shutdown.c \
2145 src/core/mount-setup.c \
2146 src/core/mount-setup.h \
2147 src/core/killall.h \
2150 systemd_shutdown_LDADD = \
2151 libsystemd-label.la \
2152 libudev-internal.la \
2153 libsystemd-shared.la
2155 # ------------------------------------------------------------------------------
2157 systemd_modules_load_SOURCES = \
2158 src/modules-load/modules-load.c
2160 systemd_modules_load_CFLAGS = \
2164 systemd_modules_load_LDADD = \
2165 libsystemd-shared.la \
2168 rootlibexec_PROGRAMS += \
2169 systemd-modules-load
2171 nodist_systemunit_DATA += \
2172 units/systemd-modules-load.service
2174 SYSINIT_TARGET_WANTS += \
2175 systemd-modules-load.service
2178 nodist_systemunit_DATA += \
2179 units/kmod-static-nodes.service
2181 SYSINIT_TARGET_WANTS += \
2182 kmod-static-nodes.service
2187 units/systemd-modules-load.service.in \
2188 units/kmod-static-nodes.service.in
2190 # ------------------------------------------------------------------------------
2192 systemd_tmpfiles_SOURCES = \
2193 src/tmpfiles/tmpfiles.c
2195 systemd_tmpfiles_LDADD = \
2196 libsystemd-units.la \
2197 libsystemd-label.la \
2198 libsystemd-internal.la \
2199 libsystemd-shared.la
2202 systemd_tmpfiles_LDADD += \
2206 rootbin_PROGRAMS += \
2209 dist_systemunit_DATA += \
2210 units/systemd-tmpfiles-clean.timer
2212 nodist_systemunit_DATA += \
2213 units/systemd-tmpfiles-setup-dev.service \
2214 units/systemd-tmpfiles-setup.service \
2215 units/systemd-tmpfiles-clean.service
2217 nodist_tmpfiles_DATA = \
2218 tmpfiles.d/systemd.conf \
2221 dist_tmpfiles_DATA = \
2222 tmpfiles.d/systemd-nologin.conf \
2223 tmpfiles.d/tmp.conf \
2224 tmpfiles.d/x11.conf \
2228 dist_tmpfiles_DATA += \
2229 tmpfiles.d/legacy.conf
2232 SYSINIT_TARGET_WANTS += \
2233 systemd-tmpfiles-setup-dev.service \
2234 systemd-tmpfiles-setup.service
2236 dist_zshcompletion_DATA += \
2237 shell-completion/zsh/_systemd-tmpfiles
2239 TIMERS_TARGET_WANTS += \
2240 systemd-tmpfiles-clean.timer
2244 $(sysconfdir)/tmpfiles.d
2248 tmpfiles.d/systemd.conf.m4 \
2249 tmpfiles.d/etc.conf.m4 \
2250 units/systemd-tmpfiles-setup-dev.service.in \
2251 units/systemd-tmpfiles-setup.service.in \
2252 units/systemd-tmpfiles-clean.service.in
2255 tmpfiles.d/systemd.conf \
2258 # ------------------------------------------------------------------------------
2260 systemd_sysusers_SOURCES = \
2261 src/sysusers/sysusers.c
2263 systemd_sysusers_LDADD = \
2264 libsystemd-units.la \
2265 libsystemd-label.la \
2266 libsystemd-internal.la \
2267 libsystemd-shared.la
2269 rootbin_PROGRAMS += \
2272 nodist_systemunit_DATA += \
2273 units/systemd-sysusers.service
2275 SYSINIT_TARGET_WANTS += \
2276 systemd-sysusers.service
2278 nodist_sysusers_DATA = \
2279 sysusers.d/systemd.conf \
2280 sysusers.d/basic.conf
2283 units/systemd-sysusers.service.in \
2284 sysusers.d/systemd.conf.m4 \
2285 sysusers.d/basic.conf.in
2288 sysusers.d/systemd.conf \
2289 sysusers.d/basic.conf
2295 # ------------------------------------------------------------------------------
2296 dist_factory_etc_DATA = \
2297 factory/etc/nsswitch.conf
2300 dist_factory_pam_DATA = \
2301 factory/etc/pam.d/system-auth \
2302 factory/etc/pam.d/other
2305 # ------------------------------------------------------------------------------
2307 systemd_firstboot_SOURCES = \
2308 src/firstboot/firstboot.c
2310 systemd_firstboot_LDADD = \
2311 libsystemd-units.la \
2312 libsystemd-label.la \
2313 libsystemd-internal.la \
2314 libsystemd-shared.la \
2317 rootbin_PROGRAMS += \
2320 nodist_systemunit_DATA += \
2321 units/systemd-firstboot.service
2324 units/systemd-firstboot.service.in
2326 SYSINIT_TARGET_WANTS += \
2327 systemd-firstboot.service
2330 # ------------------------------------------------------------------------------
2331 systemd_machine_id_setup_SOURCES = \
2332 src/machine-id-setup/machine-id-setup-main.c \
2333 src/core/machine-id-setup.c \
2334 src/core/machine-id-setup.h
2336 systemd_machine_id_setup_LDADD = \
2337 libsystemd-label.la \
2338 libsystemd-internal.la \
2339 libsystemd-shared.la
2341 # ------------------------------------------------------------------------------
2342 systemd_sysctl_SOURCES = \
2345 systemd_sysctl_LDADD = \
2346 libsystemd-shared.la
2348 # ------------------------------------------------------------------------------
2349 systemd_sleep_SOURCES = \
2352 systemd_sleep_LDADD = \
2353 libsystemd-shared.la
2355 # ------------------------------------------------------------------------------
2356 systemd_fsck_SOURCES = \
2359 systemd_fsck_LDADD = \
2360 libsystemd-internal.la \
2361 libudev-internal.la \
2362 libsystemd-shared.la
2364 # ------------------------------------------------------------------------------
2365 systemd_fsckd_SOURCES = \
2370 systemd_fsckd_LDADD = \
2371 libsystemd-internal.la \
2372 libsystemd-label.la \
2373 libsystemd-shared.la \
2374 libudev-internal.la \
2377 # ------------------------------------------------------------------------------
2378 systemd_machine_id_commit_SOURCES = \
2379 src/machine-id-commit/machine-id-commit.c \
2380 src/core/machine-id-setup.c \
2381 src/core/machine-id-setup.h
2383 systemd_machine_id_commit_LDADD = \
2384 libsystemd-label.la \
2385 libsystemd-internal.la \
2386 libsystemd-shared.la
2388 SYSINIT_TARGET_WANTS += \
2389 systemd-machine-id-commit.service
2391 # ------------------------------------------------------------------------------
2392 systemd_ac_power_SOURCES = \
2393 src/ac-power/ac-power.c
2395 systemd_ac_power_LDADD = \
2396 libudev-internal.la \
2397 libsystemd-shared.la
2399 # ------------------------------------------------------------------------------
2400 systemd_detect_virt_SOURCES = \
2401 src/detect-virt/detect-virt.c
2403 systemd_detect_virt_LDADD = \
2404 libsystemd-shared.la
2406 INSTALL_EXEC_HOOKS += \
2407 systemd-detect-virt-install-hook
2409 # ------------------------------------------------------------------------------
2410 systemd_delta_SOURCES = \
2413 systemd_delta_LDADD = \
2414 libsystemd-shared.la
2416 # ------------------------------------------------------------------------------
2417 systemd_getty_generator_SOURCES = \
2418 src/getty-generator/getty-generator.c
2420 systemd_getty_generator_LDADD = \
2421 libsystemd-label.la \
2422 libsystemd-shared.la
2424 # ------------------------------------------------------------------------------
2425 systemd_debug_generator_SOURCES = \
2426 src/debug-generator/debug-generator.c
2428 systemd_debug_generator_LDADD = \
2429 libsystemd-label.la \
2430 libsystemd-shared.la
2432 # ------------------------------------------------------------------------------
2433 systemd_fstab_generator_SOURCES = \
2434 src/fstab-generator/fstab-generator.c \
2435 src/core/mount-setup.c
2437 systemd_fstab_generator_LDADD = \
2438 libsystemd-label.la \
2439 libsystemd-shared.la
2441 # ------------------------------------------------------------------------------
2442 systemd_system_update_generator_SOURCES = \
2443 src/system-update-generator/system-update-generator.c
2445 systemd_system_update_generator_LDADD = \
2446 libsystemd-label.la \
2447 libsystemd-shared.la
2449 # ------------------------------------------------------------------------------
2451 systemgenerator_PROGRAMS += \
2452 systemd-hibernate-resume-generator
2454 rootlibexec_PROGRAMS += \
2455 systemd-hibernate-resume
2457 systemd_hibernate_resume_SOURCES = \
2458 src/hibernate-resume/hibernate-resume.c
2460 systemd_hibernate_resume_LDADD = \
2461 libsystemd-internal.la \
2462 libsystemd-shared.la
2464 systemd_hibernate_resume_generator_SOURCES = \
2465 src/hibernate-resume/hibernate-resume-generator.c
2467 systemd_hibernate_resume_generator_LDADD = \
2468 libsystemd-label.la \
2469 libsystemd-shared.la
2472 units/systemd-hibernate.service.in \
2473 units/systemd-hibernate-resume@.service.in \
2474 units/systemd-hybrid-sleep.service.in
2476 dist_systemunit_DATA += \
2477 units/hibernate.target \
2478 units/hybrid-sleep.target
2480 nodist_systemunit_DATA += \
2481 units/systemd-hibernate.service \
2482 units/systemd-hibernate-resume@.service \
2483 units/systemd-hybrid-sleep.service
2486 # ------------------------------------------------------------------------------
2488 systemgenerator_PROGRAMS += \
2489 systemd-efi-boot-generator
2491 systemd_efi_boot_generator_SOURCES = \
2492 src/efi-boot-generator/efi-boot-generator.c
2494 systemd_efi_boot_generator_LDADD = \
2495 libsystemd-label.la \
2496 libsystemd-shared.la
2498 # ------------------------------------------------------------------------------
2503 bootctl_CPPFLAGS = \
2505 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2506 -DBOOTLIBDIR=\"$(bootlibdir)\"
2513 libsystemd-shared.la \
2514 libsystemd-internal.la \
2520 dist_bashcompletion_DATA += \
2521 shell-completion/bash/bootctl
2523 dist_zshcompletion_DATA += \
2524 shell-completion/zsh/_bootctl
2527 # ------------------------------------------------------------------------------
2531 -I$(top_builddir) -include config.h \
2532 -I$(EFI_INC_DIR)/efi \
2533 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2534 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2547 -fno-strict-aliasing \
2548 -fno-stack-protector \
2550 -Wno-missing-field-initializers \
2557 -DEFI_FUNCTION_WRAPPER \
2558 -DGNU_EFI_USE_MS_ABI
2563 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2569 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2571 # ------------------------------------------------------------------------------
2572 systemd_boot_headers = \
2573 src/boot/efi/util.h \
2574 src/boot/efi/console.h \
2575 src/boot/efi/graphics.h \
2576 src/boot/efi/pefile.h
2578 systemd_boot_sources = \
2579 src/boot/efi/util.c \
2580 src/boot/efi/console.c \
2581 src/boot/efi/graphics.c \
2582 src/boot/efi/pefile.c \
2585 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2586 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2587 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2589 bootlib_DATA = $(systemd_boot)
2590 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2591 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2593 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2594 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2595 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2597 $(systemd_boot_solib): $(systemd_boot_objects)
2598 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2599 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2600 nm -D -u $@ | grep ' U ' && exit 1 || :
2602 $(systemd_boot): $(systemd_boot_solib)
2603 $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
2604 -j .dynsym -j .rel -j .rela -j .reloc \
2605 --target=efi-app-$(EFI_ARCH) $< $@
2607 # ------------------------------------------------------------------------------
2609 src/boot/efi/util.h \
2610 src/boot/efi/pefile.h \
2611 src/boot/efi/graphics.h \
2612 src/boot/efi/splash.h \
2613 src/boot/efi/linux.h
2616 src/boot/efi/util.c \
2617 src/boot/efi/pefile.c \
2618 src/boot/efi/graphics.c \
2619 src/boot/efi/splash.c \
2620 src/boot/efi/linux.c \
2623 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2624 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2625 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2627 bootlib_DATA += $(stub)
2628 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2629 EXTRA_DIST += $(stub_sources) $(stub_headers)
2631 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2632 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2633 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2635 $(stub_solib): $(stub_objects)
2636 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2637 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2638 nm -D -u $@ | grep ' U ' && exit 1 || :
2640 $(stub): $(stub_solib)
2641 $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
2642 -j .dynsym -j .rel -j .rela -j .reloc \
2643 --target=efi-app-$(EFI_ARCH) $< $@
2645 # ------------------------------------------------------------------------------
2646 CLEANFILES += test-efi-disk.img
2647 EXTRA_DIST += test/test-efi-create-disk.sh
2649 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2650 $(AM_V_GEN)test/test-efi-create-disk.sh
2652 test-efi: test-efi-disk.img
2653 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2657 # ------------------------------------------------------------------------------
2659 systemgenerator_PROGRAMS += \
2660 systemd-gpt-auto-generator
2662 systemd_gpt_auto_generator_SOURCES = \
2663 src/gpt-auto-generator/gpt-auto-generator.c \
2664 src/shared/blkid-util.h
2666 systemd_gpt_auto_generator_LDADD = \
2667 libsystemd-label.la \
2668 libsystemd-internal.la \
2669 libudev-internal.la \
2670 libsystemd-shared.la \
2673 systemd_gpt_auto_generator_CFLAGS = \
2678 # ------------------------------------------------------------------------------
2680 systemgenerator_PROGRAMS += \
2681 systemd-dbus1-generator
2683 systemd_dbus1_generator_SOURCES = \
2684 src/dbus1-generator/dbus1-generator.c
2686 systemd_dbus1_generator_LDADD = \
2687 libsystemd-label.la \
2688 libsystemd-internal.la \
2689 libsystemd-shared.la
2691 dbus1-generator-install-hook:
2692 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2693 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2694 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2696 dbus1-generator-uninstall-hook:
2697 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2699 dist_xinitrc_SCRIPTS = \
2700 xorg/50-systemd-user.sh
2702 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2703 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2706 # ------------------------------------------------------------------------------
2707 systemd_sysv_generator_SOURCES = \
2708 src/sysv-generator/sysv-generator.c
2710 systemd_sysv_generator_LDADD = \
2711 libsystemd-core.la \
2712 libsystemd-label.la \
2713 libsystemd-shared.la
2715 # ------------------------------------------------------------------------------
2716 systemd_rc_local_generator_SOURCES = \
2717 src/rc-local-generator/rc-local-generator.c
2719 systemd_rc_local_generator_LDADD = \
2720 libsystemd-label.la \
2721 libsystemd-shared.la
2723 # ------------------------------------------------------------------------------
2724 systemd_remount_fs_SOURCES = \
2725 src/remount-fs/remount-fs.c \
2726 src/core/mount-setup.c \
2727 src/core/mount-setup.h
2729 systemd_remount_fs_LDADD = \
2730 libsystemd-label.la \
2731 libsystemd-shared.la
2733 # ------------------------------------------------------------------------------
2734 systemd_cgroups_agent_SOURCES = \
2735 src/cgroups-agent/cgroups-agent.c
2737 systemd_cgroups_agent_LDADD = \
2738 libsystemd-internal.la \
2739 libsystemd-shared.la
2741 # ------------------------------------------------------------------------------
2742 systemd_escape_SOURCES = \
2745 systemd_escape_LDADD = \
2746 libsystemd-shared.la
2748 # -----------------------------------------------------------------------------
2749 systemctl_SOURCES = \
2750 src/systemctl/systemctl.c
2753 libsystemd-units.la \
2754 libsystemd-label.la \
2755 libsystemd-internal.la \
2756 libsystemd-logs.la \
2757 libsystemd-journal-internal.la \
2758 libsystemd-shared.la
2760 # ------------------------------------------------------------------------------
2761 systemd_notify_SOURCES = \
2764 systemd_notify_LDADD = \
2765 libsystemd-internal.la \
2766 libsystemd-shared.la
2768 # ------------------------------------------------------------------------------
2769 systemd_path_SOURCES = \
2772 systemd_path_LDADD = \
2773 libsystemd-internal.la \
2774 libsystemd-shared.la
2776 # ------------------------------------------------------------------------------
2777 systemd_ask_password_SOURCES = \
2778 src/ask-password/ask-password.c
2780 systemd_ask_password_LDADD = \
2781 libsystemd-label.la \
2782 libsystemd-shared.la
2784 # ------------------------------------------------------------------------------
2785 systemd_reply_password_SOURCES = \
2786 src/reply-password/reply-password.c
2788 systemd_reply_password_LDADD = \
2789 libsystemd-shared.la
2791 # ------------------------------------------------------------------------------
2792 systemd_cgls_SOURCES = \
2795 systemd_cgls_LDADD = \
2796 libsystemd-internal.la \
2797 libsystemd-shared.la
2799 # ------------------------------------------------------------------------------
2800 systemd_cgtop_SOURCES = \
2803 systemd_cgtop_LDADD = \
2804 libsystemd-shared.la
2806 # ------------------------------------------------------------------------------
2807 systemd_nspawn_SOURCES = \
2808 src/nspawn/nspawn.c \
2809 src/core/mount-setup.c \
2810 src/core/mount-setup.h \
2811 src/core/loopback-setup.c \
2812 src/core/loopback-setup.h
2814 systemd_nspawn_CFLAGS = \
2819 systemd_nspawn_LDADD = \
2820 libsystemd-label.la \
2821 libsystemd-internal.la \
2822 libudev-internal.la \
2823 libsystemd-shared.la \
2827 systemd_nspawn_LDADD += \
2828 libsystemd-seccomp.la \
2833 systemd_nspawn_LDADD += \
2837 # ------------------------------------------------------------------------------
2838 systemd_run_SOURCES = \
2841 systemd_run_LDADD = \
2842 libsystemd-label.la \
2843 libsystemd-internal.la \
2844 libsystemd-shared.la
2846 # ------------------------------------------------------------------------------
2847 noinst_LTLIBRARIES += \
2850 libsystemd_proxy_la_SOURCES = \
2851 src/bus-proxyd/bus-xml-policy.c \
2852 src/bus-proxyd/bus-xml-policy.h \
2853 src/bus-proxyd/driver.c \
2854 src/bus-proxyd/driver.h \
2855 src/bus-proxyd/proxy.c \
2856 src/bus-proxyd/proxy.h \
2857 src/bus-proxyd/synthesize.c \
2858 src/bus-proxyd/synthesize.h
2860 libsystemd_proxy_la_CFLAGS = \
2864 libsystemd_proxy_la_LIBADD = \
2865 libsystemd-internal.la \
2866 libsystemd-shared.la
2868 systemd_bus_proxyd_SOURCES = \
2869 src/bus-proxyd/bus-proxyd.c
2871 systemd_bus_proxyd_CFLAGS = \
2875 systemd_bus_proxyd_LDADD = \
2876 libsystemd-proxy.la \
2877 libsystemd-internal.la \
2878 libsystemd-shared.la
2880 systemd_stdio_bridge_SOURCES = \
2881 src/bus-proxyd/stdio-bridge.c
2883 systemd_stdio_bridge_LDADD = \
2884 libsystemd-proxy.la \
2885 libsystemd-internal.la \
2886 libsystemd-shared.la
2889 nodist_systemunit_DATA += \
2890 units/systemd-bus-proxyd.service
2892 dist_systemunit_DATA += \
2893 units/systemd-bus-proxyd.socket
2895 nodist_userunit_DATA += \
2896 units/user/systemd-bus-proxyd.service
2898 dist_userunit_DATA += \
2899 units/user/systemd-bus-proxyd.socket
2903 units/systemd-bus-proxyd.service.m4.in \
2904 units/user/systemd-bus-proxyd.service.in
2907 units/systemd-bus-proxyd.service.m4
2910 bus-proxyd-set-cap-hook:
2911 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2913 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2916 # ------------------------------------------------------------------------------
2917 systemd_tty_ask_password_agent_SOURCES = \
2918 src/tty-ask-password-agent/tty-ask-password-agent.c
2920 systemd_tty_ask_password_agent_LDADD = \
2921 libsystemd-label.la \
2922 libsystemd-shared.la
2924 # ------------------------------------------------------------------------------
2925 libsystemd_internal_la_SOURCES = \
2926 src/systemd/sd-bus.h \
2927 src/systemd/sd-bus-protocol.h \
2928 src/systemd/sd-bus-vtable.h \
2929 src/systemd/sd-utf8.h \
2930 src/systemd/sd-event.h \
2931 src/systemd/sd-rtnl.h \
2932 src/systemd/sd-resolve.h \
2933 src/systemd/sd-login.h \
2934 src/systemd/sd-id128.h \
2935 src/systemd/sd-daemon.h \
2936 src/systemd/sd-path.h \
2937 src/systemd/sd-network.h \
2938 src/systemd/sd-hwdb.h \
2939 src/libsystemd/sd-bus/sd-bus.c \
2940 src/libsystemd/sd-bus/bus-control.c \
2941 src/libsystemd/sd-bus/bus-control.h \
2942 src/libsystemd/sd-bus/bus-error.c \
2943 src/libsystemd/sd-bus/bus-error.h \
2944 src/libsystemd/sd-bus/bus-common-errors.h \
2945 src/libsystemd/sd-bus/bus-common-errors.c \
2946 src/libsystemd/sd-bus/bus-internal.c \
2947 src/libsystemd/sd-bus/bus-internal.h \
2948 src/libsystemd/sd-bus/bus-socket.c \
2949 src/libsystemd/sd-bus/bus-socket.h \
2950 src/libsystemd/sd-bus/bus-kernel.c \
2951 src/libsystemd/sd-bus/bus-kernel.h \
2952 src/libsystemd/sd-bus/bus-container.c \
2953 src/libsystemd/sd-bus/bus-container.h \
2954 src/libsystemd/sd-bus/bus-message.c \
2955 src/libsystemd/sd-bus/bus-message.h \
2956 src/libsystemd/sd-bus/bus-creds.c \
2957 src/libsystemd/sd-bus/bus-creds.h \
2958 src/libsystemd/sd-bus/bus-signature.c \
2959 src/libsystemd/sd-bus/bus-signature.h \
2960 src/libsystemd/sd-bus/bus-type.c \
2961 src/libsystemd/sd-bus/bus-type.h \
2962 src/libsystemd/sd-bus/bus-match.c \
2963 src/libsystemd/sd-bus/bus-match.h \
2964 src/libsystemd/sd-bus/bus-bloom.c \
2965 src/libsystemd/sd-bus/bus-bloom.h \
2966 src/libsystemd/sd-bus/bus-introspect.c \
2967 src/libsystemd/sd-bus/bus-introspect.h \
2968 src/libsystemd/sd-bus/bus-objects.c \
2969 src/libsystemd/sd-bus/bus-objects.h \
2970 src/libsystemd/sd-bus/bus-gvariant.c \
2971 src/libsystemd/sd-bus/bus-gvariant.h \
2972 src/libsystemd/sd-bus/bus-convenience.c \
2973 src/libsystemd/sd-bus/bus-track.c \
2974 src/libsystemd/sd-bus/bus-track.h \
2975 src/libsystemd/sd-bus/bus-util.c \
2976 src/libsystemd/sd-bus/bus-util.h \
2977 src/libsystemd/sd-bus/bus-slot.c \
2978 src/libsystemd/sd-bus/bus-slot.h \
2979 src/libsystemd/sd-bus/bus-protocol.h \
2980 src/libsystemd/sd-bus/kdbus.h \
2981 src/libsystemd/sd-utf8/sd-utf8.c \
2982 src/libsystemd/sd-event/sd-event.c \
2983 src/libsystemd/sd-event/event-util.h \
2984 src/libsystemd/sd-rtnl/sd-rtnl.c \
2985 src/libsystemd/sd-rtnl/rtnl-internal.h \
2986 src/libsystemd/sd-rtnl/rtnl-message.c \
2987 src/libsystemd/sd-rtnl/rtnl-types.h \
2988 src/libsystemd/sd-rtnl/rtnl-types.c \
2989 src/libsystemd/sd-rtnl/rtnl-util.h \
2990 src/libsystemd/sd-rtnl/rtnl-util.c \
2991 src/libsystemd/sd-rtnl/local-addresses.h \
2992 src/libsystemd/sd-rtnl/local-addresses.c \
2993 src/libsystemd/sd-id128/sd-id128.c \
2994 src/libsystemd/sd-daemon/sd-daemon.c \
2995 src/libsystemd/sd-login/sd-login.c \
2996 src/libsystemd/sd-path/sd-path.c \
2997 src/libsystemd/sd-network/sd-network.c \
2998 src/libsystemd/sd-network/network-util.h \
2999 src/libsystemd/sd-network/network-util.c \
3000 src/libsystemd/sd-hwdb/sd-hwdb.c \
3001 src/libsystemd/sd-hwdb/hwdb-util.h \
3002 src/libsystemd/sd-hwdb/hwdb-internal.h
3004 nodist_libsystemd_internal_la_SOURCES = \
3005 src/libsystemd/libsystemd.sym
3007 libsystemd_internal_la_CFLAGS = \
3011 libsystemd_internal_la_LIBADD = \
3014 libsystemd_resolve_la_SOURCES = \
3015 src/libsystemd/sd-resolve/sd-resolve.c \
3016 src/libsystemd/sd-resolve/resolve-util.h
3018 libsystemd_resolve_la_CFLAGS = \
3022 libsystemd_resolve_la_LIBADD = \
3025 noinst_LTLIBRARIES += \
3026 libsystemd-internal.la \
3027 libsystemd-resolve.la
3029 libsystemd_dump_la_SOURCES = \
3030 src/libsystemd/sd-bus/bus-dump.c \
3031 src/libsystemd/sd-bus/bus-dump.h
3033 noinst_LTLIBRARIES += \
3037 src/libsystemd/libsystemd.sym.m4 \
3038 src/libsystemd/libsystemd.pc.in \
3039 src/libsystemd/sd-bus/DIFFERENCES \
3040 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3043 src/libsystemd/libsystemd.sym
3046 src/libsystemd/libsystemd.sym
3048 libsystemd_la_SOURCES = \
3049 $(libsystemd_internal_la_SOURCES) \
3050 $(libsystemd_resolve_la_SOURCES) \
3051 $(libsystemd_journal_internal_la_SOURCES)
3053 nodist_libsystemd_la_SOURCES = \
3054 $(nodist_libsystemd_internal_la_SOURCES)
3056 libsystemd_la_CFLAGS = \
3057 $(libsystemd_internal_la_CFLAGS) \
3058 $(libsystemd_resolve_la_CFLAGS) \
3059 $(libsystemd_journal_internal_la_CFLAGS)
3061 libsystemd_la_LDFLAGS = \
3063 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3064 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
3066 libsystemd_la_LIBADD = \
3067 libsystemd-shared.la \
3068 $(libsystemd_internal_la_LIBADD) \
3069 $(libsystemd_journal_internal_la_LIBADD) \
3070 $(libsystemd_resolve_la_LIBADD)
3072 libsystemd-install-hook:
3073 libname=libsystemd.so && $(move-to-rootlibdir)
3075 libsystemd-uninstall-hook:
3076 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3078 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3079 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3081 pkgconfiglib_DATA += \
3082 src/libsystemd/libsystemd.pc
3084 pkginclude_HEADERS += \
3085 src/systemd/sd-login.h \
3086 src/systemd/sd-id128.h \
3087 src/systemd/sd-daemon.h
3090 pkginclude_HEADERS += \
3091 src/systemd/sd-bus.h \
3092 src/systemd/sd-bus-protocol.h \
3093 src/systemd/sd-bus-vtable.h \
3094 src/systemd/sd-utf8.h \
3095 src/systemd/sd-event.h \
3096 src/systemd/sd-rtnl.h \
3097 src/systemd/sd-resolve.h \
3098 src/systemd/sd-path.h
3101 lib_LTLIBRARIES += \
3106 test-bus-signature \
3112 test-bus-kernel-bloom \
3113 test-bus-kernel-benchmark \
3114 test-bus-zero-copy \
3115 test-bus-introspect \
3122 test-local-addresses \
3128 test_bus_marshal_SOURCES = \
3129 src/libsystemd/sd-bus/test-bus-marshal.c
3131 test_bus_marshal_LDADD = \
3132 libsystemd-dump.la \
3133 libsystemd-internal.la \
3134 libsystemd-shared.la \
3138 test_bus_marshal_CFLAGS = \
3143 test_bus_signature_SOURCES = \
3144 src/libsystemd/sd-bus/test-bus-signature.c
3146 test_bus_signature_LDADD = \
3147 libsystemd-internal.la \
3148 libsystemd-shared.la
3150 test_bus_chat_SOURCES = \
3151 src/libsystemd/sd-bus/test-bus-chat.c
3153 test_bus_chat_CFLAGS = \
3157 test_bus_chat_LDADD = \
3158 libsystemd-internal.la \
3159 libsystemd-shared.la
3161 test_bus_cleanup_SOURCES = \
3162 src/libsystemd/sd-bus/test-bus-cleanup.c
3164 test_bus_cleanup_CFLAGS = \
3168 test_bus_cleanup_LDADD = \
3169 libsystemd-internal.la \
3170 libsystemd-shared.la
3172 test_bus_server_SOURCES = \
3173 src/libsystemd/sd-bus/test-bus-server.c
3175 test_bus_server_CFLAGS = \
3179 test_bus_server_LDADD = \
3180 libsystemd-internal.la \
3181 libsystemd-shared.la
3183 test_bus_objects_SOURCES = \
3184 src/libsystemd/sd-bus/test-bus-objects.c
3186 test_bus_objects_CFLAGS = \
3190 test_bus_objects_LDADD = \
3191 libsystemd-dump.la \
3192 libsystemd-internal.la \
3193 libsystemd-shared.la
3195 test_bus_error_SOURCES = \
3196 src/libsystemd/sd-bus/test-bus-error.c
3198 test_bus_error_LDADD = \
3199 libsystemd-internal.la \
3200 libsystemd-shared.la
3202 test_bus_gvariant_SOURCES = \
3203 src/libsystemd/sd-bus/test-bus-gvariant.c
3205 test_bus_gvariant_LDADD = \
3206 libsystemd-dump.la \
3207 libsystemd-internal.la \
3208 libsystemd-shared.la \
3211 test_bus_gvariant_CFLAGS = \
3215 test_bus_creds_SOURCES = \
3216 src/libsystemd/sd-bus/test-bus-creds.c
3218 test_bus_creds_LDADD = \
3219 libsystemd-dump.la \
3220 libsystemd-internal.la \
3221 libsystemd-shared.la
3223 test_bus_match_SOURCES = \
3224 src/libsystemd/sd-bus/test-bus-match.c
3226 test_bus_match_LDADD = \
3227 libsystemd-internal.la \
3228 libsystemd-shared.la
3230 test_bus_kernel_SOURCES = \
3231 src/libsystemd/sd-bus/test-bus-kernel.c
3233 test_bus_kernel_LDADD = \
3234 libsystemd-dump.la \
3235 libsystemd-internal.la \
3236 libsystemd-shared.la
3238 test_bus_kernel_bloom_SOURCES = \
3239 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3241 test_bus_kernel_bloom_LDADD = \
3242 libsystemd-internal.la \
3243 libsystemd-shared.la
3245 test_bus_kernel_benchmark_SOURCES = \
3246 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3248 test_bus_kernel_benchmark_LDADD = \
3249 libsystemd-internal.la \
3250 libsystemd-shared.la
3252 test_bus_zero_copy_SOURCES = \
3253 src/libsystemd/sd-bus/test-bus-zero-copy.c
3255 test_bus_zero_copy_LDADD = \
3256 libsystemd-dump.la \
3257 libsystemd-internal.la \
3258 libsystemd-shared.la
3260 test_bus_introspect_SOURCES = \
3261 src/libsystemd/sd-bus/test-bus-introspect.c
3263 test_bus_introspect_LDADD = \
3264 libsystemd-internal.la \
3265 libsystemd-shared.la
3267 test_event_SOURCES = \
3268 src/libsystemd/sd-event/test-event.c
3270 test_event_LDADD = \
3271 libsystemd-internal.la \
3272 libsystemd-shared.la
3274 test_rtnl_SOURCES = \
3275 src/libsystemd/sd-rtnl/test-rtnl.c
3278 libsystemd-internal.la \
3279 libsystemd-shared.la
3281 test_local_addresses_SOURCES = \
3282 src/libsystemd/sd-rtnl/test-local-addresses.c
3284 test_local_addresses_LDADD = \
3285 libsystemd-internal.la \
3286 libsystemd-shared.la
3288 test_resolve_SOURCES = \
3289 src/libsystemd/sd-resolve/test-resolve.c
3291 test_resolve_LDADD = \
3292 libsystemd-resolve.la \
3293 libsystemd-internal.la \
3294 libsystemd-shared.la
3296 test_resolve_CFLAGS = \
3301 src/libsystemd/sd-bus/busctl.c \
3302 src/libsystemd/sd-bus/busctl-introspect.c \
3303 src/libsystemd/sd-bus/busctl-introspect.h
3306 libsystemd-dump.la \
3307 libsystemd-internal.la \
3308 libsystemd-shared.la
3310 # ------------------------------------------------------------------------------
3311 noinst_LTLIBRARIES += \
3312 libsystemd-network.la
3314 libsystemd_network_la_CFLAGS = \
3318 libsystemd_network_la_SOURCES = \
3319 src/systemd/sd-dhcp-client.h \
3320 src/systemd/sd-dhcp-server.h \
3321 src/systemd/sd-dhcp-lease.h \
3322 src/systemd/sd-ipv4ll.h \
3323 src/systemd/sd-icmp6-nd.h \
3324 src/systemd/sd-dhcp6-client.h \
3325 src/systemd/sd-dhcp6-lease.h \
3326 src/systemd/sd-pppoe.h \
3327 src/systemd/sd-lldp.h \
3328 src/libsystemd-network/sd-dhcp-client.c \
3329 src/libsystemd-network/sd-dhcp-server.c \
3330 src/libsystemd-network/dhcp-network.c \
3331 src/libsystemd-network/dhcp-option.c \
3332 src/libsystemd-network/dhcp-packet.c \
3333 src/libsystemd-network/dhcp-internal.h \
3334 src/libsystemd-network/dhcp-server-internal.h \
3335 src/libsystemd-network/dhcp-protocol.h \
3336 src/libsystemd-network/dhcp-lease-internal.h \
3337 src/libsystemd-network/sd-dhcp-lease.c \
3338 src/libsystemd-network/sd-ipv4ll.c \
3339 src/libsystemd-network/ipv4ll-network.c \
3340 src/libsystemd-network/ipv4ll-packet.c \
3341 src/libsystemd-network/ipv4ll-internal.h \
3342 src/libsystemd-network/sd-pppoe.c \
3343 src/libsystemd-network/network-internal.c \
3344 src/libsystemd-network/network-internal.h \
3345 src/libsystemd-network/sd-icmp6-nd.c \
3346 src/libsystemd-network/sd-dhcp6-client.c \
3347 src/libsystemd-network/dhcp6-internal.h \
3348 src/libsystemd-network/dhcp6-protocol.h \
3349 src/libsystemd-network/dhcp6-network.c \
3350 src/libsystemd-network/dhcp6-option.c \
3351 src/libsystemd-network/dhcp6-lease-internal.h \
3352 src/libsystemd-network/sd-dhcp6-lease.c \
3353 src/libsystemd-network/dhcp-identifier.h \
3354 src/libsystemd-network/dhcp-identifier.c \
3355 src/libsystemd-network/lldp.h \
3356 src/libsystemd-network/lldp-tlv.h \
3357 src/libsystemd-network/lldp-tlv.c \
3358 src/libsystemd-network/lldp-network.h \
3359 src/libsystemd-network/lldp-network.c \
3360 src/libsystemd-network/lldp-port.h \
3361 src/libsystemd-network/lldp-port.c \
3362 src/libsystemd-network/lldp-internal.h \
3363 src/libsystemd-network/lldp-internal.c \
3364 src/libsystemd-network/lldp-util.h \
3365 src/libsystemd-network/sd-lldp.c
3367 libsystemd_network_la_LIBADD = \
3368 libudev-internal.la \
3369 libsystemd-label.la \
3370 libsystemd-internal.la \
3371 libsystemd-shared.la \
3374 test_dhcp_option_SOURCES = \
3375 src/libsystemd-network/dhcp-protocol.h \
3376 src/libsystemd-network/dhcp-internal.h \
3377 src/libsystemd-network/test-dhcp-option.c
3379 test_dhcp_option_LDADD = \
3380 libsystemd-network.la \
3381 libsystemd-internal.la \
3382 libsystemd-shared.la
3384 test_dhcp_client_SOURCES = \
3385 src/systemd/sd-dhcp-client.h \
3386 src/libsystemd-network/dhcp-protocol.h \
3387 src/libsystemd-network/dhcp-internal.h \
3388 src/libsystemd-network/test-dhcp-client.c
3390 test_dhcp_client_LDADD = \
3391 libsystemd-network.la \
3392 libsystemd-label.la \
3393 libsystemd-internal.la \
3394 libsystemd-shared.la
3396 test_dhcp_server_SOURCES = \
3397 src/libsystemd-network/test-dhcp-server.c
3399 test_dhcp_server_LDADD = \
3400 libsystemd-network.la \
3401 libsystemd-internal.la \
3402 libsystemd-shared.la
3404 test_ipv4ll_SOURCES = \
3405 src/systemd/sd-ipv4ll.h \
3406 src/libsystemd-network/ipv4ll-internal.h \
3407 src/libsystemd-network/test-ipv4ll.c
3409 test_ipv4ll_LDADD = \
3410 libsystemd-network.la \
3411 libsystemd-label.la \
3412 libsystemd-internal.la \
3413 libsystemd-shared.la
3415 test_pppoe_SOURCES = \
3416 src/systemd/sd-pppoe.h \
3417 src/libsystemd-network/test-pppoe.c
3419 test_pppoe_LDADD = \
3420 libsystemd-network.la \
3421 libsystemd-shared.la
3423 test_icmp6_rs_SOURCES = \
3424 src/systemd/sd-dhcp6-client.h \
3425 src/systemd/sd-icmp6-nd.h \
3426 src/libsystemd-network/dhcp6-internal.h \
3427 src/libsystemd-network/test-icmp6-rs.c \
3428 src/libsystemd-network/dhcp-identifier.h \
3429 src/libsystemd-network/dhcp-identifier.c
3431 test_icmp6_rs_LDADD = \
3432 libsystemd-network.la \
3433 libsystemd-internal.la \
3434 libsystemd-shared.la
3436 test_dhcp6_client_SOURCES = \
3437 src/systemd/sd-dhcp6-client.h \
3438 src/libsystemd-network/dhcp6-internal.h \
3439 src/libsystemd-network/test-dhcp6-client.c \
3440 src/libsystemd-network/dhcp-identifier.h \
3441 src/libsystemd-network/dhcp-identifier.c
3443 test_dhcp6_client_LDADD = \
3444 libsystemd-network.la \
3445 libsystemd-internal.la \
3446 libsystemd-shared.la
3448 test_lldp_SOURCES = \
3449 src/libsystemd-network/lldp.h \
3450 src/libsystemd-network/lldp-tlv.h \
3451 src/libsystemd-network/lldp-tlv.c \
3452 src/libsystemd-network/test-lldp.c
3455 libsystemd-network.la \
3456 libsystemd-internal.la \
3457 libsystemd-shared.la
3471 # ------------------------------------------------------------------------------
3473 noinst_LTLIBRARIES += \
3474 libsystemd-terminal.la
3476 rootlibexec_PROGRAMS += \
3479 noinst_PROGRAMS += \
3484 dist_pkgdata_DATA += \
3485 src/libsystemd-terminal/unifont-glyph-array.bin
3487 nodist_userunit_DATA += \
3488 units/user/systemd-consoled.service
3490 USER_DEFAULT_TARGET_WANTS += \
3491 systemd-consoled.service
3500 units/user/systemd-consoled.service.in
3502 libsystemd_terminal_la_CFLAGS = \
3506 libsystemd_terminal_la_SOURCES = \
3507 src/libsystemd-terminal/grdev.h \
3508 src/libsystemd-terminal/grdev-internal.h \
3509 src/libsystemd-terminal/grdev.c \
3510 src/libsystemd-terminal/grdev-drm.c \
3511 src/libsystemd-terminal/idev.h \
3512 src/libsystemd-terminal/idev-internal.h \
3513 src/libsystemd-terminal/idev.c \
3514 src/libsystemd-terminal/idev-evdev.c \
3515 src/libsystemd-terminal/idev-keyboard.c \
3516 src/libsystemd-terminal/sysview.h \
3517 src/libsystemd-terminal/sysview-internal.h \
3518 src/libsystemd-terminal/sysview.c \
3519 src/libsystemd-terminal/term.h \
3520 src/libsystemd-terminal/term-internal.h \
3521 src/libsystemd-terminal/term-charset.c \
3522 src/libsystemd-terminal/term-page.c \
3523 src/libsystemd-terminal/term-parser.c \
3524 src/libsystemd-terminal/term-screen.c \
3525 src/libsystemd-terminal/term-wcwidth.c \
3526 src/libsystemd-terminal/unifont.h \
3527 src/libsystemd-terminal/unifont-def.h \
3528 src/libsystemd-terminal/unifont.c
3530 libsystemd_terminal_la_LIBADD = \
3531 libudev-internal.la \
3532 libsystemd-internal.la \
3533 libsystemd-shared.la \
3536 systemd_consoled_CFLAGS = \
3540 systemd_consoled_SOURCES = \
3541 src/console/consoled.h \
3542 src/console/consoled.c \
3543 src/console/consoled-display.c \
3544 src/console/consoled-manager.c \
3545 src/console/consoled-session.c \
3546 src/console/consoled-terminal.c \
3547 src/console/consoled-workspace.c
3549 systemd_consoled_LDADD = \
3550 libsystemd-terminal.la \
3551 libsystemd-internal.la \
3552 libsystemd-shared.la \
3555 systemd_evcat_CFLAGS = \
3559 systemd_evcat_SOURCES = \
3560 src/libsystemd-terminal/evcat.c
3562 systemd_evcat_LDADD = \
3563 libsystemd-terminal.la \
3564 libsystemd-internal.la \
3565 libsystemd-shared.la \
3568 systemd_modeset_CFLAGS = \
3572 systemd_modeset_SOURCES = \
3573 src/libsystemd-terminal/modeset.c
3575 systemd_modeset_LDADD = \
3576 libsystemd-terminal.la \
3577 libsystemd-internal.la \
3578 libsystemd-shared.la \
3581 systemd_subterm_SOURCES = \
3582 src/libsystemd-terminal/subterm.c
3584 systemd_subterm_LDADD = \
3585 libsystemd-terminal.la \
3586 libsystemd-internal.la \
3587 libsystemd-shared.la
3589 test_term_page_SOURCES = \
3590 src/libsystemd-terminal/test-term-page.c
3592 test_term_page_LDADD = \
3593 libsystemd-terminal.la \
3594 libsystemd-internal.la \
3595 libsystemd-shared.la
3597 test_term_parser_SOURCES = \
3598 src/libsystemd-terminal/test-term-parser.c
3600 test_term_parser_LDADD = \
3601 libsystemd-terminal.la \
3602 libsystemd-internal.la \
3603 libsystemd-shared.la
3605 test_unifont_SOURCES = \
3606 src/libsystemd-terminal/test-unifont.c
3608 test_unifont_LDADD = \
3609 libsystemd-terminal.la \
3610 libsystemd-internal.la \
3611 libsystemd-shared.la
3613 src/libsystemd-terminal/unifont-glyph-array.bin: tools/compile-unifont.py $(UNIFONT)
3614 $(AM_V_GEN)$(PYTHON) $< <$(UNIFONT) >$@
3616 # ------------------------------------------------------------------------------
3626 include_HEADERS += \
3627 src/libudev/libudev.h
3629 lib_LTLIBRARIES += \
3632 libudev_la_SOURCES =\
3633 src/libudev/libudev.sym \
3634 src/libudev/libudev-private.h \
3635 src/libudev/libudev.c \
3636 src/libudev/libudev-list.c \
3637 src/libudev/libudev-util.c \
3638 src/libudev/libudev-device.c \
3639 src/libudev/libudev-enumerate.c \
3640 src/libudev/libudev-monitor.c \
3641 src/libudev/libudev-queue.c \
3642 src/libudev/libudev-hwdb.c
3644 libudev_la_CFLAGS = \
3648 libudev_la_LDFLAGS = \
3650 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3651 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3653 libudev_la_LIBADD = \
3654 libsystemd-internal.la \
3655 libsystemd-shared.la
3657 pkgconfiglib_DATA += \
3658 src/libudev/libudev.pc
3661 src/libudev/libudev.pc.in
3664 src/libudev/libudev.pc \
3669 $(AM_V_at)$(MKDIR_P) $(dir $@)
3670 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3673 $(AM_V_at)$(MKDIR_P) $(dir $@)
3674 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3676 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3677 libudev-install-hook:
3678 libname=libudev.so && $(move-to-rootlibdir)
3680 libudev-uninstall-hook:
3681 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3683 INSTALL_EXEC_HOOKS += libudev-install-hook
3684 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3686 # ------------------------------------------------------------------------------
3687 noinst_LTLIBRARIES += \
3690 libudev_internal_la_SOURCES =\
3691 $(libudev_la_SOURCES) \
3692 src/libudev/libudev-device-private.c
3694 libudev_internal_la_CFLAGS = \
3696 -fvisibility=default
3698 # ------------------------------------------------------------------------------
3700 $(sysconfdir)/udev/rules.d
3702 dist_network_DATA = \
3703 network/99-default.link \
3704 network/80-container-host0.network \
3705 network/80-container-ve.network
3707 dist_udevrules_DATA += \
3708 rules/42-usb-hid-pm.rules \
3709 rules/50-udev-default.rules \
3710 rules/60-drm.rules \
3711 rules/60-keyboard.rules \
3712 rules/60-persistent-storage-tape.rules \
3713 rules/60-persistent-serial.rules \
3714 rules/60-persistent-input.rules \
3715 rules/60-persistent-alsa.rules \
3716 rules/60-persistent-storage.rules \
3717 rules/64-btrfs.rules \
3718 rules/70-mouse.rules \
3719 rules/70-touchpad.rules \
3720 rules/75-net-description.rules \
3721 rules/75-tty-description.rules \
3722 rules/78-sound-card.rules \
3723 rules/80-net-setup-link.rules \
3724 rules/95-udev-late.rules
3726 nodist_udevrules_DATA += \
3727 rules/99-systemd.rules
3729 udevconfdir = $(sysconfdir)/udev
3730 dist_udevconf_DATA = \
3733 sharepkgconfigdir = $(datadir)/pkgconfig
3734 sharepkgconfig_DATA = \
3738 rules/99-systemd.rules.in \
3742 rules/99-systemd.rules \
3746 units/systemd-udevd.service.in \
3747 units/systemd-udev-trigger.service.in \
3748 units/systemd-udev-settle.service.in
3751 units/systemd-udevd.service \
3752 units/systemd-udev-trigger.service \
3753 units/systemd-udev-settle.service
3755 SOCKETS_TARGET_WANTS += \
3756 systemd-udevd-control.socket \
3757 systemd-udevd-kernel.socket
3759 SYSINIT_TARGET_WANTS += \
3760 systemd-udevd.service \
3761 systemd-udev-trigger.service
3763 rootbin_PROGRAMS += \
3766 rootlibexec_PROGRAMS += \
3769 noinst_LTLIBRARIES += \
3772 src/udev/keyboard-keys.txt:
3773 $(AM_V_at)$(MKDIR_P) $(dir $@)
3774 $(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/' > $@
3776 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3777 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3779 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3780 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3782 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3783 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3785 libudev_core_la_SOURCES = \
3787 src/udev/udev-event.c \
3788 src/udev/udev-watch.c \
3789 src/udev/udev-node.c \
3790 src/udev/udev-rules.c \
3791 src/udev/udev-ctrl.c \
3792 src/udev/udev-builtin.c \
3793 src/udev/udev-builtin-btrfs.c \
3794 src/udev/udev-builtin-hwdb.c \
3795 src/udev/udev-builtin-input_id.c \
3796 src/udev/udev-builtin-keyboard.c \
3797 src/udev/udev-builtin-net_id.c \
3798 src/udev/udev-builtin-net_setup_link.c \
3799 src/udev/udev-builtin-path_id.c \
3800 src/udev/udev-builtin-usb_id.c \
3801 src/udev/net/link-config.h \
3802 src/udev/net/link-config.c \
3803 src/udev/net/ethtool-util.h \
3804 src/udev/net/ethtool-util.c
3806 nodist_libudev_core_la_SOURCES = \
3807 src/udev/keyboard-keys-from-name.h \
3808 src/udev/keyboard-keys-to-name.h \
3809 src/udev/net/link-config-gperf.c
3812 $(nodist_libudev_core_la_SOURCES)
3815 src/udev/keyboard-keys-from-name.gperf \
3816 src/udev/keyboard-keys.txt \
3817 src/udev/net/link-config-gperf.c
3820 src/udev/net/link-config-gperf.gperf
3822 libudev_core_la_CFLAGS = \
3827 libudev_core_la_LIBADD = \
3828 libudev-internal.la \
3829 libsystemd-label.la \
3830 libsystemd-internal.la \
3831 libsystemd-network.la \
3832 libsystemd-shared.la \
3837 libudev_core_la_SOURCES += \
3838 src/udev/udev-builtin-kmod.c
3840 dist_udevrules_DATA += \
3841 rules/80-drivers.rules
3845 libudev_core_la_SOURCES += \
3846 src/udev/udev-builtin-blkid.c
3850 libudev_core_la_SOURCES += \
3851 src/udev/udev-builtin-uaccess.c \
3852 src/login/logind-acl.c \
3853 src/libsystemd/sd-login/sd-login.c \
3854 src/systemd/sd-login.h
3856 libudev_core_la_LIBADD += \
3860 systemd_udevd_SOURCES = \
3863 systemd_udevd_LDADD = \
3867 src/udev/udevadm.c \
3868 src/udev/udevadm-info.c \
3869 src/udev/udevadm-control.c \
3870 src/udev/udevadm-monitor.c \
3871 src/udev/udevadm-hwdb.c \
3872 src/udev/udevadm-settle.c \
3873 src/udev/udevadm-trigger.c \
3874 src/udev/udevadm-test.c \
3875 src/udev/udevadm-test-builtin.c \
3876 src/udev/udevadm-util.c \
3877 src/udev/udevadm-util.h
3882 # ------------------------------------------------------------------------------
3885 $(sysconfdir)/udev/hwdb.d
3887 systemd_hwdb_SOURCES = \
3888 src/libsystemd/sd-hwdb/hwdb-internal.h \
3891 systemd_hwdb_LDADD = \
3892 libsystemd-shared.la \
3893 libsystemd-internal.la \
3896 rootbin_PROGRAMS += \
3899 dist_udevhwdb_DATA = \
3900 hwdb/20-pci-vendor-model.hwdb \
3901 hwdb/20-pci-classes.hwdb \
3902 hwdb/20-usb-vendor-model.hwdb \
3903 hwdb/20-usb-classes.hwdb \
3904 hwdb/20-sdio-vendor-model.hwdb \
3905 hwdb/20-sdio-classes.hwdb \
3906 hwdb/20-bluetooth-vendor-product.hwdb \
3907 hwdb/20-acpi-vendor.hwdb \
3909 hwdb/20-net-ifname.hwdb \
3910 hwdb/60-keyboard.hwdb \
3911 hwdb/70-mouse.hwdb \
3912 hwdb/70-touchpad.hwdb
3915 units/systemd-hwdb-update.service.in
3918 units/systemd-hwdb-update.service
3920 SYSINIT_TARGET_WANTS += \
3921 systemd-hwdb-update.service
3923 # Update hwdb on installation. Do not bother if installing
3924 # in DESTDIR, since this is likely for packaging purposes.
3926 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3928 INSTALL_DATA_HOOKS += \
3932 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3935 # ------------------------------------------------------------------------------
3942 test/rule-syntax-check.py \
3947 test/sysv-generator-test.py \
3956 test_libudev_SOURCES = \
3957 src/test/test-libudev.c
3959 test_libudev_LDADD = \
3960 libsystemd-label.la \
3961 libudev-internal.la \
3962 libsystemd-shared.la \
3963 libsystemd-internal.la
3965 test_udev_SOURCES = \
3966 src/test/test-udev.c
3975 test_udev_LDADD += \
3982 # packed sysfs test tree
3984 $(AM_V_at)$(MKDIR_P) $(dir $@)
3985 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3989 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3994 test/rule-syntax-check.py \
3995 test/sysv-generator-test.py \
3999 # ------------------------------------------------------------------------------
4001 src/udev/ata_id/ata_id.c
4004 libudev-internal.la \
4005 libsystemd-shared.la
4007 udevlibexec_PROGRAMS += \
4010 # ------------------------------------------------------------------------------
4011 cdrom_id_SOURCES = \
4012 src/udev/cdrom_id/cdrom_id.c
4015 libudev-internal.la \
4016 libsystemd-shared.la
4018 udevlibexec_PROGRAMS += \
4021 dist_udevrules_DATA += \
4022 rules/60-cdrom_id.rules
4024 # ------------------------------------------------------------------------------
4026 src/udev/collect/collect.c
4029 libudev-internal.la \
4030 libsystemd-shared.la
4032 udevlibexec_PROGRAMS += \
4035 # ------------------------------------------------------------------------------
4037 src/udev/scsi_id/scsi_id.c \
4038 src/udev/scsi_id/scsi_serial.c \
4039 src/udev/scsi_id/scsi.h \
4040 src/udev/scsi_id/scsi_id.h
4043 libudev-internal.la \
4044 libsystemd-shared.la
4046 udevlibexec_PROGRAMS += \
4050 src/udev/scsi_id/README
4052 # ------------------------------------------------------------------------------
4054 src/udev/v4l_id/v4l_id.c
4057 libudev-internal.la \
4058 libsystemd-shared.la
4060 udevlibexec_PROGRAMS += \
4063 dist_udevrules_DATA += \
4064 rules/60-persistent-v4l.rules
4066 # ------------------------------------------------------------------------------
4067 accelerometer_SOURCES = \
4068 src/udev/accelerometer/accelerometer.c
4070 accelerometer_LDADD = \
4071 libudev-internal.la \
4072 libsystemd-shared.la
4074 udevlibexec_PROGRAMS += \
4077 dist_udevrules_DATA += \
4078 rules/61-accelerometer.rules
4080 # ------------------------------------------------------------------------------
4087 libgudev_includedir = \
4088 $(includedir)/gudev-1.0/gudev
4090 libgudev_include_HEADERS = \
4092 src/gudev/gudevenums.h \
4093 src/gudev/gudevenumtypes.h \
4094 src/gudev/gudevtypes.h \
4095 src/gudev/gudevclient.h \
4096 src/gudev/gudevdevice.h \
4097 src/gudev/gudevenumerator.h
4099 lib_LTLIBRARIES += libgudev-1.0.la
4101 pkgconfiglib_DATA += \
4102 src/gudev/gudev-1.0.pc
4105 src/gudev/gudev-1.0.pc
4107 libgudev_1_0_la_SOURCES = \
4108 src/gudev/libgudev-1.0.sym \
4109 src/gudev/gudevenums.h \
4110 src/gudev/gudevenumtypes.h \
4111 src/gudev/gudevenumtypes.h\
4112 src/gudev/gudevtypes.h \
4113 src/gudev/gudevclient.h \
4114 src/gudev/gudevclient.c \
4115 src/gudev/gudevdevice.h \
4116 src/gudev/gudevdevice.c \
4117 src/gudev/gudevenumerator.h \
4118 src/gudev/gudevenumerator.c \
4119 src/gudev/gudevprivate.h
4121 nodist_libgudev_1_0_la_SOURCES = \
4122 src/gudev/gudevmarshal.h \
4123 src/gudev/gudevmarshal.c \
4124 src/gudev/gudevenumtypes.h \
4125 src/gudev/gudevenumtypes.c
4128 $(nodist_libgudev_1_0_la_SOURCES)
4130 libgudev_1_0_la_CPPFLAGS = \
4132 -I$(top_builddir)/src\
4133 -I$(top_srcdir)/src\
4134 -I$(top_builddir)/src/gudev \
4135 -I$(top_srcdir)/src/gudev \
4136 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
4137 -D_GUDEV_COMPILATION \
4138 -DG_LOG_DOMAIN=\"GUdev\"
4140 libgudev_1_0_la_CFLAGS = \
4142 -fvisibility=default \
4145 libgudev_1_0_la_LIBADD = \
4149 libgudev_1_0_la_LDFLAGS = \
4151 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
4154 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
4156 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
4157 $(AM_V_at)$(MKDIR_P) $(dir $@)
4158 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
4160 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
4161 $(AM_V_at)$(MKDIR_P) $(dir $@)
4162 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
4163 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
4165 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
4166 $(AM_V_at)$(MKDIR_P) $(dir $@)
4167 $(AM_V_GEN)glib-mkenums --template $^ > $@
4169 if HAVE_INTROSPECTION
4170 -include $(INTROSPECTION_MAKEFILE)
4172 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
4174 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
4176 src_gudev_GUdev_1_0_gir_CFLAGS = \
4179 -D_GUDEV_COMPILATION \
4180 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
4181 -I$(top_srcdir)/src \
4182 -I$(top_builddir)/src \
4183 -I$(top_srcdir)/src/gudev \
4184 -I$(top_builddir)/src/gudev
4186 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
4188 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
4189 --pkg-export=gudev-1.0 \
4192 src_gudev_GUdev_1_0_gir_FILES = \
4194 src/gudev/gudevtypes.h \
4195 src/gudev/gudevenums.h \
4196 src/gudev/gudevenumtypes.h \
4197 src/gudev/gudevclient.h \
4198 src/gudev/gudevdevice.h \
4199 src/gudev/gudevenumerator.h \
4200 src/gudev/gudevclient.c \
4201 src/gudev/gudevdevice.c \
4202 src/gudev/gudevenumerator.c
4204 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
4205 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
4207 girdir = $(datadir)/gir-1.0
4209 src/gudev/GUdev-1.0.gir
4211 typelibsdir = $(libdir)/girepository-1.0
4213 src/gudev/GUdev-1.0.typelib
4215 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
4216 endif # HAVE_INTROSPECTION
4220 src/gudev/gudev-1.0.pc.in \
4221 src/gudev/gudevmarshal.list \
4222 src/gudev/gudevenumtypes.h.template \
4223 src/gudev/gudevenumtypes.c.template \
4224 src/gudev/gjs-example.js \
4225 src/gudev/seed-example-enum.js \
4226 src/gudev/seed-example.js
4228 # ------------------------------------------------------------------------------
4229 mtd_probe_SOURCES = \
4230 src/udev/mtd_probe/mtd_probe.c \
4231 src/udev/mtd_probe/mtd_probe.h \
4232 src/udev/mtd_probe/probe_smartmedia.c
4234 dist_udevrules_DATA += \
4235 rules/75-probe_mtd.rules
4237 udevlibexec_PROGRAMS += \
4240 # ------------------------------------------------------------------------------
4241 test_id128_SOURCES = \
4242 src/test/test-id128.c
4244 test_id128_LDADD = \
4245 libsystemd-internal.la \
4246 libsystemd-shared.la
4251 # ------------------------------------------------------------------------------
4253 rootlibexec_PROGRAMS += \
4256 systemd_activate_SOURCES = \
4257 src/activate/activate.c
4259 systemd_activate_LDADD = \
4260 libsystemd-label.la \
4261 libsystemd-internal.la \
4262 libsystemd-shared.la
4264 # ------------------------------------------------------------------------------
4265 systemd_journald_SOURCES = \
4266 src/journal/journald.c \
4267 src/journal/journald-server.h
4269 systemd_journald_LDADD = \
4270 libsystemd-journal-core.la \
4271 libsystemd-internal.la \
4272 libsystemd-shared.la
4274 systemd_cat_SOURCES = \
4277 systemd_cat_LDADD = \
4278 libsystemd-journal-core.la
4281 rootlibexec_PROGRAMS += \
4282 systemd-journal-remote
4284 systemd_journal_remote_SOURCES = \
4285 src/journal-remote/journal-remote-parse.h \
4286 src/journal-remote/journal-remote-parse.c \
4287 src/journal-remote/journal-remote-write.h \
4288 src/journal-remote/journal-remote-write.c \
4289 src/journal-remote/journal-remote.h \
4290 src/journal-remote/journal-remote.c
4292 systemd_journal_remote_LDADD = \
4293 libsystemd-internal.la \
4294 libsystemd-journal-core.la
4296 systemd_journal_remote_SOURCES += \
4297 src/journal-remote/microhttpd-util.h \
4298 src/journal-remote/microhttpd-util.c
4300 systemd_journal_remote_CFLAGS = \
4302 $(MICROHTTPD_CFLAGS)
4304 systemd_journal_remote_LDADD += \
4308 dist_sysusers_DATA += \
4309 sysusers.d/systemd-remote.conf
4313 dist_tmpfiles_DATA += \
4314 tmpfiles.d/systemd-remote.conf
4318 systemd_journal_remote_LDADD += \
4321 # systemd-journal-remote make sense mostly with full crypto stack
4322 dist_systemunit_DATA += \
4323 units/systemd-journal-remote.socket
4325 nodist_systemunit_DATA += \
4326 units/systemd-journal-remote.service
4329 units/systemd-journal-remote.service.in
4331 journal-remote-install-hook: journal-install-hook
4332 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4333 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4334 -chmod 755 $(DESTDIR)/var/log/journal/remote
4336 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4340 nodist_pkgsysconf_DATA += \
4341 src/journal-remote/journal-remote.conf
4344 src/journal-remote/journal-remote.conf.in
4347 src/journal-remote/journal-remote.conf
4351 rootlibexec_PROGRAMS += \
4352 systemd-journal-upload
4354 systemd_journal_upload_SOURCES = \
4355 src/journal-remote/journal-upload.h \
4356 src/journal-remote/journal-upload.c \
4357 src/journal-remote/journal-upload-journal.c
4359 systemd_journal_upload_CFLAGS = \
4363 systemd_journal_upload_LDADD = \
4364 libsystemd-internal.la \
4365 libsystemd-journal-internal.la \
4366 libsystemd-shared.la \
4369 nodist_systemunit_DATA += \
4370 units/systemd-journal-upload.service
4373 units/systemd-journal-upload.service.in
4375 nodist_pkgsysconf_DATA += \
4376 src/journal-remote/journal-upload.conf
4379 src/journal-remote/journal-upload.conf.in
4382 src/journal-remote/journal-upload.conf
4385 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4386 journalctl_CFLAGS = \
4389 journalctl_SOURCES = \
4390 src/journal/journalctl.c
4392 journalctl_LDADD = \
4393 libsystemd-journal-internal.la \
4394 libsystemd-internal.la \
4395 libsystemd-logs.la \
4396 libsystemd-shared.la
4399 journalctl_LDADD += \
4404 journalctl_SOURCES += \
4405 src/journal/journal-qrcode.c \
4406 src/journal/journal-qrcode.h
4408 journalctl_CFLAGS += \
4411 journalctl_LDADD += \
4415 test_journal_SOURCES = \
4416 src/journal/test-journal.c
4418 test_journal_LDADD = \
4419 libsystemd-journal-core.la
4421 test_journal_send_SOURCES = \
4422 src/journal/test-journal-send.c
4424 test_journal_send_LDADD = \
4425 libsystemd-journal-core.la
4427 test_journal_syslog_SOURCES = \
4428 src/journal/test-journal-syslog.c
4430 test_journal_syslog_LDADD = \
4431 libsystemd-journal-core.la
4433 test_journal_match_SOURCES = \
4434 src/journal/test-journal-match.c
4436 test_journal_match_LDADD = \
4437 libsystemd-journal-core.la
4439 test_journal_enum_SOURCES = \
4440 src/journal/test-journal-enum.c
4442 test_journal_enum_LDADD = \
4443 libsystemd-journal-core.la
4445 test_journal_stream_SOURCES = \
4446 src/journal/test-journal-stream.c
4448 test_journal_stream_LDADD = \
4449 libsystemd-journal-core.la
4451 test_journal_flush_SOURCES = \
4452 src/journal/test-journal-flush.c
4454 test_journal_flush_LDADD = \
4455 libsystemd-journal-core.la
4457 test_journal_init_SOURCES = \
4458 src/journal/test-journal-init.c
4460 test_journal_init_LDADD = \
4461 libsystemd-journal-core.la
4463 test_journal_verify_SOURCES = \
4464 src/journal/test-journal-verify.c
4466 test_journal_verify_LDADD = \
4467 libsystemd-journal-core.la
4469 test_journal_interleaving_SOURCES = \
4470 src/journal/test-journal-interleaving.c
4472 test_journal_interleaving_LDADD = \
4473 libsystemd-journal-core.la
4475 test_mmap_cache_SOURCES = \
4476 src/journal/test-mmap-cache.c
4478 test_mmap_cache_LDADD = \
4479 libsystemd-journal-core.la
4481 test_catalog_SOURCES = \
4482 src/journal/test-catalog.c
4484 test_catalog_CPPFLAGS = \
4486 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4488 test_catalog_LDADD = \
4489 libsystemd-journal-core.la
4491 test_compress_SOURCES = \
4492 src/journal/test-compress.c
4494 test_compress_LDADD = \
4495 libsystemd-journal-internal.la \
4496 libsystemd-shared.la
4498 test_compress_benchmark_SOURCES = \
4499 src/journal/test-compress-benchmark.c
4501 test_compress_benchmark_LDADD = \
4502 libsystemd-journal-internal.la \
4503 libsystemd-shared.la
4505 libsystemd_journal_core_la_SOURCES = \
4506 src/journal/journald-kmsg.c \
4507 src/journal/journald-kmsg.h \
4508 src/journal/journald-syslog.c \
4509 src/journal/journald-syslog.h \
4510 src/journal/journald-stream.c \
4511 src/journal/journald-stream.h \
4512 src/journal/journald-server.c \
4513 src/journal/journald-server.h \
4514 src/journal/journald-console.c \
4515 src/journal/journald-console.h \
4516 src/journal/journald-wall.c \
4517 src/journal/journald-wall.h \
4518 src/journal/journald-native.c \
4519 src/journal/journald-native.h \
4520 src/journal/journald-audit.c \
4521 src/journal/journald-audit.h \
4522 src/journal/journald-rate-limit.c \
4523 src/journal/journald-rate-limit.h \
4524 src/journal/journal-internal.h
4526 nodist_libsystemd_journal_core_la_SOURCES = \
4527 src/journal/journald-gperf.c
4529 libsystemd_journal_core_la_LIBADD = \
4530 libsystemd-journal-internal.la \
4531 libudev-internal.la \
4532 libsystemd-label.la \
4533 libsystemd-internal.la \
4534 libsystemd-shared.la
4537 libsystemd_journal_core_la_LIBADD += \
4541 noinst_LTLIBRARIES += \
4542 libsystemd-journal-core.la
4544 journal-install-hook:
4545 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4546 -chown 0:0 $(DESTDIR)/var/log/journal
4547 -chmod 755 $(DESTDIR)/var/log/journal
4548 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4549 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4551 journal-uninstall-hook:
4552 -rmdir $(DESTDIR)/var/log/journal/remote
4553 -rmdir $(DESTDIR)/var/log/journal/
4555 INSTALL_EXEC_HOOKS += journal-install-hook
4556 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4558 # ------------------------------------------------------------------------------
4559 # Update catalog on installation. Do not bother if installing
4560 # in DESTDIR, since this is likely for packaging purposes.
4561 catalog-update-hook:
4562 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4564 INSTALL_DATA_HOOKS += \
4567 catalog-remove-hook:
4568 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4570 UNINSTALL_DATA_HOOKS += \
4579 test-journal-syslog \
4580 test-journal-match \
4581 test-journal-stream \
4583 test-journal-verify \
4584 test-journal-interleaving \
4585 test-journal-flush \
4592 test-compress-benchmark
4595 pkginclude_HEADERS += \
4596 src/systemd/sd-journal.h \
4597 src/systemd/sd-messages.h \
4598 src/systemd/_sd-common.h
4600 libsystemd_journal_internal_la_SOURCES = \
4601 src/journal/sd-journal.c \
4602 src/systemd/sd-journal.h \
4603 src/systemd/_sd-common.h \
4604 src/journal/journal-file.c \
4605 src/journal/journal-file.h \
4606 src/journal/journal-vacuum.c \
4607 src/journal/journal-vacuum.h \
4608 src/journal/journal-verify.c \
4609 src/journal/journal-verify.h \
4610 src/journal/lookup3.c \
4611 src/journal/lookup3.h \
4612 src/journal/journal-send.c \
4613 src/journal/journal-def.h \
4614 src/journal/compress.h \
4615 src/journal/catalog.c \
4616 src/journal/catalog.h \
4617 src/journal/mmap-cache.c \
4618 src/journal/mmap-cache.h \
4619 src/journal/compress.c
4621 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4622 libsystemd_journal_internal_la_CFLAGS = \
4625 libsystemd_journal_internal_la_LIBADD = \
4629 libsystemd_journal_internal_la_CFLAGS += \
4632 libsystemd_journal_internal_la_LIBADD += \
4637 libsystemd_journal_internal_la_LIBADD += \
4642 libsystemd_journal_internal_la_SOURCES += \
4643 src/journal/journal-authenticate.c \
4644 src/journal/journal-authenticate.h \
4645 src/journal/fsprg.c \
4648 libsystemd_journal_internal_la_LIBADD += \
4651 # fsprg.c is a drop-in file using void pointer arithmetic
4652 libsystemd_journal_internal_la_CFLAGS += \
4657 noinst_LTLIBRARIES += \
4658 libsystemd-journal-internal.la
4660 rootlibexec_PROGRAMS += \
4663 rootbin_PROGRAMS += \
4669 dist_systemunit_DATA += \
4670 units/systemd-journald.socket \
4671 units/systemd-journald-dev-log.socket \
4672 units/systemd-journald-audit.socket
4674 nodist_systemunit_DATA += \
4675 units/systemd-journald.service \
4676 units/systemd-journal-flush.service \
4677 units/systemd-journal-catalog-update.service
4679 dist_pkgsysconf_DATA += \
4680 src/journal/journald.conf
4682 dist_catalog_DATA = \
4683 catalog/systemd.fr.catalog \
4684 catalog/systemd.it.catalog \
4685 catalog/systemd.pl.catalog \
4686 catalog/systemd.pt_BR.catalog \
4687 catalog/systemd.ru.catalog \
4688 catalog/systemd.catalog
4690 SOCKETS_TARGET_WANTS += \
4691 systemd-journald.socket \
4692 systemd-journald-dev-log.socket \
4693 systemd-journald-audit.socket
4695 SYSINIT_TARGET_WANTS += \
4696 systemd-journald.service \
4697 systemd-journal-flush.service \
4698 systemd-journal-catalog-update.service
4701 units/systemd-journald.service.in \
4702 units/systemd-journal-flush.service.in \
4703 units/systemd-journal-catalog-update.service.in \
4704 src/journal/journald-gperf.gperf
4707 src/journal/journald-gperf.c
4709 # ------------------------------------------------------------------------------
4711 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4713 rootlibexec_PROGRAMS += \
4714 systemd-journal-gatewayd
4716 systemd_journal_gatewayd_SOURCES = \
4717 src/journal-remote/journal-gatewayd.c \
4718 src/journal-remote/microhttpd-util.h \
4719 src/journal-remote/microhttpd-util.c
4721 systemd_journal_gatewayd_LDADD = \
4722 libsystemd-logs.la \
4723 libsystemd-journal-internal.la \
4724 libsystemd-internal.la \
4725 libsystemd-shared.la \
4729 systemd_journal_gatewayd_LDADD += \
4733 systemd_journal_gatewayd_CFLAGS = \
4735 $(MICROHTTPD_CFLAGS)
4737 systemd_journal_gatewayd_CPPFLAGS = \
4739 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4741 dist_systemunit_DATA += \
4742 units/systemd-journal-gatewayd.socket
4744 nodist_systemunit_DATA += \
4745 units/systemd-journal-gatewayd.service
4747 dist_gatewayddocumentroot_DATA = \
4748 src/journal-remote/browse.html
4753 units/systemd-journal-gatewayd.service.in
4755 # ------------------------------------------------------------------------------
4757 systemd_socket_proxyd_SOURCES = \
4758 src/socket-proxy/socket-proxyd.c
4760 systemd_socket_proxyd_LDADD = \
4761 libsystemd-logs.la \
4762 libsystemd-internal.la \
4763 libsystemd-journal-internal.la \
4764 libsystemd-shared.la \
4765 libsystemd-resolve.la
4767 # ------------------------------------------------------------------------------
4769 systemd_coredump_SOURCES = \
4770 src/journal/coredump.c \
4771 src/journal/coredump-vacuum.c \
4772 src/journal/coredump-vacuum.h
4774 systemd_coredump_LDADD = \
4775 libsystemd-journal-internal.la \
4776 libsystemd-label.la \
4777 libsystemd-internal.la \
4778 libsystemd-shared.la
4781 systemd_coredump_SOURCES += \
4782 src/journal/stacktrace.c \
4783 src/journal/stacktrace.h
4785 systemd_coredump_LDADD += \
4789 rootlibexec_PROGRAMS += \
4792 dist_pkgsysconf_DATA += \
4793 src/journal/coredump.conf
4796 systemd_coredump_LDADD += \
4800 coredumpctl_SOURCES = \
4801 src/journal/coredumpctl.c
4803 coredumpctl_LDADD = \
4804 libsystemd-journal-internal.la \
4805 libsystemd-internal.la \
4806 libsystemd-shared.la
4812 test-coredump-vacuum
4814 test_coredump_vacuum_SOURCES = \
4815 src/journal/test-coredump-vacuum.c \
4816 src/journal/coredump-vacuum.c \
4817 src/journal/coredump-vacuum.h
4819 test_coredump_vacuum_LDADD = \
4820 libsystemd-internal.la \
4821 libsystemd-shared.la
4823 dist_bashcompletion_DATA += \
4824 shell-completion/bash/coredumpctl
4826 dist_zshcompletion_DATA += \
4827 shell-completion/zsh/_coredumpctl
4829 nodist_sysctl_DATA = \
4830 sysctl.d/50-coredump.conf
4833 sysctl.d/50-coredump.conf
4837 sysctl.d/50-coredump.conf.in
4839 # ------------------------------------------------------------------------------
4841 systemd_binfmt_SOURCES = \
4844 systemd_binfmt_LDADD = \
4845 libsystemd-shared.la
4847 rootlibexec_PROGRAMS += \
4850 dist_systemunit_DATA += \
4851 units/proc-sys-fs-binfmt_misc.automount \
4852 units/proc-sys-fs-binfmt_misc.mount
4854 nodist_systemunit_DATA += \
4855 units/systemd-binfmt.service
4858 $(prefix)/lib/binfmt.d \
4859 $(sysconfdir)/binfmt.d
4861 SYSINIT_TARGET_WANTS += \
4862 systemd-binfmt.service \
4863 proc-sys-fs-binfmt_misc.automount
4868 units/systemd-binfmt.service.in
4870 # ------------------------------------------------------------------------------
4872 systemd_vconsole_setup_SOURCES = \
4873 src/vconsole/vconsole-setup.c
4875 systemd_vconsole_setup_LDADD = \
4876 libsystemd-shared.la
4878 rootlibexec_PROGRAMS += \
4879 systemd-vconsole-setup
4881 nodist_systemunit_DATA += \
4882 units/systemd-vconsole-setup.service
4884 nodist_udevrules_DATA += \
4885 src/vconsole/90-vconsole.rules
4887 SYSINIT_TARGET_WANTS += \
4888 systemd-vconsole-setup.service
4891 src/vconsole/90-vconsole.rules
4895 src/vconsole/90-vconsole.rules.in \
4896 units/systemd-vconsole-setup.service.in
4898 # ------------------------------------------------------------------------------
4900 systemd_bootchart_SOURCES = \
4901 src/bootchart/bootchart.c \
4902 src/bootchart/bootchart.h \
4903 src/bootchart/store.c \
4904 src/bootchart/store.h \
4905 src/bootchart/svg.c \
4908 systemd_bootchart_LDADD = \
4909 libsystemd-journal-internal.la \
4910 libsystemd-shared.la
4912 rootlibexec_PROGRAMS += \
4915 dist_pkgsysconf_DATA += \
4916 src/bootchart/bootchart.conf
4918 nodist_systemunit_DATA += \
4919 units/systemd-bootchart.service
4922 units/systemd-bootchart.service.in
4925 units/systemd-bootchart.service
4928 # ------------------------------------------------------------------------------
4929 if ENABLE_QUOTACHECK
4930 rootlibexec_PROGRAMS += \
4933 nodist_systemunit_DATA += \
4934 units/systemd-quotacheck.service
4936 systemd_quotacheck_SOURCES = \
4937 src/quotacheck/quotacheck.c
4939 systemd_quotacheck_LDADD = \
4940 libsystemd-shared.la
4944 units/systemd-quotacheck.service.in
4946 nodist_systemunit_DATA += \
4947 units/quotaon.service
4949 # ------------------------------------------------------------------------------
4950 if ENABLE_RANDOMSEED
4951 rootlibexec_PROGRAMS += \
4954 nodist_systemunit_DATA += \
4955 units/systemd-random-seed.service
4957 systemd_random_seed_SOURCES = \
4958 src/random-seed/random-seed.c
4960 systemd_random_seed_LDADD = \
4961 libsystemd-label.la \
4962 libsystemd-shared.la
4964 SYSINIT_TARGET_WANTS += \
4965 systemd-random-seed.service
4970 units/systemd-random-seed.service.in
4972 # ------------------------------------------------------------------------------
4974 rootlibexec_PROGRAMS += \
4977 nodist_systemunit_DATA += \
4978 units/systemd-backlight@.service
4980 systemd_backlight_SOURCES = \
4981 src/backlight/backlight.c
4983 systemd_backlight_LDADD = \
4984 libsystemd-label.la \
4985 libudev-internal.la \
4986 libsystemd-shared.la
4990 units/systemd-backlight@.service.in
4992 # ------------------------------------------------------------------------------
4994 rootlibexec_PROGRAMS += \
4997 nodist_systemunit_DATA += \
4998 units/systemd-rfkill@.service
5000 systemd_rfkill_SOURCES = \
5003 systemd_rfkill_LDADD = \
5004 libsystemd-label.la \
5005 libudev-internal.la \
5006 libsystemd-shared.la
5010 units/systemd-rfkill@.service.in
5012 # ------------------------------------------------------------------------------
5013 if HAVE_LIBCRYPTSETUP
5014 rootlibexec_PROGRAMS += \
5017 systemgenerator_PROGRAMS += \
5018 systemd-cryptsetup-generator
5020 dist_systemunit_DATA += \
5021 units/cryptsetup.target \
5022 units/cryptsetup-pre.target
5024 systemd_cryptsetup_SOURCES = \
5025 src/cryptsetup/cryptsetup.c
5027 systemd_cryptsetup_CFLAGS = \
5029 $(LIBCRYPTSETUP_CFLAGS)
5031 systemd_cryptsetup_LDADD = \
5032 libsystemd-label.la \
5033 libudev-internal.la \
5034 libsystemd-shared.la \
5035 $(LIBCRYPTSETUP_LIBS)
5037 systemd_cryptsetup_generator_SOURCES = \
5038 src/cryptsetup/cryptsetup-generator.c
5040 systemd_cryptsetup_generator_LDADD = \
5041 libsystemd-label.la \
5042 libsystemd-shared.la
5044 SYSINIT_TARGET_WANTS += \
5049 # ------------------------------------------------------------------------------
5051 systemd_hostnamed_SOURCES = \
5052 src/hostname/hostnamed.c
5054 systemd_hostnamed_LDADD = \
5055 libsystemd-label.la \
5056 libsystemd-internal.la \
5057 libsystemd-shared.la
5059 rootlibexec_PROGRAMS += \
5062 nodist_systemunit_DATA += \
5063 units/systemd-hostnamed.service
5065 dist_systemunit_DATA_busnames += \
5066 units/org.freedesktop.hostname1.busname
5068 dist_dbuspolicy_DATA += \
5069 src/hostname/org.freedesktop.hostname1.conf
5071 dist_dbussystemservice_DATA += \
5072 src/hostname/org.freedesktop.hostname1.service
5074 polkitpolicy_files += \
5075 src/hostname/org.freedesktop.hostname1.policy
5077 SYSTEM_UNIT_ALIASES += \
5078 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
5080 BUSNAMES_TARGET_WANTS += \
5081 org.freedesktop.hostname1.busname
5083 hostnamectl_SOURCES = \
5084 src/hostname/hostnamectl.c
5086 hostnamectl_LDADD = \
5087 libsystemd-internal.la \
5088 libsystemd-shared.la
5093 dist_bashcompletion_DATA += \
5094 shell-completion/bash/hostnamectl
5096 dist_zshcompletion_DATA += \
5097 shell-completion/zsh/_hostnamectl
5101 polkitpolicy_in_files += \
5102 src/hostname/org.freedesktop.hostname1.policy.in
5105 units/systemd-hostnamed.service.in
5107 # ------------------------------------------------------------------------------
5108 dist_systemunit_DATA_busnames += \
5109 units/org.freedesktop.systemd1.busname
5111 BUSNAMES_TARGET_WANTS += \
5112 org.freedesktop.systemd1.busname
5114 # ------------------------------------------------------------------------------
5116 systemd_localed_SOURCES = \
5117 src/locale/localed.c
5119 systemd_localed_LDADD = \
5120 libsystemd-label.la \
5121 libsystemd-internal.la \
5122 libsystemd-shared.la \
5125 systemd_localed_CFLAGS = \
5129 nodist_systemunit_DATA += \
5130 units/systemd-localed.service
5132 dist_systemunit_DATA_busnames += \
5133 units/org.freedesktop.locale1.busname
5135 rootlibexec_PROGRAMS += \
5138 dist_dbuspolicy_DATA += \
5139 src/locale/org.freedesktop.locale1.conf
5141 dist_dbussystemservice_DATA += \
5142 src/locale/org.freedesktop.locale1.service
5144 polkitpolicy_files += \
5145 src/locale/org.freedesktop.locale1.policy
5147 SYSTEM_UNIT_ALIASES += \
5148 systemd-localed.service dbus-org.freedesktop.locale1.service
5150 BUSNAMES_TARGET_WANTS += \
5151 org.freedesktop.locale1.busname
5153 dist_pkgdata_DATA += \
5154 src/locale/kbd-model-map \
5155 src/locale/language-fallback-map
5157 localectl_SOURCES = \
5158 src/locale/localectl.c
5161 libsystemd-internal.la \
5162 libsystemd-shared.la
5167 dist_bashcompletion_DATA += \
5168 shell-completion/bash/localectl
5170 dist_zshcompletion_DATA += \
5171 shell-completion/zsh/_localectl
5175 .PHONY: update-kbd-model-map
5177 polkitpolicy_in_files += \
5178 src/locale/org.freedesktop.locale1.policy.in
5181 units/systemd-localed.service.in
5183 # ------------------------------------------------------------------------------
5185 systemd_timedated_SOURCES = \
5186 src/timedate/timedated.c
5188 systemd_timedated_LDADD = \
5189 libsystemd-label.la \
5190 libsystemd-internal.la \
5191 libsystemd-shared.la
5193 rootlibexec_PROGRAMS += \
5196 dist_dbussystemservice_DATA += \
5197 src/timedate/org.freedesktop.timedate1.service
5199 dist_dbuspolicy_DATA += \
5200 src/timedate/org.freedesktop.timedate1.conf
5202 nodist_systemunit_DATA += \
5203 units/systemd-timedated.service
5205 dist_systemunit_DATA_busnames += \
5206 units/org.freedesktop.timedate1.busname
5208 polkitpolicy_files += \
5209 src/timedate/org.freedesktop.timedate1.policy
5211 SYSTEM_UNIT_ALIASES += \
5212 systemd-timedated.service dbus-org.freedesktop.timedate1.service
5214 BUSNAMES_TARGET_WANTS += \
5215 org.freedesktop.timedate1.busname
5217 timedatectl_SOURCES = \
5218 src/timedate/timedatectl.c
5220 timedatectl_LDADD = \
5221 libsystemd-internal.la \
5222 libsystemd-shared.la
5227 dist_bashcompletion_DATA += \
5228 shell-completion/bash/timedatectl
5230 dist_zshcompletion_DATA += \
5231 shell-completion/zsh/_timedatectl
5234 polkitpolicy_in_files += \
5235 src/timedate/org.freedesktop.timedate1.policy.in
5238 units/systemd-timedated.service.in
5240 # ------------------------------------------------------------------------------
5242 systemd_timesyncd_SOURCES = \
5243 src/timesync/timesyncd.c \
5244 src/timesync/timesyncd-manager.c \
5245 src/timesync/timesyncd-manager.h \
5246 src/timesync/timesyncd-conf.c \
5247 src/timesync/timesyncd-conf.h \
5248 src/timesync/timesyncd-server.c \
5249 src/timesync/timesyncd-server.h
5251 nodist_systemd_timesyncd_SOURCES = \
5252 src/timesync/timesyncd-gperf.c
5255 src/timesync/timesyncd-gperf.gperf
5258 src/timesync/timesyncd-gperf.c
5260 systemd_timesyncd_LDADD = \
5261 libsystemd-resolve.la \
5262 libsystemd-network.la \
5263 libsystemd-label.la \
5264 libsystemd-internal.la \
5265 libsystemd-shared.la
5267 rootlibexec_PROGRAMS += \
5270 nodist_systemunit_DATA += \
5271 units/systemd-timesyncd.service
5273 GENERAL_ALIASES += \
5274 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5277 units/systemd-timesyncd.service.in
5279 nodist_pkgsysconf_DATA += \
5280 src/timesync/timesyncd.conf
5283 src/timesync/timesyncd.conf.in
5286 src/timesync/timesyncd.conf
5289 # ------------------------------------------------------------------------------
5291 libnss_myhostname_la_SOURCES = \
5292 src/nss-myhostname/nss-myhostname.sym \
5293 src/nss-myhostname/nss-myhostname.c
5295 libnss_myhostname_la_LDFLAGS = \
5302 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5304 libnss_myhostname_la_LIBADD = \
5305 libsystemd-shared.la \
5306 libsystemd-internal.la
5308 lib_LTLIBRARIES += \
5309 libnss_myhostname.la
5312 # ------------------------------------------------------------------------------
5314 systemd_machined_SOURCES = \
5315 src/machine/machined.c \
5316 src/machine/machined.h
5318 systemd_machined_LDADD = \
5319 libsystemd-machine-core.la
5321 rootlibexec_PROGRAMS += \
5324 libsystemd_machine_core_la_SOURCES = \
5325 src/machine/machine.c \
5326 src/machine/machine.h \
5327 src/machine/machined-dbus.c \
5328 src/machine/machine-dbus.c \
5329 src/machine/machine-dbus.h \
5330 src/machine/image-dbus.c \
5331 src/machine/image-dbus.h
5333 libsystemd_machine_core_la_LIBADD = \
5334 libsystemd-label.la \
5335 libsystemd-internal.la \
5336 libudev-internal.la \
5337 libsystemd-shared.la
5339 noinst_LTLIBRARIES += \
5340 libsystemd-machine-core.la
5342 machinectl_SOURCES = \
5343 src/machine/machinectl.c
5345 machinectl_LDADD = \
5346 libsystemd-internal.la \
5347 libsystemd-logs.la \
5348 libsystemd-journal-internal.la \
5349 libsystemd-shared.la
5351 rootbin_PROGRAMS += \
5354 dist_bashcompletion_DATA += \
5355 shell-completion/bash/machinectl
5357 test_machine_tables_SOURCES = \
5358 src/machine/test-machine-tables.c
5360 test_machine_tables_LDADD = \
5361 libsystemd-machine-core.la
5366 nodist_systemunit_DATA += \
5367 units/systemd-machined.service
5369 dist_systemunit_DATA += \
5372 dist_systemunit_DATA_busnames += \
5373 units/org.freedesktop.machine1.busname
5375 dist_dbussystemservice_DATA += \
5376 src/machine/org.freedesktop.machine1.service
5378 dist_dbuspolicy_DATA += \
5379 src/machine/org.freedesktop.machine1.conf
5381 polkitpolicy_files += \
5382 src/machine/org.freedesktop.machine1.policy
5384 polkitpolicy_in_files += \
5385 src/machine/org.freedesktop.machine1.policy.in
5387 dist_zshcompletion_DATA += \
5388 shell-completion/zsh/_machinectl \
5389 shell-completion/zsh/_sd_machines
5391 SYSTEM_UNIT_ALIASES += \
5392 systemd-machined.service dbus-org.freedesktop.machine1.service
5394 BUSNAMES_TARGET_WANTS += \
5395 org.freedesktop.machine1.busname
5398 units/systemd-machined.service.in
5400 libnss_mymachines_la_SOURCES = \
5401 src/nss-mymachines/nss-mymachines.sym \
5402 src/nss-mymachines/nss-mymachines.c
5404 libnss_mymachines_la_LDFLAGS = \
5411 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5413 libnss_mymachines_la_LIBADD = \
5414 libsystemd-shared.la \
5415 libsystemd-internal.la
5417 lib_LTLIBRARIES += \
5418 libnss_mymachines.la
5422 # ------------------------------------------------------------------------------
5431 rootlibexec_PROGRAMS += \
5435 systemd_importd_SOURCES = \
5436 src/import/importd.c
5438 systemd_importd_CFLAGS = \
5440 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\"
5442 systemd_importd_LDADD = \
5443 libsystemd-internal.la \
5444 libsystemd-label.la \
5445 libsystemd-shared.la
5447 systemd_pull_SOURCES = \
5449 src/import/pull-raw.c \
5450 src/import/pull-raw.h \
5451 src/import/pull-tar.c \
5452 src/import/pull-tar.h \
5453 src/import/pull-dkr.c \
5454 src/import/pull-dkr.h \
5455 src/import/pull-job.c \
5456 src/import/pull-job.h \
5457 src/import/pull-common.c \
5458 src/import/pull-common.h \
5459 src/import/import-compress.c \
5460 src/import/import-compress.h \
5461 src/import/curl-util.c \
5462 src/import/curl-util.h \
5463 src/import/aufs-util.c \
5464 src/import/aufs-util.h \
5465 src/import/qcow2-util.c \
5466 src/import/qcow2-util.h
5468 systemd_pull_CFLAGS = \
5474 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5475 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5477 systemd_pull_LDADD = \
5478 libsystemd-internal.la \
5479 libsystemd-label.la \
5480 libsystemd-shared.la \
5487 dist_rootlibexec_DATA = \
5488 src/import/import-pubring.gpg
5490 nodist_systemunit_DATA += \
5491 units/systemd-importd.service
5494 units/systemd-importd.service.in
5496 dist_systemunit_DATA_busnames += \
5497 units/org.freedesktop.import1.busname
5499 BUSNAMES_TARGET_WANTS += \
5500 org.freedesktop.import1.busname
5502 SYSTEM_UNIT_ALIASES += \
5503 systemd-importd.service dbus-org.freedesktop.import1.service
5505 dist_dbussystemservice_DATA += \
5506 src/import/org.freedesktop.import1.service
5508 dist_dbuspolicy_DATA += \
5509 src/import/org.freedesktop.import1.conf
5511 polkitpolicy_files += \
5512 src/import/org.freedesktop.import1.policy
5514 polkitpolicy_in_files += \
5515 src/import/org.freedesktop.import1.policy.in
5520 test_qcow2_SOURCES = \
5521 src/import/test-qcow2.c \
5522 src/import/qcow2-util.c \
5523 src/import/qcow2-util.h
5525 test_qcow2_CFLAGS = \
5529 test_qcow2_LDADD = \
5530 libsystemd-internal.la \
5531 libsystemd-label.la \
5532 libsystemd-shared.la \
5543 # ------------------------------------------------------------------------------
5545 systemd_resolved_SOURCES = \
5546 src/resolve/resolved.c \
5547 src/resolve/resolved-manager.c \
5548 src/resolve/resolved-manager.h \
5549 src/resolve/resolved-conf.c \
5550 src/resolve/resolved-conf.h \
5551 src/resolve/resolved-bus.c \
5552 src/resolve/resolved-bus.h \
5553 src/resolve/resolved-link.h \
5554 src/resolve/resolved-link.c \
5555 src/resolve/resolved-def.h \
5556 src/resolve/resolved-dns-domain.h \
5557 src/resolve/resolved-dns-domain.c \
5558 src/resolve/resolved-dns-rr.h \
5559 src/resolve/resolved-dns-rr.c \
5560 src/resolve/resolved-dns-question.h \
5561 src/resolve/resolved-dns-question.c \
5562 src/resolve/resolved-dns-answer.h \
5563 src/resolve/resolved-dns-answer.c \
5564 src/resolve/resolved-dns-packet.h \
5565 src/resolve/resolved-dns-packet.c \
5566 src/resolve/resolved-dns-query.h \
5567 src/resolve/resolved-dns-query.c \
5568 src/resolve/resolved-dns-transaction.h \
5569 src/resolve/resolved-dns-transaction.c \
5570 src/resolve/resolved-dns-scope.h \
5571 src/resolve/resolved-dns-scope.c \
5572 src/resolve/resolved-dns-server.h \
5573 src/resolve/resolved-dns-server.c \
5574 src/resolve/resolved-dns-cache.h \
5575 src/resolve/resolved-dns-cache.c \
5576 src/resolve/resolved-dns-zone.h \
5577 src/resolve/resolved-dns-zone.c \
5578 src/resolve/resolved-dns-stream.h \
5579 src/resolve/resolved-dns-stream.c \
5580 src/resolve/dns-type.c \
5581 src/resolve/dns-type.h \
5582 src/resolve/dns_type-from-name.h \
5583 src/resolve/dns_type-to-name.h
5585 nodist_systemd_resolved_SOURCES = \
5586 src/resolve/resolved-gperf.c
5589 src/resolve/resolved-gperf.gperf \
5590 src/resolve/dns_type-from-name.gperf
5593 src/resolve/resolved-gperf.c
5595 systemd_resolved_LDADD = \
5596 libsystemd-network.la \
5597 libsystemd-label.la \
5598 libsystemd-internal.la \
5599 libsystemd-shared.la \
5602 rootlibexec_PROGRAMS += \
5605 nodist_systemunit_DATA += \
5606 units/systemd-resolved.service
5608 dist_systemunit_DATA_busnames += \
5609 units/org.freedesktop.resolve1.busname
5611 dist_dbuspolicy_DATA += \
5612 src/resolve/org.freedesktop.resolve1.conf
5614 dist_dbussystemservice_DATA += \
5615 src/resolve/org.freedesktop.resolve1.service
5618 units/systemd-resolved.service.in
5620 SYSTEM_UNIT_ALIASES += \
5621 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5623 BUSNAMES_TARGET_WANTS += \
5624 org.freedesktop.resolve1.busname
5626 GENERAL_ALIASES += \
5627 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5629 nodist_pkgsysconf_DATA += \
5630 src/resolve/resolved.conf
5633 src/resolve/resolved.conf.in
5636 src/resolve/resolved.conf
5641 test_dns_domain_SOURCES = \
5642 src/resolve/resolved-dns-domain.h \
5643 src/resolve/resolved-dns-domain.c \
5644 src/resolve/test-dns-domain.c
5646 test_dns_domain_LDADD = \
5647 libsystemd-network.la \
5648 libsystemd-label.la \
5649 libsystemd-internal.la \
5650 libsystemd-shared.la \
5653 libnss_resolve_la_SOURCES = \
5654 src/nss-resolve/nss-resolve.sym \
5655 src/nss-resolve/nss-resolve.c
5657 libnss_resolve_la_LDFLAGS = \
5664 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5666 libnss_resolve_la_LIBADD = \
5667 libsystemd-internal.la \
5668 libsystemd-shared.la
5670 lib_LTLIBRARIES += \
5673 systemd_resolve_host_SOURCES = \
5674 src/resolve-host/resolve-host.c \
5675 src/resolve/resolved-dns-packet.c \
5676 src/resolve/resolved-dns-packet.h \
5677 src/resolve/resolved-dns-rr.c \
5678 src/resolve/resolved-dns-rr.h \
5679 src/resolve/resolved-dns-answer.c \
5680 src/resolve/resolved-dns-answer.h \
5681 src/resolve/resolved-dns-question.c \
5682 src/resolve/resolved-dns-question.h \
5683 src/resolve/resolved-dns-domain.c \
5684 src/resolve/resolved-dns-domain.h \
5685 src/resolve/dns-type.c \
5686 src/resolve/dns-type.h \
5687 src/resolve/dns_type-from-name.h \
5688 src/resolve/dns_type-to-name.h
5690 systemd_resolve_host_LDADD = \
5691 libsystemd-internal.la \
5692 libsystemd-shared.la \
5695 rootlibexec_PROGRAMS += \
5696 systemd-resolve-host
5700 # ------------------------------------------------------------------------------
5702 rootlibexec_PROGRAMS += \
5705 systemd_networkd_SOURCES = \
5706 src/network/networkd.c
5708 systemd_networkd_LDADD = \
5709 libsystemd-networkd-core.la
5712 systemd_networkd_LDADD += \
5716 noinst_LTLIBRARIES += \
5717 libsystemd-networkd-core.la
5719 libsystemd_networkd_core_la_CFLAGS = \
5722 libsystemd_networkd_core_la_SOURCES = \
5723 src/libsystemd-network/network-internal.h \
5724 src/network/networkd.h \
5725 src/network/networkd-link.h \
5726 src/network/networkd-netdev.h \
5727 src/network/networkd-netdev-tunnel.h \
5728 src/network/networkd-netdev-veth.h \
5729 src/network/networkd-netdev-vxlan.h \
5730 src/network/networkd-netdev-vlan.h \
5731 src/network/networkd-netdev-macvlan.h \
5732 src/network/networkd-netdev-ipvlan.h \
5733 src/network/networkd-netdev-dummy.h \
5734 src/network/networkd-netdev-tuntap.h \
5735 src/network/networkd-netdev-bond.h \
5736 src/network/networkd-netdev-bridge.h \
5737 src/network/networkd-netdev.c \
5738 src/network/networkd-netdev-tunnel.c \
5739 src/network/networkd-netdev-veth.c \
5740 src/network/networkd-netdev-vxlan.c \
5741 src/network/networkd-netdev-vlan.c \
5742 src/network/networkd-netdev-macvlan.c \
5743 src/network/networkd-netdev-ipvlan.c \
5744 src/network/networkd-netdev-dummy.c \
5745 src/network/networkd-netdev-tuntap.c \
5746 src/network/networkd-netdev-bond.c \
5747 src/network/networkd-netdev-bridge.c \
5748 src/network/networkd-link.c \
5749 src/network/networkd-link-bus.c \
5750 src/network/networkd-ipv4ll.c \
5751 src/network/networkd-dhcp4.c \
5752 src/network/networkd-dhcp6.c \
5753 src/network/networkd-network.c \
5754 src/network/networkd-network-bus.c \
5755 src/network/networkd-address.c \
5756 src/network/networkd-route.c \
5757 src/network/networkd-manager.c \
5758 src/network/networkd-manager-bus.c \
5759 src/network/networkd-fdb.c \
5760 src/network/networkd-address-pool.c
5762 nodist_libsystemd_networkd_core_la_SOURCES = \
5763 src/network/networkd-network-gperf.c \
5764 src/network/networkd-netdev-gperf.c
5766 libsystemd_networkd_core_la_LIBADD = \
5767 libudev-internal.la \
5768 libsystemd-internal.la \
5769 libsystemd-network.la \
5770 libsystemd-label.la \
5771 libsystemd-shared.la
5773 rootlibexec_PROGRAMS += \
5774 systemd-networkd-wait-online
5776 systemd_networkd_wait_online_CFLAGS = \
5779 systemd_networkd_wait_online_SOURCES = \
5780 src/libsystemd-network/network-internal.h \
5781 src/network/networkd-wait-online.h \
5782 src/network/networkd-wait-online-link.h \
5783 src/network/networkd-wait-online.c \
5784 src/network/networkd-wait-online-manager.c \
5785 src/network/networkd-wait-online-link.c
5787 systemd_networkd_wait_online_LDADD = \
5788 libsystemd-network.la \
5789 libudev-internal.la \
5790 libsystemd-internal.la \
5791 libsystemd-shared.la
5793 rootbin_PROGRAMS += \
5796 networkctl_SOURCES = \
5797 src/network/networkctl.c
5799 networkctl_LDADD = \
5800 libsystemd-internal.la \
5801 libudev-internal.la \
5802 libsystemd-shared.la \
5803 libsystemd-network.la
5805 test_network_SOURCES = \
5806 src/network/test-network.c
5808 test_network_LDADD = \
5809 libsystemd-networkd-core.la
5812 test_network_LDADD += \
5816 test_network_tables_SOURCES = \
5817 src/network/test-network-tables.c \
5818 src/shared/test-tables.h
5820 test_network_tables_LDADD = \
5821 libsystemd-networkd-core.la \
5825 test_network_tables_LDADD += \
5833 dist_systemunit_DATA += \
5834 units/systemd-networkd.socket
5836 nodist_systemunit_DATA += \
5837 units/systemd-networkd.service \
5838 units/systemd-networkd-wait-online.service
5840 dist_systemunit_DATA_busnames += \
5841 units/org.freedesktop.network1.busname
5843 dist_dbussystemservice_DATA += \
5844 src/network/org.freedesktop.network1.service
5846 dist_dbuspolicy_DATA += \
5847 src/network/org.freedesktop.network1.conf
5849 GENERAL_ALIASES += \
5850 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5851 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5852 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5854 SYSTEM_UNIT_ALIASES += \
5855 systemd-networkd.service dbus-org.freedesktop.network1.service
5857 BUSNAMES_TARGET_WANTS += \
5858 org.freedesktop.network1.busname
5861 src/network/networkd-network-gperf.gperf \
5862 src/network/networkd-netdev-gperf.gperf \
5863 units/systemd-networkd.service.in \
5864 units/systemd-networkd-wait-online.service.in
5867 src/network/networkd-network-gperf.c \
5868 src/network/networkd-netdev-gperf.c
5871 # ------------------------------------------------------------------------------
5873 systemd_logind_SOURCES = \
5874 src/login/logind.c \
5877 nodist_systemd_logind_SOURCES = \
5878 src/login/logind-gperf.c
5880 systemd_logind_LDADD = \
5881 libsystemd-logind-core.la
5883 libsystemd_logind_core_la_SOURCES = \
5884 src/login/logind-core.c \
5885 src/login/logind-device.c \
5886 src/login/logind-device.h \
5887 src/login/logind-button.c \
5888 src/login/logind-button.h \
5889 src/login/logind-action.c \
5890 src/login/logind-action.h \
5891 src/login/logind-seat.c \
5892 src/login/logind-seat.h \
5893 src/login/logind-session.c \
5894 src/login/logind-session.h \
5895 src/login/logind-session-device.c \
5896 src/login/logind-session-device.h \
5897 src/login/logind-user.c \
5898 src/login/logind-user.h \
5899 src/login/logind-inhibit.c \
5900 src/login/logind-inhibit.h \
5901 src/login/logind-dbus.c \
5902 src/login/logind-session-dbus.c \
5903 src/login/logind-seat-dbus.c \
5904 src/login/logind-user-dbus.c \
5905 src/login/logind-acl.h
5907 libsystemd_logind_core_la_LIBADD = \
5908 libsystemd-label.la \
5909 libsystemd-internal.la \
5910 libudev-internal.la \
5911 libsystemd-shared.la
5914 libsystemd_logind_core_la_SOURCES += \
5915 src/login/logind-acl.c
5917 libsystemd_logind_core_la_LIBADD += \
5921 noinst_LTLIBRARIES += \
5922 libsystemd-logind-core.la
5924 rootlibexec_PROGRAMS += \
5927 loginctl_SOURCES = \
5928 src/login/loginctl.c \
5929 src/login/sysfs-show.h \
5930 src/login/sysfs-show.c
5933 libsystemd-internal.la \
5934 libsystemd-logs.la \
5935 libsystemd-journal-internal.la \
5936 libudev-internal.la \
5937 libsystemd-shared.la
5939 rootbin_PROGRAMS += \
5942 dist_bashcompletion_DATA += \
5943 shell-completion/bash/loginctl
5945 dist_zshcompletion_DATA += \
5946 shell-completion/zsh/_loginctl \
5947 shell-completion/zsh/_systemd-inhibit
5949 systemd_inhibit_SOURCES = \
5952 systemd_inhibit_LDADD = \
5953 libsystemd-internal.la \
5954 libsystemd-shared.la
5956 rootbin_PROGRAMS += \
5959 test_login_SOURCES = \
5960 src/libsystemd/sd-login/test-login.c
5962 test_login_LDADD = \
5963 libsystemd-internal.la \
5964 libsystemd-shared.la
5966 test_login_shared_SOURCES = \
5967 src/login/test-login-shared.c
5969 test_login_shared_LDADD = \
5970 libsystemd-internal.la \
5971 libsystemd-shared.la
5973 test_inhibit_SOURCES = \
5974 src/login/test-inhibit.c
5976 test_inhibit_LDADD = \
5977 libsystemd-internal.la \
5978 libsystemd-shared.la
5980 test_login_tables_SOURCES = \
5981 src/login/test-login-tables.c
5983 test_login_tables_LDADD = \
5984 libsystemd-logind-core.la
5995 pam_systemd_la_SOURCES = \
5996 src/login/pam_systemd.sym \
5997 src/login/pam_systemd.c
5999 pam_systemd_la_CFLAGS = \
6004 pam_systemd_la_LDFLAGS = \
6010 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
6012 pam_systemd_la_LIBADD = \
6013 libsystemd-internal.la \
6014 libsystemd-shared.la \
6017 pamlib_LTLIBRARIES = \
6020 dist_pamconf_DATA = \
6021 src/login/systemd-user
6025 nodist_systemunit_DATA += \
6026 units/systemd-logind.service
6028 dist_systemunit_DATA += \
6031 dist_systemunit_DATA_busnames += \
6032 units/org.freedesktop.login1.busname
6034 dist_dbussystemservice_DATA += \
6035 src/login/org.freedesktop.login1.service
6037 dist_dbuspolicy_DATA += \
6038 src/login/org.freedesktop.login1.conf
6040 dist_pkgsysconf_DATA += \
6041 src/login/logind.conf
6043 polkitpolicy_files += \
6044 src/login/org.freedesktop.login1.policy
6049 MULTI_USER_TARGET_WANTS += \
6050 systemd-logind.service
6052 SYSTEM_UNIT_ALIASES += \
6053 systemd-logind.service dbus-org.freedesktop.login1.service
6055 BUSNAMES_TARGET_WANTS += \
6056 org.freedesktop.login1.busname
6058 dist_udevrules_DATA += \
6059 src/login/70-uaccess.rules \
6060 src/login/70-power-switch.rules
6062 nodist_udevrules_DATA += \
6063 src/login/71-seat.rules \
6064 src/login/73-seat-late.rules
6067 src/login/logind-gperf.c \
6068 src/login/71-seat.rules \
6069 src/login/73-seat-late.rules
6072 polkitpolicy_in_files += \
6073 src/login/org.freedesktop.login1.policy.in
6076 src/login/logind-gperf.gperf \
6077 src/login/71-seat.rules.in \
6078 src/login/73-seat-late.rules.in \
6079 units/systemd-logind.service.in
6081 # ------------------------------------------------------------------------------
6084 systemd_user_sessions_SOURCES = \
6085 src/user-sessions/user-sessions.c
6087 systemd_user_sessions_LDADD = \
6088 libsystemd-shared.la
6090 rootlibexec_PROGRAMS += \
6091 systemd-user-sessions
6093 nodist_systemunit_DATA += \
6094 units/systemd-user-sessions.service
6097 units/systemd-user-sessions.service.in
6099 MULTI_USER_TARGET_WANTS += \
6100 systemd-user-sessions.service
6104 # ------------------------------------------------------------------------------
6106 if HAVE_PYTHON_DEVEL
6107 pkgpyexec_LTLIBRARIES = \
6114 _journal_la_SOURCES = \
6115 src/python-systemd/_journal.c
6117 _journal_la_CFLAGS = \
6119 -fvisibility=default \
6120 $(PYTHON_DEVEL_CFLAGS)
6122 _journal_la_LDFLAGS = \
6128 _journal_la_LIBADD = \
6129 $(PYTHON_DEVEL_LIBS) \
6132 id128_la_SOURCES = \
6133 src/python-systemd/id128.c \
6134 src/python-systemd/pyutil.c \
6135 src/python-systemd/pyutil.h
6137 nodist_id128_la_SOURCES = \
6138 src/python-systemd/id128-constants.h
6142 -fvisibility=default \
6143 $(PYTHON_DEVEL_CFLAGS) \
6144 -I$(top_builddir)/src/python-systemd
6146 id128_la_LDFLAGS = \
6153 $(PYTHON_DEVEL_LIBS) \
6154 libsystemd-shared.la \
6157 _daemon_la_SOURCES = \
6158 src/python-systemd/_daemon.c \
6159 src/python-systemd/pyutil.c \
6160 src/python-systemd/pyutil.h
6162 _daemon_la_CFLAGS = \
6164 -fvisibility=default \
6165 $(PYTHON_DEVEL_CFLAGS) \
6166 -I$(top_builddir)/src/python-systemd
6168 _daemon_la_LDFLAGS = \
6174 _daemon_la_LIBADD = \
6175 $(PYTHON_DEVEL_LIBS) \
6176 libsystemd-shared.la \
6179 _reader_la_SOURCES = \
6180 src/python-systemd/_reader.c \
6181 src/python-systemd/pyutil.c \
6182 src/python-systemd/pyutil.h
6184 _reader_la_CFLAGS = \
6186 -fvisibility=default \
6187 $(PYTHON_DEVEL_CFLAGS)
6189 _reader_la_LDFLAGS = \
6195 _reader_la_LIBADD = \
6196 $(PYTHON_DEVEL_LIBS) \
6197 libsystemd-shared.la \
6200 login_la_SOURCES = \
6201 src/python-systemd/login.c \
6202 src/python-systemd/pyutil.c \
6203 src/python-systemd/pyutil.h
6207 -fvisibility=default \
6208 $(PYTHON_DEVEL_CFLAGS)
6210 login_la_LDFLAGS = \
6217 $(PYTHON_DEVEL_LIBS) \
6218 libsystemd-shared.la \
6221 dist_pkgpyexec_PYTHON = \
6222 src/python-systemd/journal.py \
6223 src/python-systemd/daemon.py \
6224 src/python-systemd/__init__.py
6226 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
6227 $(AM_V_at)$(MKDIR_P) $(dir $@)
6228 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
6231 src/python-systemd/id128-constants.h
6233 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
6235 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
6236 $(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/
6237 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
6240 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
6241 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
6244 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
6245 $(MAKE) DESTDIR="$$dir" install && \
6246 $(MAKE) DESTDIR="$$dir" sphinx-html && \
6251 CLEAN_LOCAL_HOOKS += clean-sphinx
6253 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
6256 -rm -rf docs/html/python-systemd/
6258 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
6260 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
6261 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
6263 # ------------------------------------------------------------------------------
6264 if ENABLE_COMPAT_LIBS
6266 src/compat-libs/linkwarning.h
6268 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
6269 $(AM_V_at)$(MKDIR_P) $(dir $@)
6270 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
6273 libsystemd-journal.c \
6274 libsystemd-login.c \
6275 libsystemd-id128.c \
6278 libsystemd_journal_la_SOURCES = \
6279 libsystemd-journal.c \
6280 src/compat-libs/libsystemd-journal.sym
6282 libsystemd_journal_la_CPPFLAGS = \
6284 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6286 libsystemd_journal_la_LDFLAGS = \
6288 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
6289 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
6291 libsystemd_journal_la_LIBADD = \
6292 libsystemd-journal-internal.la \
6293 libsystemd-internal.la \
6294 libsystemd-shared.la
6296 libsystemd_login_la_SOURCES = \
6297 libsystemd-login.c \
6298 src/compat-libs/libsystemd-login.sym
6300 libsystemd_login_la_CPPFLAGS = \
6302 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6304 libsystemd_login_la_LDFLAGS = \
6306 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
6307 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
6309 libsystemd_login_la_LIBADD = \
6310 libsystemd-internal.la \
6311 libsystemd-shared.la
6313 libsystemd_id128_la_SOURCES = \
6314 libsystemd-id128.c \
6315 src/compat-libs/libsystemd-id128.sym
6317 libsystemd_id128_la_CPPFLAGS = \
6319 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6321 libsystemd_id128_la_LDFLAGS = \
6323 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
6324 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
6326 libsystemd_id128_la_LIBADD = \
6327 libsystemd-internal.la \
6328 libsystemd-shared.la
6330 libsystemd_daemon_la_SOURCES = \
6331 libsystemd-daemon.c \
6332 src/compat-libs/libsystemd-daemon.sym
6334 libsystemd_daemon_la_CPPFLAGS = \
6336 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6338 libsystemd_daemon_la_LDFLAGS = \
6340 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
6341 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
6343 libsystemd_daemon_la_LIBADD = \
6344 libsystemd-internal.la \
6345 libsystemd-shared.la
6347 lib_LTLIBRARIES += \
6348 libsystemd-journal.la \
6349 libsystemd-login.la \
6350 libsystemd-id128.la \
6351 libsystemd-daemon.la
6353 pkgconfiglib_DATA += \
6354 src/compat-libs/libsystemd-journal.pc \
6355 src/compat-libs/libsystemd-login.pc \
6356 src/compat-libs/libsystemd-id128.pc \
6357 src/compat-libs/libsystemd-daemon.pc
6359 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
6360 compat-lib-install-hook:
6361 libname=libsystemd-login.so && $(move-to-rootlibdir)
6362 libname=libsystemd-journal.so && $(move-to-rootlibdir)
6363 libname=libsystemd-id128.so && $(move-to-rootlibdir)
6364 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
6366 compat-lib-uninstall-hook:
6367 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
6368 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
6369 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
6370 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
6372 INSTALL_EXEC_HOOKS += compat-lib-install-hook
6373 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
6377 src/compat-libs/libsystemd-journal.pc.in \
6378 src/compat-libs/libsystemd-login.pc.in \
6379 src/compat-libs/libsystemd-id128.pc.in \
6380 src/compat-libs/libsystemd-daemon.pc.in
6382 # ------------------------------------------------------------------------------
6384 '|rootlibexecdir=$(rootlibexecdir)|' \
6385 '|rootbindir=$(rootbindir)|' \
6386 '|bindir=$(bindir)|' \
6387 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6388 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6389 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6390 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6391 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6392 '|pkgdatadir=$(pkgdatadir)|' \
6393 '|systemunitdir=$(systemunitdir)|' \
6394 '|userunitdir=$(userunitdir)|' \
6395 '|systempresetdir=$(systempresetdir)|' \
6396 '|userpresetdir=$(userpresetdir)|' \
6397 '|udevhwdbdir=$(udevhwdbdir)|' \
6398 '|udevrulesdir=$(udevrulesdir)|' \
6399 '|catalogdir=$(catalogdir)|' \
6400 '|tmpfilesdir=$(tmpfilesdir)|' \
6401 '|sysusersdir=$(sysusersdir)|' \
6402 '|sysctldir=$(sysctldir)|' \
6403 '|systemgeneratordir=$(systemgeneratordir)|' \
6404 '|usergeneratordir=$(usergeneratordir)|' \
6405 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6406 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6407 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6408 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6409 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6410 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6411 '|prefix=$(prefix)|' \
6412 '|exec_prefix=$(exec_prefix)|' \
6413 '|libdir=$(libdir)|' \
6414 '|includedir=$(includedir)|' \
6415 '|VERSION=$(VERSION)|' \
6416 '|rootprefix=$(rootprefix)|' \
6417 '|udevlibexecdir=$(udevlibexecdir)|' \
6418 '|SUSHELL=$(SUSHELL)|' \
6419 '|SULOGIN=$(SULOGIN)|' \
6420 '|DEBUGTTY=$(DEBUGTTY)|' \
6423 '|MKDIR_P=$(MKDIR_P)|' \
6424 '|QUOTAON=$(QUOTAON)|' \
6425 '|QUOTACHECK=$(QUOTACHECK)|' \
6426 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6427 '|VARLOGDIR=$(varlogdir)|' \
6428 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6429 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6430 '|PYTHON=$(PYTHON)|' \
6431 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6432 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6433 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6434 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6435 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6436 '|TTY_GID=$(TTY_GID)|' \
6437 '|systemsleepdir=$(systemsleepdir)|' \
6438 '|systemshutdowndir=$(systemshutdowndir)|' \
6439 '|binfmtdir=$(binfmtdir)|' \
6440 '|modulesloaddir=$(modulesloaddir)|'
6443 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6444 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6453 sysctl.d/%: sysctl.d/%.in
6462 src/core/macros.%: src/core/macros.%.in
6465 src/%.policy.in: src/%.policy.in.in
6468 shell-completion/%: shell-completion/%.in
6479 $(AM_V_GEN)chmod +x $@
6481 src/%.c: src/%.gperf
6482 $(AM_V_at)$(MKDIR_P) $(dir $@)
6483 $(AM_V_GPERF)$(GPERF) < $< > $@
6486 $(AM_V_at)$(MKDIR_P) $(dir $@)
6487 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6489 sysusers.d/%: sysusers.d/%.m4
6490 $(AM_V_at)$(MKDIR_P) $(dir $@)
6491 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6493 tmpfiles.d/%: tmpfiles.d/%.m4
6494 $(AM_V_at)$(MKDIR_P) $(dir $@)
6495 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6499 $(AM_V_at)$(MKDIR_P) $(dir $@)
6500 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6502 units/user/%: units/user/%.m4
6503 $(AM_V_at)$(MKDIR_P) $(dir $@)
6504 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6507 nodist_polkitpolicy_DATA = \
6508 $(polkitpolicy_files) \
6509 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6513 $(polkitpolicy_in_files) \
6514 $(polkitpolicy_in_in_files)
6517 $(nodist_systemunit_DATA) \
6518 $(nodist_userunit_DATA) \
6519 $(pkgconfiglib_DATA) \
6520 $(nodist_polkitpolicy_DATA)
6522 # ------------------------------------------------------------------------------
6524 man/custom-entities.ent: configure.ac
6525 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6526 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6527 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6531 man/custom-entities.ent
6536 --stringparam man.output.quietly 1 \
6537 --stringparam funcsynopsis.style ansi \
6538 --stringparam man.authors.section.enabled 0 \
6539 --stringparam man.copyright.section.enabled 0 \
6540 --stringparam systemd.version $(VERSION) \
6541 --path '$(builddir)/man:$(srcdir)/man'
6543 XSLTPROC_PROCESS_MAN = \
6544 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6546 XSLTPROC_PROCESS_HTML = \
6547 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6549 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6550 $(XSLTPROC_PROCESS_MAN)
6552 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6553 $(XSLTPROC_PROCESS_MAN)
6555 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6556 $(XSLTPROC_PROCESS_MAN)
6558 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6559 $(XSLTPROC_PROCESS_MAN)
6561 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6562 $(XSLTPROC_PROCESS_MAN)
6564 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6565 $(XSLTPROC_PROCESS_HTML)
6568 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6574 man/custom-html.xsl \
6577 # ------------------------------------------------------------------------------
6580 docs/sysvinit/README
6585 docs/sysvinit/README: docs/sysvinit/README.in
6588 docs/var-log/README: docs/var-log/README.in
6592 docs/sysvinit/README \
6597 docs/sysvinit/README.in \
6598 docs/var-log/README.in
6600 SOCKETS_TARGET_WANTS += \
6601 systemd-initctl.socket \
6602 systemd-shutdownd.socket
6606 MULTI_USER_TARGET_WANTS += \
6607 systemd-update-utmp-runlevel.service
6608 GRAPHICAL_TARGET_WANTS += \
6609 systemd-update-utmp-runlevel.service
6610 RESCUE_TARGET_WANTS += \
6611 systemd-update-utmp-runlevel.service
6614 SYSINIT_TARGET_WANTS += \
6615 systemd-update-utmp.service
6618 SYSINIT_TARGET_WANTS += \
6619 systemd-update-done.service
6621 LOCAL_FS_TARGET_WANTS += \
6622 systemd-remount-fs.service \
6624 var-lib-machines.mount
6626 MULTI_USER_TARGET_WANTS += \
6628 systemd-ask-password-wall.path
6630 SYSINIT_TARGET_WANTS += \
6631 dev-hugepages.mount \
6633 sys-kernel-config.mount \
6634 sys-kernel-debug.mount \
6635 sys-fs-fuse-connections.mount \
6636 systemd-sysctl.service \
6637 systemd-ask-password-console.path
6640 SYSTEM_UNIT_ALIASES += \
6641 poweroff.target runlevel0.target \
6642 rescue.target runlevel1.target \
6643 multi-user.target runlevel2.target \
6644 multi-user.target runlevel3.target \
6645 multi-user.target runlevel4.target \
6646 graphical.target runlevel5.target \
6647 reboot.target runlevel6.target
6650 SYSTEM_UNIT_ALIASES += \
6651 graphical.target default.target \
6652 reboot.target ctrl-alt-del.target \
6653 getty@.service autovt@.service
6655 USER_UNIT_ALIASES += \
6656 $(systemunitdir)/shutdown.target shutdown.target \
6657 $(systemunitdir)/sockets.target sockets.target \
6658 $(systemunitdir)/timers.target timers.target \
6659 $(systemunitdir)/paths.target paths.target \
6660 $(systemunitdir)/bluetooth.target bluetooth.target \
6661 $(systemunitdir)/printer.target printer.target \
6662 $(systemunitdir)/sound.target sound.target \
6663 $(systemunitdir)/smartcard.target smartcard.target
6666 USER_UNIT_ALIASES += \
6667 $(systemunitdir)/busnames.target busnames.target
6670 GENERAL_ALIASES += \
6671 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6672 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6673 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6674 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6678 $(systemunitdir)/runlevel1.target.wants \
6679 $(systemunitdir)/runlevel2.target.wants \
6680 $(systemunitdir)/runlevel3.target.wants \
6681 $(systemunitdir)/runlevel4.target.wants \
6682 $(systemunitdir)/runlevel5.target.wants
6686 $(prefix)/lib/modules-load.d \
6687 $(sysconfdir)/modules-load.d \
6688 $(prefix)/lib/systemd/network \
6689 $(sysconfdir)/systemd/network \
6690 $(prefix)/lib/sysctl.d \
6691 $(sysconfdir)/sysctl.d \
6692 $(prefix)/lib/kernel/install.d \
6693 $(sysconfdir)/kernel/install.d \
6694 $(systemshutdowndir) \
6696 $(systemgeneratordir) \
6697 $(usergeneratordir) \
6700 $(pkgsysconfdir)/system \
6701 $(pkgsysconfdir)/system/multi-user.target.wants \
6702 $(pkgsysconfdir)/system/getty.target.wants \
6703 $(pkgsysconfdir)/user \
6704 $(dbussessionservicedir) \
6705 $(sysconfdir)/xdg/systemd
6707 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6709 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6711 install-data-hook: $(INSTALL_DATA_HOOKS)
6713 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6715 clean-local: $(CLEAN_LOCAL_HOOKS)
6716 rm -rf $(abs_srcdir)/install-tree
6717 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6718 $(abs_srcdir)/hwdb/iab.txt
6720 DISTCHECK_CONFIGURE_FLAGS = \
6721 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6722 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6723 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6724 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6725 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6726 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6727 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6728 --with-rootprefix=$$dc_install_base \
6729 --disable-split-usr \
6731 --enable-compat-libs
6734 DISTCHECK_CONFIGURE_FLAGS += \
6735 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6736 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6738 DISTCHECK_CONFIGURE_FLAGS += \
6739 --with-sysvinit-path= \
6740 --with-sysvrcnd-path=
6744 DISTCHECK_CONFIGURE_FLAGS += \
6749 DISTCHECK_CONFIGURE_FLAGS += \
6754 # Require python when making dist
6756 .PHONY: dist-check-python dist-check-compat-libs dist-check-help
6759 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6763 dist-check-compat-libs:
6764 if !ENABLE_COMPAT_LIBS
6765 @echo "*** compat-libs must be enabled in order to make dist"
6769 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6770 for i in $(abspath $^); do \
6771 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6772 echo "$(basename $$i) --help output is too wide:"; \
6773 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6777 dist: dist-check-python dist-check-compat-libs
6779 # check "broken" platforms limited toolchains for link breakage before we release
6782 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6786 ( cd $(top_srcdir)/hwdb && \
6787 wget -N http://www.linux-usb.org/usb.ids \
6788 http://pci-ids.ucw.cz/v2.2/pci.ids \
6789 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6790 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6793 .PHONY: kdbus-update
6795 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6796 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6800 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6802 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6804 upload: all check dist
6805 scp systemd-$(VERSION).tar.xz $(www_target)
6808 doc-sync: all destdir-sphinx
6809 gtkdoc-rebase --html-dir=docs/libudev/html --online
6810 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6811 gtkdoc-rebase --html-dir=docs/gudev/html --online
6812 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6813 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6814 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6818 scp man/*.html gardel:public/systemd-man/
6820 .PHONY: lennart-fedora
6822 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6824 .PHONY: install-tree
6826 rm -rf $(abs_srcdir)/install-tree
6827 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6828 tree $(abs_srcdir)/install-tree
6830 # Let's run all tests of the test suite, but under valgrind. Let's
6831 # exclude the one perl script we have in there
6832 .PHONY: valgrind-tests
6833 valgrind-tests: $(TESTS)
6834 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6835 if file $$f | grep -q shell; then \
6836 echo -e "$${x}Skipping non-binary $$f"; else \
6837 echo -e "$${x}Running $$f"; \
6838 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6843 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6845 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6846 $(AM_V_GEN)cat $^ > $@
6848 .PHONY: check-api-docs
6849 check-api-docs: exported man
6850 $(AM_V_GEN)for symbol in `cat exported` ; do \
6851 if test -f $(builddir)/man/$$symbol.html ; then \
6852 echo " Symbol $$symbol() is documented." ; \
6854 echo "‣ Symbol $$symbol() lacks documentation." ; \
6858 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6859 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6861 undefined defined: $(ALL_OBJECTS)
6862 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6863 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6864 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6870 .PHONY: check-api-unused
6871 check-api-unused: defined undefined exported
6872 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6874 .PHONY: check-includes
6875 check-includes: $(top_srcdir)/tools/check-includes.pl
6876 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6877 | xargs $(top_srcdir)/tools/check-includes.pl
6880 $(top_srcdir)/tools/check-includes.pl
6882 # Stupid test that everything purported to be exported really is
6883 define generate-sym-test
6884 $(AM_V_at)$(MKDIR_P) $(dir $@)
6885 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6886 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6887 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6888 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6889 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6890 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6891 $(AM_V_at)printf 'return 0; }\n' >> $@
6894 test-libsystemd-sym.c: \
6895 $(top_builddir)/src/libsystemd/libsystemd.sym \
6896 src/systemd/sd-journal.h \
6897 src/systemd/sd-daemon.h \
6898 src/systemd/sd-login.h \
6899 src/systemd/sd-bus.h \
6900 src/systemd/sd-utf8.h \
6901 src/systemd/sd-resolve.h \
6902 src/systemd/sd-path.h
6903 $(generate-sym-test)
6905 test-libudev-sym.c: \
6906 src/libudev/libudev.sym \
6908 $(generate-sym-test)
6910 test_libsystemd_sym_SOURCES = \
6911 test-libsystemd-sym.c
6912 test_libsystemd_sym_LDADD = \
6915 test_libudev_sym_SOURCES = \
6917 test_libudev_sym_CFLAGS = \
6919 -Wno-deprecated-declarations
6920 test_libudev_sym_LDADD = \
6924 $(test_libsystemd_sym_SOURCES) \
6925 $(test_libudev_sym_SOURCES)
6928 test-libsystemd-sym \
6933 cppcheck --enable=all -q $(top_srcdir)
6935 # Used to extract compile flags for YCM.
6940 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6943 tools/gdb-sd_dump_hashmaps.py
6946 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6949 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -