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 \
716 man/glib-event-glue.c
719 man/systemd.index.xml \
720 man/systemd.directives.xml
731 tools/make-man-index.py \
732 tools/make-directive-index.py \
735 # ------------------------------------------------------------------------------
736 noinst_LTLIBRARIES += \
739 libsystemd_shared_la_SOURCES = \
740 src/shared/linux/auto_dev-ioctl.h \
741 src/shared/linux/fanotify.h \
742 src/shared/ioprio.h \
743 src/shared/missing.h \
744 src/shared/initreq.h \
745 src/shared/securebits.h \
746 src/shared/special.h \
750 src/shared/sparse-endian.h \
751 src/shared/refcnt.h \
752 src/shared/udev-util.h \
753 src/shared/bus-errors.h \
754 src/shared/device-nodes.c \
755 src/shared/device-nodes.h \
760 src/shared/architecture.c \
761 src/shared/architecture.h \
762 src/shared/efivars.c \
763 src/shared/efivars.h \
764 src/shared/path-util.c \
765 src/shared/path-util.h \
766 src/shared/time-util.c \
767 src/shared/time-util.h \
768 src/shared/locale-util.c \
769 src/shared/locale-util.h \
770 src/shared/hashmap.c \
771 src/shared/hashmap.h \
772 src/shared/siphash24.c \
773 src/shared/siphash24.h \
780 src/shared/sleep-config.c \
781 src/shared/sleep-config.h \
784 src/shared/env-util.c \
785 src/shared/env-util.h \
786 src/shared/strbuf.c \
787 src/shared/strbuf.h \
788 src/shared/strxcpyx.c \
789 src/shared/strxcpyx.h \
790 src/shared/conf-parser.c \
791 src/shared/conf-parser.h \
794 src/shared/ratelimit.h \
795 src/shared/ratelimit.c \
796 src/shared/exit-status.c \
797 src/shared/exit-status.h \
800 src/shared/gunicode.c \
801 src/shared/gunicode.h \
804 src/shared/socket-util.c \
805 src/shared/socket-util.h \
806 src/shared/in-addr-util.c \
807 src/shared/in-addr-util.h \
808 src/shared/conf-files.c \
809 src/shared/conf-files.h \
810 src/shared/cgroup-util.c \
811 src/shared/cgroup-util.h \
812 src/shared/cgroup-show.c \
813 src/shared/cgroup-show.h \
814 src/shared/unit-name.c \
815 src/shared/unit-name.h \
816 src/shared/utmp-wtmp.h \
817 src/shared/watchdog.c \
818 src/shared/watchdog.h \
819 src/shared/spawn-ask-password-agent.c \
820 src/shared/spawn-ask-password-agent.h \
821 src/shared/replace-var.c \
822 src/shared/replace-var.h \
823 src/shared/spawn-polkit-agent.c \
824 src/shared/spawn-polkit-agent.h \
825 src/shared/clock-util.c \
826 src/shared/clock-util.h \
827 src/shared/time-dst.c \
828 src/shared/time-dst.h \
829 src/shared/calendarspec.c \
830 src/shared/calendarspec.h \
831 src/shared/fileio.c \
832 src/shared/fileio.h \
833 src/shared/output-mode.h \
834 src/shared/MurmurHash2.c \
835 src/shared/MurmurHash2.h \
836 src/shared/acpi-fpdt.h \
837 src/shared/acpi-fpdt.c \
838 src/shared/boot-timestamps.h \
839 src/shared/boot-timestamps.c \
842 src/shared/smack-util.c \
843 src/shared/smack-util.h \
844 src/shared/apparmor-util.c \
845 src/shared/apparmor-util.h \
846 src/shared/ima-util.c \
847 src/shared/ima-util.h \
848 src/shared/ptyfwd.c \
849 src/shared/ptyfwd.h \
850 src/shared/errno-list.c \
851 src/shared/errno-list.h \
852 src/shared/af-list.c \
853 src/shared/af-list.h \
854 src/shared/arphrd-list.c \
855 src/shared/arphrd-list.h \
860 src/shared/condition-util.c \
861 src/shared/condition-util.h \
862 src/shared/bus-label.c \
863 src/shared/bus-label.h \
865 src/shared/clean-ipc.h \
866 src/shared/clean-ipc.c \
867 src/shared/login-shared.c \
868 src/shared/login-shared.h \
871 src/shared/barrier.c \
872 src/shared/barrier.h \
879 src/shared/base-filesystem.c \
880 src/shared/base-filesystem.h \
883 src/shared/uid-range.c \
884 src/shared/uid-range.h \
885 src/shared/switch-root.h \
886 src/shared/switch-root.c \
887 src/shared/nss-util.h
890 libsystemd_shared_la_SOURCES += \
891 src/shared/utmp-wtmp.c
894 nodist_libsystemd_shared_la_SOURCES = \
895 src/shared/errno-from-name.h \
896 src/shared/errno-to-name.h \
897 src/shared/af-from-name.h \
898 src/shared/af-to-name.h \
899 src/shared/arphrd-from-name.h \
900 src/shared/arphrd-to-name.h
902 libsystemd_shared_la_CFLAGS = \
907 # ------------------------------------------------------------------------------
908 noinst_LTLIBRARIES += \
911 libsystemd_units_la_SOURCES = \
912 src/shared/install.c \
913 src/shared/install.h \
914 src/shared/install-printf.c \
915 src/shared/install-printf.h \
916 src/shared/path-lookup.c \
917 src/shared/path-lookup.h \
918 src/shared/specifier.c \
919 src/shared/specifier.h
921 # ------------------------------------------------------------------------------
922 noinst_LTLIBRARIES += \
925 libsystemd_label_la_SOURCES = \
926 src/shared/socket-label.c \
929 src/shared/selinux-util.c \
930 src/shared/selinux-util.h \
931 src/shared/mkdir-label.c \
932 src/shared/ask-password-api.c \
933 src/shared/ask-password-api.h \
934 src/shared/fileio-label.c \
935 src/shared/fileio-label.h \
936 src/shared/dev-setup.c \
937 src/shared/dev-setup.h \
938 src/shared/dropin.c \
939 src/shared/dropin.h \
940 src/shared/generator.h \
941 src/shared/generator.c
943 libsystemd_label_la_CFLAGS = \
947 libsystemd_label_la_LIBADD = \
950 # -----------------------------------------------------------------------------
953 dist_systemunit_DATA += \
954 units/ldconfig.service
956 SYSINIT_TARGET_WANTS += \
960 # ------------------------------------------------------------------------------
963 noinst_LTLIBRARIES += \
964 libsystemd-seccomp.la
966 libsystemd_seccomp_la_SOURCES = \
967 src/shared/seccomp-util.h \
968 src/shared/seccomp-util.c
970 libsystemd_seccomp_la_CFLAGS = \
974 libsystemd_seccomp_la_LIBADD = \
978 # ------------------------------------------------------------------------------
979 noinst_LTLIBRARIES += \
982 libsystemd_logs_la_SOURCES = \
983 src/shared/logs-show.c \
984 src/shared/logs-show.h
986 # ------------------------------------------------------------------------------
987 noinst_LTLIBRARIES += \
988 libsystemd-capability.la
990 libsystemd_capability_la_SOURCES = \
991 src/shared/capability.c \
992 src/shared/capability.h
994 libsystemd_capability_la_CFLAGS = \
998 libsystemd_capability_la_LIBADD = \
1001 # ------------------------------------------------------------------------------
1003 noinst_LTLIBRARIES += \
1006 libsystemd_acl_la_SOURCES = \
1007 src/shared/acl-util.c \
1008 src/shared/acl-util.h
1010 libsystemd_acl_la_CFLAGS = \
1014 libsystemd_acl_la_LIBADD = \
1018 # ------------------------------------------------------------------------------
1019 noinst_LTLIBRARIES += \
1022 libsystemd_core_la_SOURCES = \
1025 src/core/unit-printf.c \
1026 src/core/unit-printf.h \
1029 src/core/manager.c \
1030 src/core/manager.h \
1031 src/core/transaction.c \
1032 src/core/transaction.h \
1033 src/core/load-fragment.c \
1034 src/core/load-fragment.h \
1035 src/core/service.c \
1036 src/core/service.h \
1039 src/core/busname.c \
1040 src/core/busname.h \
1041 src/core/bus-common.c \
1042 src/core/bus-common.h \
1043 src/core/bus-endpoint.c \
1044 src/core/bus-endpoint.h \
1047 src/core/snapshot.c \
1048 src/core/snapshot.h \
1053 src/core/automount.c \
1054 src/core/automount.h \
1065 src/core/load-dropin.c \
1066 src/core/load-dropin.h \
1067 src/core/execute.c \
1068 src/core/execute.h \
1073 src/core/dbus-manager.c \
1074 src/core/dbus-manager.h \
1075 src/core/dbus-unit.c \
1076 src/core/dbus-unit.h \
1077 src/core/dbus-job.c \
1078 src/core/dbus-job.h \
1079 src/core/dbus-service.c \
1080 src/core/dbus-service.h \
1081 src/core/dbus-socket.c \
1082 src/core/dbus-socket.h \
1083 src/core/dbus-busname.c \
1084 src/core/dbus-busname.h \
1085 src/core/dbus-target.c \
1086 src/core/dbus-target.h \
1087 src/core/dbus-snapshot.c \
1088 src/core/dbus-snapshot.h \
1089 src/core/dbus-device.c \
1090 src/core/dbus-device.h \
1091 src/core/dbus-mount.c \
1092 src/core/dbus-mount.h \
1093 src/core/dbus-automount.c \
1094 src/core/dbus-automount.h \
1095 src/core/dbus-swap.c \
1096 src/core/dbus-swap.h \
1097 src/core/dbus-timer.c \
1098 src/core/dbus-timer.h \
1099 src/core/dbus-path.c \
1100 src/core/dbus-path.h \
1101 src/core/dbus-slice.c \
1102 src/core/dbus-slice.h \
1103 src/core/dbus-scope.c \
1104 src/core/dbus-scope.h \
1105 src/core/dbus-execute.c \
1106 src/core/dbus-execute.h \
1107 src/core/dbus-kill.c \
1108 src/core/dbus-kill.h \
1109 src/core/dbus-cgroup.c \
1110 src/core/dbus-cgroup.h \
1113 src/core/selinux-access.c \
1114 src/core/selinux-access.h \
1115 src/core/selinux-setup.c \
1116 src/core/selinux-setup.h \
1117 src/core/smack-setup.c \
1118 src/core/smack-setup.h \
1119 src/core/ima-setup.c \
1120 src/core/ima-setup.h \
1121 src/core/locale-setup.h \
1122 src/core/locale-setup.c \
1123 src/core/hostname-setup.c \
1124 src/core/hostname-setup.h \
1125 src/core/machine-id-setup.c \
1126 src/core/machine-id-setup.h \
1127 src/core/mount-setup.c \
1128 src/core/mount-setup.h \
1129 src/core/loopback-setup.h \
1130 src/core/loopback-setup.c \
1131 src/core/condition.c \
1132 src/core/condition.h \
1133 src/core/namespace.c \
1134 src/core/namespace.h \
1136 src/core/sysfs-show.h \
1137 src/core/killall.h \
1138 src/core/killall.c \
1139 src/core/audit-fd.c \
1140 src/core/audit-fd.h \
1141 src/core/show-status.c \
1142 src/core/show-status.h \
1143 src/core/failure-action.c \
1144 src/core/failure-action.h
1147 libsystemd_core_la_SOURCES += \
1148 src/core/kmod-setup.c \
1149 src/core/kmod-setup.h
1152 nodist_libsystemd_core_la_SOURCES = \
1153 src/core/load-fragment-gperf.c \
1154 src/core/load-fragment-gperf-nulstr.c
1156 libsystemd_core_la_CFLAGS = \
1162 $(APPARMOR_CFLAGS) \
1166 libsystemd_core_la_LIBADD = \
1167 libsystemd-capability.la \
1168 libsystemd-units.la \
1169 libsystemd-label.la \
1170 libudev-internal.la \
1171 libsystemd-shared.la \
1172 libsystemd-internal.la \
1181 libsystemd_core_la_LIBADD += \
1182 libsystemd-seccomp.la
1185 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1186 $(AM_V_at)$(MKDIR_P) $(dir $@)
1187 $(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 ";" }' < $< > $@
1190 src/core/load-fragment-gperf.gperf.m4
1193 src/core/load-fragment-gperf.gperf \
1194 src/core/load-fragment-gperf.c \
1195 src/core/load-fragment-gperf-nulstr.c \
1196 src/shared/errno-list.txt \
1197 src/shared/errno-from-name.gperf \
1198 src/shared/af-list.txt \
1199 src/shared/af-from-name.gperf \
1200 src/shared/arphrd-list.txt \
1201 src/shared/arphrd-from-name.gperf \
1202 src/shared/dns_type-list.txt \
1203 src/shared/dns_type-from-name.gperf
1206 src/shared/errno-from-name.h \
1207 src/shared/errno-to-name.h \
1208 src/shared/af-from-name.h \
1209 src/shared/af-to-name.h \
1210 src/shared/arphrd-from-name.h \
1211 src/shared/arphrd-to-name.h \
1212 src/resolve/dns_type-from-name.h \
1213 src/resolve/dns_type-to-name.h
1215 %-from-name.gperf: %-list.txt
1216 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1218 %-from-name.h: %-from-name.gperf
1219 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1222 src/shared/errno-list.txt:
1223 $(AM_V_at)$(MKDIR_P) $(dir $@)
1224 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1226 src/shared/errno-to-name.h: src/shared/errno-list.txt
1227 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1230 src/shared/af-list.txt:
1231 $(AM_V_at)$(MKDIR_P) $(dir $@)
1232 $(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; }' >$@
1234 src/shared/af-to-name.h: src/shared/af-list.txt
1235 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1237 src/shared/arphrd-list.txt:
1238 $(AM_V_at)$(MKDIR_P) $(dir $@)
1239 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1241 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1242 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1244 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1245 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1248 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1249 $(AM_V_at)$(MKDIR_P) $(dir $@)
1250 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1252 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1253 $(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" }' <$< >$@
1255 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1256 $(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 }' <$< >$@
1258 # ------------------------------------------------------------------------------
1267 libsystemd-core.la \
1270 dist_pkgsysconf_DATA += \
1271 src/core/system.conf \
1274 dist_dbuspolicy_DATA += \
1275 src/core/org.freedesktop.systemd1.conf
1277 dist_dbussystemservice_DATA += \
1278 src/core/org.freedesktop.systemd1.service
1280 polkitpolicy_in_in_files += \
1281 src/core/org.freedesktop.systemd1.policy.in.in
1283 pkgconfigdata_DATA = \
1286 nodist_rpmmacros_DATA = \
1287 src/core/macros.systemd
1290 src/core/systemd.pc.in \
1291 src/core/macros.systemd.in
1294 src/core/macros.systemd \
1295 src/core/org.freedesktop.systemd1.policy.in
1297 # ------------------------------------------------------------------------------
1339 test-strip-tab-ansi \
1357 test-condition-util \
1366 test/daughter.service \
1371 test/grandchild.service \
1373 test/hello-after-sleep.target \
1374 test/hello.service \
1376 test/parent-deep.slice \
1379 test/sched_idle_bad.service \
1380 test/sched_idle_ok.service \
1381 test/sched_rr_bad.service \
1382 test/sched_rr_change.service \
1383 test/sched_rr_ok.service \
1384 test/shutdown.target \
1385 test/sleep.service \
1386 test/sockets.target \
1388 test/sysinit.target \
1389 test/testsuite.target \
1390 test/timers.target \
1391 test/unstoppable.service \
1392 test/bus-policy/hello.conf \
1393 test/bus-policy/methods.conf \
1394 test/bus-policy/ownerships.conf \
1395 test/bus-policy/signals.conf
1399 src/test/test-helper.h
1401 test_device_nodes_SOURCES = \
1402 src/test/test-device-nodes.c
1404 test_device_nodes_LDADD = \
1405 libsystemd-shared.la
1407 test_engine_SOURCES = \
1408 src/test/test-engine.c
1410 test_engine_CFLAGS = \
1414 test_engine_LDADD = \
1415 libsystemd-core.la \
1418 test_job_type_SOURCES = \
1419 src/test/test-job-type.c
1421 test_job_type_CFLAGS = \
1425 test_job_type_LDADD = \
1426 libsystemd-core.la \
1439 test_loopback_SOURCES = \
1440 src/test/test-loopback.c
1442 test_loopback_LDADD = \
1445 test_hostname_SOURCES = \
1446 src/test/test-hostname.c
1448 test_hostname_LDADD = \
1455 test_boot_timestamp_SOURCES = \
1456 src/test/test-boot-timestamps.c
1458 test_boot_timestamp_LDADD = \
1459 libsystemd-shared.la
1462 test_unit_name_SOURCES = \
1463 src/test/test-unit-name.c
1465 test_unit_name_CFLAGS = \
1469 test_unit_name_LDADD = \
1470 libsystemd-core.la \
1473 test_unit_file_SOURCES = \
1474 src/test/test-unit-file.c
1476 test_unit_file_CFLAGS = \
1480 test_unit_file_LDADD = \
1481 libsystemd-core.la \
1484 test_utf8_SOURCES = \
1485 src/test/test-utf8.c
1488 libsystemd-shared.la
1490 test_capability_SOURCES = \
1491 src/test/test-capability.c
1493 test_capability_LDADD = \
1494 libsystemd-shared.la \
1495 libsystemd-capability.la
1497 test_async_SOURCES = \
1498 src/test/test-async.c
1500 test_async_LDADD = \
1501 libsystemd-shared.la
1503 test_condition_util_SOURCES = \
1504 src/test/test-condition-util.c
1506 test_condition_util_LDADD = \
1507 libsystemd-shared.la \
1508 libsystemd-internal.la
1511 test_fdset_SOURCES = \
1512 src/test/test-fdset.c
1514 test_fdset_LDADD = \
1517 test_ratelimit_SOURCES = \
1518 src/test/test-ratelimit.c
1520 test_ratelimit_LDADD = \
1521 libsystemd-shared.la
1523 test_util_SOURCES = \
1524 src/test/test-util.c
1529 test_uid_range_SOURCES = \
1530 src/test/test-uid-range.c
1532 test_uid_range_LDADD = \
1535 test_socket_util_SOURCES = \
1536 src/test/test-socket-util.c
1538 test_socket_util_LDADD = \
1541 test_ring_SOURCES = \
1542 src/test/test-ring.c
1547 test_barrier_SOURCES = \
1548 src/test/test-barrier.c
1550 test_barrier_LDADD = \
1553 test_pty_SOURCES = \
1559 test_tmpfiles_SOURCES = \
1560 src/test/test-tmpfiles.c
1562 test_tmpfiles_LDADD = \
1563 libsystemd-shared.la
1565 test_namespace_SOURCES = \
1566 src/test/test-namespace.c
1568 test_namespace_LDADD = \
1571 test_hashmap_SOURCES = \
1572 src/test/test-hashmap.c
1574 test_hashmap_LDADD = \
1577 test_set_SOURCES = \
1583 test_xml_SOURCES = \
1587 libsystemd-shared.la
1589 test_list_SOURCES = \
1590 src/test/test-list.c
1595 test_tables_SOURCES = \
1596 src/test/test-tables.c \
1597 src/shared/test-tables.h \
1598 src/bus-proxyd/bus-policy.c \
1599 src/bus-proxyd/bus-policy.h \
1600 src/journal/journald-server.c \
1601 src/journal/journald-server.h
1603 test_tables_CPPFLAGS = \
1605 -I$(top_srcdir)/src/bus-proxyd
1607 test_tables_CFLAGS = \
1611 test_tables_LDADD = \
1612 libsystemd-logs.la \
1613 libsystemd-journal-internal.la \
1614 libsystemd-journal-core.la \
1615 libsystemd-core.la \
1619 test_prioq_SOURCES = \
1620 src/test/test-prioq.c
1622 test_prioq_LDADD = \
1625 test_fileio_SOURCES = \
1626 src/test/test-fileio.c
1628 test_fileio_LDADD = \
1631 test_time_SOURCES = \
1632 src/test/test-time.c
1637 test_architecture_SOURCES = \
1638 src/test/test-architecture.c
1640 test_architecture_LDADD = \
1641 libsystemd-shared.la
1643 test_log_SOURCES = \
1649 test_ipcrm_SOURCES = \
1650 src/test/test-ipcrm.c
1652 test_ipcrm_LDADD = \
1653 libsystemd-shared.la \
1656 test_rtnl_manual_SOURCES = \
1657 src/test/test-rtnl-manual.c
1659 test_rtnl_manual_CFLAGS = \
1663 test_rtnl_manual_LDADD = \
1664 libsystemd-internal.la \
1665 libsystemd-shared.la \
1668 test_ellipsize_SOURCES = \
1669 src/test/test-ellipsize.c
1671 test_ellipsize_LDADD = \
1674 test_date_SOURCES = \
1675 src/test/test-date.c
1680 test_sleep_SOURCES = \
1681 src/test/test-sleep.c
1683 test_sleep_LDADD = \
1686 test_replace_var_SOURCES = \
1687 src/test/test-replace-var.c
1689 test_replace_var_LDADD = \
1690 libsystemd-shared.la
1692 test_calendarspec_SOURCES = \
1693 src/test/test-calendarspec.c
1695 test_calendarspec_LDADD = \
1696 libsystemd-shared.la
1698 test_strip_tab_ansi_SOURCES = \
1699 src/test/test-strip-tab-ansi.c
1701 test_strip_tab_ansi_LDADD = \
1702 libsystemd-shared.la
1704 test_daemon_SOURCES = \
1705 src/test/test-daemon.c
1707 test_daemon_LDADD = \
1708 libsystemd-internal.la \
1709 libsystemd-shared.la
1711 test_cgroup_SOURCES = \
1712 src/test/test-cgroup.c
1714 test_cgroup_LDADD = \
1715 libsystemd-label.la \
1716 libsystemd-shared.la \
1717 libsystemd-internal.la
1719 test_cgroup_mask_SOURCES = \
1720 src/test/test-cgroup-mask.c
1722 test_cgroup_mask_CPPFLAGS = \
1724 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1726 test_cgroup_mask_CFLAGS = \
1730 test_cgroup_mask_LDADD = \
1731 libsystemd-core.la \
1734 test_cgroup_util_SOURCES = \
1735 src/test/test-cgroup-util.c
1737 test_cgroup_util_LDADD = \
1738 libsystemd-label.la \
1739 libsystemd-internal.la \
1740 libsystemd-shared.la
1742 test_env_replace_SOURCES = \
1743 src/test/test-env-replace.c
1745 test_env_replace_LDADD = \
1746 libsystemd-shared.la
1748 test_strbuf_SOURCES = \
1749 src/test/test-strbuf.c
1751 test_strbuf_LDADD = \
1752 libsystemd-shared.la
1754 test_strv_SOURCES = \
1755 src/test/test-strv.c
1758 libsystemd-units.la \
1759 libsystemd-internal.la \
1760 libsystemd-shared.la
1762 test_path_util_SOURCES = \
1763 src/test/test-path-util.c
1765 test_path_util_LDADD = \
1766 libsystemd-shared.la
1768 test_strxcpyx_SOURCES = \
1769 src/test/test-strxcpyx.c
1771 test_strxcpyx_LDADD = \
1772 libsystemd-shared.la
1774 test_install_SOURCES = \
1775 src/test/test-install.c
1777 test_install_LDADD = \
1778 libsystemd-units.la \
1779 libsystemd-label.la \
1780 libsystemd-shared.la \
1781 libsystemd-internal.la
1783 test_watchdog_SOURCES = \
1784 src/test/test-watchdog.c
1786 test_watchdog_LDADD = \
1787 libsystemd-shared.la
1789 test_sched_prio_SOURCES = \
1790 src/test/test-sched-prio.c
1792 test_sched_prio_CPPFLAGS = \
1794 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1796 test_sched_prio_CFLAGS = \
1800 test_sched_prio_LDADD = \
1801 libsystemd-core.la \
1804 test_conf_files_SOURCES = \
1805 src/test/test-conf-files.c
1807 test_conf_files_LDADD = \
1808 libsystemd-shared.la
1810 test_bus_policy_SOURCES = \
1811 src/bus-proxyd/test-bus-policy.c \
1812 src/bus-proxyd/bus-policy.c \
1813 src/bus-proxyd/bus-policy.h
1815 test_bus_policy_LDADD = \
1816 libsystemd-capability.la \
1817 libsystemd-internal.la \
1818 libsystemd-shared.la
1820 # ------------------------------------------------------------------------------
1821 ## .PHONY so it always rebuilds it
1822 .PHONY: coverage lcov-run lcov-report coverage-sync
1824 # run lcov from scratch, always
1829 coverage_dir = coverage
1830 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1833 # reset run coverage tests
1835 @rm -rf $(coverage_dir)
1836 lcov $(coverage_opts) --zerocounters
1839 # generate report based on current coverage data
1841 $(MKDIR_P) $(coverage_dir)
1842 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1843 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1844 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1845 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1847 # lcov doesn't work properly with vpath builds, make sure that bad
1848 # output is not uploaded by mistake.
1849 coverage-sync: coverage
1850 test "$(builddir)" = "$(srcdir)"
1851 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1854 lcov-run lcov-report:
1855 echo "Need to reconfigure with --enable-coverage"
1858 # ------------------------------------------------------------------------------
1859 systemd_analyze_SOURCES = \
1860 src/analyze/analyze.c \
1861 src/analyze/analyze-verify.c \
1862 src/analyze/analyze-verify.h
1864 systemd_verify_CFLAGS = \
1868 systemd_analyze_LDADD = \
1869 libsystemd-core.la \
1870 libsystemd-internal.la \
1871 libsystemd-shared.la \
1874 # ------------------------------------------------------------------------------
1875 systemd_initctl_SOURCES = \
1876 src/initctl/initctl.c
1878 systemd_initctl_LDADD = \
1879 libsystemd-internal.la \
1880 libsystemd-shared.la
1882 # ------------------------------------------------------------------------------
1883 systemd_update_utmp_SOURCES = \
1884 src/update-utmp/update-utmp.c
1886 systemd_update_utmp_CFLAGS = \
1890 systemd_update_utmp_LDADD = \
1891 libsystemd-internal.la \
1892 libsystemd-shared.la \
1895 # ------------------------------------------------------------------------------
1896 systemd_update_done_SOURCES = \
1897 src/update-done/update-done.c
1899 systemd_update_done_LDADD = \
1900 libsystemd-internal.la \
1901 libsystemd-label.la \
1902 libsystemd-shared.la
1904 # ------------------------------------------------------------------------------
1905 systemd_shutdownd_SOURCES = \
1906 src/shutdownd/shutdownd.c
1908 systemd_shutdownd_LDADD = \
1909 libsystemd-label.la \
1910 libsystemd-internal.la \
1911 libsystemd-shared.la
1914 src/systemd/sd-shutdown.h
1916 # ------------------------------------------------------------------------------
1917 systemd_shutdown_SOURCES = \
1920 src/core/shutdown.c \
1921 src/core/mount-setup.c \
1922 src/core/mount-setup.h \
1923 src/core/killall.h \
1926 systemd_shutdown_LDADD = \
1927 libsystemd-label.la \
1928 libudev-internal.la \
1929 libsystemd-shared.la
1931 # ------------------------------------------------------------------------------
1933 systemd_modules_load_SOURCES = \
1934 src/modules-load/modules-load.c
1936 systemd_modules_load_CFLAGS = \
1940 systemd_modules_load_LDADD = \
1941 libsystemd-shared.la \
1944 rootlibexec_PROGRAMS += \
1945 systemd-modules-load
1947 nodist_systemunit_DATA += \
1948 units/systemd-modules-load.service
1950 SYSINIT_TARGET_WANTS += \
1951 systemd-modules-load.service
1954 nodist_systemunit_DATA += \
1955 units/kmod-static-nodes.service
1957 SYSINIT_TARGET_WANTS += \
1958 kmod-static-nodes.service
1963 units/systemd-modules-load.service.in \
1964 units/kmod-static-nodes.service.in
1966 # ------------------------------------------------------------------------------
1968 systemd_tmpfiles_SOURCES = \
1969 src/tmpfiles/tmpfiles.c
1971 systemd_tmpfiles_LDADD = \
1972 libsystemd-units.la \
1973 libsystemd-label.la \
1974 libsystemd-capability.la \
1975 libsystemd-internal.la \
1976 libsystemd-shared.la
1978 rootbin_PROGRAMS += \
1981 dist_systemunit_DATA += \
1982 units/systemd-tmpfiles-clean.timer
1984 nodist_systemunit_DATA += \
1985 units/systemd-tmpfiles-setup-dev.service \
1986 units/systemd-tmpfiles-setup.service \
1987 units/systemd-tmpfiles-clean.service
1989 nodist_tmpfiles_DATA = \
1992 dist_tmpfiles_DATA = \
1993 tmpfiles.d/systemd.conf \
1994 tmpfiles.d/systemd-nologin.conf \
1995 tmpfiles.d/systemd-remote.conf \
1996 tmpfiles.d/tmp.conf \
1997 tmpfiles.d/x11.conf \
2001 dist_tmpfiles_DATA += \
2002 tmpfiles.d/legacy.conf
2005 SYSINIT_TARGET_WANTS += \
2006 systemd-tmpfiles-setup-dev.service \
2007 systemd-tmpfiles-setup.service
2009 dist_zshcompletion_DATA += \
2010 shell-completion/zsh/_systemd-tmpfiles
2012 TIMERS_TARGET_WANTS += \
2013 systemd-tmpfiles-clean.timer
2017 $(sysconfdir)/tmpfiles.d
2021 tmpfiles.d/etc.conf.m4 \
2022 units/systemd-tmpfiles-setup-dev.service.in \
2023 units/systemd-tmpfiles-setup.service.in \
2024 units/systemd-tmpfiles-clean.service.in
2029 # ------------------------------------------------------------------------------
2031 systemd_sysusers_SOURCES = \
2032 src/sysusers/sysusers.c
2034 systemd_sysusers_LDADD = \
2035 libsystemd-units.la \
2036 libsystemd-label.la \
2037 libsystemd-capability.la \
2038 libsystemd-internal.la \
2039 libsystemd-shared.la
2041 rootbin_PROGRAMS += \
2044 nodist_systemunit_DATA += \
2045 units/systemd-sysusers.service
2047 SYSINIT_TARGET_WANTS += \
2048 systemd-sysusers.service
2050 dist_sysusers_DATA = \
2051 sysusers.d/systemd.conf \
2052 sysusers.d/systemd-remote.conf
2054 nodist_sysusers_DATA = \
2055 sysusers.d/basic.conf
2058 units/systemd-sysusers.service.in \
2059 sysusers.d/basic.conf.in
2062 sysusers.d/basic.conf
2068 # ------------------------------------------------------------------------------
2069 dist_factory_etc_DATA = \
2070 factory/etc/nsswitch.conf
2073 dist_factory_pam_DATA = \
2074 factory/etc/pam.d/system-auth \
2075 factory/etc/pam.d/other
2078 # ------------------------------------------------------------------------------
2080 systemd_firstboot_SOURCES = \
2081 src/firstboot/firstboot.c
2083 systemd_firstboot_LDADD = \
2084 libsystemd-units.la \
2085 libsystemd-label.la \
2086 libsystemd-capability.la \
2087 libsystemd-internal.la \
2088 libsystemd-shared.la \
2091 rootbin_PROGRAMS += \
2094 nodist_systemunit_DATA += \
2095 units/systemd-firstboot.service
2098 units/systemd-firstboot.service.in
2100 SYSINIT_TARGET_WANTS += \
2101 systemd-firstboot.service
2104 # ------------------------------------------------------------------------------
2105 systemd_machine_id_setup_SOURCES = \
2106 src/machine-id-setup/machine-id-setup-main.c \
2107 src/core/machine-id-setup.c \
2108 src/core/machine-id-setup.h
2110 systemd_machine_id_setup_LDADD = \
2111 libsystemd-label.la \
2112 libsystemd-internal.la \
2113 libsystemd-shared.la
2115 # ------------------------------------------------------------------------------
2116 systemd_sysctl_SOURCES = \
2119 systemd_sysctl_LDADD = \
2120 libsystemd-shared.la
2122 # ------------------------------------------------------------------------------
2123 systemd_sleep_SOURCES = \
2126 systemd_sleep_LDADD = \
2127 libsystemd-shared.la
2129 # ------------------------------------------------------------------------------
2130 systemd_fsck_SOURCES = \
2133 systemd_fsck_LDADD = \
2134 libsystemd-internal.la \
2135 libudev-internal.la \
2136 libsystemd-shared.la
2138 # ------------------------------------------------------------------------------
2139 systemd_ac_power_SOURCES = \
2140 src/ac-power/ac-power.c
2142 systemd_ac_power_LDADD = \
2143 libudev-internal.la \
2144 libsystemd-shared.la
2146 # ------------------------------------------------------------------------------
2147 systemd_detect_virt_SOURCES = \
2148 src/detect-virt/detect-virt.c
2150 systemd_detect_virt_LDADD = \
2151 libsystemd-shared.la
2153 INSTALL_EXEC_HOOKS += \
2154 systemd-detect-virt-install-hook
2156 # ------------------------------------------------------------------------------
2157 systemd_delta_SOURCES = \
2160 systemd_delta_LDADD = \
2161 libsystemd-shared.la
2163 # ------------------------------------------------------------------------------
2164 systemd_getty_generator_SOURCES = \
2165 src/getty-generator/getty-generator.c
2167 systemd_getty_generator_LDADD = \
2168 libsystemd-label.la \
2169 libsystemd-shared.la
2171 # ------------------------------------------------------------------------------
2172 systemd_debug_generator_SOURCES = \
2173 src/debug-generator/debug-generator.c
2175 systemd_debug_generator_LDADD = \
2176 libsystemd-label.la \
2177 libsystemd-shared.la
2179 # ------------------------------------------------------------------------------
2180 systemd_fstab_generator_SOURCES = \
2181 src/fstab-generator/fstab-generator.c \
2182 src/core/mount-setup.c
2184 systemd_fstab_generator_LDADD = \
2185 libsystemd-label.la \
2186 libsystemd-shared.la
2188 # ------------------------------------------------------------------------------
2189 systemd_system_update_generator_SOURCES = \
2190 src/system-update-generator/system-update-generator.c
2192 systemd_system_update_generator_LDADD = \
2193 libsystemd-label.la \
2194 libsystemd-shared.la
2196 # ------------------------------------------------------------------------------
2198 systemgenerator_PROGRAMS += \
2199 systemd-hibernate-resume-generator
2201 rootlibexec_PROGRAMS += \
2202 systemd-hibernate-resume
2204 systemd_hibernate_resume_SOURCES = \
2205 src/hibernate-resume/hibernate-resume.c
2207 systemd_hibernate_resume_LDADD = \
2208 libsystemd-internal.la \
2209 libsystemd-shared.la
2211 systemd_hibernate_resume_generator_SOURCES = \
2212 src/hibernate-resume/hibernate-resume-generator.c
2214 systemd_hibernate_resume_generator_LDADD = \
2215 libsystemd-label.la \
2216 libsystemd-shared.la
2219 units/systemd-hibernate.service.in \
2220 units/systemd-hibernate-resume@.service.in \
2221 units/systemd-hybrid-sleep.service.in
2223 dist_systemunit_DATA += \
2224 units/hibernate.target \
2225 units/hybrid-sleep.target
2227 nodist_systemunit_DATA += \
2228 units/systemd-hibernate.service \
2229 units/systemd-hibernate-resume@.service \
2230 units/systemd-hybrid-sleep.service
2233 # ------------------------------------------------------------------------------
2235 systemgenerator_PROGRAMS += \
2236 systemd-efi-boot-generator
2238 systemd_efi_boot_generator_SOURCES = \
2239 src/efi-boot-generator/efi-boot-generator.c
2241 systemd_efi_boot_generator_LDADD = \
2242 libsystemd-label.la \
2243 libsystemd-shared.la
2245 # ------------------------------------------------------------------------------
2248 src/boot/boot-loader.h \
2249 src/boot/bootctl.c \
2250 src/boot/boot-loader.c \
2254 libsystemd-shared.la \
2255 libsystemd-internal.la
2260 dist_bashcompletion_DATA += \
2261 shell-completion/bash/bootctl
2263 dist_zshcompletion_DATA += \
2264 shell-completion/zsh/_bootctl
2268 # ------------------------------------------------------------------------------
2270 systemgenerator_PROGRAMS += \
2271 systemd-gpt-auto-generator
2273 systemd_gpt_auto_generator_SOURCES = \
2274 src/gpt-auto-generator/gpt-auto-generator.c \
2275 src/shared/blkid-util.h
2277 systemd_gpt_auto_generator_LDADD = \
2278 libsystemd-label.la \
2279 libsystemd-internal.la \
2280 libudev-internal.la \
2281 libsystemd-shared.la \
2284 systemd_gpt_auto_generator_CFLAGS = \
2289 # ------------------------------------------------------------------------------
2291 systemgenerator_PROGRAMS += \
2292 systemd-dbus1-generator
2294 systemd_dbus1_generator_SOURCES = \
2295 src/dbus1-generator/dbus1-generator.c
2297 systemd_dbus1_generator_LDADD = \
2298 libsystemd-label.la \
2299 libsystemd-shared.la \
2300 libsystemd-internal.la
2302 dbus1-generator-install-hook:
2303 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2304 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2305 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2307 dbus1-generator-uninstall-hook:
2308 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2310 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2311 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2314 # ------------------------------------------------------------------------------
2315 systemd_sysv_generator_SOURCES = \
2316 src/sysv-generator/sysv-generator.c
2318 systemd_sysv_generator_LDADD = \
2319 libsystemd-core.la \
2320 libsystemd-label.la \
2321 libsystemd-shared.la
2323 # ------------------------------------------------------------------------------
2324 systemd_rc_local_generator_SOURCES = \
2325 src/rc-local-generator/rc-local-generator.c
2327 systemd_rc_local_generator_LDADD = \
2328 libsystemd-label.la \
2329 libsystemd-shared.la
2331 # ------------------------------------------------------------------------------
2332 systemd_remount_fs_SOURCES = \
2333 src/remount-fs/remount-fs.c \
2334 src/core/mount-setup.c \
2335 src/core/mount-setup.h
2337 systemd_remount_fs_LDADD = \
2338 libsystemd-label.la \
2339 libsystemd-shared.la
2341 # ------------------------------------------------------------------------------
2342 systemd_cgroups_agent_SOURCES = \
2343 src/cgroups-agent/cgroups-agent.c
2345 systemd_cgroups_agent_LDADD = \
2346 libsystemd-internal.la \
2347 libsystemd-shared.la
2349 # ------------------------------------------------------------------------------
2350 systemd_escape_SOURCES = \
2353 systemd_escape_LDADD = \
2354 libsystemd-shared.la
2356 # -----------------------------------------------------------------------------
2357 systemctl_SOURCES = \
2358 src/systemctl/systemctl.c
2361 libsystemd-units.la \
2362 libsystemd-label.la \
2363 libsystemd-internal.la \
2364 libsystemd-logs.la \
2365 libsystemd-journal-internal.la \
2366 libsystemd-shared.la
2368 # ------------------------------------------------------------------------------
2369 systemd_notify_SOURCES = \
2372 systemd_notify_LDADD = \
2373 libsystemd-internal.la \
2374 libsystemd-shared.la
2376 # ------------------------------------------------------------------------------
2377 systemd_path_SOURCES = \
2380 systemd_path_LDADD = \
2381 libsystemd-internal.la \
2382 libsystemd-shared.la
2384 # ------------------------------------------------------------------------------
2385 systemd_ask_password_SOURCES = \
2386 src/ask-password/ask-password.c
2388 systemd_ask_password_LDADD = \
2389 libsystemd-label.la \
2390 libsystemd-shared.la
2392 # ------------------------------------------------------------------------------
2393 systemd_reply_password_SOURCES = \
2394 src/reply-password/reply-password.c
2396 systemd_reply_password_LDADD = \
2397 libsystemd-shared.la
2399 # ------------------------------------------------------------------------------
2400 systemd_cgls_SOURCES = \
2403 systemd_cgls_LDADD = \
2404 libsystemd-internal.la \
2405 libsystemd-shared.la
2407 # ------------------------------------------------------------------------------
2408 systemd_cgtop_SOURCES = \
2411 systemd_cgtop_LDADD = \
2412 libsystemd-shared.la
2414 # ------------------------------------------------------------------------------
2415 systemd_nspawn_SOURCES = \
2416 src/nspawn/nspawn.c \
2417 src/core/mount-setup.c \
2418 src/core/mount-setup.h \
2419 src/core/loopback-setup.c \
2420 src/core/loopback-setup.h
2422 systemd_nspawn_CFLAGS = \
2427 systemd_nspawn_LDADD = \
2428 libsystemd-label.la \
2429 libsystemd-capability.la \
2430 libsystemd-internal.la \
2431 libudev-internal.la \
2432 libsystemd-shared.la \
2436 systemd_nspawn_LDADD += \
2437 libsystemd-seccomp.la \
2441 # ------------------------------------------------------------------------------
2442 systemd_run_SOURCES = \
2445 systemd_run_LDADD = \
2446 libsystemd-label.la \
2447 libsystemd-capability.la \
2448 libsystemd-internal.la \
2449 libsystemd-shared.la
2451 # ------------------------------------------------------------------------------
2452 systemd_bus_proxyd_SOURCES = \
2453 src/bus-proxyd/bus-proxyd.c \
2454 src/bus-proxyd/bus-policy.c \
2455 src/bus-proxyd/bus-policy.h
2457 systemd_bus_proxyd_LDADD = \
2458 libsystemd-capability.la \
2459 libsystemd-internal.la \
2460 libsystemd-shared.la
2462 bus-proxyd-install-hook:
2463 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2464 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2465 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2467 bus-proxyd-uninstall-hook:
2468 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2470 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2471 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2474 nodist_systemunit_DATA += \
2475 units/systemd-bus-proxyd@.service
2477 dist_systemunit_DATA += \
2478 units/systemd-bus-proxyd.socket
2480 dist_userunit_DATA += \
2481 units/user/systemd-bus-proxyd.socket \
2482 units/user/systemd-bus-proxyd@.service
2486 units/systemd-bus-proxyd@.service.in
2488 # ------------------------------------------------------------------------------
2489 systemd_tty_ask_password_agent_SOURCES = \
2490 src/tty-ask-password-agent/tty-ask-password-agent.c
2492 systemd_tty_ask_password_agent_LDADD = \
2493 libsystemd-label.la \
2494 libsystemd-shared.la
2496 # ------------------------------------------------------------------------------
2497 libsystemd_internal_la_SOURCES = \
2498 src/systemd/sd-bus.h \
2499 src/systemd/sd-bus-protocol.h \
2500 src/systemd/sd-bus-vtable.h \
2501 src/systemd/sd-utf8.h \
2502 src/systemd/sd-event.h \
2503 src/systemd/sd-rtnl.h \
2504 src/systemd/sd-resolve.h \
2505 src/systemd/sd-login.h \
2506 src/systemd/sd-id128.h \
2507 src/systemd/sd-daemon.h \
2508 src/systemd/sd-path.h \
2509 src/systemd/sd-network.h \
2510 src/libsystemd/sd-bus/sd-bus.c \
2511 src/libsystemd/sd-bus/bus-control.c \
2512 src/libsystemd/sd-bus/bus-control.h \
2513 src/libsystemd/sd-bus/bus-error.c \
2514 src/libsystemd/sd-bus/bus-error.h \
2515 src/libsystemd/sd-bus/bus-internal.c \
2516 src/libsystemd/sd-bus/bus-internal.h \
2517 src/libsystemd/sd-bus/bus-socket.c \
2518 src/libsystemd/sd-bus/bus-socket.h \
2519 src/libsystemd/sd-bus/bus-kernel.c \
2520 src/libsystemd/sd-bus/bus-kernel.h \
2521 src/libsystemd/sd-bus/bus-container.c \
2522 src/libsystemd/sd-bus/bus-container.h \
2523 src/libsystemd/sd-bus/bus-message.c \
2524 src/libsystemd/sd-bus/bus-message.h \
2525 src/libsystemd/sd-bus/bus-creds.c \
2526 src/libsystemd/sd-bus/bus-creds.h \
2527 src/libsystemd/sd-bus/bus-signature.c \
2528 src/libsystemd/sd-bus/bus-signature.h \
2529 src/libsystemd/sd-bus/bus-type.c \
2530 src/libsystemd/sd-bus/bus-type.h \
2531 src/libsystemd/sd-bus/bus-match.c \
2532 src/libsystemd/sd-bus/bus-match.h \
2533 src/libsystemd/sd-bus/bus-bloom.c \
2534 src/libsystemd/sd-bus/bus-bloom.h \
2535 src/libsystemd/sd-bus/bus-introspect.c \
2536 src/libsystemd/sd-bus/bus-introspect.h \
2537 src/libsystemd/sd-bus/bus-objects.c \
2538 src/libsystemd/sd-bus/bus-objects.h \
2539 src/libsystemd/sd-bus/bus-gvariant.c \
2540 src/libsystemd/sd-bus/bus-gvariant.h \
2541 src/libsystemd/sd-bus/bus-convenience.c \
2542 src/libsystemd/sd-bus/bus-track.c \
2543 src/libsystemd/sd-bus/bus-track.h \
2544 src/libsystemd/sd-bus/bus-util.c \
2545 src/libsystemd/sd-bus/bus-util.h \
2546 src/libsystemd/sd-bus/bus-slot.c \
2547 src/libsystemd/sd-bus/bus-slot.h \
2548 src/libsystemd/sd-bus/bus-protocol.h \
2549 src/libsystemd/sd-bus/kdbus.h \
2550 src/libsystemd/sd-utf8/sd-utf8.c \
2551 src/libsystemd/sd-event/sd-event.c \
2552 src/libsystemd/sd-event/event-util.h \
2553 src/libsystemd/sd-rtnl/sd-rtnl.c \
2554 src/libsystemd/sd-rtnl/rtnl-internal.h \
2555 src/libsystemd/sd-rtnl/rtnl-message.c \
2556 src/libsystemd/sd-rtnl/rtnl-types.h \
2557 src/libsystemd/sd-rtnl/rtnl-types.c \
2558 src/libsystemd/sd-rtnl/rtnl-util.h \
2559 src/libsystemd/sd-rtnl/rtnl-util.c \
2560 src/libsystemd/sd-rtnl/local-addresses.h \
2561 src/libsystemd/sd-rtnl/local-addresses.c \
2562 src/libsystemd/sd-id128/sd-id128.c \
2563 src/libsystemd/sd-daemon/sd-daemon.c \
2564 src/libsystemd/sd-login/sd-login.c \
2565 src/libsystemd/sd-path/sd-path.c \
2566 src/libsystemd/sd-network/sd-network.c \
2567 src/libsystemd/sd-network/network-util.h \
2568 src/libsystemd/sd-network/network-util.c
2570 nodist_libsystemd_internal_la_SOURCES = \
2571 src/libsystemd/libsystemd.sym \
2572 src/libsystemd/sd-bus/bus-error-mapping.c
2574 libsystemd_internal_la_CFLAGS = \
2578 libsystemd_internal_la_LIBADD = \
2581 libsystemd_resolve_la_SOURCES = \
2582 src/libsystemd/sd-resolve/sd-resolve.c \
2583 src/libsystemd/sd-resolve/resolve-util.h
2585 libsystemd_resolve_la_CFLAGS = \
2589 libsystemd_resolve_la_LIBADD = \
2592 noinst_LTLIBRARIES += \
2593 libsystemd-internal.la \
2594 libsystemd-resolve.la
2596 libsystemd_dump_la_SOURCES = \
2597 src/libsystemd/sd-bus/bus-dump.c \
2598 src/libsystemd/sd-bus/bus-dump.h
2600 libsystemd_dump_la_CFLAGS = \
2604 noinst_LTLIBRARIES += \
2608 src/libsystemd/libsystemd.sym.m4 \
2609 src/libsystemd/libsystemd.pc.in \
2610 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2611 src/libsystemd/sd-bus/DIFFERENCES \
2612 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2615 src/libsystemd/libsystemd.sym \
2616 src/libsystemd/sd-bus/bus-error-mapping.c
2619 src/libsystemd/libsystemd.sym
2621 libsystemd_la_SOURCES = \
2622 $(libsystemd_internal_la_SOURCES) \
2623 $(libsystemd_resolve_la_SOURCES) \
2624 $(libsystemd_journal_internal_la_SOURCES)
2626 nodist_libsystemd_la_SOURCES = \
2627 $(nodist_libsystemd_internal_la_SOURCES)
2629 libsystemd_la_CFLAGS = \
2630 $(libsystemd_internal_la_CFLAGS) \
2631 $(libsystemd_resolve_la_CFLAGS) \
2632 $(libsystemd_journal_internal_la_CFLAGS)
2634 libsystemd_la_LDFLAGS = \
2636 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2637 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2639 libsystemd_la_LIBADD = \
2640 libsystemd-shared.la \
2641 $(libsystemd_internal_la_LIBADD) \
2642 $(libsystemd_journal_internal_la_LIBADD) \
2643 $(libsystemd_resolve_la_LIBADD)
2645 libsystemd-install-hook:
2646 libname=libsystemd.so && $(move-to-rootlibdir)
2648 libsystemd-uninstall-hook:
2649 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2651 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2652 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2654 pkgconfiglib_DATA += \
2655 src/libsystemd/libsystemd.pc
2657 pkginclude_HEADERS += \
2658 src/systemd/sd-login.h \
2659 src/systemd/sd-id128.h \
2660 src/systemd/sd-daemon.h
2663 pkginclude_HEADERS += \
2664 src/systemd/sd-bus.h \
2665 src/systemd/sd-bus-protocol.h \
2666 src/systemd/sd-bus-vtable.h \
2667 src/systemd/sd-utf8.h \
2668 src/systemd/sd-event.h \
2669 src/systemd/sd-rtnl.h \
2670 src/systemd/sd-resolve.h \
2671 src/systemd/sd-path.h
2674 lib_LTLIBRARIES += \
2679 test-bus-signature \
2685 test-bus-kernel-bloom \
2686 test-bus-kernel-benchmark \
2687 test-bus-zero-copy \
2688 test-bus-introspect \
2700 test_bus_marshal_SOURCES = \
2701 src/libsystemd/sd-bus/test-bus-marshal.c
2703 test_bus_marshal_LDADD = \
2704 libsystemd-internal.la \
2705 libsystemd-shared.la \
2706 libsystemd-dump.la \
2707 libsystemd-capability.la \
2712 test_bus_marshal_CFLAGS = \
2718 test_bus_signature_SOURCES = \
2719 src/libsystemd/sd-bus/test-bus-signature.c
2721 test_bus_signature_LDADD = \
2722 libsystemd-shared.la \
2723 libsystemd-internal.la
2725 test_bus_chat_SOURCES = \
2726 src/libsystemd/sd-bus/test-bus-chat.c
2728 test_bus_chat_CFLAGS = \
2732 test_bus_chat_LDADD = \
2733 libsystemd-internal.la \
2734 libsystemd-shared.la
2736 test_bus_cleanup_SOURCES = \
2737 src/libsystemd/sd-bus/test-bus-cleanup.c
2739 test_bus_cleanup_CFLAGS = \
2743 test_bus_cleanup_LDADD = \
2744 libsystemd-internal.la \
2745 libsystemd-shared.la
2747 test_bus_server_SOURCES = \
2748 src/libsystemd/sd-bus/test-bus-server.c
2750 test_bus_server_CFLAGS = \
2754 test_bus_server_LDADD = \
2755 libsystemd-internal.la \
2756 libsystemd-shared.la
2758 test_bus_objects_SOURCES = \
2759 src/libsystemd/sd-bus/test-bus-objects.c
2761 test_bus_objects_CFLAGS = \
2766 test_bus_objects_LDADD = \
2767 libsystemd-internal.la \
2768 libsystemd-shared.la \
2769 libsystemd-dump.la \
2770 libsystemd-capability.la \
2773 test_bus_error_SOURCES = \
2774 src/libsystemd/sd-bus/test-bus-error.c
2776 test_bus_error_LDADD = \
2777 libsystemd-internal.la \
2778 libsystemd-shared.la
2780 test_bus_gvariant_SOURCES = \
2781 src/libsystemd/sd-bus/test-bus-gvariant.c
2783 test_bus_gvariant_LDADD = \
2784 libsystemd-internal.la \
2785 libsystemd-shared.la \
2786 libsystemd-dump.la \
2787 libsystemd-capability.la \
2791 test_bus_gvariant_CFLAGS = \
2796 test_bus_creds_SOURCES = \
2797 src/libsystemd/sd-bus/test-bus-creds.c
2799 test_bus_creds_LDADD = \
2800 libsystemd-internal.la \
2801 libsystemd-shared.la \
2802 libsystemd-dump.la \
2803 libsystemd-capability.la
2805 test_bus_match_SOURCES = \
2806 src/libsystemd/sd-bus/test-bus-match.c
2808 test_bus_match_LDADD = \
2809 libsystemd-internal.la \
2810 libsystemd-shared.la
2812 test_bus_kernel_SOURCES = \
2813 src/libsystemd/sd-bus/test-bus-kernel.c
2815 test_bus_kernel_LDADD = \
2816 libsystemd-internal.la \
2817 libsystemd-shared.la \
2818 libsystemd-dump.la \
2819 libsystemd-capability.la \
2822 test_bus_kernel_CFLAGS = \
2826 test_bus_kernel_bloom_SOURCES = \
2827 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2829 test_bus_kernel_bloom_LDADD = \
2830 libsystemd-internal.la \
2831 libsystemd-shared.la
2833 test_bus_kernel_benchmark_SOURCES = \
2834 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2836 test_bus_kernel_benchmark_LDADD = \
2837 libsystemd-internal.la \
2838 libsystemd-shared.la
2840 test_bus_zero_copy_SOURCES = \
2841 src/libsystemd/sd-bus/test-bus-zero-copy.c
2843 test_bus_zero_copy_LDADD = \
2844 libsystemd-internal.la \
2845 libsystemd-shared.la \
2846 libsystemd-dump.la \
2847 libsystemd-capability.la \
2850 test_bus_zero_copy_CFLAGS = \
2854 test_bus_introspect_SOURCES = \
2855 src/libsystemd/sd-bus/test-bus-introspect.c
2857 test_bus_introspect_LDADD = \
2858 libsystemd-internal.la \
2859 libsystemd-shared.la
2861 test_event_SOURCES = \
2862 src/libsystemd/sd-event/test-event.c
2864 test_event_LDADD = \
2865 libsystemd-internal.la \
2866 libsystemd-shared.la
2868 test_rtnl_SOURCES = \
2869 src/libsystemd/sd-rtnl/test-rtnl.c
2872 libsystemd-internal.la \
2873 libsystemd-shared.la
2875 test_resolve_SOURCES = \
2876 src/libsystemd/sd-resolve/test-resolve.c
2878 test_resolve_LDADD = \
2879 libsystemd-resolve.la \
2880 libsystemd-internal.la \
2881 libsystemd-shared.la
2883 test_resolve_CFLAGS = \
2888 src/libsystemd/sd-bus/busctl.c
2891 libsystemd-internal.la \
2892 libsystemd-shared.la \
2893 libsystemd-dump.la \
2894 libsystemd-capability.la \
2901 # ------------------------------------------------------------------------------
2902 noinst_LTLIBRARIES += \
2903 libsystemd-network.la
2905 libsystemd_network_la_CFLAGS = \
2909 libsystemd_network_la_SOURCES = \
2910 src/systemd/sd-dhcp-client.h \
2911 src/systemd/sd-dhcp-server.h \
2912 src/systemd/sd-dhcp-lease.h \
2913 src/systemd/sd-ipv4ll.h \
2914 src/systemd/sd-icmp6-nd.h \
2915 src/systemd/sd-dhcp6-client.h \
2916 src/systemd/sd-dhcp6-lease.h \
2917 src/libsystemd-network/sd-dhcp-client.c \
2918 src/libsystemd-network/sd-dhcp-server.c \
2919 src/libsystemd-network/dhcp-network.c \
2920 src/libsystemd-network/dhcp-option.c \
2921 src/libsystemd-network/dhcp-packet.c \
2922 src/libsystemd-network/dhcp-internal.h \
2923 src/libsystemd-network/dhcp-server-internal.h \
2924 src/libsystemd-network/dhcp-protocol.h \
2925 src/libsystemd-network/dhcp-lease-internal.h \
2926 src/libsystemd-network/sd-dhcp-lease.c \
2927 src/libsystemd-network/sd-ipv4ll.c \
2928 src/libsystemd-network/ipv4ll-network.c \
2929 src/libsystemd-network/ipv4ll-packet.c \
2930 src/libsystemd-network/ipv4ll-internal.h \
2931 src/libsystemd-network/network-internal.c \
2932 src/libsystemd-network/network-internal.h \
2933 src/libsystemd-network/sd-icmp6-nd.c \
2934 src/libsystemd-network/sd-dhcp6-client.c \
2935 src/libsystemd-network/dhcp6-internal.h \
2936 src/libsystemd-network/dhcp6-protocol.h \
2937 src/libsystemd-network/dhcp6-network.c \
2938 src/libsystemd-network/dhcp6-option.c \
2939 src/libsystemd-network/dhcp6-lease-internal.h \
2940 src/libsystemd-network/sd-dhcp6-lease.c
2942 libsystemd_network_la_LIBADD = \
2943 libudev-internal.la \
2944 libsystemd-label.la \
2945 libsystemd-internal.la \
2946 libsystemd-shared.la \
2949 test_dhcp_option_SOURCES = \
2950 src/libsystemd-network/dhcp-protocol.h \
2951 src/libsystemd-network/dhcp-internal.h \
2952 src/libsystemd-network/test-dhcp-option.c
2954 test_dhcp_option_LDADD = \
2955 libsystemd-network.la \
2956 libsystemd-internal.la \
2957 libsystemd-shared.la
2959 test_dhcp_client_SOURCES = \
2960 src/systemd/sd-dhcp-client.h \
2961 src/libsystemd-network/dhcp-protocol.h \
2962 src/libsystemd-network/dhcp-internal.h \
2963 src/libsystemd-network/test-dhcp-client.c
2965 test_dhcp_client_LDADD = \
2966 libsystemd-network.la \
2967 libsystemd-label.la \
2968 libsystemd-internal.la \
2969 libsystemd-shared.la
2971 test_dhcp_server_SOURCES = \
2972 src/libsystemd-network/test-dhcp-server.c
2974 test_dhcp_server_LDADD = \
2975 libsystemd-network.la \
2976 libsystemd-internal.la \
2977 libsystemd-shared.la
2979 test_ipv4ll_SOURCES = \
2980 src/systemd/sd-ipv4ll.h \
2981 src/libsystemd-network/ipv4ll-internal.h \
2982 src/libsystemd-network/test-ipv4ll.c
2984 test_ipv4ll_LDADD = \
2985 libsystemd-network.la \
2986 libsystemd-label.la \
2987 libsystemd-internal.la \
2988 libsystemd-shared.la
2990 test_icmp6_rs_SOURCES = \
2991 src/systemd/sd-dhcp6-client.h \
2992 src/systemd/sd-icmp6-nd.h \
2993 src/libsystemd-network/dhcp6-internal.h \
2994 src/libsystemd-network/test-icmp6-rs.c
2996 test_icmp6_rs_LDADD = \
2997 libsystemd-network.la \
2998 libsystemd-internal.la \
2999 libsystemd-shared.la
3001 test_dhcp6_client_SOURCES = \
3002 src/systemd/sd-dhcp6-client.h \
3003 src/libsystemd-network/dhcp6-internal.h \
3004 src/libsystemd-network/test-dhcp6-client.c
3006 test_dhcp6_client_LDADD = \
3007 libsystemd-network.la \
3008 libsystemd-internal.la \
3009 libsystemd-shared.la
3019 # ------------------------------------------------------------------------------
3021 noinst_LTLIBRARIES += \
3022 libsystemd-terminal.la
3027 noinst_PROGRAMS += \
3032 dist_pkgdata_DATA += \
3033 src/libsystemd-terminal/unifont-glyph-array.bin
3041 libsystemd_terminal_la_CFLAGS = \
3045 libsystemd_terminal_la_SOURCES = \
3046 src/libsystemd-terminal/grdev.h \
3047 src/libsystemd-terminal/grdev-internal.h \
3048 src/libsystemd-terminal/grdev.c \
3049 src/libsystemd-terminal/grdev-drm.c \
3050 src/libsystemd-terminal/idev.h \
3051 src/libsystemd-terminal/idev-internal.h \
3052 src/libsystemd-terminal/idev.c \
3053 src/libsystemd-terminal/idev-evdev.c \
3054 src/libsystemd-terminal/idev-keyboard.c \
3055 src/libsystemd-terminal/sysview.h \
3056 src/libsystemd-terminal/sysview-internal.h \
3057 src/libsystemd-terminal/sysview.c \
3058 src/libsystemd-terminal/term.h \
3059 src/libsystemd-terminal/term-internal.h \
3060 src/libsystemd-terminal/term-charset.c \
3061 src/libsystemd-terminal/term-page.c \
3062 src/libsystemd-terminal/term-parser.c \
3063 src/libsystemd-terminal/term-screen.c \
3064 src/libsystemd-terminal/term-wcwidth.c \
3065 src/libsystemd-terminal/unifont.h \
3066 src/libsystemd-terminal/unifont-def.h \
3067 src/libsystemd-terminal/unifont.c
3069 libsystemd_terminal_la_LIBADD = \
3070 libudev-internal.la \
3071 libsystemd-internal.la \
3072 libsystemd-shared.la \
3075 systemd_consoled_CFLAGS = \
3079 systemd_consoled_SOURCES = \
3080 src/console/consoled.h \
3081 src/console/consoled.c \
3082 src/console/consoled-display.c \
3083 src/console/consoled-manager.c \
3084 src/console/consoled-session.c \
3085 src/console/consoled-terminal.c \
3086 src/console/consoled-workspace.c
3088 systemd_consoled_LDADD = \
3089 libsystemd-terminal.la \
3090 libsystemd-internal.la \
3091 libsystemd-shared.la \
3094 systemd_evcat_CFLAGS = \
3098 systemd_evcat_SOURCES = \
3099 src/libsystemd-terminal/evcat.c
3101 systemd_evcat_LDADD = \
3102 libsystemd-terminal.la \
3103 libsystemd-internal.la \
3104 libsystemd-shared.la \
3107 systemd_modeset_CFLAGS = \
3111 systemd_modeset_SOURCES = \
3112 src/libsystemd-terminal/modeset.c
3114 systemd_modeset_LDADD = \
3115 libsystemd-terminal.la \
3116 libsystemd-internal.la \
3117 libsystemd-shared.la \
3120 systemd_subterm_SOURCES = \
3121 src/libsystemd-terminal/subterm.c
3123 systemd_subterm_LDADD = \
3124 libsystemd-terminal.la \
3125 libsystemd-internal.la \
3126 libsystemd-shared.la
3128 test_term_page_SOURCES = \
3129 src/libsystemd-terminal/test-term-page.c
3131 test_term_page_LDADD = \
3132 libsystemd-terminal.la \
3133 libsystemd-internal.la \
3134 libsystemd-shared.la
3136 test_term_parser_SOURCES = \
3137 src/libsystemd-terminal/test-term-parser.c
3139 test_term_parser_LDADD = \
3140 libsystemd-terminal.la \
3141 libsystemd-internal.la \
3142 libsystemd-shared.la
3144 test_unifont_SOURCES = \
3145 src/libsystemd-terminal/test-unifont.c
3147 test_unifont_LDADD = \
3148 libsystemd-terminal.la \
3149 libsystemd-internal.la \
3150 libsystemd-shared.la
3152 .PHONY: update-unifont
3153 update-unifont: tools/compile-unifont.py
3154 $(AM_V_GEN)$(PYTHON) $< \
3155 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3156 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3157 @echo "unifont-glyph-array.bin has been regenerated"
3159 # ------------------------------------------------------------------------------
3169 include_HEADERS += \
3170 src/libudev/libudev.h
3172 lib_LTLIBRARIES += \
3175 libudev_la_SOURCES =\
3176 src/libudev/libudev.sym \
3177 src/libudev/libudev-private.h \
3178 src/libudev/libudev.c \
3179 src/libudev/libudev-list.c \
3180 src/libudev/libudev-util.c \
3181 src/libudev/libudev-device.c \
3182 src/libudev/libudev-enumerate.c \
3183 src/libudev/libudev-monitor.c \
3184 src/libudev/libudev-queue.c \
3185 src/libudev/libudev-hwdb-def.h \
3186 src/libudev/libudev-hwdb.c
3188 libudev_la_CFLAGS = \
3192 libudev_la_LDFLAGS = \
3194 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3195 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3197 libudev_la_LIBADD = \
3198 libsystemd-internal.la \
3199 libsystemd-shared.la
3201 pkgconfiglib_DATA += \
3202 src/libudev/libudev.pc
3205 src/libudev/libudev.pc.in
3208 src/libudev/libudev.pc \
3213 $(AM_V_at)$(MKDIR_P) $(dir $@)
3214 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3217 $(AM_V_at)$(MKDIR_P) $(dir $@)
3218 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3220 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3221 libudev-install-hook:
3222 libname=libudev.so && $(move-to-rootlibdir)
3224 libudev-uninstall-hook:
3225 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3227 INSTALL_EXEC_HOOKS += libudev-install-hook
3228 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3230 # ------------------------------------------------------------------------------
3231 noinst_LTLIBRARIES += \
3234 libudev_internal_la_SOURCES =\
3235 $(libudev_la_SOURCES) \
3236 src/libudev/libudev-device-private.c
3238 libudev_internal_la_CFLAGS = \
3240 -fvisibility=default
3242 # ------------------------------------------------------------------------------
3244 $(sysconfdir)/udev/rules.d \
3245 $(sysconfdir)/udev/hwdb.d
3247 dist_network_DATA = \
3248 network/99-default.link \
3249 network/80-container-host0.network \
3250 network/80-container-ve.network
3252 dist_udevrules_DATA += \
3253 rules/42-usb-hid-pm.rules \
3254 rules/50-udev-default.rules \
3255 rules/60-drm.rules \
3256 rules/60-keyboard.rules \
3257 rules/60-persistent-storage-tape.rules \
3258 rules/60-persistent-serial.rules \
3259 rules/60-persistent-input.rules \
3260 rules/60-persistent-alsa.rules \
3261 rules/60-persistent-storage.rules \
3262 rules/64-btrfs.rules \
3263 rules/75-net-description.rules \
3264 rules/75-tty-description.rules \
3265 rules/78-sound-card.rules \
3266 rules/80-net-setup-link.rules \
3267 rules/95-udev-late.rules
3269 nodist_udevrules_DATA += \
3270 rules/99-systemd.rules
3272 dist_udevhwdb_DATA = \
3273 hwdb/20-pci-vendor-model.hwdb \
3274 hwdb/20-pci-classes.hwdb \
3275 hwdb/20-usb-vendor-model.hwdb \
3276 hwdb/20-usb-classes.hwdb \
3277 hwdb/20-sdio-vendor-model.hwdb \
3278 hwdb/20-sdio-classes.hwdb \
3279 hwdb/20-bluetooth-vendor-product.hwdb \
3280 hwdb/20-acpi-vendor.hwdb \
3282 hwdb/20-net-ifname.hwdb \
3283 hwdb/60-keyboard.hwdb
3285 udevconfdir = $(sysconfdir)/udev
3286 dist_udevconf_DATA = \
3289 sharepkgconfigdir = $(datadir)/pkgconfig
3290 sharepkgconfig_DATA = \
3294 rules/99-systemd.rules.in \
3298 rules/99-systemd.rules \
3302 units/systemd-udevd.service.in \
3303 units/systemd-udev-trigger.service.in \
3304 units/systemd-udev-settle.service.in \
3305 units/systemd-udev-hwdb-update.service.in
3308 units/systemd-udevd.service \
3309 units/systemd-udev-trigger.service \
3310 units/systemd-udev-settle.service \
3311 units/systemd-udev-hwdb-update.service
3313 SOCKETS_TARGET_WANTS += \
3314 systemd-udevd-control.socket \
3315 systemd-udevd-kernel.socket
3317 SYSINIT_TARGET_WANTS += \
3318 systemd-udevd.service \
3319 systemd-udev-trigger.service \
3320 systemd-udev-hwdb-update.service
3322 rootbin_PROGRAMS += \
3325 rootlibexec_PROGRAMS += \
3328 noinst_LTLIBRARIES += \
3331 src/udev/keyboard-keys.txt:
3332 $(AM_V_at)$(MKDIR_P) $(dir $@)
3333 $(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/' > $@
3335 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3336 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3338 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3339 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3341 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3342 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3344 libudev_core_la_SOURCES = \
3346 src/udev/udev-event.c \
3347 src/udev/udev-watch.c \
3348 src/udev/udev-node.c \
3349 src/udev/udev-rules.c \
3350 src/udev/udev-ctrl.c \
3351 src/udev/udev-builtin.c \
3352 src/udev/udev-builtin-btrfs.c \
3353 src/udev/udev-builtin-hwdb.c \
3354 src/udev/udev-builtin-input_id.c \
3355 src/udev/udev-builtin-keyboard.c \
3356 src/udev/udev-builtin-net_id.c \
3357 src/udev/udev-builtin-net_setup_link.c \
3358 src/udev/udev-builtin-path_id.c \
3359 src/udev/udev-builtin-usb_id.c \
3360 src/udev/net/link-config.h \
3361 src/udev/net/link-config.c \
3362 src/udev/net/ethtool-util.h \
3363 src/udev/net/ethtool-util.c
3365 nodist_libudev_core_la_SOURCES = \
3366 src/udev/keyboard-keys-from-name.h \
3367 src/udev/keyboard-keys-to-name.h \
3368 src/udev/net/link-config-gperf.c
3371 $(nodist_libudev_core_la_SOURCES)
3374 src/udev/keyboard-keys-from-name.gperf \
3375 src/udev/keyboard-keys.txt \
3376 src/udev/net/link-config-gperf.c
3379 src/udev/net/link-config-gperf.gperf
3381 libudev_core_la_CFLAGS = \
3386 libudev_core_la_LIBADD = \
3387 libudev-internal.la \
3388 libsystemd-label.la \
3389 libsystemd-internal.la \
3390 libsystemd-network.la \
3391 libsystemd-shared.la \
3396 libudev_core_la_SOURCES += \
3397 src/udev/udev-builtin-kmod.c
3399 dist_udevrules_DATA += \
3400 rules/80-drivers.rules
3404 libudev_core_la_SOURCES += \
3405 src/udev/udev-builtin-blkid.c
3409 libudev_core_la_SOURCES += \
3410 src/udev/udev-builtin-uaccess.c \
3411 src/login/logind-acl.c \
3412 src/libsystemd/sd-login/sd-login.c \
3413 src/systemd/sd-login.h
3415 libudev_core_la_LIBADD += \
3419 systemd_udevd_SOURCES = \
3422 systemd_udevd_LDADD = \
3426 src/udev/udevadm.c \
3427 src/udev/udevadm-info.c \
3428 src/udev/udevadm-control.c \
3429 src/udev/udevadm-monitor.c \
3430 src/udev/udevadm-hwdb.c \
3431 src/udev/udevadm-settle.c \
3432 src/udev/udevadm-trigger.c \
3433 src/udev/udevadm-test.c \
3434 src/udev/udevadm-test-builtin.c
3439 # Update hwdb on installation. Do not bother if installing
3440 # in DESTDIR, since this is likely for packaging purposes.
3442 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3444 INSTALL_DATA_HOOKS += \
3448 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3450 # ------------------------------------------------------------------------------
3459 test_libudev_SOURCES = \
3460 src/test/test-libudev.c
3462 test_libudev_LDADD = \
3463 libsystemd-label.la \
3464 libudev-internal.la \
3465 libsystemd-shared.la
3467 test_udev_SOURCES = \
3468 src/test/test-udev.c
3477 test_udev_LDADD += \
3484 # packed sysfs test tree
3486 $(AM_V_at)$(MKDIR_P) $(dir $@)
3487 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3491 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3496 test/rules-test.sh \
3497 test/rule-syntax-check.py
3499 # ------------------------------------------------------------------------------
3501 src/udev/ata_id/ata_id.c
3504 libudev-internal.la \
3505 libsystemd-shared.la
3507 udevlibexec_PROGRAMS += \
3510 # ------------------------------------------------------------------------------
3511 cdrom_id_SOURCES = \
3512 src/udev/cdrom_id/cdrom_id.c
3515 libudev-internal.la \
3516 libsystemd-shared.la
3518 udevlibexec_PROGRAMS += \
3521 dist_udevrules_DATA += \
3522 rules/60-cdrom_id.rules
3524 # ------------------------------------------------------------------------------
3526 src/udev/collect/collect.c
3529 libudev-internal.la \
3530 libsystemd-shared.la
3532 udevlibexec_PROGRAMS += \
3535 # ------------------------------------------------------------------------------
3537 src/udev/scsi_id/scsi_id.c \
3538 src/udev/scsi_id/scsi_serial.c \
3539 src/udev/scsi_id/scsi.h \
3540 src/udev/scsi_id/scsi_id.h
3543 libudev-internal.la \
3544 libsystemd-shared.la
3546 udevlibexec_PROGRAMS += \
3550 src/udev/scsi_id/README
3552 # ------------------------------------------------------------------------------
3554 src/udev/v4l_id/v4l_id.c
3559 udevlibexec_PROGRAMS += \
3562 dist_udevrules_DATA += \
3563 rules/60-persistent-v4l.rules
3565 # ------------------------------------------------------------------------------
3566 accelerometer_SOURCES = \
3567 src/udev/accelerometer/accelerometer.c
3569 accelerometer_LDADD = \
3570 libudev-internal.la -lm \
3571 libsystemd-shared.la
3573 udevlibexec_PROGRAMS += \
3576 dist_udevrules_DATA += \
3577 rules/61-accelerometer.rules
3579 # ------------------------------------------------------------------------------
3586 libgudev_includedir = \
3587 $(includedir)/gudev-1.0/gudev
3589 libgudev_include_HEADERS = \
3591 src/gudev/gudevenums.h \
3592 src/gudev/gudevenumtypes.h \
3593 src/gudev/gudevtypes.h \
3594 src/gudev/gudevclient.h \
3595 src/gudev/gudevdevice.h \
3596 src/gudev/gudevenumerator.h
3598 lib_LTLIBRARIES += libgudev-1.0.la
3600 pkgconfiglib_DATA += \
3601 src/gudev/gudev-1.0.pc
3604 src/gudev/gudev-1.0.pc
3606 libgudev_1_0_la_SOURCES = \
3607 src/gudev/libgudev-1.0.sym \
3608 src/gudev/gudevenums.h \
3609 src/gudev/gudevenumtypes.h \
3610 src/gudev/gudevenumtypes.h\
3611 src/gudev/gudevtypes.h \
3612 src/gudev/gudevclient.h \
3613 src/gudev/gudevclient.c \
3614 src/gudev/gudevdevice.h \
3615 src/gudev/gudevdevice.c \
3616 src/gudev/gudevenumerator.h \
3617 src/gudev/gudevenumerator.c \
3618 src/gudev/gudevprivate.h
3620 nodist_libgudev_1_0_la_SOURCES = \
3621 src/gudev/gudevmarshal.h \
3622 src/gudev/gudevmarshal.c \
3623 src/gudev/gudevenumtypes.h \
3624 src/gudev/gudevenumtypes.c
3627 $(nodist_libgudev_1_0_la_SOURCES)
3629 libgudev_1_0_la_CPPFLAGS = \
3631 -I$(top_builddir)/src\
3632 -I$(top_srcdir)/src\
3633 -I$(top_builddir)/src/gudev \
3634 -I$(top_srcdir)/src/gudev \
3635 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3636 -D_GUDEV_COMPILATION \
3637 -DG_LOG_DOMAIN=\"GUdev\"
3639 libgudev_1_0_la_CFLAGS = \
3641 -fvisibility=default \
3644 libgudev_1_0_la_LIBADD = \
3648 libgudev_1_0_la_LDFLAGS = \
3650 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3653 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3655 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3656 $(AM_V_at)$(MKDIR_P) $(dir $@)
3657 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3659 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3660 $(AM_V_at)$(MKDIR_P) $(dir $@)
3661 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3662 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3664 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3665 $(AM_V_at)$(MKDIR_P) $(dir $@)
3666 $(AM_V_GEN)glib-mkenums --template $^ > $@
3668 if HAVE_INTROSPECTION
3669 -include $(INTROSPECTION_MAKEFILE)
3671 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3673 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3675 src_gudev_GUdev_1_0_gir_CFLAGS = \
3678 -D_GUDEV_COMPILATION \
3679 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3680 -I$(top_srcdir)/src \
3681 -I$(top_builddir)/src \
3682 -I$(top_srcdir)/src/gudev \
3683 -I$(top_builddir)/src/gudev
3685 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3687 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3688 --pkg-export=gudev-1.0 \
3691 src_gudev_GUdev_1_0_gir_FILES = \
3693 src/gudev/gudevtypes.h \
3694 src/gudev/gudevenums.h \
3695 src/gudev/gudevenumtypes.h \
3696 src/gudev/gudevclient.h \
3697 src/gudev/gudevdevice.h \
3698 src/gudev/gudevenumerator.h \
3699 src/gudev/gudevclient.c \
3700 src/gudev/gudevdevice.c \
3701 src/gudev/gudevenumerator.c
3703 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3704 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3706 girdir = $(datadir)/gir-1.0
3708 src/gudev/GUdev-1.0.gir
3710 typelibsdir = $(libdir)/girepository-1.0
3712 src/gudev/GUdev-1.0.typelib
3714 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3715 endif # HAVE_INTROSPECTION
3719 src/gudev/gudev-1.0.pc.in \
3720 src/gudev/gudevmarshal.list \
3721 src/gudev/gudevenumtypes.h.template \
3722 src/gudev/gudevenumtypes.c.template \
3723 src/gudev/gjs-example.js \
3724 src/gudev/seed-example-enum.js \
3725 src/gudev/seed-example.js
3727 # ------------------------------------------------------------------------------
3728 mtd_probe_SOURCES = \
3729 src/udev/mtd_probe/mtd_probe.c \
3730 src/udev/mtd_probe/mtd_probe.h \
3731 src/udev/mtd_probe/probe_smartmedia.c
3733 dist_udevrules_DATA += \
3734 rules/75-probe_mtd.rules
3736 udevlibexec_PROGRAMS += \
3739 # ------------------------------------------------------------------------------
3740 test_id128_SOURCES = \
3741 src/test/test-id128.c
3743 test_id128_LDADD = \
3744 libsystemd-internal.la \
3745 libsystemd-shared.la
3750 # ------------------------------------------------------------------------------
3752 rootlibexec_PROGRAMS += \
3755 systemd_activate_SOURCES = \
3756 src/activate/activate.c
3758 systemd_activate_LDADD = \
3759 libsystemd-label.la \
3760 libsystemd-internal.la \
3761 libsystemd-shared.la
3763 # ------------------------------------------------------------------------------
3764 systemd_journald_SOURCES = \
3765 src/journal/journald.c \
3766 src/journal/journald-server.h
3768 systemd_journald_LDADD = \
3769 libsystemd-journal-core.la \
3770 libsystemd-internal.la \
3771 libsystemd-shared.la
3773 systemd_cat_SOURCES = \
3776 systemd_cat_LDADD = \
3777 libsystemd-journal-core.la
3780 rootlibexec_PROGRAMS += \
3781 systemd-journal-remote
3783 systemd_journal_remote_SOURCES = \
3784 src/journal-remote/journal-remote-parse.h \
3785 src/journal-remote/journal-remote-parse.c \
3786 src/journal-remote/journal-remote-write.h \
3787 src/journal-remote/journal-remote-write.c \
3788 src/journal-remote/journal-remote.h \
3789 src/journal-remote/journal-remote.c
3791 systemd_journal_remote_LDADD = \
3792 libsystemd-internal.la \
3793 libsystemd-journal-core.la
3795 systemd_journal_remote_SOURCES += \
3796 src/journal-remote/microhttpd-util.h \
3797 src/journal-remote/microhttpd-util.c
3799 systemd_journal_remote_CFLAGS = \
3801 $(MICROHTTPD_CFLAGS)
3803 systemd_journal_remote_LDADD += \
3807 systemd_journal_remote_LDADD += \
3810 # systemd-journal-remote make sense mostly with full crypto stack
3811 dist_systemunit_DATA += \
3812 units/systemd-journal-remote.socket
3814 nodist_systemunit_DATA += \
3815 units/systemd-journal-remote.service
3818 units/systemd-journal-remote.service.in
3820 journal-remote-install-hook: journal-install-hook
3821 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3822 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3823 -chmod 755 $(DESTDIR)/var/log/journal/remote
3825 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3829 nodist_pkgsysconf_DATA += \
3830 src/journal-remote/journal-remote.conf
3833 src/journal-remote/journal-remote.conf.in
3836 src/journal-remote/journal-remote.conf
3840 rootlibexec_PROGRAMS += \
3841 systemd-journal-upload
3843 systemd_journal_upload_SOURCES = \
3844 src/journal-remote/journal-upload.h \
3845 src/journal-remote/journal-upload.c \
3846 src/journal-remote/journal-upload-journal.c
3848 systemd_journal_upload_CFLAGS = \
3852 systemd_journal_upload_LDADD = \
3853 libsystemd-core.la \
3854 libsystemd-internal.la \
3855 libsystemd-journal-internal.la \
3856 libsystemd-shared.la \
3859 nodist_systemunit_DATA += \
3860 units/systemd-journal-upload.service
3863 units/systemd-journal-upload.service.in
3865 nodist_pkgsysconf_DATA += \
3866 src/journal-remote/journal-upload.conf
3869 src/journal-remote/journal-upload.conf.in
3872 src/journal-remote/journal-upload.conf
3875 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3876 journalctl_CFLAGS = \
3879 journalctl_SOURCES = \
3880 src/journal/journalctl.c
3882 journalctl_LDADD = \
3883 libsystemd-journal-internal.la \
3884 libsystemd-internal.la \
3885 libsystemd-logs.la \
3886 libsystemd-shared.la
3889 journalctl_LDADD += \
3894 journalctl_SOURCES += \
3895 src/journal/journal-qrcode.c \
3896 src/journal/journal-qrcode.h
3898 journalctl_CFLAGS += \
3901 journalctl_LDADD += \
3905 test_journal_SOURCES = \
3906 src/journal/test-journal.c
3908 test_journal_LDADD = \
3909 libsystemd-journal-core.la
3911 test_journal_send_SOURCES = \
3912 src/journal/test-journal-send.c
3914 test_journal_send_LDADD = \
3915 libsystemd-journal-core.la
3917 test_journal_syslog_SOURCES = \
3918 src/journal/test-journal-syslog.c
3920 test_journal_syslog_LDADD = \
3921 libsystemd-journal-core.la
3923 test_journal_match_SOURCES = \
3924 src/journal/test-journal-match.c
3926 test_journal_match_LDADD = \
3927 libsystemd-journal-core.la
3929 test_journal_enum_SOURCES = \
3930 src/journal/test-journal-enum.c
3932 test_journal_enum_LDADD = \
3933 libsystemd-journal-core.la
3935 test_journal_stream_SOURCES = \
3936 src/journal/test-journal-stream.c
3938 test_journal_stream_LDADD = \
3939 libsystemd-journal-core.la
3941 test_journal_flush_SOURCES = \
3942 src/journal/test-journal-flush.c
3944 test_journal_flush_LDADD = \
3945 libsystemd-journal-core.la
3947 test_journal_init_SOURCES = \
3948 src/journal/test-journal-init.c
3950 test_journal_init_LDADD = \
3951 libsystemd-journal-core.la
3953 test_journal_verify_SOURCES = \
3954 src/journal/test-journal-verify.c
3956 test_journal_verify_LDADD = \
3957 libsystemd-journal-core.la
3959 test_journal_interleaving_SOURCES = \
3960 src/journal/test-journal-interleaving.c
3962 test_journal_interleaving_LDADD = \
3963 libsystemd-journal-core.la
3965 test_mmap_cache_SOURCES = \
3966 src/journal/test-mmap-cache.c
3968 test_mmap_cache_LDADD = \
3969 libsystemd-journal-core.la
3971 test_catalog_SOURCES = \
3972 src/journal/test-catalog.c
3974 test_catalog_CPPFLAGS = \
3976 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3978 test_catalog_LDADD = \
3979 libsystemd-journal-core.la
3981 test_compress_SOURCES = \
3982 src/journal/test-compress.c
3984 test_compress_LDADD = \
3985 libsystemd-journal-internal.la \
3986 libsystemd-shared.la
3988 test_compress_benchmark_SOURCES = \
3989 src/journal/test-compress-benchmark.c
3991 test_compress_benchmark_LDADD = \
3992 libsystemd-journal-internal.la \
3993 libsystemd-shared.la
3995 libsystemd_journal_core_la_SOURCES = \
3996 src/journal/journald-kmsg.c \
3997 src/journal/journald-kmsg.h \
3998 src/journal/journald-syslog.c \
3999 src/journal/journald-syslog.h \
4000 src/journal/journald-stream.c \
4001 src/journal/journald-stream.h \
4002 src/journal/journald-server.c \
4003 src/journal/journald-server.h \
4004 src/journal/journald-console.c \
4005 src/journal/journald-console.h \
4006 src/journal/journald-wall.c \
4007 src/journal/journald-wall.h \
4008 src/journal/journald-native.c \
4009 src/journal/journald-native.h \
4010 src/journal/journald-rate-limit.c \
4011 src/journal/journald-rate-limit.h \
4012 src/journal/journal-internal.h
4014 nodist_libsystemd_journal_core_la_SOURCES = \
4015 src/journal/journald-gperf.c
4017 libsystemd_journal_core_la_LIBADD = \
4018 libsystemd-journal-internal.la \
4019 libudev-internal.la \
4020 libsystemd-capability.la \
4021 libsystemd-label.la \
4022 libsystemd-internal.la \
4023 libsystemd-shared.la
4026 libsystemd_journal_core_la_LIBADD += \
4030 noinst_LTLIBRARIES += \
4031 libsystemd-journal-core.la
4033 journal-install-hook:
4034 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4035 -chown 0:0 $(DESTDIR)/var/log/journal
4036 -chmod 755 $(DESTDIR)/var/log/journal
4037 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4038 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4040 journal-uninstall-hook:
4041 -rmdir $(DESTDIR)/var/log/journal/remote
4042 -rmdir $(DESTDIR)/var/log/journal/
4044 INSTALL_EXEC_HOOKS += journal-install-hook
4045 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4047 # ------------------------------------------------------------------------------
4048 # Update catalog on installation. Do not bother if installing
4049 # in DESTDIR, since this is likely for packaging purposes.
4050 catalog-update-hook:
4051 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4053 INSTALL_DATA_HOOKS += \
4056 catalog-remove-hook:
4057 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4059 UNINSTALL_DATA_HOOKS += \
4068 test-journal-syslog \
4069 test-journal-match \
4070 test-journal-stream \
4072 test-journal-verify \
4073 test-journal-interleaving \
4074 test-journal-flush \
4081 test-compress-benchmark
4084 pkginclude_HEADERS += \
4085 src/systemd/sd-journal.h \
4086 src/systemd/sd-messages.h \
4087 src/systemd/_sd-common.h
4089 libsystemd_journal_internal_la_SOURCES = \
4090 src/journal/sd-journal.c \
4091 src/systemd/sd-journal.h \
4092 src/systemd/_sd-common.h \
4093 src/journal/journal-file.c \
4094 src/journal/journal-file.h \
4095 src/journal/journal-vacuum.c \
4096 src/journal/journal-vacuum.h \
4097 src/journal/journal-verify.c \
4098 src/journal/journal-verify.h \
4099 src/journal/lookup3.c \
4100 src/journal/lookup3.h \
4101 src/journal/journal-send.c \
4102 src/journal/journal-def.h \
4103 src/journal/compress.h \
4104 src/journal/catalog.c \
4105 src/journal/catalog.h \
4106 src/journal/mmap-cache.c \
4107 src/journal/mmap-cache.h
4109 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4110 libsystemd_journal_internal_la_CFLAGS = \
4113 libsystemd_journal_internal_la_LIBADD =
4115 libsystemd_journal_internal_la_SOURCES += \
4116 src/journal/compress.c
4119 libsystemd_journal_internal_la_CFLAGS += \
4122 libsystemd_journal_internal_la_LIBADD += \
4127 libsystemd_journal_internal_la_LIBADD += \
4132 libsystemd_journal_internal_la_SOURCES += \
4133 src/journal/journal-authenticate.c \
4134 src/journal/journal-authenticate.h \
4135 src/journal/fsprg.c \
4138 libsystemd_journal_internal_la_LIBADD += \
4141 # fsprg.c is a drop-in file using void pointer arithmetic
4142 libsystemd_journal_internal_la_CFLAGS += \
4147 noinst_LTLIBRARIES += \
4148 libsystemd-journal-internal.la
4150 rootlibexec_PROGRAMS += \
4153 rootbin_PROGRAMS += \
4159 dist_systemunit_DATA += \
4160 units/systemd-journald.socket \
4161 units/systemd-journald-dev-log.socket
4163 nodist_systemunit_DATA += \
4164 units/systemd-journald.service \
4165 units/systemd-journal-flush.service \
4166 units/systemd-journal-catalog-update.service
4168 dist_pkgsysconf_DATA += \
4169 src/journal/journald.conf
4171 dist_catalog_DATA = \
4172 catalog/systemd.fr.catalog \
4173 catalog/systemd.it.catalog \
4174 catalog/systemd.pl.catalog \
4175 catalog/systemd.ru.catalog \
4176 catalog/systemd.catalog
4178 SOCKETS_TARGET_WANTS += \
4179 systemd-journald.socket \
4180 systemd-journald-dev-log.socket
4182 SYSINIT_TARGET_WANTS += \
4183 systemd-journald.service \
4184 systemd-journal-flush.service \
4185 systemd-journal-catalog-update.service
4188 units/systemd-journald.service.in \
4189 units/systemd-journal-flush.service.in \
4190 units/systemd-journal-catalog-update.service.in \
4191 src/journal/journald-gperf.gperf
4194 src/journal/journald-gperf.c
4196 # ------------------------------------------------------------------------------
4198 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4200 rootlibexec_PROGRAMS += \
4201 systemd-journal-gatewayd
4203 systemd_journal_gatewayd_SOURCES = \
4204 src/journal-remote/journal-gatewayd.c \
4205 src/journal-remote/microhttpd-util.h \
4206 src/journal-remote/microhttpd-util.c
4208 systemd_journal_gatewayd_LDADD = \
4209 libsystemd-logs.la \
4210 libsystemd-journal-internal.la \
4211 libsystemd-internal.la \
4212 libsystemd-shared.la \
4216 systemd_journal_gatewayd_LDADD += \
4220 systemd_journal_gatewayd_CFLAGS = \
4222 $(MICROHTTPD_CFLAGS)
4224 systemd_journal_gatewayd_CPPFLAGS = \
4226 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4228 dist_systemunit_DATA += \
4229 units/systemd-journal-gatewayd.socket
4231 nodist_systemunit_DATA += \
4232 units/systemd-journal-gatewayd.service
4234 dist_gatewayddocumentroot_DATA = \
4235 src/journal-remote/browse.html
4240 units/systemd-journal-gatewayd.service.in
4242 # ------------------------------------------------------------------------------
4244 systemd_socket_proxyd_SOURCES = \
4245 src/socket-proxy/socket-proxyd.c
4247 systemd_socket_proxyd_LDADD = \
4248 libsystemd-logs.la \
4249 libsystemd-internal.la \
4250 libsystemd-journal-internal.la \
4251 libsystemd-shared.la \
4252 libsystemd-resolve.la
4254 # ------------------------------------------------------------------------------
4256 systemd_coredump_SOURCES = \
4257 src/journal/coredump.c \
4258 src/journal/coredump-vacuum.c \
4259 src/journal/coredump-vacuum.h
4261 systemd_coredump_LDADD = \
4262 libsystemd-journal-internal.la \
4263 libsystemd-label.la \
4264 libsystemd-internal.la \
4265 libsystemd-shared.la
4268 systemd_coredump_SOURCES += \
4269 src/journal/stacktrace.c \
4270 src/journal/stacktrace.h
4272 systemd_coredump_LDADD += \
4276 rootlibexec_PROGRAMS += \
4279 dist_pkgsysconf_DATA += \
4280 src/journal/coredump.conf
4283 systemd_coredump_LDADD += \
4287 coredumpctl_SOURCES = \
4288 src/journal/coredumpctl.c
4290 coredumpctl_LDADD = \
4291 libsystemd-journal-internal.la \
4292 libsystemd-internal.la \
4293 libsystemd-shared.la
4299 test-coredump-vacuum
4301 test_coredump_vacuum_SOURCES = \
4302 src/journal/test-coredump-vacuum.c \
4303 src/journal/coredump-vacuum.c \
4304 src/journal/coredump-vacuum.h
4306 test_coredump_vacuum_LDADD = \
4307 libsystemd-internal.la \
4308 libsystemd-shared.la
4310 dist_bashcompletion_DATA += \
4311 shell-completion/bash/coredumpctl
4313 dist_zshcompletion_DATA += \
4314 shell-completion/zsh/_coredumpctl
4317 sysctl.d/50-coredump.conf
4320 sysctl.d/50-coredump.conf
4324 sysctl.d/50-coredump.conf.in
4326 # ------------------------------------------------------------------------------
4328 systemd_binfmt_SOURCES = \
4331 systemd_binfmt_LDADD = \
4332 libsystemd-shared.la
4334 rootlibexec_PROGRAMS += \
4337 dist_systemunit_DATA += \
4338 units/proc-sys-fs-binfmt_misc.automount \
4339 units/proc-sys-fs-binfmt_misc.mount
4341 nodist_systemunit_DATA += \
4342 units/systemd-binfmt.service
4345 $(prefix)/lib/binfmt.d \
4346 $(sysconfdir)/binfmt.d
4348 SYSINIT_TARGET_WANTS += \
4349 systemd-binfmt.service \
4350 proc-sys-fs-binfmt_misc.automount
4355 units/systemd-binfmt.service.in
4357 # ------------------------------------------------------------------------------
4359 systemd_vconsole_setup_SOURCES = \
4360 src/vconsole/vconsole-setup.c
4362 systemd_vconsole_setup_LDADD = \
4363 libsystemd-shared.la
4365 rootlibexec_PROGRAMS += \
4366 systemd-vconsole-setup
4368 nodist_systemunit_DATA += \
4369 units/systemd-vconsole-setup.service
4371 SYSINIT_TARGET_WANTS += \
4372 systemd-vconsole-setup.service
4376 units/systemd-vconsole-setup.service.in
4378 # ------------------------------------------------------------------------------
4380 systemd_bootchart_SOURCES = \
4381 src/bootchart/bootchart.c \
4382 src/bootchart/bootchart.h \
4383 src/bootchart/store.c \
4384 src/bootchart/store.h \
4385 src/bootchart/svg.c \
4388 systemd_bootchart_LDADD = \
4389 libsystemd-journal-internal.la \
4390 libsystemd-shared.la
4392 rootlibexec_PROGRAMS += \
4395 dist_pkgsysconf_DATA += \
4396 src/bootchart/bootchart.conf
4399 # ------------------------------------------------------------------------------
4400 if ENABLE_QUOTACHECK
4401 rootlibexec_PROGRAMS += \
4404 nodist_systemunit_DATA += \
4405 units/systemd-quotacheck.service
4407 systemd_quotacheck_SOURCES = \
4408 src/quotacheck/quotacheck.c
4410 systemd_quotacheck_LDADD = \
4411 libsystemd-shared.la
4415 units/systemd-quotacheck.service.in
4417 nodist_systemunit_DATA += \
4418 units/quotaon.service
4420 # ------------------------------------------------------------------------------
4421 if ENABLE_RANDOMSEED
4422 rootlibexec_PROGRAMS += \
4425 nodist_systemunit_DATA += \
4426 units/systemd-random-seed.service
4428 systemd_random_seed_SOURCES = \
4429 src/random-seed/random-seed.c
4431 systemd_random_seed_LDADD = \
4432 libsystemd-label.la \
4433 libsystemd-shared.la
4435 SYSINIT_TARGET_WANTS += \
4436 systemd-random-seed.service
4441 units/systemd-random-seed.service.in
4443 # ------------------------------------------------------------------------------
4445 rootlibexec_PROGRAMS += \
4448 nodist_systemunit_DATA += \
4449 units/systemd-backlight@.service
4451 systemd_backlight_SOURCES = \
4452 src/backlight/backlight.c
4454 systemd_backlight_LDADD = \
4455 libsystemd-label.la \
4456 libudev-internal.la \
4457 libsystemd-shared.la
4461 units/systemd-backlight@.service.in
4463 # ------------------------------------------------------------------------------
4465 rootlibexec_PROGRAMS += \
4468 nodist_systemunit_DATA += \
4469 units/systemd-rfkill@.service
4471 systemd_rfkill_SOURCES = \
4474 systemd_rfkill_LDADD = \
4475 libsystemd-label.la \
4476 libudev-internal.la \
4477 libsystemd-shared.la
4481 units/systemd-rfkill@.service.in
4483 # ------------------------------------------------------------------------------
4484 if HAVE_LIBCRYPTSETUP
4485 rootlibexec_PROGRAMS += \
4488 systemgenerator_PROGRAMS += \
4489 systemd-cryptsetup-generator
4491 dist_systemunit_DATA += \
4492 units/cryptsetup.target \
4493 units/cryptsetup-pre.target
4495 systemd_cryptsetup_SOURCES = \
4496 src/cryptsetup/cryptsetup.c
4498 systemd_cryptsetup_CFLAGS = \
4500 $(LIBCRYPTSETUP_CFLAGS)
4502 systemd_cryptsetup_LDADD = \
4503 libsystemd-label.la \
4504 libudev-internal.la \
4505 libsystemd-shared.la \
4506 $(LIBCRYPTSETUP_LIBS)
4508 systemd_cryptsetup_generator_SOURCES = \
4509 src/cryptsetup/cryptsetup-generator.c
4511 systemd_cryptsetup_generator_LDADD = \
4512 libsystemd-label.la \
4513 libsystemd-shared.la
4515 SYSINIT_TARGET_WANTS += \
4520 # ------------------------------------------------------------------------------
4522 systemd_hostnamed_SOURCES = \
4523 src/hostname/hostnamed.c
4525 systemd_hostnamed_LDADD = \
4526 libsystemd-label.la \
4527 libsystemd-internal.la \
4528 libsystemd-shared.la
4530 rootlibexec_PROGRAMS += \
4533 nodist_systemunit_DATA += \
4534 units/systemd-hostnamed.service
4536 dist_systemunit_DATA_busnames += \
4537 units/org.freedesktop.hostname1.busname
4539 dist_dbuspolicy_DATA += \
4540 src/hostname/org.freedesktop.hostname1.conf
4542 dist_dbussystemservice_DATA += \
4543 src/hostname/org.freedesktop.hostname1.service
4545 polkitpolicy_files += \
4546 src/hostname/org.freedesktop.hostname1.policy
4548 SYSTEM_UNIT_ALIASES += \
4549 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4551 BUSNAMES_TARGET_WANTS += \
4552 org.freedesktop.hostname1.busname
4554 hostnamectl_SOURCES = \
4555 src/hostname/hostnamectl.c
4557 hostnamectl_LDADD = \
4558 libsystemd-internal.la \
4559 libsystemd-shared.la
4564 dist_bashcompletion_DATA += \
4565 shell-completion/bash/hostnamectl
4567 dist_zshcompletion_DATA += \
4568 shell-completion/zsh/_hostnamectl
4572 polkitpolicy_in_files += \
4573 src/hostname/org.freedesktop.hostname1.policy.in
4576 units/systemd-hostnamed.service.in
4578 # ------------------------------------------------------------------------------
4579 dist_systemunit_DATA_busnames += \
4580 units/org.freedesktop.systemd1.busname
4582 BUSNAMES_TARGET_WANTS += \
4583 org.freedesktop.systemd1.busname
4585 # ------------------------------------------------------------------------------
4587 systemd_localed_SOURCES = \
4588 src/locale/localed.c
4590 systemd_localed_LDADD = \
4591 libsystemd-label.la \
4592 libsystemd-internal.la \
4593 libsystemd-shared.la
4595 nodist_systemunit_DATA += \
4596 units/systemd-localed.service
4598 dist_systemunit_DATA_busnames += \
4599 units/org.freedesktop.locale1.busname
4601 rootlibexec_PROGRAMS += \
4604 dist_dbuspolicy_DATA += \
4605 src/locale/org.freedesktop.locale1.conf
4607 dist_dbussystemservice_DATA += \
4608 src/locale/org.freedesktop.locale1.service
4610 polkitpolicy_files += \
4611 src/locale/org.freedesktop.locale1.policy
4613 SYSTEM_UNIT_ALIASES += \
4614 systemd-localed.service dbus-org.freedesktop.locale1.service
4616 BUSNAMES_TARGET_WANTS += \
4617 org.freedesktop.locale1.busname
4619 dist_pkgdata_DATA += \
4620 src/locale/kbd-model-map
4622 dist_noinst_SCRIPT = \
4623 src/locale/generate-kbd-model-map
4625 localectl_SOURCES = \
4626 src/locale/localectl.c
4629 libsystemd-internal.la \
4630 libsystemd-shared.la
4635 dist_bashcompletion_DATA += \
4636 shell-completion/bash/localectl
4638 dist_zshcompletion_DATA += \
4639 shell-completion/zsh/_localectl
4643 .PHONY: update-kbd-model-map
4645 polkitpolicy_in_files += \
4646 src/locale/org.freedesktop.locale1.policy.in
4649 units/systemd-localed.service.in
4651 # ------------------------------------------------------------------------------
4653 systemd_timedated_SOURCES = \
4654 src/timedate/timedated.c
4656 systemd_timedated_LDADD = \
4657 libsystemd-label.la \
4658 libsystemd-internal.la \
4659 libsystemd-shared.la
4661 rootlibexec_PROGRAMS += \
4664 dist_dbussystemservice_DATA += \
4665 src/timedate/org.freedesktop.timedate1.service
4667 dist_dbuspolicy_DATA += \
4668 src/timedate/org.freedesktop.timedate1.conf
4670 nodist_systemunit_DATA += \
4671 units/systemd-timedated.service
4673 dist_systemunit_DATA_busnames += \
4674 units/org.freedesktop.timedate1.busname
4676 polkitpolicy_files += \
4677 src/timedate/org.freedesktop.timedate1.policy
4679 SYSTEM_UNIT_ALIASES += \
4680 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4682 BUSNAMES_TARGET_WANTS += \
4683 org.freedesktop.timedate1.busname
4685 timedatectl_SOURCES = \
4686 src/timedate/timedatectl.c
4688 timedatectl_LDADD = \
4689 libsystemd-internal.la \
4690 libsystemd-shared.la
4695 dist_bashcompletion_DATA += \
4696 shell-completion/bash/timedatectl
4698 dist_zshcompletion_DATA += \
4699 shell-completion/zsh/_timedatectl
4702 polkitpolicy_in_files += \
4703 src/timedate/org.freedesktop.timedate1.policy.in
4706 units/systemd-timedated.service.in
4708 # ------------------------------------------------------------------------------
4710 systemd_timesyncd_SOURCES = \
4711 src/timesync/timesyncd.c \
4712 src/timesync/timesyncd-manager.c \
4713 src/timesync/timesyncd-manager.h \
4714 src/timesync/timesyncd-conf.c \
4715 src/timesync/timesyncd-conf.h \
4716 src/timesync/timesyncd-server.c \
4717 src/timesync/timesyncd-server.h
4719 nodist_systemd_timesyncd_SOURCES = \
4720 src/timesync/timesyncd-gperf.c
4723 src/timesync/timesyncd-gperf.gperf
4726 src/timesync/timesyncd-gperf.c
4728 systemd_timesyncd_LDADD = \
4729 libsystemd-resolve.la \
4730 libsystemd-network.la \
4731 libsystemd-label.la \
4732 libsystemd-capability.la \
4733 libsystemd-internal.la \
4734 libsystemd-shared.la \
4737 rootlibexec_PROGRAMS += \
4740 nodist_systemunit_DATA += \
4741 units/systemd-timesyncd.service
4743 GENERAL_ALIASES += \
4744 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4747 units/systemd-timesyncd.service.in
4749 nodist_pkgsysconf_DATA += \
4750 src/timesync/timesyncd.conf
4753 src/timesync/timesyncd.conf.in
4756 src/timesync/timesyncd.conf
4759 # ------------------------------------------------------------------------------
4761 libnss_myhostname_la_SOURCES = \
4762 src/nss-myhostname/nss-myhostname.sym \
4763 src/nss-myhostname/nss-myhostname.c
4765 libnss_myhostname_la_LDFLAGS = \
4772 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4774 libnss_myhostname_la_LIBADD = \
4775 libsystemd-shared.la \
4776 libsystemd-internal.la
4778 lib_LTLIBRARIES += \
4779 libnss_myhostname.la
4782 # ------------------------------------------------------------------------------
4784 systemd_machined_SOURCES = \
4785 src/machine/machined.c \
4786 src/machine/machined.h
4788 systemd_machined_LDADD = \
4789 libsystemd-machine-core.la
4791 rootlibexec_PROGRAMS += \
4794 libsystemd_machine_core_la_SOURCES = \
4795 src/machine/machined-dbus.c \
4796 src/machine/machine.c \
4797 src/machine/machine.h \
4798 src/machine/machine-dbus.c
4800 libsystemd_machine_core_la_LIBADD = \
4801 libsystemd-label.la \
4802 libsystemd-internal.la \
4803 libudev-internal.la \
4804 libsystemd-shared.la
4806 noinst_LTLIBRARIES += \
4807 libsystemd-machine-core.la
4809 machinectl_SOURCES = \
4810 src/machine/machinectl.c
4812 machinectl_LDADD = \
4813 libsystemd-internal.la \
4814 libsystemd-shared.la
4816 rootbin_PROGRAMS += \
4819 dist_bashcompletion_DATA += \
4820 shell-completion/bash/machinectl
4822 test_machine_tables_SOURCES = \
4823 src/machine/test-machine-tables.c
4825 test_machine_tables_LDADD = \
4826 libsystemd-machine-core.la
4831 nodist_systemunit_DATA += \
4832 units/systemd-machined.service
4834 dist_systemunit_DATA += \
4837 dist_systemunit_DATA_busnames += \
4838 units/org.freedesktop.machine1.busname
4840 dist_dbussystemservice_DATA += \
4841 src/machine/org.freedesktop.machine1.service
4843 dist_dbuspolicy_DATA += \
4844 src/machine/org.freedesktop.machine1.conf
4846 dist_zshcompletion_DATA += \
4847 shell-completion/zsh/_machinectl \
4848 shell-completion/zsh/_sd_machines
4850 SYSTEM_UNIT_ALIASES += \
4851 systemd-machined.service dbus-org.freedesktop.machine1.service
4853 BUSNAMES_TARGET_WANTS += \
4854 org.freedesktop.machine1.busname
4857 units/systemd-machined.service.in
4859 libnss_mymachines_la_SOURCES = \
4860 src/nss-mymachines/nss-mymachines.sym \
4861 src/nss-mymachines/nss-mymachines.c
4863 libnss_mymachines_la_LDFLAGS = \
4870 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4872 libnss_mymachines_la_LIBADD = \
4873 libsystemd-shared.la \
4874 libsystemd-internal.la
4876 lib_LTLIBRARIES += \
4877 libnss_mymachines.la
4880 # ------------------------------------------------------------------------------
4882 systemd_resolved_SOURCES = \
4883 src/resolve/resolved.c \
4884 src/resolve/resolved-manager.c \
4885 src/resolve/resolved-manager.h \
4886 src/resolve/resolved-conf.c \
4887 src/resolve/resolved-conf.h \
4888 src/resolve/resolved-bus.c \
4889 src/resolve/resolved-bus.h \
4890 src/resolve/resolved-link.h \
4891 src/resolve/resolved-link.c \
4892 src/resolve/resolved-def.h \
4893 src/resolve/resolved-dns-domain.h \
4894 src/resolve/resolved-dns-domain.c \
4895 src/resolve/resolved-dns-rr.h \
4896 src/resolve/resolved-dns-rr.c \
4897 src/resolve/resolved-dns-question.h \
4898 src/resolve/resolved-dns-question.c \
4899 src/resolve/resolved-dns-answer.h \
4900 src/resolve/resolved-dns-answer.c \
4901 src/resolve/resolved-dns-packet.h \
4902 src/resolve/resolved-dns-packet.c \
4903 src/resolve/resolved-dns-query.h \
4904 src/resolve/resolved-dns-query.c \
4905 src/resolve/resolved-dns-transaction.h \
4906 src/resolve/resolved-dns-transaction.c \
4907 src/resolve/resolved-dns-scope.h \
4908 src/resolve/resolved-dns-scope.c \
4909 src/resolve/resolved-dns-server.h \
4910 src/resolve/resolved-dns-server.c \
4911 src/resolve/resolved-dns-cache.h \
4912 src/resolve/resolved-dns-cache.c \
4913 src/resolve/resolved-dns-zone.h \
4914 src/resolve/resolved-dns-zone.c \
4915 src/resolve/resolved-dns-stream.h \
4916 src/resolve/resolved-dns-stream.c \
4917 src/resolve/dns-type.c \
4918 src/resolve/dns-type.h \
4919 src/resolve/dns_type-from-name.h \
4920 src/resolve/dns_type-to-name.h
4922 nodist_systemd_resolved_SOURCES = \
4923 src/resolve/resolved-gperf.c
4926 src/resolve/resolved-gperf.gperf \
4927 src/resolve/dns_type-from-name.gperf
4930 src/resolve/resolved-gperf.c
4932 systemd_resolved_LDADD = \
4933 libsystemd-capability.la \
4934 libsystemd-network.la \
4935 libsystemd-label.la \
4936 libsystemd-internal.la \
4937 libsystemd-shared.la \
4941 rootlibexec_PROGRAMS += \
4944 nodist_systemunit_DATA += \
4945 units/systemd-resolved.service
4947 dist_systemunit_DATA_busnames += \
4948 units/org.freedesktop.resolve1.busname
4950 dist_dbuspolicy_DATA += \
4951 src/resolve/org.freedesktop.resolve1.conf
4953 dist_dbussystemservice_DATA += \
4954 src/resolve/org.freedesktop.resolve1.service
4957 units/systemd-resolved.service.in
4959 SYSTEM_UNIT_ALIASES += \
4960 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4962 BUSNAMES_TARGET_WANTS += \
4963 org.freedesktop.resolve1.busname
4965 GENERAL_ALIASES += \
4966 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4968 nodist_pkgsysconf_DATA += \
4969 src/resolve/resolved.conf
4972 src/resolve/resolved.conf.in
4975 src/resolve/resolved.conf
4980 test_dns_domain_SOURCES = \
4981 src/resolve/resolved-dns-domain.h \
4982 src/resolve/resolved-dns-domain.c \
4983 src/resolve/test-dns-domain.c
4985 test_dns_domain_LDADD = \
4986 libsystemd-capability.la \
4987 libsystemd-network.la \
4988 libsystemd-label.la \
4989 libsystemd-internal.la \
4990 libsystemd-shared.la \
4993 libnss_resolve_la_SOURCES = \
4994 src/nss-resolve/nss-resolve.sym \
4995 src/nss-resolve/nss-resolve.c
4997 libnss_resolve_la_LDFLAGS = \
5004 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5006 libnss_resolve_la_LIBADD = \
5007 libsystemd-shared.la \
5008 libsystemd-internal.la
5010 lib_LTLIBRARIES += \
5013 systemd_resolve_host_SOURCES = \
5014 src/resolve-host/resolve-host.c \
5015 src/resolve/resolved-dns-packet.c \
5016 src/resolve/resolved-dns-packet.h \
5017 src/resolve/resolved-dns-rr.c \
5018 src/resolve/resolved-dns-rr.h \
5019 src/resolve/resolved-dns-answer.c \
5020 src/resolve/resolved-dns-answer.h \
5021 src/resolve/resolved-dns-question.c \
5022 src/resolve/resolved-dns-question.h \
5023 src/resolve/resolved-dns-domain.c \
5024 src/resolve/resolved-dns-domain.h \
5025 src/resolve/dns-type.c \
5026 src/resolve/dns-type.h \
5027 src/resolve/dns_type-from-name.h \
5028 src/resolve/dns_type-to-name.h
5030 systemd_resolve_host_LDADD = \
5031 libsystemd-internal.la \
5032 libsystemd-shared.la \
5036 rootlibexec_PROGRAMS += \
5037 systemd-resolve-host
5041 # ------------------------------------------------------------------------------
5043 rootlibexec_PROGRAMS += \
5046 systemd_networkd_SOURCES = \
5047 src/network/networkd.c
5049 systemd_networkd_LDADD = \
5050 libsystemd-networkd-core.la \
5051 libsystemd-capability.la
5053 noinst_LTLIBRARIES += \
5054 libsystemd-networkd-core.la
5056 libsystemd_networkd_core_la_CFLAGS = \
5059 libsystemd_networkd_core_la_SOURCES = \
5060 src/libsystemd-network/network-internal.h \
5061 src/network/networkd.h \
5062 src/network/networkd-link.h \
5063 src/network/networkd-netdev.h \
5064 src/network/networkd-netdev-tunnel.h \
5065 src/network/networkd-netdev-veth.h \
5066 src/network/networkd-netdev-vxlan.h \
5067 src/network/networkd-netdev-vlan.h \
5068 src/network/networkd-netdev-macvlan.h \
5069 src/network/networkd-netdev-dummy.h \
5070 src/network/networkd-netdev-tuntap.h \
5071 src/network/networkd-netdev-bond.h \
5072 src/network/networkd-netdev-bridge.h \
5073 src/network/networkd-netdev.c \
5074 src/network/networkd-netdev-tunnel.c \
5075 src/network/networkd-netdev-veth.c \
5076 src/network/networkd-netdev-vxlan.c \
5077 src/network/networkd-netdev-vlan.c \
5078 src/network/networkd-netdev-macvlan.c \
5079 src/network/networkd-netdev-dummy.c \
5080 src/network/networkd-netdev-tuntap.c \
5081 src/network/networkd-netdev-bond.c \
5082 src/network/networkd-netdev-bridge.c \
5083 src/network/networkd-link.c \
5084 src/network/networkd-ipv4ll.c \
5085 src/network/networkd-dhcp4.c \
5086 src/network/networkd-network.c \
5087 src/network/networkd-address.c \
5088 src/network/networkd-route.c \
5089 src/network/networkd-manager.c \
5090 src/network/networkd-address-pool.c
5092 nodist_libsystemd_networkd_core_la_SOURCES = \
5093 src/network/networkd-network-gperf.c \
5094 src/network/networkd-netdev-gperf.c
5096 libsystemd_networkd_core_la_LIBADD = \
5097 libudev-internal.la \
5098 libsystemd-internal.la \
5099 libsystemd-network.la \
5100 libsystemd-label.la \
5101 libsystemd-shared.la
5103 rootlibexec_PROGRAMS += \
5104 systemd-networkd-wait-online
5106 systemd_networkd_wait_online_CFLAGS = \
5109 systemd_networkd_wait_online_SOURCES = \
5110 src/libsystemd-network/network-internal.h \
5111 src/network/networkd-wait-online.h \
5112 src/network/networkd-wait-online-link.h \
5113 src/network/networkd-wait-online.c \
5114 src/network/networkd-wait-online-manager.c \
5115 src/network/networkd-wait-online-link.c
5117 systemd_networkd_wait_online_LDADD = \
5118 libsystemd-network.la \
5119 libudev-internal.la \
5120 libsystemd-internal.la \
5121 libsystemd-shared.la
5123 rootbin_PROGRAMS += \
5126 networkctl_SOURCES = \
5127 src/network/networkctl.c
5129 networkctl_LDADD = \
5130 libsystemd-internal.la \
5131 libudev-internal.la \
5132 libsystemd-shared.la \
5133 libsystemd-network.la
5135 test_network_SOURCES = \
5136 src/network/test-network.c
5138 test_network_CFLAGS = \
5141 test_network_LDADD = \
5142 libsystemd-networkd-core.la
5144 test_network_tables_SOURCES = \
5145 src/network/test-network-tables.c \
5146 src/shared/test-tables.h
5148 test_network_tables_LDADD = \
5149 libsystemd-networkd-core.la \
5156 nodist_systemunit_DATA += \
5157 units/systemd-networkd.service \
5158 units/systemd-networkd-wait-online.service
5160 GENERAL_ALIASES += \
5161 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5162 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5165 src/network/networkd-network-gperf.gperf \
5166 src/network/networkd-netdev-gperf.gperf \
5167 units/systemd-networkd.service.in \
5168 units/systemd-networkd-wait-online.service.in
5171 src/network/networkd-network-gperf.c \
5172 src/network/networkd-netdev-gperf.c
5175 # ------------------------------------------------------------------------------
5177 systemd_logind_SOURCES = \
5178 src/login/logind.c \
5181 nodist_systemd_logind_SOURCES = \
5182 src/login/logind-gperf.c
5184 systemd_logind_LDADD = \
5185 libsystemd-logind-core.la
5187 libsystemd_logind_core_la_SOURCES = \
5188 src/login/logind-core.c \
5189 src/login/logind-device.c \
5190 src/login/logind-device.h \
5191 src/login/logind-button.c \
5192 src/login/logind-button.h \
5193 src/login/logind-action.c \
5194 src/login/logind-action.h \
5195 src/login/logind-seat.c \
5196 src/login/logind-seat.h \
5197 src/login/logind-session.c \
5198 src/login/logind-session.h \
5199 src/login/logind-session-device.c \
5200 src/login/logind-session-device.h \
5201 src/login/logind-user.c \
5202 src/login/logind-user.h \
5203 src/login/logind-inhibit.c \
5204 src/login/logind-inhibit.h \
5205 src/login/logind-dbus.c \
5206 src/login/logind-session-dbus.c \
5207 src/login/logind-seat-dbus.c \
5208 src/login/logind-user-dbus.c \
5209 src/login/logind-acl.h
5211 libsystemd_logind_core_la_LIBADD = \
5212 libsystemd-label.la \
5213 libsystemd-capability.la \
5214 libsystemd-internal.la \
5215 libudev-internal.la \
5216 libsystemd-shared.la
5219 libsystemd_logind_core_la_SOURCES += \
5220 src/login/logind-acl.c
5222 libsystemd_logind_core_la_LIBADD += \
5226 noinst_LTLIBRARIES += \
5227 libsystemd-logind-core.la
5229 systemd_user_sessions_SOURCES = \
5230 src/login/user-sessions.c
5232 systemd_user_sessions_LDADD = \
5233 libsystemd-shared.la
5235 rootlibexec_PROGRAMS += \
5237 systemd-user-sessions
5239 loginctl_SOURCES = \
5240 src/login/loginctl.c \
5241 src/login/sysfs-show.c
5244 libsystemd-internal.la \
5245 libudev-internal.la \
5246 libsystemd-shared.la
5248 rootbin_PROGRAMS += \
5251 dist_bashcompletion_DATA += \
5252 shell-completion/bash/loginctl
5254 dist_zshcompletion_DATA += \
5255 shell-completion/zsh/_loginctl \
5256 shell-completion/zsh/_systemd-inhibit
5258 systemd_inhibit_SOURCES = \
5261 systemd_inhibit_LDADD = \
5262 libsystemd-internal.la \
5263 libsystemd-shared.la
5265 rootbin_PROGRAMS += \
5268 test_login_SOURCES = \
5269 src/libsystemd/sd-login/test-login.c
5271 test_login_LDADD = \
5272 libsystemd-internal.la \
5273 libsystemd-shared.la
5275 test_login_shared_SOURCES = \
5276 src/login/test-login-shared.c
5278 test_login_shared_LDADD = \
5279 libsystemd-internal.la \
5280 libsystemd-shared.la
5282 test_inhibit_SOURCES = \
5283 src/login/test-inhibit.c
5285 test_inhibit_LDADD = \
5286 libsystemd-internal.la \
5287 libsystemd-shared.la
5289 test_login_tables_SOURCES = \
5290 src/login/test-login-tables.c
5292 test_login_tables_LDADD = \
5293 libsystemd-logind-core.la
5304 pam_systemd_la_SOURCES = \
5305 src/login/pam_systemd.sym \
5306 src/login/pam_systemd.c
5308 pam_systemd_la_CFLAGS = \
5313 pam_systemd_la_LDFLAGS = \
5319 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5321 pam_systemd_la_LIBADD = \
5322 libsystemd-capability.la \
5323 libsystemd-internal.la \
5324 libsystemd-shared.la \
5327 pamlib_LTLIBRARIES = \
5330 dist_pamconf_DATA = \
5331 src/login/systemd-user
5334 nodist_systemunit_DATA += \
5335 units/systemd-logind.service \
5336 units/systemd-user-sessions.service
5338 dist_systemunit_DATA += \
5341 dist_systemunit_DATA_busnames += \
5342 units/org.freedesktop.login1.busname
5344 dist_dbussystemservice_DATA += \
5345 src/login/org.freedesktop.login1.service
5347 dist_dbuspolicy_DATA += \
5348 src/login/org.freedesktop.login1.conf
5350 dist_pkgsysconf_DATA += \
5351 src/login/logind.conf
5353 polkitpolicy_files += \
5354 src/login/org.freedesktop.login1.policy
5359 MULTI_USER_TARGET_WANTS += \
5360 systemd-logind.service \
5361 systemd-user-sessions.service
5363 SYSTEM_UNIT_ALIASES += \
5364 systemd-logind.service dbus-org.freedesktop.login1.service
5366 BUSNAMES_TARGET_WANTS += \
5367 org.freedesktop.login1.busname
5369 if ENABLE_MULTI_SEAT_X
5371 systemd_multi_seat_x_SOURCES = \
5372 src/login/multi-seat-x.c
5374 systemd_multi_seat_x_LDADD = \
5375 libsystemd-label.la \
5376 libsystemd-shared.la
5378 rootlibexec_PROGRAMS += \
5379 systemd-multi-seat-x
5383 dist_udevrules_DATA += \
5384 src/login/70-uaccess.rules \
5385 src/login/70-power-switch.rules
5387 nodist_udevrules_DATA += \
5388 src/login/71-seat.rules \
5389 src/login/73-seat-late.rules
5392 src/login/logind-gperf.c \
5393 src/login/71-seat.rules \
5394 src/login/73-seat-late.rules
5397 polkitpolicy_in_files += \
5398 src/login/org.freedesktop.login1.policy.in
5401 src/login/logind-gperf.gperf \
5402 src/login/71-seat.rules.in \
5403 src/login/73-seat-late.rules.in \
5404 units/systemd-logind.service.in \
5405 units/systemd-user-sessions.service.in
5407 # ------------------------------------------------------------------------------
5408 if HAVE_PYTHON_DEVEL
5409 pkgpyexec_LTLIBRARIES = \
5416 _journal_la_SOURCES = \
5417 src/python-systemd/_journal.c
5419 _journal_la_CFLAGS = \
5421 -fvisibility=default \
5422 $(PYTHON_DEVEL_CFLAGS)
5424 _journal_la_LDFLAGS = \
5430 _journal_la_LIBADD = \
5431 $(PYTHON_DEVEL_LIBS) \
5434 id128_la_SOURCES = \
5435 src/python-systemd/id128.c \
5436 src/python-systemd/pyutil.c \
5437 src/python-systemd/pyutil.h
5439 nodist_id128_la_SOURCES = \
5440 src/python-systemd/id128-constants.h
5444 -fvisibility=default \
5445 $(PYTHON_DEVEL_CFLAGS) \
5446 -I$(top_builddir)/src/python-systemd
5448 id128_la_LDFLAGS = \
5455 $(PYTHON_DEVEL_LIBS) \
5456 libsystemd-shared.la \
5459 _daemon_la_SOURCES = \
5460 src/python-systemd/_daemon.c \
5461 src/python-systemd/pyutil.c \
5462 src/python-systemd/pyutil.h
5464 _daemon_la_CFLAGS = \
5466 -fvisibility=default \
5467 $(PYTHON_DEVEL_CFLAGS) \
5468 -I$(top_builddir)/src/python-systemd
5470 _daemon_la_LDFLAGS = \
5476 _daemon_la_LIBADD = \
5477 $(PYTHON_DEVEL_LIBS) \
5478 libsystemd-shared.la \
5481 _reader_la_SOURCES = \
5482 src/python-systemd/_reader.c \
5483 src/python-systemd/pyutil.c \
5484 src/python-systemd/pyutil.h
5486 _reader_la_CFLAGS = \
5488 -fvisibility=default \
5489 $(PYTHON_DEVEL_CFLAGS)
5491 _reader_la_LDFLAGS = \
5497 _reader_la_LIBADD = \
5498 $(PYTHON_DEVEL_LIBS) \
5499 libsystemd-shared.la \
5502 login_la_SOURCES = \
5503 src/python-systemd/login.c \
5504 src/python-systemd/pyutil.c \
5505 src/python-systemd/pyutil.h
5509 -fvisibility=default \
5510 $(PYTHON_DEVEL_CFLAGS)
5512 login_la_LDFLAGS = \
5519 $(PYTHON_DEVEL_LIBS) \
5520 libsystemd-shared.la \
5523 dist_pkgpyexec_PYTHON = \
5524 src/python-systemd/journal.py \
5525 src/python-systemd/daemon.py \
5526 src/python-systemd/__init__.py
5528 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5529 $(AM_V_at)$(MKDIR_P) $(dir $@)
5530 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5533 src/python-systemd/id128-constants.h
5535 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5537 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5538 $(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/
5539 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5542 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5543 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5546 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5547 $(MAKE) DESTDIR="$$dir" install && \
5548 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5553 CLEAN_LOCAL_HOOKS += clean-sphinx
5555 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5558 -rm -rf docs/html/python-systemd/
5560 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5562 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5563 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5565 # ------------------------------------------------------------------------------
5566 if ENABLE_COMPAT_LIBS
5568 src/compat-libs/linkwarning.h
5570 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5571 $(AM_V_at)$(MKDIR_P) $(dir $@)
5572 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5575 libsystemd-journal.c \
5576 libsystemd-login.c \
5577 libsystemd-id128.c \
5580 libsystemd_journal_la_SOURCES = \
5581 libsystemd-journal.c \
5582 src/compat-libs/libsystemd-journal.sym
5584 libsystemd_journal_la_CPPFLAGS = \
5586 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5588 libsystemd_journal_la_LDFLAGS = \
5590 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5591 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5593 libsystemd_journal_la_LIBADD = \
5594 libsystemd-journal-internal.la \
5595 libsystemd-internal.la \
5596 libsystemd-shared.la
5598 libsystemd_login_la_SOURCES = \
5599 libsystemd-login.c \
5600 src/compat-libs/libsystemd-login.sym
5602 libsystemd_login_la_CPPFLAGS = \
5604 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5606 libsystemd_login_la_LDFLAGS = \
5608 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5609 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5611 libsystemd_login_la_LIBADD = \
5612 libsystemd-internal.la \
5613 libsystemd-shared.la
5615 libsystemd_id128_la_SOURCES = \
5616 libsystemd-id128.c \
5617 src/compat-libs/libsystemd-id128.sym
5619 libsystemd_id128_la_CPPFLAGS = \
5621 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5623 libsystemd_id128_la_LDFLAGS = \
5625 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5626 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5628 libsystemd_id128_la_LIBADD = \
5629 libsystemd-internal.la \
5630 libsystemd-shared.la
5632 libsystemd_daemon_la_SOURCES = \
5633 libsystemd-daemon.c \
5634 src/compat-libs/libsystemd-daemon.sym
5636 libsystemd_daemon_la_CPPFLAGS = \
5638 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5640 libsystemd_daemon_la_LDFLAGS = \
5642 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5643 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5645 libsystemd_daemon_la_LIBADD = \
5646 libsystemd-internal.la \
5647 libsystemd-shared.la
5649 lib_LTLIBRARIES += \
5650 libsystemd-journal.la \
5651 libsystemd-login.la \
5652 libsystemd-id128.la \
5653 libsystemd-daemon.la
5655 pkgconfiglib_DATA += \
5656 src/compat-libs/libsystemd-journal.pc \
5657 src/compat-libs/libsystemd-login.pc \
5658 src/compat-libs/libsystemd-id128.pc \
5659 src/compat-libs/libsystemd-daemon.pc
5661 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5662 compat-lib-install-hook:
5663 libname=libsystemd-login.so && $(move-to-rootlibdir)
5664 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5665 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5666 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5668 compat-lib-uninstall-hook:
5669 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5670 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5671 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5672 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5674 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5675 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5679 src/compat-libs/libsystemd-journal.pc.in \
5680 src/compat-libs/libsystemd-login.pc.in \
5681 src/compat-libs/libsystemd-id128.pc.in \
5682 src/compat-libs/libsystemd-daemon.pc.in
5684 # ------------------------------------------------------------------------------
5686 '|rootlibexecdir=$(rootlibexecdir)|' \
5687 '|rootbindir=$(rootbindir)|' \
5688 '|bindir=$(bindir)|' \
5689 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5690 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5691 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5692 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5693 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5694 '|pkgdatadir=$(pkgdatadir)|' \
5695 '|systemunitdir=$(systemunitdir)|' \
5696 '|userunitdir=$(userunitdir)|' \
5697 '|systempresetdir=$(systempresetdir)|' \
5698 '|userpresetdir=$(userpresetdir)|' \
5699 '|udevhwdbdir=$(udevhwdbdir)|' \
5700 '|udevrulesdir=$(udevrulesdir)|' \
5701 '|catalogdir=$(catalogdir)|' \
5702 '|tmpfilesdir=$(tmpfilesdir)|' \
5703 '|sysusersdir=$(sysusersdir)|' \
5704 '|sysctldir=$(sysctldir)|' \
5705 '|systemgeneratordir=$(systemgeneratordir)|' \
5706 '|usergeneratordir=$(usergeneratordir)|' \
5707 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5708 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5709 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5710 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5711 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5712 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5713 '|prefix=$(prefix)|' \
5714 '|exec_prefix=$(exec_prefix)|' \
5715 '|libdir=$(libdir)|' \
5716 '|includedir=$(includedir)|' \
5717 '|VERSION=$(VERSION)|' \
5718 '|rootprefix=$(rootprefix)|' \
5719 '|udevlibexecdir=$(udevlibexecdir)|' \
5720 '|SUSHELL=$(SUSHELL)|' \
5721 '|DEBUGTTY=$(DEBUGTTY)|' \
5724 '|MKDIR_P=$(MKDIR_P)|' \
5725 '|QUOTAON=$(QUOTAON)|' \
5726 '|QUOTACHECK=$(QUOTACHECK)|' \
5727 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5728 '|VARLOGDIR=$(varlogdir)|' \
5729 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5730 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5731 '|PYTHON=$(PYTHON)|' \
5732 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5733 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5734 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5735 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5736 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5737 '|TTY_GID=$(TTY_GID)|' \
5738 '|systemsleepdir=$(systemsleepdir)|' \
5739 '|systemshutdowndir=$(systemshutdowndir)|' \
5740 '|binfmtdir=$(binfmtdir)|' \
5741 '|modulesloaddir=$(modulesloaddir)|'
5744 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5745 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5754 sysctl.d/%: sysctl.d/%.in
5763 src/core/macros.%: src/core/macros.%.in
5766 src/%.policy.in: src/%.policy.in.in
5769 shell-completion/%: shell-completion/%.in
5780 $(AM_V_GEN)chmod +x $@
5782 src/%.c: src/%.gperf
5783 $(AM_V_at)$(MKDIR_P) $(dir $@)
5784 $(AM_V_GPERF)$(GPERF) < $< > $@
5787 $(AM_V_at)$(MKDIR_P) $(dir $@)
5788 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5790 tmpfiles.d/%: tmpfiles.d/%.m4
5791 $(AM_V_at)$(MKDIR_P) $(dir $@)
5792 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5796 $(AM_V_at)$(MKDIR_P) $(dir $@)
5797 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5799 units/user/%: units/%.m4
5800 $(AM_V_at)$(MKDIR_P) $(dir $@)
5801 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5804 nodist_polkitpolicy_DATA = \
5805 $(polkitpolicy_files) \
5806 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5810 $(polkitpolicy_in_files) \
5811 $(polkitpolicy_in_in_files)
5814 $(nodist_systemunit_DATA) \
5815 $(nodist_userunit_DATA) \
5816 $(pkgconfigdata_DATA) \
5817 $(pkgconfiglib_DATA) \
5818 $(nodist_polkitpolicy_DATA)
5820 # ------------------------------------------------------------------------------
5822 man/custom-entities.ent: configure.ac
5823 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5824 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5825 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5829 man/custom-entities.ent
5834 --stringparam man.output.quietly 1 \
5835 --stringparam funcsynopsis.style ansi \
5836 --stringparam man.authors.section.enabled 0 \
5837 --stringparam man.copyright.section.enabled 0 \
5838 --stringparam systemd.version $(VERSION) \
5839 --path '$(builddir)/man:$(srcdir)/man'
5841 XSLTPROC_PROCESS_MAN = \
5842 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5844 XSLTPROC_PROCESS_HTML = \
5845 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5847 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5848 $(XSLTPROC_PROCESS_MAN)
5850 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5851 $(XSLTPROC_PROCESS_MAN)
5853 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5854 $(XSLTPROC_PROCESS_MAN)
5856 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5857 $(XSLTPROC_PROCESS_MAN)
5859 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5860 $(XSLTPROC_PROCESS_MAN)
5862 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5863 $(XSLTPROC_PROCESS_HTML)
5866 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5872 man/custom-html.xsl \
5875 # ------------------------------------------------------------------------------
5878 docs/sysvinit/README
5883 docs/sysvinit/README: docs/sysvinit/README.in
5886 docs/var-log/README: docs/var-log/README.in
5890 docs/sysvinit/README \
5895 docs/sysvinit/README.in \
5896 docs/var-log/README.in
5898 SOCKETS_TARGET_WANTS += \
5899 systemd-initctl.socket \
5900 systemd-shutdownd.socket
5904 RUNLEVEL1_TARGET_WANTS += \
5905 systemd-update-utmp-runlevel.service
5906 RUNLEVEL2_TARGET_WANTS += \
5907 systemd-update-utmp-runlevel.service
5908 RUNLEVEL3_TARGET_WANTS += \
5909 systemd-update-utmp-runlevel.service
5910 RUNLEVEL4_TARGET_WANTS += \
5911 systemd-update-utmp-runlevel.service
5912 RUNLEVEL5_TARGET_WANTS += \
5913 systemd-update-utmp-runlevel.service
5916 SYSINIT_TARGET_WANTS += \
5917 systemd-update-utmp.service
5920 SYSINIT_TARGET_WANTS += \
5921 systemd-update-done.service
5923 LOCAL_FS_TARGET_WANTS += \
5924 systemd-remount-fs.service \
5927 MULTI_USER_TARGET_WANTS += \
5929 systemd-ask-password-wall.path
5931 SYSINIT_TARGET_WANTS += \
5932 dev-hugepages.mount \
5934 sys-kernel-config.mount \
5935 sys-kernel-debug.mount \
5936 sys-fs-fuse-connections.mount \
5937 systemd-sysctl.service \
5938 systemd-ask-password-console.path
5941 SYSTEM_UNIT_ALIASES += \
5942 poweroff.target runlevel0.target \
5943 rescue.target runlevel1.target \
5944 multi-user.target runlevel2.target \
5945 multi-user.target runlevel3.target \
5946 multi-user.target runlevel4.target \
5947 graphical.target runlevel5.target \
5948 reboot.target runlevel6.target
5951 SYSTEM_UNIT_ALIASES += \
5952 graphical.target default.target \
5953 reboot.target ctrl-alt-del.target \
5954 getty@.service autovt@.service
5956 USER_UNIT_ALIASES += \
5957 $(systemunitdir)/shutdown.target shutdown.target \
5958 $(systemunitdir)/sockets.target sockets.target \
5959 $(systemunitdir)/timers.target timers.target \
5960 $(systemunitdir)/paths.target paths.target \
5961 $(systemunitdir)/bluetooth.target bluetooth.target \
5962 $(systemunitdir)/printer.target printer.target \
5963 $(systemunitdir)/sound.target sound.target \
5964 $(systemunitdir)/smartcard.target smartcard.target
5967 USER_UNIT_ALIASES += \
5968 $(systemunitdir)/busnames.target busnames.target
5971 GENERAL_ALIASES += \
5972 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5973 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5974 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5975 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5979 $(systemunitdir)/runlevel1.target.wants \
5980 $(systemunitdir)/runlevel2.target.wants \
5981 $(systemunitdir)/runlevel3.target.wants \
5982 $(systemunitdir)/runlevel4.target.wants \
5983 $(systemunitdir)/runlevel5.target.wants
5987 $(prefix)/lib/modules-load.d \
5988 $(sysconfdir)/modules-load.d \
5989 $(prefix)/lib/systemd/network \
5990 $(sysconfdir)/systemd/network \
5991 $(prefix)/lib/sysctl.d \
5992 $(sysconfdir)/sysctl.d \
5993 $(prefix)/lib/kernel/install.d \
5994 $(sysconfdir)/kernel/install.d \
5995 $(systemshutdowndir) \
5997 $(systemgeneratordir) \
5998 $(usergeneratordir) \
6001 $(pkgsysconfdir)/system \
6002 $(pkgsysconfdir)/system/multi-user.target.wants \
6003 $(pkgsysconfdir)/system/getty.target.wants \
6004 $(pkgsysconfdir)/user \
6005 $(dbussessionservicedir) \
6006 $(sysconfdir)/xdg/systemd
6008 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6010 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6012 install-data-hook: $(INSTALL_DATA_HOOKS)
6014 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6016 clean-local: $(CLEAN_LOCAL_HOOKS)
6017 rm -rf $(abs_srcdir)/install-tree
6018 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6019 $(abs_srcdir)/hwdb/iab.txt
6021 DISTCHECK_CONFIGURE_FLAGS = \
6022 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6023 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6024 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6025 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6026 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6027 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6028 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6029 --with-rootprefix=$$dc_install_base \
6030 --disable-split-usr \
6032 --enable-compat-libs
6035 DISTCHECK_CONFIGURE_FLAGS += \
6036 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6037 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6039 DISTCHECK_CONFIGURE_FLAGS += \
6040 --with-sysvinit-path= \
6041 --with-sysvrcnd-path=
6045 DISTCHECK_CONFIGURE_FLAGS += \
6050 DISTCHECK_CONFIGURE_FLAGS += \
6055 # Require python when making dist
6057 .PHONY: dist-check-python
6060 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6064 dist-check-compat-libs:
6065 if !ENABLE_COMPAT_LIBS
6066 @echo "*** compat-libs must be enabled in order to make dist"
6070 dist: dist-check-python dist-check-compat-libs
6072 # check "broken" platforms limited toolchains for link breakage before we release
6075 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6079 ( cd $(top_srcdir)/hwdb && \
6080 wget -N http://www.linux-usb.org/usb.ids \
6081 http://pci-ids.ucw.cz/v2.2/pci.ids \
6082 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6083 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6086 .PHONY: kdbus-update
6088 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6089 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6093 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6095 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6097 upload: all check dist
6098 scp systemd-$(VERSION).tar.xz $(www_target)
6101 doc-sync: all destdir-sphinx
6102 gtkdoc-rebase --html-dir=docs/libudev/html --online
6103 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6104 gtkdoc-rebase --html-dir=docs/gudev/html --online
6105 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6106 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6107 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6111 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6112 scp man/*.html tango:public/systemd-man/
6114 .PHONY: install-tree
6116 rm -rf $(abs_srcdir)/install-tree
6117 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6118 tree $(abs_srcdir)/install-tree
6120 # Let's run all tests of the test suite, but under valgrind. Let's
6121 # exclude the one perl script we have in there
6122 .PHONY: valgrind-tests
6123 valgrind-tests: $(TESTS)
6124 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6125 if file $$f | grep -q shell; then \
6126 echo -e "$${x}Skipping non-binary $$f"; else \
6127 echo -e "$${x}Running $$f"; \
6128 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6133 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6135 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6136 $(AM_V_GEN)cat $^ > $@
6138 .PHONY: check-api-docs
6139 check-api-docs: exported man
6140 $(AM_V_GEN)for symbol in `cat exported` ; do \
6141 if test -f $(builddir)/man/$$symbol.html ; then \
6142 echo " Symbol $$symbol() is documented." ; \
6144 echo "‣ Symbol $$symbol() lacks documentation." ; \
6148 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6149 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6151 undefined defined: $(ALL_OBJECTS)
6152 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6153 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6154 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6160 .PHONY: check-api-unused
6161 check-api-unused: defined undefined exported
6162 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6164 .PHONY: check-includes
6165 check-includes: $(top_srcdir)/tools/check-includes.pl
6166 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6167 | xargs $(top_srcdir)/tools/check-includes.pl
6170 $(top_srcdir)/tools/check-includes.pl
6172 # Stupid test that everything purported to be exported really is
6173 define generate-sym-test
6174 $(AM_V_at)$(MKDIR_P) $(dir $@)
6175 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6176 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6177 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6178 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6179 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6180 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6181 $(AM_V_at)printf 'return 0; }\n' >> $@
6184 test-libsystemd-sym.c: \
6185 $(top_builddir)/src/libsystemd/libsystemd.sym \
6186 src/systemd/sd-journal.h \
6187 src/systemd/sd-daemon.h \
6188 src/systemd/sd-login.h \
6189 src/systemd/sd-bus.h \
6190 src/systemd/sd-utf8.h \
6191 src/systemd/sd-resolve.h \
6192 src/systemd/sd-path.h
6193 $(generate-sym-test)
6195 test-libudev-sym.c: \
6196 src/libudev/libudev.sym \
6198 $(generate-sym-test)
6200 test_libsystemd_sym_SOURCES = \
6201 test-libsystemd-sym.c
6202 test_libsystemd_sym_LDADD = \
6205 test_libudev_sym_SOURCES = \
6207 test_libudev_sym_CFLAGS = \
6209 -Wno-deprecated-declarations
6210 test_libudev_sym_LDADD = \
6214 $(test_libsystemd_sym_SOURCES) \
6215 $(test_libudev_sym_SOURCES)
6218 test-libsystemd-sym \
6223 cppcheck --enable=all -q $(top_srcdir)
6225 # Used to extract compile flags for YCM.
6230 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u