1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfiglibdir=$(libdir)/pkgconfig
78 polkitpolicydir=$(datadir)/polkit-1/actions
79 bashcompletiondir=@bashcompletiondir@
80 zshcompletiondir=@zshcompletiondir@
81 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
82 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
83 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
84 varlogdir=$(localstatedir)/log
85 systemdstatedir=$(localstatedir)/lib/systemd
86 catalogstatedir=$(systemdstatedir)/catalog
87 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
114 bootlibdir = $(prefix)/lib/systemd/boot/efi
116 # And these are the special ones for /
117 rootprefix=@rootprefix@
118 rootbindir=$(rootprefix)/bin
119 rootlibexecdir=$(rootprefix)/lib/systemd
121 CLEANFILES = $(BUILT_SOURCES)
126 UNINSTALL_EXEC_HOOKS =
128 UNINSTALL_DATA_HOOKS =
129 DISTCLEAN_LOCAL_HOOKS =
137 polkitpolicy_in_in_files =
138 polkitpolicy_in_files =
140 dist_udevrules_DATA =
141 nodist_udevrules_DATA =
142 dist_pkgsysconf_DATA =
143 nodist_pkgsysconf_DATA =
145 dist_dbuspolicy_DATA =
146 dist_dbussystemservice_DATA =
147 dist_systemunit_DATA_busnames =
152 TEST_EXTENSIONS = .py
153 PY_LOG_COMPILER = $(PYTHON)
155 noinst_PROGRAMS = $(manual_tests) $(tests)
161 udevlibexec_PROGRAMS =
163 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
164 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
165 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
168 -include $(top_builddir)/config.h \
169 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
170 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
171 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
172 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
173 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
174 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
175 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
176 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
177 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
178 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
179 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
180 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
181 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
182 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
183 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
184 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
185 -DROOTPREFIX=\"$(rootprefix)\" \
186 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
187 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
188 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
189 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
190 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
191 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
192 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
193 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
194 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
195 -DX_SERVER=\"$(bindir)/X\" \
196 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
197 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
198 -DQUOTACHECK=\"$(QUOTACHECK)\" \
199 -DKEXEC=\"$(KEXEC)\" \
200 -DLIBDIR=\"$(libdir)\" \
201 -DROOTLIBDIR=\"$(rootlibdir)\" \
202 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
203 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
204 -I $(top_srcdir)/src \
205 -I $(top_builddir)/src/shared \
206 -I $(top_srcdir)/src/shared \
207 -I $(top_srcdir)/src/network \
208 -I $(top_srcdir)/src/login \
209 -I $(top_srcdir)/src/journal \
210 -I $(top_srcdir)/src/timedate \
211 -I $(top_srcdir)/src/timesync \
212 -I $(top_srcdir)/src/resolve \
213 -I $(top_builddir)/src/resolve \
214 -I $(top_srcdir)/src/systemd \
215 -I $(top_builddir)/src/core \
216 -I $(top_srcdir)/src/core \
217 -I $(top_srcdir)/src/libudev \
218 -I $(top_srcdir)/src/udev \
219 -I $(top_srcdir)/src/udev/net \
220 -I $(top_builddir)/src/udev \
221 -I $(top_srcdir)/src/libsystemd/sd-bus \
222 -I $(top_srcdir)/src/libsystemd/sd-event \
223 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
224 -I $(top_srcdir)/src/libsystemd/sd-network \
225 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
226 -I $(top_srcdir)/src/libsystemd-network \
227 -I $(top_srcdir)/src/libsystemd-terminal \
230 AM_CFLAGS = $(OUR_CFLAGS)
231 AM_LDFLAGS = $(OUR_LDFLAGS)
233 # ------------------------------------------------------------------------------
234 define move-to-rootlibdir
235 if test "$(libdir)" != "$(rootlibdir)"; then \
236 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
237 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
238 rm -f $(DESTDIR)$(libdir)/$$libname && \
239 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
240 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
246 SHUTDOWN_TARGET_WANTS =
247 LOCAL_FS_TARGET_WANTS =
248 MULTI_USER_TARGET_WANTS =
249 GRAPHICAL_TARGET_WANTS =
250 RESCUE_TARGET_WANTS =
251 SYSINIT_TARGET_WANTS =
252 SOCKETS_TARGET_WANTS =
253 BUSNAMES_TARGET_WANTS =
254 TIMERS_TARGET_WANTS =
255 USER_SOCKETS_TARGET_WANTS =
256 USER_DEFAULT_TARGET_WANTS =
257 USER_BUSNAMES_TARGET_WANTS =
259 SYSTEM_UNIT_ALIASES =
263 install-target-wants-hook:
264 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
276 install-busnames-target-wants-hook:
277 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
281 [ -z "$$what" ] || ( \
282 dir=$(DESTDIR)$$dir/$$wants.wants && \
283 $(MKDIR_P) -m 0755 $$dir && \
286 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
289 install-directories-hook:
290 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
292 install-aliases-hook:
293 set -- $(SYSTEM_UNIT_ALIASES) && \
294 dir=$(systemunitdir) && $(install-aliases)
295 set -- $(USER_UNIT_ALIASES) && \
296 dir=$(userunitdir) && $(install-relative-aliases)
297 set -- $(GENERAL_ALIASES) && \
298 dir= && $(install-relative-aliases)
300 define install-aliases
301 while [ -n "$$1" ]; do \
302 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
303 rm -f $(DESTDIR)$$dir/$$2 && \
304 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
305 shift 2 || exit $$?; \
309 define install-relative-aliases
310 while [ -n "$$1" ]; do \
311 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
312 rm -f $(DESTDIR)$$dir/$$2 && \
313 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
314 shift 2 || exit $$?; \
318 install-touch-usr-hook:
319 touch -c $(DESTDIR)/$(prefix)
321 INSTALL_EXEC_HOOKS += \
322 install-target-wants-hook \
323 install-directories-hook \
324 install-aliases-hook \
325 install-touch-usr-hook
328 INSTALL_EXEC_HOOKS += \
329 install-busnames-target-wants-hook
332 # ------------------------------------------------------------------------------
333 AM_V_M4 = $(AM_V_M4_$(V))
334 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
335 AM_V_M4_0 = @echo " M4 " $@;
337 AM_V_XSLT = $(AM_V_XSLT_$(V))
338 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
339 AM_V_XSLT_0 = @echo " XSLT " $@;
341 AM_V_GPERF = $(AM_V_GPERF_$(V))
342 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
343 AM_V_GPERF_0 = @echo " GPERF " $@;
345 AM_V_LN = $(AM_V_LN_$(V))
346 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
347 AM_V_LN_0 = @echo " LN " $@;
349 AM_V_RM = $(AM_V_RM_$(V))
350 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
351 AM_V_RM_0 = @echo " RM " $@;
353 # ------------------------------------------------------------------------------
357 systemd-ask-password \
358 systemd-tty-ask-password-agent \
359 systemd-machine-id-setup \
366 systemd-detect-virt \
370 systemd-stdio-bridge \
374 src/kernel-install/kernel-install
376 dist_kernelinstall_SCRIPTS = \
377 src/kernel-install/50-depmod.install \
378 src/kernel-install/90-loaderentry.install
380 rootlibexec_PROGRAMS = \
382 systemd-cgroups-agent \
387 systemd-reply-password \
390 systemd-machine-id-commit \
395 systemd-socket-proxyd \
399 rootlibexec_PROGRAMS += \
403 systemgenerator_PROGRAMS = \
404 systemd-getty-generator \
405 systemd-fstab-generator \
406 systemd-system-update-generator \
407 systemd-debug-generator
409 dist_bashcompletion_DATA = \
410 shell-completion/bash/busctl \
411 shell-completion/bash/journalctl \
412 shell-completion/bash/systemd-analyze \
413 shell-completion/bash/systemd-cat \
414 shell-completion/bash/systemd-cgls \
415 shell-completion/bash/systemd-cgtop \
416 shell-completion/bash/systemd-delta \
417 shell-completion/bash/systemd-detect-virt \
418 shell-completion/bash/systemd-nspawn \
419 shell-completion/bash/systemd-run \
420 shell-completion/bash/udevadm \
421 shell-completion/bash/kernel-install
423 nodist_bashcompletion_DATA = \
424 shell-completion/bash/systemctl
426 dist_zshcompletion_DATA = \
427 shell-completion/zsh/_journalctl \
428 shell-completion/zsh/_udevadm \
429 shell-completion/zsh/_kernel-install \
430 shell-completion/zsh/_systemd-nspawn \
431 shell-completion/zsh/_systemd-analyze \
432 shell-completion/zsh/_systemd-run \
433 shell-completion/zsh/_sd_hosts_or_user_at_host \
434 shell-completion/zsh/_sd_outputmodes \
435 shell-completion/zsh/_sd_unit_files \
436 shell-completion/zsh/_systemd-delta \
437 shell-completion/zsh/_systemd
439 nodist_zshcompletion_DATA = \
440 shell-completion/zsh/_systemctl
443 shell-completion/bash/systemctl.in \
444 shell-completion/zsh/_systemctl.in
447 $(nodist_bashcompletion_DATA) \
448 $(nodist_zshcompletion_DATA)
451 sysctl.d/50-default.conf
453 dist_systemunit_DATA = \
454 units/graphical.target \
455 units/multi-user.target \
456 units/emergency.target \
457 units/sysinit.target \
462 units/local-fs.target \
463 units/local-fs-pre.target \
464 units/initrd.target \
465 units/initrd-fs.target \
466 units/initrd-root-fs.target \
467 units/remote-fs.target \
468 units/remote-fs-pre.target \
469 units/network.target \
470 units/network-pre.target \
471 units/network-online.target \
472 units/nss-lookup.target \
473 units/nss-user-lookup.target \
474 units/poweroff.target \
475 units/reboot.target \
476 units/rescue.target \
477 units/rpcbind.target \
478 units/time-sync.target \
479 units/shutdown.target \
481 units/umount.target \
482 units/sigpwr.target \
484 units/sockets.target \
485 units/timers.target \
487 units/suspend.target \
489 units/slices.target \
492 units/systemd-fsckd.socket \
493 units/systemd-initctl.socket \
494 units/systemd-shutdownd.socket \
495 units/syslog.socket \
496 units/dev-hugepages.mount \
497 units/dev-mqueue.mount \
498 units/sys-kernel-config.mount \
499 units/sys-kernel-debug.mount \
500 units/sys-fs-fuse-connections.mount \
502 units/var-lib-machines.mount \
503 units/printer.target \
505 units/bluetooth.target \
506 units/smartcard.target \
507 units/systemd-ask-password-wall.path \
508 units/systemd-ask-password-console.path \
509 units/systemd-udevd-control.socket \
510 units/systemd-udevd-kernel.socket \
511 units/system-update.target \
512 units/initrd-switch-root.target \
513 units/machines.target
516 dist_systemunit_DATA += \
517 $(dist_systemunit_DATA_busnames)
520 dist_systemunit_DATA_busnames += \
521 units/busnames.target
523 nodist_systemunit_DATA = \
524 units/getty@.service \
525 units/serial-getty@.service \
526 units/console-shell.service \
527 units/console-getty.service \
528 units/container-getty@.service \
529 units/systemd-initctl.service \
530 units/systemd-shutdownd.service \
531 units/systemd-remount-fs.service \
532 units/systemd-ask-password-wall.service \
533 units/systemd-ask-password-console.service \
534 units/systemd-sysctl.service \
535 units/emergency.service \
536 units/rescue.service \
537 units/user@.service \
538 units/systemd-suspend.service \
539 units/systemd-halt.service \
540 units/systemd-poweroff.service \
541 units/systemd-reboot.service \
542 units/systemd-kexec.service \
543 units/systemd-fsck@.service \
544 units/systemd-fsck-root.service \
545 units/systemd-fsckd.service \
546 units/systemd-machine-id-commit.service \
547 units/systemd-udevd.service \
548 units/systemd-udev-trigger.service \
549 units/systemd-udev-settle.service \
550 units/systemd-hwdb-update.service \
551 units/debug-shell.service \
552 units/initrd-parse-etc.service \
553 units/initrd-cleanup.service \
554 units/initrd-udevadm-cleanup-db.service \
555 units/initrd-switch-root.service \
556 units/systemd-nspawn@.service \
557 units/systemd-update-done.service
560 nodist_systemunit_DATA += \
561 units/systemd-update-utmp.service \
562 units/systemd-update-utmp-runlevel.service
565 dist_userunit_DATA = \
566 units/user/basic.target \
567 units/user/default.target \
568 units/user/exit.target
570 nodist_userunit_DATA = \
571 units/user/systemd-exit.service
573 dist_systempreset_DATA = \
574 system-preset/90-systemd.preset
577 units/getty@.service.m4 \
578 units/serial-getty@.service.m4 \
579 units/console-shell.service.m4.in \
580 units/console-getty.service.m4.in \
581 units/container-getty@.service.m4.in \
582 units/rescue.service.in \
583 units/systemd-initctl.service.in \
584 units/systemd-shutdownd.service.in \
585 units/systemd-remount-fs.service.in \
586 units/systemd-update-utmp.service.in \
587 units/systemd-update-utmp-runlevel.service.in \
588 units/systemd-ask-password-wall.service.in \
589 units/systemd-ask-password-console.service.in \
590 units/systemd-sysctl.service.in \
591 units/emergency.service.in \
592 units/systemd-halt.service.in \
593 units/systemd-poweroff.service.in \
594 units/systemd-reboot.service.in \
595 units/systemd-kexec.service.in \
596 units/user/systemd-exit.service.in \
597 units/systemd-fsck@.service.in \
598 units/systemd-fsck-root.service.in \
599 units/systemd-fsckd.service.in \
600 units/systemd-machine-id-commit.service.in \
601 units/user@.service.m4.in \
602 units/debug-shell.service.in \
603 units/systemd-suspend.service.in \
604 units/quotaon.service.in \
605 units/initrd-parse-etc.service.in \
606 units/initrd-cleanup.service.in \
607 units/initrd-udevadm-cleanup-db.service.in \
608 units/initrd-switch-root.service.in \
609 units/systemd-nspawn@.service.in \
610 units/systemd-update-done.service.in
613 units/console-shell.service.m4 \
614 units/console-getty.service.m4 \
615 units/container-getty@.service.m4 \
616 units/user@.service.m4
619 nodist_systemunit_DATA += \
620 units/rc-local.service \
621 units/halt-local.service
623 systemgenerator_PROGRAMS += \
624 systemd-sysv-generator \
625 systemd-rc-local-generator
629 units/rc-local.service.in \
630 units/halt-local.service.in
632 # automake is broken and can't handle files with a dash in front
633 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
635 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
637 units-uninstall-hook:
638 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
640 INSTALL_DATA_HOOKS += units-install-hook
641 UNINSTALL_DATA_HOOKS += units-uninstall-hook
650 src/libsystemd/sd-bus/PORTING-DBUS1 \
651 src/libsystemd/sd-bus/DIFFERENCES \
652 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
654 @INTLTOOL_POLICY_RULE@
656 # ------------------------------------------------------------------------------
661 include Makefile-man.am
663 .PHONY: man update-man-list
664 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
667 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
669 ${XML_FILES:.xml=.html}
671 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
688 $(AM_V_at)$(MKDIR_P) $(dir $@)
689 $(AM_V_LN)$(LN_S) -f ../../man $@
698 man/index.html: man/systemd.index.html
699 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
707 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
708 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
709 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
711 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
712 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
713 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
714 @echo "Makefile-man.am has been regenerated"
716 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
717 $(AM_V_at)$(MKDIR_P) $(dir $@)
718 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
720 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
721 $(AM_V_at)$(MKDIR_P) $(dir $@)
722 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
725 man/systemd.index.xml \
727 man/systemd.directives.xml \
728 man/glib-event-glue.c
731 man/systemd.index.xml \
732 man/systemd.directives.xml
743 tools/make-man-index.py \
744 tools/make-directive-index.py \
747 # ------------------------------------------------------------------------------
748 noinst_LTLIBRARIES += \
751 libsystemd_shared_la_SOURCES = \
752 src/shared/capability.c \
753 src/shared/capability.h \
754 src/shared/linux/auto_dev-ioctl.h \
755 src/shared/ioprio.h \
756 src/shared/missing.h \
757 src/shared/initreq.h \
758 src/shared/securebits.h \
759 src/shared/special.h \
761 src/shared/unaligned.h \
764 src/shared/sparse-endian.h \
765 src/shared/refcnt.h \
766 src/shared/udev-util.h \
767 src/shared/device-nodes.c \
768 src/shared/device-nodes.h \
773 src/shared/architecture.c \
774 src/shared/architecture.h \
775 src/shared/efivars.c \
776 src/shared/efivars.h \
777 src/shared/fstab-util.c \
778 src/shared/fstab-util.h \
779 src/shared/path-util.c \
780 src/shared/path-util.h \
781 src/shared/time-util.c \
782 src/shared/time-util.h \
783 src/shared/locale-util.c \
784 src/shared/locale-util.h \
785 src/shared/mempool.c \
786 src/shared/mempool.h \
787 src/shared/hashmap.c \
788 src/shared/hashmap.h \
789 src/shared/siphash24.c \
790 src/shared/siphash24.h \
796 src/shared/sleep-config.c \
797 src/shared/sleep-config.h \
800 src/shared/env-util.c \
801 src/shared/env-util.h \
802 src/shared/strbuf.c \
803 src/shared/strbuf.h \
804 src/shared/strxcpyx.c \
805 src/shared/strxcpyx.h \
806 src/shared/conf-parser.c \
807 src/shared/conf-parser.h \
810 src/shared/ratelimit.h \
811 src/shared/ratelimit.c \
812 src/shared/exit-status.c \
813 src/shared/exit-status.h \
816 src/shared/gunicode.c \
817 src/shared/gunicode.h \
820 src/shared/socket-util.c \
821 src/shared/socket-util.h \
822 src/shared/in-addr-util.c \
823 src/shared/in-addr-util.h \
824 src/shared/ether-addr-util.h \
825 src/shared/conf-files.c \
826 src/shared/conf-files.h \
827 src/shared/cgroup-util.c \
828 src/shared/cgroup-util.h \
829 src/shared/cgroup-show.c \
830 src/shared/cgroup-show.h \
831 src/shared/unit-name.c \
832 src/shared/unit-name.h \
833 src/shared/utmp-wtmp.h \
834 src/shared/watchdog.c \
835 src/shared/watchdog.h \
836 src/shared/spawn-ask-password-agent.c \
837 src/shared/spawn-ask-password-agent.h \
838 src/shared/replace-var.c \
839 src/shared/replace-var.h \
840 src/shared/spawn-polkit-agent.c \
841 src/shared/spawn-polkit-agent.h \
842 src/shared/clock-util.c \
843 src/shared/clock-util.h \
844 src/shared/time-dst.c \
845 src/shared/time-dst.h \
846 src/shared/calendarspec.c \
847 src/shared/calendarspec.h \
848 src/shared/fileio.c \
849 src/shared/fileio.h \
850 src/shared/output-mode.h \
851 src/shared/MurmurHash2.c \
852 src/shared/MurmurHash2.h \
853 src/shared/acpi-fpdt.h \
854 src/shared/acpi-fpdt.c \
855 src/shared/boot-timestamps.h \
856 src/shared/boot-timestamps.c \
859 src/shared/smack-util.c \
860 src/shared/smack-util.h \
861 src/shared/apparmor-util.c \
862 src/shared/apparmor-util.h \
863 src/shared/ima-util.c \
864 src/shared/ima-util.h \
865 src/shared/ptyfwd.c \
866 src/shared/ptyfwd.h \
867 src/shared/errno-list.c \
868 src/shared/errno-list.h \
869 src/shared/af-list.c \
870 src/shared/af-list.h \
871 src/shared/arphrd-list.c \
872 src/shared/arphrd-list.h \
873 src/shared/cap-list.c \
874 src/shared/cap-list.h \
881 src/shared/bus-label.c \
882 src/shared/bus-label.h \
884 src/shared/clean-ipc.h \
885 src/shared/clean-ipc.c \
886 src/shared/login-shared.c \
887 src/shared/login-shared.h \
890 src/shared/barrier.c \
891 src/shared/barrier.h \
896 src/shared/base-filesystem.c \
897 src/shared/base-filesystem.h \
898 src/shared/memfd-util.c \
899 src/shared/memfd-util.h \
900 src/shared/uid-range.c \
901 src/shared/uid-range.h \
902 src/shared/nss-util.h \
905 src/shared/sigbus.c \
906 src/shared/sigbus.h \
908 src/shared/import-util.c \
909 src/shared/import-util.h
912 libsystemd_shared_la_SOURCES += \
913 src/shared/utmp-wtmp.c
916 nodist_libsystemd_shared_la_SOURCES = \
917 src/shared/errno-from-name.h \
918 src/shared/errno-to-name.h \
919 src/shared/af-from-name.h \
920 src/shared/af-to-name.h \
921 src/shared/arphrd-from-name.h \
922 src/shared/arphrd-to-name.h \
923 src/shared/cap-from-name.h \
924 src/shared/cap-to-name.h
926 libsystemd_shared_la_CFLAGS = \
932 libsystemd_shared_la_LIBADD = \
936 # ------------------------------------------------------------------------------
937 noinst_LTLIBRARIES += \
940 libsystemd_units_la_SOURCES = \
941 src/shared/install.c \
942 src/shared/install.h \
943 src/shared/install-printf.c \
944 src/shared/install-printf.h \
945 src/shared/path-lookup.c \
946 src/shared/path-lookup.h \
947 src/shared/specifier.c \
948 src/shared/specifier.h
950 # ------------------------------------------------------------------------------
951 noinst_LTLIBRARIES += \
954 libsystemd_label_la_SOURCES = \
955 src/shared/socket-label.c \
958 src/shared/selinux-util.c \
959 src/shared/selinux-util.h \
960 src/shared/mkdir-label.c \
961 src/shared/ask-password-api.c \
962 src/shared/ask-password-api.h \
963 src/shared/switch-root.h \
964 src/shared/switch-root.c \
965 src/shared/fileio-label.c \
966 src/shared/fileio-label.h \
967 src/shared/dev-setup.c \
968 src/shared/dev-setup.h \
969 src/shared/dropin.c \
970 src/shared/dropin.h \
971 src/shared/condition.c \
972 src/shared/condition.h \
973 src/shared/generator.h \
974 src/shared/generator.c \
975 src/shared/btrfs-util.c \
976 src/shared/btrfs-util.h \
977 src/shared/btrfs-ctree.h \
978 src/shared/machine-image.c \
979 src/shared/machine-image.h \
983 libsystemd_label_la_CFLAGS = \
987 libsystemd_label_la_LIBADD = \
990 # -----------------------------------------------------------------------------
993 noinst_LTLIBRARIES += \
996 libsystemd_fw_la_SOURCES = \
997 src/shared/fw-util.h \
1000 libsystemd_fw_la_CFLAGS = \
1004 libsystemd_fw_la_LIBADD = \
1008 # -----------------------------------------------------------------------------
1011 dist_systemunit_DATA += \
1012 units/ldconfig.service
1014 SYSINIT_TARGET_WANTS += \
1018 # ------------------------------------------------------------------------------
1021 noinst_LTLIBRARIES += \
1022 libsystemd-seccomp.la
1024 libsystemd_seccomp_la_SOURCES = \
1025 src/shared/seccomp-util.h \
1026 src/shared/seccomp-util.c
1028 libsystemd_seccomp_la_CFLAGS = \
1032 libsystemd_seccomp_la_LIBADD = \
1036 # ------------------------------------------------------------------------------
1037 noinst_LTLIBRARIES += \
1040 libsystemd_logs_la_SOURCES = \
1041 src/shared/logs-show.c \
1042 src/shared/logs-show.h
1044 # ------------------------------------------------------------------------------
1046 noinst_LTLIBRARIES += \
1049 libsystemd_acl_la_SOURCES = \
1050 src/shared/acl-util.c \
1051 src/shared/acl-util.h
1053 libsystemd_acl_la_CFLAGS = \
1057 libsystemd_acl_la_LIBADD = \
1061 # ------------------------------------------------------------------------------
1062 noinst_LTLIBRARIES += \
1065 libsystemd_core_la_SOURCES = \
1068 src/core/unit-printf.c \
1069 src/core/unit-printf.h \
1072 src/core/manager.c \
1073 src/core/manager.h \
1074 src/core/transaction.c \
1075 src/core/transaction.h \
1076 src/core/load-fragment.c \
1077 src/core/load-fragment.h \
1078 src/core/service.c \
1079 src/core/service.h \
1082 src/core/busname.c \
1083 src/core/busname.h \
1084 src/core/bus-endpoint.c \
1085 src/core/bus-endpoint.h \
1086 src/core/bus-policy.c \
1087 src/core/bus-policy.h \
1090 src/core/snapshot.c \
1091 src/core/snapshot.h \
1096 src/core/automount.c \
1097 src/core/automount.h \
1108 src/core/load-dropin.c \
1109 src/core/load-dropin.h \
1110 src/core/execute.c \
1111 src/core/execute.h \
1116 src/core/dbus-manager.c \
1117 src/core/dbus-manager.h \
1118 src/core/dbus-unit.c \
1119 src/core/dbus-unit.h \
1120 src/core/dbus-job.c \
1121 src/core/dbus-job.h \
1122 src/core/dbus-service.c \
1123 src/core/dbus-service.h \
1124 src/core/dbus-socket.c \
1125 src/core/dbus-socket.h \
1126 src/core/dbus-busname.c \
1127 src/core/dbus-busname.h \
1128 src/core/dbus-target.c \
1129 src/core/dbus-target.h \
1130 src/core/dbus-snapshot.c \
1131 src/core/dbus-snapshot.h \
1132 src/core/dbus-device.c \
1133 src/core/dbus-device.h \
1134 src/core/dbus-mount.c \
1135 src/core/dbus-mount.h \
1136 src/core/dbus-automount.c \
1137 src/core/dbus-automount.h \
1138 src/core/dbus-swap.c \
1139 src/core/dbus-swap.h \
1140 src/core/dbus-timer.c \
1141 src/core/dbus-timer.h \
1142 src/core/dbus-path.c \
1143 src/core/dbus-path.h \
1144 src/core/dbus-slice.c \
1145 src/core/dbus-slice.h \
1146 src/core/dbus-scope.c \
1147 src/core/dbus-scope.h \
1148 src/core/dbus-execute.c \
1149 src/core/dbus-execute.h \
1150 src/core/dbus-kill.c \
1151 src/core/dbus-kill.h \
1152 src/core/dbus-cgroup.c \
1153 src/core/dbus-cgroup.h \
1156 src/core/selinux-access.c \
1157 src/core/selinux-access.h \
1158 src/core/selinux-setup.c \
1159 src/core/selinux-setup.h \
1160 src/core/smack-setup.c \
1161 src/core/smack-setup.h \
1162 src/core/ima-setup.c \
1163 src/core/ima-setup.h \
1164 src/core/locale-setup.h \
1165 src/core/locale-setup.c \
1166 src/core/hostname-setup.c \
1167 src/core/hostname-setup.h \
1168 src/core/machine-id-setup.c \
1169 src/core/machine-id-setup.h \
1170 src/core/mount-setup.c \
1171 src/core/mount-setup.h \
1172 src/core/kmod-setup.c \
1173 src/core/kmod-setup.h \
1174 src/core/loopback-setup.h \
1175 src/core/loopback-setup.c \
1176 src/core/namespace.c \
1177 src/core/namespace.h \
1178 src/core/killall.h \
1179 src/core/killall.c \
1180 src/core/audit-fd.c \
1181 src/core/audit-fd.h \
1182 src/core/show-status.c \
1183 src/core/show-status.h \
1184 src/core/failure-action.c \
1185 src/core/failure-action.h
1187 nodist_libsystemd_core_la_SOURCES = \
1188 src/core/load-fragment-gperf.c \
1189 src/core/load-fragment-gperf-nulstr.c
1191 libsystemd_core_la_CFLAGS = \
1196 $(APPARMOR_CFLAGS) \
1201 libsystemd_core_la_LIBADD = \
1202 libsystemd-units.la \
1203 libsystemd-label.la \
1204 libudev-internal.la \
1205 libsystemd-shared.la \
1206 libsystemd-internal.la \
1215 libsystemd_core_la_LIBADD += \
1216 libsystemd-seccomp.la
1219 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1220 $(AM_V_at)$(MKDIR_P) $(dir $@)
1221 $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
1224 src/core/load-fragment-gperf.gperf.m4
1227 src/core/load-fragment-gperf.gperf \
1228 src/core/load-fragment-gperf.c \
1229 src/core/load-fragment-gperf-nulstr.c \
1230 src/shared/errno-list.txt \
1231 src/shared/errno-from-name.gperf \
1232 src/shared/af-list.txt \
1233 src/shared/af-from-name.gperf \
1234 src/shared/arphrd-list.txt \
1235 src/shared/arphrd-from-name.gperf \
1236 src/shared/cap-list.txt \
1237 src/shared/cap-from-name.gperf \
1238 src/resolve/dns_type-list.txt \
1239 src/resolve/dns_type-from-name.gperf
1242 src/shared/errno-from-name.h \
1243 src/shared/errno-to-name.h \
1244 src/shared/af-from-name.h \
1245 src/shared/af-to-name.h \
1246 src/shared/arphrd-from-name.h \
1247 src/shared/arphrd-to-name.h \
1248 src/shared/cap-from-name.h \
1249 src/shared/cap-to-name.h \
1250 src/resolve/dns_type-from-name.h \
1251 src/resolve/dns_type-to-name.h
1253 %-from-name.gperf: %-list.txt
1254 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1256 %-from-name.h: %-from-name.gperf
1257 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1260 src/shared/errno-list.txt:
1261 $(AM_V_at)$(MKDIR_P) $(dir $@)
1262 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1264 src/shared/errno-to-name.h: src/shared/errno-list.txt
1265 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1268 src/shared/af-list.txt:
1269 $(AM_V_at)$(MKDIR_P) $(dir $@)
1270 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1272 src/shared/af-to-name.h: src/shared/af-list.txt
1273 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1276 src/shared/arphrd-list.txt:
1277 $(AM_V_at)$(MKDIR_P) $(dir $@)
1278 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1280 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1281 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1283 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1284 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1287 src/shared/cap-list.txt:
1288 $(AM_V_at)$(MKDIR_P) $(dir $@)
1289 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
1291 src/shared/cap-to-name.h: src/shared/cap-list.txt
1292 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1294 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1295 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1297 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1298 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1301 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1302 $(AM_V_at)$(MKDIR_P) $(dir $@)
1303 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1305 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1306 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1308 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1309 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1311 # ------------------------------------------------------------------------------
1320 libsystemd-core.la \
1323 dist_pkgsysconf_DATA += \
1324 src/core/system.conf \
1327 dist_dbuspolicy_DATA += \
1328 src/core/org.freedesktop.systemd1.conf
1330 dist_dbussystemservice_DATA += \
1331 src/core/org.freedesktop.systemd1.service
1333 polkitpolicy_in_in_files += \
1334 src/core/org.freedesktop.systemd1.policy.in.in
1336 pkgconfiglib_DATA += \
1339 nodist_rpmmacros_DATA = \
1340 src/core/macros.systemd
1343 src/core/systemd.pc.in \
1344 src/core/macros.systemd.in
1347 src/core/macros.systemd \
1348 src/core/org.freedesktop.systemd1.policy.in
1350 # ------------------------------------------------------------------------------
1400 test-strip-tab-ansi \
1436 test/daughter.service \
1438 test/end.service.in \
1441 test/grandchild.service \
1443 test/hello-after-sleep.target \
1444 test/hello.service \
1446 test/parent-deep.slice \
1449 test/sched_idle_bad.service \
1450 test/sched_idle_ok.service \
1451 test/sched_rr_bad.service \
1452 test/sched_rr_change.service \
1453 test/sched_rr_ok.service \
1454 test/shutdown.target \
1455 test/sleep.service \
1456 test/sockets.target \
1458 test/sysinit.target \
1459 test/testsuite.target \
1460 test/timers.target \
1461 test/unstoppable.service \
1462 test/path-changed.service \
1463 test/path-directorynotempty.service \
1464 test/path-existsglob.service \
1465 test/path-exists.service \
1466 test/path-makedirectory.service \
1467 test/path-modified.service \
1468 test/path-mycustomunit.service \
1469 test/path-service.service \
1470 test/path-changed.path \
1471 test/path-directorynotempty.path \
1472 test/path-existsglob.path \
1473 test/path-exists.path \
1474 test/path-makedirectory.path \
1475 test/path-modified.path \
1476 test/path-unit.path \
1477 test/exec-environment-empty.service \
1478 test/exec-environment-multiple.service \
1479 test/exec-environment.service \
1480 test/exec-group.service \
1481 test/exec-ignoresigpipe-no.service \
1482 test/exec-ignoresigpipe-yes.service \
1483 test/exec-personality-x86-64.service \
1484 test/exec-personality-x86.service \
1485 test/exec-privatedevices-no.service \
1486 test/exec-privatedevices-yes.service \
1487 test/exec-privatetmp-no.service \
1488 test/exec-privatetmp-yes.service \
1489 test/exec-systemcallerrornumber.service \
1490 test/exec-systemcallfilter-failing2.service \
1491 test/exec-systemcallfilter-failing.service \
1492 test/exec-systemcallfilter-not-failing2.service \
1493 test/exec-systemcallfilter-not-failing.service \
1494 test/exec-user.service \
1495 test/exec-workingdirectory.service \
1496 test/exec-umask-0177.service \
1497 test/exec-umask-default.service \
1498 test/bus-policy/hello.conf \
1499 test/bus-policy/methods.conf \
1500 test/bus-policy/ownerships.conf \
1501 test/bus-policy/signals.conf \
1502 test/bus-policy/check-own-rules.conf \
1503 test/bus-policy/many-rules.conf \
1504 test/bus-policy/test.conf
1508 src/test/test-helper.h
1510 test_device_nodes_SOURCES = \
1511 src/test/test-device-nodes.c
1513 test_device_nodes_LDADD = \
1514 libsystemd-shared.la
1516 test_engine_SOURCES = \
1517 src/test/test-engine.c
1519 test_engine_CFLAGS = \
1523 test_engine_LDADD = \
1524 libsystemd-core.la \
1527 test_job_type_SOURCES = \
1528 src/test/test-job-type.c
1530 test_job_type_CFLAGS = \
1534 test_job_type_LDADD = \
1535 libsystemd-core.la \
1548 test_loopback_SOURCES = \
1549 src/test/test-loopback.c
1551 test_loopback_LDADD = \
1554 test_hostname_SOURCES = \
1555 src/test/test-hostname.c
1557 test_hostname_LDADD = \
1564 test_boot_timestamp_SOURCES = \
1565 src/test/test-boot-timestamps.c
1567 test_boot_timestamp_LDADD = \
1568 libsystemd-shared.la
1571 test_unit_name_SOURCES = \
1572 src/test/test-unit-name.c
1574 test_unit_name_CFLAGS = \
1578 test_unit_name_LDADD = \
1579 libsystemd-core.la \
1582 test_unit_file_SOURCES = \
1583 src/test/test-unit-file.c
1585 test_unit_file_CFLAGS = \
1589 test_unit_file_LDADD = \
1590 libsystemd-core.la \
1593 test_utf8_SOURCES = \
1594 src/test/test-utf8.c
1597 libsystemd-shared.la
1599 test_capability_SOURCES = \
1600 src/test/test-capability.c
1602 test_capability_LDADD = \
1603 libsystemd-shared.la
1605 test_async_SOURCES = \
1606 src/test/test-async.c
1608 test_async_LDADD = \
1609 libsystemd-shared.la
1611 test_locale_util_SOURCES = \
1612 src/test/test-locale-util.c
1614 test_locale_util_LDADD = \
1615 libsystemd-shared.la
1617 test_copy_SOURCES = \
1618 src/test/test-copy.c
1621 libsystemd-label.la \
1622 libsystemd-shared.la
1624 test_sigbus_SOURCES = \
1625 src/test/test-sigbus.c
1627 test_sigbus_LDADD = \
1628 libsystemd-shared.la
1630 test_condition_SOURCES = \
1631 src/test/test-condition.c
1633 test_condition_LDADD = \
1634 libsystemd-label.la \
1635 libsystemd-internal.la \
1636 libsystemd-shared.la
1638 test_fdset_SOURCES = \
1639 src/test/test-fdset.c
1641 test_fdset_LDADD = \
1642 libsystemd-shared.la \
1643 libsystemd-internal.la
1645 test_fstab_util_SOURCES = \
1646 src/test/test-fstab-util.c
1648 test_fstab_util_LDADD = \
1649 libsystemd-shared.la
1651 test_ratelimit_SOURCES = \
1652 src/test/test-ratelimit.c
1654 test_ratelimit_LDADD = \
1655 libsystemd-shared.la
1657 test_util_SOURCES = \
1658 src/test/test-util.c
1661 libsystemd-shared.la
1663 test_path_lookup_SOURCES = \
1664 src/test/test-path-lookup.c
1666 test_path_lookup_LDADD = \
1668 libsystemd-units.la \
1669 libsystemd-shared.la
1671 test_uid_range_SOURCES = \
1672 src/test/test-uid-range.c
1674 test_uid_range_LDADD = \
1675 libsystemd-shared.la
1677 test_cap_list_SOURCES = \
1678 src/test/test-cap-list.c
1680 test_cap_list_LDADD = \
1681 libsystemd-shared.la
1683 test_socket_util_SOURCES = \
1684 src/test/test-socket-util.c
1686 test_socket_util_LDADD = \
1687 libsystemd-shared.la
1689 test_ring_SOURCES = \
1690 src/test/test-ring.c
1693 libsystemd-shared.la
1695 test_barrier_SOURCES = \
1696 src/test/test-barrier.c
1698 test_barrier_LDADD = \
1699 libsystemd-shared.la
1701 test_pty_SOURCES = \
1707 test_tmpfiles_SOURCES = \
1708 src/test/test-tmpfiles.c
1710 test_tmpfiles_LDADD = \
1711 libsystemd-shared.la
1713 test_namespace_SOURCES = \
1714 src/test/test-namespace.c
1716 test_verbs_SOURCES = \
1717 src/test/test-verbs.c
1719 test_verbs_LDADD = \
1720 libsystemd-shared.la
1722 test_namespace_LDADD = \
1726 src/test/test-hashmap-ordered.c
1729 src/test/test-hashmap-ordered.c
1731 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1732 $(AM_V_at)$(MKDIR_P) $(dir $@)
1733 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1734 { if (!match($$0, "^#include")) \
1735 gsub(/hashmap/, "ordered_hashmap"); \
1736 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1737 gsub(/Hashmap/, "OrderedHashmap"); \
1740 nodist_test_hashmap_SOURCES = \
1741 src/test/test-hashmap-ordered.c
1743 test_hashmap_SOURCES = \
1744 src/test/test-hashmap.c \
1745 src/test/test-hashmap-plain.c
1747 test_hashmap_LDADD = \
1748 libsystemd-shared.la
1750 test_set_SOURCES = \
1754 libsystemd-shared.la
1756 test_xml_SOURCES = \
1760 libsystemd-shared.la
1762 test_json_SOURCES = \
1763 src/test/test-json.c
1766 libsystemd-shared.la
1768 test_list_SOURCES = \
1769 src/test/test-list.c
1772 libsystemd-shared.la
1774 test_unaligned_LDADD = \
1775 libsystemd-shared.la
1777 test_unaligned_SOURCES = \
1778 src/test/test-unaligned.c
1780 test_tables_SOURCES = \
1781 src/test/test-tables.c \
1782 src/shared/test-tables.h \
1783 src/bus-proxyd/bus-xml-policy.c \
1784 src/bus-proxyd/bus-xml-policy.h \
1785 src/journal/journald-server.c \
1786 src/journal/journald-server.h
1788 test_tables_CPPFLAGS = \
1790 -I$(top_srcdir)/src/bus-proxyd
1792 test_tables_CFLAGS = \
1796 test_tables_LDADD = \
1797 libsystemd-logs.la \
1798 libsystemd-journal-internal.la \
1799 libsystemd-journal-core.la \
1800 libsystemd-core.la \
1804 test_prioq_SOURCES = \
1805 src/test/test-prioq.c
1807 test_prioq_LDADD = \
1808 libsystemd-shared.la
1810 test_fileio_SOURCES = \
1811 src/test/test-fileio.c
1813 test_fileio_LDADD = \
1814 libsystemd-shared.la
1816 test_time_SOURCES = \
1817 src/test/test-time.c
1820 libsystemd-shared.la
1822 test_architecture_SOURCES = \
1823 src/test/test-architecture.c
1825 test_architecture_LDADD = \
1826 libsystemd-shared.la
1828 test_log_SOURCES = \
1832 libsystemd-shared.la
1834 test_ipcrm_SOURCES = \
1835 src/test/test-ipcrm.c
1837 test_ipcrm_LDADD = \
1838 libsystemd-shared.la \
1841 test_btrfs_SOURCES = \
1842 src/test/test-btrfs.c
1844 test_btrfs_LDADD = \
1845 libsystemd-label.la \
1846 libsystemd-shared.la
1849 test_fw_util_SOURCES = \
1850 src/test/test-fw-util.c
1852 test_fw_util_CFLAGS = \
1856 test_fw_util_LDADD = \
1858 libsystemd-shared.la \
1862 test_rtnl_manual_SOURCES = \
1863 src/test/test-rtnl-manual.c
1865 test_rtnl_manual_CFLAGS = \
1869 test_rtnl_manual_LDADD = \
1870 libsystemd-internal.la \
1871 libsystemd-shared.la \
1874 test_ellipsize_SOURCES = \
1875 src/test/test-ellipsize.c
1877 test_ellipsize_LDADD = \
1878 libsystemd-shared.la
1880 test_date_SOURCES = \
1881 src/test/test-date.c
1884 libsystemd-shared.la
1886 test_sleep_SOURCES = \
1887 src/test/test-sleep.c
1889 test_sleep_LDADD = \
1892 test_replace_var_SOURCES = \
1893 src/test/test-replace-var.c
1895 test_replace_var_LDADD = \
1896 libsystemd-shared.la
1898 test_calendarspec_SOURCES = \
1899 src/test/test-calendarspec.c
1901 test_calendarspec_LDADD = \
1902 libsystemd-shared.la
1904 test_strip_tab_ansi_SOURCES = \
1905 src/test/test-strip-tab-ansi.c
1907 test_strip_tab_ansi_LDADD = \
1908 libsystemd-shared.la
1910 test_daemon_SOURCES = \
1911 src/test/test-daemon.c
1913 test_daemon_LDADD = \
1914 libsystemd-internal.la \
1915 libsystemd-shared.la
1917 test_cgroup_SOURCES = \
1918 src/test/test-cgroup.c
1920 test_cgroup_LDADD = \
1921 libsystemd-label.la \
1922 libsystemd-shared.la \
1923 libsystemd-internal.la
1925 test_cgroup_mask_SOURCES = \
1926 src/test/test-cgroup-mask.c
1928 test_cgroup_mask_CPPFLAGS = \
1931 test_cgroup_mask_CFLAGS = \
1935 test_cgroup_mask_LDADD = \
1936 libsystemd-core.la \
1939 test_cgroup_util_SOURCES = \
1940 src/test/test-cgroup-util.c
1942 test_cgroup_util_LDADD = \
1943 libsystemd-label.la \
1944 libsystemd-internal.la \
1945 libsystemd-shared.la
1947 test_env_replace_SOURCES = \
1948 src/test/test-env-replace.c
1950 test_env_replace_LDADD = \
1951 libsystemd-shared.la
1953 test_strbuf_SOURCES = \
1954 src/test/test-strbuf.c
1956 test_strbuf_LDADD = \
1957 libsystemd-shared.la
1959 test_strv_SOURCES = \
1960 src/test/test-strv.c
1963 libsystemd-units.la \
1964 libsystemd-internal.la \
1965 libsystemd-shared.la
1967 test_path_util_SOURCES = \
1968 src/test/test-path-util.c
1970 test_path_util_LDADD = \
1971 libsystemd-shared.la
1973 test_path_SOURCES = \
1974 src/test/test-path.c
1976 test_path_CFLAGS = \
1982 test_execute_SOURCES = \
1983 src/test/test-execute.c
1985 test_execute_CFLAGS = \
1988 test_execute_LDADD = \
1991 test_strxcpyx_SOURCES = \
1992 src/test/test-strxcpyx.c
1994 test_strxcpyx_LDADD = \
1995 libsystemd-shared.la
1997 test_install_SOURCES = \
1998 src/test/test-install.c
2000 test_install_LDADD = \
2001 libsystemd-units.la \
2002 libsystemd-label.la \
2003 libsystemd-shared.la \
2004 libsystemd-internal.la
2006 test_watchdog_SOURCES = \
2007 src/test/test-watchdog.c
2009 test_watchdog_LDADD = \
2010 libsystemd-shared.la
2012 test_sched_prio_SOURCES = \
2013 src/test/test-sched-prio.c
2015 test_sched_prio_CPPFLAGS = \
2018 test_sched_prio_CFLAGS = \
2022 test_sched_prio_LDADD = \
2023 libsystemd-core.la \
2026 test_conf_files_SOURCES = \
2027 src/test/test-conf-files.c
2029 test_conf_files_LDADD = \
2030 libsystemd-shared.la
2032 test_bus_policy_SOURCES = \
2033 src/bus-proxyd/test-bus-xml-policy.c
2035 test_bus_policy_LDADD = \
2036 libsystemd-proxy.la \
2037 libsystemd-internal.la \
2038 libsystemd-shared.la
2040 # ------------------------------------------------------------------------------
2041 ## .PHONY so it always rebuilds it
2042 .PHONY: coverage lcov-run lcov-report coverage-sync
2044 # run lcov from scratch, always
2049 coverage_dir = coverage
2050 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2053 # reset run coverage tests
2055 @rm -rf $(coverage_dir)
2056 lcov $(coverage_opts) --zerocounters
2059 # generate report based on current coverage data
2061 $(MKDIR_P) $(coverage_dir)
2062 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2063 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2064 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2065 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2066 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2068 # lcov doesn't work properly with vpath builds, make sure that bad
2069 # output is not uploaded by mistake.
2070 coverage-sync: coverage
2071 test "$(builddir)" = "$(srcdir)"
2072 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2075 lcov-run lcov-report:
2076 echo "Need to reconfigure with --enable-coverage"
2079 # ------------------------------------------------------------------------------
2080 systemd_analyze_SOURCES = \
2081 src/analyze/analyze.c \
2082 src/analyze/analyze-verify.c \
2083 src/analyze/analyze-verify.h
2085 systemd_verify_CFLAGS = \
2089 systemd_analyze_LDADD = \
2090 libsystemd-core.la \
2091 libsystemd-internal.la \
2092 libsystemd-shared.la \
2095 # ------------------------------------------------------------------------------
2096 systemd_initctl_SOURCES = \
2097 src/initctl/initctl.c
2099 systemd_initctl_LDADD = \
2100 libsystemd-internal.la \
2101 libsystemd-shared.la
2103 # ------------------------------------------------------------------------------
2104 systemd_update_utmp_SOURCES = \
2105 src/update-utmp/update-utmp.c
2107 systemd_update_utmp_CFLAGS = \
2111 systemd_update_utmp_LDADD = \
2112 libsystemd-internal.la \
2113 libsystemd-shared.la \
2116 # ------------------------------------------------------------------------------
2117 systemd_update_done_SOURCES = \
2118 src/update-done/update-done.c
2120 systemd_update_done_LDADD = \
2121 libsystemd-internal.la \
2122 libsystemd-label.la \
2123 libsystemd-shared.la
2125 # ------------------------------------------------------------------------------
2126 systemd_shutdownd_SOURCES = \
2127 src/shutdownd/shutdownd.c
2129 systemd_shutdownd_LDADD = \
2130 libsystemd-label.la \
2131 libsystemd-internal.la \
2132 libsystemd-shared.la
2135 src/systemd/sd-shutdown.h
2137 # ------------------------------------------------------------------------------
2138 systemd_shutdown_SOURCES = \
2141 src/core/shutdown.c \
2142 src/core/mount-setup.c \
2143 src/core/mount-setup.h \
2144 src/core/killall.h \
2147 systemd_shutdown_LDADD = \
2148 libsystemd-label.la \
2149 libudev-internal.la \
2150 libsystemd-shared.la
2152 # ------------------------------------------------------------------------------
2154 systemd_modules_load_SOURCES = \
2155 src/modules-load/modules-load.c
2157 systemd_modules_load_CFLAGS = \
2161 systemd_modules_load_LDADD = \
2162 libsystemd-shared.la \
2165 rootlibexec_PROGRAMS += \
2166 systemd-modules-load
2168 nodist_systemunit_DATA += \
2169 units/systemd-modules-load.service
2171 SYSINIT_TARGET_WANTS += \
2172 systemd-modules-load.service
2175 nodist_systemunit_DATA += \
2176 units/kmod-static-nodes.service
2178 SYSINIT_TARGET_WANTS += \
2179 kmod-static-nodes.service
2184 units/systemd-modules-load.service.in \
2185 units/kmod-static-nodes.service.in
2187 # ------------------------------------------------------------------------------
2189 systemd_tmpfiles_SOURCES = \
2190 src/tmpfiles/tmpfiles.c
2192 systemd_tmpfiles_LDADD = \
2193 libsystemd-units.la \
2194 libsystemd-label.la \
2195 libsystemd-internal.la \
2196 libsystemd-shared.la
2199 systemd_tmpfiles_LDADD += \
2203 rootbin_PROGRAMS += \
2206 dist_systemunit_DATA += \
2207 units/systemd-tmpfiles-clean.timer
2209 nodist_systemunit_DATA += \
2210 units/systemd-tmpfiles-setup-dev.service \
2211 units/systemd-tmpfiles-setup.service \
2212 units/systemd-tmpfiles-clean.service
2214 nodist_tmpfiles_DATA = \
2217 dist_tmpfiles_DATA = \
2218 tmpfiles.d/systemd.conf \
2219 tmpfiles.d/systemd-nologin.conf \
2220 tmpfiles.d/tmp.conf \
2221 tmpfiles.d/x11.conf \
2225 dist_tmpfiles_DATA += \
2226 tmpfiles.d/legacy.conf
2229 SYSINIT_TARGET_WANTS += \
2230 systemd-tmpfiles-setup-dev.service \
2231 systemd-tmpfiles-setup.service
2233 dist_zshcompletion_DATA += \
2234 shell-completion/zsh/_systemd-tmpfiles
2236 TIMERS_TARGET_WANTS += \
2237 systemd-tmpfiles-clean.timer
2241 $(sysconfdir)/tmpfiles.d
2245 tmpfiles.d/etc.conf.m4 \
2246 units/systemd-tmpfiles-setup-dev.service.in \
2247 units/systemd-tmpfiles-setup.service.in \
2248 units/systemd-tmpfiles-clean.service.in
2253 # ------------------------------------------------------------------------------
2255 systemd_sysusers_SOURCES = \
2256 src/sysusers/sysusers.c
2258 systemd_sysusers_LDADD = \
2259 libsystemd-units.la \
2260 libsystemd-label.la \
2261 libsystemd-internal.la \
2262 libsystemd-shared.la
2264 rootbin_PROGRAMS += \
2267 nodist_systemunit_DATA += \
2268 units/systemd-sysusers.service
2270 SYSINIT_TARGET_WANTS += \
2271 systemd-sysusers.service
2273 dist_sysusers_DATA = \
2274 sysusers.d/systemd.conf
2276 nodist_sysusers_DATA = \
2277 sysusers.d/basic.conf
2280 units/systemd-sysusers.service.in \
2281 sysusers.d/basic.conf.in
2284 sysusers.d/basic.conf
2290 # ------------------------------------------------------------------------------
2291 dist_factory_etc_DATA = \
2292 factory/etc/nsswitch.conf
2295 dist_factory_pam_DATA = \
2296 factory/etc/pam.d/system-auth \
2297 factory/etc/pam.d/other
2300 # ------------------------------------------------------------------------------
2302 systemd_firstboot_SOURCES = \
2303 src/firstboot/firstboot.c
2305 systemd_firstboot_LDADD = \
2306 libsystemd-units.la \
2307 libsystemd-label.la \
2308 libsystemd-internal.la \
2309 libsystemd-shared.la \
2312 rootbin_PROGRAMS += \
2315 nodist_systemunit_DATA += \
2316 units/systemd-firstboot.service
2319 units/systemd-firstboot.service.in
2321 SYSINIT_TARGET_WANTS += \
2322 systemd-firstboot.service
2325 # ------------------------------------------------------------------------------
2326 systemd_machine_id_setup_SOURCES = \
2327 src/machine-id-setup/machine-id-setup-main.c \
2328 src/core/machine-id-setup.c \
2329 src/core/machine-id-setup.h
2331 systemd_machine_id_setup_LDADD = \
2332 libsystemd-label.la \
2333 libsystemd-internal.la \
2334 libsystemd-shared.la
2336 # ------------------------------------------------------------------------------
2337 systemd_sysctl_SOURCES = \
2340 systemd_sysctl_LDADD = \
2341 libsystemd-shared.la
2343 # ------------------------------------------------------------------------------
2344 systemd_sleep_SOURCES = \
2347 systemd_sleep_LDADD = \
2348 libsystemd-shared.la
2350 # ------------------------------------------------------------------------------
2351 systemd_fsck_SOURCES = \
2354 systemd_fsck_LDADD = \
2355 libsystemd-internal.la \
2356 libudev-internal.la \
2357 libsystemd-shared.la
2359 # ------------------------------------------------------------------------------
2360 systemd_fsckd_SOURCES = \
2364 systemd_fsckd_LDADD = \
2365 libsystemd-internal.la \
2366 libsystemd-label.la \
2367 libsystemd-shared.la \
2368 libudev-internal.la \
2371 # ------------------------------------------------------------------------------
2372 systemd_machine_id_commit_SOURCES = \
2373 src/machine-id-commit/machine-id-commit.c \
2374 src/core/machine-id-setup.c \
2375 src/core/machine-id-setup.h
2377 systemd_machine_id_commit_LDADD = \
2378 libsystemd-label.la \
2379 libsystemd-internal.la \
2380 libsystemd-shared.la
2382 SYSINIT_TARGET_WANTS += \
2383 systemd-machine-id-commit.service
2385 # ------------------------------------------------------------------------------
2386 systemd_ac_power_SOURCES = \
2387 src/ac-power/ac-power.c
2389 systemd_ac_power_LDADD = \
2390 libudev-internal.la \
2391 libsystemd-shared.la
2393 # ------------------------------------------------------------------------------
2394 systemd_detect_virt_SOURCES = \
2395 src/detect-virt/detect-virt.c
2397 systemd_detect_virt_LDADD = \
2398 libsystemd-shared.la
2400 INSTALL_EXEC_HOOKS += \
2401 systemd-detect-virt-install-hook
2403 # ------------------------------------------------------------------------------
2404 systemd_delta_SOURCES = \
2407 systemd_delta_LDADD = \
2408 libsystemd-shared.la
2410 # ------------------------------------------------------------------------------
2411 systemd_getty_generator_SOURCES = \
2412 src/getty-generator/getty-generator.c
2414 systemd_getty_generator_LDADD = \
2415 libsystemd-label.la \
2416 libsystemd-shared.la
2418 # ------------------------------------------------------------------------------
2419 systemd_debug_generator_SOURCES = \
2420 src/debug-generator/debug-generator.c
2422 systemd_debug_generator_LDADD = \
2423 libsystemd-label.la \
2424 libsystemd-shared.la
2426 # ------------------------------------------------------------------------------
2427 systemd_fstab_generator_SOURCES = \
2428 src/fstab-generator/fstab-generator.c \
2429 src/core/mount-setup.c
2431 systemd_fstab_generator_LDADD = \
2432 libsystemd-label.la \
2433 libsystemd-shared.la
2435 # ------------------------------------------------------------------------------
2436 systemd_system_update_generator_SOURCES = \
2437 src/system-update-generator/system-update-generator.c
2439 systemd_system_update_generator_LDADD = \
2440 libsystemd-label.la \
2441 libsystemd-shared.la
2443 # ------------------------------------------------------------------------------
2445 systemgenerator_PROGRAMS += \
2446 systemd-hibernate-resume-generator
2448 rootlibexec_PROGRAMS += \
2449 systemd-hibernate-resume
2451 systemd_hibernate_resume_SOURCES = \
2452 src/hibernate-resume/hibernate-resume.c
2454 systemd_hibernate_resume_LDADD = \
2455 libsystemd-internal.la \
2456 libsystemd-shared.la
2458 systemd_hibernate_resume_generator_SOURCES = \
2459 src/hibernate-resume/hibernate-resume-generator.c
2461 systemd_hibernate_resume_generator_LDADD = \
2462 libsystemd-label.la \
2463 libsystemd-shared.la
2466 units/systemd-hibernate.service.in \
2467 units/systemd-hibernate-resume@.service.in \
2468 units/systemd-hybrid-sleep.service.in
2470 dist_systemunit_DATA += \
2471 units/hibernate.target \
2472 units/hybrid-sleep.target
2474 nodist_systemunit_DATA += \
2475 units/systemd-hibernate.service \
2476 units/systemd-hibernate-resume@.service \
2477 units/systemd-hybrid-sleep.service
2480 # ------------------------------------------------------------------------------
2482 systemgenerator_PROGRAMS += \
2483 systemd-efi-boot-generator
2485 systemd_efi_boot_generator_SOURCES = \
2486 src/efi-boot-generator/efi-boot-generator.c
2488 systemd_efi_boot_generator_LDADD = \
2489 libsystemd-label.la \
2490 libsystemd-shared.la
2492 # ------------------------------------------------------------------------------
2497 bootctl_CPPFLAGS = \
2499 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2500 -DBOOTLIBDIR=\"$(bootlibdir)\"
2507 libsystemd-shared.la \
2508 libsystemd-internal.la \
2514 dist_bashcompletion_DATA += \
2515 shell-completion/bash/bootctl
2517 dist_zshcompletion_DATA += \
2518 shell-completion/zsh/_bootctl
2521 # ------------------------------------------------------------------------------
2525 -I$(top_builddir) -include config.h \
2526 -I$(EFI_INC_DIR)/efi \
2527 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2528 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2541 -fno-strict-aliasing \
2542 -fno-stack-protector \
2550 -DEFI_FUNCTION_WRAPPER \
2551 -DGNU_EFI_USE_MS_ABI
2556 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2562 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2564 # ------------------------------------------------------------------------------
2565 systemd_boot_headers = \
2566 src/boot/efi/util.h \
2567 src/boot/efi/console.h \
2568 src/boot/efi/graphics.h \
2569 src/boot/efi/pefile.h
2571 systemd_boot_sources = \
2572 src/boot/efi/util.c \
2573 src/boot/efi/console.c \
2574 src/boot/efi/graphics.c \
2575 src/boot/efi/pefile.c \
2578 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2579 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2580 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2582 bootlib_DATA = $(systemd_boot)
2583 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2584 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2586 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2587 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2588 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2590 $(systemd_boot_solib): $(systemd_boot_objects)
2591 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2592 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2593 nm -D -u $@ | grep ' U ' && exit 1 || :
2595 $(systemd_boot): $(systemd_boot_solib)
2596 $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
2597 -j .dynsym -j .rel -j .rela -j .reloc \
2598 --target=efi-app-$(EFI_ARCH) $< $@
2600 # ------------------------------------------------------------------------------
2602 src/boot/efi/util.h \
2603 src/boot/efi/pefile.h \
2604 src/boot/efi/graphics.h \
2605 src/boot/efi/splash.h \
2606 src/boot/efi/linux.h
2609 src/boot/efi/util.c \
2610 src/boot/efi/pefile.c \
2611 src/boot/efi/graphics.c \
2612 src/boot/efi/splash.c \
2613 src/boot/efi/linux.c \
2616 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2617 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2618 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2620 bootlib_DATA += $(stub)
2621 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2622 EXTRA_DIST += $(stub_sources) $(stub_headers)
2624 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2625 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2626 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2628 $(stub_solib): $(stub_objects)
2629 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2630 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2631 nm -D -u $@ | grep ' U ' && exit 1 || :
2633 $(stub): $(stub_solib)
2634 $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
2635 -j .dynsym -j .rel -j .rela -j .reloc \
2636 --target=efi-app-$(EFI_ARCH) $< $@
2638 # ------------------------------------------------------------------------------
2639 CLEANFILES += test-efi-disk.img
2640 EXTRA_DIST += test/test-efi-create-disk.sh
2642 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2643 $(AM_V_GEN)test/test-efi-create-disk.sh
2645 test-efi: test-efi-disk.img
2646 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2650 # ------------------------------------------------------------------------------
2652 systemgenerator_PROGRAMS += \
2653 systemd-gpt-auto-generator
2655 systemd_gpt_auto_generator_SOURCES = \
2656 src/gpt-auto-generator/gpt-auto-generator.c \
2657 src/shared/blkid-util.h
2659 systemd_gpt_auto_generator_LDADD = \
2660 libsystemd-label.la \
2661 libsystemd-internal.la \
2662 libudev-internal.la \
2663 libsystemd-shared.la \
2666 systemd_gpt_auto_generator_CFLAGS = \
2671 # ------------------------------------------------------------------------------
2673 systemgenerator_PROGRAMS += \
2674 systemd-dbus1-generator
2676 systemd_dbus1_generator_SOURCES = \
2677 src/dbus1-generator/dbus1-generator.c
2679 systemd_dbus1_generator_LDADD = \
2680 libsystemd-label.la \
2681 libsystemd-internal.la \
2682 libsystemd-shared.la
2684 dbus1-generator-install-hook:
2685 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2686 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2687 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2689 dbus1-generator-uninstall-hook:
2690 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2692 dist_xinitrc_SCRIPTS = \
2693 xorg/50-systemd-user.sh
2695 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2696 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2699 # ------------------------------------------------------------------------------
2700 systemd_sysv_generator_SOURCES = \
2701 src/sysv-generator/sysv-generator.c
2703 systemd_sysv_generator_LDADD = \
2704 libsystemd-core.la \
2705 libsystemd-label.la \
2706 libsystemd-shared.la
2708 # ------------------------------------------------------------------------------
2709 systemd_rc_local_generator_SOURCES = \
2710 src/rc-local-generator/rc-local-generator.c
2712 systemd_rc_local_generator_LDADD = \
2713 libsystemd-label.la \
2714 libsystemd-shared.la
2716 # ------------------------------------------------------------------------------
2717 systemd_remount_fs_SOURCES = \
2718 src/remount-fs/remount-fs.c \
2719 src/core/mount-setup.c \
2720 src/core/mount-setup.h
2722 systemd_remount_fs_LDADD = \
2723 libsystemd-label.la \
2724 libsystemd-shared.la
2726 # ------------------------------------------------------------------------------
2727 systemd_cgroups_agent_SOURCES = \
2728 src/cgroups-agent/cgroups-agent.c
2730 systemd_cgroups_agent_LDADD = \
2731 libsystemd-internal.la \
2732 libsystemd-shared.la
2734 # ------------------------------------------------------------------------------
2735 systemd_escape_SOURCES = \
2738 systemd_escape_LDADD = \
2739 libsystemd-shared.la
2741 # -----------------------------------------------------------------------------
2742 systemctl_SOURCES = \
2743 src/systemctl/systemctl.c
2746 libsystemd-units.la \
2747 libsystemd-label.la \
2748 libsystemd-internal.la \
2749 libsystemd-logs.la \
2750 libsystemd-journal-internal.la \
2751 libsystemd-shared.la
2753 # ------------------------------------------------------------------------------
2754 systemd_notify_SOURCES = \
2757 systemd_notify_LDADD = \
2758 libsystemd-internal.la \
2759 libsystemd-shared.la
2761 # ------------------------------------------------------------------------------
2762 systemd_path_SOURCES = \
2765 systemd_path_LDADD = \
2766 libsystemd-internal.la \
2767 libsystemd-shared.la
2769 # ------------------------------------------------------------------------------
2770 systemd_ask_password_SOURCES = \
2771 src/ask-password/ask-password.c
2773 systemd_ask_password_LDADD = \
2774 libsystemd-label.la \
2775 libsystemd-shared.la
2777 # ------------------------------------------------------------------------------
2778 systemd_reply_password_SOURCES = \
2779 src/reply-password/reply-password.c
2781 systemd_reply_password_LDADD = \
2782 libsystemd-shared.la
2784 # ------------------------------------------------------------------------------
2785 systemd_cgls_SOURCES = \
2788 systemd_cgls_LDADD = \
2789 libsystemd-internal.la \
2790 libsystemd-shared.la
2792 # ------------------------------------------------------------------------------
2793 systemd_cgtop_SOURCES = \
2796 systemd_cgtop_LDADD = \
2797 libsystemd-shared.la
2799 # ------------------------------------------------------------------------------
2800 systemd_nspawn_SOURCES = \
2801 src/nspawn/nspawn.c \
2802 src/core/mount-setup.c \
2803 src/core/mount-setup.h \
2804 src/core/loopback-setup.c \
2805 src/core/loopback-setup.h
2807 systemd_nspawn_CFLAGS = \
2812 systemd_nspawn_LDADD = \
2813 libsystemd-label.la \
2814 libsystemd-internal.la \
2815 libudev-internal.la \
2816 libsystemd-shared.la \
2820 systemd_nspawn_LDADD += \
2821 libsystemd-seccomp.la \
2826 systemd_nspawn_LDADD += \
2830 # ------------------------------------------------------------------------------
2831 systemd_run_SOURCES = \
2834 systemd_run_LDADD = \
2835 libsystemd-label.la \
2836 libsystemd-internal.la \
2837 libsystemd-shared.la
2839 # ------------------------------------------------------------------------------
2840 noinst_LTLIBRARIES += \
2843 libsystemd_proxy_la_SOURCES = \
2844 src/bus-proxyd/bus-xml-policy.c \
2845 src/bus-proxyd/bus-xml-policy.h \
2846 src/bus-proxyd/driver.c \
2847 src/bus-proxyd/driver.h \
2848 src/bus-proxyd/proxy.c \
2849 src/bus-proxyd/proxy.h \
2850 src/bus-proxyd/synthesize.c \
2851 src/bus-proxyd/synthesize.h
2853 libsystemd_proxy_la_CFLAGS = \
2857 libsystemd_proxy_la_LIBADD = \
2858 libsystemd-internal.la \
2859 libsystemd-shared.la
2861 systemd_bus_proxyd_SOURCES = \
2862 src/bus-proxyd/bus-proxyd.c
2864 systemd_bus_proxyd_CFLAGS = \
2868 systemd_bus_proxyd_LDADD = \
2869 libsystemd-proxy.la \
2870 libsystemd-internal.la \
2871 libsystemd-shared.la
2873 systemd_stdio_bridge_SOURCES = \
2874 src/bus-proxyd/stdio-bridge.c
2876 systemd_stdio_bridge_LDADD = \
2877 libsystemd-proxy.la \
2878 libsystemd-internal.la \
2879 libsystemd-shared.la
2882 nodist_systemunit_DATA += \
2883 units/systemd-bus-proxyd.service
2885 dist_systemunit_DATA += \
2886 units/systemd-bus-proxyd.socket
2888 nodist_userunit_DATA += \
2889 units/user/systemd-bus-proxyd.service
2891 dist_userunit_DATA += \
2892 units/user/systemd-bus-proxyd.socket
2896 units/systemd-bus-proxyd.service.m4.in \
2897 units/user/systemd-bus-proxyd.service.in
2900 units/systemd-bus-proxyd.service.m4
2903 bus-proxyd-set-cap-hook:
2904 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2906 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2909 # ------------------------------------------------------------------------------
2910 systemd_tty_ask_password_agent_SOURCES = \
2911 src/tty-ask-password-agent/tty-ask-password-agent.c
2913 systemd_tty_ask_password_agent_LDADD = \
2914 libsystemd-label.la \
2915 libsystemd-shared.la
2917 # ------------------------------------------------------------------------------
2918 libsystemd_internal_la_SOURCES = \
2919 src/systemd/sd-bus.h \
2920 src/systemd/sd-bus-protocol.h \
2921 src/systemd/sd-bus-vtable.h \
2922 src/systemd/sd-utf8.h \
2923 src/systemd/sd-event.h \
2924 src/systemd/sd-rtnl.h \
2925 src/systemd/sd-resolve.h \
2926 src/systemd/sd-login.h \
2927 src/systemd/sd-id128.h \
2928 src/systemd/sd-daemon.h \
2929 src/systemd/sd-path.h \
2930 src/systemd/sd-network.h \
2931 src/systemd/sd-hwdb.h \
2932 src/libsystemd/sd-bus/sd-bus.c \
2933 src/libsystemd/sd-bus/bus-control.c \
2934 src/libsystemd/sd-bus/bus-control.h \
2935 src/libsystemd/sd-bus/bus-error.c \
2936 src/libsystemd/sd-bus/bus-error.h \
2937 src/libsystemd/sd-bus/bus-common-errors.h \
2938 src/libsystemd/sd-bus/bus-common-errors.c \
2939 src/libsystemd/sd-bus/bus-internal.c \
2940 src/libsystemd/sd-bus/bus-internal.h \
2941 src/libsystemd/sd-bus/bus-socket.c \
2942 src/libsystemd/sd-bus/bus-socket.h \
2943 src/libsystemd/sd-bus/bus-kernel.c \
2944 src/libsystemd/sd-bus/bus-kernel.h \
2945 src/libsystemd/sd-bus/bus-container.c \
2946 src/libsystemd/sd-bus/bus-container.h \
2947 src/libsystemd/sd-bus/bus-message.c \
2948 src/libsystemd/sd-bus/bus-message.h \
2949 src/libsystemd/sd-bus/bus-creds.c \
2950 src/libsystemd/sd-bus/bus-creds.h \
2951 src/libsystemd/sd-bus/bus-signature.c \
2952 src/libsystemd/sd-bus/bus-signature.h \
2953 src/libsystemd/sd-bus/bus-type.c \
2954 src/libsystemd/sd-bus/bus-type.h \
2955 src/libsystemd/sd-bus/bus-match.c \
2956 src/libsystemd/sd-bus/bus-match.h \
2957 src/libsystemd/sd-bus/bus-bloom.c \
2958 src/libsystemd/sd-bus/bus-bloom.h \
2959 src/libsystemd/sd-bus/bus-introspect.c \
2960 src/libsystemd/sd-bus/bus-introspect.h \
2961 src/libsystemd/sd-bus/bus-objects.c \
2962 src/libsystemd/sd-bus/bus-objects.h \
2963 src/libsystemd/sd-bus/bus-gvariant.c \
2964 src/libsystemd/sd-bus/bus-gvariant.h \
2965 src/libsystemd/sd-bus/bus-convenience.c \
2966 src/libsystemd/sd-bus/bus-track.c \
2967 src/libsystemd/sd-bus/bus-track.h \
2968 src/libsystemd/sd-bus/bus-util.c \
2969 src/libsystemd/sd-bus/bus-util.h \
2970 src/libsystemd/sd-bus/bus-slot.c \
2971 src/libsystemd/sd-bus/bus-slot.h \
2972 src/libsystemd/sd-bus/bus-protocol.h \
2973 src/libsystemd/sd-bus/kdbus.h \
2974 src/libsystemd/sd-utf8/sd-utf8.c \
2975 src/libsystemd/sd-event/sd-event.c \
2976 src/libsystemd/sd-event/event-util.h \
2977 src/libsystemd/sd-rtnl/sd-rtnl.c \
2978 src/libsystemd/sd-rtnl/rtnl-internal.h \
2979 src/libsystemd/sd-rtnl/rtnl-message.c \
2980 src/libsystemd/sd-rtnl/rtnl-types.h \
2981 src/libsystemd/sd-rtnl/rtnl-types.c \
2982 src/libsystemd/sd-rtnl/rtnl-util.h \
2983 src/libsystemd/sd-rtnl/rtnl-util.c \
2984 src/libsystemd/sd-rtnl/local-addresses.h \
2985 src/libsystemd/sd-rtnl/local-addresses.c \
2986 src/libsystemd/sd-id128/sd-id128.c \
2987 src/libsystemd/sd-daemon/sd-daemon.c \
2988 src/libsystemd/sd-login/sd-login.c \
2989 src/libsystemd/sd-path/sd-path.c \
2990 src/libsystemd/sd-network/sd-network.c \
2991 src/libsystemd/sd-network/network-util.h \
2992 src/libsystemd/sd-network/network-util.c \
2993 src/libsystemd/sd-hwdb/sd-hwdb.c \
2994 src/libsystemd/sd-hwdb/hwdb-util.h \
2995 src/libsystemd/sd-hwdb/hwdb-internal.h
2997 nodist_libsystemd_internal_la_SOURCES = \
2998 src/libsystemd/libsystemd.sym
3000 libsystemd_internal_la_CFLAGS = \
3004 libsystemd_internal_la_LIBADD = \
3007 libsystemd_resolve_la_SOURCES = \
3008 src/libsystemd/sd-resolve/sd-resolve.c \
3009 src/libsystemd/sd-resolve/resolve-util.h
3011 libsystemd_resolve_la_CFLAGS = \
3015 libsystemd_resolve_la_LIBADD = \
3018 noinst_LTLIBRARIES += \
3019 libsystemd-internal.la \
3020 libsystemd-resolve.la
3022 libsystemd_dump_la_SOURCES = \
3023 src/libsystemd/sd-bus/bus-dump.c \
3024 src/libsystemd/sd-bus/bus-dump.h
3026 noinst_LTLIBRARIES += \
3030 src/libsystemd/libsystemd.sym.m4 \
3031 src/libsystemd/libsystemd.pc.in \
3032 src/libsystemd/sd-bus/DIFFERENCES \
3033 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3036 src/libsystemd/libsystemd.sym
3039 src/libsystemd/libsystemd.sym
3041 libsystemd_la_SOURCES = \
3042 $(libsystemd_internal_la_SOURCES) \
3043 $(libsystemd_resolve_la_SOURCES) \
3044 $(libsystemd_journal_internal_la_SOURCES)
3046 nodist_libsystemd_la_SOURCES = \
3047 $(nodist_libsystemd_internal_la_SOURCES)
3049 libsystemd_la_CFLAGS = \
3050 $(libsystemd_internal_la_CFLAGS) \
3051 $(libsystemd_resolve_la_CFLAGS) \
3052 $(libsystemd_journal_internal_la_CFLAGS)
3054 libsystemd_la_LDFLAGS = \
3056 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3057 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
3059 libsystemd_la_LIBADD = \
3060 libsystemd-shared.la \
3061 $(libsystemd_internal_la_LIBADD) \
3062 $(libsystemd_journal_internal_la_LIBADD) \
3063 $(libsystemd_resolve_la_LIBADD)
3065 libsystemd-install-hook:
3066 libname=libsystemd.so && $(move-to-rootlibdir)
3068 libsystemd-uninstall-hook:
3069 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3071 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3072 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3074 pkgconfiglib_DATA += \
3075 src/libsystemd/libsystemd.pc
3077 pkginclude_HEADERS += \
3078 src/systemd/sd-login.h \
3079 src/systemd/sd-id128.h \
3080 src/systemd/sd-daemon.h
3083 pkginclude_HEADERS += \
3084 src/systemd/sd-bus.h \
3085 src/systemd/sd-bus-protocol.h \
3086 src/systemd/sd-bus-vtable.h \
3087 src/systemd/sd-utf8.h \
3088 src/systemd/sd-event.h \
3089 src/systemd/sd-rtnl.h \
3090 src/systemd/sd-resolve.h \
3091 src/systemd/sd-path.h
3094 lib_LTLIBRARIES += \
3099 test-bus-signature \
3105 test-bus-kernel-bloom \
3106 test-bus-kernel-benchmark \
3107 test-bus-zero-copy \
3108 test-bus-introspect \
3115 test-local-addresses \
3121 test_bus_marshal_SOURCES = \
3122 src/libsystemd/sd-bus/test-bus-marshal.c
3124 test_bus_marshal_LDADD = \
3125 libsystemd-dump.la \
3126 libsystemd-internal.la \
3127 libsystemd-shared.la \
3131 test_bus_marshal_CFLAGS = \
3136 test_bus_signature_SOURCES = \
3137 src/libsystemd/sd-bus/test-bus-signature.c
3139 test_bus_signature_LDADD = \
3140 libsystemd-internal.la \
3141 libsystemd-shared.la
3143 test_bus_chat_SOURCES = \
3144 src/libsystemd/sd-bus/test-bus-chat.c
3146 test_bus_chat_CFLAGS = \
3150 test_bus_chat_LDADD = \
3151 libsystemd-internal.la \
3152 libsystemd-shared.la
3154 test_bus_cleanup_SOURCES = \
3155 src/libsystemd/sd-bus/test-bus-cleanup.c
3157 test_bus_cleanup_CFLAGS = \
3161 test_bus_cleanup_LDADD = \
3162 libsystemd-internal.la \
3163 libsystemd-shared.la
3165 test_bus_server_SOURCES = \
3166 src/libsystemd/sd-bus/test-bus-server.c
3168 test_bus_server_CFLAGS = \
3172 test_bus_server_LDADD = \
3173 libsystemd-internal.la \
3174 libsystemd-shared.la
3176 test_bus_objects_SOURCES = \
3177 src/libsystemd/sd-bus/test-bus-objects.c
3179 test_bus_objects_CFLAGS = \
3183 test_bus_objects_LDADD = \
3184 libsystemd-dump.la \
3185 libsystemd-internal.la \
3186 libsystemd-shared.la
3188 test_bus_error_SOURCES = \
3189 src/libsystemd/sd-bus/test-bus-error.c
3191 test_bus_error_LDADD = \
3192 libsystemd-internal.la \
3193 libsystemd-shared.la
3195 test_bus_gvariant_SOURCES = \
3196 src/libsystemd/sd-bus/test-bus-gvariant.c
3198 test_bus_gvariant_LDADD = \
3199 libsystemd-dump.la \
3200 libsystemd-internal.la \
3201 libsystemd-shared.la \
3204 test_bus_gvariant_CFLAGS = \
3208 test_bus_creds_SOURCES = \
3209 src/libsystemd/sd-bus/test-bus-creds.c
3211 test_bus_creds_LDADD = \
3212 libsystemd-dump.la \
3213 libsystemd-internal.la \
3214 libsystemd-shared.la
3216 test_bus_match_SOURCES = \
3217 src/libsystemd/sd-bus/test-bus-match.c
3219 test_bus_match_LDADD = \
3220 libsystemd-internal.la \
3221 libsystemd-shared.la
3223 test_bus_kernel_SOURCES = \
3224 src/libsystemd/sd-bus/test-bus-kernel.c
3226 test_bus_kernel_LDADD = \
3227 libsystemd-dump.la \
3228 libsystemd-internal.la \
3229 libsystemd-shared.la
3231 test_bus_kernel_bloom_SOURCES = \
3232 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3234 test_bus_kernel_bloom_LDADD = \
3235 libsystemd-internal.la \
3236 libsystemd-shared.la
3238 test_bus_kernel_benchmark_SOURCES = \
3239 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3241 test_bus_kernel_benchmark_LDADD = \
3242 libsystemd-internal.la \
3243 libsystemd-shared.la
3245 test_bus_zero_copy_SOURCES = \
3246 src/libsystemd/sd-bus/test-bus-zero-copy.c
3248 test_bus_zero_copy_LDADD = \
3249 libsystemd-dump.la \
3250 libsystemd-internal.la \
3251 libsystemd-shared.la
3253 test_bus_introspect_SOURCES = \
3254 src/libsystemd/sd-bus/test-bus-introspect.c
3256 test_bus_introspect_LDADD = \
3257 libsystemd-internal.la \
3258 libsystemd-shared.la
3260 test_event_SOURCES = \
3261 src/libsystemd/sd-event/test-event.c
3263 test_event_LDADD = \
3264 libsystemd-internal.la \
3265 libsystemd-shared.la
3267 test_rtnl_SOURCES = \
3268 src/libsystemd/sd-rtnl/test-rtnl.c
3271 libsystemd-internal.la \
3272 libsystemd-shared.la
3274 test_local_addresses_SOURCES = \
3275 src/libsystemd/sd-rtnl/test-local-addresses.c
3277 test_local_addresses_LDADD = \
3278 libsystemd-internal.la \
3279 libsystemd-shared.la
3281 test_resolve_SOURCES = \
3282 src/libsystemd/sd-resolve/test-resolve.c
3284 test_resolve_LDADD = \
3285 libsystemd-resolve.la \
3286 libsystemd-internal.la \
3287 libsystemd-shared.la
3289 test_resolve_CFLAGS = \
3294 src/libsystemd/sd-bus/busctl.c \
3295 src/libsystemd/sd-bus/busctl-introspect.c \
3296 src/libsystemd/sd-bus/busctl-introspect.h
3299 libsystemd-dump.la \
3300 libsystemd-internal.la \
3301 libsystemd-shared.la
3303 # ------------------------------------------------------------------------------
3304 noinst_LTLIBRARIES += \
3305 libsystemd-network.la
3307 libsystemd_network_la_CFLAGS = \
3311 libsystemd_network_la_SOURCES = \
3312 src/systemd/sd-dhcp-client.h \
3313 src/systemd/sd-dhcp-server.h \
3314 src/systemd/sd-dhcp-lease.h \
3315 src/systemd/sd-ipv4ll.h \
3316 src/systemd/sd-icmp6-nd.h \
3317 src/systemd/sd-dhcp6-client.h \
3318 src/systemd/sd-dhcp6-lease.h \
3319 src/systemd/sd-pppoe.h \
3320 src/systemd/sd-lldp.h \
3321 src/libsystemd-network/sd-dhcp-client.c \
3322 src/libsystemd-network/sd-dhcp-server.c \
3323 src/libsystemd-network/dhcp-network.c \
3324 src/libsystemd-network/dhcp-option.c \
3325 src/libsystemd-network/dhcp-packet.c \
3326 src/libsystemd-network/dhcp-internal.h \
3327 src/libsystemd-network/dhcp-server-internal.h \
3328 src/libsystemd-network/dhcp-protocol.h \
3329 src/libsystemd-network/dhcp-lease-internal.h \
3330 src/libsystemd-network/sd-dhcp-lease.c \
3331 src/libsystemd-network/sd-ipv4ll.c \
3332 src/libsystemd-network/ipv4ll-network.c \
3333 src/libsystemd-network/ipv4ll-packet.c \
3334 src/libsystemd-network/ipv4ll-internal.h \
3335 src/libsystemd-network/sd-pppoe.c \
3336 src/libsystemd-network/network-internal.c \
3337 src/libsystemd-network/network-internal.h \
3338 src/libsystemd-network/sd-icmp6-nd.c \
3339 src/libsystemd-network/sd-dhcp6-client.c \
3340 src/libsystemd-network/dhcp6-internal.h \
3341 src/libsystemd-network/dhcp6-protocol.h \
3342 src/libsystemd-network/dhcp6-network.c \
3343 src/libsystemd-network/dhcp6-option.c \
3344 src/libsystemd-network/dhcp6-lease-internal.h \
3345 src/libsystemd-network/sd-dhcp6-lease.c \
3346 src/libsystemd-network/dhcp-identifier.h \
3347 src/libsystemd-network/dhcp-identifier.c \
3348 src/libsystemd-network/lldp.h \
3349 src/libsystemd-network/lldp-tlv.h \
3350 src/libsystemd-network/lldp-tlv.c \
3351 src/libsystemd-network/lldp-network.h \
3352 src/libsystemd-network/lldp-network.c \
3353 src/libsystemd-network/lldp-port.h \
3354 src/libsystemd-network/lldp-port.c \
3355 src/libsystemd-network/lldp-internal.h \
3356 src/libsystemd-network/lldp-internal.c \
3357 src/libsystemd-network/lldp-util.h \
3358 src/libsystemd-network/sd-lldp.c
3360 libsystemd_network_la_LIBADD = \
3361 libudev-internal.la \
3362 libsystemd-label.la \
3363 libsystemd-internal.la \
3364 libsystemd-shared.la \
3367 test_dhcp_option_SOURCES = \
3368 src/libsystemd-network/dhcp-protocol.h \
3369 src/libsystemd-network/dhcp-internal.h \
3370 src/libsystemd-network/test-dhcp-option.c
3372 test_dhcp_option_LDADD = \
3373 libsystemd-network.la \
3374 libsystemd-internal.la \
3375 libsystemd-shared.la
3377 test_dhcp_client_SOURCES = \
3378 src/systemd/sd-dhcp-client.h \
3379 src/libsystemd-network/dhcp-protocol.h \
3380 src/libsystemd-network/dhcp-internal.h \
3381 src/libsystemd-network/test-dhcp-client.c
3383 test_dhcp_client_LDADD = \
3384 libsystemd-network.la \
3385 libsystemd-label.la \
3386 libsystemd-internal.la \
3387 libsystemd-shared.la
3389 test_dhcp_server_SOURCES = \
3390 src/libsystemd-network/test-dhcp-server.c
3392 test_dhcp_server_LDADD = \
3393 libsystemd-network.la \
3394 libsystemd-internal.la \
3395 libsystemd-shared.la
3397 test_ipv4ll_SOURCES = \
3398 src/systemd/sd-ipv4ll.h \
3399 src/libsystemd-network/ipv4ll-internal.h \
3400 src/libsystemd-network/test-ipv4ll.c
3402 test_ipv4ll_LDADD = \
3403 libsystemd-network.la \
3404 libsystemd-label.la \
3405 libsystemd-internal.la \
3406 libsystemd-shared.la
3408 test_pppoe_SOURCES = \
3409 src/systemd/sd-pppoe.h \
3410 src/libsystemd-network/test-pppoe.c
3412 test_pppoe_LDADD = \
3413 libsystemd-network.la \
3414 libsystemd-shared.la
3416 test_icmp6_rs_SOURCES = \
3417 src/systemd/sd-dhcp6-client.h \
3418 src/systemd/sd-icmp6-nd.h \
3419 src/libsystemd-network/dhcp6-internal.h \
3420 src/libsystemd-network/test-icmp6-rs.c \
3421 src/libsystemd-network/dhcp-identifier.h \
3422 src/libsystemd-network/dhcp-identifier.c
3424 test_icmp6_rs_LDADD = \
3425 libsystemd-network.la \
3426 libsystemd-internal.la \
3427 libsystemd-shared.la
3429 test_dhcp6_client_SOURCES = \
3430 src/systemd/sd-dhcp6-client.h \
3431 src/libsystemd-network/dhcp6-internal.h \
3432 src/libsystemd-network/test-dhcp6-client.c \
3433 src/libsystemd-network/dhcp-identifier.h \
3434 src/libsystemd-network/dhcp-identifier.c
3436 test_dhcp6_client_LDADD = \
3437 libsystemd-network.la \
3438 libsystemd-internal.la \
3439 libsystemd-shared.la
3441 test_lldp_SOURCES = \
3442 src/libsystemd-network/lldp.h \
3443 src/libsystemd-network/lldp-tlv.h \
3444 src/libsystemd-network/lldp-tlv.c \
3445 src/libsystemd-network/test-lldp.c
3448 libsystemd-network.la \
3449 libsystemd-internal.la \
3450 libsystemd-shared.la
3464 # ------------------------------------------------------------------------------
3466 noinst_LTLIBRARIES += \
3467 libsystemd-terminal.la
3469 rootlibexec_PROGRAMS += \
3472 noinst_PROGRAMS += \
3477 dist_pkgdata_DATA += \
3478 src/libsystemd-terminal/unifont-glyph-array.bin
3480 nodist_userunit_DATA += \
3481 units/user/systemd-consoled.service
3483 USER_DEFAULT_TARGET_WANTS += \
3484 systemd-consoled.service
3493 units/user/systemd-consoled.service.in
3495 libsystemd_terminal_la_CFLAGS = \
3499 libsystemd_terminal_la_SOURCES = \
3500 src/libsystemd-terminal/grdev.h \
3501 src/libsystemd-terminal/grdev-internal.h \
3502 src/libsystemd-terminal/grdev.c \
3503 src/libsystemd-terminal/grdev-drm.c \
3504 src/libsystemd-terminal/idev.h \
3505 src/libsystemd-terminal/idev-internal.h \
3506 src/libsystemd-terminal/idev.c \
3507 src/libsystemd-terminal/idev-evdev.c \
3508 src/libsystemd-terminal/idev-keyboard.c \
3509 src/libsystemd-terminal/sysview.h \
3510 src/libsystemd-terminal/sysview-internal.h \
3511 src/libsystemd-terminal/sysview.c \
3512 src/libsystemd-terminal/term.h \
3513 src/libsystemd-terminal/term-internal.h \
3514 src/libsystemd-terminal/term-charset.c \
3515 src/libsystemd-terminal/term-page.c \
3516 src/libsystemd-terminal/term-parser.c \
3517 src/libsystemd-terminal/term-screen.c \
3518 src/libsystemd-terminal/term-wcwidth.c \
3519 src/libsystemd-terminal/unifont.h \
3520 src/libsystemd-terminal/unifont-def.h \
3521 src/libsystemd-terminal/unifont.c
3523 libsystemd_terminal_la_LIBADD = \
3524 libudev-internal.la \
3525 libsystemd-internal.la \
3526 libsystemd-shared.la \
3529 systemd_consoled_CFLAGS = \
3533 systemd_consoled_SOURCES = \
3534 src/console/consoled.h \
3535 src/console/consoled.c \
3536 src/console/consoled-display.c \
3537 src/console/consoled-manager.c \
3538 src/console/consoled-session.c \
3539 src/console/consoled-terminal.c \
3540 src/console/consoled-workspace.c
3542 systemd_consoled_LDADD = \
3543 libsystemd-terminal.la \
3544 libsystemd-internal.la \
3545 libsystemd-shared.la \
3548 systemd_evcat_CFLAGS = \
3552 systemd_evcat_SOURCES = \
3553 src/libsystemd-terminal/evcat.c
3555 systemd_evcat_LDADD = \
3556 libsystemd-terminal.la \
3557 libsystemd-internal.la \
3558 libsystemd-shared.la \
3561 systemd_modeset_CFLAGS = \
3565 systemd_modeset_SOURCES = \
3566 src/libsystemd-terminal/modeset.c
3568 systemd_modeset_LDADD = \
3569 libsystemd-terminal.la \
3570 libsystemd-internal.la \
3571 libsystemd-shared.la \
3574 systemd_subterm_SOURCES = \
3575 src/libsystemd-terminal/subterm.c
3577 systemd_subterm_LDADD = \
3578 libsystemd-terminal.la \
3579 libsystemd-internal.la \
3580 libsystemd-shared.la
3582 test_term_page_SOURCES = \
3583 src/libsystemd-terminal/test-term-page.c
3585 test_term_page_LDADD = \
3586 libsystemd-terminal.la \
3587 libsystemd-internal.la \
3588 libsystemd-shared.la
3590 test_term_parser_SOURCES = \
3591 src/libsystemd-terminal/test-term-parser.c
3593 test_term_parser_LDADD = \
3594 libsystemd-terminal.la \
3595 libsystemd-internal.la \
3596 libsystemd-shared.la
3598 test_unifont_SOURCES = \
3599 src/libsystemd-terminal/test-unifont.c
3601 test_unifont_LDADD = \
3602 libsystemd-terminal.la \
3603 libsystemd-internal.la \
3604 libsystemd-shared.la
3606 src/libsystemd-terminal/unifont-glyph-array.bin: tools/compile-unifont.py $(UNIFONT)
3607 $(AM_V_GEN)$(PYTHON) $< <$(UNIFONT) >$@
3609 # ------------------------------------------------------------------------------
3619 include_HEADERS += \
3620 src/libudev/libudev.h
3622 lib_LTLIBRARIES += \
3625 libudev_la_SOURCES =\
3626 src/libudev/libudev.sym \
3627 src/libudev/libudev-private.h \
3628 src/libudev/libudev.c \
3629 src/libudev/libudev-list.c \
3630 src/libudev/libudev-util.c \
3631 src/libudev/libudev-device.c \
3632 src/libudev/libudev-enumerate.c \
3633 src/libudev/libudev-monitor.c \
3634 src/libudev/libudev-queue.c \
3635 src/libudev/libudev-hwdb.c
3637 libudev_la_CFLAGS = \
3641 libudev_la_LDFLAGS = \
3643 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3644 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3646 libudev_la_LIBADD = \
3647 libsystemd-internal.la \
3648 libsystemd-shared.la
3650 pkgconfiglib_DATA += \
3651 src/libudev/libudev.pc
3654 src/libudev/libudev.pc.in
3657 src/libudev/libudev.pc \
3662 $(AM_V_at)$(MKDIR_P) $(dir $@)
3663 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3666 $(AM_V_at)$(MKDIR_P) $(dir $@)
3667 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3669 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3670 libudev-install-hook:
3671 libname=libudev.so && $(move-to-rootlibdir)
3673 libudev-uninstall-hook:
3674 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3676 INSTALL_EXEC_HOOKS += libudev-install-hook
3677 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3679 # ------------------------------------------------------------------------------
3680 noinst_LTLIBRARIES += \
3683 libudev_internal_la_SOURCES =\
3684 $(libudev_la_SOURCES) \
3685 src/libudev/libudev-device-private.c
3687 libudev_internal_la_CFLAGS = \
3689 -fvisibility=default
3691 # ------------------------------------------------------------------------------
3693 $(sysconfdir)/udev/rules.d
3695 dist_network_DATA = \
3696 network/99-default.link \
3697 network/80-container-host0.network \
3698 network/80-container-ve.network
3700 dist_udevrules_DATA += \
3701 rules/42-usb-hid-pm.rules \
3702 rules/50-udev-default.rules \
3703 rules/60-drm.rules \
3704 rules/60-keyboard.rules \
3705 rules/60-persistent-storage-tape.rules \
3706 rules/60-persistent-serial.rules \
3707 rules/60-persistent-input.rules \
3708 rules/60-persistent-alsa.rules \
3709 rules/60-persistent-storage.rules \
3710 rules/64-btrfs.rules \
3711 rules/70-mouse.rules \
3712 rules/70-touchpad.rules \
3713 rules/75-net-description.rules \
3714 rules/75-tty-description.rules \
3715 rules/78-sound-card.rules \
3716 rules/80-net-setup-link.rules \
3717 rules/95-udev-late.rules
3719 nodist_udevrules_DATA += \
3720 rules/99-systemd.rules
3722 udevconfdir = $(sysconfdir)/udev
3723 dist_udevconf_DATA = \
3726 sharepkgconfigdir = $(datadir)/pkgconfig
3727 sharepkgconfig_DATA = \
3731 rules/99-systemd.rules.in \
3735 rules/99-systemd.rules \
3739 units/systemd-udevd.service.in \
3740 units/systemd-udev-trigger.service.in \
3741 units/systemd-udev-settle.service.in
3744 units/systemd-udevd.service \
3745 units/systemd-udev-trigger.service \
3746 units/systemd-udev-settle.service
3748 SOCKETS_TARGET_WANTS += \
3749 systemd-udevd-control.socket \
3750 systemd-udevd-kernel.socket
3752 SYSINIT_TARGET_WANTS += \
3753 systemd-udevd.service \
3754 systemd-udev-trigger.service
3756 rootbin_PROGRAMS += \
3759 rootlibexec_PROGRAMS += \
3762 noinst_LTLIBRARIES += \
3765 src/udev/keyboard-keys.txt:
3766 $(AM_V_at)$(MKDIR_P) $(dir $@)
3767 $(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/' > $@
3769 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3770 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3772 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3773 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3775 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3776 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3778 libudev_core_la_SOURCES = \
3780 src/udev/udev-event.c \
3781 src/udev/udev-watch.c \
3782 src/udev/udev-node.c \
3783 src/udev/udev-rules.c \
3784 src/udev/udev-ctrl.c \
3785 src/udev/udev-builtin.c \
3786 src/udev/udev-builtin-btrfs.c \
3787 src/udev/udev-builtin-hwdb.c \
3788 src/udev/udev-builtin-input_id.c \
3789 src/udev/udev-builtin-keyboard.c \
3790 src/udev/udev-builtin-net_id.c \
3791 src/udev/udev-builtin-net_setup_link.c \
3792 src/udev/udev-builtin-path_id.c \
3793 src/udev/udev-builtin-usb_id.c \
3794 src/udev/net/link-config.h \
3795 src/udev/net/link-config.c \
3796 src/udev/net/ethtool-util.h \
3797 src/udev/net/ethtool-util.c
3799 nodist_libudev_core_la_SOURCES = \
3800 src/udev/keyboard-keys-from-name.h \
3801 src/udev/keyboard-keys-to-name.h \
3802 src/udev/net/link-config-gperf.c
3805 $(nodist_libudev_core_la_SOURCES)
3808 src/udev/keyboard-keys-from-name.gperf \
3809 src/udev/keyboard-keys.txt \
3810 src/udev/net/link-config-gperf.c
3813 src/udev/net/link-config-gperf.gperf
3815 libudev_core_la_CFLAGS = \
3820 libudev_core_la_LIBADD = \
3821 libudev-internal.la \
3822 libsystemd-label.la \
3823 libsystemd-internal.la \
3824 libsystemd-network.la \
3825 libsystemd-shared.la \
3830 libudev_core_la_SOURCES += \
3831 src/udev/udev-builtin-kmod.c
3833 dist_udevrules_DATA += \
3834 rules/80-drivers.rules
3838 libudev_core_la_SOURCES += \
3839 src/udev/udev-builtin-blkid.c
3843 libudev_core_la_SOURCES += \
3844 src/udev/udev-builtin-uaccess.c \
3845 src/login/logind-acl.c \
3846 src/libsystemd/sd-login/sd-login.c \
3847 src/systemd/sd-login.h
3849 libudev_core_la_LIBADD += \
3853 systemd_udevd_SOURCES = \
3856 systemd_udevd_LDADD = \
3860 src/udev/udevadm.c \
3861 src/udev/udevadm-info.c \
3862 src/udev/udevadm-control.c \
3863 src/udev/udevadm-monitor.c \
3864 src/udev/udevadm-hwdb.c \
3865 src/udev/udevadm-settle.c \
3866 src/udev/udevadm-trigger.c \
3867 src/udev/udevadm-test.c \
3868 src/udev/udevadm-test-builtin.c \
3869 src/udev/udevadm-util.c \
3870 src/udev/udevadm-util.h
3875 # ------------------------------------------------------------------------------
3878 $(sysconfdir)/udev/hwdb.d
3880 systemd_hwdb_SOURCES = \
3881 src/libsystemd/sd-hwdb/hwdb-internal.h \
3884 systemd_hwdb_LDADD = \
3885 libsystemd-shared.la \
3886 libsystemd-internal.la \
3889 rootbin_PROGRAMS += \
3892 dist_udevhwdb_DATA = \
3893 hwdb/20-pci-vendor-model.hwdb \
3894 hwdb/20-pci-classes.hwdb \
3895 hwdb/20-usb-vendor-model.hwdb \
3896 hwdb/20-usb-classes.hwdb \
3897 hwdb/20-sdio-vendor-model.hwdb \
3898 hwdb/20-sdio-classes.hwdb \
3899 hwdb/20-bluetooth-vendor-product.hwdb \
3900 hwdb/20-acpi-vendor.hwdb \
3902 hwdb/20-net-ifname.hwdb \
3903 hwdb/60-keyboard.hwdb \
3904 hwdb/70-mouse.hwdb \
3905 hwdb/70-touchpad.hwdb
3908 units/systemd-hwdb-update.service.in
3911 units/systemd-hwdb-update.service
3913 SYSINIT_TARGET_WANTS += \
3914 systemd-hwdb-update.service
3916 # Update hwdb on installation. Do not bother if installing
3917 # in DESTDIR, since this is likely for packaging purposes.
3919 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3921 INSTALL_DATA_HOOKS += \
3925 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3928 # ------------------------------------------------------------------------------
3935 test/rule-syntax-check.py \
3936 test/sysv-generator-test.py \
3944 test_libudev_SOURCES = \
3945 src/test/test-libudev.c
3947 test_libudev_LDADD = \
3948 libsystemd-label.la \
3949 libudev-internal.la \
3950 libsystemd-shared.la \
3951 libsystemd-internal.la
3953 test_udev_SOURCES = \
3954 src/test/test-udev.c
3963 test_udev_LDADD += \
3970 # packed sysfs test tree
3972 $(AM_V_at)$(MKDIR_P) $(dir $@)
3973 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3977 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3982 test/rule-syntax-check.py \
3983 test/sysv-generator-test.py \
3987 # ------------------------------------------------------------------------------
3989 src/udev/ata_id/ata_id.c
3992 libudev-internal.la \
3993 libsystemd-shared.la
3995 udevlibexec_PROGRAMS += \
3998 # ------------------------------------------------------------------------------
3999 cdrom_id_SOURCES = \
4000 src/udev/cdrom_id/cdrom_id.c
4003 libudev-internal.la \
4004 libsystemd-shared.la
4006 udevlibexec_PROGRAMS += \
4009 dist_udevrules_DATA += \
4010 rules/60-cdrom_id.rules
4012 # ------------------------------------------------------------------------------
4014 src/udev/collect/collect.c
4017 libudev-internal.la \
4018 libsystemd-shared.la
4020 udevlibexec_PROGRAMS += \
4023 # ------------------------------------------------------------------------------
4025 src/udev/scsi_id/scsi_id.c \
4026 src/udev/scsi_id/scsi_serial.c \
4027 src/udev/scsi_id/scsi.h \
4028 src/udev/scsi_id/scsi_id.h
4031 libudev-internal.la \
4032 libsystemd-shared.la
4034 udevlibexec_PROGRAMS += \
4038 src/udev/scsi_id/README
4040 # ------------------------------------------------------------------------------
4042 src/udev/v4l_id/v4l_id.c
4045 libudev-internal.la \
4046 libsystemd-shared.la
4048 udevlibexec_PROGRAMS += \
4051 dist_udevrules_DATA += \
4052 rules/60-persistent-v4l.rules
4054 # ------------------------------------------------------------------------------
4055 accelerometer_SOURCES = \
4056 src/udev/accelerometer/accelerometer.c
4058 accelerometer_LDADD = \
4059 libudev-internal.la \
4060 libsystemd-shared.la
4062 udevlibexec_PROGRAMS += \
4065 dist_udevrules_DATA += \
4066 rules/61-accelerometer.rules
4068 # ------------------------------------------------------------------------------
4075 libgudev_includedir = \
4076 $(includedir)/gudev-1.0/gudev
4078 libgudev_include_HEADERS = \
4080 src/gudev/gudevenums.h \
4081 src/gudev/gudevenumtypes.h \
4082 src/gudev/gudevtypes.h \
4083 src/gudev/gudevclient.h \
4084 src/gudev/gudevdevice.h \
4085 src/gudev/gudevenumerator.h
4087 lib_LTLIBRARIES += libgudev-1.0.la
4089 pkgconfiglib_DATA += \
4090 src/gudev/gudev-1.0.pc
4093 src/gudev/gudev-1.0.pc
4095 libgudev_1_0_la_SOURCES = \
4096 src/gudev/libgudev-1.0.sym \
4097 src/gudev/gudevenums.h \
4098 src/gudev/gudevenumtypes.h \
4099 src/gudev/gudevenumtypes.h\
4100 src/gudev/gudevtypes.h \
4101 src/gudev/gudevclient.h \
4102 src/gudev/gudevclient.c \
4103 src/gudev/gudevdevice.h \
4104 src/gudev/gudevdevice.c \
4105 src/gudev/gudevenumerator.h \
4106 src/gudev/gudevenumerator.c \
4107 src/gudev/gudevprivate.h
4109 nodist_libgudev_1_0_la_SOURCES = \
4110 src/gudev/gudevmarshal.h \
4111 src/gudev/gudevmarshal.c \
4112 src/gudev/gudevenumtypes.h \
4113 src/gudev/gudevenumtypes.c
4116 $(nodist_libgudev_1_0_la_SOURCES)
4118 libgudev_1_0_la_CPPFLAGS = \
4120 -I$(top_builddir)/src\
4121 -I$(top_srcdir)/src\
4122 -I$(top_builddir)/src/gudev \
4123 -I$(top_srcdir)/src/gudev \
4124 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
4125 -D_GUDEV_COMPILATION \
4126 -DG_LOG_DOMAIN=\"GUdev\"
4128 libgudev_1_0_la_CFLAGS = \
4130 -fvisibility=default \
4133 libgudev_1_0_la_LIBADD = \
4137 libgudev_1_0_la_LDFLAGS = \
4139 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
4142 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
4144 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
4145 $(AM_V_at)$(MKDIR_P) $(dir $@)
4146 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
4148 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
4149 $(AM_V_at)$(MKDIR_P) $(dir $@)
4150 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
4151 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
4153 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
4154 $(AM_V_at)$(MKDIR_P) $(dir $@)
4155 $(AM_V_GEN)glib-mkenums --template $^ > $@
4157 if HAVE_INTROSPECTION
4158 -include $(INTROSPECTION_MAKEFILE)
4160 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
4162 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
4164 src_gudev_GUdev_1_0_gir_CFLAGS = \
4167 -D_GUDEV_COMPILATION \
4168 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
4169 -I$(top_srcdir)/src \
4170 -I$(top_builddir)/src \
4171 -I$(top_srcdir)/src/gudev \
4172 -I$(top_builddir)/src/gudev
4174 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
4176 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
4177 --pkg-export=gudev-1.0 \
4180 src_gudev_GUdev_1_0_gir_FILES = \
4182 src/gudev/gudevtypes.h \
4183 src/gudev/gudevenums.h \
4184 src/gudev/gudevenumtypes.h \
4185 src/gudev/gudevclient.h \
4186 src/gudev/gudevdevice.h \
4187 src/gudev/gudevenumerator.h \
4188 src/gudev/gudevclient.c \
4189 src/gudev/gudevdevice.c \
4190 src/gudev/gudevenumerator.c
4192 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
4193 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
4195 girdir = $(datadir)/gir-1.0
4197 src/gudev/GUdev-1.0.gir
4199 typelibsdir = $(libdir)/girepository-1.0
4201 src/gudev/GUdev-1.0.typelib
4203 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
4204 endif # HAVE_INTROSPECTION
4208 src/gudev/gudev-1.0.pc.in \
4209 src/gudev/gudevmarshal.list \
4210 src/gudev/gudevenumtypes.h.template \
4211 src/gudev/gudevenumtypes.c.template \
4212 src/gudev/gjs-example.js \
4213 src/gudev/seed-example-enum.js \
4214 src/gudev/seed-example.js
4216 # ------------------------------------------------------------------------------
4217 mtd_probe_SOURCES = \
4218 src/udev/mtd_probe/mtd_probe.c \
4219 src/udev/mtd_probe/mtd_probe.h \
4220 src/udev/mtd_probe/probe_smartmedia.c
4222 dist_udevrules_DATA += \
4223 rules/75-probe_mtd.rules
4225 udevlibexec_PROGRAMS += \
4228 # ------------------------------------------------------------------------------
4229 test_id128_SOURCES = \
4230 src/test/test-id128.c
4232 test_id128_LDADD = \
4233 libsystemd-internal.la \
4234 libsystemd-shared.la
4239 # ------------------------------------------------------------------------------
4241 rootlibexec_PROGRAMS += \
4244 systemd_activate_SOURCES = \
4245 src/activate/activate.c
4247 systemd_activate_LDADD = \
4248 libsystemd-label.la \
4249 libsystemd-internal.la \
4250 libsystemd-shared.la
4252 # ------------------------------------------------------------------------------
4253 systemd_journald_SOURCES = \
4254 src/journal/journald.c \
4255 src/journal/journald-server.h
4257 systemd_journald_LDADD = \
4258 libsystemd-journal-core.la \
4259 libsystemd-internal.la \
4260 libsystemd-shared.la
4262 systemd_cat_SOURCES = \
4265 systemd_cat_LDADD = \
4266 libsystemd-journal-core.la
4269 rootlibexec_PROGRAMS += \
4270 systemd-journal-remote
4272 systemd_journal_remote_SOURCES = \
4273 src/journal-remote/journal-remote-parse.h \
4274 src/journal-remote/journal-remote-parse.c \
4275 src/journal-remote/journal-remote-write.h \
4276 src/journal-remote/journal-remote-write.c \
4277 src/journal-remote/journal-remote.h \
4278 src/journal-remote/journal-remote.c
4280 systemd_journal_remote_LDADD = \
4281 libsystemd-internal.la \
4282 libsystemd-journal-core.la
4284 systemd_journal_remote_SOURCES += \
4285 src/journal-remote/microhttpd-util.h \
4286 src/journal-remote/microhttpd-util.c
4288 systemd_journal_remote_CFLAGS = \
4290 $(MICROHTTPD_CFLAGS)
4292 systemd_journal_remote_LDADD += \
4296 dist_sysusers_DATA += \
4297 sysusers.d/systemd-remote.conf
4301 dist_tmpfiles_DATA += \
4302 tmpfiles.d/systemd-remote.conf
4306 systemd_journal_remote_LDADD += \
4309 # systemd-journal-remote make sense mostly with full crypto stack
4310 dist_systemunit_DATA += \
4311 units/systemd-journal-remote.socket
4313 nodist_systemunit_DATA += \
4314 units/systemd-journal-remote.service
4317 units/systemd-journal-remote.service.in
4319 journal-remote-install-hook: journal-install-hook
4320 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4321 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4322 -chmod 755 $(DESTDIR)/var/log/journal/remote
4324 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4328 nodist_pkgsysconf_DATA += \
4329 src/journal-remote/journal-remote.conf
4332 src/journal-remote/journal-remote.conf.in
4335 src/journal-remote/journal-remote.conf
4339 rootlibexec_PROGRAMS += \
4340 systemd-journal-upload
4342 systemd_journal_upload_SOURCES = \
4343 src/journal-remote/journal-upload.h \
4344 src/journal-remote/journal-upload.c \
4345 src/journal-remote/journal-upload-journal.c
4347 systemd_journal_upload_CFLAGS = \
4351 systemd_journal_upload_LDADD = \
4352 libsystemd-internal.la \
4353 libsystemd-journal-internal.la \
4354 libsystemd-shared.la \
4357 nodist_systemunit_DATA += \
4358 units/systemd-journal-upload.service
4361 units/systemd-journal-upload.service.in
4363 nodist_pkgsysconf_DATA += \
4364 src/journal-remote/journal-upload.conf
4367 src/journal-remote/journal-upload.conf.in
4370 src/journal-remote/journal-upload.conf
4373 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4374 journalctl_CFLAGS = \
4377 journalctl_SOURCES = \
4378 src/journal/journalctl.c
4380 journalctl_LDADD = \
4381 libsystemd-journal-internal.la \
4382 libsystemd-internal.la \
4383 libsystemd-logs.la \
4384 libsystemd-shared.la
4387 journalctl_LDADD += \
4392 journalctl_SOURCES += \
4393 src/journal/journal-qrcode.c \
4394 src/journal/journal-qrcode.h
4396 journalctl_CFLAGS += \
4399 journalctl_LDADD += \
4403 test_journal_SOURCES = \
4404 src/journal/test-journal.c
4406 test_journal_LDADD = \
4407 libsystemd-journal-core.la
4409 test_journal_send_SOURCES = \
4410 src/journal/test-journal-send.c
4412 test_journal_send_LDADD = \
4413 libsystemd-journal-core.la
4415 test_journal_syslog_SOURCES = \
4416 src/journal/test-journal-syslog.c
4418 test_journal_syslog_LDADD = \
4419 libsystemd-journal-core.la
4421 test_journal_match_SOURCES = \
4422 src/journal/test-journal-match.c
4424 test_journal_match_LDADD = \
4425 libsystemd-journal-core.la
4427 test_journal_enum_SOURCES = \
4428 src/journal/test-journal-enum.c
4430 test_journal_enum_LDADD = \
4431 libsystemd-journal-core.la
4433 test_journal_stream_SOURCES = \
4434 src/journal/test-journal-stream.c
4436 test_journal_stream_LDADD = \
4437 libsystemd-journal-core.la
4439 test_journal_flush_SOURCES = \
4440 src/journal/test-journal-flush.c
4442 test_journal_flush_LDADD = \
4443 libsystemd-journal-core.la
4445 test_journal_init_SOURCES = \
4446 src/journal/test-journal-init.c
4448 test_journal_init_LDADD = \
4449 libsystemd-journal-core.la
4451 test_journal_verify_SOURCES = \
4452 src/journal/test-journal-verify.c
4454 test_journal_verify_LDADD = \
4455 libsystemd-journal-core.la
4457 test_journal_interleaving_SOURCES = \
4458 src/journal/test-journal-interleaving.c
4460 test_journal_interleaving_LDADD = \
4461 libsystemd-journal-core.la
4463 test_mmap_cache_SOURCES = \
4464 src/journal/test-mmap-cache.c
4466 test_mmap_cache_LDADD = \
4467 libsystemd-journal-core.la
4469 test_catalog_SOURCES = \
4470 src/journal/test-catalog.c
4472 test_catalog_CPPFLAGS = \
4474 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4476 test_catalog_LDADD = \
4477 libsystemd-journal-core.la
4479 test_compress_SOURCES = \
4480 src/journal/test-compress.c
4482 test_compress_LDADD = \
4483 libsystemd-journal-internal.la \
4484 libsystemd-shared.la
4486 test_compress_benchmark_SOURCES = \
4487 src/journal/test-compress-benchmark.c
4489 test_compress_benchmark_LDADD = \
4490 libsystemd-journal-internal.la \
4491 libsystemd-shared.la
4493 libsystemd_journal_core_la_SOURCES = \
4494 src/journal/journald-kmsg.c \
4495 src/journal/journald-kmsg.h \
4496 src/journal/journald-syslog.c \
4497 src/journal/journald-syslog.h \
4498 src/journal/journald-stream.c \
4499 src/journal/journald-stream.h \
4500 src/journal/journald-server.c \
4501 src/journal/journald-server.h \
4502 src/journal/journald-console.c \
4503 src/journal/journald-console.h \
4504 src/journal/journald-wall.c \
4505 src/journal/journald-wall.h \
4506 src/journal/journald-native.c \
4507 src/journal/journald-native.h \
4508 src/journal/journald-audit.c \
4509 src/journal/journald-audit.h \
4510 src/journal/journald-rate-limit.c \
4511 src/journal/journald-rate-limit.h \
4512 src/journal/journal-internal.h
4514 nodist_libsystemd_journal_core_la_SOURCES = \
4515 src/journal/journald-gperf.c
4517 libsystemd_journal_core_la_LIBADD = \
4518 libsystemd-journal-internal.la \
4519 libudev-internal.la \
4520 libsystemd-label.la \
4521 libsystemd-internal.la \
4522 libsystemd-shared.la
4525 libsystemd_journal_core_la_LIBADD += \
4529 noinst_LTLIBRARIES += \
4530 libsystemd-journal-core.la
4532 journal-install-hook:
4533 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4534 -chown 0:0 $(DESTDIR)/var/log/journal
4535 -chmod 755 $(DESTDIR)/var/log/journal
4536 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4537 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4539 journal-uninstall-hook:
4540 -rmdir $(DESTDIR)/var/log/journal/remote
4541 -rmdir $(DESTDIR)/var/log/journal/
4543 INSTALL_EXEC_HOOKS += journal-install-hook
4544 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4546 # ------------------------------------------------------------------------------
4547 # Update catalog on installation. Do not bother if installing
4548 # in DESTDIR, since this is likely for packaging purposes.
4549 catalog-update-hook:
4550 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4552 INSTALL_DATA_HOOKS += \
4555 catalog-remove-hook:
4556 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4558 UNINSTALL_DATA_HOOKS += \
4567 test-journal-syslog \
4568 test-journal-match \
4569 test-journal-stream \
4571 test-journal-verify \
4572 test-journal-interleaving \
4573 test-journal-flush \
4580 test-compress-benchmark
4583 pkginclude_HEADERS += \
4584 src/systemd/sd-journal.h \
4585 src/systemd/sd-messages.h \
4586 src/systemd/_sd-common.h
4588 libsystemd_journal_internal_la_SOURCES = \
4589 src/journal/sd-journal.c \
4590 src/systemd/sd-journal.h \
4591 src/systemd/_sd-common.h \
4592 src/journal/journal-file.c \
4593 src/journal/journal-file.h \
4594 src/journal/journal-vacuum.c \
4595 src/journal/journal-vacuum.h \
4596 src/journal/journal-verify.c \
4597 src/journal/journal-verify.h \
4598 src/journal/lookup3.c \
4599 src/journal/lookup3.h \
4600 src/journal/journal-send.c \
4601 src/journal/journal-def.h \
4602 src/journal/compress.h \
4603 src/journal/catalog.c \
4604 src/journal/catalog.h \
4605 src/journal/mmap-cache.c \
4606 src/journal/mmap-cache.h \
4607 src/journal/compress.c
4609 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4610 libsystemd_journal_internal_la_CFLAGS = \
4613 libsystemd_journal_internal_la_LIBADD = \
4617 libsystemd_journal_internal_la_CFLAGS += \
4620 libsystemd_journal_internal_la_LIBADD += \
4625 libsystemd_journal_internal_la_LIBADD += \
4630 libsystemd_journal_internal_la_SOURCES += \
4631 src/journal/journal-authenticate.c \
4632 src/journal/journal-authenticate.h \
4633 src/journal/fsprg.c \
4636 libsystemd_journal_internal_la_LIBADD += \
4639 # fsprg.c is a drop-in file using void pointer arithmetic
4640 libsystemd_journal_internal_la_CFLAGS += \
4645 noinst_LTLIBRARIES += \
4646 libsystemd-journal-internal.la
4648 rootlibexec_PROGRAMS += \
4651 rootbin_PROGRAMS += \
4657 dist_systemunit_DATA += \
4658 units/systemd-journald.socket \
4659 units/systemd-journald-dev-log.socket \
4660 units/systemd-journald-audit.socket
4662 nodist_systemunit_DATA += \
4663 units/systemd-journald.service \
4664 units/systemd-journal-flush.service \
4665 units/systemd-journal-catalog-update.service
4667 dist_pkgsysconf_DATA += \
4668 src/journal/journald.conf
4670 dist_catalog_DATA = \
4671 catalog/systemd.fr.catalog \
4672 catalog/systemd.it.catalog \
4673 catalog/systemd.pl.catalog \
4674 catalog/systemd.pt_BR.catalog \
4675 catalog/systemd.ru.catalog \
4676 catalog/systemd.catalog
4678 SOCKETS_TARGET_WANTS += \
4679 systemd-journald.socket \
4680 systemd-journald-dev-log.socket \
4681 systemd-journald-audit.socket
4683 SYSINIT_TARGET_WANTS += \
4684 systemd-journald.service \
4685 systemd-journal-flush.service \
4686 systemd-journal-catalog-update.service
4689 units/systemd-journald.service.in \
4690 units/systemd-journal-flush.service.in \
4691 units/systemd-journal-catalog-update.service.in \
4692 src/journal/journald-gperf.gperf
4695 src/journal/journald-gperf.c
4697 # ------------------------------------------------------------------------------
4699 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4701 rootlibexec_PROGRAMS += \
4702 systemd-journal-gatewayd
4704 systemd_journal_gatewayd_SOURCES = \
4705 src/journal-remote/journal-gatewayd.c \
4706 src/journal-remote/microhttpd-util.h \
4707 src/journal-remote/microhttpd-util.c
4709 systemd_journal_gatewayd_LDADD = \
4710 libsystemd-logs.la \
4711 libsystemd-journal-internal.la \
4712 libsystemd-internal.la \
4713 libsystemd-shared.la \
4717 systemd_journal_gatewayd_LDADD += \
4721 systemd_journal_gatewayd_CFLAGS = \
4723 $(MICROHTTPD_CFLAGS)
4725 systemd_journal_gatewayd_CPPFLAGS = \
4727 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4729 dist_systemunit_DATA += \
4730 units/systemd-journal-gatewayd.socket
4732 nodist_systemunit_DATA += \
4733 units/systemd-journal-gatewayd.service
4735 dist_gatewayddocumentroot_DATA = \
4736 src/journal-remote/browse.html
4741 units/systemd-journal-gatewayd.service.in
4743 # ------------------------------------------------------------------------------
4745 systemd_socket_proxyd_SOURCES = \
4746 src/socket-proxy/socket-proxyd.c
4748 systemd_socket_proxyd_LDADD = \
4749 libsystemd-logs.la \
4750 libsystemd-internal.la \
4751 libsystemd-journal-internal.la \
4752 libsystemd-shared.la \
4753 libsystemd-resolve.la
4755 # ------------------------------------------------------------------------------
4757 systemd_coredump_SOURCES = \
4758 src/journal/coredump.c \
4759 src/journal/coredump-vacuum.c \
4760 src/journal/coredump-vacuum.h
4762 systemd_coredump_LDADD = \
4763 libsystemd-journal-internal.la \
4764 libsystemd-label.la \
4765 libsystemd-internal.la \
4766 libsystemd-shared.la
4769 systemd_coredump_SOURCES += \
4770 src/journal/stacktrace.c \
4771 src/journal/stacktrace.h
4773 systemd_coredump_LDADD += \
4777 rootlibexec_PROGRAMS += \
4780 dist_pkgsysconf_DATA += \
4781 src/journal/coredump.conf
4784 systemd_coredump_LDADD += \
4788 coredumpctl_SOURCES = \
4789 src/journal/coredumpctl.c
4791 coredumpctl_LDADD = \
4792 libsystemd-journal-internal.la \
4793 libsystemd-internal.la \
4794 libsystemd-shared.la
4800 test-coredump-vacuum
4802 test_coredump_vacuum_SOURCES = \
4803 src/journal/test-coredump-vacuum.c \
4804 src/journal/coredump-vacuum.c \
4805 src/journal/coredump-vacuum.h
4807 test_coredump_vacuum_LDADD = \
4808 libsystemd-internal.la \
4809 libsystemd-shared.la
4811 dist_bashcompletion_DATA += \
4812 shell-completion/bash/coredumpctl
4814 dist_zshcompletion_DATA += \
4815 shell-completion/zsh/_coredumpctl
4818 sysctl.d/50-coredump.conf
4821 sysctl.d/50-coredump.conf
4825 sysctl.d/50-coredump.conf.in
4827 # ------------------------------------------------------------------------------
4829 systemd_binfmt_SOURCES = \
4832 systemd_binfmt_LDADD = \
4833 libsystemd-shared.la
4835 rootlibexec_PROGRAMS += \
4838 dist_systemunit_DATA += \
4839 units/proc-sys-fs-binfmt_misc.automount \
4840 units/proc-sys-fs-binfmt_misc.mount
4842 nodist_systemunit_DATA += \
4843 units/systemd-binfmt.service
4846 $(prefix)/lib/binfmt.d \
4847 $(sysconfdir)/binfmt.d
4849 SYSINIT_TARGET_WANTS += \
4850 systemd-binfmt.service \
4851 proc-sys-fs-binfmt_misc.automount
4856 units/systemd-binfmt.service.in
4858 # ------------------------------------------------------------------------------
4860 systemd_vconsole_setup_SOURCES = \
4861 src/vconsole/vconsole-setup.c
4863 systemd_vconsole_setup_LDADD = \
4864 libsystemd-shared.la
4866 rootlibexec_PROGRAMS += \
4867 systemd-vconsole-setup
4869 nodist_systemunit_DATA += \
4870 units/systemd-vconsole-setup.service
4872 nodist_udevrules_DATA += \
4873 src/vconsole/90-vconsole.rules
4875 SYSINIT_TARGET_WANTS += \
4876 systemd-vconsole-setup.service
4879 src/vconsole/90-vconsole.rules
4883 src/vconsole/90-vconsole.rules.in \
4884 units/systemd-vconsole-setup.service.in
4886 # ------------------------------------------------------------------------------
4888 systemd_bootchart_SOURCES = \
4889 src/bootchart/bootchart.c \
4890 src/bootchart/bootchart.h \
4891 src/bootchart/store.c \
4892 src/bootchart/store.h \
4893 src/bootchart/svg.c \
4896 systemd_bootchart_LDADD = \
4897 libsystemd-journal-internal.la \
4898 libsystemd-shared.la
4900 rootlibexec_PROGRAMS += \
4903 dist_pkgsysconf_DATA += \
4904 src/bootchart/bootchart.conf
4906 nodist_systemunit_DATA += \
4907 units/systemd-bootchart.service
4910 units/systemd-bootchart.service.in
4913 units/systemd-bootchart.service
4916 # ------------------------------------------------------------------------------
4917 if ENABLE_QUOTACHECK
4918 rootlibexec_PROGRAMS += \
4921 nodist_systemunit_DATA += \
4922 units/systemd-quotacheck.service
4924 systemd_quotacheck_SOURCES = \
4925 src/quotacheck/quotacheck.c
4927 systemd_quotacheck_LDADD = \
4928 libsystemd-shared.la
4932 units/systemd-quotacheck.service.in
4934 nodist_systemunit_DATA += \
4935 units/quotaon.service
4937 # ------------------------------------------------------------------------------
4938 if ENABLE_RANDOMSEED
4939 rootlibexec_PROGRAMS += \
4942 nodist_systemunit_DATA += \
4943 units/systemd-random-seed.service
4945 systemd_random_seed_SOURCES = \
4946 src/random-seed/random-seed.c
4948 systemd_random_seed_LDADD = \
4949 libsystemd-label.la \
4950 libsystemd-shared.la
4952 SYSINIT_TARGET_WANTS += \
4953 systemd-random-seed.service
4958 units/systemd-random-seed.service.in
4960 # ------------------------------------------------------------------------------
4962 rootlibexec_PROGRAMS += \
4965 nodist_systemunit_DATA += \
4966 units/systemd-backlight@.service
4968 systemd_backlight_SOURCES = \
4969 src/backlight/backlight.c
4971 systemd_backlight_LDADD = \
4972 libsystemd-label.la \
4973 libudev-internal.la \
4974 libsystemd-shared.la
4978 units/systemd-backlight@.service.in
4980 # ------------------------------------------------------------------------------
4982 rootlibexec_PROGRAMS += \
4985 nodist_systemunit_DATA += \
4986 units/systemd-rfkill@.service
4988 systemd_rfkill_SOURCES = \
4991 systemd_rfkill_LDADD = \
4992 libsystemd-label.la \
4993 libudev-internal.la \
4994 libsystemd-shared.la
4998 units/systemd-rfkill@.service.in
5000 # ------------------------------------------------------------------------------
5001 if HAVE_LIBCRYPTSETUP
5002 rootlibexec_PROGRAMS += \
5005 systemgenerator_PROGRAMS += \
5006 systemd-cryptsetup-generator
5008 dist_systemunit_DATA += \
5009 units/cryptsetup.target \
5010 units/cryptsetup-pre.target
5012 systemd_cryptsetup_SOURCES = \
5013 src/cryptsetup/cryptsetup.c
5015 systemd_cryptsetup_CFLAGS = \
5017 $(LIBCRYPTSETUP_CFLAGS)
5019 systemd_cryptsetup_LDADD = \
5020 libsystemd-label.la \
5021 libudev-internal.la \
5022 libsystemd-shared.la \
5023 $(LIBCRYPTSETUP_LIBS)
5025 systemd_cryptsetup_generator_SOURCES = \
5026 src/cryptsetup/cryptsetup-generator.c
5028 systemd_cryptsetup_generator_LDADD = \
5029 libsystemd-label.la \
5030 libsystemd-shared.la
5032 SYSINIT_TARGET_WANTS += \
5037 # ------------------------------------------------------------------------------
5039 systemd_hostnamed_SOURCES = \
5040 src/hostname/hostnamed.c
5042 systemd_hostnamed_LDADD = \
5043 libsystemd-label.la \
5044 libsystemd-internal.la \
5045 libsystemd-shared.la
5047 rootlibexec_PROGRAMS += \
5050 nodist_systemunit_DATA += \
5051 units/systemd-hostnamed.service
5053 dist_systemunit_DATA_busnames += \
5054 units/org.freedesktop.hostname1.busname
5056 dist_dbuspolicy_DATA += \
5057 src/hostname/org.freedesktop.hostname1.conf
5059 dist_dbussystemservice_DATA += \
5060 src/hostname/org.freedesktop.hostname1.service
5062 polkitpolicy_files += \
5063 src/hostname/org.freedesktop.hostname1.policy
5065 SYSTEM_UNIT_ALIASES += \
5066 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
5068 BUSNAMES_TARGET_WANTS += \
5069 org.freedesktop.hostname1.busname
5071 hostnamectl_SOURCES = \
5072 src/hostname/hostnamectl.c
5074 hostnamectl_LDADD = \
5075 libsystemd-internal.la \
5076 libsystemd-shared.la
5081 dist_bashcompletion_DATA += \
5082 shell-completion/bash/hostnamectl
5084 dist_zshcompletion_DATA += \
5085 shell-completion/zsh/_hostnamectl
5089 polkitpolicy_in_files += \
5090 src/hostname/org.freedesktop.hostname1.policy.in
5093 units/systemd-hostnamed.service.in
5095 # ------------------------------------------------------------------------------
5096 dist_systemunit_DATA_busnames += \
5097 units/org.freedesktop.systemd1.busname
5099 BUSNAMES_TARGET_WANTS += \
5100 org.freedesktop.systemd1.busname
5102 # ------------------------------------------------------------------------------
5104 systemd_localed_SOURCES = \
5105 src/locale/localed.c
5107 systemd_localed_LDADD = \
5108 libsystemd-label.la \
5109 libsystemd-internal.la \
5110 libsystemd-shared.la \
5113 systemd_localed_CFLAGS = \
5117 nodist_systemunit_DATA += \
5118 units/systemd-localed.service
5120 dist_systemunit_DATA_busnames += \
5121 units/org.freedesktop.locale1.busname
5123 rootlibexec_PROGRAMS += \
5126 dist_dbuspolicy_DATA += \
5127 src/locale/org.freedesktop.locale1.conf
5129 dist_dbussystemservice_DATA += \
5130 src/locale/org.freedesktop.locale1.service
5132 polkitpolicy_files += \
5133 src/locale/org.freedesktop.locale1.policy
5135 SYSTEM_UNIT_ALIASES += \
5136 systemd-localed.service dbus-org.freedesktop.locale1.service
5138 BUSNAMES_TARGET_WANTS += \
5139 org.freedesktop.locale1.busname
5141 dist_pkgdata_DATA += \
5142 src/locale/kbd-model-map \
5143 src/locale/language-fallback-map
5145 localectl_SOURCES = \
5146 src/locale/localectl.c
5149 libsystemd-internal.la \
5150 libsystemd-shared.la
5155 dist_bashcompletion_DATA += \
5156 shell-completion/bash/localectl
5158 dist_zshcompletion_DATA += \
5159 shell-completion/zsh/_localectl
5163 .PHONY: update-kbd-model-map
5165 polkitpolicy_in_files += \
5166 src/locale/org.freedesktop.locale1.policy.in
5169 units/systemd-localed.service.in
5171 # ------------------------------------------------------------------------------
5173 systemd_timedated_SOURCES = \
5174 src/timedate/timedated.c
5176 systemd_timedated_LDADD = \
5177 libsystemd-label.la \
5178 libsystemd-internal.la \
5179 libsystemd-shared.la
5181 rootlibexec_PROGRAMS += \
5184 dist_dbussystemservice_DATA += \
5185 src/timedate/org.freedesktop.timedate1.service
5187 dist_dbuspolicy_DATA += \
5188 src/timedate/org.freedesktop.timedate1.conf
5190 nodist_systemunit_DATA += \
5191 units/systemd-timedated.service
5193 dist_systemunit_DATA_busnames += \
5194 units/org.freedesktop.timedate1.busname
5196 polkitpolicy_files += \
5197 src/timedate/org.freedesktop.timedate1.policy
5199 SYSTEM_UNIT_ALIASES += \
5200 systemd-timedated.service dbus-org.freedesktop.timedate1.service
5202 BUSNAMES_TARGET_WANTS += \
5203 org.freedesktop.timedate1.busname
5205 timedatectl_SOURCES = \
5206 src/timedate/timedatectl.c
5208 timedatectl_LDADD = \
5209 libsystemd-internal.la \
5210 libsystemd-shared.la
5215 dist_bashcompletion_DATA += \
5216 shell-completion/bash/timedatectl
5218 dist_zshcompletion_DATA += \
5219 shell-completion/zsh/_timedatectl
5222 polkitpolicy_in_files += \
5223 src/timedate/org.freedesktop.timedate1.policy.in
5226 units/systemd-timedated.service.in
5228 # ------------------------------------------------------------------------------
5230 systemd_timesyncd_SOURCES = \
5231 src/timesync/timesyncd.c \
5232 src/timesync/timesyncd-manager.c \
5233 src/timesync/timesyncd-manager.h \
5234 src/timesync/timesyncd-conf.c \
5235 src/timesync/timesyncd-conf.h \
5236 src/timesync/timesyncd-server.c \
5237 src/timesync/timesyncd-server.h
5239 nodist_systemd_timesyncd_SOURCES = \
5240 src/timesync/timesyncd-gperf.c
5243 src/timesync/timesyncd-gperf.gperf
5246 src/timesync/timesyncd-gperf.c
5248 systemd_timesyncd_LDADD = \
5249 libsystemd-resolve.la \
5250 libsystemd-network.la \
5251 libsystemd-label.la \
5252 libsystemd-internal.la \
5253 libsystemd-shared.la
5255 rootlibexec_PROGRAMS += \
5258 nodist_systemunit_DATA += \
5259 units/systemd-timesyncd.service
5261 GENERAL_ALIASES += \
5262 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5265 units/systemd-timesyncd.service.in
5267 nodist_pkgsysconf_DATA += \
5268 src/timesync/timesyncd.conf
5271 src/timesync/timesyncd.conf.in
5274 src/timesync/timesyncd.conf
5277 # ------------------------------------------------------------------------------
5279 libnss_myhostname_la_SOURCES = \
5280 src/nss-myhostname/nss-myhostname.sym \
5281 src/nss-myhostname/nss-myhostname.c
5283 libnss_myhostname_la_LDFLAGS = \
5290 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5292 libnss_myhostname_la_LIBADD = \
5293 libsystemd-shared.la \
5294 libsystemd-internal.la
5296 lib_LTLIBRARIES += \
5297 libnss_myhostname.la
5300 # ------------------------------------------------------------------------------
5302 systemd_machined_SOURCES = \
5303 src/machine/machined.c \
5304 src/machine/machined.h
5306 systemd_machined_LDADD = \
5307 libsystemd-machine-core.la
5309 rootlibexec_PROGRAMS += \
5312 libsystemd_machine_core_la_SOURCES = \
5313 src/machine/machine.c \
5314 src/machine/machine.h \
5315 src/machine/machined-dbus.c \
5316 src/machine/machine-dbus.c \
5317 src/machine/machine-dbus.h \
5318 src/machine/image-dbus.c \
5319 src/machine/image-dbus.h
5321 libsystemd_machine_core_la_LIBADD = \
5322 libsystemd-label.la \
5323 libsystemd-internal.la \
5324 libudev-internal.la \
5325 libsystemd-shared.la
5327 noinst_LTLIBRARIES += \
5328 libsystemd-machine-core.la
5330 machinectl_SOURCES = \
5331 src/machine/machinectl.c
5333 machinectl_LDADD = \
5334 libsystemd-internal.la \
5335 libsystemd-logs.la \
5336 libsystemd-journal-internal.la \
5337 libsystemd-shared.la
5339 rootbin_PROGRAMS += \
5342 dist_bashcompletion_DATA += \
5343 shell-completion/bash/machinectl
5345 test_machine_tables_SOURCES = \
5346 src/machine/test-machine-tables.c
5348 test_machine_tables_LDADD = \
5349 libsystemd-machine-core.la
5354 nodist_systemunit_DATA += \
5355 units/systemd-machined.service
5357 dist_systemunit_DATA += \
5360 dist_systemunit_DATA_busnames += \
5361 units/org.freedesktop.machine1.busname
5363 dist_dbussystemservice_DATA += \
5364 src/machine/org.freedesktop.machine1.service
5366 dist_dbuspolicy_DATA += \
5367 src/machine/org.freedesktop.machine1.conf
5369 polkitpolicy_files += \
5370 src/machine/org.freedesktop.machine1.policy
5372 polkitpolicy_in_files += \
5373 src/machine/org.freedesktop.machine1.policy.in
5375 dist_zshcompletion_DATA += \
5376 shell-completion/zsh/_machinectl \
5377 shell-completion/zsh/_sd_machines
5379 SYSTEM_UNIT_ALIASES += \
5380 systemd-machined.service dbus-org.freedesktop.machine1.service
5382 BUSNAMES_TARGET_WANTS += \
5383 org.freedesktop.machine1.busname
5386 units/systemd-machined.service.in
5388 libnss_mymachines_la_SOURCES = \
5389 src/nss-mymachines/nss-mymachines.sym \
5390 src/nss-mymachines/nss-mymachines.c
5392 libnss_mymachines_la_LDFLAGS = \
5399 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5401 libnss_mymachines_la_LIBADD = \
5402 libsystemd-shared.la \
5403 libsystemd-internal.la
5405 lib_LTLIBRARIES += \
5406 libnss_mymachines.la
5410 # ------------------------------------------------------------------------------
5419 rootlibexec_PROGRAMS += \
5423 systemd_importd_SOURCES = \
5424 src/import/importd.c
5426 systemd_importd_CFLAGS = \
5428 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\"
5430 systemd_importd_LDADD = \
5431 libsystemd-internal.la \
5432 libsystemd-label.la \
5433 libsystemd-shared.la
5435 systemd_pull_SOURCES = \
5437 src/import/import-raw.c \
5438 src/import/import-raw.h \
5439 src/import/import-tar.c \
5440 src/import/import-tar.h \
5441 src/import/import-dkr.c \
5442 src/import/import-dkr.h \
5443 src/import/import-job.c \
5444 src/import/import-job.h \
5445 src/import/import-common.c \
5446 src/import/import-common.h \
5447 src/import/curl-util.c \
5448 src/import/curl-util.h \
5449 src/import/aufs-util.c \
5450 src/import/aufs-util.h \
5451 src/import/qcow2-util.c \
5452 src/import/qcow2-util.h
5454 systemd_pull_CFLAGS = \
5460 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5461 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5463 systemd_pull_LDADD = \
5464 libsystemd-internal.la \
5465 libsystemd-label.la \
5466 libsystemd-shared.la \
5473 dist_rootlibexec_DATA = \
5474 src/import/import-pubring.gpg
5476 nodist_systemunit_DATA += \
5477 units/systemd-importd.service
5480 units/systemd-importd.service.in
5482 dist_systemunit_DATA_busnames += \
5483 units/org.freedesktop.import1.busname
5485 BUSNAMES_TARGET_WANTS += \
5486 org.freedesktop.import1.busname
5488 SYSTEM_UNIT_ALIASES += \
5489 systemd-importd.service dbus-org.freedesktop.import1.service
5491 dist_dbussystemservice_DATA += \
5492 src/import/org.freedesktop.import1.service
5494 dist_dbuspolicy_DATA += \
5495 src/import/org.freedesktop.import1.conf
5497 polkitpolicy_files += \
5498 src/import/org.freedesktop.import1.policy
5500 polkitpolicy_in_files += \
5501 src/import/org.freedesktop.import1.policy.in
5506 test_qcow2_SOURCES = \
5507 src/import/test-qcow2.c \
5508 src/import/qcow2-util.c \
5509 src/import/qcow2-util.h
5511 test_qcow2_CFLAGS = \
5515 test_qcow2_LDADD = \
5516 libsystemd-internal.la \
5517 libsystemd-label.la \
5518 libsystemd-shared.la \
5529 # ------------------------------------------------------------------------------
5531 systemd_resolved_SOURCES = \
5532 src/resolve/resolved.c \
5533 src/resolve/resolved-manager.c \
5534 src/resolve/resolved-manager.h \
5535 src/resolve/resolved-conf.c \
5536 src/resolve/resolved-conf.h \
5537 src/resolve/resolved-bus.c \
5538 src/resolve/resolved-bus.h \
5539 src/resolve/resolved-link.h \
5540 src/resolve/resolved-link.c \
5541 src/resolve/resolved-def.h \
5542 src/resolve/resolved-dns-domain.h \
5543 src/resolve/resolved-dns-domain.c \
5544 src/resolve/resolved-dns-rr.h \
5545 src/resolve/resolved-dns-rr.c \
5546 src/resolve/resolved-dns-question.h \
5547 src/resolve/resolved-dns-question.c \
5548 src/resolve/resolved-dns-answer.h \
5549 src/resolve/resolved-dns-answer.c \
5550 src/resolve/resolved-dns-packet.h \
5551 src/resolve/resolved-dns-packet.c \
5552 src/resolve/resolved-dns-query.h \
5553 src/resolve/resolved-dns-query.c \
5554 src/resolve/resolved-dns-transaction.h \
5555 src/resolve/resolved-dns-transaction.c \
5556 src/resolve/resolved-dns-scope.h \
5557 src/resolve/resolved-dns-scope.c \
5558 src/resolve/resolved-dns-server.h \
5559 src/resolve/resolved-dns-server.c \
5560 src/resolve/resolved-dns-cache.h \
5561 src/resolve/resolved-dns-cache.c \
5562 src/resolve/resolved-dns-zone.h \
5563 src/resolve/resolved-dns-zone.c \
5564 src/resolve/resolved-dns-stream.h \
5565 src/resolve/resolved-dns-stream.c \
5566 src/resolve/dns-type.c \
5567 src/resolve/dns-type.h \
5568 src/resolve/dns_type-from-name.h \
5569 src/resolve/dns_type-to-name.h
5571 nodist_systemd_resolved_SOURCES = \
5572 src/resolve/resolved-gperf.c
5575 src/resolve/resolved-gperf.gperf \
5576 src/resolve/dns_type-from-name.gperf
5579 src/resolve/resolved-gperf.c
5581 systemd_resolved_LDADD = \
5582 libsystemd-network.la \
5583 libsystemd-label.la \
5584 libsystemd-internal.la \
5585 libsystemd-shared.la \
5588 rootlibexec_PROGRAMS += \
5591 nodist_systemunit_DATA += \
5592 units/systemd-resolved.service
5594 dist_systemunit_DATA_busnames += \
5595 units/org.freedesktop.resolve1.busname
5597 dist_dbuspolicy_DATA += \
5598 src/resolve/org.freedesktop.resolve1.conf
5600 dist_dbussystemservice_DATA += \
5601 src/resolve/org.freedesktop.resolve1.service
5604 units/systemd-resolved.service.in
5606 SYSTEM_UNIT_ALIASES += \
5607 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5609 BUSNAMES_TARGET_WANTS += \
5610 org.freedesktop.resolve1.busname
5612 GENERAL_ALIASES += \
5613 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5615 nodist_pkgsysconf_DATA += \
5616 src/resolve/resolved.conf
5619 src/resolve/resolved.conf.in
5622 src/resolve/resolved.conf
5627 test_dns_domain_SOURCES = \
5628 src/resolve/resolved-dns-domain.h \
5629 src/resolve/resolved-dns-domain.c \
5630 src/resolve/test-dns-domain.c
5632 test_dns_domain_LDADD = \
5633 libsystemd-network.la \
5634 libsystemd-label.la \
5635 libsystemd-internal.la \
5636 libsystemd-shared.la \
5639 libnss_resolve_la_SOURCES = \
5640 src/nss-resolve/nss-resolve.sym \
5641 src/nss-resolve/nss-resolve.c
5643 libnss_resolve_la_LDFLAGS = \
5650 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5652 libnss_resolve_la_LIBADD = \
5653 libsystemd-internal.la \
5654 libsystemd-shared.la
5656 lib_LTLIBRARIES += \
5659 systemd_resolve_host_SOURCES = \
5660 src/resolve-host/resolve-host.c \
5661 src/resolve/resolved-dns-packet.c \
5662 src/resolve/resolved-dns-packet.h \
5663 src/resolve/resolved-dns-rr.c \
5664 src/resolve/resolved-dns-rr.h \
5665 src/resolve/resolved-dns-answer.c \
5666 src/resolve/resolved-dns-answer.h \
5667 src/resolve/resolved-dns-question.c \
5668 src/resolve/resolved-dns-question.h \
5669 src/resolve/resolved-dns-domain.c \
5670 src/resolve/resolved-dns-domain.h \
5671 src/resolve/dns-type.c \
5672 src/resolve/dns-type.h \
5673 src/resolve/dns_type-from-name.h \
5674 src/resolve/dns_type-to-name.h
5676 systemd_resolve_host_LDADD = \
5677 libsystemd-internal.la \
5678 libsystemd-shared.la \
5681 rootlibexec_PROGRAMS += \
5682 systemd-resolve-host
5686 # ------------------------------------------------------------------------------
5688 rootlibexec_PROGRAMS += \
5691 systemd_networkd_SOURCES = \
5692 src/network/networkd.c
5694 systemd_networkd_LDADD = \
5695 libsystemd-networkd-core.la
5698 systemd_networkd_LDADD += \
5702 noinst_LTLIBRARIES += \
5703 libsystemd-networkd-core.la
5705 libsystemd_networkd_core_la_CFLAGS = \
5708 libsystemd_networkd_core_la_SOURCES = \
5709 src/libsystemd-network/network-internal.h \
5710 src/network/networkd.h \
5711 src/network/networkd-link.h \
5712 src/network/networkd-netdev.h \
5713 src/network/networkd-netdev-tunnel.h \
5714 src/network/networkd-netdev-veth.h \
5715 src/network/networkd-netdev-vxlan.h \
5716 src/network/networkd-netdev-vlan.h \
5717 src/network/networkd-netdev-macvlan.h \
5718 src/network/networkd-netdev-ipvlan.h \
5719 src/network/networkd-netdev-dummy.h \
5720 src/network/networkd-netdev-tuntap.h \
5721 src/network/networkd-netdev-bond.h \
5722 src/network/networkd-netdev-bridge.h \
5723 src/network/networkd-netdev.c \
5724 src/network/networkd-netdev-tunnel.c \
5725 src/network/networkd-netdev-veth.c \
5726 src/network/networkd-netdev-vxlan.c \
5727 src/network/networkd-netdev-vlan.c \
5728 src/network/networkd-netdev-macvlan.c \
5729 src/network/networkd-netdev-ipvlan.c \
5730 src/network/networkd-netdev-dummy.c \
5731 src/network/networkd-netdev-tuntap.c \
5732 src/network/networkd-netdev-bond.c \
5733 src/network/networkd-netdev-bridge.c \
5734 src/network/networkd-link.c \
5735 src/network/networkd-link-bus.c \
5736 src/network/networkd-ipv4ll.c \
5737 src/network/networkd-dhcp4.c \
5738 src/network/networkd-dhcp6.c \
5739 src/network/networkd-network.c \
5740 src/network/networkd-network-bus.c \
5741 src/network/networkd-address.c \
5742 src/network/networkd-route.c \
5743 src/network/networkd-manager.c \
5744 src/network/networkd-manager-bus.c \
5745 src/network/networkd-fdb.c \
5746 src/network/networkd-address-pool.c
5748 nodist_libsystemd_networkd_core_la_SOURCES = \
5749 src/network/networkd-network-gperf.c \
5750 src/network/networkd-netdev-gperf.c
5752 libsystemd_networkd_core_la_LIBADD = \
5753 libudev-internal.la \
5754 libsystemd-internal.la \
5755 libsystemd-network.la \
5756 libsystemd-label.la \
5757 libsystemd-shared.la
5759 rootlibexec_PROGRAMS += \
5760 systemd-networkd-wait-online
5762 systemd_networkd_wait_online_CFLAGS = \
5765 systemd_networkd_wait_online_SOURCES = \
5766 src/libsystemd-network/network-internal.h \
5767 src/network/networkd-wait-online.h \
5768 src/network/networkd-wait-online-link.h \
5769 src/network/networkd-wait-online.c \
5770 src/network/networkd-wait-online-manager.c \
5771 src/network/networkd-wait-online-link.c
5773 systemd_networkd_wait_online_LDADD = \
5774 libsystemd-network.la \
5775 libudev-internal.la \
5776 libsystemd-internal.la \
5777 libsystemd-shared.la
5779 rootbin_PROGRAMS += \
5782 networkctl_SOURCES = \
5783 src/network/networkctl.c
5785 networkctl_LDADD = \
5786 libsystemd-internal.la \
5787 libudev-internal.la \
5788 libsystemd-shared.la \
5789 libsystemd-network.la
5791 test_network_SOURCES = \
5792 src/network/test-network.c
5794 test_network_LDADD = \
5795 libsystemd-networkd-core.la
5798 test_network_LDADD += \
5802 test_network_tables_SOURCES = \
5803 src/network/test-network-tables.c \
5804 src/shared/test-tables.h
5806 test_network_tables_LDADD = \
5807 libsystemd-networkd-core.la \
5811 test_network_tables_LDADD += \
5819 dist_systemunit_DATA += \
5820 units/systemd-networkd.socket
5822 nodist_systemunit_DATA += \
5823 units/systemd-networkd.service \
5824 units/systemd-networkd-wait-online.service
5826 dist_systemunit_DATA_busnames += \
5827 units/org.freedesktop.network1.busname
5829 dist_dbussystemservice_DATA += \
5830 src/network/org.freedesktop.network1.service
5832 dist_dbuspolicy_DATA += \
5833 src/network/org.freedesktop.network1.conf
5835 GENERAL_ALIASES += \
5836 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5837 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5838 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5840 SYSTEM_UNIT_ALIASES += \
5841 systemd-networkd.service dbus-org.freedesktop.network1.service
5843 BUSNAMES_TARGET_WANTS += \
5844 org.freedesktop.network1.busname
5847 src/network/networkd-network-gperf.gperf \
5848 src/network/networkd-netdev-gperf.gperf \
5849 units/systemd-networkd.service.in \
5850 units/systemd-networkd-wait-online.service.in
5853 src/network/networkd-network-gperf.c \
5854 src/network/networkd-netdev-gperf.c
5857 # ------------------------------------------------------------------------------
5859 systemd_logind_SOURCES = \
5860 src/login/logind.c \
5863 nodist_systemd_logind_SOURCES = \
5864 src/login/logind-gperf.c
5866 systemd_logind_LDADD = \
5867 libsystemd-logind-core.la
5869 libsystemd_logind_core_la_SOURCES = \
5870 src/login/logind-core.c \
5871 src/login/logind-device.c \
5872 src/login/logind-device.h \
5873 src/login/logind-button.c \
5874 src/login/logind-button.h \
5875 src/login/logind-action.c \
5876 src/login/logind-action.h \
5877 src/login/logind-seat.c \
5878 src/login/logind-seat.h \
5879 src/login/logind-session.c \
5880 src/login/logind-session.h \
5881 src/login/logind-session-device.c \
5882 src/login/logind-session-device.h \
5883 src/login/logind-user.c \
5884 src/login/logind-user.h \
5885 src/login/logind-inhibit.c \
5886 src/login/logind-inhibit.h \
5887 src/login/logind-dbus.c \
5888 src/login/logind-session-dbus.c \
5889 src/login/logind-seat-dbus.c \
5890 src/login/logind-user-dbus.c \
5891 src/login/logind-acl.h
5893 libsystemd_logind_core_la_LIBADD = \
5894 libsystemd-label.la \
5895 libsystemd-internal.la \
5896 libudev-internal.la \
5897 libsystemd-shared.la
5900 libsystemd_logind_core_la_SOURCES += \
5901 src/login/logind-acl.c
5903 libsystemd_logind_core_la_LIBADD += \
5907 noinst_LTLIBRARIES += \
5908 libsystemd-logind-core.la
5910 systemd_user_sessions_SOURCES = \
5911 src/login/user-sessions.c
5913 systemd_user_sessions_LDADD = \
5914 libsystemd-shared.la
5916 rootlibexec_PROGRAMS += \
5918 systemd-user-sessions
5920 loginctl_SOURCES = \
5921 src/login/loginctl.c \
5922 src/login/sysfs-show.h \
5923 src/login/sysfs-show.c
5926 libsystemd-internal.la \
5927 libsystemd-logs.la \
5928 libsystemd-journal-internal.la \
5929 libudev-internal.la \
5930 libsystemd-shared.la
5932 rootbin_PROGRAMS += \
5935 dist_bashcompletion_DATA += \
5936 shell-completion/bash/loginctl
5938 dist_zshcompletion_DATA += \
5939 shell-completion/zsh/_loginctl \
5940 shell-completion/zsh/_systemd-inhibit
5942 systemd_inhibit_SOURCES = \
5945 systemd_inhibit_LDADD = \
5946 libsystemd-internal.la \
5947 libsystemd-shared.la
5949 rootbin_PROGRAMS += \
5952 test_login_SOURCES = \
5953 src/libsystemd/sd-login/test-login.c
5955 test_login_LDADD = \
5956 libsystemd-internal.la \
5957 libsystemd-shared.la
5959 test_login_shared_SOURCES = \
5960 src/login/test-login-shared.c
5962 test_login_shared_LDADD = \
5963 libsystemd-internal.la \
5964 libsystemd-shared.la
5966 test_inhibit_SOURCES = \
5967 src/login/test-inhibit.c
5969 test_inhibit_LDADD = \
5970 libsystemd-internal.la \
5971 libsystemd-shared.la
5973 test_login_tables_SOURCES = \
5974 src/login/test-login-tables.c
5976 test_login_tables_LDADD = \
5977 libsystemd-logind-core.la
5988 pam_systemd_la_SOURCES = \
5989 src/login/pam_systemd.sym \
5990 src/login/pam_systemd.c
5992 pam_systemd_la_CFLAGS = \
5997 pam_systemd_la_LDFLAGS = \
6003 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
6005 pam_systemd_la_LIBADD = \
6006 libsystemd-internal.la \
6007 libsystemd-shared.la \
6010 pamlib_LTLIBRARIES = \
6013 dist_pamconf_DATA = \
6014 src/login/systemd-user
6017 nodist_systemunit_DATA += \
6018 units/systemd-logind.service \
6019 units/systemd-user-sessions.service
6021 dist_systemunit_DATA += \
6024 dist_systemunit_DATA_busnames += \
6025 units/org.freedesktop.login1.busname
6027 dist_dbussystemservice_DATA += \
6028 src/login/org.freedesktop.login1.service
6030 dist_dbuspolicy_DATA += \
6031 src/login/org.freedesktop.login1.conf
6033 dist_pkgsysconf_DATA += \
6034 src/login/logind.conf
6036 polkitpolicy_files += \
6037 src/login/org.freedesktop.login1.policy
6042 MULTI_USER_TARGET_WANTS += \
6043 systemd-logind.service \
6044 systemd-user-sessions.service
6046 SYSTEM_UNIT_ALIASES += \
6047 systemd-logind.service dbus-org.freedesktop.login1.service
6049 BUSNAMES_TARGET_WANTS += \
6050 org.freedesktop.login1.busname
6052 dist_udevrules_DATA += \
6053 src/login/70-uaccess.rules \
6054 src/login/70-power-switch.rules
6056 nodist_udevrules_DATA += \
6057 src/login/71-seat.rules \
6058 src/login/73-seat-late.rules
6061 src/login/logind-gperf.c \
6062 src/login/71-seat.rules \
6063 src/login/73-seat-late.rules
6066 polkitpolicy_in_files += \
6067 src/login/org.freedesktop.login1.policy.in
6070 src/login/logind-gperf.gperf \
6071 src/login/71-seat.rules.in \
6072 src/login/73-seat-late.rules.in \
6073 units/systemd-logind.service.in \
6074 units/systemd-user-sessions.service.in
6076 # ------------------------------------------------------------------------------
6077 if HAVE_PYTHON_DEVEL
6078 pkgpyexec_LTLIBRARIES = \
6085 _journal_la_SOURCES = \
6086 src/python-systemd/_journal.c
6088 _journal_la_CFLAGS = \
6090 -fvisibility=default \
6091 $(PYTHON_DEVEL_CFLAGS)
6093 _journal_la_LDFLAGS = \
6099 _journal_la_LIBADD = \
6100 $(PYTHON_DEVEL_LIBS) \
6103 id128_la_SOURCES = \
6104 src/python-systemd/id128.c \
6105 src/python-systemd/pyutil.c \
6106 src/python-systemd/pyutil.h
6108 nodist_id128_la_SOURCES = \
6109 src/python-systemd/id128-constants.h
6113 -fvisibility=default \
6114 $(PYTHON_DEVEL_CFLAGS) \
6115 -I$(top_builddir)/src/python-systemd
6117 id128_la_LDFLAGS = \
6124 $(PYTHON_DEVEL_LIBS) \
6125 libsystemd-shared.la \
6128 _daemon_la_SOURCES = \
6129 src/python-systemd/_daemon.c \
6130 src/python-systemd/pyutil.c \
6131 src/python-systemd/pyutil.h
6133 _daemon_la_CFLAGS = \
6135 -fvisibility=default \
6136 $(PYTHON_DEVEL_CFLAGS) \
6137 -I$(top_builddir)/src/python-systemd
6139 _daemon_la_LDFLAGS = \
6145 _daemon_la_LIBADD = \
6146 $(PYTHON_DEVEL_LIBS) \
6147 libsystemd-shared.la \
6150 _reader_la_SOURCES = \
6151 src/python-systemd/_reader.c \
6152 src/python-systemd/pyutil.c \
6153 src/python-systemd/pyutil.h
6155 _reader_la_CFLAGS = \
6157 -fvisibility=default \
6158 $(PYTHON_DEVEL_CFLAGS)
6160 _reader_la_LDFLAGS = \
6166 _reader_la_LIBADD = \
6167 $(PYTHON_DEVEL_LIBS) \
6168 libsystemd-shared.la \
6171 login_la_SOURCES = \
6172 src/python-systemd/login.c \
6173 src/python-systemd/pyutil.c \
6174 src/python-systemd/pyutil.h
6178 -fvisibility=default \
6179 $(PYTHON_DEVEL_CFLAGS)
6181 login_la_LDFLAGS = \
6188 $(PYTHON_DEVEL_LIBS) \
6189 libsystemd-shared.la \
6192 dist_pkgpyexec_PYTHON = \
6193 src/python-systemd/journal.py \
6194 src/python-systemd/daemon.py \
6195 src/python-systemd/__init__.py
6197 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
6198 $(AM_V_at)$(MKDIR_P) $(dir $@)
6199 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
6202 src/python-systemd/id128-constants.h
6204 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
6206 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
6207 $(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/
6208 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
6211 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
6212 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
6215 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
6216 $(MAKE) DESTDIR="$$dir" install && \
6217 $(MAKE) DESTDIR="$$dir" sphinx-html && \
6222 CLEAN_LOCAL_HOOKS += clean-sphinx
6224 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
6227 -rm -rf docs/html/python-systemd/
6229 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
6231 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
6232 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
6234 # ------------------------------------------------------------------------------
6235 if ENABLE_COMPAT_LIBS
6237 src/compat-libs/linkwarning.h
6239 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
6240 $(AM_V_at)$(MKDIR_P) $(dir $@)
6241 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
6244 libsystemd-journal.c \
6245 libsystemd-login.c \
6246 libsystemd-id128.c \
6249 libsystemd_journal_la_SOURCES = \
6250 libsystemd-journal.c \
6251 src/compat-libs/libsystemd-journal.sym
6253 libsystemd_journal_la_CPPFLAGS = \
6255 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6257 libsystemd_journal_la_LDFLAGS = \
6259 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
6260 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
6262 libsystemd_journal_la_LIBADD = \
6263 libsystemd-journal-internal.la \
6264 libsystemd-internal.la \
6265 libsystemd-shared.la
6267 libsystemd_login_la_SOURCES = \
6268 libsystemd-login.c \
6269 src/compat-libs/libsystemd-login.sym
6271 libsystemd_login_la_CPPFLAGS = \
6273 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6275 libsystemd_login_la_LDFLAGS = \
6277 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
6278 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
6280 libsystemd_login_la_LIBADD = \
6281 libsystemd-internal.la \
6282 libsystemd-shared.la
6284 libsystemd_id128_la_SOURCES = \
6285 libsystemd-id128.c \
6286 src/compat-libs/libsystemd-id128.sym
6288 libsystemd_id128_la_CPPFLAGS = \
6290 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6292 libsystemd_id128_la_LDFLAGS = \
6294 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
6295 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
6297 libsystemd_id128_la_LIBADD = \
6298 libsystemd-internal.la \
6299 libsystemd-shared.la
6301 libsystemd_daemon_la_SOURCES = \
6302 libsystemd-daemon.c \
6303 src/compat-libs/libsystemd-daemon.sym
6305 libsystemd_daemon_la_CPPFLAGS = \
6307 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6309 libsystemd_daemon_la_LDFLAGS = \
6311 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
6312 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
6314 libsystemd_daemon_la_LIBADD = \
6315 libsystemd-internal.la \
6316 libsystemd-shared.la
6318 lib_LTLIBRARIES += \
6319 libsystemd-journal.la \
6320 libsystemd-login.la \
6321 libsystemd-id128.la \
6322 libsystemd-daemon.la
6324 pkgconfiglib_DATA += \
6325 src/compat-libs/libsystemd-journal.pc \
6326 src/compat-libs/libsystemd-login.pc \
6327 src/compat-libs/libsystemd-id128.pc \
6328 src/compat-libs/libsystemd-daemon.pc
6330 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
6331 compat-lib-install-hook:
6332 libname=libsystemd-login.so && $(move-to-rootlibdir)
6333 libname=libsystemd-journal.so && $(move-to-rootlibdir)
6334 libname=libsystemd-id128.so && $(move-to-rootlibdir)
6335 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
6337 compat-lib-uninstall-hook:
6338 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
6339 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
6340 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
6341 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
6343 INSTALL_EXEC_HOOKS += compat-lib-install-hook
6344 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
6348 src/compat-libs/libsystemd-journal.pc.in \
6349 src/compat-libs/libsystemd-login.pc.in \
6350 src/compat-libs/libsystemd-id128.pc.in \
6351 src/compat-libs/libsystemd-daemon.pc.in
6353 # ------------------------------------------------------------------------------
6355 '|rootlibexecdir=$(rootlibexecdir)|' \
6356 '|rootbindir=$(rootbindir)|' \
6357 '|bindir=$(bindir)|' \
6358 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6359 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6360 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6361 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6362 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6363 '|pkgdatadir=$(pkgdatadir)|' \
6364 '|systemunitdir=$(systemunitdir)|' \
6365 '|userunitdir=$(userunitdir)|' \
6366 '|systempresetdir=$(systempresetdir)|' \
6367 '|userpresetdir=$(userpresetdir)|' \
6368 '|udevhwdbdir=$(udevhwdbdir)|' \
6369 '|udevrulesdir=$(udevrulesdir)|' \
6370 '|catalogdir=$(catalogdir)|' \
6371 '|tmpfilesdir=$(tmpfilesdir)|' \
6372 '|sysusersdir=$(sysusersdir)|' \
6373 '|sysctldir=$(sysctldir)|' \
6374 '|systemgeneratordir=$(systemgeneratordir)|' \
6375 '|usergeneratordir=$(usergeneratordir)|' \
6376 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6377 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6378 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6379 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6380 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6381 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6382 '|prefix=$(prefix)|' \
6383 '|exec_prefix=$(exec_prefix)|' \
6384 '|libdir=$(libdir)|' \
6385 '|includedir=$(includedir)|' \
6386 '|VERSION=$(VERSION)|' \
6387 '|rootprefix=$(rootprefix)|' \
6388 '|udevlibexecdir=$(udevlibexecdir)|' \
6389 '|SUSHELL=$(SUSHELL)|' \
6390 '|SULOGIN=$(SULOGIN)|' \
6391 '|DEBUGTTY=$(DEBUGTTY)|' \
6394 '|MKDIR_P=$(MKDIR_P)|' \
6395 '|QUOTAON=$(QUOTAON)|' \
6396 '|QUOTACHECK=$(QUOTACHECK)|' \
6397 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6398 '|VARLOGDIR=$(varlogdir)|' \
6399 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6400 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6401 '|PYTHON=$(PYTHON)|' \
6402 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6403 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6404 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6405 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6406 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6407 '|TTY_GID=$(TTY_GID)|' \
6408 '|systemsleepdir=$(systemsleepdir)|' \
6409 '|systemshutdowndir=$(systemshutdowndir)|' \
6410 '|binfmtdir=$(binfmtdir)|' \
6411 '|modulesloaddir=$(modulesloaddir)|'
6414 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6415 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6424 sysctl.d/%: sysctl.d/%.in
6433 src/core/macros.%: src/core/macros.%.in
6436 src/%.policy.in: src/%.policy.in.in
6439 shell-completion/%: shell-completion/%.in
6450 $(AM_V_GEN)chmod +x $@
6452 src/%.c: src/%.gperf
6453 $(AM_V_at)$(MKDIR_P) $(dir $@)
6454 $(AM_V_GPERF)$(GPERF) < $< > $@
6457 $(AM_V_at)$(MKDIR_P) $(dir $@)
6458 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6460 sysusers.d/%: sysusers.d/%.m4
6461 $(AM_V_at)$(MKDIR_P) $(dir $@)
6462 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6464 tmpfiles.d/%: tmpfiles.d/%.m4
6465 $(AM_V_at)$(MKDIR_P) $(dir $@)
6466 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6470 $(AM_V_at)$(MKDIR_P) $(dir $@)
6471 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6473 units/user/%: units/user/%.m4
6474 $(AM_V_at)$(MKDIR_P) $(dir $@)
6475 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6478 nodist_polkitpolicy_DATA = \
6479 $(polkitpolicy_files) \
6480 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6484 $(polkitpolicy_in_files) \
6485 $(polkitpolicy_in_in_files)
6488 $(nodist_systemunit_DATA) \
6489 $(nodist_userunit_DATA) \
6490 $(pkgconfiglib_DATA) \
6491 $(nodist_polkitpolicy_DATA)
6493 # ------------------------------------------------------------------------------
6495 man/custom-entities.ent: configure.ac
6496 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6497 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6498 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6502 man/custom-entities.ent
6507 --stringparam man.output.quietly 1 \
6508 --stringparam funcsynopsis.style ansi \
6509 --stringparam man.authors.section.enabled 0 \
6510 --stringparam man.copyright.section.enabled 0 \
6511 --stringparam systemd.version $(VERSION) \
6512 --path '$(builddir)/man:$(srcdir)/man'
6514 XSLTPROC_PROCESS_MAN = \
6515 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6517 XSLTPROC_PROCESS_HTML = \
6518 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6520 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6521 $(XSLTPROC_PROCESS_MAN)
6523 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6524 $(XSLTPROC_PROCESS_MAN)
6526 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6527 $(XSLTPROC_PROCESS_MAN)
6529 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6530 $(XSLTPROC_PROCESS_MAN)
6532 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6533 $(XSLTPROC_PROCESS_MAN)
6535 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6536 $(XSLTPROC_PROCESS_HTML)
6539 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6545 man/custom-html.xsl \
6548 # ------------------------------------------------------------------------------
6551 docs/sysvinit/README
6556 docs/sysvinit/README: docs/sysvinit/README.in
6559 docs/var-log/README: docs/var-log/README.in
6563 docs/sysvinit/README \
6568 docs/sysvinit/README.in \
6569 docs/var-log/README.in
6571 SOCKETS_TARGET_WANTS += \
6572 systemd-initctl.socket \
6573 systemd-shutdownd.socket
6577 MULTI_USER_TARGET_WANTS += \
6578 systemd-update-utmp-runlevel.service
6579 GRAPHICAL_TARGET_WANTS += \
6580 systemd-update-utmp-runlevel.service
6581 RESCUE_TARGET_WANTS += \
6582 systemd-update-utmp-runlevel.service
6585 SYSINIT_TARGET_WANTS += \
6586 systemd-update-utmp.service
6589 SYSINIT_TARGET_WANTS += \
6590 systemd-update-done.service
6592 LOCAL_FS_TARGET_WANTS += \
6593 systemd-remount-fs.service \
6595 var-lib-machines.mount
6597 MULTI_USER_TARGET_WANTS += \
6599 systemd-ask-password-wall.path
6601 SYSINIT_TARGET_WANTS += \
6602 dev-hugepages.mount \
6604 sys-kernel-config.mount \
6605 sys-kernel-debug.mount \
6606 sys-fs-fuse-connections.mount \
6607 systemd-sysctl.service \
6608 systemd-ask-password-console.path
6611 SYSTEM_UNIT_ALIASES += \
6612 poweroff.target runlevel0.target \
6613 rescue.target runlevel1.target \
6614 multi-user.target runlevel2.target \
6615 multi-user.target runlevel3.target \
6616 multi-user.target runlevel4.target \
6617 graphical.target runlevel5.target \
6618 reboot.target runlevel6.target
6621 SYSTEM_UNIT_ALIASES += \
6622 graphical.target default.target \
6623 reboot.target ctrl-alt-del.target \
6624 getty@.service autovt@.service
6626 USER_UNIT_ALIASES += \
6627 $(systemunitdir)/shutdown.target shutdown.target \
6628 $(systemunitdir)/sockets.target sockets.target \
6629 $(systemunitdir)/timers.target timers.target \
6630 $(systemunitdir)/paths.target paths.target \
6631 $(systemunitdir)/bluetooth.target bluetooth.target \
6632 $(systemunitdir)/printer.target printer.target \
6633 $(systemunitdir)/sound.target sound.target \
6634 $(systemunitdir)/smartcard.target smartcard.target
6637 USER_UNIT_ALIASES += \
6638 $(systemunitdir)/busnames.target busnames.target
6641 GENERAL_ALIASES += \
6642 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6643 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6644 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6645 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6649 $(systemunitdir)/runlevel1.target.wants \
6650 $(systemunitdir)/runlevel2.target.wants \
6651 $(systemunitdir)/runlevel3.target.wants \
6652 $(systemunitdir)/runlevel4.target.wants \
6653 $(systemunitdir)/runlevel5.target.wants
6657 $(prefix)/lib/modules-load.d \
6658 $(sysconfdir)/modules-load.d \
6659 $(prefix)/lib/systemd/network \
6660 $(sysconfdir)/systemd/network \
6661 $(prefix)/lib/sysctl.d \
6662 $(sysconfdir)/sysctl.d \
6663 $(prefix)/lib/kernel/install.d \
6664 $(sysconfdir)/kernel/install.d \
6665 $(systemshutdowndir) \
6667 $(systemgeneratordir) \
6668 $(usergeneratordir) \
6671 $(pkgsysconfdir)/system \
6672 $(pkgsysconfdir)/system/multi-user.target.wants \
6673 $(pkgsysconfdir)/system/getty.target.wants \
6674 $(pkgsysconfdir)/user \
6675 $(dbussessionservicedir) \
6676 $(sysconfdir)/xdg/systemd
6678 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6680 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6682 install-data-hook: $(INSTALL_DATA_HOOKS)
6684 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6686 clean-local: $(CLEAN_LOCAL_HOOKS)
6687 rm -rf $(abs_srcdir)/install-tree
6688 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6689 $(abs_srcdir)/hwdb/iab.txt
6691 DISTCHECK_CONFIGURE_FLAGS = \
6692 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6693 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6694 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6695 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6696 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6697 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6698 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6699 --with-rootprefix=$$dc_install_base \
6700 --disable-split-usr \
6702 --enable-compat-libs
6705 DISTCHECK_CONFIGURE_FLAGS += \
6706 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6707 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6709 DISTCHECK_CONFIGURE_FLAGS += \
6710 --with-sysvinit-path= \
6711 --with-sysvrcnd-path=
6715 DISTCHECK_CONFIGURE_FLAGS += \
6720 DISTCHECK_CONFIGURE_FLAGS += \
6725 # Require python when making dist
6727 .PHONY: dist-check-python dist-check-compat-libs dist-check-help
6730 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6734 dist-check-compat-libs:
6735 if !ENABLE_COMPAT_LIBS
6736 @echo "*** compat-libs must be enabled in order to make dist"
6740 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6741 for i in $(abspath $^); do \
6742 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6743 echo "$(basename $$i) --help output is too wide:"; \
6744 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6748 dist: dist-check-python dist-check-compat-libs
6750 # check "broken" platforms limited toolchains for link breakage before we release
6753 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6757 ( cd $(top_srcdir)/hwdb && \
6758 wget -N http://www.linux-usb.org/usb.ids \
6759 http://pci-ids.ucw.cz/v2.2/pci.ids \
6760 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6761 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6764 .PHONY: kdbus-update
6766 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6767 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6771 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6773 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6775 upload: all check dist
6776 scp systemd-$(VERSION).tar.xz $(www_target)
6779 doc-sync: all destdir-sphinx
6780 gtkdoc-rebase --html-dir=docs/libudev/html --online
6781 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6782 gtkdoc-rebase --html-dir=docs/gudev/html --online
6783 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6784 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6785 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6789 scp man/*.html gardel:public/systemd-man/
6791 .PHONY: lennart-fedora
6793 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6795 .PHONY: install-tree
6797 rm -rf $(abs_srcdir)/install-tree
6798 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6799 tree $(abs_srcdir)/install-tree
6801 # Let's run all tests of the test suite, but under valgrind. Let's
6802 # exclude the one perl script we have in there
6803 .PHONY: valgrind-tests
6804 valgrind-tests: $(TESTS)
6805 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6806 if file $$f | grep -q shell; then \
6807 echo -e "$${x}Skipping non-binary $$f"; else \
6808 echo -e "$${x}Running $$f"; \
6809 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6814 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6816 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6817 $(AM_V_GEN)cat $^ > $@
6819 .PHONY: check-api-docs
6820 check-api-docs: exported man
6821 $(AM_V_GEN)for symbol in `cat exported` ; do \
6822 if test -f $(builddir)/man/$$symbol.html ; then \
6823 echo " Symbol $$symbol() is documented." ; \
6825 echo "‣ Symbol $$symbol() lacks documentation." ; \
6829 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6830 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6832 undefined defined: $(ALL_OBJECTS)
6833 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6834 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6835 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6841 .PHONY: check-api-unused
6842 check-api-unused: defined undefined exported
6843 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6845 .PHONY: check-includes
6846 check-includes: $(top_srcdir)/tools/check-includes.pl
6847 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6848 | xargs $(top_srcdir)/tools/check-includes.pl
6851 $(top_srcdir)/tools/check-includes.pl
6853 # Stupid test that everything purported to be exported really is
6854 define generate-sym-test
6855 $(AM_V_at)$(MKDIR_P) $(dir $@)
6856 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6857 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6858 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6859 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6860 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6861 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6862 $(AM_V_at)printf 'return 0; }\n' >> $@
6865 test-libsystemd-sym.c: \
6866 $(top_builddir)/src/libsystemd/libsystemd.sym \
6867 src/systemd/sd-journal.h \
6868 src/systemd/sd-daemon.h \
6869 src/systemd/sd-login.h \
6870 src/systemd/sd-bus.h \
6871 src/systemd/sd-utf8.h \
6872 src/systemd/sd-resolve.h \
6873 src/systemd/sd-path.h
6874 $(generate-sym-test)
6876 test-libudev-sym.c: \
6877 src/libudev/libudev.sym \
6879 $(generate-sym-test)
6881 test_libsystemd_sym_SOURCES = \
6882 test-libsystemd-sym.c
6883 test_libsystemd_sym_LDADD = \
6886 test_libudev_sym_SOURCES = \
6888 test_libudev_sym_CFLAGS = \
6890 -Wno-deprecated-declarations
6891 test_libudev_sym_LDADD = \
6895 $(test_libsystemd_sym_SOURCES) \
6896 $(test_libudev_sym_SOURCES)
6899 test-libsystemd-sym \
6904 cppcheck --enable=all -q $(top_srcdir)
6906 # Used to extract compile flags for YCM.
6911 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6914 tools/gdb-sd_dump_hashmaps.py
6917 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6920 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -