1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfiglibdir=$(libdir)/pkgconfig
78 polkitpolicydir=$(datadir)/polkit-1/actions
79 bashcompletiondir=@bashcompletiondir@
80 zshcompletiondir=@zshcompletiondir@
81 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
82 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
83 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
84 varlogdir=$(localstatedir)/log
85 systemdstatedir=$(localstatedir)/lib/systemd
86 catalogstatedir=$(systemdstatedir)/catalog
87 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
114 bootlibdir = $(prefix)/lib/systemd/boot/efi
116 # And these are the special ones for /
117 rootprefix=@rootprefix@
118 rootbindir=$(rootprefix)/bin
119 rootlibexecdir=$(rootprefix)/lib/systemd
121 CLEANFILES = $(BUILT_SOURCES)
126 UNINSTALL_EXEC_HOOKS =
128 UNINSTALL_DATA_HOOKS =
129 DISTCLEAN_LOCAL_HOOKS =
137 polkitpolicy_in_in_files =
138 polkitpolicy_in_files =
140 dist_udevrules_DATA =
141 nodist_udevrules_DATA =
142 dist_pkgsysconf_DATA =
143 nodist_pkgsysconf_DATA =
145 dist_dbuspolicy_DATA =
146 dist_dbussystemservice_DATA =
147 dist_systemunit_DATA_busnames =
152 TEST_EXTENSIONS = .py
153 PY_LOG_COMPILER = $(PYTHON)
155 noinst_PROGRAMS = $(manual_tests) $(tests)
161 udevlibexec_PROGRAMS =
163 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
164 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
165 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
168 -include $(top_builddir)/config.h \
169 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
170 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
171 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
172 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
173 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
174 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
175 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
176 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
177 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
178 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
179 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
180 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
181 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
182 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
183 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
184 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
185 -DROOTPREFIX=\"$(rootprefix)\" \
186 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
187 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
188 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
189 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
190 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
191 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
192 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
193 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
194 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
195 -DX_SERVER=\"$(bindir)/X\" \
196 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
197 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
198 -DQUOTACHECK=\"$(QUOTACHECK)\" \
199 -DKEXEC=\"$(KEXEC)\" \
200 -DLIBDIR=\"$(libdir)\" \
201 -DROOTLIBDIR=\"$(rootlibdir)\" \
202 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
203 -I $(top_srcdir)/src \
204 -I $(top_builddir)/src/shared \
205 -I $(top_srcdir)/src/shared \
206 -I $(top_srcdir)/src/network \
207 -I $(top_srcdir)/src/login \
208 -I $(top_srcdir)/src/journal \
209 -I $(top_srcdir)/src/timedate \
210 -I $(top_srcdir)/src/timesync \
211 -I $(top_srcdir)/src/resolve \
212 -I $(top_builddir)/src/resolve \
213 -I $(top_srcdir)/src/systemd \
214 -I $(top_builddir)/src/core \
215 -I $(top_srcdir)/src/core \
216 -I $(top_srcdir)/src/libudev \
217 -I $(top_srcdir)/src/udev \
218 -I $(top_srcdir)/src/udev/net \
219 -I $(top_builddir)/src/udev \
220 -I $(top_srcdir)/src/libsystemd/sd-bus \
221 -I $(top_srcdir)/src/libsystemd/sd-event \
222 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
223 -I $(top_srcdir)/src/libsystemd/sd-network \
224 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
225 -I $(top_srcdir)/src/libsystemd-network \
226 -I $(top_srcdir)/src/libsystemd-terminal \
229 AM_CFLAGS = $(OUR_CFLAGS)
230 AM_LDFLAGS = $(OUR_LDFLAGS)
232 # ------------------------------------------------------------------------------
233 define move-to-rootlibdir
234 if test "$(libdir)" != "$(rootlibdir)"; then \
235 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
236 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
237 rm -f $(DESTDIR)$(libdir)/$$libname && \
238 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
239 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 GRAPHICAL_TARGET_WANTS =
249 RESCUE_TARGET_WANTS =
250 SYSINIT_TARGET_WANTS =
251 SOCKETS_TARGET_WANTS =
252 BUSNAMES_TARGET_WANTS =
253 TIMERS_TARGET_WANTS =
254 USER_SOCKETS_TARGET_WANTS =
255 USER_DEFAULT_TARGET_WANTS =
256 USER_BUSNAMES_TARGET_WANTS =
258 SYSTEM_UNIT_ALIASES =
262 install-target-wants-hook:
263 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
273 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
275 install-busnames-target-wants-hook:
276 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
277 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
280 [ -z "$$what" ] || ( \
281 dir=$(DESTDIR)$$dir/$$wants.wants && \
282 $(MKDIR_P) -m 0755 $$dir && \
285 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
288 install-directories-hook:
289 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
291 install-aliases-hook:
292 set -- $(SYSTEM_UNIT_ALIASES) && \
293 dir=$(systemunitdir) && $(install-aliases)
294 set -- $(USER_UNIT_ALIASES) && \
295 dir=$(userunitdir) && $(install-relative-aliases)
296 set -- $(GENERAL_ALIASES) && \
297 dir= && $(install-relative-aliases)
299 define install-aliases
300 while [ -n "$$1" ]; do \
301 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
302 rm -f $(DESTDIR)$$dir/$$2 && \
303 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
304 shift 2 || exit $$?; \
308 define install-relative-aliases
309 while [ -n "$$1" ]; do \
310 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
311 rm -f $(DESTDIR)$$dir/$$2 && \
312 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
313 shift 2 || exit $$?; \
317 install-touch-usr-hook:
318 touch -c $(DESTDIR)/$(prefix)
320 INSTALL_EXEC_HOOKS += \
321 install-target-wants-hook \
322 install-directories-hook \
323 install-aliases-hook \
324 install-touch-usr-hook
327 INSTALL_EXEC_HOOKS += \
328 install-busnames-target-wants-hook
331 # ------------------------------------------------------------------------------
332 AM_V_M4 = $(AM_V_M4_$(V))
333 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
334 AM_V_M4_0 = @echo " M4 " $@;
336 AM_V_XSLT = $(AM_V_XSLT_$(V))
337 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
338 AM_V_XSLT_0 = @echo " XSLT " $@;
340 AM_V_GPERF = $(AM_V_GPERF_$(V))
341 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
342 AM_V_GPERF_0 = @echo " GPERF " $@;
344 AM_V_LN = $(AM_V_LN_$(V))
345 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
346 AM_V_LN_0 = @echo " LN " $@;
348 AM_V_RM = $(AM_V_RM_$(V))
349 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
350 AM_V_RM_0 = @echo " RM " $@;
352 # ------------------------------------------------------------------------------
356 systemd-ask-password \
357 systemd-tty-ask-password-agent \
358 systemd-machine-id-setup \
365 systemd-detect-virt \
369 systemd-stdio-bridge \
373 src/kernel-install/kernel-install
375 dist_kernelinstall_SCRIPTS = \
376 src/kernel-install/50-depmod.install \
377 src/kernel-install/90-loaderentry.install
379 rootlibexec_PROGRAMS = \
381 systemd-cgroups-agent \
386 systemd-reply-password \
389 systemd-machine-id-commit \
394 systemd-socket-proxyd \
398 rootlibexec_PROGRAMS += \
402 systemgenerator_PROGRAMS = \
403 systemd-getty-generator \
404 systemd-fstab-generator \
405 systemd-system-update-generator \
406 systemd-debug-generator
408 dist_bashcompletion_DATA = \
409 shell-completion/bash/busctl \
410 shell-completion/bash/journalctl \
411 shell-completion/bash/systemd-analyze \
412 shell-completion/bash/systemd-cat \
413 shell-completion/bash/systemd-cgls \
414 shell-completion/bash/systemd-cgtop \
415 shell-completion/bash/systemd-delta \
416 shell-completion/bash/systemd-detect-virt \
417 shell-completion/bash/systemd-nspawn \
418 shell-completion/bash/systemd-run \
419 shell-completion/bash/udevadm \
420 shell-completion/bash/kernel-install
422 nodist_bashcompletion_DATA = \
423 shell-completion/bash/systemctl
425 dist_zshcompletion_DATA = \
426 shell-completion/zsh/_journalctl \
427 shell-completion/zsh/_udevadm \
428 shell-completion/zsh/_kernel-install \
429 shell-completion/zsh/_systemd-nspawn \
430 shell-completion/zsh/_systemd-analyze \
431 shell-completion/zsh/_systemd-run \
432 shell-completion/zsh/_sd_hosts_or_user_at_host \
433 shell-completion/zsh/_sd_outputmodes \
434 shell-completion/zsh/_sd_unit_files \
435 shell-completion/zsh/_systemd-delta \
436 shell-completion/zsh/_systemd
438 nodist_zshcompletion_DATA = \
439 shell-completion/zsh/_systemctl
442 shell-completion/bash/systemctl.in \
443 shell-completion/zsh/_systemctl.in
446 $(nodist_bashcompletion_DATA) \
447 $(nodist_zshcompletion_DATA)
450 sysctl.d/50-default.conf
452 dist_systemunit_DATA = \
453 units/graphical.target \
454 units/multi-user.target \
455 units/emergency.target \
456 units/sysinit.target \
461 units/local-fs.target \
462 units/local-fs-pre.target \
463 units/initrd.target \
464 units/initrd-fs.target \
465 units/initrd-root-fs.target \
466 units/remote-fs.target \
467 units/remote-fs-pre.target \
468 units/network.target \
469 units/network-pre.target \
470 units/network-online.target \
471 units/nss-lookup.target \
472 units/nss-user-lookup.target \
473 units/poweroff.target \
474 units/reboot.target \
475 units/rescue.target \
476 units/rpcbind.target \
477 units/time-sync.target \
478 units/shutdown.target \
480 units/umount.target \
481 units/sigpwr.target \
483 units/sockets.target \
484 units/timers.target \
486 units/suspend.target \
488 units/slices.target \
491 units/systemd-fsckd.socket \
492 units/systemd-initctl.socket \
493 units/systemd-shutdownd.socket \
494 units/syslog.socket \
495 units/dev-hugepages.mount \
496 units/dev-mqueue.mount \
497 units/sys-kernel-config.mount \
498 units/sys-kernel-debug.mount \
499 units/sys-fs-fuse-connections.mount \
501 units/printer.target \
503 units/bluetooth.target \
504 units/smartcard.target \
505 units/systemd-ask-password-wall.path \
506 units/systemd-ask-password-console.path \
507 units/systemd-udevd-control.socket \
508 units/systemd-udevd-kernel.socket \
509 units/system-update.target \
510 units/initrd-switch-root.target \
511 units/machines.target
514 dist_systemunit_DATA += \
515 $(dist_systemunit_DATA_busnames)
518 dist_systemunit_DATA_busnames += \
519 units/busnames.target
521 nodist_systemunit_DATA = \
522 units/getty@.service \
523 units/serial-getty@.service \
524 units/console-shell.service \
525 units/console-getty.service \
526 units/container-getty@.service \
527 units/systemd-initctl.service \
528 units/systemd-shutdownd.service \
529 units/systemd-remount-fs.service \
530 units/systemd-ask-password-wall.service \
531 units/systemd-ask-password-console.service \
532 units/systemd-sysctl.service \
533 units/emergency.service \
534 units/rescue.service \
535 units/user@.service \
536 units/systemd-suspend.service \
537 units/systemd-halt.service \
538 units/systemd-poweroff.service \
539 units/systemd-reboot.service \
540 units/systemd-kexec.service \
541 units/systemd-fsck@.service \
542 units/systemd-fsck-root.service \
543 units/systemd-fsckd.service \
544 units/systemd-machine-id-commit.service \
545 units/systemd-udevd.service \
546 units/systemd-udev-trigger.service \
547 units/systemd-udev-settle.service \
548 units/systemd-hwdb-update.service \
549 units/debug-shell.service \
550 units/initrd-parse-etc.service \
551 units/initrd-cleanup.service \
552 units/initrd-udevadm-cleanup-db.service \
553 units/initrd-switch-root.service \
554 units/systemd-nspawn@.service \
555 units/systemd-update-done.service
558 nodist_systemunit_DATA += \
559 units/systemd-update-utmp.service \
560 units/systemd-update-utmp-runlevel.service
563 dist_userunit_DATA = \
564 units/user/basic.target \
565 units/user/default.target \
566 units/user/exit.target
568 nodist_userunit_DATA = \
569 units/user/systemd-exit.service
571 dist_systempreset_DATA = \
572 system-preset/90-systemd.preset
575 units/getty@.service.m4 \
576 units/serial-getty@.service.m4 \
577 units/console-shell.service.m4.in \
578 units/console-getty.service.m4.in \
579 units/container-getty@.service.m4.in \
580 units/rescue.service.in \
581 units/systemd-initctl.service.in \
582 units/systemd-shutdownd.service.in \
583 units/systemd-remount-fs.service.in \
584 units/systemd-update-utmp.service.in \
585 units/systemd-update-utmp-runlevel.service.in \
586 units/systemd-ask-password-wall.service.in \
587 units/systemd-ask-password-console.service.in \
588 units/systemd-sysctl.service.in \
589 units/emergency.service.in \
590 units/systemd-halt.service.in \
591 units/systemd-poweroff.service.in \
592 units/systemd-reboot.service.in \
593 units/systemd-kexec.service.in \
594 units/user/systemd-exit.service.in \
595 units/systemd-fsck@.service.in \
596 units/systemd-fsck-root.service.in \
597 units/systemd-fsckd.service.in \
598 units/systemd-machine-id-commit.service.in \
599 units/user@.service.m4.in \
600 units/debug-shell.service.in \
601 units/systemd-suspend.service.in \
602 units/quotaon.service.in \
603 units/initrd-parse-etc.service.in \
604 units/initrd-cleanup.service.in \
605 units/initrd-udevadm-cleanup-db.service.in \
606 units/initrd-switch-root.service.in \
607 units/systemd-nspawn@.service.in \
608 units/systemd-update-done.service.in
611 units/console-shell.service.m4 \
612 units/console-getty.service.m4 \
613 units/container-getty@.service.m4 \
614 units/user@.service.m4
617 nodist_systemunit_DATA += \
618 units/rc-local.service \
619 units/halt-local.service
621 systemgenerator_PROGRAMS += \
622 systemd-sysv-generator \
623 systemd-rc-local-generator
627 units/rc-local.service.in \
628 units/halt-local.service.in
630 # automake is broken and can't handle files with a dash in front
631 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
633 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
635 units-uninstall-hook:
636 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
638 INSTALL_DATA_HOOKS += units-install-hook
639 UNINSTALL_DATA_HOOKS += units-uninstall-hook
648 src/libsystemd/sd-bus/PORTING-DBUS1 \
649 src/libsystemd/sd-bus/DIFFERENCES \
650 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
652 @INTLTOOL_POLICY_RULE@
654 # ------------------------------------------------------------------------------
659 include Makefile-man.am
661 .PHONY: man update-man-list
662 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
665 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
667 ${XML_FILES:.xml=.html}
669 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
686 $(AM_V_at)$(MKDIR_P) $(dir $@)
687 $(AM_V_LN)$(LN_S) -f ../../man $@
696 man/index.html: man/systemd.index.html
697 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
705 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
706 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
707 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
709 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
710 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
711 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
712 @echo "Makefile-man.am has been regenerated"
714 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
715 $(AM_V_at)$(MKDIR_P) $(dir $@)
716 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
718 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
719 $(AM_V_at)$(MKDIR_P) $(dir $@)
720 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
723 man/systemd.index.xml \
725 man/systemd.directives.xml \
726 man/glib-event-glue.c
729 man/systemd.index.xml \
730 man/systemd.directives.xml
741 tools/make-man-index.py \
742 tools/make-directive-index.py \
745 # ------------------------------------------------------------------------------
746 noinst_LTLIBRARIES += \
749 libsystemd_shared_la_SOURCES = \
750 src/shared/capability.c \
751 src/shared/capability.h \
752 src/shared/linux/auto_dev-ioctl.h \
753 src/shared/ioprio.h \
754 src/shared/missing.h \
755 src/shared/initreq.h \
756 src/shared/securebits.h \
757 src/shared/special.h \
759 src/shared/unaligned.h \
762 src/shared/sparse-endian.h \
763 src/shared/refcnt.h \
764 src/shared/udev-util.h \
765 src/shared/device-nodes.c \
766 src/shared/device-nodes.h \
771 src/shared/architecture.c \
772 src/shared/architecture.h \
773 src/shared/efivars.c \
774 src/shared/efivars.h \
775 src/shared/fstab-util.c \
776 src/shared/fstab-util.h \
777 src/shared/path-util.c \
778 src/shared/path-util.h \
779 src/shared/time-util.c \
780 src/shared/time-util.h \
781 src/shared/locale-util.c \
782 src/shared/locale-util.h \
783 src/shared/mempool.c \
784 src/shared/mempool.h \
785 src/shared/hashmap.c \
786 src/shared/hashmap.h \
787 src/shared/siphash24.c \
788 src/shared/siphash24.h \
794 src/shared/sleep-config.c \
795 src/shared/sleep-config.h \
798 src/shared/env-util.c \
799 src/shared/env-util.h \
800 src/shared/strbuf.c \
801 src/shared/strbuf.h \
802 src/shared/strxcpyx.c \
803 src/shared/strxcpyx.h \
804 src/shared/conf-parser.c \
805 src/shared/conf-parser.h \
808 src/shared/ratelimit.h \
809 src/shared/ratelimit.c \
810 src/shared/exit-status.c \
811 src/shared/exit-status.h \
814 src/shared/gunicode.c \
815 src/shared/gunicode.h \
818 src/shared/socket-util.c \
819 src/shared/socket-util.h \
820 src/shared/in-addr-util.c \
821 src/shared/in-addr-util.h \
822 src/shared/ether-addr-util.h \
823 src/shared/conf-files.c \
824 src/shared/conf-files.h \
825 src/shared/cgroup-util.c \
826 src/shared/cgroup-util.h \
827 src/shared/cgroup-show.c \
828 src/shared/cgroup-show.h \
829 src/shared/unit-name.c \
830 src/shared/unit-name.h \
831 src/shared/utmp-wtmp.h \
832 src/shared/watchdog.c \
833 src/shared/watchdog.h \
834 src/shared/spawn-ask-password-agent.c \
835 src/shared/spawn-ask-password-agent.h \
836 src/shared/replace-var.c \
837 src/shared/replace-var.h \
838 src/shared/spawn-polkit-agent.c \
839 src/shared/spawn-polkit-agent.h \
840 src/shared/clock-util.c \
841 src/shared/clock-util.h \
842 src/shared/time-dst.c \
843 src/shared/time-dst.h \
844 src/shared/calendarspec.c \
845 src/shared/calendarspec.h \
846 src/shared/fileio.c \
847 src/shared/fileio.h \
848 src/shared/output-mode.h \
849 src/shared/MurmurHash2.c \
850 src/shared/MurmurHash2.h \
851 src/shared/acpi-fpdt.h \
852 src/shared/acpi-fpdt.c \
853 src/shared/boot-timestamps.h \
854 src/shared/boot-timestamps.c \
857 src/shared/smack-util.c \
858 src/shared/smack-util.h \
859 src/shared/apparmor-util.c \
860 src/shared/apparmor-util.h \
861 src/shared/ima-util.c \
862 src/shared/ima-util.h \
863 src/shared/ptyfwd.c \
864 src/shared/ptyfwd.h \
865 src/shared/errno-list.c \
866 src/shared/errno-list.h \
867 src/shared/af-list.c \
868 src/shared/af-list.h \
869 src/shared/arphrd-list.c \
870 src/shared/arphrd-list.h \
871 src/shared/cap-list.c \
872 src/shared/cap-list.h \
879 src/shared/bus-label.c \
880 src/shared/bus-label.h \
882 src/shared/clean-ipc.h \
883 src/shared/clean-ipc.c \
884 src/shared/login-shared.c \
885 src/shared/login-shared.h \
888 src/shared/barrier.c \
889 src/shared/barrier.h \
894 src/shared/base-filesystem.c \
895 src/shared/base-filesystem.h \
896 src/shared/memfd-util.c \
897 src/shared/memfd-util.h \
898 src/shared/uid-range.c \
899 src/shared/uid-range.h \
900 src/shared/nss-util.h \
903 src/shared/sigbus.c \
904 src/shared/sigbus.h \
906 src/shared/import-util.c \
907 src/shared/import-util.h
910 libsystemd_shared_la_SOURCES += \
911 src/shared/utmp-wtmp.c
914 nodist_libsystemd_shared_la_SOURCES = \
915 src/shared/errno-from-name.h \
916 src/shared/errno-to-name.h \
917 src/shared/af-from-name.h \
918 src/shared/af-to-name.h \
919 src/shared/arphrd-from-name.h \
920 src/shared/arphrd-to-name.h \
921 src/shared/cap-from-name.h \
922 src/shared/cap-to-name.h
924 libsystemd_shared_la_CFLAGS = \
930 libsystemd_shared_la_LIBADD = \
934 # ------------------------------------------------------------------------------
935 noinst_LTLIBRARIES += \
938 libsystemd_units_la_SOURCES = \
939 src/shared/install.c \
940 src/shared/install.h \
941 src/shared/install-printf.c \
942 src/shared/install-printf.h \
943 src/shared/path-lookup.c \
944 src/shared/path-lookup.h \
945 src/shared/specifier.c \
946 src/shared/specifier.h
948 # ------------------------------------------------------------------------------
949 noinst_LTLIBRARIES += \
952 libsystemd_label_la_SOURCES = \
953 src/shared/socket-label.c \
956 src/shared/selinux-util.c \
957 src/shared/selinux-util.h \
958 src/shared/mkdir-label.c \
959 src/shared/ask-password-api.c \
960 src/shared/ask-password-api.h \
961 src/shared/switch-root.h \
962 src/shared/switch-root.c \
963 src/shared/fileio-label.c \
964 src/shared/fileio-label.h \
965 src/shared/dev-setup.c \
966 src/shared/dev-setup.h \
967 src/shared/dropin.c \
968 src/shared/dropin.h \
969 src/shared/condition.c \
970 src/shared/condition.h \
971 src/shared/generator.h \
972 src/shared/generator.c \
973 src/shared/btrfs-util.c \
974 src/shared/btrfs-util.h \
975 src/shared/btrfs-ctree.h \
976 src/shared/machine-image.c \
977 src/shared/machine-image.h \
981 libsystemd_label_la_CFLAGS = \
985 libsystemd_label_la_LIBADD = \
988 # -----------------------------------------------------------------------------
991 noinst_LTLIBRARIES += \
994 libsystemd_fw_la_SOURCES = \
995 src/shared/fw-util.h \
998 libsystemd_fw_la_CFLAGS = \
1002 libsystemd_fw_la_LIBADD = \
1006 # -----------------------------------------------------------------------------
1009 dist_systemunit_DATA += \
1010 units/ldconfig.service
1012 SYSINIT_TARGET_WANTS += \
1016 # ------------------------------------------------------------------------------
1019 noinst_LTLIBRARIES += \
1020 libsystemd-seccomp.la
1022 libsystemd_seccomp_la_SOURCES = \
1023 src/shared/seccomp-util.h \
1024 src/shared/seccomp-util.c
1026 libsystemd_seccomp_la_CFLAGS = \
1030 libsystemd_seccomp_la_LIBADD = \
1034 # ------------------------------------------------------------------------------
1035 noinst_LTLIBRARIES += \
1038 libsystemd_logs_la_SOURCES = \
1039 src/shared/logs-show.c \
1040 src/shared/logs-show.h
1042 # ------------------------------------------------------------------------------
1044 noinst_LTLIBRARIES += \
1047 libsystemd_acl_la_SOURCES = \
1048 src/shared/acl-util.c \
1049 src/shared/acl-util.h
1051 libsystemd_acl_la_CFLAGS = \
1055 libsystemd_acl_la_LIBADD = \
1059 # ------------------------------------------------------------------------------
1060 noinst_LTLIBRARIES += \
1063 libsystemd_core_la_SOURCES = \
1066 src/core/unit-printf.c \
1067 src/core/unit-printf.h \
1070 src/core/manager.c \
1071 src/core/manager.h \
1072 src/core/transaction.c \
1073 src/core/transaction.h \
1074 src/core/load-fragment.c \
1075 src/core/load-fragment.h \
1076 src/core/service.c \
1077 src/core/service.h \
1080 src/core/busname.c \
1081 src/core/busname.h \
1082 src/core/bus-endpoint.c \
1083 src/core/bus-endpoint.h \
1084 src/core/bus-policy.c \
1085 src/core/bus-policy.h \
1088 src/core/snapshot.c \
1089 src/core/snapshot.h \
1094 src/core/automount.c \
1095 src/core/automount.h \
1106 src/core/load-dropin.c \
1107 src/core/load-dropin.h \
1108 src/core/execute.c \
1109 src/core/execute.h \
1114 src/core/dbus-manager.c \
1115 src/core/dbus-manager.h \
1116 src/core/dbus-unit.c \
1117 src/core/dbus-unit.h \
1118 src/core/dbus-job.c \
1119 src/core/dbus-job.h \
1120 src/core/dbus-service.c \
1121 src/core/dbus-service.h \
1122 src/core/dbus-socket.c \
1123 src/core/dbus-socket.h \
1124 src/core/dbus-busname.c \
1125 src/core/dbus-busname.h \
1126 src/core/dbus-target.c \
1127 src/core/dbus-target.h \
1128 src/core/dbus-snapshot.c \
1129 src/core/dbus-snapshot.h \
1130 src/core/dbus-device.c \
1131 src/core/dbus-device.h \
1132 src/core/dbus-mount.c \
1133 src/core/dbus-mount.h \
1134 src/core/dbus-automount.c \
1135 src/core/dbus-automount.h \
1136 src/core/dbus-swap.c \
1137 src/core/dbus-swap.h \
1138 src/core/dbus-timer.c \
1139 src/core/dbus-timer.h \
1140 src/core/dbus-path.c \
1141 src/core/dbus-path.h \
1142 src/core/dbus-slice.c \
1143 src/core/dbus-slice.h \
1144 src/core/dbus-scope.c \
1145 src/core/dbus-scope.h \
1146 src/core/dbus-execute.c \
1147 src/core/dbus-execute.h \
1148 src/core/dbus-kill.c \
1149 src/core/dbus-kill.h \
1150 src/core/dbus-cgroup.c \
1151 src/core/dbus-cgroup.h \
1154 src/core/selinux-access.c \
1155 src/core/selinux-access.h \
1156 src/core/selinux-setup.c \
1157 src/core/selinux-setup.h \
1158 src/core/smack-setup.c \
1159 src/core/smack-setup.h \
1160 src/core/ima-setup.c \
1161 src/core/ima-setup.h \
1162 src/core/locale-setup.h \
1163 src/core/locale-setup.c \
1164 src/core/hostname-setup.c \
1165 src/core/hostname-setup.h \
1166 src/core/machine-id-setup.c \
1167 src/core/machine-id-setup.h \
1168 src/core/mount-setup.c \
1169 src/core/mount-setup.h \
1170 src/core/kmod-setup.c \
1171 src/core/kmod-setup.h \
1172 src/core/loopback-setup.h \
1173 src/core/loopback-setup.c \
1174 src/core/namespace.c \
1175 src/core/namespace.h \
1176 src/core/killall.h \
1177 src/core/killall.c \
1178 src/core/audit-fd.c \
1179 src/core/audit-fd.h \
1180 src/core/show-status.c \
1181 src/core/show-status.h \
1182 src/core/failure-action.c \
1183 src/core/failure-action.h
1185 nodist_libsystemd_core_la_SOURCES = \
1186 src/core/load-fragment-gperf.c \
1187 src/core/load-fragment-gperf-nulstr.c
1189 libsystemd_core_la_CFLAGS = \
1194 $(APPARMOR_CFLAGS) \
1199 libsystemd_core_la_LIBADD = \
1200 libsystemd-units.la \
1201 libsystemd-label.la \
1202 libudev-internal.la \
1203 libsystemd-shared.la \
1204 libsystemd-internal.la \
1213 libsystemd_core_la_LIBADD += \
1214 libsystemd-seccomp.la
1217 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1218 $(AM_V_at)$(MKDIR_P) $(dir $@)
1219 $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
1222 src/core/load-fragment-gperf.gperf.m4
1225 src/core/load-fragment-gperf.gperf \
1226 src/core/load-fragment-gperf.c \
1227 src/core/load-fragment-gperf-nulstr.c \
1228 src/shared/errno-list.txt \
1229 src/shared/errno-from-name.gperf \
1230 src/shared/af-list.txt \
1231 src/shared/af-from-name.gperf \
1232 src/shared/arphrd-list.txt \
1233 src/shared/arphrd-from-name.gperf \
1234 src/shared/cap-list.txt \
1235 src/shared/cap-from-name.gperf \
1236 src/resolve/dns_type-list.txt \
1237 src/resolve/dns_type-from-name.gperf
1240 src/shared/errno-from-name.h \
1241 src/shared/errno-to-name.h \
1242 src/shared/af-from-name.h \
1243 src/shared/af-to-name.h \
1244 src/shared/arphrd-from-name.h \
1245 src/shared/arphrd-to-name.h \
1246 src/shared/cap-from-name.h \
1247 src/shared/cap-to-name.h \
1248 src/resolve/dns_type-from-name.h \
1249 src/resolve/dns_type-to-name.h
1251 %-from-name.gperf: %-list.txt
1252 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1254 %-from-name.h: %-from-name.gperf
1255 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1258 src/shared/errno-list.txt:
1259 $(AM_V_at)$(MKDIR_P) $(dir $@)
1260 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1262 src/shared/errno-to-name.h: src/shared/errno-list.txt
1263 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1266 src/shared/af-list.txt:
1267 $(AM_V_at)$(MKDIR_P) $(dir $@)
1268 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1270 src/shared/af-to-name.h: src/shared/af-list.txt
1271 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1274 src/shared/arphrd-list.txt:
1275 $(AM_V_at)$(MKDIR_P) $(dir $@)
1276 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1278 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1279 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1281 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1282 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1285 src/shared/cap-list.txt:
1286 $(AM_V_at)$(MKDIR_P) $(dir $@)
1287 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
1289 src/shared/cap-to-name.h: src/shared/cap-list.txt
1290 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1292 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1293 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1295 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1296 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1299 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1300 $(AM_V_at)$(MKDIR_P) $(dir $@)
1301 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1303 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1304 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1306 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1307 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1309 # ------------------------------------------------------------------------------
1318 libsystemd-core.la \
1321 dist_pkgsysconf_DATA += \
1322 src/core/system.conf \
1325 dist_dbuspolicy_DATA += \
1326 src/core/org.freedesktop.systemd1.conf
1328 dist_dbussystemservice_DATA += \
1329 src/core/org.freedesktop.systemd1.service
1331 polkitpolicy_in_in_files += \
1332 src/core/org.freedesktop.systemd1.policy.in.in
1334 pkgconfiglib_DATA += \
1337 nodist_rpmmacros_DATA = \
1338 src/core/macros.systemd
1341 src/core/systemd.pc.in \
1342 src/core/macros.systemd.in
1345 src/core/macros.systemd \
1346 src/core/org.freedesktop.systemd1.policy.in
1348 # ------------------------------------------------------------------------------
1398 test-strip-tab-ansi \
1434 test/daughter.service \
1436 test/end.service.in \
1439 test/grandchild.service \
1441 test/hello-after-sleep.target \
1442 test/hello.service \
1444 test/parent-deep.slice \
1447 test/sched_idle_bad.service \
1448 test/sched_idle_ok.service \
1449 test/sched_rr_bad.service \
1450 test/sched_rr_change.service \
1451 test/sched_rr_ok.service \
1452 test/shutdown.target \
1453 test/sleep.service \
1454 test/sockets.target \
1456 test/sysinit.target \
1457 test/testsuite.target \
1458 test/timers.target \
1459 test/unstoppable.service \
1460 test/path-changed.service \
1461 test/path-directorynotempty.service \
1462 test/path-existsglob.service \
1463 test/path-exists.service \
1464 test/path-makedirectory.service \
1465 test/path-modified.service \
1466 test/path-mycustomunit.service \
1467 test/path-service.service \
1468 test/path-changed.path \
1469 test/path-directorynotempty.path \
1470 test/path-existsglob.path \
1471 test/path-exists.path \
1472 test/path-makedirectory.path \
1473 test/path-modified.path \
1474 test/path-unit.path \
1475 test/exec-environment-empty.service \
1476 test/exec-environment-multiple.service \
1477 test/exec-environment.service \
1478 test/exec-group.service \
1479 test/exec-ignoresigpipe-no.service \
1480 test/exec-ignoresigpipe-yes.service \
1481 test/exec-personality-x86-64.service \
1482 test/exec-personality-x86.service \
1483 test/exec-privatedevices-no.service \
1484 test/exec-privatedevices-yes.service \
1485 test/exec-privatetmp-no.service \
1486 test/exec-privatetmp-yes.service \
1487 test/exec-systemcallerrornumber.service \
1488 test/exec-systemcallfilter-failing2.service \
1489 test/exec-systemcallfilter-failing.service \
1490 test/exec-systemcallfilter-not-failing2.service \
1491 test/exec-systemcallfilter-not-failing.service \
1492 test/exec-user.service \
1493 test/exec-workingdirectory.service \
1494 test/exec-umask-0177.service \
1495 test/exec-umask-default.service \
1496 test/bus-policy/hello.conf \
1497 test/bus-policy/methods.conf \
1498 test/bus-policy/ownerships.conf \
1499 test/bus-policy/signals.conf \
1500 test/bus-policy/check-own-rules.conf \
1501 test/bus-policy/many-rules.conf \
1502 test/bus-policy/test.conf
1506 src/test/test-helper.h
1508 test_device_nodes_SOURCES = \
1509 src/test/test-device-nodes.c
1511 test_device_nodes_LDADD = \
1512 libsystemd-shared.la
1514 test_engine_SOURCES = \
1515 src/test/test-engine.c
1517 test_engine_CFLAGS = \
1521 test_engine_LDADD = \
1522 libsystemd-core.la \
1525 test_job_type_SOURCES = \
1526 src/test/test-job-type.c
1528 test_job_type_CFLAGS = \
1532 test_job_type_LDADD = \
1533 libsystemd-core.la \
1546 test_loopback_SOURCES = \
1547 src/test/test-loopback.c
1549 test_loopback_LDADD = \
1552 test_hostname_SOURCES = \
1553 src/test/test-hostname.c
1555 test_hostname_LDADD = \
1562 test_boot_timestamp_SOURCES = \
1563 src/test/test-boot-timestamps.c
1565 test_boot_timestamp_LDADD = \
1566 libsystemd-shared.la
1569 test_unit_name_SOURCES = \
1570 src/test/test-unit-name.c
1572 test_unit_name_CFLAGS = \
1576 test_unit_name_LDADD = \
1577 libsystemd-core.la \
1580 test_unit_file_SOURCES = \
1581 src/test/test-unit-file.c
1583 test_unit_file_CFLAGS = \
1587 test_unit_file_LDADD = \
1588 libsystemd-core.la \
1591 test_utf8_SOURCES = \
1592 src/test/test-utf8.c
1595 libsystemd-shared.la
1597 test_capability_SOURCES = \
1598 src/test/test-capability.c
1600 test_capability_LDADD = \
1601 libsystemd-shared.la
1603 test_async_SOURCES = \
1604 src/test/test-async.c
1606 test_async_LDADD = \
1607 libsystemd-shared.la
1609 test_locale_util_SOURCES = \
1610 src/test/test-locale-util.c
1612 test_locale_util_LDADD = \
1613 libsystemd-shared.la
1615 test_copy_SOURCES = \
1616 src/test/test-copy.c
1619 libsystemd-label.la \
1620 libsystemd-shared.la
1622 test_sigbus_SOURCES = \
1623 src/test/test-sigbus.c
1625 test_sigbus_LDADD = \
1626 libsystemd-shared.la
1628 test_condition_SOURCES = \
1629 src/test/test-condition.c
1631 test_condition_LDADD = \
1632 libsystemd-label.la \
1633 libsystemd-internal.la \
1634 libsystemd-shared.la
1636 test_fdset_SOURCES = \
1637 src/test/test-fdset.c
1639 test_fdset_LDADD = \
1640 libsystemd-shared.la \
1641 libsystemd-internal.la
1643 test_fstab_util_SOURCES = \
1644 src/test/test-fstab-util.c
1646 test_fstab_util_LDADD = \
1647 libsystemd-shared.la
1649 test_ratelimit_SOURCES = \
1650 src/test/test-ratelimit.c
1652 test_ratelimit_LDADD = \
1653 libsystemd-shared.la
1655 test_util_SOURCES = \
1656 src/test/test-util.c
1659 libsystemd-shared.la
1661 test_path_lookup_SOURCES = \
1662 src/test/test-path-lookup.c
1664 test_path_lookup_LDADD = \
1666 libsystemd-units.la \
1667 libsystemd-shared.la
1669 test_uid_range_SOURCES = \
1670 src/test/test-uid-range.c
1672 test_uid_range_LDADD = \
1673 libsystemd-shared.la
1675 test_cap_list_SOURCES = \
1676 src/test/test-cap-list.c
1678 test_cap_list_LDADD = \
1679 libsystemd-shared.la
1681 test_socket_util_SOURCES = \
1682 src/test/test-socket-util.c
1684 test_socket_util_LDADD = \
1685 libsystemd-shared.la
1687 test_ring_SOURCES = \
1688 src/test/test-ring.c
1691 libsystemd-shared.la
1693 test_barrier_SOURCES = \
1694 src/test/test-barrier.c
1696 test_barrier_LDADD = \
1697 libsystemd-shared.la
1699 test_pty_SOURCES = \
1705 test_tmpfiles_SOURCES = \
1706 src/test/test-tmpfiles.c
1708 test_tmpfiles_LDADD = \
1709 libsystemd-shared.la
1711 test_namespace_SOURCES = \
1712 src/test/test-namespace.c
1714 test_verbs_SOURCES = \
1715 src/test/test-verbs.c
1717 test_verbs_LDADD = \
1718 libsystemd-shared.la
1720 test_namespace_LDADD = \
1724 src/test/test-hashmap-ordered.c
1727 src/test/test-hashmap-ordered.c
1729 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1730 $(AM_V_at)$(MKDIR_P) $(dir $@)
1731 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1732 { if (!match($$0, "^#include")) \
1733 gsub(/hashmap/, "ordered_hashmap"); \
1734 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1735 gsub(/Hashmap/, "OrderedHashmap"); \
1738 nodist_test_hashmap_SOURCES = \
1739 src/test/test-hashmap-ordered.c
1741 test_hashmap_SOURCES = \
1742 src/test/test-hashmap.c \
1743 src/test/test-hashmap-plain.c
1745 test_hashmap_LDADD = \
1746 libsystemd-shared.la
1748 test_set_SOURCES = \
1752 libsystemd-shared.la
1754 test_xml_SOURCES = \
1758 libsystemd-shared.la
1760 test_json_SOURCES = \
1761 src/test/test-json.c
1764 libsystemd-shared.la
1766 test_list_SOURCES = \
1767 src/test/test-list.c
1770 libsystemd-shared.la
1772 test_unaligned_LDADD = \
1773 libsystemd-shared.la
1775 test_unaligned_SOURCES = \
1776 src/test/test-unaligned.c
1778 test_tables_SOURCES = \
1779 src/test/test-tables.c \
1780 src/shared/test-tables.h \
1781 src/bus-proxyd/bus-xml-policy.c \
1782 src/bus-proxyd/bus-xml-policy.h \
1783 src/journal/journald-server.c \
1784 src/journal/journald-server.h
1786 test_tables_CPPFLAGS = \
1788 -I$(top_srcdir)/src/bus-proxyd
1790 test_tables_CFLAGS = \
1794 test_tables_LDADD = \
1795 libsystemd-logs.la \
1796 libsystemd-journal-internal.la \
1797 libsystemd-journal-core.la \
1798 libsystemd-core.la \
1802 test_prioq_SOURCES = \
1803 src/test/test-prioq.c
1805 test_prioq_LDADD = \
1806 libsystemd-shared.la
1808 test_fileio_SOURCES = \
1809 src/test/test-fileio.c
1811 test_fileio_LDADD = \
1812 libsystemd-shared.la
1814 test_time_SOURCES = \
1815 src/test/test-time.c
1818 libsystemd-shared.la
1820 test_architecture_SOURCES = \
1821 src/test/test-architecture.c
1823 test_architecture_LDADD = \
1824 libsystemd-shared.la
1826 test_log_SOURCES = \
1830 libsystemd-shared.la
1832 test_ipcrm_SOURCES = \
1833 src/test/test-ipcrm.c
1835 test_ipcrm_LDADD = \
1836 libsystemd-shared.la \
1839 test_btrfs_SOURCES = \
1840 src/test/test-btrfs.c
1842 test_btrfs_LDADD = \
1843 libsystemd-label.la \
1844 libsystemd-shared.la
1847 test_fw_util_SOURCES = \
1848 src/test/test-fw-util.c
1850 test_fw_util_CFLAGS = \
1854 test_fw_util_LDADD = \
1856 libsystemd-shared.la \
1860 test_rtnl_manual_SOURCES = \
1861 src/test/test-rtnl-manual.c
1863 test_rtnl_manual_CFLAGS = \
1867 test_rtnl_manual_LDADD = \
1868 libsystemd-internal.la \
1869 libsystemd-shared.la \
1872 test_ellipsize_SOURCES = \
1873 src/test/test-ellipsize.c
1875 test_ellipsize_LDADD = \
1876 libsystemd-shared.la
1878 test_date_SOURCES = \
1879 src/test/test-date.c
1882 libsystemd-shared.la
1884 test_sleep_SOURCES = \
1885 src/test/test-sleep.c
1887 test_sleep_LDADD = \
1890 test_replace_var_SOURCES = \
1891 src/test/test-replace-var.c
1893 test_replace_var_LDADD = \
1894 libsystemd-shared.la
1896 test_calendarspec_SOURCES = \
1897 src/test/test-calendarspec.c
1899 test_calendarspec_LDADD = \
1900 libsystemd-shared.la
1902 test_strip_tab_ansi_SOURCES = \
1903 src/test/test-strip-tab-ansi.c
1905 test_strip_tab_ansi_LDADD = \
1906 libsystemd-shared.la
1908 test_daemon_SOURCES = \
1909 src/test/test-daemon.c
1911 test_daemon_LDADD = \
1912 libsystemd-internal.la \
1913 libsystemd-shared.la
1915 test_cgroup_SOURCES = \
1916 src/test/test-cgroup.c
1918 test_cgroup_LDADD = \
1919 libsystemd-label.la \
1920 libsystemd-shared.la \
1921 libsystemd-internal.la
1923 test_cgroup_mask_SOURCES = \
1924 src/test/test-cgroup-mask.c
1926 test_cgroup_mask_CPPFLAGS = \
1929 test_cgroup_mask_CFLAGS = \
1933 test_cgroup_mask_LDADD = \
1934 libsystemd-core.la \
1937 test_cgroup_util_SOURCES = \
1938 src/test/test-cgroup-util.c
1940 test_cgroup_util_LDADD = \
1941 libsystemd-label.la \
1942 libsystemd-internal.la \
1943 libsystemd-shared.la
1945 test_env_replace_SOURCES = \
1946 src/test/test-env-replace.c
1948 test_env_replace_LDADD = \
1949 libsystemd-shared.la
1951 test_strbuf_SOURCES = \
1952 src/test/test-strbuf.c
1954 test_strbuf_LDADD = \
1955 libsystemd-shared.la
1957 test_strv_SOURCES = \
1958 src/test/test-strv.c
1961 libsystemd-units.la \
1962 libsystemd-internal.la \
1963 libsystemd-shared.la
1965 test_path_util_SOURCES = \
1966 src/test/test-path-util.c
1968 test_path_util_LDADD = \
1969 libsystemd-shared.la
1971 test_path_SOURCES = \
1972 src/test/test-path.c
1974 test_path_CFLAGS = \
1980 test_execute_SOURCES = \
1981 src/test/test-execute.c
1983 test_execute_CFLAGS = \
1986 test_execute_LDADD = \
1989 test_strxcpyx_SOURCES = \
1990 src/test/test-strxcpyx.c
1992 test_strxcpyx_LDADD = \
1993 libsystemd-shared.la
1995 test_install_SOURCES = \
1996 src/test/test-install.c
1998 test_install_LDADD = \
1999 libsystemd-units.la \
2000 libsystemd-label.la \
2001 libsystemd-shared.la \
2002 libsystemd-internal.la
2004 test_watchdog_SOURCES = \
2005 src/test/test-watchdog.c
2007 test_watchdog_LDADD = \
2008 libsystemd-shared.la
2010 test_sched_prio_SOURCES = \
2011 src/test/test-sched-prio.c
2013 test_sched_prio_CPPFLAGS = \
2016 test_sched_prio_CFLAGS = \
2020 test_sched_prio_LDADD = \
2021 libsystemd-core.la \
2024 test_conf_files_SOURCES = \
2025 src/test/test-conf-files.c
2027 test_conf_files_LDADD = \
2028 libsystemd-shared.la
2030 test_bus_policy_SOURCES = \
2031 src/bus-proxyd/test-bus-xml-policy.c
2033 test_bus_policy_LDADD = \
2034 libsystemd-proxy.la \
2035 libsystemd-internal.la \
2036 libsystemd-shared.la
2038 # ------------------------------------------------------------------------------
2039 ## .PHONY so it always rebuilds it
2040 .PHONY: coverage lcov-run lcov-report coverage-sync
2042 # run lcov from scratch, always
2047 coverage_dir = coverage
2048 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2051 # reset run coverage tests
2053 @rm -rf $(coverage_dir)
2054 lcov $(coverage_opts) --zerocounters
2057 # generate report based on current coverage data
2059 $(MKDIR_P) $(coverage_dir)
2060 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2061 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2062 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2063 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2064 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2066 # lcov doesn't work properly with vpath builds, make sure that bad
2067 # output is not uploaded by mistake.
2068 coverage-sync: coverage
2069 test "$(builddir)" = "$(srcdir)"
2070 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2073 lcov-run lcov-report:
2074 echo "Need to reconfigure with --enable-coverage"
2077 # ------------------------------------------------------------------------------
2078 systemd_analyze_SOURCES = \
2079 src/analyze/analyze.c \
2080 src/analyze/analyze-verify.c \
2081 src/analyze/analyze-verify.h
2083 systemd_verify_CFLAGS = \
2087 systemd_analyze_LDADD = \
2088 libsystemd-core.la \
2089 libsystemd-internal.la \
2090 libsystemd-shared.la \
2093 # ------------------------------------------------------------------------------
2094 systemd_initctl_SOURCES = \
2095 src/initctl/initctl.c
2097 systemd_initctl_LDADD = \
2098 libsystemd-internal.la \
2099 libsystemd-shared.la
2101 # ------------------------------------------------------------------------------
2102 systemd_update_utmp_SOURCES = \
2103 src/update-utmp/update-utmp.c
2105 systemd_update_utmp_CFLAGS = \
2109 systemd_update_utmp_LDADD = \
2110 libsystemd-internal.la \
2111 libsystemd-shared.la \
2114 # ------------------------------------------------------------------------------
2115 systemd_update_done_SOURCES = \
2116 src/update-done/update-done.c
2118 systemd_update_done_LDADD = \
2119 libsystemd-internal.la \
2120 libsystemd-label.la \
2121 libsystemd-shared.la
2123 # ------------------------------------------------------------------------------
2124 systemd_shutdownd_SOURCES = \
2125 src/shutdownd/shutdownd.c
2127 systemd_shutdownd_LDADD = \
2128 libsystemd-label.la \
2129 libsystemd-internal.la \
2130 libsystemd-shared.la
2133 src/systemd/sd-shutdown.h
2135 # ------------------------------------------------------------------------------
2136 systemd_shutdown_SOURCES = \
2139 src/core/shutdown.c \
2140 src/core/mount-setup.c \
2141 src/core/mount-setup.h \
2142 src/core/killall.h \
2145 systemd_shutdown_LDADD = \
2146 libsystemd-label.la \
2147 libudev-internal.la \
2148 libsystemd-shared.la
2150 # ------------------------------------------------------------------------------
2152 systemd_modules_load_SOURCES = \
2153 src/modules-load/modules-load.c
2155 systemd_modules_load_CFLAGS = \
2159 systemd_modules_load_LDADD = \
2160 libsystemd-shared.la \
2163 rootlibexec_PROGRAMS += \
2164 systemd-modules-load
2166 nodist_systemunit_DATA += \
2167 units/systemd-modules-load.service
2169 SYSINIT_TARGET_WANTS += \
2170 systemd-modules-load.service
2173 nodist_systemunit_DATA += \
2174 units/kmod-static-nodes.service
2176 SYSINIT_TARGET_WANTS += \
2177 kmod-static-nodes.service
2182 units/systemd-modules-load.service.in \
2183 units/kmod-static-nodes.service.in
2185 # ------------------------------------------------------------------------------
2187 systemd_tmpfiles_SOURCES = \
2188 src/tmpfiles/tmpfiles.c
2190 systemd_tmpfiles_LDADD = \
2191 libsystemd-units.la \
2192 libsystemd-label.la \
2193 libsystemd-internal.la \
2194 libsystemd-shared.la
2197 systemd_tmpfiles_LDADD += \
2201 rootbin_PROGRAMS += \
2204 dist_systemunit_DATA += \
2205 units/systemd-tmpfiles-clean.timer
2207 nodist_systemunit_DATA += \
2208 units/systemd-tmpfiles-setup-dev.service \
2209 units/systemd-tmpfiles-setup.service \
2210 units/systemd-tmpfiles-clean.service
2212 nodist_tmpfiles_DATA = \
2215 dist_tmpfiles_DATA = \
2216 tmpfiles.d/systemd.conf \
2217 tmpfiles.d/systemd-nologin.conf \
2218 tmpfiles.d/tmp.conf \
2219 tmpfiles.d/x11.conf \
2223 dist_tmpfiles_DATA += \
2224 tmpfiles.d/legacy.conf
2227 SYSINIT_TARGET_WANTS += \
2228 systemd-tmpfiles-setup-dev.service \
2229 systemd-tmpfiles-setup.service
2231 dist_zshcompletion_DATA += \
2232 shell-completion/zsh/_systemd-tmpfiles
2234 TIMERS_TARGET_WANTS += \
2235 systemd-tmpfiles-clean.timer
2239 $(sysconfdir)/tmpfiles.d
2243 tmpfiles.d/etc.conf.m4 \
2244 units/systemd-tmpfiles-setup-dev.service.in \
2245 units/systemd-tmpfiles-setup.service.in \
2246 units/systemd-tmpfiles-clean.service.in
2251 # ------------------------------------------------------------------------------
2253 systemd_sysusers_SOURCES = \
2254 src/sysusers/sysusers.c
2256 systemd_sysusers_LDADD = \
2257 libsystemd-units.la \
2258 libsystemd-label.la \
2259 libsystemd-internal.la \
2260 libsystemd-shared.la
2262 rootbin_PROGRAMS += \
2265 nodist_systemunit_DATA += \
2266 units/systemd-sysusers.service
2268 SYSINIT_TARGET_WANTS += \
2269 systemd-sysusers.service
2271 dist_sysusers_DATA = \
2272 sysusers.d/systemd.conf
2274 nodist_sysusers_DATA = \
2275 sysusers.d/basic.conf
2278 units/systemd-sysusers.service.in \
2279 sysusers.d/basic.conf.in
2282 sysusers.d/basic.conf
2288 # ------------------------------------------------------------------------------
2289 dist_factory_etc_DATA = \
2290 factory/etc/nsswitch.conf
2293 dist_factory_pam_DATA = \
2294 factory/etc/pam.d/system-auth \
2295 factory/etc/pam.d/other
2298 # ------------------------------------------------------------------------------
2300 systemd_firstboot_SOURCES = \
2301 src/firstboot/firstboot.c
2303 systemd_firstboot_LDADD = \
2304 libsystemd-units.la \
2305 libsystemd-label.la \
2306 libsystemd-internal.la \
2307 libsystemd-shared.la \
2310 rootbin_PROGRAMS += \
2313 nodist_systemunit_DATA += \
2314 units/systemd-firstboot.service
2317 units/systemd-firstboot.service.in
2319 SYSINIT_TARGET_WANTS += \
2320 systemd-firstboot.service
2323 # ------------------------------------------------------------------------------
2324 systemd_machine_id_setup_SOURCES = \
2325 src/machine-id-setup/machine-id-setup-main.c \
2326 src/core/machine-id-setup.c \
2327 src/core/machine-id-setup.h
2329 systemd_machine_id_setup_LDADD = \
2330 libsystemd-label.la \
2331 libsystemd-internal.la \
2332 libsystemd-shared.la
2334 # ------------------------------------------------------------------------------
2335 systemd_sysctl_SOURCES = \
2338 systemd_sysctl_LDADD = \
2339 libsystemd-shared.la
2341 # ------------------------------------------------------------------------------
2342 systemd_sleep_SOURCES = \
2345 systemd_sleep_LDADD = \
2346 libsystemd-shared.la
2348 # ------------------------------------------------------------------------------
2349 systemd_fsck_SOURCES = \
2352 systemd_fsck_LDADD = \
2353 libsystemd-internal.la \
2354 libudev-internal.la \
2355 libsystemd-shared.la
2357 # ------------------------------------------------------------------------------
2358 systemd_fsckd_SOURCES = \
2362 systemd_fsckd_LDADD = \
2363 libsystemd-internal.la \
2364 libsystemd-label.la \
2365 libsystemd-shared.la \
2366 libudev-internal.la \
2369 # ------------------------------------------------------------------------------
2370 systemd_machine_id_commit_SOURCES = \
2371 src/machine-id-commit/machine-id-commit.c \
2372 src/core/machine-id-setup.c \
2373 src/core/machine-id-setup.h
2375 systemd_machine_id_commit_LDADD = \
2376 libsystemd-label.la \
2377 libsystemd-internal.la \
2378 libsystemd-shared.la
2380 SYSINIT_TARGET_WANTS += \
2381 systemd-machine-id-commit.service
2383 # ------------------------------------------------------------------------------
2384 systemd_ac_power_SOURCES = \
2385 src/ac-power/ac-power.c
2387 systemd_ac_power_LDADD = \
2388 libudev-internal.la \
2389 libsystemd-shared.la
2391 # ------------------------------------------------------------------------------
2392 systemd_detect_virt_SOURCES = \
2393 src/detect-virt/detect-virt.c
2395 systemd_detect_virt_LDADD = \
2396 libsystemd-shared.la
2398 INSTALL_EXEC_HOOKS += \
2399 systemd-detect-virt-install-hook
2401 # ------------------------------------------------------------------------------
2402 systemd_delta_SOURCES = \
2405 systemd_delta_LDADD = \
2406 libsystemd-shared.la
2408 # ------------------------------------------------------------------------------
2409 systemd_getty_generator_SOURCES = \
2410 src/getty-generator/getty-generator.c
2412 systemd_getty_generator_LDADD = \
2413 libsystemd-label.la \
2414 libsystemd-shared.la
2416 # ------------------------------------------------------------------------------
2417 systemd_debug_generator_SOURCES = \
2418 src/debug-generator/debug-generator.c
2420 systemd_debug_generator_LDADD = \
2421 libsystemd-label.la \
2422 libsystemd-shared.la
2424 # ------------------------------------------------------------------------------
2425 systemd_fstab_generator_SOURCES = \
2426 src/fstab-generator/fstab-generator.c \
2427 src/core/mount-setup.c
2429 systemd_fstab_generator_LDADD = \
2430 libsystemd-label.la \
2431 libsystemd-shared.la
2433 # ------------------------------------------------------------------------------
2434 systemd_system_update_generator_SOURCES = \
2435 src/system-update-generator/system-update-generator.c
2437 systemd_system_update_generator_LDADD = \
2438 libsystemd-label.la \
2439 libsystemd-shared.la
2441 # ------------------------------------------------------------------------------
2443 systemgenerator_PROGRAMS += \
2444 systemd-hibernate-resume-generator
2446 rootlibexec_PROGRAMS += \
2447 systemd-hibernate-resume
2449 systemd_hibernate_resume_SOURCES = \
2450 src/hibernate-resume/hibernate-resume.c
2452 systemd_hibernate_resume_LDADD = \
2453 libsystemd-internal.la \
2454 libsystemd-shared.la
2456 systemd_hibernate_resume_generator_SOURCES = \
2457 src/hibernate-resume/hibernate-resume-generator.c
2459 systemd_hibernate_resume_generator_LDADD = \
2460 libsystemd-label.la \
2461 libsystemd-shared.la
2464 units/systemd-hibernate.service.in \
2465 units/systemd-hibernate-resume@.service.in \
2466 units/systemd-hybrid-sleep.service.in
2468 dist_systemunit_DATA += \
2469 units/hibernate.target \
2470 units/hybrid-sleep.target
2472 nodist_systemunit_DATA += \
2473 units/systemd-hibernate.service \
2474 units/systemd-hibernate-resume@.service \
2475 units/systemd-hybrid-sleep.service
2478 # ------------------------------------------------------------------------------
2480 systemgenerator_PROGRAMS += \
2481 systemd-efi-boot-generator
2483 systemd_efi_boot_generator_SOURCES = \
2484 src/efi-boot-generator/efi-boot-generator.c
2486 systemd_efi_boot_generator_LDADD = \
2487 libsystemd-label.la \
2488 libsystemd-shared.la
2490 # ------------------------------------------------------------------------------
2495 bootctl_CPPFLAGS = \
2497 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2498 -DBOOTLIBDIR=\"$(bootlibdir)\"
2505 libsystemd-shared.la \
2506 libsystemd-internal.la \
2512 dist_bashcompletion_DATA += \
2513 shell-completion/bash/bootctl
2515 dist_zshcompletion_DATA += \
2516 shell-completion/zsh/_bootctl
2519 # ------------------------------------------------------------------------------
2523 -I$(top_builddir) -include config.h \
2524 -I$(EFI_INC_DIR)/efi \
2525 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2526 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2538 -fno-strict-aliasing \
2539 -fno-stack-protector \
2547 -DEFI_FUNCTION_WRAPPER \
2548 -DGNU_EFI_USE_MS_ABI \
2554 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2560 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2562 # ------------------------------------------------------------------------------
2563 systemd_boot_headers = \
2564 src/boot/efi/util.h \
2565 src/boot/efi/console.h \
2566 src/boot/efi/graphics.h \
2567 src/boot/efi/pefile.h
2569 systemd_boot_sources = \
2570 src/boot/efi/util.c \
2571 src/boot/efi/console.c \
2572 src/boot/efi/graphics.c \
2573 src/boot/efi/pefile.c \
2576 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2577 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2578 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2580 bootlib_DATA = $(systemd_boot)
2581 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2582 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2584 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2585 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2586 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2588 $(systemd_boot_solib): $(systemd_boot_objects)
2589 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2590 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2591 nm -D -u $@ | grep ' U ' && exit 1 || :
2593 $(systemd_boot): $(systemd_boot_solib)
2594 $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
2595 -j .dynsym -j .rel -j .rela -j .reloc \
2596 --target=efi-app-$(EFI_ARCH) $< $@
2598 # ------------------------------------------------------------------------------
2600 src/boot/efi/util.h \
2601 src/boot/efi/pefile.h \
2602 src/boot/efi/linux.h
2605 src/boot/efi/util.c \
2606 src/boot/efi/pefile.c \
2607 src/boot/efi/linux.c \
2610 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2611 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2612 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2614 bootlib_DATA += $(stub)
2615 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2616 EXTRA_DIST += $(stub_sources) $(stub_headers)
2618 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2619 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2620 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2622 $(stub_solib): $(stub_objects)
2623 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2624 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2625 nm -D -u $@ | grep ' U ' && exit 1 || :
2627 $(stub): $(stub_solib)
2628 $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
2629 -j .dynsym -j .rel -j .rela -j .reloc \
2630 --target=efi-app-$(EFI_ARCH) $< $@
2632 # ------------------------------------------------------------------------------
2633 CLEANFILES += test-efi-disk.img
2634 EXTRA_DIST += test/test-efi-create-disk.sh
2636 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2637 $(AM_V_GEN)test/test-efi-create-disk.sh
2639 test-efi: test-efi-disk.img
2640 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2644 # ------------------------------------------------------------------------------
2646 systemgenerator_PROGRAMS += \
2647 systemd-gpt-auto-generator
2649 systemd_gpt_auto_generator_SOURCES = \
2650 src/gpt-auto-generator/gpt-auto-generator.c \
2651 src/shared/blkid-util.h
2653 systemd_gpt_auto_generator_LDADD = \
2654 libsystemd-label.la \
2655 libsystemd-internal.la \
2656 libudev-internal.la \
2657 libsystemd-shared.la \
2660 systemd_gpt_auto_generator_CFLAGS = \
2665 # ------------------------------------------------------------------------------
2667 systemgenerator_PROGRAMS += \
2668 systemd-dbus1-generator
2670 systemd_dbus1_generator_SOURCES = \
2671 src/dbus1-generator/dbus1-generator.c
2673 systemd_dbus1_generator_LDADD = \
2674 libsystemd-label.la \
2675 libsystemd-internal.la \
2676 libsystemd-shared.la
2678 dbus1-generator-install-hook:
2679 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2680 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2681 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2683 dbus1-generator-uninstall-hook:
2684 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2686 dist_xinitrc_SCRIPTS = \
2687 xorg/50-systemd-user.sh
2689 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2690 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2693 # ------------------------------------------------------------------------------
2694 systemd_sysv_generator_SOURCES = \
2695 src/sysv-generator/sysv-generator.c
2697 systemd_sysv_generator_LDADD = \
2698 libsystemd-core.la \
2699 libsystemd-label.la \
2700 libsystemd-shared.la
2702 # ------------------------------------------------------------------------------
2703 systemd_rc_local_generator_SOURCES = \
2704 src/rc-local-generator/rc-local-generator.c
2706 systemd_rc_local_generator_LDADD = \
2707 libsystemd-label.la \
2708 libsystemd-shared.la
2710 # ------------------------------------------------------------------------------
2711 systemd_remount_fs_SOURCES = \
2712 src/remount-fs/remount-fs.c \
2713 src/core/mount-setup.c \
2714 src/core/mount-setup.h
2716 systemd_remount_fs_LDADD = \
2717 libsystemd-label.la \
2718 libsystemd-shared.la
2720 # ------------------------------------------------------------------------------
2721 systemd_cgroups_agent_SOURCES = \
2722 src/cgroups-agent/cgroups-agent.c
2724 systemd_cgroups_agent_LDADD = \
2725 libsystemd-internal.la \
2726 libsystemd-shared.la
2728 # ------------------------------------------------------------------------------
2729 systemd_escape_SOURCES = \
2732 systemd_escape_LDADD = \
2733 libsystemd-shared.la
2735 # -----------------------------------------------------------------------------
2736 systemctl_SOURCES = \
2737 src/systemctl/systemctl.c
2740 libsystemd-units.la \
2741 libsystemd-label.la \
2742 libsystemd-internal.la \
2743 libsystemd-logs.la \
2744 libsystemd-journal-internal.la \
2745 libsystemd-shared.la
2747 # ------------------------------------------------------------------------------
2748 systemd_notify_SOURCES = \
2751 systemd_notify_LDADD = \
2752 libsystemd-internal.la \
2753 libsystemd-shared.la
2755 # ------------------------------------------------------------------------------
2756 systemd_path_SOURCES = \
2759 systemd_path_LDADD = \
2760 libsystemd-internal.la \
2761 libsystemd-shared.la
2763 # ------------------------------------------------------------------------------
2764 systemd_ask_password_SOURCES = \
2765 src/ask-password/ask-password.c
2767 systemd_ask_password_LDADD = \
2768 libsystemd-label.la \
2769 libsystemd-shared.la
2771 # ------------------------------------------------------------------------------
2772 systemd_reply_password_SOURCES = \
2773 src/reply-password/reply-password.c
2775 systemd_reply_password_LDADD = \
2776 libsystemd-shared.la
2778 # ------------------------------------------------------------------------------
2779 systemd_cgls_SOURCES = \
2782 systemd_cgls_LDADD = \
2783 libsystemd-internal.la \
2784 libsystemd-shared.la
2786 # ------------------------------------------------------------------------------
2787 systemd_cgtop_SOURCES = \
2790 systemd_cgtop_LDADD = \
2791 libsystemd-shared.la
2793 # ------------------------------------------------------------------------------
2794 systemd_nspawn_SOURCES = \
2795 src/nspawn/nspawn.c \
2796 src/core/mount-setup.c \
2797 src/core/mount-setup.h \
2798 src/core/loopback-setup.c \
2799 src/core/loopback-setup.h
2801 systemd_nspawn_CFLAGS = \
2806 systemd_nspawn_LDADD = \
2807 libsystemd-label.la \
2808 libsystemd-internal.la \
2809 libudev-internal.la \
2810 libsystemd-shared.la \
2814 systemd_nspawn_LDADD += \
2815 libsystemd-seccomp.la \
2820 systemd_nspawn_LDADD += \
2824 # ------------------------------------------------------------------------------
2825 systemd_run_SOURCES = \
2828 systemd_run_LDADD = \
2829 libsystemd-label.la \
2830 libsystemd-internal.la \
2831 libsystemd-shared.la
2833 # ------------------------------------------------------------------------------
2834 noinst_LTLIBRARIES += \
2837 libsystemd_proxy_la_SOURCES = \
2838 src/bus-proxyd/bus-xml-policy.c \
2839 src/bus-proxyd/bus-xml-policy.h \
2840 src/bus-proxyd/driver.c \
2841 src/bus-proxyd/driver.h \
2842 src/bus-proxyd/proxy.c \
2843 src/bus-proxyd/proxy.h \
2844 src/bus-proxyd/synthesize.c \
2845 src/bus-proxyd/synthesize.h
2847 libsystemd_proxy_la_CFLAGS = \
2851 libsystemd_proxy_la_LIBADD = \
2852 libsystemd-internal.la \
2853 libsystemd-shared.la
2855 systemd_bus_proxyd_SOURCES = \
2856 src/bus-proxyd/bus-proxyd.c
2858 systemd_bus_proxyd_CFLAGS = \
2862 systemd_bus_proxyd_LDADD = \
2863 libsystemd-proxy.la \
2864 libsystemd-internal.la \
2865 libsystemd-shared.la
2867 systemd_stdio_bridge_SOURCES = \
2868 src/bus-proxyd/stdio-bridge.c
2870 systemd_stdio_bridge_LDADD = \
2871 libsystemd-proxy.la \
2872 libsystemd-internal.la \
2873 libsystemd-shared.la
2876 nodist_systemunit_DATA += \
2877 units/systemd-bus-proxyd.service
2879 dist_systemunit_DATA += \
2880 units/systemd-bus-proxyd.socket
2882 nodist_userunit_DATA += \
2883 units/user/systemd-bus-proxyd.service
2885 dist_userunit_DATA += \
2886 units/user/systemd-bus-proxyd.socket
2890 units/systemd-bus-proxyd.service.m4.in \
2891 units/user/systemd-bus-proxyd.service.in
2894 units/systemd-bus-proxyd.service.m4
2897 bus-proxyd-set-cap-hook:
2898 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2900 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2903 # ------------------------------------------------------------------------------
2904 systemd_tty_ask_password_agent_SOURCES = \
2905 src/tty-ask-password-agent/tty-ask-password-agent.c
2907 systemd_tty_ask_password_agent_LDADD = \
2908 libsystemd-label.la \
2909 libsystemd-shared.la
2911 # ------------------------------------------------------------------------------
2912 libsystemd_internal_la_SOURCES = \
2913 src/systemd/sd-bus.h \
2914 src/systemd/sd-bus-protocol.h \
2915 src/systemd/sd-bus-vtable.h \
2916 src/systemd/sd-utf8.h \
2917 src/systemd/sd-event.h \
2918 src/systemd/sd-rtnl.h \
2919 src/systemd/sd-resolve.h \
2920 src/systemd/sd-login.h \
2921 src/systemd/sd-id128.h \
2922 src/systemd/sd-daemon.h \
2923 src/systemd/sd-path.h \
2924 src/systemd/sd-network.h \
2925 src/systemd/sd-hwdb.h \
2926 src/libsystemd/sd-bus/sd-bus.c \
2927 src/libsystemd/sd-bus/bus-control.c \
2928 src/libsystemd/sd-bus/bus-control.h \
2929 src/libsystemd/sd-bus/bus-error.c \
2930 src/libsystemd/sd-bus/bus-error.h \
2931 src/libsystemd/sd-bus/bus-common-errors.h \
2932 src/libsystemd/sd-bus/bus-common-errors.c \
2933 src/libsystemd/sd-bus/bus-internal.c \
2934 src/libsystemd/sd-bus/bus-internal.h \
2935 src/libsystemd/sd-bus/bus-socket.c \
2936 src/libsystemd/sd-bus/bus-socket.h \
2937 src/libsystemd/sd-bus/bus-kernel.c \
2938 src/libsystemd/sd-bus/bus-kernel.h \
2939 src/libsystemd/sd-bus/bus-container.c \
2940 src/libsystemd/sd-bus/bus-container.h \
2941 src/libsystemd/sd-bus/bus-message.c \
2942 src/libsystemd/sd-bus/bus-message.h \
2943 src/libsystemd/sd-bus/bus-creds.c \
2944 src/libsystemd/sd-bus/bus-creds.h \
2945 src/libsystemd/sd-bus/bus-signature.c \
2946 src/libsystemd/sd-bus/bus-signature.h \
2947 src/libsystemd/sd-bus/bus-type.c \
2948 src/libsystemd/sd-bus/bus-type.h \
2949 src/libsystemd/sd-bus/bus-match.c \
2950 src/libsystemd/sd-bus/bus-match.h \
2951 src/libsystemd/sd-bus/bus-bloom.c \
2952 src/libsystemd/sd-bus/bus-bloom.h \
2953 src/libsystemd/sd-bus/bus-introspect.c \
2954 src/libsystemd/sd-bus/bus-introspect.h \
2955 src/libsystemd/sd-bus/bus-objects.c \
2956 src/libsystemd/sd-bus/bus-objects.h \
2957 src/libsystemd/sd-bus/bus-gvariant.c \
2958 src/libsystemd/sd-bus/bus-gvariant.h \
2959 src/libsystemd/sd-bus/bus-convenience.c \
2960 src/libsystemd/sd-bus/bus-track.c \
2961 src/libsystemd/sd-bus/bus-track.h \
2962 src/libsystemd/sd-bus/bus-util.c \
2963 src/libsystemd/sd-bus/bus-util.h \
2964 src/libsystemd/sd-bus/bus-slot.c \
2965 src/libsystemd/sd-bus/bus-slot.h \
2966 src/libsystemd/sd-bus/bus-protocol.h \
2967 src/libsystemd/sd-bus/kdbus.h \
2968 src/libsystemd/sd-utf8/sd-utf8.c \
2969 src/libsystemd/sd-event/sd-event.c \
2970 src/libsystemd/sd-event/event-util.h \
2971 src/libsystemd/sd-rtnl/sd-rtnl.c \
2972 src/libsystemd/sd-rtnl/rtnl-internal.h \
2973 src/libsystemd/sd-rtnl/rtnl-message.c \
2974 src/libsystemd/sd-rtnl/rtnl-types.h \
2975 src/libsystemd/sd-rtnl/rtnl-types.c \
2976 src/libsystemd/sd-rtnl/rtnl-util.h \
2977 src/libsystemd/sd-rtnl/rtnl-util.c \
2978 src/libsystemd/sd-rtnl/local-addresses.h \
2979 src/libsystemd/sd-rtnl/local-addresses.c \
2980 src/libsystemd/sd-id128/sd-id128.c \
2981 src/libsystemd/sd-daemon/sd-daemon.c \
2982 src/libsystemd/sd-login/sd-login.c \
2983 src/libsystemd/sd-path/sd-path.c \
2984 src/libsystemd/sd-network/sd-network.c \
2985 src/libsystemd/sd-network/network-util.h \
2986 src/libsystemd/sd-network/network-util.c \
2987 src/libsystemd/sd-hwdb/sd-hwdb.c \
2988 src/libsystemd/sd-hwdb/hwdb-util.h \
2989 src/libsystemd/sd-hwdb/hwdb-internal.h
2991 nodist_libsystemd_internal_la_SOURCES = \
2992 src/libsystemd/libsystemd.sym
2994 libsystemd_internal_la_CFLAGS = \
2998 libsystemd_internal_la_LIBADD = \
3001 libsystemd_resolve_la_SOURCES = \
3002 src/libsystemd/sd-resolve/sd-resolve.c \
3003 src/libsystemd/sd-resolve/resolve-util.h
3005 libsystemd_resolve_la_CFLAGS = \
3009 libsystemd_resolve_la_LIBADD = \
3012 noinst_LTLIBRARIES += \
3013 libsystemd-internal.la \
3014 libsystemd-resolve.la
3016 libsystemd_dump_la_SOURCES = \
3017 src/libsystemd/sd-bus/bus-dump.c \
3018 src/libsystemd/sd-bus/bus-dump.h
3020 noinst_LTLIBRARIES += \
3024 src/libsystemd/libsystemd.sym.m4 \
3025 src/libsystemd/libsystemd.pc.in \
3026 src/libsystemd/sd-bus/DIFFERENCES \
3027 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3030 src/libsystemd/libsystemd.sym
3033 src/libsystemd/libsystemd.sym
3035 libsystemd_la_SOURCES = \
3036 $(libsystemd_internal_la_SOURCES) \
3037 $(libsystemd_resolve_la_SOURCES) \
3038 $(libsystemd_journal_internal_la_SOURCES)
3040 nodist_libsystemd_la_SOURCES = \
3041 $(nodist_libsystemd_internal_la_SOURCES)
3043 libsystemd_la_CFLAGS = \
3044 $(libsystemd_internal_la_CFLAGS) \
3045 $(libsystemd_resolve_la_CFLAGS) \
3046 $(libsystemd_journal_internal_la_CFLAGS)
3048 libsystemd_la_LDFLAGS = \
3050 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3051 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
3053 libsystemd_la_LIBADD = \
3054 libsystemd-shared.la \
3055 $(libsystemd_internal_la_LIBADD) \
3056 $(libsystemd_journal_internal_la_LIBADD) \
3057 $(libsystemd_resolve_la_LIBADD)
3059 libsystemd-install-hook:
3060 libname=libsystemd.so && $(move-to-rootlibdir)
3062 libsystemd-uninstall-hook:
3063 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3065 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3066 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3068 pkgconfiglib_DATA += \
3069 src/libsystemd/libsystemd.pc
3071 pkginclude_HEADERS += \
3072 src/systemd/sd-login.h \
3073 src/systemd/sd-id128.h \
3074 src/systemd/sd-daemon.h
3077 pkginclude_HEADERS += \
3078 src/systemd/sd-bus.h \
3079 src/systemd/sd-bus-protocol.h \
3080 src/systemd/sd-bus-vtable.h \
3081 src/systemd/sd-utf8.h \
3082 src/systemd/sd-event.h \
3083 src/systemd/sd-rtnl.h \
3084 src/systemd/sd-resolve.h \
3085 src/systemd/sd-path.h
3088 lib_LTLIBRARIES += \
3093 test-bus-signature \
3099 test-bus-kernel-bloom \
3100 test-bus-kernel-benchmark \
3101 test-bus-zero-copy \
3102 test-bus-introspect \
3109 test-local-addresses \
3115 test_bus_marshal_SOURCES = \
3116 src/libsystemd/sd-bus/test-bus-marshal.c
3118 test_bus_marshal_LDADD = \
3119 libsystemd-dump.la \
3120 libsystemd-internal.la \
3121 libsystemd-shared.la \
3125 test_bus_marshal_CFLAGS = \
3130 test_bus_signature_SOURCES = \
3131 src/libsystemd/sd-bus/test-bus-signature.c
3133 test_bus_signature_LDADD = \
3134 libsystemd-internal.la \
3135 libsystemd-shared.la
3137 test_bus_chat_SOURCES = \
3138 src/libsystemd/sd-bus/test-bus-chat.c
3140 test_bus_chat_CFLAGS = \
3144 test_bus_chat_LDADD = \
3145 libsystemd-internal.la \
3146 libsystemd-shared.la
3148 test_bus_cleanup_SOURCES = \
3149 src/libsystemd/sd-bus/test-bus-cleanup.c
3151 test_bus_cleanup_CFLAGS = \
3155 test_bus_cleanup_LDADD = \
3156 libsystemd-internal.la \
3157 libsystemd-shared.la
3159 test_bus_server_SOURCES = \
3160 src/libsystemd/sd-bus/test-bus-server.c
3162 test_bus_server_CFLAGS = \
3166 test_bus_server_LDADD = \
3167 libsystemd-internal.la \
3168 libsystemd-shared.la
3170 test_bus_objects_SOURCES = \
3171 src/libsystemd/sd-bus/test-bus-objects.c
3173 test_bus_objects_CFLAGS = \
3177 test_bus_objects_LDADD = \
3178 libsystemd-dump.la \
3179 libsystemd-internal.la \
3180 libsystemd-shared.la
3182 test_bus_error_SOURCES = \
3183 src/libsystemd/sd-bus/test-bus-error.c
3185 test_bus_error_LDADD = \
3186 libsystemd-internal.la \
3187 libsystemd-shared.la
3189 test_bus_gvariant_SOURCES = \
3190 src/libsystemd/sd-bus/test-bus-gvariant.c
3192 test_bus_gvariant_LDADD = \
3193 libsystemd-dump.la \
3194 libsystemd-internal.la \
3195 libsystemd-shared.la \
3198 test_bus_gvariant_CFLAGS = \
3202 test_bus_creds_SOURCES = \
3203 src/libsystemd/sd-bus/test-bus-creds.c
3205 test_bus_creds_LDADD = \
3206 libsystemd-dump.la \
3207 libsystemd-internal.la \
3208 libsystemd-shared.la
3210 test_bus_match_SOURCES = \
3211 src/libsystemd/sd-bus/test-bus-match.c
3213 test_bus_match_LDADD = \
3214 libsystemd-internal.la \
3215 libsystemd-shared.la
3217 test_bus_kernel_SOURCES = \
3218 src/libsystemd/sd-bus/test-bus-kernel.c
3220 test_bus_kernel_LDADD = \
3221 libsystemd-dump.la \
3222 libsystemd-internal.la \
3223 libsystemd-shared.la
3225 test_bus_kernel_bloom_SOURCES = \
3226 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3228 test_bus_kernel_bloom_LDADD = \
3229 libsystemd-internal.la \
3230 libsystemd-shared.la
3232 test_bus_kernel_benchmark_SOURCES = \
3233 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3235 test_bus_kernel_benchmark_LDADD = \
3236 libsystemd-internal.la \
3237 libsystemd-shared.la
3239 test_bus_zero_copy_SOURCES = \
3240 src/libsystemd/sd-bus/test-bus-zero-copy.c
3242 test_bus_zero_copy_LDADD = \
3243 libsystemd-dump.la \
3244 libsystemd-internal.la \
3245 libsystemd-shared.la
3247 test_bus_introspect_SOURCES = \
3248 src/libsystemd/sd-bus/test-bus-introspect.c
3250 test_bus_introspect_LDADD = \
3251 libsystemd-internal.la \
3252 libsystemd-shared.la
3254 test_event_SOURCES = \
3255 src/libsystemd/sd-event/test-event.c
3257 test_event_LDADD = \
3258 libsystemd-internal.la \
3259 libsystemd-shared.la
3261 test_rtnl_SOURCES = \
3262 src/libsystemd/sd-rtnl/test-rtnl.c
3265 libsystemd-internal.la \
3266 libsystemd-shared.la
3268 test_local_addresses_SOURCES = \
3269 src/libsystemd/sd-rtnl/test-local-addresses.c
3271 test_local_addresses_LDADD = \
3272 libsystemd-internal.la \
3273 libsystemd-shared.la
3275 test_resolve_SOURCES = \
3276 src/libsystemd/sd-resolve/test-resolve.c
3278 test_resolve_LDADD = \
3279 libsystemd-resolve.la \
3280 libsystemd-internal.la \
3281 libsystemd-shared.la
3283 test_resolve_CFLAGS = \
3288 src/libsystemd/sd-bus/busctl.c \
3289 src/libsystemd/sd-bus/busctl-introspect.c \
3290 src/libsystemd/sd-bus/busctl-introspect.h
3293 libsystemd-dump.la \
3294 libsystemd-internal.la \
3295 libsystemd-shared.la
3297 # ------------------------------------------------------------------------------
3298 noinst_LTLIBRARIES += \
3299 libsystemd-network.la
3301 libsystemd_network_la_CFLAGS = \
3305 libsystemd_network_la_SOURCES = \
3306 src/systemd/sd-dhcp-client.h \
3307 src/systemd/sd-dhcp-server.h \
3308 src/systemd/sd-dhcp-lease.h \
3309 src/systemd/sd-ipv4ll.h \
3310 src/systemd/sd-icmp6-nd.h \
3311 src/systemd/sd-dhcp6-client.h \
3312 src/systemd/sd-dhcp6-lease.h \
3313 src/systemd/sd-pppoe.h \
3314 src/systemd/sd-lldp.h \
3315 src/libsystemd-network/sd-dhcp-client.c \
3316 src/libsystemd-network/sd-dhcp-server.c \
3317 src/libsystemd-network/dhcp-network.c \
3318 src/libsystemd-network/dhcp-option.c \
3319 src/libsystemd-network/dhcp-packet.c \
3320 src/libsystemd-network/dhcp-internal.h \
3321 src/libsystemd-network/dhcp-server-internal.h \
3322 src/libsystemd-network/dhcp-protocol.h \
3323 src/libsystemd-network/dhcp-lease-internal.h \
3324 src/libsystemd-network/sd-dhcp-lease.c \
3325 src/libsystemd-network/sd-ipv4ll.c \
3326 src/libsystemd-network/ipv4ll-network.c \
3327 src/libsystemd-network/ipv4ll-packet.c \
3328 src/libsystemd-network/ipv4ll-internal.h \
3329 src/libsystemd-network/sd-pppoe.c \
3330 src/libsystemd-network/network-internal.c \
3331 src/libsystemd-network/network-internal.h \
3332 src/libsystemd-network/sd-icmp6-nd.c \
3333 src/libsystemd-network/sd-dhcp6-client.c \
3334 src/libsystemd-network/dhcp6-internal.h \
3335 src/libsystemd-network/dhcp6-protocol.h \
3336 src/libsystemd-network/dhcp6-network.c \
3337 src/libsystemd-network/dhcp6-option.c \
3338 src/libsystemd-network/dhcp6-lease-internal.h \
3339 src/libsystemd-network/sd-dhcp6-lease.c \
3340 src/libsystemd-network/dhcp-identifier.h \
3341 src/libsystemd-network/dhcp-identifier.c \
3342 src/libsystemd-network/lldp.h \
3343 src/libsystemd-network/lldp-tlv.h \
3344 src/libsystemd-network/lldp-tlv.c \
3345 src/libsystemd-network/lldp-network.h \
3346 src/libsystemd-network/lldp-network.c \
3347 src/libsystemd-network/lldp-port.h \
3348 src/libsystemd-network/lldp-port.c \
3349 src/libsystemd-network/lldp-internal.h \
3350 src/libsystemd-network/lldp-internal.c \
3351 src/libsystemd-network/lldp-util.h \
3352 src/libsystemd-network/sd-lldp.c
3354 libsystemd_network_la_LIBADD = \
3355 libudev-internal.la \
3356 libsystemd-label.la \
3357 libsystemd-internal.la \
3358 libsystemd-shared.la \
3361 test_dhcp_option_SOURCES = \
3362 src/libsystemd-network/dhcp-protocol.h \
3363 src/libsystemd-network/dhcp-internal.h \
3364 src/libsystemd-network/test-dhcp-option.c
3366 test_dhcp_option_LDADD = \
3367 libsystemd-network.la \
3368 libsystemd-internal.la \
3369 libsystemd-shared.la
3371 test_dhcp_client_SOURCES = \
3372 src/systemd/sd-dhcp-client.h \
3373 src/libsystemd-network/dhcp-protocol.h \
3374 src/libsystemd-network/dhcp-internal.h \
3375 src/libsystemd-network/test-dhcp-client.c
3377 test_dhcp_client_LDADD = \
3378 libsystemd-network.la \
3379 libsystemd-label.la \
3380 libsystemd-internal.la \
3381 libsystemd-shared.la
3383 test_dhcp_server_SOURCES = \
3384 src/libsystemd-network/test-dhcp-server.c
3386 test_dhcp_server_LDADD = \
3387 libsystemd-network.la \
3388 libsystemd-internal.la \
3389 libsystemd-shared.la
3391 test_ipv4ll_SOURCES = \
3392 src/systemd/sd-ipv4ll.h \
3393 src/libsystemd-network/ipv4ll-internal.h \
3394 src/libsystemd-network/test-ipv4ll.c
3396 test_ipv4ll_LDADD = \
3397 libsystemd-network.la \
3398 libsystemd-label.la \
3399 libsystemd-internal.la \
3400 libsystemd-shared.la
3402 test_pppoe_SOURCES = \
3403 src/systemd/sd-pppoe.h \
3404 src/libsystemd-network/test-pppoe.c
3406 test_pppoe_LDADD = \
3407 libsystemd-network.la \
3408 libsystemd-shared.la
3410 test_icmp6_rs_SOURCES = \
3411 src/systemd/sd-dhcp6-client.h \
3412 src/systemd/sd-icmp6-nd.h \
3413 src/libsystemd-network/dhcp6-internal.h \
3414 src/libsystemd-network/test-icmp6-rs.c \
3415 src/libsystemd-network/dhcp-identifier.h \
3416 src/libsystemd-network/dhcp-identifier.c
3418 test_icmp6_rs_LDADD = \
3419 libsystemd-network.la \
3420 libsystemd-internal.la \
3421 libsystemd-shared.la
3423 test_dhcp6_client_SOURCES = \
3424 src/systemd/sd-dhcp6-client.h \
3425 src/libsystemd-network/dhcp6-internal.h \
3426 src/libsystemd-network/test-dhcp6-client.c \
3427 src/libsystemd-network/dhcp-identifier.h \
3428 src/libsystemd-network/dhcp-identifier.c
3430 test_dhcp6_client_LDADD = \
3431 libsystemd-network.la \
3432 libsystemd-internal.la \
3433 libsystemd-shared.la
3435 test_lldp_SOURCES = \
3436 src/libsystemd-network/lldp.h \
3437 src/libsystemd-network/lldp-tlv.h \
3438 src/libsystemd-network/lldp-tlv.c \
3439 src/libsystemd-network/test-lldp.c
3442 libsystemd-network.la \
3443 libsystemd-internal.la \
3444 libsystemd-shared.la
3458 # ------------------------------------------------------------------------------
3460 noinst_LTLIBRARIES += \
3461 libsystemd-terminal.la
3463 rootlibexec_PROGRAMS += \
3466 noinst_PROGRAMS += \
3471 dist_pkgdata_DATA += \
3472 src/libsystemd-terminal/unifont-glyph-array.bin
3474 nodist_userunit_DATA += \
3475 units/user/systemd-consoled.service
3477 USER_DEFAULT_TARGET_WANTS += \
3478 systemd-consoled.service
3487 units/user/systemd-consoled.service.in
3489 libsystemd_terminal_la_CFLAGS = \
3493 libsystemd_terminal_la_SOURCES = \
3494 src/libsystemd-terminal/grdev.h \
3495 src/libsystemd-terminal/grdev-internal.h \
3496 src/libsystemd-terminal/grdev.c \
3497 src/libsystemd-terminal/grdev-drm.c \
3498 src/libsystemd-terminal/idev.h \
3499 src/libsystemd-terminal/idev-internal.h \
3500 src/libsystemd-terminal/idev.c \
3501 src/libsystemd-terminal/idev-evdev.c \
3502 src/libsystemd-terminal/idev-keyboard.c \
3503 src/libsystemd-terminal/sysview.h \
3504 src/libsystemd-terminal/sysview-internal.h \
3505 src/libsystemd-terminal/sysview.c \
3506 src/libsystemd-terminal/term.h \
3507 src/libsystemd-terminal/term-internal.h \
3508 src/libsystemd-terminal/term-charset.c \
3509 src/libsystemd-terminal/term-page.c \
3510 src/libsystemd-terminal/term-parser.c \
3511 src/libsystemd-terminal/term-screen.c \
3512 src/libsystemd-terminal/term-wcwidth.c \
3513 src/libsystemd-terminal/unifont.h \
3514 src/libsystemd-terminal/unifont-def.h \
3515 src/libsystemd-terminal/unifont.c
3517 libsystemd_terminal_la_LIBADD = \
3518 libudev-internal.la \
3519 libsystemd-internal.la \
3520 libsystemd-shared.la \
3523 systemd_consoled_CFLAGS = \
3527 systemd_consoled_SOURCES = \
3528 src/console/consoled.h \
3529 src/console/consoled.c \
3530 src/console/consoled-display.c \
3531 src/console/consoled-manager.c \
3532 src/console/consoled-session.c \
3533 src/console/consoled-terminal.c \
3534 src/console/consoled-workspace.c
3536 systemd_consoled_LDADD = \
3537 libsystemd-terminal.la \
3538 libsystemd-internal.la \
3539 libsystemd-shared.la \
3542 systemd_evcat_CFLAGS = \
3546 systemd_evcat_SOURCES = \
3547 src/libsystemd-terminal/evcat.c
3549 systemd_evcat_LDADD = \
3550 libsystemd-terminal.la \
3551 libsystemd-internal.la \
3552 libsystemd-shared.la \
3555 systemd_modeset_CFLAGS = \
3559 systemd_modeset_SOURCES = \
3560 src/libsystemd-terminal/modeset.c
3562 systemd_modeset_LDADD = \
3563 libsystemd-terminal.la \
3564 libsystemd-internal.la \
3565 libsystemd-shared.la \
3568 systemd_subterm_SOURCES = \
3569 src/libsystemd-terminal/subterm.c
3571 systemd_subterm_LDADD = \
3572 libsystemd-terminal.la \
3573 libsystemd-internal.la \
3574 libsystemd-shared.la
3576 test_term_page_SOURCES = \
3577 src/libsystemd-terminal/test-term-page.c
3579 test_term_page_LDADD = \
3580 libsystemd-terminal.la \
3581 libsystemd-internal.la \
3582 libsystemd-shared.la
3584 test_term_parser_SOURCES = \
3585 src/libsystemd-terminal/test-term-parser.c
3587 test_term_parser_LDADD = \
3588 libsystemd-terminal.la \
3589 libsystemd-internal.la \
3590 libsystemd-shared.la
3592 test_unifont_SOURCES = \
3593 src/libsystemd-terminal/test-unifont.c
3595 test_unifont_LDADD = \
3596 libsystemd-terminal.la \
3597 libsystemd-internal.la \
3598 libsystemd-shared.la
3600 src/libsystemd-terminal/unifont-glyph-array.bin: tools/compile-unifont.py $(UNIFONT)
3601 $(AM_V_GEN)$(PYTHON) $< <$(UNIFONT) >$@
3603 # ------------------------------------------------------------------------------
3613 include_HEADERS += \
3614 src/libudev/libudev.h
3616 lib_LTLIBRARIES += \
3619 libudev_la_SOURCES =\
3620 src/libudev/libudev.sym \
3621 src/libudev/libudev-private.h \
3622 src/libudev/libudev.c \
3623 src/libudev/libudev-list.c \
3624 src/libudev/libudev-util.c \
3625 src/libudev/libudev-device.c \
3626 src/libudev/libudev-enumerate.c \
3627 src/libudev/libudev-monitor.c \
3628 src/libudev/libudev-queue.c \
3629 src/libudev/libudev-hwdb.c
3631 libudev_la_CFLAGS = \
3635 libudev_la_LDFLAGS = \
3637 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3638 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3640 libudev_la_LIBADD = \
3641 libsystemd-internal.la \
3642 libsystemd-shared.la
3644 pkgconfiglib_DATA += \
3645 src/libudev/libudev.pc
3648 src/libudev/libudev.pc.in
3651 src/libudev/libudev.pc \
3656 $(AM_V_at)$(MKDIR_P) $(dir $@)
3657 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3660 $(AM_V_at)$(MKDIR_P) $(dir $@)
3661 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3663 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3664 libudev-install-hook:
3665 libname=libudev.so && $(move-to-rootlibdir)
3667 libudev-uninstall-hook:
3668 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3670 INSTALL_EXEC_HOOKS += libudev-install-hook
3671 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3673 # ------------------------------------------------------------------------------
3674 noinst_LTLIBRARIES += \
3677 libudev_internal_la_SOURCES =\
3678 $(libudev_la_SOURCES) \
3679 src/libudev/libudev-device-private.c
3681 libudev_internal_la_CFLAGS = \
3683 -fvisibility=default
3685 # ------------------------------------------------------------------------------
3687 $(sysconfdir)/udev/rules.d
3689 dist_network_DATA = \
3690 network/99-default.link \
3691 network/80-container-host0.network \
3692 network/80-container-ve.network
3694 dist_udevrules_DATA += \
3695 rules/42-usb-hid-pm.rules \
3696 rules/50-udev-default.rules \
3697 rules/60-drm.rules \
3698 rules/60-keyboard.rules \
3699 rules/60-persistent-storage-tape.rules \
3700 rules/60-persistent-serial.rules \
3701 rules/60-persistent-input.rules \
3702 rules/60-persistent-alsa.rules \
3703 rules/60-persistent-storage.rules \
3704 rules/64-btrfs.rules \
3705 rules/70-mouse.rules \
3706 rules/70-touchpad.rules \
3707 rules/75-net-description.rules \
3708 rules/75-tty-description.rules \
3709 rules/78-sound-card.rules \
3710 rules/80-net-setup-link.rules \
3711 rules/95-udev-late.rules
3713 nodist_udevrules_DATA += \
3714 rules/99-systemd.rules
3716 udevconfdir = $(sysconfdir)/udev
3717 dist_udevconf_DATA = \
3720 sharepkgconfigdir = $(datadir)/pkgconfig
3721 sharepkgconfig_DATA = \
3725 rules/99-systemd.rules.in \
3729 rules/99-systemd.rules \
3733 units/systemd-udevd.service.in \
3734 units/systemd-udev-trigger.service.in \
3735 units/systemd-udev-settle.service.in
3738 units/systemd-udevd.service \
3739 units/systemd-udev-trigger.service \
3740 units/systemd-udev-settle.service
3742 SOCKETS_TARGET_WANTS += \
3743 systemd-udevd-control.socket \
3744 systemd-udevd-kernel.socket
3746 SYSINIT_TARGET_WANTS += \
3747 systemd-udevd.service \
3748 systemd-udev-trigger.service
3750 rootbin_PROGRAMS += \
3753 rootlibexec_PROGRAMS += \
3756 noinst_LTLIBRARIES += \
3759 src/udev/keyboard-keys.txt:
3760 $(AM_V_at)$(MKDIR_P) $(dir $@)
3761 $(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/' > $@
3763 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3764 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3766 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3767 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3769 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3770 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3772 libudev_core_la_SOURCES = \
3774 src/udev/udev-event.c \
3775 src/udev/udev-watch.c \
3776 src/udev/udev-node.c \
3777 src/udev/udev-rules.c \
3778 src/udev/udev-ctrl.c \
3779 src/udev/udev-builtin.c \
3780 src/udev/udev-builtin-btrfs.c \
3781 src/udev/udev-builtin-hwdb.c \
3782 src/udev/udev-builtin-input_id.c \
3783 src/udev/udev-builtin-keyboard.c \
3784 src/udev/udev-builtin-net_id.c \
3785 src/udev/udev-builtin-net_setup_link.c \
3786 src/udev/udev-builtin-path_id.c \
3787 src/udev/udev-builtin-usb_id.c \
3788 src/udev/net/link-config.h \
3789 src/udev/net/link-config.c \
3790 src/udev/net/ethtool-util.h \
3791 src/udev/net/ethtool-util.c
3793 nodist_libudev_core_la_SOURCES = \
3794 src/udev/keyboard-keys-from-name.h \
3795 src/udev/keyboard-keys-to-name.h \
3796 src/udev/net/link-config-gperf.c
3799 $(nodist_libudev_core_la_SOURCES)
3802 src/udev/keyboard-keys-from-name.gperf \
3803 src/udev/keyboard-keys.txt \
3804 src/udev/net/link-config-gperf.c
3807 src/udev/net/link-config-gperf.gperf
3809 libudev_core_la_CFLAGS = \
3814 libudev_core_la_LIBADD = \
3815 libudev-internal.la \
3816 libsystemd-label.la \
3817 libsystemd-internal.la \
3818 libsystemd-network.la \
3819 libsystemd-shared.la \
3824 libudev_core_la_SOURCES += \
3825 src/udev/udev-builtin-kmod.c
3827 dist_udevrules_DATA += \
3828 rules/80-drivers.rules
3832 libudev_core_la_SOURCES += \
3833 src/udev/udev-builtin-blkid.c
3837 libudev_core_la_SOURCES += \
3838 src/udev/udev-builtin-uaccess.c \
3839 src/login/logind-acl.c \
3840 src/libsystemd/sd-login/sd-login.c \
3841 src/systemd/sd-login.h
3843 libudev_core_la_LIBADD += \
3847 systemd_udevd_SOURCES = \
3850 systemd_udevd_LDADD = \
3854 src/udev/udevadm.c \
3855 src/udev/udevadm-info.c \
3856 src/udev/udevadm-control.c \
3857 src/udev/udevadm-monitor.c \
3858 src/udev/udevadm-hwdb.c \
3859 src/udev/udevadm-settle.c \
3860 src/udev/udevadm-trigger.c \
3861 src/udev/udevadm-test.c \
3862 src/udev/udevadm-test-builtin.c \
3863 src/udev/udevadm-util.c \
3864 src/udev/udevadm-util.h
3869 # ------------------------------------------------------------------------------
3872 $(sysconfdir)/udev/hwdb.d
3874 systemd_hwdb_SOURCES = \
3875 src/libsystemd/sd-hwdb/hwdb-internal.h \
3878 systemd_hwdb_LDADD = \
3879 libsystemd-shared.la \
3880 libsystemd-internal.la \
3883 rootbin_PROGRAMS += \
3886 dist_udevhwdb_DATA = \
3887 hwdb/20-pci-vendor-model.hwdb \
3888 hwdb/20-pci-classes.hwdb \
3889 hwdb/20-usb-vendor-model.hwdb \
3890 hwdb/20-usb-classes.hwdb \
3891 hwdb/20-sdio-vendor-model.hwdb \
3892 hwdb/20-sdio-classes.hwdb \
3893 hwdb/20-bluetooth-vendor-product.hwdb \
3894 hwdb/20-acpi-vendor.hwdb \
3896 hwdb/20-net-ifname.hwdb \
3897 hwdb/60-keyboard.hwdb \
3898 hwdb/70-mouse.hwdb \
3899 hwdb/70-touchpad.hwdb
3902 units/systemd-hwdb-update.service.in
3905 units/systemd-hwdb-update.service
3907 SYSINIT_TARGET_WANTS += \
3908 systemd-hwdb-update.service
3910 # Update hwdb on installation. Do not bother if installing
3911 # in DESTDIR, since this is likely for packaging purposes.
3913 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3915 INSTALL_DATA_HOOKS += \
3919 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3922 # ------------------------------------------------------------------------------
3929 test/rule-syntax-check.py \
3930 test/sysv-generator-test.py \
3938 test_libudev_SOURCES = \
3939 src/test/test-libudev.c
3941 test_libudev_LDADD = \
3942 libsystemd-label.la \
3943 libudev-internal.la \
3944 libsystemd-shared.la \
3945 libsystemd-internal.la
3947 test_udev_SOURCES = \
3948 src/test/test-udev.c
3957 test_udev_LDADD += \
3964 # packed sysfs test tree
3966 $(AM_V_at)$(MKDIR_P) $(dir $@)
3967 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3971 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3976 test/rule-syntax-check.py \
3977 test/sysv-generator-test.py \
3981 # ------------------------------------------------------------------------------
3983 src/udev/ata_id/ata_id.c
3986 libudev-internal.la \
3987 libsystemd-shared.la
3989 udevlibexec_PROGRAMS += \
3992 # ------------------------------------------------------------------------------
3993 cdrom_id_SOURCES = \
3994 src/udev/cdrom_id/cdrom_id.c
3997 libudev-internal.la \
3998 libsystemd-shared.la
4000 udevlibexec_PROGRAMS += \
4003 dist_udevrules_DATA += \
4004 rules/60-cdrom_id.rules
4006 # ------------------------------------------------------------------------------
4008 src/udev/collect/collect.c
4011 libudev-internal.la \
4012 libsystemd-shared.la
4014 udevlibexec_PROGRAMS += \
4017 # ------------------------------------------------------------------------------
4019 src/udev/scsi_id/scsi_id.c \
4020 src/udev/scsi_id/scsi_serial.c \
4021 src/udev/scsi_id/scsi.h \
4022 src/udev/scsi_id/scsi_id.h
4025 libudev-internal.la \
4026 libsystemd-shared.la
4028 udevlibexec_PROGRAMS += \
4032 src/udev/scsi_id/README
4034 # ------------------------------------------------------------------------------
4036 src/udev/v4l_id/v4l_id.c
4039 libudev-internal.la \
4040 libsystemd-shared.la
4042 udevlibexec_PROGRAMS += \
4045 dist_udevrules_DATA += \
4046 rules/60-persistent-v4l.rules
4048 # ------------------------------------------------------------------------------
4049 accelerometer_SOURCES = \
4050 src/udev/accelerometer/accelerometer.c
4052 accelerometer_LDADD = \
4053 libudev-internal.la \
4054 libsystemd-shared.la
4056 udevlibexec_PROGRAMS += \
4059 dist_udevrules_DATA += \
4060 rules/61-accelerometer.rules
4062 # ------------------------------------------------------------------------------
4069 libgudev_includedir = \
4070 $(includedir)/gudev-1.0/gudev
4072 libgudev_include_HEADERS = \
4074 src/gudev/gudevenums.h \
4075 src/gudev/gudevenumtypes.h \
4076 src/gudev/gudevtypes.h \
4077 src/gudev/gudevclient.h \
4078 src/gudev/gudevdevice.h \
4079 src/gudev/gudevenumerator.h
4081 lib_LTLIBRARIES += libgudev-1.0.la
4083 pkgconfiglib_DATA += \
4084 src/gudev/gudev-1.0.pc
4087 src/gudev/gudev-1.0.pc
4089 libgudev_1_0_la_SOURCES = \
4090 src/gudev/libgudev-1.0.sym \
4091 src/gudev/gudevenums.h \
4092 src/gudev/gudevenumtypes.h \
4093 src/gudev/gudevenumtypes.h\
4094 src/gudev/gudevtypes.h \
4095 src/gudev/gudevclient.h \
4096 src/gudev/gudevclient.c \
4097 src/gudev/gudevdevice.h \
4098 src/gudev/gudevdevice.c \
4099 src/gudev/gudevenumerator.h \
4100 src/gudev/gudevenumerator.c \
4101 src/gudev/gudevprivate.h
4103 nodist_libgudev_1_0_la_SOURCES = \
4104 src/gudev/gudevmarshal.h \
4105 src/gudev/gudevmarshal.c \
4106 src/gudev/gudevenumtypes.h \
4107 src/gudev/gudevenumtypes.c
4110 $(nodist_libgudev_1_0_la_SOURCES)
4112 libgudev_1_0_la_CPPFLAGS = \
4114 -I$(top_builddir)/src\
4115 -I$(top_srcdir)/src\
4116 -I$(top_builddir)/src/gudev \
4117 -I$(top_srcdir)/src/gudev \
4118 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
4119 -D_GUDEV_COMPILATION \
4120 -DG_LOG_DOMAIN=\"GUdev\"
4122 libgudev_1_0_la_CFLAGS = \
4124 -fvisibility=default \
4127 libgudev_1_0_la_LIBADD = \
4131 libgudev_1_0_la_LDFLAGS = \
4133 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
4136 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
4138 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
4139 $(AM_V_at)$(MKDIR_P) $(dir $@)
4140 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
4142 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
4143 $(AM_V_at)$(MKDIR_P) $(dir $@)
4144 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
4145 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
4147 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
4148 $(AM_V_at)$(MKDIR_P) $(dir $@)
4149 $(AM_V_GEN)glib-mkenums --template $^ > $@
4151 if HAVE_INTROSPECTION
4152 -include $(INTROSPECTION_MAKEFILE)
4154 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
4156 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
4158 src_gudev_GUdev_1_0_gir_CFLAGS = \
4161 -D_GUDEV_COMPILATION \
4162 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
4163 -I$(top_srcdir)/src \
4164 -I$(top_builddir)/src \
4165 -I$(top_srcdir)/src/gudev \
4166 -I$(top_builddir)/src/gudev
4168 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
4170 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
4171 --pkg-export=gudev-1.0 \
4174 src_gudev_GUdev_1_0_gir_FILES = \
4176 src/gudev/gudevtypes.h \
4177 src/gudev/gudevenums.h \
4178 src/gudev/gudevenumtypes.h \
4179 src/gudev/gudevclient.h \
4180 src/gudev/gudevdevice.h \
4181 src/gudev/gudevenumerator.h \
4182 src/gudev/gudevclient.c \
4183 src/gudev/gudevdevice.c \
4184 src/gudev/gudevenumerator.c
4186 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
4187 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
4189 girdir = $(datadir)/gir-1.0
4191 src/gudev/GUdev-1.0.gir
4193 typelibsdir = $(libdir)/girepository-1.0
4195 src/gudev/GUdev-1.0.typelib
4197 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
4198 endif # HAVE_INTROSPECTION
4202 src/gudev/gudev-1.0.pc.in \
4203 src/gudev/gudevmarshal.list \
4204 src/gudev/gudevenumtypes.h.template \
4205 src/gudev/gudevenumtypes.c.template \
4206 src/gudev/gjs-example.js \
4207 src/gudev/seed-example-enum.js \
4208 src/gudev/seed-example.js
4210 # ------------------------------------------------------------------------------
4211 mtd_probe_SOURCES = \
4212 src/udev/mtd_probe/mtd_probe.c \
4213 src/udev/mtd_probe/mtd_probe.h \
4214 src/udev/mtd_probe/probe_smartmedia.c
4216 dist_udevrules_DATA += \
4217 rules/75-probe_mtd.rules
4219 udevlibexec_PROGRAMS += \
4222 # ------------------------------------------------------------------------------
4223 test_id128_SOURCES = \
4224 src/test/test-id128.c
4226 test_id128_LDADD = \
4227 libsystemd-internal.la \
4228 libsystemd-shared.la
4233 # ------------------------------------------------------------------------------
4235 rootlibexec_PROGRAMS += \
4238 systemd_activate_SOURCES = \
4239 src/activate/activate.c
4241 systemd_activate_LDADD = \
4242 libsystemd-label.la \
4243 libsystemd-internal.la \
4244 libsystemd-shared.la
4246 # ------------------------------------------------------------------------------
4247 systemd_journald_SOURCES = \
4248 src/journal/journald.c \
4249 src/journal/journald-server.h
4251 systemd_journald_LDADD = \
4252 libsystemd-journal-core.la \
4253 libsystemd-internal.la \
4254 libsystemd-shared.la
4256 systemd_cat_SOURCES = \
4259 systemd_cat_LDADD = \
4260 libsystemd-journal-core.la
4263 rootlibexec_PROGRAMS += \
4264 systemd-journal-remote
4266 systemd_journal_remote_SOURCES = \
4267 src/journal-remote/journal-remote-parse.h \
4268 src/journal-remote/journal-remote-parse.c \
4269 src/journal-remote/journal-remote-write.h \
4270 src/journal-remote/journal-remote-write.c \
4271 src/journal-remote/journal-remote.h \
4272 src/journal-remote/journal-remote.c
4274 systemd_journal_remote_LDADD = \
4275 libsystemd-internal.la \
4276 libsystemd-journal-core.la
4278 systemd_journal_remote_SOURCES += \
4279 src/journal-remote/microhttpd-util.h \
4280 src/journal-remote/microhttpd-util.c
4282 systemd_journal_remote_CFLAGS = \
4284 $(MICROHTTPD_CFLAGS)
4286 systemd_journal_remote_LDADD += \
4290 dist_sysusers_DATA += \
4291 sysusers.d/systemd-remote.conf
4295 dist_tmpfiles_DATA += \
4296 tmpfiles.d/systemd-remote.conf
4300 systemd_journal_remote_LDADD += \
4303 # systemd-journal-remote make sense mostly with full crypto stack
4304 dist_systemunit_DATA += \
4305 units/systemd-journal-remote.socket
4307 nodist_systemunit_DATA += \
4308 units/systemd-journal-remote.service
4311 units/systemd-journal-remote.service.in
4313 journal-remote-install-hook: journal-install-hook
4314 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4315 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4316 -chmod 755 $(DESTDIR)/var/log/journal/remote
4318 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4322 nodist_pkgsysconf_DATA += \
4323 src/journal-remote/journal-remote.conf
4326 src/journal-remote/journal-remote.conf.in
4329 src/journal-remote/journal-remote.conf
4333 rootlibexec_PROGRAMS += \
4334 systemd-journal-upload
4336 systemd_journal_upload_SOURCES = \
4337 src/journal-remote/journal-upload.h \
4338 src/journal-remote/journal-upload.c \
4339 src/journal-remote/journal-upload-journal.c
4341 systemd_journal_upload_CFLAGS = \
4345 systemd_journal_upload_LDADD = \
4346 libsystemd-internal.la \
4347 libsystemd-journal-internal.la \
4348 libsystemd-shared.la \
4351 nodist_systemunit_DATA += \
4352 units/systemd-journal-upload.service
4355 units/systemd-journal-upload.service.in
4357 nodist_pkgsysconf_DATA += \
4358 src/journal-remote/journal-upload.conf
4361 src/journal-remote/journal-upload.conf.in
4364 src/journal-remote/journal-upload.conf
4367 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4368 journalctl_CFLAGS = \
4371 journalctl_SOURCES = \
4372 src/journal/journalctl.c
4374 journalctl_LDADD = \
4375 libsystemd-journal-internal.la \
4376 libsystemd-internal.la \
4377 libsystemd-logs.la \
4378 libsystemd-shared.la
4381 journalctl_LDADD += \
4386 journalctl_SOURCES += \
4387 src/journal/journal-qrcode.c \
4388 src/journal/journal-qrcode.h
4390 journalctl_CFLAGS += \
4393 journalctl_LDADD += \
4397 test_journal_SOURCES = \
4398 src/journal/test-journal.c
4400 test_journal_LDADD = \
4401 libsystemd-journal-core.la
4403 test_journal_send_SOURCES = \
4404 src/journal/test-journal-send.c
4406 test_journal_send_LDADD = \
4407 libsystemd-journal-core.la
4409 test_journal_syslog_SOURCES = \
4410 src/journal/test-journal-syslog.c
4412 test_journal_syslog_LDADD = \
4413 libsystemd-journal-core.la
4415 test_journal_match_SOURCES = \
4416 src/journal/test-journal-match.c
4418 test_journal_match_LDADD = \
4419 libsystemd-journal-core.la
4421 test_journal_enum_SOURCES = \
4422 src/journal/test-journal-enum.c
4424 test_journal_enum_LDADD = \
4425 libsystemd-journal-core.la
4427 test_journal_stream_SOURCES = \
4428 src/journal/test-journal-stream.c
4430 test_journal_stream_LDADD = \
4431 libsystemd-journal-core.la
4433 test_journal_flush_SOURCES = \
4434 src/journal/test-journal-flush.c
4436 test_journal_flush_LDADD = \
4437 libsystemd-journal-core.la
4439 test_journal_init_SOURCES = \
4440 src/journal/test-journal-init.c
4442 test_journal_init_LDADD = \
4443 libsystemd-journal-core.la
4445 test_journal_verify_SOURCES = \
4446 src/journal/test-journal-verify.c
4448 test_journal_verify_LDADD = \
4449 libsystemd-journal-core.la
4451 test_journal_interleaving_SOURCES = \
4452 src/journal/test-journal-interleaving.c
4454 test_journal_interleaving_LDADD = \
4455 libsystemd-journal-core.la
4457 test_mmap_cache_SOURCES = \
4458 src/journal/test-mmap-cache.c
4460 test_mmap_cache_LDADD = \
4461 libsystemd-journal-core.la
4463 test_catalog_SOURCES = \
4464 src/journal/test-catalog.c
4466 test_catalog_CPPFLAGS = \
4468 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4470 test_catalog_LDADD = \
4471 libsystemd-journal-core.la
4473 test_compress_SOURCES = \
4474 src/journal/test-compress.c
4476 test_compress_LDADD = \
4477 libsystemd-journal-internal.la \
4478 libsystemd-shared.la
4480 test_compress_benchmark_SOURCES = \
4481 src/journal/test-compress-benchmark.c
4483 test_compress_benchmark_LDADD = \
4484 libsystemd-journal-internal.la \
4485 libsystemd-shared.la
4487 libsystemd_journal_core_la_SOURCES = \
4488 src/journal/journald-kmsg.c \
4489 src/journal/journald-kmsg.h \
4490 src/journal/journald-syslog.c \
4491 src/journal/journald-syslog.h \
4492 src/journal/journald-stream.c \
4493 src/journal/journald-stream.h \
4494 src/journal/journald-server.c \
4495 src/journal/journald-server.h \
4496 src/journal/journald-console.c \
4497 src/journal/journald-console.h \
4498 src/journal/journald-wall.c \
4499 src/journal/journald-wall.h \
4500 src/journal/journald-native.c \
4501 src/journal/journald-native.h \
4502 src/journal/journald-audit.c \
4503 src/journal/journald-audit.h \
4504 src/journal/journald-rate-limit.c \
4505 src/journal/journald-rate-limit.h \
4506 src/journal/journal-internal.h
4508 nodist_libsystemd_journal_core_la_SOURCES = \
4509 src/journal/journald-gperf.c
4511 libsystemd_journal_core_la_LIBADD = \
4512 libsystemd-journal-internal.la \
4513 libudev-internal.la \
4514 libsystemd-label.la \
4515 libsystemd-internal.la \
4516 libsystemd-shared.la
4519 libsystemd_journal_core_la_LIBADD += \
4523 noinst_LTLIBRARIES += \
4524 libsystemd-journal-core.la
4526 journal-install-hook:
4527 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4528 -chown 0:0 $(DESTDIR)/var/log/journal
4529 -chmod 755 $(DESTDIR)/var/log/journal
4530 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4531 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4533 journal-uninstall-hook:
4534 -rmdir $(DESTDIR)/var/log/journal/remote
4535 -rmdir $(DESTDIR)/var/log/journal/
4537 INSTALL_EXEC_HOOKS += journal-install-hook
4538 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4540 # ------------------------------------------------------------------------------
4541 # Update catalog on installation. Do not bother if installing
4542 # in DESTDIR, since this is likely for packaging purposes.
4543 catalog-update-hook:
4544 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4546 INSTALL_DATA_HOOKS += \
4549 catalog-remove-hook:
4550 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4552 UNINSTALL_DATA_HOOKS += \
4561 test-journal-syslog \
4562 test-journal-match \
4563 test-journal-stream \
4565 test-journal-verify \
4566 test-journal-interleaving \
4567 test-journal-flush \
4574 test-compress-benchmark
4577 pkginclude_HEADERS += \
4578 src/systemd/sd-journal.h \
4579 src/systemd/sd-messages.h \
4580 src/systemd/_sd-common.h
4582 libsystemd_journal_internal_la_SOURCES = \
4583 src/journal/sd-journal.c \
4584 src/systemd/sd-journal.h \
4585 src/systemd/_sd-common.h \
4586 src/journal/journal-file.c \
4587 src/journal/journal-file.h \
4588 src/journal/journal-vacuum.c \
4589 src/journal/journal-vacuum.h \
4590 src/journal/journal-verify.c \
4591 src/journal/journal-verify.h \
4592 src/journal/lookup3.c \
4593 src/journal/lookup3.h \
4594 src/journal/journal-send.c \
4595 src/journal/journal-def.h \
4596 src/journal/compress.h \
4597 src/journal/catalog.c \
4598 src/journal/catalog.h \
4599 src/journal/mmap-cache.c \
4600 src/journal/mmap-cache.h \
4601 src/journal/compress.c
4603 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4604 libsystemd_journal_internal_la_CFLAGS = \
4607 libsystemd_journal_internal_la_LIBADD = \
4611 libsystemd_journal_internal_la_CFLAGS += \
4614 libsystemd_journal_internal_la_LIBADD += \
4619 libsystemd_journal_internal_la_LIBADD += \
4624 libsystemd_journal_internal_la_SOURCES += \
4625 src/journal/journal-authenticate.c \
4626 src/journal/journal-authenticate.h \
4627 src/journal/fsprg.c \
4630 libsystemd_journal_internal_la_LIBADD += \
4633 # fsprg.c is a drop-in file using void pointer arithmetic
4634 libsystemd_journal_internal_la_CFLAGS += \
4639 noinst_LTLIBRARIES += \
4640 libsystemd-journal-internal.la
4642 rootlibexec_PROGRAMS += \
4645 rootbin_PROGRAMS += \
4651 dist_systemunit_DATA += \
4652 units/systemd-journald.socket \
4653 units/systemd-journald-dev-log.socket \
4654 units/systemd-journald-audit.socket
4656 nodist_systemunit_DATA += \
4657 units/systemd-journald.service \
4658 units/systemd-journal-flush.service \
4659 units/systemd-journal-catalog-update.service
4661 dist_pkgsysconf_DATA += \
4662 src/journal/journald.conf
4664 dist_catalog_DATA = \
4665 catalog/systemd.fr.catalog \
4666 catalog/systemd.it.catalog \
4667 catalog/systemd.pl.catalog \
4668 catalog/systemd.pt_BR.catalog \
4669 catalog/systemd.ru.catalog \
4670 catalog/systemd.catalog
4672 SOCKETS_TARGET_WANTS += \
4673 systemd-journald.socket \
4674 systemd-journald-dev-log.socket \
4675 systemd-journald-audit.socket
4677 SYSINIT_TARGET_WANTS += \
4678 systemd-journald.service \
4679 systemd-journal-flush.service \
4680 systemd-journal-catalog-update.service
4683 units/systemd-journald.service.in \
4684 units/systemd-journal-flush.service.in \
4685 units/systemd-journal-catalog-update.service.in \
4686 src/journal/journald-gperf.gperf
4689 src/journal/journald-gperf.c
4691 # ------------------------------------------------------------------------------
4693 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4695 rootlibexec_PROGRAMS += \
4696 systemd-journal-gatewayd
4698 systemd_journal_gatewayd_SOURCES = \
4699 src/journal-remote/journal-gatewayd.c \
4700 src/journal-remote/microhttpd-util.h \
4701 src/journal-remote/microhttpd-util.c
4703 systemd_journal_gatewayd_LDADD = \
4704 libsystemd-logs.la \
4705 libsystemd-journal-internal.la \
4706 libsystemd-internal.la \
4707 libsystemd-shared.la \
4711 systemd_journal_gatewayd_LDADD += \
4715 systemd_journal_gatewayd_CFLAGS = \
4717 $(MICROHTTPD_CFLAGS)
4719 systemd_journal_gatewayd_CPPFLAGS = \
4721 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4723 dist_systemunit_DATA += \
4724 units/systemd-journal-gatewayd.socket
4726 nodist_systemunit_DATA += \
4727 units/systemd-journal-gatewayd.service
4729 dist_gatewayddocumentroot_DATA = \
4730 src/journal-remote/browse.html
4735 units/systemd-journal-gatewayd.service.in
4737 # ------------------------------------------------------------------------------
4739 systemd_socket_proxyd_SOURCES = \
4740 src/socket-proxy/socket-proxyd.c
4742 systemd_socket_proxyd_LDADD = \
4743 libsystemd-logs.la \
4744 libsystemd-internal.la \
4745 libsystemd-journal-internal.la \
4746 libsystemd-shared.la \
4747 libsystemd-resolve.la
4749 # ------------------------------------------------------------------------------
4751 systemd_coredump_SOURCES = \
4752 src/journal/coredump.c \
4753 src/journal/coredump-vacuum.c \
4754 src/journal/coredump-vacuum.h
4756 systemd_coredump_LDADD = \
4757 libsystemd-journal-internal.la \
4758 libsystemd-label.la \
4759 libsystemd-internal.la \
4760 libsystemd-shared.la
4763 systemd_coredump_SOURCES += \
4764 src/journal/stacktrace.c \
4765 src/journal/stacktrace.h
4767 systemd_coredump_LDADD += \
4771 rootlibexec_PROGRAMS += \
4774 dist_pkgsysconf_DATA += \
4775 src/journal/coredump.conf
4778 systemd_coredump_LDADD += \
4782 coredumpctl_SOURCES = \
4783 src/journal/coredumpctl.c
4785 coredumpctl_LDADD = \
4786 libsystemd-journal-internal.la \
4787 libsystemd-internal.la \
4788 libsystemd-shared.la
4794 test-coredump-vacuum
4796 test_coredump_vacuum_SOURCES = \
4797 src/journal/test-coredump-vacuum.c \
4798 src/journal/coredump-vacuum.c \
4799 src/journal/coredump-vacuum.h
4801 test_coredump_vacuum_LDADD = \
4802 libsystemd-internal.la \
4803 libsystemd-shared.la
4805 dist_bashcompletion_DATA += \
4806 shell-completion/bash/coredumpctl
4808 dist_zshcompletion_DATA += \
4809 shell-completion/zsh/_coredumpctl
4812 sysctl.d/50-coredump.conf
4815 sysctl.d/50-coredump.conf
4819 sysctl.d/50-coredump.conf.in
4821 # ------------------------------------------------------------------------------
4823 systemd_binfmt_SOURCES = \
4826 systemd_binfmt_LDADD = \
4827 libsystemd-shared.la
4829 rootlibexec_PROGRAMS += \
4832 dist_systemunit_DATA += \
4833 units/proc-sys-fs-binfmt_misc.automount \
4834 units/proc-sys-fs-binfmt_misc.mount
4836 nodist_systemunit_DATA += \
4837 units/systemd-binfmt.service
4840 $(prefix)/lib/binfmt.d \
4841 $(sysconfdir)/binfmt.d
4843 SYSINIT_TARGET_WANTS += \
4844 systemd-binfmt.service \
4845 proc-sys-fs-binfmt_misc.automount
4850 units/systemd-binfmt.service.in
4852 # ------------------------------------------------------------------------------
4854 systemd_vconsole_setup_SOURCES = \
4855 src/vconsole/vconsole-setup.c
4857 systemd_vconsole_setup_LDADD = \
4858 libsystemd-shared.la
4860 rootlibexec_PROGRAMS += \
4861 systemd-vconsole-setup
4863 nodist_systemunit_DATA += \
4864 units/systemd-vconsole-setup.service
4866 nodist_udevrules_DATA += \
4867 src/vconsole/90-vconsole.rules
4869 SYSINIT_TARGET_WANTS += \
4870 systemd-vconsole-setup.service
4873 src/vconsole/90-vconsole.rules
4877 src/vconsole/90-vconsole.rules.in \
4878 units/systemd-vconsole-setup.service.in
4880 # ------------------------------------------------------------------------------
4882 systemd_bootchart_SOURCES = \
4883 src/bootchart/bootchart.c \
4884 src/bootchart/bootchart.h \
4885 src/bootchart/store.c \
4886 src/bootchart/store.h \
4887 src/bootchart/svg.c \
4890 systemd_bootchart_LDADD = \
4891 libsystemd-journal-internal.la \
4892 libsystemd-shared.la
4894 rootlibexec_PROGRAMS += \
4897 dist_pkgsysconf_DATA += \
4898 src/bootchart/bootchart.conf
4900 nodist_systemunit_DATA += \
4901 units/systemd-bootchart.service
4904 units/systemd-bootchart.service.in
4907 units/systemd-bootchart.service
4910 # ------------------------------------------------------------------------------
4911 if ENABLE_QUOTACHECK
4912 rootlibexec_PROGRAMS += \
4915 nodist_systemunit_DATA += \
4916 units/systemd-quotacheck.service
4918 systemd_quotacheck_SOURCES = \
4919 src/quotacheck/quotacheck.c
4921 systemd_quotacheck_LDADD = \
4922 libsystemd-shared.la
4926 units/systemd-quotacheck.service.in
4928 nodist_systemunit_DATA += \
4929 units/quotaon.service
4931 # ------------------------------------------------------------------------------
4932 if ENABLE_RANDOMSEED
4933 rootlibexec_PROGRAMS += \
4936 nodist_systemunit_DATA += \
4937 units/systemd-random-seed.service
4939 systemd_random_seed_SOURCES = \
4940 src/random-seed/random-seed.c
4942 systemd_random_seed_LDADD = \
4943 libsystemd-label.la \
4944 libsystemd-shared.la
4946 SYSINIT_TARGET_WANTS += \
4947 systemd-random-seed.service
4952 units/systemd-random-seed.service.in
4954 # ------------------------------------------------------------------------------
4956 rootlibexec_PROGRAMS += \
4959 nodist_systemunit_DATA += \
4960 units/systemd-backlight@.service
4962 systemd_backlight_SOURCES = \
4963 src/backlight/backlight.c
4965 systemd_backlight_LDADD = \
4966 libsystemd-label.la \
4967 libudev-internal.la \
4968 libsystemd-shared.la
4972 units/systemd-backlight@.service.in
4974 # ------------------------------------------------------------------------------
4976 rootlibexec_PROGRAMS += \
4979 nodist_systemunit_DATA += \
4980 units/systemd-rfkill@.service
4982 systemd_rfkill_SOURCES = \
4985 systemd_rfkill_LDADD = \
4986 libsystemd-label.la \
4987 libudev-internal.la \
4988 libsystemd-shared.la
4992 units/systemd-rfkill@.service.in
4994 # ------------------------------------------------------------------------------
4995 if HAVE_LIBCRYPTSETUP
4996 rootlibexec_PROGRAMS += \
4999 systemgenerator_PROGRAMS += \
5000 systemd-cryptsetup-generator
5002 dist_systemunit_DATA += \
5003 units/cryptsetup.target \
5004 units/cryptsetup-pre.target
5006 systemd_cryptsetup_SOURCES = \
5007 src/cryptsetup/cryptsetup.c
5009 systemd_cryptsetup_CFLAGS = \
5011 $(LIBCRYPTSETUP_CFLAGS)
5013 systemd_cryptsetup_LDADD = \
5014 libsystemd-label.la \
5015 libudev-internal.la \
5016 libsystemd-shared.la \
5017 $(LIBCRYPTSETUP_LIBS)
5019 systemd_cryptsetup_generator_SOURCES = \
5020 src/cryptsetup/cryptsetup-generator.c
5022 systemd_cryptsetup_generator_LDADD = \
5023 libsystemd-label.la \
5024 libsystemd-shared.la
5026 SYSINIT_TARGET_WANTS += \
5031 # ------------------------------------------------------------------------------
5033 systemd_hostnamed_SOURCES = \
5034 src/hostname/hostnamed.c
5036 systemd_hostnamed_LDADD = \
5037 libsystemd-label.la \
5038 libsystemd-internal.la \
5039 libsystemd-shared.la
5041 rootlibexec_PROGRAMS += \
5044 nodist_systemunit_DATA += \
5045 units/systemd-hostnamed.service
5047 dist_systemunit_DATA_busnames += \
5048 units/org.freedesktop.hostname1.busname
5050 dist_dbuspolicy_DATA += \
5051 src/hostname/org.freedesktop.hostname1.conf
5053 dist_dbussystemservice_DATA += \
5054 src/hostname/org.freedesktop.hostname1.service
5056 polkitpolicy_files += \
5057 src/hostname/org.freedesktop.hostname1.policy
5059 SYSTEM_UNIT_ALIASES += \
5060 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
5062 BUSNAMES_TARGET_WANTS += \
5063 org.freedesktop.hostname1.busname
5065 hostnamectl_SOURCES = \
5066 src/hostname/hostnamectl.c
5068 hostnamectl_LDADD = \
5069 libsystemd-internal.la \
5070 libsystemd-shared.la
5075 dist_bashcompletion_DATA += \
5076 shell-completion/bash/hostnamectl
5078 dist_zshcompletion_DATA += \
5079 shell-completion/zsh/_hostnamectl
5083 polkitpolicy_in_files += \
5084 src/hostname/org.freedesktop.hostname1.policy.in
5087 units/systemd-hostnamed.service.in
5089 # ------------------------------------------------------------------------------
5090 dist_systemunit_DATA_busnames += \
5091 units/org.freedesktop.systemd1.busname
5093 BUSNAMES_TARGET_WANTS += \
5094 org.freedesktop.systemd1.busname
5096 # ------------------------------------------------------------------------------
5098 systemd_localed_SOURCES = \
5099 src/locale/localed.c
5101 systemd_localed_LDADD = \
5102 libsystemd-label.la \
5103 libsystemd-internal.la \
5104 libsystemd-shared.la \
5107 systemd_localed_CFLAGS = \
5111 nodist_systemunit_DATA += \
5112 units/systemd-localed.service
5114 dist_systemunit_DATA_busnames += \
5115 units/org.freedesktop.locale1.busname
5117 rootlibexec_PROGRAMS += \
5120 dist_dbuspolicy_DATA += \
5121 src/locale/org.freedesktop.locale1.conf
5123 dist_dbussystemservice_DATA += \
5124 src/locale/org.freedesktop.locale1.service
5126 polkitpolicy_files += \
5127 src/locale/org.freedesktop.locale1.policy
5129 SYSTEM_UNIT_ALIASES += \
5130 systemd-localed.service dbus-org.freedesktop.locale1.service
5132 BUSNAMES_TARGET_WANTS += \
5133 org.freedesktop.locale1.busname
5135 dist_pkgdata_DATA += \
5136 src/locale/kbd-model-map \
5137 src/locale/language-fallback-map
5139 localectl_SOURCES = \
5140 src/locale/localectl.c
5143 libsystemd-internal.la \
5144 libsystemd-shared.la
5149 dist_bashcompletion_DATA += \
5150 shell-completion/bash/localectl
5152 dist_zshcompletion_DATA += \
5153 shell-completion/zsh/_localectl
5157 .PHONY: update-kbd-model-map
5159 polkitpolicy_in_files += \
5160 src/locale/org.freedesktop.locale1.policy.in
5163 units/systemd-localed.service.in
5165 # ------------------------------------------------------------------------------
5167 systemd_timedated_SOURCES = \
5168 src/timedate/timedated.c
5170 systemd_timedated_LDADD = \
5171 libsystemd-label.la \
5172 libsystemd-internal.la \
5173 libsystemd-shared.la
5175 rootlibexec_PROGRAMS += \
5178 dist_dbussystemservice_DATA += \
5179 src/timedate/org.freedesktop.timedate1.service
5181 dist_dbuspolicy_DATA += \
5182 src/timedate/org.freedesktop.timedate1.conf
5184 nodist_systemunit_DATA += \
5185 units/systemd-timedated.service
5187 dist_systemunit_DATA_busnames += \
5188 units/org.freedesktop.timedate1.busname
5190 polkitpolicy_files += \
5191 src/timedate/org.freedesktop.timedate1.policy
5193 SYSTEM_UNIT_ALIASES += \
5194 systemd-timedated.service dbus-org.freedesktop.timedate1.service
5196 BUSNAMES_TARGET_WANTS += \
5197 org.freedesktop.timedate1.busname
5199 timedatectl_SOURCES = \
5200 src/timedate/timedatectl.c
5202 timedatectl_LDADD = \
5203 libsystemd-internal.la \
5204 libsystemd-shared.la
5209 dist_bashcompletion_DATA += \
5210 shell-completion/bash/timedatectl
5212 dist_zshcompletion_DATA += \
5213 shell-completion/zsh/_timedatectl
5216 polkitpolicy_in_files += \
5217 src/timedate/org.freedesktop.timedate1.policy.in
5220 units/systemd-timedated.service.in
5222 # ------------------------------------------------------------------------------
5224 systemd_timesyncd_SOURCES = \
5225 src/timesync/timesyncd.c \
5226 src/timesync/timesyncd-manager.c \
5227 src/timesync/timesyncd-manager.h \
5228 src/timesync/timesyncd-conf.c \
5229 src/timesync/timesyncd-conf.h \
5230 src/timesync/timesyncd-server.c \
5231 src/timesync/timesyncd-server.h
5233 nodist_systemd_timesyncd_SOURCES = \
5234 src/timesync/timesyncd-gperf.c
5237 src/timesync/timesyncd-gperf.gperf
5240 src/timesync/timesyncd-gperf.c
5242 systemd_timesyncd_LDADD = \
5243 libsystemd-resolve.la \
5244 libsystemd-network.la \
5245 libsystemd-label.la \
5246 libsystemd-internal.la \
5247 libsystemd-shared.la
5249 rootlibexec_PROGRAMS += \
5252 nodist_systemunit_DATA += \
5253 units/systemd-timesyncd.service
5255 GENERAL_ALIASES += \
5256 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5259 units/systemd-timesyncd.service.in
5261 nodist_pkgsysconf_DATA += \
5262 src/timesync/timesyncd.conf
5265 src/timesync/timesyncd.conf.in
5268 src/timesync/timesyncd.conf
5271 # ------------------------------------------------------------------------------
5273 libnss_myhostname_la_SOURCES = \
5274 src/nss-myhostname/nss-myhostname.sym \
5275 src/nss-myhostname/nss-myhostname.c
5277 libnss_myhostname_la_LDFLAGS = \
5284 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5286 libnss_myhostname_la_LIBADD = \
5287 libsystemd-shared.la \
5288 libsystemd-internal.la
5290 lib_LTLIBRARIES += \
5291 libnss_myhostname.la
5294 # ------------------------------------------------------------------------------
5296 systemd_machined_SOURCES = \
5297 src/machine/machined.c \
5298 src/machine/machined.h
5300 systemd_machined_LDADD = \
5301 libsystemd-machine-core.la
5303 rootlibexec_PROGRAMS += \
5306 libsystemd_machine_core_la_SOURCES = \
5307 src/machine/machine.c \
5308 src/machine/machine.h \
5309 src/machine/machined-dbus.c \
5310 src/machine/machine-dbus.c \
5311 src/machine/machine-dbus.h \
5312 src/machine/image-dbus.c \
5313 src/machine/image-dbus.h
5315 libsystemd_machine_core_la_LIBADD = \
5316 libsystemd-label.la \
5317 libsystemd-internal.la \
5318 libudev-internal.la \
5319 libsystemd-shared.la
5321 noinst_LTLIBRARIES += \
5322 libsystemd-machine-core.la
5324 machinectl_SOURCES = \
5325 src/machine/machinectl.c
5327 machinectl_LDADD = \
5328 libsystemd-internal.la \
5329 libsystemd-logs.la \
5330 libsystemd-journal-internal.la \
5331 libsystemd-shared.la
5333 rootbin_PROGRAMS += \
5336 dist_bashcompletion_DATA += \
5337 shell-completion/bash/machinectl
5339 test_machine_tables_SOURCES = \
5340 src/machine/test-machine-tables.c
5342 test_machine_tables_LDADD = \
5343 libsystemd-machine-core.la
5348 nodist_systemunit_DATA += \
5349 units/systemd-machined.service
5351 dist_systemunit_DATA += \
5354 dist_systemunit_DATA_busnames += \
5355 units/org.freedesktop.machine1.busname
5357 dist_dbussystemservice_DATA += \
5358 src/machine/org.freedesktop.machine1.service
5360 dist_dbuspolicy_DATA += \
5361 src/machine/org.freedesktop.machine1.conf
5363 polkitpolicy_files += \
5364 src/machine/org.freedesktop.machine1.policy
5366 polkitpolicy_in_files += \
5367 src/machine/org.freedesktop.machine1.policy.in
5369 dist_zshcompletion_DATA += \
5370 shell-completion/zsh/_machinectl \
5371 shell-completion/zsh/_sd_machines
5373 SYSTEM_UNIT_ALIASES += \
5374 systemd-machined.service dbus-org.freedesktop.machine1.service
5376 BUSNAMES_TARGET_WANTS += \
5377 org.freedesktop.machine1.busname
5380 units/systemd-machined.service.in
5382 libnss_mymachines_la_SOURCES = \
5383 src/nss-mymachines/nss-mymachines.sym \
5384 src/nss-mymachines/nss-mymachines.c
5386 libnss_mymachines_la_LDFLAGS = \
5393 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5395 libnss_mymachines_la_LIBADD = \
5396 libsystemd-shared.la \
5397 libsystemd-internal.la
5399 lib_LTLIBRARIES += \
5400 libnss_mymachines.la
5404 # ------------------------------------------------------------------------------
5413 rootlibexec_PROGRAMS += \
5417 systemd_importd_SOURCES = \
5418 src/import/importd.c
5420 systemd_importd_CFLAGS = \
5422 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\"
5424 systemd_importd_LDADD = \
5425 libsystemd-internal.la \
5426 libsystemd-label.la \
5427 libsystemd-shared.la
5429 systemd_pull_SOURCES = \
5431 src/import/import-raw.c \
5432 src/import/import-raw.h \
5433 src/import/import-tar.c \
5434 src/import/import-tar.h \
5435 src/import/import-dkr.c \
5436 src/import/import-dkr.h \
5437 src/import/import-job.c \
5438 src/import/import-job.h \
5439 src/import/import-common.c \
5440 src/import/import-common.h \
5441 src/import/curl-util.c \
5442 src/import/curl-util.h \
5443 src/import/aufs-util.c \
5444 src/import/aufs-util.h \
5445 src/import/qcow2-util.c \
5446 src/import/qcow2-util.h
5448 systemd_pull_CFLAGS = \
5454 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5455 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5457 systemd_pull_LDADD = \
5458 libsystemd-internal.la \
5459 libsystemd-label.la \
5460 libsystemd-shared.la \
5467 dist_rootlibexec_DATA = \
5468 src/import/import-pubring.gpg
5470 nodist_systemunit_DATA += \
5471 units/systemd-importd.service
5474 units/systemd-importd.service.in
5476 dist_systemunit_DATA_busnames += \
5477 units/org.freedesktop.import1.busname
5479 BUSNAMES_TARGET_WANTS += \
5480 org.freedesktop.import1.busname
5482 SYSTEM_UNIT_ALIASES += \
5483 systemd-importd.service dbus-org.freedesktop.import1.service
5485 dist_dbussystemservice_DATA += \
5486 src/import/org.freedesktop.import1.service
5488 dist_dbuspolicy_DATA += \
5489 src/import/org.freedesktop.import1.conf
5491 polkitpolicy_files += \
5492 src/import/org.freedesktop.import1.policy
5494 polkitpolicy_in_files += \
5495 src/import/org.freedesktop.import1.policy.in
5500 test_qcow2_SOURCES = \
5501 src/import/test-qcow2.c \
5502 src/import/qcow2-util.c \
5503 src/import/qcow2-util.h
5505 test_qcow2_CFLAGS = \
5509 test_qcow2_LDADD = \
5510 libsystemd-internal.la \
5511 libsystemd-label.la \
5512 libsystemd-shared.la \
5523 # ------------------------------------------------------------------------------
5525 systemd_resolved_SOURCES = \
5526 src/resolve/resolved.c \
5527 src/resolve/resolved-manager.c \
5528 src/resolve/resolved-manager.h \
5529 src/resolve/resolved-conf.c \
5530 src/resolve/resolved-conf.h \
5531 src/resolve/resolved-bus.c \
5532 src/resolve/resolved-bus.h \
5533 src/resolve/resolved-link.h \
5534 src/resolve/resolved-link.c \
5535 src/resolve/resolved-def.h \
5536 src/resolve/resolved-dns-domain.h \
5537 src/resolve/resolved-dns-domain.c \
5538 src/resolve/resolved-dns-rr.h \
5539 src/resolve/resolved-dns-rr.c \
5540 src/resolve/resolved-dns-question.h \
5541 src/resolve/resolved-dns-question.c \
5542 src/resolve/resolved-dns-answer.h \
5543 src/resolve/resolved-dns-answer.c \
5544 src/resolve/resolved-dns-packet.h \
5545 src/resolve/resolved-dns-packet.c \
5546 src/resolve/resolved-dns-query.h \
5547 src/resolve/resolved-dns-query.c \
5548 src/resolve/resolved-dns-transaction.h \
5549 src/resolve/resolved-dns-transaction.c \
5550 src/resolve/resolved-dns-scope.h \
5551 src/resolve/resolved-dns-scope.c \
5552 src/resolve/resolved-dns-server.h \
5553 src/resolve/resolved-dns-server.c \
5554 src/resolve/resolved-dns-cache.h \
5555 src/resolve/resolved-dns-cache.c \
5556 src/resolve/resolved-dns-zone.h \
5557 src/resolve/resolved-dns-zone.c \
5558 src/resolve/resolved-dns-stream.h \
5559 src/resolve/resolved-dns-stream.c \
5560 src/resolve/dns-type.c \
5561 src/resolve/dns-type.h \
5562 src/resolve/dns_type-from-name.h \
5563 src/resolve/dns_type-to-name.h
5565 nodist_systemd_resolved_SOURCES = \
5566 src/resolve/resolved-gperf.c
5569 src/resolve/resolved-gperf.gperf \
5570 src/resolve/dns_type-from-name.gperf
5573 src/resolve/resolved-gperf.c
5575 systemd_resolved_LDADD = \
5576 libsystemd-network.la \
5577 libsystemd-label.la \
5578 libsystemd-internal.la \
5579 libsystemd-shared.la \
5582 rootlibexec_PROGRAMS += \
5585 nodist_systemunit_DATA += \
5586 units/systemd-resolved.service
5588 dist_systemunit_DATA_busnames += \
5589 units/org.freedesktop.resolve1.busname
5591 dist_dbuspolicy_DATA += \
5592 src/resolve/org.freedesktop.resolve1.conf
5594 dist_dbussystemservice_DATA += \
5595 src/resolve/org.freedesktop.resolve1.service
5598 units/systemd-resolved.service.in
5600 SYSTEM_UNIT_ALIASES += \
5601 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5603 BUSNAMES_TARGET_WANTS += \
5604 org.freedesktop.resolve1.busname
5606 GENERAL_ALIASES += \
5607 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5609 nodist_pkgsysconf_DATA += \
5610 src/resolve/resolved.conf
5613 src/resolve/resolved.conf.in
5616 src/resolve/resolved.conf
5621 test_dns_domain_SOURCES = \
5622 src/resolve/resolved-dns-domain.h \
5623 src/resolve/resolved-dns-domain.c \
5624 src/resolve/test-dns-domain.c
5626 test_dns_domain_LDADD = \
5627 libsystemd-network.la \
5628 libsystemd-label.la \
5629 libsystemd-internal.la \
5630 libsystemd-shared.la \
5633 libnss_resolve_la_SOURCES = \
5634 src/nss-resolve/nss-resolve.sym \
5635 src/nss-resolve/nss-resolve.c
5637 libnss_resolve_la_LDFLAGS = \
5644 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5646 libnss_resolve_la_LIBADD = \
5647 libsystemd-internal.la \
5648 libsystemd-shared.la
5650 lib_LTLIBRARIES += \
5653 systemd_resolve_host_SOURCES = \
5654 src/resolve-host/resolve-host.c \
5655 src/resolve/resolved-dns-packet.c \
5656 src/resolve/resolved-dns-packet.h \
5657 src/resolve/resolved-dns-rr.c \
5658 src/resolve/resolved-dns-rr.h \
5659 src/resolve/resolved-dns-answer.c \
5660 src/resolve/resolved-dns-answer.h \
5661 src/resolve/resolved-dns-question.c \
5662 src/resolve/resolved-dns-question.h \
5663 src/resolve/resolved-dns-domain.c \
5664 src/resolve/resolved-dns-domain.h \
5665 src/resolve/dns-type.c \
5666 src/resolve/dns-type.h \
5667 src/resolve/dns_type-from-name.h \
5668 src/resolve/dns_type-to-name.h
5670 systemd_resolve_host_LDADD = \
5671 libsystemd-internal.la \
5672 libsystemd-shared.la \
5675 rootlibexec_PROGRAMS += \
5676 systemd-resolve-host
5680 # ------------------------------------------------------------------------------
5682 rootlibexec_PROGRAMS += \
5685 systemd_networkd_SOURCES = \
5686 src/network/networkd.c
5688 systemd_networkd_LDADD = \
5689 libsystemd-networkd-core.la
5692 systemd_networkd_LDADD += \
5696 noinst_LTLIBRARIES += \
5697 libsystemd-networkd-core.la
5699 libsystemd_networkd_core_la_CFLAGS = \
5702 libsystemd_networkd_core_la_SOURCES = \
5703 src/libsystemd-network/network-internal.h \
5704 src/network/networkd.h \
5705 src/network/networkd-link.h \
5706 src/network/networkd-netdev.h \
5707 src/network/networkd-netdev-tunnel.h \
5708 src/network/networkd-netdev-veth.h \
5709 src/network/networkd-netdev-vxlan.h \
5710 src/network/networkd-netdev-vlan.h \
5711 src/network/networkd-netdev-macvlan.h \
5712 src/network/networkd-netdev-ipvlan.h \
5713 src/network/networkd-netdev-dummy.h \
5714 src/network/networkd-netdev-tuntap.h \
5715 src/network/networkd-netdev-bond.h \
5716 src/network/networkd-netdev-bridge.h \
5717 src/network/networkd-netdev.c \
5718 src/network/networkd-netdev-tunnel.c \
5719 src/network/networkd-netdev-veth.c \
5720 src/network/networkd-netdev-vxlan.c \
5721 src/network/networkd-netdev-vlan.c \
5722 src/network/networkd-netdev-macvlan.c \
5723 src/network/networkd-netdev-ipvlan.c \
5724 src/network/networkd-netdev-dummy.c \
5725 src/network/networkd-netdev-tuntap.c \
5726 src/network/networkd-netdev-bond.c \
5727 src/network/networkd-netdev-bridge.c \
5728 src/network/networkd-link.c \
5729 src/network/networkd-link-bus.c \
5730 src/network/networkd-ipv4ll.c \
5731 src/network/networkd-dhcp4.c \
5732 src/network/networkd-dhcp6.c \
5733 src/network/networkd-network.c \
5734 src/network/networkd-network-bus.c \
5735 src/network/networkd-address.c \
5736 src/network/networkd-route.c \
5737 src/network/networkd-manager.c \
5738 src/network/networkd-manager-bus.c \
5739 src/network/networkd-fdb.c \
5740 src/network/networkd-address-pool.c
5742 nodist_libsystemd_networkd_core_la_SOURCES = \
5743 src/network/networkd-network-gperf.c \
5744 src/network/networkd-netdev-gperf.c
5746 libsystemd_networkd_core_la_LIBADD = \
5747 libudev-internal.la \
5748 libsystemd-internal.la \
5749 libsystemd-network.la \
5750 libsystemd-label.la \
5751 libsystemd-shared.la
5753 rootlibexec_PROGRAMS += \
5754 systemd-networkd-wait-online
5756 systemd_networkd_wait_online_CFLAGS = \
5759 systemd_networkd_wait_online_SOURCES = \
5760 src/libsystemd-network/network-internal.h \
5761 src/network/networkd-wait-online.h \
5762 src/network/networkd-wait-online-link.h \
5763 src/network/networkd-wait-online.c \
5764 src/network/networkd-wait-online-manager.c \
5765 src/network/networkd-wait-online-link.c
5767 systemd_networkd_wait_online_LDADD = \
5768 libsystemd-network.la \
5769 libudev-internal.la \
5770 libsystemd-internal.la \
5771 libsystemd-shared.la
5773 rootbin_PROGRAMS += \
5776 networkctl_SOURCES = \
5777 src/network/networkctl.c
5779 networkctl_LDADD = \
5780 libsystemd-internal.la \
5781 libudev-internal.la \
5782 libsystemd-shared.la \
5783 libsystemd-network.la
5785 test_network_SOURCES = \
5786 src/network/test-network.c
5788 test_network_LDADD = \
5789 libsystemd-networkd-core.la
5792 test_network_LDADD += \
5796 test_network_tables_SOURCES = \
5797 src/network/test-network-tables.c \
5798 src/shared/test-tables.h
5800 test_network_tables_LDADD = \
5801 libsystemd-networkd-core.la \
5805 test_network_tables_LDADD += \
5813 dist_systemunit_DATA += \
5814 units/systemd-networkd.socket
5816 nodist_systemunit_DATA += \
5817 units/systemd-networkd.service \
5818 units/systemd-networkd-wait-online.service
5820 dist_systemunit_DATA_busnames += \
5821 units/org.freedesktop.network1.busname
5823 dist_dbussystemservice_DATA += \
5824 src/network/org.freedesktop.network1.service
5826 dist_dbuspolicy_DATA += \
5827 src/network/org.freedesktop.network1.conf
5829 GENERAL_ALIASES += \
5830 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5831 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5832 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5834 SYSTEM_UNIT_ALIASES += \
5835 systemd-networkd.service dbus-org.freedesktop.network1.service
5837 BUSNAMES_TARGET_WANTS += \
5838 org.freedesktop.network1.busname
5841 src/network/networkd-network-gperf.gperf \
5842 src/network/networkd-netdev-gperf.gperf \
5843 units/systemd-networkd.service.in \
5844 units/systemd-networkd-wait-online.service.in
5847 src/network/networkd-network-gperf.c \
5848 src/network/networkd-netdev-gperf.c
5851 # ------------------------------------------------------------------------------
5853 systemd_logind_SOURCES = \
5854 src/login/logind.c \
5857 nodist_systemd_logind_SOURCES = \
5858 src/login/logind-gperf.c
5860 systemd_logind_LDADD = \
5861 libsystemd-logind-core.la
5863 libsystemd_logind_core_la_SOURCES = \
5864 src/login/logind-core.c \
5865 src/login/logind-device.c \
5866 src/login/logind-device.h \
5867 src/login/logind-button.c \
5868 src/login/logind-button.h \
5869 src/login/logind-action.c \
5870 src/login/logind-action.h \
5871 src/login/logind-seat.c \
5872 src/login/logind-seat.h \
5873 src/login/logind-session.c \
5874 src/login/logind-session.h \
5875 src/login/logind-session-device.c \
5876 src/login/logind-session-device.h \
5877 src/login/logind-user.c \
5878 src/login/logind-user.h \
5879 src/login/logind-inhibit.c \
5880 src/login/logind-inhibit.h \
5881 src/login/logind-dbus.c \
5882 src/login/logind-session-dbus.c \
5883 src/login/logind-seat-dbus.c \
5884 src/login/logind-user-dbus.c \
5885 src/login/logind-acl.h
5887 libsystemd_logind_core_la_LIBADD = \
5888 libsystemd-label.la \
5889 libsystemd-internal.la \
5890 libudev-internal.la \
5891 libsystemd-shared.la
5894 libsystemd_logind_core_la_SOURCES += \
5895 src/login/logind-acl.c
5897 libsystemd_logind_core_la_LIBADD += \
5901 noinst_LTLIBRARIES += \
5902 libsystemd-logind-core.la
5904 systemd_user_sessions_SOURCES = \
5905 src/login/user-sessions.c
5907 systemd_user_sessions_LDADD = \
5908 libsystemd-shared.la
5910 rootlibexec_PROGRAMS += \
5912 systemd-user-sessions
5914 loginctl_SOURCES = \
5915 src/login/loginctl.c \
5916 src/login/sysfs-show.h \
5917 src/login/sysfs-show.c
5920 libsystemd-internal.la \
5921 libsystemd-logs.la \
5922 libsystemd-journal-internal.la \
5923 libudev-internal.la \
5924 libsystemd-shared.la
5926 rootbin_PROGRAMS += \
5929 dist_bashcompletion_DATA += \
5930 shell-completion/bash/loginctl
5932 dist_zshcompletion_DATA += \
5933 shell-completion/zsh/_loginctl \
5934 shell-completion/zsh/_systemd-inhibit
5936 systemd_inhibit_SOURCES = \
5939 systemd_inhibit_LDADD = \
5940 libsystemd-internal.la \
5941 libsystemd-shared.la
5943 rootbin_PROGRAMS += \
5946 test_login_SOURCES = \
5947 src/libsystemd/sd-login/test-login.c
5949 test_login_LDADD = \
5950 libsystemd-internal.la \
5951 libsystemd-shared.la
5953 test_login_shared_SOURCES = \
5954 src/login/test-login-shared.c
5956 test_login_shared_LDADD = \
5957 libsystemd-internal.la \
5958 libsystemd-shared.la
5960 test_inhibit_SOURCES = \
5961 src/login/test-inhibit.c
5963 test_inhibit_LDADD = \
5964 libsystemd-internal.la \
5965 libsystemd-shared.la
5967 test_login_tables_SOURCES = \
5968 src/login/test-login-tables.c
5970 test_login_tables_LDADD = \
5971 libsystemd-logind-core.la
5982 pam_systemd_la_SOURCES = \
5983 src/login/pam_systemd.sym \
5984 src/login/pam_systemd.c
5986 pam_systemd_la_CFLAGS = \
5991 pam_systemd_la_LDFLAGS = \
5997 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5999 pam_systemd_la_LIBADD = \
6000 libsystemd-internal.la \
6001 libsystemd-shared.la \
6004 pamlib_LTLIBRARIES = \
6007 dist_pamconf_DATA = \
6008 src/login/systemd-user
6011 nodist_systemunit_DATA += \
6012 units/systemd-logind.service \
6013 units/systemd-user-sessions.service
6015 dist_systemunit_DATA += \
6018 dist_systemunit_DATA_busnames += \
6019 units/org.freedesktop.login1.busname
6021 dist_dbussystemservice_DATA += \
6022 src/login/org.freedesktop.login1.service
6024 dist_dbuspolicy_DATA += \
6025 src/login/org.freedesktop.login1.conf
6027 dist_pkgsysconf_DATA += \
6028 src/login/logind.conf
6030 polkitpolicy_files += \
6031 src/login/org.freedesktop.login1.policy
6036 MULTI_USER_TARGET_WANTS += \
6037 systemd-logind.service \
6038 systemd-user-sessions.service
6040 SYSTEM_UNIT_ALIASES += \
6041 systemd-logind.service dbus-org.freedesktop.login1.service
6043 BUSNAMES_TARGET_WANTS += \
6044 org.freedesktop.login1.busname
6046 dist_udevrules_DATA += \
6047 src/login/70-uaccess.rules \
6048 src/login/70-power-switch.rules
6050 nodist_udevrules_DATA += \
6051 src/login/71-seat.rules \
6052 src/login/73-seat-late.rules
6055 src/login/logind-gperf.c \
6056 src/login/71-seat.rules \
6057 src/login/73-seat-late.rules
6060 polkitpolicy_in_files += \
6061 src/login/org.freedesktop.login1.policy.in
6064 src/login/logind-gperf.gperf \
6065 src/login/71-seat.rules.in \
6066 src/login/73-seat-late.rules.in \
6067 units/systemd-logind.service.in \
6068 units/systemd-user-sessions.service.in
6070 # ------------------------------------------------------------------------------
6071 if HAVE_PYTHON_DEVEL
6072 pkgpyexec_LTLIBRARIES = \
6079 _journal_la_SOURCES = \
6080 src/python-systemd/_journal.c
6082 _journal_la_CFLAGS = \
6084 -fvisibility=default \
6085 $(PYTHON_DEVEL_CFLAGS)
6087 _journal_la_LDFLAGS = \
6093 _journal_la_LIBADD = \
6094 $(PYTHON_DEVEL_LIBS) \
6097 id128_la_SOURCES = \
6098 src/python-systemd/id128.c \
6099 src/python-systemd/pyutil.c \
6100 src/python-systemd/pyutil.h
6102 nodist_id128_la_SOURCES = \
6103 src/python-systemd/id128-constants.h
6107 -fvisibility=default \
6108 $(PYTHON_DEVEL_CFLAGS) \
6109 -I$(top_builddir)/src/python-systemd
6111 id128_la_LDFLAGS = \
6118 $(PYTHON_DEVEL_LIBS) \
6119 libsystemd-shared.la \
6122 _daemon_la_SOURCES = \
6123 src/python-systemd/_daemon.c \
6124 src/python-systemd/pyutil.c \
6125 src/python-systemd/pyutil.h
6127 _daemon_la_CFLAGS = \
6129 -fvisibility=default \
6130 $(PYTHON_DEVEL_CFLAGS) \
6131 -I$(top_builddir)/src/python-systemd
6133 _daemon_la_LDFLAGS = \
6139 _daemon_la_LIBADD = \
6140 $(PYTHON_DEVEL_LIBS) \
6141 libsystemd-shared.la \
6144 _reader_la_SOURCES = \
6145 src/python-systemd/_reader.c \
6146 src/python-systemd/pyutil.c \
6147 src/python-systemd/pyutil.h
6149 _reader_la_CFLAGS = \
6151 -fvisibility=default \
6152 $(PYTHON_DEVEL_CFLAGS)
6154 _reader_la_LDFLAGS = \
6160 _reader_la_LIBADD = \
6161 $(PYTHON_DEVEL_LIBS) \
6162 libsystemd-shared.la \
6165 login_la_SOURCES = \
6166 src/python-systemd/login.c \
6167 src/python-systemd/pyutil.c \
6168 src/python-systemd/pyutil.h
6172 -fvisibility=default \
6173 $(PYTHON_DEVEL_CFLAGS)
6175 login_la_LDFLAGS = \
6182 $(PYTHON_DEVEL_LIBS) \
6183 libsystemd-shared.la \
6186 dist_pkgpyexec_PYTHON = \
6187 src/python-systemd/journal.py \
6188 src/python-systemd/daemon.py \
6189 src/python-systemd/__init__.py
6191 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
6192 $(AM_V_at)$(MKDIR_P) $(dir $@)
6193 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
6196 src/python-systemd/id128-constants.h
6198 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
6200 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
6201 $(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/
6202 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
6205 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
6206 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
6209 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
6210 $(MAKE) DESTDIR="$$dir" install && \
6211 $(MAKE) DESTDIR="$$dir" sphinx-html && \
6216 CLEAN_LOCAL_HOOKS += clean-sphinx
6218 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
6221 -rm -rf docs/html/python-systemd/
6223 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
6225 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
6226 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
6228 # ------------------------------------------------------------------------------
6229 if ENABLE_COMPAT_LIBS
6231 src/compat-libs/linkwarning.h
6233 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
6234 $(AM_V_at)$(MKDIR_P) $(dir $@)
6235 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
6238 libsystemd-journal.c \
6239 libsystemd-login.c \
6240 libsystemd-id128.c \
6243 libsystemd_journal_la_SOURCES = \
6244 libsystemd-journal.c \
6245 src/compat-libs/libsystemd-journal.sym
6247 libsystemd_journal_la_CPPFLAGS = \
6249 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6251 libsystemd_journal_la_LDFLAGS = \
6253 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
6254 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
6256 libsystemd_journal_la_LIBADD = \
6257 libsystemd-journal-internal.la \
6258 libsystemd-internal.la \
6259 libsystemd-shared.la
6261 libsystemd_login_la_SOURCES = \
6262 libsystemd-login.c \
6263 src/compat-libs/libsystemd-login.sym
6265 libsystemd_login_la_CPPFLAGS = \
6267 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6269 libsystemd_login_la_LDFLAGS = \
6271 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
6272 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
6274 libsystemd_login_la_LIBADD = \
6275 libsystemd-internal.la \
6276 libsystemd-shared.la
6278 libsystemd_id128_la_SOURCES = \
6279 libsystemd-id128.c \
6280 src/compat-libs/libsystemd-id128.sym
6282 libsystemd_id128_la_CPPFLAGS = \
6284 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6286 libsystemd_id128_la_LDFLAGS = \
6288 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
6289 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
6291 libsystemd_id128_la_LIBADD = \
6292 libsystemd-internal.la \
6293 libsystemd-shared.la
6295 libsystemd_daemon_la_SOURCES = \
6296 libsystemd-daemon.c \
6297 src/compat-libs/libsystemd-daemon.sym
6299 libsystemd_daemon_la_CPPFLAGS = \
6301 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6303 libsystemd_daemon_la_LDFLAGS = \
6305 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
6306 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
6308 libsystemd_daemon_la_LIBADD = \
6309 libsystemd-internal.la \
6310 libsystemd-shared.la
6312 lib_LTLIBRARIES += \
6313 libsystemd-journal.la \
6314 libsystemd-login.la \
6315 libsystemd-id128.la \
6316 libsystemd-daemon.la
6318 pkgconfiglib_DATA += \
6319 src/compat-libs/libsystemd-journal.pc \
6320 src/compat-libs/libsystemd-login.pc \
6321 src/compat-libs/libsystemd-id128.pc \
6322 src/compat-libs/libsystemd-daemon.pc
6324 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
6325 compat-lib-install-hook:
6326 libname=libsystemd-login.so && $(move-to-rootlibdir)
6327 libname=libsystemd-journal.so && $(move-to-rootlibdir)
6328 libname=libsystemd-id128.so && $(move-to-rootlibdir)
6329 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
6331 compat-lib-uninstall-hook:
6332 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
6333 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
6334 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
6335 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
6337 INSTALL_EXEC_HOOKS += compat-lib-install-hook
6338 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
6342 src/compat-libs/libsystemd-journal.pc.in \
6343 src/compat-libs/libsystemd-login.pc.in \
6344 src/compat-libs/libsystemd-id128.pc.in \
6345 src/compat-libs/libsystemd-daemon.pc.in
6347 # ------------------------------------------------------------------------------
6349 '|rootlibexecdir=$(rootlibexecdir)|' \
6350 '|rootbindir=$(rootbindir)|' \
6351 '|bindir=$(bindir)|' \
6352 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6353 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6354 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6355 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6356 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6357 '|pkgdatadir=$(pkgdatadir)|' \
6358 '|systemunitdir=$(systemunitdir)|' \
6359 '|userunitdir=$(userunitdir)|' \
6360 '|systempresetdir=$(systempresetdir)|' \
6361 '|userpresetdir=$(userpresetdir)|' \
6362 '|udevhwdbdir=$(udevhwdbdir)|' \
6363 '|udevrulesdir=$(udevrulesdir)|' \
6364 '|catalogdir=$(catalogdir)|' \
6365 '|tmpfilesdir=$(tmpfilesdir)|' \
6366 '|sysusersdir=$(sysusersdir)|' \
6367 '|sysctldir=$(sysctldir)|' \
6368 '|systemgeneratordir=$(systemgeneratordir)|' \
6369 '|usergeneratordir=$(usergeneratordir)|' \
6370 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6371 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6372 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6373 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6374 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6375 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6376 '|prefix=$(prefix)|' \
6377 '|exec_prefix=$(exec_prefix)|' \
6378 '|libdir=$(libdir)|' \
6379 '|includedir=$(includedir)|' \
6380 '|VERSION=$(VERSION)|' \
6381 '|rootprefix=$(rootprefix)|' \
6382 '|udevlibexecdir=$(udevlibexecdir)|' \
6383 '|SUSHELL=$(SUSHELL)|' \
6384 '|SULOGIN=$(SULOGIN)|' \
6385 '|DEBUGTTY=$(DEBUGTTY)|' \
6388 '|MKDIR_P=$(MKDIR_P)|' \
6389 '|QUOTAON=$(QUOTAON)|' \
6390 '|QUOTACHECK=$(QUOTACHECK)|' \
6391 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6392 '|VARLOGDIR=$(varlogdir)|' \
6393 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6394 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6395 '|PYTHON=$(PYTHON)|' \
6396 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6397 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6398 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6399 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6400 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6401 '|TTY_GID=$(TTY_GID)|' \
6402 '|systemsleepdir=$(systemsleepdir)|' \
6403 '|systemshutdowndir=$(systemshutdowndir)|' \
6404 '|binfmtdir=$(binfmtdir)|' \
6405 '|modulesloaddir=$(modulesloaddir)|'
6408 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6409 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6418 sysctl.d/%: sysctl.d/%.in
6427 src/core/macros.%: src/core/macros.%.in
6430 src/%.policy.in: src/%.policy.in.in
6433 shell-completion/%: shell-completion/%.in
6444 $(AM_V_GEN)chmod +x $@
6446 src/%.c: src/%.gperf
6447 $(AM_V_at)$(MKDIR_P) $(dir $@)
6448 $(AM_V_GPERF)$(GPERF) < $< > $@
6451 $(AM_V_at)$(MKDIR_P) $(dir $@)
6452 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6454 sysusers.d/%: sysusers.d/%.m4
6455 $(AM_V_at)$(MKDIR_P) $(dir $@)
6456 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6458 tmpfiles.d/%: tmpfiles.d/%.m4
6459 $(AM_V_at)$(MKDIR_P) $(dir $@)
6460 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6464 $(AM_V_at)$(MKDIR_P) $(dir $@)
6465 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6467 units/user/%: units/user/%.m4
6468 $(AM_V_at)$(MKDIR_P) $(dir $@)
6469 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6472 nodist_polkitpolicy_DATA = \
6473 $(polkitpolicy_files) \
6474 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6478 $(polkitpolicy_in_files) \
6479 $(polkitpolicy_in_in_files)
6482 $(nodist_systemunit_DATA) \
6483 $(nodist_userunit_DATA) \
6484 $(pkgconfiglib_DATA) \
6485 $(nodist_polkitpolicy_DATA)
6487 # ------------------------------------------------------------------------------
6489 man/custom-entities.ent: configure.ac
6490 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6491 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6492 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6496 man/custom-entities.ent
6501 --stringparam man.output.quietly 1 \
6502 --stringparam funcsynopsis.style ansi \
6503 --stringparam man.authors.section.enabled 0 \
6504 --stringparam man.copyright.section.enabled 0 \
6505 --stringparam systemd.version $(VERSION) \
6506 --path '$(builddir)/man:$(srcdir)/man'
6508 XSLTPROC_PROCESS_MAN = \
6509 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6511 XSLTPROC_PROCESS_HTML = \
6512 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6514 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6515 $(XSLTPROC_PROCESS_MAN)
6517 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6518 $(XSLTPROC_PROCESS_MAN)
6520 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6521 $(XSLTPROC_PROCESS_MAN)
6523 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6524 $(XSLTPROC_PROCESS_MAN)
6526 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6527 $(XSLTPROC_PROCESS_MAN)
6529 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6530 $(XSLTPROC_PROCESS_HTML)
6533 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6539 man/custom-html.xsl \
6542 # ------------------------------------------------------------------------------
6545 docs/sysvinit/README
6550 docs/sysvinit/README: docs/sysvinit/README.in
6553 docs/var-log/README: docs/var-log/README.in
6557 docs/sysvinit/README \
6562 docs/sysvinit/README.in \
6563 docs/var-log/README.in
6565 SOCKETS_TARGET_WANTS += \
6566 systemd-initctl.socket \
6567 systemd-shutdownd.socket
6571 MULTI_USER_TARGET_WANTS += \
6572 systemd-update-utmp-runlevel.service
6573 GRAPHICAL_TARGET_WANTS += \
6574 systemd-update-utmp-runlevel.service
6575 RESCUE_TARGET_WANTS += \
6576 systemd-update-utmp-runlevel.service
6579 SYSINIT_TARGET_WANTS += \
6580 systemd-update-utmp.service
6583 SYSINIT_TARGET_WANTS += \
6584 systemd-update-done.service
6586 LOCAL_FS_TARGET_WANTS += \
6587 systemd-remount-fs.service \
6590 MULTI_USER_TARGET_WANTS += \
6592 systemd-ask-password-wall.path
6594 SYSINIT_TARGET_WANTS += \
6595 dev-hugepages.mount \
6597 sys-kernel-config.mount \
6598 sys-kernel-debug.mount \
6599 sys-fs-fuse-connections.mount \
6600 systemd-sysctl.service \
6601 systemd-ask-password-console.path
6604 SYSTEM_UNIT_ALIASES += \
6605 poweroff.target runlevel0.target \
6606 rescue.target runlevel1.target \
6607 multi-user.target runlevel2.target \
6608 multi-user.target runlevel3.target \
6609 multi-user.target runlevel4.target \
6610 graphical.target runlevel5.target \
6611 reboot.target runlevel6.target
6614 SYSTEM_UNIT_ALIASES += \
6615 graphical.target default.target \
6616 reboot.target ctrl-alt-del.target \
6617 getty@.service autovt@.service
6619 USER_UNIT_ALIASES += \
6620 $(systemunitdir)/shutdown.target shutdown.target \
6621 $(systemunitdir)/sockets.target sockets.target \
6622 $(systemunitdir)/timers.target timers.target \
6623 $(systemunitdir)/paths.target paths.target \
6624 $(systemunitdir)/bluetooth.target bluetooth.target \
6625 $(systemunitdir)/printer.target printer.target \
6626 $(systemunitdir)/sound.target sound.target \
6627 $(systemunitdir)/smartcard.target smartcard.target
6630 USER_UNIT_ALIASES += \
6631 $(systemunitdir)/busnames.target busnames.target
6634 GENERAL_ALIASES += \
6635 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6636 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6637 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6638 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6642 $(systemunitdir)/runlevel1.target.wants \
6643 $(systemunitdir)/runlevel2.target.wants \
6644 $(systemunitdir)/runlevel3.target.wants \
6645 $(systemunitdir)/runlevel4.target.wants \
6646 $(systemunitdir)/runlevel5.target.wants
6650 $(prefix)/lib/modules-load.d \
6651 $(sysconfdir)/modules-load.d \
6652 $(prefix)/lib/systemd/network \
6653 $(sysconfdir)/systemd/network \
6654 $(prefix)/lib/sysctl.d \
6655 $(sysconfdir)/sysctl.d \
6656 $(prefix)/lib/kernel/install.d \
6657 $(sysconfdir)/kernel/install.d \
6658 $(systemshutdowndir) \
6660 $(systemgeneratordir) \
6661 $(usergeneratordir) \
6664 $(pkgsysconfdir)/system \
6665 $(pkgsysconfdir)/system/multi-user.target.wants \
6666 $(pkgsysconfdir)/system/getty.target.wants \
6667 $(pkgsysconfdir)/user \
6668 $(dbussessionservicedir) \
6669 $(sysconfdir)/xdg/systemd
6671 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6673 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6675 install-data-hook: $(INSTALL_DATA_HOOKS)
6677 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6679 clean-local: $(CLEAN_LOCAL_HOOKS)
6680 rm -rf $(abs_srcdir)/install-tree
6681 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6682 $(abs_srcdir)/hwdb/iab.txt
6684 DISTCHECK_CONFIGURE_FLAGS = \
6685 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6686 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6687 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6688 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6689 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6690 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6691 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6692 --with-rootprefix=$$dc_install_base \
6693 --disable-split-usr \
6695 --enable-compat-libs
6698 DISTCHECK_CONFIGURE_FLAGS += \
6699 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6700 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6702 DISTCHECK_CONFIGURE_FLAGS += \
6703 --with-sysvinit-path= \
6704 --with-sysvrcnd-path=
6708 DISTCHECK_CONFIGURE_FLAGS += \
6713 DISTCHECK_CONFIGURE_FLAGS += \
6718 # Require python when making dist
6720 .PHONY: dist-check-python dist-check-compat-libs dist-check-help
6723 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6727 dist-check-compat-libs:
6728 if !ENABLE_COMPAT_LIBS
6729 @echo "*** compat-libs must be enabled in order to make dist"
6733 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6734 for i in $(abspath $^); do \
6735 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6736 echo "$(basename $$i) --help output is too wide:"; \
6737 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6741 dist: dist-check-python dist-check-compat-libs
6743 # check "broken" platforms limited toolchains for link breakage before we release
6746 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6750 ( cd $(top_srcdir)/hwdb && \
6751 wget -N http://www.linux-usb.org/usb.ids \
6752 http://pci-ids.ucw.cz/v2.2/pci.ids \
6753 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6754 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6757 .PHONY: kdbus-update
6759 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6760 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6764 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6766 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6768 upload: all check dist
6769 scp systemd-$(VERSION).tar.xz $(www_target)
6772 doc-sync: all destdir-sphinx
6773 gtkdoc-rebase --html-dir=docs/libudev/html --online
6774 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6775 gtkdoc-rebase --html-dir=docs/gudev/html --online
6776 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6777 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6778 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6782 scp man/*.html gardel:public/systemd-man/
6784 .PHONY: lennart-fedora
6786 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6788 .PHONY: install-tree
6790 rm -rf $(abs_srcdir)/install-tree
6791 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6792 tree $(abs_srcdir)/install-tree
6794 # Let's run all tests of the test suite, but under valgrind. Let's
6795 # exclude the one perl script we have in there
6796 .PHONY: valgrind-tests
6797 valgrind-tests: $(TESTS)
6798 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6799 if file $$f | grep -q shell; then \
6800 echo -e "$${x}Skipping non-binary $$f"; else \
6801 echo -e "$${x}Running $$f"; \
6802 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6807 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6809 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6810 $(AM_V_GEN)cat $^ > $@
6812 .PHONY: check-api-docs
6813 check-api-docs: exported man
6814 $(AM_V_GEN)for symbol in `cat exported` ; do \
6815 if test -f $(builddir)/man/$$symbol.html ; then \
6816 echo " Symbol $$symbol() is documented." ; \
6818 echo "‣ Symbol $$symbol() lacks documentation." ; \
6822 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6823 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6825 undefined defined: $(ALL_OBJECTS)
6826 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6827 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6828 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6834 .PHONY: check-api-unused
6835 check-api-unused: defined undefined exported
6836 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6838 .PHONY: check-includes
6839 check-includes: $(top_srcdir)/tools/check-includes.pl
6840 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6841 | xargs $(top_srcdir)/tools/check-includes.pl
6844 $(top_srcdir)/tools/check-includes.pl
6846 # Stupid test that everything purported to be exported really is
6847 define generate-sym-test
6848 $(AM_V_at)$(MKDIR_P) $(dir $@)
6849 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6850 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6851 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6852 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6853 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6854 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6855 $(AM_V_at)printf 'return 0; }\n' >> $@
6858 test-libsystemd-sym.c: \
6859 $(top_builddir)/src/libsystemd/libsystemd.sym \
6860 src/systemd/sd-journal.h \
6861 src/systemd/sd-daemon.h \
6862 src/systemd/sd-login.h \
6863 src/systemd/sd-bus.h \
6864 src/systemd/sd-utf8.h \
6865 src/systemd/sd-resolve.h \
6866 src/systemd/sd-path.h
6867 $(generate-sym-test)
6869 test-libudev-sym.c: \
6870 src/libudev/libudev.sym \
6872 $(generate-sym-test)
6874 test_libsystemd_sym_SOURCES = \
6875 test-libsystemd-sym.c
6876 test_libsystemd_sym_LDADD = \
6879 test_libudev_sym_SOURCES = \
6881 test_libudev_sym_CFLAGS = \
6883 -Wno-deprecated-declarations
6884 test_libudev_sym_LDADD = \
6888 $(test_libsystemd_sym_SOURCES) \
6889 $(test_libudev_sym_SOURCES)
6892 test-libsystemd-sym \
6897 cppcheck --enable=all -q $(top_srcdir)
6899 # Used to extract compile flags for YCM.
6904 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6907 tools/gdb-sd_dump_hashmaps.py
6910 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6913 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -