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-network \
221 -I $(top_srcdir)/src/libsystemd-terminal \
224 AM_CFLAGS = $(OUR_CFLAGS)
225 AM_LDFLAGS = $(OUR_LDFLAGS)
227 # ------------------------------------------------------------------------------
228 define move-to-rootlibdir
229 if test "$(libdir)" != "$(rootlibdir)"; then \
230 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
231 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
232 rm -f $(DESTDIR)$(libdir)/$$libname && \
233 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
234 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
240 RUNLEVEL1_TARGET_WANTS =
241 RUNLEVEL2_TARGET_WANTS =
242 RUNLEVEL3_TARGET_WANTS =
243 RUNLEVEL4_TARGET_WANTS =
244 RUNLEVEL5_TARGET_WANTS =
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 SYSINIT_TARGET_WANTS =
249 SOCKETS_TARGET_WANTS =
250 BUSNAMES_TARGET_WANTS =
251 TIMERS_TARGET_WANTS =
252 USER_SOCKETS_TARGET_WANTS =
253 USER_DEFAULT_TARGET_WANTS =
254 USER_BUSNAMES_TARGET_WANTS =
256 SYSTEM_UNIT_ALIASES =
260 install-target-wants-hook:
261 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
276 install-busnames-target-wants-hook:
277 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
281 [ -z "$$what" ] || ( \
282 dir=$(DESTDIR)$$dir/$$wants.wants && \
283 $(MKDIR_P) -m 0755 $$dir && \
286 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
289 install-directories-hook:
290 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
292 install-aliases-hook:
293 set -- $(SYSTEM_UNIT_ALIASES) && \
294 dir=$(systemunitdir) && $(install-aliases)
295 set -- $(USER_UNIT_ALIASES) && \
296 dir=$(userunitdir) && $(install-relative-aliases)
297 set -- $(GENERAL_ALIASES) && \
298 dir= && $(install-relative-aliases)
300 define install-aliases
301 while [ -n "$$1" ]; do \
302 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
303 rm -f $(DESTDIR)$$dir/$$2 && \
304 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
305 shift 2 || exit $$?; \
309 define install-relative-aliases
310 while [ -n "$$1" ]; do \
311 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
312 rm -f $(DESTDIR)$$dir/$$2 && \
313 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
314 shift 2 || exit $$?; \
318 install-touch-usr-hook:
319 touch -c $(DESTDIR)/$(prefix)
321 INSTALL_EXEC_HOOKS += \
322 install-target-wants-hook \
323 install-directories-hook \
324 install-aliases-hook \
325 install-touch-usr-hook
328 INSTALL_EXEC_HOOKS += \
329 install-busnames-target-wants-hook
332 # ------------------------------------------------------------------------------
333 AM_V_M4 = $(AM_V_M4_$(V))
334 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
335 AM_V_M4_0 = @echo " M4 " $@;
337 AM_V_XSLT = $(AM_V_XSLT_$(V))
338 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
339 AM_V_XSLT_0 = @echo " XSLT " $@;
341 AM_V_GPERF = $(AM_V_GPERF_$(V))
342 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
343 AM_V_GPERF_0 = @echo " GPERF " $@;
345 AM_V_LN = $(AM_V_LN_$(V))
346 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
347 AM_V_LN_0 = @echo " LN " $@;
349 AM_V_RM = $(AM_V_RM_$(V))
350 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
351 AM_V_RM_0 = @echo " RM " $@;
353 # ------------------------------------------------------------------------------
357 systemd-ask-password \
358 systemd-tty-ask-password-agent \
359 systemd-machine-id-setup \
366 systemd-detect-virt \
373 src/kernel-install/kernel-install
375 dist_kernelinstall_SCRIPTS = \
376 src/kernel-install/50-depmod.install \
377 src/kernel-install/90-loaderentry.install
379 rootlibexec_PROGRAMS = \
381 systemd-cgroups-agent \
386 systemd-reply-password \
388 systemd-machine-id-commit \
393 systemd-socket-proxyd \
397 rootlibexec_PROGRAMS += \
401 systemgenerator_PROGRAMS = \
402 systemd-getty-generator \
403 systemd-fstab-generator \
404 systemd-system-update-generator \
405 systemd-debug-generator
407 dist_bashcompletion_DATA = \
408 shell-completion/bash/busctl \
409 shell-completion/bash/journalctl \
410 shell-completion/bash/systemd-analyze \
411 shell-completion/bash/systemd-cat \
412 shell-completion/bash/systemd-cgls \
413 shell-completion/bash/systemd-cgtop \
414 shell-completion/bash/systemd-delta \
415 shell-completion/bash/systemd-detect-virt \
416 shell-completion/bash/systemd-nspawn \
417 shell-completion/bash/systemd-run \
418 shell-completion/bash/udevadm \
419 shell-completion/bash/kernel-install
421 nodist_bashcompletion_DATA = \
422 shell-completion/bash/systemctl
424 dist_zshcompletion_DATA = \
425 shell-completion/zsh/_journalctl \
426 shell-completion/zsh/_udevadm \
427 shell-completion/zsh/_kernel-install \
428 shell-completion/zsh/_systemd-nspawn \
429 shell-completion/zsh/_systemd-analyze \
430 shell-completion/zsh/_systemd-run \
431 shell-completion/zsh/_sd_hosts_or_user_at_host \
432 shell-completion/zsh/_sd_outputmodes \
433 shell-completion/zsh/_sd_unit_files \
434 shell-completion/zsh/_systemd-delta \
435 shell-completion/zsh/_systemd
437 nodist_zshcompletion_DATA = \
438 shell-completion/zsh/_systemctl
441 shell-completion/bash/systemctl.in \
442 shell-completion/zsh/_systemctl.in
445 $(nodist_bashcompletion_DATA) \
446 $(nodist_zshcompletion_DATA)
449 sysctl.d/50-default.conf
451 dist_systemunit_DATA = \
452 units/graphical.target \
453 units/multi-user.target \
454 units/emergency.target \
455 units/sysinit.target \
460 units/local-fs.target \
461 units/local-fs-pre.target \
462 units/initrd.target \
463 units/initrd-fs.target \
464 units/initrd-root-fs.target \
465 units/remote-fs.target \
466 units/remote-fs-pre.target \
467 units/network.target \
468 units/network-pre.target \
469 units/network-online.target \
470 units/nss-lookup.target \
471 units/nss-user-lookup.target \
472 units/poweroff.target \
473 units/reboot.target \
474 units/rescue.target \
475 units/rpcbind.target \
476 units/time-sync.target \
477 units/shutdown.target \
479 units/umount.target \
480 units/sigpwr.target \
482 units/sockets.target \
483 units/timers.target \
485 units/suspend.target \
487 units/slices.target \
490 units/systemd-initctl.socket \
491 units/systemd-shutdownd.socket \
492 units/syslog.socket \
493 units/dev-hugepages.mount \
494 units/dev-mqueue.mount \
495 units/sys-kernel-config.mount \
496 units/sys-kernel-debug.mount \
497 units/sys-fs-fuse-connections.mount \
499 units/printer.target \
501 units/bluetooth.target \
502 units/smartcard.target \
503 units/systemd-ask-password-wall.path \
504 units/systemd-ask-password-console.path \
505 units/systemd-udevd-control.socket \
506 units/systemd-udevd-kernel.socket \
507 units/system-update.target \
508 units/initrd-switch-root.target
511 dist_systemunit_DATA += \
512 $(dist_systemunit_DATA_busnames)
515 dist_systemunit_DATA_busnames += \
516 units/busnames.target
518 nodist_systemunit_DATA = \
519 units/getty@.service \
520 units/serial-getty@.service \
521 units/console-shell.service \
522 units/console-getty.service \
523 units/container-getty@.service \
524 units/systemd-initctl.service \
525 units/systemd-shutdownd.service \
526 units/systemd-remount-fs.service \
527 units/systemd-ask-password-wall.service \
528 units/systemd-ask-password-console.service \
529 units/systemd-sysctl.service \
530 units/emergency.service \
531 units/rescue.service \
532 units/user@.service \
533 units/systemd-suspend.service \
534 units/systemd-halt.service \
535 units/systemd-poweroff.service \
536 units/systemd-reboot.service \
537 units/systemd-kexec.service \
538 units/systemd-fsck@.service \
539 units/systemd-fsck-root.service \
540 units/systemd-machine-id-commit.service \
541 units/systemd-udevd.service \
542 units/systemd-udev-trigger.service \
543 units/systemd-udev-settle.service \
544 units/systemd-udev-hwdb-update.service \
545 units/debug-shell.service \
546 units/initrd-parse-etc.service \
547 units/initrd-cleanup.service \
548 units/initrd-udevadm-cleanup-db.service \
549 units/initrd-switch-root.service \
550 units/systemd-nspawn@.service \
551 units/systemd-update-done.service
554 nodist_systemunit_DATA += \
555 units/systemd-update-utmp.service \
556 units/systemd-update-utmp-runlevel.service
559 dist_userunit_DATA = \
560 units/user/basic.target \
561 units/user/default.target \
562 units/user/exit.target
564 nodist_userunit_DATA = \
565 units/user/systemd-exit.service
567 dist_systempreset_DATA = \
568 system-preset/90-systemd.preset
571 units/getty@.service.m4 \
572 units/serial-getty@.service.m4 \
573 units/console-shell.service.m4.in \
574 units/console-getty.service.m4.in \
575 units/container-getty@.service.m4.in \
576 units/rescue.service.in \
577 units/systemd-initctl.service.in \
578 units/systemd-shutdownd.service.in \
579 units/systemd-remount-fs.service.in \
580 units/systemd-update-utmp.service.in \
581 units/systemd-update-utmp-runlevel.service.in \
582 units/systemd-ask-password-wall.service.in \
583 units/systemd-ask-password-console.service.in \
584 units/systemd-sysctl.service.in \
585 units/emergency.service.in \
586 units/systemd-halt.service.in \
587 units/systemd-poweroff.service.in \
588 units/systemd-reboot.service.in \
589 units/systemd-kexec.service.in \
590 units/user/systemd-exit.service.in \
591 units/systemd-fsck@.service.in \
592 units/systemd-fsck-root.service.in \
593 units/systemd-machine-id-commit.service.in \
594 units/user@.service.m4.in \
595 units/debug-shell.service.in \
596 units/systemd-suspend.service.in \
597 units/quotaon.service.in \
598 units/initrd-parse-etc.service.in \
599 units/initrd-cleanup.service.in \
600 units/initrd-udevadm-cleanup-db.service.in \
601 units/initrd-switch-root.service.in \
602 units/systemd-nspawn@.service.in \
603 units/systemd-update-done.service.in
606 units/console-shell.service.m4 \
607 units/console-getty.service.m4 \
608 units/container-getty@.service.m4 \
609 units/user@.service.m4
612 nodist_systemunit_DATA += \
613 units/rc-local.service \
614 units/halt-local.service
616 systemgenerator_PROGRAMS += \
617 systemd-sysv-generator \
618 systemd-rc-local-generator
622 units/rc-local.service.in \
623 units/halt-local.service.in
625 # automake is broken and can't handle files with a dash in front
626 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
628 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
630 units-uninstall-hook:
631 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
633 INSTALL_DATA_HOOKS += units-install-hook
634 UNINSTALL_DATA_HOOKS += units-uninstall-hook
643 src/libsystemd/sd-bus/PORTING-DBUS1 \
644 src/libsystemd/sd-bus/DIFFERENCES \
645 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
647 @INTLTOOL_POLICY_RULE@
649 # ------------------------------------------------------------------------------
654 include Makefile-man.am
656 .PHONY: man update-man-list
657 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
660 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
662 ${XML_FILES:.xml=.html}
664 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
681 $(AM_V_at)$(MKDIR_P) $(dir $@)
682 $(AM_V_LN)$(LN_S) -f ../../man $@
691 man/index.html: man/systemd.index.html
692 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
700 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
701 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
702 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
704 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
705 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
706 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
707 @echo "Makefile-man.am has been regenerated"
709 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
710 $(AM_V_at)$(MKDIR_P) $(dir $@)
711 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
713 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
714 $(AM_V_at)$(MKDIR_P) $(dir $@)
715 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
718 man/systemd.index.xml \
720 man/systemd.directives.xml \
721 man/glib-event-glue.c
724 man/systemd.index.xml \
725 man/systemd.directives.xml
736 tools/make-man-index.py \
737 tools/make-directive-index.py \
740 # ------------------------------------------------------------------------------
741 noinst_LTLIBRARIES += \
744 libsystemd_shared_la_SOURCES = \
745 src/shared/capability.c \
746 src/shared/capability.h \
747 src/shared/linux/auto_dev-ioctl.h \
748 src/shared/ioprio.h \
749 src/shared/missing.h \
750 src/shared/initreq.h \
751 src/shared/securebits.h \
752 src/shared/special.h \
754 src/shared/unaligned.h \
757 src/shared/sparse-endian.h \
758 src/shared/refcnt.h \
759 src/shared/udev-util.h \
760 src/shared/device-nodes.c \
761 src/shared/device-nodes.h \
766 src/shared/architecture.c \
767 src/shared/architecture.h \
768 src/shared/efivars.c \
769 src/shared/efivars.h \
770 src/shared/path-util.c \
771 src/shared/path-util.h \
772 src/shared/time-util.c \
773 src/shared/time-util.h \
774 src/shared/locale-util.c \
775 src/shared/locale-util.h \
776 src/shared/mempool.c \
777 src/shared/mempool.h \
778 src/shared/hashmap.c \
779 src/shared/hashmap.h \
780 src/shared/siphash24.c \
781 src/shared/siphash24.h \
787 src/shared/sleep-config.c \
788 src/shared/sleep-config.h \
791 src/shared/env-util.c \
792 src/shared/env-util.h \
793 src/shared/strbuf.c \
794 src/shared/strbuf.h \
795 src/shared/strxcpyx.c \
796 src/shared/strxcpyx.h \
797 src/shared/conf-parser.c \
798 src/shared/conf-parser.h \
801 src/shared/ratelimit.h \
802 src/shared/ratelimit.c \
803 src/shared/exit-status.c \
804 src/shared/exit-status.h \
807 src/shared/gunicode.c \
808 src/shared/gunicode.h \
811 src/shared/socket-util.c \
812 src/shared/socket-util.h \
813 src/shared/in-addr-util.c \
814 src/shared/in-addr-util.h \
815 src/shared/ether-addr-util.h \
816 src/shared/conf-files.c \
817 src/shared/conf-files.h \
818 src/shared/cgroup-util.c \
819 src/shared/cgroup-util.h \
820 src/shared/cgroup-show.c \
821 src/shared/cgroup-show.h \
822 src/shared/unit-name.c \
823 src/shared/unit-name.h \
824 src/shared/utmp-wtmp.h \
825 src/shared/watchdog.c \
826 src/shared/watchdog.h \
827 src/shared/spawn-ask-password-agent.c \
828 src/shared/spawn-ask-password-agent.h \
829 src/shared/replace-var.c \
830 src/shared/replace-var.h \
831 src/shared/spawn-polkit-agent.c \
832 src/shared/spawn-polkit-agent.h \
833 src/shared/clock-util.c \
834 src/shared/clock-util.h \
835 src/shared/time-dst.c \
836 src/shared/time-dst.h \
837 src/shared/calendarspec.c \
838 src/shared/calendarspec.h \
839 src/shared/fileio.c \
840 src/shared/fileio.h \
841 src/shared/output-mode.h \
842 src/shared/MurmurHash2.c \
843 src/shared/MurmurHash2.h \
844 src/shared/acpi-fpdt.h \
845 src/shared/acpi-fpdt.c \
846 src/shared/boot-timestamps.h \
847 src/shared/boot-timestamps.c \
850 src/shared/smack-util.c \
851 src/shared/smack-util.h \
852 src/shared/apparmor-util.c \
853 src/shared/apparmor-util.h \
854 src/shared/ima-util.c \
855 src/shared/ima-util.h \
856 src/shared/ptyfwd.c \
857 src/shared/ptyfwd.h \
858 src/shared/errno-list.c \
859 src/shared/errno-list.h \
860 src/shared/af-list.c \
861 src/shared/af-list.h \
862 src/shared/arphrd-list.c \
863 src/shared/arphrd-list.h \
864 src/shared/cap-list.c \
865 src/shared/cap-list.h \
870 src/shared/bus-label.c \
871 src/shared/bus-label.h \
873 src/shared/clean-ipc.h \
874 src/shared/clean-ipc.c \
875 src/shared/login-shared.c \
876 src/shared/login-shared.h \
879 src/shared/barrier.c \
880 src/shared/barrier.h \
887 src/shared/base-filesystem.c \
888 src/shared/base-filesystem.h \
889 src/shared/memfd-util.c \
890 src/shared/memfd-util.h \
891 src/shared/uid-range.c \
892 src/shared/uid-range.h \
893 src/shared/nss-util.h
896 libsystemd_shared_la_SOURCES += \
897 src/shared/utmp-wtmp.c
900 nodist_libsystemd_shared_la_SOURCES = \
901 src/shared/errno-from-name.h \
902 src/shared/errno-to-name.h \
903 src/shared/af-from-name.h \
904 src/shared/af-to-name.h \
905 src/shared/arphrd-from-name.h \
906 src/shared/arphrd-to-name.h \
907 src/shared/cap-from-name.h \
908 src/shared/cap-to-name.h
910 libsystemd_shared_la_CFLAGS = \
916 libsystemd_shared_la_LIBADD = \
919 # ------------------------------------------------------------------------------
920 noinst_LTLIBRARIES += \
923 libsystemd_units_la_SOURCES = \
924 src/shared/install.c \
925 src/shared/install.h \
926 src/shared/install-printf.c \
927 src/shared/install-printf.h \
928 src/shared/path-lookup.c \
929 src/shared/path-lookup.h \
930 src/shared/specifier.c \
931 src/shared/specifier.h
933 # ------------------------------------------------------------------------------
934 noinst_LTLIBRARIES += \
937 libsystemd_label_la_SOURCES = \
938 src/shared/socket-label.c \
941 src/shared/selinux-util.c \
942 src/shared/selinux-util.h \
943 src/shared/mkdir-label.c \
944 src/shared/ask-password-api.c \
945 src/shared/ask-password-api.h \
946 src/shared/switch-root.h \
947 src/shared/switch-root.c \
948 src/shared/fileio-label.c \
949 src/shared/fileio-label.h \
950 src/shared/dev-setup.c \
951 src/shared/dev-setup.h \
952 src/shared/dropin.c \
953 src/shared/dropin.h \
954 src/shared/condition.c \
955 src/shared/condition.h \
956 src/shared/generator.h \
957 src/shared/generator.c
959 libsystemd_label_la_CFLAGS = \
963 libsystemd_label_la_LIBADD = \
966 # -----------------------------------------------------------------------------
969 dist_systemunit_DATA += \
970 units/ldconfig.service
972 SYSINIT_TARGET_WANTS += \
976 # ------------------------------------------------------------------------------
979 noinst_LTLIBRARIES += \
980 libsystemd-seccomp.la
982 libsystemd_seccomp_la_SOURCES = \
983 src/shared/seccomp-util.h \
984 src/shared/seccomp-util.c
986 libsystemd_seccomp_la_CFLAGS = \
990 libsystemd_seccomp_la_LIBADD = \
994 # ------------------------------------------------------------------------------
995 noinst_LTLIBRARIES += \
998 libsystemd_logs_la_SOURCES = \
999 src/shared/logs-show.c \
1000 src/shared/logs-show.h
1002 # ------------------------------------------------------------------------------
1004 noinst_LTLIBRARIES += \
1007 libsystemd_acl_la_SOURCES = \
1008 src/shared/acl-util.c \
1009 src/shared/acl-util.h
1011 libsystemd_acl_la_CFLAGS = \
1015 libsystemd_acl_la_LIBADD = \
1019 # ------------------------------------------------------------------------------
1020 noinst_LTLIBRARIES += \
1023 libsystemd_core_la_SOURCES = \
1026 src/core/unit-printf.c \
1027 src/core/unit-printf.h \
1030 src/core/manager.c \
1031 src/core/manager.h \
1032 src/core/transaction.c \
1033 src/core/transaction.h \
1034 src/core/load-fragment.c \
1035 src/core/load-fragment.h \
1036 src/core/service.c \
1037 src/core/service.h \
1040 src/core/busname.c \
1041 src/core/busname.h \
1042 src/core/bus-common.c \
1043 src/core/bus-common.h \
1044 src/core/bus-endpoint.c \
1045 src/core/bus-endpoint.h \
1048 src/core/snapshot.c \
1049 src/core/snapshot.h \
1054 src/core/automount.c \
1055 src/core/automount.h \
1066 src/core/load-dropin.c \
1067 src/core/load-dropin.h \
1068 src/core/execute.c \
1069 src/core/execute.h \
1074 src/core/dbus-manager.c \
1075 src/core/dbus-manager.h \
1076 src/core/dbus-unit.c \
1077 src/core/dbus-unit.h \
1078 src/core/dbus-job.c \
1079 src/core/dbus-job.h \
1080 src/core/dbus-service.c \
1081 src/core/dbus-service.h \
1082 src/core/dbus-socket.c \
1083 src/core/dbus-socket.h \
1084 src/core/dbus-busname.c \
1085 src/core/dbus-busname.h \
1086 src/core/dbus-target.c \
1087 src/core/dbus-target.h \
1088 src/core/dbus-snapshot.c \
1089 src/core/dbus-snapshot.h \
1090 src/core/dbus-device.c \
1091 src/core/dbus-device.h \
1092 src/core/dbus-mount.c \
1093 src/core/dbus-mount.h \
1094 src/core/dbus-automount.c \
1095 src/core/dbus-automount.h \
1096 src/core/dbus-swap.c \
1097 src/core/dbus-swap.h \
1098 src/core/dbus-timer.c \
1099 src/core/dbus-timer.h \
1100 src/core/dbus-path.c \
1101 src/core/dbus-path.h \
1102 src/core/dbus-slice.c \
1103 src/core/dbus-slice.h \
1104 src/core/dbus-scope.c \
1105 src/core/dbus-scope.h \
1106 src/core/dbus-execute.c \
1107 src/core/dbus-execute.h \
1108 src/core/dbus-kill.c \
1109 src/core/dbus-kill.h \
1110 src/core/dbus-cgroup.c \
1111 src/core/dbus-cgroup.h \
1114 src/core/selinux-access.c \
1115 src/core/selinux-access.h \
1116 src/core/selinux-setup.c \
1117 src/core/selinux-setup.h \
1118 src/core/smack-setup.c \
1119 src/core/smack-setup.h \
1120 src/core/ima-setup.c \
1121 src/core/ima-setup.h \
1122 src/core/locale-setup.h \
1123 src/core/locale-setup.c \
1124 src/core/hostname-setup.c \
1125 src/core/hostname-setup.h \
1126 src/core/machine-id-setup.c \
1127 src/core/machine-id-setup.h \
1128 src/core/mount-setup.c \
1129 src/core/mount-setup.h \
1130 src/core/kmod-setup.c \
1131 src/core/kmod-setup.h \
1132 src/core/loopback-setup.h \
1133 src/core/loopback-setup.c \
1134 src/core/namespace.c \
1135 src/core/namespace.h \
1137 src/core/sysfs-show.h \
1138 src/core/killall.h \
1139 src/core/killall.c \
1140 src/core/audit-fd.c \
1141 src/core/audit-fd.h \
1142 src/core/show-status.c \
1143 src/core/show-status.h \
1144 src/core/failure-action.c \
1145 src/core/failure-action.h
1147 nodist_libsystemd_core_la_SOURCES = \
1148 src/core/load-fragment-gperf.c \
1149 src/core/load-fragment-gperf-nulstr.c
1151 libsystemd_core_la_CFLAGS = \
1156 $(APPARMOR_CFLAGS) \
1161 libsystemd_core_la_LIBADD = \
1162 libsystemd-units.la \
1163 libsystemd-label.la \
1164 libudev-internal.la \
1165 libsystemd-shared.la \
1166 libsystemd-internal.la \
1175 libsystemd_core_la_LIBADD += \
1176 libsystemd-seccomp.la
1179 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1180 $(AM_V_at)$(MKDIR_P) $(dir $@)
1181 $(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 ";" }' < $< > $@
1184 src/core/load-fragment-gperf.gperf.m4
1187 src/core/load-fragment-gperf.gperf \
1188 src/core/load-fragment-gperf.c \
1189 src/core/load-fragment-gperf-nulstr.c \
1190 src/shared/errno-list.txt \
1191 src/shared/errno-from-name.gperf \
1192 src/shared/af-list.txt \
1193 src/shared/af-from-name.gperf \
1194 src/shared/arphrd-list.txt \
1195 src/shared/arphrd-from-name.gperf \
1196 src/shared/cap-list.txt \
1197 src/shared/cap-from-name.gperf \
1198 src/resolve/dns_type-list.txt \
1199 src/resolve/dns_type-from-name.gperf
1202 src/shared/errno-from-name.h \
1203 src/shared/errno-to-name.h \
1204 src/shared/af-from-name.h \
1205 src/shared/af-to-name.h \
1206 src/shared/arphrd-from-name.h \
1207 src/shared/arphrd-to-name.h \
1208 src/shared/cap-from-name.h \
1209 src/shared/cap-to-name.h \
1210 src/resolve/dns_type-from-name.h \
1211 src/resolve/dns_type-to-name.h
1213 %-from-name.gperf: %-list.txt
1214 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1216 %-from-name.h: %-from-name.gperf
1217 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1220 src/shared/errno-list.txt:
1221 $(AM_V_at)$(MKDIR_P) $(dir $@)
1222 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1224 src/shared/errno-to-name.h: src/shared/errno-list.txt
1225 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1228 src/shared/af-list.txt:
1229 $(AM_V_at)$(MKDIR_P) $(dir $@)
1230 $(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; }' >$@
1232 src/shared/af-to-name.h: src/shared/af-list.txt
1233 $(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 "};"}' <$< >$@
1236 src/shared/arphrd-list.txt:
1237 $(AM_V_at)$(MKDIR_P) $(dir $@)
1238 $(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_//' >$@
1240 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1241 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1243 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1244 $(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 }' <$< >$@
1247 src/shared/cap-list.txt:
1248 $(AM_V_at)$(MKDIR_P) $(dir $@)
1249 $(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 >$@
1251 src/shared/cap-to-name.h: src/shared/cap-list.txt
1252 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1254 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1255 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1257 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1258 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1261 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1262 $(AM_V_at)$(MKDIR_P) $(dir $@)
1263 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1265 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1266 $(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" }' <$< >$@
1268 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1269 $(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 }' <$< >$@
1271 # ------------------------------------------------------------------------------
1280 libsystemd-core.la \
1283 dist_pkgsysconf_DATA += \
1284 src/core/system.conf \
1287 dist_dbuspolicy_DATA += \
1288 src/core/org.freedesktop.systemd1.conf
1290 dist_dbussystemservice_DATA += \
1291 src/core/org.freedesktop.systemd1.service
1293 polkitpolicy_in_in_files += \
1294 src/core/org.freedesktop.systemd1.policy.in.in
1296 pkgconfigdata_DATA = \
1299 nodist_rpmmacros_DATA = \
1300 src/core/macros.systemd
1303 src/core/systemd.pc.in \
1304 src/core/macros.systemd.in
1307 src/core/macros.systemd \
1308 src/core/org.freedesktop.systemd1.policy.in
1310 # ------------------------------------------------------------------------------
1353 test-strip-tab-ansi \
1385 test/daughter.service \
1390 test/grandchild.service \
1392 test/hello-after-sleep.target \
1393 test/hello.service \
1395 test/parent-deep.slice \
1398 test/sched_idle_bad.service \
1399 test/sched_idle_ok.service \
1400 test/sched_rr_bad.service \
1401 test/sched_rr_change.service \
1402 test/sched_rr_ok.service \
1403 test/shutdown.target \
1404 test/sleep.service \
1405 test/sockets.target \
1407 test/sysinit.target \
1408 test/testsuite.target \
1409 test/timers.target \
1410 test/unstoppable.service \
1411 test/path-changed.service \
1412 test/path-directorynotempty.service \
1413 test/path-existsglob.service \
1414 test/path-exists.service \
1415 test/path-makedirectory.service \
1416 test/path-modified.service \
1417 test/path-mycustomunit.service \
1418 test/path-service.service \
1419 test/path-changed.path \
1420 test/path-directorynotempty.path \
1421 test/path-existsglob.path \
1422 test/path-exists.path \
1423 test/path-makedirectory.path \
1424 test/path-modified.path \
1425 test/path-unit.path \
1426 test/exec-environment-empty.service \
1427 test/exec-environment-multiple.service \
1428 test/exec-environment.service \
1429 test/exec-group.service \
1430 test/exec-ignoresigpipe-no.service \
1431 test/exec-ignoresigpipe-yes.service \
1432 test/exec-personality-x86-64.service \
1433 test/exec-personality-x86.service \
1434 test/exec-privatedevices-no.service \
1435 test/exec-privatedevices-yes.service \
1436 test/exec-privatetmp-no.service \
1437 test/exec-privatetmp-yes.service \
1438 test/exec-systemcallerrornumber.service \
1439 test/exec-systemcallfilter-failing2.service \
1440 test/exec-systemcallfilter-failing.service \
1441 test/exec-systemcallfilter-not-failing2.service \
1442 test/exec-systemcallfilter-not-failing.service \
1443 test/exec-user.service \
1444 test/exec-workingdirectory.service \
1445 test/bus-policy/hello.conf \
1446 test/bus-policy/methods.conf \
1447 test/bus-policy/ownerships.conf \
1448 test/bus-policy/signals.conf \
1449 test/bus-policy/check-own-rules.conf \
1450 test/bus-policy/many-rules.conf \
1451 test/bus-policy/test.conf
1455 src/test/test-helper.h
1457 test_device_nodes_SOURCES = \
1458 src/test/test-device-nodes.c
1460 test_device_nodes_LDADD = \
1461 libsystemd-shared.la
1463 test_engine_SOURCES = \
1464 src/test/test-engine.c
1466 test_engine_CFLAGS = \
1470 test_engine_LDADD = \
1471 libsystemd-core.la \
1474 test_job_type_SOURCES = \
1475 src/test/test-job-type.c
1477 test_job_type_CFLAGS = \
1481 test_job_type_LDADD = \
1482 libsystemd-core.la \
1495 test_loopback_SOURCES = \
1496 src/test/test-loopback.c
1498 test_loopback_LDADD = \
1501 test_hostname_SOURCES = \
1502 src/test/test-hostname.c
1504 test_hostname_LDADD = \
1511 test_boot_timestamp_SOURCES = \
1512 src/test/test-boot-timestamps.c
1514 test_boot_timestamp_LDADD = \
1515 libsystemd-shared.la
1518 test_unit_name_SOURCES = \
1519 src/test/test-unit-name.c
1521 test_unit_name_CFLAGS = \
1525 test_unit_name_LDADD = \
1526 libsystemd-core.la \
1529 test_unit_file_SOURCES = \
1530 src/test/test-unit-file.c
1532 test_unit_file_CFLAGS = \
1536 test_unit_file_LDADD = \
1537 libsystemd-core.la \
1540 test_utf8_SOURCES = \
1541 src/test/test-utf8.c
1544 libsystemd-shared.la
1546 test_capability_SOURCES = \
1547 src/test/test-capability.c
1549 test_capability_LDADD = \
1550 libsystemd-shared.la
1552 test_async_SOURCES = \
1553 src/test/test-async.c
1555 test_async_LDADD = \
1556 libsystemd-shared.la
1558 test_locale_util_SOURCES = \
1559 src/test/test-locale-util.c
1561 test_locale_util_LDADD = \
1562 libsystemd-shared.la
1564 test_copy_SOURCES = \
1565 src/test/test-copy.c
1568 libsystemd-shared.la
1570 test_condition_SOURCES = \
1571 src/test/test-condition.c
1573 test_condition_LDADD = \
1574 libsystemd-label.la \
1575 libsystemd-internal.la \
1576 libsystemd-shared.la
1578 test_fdset_SOURCES = \
1579 src/test/test-fdset.c
1581 test_fdset_LDADD = \
1582 libsystemd-shared.la \
1583 libsystemd-internal.la
1585 test_ratelimit_SOURCES = \
1586 src/test/test-ratelimit.c
1588 test_ratelimit_LDADD = \
1589 libsystemd-shared.la
1591 test_util_SOURCES = \
1592 src/test/test-util.c
1596 libsystemd-shared.la
1598 test_uid_range_SOURCES = \
1599 src/test/test-uid-range.c
1601 test_uid_range_LDADD = \
1602 libsystemd-shared.la
1604 test_cap_list_SOURCES = \
1605 src/test/test-cap-list.c
1607 test_cap_list_LDADD = \
1608 libsystemd-shared.la
1610 test_socket_util_SOURCES = \
1611 src/test/test-socket-util.c
1613 test_socket_util_LDADD = \
1614 libsystemd-shared.la
1616 test_ring_SOURCES = \
1617 src/test/test-ring.c
1620 libsystemd-shared.la
1622 test_barrier_SOURCES = \
1623 src/test/test-barrier.c
1625 test_barrier_LDADD = \
1626 libsystemd-shared.la
1628 test_pty_SOURCES = \
1634 test_tmpfiles_SOURCES = \
1635 src/test/test-tmpfiles.c
1637 test_tmpfiles_LDADD = \
1638 libsystemd-shared.la
1640 test_namespace_SOURCES = \
1641 src/test/test-namespace.c
1643 test_namespace_LDADD = \
1647 src/test/test-hashmap-ordered.c
1650 src/test/test-hashmap-ordered.c
1652 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1653 $(AM_V_at)$(MKDIR_P) $(dir $@)
1654 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1655 { if (!match($$0, "^#include")) \
1656 gsub(/hashmap/, "ordered_hashmap"); \
1657 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1658 gsub(/Hashmap/, "OrderedHashmap"); \
1661 nodist_test_hashmap_SOURCES = \
1662 src/test/test-hashmap-ordered.c
1664 test_hashmap_SOURCES = \
1665 src/test/test-hashmap.c \
1666 src/test/test-hashmap-plain.c
1668 test_hashmap_LDADD = \
1669 libsystemd-shared.la
1671 test_set_SOURCES = \
1675 libsystemd-shared.la
1677 test_xml_SOURCES = \
1681 libsystemd-shared.la
1683 test_list_SOURCES = \
1684 src/test/test-list.c
1687 libsystemd-shared.la
1689 test_unaligned_LDADD = \
1690 libsystemd-shared.la
1692 test_unaligned_SOURCES = \
1693 src/test/test-unaligned.c
1695 test_tables_SOURCES = \
1696 src/test/test-tables.c \
1697 src/shared/test-tables.h \
1698 src/bus-proxyd/bus-policy.c \
1699 src/bus-proxyd/bus-policy.h \
1700 src/journal/journald-server.c \
1701 src/journal/journald-server.h
1703 test_tables_CPPFLAGS = \
1705 -I$(top_srcdir)/src/bus-proxyd
1707 test_tables_CFLAGS = \
1711 test_tables_LDADD = \
1712 libsystemd-logs.la \
1713 libsystemd-journal-internal.la \
1714 libsystemd-journal-core.la \
1715 libsystemd-core.la \
1719 test_prioq_SOURCES = \
1720 src/test/test-prioq.c
1722 test_prioq_LDADD = \
1723 libsystemd-shared.la
1725 test_fileio_SOURCES = \
1726 src/test/test-fileio.c
1728 test_fileio_LDADD = \
1729 libsystemd-shared.la
1731 test_time_SOURCES = \
1732 src/test/test-time.c
1735 libsystemd-shared.la
1737 test_architecture_SOURCES = \
1738 src/test/test-architecture.c
1740 test_architecture_LDADD = \
1741 libsystemd-shared.la
1743 test_log_SOURCES = \
1747 libsystemd-shared.la
1749 test_ipcrm_SOURCES = \
1750 src/test/test-ipcrm.c
1752 test_ipcrm_LDADD = \
1753 libsystemd-shared.la \
1756 test_rtnl_manual_SOURCES = \
1757 src/test/test-rtnl-manual.c
1759 test_rtnl_manual_CFLAGS = \
1763 test_rtnl_manual_LDADD = \
1764 libsystemd-internal.la \
1765 libsystemd-shared.la \
1768 test_ellipsize_SOURCES = \
1769 src/test/test-ellipsize.c
1771 test_ellipsize_LDADD = \
1772 libsystemd-shared.la
1774 test_date_SOURCES = \
1775 src/test/test-date.c
1778 libsystemd-shared.la
1780 test_sleep_SOURCES = \
1781 src/test/test-sleep.c
1783 test_sleep_LDADD = \
1786 test_replace_var_SOURCES = \
1787 src/test/test-replace-var.c
1789 test_replace_var_LDADD = \
1790 libsystemd-shared.la
1792 test_calendarspec_SOURCES = \
1793 src/test/test-calendarspec.c
1795 test_calendarspec_LDADD = \
1796 libsystemd-shared.la
1798 test_strip_tab_ansi_SOURCES = \
1799 src/test/test-strip-tab-ansi.c
1801 test_strip_tab_ansi_LDADD = \
1802 libsystemd-shared.la
1804 test_daemon_SOURCES = \
1805 src/test/test-daemon.c
1807 test_daemon_LDADD = \
1808 libsystemd-internal.la \
1809 libsystemd-shared.la
1811 test_cgroup_SOURCES = \
1812 src/test/test-cgroup.c
1814 test_cgroup_LDADD = \
1815 libsystemd-label.la \
1816 libsystemd-shared.la \
1817 libsystemd-internal.la
1819 test_cgroup_mask_SOURCES = \
1820 src/test/test-cgroup-mask.c
1822 test_cgroup_mask_CPPFLAGS = \
1825 test_cgroup_mask_CFLAGS = \
1829 test_cgroup_mask_LDADD = \
1830 libsystemd-core.la \
1833 test_cgroup_util_SOURCES = \
1834 src/test/test-cgroup-util.c
1836 test_cgroup_util_LDADD = \
1837 libsystemd-label.la \
1838 libsystemd-internal.la \
1839 libsystemd-shared.la
1841 test_env_replace_SOURCES = \
1842 src/test/test-env-replace.c
1844 test_env_replace_LDADD = \
1845 libsystemd-shared.la
1847 test_strbuf_SOURCES = \
1848 src/test/test-strbuf.c
1850 test_strbuf_LDADD = \
1851 libsystemd-shared.la
1853 test_strv_SOURCES = \
1854 src/test/test-strv.c
1857 libsystemd-units.la \
1858 libsystemd-internal.la \
1859 libsystemd-shared.la
1861 test_path_util_SOURCES = \
1862 src/test/test-path-util.c
1864 test_path_util_LDADD = \
1865 libsystemd-shared.la
1867 test_path_SOURCES = \
1868 src/test/test-path.c
1870 test_path_CFLAGS = \
1876 test_execute_SOURCES = \
1877 src/test/test-execute.c
1879 test_execute_CFLAGS = \
1882 test_execute_LDADD = \
1885 test_strxcpyx_SOURCES = \
1886 src/test/test-strxcpyx.c
1888 test_strxcpyx_LDADD = \
1889 libsystemd-shared.la
1891 test_install_SOURCES = \
1892 src/test/test-install.c
1894 test_install_LDADD = \
1895 libsystemd-units.la \
1896 libsystemd-label.la \
1897 libsystemd-shared.la \
1898 libsystemd-internal.la
1900 test_watchdog_SOURCES = \
1901 src/test/test-watchdog.c
1903 test_watchdog_LDADD = \
1904 libsystemd-shared.la
1906 test_sched_prio_SOURCES = \
1907 src/test/test-sched-prio.c
1909 test_sched_prio_CPPFLAGS = \
1912 test_sched_prio_CFLAGS = \
1916 test_sched_prio_LDADD = \
1917 libsystemd-core.la \
1920 test_conf_files_SOURCES = \
1921 src/test/test-conf-files.c
1923 test_conf_files_LDADD = \
1924 libsystemd-shared.la
1926 test_bus_policy_SOURCES = \
1927 src/bus-proxyd/test-bus-policy.c \
1928 src/bus-proxyd/bus-policy.c \
1929 src/bus-proxyd/bus-policy.h
1931 test_bus_policy_LDADD = \
1932 libsystemd-internal.la \
1933 libsystemd-shared.la
1935 # ------------------------------------------------------------------------------
1936 ## .PHONY so it always rebuilds it
1937 .PHONY: coverage lcov-run lcov-report coverage-sync
1939 # run lcov from scratch, always
1944 coverage_dir = coverage
1945 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1948 # reset run coverage tests
1950 @rm -rf $(coverage_dir)
1951 lcov $(coverage_opts) --zerocounters
1954 # generate report based on current coverage data
1956 $(MKDIR_P) $(coverage_dir)
1957 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1958 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1959 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1960 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1961 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1963 # lcov doesn't work properly with vpath builds, make sure that bad
1964 # output is not uploaded by mistake.
1965 coverage-sync: coverage
1966 test "$(builddir)" = "$(srcdir)"
1967 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1970 lcov-run lcov-report:
1971 echo "Need to reconfigure with --enable-coverage"
1974 # ------------------------------------------------------------------------------
1975 systemd_analyze_SOURCES = \
1976 src/analyze/analyze.c \
1977 src/analyze/analyze-verify.c \
1978 src/analyze/analyze-verify.h
1980 systemd_verify_CFLAGS = \
1984 systemd_analyze_LDADD = \
1985 libsystemd-core.la \
1986 libsystemd-internal.la \
1987 libsystemd-shared.la \
1990 # ------------------------------------------------------------------------------
1991 systemd_initctl_SOURCES = \
1992 src/initctl/initctl.c
1994 systemd_initctl_LDADD = \
1995 libsystemd-internal.la \
1996 libsystemd-shared.la
1998 # ------------------------------------------------------------------------------
1999 systemd_update_utmp_SOURCES = \
2000 src/update-utmp/update-utmp.c
2002 systemd_update_utmp_CFLAGS = \
2006 systemd_update_utmp_LDADD = \
2007 libsystemd-internal.la \
2008 libsystemd-shared.la \
2011 # ------------------------------------------------------------------------------
2012 systemd_update_done_SOURCES = \
2013 src/update-done/update-done.c
2015 systemd_update_done_LDADD = \
2016 libsystemd-internal.la \
2017 libsystemd-label.la \
2018 libsystemd-shared.la
2020 # ------------------------------------------------------------------------------
2021 systemd_shutdownd_SOURCES = \
2022 src/shutdownd/shutdownd.c
2024 systemd_shutdownd_LDADD = \
2025 libsystemd-label.la \
2026 libsystemd-internal.la \
2027 libsystemd-shared.la
2030 src/systemd/sd-shutdown.h
2032 # ------------------------------------------------------------------------------
2033 systemd_shutdown_SOURCES = \
2036 src/core/shutdown.c \
2037 src/core/mount-setup.c \
2038 src/core/mount-setup.h \
2039 src/core/killall.h \
2042 systemd_shutdown_LDADD = \
2043 libsystemd-label.la \
2044 libudev-internal.la \
2045 libsystemd-shared.la
2047 # ------------------------------------------------------------------------------
2049 systemd_modules_load_SOURCES = \
2050 src/modules-load/modules-load.c
2052 systemd_modules_load_CFLAGS = \
2056 systemd_modules_load_LDADD = \
2057 libsystemd-shared.la \
2060 rootlibexec_PROGRAMS += \
2061 systemd-modules-load
2063 nodist_systemunit_DATA += \
2064 units/systemd-modules-load.service
2066 SYSINIT_TARGET_WANTS += \
2067 systemd-modules-load.service
2070 nodist_systemunit_DATA += \
2071 units/kmod-static-nodes.service
2073 SYSINIT_TARGET_WANTS += \
2074 kmod-static-nodes.service
2079 units/systemd-modules-load.service.in \
2080 units/kmod-static-nodes.service.in
2082 # ------------------------------------------------------------------------------
2084 systemd_tmpfiles_SOURCES = \
2085 src/tmpfiles/tmpfiles.c
2087 systemd_tmpfiles_LDADD = \
2088 libsystemd-units.la \
2089 libsystemd-label.la \
2090 libsystemd-internal.la \
2091 libsystemd-shared.la
2093 rootbin_PROGRAMS += \
2096 dist_systemunit_DATA += \
2097 units/systemd-tmpfiles-clean.timer
2099 nodist_systemunit_DATA += \
2100 units/systemd-tmpfiles-setup-dev.service \
2101 units/systemd-tmpfiles-setup.service \
2102 units/systemd-tmpfiles-clean.service
2104 nodist_tmpfiles_DATA = \
2107 dist_tmpfiles_DATA = \
2108 tmpfiles.d/systemd.conf \
2109 tmpfiles.d/systemd-nologin.conf \
2110 tmpfiles.d/tmp.conf \
2111 tmpfiles.d/x11.conf \
2115 dist_tmpfiles_DATA += \
2116 tmpfiles.d/legacy.conf
2119 SYSINIT_TARGET_WANTS += \
2120 systemd-tmpfiles-setup-dev.service \
2121 systemd-tmpfiles-setup.service
2123 dist_zshcompletion_DATA += \
2124 shell-completion/zsh/_systemd-tmpfiles
2126 TIMERS_TARGET_WANTS += \
2127 systemd-tmpfiles-clean.timer
2131 $(sysconfdir)/tmpfiles.d
2135 tmpfiles.d/etc.conf.m4 \
2136 units/systemd-tmpfiles-setup-dev.service.in \
2137 units/systemd-tmpfiles-setup.service.in \
2138 units/systemd-tmpfiles-clean.service.in
2143 # ------------------------------------------------------------------------------
2145 systemd_sysusers_SOURCES = \
2146 src/sysusers/sysusers.c
2148 systemd_sysusers_LDADD = \
2149 libsystemd-units.la \
2150 libsystemd-label.la \
2151 libsystemd-internal.la \
2152 libsystemd-shared.la
2154 rootbin_PROGRAMS += \
2157 nodist_systemunit_DATA += \
2158 units/systemd-sysusers.service
2160 SYSINIT_TARGET_WANTS += \
2161 systemd-sysusers.service
2163 dist_sysusers_DATA = \
2164 sysusers.d/systemd.conf
2166 nodist_sysusers_DATA = \
2167 sysusers.d/basic.conf
2170 units/systemd-sysusers.service.in \
2171 sysusers.d/basic.conf.in
2174 sysusers.d/basic.conf
2180 # ------------------------------------------------------------------------------
2181 dist_factory_etc_DATA = \
2182 factory/etc/nsswitch.conf
2185 dist_factory_pam_DATA = \
2186 factory/etc/pam.d/system-auth \
2187 factory/etc/pam.d/other
2190 # ------------------------------------------------------------------------------
2192 systemd_firstboot_SOURCES = \
2193 src/firstboot/firstboot.c
2195 systemd_firstboot_LDADD = \
2196 libsystemd-units.la \
2197 libsystemd-label.la \
2198 libsystemd-internal.la \
2199 libsystemd-shared.la \
2202 rootbin_PROGRAMS += \
2205 nodist_systemunit_DATA += \
2206 units/systemd-firstboot.service
2209 units/systemd-firstboot.service.in
2211 SYSINIT_TARGET_WANTS += \
2212 systemd-firstboot.service
2215 # ------------------------------------------------------------------------------
2216 systemd_machine_id_setup_SOURCES = \
2217 src/machine-id-setup/machine-id-setup-main.c \
2218 src/core/machine-id-setup.c \
2219 src/core/machine-id-setup.h
2221 systemd_machine_id_setup_LDADD = \
2222 libsystemd-label.la \
2223 libsystemd-internal.la \
2224 libsystemd-shared.la
2226 # ------------------------------------------------------------------------------
2227 systemd_sysctl_SOURCES = \
2230 systemd_sysctl_LDADD = \
2231 libsystemd-shared.la
2233 # ------------------------------------------------------------------------------
2234 systemd_sleep_SOURCES = \
2237 systemd_sleep_LDADD = \
2238 libsystemd-shared.la
2240 # ------------------------------------------------------------------------------
2241 systemd_fsck_SOURCES = \
2244 systemd_fsck_LDADD = \
2245 libsystemd-internal.la \
2246 libudev-internal.la \
2247 libsystemd-shared.la
2249 # ------------------------------------------------------------------------------
2250 systemd_machine_id_commit_SOURCES = \
2251 src/machine-id-commit/machine-id-commit.c \
2252 src/core/machine-id-setup.c \
2253 src/core/machine-id-setup.h
2255 systemd_machine_id_commit_LDADD = \
2256 libsystemd-label.la \
2257 libsystemd-internal.la \
2258 libsystemd-shared.la
2260 SYSINIT_TARGET_WANTS += \
2261 systemd-machine-id-commit.service
2263 # ------------------------------------------------------------------------------
2264 systemd_ac_power_SOURCES = \
2265 src/ac-power/ac-power.c
2267 systemd_ac_power_LDADD = \
2268 libudev-internal.la \
2269 libsystemd-shared.la
2271 # ------------------------------------------------------------------------------
2272 systemd_detect_virt_SOURCES = \
2273 src/detect-virt/detect-virt.c
2275 systemd_detect_virt_LDADD = \
2276 libsystemd-shared.la
2278 INSTALL_EXEC_HOOKS += \
2279 systemd-detect-virt-install-hook
2281 # ------------------------------------------------------------------------------
2282 systemd_delta_SOURCES = \
2285 systemd_delta_LDADD = \
2286 libsystemd-shared.la
2288 # ------------------------------------------------------------------------------
2289 systemd_getty_generator_SOURCES = \
2290 src/getty-generator/getty-generator.c
2292 systemd_getty_generator_LDADD = \
2293 libsystemd-label.la \
2294 libsystemd-shared.la
2296 # ------------------------------------------------------------------------------
2297 systemd_debug_generator_SOURCES = \
2298 src/debug-generator/debug-generator.c
2300 systemd_debug_generator_LDADD = \
2301 libsystemd-label.la \
2302 libsystemd-shared.la
2304 # ------------------------------------------------------------------------------
2305 systemd_fstab_generator_SOURCES = \
2306 src/fstab-generator/fstab-generator.c \
2307 src/core/mount-setup.c
2309 systemd_fstab_generator_LDADD = \
2310 libsystemd-label.la \
2311 libsystemd-shared.la
2313 # ------------------------------------------------------------------------------
2314 systemd_system_update_generator_SOURCES = \
2315 src/system-update-generator/system-update-generator.c
2317 systemd_system_update_generator_LDADD = \
2318 libsystemd-label.la \
2319 libsystemd-shared.la
2321 # ------------------------------------------------------------------------------
2323 systemgenerator_PROGRAMS += \
2324 systemd-hibernate-resume-generator
2326 rootlibexec_PROGRAMS += \
2327 systemd-hibernate-resume
2329 systemd_hibernate_resume_SOURCES = \
2330 src/hibernate-resume/hibernate-resume.c
2332 systemd_hibernate_resume_LDADD = \
2333 libsystemd-internal.la \
2334 libsystemd-shared.la
2336 systemd_hibernate_resume_generator_SOURCES = \
2337 src/hibernate-resume/hibernate-resume-generator.c
2339 systemd_hibernate_resume_generator_LDADD = \
2340 libsystemd-label.la \
2341 libsystemd-shared.la
2344 units/systemd-hibernate.service.in \
2345 units/systemd-hibernate-resume@.service.in \
2346 units/systemd-hybrid-sleep.service.in
2348 dist_systemunit_DATA += \
2349 units/hibernate.target \
2350 units/hybrid-sleep.target
2352 nodist_systemunit_DATA += \
2353 units/systemd-hibernate.service \
2354 units/systemd-hibernate-resume@.service \
2355 units/systemd-hybrid-sleep.service
2358 # ------------------------------------------------------------------------------
2360 systemgenerator_PROGRAMS += \
2361 systemd-efi-boot-generator
2363 systemd_efi_boot_generator_SOURCES = \
2364 src/efi-boot-generator/efi-boot-generator.c
2366 systemd_efi_boot_generator_LDADD = \
2367 libsystemd-label.la \
2368 libsystemd-shared.la
2370 # ------------------------------------------------------------------------------
2373 src/boot/boot-loader.h \
2374 src/boot/bootctl.c \
2375 src/boot/boot-loader.c \
2379 libsystemd-shared.la \
2380 libsystemd-internal.la
2385 dist_bashcompletion_DATA += \
2386 shell-completion/bash/bootctl
2388 dist_zshcompletion_DATA += \
2389 shell-completion/zsh/_bootctl
2393 # ------------------------------------------------------------------------------
2395 systemgenerator_PROGRAMS += \
2396 systemd-gpt-auto-generator
2398 systemd_gpt_auto_generator_SOURCES = \
2399 src/gpt-auto-generator/gpt-auto-generator.c \
2400 src/shared/blkid-util.h
2402 systemd_gpt_auto_generator_LDADD = \
2403 libsystemd-label.la \
2404 libsystemd-internal.la \
2405 libudev-internal.la \
2406 libsystemd-shared.la \
2409 systemd_gpt_auto_generator_CFLAGS = \
2414 # ------------------------------------------------------------------------------
2416 systemgenerator_PROGRAMS += \
2417 systemd-dbus1-generator
2419 systemd_dbus1_generator_SOURCES = \
2420 src/dbus1-generator/dbus1-generator.c
2422 systemd_dbus1_generator_LDADD = \
2423 libsystemd-label.la \
2424 libsystemd-internal.la \
2425 libsystemd-shared.la
2427 dbus1-generator-install-hook:
2428 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2429 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2430 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2432 dbus1-generator-uninstall-hook:
2433 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2435 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2436 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2439 # ------------------------------------------------------------------------------
2440 systemd_sysv_generator_SOURCES = \
2441 src/sysv-generator/sysv-generator.c
2443 systemd_sysv_generator_LDADD = \
2444 libsystemd-core.la \
2445 libsystemd-label.la \
2446 libsystemd-shared.la
2448 # ------------------------------------------------------------------------------
2449 systemd_rc_local_generator_SOURCES = \
2450 src/rc-local-generator/rc-local-generator.c
2452 systemd_rc_local_generator_LDADD = \
2453 libsystemd-label.la \
2454 libsystemd-shared.la
2456 # ------------------------------------------------------------------------------
2457 systemd_remount_fs_SOURCES = \
2458 src/remount-fs/remount-fs.c \
2459 src/core/mount-setup.c \
2460 src/core/mount-setup.h
2462 systemd_remount_fs_LDADD = \
2463 libsystemd-label.la \
2464 libsystemd-shared.la
2466 # ------------------------------------------------------------------------------
2467 systemd_cgroups_agent_SOURCES = \
2468 src/cgroups-agent/cgroups-agent.c
2470 systemd_cgroups_agent_LDADD = \
2471 libsystemd-internal.la \
2472 libsystemd-shared.la
2474 # ------------------------------------------------------------------------------
2475 systemd_escape_SOURCES = \
2478 systemd_escape_LDADD = \
2479 libsystemd-shared.la
2481 # -----------------------------------------------------------------------------
2482 systemctl_SOURCES = \
2483 src/systemctl/systemctl.c
2486 libsystemd-units.la \
2487 libsystemd-label.la \
2488 libsystemd-internal.la \
2489 libsystemd-logs.la \
2490 libsystemd-journal-internal.la \
2491 libsystemd-shared.la
2493 # ------------------------------------------------------------------------------
2494 systemd_notify_SOURCES = \
2497 systemd_notify_LDADD = \
2498 libsystemd-internal.la \
2499 libsystemd-shared.la
2501 # ------------------------------------------------------------------------------
2502 systemd_path_SOURCES = \
2505 systemd_path_LDADD = \
2506 libsystemd-internal.la \
2507 libsystemd-shared.la
2509 # ------------------------------------------------------------------------------
2510 systemd_ask_password_SOURCES = \
2511 src/ask-password/ask-password.c
2513 systemd_ask_password_LDADD = \
2514 libsystemd-label.la \
2515 libsystemd-shared.la
2517 # ------------------------------------------------------------------------------
2518 systemd_reply_password_SOURCES = \
2519 src/reply-password/reply-password.c
2521 systemd_reply_password_LDADD = \
2522 libsystemd-shared.la
2524 # ------------------------------------------------------------------------------
2525 systemd_cgls_SOURCES = \
2528 systemd_cgls_LDADD = \
2529 libsystemd-internal.la \
2530 libsystemd-shared.la
2532 # ------------------------------------------------------------------------------
2533 systemd_cgtop_SOURCES = \
2536 systemd_cgtop_LDADD = \
2537 libsystemd-shared.la
2539 # ------------------------------------------------------------------------------
2540 systemd_nspawn_SOURCES = \
2541 src/nspawn/nspawn.c \
2542 src/core/mount-setup.c \
2543 src/core/mount-setup.h \
2544 src/core/loopback-setup.c \
2545 src/core/loopback-setup.h
2547 systemd_nspawn_CFLAGS = \
2552 systemd_nspawn_LDADD = \
2553 libsystemd-label.la \
2554 libsystemd-internal.la \
2555 libudev-internal.la \
2556 libsystemd-shared.la \
2560 systemd_nspawn_LDADD += \
2561 libsystemd-seccomp.la \
2565 # ------------------------------------------------------------------------------
2566 systemd_run_SOURCES = \
2569 systemd_run_LDADD = \
2570 libsystemd-label.la \
2571 libsystemd-internal.la \
2572 libsystemd-shared.la
2574 # ------------------------------------------------------------------------------
2575 systemd_bus_proxyd_SOURCES = \
2576 src/bus-proxyd/bus-proxyd.c \
2577 src/bus-proxyd/bus-policy.c \
2578 src/bus-proxyd/bus-policy.h
2580 systemd_bus_proxyd_LDADD = \
2581 libsystemd-internal.la \
2582 libsystemd-shared.la
2584 bus-proxyd-install-hook:
2585 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2586 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2587 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2589 bus-proxyd-uninstall-hook:
2590 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2592 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2593 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2596 nodist_systemunit_DATA += \
2597 units/systemd-bus-proxyd@.service
2599 dist_systemunit_DATA += \
2600 units/systemd-bus-proxyd.socket
2602 nodist_userunit_DATA += \
2603 units/user/systemd-bus-proxyd@.service
2605 dist_userunit_DATA += \
2606 units/user/systemd-bus-proxyd.socket
2610 units/systemd-bus-proxyd@.service.m4.in \
2611 units/user/systemd-bus-proxyd@.service.in
2614 bus-proxyd-set-cap-hook:
2615 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2617 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2620 # ------------------------------------------------------------------------------
2621 systemd_tty_ask_password_agent_SOURCES = \
2622 src/tty-ask-password-agent/tty-ask-password-agent.c
2624 systemd_tty_ask_password_agent_LDADD = \
2625 libsystemd-label.la \
2626 libsystemd-shared.la
2628 # ------------------------------------------------------------------------------
2629 libsystemd_internal_la_SOURCES = \
2630 src/systemd/sd-bus.h \
2631 src/systemd/sd-bus-protocol.h \
2632 src/systemd/sd-bus-vtable.h \
2633 src/systemd/sd-utf8.h \
2634 src/systemd/sd-event.h \
2635 src/systemd/sd-rtnl.h \
2636 src/systemd/sd-resolve.h \
2637 src/systemd/sd-login.h \
2638 src/systemd/sd-id128.h \
2639 src/systemd/sd-daemon.h \
2640 src/systemd/sd-path.h \
2641 src/systemd/sd-network.h \
2642 src/libsystemd/sd-bus/sd-bus.c \
2643 src/libsystemd/sd-bus/bus-control.c \
2644 src/libsystemd/sd-bus/bus-control.h \
2645 src/libsystemd/sd-bus/bus-error.c \
2646 src/libsystemd/sd-bus/bus-error.h \
2647 src/libsystemd/sd-bus/bus-common-errors.h \
2648 src/libsystemd/sd-bus/bus-common-errors.c \
2649 src/libsystemd/sd-bus/bus-internal.c \
2650 src/libsystemd/sd-bus/bus-internal.h \
2651 src/libsystemd/sd-bus/bus-socket.c \
2652 src/libsystemd/sd-bus/bus-socket.h \
2653 src/libsystemd/sd-bus/bus-kernel.c \
2654 src/libsystemd/sd-bus/bus-kernel.h \
2655 src/libsystemd/sd-bus/bus-container.c \
2656 src/libsystemd/sd-bus/bus-container.h \
2657 src/libsystemd/sd-bus/bus-message.c \
2658 src/libsystemd/sd-bus/bus-message.h \
2659 src/libsystemd/sd-bus/bus-creds.c \
2660 src/libsystemd/sd-bus/bus-creds.h \
2661 src/libsystemd/sd-bus/bus-signature.c \
2662 src/libsystemd/sd-bus/bus-signature.h \
2663 src/libsystemd/sd-bus/bus-type.c \
2664 src/libsystemd/sd-bus/bus-type.h \
2665 src/libsystemd/sd-bus/bus-match.c \
2666 src/libsystemd/sd-bus/bus-match.h \
2667 src/libsystemd/sd-bus/bus-bloom.c \
2668 src/libsystemd/sd-bus/bus-bloom.h \
2669 src/libsystemd/sd-bus/bus-introspect.c \
2670 src/libsystemd/sd-bus/bus-introspect.h \
2671 src/libsystemd/sd-bus/bus-objects.c \
2672 src/libsystemd/sd-bus/bus-objects.h \
2673 src/libsystemd/sd-bus/bus-gvariant.c \
2674 src/libsystemd/sd-bus/bus-gvariant.h \
2675 src/libsystemd/sd-bus/bus-convenience.c \
2676 src/libsystemd/sd-bus/bus-track.c \
2677 src/libsystemd/sd-bus/bus-track.h \
2678 src/libsystemd/sd-bus/bus-util.c \
2679 src/libsystemd/sd-bus/bus-util.h \
2680 src/libsystemd/sd-bus/bus-slot.c \
2681 src/libsystemd/sd-bus/bus-slot.h \
2682 src/libsystemd/sd-bus/bus-protocol.h \
2683 src/libsystemd/sd-bus/kdbus.h \
2684 src/libsystemd/sd-utf8/sd-utf8.c \
2685 src/libsystemd/sd-event/sd-event.c \
2686 src/libsystemd/sd-event/event-util.h \
2687 src/libsystemd/sd-rtnl/sd-rtnl.c \
2688 src/libsystemd/sd-rtnl/rtnl-internal.h \
2689 src/libsystemd/sd-rtnl/rtnl-message.c \
2690 src/libsystemd/sd-rtnl/rtnl-types.h \
2691 src/libsystemd/sd-rtnl/rtnl-types.c \
2692 src/libsystemd/sd-rtnl/rtnl-util.h \
2693 src/libsystemd/sd-rtnl/rtnl-util.c \
2694 src/libsystemd/sd-rtnl/local-addresses.h \
2695 src/libsystemd/sd-rtnl/local-addresses.c \
2696 src/libsystemd/sd-id128/sd-id128.c \
2697 src/libsystemd/sd-daemon/sd-daemon.c \
2698 src/libsystemd/sd-login/sd-login.c \
2699 src/libsystemd/sd-path/sd-path.c \
2700 src/libsystemd/sd-network/sd-network.c \
2701 src/libsystemd/sd-network/network-util.h \
2702 src/libsystemd/sd-network/network-util.c
2704 nodist_libsystemd_internal_la_SOURCES = \
2705 src/libsystemd/libsystemd.sym
2707 libsystemd_internal_la_CFLAGS = \
2711 libsystemd_internal_la_LIBADD = \
2714 libsystemd_resolve_la_SOURCES = \
2715 src/libsystemd/sd-resolve/sd-resolve.c \
2716 src/libsystemd/sd-resolve/resolve-util.h
2718 libsystemd_resolve_la_CFLAGS = \
2722 libsystemd_resolve_la_LIBADD = \
2725 noinst_LTLIBRARIES += \
2726 libsystemd-internal.la \
2727 libsystemd-resolve.la
2729 libsystemd_dump_la_SOURCES = \
2730 src/libsystemd/sd-bus/bus-dump.c \
2731 src/libsystemd/sd-bus/bus-dump.h
2733 noinst_LTLIBRARIES += \
2737 src/libsystemd/libsystemd.sym.m4 \
2738 src/libsystemd/libsystemd.pc.in \
2739 src/libsystemd/sd-bus/DIFFERENCES \
2740 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2743 src/libsystemd/libsystemd.sym
2746 src/libsystemd/libsystemd.sym
2748 libsystemd_la_SOURCES = \
2749 $(libsystemd_internal_la_SOURCES) \
2750 $(libsystemd_resolve_la_SOURCES) \
2751 $(libsystemd_journal_internal_la_SOURCES)
2753 nodist_libsystemd_la_SOURCES = \
2754 $(nodist_libsystemd_internal_la_SOURCES)
2756 libsystemd_la_CFLAGS = \
2757 $(libsystemd_internal_la_CFLAGS) \
2758 $(libsystemd_resolve_la_CFLAGS) \
2759 $(libsystemd_journal_internal_la_CFLAGS)
2761 libsystemd_la_LDFLAGS = \
2763 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2764 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2766 libsystemd_la_LIBADD = \
2767 libsystemd-shared.la \
2768 $(libsystemd_internal_la_LIBADD) \
2769 $(libsystemd_journal_internal_la_LIBADD) \
2770 $(libsystemd_resolve_la_LIBADD)
2772 libsystemd-install-hook:
2773 libname=libsystemd.so && $(move-to-rootlibdir)
2775 libsystemd-uninstall-hook:
2776 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2778 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2779 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2781 pkgconfiglib_DATA += \
2782 src/libsystemd/libsystemd.pc
2784 pkginclude_HEADERS += \
2785 src/systemd/sd-login.h \
2786 src/systemd/sd-id128.h \
2787 src/systemd/sd-daemon.h
2790 pkginclude_HEADERS += \
2791 src/systemd/sd-bus.h \
2792 src/systemd/sd-bus-protocol.h \
2793 src/systemd/sd-bus-vtable.h \
2794 src/systemd/sd-utf8.h \
2795 src/systemd/sd-event.h \
2796 src/systemd/sd-rtnl.h \
2797 src/systemd/sd-resolve.h \
2798 src/systemd/sd-path.h
2801 lib_LTLIBRARIES += \
2806 test-bus-signature \
2812 test-bus-kernel-bloom \
2813 test-bus-kernel-benchmark \
2814 test-bus-zero-copy \
2815 test-bus-introspect \
2822 test-local-addresses \
2828 test_bus_marshal_SOURCES = \
2829 src/libsystemd/sd-bus/test-bus-marshal.c
2831 test_bus_marshal_LDADD = \
2832 libsystemd-dump.la \
2833 libsystemd-internal.la \
2834 libsystemd-shared.la \
2838 test_bus_marshal_CFLAGS = \
2843 test_bus_signature_SOURCES = \
2844 src/libsystemd/sd-bus/test-bus-signature.c
2846 test_bus_signature_LDADD = \
2847 libsystemd-internal.la \
2848 libsystemd-shared.la
2850 test_bus_chat_SOURCES = \
2851 src/libsystemd/sd-bus/test-bus-chat.c
2853 test_bus_chat_CFLAGS = \
2857 test_bus_chat_LDADD = \
2858 libsystemd-internal.la \
2859 libsystemd-shared.la
2861 test_bus_cleanup_SOURCES = \
2862 src/libsystemd/sd-bus/test-bus-cleanup.c
2864 test_bus_cleanup_CFLAGS = \
2868 test_bus_cleanup_LDADD = \
2869 libsystemd-internal.la \
2870 libsystemd-shared.la
2872 test_bus_server_SOURCES = \
2873 src/libsystemd/sd-bus/test-bus-server.c
2875 test_bus_server_CFLAGS = \
2879 test_bus_server_LDADD = \
2880 libsystemd-internal.la \
2881 libsystemd-shared.la
2883 test_bus_objects_SOURCES = \
2884 src/libsystemd/sd-bus/test-bus-objects.c
2886 test_bus_objects_CFLAGS = \
2890 test_bus_objects_LDADD = \
2891 libsystemd-dump.la \
2892 libsystemd-internal.la \
2893 libsystemd-shared.la
2895 test_bus_error_SOURCES = \
2896 src/libsystemd/sd-bus/test-bus-error.c
2898 test_bus_error_LDADD = \
2899 libsystemd-internal.la \
2900 libsystemd-shared.la
2902 test_bus_gvariant_SOURCES = \
2903 src/libsystemd/sd-bus/test-bus-gvariant.c
2905 test_bus_gvariant_LDADD = \
2906 libsystemd-dump.la \
2907 libsystemd-internal.la \
2908 libsystemd-shared.la \
2911 test_bus_gvariant_CFLAGS = \
2915 test_bus_creds_SOURCES = \
2916 src/libsystemd/sd-bus/test-bus-creds.c
2918 test_bus_creds_LDADD = \
2919 libsystemd-dump.la \
2920 libsystemd-internal.la \
2921 libsystemd-shared.la
2923 test_bus_match_SOURCES = \
2924 src/libsystemd/sd-bus/test-bus-match.c
2926 test_bus_match_LDADD = \
2927 libsystemd-internal.la \
2928 libsystemd-shared.la
2930 test_bus_kernel_SOURCES = \
2931 src/libsystemd/sd-bus/test-bus-kernel.c
2933 test_bus_kernel_LDADD = \
2934 libsystemd-dump.la \
2935 libsystemd-internal.la \
2936 libsystemd-shared.la
2938 test_bus_kernel_bloom_SOURCES = \
2939 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2941 test_bus_kernel_bloom_LDADD = \
2942 libsystemd-internal.la \
2943 libsystemd-shared.la
2945 test_bus_kernel_benchmark_SOURCES = \
2946 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2948 test_bus_kernel_benchmark_LDADD = \
2949 libsystemd-internal.la \
2950 libsystemd-shared.la
2952 test_bus_zero_copy_SOURCES = \
2953 src/libsystemd/sd-bus/test-bus-zero-copy.c
2955 test_bus_zero_copy_LDADD = \
2956 libsystemd-dump.la \
2957 libsystemd-internal.la \
2958 libsystemd-shared.la
2960 test_bus_introspect_SOURCES = \
2961 src/libsystemd/sd-bus/test-bus-introspect.c
2963 test_bus_introspect_LDADD = \
2964 libsystemd-internal.la \
2965 libsystemd-shared.la
2967 test_event_SOURCES = \
2968 src/libsystemd/sd-event/test-event.c
2970 test_event_LDADD = \
2971 libsystemd-internal.la \
2972 libsystemd-shared.la
2974 test_rtnl_SOURCES = \
2975 src/libsystemd/sd-rtnl/test-rtnl.c
2978 libsystemd-internal.la \
2979 libsystemd-shared.la
2981 test_local_addresses_SOURCES = \
2982 src/libsystemd/sd-rtnl/test-local-addresses.c
2984 test_local_addresses_LDADD = \
2985 libsystemd-internal.la \
2986 libsystemd-shared.la
2988 test_resolve_SOURCES = \
2989 src/libsystemd/sd-resolve/test-resolve.c
2991 test_resolve_LDADD = \
2992 libsystemd-resolve.la \
2993 libsystemd-internal.la \
2994 libsystemd-shared.la
2996 test_resolve_CFLAGS = \
3001 src/libsystemd/sd-bus/busctl.c \
3002 src/libsystemd/sd-bus/busctl-introspect.c \
3003 src/libsystemd/sd-bus/busctl-introspect.h
3006 libsystemd-dump.la \
3007 libsystemd-internal.la \
3008 libsystemd-shared.la
3010 # ------------------------------------------------------------------------------
3011 noinst_LTLIBRARIES += \
3012 libsystemd-network.la
3014 libsystemd_network_la_CFLAGS = \
3018 libsystemd_network_la_SOURCES = \
3019 src/systemd/sd-dhcp-client.h \
3020 src/systemd/sd-dhcp-server.h \
3021 src/systemd/sd-dhcp-lease.h \
3022 src/systemd/sd-ipv4ll.h \
3023 src/systemd/sd-icmp6-nd.h \
3024 src/systemd/sd-dhcp6-client.h \
3025 src/systemd/sd-dhcp6-lease.h \
3026 src/systemd/sd-pppoe.h \
3027 src/libsystemd-network/sd-dhcp-client.c \
3028 src/libsystemd-network/sd-dhcp-server.c \
3029 src/libsystemd-network/dhcp-network.c \
3030 src/libsystemd-network/dhcp-option.c \
3031 src/libsystemd-network/dhcp-packet.c \
3032 src/libsystemd-network/dhcp-internal.h \
3033 src/libsystemd-network/dhcp-server-internal.h \
3034 src/libsystemd-network/dhcp-protocol.h \
3035 src/libsystemd-network/dhcp-lease-internal.h \
3036 src/libsystemd-network/sd-dhcp-lease.c \
3037 src/libsystemd-network/sd-ipv4ll.c \
3038 src/libsystemd-network/ipv4ll-network.c \
3039 src/libsystemd-network/ipv4ll-packet.c \
3040 src/libsystemd-network/ipv4ll-internal.h \
3041 src/libsystemd-network/sd-pppoe.c \
3042 src/libsystemd-network/network-internal.c \
3043 src/libsystemd-network/network-internal.h \
3044 src/libsystemd-network/sd-icmp6-nd.c \
3045 src/libsystemd-network/sd-dhcp6-client.c \
3046 src/libsystemd-network/dhcp6-internal.h \
3047 src/libsystemd-network/dhcp6-protocol.h \
3048 src/libsystemd-network/dhcp6-network.c \
3049 src/libsystemd-network/dhcp6-option.c \
3050 src/libsystemd-network/dhcp6-lease-internal.h \
3051 src/libsystemd-network/sd-dhcp6-lease.c
3053 libsystemd_network_la_LIBADD = \
3054 libudev-internal.la \
3055 libsystemd-label.la \
3056 libsystemd-internal.la \
3057 libsystemd-shared.la \
3060 test_dhcp_option_SOURCES = \
3061 src/libsystemd-network/dhcp-protocol.h \
3062 src/libsystemd-network/dhcp-internal.h \
3063 src/libsystemd-network/test-dhcp-option.c
3065 test_dhcp_option_LDADD = \
3066 libsystemd-network.la \
3067 libsystemd-internal.la \
3068 libsystemd-shared.la
3070 test_dhcp_client_SOURCES = \
3071 src/systemd/sd-dhcp-client.h \
3072 src/libsystemd-network/dhcp-protocol.h \
3073 src/libsystemd-network/dhcp-internal.h \
3074 src/libsystemd-network/test-dhcp-client.c
3076 test_dhcp_client_LDADD = \
3077 libsystemd-network.la \
3078 libsystemd-label.la \
3079 libsystemd-internal.la \
3080 libsystemd-shared.la
3082 test_dhcp_server_SOURCES = \
3083 src/libsystemd-network/test-dhcp-server.c
3085 test_dhcp_server_LDADD = \
3086 libsystemd-network.la \
3087 libsystemd-internal.la \
3088 libsystemd-shared.la
3090 test_ipv4ll_SOURCES = \
3091 src/systemd/sd-ipv4ll.h \
3092 src/libsystemd-network/ipv4ll-internal.h \
3093 src/libsystemd-network/test-ipv4ll.c
3095 test_ipv4ll_LDADD = \
3096 libsystemd-network.la \
3097 libsystemd-label.la \
3098 libsystemd-internal.la \
3099 libsystemd-shared.la
3101 test_pppoe_SOURCES = \
3102 src/systemd/sd-pppoe.h \
3103 src/libsystemd-network/test-pppoe.c
3105 test_pppoe_LDADD = \
3106 libsystemd-network.la \
3107 libsystemd-shared.la
3109 test_icmp6_rs_SOURCES = \
3110 src/systemd/sd-dhcp6-client.h \
3111 src/systemd/sd-icmp6-nd.h \
3112 src/libsystemd-network/dhcp6-internal.h \
3113 src/libsystemd-network/test-icmp6-rs.c
3115 test_icmp6_rs_LDADD = \
3116 libsystemd-network.la \
3117 libsystemd-internal.la \
3118 libsystemd-shared.la
3120 test_dhcp6_client_SOURCES = \
3121 src/systemd/sd-dhcp6-client.h \
3122 src/libsystemd-network/dhcp6-internal.h \
3123 src/libsystemd-network/test-dhcp6-client.c
3125 test_dhcp6_client_LDADD = \
3126 libsystemd-network.la \
3127 libsystemd-internal.la \
3128 libsystemd-shared.la
3141 # ------------------------------------------------------------------------------
3143 noinst_LTLIBRARIES += \
3144 libsystemd-terminal.la
3146 rootlibexec_PROGRAMS += \
3149 noinst_PROGRAMS += \
3154 dist_pkgdata_DATA += \
3155 src/libsystemd-terminal/unifont-glyph-array.bin
3157 nodist_userunit_DATA += \
3158 units/user/systemd-consoled.service
3160 USER_DEFAULT_TARGET_WANTS += \
3161 systemd-consoled.service
3164 units/user/systemd-consoled.service.in
3172 libsystemd_terminal_la_CFLAGS = \
3176 libsystemd_terminal_la_SOURCES = \
3177 src/libsystemd-terminal/grdev.h \
3178 src/libsystemd-terminal/grdev-internal.h \
3179 src/libsystemd-terminal/grdev.c \
3180 src/libsystemd-terminal/grdev-drm.c \
3181 src/libsystemd-terminal/idev.h \
3182 src/libsystemd-terminal/idev-internal.h \
3183 src/libsystemd-terminal/idev.c \
3184 src/libsystemd-terminal/idev-evdev.c \
3185 src/libsystemd-terminal/idev-keyboard.c \
3186 src/libsystemd-terminal/sysview.h \
3187 src/libsystemd-terminal/sysview-internal.h \
3188 src/libsystemd-terminal/sysview.c \
3189 src/libsystemd-terminal/term.h \
3190 src/libsystemd-terminal/term-internal.h \
3191 src/libsystemd-terminal/term-charset.c \
3192 src/libsystemd-terminal/term-page.c \
3193 src/libsystemd-terminal/term-parser.c \
3194 src/libsystemd-terminal/term-screen.c \
3195 src/libsystemd-terminal/term-wcwidth.c \
3196 src/libsystemd-terminal/unifont.h \
3197 src/libsystemd-terminal/unifont-def.h \
3198 src/libsystemd-terminal/unifont.c
3200 libsystemd_terminal_la_LIBADD = \
3201 libudev-internal.la \
3202 libsystemd-internal.la \
3203 libsystemd-shared.la \
3206 systemd_consoled_CFLAGS = \
3210 systemd_consoled_SOURCES = \
3211 src/console/consoled.h \
3212 src/console/consoled.c \
3213 src/console/consoled-display.c \
3214 src/console/consoled-manager.c \
3215 src/console/consoled-session.c \
3216 src/console/consoled-terminal.c \
3217 src/console/consoled-workspace.c
3219 systemd_consoled_LDADD = \
3220 libsystemd-terminal.la \
3221 libsystemd-internal.la \
3222 libsystemd-shared.la \
3225 systemd_evcat_CFLAGS = \
3229 systemd_evcat_SOURCES = \
3230 src/libsystemd-terminal/evcat.c
3232 systemd_evcat_LDADD = \
3233 libsystemd-terminal.la \
3234 libsystemd-internal.la \
3235 libsystemd-shared.la \
3238 systemd_modeset_CFLAGS = \
3242 systemd_modeset_SOURCES = \
3243 src/libsystemd-terminal/modeset.c
3245 systemd_modeset_LDADD = \
3246 libsystemd-terminal.la \
3247 libsystemd-internal.la \
3248 libsystemd-shared.la \
3251 systemd_subterm_SOURCES = \
3252 src/libsystemd-terminal/subterm.c
3254 systemd_subterm_LDADD = \
3255 libsystemd-terminal.la \
3256 libsystemd-internal.la \
3257 libsystemd-shared.la
3259 test_term_page_SOURCES = \
3260 src/libsystemd-terminal/test-term-page.c
3262 test_term_page_LDADD = \
3263 libsystemd-terminal.la \
3264 libsystemd-internal.la \
3265 libsystemd-shared.la
3267 test_term_parser_SOURCES = \
3268 src/libsystemd-terminal/test-term-parser.c
3270 test_term_parser_LDADD = \
3271 libsystemd-terminal.la \
3272 libsystemd-internal.la \
3273 libsystemd-shared.la
3275 test_unifont_SOURCES = \
3276 src/libsystemd-terminal/test-unifont.c
3278 test_unifont_LDADD = \
3279 libsystemd-terminal.la \
3280 libsystemd-internal.la \
3281 libsystemd-shared.la
3283 .PHONY: update-unifont
3284 update-unifont: tools/compile-unifont.py
3285 $(AM_V_GEN)$(PYTHON) $< \
3286 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3287 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3288 @echo "unifont-glyph-array.bin has been regenerated"
3290 # ------------------------------------------------------------------------------
3300 include_HEADERS += \
3301 src/libudev/libudev.h
3303 lib_LTLIBRARIES += \
3306 libudev_la_SOURCES =\
3307 src/libudev/libudev.sym \
3308 src/libudev/libudev-private.h \
3309 src/libudev/libudev.c \
3310 src/libudev/libudev-list.c \
3311 src/libudev/libudev-util.c \
3312 src/libudev/libudev-device.c \
3313 src/libudev/libudev-enumerate.c \
3314 src/libudev/libudev-monitor.c \
3315 src/libudev/libudev-queue.c \
3316 src/libudev/libudev-hwdb-def.h \
3317 src/libudev/libudev-hwdb.c
3319 libudev_la_CFLAGS = \
3323 libudev_la_LDFLAGS = \
3325 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3326 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3328 libudev_la_LIBADD = \
3329 libsystemd-internal.la \
3330 libsystemd-shared.la
3332 pkgconfiglib_DATA += \
3333 src/libudev/libudev.pc
3336 src/libudev/libudev.pc.in
3339 src/libudev/libudev.pc \
3344 $(AM_V_at)$(MKDIR_P) $(dir $@)
3345 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3348 $(AM_V_at)$(MKDIR_P) $(dir $@)
3349 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3351 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3352 libudev-install-hook:
3353 libname=libudev.so && $(move-to-rootlibdir)
3355 libudev-uninstall-hook:
3356 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3358 INSTALL_EXEC_HOOKS += libudev-install-hook
3359 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3361 # ------------------------------------------------------------------------------
3362 noinst_LTLIBRARIES += \
3365 libudev_internal_la_SOURCES =\
3366 $(libudev_la_SOURCES) \
3367 src/libudev/libudev-device-private.c
3369 libudev_internal_la_CFLAGS = \
3371 -fvisibility=default
3373 # ------------------------------------------------------------------------------
3375 $(sysconfdir)/udev/rules.d \
3376 $(sysconfdir)/udev/hwdb.d
3378 dist_network_DATA = \
3379 network/99-default.link \
3380 network/80-container-host0.network \
3381 network/80-container-ve.network
3383 dist_udevrules_DATA += \
3384 rules/42-usb-hid-pm.rules \
3385 rules/50-udev-default.rules \
3386 rules/60-drm.rules \
3387 rules/60-keyboard.rules \
3388 rules/70-mouse.rules \
3389 rules/60-persistent-storage-tape.rules \
3390 rules/60-persistent-serial.rules \
3391 rules/60-persistent-input.rules \
3392 rules/60-persistent-alsa.rules \
3393 rules/60-persistent-storage.rules \
3394 rules/64-btrfs.rules \
3395 rules/75-net-description.rules \
3396 rules/75-tty-description.rules \
3397 rules/78-sound-card.rules \
3398 rules/80-net-setup-link.rules \
3399 rules/95-udev-late.rules
3401 nodist_udevrules_DATA += \
3402 rules/99-systemd.rules
3404 dist_udevhwdb_DATA = \
3405 hwdb/20-pci-vendor-model.hwdb \
3406 hwdb/20-pci-classes.hwdb \
3407 hwdb/20-usb-vendor-model.hwdb \
3408 hwdb/20-usb-classes.hwdb \
3409 hwdb/20-sdio-vendor-model.hwdb \
3410 hwdb/20-sdio-classes.hwdb \
3411 hwdb/20-bluetooth-vendor-product.hwdb \
3412 hwdb/20-acpi-vendor.hwdb \
3414 hwdb/20-net-ifname.hwdb \
3415 hwdb/60-keyboard.hwdb \
3418 udevconfdir = $(sysconfdir)/udev
3419 dist_udevconf_DATA = \
3422 sharepkgconfigdir = $(datadir)/pkgconfig
3423 sharepkgconfig_DATA = \
3427 rules/99-systemd.rules.in \
3431 rules/99-systemd.rules \
3435 units/systemd-udevd.service.in \
3436 units/systemd-udev-trigger.service.in \
3437 units/systemd-udev-settle.service.in \
3438 units/systemd-udev-hwdb-update.service.in
3441 units/systemd-udevd.service \
3442 units/systemd-udev-trigger.service \
3443 units/systemd-udev-settle.service \
3444 units/systemd-udev-hwdb-update.service
3446 SOCKETS_TARGET_WANTS += \
3447 systemd-udevd-control.socket \
3448 systemd-udevd-kernel.socket
3450 SYSINIT_TARGET_WANTS += \
3451 systemd-udevd.service \
3452 systemd-udev-trigger.service \
3453 systemd-udev-hwdb-update.service
3455 rootbin_PROGRAMS += \
3458 rootlibexec_PROGRAMS += \
3461 noinst_LTLIBRARIES += \
3464 src/udev/keyboard-keys.txt:
3465 $(AM_V_at)$(MKDIR_P) $(dir $@)
3466 $(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/' > $@
3468 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3469 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3471 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3472 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3474 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3475 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3477 libudev_core_la_SOURCES = \
3479 src/udev/udev-event.c \
3480 src/udev/udev-watch.c \
3481 src/udev/udev-node.c \
3482 src/udev/udev-rules.c \
3483 src/udev/udev-ctrl.c \
3484 src/udev/udev-builtin.c \
3485 src/udev/udev-builtin-btrfs.c \
3486 src/udev/udev-builtin-hwdb.c \
3487 src/udev/udev-builtin-input_id.c \
3488 src/udev/udev-builtin-keyboard.c \
3489 src/udev/udev-builtin-net_id.c \
3490 src/udev/udev-builtin-net_setup_link.c \
3491 src/udev/udev-builtin-path_id.c \
3492 src/udev/udev-builtin-usb_id.c \
3493 src/udev/net/link-config.h \
3494 src/udev/net/link-config.c \
3495 src/udev/net/ethtool-util.h \
3496 src/udev/net/ethtool-util.c
3498 nodist_libudev_core_la_SOURCES = \
3499 src/udev/keyboard-keys-from-name.h \
3500 src/udev/keyboard-keys-to-name.h \
3501 src/udev/net/link-config-gperf.c
3504 $(nodist_libudev_core_la_SOURCES)
3507 src/udev/keyboard-keys-from-name.gperf \
3508 src/udev/keyboard-keys.txt \
3509 src/udev/net/link-config-gperf.c
3512 src/udev/net/link-config-gperf.gperf
3514 libudev_core_la_CFLAGS = \
3519 libudev_core_la_LIBADD = \
3520 libudev-internal.la \
3521 libsystemd-label.la \
3522 libsystemd-internal.la \
3523 libsystemd-network.la \
3524 libsystemd-shared.la \
3529 libudev_core_la_SOURCES += \
3530 src/udev/udev-builtin-kmod.c
3532 dist_udevrules_DATA += \
3533 rules/80-drivers.rules
3537 libudev_core_la_SOURCES += \
3538 src/udev/udev-builtin-blkid.c
3542 libudev_core_la_SOURCES += \
3543 src/udev/udev-builtin-uaccess.c \
3544 src/login/logind-acl.c \
3545 src/libsystemd/sd-login/sd-login.c \
3546 src/systemd/sd-login.h
3548 libudev_core_la_LIBADD += \
3552 systemd_udevd_SOURCES = \
3555 systemd_udevd_LDADD = \
3559 src/udev/udevadm.c \
3560 src/udev/udevadm-info.c \
3561 src/udev/udevadm-control.c \
3562 src/udev/udevadm-monitor.c \
3563 src/udev/udevadm-hwdb.c \
3564 src/udev/udevadm-settle.c \
3565 src/udev/udevadm-trigger.c \
3566 src/udev/udevadm-test.c \
3567 src/udev/udevadm-test-builtin.c \
3568 src/udev/udevadm-util.c \
3569 src/udev/udevadm-util.h
3574 # Update hwdb on installation. Do not bother if installing
3575 # in DESTDIR, since this is likely for packaging purposes.
3577 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3579 INSTALL_DATA_HOOKS += \
3583 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3585 # ------------------------------------------------------------------------------
3594 test_libudev_SOURCES = \
3595 src/test/test-libudev.c
3597 test_libudev_LDADD = \
3598 libsystemd-label.la \
3599 libudev-internal.la \
3600 libsystemd-shared.la
3602 test_udev_SOURCES = \
3603 src/test/test-udev.c
3612 test_udev_LDADD += \
3619 # packed sysfs test tree
3621 $(AM_V_at)$(MKDIR_P) $(dir $@)
3622 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3626 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3631 test/rules-test.sh \
3632 test/rule-syntax-check.py
3634 # ------------------------------------------------------------------------------
3636 src/udev/ata_id/ata_id.c
3639 libudev-internal.la \
3640 libsystemd-shared.la
3642 udevlibexec_PROGRAMS += \
3645 # ------------------------------------------------------------------------------
3646 cdrom_id_SOURCES = \
3647 src/udev/cdrom_id/cdrom_id.c
3650 libudev-internal.la \
3651 libsystemd-shared.la
3653 udevlibexec_PROGRAMS += \
3656 dist_udevrules_DATA += \
3657 rules/60-cdrom_id.rules
3659 # ------------------------------------------------------------------------------
3661 src/udev/collect/collect.c
3664 libudev-internal.la \
3665 libsystemd-shared.la
3667 udevlibexec_PROGRAMS += \
3670 # ------------------------------------------------------------------------------
3672 src/udev/scsi_id/scsi_id.c \
3673 src/udev/scsi_id/scsi_serial.c \
3674 src/udev/scsi_id/scsi.h \
3675 src/udev/scsi_id/scsi_id.h
3678 libudev-internal.la \
3679 libsystemd-shared.la
3681 udevlibexec_PROGRAMS += \
3685 src/udev/scsi_id/README
3687 # ------------------------------------------------------------------------------
3689 src/udev/v4l_id/v4l_id.c
3694 udevlibexec_PROGRAMS += \
3697 dist_udevrules_DATA += \
3698 rules/60-persistent-v4l.rules
3700 # ------------------------------------------------------------------------------
3701 accelerometer_SOURCES = \
3702 src/udev/accelerometer/accelerometer.c
3704 accelerometer_LDADD = \
3705 libudev-internal.la -lm \
3706 libsystemd-shared.la
3708 udevlibexec_PROGRAMS += \
3711 dist_udevrules_DATA += \
3712 rules/61-accelerometer.rules
3714 # ------------------------------------------------------------------------------
3721 libgudev_includedir = \
3722 $(includedir)/gudev-1.0/gudev
3724 libgudev_include_HEADERS = \
3726 src/gudev/gudevenums.h \
3727 src/gudev/gudevenumtypes.h \
3728 src/gudev/gudevtypes.h \
3729 src/gudev/gudevclient.h \
3730 src/gudev/gudevdevice.h \
3731 src/gudev/gudevenumerator.h
3733 lib_LTLIBRARIES += libgudev-1.0.la
3735 pkgconfiglib_DATA += \
3736 src/gudev/gudev-1.0.pc
3739 src/gudev/gudev-1.0.pc
3741 libgudev_1_0_la_SOURCES = \
3742 src/gudev/libgudev-1.0.sym \
3743 src/gudev/gudevenums.h \
3744 src/gudev/gudevenumtypes.h \
3745 src/gudev/gudevenumtypes.h\
3746 src/gudev/gudevtypes.h \
3747 src/gudev/gudevclient.h \
3748 src/gudev/gudevclient.c \
3749 src/gudev/gudevdevice.h \
3750 src/gudev/gudevdevice.c \
3751 src/gudev/gudevenumerator.h \
3752 src/gudev/gudevenumerator.c \
3753 src/gudev/gudevprivate.h
3755 nodist_libgudev_1_0_la_SOURCES = \
3756 src/gudev/gudevmarshal.h \
3757 src/gudev/gudevmarshal.c \
3758 src/gudev/gudevenumtypes.h \
3759 src/gudev/gudevenumtypes.c
3762 $(nodist_libgudev_1_0_la_SOURCES)
3764 libgudev_1_0_la_CPPFLAGS = \
3766 -I$(top_builddir)/src\
3767 -I$(top_srcdir)/src\
3768 -I$(top_builddir)/src/gudev \
3769 -I$(top_srcdir)/src/gudev \
3770 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3771 -D_GUDEV_COMPILATION \
3772 -DG_LOG_DOMAIN=\"GUdev\"
3774 libgudev_1_0_la_CFLAGS = \
3776 -fvisibility=default \
3779 libgudev_1_0_la_LIBADD = \
3783 libgudev_1_0_la_LDFLAGS = \
3785 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3788 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3790 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3791 $(AM_V_at)$(MKDIR_P) $(dir $@)
3792 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3794 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3795 $(AM_V_at)$(MKDIR_P) $(dir $@)
3796 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3797 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3799 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3800 $(AM_V_at)$(MKDIR_P) $(dir $@)
3801 $(AM_V_GEN)glib-mkenums --template $^ > $@
3803 if HAVE_INTROSPECTION
3804 -include $(INTROSPECTION_MAKEFILE)
3806 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3808 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3810 src_gudev_GUdev_1_0_gir_CFLAGS = \
3813 -D_GUDEV_COMPILATION \
3814 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3815 -I$(top_srcdir)/src \
3816 -I$(top_builddir)/src \
3817 -I$(top_srcdir)/src/gudev \
3818 -I$(top_builddir)/src/gudev
3820 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3822 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3823 --pkg-export=gudev-1.0 \
3826 src_gudev_GUdev_1_0_gir_FILES = \
3828 src/gudev/gudevtypes.h \
3829 src/gudev/gudevenums.h \
3830 src/gudev/gudevenumtypes.h \
3831 src/gudev/gudevclient.h \
3832 src/gudev/gudevdevice.h \
3833 src/gudev/gudevenumerator.h \
3834 src/gudev/gudevclient.c \
3835 src/gudev/gudevdevice.c \
3836 src/gudev/gudevenumerator.c
3838 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3839 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3841 girdir = $(datadir)/gir-1.0
3843 src/gudev/GUdev-1.0.gir
3845 typelibsdir = $(libdir)/girepository-1.0
3847 src/gudev/GUdev-1.0.typelib
3849 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3850 endif # HAVE_INTROSPECTION
3854 src/gudev/gudev-1.0.pc.in \
3855 src/gudev/gudevmarshal.list \
3856 src/gudev/gudevenumtypes.h.template \
3857 src/gudev/gudevenumtypes.c.template \
3858 src/gudev/gjs-example.js \
3859 src/gudev/seed-example-enum.js \
3860 src/gudev/seed-example.js
3862 # ------------------------------------------------------------------------------
3863 mtd_probe_SOURCES = \
3864 src/udev/mtd_probe/mtd_probe.c \
3865 src/udev/mtd_probe/mtd_probe.h \
3866 src/udev/mtd_probe/probe_smartmedia.c
3868 dist_udevrules_DATA += \
3869 rules/75-probe_mtd.rules
3871 udevlibexec_PROGRAMS += \
3874 # ------------------------------------------------------------------------------
3875 test_id128_SOURCES = \
3876 src/test/test-id128.c
3878 test_id128_LDADD = \
3879 libsystemd-internal.la \
3880 libsystemd-shared.la
3885 # ------------------------------------------------------------------------------
3887 rootlibexec_PROGRAMS += \
3890 systemd_activate_SOURCES = \
3891 src/activate/activate.c
3893 systemd_activate_LDADD = \
3894 libsystemd-label.la \
3895 libsystemd-internal.la \
3896 libsystemd-shared.la
3898 # ------------------------------------------------------------------------------
3899 systemd_journald_SOURCES = \
3900 src/journal/journald.c \
3901 src/journal/journald-server.h
3903 systemd_journald_LDADD = \
3904 libsystemd-journal-core.la \
3905 libsystemd-internal.la \
3906 libsystemd-shared.la
3908 systemd_cat_SOURCES = \
3911 systemd_cat_LDADD = \
3912 libsystemd-journal-core.la
3915 rootlibexec_PROGRAMS += \
3916 systemd-journal-remote
3918 systemd_journal_remote_SOURCES = \
3919 src/journal-remote/journal-remote-parse.h \
3920 src/journal-remote/journal-remote-parse.c \
3921 src/journal-remote/journal-remote-write.h \
3922 src/journal-remote/journal-remote-write.c \
3923 src/journal-remote/journal-remote.h \
3924 src/journal-remote/journal-remote.c
3926 systemd_journal_remote_LDADD = \
3927 libsystemd-internal.la \
3928 libsystemd-journal-core.la
3930 systemd_journal_remote_SOURCES += \
3931 src/journal-remote/microhttpd-util.h \
3932 src/journal-remote/microhttpd-util.c
3934 systemd_journal_remote_CFLAGS = \
3936 $(MICROHTTPD_CFLAGS)
3938 systemd_journal_remote_LDADD += \
3942 dist_sysusers_DATA += \
3943 sysusers.d/systemd-remote.conf
3947 dist_tmpfiles_DATA += \
3948 tmpfiles.d/systemd-remote.conf
3952 systemd_journal_remote_LDADD += \
3955 # systemd-journal-remote make sense mostly with full crypto stack
3956 dist_systemunit_DATA += \
3957 units/systemd-journal-remote.socket
3959 nodist_systemunit_DATA += \
3960 units/systemd-journal-remote.service
3963 units/systemd-journal-remote.service.in
3965 journal-remote-install-hook: journal-install-hook
3966 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3967 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3968 -chmod 755 $(DESTDIR)/var/log/journal/remote
3970 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3974 nodist_pkgsysconf_DATA += \
3975 src/journal-remote/journal-remote.conf
3978 src/journal-remote/journal-remote.conf.in
3981 src/journal-remote/journal-remote.conf
3985 rootlibexec_PROGRAMS += \
3986 systemd-journal-upload
3988 systemd_journal_upload_SOURCES = \
3989 src/journal-remote/journal-upload.h \
3990 src/journal-remote/journal-upload.c \
3991 src/journal-remote/journal-upload-journal.c
3993 systemd_journal_upload_CFLAGS = \
3997 systemd_journal_upload_LDADD = \
3998 libsystemd-internal.la \
3999 libsystemd-journal-internal.la \
4000 libsystemd-shared.la \
4003 nodist_systemunit_DATA += \
4004 units/systemd-journal-upload.service
4007 units/systemd-journal-upload.service.in
4009 nodist_pkgsysconf_DATA += \
4010 src/journal-remote/journal-upload.conf
4013 src/journal-remote/journal-upload.conf.in
4016 src/journal-remote/journal-upload.conf
4019 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4020 journalctl_CFLAGS = \
4023 journalctl_SOURCES = \
4024 src/journal/journalctl.c
4026 journalctl_LDADD = \
4027 libsystemd-journal-internal.la \
4028 libsystemd-internal.la \
4029 libsystemd-logs.la \
4030 libsystemd-shared.la
4033 journalctl_LDADD += \
4038 journalctl_SOURCES += \
4039 src/journal/journal-qrcode.c \
4040 src/journal/journal-qrcode.h
4042 journalctl_CFLAGS += \
4045 journalctl_LDADD += \
4049 test_journal_SOURCES = \
4050 src/journal/test-journal.c
4052 test_journal_LDADD = \
4053 libsystemd-journal-core.la
4055 test_journal_send_SOURCES = \
4056 src/journal/test-journal-send.c
4058 test_journal_send_LDADD = \
4059 libsystemd-journal-core.la
4061 test_journal_syslog_SOURCES = \
4062 src/journal/test-journal-syslog.c
4064 test_journal_syslog_LDADD = \
4065 libsystemd-journal-core.la
4067 test_journal_match_SOURCES = \
4068 src/journal/test-journal-match.c
4070 test_journal_match_LDADD = \
4071 libsystemd-journal-core.la
4073 test_journal_enum_SOURCES = \
4074 src/journal/test-journal-enum.c
4076 test_journal_enum_LDADD = \
4077 libsystemd-journal-core.la
4079 test_journal_stream_SOURCES = \
4080 src/journal/test-journal-stream.c
4082 test_journal_stream_LDADD = \
4083 libsystemd-journal-core.la
4085 test_journal_flush_SOURCES = \
4086 src/journal/test-journal-flush.c
4088 test_journal_flush_LDADD = \
4089 libsystemd-journal-core.la
4091 test_journal_init_SOURCES = \
4092 src/journal/test-journal-init.c
4094 test_journal_init_LDADD = \
4095 libsystemd-journal-core.la
4097 test_journal_verify_SOURCES = \
4098 src/journal/test-journal-verify.c
4100 test_journal_verify_LDADD = \
4101 libsystemd-journal-core.la
4103 test_journal_interleaving_SOURCES = \
4104 src/journal/test-journal-interleaving.c
4106 test_journal_interleaving_LDADD = \
4107 libsystemd-journal-core.la
4109 test_mmap_cache_SOURCES = \
4110 src/journal/test-mmap-cache.c
4112 test_mmap_cache_LDADD = \
4113 libsystemd-journal-core.la
4115 test_catalog_SOURCES = \
4116 src/journal/test-catalog.c
4118 test_catalog_CPPFLAGS = \
4120 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4122 test_catalog_LDADD = \
4123 libsystemd-journal-core.la
4125 test_compress_SOURCES = \
4126 src/journal/test-compress.c
4128 test_compress_LDADD = \
4129 libsystemd-journal-internal.la \
4130 libsystemd-shared.la
4132 test_compress_benchmark_SOURCES = \
4133 src/journal/test-compress-benchmark.c
4135 test_compress_benchmark_LDADD = \
4136 libsystemd-journal-internal.la \
4137 libsystemd-shared.la
4139 libsystemd_journal_core_la_SOURCES = \
4140 src/journal/journald-kmsg.c \
4141 src/journal/journald-kmsg.h \
4142 src/journal/journald-syslog.c \
4143 src/journal/journald-syslog.h \
4144 src/journal/journald-stream.c \
4145 src/journal/journald-stream.h \
4146 src/journal/journald-server.c \
4147 src/journal/journald-server.h \
4148 src/journal/journald-console.c \
4149 src/journal/journald-console.h \
4150 src/journal/journald-wall.c \
4151 src/journal/journald-wall.h \
4152 src/journal/journald-native.c \
4153 src/journal/journald-native.h \
4154 src/journal/journald-audit.c \
4155 src/journal/journald-audit.h \
4156 src/journal/journald-rate-limit.c \
4157 src/journal/journald-rate-limit.h \
4158 src/journal/journal-internal.h
4160 nodist_libsystemd_journal_core_la_SOURCES = \
4161 src/journal/journald-gperf.c
4163 libsystemd_journal_core_la_LIBADD = \
4164 libsystemd-journal-internal.la \
4165 libudev-internal.la \
4166 libsystemd-label.la \
4167 libsystemd-internal.la \
4168 libsystemd-shared.la
4171 libsystemd_journal_core_la_LIBADD += \
4175 noinst_LTLIBRARIES += \
4176 libsystemd-journal-core.la
4178 journal-install-hook:
4179 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4180 -chown 0:0 $(DESTDIR)/var/log/journal
4181 -chmod 755 $(DESTDIR)/var/log/journal
4182 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4183 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4185 journal-uninstall-hook:
4186 -rmdir $(DESTDIR)/var/log/journal/remote
4187 -rmdir $(DESTDIR)/var/log/journal/
4189 INSTALL_EXEC_HOOKS += journal-install-hook
4190 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4192 # ------------------------------------------------------------------------------
4193 # Update catalog on installation. Do not bother if installing
4194 # in DESTDIR, since this is likely for packaging purposes.
4195 catalog-update-hook:
4196 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4198 INSTALL_DATA_HOOKS += \
4201 catalog-remove-hook:
4202 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4204 UNINSTALL_DATA_HOOKS += \
4213 test-journal-syslog \
4214 test-journal-match \
4215 test-journal-stream \
4217 test-journal-verify \
4218 test-journal-interleaving \
4219 test-journal-flush \
4226 test-compress-benchmark
4229 pkginclude_HEADERS += \
4230 src/systemd/sd-journal.h \
4231 src/systemd/sd-messages.h \
4232 src/systemd/_sd-common.h
4234 libsystemd_journal_internal_la_SOURCES = \
4235 src/journal/sd-journal.c \
4236 src/systemd/sd-journal.h \
4237 src/systemd/_sd-common.h \
4238 src/journal/journal-file.c \
4239 src/journal/journal-file.h \
4240 src/journal/journal-vacuum.c \
4241 src/journal/journal-vacuum.h \
4242 src/journal/journal-verify.c \
4243 src/journal/journal-verify.h \
4244 src/journal/lookup3.c \
4245 src/journal/lookup3.h \
4246 src/journal/journal-send.c \
4247 src/journal/journal-def.h \
4248 src/journal/compress.h \
4249 src/journal/catalog.c \
4250 src/journal/catalog.h \
4251 src/journal/mmap-cache.c \
4252 src/journal/mmap-cache.h
4254 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4255 libsystemd_journal_internal_la_CFLAGS = \
4258 libsystemd_journal_internal_la_LIBADD =
4260 libsystemd_journal_internal_la_SOURCES += \
4261 src/journal/compress.c
4264 libsystemd_journal_internal_la_CFLAGS += \
4267 libsystemd_journal_internal_la_LIBADD += \
4272 libsystemd_journal_internal_la_LIBADD += \
4277 libsystemd_journal_internal_la_SOURCES += \
4278 src/journal/journal-authenticate.c \
4279 src/journal/journal-authenticate.h \
4280 src/journal/fsprg.c \
4283 libsystemd_journal_internal_la_LIBADD += \
4286 # fsprg.c is a drop-in file using void pointer arithmetic
4287 libsystemd_journal_internal_la_CFLAGS += \
4292 noinst_LTLIBRARIES += \
4293 libsystemd-journal-internal.la
4295 rootlibexec_PROGRAMS += \
4298 rootbin_PROGRAMS += \
4304 dist_systemunit_DATA += \
4305 units/systemd-journald.socket \
4306 units/systemd-journald-dev-log.socket \
4307 units/systemd-journald-audit.socket
4309 nodist_systemunit_DATA += \
4310 units/systemd-journald.service \
4311 units/systemd-journal-flush.service \
4312 units/systemd-journal-catalog-update.service
4314 dist_pkgsysconf_DATA += \
4315 src/journal/journald.conf
4317 dist_catalog_DATA = \
4318 catalog/systemd.fr.catalog \
4319 catalog/systemd.it.catalog \
4320 catalog/systemd.pl.catalog \
4321 catalog/systemd.ru.catalog \
4322 catalog/systemd.catalog
4324 SOCKETS_TARGET_WANTS += \
4325 systemd-journald.socket \
4326 systemd-journald-dev-log.socket \
4327 systemd-journald-audit.socket
4329 SYSINIT_TARGET_WANTS += \
4330 systemd-journald.service \
4331 systemd-journal-flush.service \
4332 systemd-journal-catalog-update.service
4335 units/systemd-journald.service.in \
4336 units/systemd-journal-flush.service.in \
4337 units/systemd-journal-catalog-update.service.in \
4338 src/journal/journald-gperf.gperf
4341 src/journal/journald-gperf.c
4343 # ------------------------------------------------------------------------------
4345 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4347 rootlibexec_PROGRAMS += \
4348 systemd-journal-gatewayd
4350 systemd_journal_gatewayd_SOURCES = \
4351 src/journal-remote/journal-gatewayd.c \
4352 src/journal-remote/microhttpd-util.h \
4353 src/journal-remote/microhttpd-util.c
4355 systemd_journal_gatewayd_LDADD = \
4356 libsystemd-logs.la \
4357 libsystemd-journal-internal.la \
4358 libsystemd-internal.la \
4359 libsystemd-shared.la \
4363 systemd_journal_gatewayd_LDADD += \
4367 systemd_journal_gatewayd_CFLAGS = \
4369 $(MICROHTTPD_CFLAGS)
4371 systemd_journal_gatewayd_CPPFLAGS = \
4373 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4375 dist_systemunit_DATA += \
4376 units/systemd-journal-gatewayd.socket
4378 nodist_systemunit_DATA += \
4379 units/systemd-journal-gatewayd.service
4381 dist_gatewayddocumentroot_DATA = \
4382 src/journal-remote/browse.html
4387 units/systemd-journal-gatewayd.service.in
4389 # ------------------------------------------------------------------------------
4391 systemd_socket_proxyd_SOURCES = \
4392 src/socket-proxy/socket-proxyd.c
4394 systemd_socket_proxyd_LDADD = \
4395 libsystemd-logs.la \
4396 libsystemd-internal.la \
4397 libsystemd-journal-internal.la \
4398 libsystemd-shared.la \
4399 libsystemd-resolve.la
4401 # ------------------------------------------------------------------------------
4403 systemd_coredump_SOURCES = \
4404 src/journal/coredump.c \
4405 src/journal/coredump-vacuum.c \
4406 src/journal/coredump-vacuum.h
4408 systemd_coredump_LDADD = \
4409 libsystemd-journal-internal.la \
4410 libsystemd-label.la \
4411 libsystemd-internal.la \
4412 libsystemd-shared.la
4415 systemd_coredump_SOURCES += \
4416 src/journal/stacktrace.c \
4417 src/journal/stacktrace.h
4419 systemd_coredump_LDADD += \
4423 rootlibexec_PROGRAMS += \
4426 dist_pkgsysconf_DATA += \
4427 src/journal/coredump.conf
4430 systemd_coredump_LDADD += \
4434 coredumpctl_SOURCES = \
4435 src/journal/coredumpctl.c
4437 coredumpctl_LDADD = \
4438 libsystemd-journal-internal.la \
4439 libsystemd-internal.la \
4440 libsystemd-shared.la
4446 test-coredump-vacuum
4448 test_coredump_vacuum_SOURCES = \
4449 src/journal/test-coredump-vacuum.c \
4450 src/journal/coredump-vacuum.c \
4451 src/journal/coredump-vacuum.h
4453 test_coredump_vacuum_LDADD = \
4454 libsystemd-internal.la \
4455 libsystemd-shared.la
4457 dist_bashcompletion_DATA += \
4458 shell-completion/bash/coredumpctl
4460 dist_zshcompletion_DATA += \
4461 shell-completion/zsh/_coredumpctl
4464 sysctl.d/50-coredump.conf
4467 sysctl.d/50-coredump.conf
4471 sysctl.d/50-coredump.conf.in
4473 # ------------------------------------------------------------------------------
4475 systemd_binfmt_SOURCES = \
4478 systemd_binfmt_LDADD = \
4479 libsystemd-shared.la
4481 rootlibexec_PROGRAMS += \
4484 dist_systemunit_DATA += \
4485 units/proc-sys-fs-binfmt_misc.automount \
4486 units/proc-sys-fs-binfmt_misc.mount
4488 nodist_systemunit_DATA += \
4489 units/systemd-binfmt.service
4492 $(prefix)/lib/binfmt.d \
4493 $(sysconfdir)/binfmt.d
4495 SYSINIT_TARGET_WANTS += \
4496 systemd-binfmt.service \
4497 proc-sys-fs-binfmt_misc.automount
4502 units/systemd-binfmt.service.in
4504 # ------------------------------------------------------------------------------
4506 systemd_vconsole_setup_SOURCES = \
4507 src/vconsole/vconsole-setup.c
4509 systemd_vconsole_setup_LDADD = \
4510 libsystemd-shared.la
4512 rootlibexec_PROGRAMS += \
4513 systemd-vconsole-setup
4515 nodist_systemunit_DATA += \
4516 units/systemd-vconsole-setup.service
4518 nodist_udevrules_DATA += \
4519 src/vconsole/90-vconsole.rules
4521 SYSINIT_TARGET_WANTS += \
4522 systemd-vconsole-setup.service
4525 src/vconsole/90-vconsole.rules
4529 src/vconsole/90-vconsole.rules.in \
4530 units/systemd-vconsole-setup.service.in
4532 # ------------------------------------------------------------------------------
4534 systemd_bootchart_SOURCES = \
4535 src/bootchart/bootchart.c \
4536 src/bootchart/bootchart.h \
4537 src/bootchart/store.c \
4538 src/bootchart/store.h \
4539 src/bootchart/svg.c \
4542 systemd_bootchart_LDADD = \
4543 libsystemd-journal-internal.la \
4544 libsystemd-shared.la
4546 rootlibexec_PROGRAMS += \
4549 dist_pkgsysconf_DATA += \
4550 src/bootchart/bootchart.conf
4552 nodist_systemunit_DATA += \
4553 units/systemd-bootchart.service
4556 units/systemd-bootchart.service.in
4559 units/systemd-bootchart.service
4562 # ------------------------------------------------------------------------------
4563 if ENABLE_QUOTACHECK
4564 rootlibexec_PROGRAMS += \
4567 nodist_systemunit_DATA += \
4568 units/systemd-quotacheck.service
4570 systemd_quotacheck_SOURCES = \
4571 src/quotacheck/quotacheck.c
4573 systemd_quotacheck_LDADD = \
4574 libsystemd-shared.la
4578 units/systemd-quotacheck.service.in
4580 nodist_systemunit_DATA += \
4581 units/quotaon.service
4583 # ------------------------------------------------------------------------------
4584 if ENABLE_RANDOMSEED
4585 rootlibexec_PROGRAMS += \
4588 nodist_systemunit_DATA += \
4589 units/systemd-random-seed.service
4591 systemd_random_seed_SOURCES = \
4592 src/random-seed/random-seed.c
4594 systemd_random_seed_LDADD = \
4595 libsystemd-label.la \
4596 libsystemd-shared.la
4598 SYSINIT_TARGET_WANTS += \
4599 systemd-random-seed.service
4604 units/systemd-random-seed.service.in
4606 # ------------------------------------------------------------------------------
4608 rootlibexec_PROGRAMS += \
4611 nodist_systemunit_DATA += \
4612 units/systemd-backlight@.service
4614 systemd_backlight_SOURCES = \
4615 src/backlight/backlight.c
4617 systemd_backlight_LDADD = \
4618 libsystemd-label.la \
4619 libudev-internal.la \
4620 libsystemd-shared.la
4624 units/systemd-backlight@.service.in
4626 # ------------------------------------------------------------------------------
4628 rootlibexec_PROGRAMS += \
4631 nodist_systemunit_DATA += \
4632 units/systemd-rfkill@.service
4634 systemd_rfkill_SOURCES = \
4637 systemd_rfkill_LDADD = \
4638 libsystemd-label.la \
4639 libudev-internal.la \
4640 libsystemd-shared.la
4644 units/systemd-rfkill@.service.in
4646 # ------------------------------------------------------------------------------
4647 if HAVE_LIBCRYPTSETUP
4648 rootlibexec_PROGRAMS += \
4651 systemgenerator_PROGRAMS += \
4652 systemd-cryptsetup-generator
4654 dist_systemunit_DATA += \
4655 units/cryptsetup.target \
4656 units/cryptsetup-pre.target
4658 systemd_cryptsetup_SOURCES = \
4659 src/cryptsetup/cryptsetup.c
4661 systemd_cryptsetup_CFLAGS = \
4663 $(LIBCRYPTSETUP_CFLAGS)
4665 systemd_cryptsetup_LDADD = \
4666 libsystemd-label.la \
4667 libudev-internal.la \
4668 libsystemd-shared.la \
4669 $(LIBCRYPTSETUP_LIBS)
4671 systemd_cryptsetup_generator_SOURCES = \
4672 src/cryptsetup/cryptsetup-generator.c
4674 systemd_cryptsetup_generator_LDADD = \
4675 libsystemd-label.la \
4676 libsystemd-shared.la
4678 SYSINIT_TARGET_WANTS += \
4683 # ------------------------------------------------------------------------------
4685 systemd_hostnamed_SOURCES = \
4686 src/hostname/hostnamed.c
4688 systemd_hostnamed_LDADD = \
4689 libsystemd-label.la \
4690 libsystemd-internal.la \
4691 libsystemd-shared.la
4693 rootlibexec_PROGRAMS += \
4696 nodist_systemunit_DATA += \
4697 units/systemd-hostnamed.service
4699 dist_systemunit_DATA_busnames += \
4700 units/org.freedesktop.hostname1.busname
4702 dist_dbuspolicy_DATA += \
4703 src/hostname/org.freedesktop.hostname1.conf
4705 dist_dbussystemservice_DATA += \
4706 src/hostname/org.freedesktop.hostname1.service
4708 polkitpolicy_files += \
4709 src/hostname/org.freedesktop.hostname1.policy
4711 SYSTEM_UNIT_ALIASES += \
4712 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4714 BUSNAMES_TARGET_WANTS += \
4715 org.freedesktop.hostname1.busname
4717 hostnamectl_SOURCES = \
4718 src/hostname/hostnamectl.c
4720 hostnamectl_LDADD = \
4721 libsystemd-internal.la \
4722 libsystemd-shared.la
4727 dist_bashcompletion_DATA += \
4728 shell-completion/bash/hostnamectl
4730 dist_zshcompletion_DATA += \
4731 shell-completion/zsh/_hostnamectl
4735 polkitpolicy_in_files += \
4736 src/hostname/org.freedesktop.hostname1.policy.in
4739 units/systemd-hostnamed.service.in
4741 # ------------------------------------------------------------------------------
4742 dist_systemunit_DATA_busnames += \
4743 units/org.freedesktop.systemd1.busname
4745 BUSNAMES_TARGET_WANTS += \
4746 org.freedesktop.systemd1.busname
4748 # ------------------------------------------------------------------------------
4750 systemd_localed_SOURCES = \
4751 src/locale/localed.c
4753 systemd_localed_LDADD = \
4754 libsystemd-label.la \
4755 libsystemd-internal.la \
4756 libsystemd-shared.la \
4759 systemd_localed_CFLAGS = \
4763 nodist_systemunit_DATA += \
4764 units/systemd-localed.service
4766 dist_systemunit_DATA_busnames += \
4767 units/org.freedesktop.locale1.busname
4769 rootlibexec_PROGRAMS += \
4772 dist_dbuspolicy_DATA += \
4773 src/locale/org.freedesktop.locale1.conf
4775 dist_dbussystemservice_DATA += \
4776 src/locale/org.freedesktop.locale1.service
4778 polkitpolicy_files += \
4779 src/locale/org.freedesktop.locale1.policy
4781 SYSTEM_UNIT_ALIASES += \
4782 systemd-localed.service dbus-org.freedesktop.locale1.service
4784 BUSNAMES_TARGET_WANTS += \
4785 org.freedesktop.locale1.busname
4787 dist_pkgdata_DATA += \
4788 src/locale/kbd-model-map
4790 dist_noinst_SCRIPT = \
4791 src/locale/generate-kbd-model-map
4793 localectl_SOURCES = \
4794 src/locale/localectl.c
4797 libsystemd-internal.la \
4798 libsystemd-shared.la
4803 dist_bashcompletion_DATA += \
4804 shell-completion/bash/localectl
4806 dist_zshcompletion_DATA += \
4807 shell-completion/zsh/_localectl
4811 .PHONY: update-kbd-model-map
4813 polkitpolicy_in_files += \
4814 src/locale/org.freedesktop.locale1.policy.in
4817 units/systemd-localed.service.in
4819 # ------------------------------------------------------------------------------
4821 systemd_timedated_SOURCES = \
4822 src/timedate/timedated.c
4824 systemd_timedated_LDADD = \
4825 libsystemd-label.la \
4826 libsystemd-internal.la \
4827 libsystemd-shared.la
4829 rootlibexec_PROGRAMS += \
4832 dist_dbussystemservice_DATA += \
4833 src/timedate/org.freedesktop.timedate1.service
4835 dist_dbuspolicy_DATA += \
4836 src/timedate/org.freedesktop.timedate1.conf
4838 nodist_systemunit_DATA += \
4839 units/systemd-timedated.service
4841 dist_systemunit_DATA_busnames += \
4842 units/org.freedesktop.timedate1.busname
4844 polkitpolicy_files += \
4845 src/timedate/org.freedesktop.timedate1.policy
4847 SYSTEM_UNIT_ALIASES += \
4848 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4850 BUSNAMES_TARGET_WANTS += \
4851 org.freedesktop.timedate1.busname
4853 timedatectl_SOURCES = \
4854 src/timedate/timedatectl.c
4856 timedatectl_LDADD = \
4857 libsystemd-internal.la \
4858 libsystemd-shared.la
4863 dist_bashcompletion_DATA += \
4864 shell-completion/bash/timedatectl
4866 dist_zshcompletion_DATA += \
4867 shell-completion/zsh/_timedatectl
4870 polkitpolicy_in_files += \
4871 src/timedate/org.freedesktop.timedate1.policy.in
4874 units/systemd-timedated.service.in
4876 # ------------------------------------------------------------------------------
4878 systemd_timesyncd_SOURCES = \
4879 src/timesync/timesyncd.c \
4880 src/timesync/timesyncd-manager.c \
4881 src/timesync/timesyncd-manager.h \
4882 src/timesync/timesyncd-conf.c \
4883 src/timesync/timesyncd-conf.h \
4884 src/timesync/timesyncd-server.c \
4885 src/timesync/timesyncd-server.h
4887 nodist_systemd_timesyncd_SOURCES = \
4888 src/timesync/timesyncd-gperf.c
4891 src/timesync/timesyncd-gperf.gperf
4894 src/timesync/timesyncd-gperf.c
4896 systemd_timesyncd_LDADD = \
4897 libsystemd-resolve.la \
4898 libsystemd-network.la \
4899 libsystemd-label.la \
4900 libsystemd-internal.la \
4901 libsystemd-shared.la \
4904 rootlibexec_PROGRAMS += \
4907 nodist_systemunit_DATA += \
4908 units/systemd-timesyncd.service
4910 GENERAL_ALIASES += \
4911 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4914 units/systemd-timesyncd.service.in
4916 nodist_pkgsysconf_DATA += \
4917 src/timesync/timesyncd.conf
4920 src/timesync/timesyncd.conf.in
4923 src/timesync/timesyncd.conf
4926 # ------------------------------------------------------------------------------
4928 libnss_myhostname_la_SOURCES = \
4929 src/nss-myhostname/nss-myhostname.sym \
4930 src/nss-myhostname/nss-myhostname.c
4932 libnss_myhostname_la_LDFLAGS = \
4939 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4941 libnss_myhostname_la_LIBADD = \
4942 libsystemd-shared.la \
4943 libsystemd-internal.la
4945 lib_LTLIBRARIES += \
4946 libnss_myhostname.la
4949 # ------------------------------------------------------------------------------
4951 systemd_machined_SOURCES = \
4952 src/machine/machined.c \
4953 src/machine/machined.h
4955 systemd_machined_LDADD = \
4956 libsystemd-machine-core.la
4958 rootlibexec_PROGRAMS += \
4961 libsystemd_machine_core_la_SOURCES = \
4962 src/machine/machined-dbus.c \
4963 src/machine/machine.c \
4964 src/machine/machine.h \
4965 src/machine/machine-dbus.c
4967 libsystemd_machine_core_la_LIBADD = \
4968 libsystemd-label.la \
4969 libsystemd-internal.la \
4970 libudev-internal.la \
4971 libsystemd-shared.la
4973 noinst_LTLIBRARIES += \
4974 libsystemd-machine-core.la
4976 machinectl_SOURCES = \
4977 src/machine/machinectl.c
4979 machinectl_LDADD = \
4980 libsystemd-internal.la \
4981 libsystemd-shared.la
4983 rootbin_PROGRAMS += \
4986 dist_bashcompletion_DATA += \
4987 shell-completion/bash/machinectl
4989 test_machine_tables_SOURCES = \
4990 src/machine/test-machine-tables.c
4992 test_machine_tables_LDADD = \
4993 libsystemd-machine-core.la
4998 nodist_systemunit_DATA += \
4999 units/systemd-machined.service
5001 dist_systemunit_DATA += \
5004 dist_systemunit_DATA_busnames += \
5005 units/org.freedesktop.machine1.busname
5007 dist_dbussystemservice_DATA += \
5008 src/machine/org.freedesktop.machine1.service
5010 dist_dbuspolicy_DATA += \
5011 src/machine/org.freedesktop.machine1.conf
5013 dist_zshcompletion_DATA += \
5014 shell-completion/zsh/_machinectl \
5015 shell-completion/zsh/_sd_machines
5017 SYSTEM_UNIT_ALIASES += \
5018 systemd-machined.service dbus-org.freedesktop.machine1.service
5020 BUSNAMES_TARGET_WANTS += \
5021 org.freedesktop.machine1.busname
5024 units/systemd-machined.service.in
5026 libnss_mymachines_la_SOURCES = \
5027 src/nss-mymachines/nss-mymachines.sym \
5028 src/nss-mymachines/nss-mymachines.c
5030 libnss_mymachines_la_LDFLAGS = \
5037 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5039 libnss_mymachines_la_LIBADD = \
5040 libsystemd-shared.la \
5041 libsystemd-internal.la
5043 lib_LTLIBRARIES += \
5044 libnss_mymachines.la
5047 # ------------------------------------------------------------------------------
5049 systemd_resolved_SOURCES = \
5050 src/resolve/resolved.c \
5051 src/resolve/resolved-manager.c \
5052 src/resolve/resolved-manager.h \
5053 src/resolve/resolved-conf.c \
5054 src/resolve/resolved-conf.h \
5055 src/resolve/resolved-bus.c \
5056 src/resolve/resolved-bus.h \
5057 src/resolve/resolved-link.h \
5058 src/resolve/resolved-link.c \
5059 src/resolve/resolved-def.h \
5060 src/resolve/resolved-dns-domain.h \
5061 src/resolve/resolved-dns-domain.c \
5062 src/resolve/resolved-dns-rr.h \
5063 src/resolve/resolved-dns-rr.c \
5064 src/resolve/resolved-dns-question.h \
5065 src/resolve/resolved-dns-question.c \
5066 src/resolve/resolved-dns-answer.h \
5067 src/resolve/resolved-dns-answer.c \
5068 src/resolve/resolved-dns-packet.h \
5069 src/resolve/resolved-dns-packet.c \
5070 src/resolve/resolved-dns-query.h \
5071 src/resolve/resolved-dns-query.c \
5072 src/resolve/resolved-dns-transaction.h \
5073 src/resolve/resolved-dns-transaction.c \
5074 src/resolve/resolved-dns-scope.h \
5075 src/resolve/resolved-dns-scope.c \
5076 src/resolve/resolved-dns-server.h \
5077 src/resolve/resolved-dns-server.c \
5078 src/resolve/resolved-dns-cache.h \
5079 src/resolve/resolved-dns-cache.c \
5080 src/resolve/resolved-dns-zone.h \
5081 src/resolve/resolved-dns-zone.c \
5082 src/resolve/resolved-dns-stream.h \
5083 src/resolve/resolved-dns-stream.c \
5084 src/resolve/dns-type.c \
5085 src/resolve/dns-type.h \
5086 src/resolve/dns_type-from-name.h \
5087 src/resolve/dns_type-to-name.h
5089 nodist_systemd_resolved_SOURCES = \
5090 src/resolve/resolved-gperf.c
5093 src/resolve/resolved-gperf.gperf \
5094 src/resolve/dns_type-from-name.gperf
5097 src/resolve/resolved-gperf.c
5099 systemd_resolved_LDADD = \
5100 libsystemd-network.la \
5101 libsystemd-label.la \
5102 libsystemd-internal.la \
5103 libsystemd-shared.la \
5107 rootlibexec_PROGRAMS += \
5110 nodist_systemunit_DATA += \
5111 units/systemd-resolved.service
5113 dist_systemunit_DATA_busnames += \
5114 units/org.freedesktop.resolve1.busname
5116 dist_dbuspolicy_DATA += \
5117 src/resolve/org.freedesktop.resolve1.conf
5119 dist_dbussystemservice_DATA += \
5120 src/resolve/org.freedesktop.resolve1.service
5123 units/systemd-resolved.service.in
5125 SYSTEM_UNIT_ALIASES += \
5126 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5128 BUSNAMES_TARGET_WANTS += \
5129 org.freedesktop.resolve1.busname
5131 GENERAL_ALIASES += \
5132 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5134 nodist_pkgsysconf_DATA += \
5135 src/resolve/resolved.conf
5138 src/resolve/resolved.conf.in
5141 src/resolve/resolved.conf
5146 test_dns_domain_SOURCES = \
5147 src/resolve/resolved-dns-domain.h \
5148 src/resolve/resolved-dns-domain.c \
5149 src/resolve/test-dns-domain.c
5151 test_dns_domain_LDADD = \
5152 libsystemd-network.la \
5153 libsystemd-label.la \
5154 libsystemd-internal.la \
5155 libsystemd-shared.la \
5158 libnss_resolve_la_SOURCES = \
5159 src/nss-resolve/nss-resolve.sym \
5160 src/nss-resolve/nss-resolve.c
5162 libnss_resolve_la_LDFLAGS = \
5169 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5171 libnss_resolve_la_LIBADD = \
5172 libsystemd-shared.la \
5173 libsystemd-internal.la
5175 lib_LTLIBRARIES += \
5178 systemd_resolve_host_SOURCES = \
5179 src/resolve-host/resolve-host.c \
5180 src/resolve/resolved-dns-packet.c \
5181 src/resolve/resolved-dns-packet.h \
5182 src/resolve/resolved-dns-rr.c \
5183 src/resolve/resolved-dns-rr.h \
5184 src/resolve/resolved-dns-answer.c \
5185 src/resolve/resolved-dns-answer.h \
5186 src/resolve/resolved-dns-question.c \
5187 src/resolve/resolved-dns-question.h \
5188 src/resolve/resolved-dns-domain.c \
5189 src/resolve/resolved-dns-domain.h \
5190 src/resolve/dns-type.c \
5191 src/resolve/dns-type.h \
5192 src/resolve/dns_type-from-name.h \
5193 src/resolve/dns_type-to-name.h
5195 systemd_resolve_host_LDADD = \
5196 libsystemd-internal.la \
5197 libsystemd-shared.la \
5201 rootlibexec_PROGRAMS += \
5202 systemd-resolve-host
5206 # ------------------------------------------------------------------------------
5208 rootlibexec_PROGRAMS += \
5211 systemd_networkd_SOURCES = \
5212 src/network/networkd.c
5214 systemd_networkd_LDADD = \
5215 libsystemd-networkd-core.la
5217 noinst_LTLIBRARIES += \
5218 libsystemd-networkd-core.la
5220 libsystemd_networkd_core_la_CFLAGS = \
5223 libsystemd_networkd_core_la_SOURCES = \
5224 src/libsystemd-network/network-internal.h \
5225 src/network/networkd.h \
5226 src/network/networkd-link.h \
5227 src/network/networkd-netdev.h \
5228 src/network/networkd-netdev-tunnel.h \
5229 src/network/networkd-netdev-veth.h \
5230 src/network/networkd-netdev-vxlan.h \
5231 src/network/networkd-netdev-vlan.h \
5232 src/network/networkd-netdev-macvlan.h \
5233 src/network/networkd-netdev-dummy.h \
5234 src/network/networkd-netdev-tuntap.h \
5235 src/network/networkd-netdev-bond.h \
5236 src/network/networkd-netdev-bridge.h \
5237 src/network/networkd-netdev.c \
5238 src/network/networkd-netdev-tunnel.c \
5239 src/network/networkd-netdev-veth.c \
5240 src/network/networkd-netdev-vxlan.c \
5241 src/network/networkd-netdev-vlan.c \
5242 src/network/networkd-netdev-macvlan.c \
5243 src/network/networkd-netdev-dummy.c \
5244 src/network/networkd-netdev-tuntap.c \
5245 src/network/networkd-netdev-bond.c \
5246 src/network/networkd-netdev-bridge.c \
5247 src/network/networkd-link.c \
5248 src/network/networkd-ipv4ll.c \
5249 src/network/networkd-dhcp4.c \
5250 src/network/networkd-dhcp6.c \
5251 src/network/networkd-network.c \
5252 src/network/networkd-address.c \
5253 src/network/networkd-route.c \
5254 src/network/networkd-manager.c \
5255 src/network/networkd-address-pool.c
5257 nodist_libsystemd_networkd_core_la_SOURCES = \
5258 src/network/networkd-network-gperf.c \
5259 src/network/networkd-netdev-gperf.c
5261 libsystemd_networkd_core_la_LIBADD = \
5262 libudev-internal.la \
5263 libsystemd-internal.la \
5264 libsystemd-network.la \
5265 libsystemd-label.la \
5266 libsystemd-shared.la
5268 rootlibexec_PROGRAMS += \
5269 systemd-networkd-wait-online
5271 systemd_networkd_wait_online_CFLAGS = \
5274 systemd_networkd_wait_online_SOURCES = \
5275 src/libsystemd-network/network-internal.h \
5276 src/network/networkd-wait-online.h \
5277 src/network/networkd-wait-online-link.h \
5278 src/network/networkd-wait-online.c \
5279 src/network/networkd-wait-online-manager.c \
5280 src/network/networkd-wait-online-link.c
5282 systemd_networkd_wait_online_LDADD = \
5283 libsystemd-network.la \
5284 libudev-internal.la \
5285 libsystemd-internal.la \
5286 libsystemd-shared.la
5288 rootbin_PROGRAMS += \
5291 networkctl_SOURCES = \
5292 src/network/networkctl.c
5294 networkctl_LDADD = \
5295 libsystemd-internal.la \
5296 libudev-internal.la \
5297 libsystemd-shared.la \
5298 libsystemd-network.la
5300 test_network_SOURCES = \
5301 src/network/test-network.c
5303 test_network_LDADD = \
5304 libsystemd-networkd-core.la
5306 test_network_tables_SOURCES = \
5307 src/network/test-network-tables.c \
5308 src/shared/test-tables.h
5310 test_network_tables_LDADD = \
5311 libsystemd-networkd-core.la \
5318 nodist_systemunit_DATA += \
5319 units/systemd-networkd.service \
5320 units/systemd-networkd-wait-online.service
5322 GENERAL_ALIASES += \
5323 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5324 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5327 src/network/networkd-network-gperf.gperf \
5328 src/network/networkd-netdev-gperf.gperf \
5329 units/systemd-networkd.service.in \
5330 units/systemd-networkd-wait-online.service.in
5333 src/network/networkd-network-gperf.c \
5334 src/network/networkd-netdev-gperf.c
5337 # ------------------------------------------------------------------------------
5339 systemd_logind_SOURCES = \
5340 src/login/logind.c \
5343 nodist_systemd_logind_SOURCES = \
5344 src/login/logind-gperf.c
5346 systemd_logind_LDADD = \
5347 libsystemd-logind-core.la
5349 libsystemd_logind_core_la_SOURCES = \
5350 src/login/logind-core.c \
5351 src/login/logind-device.c \
5352 src/login/logind-device.h \
5353 src/login/logind-button.c \
5354 src/login/logind-button.h \
5355 src/login/logind-action.c \
5356 src/login/logind-action.h \
5357 src/login/logind-seat.c \
5358 src/login/logind-seat.h \
5359 src/login/logind-session.c \
5360 src/login/logind-session.h \
5361 src/login/logind-session-device.c \
5362 src/login/logind-session-device.h \
5363 src/login/logind-user.c \
5364 src/login/logind-user.h \
5365 src/login/logind-inhibit.c \
5366 src/login/logind-inhibit.h \
5367 src/login/logind-dbus.c \
5368 src/login/logind-session-dbus.c \
5369 src/login/logind-seat-dbus.c \
5370 src/login/logind-user-dbus.c \
5371 src/login/logind-acl.h
5373 libsystemd_logind_core_la_LIBADD = \
5374 libsystemd-label.la \
5375 libsystemd-internal.la \
5376 libudev-internal.la \
5377 libsystemd-shared.la
5380 libsystemd_logind_core_la_SOURCES += \
5381 src/login/logind-acl.c
5383 libsystemd_logind_core_la_LIBADD += \
5387 noinst_LTLIBRARIES += \
5388 libsystemd-logind-core.la
5390 systemd_user_sessions_SOURCES = \
5391 src/login/user-sessions.c
5393 systemd_user_sessions_LDADD = \
5394 libsystemd-shared.la
5396 rootlibexec_PROGRAMS += \
5398 systemd-user-sessions
5400 loginctl_SOURCES = \
5401 src/login/loginctl.c \
5402 src/login/sysfs-show.c
5405 libsystemd-internal.la \
5406 libudev-internal.la \
5407 libsystemd-shared.la
5409 rootbin_PROGRAMS += \
5412 dist_bashcompletion_DATA += \
5413 shell-completion/bash/loginctl
5415 dist_zshcompletion_DATA += \
5416 shell-completion/zsh/_loginctl \
5417 shell-completion/zsh/_systemd-inhibit
5419 systemd_inhibit_SOURCES = \
5422 systemd_inhibit_LDADD = \
5423 libsystemd-internal.la \
5424 libsystemd-shared.la
5426 rootbin_PROGRAMS += \
5429 test_login_SOURCES = \
5430 src/libsystemd/sd-login/test-login.c
5432 test_login_LDADD = \
5433 libsystemd-internal.la \
5434 libsystemd-shared.la
5436 test_login_shared_SOURCES = \
5437 src/login/test-login-shared.c
5439 test_login_shared_LDADD = \
5440 libsystemd-internal.la \
5441 libsystemd-shared.la
5443 test_inhibit_SOURCES = \
5444 src/login/test-inhibit.c
5446 test_inhibit_LDADD = \
5447 libsystemd-internal.la \
5448 libsystemd-shared.la
5450 test_login_tables_SOURCES = \
5451 src/login/test-login-tables.c
5453 test_login_tables_LDADD = \
5454 libsystemd-logind-core.la
5465 pam_systemd_la_SOURCES = \
5466 src/login/pam_systemd.sym \
5467 src/login/pam_systemd.c
5469 pam_systemd_la_CFLAGS = \
5474 pam_systemd_la_LDFLAGS = \
5480 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5482 pam_systemd_la_LIBADD = \
5483 libsystemd-internal.la \
5484 libsystemd-shared.la \
5487 pamlib_LTLIBRARIES = \
5490 dist_pamconf_DATA = \
5491 src/login/systemd-user
5494 nodist_systemunit_DATA += \
5495 units/systemd-logind.service \
5496 units/systemd-user-sessions.service
5498 dist_systemunit_DATA += \
5501 dist_systemunit_DATA_busnames += \
5502 units/org.freedesktop.login1.busname
5504 dist_dbussystemservice_DATA += \
5505 src/login/org.freedesktop.login1.service
5507 dist_dbuspolicy_DATA += \
5508 src/login/org.freedesktop.login1.conf
5510 dist_pkgsysconf_DATA += \
5511 src/login/logind.conf
5513 polkitpolicy_files += \
5514 src/login/org.freedesktop.login1.policy
5519 MULTI_USER_TARGET_WANTS += \
5520 systemd-logind.service \
5521 systemd-user-sessions.service
5523 SYSTEM_UNIT_ALIASES += \
5524 systemd-logind.service dbus-org.freedesktop.login1.service
5526 BUSNAMES_TARGET_WANTS += \
5527 org.freedesktop.login1.busname
5529 dist_udevrules_DATA += \
5530 src/login/70-uaccess.rules \
5531 src/login/70-power-switch.rules
5533 nodist_udevrules_DATA += \
5534 src/login/71-seat.rules \
5535 src/login/73-seat-late.rules
5538 src/login/logind-gperf.c \
5539 src/login/71-seat.rules \
5540 src/login/73-seat-late.rules
5543 polkitpolicy_in_files += \
5544 src/login/org.freedesktop.login1.policy.in
5547 src/login/logind-gperf.gperf \
5548 src/login/71-seat.rules.in \
5549 src/login/73-seat-late.rules.in \
5550 units/systemd-logind.service.in \
5551 units/systemd-user-sessions.service.in
5553 # ------------------------------------------------------------------------------
5554 if HAVE_PYTHON_DEVEL
5555 pkgpyexec_LTLIBRARIES = \
5562 _journal_la_SOURCES = \
5563 src/python-systemd/_journal.c
5565 _journal_la_CFLAGS = \
5567 -fvisibility=default \
5568 $(PYTHON_DEVEL_CFLAGS)
5570 _journal_la_LDFLAGS = \
5576 _journal_la_LIBADD = \
5577 $(PYTHON_DEVEL_LIBS) \
5580 id128_la_SOURCES = \
5581 src/python-systemd/id128.c \
5582 src/python-systemd/pyutil.c \
5583 src/python-systemd/pyutil.h
5585 nodist_id128_la_SOURCES = \
5586 src/python-systemd/id128-constants.h
5590 -fvisibility=default \
5591 $(PYTHON_DEVEL_CFLAGS) \
5592 -I$(top_builddir)/src/python-systemd
5594 id128_la_LDFLAGS = \
5601 $(PYTHON_DEVEL_LIBS) \
5602 libsystemd-shared.la \
5605 _daemon_la_SOURCES = \
5606 src/python-systemd/_daemon.c \
5607 src/python-systemd/pyutil.c \
5608 src/python-systemd/pyutil.h
5610 _daemon_la_CFLAGS = \
5612 -fvisibility=default \
5613 $(PYTHON_DEVEL_CFLAGS) \
5614 -I$(top_builddir)/src/python-systemd
5616 _daemon_la_LDFLAGS = \
5622 _daemon_la_LIBADD = \
5623 $(PYTHON_DEVEL_LIBS) \
5624 libsystemd-shared.la \
5627 _reader_la_SOURCES = \
5628 src/python-systemd/_reader.c \
5629 src/python-systemd/pyutil.c \
5630 src/python-systemd/pyutil.h
5632 _reader_la_CFLAGS = \
5634 -fvisibility=default \
5635 $(PYTHON_DEVEL_CFLAGS)
5637 _reader_la_LDFLAGS = \
5643 _reader_la_LIBADD = \
5644 $(PYTHON_DEVEL_LIBS) \
5645 libsystemd-shared.la \
5648 login_la_SOURCES = \
5649 src/python-systemd/login.c \
5650 src/python-systemd/pyutil.c \
5651 src/python-systemd/pyutil.h
5655 -fvisibility=default \
5656 $(PYTHON_DEVEL_CFLAGS)
5658 login_la_LDFLAGS = \
5665 $(PYTHON_DEVEL_LIBS) \
5666 libsystemd-shared.la \
5669 dist_pkgpyexec_PYTHON = \
5670 src/python-systemd/journal.py \
5671 src/python-systemd/daemon.py \
5672 src/python-systemd/__init__.py
5674 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5675 $(AM_V_at)$(MKDIR_P) $(dir $@)
5676 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5679 src/python-systemd/id128-constants.h
5681 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5683 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5684 $(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/
5685 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5688 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5689 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5692 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5693 $(MAKE) DESTDIR="$$dir" install && \
5694 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5699 CLEAN_LOCAL_HOOKS += clean-sphinx
5701 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5704 -rm -rf docs/html/python-systemd/
5706 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5708 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5709 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5711 # ------------------------------------------------------------------------------
5712 if ENABLE_COMPAT_LIBS
5714 src/compat-libs/linkwarning.h
5716 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5717 $(AM_V_at)$(MKDIR_P) $(dir $@)
5718 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5721 libsystemd-journal.c \
5722 libsystemd-login.c \
5723 libsystemd-id128.c \
5726 libsystemd_journal_la_SOURCES = \
5727 libsystemd-journal.c \
5728 src/compat-libs/libsystemd-journal.sym
5730 libsystemd_journal_la_CPPFLAGS = \
5732 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5734 libsystemd_journal_la_LDFLAGS = \
5736 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5737 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5739 libsystemd_journal_la_LIBADD = \
5740 libsystemd-journal-internal.la \
5741 libsystemd-internal.la \
5742 libsystemd-shared.la
5744 libsystemd_login_la_SOURCES = \
5745 libsystemd-login.c \
5746 src/compat-libs/libsystemd-login.sym
5748 libsystemd_login_la_CPPFLAGS = \
5750 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5752 libsystemd_login_la_LDFLAGS = \
5754 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5755 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5757 libsystemd_login_la_LIBADD = \
5758 libsystemd-internal.la \
5759 libsystemd-shared.la
5761 libsystemd_id128_la_SOURCES = \
5762 libsystemd-id128.c \
5763 src/compat-libs/libsystemd-id128.sym
5765 libsystemd_id128_la_CPPFLAGS = \
5767 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5769 libsystemd_id128_la_LDFLAGS = \
5771 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5772 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5774 libsystemd_id128_la_LIBADD = \
5775 libsystemd-internal.la \
5776 libsystemd-shared.la
5778 libsystemd_daemon_la_SOURCES = \
5779 libsystemd-daemon.c \
5780 src/compat-libs/libsystemd-daemon.sym
5782 libsystemd_daemon_la_CPPFLAGS = \
5784 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5786 libsystemd_daemon_la_LDFLAGS = \
5788 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5789 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5791 libsystemd_daemon_la_LIBADD = \
5792 libsystemd-internal.la \
5793 libsystemd-shared.la
5795 lib_LTLIBRARIES += \
5796 libsystemd-journal.la \
5797 libsystemd-login.la \
5798 libsystemd-id128.la \
5799 libsystemd-daemon.la
5801 pkgconfiglib_DATA += \
5802 src/compat-libs/libsystemd-journal.pc \
5803 src/compat-libs/libsystemd-login.pc \
5804 src/compat-libs/libsystemd-id128.pc \
5805 src/compat-libs/libsystemd-daemon.pc
5807 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5808 compat-lib-install-hook:
5809 libname=libsystemd-login.so && $(move-to-rootlibdir)
5810 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5811 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5812 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5814 compat-lib-uninstall-hook:
5815 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5816 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5817 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5818 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5820 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5821 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5825 src/compat-libs/libsystemd-journal.pc.in \
5826 src/compat-libs/libsystemd-login.pc.in \
5827 src/compat-libs/libsystemd-id128.pc.in \
5828 src/compat-libs/libsystemd-daemon.pc.in
5830 # ------------------------------------------------------------------------------
5832 '|rootlibexecdir=$(rootlibexecdir)|' \
5833 '|rootbindir=$(rootbindir)|' \
5834 '|bindir=$(bindir)|' \
5835 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5836 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5837 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5838 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5839 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5840 '|pkgdatadir=$(pkgdatadir)|' \
5841 '|systemunitdir=$(systemunitdir)|' \
5842 '|userunitdir=$(userunitdir)|' \
5843 '|systempresetdir=$(systempresetdir)|' \
5844 '|userpresetdir=$(userpresetdir)|' \
5845 '|udevhwdbdir=$(udevhwdbdir)|' \
5846 '|udevrulesdir=$(udevrulesdir)|' \
5847 '|catalogdir=$(catalogdir)|' \
5848 '|tmpfilesdir=$(tmpfilesdir)|' \
5849 '|sysusersdir=$(sysusersdir)|' \
5850 '|sysctldir=$(sysctldir)|' \
5851 '|systemgeneratordir=$(systemgeneratordir)|' \
5852 '|usergeneratordir=$(usergeneratordir)|' \
5853 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5854 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5855 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5856 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5857 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5858 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5859 '|prefix=$(prefix)|' \
5860 '|exec_prefix=$(exec_prefix)|' \
5861 '|libdir=$(libdir)|' \
5862 '|includedir=$(includedir)|' \
5863 '|VERSION=$(VERSION)|' \
5864 '|rootprefix=$(rootprefix)|' \
5865 '|udevlibexecdir=$(udevlibexecdir)|' \
5866 '|SUSHELL=$(SUSHELL)|' \
5867 '|DEBUGTTY=$(DEBUGTTY)|' \
5870 '|MKDIR_P=$(MKDIR_P)|' \
5871 '|QUOTAON=$(QUOTAON)|' \
5872 '|QUOTACHECK=$(QUOTACHECK)|' \
5873 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5874 '|VARLOGDIR=$(varlogdir)|' \
5875 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5876 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5877 '|PYTHON=$(PYTHON)|' \
5878 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5879 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5880 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5881 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5882 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5883 '|TTY_GID=$(TTY_GID)|' \
5884 '|systemsleepdir=$(systemsleepdir)|' \
5885 '|systemshutdowndir=$(systemshutdowndir)|' \
5886 '|binfmtdir=$(binfmtdir)|' \
5887 '|modulesloaddir=$(modulesloaddir)|'
5890 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5891 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5900 sysctl.d/%: sysctl.d/%.in
5909 src/core/macros.%: src/core/macros.%.in
5912 src/%.policy.in: src/%.policy.in.in
5915 shell-completion/%: shell-completion/%.in
5926 $(AM_V_GEN)chmod +x $@
5928 src/%.c: src/%.gperf
5929 $(AM_V_at)$(MKDIR_P) $(dir $@)
5930 $(AM_V_GPERF)$(GPERF) < $< > $@
5933 $(AM_V_at)$(MKDIR_P) $(dir $@)
5934 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5936 sysusers.d/%: sysusers.d/%.m4
5937 $(AM_V_at)$(MKDIR_P) $(dir $@)
5938 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5940 tmpfiles.d/%: tmpfiles.d/%.m4
5941 $(AM_V_at)$(MKDIR_P) $(dir $@)
5942 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5946 $(AM_V_at)$(MKDIR_P) $(dir $@)
5947 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5949 units/user/%: units/%.m4
5950 $(AM_V_at)$(MKDIR_P) $(dir $@)
5951 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5954 nodist_polkitpolicy_DATA = \
5955 $(polkitpolicy_files) \
5956 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5960 $(polkitpolicy_in_files) \
5961 $(polkitpolicy_in_in_files)
5964 $(nodist_systemunit_DATA) \
5965 $(nodist_userunit_DATA) \
5966 $(pkgconfigdata_DATA) \
5967 $(pkgconfiglib_DATA) \
5968 $(nodist_polkitpolicy_DATA)
5970 # ------------------------------------------------------------------------------
5972 man/custom-entities.ent: configure.ac
5973 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5974 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5975 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5979 man/custom-entities.ent
5984 --stringparam man.output.quietly 1 \
5985 --stringparam funcsynopsis.style ansi \
5986 --stringparam man.authors.section.enabled 0 \
5987 --stringparam man.copyright.section.enabled 0 \
5988 --stringparam systemd.version $(VERSION) \
5989 --path '$(builddir)/man:$(srcdir)/man'
5991 XSLTPROC_PROCESS_MAN = \
5992 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5994 XSLTPROC_PROCESS_HTML = \
5995 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5997 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5998 $(XSLTPROC_PROCESS_MAN)
6000 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6001 $(XSLTPROC_PROCESS_MAN)
6003 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6004 $(XSLTPROC_PROCESS_MAN)
6006 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6007 $(XSLTPROC_PROCESS_MAN)
6009 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6010 $(XSLTPROC_PROCESS_MAN)
6012 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6013 $(XSLTPROC_PROCESS_HTML)
6016 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6022 man/custom-html.xsl \
6025 # ------------------------------------------------------------------------------
6028 docs/sysvinit/README
6033 docs/sysvinit/README: docs/sysvinit/README.in
6036 docs/var-log/README: docs/var-log/README.in
6040 docs/sysvinit/README \
6045 docs/sysvinit/README.in \
6046 docs/var-log/README.in
6048 SOCKETS_TARGET_WANTS += \
6049 systemd-initctl.socket \
6050 systemd-shutdownd.socket
6054 RUNLEVEL1_TARGET_WANTS += \
6055 systemd-update-utmp-runlevel.service
6056 RUNLEVEL2_TARGET_WANTS += \
6057 systemd-update-utmp-runlevel.service
6058 RUNLEVEL3_TARGET_WANTS += \
6059 systemd-update-utmp-runlevel.service
6060 RUNLEVEL4_TARGET_WANTS += \
6061 systemd-update-utmp-runlevel.service
6062 RUNLEVEL5_TARGET_WANTS += \
6063 systemd-update-utmp-runlevel.service
6066 SYSINIT_TARGET_WANTS += \
6067 systemd-update-utmp.service
6070 SYSINIT_TARGET_WANTS += \
6071 systemd-update-done.service
6073 LOCAL_FS_TARGET_WANTS += \
6074 systemd-remount-fs.service \
6077 MULTI_USER_TARGET_WANTS += \
6079 systemd-ask-password-wall.path
6081 SYSINIT_TARGET_WANTS += \
6082 dev-hugepages.mount \
6084 sys-kernel-config.mount \
6085 sys-kernel-debug.mount \
6086 sys-fs-fuse-connections.mount \
6087 systemd-sysctl.service \
6088 systemd-ask-password-console.path
6091 SYSTEM_UNIT_ALIASES += \
6092 poweroff.target runlevel0.target \
6093 rescue.target runlevel1.target \
6094 multi-user.target runlevel2.target \
6095 multi-user.target runlevel3.target \
6096 multi-user.target runlevel4.target \
6097 graphical.target runlevel5.target \
6098 reboot.target runlevel6.target
6101 SYSTEM_UNIT_ALIASES += \
6102 graphical.target default.target \
6103 reboot.target ctrl-alt-del.target \
6104 getty@.service autovt@.service
6106 USER_UNIT_ALIASES += \
6107 $(systemunitdir)/shutdown.target shutdown.target \
6108 $(systemunitdir)/sockets.target sockets.target \
6109 $(systemunitdir)/timers.target timers.target \
6110 $(systemunitdir)/paths.target paths.target \
6111 $(systemunitdir)/bluetooth.target bluetooth.target \
6112 $(systemunitdir)/printer.target printer.target \
6113 $(systemunitdir)/sound.target sound.target \
6114 $(systemunitdir)/smartcard.target smartcard.target
6117 USER_UNIT_ALIASES += \
6118 $(systemunitdir)/busnames.target busnames.target
6121 GENERAL_ALIASES += \
6122 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6123 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6124 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6125 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6129 $(systemunitdir)/runlevel1.target.wants \
6130 $(systemunitdir)/runlevel2.target.wants \
6131 $(systemunitdir)/runlevel3.target.wants \
6132 $(systemunitdir)/runlevel4.target.wants \
6133 $(systemunitdir)/runlevel5.target.wants
6137 $(prefix)/lib/modules-load.d \
6138 $(sysconfdir)/modules-load.d \
6139 $(prefix)/lib/systemd/network \
6140 $(sysconfdir)/systemd/network \
6141 $(prefix)/lib/sysctl.d \
6142 $(sysconfdir)/sysctl.d \
6143 $(prefix)/lib/kernel/install.d \
6144 $(sysconfdir)/kernel/install.d \
6145 $(systemshutdowndir) \
6147 $(systemgeneratordir) \
6148 $(usergeneratordir) \
6151 $(pkgsysconfdir)/system \
6152 $(pkgsysconfdir)/system/multi-user.target.wants \
6153 $(pkgsysconfdir)/system/getty.target.wants \
6154 $(pkgsysconfdir)/user \
6155 $(dbussessionservicedir) \
6156 $(sysconfdir)/xdg/systemd
6158 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6160 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6162 install-data-hook: $(INSTALL_DATA_HOOKS)
6164 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6166 clean-local: $(CLEAN_LOCAL_HOOKS)
6167 rm -rf $(abs_srcdir)/install-tree
6168 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6169 $(abs_srcdir)/hwdb/iab.txt
6171 DISTCHECK_CONFIGURE_FLAGS = \
6172 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6173 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6174 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6175 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6176 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6177 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6178 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6179 --with-rootprefix=$$dc_install_base \
6180 --disable-split-usr \
6182 --enable-compat-libs
6185 DISTCHECK_CONFIGURE_FLAGS += \
6186 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6187 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6189 DISTCHECK_CONFIGURE_FLAGS += \
6190 --with-sysvinit-path= \
6191 --with-sysvrcnd-path=
6195 DISTCHECK_CONFIGURE_FLAGS += \
6200 DISTCHECK_CONFIGURE_FLAGS += \
6205 # Require python when making dist
6207 .PHONY: dist-check-python
6210 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6214 dist-check-compat-libs:
6215 if !ENABLE_COMPAT_LIBS
6216 @echo "*** compat-libs must be enabled in order to make dist"
6220 dist: dist-check-python dist-check-compat-libs
6222 # check "broken" platforms limited toolchains for link breakage before we release
6225 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6229 ( cd $(top_srcdir)/hwdb && \
6230 wget -N http://www.linux-usb.org/usb.ids \
6231 http://pci-ids.ucw.cz/v2.2/pci.ids \
6232 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6233 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6236 .PHONY: kdbus-update
6238 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6239 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6243 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6245 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6247 upload: all check dist
6248 scp systemd-$(VERSION).tar.xz $(www_target)
6251 doc-sync: all destdir-sphinx
6252 gtkdoc-rebase --html-dir=docs/libudev/html --online
6253 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6254 gtkdoc-rebase --html-dir=docs/gudev/html --online
6255 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6256 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6257 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6261 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6262 scp man/*.html tango:public/systemd-man/
6264 .PHONY: install-tree
6266 rm -rf $(abs_srcdir)/install-tree
6267 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6268 tree $(abs_srcdir)/install-tree
6270 # Let's run all tests of the test suite, but under valgrind. Let's
6271 # exclude the one perl script we have in there
6272 .PHONY: valgrind-tests
6273 valgrind-tests: $(TESTS)
6274 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6275 if file $$f | grep -q shell; then \
6276 echo -e "$${x}Skipping non-binary $$f"; else \
6277 echo -e "$${x}Running $$f"; \
6278 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6283 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6285 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6286 $(AM_V_GEN)cat $^ > $@
6288 .PHONY: check-api-docs
6289 check-api-docs: exported man
6290 $(AM_V_GEN)for symbol in `cat exported` ; do \
6291 if test -f $(builddir)/man/$$symbol.html ; then \
6292 echo " Symbol $$symbol() is documented." ; \
6294 echo "‣ Symbol $$symbol() lacks documentation." ; \
6298 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6299 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6301 undefined defined: $(ALL_OBJECTS)
6302 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6303 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6304 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6310 .PHONY: check-api-unused
6311 check-api-unused: defined undefined exported
6312 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6314 .PHONY: check-includes
6315 check-includes: $(top_srcdir)/tools/check-includes.pl
6316 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6317 | xargs $(top_srcdir)/tools/check-includes.pl
6320 $(top_srcdir)/tools/check-includes.pl
6322 # Stupid test that everything purported to be exported really is
6323 define generate-sym-test
6324 $(AM_V_at)$(MKDIR_P) $(dir $@)
6325 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6326 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6327 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6328 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6329 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6330 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6331 $(AM_V_at)printf 'return 0; }\n' >> $@
6334 test-libsystemd-sym.c: \
6335 $(top_builddir)/src/libsystemd/libsystemd.sym \
6336 src/systemd/sd-journal.h \
6337 src/systemd/sd-daemon.h \
6338 src/systemd/sd-login.h \
6339 src/systemd/sd-bus.h \
6340 src/systemd/sd-utf8.h \
6341 src/systemd/sd-resolve.h \
6342 src/systemd/sd-path.h
6343 $(generate-sym-test)
6345 test-libudev-sym.c: \
6346 src/libudev/libudev.sym \
6348 $(generate-sym-test)
6350 test_libsystemd_sym_SOURCES = \
6351 test-libsystemd-sym.c
6352 test_libsystemd_sym_LDADD = \
6355 test_libudev_sym_SOURCES = \
6357 test_libudev_sym_CFLAGS = \
6359 -Wno-deprecated-declarations
6360 test_libudev_sym_LDADD = \
6364 $(test_libsystemd_sym_SOURCES) \
6365 $(test_libudev_sym_SOURCES)
6368 test-libsystemd-sym \
6373 cppcheck --enable=all -q $(top_srcdir)
6375 # Used to extract compile flags for YCM.
6380 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6383 tools/gdb-sd_dump_hashmaps.py