1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfigdatadir=$(datadir)/pkgconfig
78 pkgconfiglibdir=$(libdir)/pkgconfig
79 polkitpolicydir=$(datadir)/polkit-1/actions
80 bashcompletiondir=@bashcompletiondir@
81 zshcompletiondir=@zshcompletiondir@
82 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
83 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
84 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
85 varlogdir=$(localstatedir)/log
86 systemdstatedir=$(localstatedir)/lib/systemd
87 catalogstatedir=$(systemdstatedir)/catalog
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
152 noinst_PROGRAMS = $(manual_tests) $(tests)
158 udevlibexec_PROGRAMS =
160 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
161 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
162 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165 -include $(top_builddir)/config.h \
166 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
167 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
168 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
169 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
170 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
171 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
172 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
173 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
174 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
175 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
176 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
177 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
178 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
179 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
180 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
181 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
182 -DROOTPREFIX=\"$(rootprefix)\" \
183 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
184 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
185 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
186 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
187 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
188 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
189 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
190 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
191 -DX_SERVER=\"$(bindir)/X\" \
192 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
193 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
194 -DQUOTACHECK=\"$(QUOTACHECK)\" \
195 -DKEXEC=\"$(KEXEC)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DROOTLIBDIR=\"$(rootlibdir)\" \
198 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
199 -I $(top_srcdir)/src \
200 -I $(top_builddir)/src/shared \
201 -I $(top_srcdir)/src/shared \
202 -I $(top_srcdir)/src/network \
203 -I $(top_srcdir)/src/login \
204 -I $(top_srcdir)/src/journal \
205 -I $(top_srcdir)/src/timedate \
206 -I $(top_srcdir)/src/timesync \
207 -I $(top_srcdir)/src/resolve \
208 -I $(top_builddir)/src/resolve \
209 -I $(top_srcdir)/src/systemd \
210 -I $(top_builddir)/src/core \
211 -I $(top_srcdir)/src/core \
212 -I $(top_srcdir)/src/libudev \
213 -I $(top_srcdir)/src/udev \
214 -I $(top_srcdir)/src/udev/net \
215 -I $(top_builddir)/src/udev \
216 -I $(top_srcdir)/src/libsystemd/sd-bus \
217 -I $(top_srcdir)/src/libsystemd/sd-event \
218 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
219 -I $(top_srcdir)/src/libsystemd/sd-network \
220 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
221 -I $(top_srcdir)/src/libsystemd-network \
222 -I $(top_srcdir)/src/libsystemd-terminal \
225 AM_CFLAGS = $(OUR_CFLAGS)
226 AM_LDFLAGS = $(OUR_LDFLAGS)
228 # ------------------------------------------------------------------------------
229 define move-to-rootlibdir
230 if test "$(libdir)" != "$(rootlibdir)"; then \
231 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
232 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
233 rm -f $(DESTDIR)$(libdir)/$$libname && \
234 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
235 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
241 RUNLEVEL1_TARGET_WANTS =
242 RUNLEVEL2_TARGET_WANTS =
243 RUNLEVEL3_TARGET_WANTS =
244 RUNLEVEL4_TARGET_WANTS =
245 RUNLEVEL5_TARGET_WANTS =
246 SHUTDOWN_TARGET_WANTS =
247 LOCAL_FS_TARGET_WANTS =
248 MULTI_USER_TARGET_WANTS =
249 SYSINIT_TARGET_WANTS =
250 SOCKETS_TARGET_WANTS =
251 BUSNAMES_TARGET_WANTS =
252 TIMERS_TARGET_WANTS =
253 USER_SOCKETS_TARGET_WANTS =
254 USER_DEFAULT_TARGET_WANTS =
255 USER_BUSNAMES_TARGET_WANTS =
257 SYSTEM_UNIT_ALIASES =
261 install-target-wants-hook:
262 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
274 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
275 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
277 install-busnames-target-wants-hook:
278 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
282 [ -z "$$what" ] || ( \
283 dir=$(DESTDIR)$$dir/$$wants.wants && \
284 $(MKDIR_P) -m 0755 $$dir && \
287 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
290 install-directories-hook:
291 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
293 install-aliases-hook:
294 set -- $(SYSTEM_UNIT_ALIASES) && \
295 dir=$(systemunitdir) && $(install-aliases)
296 set -- $(USER_UNIT_ALIASES) && \
297 dir=$(userunitdir) && $(install-relative-aliases)
298 set -- $(GENERAL_ALIASES) && \
299 dir= && $(install-relative-aliases)
301 define install-aliases
302 while [ -n "$$1" ]; do \
303 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
304 rm -f $(DESTDIR)$$dir/$$2 && \
305 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
306 shift 2 || exit $$?; \
310 define install-relative-aliases
311 while [ -n "$$1" ]; do \
312 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
313 rm -f $(DESTDIR)$$dir/$$2 && \
314 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
315 shift 2 || exit $$?; \
319 install-touch-usr-hook:
320 touch -c $(DESTDIR)/$(prefix)
322 INSTALL_EXEC_HOOKS += \
323 install-target-wants-hook \
324 install-directories-hook \
325 install-aliases-hook \
326 install-touch-usr-hook
329 INSTALL_EXEC_HOOKS += \
330 install-busnames-target-wants-hook
333 # ------------------------------------------------------------------------------
334 AM_V_M4 = $(AM_V_M4_$(V))
335 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
336 AM_V_M4_0 = @echo " M4 " $@;
338 AM_V_XSLT = $(AM_V_XSLT_$(V))
339 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
340 AM_V_XSLT_0 = @echo " XSLT " $@;
342 AM_V_GPERF = $(AM_V_GPERF_$(V))
343 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
344 AM_V_GPERF_0 = @echo " GPERF " $@;
346 AM_V_LN = $(AM_V_LN_$(V))
347 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
348 AM_V_LN_0 = @echo " LN " $@;
350 AM_V_RM = $(AM_V_RM_$(V))
351 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
352 AM_V_RM_0 = @echo " RM " $@;
354 # ------------------------------------------------------------------------------
358 systemd-ask-password \
359 systemd-tty-ask-password-agent \
360 systemd-machine-id-setup \
367 systemd-detect-virt \
374 src/kernel-install/kernel-install
376 dist_kernelinstall_SCRIPTS = \
377 src/kernel-install/50-depmod.install \
378 src/kernel-install/90-loaderentry.install
380 rootlibexec_PROGRAMS = \
382 systemd-cgroups-agent \
387 systemd-reply-password \
389 systemd-machine-id-commit \
394 systemd-socket-proxyd \
398 rootlibexec_PROGRAMS += \
402 systemgenerator_PROGRAMS = \
403 systemd-getty-generator \
404 systemd-fstab-generator \
405 systemd-system-update-generator \
406 systemd-debug-generator
408 dist_bashcompletion_DATA = \
409 shell-completion/bash/busctl \
410 shell-completion/bash/journalctl \
411 shell-completion/bash/systemd-analyze \
412 shell-completion/bash/systemd-cat \
413 shell-completion/bash/systemd-cgls \
414 shell-completion/bash/systemd-cgtop \
415 shell-completion/bash/systemd-delta \
416 shell-completion/bash/systemd-detect-virt \
417 shell-completion/bash/systemd-nspawn \
418 shell-completion/bash/systemd-run \
419 shell-completion/bash/udevadm \
420 shell-completion/bash/kernel-install
422 nodist_bashcompletion_DATA = \
423 shell-completion/bash/systemctl
425 dist_zshcompletion_DATA = \
426 shell-completion/zsh/_journalctl \
427 shell-completion/zsh/_udevadm \
428 shell-completion/zsh/_kernel-install \
429 shell-completion/zsh/_systemd-nspawn \
430 shell-completion/zsh/_systemd-analyze \
431 shell-completion/zsh/_systemd-run \
432 shell-completion/zsh/_sd_hosts_or_user_at_host \
433 shell-completion/zsh/_sd_outputmodes \
434 shell-completion/zsh/_sd_unit_files \
435 shell-completion/zsh/_systemd-delta \
436 shell-completion/zsh/_systemd
438 nodist_zshcompletion_DATA = \
439 shell-completion/zsh/_systemctl
442 shell-completion/bash/systemctl.in \
443 shell-completion/zsh/_systemctl.in
446 $(nodist_bashcompletion_DATA) \
447 $(nodist_zshcompletion_DATA)
450 sysctl.d/50-default.conf
452 dist_systemunit_DATA = \
453 units/graphical.target \
454 units/multi-user.target \
455 units/emergency.target \
456 units/sysinit.target \
461 units/local-fs.target \
462 units/local-fs-pre.target \
463 units/initrd.target \
464 units/initrd-fs.target \
465 units/initrd-root-fs.target \
466 units/remote-fs.target \
467 units/remote-fs-pre.target \
468 units/network.target \
469 units/network-pre.target \
470 units/network-online.target \
471 units/nss-lookup.target \
472 units/nss-user-lookup.target \
473 units/poweroff.target \
474 units/reboot.target \
475 units/rescue.target \
476 units/rpcbind.target \
477 units/time-sync.target \
478 units/shutdown.target \
480 units/umount.target \
481 units/sigpwr.target \
483 units/sockets.target \
484 units/timers.target \
486 units/suspend.target \
488 units/slices.target \
491 units/systemd-initctl.socket \
492 units/systemd-shutdownd.socket \
493 units/syslog.socket \
494 units/dev-hugepages.mount \
495 units/dev-mqueue.mount \
496 units/sys-kernel-config.mount \
497 units/sys-kernel-debug.mount \
498 units/sys-fs-fuse-connections.mount \
500 units/printer.target \
502 units/bluetooth.target \
503 units/smartcard.target \
504 units/systemd-ask-password-wall.path \
505 units/systemd-ask-password-console.path \
506 units/systemd-udevd-control.socket \
507 units/systemd-udevd-kernel.socket \
508 units/system-update.target \
509 units/initrd-switch-root.target
512 dist_systemunit_DATA += \
513 $(dist_systemunit_DATA_busnames)
516 dist_systemunit_DATA_busnames += \
517 units/busnames.target
519 nodist_systemunit_DATA = \
520 units/getty@.service \
521 units/serial-getty@.service \
522 units/console-shell.service \
523 units/console-getty.service \
524 units/container-getty@.service \
525 units/systemd-initctl.service \
526 units/systemd-shutdownd.service \
527 units/systemd-remount-fs.service \
528 units/systemd-ask-password-wall.service \
529 units/systemd-ask-password-console.service \
530 units/systemd-sysctl.service \
531 units/emergency.service \
532 units/rescue.service \
533 units/user@.service \
534 units/systemd-suspend.service \
535 units/systemd-halt.service \
536 units/systemd-poweroff.service \
537 units/systemd-reboot.service \
538 units/systemd-kexec.service \
539 units/systemd-fsck@.service \
540 units/systemd-fsck-root.service \
541 units/systemd-machine-id-commit.service \
542 units/systemd-udevd.service \
543 units/systemd-udev-trigger.service \
544 units/systemd-udev-settle.service \
545 units/systemd-udev-hwdb-update.service \
546 units/debug-shell.service \
547 units/initrd-parse-etc.service \
548 units/initrd-cleanup.service \
549 units/initrd-udevadm-cleanup-db.service \
550 units/initrd-switch-root.service \
551 units/systemd-nspawn@.service \
552 units/systemd-update-done.service
555 nodist_systemunit_DATA += \
556 units/systemd-update-utmp.service \
557 units/systemd-update-utmp-runlevel.service
560 dist_userunit_DATA = \
561 units/user/basic.target \
562 units/user/default.target \
563 units/user/exit.target
565 nodist_userunit_DATA = \
566 units/user/systemd-exit.service
568 dist_systempreset_DATA = \
569 system-preset/90-systemd.preset
572 units/getty@.service.m4 \
573 units/serial-getty@.service.m4 \
574 units/console-shell.service.m4.in \
575 units/console-getty.service.m4.in \
576 units/container-getty@.service.m4.in \
577 units/rescue.service.in \
578 units/systemd-initctl.service.in \
579 units/systemd-shutdownd.service.in \
580 units/systemd-remount-fs.service.in \
581 units/systemd-update-utmp.service.in \
582 units/systemd-update-utmp-runlevel.service.in \
583 units/systemd-ask-password-wall.service.in \
584 units/systemd-ask-password-console.service.in \
585 units/systemd-sysctl.service.in \
586 units/emergency.service.in \
587 units/systemd-halt.service.in \
588 units/systemd-poweroff.service.in \
589 units/systemd-reboot.service.in \
590 units/systemd-kexec.service.in \
591 units/user/systemd-exit.service.in \
592 units/systemd-fsck@.service.in \
593 units/systemd-fsck-root.service.in \
594 units/systemd-machine-id-commit.service.in \
595 units/user@.service.m4.in \
596 units/debug-shell.service.in \
597 units/systemd-suspend.service.in \
598 units/quotaon.service.in \
599 units/initrd-parse-etc.service.in \
600 units/initrd-cleanup.service.in \
601 units/initrd-udevadm-cleanup-db.service.in \
602 units/initrd-switch-root.service.in \
603 units/systemd-nspawn@.service.in \
604 units/systemd-update-done.service.in
607 units/console-shell.service.m4 \
608 units/console-getty.service.m4 \
609 units/container-getty@.service.m4 \
610 units/user@.service.m4
613 nodist_systemunit_DATA += \
614 units/rc-local.service \
615 units/halt-local.service
617 systemgenerator_PROGRAMS += \
618 systemd-sysv-generator \
619 systemd-rc-local-generator
623 units/rc-local.service.in \
624 units/halt-local.service.in
626 # automake is broken and can't handle files with a dash in front
627 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
629 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
631 units-uninstall-hook:
632 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
634 INSTALL_DATA_HOOKS += units-install-hook
635 UNINSTALL_DATA_HOOKS += units-uninstall-hook
644 src/libsystemd/sd-bus/PORTING-DBUS1 \
645 src/libsystemd/sd-bus/DIFFERENCES \
646 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
648 @INTLTOOL_POLICY_RULE@
650 # ------------------------------------------------------------------------------
655 include Makefile-man.am
657 .PHONY: man update-man-list
658 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
661 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
663 ${XML_FILES:.xml=.html}
665 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
682 $(AM_V_at)$(MKDIR_P) $(dir $@)
683 $(AM_V_LN)$(LN_S) -f ../../man $@
692 man/index.html: man/systemd.index.html
693 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
701 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
702 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
703 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
705 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
706 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
707 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
708 @echo "Makefile-man.am has been regenerated"
710 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
711 $(AM_V_at)$(MKDIR_P) $(dir $@)
712 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
714 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
715 $(AM_V_at)$(MKDIR_P) $(dir $@)
716 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
719 man/systemd.index.xml \
721 man/systemd.directives.xml \
722 man/glib-event-glue.c
725 man/systemd.index.xml \
726 man/systemd.directives.xml
737 tools/make-man-index.py \
738 tools/make-directive-index.py \
741 # ------------------------------------------------------------------------------
742 noinst_LTLIBRARIES += \
745 libsystemd_shared_la_SOURCES = \
746 src/shared/capability.c \
747 src/shared/capability.h \
748 src/shared/linux/auto_dev-ioctl.h \
749 src/shared/ioprio.h \
750 src/shared/missing.h \
751 src/shared/initreq.h \
752 src/shared/securebits.h \
753 src/shared/special.h \
755 src/shared/unaligned.h \
758 src/shared/sparse-endian.h \
759 src/shared/refcnt.h \
760 src/shared/udev-util.h \
761 src/shared/device-nodes.c \
762 src/shared/device-nodes.h \
767 src/shared/architecture.c \
768 src/shared/architecture.h \
769 src/shared/efivars.c \
770 src/shared/efivars.h \
771 src/shared/path-util.c \
772 src/shared/path-util.h \
773 src/shared/time-util.c \
774 src/shared/time-util.h \
775 src/shared/locale-util.c \
776 src/shared/locale-util.h \
777 src/shared/mempool.c \
778 src/shared/mempool.h \
779 src/shared/hashmap.c \
780 src/shared/hashmap.h \
781 src/shared/siphash24.c \
782 src/shared/siphash24.h \
788 src/shared/sleep-config.c \
789 src/shared/sleep-config.h \
792 src/shared/env-util.c \
793 src/shared/env-util.h \
794 src/shared/strbuf.c \
795 src/shared/strbuf.h \
796 src/shared/strxcpyx.c \
797 src/shared/strxcpyx.h \
798 src/shared/conf-parser.c \
799 src/shared/conf-parser.h \
802 src/shared/ratelimit.h \
803 src/shared/ratelimit.c \
804 src/shared/exit-status.c \
805 src/shared/exit-status.h \
808 src/shared/gunicode.c \
809 src/shared/gunicode.h \
812 src/shared/socket-util.c \
813 src/shared/socket-util.h \
814 src/shared/in-addr-util.c \
815 src/shared/in-addr-util.h \
816 src/shared/ether-addr-util.h \
817 src/shared/conf-files.c \
818 src/shared/conf-files.h \
819 src/shared/cgroup-util.c \
820 src/shared/cgroup-util.h \
821 src/shared/cgroup-show.c \
822 src/shared/cgroup-show.h \
823 src/shared/unit-name.c \
824 src/shared/unit-name.h \
825 src/shared/utmp-wtmp.h \
826 src/shared/watchdog.c \
827 src/shared/watchdog.h \
828 src/shared/spawn-ask-password-agent.c \
829 src/shared/spawn-ask-password-agent.h \
830 src/shared/replace-var.c \
831 src/shared/replace-var.h \
832 src/shared/spawn-polkit-agent.c \
833 src/shared/spawn-polkit-agent.h \
834 src/shared/clock-util.c \
835 src/shared/clock-util.h \
836 src/shared/time-dst.c \
837 src/shared/time-dst.h \
838 src/shared/calendarspec.c \
839 src/shared/calendarspec.h \
840 src/shared/fileio.c \
841 src/shared/fileio.h \
842 src/shared/output-mode.h \
843 src/shared/MurmurHash2.c \
844 src/shared/MurmurHash2.h \
845 src/shared/acpi-fpdt.h \
846 src/shared/acpi-fpdt.c \
847 src/shared/boot-timestamps.h \
848 src/shared/boot-timestamps.c \
851 src/shared/smack-util.c \
852 src/shared/smack-util.h \
853 src/shared/apparmor-util.c \
854 src/shared/apparmor-util.h \
855 src/shared/ima-util.c \
856 src/shared/ima-util.h \
857 src/shared/ptyfwd.c \
858 src/shared/ptyfwd.h \
859 src/shared/errno-list.c \
860 src/shared/errno-list.h \
861 src/shared/af-list.c \
862 src/shared/af-list.h \
863 src/shared/arphrd-list.c \
864 src/shared/arphrd-list.h \
865 src/shared/cap-list.c \
866 src/shared/cap-list.h \
871 src/shared/bus-label.c \
872 src/shared/bus-label.h \
874 src/shared/clean-ipc.h \
875 src/shared/clean-ipc.c \
876 src/shared/login-shared.c \
877 src/shared/login-shared.h \
880 src/shared/barrier.c \
881 src/shared/barrier.h \
888 src/shared/base-filesystem.c \
889 src/shared/base-filesystem.h \
890 src/shared/memfd-util.c \
891 src/shared/memfd-util.h \
892 src/shared/uid-range.c \
893 src/shared/uid-range.h \
894 src/shared/nss-util.h
897 libsystemd_shared_la_SOURCES += \
898 src/shared/utmp-wtmp.c
901 nodist_libsystemd_shared_la_SOURCES = \
902 src/shared/errno-from-name.h \
903 src/shared/errno-to-name.h \
904 src/shared/af-from-name.h \
905 src/shared/af-to-name.h \
906 src/shared/arphrd-from-name.h \
907 src/shared/arphrd-to-name.h \
908 src/shared/cap-from-name.h \
909 src/shared/cap-to-name.h
911 libsystemd_shared_la_CFLAGS = \
917 libsystemd_shared_la_LIBADD = \
920 # ------------------------------------------------------------------------------
921 noinst_LTLIBRARIES += \
924 libsystemd_units_la_SOURCES = \
925 src/shared/install.c \
926 src/shared/install.h \
927 src/shared/install-printf.c \
928 src/shared/install-printf.h \
929 src/shared/path-lookup.c \
930 src/shared/path-lookup.h \
931 src/shared/specifier.c \
932 src/shared/specifier.h
934 # ------------------------------------------------------------------------------
935 noinst_LTLIBRARIES += \
938 libsystemd_label_la_SOURCES = \
939 src/shared/socket-label.c \
942 src/shared/selinux-util.c \
943 src/shared/selinux-util.h \
944 src/shared/mkdir-label.c \
945 src/shared/ask-password-api.c \
946 src/shared/ask-password-api.h \
947 src/shared/switch-root.h \
948 src/shared/switch-root.c \
949 src/shared/fileio-label.c \
950 src/shared/fileio-label.h \
951 src/shared/dev-setup.c \
952 src/shared/dev-setup.h \
953 src/shared/dropin.c \
954 src/shared/dropin.h \
955 src/shared/condition.c \
956 src/shared/condition.h \
957 src/shared/generator.h \
958 src/shared/generator.c
960 libsystemd_label_la_CFLAGS = \
964 libsystemd_label_la_LIBADD = \
967 # -----------------------------------------------------------------------------
970 dist_systemunit_DATA += \
971 units/ldconfig.service
973 SYSINIT_TARGET_WANTS += \
977 # ------------------------------------------------------------------------------
980 noinst_LTLIBRARIES += \
981 libsystemd-seccomp.la
983 libsystemd_seccomp_la_SOURCES = \
984 src/shared/seccomp-util.h \
985 src/shared/seccomp-util.c
987 libsystemd_seccomp_la_CFLAGS = \
991 libsystemd_seccomp_la_LIBADD = \
995 # ------------------------------------------------------------------------------
996 noinst_LTLIBRARIES += \
999 libsystemd_logs_la_SOURCES = \
1000 src/shared/logs-show.c \
1001 src/shared/logs-show.h
1003 # ------------------------------------------------------------------------------
1005 noinst_LTLIBRARIES += \
1008 libsystemd_acl_la_SOURCES = \
1009 src/shared/acl-util.c \
1010 src/shared/acl-util.h
1012 libsystemd_acl_la_CFLAGS = \
1016 libsystemd_acl_la_LIBADD = \
1020 # ------------------------------------------------------------------------------
1021 noinst_LTLIBRARIES += \
1024 libsystemd_core_la_SOURCES = \
1027 src/core/unit-printf.c \
1028 src/core/unit-printf.h \
1031 src/core/manager.c \
1032 src/core/manager.h \
1033 src/core/transaction.c \
1034 src/core/transaction.h \
1035 src/core/load-fragment.c \
1036 src/core/load-fragment.h \
1037 src/core/service.c \
1038 src/core/service.h \
1041 src/core/busname.c \
1042 src/core/busname.h \
1043 src/core/bus-common.c \
1044 src/core/bus-common.h \
1045 src/core/bus-endpoint.c \
1046 src/core/bus-endpoint.h \
1049 src/core/snapshot.c \
1050 src/core/snapshot.h \
1055 src/core/automount.c \
1056 src/core/automount.h \
1067 src/core/load-dropin.c \
1068 src/core/load-dropin.h \
1069 src/core/execute.c \
1070 src/core/execute.h \
1075 src/core/dbus-manager.c \
1076 src/core/dbus-manager.h \
1077 src/core/dbus-unit.c \
1078 src/core/dbus-unit.h \
1079 src/core/dbus-job.c \
1080 src/core/dbus-job.h \
1081 src/core/dbus-service.c \
1082 src/core/dbus-service.h \
1083 src/core/dbus-socket.c \
1084 src/core/dbus-socket.h \
1085 src/core/dbus-busname.c \
1086 src/core/dbus-busname.h \
1087 src/core/dbus-target.c \
1088 src/core/dbus-target.h \
1089 src/core/dbus-snapshot.c \
1090 src/core/dbus-snapshot.h \
1091 src/core/dbus-device.c \
1092 src/core/dbus-device.h \
1093 src/core/dbus-mount.c \
1094 src/core/dbus-mount.h \
1095 src/core/dbus-automount.c \
1096 src/core/dbus-automount.h \
1097 src/core/dbus-swap.c \
1098 src/core/dbus-swap.h \
1099 src/core/dbus-timer.c \
1100 src/core/dbus-timer.h \
1101 src/core/dbus-path.c \
1102 src/core/dbus-path.h \
1103 src/core/dbus-slice.c \
1104 src/core/dbus-slice.h \
1105 src/core/dbus-scope.c \
1106 src/core/dbus-scope.h \
1107 src/core/dbus-execute.c \
1108 src/core/dbus-execute.h \
1109 src/core/dbus-kill.c \
1110 src/core/dbus-kill.h \
1111 src/core/dbus-cgroup.c \
1112 src/core/dbus-cgroup.h \
1115 src/core/selinux-access.c \
1116 src/core/selinux-access.h \
1117 src/core/selinux-setup.c \
1118 src/core/selinux-setup.h \
1119 src/core/smack-setup.c \
1120 src/core/smack-setup.h \
1121 src/core/ima-setup.c \
1122 src/core/ima-setup.h \
1123 src/core/locale-setup.h \
1124 src/core/locale-setup.c \
1125 src/core/hostname-setup.c \
1126 src/core/hostname-setup.h \
1127 src/core/machine-id-setup.c \
1128 src/core/machine-id-setup.h \
1129 src/core/mount-setup.c \
1130 src/core/mount-setup.h \
1131 src/core/kmod-setup.c \
1132 src/core/kmod-setup.h \
1133 src/core/loopback-setup.h \
1134 src/core/loopback-setup.c \
1135 src/core/namespace.c \
1136 src/core/namespace.h \
1138 src/core/sysfs-show.h \
1139 src/core/killall.h \
1140 src/core/killall.c \
1141 src/core/audit-fd.c \
1142 src/core/audit-fd.h \
1143 src/core/show-status.c \
1144 src/core/show-status.h \
1145 src/core/failure-action.c \
1146 src/core/failure-action.h
1148 nodist_libsystemd_core_la_SOURCES = \
1149 src/core/load-fragment-gperf.c \
1150 src/core/load-fragment-gperf-nulstr.c
1152 libsystemd_core_la_CFLAGS = \
1157 $(APPARMOR_CFLAGS) \
1162 libsystemd_core_la_LIBADD = \
1163 libsystemd-units.la \
1164 libsystemd-label.la \
1165 libudev-internal.la \
1166 libsystemd-shared.la \
1167 libsystemd-internal.la \
1176 libsystemd_core_la_LIBADD += \
1177 libsystemd-seccomp.la
1180 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1181 $(AM_V_at)$(MKDIR_P) $(dir $@)
1182 $(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 ";" }' < $< > $@
1185 src/core/load-fragment-gperf.gperf.m4
1188 src/core/load-fragment-gperf.gperf \
1189 src/core/load-fragment-gperf.c \
1190 src/core/load-fragment-gperf-nulstr.c \
1191 src/shared/errno-list.txt \
1192 src/shared/errno-from-name.gperf \
1193 src/shared/af-list.txt \
1194 src/shared/af-from-name.gperf \
1195 src/shared/arphrd-list.txt \
1196 src/shared/arphrd-from-name.gperf \
1197 src/shared/cap-list.txt \
1198 src/shared/cap-from-name.gperf \
1199 src/resolve/dns_type-list.txt \
1200 src/resolve/dns_type-from-name.gperf
1203 src/shared/errno-from-name.h \
1204 src/shared/errno-to-name.h \
1205 src/shared/af-from-name.h \
1206 src/shared/af-to-name.h \
1207 src/shared/arphrd-from-name.h \
1208 src/shared/arphrd-to-name.h \
1209 src/shared/cap-from-name.h \
1210 src/shared/cap-to-name.h \
1211 src/resolve/dns_type-from-name.h \
1212 src/resolve/dns_type-to-name.h
1214 %-from-name.gperf: %-list.txt
1215 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1217 %-from-name.h: %-from-name.gperf
1218 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1221 src/shared/errno-list.txt:
1222 $(AM_V_at)$(MKDIR_P) $(dir $@)
1223 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1225 src/shared/errno-to-name.h: src/shared/errno-list.txt
1226 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1229 src/shared/af-list.txt:
1230 $(AM_V_at)$(MKDIR_P) $(dir $@)
1231 $(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; }' >$@
1233 src/shared/af-to-name.h: src/shared/af-list.txt
1234 $(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 "};"}' <$< >$@
1237 src/shared/arphrd-list.txt:
1238 $(AM_V_at)$(MKDIR_P) $(dir $@)
1239 $(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_//' >$@
1241 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1242 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1244 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1245 $(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 }' <$< >$@
1248 src/shared/cap-list.txt:
1249 $(AM_V_at)$(MKDIR_P) $(dir $@)
1250 $(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 >$@
1252 src/shared/cap-to-name.h: src/shared/cap-list.txt
1253 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1255 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1256 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1258 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1259 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1262 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1263 $(AM_V_at)$(MKDIR_P) $(dir $@)
1264 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1266 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1267 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1269 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1270 $(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 }' <$< >$@
1272 # ------------------------------------------------------------------------------
1281 libsystemd-core.la \
1284 dist_pkgsysconf_DATA += \
1285 src/core/system.conf \
1288 dist_dbuspolicy_DATA += \
1289 src/core/org.freedesktop.systemd1.conf
1291 dist_dbussystemservice_DATA += \
1292 src/core/org.freedesktop.systemd1.service
1294 polkitpolicy_in_in_files += \
1295 src/core/org.freedesktop.systemd1.policy.in.in
1297 pkgconfigdata_DATA = \
1300 nodist_rpmmacros_DATA = \
1301 src/core/macros.systemd
1304 src/core/systemd.pc.in \
1305 src/core/macros.systemd.in
1308 src/core/macros.systemd \
1309 src/core/org.freedesktop.systemd1.policy.in
1311 # ------------------------------------------------------------------------------
1354 test-strip-tab-ansi \
1386 test/daughter.service \
1391 test/grandchild.service \
1393 test/hello-after-sleep.target \
1394 test/hello.service \
1396 test/parent-deep.slice \
1399 test/sched_idle_bad.service \
1400 test/sched_idle_ok.service \
1401 test/sched_rr_bad.service \
1402 test/sched_rr_change.service \
1403 test/sched_rr_ok.service \
1404 test/shutdown.target \
1405 test/sleep.service \
1406 test/sockets.target \
1408 test/sysinit.target \
1409 test/testsuite.target \
1410 test/timers.target \
1411 test/unstoppable.service \
1412 test/path-changed.service \
1413 test/path-directorynotempty.service \
1414 test/path-existsglob.service \
1415 test/path-exists.service \
1416 test/path-makedirectory.service \
1417 test/path-modified.service \
1418 test/path-mycustomunit.service \
1419 test/path-service.service \
1420 test/path-changed.path \
1421 test/path-directorynotempty.path \
1422 test/path-existsglob.path \
1423 test/path-exists.path \
1424 test/path-makedirectory.path \
1425 test/path-modified.path \
1426 test/path-unit.path \
1427 test/exec-environment-empty.service \
1428 test/exec-environment-multiple.service \
1429 test/exec-environment.service \
1430 test/exec-group.service \
1431 test/exec-ignoresigpipe-no.service \
1432 test/exec-ignoresigpipe-yes.service \
1433 test/exec-personality-x86-64.service \
1434 test/exec-personality-x86.service \
1435 test/exec-privatedevices-no.service \
1436 test/exec-privatedevices-yes.service \
1437 test/exec-privatetmp-no.service \
1438 test/exec-privatetmp-yes.service \
1439 test/exec-systemcallerrornumber.service \
1440 test/exec-systemcallfilter-failing2.service \
1441 test/exec-systemcallfilter-failing.service \
1442 test/exec-systemcallfilter-not-failing2.service \
1443 test/exec-systemcallfilter-not-failing.service \
1444 test/exec-user.service \
1445 test/exec-workingdirectory.service \
1446 test/bus-policy/hello.conf \
1447 test/bus-policy/methods.conf \
1448 test/bus-policy/ownerships.conf \
1449 test/bus-policy/signals.conf \
1450 test/bus-policy/check-own-rules.conf \
1451 test/bus-policy/many-rules.conf \
1452 test/bus-policy/test.conf
1456 src/test/test-helper.h
1458 test_device_nodes_SOURCES = \
1459 src/test/test-device-nodes.c
1461 test_device_nodes_LDADD = \
1462 libsystemd-shared.la
1464 test_engine_SOURCES = \
1465 src/test/test-engine.c
1467 test_engine_CFLAGS = \
1471 test_engine_LDADD = \
1472 libsystemd-core.la \
1475 test_job_type_SOURCES = \
1476 src/test/test-job-type.c
1478 test_job_type_CFLAGS = \
1482 test_job_type_LDADD = \
1483 libsystemd-core.la \
1496 test_loopback_SOURCES = \
1497 src/test/test-loopback.c
1499 test_loopback_LDADD = \
1502 test_hostname_SOURCES = \
1503 src/test/test-hostname.c
1505 test_hostname_LDADD = \
1512 test_boot_timestamp_SOURCES = \
1513 src/test/test-boot-timestamps.c
1515 test_boot_timestamp_LDADD = \
1516 libsystemd-shared.la
1519 test_unit_name_SOURCES = \
1520 src/test/test-unit-name.c
1522 test_unit_name_CFLAGS = \
1526 test_unit_name_LDADD = \
1527 libsystemd-core.la \
1530 test_unit_file_SOURCES = \
1531 src/test/test-unit-file.c
1533 test_unit_file_CFLAGS = \
1537 test_unit_file_LDADD = \
1538 libsystemd-core.la \
1541 test_utf8_SOURCES = \
1542 src/test/test-utf8.c
1545 libsystemd-shared.la
1547 test_capability_SOURCES = \
1548 src/test/test-capability.c
1550 test_capability_LDADD = \
1551 libsystemd-shared.la
1553 test_async_SOURCES = \
1554 src/test/test-async.c
1556 test_async_LDADD = \
1557 libsystemd-shared.la
1559 test_locale_util_SOURCES = \
1560 src/test/test-locale-util.c
1562 test_locale_util_LDADD = \
1563 libsystemd-shared.la
1565 test_copy_SOURCES = \
1566 src/test/test-copy.c
1569 libsystemd-shared.la
1571 test_condition_SOURCES = \
1572 src/test/test-condition.c
1574 test_condition_LDADD = \
1575 libsystemd-label.la \
1576 libsystemd-internal.la \
1577 libsystemd-shared.la
1579 test_fdset_SOURCES = \
1580 src/test/test-fdset.c
1582 test_fdset_LDADD = \
1583 libsystemd-shared.la \
1584 libsystemd-internal.la
1586 test_ratelimit_SOURCES = \
1587 src/test/test-ratelimit.c
1589 test_ratelimit_LDADD = \
1590 libsystemd-shared.la
1592 test_util_SOURCES = \
1593 src/test/test-util.c
1597 libsystemd-shared.la
1599 test_uid_range_SOURCES = \
1600 src/test/test-uid-range.c
1602 test_uid_range_LDADD = \
1603 libsystemd-shared.la
1605 test_cap_list_SOURCES = \
1606 src/test/test-cap-list.c
1608 test_cap_list_LDADD = \
1609 libsystemd-shared.la
1611 test_socket_util_SOURCES = \
1612 src/test/test-socket-util.c
1614 test_socket_util_LDADD = \
1615 libsystemd-shared.la
1617 test_ring_SOURCES = \
1618 src/test/test-ring.c
1621 libsystemd-shared.la
1623 test_barrier_SOURCES = \
1624 src/test/test-barrier.c
1626 test_barrier_LDADD = \
1627 libsystemd-shared.la
1629 test_pty_SOURCES = \
1635 test_tmpfiles_SOURCES = \
1636 src/test/test-tmpfiles.c
1638 test_tmpfiles_LDADD = \
1639 libsystemd-shared.la
1641 test_namespace_SOURCES = \
1642 src/test/test-namespace.c
1644 test_namespace_LDADD = \
1648 src/test/test-hashmap-ordered.c
1651 src/test/test-hashmap-ordered.c
1653 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1654 $(AM_V_at)$(MKDIR_P) $(dir $@)
1655 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1656 { if (!match($$0, "^#include")) \
1657 gsub(/hashmap/, "ordered_hashmap"); \
1658 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1659 gsub(/Hashmap/, "OrderedHashmap"); \
1662 nodist_test_hashmap_SOURCES = \
1663 src/test/test-hashmap-ordered.c
1665 test_hashmap_SOURCES = \
1666 src/test/test-hashmap.c \
1667 src/test/test-hashmap-plain.c
1669 test_hashmap_LDADD = \
1670 libsystemd-shared.la
1672 test_set_SOURCES = \
1676 libsystemd-shared.la
1678 test_xml_SOURCES = \
1682 libsystemd-shared.la
1684 test_list_SOURCES = \
1685 src/test/test-list.c
1688 libsystemd-shared.la
1690 test_unaligned_LDADD = \
1691 libsystemd-shared.la
1693 test_unaligned_SOURCES = \
1694 src/test/test-unaligned.c
1696 test_tables_SOURCES = \
1697 src/test/test-tables.c \
1698 src/shared/test-tables.h \
1699 src/bus-proxyd/bus-policy.c \
1700 src/bus-proxyd/bus-policy.h \
1701 src/journal/journald-server.c \
1702 src/journal/journald-server.h
1704 test_tables_CPPFLAGS = \
1706 -I$(top_srcdir)/src/bus-proxyd
1708 test_tables_CFLAGS = \
1712 test_tables_LDADD = \
1713 libsystemd-logs.la \
1714 libsystemd-journal-internal.la \
1715 libsystemd-journal-core.la \
1716 libsystemd-core.la \
1720 test_prioq_SOURCES = \
1721 src/test/test-prioq.c
1723 test_prioq_LDADD = \
1724 libsystemd-shared.la
1726 test_fileio_SOURCES = \
1727 src/test/test-fileio.c
1729 test_fileio_LDADD = \
1730 libsystemd-shared.la
1732 test_time_SOURCES = \
1733 src/test/test-time.c
1736 libsystemd-shared.la
1738 test_architecture_SOURCES = \
1739 src/test/test-architecture.c
1741 test_architecture_LDADD = \
1742 libsystemd-shared.la
1744 test_log_SOURCES = \
1748 libsystemd-shared.la
1750 test_ipcrm_SOURCES = \
1751 src/test/test-ipcrm.c
1753 test_ipcrm_LDADD = \
1754 libsystemd-shared.la \
1757 test_rtnl_manual_SOURCES = \
1758 src/test/test-rtnl-manual.c
1760 test_rtnl_manual_CFLAGS = \
1764 test_rtnl_manual_LDADD = \
1765 libsystemd-internal.la \
1766 libsystemd-shared.la \
1769 test_ellipsize_SOURCES = \
1770 src/test/test-ellipsize.c
1772 test_ellipsize_LDADD = \
1773 libsystemd-shared.la
1775 test_date_SOURCES = \
1776 src/test/test-date.c
1779 libsystemd-shared.la
1781 test_sleep_SOURCES = \
1782 src/test/test-sleep.c
1784 test_sleep_LDADD = \
1787 test_replace_var_SOURCES = \
1788 src/test/test-replace-var.c
1790 test_replace_var_LDADD = \
1791 libsystemd-shared.la
1793 test_calendarspec_SOURCES = \
1794 src/test/test-calendarspec.c
1796 test_calendarspec_LDADD = \
1797 libsystemd-shared.la
1799 test_strip_tab_ansi_SOURCES = \
1800 src/test/test-strip-tab-ansi.c
1802 test_strip_tab_ansi_LDADD = \
1803 libsystemd-shared.la
1805 test_daemon_SOURCES = \
1806 src/test/test-daemon.c
1808 test_daemon_LDADD = \
1809 libsystemd-internal.la \
1810 libsystemd-shared.la
1812 test_cgroup_SOURCES = \
1813 src/test/test-cgroup.c
1815 test_cgroup_LDADD = \
1816 libsystemd-label.la \
1817 libsystemd-shared.la \
1818 libsystemd-internal.la
1820 test_cgroup_mask_SOURCES = \
1821 src/test/test-cgroup-mask.c
1823 test_cgroup_mask_CPPFLAGS = \
1826 test_cgroup_mask_CFLAGS = \
1830 test_cgroup_mask_LDADD = \
1831 libsystemd-core.la \
1834 test_cgroup_util_SOURCES = \
1835 src/test/test-cgroup-util.c
1837 test_cgroup_util_LDADD = \
1838 libsystemd-label.la \
1839 libsystemd-internal.la \
1840 libsystemd-shared.la
1842 test_env_replace_SOURCES = \
1843 src/test/test-env-replace.c
1845 test_env_replace_LDADD = \
1846 libsystemd-shared.la
1848 test_strbuf_SOURCES = \
1849 src/test/test-strbuf.c
1851 test_strbuf_LDADD = \
1852 libsystemd-shared.la
1854 test_strv_SOURCES = \
1855 src/test/test-strv.c
1858 libsystemd-units.la \
1859 libsystemd-internal.la \
1860 libsystemd-shared.la
1862 test_path_util_SOURCES = \
1863 src/test/test-path-util.c
1865 test_path_util_LDADD = \
1866 libsystemd-shared.la
1868 test_path_SOURCES = \
1869 src/test/test-path.c
1871 test_path_CFLAGS = \
1877 test_execute_SOURCES = \
1878 src/test/test-execute.c
1880 test_execute_CFLAGS = \
1883 test_execute_LDADD = \
1886 test_strxcpyx_SOURCES = \
1887 src/test/test-strxcpyx.c
1889 test_strxcpyx_LDADD = \
1890 libsystemd-shared.la
1892 test_install_SOURCES = \
1893 src/test/test-install.c
1895 test_install_LDADD = \
1896 libsystemd-units.la \
1897 libsystemd-label.la \
1898 libsystemd-shared.la \
1899 libsystemd-internal.la
1901 test_watchdog_SOURCES = \
1902 src/test/test-watchdog.c
1904 test_watchdog_LDADD = \
1905 libsystemd-shared.la
1907 test_sched_prio_SOURCES = \
1908 src/test/test-sched-prio.c
1910 test_sched_prio_CPPFLAGS = \
1913 test_sched_prio_CFLAGS = \
1917 test_sched_prio_LDADD = \
1918 libsystemd-core.la \
1921 test_conf_files_SOURCES = \
1922 src/test/test-conf-files.c
1924 test_conf_files_LDADD = \
1925 libsystemd-shared.la
1927 test_bus_policy_SOURCES = \
1928 src/bus-proxyd/test-bus-policy.c \
1929 src/bus-proxyd/bus-policy.c \
1930 src/bus-proxyd/bus-policy.h
1932 test_bus_policy_LDADD = \
1933 libsystemd-internal.la \
1934 libsystemd-shared.la
1936 # ------------------------------------------------------------------------------
1937 ## .PHONY so it always rebuilds it
1938 .PHONY: coverage lcov-run lcov-report coverage-sync
1940 # run lcov from scratch, always
1945 coverage_dir = coverage
1946 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1949 # reset run coverage tests
1951 @rm -rf $(coverage_dir)
1952 lcov $(coverage_opts) --zerocounters
1955 # generate report based on current coverage data
1957 $(MKDIR_P) $(coverage_dir)
1958 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1959 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1960 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1961 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1962 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1964 # lcov doesn't work properly with vpath builds, make sure that bad
1965 # output is not uploaded by mistake.
1966 coverage-sync: coverage
1967 test "$(builddir)" = "$(srcdir)"
1968 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1971 lcov-run lcov-report:
1972 echo "Need to reconfigure with --enable-coverage"
1975 # ------------------------------------------------------------------------------
1976 systemd_analyze_SOURCES = \
1977 src/analyze/analyze.c \
1978 src/analyze/analyze-verify.c \
1979 src/analyze/analyze-verify.h
1981 systemd_verify_CFLAGS = \
1985 systemd_analyze_LDADD = \
1986 libsystemd-core.la \
1987 libsystemd-internal.la \
1988 libsystemd-shared.la \
1991 # ------------------------------------------------------------------------------
1992 systemd_initctl_SOURCES = \
1993 src/initctl/initctl.c
1995 systemd_initctl_LDADD = \
1996 libsystemd-internal.la \
1997 libsystemd-shared.la
1999 # ------------------------------------------------------------------------------
2000 systemd_update_utmp_SOURCES = \
2001 src/update-utmp/update-utmp.c
2003 systemd_update_utmp_CFLAGS = \
2007 systemd_update_utmp_LDADD = \
2008 libsystemd-internal.la \
2009 libsystemd-shared.la \
2012 # ------------------------------------------------------------------------------
2013 systemd_update_done_SOURCES = \
2014 src/update-done/update-done.c
2016 systemd_update_done_LDADD = \
2017 libsystemd-internal.la \
2018 libsystemd-label.la \
2019 libsystemd-shared.la
2021 # ------------------------------------------------------------------------------
2022 systemd_shutdownd_SOURCES = \
2023 src/shutdownd/shutdownd.c
2025 systemd_shutdownd_LDADD = \
2026 libsystemd-label.la \
2027 libsystemd-internal.la \
2028 libsystemd-shared.la
2031 src/systemd/sd-shutdown.h
2033 # ------------------------------------------------------------------------------
2034 systemd_shutdown_SOURCES = \
2037 src/core/shutdown.c \
2038 src/core/mount-setup.c \
2039 src/core/mount-setup.h \
2040 src/core/killall.h \
2043 systemd_shutdown_LDADD = \
2044 libsystemd-label.la \
2045 libudev-internal.la \
2046 libsystemd-shared.la
2048 # ------------------------------------------------------------------------------
2050 systemd_modules_load_SOURCES = \
2051 src/modules-load/modules-load.c
2053 systemd_modules_load_CFLAGS = \
2057 systemd_modules_load_LDADD = \
2058 libsystemd-shared.la \
2061 rootlibexec_PROGRAMS += \
2062 systemd-modules-load
2064 nodist_systemunit_DATA += \
2065 units/systemd-modules-load.service
2067 SYSINIT_TARGET_WANTS += \
2068 systemd-modules-load.service
2071 nodist_systemunit_DATA += \
2072 units/kmod-static-nodes.service
2074 SYSINIT_TARGET_WANTS += \
2075 kmod-static-nodes.service
2080 units/systemd-modules-load.service.in \
2081 units/kmod-static-nodes.service.in
2083 # ------------------------------------------------------------------------------
2085 systemd_tmpfiles_SOURCES = \
2086 src/tmpfiles/tmpfiles.c
2088 systemd_tmpfiles_LDADD = \
2089 libsystemd-units.la \
2090 libsystemd-label.la \
2091 libsystemd-internal.la \
2092 libsystemd-shared.la
2094 rootbin_PROGRAMS += \
2097 dist_systemunit_DATA += \
2098 units/systemd-tmpfiles-clean.timer
2100 nodist_systemunit_DATA += \
2101 units/systemd-tmpfiles-setup-dev.service \
2102 units/systemd-tmpfiles-setup.service \
2103 units/systemd-tmpfiles-clean.service
2105 nodist_tmpfiles_DATA = \
2108 dist_tmpfiles_DATA = \
2109 tmpfiles.d/systemd.conf \
2110 tmpfiles.d/systemd-nologin.conf \
2111 tmpfiles.d/tmp.conf \
2112 tmpfiles.d/x11.conf \
2116 dist_tmpfiles_DATA += \
2117 tmpfiles.d/legacy.conf
2120 SYSINIT_TARGET_WANTS += \
2121 systemd-tmpfiles-setup-dev.service \
2122 systemd-tmpfiles-setup.service
2124 dist_zshcompletion_DATA += \
2125 shell-completion/zsh/_systemd-tmpfiles
2127 TIMERS_TARGET_WANTS += \
2128 systemd-tmpfiles-clean.timer
2132 $(sysconfdir)/tmpfiles.d
2136 tmpfiles.d/etc.conf.m4 \
2137 units/systemd-tmpfiles-setup-dev.service.in \
2138 units/systemd-tmpfiles-setup.service.in \
2139 units/systemd-tmpfiles-clean.service.in
2144 # ------------------------------------------------------------------------------
2146 systemd_sysusers_SOURCES = \
2147 src/sysusers/sysusers.c
2149 systemd_sysusers_LDADD = \
2150 libsystemd-units.la \
2151 libsystemd-label.la \
2152 libsystemd-internal.la \
2153 libsystemd-shared.la
2155 rootbin_PROGRAMS += \
2158 nodist_systemunit_DATA += \
2159 units/systemd-sysusers.service
2161 SYSINIT_TARGET_WANTS += \
2162 systemd-sysusers.service
2164 dist_sysusers_DATA = \
2165 sysusers.d/systemd.conf
2167 nodist_sysusers_DATA = \
2168 sysusers.d/basic.conf
2171 units/systemd-sysusers.service.in \
2172 sysusers.d/basic.conf.in
2175 sysusers.d/basic.conf
2181 # ------------------------------------------------------------------------------
2182 dist_factory_etc_DATA = \
2183 factory/etc/nsswitch.conf
2186 dist_factory_pam_DATA = \
2187 factory/etc/pam.d/system-auth \
2188 factory/etc/pam.d/other
2191 # ------------------------------------------------------------------------------
2193 systemd_firstboot_SOURCES = \
2194 src/firstboot/firstboot.c
2196 systemd_firstboot_LDADD = \
2197 libsystemd-units.la \
2198 libsystemd-label.la \
2199 libsystemd-internal.la \
2200 libsystemd-shared.la \
2203 rootbin_PROGRAMS += \
2206 nodist_systemunit_DATA += \
2207 units/systemd-firstboot.service
2210 units/systemd-firstboot.service.in
2212 SYSINIT_TARGET_WANTS += \
2213 systemd-firstboot.service
2216 # ------------------------------------------------------------------------------
2217 systemd_machine_id_setup_SOURCES = \
2218 src/machine-id-setup/machine-id-setup-main.c \
2219 src/core/machine-id-setup.c \
2220 src/core/machine-id-setup.h
2222 systemd_machine_id_setup_LDADD = \
2223 libsystemd-label.la \
2224 libsystemd-internal.la \
2225 libsystemd-shared.la
2227 # ------------------------------------------------------------------------------
2228 systemd_sysctl_SOURCES = \
2231 systemd_sysctl_LDADD = \
2232 libsystemd-shared.la
2234 # ------------------------------------------------------------------------------
2235 systemd_sleep_SOURCES = \
2238 systemd_sleep_LDADD = \
2239 libsystemd-shared.la
2241 # ------------------------------------------------------------------------------
2242 systemd_fsck_SOURCES = \
2245 systemd_fsck_LDADD = \
2246 libsystemd-internal.la \
2247 libudev-internal.la \
2248 libsystemd-shared.la
2250 # ------------------------------------------------------------------------------
2251 systemd_machine_id_commit_SOURCES = \
2252 src/machine-id-commit/machine-id-commit.c \
2253 src/core/machine-id-setup.c \
2254 src/core/machine-id-setup.h
2256 systemd_machine_id_commit_LDADD = \
2257 libsystemd-label.la \
2258 libsystemd-internal.la \
2259 libsystemd-shared.la
2261 SYSINIT_TARGET_WANTS += \
2262 systemd-machine-id-commit.service
2264 # ------------------------------------------------------------------------------
2265 systemd_ac_power_SOURCES = \
2266 src/ac-power/ac-power.c
2268 systemd_ac_power_LDADD = \
2269 libudev-internal.la \
2270 libsystemd-shared.la
2272 # ------------------------------------------------------------------------------
2273 systemd_detect_virt_SOURCES = \
2274 src/detect-virt/detect-virt.c
2276 systemd_detect_virt_LDADD = \
2277 libsystemd-shared.la
2279 INSTALL_EXEC_HOOKS += \
2280 systemd-detect-virt-install-hook
2282 # ------------------------------------------------------------------------------
2283 systemd_delta_SOURCES = \
2286 systemd_delta_LDADD = \
2287 libsystemd-shared.la
2289 # ------------------------------------------------------------------------------
2290 systemd_getty_generator_SOURCES = \
2291 src/getty-generator/getty-generator.c
2293 systemd_getty_generator_LDADD = \
2294 libsystemd-label.la \
2295 libsystemd-shared.la
2297 # ------------------------------------------------------------------------------
2298 systemd_debug_generator_SOURCES = \
2299 src/debug-generator/debug-generator.c
2301 systemd_debug_generator_LDADD = \
2302 libsystemd-label.la \
2303 libsystemd-shared.la
2305 # ------------------------------------------------------------------------------
2306 systemd_fstab_generator_SOURCES = \
2307 src/fstab-generator/fstab-generator.c \
2308 src/core/mount-setup.c
2310 systemd_fstab_generator_LDADD = \
2311 libsystemd-label.la \
2312 libsystemd-shared.la
2314 # ------------------------------------------------------------------------------
2315 systemd_system_update_generator_SOURCES = \
2316 src/system-update-generator/system-update-generator.c
2318 systemd_system_update_generator_LDADD = \
2319 libsystemd-label.la \
2320 libsystemd-shared.la
2322 # ------------------------------------------------------------------------------
2324 systemgenerator_PROGRAMS += \
2325 systemd-hibernate-resume-generator
2327 rootlibexec_PROGRAMS += \
2328 systemd-hibernate-resume
2330 systemd_hibernate_resume_SOURCES = \
2331 src/hibernate-resume/hibernate-resume.c
2333 systemd_hibernate_resume_LDADD = \
2334 libsystemd-internal.la \
2335 libsystemd-shared.la
2337 systemd_hibernate_resume_generator_SOURCES = \
2338 src/hibernate-resume/hibernate-resume-generator.c
2340 systemd_hibernate_resume_generator_LDADD = \
2341 libsystemd-label.la \
2342 libsystemd-shared.la
2345 units/systemd-hibernate.service.in \
2346 units/systemd-hibernate-resume@.service.in \
2347 units/systemd-hybrid-sleep.service.in
2349 dist_systemunit_DATA += \
2350 units/hibernate.target \
2351 units/hybrid-sleep.target
2353 nodist_systemunit_DATA += \
2354 units/systemd-hibernate.service \
2355 units/systemd-hibernate-resume@.service \
2356 units/systemd-hybrid-sleep.service
2359 # ------------------------------------------------------------------------------
2361 systemgenerator_PROGRAMS += \
2362 systemd-efi-boot-generator
2364 systemd_efi_boot_generator_SOURCES = \
2365 src/efi-boot-generator/efi-boot-generator.c
2367 systemd_efi_boot_generator_LDADD = \
2368 libsystemd-label.la \
2369 libsystemd-shared.la
2371 # ------------------------------------------------------------------------------
2374 src/boot/boot-loader.h \
2375 src/boot/bootctl.c \
2376 src/boot/boot-loader.c \
2380 libsystemd-shared.la \
2381 libsystemd-internal.la
2386 dist_bashcompletion_DATA += \
2387 shell-completion/bash/bootctl
2389 dist_zshcompletion_DATA += \
2390 shell-completion/zsh/_bootctl
2394 # ------------------------------------------------------------------------------
2396 systemgenerator_PROGRAMS += \
2397 systemd-gpt-auto-generator
2399 systemd_gpt_auto_generator_SOURCES = \
2400 src/gpt-auto-generator/gpt-auto-generator.c \
2401 src/shared/blkid-util.h
2403 systemd_gpt_auto_generator_LDADD = \
2404 libsystemd-label.la \
2405 libsystemd-internal.la \
2406 libudev-internal.la \
2407 libsystemd-shared.la \
2410 systemd_gpt_auto_generator_CFLAGS = \
2415 # ------------------------------------------------------------------------------
2417 systemgenerator_PROGRAMS += \
2418 systemd-dbus1-generator
2420 systemd_dbus1_generator_SOURCES = \
2421 src/dbus1-generator/dbus1-generator.c
2423 systemd_dbus1_generator_LDADD = \
2424 libsystemd-label.la \
2425 libsystemd-internal.la \
2426 libsystemd-shared.la
2428 dbus1-generator-install-hook:
2429 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2430 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2431 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2433 dbus1-generator-uninstall-hook:
2434 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2436 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2437 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2440 # ------------------------------------------------------------------------------
2441 systemd_sysv_generator_SOURCES = \
2442 src/sysv-generator/sysv-generator.c
2444 systemd_sysv_generator_LDADD = \
2445 libsystemd-core.la \
2446 libsystemd-label.la \
2447 libsystemd-shared.la
2449 # ------------------------------------------------------------------------------
2450 systemd_rc_local_generator_SOURCES = \
2451 src/rc-local-generator/rc-local-generator.c
2453 systemd_rc_local_generator_LDADD = \
2454 libsystemd-label.la \
2455 libsystemd-shared.la
2457 # ------------------------------------------------------------------------------
2458 systemd_remount_fs_SOURCES = \
2459 src/remount-fs/remount-fs.c \
2460 src/core/mount-setup.c \
2461 src/core/mount-setup.h
2463 systemd_remount_fs_LDADD = \
2464 libsystemd-label.la \
2465 libsystemd-shared.la
2467 # ------------------------------------------------------------------------------
2468 systemd_cgroups_agent_SOURCES = \
2469 src/cgroups-agent/cgroups-agent.c
2471 systemd_cgroups_agent_LDADD = \
2472 libsystemd-internal.la \
2473 libsystemd-shared.la
2475 # ------------------------------------------------------------------------------
2476 systemd_escape_SOURCES = \
2479 systemd_escape_LDADD = \
2480 libsystemd-shared.la
2482 # -----------------------------------------------------------------------------
2483 systemctl_SOURCES = \
2484 src/systemctl/systemctl.c
2487 libsystemd-units.la \
2488 libsystemd-label.la \
2489 libsystemd-internal.la \
2490 libsystemd-logs.la \
2491 libsystemd-journal-internal.la \
2492 libsystemd-shared.la
2494 # ------------------------------------------------------------------------------
2495 systemd_notify_SOURCES = \
2498 systemd_notify_LDADD = \
2499 libsystemd-internal.la \
2500 libsystemd-shared.la
2502 # ------------------------------------------------------------------------------
2503 systemd_path_SOURCES = \
2506 systemd_path_LDADD = \
2507 libsystemd-internal.la \
2508 libsystemd-shared.la
2510 # ------------------------------------------------------------------------------
2511 systemd_ask_password_SOURCES = \
2512 src/ask-password/ask-password.c
2514 systemd_ask_password_LDADD = \
2515 libsystemd-label.la \
2516 libsystemd-shared.la
2518 # ------------------------------------------------------------------------------
2519 systemd_reply_password_SOURCES = \
2520 src/reply-password/reply-password.c
2522 systemd_reply_password_LDADD = \
2523 libsystemd-shared.la
2525 # ------------------------------------------------------------------------------
2526 systemd_cgls_SOURCES = \
2529 systemd_cgls_LDADD = \
2530 libsystemd-internal.la \
2531 libsystemd-shared.la
2533 # ------------------------------------------------------------------------------
2534 systemd_cgtop_SOURCES = \
2537 systemd_cgtop_LDADD = \
2538 libsystemd-shared.la
2540 # ------------------------------------------------------------------------------
2541 systemd_nspawn_SOURCES = \
2542 src/nspawn/nspawn.c \
2543 src/core/mount-setup.c \
2544 src/core/mount-setup.h \
2545 src/core/loopback-setup.c \
2546 src/core/loopback-setup.h
2548 systemd_nspawn_CFLAGS = \
2553 systemd_nspawn_LDADD = \
2554 libsystemd-label.la \
2555 libsystemd-internal.la \
2556 libudev-internal.la \
2557 libsystemd-shared.la \
2561 systemd_nspawn_LDADD += \
2562 libsystemd-seccomp.la \
2566 # ------------------------------------------------------------------------------
2567 systemd_run_SOURCES = \
2570 systemd_run_LDADD = \
2571 libsystemd-label.la \
2572 libsystemd-internal.la \
2573 libsystemd-shared.la
2575 # ------------------------------------------------------------------------------
2576 systemd_bus_proxyd_SOURCES = \
2577 src/bus-proxyd/bus-proxyd.c \
2578 src/bus-proxyd/bus-policy.c \
2579 src/bus-proxyd/bus-policy.h
2581 systemd_bus_proxyd_LDADD = \
2582 libsystemd-internal.la \
2583 libsystemd-shared.la
2585 bus-proxyd-install-hook:
2586 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2587 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2588 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2590 bus-proxyd-uninstall-hook:
2591 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2593 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2594 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2597 nodist_systemunit_DATA += \
2598 units/systemd-bus-proxyd@.service
2600 dist_systemunit_DATA += \
2601 units/systemd-bus-proxyd.socket
2603 nodist_userunit_DATA += \
2604 units/user/systemd-bus-proxyd@.service
2606 dist_userunit_DATA += \
2607 units/user/systemd-bus-proxyd.socket
2611 units/systemd-bus-proxyd@.service.m4.in \
2612 units/user/systemd-bus-proxyd@.service.in
2615 units/systemd-bus-proxyd@.service.m4
2618 bus-proxyd-set-cap-hook:
2619 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2621 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2624 # ------------------------------------------------------------------------------
2625 systemd_tty_ask_password_agent_SOURCES = \
2626 src/tty-ask-password-agent/tty-ask-password-agent.c
2628 systemd_tty_ask_password_agent_LDADD = \
2629 libsystemd-label.la \
2630 libsystemd-shared.la
2632 # ------------------------------------------------------------------------------
2633 libsystemd_internal_la_SOURCES = \
2634 src/systemd/sd-bus.h \
2635 src/systemd/sd-bus-protocol.h \
2636 src/systemd/sd-bus-vtable.h \
2637 src/systemd/sd-utf8.h \
2638 src/systemd/sd-event.h \
2639 src/systemd/sd-rtnl.h \
2640 src/systemd/sd-resolve.h \
2641 src/systemd/sd-login.h \
2642 src/systemd/sd-id128.h \
2643 src/systemd/sd-daemon.h \
2644 src/systemd/sd-path.h \
2645 src/systemd/sd-network.h \
2646 src/systemd/sd-hwdb.h \
2647 src/libsystemd/sd-bus/sd-bus.c \
2648 src/libsystemd/sd-bus/bus-control.c \
2649 src/libsystemd/sd-bus/bus-control.h \
2650 src/libsystemd/sd-bus/bus-error.c \
2651 src/libsystemd/sd-bus/bus-error.h \
2652 src/libsystemd/sd-bus/bus-common-errors.h \
2653 src/libsystemd/sd-bus/bus-common-errors.c \
2654 src/libsystemd/sd-bus/bus-internal.c \
2655 src/libsystemd/sd-bus/bus-internal.h \
2656 src/libsystemd/sd-bus/bus-socket.c \
2657 src/libsystemd/sd-bus/bus-socket.h \
2658 src/libsystemd/sd-bus/bus-kernel.c \
2659 src/libsystemd/sd-bus/bus-kernel.h \
2660 src/libsystemd/sd-bus/bus-container.c \
2661 src/libsystemd/sd-bus/bus-container.h \
2662 src/libsystemd/sd-bus/bus-message.c \
2663 src/libsystemd/sd-bus/bus-message.h \
2664 src/libsystemd/sd-bus/bus-creds.c \
2665 src/libsystemd/sd-bus/bus-creds.h \
2666 src/libsystemd/sd-bus/bus-signature.c \
2667 src/libsystemd/sd-bus/bus-signature.h \
2668 src/libsystemd/sd-bus/bus-type.c \
2669 src/libsystemd/sd-bus/bus-type.h \
2670 src/libsystemd/sd-bus/bus-match.c \
2671 src/libsystemd/sd-bus/bus-match.h \
2672 src/libsystemd/sd-bus/bus-bloom.c \
2673 src/libsystemd/sd-bus/bus-bloom.h \
2674 src/libsystemd/sd-bus/bus-introspect.c \
2675 src/libsystemd/sd-bus/bus-introspect.h \
2676 src/libsystemd/sd-bus/bus-objects.c \
2677 src/libsystemd/sd-bus/bus-objects.h \
2678 src/libsystemd/sd-bus/bus-gvariant.c \
2679 src/libsystemd/sd-bus/bus-gvariant.h \
2680 src/libsystemd/sd-bus/bus-convenience.c \
2681 src/libsystemd/sd-bus/bus-track.c \
2682 src/libsystemd/sd-bus/bus-track.h \
2683 src/libsystemd/sd-bus/bus-util.c \
2684 src/libsystemd/sd-bus/bus-util.h \
2685 src/libsystemd/sd-bus/bus-slot.c \
2686 src/libsystemd/sd-bus/bus-slot.h \
2687 src/libsystemd/sd-bus/bus-protocol.h \
2688 src/libsystemd/sd-bus/kdbus.h \
2689 src/libsystemd/sd-utf8/sd-utf8.c \
2690 src/libsystemd/sd-event/sd-event.c \
2691 src/libsystemd/sd-event/event-util.h \
2692 src/libsystemd/sd-rtnl/sd-rtnl.c \
2693 src/libsystemd/sd-rtnl/rtnl-internal.h \
2694 src/libsystemd/sd-rtnl/rtnl-message.c \
2695 src/libsystemd/sd-rtnl/rtnl-types.h \
2696 src/libsystemd/sd-rtnl/rtnl-types.c \
2697 src/libsystemd/sd-rtnl/rtnl-util.h \
2698 src/libsystemd/sd-rtnl/rtnl-util.c \
2699 src/libsystemd/sd-rtnl/local-addresses.h \
2700 src/libsystemd/sd-rtnl/local-addresses.c \
2701 src/libsystemd/sd-id128/sd-id128.c \
2702 src/libsystemd/sd-daemon/sd-daemon.c \
2703 src/libsystemd/sd-login/sd-login.c \
2704 src/libsystemd/sd-path/sd-path.c \
2705 src/libsystemd/sd-network/sd-network.c \
2706 src/libsystemd/sd-network/network-util.h \
2707 src/libsystemd/sd-network/network-util.c \
2708 src/libsystemd/sd-hwdb/sd-hwdb.c \
2709 src/libsystemd/sd-hwdb/hwdb-util.h \
2710 src/libsystemd/sd-hwdb/hwdb-intenal.h
2712 nodist_libsystemd_internal_la_SOURCES = \
2713 src/libsystemd/libsystemd.sym
2715 libsystemd_internal_la_CFLAGS = \
2719 libsystemd_internal_la_LIBADD = \
2722 libsystemd_resolve_la_SOURCES = \
2723 src/libsystemd/sd-resolve/sd-resolve.c \
2724 src/libsystemd/sd-resolve/resolve-util.h
2726 libsystemd_resolve_la_CFLAGS = \
2730 libsystemd_resolve_la_LIBADD = \
2733 noinst_LTLIBRARIES += \
2734 libsystemd-internal.la \
2735 libsystemd-resolve.la
2737 libsystemd_dump_la_SOURCES = \
2738 src/libsystemd/sd-bus/bus-dump.c \
2739 src/libsystemd/sd-bus/bus-dump.h
2741 noinst_LTLIBRARIES += \
2745 src/libsystemd/libsystemd.sym.m4 \
2746 src/libsystemd/libsystemd.pc.in \
2747 src/libsystemd/sd-bus/DIFFERENCES \
2748 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2751 src/libsystemd/libsystemd.sym
2754 src/libsystemd/libsystemd.sym
2756 libsystemd_la_SOURCES = \
2757 $(libsystemd_internal_la_SOURCES) \
2758 $(libsystemd_resolve_la_SOURCES) \
2759 $(libsystemd_journal_internal_la_SOURCES)
2761 nodist_libsystemd_la_SOURCES = \
2762 $(nodist_libsystemd_internal_la_SOURCES)
2764 libsystemd_la_CFLAGS = \
2765 $(libsystemd_internal_la_CFLAGS) \
2766 $(libsystemd_resolve_la_CFLAGS) \
2767 $(libsystemd_journal_internal_la_CFLAGS)
2769 libsystemd_la_LDFLAGS = \
2771 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2772 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2774 libsystemd_la_LIBADD = \
2775 libsystemd-shared.la \
2776 $(libsystemd_internal_la_LIBADD) \
2777 $(libsystemd_journal_internal_la_LIBADD) \
2778 $(libsystemd_resolve_la_LIBADD)
2780 libsystemd-install-hook:
2781 libname=libsystemd.so && $(move-to-rootlibdir)
2783 libsystemd-uninstall-hook:
2784 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2786 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2787 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2789 pkgconfiglib_DATA += \
2790 src/libsystemd/libsystemd.pc
2792 pkginclude_HEADERS += \
2793 src/systemd/sd-login.h \
2794 src/systemd/sd-id128.h \
2795 src/systemd/sd-daemon.h
2798 pkginclude_HEADERS += \
2799 src/systemd/sd-bus.h \
2800 src/systemd/sd-bus-protocol.h \
2801 src/systemd/sd-bus-vtable.h \
2802 src/systemd/sd-utf8.h \
2803 src/systemd/sd-event.h \
2804 src/systemd/sd-rtnl.h \
2805 src/systemd/sd-resolve.h \
2806 src/systemd/sd-path.h
2809 lib_LTLIBRARIES += \
2814 test-bus-signature \
2820 test-bus-kernel-bloom \
2821 test-bus-kernel-benchmark \
2822 test-bus-zero-copy \
2823 test-bus-introspect \
2830 test-local-addresses \
2836 test_bus_marshal_SOURCES = \
2837 src/libsystemd/sd-bus/test-bus-marshal.c
2839 test_bus_marshal_LDADD = \
2840 libsystemd-dump.la \
2841 libsystemd-internal.la \
2842 libsystemd-shared.la \
2846 test_bus_marshal_CFLAGS = \
2851 test_bus_signature_SOURCES = \
2852 src/libsystemd/sd-bus/test-bus-signature.c
2854 test_bus_signature_LDADD = \
2855 libsystemd-internal.la \
2856 libsystemd-shared.la
2858 test_bus_chat_SOURCES = \
2859 src/libsystemd/sd-bus/test-bus-chat.c
2861 test_bus_chat_CFLAGS = \
2865 test_bus_chat_LDADD = \
2866 libsystemd-internal.la \
2867 libsystemd-shared.la
2869 test_bus_cleanup_SOURCES = \
2870 src/libsystemd/sd-bus/test-bus-cleanup.c
2872 test_bus_cleanup_CFLAGS = \
2876 test_bus_cleanup_LDADD = \
2877 libsystemd-internal.la \
2878 libsystemd-shared.la
2880 test_bus_server_SOURCES = \
2881 src/libsystemd/sd-bus/test-bus-server.c
2883 test_bus_server_CFLAGS = \
2887 test_bus_server_LDADD = \
2888 libsystemd-internal.la \
2889 libsystemd-shared.la
2891 test_bus_objects_SOURCES = \
2892 src/libsystemd/sd-bus/test-bus-objects.c
2894 test_bus_objects_CFLAGS = \
2898 test_bus_objects_LDADD = \
2899 libsystemd-dump.la \
2900 libsystemd-internal.la \
2901 libsystemd-shared.la
2903 test_bus_error_SOURCES = \
2904 src/libsystemd/sd-bus/test-bus-error.c
2906 test_bus_error_LDADD = \
2907 libsystemd-internal.la \
2908 libsystemd-shared.la
2910 test_bus_gvariant_SOURCES = \
2911 src/libsystemd/sd-bus/test-bus-gvariant.c
2913 test_bus_gvariant_LDADD = \
2914 libsystemd-dump.la \
2915 libsystemd-internal.la \
2916 libsystemd-shared.la \
2919 test_bus_gvariant_CFLAGS = \
2923 test_bus_creds_SOURCES = \
2924 src/libsystemd/sd-bus/test-bus-creds.c
2926 test_bus_creds_LDADD = \
2927 libsystemd-dump.la \
2928 libsystemd-internal.la \
2929 libsystemd-shared.la
2931 test_bus_match_SOURCES = \
2932 src/libsystemd/sd-bus/test-bus-match.c
2934 test_bus_match_LDADD = \
2935 libsystemd-internal.la \
2936 libsystemd-shared.la
2938 test_bus_kernel_SOURCES = \
2939 src/libsystemd/sd-bus/test-bus-kernel.c
2941 test_bus_kernel_LDADD = \
2942 libsystemd-dump.la \
2943 libsystemd-internal.la \
2944 libsystemd-shared.la
2946 test_bus_kernel_bloom_SOURCES = \
2947 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2949 test_bus_kernel_bloom_LDADD = \
2950 libsystemd-internal.la \
2951 libsystemd-shared.la
2953 test_bus_kernel_benchmark_SOURCES = \
2954 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2956 test_bus_kernel_benchmark_LDADD = \
2957 libsystemd-internal.la \
2958 libsystemd-shared.la
2960 test_bus_zero_copy_SOURCES = \
2961 src/libsystemd/sd-bus/test-bus-zero-copy.c
2963 test_bus_zero_copy_LDADD = \
2964 libsystemd-dump.la \
2965 libsystemd-internal.la \
2966 libsystemd-shared.la
2968 test_bus_introspect_SOURCES = \
2969 src/libsystemd/sd-bus/test-bus-introspect.c
2971 test_bus_introspect_LDADD = \
2972 libsystemd-internal.la \
2973 libsystemd-shared.la
2975 test_event_SOURCES = \
2976 src/libsystemd/sd-event/test-event.c
2978 test_event_LDADD = \
2979 libsystemd-internal.la \
2980 libsystemd-shared.la
2982 test_rtnl_SOURCES = \
2983 src/libsystemd/sd-rtnl/test-rtnl.c
2986 libsystemd-internal.la \
2987 libsystemd-shared.la
2989 test_local_addresses_SOURCES = \
2990 src/libsystemd/sd-rtnl/test-local-addresses.c
2992 test_local_addresses_LDADD = \
2993 libsystemd-internal.la \
2994 libsystemd-shared.la
2996 test_resolve_SOURCES = \
2997 src/libsystemd/sd-resolve/test-resolve.c
2999 test_resolve_LDADD = \
3000 libsystemd-resolve.la \
3001 libsystemd-internal.la \
3002 libsystemd-shared.la
3004 test_resolve_CFLAGS = \
3009 src/libsystemd/sd-bus/busctl.c \
3010 src/libsystemd/sd-bus/busctl-introspect.c \
3011 src/libsystemd/sd-bus/busctl-introspect.h
3014 libsystemd-dump.la \
3015 libsystemd-internal.la \
3016 libsystemd-shared.la
3018 # ------------------------------------------------------------------------------
3019 noinst_LTLIBRARIES += \
3020 libsystemd-network.la
3022 libsystemd_network_la_CFLAGS = \
3026 libsystemd_network_la_SOURCES = \
3027 src/systemd/sd-dhcp-client.h \
3028 src/systemd/sd-dhcp-server.h \
3029 src/systemd/sd-dhcp-lease.h \
3030 src/systemd/sd-ipv4ll.h \
3031 src/systemd/sd-icmp6-nd.h \
3032 src/systemd/sd-dhcp6-client.h \
3033 src/systemd/sd-dhcp6-lease.h \
3034 src/systemd/sd-pppoe.h \
3035 src/libsystemd-network/sd-dhcp-client.c \
3036 src/libsystemd-network/sd-dhcp-server.c \
3037 src/libsystemd-network/dhcp-network.c \
3038 src/libsystemd-network/dhcp-option.c \
3039 src/libsystemd-network/dhcp-packet.c \
3040 src/libsystemd-network/dhcp-internal.h \
3041 src/libsystemd-network/dhcp-server-internal.h \
3042 src/libsystemd-network/dhcp-protocol.h \
3043 src/libsystemd-network/dhcp-lease-internal.h \
3044 src/libsystemd-network/sd-dhcp-lease.c \
3045 src/libsystemd-network/sd-ipv4ll.c \
3046 src/libsystemd-network/ipv4ll-network.c \
3047 src/libsystemd-network/ipv4ll-packet.c \
3048 src/libsystemd-network/ipv4ll-internal.h \
3049 src/libsystemd-network/sd-pppoe.c \
3050 src/libsystemd-network/network-internal.c \
3051 src/libsystemd-network/network-internal.h \
3052 src/libsystemd-network/sd-icmp6-nd.c \
3053 src/libsystemd-network/sd-dhcp6-client.c \
3054 src/libsystemd-network/dhcp6-internal.h \
3055 src/libsystemd-network/dhcp6-protocol.h \
3056 src/libsystemd-network/dhcp6-network.c \
3057 src/libsystemd-network/dhcp6-option.c \
3058 src/libsystemd-network/dhcp6-lease-internal.h \
3059 src/libsystemd-network/sd-dhcp6-lease.c
3061 libsystemd_network_la_LIBADD = \
3062 libudev-internal.la \
3063 libsystemd-label.la \
3064 libsystemd-internal.la \
3065 libsystemd-shared.la \
3068 test_dhcp_option_SOURCES = \
3069 src/libsystemd-network/dhcp-protocol.h \
3070 src/libsystemd-network/dhcp-internal.h \
3071 src/libsystemd-network/test-dhcp-option.c
3073 test_dhcp_option_LDADD = \
3074 libsystemd-network.la \
3075 libsystemd-internal.la \
3076 libsystemd-shared.la
3078 test_dhcp_client_SOURCES = \
3079 src/systemd/sd-dhcp-client.h \
3080 src/libsystemd-network/dhcp-protocol.h \
3081 src/libsystemd-network/dhcp-internal.h \
3082 src/libsystemd-network/test-dhcp-client.c
3084 test_dhcp_client_LDADD = \
3085 libsystemd-network.la \
3086 libsystemd-label.la \
3087 libsystemd-internal.la \
3088 libsystemd-shared.la
3090 test_dhcp_server_SOURCES = \
3091 src/libsystemd-network/test-dhcp-server.c
3093 test_dhcp_server_LDADD = \
3094 libsystemd-network.la \
3095 libsystemd-internal.la \
3096 libsystemd-shared.la
3098 test_ipv4ll_SOURCES = \
3099 src/systemd/sd-ipv4ll.h \
3100 src/libsystemd-network/ipv4ll-internal.h \
3101 src/libsystemd-network/test-ipv4ll.c
3103 test_ipv4ll_LDADD = \
3104 libsystemd-network.la \
3105 libsystemd-label.la \
3106 libsystemd-internal.la \
3107 libsystemd-shared.la
3109 test_pppoe_SOURCES = \
3110 src/systemd/sd-pppoe.h \
3111 src/libsystemd-network/test-pppoe.c
3113 test_pppoe_LDADD = \
3114 libsystemd-network.la \
3115 libsystemd-shared.la
3117 test_icmp6_rs_SOURCES = \
3118 src/systemd/sd-dhcp6-client.h \
3119 src/systemd/sd-icmp6-nd.h \
3120 src/libsystemd-network/dhcp6-internal.h \
3121 src/libsystemd-network/test-icmp6-rs.c
3123 test_icmp6_rs_LDADD = \
3124 libsystemd-network.la \
3125 libsystemd-internal.la \
3126 libsystemd-shared.la
3128 test_dhcp6_client_SOURCES = \
3129 src/systemd/sd-dhcp6-client.h \
3130 src/libsystemd-network/dhcp6-internal.h \
3131 src/libsystemd-network/test-dhcp6-client.c
3133 test_dhcp6_client_LDADD = \
3134 libsystemd-network.la \
3135 libsystemd-internal.la \
3136 libsystemd-shared.la
3149 # ------------------------------------------------------------------------------
3151 noinst_LTLIBRARIES += \
3152 libsystemd-terminal.la
3154 rootlibexec_PROGRAMS += \
3157 noinst_PROGRAMS += \
3162 dist_pkgdata_DATA += \
3163 src/libsystemd-terminal/unifont-glyph-array.bin
3165 nodist_userunit_DATA += \
3166 units/user/systemd-consoled.service
3168 USER_DEFAULT_TARGET_WANTS += \
3169 systemd-consoled.service
3172 units/user/systemd-consoled.service.in
3180 libsystemd_terminal_la_CFLAGS = \
3184 libsystemd_terminal_la_SOURCES = \
3185 src/libsystemd-terminal/grdev.h \
3186 src/libsystemd-terminal/grdev-internal.h \
3187 src/libsystemd-terminal/grdev.c \
3188 src/libsystemd-terminal/grdev-drm.c \
3189 src/libsystemd-terminal/idev.h \
3190 src/libsystemd-terminal/idev-internal.h \
3191 src/libsystemd-terminal/idev.c \
3192 src/libsystemd-terminal/idev-evdev.c \
3193 src/libsystemd-terminal/idev-keyboard.c \
3194 src/libsystemd-terminal/sysview.h \
3195 src/libsystemd-terminal/sysview-internal.h \
3196 src/libsystemd-terminal/sysview.c \
3197 src/libsystemd-terminal/term.h \
3198 src/libsystemd-terminal/term-internal.h \
3199 src/libsystemd-terminal/term-charset.c \
3200 src/libsystemd-terminal/term-page.c \
3201 src/libsystemd-terminal/term-parser.c \
3202 src/libsystemd-terminal/term-screen.c \
3203 src/libsystemd-terminal/term-wcwidth.c \
3204 src/libsystemd-terminal/unifont.h \
3205 src/libsystemd-terminal/unifont-def.h \
3206 src/libsystemd-terminal/unifont.c
3208 libsystemd_terminal_la_LIBADD = \
3209 libudev-internal.la \
3210 libsystemd-internal.la \
3211 libsystemd-shared.la \
3214 systemd_consoled_CFLAGS = \
3218 systemd_consoled_SOURCES = \
3219 src/console/consoled.h \
3220 src/console/consoled.c \
3221 src/console/consoled-display.c \
3222 src/console/consoled-manager.c \
3223 src/console/consoled-session.c \
3224 src/console/consoled-terminal.c \
3225 src/console/consoled-workspace.c
3227 systemd_consoled_LDADD = \
3228 libsystemd-terminal.la \
3229 libsystemd-internal.la \
3230 libsystemd-shared.la \
3233 systemd_evcat_CFLAGS = \
3237 systemd_evcat_SOURCES = \
3238 src/libsystemd-terminal/evcat.c
3240 systemd_evcat_LDADD = \
3241 libsystemd-terminal.la \
3242 libsystemd-internal.la \
3243 libsystemd-shared.la \
3246 systemd_modeset_CFLAGS = \
3250 systemd_modeset_SOURCES = \
3251 src/libsystemd-terminal/modeset.c
3253 systemd_modeset_LDADD = \
3254 libsystemd-terminal.la \
3255 libsystemd-internal.la \
3256 libsystemd-shared.la \
3259 systemd_subterm_SOURCES = \
3260 src/libsystemd-terminal/subterm.c
3262 systemd_subterm_LDADD = \
3263 libsystemd-terminal.la \
3264 libsystemd-internal.la \
3265 libsystemd-shared.la
3267 test_term_page_SOURCES = \
3268 src/libsystemd-terminal/test-term-page.c
3270 test_term_page_LDADD = \
3271 libsystemd-terminal.la \
3272 libsystemd-internal.la \
3273 libsystemd-shared.la
3275 test_term_parser_SOURCES = \
3276 src/libsystemd-terminal/test-term-parser.c
3278 test_term_parser_LDADD = \
3279 libsystemd-terminal.la \
3280 libsystemd-internal.la \
3281 libsystemd-shared.la
3283 test_unifont_SOURCES = \
3284 src/libsystemd-terminal/test-unifont.c
3286 test_unifont_LDADD = \
3287 libsystemd-terminal.la \
3288 libsystemd-internal.la \
3289 libsystemd-shared.la
3291 .PHONY: update-unifont
3292 update-unifont: tools/compile-unifont.py
3293 $(AM_V_GEN)$(PYTHON) $< \
3294 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3295 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3296 @echo "unifont-glyph-array.bin has been regenerated"
3298 # ------------------------------------------------------------------------------
3308 include_HEADERS += \
3309 src/libudev/libudev.h
3311 lib_LTLIBRARIES += \
3314 libudev_la_SOURCES =\
3315 src/libudev/libudev.sym \
3316 src/libudev/libudev-private.h \
3317 src/libudev/libudev.c \
3318 src/libudev/libudev-list.c \
3319 src/libudev/libudev-util.c \
3320 src/libudev/libudev-device.c \
3321 src/libudev/libudev-enumerate.c \
3322 src/libudev/libudev-monitor.c \
3323 src/libudev/libudev-queue.c \
3324 src/libudev/libudev-hwdb-def.h \
3325 src/libudev/libudev-hwdb.c
3327 libudev_la_CFLAGS = \
3331 libudev_la_LDFLAGS = \
3333 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3334 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3336 libudev_la_LIBADD = \
3337 libsystemd-internal.la \
3338 libsystemd-shared.la
3340 pkgconfiglib_DATA += \
3341 src/libudev/libudev.pc
3344 src/libudev/libudev.pc.in
3347 src/libudev/libudev.pc \
3352 $(AM_V_at)$(MKDIR_P) $(dir $@)
3353 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3356 $(AM_V_at)$(MKDIR_P) $(dir $@)
3357 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3359 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3360 libudev-install-hook:
3361 libname=libudev.so && $(move-to-rootlibdir)
3363 libudev-uninstall-hook:
3364 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3366 INSTALL_EXEC_HOOKS += libudev-install-hook
3367 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3369 # ------------------------------------------------------------------------------
3370 noinst_LTLIBRARIES += \
3373 libudev_internal_la_SOURCES =\
3374 $(libudev_la_SOURCES) \
3375 src/libudev/libudev-device-private.c
3377 libudev_internal_la_CFLAGS = \
3379 -fvisibility=default
3381 # ------------------------------------------------------------------------------
3383 $(sysconfdir)/udev/rules.d \
3384 $(sysconfdir)/udev/hwdb.d
3386 dist_network_DATA = \
3387 network/99-default.link \
3388 network/80-container-host0.network \
3389 network/80-container-ve.network
3391 dist_udevrules_DATA += \
3392 rules/42-usb-hid-pm.rules \
3393 rules/50-udev-default.rules \
3394 rules/60-drm.rules \
3395 rules/60-keyboard.rules \
3396 rules/70-mouse.rules \
3397 rules/60-persistent-storage-tape.rules \
3398 rules/60-persistent-serial.rules \
3399 rules/60-persistent-input.rules \
3400 rules/60-persistent-alsa.rules \
3401 rules/60-persistent-storage.rules \
3402 rules/64-btrfs.rules \
3403 rules/75-net-description.rules \
3404 rules/75-tty-description.rules \
3405 rules/78-sound-card.rules \
3406 rules/80-net-setup-link.rules \
3407 rules/95-udev-late.rules
3409 nodist_udevrules_DATA += \
3410 rules/99-systemd.rules
3412 dist_udevhwdb_DATA = \
3413 hwdb/20-pci-vendor-model.hwdb \
3414 hwdb/20-pci-classes.hwdb \
3415 hwdb/20-usb-vendor-model.hwdb \
3416 hwdb/20-usb-classes.hwdb \
3417 hwdb/20-sdio-vendor-model.hwdb \
3418 hwdb/20-sdio-classes.hwdb \
3419 hwdb/20-bluetooth-vendor-product.hwdb \
3420 hwdb/20-acpi-vendor.hwdb \
3422 hwdb/20-net-ifname.hwdb \
3423 hwdb/60-keyboard.hwdb \
3426 udevconfdir = $(sysconfdir)/udev
3427 dist_udevconf_DATA = \
3430 sharepkgconfigdir = $(datadir)/pkgconfig
3431 sharepkgconfig_DATA = \
3435 rules/99-systemd.rules.in \
3439 rules/99-systemd.rules \
3443 units/systemd-udevd.service.in \
3444 units/systemd-udev-trigger.service.in \
3445 units/systemd-udev-settle.service.in \
3446 units/systemd-udev-hwdb-update.service.in
3449 units/systemd-udevd.service \
3450 units/systemd-udev-trigger.service \
3451 units/systemd-udev-settle.service \
3452 units/systemd-udev-hwdb-update.service
3454 SOCKETS_TARGET_WANTS += \
3455 systemd-udevd-control.socket \
3456 systemd-udevd-kernel.socket
3458 SYSINIT_TARGET_WANTS += \
3459 systemd-udevd.service \
3460 systemd-udev-trigger.service \
3461 systemd-udev-hwdb-update.service
3463 rootbin_PROGRAMS += \
3466 rootlibexec_PROGRAMS += \
3469 noinst_LTLIBRARIES += \
3472 src/udev/keyboard-keys.txt:
3473 $(AM_V_at)$(MKDIR_P) $(dir $@)
3474 $(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/' > $@
3476 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3477 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3479 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3480 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3482 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3483 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3485 libudev_core_la_SOURCES = \
3487 src/udev/udev-event.c \
3488 src/udev/udev-watch.c \
3489 src/udev/udev-node.c \
3490 src/udev/udev-rules.c \
3491 src/udev/udev-ctrl.c \
3492 src/udev/udev-builtin.c \
3493 src/udev/udev-builtin-btrfs.c \
3494 src/udev/udev-builtin-hwdb.c \
3495 src/udev/udev-builtin-input_id.c \
3496 src/udev/udev-builtin-keyboard.c \
3497 src/udev/udev-builtin-net_id.c \
3498 src/udev/udev-builtin-net_setup_link.c \
3499 src/udev/udev-builtin-path_id.c \
3500 src/udev/udev-builtin-usb_id.c \
3501 src/udev/net/link-config.h \
3502 src/udev/net/link-config.c \
3503 src/udev/net/ethtool-util.h \
3504 src/udev/net/ethtool-util.c
3506 nodist_libudev_core_la_SOURCES = \
3507 src/udev/keyboard-keys-from-name.h \
3508 src/udev/keyboard-keys-to-name.h \
3509 src/udev/net/link-config-gperf.c
3512 $(nodist_libudev_core_la_SOURCES)
3515 src/udev/keyboard-keys-from-name.gperf \
3516 src/udev/keyboard-keys.txt \
3517 src/udev/net/link-config-gperf.c
3520 src/udev/net/link-config-gperf.gperf
3522 libudev_core_la_CFLAGS = \
3527 libudev_core_la_LIBADD = \
3528 libudev-internal.la \
3529 libsystemd-label.la \
3530 libsystemd-internal.la \
3531 libsystemd-network.la \
3532 libsystemd-shared.la \
3537 libudev_core_la_SOURCES += \
3538 src/udev/udev-builtin-kmod.c
3540 dist_udevrules_DATA += \
3541 rules/80-drivers.rules
3545 libudev_core_la_SOURCES += \
3546 src/udev/udev-builtin-blkid.c
3550 libudev_core_la_SOURCES += \
3551 src/udev/udev-builtin-uaccess.c \
3552 src/login/logind-acl.c \
3553 src/libsystemd/sd-login/sd-login.c \
3554 src/systemd/sd-login.h
3556 libudev_core_la_LIBADD += \
3560 systemd_udevd_SOURCES = \
3563 systemd_udevd_LDADD = \
3567 src/udev/udevadm.c \
3568 src/udev/udevadm-info.c \
3569 src/udev/udevadm-control.c \
3570 src/udev/udevadm-monitor.c \
3571 src/udev/udevadm-hwdb.c \
3572 src/udev/udevadm-settle.c \
3573 src/udev/udevadm-trigger.c \
3574 src/udev/udevadm-test.c \
3575 src/udev/udevadm-test-builtin.c \
3576 src/udev/udevadm-util.c \
3577 src/udev/udevadm-util.h
3582 # Update hwdb on installation. Do not bother if installing
3583 # in DESTDIR, since this is likely for packaging purposes.
3585 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3587 INSTALL_DATA_HOOKS += \
3591 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3593 # ------------------------------------------------------------------------------
3602 test_libudev_SOURCES = \
3603 src/test/test-libudev.c
3605 test_libudev_LDADD = \
3606 libsystemd-label.la \
3607 libudev-internal.la \
3608 libsystemd-shared.la \
3609 libsystemd-internal.la
3611 test_udev_SOURCES = \
3612 src/test/test-udev.c
3621 test_udev_LDADD += \
3628 # packed sysfs test tree
3630 $(AM_V_at)$(MKDIR_P) $(dir $@)
3631 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3635 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3640 test/rules-test.sh \
3641 test/rule-syntax-check.py
3643 # ------------------------------------------------------------------------------
3645 src/udev/ata_id/ata_id.c
3648 libudev-internal.la \
3649 libsystemd-shared.la
3651 udevlibexec_PROGRAMS += \
3654 # ------------------------------------------------------------------------------
3655 cdrom_id_SOURCES = \
3656 src/udev/cdrom_id/cdrom_id.c
3659 libudev-internal.la \
3660 libsystemd-shared.la
3662 udevlibexec_PROGRAMS += \
3665 dist_udevrules_DATA += \
3666 rules/60-cdrom_id.rules
3668 # ------------------------------------------------------------------------------
3670 src/udev/collect/collect.c
3673 libudev-internal.la \
3674 libsystemd-shared.la
3676 udevlibexec_PROGRAMS += \
3679 # ------------------------------------------------------------------------------
3681 src/udev/scsi_id/scsi_id.c \
3682 src/udev/scsi_id/scsi_serial.c \
3683 src/udev/scsi_id/scsi.h \
3684 src/udev/scsi_id/scsi_id.h
3687 libudev-internal.la \
3688 libsystemd-shared.la
3690 udevlibexec_PROGRAMS += \
3694 src/udev/scsi_id/README
3696 # ------------------------------------------------------------------------------
3698 src/udev/v4l_id/v4l_id.c
3703 udevlibexec_PROGRAMS += \
3706 dist_udevrules_DATA += \
3707 rules/60-persistent-v4l.rules
3709 # ------------------------------------------------------------------------------
3710 accelerometer_SOURCES = \
3711 src/udev/accelerometer/accelerometer.c
3713 accelerometer_LDADD = \
3714 libudev-internal.la -lm \
3715 libsystemd-shared.la
3717 udevlibexec_PROGRAMS += \
3720 dist_udevrules_DATA += \
3721 rules/61-accelerometer.rules
3723 # ------------------------------------------------------------------------------
3730 libgudev_includedir = \
3731 $(includedir)/gudev-1.0/gudev
3733 libgudev_include_HEADERS = \
3735 src/gudev/gudevenums.h \
3736 src/gudev/gudevenumtypes.h \
3737 src/gudev/gudevtypes.h \
3738 src/gudev/gudevclient.h \
3739 src/gudev/gudevdevice.h \
3740 src/gudev/gudevenumerator.h
3742 lib_LTLIBRARIES += libgudev-1.0.la
3744 pkgconfiglib_DATA += \
3745 src/gudev/gudev-1.0.pc
3748 src/gudev/gudev-1.0.pc
3750 libgudev_1_0_la_SOURCES = \
3751 src/gudev/libgudev-1.0.sym \
3752 src/gudev/gudevenums.h \
3753 src/gudev/gudevenumtypes.h \
3754 src/gudev/gudevenumtypes.h\
3755 src/gudev/gudevtypes.h \
3756 src/gudev/gudevclient.h \
3757 src/gudev/gudevclient.c \
3758 src/gudev/gudevdevice.h \
3759 src/gudev/gudevdevice.c \
3760 src/gudev/gudevenumerator.h \
3761 src/gudev/gudevenumerator.c \
3762 src/gudev/gudevprivate.h
3764 nodist_libgudev_1_0_la_SOURCES = \
3765 src/gudev/gudevmarshal.h \
3766 src/gudev/gudevmarshal.c \
3767 src/gudev/gudevenumtypes.h \
3768 src/gudev/gudevenumtypes.c
3771 $(nodist_libgudev_1_0_la_SOURCES)
3773 libgudev_1_0_la_CPPFLAGS = \
3775 -I$(top_builddir)/src\
3776 -I$(top_srcdir)/src\
3777 -I$(top_builddir)/src/gudev \
3778 -I$(top_srcdir)/src/gudev \
3779 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3780 -D_GUDEV_COMPILATION \
3781 -DG_LOG_DOMAIN=\"GUdev\"
3783 libgudev_1_0_la_CFLAGS = \
3785 -fvisibility=default \
3788 libgudev_1_0_la_LIBADD = \
3792 libgudev_1_0_la_LDFLAGS = \
3794 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3797 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3799 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3800 $(AM_V_at)$(MKDIR_P) $(dir $@)
3801 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3803 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3804 $(AM_V_at)$(MKDIR_P) $(dir $@)
3805 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3806 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3808 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3809 $(AM_V_at)$(MKDIR_P) $(dir $@)
3810 $(AM_V_GEN)glib-mkenums --template $^ > $@
3812 if HAVE_INTROSPECTION
3813 -include $(INTROSPECTION_MAKEFILE)
3815 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3817 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3819 src_gudev_GUdev_1_0_gir_CFLAGS = \
3822 -D_GUDEV_COMPILATION \
3823 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3824 -I$(top_srcdir)/src \
3825 -I$(top_builddir)/src \
3826 -I$(top_srcdir)/src/gudev \
3827 -I$(top_builddir)/src/gudev
3829 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3831 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3832 --pkg-export=gudev-1.0 \
3835 src_gudev_GUdev_1_0_gir_FILES = \
3837 src/gudev/gudevtypes.h \
3838 src/gudev/gudevenums.h \
3839 src/gudev/gudevenumtypes.h \
3840 src/gudev/gudevclient.h \
3841 src/gudev/gudevdevice.h \
3842 src/gudev/gudevenumerator.h \
3843 src/gudev/gudevclient.c \
3844 src/gudev/gudevdevice.c \
3845 src/gudev/gudevenumerator.c
3847 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3848 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3850 girdir = $(datadir)/gir-1.0
3852 src/gudev/GUdev-1.0.gir
3854 typelibsdir = $(libdir)/girepository-1.0
3856 src/gudev/GUdev-1.0.typelib
3858 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3859 endif # HAVE_INTROSPECTION
3863 src/gudev/gudev-1.0.pc.in \
3864 src/gudev/gudevmarshal.list \
3865 src/gudev/gudevenumtypes.h.template \
3866 src/gudev/gudevenumtypes.c.template \
3867 src/gudev/gjs-example.js \
3868 src/gudev/seed-example-enum.js \
3869 src/gudev/seed-example.js
3871 # ------------------------------------------------------------------------------
3872 mtd_probe_SOURCES = \
3873 src/udev/mtd_probe/mtd_probe.c \
3874 src/udev/mtd_probe/mtd_probe.h \
3875 src/udev/mtd_probe/probe_smartmedia.c
3877 dist_udevrules_DATA += \
3878 rules/75-probe_mtd.rules
3880 udevlibexec_PROGRAMS += \
3883 # ------------------------------------------------------------------------------
3884 test_id128_SOURCES = \
3885 src/test/test-id128.c
3887 test_id128_LDADD = \
3888 libsystemd-internal.la \
3889 libsystemd-shared.la
3894 # ------------------------------------------------------------------------------
3896 rootlibexec_PROGRAMS += \
3899 systemd_activate_SOURCES = \
3900 src/activate/activate.c
3902 systemd_activate_LDADD = \
3903 libsystemd-label.la \
3904 libsystemd-internal.la \
3905 libsystemd-shared.la
3907 # ------------------------------------------------------------------------------
3908 systemd_journald_SOURCES = \
3909 src/journal/journald.c \
3910 src/journal/journald-server.h
3912 systemd_journald_LDADD = \
3913 libsystemd-journal-core.la \
3914 libsystemd-internal.la \
3915 libsystemd-shared.la
3917 systemd_cat_SOURCES = \
3920 systemd_cat_LDADD = \
3921 libsystemd-journal-core.la
3924 rootlibexec_PROGRAMS += \
3925 systemd-journal-remote
3927 systemd_journal_remote_SOURCES = \
3928 src/journal-remote/journal-remote-parse.h \
3929 src/journal-remote/journal-remote-parse.c \
3930 src/journal-remote/journal-remote-write.h \
3931 src/journal-remote/journal-remote-write.c \
3932 src/journal-remote/journal-remote.h \
3933 src/journal-remote/journal-remote.c
3935 systemd_journal_remote_LDADD = \
3936 libsystemd-internal.la \
3937 libsystemd-journal-core.la
3939 systemd_journal_remote_SOURCES += \
3940 src/journal-remote/microhttpd-util.h \
3941 src/journal-remote/microhttpd-util.c
3943 systemd_journal_remote_CFLAGS = \
3945 $(MICROHTTPD_CFLAGS)
3947 systemd_journal_remote_LDADD += \
3951 dist_sysusers_DATA += \
3952 sysusers.d/systemd-remote.conf
3956 dist_tmpfiles_DATA += \
3957 tmpfiles.d/systemd-remote.conf
3961 systemd_journal_remote_LDADD += \
3964 # systemd-journal-remote make sense mostly with full crypto stack
3965 dist_systemunit_DATA += \
3966 units/systemd-journal-remote.socket
3968 nodist_systemunit_DATA += \
3969 units/systemd-journal-remote.service
3972 units/systemd-journal-remote.service.in
3974 journal-remote-install-hook: journal-install-hook
3975 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3976 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3977 -chmod 755 $(DESTDIR)/var/log/journal/remote
3979 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3983 nodist_pkgsysconf_DATA += \
3984 src/journal-remote/journal-remote.conf
3987 src/journal-remote/journal-remote.conf.in
3990 src/journal-remote/journal-remote.conf
3994 rootlibexec_PROGRAMS += \
3995 systemd-journal-upload
3997 systemd_journal_upload_SOURCES = \
3998 src/journal-remote/journal-upload.h \
3999 src/journal-remote/journal-upload.c \
4000 src/journal-remote/journal-upload-journal.c
4002 systemd_journal_upload_CFLAGS = \
4006 systemd_journal_upload_LDADD = \
4007 libsystemd-internal.la \
4008 libsystemd-journal-internal.la \
4009 libsystemd-shared.la \
4012 nodist_systemunit_DATA += \
4013 units/systemd-journal-upload.service
4016 units/systemd-journal-upload.service.in
4018 nodist_pkgsysconf_DATA += \
4019 src/journal-remote/journal-upload.conf
4022 src/journal-remote/journal-upload.conf.in
4025 src/journal-remote/journal-upload.conf
4028 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4029 journalctl_CFLAGS = \
4032 journalctl_SOURCES = \
4033 src/journal/journalctl.c
4035 journalctl_LDADD = \
4036 libsystemd-journal-internal.la \
4037 libsystemd-internal.la \
4038 libsystemd-logs.la \
4039 libsystemd-shared.la
4042 journalctl_LDADD += \
4047 journalctl_SOURCES += \
4048 src/journal/journal-qrcode.c \
4049 src/journal/journal-qrcode.h
4051 journalctl_CFLAGS += \
4054 journalctl_LDADD += \
4058 test_journal_SOURCES = \
4059 src/journal/test-journal.c
4061 test_journal_LDADD = \
4062 libsystemd-journal-core.la
4064 test_journal_send_SOURCES = \
4065 src/journal/test-journal-send.c
4067 test_journal_send_LDADD = \
4068 libsystemd-journal-core.la
4070 test_journal_syslog_SOURCES = \
4071 src/journal/test-journal-syslog.c
4073 test_journal_syslog_LDADD = \
4074 libsystemd-journal-core.la
4076 test_journal_match_SOURCES = \
4077 src/journal/test-journal-match.c
4079 test_journal_match_LDADD = \
4080 libsystemd-journal-core.la
4082 test_journal_enum_SOURCES = \
4083 src/journal/test-journal-enum.c
4085 test_journal_enum_LDADD = \
4086 libsystemd-journal-core.la
4088 test_journal_stream_SOURCES = \
4089 src/journal/test-journal-stream.c
4091 test_journal_stream_LDADD = \
4092 libsystemd-journal-core.la
4094 test_journal_flush_SOURCES = \
4095 src/journal/test-journal-flush.c
4097 test_journal_flush_LDADD = \
4098 libsystemd-journal-core.la
4100 test_journal_init_SOURCES = \
4101 src/journal/test-journal-init.c
4103 test_journal_init_LDADD = \
4104 libsystemd-journal-core.la
4106 test_journal_verify_SOURCES = \
4107 src/journal/test-journal-verify.c
4109 test_journal_verify_LDADD = \
4110 libsystemd-journal-core.la
4112 test_journal_interleaving_SOURCES = \
4113 src/journal/test-journal-interleaving.c
4115 test_journal_interleaving_LDADD = \
4116 libsystemd-journal-core.la
4118 test_mmap_cache_SOURCES = \
4119 src/journal/test-mmap-cache.c
4121 test_mmap_cache_LDADD = \
4122 libsystemd-journal-core.la
4124 test_catalog_SOURCES = \
4125 src/journal/test-catalog.c
4127 test_catalog_CPPFLAGS = \
4129 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4131 test_catalog_LDADD = \
4132 libsystemd-journal-core.la
4134 test_compress_SOURCES = \
4135 src/journal/test-compress.c
4137 test_compress_LDADD = \
4138 libsystemd-journal-internal.la \
4139 libsystemd-shared.la
4141 test_compress_benchmark_SOURCES = \
4142 src/journal/test-compress-benchmark.c
4144 test_compress_benchmark_LDADD = \
4145 libsystemd-journal-internal.la \
4146 libsystemd-shared.la
4148 libsystemd_journal_core_la_SOURCES = \
4149 src/journal/journald-kmsg.c \
4150 src/journal/journald-kmsg.h \
4151 src/journal/journald-syslog.c \
4152 src/journal/journald-syslog.h \
4153 src/journal/journald-stream.c \
4154 src/journal/journald-stream.h \
4155 src/journal/journald-server.c \
4156 src/journal/journald-server.h \
4157 src/journal/journald-console.c \
4158 src/journal/journald-console.h \
4159 src/journal/journald-wall.c \
4160 src/journal/journald-wall.h \
4161 src/journal/journald-native.c \
4162 src/journal/journald-native.h \
4163 src/journal/journald-audit.c \
4164 src/journal/journald-audit.h \
4165 src/journal/journald-rate-limit.c \
4166 src/journal/journald-rate-limit.h \
4167 src/journal/journal-internal.h
4169 nodist_libsystemd_journal_core_la_SOURCES = \
4170 src/journal/journald-gperf.c
4172 libsystemd_journal_core_la_LIBADD = \
4173 libsystemd-journal-internal.la \
4174 libudev-internal.la \
4175 libsystemd-label.la \
4176 libsystemd-internal.la \
4177 libsystemd-shared.la
4180 libsystemd_journal_core_la_LIBADD += \
4184 noinst_LTLIBRARIES += \
4185 libsystemd-journal-core.la
4187 journal-install-hook:
4188 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4189 -chown 0:0 $(DESTDIR)/var/log/journal
4190 -chmod 755 $(DESTDIR)/var/log/journal
4191 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4192 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4194 journal-uninstall-hook:
4195 -rmdir $(DESTDIR)/var/log/journal/remote
4196 -rmdir $(DESTDIR)/var/log/journal/
4198 INSTALL_EXEC_HOOKS += journal-install-hook
4199 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4201 # ------------------------------------------------------------------------------
4202 # Update catalog on installation. Do not bother if installing
4203 # in DESTDIR, since this is likely for packaging purposes.
4204 catalog-update-hook:
4205 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4207 INSTALL_DATA_HOOKS += \
4210 catalog-remove-hook:
4211 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4213 UNINSTALL_DATA_HOOKS += \
4222 test-journal-syslog \
4223 test-journal-match \
4224 test-journal-stream \
4226 test-journal-verify \
4227 test-journal-interleaving \
4228 test-journal-flush \
4235 test-compress-benchmark
4238 pkginclude_HEADERS += \
4239 src/systemd/sd-journal.h \
4240 src/systemd/sd-messages.h \
4241 src/systemd/_sd-common.h
4243 libsystemd_journal_internal_la_SOURCES = \
4244 src/journal/sd-journal.c \
4245 src/systemd/sd-journal.h \
4246 src/systemd/_sd-common.h \
4247 src/journal/journal-file.c \
4248 src/journal/journal-file.h \
4249 src/journal/journal-vacuum.c \
4250 src/journal/journal-vacuum.h \
4251 src/journal/journal-verify.c \
4252 src/journal/journal-verify.h \
4253 src/journal/lookup3.c \
4254 src/journal/lookup3.h \
4255 src/journal/journal-send.c \
4256 src/journal/journal-def.h \
4257 src/journal/compress.h \
4258 src/journal/catalog.c \
4259 src/journal/catalog.h \
4260 src/journal/mmap-cache.c \
4261 src/journal/mmap-cache.h
4263 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4264 libsystemd_journal_internal_la_CFLAGS = \
4267 libsystemd_journal_internal_la_LIBADD =
4269 libsystemd_journal_internal_la_SOURCES += \
4270 src/journal/compress.c
4273 libsystemd_journal_internal_la_CFLAGS += \
4276 libsystemd_journal_internal_la_LIBADD += \
4281 libsystemd_journal_internal_la_LIBADD += \
4286 libsystemd_journal_internal_la_SOURCES += \
4287 src/journal/journal-authenticate.c \
4288 src/journal/journal-authenticate.h \
4289 src/journal/fsprg.c \
4292 libsystemd_journal_internal_la_LIBADD += \
4295 # fsprg.c is a drop-in file using void pointer arithmetic
4296 libsystemd_journal_internal_la_CFLAGS += \
4301 noinst_LTLIBRARIES += \
4302 libsystemd-journal-internal.la
4304 rootlibexec_PROGRAMS += \
4307 rootbin_PROGRAMS += \
4313 dist_systemunit_DATA += \
4314 units/systemd-journald.socket \
4315 units/systemd-journald-dev-log.socket \
4316 units/systemd-journald-audit.socket
4318 nodist_systemunit_DATA += \
4319 units/systemd-journald.service \
4320 units/systemd-journal-flush.service \
4321 units/systemd-journal-catalog-update.service
4323 dist_pkgsysconf_DATA += \
4324 src/journal/journald.conf
4326 dist_catalog_DATA = \
4327 catalog/systemd.fr.catalog \
4328 catalog/systemd.it.catalog \
4329 catalog/systemd.pl.catalog \
4330 catalog/systemd.ru.catalog \
4331 catalog/systemd.catalog
4333 SOCKETS_TARGET_WANTS += \
4334 systemd-journald.socket \
4335 systemd-journald-dev-log.socket \
4336 systemd-journald-audit.socket
4338 SYSINIT_TARGET_WANTS += \
4339 systemd-journald.service \
4340 systemd-journal-flush.service \
4341 systemd-journal-catalog-update.service
4344 units/systemd-journald.service.in \
4345 units/systemd-journal-flush.service.in \
4346 units/systemd-journal-catalog-update.service.in \
4347 src/journal/journald-gperf.gperf
4350 src/journal/journald-gperf.c
4352 # ------------------------------------------------------------------------------
4354 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4356 rootlibexec_PROGRAMS += \
4357 systemd-journal-gatewayd
4359 systemd_journal_gatewayd_SOURCES = \
4360 src/journal-remote/journal-gatewayd.c \
4361 src/journal-remote/microhttpd-util.h \
4362 src/journal-remote/microhttpd-util.c
4364 systemd_journal_gatewayd_LDADD = \
4365 libsystemd-logs.la \
4366 libsystemd-journal-internal.la \
4367 libsystemd-internal.la \
4368 libsystemd-shared.la \
4372 systemd_journal_gatewayd_LDADD += \
4376 systemd_journal_gatewayd_CFLAGS = \
4378 $(MICROHTTPD_CFLAGS)
4380 systemd_journal_gatewayd_CPPFLAGS = \
4382 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4384 dist_systemunit_DATA += \
4385 units/systemd-journal-gatewayd.socket
4387 nodist_systemunit_DATA += \
4388 units/systemd-journal-gatewayd.service
4390 dist_gatewayddocumentroot_DATA = \
4391 src/journal-remote/browse.html
4396 units/systemd-journal-gatewayd.service.in
4398 # ------------------------------------------------------------------------------
4400 systemd_socket_proxyd_SOURCES = \
4401 src/socket-proxy/socket-proxyd.c
4403 systemd_socket_proxyd_LDADD = \
4404 libsystemd-logs.la \
4405 libsystemd-internal.la \
4406 libsystemd-journal-internal.la \
4407 libsystemd-shared.la \
4408 libsystemd-resolve.la
4410 # ------------------------------------------------------------------------------
4412 systemd_coredump_SOURCES = \
4413 src/journal/coredump.c \
4414 src/journal/coredump-vacuum.c \
4415 src/journal/coredump-vacuum.h
4417 systemd_coredump_LDADD = \
4418 libsystemd-journal-internal.la \
4419 libsystemd-label.la \
4420 libsystemd-internal.la \
4421 libsystemd-shared.la
4424 systemd_coredump_SOURCES += \
4425 src/journal/stacktrace.c \
4426 src/journal/stacktrace.h
4428 systemd_coredump_LDADD += \
4432 rootlibexec_PROGRAMS += \
4435 dist_pkgsysconf_DATA += \
4436 src/journal/coredump.conf
4439 systemd_coredump_LDADD += \
4443 coredumpctl_SOURCES = \
4444 src/journal/coredumpctl.c
4446 coredumpctl_LDADD = \
4447 libsystemd-journal-internal.la \
4448 libsystemd-internal.la \
4449 libsystemd-shared.la
4455 test-coredump-vacuum
4457 test_coredump_vacuum_SOURCES = \
4458 src/journal/test-coredump-vacuum.c \
4459 src/journal/coredump-vacuum.c \
4460 src/journal/coredump-vacuum.h
4462 test_coredump_vacuum_LDADD = \
4463 libsystemd-internal.la \
4464 libsystemd-shared.la
4466 dist_bashcompletion_DATA += \
4467 shell-completion/bash/coredumpctl
4469 dist_zshcompletion_DATA += \
4470 shell-completion/zsh/_coredumpctl
4473 sysctl.d/50-coredump.conf
4476 sysctl.d/50-coredump.conf
4480 sysctl.d/50-coredump.conf.in
4482 # ------------------------------------------------------------------------------
4484 systemd_binfmt_SOURCES = \
4487 systemd_binfmt_LDADD = \
4488 libsystemd-shared.la
4490 rootlibexec_PROGRAMS += \
4493 dist_systemunit_DATA += \
4494 units/proc-sys-fs-binfmt_misc.automount \
4495 units/proc-sys-fs-binfmt_misc.mount
4497 nodist_systemunit_DATA += \
4498 units/systemd-binfmt.service
4501 $(prefix)/lib/binfmt.d \
4502 $(sysconfdir)/binfmt.d
4504 SYSINIT_TARGET_WANTS += \
4505 systemd-binfmt.service \
4506 proc-sys-fs-binfmt_misc.automount
4511 units/systemd-binfmt.service.in
4513 # ------------------------------------------------------------------------------
4515 systemd_vconsole_setup_SOURCES = \
4516 src/vconsole/vconsole-setup.c
4518 systemd_vconsole_setup_LDADD = \
4519 libsystemd-shared.la
4521 rootlibexec_PROGRAMS += \
4522 systemd-vconsole-setup
4524 nodist_systemunit_DATA += \
4525 units/systemd-vconsole-setup.service
4527 nodist_udevrules_DATA += \
4528 src/vconsole/90-vconsole.rules
4530 SYSINIT_TARGET_WANTS += \
4531 systemd-vconsole-setup.service
4534 src/vconsole/90-vconsole.rules
4538 src/vconsole/90-vconsole.rules.in \
4539 units/systemd-vconsole-setup.service.in
4541 # ------------------------------------------------------------------------------
4543 systemd_bootchart_SOURCES = \
4544 src/bootchart/bootchart.c \
4545 src/bootchart/bootchart.h \
4546 src/bootchart/store.c \
4547 src/bootchart/store.h \
4548 src/bootchart/svg.c \
4551 systemd_bootchart_LDADD = \
4552 libsystemd-journal-internal.la \
4553 libsystemd-shared.la
4555 rootlibexec_PROGRAMS += \
4558 dist_pkgsysconf_DATA += \
4559 src/bootchart/bootchart.conf
4561 nodist_systemunit_DATA += \
4562 units/systemd-bootchart.service
4565 units/systemd-bootchart.service.in
4568 units/systemd-bootchart.service
4571 # ------------------------------------------------------------------------------
4572 if ENABLE_QUOTACHECK
4573 rootlibexec_PROGRAMS += \
4576 nodist_systemunit_DATA += \
4577 units/systemd-quotacheck.service
4579 systemd_quotacheck_SOURCES = \
4580 src/quotacheck/quotacheck.c
4582 systemd_quotacheck_LDADD = \
4583 libsystemd-shared.la
4587 units/systemd-quotacheck.service.in
4589 nodist_systemunit_DATA += \
4590 units/quotaon.service
4592 # ------------------------------------------------------------------------------
4593 if ENABLE_RANDOMSEED
4594 rootlibexec_PROGRAMS += \
4597 nodist_systemunit_DATA += \
4598 units/systemd-random-seed.service
4600 systemd_random_seed_SOURCES = \
4601 src/random-seed/random-seed.c
4603 systemd_random_seed_LDADD = \
4604 libsystemd-label.la \
4605 libsystemd-shared.la
4607 SYSINIT_TARGET_WANTS += \
4608 systemd-random-seed.service
4613 units/systemd-random-seed.service.in
4615 # ------------------------------------------------------------------------------
4617 rootlibexec_PROGRAMS += \
4620 nodist_systemunit_DATA += \
4621 units/systemd-backlight@.service
4623 systemd_backlight_SOURCES = \
4624 src/backlight/backlight.c
4626 systemd_backlight_LDADD = \
4627 libsystemd-label.la \
4628 libudev-internal.la \
4629 libsystemd-shared.la
4633 units/systemd-backlight@.service.in
4635 # ------------------------------------------------------------------------------
4637 rootlibexec_PROGRAMS += \
4640 nodist_systemunit_DATA += \
4641 units/systemd-rfkill@.service
4643 systemd_rfkill_SOURCES = \
4646 systemd_rfkill_LDADD = \
4647 libsystemd-label.la \
4648 libudev-internal.la \
4649 libsystemd-shared.la
4653 units/systemd-rfkill@.service.in
4655 # ------------------------------------------------------------------------------
4656 if HAVE_LIBCRYPTSETUP
4657 rootlibexec_PROGRAMS += \
4660 systemgenerator_PROGRAMS += \
4661 systemd-cryptsetup-generator
4663 dist_systemunit_DATA += \
4664 units/cryptsetup.target \
4665 units/cryptsetup-pre.target
4667 systemd_cryptsetup_SOURCES = \
4668 src/cryptsetup/cryptsetup.c
4670 systemd_cryptsetup_CFLAGS = \
4672 $(LIBCRYPTSETUP_CFLAGS)
4674 systemd_cryptsetup_LDADD = \
4675 libsystemd-label.la \
4676 libudev-internal.la \
4677 libsystemd-shared.la \
4678 $(LIBCRYPTSETUP_LIBS)
4680 systemd_cryptsetup_generator_SOURCES = \
4681 src/cryptsetup/cryptsetup-generator.c
4683 systemd_cryptsetup_generator_LDADD = \
4684 libsystemd-label.la \
4685 libsystemd-shared.la
4687 SYSINIT_TARGET_WANTS += \
4692 # ------------------------------------------------------------------------------
4694 systemd_hostnamed_SOURCES = \
4695 src/hostname/hostnamed.c
4697 systemd_hostnamed_LDADD = \
4698 libsystemd-label.la \
4699 libsystemd-internal.la \
4700 libsystemd-shared.la
4702 rootlibexec_PROGRAMS += \
4705 nodist_systemunit_DATA += \
4706 units/systemd-hostnamed.service
4708 dist_systemunit_DATA_busnames += \
4709 units/org.freedesktop.hostname1.busname
4711 dist_dbuspolicy_DATA += \
4712 src/hostname/org.freedesktop.hostname1.conf
4714 dist_dbussystemservice_DATA += \
4715 src/hostname/org.freedesktop.hostname1.service
4717 polkitpolicy_files += \
4718 src/hostname/org.freedesktop.hostname1.policy
4720 SYSTEM_UNIT_ALIASES += \
4721 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4723 BUSNAMES_TARGET_WANTS += \
4724 org.freedesktop.hostname1.busname
4726 hostnamectl_SOURCES = \
4727 src/hostname/hostnamectl.c
4729 hostnamectl_LDADD = \
4730 libsystemd-internal.la \
4731 libsystemd-shared.la
4736 dist_bashcompletion_DATA += \
4737 shell-completion/bash/hostnamectl
4739 dist_zshcompletion_DATA += \
4740 shell-completion/zsh/_hostnamectl
4744 polkitpolicy_in_files += \
4745 src/hostname/org.freedesktop.hostname1.policy.in
4748 units/systemd-hostnamed.service.in
4750 # ------------------------------------------------------------------------------
4751 dist_systemunit_DATA_busnames += \
4752 units/org.freedesktop.systemd1.busname
4754 BUSNAMES_TARGET_WANTS += \
4755 org.freedesktop.systemd1.busname
4757 # ------------------------------------------------------------------------------
4759 systemd_localed_SOURCES = \
4760 src/locale/localed.c
4762 systemd_localed_LDADD = \
4763 libsystemd-label.la \
4764 libsystemd-internal.la \
4765 libsystemd-shared.la \
4768 systemd_localed_CFLAGS = \
4772 nodist_systemunit_DATA += \
4773 units/systemd-localed.service
4775 dist_systemunit_DATA_busnames += \
4776 units/org.freedesktop.locale1.busname
4778 rootlibexec_PROGRAMS += \
4781 dist_dbuspolicy_DATA += \
4782 src/locale/org.freedesktop.locale1.conf
4784 dist_dbussystemservice_DATA += \
4785 src/locale/org.freedesktop.locale1.service
4787 polkitpolicy_files += \
4788 src/locale/org.freedesktop.locale1.policy
4790 SYSTEM_UNIT_ALIASES += \
4791 systemd-localed.service dbus-org.freedesktop.locale1.service
4793 BUSNAMES_TARGET_WANTS += \
4794 org.freedesktop.locale1.busname
4796 dist_pkgdata_DATA += \
4797 src/locale/kbd-model-map
4799 dist_noinst_SCRIPT = \
4800 src/locale/generate-kbd-model-map
4802 localectl_SOURCES = \
4803 src/locale/localectl.c
4806 libsystemd-internal.la \
4807 libsystemd-shared.la
4812 dist_bashcompletion_DATA += \
4813 shell-completion/bash/localectl
4815 dist_zshcompletion_DATA += \
4816 shell-completion/zsh/_localectl
4820 .PHONY: update-kbd-model-map
4822 polkitpolicy_in_files += \
4823 src/locale/org.freedesktop.locale1.policy.in
4826 units/systemd-localed.service.in
4828 # ------------------------------------------------------------------------------
4830 systemd_timedated_SOURCES = \
4831 src/timedate/timedated.c
4833 systemd_timedated_LDADD = \
4834 libsystemd-label.la \
4835 libsystemd-internal.la \
4836 libsystemd-shared.la
4838 rootlibexec_PROGRAMS += \
4841 dist_dbussystemservice_DATA += \
4842 src/timedate/org.freedesktop.timedate1.service
4844 dist_dbuspolicy_DATA += \
4845 src/timedate/org.freedesktop.timedate1.conf
4847 nodist_systemunit_DATA += \
4848 units/systemd-timedated.service
4850 dist_systemunit_DATA_busnames += \
4851 units/org.freedesktop.timedate1.busname
4853 polkitpolicy_files += \
4854 src/timedate/org.freedesktop.timedate1.policy
4856 SYSTEM_UNIT_ALIASES += \
4857 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4859 BUSNAMES_TARGET_WANTS += \
4860 org.freedesktop.timedate1.busname
4862 timedatectl_SOURCES = \
4863 src/timedate/timedatectl.c
4865 timedatectl_LDADD = \
4866 libsystemd-internal.la \
4867 libsystemd-shared.la
4872 dist_bashcompletion_DATA += \
4873 shell-completion/bash/timedatectl
4875 dist_zshcompletion_DATA += \
4876 shell-completion/zsh/_timedatectl
4879 polkitpolicy_in_files += \
4880 src/timedate/org.freedesktop.timedate1.policy.in
4883 units/systemd-timedated.service.in
4885 # ------------------------------------------------------------------------------
4887 systemd_timesyncd_SOURCES = \
4888 src/timesync/timesyncd.c \
4889 src/timesync/timesyncd-manager.c \
4890 src/timesync/timesyncd-manager.h \
4891 src/timesync/timesyncd-conf.c \
4892 src/timesync/timesyncd-conf.h \
4893 src/timesync/timesyncd-server.c \
4894 src/timesync/timesyncd-server.h
4896 nodist_systemd_timesyncd_SOURCES = \
4897 src/timesync/timesyncd-gperf.c
4900 src/timesync/timesyncd-gperf.gperf
4903 src/timesync/timesyncd-gperf.c
4905 systemd_timesyncd_LDADD = \
4906 libsystemd-resolve.la \
4907 libsystemd-network.la \
4908 libsystemd-label.la \
4909 libsystemd-internal.la \
4910 libsystemd-shared.la \
4913 rootlibexec_PROGRAMS += \
4916 nodist_systemunit_DATA += \
4917 units/systemd-timesyncd.service
4919 GENERAL_ALIASES += \
4920 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4923 units/systemd-timesyncd.service.in
4925 nodist_pkgsysconf_DATA += \
4926 src/timesync/timesyncd.conf
4929 src/timesync/timesyncd.conf.in
4932 src/timesync/timesyncd.conf
4935 # ------------------------------------------------------------------------------
4937 libnss_myhostname_la_SOURCES = \
4938 src/nss-myhostname/nss-myhostname.sym \
4939 src/nss-myhostname/nss-myhostname.c
4941 libnss_myhostname_la_LDFLAGS = \
4948 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4950 libnss_myhostname_la_LIBADD = \
4951 libsystemd-shared.la \
4952 libsystemd-internal.la
4954 lib_LTLIBRARIES += \
4955 libnss_myhostname.la
4958 # ------------------------------------------------------------------------------
4960 systemd_machined_SOURCES = \
4961 src/machine/machined.c \
4962 src/machine/machined.h
4964 systemd_machined_LDADD = \
4965 libsystemd-machine-core.la
4967 rootlibexec_PROGRAMS += \
4970 libsystemd_machine_core_la_SOURCES = \
4971 src/machine/machined-dbus.c \
4972 src/machine/machine.c \
4973 src/machine/machine.h \
4974 src/machine/machine-dbus.c
4976 libsystemd_machine_core_la_LIBADD = \
4977 libsystemd-label.la \
4978 libsystemd-internal.la \
4979 libudev-internal.la \
4980 libsystemd-shared.la
4982 noinst_LTLIBRARIES += \
4983 libsystemd-machine-core.la
4985 machinectl_SOURCES = \
4986 src/machine/machinectl.c
4988 machinectl_LDADD = \
4989 libsystemd-internal.la \
4990 libsystemd-shared.la
4992 rootbin_PROGRAMS += \
4995 dist_bashcompletion_DATA += \
4996 shell-completion/bash/machinectl
4998 test_machine_tables_SOURCES = \
4999 src/machine/test-machine-tables.c
5001 test_machine_tables_LDADD = \
5002 libsystemd-machine-core.la
5007 nodist_systemunit_DATA += \
5008 units/systemd-machined.service
5010 dist_systemunit_DATA += \
5013 dist_systemunit_DATA_busnames += \
5014 units/org.freedesktop.machine1.busname
5016 dist_dbussystemservice_DATA += \
5017 src/machine/org.freedesktop.machine1.service
5019 dist_dbuspolicy_DATA += \
5020 src/machine/org.freedesktop.machine1.conf
5022 dist_zshcompletion_DATA += \
5023 shell-completion/zsh/_machinectl \
5024 shell-completion/zsh/_sd_machines
5026 SYSTEM_UNIT_ALIASES += \
5027 systemd-machined.service dbus-org.freedesktop.machine1.service
5029 BUSNAMES_TARGET_WANTS += \
5030 org.freedesktop.machine1.busname
5033 units/systemd-machined.service.in
5035 libnss_mymachines_la_SOURCES = \
5036 src/nss-mymachines/nss-mymachines.sym \
5037 src/nss-mymachines/nss-mymachines.c
5039 libnss_mymachines_la_LDFLAGS = \
5046 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5048 libnss_mymachines_la_LIBADD = \
5049 libsystemd-shared.la \
5050 libsystemd-internal.la
5052 lib_LTLIBRARIES += \
5053 libnss_mymachines.la
5056 # ------------------------------------------------------------------------------
5058 systemd_resolved_SOURCES = \
5059 src/resolve/resolved.c \
5060 src/resolve/resolved-manager.c \
5061 src/resolve/resolved-manager.h \
5062 src/resolve/resolved-conf.c \
5063 src/resolve/resolved-conf.h \
5064 src/resolve/resolved-bus.c \
5065 src/resolve/resolved-bus.h \
5066 src/resolve/resolved-link.h \
5067 src/resolve/resolved-link.c \
5068 src/resolve/resolved-def.h \
5069 src/resolve/resolved-dns-domain.h \
5070 src/resolve/resolved-dns-domain.c \
5071 src/resolve/resolved-dns-rr.h \
5072 src/resolve/resolved-dns-rr.c \
5073 src/resolve/resolved-dns-question.h \
5074 src/resolve/resolved-dns-question.c \
5075 src/resolve/resolved-dns-answer.h \
5076 src/resolve/resolved-dns-answer.c \
5077 src/resolve/resolved-dns-packet.h \
5078 src/resolve/resolved-dns-packet.c \
5079 src/resolve/resolved-dns-query.h \
5080 src/resolve/resolved-dns-query.c \
5081 src/resolve/resolved-dns-transaction.h \
5082 src/resolve/resolved-dns-transaction.c \
5083 src/resolve/resolved-dns-scope.h \
5084 src/resolve/resolved-dns-scope.c \
5085 src/resolve/resolved-dns-server.h \
5086 src/resolve/resolved-dns-server.c \
5087 src/resolve/resolved-dns-cache.h \
5088 src/resolve/resolved-dns-cache.c \
5089 src/resolve/resolved-dns-zone.h \
5090 src/resolve/resolved-dns-zone.c \
5091 src/resolve/resolved-dns-stream.h \
5092 src/resolve/resolved-dns-stream.c \
5093 src/resolve/dns-type.c \
5094 src/resolve/dns-type.h \
5095 src/resolve/dns_type-from-name.h \
5096 src/resolve/dns_type-to-name.h
5098 nodist_systemd_resolved_SOURCES = \
5099 src/resolve/resolved-gperf.c
5102 src/resolve/resolved-gperf.gperf \
5103 src/resolve/dns_type-from-name.gperf
5106 src/resolve/resolved-gperf.c
5108 systemd_resolved_LDADD = \
5109 libsystemd-network.la \
5110 libsystemd-label.la \
5111 libsystemd-internal.la \
5112 libsystemd-shared.la \
5116 rootlibexec_PROGRAMS += \
5119 nodist_systemunit_DATA += \
5120 units/systemd-resolved.service
5122 dist_systemunit_DATA_busnames += \
5123 units/org.freedesktop.resolve1.busname
5125 dist_dbuspolicy_DATA += \
5126 src/resolve/org.freedesktop.resolve1.conf
5128 dist_dbussystemservice_DATA += \
5129 src/resolve/org.freedesktop.resolve1.service
5132 units/systemd-resolved.service.in
5134 SYSTEM_UNIT_ALIASES += \
5135 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5137 BUSNAMES_TARGET_WANTS += \
5138 org.freedesktop.resolve1.busname
5140 GENERAL_ALIASES += \
5141 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5143 nodist_pkgsysconf_DATA += \
5144 src/resolve/resolved.conf
5147 src/resolve/resolved.conf.in
5150 src/resolve/resolved.conf
5155 test_dns_domain_SOURCES = \
5156 src/resolve/resolved-dns-domain.h \
5157 src/resolve/resolved-dns-domain.c \
5158 src/resolve/test-dns-domain.c
5160 test_dns_domain_LDADD = \
5161 libsystemd-network.la \
5162 libsystemd-label.la \
5163 libsystemd-internal.la \
5164 libsystemd-shared.la \
5167 libnss_resolve_la_SOURCES = \
5168 src/nss-resolve/nss-resolve.sym \
5169 src/nss-resolve/nss-resolve.c
5171 libnss_resolve_la_LDFLAGS = \
5178 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5180 libnss_resolve_la_LIBADD = \
5181 libsystemd-shared.la \
5182 libsystemd-internal.la
5184 lib_LTLIBRARIES += \
5187 systemd_resolve_host_SOURCES = \
5188 src/resolve-host/resolve-host.c \
5189 src/resolve/resolved-dns-packet.c \
5190 src/resolve/resolved-dns-packet.h \
5191 src/resolve/resolved-dns-rr.c \
5192 src/resolve/resolved-dns-rr.h \
5193 src/resolve/resolved-dns-answer.c \
5194 src/resolve/resolved-dns-answer.h \
5195 src/resolve/resolved-dns-question.c \
5196 src/resolve/resolved-dns-question.h \
5197 src/resolve/resolved-dns-domain.c \
5198 src/resolve/resolved-dns-domain.h \
5199 src/resolve/dns-type.c \
5200 src/resolve/dns-type.h \
5201 src/resolve/dns_type-from-name.h \
5202 src/resolve/dns_type-to-name.h
5204 systemd_resolve_host_LDADD = \
5205 libsystemd-internal.la \
5206 libsystemd-shared.la \
5210 rootlibexec_PROGRAMS += \
5211 systemd-resolve-host
5215 # ------------------------------------------------------------------------------
5217 rootlibexec_PROGRAMS += \
5220 systemd_networkd_SOURCES = \
5221 src/network/networkd.c
5223 systemd_networkd_LDADD = \
5224 libsystemd-networkd-core.la
5226 noinst_LTLIBRARIES += \
5227 libsystemd-networkd-core.la
5229 libsystemd_networkd_core_la_CFLAGS = \
5232 libsystemd_networkd_core_la_SOURCES = \
5233 src/libsystemd-network/network-internal.h \
5234 src/network/networkd.h \
5235 src/network/networkd-link.h \
5236 src/network/networkd-netdev.h \
5237 src/network/networkd-netdev-tunnel.h \
5238 src/network/networkd-netdev-veth.h \
5239 src/network/networkd-netdev-vxlan.h \
5240 src/network/networkd-netdev-vlan.h \
5241 src/network/networkd-netdev-macvlan.h \
5242 src/network/networkd-netdev-dummy.h \
5243 src/network/networkd-netdev-tuntap.h \
5244 src/network/networkd-netdev-bond.h \
5245 src/network/networkd-netdev-bridge.h \
5246 src/network/networkd-netdev.c \
5247 src/network/networkd-netdev-tunnel.c \
5248 src/network/networkd-netdev-veth.c \
5249 src/network/networkd-netdev-vxlan.c \
5250 src/network/networkd-netdev-vlan.c \
5251 src/network/networkd-netdev-macvlan.c \
5252 src/network/networkd-netdev-dummy.c \
5253 src/network/networkd-netdev-tuntap.c \
5254 src/network/networkd-netdev-bond.c \
5255 src/network/networkd-netdev-bridge.c \
5256 src/network/networkd-link.c \
5257 src/network/networkd-ipv4ll.c \
5258 src/network/networkd-dhcp4.c \
5259 src/network/networkd-dhcp6.c \
5260 src/network/networkd-network.c \
5261 src/network/networkd-address.c \
5262 src/network/networkd-route.c \
5263 src/network/networkd-manager.c \
5264 src/network/networkd-address-pool.c
5266 nodist_libsystemd_networkd_core_la_SOURCES = \
5267 src/network/networkd-network-gperf.c \
5268 src/network/networkd-netdev-gperf.c
5270 libsystemd_networkd_core_la_LIBADD = \
5271 libudev-internal.la \
5272 libsystemd-internal.la \
5273 libsystemd-network.la \
5274 libsystemd-label.la \
5275 libsystemd-shared.la
5277 rootlibexec_PROGRAMS += \
5278 systemd-networkd-wait-online
5280 systemd_networkd_wait_online_CFLAGS = \
5283 systemd_networkd_wait_online_SOURCES = \
5284 src/libsystemd-network/network-internal.h \
5285 src/network/networkd-wait-online.h \
5286 src/network/networkd-wait-online-link.h \
5287 src/network/networkd-wait-online.c \
5288 src/network/networkd-wait-online-manager.c \
5289 src/network/networkd-wait-online-link.c
5291 systemd_networkd_wait_online_LDADD = \
5292 libsystemd-network.la \
5293 libudev-internal.la \
5294 libsystemd-internal.la \
5295 libsystemd-shared.la
5297 rootbin_PROGRAMS += \
5300 networkctl_SOURCES = \
5301 src/network/networkctl.c
5303 networkctl_LDADD = \
5304 libsystemd-internal.la \
5305 libudev-internal.la \
5306 libsystemd-shared.la \
5307 libsystemd-network.la
5309 test_network_SOURCES = \
5310 src/network/test-network.c
5312 test_network_LDADD = \
5313 libsystemd-networkd-core.la
5315 test_network_tables_SOURCES = \
5316 src/network/test-network-tables.c \
5317 src/shared/test-tables.h
5319 test_network_tables_LDADD = \
5320 libsystemd-networkd-core.la \
5327 nodist_systemunit_DATA += \
5328 units/systemd-networkd.service \
5329 units/systemd-networkd-wait-online.service
5331 GENERAL_ALIASES += \
5332 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5333 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5336 src/network/networkd-network-gperf.gperf \
5337 src/network/networkd-netdev-gperf.gperf \
5338 units/systemd-networkd.service.in \
5339 units/systemd-networkd-wait-online.service.in
5342 src/network/networkd-network-gperf.c \
5343 src/network/networkd-netdev-gperf.c
5346 # ------------------------------------------------------------------------------
5348 systemd_logind_SOURCES = \
5349 src/login/logind.c \
5352 nodist_systemd_logind_SOURCES = \
5353 src/login/logind-gperf.c
5355 systemd_logind_LDADD = \
5356 libsystemd-logind-core.la
5358 libsystemd_logind_core_la_SOURCES = \
5359 src/login/logind-core.c \
5360 src/login/logind-device.c \
5361 src/login/logind-device.h \
5362 src/login/logind-button.c \
5363 src/login/logind-button.h \
5364 src/login/logind-action.c \
5365 src/login/logind-action.h \
5366 src/login/logind-seat.c \
5367 src/login/logind-seat.h \
5368 src/login/logind-session.c \
5369 src/login/logind-session.h \
5370 src/login/logind-session-device.c \
5371 src/login/logind-session-device.h \
5372 src/login/logind-user.c \
5373 src/login/logind-user.h \
5374 src/login/logind-inhibit.c \
5375 src/login/logind-inhibit.h \
5376 src/login/logind-dbus.c \
5377 src/login/logind-session-dbus.c \
5378 src/login/logind-seat-dbus.c \
5379 src/login/logind-user-dbus.c \
5380 src/login/logind-acl.h
5382 libsystemd_logind_core_la_LIBADD = \
5383 libsystemd-label.la \
5384 libsystemd-internal.la \
5385 libudev-internal.la \
5386 libsystemd-shared.la
5389 libsystemd_logind_core_la_SOURCES += \
5390 src/login/logind-acl.c
5392 libsystemd_logind_core_la_LIBADD += \
5396 noinst_LTLIBRARIES += \
5397 libsystemd-logind-core.la
5399 systemd_user_sessions_SOURCES = \
5400 src/login/user-sessions.c
5402 systemd_user_sessions_LDADD = \
5403 libsystemd-shared.la
5405 rootlibexec_PROGRAMS += \
5407 systemd-user-sessions
5409 loginctl_SOURCES = \
5410 src/login/loginctl.c \
5411 src/login/sysfs-show.c
5414 libsystemd-internal.la \
5415 libudev-internal.la \
5416 libsystemd-shared.la
5418 rootbin_PROGRAMS += \
5421 dist_bashcompletion_DATA += \
5422 shell-completion/bash/loginctl
5424 dist_zshcompletion_DATA += \
5425 shell-completion/zsh/_loginctl \
5426 shell-completion/zsh/_systemd-inhibit
5428 systemd_inhibit_SOURCES = \
5431 systemd_inhibit_LDADD = \
5432 libsystemd-internal.la \
5433 libsystemd-shared.la
5435 rootbin_PROGRAMS += \
5438 test_login_SOURCES = \
5439 src/libsystemd/sd-login/test-login.c
5441 test_login_LDADD = \
5442 libsystemd-internal.la \
5443 libsystemd-shared.la
5445 test_login_shared_SOURCES = \
5446 src/login/test-login-shared.c
5448 test_login_shared_LDADD = \
5449 libsystemd-internal.la \
5450 libsystemd-shared.la
5452 test_inhibit_SOURCES = \
5453 src/login/test-inhibit.c
5455 test_inhibit_LDADD = \
5456 libsystemd-internal.la \
5457 libsystemd-shared.la
5459 test_login_tables_SOURCES = \
5460 src/login/test-login-tables.c
5462 test_login_tables_LDADD = \
5463 libsystemd-logind-core.la
5474 pam_systemd_la_SOURCES = \
5475 src/login/pam_systemd.sym \
5476 src/login/pam_systemd.c
5478 pam_systemd_la_CFLAGS = \
5483 pam_systemd_la_LDFLAGS = \
5489 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5491 pam_systemd_la_LIBADD = \
5492 libsystemd-internal.la \
5493 libsystemd-shared.la \
5496 pamlib_LTLIBRARIES = \
5499 dist_pamconf_DATA = \
5500 src/login/systemd-user
5503 nodist_systemunit_DATA += \
5504 units/systemd-logind.service \
5505 units/systemd-user-sessions.service
5507 dist_systemunit_DATA += \
5510 dist_systemunit_DATA_busnames += \
5511 units/org.freedesktop.login1.busname
5513 dist_dbussystemservice_DATA += \
5514 src/login/org.freedesktop.login1.service
5516 dist_dbuspolicy_DATA += \
5517 src/login/org.freedesktop.login1.conf
5519 dist_pkgsysconf_DATA += \
5520 src/login/logind.conf
5522 polkitpolicy_files += \
5523 src/login/org.freedesktop.login1.policy
5528 MULTI_USER_TARGET_WANTS += \
5529 systemd-logind.service \
5530 systemd-user-sessions.service
5532 SYSTEM_UNIT_ALIASES += \
5533 systemd-logind.service dbus-org.freedesktop.login1.service
5535 BUSNAMES_TARGET_WANTS += \
5536 org.freedesktop.login1.busname
5538 dist_udevrules_DATA += \
5539 src/login/70-uaccess.rules \
5540 src/login/70-power-switch.rules
5542 nodist_udevrules_DATA += \
5543 src/login/71-seat.rules \
5544 src/login/73-seat-late.rules
5547 src/login/logind-gperf.c \
5548 src/login/71-seat.rules \
5549 src/login/73-seat-late.rules
5552 polkitpolicy_in_files += \
5553 src/login/org.freedesktop.login1.policy.in
5556 src/login/logind-gperf.gperf \
5557 src/login/71-seat.rules.in \
5558 src/login/73-seat-late.rules.in \
5559 units/systemd-logind.service.in \
5560 units/systemd-user-sessions.service.in
5562 # ------------------------------------------------------------------------------
5563 if HAVE_PYTHON_DEVEL
5564 pkgpyexec_LTLIBRARIES = \
5571 _journal_la_SOURCES = \
5572 src/python-systemd/_journal.c
5574 _journal_la_CFLAGS = \
5576 -fvisibility=default \
5577 $(PYTHON_DEVEL_CFLAGS)
5579 _journal_la_LDFLAGS = \
5585 _journal_la_LIBADD = \
5586 $(PYTHON_DEVEL_LIBS) \
5589 id128_la_SOURCES = \
5590 src/python-systemd/id128.c \
5591 src/python-systemd/pyutil.c \
5592 src/python-systemd/pyutil.h
5594 nodist_id128_la_SOURCES = \
5595 src/python-systemd/id128-constants.h
5599 -fvisibility=default \
5600 $(PYTHON_DEVEL_CFLAGS) \
5601 -I$(top_builddir)/src/python-systemd
5603 id128_la_LDFLAGS = \
5610 $(PYTHON_DEVEL_LIBS) \
5611 libsystemd-shared.la \
5614 _daemon_la_SOURCES = \
5615 src/python-systemd/_daemon.c \
5616 src/python-systemd/pyutil.c \
5617 src/python-systemd/pyutil.h
5619 _daemon_la_CFLAGS = \
5621 -fvisibility=default \
5622 $(PYTHON_DEVEL_CFLAGS) \
5623 -I$(top_builddir)/src/python-systemd
5625 _daemon_la_LDFLAGS = \
5631 _daemon_la_LIBADD = \
5632 $(PYTHON_DEVEL_LIBS) \
5633 libsystemd-shared.la \
5636 _reader_la_SOURCES = \
5637 src/python-systemd/_reader.c \
5638 src/python-systemd/pyutil.c \
5639 src/python-systemd/pyutil.h
5641 _reader_la_CFLAGS = \
5643 -fvisibility=default \
5644 $(PYTHON_DEVEL_CFLAGS)
5646 _reader_la_LDFLAGS = \
5652 _reader_la_LIBADD = \
5653 $(PYTHON_DEVEL_LIBS) \
5654 libsystemd-shared.la \
5657 login_la_SOURCES = \
5658 src/python-systemd/login.c \
5659 src/python-systemd/pyutil.c \
5660 src/python-systemd/pyutil.h
5664 -fvisibility=default \
5665 $(PYTHON_DEVEL_CFLAGS)
5667 login_la_LDFLAGS = \
5674 $(PYTHON_DEVEL_LIBS) \
5675 libsystemd-shared.la \
5678 dist_pkgpyexec_PYTHON = \
5679 src/python-systemd/journal.py \
5680 src/python-systemd/daemon.py \
5681 src/python-systemd/__init__.py
5683 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5684 $(AM_V_at)$(MKDIR_P) $(dir $@)
5685 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5688 src/python-systemd/id128-constants.h
5690 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5692 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5693 $(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/
5694 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5697 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5698 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5701 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5702 $(MAKE) DESTDIR="$$dir" install && \
5703 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5708 CLEAN_LOCAL_HOOKS += clean-sphinx
5710 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5713 -rm -rf docs/html/python-systemd/
5715 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5717 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5718 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5720 # ------------------------------------------------------------------------------
5721 if ENABLE_COMPAT_LIBS
5723 src/compat-libs/linkwarning.h
5725 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5726 $(AM_V_at)$(MKDIR_P) $(dir $@)
5727 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5730 libsystemd-journal.c \
5731 libsystemd-login.c \
5732 libsystemd-id128.c \
5735 libsystemd_journal_la_SOURCES = \
5736 libsystemd-journal.c \
5737 src/compat-libs/libsystemd-journal.sym
5739 libsystemd_journal_la_CPPFLAGS = \
5741 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5743 libsystemd_journal_la_LDFLAGS = \
5745 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5746 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5748 libsystemd_journal_la_LIBADD = \
5749 libsystemd-journal-internal.la \
5750 libsystemd-internal.la \
5751 libsystemd-shared.la
5753 libsystemd_login_la_SOURCES = \
5754 libsystemd-login.c \
5755 src/compat-libs/libsystemd-login.sym
5757 libsystemd_login_la_CPPFLAGS = \
5759 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5761 libsystemd_login_la_LDFLAGS = \
5763 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5764 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5766 libsystemd_login_la_LIBADD = \
5767 libsystemd-internal.la \
5768 libsystemd-shared.la
5770 libsystemd_id128_la_SOURCES = \
5771 libsystemd-id128.c \
5772 src/compat-libs/libsystemd-id128.sym
5774 libsystemd_id128_la_CPPFLAGS = \
5776 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5778 libsystemd_id128_la_LDFLAGS = \
5780 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5781 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5783 libsystemd_id128_la_LIBADD = \
5784 libsystemd-internal.la \
5785 libsystemd-shared.la
5787 libsystemd_daemon_la_SOURCES = \
5788 libsystemd-daemon.c \
5789 src/compat-libs/libsystemd-daemon.sym
5791 libsystemd_daemon_la_CPPFLAGS = \
5793 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5795 libsystemd_daemon_la_LDFLAGS = \
5797 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5798 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5800 libsystemd_daemon_la_LIBADD = \
5801 libsystemd-internal.la \
5802 libsystemd-shared.la
5804 lib_LTLIBRARIES += \
5805 libsystemd-journal.la \
5806 libsystemd-login.la \
5807 libsystemd-id128.la \
5808 libsystemd-daemon.la
5810 pkgconfiglib_DATA += \
5811 src/compat-libs/libsystemd-journal.pc \
5812 src/compat-libs/libsystemd-login.pc \
5813 src/compat-libs/libsystemd-id128.pc \
5814 src/compat-libs/libsystemd-daemon.pc
5816 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5817 compat-lib-install-hook:
5818 libname=libsystemd-login.so && $(move-to-rootlibdir)
5819 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5820 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5821 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5823 compat-lib-uninstall-hook:
5824 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5825 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5826 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5827 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5829 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5830 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5834 src/compat-libs/libsystemd-journal.pc.in \
5835 src/compat-libs/libsystemd-login.pc.in \
5836 src/compat-libs/libsystemd-id128.pc.in \
5837 src/compat-libs/libsystemd-daemon.pc.in
5839 # ------------------------------------------------------------------------------
5841 '|rootlibexecdir=$(rootlibexecdir)|' \
5842 '|rootbindir=$(rootbindir)|' \
5843 '|bindir=$(bindir)|' \
5844 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5845 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5846 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5847 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5848 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5849 '|pkgdatadir=$(pkgdatadir)|' \
5850 '|systemunitdir=$(systemunitdir)|' \
5851 '|userunitdir=$(userunitdir)|' \
5852 '|systempresetdir=$(systempresetdir)|' \
5853 '|userpresetdir=$(userpresetdir)|' \
5854 '|udevhwdbdir=$(udevhwdbdir)|' \
5855 '|udevrulesdir=$(udevrulesdir)|' \
5856 '|catalogdir=$(catalogdir)|' \
5857 '|tmpfilesdir=$(tmpfilesdir)|' \
5858 '|sysusersdir=$(sysusersdir)|' \
5859 '|sysctldir=$(sysctldir)|' \
5860 '|systemgeneratordir=$(systemgeneratordir)|' \
5861 '|usergeneratordir=$(usergeneratordir)|' \
5862 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5863 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5864 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5865 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5866 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5867 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5868 '|prefix=$(prefix)|' \
5869 '|exec_prefix=$(exec_prefix)|' \
5870 '|libdir=$(libdir)|' \
5871 '|includedir=$(includedir)|' \
5872 '|VERSION=$(VERSION)|' \
5873 '|rootprefix=$(rootprefix)|' \
5874 '|udevlibexecdir=$(udevlibexecdir)|' \
5875 '|SUSHELL=$(SUSHELL)|' \
5876 '|DEBUGTTY=$(DEBUGTTY)|' \
5879 '|MKDIR_P=$(MKDIR_P)|' \
5880 '|QUOTAON=$(QUOTAON)|' \
5881 '|QUOTACHECK=$(QUOTACHECK)|' \
5882 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5883 '|VARLOGDIR=$(varlogdir)|' \
5884 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5885 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5886 '|PYTHON=$(PYTHON)|' \
5887 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5888 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5889 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5890 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5891 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5892 '|TTY_GID=$(TTY_GID)|' \
5893 '|systemsleepdir=$(systemsleepdir)|' \
5894 '|systemshutdowndir=$(systemshutdowndir)|' \
5895 '|binfmtdir=$(binfmtdir)|' \
5896 '|modulesloaddir=$(modulesloaddir)|'
5899 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5900 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5909 sysctl.d/%: sysctl.d/%.in
5918 src/core/macros.%: src/core/macros.%.in
5921 src/%.policy.in: src/%.policy.in.in
5924 shell-completion/%: shell-completion/%.in
5935 $(AM_V_GEN)chmod +x $@
5937 src/%.c: src/%.gperf
5938 $(AM_V_at)$(MKDIR_P) $(dir $@)
5939 $(AM_V_GPERF)$(GPERF) < $< > $@
5942 $(AM_V_at)$(MKDIR_P) $(dir $@)
5943 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5945 sysusers.d/%: sysusers.d/%.m4
5946 $(AM_V_at)$(MKDIR_P) $(dir $@)
5947 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5949 tmpfiles.d/%: tmpfiles.d/%.m4
5950 $(AM_V_at)$(MKDIR_P) $(dir $@)
5951 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5955 $(AM_V_at)$(MKDIR_P) $(dir $@)
5956 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5958 units/user/%: units/%.m4
5959 $(AM_V_at)$(MKDIR_P) $(dir $@)
5960 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5963 nodist_polkitpolicy_DATA = \
5964 $(polkitpolicy_files) \
5965 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5969 $(polkitpolicy_in_files) \
5970 $(polkitpolicy_in_in_files)
5973 $(nodist_systemunit_DATA) \
5974 $(nodist_userunit_DATA) \
5975 $(pkgconfigdata_DATA) \
5976 $(pkgconfiglib_DATA) \
5977 $(nodist_polkitpolicy_DATA)
5979 # ------------------------------------------------------------------------------
5981 man/custom-entities.ent: configure.ac
5982 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5983 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5984 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5988 man/custom-entities.ent
5993 --stringparam man.output.quietly 1 \
5994 --stringparam funcsynopsis.style ansi \
5995 --stringparam man.authors.section.enabled 0 \
5996 --stringparam man.copyright.section.enabled 0 \
5997 --stringparam systemd.version $(VERSION) \
5998 --path '$(builddir)/man:$(srcdir)/man'
6000 XSLTPROC_PROCESS_MAN = \
6001 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6003 XSLTPROC_PROCESS_HTML = \
6004 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6006 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6007 $(XSLTPROC_PROCESS_MAN)
6009 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6010 $(XSLTPROC_PROCESS_MAN)
6012 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6013 $(XSLTPROC_PROCESS_MAN)
6015 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6016 $(XSLTPROC_PROCESS_MAN)
6018 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6019 $(XSLTPROC_PROCESS_MAN)
6021 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6022 $(XSLTPROC_PROCESS_HTML)
6025 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6031 man/custom-html.xsl \
6034 # ------------------------------------------------------------------------------
6037 docs/sysvinit/README
6042 docs/sysvinit/README: docs/sysvinit/README.in
6045 docs/var-log/README: docs/var-log/README.in
6049 docs/sysvinit/README \
6054 docs/sysvinit/README.in \
6055 docs/var-log/README.in
6057 SOCKETS_TARGET_WANTS += \
6058 systemd-initctl.socket \
6059 systemd-shutdownd.socket
6063 RUNLEVEL1_TARGET_WANTS += \
6064 systemd-update-utmp-runlevel.service
6065 RUNLEVEL2_TARGET_WANTS += \
6066 systemd-update-utmp-runlevel.service
6067 RUNLEVEL3_TARGET_WANTS += \
6068 systemd-update-utmp-runlevel.service
6069 RUNLEVEL4_TARGET_WANTS += \
6070 systemd-update-utmp-runlevel.service
6071 RUNLEVEL5_TARGET_WANTS += \
6072 systemd-update-utmp-runlevel.service
6075 SYSINIT_TARGET_WANTS += \
6076 systemd-update-utmp.service
6079 SYSINIT_TARGET_WANTS += \
6080 systemd-update-done.service
6082 LOCAL_FS_TARGET_WANTS += \
6083 systemd-remount-fs.service \
6086 MULTI_USER_TARGET_WANTS += \
6088 systemd-ask-password-wall.path
6090 SYSINIT_TARGET_WANTS += \
6091 dev-hugepages.mount \
6093 sys-kernel-config.mount \
6094 sys-kernel-debug.mount \
6095 sys-fs-fuse-connections.mount \
6096 systemd-sysctl.service \
6097 systemd-ask-password-console.path
6100 SYSTEM_UNIT_ALIASES += \
6101 poweroff.target runlevel0.target \
6102 rescue.target runlevel1.target \
6103 multi-user.target runlevel2.target \
6104 multi-user.target runlevel3.target \
6105 multi-user.target runlevel4.target \
6106 graphical.target runlevel5.target \
6107 reboot.target runlevel6.target
6110 SYSTEM_UNIT_ALIASES += \
6111 graphical.target default.target \
6112 reboot.target ctrl-alt-del.target \
6113 getty@.service autovt@.service
6115 USER_UNIT_ALIASES += \
6116 $(systemunitdir)/shutdown.target shutdown.target \
6117 $(systemunitdir)/sockets.target sockets.target \
6118 $(systemunitdir)/timers.target timers.target \
6119 $(systemunitdir)/paths.target paths.target \
6120 $(systemunitdir)/bluetooth.target bluetooth.target \
6121 $(systemunitdir)/printer.target printer.target \
6122 $(systemunitdir)/sound.target sound.target \
6123 $(systemunitdir)/smartcard.target smartcard.target
6126 USER_UNIT_ALIASES += \
6127 $(systemunitdir)/busnames.target busnames.target
6130 GENERAL_ALIASES += \
6131 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6132 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6133 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6134 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6138 $(systemunitdir)/runlevel1.target.wants \
6139 $(systemunitdir)/runlevel2.target.wants \
6140 $(systemunitdir)/runlevel3.target.wants \
6141 $(systemunitdir)/runlevel4.target.wants \
6142 $(systemunitdir)/runlevel5.target.wants
6146 $(prefix)/lib/modules-load.d \
6147 $(sysconfdir)/modules-load.d \
6148 $(prefix)/lib/systemd/network \
6149 $(sysconfdir)/systemd/network \
6150 $(prefix)/lib/sysctl.d \
6151 $(sysconfdir)/sysctl.d \
6152 $(prefix)/lib/kernel/install.d \
6153 $(sysconfdir)/kernel/install.d \
6154 $(systemshutdowndir) \
6156 $(systemgeneratordir) \
6157 $(usergeneratordir) \
6160 $(pkgsysconfdir)/system \
6161 $(pkgsysconfdir)/system/multi-user.target.wants \
6162 $(pkgsysconfdir)/system/getty.target.wants \
6163 $(pkgsysconfdir)/user \
6164 $(dbussessionservicedir) \
6165 $(sysconfdir)/xdg/systemd
6167 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6169 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6171 install-data-hook: $(INSTALL_DATA_HOOKS)
6173 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6175 clean-local: $(CLEAN_LOCAL_HOOKS)
6176 rm -rf $(abs_srcdir)/install-tree
6177 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6178 $(abs_srcdir)/hwdb/iab.txt
6180 DISTCHECK_CONFIGURE_FLAGS = \
6181 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6182 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6183 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6184 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6185 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6186 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6187 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6188 --with-rootprefix=$$dc_install_base \
6189 --disable-split-usr \
6191 --enable-compat-libs
6194 DISTCHECK_CONFIGURE_FLAGS += \
6195 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6196 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6198 DISTCHECK_CONFIGURE_FLAGS += \
6199 --with-sysvinit-path= \
6200 --with-sysvrcnd-path=
6204 DISTCHECK_CONFIGURE_FLAGS += \
6209 DISTCHECK_CONFIGURE_FLAGS += \
6214 # Require python when making dist
6216 .PHONY: dist-check-python
6219 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6223 dist-check-compat-libs:
6224 if !ENABLE_COMPAT_LIBS
6225 @echo "*** compat-libs must be enabled in order to make dist"
6229 dist: dist-check-python dist-check-compat-libs
6231 # check "broken" platforms limited toolchains for link breakage before we release
6234 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6238 ( cd $(top_srcdir)/hwdb && \
6239 wget -N http://www.linux-usb.org/usb.ids \
6240 http://pci-ids.ucw.cz/v2.2/pci.ids \
6241 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6242 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6245 .PHONY: kdbus-update
6247 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6248 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6252 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6254 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6256 upload: all check dist
6257 scp systemd-$(VERSION).tar.xz $(www_target)
6260 doc-sync: all destdir-sphinx
6261 gtkdoc-rebase --html-dir=docs/libudev/html --online
6262 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6263 gtkdoc-rebase --html-dir=docs/gudev/html --online
6264 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6265 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6266 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6270 scp man/*.html gardel:public/systemd-man/
6272 .PHONY: lennart-fedora
6274 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6276 .PHONY: install-tree
6278 rm -rf $(abs_srcdir)/install-tree
6279 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6280 tree $(abs_srcdir)/install-tree
6282 # Let's run all tests of the test suite, but under valgrind. Let's
6283 # exclude the one perl script we have in there
6284 .PHONY: valgrind-tests
6285 valgrind-tests: $(TESTS)
6286 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6287 if file $$f | grep -q shell; then \
6288 echo -e "$${x}Skipping non-binary $$f"; else \
6289 echo -e "$${x}Running $$f"; \
6290 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6295 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6297 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6298 $(AM_V_GEN)cat $^ > $@
6300 .PHONY: check-api-docs
6301 check-api-docs: exported man
6302 $(AM_V_GEN)for symbol in `cat exported` ; do \
6303 if test -f $(builddir)/man/$$symbol.html ; then \
6304 echo " Symbol $$symbol() is documented." ; \
6306 echo "‣ Symbol $$symbol() lacks documentation." ; \
6310 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6311 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6313 undefined defined: $(ALL_OBJECTS)
6314 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6315 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6316 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6322 .PHONY: check-api-unused
6323 check-api-unused: defined undefined exported
6324 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6326 .PHONY: check-includes
6327 check-includes: $(top_srcdir)/tools/check-includes.pl
6328 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6329 | xargs $(top_srcdir)/tools/check-includes.pl
6332 $(top_srcdir)/tools/check-includes.pl
6334 # Stupid test that everything purported to be exported really is
6335 define generate-sym-test
6336 $(AM_V_at)$(MKDIR_P) $(dir $@)
6337 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6338 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6339 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6340 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6341 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6342 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6343 $(AM_V_at)printf 'return 0; }\n' >> $@
6346 test-libsystemd-sym.c: \
6347 $(top_builddir)/src/libsystemd/libsystemd.sym \
6348 src/systemd/sd-journal.h \
6349 src/systemd/sd-daemon.h \
6350 src/systemd/sd-login.h \
6351 src/systemd/sd-bus.h \
6352 src/systemd/sd-utf8.h \
6353 src/systemd/sd-resolve.h \
6354 src/systemd/sd-path.h
6355 $(generate-sym-test)
6357 test-libudev-sym.c: \
6358 src/libudev/libudev.sym \
6360 $(generate-sym-test)
6362 test_libsystemd_sym_SOURCES = \
6363 test-libsystemd-sym.c
6364 test_libsystemd_sym_LDADD = \
6367 test_libudev_sym_SOURCES = \
6369 test_libudev_sym_CFLAGS = \
6371 -Wno-deprecated-declarations
6372 test_libudev_sym_LDADD = \
6376 $(test_libsystemd_sym_SOURCES) \
6377 $(test_libudev_sym_SOURCES)
6380 test-libsystemd-sym \
6385 cppcheck --enable=all -q $(top_srcdir)
6387 # Used to extract compile flags for YCM.
6392 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6395 tools/gdb-sd_dump_hashmaps.py