1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfigdatadir=$(datadir)/pkgconfig
78 pkgconfiglibdir=$(libdir)/pkgconfig
79 polkitpolicydir=$(datadir)/polkit-1/actions
80 bashcompletiondir=@bashcompletiondir@
81 zshcompletiondir=@zshcompletiondir@
82 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
83 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
84 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
85 varlogdir=$(localstatedir)/log
86 systemdstatedir=$(localstatedir)/lib/systemd
87 catalogstatedir=$(systemdstatedir)/catalog
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
152 noinst_PROGRAMS = $(manual_tests) $(tests)
158 udevlibexec_PROGRAMS =
160 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
161 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
162 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165 -include $(top_builddir)/config.h \
166 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
167 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
168 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
169 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
170 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
171 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
172 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
173 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
174 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
175 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
176 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
177 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
178 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
179 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
180 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
181 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
182 -DROOTPREFIX=\"$(rootprefix)\" \
183 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
184 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
185 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
186 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
187 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
188 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
189 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
190 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
191 -DX_SERVER=\"$(bindir)/X\" \
192 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
193 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
194 -DQUOTACHECK=\"$(QUOTACHECK)\" \
195 -DKEXEC=\"$(KEXEC)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DROOTLIBDIR=\"$(rootlibdir)\" \
198 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
199 -I $(top_srcdir)/src \
200 -I $(top_builddir)/src/shared \
201 -I $(top_srcdir)/src/shared \
202 -I $(top_srcdir)/src/network \
203 -I $(top_srcdir)/src/login \
204 -I $(top_srcdir)/src/journal \
205 -I $(top_srcdir)/src/timedate \
206 -I $(top_srcdir)/src/timesync \
207 -I $(top_srcdir)/src/resolve \
208 -I $(top_builddir)/src/resolve \
209 -I $(top_srcdir)/src/systemd \
210 -I $(top_builddir)/src/core \
211 -I $(top_srcdir)/src/core \
212 -I $(top_srcdir)/src/libudev \
213 -I $(top_srcdir)/src/udev \
214 -I $(top_srcdir)/src/udev/net \
215 -I $(top_builddir)/src/udev \
216 -I $(top_srcdir)/src/libsystemd/sd-bus \
217 -I $(top_srcdir)/src/libsystemd/sd-event \
218 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
219 -I $(top_srcdir)/src/libsystemd/sd-network \
220 -I $(top_srcdir)/src/libsystemd-network \
221 -I $(top_srcdir)/src/libsystemd-terminal \
224 AM_CFLAGS = $(OUR_CFLAGS)
225 AM_LDFLAGS = $(OUR_LDFLAGS)
227 # ------------------------------------------------------------------------------
228 define move-to-rootlibdir
229 if test "$(libdir)" != "$(rootlibdir)"; then \
230 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
231 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
232 rm -f $(DESTDIR)$(libdir)/$$libname && \
233 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
234 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
240 RUNLEVEL1_TARGET_WANTS =
241 RUNLEVEL2_TARGET_WANTS =
242 RUNLEVEL3_TARGET_WANTS =
243 RUNLEVEL4_TARGET_WANTS =
244 RUNLEVEL5_TARGET_WANTS =
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 SYSINIT_TARGET_WANTS =
249 SOCKETS_TARGET_WANTS =
250 BUSNAMES_TARGET_WANTS =
251 TIMERS_TARGET_WANTS =
252 USER_SOCKETS_TARGET_WANTS =
253 USER_BUSNAMES_TARGET_WANTS =
255 SYSTEM_UNIT_ALIASES =
259 install-target-wants-hook:
260 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
261 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 install-busnames-target-wants-hook:
275 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
276 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
279 [ -z "$$what" ] || ( \
280 dir=$(DESTDIR)$$dir/$$wants.wants && \
281 $(MKDIR_P) -m 0755 $$dir && \
284 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
287 install-directories-hook:
288 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
290 install-aliases-hook:
291 set -- $(SYSTEM_UNIT_ALIASES) && \
292 dir=$(systemunitdir) && $(install-aliases)
293 set -- $(USER_UNIT_ALIASES) && \
294 dir=$(userunitdir) && $(install-relative-aliases)
295 set -- $(GENERAL_ALIASES) && \
296 dir= && $(install-relative-aliases)
298 define install-aliases
299 while [ -n "$$1" ]; do \
300 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
301 rm -f $(DESTDIR)$$dir/$$2 && \
302 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
303 shift 2 || exit $$?; \
307 define install-relative-aliases
308 while [ -n "$$1" ]; do \
309 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
310 rm -f $(DESTDIR)$$dir/$$2 && \
311 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
312 shift 2 || exit $$?; \
316 install-touch-usr-hook:
317 touch -c $(DESTDIR)/$(prefix)
319 INSTALL_EXEC_HOOKS += \
320 install-target-wants-hook \
321 install-directories-hook \
322 install-aliases-hook \
323 install-touch-usr-hook
326 INSTALL_EXEC_HOOKS += \
327 install-busnames-target-wants-hook
330 # ------------------------------------------------------------------------------
331 AM_V_M4 = $(AM_V_M4_$(V))
332 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
333 AM_V_M4_0 = @echo " M4 " $@;
335 AM_V_XSLT = $(AM_V_XSLT_$(V))
336 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
337 AM_V_XSLT_0 = @echo " XSLT " $@;
339 AM_V_GPERF = $(AM_V_GPERF_$(V))
340 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
341 AM_V_GPERF_0 = @echo " GPERF " $@;
343 AM_V_LN = $(AM_V_LN_$(V))
344 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
345 AM_V_LN_0 = @echo " LN " $@;
347 AM_V_RM = $(AM_V_RM_$(V))
348 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
349 AM_V_RM_0 = @echo " RM " $@;
351 # ------------------------------------------------------------------------------
355 systemd-ask-password \
356 systemd-tty-ask-password-agent \
357 systemd-machine-id-setup \
364 systemd-detect-virt \
371 src/kernel-install/kernel-install
373 dist_kernelinstall_SCRIPTS = \
374 src/kernel-install/50-depmod.install \
375 src/kernel-install/90-loaderentry.install
377 rootlibexec_PROGRAMS = \
379 systemd-cgroups-agent \
384 systemd-reply-password \
390 systemd-socket-proxyd \
394 rootlibexec_PROGRAMS += \
398 systemgenerator_PROGRAMS = \
399 systemd-getty-generator \
400 systemd-fstab-generator \
401 systemd-system-update-generator \
402 systemd-debug-generator
404 dist_bashcompletion_DATA = \
405 shell-completion/bash/busctl \
406 shell-completion/bash/journalctl \
407 shell-completion/bash/systemd-analyze \
408 shell-completion/bash/systemd-cat \
409 shell-completion/bash/systemd-cgls \
410 shell-completion/bash/systemd-cgtop \
411 shell-completion/bash/systemd-delta \
412 shell-completion/bash/systemd-detect-virt \
413 shell-completion/bash/systemd-nspawn \
414 shell-completion/bash/systemd-run \
415 shell-completion/bash/udevadm \
416 shell-completion/bash/kernel-install
418 nodist_bashcompletion_DATA = \
419 shell-completion/bash/systemctl
421 dist_zshcompletion_DATA = \
422 shell-completion/zsh/_journalctl \
423 shell-completion/zsh/_udevadm \
424 shell-completion/zsh/_kernel-install \
425 shell-completion/zsh/_systemd-nspawn \
426 shell-completion/zsh/_systemd-analyze \
427 shell-completion/zsh/_systemd-run \
428 shell-completion/zsh/_sd_hosts_or_user_at_host \
429 shell-completion/zsh/_sd_outputmodes \
430 shell-completion/zsh/_sd_unit_files \
431 shell-completion/zsh/_systemd-delta \
432 shell-completion/zsh/_systemd
434 nodist_zshcompletion_DATA = \
435 shell-completion/zsh/_systemctl
438 shell-completion/bash/systemctl.in \
439 shell-completion/zsh/_systemctl.in
442 $(nodist_bashcompletion_DATA) \
443 $(nodist_zshcompletion_DATA)
446 sysctl.d/50-default.conf
448 dist_systemunit_DATA = \
449 units/graphical.target \
450 units/multi-user.target \
451 units/emergency.target \
452 units/sysinit.target \
457 units/local-fs.target \
458 units/local-fs-pre.target \
459 units/initrd.target \
460 units/initrd-fs.target \
461 units/initrd-root-fs.target \
462 units/remote-fs.target \
463 units/remote-fs-pre.target \
464 units/network.target \
465 units/network-pre.target \
466 units/network-online.target \
467 units/nss-lookup.target \
468 units/nss-user-lookup.target \
469 units/poweroff.target \
470 units/reboot.target \
471 units/rescue.target \
472 units/rpcbind.target \
473 units/time-sync.target \
474 units/shutdown.target \
476 units/umount.target \
477 units/sigpwr.target \
479 units/sockets.target \
480 units/timers.target \
482 units/suspend.target \
484 units/slices.target \
487 units/systemd-initctl.socket \
488 units/systemd-shutdownd.socket \
489 units/syslog.socket \
490 units/dev-hugepages.mount \
491 units/dev-mqueue.mount \
492 units/sys-kernel-config.mount \
493 units/sys-kernel-debug.mount \
494 units/sys-fs-fuse-connections.mount \
496 units/printer.target \
498 units/bluetooth.target \
499 units/smartcard.target \
500 units/systemd-ask-password-wall.path \
501 units/systemd-ask-password-console.path \
502 units/systemd-udevd-control.socket \
503 units/systemd-udevd-kernel.socket \
504 units/system-update.target \
505 units/initrd-switch-root.target
508 dist_systemunit_DATA += \
509 $(dist_systemunit_DATA_busnames)
512 dist_systemunit_DATA_busnames += \
513 units/busnames.target
515 nodist_systemunit_DATA = \
516 units/getty@.service \
517 units/serial-getty@.service \
518 units/console-shell.service \
519 units/console-getty.service \
520 units/container-getty@.service \
521 units/systemd-initctl.service \
522 units/systemd-shutdownd.service \
523 units/systemd-remount-fs.service \
524 units/systemd-ask-password-wall.service \
525 units/systemd-ask-password-console.service \
526 units/systemd-sysctl.service \
527 units/emergency.service \
528 units/rescue.service \
529 units/user@.service \
530 units/systemd-suspend.service \
531 units/systemd-halt.service \
532 units/systemd-poweroff.service \
533 units/systemd-reboot.service \
534 units/systemd-kexec.service \
535 units/systemd-fsck@.service \
536 units/systemd-fsck-root.service \
537 units/systemd-udevd.service \
538 units/systemd-udev-trigger.service \
539 units/systemd-udev-settle.service \
540 units/systemd-udev-hwdb-update.service \
541 units/debug-shell.service \
542 units/initrd-parse-etc.service \
543 units/initrd-cleanup.service \
544 units/initrd-udevadm-cleanup-db.service \
545 units/initrd-switch-root.service \
546 units/systemd-nspawn@.service \
547 units/systemd-update-done.service
550 nodist_systemunit_DATA += \
551 units/systemd-update-utmp.service \
552 units/systemd-update-utmp-runlevel.service
555 dist_userunit_DATA = \
556 units/user/basic.target \
557 units/user/default.target \
558 units/user/exit.target
560 nodist_userunit_DATA = \
561 units/user/systemd-exit.service
563 dist_systempreset_DATA = \
564 system-preset/90-systemd.preset
567 units/getty@.service.m4 \
568 units/serial-getty@.service.m4 \
569 units/console-shell.service.m4.in \
570 units/console-getty.service.m4.in \
571 units/container-getty@.service.m4.in \
572 units/rescue.service.in \
573 units/systemd-initctl.service.in \
574 units/systemd-shutdownd.service.in \
575 units/systemd-remount-fs.service.in \
576 units/systemd-update-utmp.service.in \
577 units/systemd-update-utmp-runlevel.service.in \
578 units/systemd-ask-password-wall.service.in \
579 units/systemd-ask-password-console.service.in \
580 units/systemd-sysctl.service.in \
581 units/emergency.service.in \
582 units/systemd-halt.service.in \
583 units/systemd-poweroff.service.in \
584 units/systemd-reboot.service.in \
585 units/systemd-kexec.service.in \
586 units/user/systemd-exit.service.in \
587 units/systemd-fsck@.service.in \
588 units/systemd-fsck-root.service.in \
589 units/user@.service.in \
590 units/debug-shell.service.in \
591 units/systemd-suspend.service.in \
592 units/quotaon.service.in \
593 units/initrd-parse-etc.service.in \
594 units/initrd-cleanup.service.in \
595 units/initrd-udevadm-cleanup-db.service.in \
596 units/initrd-switch-root.service.in \
597 units/systemd-nspawn@.service.in \
598 units/systemd-update-done.service.in
601 units/console-shell.service.m4 \
602 units/console-getty.service.m4 \
603 units/container-getty@.service.m4 \
604 units/user@.service.m4
607 nodist_systemunit_DATA += \
608 units/rc-local.service \
609 units/halt-local.service
611 systemgenerator_PROGRAMS += \
612 systemd-sysv-generator \
613 systemd-rc-local-generator
617 units/rc-local.service.in \
618 units/halt-local.service.in
620 # automake is broken and can't handle files with a dash in front
621 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
623 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
625 units-uninstall-hook:
626 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
628 INSTALL_DATA_HOOKS += units-install-hook
629 UNINSTALL_DATA_HOOKS += units-uninstall-hook
638 src/libsystemd/sd-bus/PORTING-DBUS1 \
639 src/libsystemd/sd-bus/DIFFERENCES \
640 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
642 @INTLTOOL_POLICY_RULE@
644 # ------------------------------------------------------------------------------
649 include Makefile-man.am
651 .PHONY: man update-man-list
652 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
655 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
657 ${XML_FILES:.xml=.html}
659 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
676 $(AM_V_at)$(MKDIR_P) $(dir $@)
677 $(AM_V_LN)$(LN_S) -f ../../man $@
686 man/index.html: man/systemd.index.html
687 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
695 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
696 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
697 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
699 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
700 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
701 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
702 @echo "Makefile-man.am has been regenerated"
704 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
705 $(AM_V_at)$(MKDIR_P) $(dir $@)
706 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
708 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
709 $(AM_V_at)$(MKDIR_P) $(dir $@)
710 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
713 man/systemd.index.xml \
715 man/systemd.directives.xml
718 man/systemd.index.xml \
719 man/systemd.directives.xml
730 tools/make-man-index.py \
731 tools/make-directive-index.py \
734 # ------------------------------------------------------------------------------
735 noinst_LTLIBRARIES += \
738 libsystemd_shared_la_SOURCES = \
739 src/shared/linux/auto_dev-ioctl.h \
740 src/shared/linux/fanotify.h \
741 src/shared/ioprio.h \
742 src/shared/missing.h \
743 src/shared/initreq.h \
744 src/shared/securebits.h \
745 src/shared/special.h \
749 src/shared/sparse-endian.h \
750 src/shared/refcnt.h \
751 src/shared/udev-util.h \
752 src/shared/bus-errors.h \
753 src/shared/device-nodes.c \
754 src/shared/device-nodes.h \
759 src/shared/architecture.c \
760 src/shared/architecture.h \
761 src/shared/efivars.c \
762 src/shared/efivars.h \
763 src/shared/path-util.c \
764 src/shared/path-util.h \
765 src/shared/time-util.c \
766 src/shared/time-util.h \
767 src/shared/locale-util.c \
768 src/shared/locale-util.h \
769 src/shared/hashmap.c \
770 src/shared/hashmap.h \
771 src/shared/siphash24.c \
772 src/shared/siphash24.h \
779 src/shared/sleep-config.c \
780 src/shared/sleep-config.h \
783 src/shared/env-util.c \
784 src/shared/env-util.h \
785 src/shared/strbuf.c \
786 src/shared/strbuf.h \
787 src/shared/strxcpyx.c \
788 src/shared/strxcpyx.h \
789 src/shared/conf-parser.c \
790 src/shared/conf-parser.h \
793 src/shared/ratelimit.h \
794 src/shared/ratelimit.c \
795 src/shared/exit-status.c \
796 src/shared/exit-status.h \
799 src/shared/gunicode.c \
800 src/shared/gunicode.h \
803 src/shared/socket-util.c \
804 src/shared/socket-util.h \
805 src/shared/in-addr-util.c \
806 src/shared/in-addr-util.h \
807 src/shared/conf-files.c \
808 src/shared/conf-files.h \
809 src/shared/cgroup-util.c \
810 src/shared/cgroup-util.h \
811 src/shared/cgroup-show.c \
812 src/shared/cgroup-show.h \
813 src/shared/unit-name.c \
814 src/shared/unit-name.h \
815 src/shared/utmp-wtmp.h \
816 src/shared/watchdog.c \
817 src/shared/watchdog.h \
818 src/shared/spawn-ask-password-agent.c \
819 src/shared/spawn-ask-password-agent.h \
820 src/shared/replace-var.c \
821 src/shared/replace-var.h \
822 src/shared/spawn-polkit-agent.c \
823 src/shared/spawn-polkit-agent.h \
824 src/shared/clock-util.c \
825 src/shared/clock-util.h \
826 src/shared/time-dst.c \
827 src/shared/time-dst.h \
828 src/shared/calendarspec.c \
829 src/shared/calendarspec.h \
830 src/shared/fileio.c \
831 src/shared/fileio.h \
832 src/shared/output-mode.h \
833 src/shared/MurmurHash2.c \
834 src/shared/MurmurHash2.h \
835 src/shared/acpi-fpdt.h \
836 src/shared/acpi-fpdt.c \
837 src/shared/boot-timestamps.h \
838 src/shared/boot-timestamps.c \
841 src/shared/smack-util.c \
842 src/shared/smack-util.h \
843 src/shared/apparmor-util.c \
844 src/shared/apparmor-util.h \
845 src/shared/ima-util.c \
846 src/shared/ima-util.h \
847 src/shared/ptyfwd.c \
848 src/shared/ptyfwd.h \
849 src/shared/errno-list.c \
850 src/shared/errno-list.h \
851 src/shared/af-list.c \
852 src/shared/af-list.h \
853 src/shared/arphrd-list.c \
854 src/shared/arphrd-list.h \
859 src/shared/condition-util.c \
860 src/shared/condition-util.h \
861 src/shared/bus-label.c \
862 src/shared/bus-label.h \
864 src/shared/clean-ipc.h \
865 src/shared/clean-ipc.c \
866 src/shared/login-shared.c \
867 src/shared/login-shared.h \
870 src/shared/barrier.c \
871 src/shared/barrier.h \
878 src/shared/base-filesystem.c \
879 src/shared/base-filesystem.h \
882 src/shared/uid-range.c \
883 src/shared/uid-range.h \
884 src/shared/switch-root.h \
885 src/shared/switch-root.c \
886 src/shared/nss-util.h
889 libsystemd_shared_la_SOURCES += \
890 src/shared/utmp-wtmp.c
893 nodist_libsystemd_shared_la_SOURCES = \
894 src/shared/errno-from-name.h \
895 src/shared/errno-to-name.h \
896 src/shared/af-from-name.h \
897 src/shared/af-to-name.h \
898 src/shared/arphrd-from-name.h \
899 src/shared/arphrd-to-name.h
901 libsystemd_shared_la_CFLAGS = \
906 # ------------------------------------------------------------------------------
907 noinst_LTLIBRARIES += \
910 libsystemd_units_la_SOURCES = \
911 src/shared/install.c \
912 src/shared/install.h \
913 src/shared/install-printf.c \
914 src/shared/install-printf.h \
915 src/shared/path-lookup.c \
916 src/shared/path-lookup.h \
917 src/shared/specifier.c \
918 src/shared/specifier.h
920 # ------------------------------------------------------------------------------
921 noinst_LTLIBRARIES += \
924 libsystemd_label_la_SOURCES = \
925 src/shared/socket-label.c \
928 src/shared/selinux-util.c \
929 src/shared/selinux-util.h \
930 src/shared/mkdir-label.c \
931 src/shared/ask-password-api.c \
932 src/shared/ask-password-api.h \
933 src/shared/fileio-label.c \
934 src/shared/fileio-label.h \
935 src/shared/dev-setup.c \
936 src/shared/dev-setup.h \
937 src/shared/dropin.c \
938 src/shared/dropin.h \
939 src/shared/generator.h \
940 src/shared/generator.c
942 libsystemd_label_la_CFLAGS = \
946 libsystemd_label_la_LIBADD = \
949 # -----------------------------------------------------------------------------
952 dist_systemunit_DATA += \
953 units/ldconfig.service
955 SYSINIT_TARGET_WANTS += \
959 # ------------------------------------------------------------------------------
962 noinst_LTLIBRARIES += \
963 libsystemd-seccomp.la
965 libsystemd_seccomp_la_SOURCES = \
966 src/shared/seccomp-util.h \
967 src/shared/seccomp-util.c
969 libsystemd_seccomp_la_CFLAGS = \
973 libsystemd_seccomp_la_LIBADD = \
977 # ------------------------------------------------------------------------------
978 noinst_LTLIBRARIES += \
981 libsystemd_logs_la_SOURCES = \
982 src/shared/logs-show.c \
983 src/shared/logs-show.h
985 # ------------------------------------------------------------------------------
986 noinst_LTLIBRARIES += \
987 libsystemd-capability.la
989 libsystemd_capability_la_SOURCES = \
990 src/shared/capability.c \
991 src/shared/capability.h
993 libsystemd_capability_la_CFLAGS = \
997 libsystemd_capability_la_LIBADD = \
1000 # ------------------------------------------------------------------------------
1002 noinst_LTLIBRARIES += \
1005 libsystemd_acl_la_SOURCES = \
1006 src/shared/acl-util.c \
1007 src/shared/acl-util.h
1009 libsystemd_acl_la_CFLAGS = \
1013 libsystemd_acl_la_LIBADD = \
1017 # ------------------------------------------------------------------------------
1018 noinst_LTLIBRARIES += \
1021 libsystemd_core_la_SOURCES = \
1024 src/core/unit-printf.c \
1025 src/core/unit-printf.h \
1028 src/core/manager.c \
1029 src/core/manager.h \
1030 src/core/transaction.c \
1031 src/core/transaction.h \
1032 src/core/load-fragment.c \
1033 src/core/load-fragment.h \
1034 src/core/service.c \
1035 src/core/service.h \
1038 src/core/busname.c \
1039 src/core/busname.h \
1040 src/core/bus-common.c \
1041 src/core/bus-common.h \
1042 src/core/bus-endpoint.c \
1043 src/core/bus-endpoint.h \
1046 src/core/snapshot.c \
1047 src/core/snapshot.h \
1052 src/core/automount.c \
1053 src/core/automount.h \
1064 src/core/load-dropin.c \
1065 src/core/load-dropin.h \
1066 src/core/execute.c \
1067 src/core/execute.h \
1072 src/core/dbus-manager.c \
1073 src/core/dbus-manager.h \
1074 src/core/dbus-unit.c \
1075 src/core/dbus-unit.h \
1076 src/core/dbus-job.c \
1077 src/core/dbus-job.h \
1078 src/core/dbus-service.c \
1079 src/core/dbus-service.h \
1080 src/core/dbus-socket.c \
1081 src/core/dbus-socket.h \
1082 src/core/dbus-busname.c \
1083 src/core/dbus-busname.h \
1084 src/core/dbus-target.c \
1085 src/core/dbus-target.h \
1086 src/core/dbus-snapshot.c \
1087 src/core/dbus-snapshot.h \
1088 src/core/dbus-device.c \
1089 src/core/dbus-device.h \
1090 src/core/dbus-mount.c \
1091 src/core/dbus-mount.h \
1092 src/core/dbus-automount.c \
1093 src/core/dbus-automount.h \
1094 src/core/dbus-swap.c \
1095 src/core/dbus-swap.h \
1096 src/core/dbus-timer.c \
1097 src/core/dbus-timer.h \
1098 src/core/dbus-path.c \
1099 src/core/dbus-path.h \
1100 src/core/dbus-slice.c \
1101 src/core/dbus-slice.h \
1102 src/core/dbus-scope.c \
1103 src/core/dbus-scope.h \
1104 src/core/dbus-execute.c \
1105 src/core/dbus-execute.h \
1106 src/core/dbus-kill.c \
1107 src/core/dbus-kill.h \
1108 src/core/dbus-cgroup.c \
1109 src/core/dbus-cgroup.h \
1112 src/core/selinux-access.c \
1113 src/core/selinux-access.h \
1114 src/core/selinux-setup.c \
1115 src/core/selinux-setup.h \
1116 src/core/smack-setup.c \
1117 src/core/smack-setup.h \
1118 src/core/ima-setup.c \
1119 src/core/ima-setup.h \
1120 src/core/locale-setup.h \
1121 src/core/locale-setup.c \
1122 src/core/hostname-setup.c \
1123 src/core/hostname-setup.h \
1124 src/core/machine-id-setup.c \
1125 src/core/machine-id-setup.h \
1126 src/core/mount-setup.c \
1127 src/core/mount-setup.h \
1128 src/core/loopback-setup.h \
1129 src/core/loopback-setup.c \
1130 src/core/condition.c \
1131 src/core/condition.h \
1132 src/core/namespace.c \
1133 src/core/namespace.h \
1135 src/core/sysfs-show.h \
1136 src/core/killall.h \
1137 src/core/killall.c \
1138 src/core/audit-fd.c \
1139 src/core/audit-fd.h \
1140 src/core/show-status.c \
1141 src/core/show-status.h \
1142 src/core/failure-action.c \
1143 src/core/failure-action.h
1146 libsystemd_core_la_SOURCES += \
1147 src/core/kmod-setup.c \
1148 src/core/kmod-setup.h
1151 nodist_libsystemd_core_la_SOURCES = \
1152 src/core/load-fragment-gperf.c \
1153 src/core/load-fragment-gperf-nulstr.c
1155 libsystemd_core_la_CFLAGS = \
1161 $(APPARMOR_CFLAGS) \
1165 libsystemd_core_la_LIBADD = \
1166 libsystemd-capability.la \
1167 libsystemd-units.la \
1168 libsystemd-label.la \
1169 libudev-internal.la \
1170 libsystemd-shared.la \
1171 libsystemd-internal.la \
1180 libsystemd_core_la_LIBADD += \
1181 libsystemd-seccomp.la
1184 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1185 $(AM_V_at)$(MKDIR_P) $(dir $@)
1186 $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
1189 src/core/load-fragment-gperf.gperf.m4
1192 src/core/load-fragment-gperf.gperf \
1193 src/core/load-fragment-gperf.c \
1194 src/core/load-fragment-gperf-nulstr.c \
1195 src/shared/errno-list.txt \
1196 src/shared/errno-from-name.gperf \
1197 src/shared/af-list.txt \
1198 src/shared/af-from-name.gperf \
1199 src/shared/arphrd-list.txt \
1200 src/shared/arphrd-from-name.gperf \
1201 src/shared/dns_type-list.txt \
1202 src/shared/dns_type-from-name.gperf
1205 src/shared/errno-from-name.h \
1206 src/shared/errno-to-name.h \
1207 src/shared/af-from-name.h \
1208 src/shared/af-to-name.h \
1209 src/shared/arphrd-from-name.h \
1210 src/shared/arphrd-to-name.h \
1211 src/resolve/dns_type-from-name.h \
1212 src/resolve/dns_type-to-name.h
1214 %-from-name.gperf: %-list.txt
1215 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1217 %-from-name.h: %-from-name.gperf
1218 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1221 src/shared/errno-list.txt:
1222 $(AM_V_at)$(MKDIR_P) $(dir $@)
1223 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1225 src/shared/errno-to-name.h: src/shared/errno-list.txt
1226 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1229 src/shared/af-list.txt:
1230 $(AM_V_at)$(MKDIR_P) $(dir $@)
1231 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1233 src/shared/af-to-name.h: src/shared/af-list.txt
1234 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1236 src/shared/arphrd-list.txt:
1237 $(AM_V_at)$(MKDIR_P) $(dir $@)
1238 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1240 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1241 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1243 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1244 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1247 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1248 $(AM_V_at)$(MKDIR_P) $(dir $@)
1249 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1251 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1252 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1254 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1255 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1257 # ------------------------------------------------------------------------------
1266 libsystemd-core.la \
1269 dist_pkgsysconf_DATA += \
1270 src/core/system.conf \
1273 dist_dbuspolicy_DATA += \
1274 src/core/org.freedesktop.systemd1.conf
1276 dist_dbussystemservice_DATA += \
1277 src/core/org.freedesktop.systemd1.service
1279 polkitpolicy_in_in_files += \
1280 src/core/org.freedesktop.systemd1.policy.in.in
1282 pkgconfigdata_DATA = \
1285 nodist_rpmmacros_DATA = \
1286 src/core/macros.systemd
1289 src/core/systemd.pc.in \
1290 src/core/macros.systemd.in
1293 src/core/macros.systemd \
1294 src/core/org.freedesktop.systemd1.policy.in
1296 # ------------------------------------------------------------------------------
1338 test-strip-tab-ansi \
1356 test-condition-util \
1365 test/daughter.service \
1370 test/grandchild.service \
1372 test/hello-after-sleep.target \
1373 test/hello.service \
1375 test/parent-deep.slice \
1378 test/sched_idle_bad.service \
1379 test/sched_idle_ok.service \
1380 test/sched_rr_bad.service \
1381 test/sched_rr_change.service \
1382 test/sched_rr_ok.service \
1383 test/shutdown.target \
1384 test/sleep.service \
1385 test/sockets.target \
1387 test/sysinit.target \
1388 test/testsuite.target \
1389 test/timers.target \
1390 test/unstoppable.service \
1391 test/bus-policy/hello.conf \
1392 test/bus-policy/methods.conf \
1393 test/bus-policy/ownerships.conf \
1394 test/bus-policy/signals.conf
1398 src/test/test-helper.h
1400 test_device_nodes_SOURCES = \
1401 src/test/test-device-nodes.c
1403 test_device_nodes_LDADD = \
1404 libsystemd-shared.la
1406 test_engine_SOURCES = \
1407 src/test/test-engine.c
1409 test_engine_CFLAGS = \
1413 test_engine_LDADD = \
1414 libsystemd-core.la \
1417 test_job_type_SOURCES = \
1418 src/test/test-job-type.c
1420 test_job_type_CFLAGS = \
1424 test_job_type_LDADD = \
1425 libsystemd-core.la \
1438 test_loopback_SOURCES = \
1439 src/test/test-loopback.c
1441 test_loopback_LDADD = \
1444 test_hostname_SOURCES = \
1445 src/test/test-hostname.c
1447 test_hostname_LDADD = \
1454 test_boot_timestamp_SOURCES = \
1455 src/test/test-boot-timestamps.c
1457 test_boot_timestamp_LDADD = \
1458 libsystemd-shared.la
1461 test_unit_name_SOURCES = \
1462 src/test/test-unit-name.c
1464 test_unit_name_CFLAGS = \
1468 test_unit_name_LDADD = \
1469 libsystemd-core.la \
1472 test_unit_file_SOURCES = \
1473 src/test/test-unit-file.c
1475 test_unit_file_CFLAGS = \
1479 test_unit_file_LDADD = \
1480 libsystemd-core.la \
1483 test_utf8_SOURCES = \
1484 src/test/test-utf8.c
1487 libsystemd-shared.la
1489 test_capability_SOURCES = \
1490 src/test/test-capability.c
1492 test_capability_LDADD = \
1493 libsystemd-shared.la \
1494 libsystemd-capability.la
1496 test_async_SOURCES = \
1497 src/test/test-async.c
1499 test_async_LDADD = \
1500 libsystemd-shared.la
1502 test_condition_util_SOURCES = \
1503 src/test/test-condition-util.c
1505 test_condition_util_LDADD = \
1506 libsystemd-shared.la \
1507 libsystemd-internal.la
1510 test_fdset_SOURCES = \
1511 src/test/test-fdset.c
1513 test_fdset_LDADD = \
1516 test_ratelimit_SOURCES = \
1517 src/test/test-ratelimit.c
1519 test_ratelimit_LDADD = \
1520 libsystemd-shared.la
1522 test_util_SOURCES = \
1523 src/test/test-util.c
1528 test_uid_range_SOURCES = \
1529 src/test/test-uid-range.c
1531 test_uid_range_LDADD = \
1534 test_socket_util_SOURCES = \
1535 src/test/test-socket-util.c
1537 test_socket_util_LDADD = \
1540 test_ring_SOURCES = \
1541 src/test/test-ring.c
1546 test_barrier_SOURCES = \
1547 src/test/test-barrier.c
1549 test_barrier_LDADD = \
1552 test_pty_SOURCES = \
1558 test_tmpfiles_SOURCES = \
1559 src/test/test-tmpfiles.c
1561 test_tmpfiles_LDADD = \
1562 libsystemd-shared.la
1564 test_namespace_SOURCES = \
1565 src/test/test-namespace.c
1567 test_namespace_LDADD = \
1570 test_hashmap_SOURCES = \
1571 src/test/test-hashmap.c
1573 test_hashmap_LDADD = \
1576 test_set_SOURCES = \
1582 test_xml_SOURCES = \
1586 libsystemd-shared.la
1588 test_list_SOURCES = \
1589 src/test/test-list.c
1594 test_tables_SOURCES = \
1595 src/test/test-tables.c \
1596 src/shared/test-tables.h \
1597 src/bus-proxyd/bus-policy.c \
1598 src/bus-proxyd/bus-policy.h \
1599 src/journal/journald-server.c \
1600 src/journal/journald-server.h
1602 test_tables_CPPFLAGS = \
1604 -I$(top_srcdir)/src/bus-proxyd
1606 test_tables_CFLAGS = \
1610 test_tables_LDADD = \
1611 libsystemd-logs.la \
1612 libsystemd-journal-internal.la \
1613 libsystemd-journal-core.la \
1614 libsystemd-core.la \
1618 test_prioq_SOURCES = \
1619 src/test/test-prioq.c
1621 test_prioq_LDADD = \
1624 test_fileio_SOURCES = \
1625 src/test/test-fileio.c
1627 test_fileio_LDADD = \
1630 test_time_SOURCES = \
1631 src/test/test-time.c
1636 test_architecture_SOURCES = \
1637 src/test/test-architecture.c
1639 test_architecture_LDADD = \
1640 libsystemd-shared.la
1642 test_log_SOURCES = \
1648 test_ipcrm_SOURCES = \
1649 src/test/test-ipcrm.c
1651 test_ipcrm_LDADD = \
1652 libsystemd-shared.la \
1655 test_rtnl_manual_SOURCES = \
1656 src/test/test-rtnl-manual.c
1658 test_rtnl_manual_CFLAGS = \
1662 test_rtnl_manual_LDADD = \
1663 libsystemd-internal.la \
1664 libsystemd-shared.la \
1667 test_ellipsize_SOURCES = \
1668 src/test/test-ellipsize.c
1670 test_ellipsize_LDADD = \
1673 test_date_SOURCES = \
1674 src/test/test-date.c
1679 test_sleep_SOURCES = \
1680 src/test/test-sleep.c
1682 test_sleep_LDADD = \
1685 test_replace_var_SOURCES = \
1686 src/test/test-replace-var.c
1688 test_replace_var_LDADD = \
1689 libsystemd-shared.la
1691 test_calendarspec_SOURCES = \
1692 src/test/test-calendarspec.c
1694 test_calendarspec_LDADD = \
1695 libsystemd-shared.la
1697 test_strip_tab_ansi_SOURCES = \
1698 src/test/test-strip-tab-ansi.c
1700 test_strip_tab_ansi_LDADD = \
1701 libsystemd-shared.la
1703 test_daemon_SOURCES = \
1704 src/test/test-daemon.c
1706 test_daemon_LDADD = \
1707 libsystemd-internal.la \
1708 libsystemd-shared.la
1710 test_cgroup_SOURCES = \
1711 src/test/test-cgroup.c
1713 test_cgroup_LDADD = \
1714 libsystemd-label.la \
1715 libsystemd-shared.la \
1716 libsystemd-internal.la
1718 test_cgroup_mask_SOURCES = \
1719 src/test/test-cgroup-mask.c
1721 test_cgroup_mask_CPPFLAGS = \
1723 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1725 test_cgroup_mask_CFLAGS = \
1729 test_cgroup_mask_LDADD = \
1730 libsystemd-core.la \
1733 test_cgroup_util_SOURCES = \
1734 src/test/test-cgroup-util.c
1736 test_cgroup_util_LDADD = \
1737 libsystemd-label.la \
1738 libsystemd-internal.la \
1739 libsystemd-shared.la
1741 test_env_replace_SOURCES = \
1742 src/test/test-env-replace.c
1744 test_env_replace_LDADD = \
1745 libsystemd-shared.la
1747 test_strbuf_SOURCES = \
1748 src/test/test-strbuf.c
1750 test_strbuf_LDADD = \
1751 libsystemd-shared.la
1753 test_strv_SOURCES = \
1754 src/test/test-strv.c
1757 libsystemd-units.la \
1758 libsystemd-internal.la \
1759 libsystemd-shared.la
1761 test_path_util_SOURCES = \
1762 src/test/test-path-util.c
1764 test_path_util_LDADD = \
1765 libsystemd-shared.la
1767 test_strxcpyx_SOURCES = \
1768 src/test/test-strxcpyx.c
1770 test_strxcpyx_LDADD = \
1771 libsystemd-shared.la
1773 test_install_SOURCES = \
1774 src/test/test-install.c
1776 test_install_LDADD = \
1777 libsystemd-units.la \
1778 libsystemd-label.la \
1779 libsystemd-shared.la \
1780 libsystemd-internal.la
1782 test_watchdog_SOURCES = \
1783 src/test/test-watchdog.c
1785 test_watchdog_LDADD = \
1786 libsystemd-shared.la
1788 test_sched_prio_SOURCES = \
1789 src/test/test-sched-prio.c
1791 test_sched_prio_CPPFLAGS = \
1793 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1795 test_sched_prio_CFLAGS = \
1799 test_sched_prio_LDADD = \
1800 libsystemd-core.la \
1803 test_conf_files_SOURCES = \
1804 src/test/test-conf-files.c
1806 test_conf_files_LDADD = \
1807 libsystemd-shared.la
1809 test_bus_policy_SOURCES = \
1810 src/bus-proxyd/test-bus-policy.c \
1811 src/bus-proxyd/bus-policy.c \
1812 src/bus-proxyd/bus-policy.h
1814 test_bus_policy_LDADD = \
1815 libsystemd-capability.la \
1816 libsystemd-internal.la \
1817 libsystemd-shared.la
1819 # ------------------------------------------------------------------------------
1820 ## .PHONY so it always rebuilds it
1821 .PHONY: coverage lcov-run lcov-report coverage-sync
1823 # run lcov from scratch, always
1828 coverage_dir = coverage
1829 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1832 # reset run coverage tests
1834 @rm -rf $(coverage_dir)
1835 lcov $(coverage_opts) --zerocounters
1838 # generate report based on current coverage data
1840 $(MKDIR_P) $(coverage_dir)
1841 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1842 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1843 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1844 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1846 # lcov doesn't work properly with vpath builds, make sure that bad
1847 # output is not uploaded by mistake.
1848 coverage-sync: coverage
1849 test "$(builddir)" = "$(srcdir)"
1850 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1853 lcov-run lcov-report:
1854 echo "Need to reconfigure with --enable-coverage"
1857 # ------------------------------------------------------------------------------
1858 systemd_analyze_SOURCES = \
1859 src/analyze/analyze.c \
1860 src/analyze/analyze-verify.c \
1861 src/analyze/analyze-verify.h
1863 systemd_verify_CFLAGS = \
1867 systemd_analyze_LDADD = \
1868 libsystemd-core.la \
1869 libsystemd-internal.la \
1870 libsystemd-shared.la \
1873 # ------------------------------------------------------------------------------
1874 systemd_initctl_SOURCES = \
1875 src/initctl/initctl.c
1877 systemd_initctl_LDADD = \
1878 libsystemd-internal.la \
1879 libsystemd-shared.la
1881 # ------------------------------------------------------------------------------
1882 systemd_update_utmp_SOURCES = \
1883 src/update-utmp/update-utmp.c
1885 systemd_update_utmp_CFLAGS = \
1889 systemd_update_utmp_LDADD = \
1890 libsystemd-internal.la \
1891 libsystemd-shared.la \
1894 # ------------------------------------------------------------------------------
1895 systemd_update_done_SOURCES = \
1896 src/update-done/update-done.c
1898 systemd_update_done_LDADD = \
1899 libsystemd-internal.la \
1900 libsystemd-label.la \
1901 libsystemd-shared.la
1903 # ------------------------------------------------------------------------------
1904 systemd_shutdownd_SOURCES = \
1905 src/shutdownd/shutdownd.c
1907 systemd_shutdownd_LDADD = \
1908 libsystemd-label.la \
1909 libsystemd-internal.la \
1910 libsystemd-shared.la
1913 src/systemd/sd-shutdown.h
1915 # ------------------------------------------------------------------------------
1916 systemd_shutdown_SOURCES = \
1919 src/core/shutdown.c \
1920 src/core/mount-setup.c \
1921 src/core/mount-setup.h \
1922 src/core/killall.h \
1925 systemd_shutdown_LDADD = \
1926 libsystemd-label.la \
1927 libudev-internal.la \
1928 libsystemd-shared.la
1930 # ------------------------------------------------------------------------------
1932 systemd_modules_load_SOURCES = \
1933 src/modules-load/modules-load.c
1935 systemd_modules_load_CFLAGS = \
1939 systemd_modules_load_LDADD = \
1940 libsystemd-shared.la \
1943 rootlibexec_PROGRAMS += \
1944 systemd-modules-load
1946 nodist_systemunit_DATA += \
1947 units/systemd-modules-load.service
1949 SYSINIT_TARGET_WANTS += \
1950 systemd-modules-load.service
1953 nodist_systemunit_DATA += \
1954 units/kmod-static-nodes.service
1956 SYSINIT_TARGET_WANTS += \
1957 kmod-static-nodes.service
1962 units/systemd-modules-load.service.in \
1963 units/kmod-static-nodes.service.in
1965 # ------------------------------------------------------------------------------
1967 systemd_tmpfiles_SOURCES = \
1968 src/tmpfiles/tmpfiles.c
1970 systemd_tmpfiles_LDADD = \
1971 libsystemd-units.la \
1972 libsystemd-label.la \
1973 libsystemd-capability.la \
1974 libsystemd-internal.la \
1975 libsystemd-shared.la
1977 rootbin_PROGRAMS += \
1980 dist_systemunit_DATA += \
1981 units/systemd-tmpfiles-clean.timer
1983 nodist_systemunit_DATA += \
1984 units/systemd-tmpfiles-setup-dev.service \
1985 units/systemd-tmpfiles-setup.service \
1986 units/systemd-tmpfiles-clean.service
1988 nodist_tmpfiles_DATA = \
1991 dist_tmpfiles_DATA = \
1992 tmpfiles.d/systemd.conf \
1993 tmpfiles.d/systemd-nologin.conf \
1994 tmpfiles.d/systemd-remote.conf \
1995 tmpfiles.d/tmp.conf \
1996 tmpfiles.d/x11.conf \
2000 dist_tmpfiles_DATA += \
2001 tmpfiles.d/legacy.conf
2004 SYSINIT_TARGET_WANTS += \
2005 systemd-tmpfiles-setup-dev.service \
2006 systemd-tmpfiles-setup.service
2008 dist_zshcompletion_DATA += \
2009 shell-completion/zsh/_systemd-tmpfiles
2011 TIMERS_TARGET_WANTS += \
2012 systemd-tmpfiles-clean.timer
2016 $(sysconfdir)/tmpfiles.d
2020 tmpfiles.d/etc.conf.m4 \
2021 units/systemd-tmpfiles-setup-dev.service.in \
2022 units/systemd-tmpfiles-setup.service.in \
2023 units/systemd-tmpfiles-clean.service.in
2028 # ------------------------------------------------------------------------------
2030 systemd_sysusers_SOURCES = \
2031 src/sysusers/sysusers.c
2033 systemd_sysusers_LDADD = \
2034 libsystemd-units.la \
2035 libsystemd-label.la \
2036 libsystemd-capability.la \
2037 libsystemd-internal.la \
2038 libsystemd-shared.la
2040 rootbin_PROGRAMS += \
2043 nodist_systemunit_DATA += \
2044 units/systemd-sysusers.service
2046 SYSINIT_TARGET_WANTS += \
2047 systemd-sysusers.service
2049 dist_sysusers_DATA = \
2050 sysusers.d/systemd.conf \
2051 sysusers.d/systemd-remote.conf
2053 nodist_sysusers_DATA = \
2054 sysusers.d/basic.conf
2057 units/systemd-sysusers.service.in \
2058 sysusers.d/basic.conf.in
2061 sysusers.d/basic.conf
2067 # ------------------------------------------------------------------------------
2068 dist_factory_etc_DATA = \
2069 factory/etc/nsswitch.conf
2072 dist_factory_pam_DATA = \
2073 factory/etc/pam.d/system-auth \
2074 factory/etc/pam.d/other
2077 # ------------------------------------------------------------------------------
2079 systemd_firstboot_SOURCES = \
2080 src/firstboot/firstboot.c
2082 systemd_firstboot_LDADD = \
2083 libsystemd-units.la \
2084 libsystemd-label.la \
2085 libsystemd-capability.la \
2086 libsystemd-internal.la \
2087 libsystemd-shared.la \
2090 rootbin_PROGRAMS += \
2093 nodist_systemunit_DATA += \
2094 units/systemd-firstboot.service
2097 units/systemd-firstboot.service.in
2099 SYSINIT_TARGET_WANTS += \
2100 systemd-firstboot.service
2103 # ------------------------------------------------------------------------------
2104 systemd_machine_id_setup_SOURCES = \
2105 src/machine-id-setup/machine-id-setup-main.c \
2106 src/core/machine-id-setup.c \
2107 src/core/machine-id-setup.h
2109 systemd_machine_id_setup_LDADD = \
2110 libsystemd-label.la \
2111 libsystemd-internal.la \
2112 libsystemd-shared.la
2114 # ------------------------------------------------------------------------------
2115 systemd_sysctl_SOURCES = \
2118 systemd_sysctl_LDADD = \
2119 libsystemd-shared.la
2121 # ------------------------------------------------------------------------------
2122 systemd_sleep_SOURCES = \
2125 systemd_sleep_LDADD = \
2126 libsystemd-shared.la
2128 # ------------------------------------------------------------------------------
2129 systemd_fsck_SOURCES = \
2132 systemd_fsck_LDADD = \
2133 libsystemd-internal.la \
2134 libudev-internal.la \
2135 libsystemd-shared.la
2137 # ------------------------------------------------------------------------------
2138 systemd_ac_power_SOURCES = \
2139 src/ac-power/ac-power.c
2141 systemd_ac_power_LDADD = \
2142 libudev-internal.la \
2143 libsystemd-shared.la
2145 # ------------------------------------------------------------------------------
2146 systemd_detect_virt_SOURCES = \
2147 src/detect-virt/detect-virt.c
2149 systemd_detect_virt_LDADD = \
2150 libsystemd-shared.la
2152 INSTALL_EXEC_HOOKS += \
2153 systemd-detect-virt-install-hook
2155 # ------------------------------------------------------------------------------
2156 systemd_delta_SOURCES = \
2159 systemd_delta_LDADD = \
2160 libsystemd-shared.la
2162 # ------------------------------------------------------------------------------
2163 systemd_getty_generator_SOURCES = \
2164 src/getty-generator/getty-generator.c
2166 systemd_getty_generator_LDADD = \
2167 libsystemd-label.la \
2168 libsystemd-shared.la
2170 # ------------------------------------------------------------------------------
2171 systemd_debug_generator_SOURCES = \
2172 src/debug-generator/debug-generator.c
2174 systemd_debug_generator_LDADD = \
2175 libsystemd-label.la \
2176 libsystemd-shared.la
2178 # ------------------------------------------------------------------------------
2179 systemd_fstab_generator_SOURCES = \
2180 src/fstab-generator/fstab-generator.c \
2181 src/core/mount-setup.c
2183 systemd_fstab_generator_LDADD = \
2184 libsystemd-label.la \
2185 libsystemd-shared.la
2187 # ------------------------------------------------------------------------------
2188 systemd_system_update_generator_SOURCES = \
2189 src/system-update-generator/system-update-generator.c
2191 systemd_system_update_generator_LDADD = \
2192 libsystemd-label.la \
2193 libsystemd-shared.la
2195 # ------------------------------------------------------------------------------
2197 systemgenerator_PROGRAMS += \
2198 systemd-hibernate-resume-generator
2200 rootlibexec_PROGRAMS += \
2201 systemd-hibernate-resume
2203 systemd_hibernate_resume_SOURCES = \
2204 src/hibernate-resume/hibernate-resume.c
2206 systemd_hibernate_resume_LDADD = \
2207 libsystemd-internal.la \
2208 libsystemd-shared.la
2210 systemd_hibernate_resume_generator_SOURCES = \
2211 src/hibernate-resume/hibernate-resume-generator.c
2213 systemd_hibernate_resume_generator_LDADD = \
2214 libsystemd-label.la \
2215 libsystemd-shared.la
2218 units/systemd-hibernate.service.in \
2219 units/systemd-hibernate-resume@.service.in \
2220 units/systemd-hybrid-sleep.service.in
2222 dist_systemunit_DATA += \
2223 units/hibernate.target \
2224 units/hybrid-sleep.target
2226 nodist_systemunit_DATA += \
2227 units/systemd-hibernate.service \
2228 units/systemd-hibernate-resume@.service \
2229 units/systemd-hybrid-sleep.service
2232 # ------------------------------------------------------------------------------
2234 systemgenerator_PROGRAMS += \
2235 systemd-efi-boot-generator
2237 systemd_efi_boot_generator_SOURCES = \
2238 src/efi-boot-generator/efi-boot-generator.c
2240 systemd_efi_boot_generator_LDADD = \
2241 libsystemd-label.la \
2242 libsystemd-shared.la
2244 # ------------------------------------------------------------------------------
2247 src/boot/boot-loader.h \
2248 src/boot/bootctl.c \
2249 src/boot/boot-loader.c \
2253 libsystemd-shared.la \
2254 libsystemd-internal.la
2259 dist_bashcompletion_DATA += \
2260 shell-completion/bash/bootctl
2262 dist_zshcompletion_DATA += \
2263 shell-completion/zsh/_bootctl
2267 # ------------------------------------------------------------------------------
2269 systemgenerator_PROGRAMS += \
2270 systemd-gpt-auto-generator
2272 systemd_gpt_auto_generator_SOURCES = \
2273 src/gpt-auto-generator/gpt-auto-generator.c \
2274 src/shared/blkid-util.h
2276 systemd_gpt_auto_generator_LDADD = \
2277 libsystemd-label.la \
2278 libsystemd-internal.la \
2279 libudev-internal.la \
2280 libsystemd-shared.la \
2283 systemd_gpt_auto_generator_CFLAGS = \
2288 # ------------------------------------------------------------------------------
2290 systemgenerator_PROGRAMS += \
2291 systemd-dbus1-generator
2293 systemd_dbus1_generator_SOURCES = \
2294 src/dbus1-generator/dbus1-generator.c
2296 systemd_dbus1_generator_LDADD = \
2297 libsystemd-label.la \
2298 libsystemd-shared.la \
2299 libsystemd-internal.la
2301 dbus1-generator-install-hook:
2302 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2303 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2304 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2306 dbus1-generator-uninstall-hook:
2307 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2309 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2310 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2313 # ------------------------------------------------------------------------------
2314 systemd_sysv_generator_SOURCES = \
2315 src/sysv-generator/sysv-generator.c
2317 systemd_sysv_generator_LDADD = \
2318 libsystemd-core.la \
2319 libsystemd-label.la \
2320 libsystemd-shared.la
2322 # ------------------------------------------------------------------------------
2323 systemd_rc_local_generator_SOURCES = \
2324 src/rc-local-generator/rc-local-generator.c
2326 systemd_rc_local_generator_LDADD = \
2327 libsystemd-label.la \
2328 libsystemd-shared.la
2330 # ------------------------------------------------------------------------------
2331 systemd_remount_fs_SOURCES = \
2332 src/remount-fs/remount-fs.c \
2333 src/core/mount-setup.c \
2334 src/core/mount-setup.h
2336 systemd_remount_fs_LDADD = \
2337 libsystemd-label.la \
2338 libsystemd-shared.la
2340 # ------------------------------------------------------------------------------
2341 systemd_cgroups_agent_SOURCES = \
2342 src/cgroups-agent/cgroups-agent.c
2344 systemd_cgroups_agent_LDADD = \
2345 libsystemd-internal.la \
2346 libsystemd-shared.la
2348 # ------------------------------------------------------------------------------
2349 systemd_escape_SOURCES = \
2352 systemd_escape_LDADD = \
2353 libsystemd-shared.la
2355 # -----------------------------------------------------------------------------
2356 systemctl_SOURCES = \
2357 src/systemctl/systemctl.c
2360 libsystemd-units.la \
2361 libsystemd-label.la \
2362 libsystemd-internal.la \
2363 libsystemd-logs.la \
2364 libsystemd-journal-internal.la \
2365 libsystemd-shared.la
2367 # ------------------------------------------------------------------------------
2368 systemd_notify_SOURCES = \
2371 systemd_notify_LDADD = \
2372 libsystemd-internal.la \
2373 libsystemd-shared.la
2375 # ------------------------------------------------------------------------------
2376 systemd_path_SOURCES = \
2379 systemd_path_LDADD = \
2380 libsystemd-internal.la \
2381 libsystemd-shared.la
2383 # ------------------------------------------------------------------------------
2384 systemd_ask_password_SOURCES = \
2385 src/ask-password/ask-password.c
2387 systemd_ask_password_LDADD = \
2388 libsystemd-label.la \
2389 libsystemd-shared.la
2391 # ------------------------------------------------------------------------------
2392 systemd_reply_password_SOURCES = \
2393 src/reply-password/reply-password.c
2395 systemd_reply_password_LDADD = \
2396 libsystemd-shared.la
2398 # ------------------------------------------------------------------------------
2399 systemd_cgls_SOURCES = \
2402 systemd_cgls_LDADD = \
2403 libsystemd-internal.la \
2404 libsystemd-shared.la
2406 # ------------------------------------------------------------------------------
2407 systemd_cgtop_SOURCES = \
2410 systemd_cgtop_LDADD = \
2411 libsystemd-shared.la
2413 # ------------------------------------------------------------------------------
2414 systemd_nspawn_SOURCES = \
2415 src/nspawn/nspawn.c \
2416 src/core/mount-setup.c \
2417 src/core/mount-setup.h \
2418 src/core/loopback-setup.c \
2419 src/core/loopback-setup.h
2421 systemd_nspawn_CFLAGS = \
2426 systemd_nspawn_LDADD = \
2427 libsystemd-label.la \
2428 libsystemd-capability.la \
2429 libsystemd-internal.la \
2430 libudev-internal.la \
2431 libsystemd-shared.la \
2435 systemd_nspawn_LDADD += \
2436 libsystemd-seccomp.la \
2440 # ------------------------------------------------------------------------------
2441 systemd_run_SOURCES = \
2444 systemd_run_LDADD = \
2445 libsystemd-label.la \
2446 libsystemd-capability.la \
2447 libsystemd-internal.la \
2448 libsystemd-shared.la
2450 # ------------------------------------------------------------------------------
2451 systemd_bus_proxyd_SOURCES = \
2452 src/bus-proxyd/bus-proxyd.c \
2453 src/bus-proxyd/bus-policy.c \
2454 src/bus-proxyd/bus-policy.h
2456 systemd_bus_proxyd_LDADD = \
2457 libsystemd-capability.la \
2458 libsystemd-internal.la \
2459 libsystemd-shared.la
2461 bus-proxyd-install-hook:
2462 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2463 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2464 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2466 bus-proxyd-uninstall-hook:
2467 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2469 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2470 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2473 nodist_systemunit_DATA += \
2474 units/systemd-bus-proxyd@.service
2476 dist_systemunit_DATA += \
2477 units/systemd-bus-proxyd.socket
2479 dist_userunit_DATA += \
2480 units/user/systemd-bus-proxyd.socket \
2481 units/user/systemd-bus-proxyd@.service
2485 units/systemd-bus-proxyd@.service.in
2487 # ------------------------------------------------------------------------------
2488 systemd_tty_ask_password_agent_SOURCES = \
2489 src/tty-ask-password-agent/tty-ask-password-agent.c
2491 systemd_tty_ask_password_agent_LDADD = \
2492 libsystemd-label.la \
2493 libsystemd-shared.la
2495 # ------------------------------------------------------------------------------
2496 libsystemd_internal_la_SOURCES = \
2497 src/systemd/sd-bus.h \
2498 src/systemd/sd-bus-protocol.h \
2499 src/systemd/sd-bus-vtable.h \
2500 src/systemd/sd-utf8.h \
2501 src/systemd/sd-event.h \
2502 src/systemd/sd-rtnl.h \
2503 src/systemd/sd-resolve.h \
2504 src/systemd/sd-login.h \
2505 src/systemd/sd-id128.h \
2506 src/systemd/sd-daemon.h \
2507 src/systemd/sd-path.h \
2508 src/systemd/sd-network.h \
2509 src/libsystemd/sd-bus/sd-bus.c \
2510 src/libsystemd/sd-bus/bus-control.c \
2511 src/libsystemd/sd-bus/bus-control.h \
2512 src/libsystemd/sd-bus/bus-error.c \
2513 src/libsystemd/sd-bus/bus-error.h \
2514 src/libsystemd/sd-bus/bus-internal.c \
2515 src/libsystemd/sd-bus/bus-internal.h \
2516 src/libsystemd/sd-bus/bus-socket.c \
2517 src/libsystemd/sd-bus/bus-socket.h \
2518 src/libsystemd/sd-bus/bus-kernel.c \
2519 src/libsystemd/sd-bus/bus-kernel.h \
2520 src/libsystemd/sd-bus/bus-container.c \
2521 src/libsystemd/sd-bus/bus-container.h \
2522 src/libsystemd/sd-bus/bus-message.c \
2523 src/libsystemd/sd-bus/bus-message.h \
2524 src/libsystemd/sd-bus/bus-creds.c \
2525 src/libsystemd/sd-bus/bus-creds.h \
2526 src/libsystemd/sd-bus/bus-signature.c \
2527 src/libsystemd/sd-bus/bus-signature.h \
2528 src/libsystemd/sd-bus/bus-type.c \
2529 src/libsystemd/sd-bus/bus-type.h \
2530 src/libsystemd/sd-bus/bus-match.c \
2531 src/libsystemd/sd-bus/bus-match.h \
2532 src/libsystemd/sd-bus/bus-bloom.c \
2533 src/libsystemd/sd-bus/bus-bloom.h \
2534 src/libsystemd/sd-bus/bus-introspect.c \
2535 src/libsystemd/sd-bus/bus-introspect.h \
2536 src/libsystemd/sd-bus/bus-objects.c \
2537 src/libsystemd/sd-bus/bus-objects.h \
2538 src/libsystemd/sd-bus/bus-gvariant.c \
2539 src/libsystemd/sd-bus/bus-gvariant.h \
2540 src/libsystemd/sd-bus/bus-convenience.c \
2541 src/libsystemd/sd-bus/bus-track.c \
2542 src/libsystemd/sd-bus/bus-track.h \
2543 src/libsystemd/sd-bus/bus-util.c \
2544 src/libsystemd/sd-bus/bus-util.h \
2545 src/libsystemd/sd-bus/bus-slot.c \
2546 src/libsystemd/sd-bus/bus-slot.h \
2547 src/libsystemd/sd-bus/bus-protocol.h \
2548 src/libsystemd/sd-bus/kdbus.h \
2549 src/libsystemd/sd-utf8/sd-utf8.c \
2550 src/libsystemd/sd-event/sd-event.c \
2551 src/libsystemd/sd-event/event-util.h \
2552 src/libsystemd/sd-rtnl/sd-rtnl.c \
2553 src/libsystemd/sd-rtnl/rtnl-internal.h \
2554 src/libsystemd/sd-rtnl/rtnl-message.c \
2555 src/libsystemd/sd-rtnl/rtnl-types.h \
2556 src/libsystemd/sd-rtnl/rtnl-types.c \
2557 src/libsystemd/sd-rtnl/rtnl-util.h \
2558 src/libsystemd/sd-rtnl/rtnl-util.c \
2559 src/libsystemd/sd-rtnl/local-addresses.h \
2560 src/libsystemd/sd-rtnl/local-addresses.c \
2561 src/libsystemd/sd-id128/sd-id128.c \
2562 src/libsystemd/sd-daemon/sd-daemon.c \
2563 src/libsystemd/sd-login/sd-login.c \
2564 src/libsystemd/sd-path/sd-path.c \
2565 src/libsystemd/sd-network/sd-network.c \
2566 src/libsystemd/sd-network/network-util.h \
2567 src/libsystemd/sd-network/network-util.c
2569 nodist_libsystemd_internal_la_SOURCES = \
2570 src/libsystemd/libsystemd.sym \
2571 src/libsystemd/sd-bus/bus-error-mapping.c
2573 libsystemd_internal_la_CFLAGS = \
2577 libsystemd_internal_la_LIBADD = \
2580 libsystemd_resolve_la_SOURCES = \
2581 src/libsystemd/sd-resolve/sd-resolve.c \
2582 src/libsystemd/sd-resolve/resolve-util.h
2584 libsystemd_resolve_la_CFLAGS = \
2588 libsystemd_resolve_la_LIBADD = \
2591 noinst_LTLIBRARIES += \
2592 libsystemd-internal.la \
2593 libsystemd-resolve.la
2595 libsystemd_dump_la_SOURCES = \
2596 src/libsystemd/sd-bus/bus-dump.c \
2597 src/libsystemd/sd-bus/bus-dump.h
2599 libsystemd_dump_la_CFLAGS = \
2603 noinst_LTLIBRARIES += \
2607 src/libsystemd/libsystemd.sym.m4 \
2608 src/libsystemd/libsystemd.pc.in \
2609 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2610 src/libsystemd/sd-bus/DIFFERENCES \
2611 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2614 src/libsystemd/libsystemd.sym \
2615 src/libsystemd/sd-bus/bus-error-mapping.c
2618 src/libsystemd/libsystemd.sym
2620 libsystemd_la_SOURCES = \
2621 $(libsystemd_internal_la_SOURCES) \
2622 $(libsystemd_resolve_la_SOURCES) \
2623 $(libsystemd_journal_internal_la_SOURCES)
2625 nodist_libsystemd_la_SOURCES = \
2626 $(nodist_libsystemd_internal_la_SOURCES)
2628 libsystemd_la_CFLAGS = \
2629 $(libsystemd_internal_la_CFLAGS) \
2630 $(libsystemd_resolve_la_CFLAGS) \
2631 $(libsystemd_journal_internal_la_CFLAGS)
2633 libsystemd_la_LDFLAGS = \
2635 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2636 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2638 libsystemd_la_LIBADD = \
2639 libsystemd-shared.la \
2640 $(libsystemd_internal_la_LIBADD) \
2641 $(libsystemd_journal_internal_la_LIBADD) \
2642 $(libsystemd_resolve_la_LIBADD)
2644 libsystemd-install-hook:
2645 libname=libsystemd.so && $(move-to-rootlibdir)
2647 libsystemd-uninstall-hook:
2648 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2650 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2651 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2653 pkgconfiglib_DATA += \
2654 src/libsystemd/libsystemd.pc
2656 pkginclude_HEADERS += \
2657 src/systemd/sd-login.h \
2658 src/systemd/sd-id128.h \
2659 src/systemd/sd-daemon.h
2662 pkginclude_HEADERS += \
2663 src/systemd/sd-bus.h \
2664 src/systemd/sd-bus-protocol.h \
2665 src/systemd/sd-bus-vtable.h \
2666 src/systemd/sd-utf8.h \
2667 src/systemd/sd-event.h \
2668 src/systemd/sd-rtnl.h \
2669 src/systemd/sd-resolve.h \
2670 src/systemd/sd-path.h
2673 lib_LTLIBRARIES += \
2678 test-bus-signature \
2684 test-bus-kernel-bloom \
2685 test-bus-kernel-benchmark \
2686 test-bus-zero-copy \
2687 test-bus-introspect \
2699 test_bus_marshal_SOURCES = \
2700 src/libsystemd/sd-bus/test-bus-marshal.c
2702 test_bus_marshal_LDADD = \
2703 libsystemd-internal.la \
2704 libsystemd-shared.la \
2705 libsystemd-dump.la \
2706 libsystemd-capability.la \
2711 test_bus_marshal_CFLAGS = \
2717 test_bus_signature_SOURCES = \
2718 src/libsystemd/sd-bus/test-bus-signature.c
2720 test_bus_signature_LDADD = \
2721 libsystemd-shared.la \
2722 libsystemd-internal.la
2724 test_bus_chat_SOURCES = \
2725 src/libsystemd/sd-bus/test-bus-chat.c
2727 test_bus_chat_CFLAGS = \
2731 test_bus_chat_LDADD = \
2732 libsystemd-internal.la \
2733 libsystemd-shared.la
2735 test_bus_cleanup_SOURCES = \
2736 src/libsystemd/sd-bus/test-bus-cleanup.c
2738 test_bus_cleanup_CFLAGS = \
2742 test_bus_cleanup_LDADD = \
2743 libsystemd-internal.la \
2744 libsystemd-shared.la
2746 test_bus_server_SOURCES = \
2747 src/libsystemd/sd-bus/test-bus-server.c
2749 test_bus_server_CFLAGS = \
2753 test_bus_server_LDADD = \
2754 libsystemd-internal.la \
2755 libsystemd-shared.la
2757 test_bus_objects_SOURCES = \
2758 src/libsystemd/sd-bus/test-bus-objects.c
2760 test_bus_objects_CFLAGS = \
2765 test_bus_objects_LDADD = \
2766 libsystemd-internal.la \
2767 libsystemd-shared.la \
2768 libsystemd-dump.la \
2769 libsystemd-capability.la \
2772 test_bus_error_SOURCES = \
2773 src/libsystemd/sd-bus/test-bus-error.c
2775 test_bus_error_LDADD = \
2776 libsystemd-internal.la \
2777 libsystemd-shared.la
2779 test_bus_gvariant_SOURCES = \
2780 src/libsystemd/sd-bus/test-bus-gvariant.c
2782 test_bus_gvariant_LDADD = \
2783 libsystemd-internal.la \
2784 libsystemd-shared.la \
2785 libsystemd-dump.la \
2786 libsystemd-capability.la \
2790 test_bus_gvariant_CFLAGS = \
2795 test_bus_creds_SOURCES = \
2796 src/libsystemd/sd-bus/test-bus-creds.c
2798 test_bus_creds_LDADD = \
2799 libsystemd-internal.la \
2800 libsystemd-shared.la \
2801 libsystemd-dump.la \
2802 libsystemd-capability.la
2804 test_bus_match_SOURCES = \
2805 src/libsystemd/sd-bus/test-bus-match.c
2807 test_bus_match_LDADD = \
2808 libsystemd-internal.la \
2809 libsystemd-shared.la
2811 test_bus_kernel_SOURCES = \
2812 src/libsystemd/sd-bus/test-bus-kernel.c
2814 test_bus_kernel_LDADD = \
2815 libsystemd-internal.la \
2816 libsystemd-shared.la \
2817 libsystemd-dump.la \
2818 libsystemd-capability.la \
2821 test_bus_kernel_CFLAGS = \
2825 test_bus_kernel_bloom_SOURCES = \
2826 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2828 test_bus_kernel_bloom_LDADD = \
2829 libsystemd-internal.la \
2830 libsystemd-shared.la
2832 test_bus_kernel_benchmark_SOURCES = \
2833 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2835 test_bus_kernel_benchmark_LDADD = \
2836 libsystemd-internal.la \
2837 libsystemd-shared.la
2839 test_bus_zero_copy_SOURCES = \
2840 src/libsystemd/sd-bus/test-bus-zero-copy.c
2842 test_bus_zero_copy_LDADD = \
2843 libsystemd-internal.la \
2844 libsystemd-shared.la \
2845 libsystemd-dump.la \
2846 libsystemd-capability.la \
2849 test_bus_zero_copy_CFLAGS = \
2853 test_bus_introspect_SOURCES = \
2854 src/libsystemd/sd-bus/test-bus-introspect.c
2856 test_bus_introspect_LDADD = \
2857 libsystemd-internal.la \
2858 libsystemd-shared.la
2860 test_event_SOURCES = \
2861 src/libsystemd/sd-event/test-event.c
2863 test_event_LDADD = \
2864 libsystemd-internal.la \
2865 libsystemd-shared.la
2867 test_rtnl_SOURCES = \
2868 src/libsystemd/sd-rtnl/test-rtnl.c
2871 libsystemd-internal.la \
2872 libsystemd-shared.la
2874 test_resolve_SOURCES = \
2875 src/libsystemd/sd-resolve/test-resolve.c
2877 test_resolve_LDADD = \
2878 libsystemd-resolve.la \
2879 libsystemd-internal.la \
2880 libsystemd-shared.la
2882 test_resolve_CFLAGS = \
2887 src/libsystemd/sd-bus/busctl.c
2890 libsystemd-internal.la \
2891 libsystemd-shared.la \
2892 libsystemd-dump.la \
2893 libsystemd-capability.la \
2900 # ------------------------------------------------------------------------------
2901 noinst_LTLIBRARIES += \
2902 libsystemd-network.la
2904 libsystemd_network_la_CFLAGS = \
2908 libsystemd_network_la_SOURCES = \
2909 src/systemd/sd-dhcp-client.h \
2910 src/systemd/sd-dhcp-server.h \
2911 src/systemd/sd-dhcp-lease.h \
2912 src/systemd/sd-ipv4ll.h \
2913 src/systemd/sd-icmp6-nd.h \
2914 src/systemd/sd-dhcp6-client.h \
2915 src/systemd/sd-dhcp6-lease.h \
2916 src/libsystemd-network/sd-dhcp-client.c \
2917 src/libsystemd-network/sd-dhcp-server.c \
2918 src/libsystemd-network/dhcp-network.c \
2919 src/libsystemd-network/dhcp-option.c \
2920 src/libsystemd-network/dhcp-packet.c \
2921 src/libsystemd-network/dhcp-internal.h \
2922 src/libsystemd-network/dhcp-server-internal.h \
2923 src/libsystemd-network/dhcp-protocol.h \
2924 src/libsystemd-network/dhcp-lease-internal.h \
2925 src/libsystemd-network/sd-dhcp-lease.c \
2926 src/libsystemd-network/sd-ipv4ll.c \
2927 src/libsystemd-network/ipv4ll-network.c \
2928 src/libsystemd-network/ipv4ll-packet.c \
2929 src/libsystemd-network/ipv4ll-internal.h \
2930 src/libsystemd-network/network-internal.c \
2931 src/libsystemd-network/network-internal.h \
2932 src/libsystemd-network/sd-icmp6-nd.c \
2933 src/libsystemd-network/sd-dhcp6-client.c \
2934 src/libsystemd-network/dhcp6-internal.h \
2935 src/libsystemd-network/dhcp6-protocol.h \
2936 src/libsystemd-network/dhcp6-network.c \
2937 src/libsystemd-network/dhcp6-option.c \
2938 src/libsystemd-network/dhcp6-lease-internal.h \
2939 src/libsystemd-network/sd-dhcp6-lease.c
2941 libsystemd_network_la_LIBADD = \
2942 libudev-internal.la \
2943 libsystemd-label.la \
2944 libsystemd-internal.la \
2945 libsystemd-shared.la \
2948 test_dhcp_option_SOURCES = \
2949 src/libsystemd-network/dhcp-protocol.h \
2950 src/libsystemd-network/dhcp-internal.h \
2951 src/libsystemd-network/test-dhcp-option.c
2953 test_dhcp_option_LDADD = \
2954 libsystemd-network.la \
2955 libsystemd-internal.la \
2956 libsystemd-shared.la
2958 test_dhcp_client_SOURCES = \
2959 src/systemd/sd-dhcp-client.h \
2960 src/libsystemd-network/dhcp-protocol.h \
2961 src/libsystemd-network/dhcp-internal.h \
2962 src/libsystemd-network/test-dhcp-client.c
2964 test_dhcp_client_LDADD = \
2965 libsystemd-network.la \
2966 libsystemd-label.la \
2967 libsystemd-internal.la \
2968 libsystemd-shared.la
2970 test_dhcp_server_SOURCES = \
2971 src/libsystemd-network/test-dhcp-server.c
2973 test_dhcp_server_LDADD = \
2974 libsystemd-network.la \
2975 libsystemd-internal.la \
2976 libsystemd-shared.la
2978 test_ipv4ll_SOURCES = \
2979 src/systemd/sd-ipv4ll.h \
2980 src/libsystemd-network/ipv4ll-internal.h \
2981 src/libsystemd-network/test-ipv4ll.c
2983 test_ipv4ll_LDADD = \
2984 libsystemd-network.la \
2985 libsystemd-label.la \
2986 libsystemd-internal.la \
2987 libsystemd-shared.la
2989 test_icmp6_rs_SOURCES = \
2990 src/systemd/sd-dhcp6-client.h \
2991 src/systemd/sd-icmp6-nd.h \
2992 src/libsystemd-network/dhcp6-internal.h \
2993 src/libsystemd-network/test-icmp6-rs.c
2995 test_icmp6_rs_LDADD = \
2996 libsystemd-network.la \
2997 libsystemd-internal.la \
2998 libsystemd-shared.la
3000 test_dhcp6_client_SOURCES = \
3001 src/systemd/sd-dhcp6-client.h \
3002 src/libsystemd-network/dhcp6-internal.h \
3003 src/libsystemd-network/test-dhcp6-client.c
3005 test_dhcp6_client_LDADD = \
3006 libsystemd-network.la \
3007 libsystemd-internal.la \
3008 libsystemd-shared.la
3018 # ------------------------------------------------------------------------------
3020 noinst_LTLIBRARIES += \
3021 libsystemd-terminal.la
3026 noinst_PROGRAMS += \
3031 dist_pkgdata_DATA += \
3032 src/libsystemd-terminal/unifont-glyph-array.bin
3040 libsystemd_terminal_la_CFLAGS = \
3044 libsystemd_terminal_la_SOURCES = \
3045 src/libsystemd-terminal/grdev.h \
3046 src/libsystemd-terminal/grdev-internal.h \
3047 src/libsystemd-terminal/grdev.c \
3048 src/libsystemd-terminal/grdev-drm.c \
3049 src/libsystemd-terminal/idev.h \
3050 src/libsystemd-terminal/idev-internal.h \
3051 src/libsystemd-terminal/idev.c \
3052 src/libsystemd-terminal/idev-evdev.c \
3053 src/libsystemd-terminal/idev-keyboard.c \
3054 src/libsystemd-terminal/sysview.h \
3055 src/libsystemd-terminal/sysview-internal.h \
3056 src/libsystemd-terminal/sysview.c \
3057 src/libsystemd-terminal/term.h \
3058 src/libsystemd-terminal/term-internal.h \
3059 src/libsystemd-terminal/term-charset.c \
3060 src/libsystemd-terminal/term-page.c \
3061 src/libsystemd-terminal/term-parser.c \
3062 src/libsystemd-terminal/term-screen.c \
3063 src/libsystemd-terminal/term-wcwidth.c \
3064 src/libsystemd-terminal/unifont.h \
3065 src/libsystemd-terminal/unifont-def.h \
3066 src/libsystemd-terminal/unifont.c
3068 libsystemd_terminal_la_LIBADD = \
3069 libudev-internal.la \
3070 libsystemd-internal.la \
3071 libsystemd-shared.la \
3074 systemd_consoled_CFLAGS = \
3078 systemd_consoled_SOURCES = \
3079 src/console/consoled.h \
3080 src/console/consoled.c \
3081 src/console/consoled-display.c \
3082 src/console/consoled-manager.c \
3083 src/console/consoled-session.c \
3084 src/console/consoled-terminal.c \
3085 src/console/consoled-workspace.c
3087 systemd_consoled_LDADD = \
3088 libsystemd-terminal.la \
3089 libsystemd-internal.la \
3090 libsystemd-shared.la \
3093 systemd_evcat_CFLAGS = \
3097 systemd_evcat_SOURCES = \
3098 src/libsystemd-terminal/evcat.c
3100 systemd_evcat_LDADD = \
3101 libsystemd-terminal.la \
3102 libsystemd-internal.la \
3103 libsystemd-shared.la \
3106 systemd_modeset_CFLAGS = \
3110 systemd_modeset_SOURCES = \
3111 src/libsystemd-terminal/modeset.c
3113 systemd_modeset_LDADD = \
3114 libsystemd-terminal.la \
3115 libsystemd-internal.la \
3116 libsystemd-shared.la \
3119 systemd_subterm_SOURCES = \
3120 src/libsystemd-terminal/subterm.c
3122 systemd_subterm_LDADD = \
3123 libsystemd-terminal.la \
3124 libsystemd-internal.la \
3125 libsystemd-shared.la
3127 test_term_page_SOURCES = \
3128 src/libsystemd-terminal/test-term-page.c
3130 test_term_page_LDADD = \
3131 libsystemd-terminal.la \
3132 libsystemd-internal.la \
3133 libsystemd-shared.la
3135 test_term_parser_SOURCES = \
3136 src/libsystemd-terminal/test-term-parser.c
3138 test_term_parser_LDADD = \
3139 libsystemd-terminal.la \
3140 libsystemd-internal.la \
3141 libsystemd-shared.la
3143 test_unifont_SOURCES = \
3144 src/libsystemd-terminal/test-unifont.c
3146 test_unifont_LDADD = \
3147 libsystemd-terminal.la \
3148 libsystemd-internal.la \
3149 libsystemd-shared.la
3151 .PHONY: update-unifont
3152 update-unifont: tools/compile-unifont.py
3153 $(AM_V_GEN)$(PYTHON) $< \
3154 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3155 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3156 @echo "unifont-glyph-array.bin has been regenerated"
3158 # ------------------------------------------------------------------------------
3168 include_HEADERS += \
3169 src/libudev/libudev.h
3171 lib_LTLIBRARIES += \
3174 libudev_la_SOURCES =\
3175 src/libudev/libudev.sym \
3176 src/libudev/libudev-private.h \
3177 src/libudev/libudev.c \
3178 src/libudev/libudev-list.c \
3179 src/libudev/libudev-util.c \
3180 src/libudev/libudev-device.c \
3181 src/libudev/libudev-enumerate.c \
3182 src/libudev/libudev-monitor.c \
3183 src/libudev/libudev-queue.c \
3184 src/libudev/libudev-hwdb-def.h \
3185 src/libudev/libudev-hwdb.c
3187 libudev_la_CFLAGS = \
3191 libudev_la_LDFLAGS = \
3193 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3194 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3196 libudev_la_LIBADD = \
3197 libsystemd-internal.la \
3198 libsystemd-shared.la
3200 pkgconfiglib_DATA += \
3201 src/libudev/libudev.pc
3204 src/libudev/libudev.pc.in
3207 src/libudev/libudev.pc \
3212 $(AM_V_at)$(MKDIR_P) $(dir $@)
3213 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3216 $(AM_V_at)$(MKDIR_P) $(dir $@)
3217 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3219 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3220 libudev-install-hook:
3221 libname=libudev.so && $(move-to-rootlibdir)
3223 libudev-uninstall-hook:
3224 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3226 INSTALL_EXEC_HOOKS += libudev-install-hook
3227 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3229 # ------------------------------------------------------------------------------
3230 noinst_LTLIBRARIES += \
3233 libudev_internal_la_SOURCES =\
3234 $(libudev_la_SOURCES) \
3235 src/libudev/libudev-device-private.c
3237 libudev_internal_la_CFLAGS = \
3239 -fvisibility=default
3241 # ------------------------------------------------------------------------------
3243 $(sysconfdir)/udev/rules.d \
3244 $(sysconfdir)/udev/hwdb.d
3246 dist_network_DATA = \
3247 network/99-default.link \
3248 network/80-container-host0.network \
3249 network/80-container-ve.network
3251 dist_udevrules_DATA += \
3252 rules/42-usb-hid-pm.rules \
3253 rules/50-udev-default.rules \
3254 rules/60-drm.rules \
3255 rules/60-keyboard.rules \
3256 rules/60-persistent-storage-tape.rules \
3257 rules/60-persistent-serial.rules \
3258 rules/60-persistent-input.rules \
3259 rules/60-persistent-alsa.rules \
3260 rules/60-persistent-storage.rules \
3261 rules/64-btrfs.rules \
3262 rules/75-net-description.rules \
3263 rules/75-tty-description.rules \
3264 rules/78-sound-card.rules \
3265 rules/80-net-setup-link.rules \
3266 rules/95-udev-late.rules
3268 nodist_udevrules_DATA += \
3269 rules/99-systemd.rules
3271 dist_udevhwdb_DATA = \
3272 hwdb/20-pci-vendor-model.hwdb \
3273 hwdb/20-pci-classes.hwdb \
3274 hwdb/20-usb-vendor-model.hwdb \
3275 hwdb/20-usb-classes.hwdb \
3276 hwdb/20-sdio-vendor-model.hwdb \
3277 hwdb/20-sdio-classes.hwdb \
3278 hwdb/20-bluetooth-vendor-product.hwdb \
3279 hwdb/20-acpi-vendor.hwdb \
3281 hwdb/20-net-ifname.hwdb \
3282 hwdb/60-keyboard.hwdb
3284 udevconfdir = $(sysconfdir)/udev
3285 dist_udevconf_DATA = \
3288 sharepkgconfigdir = $(datadir)/pkgconfig
3289 sharepkgconfig_DATA = \
3293 rules/99-systemd.rules.in \
3297 rules/99-systemd.rules \
3301 units/systemd-udevd.service.in \
3302 units/systemd-udev-trigger.service.in \
3303 units/systemd-udev-settle.service.in \
3304 units/systemd-udev-hwdb-update.service.in
3307 units/systemd-udevd.service \
3308 units/systemd-udev-trigger.service \
3309 units/systemd-udev-settle.service \
3310 units/systemd-udev-hwdb-update.service
3312 SOCKETS_TARGET_WANTS += \
3313 systemd-udevd-control.socket \
3314 systemd-udevd-kernel.socket
3316 SYSINIT_TARGET_WANTS += \
3317 systemd-udevd.service \
3318 systemd-udev-trigger.service \
3319 systemd-udev-hwdb-update.service
3321 rootbin_PROGRAMS += \
3324 rootlibexec_PROGRAMS += \
3327 noinst_LTLIBRARIES += \
3330 src/udev/keyboard-keys.txt:
3331 $(AM_V_at)$(MKDIR_P) $(dir $@)
3332 $(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/' > $@
3334 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3335 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3337 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3338 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3340 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3341 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3343 libudev_core_la_SOURCES = \
3345 src/udev/udev-event.c \
3346 src/udev/udev-watch.c \
3347 src/udev/udev-node.c \
3348 src/udev/udev-rules.c \
3349 src/udev/udev-ctrl.c \
3350 src/udev/udev-builtin.c \
3351 src/udev/udev-builtin-btrfs.c \
3352 src/udev/udev-builtin-hwdb.c \
3353 src/udev/udev-builtin-input_id.c \
3354 src/udev/udev-builtin-keyboard.c \
3355 src/udev/udev-builtin-net_id.c \
3356 src/udev/udev-builtin-net_setup_link.c \
3357 src/udev/udev-builtin-path_id.c \
3358 src/udev/udev-builtin-usb_id.c \
3359 src/udev/net/link-config.h \
3360 src/udev/net/link-config.c \
3361 src/udev/net/ethtool-util.h \
3362 src/udev/net/ethtool-util.c
3364 nodist_libudev_core_la_SOURCES = \
3365 src/udev/keyboard-keys-from-name.h \
3366 src/udev/keyboard-keys-to-name.h \
3367 src/udev/net/link-config-gperf.c
3370 $(nodist_libudev_core_la_SOURCES)
3373 src/udev/keyboard-keys-from-name.gperf \
3374 src/udev/keyboard-keys.txt \
3375 src/udev/net/link-config-gperf.c
3378 src/udev/net/link-config-gperf.gperf
3380 libudev_core_la_CFLAGS = \
3385 libudev_core_la_LIBADD = \
3386 libudev-internal.la \
3387 libsystemd-label.la \
3388 libsystemd-internal.la \
3389 libsystemd-network.la \
3390 libsystemd-shared.la \
3395 libudev_core_la_SOURCES += \
3396 src/udev/udev-builtin-kmod.c
3398 dist_udevrules_DATA += \
3399 rules/80-drivers.rules
3403 libudev_core_la_SOURCES += \
3404 src/udev/udev-builtin-blkid.c
3408 libudev_core_la_SOURCES += \
3409 src/udev/udev-builtin-uaccess.c \
3410 src/login/logind-acl.c \
3411 src/libsystemd/sd-login/sd-login.c \
3412 src/systemd/sd-login.h
3414 libudev_core_la_LIBADD += \
3418 systemd_udevd_SOURCES = \
3421 systemd_udevd_LDADD = \
3425 src/udev/udevadm.c \
3426 src/udev/udevadm-info.c \
3427 src/udev/udevadm-control.c \
3428 src/udev/udevadm-monitor.c \
3429 src/udev/udevadm-hwdb.c \
3430 src/udev/udevadm-settle.c \
3431 src/udev/udevadm-trigger.c \
3432 src/udev/udevadm-test.c \
3433 src/udev/udevadm-test-builtin.c
3438 # Update hwdb on installation. Do not bother if installing
3439 # in DESTDIR, since this is likely for packaging purposes.
3441 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3443 INSTALL_DATA_HOOKS += \
3447 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3449 # ------------------------------------------------------------------------------
3458 test_libudev_SOURCES = \
3459 src/test/test-libudev.c
3461 test_libudev_LDADD = \
3462 libsystemd-label.la \
3463 libudev-internal.la \
3464 libsystemd-shared.la
3466 test_udev_SOURCES = \
3467 src/test/test-udev.c
3476 test_udev_LDADD += \
3483 # packed sysfs test tree
3485 $(AM_V_at)$(MKDIR_P) $(dir $@)
3486 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3490 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3495 test/rules-test.sh \
3496 test/rule-syntax-check.py
3498 # ------------------------------------------------------------------------------
3500 src/udev/ata_id/ata_id.c
3503 libudev-internal.la \
3504 libsystemd-shared.la
3506 udevlibexec_PROGRAMS += \
3509 # ------------------------------------------------------------------------------
3510 cdrom_id_SOURCES = \
3511 src/udev/cdrom_id/cdrom_id.c
3514 libudev-internal.la \
3515 libsystemd-shared.la
3517 udevlibexec_PROGRAMS += \
3520 dist_udevrules_DATA += \
3521 rules/60-cdrom_id.rules
3523 # ------------------------------------------------------------------------------
3525 src/udev/collect/collect.c
3528 libudev-internal.la \
3529 libsystemd-shared.la
3531 udevlibexec_PROGRAMS += \
3534 # ------------------------------------------------------------------------------
3536 src/udev/scsi_id/scsi_id.c \
3537 src/udev/scsi_id/scsi_serial.c \
3538 src/udev/scsi_id/scsi.h \
3539 src/udev/scsi_id/scsi_id.h
3542 libudev-internal.la \
3543 libsystemd-shared.la
3545 udevlibexec_PROGRAMS += \
3549 src/udev/scsi_id/README
3551 # ------------------------------------------------------------------------------
3553 src/udev/v4l_id/v4l_id.c
3558 udevlibexec_PROGRAMS += \
3561 dist_udevrules_DATA += \
3562 rules/60-persistent-v4l.rules
3564 # ------------------------------------------------------------------------------
3565 accelerometer_SOURCES = \
3566 src/udev/accelerometer/accelerometer.c
3568 accelerometer_LDADD = \
3569 libudev-internal.la -lm \
3570 libsystemd-shared.la
3572 udevlibexec_PROGRAMS += \
3575 dist_udevrules_DATA += \
3576 rules/61-accelerometer.rules
3578 # ------------------------------------------------------------------------------
3585 libgudev_includedir = \
3586 $(includedir)/gudev-1.0/gudev
3588 libgudev_include_HEADERS = \
3590 src/gudev/gudevenums.h \
3591 src/gudev/gudevenumtypes.h \
3592 src/gudev/gudevtypes.h \
3593 src/gudev/gudevclient.h \
3594 src/gudev/gudevdevice.h \
3595 src/gudev/gudevenumerator.h
3597 lib_LTLIBRARIES += libgudev-1.0.la
3599 pkgconfiglib_DATA += \
3600 src/gudev/gudev-1.0.pc
3603 src/gudev/gudev-1.0.pc
3605 libgudev_1_0_la_SOURCES = \
3606 src/gudev/libgudev-1.0.sym \
3607 src/gudev/gudevenums.h \
3608 src/gudev/gudevenumtypes.h \
3609 src/gudev/gudevenumtypes.h\
3610 src/gudev/gudevtypes.h \
3611 src/gudev/gudevclient.h \
3612 src/gudev/gudevclient.c \
3613 src/gudev/gudevdevice.h \
3614 src/gudev/gudevdevice.c \
3615 src/gudev/gudevenumerator.h \
3616 src/gudev/gudevenumerator.c \
3617 src/gudev/gudevprivate.h
3619 nodist_libgudev_1_0_la_SOURCES = \
3620 src/gudev/gudevmarshal.h \
3621 src/gudev/gudevmarshal.c \
3622 src/gudev/gudevenumtypes.h \
3623 src/gudev/gudevenumtypes.c
3626 $(nodist_libgudev_1_0_la_SOURCES)
3628 libgudev_1_0_la_CPPFLAGS = \
3630 -I$(top_builddir)/src\
3631 -I$(top_srcdir)/src\
3632 -I$(top_builddir)/src/gudev \
3633 -I$(top_srcdir)/src/gudev \
3634 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3635 -D_GUDEV_COMPILATION \
3636 -DG_LOG_DOMAIN=\"GUdev\"
3638 libgudev_1_0_la_CFLAGS = \
3640 -fvisibility=default \
3643 libgudev_1_0_la_LIBADD = \
3647 libgudev_1_0_la_LDFLAGS = \
3649 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3652 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3654 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3655 $(AM_V_at)$(MKDIR_P) $(dir $@)
3656 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3658 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3659 $(AM_V_at)$(MKDIR_P) $(dir $@)
3660 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3661 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3663 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3664 $(AM_V_at)$(MKDIR_P) $(dir $@)
3665 $(AM_V_GEN)glib-mkenums --template $^ > $@
3667 if HAVE_INTROSPECTION
3668 -include $(INTROSPECTION_MAKEFILE)
3670 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3672 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3674 src_gudev_GUdev_1_0_gir_CFLAGS = \
3677 -D_GUDEV_COMPILATION \
3678 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3679 -I$(top_srcdir)/src \
3680 -I$(top_builddir)/src \
3681 -I$(top_srcdir)/src/gudev \
3682 -I$(top_builddir)/src/gudev
3684 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3686 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3687 --pkg-export=gudev-1.0 \
3690 src_gudev_GUdev_1_0_gir_FILES = \
3692 src/gudev/gudevtypes.h \
3693 src/gudev/gudevenums.h \
3694 src/gudev/gudevenumtypes.h \
3695 src/gudev/gudevclient.h \
3696 src/gudev/gudevdevice.h \
3697 src/gudev/gudevenumerator.h \
3698 src/gudev/gudevclient.c \
3699 src/gudev/gudevdevice.c \
3700 src/gudev/gudevenumerator.c
3702 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3703 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3705 girdir = $(datadir)/gir-1.0
3707 src/gudev/GUdev-1.0.gir
3709 typelibsdir = $(libdir)/girepository-1.0
3711 src/gudev/GUdev-1.0.typelib
3713 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3714 endif # HAVE_INTROSPECTION
3718 src/gudev/gudev-1.0.pc.in \
3719 src/gudev/gudevmarshal.list \
3720 src/gudev/gudevenumtypes.h.template \
3721 src/gudev/gudevenumtypes.c.template \
3722 src/gudev/gjs-example.js \
3723 src/gudev/seed-example-enum.js \
3724 src/gudev/seed-example.js
3726 # ------------------------------------------------------------------------------
3727 mtd_probe_SOURCES = \
3728 src/udev/mtd_probe/mtd_probe.c \
3729 src/udev/mtd_probe/mtd_probe.h \
3730 src/udev/mtd_probe/probe_smartmedia.c
3732 dist_udevrules_DATA += \
3733 rules/75-probe_mtd.rules
3735 udevlibexec_PROGRAMS += \
3738 # ------------------------------------------------------------------------------
3739 test_id128_SOURCES = \
3740 src/test/test-id128.c
3742 test_id128_LDADD = \
3743 libsystemd-internal.la \
3744 libsystemd-shared.la
3749 # ------------------------------------------------------------------------------
3751 rootlibexec_PROGRAMS += \
3754 systemd_activate_SOURCES = \
3755 src/activate/activate.c
3757 systemd_activate_LDADD = \
3758 libsystemd-label.la \
3759 libsystemd-internal.la \
3760 libsystemd-shared.la
3762 # ------------------------------------------------------------------------------
3763 systemd_journald_SOURCES = \
3764 src/journal/journald.c \
3765 src/journal/journald-server.h
3767 systemd_journald_LDADD = \
3768 libsystemd-journal-core.la \
3769 libsystemd-internal.la \
3770 libsystemd-shared.la
3772 systemd_cat_SOURCES = \
3775 systemd_cat_LDADD = \
3776 libsystemd-journal-core.la
3779 rootlibexec_PROGRAMS += \
3780 systemd-journal-remote
3782 systemd_journal_remote_SOURCES = \
3783 src/journal-remote/journal-remote-parse.h \
3784 src/journal-remote/journal-remote-parse.c \
3785 src/journal-remote/journal-remote-write.h \
3786 src/journal-remote/journal-remote-write.c \
3787 src/journal-remote/journal-remote.h \
3788 src/journal-remote/journal-remote.c
3790 systemd_journal_remote_LDADD = \
3791 libsystemd-internal.la \
3792 libsystemd-journal-core.la
3794 systemd_journal_remote_SOURCES += \
3795 src/journal-remote/microhttpd-util.h \
3796 src/journal-remote/microhttpd-util.c
3798 systemd_journal_remote_CFLAGS = \
3800 $(MICROHTTPD_CFLAGS)
3802 systemd_journal_remote_LDADD += \
3806 systemd_journal_remote_LDADD += \
3809 # systemd-journal-remote make sense mostly with full crypto stack
3810 dist_systemunit_DATA += \
3811 units/systemd-journal-remote.socket
3813 nodist_systemunit_DATA += \
3814 units/systemd-journal-remote.service
3817 units/systemd-journal-remote.service.in
3819 journal-remote-install-hook: journal-install-hook
3820 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3821 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3822 -chmod 755 $(DESTDIR)/var/log/journal/remote
3824 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3828 nodist_pkgsysconf_DATA += \
3829 src/journal-remote/journal-remote.conf
3832 src/journal-remote/journal-remote.conf.in
3835 src/journal-remote/journal-remote.conf
3839 rootlibexec_PROGRAMS += \
3840 systemd-journal-upload
3842 systemd_journal_upload_SOURCES = \
3843 src/journal-remote/journal-upload.h \
3844 src/journal-remote/journal-upload.c \
3845 src/journal-remote/journal-upload-journal.c
3847 systemd_journal_upload_CFLAGS = \
3851 systemd_journal_upload_LDADD = \
3852 libsystemd-core.la \
3853 libsystemd-internal.la \
3854 libsystemd-journal-internal.la \
3855 libsystemd-shared.la \
3858 nodist_systemunit_DATA += \
3859 units/systemd-journal-upload.service
3862 units/systemd-journal-upload.service.in
3864 nodist_pkgsysconf_DATA += \
3865 src/journal-remote/journal-upload.conf
3868 src/journal-remote/journal-upload.conf.in
3871 src/journal-remote/journal-upload.conf
3874 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3875 journalctl_CFLAGS = \
3878 journalctl_SOURCES = \
3879 src/journal/journalctl.c
3881 journalctl_LDADD = \
3882 libsystemd-journal-internal.la \
3883 libsystemd-internal.la \
3884 libsystemd-logs.la \
3885 libsystemd-shared.la
3888 journalctl_LDADD += \
3893 journalctl_SOURCES += \
3894 src/journal/journal-qrcode.c \
3895 src/journal/journal-qrcode.h
3897 journalctl_CFLAGS += \
3900 journalctl_LDADD += \
3904 test_journal_SOURCES = \
3905 src/journal/test-journal.c
3907 test_journal_LDADD = \
3908 libsystemd-journal-core.la
3910 test_journal_send_SOURCES = \
3911 src/journal/test-journal-send.c
3913 test_journal_send_LDADD = \
3914 libsystemd-journal-core.la
3916 test_journal_syslog_SOURCES = \
3917 src/journal/test-journal-syslog.c
3919 test_journal_syslog_LDADD = \
3920 libsystemd-journal-core.la
3922 test_journal_match_SOURCES = \
3923 src/journal/test-journal-match.c
3925 test_journal_match_LDADD = \
3926 libsystemd-journal-core.la
3928 test_journal_enum_SOURCES = \
3929 src/journal/test-journal-enum.c
3931 test_journal_enum_LDADD = \
3932 libsystemd-journal-core.la
3934 test_journal_stream_SOURCES = \
3935 src/journal/test-journal-stream.c
3937 test_journal_stream_LDADD = \
3938 libsystemd-journal-core.la
3940 test_journal_flush_SOURCES = \
3941 src/journal/test-journal-flush.c
3943 test_journal_flush_LDADD = \
3944 libsystemd-journal-core.la
3946 test_journal_init_SOURCES = \
3947 src/journal/test-journal-init.c
3949 test_journal_init_LDADD = \
3950 libsystemd-journal-core.la
3952 test_journal_verify_SOURCES = \
3953 src/journal/test-journal-verify.c
3955 test_journal_verify_LDADD = \
3956 libsystemd-journal-core.la
3958 test_journal_interleaving_SOURCES = \
3959 src/journal/test-journal-interleaving.c
3961 test_journal_interleaving_LDADD = \
3962 libsystemd-journal-core.la
3964 test_mmap_cache_SOURCES = \
3965 src/journal/test-mmap-cache.c
3967 test_mmap_cache_LDADD = \
3968 libsystemd-journal-core.la
3970 test_catalog_SOURCES = \
3971 src/journal/test-catalog.c
3973 test_catalog_CPPFLAGS = \
3975 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3977 test_catalog_LDADD = \
3978 libsystemd-journal-core.la
3980 test_compress_SOURCES = \
3981 src/journal/test-compress.c
3983 test_compress_LDADD = \
3984 libsystemd-journal-internal.la \
3985 libsystemd-shared.la
3987 test_compress_benchmark_SOURCES = \
3988 src/journal/test-compress-benchmark.c
3990 test_compress_benchmark_LDADD = \
3991 libsystemd-journal-internal.la \
3992 libsystemd-shared.la
3994 libsystemd_journal_core_la_SOURCES = \
3995 src/journal/journald-kmsg.c \
3996 src/journal/journald-kmsg.h \
3997 src/journal/journald-syslog.c \
3998 src/journal/journald-syslog.h \
3999 src/journal/journald-stream.c \
4000 src/journal/journald-stream.h \
4001 src/journal/journald-server.c \
4002 src/journal/journald-server.h \
4003 src/journal/journald-console.c \
4004 src/journal/journald-console.h \
4005 src/journal/journald-wall.c \
4006 src/journal/journald-wall.h \
4007 src/journal/journald-native.c \
4008 src/journal/journald-native.h \
4009 src/journal/journald-rate-limit.c \
4010 src/journal/journald-rate-limit.h \
4011 src/journal/journal-internal.h
4013 nodist_libsystemd_journal_core_la_SOURCES = \
4014 src/journal/journald-gperf.c
4016 libsystemd_journal_core_la_LIBADD = \
4017 libsystemd-journal-internal.la \
4018 libudev-internal.la \
4019 libsystemd-capability.la \
4020 libsystemd-label.la \
4021 libsystemd-internal.la \
4022 libsystemd-shared.la
4025 libsystemd_journal_core_la_LIBADD += \
4029 noinst_LTLIBRARIES += \
4030 libsystemd-journal-core.la
4032 journal-install-hook:
4033 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4034 -chown 0:0 $(DESTDIR)/var/log/journal
4035 -chmod 755 $(DESTDIR)/var/log/journal
4036 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4037 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4039 journal-uninstall-hook:
4040 -rmdir $(DESTDIR)/var/log/journal/remote
4041 -rmdir $(DESTDIR)/var/log/journal/
4043 INSTALL_EXEC_HOOKS += journal-install-hook
4044 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4046 # ------------------------------------------------------------------------------
4047 # Update catalog on installation. Do not bother if installing
4048 # in DESTDIR, since this is likely for packaging purposes.
4049 catalog-update-hook:
4050 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4052 INSTALL_DATA_HOOKS += \
4055 catalog-remove-hook:
4056 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4058 UNINSTALL_DATA_HOOKS += \
4067 test-journal-syslog \
4068 test-journal-match \
4069 test-journal-stream \
4071 test-journal-verify \
4072 test-journal-interleaving \
4073 test-journal-flush \
4080 test-compress-benchmark
4083 pkginclude_HEADERS += \
4084 src/systemd/sd-journal.h \
4085 src/systemd/sd-messages.h \
4086 src/systemd/_sd-common.h
4088 libsystemd_journal_internal_la_SOURCES = \
4089 src/journal/sd-journal.c \
4090 src/systemd/sd-journal.h \
4091 src/systemd/_sd-common.h \
4092 src/journal/journal-file.c \
4093 src/journal/journal-file.h \
4094 src/journal/journal-vacuum.c \
4095 src/journal/journal-vacuum.h \
4096 src/journal/journal-verify.c \
4097 src/journal/journal-verify.h \
4098 src/journal/lookup3.c \
4099 src/journal/lookup3.h \
4100 src/journal/journal-send.c \
4101 src/journal/journal-def.h \
4102 src/journal/compress.h \
4103 src/journal/catalog.c \
4104 src/journal/catalog.h \
4105 src/journal/mmap-cache.c \
4106 src/journal/mmap-cache.h
4108 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4109 libsystemd_journal_internal_la_CFLAGS = \
4112 libsystemd_journal_internal_la_LIBADD =
4114 libsystemd_journal_internal_la_SOURCES += \
4115 src/journal/compress.c
4118 libsystemd_journal_internal_la_CFLAGS += \
4121 libsystemd_journal_internal_la_LIBADD += \
4126 libsystemd_journal_internal_la_LIBADD += \
4131 libsystemd_journal_internal_la_SOURCES += \
4132 src/journal/journal-authenticate.c \
4133 src/journal/journal-authenticate.h \
4134 src/journal/fsprg.c \
4137 libsystemd_journal_internal_la_LIBADD += \
4140 # fsprg.c is a drop-in file using void pointer arithmetic
4141 libsystemd_journal_internal_la_CFLAGS += \
4146 noinst_LTLIBRARIES += \
4147 libsystemd-journal-internal.la
4149 rootlibexec_PROGRAMS += \
4152 rootbin_PROGRAMS += \
4158 dist_systemunit_DATA += \
4159 units/systemd-journald.socket \
4160 units/systemd-journald-dev-log.socket
4162 nodist_systemunit_DATA += \
4163 units/systemd-journald.service \
4164 units/systemd-journal-flush.service \
4165 units/systemd-journal-catalog-update.service
4167 dist_pkgsysconf_DATA += \
4168 src/journal/journald.conf
4170 dist_catalog_DATA = \
4171 catalog/systemd.fr.catalog \
4172 catalog/systemd.it.catalog \
4173 catalog/systemd.pl.catalog \
4174 catalog/systemd.ru.catalog \
4175 catalog/systemd.catalog
4177 SOCKETS_TARGET_WANTS += \
4178 systemd-journald.socket \
4179 systemd-journald-dev-log.socket
4181 SYSINIT_TARGET_WANTS += \
4182 systemd-journald.service \
4183 systemd-journal-flush.service \
4184 systemd-journal-catalog-update.service
4187 units/systemd-journald.service.in \
4188 units/systemd-journal-flush.service.in \
4189 units/systemd-journal-catalog-update.service.in \
4190 src/journal/journald-gperf.gperf
4193 src/journal/journald-gperf.c
4195 # ------------------------------------------------------------------------------
4197 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4199 rootlibexec_PROGRAMS += \
4200 systemd-journal-gatewayd
4202 systemd_journal_gatewayd_SOURCES = \
4203 src/journal-remote/journal-gatewayd.c \
4204 src/journal-remote/microhttpd-util.h \
4205 src/journal-remote/microhttpd-util.c
4207 systemd_journal_gatewayd_LDADD = \
4208 libsystemd-logs.la \
4209 libsystemd-journal-internal.la \
4210 libsystemd-internal.la \
4211 libsystemd-shared.la \
4215 systemd_journal_gatewayd_LDADD += \
4219 systemd_journal_gatewayd_CFLAGS = \
4221 $(MICROHTTPD_CFLAGS)
4223 systemd_journal_gatewayd_CPPFLAGS = \
4225 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4227 dist_systemunit_DATA += \
4228 units/systemd-journal-gatewayd.socket
4230 nodist_systemunit_DATA += \
4231 units/systemd-journal-gatewayd.service
4233 dist_gatewayddocumentroot_DATA = \
4234 src/journal-remote/browse.html
4239 units/systemd-journal-gatewayd.service.in
4241 # ------------------------------------------------------------------------------
4243 systemd_socket_proxyd_SOURCES = \
4244 src/socket-proxy/socket-proxyd.c
4246 systemd_socket_proxyd_LDADD = \
4247 libsystemd-logs.la \
4248 libsystemd-internal.la \
4249 libsystemd-journal-internal.la \
4250 libsystemd-shared.la \
4251 libsystemd-resolve.la
4253 # ------------------------------------------------------------------------------
4255 systemd_coredump_SOURCES = \
4256 src/journal/coredump.c \
4257 src/journal/coredump-vacuum.c \
4258 src/journal/coredump-vacuum.h
4260 systemd_coredump_LDADD = \
4261 libsystemd-journal-internal.la \
4262 libsystemd-label.la \
4263 libsystemd-internal.la \
4264 libsystemd-shared.la
4267 systemd_coredump_SOURCES += \
4268 src/journal/stacktrace.c \
4269 src/journal/stacktrace.h
4271 systemd_coredump_LDADD += \
4275 rootlibexec_PROGRAMS += \
4278 dist_pkgsysconf_DATA += \
4279 src/journal/coredump.conf
4282 systemd_coredump_LDADD += \
4286 coredumpctl_SOURCES = \
4287 src/journal/coredumpctl.c
4289 coredumpctl_LDADD = \
4290 libsystemd-journal-internal.la \
4291 libsystemd-internal.la \
4292 libsystemd-shared.la
4298 test-coredump-vacuum
4300 test_coredump_vacuum_SOURCES = \
4301 src/journal/test-coredump-vacuum.c \
4302 src/journal/coredump-vacuum.c \
4303 src/journal/coredump-vacuum.h
4305 test_coredump_vacuum_LDADD = \
4306 libsystemd-internal.la \
4307 libsystemd-shared.la
4309 dist_bashcompletion_DATA += \
4310 shell-completion/bash/coredumpctl
4312 dist_zshcompletion_DATA += \
4313 shell-completion/zsh/_coredumpctl
4316 sysctl.d/50-coredump.conf
4319 sysctl.d/50-coredump.conf
4323 sysctl.d/50-coredump.conf.in
4325 # ------------------------------------------------------------------------------
4327 systemd_binfmt_SOURCES = \
4330 systemd_binfmt_LDADD = \
4331 libsystemd-shared.la
4333 rootlibexec_PROGRAMS += \
4336 dist_systemunit_DATA += \
4337 units/proc-sys-fs-binfmt_misc.automount \
4338 units/proc-sys-fs-binfmt_misc.mount
4340 nodist_systemunit_DATA += \
4341 units/systemd-binfmt.service
4344 $(prefix)/lib/binfmt.d \
4345 $(sysconfdir)/binfmt.d
4347 SYSINIT_TARGET_WANTS += \
4348 systemd-binfmt.service \
4349 proc-sys-fs-binfmt_misc.automount
4354 units/systemd-binfmt.service.in
4356 # ------------------------------------------------------------------------------
4358 systemd_vconsole_setup_SOURCES = \
4359 src/vconsole/vconsole-setup.c
4361 systemd_vconsole_setup_LDADD = \
4362 libsystemd-shared.la
4364 rootlibexec_PROGRAMS += \
4365 systemd-vconsole-setup
4367 nodist_systemunit_DATA += \
4368 units/systemd-vconsole-setup.service
4370 SYSINIT_TARGET_WANTS += \
4371 systemd-vconsole-setup.service
4375 units/systemd-vconsole-setup.service.in
4377 # ------------------------------------------------------------------------------
4379 systemd_bootchart_SOURCES = \
4380 src/bootchart/bootchart.c \
4381 src/bootchart/bootchart.h \
4382 src/bootchart/store.c \
4383 src/bootchart/store.h \
4384 src/bootchart/svg.c \
4387 systemd_bootchart_LDADD = \
4388 libsystemd-journal-internal.la \
4389 libsystemd-shared.la
4391 rootlibexec_PROGRAMS += \
4394 dist_pkgsysconf_DATA += \
4395 src/bootchart/bootchart.conf
4398 # ------------------------------------------------------------------------------
4399 if ENABLE_QUOTACHECK
4400 rootlibexec_PROGRAMS += \
4403 nodist_systemunit_DATA += \
4404 units/systemd-quotacheck.service
4406 systemd_quotacheck_SOURCES = \
4407 src/quotacheck/quotacheck.c
4409 systemd_quotacheck_LDADD = \
4410 libsystemd-shared.la
4414 units/systemd-quotacheck.service.in
4416 nodist_systemunit_DATA += \
4417 units/quotaon.service
4419 # ------------------------------------------------------------------------------
4420 if ENABLE_RANDOMSEED
4421 rootlibexec_PROGRAMS += \
4424 nodist_systemunit_DATA += \
4425 units/systemd-random-seed.service
4427 systemd_random_seed_SOURCES = \
4428 src/random-seed/random-seed.c
4430 systemd_random_seed_LDADD = \
4431 libsystemd-label.la \
4432 libsystemd-shared.la
4434 SYSINIT_TARGET_WANTS += \
4435 systemd-random-seed.service
4440 units/systemd-random-seed.service.in
4442 # ------------------------------------------------------------------------------
4444 rootlibexec_PROGRAMS += \
4447 nodist_systemunit_DATA += \
4448 units/systemd-backlight@.service
4450 systemd_backlight_SOURCES = \
4451 src/backlight/backlight.c
4453 systemd_backlight_LDADD = \
4454 libsystemd-label.la \
4455 libudev-internal.la \
4456 libsystemd-shared.la
4460 units/systemd-backlight@.service.in
4462 # ------------------------------------------------------------------------------
4464 rootlibexec_PROGRAMS += \
4467 nodist_systemunit_DATA += \
4468 units/systemd-rfkill@.service
4470 systemd_rfkill_SOURCES = \
4473 systemd_rfkill_LDADD = \
4474 libsystemd-label.la \
4475 libudev-internal.la \
4476 libsystemd-shared.la
4480 units/systemd-rfkill@.service.in
4482 # ------------------------------------------------------------------------------
4483 if HAVE_LIBCRYPTSETUP
4484 rootlibexec_PROGRAMS += \
4487 systemgenerator_PROGRAMS += \
4488 systemd-cryptsetup-generator
4490 dist_systemunit_DATA += \
4491 units/cryptsetup.target \
4492 units/cryptsetup-pre.target
4494 systemd_cryptsetup_SOURCES = \
4495 src/cryptsetup/cryptsetup.c
4497 systemd_cryptsetup_CFLAGS = \
4499 $(LIBCRYPTSETUP_CFLAGS)
4501 systemd_cryptsetup_LDADD = \
4502 libsystemd-label.la \
4503 libudev-internal.la \
4504 libsystemd-shared.la \
4505 $(LIBCRYPTSETUP_LIBS)
4507 systemd_cryptsetup_generator_SOURCES = \
4508 src/cryptsetup/cryptsetup-generator.c
4510 systemd_cryptsetup_generator_LDADD = \
4511 libsystemd-label.la \
4512 libsystemd-shared.la
4514 SYSINIT_TARGET_WANTS += \
4519 # ------------------------------------------------------------------------------
4521 systemd_hostnamed_SOURCES = \
4522 src/hostname/hostnamed.c
4524 systemd_hostnamed_LDADD = \
4525 libsystemd-label.la \
4526 libsystemd-internal.la \
4527 libsystemd-shared.la
4529 rootlibexec_PROGRAMS += \
4532 nodist_systemunit_DATA += \
4533 units/systemd-hostnamed.service
4535 dist_systemunit_DATA_busnames += \
4536 units/org.freedesktop.hostname1.busname
4538 dist_dbuspolicy_DATA += \
4539 src/hostname/org.freedesktop.hostname1.conf
4541 dist_dbussystemservice_DATA += \
4542 src/hostname/org.freedesktop.hostname1.service
4544 polkitpolicy_files += \
4545 src/hostname/org.freedesktop.hostname1.policy
4547 SYSTEM_UNIT_ALIASES += \
4548 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4550 BUSNAMES_TARGET_WANTS += \
4551 org.freedesktop.hostname1.busname
4553 hostnamectl_SOURCES = \
4554 src/hostname/hostnamectl.c
4556 hostnamectl_LDADD = \
4557 libsystemd-internal.la \
4558 libsystemd-shared.la
4563 dist_bashcompletion_DATA += \
4564 shell-completion/bash/hostnamectl
4566 dist_zshcompletion_DATA += \
4567 shell-completion/zsh/_hostnamectl
4571 polkitpolicy_in_files += \
4572 src/hostname/org.freedesktop.hostname1.policy.in
4575 units/systemd-hostnamed.service.in
4577 # ------------------------------------------------------------------------------
4578 dist_systemunit_DATA_busnames += \
4579 units/org.freedesktop.systemd1.busname
4581 BUSNAMES_TARGET_WANTS += \
4582 org.freedesktop.systemd1.busname
4584 # ------------------------------------------------------------------------------
4586 systemd_localed_SOURCES = \
4587 src/locale/localed.c
4589 systemd_localed_LDADD = \
4590 libsystemd-label.la \
4591 libsystemd-internal.la \
4592 libsystemd-shared.la
4594 nodist_systemunit_DATA += \
4595 units/systemd-localed.service
4597 dist_systemunit_DATA_busnames += \
4598 units/org.freedesktop.locale1.busname
4600 rootlibexec_PROGRAMS += \
4603 dist_dbuspolicy_DATA += \
4604 src/locale/org.freedesktop.locale1.conf
4606 dist_dbussystemservice_DATA += \
4607 src/locale/org.freedesktop.locale1.service
4609 polkitpolicy_files += \
4610 src/locale/org.freedesktop.locale1.policy
4612 SYSTEM_UNIT_ALIASES += \
4613 systemd-localed.service dbus-org.freedesktop.locale1.service
4615 BUSNAMES_TARGET_WANTS += \
4616 org.freedesktop.locale1.busname
4618 dist_pkgdata_DATA += \
4619 src/locale/kbd-model-map
4621 dist_noinst_SCRIPT = \
4622 src/locale/generate-kbd-model-map
4624 localectl_SOURCES = \
4625 src/locale/localectl.c
4628 libsystemd-internal.la \
4629 libsystemd-shared.la
4634 dist_bashcompletion_DATA += \
4635 shell-completion/bash/localectl
4637 dist_zshcompletion_DATA += \
4638 shell-completion/zsh/_localectl
4642 .PHONY: update-kbd-model-map
4644 polkitpolicy_in_files += \
4645 src/locale/org.freedesktop.locale1.policy.in
4648 units/systemd-localed.service.in
4650 # ------------------------------------------------------------------------------
4652 systemd_timedated_SOURCES = \
4653 src/timedate/timedated.c
4655 systemd_timedated_LDADD = \
4656 libsystemd-label.la \
4657 libsystemd-internal.la \
4658 libsystemd-shared.la
4660 rootlibexec_PROGRAMS += \
4663 dist_dbussystemservice_DATA += \
4664 src/timedate/org.freedesktop.timedate1.service
4666 dist_dbuspolicy_DATA += \
4667 src/timedate/org.freedesktop.timedate1.conf
4669 nodist_systemunit_DATA += \
4670 units/systemd-timedated.service
4672 dist_systemunit_DATA_busnames += \
4673 units/org.freedesktop.timedate1.busname
4675 polkitpolicy_files += \
4676 src/timedate/org.freedesktop.timedate1.policy
4678 SYSTEM_UNIT_ALIASES += \
4679 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4681 BUSNAMES_TARGET_WANTS += \
4682 org.freedesktop.timedate1.busname
4684 timedatectl_SOURCES = \
4685 src/timedate/timedatectl.c
4687 timedatectl_LDADD = \
4688 libsystemd-internal.la \
4689 libsystemd-shared.la
4694 dist_bashcompletion_DATA += \
4695 shell-completion/bash/timedatectl
4697 dist_zshcompletion_DATA += \
4698 shell-completion/zsh/_timedatectl
4701 polkitpolicy_in_files += \
4702 src/timedate/org.freedesktop.timedate1.policy.in
4705 units/systemd-timedated.service.in
4707 # ------------------------------------------------------------------------------
4709 systemd_timesyncd_SOURCES = \
4710 src/timesync/timesyncd.c \
4711 src/timesync/timesyncd-manager.c \
4712 src/timesync/timesyncd-manager.h \
4713 src/timesync/timesyncd-conf.c \
4714 src/timesync/timesyncd-conf.h \
4715 src/timesync/timesyncd-server.c \
4716 src/timesync/timesyncd-server.h
4718 nodist_systemd_timesyncd_SOURCES = \
4719 src/timesync/timesyncd-gperf.c
4722 src/timesync/timesyncd-gperf.gperf
4725 src/timesync/timesyncd-gperf.c
4727 systemd_timesyncd_LDADD = \
4728 libsystemd-resolve.la \
4729 libsystemd-network.la \
4730 libsystemd-label.la \
4731 libsystemd-capability.la \
4732 libsystemd-internal.la \
4733 libsystemd-shared.la \
4736 rootlibexec_PROGRAMS += \
4739 nodist_systemunit_DATA += \
4740 units/systemd-timesyncd.service
4742 GENERAL_ALIASES += \
4743 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4746 units/systemd-timesyncd.service.in
4748 nodist_pkgsysconf_DATA += \
4749 src/timesync/timesyncd.conf
4752 src/timesync/timesyncd.conf.in
4755 src/timesync/timesyncd.conf
4758 # ------------------------------------------------------------------------------
4760 libnss_myhostname_la_SOURCES = \
4761 src/nss-myhostname/nss-myhostname.sym \
4762 src/nss-myhostname/nss-myhostname.c
4764 libnss_myhostname_la_LDFLAGS = \
4771 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4773 libnss_myhostname_la_LIBADD = \
4774 libsystemd-shared.la \
4775 libsystemd-internal.la
4777 lib_LTLIBRARIES += \
4778 libnss_myhostname.la
4781 # ------------------------------------------------------------------------------
4783 systemd_machined_SOURCES = \
4784 src/machine/machined.c \
4785 src/machine/machined.h
4787 systemd_machined_LDADD = \
4788 libsystemd-machine-core.la
4790 rootlibexec_PROGRAMS += \
4793 libsystemd_machine_core_la_SOURCES = \
4794 src/machine/machined-dbus.c \
4795 src/machine/machine.c \
4796 src/machine/machine.h \
4797 src/machine/machine-dbus.c
4799 libsystemd_machine_core_la_LIBADD = \
4800 libsystemd-label.la \
4801 libsystemd-internal.la \
4802 libudev-internal.la \
4803 libsystemd-shared.la
4805 noinst_LTLIBRARIES += \
4806 libsystemd-machine-core.la
4808 machinectl_SOURCES = \
4809 src/machine/machinectl.c
4811 machinectl_LDADD = \
4812 libsystemd-internal.la \
4813 libsystemd-shared.la
4815 rootbin_PROGRAMS += \
4818 dist_bashcompletion_DATA += \
4819 shell-completion/bash/machinectl
4821 test_machine_tables_SOURCES = \
4822 src/machine/test-machine-tables.c
4824 test_machine_tables_LDADD = \
4825 libsystemd-machine-core.la
4830 nodist_systemunit_DATA += \
4831 units/systemd-machined.service
4833 dist_systemunit_DATA += \
4836 dist_systemunit_DATA_busnames += \
4837 units/org.freedesktop.machine1.busname
4839 dist_dbussystemservice_DATA += \
4840 src/machine/org.freedesktop.machine1.service
4842 dist_dbuspolicy_DATA += \
4843 src/machine/org.freedesktop.machine1.conf
4845 dist_zshcompletion_DATA += \
4846 shell-completion/zsh/_machinectl \
4847 shell-completion/zsh/_sd_machines
4849 SYSTEM_UNIT_ALIASES += \
4850 systemd-machined.service dbus-org.freedesktop.machine1.service
4852 BUSNAMES_TARGET_WANTS += \
4853 org.freedesktop.machine1.busname
4856 units/systemd-machined.service.in
4858 libnss_mymachines_la_SOURCES = \
4859 src/nss-mymachines/nss-mymachines.sym \
4860 src/nss-mymachines/nss-mymachines.c
4862 libnss_mymachines_la_LDFLAGS = \
4869 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4871 libnss_mymachines_la_LIBADD = \
4872 libsystemd-shared.la \
4873 libsystemd-internal.la
4875 lib_LTLIBRARIES += \
4876 libnss_mymachines.la
4879 # ------------------------------------------------------------------------------
4881 systemd_resolved_SOURCES = \
4882 src/resolve/resolved.c \
4883 src/resolve/resolved-manager.c \
4884 src/resolve/resolved-manager.h \
4885 src/resolve/resolved-conf.c \
4886 src/resolve/resolved-conf.h \
4887 src/resolve/resolved-bus.c \
4888 src/resolve/resolved-bus.h \
4889 src/resolve/resolved-link.h \
4890 src/resolve/resolved-link.c \
4891 src/resolve/resolved-def.h \
4892 src/resolve/resolved-dns-domain.h \
4893 src/resolve/resolved-dns-domain.c \
4894 src/resolve/resolved-dns-rr.h \
4895 src/resolve/resolved-dns-rr.c \
4896 src/resolve/resolved-dns-question.h \
4897 src/resolve/resolved-dns-question.c \
4898 src/resolve/resolved-dns-answer.h \
4899 src/resolve/resolved-dns-answer.c \
4900 src/resolve/resolved-dns-packet.h \
4901 src/resolve/resolved-dns-packet.c \
4902 src/resolve/resolved-dns-query.h \
4903 src/resolve/resolved-dns-query.c \
4904 src/resolve/resolved-dns-transaction.h \
4905 src/resolve/resolved-dns-transaction.c \
4906 src/resolve/resolved-dns-scope.h \
4907 src/resolve/resolved-dns-scope.c \
4908 src/resolve/resolved-dns-server.h \
4909 src/resolve/resolved-dns-server.c \
4910 src/resolve/resolved-dns-cache.h \
4911 src/resolve/resolved-dns-cache.c \
4912 src/resolve/resolved-dns-zone.h \
4913 src/resolve/resolved-dns-zone.c \
4914 src/resolve/resolved-dns-stream.h \
4915 src/resolve/resolved-dns-stream.c \
4916 src/resolve/dns-type.c \
4917 src/resolve/dns-type.h \
4918 src/resolve/dns_type-from-name.h \
4919 src/resolve/dns_type-to-name.h
4921 nodist_systemd_resolved_SOURCES = \
4922 src/resolve/resolved-gperf.c
4925 src/resolve/resolved-gperf.gperf \
4926 src/resolve/dns_type-from-name.gperf
4929 src/resolve/resolved-gperf.c
4931 systemd_resolved_LDADD = \
4932 libsystemd-capability.la \
4933 libsystemd-network.la \
4934 libsystemd-label.la \
4935 libsystemd-internal.la \
4936 libsystemd-shared.la \
4940 rootlibexec_PROGRAMS += \
4943 nodist_systemunit_DATA += \
4944 units/systemd-resolved.service
4946 dist_systemunit_DATA_busnames += \
4947 units/org.freedesktop.resolve1.busname
4949 dist_dbuspolicy_DATA += \
4950 src/resolve/org.freedesktop.resolve1.conf
4952 dist_dbussystemservice_DATA += \
4953 src/resolve/org.freedesktop.resolve1.service
4956 units/systemd-resolved.service.in
4958 SYSTEM_UNIT_ALIASES += \
4959 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4961 BUSNAMES_TARGET_WANTS += \
4962 org.freedesktop.resolve1.busname
4964 GENERAL_ALIASES += \
4965 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4967 nodist_pkgsysconf_DATA += \
4968 src/resolve/resolved.conf
4971 src/resolve/resolved.conf.in
4974 src/resolve/resolved.conf
4979 test_dns_domain_SOURCES = \
4980 src/resolve/resolved-dns-domain.h \
4981 src/resolve/resolved-dns-domain.c \
4982 src/resolve/test-dns-domain.c
4984 test_dns_domain_LDADD = \
4985 libsystemd-capability.la \
4986 libsystemd-network.la \
4987 libsystemd-label.la \
4988 libsystemd-internal.la \
4989 libsystemd-shared.la \
4992 libnss_resolve_la_SOURCES = \
4993 src/nss-resolve/nss-resolve.sym \
4994 src/nss-resolve/nss-resolve.c
4996 libnss_resolve_la_LDFLAGS = \
5003 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5005 libnss_resolve_la_LIBADD = \
5006 libsystemd-shared.la \
5007 libsystemd-internal.la
5009 lib_LTLIBRARIES += \
5012 systemd_resolve_host_SOURCES = \
5013 src/resolve-host/resolve-host.c \
5014 src/resolve/resolved-dns-packet.c \
5015 src/resolve/resolved-dns-packet.h \
5016 src/resolve/resolved-dns-rr.c \
5017 src/resolve/resolved-dns-rr.h \
5018 src/resolve/resolved-dns-answer.c \
5019 src/resolve/resolved-dns-answer.h \
5020 src/resolve/resolved-dns-question.c \
5021 src/resolve/resolved-dns-question.h \
5022 src/resolve/resolved-dns-domain.c \
5023 src/resolve/resolved-dns-domain.h \
5024 src/resolve/dns-type.c \
5025 src/resolve/dns-type.h \
5026 src/resolve/dns_type-from-name.h \
5027 src/resolve/dns_type-to-name.h
5029 systemd_resolve_host_LDADD = \
5030 libsystemd-internal.la \
5031 libsystemd-shared.la \
5035 rootlibexec_PROGRAMS += \
5036 systemd-resolve-host
5040 # ------------------------------------------------------------------------------
5042 rootlibexec_PROGRAMS += \
5045 systemd_networkd_SOURCES = \
5046 src/network/networkd.c
5048 systemd_networkd_LDADD = \
5049 libsystemd-networkd-core.la \
5050 libsystemd-capability.la
5052 noinst_LTLIBRARIES += \
5053 libsystemd-networkd-core.la
5055 libsystemd_networkd_core_la_CFLAGS = \
5058 libsystemd_networkd_core_la_SOURCES = \
5059 src/libsystemd-network/network-internal.h \
5060 src/network/networkd.h \
5061 src/network/networkd-link.h \
5062 src/network/networkd-netdev.h \
5063 src/network/networkd-netdev-tunnel.h \
5064 src/network/networkd-netdev-veth.h \
5065 src/network/networkd-netdev-vxlan.h \
5066 src/network/networkd-netdev-vlan.h \
5067 src/network/networkd-netdev-macvlan.h \
5068 src/network/networkd-netdev-dummy.h \
5069 src/network/networkd-netdev-tuntap.h \
5070 src/network/networkd-netdev-bond.h \
5071 src/network/networkd-netdev-bridge.h \
5072 src/network/networkd-netdev.c \
5073 src/network/networkd-netdev-tunnel.c \
5074 src/network/networkd-netdev-veth.c \
5075 src/network/networkd-netdev-vxlan.c \
5076 src/network/networkd-netdev-vlan.c \
5077 src/network/networkd-netdev-macvlan.c \
5078 src/network/networkd-netdev-dummy.c \
5079 src/network/networkd-netdev-tuntap.c \
5080 src/network/networkd-netdev-bond.c \
5081 src/network/networkd-netdev-bridge.c \
5082 src/network/networkd-link.c \
5083 src/network/networkd-ipv4ll.c \
5084 src/network/networkd-dhcp4.c \
5085 src/network/networkd-network.c \
5086 src/network/networkd-address.c \
5087 src/network/networkd-route.c \
5088 src/network/networkd-manager.c \
5089 src/network/networkd-address-pool.c
5091 nodist_libsystemd_networkd_core_la_SOURCES = \
5092 src/network/networkd-network-gperf.c \
5093 src/network/networkd-netdev-gperf.c
5095 libsystemd_networkd_core_la_LIBADD = \
5096 libudev-internal.la \
5097 libsystemd-internal.la \
5098 libsystemd-network.la \
5099 libsystemd-label.la \
5100 libsystemd-shared.la
5102 rootlibexec_PROGRAMS += \
5103 systemd-networkd-wait-online
5105 systemd_networkd_wait_online_CFLAGS = \
5108 systemd_networkd_wait_online_SOURCES = \
5109 src/libsystemd-network/network-internal.h \
5110 src/network/networkd-wait-online.h \
5111 src/network/networkd-wait-online-link.h \
5112 src/network/networkd-wait-online.c \
5113 src/network/networkd-wait-online-manager.c \
5114 src/network/networkd-wait-online-link.c
5116 systemd_networkd_wait_online_LDADD = \
5117 libsystemd-network.la \
5118 libudev-internal.la \
5119 libsystemd-internal.la \
5120 libsystemd-shared.la
5122 rootbin_PROGRAMS += \
5125 networkctl_SOURCES = \
5126 src/network/networkctl.c
5128 networkctl_LDADD = \
5129 libsystemd-internal.la \
5130 libudev-internal.la \
5131 libsystemd-shared.la \
5132 libsystemd-network.la
5134 test_network_SOURCES = \
5135 src/network/test-network.c
5137 test_network_CFLAGS = \
5140 test_network_LDADD = \
5141 libsystemd-networkd-core.la
5143 test_network_tables_SOURCES = \
5144 src/network/test-network-tables.c \
5145 src/shared/test-tables.h
5147 test_network_tables_LDADD = \
5148 libsystemd-networkd-core.la \
5155 nodist_systemunit_DATA += \
5156 units/systemd-networkd.service \
5157 units/systemd-networkd-wait-online.service
5159 GENERAL_ALIASES += \
5160 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5161 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5164 src/network/networkd-network-gperf.gperf \
5165 src/network/networkd-netdev-gperf.gperf \
5166 units/systemd-networkd.service.in \
5167 units/systemd-networkd-wait-online.service.in
5170 src/network/networkd-network-gperf.c \
5171 src/network/networkd-netdev-gperf.c
5174 # ------------------------------------------------------------------------------
5176 systemd_logind_SOURCES = \
5177 src/login/logind.c \
5180 nodist_systemd_logind_SOURCES = \
5181 src/login/logind-gperf.c
5183 systemd_logind_LDADD = \
5184 libsystemd-logind-core.la
5186 libsystemd_logind_core_la_SOURCES = \
5187 src/login/logind-core.c \
5188 src/login/logind-device.c \
5189 src/login/logind-device.h \
5190 src/login/logind-button.c \
5191 src/login/logind-button.h \
5192 src/login/logind-action.c \
5193 src/login/logind-action.h \
5194 src/login/logind-seat.c \
5195 src/login/logind-seat.h \
5196 src/login/logind-session.c \
5197 src/login/logind-session.h \
5198 src/login/logind-session-device.c \
5199 src/login/logind-session-device.h \
5200 src/login/logind-user.c \
5201 src/login/logind-user.h \
5202 src/login/logind-inhibit.c \
5203 src/login/logind-inhibit.h \
5204 src/login/logind-dbus.c \
5205 src/login/logind-session-dbus.c \
5206 src/login/logind-seat-dbus.c \
5207 src/login/logind-user-dbus.c \
5208 src/login/logind-acl.h
5210 libsystemd_logind_core_la_LIBADD = \
5211 libsystemd-label.la \
5212 libsystemd-capability.la \
5213 libsystemd-internal.la \
5214 libudev-internal.la \
5215 libsystemd-shared.la
5218 libsystemd_logind_core_la_SOURCES += \
5219 src/login/logind-acl.c
5221 libsystemd_logind_core_la_LIBADD += \
5225 noinst_LTLIBRARIES += \
5226 libsystemd-logind-core.la
5228 systemd_user_sessions_SOURCES = \
5229 src/login/user-sessions.c
5231 systemd_user_sessions_LDADD = \
5232 libsystemd-shared.la
5234 rootlibexec_PROGRAMS += \
5236 systemd-user-sessions
5238 loginctl_SOURCES = \
5239 src/login/loginctl.c \
5240 src/login/sysfs-show.c
5243 libsystemd-internal.la \
5244 libudev-internal.la \
5245 libsystemd-shared.la
5247 rootbin_PROGRAMS += \
5250 dist_bashcompletion_DATA += \
5251 shell-completion/bash/loginctl
5253 dist_zshcompletion_DATA += \
5254 shell-completion/zsh/_loginctl \
5255 shell-completion/zsh/_systemd-inhibit
5257 systemd_inhibit_SOURCES = \
5260 systemd_inhibit_LDADD = \
5261 libsystemd-internal.la \
5262 libsystemd-shared.la
5264 rootbin_PROGRAMS += \
5267 test_login_SOURCES = \
5268 src/libsystemd/sd-login/test-login.c
5270 test_login_LDADD = \
5271 libsystemd-internal.la \
5272 libsystemd-shared.la
5274 test_login_shared_SOURCES = \
5275 src/login/test-login-shared.c
5277 test_login_shared_LDADD = \
5278 libsystemd-internal.la \
5279 libsystemd-shared.la
5281 test_inhibit_SOURCES = \
5282 src/login/test-inhibit.c
5284 test_inhibit_LDADD = \
5285 libsystemd-internal.la \
5286 libsystemd-shared.la
5288 test_login_tables_SOURCES = \
5289 src/login/test-login-tables.c
5291 test_login_tables_LDADD = \
5292 libsystemd-logind-core.la
5303 pam_systemd_la_SOURCES = \
5304 src/login/pam_systemd.sym \
5305 src/login/pam_systemd.c
5307 pam_systemd_la_CFLAGS = \
5312 pam_systemd_la_LDFLAGS = \
5318 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5320 pam_systemd_la_LIBADD = \
5321 libsystemd-capability.la \
5322 libsystemd-internal.la \
5323 libsystemd-shared.la \
5326 pamlib_LTLIBRARIES = \
5329 dist_pamconf_DATA = \
5330 src/login/systemd-user
5333 nodist_systemunit_DATA += \
5334 units/systemd-logind.service \
5335 units/systemd-user-sessions.service
5337 dist_systemunit_DATA += \
5340 dist_systemunit_DATA_busnames += \
5341 units/org.freedesktop.login1.busname
5343 dist_dbussystemservice_DATA += \
5344 src/login/org.freedesktop.login1.service
5346 dist_dbuspolicy_DATA += \
5347 src/login/org.freedesktop.login1.conf
5349 dist_pkgsysconf_DATA += \
5350 src/login/logind.conf
5352 polkitpolicy_files += \
5353 src/login/org.freedesktop.login1.policy
5358 MULTI_USER_TARGET_WANTS += \
5359 systemd-logind.service \
5360 systemd-user-sessions.service
5362 SYSTEM_UNIT_ALIASES += \
5363 systemd-logind.service dbus-org.freedesktop.login1.service
5365 BUSNAMES_TARGET_WANTS += \
5366 org.freedesktop.login1.busname
5368 if ENABLE_MULTI_SEAT_X
5370 systemd_multi_seat_x_SOURCES = \
5371 src/login/multi-seat-x.c
5373 systemd_multi_seat_x_LDADD = \
5374 libsystemd-label.la \
5375 libsystemd-shared.la
5377 rootlibexec_PROGRAMS += \
5378 systemd-multi-seat-x
5382 dist_udevrules_DATA += \
5383 src/login/70-uaccess.rules \
5384 src/login/70-power-switch.rules
5386 nodist_udevrules_DATA += \
5387 src/login/71-seat.rules \
5388 src/login/73-seat-late.rules
5391 src/login/logind-gperf.c \
5392 src/login/71-seat.rules \
5393 src/login/73-seat-late.rules
5396 polkitpolicy_in_files += \
5397 src/login/org.freedesktop.login1.policy.in
5400 src/login/logind-gperf.gperf \
5401 src/login/71-seat.rules.in \
5402 src/login/73-seat-late.rules.in \
5403 units/systemd-logind.service.in \
5404 units/systemd-user-sessions.service.in
5406 # ------------------------------------------------------------------------------
5407 if HAVE_PYTHON_DEVEL
5408 pkgpyexec_LTLIBRARIES = \
5415 _journal_la_SOURCES = \
5416 src/python-systemd/_journal.c
5418 _journal_la_CFLAGS = \
5420 -fvisibility=default \
5421 $(PYTHON_DEVEL_CFLAGS)
5423 _journal_la_LDFLAGS = \
5429 _journal_la_LIBADD = \
5430 $(PYTHON_DEVEL_LIBS) \
5433 id128_la_SOURCES = \
5434 src/python-systemd/id128.c \
5435 src/python-systemd/pyutil.c \
5436 src/python-systemd/pyutil.h
5438 nodist_id128_la_SOURCES = \
5439 src/python-systemd/id128-constants.h
5443 -fvisibility=default \
5444 $(PYTHON_DEVEL_CFLAGS) \
5445 -I$(top_builddir)/src/python-systemd
5447 id128_la_LDFLAGS = \
5454 $(PYTHON_DEVEL_LIBS) \
5455 libsystemd-shared.la \
5458 _daemon_la_SOURCES = \
5459 src/python-systemd/_daemon.c \
5460 src/python-systemd/pyutil.c \
5461 src/python-systemd/pyutil.h
5463 _daemon_la_CFLAGS = \
5465 -fvisibility=default \
5466 $(PYTHON_DEVEL_CFLAGS) \
5467 -I$(top_builddir)/src/python-systemd
5469 _daemon_la_LDFLAGS = \
5475 _daemon_la_LIBADD = \
5476 $(PYTHON_DEVEL_LIBS) \
5477 libsystemd-shared.la \
5480 _reader_la_SOURCES = \
5481 src/python-systemd/_reader.c \
5482 src/python-systemd/pyutil.c \
5483 src/python-systemd/pyutil.h
5485 _reader_la_CFLAGS = \
5487 -fvisibility=default \
5488 $(PYTHON_DEVEL_CFLAGS)
5490 _reader_la_LDFLAGS = \
5496 _reader_la_LIBADD = \
5497 $(PYTHON_DEVEL_LIBS) \
5498 libsystemd-shared.la \
5501 login_la_SOURCES = \
5502 src/python-systemd/login.c \
5503 src/python-systemd/pyutil.c \
5504 src/python-systemd/pyutil.h
5508 -fvisibility=default \
5509 $(PYTHON_DEVEL_CFLAGS)
5511 login_la_LDFLAGS = \
5518 $(PYTHON_DEVEL_LIBS) \
5519 libsystemd-shared.la \
5522 dist_pkgpyexec_PYTHON = \
5523 src/python-systemd/journal.py \
5524 src/python-systemd/daemon.py \
5525 src/python-systemd/__init__.py
5527 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5528 $(AM_V_at)$(MKDIR_P) $(dir $@)
5529 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5532 src/python-systemd/id128-constants.h
5534 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5536 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5537 $(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/
5538 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5541 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5542 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5545 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5546 $(MAKE) DESTDIR="$$dir" install && \
5547 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5552 CLEAN_LOCAL_HOOKS += clean-sphinx
5554 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5557 -rm -rf docs/html/python-systemd/
5559 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5561 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5562 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5564 # ------------------------------------------------------------------------------
5565 if ENABLE_COMPAT_LIBS
5567 src/compat-libs/linkwarning.h
5569 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5570 $(AM_V_at)$(MKDIR_P) $(dir $@)
5571 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5574 libsystemd-journal.c \
5575 libsystemd-login.c \
5576 libsystemd-id128.c \
5579 libsystemd_journal_la_SOURCES = \
5580 libsystemd-journal.c \
5581 src/compat-libs/libsystemd-journal.sym
5583 libsystemd_journal_la_CPPFLAGS = \
5585 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5587 libsystemd_journal_la_LDFLAGS = \
5589 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5590 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5592 libsystemd_journal_la_LIBADD = \
5593 libsystemd-journal-internal.la \
5594 libsystemd-internal.la \
5595 libsystemd-shared.la
5597 libsystemd_login_la_SOURCES = \
5598 libsystemd-login.c \
5599 src/compat-libs/libsystemd-login.sym
5601 libsystemd_login_la_CPPFLAGS = \
5603 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5605 libsystemd_login_la_LDFLAGS = \
5607 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5608 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5610 libsystemd_login_la_LIBADD = \
5611 libsystemd-internal.la \
5612 libsystemd-shared.la
5614 libsystemd_id128_la_SOURCES = \
5615 libsystemd-id128.c \
5616 src/compat-libs/libsystemd-id128.sym
5618 libsystemd_id128_la_CPPFLAGS = \
5620 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5622 libsystemd_id128_la_LDFLAGS = \
5624 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5625 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5627 libsystemd_id128_la_LIBADD = \
5628 libsystemd-internal.la \
5629 libsystemd-shared.la
5631 libsystemd_daemon_la_SOURCES = \
5632 libsystemd-daemon.c \
5633 src/compat-libs/libsystemd-daemon.sym
5635 libsystemd_daemon_la_CPPFLAGS = \
5637 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5639 libsystemd_daemon_la_LDFLAGS = \
5641 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5642 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5644 libsystemd_daemon_la_LIBADD = \
5645 libsystemd-internal.la \
5646 libsystemd-shared.la
5648 lib_LTLIBRARIES += \
5649 libsystemd-journal.la \
5650 libsystemd-login.la \
5651 libsystemd-id128.la \
5652 libsystemd-daemon.la
5654 pkgconfiglib_DATA += \
5655 src/compat-libs/libsystemd-journal.pc \
5656 src/compat-libs/libsystemd-login.pc \
5657 src/compat-libs/libsystemd-id128.pc \
5658 src/compat-libs/libsystemd-daemon.pc
5660 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5661 compat-lib-install-hook:
5662 libname=libsystemd-login.so && $(move-to-rootlibdir)
5663 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5664 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5665 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5667 compat-lib-uninstall-hook:
5668 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5669 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5670 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5671 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5673 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5674 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5678 src/compat-libs/libsystemd-journal.pc.in \
5679 src/compat-libs/libsystemd-login.pc.in \
5680 src/compat-libs/libsystemd-id128.pc.in \
5681 src/compat-libs/libsystemd-daemon.pc.in
5683 # ------------------------------------------------------------------------------
5685 '|rootlibexecdir=$(rootlibexecdir)|' \
5686 '|rootbindir=$(rootbindir)|' \
5687 '|bindir=$(bindir)|' \
5688 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5689 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5690 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5691 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5692 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5693 '|pkgdatadir=$(pkgdatadir)|' \
5694 '|systemunitdir=$(systemunitdir)|' \
5695 '|userunitdir=$(userunitdir)|' \
5696 '|systempresetdir=$(systempresetdir)|' \
5697 '|userpresetdir=$(userpresetdir)|' \
5698 '|udevhwdbdir=$(udevhwdbdir)|' \
5699 '|udevrulesdir=$(udevrulesdir)|' \
5700 '|catalogdir=$(catalogdir)|' \
5701 '|tmpfilesdir=$(tmpfilesdir)|' \
5702 '|sysusersdir=$(sysusersdir)|' \
5703 '|sysctldir=$(sysctldir)|' \
5704 '|systemgeneratordir=$(systemgeneratordir)|' \
5705 '|usergeneratordir=$(usergeneratordir)|' \
5706 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5707 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5708 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5709 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5710 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5711 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5712 '|prefix=$(prefix)|' \
5713 '|exec_prefix=$(exec_prefix)|' \
5714 '|libdir=$(libdir)|' \
5715 '|includedir=$(includedir)|' \
5716 '|VERSION=$(VERSION)|' \
5717 '|rootprefix=$(rootprefix)|' \
5718 '|udevlibexecdir=$(udevlibexecdir)|' \
5719 '|SUSHELL=$(SUSHELL)|' \
5720 '|DEBUGTTY=$(DEBUGTTY)|' \
5723 '|MKDIR_P=$(MKDIR_P)|' \
5724 '|QUOTAON=$(QUOTAON)|' \
5725 '|QUOTACHECK=$(QUOTACHECK)|' \
5726 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5727 '|VARLOGDIR=$(varlogdir)|' \
5728 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5729 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5730 '|PYTHON=$(PYTHON)|' \
5731 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5732 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5733 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5734 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5735 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5736 '|TTY_GID=$(TTY_GID)|' \
5737 '|systemsleepdir=$(systemsleepdir)|' \
5738 '|systemshutdowndir=$(systemshutdowndir)|' \
5739 '|binfmtdir=$(binfmtdir)|' \
5740 '|modulesloaddir=$(modulesloaddir)|'
5743 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5744 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5753 sysctl.d/%: sysctl.d/%.in
5762 src/core/macros.%: src/core/macros.%.in
5765 src/%.policy.in: src/%.policy.in.in
5768 shell-completion/%: shell-completion/%.in
5779 $(AM_V_GEN)chmod +x $@
5781 src/%.c: src/%.gperf
5782 $(AM_V_at)$(MKDIR_P) $(dir $@)
5783 $(AM_V_GPERF)$(GPERF) < $< > $@
5786 $(AM_V_at)$(MKDIR_P) $(dir $@)
5787 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5789 tmpfiles.d/%: tmpfiles.d/%.m4
5790 $(AM_V_at)$(MKDIR_P) $(dir $@)
5791 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5795 $(AM_V_at)$(MKDIR_P) $(dir $@)
5796 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5798 units/user/%: units/%.m4
5799 $(AM_V_at)$(MKDIR_P) $(dir $@)
5800 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5803 nodist_polkitpolicy_DATA = \
5804 $(polkitpolicy_files) \
5805 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5809 $(polkitpolicy_in_files) \
5810 $(polkitpolicy_in_in_files)
5813 $(nodist_systemunit_DATA) \
5814 $(nodist_userunit_DATA) \
5815 $(pkgconfigdata_DATA) \
5816 $(pkgconfiglib_DATA) \
5817 $(nodist_polkitpolicy_DATA)
5819 # ------------------------------------------------------------------------------
5821 man/custom-entities.ent: configure.ac
5822 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5823 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5824 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5828 man/custom-entities.ent
5833 --stringparam man.output.quietly 1 \
5834 --stringparam funcsynopsis.style ansi \
5835 --stringparam man.authors.section.enabled 0 \
5836 --stringparam man.copyright.section.enabled 0 \
5837 --stringparam systemd.version $(VERSION) \
5838 --path '$(builddir)/man:$(srcdir)/man'
5840 XSLTPROC_PROCESS_MAN = \
5841 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5843 XSLTPROC_PROCESS_HTML = \
5844 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5846 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5847 $(XSLTPROC_PROCESS_MAN)
5849 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5850 $(XSLTPROC_PROCESS_MAN)
5852 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5853 $(XSLTPROC_PROCESS_MAN)
5855 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5856 $(XSLTPROC_PROCESS_MAN)
5858 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5859 $(XSLTPROC_PROCESS_MAN)
5861 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5862 $(XSLTPROC_PROCESS_HTML)
5865 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5871 man/custom-html.xsl \
5874 # ------------------------------------------------------------------------------
5877 docs/sysvinit/README
5882 docs/sysvinit/README: docs/sysvinit/README.in
5885 docs/var-log/README: docs/var-log/README.in
5889 docs/sysvinit/README \
5894 docs/sysvinit/README.in \
5895 docs/var-log/README.in
5897 SOCKETS_TARGET_WANTS += \
5898 systemd-initctl.socket \
5899 systemd-shutdownd.socket
5903 RUNLEVEL1_TARGET_WANTS += \
5904 systemd-update-utmp-runlevel.service
5905 RUNLEVEL2_TARGET_WANTS += \
5906 systemd-update-utmp-runlevel.service
5907 RUNLEVEL3_TARGET_WANTS += \
5908 systemd-update-utmp-runlevel.service
5909 RUNLEVEL4_TARGET_WANTS += \
5910 systemd-update-utmp-runlevel.service
5911 RUNLEVEL5_TARGET_WANTS += \
5912 systemd-update-utmp-runlevel.service
5915 SYSINIT_TARGET_WANTS += \
5916 systemd-update-utmp.service
5919 SYSINIT_TARGET_WANTS += \
5920 systemd-update-done.service
5922 LOCAL_FS_TARGET_WANTS += \
5923 systemd-remount-fs.service \
5926 MULTI_USER_TARGET_WANTS += \
5928 systemd-ask-password-wall.path
5930 SYSINIT_TARGET_WANTS += \
5931 dev-hugepages.mount \
5933 sys-kernel-config.mount \
5934 sys-kernel-debug.mount \
5935 sys-fs-fuse-connections.mount \
5936 systemd-sysctl.service \
5937 systemd-ask-password-console.path
5940 SYSTEM_UNIT_ALIASES += \
5941 poweroff.target runlevel0.target \
5942 rescue.target runlevel1.target \
5943 multi-user.target runlevel2.target \
5944 multi-user.target runlevel3.target \
5945 multi-user.target runlevel4.target \
5946 graphical.target runlevel5.target \
5947 reboot.target runlevel6.target
5950 SYSTEM_UNIT_ALIASES += \
5951 graphical.target default.target \
5952 reboot.target ctrl-alt-del.target \
5953 getty@.service autovt@.service
5955 USER_UNIT_ALIASES += \
5956 $(systemunitdir)/shutdown.target shutdown.target \
5957 $(systemunitdir)/sockets.target sockets.target \
5958 $(systemunitdir)/timers.target timers.target \
5959 $(systemunitdir)/paths.target paths.target \
5960 $(systemunitdir)/bluetooth.target bluetooth.target \
5961 $(systemunitdir)/printer.target printer.target \
5962 $(systemunitdir)/sound.target sound.target \
5963 $(systemunitdir)/smartcard.target smartcard.target
5966 USER_UNIT_ALIASES += \
5967 $(systemunitdir)/busnames.target busnames.target
5970 GENERAL_ALIASES += \
5971 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5972 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5973 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5974 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5978 $(systemunitdir)/runlevel1.target.wants \
5979 $(systemunitdir)/runlevel2.target.wants \
5980 $(systemunitdir)/runlevel3.target.wants \
5981 $(systemunitdir)/runlevel4.target.wants \
5982 $(systemunitdir)/runlevel5.target.wants
5986 $(prefix)/lib/modules-load.d \
5987 $(sysconfdir)/modules-load.d \
5988 $(prefix)/lib/systemd/network \
5989 $(sysconfdir)/systemd/network \
5990 $(prefix)/lib/sysctl.d \
5991 $(sysconfdir)/sysctl.d \
5992 $(prefix)/lib/kernel/install.d \
5993 $(sysconfdir)/kernel/install.d \
5994 $(systemshutdowndir) \
5996 $(systemgeneratordir) \
5997 $(usergeneratordir) \
6000 $(pkgsysconfdir)/system \
6001 $(pkgsysconfdir)/system/multi-user.target.wants \
6002 $(pkgsysconfdir)/system/getty.target.wants \
6003 $(pkgsysconfdir)/user \
6004 $(dbussessionservicedir) \
6005 $(sysconfdir)/xdg/systemd
6007 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6009 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6011 install-data-hook: $(INSTALL_DATA_HOOKS)
6013 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6015 clean-local: $(CLEAN_LOCAL_HOOKS)
6016 rm -rf $(abs_srcdir)/install-tree
6017 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6018 $(abs_srcdir)/hwdb/iab.txt
6020 DISTCHECK_CONFIGURE_FLAGS = \
6021 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6022 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6023 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6024 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6025 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6026 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6027 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6028 --with-rootprefix=$$dc_install_base \
6029 --disable-split-usr \
6031 --enable-compat-libs
6034 DISTCHECK_CONFIGURE_FLAGS += \
6035 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6036 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6038 DISTCHECK_CONFIGURE_FLAGS += \
6039 --with-sysvinit-path= \
6040 --with-sysvrcnd-path=
6044 DISTCHECK_CONFIGURE_FLAGS += \
6049 DISTCHECK_CONFIGURE_FLAGS += \
6054 # Require python when making dist
6056 .PHONY: dist-check-python
6059 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6063 dist-check-compat-libs:
6064 if !ENABLE_COMPAT_LIBS
6065 @echo "*** compat-libs must be enabled in order to make dist"
6069 dist: dist-check-python dist-check-compat-libs
6071 # check "broken" platforms limited toolchains for link breakage before we release
6074 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6078 ( cd $(top_srcdir)/hwdb && \
6079 wget -N http://www.linux-usb.org/usb.ids \
6080 http://pci-ids.ucw.cz/v2.2/pci.ids \
6081 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6082 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6085 .PHONY: kdbus-update
6087 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6088 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6092 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6094 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6096 upload: all check dist
6097 scp systemd-$(VERSION).tar.xz $(www_target)
6100 doc-sync: all destdir-sphinx
6101 gtkdoc-rebase --html-dir=docs/libudev/html --online
6102 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6103 gtkdoc-rebase --html-dir=docs/gudev/html --online
6104 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6105 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6106 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6110 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6111 scp man/*.html tango:public/systemd-man/
6113 .PHONY: install-tree
6115 rm -rf $(abs_srcdir)/install-tree
6116 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6117 tree $(abs_srcdir)/install-tree
6119 # Let's run all tests of the test suite, but under valgrind. Let's
6120 # exclude the one perl script we have in there
6121 .PHONY: valgrind-tests
6122 valgrind-tests: $(TESTS)
6123 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6124 if file $$f | grep -q shell; then \
6125 echo -e "$${x}Skipping non-binary $$f"; else \
6126 echo -e "$${x}Running $$f"; \
6127 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6132 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6134 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6135 $(AM_V_GEN)cat $^ > $@
6137 .PHONY: check-api-docs
6138 check-api-docs: exported man
6139 $(AM_V_GEN)for symbol in `cat exported` ; do \
6140 if test -f $(builddir)/man/$$symbol.html ; then \
6141 echo " Symbol $$symbol() is documented." ; \
6143 echo "‣ Symbol $$symbol() lacks documentation." ; \
6147 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6148 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6150 undefined defined: $(ALL_OBJECTS)
6151 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6152 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6153 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6159 .PHONY: check-api-unused
6160 check-api-unused: defined undefined exported
6161 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6163 .PHONY: check-includes
6164 check-includes: $(top_srcdir)/tools/check-includes.pl
6165 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6166 | xargs $(top_srcdir)/tools/check-includes.pl
6169 $(top_srcdir)/tools/check-includes.pl
6171 # Stupid test that everything purported to be exported really is
6172 define generate-sym-test
6173 $(AM_V_at)$(MKDIR_P) $(dir $@)
6174 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6175 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6176 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6177 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6178 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6179 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6180 $(AM_V_at)printf 'return 0; }\n' >> $@
6183 test-libsystemd-sym.c: \
6184 $(top_builddir)/src/libsystemd/libsystemd.sym \
6185 src/systemd/sd-journal.h \
6186 src/systemd/sd-daemon.h \
6187 src/systemd/sd-login.h \
6188 src/systemd/sd-bus.h \
6189 src/systemd/sd-utf8.h \
6190 src/systemd/sd-resolve.h \
6191 src/systemd/sd-path.h
6192 $(generate-sym-test)
6194 test-libudev-sym.c: \
6195 src/libudev/libudev.sym \
6197 $(generate-sym-test)
6199 test_libsystemd_sym_SOURCES = \
6200 test-libsystemd-sym.c
6201 test_libsystemd_sym_LDADD = \
6204 test_libudev_sym_SOURCES = \
6206 test_libudev_sym_CFLAGS = \
6208 -Wno-deprecated-declarations
6209 test_libudev_sym_LDADD = \
6213 $(test_libsystemd_sym_SOURCES) \
6214 $(test_libudev_sym_SOURCES)
6217 test-libsystemd-sym \
6222 cppcheck --enable=all -q $(top_srcdir)
6224 # Used to extract compile flags for YCM.
6229 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u