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
49 # The following four libraries only exist for compatibility reasons,
50 # their version info should not be bumped anymore
51 LIBSYSTEMD_LOGIN_CURRENT=9
52 LIBSYSTEMD_LOGIN_REVISION=3
53 LIBSYSTEMD_LOGIN_AGE=9
55 LIBSYSTEMD_DAEMON_CURRENT=0
56 LIBSYSTEMD_DAEMON_REVISION=12
57 LIBSYSTEMD_DAEMON_AGE=0
59 LIBSYSTEMD_ID128_CURRENT=0
60 LIBSYSTEMD_ID128_REVISION=28
61 LIBSYSTEMD_ID128_AGE=0
63 LIBSYSTEMD_JOURNAL_CURRENT=11
64 LIBSYSTEMD_JOURNAL_REVISION=5
65 LIBSYSTEMD_JOURNAL_AGE=11
67 # Dirs of external packages
68 dbuspolicydir=@dbuspolicydir@
69 dbussessionservicedir=@dbussessionservicedir@
70 dbussystemservicedir=@dbussystemservicedir@
72 pamconfdir=@pamconfdir@
73 pkgconfigdatadir=$(datadir)/pkgconfig
74 pkgconfiglibdir=$(libdir)/pkgconfig
75 polkitpolicydir=$(datadir)/polkit-1/actions
76 bashcompletiondir=@bashcompletiondir@
77 zshcompletiondir=@zshcompletiondir@
78 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
79 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
80 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
81 varlogdir=$(localstatedir)/log
82 systemdstatedir=$(localstatedir)/lib/systemd
83 catalogstatedir=$(systemdstatedir)/catalog
84 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
86 # Our own, non-special dirs
87 pkgsysconfdir=$(sysconfdir)/systemd
88 userunitdir=$(prefix)/lib/systemd/user
89 userpresetdir=$(prefix)/lib/systemd/user-preset
90 tmpfilesdir=$(prefix)/lib/tmpfiles.d
91 sysusersdir=$(prefix)/lib/sysusers.d
92 sysctldir=$(prefix)/lib/sysctl.d
93 binfmtdir=$(prefix)/lib/binfmt.d
94 modulesloaddir=$(prefix)/lib/modules-load.d
95 networkdir=$(rootprefix)/lib/systemd/network
96 pkgincludedir=$(includedir)/systemd
97 systemgeneratordir=$(rootlibexecdir)/system-generators
98 usergeneratordir=$(prefix)/lib/systemd/user-generators
99 systemshutdowndir=$(rootlibexecdir)/system-shutdown
100 systemsleepdir=$(rootlibexecdir)/system-sleep
101 systemunitdir=$(rootprefix)/lib/systemd/system
102 systempresetdir=$(rootprefix)/lib/systemd/system-preset
103 udevlibexecdir=$(rootprefix)/lib/udev
104 udevhomedir=$(udevlibexecdir)
105 udevrulesdir=$(udevlibexecdir)/rules.d
106 udevhwdbdir=$(udevlibexecdir)/hwdb.d
107 catalogdir=$(prefix)/lib/systemd/catalog
108 kernelinstalldir = $(prefix)/lib/kernel/install.d
109 factory_etcdir = $(datadir)/factory/etc
110 factory_pamdir = $(datadir)/factory/etc/pam.d
111 bootlibdir = $(prefix)/lib/systemd/boot/efi
113 # And these are the special ones for /
114 rootprefix=@rootprefix@
115 rootbindir=$(rootprefix)/bin
116 rootlibexecdir=$(rootprefix)/lib/systemd
121 UNINSTALL_EXEC_HOOKS =
123 UNINSTALL_DATA_HOOKS =
124 DISTCLEAN_LOCAL_HOOKS =
133 polkitpolicy_in_in_files =
134 polkitpolicy_in_files =
136 dist_udevrules_DATA =
137 nodist_udevrules_DATA =
138 dist_pkgsysconf_DATA =
139 nodist_pkgsysconf_DATA =
140 dist_dbuspolicy_DATA =
141 dist_dbussystemservice_DATA =
142 dist_systemunit_DATA_busnames =
148 TEST_EXTENSIONS = .py
149 PY_LOG_COMPILER = $(PYTHON)
151 noinst_PROGRAMS = $(manual_tests) $(tests)
157 udevlibexec_PROGRAMS =
159 in_files = $(filter %.in,$(EXTRA_DIST))
160 in_in_files = $(filter %.in.in, $(in_files))
161 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
163 CLEANFILES = $(BUILT_SOURCES) \
164 $(pkgconfigdata_DATA) \
165 $(pkgconfiglib_DATA) \
166 $(in_files:.in=) $(in_in_files:.in.in=) \
169 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
170 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
171 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
174 -include $(top_builddir)/config.h \
175 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
176 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
177 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
178 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
179 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
180 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
181 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
182 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
183 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
184 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
185 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
186 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
187 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
188 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
189 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
190 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
191 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
192 -DROOTPREFIX=\"$(rootprefix)\" \
193 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
194 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
195 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
196 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
197 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
198 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
199 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
200 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
201 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
202 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
203 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
204 -DQUOTACHECK=\"$(QUOTACHECK)\" \
205 -DKEXEC=\"$(KEXEC)\" \
206 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
207 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
208 -DLIBDIR=\"$(libdir)\" \
209 -DROOTLIBDIR=\"$(rootlibdir)\" \
210 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
211 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
212 -I $(top_srcdir)/src \
213 -I $(top_builddir)/src/basic \
214 -I $(top_srcdir)/src/basic \
215 -I $(top_srcdir)/src/shared \
216 -I $(top_builddir)/src/shared \
217 -I $(top_srcdir)/src/network \
218 -I $(top_srcdir)/src/login \
219 -I $(top_srcdir)/src/journal \
220 -I $(top_builddir)/src/journal \
221 -I $(top_srcdir)/src/timedate \
222 -I $(top_srcdir)/src/timesync \
223 -I $(top_srcdir)/src/resolve \
224 -I $(top_builddir)/src/resolve \
225 -I $(top_srcdir)/src/systemd \
226 -I $(top_builddir)/src/core \
227 -I $(top_srcdir)/src/core \
228 -I $(top_srcdir)/src/libudev \
229 -I $(top_srcdir)/src/udev \
230 -I $(top_srcdir)/src/udev/net \
231 -I $(top_builddir)/src/udev \
232 -I $(top_srcdir)/src/libsystemd/sd-bus \
233 -I $(top_srcdir)/src/libsystemd/sd-event \
234 -I $(top_srcdir)/src/libsystemd/sd-login \
235 -I $(top_srcdir)/src/libsystemd/sd-netlink \
236 -I $(top_srcdir)/src/libsystemd/sd-network \
237 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
238 -I $(top_srcdir)/src/libsystemd/sd-device \
239 -I $(top_srcdir)/src/libsystemd-network \
240 -I $(top_srcdir)/src/libsystemd-terminal \
243 AM_CFLAGS = $(OUR_CFLAGS)
244 AM_LDFLAGS = $(OUR_LDFLAGS)
246 # ------------------------------------------------------------------------------
247 define move-to-rootlibdir
248 if test "$(libdir)" != "$(rootlibdir)"; then \
249 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
250 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
251 rm -f $(DESTDIR)$(libdir)/$$libname && \
252 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
253 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
259 SHUTDOWN_TARGET_WANTS =
260 LOCAL_FS_TARGET_WANTS =
261 MULTI_USER_TARGET_WANTS =
262 GRAPHICAL_TARGET_WANTS =
263 RESCUE_TARGET_WANTS =
264 SYSINIT_TARGET_WANTS =
265 SOCKETS_TARGET_WANTS =
266 BUSNAMES_TARGET_WANTS =
267 TIMERS_TARGET_WANTS =
268 USER_SOCKETS_TARGET_WANTS =
269 USER_DEFAULT_TARGET_WANTS =
270 USER_BUSNAMES_TARGET_WANTS =
272 SYSTEM_UNIT_ALIASES =
276 install-target-wants-hook:
277 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
280 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
281 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
282 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
283 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
284 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
285 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
286 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
287 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
289 install-busnames-target-wants-hook:
290 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
291 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
294 [ -z "$$what" ] || ( \
295 dir=$(DESTDIR)$$dir/$$wants.wants && \
296 $(MKDIR_P) -m 0755 $$dir && \
299 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
302 install-directories-hook:
303 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
305 install-aliases-hook:
306 set -- $(SYSTEM_UNIT_ALIASES) && \
307 dir=$(systemunitdir) && $(install-aliases)
308 set -- $(USER_UNIT_ALIASES) && \
309 dir=$(userunitdir) && $(install-relative-aliases)
310 set -- $(GENERAL_ALIASES) && \
311 dir= && $(install-relative-aliases)
313 define install-aliases
314 while [ -n "$$1" ]; do \
315 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
316 rm -f $(DESTDIR)$$dir/$$2 && \
317 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
318 shift 2 || exit $$?; \
322 define install-relative-aliases
323 while [ -n "$$1" ]; do \
324 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
325 rm -f $(DESTDIR)$$dir/$$2 && \
326 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
327 shift 2 || exit $$?; \
331 install-touch-usr-hook:
332 touch -c $(DESTDIR)/$(prefix)
334 INSTALL_EXEC_HOOKS += \
335 install-target-wants-hook \
336 install-directories-hook \
337 install-aliases-hook \
338 install-touch-usr-hook
340 INSTALL_EXEC_HOOKS += \
341 install-busnames-target-wants-hook
343 # ------------------------------------------------------------------------------
344 AM_V_M4 = $(AM_V_M4_$(V))
345 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
346 AM_V_M4_0 = @echo " M4 " $@;
348 AM_V_XSLT = $(AM_V_XSLT_$(V))
349 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
350 AM_V_XSLT_0 = @echo " XSLT " $@;
352 AM_V_GPERF = $(AM_V_GPERF_$(V))
353 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
354 AM_V_GPERF_0 = @echo " GPERF " $@;
356 AM_V_LN = $(AM_V_LN_$(V))
357 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
358 AM_V_LN_0 = @echo " LN " $@;
360 AM_V_RM = $(AM_V_RM_$(V))
361 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
362 AM_V_RM_0 = @echo " RM " $@;
364 # ------------------------------------------------------------------------------
368 systemd-ask-password \
369 systemd-tty-ask-password-agent \
370 systemd-machine-id-setup \
377 systemd-detect-virt \
381 systemd-stdio-bridge \
385 src/kernel-install/kernel-install
387 dist_kernelinstall_SCRIPTS = \
388 src/kernel-install/50-depmod.install \
389 src/kernel-install/90-loaderentry.install
391 rootlibexec_PROGRAMS = \
393 systemd-cgroups-agent \
397 systemd-reply-password \
399 systemd-machine-id-commit \
404 systemd-socket-proxyd \
408 rootlibexec_PROGRAMS += \
412 systemgenerator_PROGRAMS = \
413 systemd-getty-generator \
414 systemd-fstab-generator \
415 systemd-system-update-generator \
416 systemd-debug-generator
418 dist_bashcompletion_DATA = \
419 shell-completion/bash/busctl \
420 shell-completion/bash/journalctl \
421 shell-completion/bash/systemd-analyze \
422 shell-completion/bash/systemd-cat \
423 shell-completion/bash/systemd-cgls \
424 shell-completion/bash/systemd-cgtop \
425 shell-completion/bash/systemd-delta \
426 shell-completion/bash/systemd-detect-virt \
427 shell-completion/bash/systemd-nspawn \
428 shell-completion/bash/systemd-run \
429 shell-completion/bash/udevadm \
430 shell-completion/bash/kernel-install
432 nodist_bashcompletion_DATA = \
433 shell-completion/bash/systemctl
435 dist_zshcompletion_DATA = \
436 shell-completion/zsh/_busctl \
437 shell-completion/zsh/_journalctl \
438 shell-completion/zsh/_udevadm \
439 shell-completion/zsh/_kernel-install \
440 shell-completion/zsh/_systemd-nspawn \
441 shell-completion/zsh/_systemd-analyze \
442 shell-completion/zsh/_systemd-run \
443 shell-completion/zsh/_sd_hosts_or_user_at_host \
444 shell-completion/zsh/_sd_outputmodes \
445 shell-completion/zsh/_sd_unit_files \
446 shell-completion/zsh/_systemd-delta \
447 shell-completion/zsh/_systemd
449 nodist_zshcompletion_DATA = \
450 shell-completion/zsh/_systemctl
453 shell-completion/bash/systemctl.in \
454 shell-completion/zsh/_systemctl.in
457 $(nodist_bashcompletion_DATA) \
458 $(nodist_zshcompletion_DATA)
461 sysctl.d/50-default.conf
463 dist_systemunit_DATA = \
464 units/graphical.target \
465 units/multi-user.target \
466 units/emergency.target \
467 units/sysinit.target \
472 units/local-fs.target \
473 units/local-fs-pre.target \
474 units/initrd.target \
475 units/initrd-fs.target \
476 units/initrd-root-fs.target \
477 units/remote-fs.target \
478 units/remote-fs-pre.target \
479 units/network.target \
480 units/network-pre.target \
481 units/network-online.target \
482 units/nss-lookup.target \
483 units/nss-user-lookup.target \
484 units/poweroff.target \
485 units/reboot.target \
486 units/rescue.target \
487 units/rpcbind.target \
488 units/time-sync.target \
489 units/shutdown.target \
491 units/umount.target \
492 units/sigpwr.target \
494 units/sockets.target \
495 units/timers.target \
497 units/suspend.target \
499 units/slices.target \
502 units/systemd-initctl.socket \
503 units/syslog.socket \
504 units/dev-hugepages.mount \
505 units/dev-mqueue.mount \
506 units/sys-kernel-config.mount \
507 units/sys-kernel-debug.mount \
508 units/sys-fs-fuse-connections.mount \
510 units/var-lib-machines.mount \
511 units/printer.target \
513 units/bluetooth.target \
514 units/smartcard.target \
515 units/systemd-ask-password-wall.path \
516 units/systemd-ask-password-console.path \
517 units/systemd-udevd-control.socket \
518 units/systemd-udevd-kernel.socket \
519 units/system-update.target \
520 units/initrd-switch-root.target \
521 units/machines.target
523 dist_systemunit_DATA += \
524 $(dist_systemunit_DATA_busnames)
526 dist_systemunit_DATA_busnames += \
527 units/busnames.target
529 nodist_systemunit_DATA = \
530 units/getty@.service \
531 units/serial-getty@.service \
532 units/console-shell.service \
533 units/console-getty.service \
534 units/container-getty@.service \
535 units/systemd-initctl.service \
536 units/systemd-remount-fs.service \
537 units/systemd-ask-password-wall.service \
538 units/systemd-ask-password-console.service \
539 units/systemd-sysctl.service \
540 units/emergency.service \
541 units/rescue.service \
542 units/user@.service \
543 units/systemd-suspend.service \
544 units/systemd-halt.service \
545 units/systemd-poweroff.service \
546 units/systemd-reboot.service \
547 units/systemd-kexec.service \
548 units/systemd-fsck@.service \
549 units/systemd-fsck-root.service \
550 units/systemd-machine-id-commit.service \
551 units/systemd-udevd.service \
552 units/systemd-udev-trigger.service \
553 units/systemd-udev-settle.service \
554 units/systemd-hwdb-update.service \
555 units/debug-shell.service \
556 units/initrd-parse-etc.service \
557 units/initrd-cleanup.service \
558 units/initrd-udevadm-cleanup-db.service \
559 units/initrd-switch-root.service \
560 units/systemd-nspawn@.service \
561 units/systemd-update-done.service
564 nodist_systemunit_DATA += \
565 units/systemd-update-utmp.service \
566 units/systemd-update-utmp-runlevel.service
569 dist_userunit_DATA = \
570 units/user/basic.target \
571 units/user/default.target \
572 units/user/exit.target
574 nodist_userunit_DATA = \
575 units/user/systemd-exit.service
577 dist_systempreset_DATA = \
578 system-preset/90-systemd.preset
581 units/getty@.service.m4 \
582 units/serial-getty@.service.m4 \
583 units/console-shell.service.m4.in \
584 units/console-getty.service.m4.in \
585 units/container-getty@.service.m4.in \
586 units/rescue.service.in \
587 units/systemd-initctl.service.in \
588 units/systemd-remount-fs.service.in \
589 units/systemd-update-utmp.service.in \
590 units/systemd-update-utmp-runlevel.service.in \
591 units/systemd-ask-password-wall.service.in \
592 units/systemd-ask-password-console.service.in \
593 units/systemd-sysctl.service.in \
594 units/emergency.service.in \
595 units/systemd-halt.service.in \
596 units/systemd-poweroff.service.in \
597 units/systemd-reboot.service.in \
598 units/systemd-kexec.service.in \
599 units/user/systemd-exit.service.in \
600 units/systemd-fsck@.service.in \
601 units/systemd-fsck-root.service.in \
602 units/systemd-machine-id-commit.service.in \
603 units/user@.service.m4.in \
604 units/debug-shell.service.in \
605 units/systemd-suspend.service.in \
606 units/quotaon.service.in \
607 units/initrd-parse-etc.service.in \
608 units/initrd-cleanup.service.in \
609 units/initrd-udevadm-cleanup-db.service.in \
610 units/initrd-switch-root.service.in \
611 units/systemd-nspawn@.service.in \
612 units/systemd-update-done.service.in
615 nodist_systemunit_DATA += \
616 units/rc-local.service \
617 units/halt-local.service
619 systemgenerator_PROGRAMS += \
620 systemd-sysv-generator \
621 systemd-rc-local-generator
625 src/systemctl/systemd-sysv-install.SKELETON \
626 units/rc-local.service.in \
627 units/halt-local.service.in
629 # automake is broken and can't handle files with a dash in front
630 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
632 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
634 units-uninstall-hook:
635 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
637 INSTALL_DATA_HOOKS += units-install-hook
638 UNINSTALL_DATA_HOOKS += units-uninstall-hook
647 src/libsystemd/sd-bus/PORTING-DBUS1 \
648 src/libsystemd/sd-bus/DIFFERENCES \
649 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
660 @INTLTOOL_POLICY_RULE@
662 # ------------------------------------------------------------------------------
667 include Makefile-man.am
669 .PHONY: man update-man-list
670 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
673 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
675 ${XML_FILES:.xml=.html}
677 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
694 $(AM_V_at)$(MKDIR_P) $(dir $@)
695 $(AM_V_LN)$(LN_S) -f ../../man $@
704 man/index.html: man/systemd.index.html
705 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
713 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
714 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
715 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
717 # This target should only be run manually. It recreates Makefile-man.am
718 # file in the source directory based on all man/*.xml files. Run it after
719 # adding, removing, or changing the conditional in a man page.
720 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
721 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
722 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
723 @echo "Makefile-man.am has been regenerated"
725 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
726 $(AM_V_at)$(MKDIR_P) $(dir $@)
727 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
729 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
730 $(AM_V_at)$(MKDIR_P) $(dir $@)
731 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
734 man/systemd.index.xml \
735 man/systemd.directives.xml
738 tools/make-man-rules.py
745 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
746 tools/make-man-index.py \
747 tools/make-directive-index.py \
748 tools/xml_helper.py \
749 man/glib-event-glue.c
751 # ------------------------------------------------------------------------------
752 noinst_LTLIBRARIES += \
755 libbasic_la_SOURCES = \
756 src/basic/missing.h \
757 src/basic/capability.c \
758 src/basic/capability.h \
759 src/basic/conf-files.c \
760 src/basic/conf-files.h \
761 src/basic/hostname-util.h \
762 src/basic/hostname-util.c \
763 src/basic/unit-name.c \
764 src/basic/unit-name.h \
766 src/basic/securebits.h \
767 src/basic/special.h \
769 src/basic/unaligned.h \
772 src/basic/sparse-endian.h \
776 src/basic/lockfile-util.c \
777 src/basic/lockfile-util.h \
778 src/basic/path-util.c \
779 src/basic/path-util.h \
780 src/basic/time-util.c \
781 src/basic/time-util.h \
782 src/basic/locale-util.c \
783 src/basic/locale-util.h \
784 src/basic/signal-util.c \
785 src/basic/signal-util.h \
786 src/basic/mempool.c \
787 src/basic/mempool.h \
788 src/basic/hashmap.c \
789 src/basic/hashmap.h \
790 src/basic/siphash24.c \
791 src/basic/siphash24.h \
793 src/basic/ordered-set.h \
802 src/basic/env-util.c \
803 src/basic/env-util.h \
806 src/basic/strxcpyx.c \
807 src/basic/strxcpyx.h \
810 src/basic/bus-label.c \
811 src/basic/bus-label.h \
812 src/basic/ratelimit.h \
813 src/basic/ratelimit.c \
814 src/basic/exit-status.c \
815 src/basic/exit-status.h \
818 src/basic/smack-util.c \
819 src/basic/smack-util.h \
820 src/basic/device-nodes.c \
821 src/basic/device-nodes.h \
824 src/basic/gunicode.c \
825 src/basic/gunicode.h \
826 src/basic/socket-util.c \
827 src/basic/socket-util.h \
828 src/basic/in-addr-util.c \
829 src/basic/in-addr-util.h \
830 src/basic/ether-addr-util.h \
831 src/basic/replace-var.c \
832 src/basic/replace-var.h \
833 src/basic/clock-util.c \
834 src/basic/clock-util.h \
835 src/basic/calendarspec.c \
836 src/basic/calendarspec.h \
839 src/basic/MurmurHash2.c \
840 src/basic/MurmurHash2.h \
843 src/basic/cgroup-util.c \
844 src/basic/cgroup-util.h \
845 src/basic/errno-list.c \
846 src/basic/errno-list.h \
847 src/basic/af-list.c \
848 src/basic/af-list.h \
849 src/basic/arphrd-list.c \
850 src/basic/arphrd-list.h \
851 src/basic/terminal-util.c \
852 src/basic/terminal-util.h \
853 src/basic/login-util.h \
854 src/basic/login-util.c \
855 src/basic/cap-list.c \
856 src/basic/cap-list.h \
865 src/basic/barrier.c \
866 src/basic/barrier.h \
869 src/basic/memfd-util.c \
870 src/basic/memfd-util.h \
871 src/basic/process-util.c \
872 src/basic/process-util.h \
873 src/basic/random-util.c \
874 src/basic/random-util.h \
880 src/basic/socket-label.c \
883 src/basic/btrfs-util.c \
884 src/basic/btrfs-util.h \
885 src/basic/btrfs-ctree.h \
886 src/basic/selinux-util.c \
887 src/basic/selinux-util.h \
888 src/basic/mkdir-label.c \
889 src/basic/fileio-label.c \
890 src/basic/fileio-label.h \
896 nodist_libbasic_la_SOURCES = \
897 src/basic/errno-from-name.h \
898 src/basic/errno-to-name.h \
899 src/basic/af-from-name.h \
900 src/basic/af-to-name.h \
901 src/basic/arphrd-from-name.h \
902 src/basic/arphrd-to-name.h \
903 src/basic/cap-from-name.h \
904 src/basic/cap-to-name.h
906 libbasic_la_CFLAGS = \
912 libbasic_la_LIBADD = \
919 # -----------------------------------------------------------------------------
920 noinst_LTLIBRARIES += \
923 libshared_la_SOURCES = \
924 src/shared/output-mode.h \
926 src/shared/udev-util.h \
927 src/shared/linux/auto_dev-ioctl.h \
928 src/shared/initreq.h \
929 src/shared/dns-domain.c \
930 src/shared/dns-domain.h \
931 src/shared/architecture.c \
932 src/shared/architecture.h \
933 src/shared/efivars.c \
934 src/shared/efivars.h \
935 src/shared/formats-util.h \
936 src/shared/fstab-util.c \
937 src/shared/fstab-util.h \
938 src/shared/sleep-config.c \
939 src/shared/sleep-config.h \
940 src/shared/conf-parser.c \
941 src/shared/conf-parser.h \
944 src/shared/spawn-polkit-agent.c \
945 src/shared/spawn-polkit-agent.h \
946 src/shared/apparmor-util.c \
947 src/shared/apparmor-util.h \
948 src/shared/ima-util.c \
949 src/shared/ima-util.h \
950 src/shared/ptyfwd.c \
951 src/shared/ptyfwd.h \
954 src/shared/base-filesystem.c \
955 src/shared/base-filesystem.h \
956 src/shared/uid-range.c \
957 src/shared/uid-range.h \
958 src/shared/nss-util.h \
959 src/shared/install.c \
960 src/shared/install.h \
961 src/shared/install-printf.c \
962 src/shared/install-printf.h \
963 src/shared/path-lookup.c \
964 src/shared/path-lookup.h \
965 src/shared/specifier.c \
966 src/shared/specifier.h \
967 src/shared/dev-setup.c \
968 src/shared/dev-setup.h \
969 src/shared/dropin.c \
970 src/shared/dropin.h \
971 src/shared/condition.c \
972 src/shared/condition.h \
973 src/shared/clean-ipc.c \
974 src/shared/clean-ipc.h \
975 src/shared/generator.h \
976 src/shared/generator.c \
977 src/shared/acpi-fpdt.h \
978 src/shared/acpi-fpdt.c \
979 src/shared/boot-timestamps.h \
980 src/shared/boot-timestamps.c \
981 src/shared/cgroup-show.c \
982 src/shared/cgroup-show.h \
983 src/shared/utmp-wtmp.h \
984 src/shared/watchdog.c \
985 src/shared/watchdog.h \
986 src/shared/spawn-ask-password-agent.c \
987 src/shared/spawn-ask-password-agent.h \
988 src/shared/ask-password-api.c \
989 src/shared/ask-password-api.h \
990 src/shared/switch-root.h \
991 src/shared/switch-root.c \
992 src/shared/import-util.c \
993 src/shared/import-util.h \
994 src/shared/sysctl-util.c \
995 src/shared/sysctl-util.h \
996 src/shared/bus-util.c \
997 src/shared/bus-util.h \
998 src/shared/logs-show.c \
999 src/shared/logs-show.h \
1000 src/shared/machine-image.c \
1001 src/shared/machine-image.h \
1002 src/shared/machine-pool.c \
1003 src/shared/machine-pool.h
1006 libshared_la_SOURCES += \
1007 src/shared/utmp-wtmp.c
1011 libshared_la_SOURCES += \
1012 src/shared/seccomp-util.h \
1013 src/shared/seccomp-util.c
1017 libshared_la_SOURCES += \
1018 src/shared/acl-util.c \
1019 src/shared/acl-util.h
1022 libshared_la_CFLAGS = \
1028 libshared_la_LIBADD = \
1029 libsystemd-internal.la \
1030 libsystemd-journal-internal.la \
1031 libudev-internal.la \
1036 # -----------------------------------------------------------------------------
1038 noinst_LTLIBRARIES += \
1041 libfirewall_la_SOURCES = \
1042 src/shared/firewall-util.h \
1043 src/shared/firewall-util.c
1045 libfirewall_la_CFLAGS = \
1049 libfirewall_la_LIBADD = \
1053 # -----------------------------------------------------------------------------
1055 dist_systemunit_DATA += \
1056 units/ldconfig.service
1058 SYSINIT_TARGET_WANTS += \
1062 # ------------------------------------------------------------------------------
1063 noinst_LTLIBRARIES += \
1066 libcore_la_SOURCES = \
1069 src/core/unit-printf.c \
1070 src/core/unit-printf.h \
1073 src/core/manager.c \
1074 src/core/manager.h \
1075 src/core/transaction.c \
1076 src/core/transaction.h \
1077 src/core/load-fragment.c \
1078 src/core/load-fragment.h \
1079 src/core/service.c \
1080 src/core/service.h \
1083 src/core/busname.c \
1084 src/core/busname.h \
1085 src/core/bus-endpoint.c \
1086 src/core/bus-endpoint.h \
1087 src/core/bus-policy.c \
1088 src/core/bus-policy.h \
1091 src/core/snapshot.c \
1092 src/core/snapshot.h \
1097 src/core/automount.c \
1098 src/core/automount.h \
1109 src/core/load-dropin.c \
1110 src/core/load-dropin.h \
1111 src/core/execute.c \
1112 src/core/execute.h \
1117 src/core/dbus-manager.c \
1118 src/core/dbus-manager.h \
1119 src/core/dbus-unit.c \
1120 src/core/dbus-unit.h \
1121 src/core/dbus-job.c \
1122 src/core/dbus-job.h \
1123 src/core/dbus-service.c \
1124 src/core/dbus-service.h \
1125 src/core/dbus-socket.c \
1126 src/core/dbus-socket.h \
1127 src/core/dbus-busname.c \
1128 src/core/dbus-busname.h \
1129 src/core/dbus-target.c \
1130 src/core/dbus-target.h \
1131 src/core/dbus-snapshot.c \
1132 src/core/dbus-snapshot.h \
1133 src/core/dbus-device.c \
1134 src/core/dbus-device.h \
1135 src/core/dbus-mount.c \
1136 src/core/dbus-mount.h \
1137 src/core/dbus-automount.c \
1138 src/core/dbus-automount.h \
1139 src/core/dbus-swap.c \
1140 src/core/dbus-swap.h \
1141 src/core/dbus-timer.c \
1142 src/core/dbus-timer.h \
1143 src/core/dbus-path.c \
1144 src/core/dbus-path.h \
1145 src/core/dbus-slice.c \
1146 src/core/dbus-slice.h \
1147 src/core/dbus-scope.c \
1148 src/core/dbus-scope.h \
1149 src/core/dbus-execute.c \
1150 src/core/dbus-execute.h \
1151 src/core/dbus-kill.c \
1152 src/core/dbus-kill.h \
1153 src/core/dbus-cgroup.c \
1154 src/core/dbus-cgroup.h \
1157 src/core/selinux-access.c \
1158 src/core/selinux-access.h \
1159 src/core/selinux-setup.c \
1160 src/core/selinux-setup.h \
1161 src/core/smack-setup.c \
1162 src/core/smack-setup.h \
1163 src/core/ima-setup.c \
1164 src/core/ima-setup.h \
1165 src/core/locale-setup.h \
1166 src/core/locale-setup.c \
1167 src/core/hostname-setup.c \
1168 src/core/hostname-setup.h \
1169 src/core/machine-id-setup.c \
1170 src/core/machine-id-setup.h \
1171 src/core/mount-setup.c \
1172 src/core/mount-setup.h \
1173 src/core/kmod-setup.c \
1174 src/core/kmod-setup.h \
1175 src/core/loopback-setup.h \
1176 src/core/loopback-setup.c \
1177 src/core/namespace.c \
1178 src/core/namespace.h \
1179 src/core/killall.h \
1180 src/core/killall.c \
1181 src/core/audit-fd.c \
1182 src/core/audit-fd.h \
1183 src/core/show-status.c \
1184 src/core/show-status.h \
1185 src/core/failure-action.c \
1186 src/core/failure-action.h
1188 nodist_libcore_la_SOURCES = \
1189 src/core/load-fragment-gperf.c \
1190 src/core/load-fragment-gperf-nulstr.c
1192 libcore_la_CFLAGS = \
1197 $(APPARMOR_CFLAGS) \
1201 libcore_la_LIBADD = \
1209 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1210 $(AM_V_at)$(MKDIR_P) $(dir $@)
1211 $(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 ";" }' < $< > $@
1213 gperf_gperf_m4_sources = \
1214 src/core/load-fragment-gperf.gperf.m4
1216 gperf_txt_sources = \
1217 src/basic/errno-list.txt \
1218 src/basic/af-list.txt \
1219 src/basic/arphrd-list.txt \
1220 src/basic/cap-list.txt
1223 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1224 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1225 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1226 $(gperf_txt_sources:-list.txt=-from-name.h) \
1227 $(gperf_txt_sources:-list.txt=-to-name.h)
1230 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1232 $(gperf_txt_sources)
1235 $(gperf_gperf_m4_sources) \
1236 $(gperf_gperf_sources)
1239 $(gperf_txt_sources)
1241 %-from-name.gperf: %-list.txt
1242 $(AM_V_at)$(MKDIR_P) $(dir $@)
1243 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1245 %-from-name.h: %-from-name.gperf
1246 $(AM_V_at)$(MKDIR_P) $(dir $@)
1247 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1250 src/basic/errno-list.txt:
1251 $(AM_V_at)$(MKDIR_P) $(dir $@)
1252 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1254 src/basic/errno-to-name.h: src/basic/errno-list.txt
1255 $(AM_V_at)$(MKDIR_P) $(dir $@)
1256 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1259 src/basic/af-list.txt:
1260 $(AM_V_at)$(MKDIR_P) $(dir $@)
1261 $(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; }' >$@
1263 src/basic/af-to-name.h: src/basic/af-list.txt
1264 $(AM_V_at)$(MKDIR_P) $(dir $@)
1265 $(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 "};"}' <$< >$@
1268 src/basic/arphrd-list.txt:
1269 $(AM_V_at)$(MKDIR_P) $(dir $@)
1270 $(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_//' >$@
1272 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1273 $(AM_V_at)$(MKDIR_P) $(dir $@)
1274 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1276 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1277 $(AM_V_at)$(MKDIR_P) $(dir $@)
1278 $(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 }' <$< >$@
1281 src/basic/cap-list.txt:
1282 $(AM_V_at)$(MKDIR_P) $(dir $@)
1283 $(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 >$@
1285 src/basic/cap-to-name.h: src/basic/cap-list.txt
1286 $(AM_V_at)$(MKDIR_P) $(dir $@)
1287 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1289 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1290 $(AM_V_at)$(MKDIR_P) $(dir $@)
1291 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1293 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1294 $(AM_V_at)$(MKDIR_P) $(dir $@)
1295 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1297 audit_list_includes = -include linux/audit.h -include missing.h
1299 audit_list_includes += -include libaudit.h
1302 src/journal/audit_type-list.txt:
1303 $(AM_V_at)$(MKDIR_P) $(dir $@)
1304 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM $(audit_list_includes) - </dev/null | grep -vE 'AUDIT_.*(FIRST|LAST)_' | $(SED) -r -n 's/^#define\s+AUDIT_(\w+)\s+([0-9]{4})\s*$$/\1\t\2/p' | sort -k2 >$@
1306 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1307 $(AM_V_at)$(MKDIR_P) $(dir $@)
1308 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" } {printf " case AUDIT_%s: return \"%s\";\n", $$1, $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@
1311 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1312 $(AM_V_at)$(MKDIR_P) $(dir $@)
1313 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1315 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1316 $(AM_V_at)$(MKDIR_P) $(dir $@)
1317 $(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 " default: return NULL;\n\t}\n}\n" }' <$< >$@
1319 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1320 $(AM_V_at)$(MKDIR_P) $(dir $@)
1321 $(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 }' <$< >$@
1323 # ------------------------------------------------------------------------------
1334 dist_pkgsysconf_DATA += \
1335 src/core/system.conf \
1338 dist_dbuspolicy_DATA += \
1339 src/core/org.freedesktop.systemd1.conf
1341 dist_dbussystemservice_DATA += \
1342 src/core/org.freedesktop.systemd1.service
1344 polkitpolicy_in_in_files += \
1345 src/core/org.freedesktop.systemd1.policy.in.in
1347 pkgconfigdata_DATA += \
1350 nodist_rpmmacros_DATA = \
1351 src/core/macros.systemd
1354 src/core/systemd.pc.in \
1355 src/core/macros.systemd.in
1357 # ------------------------------------------------------------------------------
1397 test-terminal-util \
1409 test-strip-tab-ansi \
1448 test/daughter.service \
1450 test/end.service.in \
1453 test/grandchild.service \
1455 test/hello-after-sleep.target \
1456 test/hello.service \
1458 test/parent-deep.slice \
1461 test/sched_idle_bad.service \
1462 test/sched_idle_ok.service \
1463 test/sched_rr_bad.service \
1464 test/sched_rr_change.service \
1465 test/sched_rr_ok.service \
1466 test/shutdown.target \
1467 test/sleep.service \
1468 test/sockets.target \
1470 test/sysinit.target \
1471 test/testsuite.target \
1472 test/timers.target \
1473 test/unstoppable.service \
1474 test/path-changed.service \
1475 test/path-directorynotempty.service \
1476 test/path-existsglob.service \
1477 test/path-exists.service \
1478 test/path-makedirectory.service \
1479 test/path-modified.service \
1480 test/path-mycustomunit.service \
1481 test/path-service.service \
1482 test/path-changed.path \
1483 test/path-directorynotempty.path \
1484 test/path-existsglob.path \
1485 test/path-exists.path \
1486 test/path-makedirectory.path \
1487 test/path-modified.path \
1488 test/path-unit.path \
1489 test/exec-environment-empty.service \
1490 test/exec-environment-multiple.service \
1491 test/exec-environment.service \
1492 test/exec-group.service \
1493 test/exec-ignoresigpipe-no.service \
1494 test/exec-ignoresigpipe-yes.service \
1495 test/exec-personality-x86-64.service \
1496 test/exec-personality-x86.service \
1497 test/exec-privatedevices-no.service \
1498 test/exec-privatedevices-yes.service \
1499 test/exec-privatetmp-no.service \
1500 test/exec-privatetmp-yes.service \
1501 test/exec-systemcallerrornumber.service \
1502 test/exec-systemcallfilter-failing2.service \
1503 test/exec-systemcallfilter-failing.service \
1504 test/exec-systemcallfilter-not-failing2.service \
1505 test/exec-systemcallfilter-not-failing.service \
1506 test/exec-user.service \
1507 test/exec-workingdirectory.service \
1508 test/exec-umask-0177.service \
1509 test/exec-umask-default.service \
1510 test/bus-policy/hello.conf \
1511 test/bus-policy/methods.conf \
1512 test/bus-policy/ownerships.conf \
1513 test/bus-policy/signals.conf \
1514 test/bus-policy/check-own-rules.conf \
1515 test/bus-policy/many-rules.conf \
1516 test/bus-policy/test.conf
1520 src/test/test-helper.h
1522 test_device_nodes_SOURCES = \
1523 src/test/test-device-nodes.c
1525 test_device_nodes_LDADD = \
1528 test_engine_SOURCES = \
1529 src/test/test-engine.c
1531 test_engine_CFLAGS = \
1535 test_engine_LDADD = \
1538 test_job_type_SOURCES = \
1539 src/test/test-job-type.c
1541 test_job_type_CFLAGS = \
1545 test_job_type_LDADD = \
1558 test_loopback_SOURCES = \
1559 src/test/test-loopback.c
1561 test_loopback_LDADD = \
1564 test_hostname_SOURCES = \
1565 src/test/test-hostname.c
1567 test_hostname_LDADD = \
1570 test_dns_domain_SOURCES = \
1571 src/test/test-dns-domain.c
1573 test_dns_domain_LDADD = \
1574 libsystemd-network.la \
1581 test_boot_timestamp_SOURCES = \
1582 src/test/test-boot-timestamps.c
1584 test_boot_timestamp_LDADD = \
1588 test_unit_name_SOURCES = \
1589 src/test/test-unit-name.c
1591 test_unit_name_CFLAGS = \
1595 test_unit_name_LDADD = \
1598 test_unit_file_SOURCES = \
1599 src/test/test-unit-file.c
1601 test_unit_file_CFLAGS = \
1605 test_unit_file_LDADD = \
1608 test_utf8_SOURCES = \
1609 src/test/test-utf8.c
1614 test_capability_SOURCES = \
1615 src/test/test-capability.c
1617 test_capability_LDADD = \
1620 test_async_SOURCES = \
1621 src/test/test-async.c
1623 test_async_LDADD = \
1626 test_locale_util_SOURCES = \
1627 src/test/test-locale-util.c
1629 test_locale_util_LDADD = \
1632 test_copy_SOURCES = \
1633 src/test/test-copy.c
1638 test_sigbus_SOURCES = \
1639 src/test/test-sigbus.c
1641 test_sigbus_LDADD = \
1644 test_condition_SOURCES = \
1645 src/test/test-condition.c
1647 test_condition_LDADD = \
1650 test_fdset_SOURCES = \
1651 src/test/test-fdset.c
1653 test_fdset_LDADD = \
1656 test_fstab_util_SOURCES = \
1657 src/test/test-fstab-util.c
1659 test_fstab_util_LDADD = \
1662 test_ratelimit_SOURCES = \
1663 src/test/test-ratelimit.c
1665 test_ratelimit_LDADD = \
1668 test_util_SOURCES = \
1669 src/test/test-util.c
1674 test_process_util_SOURCES = \
1675 src/test/test-process-util.c
1677 test_process_util_LDADD = \
1680 test_terminal_util_SOURCES = \
1681 src/test/test-terminal-util.c
1683 test_terminal_util_LDADD = \
1686 test_path_lookup_SOURCES = \
1687 src/test/test-path-lookup.c
1689 test_path_lookup_LDADD = \
1692 test_uid_range_SOURCES = \
1693 src/test/test-uid-range.c
1695 test_uid_range_LDADD = \
1698 test_cap_list_SOURCES = \
1699 src/test/test-cap-list.c
1701 test_cap_list_LDADD = \
1704 test_socket_util_SOURCES = \
1705 src/test/test-socket-util.c
1707 test_socket_util_LDADD = \
1710 test_ring_SOURCES = \
1711 src/test/test-ring.c
1716 test_barrier_SOURCES = \
1717 src/test/test-barrier.c
1719 test_barrier_LDADD = \
1722 test_pty_SOURCES = \
1728 test_tmpfiles_SOURCES = \
1729 src/test/test-tmpfiles.c
1731 test_tmpfiles_LDADD = \
1734 test_namespace_SOURCES = \
1735 src/test/test-namespace.c
1737 test_verbs_SOURCES = \
1738 src/test/test-verbs.c
1740 test_verbs_LDADD = \
1743 test_namespace_LDADD = \
1747 src/test/test-hashmap-ordered.c
1749 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1750 $(AM_V_at)$(MKDIR_P) $(dir $@)
1751 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1752 { if (!match($$0, "^#include")) \
1753 gsub(/hashmap/, "ordered_hashmap"); \
1754 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1755 gsub(/Hashmap/, "OrderedHashmap"); \
1758 nodist_test_hashmap_SOURCES = \
1759 src/test/test-hashmap-ordered.c
1761 test_hashmap_SOURCES = \
1762 src/test/test-hashmap.c \
1763 src/test/test-hashmap-plain.c
1765 test_hashmap_LDADD = \
1768 test_set_SOURCES = \
1774 test_bitmap_SOURCES = \
1775 src/test/test-bitmap.c
1777 test_bitmap_LDADD = \
1780 test_xml_SOURCES = \
1786 test_json_SOURCES = \
1787 src/test/test-json.c
1792 test_list_SOURCES = \
1793 src/test/test-list.c
1798 test_unaligned_LDADD = \
1801 test_unaligned_SOURCES = \
1802 src/test/test-unaligned.c
1804 test_tables_SOURCES = \
1805 src/test/test-tables.c \
1806 src/shared/test-tables.h \
1807 src/bus-proxyd/bus-xml-policy.c \
1808 src/bus-proxyd/bus-xml-policy.h \
1809 src/journal/journald-server.c \
1810 src/journal/journald-server.h
1812 test_tables_CPPFLAGS = \
1814 -I$(top_srcdir)/src/bus-proxyd
1816 test_tables_CFLAGS = \
1820 test_tables_LDADD = \
1821 libjournal-core.la \
1825 test_prioq_SOURCES = \
1826 src/test/test-prioq.c
1828 test_prioq_LDADD = \
1831 test_fileio_SOURCES = \
1832 src/test/test-fileio.c
1834 test_fileio_LDADD = \
1837 test_time_SOURCES = \
1838 src/test/test-time.c
1843 test_architecture_SOURCES = \
1844 src/test/test-architecture.c
1846 test_architecture_LDADD = \
1849 test_log_SOURCES = \
1855 test_ipcrm_SOURCES = \
1856 src/test/test-ipcrm.c
1858 test_ipcrm_LDADD = \
1861 test_btrfs_SOURCES = \
1862 src/test/test-btrfs.c
1864 test_btrfs_LDADD = \
1868 test_firewall_util_SOURCES = \
1869 src/test/test-firewall-util.c
1871 test_firewall_util_CFLAGS = \
1875 test_firewall_util_LDADD = \
1881 test_netlink_manual_SOURCES = \
1882 src/test/test-netlink-manual.c
1884 test_netlink_manual_CFLAGS = \
1888 test_netlink_manual_LDADD = \
1892 test_ellipsize_SOURCES = \
1893 src/test/test-ellipsize.c
1895 test_ellipsize_LDADD = \
1898 test_date_SOURCES = \
1899 src/test/test-date.c
1904 test_sleep_SOURCES = \
1905 src/test/test-sleep.c
1907 test_sleep_LDADD = \
1910 test_replace_var_SOURCES = \
1911 src/test/test-replace-var.c
1913 test_replace_var_LDADD = \
1916 test_calendarspec_SOURCES = \
1917 src/test/test-calendarspec.c
1919 test_calendarspec_LDADD = \
1922 test_strip_tab_ansi_SOURCES = \
1923 src/test/test-strip-tab-ansi.c
1925 test_strip_tab_ansi_LDADD = \
1928 test_daemon_SOURCES = \
1929 src/test/test-daemon.c
1931 test_daemon_LDADD = \
1934 test_cgroup_SOURCES = \
1935 src/test/test-cgroup.c
1937 test_cgroup_LDADD = \
1940 test_cgroup_mask_SOURCES = \
1941 src/test/test-cgroup-mask.c
1943 test_cgroup_mask_CPPFLAGS = \
1946 test_cgroup_mask_CFLAGS = \
1950 test_cgroup_mask_LDADD = \
1953 test_cgroup_util_SOURCES = \
1954 src/test/test-cgroup-util.c
1956 test_cgroup_util_LDADD = \
1959 test_env_replace_SOURCES = \
1960 src/test/test-env-replace.c
1962 test_env_replace_LDADD = \
1965 test_strbuf_SOURCES = \
1966 src/test/test-strbuf.c
1968 test_strbuf_LDADD = \
1971 test_strv_SOURCES = \
1972 src/test/test-strv.c
1977 test_path_util_SOURCES = \
1978 src/test/test-path-util.c
1980 test_path_util_LDADD = \
1983 test_path_SOURCES = \
1984 src/test/test-path.c
1986 test_path_CFLAGS = \
1992 test_execute_SOURCES = \
1993 src/test/test-execute.c
1995 test_execute_CFLAGS = \
1998 test_execute_LDADD = \
2001 test_strxcpyx_SOURCES = \
2002 src/test/test-strxcpyx.c
2004 test_strxcpyx_LDADD = \
2007 test_install_SOURCES = \
2008 src/test/test-install.c
2010 test_install_LDADD = \
2013 test_watchdog_SOURCES = \
2014 src/test/test-watchdog.c
2016 test_watchdog_LDADD = \
2019 test_sched_prio_SOURCES = \
2020 src/test/test-sched-prio.c
2022 test_sched_prio_CPPFLAGS = \
2025 test_sched_prio_CFLAGS = \
2029 test_sched_prio_LDADD = \
2032 test_conf_files_SOURCES = \
2033 src/test/test-conf-files.c
2035 test_conf_files_LDADD = \
2038 test_conf_parser_SOURCES = \
2039 src/test/test-conf-parser.c
2041 test_conf_parser_LDADD = \
2044 test_bus_policy_SOURCES = \
2045 src/bus-proxyd/test-bus-xml-policy.c
2047 test_bus_policy_LDADD = \
2048 libbus-proxy-core.la \
2051 # ------------------------------------------------------------------------------
2052 ## .PHONY so it always rebuilds it
2053 .PHONY: coverage lcov-run lcov-report coverage-sync
2055 # run lcov from scratch, always
2060 coverage_dir = coverage
2061 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2064 # reset run coverage tests
2066 @rm -rf $(coverage_dir)
2067 lcov $(coverage_opts) --zerocounters
2070 # generate report based on current coverage data
2072 $(MKDIR_P) $(coverage_dir)
2073 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2074 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2075 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2076 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2077 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2079 # lcov doesn't work properly with vpath builds, make sure that bad
2080 # output is not uploaded by mistake.
2081 coverage-sync: coverage
2082 test "$(builddir)" = "$(srcdir)"
2083 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2086 lcov-run lcov-report:
2087 echo "Need to reconfigure with --enable-coverage"
2090 # ------------------------------------------------------------------------------
2091 systemd_analyze_SOURCES = \
2092 src/analyze/analyze.c \
2093 src/analyze/analyze-verify.c \
2094 src/analyze/analyze-verify.h
2096 systemd_analyze_CFLAGS = \
2100 systemd_analyze_LDADD = \
2103 # ------------------------------------------------------------------------------
2104 systemd_initctl_SOURCES = \
2105 src/initctl/initctl.c
2107 systemd_initctl_LDADD = \
2110 # ------------------------------------------------------------------------------
2111 systemd_update_utmp_SOURCES = \
2112 src/update-utmp/update-utmp.c
2114 systemd_update_utmp_CFLAGS = \
2118 systemd_update_utmp_LDADD = \
2122 # ------------------------------------------------------------------------------
2123 systemd_update_done_SOURCES = \
2124 src/update-done/update-done.c
2126 systemd_update_done_LDADD = \
2129 # ------------------------------------------------------------------------------
2130 systemd_shutdown_SOURCES = \
2133 src/core/shutdown.c \
2134 src/core/mount-setup.c \
2135 src/core/mount-setup.h \
2136 src/core/killall.h \
2139 systemd_shutdown_LDADD = \
2142 # ------------------------------------------------------------------------------
2144 systemd_modules_load_SOURCES = \
2145 src/modules-load/modules-load.c
2147 systemd_modules_load_CFLAGS = \
2151 systemd_modules_load_LDADD = \
2155 rootlibexec_PROGRAMS += \
2156 systemd-modules-load
2158 nodist_systemunit_DATA += \
2159 units/systemd-modules-load.service
2161 SYSINIT_TARGET_WANTS += \
2162 systemd-modules-load.service
2165 nodist_systemunit_DATA += \
2166 units/kmod-static-nodes.service
2168 SYSINIT_TARGET_WANTS += \
2169 kmod-static-nodes.service
2174 units/systemd-modules-load.service.in \
2175 units/kmod-static-nodes.service.in
2177 # ------------------------------------------------------------------------------
2179 systemd_tmpfiles_SOURCES = \
2180 src/tmpfiles/tmpfiles.c
2182 systemd_tmpfiles_LDADD = \
2185 rootbin_PROGRAMS += \
2188 dist_systemunit_DATA += \
2189 units/systemd-tmpfiles-clean.timer
2191 nodist_systemunit_DATA += \
2192 units/systemd-tmpfiles-setup-dev.service \
2193 units/systemd-tmpfiles-setup.service \
2194 units/systemd-tmpfiles-clean.service
2196 nodist_tmpfiles_DATA = \
2197 tmpfiles.d/systemd.conf \
2200 dist_tmpfiles_DATA = \
2201 tmpfiles.d/systemd-nologin.conf \
2202 tmpfiles.d/tmp.conf \
2203 tmpfiles.d/x11.conf \
2204 tmpfiles.d/var.conf \
2205 tmpfiles.d/home.conf \
2206 tmpfiles.d/systemd-nspawn.conf \
2207 tmpfiles.d/journal-nocow.conf
2210 dist_tmpfiles_DATA += \
2211 tmpfiles.d/legacy.conf
2214 SYSINIT_TARGET_WANTS += \
2215 systemd-tmpfiles-setup-dev.service \
2216 systemd-tmpfiles-setup.service
2218 dist_zshcompletion_DATA += \
2219 shell-completion/zsh/_systemd-tmpfiles
2221 TIMERS_TARGET_WANTS += \
2222 systemd-tmpfiles-clean.timer
2226 $(sysconfdir)/tmpfiles.d
2230 tmpfiles.d/systemd.conf.m4 \
2231 tmpfiles.d/etc.conf.m4 \
2232 units/systemd-tmpfiles-setup-dev.service.in \
2233 units/systemd-tmpfiles-setup.service.in \
2234 units/systemd-tmpfiles-clean.service.in
2236 # ------------------------------------------------------------------------------
2238 systemd_sysusers_SOURCES = \
2239 src/sysusers/sysusers.c
2241 systemd_sysusers_LDADD = \
2244 rootbin_PROGRAMS += \
2247 nodist_systemunit_DATA += \
2248 units/systemd-sysusers.service
2250 SYSINIT_TARGET_WANTS += \
2251 systemd-sysusers.service
2253 nodist_sysusers_DATA = \
2254 sysusers.d/systemd.conf \
2255 sysusers.d/basic.conf
2262 units/systemd-sysusers.service.in \
2263 sysusers.d/systemd.conf.m4 \
2264 sysusers.d/basic.conf.in
2266 # ------------------------------------------------------------------------------
2267 dist_factory_etc_DATA = \
2268 factory/etc/nsswitch.conf
2271 dist_factory_pam_DATA = \
2272 factory/etc/pam.d/system-auth \
2273 factory/etc/pam.d/other
2276 # ------------------------------------------------------------------------------
2278 systemd_firstboot_SOURCES = \
2279 src/firstboot/firstboot.c
2281 systemd_firstboot_LDADD = \
2285 rootbin_PROGRAMS += \
2288 nodist_systemunit_DATA += \
2289 units/systemd-firstboot.service
2291 SYSINIT_TARGET_WANTS += \
2292 systemd-firstboot.service
2296 units/systemd-firstboot.service.in
2298 # ------------------------------------------------------------------------------
2299 systemd_machine_id_setup_SOURCES = \
2300 src/machine-id-setup/machine-id-setup-main.c \
2301 src/core/machine-id-setup.c \
2302 src/core/machine-id-setup.h
2304 systemd_machine_id_setup_LDADD = \
2307 # ------------------------------------------------------------------------------
2308 systemd_sysctl_SOURCES = \
2311 systemd_sysctl_LDADD = \
2314 # ------------------------------------------------------------------------------
2315 systemd_sleep_SOURCES = \
2318 systemd_sleep_LDADD = \
2321 # ------------------------------------------------------------------------------
2322 systemd_fsck_SOURCES = \
2325 systemd_fsck_LDADD = \
2328 # ------------------------------------------------------------------------------
2329 systemd_machine_id_commit_SOURCES = \
2330 src/machine-id-commit/machine-id-commit.c \
2331 src/core/machine-id-setup.c \
2332 src/core/machine-id-setup.h
2334 systemd_machine_id_commit_LDADD = \
2337 SYSINIT_TARGET_WANTS += \
2338 systemd-machine-id-commit.service
2340 # ------------------------------------------------------------------------------
2341 systemd_ac_power_SOURCES = \
2342 src/ac-power/ac-power.c
2344 systemd_ac_power_LDADD = \
2347 # ------------------------------------------------------------------------------
2348 systemd_detect_virt_SOURCES = \
2349 src/detect-virt/detect-virt.c
2351 systemd_detect_virt_LDADD = \
2354 INSTALL_EXEC_HOOKS += \
2355 systemd-detect-virt-install-hook
2357 # ------------------------------------------------------------------------------
2358 systemd_delta_SOURCES = \
2361 systemd_delta_LDADD = \
2364 # ------------------------------------------------------------------------------
2365 systemd_getty_generator_SOURCES = \
2366 src/getty-generator/getty-generator.c
2368 systemd_getty_generator_LDADD = \
2371 # ------------------------------------------------------------------------------
2372 systemd_debug_generator_SOURCES = \
2373 src/debug-generator/debug-generator.c
2375 systemd_debug_generator_LDADD = \
2378 # ------------------------------------------------------------------------------
2379 systemd_fstab_generator_SOURCES = \
2380 src/fstab-generator/fstab-generator.c \
2381 src/core/mount-setup.c
2383 systemd_fstab_generator_LDADD = \
2386 # ------------------------------------------------------------------------------
2387 systemd_system_update_generator_SOURCES = \
2388 src/system-update-generator/system-update-generator.c
2390 systemd_system_update_generator_LDADD = \
2393 # ------------------------------------------------------------------------------
2395 systemgenerator_PROGRAMS += \
2396 systemd-hibernate-resume-generator
2398 rootlibexec_PROGRAMS += \
2399 systemd-hibernate-resume
2401 systemd_hibernate_resume_SOURCES = \
2402 src/hibernate-resume/hibernate-resume.c
2404 systemd_hibernate_resume_LDADD = \
2407 systemd_hibernate_resume_generator_SOURCES = \
2408 src/hibernate-resume/hibernate-resume-generator.c
2410 systemd_hibernate_resume_generator_LDADD = \
2413 dist_systemunit_DATA += \
2414 units/hibernate.target \
2415 units/hybrid-sleep.target
2417 nodist_systemunit_DATA += \
2418 units/systemd-hibernate.service \
2419 units/systemd-hibernate-resume@.service \
2420 units/systemd-hybrid-sleep.service
2424 units/systemd-hibernate.service.in \
2425 units/systemd-hibernate-resume@.service.in \
2426 units/systemd-hybrid-sleep.service.in
2428 # ------------------------------------------------------------------------------
2430 systemgenerator_PROGRAMS += \
2431 systemd-efi-boot-generator
2433 systemd_efi_boot_generator_SOURCES = \
2434 src/efi-boot-generator/efi-boot-generator.c
2436 systemd_efi_boot_generator_LDADD = \
2439 # ------------------------------------------------------------------------------
2444 bootctl_CPPFLAGS = \
2446 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2447 -DBOOTLIBDIR=\"$(bootlibdir)\"
2460 dist_bashcompletion_DATA += \
2461 shell-completion/bash/bootctl
2463 dist_zshcompletion_DATA += \
2464 shell-completion/zsh/_bootctl
2467 # ------------------------------------------------------------------------------
2471 -I$(top_builddir) -include config.h \
2472 -I$(EFI_INC_DIR)/efi \
2473 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2474 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2487 -fno-strict-aliasing \
2488 -fno-stack-protector \
2490 -Wno-missing-field-initializers
2497 -DEFI_FUNCTION_WRAPPER \
2498 -DGNU_EFI_USE_MS_ABI
2509 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2515 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2517 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2518 # and add required symbols manually.
2520 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2521 EFI_FORMAT = -O binary
2523 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2528 # ------------------------------------------------------------------------------
2529 systemd_boot_headers = \
2530 src/boot/efi/util.h \
2531 src/boot/efi/console.h \
2532 src/boot/efi/graphics.h \
2533 src/boot/efi/pefile.h
2535 systemd_boot_sources = \
2536 src/boot/efi/util.c \
2537 src/boot/efi/console.c \
2538 src/boot/efi/graphics.c \
2539 src/boot/efi/pefile.c \
2542 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2546 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2547 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2548 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2550 bootlib_DATA = $(systemd_boot)
2551 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2553 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2554 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2555 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2557 $(systemd_boot_solib): $(systemd_boot_objects)
2558 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2559 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2560 nm -D -u $@ | grep ' U ' && exit 1 || :
2562 $(systemd_boot): $(systemd_boot_solib)
2563 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2564 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2568 # ------------------------------------------------------------------------------
2570 src/boot/efi/util.h \
2571 src/boot/efi/pefile.h \
2572 src/boot/efi/graphics.h \
2573 src/boot/efi/splash.h \
2574 src/boot/efi/linux.h
2577 src/boot/efi/util.c \
2578 src/boot/efi/pefile.c \
2579 src/boot/efi/graphics.c \
2580 src/boot/efi/splash.c \
2581 src/boot/efi/linux.c \
2591 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2592 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2593 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2595 bootlib_DATA += $(stub)
2596 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2598 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2599 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2600 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2602 $(stub_solib): $(stub_objects)
2603 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2604 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2605 nm -D -u $@ | grep ' U ' && exit 1 || :
2607 $(stub): $(stub_solib)
2608 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2609 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2611 # ------------------------------------------------------------------------------
2612 CLEANFILES += test-efi-disk.img
2614 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2615 $(AM_V_GEN)test/test-efi-create-disk.sh
2617 test-efi: test-efi-disk.img
2618 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2622 EXTRA_DIST += test/test-efi-create-disk.sh
2624 # ------------------------------------------------------------------------------
2626 systemgenerator_PROGRAMS += \
2627 systemd-gpt-auto-generator
2629 systemd_gpt_auto_generator_SOURCES = \
2630 src/gpt-auto-generator/gpt-auto-generator.c \
2631 src/basic/blkid-util.h
2633 systemd_gpt_auto_generator_LDADD = \
2637 systemd_gpt_auto_generator_CFLAGS = \
2642 # ------------------------------------------------------------------------------
2643 systemgenerator_PROGRAMS += \
2644 systemd-dbus1-generator
2646 systemd_dbus1_generator_SOURCES = \
2647 src/dbus1-generator/dbus1-generator.c
2649 systemd_dbus1_generator_LDADD = \
2652 dbus1-generator-install-hook:
2653 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2654 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2655 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2657 dbus1-generator-uninstall-hook:
2658 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2660 dist_xinitrc_SCRIPTS = \
2661 xorg/50-systemd-user.sh
2663 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2664 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2666 # ------------------------------------------------------------------------------
2667 systemd_sysv_generator_SOURCES = \
2668 src/sysv-generator/sysv-generator.c
2670 systemd_sysv_generator_LDADD = \
2673 # ------------------------------------------------------------------------------
2674 systemd_rc_local_generator_SOURCES = \
2675 src/rc-local-generator/rc-local-generator.c
2677 systemd_rc_local_generator_LDADD = \
2680 # ------------------------------------------------------------------------------
2681 systemd_remount_fs_SOURCES = \
2682 src/remount-fs/remount-fs.c \
2683 src/core/mount-setup.c \
2684 src/core/mount-setup.h
2686 systemd_remount_fs_LDADD = \
2689 # ------------------------------------------------------------------------------
2690 systemd_cgroups_agent_SOURCES = \
2691 src/cgroups-agent/cgroups-agent.c
2693 systemd_cgroups_agent_LDADD = \
2696 # ------------------------------------------------------------------------------
2697 systemd_escape_SOURCES = \
2700 systemd_escape_LDADD = \
2703 # -----------------------------------------------------------------------------
2704 systemctl_SOURCES = \
2705 src/systemctl/systemctl.c
2710 # ------------------------------------------------------------------------------
2711 systemd_notify_SOURCES = \
2714 systemd_notify_LDADD = \
2717 # ------------------------------------------------------------------------------
2718 systemd_path_SOURCES = \
2721 systemd_path_LDADD = \
2724 # ------------------------------------------------------------------------------
2725 systemd_ask_password_SOURCES = \
2726 src/ask-password/ask-password.c
2728 systemd_ask_password_LDADD = \
2731 # ------------------------------------------------------------------------------
2732 systemd_reply_password_SOURCES = \
2733 src/reply-password/reply-password.c
2735 systemd_reply_password_LDADD = \
2738 # ------------------------------------------------------------------------------
2739 systemd_cgls_SOURCES = \
2742 systemd_cgls_LDADD = \
2745 # ------------------------------------------------------------------------------
2746 systemd_cgtop_SOURCES = \
2749 systemd_cgtop_LDADD = \
2752 # ------------------------------------------------------------------------------
2753 systemd_nspawn_SOURCES = \
2754 src/nspawn/nspawn.c \
2755 src/core/mount-setup.c \
2756 src/core/mount-setup.h \
2757 src/core/loopback-setup.c \
2758 src/core/loopback-setup.h
2760 systemd_nspawn_CFLAGS = \
2765 systemd_nspawn_LDADD = \
2770 systemd_nspawn_LDADD += \
2774 # ------------------------------------------------------------------------------
2775 systemd_run_SOURCES = \
2778 systemd_run_LDADD = \
2781 # ------------------------------------------------------------------------------
2782 noinst_LTLIBRARIES += \
2783 libbus-proxy-core.la
2785 libbus_proxy_core_la_SOURCES = \
2786 src/bus-proxyd/bus-xml-policy.c \
2787 src/bus-proxyd/bus-xml-policy.h \
2788 src/bus-proxyd/driver.c \
2789 src/bus-proxyd/driver.h \
2790 src/bus-proxyd/proxy.c \
2791 src/bus-proxyd/proxy.h \
2792 src/bus-proxyd/synthesize.c \
2793 src/bus-proxyd/synthesize.h
2795 libbus_proxy_core_la_LIBADD = \
2798 systemd_bus_proxyd_SOURCES = \
2799 src/bus-proxyd/bus-proxyd.c
2801 systemd_bus_proxyd_LDADD = \
2802 libbus-proxy-core.la \
2805 systemd_stdio_bridge_SOURCES = \
2806 src/bus-proxyd/stdio-bridge.c
2808 systemd_stdio_bridge_LDADD = \
2809 libbus-proxy-core.la \
2812 nodist_systemunit_DATA += \
2813 units/systemd-bus-proxyd.service
2815 dist_systemunit_DATA += \
2816 units/systemd-bus-proxyd.socket
2818 nodist_userunit_DATA += \
2819 units/user/systemd-bus-proxyd.service
2821 dist_userunit_DATA += \
2822 units/user/systemd-bus-proxyd.socket
2825 units/systemd-bus-proxyd.service.m4.in \
2826 units/user/systemd-bus-proxyd.service.in
2829 bus-proxyd-set-cap-hook:
2830 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2832 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2835 # ------------------------------------------------------------------------------
2836 systemd_tty_ask_password_agent_SOURCES = \
2837 src/tty-ask-password-agent/tty-ask-password-agent.c
2839 systemd_tty_ask_password_agent_LDADD = \
2842 # ------------------------------------------------------------------------------
2843 libsystemd_internal_la_SOURCES = \
2844 src/systemd/sd-bus.h \
2845 src/systemd/sd-bus-protocol.h \
2846 src/systemd/sd-bus-vtable.h \
2847 src/systemd/sd-utf8.h \
2848 src/systemd/sd-event.h \
2849 src/systemd/sd-netlink.h \
2850 src/systemd/sd-resolve.h \
2851 src/systemd/sd-login.h \
2852 src/systemd/sd-id128.h \
2853 src/systemd/sd-daemon.h \
2854 src/systemd/sd-path.h \
2855 src/systemd/sd-network.h \
2856 src/systemd/sd-hwdb.h \
2857 src/systemd/sd-device.h \
2858 src/libsystemd/libsystemd.sym \
2859 src/libsystemd/sd-bus/sd-bus.c \
2860 src/libsystemd/sd-bus/bus-control.c \
2861 src/libsystemd/sd-bus/bus-control.h \
2862 src/libsystemd/sd-bus/bus-error.c \
2863 src/libsystemd/sd-bus/bus-error.h \
2864 src/libsystemd/sd-bus/bus-common-errors.h \
2865 src/libsystemd/sd-bus/bus-common-errors.c \
2866 src/libsystemd/sd-bus/bus-internal.c \
2867 src/libsystemd/sd-bus/bus-internal.h \
2868 src/libsystemd/sd-bus/bus-socket.c \
2869 src/libsystemd/sd-bus/bus-socket.h \
2870 src/libsystemd/sd-bus/bus-kernel.c \
2871 src/libsystemd/sd-bus/bus-kernel.h \
2872 src/libsystemd/sd-bus/bus-container.c \
2873 src/libsystemd/sd-bus/bus-container.h \
2874 src/libsystemd/sd-bus/bus-message.c \
2875 src/libsystemd/sd-bus/bus-message.h \
2876 src/libsystemd/sd-bus/bus-creds.c \
2877 src/libsystemd/sd-bus/bus-creds.h \
2878 src/libsystemd/sd-bus/bus-signature.c \
2879 src/libsystemd/sd-bus/bus-signature.h \
2880 src/libsystemd/sd-bus/bus-type.c \
2881 src/libsystemd/sd-bus/bus-type.h \
2882 src/libsystemd/sd-bus/bus-match.c \
2883 src/libsystemd/sd-bus/bus-match.h \
2884 src/libsystemd/sd-bus/bus-bloom.c \
2885 src/libsystemd/sd-bus/bus-bloom.h \
2886 src/libsystemd/sd-bus/bus-introspect.c \
2887 src/libsystemd/sd-bus/bus-introspect.h \
2888 src/libsystemd/sd-bus/bus-objects.c \
2889 src/libsystemd/sd-bus/bus-objects.h \
2890 src/libsystemd/sd-bus/bus-gvariant.c \
2891 src/libsystemd/sd-bus/bus-gvariant.h \
2892 src/libsystemd/sd-bus/bus-convenience.c \
2893 src/libsystemd/sd-bus/bus-track.c \
2894 src/libsystemd/sd-bus/bus-track.h \
2895 src/libsystemd/sd-bus/bus-slot.c \
2896 src/libsystemd/sd-bus/bus-slot.h \
2897 src/libsystemd/sd-bus/bus-protocol.h \
2898 src/libsystemd/sd-bus/kdbus.h \
2899 src/libsystemd/sd-bus/bus-dump.c \
2900 src/libsystemd/sd-bus/bus-dump.h \
2901 src/libsystemd/sd-utf8/sd-utf8.c \
2902 src/libsystemd/sd-event/sd-event.c \
2903 src/libsystemd/sd-event/event-util.h \
2904 src/libsystemd/sd-netlink/sd-netlink.c \
2905 src/libsystemd/sd-netlink/netlink-internal.h \
2906 src/libsystemd/sd-netlink/netlink-message.c \
2907 src/libsystemd/sd-netlink/netlink-socket.c \
2908 src/libsystemd/sd-netlink/rtnl-message.c \
2909 src/libsystemd/sd-netlink/netlink-types.h \
2910 src/libsystemd/sd-netlink/netlink-types.c \
2911 src/libsystemd/sd-netlink/netlink-util.h \
2912 src/libsystemd/sd-netlink/netlink-util.c \
2913 src/libsystemd/sd-netlink/local-addresses.h \
2914 src/libsystemd/sd-netlink/local-addresses.c \
2915 src/libsystemd/sd-id128/sd-id128.c \
2916 src/libsystemd/sd-daemon/sd-daemon.c \
2917 src/libsystemd/sd-login/sd-login.c \
2918 src/libsystemd/sd-path/sd-path.c \
2919 src/libsystemd/sd-network/sd-network.c \
2920 src/libsystemd/sd-network/network-util.h \
2921 src/libsystemd/sd-network/network-util.c \
2922 src/libsystemd/sd-hwdb/sd-hwdb.c \
2923 src/libsystemd/sd-hwdb/hwdb-util.h \
2924 src/libsystemd/sd-hwdb/hwdb-internal.h \
2925 src/libsystemd/sd-device/device-internal.h \
2926 src/libsystemd/sd-device/device-util.h \
2927 src/libsystemd/sd-device/device-enumerator.c \
2928 src/libsystemd/sd-device/device-enumerator-private.h \
2929 src/libsystemd/sd-device/sd-device.c \
2930 src/libsystemd/sd-device/device-private.c \
2931 src/libsystemd/sd-device/device-private.h \
2932 src/libsystemd/sd-resolve/sd-resolve.c \
2933 src/libsystemd/sd-resolve/resolve-util.h
2935 libsystemd_internal_la_LIBADD = \
2939 noinst_LTLIBRARIES += \
2940 libsystemd-internal.la
2943 src/libsystemd/libsystemd.pc.in \
2944 src/libsystemd/sd-bus/DIFFERENCES \
2945 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2947 libsystemd_la_SOURCES = \
2948 $(libsystemd_internal_la_SOURCES) \
2949 $(libsystemd_journal_internal_la_SOURCES)
2951 nodist_libsystemd_la_SOURCES = \
2952 $(nodist_libsystemd_internal_la_SOURCES)
2954 libsystemd_la_CFLAGS = \
2955 $(libsystemd_internal_la_CFLAGS) \
2956 $(libsystemd_journal_internal_la_CFLAGS)
2958 libsystemd_la_LDFLAGS = \
2960 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2961 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
2963 libsystemd_la_LIBADD = \
2964 $(libsystemd_internal_la_LIBADD) \
2965 $(libsystemd_journal_internal_la_LIBADD)
2967 libsystemd-install-hook:
2968 libname=libsystemd.so && $(move-to-rootlibdir)
2970 libsystemd-uninstall-hook:
2971 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2973 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2974 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2976 pkgconfiglib_DATA += \
2977 src/libsystemd/libsystemd.pc
2979 pkginclude_HEADERS += \
2980 src/systemd/sd-bus.h \
2981 src/systemd/sd-bus-protocol.h \
2982 src/systemd/sd-bus-vtable.h \
2983 src/systemd/sd-event.h \
2984 src/systemd/sd-login.h \
2985 src/systemd/sd-id128.h \
2986 src/systemd/sd-daemon.h
2988 lib_LTLIBRARIES += \
2993 test-bus-signature \
2994 test-bus-benchmark \
3001 test-bus-kernel-bloom \
3002 test-bus-zero-copy \
3003 test-bus-introspect \
3010 test-local-addresses \
3016 test_bus_marshal_SOURCES = \
3017 src/libsystemd/sd-bus/test-bus-marshal.c
3019 test_bus_marshal_LDADD = \
3024 test_bus_marshal_CFLAGS = \
3029 test_bus_signature_SOURCES = \
3030 src/libsystemd/sd-bus/test-bus-signature.c
3032 test_bus_signature_LDADD = \
3035 test_bus_chat_SOURCES = \
3036 src/libsystemd/sd-bus/test-bus-chat.c
3038 test_bus_chat_LDADD = \
3041 test_bus_cleanup_SOURCES = \
3042 src/libsystemd/sd-bus/test-bus-cleanup.c
3044 test_bus_cleanup_CFLAGS = \
3048 test_bus_cleanup_LDADD = \
3051 test_bus_server_SOURCES = \
3052 src/libsystemd/sd-bus/test-bus-server.c
3054 test_bus_server_LDADD = \
3057 test_bus_objects_SOURCES = \
3058 src/libsystemd/sd-bus/test-bus-objects.c
3060 test_bus_objects_LDADD = \
3063 test_bus_error_SOURCES = \
3064 src/libsystemd/sd-bus/test-bus-error.c
3066 test_bus_error_LDADD = \
3069 test_bus_gvariant_SOURCES = \
3070 src/libsystemd/sd-bus/test-bus-gvariant.c
3072 test_bus_gvariant_LDADD = \
3076 test_bus_gvariant_CFLAGS = \
3080 test_bus_creds_SOURCES = \
3081 src/libsystemd/sd-bus/test-bus-creds.c
3083 test_bus_creds_LDADD = \
3086 test_bus_match_SOURCES = \
3087 src/libsystemd/sd-bus/test-bus-match.c
3089 test_bus_match_LDADD = \
3092 test_bus_proxy_SOURCES = \
3093 src/libsystemd/sd-bus/test-bus-proxy.c
3095 test_bus_proxy_LDADD = \
3098 test_bus_kernel_SOURCES = \
3099 src/libsystemd/sd-bus/test-bus-kernel.c
3101 test_bus_kernel_LDADD = \
3104 test_bus_kernel_bloom_SOURCES = \
3105 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3107 test_bus_kernel_bloom_LDADD = \
3110 test_bus_benchmark_SOURCES = \
3111 src/libsystemd/sd-bus/test-bus-benchmark.c
3113 test_bus_benchmark_LDADD = \
3116 test_bus_zero_copy_SOURCES = \
3117 src/libsystemd/sd-bus/test-bus-zero-copy.c
3119 test_bus_zero_copy_LDADD = \
3122 test_bus_introspect_SOURCES = \
3123 src/libsystemd/sd-bus/test-bus-introspect.c
3125 test_bus_introspect_LDADD = \
3128 test_event_SOURCES = \
3129 src/libsystemd/sd-event/test-event.c
3131 test_event_LDADD = \
3134 test_netlink_SOURCES = \
3135 src/libsystemd/sd-netlink/test-netlink.c
3137 test_netlink_LDADD = \
3140 test_local_addresses_SOURCES = \
3141 src/libsystemd/sd-netlink/test-local-addresses.c
3143 test_local_addresses_LDADD = \
3146 test_resolve_SOURCES = \
3147 src/libsystemd/sd-resolve/test-resolve.c
3149 test_resolve_LDADD = \
3153 src/libsystemd/sd-bus/busctl.c \
3154 src/libsystemd/sd-bus/busctl-introspect.c \
3155 src/libsystemd/sd-bus/busctl-introspect.h
3160 # ------------------------------------------------------------------------------
3161 noinst_LTLIBRARIES += \
3162 libsystemd-network.la
3164 libsystemd_network_la_CFLAGS = \
3168 libsystemd_network_la_SOURCES = \
3169 src/systemd/sd-dhcp-client.h \
3170 src/systemd/sd-dhcp-server.h \
3171 src/systemd/sd-dhcp-lease.h \
3172 src/systemd/sd-ipv4ll.h \
3173 src/systemd/sd-icmp6-nd.h \
3174 src/systemd/sd-dhcp6-client.h \
3175 src/systemd/sd-dhcp6-lease.h \
3176 src/systemd/sd-pppoe.h \
3177 src/systemd/sd-lldp.h \
3178 src/libsystemd-network/sd-dhcp-client.c \
3179 src/libsystemd-network/sd-dhcp-server.c \
3180 src/libsystemd-network/dhcp-network.c \
3181 src/libsystemd-network/dhcp-option.c \
3182 src/libsystemd-network/dhcp-packet.c \
3183 src/libsystemd-network/dhcp-internal.h \
3184 src/libsystemd-network/dhcp-server-internal.h \
3185 src/libsystemd-network/dhcp-protocol.h \
3186 src/libsystemd-network/dhcp-lease-internal.h \
3187 src/libsystemd-network/sd-dhcp-lease.c \
3188 src/libsystemd-network/sd-ipv4ll.c \
3189 src/libsystemd-network/ipv4ll-network.c \
3190 src/libsystemd-network/ipv4ll-packet.c \
3191 src/libsystemd-network/ipv4ll-internal.h \
3192 src/libsystemd-network/sd-pppoe.c \
3193 src/libsystemd-network/network-internal.c \
3194 src/libsystemd-network/network-internal.h \
3195 src/libsystemd-network/sd-icmp6-nd.c \
3196 src/libsystemd-network/sd-dhcp6-client.c \
3197 src/libsystemd-network/dhcp6-internal.h \
3198 src/libsystemd-network/dhcp6-protocol.h \
3199 src/libsystemd-network/dhcp6-network.c \
3200 src/libsystemd-network/dhcp6-option.c \
3201 src/libsystemd-network/dhcp6-lease-internal.h \
3202 src/libsystemd-network/sd-dhcp6-lease.c \
3203 src/libsystemd-network/dhcp-identifier.h \
3204 src/libsystemd-network/dhcp-identifier.c \
3205 src/libsystemd-network/lldp.h \
3206 src/libsystemd-network/lldp-tlv.h \
3207 src/libsystemd-network/lldp-tlv.c \
3208 src/libsystemd-network/lldp-network.h \
3209 src/libsystemd-network/lldp-network.c \
3210 src/libsystemd-network/lldp-port.h \
3211 src/libsystemd-network/lldp-port.c \
3212 src/libsystemd-network/lldp-internal.h \
3213 src/libsystemd-network/lldp-internal.c \
3214 src/libsystemd-network/lldp-util.h \
3215 src/libsystemd-network/sd-lldp.c
3217 libsystemd_network_la_LIBADD = \
3220 test_dhcp_option_SOURCES = \
3221 src/libsystemd-network/dhcp-protocol.h \
3222 src/libsystemd-network/dhcp-internal.h \
3223 src/libsystemd-network/test-dhcp-option.c
3225 test_dhcp_option_LDADD = \
3226 libsystemd-network.la \
3229 test_dhcp_client_SOURCES = \
3230 src/systemd/sd-dhcp-client.h \
3231 src/libsystemd-network/dhcp-protocol.h \
3232 src/libsystemd-network/dhcp-internal.h \
3233 src/libsystemd-network/test-dhcp-client.c
3235 test_dhcp_client_LDADD = \
3236 libsystemd-network.la \
3239 test_dhcp_server_SOURCES = \
3240 src/libsystemd-network/test-dhcp-server.c
3242 test_dhcp_server_LDADD = \
3243 libsystemd-network.la \
3246 test_ipv4ll_SOURCES = \
3247 src/systemd/sd-ipv4ll.h \
3248 src/libsystemd-network/ipv4ll-internal.h \
3249 src/libsystemd-network/test-ipv4ll.c
3251 test_ipv4ll_LDADD = \
3252 libsystemd-network.la \
3255 test_pppoe_SOURCES = \
3256 src/systemd/sd-pppoe.h \
3257 src/libsystemd-network/test-pppoe.c
3259 test_pppoe_LDADD = \
3260 libsystemd-network.la \
3263 test_icmp6_rs_SOURCES = \
3264 src/systemd/sd-dhcp6-client.h \
3265 src/systemd/sd-icmp6-nd.h \
3266 src/libsystemd-network/dhcp6-internal.h \
3267 src/libsystemd-network/test-icmp6-rs.c \
3268 src/libsystemd-network/dhcp-identifier.h \
3269 src/libsystemd-network/dhcp-identifier.c
3271 test_icmp6_rs_LDADD = \
3272 libsystemd-network.la \
3276 test_dhcp6_client_SOURCES = \
3277 src/systemd/sd-dhcp6-client.h \
3278 src/libsystemd-network/dhcp6-internal.h \
3279 src/libsystemd-network/test-dhcp6-client.c \
3280 src/libsystemd-network/dhcp-identifier.h \
3281 src/libsystemd-network/dhcp-identifier.c
3283 test_dhcp6_client_LDADD = \
3284 libsystemd-network.la \
3288 test_lldp_SOURCES = \
3289 src/libsystemd-network/lldp.h \
3290 src/libsystemd-network/lldp-tlv.h \
3291 src/libsystemd-network/lldp-tlv.c \
3292 src/libsystemd-network/test-lldp.c
3295 libsystemd-network.la \
3310 # ------------------------------------------------------------------------------
3312 noinst_LTLIBRARIES += \
3313 libsystemd-terminal.la
3315 rootlibexec_PROGRAMS += \
3318 noinst_PROGRAMS += \
3324 src/libsystemd-terminal/unifont-glyph-array.bin
3326 nodist_userunit_DATA += \
3327 units/user/systemd-consoled.service
3329 USER_DEFAULT_TARGET_WANTS += \
3330 systemd-consoled.service
3339 units/user/systemd-consoled.service.in
3341 libsystemd_terminal_la_CFLAGS = \
3345 libsystemd_terminal_la_SOURCES = \
3346 src/libsystemd-terminal/grdev.h \
3347 src/libsystemd-terminal/grdev-internal.h \
3348 src/libsystemd-terminal/grdev.c \
3349 src/libsystemd-terminal/grdev-drm.c \
3350 src/libsystemd-terminal/idev.h \
3351 src/libsystemd-terminal/idev-internal.h \
3352 src/libsystemd-terminal/idev.c \
3353 src/libsystemd-terminal/idev-evdev.c \
3354 src/libsystemd-terminal/idev-keyboard.c \
3355 src/libsystemd-terminal/sysview.h \
3356 src/libsystemd-terminal/sysview-internal.h \
3357 src/libsystemd-terminal/sysview.c \
3358 src/libsystemd-terminal/term.h \
3359 src/libsystemd-terminal/term-internal.h \
3360 src/libsystemd-terminal/term-charset.c \
3361 src/libsystemd-terminal/term-page.c \
3362 src/libsystemd-terminal/term-parser.c \
3363 src/libsystemd-terminal/term-screen.c \
3364 src/libsystemd-terminal/term-wcwidth.c \
3365 src/libsystemd-terminal/unifont.h \
3366 src/libsystemd-terminal/unifont-def.h \
3367 src/libsystemd-terminal/unifont.c
3369 libsystemd_terminal_la_LIBADD = \
3373 systemd_consoled_CFLAGS = \
3377 systemd_consoled_SOURCES = \
3378 src/console/consoled.h \
3379 src/console/consoled.c \
3380 src/console/consoled-display.c \
3381 src/console/consoled-manager.c \
3382 src/console/consoled-session.c \
3383 src/console/consoled-terminal.c \
3384 src/console/consoled-workspace.c
3386 systemd_consoled_LDADD = \
3387 libsystemd-terminal.la \
3391 systemd_evcat_CFLAGS = \
3395 systemd_evcat_SOURCES = \
3396 src/libsystemd-terminal/evcat.c
3398 systemd_evcat_LDADD = \
3399 libsystemd-terminal.la \
3403 systemd_modeset_CFLAGS = \
3407 systemd_modeset_SOURCES = \
3408 src/libsystemd-terminal/modeset.c
3410 systemd_modeset_LDADD = \
3411 libsystemd-terminal.la \
3415 systemd_subterm_SOURCES = \
3416 src/libsystemd-terminal/subterm.c
3418 systemd_subterm_LDADD = \
3419 libsystemd-terminal.la \
3422 test_term_page_SOURCES = \
3423 src/libsystemd-terminal/test-term-page.c
3425 test_term_page_LDADD = \
3426 libsystemd-terminal.la \
3429 test_term_parser_SOURCES = \
3430 src/libsystemd-terminal/test-term-parser.c
3432 test_term_parser_LDADD = \
3433 libsystemd-terminal.la \
3436 test_unifont_SOURCES = \
3437 src/libsystemd-terminal/test-unifont.c
3439 test_unifont_LDADD = \
3440 libsystemd-terminal.la \
3443 src/libsystemd-terminal/unifont-glyph-array.bin: tools/compile-unifont.py $(UNIFONT)
3444 $(AM_V_GEN)$(PYTHON) $< <$(UNIFONT) >$@
3447 tools/compile-unifont.py
3449 # ------------------------------------------------------------------------------
3450 include_HEADERS += \
3451 src/libudev/libudev.h
3453 lib_LTLIBRARIES += \
3456 libudev_la_SOURCES =\
3457 src/libudev/libudev.sym \
3458 src/libudev/libudev-private.h \
3459 src/libudev/libudev-device-internal.h \
3460 src/libudev/libudev.c \
3461 src/libudev/libudev-list.c \
3462 src/libudev/libudev-util.c \
3463 src/libudev/libudev-device.c \
3464 src/libudev/libudev-device-private.c \
3465 src/libudev/libudev-enumerate.c \
3466 src/libudev/libudev-monitor.c \
3467 src/libudev/libudev-queue.c \
3468 src/libudev/libudev-hwdb.c
3470 libudev_la_LDFLAGS = \
3472 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3473 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3475 libudev_la_LIBADD = \
3476 libsystemd-internal.la
3478 pkgconfiglib_DATA += \
3479 src/libudev/libudev.pc
3482 src/libudev/libudev.pc.in
3484 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3485 libudev-install-hook:
3486 libname=libudev.so && $(move-to-rootlibdir)
3488 libudev-uninstall-hook:
3489 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3491 INSTALL_EXEC_HOOKS += libudev-install-hook
3492 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3494 # ------------------------------------------------------------------------------
3495 noinst_LTLIBRARIES += \
3498 libudev_internal_la_SOURCES =\
3499 $(libudev_la_SOURCES)
3501 # ------------------------------------------------------------------------------
3503 $(sysconfdir)/udev/rules.d
3505 dist_network_DATA = \
3506 network/99-default.link \
3507 network/80-container-host0.network \
3508 network/80-container-ve.network
3510 dist_udevrules_DATA += \
3511 rules/50-udev-default.rules \
3512 rules/60-block.rules \
3513 rules/60-drm.rules \
3514 rules/60-evdev.rules \
3515 rules/60-persistent-storage-tape.rules \
3516 rules/60-persistent-input.rules \
3517 rules/60-persistent-alsa.rules \
3518 rules/60-persistent-storage.rules \
3519 rules/60-serial.rules \
3520 rules/64-btrfs.rules \
3521 rules/70-mouse.rules \
3522 rules/75-net-description.rules \
3523 rules/78-sound-card.rules \
3524 rules/80-net-setup-link.rules
3526 nodist_udevrules_DATA += \
3527 rules/99-systemd.rules
3529 udevconfdir = $(sysconfdir)/udev
3530 dist_udevconf_DATA = \
3533 pkgconfigdata_DATA += \
3537 rules/99-systemd.rules.in \
3541 units/systemd-udevd.service.in \
3542 units/systemd-udev-trigger.service.in \
3543 units/systemd-udev-settle.service.in
3545 SOCKETS_TARGET_WANTS += \
3546 systemd-udevd-control.socket \
3547 systemd-udevd-kernel.socket
3549 SYSINIT_TARGET_WANTS += \
3550 systemd-udevd.service \
3551 systemd-udev-trigger.service
3553 rootbin_PROGRAMS += \
3556 rootlibexec_PROGRAMS += \
3559 noinst_LTLIBRARIES += \
3562 src/udev/keyboard-keys-list.txt:
3563 $(AM_V_at)$(MKDIR_P) $(dir $@)
3564 $(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/' > $@
3566 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3567 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3569 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3570 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3572 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys-list.txt
3573 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3575 gperf_txt_sources += \
3576 src/udev/keyboard-keys-list.txt
3578 libudev_core_la_SOURCES = \
3580 src/udev/udev-event.c \
3581 src/udev/udev-watch.c \
3582 src/udev/udev-node.c \
3583 src/udev/udev-rules.c \
3584 src/udev/udev-ctrl.c \
3585 src/udev/udev-builtin.c \
3586 src/udev/udev-builtin-btrfs.c \
3587 src/udev/udev-builtin-hwdb.c \
3588 src/udev/udev-builtin-input_id.c \
3589 src/udev/udev-builtin-keyboard.c \
3590 src/udev/udev-builtin-net_id.c \
3591 src/udev/udev-builtin-net_setup_link.c \
3592 src/udev/udev-builtin-path_id.c \
3593 src/udev/udev-builtin-usb_id.c \
3594 src/udev/net/link-config.h \
3595 src/udev/net/link-config.c \
3596 src/udev/net/ethtool-util.h \
3597 src/udev/net/ethtool-util.c
3599 nodist_libudev_core_la_SOURCES = \
3600 src/udev/keyboard-keys-from-name.h \
3601 src/udev/keyboard-keys-to-name.h \
3602 src/udev/net/link-config-gperf.c
3604 gperf_gperf_sources = \
3605 src/udev/net/link-config-gperf.gperf
3607 libudev_core_la_CFLAGS = \
3612 libudev_core_la_LIBADD = \
3613 libsystemd-network.la \
3619 libudev_core_la_SOURCES += \
3620 src/udev/udev-builtin-kmod.c
3622 dist_udevrules_DATA += \
3623 rules/80-drivers.rules
3627 libudev_core_la_SOURCES += \
3628 src/udev/udev-builtin-blkid.c
3632 libudev_core_la_SOURCES += \
3633 src/udev/udev-builtin-uaccess.c \
3634 src/login/logind-acl.c \
3635 src/libsystemd/sd-login/sd-login.c \
3636 src/systemd/sd-login.h
3639 systemd_udevd_SOURCES = \
3642 systemd_udevd_LDADD = \
3646 src/udev/udevadm.c \
3647 src/udev/udevadm-info.c \
3648 src/udev/udevadm-control.c \
3649 src/udev/udevadm-monitor.c \
3650 src/udev/udevadm-hwdb.c \
3651 src/udev/udevadm-settle.c \
3652 src/udev/udevadm-trigger.c \
3653 src/udev/udevadm-test.c \
3654 src/udev/udevadm-test-builtin.c \
3655 src/udev/udevadm-util.c \
3656 src/udev/udevadm-util.h
3661 # ------------------------------------------------------------------------------
3664 $(sysconfdir)/udev/hwdb.d
3666 systemd_hwdb_SOURCES = \
3667 src/libsystemd/sd-hwdb/hwdb-internal.h \
3670 systemd_hwdb_LDADD = \
3673 rootbin_PROGRAMS += \
3676 dist_udevhwdb_DATA = \
3677 hwdb/20-pci-vendor-model.hwdb \
3678 hwdb/20-pci-classes.hwdb \
3679 hwdb/20-usb-vendor-model.hwdb \
3680 hwdb/20-usb-classes.hwdb \
3681 hwdb/20-sdio-vendor-model.hwdb \
3682 hwdb/20-sdio-classes.hwdb \
3683 hwdb/20-bluetooth-vendor-product.hwdb \
3684 hwdb/20-acpi-vendor.hwdb \
3686 hwdb/20-net-ifname.hwdb \
3687 hwdb/60-evdev.hwdb \
3688 hwdb/60-keyboard.hwdb \
3689 hwdb/70-mouse.hwdb \
3690 hwdb/70-pointingstick.hwdb
3692 SYSINIT_TARGET_WANTS += \
3693 systemd-hwdb-update.service
3695 # Update hwdb on installation. Do not bother if installing
3696 # in DESTDIR, since this is likely for packaging purposes.
3698 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3700 INSTALL_DATA_HOOKS += \
3704 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3708 units/systemd-hwdb-update.service.in \
3709 hwdb/ids-update.pl \
3712 # ------------------------------------------------------------------------------
3718 test/rule-syntax-check.py
3722 test/sysv-generator-test.py
3730 test_libudev_SOURCES = \
3731 src/test/test-libudev.c
3733 test_libudev_LDADD = \
3736 test_udev_SOURCES = \
3737 src/test/test-udev.c
3747 # packed sysfs test tree
3749 $(AM_V_at)$(MKDIR_P) $(dir $@)
3750 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3754 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3759 test/rule-syntax-check.py \
3760 test/sysv-generator-test.py \
3763 # ------------------------------------------------------------------------------
3765 src/udev/ata_id/ata_id.c
3770 udevlibexec_PROGRAMS += \
3773 # ------------------------------------------------------------------------------
3774 cdrom_id_SOURCES = \
3775 src/udev/cdrom_id/cdrom_id.c
3780 udevlibexec_PROGRAMS += \
3783 dist_udevrules_DATA += \
3784 rules/60-cdrom_id.rules
3786 # ------------------------------------------------------------------------------
3788 src/udev/collect/collect.c
3793 udevlibexec_PROGRAMS += \
3796 # ------------------------------------------------------------------------------
3798 src/udev/scsi_id/scsi_id.c \
3799 src/udev/scsi_id/scsi_serial.c \
3800 src/udev/scsi_id/scsi.h \
3801 src/udev/scsi_id/scsi_id.h
3806 udevlibexec_PROGRAMS += \
3810 src/udev/scsi_id/README
3812 # ------------------------------------------------------------------------------
3814 src/udev/v4l_id/v4l_id.c
3819 udevlibexec_PROGRAMS += \
3822 dist_udevrules_DATA += \
3823 rules/60-persistent-v4l.rules
3825 # ------------------------------------------------------------------------------
3826 mtd_probe_SOURCES = \
3827 src/udev/mtd_probe/mtd_probe.c \
3828 src/udev/mtd_probe/mtd_probe.h \
3829 src/udev/mtd_probe/probe_smartmedia.c
3831 dist_udevrules_DATA += \
3832 rules/75-probe_mtd.rules
3834 udevlibexec_PROGRAMS += \
3837 # ------------------------------------------------------------------------------
3838 test_id128_SOURCES = \
3839 src/test/test-id128.c
3841 test_id128_LDADD = \
3847 # ------------------------------------------------------------------------------
3849 rootlibexec_PROGRAMS += \
3852 systemd_activate_SOURCES = \
3853 src/activate/activate.c
3855 systemd_activate_LDADD = \
3858 # ------------------------------------------------------------------------------
3859 systemd_journald_SOURCES = \
3860 src/journal/journald.c \
3861 src/journal/journald-server.h
3863 systemd_journald_LDADD = \
3864 libjournal-core.la \
3867 systemd_cat_SOURCES = \
3870 systemd_cat_LDADD = \
3874 rootlibexec_PROGRAMS += \
3875 systemd-journal-remote
3877 systemd_journal_remote_SOURCES = \
3878 src/journal-remote/journal-remote-parse.h \
3879 src/journal-remote/journal-remote-parse.c \
3880 src/journal-remote/journal-remote-write.h \
3881 src/journal-remote/journal-remote-write.c \
3882 src/journal-remote/journal-remote.h \
3883 src/journal-remote/journal-remote.c
3885 systemd_journal_remote_LDADD = \
3888 systemd_journal_remote_SOURCES += \
3889 src/journal-remote/microhttpd-util.h \
3890 src/journal-remote/microhttpd-util.c
3892 systemd_journal_remote_CFLAGS = \
3894 $(MICROHTTPD_CFLAGS)
3896 systemd_journal_remote_LDADD += \
3900 dist_sysusers_DATA += \
3901 sysusers.d/systemd-remote.conf
3905 dist_tmpfiles_DATA += \
3906 tmpfiles.d/systemd-remote.conf
3910 systemd_journal_remote_LDADD += \
3913 # systemd-journal-remote make sense mostly with full crypto stack
3914 dist_systemunit_DATA += \
3915 units/systemd-journal-remote.socket
3917 nodist_systemunit_DATA += \
3918 units/systemd-journal-remote.service
3920 journal-remote-install-hook: journal-install-hook
3921 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3922 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3923 -chmod 755 $(DESTDIR)/var/log/journal/remote
3925 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3928 nodist_pkgsysconf_DATA += \
3929 src/journal-remote/journal-remote.conf
3932 units/systemd-journal-remote.service.in \
3933 src/journal-remote/journal-remote.conf.in \
3934 src/journal-remote/log-generator.py
3938 rootlibexec_PROGRAMS += \
3939 systemd-journal-upload
3941 systemd_journal_upload_SOURCES = \
3942 src/journal-remote/journal-upload.h \
3943 src/journal-remote/journal-upload.c \
3944 src/journal-remote/journal-upload-journal.c
3946 systemd_journal_upload_CFLAGS = \
3950 systemd_journal_upload_LDADD = \
3954 nodist_systemunit_DATA += \
3955 units/systemd-journal-upload.service
3957 nodist_pkgsysconf_DATA += \
3958 src/journal-remote/journal-upload.conf
3962 units/systemd-journal-upload.service.in \
3963 src/journal-remote/journal-upload.conf.in
3965 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3966 journalctl_CFLAGS = \
3969 journalctl_SOURCES = \
3970 src/journal/journalctl.c
3972 journalctl_LDADD = \
3976 journalctl_SOURCES += \
3977 src/journal/journal-qrcode.c \
3978 src/journal/journal-qrcode.h
3980 journalctl_CFLAGS += \
3983 journalctl_LDADD += \
3987 test_journal_SOURCES = \
3988 src/journal/test-journal.c
3990 test_journal_LDADD = \
3993 test_journal_send_SOURCES = \
3994 src/journal/test-journal-send.c
3996 test_journal_send_LDADD = \
3999 test_journal_syslog_SOURCES = \
4000 src/journal/test-journal-syslog.c
4002 test_journal_syslog_LDADD = \
4005 test_journal_match_SOURCES = \
4006 src/journal/test-journal-match.c
4008 test_journal_match_LDADD = \
4011 test_journal_enum_SOURCES = \
4012 src/journal/test-journal-enum.c
4014 test_journal_enum_LDADD = \
4017 test_journal_stream_SOURCES = \
4018 src/journal/test-journal-stream.c
4020 test_journal_stream_LDADD = \
4023 test_journal_flush_SOURCES = \
4024 src/journal/test-journal-flush.c
4026 test_journal_flush_LDADD = \
4029 test_journal_init_SOURCES = \
4030 src/journal/test-journal-init.c
4032 test_journal_init_LDADD = \
4035 test_journal_verify_SOURCES = \
4036 src/journal/test-journal-verify.c
4038 test_journal_verify_LDADD = \
4041 test_journal_interleaving_SOURCES = \
4042 src/journal/test-journal-interleaving.c
4044 test_journal_interleaving_LDADD = \
4047 test_mmap_cache_SOURCES = \
4048 src/journal/test-mmap-cache.c
4050 test_mmap_cache_LDADD = \
4053 test_catalog_SOURCES = \
4054 src/journal/test-catalog.c
4056 test_catalog_CPPFLAGS = \
4058 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4060 test_catalog_LDADD = \
4063 test_compress_SOURCES = \
4064 src/journal/test-compress.c
4066 test_compress_LDADD = \
4069 test_compress_benchmark_SOURCES = \
4070 src/journal/test-compress-benchmark.c
4072 test_compress_benchmark_LDADD = \
4075 test_audit_type_SOURCES = \
4076 src/journal/test-audit-type.c
4078 test_audit_type_LDADD = \
4081 libjournal_core_la_SOURCES = \
4082 src/journal/journald-kmsg.c \
4083 src/journal/journald-kmsg.h \
4084 src/journal/journald-syslog.c \
4085 src/journal/journald-syslog.h \
4086 src/journal/journald-stream.c \
4087 src/journal/journald-stream.h \
4088 src/journal/journald-server.c \
4089 src/journal/journald-server.h \
4090 src/journal/journald-console.c \
4091 src/journal/journald-console.h \
4092 src/journal/journald-wall.c \
4093 src/journal/journald-wall.h \
4094 src/journal/journald-native.c \
4095 src/journal/journald-native.h \
4096 src/journal/journald-audit.c \
4097 src/journal/journald-audit.h \
4098 src/journal/journald-rate-limit.c \
4099 src/journal/journald-rate-limit.h \
4100 src/journal/journal-internal.h
4102 nodist_libjournal_core_la_SOURCES = \
4103 src/journal/journald-gperf.c
4105 libjournal_core_la_LIBADD = \
4108 noinst_LTLIBRARIES += \
4111 journal-install-hook:
4112 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4113 -chown 0:0 $(DESTDIR)/var/log/journal
4114 -chmod 755 $(DESTDIR)/var/log/journal
4115 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4116 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4118 journal-uninstall-hook:
4119 -rmdir $(DESTDIR)/var/log/journal/remote
4120 -rmdir $(DESTDIR)/var/log/journal/
4122 INSTALL_EXEC_HOOKS += journal-install-hook
4123 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4125 # ------------------------------------------------------------------------------
4126 # Update catalog on installation. Do not bother if installing
4127 # in DESTDIR, since this is likely for packaging purposes.
4128 catalog-update-hook:
4129 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4131 INSTALL_DATA_HOOKS += \
4134 catalog-remove-hook:
4135 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4137 UNINSTALL_DATA_HOOKS += \
4146 test-journal-syslog \
4147 test-journal-match \
4148 test-journal-stream \
4150 test-journal-verify \
4151 test-journal-interleaving \
4152 test-journal-flush \
4160 test-compress-benchmark
4163 pkginclude_HEADERS += \
4164 src/systemd/sd-journal.h \
4165 src/systemd/sd-messages.h \
4166 src/systemd/_sd-common.h
4168 libsystemd_journal_internal_la_SOURCES = \
4169 src/journal/sd-journal.c \
4170 src/systemd/sd-journal.h \
4171 src/systemd/_sd-common.h \
4172 src/journal/journal-file.c \
4173 src/journal/journal-file.h \
4174 src/journal/journal-vacuum.c \
4175 src/journal/journal-vacuum.h \
4176 src/journal/journal-verify.c \
4177 src/journal/journal-verify.h \
4178 src/journal/lookup3.c \
4179 src/journal/lookup3.h \
4180 src/journal/journal-send.c \
4181 src/journal/journal-def.h \
4182 src/journal/compress.h \
4183 src/journal/catalog.c \
4184 src/journal/catalog.h \
4185 src/journal/mmap-cache.c \
4186 src/journal/mmap-cache.h \
4187 src/journal/compress.c \
4188 src/journal/audit-type.h \
4189 src/journal/audit-type.c
4191 nodist_libsystemd_journal_internal_la_SOURCES = \
4192 src/journal/audit_type-to-name.h
4194 gperf_txt_sources += \
4195 src/journal/audit_type-list.txt
4197 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4198 libsystemd_journal_internal_la_CFLAGS = \
4201 libsystemd_journal_internal_la_LIBADD =
4204 libsystemd_journal_internal_la_CFLAGS += \
4207 libsystemd_journal_internal_la_LIBADD += \
4212 libsystemd_journal_internal_la_LIBADD += \
4217 libsystemd_journal_internal_la_SOURCES += \
4218 src/journal/journal-authenticate.c \
4219 src/journal/journal-authenticate.h \
4220 src/journal/fsprg.c \
4223 libsystemd_journal_internal_la_LIBADD += \
4226 # fsprg.c is a drop-in file using void pointer arithmetic
4227 libsystemd_journal_internal_la_CFLAGS += \
4232 noinst_LTLIBRARIES += \
4233 libsystemd-journal-internal.la
4235 rootlibexec_PROGRAMS += \
4238 rootbin_PROGRAMS += \
4244 dist_systemunit_DATA += \
4245 units/systemd-journald.socket \
4246 units/systemd-journald-dev-log.socket \
4247 units/systemd-journald-audit.socket
4249 nodist_systemunit_DATA += \
4250 units/systemd-journald.service \
4251 units/systemd-journal-flush.service \
4252 units/systemd-journal-catalog-update.service
4254 dist_pkgsysconf_DATA += \
4255 src/journal/journald.conf
4257 dist_catalog_DATA = \
4258 catalog/systemd.be.catalog \
4259 catalog/systemd.be@latin.catalog \
4260 catalog/systemd.fr.catalog \
4261 catalog/systemd.it.catalog \
4262 catalog/systemd.pl.catalog \
4263 catalog/systemd.pt_BR.catalog \
4264 catalog/systemd.ru.catalog \
4265 catalog/systemd.zh_TW.catalog \
4266 catalog/systemd.catalog
4268 SOCKETS_TARGET_WANTS += \
4269 systemd-journald.socket \
4270 systemd-journald-dev-log.socket \
4271 systemd-journald-audit.socket
4273 SYSINIT_TARGET_WANTS += \
4274 systemd-journald.service \
4275 systemd-journal-flush.service \
4276 systemd-journal-catalog-update.service
4279 units/systemd-journald.service.in \
4280 units/systemd-journal-flush.service.in \
4281 units/systemd-journal-catalog-update.service.in
4283 gperf_gperf_sources += \
4284 src/journal/journald-gperf.gperf
4286 # ------------------------------------------------------------------------------
4288 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4290 rootlibexec_PROGRAMS += \
4291 systemd-journal-gatewayd
4293 systemd_journal_gatewayd_SOURCES = \
4294 src/journal-remote/journal-gatewayd.c \
4295 src/journal-remote/microhttpd-util.h \
4296 src/journal-remote/microhttpd-util.c
4298 systemd_journal_gatewayd_LDADD = \
4303 systemd_journal_gatewayd_LDADD += \
4307 systemd_journal_gatewayd_CFLAGS = \
4309 $(MICROHTTPD_CFLAGS)
4311 systemd_journal_gatewayd_CPPFLAGS = \
4313 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4315 dist_systemunit_DATA += \
4316 units/systemd-journal-gatewayd.socket
4318 nodist_systemunit_DATA += \
4319 units/systemd-journal-gatewayd.service
4321 dist_gatewayddocumentroot_DATA = \
4322 src/journal-remote/browse.html
4327 units/systemd-journal-gatewayd.service.in
4329 # ------------------------------------------------------------------------------
4331 systemd_socket_proxyd_SOURCES = \
4332 src/socket-proxy/socket-proxyd.c
4334 systemd_socket_proxyd_LDADD = \
4337 # ------------------------------------------------------------------------------
4339 systemd_coredump_SOURCES = \
4340 src/journal/coredump.c \
4341 src/journal/coredump-vacuum.c \
4342 src/journal/coredump-vacuum.h
4344 systemd_coredump_LDADD = \
4348 systemd_coredump_SOURCES += \
4349 src/journal/stacktrace.c \
4350 src/journal/stacktrace.h
4352 systemd_coredump_LDADD += \
4356 rootlibexec_PROGRAMS += \
4359 dist_pkgsysconf_DATA += \
4360 src/journal/coredump.conf
4362 coredumpctl_SOURCES = \
4363 src/journal/coredumpctl.c
4365 coredumpctl_LDADD = \
4372 test-coredump-vacuum
4374 test_coredump_vacuum_SOURCES = \
4375 src/journal/test-coredump-vacuum.c \
4376 src/journal/coredump-vacuum.c \
4377 src/journal/coredump-vacuum.h
4379 test_coredump_vacuum_LDADD = \
4382 dist_bashcompletion_DATA += \
4383 shell-completion/bash/coredumpctl
4385 dist_zshcompletion_DATA += \
4386 shell-completion/zsh/_coredumpctl
4388 nodist_sysctl_DATA = \
4389 sysctl.d/50-coredump.conf
4392 sysctl.d/50-coredump.conf
4396 sysctl.d/50-coredump.conf.in
4398 # ------------------------------------------------------------------------------
4400 systemd_binfmt_SOURCES = \
4403 systemd_binfmt_LDADD = \
4406 rootlibexec_PROGRAMS += \
4409 dist_systemunit_DATA += \
4410 units/proc-sys-fs-binfmt_misc.automount \
4411 units/proc-sys-fs-binfmt_misc.mount
4413 nodist_systemunit_DATA += \
4414 units/systemd-binfmt.service
4417 $(prefix)/lib/binfmt.d \
4418 $(sysconfdir)/binfmt.d
4420 SYSINIT_TARGET_WANTS += \
4421 systemd-binfmt.service \
4422 proc-sys-fs-binfmt_misc.automount
4427 units/systemd-binfmt.service.in
4429 # ------------------------------------------------------------------------------
4431 systemd_vconsole_setup_SOURCES = \
4432 src/vconsole/vconsole-setup.c
4434 systemd_vconsole_setup_LDADD = \
4437 rootlibexec_PROGRAMS += \
4438 systemd-vconsole-setup
4440 nodist_udevrules_DATA += \
4441 src/vconsole/90-vconsole.rules
4443 nodist_systemunit_DATA += \
4444 units/systemd-vconsole-setup.service
4446 SYSINIT_TARGET_WANTS += \
4447 systemd-vconsole-setup.service
4451 src/vconsole/90-vconsole.rules.in \
4452 units/systemd-vconsole-setup.service.in
4454 # ------------------------------------------------------------------------------
4456 systemd_bootchart_SOURCES = \
4457 src/bootchart/bootchart.c \
4458 src/bootchart/bootchart.h \
4459 src/bootchart/store.c \
4460 src/bootchart/store.h \
4461 src/bootchart/svg.c \
4464 systemd_bootchart_LDADD = \
4467 rootlibexec_PROGRAMS += \
4470 dist_pkgsysconf_DATA += \
4471 src/bootchart/bootchart.conf
4473 nodist_systemunit_DATA += \
4474 units/systemd-bootchart.service
4478 units/systemd-bootchart.service.in
4480 # ------------------------------------------------------------------------------
4481 if ENABLE_QUOTACHECK
4482 rootlibexec_PROGRAMS += \
4485 nodist_systemunit_DATA += \
4486 units/systemd-quotacheck.service
4488 systemd_quotacheck_SOURCES = \
4489 src/quotacheck/quotacheck.c
4491 systemd_quotacheck_LDADD = \
4496 units/systemd-quotacheck.service.in
4498 nodist_systemunit_DATA += \
4499 units/quotaon.service
4501 # ------------------------------------------------------------------------------
4502 if ENABLE_RANDOMSEED
4503 rootlibexec_PROGRAMS += \
4506 nodist_systemunit_DATA += \
4507 units/systemd-random-seed.service
4509 systemd_random_seed_SOURCES = \
4510 src/random-seed/random-seed.c
4512 systemd_random_seed_LDADD = \
4515 SYSINIT_TARGET_WANTS += \
4516 systemd-random-seed.service
4521 units/systemd-random-seed.service.in
4523 # ------------------------------------------------------------------------------
4525 rootlibexec_PROGRAMS += \
4528 nodist_systemunit_DATA += \
4529 units/systemd-backlight@.service
4531 systemd_backlight_SOURCES = \
4532 src/backlight/backlight.c
4534 systemd_backlight_LDADD = \
4539 units/systemd-backlight@.service.in
4541 # ------------------------------------------------------------------------------
4543 rootlibexec_PROGRAMS += \
4546 nodist_systemunit_DATA += \
4547 units/systemd-rfkill@.service
4549 systemd_rfkill_SOURCES = \
4552 systemd_rfkill_LDADD = \
4557 units/systemd-rfkill@.service.in
4559 # ------------------------------------------------------------------------------
4560 if HAVE_LIBCRYPTSETUP
4561 rootlibexec_PROGRAMS += \
4564 systemgenerator_PROGRAMS += \
4565 systemd-cryptsetup-generator
4567 dist_systemunit_DATA += \
4568 units/cryptsetup.target \
4569 units/cryptsetup-pre.target
4571 systemd_cryptsetup_SOURCES = \
4572 src/cryptsetup/cryptsetup.c
4574 systemd_cryptsetup_CFLAGS = \
4576 $(LIBCRYPTSETUP_CFLAGS)
4578 systemd_cryptsetup_LDADD = \
4580 $(LIBCRYPTSETUP_LIBS)
4582 systemd_cryptsetup_generator_SOURCES = \
4583 src/cryptsetup/cryptsetup-generator.c
4585 systemd_cryptsetup_generator_LDADD = \
4588 SYSINIT_TARGET_WANTS += \
4593 # ------------------------------------------------------------------------------
4595 systemd_hostnamed_SOURCES = \
4596 src/hostname/hostnamed.c
4598 systemd_hostnamed_LDADD = \
4601 rootlibexec_PROGRAMS += \
4604 nodist_systemunit_DATA += \
4605 units/systemd-hostnamed.service
4607 dist_systemunit_DATA_busnames += \
4608 units/org.freedesktop.hostname1.busname
4610 dist_dbuspolicy_DATA += \
4611 src/hostname/org.freedesktop.hostname1.conf
4613 dist_dbussystemservice_DATA += \
4614 src/hostname/org.freedesktop.hostname1.service
4616 polkitpolicy_files += \
4617 src/hostname/org.freedesktop.hostname1.policy
4619 SYSTEM_UNIT_ALIASES += \
4620 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4622 BUSNAMES_TARGET_WANTS += \
4623 org.freedesktop.hostname1.busname
4625 hostnamectl_SOURCES = \
4626 src/hostname/hostnamectl.c
4628 hostnamectl_LDADD = \
4634 dist_bashcompletion_DATA += \
4635 shell-completion/bash/hostnamectl
4637 dist_zshcompletion_DATA += \
4638 shell-completion/zsh/_hostnamectl
4642 polkitpolicy_in_files += \
4643 src/hostname/org.freedesktop.hostname1.policy.in
4646 units/systemd-hostnamed.service.in
4648 # ------------------------------------------------------------------------------
4649 dist_systemunit_DATA_busnames += \
4650 units/org.freedesktop.systemd1.busname
4652 BUSNAMES_TARGET_WANTS += \
4653 org.freedesktop.systemd1.busname
4655 # ------------------------------------------------------------------------------
4657 systemd_localed_SOURCES = \
4658 src/locale/localed.c
4660 systemd_localed_LDADD = \
4664 systemd_localed_CFLAGS = \
4668 nodist_systemunit_DATA += \
4669 units/systemd-localed.service
4671 dist_systemunit_DATA_busnames += \
4672 units/org.freedesktop.locale1.busname
4674 rootlibexec_PROGRAMS += \
4677 dist_dbuspolicy_DATA += \
4678 src/locale/org.freedesktop.locale1.conf
4680 dist_dbussystemservice_DATA += \
4681 src/locale/org.freedesktop.locale1.service
4683 polkitpolicy_files += \
4684 src/locale/org.freedesktop.locale1.policy
4686 SYSTEM_UNIT_ALIASES += \
4687 systemd-localed.service dbus-org.freedesktop.locale1.service
4689 BUSNAMES_TARGET_WANTS += \
4690 org.freedesktop.locale1.busname
4692 dist_pkgdata_DATA = \
4693 src/locale/kbd-model-map \
4694 src/locale/language-fallback-map
4696 localectl_SOURCES = \
4697 src/locale/localectl.c
4705 dist_bashcompletion_DATA += \
4706 shell-completion/bash/localectl
4708 dist_zshcompletion_DATA += \
4709 shell-completion/zsh/_localectl
4713 .PHONY: update-kbd-model-map
4715 polkitpolicy_in_files += \
4716 src/locale/org.freedesktop.locale1.policy.in
4719 units/systemd-localed.service.in
4721 # ------------------------------------------------------------------------------
4723 systemd_timedated_SOURCES = \
4724 src/timedate/timedated.c
4726 systemd_timedated_LDADD = \
4729 rootlibexec_PROGRAMS += \
4732 dist_dbussystemservice_DATA += \
4733 src/timedate/org.freedesktop.timedate1.service
4735 dist_dbuspolicy_DATA += \
4736 src/timedate/org.freedesktop.timedate1.conf
4738 nodist_systemunit_DATA += \
4739 units/systemd-timedated.service
4741 dist_systemunit_DATA_busnames += \
4742 units/org.freedesktop.timedate1.busname
4744 polkitpolicy_files += \
4745 src/timedate/org.freedesktop.timedate1.policy
4747 SYSTEM_UNIT_ALIASES += \
4748 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4750 BUSNAMES_TARGET_WANTS += \
4751 org.freedesktop.timedate1.busname
4753 timedatectl_SOURCES = \
4754 src/timedate/timedatectl.c
4756 timedatectl_LDADD = \
4762 dist_bashcompletion_DATA += \
4763 shell-completion/bash/timedatectl
4765 dist_zshcompletion_DATA += \
4766 shell-completion/zsh/_timedatectl
4769 polkitpolicy_in_files += \
4770 src/timedate/org.freedesktop.timedate1.policy.in
4773 units/systemd-timedated.service.in
4775 # ------------------------------------------------------------------------------
4777 systemd_timesyncd_SOURCES = \
4778 src/timesync/timesyncd.c \
4779 src/timesync/timesyncd-manager.c \
4780 src/timesync/timesyncd-manager.h \
4781 src/timesync/timesyncd-conf.c \
4782 src/timesync/timesyncd-conf.h \
4783 src/timesync/timesyncd-server.c \
4784 src/timesync/timesyncd-server.h
4786 nodist_systemd_timesyncd_SOURCES = \
4787 src/timesync/timesyncd-gperf.c
4789 gperf_gperf_sources += \
4790 src/timesync/timesyncd-gperf.gperf
4792 systemd_timesyncd_LDADD = \
4793 libsystemd-network.la \
4796 rootlibexec_PROGRAMS += \
4799 nodist_systemunit_DATA += \
4800 units/systemd-timesyncd.service
4802 GENERAL_ALIASES += \
4803 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4806 units/systemd-timesyncd.service.in
4808 nodist_pkgsysconf_DATA += \
4809 src/timesync/timesyncd.conf
4812 src/timesync/timesyncd.conf.in
4815 # ------------------------------------------------------------------------------
4817 libnss_myhostname_la_SOURCES = \
4818 src/nss-myhostname/nss-myhostname.sym \
4819 src/nss-myhostname/nss-myhostname.c
4821 libnss_myhostname_la_LDFLAGS = \
4828 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4830 libnss_myhostname_la_LIBADD = \
4833 lib_LTLIBRARIES += \
4834 libnss_myhostname.la
4837 # ------------------------------------------------------------------------------
4839 systemd_machined_SOURCES = \
4840 src/machine/machined.c \
4841 src/machine/machined.h
4843 systemd_machined_LDADD = \
4846 rootlibexec_PROGRAMS += \
4849 libmachine_core_la_SOURCES = \
4850 src/machine/machine.c \
4851 src/machine/machine.h \
4852 src/machine/machined-dbus.c \
4853 src/machine/machine-dbus.c \
4854 src/machine/machine-dbus.h \
4855 src/machine/image-dbus.c \
4856 src/machine/image-dbus.h
4858 libmachine_core_la_LIBADD = \
4861 noinst_LTLIBRARIES += \
4864 machinectl_SOURCES = \
4865 src/machine/machinectl.c
4867 machinectl_LDADD = \
4870 rootbin_PROGRAMS += \
4873 dist_bashcompletion_DATA += \
4874 shell-completion/bash/machinectl
4876 test_machine_tables_SOURCES = \
4877 src/machine/test-machine-tables.c
4879 test_machine_tables_LDADD = \
4885 nodist_systemunit_DATA += \
4886 units/systemd-machined.service
4888 dist_systemunit_DATA += \
4891 dist_systemunit_DATA_busnames += \
4892 units/org.freedesktop.machine1.busname
4894 dist_dbussystemservice_DATA += \
4895 src/machine/org.freedesktop.machine1.service
4897 dist_dbuspolicy_DATA += \
4898 src/machine/org.freedesktop.machine1.conf
4900 polkitpolicy_files += \
4901 src/machine/org.freedesktop.machine1.policy
4903 dist_zshcompletion_DATA += \
4904 shell-completion/zsh/_machinectl \
4905 shell-completion/zsh/_sd_machines
4907 SYSTEM_UNIT_ALIASES += \
4908 systemd-machined.service dbus-org.freedesktop.machine1.service
4910 BUSNAMES_TARGET_WANTS += \
4911 org.freedesktop.machine1.busname
4913 libnss_mymachines_la_SOURCES = \
4914 src/nss-mymachines/nss-mymachines.sym \
4915 src/nss-mymachines/nss-mymachines.c
4917 libnss_mymachines_la_LDFLAGS = \
4924 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4926 libnss_mymachines_la_LIBADD = \
4929 lib_LTLIBRARIES += \
4930 libnss_mymachines.la
4934 polkitpolicy_in_files += \
4935 src/machine/org.freedesktop.machine1.policy.in
4938 units/systemd-machined.service.in
4940 # ------------------------------------------------------------------------------
4949 rootlibexec_PROGRAMS += \
4955 systemd_importd_SOURCES = \
4956 src/import/importd.c
4958 systemd_importd_CFLAGS = \
4960 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
4961 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
4962 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
4964 systemd_importd_LDADD = \
4967 systemd_pull_SOURCES = \
4969 src/import/pull-raw.c \
4970 src/import/pull-raw.h \
4971 src/import/pull-tar.c \
4972 src/import/pull-tar.h \
4973 src/import/pull-dkr.c \
4974 src/import/pull-dkr.h \
4975 src/import/pull-job.c \
4976 src/import/pull-job.h \
4977 src/import/pull-common.c \
4978 src/import/pull-common.h \
4979 src/import/import-common.c \
4980 src/import/import-common.h \
4981 src/import/import-compress.c \
4982 src/import/import-compress.h \
4983 src/import/curl-util.c \
4984 src/import/curl-util.h \
4985 src/import/aufs-util.c \
4986 src/import/aufs-util.h \
4987 src/import/qcow2-util.c \
4988 src/import/qcow2-util.h
4990 systemd_pull_CFLAGS = \
4996 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
4997 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
4999 systemd_pull_LDADD = \
5007 systemd_import_SOURCES = \
5008 src/import/import.c \
5009 src/import/import-raw.c \
5010 src/import/import-raw.h \
5011 src/import/import-tar.c \
5012 src/import/import-tar.h \
5013 src/import/import-common.c \
5014 src/import/import-common.h \
5015 src/import/import-compress.c \
5016 src/import/import-compress.h \
5017 src/import/qcow2-util.c \
5018 src/import/qcow2-util.h
5020 systemd_import_CFLAGS = \
5025 systemd_import_LDADD = \
5031 systemd_export_SOURCES = \
5032 src/import/export.c \
5033 src/import/export-tar.c \
5034 src/import/export-tar.h \
5035 src/import/export-raw.c \
5036 src/import/export-raw.h \
5037 src/import/import-common.c \
5038 src/import/import-common.h \
5039 src/import/import-compress.c \
5040 src/import/import-compress.h
5042 systemd_export_CFLAGS = \
5047 systemd_export_LDADD = \
5053 dist_rootlibexec_DATA = \
5054 src/import/import-pubring.gpg
5056 nodist_systemunit_DATA += \
5057 units/systemd-importd.service
5059 dist_systemunit_DATA_busnames += \
5060 units/org.freedesktop.import1.busname
5062 BUSNAMES_TARGET_WANTS += \
5063 org.freedesktop.import1.busname
5065 SYSTEM_UNIT_ALIASES += \
5066 systemd-importd.service dbus-org.freedesktop.import1.service
5068 dist_dbussystemservice_DATA += \
5069 src/import/org.freedesktop.import1.service
5071 dist_dbuspolicy_DATA += \
5072 src/import/org.freedesktop.import1.conf
5074 polkitpolicy_files += \
5075 src/import/org.freedesktop.import1.policy
5080 test_qcow2_SOURCES = \
5081 src/import/test-qcow2.c \
5082 src/import/qcow2-util.c \
5083 src/import/qcow2-util.h
5085 test_qcow2_CFLAGS = \
5089 test_qcow2_LDADD = \
5101 polkitpolicy_in_files += \
5102 src/import/org.freedesktop.import1.policy.in
5105 units/systemd-importd.service.in \
5106 src/resolve/resolved.conf.in
5109 # ------------------------------------------------------------------------------
5111 systemd_resolved_SOURCES = \
5112 src/resolve/resolved.c \
5113 src/resolve/resolved-manager.c \
5114 src/resolve/resolved-manager.h \
5115 src/resolve/resolved-conf.c \
5116 src/resolve/resolved-conf.h \
5117 src/resolve/resolved-bus.c \
5118 src/resolve/resolved-bus.h \
5119 src/resolve/resolved-link.h \
5120 src/resolve/resolved-link.c \
5121 src/resolve/resolved-llmnr.h \
5122 src/resolve/resolved-llmnr.c \
5123 src/resolve/resolved-def.h \
5124 src/resolve/resolved-dns-rr.h \
5125 src/resolve/resolved-dns-rr.c \
5126 src/resolve/resolved-dns-question.h \
5127 src/resolve/resolved-dns-question.c \
5128 src/resolve/resolved-dns-answer.h \
5129 src/resolve/resolved-dns-answer.c \
5130 src/resolve/resolved-dns-packet.h \
5131 src/resolve/resolved-dns-packet.c \
5132 src/resolve/resolved-dns-query.h \
5133 src/resolve/resolved-dns-query.c \
5134 src/resolve/resolved-dns-transaction.h \
5135 src/resolve/resolved-dns-transaction.c \
5136 src/resolve/resolved-dns-scope.h \
5137 src/resolve/resolved-dns-scope.c \
5138 src/resolve/resolved-dns-server.h \
5139 src/resolve/resolved-dns-server.c \
5140 src/resolve/resolved-dns-cache.h \
5141 src/resolve/resolved-dns-cache.c \
5142 src/resolve/resolved-dns-zone.h \
5143 src/resolve/resolved-dns-zone.c \
5144 src/resolve/resolved-dns-stream.h \
5145 src/resolve/resolved-dns-stream.c \
5146 src/resolve/dns-type.c \
5147 src/resolve/dns-type.h
5149 nodist_systemd_resolved_SOURCES = \
5150 src/resolve/dns_type-from-name.h \
5151 src/resolve/dns_type-to-name.h \
5152 src/resolve/resolved-gperf.c
5154 gperf_gperf_sources += \
5155 src/resolve/resolved-gperf.gperf
5157 gperf_txt_sources += \
5158 src/resolve/dns_type-list.txt
5160 systemd_resolved_LDADD = \
5161 libsystemd-network.la \
5164 rootlibexec_PROGRAMS += \
5167 nodist_systemunit_DATA += \
5168 units/systemd-resolved.service
5170 dist_systemunit_DATA_busnames += \
5171 units/org.freedesktop.resolve1.busname
5173 dist_dbuspolicy_DATA += \
5174 src/resolve/org.freedesktop.resolve1.conf
5176 dist_dbussystemservice_DATA += \
5177 src/resolve/org.freedesktop.resolve1.service
5179 SYSTEM_UNIT_ALIASES += \
5180 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5182 BUSNAMES_TARGET_WANTS += \
5183 org.freedesktop.resolve1.busname
5185 GENERAL_ALIASES += \
5186 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5188 nodist_pkgsysconf_DATA += \
5189 src/resolve/resolved.conf
5194 libnss_resolve_la_SOURCES = \
5195 src/nss-resolve/nss-resolve.sym \
5196 src/nss-resolve/nss-resolve.c
5198 libnss_resolve_la_LDFLAGS = \
5205 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5207 libnss_resolve_la_LIBADD = \
5210 lib_LTLIBRARIES += \
5213 systemd_resolve_host_SOURCES = \
5214 src/resolve-host/resolve-host.c \
5215 src/resolve/resolved-dns-packet.c \
5216 src/resolve/resolved-dns-packet.h \
5217 src/resolve/resolved-dns-rr.c \
5218 src/resolve/resolved-dns-rr.h \
5219 src/resolve/resolved-dns-answer.c \
5220 src/resolve/resolved-dns-answer.h \
5221 src/resolve/resolved-dns-question.c \
5222 src/resolve/resolved-dns-question.h \
5223 src/resolve/dns-type.c \
5224 src/resolve/dns-type.h
5226 nodist_systemd_resolve_host_SOURCES = \
5227 src/resolve/dns_type-from-name.h \
5228 src/resolve/dns_type-to-name.h
5230 systemd_resolve_host_LDADD = \
5233 rootlibexec_PROGRAMS += \
5234 systemd-resolve-host
5239 units/systemd-resolved.service.m4.in
5241 # ------------------------------------------------------------------------------
5243 rootlibexec_PROGRAMS += \
5246 systemd_networkd_SOURCES = \
5247 src/network/networkd.c
5249 systemd_networkd_LDADD = \
5253 systemd_networkd_LDADD += \
5257 noinst_LTLIBRARIES += \
5260 libnetworkd_core_la_CFLAGS = \
5263 libnetworkd_core_la_SOURCES = \
5264 src/libsystemd-network/network-internal.h \
5265 src/network/networkd.h \
5266 src/network/networkd-link.h \
5267 src/network/networkd-netdev.h \
5268 src/network/networkd-netdev-tunnel.h \
5269 src/network/networkd-netdev-veth.h \
5270 src/network/networkd-netdev-vxlan.h \
5271 src/network/networkd-netdev-vlan.h \
5272 src/network/networkd-netdev-macvlan.h \
5273 src/network/networkd-netdev-ipvlan.h \
5274 src/network/networkd-netdev-dummy.h \
5275 src/network/networkd-netdev-tuntap.h \
5276 src/network/networkd-netdev-bond.h \
5277 src/network/networkd-netdev-bridge.h \
5278 src/network/networkd-netdev.c \
5279 src/network/networkd-netdev-tunnel.c \
5280 src/network/networkd-netdev-veth.c \
5281 src/network/networkd-netdev-vxlan.c \
5282 src/network/networkd-netdev-vlan.c \
5283 src/network/networkd-netdev-macvlan.c \
5284 src/network/networkd-netdev-ipvlan.c \
5285 src/network/networkd-netdev-dummy.c \
5286 src/network/networkd-netdev-tuntap.c \
5287 src/network/networkd-netdev-bond.c \
5288 src/network/networkd-netdev-bridge.c \
5289 src/network/networkd-link.c \
5290 src/network/networkd-link-bus.c \
5291 src/network/networkd-ipv4ll.c \
5292 src/network/networkd-dhcp4.c \
5293 src/network/networkd-dhcp6.c \
5294 src/network/networkd-network.c \
5295 src/network/networkd-network-bus.c \
5296 src/network/networkd-address.c \
5297 src/network/networkd-route.c \
5298 src/network/networkd-manager.c \
5299 src/network/networkd-manager-bus.c \
5300 src/network/networkd-fdb.c \
5301 src/network/networkd-address-pool.c
5303 nodist_libnetworkd_core_la_SOURCES = \
5304 src/network/networkd-network-gperf.c \
5305 src/network/networkd-netdev-gperf.c
5307 libnetworkd_core_la_LIBADD = \
5308 libsystemd-network.la \
5311 rootlibexec_PROGRAMS += \
5312 systemd-networkd-wait-online
5314 systemd_networkd_wait_online_CFLAGS = \
5317 systemd_networkd_wait_online_SOURCES = \
5318 src/libsystemd-network/network-internal.h \
5319 src/network/networkd-wait-online.h \
5320 src/network/networkd-wait-online-link.h \
5321 src/network/networkd-wait-online.c \
5322 src/network/networkd-wait-online-manager.c \
5323 src/network/networkd-wait-online-link.c
5325 systemd_networkd_wait_online_LDADD = \
5326 libsystemd-network.la \
5329 rootbin_PROGRAMS += \
5332 networkctl_SOURCES = \
5333 src/network/networkctl.c
5335 networkctl_LDADD = \
5337 libsystemd-network.la
5339 test_network_SOURCES = \
5340 src/network/test-network.c
5342 test_network_LDADD = \
5346 test_network_LDADD += \
5350 test_network_tables_SOURCES = \
5351 src/network/test-network-tables.c \
5352 src/shared/test-tables.h
5354 test_network_tables_LDADD = \
5355 libnetworkd-core.la \
5359 test_network_tables_LDADD += \
5367 dist_systemunit_DATA += \
5368 units/systemd-networkd.socket
5370 nodist_systemunit_DATA += \
5371 units/systemd-networkd.service \
5372 units/systemd-networkd-wait-online.service
5374 dist_systemunit_DATA_busnames += \
5375 units/org.freedesktop.network1.busname
5377 dist_dbussystemservice_DATA += \
5378 src/network/org.freedesktop.network1.service
5380 dist_dbuspolicy_DATA += \
5381 src/network/org.freedesktop.network1.conf
5383 GENERAL_ALIASES += \
5384 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5385 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5386 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5388 SYSTEM_UNIT_ALIASES += \
5389 systemd-networkd.service dbus-org.freedesktop.network1.service
5391 BUSNAMES_TARGET_WANTS += \
5392 org.freedesktop.network1.busname
5394 gperf_gperf_sources += \
5395 src/network/networkd-network-gperf.gperf \
5396 src/network/networkd-netdev-gperf.gperf
5400 units/systemd-networkd.service.m4.in \
5401 units/systemd-networkd-wait-online.service.in
5403 # ------------------------------------------------------------------------------
5405 systemd_logind_SOURCES = \
5406 src/login/logind.c \
5409 nodist_systemd_logind_SOURCES = \
5410 src/login/logind-gperf.c
5412 systemd_logind_LDADD = \
5415 liblogind_core_la_SOURCES = \
5416 src/login/logind-core.c \
5417 src/login/logind-device.c \
5418 src/login/logind-device.h \
5419 src/login/logind-button.c \
5420 src/login/logind-button.h \
5421 src/login/logind-action.c \
5422 src/login/logind-action.h \
5423 src/login/logind-seat.c \
5424 src/login/logind-seat.h \
5425 src/login/logind-session.c \
5426 src/login/logind-session.h \
5427 src/login/logind-session-device.c \
5428 src/login/logind-session-device.h \
5429 src/login/logind-user.c \
5430 src/login/logind-user.h \
5431 src/login/logind-inhibit.c \
5432 src/login/logind-inhibit.h \
5433 src/login/logind-dbus.c \
5434 src/login/logind-session-dbus.c \
5435 src/login/logind-seat-dbus.c \
5436 src/login/logind-user-dbus.c \
5437 src/login/logind-utmp.c \
5438 src/login/logind-acl.h
5440 liblogind_core_la_LIBADD = \
5444 liblogind_core_la_SOURCES += \
5445 src/login/logind-acl.c
5448 noinst_LTLIBRARIES += \
5451 rootlibexec_PROGRAMS += \
5454 loginctl_SOURCES = \
5455 src/login/loginctl.c \
5456 src/login/sysfs-show.h \
5457 src/login/sysfs-show.c
5462 rootbin_PROGRAMS += \
5465 dist_bashcompletion_DATA += \
5466 shell-completion/bash/loginctl
5468 dist_zshcompletion_DATA += \
5469 shell-completion/zsh/_loginctl \
5470 shell-completion/zsh/_systemd-inhibit
5472 systemd_inhibit_SOURCES = \
5475 systemd_inhibit_LDADD = \
5478 rootbin_PROGRAMS += \
5481 test_login_SOURCES = \
5482 src/libsystemd/sd-login/test-login.c
5484 test_login_LDADD = \
5487 test_login_shared_SOURCES = \
5488 src/login/test-login-shared.c
5490 test_login_shared_LDADD = \
5493 test_inhibit_SOURCES = \
5494 src/login/test-inhibit.c
5496 test_inhibit_LDADD = \
5499 test_login_tables_SOURCES = \
5500 src/login/test-login-tables.c
5502 test_login_tables_LDADD = \
5514 pam_systemd_la_SOURCES = \
5515 src/login/pam_systemd.sym \
5516 src/login/pam_systemd.c
5518 pam_systemd_la_CFLAGS = \
5522 pam_systemd_la_LDFLAGS = \
5528 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5530 pam_systemd_la_LIBADD = \
5534 pamlib_LTLIBRARIES = \
5537 dist_pamconf_DATA = \
5538 src/login/systemd-user
5542 nodist_systemunit_DATA += \
5543 units/systemd-logind.service
5545 dist_systemunit_DATA += \
5548 dist_systemunit_DATA_busnames += \
5549 units/org.freedesktop.login1.busname
5551 dist_dbussystemservice_DATA += \
5552 src/login/org.freedesktop.login1.service
5554 dist_dbuspolicy_DATA += \
5555 src/login/org.freedesktop.login1.conf
5557 dist_pkgsysconf_DATA += \
5558 src/login/logind.conf
5560 polkitpolicy_files += \
5561 src/login/org.freedesktop.login1.policy
5566 MULTI_USER_TARGET_WANTS += \
5567 systemd-logind.service
5569 SYSTEM_UNIT_ALIASES += \
5570 systemd-logind.service dbus-org.freedesktop.login1.service
5572 BUSNAMES_TARGET_WANTS += \
5573 org.freedesktop.login1.busname
5575 dist_udevrules_DATA += \
5576 src/login/70-uaccess.rules \
5577 src/login/70-power-switch.rules
5579 nodist_udevrules_DATA += \
5580 src/login/71-seat.rules \
5581 src/login/73-seat-late.rules
5585 polkitpolicy_in_files += \
5586 src/login/org.freedesktop.login1.policy.in
5588 gperf_gperf_sources += \
5589 src/login/logind-gperf.gperf
5592 src/login/71-seat.rules.in \
5593 src/login/73-seat-late.rules.in \
5594 units/systemd-logind.service.in
5596 # ------------------------------------------------------------------------------
5599 systemd_user_sessions_SOURCES = \
5600 src/user-sessions/user-sessions.c
5602 systemd_user_sessions_LDADD = \
5605 rootlibexec_PROGRAMS += \
5606 systemd-user-sessions
5608 nodist_systemunit_DATA += \
5609 units/systemd-user-sessions.service
5611 MULTI_USER_TARGET_WANTS += \
5612 systemd-user-sessions.service
5617 units/systemd-user-sessions.service.in
5619 # ------------------------------------------------------------------------------
5622 test/README.testsuite \
5623 test/TEST-01-BASIC \
5624 test/TEST-01-BASIC/Makefile \
5625 test/TEST-01-BASIC/test.sh \
5626 test/TEST-02-CRYPTSETUP \
5627 test/TEST-02-CRYPTSETUP/Makefile \
5628 test/TEST-02-CRYPTSETUP/test.sh \
5630 test/TEST-03-JOBS/Makefile \
5631 test/TEST-03-JOBS/test-jobs.sh \
5632 test/TEST-03-JOBS/test.sh \
5636 test/loopy2.service \
5637 test/loopy3.service \
5638 test/loopy4.service \
5639 test/loopy.service \
5640 test/loopy.service.d \
5641 test/loopy.service.d/compat.conf
5643 # ------------------------------------------------------------------------------
5644 if ENABLE_COMPAT_LIBS
5645 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5646 $(AM_V_at)$(MKDIR_P) $(dir $@)
5647 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5650 libsystemd-journal.c \
5651 libsystemd-login.c \
5652 libsystemd-id128.c \
5655 nodist_libsystemd_journal_la_SOURCES = \
5656 libsystemd-journal.c
5658 libsystemd_journal_la_SOURCES = \
5659 src/compat-libs/libsystemd-journal.sym
5661 libsystemd_journal_la_CPPFLAGS = \
5663 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5665 libsystemd_journal_la_LDFLAGS = \
5667 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5668 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5670 libsystemd_journal_la_LIBADD = \
5671 libsystemd-journal-internal.la \
5672 libsystemd-internal.la
5674 nodist_libsystemd_login_la_SOURCES = \
5677 libsystemd_login_la_SOURCES = \
5678 src/compat-libs/libsystemd-login.sym
5680 libsystemd_login_la_CPPFLAGS = \
5682 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5684 libsystemd_login_la_LDFLAGS = \
5686 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5687 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5689 libsystemd_login_la_LIBADD = \
5690 libsystemd-internal.la
5692 nodist_libsystemd_id128_la_SOURCES = \
5695 libsystemd_id128_la_SOURCES = \
5696 src/compat-libs/libsystemd-id128.sym
5698 libsystemd_id128_la_CPPFLAGS = \
5700 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5702 libsystemd_id128_la_LDFLAGS = \
5704 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5705 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5707 libsystemd_id128_la_LIBADD = \
5708 libsystemd-internal.la
5710 nodist_libsystemd_daemon_la_SOURCES = \
5713 libsystemd_daemon_la_SOURCES = \
5714 src/compat-libs/libsystemd-daemon.sym
5716 libsystemd_daemon_la_CPPFLAGS = \
5718 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5720 libsystemd_daemon_la_LDFLAGS = \
5722 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5723 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5725 libsystemd_daemon_la_LIBADD = \
5726 libsystemd-internal.la
5728 lib_LTLIBRARIES += \
5729 libsystemd-journal.la \
5730 libsystemd-login.la \
5731 libsystemd-id128.la \
5732 libsystemd-daemon.la
5734 pkgconfiglib_DATA += \
5735 src/compat-libs/libsystemd-journal.pc \
5736 src/compat-libs/libsystemd-login.pc \
5737 src/compat-libs/libsystemd-id128.pc \
5738 src/compat-libs/libsystemd-daemon.pc
5740 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5741 compat-lib-install-hook:
5742 libname=libsystemd-login.so && $(move-to-rootlibdir)
5743 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5744 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5745 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5747 compat-lib-uninstall-hook:
5748 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5749 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5750 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5751 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5753 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5754 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5758 src/compat-libs/linkwarning.h \
5759 src/compat-libs/libsystemd-journal.pc.in \
5760 src/compat-libs/libsystemd-login.pc.in \
5761 src/compat-libs/libsystemd-id128.pc.in \
5762 src/compat-libs/libsystemd-daemon.pc.in
5764 # ------------------------------------------------------------------------------
5766 '|rootlibexecdir=$(rootlibexecdir)|' \
5767 '|rootbindir=$(rootbindir)|' \
5768 '|bindir=$(bindir)|' \
5769 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5770 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5771 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5772 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5773 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5774 '|pkgdatadir=$(pkgdatadir)|' \
5775 '|systemunitdir=$(systemunitdir)|' \
5776 '|userunitdir=$(userunitdir)|' \
5777 '|systempresetdir=$(systempresetdir)|' \
5778 '|userpresetdir=$(userpresetdir)|' \
5779 '|udevhwdbdir=$(udevhwdbdir)|' \
5780 '|udevrulesdir=$(udevrulesdir)|' \
5781 '|catalogdir=$(catalogdir)|' \
5782 '|tmpfilesdir=$(tmpfilesdir)|' \
5783 '|sysusersdir=$(sysusersdir)|' \
5784 '|sysctldir=$(sysctldir)|' \
5785 '|systemgeneratordir=$(systemgeneratordir)|' \
5786 '|usergeneratordir=$(usergeneratordir)|' \
5787 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5788 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5789 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5790 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5791 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5792 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5793 '|prefix=$(prefix)|' \
5794 '|exec_prefix=$(exec_prefix)|' \
5795 '|libdir=$(libdir)|' \
5796 '|includedir=$(includedir)|' \
5797 '|VERSION=$(VERSION)|' \
5798 '|rootprefix=$(rootprefix)|' \
5799 '|udevlibexecdir=$(udevlibexecdir)|' \
5800 '|SUSHELL=$(SUSHELL)|' \
5801 '|SULOGIN=$(SULOGIN)|' \
5802 '|DEBUGTTY=$(DEBUGTTY)|' \
5805 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5806 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5807 '|MKDIR_P=$(MKDIR_P)|' \
5808 '|QUOTAON=$(QUOTAON)|' \
5809 '|QUOTACHECK=$(QUOTACHECK)|' \
5810 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5811 '|VARLOGDIR=$(varlogdir)|' \
5812 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5813 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5814 '|PYTHON=$(PYTHON)|' \
5815 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5816 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5817 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5818 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5819 '|TTY_GID=$(TTY_GID)|' \
5820 '|systemsleepdir=$(systemsleepdir)|' \
5821 '|systemshutdowndir=$(systemshutdowndir)|' \
5822 '|binfmtdir=$(binfmtdir)|' \
5823 '|modulesloaddir=$(modulesloaddir)|'
5826 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5827 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5836 sysctl.d/%: sysctl.d/%.in
5845 src/core/macros.%: src/core/macros.%.in
5848 src/%.policy.in: src/%.policy.in.in
5851 shell-completion/%: shell-completion/%.in
5862 $(AM_V_GEN)chmod +x $@
5864 src/%.c: src/%.gperf
5865 $(AM_V_at)$(MKDIR_P) $(dir $@)
5866 $(AM_V_GPERF)$(GPERF) < $< > $@
5869 $(AM_V_at)$(MKDIR_P) $(dir $@)
5870 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5872 sysusers.d/%: sysusers.d/%.m4
5873 $(AM_V_at)$(MKDIR_P) $(dir $@)
5874 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5876 tmpfiles.d/%: tmpfiles.d/%.m4
5877 $(AM_V_at)$(MKDIR_P) $(dir $@)
5878 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5882 $(AM_V_at)$(MKDIR_P) $(dir $@)
5883 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5885 units/user/%: units/user/%.m4
5886 $(AM_V_at)$(MKDIR_P) $(dir $@)
5887 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5890 nodist_polkitpolicy_DATA = \
5891 $(polkitpolicy_files) \
5892 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5896 $(polkitpolicy_in_files) \
5897 $(polkitpolicy_in_in_files)
5899 # ------------------------------------------------------------------------------
5901 man/custom-entities.ent: configure.ac
5902 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5903 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5904 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5908 man/custom-entities.ent
5913 --stringparam man.output.quietly 1 \
5914 --stringparam funcsynopsis.style ansi \
5915 --stringparam man.authors.section.enabled 0 \
5916 --stringparam man.copyright.section.enabled 0 \
5917 --stringparam systemd.version $(VERSION) \
5918 --path '$(builddir)/man:$(srcdir)/man'
5920 XSLTPROC_PROCESS_MAN = \
5921 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5923 XSLTPROC_PROCESS_HTML = \
5924 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5926 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5927 $(XSLTPROC_PROCESS_MAN)
5929 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5930 $(XSLTPROC_PROCESS_MAN)
5932 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5933 $(XSLTPROC_PROCESS_MAN)
5935 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5936 $(XSLTPROC_PROCESS_MAN)
5938 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5939 $(XSLTPROC_PROCESS_MAN)
5941 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5942 $(XSLTPROC_PROCESS_HTML)
5945 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5951 man/custom-html.xsl \
5954 # ------------------------------------------------------------------------------
5957 docs/sysvinit/README
5962 docs/sysvinit/README: docs/sysvinit/README.in
5965 docs/var-log/README: docs/var-log/README.in
5969 docs/sysvinit/README \
5974 docs/sysvinit/README.in \
5975 docs/var-log/README.in
5977 SOCKETS_TARGET_WANTS += \
5978 systemd-initctl.socket
5982 MULTI_USER_TARGET_WANTS += \
5983 systemd-update-utmp-runlevel.service
5984 GRAPHICAL_TARGET_WANTS += \
5985 systemd-update-utmp-runlevel.service
5986 RESCUE_TARGET_WANTS += \
5987 systemd-update-utmp-runlevel.service
5990 SYSINIT_TARGET_WANTS += \
5991 systemd-update-utmp.service
5994 SYSINIT_TARGET_WANTS += \
5995 systemd-update-done.service
5997 LOCAL_FS_TARGET_WANTS += \
5998 systemd-remount-fs.service \
6000 var-lib-machines.mount
6002 MULTI_USER_TARGET_WANTS += \
6004 systemd-ask-password-wall.path
6006 SYSINIT_TARGET_WANTS += \
6007 dev-hugepages.mount \
6009 sys-kernel-config.mount \
6010 sys-kernel-debug.mount \
6011 sys-fs-fuse-connections.mount \
6012 systemd-sysctl.service \
6013 systemd-ask-password-console.path
6016 SYSTEM_UNIT_ALIASES += \
6017 poweroff.target runlevel0.target \
6018 rescue.target runlevel1.target \
6019 multi-user.target runlevel2.target \
6020 multi-user.target runlevel3.target \
6021 multi-user.target runlevel4.target \
6022 graphical.target runlevel5.target \
6023 reboot.target runlevel6.target
6026 SYSTEM_UNIT_ALIASES += \
6027 graphical.target default.target \
6028 reboot.target ctrl-alt-del.target \
6029 getty@.service autovt@.service
6031 USER_UNIT_ALIASES += \
6032 $(systemunitdir)/shutdown.target shutdown.target \
6033 $(systemunitdir)/sockets.target sockets.target \
6034 $(systemunitdir)/timers.target timers.target \
6035 $(systemunitdir)/paths.target paths.target \
6036 $(systemunitdir)/bluetooth.target bluetooth.target \
6037 $(systemunitdir)/printer.target printer.target \
6038 $(systemunitdir)/sound.target sound.target \
6039 $(systemunitdir)/smartcard.target smartcard.target
6041 USER_UNIT_ALIASES += \
6042 $(systemunitdir)/busnames.target busnames.target
6044 GENERAL_ALIASES += \
6045 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6046 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6047 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6048 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6052 $(systemunitdir)/runlevel1.target.wants \
6053 $(systemunitdir)/runlevel2.target.wants \
6054 $(systemunitdir)/runlevel3.target.wants \
6055 $(systemunitdir)/runlevel4.target.wants \
6056 $(systemunitdir)/runlevel5.target.wants
6060 $(prefix)/lib/modules-load.d \
6061 $(sysconfdir)/modules-load.d \
6062 $(prefix)/lib/systemd/network \
6063 $(sysconfdir)/systemd/network \
6064 $(prefix)/lib/sysctl.d \
6065 $(sysconfdir)/sysctl.d \
6066 $(prefix)/lib/kernel/install.d \
6067 $(sysconfdir)/kernel/install.d \
6068 $(systemshutdowndir) \
6070 $(systemgeneratordir) \
6071 $(usergeneratordir) \
6074 $(pkgsysconfdir)/system \
6075 $(pkgsysconfdir)/system/multi-user.target.wants \
6076 $(pkgsysconfdir)/system/getty.target.wants \
6077 $(pkgsysconfdir)/user \
6078 $(dbussessionservicedir) \
6079 $(sysconfdir)/xdg/systemd
6081 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6083 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6085 install-data-hook: $(INSTALL_DATA_HOOKS)
6087 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6089 clean-local: $(CLEAN_LOCAL_HOOKS)
6090 rm -rf $(abs_srcdir)/install-tree
6091 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6092 $(abs_srcdir)/hwdb/iab.txt
6094 DISTCHECK_CONFIGURE_FLAGS = \
6095 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6096 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6097 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6098 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6099 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6100 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6101 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6102 --with-rootprefix=$$dc_install_base \
6103 --enable-compat-libs
6106 DISTCHECK_CONFIGURE_FLAGS += \
6107 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6108 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6110 DISTCHECK_CONFIGURE_FLAGS += \
6111 --with-sysvinit-path= \
6112 --with-sysvrcnd-path=
6116 DISTCHECK_CONFIGURE_FLAGS += \
6119 DISTCHECK_CONFIGURE_FLAGS += \
6124 # Require python when making dist
6126 .PHONY: dist-check-python dist-check-compat-libs dist-check-help
6129 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6133 dist-check-compat-libs:
6134 if !ENABLE_COMPAT_LIBS
6135 @echo "*** compat-libs must be enabled in order to make dist"
6139 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6140 for i in $(abspath $^); do \
6141 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6142 echo "$(basename $$i) --help output is too wide:"; \
6143 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6147 dist: dist-check-python dist-check-compat-libs
6151 ( cd $(top_srcdir)/hwdb && \
6152 wget -N http://www.linux-usb.org/usb.ids \
6153 http://pci-ids.ucw.cz/v2.2/pci.ids \
6154 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6155 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6158 .PHONY: built-sources
6159 built-sources: $(BUILT_SOURCES)
6163 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6167 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | xz > systemd-$(VERSION).tar.xz
6169 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6172 doc-sync: all destdir-sphinx
6173 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6177 scp man/*.html gardel:public/systemd-man/
6179 .PHONY: lennart-fedora
6181 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6183 .PHONY: install-tree
6185 rm -rf $(abs_srcdir)/install-tree
6186 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6187 tree $(abs_srcdir)/install-tree
6189 # Let's run all tests of the test suite, but under valgrind. Let's
6190 # exclude the one perl script we have in there
6191 .PHONY: valgrind-tests
6192 valgrind-tests: $(TESTS)
6193 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6194 if file $$f | grep -q shell; then \
6195 echo -e "$${x}Skipping non-binary $$f"; else \
6196 echo -e "$${x}Running $$f"; \
6197 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6202 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6204 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6205 $(AM_V_GEN)sort -u $^ > $@
6207 .PHONY: check-api-docs
6208 check-api-docs: exported man
6209 $(AM_V_GEN)for symbol in `cat exported` ; do \
6210 if test -f $(builddir)/man/$$symbol.html ; then \
6211 echo " Symbol $$symbol() is documented." ; \
6213 echo "‣ Symbol $$symbol() lacks documentation." ; \
6217 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6218 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6220 undefined defined: $(ALL_OBJECTS)
6221 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6222 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6223 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6229 .PHONY: check-api-unused
6230 check-api-unused: defined undefined exported
6231 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6233 .PHONY: check-includes
6234 check-includes: $(top_srcdir)/tools/check-includes.pl
6235 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6236 | xargs $(top_srcdir)/tools/check-includes.pl
6239 $(top_srcdir)/tools/check-includes.pl
6241 # Stupid test that everything purported to be exported really is
6242 define generate-sym-test
6243 $(AM_V_at)$(MKDIR_P) $(dir $@)
6244 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6245 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6246 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6247 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6248 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6249 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6250 $(AM_V_at)printf 'return 0; }\n' >> $@
6253 test-libsystemd-sym.c: \
6254 $(top_builddir)/src/libsystemd/libsystemd.sym \
6255 src/systemd/sd-journal.h \
6256 src/systemd/sd-daemon.h \
6257 src/systemd/sd-login.h \
6258 src/systemd/sd-bus.h \
6259 src/systemd/sd-utf8.h \
6260 src/systemd/sd-resolve.h \
6261 src/systemd/sd-path.h \
6262 src/systemd/sd-event.h
6263 $(generate-sym-test)
6265 test-libudev-sym.c: \
6266 src/libudev/libudev.sym \
6268 $(generate-sym-test)
6270 nodist_test_libsystemd_sym_SOURCES = \
6271 test-libsystemd-sym.c
6272 test_libsystemd_sym_LDADD = \
6275 nodist_test_libudev_sym_SOURCES = \
6277 test_libudev_sym_CFLAGS = \
6279 -Wno-deprecated-declarations
6280 test_libudev_sym_LDADD = \
6284 test-libsystemd-sym.c \
6288 test-libsystemd-sym.c \
6292 test-libsystemd-sym \
6297 cppcheck --enable=all -q $(top_srcdir)
6299 # Used to extract compile flags for YCM.
6304 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6307 tools/gdb-sd_dump_hashmaps.py
6310 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6313 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -