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 \
895 src/shared/btrfs-util.c \
896 src/shared/btrfs-util.h
899 libsystemd_shared_la_SOURCES += \
900 src/shared/utmp-wtmp.c
903 nodist_libsystemd_shared_la_SOURCES = \
904 src/shared/errno-from-name.h \
905 src/shared/errno-to-name.h \
906 src/shared/af-from-name.h \
907 src/shared/af-to-name.h \
908 src/shared/arphrd-from-name.h \
909 src/shared/arphrd-to-name.h \
910 src/shared/cap-from-name.h \
911 src/shared/cap-to-name.h
913 libsystemd_shared_la_CFLAGS = \
919 libsystemd_shared_la_LIBADD = \
922 # ------------------------------------------------------------------------------
923 noinst_LTLIBRARIES += \
926 libsystemd_units_la_SOURCES = \
927 src/shared/install.c \
928 src/shared/install.h \
929 src/shared/install-printf.c \
930 src/shared/install-printf.h \
931 src/shared/path-lookup.c \
932 src/shared/path-lookup.h \
933 src/shared/specifier.c \
934 src/shared/specifier.h
936 # ------------------------------------------------------------------------------
937 noinst_LTLIBRARIES += \
940 libsystemd_label_la_SOURCES = \
941 src/shared/socket-label.c \
944 src/shared/selinux-util.c \
945 src/shared/selinux-util.h \
946 src/shared/mkdir-label.c \
947 src/shared/ask-password-api.c \
948 src/shared/ask-password-api.h \
949 src/shared/switch-root.h \
950 src/shared/switch-root.c \
951 src/shared/fileio-label.c \
952 src/shared/fileio-label.h \
953 src/shared/dev-setup.c \
954 src/shared/dev-setup.h \
955 src/shared/dropin.c \
956 src/shared/dropin.h \
957 src/shared/condition.c \
958 src/shared/condition.h \
959 src/shared/generator.h \
960 src/shared/generator.c
962 libsystemd_label_la_CFLAGS = \
966 libsystemd_label_la_LIBADD = \
969 # -----------------------------------------------------------------------------
972 dist_systemunit_DATA += \
973 units/ldconfig.service
975 SYSINIT_TARGET_WANTS += \
979 # ------------------------------------------------------------------------------
982 noinst_LTLIBRARIES += \
983 libsystemd-seccomp.la
985 libsystemd_seccomp_la_SOURCES = \
986 src/shared/seccomp-util.h \
987 src/shared/seccomp-util.c
989 libsystemd_seccomp_la_CFLAGS = \
993 libsystemd_seccomp_la_LIBADD = \
997 # ------------------------------------------------------------------------------
998 noinst_LTLIBRARIES += \
1001 libsystemd_logs_la_SOURCES = \
1002 src/shared/logs-show.c \
1003 src/shared/logs-show.h
1005 # ------------------------------------------------------------------------------
1007 noinst_LTLIBRARIES += \
1010 libsystemd_acl_la_SOURCES = \
1011 src/shared/acl-util.c \
1012 src/shared/acl-util.h
1014 libsystemd_acl_la_CFLAGS = \
1018 libsystemd_acl_la_LIBADD = \
1022 # ------------------------------------------------------------------------------
1023 noinst_LTLIBRARIES += \
1026 libsystemd_core_la_SOURCES = \
1029 src/core/unit-printf.c \
1030 src/core/unit-printf.h \
1033 src/core/manager.c \
1034 src/core/manager.h \
1035 src/core/transaction.c \
1036 src/core/transaction.h \
1037 src/core/load-fragment.c \
1038 src/core/load-fragment.h \
1039 src/core/service.c \
1040 src/core/service.h \
1043 src/core/busname.c \
1044 src/core/busname.h \
1045 src/core/bus-common.c \
1046 src/core/bus-common.h \
1047 src/core/bus-endpoint.c \
1048 src/core/bus-endpoint.h \
1051 src/core/snapshot.c \
1052 src/core/snapshot.h \
1057 src/core/automount.c \
1058 src/core/automount.h \
1069 src/core/load-dropin.c \
1070 src/core/load-dropin.h \
1071 src/core/execute.c \
1072 src/core/execute.h \
1077 src/core/dbus-manager.c \
1078 src/core/dbus-manager.h \
1079 src/core/dbus-unit.c \
1080 src/core/dbus-unit.h \
1081 src/core/dbus-job.c \
1082 src/core/dbus-job.h \
1083 src/core/dbus-service.c \
1084 src/core/dbus-service.h \
1085 src/core/dbus-socket.c \
1086 src/core/dbus-socket.h \
1087 src/core/dbus-busname.c \
1088 src/core/dbus-busname.h \
1089 src/core/dbus-target.c \
1090 src/core/dbus-target.h \
1091 src/core/dbus-snapshot.c \
1092 src/core/dbus-snapshot.h \
1093 src/core/dbus-device.c \
1094 src/core/dbus-device.h \
1095 src/core/dbus-mount.c \
1096 src/core/dbus-mount.h \
1097 src/core/dbus-automount.c \
1098 src/core/dbus-automount.h \
1099 src/core/dbus-swap.c \
1100 src/core/dbus-swap.h \
1101 src/core/dbus-timer.c \
1102 src/core/dbus-timer.h \
1103 src/core/dbus-path.c \
1104 src/core/dbus-path.h \
1105 src/core/dbus-slice.c \
1106 src/core/dbus-slice.h \
1107 src/core/dbus-scope.c \
1108 src/core/dbus-scope.h \
1109 src/core/dbus-execute.c \
1110 src/core/dbus-execute.h \
1111 src/core/dbus-kill.c \
1112 src/core/dbus-kill.h \
1113 src/core/dbus-cgroup.c \
1114 src/core/dbus-cgroup.h \
1117 src/core/selinux-access.c \
1118 src/core/selinux-access.h \
1119 src/core/selinux-setup.c \
1120 src/core/selinux-setup.h \
1121 src/core/smack-setup.c \
1122 src/core/smack-setup.h \
1123 src/core/ima-setup.c \
1124 src/core/ima-setup.h \
1125 src/core/locale-setup.h \
1126 src/core/locale-setup.c \
1127 src/core/hostname-setup.c \
1128 src/core/hostname-setup.h \
1129 src/core/machine-id-setup.c \
1130 src/core/machine-id-setup.h \
1131 src/core/mount-setup.c \
1132 src/core/mount-setup.h \
1133 src/core/kmod-setup.c \
1134 src/core/kmod-setup.h \
1135 src/core/loopback-setup.h \
1136 src/core/loopback-setup.c \
1137 src/core/namespace.c \
1138 src/core/namespace.h \
1140 src/core/sysfs-show.h \
1141 src/core/killall.h \
1142 src/core/killall.c \
1143 src/core/audit-fd.c \
1144 src/core/audit-fd.h \
1145 src/core/show-status.c \
1146 src/core/show-status.h \
1147 src/core/failure-action.c \
1148 src/core/failure-action.h
1150 nodist_libsystemd_core_la_SOURCES = \
1151 src/core/load-fragment-gperf.c \
1152 src/core/load-fragment-gperf-nulstr.c
1154 libsystemd_core_la_CFLAGS = \
1159 $(APPARMOR_CFLAGS) \
1164 libsystemd_core_la_LIBADD = \
1165 libsystemd-units.la \
1166 libsystemd-label.la \
1167 libudev-internal.la \
1168 libsystemd-shared.la \
1169 libsystemd-internal.la \
1178 libsystemd_core_la_LIBADD += \
1179 libsystemd-seccomp.la
1182 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1183 $(AM_V_at)$(MKDIR_P) $(dir $@)
1184 $(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 ";" }' < $< > $@
1187 src/core/load-fragment-gperf.gperf.m4
1190 src/core/load-fragment-gperf.gperf \
1191 src/core/load-fragment-gperf.c \
1192 src/core/load-fragment-gperf-nulstr.c \
1193 src/shared/errno-list.txt \
1194 src/shared/errno-from-name.gperf \
1195 src/shared/af-list.txt \
1196 src/shared/af-from-name.gperf \
1197 src/shared/arphrd-list.txt \
1198 src/shared/arphrd-from-name.gperf \
1199 src/shared/cap-list.txt \
1200 src/shared/cap-from-name.gperf \
1201 src/resolve/dns_type-list.txt \
1202 src/resolve/dns_type-from-name.gperf
1205 src/shared/errno-from-name.h \
1206 src/shared/errno-to-name.h \
1207 src/shared/af-from-name.h \
1208 src/shared/af-to-name.h \
1209 src/shared/arphrd-from-name.h \
1210 src/shared/arphrd-to-name.h \
1211 src/shared/cap-from-name.h \
1212 src/shared/cap-to-name.h \
1213 src/resolve/dns_type-from-name.h \
1214 src/resolve/dns_type-to-name.h
1216 %-from-name.gperf: %-list.txt
1217 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1219 %-from-name.h: %-from-name.gperf
1220 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1223 src/shared/errno-list.txt:
1224 $(AM_V_at)$(MKDIR_P) $(dir $@)
1225 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1227 src/shared/errno-to-name.h: src/shared/errno-list.txt
1228 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1231 src/shared/af-list.txt:
1232 $(AM_V_at)$(MKDIR_P) $(dir $@)
1233 $(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; }' >$@
1235 src/shared/af-to-name.h: src/shared/af-list.txt
1236 $(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 "};"}' <$< >$@
1239 src/shared/arphrd-list.txt:
1240 $(AM_V_at)$(MKDIR_P) $(dir $@)
1241 $(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_//' >$@
1243 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1244 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1246 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1247 $(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 }' <$< >$@
1250 src/shared/cap-list.txt:
1251 $(AM_V_at)$(MKDIR_P) $(dir $@)
1252 $(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 >$@
1254 src/shared/cap-to-name.h: src/shared/cap-list.txt
1255 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1257 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1258 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1260 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1261 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1264 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1265 $(AM_V_at)$(MKDIR_P) $(dir $@)
1266 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1268 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1269 $(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" }' <$< >$@
1271 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1272 $(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 }' <$< >$@
1274 # ------------------------------------------------------------------------------
1283 libsystemd-core.la \
1286 dist_pkgsysconf_DATA += \
1287 src/core/system.conf \
1290 dist_dbuspolicy_DATA += \
1291 src/core/org.freedesktop.systemd1.conf
1293 dist_dbussystemservice_DATA += \
1294 src/core/org.freedesktop.systemd1.service
1296 polkitpolicy_in_in_files += \
1297 src/core/org.freedesktop.systemd1.policy.in.in
1299 pkgconfigdata_DATA = \
1302 nodist_rpmmacros_DATA = \
1303 src/core/macros.systemd
1306 src/core/systemd.pc.in \
1307 src/core/macros.systemd.in
1310 src/core/macros.systemd \
1311 src/core/org.freedesktop.systemd1.policy.in
1313 # ------------------------------------------------------------------------------
1357 test-strip-tab-ansi \
1389 test/daughter.service \
1394 test/grandchild.service \
1396 test/hello-after-sleep.target \
1397 test/hello.service \
1399 test/parent-deep.slice \
1402 test/sched_idle_bad.service \
1403 test/sched_idle_ok.service \
1404 test/sched_rr_bad.service \
1405 test/sched_rr_change.service \
1406 test/sched_rr_ok.service \
1407 test/shutdown.target \
1408 test/sleep.service \
1409 test/sockets.target \
1411 test/sysinit.target \
1412 test/testsuite.target \
1413 test/timers.target \
1414 test/unstoppable.service \
1415 test/path-changed.service \
1416 test/path-directorynotempty.service \
1417 test/path-existsglob.service \
1418 test/path-exists.service \
1419 test/path-makedirectory.service \
1420 test/path-modified.service \
1421 test/path-mycustomunit.service \
1422 test/path-service.service \
1423 test/path-changed.path \
1424 test/path-directorynotempty.path \
1425 test/path-existsglob.path \
1426 test/path-exists.path \
1427 test/path-makedirectory.path \
1428 test/path-modified.path \
1429 test/path-unit.path \
1430 test/exec-environment-empty.service \
1431 test/exec-environment-multiple.service \
1432 test/exec-environment.service \
1433 test/exec-group.service \
1434 test/exec-ignoresigpipe-no.service \
1435 test/exec-ignoresigpipe-yes.service \
1436 test/exec-personality-x86-64.service \
1437 test/exec-personality-x86.service \
1438 test/exec-privatedevices-no.service \
1439 test/exec-privatedevices-yes.service \
1440 test/exec-privatetmp-no.service \
1441 test/exec-privatetmp-yes.service \
1442 test/exec-systemcallerrornumber.service \
1443 test/exec-systemcallfilter-failing2.service \
1444 test/exec-systemcallfilter-failing.service \
1445 test/exec-systemcallfilter-not-failing2.service \
1446 test/exec-systemcallfilter-not-failing.service \
1447 test/exec-user.service \
1448 test/exec-workingdirectory.service \
1449 test/exec-umask-0177.service \
1450 test/exec-umask-default.service \
1451 test/bus-policy/hello.conf \
1452 test/bus-policy/methods.conf \
1453 test/bus-policy/ownerships.conf \
1454 test/bus-policy/signals.conf \
1455 test/bus-policy/check-own-rules.conf \
1456 test/bus-policy/many-rules.conf \
1457 test/bus-policy/test.conf
1461 src/test/test-helper.h
1463 test_device_nodes_SOURCES = \
1464 src/test/test-device-nodes.c
1466 test_device_nodes_LDADD = \
1467 libsystemd-shared.la
1469 test_engine_SOURCES = \
1470 src/test/test-engine.c
1472 test_engine_CFLAGS = \
1476 test_engine_LDADD = \
1477 libsystemd-core.la \
1480 test_job_type_SOURCES = \
1481 src/test/test-job-type.c
1483 test_job_type_CFLAGS = \
1487 test_job_type_LDADD = \
1488 libsystemd-core.la \
1501 test_loopback_SOURCES = \
1502 src/test/test-loopback.c
1504 test_loopback_LDADD = \
1507 test_hostname_SOURCES = \
1508 src/test/test-hostname.c
1510 test_hostname_LDADD = \
1517 test_boot_timestamp_SOURCES = \
1518 src/test/test-boot-timestamps.c
1520 test_boot_timestamp_LDADD = \
1521 libsystemd-shared.la
1524 test_unit_name_SOURCES = \
1525 src/test/test-unit-name.c
1527 test_unit_name_CFLAGS = \
1531 test_unit_name_LDADD = \
1532 libsystemd-core.la \
1535 test_unit_file_SOURCES = \
1536 src/test/test-unit-file.c
1538 test_unit_file_CFLAGS = \
1542 test_unit_file_LDADD = \
1543 libsystemd-core.la \
1546 test_utf8_SOURCES = \
1547 src/test/test-utf8.c
1550 libsystemd-shared.la
1552 test_capability_SOURCES = \
1553 src/test/test-capability.c
1555 test_capability_LDADD = \
1556 libsystemd-shared.la
1558 test_async_SOURCES = \
1559 src/test/test-async.c
1561 test_async_LDADD = \
1562 libsystemd-shared.la
1564 test_locale_util_SOURCES = \
1565 src/test/test-locale-util.c
1567 test_locale_util_LDADD = \
1568 libsystemd-shared.la
1570 test_copy_SOURCES = \
1571 src/test/test-copy.c
1574 libsystemd-shared.la
1576 test_condition_SOURCES = \
1577 src/test/test-condition.c
1579 test_condition_LDADD = \
1580 libsystemd-label.la \
1581 libsystemd-internal.la \
1582 libsystemd-shared.la
1584 test_fdset_SOURCES = \
1585 src/test/test-fdset.c
1587 test_fdset_LDADD = \
1588 libsystemd-shared.la \
1589 libsystemd-internal.la
1591 test_ratelimit_SOURCES = \
1592 src/test/test-ratelimit.c
1594 test_ratelimit_LDADD = \
1595 libsystemd-shared.la
1597 test_util_SOURCES = \
1598 src/test/test-util.c
1602 libsystemd-shared.la
1604 test_uid_range_SOURCES = \
1605 src/test/test-uid-range.c
1607 test_uid_range_LDADD = \
1608 libsystemd-shared.la
1610 test_cap_list_SOURCES = \
1611 src/test/test-cap-list.c
1613 test_cap_list_LDADD = \
1614 libsystemd-shared.la
1616 test_socket_util_SOURCES = \
1617 src/test/test-socket-util.c
1619 test_socket_util_LDADD = \
1620 libsystemd-shared.la
1622 test_ring_SOURCES = \
1623 src/test/test-ring.c
1626 libsystemd-shared.la
1628 test_barrier_SOURCES = \
1629 src/test/test-barrier.c
1631 test_barrier_LDADD = \
1632 libsystemd-shared.la
1634 test_pty_SOURCES = \
1640 test_tmpfiles_SOURCES = \
1641 src/test/test-tmpfiles.c
1643 test_tmpfiles_LDADD = \
1644 libsystemd-shared.la
1646 test_namespace_SOURCES = \
1647 src/test/test-namespace.c
1649 test_namespace_LDADD = \
1653 src/test/test-hashmap-ordered.c
1656 src/test/test-hashmap-ordered.c
1658 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1659 $(AM_V_at)$(MKDIR_P) $(dir $@)
1660 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1661 { if (!match($$0, "^#include")) \
1662 gsub(/hashmap/, "ordered_hashmap"); \
1663 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1664 gsub(/Hashmap/, "OrderedHashmap"); \
1667 nodist_test_hashmap_SOURCES = \
1668 src/test/test-hashmap-ordered.c
1670 test_hashmap_SOURCES = \
1671 src/test/test-hashmap.c \
1672 src/test/test-hashmap-plain.c
1674 test_hashmap_LDADD = \
1675 libsystemd-shared.la
1677 test_set_SOURCES = \
1681 libsystemd-shared.la
1683 test_xml_SOURCES = \
1687 libsystemd-shared.la
1689 test_list_SOURCES = \
1690 src/test/test-list.c
1693 libsystemd-shared.la
1695 test_unaligned_LDADD = \
1696 libsystemd-shared.la
1698 test_unaligned_SOURCES = \
1699 src/test/test-unaligned.c
1701 test_tables_SOURCES = \
1702 src/test/test-tables.c \
1703 src/shared/test-tables.h \
1704 src/bus-proxyd/bus-policy.c \
1705 src/bus-proxyd/bus-policy.h \
1706 src/journal/journald-server.c \
1707 src/journal/journald-server.h
1709 test_tables_CPPFLAGS = \
1711 -I$(top_srcdir)/src/bus-proxyd
1713 test_tables_CFLAGS = \
1717 test_tables_LDADD = \
1718 libsystemd-logs.la \
1719 libsystemd-journal-internal.la \
1720 libsystemd-journal-core.la \
1721 libsystemd-core.la \
1725 test_prioq_SOURCES = \
1726 src/test/test-prioq.c
1728 test_prioq_LDADD = \
1729 libsystemd-shared.la
1731 test_fileio_SOURCES = \
1732 src/test/test-fileio.c
1734 test_fileio_LDADD = \
1735 libsystemd-shared.la
1737 test_time_SOURCES = \
1738 src/test/test-time.c
1741 libsystemd-shared.la
1743 test_architecture_SOURCES = \
1744 src/test/test-architecture.c
1746 test_architecture_LDADD = \
1747 libsystemd-shared.la
1749 test_log_SOURCES = \
1753 libsystemd-shared.la
1755 test_ipcrm_SOURCES = \
1756 src/test/test-ipcrm.c
1758 test_ipcrm_LDADD = \
1759 libsystemd-shared.la \
1762 test_btrfs_SOURCES = \
1763 src/test/test-btrfs.c
1765 test_btrfs_LDADD = \
1766 libsystemd-shared.la
1768 test_rtnl_manual_SOURCES = \
1769 src/test/test-rtnl-manual.c
1771 test_rtnl_manual_CFLAGS = \
1775 test_rtnl_manual_LDADD = \
1776 libsystemd-internal.la \
1777 libsystemd-shared.la \
1780 test_ellipsize_SOURCES = \
1781 src/test/test-ellipsize.c
1783 test_ellipsize_LDADD = \
1784 libsystemd-shared.la
1786 test_date_SOURCES = \
1787 src/test/test-date.c
1790 libsystemd-shared.la
1792 test_sleep_SOURCES = \
1793 src/test/test-sleep.c
1795 test_sleep_LDADD = \
1798 test_replace_var_SOURCES = \
1799 src/test/test-replace-var.c
1801 test_replace_var_LDADD = \
1802 libsystemd-shared.la
1804 test_calendarspec_SOURCES = \
1805 src/test/test-calendarspec.c
1807 test_calendarspec_LDADD = \
1808 libsystemd-shared.la
1810 test_strip_tab_ansi_SOURCES = \
1811 src/test/test-strip-tab-ansi.c
1813 test_strip_tab_ansi_LDADD = \
1814 libsystemd-shared.la
1816 test_daemon_SOURCES = \
1817 src/test/test-daemon.c
1819 test_daemon_LDADD = \
1820 libsystemd-internal.la \
1821 libsystemd-shared.la
1823 test_cgroup_SOURCES = \
1824 src/test/test-cgroup.c
1826 test_cgroup_LDADD = \
1827 libsystemd-label.la \
1828 libsystemd-shared.la \
1829 libsystemd-internal.la
1831 test_cgroup_mask_SOURCES = \
1832 src/test/test-cgroup-mask.c
1834 test_cgroup_mask_CPPFLAGS = \
1837 test_cgroup_mask_CFLAGS = \
1841 test_cgroup_mask_LDADD = \
1842 libsystemd-core.la \
1845 test_cgroup_util_SOURCES = \
1846 src/test/test-cgroup-util.c
1848 test_cgroup_util_LDADD = \
1849 libsystemd-label.la \
1850 libsystemd-internal.la \
1851 libsystemd-shared.la
1853 test_env_replace_SOURCES = \
1854 src/test/test-env-replace.c
1856 test_env_replace_LDADD = \
1857 libsystemd-shared.la
1859 test_strbuf_SOURCES = \
1860 src/test/test-strbuf.c
1862 test_strbuf_LDADD = \
1863 libsystemd-shared.la
1865 test_strv_SOURCES = \
1866 src/test/test-strv.c
1869 libsystemd-units.la \
1870 libsystemd-internal.la \
1871 libsystemd-shared.la
1873 test_path_util_SOURCES = \
1874 src/test/test-path-util.c
1876 test_path_util_LDADD = \
1877 libsystemd-shared.la
1879 test_path_SOURCES = \
1880 src/test/test-path.c
1882 test_path_CFLAGS = \
1888 test_execute_SOURCES = \
1889 src/test/test-execute.c
1891 test_execute_CFLAGS = \
1894 test_execute_LDADD = \
1897 test_strxcpyx_SOURCES = \
1898 src/test/test-strxcpyx.c
1900 test_strxcpyx_LDADD = \
1901 libsystemd-shared.la
1903 test_install_SOURCES = \
1904 src/test/test-install.c
1906 test_install_LDADD = \
1907 libsystemd-units.la \
1908 libsystemd-label.la \
1909 libsystemd-shared.la \
1910 libsystemd-internal.la
1912 test_watchdog_SOURCES = \
1913 src/test/test-watchdog.c
1915 test_watchdog_LDADD = \
1916 libsystemd-shared.la
1918 test_sched_prio_SOURCES = \
1919 src/test/test-sched-prio.c
1921 test_sched_prio_CPPFLAGS = \
1924 test_sched_prio_CFLAGS = \
1928 test_sched_prio_LDADD = \
1929 libsystemd-core.la \
1932 test_conf_files_SOURCES = \
1933 src/test/test-conf-files.c
1935 test_conf_files_LDADD = \
1936 libsystemd-shared.la
1938 test_bus_policy_SOURCES = \
1939 src/bus-proxyd/test-bus-policy.c \
1940 src/bus-proxyd/bus-policy.c \
1941 src/bus-proxyd/bus-policy.h
1943 test_bus_policy_LDADD = \
1944 libsystemd-internal.la \
1945 libsystemd-shared.la
1947 # ------------------------------------------------------------------------------
1948 ## .PHONY so it always rebuilds it
1949 .PHONY: coverage lcov-run lcov-report coverage-sync
1951 # run lcov from scratch, always
1956 coverage_dir = coverage
1957 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1960 # reset run coverage tests
1962 @rm -rf $(coverage_dir)
1963 lcov $(coverage_opts) --zerocounters
1966 # generate report based on current coverage data
1968 $(MKDIR_P) $(coverage_dir)
1969 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1970 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1971 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1972 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1973 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1975 # lcov doesn't work properly with vpath builds, make sure that bad
1976 # output is not uploaded by mistake.
1977 coverage-sync: coverage
1978 test "$(builddir)" = "$(srcdir)"
1979 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1982 lcov-run lcov-report:
1983 echo "Need to reconfigure with --enable-coverage"
1986 # ------------------------------------------------------------------------------
1987 systemd_analyze_SOURCES = \
1988 src/analyze/analyze.c \
1989 src/analyze/analyze-verify.c \
1990 src/analyze/analyze-verify.h
1992 systemd_verify_CFLAGS = \
1996 systemd_analyze_LDADD = \
1997 libsystemd-core.la \
1998 libsystemd-internal.la \
1999 libsystemd-shared.la \
2002 # ------------------------------------------------------------------------------
2003 systemd_initctl_SOURCES = \
2004 src/initctl/initctl.c
2006 systemd_initctl_LDADD = \
2007 libsystemd-internal.la \
2008 libsystemd-shared.la
2010 # ------------------------------------------------------------------------------
2011 systemd_update_utmp_SOURCES = \
2012 src/update-utmp/update-utmp.c
2014 systemd_update_utmp_CFLAGS = \
2018 systemd_update_utmp_LDADD = \
2019 libsystemd-internal.la \
2020 libsystemd-shared.la \
2023 # ------------------------------------------------------------------------------
2024 systemd_update_done_SOURCES = \
2025 src/update-done/update-done.c
2027 systemd_update_done_LDADD = \
2028 libsystemd-internal.la \
2029 libsystemd-label.la \
2030 libsystemd-shared.la
2032 # ------------------------------------------------------------------------------
2033 systemd_shutdownd_SOURCES = \
2034 src/shutdownd/shutdownd.c
2036 systemd_shutdownd_LDADD = \
2037 libsystemd-label.la \
2038 libsystemd-internal.la \
2039 libsystemd-shared.la
2042 src/systemd/sd-shutdown.h
2044 # ------------------------------------------------------------------------------
2045 systemd_shutdown_SOURCES = \
2048 src/core/shutdown.c \
2049 src/core/mount-setup.c \
2050 src/core/mount-setup.h \
2051 src/core/killall.h \
2054 systemd_shutdown_LDADD = \
2055 libsystemd-label.la \
2056 libudev-internal.la \
2057 libsystemd-shared.la
2059 # ------------------------------------------------------------------------------
2061 systemd_modules_load_SOURCES = \
2062 src/modules-load/modules-load.c
2064 systemd_modules_load_CFLAGS = \
2068 systemd_modules_load_LDADD = \
2069 libsystemd-shared.la \
2072 rootlibexec_PROGRAMS += \
2073 systemd-modules-load
2075 nodist_systemunit_DATA += \
2076 units/systemd-modules-load.service
2078 SYSINIT_TARGET_WANTS += \
2079 systemd-modules-load.service
2082 nodist_systemunit_DATA += \
2083 units/kmod-static-nodes.service
2085 SYSINIT_TARGET_WANTS += \
2086 kmod-static-nodes.service
2091 units/systemd-modules-load.service.in \
2092 units/kmod-static-nodes.service.in
2094 # ------------------------------------------------------------------------------
2096 systemd_tmpfiles_SOURCES = \
2097 src/tmpfiles/tmpfiles.c
2099 systemd_tmpfiles_LDADD = \
2100 libsystemd-units.la \
2101 libsystemd-label.la \
2102 libsystemd-internal.la \
2103 libsystemd-shared.la
2105 rootbin_PROGRAMS += \
2108 dist_systemunit_DATA += \
2109 units/systemd-tmpfiles-clean.timer
2111 nodist_systemunit_DATA += \
2112 units/systemd-tmpfiles-setup-dev.service \
2113 units/systemd-tmpfiles-setup.service \
2114 units/systemd-tmpfiles-clean.service
2116 nodist_tmpfiles_DATA = \
2119 dist_tmpfiles_DATA = \
2120 tmpfiles.d/systemd.conf \
2121 tmpfiles.d/systemd-nologin.conf \
2122 tmpfiles.d/tmp.conf \
2123 tmpfiles.d/x11.conf \
2127 dist_tmpfiles_DATA += \
2128 tmpfiles.d/legacy.conf
2131 SYSINIT_TARGET_WANTS += \
2132 systemd-tmpfiles-setup-dev.service \
2133 systemd-tmpfiles-setup.service
2135 dist_zshcompletion_DATA += \
2136 shell-completion/zsh/_systemd-tmpfiles
2138 TIMERS_TARGET_WANTS += \
2139 systemd-tmpfiles-clean.timer
2143 $(sysconfdir)/tmpfiles.d
2147 tmpfiles.d/etc.conf.m4 \
2148 units/systemd-tmpfiles-setup-dev.service.in \
2149 units/systemd-tmpfiles-setup.service.in \
2150 units/systemd-tmpfiles-clean.service.in
2155 # ------------------------------------------------------------------------------
2157 systemd_sysusers_SOURCES = \
2158 src/sysusers/sysusers.c
2160 systemd_sysusers_LDADD = \
2161 libsystemd-units.la \
2162 libsystemd-label.la \
2163 libsystemd-internal.la \
2164 libsystemd-shared.la
2166 rootbin_PROGRAMS += \
2169 nodist_systemunit_DATA += \
2170 units/systemd-sysusers.service
2172 SYSINIT_TARGET_WANTS += \
2173 systemd-sysusers.service
2175 dist_sysusers_DATA = \
2176 sysusers.d/systemd.conf
2178 nodist_sysusers_DATA = \
2179 sysusers.d/basic.conf
2182 units/systemd-sysusers.service.in \
2183 sysusers.d/basic.conf.in
2186 sysusers.d/basic.conf
2192 # ------------------------------------------------------------------------------
2193 dist_factory_etc_DATA = \
2194 factory/etc/nsswitch.conf
2197 dist_factory_pam_DATA = \
2198 factory/etc/pam.d/system-auth \
2199 factory/etc/pam.d/other
2202 # ------------------------------------------------------------------------------
2204 systemd_firstboot_SOURCES = \
2205 src/firstboot/firstboot.c
2207 systemd_firstboot_LDADD = \
2208 libsystemd-units.la \
2209 libsystemd-label.la \
2210 libsystemd-internal.la \
2211 libsystemd-shared.la \
2214 rootbin_PROGRAMS += \
2217 nodist_systemunit_DATA += \
2218 units/systemd-firstboot.service
2221 units/systemd-firstboot.service.in
2223 SYSINIT_TARGET_WANTS += \
2224 systemd-firstboot.service
2227 # ------------------------------------------------------------------------------
2228 systemd_machine_id_setup_SOURCES = \
2229 src/machine-id-setup/machine-id-setup-main.c \
2230 src/core/machine-id-setup.c \
2231 src/core/machine-id-setup.h
2233 systemd_machine_id_setup_LDADD = \
2234 libsystemd-label.la \
2235 libsystemd-internal.la \
2236 libsystemd-shared.la
2238 # ------------------------------------------------------------------------------
2239 systemd_sysctl_SOURCES = \
2242 systemd_sysctl_LDADD = \
2243 libsystemd-shared.la
2245 # ------------------------------------------------------------------------------
2246 systemd_sleep_SOURCES = \
2249 systemd_sleep_LDADD = \
2250 libsystemd-shared.la
2252 # ------------------------------------------------------------------------------
2253 systemd_fsck_SOURCES = \
2256 systemd_fsck_LDADD = \
2257 libsystemd-internal.la \
2258 libudev-internal.la \
2259 libsystemd-shared.la
2261 # ------------------------------------------------------------------------------
2262 systemd_machine_id_commit_SOURCES = \
2263 src/machine-id-commit/machine-id-commit.c \
2264 src/core/machine-id-setup.c \
2265 src/core/machine-id-setup.h
2267 systemd_machine_id_commit_LDADD = \
2268 libsystemd-label.la \
2269 libsystemd-internal.la \
2270 libsystemd-shared.la
2272 SYSINIT_TARGET_WANTS += \
2273 systemd-machine-id-commit.service
2275 # ------------------------------------------------------------------------------
2276 systemd_ac_power_SOURCES = \
2277 src/ac-power/ac-power.c
2279 systemd_ac_power_LDADD = \
2280 libudev-internal.la \
2281 libsystemd-shared.la
2283 # ------------------------------------------------------------------------------
2284 systemd_detect_virt_SOURCES = \
2285 src/detect-virt/detect-virt.c
2287 systemd_detect_virt_LDADD = \
2288 libsystemd-shared.la
2290 INSTALL_EXEC_HOOKS += \
2291 systemd-detect-virt-install-hook
2293 # ------------------------------------------------------------------------------
2294 systemd_delta_SOURCES = \
2297 systemd_delta_LDADD = \
2298 libsystemd-shared.la
2300 # ------------------------------------------------------------------------------
2301 systemd_getty_generator_SOURCES = \
2302 src/getty-generator/getty-generator.c
2304 systemd_getty_generator_LDADD = \
2305 libsystemd-label.la \
2306 libsystemd-shared.la
2308 # ------------------------------------------------------------------------------
2309 systemd_debug_generator_SOURCES = \
2310 src/debug-generator/debug-generator.c
2312 systemd_debug_generator_LDADD = \
2313 libsystemd-label.la \
2314 libsystemd-shared.la
2316 # ------------------------------------------------------------------------------
2317 systemd_fstab_generator_SOURCES = \
2318 src/fstab-generator/fstab-generator.c \
2319 src/core/mount-setup.c
2321 systemd_fstab_generator_LDADD = \
2322 libsystemd-label.la \
2323 libsystemd-shared.la
2325 # ------------------------------------------------------------------------------
2326 systemd_system_update_generator_SOURCES = \
2327 src/system-update-generator/system-update-generator.c
2329 systemd_system_update_generator_LDADD = \
2330 libsystemd-label.la \
2331 libsystemd-shared.la
2333 # ------------------------------------------------------------------------------
2335 systemgenerator_PROGRAMS += \
2336 systemd-hibernate-resume-generator
2338 rootlibexec_PROGRAMS += \
2339 systemd-hibernate-resume
2341 systemd_hibernate_resume_SOURCES = \
2342 src/hibernate-resume/hibernate-resume.c
2344 systemd_hibernate_resume_LDADD = \
2345 libsystemd-internal.la \
2346 libsystemd-shared.la
2348 systemd_hibernate_resume_generator_SOURCES = \
2349 src/hibernate-resume/hibernate-resume-generator.c
2351 systemd_hibernate_resume_generator_LDADD = \
2352 libsystemd-label.la \
2353 libsystemd-shared.la
2356 units/systemd-hibernate.service.in \
2357 units/systemd-hibernate-resume@.service.in \
2358 units/systemd-hybrid-sleep.service.in
2360 dist_systemunit_DATA += \
2361 units/hibernate.target \
2362 units/hybrid-sleep.target
2364 nodist_systemunit_DATA += \
2365 units/systemd-hibernate.service \
2366 units/systemd-hibernate-resume@.service \
2367 units/systemd-hybrid-sleep.service
2370 # ------------------------------------------------------------------------------
2372 systemgenerator_PROGRAMS += \
2373 systemd-efi-boot-generator
2375 systemd_efi_boot_generator_SOURCES = \
2376 src/efi-boot-generator/efi-boot-generator.c
2378 systemd_efi_boot_generator_LDADD = \
2379 libsystemd-label.la \
2380 libsystemd-shared.la
2382 # ------------------------------------------------------------------------------
2385 src/boot/boot-loader.h \
2386 src/boot/bootctl.c \
2387 src/boot/boot-loader.c \
2391 libsystemd-shared.la \
2392 libsystemd-internal.la
2397 dist_bashcompletion_DATA += \
2398 shell-completion/bash/bootctl
2400 dist_zshcompletion_DATA += \
2401 shell-completion/zsh/_bootctl
2405 # ------------------------------------------------------------------------------
2407 systemgenerator_PROGRAMS += \
2408 systemd-gpt-auto-generator
2410 systemd_gpt_auto_generator_SOURCES = \
2411 src/gpt-auto-generator/gpt-auto-generator.c \
2412 src/shared/blkid-util.h
2414 systemd_gpt_auto_generator_LDADD = \
2415 libsystemd-label.la \
2416 libsystemd-internal.la \
2417 libudev-internal.la \
2418 libsystemd-shared.la \
2421 systemd_gpt_auto_generator_CFLAGS = \
2426 # ------------------------------------------------------------------------------
2428 systemgenerator_PROGRAMS += \
2429 systemd-dbus1-generator
2431 systemd_dbus1_generator_SOURCES = \
2432 src/dbus1-generator/dbus1-generator.c
2434 systemd_dbus1_generator_LDADD = \
2435 libsystemd-label.la \
2436 libsystemd-internal.la \
2437 libsystemd-shared.la
2439 dbus1-generator-install-hook:
2440 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2441 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2442 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2444 dbus1-generator-uninstall-hook:
2445 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2447 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2448 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2451 # ------------------------------------------------------------------------------
2452 systemd_sysv_generator_SOURCES = \
2453 src/sysv-generator/sysv-generator.c
2455 systemd_sysv_generator_LDADD = \
2456 libsystemd-core.la \
2457 libsystemd-label.la \
2458 libsystemd-shared.la
2460 # ------------------------------------------------------------------------------
2461 systemd_rc_local_generator_SOURCES = \
2462 src/rc-local-generator/rc-local-generator.c
2464 systemd_rc_local_generator_LDADD = \
2465 libsystemd-label.la \
2466 libsystemd-shared.la
2468 # ------------------------------------------------------------------------------
2469 systemd_remount_fs_SOURCES = \
2470 src/remount-fs/remount-fs.c \
2471 src/core/mount-setup.c \
2472 src/core/mount-setup.h
2474 systemd_remount_fs_LDADD = \
2475 libsystemd-label.la \
2476 libsystemd-shared.la
2478 # ------------------------------------------------------------------------------
2479 systemd_cgroups_agent_SOURCES = \
2480 src/cgroups-agent/cgroups-agent.c
2482 systemd_cgroups_agent_LDADD = \
2483 libsystemd-internal.la \
2484 libsystemd-shared.la
2486 # ------------------------------------------------------------------------------
2487 systemd_escape_SOURCES = \
2490 systemd_escape_LDADD = \
2491 libsystemd-shared.la
2493 # -----------------------------------------------------------------------------
2494 systemctl_SOURCES = \
2495 src/systemctl/systemctl.c
2498 libsystemd-units.la \
2499 libsystemd-label.la \
2500 libsystemd-internal.la \
2501 libsystemd-logs.la \
2502 libsystemd-journal-internal.la \
2503 libsystemd-shared.la
2505 # ------------------------------------------------------------------------------
2506 systemd_notify_SOURCES = \
2509 systemd_notify_LDADD = \
2510 libsystemd-internal.la \
2511 libsystemd-shared.la
2513 # ------------------------------------------------------------------------------
2514 systemd_path_SOURCES = \
2517 systemd_path_LDADD = \
2518 libsystemd-internal.la \
2519 libsystemd-shared.la
2521 # ------------------------------------------------------------------------------
2522 systemd_ask_password_SOURCES = \
2523 src/ask-password/ask-password.c
2525 systemd_ask_password_LDADD = \
2526 libsystemd-label.la \
2527 libsystemd-shared.la
2529 # ------------------------------------------------------------------------------
2530 systemd_reply_password_SOURCES = \
2531 src/reply-password/reply-password.c
2533 systemd_reply_password_LDADD = \
2534 libsystemd-shared.la
2536 # ------------------------------------------------------------------------------
2537 systemd_cgls_SOURCES = \
2540 systemd_cgls_LDADD = \
2541 libsystemd-internal.la \
2542 libsystemd-shared.la
2544 # ------------------------------------------------------------------------------
2545 systemd_cgtop_SOURCES = \
2548 systemd_cgtop_LDADD = \
2549 libsystemd-shared.la
2551 # ------------------------------------------------------------------------------
2552 systemd_nspawn_SOURCES = \
2553 src/nspawn/nspawn.c \
2554 src/core/mount-setup.c \
2555 src/core/mount-setup.h \
2556 src/core/loopback-setup.c \
2557 src/core/loopback-setup.h
2559 systemd_nspawn_CFLAGS = \
2564 systemd_nspawn_LDADD = \
2565 libsystemd-label.la \
2566 libsystemd-internal.la \
2567 libudev-internal.la \
2568 libsystemd-shared.la \
2572 systemd_nspawn_LDADD += \
2573 libsystemd-seccomp.la \
2577 # ------------------------------------------------------------------------------
2578 systemd_run_SOURCES = \
2581 systemd_run_LDADD = \
2582 libsystemd-label.la \
2583 libsystemd-internal.la \
2584 libsystemd-shared.la
2586 # ------------------------------------------------------------------------------
2587 systemd_bus_proxyd_SOURCES = \
2588 src/bus-proxyd/bus-proxyd.c \
2589 src/bus-proxyd/bus-policy.c \
2590 src/bus-proxyd/bus-policy.h
2592 systemd_bus_proxyd_LDADD = \
2593 libsystemd-internal.la \
2594 libsystemd-shared.la
2596 bus-proxyd-install-hook:
2597 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2598 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2599 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2601 bus-proxyd-uninstall-hook:
2602 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2604 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2605 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2608 nodist_systemunit_DATA += \
2609 units/systemd-bus-proxyd@.service
2611 dist_systemunit_DATA += \
2612 units/systemd-bus-proxyd.socket
2614 nodist_userunit_DATA += \
2615 units/user/systemd-bus-proxyd@.service
2617 dist_userunit_DATA += \
2618 units/user/systemd-bus-proxyd.socket
2622 units/systemd-bus-proxyd@.service.m4.in \
2623 units/user/systemd-bus-proxyd@.service.in
2626 units/systemd-bus-proxyd@.service.m4
2629 bus-proxyd-set-cap-hook:
2630 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2632 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2635 # ------------------------------------------------------------------------------
2636 systemd_tty_ask_password_agent_SOURCES = \
2637 src/tty-ask-password-agent/tty-ask-password-agent.c
2639 systemd_tty_ask_password_agent_LDADD = \
2640 libsystemd-label.la \
2641 libsystemd-shared.la
2643 # ------------------------------------------------------------------------------
2644 libsystemd_internal_la_SOURCES = \
2645 src/systemd/sd-bus.h \
2646 src/systemd/sd-bus-protocol.h \
2647 src/systemd/sd-bus-vtable.h \
2648 src/systemd/sd-utf8.h \
2649 src/systemd/sd-event.h \
2650 src/systemd/sd-rtnl.h \
2651 src/systemd/sd-resolve.h \
2652 src/systemd/sd-login.h \
2653 src/systemd/sd-id128.h \
2654 src/systemd/sd-daemon.h \
2655 src/systemd/sd-path.h \
2656 src/systemd/sd-network.h \
2657 src/systemd/sd-hwdb.h \
2658 src/libsystemd/sd-bus/sd-bus.c \
2659 src/libsystemd/sd-bus/bus-control.c \
2660 src/libsystemd/sd-bus/bus-control.h \
2661 src/libsystemd/sd-bus/bus-error.c \
2662 src/libsystemd/sd-bus/bus-error.h \
2663 src/libsystemd/sd-bus/bus-common-errors.h \
2664 src/libsystemd/sd-bus/bus-common-errors.c \
2665 src/libsystemd/sd-bus/bus-internal.c \
2666 src/libsystemd/sd-bus/bus-internal.h \
2667 src/libsystemd/sd-bus/bus-socket.c \
2668 src/libsystemd/sd-bus/bus-socket.h \
2669 src/libsystemd/sd-bus/bus-kernel.c \
2670 src/libsystemd/sd-bus/bus-kernel.h \
2671 src/libsystemd/sd-bus/bus-container.c \
2672 src/libsystemd/sd-bus/bus-container.h \
2673 src/libsystemd/sd-bus/bus-message.c \
2674 src/libsystemd/sd-bus/bus-message.h \
2675 src/libsystemd/sd-bus/bus-creds.c \
2676 src/libsystemd/sd-bus/bus-creds.h \
2677 src/libsystemd/sd-bus/bus-signature.c \
2678 src/libsystemd/sd-bus/bus-signature.h \
2679 src/libsystemd/sd-bus/bus-type.c \
2680 src/libsystemd/sd-bus/bus-type.h \
2681 src/libsystemd/sd-bus/bus-match.c \
2682 src/libsystemd/sd-bus/bus-match.h \
2683 src/libsystemd/sd-bus/bus-bloom.c \
2684 src/libsystemd/sd-bus/bus-bloom.h \
2685 src/libsystemd/sd-bus/bus-introspect.c \
2686 src/libsystemd/sd-bus/bus-introspect.h \
2687 src/libsystemd/sd-bus/bus-objects.c \
2688 src/libsystemd/sd-bus/bus-objects.h \
2689 src/libsystemd/sd-bus/bus-gvariant.c \
2690 src/libsystemd/sd-bus/bus-gvariant.h \
2691 src/libsystemd/sd-bus/bus-convenience.c \
2692 src/libsystemd/sd-bus/bus-track.c \
2693 src/libsystemd/sd-bus/bus-track.h \
2694 src/libsystemd/sd-bus/bus-util.c \
2695 src/libsystemd/sd-bus/bus-util.h \
2696 src/libsystemd/sd-bus/bus-slot.c \
2697 src/libsystemd/sd-bus/bus-slot.h \
2698 src/libsystemd/sd-bus/bus-protocol.h \
2699 src/libsystemd/sd-bus/kdbus.h \
2700 src/libsystemd/sd-utf8/sd-utf8.c \
2701 src/libsystemd/sd-event/sd-event.c \
2702 src/libsystemd/sd-event/event-util.h \
2703 src/libsystemd/sd-rtnl/sd-rtnl.c \
2704 src/libsystemd/sd-rtnl/rtnl-internal.h \
2705 src/libsystemd/sd-rtnl/rtnl-message.c \
2706 src/libsystemd/sd-rtnl/rtnl-types.h \
2707 src/libsystemd/sd-rtnl/rtnl-types.c \
2708 src/libsystemd/sd-rtnl/rtnl-util.h \
2709 src/libsystemd/sd-rtnl/rtnl-util.c \
2710 src/libsystemd/sd-rtnl/local-addresses.h \
2711 src/libsystemd/sd-rtnl/local-addresses.c \
2712 src/libsystemd/sd-id128/sd-id128.c \
2713 src/libsystemd/sd-daemon/sd-daemon.c \
2714 src/libsystemd/sd-login/sd-login.c \
2715 src/libsystemd/sd-path/sd-path.c \
2716 src/libsystemd/sd-network/sd-network.c \
2717 src/libsystemd/sd-network/network-util.h \
2718 src/libsystemd/sd-network/network-util.c \
2719 src/libsystemd/sd-hwdb/sd-hwdb.c \
2720 src/libsystemd/sd-hwdb/hwdb-util.h \
2721 src/libsystemd/sd-hwdb/hwdb-intenal.h
2723 nodist_libsystemd_internal_la_SOURCES = \
2724 src/libsystemd/libsystemd.sym
2726 libsystemd_internal_la_CFLAGS = \
2730 libsystemd_internal_la_LIBADD = \
2733 libsystemd_resolve_la_SOURCES = \
2734 src/libsystemd/sd-resolve/sd-resolve.c \
2735 src/libsystemd/sd-resolve/resolve-util.h
2737 libsystemd_resolve_la_CFLAGS = \
2741 libsystemd_resolve_la_LIBADD = \
2744 noinst_LTLIBRARIES += \
2745 libsystemd-internal.la \
2746 libsystemd-resolve.la
2748 libsystemd_dump_la_SOURCES = \
2749 src/libsystemd/sd-bus/bus-dump.c \
2750 src/libsystemd/sd-bus/bus-dump.h
2752 noinst_LTLIBRARIES += \
2756 src/libsystemd/libsystemd.sym.m4 \
2757 src/libsystemd/libsystemd.pc.in \
2758 src/libsystemd/sd-bus/DIFFERENCES \
2759 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2762 src/libsystemd/libsystemd.sym
2765 src/libsystemd/libsystemd.sym
2767 libsystemd_la_SOURCES = \
2768 $(libsystemd_internal_la_SOURCES) \
2769 $(libsystemd_resolve_la_SOURCES) \
2770 $(libsystemd_journal_internal_la_SOURCES)
2772 nodist_libsystemd_la_SOURCES = \
2773 $(nodist_libsystemd_internal_la_SOURCES)
2775 libsystemd_la_CFLAGS = \
2776 $(libsystemd_internal_la_CFLAGS) \
2777 $(libsystemd_resolve_la_CFLAGS) \
2778 $(libsystemd_journal_internal_la_CFLAGS)
2780 libsystemd_la_LDFLAGS = \
2782 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2783 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2785 libsystemd_la_LIBADD = \
2786 libsystemd-shared.la \
2787 $(libsystemd_internal_la_LIBADD) \
2788 $(libsystemd_journal_internal_la_LIBADD) \
2789 $(libsystemd_resolve_la_LIBADD)
2791 libsystemd-install-hook:
2792 libname=libsystemd.so && $(move-to-rootlibdir)
2794 libsystemd-uninstall-hook:
2795 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2797 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2798 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2800 pkgconfiglib_DATA += \
2801 src/libsystemd/libsystemd.pc
2803 pkginclude_HEADERS += \
2804 src/systemd/sd-login.h \
2805 src/systemd/sd-id128.h \
2806 src/systemd/sd-daemon.h
2809 pkginclude_HEADERS += \
2810 src/systemd/sd-bus.h \
2811 src/systemd/sd-bus-protocol.h \
2812 src/systemd/sd-bus-vtable.h \
2813 src/systemd/sd-utf8.h \
2814 src/systemd/sd-event.h \
2815 src/systemd/sd-rtnl.h \
2816 src/systemd/sd-resolve.h \
2817 src/systemd/sd-path.h
2820 lib_LTLIBRARIES += \
2825 test-bus-signature \
2831 test-bus-kernel-bloom \
2832 test-bus-kernel-benchmark \
2833 test-bus-zero-copy \
2834 test-bus-introspect \
2841 test-local-addresses \
2847 test_bus_marshal_SOURCES = \
2848 src/libsystemd/sd-bus/test-bus-marshal.c
2850 test_bus_marshal_LDADD = \
2851 libsystemd-dump.la \
2852 libsystemd-internal.la \
2853 libsystemd-shared.la \
2857 test_bus_marshal_CFLAGS = \
2862 test_bus_signature_SOURCES = \
2863 src/libsystemd/sd-bus/test-bus-signature.c
2865 test_bus_signature_LDADD = \
2866 libsystemd-internal.la \
2867 libsystemd-shared.la
2869 test_bus_chat_SOURCES = \
2870 src/libsystemd/sd-bus/test-bus-chat.c
2872 test_bus_chat_CFLAGS = \
2876 test_bus_chat_LDADD = \
2877 libsystemd-internal.la \
2878 libsystemd-shared.la
2880 test_bus_cleanup_SOURCES = \
2881 src/libsystemd/sd-bus/test-bus-cleanup.c
2883 test_bus_cleanup_CFLAGS = \
2887 test_bus_cleanup_LDADD = \
2888 libsystemd-internal.la \
2889 libsystemd-shared.la
2891 test_bus_server_SOURCES = \
2892 src/libsystemd/sd-bus/test-bus-server.c
2894 test_bus_server_CFLAGS = \
2898 test_bus_server_LDADD = \
2899 libsystemd-internal.la \
2900 libsystemd-shared.la
2902 test_bus_objects_SOURCES = \
2903 src/libsystemd/sd-bus/test-bus-objects.c
2905 test_bus_objects_CFLAGS = \
2909 test_bus_objects_LDADD = \
2910 libsystemd-dump.la \
2911 libsystemd-internal.la \
2912 libsystemd-shared.la
2914 test_bus_error_SOURCES = \
2915 src/libsystemd/sd-bus/test-bus-error.c
2917 test_bus_error_LDADD = \
2918 libsystemd-internal.la \
2919 libsystemd-shared.la
2921 test_bus_gvariant_SOURCES = \
2922 src/libsystemd/sd-bus/test-bus-gvariant.c
2924 test_bus_gvariant_LDADD = \
2925 libsystemd-dump.la \
2926 libsystemd-internal.la \
2927 libsystemd-shared.la \
2930 test_bus_gvariant_CFLAGS = \
2934 test_bus_creds_SOURCES = \
2935 src/libsystemd/sd-bus/test-bus-creds.c
2937 test_bus_creds_LDADD = \
2938 libsystemd-dump.la \
2939 libsystemd-internal.la \
2940 libsystemd-shared.la
2942 test_bus_match_SOURCES = \
2943 src/libsystemd/sd-bus/test-bus-match.c
2945 test_bus_match_LDADD = \
2946 libsystemd-internal.la \
2947 libsystemd-shared.la
2949 test_bus_kernel_SOURCES = \
2950 src/libsystemd/sd-bus/test-bus-kernel.c
2952 test_bus_kernel_LDADD = \
2953 libsystemd-dump.la \
2954 libsystemd-internal.la \
2955 libsystemd-shared.la
2957 test_bus_kernel_bloom_SOURCES = \
2958 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2960 test_bus_kernel_bloom_LDADD = \
2961 libsystemd-internal.la \
2962 libsystemd-shared.la
2964 test_bus_kernel_benchmark_SOURCES = \
2965 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2967 test_bus_kernel_benchmark_LDADD = \
2968 libsystemd-internal.la \
2969 libsystemd-shared.la
2971 test_bus_zero_copy_SOURCES = \
2972 src/libsystemd/sd-bus/test-bus-zero-copy.c
2974 test_bus_zero_copy_LDADD = \
2975 libsystemd-dump.la \
2976 libsystemd-internal.la \
2977 libsystemd-shared.la
2979 test_bus_introspect_SOURCES = \
2980 src/libsystemd/sd-bus/test-bus-introspect.c
2982 test_bus_introspect_LDADD = \
2983 libsystemd-internal.la \
2984 libsystemd-shared.la
2986 test_event_SOURCES = \
2987 src/libsystemd/sd-event/test-event.c
2989 test_event_LDADD = \
2990 libsystemd-internal.la \
2991 libsystemd-shared.la
2993 test_rtnl_SOURCES = \
2994 src/libsystemd/sd-rtnl/test-rtnl.c
2997 libsystemd-internal.la \
2998 libsystemd-shared.la
3000 test_local_addresses_SOURCES = \
3001 src/libsystemd/sd-rtnl/test-local-addresses.c
3003 test_local_addresses_LDADD = \
3004 libsystemd-internal.la \
3005 libsystemd-shared.la
3007 test_resolve_SOURCES = \
3008 src/libsystemd/sd-resolve/test-resolve.c
3010 test_resolve_LDADD = \
3011 libsystemd-resolve.la \
3012 libsystemd-internal.la \
3013 libsystemd-shared.la
3015 test_resolve_CFLAGS = \
3020 src/libsystemd/sd-bus/busctl.c \
3021 src/libsystemd/sd-bus/busctl-introspect.c \
3022 src/libsystemd/sd-bus/busctl-introspect.h
3025 libsystemd-dump.la \
3026 libsystemd-internal.la \
3027 libsystemd-shared.la
3029 # ------------------------------------------------------------------------------
3030 noinst_LTLIBRARIES += \
3031 libsystemd-network.la
3033 libsystemd_network_la_CFLAGS = \
3037 libsystemd_network_la_SOURCES = \
3038 src/systemd/sd-dhcp-client.h \
3039 src/systemd/sd-dhcp-server.h \
3040 src/systemd/sd-dhcp-lease.h \
3041 src/systemd/sd-ipv4ll.h \
3042 src/systemd/sd-icmp6-nd.h \
3043 src/systemd/sd-dhcp6-client.h \
3044 src/systemd/sd-dhcp6-lease.h \
3045 src/systemd/sd-pppoe.h \
3046 src/libsystemd-network/sd-dhcp-client.c \
3047 src/libsystemd-network/sd-dhcp-server.c \
3048 src/libsystemd-network/dhcp-network.c \
3049 src/libsystemd-network/dhcp-option.c \
3050 src/libsystemd-network/dhcp-packet.c \
3051 src/libsystemd-network/dhcp-internal.h \
3052 src/libsystemd-network/dhcp-server-internal.h \
3053 src/libsystemd-network/dhcp-protocol.h \
3054 src/libsystemd-network/dhcp-lease-internal.h \
3055 src/libsystemd-network/sd-dhcp-lease.c \
3056 src/libsystemd-network/sd-ipv4ll.c \
3057 src/libsystemd-network/ipv4ll-network.c \
3058 src/libsystemd-network/ipv4ll-packet.c \
3059 src/libsystemd-network/ipv4ll-internal.h \
3060 src/libsystemd-network/sd-pppoe.c \
3061 src/libsystemd-network/network-internal.c \
3062 src/libsystemd-network/network-internal.h \
3063 src/libsystemd-network/sd-icmp6-nd.c \
3064 src/libsystemd-network/sd-dhcp6-client.c \
3065 src/libsystemd-network/dhcp6-internal.h \
3066 src/libsystemd-network/dhcp6-protocol.h \
3067 src/libsystemd-network/dhcp6-network.c \
3068 src/libsystemd-network/dhcp6-option.c \
3069 src/libsystemd-network/dhcp6-lease-internal.h \
3070 src/libsystemd-network/sd-dhcp6-lease.c
3072 libsystemd_network_la_LIBADD = \
3073 libudev-internal.la \
3074 libsystemd-label.la \
3075 libsystemd-internal.la \
3076 libsystemd-shared.la \
3079 test_dhcp_option_SOURCES = \
3080 src/libsystemd-network/dhcp-protocol.h \
3081 src/libsystemd-network/dhcp-internal.h \
3082 src/libsystemd-network/test-dhcp-option.c
3084 test_dhcp_option_LDADD = \
3085 libsystemd-network.la \
3086 libsystemd-internal.la \
3087 libsystemd-shared.la
3089 test_dhcp_client_SOURCES = \
3090 src/systemd/sd-dhcp-client.h \
3091 src/libsystemd-network/dhcp-protocol.h \
3092 src/libsystemd-network/dhcp-internal.h \
3093 src/libsystemd-network/test-dhcp-client.c
3095 test_dhcp_client_LDADD = \
3096 libsystemd-network.la \
3097 libsystemd-label.la \
3098 libsystemd-internal.la \
3099 libsystemd-shared.la
3101 test_dhcp_server_SOURCES = \
3102 src/libsystemd-network/test-dhcp-server.c
3104 test_dhcp_server_LDADD = \
3105 libsystemd-network.la \
3106 libsystemd-internal.la \
3107 libsystemd-shared.la
3109 test_ipv4ll_SOURCES = \
3110 src/systemd/sd-ipv4ll.h \
3111 src/libsystemd-network/ipv4ll-internal.h \
3112 src/libsystemd-network/test-ipv4ll.c
3114 test_ipv4ll_LDADD = \
3115 libsystemd-network.la \
3116 libsystemd-label.la \
3117 libsystemd-internal.la \
3118 libsystemd-shared.la
3120 test_pppoe_SOURCES = \
3121 src/systemd/sd-pppoe.h \
3122 src/libsystemd-network/test-pppoe.c
3124 test_pppoe_LDADD = \
3125 libsystemd-network.la \
3126 libsystemd-shared.la
3128 test_icmp6_rs_SOURCES = \
3129 src/systemd/sd-dhcp6-client.h \
3130 src/systemd/sd-icmp6-nd.h \
3131 src/libsystemd-network/dhcp6-internal.h \
3132 src/libsystemd-network/test-icmp6-rs.c
3134 test_icmp6_rs_LDADD = \
3135 libsystemd-network.la \
3136 libsystemd-internal.la \
3137 libsystemd-shared.la
3139 test_dhcp6_client_SOURCES = \
3140 src/systemd/sd-dhcp6-client.h \
3141 src/libsystemd-network/dhcp6-internal.h \
3142 src/libsystemd-network/test-dhcp6-client.c
3144 test_dhcp6_client_LDADD = \
3145 libsystemd-network.la \
3146 libsystemd-internal.la \
3147 libsystemd-shared.la
3160 # ------------------------------------------------------------------------------
3162 noinst_LTLIBRARIES += \
3163 libsystemd-terminal.la
3165 rootlibexec_PROGRAMS += \
3168 noinst_PROGRAMS += \
3173 dist_pkgdata_DATA += \
3174 src/libsystemd-terminal/unifont-glyph-array.bin
3176 nodist_userunit_DATA += \
3177 units/user/systemd-consoled.service
3179 USER_DEFAULT_TARGET_WANTS += \
3180 systemd-consoled.service
3183 units/user/systemd-consoled.service.in
3191 libsystemd_terminal_la_CFLAGS = \
3195 libsystemd_terminal_la_SOURCES = \
3196 src/libsystemd-terminal/grdev.h \
3197 src/libsystemd-terminal/grdev-internal.h \
3198 src/libsystemd-terminal/grdev.c \
3199 src/libsystemd-terminal/grdev-drm.c \
3200 src/libsystemd-terminal/idev.h \
3201 src/libsystemd-terminal/idev-internal.h \
3202 src/libsystemd-terminal/idev.c \
3203 src/libsystemd-terminal/idev-evdev.c \
3204 src/libsystemd-terminal/idev-keyboard.c \
3205 src/libsystemd-terminal/sysview.h \
3206 src/libsystemd-terminal/sysview-internal.h \
3207 src/libsystemd-terminal/sysview.c \
3208 src/libsystemd-terminal/term.h \
3209 src/libsystemd-terminal/term-internal.h \
3210 src/libsystemd-terminal/term-charset.c \
3211 src/libsystemd-terminal/term-page.c \
3212 src/libsystemd-terminal/term-parser.c \
3213 src/libsystemd-terminal/term-screen.c \
3214 src/libsystemd-terminal/term-wcwidth.c \
3215 src/libsystemd-terminal/unifont.h \
3216 src/libsystemd-terminal/unifont-def.h \
3217 src/libsystemd-terminal/unifont.c
3219 libsystemd_terminal_la_LIBADD = \
3220 libudev-internal.la \
3221 libsystemd-internal.la \
3222 libsystemd-shared.la \
3225 systemd_consoled_CFLAGS = \
3229 systemd_consoled_SOURCES = \
3230 src/console/consoled.h \
3231 src/console/consoled.c \
3232 src/console/consoled-display.c \
3233 src/console/consoled-manager.c \
3234 src/console/consoled-session.c \
3235 src/console/consoled-terminal.c \
3236 src/console/consoled-workspace.c
3238 systemd_consoled_LDADD = \
3239 libsystemd-terminal.la \
3240 libsystemd-internal.la \
3241 libsystemd-shared.la \
3244 systemd_evcat_CFLAGS = \
3248 systemd_evcat_SOURCES = \
3249 src/libsystemd-terminal/evcat.c
3251 systemd_evcat_LDADD = \
3252 libsystemd-terminal.la \
3253 libsystemd-internal.la \
3254 libsystemd-shared.la \
3257 systemd_modeset_CFLAGS = \
3261 systemd_modeset_SOURCES = \
3262 src/libsystemd-terminal/modeset.c
3264 systemd_modeset_LDADD = \
3265 libsystemd-terminal.la \
3266 libsystemd-internal.la \
3267 libsystemd-shared.la \
3270 systemd_subterm_SOURCES = \
3271 src/libsystemd-terminal/subterm.c
3273 systemd_subterm_LDADD = \
3274 libsystemd-terminal.la \
3275 libsystemd-internal.la \
3276 libsystemd-shared.la
3278 test_term_page_SOURCES = \
3279 src/libsystemd-terminal/test-term-page.c
3281 test_term_page_LDADD = \
3282 libsystemd-terminal.la \
3283 libsystemd-internal.la \
3284 libsystemd-shared.la
3286 test_term_parser_SOURCES = \
3287 src/libsystemd-terminal/test-term-parser.c
3289 test_term_parser_LDADD = \
3290 libsystemd-terminal.la \
3291 libsystemd-internal.la \
3292 libsystemd-shared.la
3294 test_unifont_SOURCES = \
3295 src/libsystemd-terminal/test-unifont.c
3297 test_unifont_LDADD = \
3298 libsystemd-terminal.la \
3299 libsystemd-internal.la \
3300 libsystemd-shared.la
3302 .PHONY: update-unifont
3303 update-unifont: tools/compile-unifont.py
3304 $(AM_V_GEN)$(PYTHON) $< \
3305 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3306 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3307 @echo "unifont-glyph-array.bin has been regenerated"
3309 # ------------------------------------------------------------------------------
3319 include_HEADERS += \
3320 src/libudev/libudev.h
3322 lib_LTLIBRARIES += \
3325 libudev_la_SOURCES =\
3326 src/libudev/libudev.sym \
3327 src/libudev/libudev-private.h \
3328 src/libudev/libudev.c \
3329 src/libudev/libudev-list.c \
3330 src/libudev/libudev-util.c \
3331 src/libudev/libudev-device.c \
3332 src/libudev/libudev-enumerate.c \
3333 src/libudev/libudev-monitor.c \
3334 src/libudev/libudev-queue.c \
3335 src/libudev/libudev-hwdb-def.h \
3336 src/libudev/libudev-hwdb.c
3338 libudev_la_CFLAGS = \
3342 libudev_la_LDFLAGS = \
3344 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3345 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3347 libudev_la_LIBADD = \
3348 libsystemd-internal.la \
3349 libsystemd-shared.la
3351 pkgconfiglib_DATA += \
3352 src/libudev/libudev.pc
3355 src/libudev/libudev.pc.in
3358 src/libudev/libudev.pc \
3363 $(AM_V_at)$(MKDIR_P) $(dir $@)
3364 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3367 $(AM_V_at)$(MKDIR_P) $(dir $@)
3368 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3370 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3371 libudev-install-hook:
3372 libname=libudev.so && $(move-to-rootlibdir)
3374 libudev-uninstall-hook:
3375 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3377 INSTALL_EXEC_HOOKS += libudev-install-hook
3378 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3380 # ------------------------------------------------------------------------------
3381 noinst_LTLIBRARIES += \
3384 libudev_internal_la_SOURCES =\
3385 $(libudev_la_SOURCES) \
3386 src/libudev/libudev-device-private.c
3388 libudev_internal_la_CFLAGS = \
3390 -fvisibility=default
3392 # ------------------------------------------------------------------------------
3394 $(sysconfdir)/udev/rules.d \
3395 $(sysconfdir)/udev/hwdb.d
3397 dist_network_DATA = \
3398 network/99-default.link \
3399 network/80-container-host0.network \
3400 network/80-container-ve.network
3402 dist_udevrules_DATA += \
3403 rules/42-usb-hid-pm.rules \
3404 rules/50-udev-default.rules \
3405 rules/60-drm.rules \
3406 rules/60-keyboard.rules \
3407 rules/70-mouse.rules \
3408 rules/60-persistent-storage-tape.rules \
3409 rules/60-persistent-serial.rules \
3410 rules/60-persistent-input.rules \
3411 rules/60-persistent-alsa.rules \
3412 rules/60-persistent-storage.rules \
3413 rules/64-btrfs.rules \
3414 rules/75-net-description.rules \
3415 rules/75-tty-description.rules \
3416 rules/78-sound-card.rules \
3417 rules/80-net-setup-link.rules \
3418 rules/95-udev-late.rules
3420 nodist_udevrules_DATA += \
3421 rules/99-systemd.rules
3423 dist_udevhwdb_DATA = \
3424 hwdb/20-pci-vendor-model.hwdb \
3425 hwdb/20-pci-classes.hwdb \
3426 hwdb/20-usb-vendor-model.hwdb \
3427 hwdb/20-usb-classes.hwdb \
3428 hwdb/20-sdio-vendor-model.hwdb \
3429 hwdb/20-sdio-classes.hwdb \
3430 hwdb/20-bluetooth-vendor-product.hwdb \
3431 hwdb/20-acpi-vendor.hwdb \
3433 hwdb/20-net-ifname.hwdb \
3434 hwdb/60-keyboard.hwdb \
3437 udevconfdir = $(sysconfdir)/udev
3438 dist_udevconf_DATA = \
3441 sharepkgconfigdir = $(datadir)/pkgconfig
3442 sharepkgconfig_DATA = \
3446 rules/99-systemd.rules.in \
3450 rules/99-systemd.rules \
3454 units/systemd-udevd.service.in \
3455 units/systemd-udev-trigger.service.in \
3456 units/systemd-udev-settle.service.in \
3457 units/systemd-udev-hwdb-update.service.in
3460 units/systemd-udevd.service \
3461 units/systemd-udev-trigger.service \
3462 units/systemd-udev-settle.service \
3463 units/systemd-udev-hwdb-update.service
3465 SOCKETS_TARGET_WANTS += \
3466 systemd-udevd-control.socket \
3467 systemd-udevd-kernel.socket
3469 SYSINIT_TARGET_WANTS += \
3470 systemd-udevd.service \
3471 systemd-udev-trigger.service \
3472 systemd-udev-hwdb-update.service
3474 rootbin_PROGRAMS += \
3477 rootlibexec_PROGRAMS += \
3480 noinst_LTLIBRARIES += \
3483 src/udev/keyboard-keys.txt:
3484 $(AM_V_at)$(MKDIR_P) $(dir $@)
3485 $(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/' > $@
3487 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3488 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3490 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3491 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3493 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3494 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3496 libudev_core_la_SOURCES = \
3498 src/udev/udev-event.c \
3499 src/udev/udev-watch.c \
3500 src/udev/udev-node.c \
3501 src/udev/udev-rules.c \
3502 src/udev/udev-ctrl.c \
3503 src/udev/udev-builtin.c \
3504 src/udev/udev-builtin-btrfs.c \
3505 src/udev/udev-builtin-hwdb.c \
3506 src/udev/udev-builtin-input_id.c \
3507 src/udev/udev-builtin-keyboard.c \
3508 src/udev/udev-builtin-net_id.c \
3509 src/udev/udev-builtin-net_setup_link.c \
3510 src/udev/udev-builtin-path_id.c \
3511 src/udev/udev-builtin-usb_id.c \
3512 src/udev/net/link-config.h \
3513 src/udev/net/link-config.c \
3514 src/udev/net/ethtool-util.h \
3515 src/udev/net/ethtool-util.c
3517 nodist_libudev_core_la_SOURCES = \
3518 src/udev/keyboard-keys-from-name.h \
3519 src/udev/keyboard-keys-to-name.h \
3520 src/udev/net/link-config-gperf.c
3523 $(nodist_libudev_core_la_SOURCES)
3526 src/udev/keyboard-keys-from-name.gperf \
3527 src/udev/keyboard-keys.txt \
3528 src/udev/net/link-config-gperf.c
3531 src/udev/net/link-config-gperf.gperf
3533 libudev_core_la_CFLAGS = \
3538 libudev_core_la_LIBADD = \
3539 libudev-internal.la \
3540 libsystemd-label.la \
3541 libsystemd-internal.la \
3542 libsystemd-network.la \
3543 libsystemd-shared.la \
3548 libudev_core_la_SOURCES += \
3549 src/udev/udev-builtin-kmod.c
3551 dist_udevrules_DATA += \
3552 rules/80-drivers.rules
3556 libudev_core_la_SOURCES += \
3557 src/udev/udev-builtin-blkid.c
3561 libudev_core_la_SOURCES += \
3562 src/udev/udev-builtin-uaccess.c \
3563 src/login/logind-acl.c \
3564 src/libsystemd/sd-login/sd-login.c \
3565 src/systemd/sd-login.h
3567 libudev_core_la_LIBADD += \
3571 systemd_udevd_SOURCES = \
3574 systemd_udevd_LDADD = \
3578 src/udev/udevadm.c \
3579 src/udev/udevadm-info.c \
3580 src/udev/udevadm-control.c \
3581 src/udev/udevadm-monitor.c \
3582 src/udev/udevadm-hwdb.c \
3583 src/udev/udevadm-settle.c \
3584 src/udev/udevadm-trigger.c \
3585 src/udev/udevadm-test.c \
3586 src/udev/udevadm-test-builtin.c \
3587 src/udev/udevadm-util.c \
3588 src/udev/udevadm-util.h
3593 # Update hwdb on installation. Do not bother if installing
3594 # in DESTDIR, since this is likely for packaging purposes.
3596 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3598 INSTALL_DATA_HOOKS += \
3602 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3604 # ------------------------------------------------------------------------------
3613 test_libudev_SOURCES = \
3614 src/test/test-libudev.c
3616 test_libudev_LDADD = \
3617 libsystemd-label.la \
3618 libudev-internal.la \
3619 libsystemd-shared.la \
3620 libsystemd-internal.la
3622 test_udev_SOURCES = \
3623 src/test/test-udev.c
3632 test_udev_LDADD += \
3639 # packed sysfs test tree
3641 $(AM_V_at)$(MKDIR_P) $(dir $@)
3642 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3646 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3651 test/rules-test.sh \
3652 test/rule-syntax-check.py
3654 # ------------------------------------------------------------------------------
3656 src/udev/ata_id/ata_id.c
3659 libudev-internal.la \
3660 libsystemd-shared.la
3662 udevlibexec_PROGRAMS += \
3665 # ------------------------------------------------------------------------------
3666 cdrom_id_SOURCES = \
3667 src/udev/cdrom_id/cdrom_id.c
3670 libudev-internal.la \
3671 libsystemd-shared.la
3673 udevlibexec_PROGRAMS += \
3676 dist_udevrules_DATA += \
3677 rules/60-cdrom_id.rules
3679 # ------------------------------------------------------------------------------
3681 src/udev/collect/collect.c
3684 libudev-internal.la \
3685 libsystemd-shared.la
3687 udevlibexec_PROGRAMS += \
3690 # ------------------------------------------------------------------------------
3692 src/udev/scsi_id/scsi_id.c \
3693 src/udev/scsi_id/scsi_serial.c \
3694 src/udev/scsi_id/scsi.h \
3695 src/udev/scsi_id/scsi_id.h
3698 libudev-internal.la \
3699 libsystemd-shared.la
3701 udevlibexec_PROGRAMS += \
3705 src/udev/scsi_id/README
3707 # ------------------------------------------------------------------------------
3709 src/udev/v4l_id/v4l_id.c
3714 udevlibexec_PROGRAMS += \
3717 dist_udevrules_DATA += \
3718 rules/60-persistent-v4l.rules
3720 # ------------------------------------------------------------------------------
3721 accelerometer_SOURCES = \
3722 src/udev/accelerometer/accelerometer.c
3724 accelerometer_LDADD = \
3725 libudev-internal.la -lm \
3726 libsystemd-shared.la
3728 udevlibexec_PROGRAMS += \
3731 dist_udevrules_DATA += \
3732 rules/61-accelerometer.rules
3734 # ------------------------------------------------------------------------------
3741 libgudev_includedir = \
3742 $(includedir)/gudev-1.0/gudev
3744 libgudev_include_HEADERS = \
3746 src/gudev/gudevenums.h \
3747 src/gudev/gudevenumtypes.h \
3748 src/gudev/gudevtypes.h \
3749 src/gudev/gudevclient.h \
3750 src/gudev/gudevdevice.h \
3751 src/gudev/gudevenumerator.h
3753 lib_LTLIBRARIES += libgudev-1.0.la
3755 pkgconfiglib_DATA += \
3756 src/gudev/gudev-1.0.pc
3759 src/gudev/gudev-1.0.pc
3761 libgudev_1_0_la_SOURCES = \
3762 src/gudev/libgudev-1.0.sym \
3763 src/gudev/gudevenums.h \
3764 src/gudev/gudevenumtypes.h \
3765 src/gudev/gudevenumtypes.h\
3766 src/gudev/gudevtypes.h \
3767 src/gudev/gudevclient.h \
3768 src/gudev/gudevclient.c \
3769 src/gudev/gudevdevice.h \
3770 src/gudev/gudevdevice.c \
3771 src/gudev/gudevenumerator.h \
3772 src/gudev/gudevenumerator.c \
3773 src/gudev/gudevprivate.h
3775 nodist_libgudev_1_0_la_SOURCES = \
3776 src/gudev/gudevmarshal.h \
3777 src/gudev/gudevmarshal.c \
3778 src/gudev/gudevenumtypes.h \
3779 src/gudev/gudevenumtypes.c
3782 $(nodist_libgudev_1_0_la_SOURCES)
3784 libgudev_1_0_la_CPPFLAGS = \
3786 -I$(top_builddir)/src\
3787 -I$(top_srcdir)/src\
3788 -I$(top_builddir)/src/gudev \
3789 -I$(top_srcdir)/src/gudev \
3790 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3791 -D_GUDEV_COMPILATION \
3792 -DG_LOG_DOMAIN=\"GUdev\"
3794 libgudev_1_0_la_CFLAGS = \
3796 -fvisibility=default \
3799 libgudev_1_0_la_LIBADD = \
3803 libgudev_1_0_la_LDFLAGS = \
3805 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3808 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3810 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3811 $(AM_V_at)$(MKDIR_P) $(dir $@)
3812 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3814 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3815 $(AM_V_at)$(MKDIR_P) $(dir $@)
3816 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3817 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3819 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3820 $(AM_V_at)$(MKDIR_P) $(dir $@)
3821 $(AM_V_GEN)glib-mkenums --template $^ > $@
3823 if HAVE_INTROSPECTION
3824 -include $(INTROSPECTION_MAKEFILE)
3826 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3828 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3830 src_gudev_GUdev_1_0_gir_CFLAGS = \
3833 -D_GUDEV_COMPILATION \
3834 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3835 -I$(top_srcdir)/src \
3836 -I$(top_builddir)/src \
3837 -I$(top_srcdir)/src/gudev \
3838 -I$(top_builddir)/src/gudev
3840 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3842 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3843 --pkg-export=gudev-1.0 \
3846 src_gudev_GUdev_1_0_gir_FILES = \
3848 src/gudev/gudevtypes.h \
3849 src/gudev/gudevenums.h \
3850 src/gudev/gudevenumtypes.h \
3851 src/gudev/gudevclient.h \
3852 src/gudev/gudevdevice.h \
3853 src/gudev/gudevenumerator.h \
3854 src/gudev/gudevclient.c \
3855 src/gudev/gudevdevice.c \
3856 src/gudev/gudevenumerator.c
3858 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3859 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3861 girdir = $(datadir)/gir-1.0
3863 src/gudev/GUdev-1.0.gir
3865 typelibsdir = $(libdir)/girepository-1.0
3867 src/gudev/GUdev-1.0.typelib
3869 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3870 endif # HAVE_INTROSPECTION
3874 src/gudev/gudev-1.0.pc.in \
3875 src/gudev/gudevmarshal.list \
3876 src/gudev/gudevenumtypes.h.template \
3877 src/gudev/gudevenumtypes.c.template \
3878 src/gudev/gjs-example.js \
3879 src/gudev/seed-example-enum.js \
3880 src/gudev/seed-example.js
3882 # ------------------------------------------------------------------------------
3883 mtd_probe_SOURCES = \
3884 src/udev/mtd_probe/mtd_probe.c \
3885 src/udev/mtd_probe/mtd_probe.h \
3886 src/udev/mtd_probe/probe_smartmedia.c
3888 dist_udevrules_DATA += \
3889 rules/75-probe_mtd.rules
3891 udevlibexec_PROGRAMS += \
3894 # ------------------------------------------------------------------------------
3895 test_id128_SOURCES = \
3896 src/test/test-id128.c
3898 test_id128_LDADD = \
3899 libsystemd-internal.la \
3900 libsystemd-shared.la
3905 # ------------------------------------------------------------------------------
3907 rootlibexec_PROGRAMS += \
3910 systemd_activate_SOURCES = \
3911 src/activate/activate.c
3913 systemd_activate_LDADD = \
3914 libsystemd-label.la \
3915 libsystemd-internal.la \
3916 libsystemd-shared.la
3918 # ------------------------------------------------------------------------------
3919 systemd_journald_SOURCES = \
3920 src/journal/journald.c \
3921 src/journal/journald-server.h
3923 systemd_journald_LDADD = \
3924 libsystemd-journal-core.la \
3925 libsystemd-internal.la \
3926 libsystemd-shared.la
3928 systemd_cat_SOURCES = \
3931 systemd_cat_LDADD = \
3932 libsystemd-journal-core.la
3935 rootlibexec_PROGRAMS += \
3936 systemd-journal-remote
3938 systemd_journal_remote_SOURCES = \
3939 src/journal-remote/journal-remote-parse.h \
3940 src/journal-remote/journal-remote-parse.c \
3941 src/journal-remote/journal-remote-write.h \
3942 src/journal-remote/journal-remote-write.c \
3943 src/journal-remote/journal-remote.h \
3944 src/journal-remote/journal-remote.c
3946 systemd_journal_remote_LDADD = \
3947 libsystemd-internal.la \
3948 libsystemd-journal-core.la
3950 systemd_journal_remote_SOURCES += \
3951 src/journal-remote/microhttpd-util.h \
3952 src/journal-remote/microhttpd-util.c
3954 systemd_journal_remote_CFLAGS = \
3956 $(MICROHTTPD_CFLAGS)
3958 systemd_journal_remote_LDADD += \
3962 dist_sysusers_DATA += \
3963 sysusers.d/systemd-remote.conf
3967 dist_tmpfiles_DATA += \
3968 tmpfiles.d/systemd-remote.conf
3972 systemd_journal_remote_LDADD += \
3975 # systemd-journal-remote make sense mostly with full crypto stack
3976 dist_systemunit_DATA += \
3977 units/systemd-journal-remote.socket
3979 nodist_systemunit_DATA += \
3980 units/systemd-journal-remote.service
3983 units/systemd-journal-remote.service.in
3985 journal-remote-install-hook: journal-install-hook
3986 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3987 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3988 -chmod 755 $(DESTDIR)/var/log/journal/remote
3990 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3994 nodist_pkgsysconf_DATA += \
3995 src/journal-remote/journal-remote.conf
3998 src/journal-remote/journal-remote.conf.in
4001 src/journal-remote/journal-remote.conf
4005 rootlibexec_PROGRAMS += \
4006 systemd-journal-upload
4008 systemd_journal_upload_SOURCES = \
4009 src/journal-remote/journal-upload.h \
4010 src/journal-remote/journal-upload.c \
4011 src/journal-remote/journal-upload-journal.c
4013 systemd_journal_upload_CFLAGS = \
4017 systemd_journal_upload_LDADD = \
4018 libsystemd-internal.la \
4019 libsystemd-journal-internal.la \
4020 libsystemd-shared.la \
4023 nodist_systemunit_DATA += \
4024 units/systemd-journal-upload.service
4027 units/systemd-journal-upload.service.in
4029 nodist_pkgsysconf_DATA += \
4030 src/journal-remote/journal-upload.conf
4033 src/journal-remote/journal-upload.conf.in
4036 src/journal-remote/journal-upload.conf
4039 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4040 journalctl_CFLAGS = \
4043 journalctl_SOURCES = \
4044 src/journal/journalctl.c
4046 journalctl_LDADD = \
4047 libsystemd-journal-internal.la \
4048 libsystemd-internal.la \
4049 libsystemd-logs.la \
4050 libsystemd-shared.la
4053 journalctl_LDADD += \
4058 journalctl_SOURCES += \
4059 src/journal/journal-qrcode.c \
4060 src/journal/journal-qrcode.h
4062 journalctl_CFLAGS += \
4065 journalctl_LDADD += \
4069 test_journal_SOURCES = \
4070 src/journal/test-journal.c
4072 test_journal_LDADD = \
4073 libsystemd-journal-core.la
4075 test_journal_send_SOURCES = \
4076 src/journal/test-journal-send.c
4078 test_journal_send_LDADD = \
4079 libsystemd-journal-core.la
4081 test_journal_syslog_SOURCES = \
4082 src/journal/test-journal-syslog.c
4084 test_journal_syslog_LDADD = \
4085 libsystemd-journal-core.la
4087 test_journal_match_SOURCES = \
4088 src/journal/test-journal-match.c
4090 test_journal_match_LDADD = \
4091 libsystemd-journal-core.la
4093 test_journal_enum_SOURCES = \
4094 src/journal/test-journal-enum.c
4096 test_journal_enum_LDADD = \
4097 libsystemd-journal-core.la
4099 test_journal_stream_SOURCES = \
4100 src/journal/test-journal-stream.c
4102 test_journal_stream_LDADD = \
4103 libsystemd-journal-core.la
4105 test_journal_flush_SOURCES = \
4106 src/journal/test-journal-flush.c
4108 test_journal_flush_LDADD = \
4109 libsystemd-journal-core.la
4111 test_journal_init_SOURCES = \
4112 src/journal/test-journal-init.c
4114 test_journal_init_LDADD = \
4115 libsystemd-journal-core.la
4117 test_journal_verify_SOURCES = \
4118 src/journal/test-journal-verify.c
4120 test_journal_verify_LDADD = \
4121 libsystemd-journal-core.la
4123 test_journal_interleaving_SOURCES = \
4124 src/journal/test-journal-interleaving.c
4126 test_journal_interleaving_LDADD = \
4127 libsystemd-journal-core.la
4129 test_mmap_cache_SOURCES = \
4130 src/journal/test-mmap-cache.c
4132 test_mmap_cache_LDADD = \
4133 libsystemd-journal-core.la
4135 test_catalog_SOURCES = \
4136 src/journal/test-catalog.c
4138 test_catalog_CPPFLAGS = \
4140 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4142 test_catalog_LDADD = \
4143 libsystemd-journal-core.la
4145 test_compress_SOURCES = \
4146 src/journal/test-compress.c
4148 test_compress_LDADD = \
4149 libsystemd-journal-internal.la \
4150 libsystemd-shared.la
4152 test_compress_benchmark_SOURCES = \
4153 src/journal/test-compress-benchmark.c
4155 test_compress_benchmark_LDADD = \
4156 libsystemd-journal-internal.la \
4157 libsystemd-shared.la
4159 libsystemd_journal_core_la_SOURCES = \
4160 src/journal/journald-kmsg.c \
4161 src/journal/journald-kmsg.h \
4162 src/journal/journald-syslog.c \
4163 src/journal/journald-syslog.h \
4164 src/journal/journald-stream.c \
4165 src/journal/journald-stream.h \
4166 src/journal/journald-server.c \
4167 src/journal/journald-server.h \
4168 src/journal/journald-console.c \
4169 src/journal/journald-console.h \
4170 src/journal/journald-wall.c \
4171 src/journal/journald-wall.h \
4172 src/journal/journald-native.c \
4173 src/journal/journald-native.h \
4174 src/journal/journald-audit.c \
4175 src/journal/journald-audit.h \
4176 src/journal/journald-rate-limit.c \
4177 src/journal/journald-rate-limit.h \
4178 src/journal/journal-internal.h
4180 nodist_libsystemd_journal_core_la_SOURCES = \
4181 src/journal/journald-gperf.c
4183 libsystemd_journal_core_la_LIBADD = \
4184 libsystemd-journal-internal.la \
4185 libudev-internal.la \
4186 libsystemd-label.la \
4187 libsystemd-internal.la \
4188 libsystemd-shared.la
4191 libsystemd_journal_core_la_LIBADD += \
4195 noinst_LTLIBRARIES += \
4196 libsystemd-journal-core.la
4198 journal-install-hook:
4199 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4200 -chown 0:0 $(DESTDIR)/var/log/journal
4201 -chmod 755 $(DESTDIR)/var/log/journal
4202 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4203 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4205 journal-uninstall-hook:
4206 -rmdir $(DESTDIR)/var/log/journal/remote
4207 -rmdir $(DESTDIR)/var/log/journal/
4209 INSTALL_EXEC_HOOKS += journal-install-hook
4210 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4212 # ------------------------------------------------------------------------------
4213 # Update catalog on installation. Do not bother if installing
4214 # in DESTDIR, since this is likely for packaging purposes.
4215 catalog-update-hook:
4216 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4218 INSTALL_DATA_HOOKS += \
4221 catalog-remove-hook:
4222 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4224 UNINSTALL_DATA_HOOKS += \
4233 test-journal-syslog \
4234 test-journal-match \
4235 test-journal-stream \
4237 test-journal-verify \
4238 test-journal-interleaving \
4239 test-journal-flush \
4246 test-compress-benchmark
4249 pkginclude_HEADERS += \
4250 src/systemd/sd-journal.h \
4251 src/systemd/sd-messages.h \
4252 src/systemd/_sd-common.h
4254 libsystemd_journal_internal_la_SOURCES = \
4255 src/journal/sd-journal.c \
4256 src/systemd/sd-journal.h \
4257 src/systemd/_sd-common.h \
4258 src/journal/journal-file.c \
4259 src/journal/journal-file.h \
4260 src/journal/journal-vacuum.c \
4261 src/journal/journal-vacuum.h \
4262 src/journal/journal-verify.c \
4263 src/journal/journal-verify.h \
4264 src/journal/lookup3.c \
4265 src/journal/lookup3.h \
4266 src/journal/journal-send.c \
4267 src/journal/journal-def.h \
4268 src/journal/compress.h \
4269 src/journal/catalog.c \
4270 src/journal/catalog.h \
4271 src/journal/mmap-cache.c \
4272 src/journal/mmap-cache.h
4274 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4275 libsystemd_journal_internal_la_CFLAGS = \
4278 libsystemd_journal_internal_la_LIBADD =
4280 libsystemd_journal_internal_la_SOURCES += \
4281 src/journal/compress.c
4284 libsystemd_journal_internal_la_CFLAGS += \
4287 libsystemd_journal_internal_la_LIBADD += \
4292 libsystemd_journal_internal_la_LIBADD += \
4297 libsystemd_journal_internal_la_SOURCES += \
4298 src/journal/journal-authenticate.c \
4299 src/journal/journal-authenticate.h \
4300 src/journal/fsprg.c \
4303 libsystemd_journal_internal_la_LIBADD += \
4306 # fsprg.c is a drop-in file using void pointer arithmetic
4307 libsystemd_journal_internal_la_CFLAGS += \
4312 noinst_LTLIBRARIES += \
4313 libsystemd-journal-internal.la
4315 rootlibexec_PROGRAMS += \
4318 rootbin_PROGRAMS += \
4324 dist_systemunit_DATA += \
4325 units/systemd-journald.socket \
4326 units/systemd-journald-dev-log.socket \
4327 units/systemd-journald-audit.socket
4329 nodist_systemunit_DATA += \
4330 units/systemd-journald.service \
4331 units/systemd-journal-flush.service \
4332 units/systemd-journal-catalog-update.service
4334 dist_pkgsysconf_DATA += \
4335 src/journal/journald.conf
4337 dist_catalog_DATA = \
4338 catalog/systemd.fr.catalog \
4339 catalog/systemd.it.catalog \
4340 catalog/systemd.pl.catalog \
4341 catalog/systemd.ru.catalog \
4342 catalog/systemd.catalog
4344 SOCKETS_TARGET_WANTS += \
4345 systemd-journald.socket \
4346 systemd-journald-dev-log.socket \
4347 systemd-journald-audit.socket
4349 SYSINIT_TARGET_WANTS += \
4350 systemd-journald.service \
4351 systemd-journal-flush.service \
4352 systemd-journal-catalog-update.service
4355 units/systemd-journald.service.in \
4356 units/systemd-journal-flush.service.in \
4357 units/systemd-journal-catalog-update.service.in \
4358 src/journal/journald-gperf.gperf
4361 src/journal/journald-gperf.c
4363 # ------------------------------------------------------------------------------
4365 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4367 rootlibexec_PROGRAMS += \
4368 systemd-journal-gatewayd
4370 systemd_journal_gatewayd_SOURCES = \
4371 src/journal-remote/journal-gatewayd.c \
4372 src/journal-remote/microhttpd-util.h \
4373 src/journal-remote/microhttpd-util.c
4375 systemd_journal_gatewayd_LDADD = \
4376 libsystemd-logs.la \
4377 libsystemd-journal-internal.la \
4378 libsystemd-internal.la \
4379 libsystemd-shared.la \
4383 systemd_journal_gatewayd_LDADD += \
4387 systemd_journal_gatewayd_CFLAGS = \
4389 $(MICROHTTPD_CFLAGS)
4391 systemd_journal_gatewayd_CPPFLAGS = \
4393 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4395 dist_systemunit_DATA += \
4396 units/systemd-journal-gatewayd.socket
4398 nodist_systemunit_DATA += \
4399 units/systemd-journal-gatewayd.service
4401 dist_gatewayddocumentroot_DATA = \
4402 src/journal-remote/browse.html
4407 units/systemd-journal-gatewayd.service.in
4409 # ------------------------------------------------------------------------------
4411 systemd_socket_proxyd_SOURCES = \
4412 src/socket-proxy/socket-proxyd.c
4414 systemd_socket_proxyd_LDADD = \
4415 libsystemd-logs.la \
4416 libsystemd-internal.la \
4417 libsystemd-journal-internal.la \
4418 libsystemd-shared.la \
4419 libsystemd-resolve.la
4421 # ------------------------------------------------------------------------------
4423 systemd_coredump_SOURCES = \
4424 src/journal/coredump.c \
4425 src/journal/coredump-vacuum.c \
4426 src/journal/coredump-vacuum.h
4428 systemd_coredump_LDADD = \
4429 libsystemd-journal-internal.la \
4430 libsystemd-label.la \
4431 libsystemd-internal.la \
4432 libsystemd-shared.la
4435 systemd_coredump_SOURCES += \
4436 src/journal/stacktrace.c \
4437 src/journal/stacktrace.h
4439 systemd_coredump_LDADD += \
4443 rootlibexec_PROGRAMS += \
4446 dist_pkgsysconf_DATA += \
4447 src/journal/coredump.conf
4450 systemd_coredump_LDADD += \
4454 coredumpctl_SOURCES = \
4455 src/journal/coredumpctl.c
4457 coredumpctl_LDADD = \
4458 libsystemd-journal-internal.la \
4459 libsystemd-internal.la \
4460 libsystemd-shared.la
4466 test-coredump-vacuum
4468 test_coredump_vacuum_SOURCES = \
4469 src/journal/test-coredump-vacuum.c \
4470 src/journal/coredump-vacuum.c \
4471 src/journal/coredump-vacuum.h
4473 test_coredump_vacuum_LDADD = \
4474 libsystemd-internal.la \
4475 libsystemd-shared.la
4477 dist_bashcompletion_DATA += \
4478 shell-completion/bash/coredumpctl
4480 dist_zshcompletion_DATA += \
4481 shell-completion/zsh/_coredumpctl
4484 sysctl.d/50-coredump.conf
4487 sysctl.d/50-coredump.conf
4491 sysctl.d/50-coredump.conf.in
4493 # ------------------------------------------------------------------------------
4495 systemd_binfmt_SOURCES = \
4498 systemd_binfmt_LDADD = \
4499 libsystemd-shared.la
4501 rootlibexec_PROGRAMS += \
4504 dist_systemunit_DATA += \
4505 units/proc-sys-fs-binfmt_misc.automount \
4506 units/proc-sys-fs-binfmt_misc.mount
4508 nodist_systemunit_DATA += \
4509 units/systemd-binfmt.service
4512 $(prefix)/lib/binfmt.d \
4513 $(sysconfdir)/binfmt.d
4515 SYSINIT_TARGET_WANTS += \
4516 systemd-binfmt.service \
4517 proc-sys-fs-binfmt_misc.automount
4522 units/systemd-binfmt.service.in
4524 # ------------------------------------------------------------------------------
4526 systemd_vconsole_setup_SOURCES = \
4527 src/vconsole/vconsole-setup.c
4529 systemd_vconsole_setup_LDADD = \
4530 libsystemd-shared.la
4532 rootlibexec_PROGRAMS += \
4533 systemd-vconsole-setup
4535 nodist_systemunit_DATA += \
4536 units/systemd-vconsole-setup.service
4538 nodist_udevrules_DATA += \
4539 src/vconsole/90-vconsole.rules
4541 SYSINIT_TARGET_WANTS += \
4542 systemd-vconsole-setup.service
4545 src/vconsole/90-vconsole.rules
4549 src/vconsole/90-vconsole.rules.in \
4550 units/systemd-vconsole-setup.service.in
4552 # ------------------------------------------------------------------------------
4554 systemd_bootchart_SOURCES = \
4555 src/bootchart/bootchart.c \
4556 src/bootchart/bootchart.h \
4557 src/bootchart/store.c \
4558 src/bootchart/store.h \
4559 src/bootchart/svg.c \
4562 systemd_bootchart_LDADD = \
4563 libsystemd-journal-internal.la \
4564 libsystemd-shared.la
4566 rootlibexec_PROGRAMS += \
4569 dist_pkgsysconf_DATA += \
4570 src/bootchart/bootchart.conf
4572 nodist_systemunit_DATA += \
4573 units/systemd-bootchart.service
4576 units/systemd-bootchart.service.in
4579 units/systemd-bootchart.service
4582 # ------------------------------------------------------------------------------
4583 if ENABLE_QUOTACHECK
4584 rootlibexec_PROGRAMS += \
4587 nodist_systemunit_DATA += \
4588 units/systemd-quotacheck.service
4590 systemd_quotacheck_SOURCES = \
4591 src/quotacheck/quotacheck.c
4593 systemd_quotacheck_LDADD = \
4594 libsystemd-shared.la
4598 units/systemd-quotacheck.service.in
4600 nodist_systemunit_DATA += \
4601 units/quotaon.service
4603 # ------------------------------------------------------------------------------
4604 if ENABLE_RANDOMSEED
4605 rootlibexec_PROGRAMS += \
4608 nodist_systemunit_DATA += \
4609 units/systemd-random-seed.service
4611 systemd_random_seed_SOURCES = \
4612 src/random-seed/random-seed.c
4614 systemd_random_seed_LDADD = \
4615 libsystemd-label.la \
4616 libsystemd-shared.la
4618 SYSINIT_TARGET_WANTS += \
4619 systemd-random-seed.service
4624 units/systemd-random-seed.service.in
4626 # ------------------------------------------------------------------------------
4628 rootlibexec_PROGRAMS += \
4631 nodist_systemunit_DATA += \
4632 units/systemd-backlight@.service
4634 systemd_backlight_SOURCES = \
4635 src/backlight/backlight.c
4637 systemd_backlight_LDADD = \
4638 libsystemd-label.la \
4639 libudev-internal.la \
4640 libsystemd-shared.la
4644 units/systemd-backlight@.service.in
4646 # ------------------------------------------------------------------------------
4648 rootlibexec_PROGRAMS += \
4651 nodist_systemunit_DATA += \
4652 units/systemd-rfkill@.service
4654 systemd_rfkill_SOURCES = \
4657 systemd_rfkill_LDADD = \
4658 libsystemd-label.la \
4659 libudev-internal.la \
4660 libsystemd-shared.la
4664 units/systemd-rfkill@.service.in
4666 # ------------------------------------------------------------------------------
4667 if HAVE_LIBCRYPTSETUP
4668 rootlibexec_PROGRAMS += \
4671 systemgenerator_PROGRAMS += \
4672 systemd-cryptsetup-generator
4674 dist_systemunit_DATA += \
4675 units/cryptsetup.target \
4676 units/cryptsetup-pre.target
4678 systemd_cryptsetup_SOURCES = \
4679 src/cryptsetup/cryptsetup.c
4681 systemd_cryptsetup_CFLAGS = \
4683 $(LIBCRYPTSETUP_CFLAGS)
4685 systemd_cryptsetup_LDADD = \
4686 libsystemd-label.la \
4687 libudev-internal.la \
4688 libsystemd-shared.la \
4689 $(LIBCRYPTSETUP_LIBS)
4691 systemd_cryptsetup_generator_SOURCES = \
4692 src/cryptsetup/cryptsetup-generator.c
4694 systemd_cryptsetup_generator_LDADD = \
4695 libsystemd-label.la \
4696 libsystemd-shared.la
4698 SYSINIT_TARGET_WANTS += \
4703 # ------------------------------------------------------------------------------
4705 systemd_hostnamed_SOURCES = \
4706 src/hostname/hostnamed.c
4708 systemd_hostnamed_LDADD = \
4709 libsystemd-label.la \
4710 libsystemd-internal.la \
4711 libsystemd-shared.la
4713 rootlibexec_PROGRAMS += \
4716 nodist_systemunit_DATA += \
4717 units/systemd-hostnamed.service
4719 dist_systemunit_DATA_busnames += \
4720 units/org.freedesktop.hostname1.busname
4722 dist_dbuspolicy_DATA += \
4723 src/hostname/org.freedesktop.hostname1.conf
4725 dist_dbussystemservice_DATA += \
4726 src/hostname/org.freedesktop.hostname1.service
4728 polkitpolicy_files += \
4729 src/hostname/org.freedesktop.hostname1.policy
4731 SYSTEM_UNIT_ALIASES += \
4732 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4734 BUSNAMES_TARGET_WANTS += \
4735 org.freedesktop.hostname1.busname
4737 hostnamectl_SOURCES = \
4738 src/hostname/hostnamectl.c
4740 hostnamectl_LDADD = \
4741 libsystemd-internal.la \
4742 libsystemd-shared.la
4747 dist_bashcompletion_DATA += \
4748 shell-completion/bash/hostnamectl
4750 dist_zshcompletion_DATA += \
4751 shell-completion/zsh/_hostnamectl
4755 polkitpolicy_in_files += \
4756 src/hostname/org.freedesktop.hostname1.policy.in
4759 units/systemd-hostnamed.service.in
4761 # ------------------------------------------------------------------------------
4762 dist_systemunit_DATA_busnames += \
4763 units/org.freedesktop.systemd1.busname
4765 BUSNAMES_TARGET_WANTS += \
4766 org.freedesktop.systemd1.busname
4768 # ------------------------------------------------------------------------------
4770 systemd_localed_SOURCES = \
4771 src/locale/localed.c
4773 systemd_localed_LDADD = \
4774 libsystemd-label.la \
4775 libsystemd-internal.la \
4776 libsystemd-shared.la \
4779 systemd_localed_CFLAGS = \
4783 nodist_systemunit_DATA += \
4784 units/systemd-localed.service
4786 dist_systemunit_DATA_busnames += \
4787 units/org.freedesktop.locale1.busname
4789 rootlibexec_PROGRAMS += \
4792 dist_dbuspolicy_DATA += \
4793 src/locale/org.freedesktop.locale1.conf
4795 dist_dbussystemservice_DATA += \
4796 src/locale/org.freedesktop.locale1.service
4798 polkitpolicy_files += \
4799 src/locale/org.freedesktop.locale1.policy
4801 SYSTEM_UNIT_ALIASES += \
4802 systemd-localed.service dbus-org.freedesktop.locale1.service
4804 BUSNAMES_TARGET_WANTS += \
4805 org.freedesktop.locale1.busname
4807 dist_pkgdata_DATA += \
4808 src/locale/kbd-model-map
4810 dist_noinst_SCRIPT = \
4811 src/locale/generate-kbd-model-map
4813 localectl_SOURCES = \
4814 src/locale/localectl.c
4817 libsystemd-internal.la \
4818 libsystemd-shared.la
4823 dist_bashcompletion_DATA += \
4824 shell-completion/bash/localectl
4826 dist_zshcompletion_DATA += \
4827 shell-completion/zsh/_localectl
4831 .PHONY: update-kbd-model-map
4833 polkitpolicy_in_files += \
4834 src/locale/org.freedesktop.locale1.policy.in
4837 units/systemd-localed.service.in
4839 # ------------------------------------------------------------------------------
4841 systemd_timedated_SOURCES = \
4842 src/timedate/timedated.c
4844 systemd_timedated_LDADD = \
4845 libsystemd-label.la \
4846 libsystemd-internal.la \
4847 libsystemd-shared.la
4849 rootlibexec_PROGRAMS += \
4852 dist_dbussystemservice_DATA += \
4853 src/timedate/org.freedesktop.timedate1.service
4855 dist_dbuspolicy_DATA += \
4856 src/timedate/org.freedesktop.timedate1.conf
4858 nodist_systemunit_DATA += \
4859 units/systemd-timedated.service
4861 dist_systemunit_DATA_busnames += \
4862 units/org.freedesktop.timedate1.busname
4864 polkitpolicy_files += \
4865 src/timedate/org.freedesktop.timedate1.policy
4867 SYSTEM_UNIT_ALIASES += \
4868 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4870 BUSNAMES_TARGET_WANTS += \
4871 org.freedesktop.timedate1.busname
4873 timedatectl_SOURCES = \
4874 src/timedate/timedatectl.c
4876 timedatectl_LDADD = \
4877 libsystemd-internal.la \
4878 libsystemd-shared.la
4883 dist_bashcompletion_DATA += \
4884 shell-completion/bash/timedatectl
4886 dist_zshcompletion_DATA += \
4887 shell-completion/zsh/_timedatectl
4890 polkitpolicy_in_files += \
4891 src/timedate/org.freedesktop.timedate1.policy.in
4894 units/systemd-timedated.service.in
4896 # ------------------------------------------------------------------------------
4898 systemd_timesyncd_SOURCES = \
4899 src/timesync/timesyncd.c \
4900 src/timesync/timesyncd-manager.c \
4901 src/timesync/timesyncd-manager.h \
4902 src/timesync/timesyncd-conf.c \
4903 src/timesync/timesyncd-conf.h \
4904 src/timesync/timesyncd-server.c \
4905 src/timesync/timesyncd-server.h
4907 nodist_systemd_timesyncd_SOURCES = \
4908 src/timesync/timesyncd-gperf.c
4911 src/timesync/timesyncd-gperf.gperf
4914 src/timesync/timesyncd-gperf.c
4916 systemd_timesyncd_LDADD = \
4917 libsystemd-resolve.la \
4918 libsystemd-network.la \
4919 libsystemd-label.la \
4920 libsystemd-internal.la \
4921 libsystemd-shared.la \
4924 rootlibexec_PROGRAMS += \
4927 nodist_systemunit_DATA += \
4928 units/systemd-timesyncd.service
4930 GENERAL_ALIASES += \
4931 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4934 units/systemd-timesyncd.service.in
4936 nodist_pkgsysconf_DATA += \
4937 src/timesync/timesyncd.conf
4940 src/timesync/timesyncd.conf.in
4943 src/timesync/timesyncd.conf
4946 # ------------------------------------------------------------------------------
4948 libnss_myhostname_la_SOURCES = \
4949 src/nss-myhostname/nss-myhostname.sym \
4950 src/nss-myhostname/nss-myhostname.c
4952 libnss_myhostname_la_LDFLAGS = \
4959 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4961 libnss_myhostname_la_LIBADD = \
4962 libsystemd-shared.la \
4963 libsystemd-internal.la
4965 lib_LTLIBRARIES += \
4966 libnss_myhostname.la
4969 # ------------------------------------------------------------------------------
4971 systemd_machined_SOURCES = \
4972 src/machine/machined.c \
4973 src/machine/machined.h
4975 systemd_machined_LDADD = \
4976 libsystemd-machine-core.la
4978 rootlibexec_PROGRAMS += \
4981 libsystemd_machine_core_la_SOURCES = \
4982 src/machine/machined-dbus.c \
4983 src/machine/machine.c \
4984 src/machine/machine.h \
4985 src/machine/machine-dbus.c
4987 libsystemd_machine_core_la_LIBADD = \
4988 libsystemd-label.la \
4989 libsystemd-internal.la \
4990 libudev-internal.la \
4991 libsystemd-shared.la
4993 noinst_LTLIBRARIES += \
4994 libsystemd-machine-core.la
4996 machinectl_SOURCES = \
4997 src/machine/machinectl.c
4999 machinectl_LDADD = \
5000 libsystemd-internal.la \
5001 libsystemd-shared.la
5003 rootbin_PROGRAMS += \
5006 dist_bashcompletion_DATA += \
5007 shell-completion/bash/machinectl
5009 test_machine_tables_SOURCES = \
5010 src/machine/test-machine-tables.c
5012 test_machine_tables_LDADD = \
5013 libsystemd-machine-core.la
5018 nodist_systemunit_DATA += \
5019 units/systemd-machined.service
5021 dist_systemunit_DATA += \
5024 dist_systemunit_DATA_busnames += \
5025 units/org.freedesktop.machine1.busname
5027 dist_dbussystemservice_DATA += \
5028 src/machine/org.freedesktop.machine1.service
5030 dist_dbuspolicy_DATA += \
5031 src/machine/org.freedesktop.machine1.conf
5033 dist_zshcompletion_DATA += \
5034 shell-completion/zsh/_machinectl \
5035 shell-completion/zsh/_sd_machines
5037 SYSTEM_UNIT_ALIASES += \
5038 systemd-machined.service dbus-org.freedesktop.machine1.service
5040 BUSNAMES_TARGET_WANTS += \
5041 org.freedesktop.machine1.busname
5044 units/systemd-machined.service.in
5046 libnss_mymachines_la_SOURCES = \
5047 src/nss-mymachines/nss-mymachines.sym \
5048 src/nss-mymachines/nss-mymachines.c
5050 libnss_mymachines_la_LDFLAGS = \
5057 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5059 libnss_mymachines_la_LIBADD = \
5060 libsystemd-shared.la \
5061 libsystemd-internal.la
5063 lib_LTLIBRARIES += \
5064 libnss_mymachines.la
5067 # ------------------------------------------------------------------------------
5069 systemd_resolved_SOURCES = \
5070 src/resolve/resolved.c \
5071 src/resolve/resolved-manager.c \
5072 src/resolve/resolved-manager.h \
5073 src/resolve/resolved-conf.c \
5074 src/resolve/resolved-conf.h \
5075 src/resolve/resolved-bus.c \
5076 src/resolve/resolved-bus.h \
5077 src/resolve/resolved-link.h \
5078 src/resolve/resolved-link.c \
5079 src/resolve/resolved-def.h \
5080 src/resolve/resolved-dns-domain.h \
5081 src/resolve/resolved-dns-domain.c \
5082 src/resolve/resolved-dns-rr.h \
5083 src/resolve/resolved-dns-rr.c \
5084 src/resolve/resolved-dns-question.h \
5085 src/resolve/resolved-dns-question.c \
5086 src/resolve/resolved-dns-answer.h \
5087 src/resolve/resolved-dns-answer.c \
5088 src/resolve/resolved-dns-packet.h \
5089 src/resolve/resolved-dns-packet.c \
5090 src/resolve/resolved-dns-query.h \
5091 src/resolve/resolved-dns-query.c \
5092 src/resolve/resolved-dns-transaction.h \
5093 src/resolve/resolved-dns-transaction.c \
5094 src/resolve/resolved-dns-scope.h \
5095 src/resolve/resolved-dns-scope.c \
5096 src/resolve/resolved-dns-server.h \
5097 src/resolve/resolved-dns-server.c \
5098 src/resolve/resolved-dns-cache.h \
5099 src/resolve/resolved-dns-cache.c \
5100 src/resolve/resolved-dns-zone.h \
5101 src/resolve/resolved-dns-zone.c \
5102 src/resolve/resolved-dns-stream.h \
5103 src/resolve/resolved-dns-stream.c \
5104 src/resolve/dns-type.c \
5105 src/resolve/dns-type.h \
5106 src/resolve/dns_type-from-name.h \
5107 src/resolve/dns_type-to-name.h
5109 nodist_systemd_resolved_SOURCES = \
5110 src/resolve/resolved-gperf.c
5113 src/resolve/resolved-gperf.gperf \
5114 src/resolve/dns_type-from-name.gperf
5117 src/resolve/resolved-gperf.c
5119 systemd_resolved_LDADD = \
5120 libsystemd-network.la \
5121 libsystemd-label.la \
5122 libsystemd-internal.la \
5123 libsystemd-shared.la \
5127 rootlibexec_PROGRAMS += \
5130 nodist_systemunit_DATA += \
5131 units/systemd-resolved.service
5133 dist_systemunit_DATA_busnames += \
5134 units/org.freedesktop.resolve1.busname
5136 dist_dbuspolicy_DATA += \
5137 src/resolve/org.freedesktop.resolve1.conf
5139 dist_dbussystemservice_DATA += \
5140 src/resolve/org.freedesktop.resolve1.service
5143 units/systemd-resolved.service.in
5145 SYSTEM_UNIT_ALIASES += \
5146 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5148 BUSNAMES_TARGET_WANTS += \
5149 org.freedesktop.resolve1.busname
5151 GENERAL_ALIASES += \
5152 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5154 nodist_pkgsysconf_DATA += \
5155 src/resolve/resolved.conf
5158 src/resolve/resolved.conf.in
5161 src/resolve/resolved.conf
5166 test_dns_domain_SOURCES = \
5167 src/resolve/resolved-dns-domain.h \
5168 src/resolve/resolved-dns-domain.c \
5169 src/resolve/test-dns-domain.c
5171 test_dns_domain_LDADD = \
5172 libsystemd-network.la \
5173 libsystemd-label.la \
5174 libsystemd-internal.la \
5175 libsystemd-shared.la \
5178 libnss_resolve_la_SOURCES = \
5179 src/nss-resolve/nss-resolve.sym \
5180 src/nss-resolve/nss-resolve.c
5182 libnss_resolve_la_LDFLAGS = \
5189 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5191 libnss_resolve_la_LIBADD = \
5192 libsystemd-shared.la \
5193 libsystemd-internal.la
5195 lib_LTLIBRARIES += \
5198 systemd_resolve_host_SOURCES = \
5199 src/resolve-host/resolve-host.c \
5200 src/resolve/resolved-dns-packet.c \
5201 src/resolve/resolved-dns-packet.h \
5202 src/resolve/resolved-dns-rr.c \
5203 src/resolve/resolved-dns-rr.h \
5204 src/resolve/resolved-dns-answer.c \
5205 src/resolve/resolved-dns-answer.h \
5206 src/resolve/resolved-dns-question.c \
5207 src/resolve/resolved-dns-question.h \
5208 src/resolve/resolved-dns-domain.c \
5209 src/resolve/resolved-dns-domain.h \
5210 src/resolve/dns-type.c \
5211 src/resolve/dns-type.h \
5212 src/resolve/dns_type-from-name.h \
5213 src/resolve/dns_type-to-name.h
5215 systemd_resolve_host_LDADD = \
5216 libsystemd-internal.la \
5217 libsystemd-shared.la \
5221 rootlibexec_PROGRAMS += \
5222 systemd-resolve-host
5226 # ------------------------------------------------------------------------------
5228 rootlibexec_PROGRAMS += \
5231 systemd_networkd_SOURCES = \
5232 src/network/networkd.c
5234 systemd_networkd_LDADD = \
5235 libsystemd-networkd-core.la
5237 noinst_LTLIBRARIES += \
5238 libsystemd-networkd-core.la
5240 libsystemd_networkd_core_la_CFLAGS = \
5243 libsystemd_networkd_core_la_SOURCES = \
5244 src/libsystemd-network/network-internal.h \
5245 src/network/networkd.h \
5246 src/network/networkd-link.h \
5247 src/network/networkd-netdev.h \
5248 src/network/networkd-netdev-tunnel.h \
5249 src/network/networkd-netdev-veth.h \
5250 src/network/networkd-netdev-vxlan.h \
5251 src/network/networkd-netdev-vlan.h \
5252 src/network/networkd-netdev-macvlan.h \
5253 src/network/networkd-netdev-dummy.h \
5254 src/network/networkd-netdev-tuntap.h \
5255 src/network/networkd-netdev-bond.h \
5256 src/network/networkd-netdev-bridge.h \
5257 src/network/networkd-netdev.c \
5258 src/network/networkd-netdev-tunnel.c \
5259 src/network/networkd-netdev-veth.c \
5260 src/network/networkd-netdev-vxlan.c \
5261 src/network/networkd-netdev-vlan.c \
5262 src/network/networkd-netdev-macvlan.c \
5263 src/network/networkd-netdev-dummy.c \
5264 src/network/networkd-netdev-tuntap.c \
5265 src/network/networkd-netdev-bond.c \
5266 src/network/networkd-netdev-bridge.c \
5267 src/network/networkd-link.c \
5268 src/network/networkd-ipv4ll.c \
5269 src/network/networkd-dhcp4.c \
5270 src/network/networkd-dhcp6.c \
5271 src/network/networkd-network.c \
5272 src/network/networkd-address.c \
5273 src/network/networkd-route.c \
5274 src/network/networkd-manager.c \
5275 src/network/networkd-address-pool.c
5277 nodist_libsystemd_networkd_core_la_SOURCES = \
5278 src/network/networkd-network-gperf.c \
5279 src/network/networkd-netdev-gperf.c
5281 libsystemd_networkd_core_la_LIBADD = \
5282 libudev-internal.la \
5283 libsystemd-internal.la \
5284 libsystemd-network.la \
5285 libsystemd-label.la \
5286 libsystemd-shared.la
5288 rootlibexec_PROGRAMS += \
5289 systemd-networkd-wait-online
5291 systemd_networkd_wait_online_CFLAGS = \
5294 systemd_networkd_wait_online_SOURCES = \
5295 src/libsystemd-network/network-internal.h \
5296 src/network/networkd-wait-online.h \
5297 src/network/networkd-wait-online-link.h \
5298 src/network/networkd-wait-online.c \
5299 src/network/networkd-wait-online-manager.c \
5300 src/network/networkd-wait-online-link.c
5302 systemd_networkd_wait_online_LDADD = \
5303 libsystemd-network.la \
5304 libudev-internal.la \
5305 libsystemd-internal.la \
5306 libsystemd-shared.la
5308 rootbin_PROGRAMS += \
5311 networkctl_SOURCES = \
5312 src/network/networkctl.c
5314 networkctl_LDADD = \
5315 libsystemd-internal.la \
5316 libudev-internal.la \
5317 libsystemd-shared.la \
5318 libsystemd-network.la
5320 test_network_SOURCES = \
5321 src/network/test-network.c
5323 test_network_LDADD = \
5324 libsystemd-networkd-core.la
5326 test_network_tables_SOURCES = \
5327 src/network/test-network-tables.c \
5328 src/shared/test-tables.h
5330 test_network_tables_LDADD = \
5331 libsystemd-networkd-core.la \
5338 nodist_systemunit_DATA += \
5339 units/systemd-networkd.service \
5340 units/systemd-networkd-wait-online.service
5342 GENERAL_ALIASES += \
5343 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5344 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5347 src/network/networkd-network-gperf.gperf \
5348 src/network/networkd-netdev-gperf.gperf \
5349 units/systemd-networkd.service.in \
5350 units/systemd-networkd-wait-online.service.in
5353 src/network/networkd-network-gperf.c \
5354 src/network/networkd-netdev-gperf.c
5357 # ------------------------------------------------------------------------------
5359 systemd_logind_SOURCES = \
5360 src/login/logind.c \
5363 nodist_systemd_logind_SOURCES = \
5364 src/login/logind-gperf.c
5366 systemd_logind_LDADD = \
5367 libsystemd-logind-core.la
5369 libsystemd_logind_core_la_SOURCES = \
5370 src/login/logind-core.c \
5371 src/login/logind-device.c \
5372 src/login/logind-device.h \
5373 src/login/logind-button.c \
5374 src/login/logind-button.h \
5375 src/login/logind-action.c \
5376 src/login/logind-action.h \
5377 src/login/logind-seat.c \
5378 src/login/logind-seat.h \
5379 src/login/logind-session.c \
5380 src/login/logind-session.h \
5381 src/login/logind-session-device.c \
5382 src/login/logind-session-device.h \
5383 src/login/logind-user.c \
5384 src/login/logind-user.h \
5385 src/login/logind-inhibit.c \
5386 src/login/logind-inhibit.h \
5387 src/login/logind-dbus.c \
5388 src/login/logind-session-dbus.c \
5389 src/login/logind-seat-dbus.c \
5390 src/login/logind-user-dbus.c \
5391 src/login/logind-acl.h
5393 libsystemd_logind_core_la_LIBADD = \
5394 libsystemd-label.la \
5395 libsystemd-internal.la \
5396 libudev-internal.la \
5397 libsystemd-shared.la
5400 libsystemd_logind_core_la_SOURCES += \
5401 src/login/logind-acl.c
5403 libsystemd_logind_core_la_LIBADD += \
5407 noinst_LTLIBRARIES += \
5408 libsystemd-logind-core.la
5410 systemd_user_sessions_SOURCES = \
5411 src/login/user-sessions.c
5413 systemd_user_sessions_LDADD = \
5414 libsystemd-shared.la
5416 rootlibexec_PROGRAMS += \
5418 systemd-user-sessions
5420 loginctl_SOURCES = \
5421 src/login/loginctl.c \
5422 src/login/sysfs-show.c
5425 libsystemd-internal.la \
5426 libudev-internal.la \
5427 libsystemd-shared.la
5429 rootbin_PROGRAMS += \
5432 dist_bashcompletion_DATA += \
5433 shell-completion/bash/loginctl
5435 dist_zshcompletion_DATA += \
5436 shell-completion/zsh/_loginctl \
5437 shell-completion/zsh/_systemd-inhibit
5439 systemd_inhibit_SOURCES = \
5442 systemd_inhibit_LDADD = \
5443 libsystemd-internal.la \
5444 libsystemd-shared.la
5446 rootbin_PROGRAMS += \
5449 test_login_SOURCES = \
5450 src/libsystemd/sd-login/test-login.c
5452 test_login_LDADD = \
5453 libsystemd-internal.la \
5454 libsystemd-shared.la
5456 test_login_shared_SOURCES = \
5457 src/login/test-login-shared.c
5459 test_login_shared_LDADD = \
5460 libsystemd-internal.la \
5461 libsystemd-shared.la
5463 test_inhibit_SOURCES = \
5464 src/login/test-inhibit.c
5466 test_inhibit_LDADD = \
5467 libsystemd-internal.la \
5468 libsystemd-shared.la
5470 test_login_tables_SOURCES = \
5471 src/login/test-login-tables.c
5473 test_login_tables_LDADD = \
5474 libsystemd-logind-core.la
5485 pam_systemd_la_SOURCES = \
5486 src/login/pam_systemd.sym \
5487 src/login/pam_systemd.c
5489 pam_systemd_la_CFLAGS = \
5494 pam_systemd_la_LDFLAGS = \
5500 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5502 pam_systemd_la_LIBADD = \
5503 libsystemd-internal.la \
5504 libsystemd-shared.la \
5507 pamlib_LTLIBRARIES = \
5510 dist_pamconf_DATA = \
5511 src/login/systemd-user
5514 nodist_systemunit_DATA += \
5515 units/systemd-logind.service \
5516 units/systemd-user-sessions.service
5518 dist_systemunit_DATA += \
5521 dist_systemunit_DATA_busnames += \
5522 units/org.freedesktop.login1.busname
5524 dist_dbussystemservice_DATA += \
5525 src/login/org.freedesktop.login1.service
5527 dist_dbuspolicy_DATA += \
5528 src/login/org.freedesktop.login1.conf
5530 dist_pkgsysconf_DATA += \
5531 src/login/logind.conf
5533 polkitpolicy_files += \
5534 src/login/org.freedesktop.login1.policy
5539 MULTI_USER_TARGET_WANTS += \
5540 systemd-logind.service \
5541 systemd-user-sessions.service
5543 SYSTEM_UNIT_ALIASES += \
5544 systemd-logind.service dbus-org.freedesktop.login1.service
5546 BUSNAMES_TARGET_WANTS += \
5547 org.freedesktop.login1.busname
5549 dist_udevrules_DATA += \
5550 src/login/70-uaccess.rules \
5551 src/login/70-power-switch.rules
5553 nodist_udevrules_DATA += \
5554 src/login/71-seat.rules \
5555 src/login/73-seat-late.rules
5558 src/login/logind-gperf.c \
5559 src/login/71-seat.rules \
5560 src/login/73-seat-late.rules
5563 polkitpolicy_in_files += \
5564 src/login/org.freedesktop.login1.policy.in
5567 src/login/logind-gperf.gperf \
5568 src/login/71-seat.rules.in \
5569 src/login/73-seat-late.rules.in \
5570 units/systemd-logind.service.in \
5571 units/systemd-user-sessions.service.in
5573 # ------------------------------------------------------------------------------
5574 if HAVE_PYTHON_DEVEL
5575 pkgpyexec_LTLIBRARIES = \
5582 _journal_la_SOURCES = \
5583 src/python-systemd/_journal.c
5585 _journal_la_CFLAGS = \
5587 -fvisibility=default \
5588 $(PYTHON_DEVEL_CFLAGS)
5590 _journal_la_LDFLAGS = \
5596 _journal_la_LIBADD = \
5597 $(PYTHON_DEVEL_LIBS) \
5600 id128_la_SOURCES = \
5601 src/python-systemd/id128.c \
5602 src/python-systemd/pyutil.c \
5603 src/python-systemd/pyutil.h
5605 nodist_id128_la_SOURCES = \
5606 src/python-systemd/id128-constants.h
5610 -fvisibility=default \
5611 $(PYTHON_DEVEL_CFLAGS) \
5612 -I$(top_builddir)/src/python-systemd
5614 id128_la_LDFLAGS = \
5621 $(PYTHON_DEVEL_LIBS) \
5622 libsystemd-shared.la \
5625 _daemon_la_SOURCES = \
5626 src/python-systemd/_daemon.c \
5627 src/python-systemd/pyutil.c \
5628 src/python-systemd/pyutil.h
5630 _daemon_la_CFLAGS = \
5632 -fvisibility=default \
5633 $(PYTHON_DEVEL_CFLAGS) \
5634 -I$(top_builddir)/src/python-systemd
5636 _daemon_la_LDFLAGS = \
5642 _daemon_la_LIBADD = \
5643 $(PYTHON_DEVEL_LIBS) \
5644 libsystemd-shared.la \
5647 _reader_la_SOURCES = \
5648 src/python-systemd/_reader.c \
5649 src/python-systemd/pyutil.c \
5650 src/python-systemd/pyutil.h
5652 _reader_la_CFLAGS = \
5654 -fvisibility=default \
5655 $(PYTHON_DEVEL_CFLAGS)
5657 _reader_la_LDFLAGS = \
5663 _reader_la_LIBADD = \
5664 $(PYTHON_DEVEL_LIBS) \
5665 libsystemd-shared.la \
5668 login_la_SOURCES = \
5669 src/python-systemd/login.c \
5670 src/python-systemd/pyutil.c \
5671 src/python-systemd/pyutil.h
5675 -fvisibility=default \
5676 $(PYTHON_DEVEL_CFLAGS)
5678 login_la_LDFLAGS = \
5685 $(PYTHON_DEVEL_LIBS) \
5686 libsystemd-shared.la \
5689 dist_pkgpyexec_PYTHON = \
5690 src/python-systemd/journal.py \
5691 src/python-systemd/daemon.py \
5692 src/python-systemd/__init__.py
5694 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5695 $(AM_V_at)$(MKDIR_P) $(dir $@)
5696 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5699 src/python-systemd/id128-constants.h
5701 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5703 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5704 $(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/
5705 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5708 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5709 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5712 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5713 $(MAKE) DESTDIR="$$dir" install && \
5714 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5719 CLEAN_LOCAL_HOOKS += clean-sphinx
5721 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5724 -rm -rf docs/html/python-systemd/
5726 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5728 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5729 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5731 # ------------------------------------------------------------------------------
5732 if ENABLE_COMPAT_LIBS
5734 src/compat-libs/linkwarning.h
5736 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5737 $(AM_V_at)$(MKDIR_P) $(dir $@)
5738 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5741 libsystemd-journal.c \
5742 libsystemd-login.c \
5743 libsystemd-id128.c \
5746 libsystemd_journal_la_SOURCES = \
5747 libsystemd-journal.c \
5748 src/compat-libs/libsystemd-journal.sym
5750 libsystemd_journal_la_CPPFLAGS = \
5752 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5754 libsystemd_journal_la_LDFLAGS = \
5756 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5757 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5759 libsystemd_journal_la_LIBADD = \
5760 libsystemd-journal-internal.la \
5761 libsystemd-internal.la \
5762 libsystemd-shared.la
5764 libsystemd_login_la_SOURCES = \
5765 libsystemd-login.c \
5766 src/compat-libs/libsystemd-login.sym
5768 libsystemd_login_la_CPPFLAGS = \
5770 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5772 libsystemd_login_la_LDFLAGS = \
5774 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5775 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5777 libsystemd_login_la_LIBADD = \
5778 libsystemd-internal.la \
5779 libsystemd-shared.la
5781 libsystemd_id128_la_SOURCES = \
5782 libsystemd-id128.c \
5783 src/compat-libs/libsystemd-id128.sym
5785 libsystemd_id128_la_CPPFLAGS = \
5787 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5789 libsystemd_id128_la_LDFLAGS = \
5791 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5792 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5794 libsystemd_id128_la_LIBADD = \
5795 libsystemd-internal.la \
5796 libsystemd-shared.la
5798 libsystemd_daemon_la_SOURCES = \
5799 libsystemd-daemon.c \
5800 src/compat-libs/libsystemd-daemon.sym
5802 libsystemd_daemon_la_CPPFLAGS = \
5804 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5806 libsystemd_daemon_la_LDFLAGS = \
5808 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5809 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5811 libsystemd_daemon_la_LIBADD = \
5812 libsystemd-internal.la \
5813 libsystemd-shared.la
5815 lib_LTLIBRARIES += \
5816 libsystemd-journal.la \
5817 libsystemd-login.la \
5818 libsystemd-id128.la \
5819 libsystemd-daemon.la
5821 pkgconfiglib_DATA += \
5822 src/compat-libs/libsystemd-journal.pc \
5823 src/compat-libs/libsystemd-login.pc \
5824 src/compat-libs/libsystemd-id128.pc \
5825 src/compat-libs/libsystemd-daemon.pc
5827 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5828 compat-lib-install-hook:
5829 libname=libsystemd-login.so && $(move-to-rootlibdir)
5830 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5831 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5832 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5834 compat-lib-uninstall-hook:
5835 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5836 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5837 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5838 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5840 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5841 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5845 src/compat-libs/libsystemd-journal.pc.in \
5846 src/compat-libs/libsystemd-login.pc.in \
5847 src/compat-libs/libsystemd-id128.pc.in \
5848 src/compat-libs/libsystemd-daemon.pc.in
5850 # ------------------------------------------------------------------------------
5852 '|rootlibexecdir=$(rootlibexecdir)|' \
5853 '|rootbindir=$(rootbindir)|' \
5854 '|bindir=$(bindir)|' \
5855 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5856 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5857 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5858 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5859 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5860 '|pkgdatadir=$(pkgdatadir)|' \
5861 '|systemunitdir=$(systemunitdir)|' \
5862 '|userunitdir=$(userunitdir)|' \
5863 '|systempresetdir=$(systempresetdir)|' \
5864 '|userpresetdir=$(userpresetdir)|' \
5865 '|udevhwdbdir=$(udevhwdbdir)|' \
5866 '|udevrulesdir=$(udevrulesdir)|' \
5867 '|catalogdir=$(catalogdir)|' \
5868 '|tmpfilesdir=$(tmpfilesdir)|' \
5869 '|sysusersdir=$(sysusersdir)|' \
5870 '|sysctldir=$(sysctldir)|' \
5871 '|systemgeneratordir=$(systemgeneratordir)|' \
5872 '|usergeneratordir=$(usergeneratordir)|' \
5873 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5874 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5875 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5876 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5877 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5878 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5879 '|prefix=$(prefix)|' \
5880 '|exec_prefix=$(exec_prefix)|' \
5881 '|libdir=$(libdir)|' \
5882 '|includedir=$(includedir)|' \
5883 '|VERSION=$(VERSION)|' \
5884 '|rootprefix=$(rootprefix)|' \
5885 '|udevlibexecdir=$(udevlibexecdir)|' \
5886 '|SUSHELL=$(SUSHELL)|' \
5887 '|DEBUGTTY=$(DEBUGTTY)|' \
5890 '|MKDIR_P=$(MKDIR_P)|' \
5891 '|QUOTAON=$(QUOTAON)|' \
5892 '|QUOTACHECK=$(QUOTACHECK)|' \
5893 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5894 '|VARLOGDIR=$(varlogdir)|' \
5895 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5896 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5897 '|PYTHON=$(PYTHON)|' \
5898 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5899 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5900 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5901 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5902 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5903 '|TTY_GID=$(TTY_GID)|' \
5904 '|systemsleepdir=$(systemsleepdir)|' \
5905 '|systemshutdowndir=$(systemshutdowndir)|' \
5906 '|binfmtdir=$(binfmtdir)|' \
5907 '|modulesloaddir=$(modulesloaddir)|'
5910 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5911 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5920 sysctl.d/%: sysctl.d/%.in
5929 src/core/macros.%: src/core/macros.%.in
5932 src/%.policy.in: src/%.policy.in.in
5935 shell-completion/%: shell-completion/%.in
5946 $(AM_V_GEN)chmod +x $@
5948 src/%.c: src/%.gperf
5949 $(AM_V_at)$(MKDIR_P) $(dir $@)
5950 $(AM_V_GPERF)$(GPERF) < $< > $@
5953 $(AM_V_at)$(MKDIR_P) $(dir $@)
5954 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5956 sysusers.d/%: sysusers.d/%.m4
5957 $(AM_V_at)$(MKDIR_P) $(dir $@)
5958 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5960 tmpfiles.d/%: tmpfiles.d/%.m4
5961 $(AM_V_at)$(MKDIR_P) $(dir $@)
5962 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5966 $(AM_V_at)$(MKDIR_P) $(dir $@)
5967 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5969 units/user/%: units/user/%.m4
5970 $(AM_V_at)$(MKDIR_P) $(dir $@)
5971 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5974 nodist_polkitpolicy_DATA = \
5975 $(polkitpolicy_files) \
5976 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5980 $(polkitpolicy_in_files) \
5981 $(polkitpolicy_in_in_files)
5984 $(nodist_systemunit_DATA) \
5985 $(nodist_userunit_DATA) \
5986 $(pkgconfigdata_DATA) \
5987 $(pkgconfiglib_DATA) \
5988 $(nodist_polkitpolicy_DATA)
5990 # ------------------------------------------------------------------------------
5992 man/custom-entities.ent: configure.ac
5993 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5994 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5995 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5999 man/custom-entities.ent
6004 --stringparam man.output.quietly 1 \
6005 --stringparam funcsynopsis.style ansi \
6006 --stringparam man.authors.section.enabled 0 \
6007 --stringparam man.copyright.section.enabled 0 \
6008 --stringparam systemd.version $(VERSION) \
6009 --path '$(builddir)/man:$(srcdir)/man'
6011 XSLTPROC_PROCESS_MAN = \
6012 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6014 XSLTPROC_PROCESS_HTML = \
6015 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6017 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6018 $(XSLTPROC_PROCESS_MAN)
6020 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6021 $(XSLTPROC_PROCESS_MAN)
6023 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6024 $(XSLTPROC_PROCESS_MAN)
6026 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6027 $(XSLTPROC_PROCESS_MAN)
6029 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6030 $(XSLTPROC_PROCESS_MAN)
6032 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6033 $(XSLTPROC_PROCESS_HTML)
6036 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6042 man/custom-html.xsl \
6045 # ------------------------------------------------------------------------------
6048 docs/sysvinit/README
6053 docs/sysvinit/README: docs/sysvinit/README.in
6056 docs/var-log/README: docs/var-log/README.in
6060 docs/sysvinit/README \
6065 docs/sysvinit/README.in \
6066 docs/var-log/README.in
6068 SOCKETS_TARGET_WANTS += \
6069 systemd-initctl.socket \
6070 systemd-shutdownd.socket
6074 RUNLEVEL1_TARGET_WANTS += \
6075 systemd-update-utmp-runlevel.service
6076 RUNLEVEL2_TARGET_WANTS += \
6077 systemd-update-utmp-runlevel.service
6078 RUNLEVEL3_TARGET_WANTS += \
6079 systemd-update-utmp-runlevel.service
6080 RUNLEVEL4_TARGET_WANTS += \
6081 systemd-update-utmp-runlevel.service
6082 RUNLEVEL5_TARGET_WANTS += \
6083 systemd-update-utmp-runlevel.service
6086 SYSINIT_TARGET_WANTS += \
6087 systemd-update-utmp.service
6090 SYSINIT_TARGET_WANTS += \
6091 systemd-update-done.service
6093 LOCAL_FS_TARGET_WANTS += \
6094 systemd-remount-fs.service \
6097 MULTI_USER_TARGET_WANTS += \
6099 systemd-ask-password-wall.path
6101 SYSINIT_TARGET_WANTS += \
6102 dev-hugepages.mount \
6104 sys-kernel-config.mount \
6105 sys-kernel-debug.mount \
6106 sys-fs-fuse-connections.mount \
6107 systemd-sysctl.service \
6108 systemd-ask-password-console.path
6111 SYSTEM_UNIT_ALIASES += \
6112 poweroff.target runlevel0.target \
6113 rescue.target runlevel1.target \
6114 multi-user.target runlevel2.target \
6115 multi-user.target runlevel3.target \
6116 multi-user.target runlevel4.target \
6117 graphical.target runlevel5.target \
6118 reboot.target runlevel6.target
6121 SYSTEM_UNIT_ALIASES += \
6122 graphical.target default.target \
6123 reboot.target ctrl-alt-del.target \
6124 getty@.service autovt@.service
6126 USER_UNIT_ALIASES += \
6127 $(systemunitdir)/shutdown.target shutdown.target \
6128 $(systemunitdir)/sockets.target sockets.target \
6129 $(systemunitdir)/timers.target timers.target \
6130 $(systemunitdir)/paths.target paths.target \
6131 $(systemunitdir)/bluetooth.target bluetooth.target \
6132 $(systemunitdir)/printer.target printer.target \
6133 $(systemunitdir)/sound.target sound.target \
6134 $(systemunitdir)/smartcard.target smartcard.target
6137 USER_UNIT_ALIASES += \
6138 $(systemunitdir)/busnames.target busnames.target
6141 GENERAL_ALIASES += \
6142 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6143 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6144 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6145 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6149 $(systemunitdir)/runlevel1.target.wants \
6150 $(systemunitdir)/runlevel2.target.wants \
6151 $(systemunitdir)/runlevel3.target.wants \
6152 $(systemunitdir)/runlevel4.target.wants \
6153 $(systemunitdir)/runlevel5.target.wants
6157 $(prefix)/lib/modules-load.d \
6158 $(sysconfdir)/modules-load.d \
6159 $(prefix)/lib/systemd/network \
6160 $(sysconfdir)/systemd/network \
6161 $(prefix)/lib/sysctl.d \
6162 $(sysconfdir)/sysctl.d \
6163 $(prefix)/lib/kernel/install.d \
6164 $(sysconfdir)/kernel/install.d \
6165 $(systemshutdowndir) \
6167 $(systemgeneratordir) \
6168 $(usergeneratordir) \
6171 $(pkgsysconfdir)/system \
6172 $(pkgsysconfdir)/system/multi-user.target.wants \
6173 $(pkgsysconfdir)/system/getty.target.wants \
6174 $(pkgsysconfdir)/user \
6175 $(dbussessionservicedir) \
6176 $(sysconfdir)/xdg/systemd
6178 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6180 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6182 install-data-hook: $(INSTALL_DATA_HOOKS)
6184 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6186 clean-local: $(CLEAN_LOCAL_HOOKS)
6187 rm -rf $(abs_srcdir)/install-tree
6188 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6189 $(abs_srcdir)/hwdb/iab.txt
6191 DISTCHECK_CONFIGURE_FLAGS = \
6192 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6193 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6194 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6195 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6196 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6197 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6198 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6199 --with-rootprefix=$$dc_install_base \
6200 --disable-split-usr \
6202 --enable-compat-libs
6205 DISTCHECK_CONFIGURE_FLAGS += \
6206 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6207 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6209 DISTCHECK_CONFIGURE_FLAGS += \
6210 --with-sysvinit-path= \
6211 --with-sysvrcnd-path=
6215 DISTCHECK_CONFIGURE_FLAGS += \
6220 DISTCHECK_CONFIGURE_FLAGS += \
6225 # Require python when making dist
6227 .PHONY: dist-check-python
6230 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6234 dist-check-compat-libs:
6235 if !ENABLE_COMPAT_LIBS
6236 @echo "*** compat-libs must be enabled in order to make dist"
6240 dist: dist-check-python dist-check-compat-libs
6242 # check "broken" platforms limited toolchains for link breakage before we release
6245 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6249 ( cd $(top_srcdir)/hwdb && \
6250 wget -N http://www.linux-usb.org/usb.ids \
6251 http://pci-ids.ucw.cz/v2.2/pci.ids \
6252 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6253 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6256 .PHONY: kdbus-update
6258 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6259 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6263 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6265 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6267 upload: all check dist
6268 scp systemd-$(VERSION).tar.xz $(www_target)
6271 doc-sync: all destdir-sphinx
6272 gtkdoc-rebase --html-dir=docs/libudev/html --online
6273 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6274 gtkdoc-rebase --html-dir=docs/gudev/html --online
6275 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6276 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6277 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6281 scp man/*.html gardel:public/systemd-man/
6283 .PHONY: lennart-fedora
6285 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6287 .PHONY: install-tree
6289 rm -rf $(abs_srcdir)/install-tree
6290 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6291 tree $(abs_srcdir)/install-tree
6293 # Let's run all tests of the test suite, but under valgrind. Let's
6294 # exclude the one perl script we have in there
6295 .PHONY: valgrind-tests
6296 valgrind-tests: $(TESTS)
6297 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6298 if file $$f | grep -q shell; then \
6299 echo -e "$${x}Skipping non-binary $$f"; else \
6300 echo -e "$${x}Running $$f"; \
6301 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6306 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6308 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6309 $(AM_V_GEN)cat $^ > $@
6311 .PHONY: check-api-docs
6312 check-api-docs: exported man
6313 $(AM_V_GEN)for symbol in `cat exported` ; do \
6314 if test -f $(builddir)/man/$$symbol.html ; then \
6315 echo " Symbol $$symbol() is documented." ; \
6317 echo "‣ Symbol $$symbol() lacks documentation." ; \
6321 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6322 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6324 undefined defined: $(ALL_OBJECTS)
6325 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6326 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6327 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6333 .PHONY: check-api-unused
6334 check-api-unused: defined undefined exported
6335 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6337 .PHONY: check-includes
6338 check-includes: $(top_srcdir)/tools/check-includes.pl
6339 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6340 | xargs $(top_srcdir)/tools/check-includes.pl
6343 $(top_srcdir)/tools/check-includes.pl
6345 # Stupid test that everything purported to be exported really is
6346 define generate-sym-test
6347 $(AM_V_at)$(MKDIR_P) $(dir $@)
6348 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6349 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6350 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6351 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6352 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6353 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6354 $(AM_V_at)printf 'return 0; }\n' >> $@
6357 test-libsystemd-sym.c: \
6358 $(top_builddir)/src/libsystemd/libsystemd.sym \
6359 src/systemd/sd-journal.h \
6360 src/systemd/sd-daemon.h \
6361 src/systemd/sd-login.h \
6362 src/systemd/sd-bus.h \
6363 src/systemd/sd-utf8.h \
6364 src/systemd/sd-resolve.h \
6365 src/systemd/sd-path.h
6366 $(generate-sym-test)
6368 test-libudev-sym.c: \
6369 src/libudev/libudev.sym \
6371 $(generate-sym-test)
6373 test_libsystemd_sym_SOURCES = \
6374 test-libsystemd-sym.c
6375 test_libsystemd_sym_LDADD = \
6378 test_libudev_sym_SOURCES = \
6380 test_libudev_sym_CFLAGS = \
6382 -Wno-deprecated-declarations
6383 test_libudev_sym_LDADD = \
6387 $(test_libsystemd_sym_SOURCES) \
6388 $(test_libudev_sym_SOURCES)
6391 test-libsystemd-sym \
6396 cppcheck --enable=all -q $(top_srcdir)
6398 # Used to extract compile flags for YCM.
6403 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6406 tools/gdb-sd_dump_hashmaps.py