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_BUSNAMES_TARGET_WANTS =
255 SYSTEM_UNIT_ALIASES =
259 install-target-wants-hook:
260 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
261 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 install-busnames-target-wants-hook:
275 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
276 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
279 [ -z "$$what" ] || ( \
280 dir=$(DESTDIR)$$dir/$$wants.wants && \
281 $(MKDIR_P) -m 0755 $$dir && \
284 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
287 install-directories-hook:
288 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
290 install-aliases-hook:
291 set -- $(SYSTEM_UNIT_ALIASES) && \
292 dir=$(systemunitdir) && $(install-aliases)
293 set -- $(USER_UNIT_ALIASES) && \
294 dir=$(userunitdir) && $(install-relative-aliases)
295 set -- $(GENERAL_ALIASES) && \
296 dir= && $(install-relative-aliases)
298 define install-aliases
299 while [ -n "$$1" ]; do \
300 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
301 rm -f $(DESTDIR)$$dir/$$2 && \
302 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
303 shift 2 || exit $$?; \
307 define install-relative-aliases
308 while [ -n "$$1" ]; do \
309 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
310 rm -f $(DESTDIR)$$dir/$$2 && \
311 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
312 shift 2 || exit $$?; \
316 install-touch-usr-hook:
317 touch -c $(DESTDIR)/$(prefix)
319 INSTALL_EXEC_HOOKS += \
320 install-target-wants-hook \
321 install-directories-hook \
322 install-aliases-hook \
323 install-touch-usr-hook
326 INSTALL_EXEC_HOOKS += \
327 install-busnames-target-wants-hook
330 # ------------------------------------------------------------------------------
331 AM_V_M4 = $(AM_V_M4_$(V))
332 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
333 AM_V_M4_0 = @echo " M4 " $@;
335 AM_V_XSLT = $(AM_V_XSLT_$(V))
336 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
337 AM_V_XSLT_0 = @echo " XSLT " $@;
339 AM_V_GPERF = $(AM_V_GPERF_$(V))
340 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
341 AM_V_GPERF_0 = @echo " GPERF " $@;
343 AM_V_LN = $(AM_V_LN_$(V))
344 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
345 AM_V_LN_0 = @echo " LN " $@;
347 AM_V_RM = $(AM_V_RM_$(V))
348 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
349 AM_V_RM_0 = @echo " RM " $@;
351 # ------------------------------------------------------------------------------
355 systemd-ask-password \
356 systemd-tty-ask-password-agent \
357 systemd-machine-id-setup \
364 systemd-detect-virt \
371 src/kernel-install/kernel-install
373 dist_kernelinstall_SCRIPTS = \
374 src/kernel-install/50-depmod.install \
375 src/kernel-install/90-loaderentry.install
377 rootlibexec_PROGRAMS = \
379 systemd-cgroups-agent \
384 systemd-reply-password \
390 systemd-socket-proxyd \
394 rootlibexec_PROGRAMS += \
398 systemgenerator_PROGRAMS = \
399 systemd-getty-generator \
400 systemd-fstab-generator \
401 systemd-system-update-generator \
402 systemd-debug-generator
404 dist_bashcompletion_DATA = \
405 shell-completion/bash/busctl \
406 shell-completion/bash/journalctl \
407 shell-completion/bash/systemd-analyze \
408 shell-completion/bash/systemd-cat \
409 shell-completion/bash/systemd-cgls \
410 shell-completion/bash/systemd-cgtop \
411 shell-completion/bash/systemd-delta \
412 shell-completion/bash/systemd-detect-virt \
413 shell-completion/bash/systemd-nspawn \
414 shell-completion/bash/systemd-run \
415 shell-completion/bash/udevadm \
416 shell-completion/bash/kernel-install
418 nodist_bashcompletion_DATA = \
419 shell-completion/bash/systemctl
421 dist_zshcompletion_DATA = \
422 shell-completion/zsh/_journalctl \
423 shell-completion/zsh/_udevadm \
424 shell-completion/zsh/_kernel-install \
425 shell-completion/zsh/_systemd-nspawn \
426 shell-completion/zsh/_systemd-analyze \
427 shell-completion/zsh/_systemd-run \
428 shell-completion/zsh/_sd_hosts_or_user_at_host \
429 shell-completion/zsh/_sd_outputmodes \
430 shell-completion/zsh/_sd_unit_files \
431 shell-completion/zsh/_systemd-delta \
432 shell-completion/zsh/_systemd
434 nodist_zshcompletion_DATA = \
435 shell-completion/zsh/_systemctl
438 shell-completion/bash/systemctl.in \
439 shell-completion/zsh/_systemctl.in
442 $(nodist_bashcompletion_DATA) \
443 $(nodist_zshcompletion_DATA)
446 sysctl.d/50-default.conf
448 dist_systemunit_DATA = \
449 units/graphical.target \
450 units/multi-user.target \
451 units/emergency.target \
452 units/sysinit.target \
457 units/local-fs.target \
458 units/local-fs-pre.target \
459 units/initrd.target \
460 units/initrd-fs.target \
461 units/initrd-root-fs.target \
462 units/remote-fs.target \
463 units/remote-fs-pre.target \
464 units/network.target \
465 units/network-pre.target \
466 units/network-online.target \
467 units/nss-lookup.target \
468 units/nss-user-lookup.target \
469 units/poweroff.target \
470 units/reboot.target \
471 units/rescue.target \
472 units/rpcbind.target \
473 units/time-sync.target \
474 units/shutdown.target \
476 units/umount.target \
477 units/sigpwr.target \
479 units/sockets.target \
480 units/timers.target \
482 units/suspend.target \
484 units/slices.target \
487 units/systemd-initctl.socket \
488 units/systemd-shutdownd.socket \
489 units/syslog.socket \
490 units/dev-hugepages.mount \
491 units/dev-mqueue.mount \
492 units/sys-kernel-config.mount \
493 units/sys-kernel-debug.mount \
494 units/sys-fs-fuse-connections.mount \
496 units/printer.target \
498 units/bluetooth.target \
499 units/smartcard.target \
500 units/systemd-ask-password-wall.path \
501 units/systemd-ask-password-console.path \
502 units/systemd-udevd-control.socket \
503 units/systemd-udevd-kernel.socket \
504 units/system-update.target \
505 units/initrd-switch-root.target
508 dist_systemunit_DATA += \
509 $(dist_systemunit_DATA_busnames)
512 dist_systemunit_DATA_busnames += \
513 units/busnames.target
515 nodist_systemunit_DATA = \
516 units/getty@.service \
517 units/serial-getty@.service \
518 units/console-shell.service \
519 units/console-getty.service \
520 units/container-getty@.service \
521 units/systemd-initctl.service \
522 units/systemd-shutdownd.service \
523 units/systemd-remount-fs.service \
524 units/systemd-ask-password-wall.service \
525 units/systemd-ask-password-console.service \
526 units/systemd-sysctl.service \
527 units/emergency.service \
528 units/rescue.service \
529 units/user@.service \
530 units/systemd-suspend.service \
531 units/systemd-halt.service \
532 units/systemd-poweroff.service \
533 units/systemd-reboot.service \
534 units/systemd-kexec.service \
535 units/systemd-fsck@.service \
536 units/systemd-fsck-root.service \
537 units/systemd-udevd.service \
538 units/systemd-udev-trigger.service \
539 units/systemd-udev-settle.service \
540 units/systemd-udev-hwdb-update.service \
541 units/debug-shell.service \
542 units/initrd-parse-etc.service \
543 units/initrd-cleanup.service \
544 units/initrd-udevadm-cleanup-db.service \
545 units/initrd-switch-root.service \
546 units/systemd-nspawn@.service \
547 units/systemd-update-done.service
550 nodist_systemunit_DATA += \
551 units/systemd-update-utmp.service \
552 units/systemd-update-utmp-runlevel.service
555 dist_userunit_DATA = \
556 units/user/basic.target \
557 units/user/default.target \
558 units/user/exit.target
560 nodist_userunit_DATA = \
561 units/user/systemd-exit.service
563 dist_systempreset_DATA = \
564 system-preset/90-systemd.preset
567 units/getty@.service.m4 \
568 units/serial-getty@.service.m4 \
569 units/console-shell.service.m4.in \
570 units/console-getty.service.m4.in \
571 units/container-getty@.service.m4.in \
572 units/rescue.service.in \
573 units/systemd-initctl.service.in \
574 units/systemd-shutdownd.service.in \
575 units/systemd-remount-fs.service.in \
576 units/systemd-update-utmp.service.in \
577 units/systemd-update-utmp-runlevel.service.in \
578 units/systemd-ask-password-wall.service.in \
579 units/systemd-ask-password-console.service.in \
580 units/systemd-sysctl.service.in \
581 units/emergency.service.in \
582 units/systemd-halt.service.in \
583 units/systemd-poweroff.service.in \
584 units/systemd-reboot.service.in \
585 units/systemd-kexec.service.in \
586 units/user/systemd-exit.service.in \
587 units/systemd-fsck@.service.in \
588 units/systemd-fsck-root.service.in \
589 units/user@.service.in \
590 units/debug-shell.service.in \
591 units/systemd-suspend.service.in \
592 units/quotaon.service.in \
593 units/initrd-parse-etc.service.in \
594 units/initrd-cleanup.service.in \
595 units/initrd-udevadm-cleanup-db.service.in \
596 units/initrd-switch-root.service.in \
597 units/systemd-nspawn@.service.in \
598 units/systemd-update-done.service.in
601 units/console-shell.service.m4 \
602 units/console-getty.service.m4 \
603 units/container-getty@.service.m4 \
604 units/user@.service.m4
607 nodist_systemunit_DATA += \
608 units/rc-local.service \
609 units/halt-local.service
611 systemgenerator_PROGRAMS += \
612 systemd-sysv-generator \
613 systemd-rc-local-generator
617 units/rc-local.service.in \
618 units/halt-local.service.in
620 # automake is broken and can't handle files with a dash in front
621 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
623 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
625 units-uninstall-hook:
626 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
628 INSTALL_DATA_HOOKS += units-install-hook
629 UNINSTALL_DATA_HOOKS += units-uninstall-hook
638 src/libsystemd/sd-bus/PORTING-DBUS1 \
639 src/libsystemd/sd-bus/DIFFERENCES \
640 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
642 @INTLTOOL_POLICY_RULE@
644 # ------------------------------------------------------------------------------
649 include Makefile-man.am
651 .PHONY: man update-man-list
652 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
655 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
657 ${XML_FILES:.xml=.html}
659 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
676 $(AM_V_at)$(MKDIR_P) $(dir $@)
677 $(AM_V_LN)$(LN_S) -f ../../man $@
686 man/index.html: man/systemd.index.html
687 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
695 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
696 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
697 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
699 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
700 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
701 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
702 @echo "Makefile-man.am has been regenerated"
704 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
705 $(AM_V_at)$(MKDIR_P) $(dir $@)
706 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
708 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
709 $(AM_V_at)$(MKDIR_P) $(dir $@)
710 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
713 man/systemd.index.xml \
715 man/systemd.directives.xml
718 man/systemd.index.xml \
719 man/systemd.directives.xml
730 tools/make-man-index.py \
731 tools/make-directive-index.py \
734 # ------------------------------------------------------------------------------
735 noinst_LTLIBRARIES += \
738 libsystemd_shared_la_SOURCES = \
739 src/shared/linux/auto_dev-ioctl.h \
740 src/shared/linux/fanotify.h \
741 src/shared/ioprio.h \
742 src/shared/missing.h \
743 src/shared/initreq.h \
744 src/shared/securebits.h \
745 src/shared/special.h \
749 src/shared/sparse-endian.h \
750 src/shared/refcnt.h \
751 src/shared/udev-util.h \
752 src/shared/bus-errors.h \
753 src/shared/device-nodes.c \
754 src/shared/device-nodes.h \
759 src/shared/architecture.c \
760 src/shared/architecture.h \
761 src/shared/efivars.c \
762 src/shared/efivars.h \
763 src/shared/path-util.c \
764 src/shared/path-util.h \
765 src/shared/time-util.c \
766 src/shared/time-util.h \
767 src/shared/locale-util.c \
768 src/shared/locale-util.h \
769 src/shared/hashmap.c \
770 src/shared/hashmap.h \
771 src/shared/siphash24.c \
772 src/shared/siphash24.h \
779 src/shared/sleep-config.c \
780 src/shared/sleep-config.h \
783 src/shared/env-util.c \
784 src/shared/env-util.h \
785 src/shared/strbuf.c \
786 src/shared/strbuf.h \
787 src/shared/strxcpyx.c \
788 src/shared/strxcpyx.h \
789 src/shared/conf-parser.c \
790 src/shared/conf-parser.h \
793 src/shared/ratelimit.h \
794 src/shared/ratelimit.c \
795 src/shared/exit-status.c \
796 src/shared/exit-status.h \
799 src/shared/gunicode.c \
800 src/shared/gunicode.h \
803 src/shared/socket-util.c \
804 src/shared/socket-util.h \
805 src/shared/in-addr-util.c \
806 src/shared/in-addr-util.h \
807 src/shared/conf-files.c \
808 src/shared/conf-files.h \
809 src/shared/cgroup-util.c \
810 src/shared/cgroup-util.h \
811 src/shared/cgroup-show.c \
812 src/shared/cgroup-show.h \
813 src/shared/unit-name.c \
814 src/shared/unit-name.h \
815 src/shared/utmp-wtmp.h \
816 src/shared/watchdog.c \
817 src/shared/watchdog.h \
818 src/shared/spawn-ask-password-agent.c \
819 src/shared/spawn-ask-password-agent.h \
820 src/shared/replace-var.c \
821 src/shared/replace-var.h \
822 src/shared/spawn-polkit-agent.c \
823 src/shared/spawn-polkit-agent.h \
824 src/shared/clock-util.c \
825 src/shared/clock-util.h \
826 src/shared/time-dst.c \
827 src/shared/time-dst.h \
828 src/shared/calendarspec.c \
829 src/shared/calendarspec.h \
830 src/shared/fileio.c \
831 src/shared/fileio.h \
832 src/shared/output-mode.h \
833 src/shared/MurmurHash2.c \
834 src/shared/MurmurHash2.h \
835 src/shared/acpi-fpdt.h \
836 src/shared/acpi-fpdt.c \
837 src/shared/boot-timestamps.h \
838 src/shared/boot-timestamps.c \
841 src/shared/smack-util.c \
842 src/shared/smack-util.h \
843 src/shared/apparmor-util.c \
844 src/shared/apparmor-util.h \
845 src/shared/ima-util.c \
846 src/shared/ima-util.h \
847 src/shared/ptyfwd.c \
848 src/shared/ptyfwd.h \
849 src/shared/errno-list.c \
850 src/shared/errno-list.h \
851 src/shared/af-list.c \
852 src/shared/af-list.h \
853 src/shared/arphrd-list.c \
854 src/shared/arphrd-list.h \
859 src/shared/condition-util.c \
860 src/shared/condition-util.h \
861 src/shared/bus-label.c \
862 src/shared/bus-label.h \
864 src/shared/clean-ipc.h \
865 src/shared/clean-ipc.c \
866 src/shared/login-shared.c \
867 src/shared/login-shared.h \
870 src/shared/barrier.c \
871 src/shared/barrier.h \
878 src/shared/base-filesystem.c \
879 src/shared/base-filesystem.h \
882 src/shared/uid-range.c \
883 src/shared/uid-range.h \
884 src/shared/switch-root.h \
885 src/shared/switch-root.c \
886 src/shared/nss-util.h
889 libsystemd_shared_la_SOURCES += \
890 src/shared/utmp-wtmp.c
893 nodist_libsystemd_shared_la_SOURCES = \
894 src/shared/errno-from-name.h \
895 src/shared/errno-to-name.h \
896 src/shared/af-from-name.h \
897 src/shared/af-to-name.h \
898 src/shared/arphrd-from-name.h \
899 src/shared/arphrd-to-name.h
901 libsystemd_shared_la_CFLAGS = \
906 # ------------------------------------------------------------------------------
907 noinst_LTLIBRARIES += \
910 libsystemd_units_la_SOURCES = \
911 src/shared/install.c \
912 src/shared/install.h \
913 src/shared/install-printf.c \
914 src/shared/install-printf.h \
915 src/shared/path-lookup.c \
916 src/shared/path-lookup.h \
917 src/shared/specifier.c \
918 src/shared/specifier.h
920 # ------------------------------------------------------------------------------
921 noinst_LTLIBRARIES += \
924 libsystemd_label_la_SOURCES = \
925 src/shared/socket-label.c \
928 src/shared/selinux-util.c \
929 src/shared/selinux-util.h \
930 src/shared/mkdir-label.c \
931 src/shared/ask-password-api.c \
932 src/shared/ask-password-api.h \
933 src/shared/fileio-label.c \
934 src/shared/fileio-label.h \
935 src/shared/dev-setup.c \
936 src/shared/dev-setup.h \
937 src/shared/dropin.c \
938 src/shared/dropin.h \
939 src/shared/generator.h \
940 src/shared/generator.c
942 libsystemd_label_la_CFLAGS = \
946 libsystemd_label_la_LIBADD = \
949 # -----------------------------------------------------------------------------
952 dist_systemunit_DATA += \
953 units/ldconfig.service
955 SYSINIT_TARGET_WANTS += \
959 # ------------------------------------------------------------------------------
962 noinst_LTLIBRARIES += \
963 libsystemd-seccomp.la
965 libsystemd_seccomp_la_SOURCES = \
966 src/shared/seccomp-util.h \
967 src/shared/seccomp-util.c
969 libsystemd_seccomp_la_CFLAGS = \
973 libsystemd_seccomp_la_LIBADD = \
977 # ------------------------------------------------------------------------------
978 noinst_LTLIBRARIES += \
981 libsystemd_logs_la_SOURCES = \
982 src/shared/logs-show.c \
983 src/shared/logs-show.h
985 # ------------------------------------------------------------------------------
986 noinst_LTLIBRARIES += \
987 libsystemd-capability.la
989 libsystemd_capability_la_SOURCES = \
990 src/shared/capability.c \
991 src/shared/capability.h
993 libsystemd_capability_la_CFLAGS = \
997 libsystemd_capability_la_LIBADD = \
1000 # ------------------------------------------------------------------------------
1002 noinst_LTLIBRARIES += \
1005 libsystemd_acl_la_SOURCES = \
1006 src/shared/acl-util.c \
1007 src/shared/acl-util.h
1009 libsystemd_acl_la_CFLAGS = \
1013 libsystemd_acl_la_LIBADD = \
1017 # ------------------------------------------------------------------------------
1018 noinst_LTLIBRARIES += \
1021 libsystemd_core_la_SOURCES = \
1024 src/core/unit-printf.c \
1025 src/core/unit-printf.h \
1028 src/core/manager.c \
1029 src/core/manager.h \
1030 src/core/transaction.c \
1031 src/core/transaction.h \
1032 src/core/load-fragment.c \
1033 src/core/load-fragment.h \
1034 src/core/service.c \
1035 src/core/service.h \
1038 src/core/busname.c \
1039 src/core/busname.h \
1040 src/core/bus-common.c \
1041 src/core/bus-common.h \
1042 src/core/bus-endpoint.c \
1043 src/core/bus-endpoint.h \
1046 src/core/snapshot.c \
1047 src/core/snapshot.h \
1052 src/core/automount.c \
1053 src/core/automount.h \
1064 src/core/load-dropin.c \
1065 src/core/load-dropin.h \
1066 src/core/execute.c \
1067 src/core/execute.h \
1072 src/core/dbus-manager.c \
1073 src/core/dbus-manager.h \
1074 src/core/dbus-unit.c \
1075 src/core/dbus-unit.h \
1076 src/core/dbus-job.c \
1077 src/core/dbus-job.h \
1078 src/core/dbus-service.c \
1079 src/core/dbus-service.h \
1080 src/core/dbus-socket.c \
1081 src/core/dbus-socket.h \
1082 src/core/dbus-busname.c \
1083 src/core/dbus-busname.h \
1084 src/core/dbus-target.c \
1085 src/core/dbus-target.h \
1086 src/core/dbus-snapshot.c \
1087 src/core/dbus-snapshot.h \
1088 src/core/dbus-device.c \
1089 src/core/dbus-device.h \
1090 src/core/dbus-mount.c \
1091 src/core/dbus-mount.h \
1092 src/core/dbus-automount.c \
1093 src/core/dbus-automount.h \
1094 src/core/dbus-swap.c \
1095 src/core/dbus-swap.h \
1096 src/core/dbus-timer.c \
1097 src/core/dbus-timer.h \
1098 src/core/dbus-path.c \
1099 src/core/dbus-path.h \
1100 src/core/dbus-slice.c \
1101 src/core/dbus-slice.h \
1102 src/core/dbus-scope.c \
1103 src/core/dbus-scope.h \
1104 src/core/dbus-execute.c \
1105 src/core/dbus-execute.h \
1106 src/core/dbus-kill.c \
1107 src/core/dbus-kill.h \
1108 src/core/dbus-cgroup.c \
1109 src/core/dbus-cgroup.h \
1112 src/core/selinux-access.c \
1113 src/core/selinux-access.h \
1114 src/core/selinux-setup.c \
1115 src/core/selinux-setup.h \
1116 src/core/smack-setup.c \
1117 src/core/smack-setup.h \
1118 src/core/ima-setup.c \
1119 src/core/ima-setup.h \
1120 src/core/locale-setup.h \
1121 src/core/locale-setup.c \
1122 src/core/hostname-setup.c \
1123 src/core/hostname-setup.h \
1124 src/core/machine-id-setup.c \
1125 src/core/machine-id-setup.h \
1126 src/core/mount-setup.c \
1127 src/core/mount-setup.h \
1128 src/core/loopback-setup.h \
1129 src/core/loopback-setup.c \
1130 src/core/condition.c \
1131 src/core/condition.h \
1132 src/core/namespace.c \
1133 src/core/namespace.h \
1135 src/core/sysfs-show.h \
1136 src/core/killall.h \
1137 src/core/killall.c \
1138 src/core/audit-fd.c \
1139 src/core/audit-fd.h \
1140 src/core/show-status.c \
1141 src/core/show-status.h \
1142 src/core/failure-action.c \
1143 src/core/failure-action.h
1146 libsystemd_core_la_SOURCES += \
1147 src/core/kmod-setup.c \
1148 src/core/kmod-setup.h
1151 nodist_libsystemd_core_la_SOURCES = \
1152 src/core/load-fragment-gperf.c \
1153 src/core/load-fragment-gperf-nulstr.c
1155 libsystemd_core_la_CFLAGS = \
1161 $(APPARMOR_CFLAGS) \
1165 libsystemd_core_la_LIBADD = \
1166 libsystemd-capability.la \
1167 libsystemd-units.la \
1168 libsystemd-label.la \
1169 libudev-internal.la \
1170 libsystemd-shared.la \
1171 libsystemd-internal.la \
1180 libsystemd_core_la_LIBADD += \
1181 libsystemd-seccomp.la
1184 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1185 $(AM_V_at)$(MKDIR_P) $(dir $@)
1186 $(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 ";" }' < $< > $@
1189 src/core/load-fragment-gperf.gperf.m4
1192 src/core/load-fragment-gperf.gperf \
1193 src/core/load-fragment-gperf.c \
1194 src/core/load-fragment-gperf-nulstr.c \
1195 src/shared/errno-list.txt \
1196 src/shared/errno-from-name.gperf \
1197 src/shared/af-list.txt \
1198 src/shared/af-from-name.gperf \
1199 src/shared/arphrd-list.txt \
1200 src/shared/arphrd-from-name.gperf \
1201 src/shared/dns_type-list.txt \
1202 src/shared/dns_type-from-name.gperf
1205 src/shared/errno-from-name.h \
1206 src/shared/errno-to-name.h \
1207 src/shared/af-from-name.h \
1208 src/shared/af-to-name.h \
1209 src/shared/arphrd-from-name.h \
1210 src/shared/arphrd-to-name.h \
1211 src/resolve/dns_type-from-name.h \
1212 src/resolve/dns_type-to-name.h
1214 %-from-name.gperf: %-list.txt
1215 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1217 %-from-name.h: %-from-name.gperf
1218 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1221 src/shared/errno-list.txt:
1222 $(AM_V_at)$(MKDIR_P) $(dir $@)
1223 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1225 src/shared/errno-to-name.h: src/shared/errno-list.txt
1226 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1229 src/shared/af-list.txt:
1230 $(AM_V_at)$(MKDIR_P) $(dir $@)
1231 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1233 src/shared/af-to-name.h: src/shared/af-list.txt
1234 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
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/resolve/dns_type-list.txt: src/resolve/dns-type.h
1248 $(AM_V_at)$(MKDIR_P) $(dir $@)
1249 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1251 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1252 $(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" }' <$< >$@
1254 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1255 $(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 }' <$< >$@
1257 # ------------------------------------------------------------------------------
1266 libsystemd-core.la \
1269 dist_pkgsysconf_DATA += \
1270 src/core/system.conf \
1273 dist_dbuspolicy_DATA += \
1274 src/core/org.freedesktop.systemd1.conf
1276 dist_dbussystemservice_DATA += \
1277 src/core/org.freedesktop.systemd1.service
1279 polkitpolicy_in_in_files += \
1280 src/core/org.freedesktop.systemd1.policy.in.in
1282 pkgconfigdata_DATA = \
1285 nodist_rpmmacros_DATA = \
1286 src/core/macros.systemd
1289 src/core/systemd.pc.in \
1290 src/core/macros.systemd.in
1293 src/core/macros.systemd \
1294 src/core/org.freedesktop.systemd1.policy.in
1296 # ------------------------------------------------------------------------------
1338 test-strip-tab-ansi \
1356 test-condition-util \
1365 test/daughter.service \
1370 test/grandchild.service \
1372 test/hello-after-sleep.target \
1373 test/hello.service \
1375 test/parent-deep.slice \
1378 test/sched_idle_bad.service \
1379 test/sched_idle_ok.service \
1380 test/sched_rr_bad.service \
1381 test/sched_rr_change.service \
1382 test/sched_rr_ok.service \
1383 test/shutdown.target \
1384 test/sleep.service \
1385 test/sockets.target \
1387 test/sysinit.target \
1388 test/testsuite.target \
1389 test/timers.target \
1390 test/unstoppable.service \
1391 test/bus-policy/hello.conf \
1392 test/bus-policy/methods.conf \
1393 test/bus-policy/ownerships.conf \
1394 test/bus-policy/signals.conf
1398 src/test/test-helper.h
1400 test_device_nodes_SOURCES = \
1401 src/test/test-device-nodes.c
1403 test_device_nodes_LDADD = \
1404 libsystemd-shared.la
1406 test_engine_SOURCES = \
1407 src/test/test-engine.c
1409 test_engine_CFLAGS = \
1413 test_engine_LDADD = \
1414 libsystemd-core.la \
1417 test_job_type_SOURCES = \
1418 src/test/test-job-type.c
1420 test_job_type_CFLAGS = \
1424 test_job_type_LDADD = \
1425 libsystemd-core.la \
1438 test_loopback_SOURCES = \
1439 src/test/test-loopback.c
1441 test_loopback_LDADD = \
1444 test_hostname_SOURCES = \
1445 src/test/test-hostname.c
1447 test_hostname_LDADD = \
1454 test_boot_timestamp_SOURCES = \
1455 src/test/test-boot-timestamps.c
1457 test_boot_timestamp_LDADD = \
1458 libsystemd-shared.la
1461 test_unit_name_SOURCES = \
1462 src/test/test-unit-name.c
1464 test_unit_name_CFLAGS = \
1468 test_unit_name_LDADD = \
1469 libsystemd-core.la \
1472 test_unit_file_SOURCES = \
1473 src/test/test-unit-file.c
1475 test_unit_file_CFLAGS = \
1479 test_unit_file_LDADD = \
1480 libsystemd-core.la \
1483 test_utf8_SOURCES = \
1484 src/test/test-utf8.c
1487 libsystemd-shared.la
1489 test_capability_SOURCES = \
1490 src/test/test-capability.c
1492 test_capability_LDADD = \
1493 libsystemd-shared.la \
1494 libsystemd-capability.la
1496 test_async_SOURCES = \
1497 src/test/test-async.c
1499 test_async_LDADD = \
1500 libsystemd-shared.la
1502 test_condition_util_SOURCES = \
1503 src/test/test-condition-util.c
1505 test_condition_util_LDADD = \
1506 libsystemd-shared.la \
1507 libsystemd-internal.la
1510 test_fdset_SOURCES = \
1511 src/test/test-fdset.c
1513 test_fdset_LDADD = \
1516 test_ratelimit_SOURCES = \
1517 src/test/test-ratelimit.c
1519 test_ratelimit_LDADD = \
1520 libsystemd-shared.la
1522 test_util_SOURCES = \
1523 src/test/test-util.c
1528 test_uid_range_SOURCES = \
1529 src/test/test-uid-range.c
1531 test_uid_range_LDADD = \
1534 test_socket_util_SOURCES = \
1535 src/test/test-socket-util.c
1537 test_socket_util_LDADD = \
1540 test_ring_SOURCES = \
1541 src/test/test-ring.c
1546 test_barrier_SOURCES = \
1547 src/test/test-barrier.c
1549 test_barrier_LDADD = \
1552 test_pty_SOURCES = \
1558 test_tmpfiles_SOURCES = \
1559 src/test/test-tmpfiles.c
1561 test_tmpfiles_LDADD = \
1562 libsystemd-shared.la
1564 test_namespace_SOURCES = \
1565 src/test/test-namespace.c
1567 test_namespace_LDADD = \
1570 test_hashmap_SOURCES = \
1571 src/test/test-hashmap.c
1573 test_hashmap_LDADD = \
1576 test_set_SOURCES = \
1582 test_xml_SOURCES = \
1586 libsystemd-shared.la
1588 test_list_SOURCES = \
1589 src/test/test-list.c
1594 test_tables_SOURCES = \
1595 src/test/test-tables.c \
1596 src/shared/test-tables.h \
1597 src/bus-proxyd/bus-policy.c \
1598 src/bus-proxyd/bus-policy.h \
1599 src/journal/journald-server.c \
1600 src/journal/journald-server.h
1602 test_tables_CPPFLAGS = \
1604 -I$(top_srcdir)/src/bus-proxyd
1606 test_tables_CFLAGS = \
1610 test_tables_LDADD = \
1611 libsystemd-logs.la \
1612 libsystemd-journal-internal.la \
1613 libsystemd-journal-core.la \
1614 libsystemd-core.la \
1618 test_prioq_SOURCES = \
1619 src/test/test-prioq.c
1621 test_prioq_LDADD = \
1624 test_fileio_SOURCES = \
1625 src/test/test-fileio.c
1627 test_fileio_LDADD = \
1630 test_time_SOURCES = \
1631 src/test/test-time.c
1636 test_architecture_SOURCES = \
1637 src/test/test-architecture.c
1639 test_architecture_LDADD = \
1640 libsystemd-shared.la
1642 test_log_SOURCES = \
1648 test_ipcrm_SOURCES = \
1649 src/test/test-ipcrm.c
1651 test_ipcrm_LDADD = \
1652 libsystemd-shared.la \
1655 test_rtnl_manual_SOURCES = \
1656 src/test/test-rtnl-manual.c
1658 test_rtnl_manual_CFLAGS = \
1662 test_rtnl_manual_LDADD = \
1663 libsystemd-internal.la \
1664 libsystemd-shared.la \
1667 test_ellipsize_SOURCES = \
1668 src/test/test-ellipsize.c
1670 test_ellipsize_LDADD = \
1673 test_date_SOURCES = \
1674 src/test/test-date.c
1679 test_sleep_SOURCES = \
1680 src/test/test-sleep.c
1682 test_sleep_LDADD = \
1685 test_replace_var_SOURCES = \
1686 src/test/test-replace-var.c
1688 test_replace_var_LDADD = \
1689 libsystemd-shared.la
1691 test_calendarspec_SOURCES = \
1692 src/test/test-calendarspec.c
1694 test_calendarspec_LDADD = \
1695 libsystemd-shared.la
1697 test_strip_tab_ansi_SOURCES = \
1698 src/test/test-strip-tab-ansi.c
1700 test_strip_tab_ansi_LDADD = \
1701 libsystemd-shared.la
1703 test_daemon_SOURCES = \
1704 src/test/test-daemon.c
1706 test_daemon_LDADD = \
1707 libsystemd-internal.la \
1708 libsystemd-shared.la
1710 test_cgroup_SOURCES = \
1711 src/test/test-cgroup.c
1713 test_cgroup_LDADD = \
1714 libsystemd-label.la \
1715 libsystemd-shared.la \
1716 libsystemd-internal.la
1718 test_cgroup_mask_SOURCES = \
1719 src/test/test-cgroup-mask.c
1721 test_cgroup_mask_CPPFLAGS = \
1723 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1725 test_cgroup_mask_CFLAGS = \
1729 test_cgroup_mask_LDADD = \
1730 libsystemd-core.la \
1733 test_cgroup_util_SOURCES = \
1734 src/test/test-cgroup-util.c
1736 test_cgroup_util_LDADD = \
1737 libsystemd-label.la \
1738 libsystemd-internal.la \
1739 libsystemd-shared.la
1741 test_env_replace_SOURCES = \
1742 src/test/test-env-replace.c
1744 test_env_replace_LDADD = \
1745 libsystemd-shared.la
1747 test_strbuf_SOURCES = \
1748 src/test/test-strbuf.c
1750 test_strbuf_LDADD = \
1751 libsystemd-shared.la
1753 test_strv_SOURCES = \
1754 src/test/test-strv.c
1757 libsystemd-units.la \
1758 libsystemd-internal.la \
1759 libsystemd-shared.la
1761 test_path_util_SOURCES = \
1762 src/test/test-path-util.c
1764 test_path_util_LDADD = \
1765 libsystemd-shared.la
1767 test_strxcpyx_SOURCES = \
1768 src/test/test-strxcpyx.c
1770 test_strxcpyx_LDADD = \
1771 libsystemd-shared.la
1773 test_install_SOURCES = \
1774 src/test/test-install.c
1776 test_install_LDADD = \
1777 libsystemd-units.la \
1778 libsystemd-label.la \
1779 libsystemd-shared.la \
1780 libsystemd-internal.la
1782 test_watchdog_SOURCES = \
1783 src/test/test-watchdog.c
1785 test_watchdog_LDADD = \
1786 libsystemd-shared.la
1788 test_sched_prio_SOURCES = \
1789 src/test/test-sched-prio.c
1791 test_sched_prio_CPPFLAGS = \
1793 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1795 test_sched_prio_CFLAGS = \
1799 test_sched_prio_LDADD = \
1800 libsystemd-core.la \
1803 test_conf_files_SOURCES = \
1804 src/test/test-conf-files.c
1806 test_conf_files_LDADD = \
1807 libsystemd-shared.la
1809 test_bus_policy_SOURCES = \
1810 src/bus-proxyd/test-bus-policy.c \
1811 src/bus-proxyd/bus-policy.c \
1812 src/bus-proxyd/bus-policy.h
1814 test_bus_policy_LDADD = \
1815 libsystemd-capability.la \
1816 libsystemd-internal.la \
1817 libsystemd-shared.la
1819 # ------------------------------------------------------------------------------
1820 ## .PHONY so it always rebuilds it
1821 .PHONY: coverage lcov-run lcov-report coverage-sync
1823 # run lcov from scratch, always
1828 coverage_dir = coverage
1829 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1832 # reset run coverage tests
1834 @rm -rf $(coverage_dir)
1835 lcov $(coverage_opts) --zerocounters
1838 # generate report based on current coverage data
1840 $(MKDIR_P) $(coverage_dir)
1841 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1842 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1843 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1844 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1846 # lcov doesn't work properly with vpath builds, make sure that bad
1847 # output is not uploaded by mistake.
1848 coverage-sync: coverage
1849 test "$(builddir)" = "$(srcdir)"
1850 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1853 lcov-run lcov-report:
1854 echo "Need to reconfigure with --enable-coverage"
1857 # ------------------------------------------------------------------------------
1858 systemd_analyze_SOURCES = \
1859 src/analyze/analyze.c \
1860 src/analyze/analyze-verify.c \
1861 src/analyze/analyze-verify.h
1863 systemd_verify_CFLAGS = \
1867 systemd_analyze_LDADD = \
1868 libsystemd-core.la \
1869 libsystemd-internal.la \
1870 libsystemd-shared.la \
1873 # ------------------------------------------------------------------------------
1874 systemd_initctl_SOURCES = \
1875 src/initctl/initctl.c
1877 systemd_initctl_LDADD = \
1878 libsystemd-internal.la \
1879 libsystemd-shared.la
1881 # ------------------------------------------------------------------------------
1882 systemd_update_utmp_SOURCES = \
1883 src/update-utmp/update-utmp.c
1885 systemd_update_utmp_CFLAGS = \
1889 systemd_update_utmp_LDADD = \
1890 libsystemd-internal.la \
1891 libsystemd-shared.la \
1894 # ------------------------------------------------------------------------------
1895 systemd_update_done_SOURCES = \
1896 src/update-done/update-done.c
1898 systemd_update_done_LDADD = \
1899 libsystemd-internal.la \
1900 libsystemd-label.la \
1901 libsystemd-shared.la
1903 # ------------------------------------------------------------------------------
1904 systemd_shutdownd_SOURCES = \
1905 src/shutdownd/shutdownd.c
1907 systemd_shutdownd_LDADD = \
1908 libsystemd-label.la \
1909 libsystemd-internal.la \
1910 libsystemd-shared.la
1913 src/systemd/sd-shutdown.h
1915 # ------------------------------------------------------------------------------
1916 systemd_shutdown_SOURCES = \
1919 src/core/shutdown.c \
1920 src/core/mount-setup.c \
1921 src/core/mount-setup.h \
1922 src/core/killall.h \
1925 systemd_shutdown_LDADD = \
1926 libsystemd-label.la \
1927 libudev-internal.la \
1928 libsystemd-shared.la
1930 # ------------------------------------------------------------------------------
1932 systemd_modules_load_SOURCES = \
1933 src/modules-load/modules-load.c
1935 systemd_modules_load_CFLAGS = \
1939 systemd_modules_load_LDADD = \
1940 libsystemd-shared.la \
1943 rootlibexec_PROGRAMS += \
1944 systemd-modules-load
1946 nodist_systemunit_DATA += \
1947 units/systemd-modules-load.service
1949 SYSINIT_TARGET_WANTS += \
1950 systemd-modules-load.service
1953 nodist_systemunit_DATA += \
1954 units/kmod-static-nodes.service
1956 SYSINIT_TARGET_WANTS += \
1957 kmod-static-nodes.service
1962 units/systemd-modules-load.service.in \
1963 units/kmod-static-nodes.service.in
1965 # ------------------------------------------------------------------------------
1967 systemd_tmpfiles_SOURCES = \
1968 src/tmpfiles/tmpfiles.c
1970 systemd_tmpfiles_LDADD = \
1971 libsystemd-units.la \
1972 libsystemd-label.la \
1973 libsystemd-capability.la \
1974 libsystemd-internal.la \
1975 libsystemd-shared.la
1977 rootbin_PROGRAMS += \
1980 dist_systemunit_DATA += \
1981 units/systemd-tmpfiles-clean.timer
1983 nodist_systemunit_DATA += \
1984 units/systemd-tmpfiles-setup-dev.service \
1985 units/systemd-tmpfiles-setup.service \
1986 units/systemd-tmpfiles-clean.service
1988 nodist_tmpfiles_DATA = \
1991 dist_tmpfiles_DATA = \
1992 tmpfiles.d/systemd.conf \
1993 tmpfiles.d/systemd-nologin.conf \
1994 tmpfiles.d/systemd-remote.conf \
1995 tmpfiles.d/tmp.conf \
1996 tmpfiles.d/x11.conf \
2000 dist_tmpfiles_DATA += \
2001 tmpfiles.d/legacy.conf
2004 SYSINIT_TARGET_WANTS += \
2005 systemd-tmpfiles-setup-dev.service \
2006 systemd-tmpfiles-setup.service
2008 dist_zshcompletion_DATA += \
2009 shell-completion/zsh/_systemd-tmpfiles
2011 TIMERS_TARGET_WANTS += \
2012 systemd-tmpfiles-clean.timer
2016 $(sysconfdir)/tmpfiles.d
2020 tmpfiles.d/etc.conf.m4 \
2021 units/systemd-tmpfiles-setup-dev.service.in \
2022 units/systemd-tmpfiles-setup.service.in \
2023 units/systemd-tmpfiles-clean.service.in
2028 # ------------------------------------------------------------------------------
2030 systemd_sysusers_SOURCES = \
2031 src/sysusers/sysusers.c
2033 systemd_sysusers_LDADD = \
2034 libsystemd-units.la \
2035 libsystemd-label.la \
2036 libsystemd-capability.la \
2037 libsystemd-internal.la \
2038 libsystemd-shared.la
2040 rootbin_PROGRAMS += \
2043 nodist_systemunit_DATA += \
2044 units/systemd-sysusers.service
2046 SYSINIT_TARGET_WANTS += \
2047 systemd-sysusers.service
2049 dist_sysusers_DATA = \
2050 sysusers.d/systemd.conf \
2051 sysusers.d/systemd-remote.conf
2053 nodist_sysusers_DATA = \
2054 sysusers.d/basic.conf
2057 units/systemd-sysusers.service.in \
2058 sysusers.d/basic.conf.in
2061 sysusers.d/basic.conf
2067 # ------------------------------------------------------------------------------
2068 dist_factory_etc_DATA = \
2069 factory/etc/nsswitch.conf
2072 dist_factory_pam_DATA = \
2073 factory/etc/pam.d/system-auth \
2074 factory/etc/pam.d/other
2077 # ------------------------------------------------------------------------------
2079 systemd_firstboot_SOURCES = \
2080 src/firstboot/firstboot.c
2082 systemd_firstboot_LDADD = \
2083 libsystemd-units.la \
2084 libsystemd-label.la \
2085 libsystemd-capability.la \
2086 libsystemd-internal.la \
2087 libsystemd-shared.la \
2090 rootbin_PROGRAMS += \
2093 nodist_systemunit_DATA += \
2094 units/systemd-firstboot.service
2097 units/systemd-firstboot.service.in
2099 SYSINIT_TARGET_WANTS += \
2100 systemd-firstboot.service
2103 # ------------------------------------------------------------------------------
2104 systemd_machine_id_setup_SOURCES = \
2105 src/machine-id-setup/machine-id-setup-main.c \
2106 src/core/machine-id-setup.c \
2107 src/core/machine-id-setup.h
2109 systemd_machine_id_setup_LDADD = \
2110 libsystemd-label.la \
2111 libsystemd-internal.la \
2112 libsystemd-shared.la
2114 # ------------------------------------------------------------------------------
2115 systemd_sysctl_SOURCES = \
2118 systemd_sysctl_LDADD = \
2119 libsystemd-shared.la
2121 # ------------------------------------------------------------------------------
2122 systemd_sleep_SOURCES = \
2125 systemd_sleep_LDADD = \
2126 libsystemd-shared.la
2128 # ------------------------------------------------------------------------------
2129 systemd_fsck_SOURCES = \
2132 systemd_fsck_LDADD = \
2133 libsystemd-internal.la \
2134 libudev-internal.la \
2135 libsystemd-shared.la
2137 # ------------------------------------------------------------------------------
2138 systemd_ac_power_SOURCES = \
2139 src/ac-power/ac-power.c
2141 systemd_ac_power_LDADD = \
2142 libudev-internal.la \
2143 libsystemd-shared.la
2145 # ------------------------------------------------------------------------------
2146 systemd_detect_virt_SOURCES = \
2147 src/detect-virt/detect-virt.c
2149 systemd_detect_virt_LDADD = \
2150 libsystemd-shared.la
2152 INSTALL_EXEC_HOOKS += \
2153 systemd-detect-virt-install-hook
2155 # ------------------------------------------------------------------------------
2156 systemd_delta_SOURCES = \
2159 systemd_delta_LDADD = \
2160 libsystemd-shared.la
2162 # ------------------------------------------------------------------------------
2163 systemd_getty_generator_SOURCES = \
2164 src/getty-generator/getty-generator.c
2166 systemd_getty_generator_LDADD = \
2167 libsystemd-label.la \
2168 libsystemd-shared.la
2170 # ------------------------------------------------------------------------------
2171 systemd_debug_generator_SOURCES = \
2172 src/debug-generator/debug-generator.c
2174 systemd_debug_generator_LDADD = \
2175 libsystemd-label.la \
2176 libsystemd-shared.la
2178 # ------------------------------------------------------------------------------
2179 systemd_fstab_generator_SOURCES = \
2180 src/fstab-generator/fstab-generator.c \
2181 src/core/mount-setup.c
2183 systemd_fstab_generator_LDADD = \
2184 libsystemd-label.la \
2185 libsystemd-shared.la
2187 # ------------------------------------------------------------------------------
2188 systemd_system_update_generator_SOURCES = \
2189 src/system-update-generator/system-update-generator.c
2191 systemd_system_update_generator_LDADD = \
2192 libsystemd-label.la \
2193 libsystemd-shared.la
2195 # ------------------------------------------------------------------------------
2197 systemgenerator_PROGRAMS += \
2198 systemd-hibernate-resume-generator
2200 rootlibexec_PROGRAMS += \
2201 systemd-hibernate-resume
2203 systemd_hibernate_resume_SOURCES = \
2204 src/hibernate-resume/hibernate-resume.c
2206 systemd_hibernate_resume_LDADD = \
2207 libsystemd-internal.la \
2208 libsystemd-shared.la
2210 systemd_hibernate_resume_generator_SOURCES = \
2211 src/hibernate-resume/hibernate-resume-generator.c
2213 systemd_hibernate_resume_generator_LDADD = \
2214 libsystemd-label.la \
2215 libsystemd-shared.la
2218 units/systemd-hibernate.service.in \
2219 units/systemd-hibernate-resume@.service.in \
2220 units/systemd-hybrid-sleep.service.in
2222 dist_systemunit_DATA += \
2223 units/hibernate.target \
2224 units/hybrid-sleep.target
2226 nodist_systemunit_DATA += \
2227 units/systemd-hibernate.service \
2228 units/systemd-hibernate-resume@.service \
2229 units/systemd-hybrid-sleep.service
2232 # ------------------------------------------------------------------------------
2234 systemgenerator_PROGRAMS += \
2235 systemd-efi-boot-generator
2237 systemd_efi_boot_generator_SOURCES = \
2238 src/efi-boot-generator/efi-boot-generator.c
2240 systemd_efi_boot_generator_LDADD = \
2241 libsystemd-label.la \
2242 libsystemd-shared.la
2244 # ------------------------------------------------------------------------------
2247 src/boot/boot-loader.h \
2248 src/boot/bootctl.c \
2249 src/boot/boot-loader.c \
2253 libsystemd-shared.la \
2254 libsystemd-internal.la
2259 dist_bashcompletion_DATA += \
2260 shell-completion/bash/bootctl
2262 dist_zshcompletion_DATA += \
2263 shell-completion/zsh/_bootctl
2267 # ------------------------------------------------------------------------------
2269 systemgenerator_PROGRAMS += \
2270 systemd-gpt-auto-generator
2272 systemd_gpt_auto_generator_SOURCES = \
2273 src/gpt-auto-generator/gpt-auto-generator.c \
2274 src/shared/blkid-util.h
2276 systemd_gpt_auto_generator_LDADD = \
2277 libsystemd-label.la \
2278 libsystemd-internal.la \
2279 libudev-internal.la \
2280 libsystemd-shared.la \
2283 systemd_gpt_auto_generator_CFLAGS = \
2288 # ------------------------------------------------------------------------------
2290 systemgenerator_PROGRAMS += \
2291 systemd-dbus1-generator
2293 systemd_dbus1_generator_SOURCES = \
2294 src/dbus1-generator/dbus1-generator.c
2296 systemd_dbus1_generator_LDADD = \
2297 libsystemd-label.la \
2298 libsystemd-shared.la \
2299 libsystemd-internal.la
2301 dbus1-generator-install-hook:
2302 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2303 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2304 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2306 dbus1-generator-uninstall-hook:
2307 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2309 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2310 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2313 # ------------------------------------------------------------------------------
2314 systemd_sysv_generator_SOURCES = \
2315 src/sysv-generator/sysv-generator.c
2317 systemd_sysv_generator_LDADD = \
2318 libsystemd-core.la \
2319 libsystemd-label.la \
2320 libsystemd-shared.la
2322 # ------------------------------------------------------------------------------
2323 systemd_rc_local_generator_SOURCES = \
2324 src/rc-local-generator/rc-local-generator.c
2326 systemd_rc_local_generator_LDADD = \
2327 libsystemd-label.la \
2328 libsystemd-shared.la
2330 # ------------------------------------------------------------------------------
2331 systemd_remount_fs_SOURCES = \
2332 src/remount-fs/remount-fs.c \
2333 src/core/mount-setup.c \
2334 src/core/mount-setup.h
2336 systemd_remount_fs_LDADD = \
2337 libsystemd-label.la \
2338 libsystemd-shared.la
2340 # ------------------------------------------------------------------------------
2341 systemd_cgroups_agent_SOURCES = \
2342 src/cgroups-agent/cgroups-agent.c
2344 systemd_cgroups_agent_LDADD = \
2345 libsystemd-internal.la \
2346 libsystemd-shared.la
2348 # ------------------------------------------------------------------------------
2349 systemd_escape_SOURCES = \
2352 systemd_escape_LDADD = \
2353 libsystemd-shared.la
2355 # -----------------------------------------------------------------------------
2356 systemctl_SOURCES = \
2357 src/systemctl/systemctl.c
2360 libsystemd-units.la \
2361 libsystemd-label.la \
2362 libsystemd-internal.la \
2363 libsystemd-logs.la \
2364 libsystemd-journal-internal.la \
2365 libsystemd-shared.la
2367 # ------------------------------------------------------------------------------
2368 systemd_notify_SOURCES = \
2371 systemd_notify_LDADD = \
2372 libsystemd-internal.la \
2373 libsystemd-shared.la
2375 # ------------------------------------------------------------------------------
2376 systemd_path_SOURCES = \
2379 systemd_path_LDADD = \
2380 libsystemd-internal.la \
2381 libsystemd-shared.la
2383 # ------------------------------------------------------------------------------
2384 systemd_ask_password_SOURCES = \
2385 src/ask-password/ask-password.c
2387 systemd_ask_password_LDADD = \
2388 libsystemd-label.la \
2389 libsystemd-shared.la
2391 # ------------------------------------------------------------------------------
2392 systemd_reply_password_SOURCES = \
2393 src/reply-password/reply-password.c
2395 systemd_reply_password_LDADD = \
2396 libsystemd-shared.la
2398 # ------------------------------------------------------------------------------
2399 systemd_cgls_SOURCES = \
2402 systemd_cgls_LDADD = \
2403 libsystemd-internal.la \
2404 libsystemd-shared.la
2406 # ------------------------------------------------------------------------------
2407 systemd_cgtop_SOURCES = \
2410 systemd_cgtop_LDADD = \
2411 libsystemd-shared.la
2413 # ------------------------------------------------------------------------------
2414 systemd_nspawn_SOURCES = \
2415 src/nspawn/nspawn.c \
2416 src/core/mount-setup.c \
2417 src/core/mount-setup.h \
2418 src/core/loopback-setup.c \
2419 src/core/loopback-setup.h
2421 systemd_nspawn_CFLAGS = \
2426 systemd_nspawn_LDADD = \
2427 libsystemd-label.la \
2428 libsystemd-capability.la \
2429 libsystemd-internal.la \
2430 libudev-internal.la \
2431 libsystemd-shared.la \
2435 systemd_nspawn_LDADD += \
2436 libsystemd-seccomp.la \
2440 # ------------------------------------------------------------------------------
2441 systemd_run_SOURCES = \
2444 systemd_run_LDADD = \
2445 libsystemd-label.la \
2446 libsystemd-capability.la \
2447 libsystemd-internal.la \
2448 libsystemd-shared.la
2450 # ------------------------------------------------------------------------------
2451 systemd_bus_proxyd_SOURCES = \
2452 src/bus-proxyd/bus-proxyd.c \
2453 src/bus-proxyd/bus-policy.c \
2454 src/bus-proxyd/bus-policy.h
2456 systemd_bus_proxyd_LDADD = \
2457 libsystemd-capability.la \
2458 libsystemd-internal.la \
2459 libsystemd-shared.la
2461 bus-proxyd-install-hook:
2462 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2463 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2464 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2466 bus-proxyd-uninstall-hook:
2467 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2469 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2470 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2473 nodist_systemunit_DATA += \
2474 units/systemd-bus-proxyd@.service
2476 dist_systemunit_DATA += \
2477 units/systemd-bus-proxyd.socket
2479 dist_userunit_DATA += \
2480 units/user/systemd-bus-proxyd.socket \
2481 units/user/systemd-bus-proxyd@.service
2485 units/systemd-bus-proxyd@.service.in
2487 # ------------------------------------------------------------------------------
2488 systemd_tty_ask_password_agent_SOURCES = \
2489 src/tty-ask-password-agent/tty-ask-password-agent.c
2491 systemd_tty_ask_password_agent_LDADD = \
2492 libsystemd-label.la \
2493 libsystemd-shared.la
2495 # ------------------------------------------------------------------------------
2496 libsystemd_internal_la_SOURCES = \
2497 src/systemd/sd-bus.h \
2498 src/systemd/sd-bus-protocol.h \
2499 src/systemd/sd-bus-vtable.h \
2500 src/systemd/sd-utf8.h \
2501 src/systemd/sd-event.h \
2502 src/systemd/sd-rtnl.h \
2503 src/systemd/sd-resolve.h \
2504 src/systemd/sd-login.h \
2505 src/systemd/sd-id128.h \
2506 src/systemd/sd-daemon.h \
2507 src/systemd/sd-path.h \
2508 src/systemd/sd-network.h \
2509 src/libsystemd/sd-bus/sd-bus.c \
2510 src/libsystemd/sd-bus/bus-control.c \
2511 src/libsystemd/sd-bus/bus-control.h \
2512 src/libsystemd/sd-bus/bus-error.c \
2513 src/libsystemd/sd-bus/bus-error.h \
2514 src/libsystemd/sd-bus/bus-internal.c \
2515 src/libsystemd/sd-bus/bus-internal.h \
2516 src/libsystemd/sd-bus/bus-socket.c \
2517 src/libsystemd/sd-bus/bus-socket.h \
2518 src/libsystemd/sd-bus/bus-kernel.c \
2519 src/libsystemd/sd-bus/bus-kernel.h \
2520 src/libsystemd/sd-bus/bus-container.c \
2521 src/libsystemd/sd-bus/bus-container.h \
2522 src/libsystemd/sd-bus/bus-message.c \
2523 src/libsystemd/sd-bus/bus-message.h \
2524 src/libsystemd/sd-bus/bus-creds.c \
2525 src/libsystemd/sd-bus/bus-creds.h \
2526 src/libsystemd/sd-bus/bus-signature.c \
2527 src/libsystemd/sd-bus/bus-signature.h \
2528 src/libsystemd/sd-bus/bus-type.c \
2529 src/libsystemd/sd-bus/bus-type.h \
2530 src/libsystemd/sd-bus/bus-match.c \
2531 src/libsystemd/sd-bus/bus-match.h \
2532 src/libsystemd/sd-bus/bus-bloom.c \
2533 src/libsystemd/sd-bus/bus-bloom.h \
2534 src/libsystemd/sd-bus/bus-introspect.c \
2535 src/libsystemd/sd-bus/bus-introspect.h \
2536 src/libsystemd/sd-bus/bus-objects.c \
2537 src/libsystemd/sd-bus/bus-objects.h \
2538 src/libsystemd/sd-bus/bus-gvariant.c \
2539 src/libsystemd/sd-bus/bus-gvariant.h \
2540 src/libsystemd/sd-bus/bus-convenience.c \
2541 src/libsystemd/sd-bus/bus-track.c \
2542 src/libsystemd/sd-bus/bus-track.h \
2543 src/libsystemd/sd-bus/bus-util.c \
2544 src/libsystemd/sd-bus/bus-util.h \
2545 src/libsystemd/sd-bus/bus-slot.c \
2546 src/libsystemd/sd-bus/bus-slot.h \
2547 src/libsystemd/sd-bus/bus-protocol.h \
2548 src/libsystemd/sd-bus/kdbus.h \
2549 src/libsystemd/sd-utf8/sd-utf8.c \
2550 src/libsystemd/sd-event/sd-event.c \
2551 src/libsystemd/sd-event/event-util.h \
2552 src/libsystemd/sd-rtnl/sd-rtnl.c \
2553 src/libsystemd/sd-rtnl/rtnl-internal.h \
2554 src/libsystemd/sd-rtnl/rtnl-message.c \
2555 src/libsystemd/sd-rtnl/rtnl-types.h \
2556 src/libsystemd/sd-rtnl/rtnl-types.c \
2557 src/libsystemd/sd-rtnl/rtnl-util.h \
2558 src/libsystemd/sd-rtnl/rtnl-util.c \
2559 src/libsystemd/sd-rtnl/local-addresses.h \
2560 src/libsystemd/sd-rtnl/local-addresses.c \
2561 src/libsystemd/sd-id128/sd-id128.c \
2562 src/libsystemd/sd-daemon/sd-daemon.c \
2563 src/libsystemd/sd-login/sd-login.c \
2564 src/libsystemd/sd-path/sd-path.c \
2565 src/libsystemd/sd-network/sd-network.c \
2566 src/libsystemd/sd-network/network-util.h \
2567 src/libsystemd/sd-network/network-util.c
2569 nodist_libsystemd_internal_la_SOURCES = \
2570 src/libsystemd/libsystemd.sym \
2571 src/libsystemd/sd-bus/bus-error-mapping.c
2573 libsystemd_internal_la_CFLAGS = \
2577 libsystemd_internal_la_LIBADD = \
2580 libsystemd_resolve_la_SOURCES = \
2581 src/libsystemd/sd-resolve/sd-resolve.c \
2582 src/libsystemd/sd-resolve/resolve-util.h
2584 libsystemd_resolve_la_CFLAGS = \
2588 libsystemd_resolve_la_LIBADD = \
2591 noinst_LTLIBRARIES += \
2592 libsystemd-internal.la \
2593 libsystemd-resolve.la
2595 libsystemd_dump_la_SOURCES = \
2596 src/libsystemd/sd-bus/bus-dump.c \
2597 src/libsystemd/sd-bus/bus-dump.h
2599 libsystemd_dump_la_CFLAGS = \
2603 noinst_LTLIBRARIES += \
2607 src/libsystemd/libsystemd.sym.m4 \
2608 src/libsystemd/libsystemd.pc.in \
2609 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2610 src/libsystemd/sd-bus/DIFFERENCES \
2611 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2614 src/libsystemd/libsystemd.sym \
2615 src/libsystemd/sd-bus/bus-error-mapping.c
2618 src/libsystemd/libsystemd.sym
2620 libsystemd_la_SOURCES = \
2621 $(libsystemd_internal_la_SOURCES) \
2622 $(libsystemd_resolve_la_SOURCES) \
2623 $(libsystemd_journal_internal_la_SOURCES)
2625 nodist_libsystemd_la_SOURCES = \
2626 $(nodist_libsystemd_internal_la_SOURCES)
2628 libsystemd_la_CFLAGS = \
2629 $(libsystemd_internal_la_CFLAGS) \
2630 $(libsystemd_resolve_la_CFLAGS) \
2631 $(libsystemd_journal_internal_la_CFLAGS)
2633 libsystemd_la_LDFLAGS = \
2635 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2636 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2638 libsystemd_la_LIBADD = \
2639 libsystemd-shared.la \
2640 $(libsystemd_internal_la_LIBADD) \
2641 $(libsystemd_journal_internal_la_LIBADD) \
2642 $(libsystemd_resolve_la_LIBADD)
2644 libsystemd-install-hook:
2645 libname=libsystemd.so && $(move-to-rootlibdir)
2647 libsystemd-uninstall-hook:
2648 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2650 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2651 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2653 pkgconfiglib_DATA += \
2654 src/libsystemd/libsystemd.pc
2656 pkginclude_HEADERS += \
2657 src/systemd/sd-login.h \
2658 src/systemd/sd-id128.h \
2659 src/systemd/sd-daemon.h
2662 pkginclude_HEADERS += \
2663 src/systemd/sd-bus.h \
2664 src/systemd/sd-bus-protocol.h \
2665 src/systemd/sd-bus-vtable.h \
2666 src/systemd/sd-utf8.h \
2667 src/systemd/sd-event.h \
2668 src/systemd/sd-rtnl.h \
2669 src/systemd/sd-resolve.h \
2670 src/systemd/sd-path.h
2673 lib_LTLIBRARIES += \
2678 test-bus-signature \
2684 test-bus-kernel-bloom \
2685 test-bus-kernel-benchmark \
2686 test-bus-zero-copy \
2687 test-bus-introspect \
2699 test_bus_marshal_SOURCES = \
2700 src/libsystemd/sd-bus/test-bus-marshal.c
2702 test_bus_marshal_LDADD = \
2703 libsystemd-internal.la \
2704 libsystemd-shared.la \
2705 libsystemd-dump.la \
2706 libsystemd-capability.la \
2711 test_bus_marshal_CFLAGS = \
2717 test_bus_signature_SOURCES = \
2718 src/libsystemd/sd-bus/test-bus-signature.c
2720 test_bus_signature_LDADD = \
2721 libsystemd-shared.la \
2722 libsystemd-internal.la
2724 test_bus_chat_SOURCES = \
2725 src/libsystemd/sd-bus/test-bus-chat.c
2727 test_bus_chat_CFLAGS = \
2731 test_bus_chat_LDADD = \
2732 libsystemd-internal.la \
2733 libsystemd-shared.la
2735 test_bus_cleanup_SOURCES = \
2736 src/libsystemd/sd-bus/test-bus-cleanup.c
2738 test_bus_cleanup_CFLAGS = \
2742 test_bus_cleanup_LDADD = \
2743 libsystemd-internal.la \
2744 libsystemd-shared.la
2746 test_bus_server_SOURCES = \
2747 src/libsystemd/sd-bus/test-bus-server.c
2749 test_bus_server_CFLAGS = \
2753 test_bus_server_LDADD = \
2754 libsystemd-internal.la \
2755 libsystemd-shared.la
2757 test_bus_objects_SOURCES = \
2758 src/libsystemd/sd-bus/test-bus-objects.c
2760 test_bus_objects_CFLAGS = \
2765 test_bus_objects_LDADD = \
2766 libsystemd-internal.la \
2767 libsystemd-shared.la \
2768 libsystemd-dump.la \
2769 libsystemd-capability.la \
2772 test_bus_error_SOURCES = \
2773 src/libsystemd/sd-bus/test-bus-error.c
2775 test_bus_error_LDADD = \
2776 libsystemd-internal.la \
2777 libsystemd-shared.la
2779 test_bus_gvariant_SOURCES = \
2780 src/libsystemd/sd-bus/test-bus-gvariant.c
2782 test_bus_gvariant_LDADD = \
2783 libsystemd-internal.la \
2784 libsystemd-shared.la \
2785 libsystemd-dump.la \
2786 libsystemd-capability.la \
2790 test_bus_gvariant_CFLAGS = \
2795 test_bus_creds_SOURCES = \
2796 src/libsystemd/sd-bus/test-bus-creds.c
2798 test_bus_creds_LDADD = \
2799 libsystemd-internal.la \
2800 libsystemd-shared.la \
2801 libsystemd-dump.la \
2802 libsystemd-capability.la
2804 test_bus_match_SOURCES = \
2805 src/libsystemd/sd-bus/test-bus-match.c
2807 test_bus_match_LDADD = \
2808 libsystemd-internal.la \
2809 libsystemd-shared.la
2811 test_bus_kernel_SOURCES = \
2812 src/libsystemd/sd-bus/test-bus-kernel.c
2814 test_bus_kernel_LDADD = \
2815 libsystemd-internal.la \
2816 libsystemd-shared.la \
2817 libsystemd-dump.la \
2818 libsystemd-capability.la \
2821 test_bus_kernel_CFLAGS = \
2825 test_bus_kernel_bloom_SOURCES = \
2826 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2828 test_bus_kernel_bloom_LDADD = \
2829 libsystemd-internal.la \
2830 libsystemd-shared.la
2832 test_bus_kernel_benchmark_SOURCES = \
2833 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2835 test_bus_kernel_benchmark_LDADD = \
2836 libsystemd-internal.la \
2837 libsystemd-shared.la
2839 test_bus_zero_copy_SOURCES = \
2840 src/libsystemd/sd-bus/test-bus-zero-copy.c
2842 test_bus_zero_copy_LDADD = \
2843 libsystemd-internal.la \
2844 libsystemd-shared.la \
2845 libsystemd-dump.la \
2846 libsystemd-capability.la \
2849 test_bus_zero_copy_CFLAGS = \
2853 test_bus_introspect_SOURCES = \
2854 src/libsystemd/sd-bus/test-bus-introspect.c
2856 test_bus_introspect_LDADD = \
2857 libsystemd-internal.la \
2858 libsystemd-shared.la
2860 test_event_SOURCES = \
2861 src/libsystemd/sd-event/test-event.c
2863 test_event_LDADD = \
2864 libsystemd-internal.la \
2865 libsystemd-shared.la
2867 test_rtnl_SOURCES = \
2868 src/libsystemd/sd-rtnl/test-rtnl.c
2871 libsystemd-internal.la \
2872 libsystemd-shared.la
2874 test_resolve_SOURCES = \
2875 src/libsystemd/sd-resolve/test-resolve.c
2877 test_resolve_LDADD = \
2878 libsystemd-resolve.la \
2879 libsystemd-internal.la \
2880 libsystemd-shared.la
2882 test_resolve_CFLAGS = \
2887 src/libsystemd/sd-bus/busctl.c
2890 libsystemd-internal.la \
2891 libsystemd-shared.la \
2892 libsystemd-dump.la \
2893 libsystemd-capability.la \
2900 # ------------------------------------------------------------------------------
2901 noinst_LTLIBRARIES += \
2902 libsystemd-network.la
2904 libsystemd_network_la_CFLAGS = \
2908 libsystemd_network_la_SOURCES = \
2909 src/systemd/sd-dhcp-client.h \
2910 src/systemd/sd-dhcp-server.h \
2911 src/systemd/sd-dhcp-lease.h \
2912 src/systemd/sd-ipv4ll.h \
2913 src/systemd/sd-icmp6-nd.h \
2914 src/systemd/sd-dhcp6-client.h \
2915 src/systemd/sd-dhcp6-lease.h \
2916 src/libsystemd-network/sd-dhcp-client.c \
2917 src/libsystemd-network/sd-dhcp-server.c \
2918 src/libsystemd-network/dhcp-network.c \
2919 src/libsystemd-network/dhcp-option.c \
2920 src/libsystemd-network/dhcp-packet.c \
2921 src/libsystemd-network/dhcp-internal.h \
2922 src/libsystemd-network/dhcp-server-internal.h \
2923 src/libsystemd-network/dhcp-protocol.h \
2924 src/libsystemd-network/dhcp-lease-internal.h \
2925 src/libsystemd-network/sd-dhcp-lease.c \
2926 src/libsystemd-network/sd-ipv4ll.c \
2927 src/libsystemd-network/ipv4ll-network.c \
2928 src/libsystemd-network/ipv4ll-packet.c \
2929 src/libsystemd-network/ipv4ll-internal.h \
2930 src/libsystemd-network/network-internal.c \
2931 src/libsystemd-network/network-internal.h \
2932 src/libsystemd-network/sd-icmp6-nd.c \
2933 src/libsystemd-network/sd-dhcp6-client.c \
2934 src/libsystemd-network/dhcp6-internal.h \
2935 src/libsystemd-network/dhcp6-protocol.h \
2936 src/libsystemd-network/dhcp6-network.c \
2937 src/libsystemd-network/dhcp6-option.c \
2938 src/libsystemd-network/dhcp6-lease-internal.h \
2939 src/libsystemd-network/sd-dhcp6-lease.c
2941 libsystemd_network_la_LIBADD = \
2942 libudev-internal.la \
2943 libsystemd-label.la \
2944 libsystemd-internal.la \
2945 libsystemd-shared.la \
2948 test_dhcp_option_SOURCES = \
2949 src/libsystemd-network/dhcp-protocol.h \
2950 src/libsystemd-network/dhcp-internal.h \
2951 src/libsystemd-network/test-dhcp-option.c
2953 test_dhcp_option_LDADD = \
2954 libsystemd-network.la \
2955 libsystemd-internal.la \
2956 libsystemd-shared.la
2958 test_dhcp_client_SOURCES = \
2959 src/systemd/sd-dhcp-client.h \
2960 src/libsystemd-network/dhcp-protocol.h \
2961 src/libsystemd-network/dhcp-internal.h \
2962 src/libsystemd-network/test-dhcp-client.c
2964 test_dhcp_client_LDADD = \
2965 libsystemd-network.la \
2966 libsystemd-label.la \
2967 libsystemd-internal.la \
2968 libsystemd-shared.la
2970 test_dhcp_server_SOURCES = \
2971 src/libsystemd-network/test-dhcp-server.c
2973 test_dhcp_server_LDADD = \
2974 libsystemd-network.la \
2975 libsystemd-internal.la \
2976 libsystemd-shared.la
2978 test_ipv4ll_SOURCES = \
2979 src/systemd/sd-ipv4ll.h \
2980 src/libsystemd-network/ipv4ll-internal.h \
2981 src/libsystemd-network/test-ipv4ll.c
2983 test_ipv4ll_LDADD = \
2984 libsystemd-network.la \
2985 libsystemd-label.la \
2986 libsystemd-internal.la \
2987 libsystemd-shared.la
2989 test_icmp6_rs_SOURCES = \
2990 src/systemd/sd-dhcp6-client.h \
2991 src/systemd/sd-icmp6-nd.h \
2992 src/libsystemd-network/dhcp6-internal.h \
2993 src/libsystemd-network/test-icmp6-rs.c
2995 test_icmp6_rs_LDADD = \
2996 libsystemd-network.la \
2997 libsystemd-internal.la \
2998 libsystemd-shared.la
3000 test_dhcp6_client_SOURCES = \
3001 src/systemd/sd-dhcp6-client.h \
3002 src/libsystemd-network/dhcp6-internal.h \
3003 src/libsystemd-network/test-dhcp6-client.c
3005 test_dhcp6_client_LDADD = \
3006 libsystemd-network.la \
3007 libsystemd-internal.la \
3008 libsystemd-shared.la
3018 # ------------------------------------------------------------------------------
3020 noinst_LTLIBRARIES += \
3021 libsystemd-terminal.la
3023 noinst_PROGRAMS += \
3028 unifontdatadir=$(datadir)/unifont
3030 dist_unifontdata_DATA = \
3031 src/libsystemd-terminal/unifont-glyph-array.bin
3039 libsystemd_terminal_la_CFLAGS = \
3043 libsystemd_terminal_la_SOURCES = \
3044 src/libsystemd-terminal/grdev.h \
3045 src/libsystemd-terminal/grdev-internal.h \
3046 src/libsystemd-terminal/grdev.c \
3047 src/libsystemd-terminal/grdev-drm.c \
3048 src/libsystemd-terminal/idev.h \
3049 src/libsystemd-terminal/idev-internal.h \
3050 src/libsystemd-terminal/idev.c \
3051 src/libsystemd-terminal/idev-evdev.c \
3052 src/libsystemd-terminal/idev-keyboard.c \
3053 src/libsystemd-terminal/sysview.h \
3054 src/libsystemd-terminal/sysview-internal.h \
3055 src/libsystemd-terminal/sysview.c \
3056 src/libsystemd-terminal/term-internal.h \
3057 src/libsystemd-terminal/term-charset.c \
3058 src/libsystemd-terminal/term-page.c \
3059 src/libsystemd-terminal/term-parser.c \
3060 src/libsystemd-terminal/term-screen.c \
3061 src/libsystemd-terminal/term-wcwidth.c \
3062 src/libsystemd-terminal/unifont.h \
3063 src/libsystemd-terminal/unifont-def.h \
3064 src/libsystemd-terminal/unifont.c
3066 libsystemd_terminal_la_LIBADD = \
3067 libudev-internal.la \
3068 libsystemd-internal.la \
3069 libsystemd-shared.la \
3072 systemd_evcat_CFLAGS = \
3076 systemd_evcat_SOURCES = \
3077 src/libsystemd-terminal/evcat.c
3079 systemd_evcat_LDADD = \
3080 libsystemd-terminal.la \
3081 libsystemd-internal.la \
3082 libsystemd-shared.la \
3085 systemd_modeset_CFLAGS = \
3089 systemd_modeset_SOURCES = \
3090 src/libsystemd-terminal/modeset.c
3092 systemd_modeset_LDADD = \
3093 libsystemd-terminal.la \
3094 libsystemd-internal.la \
3095 libsystemd-shared.la \
3098 systemd_subterm_SOURCES = \
3099 src/libsystemd-terminal/subterm.c
3101 systemd_subterm_LDADD = \
3102 libsystemd-terminal.la \
3103 libsystemd-internal.la \
3104 libsystemd-shared.la
3106 test_term_page_SOURCES = \
3107 src/libsystemd-terminal/test-term-page.c
3109 test_term_page_LDADD = \
3110 libsystemd-terminal.la \
3111 libsystemd-internal.la \
3112 libsystemd-shared.la
3114 test_term_parser_SOURCES = \
3115 src/libsystemd-terminal/test-term-parser.c
3117 test_term_parser_LDADD = \
3118 libsystemd-terminal.la \
3119 libsystemd-internal.la \
3120 libsystemd-shared.la
3122 test_unifont_SOURCES = \
3123 src/libsystemd-terminal/test-unifont.c
3125 test_unifont_LDADD = \
3126 libsystemd-terminal.la \
3127 libsystemd-internal.la \
3128 libsystemd-shared.la
3130 .PHONY: update-unifont
3131 update-unifont: tools/compile-unifont.py
3132 $(AM_V_GEN)$(PYTHON) $< \
3133 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3134 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3135 @echo "unifont-glyph-array.bin has been regenerated"
3137 # ------------------------------------------------------------------------------
3147 include_HEADERS += \
3148 src/libudev/libudev.h
3150 lib_LTLIBRARIES += \
3153 libudev_la_SOURCES =\
3154 src/libudev/libudev.sym \
3155 src/libudev/libudev-private.h \
3156 src/libudev/libudev.c \
3157 src/libudev/libudev-list.c \
3158 src/libudev/libudev-util.c \
3159 src/libudev/libudev-device.c \
3160 src/libudev/libudev-enumerate.c \
3161 src/libudev/libudev-monitor.c \
3162 src/libudev/libudev-queue.c \
3163 src/libudev/libudev-hwdb-def.h \
3164 src/libudev/libudev-hwdb.c
3166 libudev_la_CFLAGS = \
3170 libudev_la_LDFLAGS = \
3172 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3173 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3175 libudev_la_LIBADD = \
3176 libsystemd-internal.la \
3177 libsystemd-shared.la
3179 pkgconfiglib_DATA += \
3180 src/libudev/libudev.pc
3183 src/libudev/libudev.pc.in
3186 src/libudev/libudev.pc \
3191 $(AM_V_at)$(MKDIR_P) $(dir $@)
3192 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3195 $(AM_V_at)$(MKDIR_P) $(dir $@)
3196 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3198 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3199 libudev-install-hook:
3200 libname=libudev.so && $(move-to-rootlibdir)
3202 libudev-uninstall-hook:
3203 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3205 INSTALL_EXEC_HOOKS += libudev-install-hook
3206 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3208 # ------------------------------------------------------------------------------
3209 noinst_LTLIBRARIES += \
3212 libudev_internal_la_SOURCES =\
3213 $(libudev_la_SOURCES) \
3214 src/libudev/libudev-device-private.c
3216 libudev_internal_la_CFLAGS = \
3218 -fvisibility=default
3220 # ------------------------------------------------------------------------------
3222 $(sysconfdir)/udev/rules.d \
3223 $(sysconfdir)/udev/hwdb.d
3225 dist_network_DATA = \
3226 network/99-default.link \
3227 network/80-container-host0.network \
3228 network/80-container-ve.network
3230 dist_udevrules_DATA += \
3231 rules/42-usb-hid-pm.rules \
3232 rules/50-udev-default.rules \
3233 rules/60-drm.rules \
3234 rules/60-keyboard.rules \
3235 rules/60-persistent-storage-tape.rules \
3236 rules/60-persistent-serial.rules \
3237 rules/60-persistent-input.rules \
3238 rules/60-persistent-alsa.rules \
3239 rules/60-persistent-storage.rules \
3240 rules/64-btrfs.rules \
3241 rules/75-net-description.rules \
3242 rules/75-tty-description.rules \
3243 rules/78-sound-card.rules \
3244 rules/80-net-setup-link.rules \
3245 rules/95-udev-late.rules
3247 nodist_udevrules_DATA += \
3248 rules/99-systemd.rules
3250 dist_udevhwdb_DATA = \
3251 hwdb/20-pci-vendor-model.hwdb \
3252 hwdb/20-pci-classes.hwdb \
3253 hwdb/20-usb-vendor-model.hwdb \
3254 hwdb/20-usb-classes.hwdb \
3255 hwdb/20-sdio-vendor-model.hwdb \
3256 hwdb/20-sdio-classes.hwdb \
3257 hwdb/20-bluetooth-vendor-product.hwdb \
3258 hwdb/20-acpi-vendor.hwdb \
3260 hwdb/20-net-ifname.hwdb \
3261 hwdb/60-keyboard.hwdb
3263 udevconfdir = $(sysconfdir)/udev
3264 dist_udevconf_DATA = \
3267 sharepkgconfigdir = $(datadir)/pkgconfig
3268 sharepkgconfig_DATA = \
3272 rules/99-systemd.rules.in \
3276 rules/99-systemd.rules \
3280 units/systemd-udevd.service.in \
3281 units/systemd-udev-trigger.service.in \
3282 units/systemd-udev-settle.service.in \
3283 units/systemd-udev-hwdb-update.service.in
3286 units/systemd-udevd.service \
3287 units/systemd-udev-trigger.service \
3288 units/systemd-udev-settle.service \
3289 units/systemd-udev-hwdb-update.service
3291 SOCKETS_TARGET_WANTS += \
3292 systemd-udevd-control.socket \
3293 systemd-udevd-kernel.socket
3295 SYSINIT_TARGET_WANTS += \
3296 systemd-udevd.service \
3297 systemd-udev-trigger.service \
3298 systemd-udev-hwdb-update.service
3300 rootbin_PROGRAMS += \
3303 rootlibexec_PROGRAMS += \
3306 noinst_LTLIBRARIES += \
3309 src/udev/keyboard-keys.txt:
3310 $(AM_V_at)$(MKDIR_P) $(dir $@)
3311 $(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/' > $@
3313 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3314 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3316 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3317 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3319 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3320 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3322 libudev_core_la_SOURCES = \
3324 src/udev/udev-event.c \
3325 src/udev/udev-watch.c \
3326 src/udev/udev-node.c \
3327 src/udev/udev-rules.c \
3328 src/udev/udev-ctrl.c \
3329 src/udev/udev-builtin.c \
3330 src/udev/udev-builtin-btrfs.c \
3331 src/udev/udev-builtin-hwdb.c \
3332 src/udev/udev-builtin-input_id.c \
3333 src/udev/udev-builtin-keyboard.c \
3334 src/udev/udev-builtin-net_id.c \
3335 src/udev/udev-builtin-net_setup_link.c \
3336 src/udev/udev-builtin-path_id.c \
3337 src/udev/udev-builtin-usb_id.c \
3338 src/udev/net/link-config.h \
3339 src/udev/net/link-config.c \
3340 src/udev/net/ethtool-util.h \
3341 src/udev/net/ethtool-util.c
3343 nodist_libudev_core_la_SOURCES = \
3344 src/udev/keyboard-keys-from-name.h \
3345 src/udev/keyboard-keys-to-name.h \
3346 src/udev/net/link-config-gperf.c
3349 $(nodist_libudev_core_la_SOURCES)
3352 src/udev/keyboard-keys-from-name.gperf \
3353 src/udev/keyboard-keys.txt \
3354 src/udev/net/link-config-gperf.c
3357 src/udev/net/link-config-gperf.gperf
3359 libudev_core_la_CFLAGS = \
3364 libudev_core_la_LIBADD = \
3365 libudev-internal.la \
3366 libsystemd-label.la \
3367 libsystemd-internal.la \
3368 libsystemd-network.la \
3369 libsystemd-shared.la \
3374 libudev_core_la_SOURCES += \
3375 src/udev/udev-builtin-kmod.c
3377 dist_udevrules_DATA += \
3378 rules/80-drivers.rules
3382 libudev_core_la_SOURCES += \
3383 src/udev/udev-builtin-blkid.c
3387 libudev_core_la_SOURCES += \
3388 src/udev/udev-builtin-uaccess.c \
3389 src/login/logind-acl.c \
3390 src/libsystemd/sd-login/sd-login.c \
3391 src/systemd/sd-login.h
3393 libudev_core_la_LIBADD += \
3397 systemd_udevd_SOURCES = \
3400 systemd_udevd_LDADD = \
3404 src/udev/udevadm.c \
3405 src/udev/udevadm-info.c \
3406 src/udev/udevadm-control.c \
3407 src/udev/udevadm-monitor.c \
3408 src/udev/udevadm-hwdb.c \
3409 src/udev/udevadm-settle.c \
3410 src/udev/udevadm-trigger.c \
3411 src/udev/udevadm-test.c \
3412 src/udev/udevadm-test-builtin.c
3417 # Update hwdb on installation. Do not bother if installing
3418 # in DESTDIR, since this is likely for packaging purposes.
3420 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3422 INSTALL_DATA_HOOKS += \
3426 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3428 # ------------------------------------------------------------------------------
3437 test_libudev_SOURCES = \
3438 src/test/test-libudev.c
3440 test_libudev_LDADD = \
3441 libsystemd-label.la \
3442 libudev-internal.la \
3443 libsystemd-shared.la
3445 test_udev_SOURCES = \
3446 src/test/test-udev.c
3455 test_udev_LDADD += \
3462 # packed sysfs test tree
3464 $(AM_V_at)$(MKDIR_P) $(dir $@)
3465 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3469 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3474 test/rules-test.sh \
3475 test/rule-syntax-check.py
3477 # ------------------------------------------------------------------------------
3479 src/udev/ata_id/ata_id.c
3482 libudev-internal.la \
3483 libsystemd-shared.la
3485 udevlibexec_PROGRAMS += \
3488 # ------------------------------------------------------------------------------
3489 cdrom_id_SOURCES = \
3490 src/udev/cdrom_id/cdrom_id.c
3493 libudev-internal.la \
3494 libsystemd-shared.la
3496 udevlibexec_PROGRAMS += \
3499 dist_udevrules_DATA += \
3500 rules/60-cdrom_id.rules
3502 # ------------------------------------------------------------------------------
3504 src/udev/collect/collect.c
3507 libudev-internal.la \
3508 libsystemd-shared.la
3510 udevlibexec_PROGRAMS += \
3513 # ------------------------------------------------------------------------------
3515 src/udev/scsi_id/scsi_id.c \
3516 src/udev/scsi_id/scsi_serial.c \
3517 src/udev/scsi_id/scsi.h \
3518 src/udev/scsi_id/scsi_id.h
3521 libudev-internal.la \
3522 libsystemd-shared.la
3524 udevlibexec_PROGRAMS += \
3528 src/udev/scsi_id/README
3530 # ------------------------------------------------------------------------------
3532 src/udev/v4l_id/v4l_id.c
3537 udevlibexec_PROGRAMS += \
3540 dist_udevrules_DATA += \
3541 rules/60-persistent-v4l.rules
3543 # ------------------------------------------------------------------------------
3544 accelerometer_SOURCES = \
3545 src/udev/accelerometer/accelerometer.c
3547 accelerometer_LDADD = \
3548 libudev-internal.la -lm \
3549 libsystemd-shared.la
3551 udevlibexec_PROGRAMS += \
3554 dist_udevrules_DATA += \
3555 rules/61-accelerometer.rules
3557 # ------------------------------------------------------------------------------
3564 libgudev_includedir = \
3565 $(includedir)/gudev-1.0/gudev
3567 libgudev_include_HEADERS = \
3569 src/gudev/gudevenums.h \
3570 src/gudev/gudevenumtypes.h \
3571 src/gudev/gudevtypes.h \
3572 src/gudev/gudevclient.h \
3573 src/gudev/gudevdevice.h \
3574 src/gudev/gudevenumerator.h
3576 lib_LTLIBRARIES += libgudev-1.0.la
3578 pkgconfiglib_DATA += \
3579 src/gudev/gudev-1.0.pc
3582 src/gudev/gudev-1.0.pc
3584 libgudev_1_0_la_SOURCES = \
3585 src/gudev/libgudev-1.0.sym \
3586 src/gudev/gudevenums.h \
3587 src/gudev/gudevenumtypes.h \
3588 src/gudev/gudevenumtypes.h\
3589 src/gudev/gudevtypes.h \
3590 src/gudev/gudevclient.h \
3591 src/gudev/gudevclient.c \
3592 src/gudev/gudevdevice.h \
3593 src/gudev/gudevdevice.c \
3594 src/gudev/gudevenumerator.h \
3595 src/gudev/gudevenumerator.c \
3596 src/gudev/gudevprivate.h
3598 nodist_libgudev_1_0_la_SOURCES = \
3599 src/gudev/gudevmarshal.h \
3600 src/gudev/gudevmarshal.c \
3601 src/gudev/gudevenumtypes.h \
3602 src/gudev/gudevenumtypes.c
3605 $(nodist_libgudev_1_0_la_SOURCES)
3607 libgudev_1_0_la_CPPFLAGS = \
3609 -I$(top_builddir)/src\
3610 -I$(top_srcdir)/src\
3611 -I$(top_builddir)/src/gudev \
3612 -I$(top_srcdir)/src/gudev \
3613 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3614 -D_GUDEV_COMPILATION \
3615 -DG_LOG_DOMAIN=\"GUdev\"
3617 libgudev_1_0_la_CFLAGS = \
3619 -fvisibility=default \
3622 libgudev_1_0_la_LIBADD = \
3626 libgudev_1_0_la_LDFLAGS = \
3628 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3631 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3633 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3634 $(AM_V_at)$(MKDIR_P) $(dir $@)
3635 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3637 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3638 $(AM_V_at)$(MKDIR_P) $(dir $@)
3639 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3640 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3642 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3643 $(AM_V_at)$(MKDIR_P) $(dir $@)
3644 $(AM_V_GEN)glib-mkenums --template $^ > $@
3646 if HAVE_INTROSPECTION
3647 -include $(INTROSPECTION_MAKEFILE)
3649 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3651 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3653 src_gudev_GUdev_1_0_gir_CFLAGS = \
3656 -D_GUDEV_COMPILATION \
3657 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3658 -I$(top_srcdir)/src \
3659 -I$(top_builddir)/src \
3660 -I$(top_srcdir)/src/gudev \
3661 -I$(top_builddir)/src/gudev
3663 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3665 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3666 --pkg-export=gudev-1.0 \
3669 src_gudev_GUdev_1_0_gir_FILES = \
3671 src/gudev/gudevtypes.h \
3672 src/gudev/gudevenums.h \
3673 src/gudev/gudevenumtypes.h \
3674 src/gudev/gudevclient.h \
3675 src/gudev/gudevdevice.h \
3676 src/gudev/gudevenumerator.h \
3677 src/gudev/gudevclient.c \
3678 src/gudev/gudevdevice.c \
3679 src/gudev/gudevenumerator.c
3681 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3682 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3684 girdir = $(datadir)/gir-1.0
3686 src/gudev/GUdev-1.0.gir
3688 typelibsdir = $(libdir)/girepository-1.0
3690 src/gudev/GUdev-1.0.typelib
3692 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3693 endif # HAVE_INTROSPECTION
3697 src/gudev/gudev-1.0.pc.in \
3698 src/gudev/gudevmarshal.list \
3699 src/gudev/gudevenumtypes.h.template \
3700 src/gudev/gudevenumtypes.c.template \
3701 src/gudev/gjs-example.js \
3702 src/gudev/seed-example-enum.js \
3703 src/gudev/seed-example.js
3705 # ------------------------------------------------------------------------------
3706 mtd_probe_SOURCES = \
3707 src/udev/mtd_probe/mtd_probe.c \
3708 src/udev/mtd_probe/mtd_probe.h \
3709 src/udev/mtd_probe/probe_smartmedia.c
3711 dist_udevrules_DATA += \
3712 rules/75-probe_mtd.rules
3714 udevlibexec_PROGRAMS += \
3717 # ------------------------------------------------------------------------------
3718 test_id128_SOURCES = \
3719 src/test/test-id128.c
3721 test_id128_LDADD = \
3722 libsystemd-internal.la \
3723 libsystemd-shared.la
3728 # ------------------------------------------------------------------------------
3730 rootlibexec_PROGRAMS += \
3733 systemd_activate_SOURCES = \
3734 src/activate/activate.c
3736 systemd_activate_LDADD = \
3737 libsystemd-label.la \
3738 libsystemd-internal.la \
3739 libsystemd-shared.la
3741 # ------------------------------------------------------------------------------
3742 systemd_journald_SOURCES = \
3743 src/journal/journald.c \
3744 src/journal/journald-server.h
3746 systemd_journald_LDADD = \
3747 libsystemd-journal-core.la \
3748 libsystemd-internal.la \
3749 libsystemd-shared.la
3751 systemd_cat_SOURCES = \
3754 systemd_cat_LDADD = \
3755 libsystemd-journal-core.la
3758 rootlibexec_PROGRAMS += \
3759 systemd-journal-remote
3761 systemd_journal_remote_SOURCES = \
3762 src/journal-remote/journal-remote-parse.h \
3763 src/journal-remote/journal-remote-parse.c \
3764 src/journal-remote/journal-remote-write.h \
3765 src/journal-remote/journal-remote-write.c \
3766 src/journal-remote/journal-remote.h \
3767 src/journal-remote/journal-remote.c
3769 systemd_journal_remote_LDADD = \
3770 libsystemd-internal.la \
3771 libsystemd-journal-core.la
3773 systemd_journal_remote_SOURCES += \
3774 src/journal-remote/microhttpd-util.h \
3775 src/journal-remote/microhttpd-util.c
3777 systemd_journal_remote_CFLAGS = \
3779 $(MICROHTTPD_CFLAGS)
3781 systemd_journal_remote_LDADD += \
3785 systemd_journal_remote_LDADD += \
3788 # systemd-journal-remote make sense mostly with full crypto stack
3789 dist_systemunit_DATA += \
3790 units/systemd-journal-remote.socket
3792 nodist_systemunit_DATA += \
3793 units/systemd-journal-remote.service
3796 units/systemd-journal-remote.service.in
3798 journal-remote-install-hook: journal-install-hook
3799 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3800 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3801 -chmod 755 $(DESTDIR)/var/log/journal/remote
3803 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3807 nodist_pkgsysconf_DATA += \
3808 src/journal-remote/journal-remote.conf
3811 src/journal-remote/journal-remote.conf.in
3814 src/journal-remote/journal-remote.conf
3818 rootlibexec_PROGRAMS += \
3819 systemd-journal-upload
3821 systemd_journal_upload_SOURCES = \
3822 src/journal-remote/journal-upload.h \
3823 src/journal-remote/journal-upload.c \
3824 src/journal-remote/journal-upload-journal.c
3826 systemd_journal_upload_CFLAGS = \
3830 systemd_journal_upload_LDADD = \
3831 libsystemd-core.la \
3832 libsystemd-internal.la \
3833 libsystemd-journal-internal.la \
3834 libsystemd-shared.la \
3837 nodist_systemunit_DATA += \
3838 units/systemd-journal-upload.service
3841 units/systemd-journal-upload.service.in
3843 nodist_pkgsysconf_DATA += \
3844 src/journal-remote/journal-upload.conf
3847 src/journal-remote/journal-upload.conf.in
3850 src/journal-remote/journal-upload.conf
3853 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3854 journalctl_CFLAGS = \
3857 journalctl_SOURCES = \
3858 src/journal/journalctl.c
3860 journalctl_LDADD = \
3861 libsystemd-journal-internal.la \
3862 libsystemd-internal.la \
3863 libsystemd-logs.la \
3864 libsystemd-shared.la
3867 journalctl_LDADD += \
3872 journalctl_SOURCES += \
3873 src/journal/journal-qrcode.c \
3874 src/journal/journal-qrcode.h
3876 journalctl_CFLAGS += \
3879 journalctl_LDADD += \
3883 test_journal_SOURCES = \
3884 src/journal/test-journal.c
3886 test_journal_LDADD = \
3887 libsystemd-journal-core.la
3889 test_journal_send_SOURCES = \
3890 src/journal/test-journal-send.c
3892 test_journal_send_LDADD = \
3893 libsystemd-journal-core.la
3895 test_journal_syslog_SOURCES = \
3896 src/journal/test-journal-syslog.c
3898 test_journal_syslog_LDADD = \
3899 libsystemd-journal-core.la
3901 test_journal_match_SOURCES = \
3902 src/journal/test-journal-match.c
3904 test_journal_match_LDADD = \
3905 libsystemd-journal-core.la
3907 test_journal_enum_SOURCES = \
3908 src/journal/test-journal-enum.c
3910 test_journal_enum_LDADD = \
3911 libsystemd-journal-core.la
3913 test_journal_stream_SOURCES = \
3914 src/journal/test-journal-stream.c
3916 test_journal_stream_LDADD = \
3917 libsystemd-journal-core.la
3919 test_journal_flush_SOURCES = \
3920 src/journal/test-journal-flush.c
3922 test_journal_flush_LDADD = \
3923 libsystemd-journal-core.la
3925 test_journal_init_SOURCES = \
3926 src/journal/test-journal-init.c
3928 test_journal_init_LDADD = \
3929 libsystemd-journal-core.la
3931 test_journal_verify_SOURCES = \
3932 src/journal/test-journal-verify.c
3934 test_journal_verify_LDADD = \
3935 libsystemd-journal-core.la
3937 test_journal_interleaving_SOURCES = \
3938 src/journal/test-journal-interleaving.c
3940 test_journal_interleaving_LDADD = \
3941 libsystemd-journal-core.la
3943 test_mmap_cache_SOURCES = \
3944 src/journal/test-mmap-cache.c
3946 test_mmap_cache_LDADD = \
3947 libsystemd-journal-core.la
3949 test_catalog_SOURCES = \
3950 src/journal/test-catalog.c
3952 test_catalog_CPPFLAGS = \
3954 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3956 test_catalog_LDADD = \
3957 libsystemd-journal-core.la
3959 test_compress_SOURCES = \
3960 src/journal/test-compress.c
3962 test_compress_LDADD = \
3963 libsystemd-journal-internal.la \
3964 libsystemd-shared.la
3966 test_compress_benchmark_SOURCES = \
3967 src/journal/test-compress-benchmark.c
3969 test_compress_benchmark_LDADD = \
3970 libsystemd-journal-internal.la \
3971 libsystemd-shared.la
3973 libsystemd_journal_core_la_SOURCES = \
3974 src/journal/journald-kmsg.c \
3975 src/journal/journald-kmsg.h \
3976 src/journal/journald-syslog.c \
3977 src/journal/journald-syslog.h \
3978 src/journal/journald-stream.c \
3979 src/journal/journald-stream.h \
3980 src/journal/journald-server.c \
3981 src/journal/journald-server.h \
3982 src/journal/journald-console.c \
3983 src/journal/journald-console.h \
3984 src/journal/journald-wall.c \
3985 src/journal/journald-wall.h \
3986 src/journal/journald-native.c \
3987 src/journal/journald-native.h \
3988 src/journal/journald-rate-limit.c \
3989 src/journal/journald-rate-limit.h \
3990 src/journal/journal-internal.h
3992 nodist_libsystemd_journal_core_la_SOURCES = \
3993 src/journal/journald-gperf.c
3995 libsystemd_journal_core_la_LIBADD = \
3996 libsystemd-journal-internal.la \
3997 libudev-internal.la \
3998 libsystemd-capability.la \
3999 libsystemd-label.la \
4000 libsystemd-internal.la \
4001 libsystemd-shared.la
4004 libsystemd_journal_core_la_LIBADD += \
4008 noinst_LTLIBRARIES += \
4009 libsystemd-journal-core.la
4011 journal-install-hook:
4012 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4013 -chown 0:0 $(DESTDIR)/var/log/journal
4014 -chmod 755 $(DESTDIR)/var/log/journal
4015 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4016 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4018 journal-uninstall-hook:
4019 -rmdir $(DESTDIR)/var/log/journal/remote
4020 -rmdir $(DESTDIR)/var/log/journal/
4022 INSTALL_EXEC_HOOKS += journal-install-hook
4023 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4025 # ------------------------------------------------------------------------------
4026 # Update catalog on installation. Do not bother if installing
4027 # in DESTDIR, since this is likely for packaging purposes.
4028 catalog-update-hook:
4029 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4031 INSTALL_DATA_HOOKS += \
4034 catalog-remove-hook:
4035 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4037 UNINSTALL_DATA_HOOKS += \
4046 test-journal-syslog \
4047 test-journal-match \
4048 test-journal-stream \
4050 test-journal-verify \
4051 test-journal-interleaving \
4052 test-journal-flush \
4059 test-compress-benchmark
4062 pkginclude_HEADERS += \
4063 src/systemd/sd-journal.h \
4064 src/systemd/sd-messages.h \
4065 src/systemd/_sd-common.h
4067 libsystemd_journal_internal_la_SOURCES = \
4068 src/journal/sd-journal.c \
4069 src/systemd/sd-journal.h \
4070 src/systemd/_sd-common.h \
4071 src/journal/journal-file.c \
4072 src/journal/journal-file.h \
4073 src/journal/journal-vacuum.c \
4074 src/journal/journal-vacuum.h \
4075 src/journal/journal-verify.c \
4076 src/journal/journal-verify.h \
4077 src/journal/lookup3.c \
4078 src/journal/lookup3.h \
4079 src/journal/journal-send.c \
4080 src/journal/journal-def.h \
4081 src/journal/compress.h \
4082 src/journal/catalog.c \
4083 src/journal/catalog.h \
4084 src/journal/mmap-cache.c \
4085 src/journal/mmap-cache.h
4087 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4088 libsystemd_journal_internal_la_CFLAGS = \
4091 libsystemd_journal_internal_la_LIBADD =
4093 libsystemd_journal_internal_la_SOURCES += \
4094 src/journal/compress.c
4097 libsystemd_journal_internal_la_CFLAGS += \
4100 libsystemd_journal_internal_la_LIBADD += \
4105 libsystemd_journal_internal_la_LIBADD += \
4110 libsystemd_journal_internal_la_SOURCES += \
4111 src/journal/journal-authenticate.c \
4112 src/journal/journal-authenticate.h \
4113 src/journal/fsprg.c \
4116 libsystemd_journal_internal_la_LIBADD += \
4119 # fsprg.c is a drop-in file using void pointer arithmetic
4120 libsystemd_journal_internal_la_CFLAGS += \
4125 noinst_LTLIBRARIES += \
4126 libsystemd-journal-internal.la
4128 rootlibexec_PROGRAMS += \
4131 rootbin_PROGRAMS += \
4137 dist_systemunit_DATA += \
4138 units/systemd-journald.socket \
4139 units/systemd-journald-dev-log.socket
4141 nodist_systemunit_DATA += \
4142 units/systemd-journald.service \
4143 units/systemd-journal-flush.service \
4144 units/systemd-journal-catalog-update.service
4146 dist_pkgsysconf_DATA += \
4147 src/journal/journald.conf
4149 dist_catalog_DATA = \
4150 catalog/systemd.fr.catalog \
4151 catalog/systemd.it.catalog \
4152 catalog/systemd.pl.catalog \
4153 catalog/systemd.ru.catalog \
4154 catalog/systemd.catalog
4156 SOCKETS_TARGET_WANTS += \
4157 systemd-journald.socket \
4158 systemd-journald-dev-log.socket
4160 SYSINIT_TARGET_WANTS += \
4161 systemd-journald.service \
4162 systemd-journal-flush.service \
4163 systemd-journal-catalog-update.service
4166 units/systemd-journald.service.in \
4167 units/systemd-journal-flush.service.in \
4168 units/systemd-journal-catalog-update.service.in \
4169 src/journal/journald-gperf.gperf
4172 src/journal/journald-gperf.c
4174 # ------------------------------------------------------------------------------
4176 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4178 rootlibexec_PROGRAMS += \
4179 systemd-journal-gatewayd
4181 systemd_journal_gatewayd_SOURCES = \
4182 src/journal-remote/journal-gatewayd.c \
4183 src/journal-remote/microhttpd-util.h \
4184 src/journal-remote/microhttpd-util.c
4186 systemd_journal_gatewayd_LDADD = \
4187 libsystemd-logs.la \
4188 libsystemd-journal-internal.la \
4189 libsystemd-internal.la \
4190 libsystemd-shared.la \
4194 systemd_journal_gatewayd_LDADD += \
4198 systemd_journal_gatewayd_CFLAGS = \
4200 $(MICROHTTPD_CFLAGS)
4202 systemd_journal_gatewayd_CPPFLAGS = \
4204 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4206 dist_systemunit_DATA += \
4207 units/systemd-journal-gatewayd.socket
4209 nodist_systemunit_DATA += \
4210 units/systemd-journal-gatewayd.service
4212 dist_gatewayddocumentroot_DATA = \
4213 src/journal-remote/browse.html
4218 units/systemd-journal-gatewayd.service.in
4220 # ------------------------------------------------------------------------------
4222 systemd_socket_proxyd_SOURCES = \
4223 src/socket-proxy/socket-proxyd.c
4225 systemd_socket_proxyd_LDADD = \
4226 libsystemd-logs.la \
4227 libsystemd-internal.la \
4228 libsystemd-journal-internal.la \
4229 libsystemd-shared.la \
4230 libsystemd-resolve.la
4232 # ------------------------------------------------------------------------------
4234 systemd_coredump_SOURCES = \
4235 src/journal/coredump.c \
4236 src/journal/coredump-vacuum.c \
4237 src/journal/coredump-vacuum.h
4239 systemd_coredump_LDADD = \
4240 libsystemd-journal-internal.la \
4241 libsystemd-label.la \
4242 libsystemd-internal.la \
4243 libsystemd-shared.la
4246 systemd_coredump_SOURCES += \
4247 src/journal/stacktrace.c \
4248 src/journal/stacktrace.h
4250 systemd_coredump_LDADD += \
4254 rootlibexec_PROGRAMS += \
4257 dist_pkgsysconf_DATA += \
4258 src/journal/coredump.conf
4261 systemd_coredump_LDADD += \
4265 coredumpctl_SOURCES = \
4266 src/journal/coredumpctl.c
4268 coredumpctl_LDADD = \
4269 libsystemd-journal-internal.la \
4270 libsystemd-internal.la \
4271 libsystemd-shared.la
4277 test-coredump-vacuum
4279 test_coredump_vacuum_SOURCES = \
4280 src/journal/test-coredump-vacuum.c \
4281 src/journal/coredump-vacuum.c \
4282 src/journal/coredump-vacuum.h
4284 test_coredump_vacuum_LDADD = \
4285 libsystemd-internal.la \
4286 libsystemd-shared.la
4288 dist_bashcompletion_DATA += \
4289 shell-completion/bash/coredumpctl
4291 dist_zshcompletion_DATA += \
4292 shell-completion/zsh/_coredumpctl
4295 sysctl.d/50-coredump.conf
4298 sysctl.d/50-coredump.conf
4302 sysctl.d/50-coredump.conf.in
4304 # ------------------------------------------------------------------------------
4306 systemd_binfmt_SOURCES = \
4309 systemd_binfmt_LDADD = \
4310 libsystemd-shared.la
4312 rootlibexec_PROGRAMS += \
4315 dist_systemunit_DATA += \
4316 units/proc-sys-fs-binfmt_misc.automount \
4317 units/proc-sys-fs-binfmt_misc.mount
4319 nodist_systemunit_DATA += \
4320 units/systemd-binfmt.service
4323 $(prefix)/lib/binfmt.d \
4324 $(sysconfdir)/binfmt.d
4326 SYSINIT_TARGET_WANTS += \
4327 systemd-binfmt.service \
4328 proc-sys-fs-binfmt_misc.automount
4333 units/systemd-binfmt.service.in
4335 # ------------------------------------------------------------------------------
4337 systemd_vconsole_setup_SOURCES = \
4338 src/vconsole/vconsole-setup.c
4340 systemd_vconsole_setup_LDADD = \
4341 libsystemd-shared.la
4343 rootlibexec_PROGRAMS += \
4344 systemd-vconsole-setup
4346 nodist_systemunit_DATA += \
4347 units/systemd-vconsole-setup.service
4349 SYSINIT_TARGET_WANTS += \
4350 systemd-vconsole-setup.service
4354 units/systemd-vconsole-setup.service.in
4356 # ------------------------------------------------------------------------------
4358 systemd_bootchart_SOURCES = \
4359 src/bootchart/bootchart.c \
4360 src/bootchart/bootchart.h \
4361 src/bootchart/store.c \
4362 src/bootchart/store.h \
4363 src/bootchart/svg.c \
4366 systemd_bootchart_LDADD = \
4367 libsystemd-journal-internal.la \
4368 libsystemd-shared.la
4370 rootlibexec_PROGRAMS += \
4373 dist_pkgsysconf_DATA += \
4374 src/bootchart/bootchart.conf
4377 # ------------------------------------------------------------------------------
4378 if ENABLE_QUOTACHECK
4379 rootlibexec_PROGRAMS += \
4382 nodist_systemunit_DATA += \
4383 units/systemd-quotacheck.service
4385 systemd_quotacheck_SOURCES = \
4386 src/quotacheck/quotacheck.c
4388 systemd_quotacheck_LDADD = \
4389 libsystemd-shared.la
4393 units/systemd-quotacheck.service.in
4395 nodist_systemunit_DATA += \
4396 units/quotaon.service
4398 # ------------------------------------------------------------------------------
4399 if ENABLE_RANDOMSEED
4400 rootlibexec_PROGRAMS += \
4403 nodist_systemunit_DATA += \
4404 units/systemd-random-seed.service
4406 systemd_random_seed_SOURCES = \
4407 src/random-seed/random-seed.c
4409 systemd_random_seed_LDADD = \
4410 libsystemd-label.la \
4411 libsystemd-shared.la
4413 SYSINIT_TARGET_WANTS += \
4414 systemd-random-seed.service
4419 units/systemd-random-seed.service.in
4421 # ------------------------------------------------------------------------------
4423 rootlibexec_PROGRAMS += \
4426 nodist_systemunit_DATA += \
4427 units/systemd-backlight@.service
4429 systemd_backlight_SOURCES = \
4430 src/backlight/backlight.c
4432 systemd_backlight_LDADD = \
4433 libsystemd-label.la \
4434 libudev-internal.la \
4435 libsystemd-shared.la
4439 units/systemd-backlight@.service.in
4441 # ------------------------------------------------------------------------------
4443 rootlibexec_PROGRAMS += \
4446 nodist_systemunit_DATA += \
4447 units/systemd-rfkill@.service
4449 systemd_rfkill_SOURCES = \
4452 systemd_rfkill_LDADD = \
4453 libsystemd-label.la \
4454 libudev-internal.la \
4455 libsystemd-shared.la
4459 units/systemd-rfkill@.service.in
4461 # ------------------------------------------------------------------------------
4462 if HAVE_LIBCRYPTSETUP
4463 rootlibexec_PROGRAMS += \
4466 systemgenerator_PROGRAMS += \
4467 systemd-cryptsetup-generator
4469 dist_systemunit_DATA += \
4470 units/cryptsetup.target \
4471 units/cryptsetup-pre.target
4473 systemd_cryptsetup_SOURCES = \
4474 src/cryptsetup/cryptsetup.c
4476 systemd_cryptsetup_CFLAGS = \
4478 $(LIBCRYPTSETUP_CFLAGS)
4480 systemd_cryptsetup_LDADD = \
4481 libsystemd-label.la \
4482 libudev-internal.la \
4483 libsystemd-shared.la \
4484 $(LIBCRYPTSETUP_LIBS)
4486 systemd_cryptsetup_generator_SOURCES = \
4487 src/cryptsetup/cryptsetup-generator.c
4489 systemd_cryptsetup_generator_LDADD = \
4490 libsystemd-label.la \
4491 libsystemd-shared.la
4493 SYSINIT_TARGET_WANTS += \
4498 # ------------------------------------------------------------------------------
4500 systemd_hostnamed_SOURCES = \
4501 src/hostname/hostnamed.c
4503 systemd_hostnamed_LDADD = \
4504 libsystemd-label.la \
4505 libsystemd-internal.la \
4506 libsystemd-shared.la
4508 rootlibexec_PROGRAMS += \
4511 nodist_systemunit_DATA += \
4512 units/systemd-hostnamed.service
4514 dist_systemunit_DATA_busnames += \
4515 units/org.freedesktop.hostname1.busname
4517 dist_dbuspolicy_DATA += \
4518 src/hostname/org.freedesktop.hostname1.conf
4520 dist_dbussystemservice_DATA += \
4521 src/hostname/org.freedesktop.hostname1.service
4523 polkitpolicy_files += \
4524 src/hostname/org.freedesktop.hostname1.policy
4526 SYSTEM_UNIT_ALIASES += \
4527 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4529 BUSNAMES_TARGET_WANTS += \
4530 org.freedesktop.hostname1.busname
4532 hostnamectl_SOURCES = \
4533 src/hostname/hostnamectl.c
4535 hostnamectl_LDADD = \
4536 libsystemd-internal.la \
4537 libsystemd-shared.la
4542 dist_bashcompletion_DATA += \
4543 shell-completion/bash/hostnamectl
4545 dist_zshcompletion_DATA += \
4546 shell-completion/zsh/_hostnamectl
4550 polkitpolicy_in_files += \
4551 src/hostname/org.freedesktop.hostname1.policy.in
4554 units/systemd-hostnamed.service.in
4556 # ------------------------------------------------------------------------------
4557 dist_systemunit_DATA_busnames += \
4558 units/org.freedesktop.systemd1.busname
4560 BUSNAMES_TARGET_WANTS += \
4561 org.freedesktop.systemd1.busname
4563 # ------------------------------------------------------------------------------
4565 systemd_localed_SOURCES = \
4566 src/locale/localed.c
4568 systemd_localed_LDADD = \
4569 libsystemd-label.la \
4570 libsystemd-internal.la \
4571 libsystemd-shared.la
4573 nodist_systemunit_DATA += \
4574 units/systemd-localed.service
4576 dist_systemunit_DATA_busnames += \
4577 units/org.freedesktop.locale1.busname
4579 rootlibexec_PROGRAMS += \
4582 dist_dbuspolicy_DATA += \
4583 src/locale/org.freedesktop.locale1.conf
4585 dist_dbussystemservice_DATA += \
4586 src/locale/org.freedesktop.locale1.service
4588 polkitpolicy_files += \
4589 src/locale/org.freedesktop.locale1.policy
4591 SYSTEM_UNIT_ALIASES += \
4592 systemd-localed.service dbus-org.freedesktop.locale1.service
4594 BUSNAMES_TARGET_WANTS += \
4595 org.freedesktop.locale1.busname
4597 dist_pkgdata_DATA += \
4598 src/locale/kbd-model-map
4600 dist_noinst_SCRIPT = \
4601 src/locale/generate-kbd-model-map
4603 localectl_SOURCES = \
4604 src/locale/localectl.c
4607 libsystemd-internal.la \
4608 libsystemd-shared.la
4613 dist_bashcompletion_DATA += \
4614 shell-completion/bash/localectl
4616 dist_zshcompletion_DATA += \
4617 shell-completion/zsh/_localectl
4621 .PHONY: update-kbd-model-map
4623 polkitpolicy_in_files += \
4624 src/locale/org.freedesktop.locale1.policy.in
4627 units/systemd-localed.service.in
4629 # ------------------------------------------------------------------------------
4631 systemd_timedated_SOURCES = \
4632 src/timedate/timedated.c
4634 systemd_timedated_LDADD = \
4635 libsystemd-label.la \
4636 libsystemd-internal.la \
4637 libsystemd-shared.la
4639 rootlibexec_PROGRAMS += \
4642 dist_dbussystemservice_DATA += \
4643 src/timedate/org.freedesktop.timedate1.service
4645 dist_dbuspolicy_DATA += \
4646 src/timedate/org.freedesktop.timedate1.conf
4648 nodist_systemunit_DATA += \
4649 units/systemd-timedated.service
4651 dist_systemunit_DATA_busnames += \
4652 units/org.freedesktop.timedate1.busname
4654 polkitpolicy_files += \
4655 src/timedate/org.freedesktop.timedate1.policy
4657 SYSTEM_UNIT_ALIASES += \
4658 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4660 BUSNAMES_TARGET_WANTS += \
4661 org.freedesktop.timedate1.busname
4663 timedatectl_SOURCES = \
4664 src/timedate/timedatectl.c
4666 timedatectl_LDADD = \
4667 libsystemd-internal.la \
4668 libsystemd-shared.la
4673 dist_bashcompletion_DATA += \
4674 shell-completion/bash/timedatectl
4676 dist_zshcompletion_DATA += \
4677 shell-completion/zsh/_timedatectl
4680 polkitpolicy_in_files += \
4681 src/timedate/org.freedesktop.timedate1.policy.in
4684 units/systemd-timedated.service.in
4686 # ------------------------------------------------------------------------------
4688 systemd_timesyncd_SOURCES = \
4689 src/timesync/timesyncd.c \
4690 src/timesync/timesyncd-manager.c \
4691 src/timesync/timesyncd-manager.h \
4692 src/timesync/timesyncd-conf.c \
4693 src/timesync/timesyncd-conf.h \
4694 src/timesync/timesyncd-server.c \
4695 src/timesync/timesyncd-server.h
4697 nodist_systemd_timesyncd_SOURCES = \
4698 src/timesync/timesyncd-gperf.c
4701 src/timesync/timesyncd-gperf.gperf
4704 src/timesync/timesyncd-gperf.c
4706 systemd_timesyncd_LDADD = \
4707 libsystemd-resolve.la \
4708 libsystemd-network.la \
4709 libsystemd-label.la \
4710 libsystemd-capability.la \
4711 libsystemd-internal.la \
4712 libsystemd-shared.la \
4715 rootlibexec_PROGRAMS += \
4718 nodist_systemunit_DATA += \
4719 units/systemd-timesyncd.service
4721 GENERAL_ALIASES += \
4722 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4725 units/systemd-timesyncd.service.in
4727 nodist_pkgsysconf_DATA += \
4728 src/timesync/timesyncd.conf
4731 src/timesync/timesyncd.conf.in
4734 src/timesync/timesyncd.conf
4737 # ------------------------------------------------------------------------------
4739 libnss_myhostname_la_SOURCES = \
4740 src/nss-myhostname/nss-myhostname.sym \
4741 src/nss-myhostname/nss-myhostname.c
4743 libnss_myhostname_la_LDFLAGS = \
4750 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4752 libnss_myhostname_la_LIBADD = \
4753 libsystemd-shared.la \
4754 libsystemd-internal.la
4756 lib_LTLIBRARIES += \
4757 libnss_myhostname.la
4760 # ------------------------------------------------------------------------------
4762 systemd_machined_SOURCES = \
4763 src/machine/machined.c \
4764 src/machine/machined.h
4766 systemd_machined_LDADD = \
4767 libsystemd-machine-core.la
4769 rootlibexec_PROGRAMS += \
4772 libsystemd_machine_core_la_SOURCES = \
4773 src/machine/machined-dbus.c \
4774 src/machine/machine.c \
4775 src/machine/machine.h \
4776 src/machine/machine-dbus.c
4778 libsystemd_machine_core_la_LIBADD = \
4779 libsystemd-label.la \
4780 libsystemd-internal.la \
4781 libudev-internal.la \
4782 libsystemd-shared.la
4784 noinst_LTLIBRARIES += \
4785 libsystemd-machine-core.la
4787 machinectl_SOURCES = \
4788 src/machine/machinectl.c
4790 machinectl_LDADD = \
4791 libsystemd-internal.la \
4792 libsystemd-shared.la
4794 rootbin_PROGRAMS += \
4797 dist_bashcompletion_DATA += \
4798 shell-completion/bash/machinectl
4800 test_machine_tables_SOURCES = \
4801 src/machine/test-machine-tables.c
4803 test_machine_tables_LDADD = \
4804 libsystemd-machine-core.la
4809 nodist_systemunit_DATA += \
4810 units/systemd-machined.service
4812 dist_systemunit_DATA += \
4815 dist_systemunit_DATA_busnames += \
4816 units/org.freedesktop.machine1.busname
4818 dist_dbussystemservice_DATA += \
4819 src/machine/org.freedesktop.machine1.service
4821 dist_dbuspolicy_DATA += \
4822 src/machine/org.freedesktop.machine1.conf
4824 dist_zshcompletion_DATA += \
4825 shell-completion/zsh/_machinectl \
4826 shell-completion/zsh/_sd_machines
4828 SYSTEM_UNIT_ALIASES += \
4829 systemd-machined.service dbus-org.freedesktop.machine1.service
4831 BUSNAMES_TARGET_WANTS += \
4832 org.freedesktop.machine1.busname
4835 units/systemd-machined.service.in
4837 libnss_mymachines_la_SOURCES = \
4838 src/nss-mymachines/nss-mymachines.sym \
4839 src/nss-mymachines/nss-mymachines.c
4841 libnss_mymachines_la_LDFLAGS = \
4848 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4850 libnss_mymachines_la_LIBADD = \
4851 libsystemd-shared.la \
4852 libsystemd-internal.la
4854 lib_LTLIBRARIES += \
4855 libnss_mymachines.la
4858 # ------------------------------------------------------------------------------
4860 systemd_resolved_SOURCES = \
4861 src/resolve/resolved.c \
4862 src/resolve/resolved-manager.c \
4863 src/resolve/resolved-manager.h \
4864 src/resolve/resolved-conf.c \
4865 src/resolve/resolved-conf.h \
4866 src/resolve/resolved-bus.c \
4867 src/resolve/resolved-bus.h \
4868 src/resolve/resolved-link.h \
4869 src/resolve/resolved-link.c \
4870 src/resolve/resolved-def.h \
4871 src/resolve/resolved-dns-domain.h \
4872 src/resolve/resolved-dns-domain.c \
4873 src/resolve/resolved-dns-rr.h \
4874 src/resolve/resolved-dns-rr.c \
4875 src/resolve/resolved-dns-question.h \
4876 src/resolve/resolved-dns-question.c \
4877 src/resolve/resolved-dns-answer.h \
4878 src/resolve/resolved-dns-answer.c \
4879 src/resolve/resolved-dns-packet.h \
4880 src/resolve/resolved-dns-packet.c \
4881 src/resolve/resolved-dns-query.h \
4882 src/resolve/resolved-dns-query.c \
4883 src/resolve/resolved-dns-transaction.h \
4884 src/resolve/resolved-dns-transaction.c \
4885 src/resolve/resolved-dns-scope.h \
4886 src/resolve/resolved-dns-scope.c \
4887 src/resolve/resolved-dns-server.h \
4888 src/resolve/resolved-dns-server.c \
4889 src/resolve/resolved-dns-cache.h \
4890 src/resolve/resolved-dns-cache.c \
4891 src/resolve/resolved-dns-zone.h \
4892 src/resolve/resolved-dns-zone.c \
4893 src/resolve/resolved-dns-stream.h \
4894 src/resolve/resolved-dns-stream.c \
4895 src/resolve/dns-type.c \
4896 src/resolve/dns-type.h \
4897 src/resolve/dns_type-from-name.h \
4898 src/resolve/dns_type-to-name.h
4900 nodist_systemd_resolved_SOURCES = \
4901 src/resolve/resolved-gperf.c
4904 src/resolve/resolved-gperf.gperf \
4905 src/resolve/dns_type-from-name.gperf
4908 src/resolve/resolved-gperf.c
4910 systemd_resolved_LDADD = \
4911 libsystemd-capability.la \
4912 libsystemd-network.la \
4913 libsystemd-label.la \
4914 libsystemd-internal.la \
4915 libsystemd-shared.la \
4919 rootlibexec_PROGRAMS += \
4922 nodist_systemunit_DATA += \
4923 units/systemd-resolved.service
4925 dist_systemunit_DATA_busnames += \
4926 units/org.freedesktop.resolve1.busname
4928 dist_dbuspolicy_DATA += \
4929 src/resolve/org.freedesktop.resolve1.conf
4931 dist_dbussystemservice_DATA += \
4932 src/resolve/org.freedesktop.resolve1.service
4935 units/systemd-resolved.service.in
4937 SYSTEM_UNIT_ALIASES += \
4938 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4940 BUSNAMES_TARGET_WANTS += \
4941 org.freedesktop.resolve1.busname
4943 GENERAL_ALIASES += \
4944 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4946 nodist_pkgsysconf_DATA += \
4947 src/resolve/resolved.conf
4950 src/resolve/resolved.conf.in
4953 src/resolve/resolved.conf
4958 test_dns_domain_SOURCES = \
4959 src/resolve/resolved-dns-domain.h \
4960 src/resolve/resolved-dns-domain.c \
4961 src/resolve/test-dns-domain.c
4963 test_dns_domain_LDADD = \
4964 libsystemd-capability.la \
4965 libsystemd-network.la \
4966 libsystemd-label.la \
4967 libsystemd-internal.la \
4968 libsystemd-shared.la \
4971 libnss_resolve_la_SOURCES = \
4972 src/nss-resolve/nss-resolve.sym \
4973 src/nss-resolve/nss-resolve.c
4975 libnss_resolve_la_LDFLAGS = \
4982 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
4984 libnss_resolve_la_LIBADD = \
4985 libsystemd-shared.la \
4986 libsystemd-internal.la
4988 lib_LTLIBRARIES += \
4991 systemd_resolve_host_SOURCES = \
4992 src/resolve-host/resolve-host.c \
4993 src/resolve/resolved-dns-packet.c \
4994 src/resolve/resolved-dns-packet.h \
4995 src/resolve/resolved-dns-rr.c \
4996 src/resolve/resolved-dns-rr.h \
4997 src/resolve/resolved-dns-answer.c \
4998 src/resolve/resolved-dns-answer.h \
4999 src/resolve/resolved-dns-question.c \
5000 src/resolve/resolved-dns-question.h \
5001 src/resolve/resolved-dns-domain.c \
5002 src/resolve/resolved-dns-domain.h \
5003 src/resolve/dns-type.c \
5004 src/resolve/dns-type.h \
5005 src/resolve/dns_type-from-name.h \
5006 src/resolve/dns_type-to-name.h
5008 systemd_resolve_host_LDADD = \
5009 libsystemd-internal.la \
5010 libsystemd-shared.la \
5014 rootlibexec_PROGRAMS += \
5015 systemd-resolve-host
5019 # ------------------------------------------------------------------------------
5021 rootlibexec_PROGRAMS += \
5024 systemd_networkd_SOURCES = \
5025 src/network/networkd.c
5027 systemd_networkd_LDADD = \
5028 libsystemd-networkd-core.la \
5029 libsystemd-capability.la
5031 noinst_LTLIBRARIES += \
5032 libsystemd-networkd-core.la
5034 libsystemd_networkd_core_la_CFLAGS = \
5037 libsystemd_networkd_core_la_SOURCES = \
5038 src/libsystemd-network/network-internal.h \
5039 src/network/networkd.h \
5040 src/network/networkd-link.h \
5041 src/network/networkd-netdev.h \
5042 src/network/networkd-netdev-tunnel.h \
5043 src/network/networkd-netdev-veth.h \
5044 src/network/networkd-netdev-vxlan.h \
5045 src/network/networkd-netdev-vlan.h \
5046 src/network/networkd-netdev-macvlan.h \
5047 src/network/networkd-netdev-dummy.h \
5048 src/network/networkd-netdev-tuntap.h \
5049 src/network/networkd-netdev-bond.h \
5050 src/network/networkd-netdev-bridge.h \
5051 src/network/networkd-netdev.c \
5052 src/network/networkd-netdev-tunnel.c \
5053 src/network/networkd-netdev-veth.c \
5054 src/network/networkd-netdev-vxlan.c \
5055 src/network/networkd-netdev-vlan.c \
5056 src/network/networkd-netdev-macvlan.c \
5057 src/network/networkd-netdev-dummy.c \
5058 src/network/networkd-netdev-tuntap.c \
5059 src/network/networkd-netdev-bond.c \
5060 src/network/networkd-netdev-bridge.c \
5061 src/network/networkd-link.c \
5062 src/network/networkd-ipv4ll.c \
5063 src/network/networkd-dhcp4.c \
5064 src/network/networkd-network.c \
5065 src/network/networkd-address.c \
5066 src/network/networkd-route.c \
5067 src/network/networkd-manager.c \
5068 src/network/networkd-address-pool.c
5070 nodist_libsystemd_networkd_core_la_SOURCES = \
5071 src/network/networkd-network-gperf.c \
5072 src/network/networkd-netdev-gperf.c
5074 libsystemd_networkd_core_la_LIBADD = \
5075 libudev-internal.la \
5076 libsystemd-internal.la \
5077 libsystemd-network.la \
5078 libsystemd-label.la \
5079 libsystemd-shared.la
5081 rootlibexec_PROGRAMS += \
5082 systemd-networkd-wait-online
5084 systemd_networkd_wait_online_CFLAGS = \
5087 systemd_networkd_wait_online_SOURCES = \
5088 src/libsystemd-network/network-internal.h \
5089 src/network/networkd-wait-online.h \
5090 src/network/networkd-wait-online-link.h \
5091 src/network/networkd-wait-online.c \
5092 src/network/networkd-wait-online-manager.c \
5093 src/network/networkd-wait-online-link.c
5095 systemd_networkd_wait_online_LDADD = \
5096 libsystemd-network.la \
5097 libudev-internal.la \
5098 libsystemd-internal.la \
5099 libsystemd-shared.la
5101 rootbin_PROGRAMS += \
5104 networkctl_SOURCES = \
5105 src/network/networkctl.c
5107 networkctl_LDADD = \
5108 libsystemd-internal.la \
5109 libudev-internal.la \
5110 libsystemd-shared.la \
5111 libsystemd-network.la
5113 test_network_SOURCES = \
5114 src/network/test-network.c
5116 test_network_CFLAGS = \
5119 test_network_LDADD = \
5120 libsystemd-networkd-core.la
5122 test_network_tables_SOURCES = \
5123 src/network/test-network-tables.c \
5124 src/shared/test-tables.h
5126 test_network_tables_LDADD = \
5127 libsystemd-networkd-core.la \
5134 nodist_systemunit_DATA += \
5135 units/systemd-networkd.service \
5136 units/systemd-networkd-wait-online.service
5138 GENERAL_ALIASES += \
5139 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5140 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5143 src/network/networkd-network-gperf.gperf \
5144 src/network/networkd-netdev-gperf.gperf \
5145 units/systemd-networkd.service.in \
5146 units/systemd-networkd-wait-online.service.in
5149 src/network/networkd-network-gperf.c \
5150 src/network/networkd-netdev-gperf.c
5153 # ------------------------------------------------------------------------------
5155 systemd_logind_SOURCES = \
5156 src/login/logind.c \
5159 nodist_systemd_logind_SOURCES = \
5160 src/login/logind-gperf.c
5162 systemd_logind_LDADD = \
5163 libsystemd-logind-core.la
5165 libsystemd_logind_core_la_SOURCES = \
5166 src/login/logind-core.c \
5167 src/login/logind-device.c \
5168 src/login/logind-device.h \
5169 src/login/logind-button.c \
5170 src/login/logind-button.h \
5171 src/login/logind-action.c \
5172 src/login/logind-action.h \
5173 src/login/logind-seat.c \
5174 src/login/logind-seat.h \
5175 src/login/logind-session.c \
5176 src/login/logind-session.h \
5177 src/login/logind-session-device.c \
5178 src/login/logind-session-device.h \
5179 src/login/logind-user.c \
5180 src/login/logind-user.h \
5181 src/login/logind-inhibit.c \
5182 src/login/logind-inhibit.h \
5183 src/login/logind-dbus.c \
5184 src/login/logind-session-dbus.c \
5185 src/login/logind-seat-dbus.c \
5186 src/login/logind-user-dbus.c \
5187 src/login/logind-acl.h
5189 libsystemd_logind_core_la_LIBADD = \
5190 libsystemd-label.la \
5191 libsystemd-capability.la \
5192 libsystemd-internal.la \
5193 libudev-internal.la \
5194 libsystemd-shared.la
5197 libsystemd_logind_core_la_SOURCES += \
5198 src/login/logind-acl.c
5200 libsystemd_logind_core_la_LIBADD += \
5204 noinst_LTLIBRARIES += \
5205 libsystemd-logind-core.la
5207 systemd_user_sessions_SOURCES = \
5208 src/login/user-sessions.c
5210 systemd_user_sessions_LDADD = \
5211 libsystemd-shared.la
5213 rootlibexec_PROGRAMS += \
5215 systemd-user-sessions
5217 loginctl_SOURCES = \
5218 src/login/loginctl.c \
5219 src/login/sysfs-show.c
5222 libsystemd-internal.la \
5223 libudev-internal.la \
5224 libsystemd-shared.la
5226 rootbin_PROGRAMS += \
5229 dist_bashcompletion_DATA += \
5230 shell-completion/bash/loginctl
5232 dist_zshcompletion_DATA += \
5233 shell-completion/zsh/_loginctl \
5234 shell-completion/zsh/_systemd-inhibit
5236 systemd_inhibit_SOURCES = \
5239 systemd_inhibit_LDADD = \
5240 libsystemd-internal.la \
5241 libsystemd-shared.la
5243 rootbin_PROGRAMS += \
5246 test_login_SOURCES = \
5247 src/libsystemd/sd-login/test-login.c
5249 test_login_LDADD = \
5250 libsystemd-internal.la \
5251 libsystemd-shared.la
5253 test_login_shared_SOURCES = \
5254 src/login/test-login-shared.c
5256 test_login_shared_LDADD = \
5257 libsystemd-internal.la \
5258 libsystemd-shared.la
5260 test_inhibit_SOURCES = \
5261 src/login/test-inhibit.c
5263 test_inhibit_LDADD = \
5264 libsystemd-internal.la \
5265 libsystemd-shared.la
5267 test_login_tables_SOURCES = \
5268 src/login/test-login-tables.c
5270 test_login_tables_LDADD = \
5271 libsystemd-logind-core.la
5282 pam_systemd_la_SOURCES = \
5283 src/login/pam_systemd.sym \
5284 src/login/pam_systemd.c
5286 pam_systemd_la_CFLAGS = \
5291 pam_systemd_la_LDFLAGS = \
5297 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5299 pam_systemd_la_LIBADD = \
5300 libsystemd-capability.la \
5301 libsystemd-internal.la \
5302 libsystemd-shared.la \
5305 pamlib_LTLIBRARIES = \
5308 dist_pamconf_DATA = \
5309 src/login/systemd-user
5312 nodist_systemunit_DATA += \
5313 units/systemd-logind.service \
5314 units/systemd-user-sessions.service
5316 dist_systemunit_DATA += \
5319 dist_systemunit_DATA_busnames += \
5320 units/org.freedesktop.login1.busname
5322 dist_dbussystemservice_DATA += \
5323 src/login/org.freedesktop.login1.service
5325 dist_dbuspolicy_DATA += \
5326 src/login/org.freedesktop.login1.conf
5328 dist_pkgsysconf_DATA += \
5329 src/login/logind.conf
5331 polkitpolicy_files += \
5332 src/login/org.freedesktop.login1.policy
5337 MULTI_USER_TARGET_WANTS += \
5338 systemd-logind.service \
5339 systemd-user-sessions.service
5341 SYSTEM_UNIT_ALIASES += \
5342 systemd-logind.service dbus-org.freedesktop.login1.service
5344 BUSNAMES_TARGET_WANTS += \
5345 org.freedesktop.login1.busname
5347 if ENABLE_MULTI_SEAT_X
5349 systemd_multi_seat_x_SOURCES = \
5350 src/login/multi-seat-x.c
5352 systemd_multi_seat_x_LDADD = \
5353 libsystemd-label.la \
5354 libsystemd-shared.la
5356 rootlibexec_PROGRAMS += \
5357 systemd-multi-seat-x
5361 dist_udevrules_DATA += \
5362 src/login/70-uaccess.rules \
5363 src/login/70-power-switch.rules
5365 nodist_udevrules_DATA += \
5366 src/login/71-seat.rules \
5367 src/login/73-seat-late.rules
5370 src/login/logind-gperf.c \
5371 src/login/71-seat.rules \
5372 src/login/73-seat-late.rules
5375 polkitpolicy_in_files += \
5376 src/login/org.freedesktop.login1.policy.in
5379 src/login/logind-gperf.gperf \
5380 src/login/71-seat.rules.in \
5381 src/login/73-seat-late.rules.in \
5382 units/systemd-logind.service.in \
5383 units/systemd-user-sessions.service.in
5385 # ------------------------------------------------------------------------------
5386 if HAVE_PYTHON_DEVEL
5387 pkgpyexec_LTLIBRARIES = \
5394 _journal_la_SOURCES = \
5395 src/python-systemd/_journal.c
5397 _journal_la_CFLAGS = \
5399 -fvisibility=default \
5400 $(PYTHON_DEVEL_CFLAGS)
5402 _journal_la_LDFLAGS = \
5408 _journal_la_LIBADD = \
5409 $(PYTHON_DEVEL_LIBS) \
5412 id128_la_SOURCES = \
5413 src/python-systemd/id128.c \
5414 src/python-systemd/pyutil.c \
5415 src/python-systemd/pyutil.h
5417 nodist_id128_la_SOURCES = \
5418 src/python-systemd/id128-constants.h
5422 -fvisibility=default \
5423 $(PYTHON_DEVEL_CFLAGS) \
5424 -I$(top_builddir)/src/python-systemd
5426 id128_la_LDFLAGS = \
5433 $(PYTHON_DEVEL_LIBS) \
5434 libsystemd-shared.la \
5437 _daemon_la_SOURCES = \
5438 src/python-systemd/_daemon.c \
5439 src/python-systemd/pyutil.c \
5440 src/python-systemd/pyutil.h
5442 _daemon_la_CFLAGS = \
5444 -fvisibility=default \
5445 $(PYTHON_DEVEL_CFLAGS) \
5446 -I$(top_builddir)/src/python-systemd
5448 _daemon_la_LDFLAGS = \
5454 _daemon_la_LIBADD = \
5455 $(PYTHON_DEVEL_LIBS) \
5456 libsystemd-shared.la \
5459 _reader_la_SOURCES = \
5460 src/python-systemd/_reader.c \
5461 src/python-systemd/pyutil.c \
5462 src/python-systemd/pyutil.h
5464 _reader_la_CFLAGS = \
5466 -fvisibility=default \
5467 $(PYTHON_DEVEL_CFLAGS)
5469 _reader_la_LDFLAGS = \
5475 _reader_la_LIBADD = \
5476 $(PYTHON_DEVEL_LIBS) \
5477 libsystemd-shared.la \
5480 login_la_SOURCES = \
5481 src/python-systemd/login.c \
5482 src/python-systemd/pyutil.c \
5483 src/python-systemd/pyutil.h
5487 -fvisibility=default \
5488 $(PYTHON_DEVEL_CFLAGS)
5490 login_la_LDFLAGS = \
5497 $(PYTHON_DEVEL_LIBS) \
5498 libsystemd-shared.la \
5501 dist_pkgpyexec_PYTHON = \
5502 src/python-systemd/journal.py \
5503 src/python-systemd/daemon.py \
5504 src/python-systemd/__init__.py
5506 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5507 $(AM_V_at)$(MKDIR_P) $(dir $@)
5508 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5511 src/python-systemd/id128-constants.h
5513 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5515 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5516 $(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/
5517 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5520 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5521 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5524 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5525 $(MAKE) DESTDIR="$$dir" install && \
5526 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5531 CLEAN_LOCAL_HOOKS += clean-sphinx
5533 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5536 -rm -rf docs/html/python-systemd/
5538 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5540 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5541 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5543 # ------------------------------------------------------------------------------
5544 if ENABLE_COMPAT_LIBS
5546 src/compat-libs/linkwarning.h
5548 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5549 $(AM_V_at)$(MKDIR_P) $(dir $@)
5550 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5553 libsystemd-journal.c \
5554 libsystemd-login.c \
5555 libsystemd-id128.c \
5558 libsystemd_journal_la_SOURCES = \
5559 libsystemd-journal.c \
5560 src/compat-libs/libsystemd-journal.sym
5562 libsystemd_journal_la_CPPFLAGS = \
5564 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5566 libsystemd_journal_la_LDFLAGS = \
5568 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5569 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5571 libsystemd_journal_la_LIBADD = \
5572 libsystemd-journal-internal.la \
5573 libsystemd-internal.la \
5574 libsystemd-shared.la
5576 libsystemd_login_la_SOURCES = \
5577 libsystemd-login.c \
5578 src/compat-libs/libsystemd-login.sym
5580 libsystemd_login_la_CPPFLAGS = \
5582 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5584 libsystemd_login_la_LDFLAGS = \
5586 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5587 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5589 libsystemd_login_la_LIBADD = \
5590 libsystemd-internal.la \
5591 libsystemd-shared.la
5593 libsystemd_id128_la_SOURCES = \
5594 libsystemd-id128.c \
5595 src/compat-libs/libsystemd-id128.sym
5597 libsystemd_id128_la_CPPFLAGS = \
5599 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5601 libsystemd_id128_la_LDFLAGS = \
5603 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5604 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5606 libsystemd_id128_la_LIBADD = \
5607 libsystemd-internal.la \
5608 libsystemd-shared.la
5610 libsystemd_daemon_la_SOURCES = \
5611 libsystemd-daemon.c \
5612 src/compat-libs/libsystemd-daemon.sym
5614 libsystemd_daemon_la_CPPFLAGS = \
5616 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5618 libsystemd_daemon_la_LDFLAGS = \
5620 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5621 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5623 libsystemd_daemon_la_LIBADD = \
5624 libsystemd-internal.la \
5625 libsystemd-shared.la
5627 lib_LTLIBRARIES += \
5628 libsystemd-journal.la \
5629 libsystemd-login.la \
5630 libsystemd-id128.la \
5631 libsystemd-daemon.la
5633 pkgconfiglib_DATA += \
5634 src/compat-libs/libsystemd-journal.pc \
5635 src/compat-libs/libsystemd-login.pc \
5636 src/compat-libs/libsystemd-id128.pc \
5637 src/compat-libs/libsystemd-daemon.pc
5639 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5640 compat-lib-install-hook:
5641 libname=libsystemd-login.so && $(move-to-rootlibdir)
5642 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5643 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5644 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5646 compat-lib-uninstall-hook:
5647 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5648 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5649 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5650 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5652 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5653 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5657 src/compat-libs/libsystemd-journal.pc.in \
5658 src/compat-libs/libsystemd-login.pc.in \
5659 src/compat-libs/libsystemd-id128.pc.in \
5660 src/compat-libs/libsystemd-daemon.pc.in
5662 # ------------------------------------------------------------------------------
5664 '|rootlibexecdir=$(rootlibexecdir)|' \
5665 '|rootbindir=$(rootbindir)|' \
5666 '|bindir=$(bindir)|' \
5667 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5668 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5669 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5670 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5671 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5672 '|pkgdatadir=$(pkgdatadir)|' \
5673 '|systemunitdir=$(systemunitdir)|' \
5674 '|userunitdir=$(userunitdir)|' \
5675 '|systempresetdir=$(systempresetdir)|' \
5676 '|userpresetdir=$(userpresetdir)|' \
5677 '|udevhwdbdir=$(udevhwdbdir)|' \
5678 '|udevrulesdir=$(udevrulesdir)|' \
5679 '|catalogdir=$(catalogdir)|' \
5680 '|tmpfilesdir=$(tmpfilesdir)|' \
5681 '|sysusersdir=$(sysusersdir)|' \
5682 '|sysctldir=$(sysctldir)|' \
5683 '|systemgeneratordir=$(systemgeneratordir)|' \
5684 '|usergeneratordir=$(usergeneratordir)|' \
5685 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5686 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5687 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5688 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5689 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5690 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5691 '|prefix=$(prefix)|' \
5692 '|exec_prefix=$(exec_prefix)|' \
5693 '|libdir=$(libdir)|' \
5694 '|includedir=$(includedir)|' \
5695 '|VERSION=$(VERSION)|' \
5696 '|rootprefix=$(rootprefix)|' \
5697 '|udevlibexecdir=$(udevlibexecdir)|' \
5698 '|SUSHELL=$(SUSHELL)|' \
5699 '|DEBUGTTY=$(DEBUGTTY)|' \
5702 '|MKDIR_P=$(MKDIR_P)|' \
5703 '|QUOTAON=$(QUOTAON)|' \
5704 '|QUOTACHECK=$(QUOTACHECK)|' \
5705 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5706 '|VARLOGDIR=$(varlogdir)|' \
5707 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5708 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5709 '|PYTHON=$(PYTHON)|' \
5710 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5711 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5712 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5713 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5714 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5715 '|TTY_GID=$(TTY_GID)|' \
5716 '|systemsleepdir=$(systemsleepdir)|' \
5717 '|systemshutdowndir=$(systemshutdowndir)|' \
5718 '|binfmtdir=$(binfmtdir)|' \
5719 '|modulesloaddir=$(modulesloaddir)|'
5722 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5723 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5732 sysctl.d/%: sysctl.d/%.in
5741 src/core/macros.%: src/core/macros.%.in
5744 src/%.policy.in: src/%.policy.in.in
5747 shell-completion/%: shell-completion/%.in
5758 $(AM_V_GEN)chmod +x $@
5760 src/%.c: src/%.gperf
5761 $(AM_V_at)$(MKDIR_P) $(dir $@)
5762 $(AM_V_GPERF)$(GPERF) < $< > $@
5765 $(AM_V_at)$(MKDIR_P) $(dir $@)
5766 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5768 tmpfiles.d/%: tmpfiles.d/%.m4
5769 $(AM_V_at)$(MKDIR_P) $(dir $@)
5770 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5774 $(AM_V_at)$(MKDIR_P) $(dir $@)
5775 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5777 units/user/%: units/%.m4
5778 $(AM_V_at)$(MKDIR_P) $(dir $@)
5779 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5782 nodist_polkitpolicy_DATA = \
5783 $(polkitpolicy_files) \
5784 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5788 $(polkitpolicy_in_files) \
5789 $(polkitpolicy_in_in_files)
5792 $(nodist_systemunit_DATA) \
5793 $(nodist_userunit_DATA) \
5794 $(pkgconfigdata_DATA) \
5795 $(pkgconfiglib_DATA) \
5796 $(nodist_polkitpolicy_DATA)
5798 # ------------------------------------------------------------------------------
5800 man/custom-entities.ent: configure.ac
5801 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5802 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5803 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5807 man/custom-entities.ent
5812 --stringparam man.output.quietly 1 \
5813 --stringparam funcsynopsis.style ansi \
5814 --stringparam man.authors.section.enabled 0 \
5815 --stringparam man.copyright.section.enabled 0 \
5816 --stringparam systemd.version $(VERSION) \
5817 --path '$(builddir)/man:$(srcdir)/man'
5819 XSLTPROC_PROCESS_MAN = \
5820 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5822 XSLTPROC_PROCESS_HTML = \
5823 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5825 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5826 $(XSLTPROC_PROCESS_MAN)
5828 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5829 $(XSLTPROC_PROCESS_MAN)
5831 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5832 $(XSLTPROC_PROCESS_MAN)
5834 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5835 $(XSLTPROC_PROCESS_MAN)
5837 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5838 $(XSLTPROC_PROCESS_MAN)
5840 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5841 $(XSLTPROC_PROCESS_HTML)
5844 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5850 man/custom-html.xsl \
5853 # ------------------------------------------------------------------------------
5856 docs/sysvinit/README
5861 docs/sysvinit/README: docs/sysvinit/README.in
5864 docs/var-log/README: docs/var-log/README.in
5868 docs/sysvinit/README \
5873 docs/sysvinit/README.in \
5874 docs/var-log/README.in
5876 SOCKETS_TARGET_WANTS += \
5877 systemd-initctl.socket \
5878 systemd-shutdownd.socket
5882 RUNLEVEL1_TARGET_WANTS += \
5883 systemd-update-utmp-runlevel.service
5884 RUNLEVEL2_TARGET_WANTS += \
5885 systemd-update-utmp-runlevel.service
5886 RUNLEVEL3_TARGET_WANTS += \
5887 systemd-update-utmp-runlevel.service
5888 RUNLEVEL4_TARGET_WANTS += \
5889 systemd-update-utmp-runlevel.service
5890 RUNLEVEL5_TARGET_WANTS += \
5891 systemd-update-utmp-runlevel.service
5894 SYSINIT_TARGET_WANTS += \
5895 systemd-update-utmp.service
5898 SYSINIT_TARGET_WANTS += \
5899 systemd-update-done.service
5901 LOCAL_FS_TARGET_WANTS += \
5902 systemd-remount-fs.service \
5905 MULTI_USER_TARGET_WANTS += \
5907 systemd-ask-password-wall.path
5909 SYSINIT_TARGET_WANTS += \
5910 dev-hugepages.mount \
5912 sys-kernel-config.mount \
5913 sys-kernel-debug.mount \
5914 sys-fs-fuse-connections.mount \
5915 systemd-sysctl.service \
5916 systemd-ask-password-console.path
5919 SYSTEM_UNIT_ALIASES += \
5920 poweroff.target runlevel0.target \
5921 rescue.target runlevel1.target \
5922 multi-user.target runlevel2.target \
5923 multi-user.target runlevel3.target \
5924 multi-user.target runlevel4.target \
5925 graphical.target runlevel5.target \
5926 reboot.target runlevel6.target
5929 SYSTEM_UNIT_ALIASES += \
5930 graphical.target default.target \
5931 reboot.target ctrl-alt-del.target \
5932 getty@.service autovt@.service
5934 USER_UNIT_ALIASES += \
5935 $(systemunitdir)/shutdown.target shutdown.target \
5936 $(systemunitdir)/sockets.target sockets.target \
5937 $(systemunitdir)/timers.target timers.target \
5938 $(systemunitdir)/paths.target paths.target \
5939 $(systemunitdir)/bluetooth.target bluetooth.target \
5940 $(systemunitdir)/printer.target printer.target \
5941 $(systemunitdir)/sound.target sound.target \
5942 $(systemunitdir)/smartcard.target smartcard.target
5945 USER_UNIT_ALIASES += \
5946 $(systemunitdir)/busnames.target busnames.target
5949 GENERAL_ALIASES += \
5950 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5951 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5952 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5953 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5957 $(systemunitdir)/runlevel1.target.wants \
5958 $(systemunitdir)/runlevel2.target.wants \
5959 $(systemunitdir)/runlevel3.target.wants \
5960 $(systemunitdir)/runlevel4.target.wants \
5961 $(systemunitdir)/runlevel5.target.wants
5965 $(prefix)/lib/modules-load.d \
5966 $(sysconfdir)/modules-load.d \
5967 $(prefix)/lib/systemd/network \
5968 $(sysconfdir)/systemd/network \
5969 $(prefix)/lib/sysctl.d \
5970 $(sysconfdir)/sysctl.d \
5971 $(prefix)/lib/kernel/install.d \
5972 $(sysconfdir)/kernel/install.d \
5973 $(systemshutdowndir) \
5975 $(systemgeneratordir) \
5976 $(usergeneratordir) \
5979 $(pkgsysconfdir)/system \
5980 $(pkgsysconfdir)/system/multi-user.target.wants \
5981 $(pkgsysconfdir)/system/getty.target.wants \
5982 $(pkgsysconfdir)/user \
5983 $(dbussessionservicedir) \
5984 $(sysconfdir)/xdg/systemd
5986 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5988 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5990 install-data-hook: $(INSTALL_DATA_HOOKS)
5992 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5994 clean-local: $(CLEAN_LOCAL_HOOKS)
5995 rm -rf $(abs_srcdir)/install-tree
5996 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5997 $(abs_srcdir)/hwdb/iab.txt
5999 DISTCHECK_CONFIGURE_FLAGS = \
6000 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6001 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6002 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6003 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6004 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6005 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6006 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6007 --with-rootprefix=$$dc_install_base \
6008 --disable-split-usr \
6010 --enable-compat-libs
6013 DISTCHECK_CONFIGURE_FLAGS += \
6014 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6015 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6017 DISTCHECK_CONFIGURE_FLAGS += \
6018 --with-sysvinit-path= \
6019 --with-sysvrcnd-path=
6023 DISTCHECK_CONFIGURE_FLAGS += \
6028 DISTCHECK_CONFIGURE_FLAGS += \
6033 # Require python when making dist
6035 .PHONY: dist-check-python
6038 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6042 dist-check-compat-libs:
6043 if !ENABLE_COMPAT_LIBS
6044 @echo "*** compat-libs must be enabled in order to make dist"
6048 dist: dist-check-python dist-check-compat-libs
6050 # check "broken" platforms limited toolchains for link breakage before we release
6053 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6057 ( cd $(top_srcdir)/hwdb && \
6058 wget -N http://www.linux-usb.org/usb.ids \
6059 http://pci-ids.ucw.cz/v2.2/pci.ids \
6060 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6061 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6064 .PHONY: kdbus-update
6066 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6067 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6071 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6073 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6075 upload: all check dist
6076 scp systemd-$(VERSION).tar.xz $(www_target)
6079 doc-sync: all destdir-sphinx
6080 gtkdoc-rebase --html-dir=docs/libudev/html --online
6081 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6082 gtkdoc-rebase --html-dir=docs/gudev/html --online
6083 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6084 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6085 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6089 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6090 scp man/*.html tango:public/systemd-man/
6092 .PHONY: install-tree
6094 rm -rf $(abs_srcdir)/install-tree
6095 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6096 tree $(abs_srcdir)/install-tree
6098 # Let's run all tests of the test suite, but under valgrind. Let's
6099 # exclude the one perl script we have in there
6100 .PHONY: valgrind-tests
6101 valgrind-tests: $(TESTS)
6102 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6103 if file $$f | grep -q shell; then \
6104 echo -e "$${x}Skipping non-binary $$f"; else \
6105 echo -e "$${x}Running $$f"; \
6106 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6111 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6113 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6114 $(AM_V_GEN)cat $^ > $@
6116 .PHONY: check-api-docs
6117 check-api-docs: exported man
6118 $(AM_V_GEN)for symbol in `cat exported` ; do \
6119 if test -f $(builddir)/man/$$symbol.html ; then \
6120 echo " Symbol $$symbol() is documented." ; \
6122 echo "‣ Symbol $$symbol() lacks documentation." ; \
6126 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6127 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6129 undefined defined: $(ALL_OBJECTS)
6130 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6131 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6132 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6138 .PHONY: check-api-unused
6139 check-api-unused: defined undefined exported
6140 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6142 .PHONY: check-includes
6143 check-includes: $(top_srcdir)/tools/check-includes.pl
6144 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6145 | xargs $(top_srcdir)/tools/check-includes.pl
6148 $(top_srcdir)/tools/check-includes.pl
6150 # Stupid test that everything purported to be exported really is
6151 define generate-sym-test
6152 $(AM_V_at)$(MKDIR_P) $(dir $@)
6153 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6154 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6155 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6156 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6157 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6158 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6159 $(AM_V_at)printf 'return 0; }\n' >> $@
6162 test-libsystemd-sym.c: \
6163 $(top_builddir)/src/libsystemd/libsystemd.sym \
6164 src/systemd/sd-journal.h \
6165 src/systemd/sd-daemon.h \
6166 src/systemd/sd-login.h \
6167 src/systemd/sd-bus.h \
6168 src/systemd/sd-utf8.h \
6169 src/systemd/sd-resolve.h \
6170 src/systemd/sd-path.h
6171 $(generate-sym-test)
6173 test-libudev-sym.c: \
6174 src/libudev/libudev.sym \
6176 $(generate-sym-test)
6178 test_libsystemd_sym_SOURCES = \
6179 test-libsystemd-sym.c
6180 test_libsystemd_sym_LDADD = \
6183 test_libudev_sym_SOURCES = \
6185 test_libudev_sym_CFLAGS = \
6187 -Wno-deprecated-declarations
6188 test_libudev_sym_LDADD = \
6192 $(test_libsystemd_sym_SOURCES) \
6193 $(test_libudev_sym_SOURCES)
6196 test-libsystemd-sym \
6201 cppcheck --enable=all -q $(top_srcdir)
6203 # Used to extract compile flags for YCM.
6208 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u