1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfigdatadir=$(datadir)/pkgconfig
78 pkgconfiglibdir=$(libdir)/pkgconfig
79 polkitpolicydir=$(datadir)/polkit-1/actions
80 bashcompletiondir=@bashcompletiondir@
81 zshcompletiondir=@zshcompletiondir@
82 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
83 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
84 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
85 varlogdir=$(localstatedir)/log
86 systemdstatedir=$(localstatedir)/lib/systemd
87 catalogstatedir=$(systemdstatedir)/catalog
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
152 noinst_PROGRAMS = $(manual_tests) $(tests)
158 udevlibexec_PROGRAMS =
160 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
161 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
162 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165 -include $(top_builddir)/config.h \
166 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
167 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
168 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
169 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
170 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
171 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
172 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
173 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
174 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
175 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
176 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
177 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
178 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
179 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
180 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
181 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
182 -DROOTPREFIX=\"$(rootprefix)\" \
183 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
184 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
185 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
186 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
187 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
188 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
189 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
190 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
191 -DX_SERVER=\"$(bindir)/X\" \
192 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
193 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
194 -DQUOTACHECK=\"$(QUOTACHECK)\" \
195 -DKEXEC=\"$(KEXEC)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DROOTLIBDIR=\"$(rootlibdir)\" \
198 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
199 -I $(top_srcdir)/src \
200 -I $(top_builddir)/src/shared \
201 -I $(top_srcdir)/src/shared \
202 -I $(top_srcdir)/src/network \
203 -I $(top_srcdir)/src/login \
204 -I $(top_srcdir)/src/journal \
205 -I $(top_srcdir)/src/timedate \
206 -I $(top_srcdir)/src/timesync \
207 -I $(top_srcdir)/src/resolve \
208 -I $(top_builddir)/src/resolve \
209 -I $(top_srcdir)/src/systemd \
210 -I $(top_builddir)/src/core \
211 -I $(top_srcdir)/src/core \
212 -I $(top_srcdir)/src/libudev \
213 -I $(top_srcdir)/src/udev \
214 -I $(top_srcdir)/src/udev/net \
215 -I $(top_builddir)/src/udev \
216 -I $(top_srcdir)/src/libsystemd/sd-bus \
217 -I $(top_srcdir)/src/libsystemd/sd-event \
218 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
219 -I $(top_srcdir)/src/libsystemd/sd-network \
220 -I $(top_srcdir)/src/libsystemd-network \
221 -I $(top_srcdir)/src/libsystemd-terminal \
224 AM_CFLAGS = $(OUR_CFLAGS)
225 AM_LDFLAGS = $(OUR_LDFLAGS)
227 # ------------------------------------------------------------------------------
228 define move-to-rootlibdir
229 if test "$(libdir)" != "$(rootlibdir)"; then \
230 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
231 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
232 rm -f $(DESTDIR)$(libdir)/$$libname && \
233 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
234 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
240 RUNLEVEL1_TARGET_WANTS =
241 RUNLEVEL2_TARGET_WANTS =
242 RUNLEVEL3_TARGET_WANTS =
243 RUNLEVEL4_TARGET_WANTS =
244 RUNLEVEL5_TARGET_WANTS =
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 SYSINIT_TARGET_WANTS =
249 SOCKETS_TARGET_WANTS =
250 BUSNAMES_TARGET_WANTS =
251 TIMERS_TARGET_WANTS =
252 USER_SOCKETS_TARGET_WANTS =
253 USER_BUSNAMES_TARGET_WANTS =
255 SYSTEM_UNIT_ALIASES =
259 install-target-wants-hook:
260 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
261 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 install-busnames-target-wants-hook:
275 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
276 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
279 [ -z "$$what" ] || ( \
280 dir=$(DESTDIR)$$dir/$$wants.wants && \
281 $(MKDIR_P) -m 0755 $$dir && \
284 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
287 install-directories-hook:
288 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
290 install-aliases-hook:
291 set -- $(SYSTEM_UNIT_ALIASES) && \
292 dir=$(systemunitdir) && $(install-aliases)
293 set -- $(USER_UNIT_ALIASES) && \
294 dir=$(userunitdir) && $(install-relative-aliases)
295 set -- $(GENERAL_ALIASES) && \
296 dir= && $(install-relative-aliases)
298 define install-aliases
299 while [ -n "$$1" ]; do \
300 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
301 rm -f $(DESTDIR)$$dir/$$2 && \
302 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
303 shift 2 || exit $$?; \
307 define install-relative-aliases
308 while [ -n "$$1" ]; do \
309 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
310 rm -f $(DESTDIR)$$dir/$$2 && \
311 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
312 shift 2 || exit $$?; \
316 install-touch-usr-hook:
317 touch -c $(DESTDIR)/$(prefix)
319 INSTALL_EXEC_HOOKS += \
320 install-target-wants-hook \
321 install-directories-hook \
322 install-aliases-hook \
323 install-touch-usr-hook
326 INSTALL_EXEC_HOOKS += \
327 install-busnames-target-wants-hook
330 # ------------------------------------------------------------------------------
331 AM_V_M4 = $(AM_V_M4_$(V))
332 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
333 AM_V_M4_0 = @echo " M4 " $@;
335 AM_V_XSLT = $(AM_V_XSLT_$(V))
336 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
337 AM_V_XSLT_0 = @echo " XSLT " $@;
339 AM_V_GPERF = $(AM_V_GPERF_$(V))
340 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
341 AM_V_GPERF_0 = @echo " GPERF " $@;
343 AM_V_LN = $(AM_V_LN_$(V))
344 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
345 AM_V_LN_0 = @echo " LN " $@;
347 AM_V_RM = $(AM_V_RM_$(V))
348 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
349 AM_V_RM_0 = @echo " RM " $@;
351 # ------------------------------------------------------------------------------
355 systemd-ask-password \
356 systemd-tty-ask-password-agent \
357 systemd-machine-id-setup \
364 systemd-detect-virt \
371 src/kernel-install/kernel-install
373 dist_kernelinstall_SCRIPTS = \
374 src/kernel-install/50-depmod.install \
375 src/kernel-install/90-loaderentry.install
377 rootlibexec_PROGRAMS = \
379 systemd-cgroups-agent \
384 systemd-reply-password \
390 systemd-socket-proxyd \
394 rootlibexec_PROGRAMS += \
398 systemgenerator_PROGRAMS = \
399 systemd-getty-generator \
400 systemd-fstab-generator \
401 systemd-system-update-generator \
402 systemd-debug-generator
404 dist_bashcompletion_DATA = \
405 shell-completion/bash/busctl \
406 shell-completion/bash/journalctl \
407 shell-completion/bash/systemd-analyze \
408 shell-completion/bash/systemd-cat \
409 shell-completion/bash/systemd-cgls \
410 shell-completion/bash/systemd-cgtop \
411 shell-completion/bash/systemd-delta \
412 shell-completion/bash/systemd-detect-virt \
413 shell-completion/bash/systemd-nspawn \
414 shell-completion/bash/systemd-run \
415 shell-completion/bash/udevadm \
416 shell-completion/bash/kernel-install
418 nodist_bashcompletion_DATA = \
419 shell-completion/bash/systemctl
421 dist_zshcompletion_DATA = \
422 shell-completion/zsh/_journalctl \
423 shell-completion/zsh/_udevadm \
424 shell-completion/zsh/_kernel-install \
425 shell-completion/zsh/_systemd-nspawn \
426 shell-completion/zsh/_systemd-analyze \
427 shell-completion/zsh/_systemd-run \
428 shell-completion/zsh/_sd_hosts_or_user_at_host \
429 shell-completion/zsh/_sd_outputmodes \
430 shell-completion/zsh/_sd_unit_files \
431 shell-completion/zsh/_systemd-delta \
432 shell-completion/zsh/_systemd
434 nodist_zshcompletion_DATA = \
435 shell-completion/zsh/_systemctl
438 shell-completion/bash/systemctl.in \
439 shell-completion/zsh/_systemctl.in
442 $(nodist_bashcompletion_DATA) \
443 $(nodist_zshcompletion_DATA)
446 sysctl.d/50-default.conf
448 dist_systemunit_DATA = \
449 units/graphical.target \
450 units/multi-user.target \
451 units/emergency.target \
452 units/sysinit.target \
457 units/local-fs.target \
458 units/local-fs-pre.target \
459 units/initrd.target \
460 units/initrd-fs.target \
461 units/initrd-root-fs.target \
462 units/remote-fs.target \
463 units/remote-fs-pre.target \
464 units/network.target \
465 units/network-pre.target \
466 units/network-online.target \
467 units/nss-lookup.target \
468 units/nss-user-lookup.target \
469 units/poweroff.target \
470 units/reboot.target \
471 units/rescue.target \
472 units/rpcbind.target \
473 units/time-sync.target \
474 units/shutdown.target \
476 units/umount.target \
477 units/sigpwr.target \
479 units/sockets.target \
480 units/timers.target \
482 units/suspend.target \
484 units/slices.target \
487 units/systemd-initctl.socket \
488 units/systemd-shutdownd.socket \
489 units/syslog.socket \
490 units/dev-hugepages.mount \
491 units/dev-mqueue.mount \
492 units/sys-kernel-config.mount \
493 units/sys-kernel-debug.mount \
494 units/sys-fs-fuse-connections.mount \
496 units/printer.target \
498 units/bluetooth.target \
499 units/smartcard.target \
500 units/systemd-ask-password-wall.path \
501 units/systemd-ask-password-console.path \
502 units/systemd-udevd-control.socket \
503 units/systemd-udevd-kernel.socket \
504 units/system-update.target \
505 units/initrd-switch-root.target
508 dist_systemunit_DATA += \
509 $(dist_systemunit_DATA_busnames)
512 dist_systemunit_DATA_busnames += \
513 units/busnames.target
515 nodist_systemunit_DATA = \
516 units/getty@.service \
517 units/serial-getty@.service \
518 units/console-shell.service \
519 units/console-getty.service \
520 units/container-getty@.service \
521 units/systemd-initctl.service \
522 units/systemd-shutdownd.service \
523 units/systemd-remount-fs.service \
524 units/systemd-ask-password-wall.service \
525 units/systemd-ask-password-console.service \
526 units/systemd-sysctl.service \
527 units/emergency.service \
528 units/rescue.service \
529 units/user@.service \
530 units/systemd-suspend.service \
531 units/systemd-halt.service \
532 units/systemd-poweroff.service \
533 units/systemd-reboot.service \
534 units/systemd-kexec.service \
535 units/systemd-fsck@.service \
536 units/systemd-fsck-root.service \
537 units/systemd-udevd.service \
538 units/systemd-udev-trigger.service \
539 units/systemd-udev-settle.service \
540 units/systemd-udev-hwdb-update.service \
541 units/debug-shell.service \
542 units/initrd-parse-etc.service \
543 units/initrd-cleanup.service \
544 units/initrd-udevadm-cleanup-db.service \
545 units/initrd-switch-root.service \
546 units/systemd-nspawn@.service \
547 units/systemd-update-done.service
550 nodist_systemunit_DATA += \
551 units/systemd-update-utmp.service \
552 units/systemd-update-utmp-runlevel.service
555 dist_userunit_DATA = \
556 units/user/basic.target \
557 units/user/default.target \
558 units/user/exit.target
560 nodist_userunit_DATA = \
561 units/user/systemd-exit.service
563 dist_systempreset_DATA = \
564 system-preset/90-systemd.preset
567 units/getty@.service.m4 \
568 units/serial-getty@.service.m4 \
569 units/console-shell.service.m4.in \
570 units/console-getty.service.m4.in \
571 units/container-getty@.service.m4.in \
572 units/rescue.service.in \
573 units/systemd-initctl.service.in \
574 units/systemd-shutdownd.service.in \
575 units/systemd-remount-fs.service.in \
576 units/systemd-update-utmp.service.in \
577 units/systemd-update-utmp-runlevel.service.in \
578 units/systemd-ask-password-wall.service.in \
579 units/systemd-ask-password-console.service.in \
580 units/systemd-sysctl.service.in \
581 units/emergency.service.in \
582 units/systemd-halt.service.in \
583 units/systemd-poweroff.service.in \
584 units/systemd-reboot.service.in \
585 units/systemd-kexec.service.in \
586 units/user/systemd-exit.service.in \
587 units/systemd-fsck@.service.in \
588 units/systemd-fsck-root.service.in \
589 units/user@.service.in \
590 units/debug-shell.service.in \
591 units/systemd-suspend.service.in \
592 units/quotaon.service.in \
593 units/initrd-parse-etc.service.in \
594 units/initrd-cleanup.service.in \
595 units/initrd-udevadm-cleanup-db.service.in \
596 units/initrd-switch-root.service.in \
597 units/systemd-nspawn@.service.in \
598 units/systemd-update-done.service.in
601 units/console-shell.service.m4 \
602 units/console-getty.service.m4 \
603 units/container-getty@.service.m4 \
604 units/user@.service.m4
607 nodist_systemunit_DATA += \
608 units/rc-local.service \
609 units/halt-local.service
611 systemgenerator_PROGRAMS += \
612 systemd-sysv-generator \
613 systemd-rc-local-generator
617 units/rc-local.service.in \
618 units/halt-local.service.in
620 # automake is broken and can't handle files with a dash in front
621 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
623 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
625 units-uninstall-hook:
626 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
628 INSTALL_DATA_HOOKS += units-install-hook
629 UNINSTALL_DATA_HOOKS += units-uninstall-hook
638 src/libsystemd/sd-bus/PORTING-DBUS1 \
639 src/libsystemd/sd-bus/DIFFERENCES \
640 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
642 @INTLTOOL_POLICY_RULE@
644 # ------------------------------------------------------------------------------
649 include Makefile-man.am
651 .PHONY: man update-man-list
652 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
655 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
657 ${XML_FILES:.xml=.html}
659 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
676 $(AM_V_at)$(MKDIR_P) $(dir $@)
677 $(AM_V_LN)$(LN_S) -f ../../man $@
686 man/index.html: man/systemd.index.html
687 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
695 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
696 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
697 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
699 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
700 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
701 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
702 @echo "Makefile-man.am has been regenerated"
704 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
705 $(AM_V_at)$(MKDIR_P) $(dir $@)
706 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
708 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
709 $(AM_V_at)$(MKDIR_P) $(dir $@)
710 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
713 man/systemd.index.xml \
715 man/systemd.directives.xml
718 man/systemd.index.xml \
719 man/systemd.directives.xml
730 tools/make-man-index.py \
731 tools/make-directive-index.py \
734 # ------------------------------------------------------------------------------
735 noinst_LTLIBRARIES += \
738 libsystemd_shared_la_SOURCES = \
739 src/shared/linux/auto_dev-ioctl.h \
740 src/shared/linux/fanotify.h \
741 src/shared/ioprio.h \
742 src/shared/missing.h \
743 src/shared/initreq.h \
744 src/shared/securebits.h \
745 src/shared/special.h \
749 src/shared/sparse-endian.h \
750 src/shared/refcnt.h \
751 src/shared/udev-util.h \
752 src/shared/bus-errors.h \
753 src/shared/device-nodes.c \
754 src/shared/device-nodes.h \
759 src/shared/architecture.c \
760 src/shared/architecture.h \
761 src/shared/efivars.c \
762 src/shared/efivars.h \
763 src/shared/path-util.c \
764 src/shared/path-util.h \
765 src/shared/time-util.c \
766 src/shared/time-util.h \
767 src/shared/locale-util.c \
768 src/shared/locale-util.h \
769 src/shared/hashmap.c \
770 src/shared/hashmap.h \
771 src/shared/siphash24.c \
772 src/shared/siphash24.h \
779 src/shared/sleep-config.c \
780 src/shared/sleep-config.h \
783 src/shared/env-util.c \
784 src/shared/env-util.h \
785 src/shared/strbuf.c \
786 src/shared/strbuf.h \
787 src/shared/strxcpyx.c \
788 src/shared/strxcpyx.h \
789 src/shared/conf-parser.c \
790 src/shared/conf-parser.h \
793 src/shared/ratelimit.h \
794 src/shared/ratelimit.c \
795 src/shared/exit-status.c \
796 src/shared/exit-status.h \
799 src/shared/gunicode.c \
800 src/shared/gunicode.h \
803 src/shared/socket-util.c \
804 src/shared/socket-util.h \
805 src/shared/in-addr-util.c \
806 src/shared/in-addr-util.h \
807 src/shared/conf-files.c \
808 src/shared/conf-files.h \
809 src/shared/cgroup-util.c \
810 src/shared/cgroup-util.h \
811 src/shared/cgroup-show.c \
812 src/shared/cgroup-show.h \
813 src/shared/unit-name.c \
814 src/shared/unit-name.h \
815 src/shared/utmp-wtmp.h \
816 src/shared/watchdog.c \
817 src/shared/watchdog.h \
818 src/shared/spawn-ask-password-agent.c \
819 src/shared/spawn-ask-password-agent.h \
820 src/shared/replace-var.c \
821 src/shared/replace-var.h \
822 src/shared/spawn-polkit-agent.c \
823 src/shared/spawn-polkit-agent.h \
824 src/shared/clock-util.c \
825 src/shared/clock-util.h \
826 src/shared/time-dst.c \
827 src/shared/time-dst.h \
828 src/shared/calendarspec.c \
829 src/shared/calendarspec.h \
830 src/shared/fileio.c \
831 src/shared/fileio.h \
832 src/shared/output-mode.h \
833 src/shared/MurmurHash2.c \
834 src/shared/MurmurHash2.h \
835 src/shared/acpi-fpdt.h \
836 src/shared/acpi-fpdt.c \
837 src/shared/boot-timestamps.h \
838 src/shared/boot-timestamps.c \
841 src/shared/smack-util.c \
842 src/shared/smack-util.h \
843 src/shared/apparmor-util.c \
844 src/shared/apparmor-util.h \
845 src/shared/ima-util.c \
846 src/shared/ima-util.h \
847 src/shared/ptyfwd.c \
848 src/shared/ptyfwd.h \
849 src/shared/errno-list.c \
850 src/shared/errno-list.h \
851 src/shared/af-list.c \
852 src/shared/af-list.h \
853 src/shared/arphrd-list.c \
854 src/shared/arphrd-list.h \
859 src/shared/condition-util.c \
860 src/shared/condition-util.h \
861 src/shared/bus-label.c \
862 src/shared/bus-label.h \
864 src/shared/clean-ipc.h \
865 src/shared/clean-ipc.c \
866 src/shared/login-shared.c \
867 src/shared/login-shared.h \
870 src/shared/barrier.c \
871 src/shared/barrier.h \
878 src/shared/base-filesystem.c \
879 src/shared/base-filesystem.h \
882 src/shared/uid-range.c \
883 src/shared/uid-range.h \
884 src/shared/switch-root.h \
885 src/shared/switch-root.c \
886 src/shared/nss-util.h
889 libsystemd_shared_la_SOURCES += \
890 src/shared/utmp-wtmp.c
893 nodist_libsystemd_shared_la_SOURCES = \
894 src/shared/errno-from-name.h \
895 src/shared/errno-to-name.h \
896 src/shared/af-from-name.h \
897 src/shared/af-to-name.h \
898 src/shared/arphrd-from-name.h \
899 src/shared/arphrd-to-name.h
901 libsystemd_shared_la_CFLAGS = \
906 # ------------------------------------------------------------------------------
907 noinst_LTLIBRARIES += \
910 libsystemd_units_la_SOURCES = \
911 src/shared/install.c \
912 src/shared/install.h \
913 src/shared/install-printf.c \
914 src/shared/install-printf.h \
915 src/shared/path-lookup.c \
916 src/shared/path-lookup.h \
917 src/shared/specifier.c \
918 src/shared/specifier.h
920 # ------------------------------------------------------------------------------
921 noinst_LTLIBRARIES += \
924 libsystemd_label_la_SOURCES = \
925 src/shared/socket-label.c \
928 src/shared/selinux-util.c \
929 src/shared/selinux-util.h \
930 src/shared/mkdir-label.c \
931 src/shared/ask-password-api.c \
932 src/shared/ask-password-api.h \
933 src/shared/fileio-label.c \
934 src/shared/fileio-label.h \
935 src/shared/dev-setup.c \
936 src/shared/dev-setup.h \
937 src/shared/dropin.c \
938 src/shared/dropin.h \
939 src/shared/generator.h \
940 src/shared/generator.c
942 libsystemd_label_la_CFLAGS = \
946 libsystemd_label_la_LIBADD = \
949 # -----------------------------------------------------------------------------
952 dist_systemunit_DATA += \
953 units/ldconfig.service
955 SYSINIT_TARGET_WANTS += \
959 # ------------------------------------------------------------------------------
962 noinst_LTLIBRARIES += \
963 libsystemd-seccomp.la
965 libsystemd_seccomp_la_SOURCES = \
966 src/shared/seccomp-util.h \
967 src/shared/seccomp-util.c
969 libsystemd_seccomp_la_CFLAGS = \
973 libsystemd_seccomp_la_LIBADD = \
977 # ------------------------------------------------------------------------------
978 noinst_LTLIBRARIES += \
981 libsystemd_logs_la_SOURCES = \
982 src/shared/logs-show.c \
983 src/shared/logs-show.h
985 # ------------------------------------------------------------------------------
986 noinst_LTLIBRARIES += \
987 libsystemd-capability.la
989 libsystemd_capability_la_SOURCES = \
990 src/shared/capability.c \
991 src/shared/capability.h
993 libsystemd_capability_la_CFLAGS = \
997 libsystemd_capability_la_LIBADD = \
1000 # ------------------------------------------------------------------------------
1002 noinst_LTLIBRARIES += \
1005 libsystemd_acl_la_SOURCES = \
1006 src/shared/acl-util.c \
1007 src/shared/acl-util.h
1009 libsystemd_acl_la_CFLAGS = \
1013 libsystemd_acl_la_LIBADD = \
1017 # ------------------------------------------------------------------------------
1018 noinst_LTLIBRARIES += \
1021 libsystemd_core_la_SOURCES = \
1024 src/core/unit-printf.c \
1025 src/core/unit-printf.h \
1028 src/core/manager.c \
1029 src/core/manager.h \
1030 src/core/transaction.c \
1031 src/core/transaction.h \
1032 src/core/load-fragment.c \
1033 src/core/load-fragment.h \
1034 src/core/service.c \
1035 src/core/service.h \
1038 src/core/busname.c \
1039 src/core/busname.h \
1040 src/core/bus-common.c \
1041 src/core/bus-common.h \
1042 src/core/bus-endpoint.c \
1043 src/core/bus-endpoint.h \
1046 src/core/snapshot.c \
1047 src/core/snapshot.h \
1052 src/core/automount.c \
1053 src/core/automount.h \
1064 src/core/load-dropin.c \
1065 src/core/load-dropin.h \
1066 src/core/execute.c \
1067 src/core/execute.h \
1072 src/core/dbus-manager.c \
1073 src/core/dbus-manager.h \
1074 src/core/dbus-unit.c \
1075 src/core/dbus-unit.h \
1076 src/core/dbus-job.c \
1077 src/core/dbus-job.h \
1078 src/core/dbus-service.c \
1079 src/core/dbus-service.h \
1080 src/core/dbus-socket.c \
1081 src/core/dbus-socket.h \
1082 src/core/dbus-busname.c \
1083 src/core/dbus-busname.h \
1084 src/core/dbus-target.c \
1085 src/core/dbus-target.h \
1086 src/core/dbus-snapshot.c \
1087 src/core/dbus-snapshot.h \
1088 src/core/dbus-device.c \
1089 src/core/dbus-device.h \
1090 src/core/dbus-mount.c \
1091 src/core/dbus-mount.h \
1092 src/core/dbus-automount.c \
1093 src/core/dbus-automount.h \
1094 src/core/dbus-swap.c \
1095 src/core/dbus-swap.h \
1096 src/core/dbus-timer.c \
1097 src/core/dbus-timer.h \
1098 src/core/dbus-path.c \
1099 src/core/dbus-path.h \
1100 src/core/dbus-slice.c \
1101 src/core/dbus-slice.h \
1102 src/core/dbus-scope.c \
1103 src/core/dbus-scope.h \
1104 src/core/dbus-execute.c \
1105 src/core/dbus-execute.h \
1106 src/core/dbus-kill.c \
1107 src/core/dbus-kill.h \
1108 src/core/dbus-cgroup.c \
1109 src/core/dbus-cgroup.h \
1112 src/core/selinux-access.c \
1113 src/core/selinux-access.h \
1114 src/core/selinux-setup.c \
1115 src/core/selinux-setup.h \
1116 src/core/smack-setup.c \
1117 src/core/smack-setup.h \
1118 src/core/ima-setup.c \
1119 src/core/ima-setup.h \
1120 src/core/locale-setup.h \
1121 src/core/locale-setup.c \
1122 src/core/hostname-setup.c \
1123 src/core/hostname-setup.h \
1124 src/core/machine-id-setup.c \
1125 src/core/machine-id-setup.h \
1126 src/core/mount-setup.c \
1127 src/core/mount-setup.h \
1128 src/core/loopback-setup.h \
1129 src/core/loopback-setup.c \
1130 src/core/condition.c \
1131 src/core/condition.h \
1132 src/core/namespace.c \
1133 src/core/namespace.h \
1135 src/core/sysfs-show.h \
1136 src/core/killall.h \
1137 src/core/killall.c \
1138 src/core/audit-fd.c \
1139 src/core/audit-fd.h \
1140 src/core/show-status.c \
1141 src/core/show-status.h \
1142 src/core/failure-action.c \
1143 src/core/failure-action.h
1146 libsystemd_core_la_SOURCES += \
1147 src/core/kmod-setup.c \
1148 src/core/kmod-setup.h
1151 nodist_libsystemd_core_la_SOURCES = \
1152 src/core/load-fragment-gperf.c \
1153 src/core/load-fragment-gperf-nulstr.c
1155 libsystemd_core_la_CFLAGS = \
1161 $(APPARMOR_CFLAGS) \
1165 libsystemd_core_la_LIBADD = \
1166 libsystemd-capability.la \
1167 libsystemd-units.la \
1168 libsystemd-label.la \
1169 libudev-internal.la \
1170 libsystemd-shared.la \
1171 libsystemd-internal.la \
1180 libsystemd_core_la_LIBADD += \
1181 libsystemd-seccomp.la
1184 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1185 $(AM_V_at)$(MKDIR_P) $(dir $@)
1186 $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
1189 src/core/load-fragment-gperf.gperf.m4
1192 src/core/load-fragment-gperf.gperf \
1193 src/core/load-fragment-gperf.c \
1194 src/core/load-fragment-gperf-nulstr.c \
1195 src/shared/errno-list.txt \
1196 src/shared/errno-from-name.gperf \
1197 src/shared/af-list.txt \
1198 src/shared/af-from-name.gperf \
1199 src/shared/arphrd-list.txt \
1200 src/shared/arphrd-from-name.gperf \
1201 src/shared/dns_type-list.txt \
1202 src/shared/dns_type-from-name.gperf
1205 src/shared/errno-from-name.h \
1206 src/shared/errno-to-name.h \
1207 src/shared/af-from-name.h \
1208 src/shared/af-to-name.h \
1209 src/shared/arphrd-from-name.h \
1210 src/shared/arphrd-to-name.h \
1211 src/resolve/dns_type-from-name.h \
1212 src/resolve/dns_type-to-name.h
1214 %-from-name.gperf: %-list.txt
1215 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1217 %-from-name.h: %-from-name.gperf
1218 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1221 src/shared/errno-list.txt:
1222 $(AM_V_at)$(MKDIR_P) $(dir $@)
1223 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1225 src/shared/errno-to-name.h: src/shared/errno-list.txt
1226 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1229 src/shared/af-list.txt:
1230 $(AM_V_at)$(MKDIR_P) $(dir $@)
1231 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1233 src/shared/af-to-name.h: src/shared/af-list.txt
1234 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1236 src/shared/arphrd-list.txt:
1237 $(AM_V_at)$(MKDIR_P) $(dir $@)
1238 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1240 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1241 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1243 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1244 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1247 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1248 $(AM_V_at)$(MKDIR_P) $(dir $@)
1249 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1251 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1252 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1254 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1255 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1257 # ------------------------------------------------------------------------------
1266 libsystemd-core.la \
1269 dist_pkgsysconf_DATA += \
1270 src/core/system.conf \
1273 dist_dbuspolicy_DATA += \
1274 src/core/org.freedesktop.systemd1.conf
1276 dist_dbussystemservice_DATA += \
1277 src/core/org.freedesktop.systemd1.service
1279 polkitpolicy_in_in_files += \
1280 src/core/org.freedesktop.systemd1.policy.in.in
1282 pkgconfigdata_DATA = \
1285 nodist_rpmmacros_DATA = \
1286 src/core/macros.systemd
1289 src/core/systemd.pc.in \
1290 src/core/macros.systemd.in
1293 src/core/macros.systemd \
1294 src/core/org.freedesktop.systemd1.policy.in
1296 # ------------------------------------------------------------------------------
1338 test-strip-tab-ansi \
1356 test-condition-util \
1365 test/daughter.service \
1370 test/grandchild.service \
1372 test/hello-after-sleep.target \
1373 test/hello.service \
1375 test/parent-deep.slice \
1378 test/sched_idle_bad.service \
1379 test/sched_idle_ok.service \
1380 test/sched_rr_bad.service \
1381 test/sched_rr_change.service \
1382 test/sched_rr_ok.service \
1383 test/shutdown.target \
1384 test/sleep.service \
1385 test/sockets.target \
1387 test/sysinit.target \
1388 test/testsuite.target \
1389 test/timers.target \
1390 test/unstoppable.service \
1391 test/bus-policy/hello.conf \
1392 test/bus-policy/methods.conf \
1393 test/bus-policy/ownerships.conf \
1394 test/bus-policy/signals.conf
1398 src/test/test-helper.h
1400 test_device_nodes_SOURCES = \
1401 src/test/test-device-nodes.c
1403 test_device_nodes_LDADD = \
1404 libsystemd-shared.la
1406 test_engine_SOURCES = \
1407 src/test/test-engine.c
1409 test_engine_CFLAGS = \
1413 test_engine_LDADD = \
1414 libsystemd-core.la \
1417 test_job_type_SOURCES = \
1418 src/test/test-job-type.c
1420 test_job_type_CFLAGS = \
1424 test_job_type_LDADD = \
1425 libsystemd-core.la \
1438 test_loopback_SOURCES = \
1439 src/test/test-loopback.c
1441 test_loopback_LDADD = \
1444 test_hostname_SOURCES = \
1445 src/test/test-hostname.c
1447 test_hostname_LDADD = \
1454 test_boot_timestamp_SOURCES = \
1455 src/test/test-boot-timestamps.c
1457 test_boot_timestamp_LDADD = \
1458 libsystemd-shared.la
1461 test_unit_name_SOURCES = \
1462 src/test/test-unit-name.c
1464 test_unit_name_CFLAGS = \
1468 test_unit_name_LDADD = \
1469 libsystemd-core.la \
1472 test_unit_file_SOURCES = \
1473 src/test/test-unit-file.c
1475 test_unit_file_CFLAGS = \
1479 test_unit_file_LDADD = \
1480 libsystemd-core.la \
1483 test_utf8_SOURCES = \
1484 src/test/test-utf8.c
1487 libsystemd-shared.la
1489 test_capability_SOURCES = \
1490 src/test/test-capability.c
1492 test_capability_LDADD = \
1493 libsystemd-shared.la \
1494 libsystemd-capability.la
1496 test_async_SOURCES = \
1497 src/test/test-async.c
1499 test_async_LDADD = \
1500 libsystemd-shared.la
1502 test_condition_util_SOURCES = \
1503 src/test/test-condition-util.c
1505 test_condition_util_LDADD = \
1506 libsystemd-shared.la \
1507 libsystemd-internal.la
1510 test_fdset_SOURCES = \
1511 src/test/test-fdset.c
1513 test_fdset_LDADD = \
1516 test_ratelimit_SOURCES = \
1517 src/test/test-ratelimit.c
1519 test_ratelimit_LDADD = \
1520 libsystemd-shared.la
1522 test_util_SOURCES = \
1523 src/test/test-util.c
1528 test_uid_range_SOURCES = \
1529 src/test/test-uid-range.c
1531 test_uid_range_LDADD = \
1534 test_socket_util_SOURCES = \
1535 src/test/test-socket-util.c
1537 test_socket_util_LDADD = \
1540 test_ring_SOURCES = \
1541 src/test/test-ring.c
1546 test_barrier_SOURCES = \
1547 src/test/test-barrier.c
1549 test_barrier_LDADD = \
1552 test_pty_SOURCES = \
1558 test_tmpfiles_SOURCES = \
1559 src/test/test-tmpfiles.c
1561 test_tmpfiles_LDADD = \
1562 libsystemd-shared.la
1564 test_namespace_SOURCES = \
1565 src/test/test-namespace.c
1567 test_namespace_LDADD = \
1570 test_hashmap_SOURCES = \
1571 src/test/test-hashmap.c
1573 test_hashmap_LDADD = \
1576 test_set_SOURCES = \
1582 test_xml_SOURCES = \
1586 libsystemd-shared.la
1588 test_list_SOURCES = \
1589 src/test/test-list.c
1594 test_tables_SOURCES = \
1595 src/test/test-tables.c \
1596 src/shared/test-tables.h \
1597 src/bus-proxyd/bus-policy.c \
1598 src/bus-proxyd/bus-policy.h \
1599 src/journal/journald-server.c \
1600 src/journal/journald-server.h
1602 test_tables_CPPFLAGS = \
1604 -I$(top_srcdir)/src/bus-proxyd
1606 test_tables_CFLAGS = \
1610 test_tables_LDADD = \
1611 libsystemd-logs.la \
1612 libsystemd-journal-internal.la \
1613 libsystemd-journal-core.la \
1614 libsystemd-core.la \
1618 test_prioq_SOURCES = \
1619 src/test/test-prioq.c
1621 test_prioq_LDADD = \
1624 test_fileio_SOURCES = \
1625 src/test/test-fileio.c
1627 test_fileio_LDADD = \
1630 test_time_SOURCES = \
1631 src/test/test-time.c
1636 test_architecture_SOURCES = \
1637 src/test/test-architecture.c
1639 test_architecture_LDADD = \
1640 libsystemd-shared.la
1642 test_log_SOURCES = \
1648 test_ipcrm_SOURCES = \
1649 src/test/test-ipcrm.c
1651 test_ipcrm_LDADD = \
1652 libsystemd-shared.la \
1655 test_rtnl_manual_SOURCES = \
1656 src/test/test-rtnl-manual.c
1658 test_rtnl_manual_CFLAGS = \
1662 test_rtnl_manual_LDADD = \
1663 libsystemd-internal.la \
1664 libsystemd-shared.la \
1667 test_ellipsize_SOURCES = \
1668 src/test/test-ellipsize.c
1670 test_ellipsize_LDADD = \
1673 test_date_SOURCES = \
1674 src/test/test-date.c
1679 test_sleep_SOURCES = \
1680 src/test/test-sleep.c
1682 test_sleep_LDADD = \
1685 test_replace_var_SOURCES = \
1686 src/test/test-replace-var.c
1688 test_replace_var_LDADD = \
1689 libsystemd-shared.la
1691 test_calendarspec_SOURCES = \
1692 src/test/test-calendarspec.c
1694 test_calendarspec_LDADD = \
1695 libsystemd-shared.la
1697 test_strip_tab_ansi_SOURCES = \
1698 src/test/test-strip-tab-ansi.c
1700 test_strip_tab_ansi_LDADD = \
1701 libsystemd-shared.la
1703 test_daemon_SOURCES = \
1704 src/test/test-daemon.c
1706 test_daemon_LDADD = \
1707 libsystemd-internal.la \
1708 libsystemd-shared.la
1710 test_cgroup_SOURCES = \
1711 src/test/test-cgroup.c
1713 test_cgroup_LDADD = \
1714 libsystemd-label.la \
1715 libsystemd-shared.la \
1716 libsystemd-internal.la
1718 test_cgroup_mask_SOURCES = \
1719 src/test/test-cgroup-mask.c
1721 test_cgroup_mask_CPPFLAGS = \
1723 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1725 test_cgroup_mask_CFLAGS = \
1729 test_cgroup_mask_LDADD = \
1730 libsystemd-core.la \
1733 test_cgroup_util_SOURCES = \
1734 src/test/test-cgroup-util.c
1736 test_cgroup_util_LDADD = \
1737 libsystemd-label.la \
1738 libsystemd-internal.la \
1739 libsystemd-shared.la
1741 test_env_replace_SOURCES = \
1742 src/test/test-env-replace.c
1744 test_env_replace_LDADD = \
1745 libsystemd-shared.la
1747 test_strbuf_SOURCES = \
1748 src/test/test-strbuf.c
1750 test_strbuf_LDADD = \
1751 libsystemd-shared.la
1753 test_strv_SOURCES = \
1754 src/test/test-strv.c
1757 libsystemd-units.la \
1758 libsystemd-internal.la \
1759 libsystemd-shared.la
1761 test_path_util_SOURCES = \
1762 src/test/test-path-util.c
1764 test_path_util_LDADD = \
1765 libsystemd-shared.la
1767 test_strxcpyx_SOURCES = \
1768 src/test/test-strxcpyx.c
1770 test_strxcpyx_LDADD = \
1771 libsystemd-shared.la
1773 test_install_SOURCES = \
1774 src/test/test-install.c
1776 test_install_LDADD = \
1777 libsystemd-units.la \
1778 libsystemd-label.la \
1779 libsystemd-shared.la \
1780 libsystemd-internal.la
1782 test_watchdog_SOURCES = \
1783 src/test/test-watchdog.c
1785 test_watchdog_LDADD = \
1786 libsystemd-shared.la
1788 test_sched_prio_SOURCES = \
1789 src/test/test-sched-prio.c
1791 test_sched_prio_CPPFLAGS = \
1793 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1795 test_sched_prio_CFLAGS = \
1799 test_sched_prio_LDADD = \
1800 libsystemd-core.la \
1803 test_conf_files_SOURCES = \
1804 src/test/test-conf-files.c
1806 test_conf_files_LDADD = \
1807 libsystemd-shared.la
1809 test_bus_policy_SOURCES = \
1810 src/bus-proxyd/test-bus-policy.c \
1811 src/bus-proxyd/bus-policy.c \
1812 src/bus-proxyd/bus-policy.h
1814 test_bus_policy_LDADD = \
1815 libsystemd-capability.la \
1816 libsystemd-internal.la \
1817 libsystemd-shared.la
1819 # ------------------------------------------------------------------------------
1820 ## .PHONY so it always rebuilds it
1821 .PHONY: coverage lcov-run lcov-report coverage-sync
1823 # run lcov from scratch, always
1828 coverage_dir = coverage
1829 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1832 # reset run coverage tests
1834 @rm -rf $(coverage_dir)
1835 lcov $(coverage_opts) --zerocounters
1838 # generate report based on current coverage data
1840 $(MKDIR_P) $(coverage_dir)
1841 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1842 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1843 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1844 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1846 # lcov doesn't work properly with vpath builds, make sure that bad
1847 # output is not uploaded by mistake.
1848 coverage-sync: coverage
1849 test "$(builddir)" = "$(srcdir)"
1850 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1853 lcov-run lcov-report:
1854 echo "Need to reconfigure with --enable-coverage"
1857 # ------------------------------------------------------------------------------
1858 systemd_analyze_SOURCES = \
1859 src/analyze/analyze.c \
1860 src/analyze/analyze-verify.c \
1861 src/analyze/analyze-verify.h
1863 systemd_verify_CFLAGS = \
1867 systemd_analyze_LDADD = \
1868 libsystemd-core.la \
1869 libsystemd-internal.la \
1870 libsystemd-shared.la \
1873 # ------------------------------------------------------------------------------
1874 systemd_initctl_SOURCES = \
1875 src/initctl/initctl.c
1877 systemd_initctl_LDADD = \
1878 libsystemd-internal.la \
1879 libsystemd-shared.la
1881 # ------------------------------------------------------------------------------
1882 systemd_update_utmp_SOURCES = \
1883 src/update-utmp/update-utmp.c
1885 systemd_update_utmp_CFLAGS = \
1889 systemd_update_utmp_LDADD = \
1890 libsystemd-internal.la \
1891 libsystemd-shared.la \
1894 # ------------------------------------------------------------------------------
1895 systemd_update_done_SOURCES = \
1896 src/update-done/update-done.c
1898 systemd_update_done_LDADD = \
1899 libsystemd-internal.la \
1900 libsystemd-label.la \
1901 libsystemd-shared.la
1903 # ------------------------------------------------------------------------------
1904 systemd_shutdownd_SOURCES = \
1905 src/shutdownd/shutdownd.c
1907 systemd_shutdownd_LDADD = \
1908 libsystemd-label.la \
1909 libsystemd-internal.la \
1910 libsystemd-shared.la
1913 src/systemd/sd-shutdown.h
1915 # ------------------------------------------------------------------------------
1916 systemd_shutdown_SOURCES = \
1919 src/core/shutdown.c \
1920 src/core/mount-setup.c \
1921 src/core/mount-setup.h \
1922 src/core/killall.h \
1925 systemd_shutdown_LDADD = \
1926 libsystemd-label.la \
1927 libudev-internal.la \
1928 libsystemd-shared.la
1930 # ------------------------------------------------------------------------------
1932 systemd_modules_load_SOURCES = \
1933 src/modules-load/modules-load.c
1935 systemd_modules_load_CFLAGS = \
1939 systemd_modules_load_LDADD = \
1940 libsystemd-shared.la \
1943 rootlibexec_PROGRAMS += \
1944 systemd-modules-load
1946 nodist_systemunit_DATA += \
1947 units/systemd-modules-load.service
1949 SYSINIT_TARGET_WANTS += \
1950 systemd-modules-load.service
1953 nodist_systemunit_DATA += \
1954 units/kmod-static-nodes.service
1956 SYSINIT_TARGET_WANTS += \
1957 kmod-static-nodes.service
1962 units/systemd-modules-load.service.in \
1963 units/kmod-static-nodes.service.in
1965 # ------------------------------------------------------------------------------
1967 systemd_tmpfiles_SOURCES = \
1968 src/tmpfiles/tmpfiles.c
1970 systemd_tmpfiles_LDADD = \
1971 libsystemd-units.la \
1972 libsystemd-label.la \
1973 libsystemd-capability.la \
1974 libsystemd-internal.la \
1975 libsystemd-shared.la
1977 rootbin_PROGRAMS += \
1980 dist_systemunit_DATA += \
1981 units/systemd-tmpfiles-clean.timer
1983 nodist_systemunit_DATA += \
1984 units/systemd-tmpfiles-setup-dev.service \
1985 units/systemd-tmpfiles-setup.service \
1986 units/systemd-tmpfiles-clean.service
1988 nodist_tmpfiles_DATA = \
1991 dist_tmpfiles_DATA = \
1992 tmpfiles.d/systemd.conf \
1993 tmpfiles.d/systemd-nologin.conf \
1994 tmpfiles.d/systemd-remote.conf \
1995 tmpfiles.d/tmp.conf \
1996 tmpfiles.d/x11.conf \
2000 dist_tmpfiles_DATA += \
2001 tmpfiles.d/legacy.conf
2004 SYSINIT_TARGET_WANTS += \
2005 systemd-tmpfiles-setup-dev.service \
2006 systemd-tmpfiles-setup.service
2008 dist_zshcompletion_DATA += \
2009 shell-completion/zsh/_systemd-tmpfiles
2011 TIMERS_TARGET_WANTS += \
2012 systemd-tmpfiles-clean.timer
2016 $(sysconfdir)/tmpfiles.d
2020 tmpfiles.d/etc.conf.m4 \
2021 units/systemd-tmpfiles-setup-dev.service.in \
2022 units/systemd-tmpfiles-setup.service.in \
2023 units/systemd-tmpfiles-clean.service.in
2028 # ------------------------------------------------------------------------------
2030 systemd_sysusers_SOURCES = \
2031 src/sysusers/sysusers.c
2033 systemd_sysusers_LDADD = \
2034 libsystemd-units.la \
2035 libsystemd-label.la \
2036 libsystemd-capability.la \
2037 libsystemd-internal.la \
2038 libsystemd-shared.la
2040 rootbin_PROGRAMS += \
2043 nodist_systemunit_DATA += \
2044 units/systemd-sysusers.service
2046 SYSINIT_TARGET_WANTS += \
2047 systemd-sysusers.service
2049 dist_sysusers_DATA = \
2050 sysusers.d/systemd.conf \
2051 sysusers.d/systemd-remote.conf
2053 nodist_sysusers_DATA = \
2054 sysusers.d/basic.conf
2057 units/systemd-sysusers.service.in \
2058 sysusers.d/basic.conf.in
2061 sysusers.d/basic.conf
2067 # ------------------------------------------------------------------------------
2068 dist_factory_etc_DATA = \
2069 factory/etc/nsswitch.conf
2072 dist_factory_pam_DATA = \
2073 factory/etc/pam.d/system-auth \
2074 factory/etc/pam.d/other
2077 # ------------------------------------------------------------------------------
2079 systemd_firstboot_SOURCES = \
2080 src/firstboot/firstboot.c
2082 systemd_firstboot_LDADD = \
2083 libsystemd-units.la \
2084 libsystemd-label.la \
2085 libsystemd-capability.la \
2086 libsystemd-internal.la \
2087 libsystemd-shared.la \
2090 rootbin_PROGRAMS += \
2093 nodist_systemunit_DATA += \
2094 units/systemd-firstboot.service
2097 units/systemd-firstboot.service.in
2099 SYSINIT_TARGET_WANTS += \
2100 systemd-firstboot.service
2103 # ------------------------------------------------------------------------------
2104 systemd_machine_id_setup_SOURCES = \
2105 src/machine-id-setup/machine-id-setup-main.c \
2106 src/core/machine-id-setup.c \
2107 src/core/machine-id-setup.h
2109 systemd_machine_id_setup_LDADD = \
2110 libsystemd-label.la \
2111 libsystemd-internal.la \
2112 libsystemd-shared.la
2114 # ------------------------------------------------------------------------------
2115 systemd_sysctl_SOURCES = \
2118 systemd_sysctl_LDADD = \
2119 libsystemd-shared.la
2121 # ------------------------------------------------------------------------------
2122 systemd_sleep_SOURCES = \
2125 systemd_sleep_LDADD = \
2126 libsystemd-shared.la
2128 # ------------------------------------------------------------------------------
2129 systemd_fsck_SOURCES = \
2132 systemd_fsck_LDADD = \
2133 libsystemd-internal.la \
2134 libudev-internal.la \
2135 libsystemd-shared.la
2137 # ------------------------------------------------------------------------------
2138 systemd_ac_power_SOURCES = \
2139 src/ac-power/ac-power.c
2141 systemd_ac_power_LDADD = \
2142 libudev-internal.la \
2143 libsystemd-shared.la
2145 # ------------------------------------------------------------------------------
2146 systemd_detect_virt_SOURCES = \
2147 src/detect-virt/detect-virt.c
2149 systemd_detect_virt_LDADD = \
2150 libsystemd-shared.la
2152 INSTALL_EXEC_HOOKS += \
2153 systemd-detect-virt-install-hook
2155 # ------------------------------------------------------------------------------
2156 systemd_delta_SOURCES = \
2159 systemd_delta_LDADD = \
2160 libsystemd-shared.la
2162 # ------------------------------------------------------------------------------
2163 systemd_getty_generator_SOURCES = \
2164 src/getty-generator/getty-generator.c
2166 systemd_getty_generator_LDADD = \
2167 libsystemd-label.la \
2168 libsystemd-shared.la
2170 # ------------------------------------------------------------------------------
2171 systemd_debug_generator_SOURCES = \
2172 src/debug-generator/debug-generator.c
2174 systemd_debug_generator_LDADD = \
2175 libsystemd-label.la \
2176 libsystemd-shared.la
2178 # ------------------------------------------------------------------------------
2179 systemd_fstab_generator_SOURCES = \
2180 src/fstab-generator/fstab-generator.c \
2181 src/core/mount-setup.c
2183 systemd_fstab_generator_LDADD = \
2184 libsystemd-label.la \
2185 libsystemd-shared.la
2187 # ------------------------------------------------------------------------------
2188 systemd_system_update_generator_SOURCES = \
2189 src/system-update-generator/system-update-generator.c
2191 systemd_system_update_generator_LDADD = \
2192 libsystemd-label.la \
2193 libsystemd-shared.la
2195 # ------------------------------------------------------------------------------
2197 systemgenerator_PROGRAMS += \
2198 systemd-hibernate-resume-generator
2200 rootlibexec_PROGRAMS += \
2201 systemd-hibernate-resume
2203 systemd_hibernate_resume_SOURCES = \
2204 src/hibernate-resume/hibernate-resume.c
2206 systemd_hibernate_resume_LDADD = \
2207 libsystemd-internal.la \
2208 libsystemd-shared.la
2210 systemd_hibernate_resume_generator_SOURCES = \
2211 src/hibernate-resume/hibernate-resume-generator.c
2213 systemd_hibernate_resume_generator_LDADD = \
2214 libsystemd-label.la \
2215 libsystemd-shared.la
2218 units/systemd-hibernate.service.in \
2219 units/systemd-hibernate-resume@.service.in \
2220 units/systemd-hybrid-sleep.service.in
2222 dist_systemunit_DATA += \
2223 units/hibernate.target \
2224 units/hybrid-sleep.target
2226 nodist_systemunit_DATA += \
2227 units/systemd-hibernate.service \
2228 units/systemd-hibernate-resume@.service \
2229 units/systemd-hybrid-sleep.service
2232 # ------------------------------------------------------------------------------
2234 systemgenerator_PROGRAMS += \
2235 systemd-efi-boot-generator
2237 systemd_efi_boot_generator_SOURCES = \
2238 src/efi-boot-generator/efi-boot-generator.c
2240 systemd_efi_boot_generator_LDADD = \
2241 libsystemd-label.la \
2242 libsystemd-shared.la
2244 # ------------------------------------------------------------------------------
2247 src/boot/boot-loader.h \
2248 src/boot/bootctl.c \
2249 src/boot/boot-loader.c \
2253 libsystemd-shared.la \
2254 libsystemd-internal.la
2259 dist_bashcompletion_DATA += \
2260 shell-completion/bash/bootctl
2262 dist_zshcompletion_DATA += \
2263 shell-completion/zsh/_bootctl
2267 # ------------------------------------------------------------------------------
2269 systemgenerator_PROGRAMS += \
2270 systemd-gpt-auto-generator
2272 systemd_gpt_auto_generator_SOURCES = \
2273 src/gpt-auto-generator/gpt-auto-generator.c \
2274 src/shared/blkid-util.h
2276 systemd_gpt_auto_generator_LDADD = \
2277 libsystemd-label.la \
2278 libsystemd-internal.la \
2279 libudev-internal.la \
2280 libsystemd-shared.la \
2283 systemd_gpt_auto_generator_CFLAGS = \
2288 # ------------------------------------------------------------------------------
2290 systemgenerator_PROGRAMS += \
2291 systemd-dbus1-generator
2293 systemd_dbus1_generator_SOURCES = \
2294 src/dbus1-generator/dbus1-generator.c
2296 systemd_dbus1_generator_LDADD = \
2297 libsystemd-label.la \
2298 libsystemd-shared.la \
2299 libsystemd-internal.la
2301 dbus1-generator-install-hook:
2302 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2303 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2304 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2306 dbus1-generator-uninstall-hook:
2307 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2309 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2310 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2313 # ------------------------------------------------------------------------------
2314 systemd_sysv_generator_SOURCES = \
2315 src/sysv-generator/sysv-generator.c
2317 systemd_sysv_generator_LDADD = \
2318 libsystemd-core.la \
2319 libsystemd-label.la \
2320 libsystemd-shared.la
2322 # ------------------------------------------------------------------------------
2323 systemd_rc_local_generator_SOURCES = \
2324 src/rc-local-generator/rc-local-generator.c
2326 systemd_rc_local_generator_LDADD = \
2327 libsystemd-label.la \
2328 libsystemd-shared.la
2330 # ------------------------------------------------------------------------------
2331 systemd_remount_fs_SOURCES = \
2332 src/remount-fs/remount-fs.c \
2333 src/core/mount-setup.c \
2334 src/core/mount-setup.h
2336 systemd_remount_fs_LDADD = \
2337 libsystemd-label.la \
2338 libsystemd-shared.la
2340 # ------------------------------------------------------------------------------
2341 systemd_cgroups_agent_SOURCES = \
2342 src/cgroups-agent/cgroups-agent.c
2344 systemd_cgroups_agent_LDADD = \
2345 libsystemd-internal.la \
2346 libsystemd-shared.la
2348 # ------------------------------------------------------------------------------
2349 systemd_escape_SOURCES = \
2352 systemd_escape_LDADD = \
2353 libsystemd-shared.la
2355 # -----------------------------------------------------------------------------
2356 systemctl_SOURCES = \
2357 src/systemctl/systemctl.c
2360 libsystemd-units.la \
2361 libsystemd-label.la \
2362 libsystemd-internal.la \
2363 libsystemd-logs.la \
2364 libsystemd-journal-internal.la \
2365 libsystemd-shared.la
2367 # ------------------------------------------------------------------------------
2368 systemd_notify_SOURCES = \
2371 systemd_notify_LDADD = \
2372 libsystemd-internal.la \
2373 libsystemd-shared.la
2375 # ------------------------------------------------------------------------------
2376 systemd_path_SOURCES = \
2379 systemd_path_LDADD = \
2380 libsystemd-internal.la \
2381 libsystemd-shared.la
2383 # ------------------------------------------------------------------------------
2384 systemd_ask_password_SOURCES = \
2385 src/ask-password/ask-password.c
2387 systemd_ask_password_LDADD = \
2388 libsystemd-label.la \
2389 libsystemd-shared.la
2391 # ------------------------------------------------------------------------------
2392 systemd_reply_password_SOURCES = \
2393 src/reply-password/reply-password.c
2395 systemd_reply_password_LDADD = \
2396 libsystemd-shared.la
2398 # ------------------------------------------------------------------------------
2399 systemd_cgls_SOURCES = \
2402 systemd_cgls_LDADD = \
2403 libsystemd-internal.la \
2404 libsystemd-shared.la
2406 # ------------------------------------------------------------------------------
2407 systemd_cgtop_SOURCES = \
2410 systemd_cgtop_LDADD = \
2411 libsystemd-shared.la
2413 # ------------------------------------------------------------------------------
2414 systemd_nspawn_SOURCES = \
2415 src/nspawn/nspawn.c \
2416 src/core/mount-setup.c \
2417 src/core/mount-setup.h \
2418 src/core/loopback-setup.c \
2419 src/core/loopback-setup.h
2421 systemd_nspawn_CFLAGS = \
2426 systemd_nspawn_LDADD = \
2427 libsystemd-label.la \
2428 libsystemd-capability.la \
2429 libsystemd-internal.la \
2430 libudev-internal.la \
2431 libsystemd-shared.la \
2435 systemd_nspawn_LDADD += \
2436 libsystemd-seccomp.la \
2440 # ------------------------------------------------------------------------------
2441 systemd_run_SOURCES = \
2444 systemd_run_LDADD = \
2445 libsystemd-label.la \
2446 libsystemd-capability.la \
2447 libsystemd-internal.la \
2448 libsystemd-shared.la
2450 # ------------------------------------------------------------------------------
2451 systemd_bus_proxyd_SOURCES = \
2452 src/bus-proxyd/bus-proxyd.c \
2453 src/bus-proxyd/bus-policy.c \
2454 src/bus-proxyd/bus-policy.h
2456 systemd_bus_proxyd_LDADD = \
2457 libsystemd-capability.la \
2458 libsystemd-internal.la \
2459 libsystemd-shared.la
2461 bus-proxyd-install-hook:
2462 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2463 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2464 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2466 bus-proxyd-uninstall-hook:
2467 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2469 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2470 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2473 nodist_systemunit_DATA += \
2474 units/systemd-bus-proxyd@.service
2476 dist_systemunit_DATA += \
2477 units/systemd-bus-proxyd.socket
2479 dist_userunit_DATA += \
2480 units/user/systemd-bus-proxyd.socket \
2481 units/user/systemd-bus-proxyd@.service
2485 units/systemd-bus-proxyd@.service.in
2487 # ------------------------------------------------------------------------------
2488 systemd_tty_ask_password_agent_SOURCES = \
2489 src/tty-ask-password-agent/tty-ask-password-agent.c
2491 systemd_tty_ask_password_agent_LDADD = \
2492 libsystemd-label.la \
2493 libsystemd-shared.la
2495 # ------------------------------------------------------------------------------
2496 libsystemd_internal_la_SOURCES = \
2497 src/systemd/sd-bus.h \
2498 src/systemd/sd-bus-protocol.h \
2499 src/systemd/sd-bus-vtable.h \
2500 src/systemd/sd-utf8.h \
2501 src/systemd/sd-event.h \
2502 src/systemd/sd-rtnl.h \
2503 src/systemd/sd-resolve.h \
2504 src/systemd/sd-login.h \
2505 src/systemd/sd-id128.h \
2506 src/systemd/sd-daemon.h \
2507 src/systemd/sd-path.h \
2508 src/systemd/sd-network.h \
2509 src/libsystemd/sd-bus/sd-bus.c \
2510 src/libsystemd/sd-bus/bus-control.c \
2511 src/libsystemd/sd-bus/bus-control.h \
2512 src/libsystemd/sd-bus/bus-error.c \
2513 src/libsystemd/sd-bus/bus-error.h \
2514 src/libsystemd/sd-bus/bus-internal.c \
2515 src/libsystemd/sd-bus/bus-internal.h \
2516 src/libsystemd/sd-bus/bus-socket.c \
2517 src/libsystemd/sd-bus/bus-socket.h \
2518 src/libsystemd/sd-bus/bus-kernel.c \
2519 src/libsystemd/sd-bus/bus-kernel.h \
2520 src/libsystemd/sd-bus/bus-container.c \
2521 src/libsystemd/sd-bus/bus-container.h \
2522 src/libsystemd/sd-bus/bus-message.c \
2523 src/libsystemd/sd-bus/bus-message.h \
2524 src/libsystemd/sd-bus/bus-creds.c \
2525 src/libsystemd/sd-bus/bus-creds.h \
2526 src/libsystemd/sd-bus/bus-signature.c \
2527 src/libsystemd/sd-bus/bus-signature.h \
2528 src/libsystemd/sd-bus/bus-type.c \
2529 src/libsystemd/sd-bus/bus-type.h \
2530 src/libsystemd/sd-bus/bus-match.c \
2531 src/libsystemd/sd-bus/bus-match.h \
2532 src/libsystemd/sd-bus/bus-bloom.c \
2533 src/libsystemd/sd-bus/bus-bloom.h \
2534 src/libsystemd/sd-bus/bus-introspect.c \
2535 src/libsystemd/sd-bus/bus-introspect.h \
2536 src/libsystemd/sd-bus/bus-objects.c \
2537 src/libsystemd/sd-bus/bus-objects.h \
2538 src/libsystemd/sd-bus/bus-gvariant.c \
2539 src/libsystemd/sd-bus/bus-gvariant.h \
2540 src/libsystemd/sd-bus/bus-convenience.c \
2541 src/libsystemd/sd-bus/bus-track.c \
2542 src/libsystemd/sd-bus/bus-track.h \
2543 src/libsystemd/sd-bus/bus-util.c \
2544 src/libsystemd/sd-bus/bus-util.h \
2545 src/libsystemd/sd-bus/bus-slot.c \
2546 src/libsystemd/sd-bus/bus-slot.h \
2547 src/libsystemd/sd-bus/bus-protocol.h \
2548 src/libsystemd/sd-bus/kdbus.h \
2549 src/libsystemd/sd-utf8/sd-utf8.c \
2550 src/libsystemd/sd-event/sd-event.c \
2551 src/libsystemd/sd-event/event-util.h \
2552 src/libsystemd/sd-rtnl/sd-rtnl.c \
2553 src/libsystemd/sd-rtnl/rtnl-internal.h \
2554 src/libsystemd/sd-rtnl/rtnl-message.c \
2555 src/libsystemd/sd-rtnl/rtnl-types.h \
2556 src/libsystemd/sd-rtnl/rtnl-types.c \
2557 src/libsystemd/sd-rtnl/rtnl-util.h \
2558 src/libsystemd/sd-rtnl/rtnl-util.c \
2559 src/libsystemd/sd-rtnl/local-addresses.h \
2560 src/libsystemd/sd-rtnl/local-addresses.c \
2561 src/libsystemd/sd-id128/sd-id128.c \
2562 src/libsystemd/sd-daemon/sd-daemon.c \
2563 src/libsystemd/sd-login/sd-login.c \
2564 src/libsystemd/sd-path/sd-path.c \
2565 src/libsystemd/sd-network/sd-network.c \
2566 src/libsystemd/sd-network/network-util.h \
2567 src/libsystemd/sd-network/network-util.c
2569 nodist_libsystemd_internal_la_SOURCES = \
2570 src/libsystemd/libsystemd.sym \
2571 src/libsystemd/sd-bus/bus-error-mapping.c
2573 libsystemd_internal_la_CFLAGS = \
2577 libsystemd_internal_la_LIBADD = \
2580 libsystemd_resolve_la_SOURCES = \
2581 src/libsystemd/sd-resolve/sd-resolve.c \
2582 src/libsystemd/sd-resolve/resolve-util.h
2584 libsystemd_resolve_la_CFLAGS = \
2588 libsystemd_resolve_la_LIBADD = \
2591 noinst_LTLIBRARIES += \
2592 libsystemd-internal.la \
2593 libsystemd-resolve.la
2595 libsystemd_dump_la_SOURCES = \
2596 src/libsystemd/sd-bus/bus-dump.c \
2597 src/libsystemd/sd-bus/bus-dump.h
2599 libsystemd_dump_la_CFLAGS = \
2603 noinst_LTLIBRARIES += \
2607 src/libsystemd/libsystemd.sym.m4 \
2608 src/libsystemd/libsystemd.pc.in \
2609 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2610 src/libsystemd/sd-bus/DIFFERENCES \
2611 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2614 src/libsystemd/libsystemd.sym \
2615 src/libsystemd/sd-bus/bus-error-mapping.c
2618 src/libsystemd/libsystemd.sym
2620 libsystemd_la_SOURCES = \
2621 $(libsystemd_internal_la_SOURCES) \
2622 $(libsystemd_resolve_la_SOURCES) \
2623 $(libsystemd_journal_internal_la_SOURCES)
2625 nodist_libsystemd_la_SOURCES = \
2626 $(nodist_libsystemd_internal_la_SOURCES)
2628 libsystemd_la_CFLAGS = \
2629 $(libsystemd_internal_la_CFLAGS) \
2630 $(libsystemd_resolve_la_CFLAGS) \
2631 $(libsystemd_journal_internal_la_CFLAGS)
2633 libsystemd_la_LDFLAGS = \
2635 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2636 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2638 libsystemd_la_LIBADD = \
2639 libsystemd-shared.la \
2640 $(libsystemd_internal_la_LIBADD) \
2641 $(libsystemd_journal_internal_la_LIBADD) \
2642 $(libsystemd_resolve_la_LIBADD)
2644 libsystemd-install-hook:
2645 libname=libsystemd.so && $(move-to-rootlibdir)
2647 libsystemd-uninstall-hook:
2648 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2650 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2651 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2653 pkgconfiglib_DATA += \
2654 src/libsystemd/libsystemd.pc
2656 pkginclude_HEADERS += \
2657 src/systemd/sd-login.h \
2658 src/systemd/sd-id128.h \
2659 src/systemd/sd-daemon.h
2662 pkginclude_HEADERS += \
2663 src/systemd/sd-bus.h \
2664 src/systemd/sd-bus-protocol.h \
2665 src/systemd/sd-bus-vtable.h \
2666 src/systemd/sd-utf8.h \
2667 src/systemd/sd-event.h \
2668 src/systemd/sd-rtnl.h \
2669 src/systemd/sd-resolve.h \
2670 src/systemd/sd-path.h
2673 lib_LTLIBRARIES += \
2678 test-bus-signature \
2684 test-bus-kernel-bloom \
2685 test-bus-kernel-benchmark \
2686 test-bus-zero-copy \
2687 test-bus-introspect \
2699 test_bus_marshal_SOURCES = \
2700 src/libsystemd/sd-bus/test-bus-marshal.c
2702 test_bus_marshal_LDADD = \
2703 libsystemd-internal.la \
2704 libsystemd-shared.la \
2705 libsystemd-dump.la \
2706 libsystemd-capability.la \
2711 test_bus_marshal_CFLAGS = \
2717 test_bus_signature_SOURCES = \
2718 src/libsystemd/sd-bus/test-bus-signature.c
2720 test_bus_signature_LDADD = \
2721 libsystemd-shared.la \
2722 libsystemd-internal.la
2724 test_bus_chat_SOURCES = \
2725 src/libsystemd/sd-bus/test-bus-chat.c
2727 test_bus_chat_CFLAGS = \
2731 test_bus_chat_LDADD = \
2732 libsystemd-internal.la \
2733 libsystemd-shared.la
2735 test_bus_cleanup_SOURCES = \
2736 src/libsystemd/sd-bus/test-bus-cleanup.c
2738 test_bus_cleanup_CFLAGS = \
2742 test_bus_cleanup_LDADD = \
2743 libsystemd-internal.la \
2744 libsystemd-shared.la
2746 test_bus_server_SOURCES = \
2747 src/libsystemd/sd-bus/test-bus-server.c
2749 test_bus_server_CFLAGS = \
2753 test_bus_server_LDADD = \
2754 libsystemd-internal.la \
2755 libsystemd-shared.la
2757 test_bus_objects_SOURCES = \
2758 src/libsystemd/sd-bus/test-bus-objects.c
2760 test_bus_objects_CFLAGS = \
2765 test_bus_objects_LDADD = \
2766 libsystemd-internal.la \
2767 libsystemd-shared.la \
2768 libsystemd-dump.la \
2769 libsystemd-capability.la \
2772 test_bus_error_SOURCES = \
2773 src/libsystemd/sd-bus/test-bus-error.c
2775 test_bus_error_LDADD = \
2776 libsystemd-internal.la \
2777 libsystemd-shared.la
2779 test_bus_gvariant_SOURCES = \
2780 src/libsystemd/sd-bus/test-bus-gvariant.c
2782 test_bus_gvariant_LDADD = \
2783 libsystemd-internal.la \
2784 libsystemd-shared.la \
2785 libsystemd-dump.la \
2786 libsystemd-capability.la \
2790 test_bus_gvariant_CFLAGS = \
2795 test_bus_creds_SOURCES = \
2796 src/libsystemd/sd-bus/test-bus-creds.c
2798 test_bus_creds_LDADD = \
2799 libsystemd-internal.la \
2800 libsystemd-shared.la \
2801 libsystemd-dump.la \
2802 libsystemd-capability.la
2804 test_bus_match_SOURCES = \
2805 src/libsystemd/sd-bus/test-bus-match.c
2807 test_bus_match_LDADD = \
2808 libsystemd-internal.la \
2809 libsystemd-shared.la
2811 test_bus_kernel_SOURCES = \
2812 src/libsystemd/sd-bus/test-bus-kernel.c
2814 test_bus_kernel_LDADD = \
2815 libsystemd-internal.la \
2816 libsystemd-shared.la \
2817 libsystemd-dump.la \
2818 libsystemd-capability.la \
2821 test_bus_kernel_CFLAGS = \
2825 test_bus_kernel_bloom_SOURCES = \
2826 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2828 test_bus_kernel_bloom_LDADD = \
2829 libsystemd-internal.la \
2830 libsystemd-shared.la
2832 test_bus_kernel_benchmark_SOURCES = \
2833 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2835 test_bus_kernel_benchmark_LDADD = \
2836 libsystemd-internal.la \
2837 libsystemd-shared.la
2839 test_bus_zero_copy_SOURCES = \
2840 src/libsystemd/sd-bus/test-bus-zero-copy.c
2842 test_bus_zero_copy_LDADD = \
2843 libsystemd-internal.la \
2844 libsystemd-shared.la \
2845 libsystemd-dump.la \
2846 libsystemd-capability.la \
2849 test_bus_zero_copy_CFLAGS = \
2853 test_bus_introspect_SOURCES = \
2854 src/libsystemd/sd-bus/test-bus-introspect.c
2856 test_bus_introspect_LDADD = \
2857 libsystemd-internal.la \
2858 libsystemd-shared.la
2860 test_event_SOURCES = \
2861 src/libsystemd/sd-event/test-event.c
2863 test_event_LDADD = \
2864 libsystemd-internal.la \
2865 libsystemd-shared.la
2867 test_rtnl_SOURCES = \
2868 src/libsystemd/sd-rtnl/test-rtnl.c
2871 libsystemd-internal.la \
2872 libsystemd-shared.la
2874 test_resolve_SOURCES = \
2875 src/libsystemd/sd-resolve/test-resolve.c
2877 test_resolve_LDADD = \
2878 libsystemd-resolve.la \
2879 libsystemd-internal.la \
2880 libsystemd-shared.la
2882 test_resolve_CFLAGS = \
2887 src/libsystemd/sd-bus/busctl.c
2890 libsystemd-internal.la \
2891 libsystemd-shared.la \
2892 libsystemd-dump.la \
2893 libsystemd-capability.la \
2900 # ------------------------------------------------------------------------------
2901 noinst_LTLIBRARIES += \
2902 libsystemd-network.la
2904 libsystemd_network_la_CFLAGS = \
2908 libsystemd_network_la_SOURCES = \
2909 src/systemd/sd-dhcp-client.h \
2910 src/systemd/sd-dhcp-server.h \
2911 src/systemd/sd-dhcp-lease.h \
2912 src/systemd/sd-ipv4ll.h \
2913 src/systemd/sd-icmp6-nd.h \
2914 src/systemd/sd-dhcp6-client.h \
2915 src/systemd/sd-dhcp6-lease.h \
2916 src/libsystemd-network/sd-dhcp-client.c \
2917 src/libsystemd-network/sd-dhcp-server.c \
2918 src/libsystemd-network/dhcp-network.c \
2919 src/libsystemd-network/dhcp-option.c \
2920 src/libsystemd-network/dhcp-packet.c \
2921 src/libsystemd-network/dhcp-internal.h \
2922 src/libsystemd-network/dhcp-server-internal.h \
2923 src/libsystemd-network/dhcp-protocol.h \
2924 src/libsystemd-network/dhcp-lease-internal.h \
2925 src/libsystemd-network/sd-dhcp-lease.c \
2926 src/libsystemd-network/sd-ipv4ll.c \
2927 src/libsystemd-network/ipv4ll-network.c \
2928 src/libsystemd-network/ipv4ll-packet.c \
2929 src/libsystemd-network/ipv4ll-internal.h \
2930 src/libsystemd-network/network-internal.c \
2931 src/libsystemd-network/network-internal.h \
2932 src/libsystemd-network/sd-icmp6-nd.c \
2933 src/libsystemd-network/sd-dhcp6-client.c \
2934 src/libsystemd-network/dhcp6-internal.h \
2935 src/libsystemd-network/dhcp6-protocol.h \
2936 src/libsystemd-network/dhcp6-network.c \
2937 src/libsystemd-network/dhcp6-option.c \
2938 src/libsystemd-network/dhcp6-lease-internal.h \
2939 src/libsystemd-network/sd-dhcp6-lease.c
2941 libsystemd_network_la_LIBADD = \
2942 libudev-internal.la \
2943 libsystemd-label.la \
2944 libsystemd-internal.la \
2945 libsystemd-shared.la \
2948 test_dhcp_option_SOURCES = \
2949 src/libsystemd-network/dhcp-protocol.h \
2950 src/libsystemd-network/dhcp-internal.h \
2951 src/libsystemd-network/test-dhcp-option.c
2953 test_dhcp_option_LDADD = \
2954 libsystemd-network.la \
2955 libsystemd-internal.la \
2956 libsystemd-shared.la
2958 test_dhcp_client_SOURCES = \
2959 src/systemd/sd-dhcp-client.h \
2960 src/libsystemd-network/dhcp-protocol.h \
2961 src/libsystemd-network/dhcp-internal.h \
2962 src/libsystemd-network/test-dhcp-client.c
2964 test_dhcp_client_LDADD = \
2965 libsystemd-network.la \
2966 libsystemd-label.la \
2967 libsystemd-internal.la \
2968 libsystemd-shared.la
2970 test_dhcp_server_SOURCES = \
2971 src/libsystemd-network/test-dhcp-server.c
2973 test_dhcp_server_LDADD = \
2974 libsystemd-network.la \
2975 libsystemd-internal.la \
2976 libsystemd-shared.la
2978 test_ipv4ll_SOURCES = \
2979 src/systemd/sd-ipv4ll.h \
2980 src/libsystemd-network/ipv4ll-internal.h \
2981 src/libsystemd-network/test-ipv4ll.c
2983 test_ipv4ll_LDADD = \
2984 libsystemd-network.la \
2985 libsystemd-label.la \
2986 libsystemd-internal.la \
2987 libsystemd-shared.la
2989 test_icmp6_rs_SOURCES = \
2990 src/systemd/sd-dhcp6-client.h \
2991 src/systemd/sd-icmp6-nd.h \
2992 src/libsystemd-network/dhcp6-internal.h \
2993 src/libsystemd-network/test-icmp6-rs.c
2995 test_icmp6_rs_LDADD = \
2996 libsystemd-network.la \
2997 libsystemd-internal.la \
2998 libsystemd-shared.la
3000 test_dhcp6_client_SOURCES = \
3001 src/systemd/sd-dhcp6-client.h \
3002 src/libsystemd-network/dhcp6-internal.h \
3003 src/libsystemd-network/test-dhcp6-client.c
3005 test_dhcp6_client_LDADD = \
3006 libsystemd-network.la \
3007 libsystemd-internal.la \
3008 libsystemd-shared.la
3018 # ------------------------------------------------------------------------------
3020 noinst_LTLIBRARIES += \
3021 libsystemd-terminal.la
3023 noinst_PROGRAMS += \
3028 dist_pkgdata_DATA += \
3029 src/libsystemd-terminal/unifont-glyph-array.bin
3037 libsystemd_terminal_la_CFLAGS = \
3041 libsystemd_terminal_la_SOURCES = \
3042 src/libsystemd-terminal/grdev.h \
3043 src/libsystemd-terminal/grdev-internal.h \
3044 src/libsystemd-terminal/grdev.c \
3045 src/libsystemd-terminal/grdev-drm.c \
3046 src/libsystemd-terminal/idev.h \
3047 src/libsystemd-terminal/idev-internal.h \
3048 src/libsystemd-terminal/idev.c \
3049 src/libsystemd-terminal/idev-evdev.c \
3050 src/libsystemd-terminal/idev-keyboard.c \
3051 src/libsystemd-terminal/sysview.h \
3052 src/libsystemd-terminal/sysview-internal.h \
3053 src/libsystemd-terminal/sysview.c \
3054 src/libsystemd-terminal/term-internal.h \
3055 src/libsystemd-terminal/term-charset.c \
3056 src/libsystemd-terminal/term-page.c \
3057 src/libsystemd-terminal/term-parser.c \
3058 src/libsystemd-terminal/term-screen.c \
3059 src/libsystemd-terminal/term-wcwidth.c \
3060 src/libsystemd-terminal/unifont.h \
3061 src/libsystemd-terminal/unifont-def.h \
3062 src/libsystemd-terminal/unifont.c
3064 libsystemd_terminal_la_LIBADD = \
3065 libudev-internal.la \
3066 libsystemd-internal.la \
3067 libsystemd-shared.la \
3070 systemd_evcat_CFLAGS = \
3074 systemd_evcat_SOURCES = \
3075 src/libsystemd-terminal/evcat.c
3077 systemd_evcat_LDADD = \
3078 libsystemd-terminal.la \
3079 libsystemd-internal.la \
3080 libsystemd-shared.la \
3083 systemd_modeset_CFLAGS = \
3087 systemd_modeset_SOURCES = \
3088 src/libsystemd-terminal/modeset.c
3090 systemd_modeset_LDADD = \
3091 libsystemd-terminal.la \
3092 libsystemd-internal.la \
3093 libsystemd-shared.la \
3096 systemd_subterm_SOURCES = \
3097 src/libsystemd-terminal/subterm.c
3099 systemd_subterm_LDADD = \
3100 libsystemd-terminal.la \
3101 libsystemd-internal.la \
3102 libsystemd-shared.la
3104 test_term_page_SOURCES = \
3105 src/libsystemd-terminal/test-term-page.c
3107 test_term_page_LDADD = \
3108 libsystemd-terminal.la \
3109 libsystemd-internal.la \
3110 libsystemd-shared.la
3112 test_term_parser_SOURCES = \
3113 src/libsystemd-terminal/test-term-parser.c
3115 test_term_parser_LDADD = \
3116 libsystemd-terminal.la \
3117 libsystemd-internal.la \
3118 libsystemd-shared.la
3120 test_unifont_SOURCES = \
3121 src/libsystemd-terminal/test-unifont.c
3123 test_unifont_LDADD = \
3124 libsystemd-terminal.la \
3125 libsystemd-internal.la \
3126 libsystemd-shared.la
3128 .PHONY: update-unifont
3129 update-unifont: tools/compile-unifont.py
3130 $(AM_V_GEN)$(PYTHON) $< \
3131 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3132 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3133 @echo "unifont-glyph-array.bin has been regenerated"
3135 # ------------------------------------------------------------------------------
3145 include_HEADERS += \
3146 src/libudev/libudev.h
3148 lib_LTLIBRARIES += \
3151 libudev_la_SOURCES =\
3152 src/libudev/libudev.sym \
3153 src/libudev/libudev-private.h \
3154 src/libudev/libudev.c \
3155 src/libudev/libudev-list.c \
3156 src/libudev/libudev-util.c \
3157 src/libudev/libudev-device.c \
3158 src/libudev/libudev-enumerate.c \
3159 src/libudev/libudev-monitor.c \
3160 src/libudev/libudev-queue.c \
3161 src/libudev/libudev-hwdb-def.h \
3162 src/libudev/libudev-hwdb.c
3164 libudev_la_CFLAGS = \
3168 libudev_la_LDFLAGS = \
3170 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3171 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3173 libudev_la_LIBADD = \
3174 libsystemd-internal.la \
3175 libsystemd-shared.la
3177 pkgconfiglib_DATA += \
3178 src/libudev/libudev.pc
3181 src/libudev/libudev.pc.in
3184 src/libudev/libudev.pc \
3189 $(AM_V_at)$(MKDIR_P) $(dir $@)
3190 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3193 $(AM_V_at)$(MKDIR_P) $(dir $@)
3194 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3196 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3197 libudev-install-hook:
3198 libname=libudev.so && $(move-to-rootlibdir)
3200 libudev-uninstall-hook:
3201 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3203 INSTALL_EXEC_HOOKS += libudev-install-hook
3204 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3206 # ------------------------------------------------------------------------------
3207 noinst_LTLIBRARIES += \
3210 libudev_internal_la_SOURCES =\
3211 $(libudev_la_SOURCES) \
3212 src/libudev/libudev-device-private.c
3214 libudev_internal_la_CFLAGS = \
3216 -fvisibility=default
3218 # ------------------------------------------------------------------------------
3220 $(sysconfdir)/udev/rules.d \
3221 $(sysconfdir)/udev/hwdb.d
3223 dist_network_DATA = \
3224 network/99-default.link \
3225 network/80-container-host0.network \
3226 network/80-container-ve.network
3228 dist_udevrules_DATA += \
3229 rules/42-usb-hid-pm.rules \
3230 rules/50-udev-default.rules \
3231 rules/60-drm.rules \
3232 rules/60-keyboard.rules \
3233 rules/60-persistent-storage-tape.rules \
3234 rules/60-persistent-serial.rules \
3235 rules/60-persistent-input.rules \
3236 rules/60-persistent-alsa.rules \
3237 rules/60-persistent-storage.rules \
3238 rules/64-btrfs.rules \
3239 rules/75-net-description.rules \
3240 rules/75-tty-description.rules \
3241 rules/78-sound-card.rules \
3242 rules/80-net-setup-link.rules \
3243 rules/95-udev-late.rules
3245 nodist_udevrules_DATA += \
3246 rules/99-systemd.rules
3248 dist_udevhwdb_DATA = \
3249 hwdb/20-pci-vendor-model.hwdb \
3250 hwdb/20-pci-classes.hwdb \
3251 hwdb/20-usb-vendor-model.hwdb \
3252 hwdb/20-usb-classes.hwdb \
3253 hwdb/20-sdio-vendor-model.hwdb \
3254 hwdb/20-sdio-classes.hwdb \
3255 hwdb/20-bluetooth-vendor-product.hwdb \
3256 hwdb/20-acpi-vendor.hwdb \
3258 hwdb/20-net-ifname.hwdb \
3259 hwdb/60-keyboard.hwdb
3261 udevconfdir = $(sysconfdir)/udev
3262 dist_udevconf_DATA = \
3265 sharepkgconfigdir = $(datadir)/pkgconfig
3266 sharepkgconfig_DATA = \
3270 rules/99-systemd.rules.in \
3274 rules/99-systemd.rules \
3278 units/systemd-udevd.service.in \
3279 units/systemd-udev-trigger.service.in \
3280 units/systemd-udev-settle.service.in \
3281 units/systemd-udev-hwdb-update.service.in
3284 units/systemd-udevd.service \
3285 units/systemd-udev-trigger.service \
3286 units/systemd-udev-settle.service \
3287 units/systemd-udev-hwdb-update.service
3289 SOCKETS_TARGET_WANTS += \
3290 systemd-udevd-control.socket \
3291 systemd-udevd-kernel.socket
3293 SYSINIT_TARGET_WANTS += \
3294 systemd-udevd.service \
3295 systemd-udev-trigger.service \
3296 systemd-udev-hwdb-update.service
3298 rootbin_PROGRAMS += \
3301 rootlibexec_PROGRAMS += \
3304 noinst_LTLIBRARIES += \
3307 src/udev/keyboard-keys.txt:
3308 $(AM_V_at)$(MKDIR_P) $(dir $@)
3309 $(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/' > $@
3311 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3312 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3314 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3315 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3317 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3318 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3320 libudev_core_la_SOURCES = \
3322 src/udev/udev-event.c \
3323 src/udev/udev-watch.c \
3324 src/udev/udev-node.c \
3325 src/udev/udev-rules.c \
3326 src/udev/udev-ctrl.c \
3327 src/udev/udev-builtin.c \
3328 src/udev/udev-builtin-btrfs.c \
3329 src/udev/udev-builtin-hwdb.c \
3330 src/udev/udev-builtin-input_id.c \
3331 src/udev/udev-builtin-keyboard.c \
3332 src/udev/udev-builtin-net_id.c \
3333 src/udev/udev-builtin-net_setup_link.c \
3334 src/udev/udev-builtin-path_id.c \
3335 src/udev/udev-builtin-usb_id.c \
3336 src/udev/net/link-config.h \
3337 src/udev/net/link-config.c \
3338 src/udev/net/ethtool-util.h \
3339 src/udev/net/ethtool-util.c
3341 nodist_libudev_core_la_SOURCES = \
3342 src/udev/keyboard-keys-from-name.h \
3343 src/udev/keyboard-keys-to-name.h \
3344 src/udev/net/link-config-gperf.c
3347 $(nodist_libudev_core_la_SOURCES)
3350 src/udev/keyboard-keys-from-name.gperf \
3351 src/udev/keyboard-keys.txt \
3352 src/udev/net/link-config-gperf.c
3355 src/udev/net/link-config-gperf.gperf
3357 libudev_core_la_CFLAGS = \
3362 libudev_core_la_LIBADD = \
3363 libudev-internal.la \
3364 libsystemd-label.la \
3365 libsystemd-internal.la \
3366 libsystemd-network.la \
3367 libsystemd-shared.la \
3372 libudev_core_la_SOURCES += \
3373 src/udev/udev-builtin-kmod.c
3375 dist_udevrules_DATA += \
3376 rules/80-drivers.rules
3380 libudev_core_la_SOURCES += \
3381 src/udev/udev-builtin-blkid.c
3385 libudev_core_la_SOURCES += \
3386 src/udev/udev-builtin-uaccess.c \
3387 src/login/logind-acl.c \
3388 src/libsystemd/sd-login/sd-login.c \
3389 src/systemd/sd-login.h
3391 libudev_core_la_LIBADD += \
3395 systemd_udevd_SOURCES = \
3398 systemd_udevd_LDADD = \
3402 src/udev/udevadm.c \
3403 src/udev/udevadm-info.c \
3404 src/udev/udevadm-control.c \
3405 src/udev/udevadm-monitor.c \
3406 src/udev/udevadm-hwdb.c \
3407 src/udev/udevadm-settle.c \
3408 src/udev/udevadm-trigger.c \
3409 src/udev/udevadm-test.c \
3410 src/udev/udevadm-test-builtin.c
3415 # Update hwdb on installation. Do not bother if installing
3416 # in DESTDIR, since this is likely for packaging purposes.
3418 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3420 INSTALL_DATA_HOOKS += \
3424 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3426 # ------------------------------------------------------------------------------
3435 test_libudev_SOURCES = \
3436 src/test/test-libudev.c
3438 test_libudev_LDADD = \
3439 libsystemd-label.la \
3440 libudev-internal.la \
3441 libsystemd-shared.la
3443 test_udev_SOURCES = \
3444 src/test/test-udev.c
3453 test_udev_LDADD += \
3460 # packed sysfs test tree
3462 $(AM_V_at)$(MKDIR_P) $(dir $@)
3463 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3467 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3472 test/rules-test.sh \
3473 test/rule-syntax-check.py
3475 # ------------------------------------------------------------------------------
3477 src/udev/ata_id/ata_id.c
3480 libudev-internal.la \
3481 libsystemd-shared.la
3483 udevlibexec_PROGRAMS += \
3486 # ------------------------------------------------------------------------------
3487 cdrom_id_SOURCES = \
3488 src/udev/cdrom_id/cdrom_id.c
3491 libudev-internal.la \
3492 libsystemd-shared.la
3494 udevlibexec_PROGRAMS += \
3497 dist_udevrules_DATA += \
3498 rules/60-cdrom_id.rules
3500 # ------------------------------------------------------------------------------
3502 src/udev/collect/collect.c
3505 libudev-internal.la \
3506 libsystemd-shared.la
3508 udevlibexec_PROGRAMS += \
3511 # ------------------------------------------------------------------------------
3513 src/udev/scsi_id/scsi_id.c \
3514 src/udev/scsi_id/scsi_serial.c \
3515 src/udev/scsi_id/scsi.h \
3516 src/udev/scsi_id/scsi_id.h
3519 libudev-internal.la \
3520 libsystemd-shared.la
3522 udevlibexec_PROGRAMS += \
3526 src/udev/scsi_id/README
3528 # ------------------------------------------------------------------------------
3530 src/udev/v4l_id/v4l_id.c
3535 udevlibexec_PROGRAMS += \
3538 dist_udevrules_DATA += \
3539 rules/60-persistent-v4l.rules
3541 # ------------------------------------------------------------------------------
3542 accelerometer_SOURCES = \
3543 src/udev/accelerometer/accelerometer.c
3545 accelerometer_LDADD = \
3546 libudev-internal.la -lm \
3547 libsystemd-shared.la
3549 udevlibexec_PROGRAMS += \
3552 dist_udevrules_DATA += \
3553 rules/61-accelerometer.rules
3555 # ------------------------------------------------------------------------------
3562 libgudev_includedir = \
3563 $(includedir)/gudev-1.0/gudev
3565 libgudev_include_HEADERS = \
3567 src/gudev/gudevenums.h \
3568 src/gudev/gudevenumtypes.h \
3569 src/gudev/gudevtypes.h \
3570 src/gudev/gudevclient.h \
3571 src/gudev/gudevdevice.h \
3572 src/gudev/gudevenumerator.h
3574 lib_LTLIBRARIES += libgudev-1.0.la
3576 pkgconfiglib_DATA += \
3577 src/gudev/gudev-1.0.pc
3580 src/gudev/gudev-1.0.pc
3582 libgudev_1_0_la_SOURCES = \
3583 src/gudev/libgudev-1.0.sym \
3584 src/gudev/gudevenums.h \
3585 src/gudev/gudevenumtypes.h \
3586 src/gudev/gudevenumtypes.h\
3587 src/gudev/gudevtypes.h \
3588 src/gudev/gudevclient.h \
3589 src/gudev/gudevclient.c \
3590 src/gudev/gudevdevice.h \
3591 src/gudev/gudevdevice.c \
3592 src/gudev/gudevenumerator.h \
3593 src/gudev/gudevenumerator.c \
3594 src/gudev/gudevprivate.h
3596 nodist_libgudev_1_0_la_SOURCES = \
3597 src/gudev/gudevmarshal.h \
3598 src/gudev/gudevmarshal.c \
3599 src/gudev/gudevenumtypes.h \
3600 src/gudev/gudevenumtypes.c
3603 $(nodist_libgudev_1_0_la_SOURCES)
3605 libgudev_1_0_la_CPPFLAGS = \
3607 -I$(top_builddir)/src\
3608 -I$(top_srcdir)/src\
3609 -I$(top_builddir)/src/gudev \
3610 -I$(top_srcdir)/src/gudev \
3611 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3612 -D_GUDEV_COMPILATION \
3613 -DG_LOG_DOMAIN=\"GUdev\"
3615 libgudev_1_0_la_CFLAGS = \
3617 -fvisibility=default \
3620 libgudev_1_0_la_LIBADD = \
3624 libgudev_1_0_la_LDFLAGS = \
3626 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3629 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3631 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3632 $(AM_V_at)$(MKDIR_P) $(dir $@)
3633 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3635 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3636 $(AM_V_at)$(MKDIR_P) $(dir $@)
3637 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3638 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3640 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3641 $(AM_V_at)$(MKDIR_P) $(dir $@)
3642 $(AM_V_GEN)glib-mkenums --template $^ > $@
3644 if HAVE_INTROSPECTION
3645 -include $(INTROSPECTION_MAKEFILE)
3647 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3649 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3651 src_gudev_GUdev_1_0_gir_CFLAGS = \
3654 -D_GUDEV_COMPILATION \
3655 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3656 -I$(top_srcdir)/src \
3657 -I$(top_builddir)/src \
3658 -I$(top_srcdir)/src/gudev \
3659 -I$(top_builddir)/src/gudev
3661 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3663 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3664 --pkg-export=gudev-1.0 \
3667 src_gudev_GUdev_1_0_gir_FILES = \
3669 src/gudev/gudevtypes.h \
3670 src/gudev/gudevenums.h \
3671 src/gudev/gudevenumtypes.h \
3672 src/gudev/gudevclient.h \
3673 src/gudev/gudevdevice.h \
3674 src/gudev/gudevenumerator.h \
3675 src/gudev/gudevclient.c \
3676 src/gudev/gudevdevice.c \
3677 src/gudev/gudevenumerator.c
3679 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3680 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3682 girdir = $(datadir)/gir-1.0
3684 src/gudev/GUdev-1.0.gir
3686 typelibsdir = $(libdir)/girepository-1.0
3688 src/gudev/GUdev-1.0.typelib
3690 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3691 endif # HAVE_INTROSPECTION
3695 src/gudev/gudev-1.0.pc.in \
3696 src/gudev/gudevmarshal.list \
3697 src/gudev/gudevenumtypes.h.template \
3698 src/gudev/gudevenumtypes.c.template \
3699 src/gudev/gjs-example.js \
3700 src/gudev/seed-example-enum.js \
3701 src/gudev/seed-example.js
3703 # ------------------------------------------------------------------------------
3704 mtd_probe_SOURCES = \
3705 src/udev/mtd_probe/mtd_probe.c \
3706 src/udev/mtd_probe/mtd_probe.h \
3707 src/udev/mtd_probe/probe_smartmedia.c
3709 dist_udevrules_DATA += \
3710 rules/75-probe_mtd.rules
3712 udevlibexec_PROGRAMS += \
3715 # ------------------------------------------------------------------------------
3716 test_id128_SOURCES = \
3717 src/test/test-id128.c
3719 test_id128_LDADD = \
3720 libsystemd-internal.la \
3721 libsystemd-shared.la
3726 # ------------------------------------------------------------------------------
3728 rootlibexec_PROGRAMS += \
3731 systemd_activate_SOURCES = \
3732 src/activate/activate.c
3734 systemd_activate_LDADD = \
3735 libsystemd-label.la \
3736 libsystemd-internal.la \
3737 libsystemd-shared.la
3739 # ------------------------------------------------------------------------------
3740 systemd_journald_SOURCES = \
3741 src/journal/journald.c \
3742 src/journal/journald-server.h
3744 systemd_journald_LDADD = \
3745 libsystemd-journal-core.la \
3746 libsystemd-internal.la \
3747 libsystemd-shared.la
3749 systemd_cat_SOURCES = \
3752 systemd_cat_LDADD = \
3753 libsystemd-journal-core.la
3756 rootlibexec_PROGRAMS += \
3757 systemd-journal-remote
3759 systemd_journal_remote_SOURCES = \
3760 src/journal-remote/journal-remote-parse.h \
3761 src/journal-remote/journal-remote-parse.c \
3762 src/journal-remote/journal-remote-write.h \
3763 src/journal-remote/journal-remote-write.c \
3764 src/journal-remote/journal-remote.h \
3765 src/journal-remote/journal-remote.c
3767 systemd_journal_remote_LDADD = \
3768 libsystemd-internal.la \
3769 libsystemd-journal-core.la
3771 systemd_journal_remote_SOURCES += \
3772 src/journal-remote/microhttpd-util.h \
3773 src/journal-remote/microhttpd-util.c
3775 systemd_journal_remote_CFLAGS = \
3777 $(MICROHTTPD_CFLAGS)
3779 systemd_journal_remote_LDADD += \
3783 systemd_journal_remote_LDADD += \
3786 # systemd-journal-remote make sense mostly with full crypto stack
3787 dist_systemunit_DATA += \
3788 units/systemd-journal-remote.socket
3790 nodist_systemunit_DATA += \
3791 units/systemd-journal-remote.service
3794 units/systemd-journal-remote.service.in
3796 journal-remote-install-hook: journal-install-hook
3797 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3798 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3799 -chmod 755 $(DESTDIR)/var/log/journal/remote
3801 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3805 nodist_pkgsysconf_DATA += \
3806 src/journal-remote/journal-remote.conf
3809 src/journal-remote/journal-remote.conf.in
3812 src/journal-remote/journal-remote.conf
3816 rootlibexec_PROGRAMS += \
3817 systemd-journal-upload
3819 systemd_journal_upload_SOURCES = \
3820 src/journal-remote/journal-upload.h \
3821 src/journal-remote/journal-upload.c \
3822 src/journal-remote/journal-upload-journal.c
3824 systemd_journal_upload_CFLAGS = \
3828 systemd_journal_upload_LDADD = \
3829 libsystemd-core.la \
3830 libsystemd-internal.la \
3831 libsystemd-journal-internal.la \
3832 libsystemd-shared.la \
3835 nodist_systemunit_DATA += \
3836 units/systemd-journal-upload.service
3839 units/systemd-journal-upload.service.in
3841 nodist_pkgsysconf_DATA += \
3842 src/journal-remote/journal-upload.conf
3845 src/journal-remote/journal-upload.conf.in
3848 src/journal-remote/journal-upload.conf
3851 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3852 journalctl_CFLAGS = \
3855 journalctl_SOURCES = \
3856 src/journal/journalctl.c
3858 journalctl_LDADD = \
3859 libsystemd-journal-internal.la \
3860 libsystemd-internal.la \
3861 libsystemd-logs.la \
3862 libsystemd-shared.la
3865 journalctl_LDADD += \
3870 journalctl_SOURCES += \
3871 src/journal/journal-qrcode.c \
3872 src/journal/journal-qrcode.h
3874 journalctl_CFLAGS += \
3877 journalctl_LDADD += \
3881 test_journal_SOURCES = \
3882 src/journal/test-journal.c
3884 test_journal_LDADD = \
3885 libsystemd-journal-core.la
3887 test_journal_send_SOURCES = \
3888 src/journal/test-journal-send.c
3890 test_journal_send_LDADD = \
3891 libsystemd-journal-core.la
3893 test_journal_syslog_SOURCES = \
3894 src/journal/test-journal-syslog.c
3896 test_journal_syslog_LDADD = \
3897 libsystemd-journal-core.la
3899 test_journal_match_SOURCES = \
3900 src/journal/test-journal-match.c
3902 test_journal_match_LDADD = \
3903 libsystemd-journal-core.la
3905 test_journal_enum_SOURCES = \
3906 src/journal/test-journal-enum.c
3908 test_journal_enum_LDADD = \
3909 libsystemd-journal-core.la
3911 test_journal_stream_SOURCES = \
3912 src/journal/test-journal-stream.c
3914 test_journal_stream_LDADD = \
3915 libsystemd-journal-core.la
3917 test_journal_flush_SOURCES = \
3918 src/journal/test-journal-flush.c
3920 test_journal_flush_LDADD = \
3921 libsystemd-journal-core.la
3923 test_journal_init_SOURCES = \
3924 src/journal/test-journal-init.c
3926 test_journal_init_LDADD = \
3927 libsystemd-journal-core.la
3929 test_journal_verify_SOURCES = \
3930 src/journal/test-journal-verify.c
3932 test_journal_verify_LDADD = \
3933 libsystemd-journal-core.la
3935 test_journal_interleaving_SOURCES = \
3936 src/journal/test-journal-interleaving.c
3938 test_journal_interleaving_LDADD = \
3939 libsystemd-journal-core.la
3941 test_mmap_cache_SOURCES = \
3942 src/journal/test-mmap-cache.c
3944 test_mmap_cache_LDADD = \
3945 libsystemd-journal-core.la
3947 test_catalog_SOURCES = \
3948 src/journal/test-catalog.c
3950 test_catalog_CPPFLAGS = \
3952 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3954 test_catalog_LDADD = \
3955 libsystemd-journal-core.la
3957 test_compress_SOURCES = \
3958 src/journal/test-compress.c
3960 test_compress_LDADD = \
3961 libsystemd-journal-internal.la \
3962 libsystemd-shared.la
3964 test_compress_benchmark_SOURCES = \
3965 src/journal/test-compress-benchmark.c
3967 test_compress_benchmark_LDADD = \
3968 libsystemd-journal-internal.la \
3969 libsystemd-shared.la
3971 libsystemd_journal_core_la_SOURCES = \
3972 src/journal/journald-kmsg.c \
3973 src/journal/journald-kmsg.h \
3974 src/journal/journald-syslog.c \
3975 src/journal/journald-syslog.h \
3976 src/journal/journald-stream.c \
3977 src/journal/journald-stream.h \
3978 src/journal/journald-server.c \
3979 src/journal/journald-server.h \
3980 src/journal/journald-console.c \
3981 src/journal/journald-console.h \
3982 src/journal/journald-wall.c \
3983 src/journal/journald-wall.h \
3984 src/journal/journald-native.c \
3985 src/journal/journald-native.h \
3986 src/journal/journald-rate-limit.c \
3987 src/journal/journald-rate-limit.h \
3988 src/journal/journal-internal.h
3990 nodist_libsystemd_journal_core_la_SOURCES = \
3991 src/journal/journald-gperf.c
3993 libsystemd_journal_core_la_LIBADD = \
3994 libsystemd-journal-internal.la \
3995 libudev-internal.la \
3996 libsystemd-capability.la \
3997 libsystemd-label.la \
3998 libsystemd-internal.la \
3999 libsystemd-shared.la
4002 libsystemd_journal_core_la_LIBADD += \
4006 noinst_LTLIBRARIES += \
4007 libsystemd-journal-core.la
4009 journal-install-hook:
4010 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4011 -chown 0:0 $(DESTDIR)/var/log/journal
4012 -chmod 755 $(DESTDIR)/var/log/journal
4013 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4014 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4016 journal-uninstall-hook:
4017 -rmdir $(DESTDIR)/var/log/journal/remote
4018 -rmdir $(DESTDIR)/var/log/journal/
4020 INSTALL_EXEC_HOOKS += journal-install-hook
4021 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4023 # ------------------------------------------------------------------------------
4024 # Update catalog on installation. Do not bother if installing
4025 # in DESTDIR, since this is likely for packaging purposes.
4026 catalog-update-hook:
4027 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4029 INSTALL_DATA_HOOKS += \
4032 catalog-remove-hook:
4033 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4035 UNINSTALL_DATA_HOOKS += \
4044 test-journal-syslog \
4045 test-journal-match \
4046 test-journal-stream \
4048 test-journal-verify \
4049 test-journal-interleaving \
4050 test-journal-flush \
4057 test-compress-benchmark
4060 pkginclude_HEADERS += \
4061 src/systemd/sd-journal.h \
4062 src/systemd/sd-messages.h \
4063 src/systemd/_sd-common.h
4065 libsystemd_journal_internal_la_SOURCES = \
4066 src/journal/sd-journal.c \
4067 src/systemd/sd-journal.h \
4068 src/systemd/_sd-common.h \
4069 src/journal/journal-file.c \
4070 src/journal/journal-file.h \
4071 src/journal/journal-vacuum.c \
4072 src/journal/journal-vacuum.h \
4073 src/journal/journal-verify.c \
4074 src/journal/journal-verify.h \
4075 src/journal/lookup3.c \
4076 src/journal/lookup3.h \
4077 src/journal/journal-send.c \
4078 src/journal/journal-def.h \
4079 src/journal/compress.h \
4080 src/journal/catalog.c \
4081 src/journal/catalog.h \
4082 src/journal/mmap-cache.c \
4083 src/journal/mmap-cache.h
4085 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4086 libsystemd_journal_internal_la_CFLAGS = \
4089 libsystemd_journal_internal_la_LIBADD =
4091 libsystemd_journal_internal_la_SOURCES += \
4092 src/journal/compress.c
4095 libsystemd_journal_internal_la_CFLAGS += \
4098 libsystemd_journal_internal_la_LIBADD += \
4103 libsystemd_journal_internal_la_LIBADD += \
4108 libsystemd_journal_internal_la_SOURCES += \
4109 src/journal/journal-authenticate.c \
4110 src/journal/journal-authenticate.h \
4111 src/journal/fsprg.c \
4114 libsystemd_journal_internal_la_LIBADD += \
4117 # fsprg.c is a drop-in file using void pointer arithmetic
4118 libsystemd_journal_internal_la_CFLAGS += \
4123 noinst_LTLIBRARIES += \
4124 libsystemd-journal-internal.la
4126 rootlibexec_PROGRAMS += \
4129 rootbin_PROGRAMS += \
4135 dist_systemunit_DATA += \
4136 units/systemd-journald.socket \
4137 units/systemd-journald-dev-log.socket
4139 nodist_systemunit_DATA += \
4140 units/systemd-journald.service \
4141 units/systemd-journal-flush.service \
4142 units/systemd-journal-catalog-update.service
4144 dist_pkgsysconf_DATA += \
4145 src/journal/journald.conf
4147 dist_catalog_DATA = \
4148 catalog/systemd.fr.catalog \
4149 catalog/systemd.it.catalog \
4150 catalog/systemd.pl.catalog \
4151 catalog/systemd.ru.catalog \
4152 catalog/systemd.catalog
4154 SOCKETS_TARGET_WANTS += \
4155 systemd-journald.socket \
4156 systemd-journald-dev-log.socket
4158 SYSINIT_TARGET_WANTS += \
4159 systemd-journald.service \
4160 systemd-journal-flush.service \
4161 systemd-journal-catalog-update.service
4164 units/systemd-journald.service.in \
4165 units/systemd-journal-flush.service.in \
4166 units/systemd-journal-catalog-update.service.in \
4167 src/journal/journald-gperf.gperf
4170 src/journal/journald-gperf.c
4172 # ------------------------------------------------------------------------------
4174 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4176 rootlibexec_PROGRAMS += \
4177 systemd-journal-gatewayd
4179 systemd_journal_gatewayd_SOURCES = \
4180 src/journal-remote/journal-gatewayd.c \
4181 src/journal-remote/microhttpd-util.h \
4182 src/journal-remote/microhttpd-util.c
4184 systemd_journal_gatewayd_LDADD = \
4185 libsystemd-logs.la \
4186 libsystemd-journal-internal.la \
4187 libsystemd-internal.la \
4188 libsystemd-shared.la \
4192 systemd_journal_gatewayd_LDADD += \
4196 systemd_journal_gatewayd_CFLAGS = \
4198 $(MICROHTTPD_CFLAGS)
4200 systemd_journal_gatewayd_CPPFLAGS = \
4202 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4204 dist_systemunit_DATA += \
4205 units/systemd-journal-gatewayd.socket
4207 nodist_systemunit_DATA += \
4208 units/systemd-journal-gatewayd.service
4210 dist_gatewayddocumentroot_DATA = \
4211 src/journal-remote/browse.html
4216 units/systemd-journal-gatewayd.service.in
4218 # ------------------------------------------------------------------------------
4220 systemd_socket_proxyd_SOURCES = \
4221 src/socket-proxy/socket-proxyd.c
4223 systemd_socket_proxyd_LDADD = \
4224 libsystemd-logs.la \
4225 libsystemd-internal.la \
4226 libsystemd-journal-internal.la \
4227 libsystemd-shared.la \
4228 libsystemd-resolve.la
4230 # ------------------------------------------------------------------------------
4232 systemd_coredump_SOURCES = \
4233 src/journal/coredump.c \
4234 src/journal/coredump-vacuum.c \
4235 src/journal/coredump-vacuum.h
4237 systemd_coredump_LDADD = \
4238 libsystemd-journal-internal.la \
4239 libsystemd-label.la \
4240 libsystemd-internal.la \
4241 libsystemd-shared.la
4244 systemd_coredump_SOURCES += \
4245 src/journal/stacktrace.c \
4246 src/journal/stacktrace.h
4248 systemd_coredump_LDADD += \
4252 rootlibexec_PROGRAMS += \
4255 dist_pkgsysconf_DATA += \
4256 src/journal/coredump.conf
4259 systemd_coredump_LDADD += \
4263 coredumpctl_SOURCES = \
4264 src/journal/coredumpctl.c
4266 coredumpctl_LDADD = \
4267 libsystemd-journal-internal.la \
4268 libsystemd-internal.la \
4269 libsystemd-shared.la
4275 test-coredump-vacuum
4277 test_coredump_vacuum_SOURCES = \
4278 src/journal/test-coredump-vacuum.c \
4279 src/journal/coredump-vacuum.c \
4280 src/journal/coredump-vacuum.h
4282 test_coredump_vacuum_LDADD = \
4283 libsystemd-internal.la \
4284 libsystemd-shared.la
4286 dist_bashcompletion_DATA += \
4287 shell-completion/bash/coredumpctl
4289 dist_zshcompletion_DATA += \
4290 shell-completion/zsh/_coredumpctl
4293 sysctl.d/50-coredump.conf
4296 sysctl.d/50-coredump.conf
4300 sysctl.d/50-coredump.conf.in
4302 # ------------------------------------------------------------------------------
4304 systemd_binfmt_SOURCES = \
4307 systemd_binfmt_LDADD = \
4308 libsystemd-shared.la
4310 rootlibexec_PROGRAMS += \
4313 dist_systemunit_DATA += \
4314 units/proc-sys-fs-binfmt_misc.automount \
4315 units/proc-sys-fs-binfmt_misc.mount
4317 nodist_systemunit_DATA += \
4318 units/systemd-binfmt.service
4321 $(prefix)/lib/binfmt.d \
4322 $(sysconfdir)/binfmt.d
4324 SYSINIT_TARGET_WANTS += \
4325 systemd-binfmt.service \
4326 proc-sys-fs-binfmt_misc.automount
4331 units/systemd-binfmt.service.in
4333 # ------------------------------------------------------------------------------
4335 systemd_vconsole_setup_SOURCES = \
4336 src/vconsole/vconsole-setup.c
4338 systemd_vconsole_setup_LDADD = \
4339 libsystemd-shared.la
4341 rootlibexec_PROGRAMS += \
4342 systemd-vconsole-setup
4344 nodist_systemunit_DATA += \
4345 units/systemd-vconsole-setup.service
4347 SYSINIT_TARGET_WANTS += \
4348 systemd-vconsole-setup.service
4352 units/systemd-vconsole-setup.service.in
4354 # ------------------------------------------------------------------------------
4356 systemd_bootchart_SOURCES = \
4357 src/bootchart/bootchart.c \
4358 src/bootchart/bootchart.h \
4359 src/bootchart/store.c \
4360 src/bootchart/store.h \
4361 src/bootchart/svg.c \
4364 systemd_bootchart_LDADD = \
4365 libsystemd-journal-internal.la \
4366 libsystemd-shared.la
4368 rootlibexec_PROGRAMS += \
4371 dist_pkgsysconf_DATA += \
4372 src/bootchart/bootchart.conf
4375 # ------------------------------------------------------------------------------
4376 if ENABLE_QUOTACHECK
4377 rootlibexec_PROGRAMS += \
4380 nodist_systemunit_DATA += \
4381 units/systemd-quotacheck.service
4383 systemd_quotacheck_SOURCES = \
4384 src/quotacheck/quotacheck.c
4386 systemd_quotacheck_LDADD = \
4387 libsystemd-shared.la
4391 units/systemd-quotacheck.service.in
4393 nodist_systemunit_DATA += \
4394 units/quotaon.service
4396 # ------------------------------------------------------------------------------
4397 if ENABLE_RANDOMSEED
4398 rootlibexec_PROGRAMS += \
4401 nodist_systemunit_DATA += \
4402 units/systemd-random-seed.service
4404 systemd_random_seed_SOURCES = \
4405 src/random-seed/random-seed.c
4407 systemd_random_seed_LDADD = \
4408 libsystemd-label.la \
4409 libsystemd-shared.la
4411 SYSINIT_TARGET_WANTS += \
4412 systemd-random-seed.service
4417 units/systemd-random-seed.service.in
4419 # ------------------------------------------------------------------------------
4421 rootlibexec_PROGRAMS += \
4424 nodist_systemunit_DATA += \
4425 units/systemd-backlight@.service
4427 systemd_backlight_SOURCES = \
4428 src/backlight/backlight.c
4430 systemd_backlight_LDADD = \
4431 libsystemd-label.la \
4432 libudev-internal.la \
4433 libsystemd-shared.la
4437 units/systemd-backlight@.service.in
4439 # ------------------------------------------------------------------------------
4441 rootlibexec_PROGRAMS += \
4444 nodist_systemunit_DATA += \
4445 units/systemd-rfkill@.service
4447 systemd_rfkill_SOURCES = \
4450 systemd_rfkill_LDADD = \
4451 libsystemd-label.la \
4452 libudev-internal.la \
4453 libsystemd-shared.la
4457 units/systemd-rfkill@.service.in
4459 # ------------------------------------------------------------------------------
4460 if HAVE_LIBCRYPTSETUP
4461 rootlibexec_PROGRAMS += \
4464 systemgenerator_PROGRAMS += \
4465 systemd-cryptsetup-generator
4467 dist_systemunit_DATA += \
4468 units/cryptsetup.target \
4469 units/cryptsetup-pre.target
4471 systemd_cryptsetup_SOURCES = \
4472 src/cryptsetup/cryptsetup.c
4474 systemd_cryptsetup_CFLAGS = \
4476 $(LIBCRYPTSETUP_CFLAGS)
4478 systemd_cryptsetup_LDADD = \
4479 libsystemd-label.la \
4480 libudev-internal.la \
4481 libsystemd-shared.la \
4482 $(LIBCRYPTSETUP_LIBS)
4484 systemd_cryptsetup_generator_SOURCES = \
4485 src/cryptsetup/cryptsetup-generator.c
4487 systemd_cryptsetup_generator_LDADD = \
4488 libsystemd-label.la \
4489 libsystemd-shared.la
4491 SYSINIT_TARGET_WANTS += \
4496 # ------------------------------------------------------------------------------
4498 systemd_hostnamed_SOURCES = \
4499 src/hostname/hostnamed.c
4501 systemd_hostnamed_LDADD = \
4502 libsystemd-label.la \
4503 libsystemd-internal.la \
4504 libsystemd-shared.la
4506 rootlibexec_PROGRAMS += \
4509 nodist_systemunit_DATA += \
4510 units/systemd-hostnamed.service
4512 dist_systemunit_DATA_busnames += \
4513 units/org.freedesktop.hostname1.busname
4515 dist_dbuspolicy_DATA += \
4516 src/hostname/org.freedesktop.hostname1.conf
4518 dist_dbussystemservice_DATA += \
4519 src/hostname/org.freedesktop.hostname1.service
4521 polkitpolicy_files += \
4522 src/hostname/org.freedesktop.hostname1.policy
4524 SYSTEM_UNIT_ALIASES += \
4525 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4527 BUSNAMES_TARGET_WANTS += \
4528 org.freedesktop.hostname1.busname
4530 hostnamectl_SOURCES = \
4531 src/hostname/hostnamectl.c
4533 hostnamectl_LDADD = \
4534 libsystemd-internal.la \
4535 libsystemd-shared.la
4540 dist_bashcompletion_DATA += \
4541 shell-completion/bash/hostnamectl
4543 dist_zshcompletion_DATA += \
4544 shell-completion/zsh/_hostnamectl
4548 polkitpolicy_in_files += \
4549 src/hostname/org.freedesktop.hostname1.policy.in
4552 units/systemd-hostnamed.service.in
4554 # ------------------------------------------------------------------------------
4555 dist_systemunit_DATA_busnames += \
4556 units/org.freedesktop.systemd1.busname
4558 BUSNAMES_TARGET_WANTS += \
4559 org.freedesktop.systemd1.busname
4561 # ------------------------------------------------------------------------------
4563 systemd_localed_SOURCES = \
4564 src/locale/localed.c
4566 systemd_localed_LDADD = \
4567 libsystemd-label.la \
4568 libsystemd-internal.la \
4569 libsystemd-shared.la
4571 nodist_systemunit_DATA += \
4572 units/systemd-localed.service
4574 dist_systemunit_DATA_busnames += \
4575 units/org.freedesktop.locale1.busname
4577 rootlibexec_PROGRAMS += \
4580 dist_dbuspolicy_DATA += \
4581 src/locale/org.freedesktop.locale1.conf
4583 dist_dbussystemservice_DATA += \
4584 src/locale/org.freedesktop.locale1.service
4586 polkitpolicy_files += \
4587 src/locale/org.freedesktop.locale1.policy
4589 SYSTEM_UNIT_ALIASES += \
4590 systemd-localed.service dbus-org.freedesktop.locale1.service
4592 BUSNAMES_TARGET_WANTS += \
4593 org.freedesktop.locale1.busname
4595 dist_pkgdata_DATA += \
4596 src/locale/kbd-model-map
4598 dist_noinst_SCRIPT = \
4599 src/locale/generate-kbd-model-map
4601 localectl_SOURCES = \
4602 src/locale/localectl.c
4605 libsystemd-internal.la \
4606 libsystemd-shared.la
4611 dist_bashcompletion_DATA += \
4612 shell-completion/bash/localectl
4614 dist_zshcompletion_DATA += \
4615 shell-completion/zsh/_localectl
4619 .PHONY: update-kbd-model-map
4621 polkitpolicy_in_files += \
4622 src/locale/org.freedesktop.locale1.policy.in
4625 units/systemd-localed.service.in
4627 # ------------------------------------------------------------------------------
4629 systemd_timedated_SOURCES = \
4630 src/timedate/timedated.c
4632 systemd_timedated_LDADD = \
4633 libsystemd-label.la \
4634 libsystemd-internal.la \
4635 libsystemd-shared.la
4637 rootlibexec_PROGRAMS += \
4640 dist_dbussystemservice_DATA += \
4641 src/timedate/org.freedesktop.timedate1.service
4643 dist_dbuspolicy_DATA += \
4644 src/timedate/org.freedesktop.timedate1.conf
4646 nodist_systemunit_DATA += \
4647 units/systemd-timedated.service
4649 dist_systemunit_DATA_busnames += \
4650 units/org.freedesktop.timedate1.busname
4652 polkitpolicy_files += \
4653 src/timedate/org.freedesktop.timedate1.policy
4655 SYSTEM_UNIT_ALIASES += \
4656 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4658 BUSNAMES_TARGET_WANTS += \
4659 org.freedesktop.timedate1.busname
4661 timedatectl_SOURCES = \
4662 src/timedate/timedatectl.c
4664 timedatectl_LDADD = \
4665 libsystemd-internal.la \
4666 libsystemd-shared.la
4671 dist_bashcompletion_DATA += \
4672 shell-completion/bash/timedatectl
4674 dist_zshcompletion_DATA += \
4675 shell-completion/zsh/_timedatectl
4678 polkitpolicy_in_files += \
4679 src/timedate/org.freedesktop.timedate1.policy.in
4682 units/systemd-timedated.service.in
4684 # ------------------------------------------------------------------------------
4686 systemd_timesyncd_SOURCES = \
4687 src/timesync/timesyncd.c \
4688 src/timesync/timesyncd-manager.c \
4689 src/timesync/timesyncd-manager.h \
4690 src/timesync/timesyncd-conf.c \
4691 src/timesync/timesyncd-conf.h \
4692 src/timesync/timesyncd-server.c \
4693 src/timesync/timesyncd-server.h
4695 nodist_systemd_timesyncd_SOURCES = \
4696 src/timesync/timesyncd-gperf.c
4699 src/timesync/timesyncd-gperf.gperf
4702 src/timesync/timesyncd-gperf.c
4704 systemd_timesyncd_LDADD = \
4705 libsystemd-resolve.la \
4706 libsystemd-network.la \
4707 libsystemd-label.la \
4708 libsystemd-capability.la \
4709 libsystemd-internal.la \
4710 libsystemd-shared.la \
4713 rootlibexec_PROGRAMS += \
4716 nodist_systemunit_DATA += \
4717 units/systemd-timesyncd.service
4719 GENERAL_ALIASES += \
4720 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4723 units/systemd-timesyncd.service.in
4725 nodist_pkgsysconf_DATA += \
4726 src/timesync/timesyncd.conf
4729 src/timesync/timesyncd.conf.in
4732 src/timesync/timesyncd.conf
4735 # ------------------------------------------------------------------------------
4737 libnss_myhostname_la_SOURCES = \
4738 src/nss-myhostname/nss-myhostname.sym \
4739 src/nss-myhostname/nss-myhostname.c
4741 libnss_myhostname_la_LDFLAGS = \
4748 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4750 libnss_myhostname_la_LIBADD = \
4751 libsystemd-shared.la \
4752 libsystemd-internal.la
4754 lib_LTLIBRARIES += \
4755 libnss_myhostname.la
4758 # ------------------------------------------------------------------------------
4760 systemd_machined_SOURCES = \
4761 src/machine/machined.c \
4762 src/machine/machined.h
4764 systemd_machined_LDADD = \
4765 libsystemd-machine-core.la
4767 rootlibexec_PROGRAMS += \
4770 libsystemd_machine_core_la_SOURCES = \
4771 src/machine/machined-dbus.c \
4772 src/machine/machine.c \
4773 src/machine/machine.h \
4774 src/machine/machine-dbus.c
4776 libsystemd_machine_core_la_LIBADD = \
4777 libsystemd-label.la \
4778 libsystemd-internal.la \
4779 libudev-internal.la \
4780 libsystemd-shared.la
4782 noinst_LTLIBRARIES += \
4783 libsystemd-machine-core.la
4785 machinectl_SOURCES = \
4786 src/machine/machinectl.c
4788 machinectl_LDADD = \
4789 libsystemd-internal.la \
4790 libsystemd-shared.la
4792 rootbin_PROGRAMS += \
4795 dist_bashcompletion_DATA += \
4796 shell-completion/bash/machinectl
4798 test_machine_tables_SOURCES = \
4799 src/machine/test-machine-tables.c
4801 test_machine_tables_LDADD = \
4802 libsystemd-machine-core.la
4807 nodist_systemunit_DATA += \
4808 units/systemd-machined.service
4810 dist_systemunit_DATA += \
4813 dist_systemunit_DATA_busnames += \
4814 units/org.freedesktop.machine1.busname
4816 dist_dbussystemservice_DATA += \
4817 src/machine/org.freedesktop.machine1.service
4819 dist_dbuspolicy_DATA += \
4820 src/machine/org.freedesktop.machine1.conf
4822 dist_zshcompletion_DATA += \
4823 shell-completion/zsh/_machinectl \
4824 shell-completion/zsh/_sd_machines
4826 SYSTEM_UNIT_ALIASES += \
4827 systemd-machined.service dbus-org.freedesktop.machine1.service
4829 BUSNAMES_TARGET_WANTS += \
4830 org.freedesktop.machine1.busname
4833 units/systemd-machined.service.in
4835 libnss_mymachines_la_SOURCES = \
4836 src/nss-mymachines/nss-mymachines.sym \
4837 src/nss-mymachines/nss-mymachines.c
4839 libnss_mymachines_la_LDFLAGS = \
4846 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4848 libnss_mymachines_la_LIBADD = \
4849 libsystemd-shared.la \
4850 libsystemd-internal.la
4852 lib_LTLIBRARIES += \
4853 libnss_mymachines.la
4856 # ------------------------------------------------------------------------------
4858 systemd_resolved_SOURCES = \
4859 src/resolve/resolved.c \
4860 src/resolve/resolved-manager.c \
4861 src/resolve/resolved-manager.h \
4862 src/resolve/resolved-conf.c \
4863 src/resolve/resolved-conf.h \
4864 src/resolve/resolved-bus.c \
4865 src/resolve/resolved-bus.h \
4866 src/resolve/resolved-link.h \
4867 src/resolve/resolved-link.c \
4868 src/resolve/resolved-def.h \
4869 src/resolve/resolved-dns-domain.h \
4870 src/resolve/resolved-dns-domain.c \
4871 src/resolve/resolved-dns-rr.h \
4872 src/resolve/resolved-dns-rr.c \
4873 src/resolve/resolved-dns-question.h \
4874 src/resolve/resolved-dns-question.c \
4875 src/resolve/resolved-dns-answer.h \
4876 src/resolve/resolved-dns-answer.c \
4877 src/resolve/resolved-dns-packet.h \
4878 src/resolve/resolved-dns-packet.c \
4879 src/resolve/resolved-dns-query.h \
4880 src/resolve/resolved-dns-query.c \
4881 src/resolve/resolved-dns-transaction.h \
4882 src/resolve/resolved-dns-transaction.c \
4883 src/resolve/resolved-dns-scope.h \
4884 src/resolve/resolved-dns-scope.c \
4885 src/resolve/resolved-dns-server.h \
4886 src/resolve/resolved-dns-server.c \
4887 src/resolve/resolved-dns-cache.h \
4888 src/resolve/resolved-dns-cache.c \
4889 src/resolve/resolved-dns-zone.h \
4890 src/resolve/resolved-dns-zone.c \
4891 src/resolve/resolved-dns-stream.h \
4892 src/resolve/resolved-dns-stream.c \
4893 src/resolve/dns-type.c \
4894 src/resolve/dns-type.h \
4895 src/resolve/dns_type-from-name.h \
4896 src/resolve/dns_type-to-name.h
4898 nodist_systemd_resolved_SOURCES = \
4899 src/resolve/resolved-gperf.c
4902 src/resolve/resolved-gperf.gperf \
4903 src/resolve/dns_type-from-name.gperf
4906 src/resolve/resolved-gperf.c
4908 systemd_resolved_LDADD = \
4909 libsystemd-capability.la \
4910 libsystemd-network.la \
4911 libsystemd-label.la \
4912 libsystemd-internal.la \
4913 libsystemd-shared.la \
4917 rootlibexec_PROGRAMS += \
4920 nodist_systemunit_DATA += \
4921 units/systemd-resolved.service
4923 dist_systemunit_DATA_busnames += \
4924 units/org.freedesktop.resolve1.busname
4926 dist_dbuspolicy_DATA += \
4927 src/resolve/org.freedesktop.resolve1.conf
4929 dist_dbussystemservice_DATA += \
4930 src/resolve/org.freedesktop.resolve1.service
4933 units/systemd-resolved.service.in
4935 SYSTEM_UNIT_ALIASES += \
4936 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4938 BUSNAMES_TARGET_WANTS += \
4939 org.freedesktop.resolve1.busname
4941 GENERAL_ALIASES += \
4942 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4944 nodist_pkgsysconf_DATA += \
4945 src/resolve/resolved.conf
4948 src/resolve/resolved.conf.in
4951 src/resolve/resolved.conf
4956 test_dns_domain_SOURCES = \
4957 src/resolve/resolved-dns-domain.h \
4958 src/resolve/resolved-dns-domain.c \
4959 src/resolve/test-dns-domain.c
4961 test_dns_domain_LDADD = \
4962 libsystemd-capability.la \
4963 libsystemd-network.la \
4964 libsystemd-label.la \
4965 libsystemd-internal.la \
4966 libsystemd-shared.la \
4969 libnss_resolve_la_SOURCES = \
4970 src/nss-resolve/nss-resolve.sym \
4971 src/nss-resolve/nss-resolve.c
4973 libnss_resolve_la_LDFLAGS = \
4980 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
4982 libnss_resolve_la_LIBADD = \
4983 libsystemd-shared.la \
4984 libsystemd-internal.la
4986 lib_LTLIBRARIES += \
4989 systemd_resolve_host_SOURCES = \
4990 src/resolve-host/resolve-host.c \
4991 src/resolve/resolved-dns-packet.c \
4992 src/resolve/resolved-dns-packet.h \
4993 src/resolve/resolved-dns-rr.c \
4994 src/resolve/resolved-dns-rr.h \
4995 src/resolve/resolved-dns-answer.c \
4996 src/resolve/resolved-dns-answer.h \
4997 src/resolve/resolved-dns-question.c \
4998 src/resolve/resolved-dns-question.h \
4999 src/resolve/resolved-dns-domain.c \
5000 src/resolve/resolved-dns-domain.h \
5001 src/resolve/dns-type.c \
5002 src/resolve/dns-type.h \
5003 src/resolve/dns_type-from-name.h \
5004 src/resolve/dns_type-to-name.h
5006 systemd_resolve_host_LDADD = \
5007 libsystemd-internal.la \
5008 libsystemd-shared.la \
5012 rootlibexec_PROGRAMS += \
5013 systemd-resolve-host
5017 # ------------------------------------------------------------------------------
5019 rootlibexec_PROGRAMS += \
5022 systemd_networkd_SOURCES = \
5023 src/network/networkd.c
5025 systemd_networkd_LDADD = \
5026 libsystemd-networkd-core.la \
5027 libsystemd-capability.la
5029 noinst_LTLIBRARIES += \
5030 libsystemd-networkd-core.la
5032 libsystemd_networkd_core_la_CFLAGS = \
5035 libsystemd_networkd_core_la_SOURCES = \
5036 src/libsystemd-network/network-internal.h \
5037 src/network/networkd.h \
5038 src/network/networkd-link.h \
5039 src/network/networkd-netdev.h \
5040 src/network/networkd-netdev-tunnel.h \
5041 src/network/networkd-netdev-veth.h \
5042 src/network/networkd-netdev-vxlan.h \
5043 src/network/networkd-netdev-vlan.h \
5044 src/network/networkd-netdev-macvlan.h \
5045 src/network/networkd-netdev-dummy.h \
5046 src/network/networkd-netdev-tuntap.h \
5047 src/network/networkd-netdev-bond.h \
5048 src/network/networkd-netdev-bridge.h \
5049 src/network/networkd-netdev.c \
5050 src/network/networkd-netdev-tunnel.c \
5051 src/network/networkd-netdev-veth.c \
5052 src/network/networkd-netdev-vxlan.c \
5053 src/network/networkd-netdev-vlan.c \
5054 src/network/networkd-netdev-macvlan.c \
5055 src/network/networkd-netdev-dummy.c \
5056 src/network/networkd-netdev-tuntap.c \
5057 src/network/networkd-netdev-bond.c \
5058 src/network/networkd-netdev-bridge.c \
5059 src/network/networkd-link.c \
5060 src/network/networkd-ipv4ll.c \
5061 src/network/networkd-dhcp4.c \
5062 src/network/networkd-network.c \
5063 src/network/networkd-address.c \
5064 src/network/networkd-route.c \
5065 src/network/networkd-manager.c \
5066 src/network/networkd-address-pool.c
5068 nodist_libsystemd_networkd_core_la_SOURCES = \
5069 src/network/networkd-network-gperf.c \
5070 src/network/networkd-netdev-gperf.c
5072 libsystemd_networkd_core_la_LIBADD = \
5073 libudev-internal.la \
5074 libsystemd-internal.la \
5075 libsystemd-network.la \
5076 libsystemd-label.la \
5077 libsystemd-shared.la
5079 rootlibexec_PROGRAMS += \
5080 systemd-networkd-wait-online
5082 systemd_networkd_wait_online_CFLAGS = \
5085 systemd_networkd_wait_online_SOURCES = \
5086 src/libsystemd-network/network-internal.h \
5087 src/network/networkd-wait-online.h \
5088 src/network/networkd-wait-online-link.h \
5089 src/network/networkd-wait-online.c \
5090 src/network/networkd-wait-online-manager.c \
5091 src/network/networkd-wait-online-link.c
5093 systemd_networkd_wait_online_LDADD = \
5094 libsystemd-network.la \
5095 libudev-internal.la \
5096 libsystemd-internal.la \
5097 libsystemd-shared.la
5099 rootbin_PROGRAMS += \
5102 networkctl_SOURCES = \
5103 src/network/networkctl.c
5105 networkctl_LDADD = \
5106 libsystemd-internal.la \
5107 libudev-internal.la \
5108 libsystemd-shared.la \
5109 libsystemd-network.la
5111 test_network_SOURCES = \
5112 src/network/test-network.c
5114 test_network_CFLAGS = \
5117 test_network_LDADD = \
5118 libsystemd-networkd-core.la
5120 test_network_tables_SOURCES = \
5121 src/network/test-network-tables.c \
5122 src/shared/test-tables.h
5124 test_network_tables_LDADD = \
5125 libsystemd-networkd-core.la \
5132 nodist_systemunit_DATA += \
5133 units/systemd-networkd.service \
5134 units/systemd-networkd-wait-online.service
5136 GENERAL_ALIASES += \
5137 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5138 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5141 src/network/networkd-network-gperf.gperf \
5142 src/network/networkd-netdev-gperf.gperf \
5143 units/systemd-networkd.service.in \
5144 units/systemd-networkd-wait-online.service.in
5147 src/network/networkd-network-gperf.c \
5148 src/network/networkd-netdev-gperf.c
5151 # ------------------------------------------------------------------------------
5153 systemd_logind_SOURCES = \
5154 src/login/logind.c \
5157 nodist_systemd_logind_SOURCES = \
5158 src/login/logind-gperf.c
5160 systemd_logind_LDADD = \
5161 libsystemd-logind-core.la
5163 libsystemd_logind_core_la_SOURCES = \
5164 src/login/logind-core.c \
5165 src/login/logind-device.c \
5166 src/login/logind-device.h \
5167 src/login/logind-button.c \
5168 src/login/logind-button.h \
5169 src/login/logind-action.c \
5170 src/login/logind-action.h \
5171 src/login/logind-seat.c \
5172 src/login/logind-seat.h \
5173 src/login/logind-session.c \
5174 src/login/logind-session.h \
5175 src/login/logind-session-device.c \
5176 src/login/logind-session-device.h \
5177 src/login/logind-user.c \
5178 src/login/logind-user.h \
5179 src/login/logind-inhibit.c \
5180 src/login/logind-inhibit.h \
5181 src/login/logind-dbus.c \
5182 src/login/logind-session-dbus.c \
5183 src/login/logind-seat-dbus.c \
5184 src/login/logind-user-dbus.c \
5185 src/login/logind-acl.h
5187 libsystemd_logind_core_la_LIBADD = \
5188 libsystemd-label.la \
5189 libsystemd-capability.la \
5190 libsystemd-internal.la \
5191 libudev-internal.la \
5192 libsystemd-shared.la
5195 libsystemd_logind_core_la_SOURCES += \
5196 src/login/logind-acl.c
5198 libsystemd_logind_core_la_LIBADD += \
5202 noinst_LTLIBRARIES += \
5203 libsystemd-logind-core.la
5205 systemd_user_sessions_SOURCES = \
5206 src/login/user-sessions.c
5208 systemd_user_sessions_LDADD = \
5209 libsystemd-shared.la
5211 rootlibexec_PROGRAMS += \
5213 systemd-user-sessions
5215 loginctl_SOURCES = \
5216 src/login/loginctl.c \
5217 src/login/sysfs-show.c
5220 libsystemd-internal.la \
5221 libudev-internal.la \
5222 libsystemd-shared.la
5224 rootbin_PROGRAMS += \
5227 dist_bashcompletion_DATA += \
5228 shell-completion/bash/loginctl
5230 dist_zshcompletion_DATA += \
5231 shell-completion/zsh/_loginctl \
5232 shell-completion/zsh/_systemd-inhibit
5234 systemd_inhibit_SOURCES = \
5237 systemd_inhibit_LDADD = \
5238 libsystemd-internal.la \
5239 libsystemd-shared.la
5241 rootbin_PROGRAMS += \
5244 test_login_SOURCES = \
5245 src/libsystemd/sd-login/test-login.c
5247 test_login_LDADD = \
5248 libsystemd-internal.la \
5249 libsystemd-shared.la
5251 test_login_shared_SOURCES = \
5252 src/login/test-login-shared.c
5254 test_login_shared_LDADD = \
5255 libsystemd-internal.la \
5256 libsystemd-shared.la
5258 test_inhibit_SOURCES = \
5259 src/login/test-inhibit.c
5261 test_inhibit_LDADD = \
5262 libsystemd-internal.la \
5263 libsystemd-shared.la
5265 test_login_tables_SOURCES = \
5266 src/login/test-login-tables.c
5268 test_login_tables_LDADD = \
5269 libsystemd-logind-core.la
5280 pam_systemd_la_SOURCES = \
5281 src/login/pam_systemd.sym \
5282 src/login/pam_systemd.c
5284 pam_systemd_la_CFLAGS = \
5289 pam_systemd_la_LDFLAGS = \
5295 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5297 pam_systemd_la_LIBADD = \
5298 libsystemd-capability.la \
5299 libsystemd-internal.la \
5300 libsystemd-shared.la \
5303 pamlib_LTLIBRARIES = \
5306 dist_pamconf_DATA = \
5307 src/login/systemd-user
5310 nodist_systemunit_DATA += \
5311 units/systemd-logind.service \
5312 units/systemd-user-sessions.service
5314 dist_systemunit_DATA += \
5317 dist_systemunit_DATA_busnames += \
5318 units/org.freedesktop.login1.busname
5320 dist_dbussystemservice_DATA += \
5321 src/login/org.freedesktop.login1.service
5323 dist_dbuspolicy_DATA += \
5324 src/login/org.freedesktop.login1.conf
5326 dist_pkgsysconf_DATA += \
5327 src/login/logind.conf
5329 polkitpolicy_files += \
5330 src/login/org.freedesktop.login1.policy
5335 MULTI_USER_TARGET_WANTS += \
5336 systemd-logind.service \
5337 systemd-user-sessions.service
5339 SYSTEM_UNIT_ALIASES += \
5340 systemd-logind.service dbus-org.freedesktop.login1.service
5342 BUSNAMES_TARGET_WANTS += \
5343 org.freedesktop.login1.busname
5345 if ENABLE_MULTI_SEAT_X
5347 systemd_multi_seat_x_SOURCES = \
5348 src/login/multi-seat-x.c
5350 systemd_multi_seat_x_LDADD = \
5351 libsystemd-label.la \
5352 libsystemd-shared.la
5354 rootlibexec_PROGRAMS += \
5355 systemd-multi-seat-x
5359 dist_udevrules_DATA += \
5360 src/login/70-uaccess.rules \
5361 src/login/70-power-switch.rules
5363 nodist_udevrules_DATA += \
5364 src/login/71-seat.rules \
5365 src/login/73-seat-late.rules
5368 src/login/logind-gperf.c \
5369 src/login/71-seat.rules \
5370 src/login/73-seat-late.rules
5373 polkitpolicy_in_files += \
5374 src/login/org.freedesktop.login1.policy.in
5377 src/login/logind-gperf.gperf \
5378 src/login/71-seat.rules.in \
5379 src/login/73-seat-late.rules.in \
5380 units/systemd-logind.service.in \
5381 units/systemd-user-sessions.service.in
5383 # ------------------------------------------------------------------------------
5384 if HAVE_PYTHON_DEVEL
5385 pkgpyexec_LTLIBRARIES = \
5392 _journal_la_SOURCES = \
5393 src/python-systemd/_journal.c
5395 _journal_la_CFLAGS = \
5397 -fvisibility=default \
5398 $(PYTHON_DEVEL_CFLAGS)
5400 _journal_la_LDFLAGS = \
5406 _journal_la_LIBADD = \
5407 $(PYTHON_DEVEL_LIBS) \
5410 id128_la_SOURCES = \
5411 src/python-systemd/id128.c \
5412 src/python-systemd/pyutil.c \
5413 src/python-systemd/pyutil.h
5415 nodist_id128_la_SOURCES = \
5416 src/python-systemd/id128-constants.h
5420 -fvisibility=default \
5421 $(PYTHON_DEVEL_CFLAGS) \
5422 -I$(top_builddir)/src/python-systemd
5424 id128_la_LDFLAGS = \
5431 $(PYTHON_DEVEL_LIBS) \
5432 libsystemd-shared.la \
5435 _daemon_la_SOURCES = \
5436 src/python-systemd/_daemon.c \
5437 src/python-systemd/pyutil.c \
5438 src/python-systemd/pyutil.h
5440 _daemon_la_CFLAGS = \
5442 -fvisibility=default \
5443 $(PYTHON_DEVEL_CFLAGS) \
5444 -I$(top_builddir)/src/python-systemd
5446 _daemon_la_LDFLAGS = \
5452 _daemon_la_LIBADD = \
5453 $(PYTHON_DEVEL_LIBS) \
5454 libsystemd-shared.la \
5457 _reader_la_SOURCES = \
5458 src/python-systemd/_reader.c \
5459 src/python-systemd/pyutil.c \
5460 src/python-systemd/pyutil.h
5462 _reader_la_CFLAGS = \
5464 -fvisibility=default \
5465 $(PYTHON_DEVEL_CFLAGS)
5467 _reader_la_LDFLAGS = \
5473 _reader_la_LIBADD = \
5474 $(PYTHON_DEVEL_LIBS) \
5475 libsystemd-shared.la \
5478 login_la_SOURCES = \
5479 src/python-systemd/login.c \
5480 src/python-systemd/pyutil.c \
5481 src/python-systemd/pyutil.h
5485 -fvisibility=default \
5486 $(PYTHON_DEVEL_CFLAGS)
5488 login_la_LDFLAGS = \
5495 $(PYTHON_DEVEL_LIBS) \
5496 libsystemd-shared.la \
5499 dist_pkgpyexec_PYTHON = \
5500 src/python-systemd/journal.py \
5501 src/python-systemd/daemon.py \
5502 src/python-systemd/__init__.py
5504 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5505 $(AM_V_at)$(MKDIR_P) $(dir $@)
5506 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5509 src/python-systemd/id128-constants.h
5511 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5513 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5514 $(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/
5515 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5518 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5519 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5522 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5523 $(MAKE) DESTDIR="$$dir" install && \
5524 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5529 CLEAN_LOCAL_HOOKS += clean-sphinx
5531 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5534 -rm -rf docs/html/python-systemd/
5536 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5538 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5539 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5541 # ------------------------------------------------------------------------------
5542 if ENABLE_COMPAT_LIBS
5544 src/compat-libs/linkwarning.h
5546 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5547 $(AM_V_at)$(MKDIR_P) $(dir $@)
5548 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5551 libsystemd-journal.c \
5552 libsystemd-login.c \
5553 libsystemd-id128.c \
5556 libsystemd_journal_la_SOURCES = \
5557 libsystemd-journal.c \
5558 src/compat-libs/libsystemd-journal.sym
5560 libsystemd_journal_la_CPPFLAGS = \
5562 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5564 libsystemd_journal_la_LDFLAGS = \
5566 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5567 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5569 libsystemd_journal_la_LIBADD = \
5570 libsystemd-journal-internal.la \
5571 libsystemd-internal.la \
5572 libsystemd-shared.la
5574 libsystemd_login_la_SOURCES = \
5575 libsystemd-login.c \
5576 src/compat-libs/libsystemd-login.sym
5578 libsystemd_login_la_CPPFLAGS = \
5580 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5582 libsystemd_login_la_LDFLAGS = \
5584 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5585 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5587 libsystemd_login_la_LIBADD = \
5588 libsystemd-internal.la \
5589 libsystemd-shared.la
5591 libsystemd_id128_la_SOURCES = \
5592 libsystemd-id128.c \
5593 src/compat-libs/libsystemd-id128.sym
5595 libsystemd_id128_la_CPPFLAGS = \
5597 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5599 libsystemd_id128_la_LDFLAGS = \
5601 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5602 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5604 libsystemd_id128_la_LIBADD = \
5605 libsystemd-internal.la \
5606 libsystemd-shared.la
5608 libsystemd_daemon_la_SOURCES = \
5609 libsystemd-daemon.c \
5610 src/compat-libs/libsystemd-daemon.sym
5612 libsystemd_daemon_la_CPPFLAGS = \
5614 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5616 libsystemd_daemon_la_LDFLAGS = \
5618 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5619 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5621 libsystemd_daemon_la_LIBADD = \
5622 libsystemd-internal.la \
5623 libsystemd-shared.la
5625 lib_LTLIBRARIES += \
5626 libsystemd-journal.la \
5627 libsystemd-login.la \
5628 libsystemd-id128.la \
5629 libsystemd-daemon.la
5631 pkgconfiglib_DATA += \
5632 src/compat-libs/libsystemd-journal.pc \
5633 src/compat-libs/libsystemd-login.pc \
5634 src/compat-libs/libsystemd-id128.pc \
5635 src/compat-libs/libsystemd-daemon.pc
5637 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5638 compat-lib-install-hook:
5639 libname=libsystemd-login.so && $(move-to-rootlibdir)
5640 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5641 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5642 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5644 compat-lib-uninstall-hook:
5645 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5646 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5647 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5648 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5650 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5651 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5655 src/compat-libs/libsystemd-journal.pc.in \
5656 src/compat-libs/libsystemd-login.pc.in \
5657 src/compat-libs/libsystemd-id128.pc.in \
5658 src/compat-libs/libsystemd-daemon.pc.in
5660 # ------------------------------------------------------------------------------
5662 '|rootlibexecdir=$(rootlibexecdir)|' \
5663 '|rootbindir=$(rootbindir)|' \
5664 '|bindir=$(bindir)|' \
5665 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5666 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5667 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5668 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5669 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5670 '|pkgdatadir=$(pkgdatadir)|' \
5671 '|systemunitdir=$(systemunitdir)|' \
5672 '|userunitdir=$(userunitdir)|' \
5673 '|systempresetdir=$(systempresetdir)|' \
5674 '|userpresetdir=$(userpresetdir)|' \
5675 '|udevhwdbdir=$(udevhwdbdir)|' \
5676 '|udevrulesdir=$(udevrulesdir)|' \
5677 '|catalogdir=$(catalogdir)|' \
5678 '|tmpfilesdir=$(tmpfilesdir)|' \
5679 '|sysusersdir=$(sysusersdir)|' \
5680 '|sysctldir=$(sysctldir)|' \
5681 '|systemgeneratordir=$(systemgeneratordir)|' \
5682 '|usergeneratordir=$(usergeneratordir)|' \
5683 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5684 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5685 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5686 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5687 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5688 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5689 '|prefix=$(prefix)|' \
5690 '|exec_prefix=$(exec_prefix)|' \
5691 '|libdir=$(libdir)|' \
5692 '|includedir=$(includedir)|' \
5693 '|VERSION=$(VERSION)|' \
5694 '|rootprefix=$(rootprefix)|' \
5695 '|udevlibexecdir=$(udevlibexecdir)|' \
5696 '|SUSHELL=$(SUSHELL)|' \
5697 '|DEBUGTTY=$(DEBUGTTY)|' \
5700 '|MKDIR_P=$(MKDIR_P)|' \
5701 '|QUOTAON=$(QUOTAON)|' \
5702 '|QUOTACHECK=$(QUOTACHECK)|' \
5703 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5704 '|VARLOGDIR=$(varlogdir)|' \
5705 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5706 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5707 '|PYTHON=$(PYTHON)|' \
5708 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5709 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5710 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5711 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5712 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5713 '|TTY_GID=$(TTY_GID)|' \
5714 '|systemsleepdir=$(systemsleepdir)|' \
5715 '|systemshutdowndir=$(systemshutdowndir)|' \
5716 '|binfmtdir=$(binfmtdir)|' \
5717 '|modulesloaddir=$(modulesloaddir)|'
5720 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5721 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5730 sysctl.d/%: sysctl.d/%.in
5739 src/core/macros.%: src/core/macros.%.in
5742 src/%.policy.in: src/%.policy.in.in
5745 shell-completion/%: shell-completion/%.in
5756 $(AM_V_GEN)chmod +x $@
5758 src/%.c: src/%.gperf
5759 $(AM_V_at)$(MKDIR_P) $(dir $@)
5760 $(AM_V_GPERF)$(GPERF) < $< > $@
5763 $(AM_V_at)$(MKDIR_P) $(dir $@)
5764 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5766 tmpfiles.d/%: tmpfiles.d/%.m4
5767 $(AM_V_at)$(MKDIR_P) $(dir $@)
5768 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5772 $(AM_V_at)$(MKDIR_P) $(dir $@)
5773 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5775 units/user/%: units/%.m4
5776 $(AM_V_at)$(MKDIR_P) $(dir $@)
5777 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5780 nodist_polkitpolicy_DATA = \
5781 $(polkitpolicy_files) \
5782 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5786 $(polkitpolicy_in_files) \
5787 $(polkitpolicy_in_in_files)
5790 $(nodist_systemunit_DATA) \
5791 $(nodist_userunit_DATA) \
5792 $(pkgconfigdata_DATA) \
5793 $(pkgconfiglib_DATA) \
5794 $(nodist_polkitpolicy_DATA)
5796 # ------------------------------------------------------------------------------
5798 man/custom-entities.ent: configure.ac
5799 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5800 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5801 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5805 man/custom-entities.ent
5810 --stringparam man.output.quietly 1 \
5811 --stringparam funcsynopsis.style ansi \
5812 --stringparam man.authors.section.enabled 0 \
5813 --stringparam man.copyright.section.enabled 0 \
5814 --stringparam systemd.version $(VERSION) \
5815 --path '$(builddir)/man:$(srcdir)/man'
5817 XSLTPROC_PROCESS_MAN = \
5818 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5820 XSLTPROC_PROCESS_HTML = \
5821 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5823 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5824 $(XSLTPROC_PROCESS_MAN)
5826 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5827 $(XSLTPROC_PROCESS_MAN)
5829 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5830 $(XSLTPROC_PROCESS_MAN)
5832 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5833 $(XSLTPROC_PROCESS_MAN)
5835 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5836 $(XSLTPROC_PROCESS_MAN)
5838 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5839 $(XSLTPROC_PROCESS_HTML)
5842 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5848 man/custom-html.xsl \
5851 # ------------------------------------------------------------------------------
5854 docs/sysvinit/README
5859 docs/sysvinit/README: docs/sysvinit/README.in
5862 docs/var-log/README: docs/var-log/README.in
5866 docs/sysvinit/README \
5871 docs/sysvinit/README.in \
5872 docs/var-log/README.in
5874 SOCKETS_TARGET_WANTS += \
5875 systemd-initctl.socket \
5876 systemd-shutdownd.socket
5880 RUNLEVEL1_TARGET_WANTS += \
5881 systemd-update-utmp-runlevel.service
5882 RUNLEVEL2_TARGET_WANTS += \
5883 systemd-update-utmp-runlevel.service
5884 RUNLEVEL3_TARGET_WANTS += \
5885 systemd-update-utmp-runlevel.service
5886 RUNLEVEL4_TARGET_WANTS += \
5887 systemd-update-utmp-runlevel.service
5888 RUNLEVEL5_TARGET_WANTS += \
5889 systemd-update-utmp-runlevel.service
5892 SYSINIT_TARGET_WANTS += \
5893 systemd-update-utmp.service
5896 SYSINIT_TARGET_WANTS += \
5897 systemd-update-done.service
5899 LOCAL_FS_TARGET_WANTS += \
5900 systemd-remount-fs.service \
5903 MULTI_USER_TARGET_WANTS += \
5905 systemd-ask-password-wall.path
5907 SYSINIT_TARGET_WANTS += \
5908 dev-hugepages.mount \
5910 sys-kernel-config.mount \
5911 sys-kernel-debug.mount \
5912 sys-fs-fuse-connections.mount \
5913 systemd-sysctl.service \
5914 systemd-ask-password-console.path
5917 SYSTEM_UNIT_ALIASES += \
5918 poweroff.target runlevel0.target \
5919 rescue.target runlevel1.target \
5920 multi-user.target runlevel2.target \
5921 multi-user.target runlevel3.target \
5922 multi-user.target runlevel4.target \
5923 graphical.target runlevel5.target \
5924 reboot.target runlevel6.target
5927 SYSTEM_UNIT_ALIASES += \
5928 graphical.target default.target \
5929 reboot.target ctrl-alt-del.target \
5930 getty@.service autovt@.service
5932 USER_UNIT_ALIASES += \
5933 $(systemunitdir)/shutdown.target shutdown.target \
5934 $(systemunitdir)/sockets.target sockets.target \
5935 $(systemunitdir)/timers.target timers.target \
5936 $(systemunitdir)/paths.target paths.target \
5937 $(systemunitdir)/bluetooth.target bluetooth.target \
5938 $(systemunitdir)/printer.target printer.target \
5939 $(systemunitdir)/sound.target sound.target \
5940 $(systemunitdir)/smartcard.target smartcard.target
5943 USER_UNIT_ALIASES += \
5944 $(systemunitdir)/busnames.target busnames.target
5947 GENERAL_ALIASES += \
5948 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5949 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5950 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5951 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5955 $(systemunitdir)/runlevel1.target.wants \
5956 $(systemunitdir)/runlevel2.target.wants \
5957 $(systemunitdir)/runlevel3.target.wants \
5958 $(systemunitdir)/runlevel4.target.wants \
5959 $(systemunitdir)/runlevel5.target.wants
5963 $(prefix)/lib/modules-load.d \
5964 $(sysconfdir)/modules-load.d \
5965 $(prefix)/lib/systemd/network \
5966 $(sysconfdir)/systemd/network \
5967 $(prefix)/lib/sysctl.d \
5968 $(sysconfdir)/sysctl.d \
5969 $(prefix)/lib/kernel/install.d \
5970 $(sysconfdir)/kernel/install.d \
5971 $(systemshutdowndir) \
5973 $(systemgeneratordir) \
5974 $(usergeneratordir) \
5977 $(pkgsysconfdir)/system \
5978 $(pkgsysconfdir)/system/multi-user.target.wants \
5979 $(pkgsysconfdir)/system/getty.target.wants \
5980 $(pkgsysconfdir)/user \
5981 $(dbussessionservicedir) \
5982 $(sysconfdir)/xdg/systemd
5984 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5986 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5988 install-data-hook: $(INSTALL_DATA_HOOKS)
5990 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5992 clean-local: $(CLEAN_LOCAL_HOOKS)
5993 rm -rf $(abs_srcdir)/install-tree
5994 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5995 $(abs_srcdir)/hwdb/iab.txt
5997 DISTCHECK_CONFIGURE_FLAGS = \
5998 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5999 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6000 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6001 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6002 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6003 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6004 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6005 --with-rootprefix=$$dc_install_base \
6006 --disable-split-usr \
6008 --enable-compat-libs
6011 DISTCHECK_CONFIGURE_FLAGS += \
6012 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6013 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6015 DISTCHECK_CONFIGURE_FLAGS += \
6016 --with-sysvinit-path= \
6017 --with-sysvrcnd-path=
6021 DISTCHECK_CONFIGURE_FLAGS += \
6026 DISTCHECK_CONFIGURE_FLAGS += \
6031 # Require python when making dist
6033 .PHONY: dist-check-python
6036 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6040 dist-check-compat-libs:
6041 if !ENABLE_COMPAT_LIBS
6042 @echo "*** compat-libs must be enabled in order to make dist"
6046 dist: dist-check-python dist-check-compat-libs
6048 # check "broken" platforms limited toolchains for link breakage before we release
6051 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6055 ( cd $(top_srcdir)/hwdb && \
6056 wget -N http://www.linux-usb.org/usb.ids \
6057 http://pci-ids.ucw.cz/v2.2/pci.ids \
6058 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6059 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6062 .PHONY: kdbus-update
6064 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6065 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6069 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6071 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6073 upload: all check dist
6074 scp systemd-$(VERSION).tar.xz $(www_target)
6077 doc-sync: all destdir-sphinx
6078 gtkdoc-rebase --html-dir=docs/libudev/html --online
6079 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6080 gtkdoc-rebase --html-dir=docs/gudev/html --online
6081 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6082 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6083 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6087 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6088 scp man/*.html tango:public/systemd-man/
6090 .PHONY: install-tree
6092 rm -rf $(abs_srcdir)/install-tree
6093 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6094 tree $(abs_srcdir)/install-tree
6096 # Let's run all tests of the test suite, but under valgrind. Let's
6097 # exclude the one perl script we have in there
6098 .PHONY: valgrind-tests
6099 valgrind-tests: $(TESTS)
6100 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6101 if file $$f | grep -q shell; then \
6102 echo -e "$${x}Skipping non-binary $$f"; else \
6103 echo -e "$${x}Running $$f"; \
6104 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6109 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6111 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6112 $(AM_V_GEN)cat $^ > $@
6114 .PHONY: check-api-docs
6115 check-api-docs: exported man
6116 $(AM_V_GEN)for symbol in `cat exported` ; do \
6117 if test -f $(builddir)/man/$$symbol.html ; then \
6118 echo " Symbol $$symbol() is documented." ; \
6120 echo "‣ Symbol $$symbol() lacks documentation." ; \
6124 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6125 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6127 undefined defined: $(ALL_OBJECTS)
6128 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6129 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6130 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6136 .PHONY: check-api-unused
6137 check-api-unused: defined undefined exported
6138 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6140 .PHONY: check-includes
6141 check-includes: $(top_srcdir)/tools/check-includes.pl
6142 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6143 | xargs $(top_srcdir)/tools/check-includes.pl
6146 $(top_srcdir)/tools/check-includes.pl
6148 # Stupid test that everything purported to be exported really is
6149 define generate-sym-test
6150 $(AM_V_at)$(MKDIR_P) $(dir $@)
6151 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6152 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6153 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6154 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6155 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6156 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6157 $(AM_V_at)printf 'return 0; }\n' >> $@
6160 test-libsystemd-sym.c: \
6161 $(top_builddir)/src/libsystemd/libsystemd.sym \
6162 src/systemd/sd-journal.h \
6163 src/systemd/sd-daemon.h \
6164 src/systemd/sd-login.h \
6165 src/systemd/sd-bus.h \
6166 src/systemd/sd-utf8.h \
6167 src/systemd/sd-resolve.h \
6168 src/systemd/sd-path.h
6169 $(generate-sym-test)
6171 test-libudev-sym.c: \
6172 src/libudev/libudev.sym \
6174 $(generate-sym-test)
6176 test_libsystemd_sym_SOURCES = \
6177 test-libsystemd-sym.c
6178 test_libsystemd_sym_LDADD = \
6181 test_libudev_sym_SOURCES = \
6183 test_libudev_sym_CFLAGS = \
6185 -Wno-deprecated-declarations
6186 test_libudev_sym_LDADD = \
6190 $(test_libsystemd_sym_SOURCES) \
6191 $(test_libudev_sym_SOURCES)
6194 test-libsystemd-sym \
6199 cppcheck --enable=all -q $(top_srcdir)
6201 # Used to extract compile flags for YCM.
6206 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u