1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfigdatadir=$(datadir)/pkgconfig
78 pkgconfiglibdir=$(libdir)/pkgconfig
79 polkitpolicydir=$(datadir)/polkit-1/actions
80 bashcompletiondir=@bashcompletiondir@
81 zshcompletiondir=@zshcompletiondir@
82 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
83 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
84 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
85 varlogdir=$(localstatedir)/log
86 systemdstatedir=$(localstatedir)/lib/systemd
87 catalogstatedir=$(systemdstatedir)/catalog
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
152 noinst_PROGRAMS = $(manual_tests) $(tests)
158 udevlibexec_PROGRAMS =
160 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
161 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
162 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165 -include $(top_builddir)/config.h \
166 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
167 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
168 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
169 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
170 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
171 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
172 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
173 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
174 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
175 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
176 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
177 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
178 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
179 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
180 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
181 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
182 -DROOTPREFIX=\"$(rootprefix)\" \
183 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
184 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
185 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
186 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
187 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
188 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
189 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
190 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
191 -DX_SERVER=\"$(bindir)/X\" \
192 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
193 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
194 -DQUOTACHECK=\"$(QUOTACHECK)\" \
195 -DKEXEC=\"$(KEXEC)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DROOTLIBDIR=\"$(rootlibdir)\" \
198 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
199 -I $(top_srcdir)/src \
200 -I $(top_builddir)/src/shared \
201 -I $(top_srcdir)/src/shared \
202 -I $(top_srcdir)/src/network \
203 -I $(top_srcdir)/src/login \
204 -I $(top_srcdir)/src/journal \
205 -I $(top_srcdir)/src/timedate \
206 -I $(top_srcdir)/src/timesync \
207 -I $(top_srcdir)/src/resolve \
208 -I $(top_builddir)/src/resolve \
209 -I $(top_srcdir)/src/systemd \
210 -I $(top_builddir)/src/core \
211 -I $(top_srcdir)/src/core \
212 -I $(top_srcdir)/src/libudev \
213 -I $(top_srcdir)/src/udev \
214 -I $(top_srcdir)/src/udev/net \
215 -I $(top_builddir)/src/udev \
216 -I $(top_srcdir)/src/libsystemd/sd-bus \
217 -I $(top_srcdir)/src/libsystemd/sd-event \
218 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
219 -I $(top_srcdir)/src/libsystemd/sd-network \
220 -I $(top_srcdir)/src/libsystemd-network \
221 -I $(top_srcdir)/src/libsystemd-terminal \
224 AM_CFLAGS = $(OUR_CFLAGS)
225 AM_LDFLAGS = $(OUR_LDFLAGS)
227 # ------------------------------------------------------------------------------
228 define move-to-rootlibdir
229 if test "$(libdir)" != "$(rootlibdir)"; then \
230 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
231 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
232 rm -f $(DESTDIR)$(libdir)/$$libname && \
233 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
234 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
240 RUNLEVEL1_TARGET_WANTS =
241 RUNLEVEL2_TARGET_WANTS =
242 RUNLEVEL3_TARGET_WANTS =
243 RUNLEVEL4_TARGET_WANTS =
244 RUNLEVEL5_TARGET_WANTS =
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 SYSINIT_TARGET_WANTS =
249 SOCKETS_TARGET_WANTS =
250 BUSNAMES_TARGET_WANTS =
251 TIMERS_TARGET_WANTS =
252 USER_SOCKETS_TARGET_WANTS =
253 USER_BUSNAMES_TARGET_WANTS =
255 SYSTEM_UNIT_ALIASES =
259 install-target-wants-hook:
260 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
261 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 install-busnames-target-wants-hook:
275 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
276 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
279 [ -z "$$what" ] || ( \
280 dir=$(DESTDIR)$$dir/$$wants.wants && \
281 $(MKDIR_P) -m 0755 $$dir && \
284 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
287 install-directories-hook:
288 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
290 install-aliases-hook:
291 set -- $(SYSTEM_UNIT_ALIASES) && \
292 dir=$(systemunitdir) && $(install-aliases)
293 set -- $(USER_UNIT_ALIASES) && \
294 dir=$(userunitdir) && $(install-relative-aliases)
295 set -- $(GENERAL_ALIASES) && \
296 dir= && $(install-relative-aliases)
298 define install-aliases
299 while [ -n "$$1" ]; do \
300 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
301 rm -f $(DESTDIR)$$dir/$$2 && \
302 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
303 shift 2 || exit $$?; \
307 define install-relative-aliases
308 while [ -n "$$1" ]; do \
309 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
310 rm -f $(DESTDIR)$$dir/$$2 && \
311 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
312 shift 2 || exit $$?; \
316 install-touch-usr-hook:
317 touch -c $(DESTDIR)/$(prefix)
319 INSTALL_EXEC_HOOKS += \
320 install-target-wants-hook \
321 install-directories-hook \
322 install-aliases-hook \
323 install-touch-usr-hook
326 INSTALL_EXEC_HOOKS += \
327 install-busnames-target-wants-hook
330 # ------------------------------------------------------------------------------
331 AM_V_M4 = $(AM_V_M4_$(V))
332 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
333 AM_V_M4_0 = @echo " M4 " $@;
335 AM_V_XSLT = $(AM_V_XSLT_$(V))
336 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
337 AM_V_XSLT_0 = @echo " XSLT " $@;
339 AM_V_GPERF = $(AM_V_GPERF_$(V))
340 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
341 AM_V_GPERF_0 = @echo " GPERF " $@;
343 AM_V_LN = $(AM_V_LN_$(V))
344 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
345 AM_V_LN_0 = @echo " LN " $@;
347 AM_V_RM = $(AM_V_RM_$(V))
348 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
349 AM_V_RM_0 = @echo " RM " $@;
351 # ------------------------------------------------------------------------------
355 systemd-ask-password \
356 systemd-tty-ask-password-agent \
357 systemd-machine-id-setup \
364 systemd-detect-virt \
371 src/kernel-install/kernel-install
373 dist_kernelinstall_SCRIPTS = \
374 src/kernel-install/50-depmod.install \
375 src/kernel-install/90-loaderentry.install
377 rootlibexec_PROGRAMS = \
379 systemd-cgroups-agent \
384 systemd-reply-password \
390 systemd-socket-proxyd \
394 rootlibexec_PROGRAMS += \
398 systemgenerator_PROGRAMS = \
399 systemd-getty-generator \
400 systemd-fstab-generator \
401 systemd-system-update-generator \
402 systemd-debug-generator
404 dist_bashcompletion_DATA = \
405 shell-completion/bash/busctl \
406 shell-completion/bash/journalctl \
407 shell-completion/bash/systemd-analyze \
408 shell-completion/bash/systemd-cat \
409 shell-completion/bash/systemd-cgls \
410 shell-completion/bash/systemd-cgtop \
411 shell-completion/bash/systemd-delta \
412 shell-completion/bash/systemd-detect-virt \
413 shell-completion/bash/systemd-nspawn \
414 shell-completion/bash/systemd-run \
415 shell-completion/bash/udevadm \
416 shell-completion/bash/kernel-install
418 nodist_bashcompletion_DATA = \
419 shell-completion/bash/systemctl
421 dist_zshcompletion_DATA = \
422 shell-completion/zsh/_journalctl \
423 shell-completion/zsh/_udevadm \
424 shell-completion/zsh/_kernel-install \
425 shell-completion/zsh/_systemd-nspawn \
426 shell-completion/zsh/_systemd-analyze \
427 shell-completion/zsh/_systemd-run \
428 shell-completion/zsh/_sd_hosts_or_user_at_host \
429 shell-completion/zsh/_sd_outputmodes \
430 shell-completion/zsh/_sd_unit_files \
431 shell-completion/zsh/_systemd-delta \
432 shell-completion/zsh/_systemd
434 nodist_zshcompletion_DATA = \
435 shell-completion/zsh/_systemctl
438 shell-completion/bash/systemctl.in \
439 shell-completion/zsh/_systemctl.in
442 $(nodist_bashcompletion_DATA) \
443 $(nodist_zshcompletion_DATA)
446 sysctl.d/50-default.conf
448 dist_systemunit_DATA = \
449 units/graphical.target \
450 units/multi-user.target \
451 units/emergency.target \
452 units/sysinit.target \
457 units/local-fs.target \
458 units/local-fs-pre.target \
459 units/initrd.target \
460 units/initrd-fs.target \
461 units/initrd-root-fs.target \
462 units/remote-fs.target \
463 units/remote-fs-pre.target \
464 units/network.target \
465 units/network-pre.target \
466 units/network-online.target \
467 units/nss-lookup.target \
468 units/nss-user-lookup.target \
469 units/poweroff.target \
470 units/reboot.target \
471 units/rescue.target \
472 units/rpcbind.target \
473 units/time-sync.target \
474 units/shutdown.target \
476 units/umount.target \
477 units/sigpwr.target \
479 units/sockets.target \
480 units/timers.target \
482 units/suspend.target \
484 units/slices.target \
487 units/systemd-initctl.socket \
488 units/systemd-shutdownd.socket \
489 units/syslog.socket \
490 units/dev-hugepages.mount \
491 units/dev-mqueue.mount \
492 units/sys-kernel-config.mount \
493 units/sys-kernel-debug.mount \
494 units/sys-fs-fuse-connections.mount \
496 units/printer.target \
498 units/bluetooth.target \
499 units/smartcard.target \
500 units/systemd-ask-password-wall.path \
501 units/systemd-ask-password-console.path \
502 units/systemd-udevd-control.socket \
503 units/systemd-udevd-kernel.socket \
504 units/system-update.target \
505 units/initrd-switch-root.target
508 dist_systemunit_DATA += \
509 $(dist_systemunit_DATA_busnames)
512 dist_systemunit_DATA_busnames += \
513 units/busnames.target
515 nodist_systemunit_DATA = \
516 units/getty@.service \
517 units/serial-getty@.service \
518 units/console-shell.service \
519 units/console-getty.service \
520 units/container-getty@.service \
521 units/systemd-initctl.service \
522 units/systemd-shutdownd.service \
523 units/systemd-remount-fs.service \
524 units/systemd-ask-password-wall.service \
525 units/systemd-ask-password-console.service \
526 units/systemd-sysctl.service \
527 units/emergency.service \
528 units/rescue.service \
529 units/user@.service \
530 units/systemd-suspend.service \
531 units/systemd-halt.service \
532 units/systemd-poweroff.service \
533 units/systemd-reboot.service \
534 units/systemd-kexec.service \
535 units/systemd-fsck@.service \
536 units/systemd-fsck-root.service \
537 units/systemd-udevd.service \
538 units/systemd-udev-trigger.service \
539 units/systemd-udev-settle.service \
540 units/systemd-udev-hwdb-update.service \
541 units/debug-shell.service \
542 units/initrd-parse-etc.service \
543 units/initrd-cleanup.service \
544 units/initrd-udevadm-cleanup-db.service \
545 units/initrd-switch-root.service \
546 units/systemd-nspawn@.service \
547 units/systemd-update-done.service
550 nodist_systemunit_DATA += \
551 units/systemd-update-utmp.service \
552 units/systemd-update-utmp-runlevel.service
555 dist_userunit_DATA = \
556 units/user/basic.target \
557 units/user/default.target \
558 units/user/exit.target
560 nodist_userunit_DATA = \
561 units/user/systemd-exit.service
563 dist_systempreset_DATA = \
564 system-preset/90-systemd.preset
567 units/getty@.service.m4 \
568 units/serial-getty@.service.m4 \
569 units/console-shell.service.m4.in \
570 units/console-getty.service.m4.in \
571 units/container-getty@.service.m4.in \
572 units/rescue.service.in \
573 units/systemd-initctl.service.in \
574 units/systemd-shutdownd.service.in \
575 units/systemd-remount-fs.service.in \
576 units/systemd-update-utmp.service.in \
577 units/systemd-update-utmp-runlevel.service.in \
578 units/systemd-ask-password-wall.service.in \
579 units/systemd-ask-password-console.service.in \
580 units/systemd-sysctl.service.in \
581 units/emergency.service.in \
582 units/systemd-halt.service.in \
583 units/systemd-poweroff.service.in \
584 units/systemd-reboot.service.in \
585 units/systemd-kexec.service.in \
586 units/user/systemd-exit.service.in \
587 units/systemd-fsck@.service.in \
588 units/systemd-fsck-root.service.in \
589 units/user@.service.in \
590 units/debug-shell.service.in \
591 units/systemd-suspend.service.in \
592 units/quotaon.service.in \
593 units/initrd-parse-etc.service.in \
594 units/initrd-cleanup.service.in \
595 units/initrd-udevadm-cleanup-db.service.in \
596 units/initrd-switch-root.service.in \
597 units/systemd-nspawn@.service.in \
598 units/systemd-update-done.service.in
601 units/console-shell.service.m4 \
602 units/console-getty.service.m4 \
603 units/container-getty@.service.m4 \
604 units/user@.service.m4
607 nodist_systemunit_DATA += \
608 units/rc-local.service \
609 units/halt-local.service
611 systemgenerator_PROGRAMS += \
612 systemd-sysv-generator \
613 systemd-rc-local-generator
617 units/rc-local.service.in \
618 units/halt-local.service.in
620 # automake is broken and can't handle files with a dash in front
621 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
623 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
625 units-uninstall-hook:
626 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
628 INSTALL_DATA_HOOKS += units-install-hook
629 UNINSTALL_DATA_HOOKS += units-uninstall-hook
638 src/libsystemd/sd-bus/PORTING-DBUS1 \
639 src/libsystemd/sd-bus/DIFFERENCES \
640 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
642 @INTLTOOL_POLICY_RULE@
644 # ------------------------------------------------------------------------------
649 include Makefile-man.am
651 .PHONY: man update-man-list
652 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
655 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
657 ${XML_FILES:.xml=.html}
659 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
676 $(AM_V_at)$(MKDIR_P) $(dir $@)
677 $(AM_V_LN)$(LN_S) -f ../../man $@
686 man/index.html: man/systemd.index.html
687 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
695 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
696 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
697 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
699 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
700 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
701 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
702 @echo "Makefile-man.am has been regenerated"
704 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
705 $(AM_V_at)$(MKDIR_P) $(dir $@)
706 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
708 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
709 $(AM_V_at)$(MKDIR_P) $(dir $@)
710 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
713 man/systemd.index.xml \
715 man/systemd.directives.xml \
716 man/glib-event-glue.c
719 man/systemd.index.xml \
720 man/systemd.directives.xml
731 tools/make-man-index.py \
732 tools/make-directive-index.py \
735 # ------------------------------------------------------------------------------
736 noinst_LTLIBRARIES += \
739 libsystemd_shared_la_SOURCES = \
740 src/shared/linux/auto_dev-ioctl.h \
741 src/shared/linux/fanotify.h \
742 src/shared/ioprio.h \
743 src/shared/missing.h \
744 src/shared/initreq.h \
745 src/shared/securebits.h \
746 src/shared/special.h \
750 src/shared/sparse-endian.h \
751 src/shared/refcnt.h \
752 src/shared/udev-util.h \
753 src/shared/bus-errors.h \
754 src/shared/device-nodes.c \
755 src/shared/device-nodes.h \
760 src/shared/architecture.c \
761 src/shared/architecture.h \
762 src/shared/efivars.c \
763 src/shared/efivars.h \
764 src/shared/path-util.c \
765 src/shared/path-util.h \
766 src/shared/time-util.c \
767 src/shared/time-util.h \
768 src/shared/locale-util.c \
769 src/shared/locale-util.h \
770 src/shared/hashmap.c \
771 src/shared/hashmap.h \
772 src/shared/siphash24.c \
773 src/shared/siphash24.h \
780 src/shared/sleep-config.c \
781 src/shared/sleep-config.h \
784 src/shared/env-util.c \
785 src/shared/env-util.h \
786 src/shared/strbuf.c \
787 src/shared/strbuf.h \
788 src/shared/strxcpyx.c \
789 src/shared/strxcpyx.h \
790 src/shared/conf-parser.c \
791 src/shared/conf-parser.h \
794 src/shared/ratelimit.h \
795 src/shared/ratelimit.c \
796 src/shared/exit-status.c \
797 src/shared/exit-status.h \
800 src/shared/gunicode.c \
801 src/shared/gunicode.h \
804 src/shared/socket-util.c \
805 src/shared/socket-util.h \
806 src/shared/in-addr-util.c \
807 src/shared/in-addr-util.h \
808 src/shared/conf-files.c \
809 src/shared/conf-files.h \
810 src/shared/cgroup-util.c \
811 src/shared/cgroup-util.h \
812 src/shared/cgroup-show.c \
813 src/shared/cgroup-show.h \
814 src/shared/unit-name.c \
815 src/shared/unit-name.h \
816 src/shared/utmp-wtmp.h \
817 src/shared/watchdog.c \
818 src/shared/watchdog.h \
819 src/shared/spawn-ask-password-agent.c \
820 src/shared/spawn-ask-password-agent.h \
821 src/shared/replace-var.c \
822 src/shared/replace-var.h \
823 src/shared/spawn-polkit-agent.c \
824 src/shared/spawn-polkit-agent.h \
825 src/shared/clock-util.c \
826 src/shared/clock-util.h \
827 src/shared/time-dst.c \
828 src/shared/time-dst.h \
829 src/shared/calendarspec.c \
830 src/shared/calendarspec.h \
831 src/shared/fileio.c \
832 src/shared/fileio.h \
833 src/shared/output-mode.h \
834 src/shared/MurmurHash2.c \
835 src/shared/MurmurHash2.h \
836 src/shared/acpi-fpdt.h \
837 src/shared/acpi-fpdt.c \
838 src/shared/boot-timestamps.h \
839 src/shared/boot-timestamps.c \
842 src/shared/smack-util.c \
843 src/shared/smack-util.h \
844 src/shared/apparmor-util.c \
845 src/shared/apparmor-util.h \
846 src/shared/ima-util.c \
847 src/shared/ima-util.h \
848 src/shared/ptyfwd.c \
849 src/shared/ptyfwd.h \
850 src/shared/errno-list.c \
851 src/shared/errno-list.h \
852 src/shared/af-list.c \
853 src/shared/af-list.h \
854 src/shared/arphrd-list.c \
855 src/shared/arphrd-list.h \
860 src/shared/condition-util.c \
861 src/shared/condition-util.h \
862 src/shared/bus-label.c \
863 src/shared/bus-label.h \
865 src/shared/clean-ipc.h \
866 src/shared/clean-ipc.c \
867 src/shared/login-shared.c \
868 src/shared/login-shared.h \
871 src/shared/barrier.c \
872 src/shared/barrier.h \
879 src/shared/base-filesystem.c \
880 src/shared/base-filesystem.h \
883 src/shared/uid-range.c \
884 src/shared/uid-range.h \
885 src/shared/switch-root.h \
886 src/shared/switch-root.c \
887 src/shared/nss-util.h
890 libsystemd_shared_la_SOURCES += \
891 src/shared/utmp-wtmp.c
894 nodist_libsystemd_shared_la_SOURCES = \
895 src/shared/errno-from-name.h \
896 src/shared/errno-to-name.h \
897 src/shared/af-from-name.h \
898 src/shared/af-to-name.h \
899 src/shared/arphrd-from-name.h \
900 src/shared/arphrd-to-name.h
902 libsystemd_shared_la_CFLAGS = \
907 # ------------------------------------------------------------------------------
908 noinst_LTLIBRARIES += \
911 libsystemd_units_la_SOURCES = \
912 src/shared/install.c \
913 src/shared/install.h \
914 src/shared/install-printf.c \
915 src/shared/install-printf.h \
916 src/shared/path-lookup.c \
917 src/shared/path-lookup.h \
918 src/shared/specifier.c \
919 src/shared/specifier.h
921 # ------------------------------------------------------------------------------
922 noinst_LTLIBRARIES += \
925 libsystemd_label_la_SOURCES = \
926 src/shared/socket-label.c \
929 src/shared/selinux-util.c \
930 src/shared/selinux-util.h \
931 src/shared/mkdir-label.c \
932 src/shared/ask-password-api.c \
933 src/shared/ask-password-api.h \
934 src/shared/fileio-label.c \
935 src/shared/fileio-label.h \
936 src/shared/dev-setup.c \
937 src/shared/dev-setup.h \
938 src/shared/dropin.c \
939 src/shared/dropin.h \
940 src/shared/generator.h \
941 src/shared/generator.c
943 libsystemd_label_la_CFLAGS = \
947 libsystemd_label_la_LIBADD = \
950 # -----------------------------------------------------------------------------
953 dist_systemunit_DATA += \
954 units/ldconfig.service
956 SYSINIT_TARGET_WANTS += \
960 # ------------------------------------------------------------------------------
963 noinst_LTLIBRARIES += \
964 libsystemd-seccomp.la
966 libsystemd_seccomp_la_SOURCES = \
967 src/shared/seccomp-util.h \
968 src/shared/seccomp-util.c
970 libsystemd_seccomp_la_CFLAGS = \
974 libsystemd_seccomp_la_LIBADD = \
978 # ------------------------------------------------------------------------------
979 noinst_LTLIBRARIES += \
982 libsystemd_logs_la_SOURCES = \
983 src/shared/logs-show.c \
984 src/shared/logs-show.h
986 # ------------------------------------------------------------------------------
987 noinst_LTLIBRARIES += \
988 libsystemd-capability.la
990 libsystemd_capability_la_SOURCES = \
991 src/shared/capability.c \
992 src/shared/capability.h
994 libsystemd_capability_la_CFLAGS = \
998 libsystemd_capability_la_LIBADD = \
1001 # ------------------------------------------------------------------------------
1003 noinst_LTLIBRARIES += \
1006 libsystemd_acl_la_SOURCES = \
1007 src/shared/acl-util.c \
1008 src/shared/acl-util.h
1010 libsystemd_acl_la_CFLAGS = \
1014 libsystemd_acl_la_LIBADD = \
1018 # ------------------------------------------------------------------------------
1019 noinst_LTLIBRARIES += \
1022 libsystemd_core_la_SOURCES = \
1025 src/core/unit-printf.c \
1026 src/core/unit-printf.h \
1029 src/core/manager.c \
1030 src/core/manager.h \
1031 src/core/transaction.c \
1032 src/core/transaction.h \
1033 src/core/load-fragment.c \
1034 src/core/load-fragment.h \
1035 src/core/service.c \
1036 src/core/service.h \
1039 src/core/busname.c \
1040 src/core/busname.h \
1041 src/core/bus-common.c \
1042 src/core/bus-common.h \
1043 src/core/bus-endpoint.c \
1044 src/core/bus-endpoint.h \
1047 src/core/snapshot.c \
1048 src/core/snapshot.h \
1053 src/core/automount.c \
1054 src/core/automount.h \
1065 src/core/load-dropin.c \
1066 src/core/load-dropin.h \
1067 src/core/execute.c \
1068 src/core/execute.h \
1073 src/core/dbus-manager.c \
1074 src/core/dbus-manager.h \
1075 src/core/dbus-unit.c \
1076 src/core/dbus-unit.h \
1077 src/core/dbus-job.c \
1078 src/core/dbus-job.h \
1079 src/core/dbus-service.c \
1080 src/core/dbus-service.h \
1081 src/core/dbus-socket.c \
1082 src/core/dbus-socket.h \
1083 src/core/dbus-busname.c \
1084 src/core/dbus-busname.h \
1085 src/core/dbus-target.c \
1086 src/core/dbus-target.h \
1087 src/core/dbus-snapshot.c \
1088 src/core/dbus-snapshot.h \
1089 src/core/dbus-device.c \
1090 src/core/dbus-device.h \
1091 src/core/dbus-mount.c \
1092 src/core/dbus-mount.h \
1093 src/core/dbus-automount.c \
1094 src/core/dbus-automount.h \
1095 src/core/dbus-swap.c \
1096 src/core/dbus-swap.h \
1097 src/core/dbus-timer.c \
1098 src/core/dbus-timer.h \
1099 src/core/dbus-path.c \
1100 src/core/dbus-path.h \
1101 src/core/dbus-slice.c \
1102 src/core/dbus-slice.h \
1103 src/core/dbus-scope.c \
1104 src/core/dbus-scope.h \
1105 src/core/dbus-execute.c \
1106 src/core/dbus-execute.h \
1107 src/core/dbus-kill.c \
1108 src/core/dbus-kill.h \
1109 src/core/dbus-cgroup.c \
1110 src/core/dbus-cgroup.h \
1113 src/core/selinux-access.c \
1114 src/core/selinux-access.h \
1115 src/core/selinux-setup.c \
1116 src/core/selinux-setup.h \
1117 src/core/smack-setup.c \
1118 src/core/smack-setup.h \
1119 src/core/ima-setup.c \
1120 src/core/ima-setup.h \
1121 src/core/locale-setup.h \
1122 src/core/locale-setup.c \
1123 src/core/hostname-setup.c \
1124 src/core/hostname-setup.h \
1125 src/core/machine-id-setup.c \
1126 src/core/machine-id-setup.h \
1127 src/core/mount-setup.c \
1128 src/core/mount-setup.h \
1129 src/core/loopback-setup.h \
1130 src/core/loopback-setup.c \
1131 src/core/condition.c \
1132 src/core/condition.h \
1133 src/core/namespace.c \
1134 src/core/namespace.h \
1136 src/core/sysfs-show.h \
1137 src/core/killall.h \
1138 src/core/killall.c \
1139 src/core/audit-fd.c \
1140 src/core/audit-fd.h \
1141 src/core/show-status.c \
1142 src/core/show-status.h \
1143 src/core/failure-action.c \
1144 src/core/failure-action.h
1147 libsystemd_core_la_SOURCES += \
1148 src/core/kmod-setup.c \
1149 src/core/kmod-setup.h
1152 nodist_libsystemd_core_la_SOURCES = \
1153 src/core/load-fragment-gperf.c \
1154 src/core/load-fragment-gperf-nulstr.c
1156 libsystemd_core_la_CFLAGS = \
1162 $(APPARMOR_CFLAGS) \
1166 libsystemd_core_la_LIBADD = \
1167 libsystemd-capability.la \
1168 libsystemd-units.la \
1169 libsystemd-label.la \
1170 libudev-internal.la \
1171 libsystemd-shared.la \
1172 libsystemd-internal.la \
1181 libsystemd_core_la_LIBADD += \
1182 libsystemd-seccomp.la
1185 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1186 $(AM_V_at)$(MKDIR_P) $(dir $@)
1187 $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
1190 src/core/load-fragment-gperf.gperf.m4
1193 src/core/load-fragment-gperf.gperf \
1194 src/core/load-fragment-gperf.c \
1195 src/core/load-fragment-gperf-nulstr.c \
1196 src/shared/errno-list.txt \
1197 src/shared/errno-from-name.gperf \
1198 src/shared/af-list.txt \
1199 src/shared/af-from-name.gperf \
1200 src/shared/arphrd-list.txt \
1201 src/shared/arphrd-from-name.gperf \
1202 src/shared/dns_type-list.txt \
1203 src/shared/dns_type-from-name.gperf
1206 src/shared/errno-from-name.h \
1207 src/shared/errno-to-name.h \
1208 src/shared/af-from-name.h \
1209 src/shared/af-to-name.h \
1210 src/shared/arphrd-from-name.h \
1211 src/shared/arphrd-to-name.h \
1212 src/resolve/dns_type-from-name.h \
1213 src/resolve/dns_type-to-name.h
1215 %-from-name.gperf: %-list.txt
1216 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1218 %-from-name.h: %-from-name.gperf
1219 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1222 src/shared/errno-list.txt:
1223 $(AM_V_at)$(MKDIR_P) $(dir $@)
1224 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1226 src/shared/errno-to-name.h: src/shared/errno-list.txt
1227 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1230 src/shared/af-list.txt:
1231 $(AM_V_at)$(MKDIR_P) $(dir $@)
1232 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1234 src/shared/af-to-name.h: src/shared/af-list.txt
1235 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1237 src/shared/arphrd-list.txt:
1238 $(AM_V_at)$(MKDIR_P) $(dir $@)
1239 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1241 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1242 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1244 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1245 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1248 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1249 $(AM_V_at)$(MKDIR_P) $(dir $@)
1250 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1252 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1253 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1255 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1256 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1258 # ------------------------------------------------------------------------------
1267 libsystemd-core.la \
1270 dist_pkgsysconf_DATA += \
1271 src/core/system.conf \
1274 dist_dbuspolicy_DATA += \
1275 src/core/org.freedesktop.systemd1.conf
1277 dist_dbussystemservice_DATA += \
1278 src/core/org.freedesktop.systemd1.service
1280 polkitpolicy_in_in_files += \
1281 src/core/org.freedesktop.systemd1.policy.in.in
1283 pkgconfigdata_DATA = \
1286 nodist_rpmmacros_DATA = \
1287 src/core/macros.systemd
1290 src/core/systemd.pc.in \
1291 src/core/macros.systemd.in
1294 src/core/macros.systemd \
1295 src/core/org.freedesktop.systemd1.policy.in
1297 # ------------------------------------------------------------------------------
1339 test-strip-tab-ansi \
1357 test-condition-util \
1366 test/daughter.service \
1371 test/grandchild.service \
1373 test/hello-after-sleep.target \
1374 test/hello.service \
1376 test/parent-deep.slice \
1379 test/sched_idle_bad.service \
1380 test/sched_idle_ok.service \
1381 test/sched_rr_bad.service \
1382 test/sched_rr_change.service \
1383 test/sched_rr_ok.service \
1384 test/shutdown.target \
1385 test/sleep.service \
1386 test/sockets.target \
1388 test/sysinit.target \
1389 test/testsuite.target \
1390 test/timers.target \
1391 test/unstoppable.service \
1392 test/bus-policy/hello.conf \
1393 test/bus-policy/methods.conf \
1394 test/bus-policy/ownerships.conf \
1395 test/bus-policy/signals.conf
1399 src/test/test-helper.h
1401 test_device_nodes_SOURCES = \
1402 src/test/test-device-nodes.c
1404 test_device_nodes_LDADD = \
1405 libsystemd-shared.la
1407 test_engine_SOURCES = \
1408 src/test/test-engine.c
1410 test_engine_CFLAGS = \
1414 test_engine_LDADD = \
1415 libsystemd-core.la \
1418 test_job_type_SOURCES = \
1419 src/test/test-job-type.c
1421 test_job_type_CFLAGS = \
1425 test_job_type_LDADD = \
1426 libsystemd-core.la \
1439 test_loopback_SOURCES = \
1440 src/test/test-loopback.c
1442 test_loopback_LDADD = \
1445 test_hostname_SOURCES = \
1446 src/test/test-hostname.c
1448 test_hostname_LDADD = \
1455 test_boot_timestamp_SOURCES = \
1456 src/test/test-boot-timestamps.c
1458 test_boot_timestamp_LDADD = \
1459 libsystemd-shared.la
1462 test_unit_name_SOURCES = \
1463 src/test/test-unit-name.c
1465 test_unit_name_CFLAGS = \
1469 test_unit_name_LDADD = \
1470 libsystemd-core.la \
1473 test_unit_file_SOURCES = \
1474 src/test/test-unit-file.c
1476 test_unit_file_CFLAGS = \
1480 test_unit_file_LDADD = \
1481 libsystemd-core.la \
1484 test_utf8_SOURCES = \
1485 src/test/test-utf8.c
1488 libsystemd-shared.la
1490 test_capability_SOURCES = \
1491 src/test/test-capability.c
1493 test_capability_LDADD = \
1494 libsystemd-shared.la \
1495 libsystemd-capability.la
1497 test_async_SOURCES = \
1498 src/test/test-async.c
1500 test_async_LDADD = \
1501 libsystemd-shared.la
1503 test_condition_util_SOURCES = \
1504 src/test/test-condition-util.c
1506 test_condition_util_LDADD = \
1507 libsystemd-shared.la \
1508 libsystemd-internal.la
1511 test_fdset_SOURCES = \
1512 src/test/test-fdset.c
1514 test_fdset_LDADD = \
1517 test_ratelimit_SOURCES = \
1518 src/test/test-ratelimit.c
1520 test_ratelimit_LDADD = \
1521 libsystemd-shared.la
1523 test_util_SOURCES = \
1524 src/test/test-util.c
1529 test_uid_range_SOURCES = \
1530 src/test/test-uid-range.c
1532 test_uid_range_LDADD = \
1535 test_socket_util_SOURCES = \
1536 src/test/test-socket-util.c
1538 test_socket_util_LDADD = \
1541 test_ring_SOURCES = \
1542 src/test/test-ring.c
1547 test_barrier_SOURCES = \
1548 src/test/test-barrier.c
1550 test_barrier_LDADD = \
1553 test_pty_SOURCES = \
1559 test_tmpfiles_SOURCES = \
1560 src/test/test-tmpfiles.c
1562 test_tmpfiles_LDADD = \
1563 libsystemd-shared.la
1565 test_namespace_SOURCES = \
1566 src/test/test-namespace.c
1568 test_namespace_LDADD = \
1571 test_hashmap_SOURCES = \
1572 src/test/test-hashmap.c
1574 test_hashmap_LDADD = \
1577 test_set_SOURCES = \
1583 test_xml_SOURCES = \
1587 libsystemd-shared.la
1589 test_list_SOURCES = \
1590 src/test/test-list.c
1595 test_tables_SOURCES = \
1596 src/test/test-tables.c \
1597 src/shared/test-tables.h \
1598 src/bus-proxyd/bus-policy.c \
1599 src/bus-proxyd/bus-policy.h \
1600 src/journal/journald-server.c \
1601 src/journal/journald-server.h
1603 test_tables_CPPFLAGS = \
1605 -I$(top_srcdir)/src/bus-proxyd
1607 test_tables_CFLAGS = \
1611 test_tables_LDADD = \
1612 libsystemd-logs.la \
1613 libsystemd-journal-internal.la \
1614 libsystemd-journal-core.la \
1615 libsystemd-core.la \
1619 test_prioq_SOURCES = \
1620 src/test/test-prioq.c
1622 test_prioq_LDADD = \
1625 test_fileio_SOURCES = \
1626 src/test/test-fileio.c
1628 test_fileio_LDADD = \
1631 test_time_SOURCES = \
1632 src/test/test-time.c
1637 test_architecture_SOURCES = \
1638 src/test/test-architecture.c
1640 test_architecture_LDADD = \
1641 libsystemd-shared.la
1643 test_log_SOURCES = \
1649 test_ipcrm_SOURCES = \
1650 src/test/test-ipcrm.c
1652 test_ipcrm_LDADD = \
1653 libsystemd-shared.la \
1656 test_rtnl_manual_SOURCES = \
1657 src/test/test-rtnl-manual.c
1659 test_rtnl_manual_CFLAGS = \
1663 test_rtnl_manual_LDADD = \
1664 libsystemd-internal.la \
1665 libsystemd-shared.la \
1668 test_ellipsize_SOURCES = \
1669 src/test/test-ellipsize.c
1671 test_ellipsize_LDADD = \
1674 test_date_SOURCES = \
1675 src/test/test-date.c
1680 test_sleep_SOURCES = \
1681 src/test/test-sleep.c
1683 test_sleep_LDADD = \
1686 test_replace_var_SOURCES = \
1687 src/test/test-replace-var.c
1689 test_replace_var_LDADD = \
1690 libsystemd-shared.la
1692 test_calendarspec_SOURCES = \
1693 src/test/test-calendarspec.c
1695 test_calendarspec_LDADD = \
1696 libsystemd-shared.la
1698 test_strip_tab_ansi_SOURCES = \
1699 src/test/test-strip-tab-ansi.c
1701 test_strip_tab_ansi_LDADD = \
1702 libsystemd-shared.la
1704 test_daemon_SOURCES = \
1705 src/test/test-daemon.c
1707 test_daemon_LDADD = \
1708 libsystemd-internal.la \
1709 libsystemd-shared.la
1711 test_cgroup_SOURCES = \
1712 src/test/test-cgroup.c
1714 test_cgroup_LDADD = \
1715 libsystemd-label.la \
1716 libsystemd-shared.la \
1717 libsystemd-internal.la
1719 test_cgroup_mask_SOURCES = \
1720 src/test/test-cgroup-mask.c
1722 test_cgroup_mask_CPPFLAGS = \
1724 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1726 test_cgroup_mask_CFLAGS = \
1730 test_cgroup_mask_LDADD = \
1731 libsystemd-core.la \
1734 test_cgroup_util_SOURCES = \
1735 src/test/test-cgroup-util.c
1737 test_cgroup_util_LDADD = \
1738 libsystemd-label.la \
1739 libsystemd-internal.la \
1740 libsystemd-shared.la
1742 test_env_replace_SOURCES = \
1743 src/test/test-env-replace.c
1745 test_env_replace_LDADD = \
1746 libsystemd-shared.la
1748 test_strbuf_SOURCES = \
1749 src/test/test-strbuf.c
1751 test_strbuf_LDADD = \
1752 libsystemd-shared.la
1754 test_strv_SOURCES = \
1755 src/test/test-strv.c
1758 libsystemd-units.la \
1759 libsystemd-internal.la \
1760 libsystemd-shared.la
1762 test_path_util_SOURCES = \
1763 src/test/test-path-util.c
1765 test_path_util_LDADD = \
1766 libsystemd-shared.la
1768 test_strxcpyx_SOURCES = \
1769 src/test/test-strxcpyx.c
1771 test_strxcpyx_LDADD = \
1772 libsystemd-shared.la
1774 test_install_SOURCES = \
1775 src/test/test-install.c
1777 test_install_LDADD = \
1778 libsystemd-units.la \
1779 libsystemd-label.la \
1780 libsystemd-shared.la \
1781 libsystemd-internal.la
1783 test_watchdog_SOURCES = \
1784 src/test/test-watchdog.c
1786 test_watchdog_LDADD = \
1787 libsystemd-shared.la
1789 test_sched_prio_SOURCES = \
1790 src/test/test-sched-prio.c
1792 test_sched_prio_CPPFLAGS = \
1794 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1796 test_sched_prio_CFLAGS = \
1800 test_sched_prio_LDADD = \
1801 libsystemd-core.la \
1804 test_conf_files_SOURCES = \
1805 src/test/test-conf-files.c
1807 test_conf_files_LDADD = \
1808 libsystemd-shared.la
1810 test_bus_policy_SOURCES = \
1811 src/bus-proxyd/test-bus-policy.c \
1812 src/bus-proxyd/bus-policy.c \
1813 src/bus-proxyd/bus-policy.h
1815 test_bus_policy_LDADD = \
1816 libsystemd-capability.la \
1817 libsystemd-internal.la \
1818 libsystemd-shared.la
1820 # ------------------------------------------------------------------------------
1821 ## .PHONY so it always rebuilds it
1822 .PHONY: coverage lcov-run lcov-report coverage-sync
1824 # run lcov from scratch, always
1829 coverage_dir = coverage
1830 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1833 # reset run coverage tests
1835 @rm -rf $(coverage_dir)
1836 lcov $(coverage_opts) --zerocounters
1839 # generate report based on current coverage data
1841 $(MKDIR_P) $(coverage_dir)
1842 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1843 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1844 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1845 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1847 # lcov doesn't work properly with vpath builds, make sure that bad
1848 # output is not uploaded by mistake.
1849 coverage-sync: coverage
1850 test "$(builddir)" = "$(srcdir)"
1851 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1854 lcov-run lcov-report:
1855 echo "Need to reconfigure with --enable-coverage"
1858 # ------------------------------------------------------------------------------
1859 systemd_analyze_SOURCES = \
1860 src/analyze/analyze.c \
1861 src/analyze/analyze-verify.c \
1862 src/analyze/analyze-verify.h
1864 systemd_verify_CFLAGS = \
1868 systemd_analyze_LDADD = \
1869 libsystemd-core.la \
1870 libsystemd-internal.la \
1871 libsystemd-shared.la \
1874 # ------------------------------------------------------------------------------
1875 systemd_initctl_SOURCES = \
1876 src/initctl/initctl.c
1878 systemd_initctl_LDADD = \
1879 libsystemd-internal.la \
1880 libsystemd-shared.la
1882 # ------------------------------------------------------------------------------
1883 systemd_update_utmp_SOURCES = \
1884 src/update-utmp/update-utmp.c
1886 systemd_update_utmp_CFLAGS = \
1890 systemd_update_utmp_LDADD = \
1891 libsystemd-internal.la \
1892 libsystemd-shared.la \
1895 # ------------------------------------------------------------------------------
1896 systemd_update_done_SOURCES = \
1897 src/update-done/update-done.c
1899 systemd_update_done_LDADD = \
1900 libsystemd-internal.la \
1901 libsystemd-label.la \
1902 libsystemd-shared.la
1904 # ------------------------------------------------------------------------------
1905 systemd_shutdownd_SOURCES = \
1906 src/shutdownd/shutdownd.c
1908 systemd_shutdownd_LDADD = \
1909 libsystemd-label.la \
1910 libsystemd-internal.la \
1911 libsystemd-shared.la
1914 src/systemd/sd-shutdown.h
1916 # ------------------------------------------------------------------------------
1917 systemd_shutdown_SOURCES = \
1920 src/core/shutdown.c \
1921 src/core/mount-setup.c \
1922 src/core/mount-setup.h \
1923 src/core/killall.h \
1926 systemd_shutdown_LDADD = \
1927 libsystemd-label.la \
1928 libudev-internal.la \
1929 libsystemd-shared.la
1931 # ------------------------------------------------------------------------------
1933 systemd_modules_load_SOURCES = \
1934 src/modules-load/modules-load.c
1936 systemd_modules_load_CFLAGS = \
1940 systemd_modules_load_LDADD = \
1941 libsystemd-shared.la \
1944 rootlibexec_PROGRAMS += \
1945 systemd-modules-load
1947 nodist_systemunit_DATA += \
1948 units/systemd-modules-load.service
1950 SYSINIT_TARGET_WANTS += \
1951 systemd-modules-load.service
1954 nodist_systemunit_DATA += \
1955 units/kmod-static-nodes.service
1957 SYSINIT_TARGET_WANTS += \
1958 kmod-static-nodes.service
1963 units/systemd-modules-load.service.in \
1964 units/kmod-static-nodes.service.in
1966 # ------------------------------------------------------------------------------
1968 systemd_tmpfiles_SOURCES = \
1969 src/tmpfiles/tmpfiles.c
1971 systemd_tmpfiles_LDADD = \
1972 libsystemd-units.la \
1973 libsystemd-label.la \
1974 libsystemd-capability.la \
1975 libsystemd-internal.la \
1976 libsystemd-shared.la
1978 rootbin_PROGRAMS += \
1981 dist_systemunit_DATA += \
1982 units/systemd-tmpfiles-clean.timer
1984 nodist_systemunit_DATA += \
1985 units/systemd-tmpfiles-setup-dev.service \
1986 units/systemd-tmpfiles-setup.service \
1987 units/systemd-tmpfiles-clean.service
1989 nodist_tmpfiles_DATA = \
1992 dist_tmpfiles_DATA = \
1993 tmpfiles.d/systemd.conf \
1994 tmpfiles.d/systemd-nologin.conf \
1995 tmpfiles.d/systemd-remote.conf \
1996 tmpfiles.d/tmp.conf \
1997 tmpfiles.d/x11.conf \
2001 dist_tmpfiles_DATA += \
2002 tmpfiles.d/legacy.conf
2005 SYSINIT_TARGET_WANTS += \
2006 systemd-tmpfiles-setup-dev.service \
2007 systemd-tmpfiles-setup.service
2009 dist_zshcompletion_DATA += \
2010 shell-completion/zsh/_systemd-tmpfiles
2012 TIMERS_TARGET_WANTS += \
2013 systemd-tmpfiles-clean.timer
2017 $(sysconfdir)/tmpfiles.d
2021 tmpfiles.d/etc.conf.m4 \
2022 units/systemd-tmpfiles-setup-dev.service.in \
2023 units/systemd-tmpfiles-setup.service.in \
2024 units/systemd-tmpfiles-clean.service.in
2029 # ------------------------------------------------------------------------------
2031 systemd_sysusers_SOURCES = \
2032 src/sysusers/sysusers.c
2034 systemd_sysusers_LDADD = \
2035 libsystemd-units.la \
2036 libsystemd-label.la \
2037 libsystemd-capability.la \
2038 libsystemd-internal.la \
2039 libsystemd-shared.la
2041 rootbin_PROGRAMS += \
2044 nodist_systemunit_DATA += \
2045 units/systemd-sysusers.service
2047 SYSINIT_TARGET_WANTS += \
2048 systemd-sysusers.service
2050 dist_sysusers_DATA = \
2051 sysusers.d/systemd.conf \
2052 sysusers.d/systemd-remote.conf
2054 nodist_sysusers_DATA = \
2055 sysusers.d/basic.conf
2058 units/systemd-sysusers.service.in \
2059 sysusers.d/basic.conf.in
2062 sysusers.d/basic.conf
2068 # ------------------------------------------------------------------------------
2069 dist_factory_etc_DATA = \
2070 factory/etc/nsswitch.conf
2073 dist_factory_pam_DATA = \
2074 factory/etc/pam.d/system-auth \
2075 factory/etc/pam.d/other
2078 # ------------------------------------------------------------------------------
2080 systemd_firstboot_SOURCES = \
2081 src/firstboot/firstboot.c
2083 systemd_firstboot_LDADD = \
2084 libsystemd-units.la \
2085 libsystemd-label.la \
2086 libsystemd-capability.la \
2087 libsystemd-internal.la \
2088 libsystemd-shared.la \
2091 rootbin_PROGRAMS += \
2094 nodist_systemunit_DATA += \
2095 units/systemd-firstboot.service
2098 units/systemd-firstboot.service.in
2100 SYSINIT_TARGET_WANTS += \
2101 systemd-firstboot.service
2104 # ------------------------------------------------------------------------------
2105 systemd_machine_id_setup_SOURCES = \
2106 src/machine-id-setup/machine-id-setup-main.c \
2107 src/core/machine-id-setup.c \
2108 src/core/machine-id-setup.h
2110 systemd_machine_id_setup_LDADD = \
2111 libsystemd-label.la \
2112 libsystemd-internal.la \
2113 libsystemd-shared.la
2115 # ------------------------------------------------------------------------------
2116 systemd_sysctl_SOURCES = \
2119 systemd_sysctl_LDADD = \
2120 libsystemd-shared.la
2122 # ------------------------------------------------------------------------------
2123 systemd_sleep_SOURCES = \
2126 systemd_sleep_LDADD = \
2127 libsystemd-shared.la
2129 # ------------------------------------------------------------------------------
2130 systemd_fsck_SOURCES = \
2133 systemd_fsck_LDADD = \
2134 libsystemd-internal.la \
2135 libudev-internal.la \
2136 libsystemd-shared.la
2138 # ------------------------------------------------------------------------------
2139 systemd_ac_power_SOURCES = \
2140 src/ac-power/ac-power.c
2142 systemd_ac_power_LDADD = \
2143 libudev-internal.la \
2144 libsystemd-shared.la
2146 # ------------------------------------------------------------------------------
2147 systemd_detect_virt_SOURCES = \
2148 src/detect-virt/detect-virt.c
2150 systemd_detect_virt_LDADD = \
2151 libsystemd-shared.la
2153 INSTALL_EXEC_HOOKS += \
2154 systemd-detect-virt-install-hook
2156 # ------------------------------------------------------------------------------
2157 systemd_delta_SOURCES = \
2160 systemd_delta_LDADD = \
2161 libsystemd-shared.la
2163 # ------------------------------------------------------------------------------
2164 systemd_getty_generator_SOURCES = \
2165 src/getty-generator/getty-generator.c
2167 systemd_getty_generator_LDADD = \
2168 libsystemd-label.la \
2169 libsystemd-shared.la
2171 # ------------------------------------------------------------------------------
2172 systemd_debug_generator_SOURCES = \
2173 src/debug-generator/debug-generator.c
2175 systemd_debug_generator_LDADD = \
2176 libsystemd-label.la \
2177 libsystemd-shared.la
2179 # ------------------------------------------------------------------------------
2180 systemd_fstab_generator_SOURCES = \
2181 src/fstab-generator/fstab-generator.c \
2182 src/core/mount-setup.c
2184 systemd_fstab_generator_LDADD = \
2185 libsystemd-label.la \
2186 libsystemd-shared.la
2188 # ------------------------------------------------------------------------------
2189 systemd_system_update_generator_SOURCES = \
2190 src/system-update-generator/system-update-generator.c
2192 systemd_system_update_generator_LDADD = \
2193 libsystemd-label.la \
2194 libsystemd-shared.la
2196 # ------------------------------------------------------------------------------
2198 systemgenerator_PROGRAMS += \
2199 systemd-hibernate-resume-generator
2201 rootlibexec_PROGRAMS += \
2202 systemd-hibernate-resume
2204 systemd_hibernate_resume_SOURCES = \
2205 src/hibernate-resume/hibernate-resume.c
2207 systemd_hibernate_resume_LDADD = \
2208 libsystemd-internal.la \
2209 libsystemd-shared.la
2211 systemd_hibernate_resume_generator_SOURCES = \
2212 src/hibernate-resume/hibernate-resume-generator.c
2214 systemd_hibernate_resume_generator_LDADD = \
2215 libsystemd-label.la \
2216 libsystemd-shared.la
2219 units/systemd-hibernate.service.in \
2220 units/systemd-hibernate-resume@.service.in \
2221 units/systemd-hybrid-sleep.service.in
2223 dist_systemunit_DATA += \
2224 units/hibernate.target \
2225 units/hybrid-sleep.target
2227 nodist_systemunit_DATA += \
2228 units/systemd-hibernate.service \
2229 units/systemd-hibernate-resume@.service \
2230 units/systemd-hybrid-sleep.service
2233 # ------------------------------------------------------------------------------
2235 systemgenerator_PROGRAMS += \
2236 systemd-efi-boot-generator
2238 systemd_efi_boot_generator_SOURCES = \
2239 src/efi-boot-generator/efi-boot-generator.c
2241 systemd_efi_boot_generator_LDADD = \
2242 libsystemd-label.la \
2243 libsystemd-shared.la
2245 # ------------------------------------------------------------------------------
2248 src/boot/boot-loader.h \
2249 src/boot/bootctl.c \
2250 src/boot/boot-loader.c \
2254 libsystemd-shared.la \
2255 libsystemd-internal.la
2260 dist_bashcompletion_DATA += \
2261 shell-completion/bash/bootctl
2263 dist_zshcompletion_DATA += \
2264 shell-completion/zsh/_bootctl
2268 # ------------------------------------------------------------------------------
2270 systemgenerator_PROGRAMS += \
2271 systemd-gpt-auto-generator
2273 systemd_gpt_auto_generator_SOURCES = \
2274 src/gpt-auto-generator/gpt-auto-generator.c \
2275 src/shared/blkid-util.h
2277 systemd_gpt_auto_generator_LDADD = \
2278 libsystemd-label.la \
2279 libsystemd-internal.la \
2280 libudev-internal.la \
2281 libsystemd-shared.la \
2284 systemd_gpt_auto_generator_CFLAGS = \
2289 # ------------------------------------------------------------------------------
2291 systemgenerator_PROGRAMS += \
2292 systemd-dbus1-generator
2294 systemd_dbus1_generator_SOURCES = \
2295 src/dbus1-generator/dbus1-generator.c
2297 systemd_dbus1_generator_LDADD = \
2298 libsystemd-label.la \
2299 libsystemd-shared.la \
2300 libsystemd-internal.la
2302 dbus1-generator-install-hook:
2303 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2304 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2305 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2307 dbus1-generator-uninstall-hook:
2308 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2310 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2311 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2314 # ------------------------------------------------------------------------------
2315 systemd_sysv_generator_SOURCES = \
2316 src/sysv-generator/sysv-generator.c
2318 systemd_sysv_generator_LDADD = \
2319 libsystemd-core.la \
2320 libsystemd-label.la \
2321 libsystemd-shared.la
2323 # ------------------------------------------------------------------------------
2324 systemd_rc_local_generator_SOURCES = \
2325 src/rc-local-generator/rc-local-generator.c
2327 systemd_rc_local_generator_LDADD = \
2328 libsystemd-label.la \
2329 libsystemd-shared.la
2331 # ------------------------------------------------------------------------------
2332 systemd_remount_fs_SOURCES = \
2333 src/remount-fs/remount-fs.c \
2334 src/core/mount-setup.c \
2335 src/core/mount-setup.h
2337 systemd_remount_fs_LDADD = \
2338 libsystemd-label.la \
2339 libsystemd-shared.la
2341 # ------------------------------------------------------------------------------
2342 systemd_cgroups_agent_SOURCES = \
2343 src/cgroups-agent/cgroups-agent.c
2345 systemd_cgroups_agent_LDADD = \
2346 libsystemd-internal.la \
2347 libsystemd-shared.la
2349 # ------------------------------------------------------------------------------
2350 systemd_escape_SOURCES = \
2353 systemd_escape_LDADD = \
2354 libsystemd-shared.la
2356 # -----------------------------------------------------------------------------
2357 systemctl_SOURCES = \
2358 src/systemctl/systemctl.c
2361 libsystemd-units.la \
2362 libsystemd-label.la \
2363 libsystemd-internal.la \
2364 libsystemd-logs.la \
2365 libsystemd-journal-internal.la \
2366 libsystemd-shared.la
2368 # ------------------------------------------------------------------------------
2369 systemd_notify_SOURCES = \
2372 systemd_notify_LDADD = \
2373 libsystemd-internal.la \
2374 libsystemd-shared.la
2376 # ------------------------------------------------------------------------------
2377 systemd_path_SOURCES = \
2380 systemd_path_LDADD = \
2381 libsystemd-internal.la \
2382 libsystemd-shared.la
2384 # ------------------------------------------------------------------------------
2385 systemd_ask_password_SOURCES = \
2386 src/ask-password/ask-password.c
2388 systemd_ask_password_LDADD = \
2389 libsystemd-label.la \
2390 libsystemd-shared.la
2392 # ------------------------------------------------------------------------------
2393 systemd_reply_password_SOURCES = \
2394 src/reply-password/reply-password.c
2396 systemd_reply_password_LDADD = \
2397 libsystemd-shared.la
2399 # ------------------------------------------------------------------------------
2400 systemd_cgls_SOURCES = \
2403 systemd_cgls_LDADD = \
2404 libsystemd-internal.la \
2405 libsystemd-shared.la
2407 # ------------------------------------------------------------------------------
2408 systemd_cgtop_SOURCES = \
2411 systemd_cgtop_LDADD = \
2412 libsystemd-shared.la
2414 # ------------------------------------------------------------------------------
2415 systemd_nspawn_SOURCES = \
2416 src/nspawn/nspawn.c \
2417 src/core/mount-setup.c \
2418 src/core/mount-setup.h \
2419 src/core/loopback-setup.c \
2420 src/core/loopback-setup.h
2422 systemd_nspawn_CFLAGS = \
2427 systemd_nspawn_LDADD = \
2428 libsystemd-label.la \
2429 libsystemd-capability.la \
2430 libsystemd-internal.la \
2431 libudev-internal.la \
2432 libsystemd-shared.la \
2436 systemd_nspawn_LDADD += \
2437 libsystemd-seccomp.la \
2441 # ------------------------------------------------------------------------------
2442 systemd_run_SOURCES = \
2445 systemd_run_LDADD = \
2446 libsystemd-label.la \
2447 libsystemd-capability.la \
2448 libsystemd-internal.la \
2449 libsystemd-shared.la
2451 # ------------------------------------------------------------------------------
2452 systemd_bus_proxyd_SOURCES = \
2453 src/bus-proxyd/bus-proxyd.c \
2454 src/bus-proxyd/bus-policy.c \
2455 src/bus-proxyd/bus-policy.h
2457 systemd_bus_proxyd_LDADD = \
2458 libsystemd-capability.la \
2459 libsystemd-internal.la \
2460 libsystemd-shared.la
2462 bus-proxyd-install-hook:
2463 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2464 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2465 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2467 bus-proxyd-uninstall-hook:
2468 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2470 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2471 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2474 nodist_systemunit_DATA += \
2475 units/systemd-bus-proxyd@.service
2477 dist_systemunit_DATA += \
2478 units/systemd-bus-proxyd.socket
2480 nodist_userunit_DATA += \
2481 units/user/systemd-bus-proxyd@.service
2483 dist_userunit_DATA += \
2484 units/user/systemd-bus-proxyd.socket
2488 units/systemd-bus-proxyd@.service.in \
2489 units/user/systemd-bus-proxyd@.service.in
2491 # ------------------------------------------------------------------------------
2492 systemd_tty_ask_password_agent_SOURCES = \
2493 src/tty-ask-password-agent/tty-ask-password-agent.c
2495 systemd_tty_ask_password_agent_LDADD = \
2496 libsystemd-label.la \
2497 libsystemd-shared.la
2499 # ------------------------------------------------------------------------------
2500 libsystemd_internal_la_SOURCES = \
2501 src/systemd/sd-bus.h \
2502 src/systemd/sd-bus-protocol.h \
2503 src/systemd/sd-bus-vtable.h \
2504 src/systemd/sd-utf8.h \
2505 src/systemd/sd-event.h \
2506 src/systemd/sd-rtnl.h \
2507 src/systemd/sd-resolve.h \
2508 src/systemd/sd-login.h \
2509 src/systemd/sd-id128.h \
2510 src/systemd/sd-daemon.h \
2511 src/systemd/sd-path.h \
2512 src/systemd/sd-network.h \
2513 src/libsystemd/sd-bus/sd-bus.c \
2514 src/libsystemd/sd-bus/bus-control.c \
2515 src/libsystemd/sd-bus/bus-control.h \
2516 src/libsystemd/sd-bus/bus-error.c \
2517 src/libsystemd/sd-bus/bus-error.h \
2518 src/libsystemd/sd-bus/bus-internal.c \
2519 src/libsystemd/sd-bus/bus-internal.h \
2520 src/libsystemd/sd-bus/bus-socket.c \
2521 src/libsystemd/sd-bus/bus-socket.h \
2522 src/libsystemd/sd-bus/bus-kernel.c \
2523 src/libsystemd/sd-bus/bus-kernel.h \
2524 src/libsystemd/sd-bus/bus-container.c \
2525 src/libsystemd/sd-bus/bus-container.h \
2526 src/libsystemd/sd-bus/bus-message.c \
2527 src/libsystemd/sd-bus/bus-message.h \
2528 src/libsystemd/sd-bus/bus-creds.c \
2529 src/libsystemd/sd-bus/bus-creds.h \
2530 src/libsystemd/sd-bus/bus-signature.c \
2531 src/libsystemd/sd-bus/bus-signature.h \
2532 src/libsystemd/sd-bus/bus-type.c \
2533 src/libsystemd/sd-bus/bus-type.h \
2534 src/libsystemd/sd-bus/bus-match.c \
2535 src/libsystemd/sd-bus/bus-match.h \
2536 src/libsystemd/sd-bus/bus-bloom.c \
2537 src/libsystemd/sd-bus/bus-bloom.h \
2538 src/libsystemd/sd-bus/bus-introspect.c \
2539 src/libsystemd/sd-bus/bus-introspect.h \
2540 src/libsystemd/sd-bus/bus-objects.c \
2541 src/libsystemd/sd-bus/bus-objects.h \
2542 src/libsystemd/sd-bus/bus-gvariant.c \
2543 src/libsystemd/sd-bus/bus-gvariant.h \
2544 src/libsystemd/sd-bus/bus-convenience.c \
2545 src/libsystemd/sd-bus/bus-track.c \
2546 src/libsystemd/sd-bus/bus-track.h \
2547 src/libsystemd/sd-bus/bus-util.c \
2548 src/libsystemd/sd-bus/bus-util.h \
2549 src/libsystemd/sd-bus/bus-slot.c \
2550 src/libsystemd/sd-bus/bus-slot.h \
2551 src/libsystemd/sd-bus/bus-protocol.h \
2552 src/libsystemd/sd-bus/kdbus.h \
2553 src/libsystemd/sd-utf8/sd-utf8.c \
2554 src/libsystemd/sd-event/sd-event.c \
2555 src/libsystemd/sd-event/event-util.h \
2556 src/libsystemd/sd-rtnl/sd-rtnl.c \
2557 src/libsystemd/sd-rtnl/rtnl-internal.h \
2558 src/libsystemd/sd-rtnl/rtnl-message.c \
2559 src/libsystemd/sd-rtnl/rtnl-types.h \
2560 src/libsystemd/sd-rtnl/rtnl-types.c \
2561 src/libsystemd/sd-rtnl/rtnl-util.h \
2562 src/libsystemd/sd-rtnl/rtnl-util.c \
2563 src/libsystemd/sd-rtnl/local-addresses.h \
2564 src/libsystemd/sd-rtnl/local-addresses.c \
2565 src/libsystemd/sd-id128/sd-id128.c \
2566 src/libsystemd/sd-daemon/sd-daemon.c \
2567 src/libsystemd/sd-login/sd-login.c \
2568 src/libsystemd/sd-path/sd-path.c \
2569 src/libsystemd/sd-network/sd-network.c \
2570 src/libsystemd/sd-network/network-util.h \
2571 src/libsystemd/sd-network/network-util.c
2573 nodist_libsystemd_internal_la_SOURCES = \
2574 src/libsystemd/libsystemd.sym \
2575 src/libsystemd/sd-bus/bus-error-mapping.c
2577 libsystemd_internal_la_CFLAGS = \
2581 libsystemd_internal_la_LIBADD = \
2584 libsystemd_resolve_la_SOURCES = \
2585 src/libsystemd/sd-resolve/sd-resolve.c \
2586 src/libsystemd/sd-resolve/resolve-util.h
2588 libsystemd_resolve_la_CFLAGS = \
2592 libsystemd_resolve_la_LIBADD = \
2595 noinst_LTLIBRARIES += \
2596 libsystemd-internal.la \
2597 libsystemd-resolve.la
2599 libsystemd_dump_la_SOURCES = \
2600 src/libsystemd/sd-bus/bus-dump.c \
2601 src/libsystemd/sd-bus/bus-dump.h
2603 libsystemd_dump_la_CFLAGS = \
2607 noinst_LTLIBRARIES += \
2611 src/libsystemd/libsystemd.sym.m4 \
2612 src/libsystemd/libsystemd.pc.in \
2613 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2614 src/libsystemd/sd-bus/DIFFERENCES \
2615 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2618 src/libsystemd/libsystemd.sym \
2619 src/libsystemd/sd-bus/bus-error-mapping.c
2622 src/libsystemd/libsystemd.sym
2624 libsystemd_la_SOURCES = \
2625 $(libsystemd_internal_la_SOURCES) \
2626 $(libsystemd_resolve_la_SOURCES) \
2627 $(libsystemd_journal_internal_la_SOURCES)
2629 nodist_libsystemd_la_SOURCES = \
2630 $(nodist_libsystemd_internal_la_SOURCES)
2632 libsystemd_la_CFLAGS = \
2633 $(libsystemd_internal_la_CFLAGS) \
2634 $(libsystemd_resolve_la_CFLAGS) \
2635 $(libsystemd_journal_internal_la_CFLAGS)
2637 libsystemd_la_LDFLAGS = \
2639 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2640 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2642 libsystemd_la_LIBADD = \
2643 libsystemd-shared.la \
2644 $(libsystemd_internal_la_LIBADD) \
2645 $(libsystemd_journal_internal_la_LIBADD) \
2646 $(libsystemd_resolve_la_LIBADD)
2648 libsystemd-install-hook:
2649 libname=libsystemd.so && $(move-to-rootlibdir)
2651 libsystemd-uninstall-hook:
2652 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2654 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2655 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2657 pkgconfiglib_DATA += \
2658 src/libsystemd/libsystemd.pc
2660 pkginclude_HEADERS += \
2661 src/systemd/sd-login.h \
2662 src/systemd/sd-id128.h \
2663 src/systemd/sd-daemon.h
2666 pkginclude_HEADERS += \
2667 src/systemd/sd-bus.h \
2668 src/systemd/sd-bus-protocol.h \
2669 src/systemd/sd-bus-vtable.h \
2670 src/systemd/sd-utf8.h \
2671 src/systemd/sd-event.h \
2672 src/systemd/sd-rtnl.h \
2673 src/systemd/sd-resolve.h \
2674 src/systemd/sd-path.h
2677 lib_LTLIBRARIES += \
2682 test-bus-signature \
2688 test-bus-kernel-bloom \
2689 test-bus-kernel-benchmark \
2690 test-bus-zero-copy \
2691 test-bus-introspect \
2703 test_bus_marshal_SOURCES = \
2704 src/libsystemd/sd-bus/test-bus-marshal.c
2706 test_bus_marshal_LDADD = \
2707 libsystemd-internal.la \
2708 libsystemd-shared.la \
2709 libsystemd-dump.la \
2710 libsystemd-capability.la \
2715 test_bus_marshal_CFLAGS = \
2721 test_bus_signature_SOURCES = \
2722 src/libsystemd/sd-bus/test-bus-signature.c
2724 test_bus_signature_LDADD = \
2725 libsystemd-shared.la \
2726 libsystemd-internal.la
2728 test_bus_chat_SOURCES = \
2729 src/libsystemd/sd-bus/test-bus-chat.c
2731 test_bus_chat_CFLAGS = \
2735 test_bus_chat_LDADD = \
2736 libsystemd-internal.la \
2737 libsystemd-shared.la
2739 test_bus_cleanup_SOURCES = \
2740 src/libsystemd/sd-bus/test-bus-cleanup.c
2742 test_bus_cleanup_CFLAGS = \
2746 test_bus_cleanup_LDADD = \
2747 libsystemd-internal.la \
2748 libsystemd-shared.la
2750 test_bus_server_SOURCES = \
2751 src/libsystemd/sd-bus/test-bus-server.c
2753 test_bus_server_CFLAGS = \
2757 test_bus_server_LDADD = \
2758 libsystemd-internal.la \
2759 libsystemd-shared.la
2761 test_bus_objects_SOURCES = \
2762 src/libsystemd/sd-bus/test-bus-objects.c
2764 test_bus_objects_CFLAGS = \
2769 test_bus_objects_LDADD = \
2770 libsystemd-internal.la \
2771 libsystemd-shared.la \
2772 libsystemd-dump.la \
2773 libsystemd-capability.la \
2776 test_bus_error_SOURCES = \
2777 src/libsystemd/sd-bus/test-bus-error.c
2779 test_bus_error_LDADD = \
2780 libsystemd-internal.la \
2781 libsystemd-shared.la
2783 test_bus_gvariant_SOURCES = \
2784 src/libsystemd/sd-bus/test-bus-gvariant.c
2786 test_bus_gvariant_LDADD = \
2787 libsystemd-internal.la \
2788 libsystemd-shared.la \
2789 libsystemd-dump.la \
2790 libsystemd-capability.la \
2794 test_bus_gvariant_CFLAGS = \
2799 test_bus_creds_SOURCES = \
2800 src/libsystemd/sd-bus/test-bus-creds.c
2802 test_bus_creds_LDADD = \
2803 libsystemd-internal.la \
2804 libsystemd-shared.la \
2805 libsystemd-dump.la \
2806 libsystemd-capability.la
2808 test_bus_match_SOURCES = \
2809 src/libsystemd/sd-bus/test-bus-match.c
2811 test_bus_match_LDADD = \
2812 libsystemd-internal.la \
2813 libsystemd-shared.la
2815 test_bus_kernel_SOURCES = \
2816 src/libsystemd/sd-bus/test-bus-kernel.c
2818 test_bus_kernel_LDADD = \
2819 libsystemd-internal.la \
2820 libsystemd-shared.la \
2821 libsystemd-dump.la \
2822 libsystemd-capability.la \
2825 test_bus_kernel_CFLAGS = \
2829 test_bus_kernel_bloom_SOURCES = \
2830 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2832 test_bus_kernel_bloom_LDADD = \
2833 libsystemd-internal.la \
2834 libsystemd-shared.la
2836 test_bus_kernel_benchmark_SOURCES = \
2837 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2839 test_bus_kernel_benchmark_LDADD = \
2840 libsystemd-internal.la \
2841 libsystemd-shared.la
2843 test_bus_zero_copy_SOURCES = \
2844 src/libsystemd/sd-bus/test-bus-zero-copy.c
2846 test_bus_zero_copy_LDADD = \
2847 libsystemd-internal.la \
2848 libsystemd-shared.la \
2849 libsystemd-dump.la \
2850 libsystemd-capability.la \
2853 test_bus_zero_copy_CFLAGS = \
2857 test_bus_introspect_SOURCES = \
2858 src/libsystemd/sd-bus/test-bus-introspect.c
2860 test_bus_introspect_LDADD = \
2861 libsystemd-internal.la \
2862 libsystemd-shared.la
2864 test_event_SOURCES = \
2865 src/libsystemd/sd-event/test-event.c
2867 test_event_LDADD = \
2868 libsystemd-internal.la \
2869 libsystemd-shared.la
2871 test_rtnl_SOURCES = \
2872 src/libsystemd/sd-rtnl/test-rtnl.c
2875 libsystemd-internal.la \
2876 libsystemd-shared.la
2878 test_resolve_SOURCES = \
2879 src/libsystemd/sd-resolve/test-resolve.c
2881 test_resolve_LDADD = \
2882 libsystemd-resolve.la \
2883 libsystemd-internal.la \
2884 libsystemd-shared.la
2886 test_resolve_CFLAGS = \
2891 src/libsystemd/sd-bus/busctl.c
2894 libsystemd-internal.la \
2895 libsystemd-shared.la \
2896 libsystemd-dump.la \
2897 libsystemd-capability.la \
2904 # ------------------------------------------------------------------------------
2905 noinst_LTLIBRARIES += \
2906 libsystemd-network.la
2908 libsystemd_network_la_CFLAGS = \
2912 libsystemd_network_la_SOURCES = \
2913 src/systemd/sd-dhcp-client.h \
2914 src/systemd/sd-dhcp-server.h \
2915 src/systemd/sd-dhcp-lease.h \
2916 src/systemd/sd-ipv4ll.h \
2917 src/systemd/sd-icmp6-nd.h \
2918 src/systemd/sd-dhcp6-client.h \
2919 src/systemd/sd-dhcp6-lease.h \
2920 src/libsystemd-network/sd-dhcp-client.c \
2921 src/libsystemd-network/sd-dhcp-server.c \
2922 src/libsystemd-network/dhcp-network.c \
2923 src/libsystemd-network/dhcp-option.c \
2924 src/libsystemd-network/dhcp-packet.c \
2925 src/libsystemd-network/dhcp-internal.h \
2926 src/libsystemd-network/dhcp-server-internal.h \
2927 src/libsystemd-network/dhcp-protocol.h \
2928 src/libsystemd-network/dhcp-lease-internal.h \
2929 src/libsystemd-network/sd-dhcp-lease.c \
2930 src/libsystemd-network/sd-ipv4ll.c \
2931 src/libsystemd-network/ipv4ll-network.c \
2932 src/libsystemd-network/ipv4ll-packet.c \
2933 src/libsystemd-network/ipv4ll-internal.h \
2934 src/libsystemd-network/network-internal.c \
2935 src/libsystemd-network/network-internal.h \
2936 src/libsystemd-network/sd-icmp6-nd.c \
2937 src/libsystemd-network/sd-dhcp6-client.c \
2938 src/libsystemd-network/dhcp6-internal.h \
2939 src/libsystemd-network/dhcp6-protocol.h \
2940 src/libsystemd-network/dhcp6-network.c \
2941 src/libsystemd-network/dhcp6-option.c \
2942 src/libsystemd-network/dhcp6-lease-internal.h \
2943 src/libsystemd-network/sd-dhcp6-lease.c
2945 libsystemd_network_la_LIBADD = \
2946 libudev-internal.la \
2947 libsystemd-label.la \
2948 libsystemd-internal.la \
2949 libsystemd-shared.la \
2952 test_dhcp_option_SOURCES = \
2953 src/libsystemd-network/dhcp-protocol.h \
2954 src/libsystemd-network/dhcp-internal.h \
2955 src/libsystemd-network/test-dhcp-option.c
2957 test_dhcp_option_LDADD = \
2958 libsystemd-network.la \
2959 libsystemd-internal.la \
2960 libsystemd-shared.la
2962 test_dhcp_client_SOURCES = \
2963 src/systemd/sd-dhcp-client.h \
2964 src/libsystemd-network/dhcp-protocol.h \
2965 src/libsystemd-network/dhcp-internal.h \
2966 src/libsystemd-network/test-dhcp-client.c
2968 test_dhcp_client_LDADD = \
2969 libsystemd-network.la \
2970 libsystemd-label.la \
2971 libsystemd-internal.la \
2972 libsystemd-shared.la
2974 test_dhcp_server_SOURCES = \
2975 src/libsystemd-network/test-dhcp-server.c
2977 test_dhcp_server_LDADD = \
2978 libsystemd-network.la \
2979 libsystemd-internal.la \
2980 libsystemd-shared.la
2982 test_ipv4ll_SOURCES = \
2983 src/systemd/sd-ipv4ll.h \
2984 src/libsystemd-network/ipv4ll-internal.h \
2985 src/libsystemd-network/test-ipv4ll.c
2987 test_ipv4ll_LDADD = \
2988 libsystemd-network.la \
2989 libsystemd-label.la \
2990 libsystemd-internal.la \
2991 libsystemd-shared.la
2993 test_icmp6_rs_SOURCES = \
2994 src/systemd/sd-dhcp6-client.h \
2995 src/systemd/sd-icmp6-nd.h \
2996 src/libsystemd-network/dhcp6-internal.h \
2997 src/libsystemd-network/test-icmp6-rs.c
2999 test_icmp6_rs_LDADD = \
3000 libsystemd-network.la \
3001 libsystemd-internal.la \
3002 libsystemd-shared.la
3004 test_dhcp6_client_SOURCES = \
3005 src/systemd/sd-dhcp6-client.h \
3006 src/libsystemd-network/dhcp6-internal.h \
3007 src/libsystemd-network/test-dhcp6-client.c
3009 test_dhcp6_client_LDADD = \
3010 libsystemd-network.la \
3011 libsystemd-internal.la \
3012 libsystemd-shared.la
3022 # ------------------------------------------------------------------------------
3024 noinst_LTLIBRARIES += \
3025 libsystemd-terminal.la
3027 rootlibexec_PROGRAMS += \
3030 noinst_PROGRAMS += \
3035 dist_pkgdata_DATA += \
3036 src/libsystemd-terminal/unifont-glyph-array.bin
3044 libsystemd_terminal_la_CFLAGS = \
3048 libsystemd_terminal_la_SOURCES = \
3049 src/libsystemd-terminal/grdev.h \
3050 src/libsystemd-terminal/grdev-internal.h \
3051 src/libsystemd-terminal/grdev.c \
3052 src/libsystemd-terminal/grdev-drm.c \
3053 src/libsystemd-terminal/idev.h \
3054 src/libsystemd-terminal/idev-internal.h \
3055 src/libsystemd-terminal/idev.c \
3056 src/libsystemd-terminal/idev-evdev.c \
3057 src/libsystemd-terminal/idev-keyboard.c \
3058 src/libsystemd-terminal/sysview.h \
3059 src/libsystemd-terminal/sysview-internal.h \
3060 src/libsystemd-terminal/sysview.c \
3061 src/libsystemd-terminal/term.h \
3062 src/libsystemd-terminal/term-internal.h \
3063 src/libsystemd-terminal/term-charset.c \
3064 src/libsystemd-terminal/term-page.c \
3065 src/libsystemd-terminal/term-parser.c \
3066 src/libsystemd-terminal/term-screen.c \
3067 src/libsystemd-terminal/term-wcwidth.c \
3068 src/libsystemd-terminal/unifont.h \
3069 src/libsystemd-terminal/unifont-def.h \
3070 src/libsystemd-terminal/unifont.c
3072 libsystemd_terminal_la_LIBADD = \
3073 libudev-internal.la \
3074 libsystemd-internal.la \
3075 libsystemd-shared.la \
3078 systemd_consoled_CFLAGS = \
3082 systemd_consoled_SOURCES = \
3083 src/console/consoled.h \
3084 src/console/consoled.c \
3085 src/console/consoled-display.c \
3086 src/console/consoled-manager.c \
3087 src/console/consoled-session.c \
3088 src/console/consoled-terminal.c \
3089 src/console/consoled-workspace.c
3091 systemd_consoled_LDADD = \
3092 libsystemd-terminal.la \
3093 libsystemd-internal.la \
3094 libsystemd-shared.la \
3097 systemd_evcat_CFLAGS = \
3101 systemd_evcat_SOURCES = \
3102 src/libsystemd-terminal/evcat.c
3104 systemd_evcat_LDADD = \
3105 libsystemd-terminal.la \
3106 libsystemd-internal.la \
3107 libsystemd-shared.la \
3110 systemd_modeset_CFLAGS = \
3114 systemd_modeset_SOURCES = \
3115 src/libsystemd-terminal/modeset.c
3117 systemd_modeset_LDADD = \
3118 libsystemd-terminal.la \
3119 libsystemd-internal.la \
3120 libsystemd-shared.la \
3123 systemd_subterm_SOURCES = \
3124 src/libsystemd-terminal/subterm.c
3126 systemd_subterm_LDADD = \
3127 libsystemd-terminal.la \
3128 libsystemd-internal.la \
3129 libsystemd-shared.la
3131 test_term_page_SOURCES = \
3132 src/libsystemd-terminal/test-term-page.c
3134 test_term_page_LDADD = \
3135 libsystemd-terminal.la \
3136 libsystemd-internal.la \
3137 libsystemd-shared.la
3139 test_term_parser_SOURCES = \
3140 src/libsystemd-terminal/test-term-parser.c
3142 test_term_parser_LDADD = \
3143 libsystemd-terminal.la \
3144 libsystemd-internal.la \
3145 libsystemd-shared.la
3147 test_unifont_SOURCES = \
3148 src/libsystemd-terminal/test-unifont.c
3150 test_unifont_LDADD = \
3151 libsystemd-terminal.la \
3152 libsystemd-internal.la \
3153 libsystemd-shared.la
3155 .PHONY: update-unifont
3156 update-unifont: tools/compile-unifont.py
3157 $(AM_V_GEN)$(PYTHON) $< \
3158 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3159 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3160 @echo "unifont-glyph-array.bin has been regenerated"
3162 # ------------------------------------------------------------------------------
3172 include_HEADERS += \
3173 src/libudev/libudev.h
3175 lib_LTLIBRARIES += \
3178 libudev_la_SOURCES =\
3179 src/libudev/libudev.sym \
3180 src/libudev/libudev-private.h \
3181 src/libudev/libudev.c \
3182 src/libudev/libudev-list.c \
3183 src/libudev/libudev-util.c \
3184 src/libudev/libudev-device.c \
3185 src/libudev/libudev-enumerate.c \
3186 src/libudev/libudev-monitor.c \
3187 src/libudev/libudev-queue.c \
3188 src/libudev/libudev-hwdb-def.h \
3189 src/libudev/libudev-hwdb.c
3191 libudev_la_CFLAGS = \
3195 libudev_la_LDFLAGS = \
3197 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3198 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3200 libudev_la_LIBADD = \
3201 libsystemd-internal.la \
3202 libsystemd-shared.la
3204 pkgconfiglib_DATA += \
3205 src/libudev/libudev.pc
3208 src/libudev/libudev.pc.in
3211 src/libudev/libudev.pc \
3216 $(AM_V_at)$(MKDIR_P) $(dir $@)
3217 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3220 $(AM_V_at)$(MKDIR_P) $(dir $@)
3221 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3223 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3224 libudev-install-hook:
3225 libname=libudev.so && $(move-to-rootlibdir)
3227 libudev-uninstall-hook:
3228 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3230 INSTALL_EXEC_HOOKS += libudev-install-hook
3231 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3233 # ------------------------------------------------------------------------------
3234 noinst_LTLIBRARIES += \
3237 libudev_internal_la_SOURCES =\
3238 $(libudev_la_SOURCES) \
3239 src/libudev/libudev-device-private.c
3241 libudev_internal_la_CFLAGS = \
3243 -fvisibility=default
3245 # ------------------------------------------------------------------------------
3247 $(sysconfdir)/udev/rules.d \
3248 $(sysconfdir)/udev/hwdb.d
3250 dist_network_DATA = \
3251 network/99-default.link \
3252 network/80-container-host0.network \
3253 network/80-container-ve.network
3255 dist_udevrules_DATA += \
3256 rules/42-usb-hid-pm.rules \
3257 rules/50-udev-default.rules \
3258 rules/60-drm.rules \
3259 rules/60-keyboard.rules \
3260 rules/60-persistent-storage-tape.rules \
3261 rules/60-persistent-serial.rules \
3262 rules/60-persistent-input.rules \
3263 rules/60-persistent-alsa.rules \
3264 rules/60-persistent-storage.rules \
3265 rules/64-btrfs.rules \
3266 rules/75-net-description.rules \
3267 rules/75-tty-description.rules \
3268 rules/78-sound-card.rules \
3269 rules/80-net-setup-link.rules \
3270 rules/95-udev-late.rules
3272 nodist_udevrules_DATA += \
3273 rules/99-systemd.rules
3275 dist_udevhwdb_DATA = \
3276 hwdb/20-pci-vendor-model.hwdb \
3277 hwdb/20-pci-classes.hwdb \
3278 hwdb/20-usb-vendor-model.hwdb \
3279 hwdb/20-usb-classes.hwdb \
3280 hwdb/20-sdio-vendor-model.hwdb \
3281 hwdb/20-sdio-classes.hwdb \
3282 hwdb/20-bluetooth-vendor-product.hwdb \
3283 hwdb/20-acpi-vendor.hwdb \
3285 hwdb/20-net-ifname.hwdb \
3286 hwdb/60-keyboard.hwdb
3288 udevconfdir = $(sysconfdir)/udev
3289 dist_udevconf_DATA = \
3292 sharepkgconfigdir = $(datadir)/pkgconfig
3293 sharepkgconfig_DATA = \
3297 rules/99-systemd.rules.in \
3301 rules/99-systemd.rules \
3305 units/systemd-udevd.service.in \
3306 units/systemd-udev-trigger.service.in \
3307 units/systemd-udev-settle.service.in \
3308 units/systemd-udev-hwdb-update.service.in
3311 units/systemd-udevd.service \
3312 units/systemd-udev-trigger.service \
3313 units/systemd-udev-settle.service \
3314 units/systemd-udev-hwdb-update.service
3316 SOCKETS_TARGET_WANTS += \
3317 systemd-udevd-control.socket \
3318 systemd-udevd-kernel.socket
3320 SYSINIT_TARGET_WANTS += \
3321 systemd-udevd.service \
3322 systemd-udev-trigger.service \
3323 systemd-udev-hwdb-update.service
3325 rootbin_PROGRAMS += \
3328 rootlibexec_PROGRAMS += \
3331 noinst_LTLIBRARIES += \
3334 src/udev/keyboard-keys.txt:
3335 $(AM_V_at)$(MKDIR_P) $(dir $@)
3336 $(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/' > $@
3338 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3339 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3341 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3342 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3344 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3345 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3347 libudev_core_la_SOURCES = \
3349 src/udev/udev-event.c \
3350 src/udev/udev-watch.c \
3351 src/udev/udev-node.c \
3352 src/udev/udev-rules.c \
3353 src/udev/udev-ctrl.c \
3354 src/udev/udev-builtin.c \
3355 src/udev/udev-builtin-btrfs.c \
3356 src/udev/udev-builtin-hwdb.c \
3357 src/udev/udev-builtin-input_id.c \
3358 src/udev/udev-builtin-keyboard.c \
3359 src/udev/udev-builtin-net_id.c \
3360 src/udev/udev-builtin-net_setup_link.c \
3361 src/udev/udev-builtin-path_id.c \
3362 src/udev/udev-builtin-usb_id.c \
3363 src/udev/net/link-config.h \
3364 src/udev/net/link-config.c \
3365 src/udev/net/ethtool-util.h \
3366 src/udev/net/ethtool-util.c
3368 nodist_libudev_core_la_SOURCES = \
3369 src/udev/keyboard-keys-from-name.h \
3370 src/udev/keyboard-keys-to-name.h \
3371 src/udev/net/link-config-gperf.c
3374 $(nodist_libudev_core_la_SOURCES)
3377 src/udev/keyboard-keys-from-name.gperf \
3378 src/udev/keyboard-keys.txt \
3379 src/udev/net/link-config-gperf.c
3382 src/udev/net/link-config-gperf.gperf
3384 libudev_core_la_CFLAGS = \
3389 libudev_core_la_LIBADD = \
3390 libudev-internal.la \
3391 libsystemd-label.la \
3392 libsystemd-internal.la \
3393 libsystemd-network.la \
3394 libsystemd-shared.la \
3399 libudev_core_la_SOURCES += \
3400 src/udev/udev-builtin-kmod.c
3402 dist_udevrules_DATA += \
3403 rules/80-drivers.rules
3407 libudev_core_la_SOURCES += \
3408 src/udev/udev-builtin-blkid.c
3412 libudev_core_la_SOURCES += \
3413 src/udev/udev-builtin-uaccess.c \
3414 src/login/logind-acl.c \
3415 src/libsystemd/sd-login/sd-login.c \
3416 src/systemd/sd-login.h
3418 libudev_core_la_LIBADD += \
3422 systemd_udevd_SOURCES = \
3425 systemd_udevd_LDADD = \
3429 src/udev/udevadm.c \
3430 src/udev/udevadm-info.c \
3431 src/udev/udevadm-control.c \
3432 src/udev/udevadm-monitor.c \
3433 src/udev/udevadm-hwdb.c \
3434 src/udev/udevadm-settle.c \
3435 src/udev/udevadm-trigger.c \
3436 src/udev/udevadm-test.c \
3437 src/udev/udevadm-test-builtin.c
3442 # Update hwdb on installation. Do not bother if installing
3443 # in DESTDIR, since this is likely for packaging purposes.
3445 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3447 INSTALL_DATA_HOOKS += \
3451 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3453 # ------------------------------------------------------------------------------
3462 test_libudev_SOURCES = \
3463 src/test/test-libudev.c
3465 test_libudev_LDADD = \
3466 libsystemd-label.la \
3467 libudev-internal.la \
3468 libsystemd-shared.la
3470 test_udev_SOURCES = \
3471 src/test/test-udev.c
3480 test_udev_LDADD += \
3487 # packed sysfs test tree
3489 $(AM_V_at)$(MKDIR_P) $(dir $@)
3490 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3494 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3499 test/rules-test.sh \
3500 test/rule-syntax-check.py
3502 # ------------------------------------------------------------------------------
3504 src/udev/ata_id/ata_id.c
3507 libudev-internal.la \
3508 libsystemd-shared.la
3510 udevlibexec_PROGRAMS += \
3513 # ------------------------------------------------------------------------------
3514 cdrom_id_SOURCES = \
3515 src/udev/cdrom_id/cdrom_id.c
3518 libudev-internal.la \
3519 libsystemd-shared.la
3521 udevlibexec_PROGRAMS += \
3524 dist_udevrules_DATA += \
3525 rules/60-cdrom_id.rules
3527 # ------------------------------------------------------------------------------
3529 src/udev/collect/collect.c
3532 libudev-internal.la \
3533 libsystemd-shared.la
3535 udevlibexec_PROGRAMS += \
3538 # ------------------------------------------------------------------------------
3540 src/udev/scsi_id/scsi_id.c \
3541 src/udev/scsi_id/scsi_serial.c \
3542 src/udev/scsi_id/scsi.h \
3543 src/udev/scsi_id/scsi_id.h
3546 libudev-internal.la \
3547 libsystemd-shared.la
3549 udevlibexec_PROGRAMS += \
3553 src/udev/scsi_id/README
3555 # ------------------------------------------------------------------------------
3557 src/udev/v4l_id/v4l_id.c
3562 udevlibexec_PROGRAMS += \
3565 dist_udevrules_DATA += \
3566 rules/60-persistent-v4l.rules
3568 # ------------------------------------------------------------------------------
3569 accelerometer_SOURCES = \
3570 src/udev/accelerometer/accelerometer.c
3572 accelerometer_LDADD = \
3573 libudev-internal.la -lm \
3574 libsystemd-shared.la
3576 udevlibexec_PROGRAMS += \
3579 dist_udevrules_DATA += \
3580 rules/61-accelerometer.rules
3582 # ------------------------------------------------------------------------------
3589 libgudev_includedir = \
3590 $(includedir)/gudev-1.0/gudev
3592 libgudev_include_HEADERS = \
3594 src/gudev/gudevenums.h \
3595 src/gudev/gudevenumtypes.h \
3596 src/gudev/gudevtypes.h \
3597 src/gudev/gudevclient.h \
3598 src/gudev/gudevdevice.h \
3599 src/gudev/gudevenumerator.h
3601 lib_LTLIBRARIES += libgudev-1.0.la
3603 pkgconfiglib_DATA += \
3604 src/gudev/gudev-1.0.pc
3607 src/gudev/gudev-1.0.pc
3609 libgudev_1_0_la_SOURCES = \
3610 src/gudev/libgudev-1.0.sym \
3611 src/gudev/gudevenums.h \
3612 src/gudev/gudevenumtypes.h \
3613 src/gudev/gudevenumtypes.h\
3614 src/gudev/gudevtypes.h \
3615 src/gudev/gudevclient.h \
3616 src/gudev/gudevclient.c \
3617 src/gudev/gudevdevice.h \
3618 src/gudev/gudevdevice.c \
3619 src/gudev/gudevenumerator.h \
3620 src/gudev/gudevenumerator.c \
3621 src/gudev/gudevprivate.h
3623 nodist_libgudev_1_0_la_SOURCES = \
3624 src/gudev/gudevmarshal.h \
3625 src/gudev/gudevmarshal.c \
3626 src/gudev/gudevenumtypes.h \
3627 src/gudev/gudevenumtypes.c
3630 $(nodist_libgudev_1_0_la_SOURCES)
3632 libgudev_1_0_la_CPPFLAGS = \
3634 -I$(top_builddir)/src\
3635 -I$(top_srcdir)/src\
3636 -I$(top_builddir)/src/gudev \
3637 -I$(top_srcdir)/src/gudev \
3638 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3639 -D_GUDEV_COMPILATION \
3640 -DG_LOG_DOMAIN=\"GUdev\"
3642 libgudev_1_0_la_CFLAGS = \
3644 -fvisibility=default \
3647 libgudev_1_0_la_LIBADD = \
3651 libgudev_1_0_la_LDFLAGS = \
3653 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3656 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3658 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3659 $(AM_V_at)$(MKDIR_P) $(dir $@)
3660 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3662 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3663 $(AM_V_at)$(MKDIR_P) $(dir $@)
3664 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3665 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3667 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3668 $(AM_V_at)$(MKDIR_P) $(dir $@)
3669 $(AM_V_GEN)glib-mkenums --template $^ > $@
3671 if HAVE_INTROSPECTION
3672 -include $(INTROSPECTION_MAKEFILE)
3674 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3676 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3678 src_gudev_GUdev_1_0_gir_CFLAGS = \
3681 -D_GUDEV_COMPILATION \
3682 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3683 -I$(top_srcdir)/src \
3684 -I$(top_builddir)/src \
3685 -I$(top_srcdir)/src/gudev \
3686 -I$(top_builddir)/src/gudev
3688 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3690 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3691 --pkg-export=gudev-1.0 \
3694 src_gudev_GUdev_1_0_gir_FILES = \
3696 src/gudev/gudevtypes.h \
3697 src/gudev/gudevenums.h \
3698 src/gudev/gudevenumtypes.h \
3699 src/gudev/gudevclient.h \
3700 src/gudev/gudevdevice.h \
3701 src/gudev/gudevenumerator.h \
3702 src/gudev/gudevclient.c \
3703 src/gudev/gudevdevice.c \
3704 src/gudev/gudevenumerator.c
3706 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3707 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3709 girdir = $(datadir)/gir-1.0
3711 src/gudev/GUdev-1.0.gir
3713 typelibsdir = $(libdir)/girepository-1.0
3715 src/gudev/GUdev-1.0.typelib
3717 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3718 endif # HAVE_INTROSPECTION
3722 src/gudev/gudev-1.0.pc.in \
3723 src/gudev/gudevmarshal.list \
3724 src/gudev/gudevenumtypes.h.template \
3725 src/gudev/gudevenumtypes.c.template \
3726 src/gudev/gjs-example.js \
3727 src/gudev/seed-example-enum.js \
3728 src/gudev/seed-example.js
3730 # ------------------------------------------------------------------------------
3731 mtd_probe_SOURCES = \
3732 src/udev/mtd_probe/mtd_probe.c \
3733 src/udev/mtd_probe/mtd_probe.h \
3734 src/udev/mtd_probe/probe_smartmedia.c
3736 dist_udevrules_DATA += \
3737 rules/75-probe_mtd.rules
3739 udevlibexec_PROGRAMS += \
3742 # ------------------------------------------------------------------------------
3743 test_id128_SOURCES = \
3744 src/test/test-id128.c
3746 test_id128_LDADD = \
3747 libsystemd-internal.la \
3748 libsystemd-shared.la
3753 # ------------------------------------------------------------------------------
3755 rootlibexec_PROGRAMS += \
3758 systemd_activate_SOURCES = \
3759 src/activate/activate.c
3761 systemd_activate_LDADD = \
3762 libsystemd-label.la \
3763 libsystemd-internal.la \
3764 libsystemd-shared.la
3766 # ------------------------------------------------------------------------------
3767 systemd_journald_SOURCES = \
3768 src/journal/journald.c \
3769 src/journal/journald-server.h
3771 systemd_journald_LDADD = \
3772 libsystemd-journal-core.la \
3773 libsystemd-internal.la \
3774 libsystemd-shared.la
3776 systemd_cat_SOURCES = \
3779 systemd_cat_LDADD = \
3780 libsystemd-journal-core.la
3783 rootlibexec_PROGRAMS += \
3784 systemd-journal-remote
3786 systemd_journal_remote_SOURCES = \
3787 src/journal-remote/journal-remote-parse.h \
3788 src/journal-remote/journal-remote-parse.c \
3789 src/journal-remote/journal-remote-write.h \
3790 src/journal-remote/journal-remote-write.c \
3791 src/journal-remote/journal-remote.h \
3792 src/journal-remote/journal-remote.c
3794 systemd_journal_remote_LDADD = \
3795 libsystemd-internal.la \
3796 libsystemd-journal-core.la
3798 systemd_journal_remote_SOURCES += \
3799 src/journal-remote/microhttpd-util.h \
3800 src/journal-remote/microhttpd-util.c
3802 systemd_journal_remote_CFLAGS = \
3804 $(MICROHTTPD_CFLAGS)
3806 systemd_journal_remote_LDADD += \
3810 systemd_journal_remote_LDADD += \
3813 # systemd-journal-remote make sense mostly with full crypto stack
3814 dist_systemunit_DATA += \
3815 units/systemd-journal-remote.socket
3817 nodist_systemunit_DATA += \
3818 units/systemd-journal-remote.service
3821 units/systemd-journal-remote.service.in
3823 journal-remote-install-hook: journal-install-hook
3824 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3825 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3826 -chmod 755 $(DESTDIR)/var/log/journal/remote
3828 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3832 nodist_pkgsysconf_DATA += \
3833 src/journal-remote/journal-remote.conf
3836 src/journal-remote/journal-remote.conf.in
3839 src/journal-remote/journal-remote.conf
3843 rootlibexec_PROGRAMS += \
3844 systemd-journal-upload
3846 systemd_journal_upload_SOURCES = \
3847 src/journal-remote/journal-upload.h \
3848 src/journal-remote/journal-upload.c \
3849 src/journal-remote/journal-upload-journal.c
3851 systemd_journal_upload_CFLAGS = \
3855 systemd_journal_upload_LDADD = \
3856 libsystemd-core.la \
3857 libsystemd-internal.la \
3858 libsystemd-journal-internal.la \
3859 libsystemd-shared.la \
3862 nodist_systemunit_DATA += \
3863 units/systemd-journal-upload.service
3866 units/systemd-journal-upload.service.in
3868 nodist_pkgsysconf_DATA += \
3869 src/journal-remote/journal-upload.conf
3872 src/journal-remote/journal-upload.conf.in
3875 src/journal-remote/journal-upload.conf
3878 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3879 journalctl_CFLAGS = \
3882 journalctl_SOURCES = \
3883 src/journal/journalctl.c
3885 journalctl_LDADD = \
3886 libsystemd-journal-internal.la \
3887 libsystemd-internal.la \
3888 libsystemd-logs.la \
3889 libsystemd-shared.la
3892 journalctl_LDADD += \
3897 journalctl_SOURCES += \
3898 src/journal/journal-qrcode.c \
3899 src/journal/journal-qrcode.h
3901 journalctl_CFLAGS += \
3904 journalctl_LDADD += \
3908 test_journal_SOURCES = \
3909 src/journal/test-journal.c
3911 test_journal_LDADD = \
3912 libsystemd-journal-core.la
3914 test_journal_send_SOURCES = \
3915 src/journal/test-journal-send.c
3917 test_journal_send_LDADD = \
3918 libsystemd-journal-core.la
3920 test_journal_syslog_SOURCES = \
3921 src/journal/test-journal-syslog.c
3923 test_journal_syslog_LDADD = \
3924 libsystemd-journal-core.la
3926 test_journal_match_SOURCES = \
3927 src/journal/test-journal-match.c
3929 test_journal_match_LDADD = \
3930 libsystemd-journal-core.la
3932 test_journal_enum_SOURCES = \
3933 src/journal/test-journal-enum.c
3935 test_journal_enum_LDADD = \
3936 libsystemd-journal-core.la
3938 test_journal_stream_SOURCES = \
3939 src/journal/test-journal-stream.c
3941 test_journal_stream_LDADD = \
3942 libsystemd-journal-core.la
3944 test_journal_flush_SOURCES = \
3945 src/journal/test-journal-flush.c
3947 test_journal_flush_LDADD = \
3948 libsystemd-journal-core.la
3950 test_journal_init_SOURCES = \
3951 src/journal/test-journal-init.c
3953 test_journal_init_LDADD = \
3954 libsystemd-journal-core.la
3956 test_journal_verify_SOURCES = \
3957 src/journal/test-journal-verify.c
3959 test_journal_verify_LDADD = \
3960 libsystemd-journal-core.la
3962 test_journal_interleaving_SOURCES = \
3963 src/journal/test-journal-interleaving.c
3965 test_journal_interleaving_LDADD = \
3966 libsystemd-journal-core.la
3968 test_mmap_cache_SOURCES = \
3969 src/journal/test-mmap-cache.c
3971 test_mmap_cache_LDADD = \
3972 libsystemd-journal-core.la
3974 test_catalog_SOURCES = \
3975 src/journal/test-catalog.c
3977 test_catalog_CPPFLAGS = \
3979 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3981 test_catalog_LDADD = \
3982 libsystemd-journal-core.la
3984 test_compress_SOURCES = \
3985 src/journal/test-compress.c
3987 test_compress_LDADD = \
3988 libsystemd-journal-internal.la \
3989 libsystemd-shared.la
3991 test_compress_benchmark_SOURCES = \
3992 src/journal/test-compress-benchmark.c
3994 test_compress_benchmark_LDADD = \
3995 libsystemd-journal-internal.la \
3996 libsystemd-shared.la
3998 libsystemd_journal_core_la_SOURCES = \
3999 src/journal/journald-kmsg.c \
4000 src/journal/journald-kmsg.h \
4001 src/journal/journald-syslog.c \
4002 src/journal/journald-syslog.h \
4003 src/journal/journald-stream.c \
4004 src/journal/journald-stream.h \
4005 src/journal/journald-server.c \
4006 src/journal/journald-server.h \
4007 src/journal/journald-console.c \
4008 src/journal/journald-console.h \
4009 src/journal/journald-wall.c \
4010 src/journal/journald-wall.h \
4011 src/journal/journald-native.c \
4012 src/journal/journald-native.h \
4013 src/journal/journald-rate-limit.c \
4014 src/journal/journald-rate-limit.h \
4015 src/journal/journal-internal.h
4017 nodist_libsystemd_journal_core_la_SOURCES = \
4018 src/journal/journald-gperf.c
4020 libsystemd_journal_core_la_LIBADD = \
4021 libsystemd-journal-internal.la \
4022 libudev-internal.la \
4023 libsystemd-capability.la \
4024 libsystemd-label.la \
4025 libsystemd-internal.la \
4026 libsystemd-shared.la
4029 libsystemd_journal_core_la_LIBADD += \
4033 noinst_LTLIBRARIES += \
4034 libsystemd-journal-core.la
4036 journal-install-hook:
4037 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4038 -chown 0:0 $(DESTDIR)/var/log/journal
4039 -chmod 755 $(DESTDIR)/var/log/journal
4040 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4041 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4043 journal-uninstall-hook:
4044 -rmdir $(DESTDIR)/var/log/journal/remote
4045 -rmdir $(DESTDIR)/var/log/journal/
4047 INSTALL_EXEC_HOOKS += journal-install-hook
4048 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4050 # ------------------------------------------------------------------------------
4051 # Update catalog on installation. Do not bother if installing
4052 # in DESTDIR, since this is likely for packaging purposes.
4053 catalog-update-hook:
4054 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4056 INSTALL_DATA_HOOKS += \
4059 catalog-remove-hook:
4060 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4062 UNINSTALL_DATA_HOOKS += \
4071 test-journal-syslog \
4072 test-journal-match \
4073 test-journal-stream \
4075 test-journal-verify \
4076 test-journal-interleaving \
4077 test-journal-flush \
4084 test-compress-benchmark
4087 pkginclude_HEADERS += \
4088 src/systemd/sd-journal.h \
4089 src/systemd/sd-messages.h \
4090 src/systemd/_sd-common.h
4092 libsystemd_journal_internal_la_SOURCES = \
4093 src/journal/sd-journal.c \
4094 src/systemd/sd-journal.h \
4095 src/systemd/_sd-common.h \
4096 src/journal/journal-file.c \
4097 src/journal/journal-file.h \
4098 src/journal/journal-vacuum.c \
4099 src/journal/journal-vacuum.h \
4100 src/journal/journal-verify.c \
4101 src/journal/journal-verify.h \
4102 src/journal/lookup3.c \
4103 src/journal/lookup3.h \
4104 src/journal/journal-send.c \
4105 src/journal/journal-def.h \
4106 src/journal/compress.h \
4107 src/journal/catalog.c \
4108 src/journal/catalog.h \
4109 src/journal/mmap-cache.c \
4110 src/journal/mmap-cache.h
4112 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4113 libsystemd_journal_internal_la_CFLAGS = \
4116 libsystemd_journal_internal_la_LIBADD =
4118 libsystemd_journal_internal_la_SOURCES += \
4119 src/journal/compress.c
4122 libsystemd_journal_internal_la_CFLAGS += \
4125 libsystemd_journal_internal_la_LIBADD += \
4130 libsystemd_journal_internal_la_LIBADD += \
4135 libsystemd_journal_internal_la_SOURCES += \
4136 src/journal/journal-authenticate.c \
4137 src/journal/journal-authenticate.h \
4138 src/journal/fsprg.c \
4141 libsystemd_journal_internal_la_LIBADD += \
4144 # fsprg.c is a drop-in file using void pointer arithmetic
4145 libsystemd_journal_internal_la_CFLAGS += \
4150 noinst_LTLIBRARIES += \
4151 libsystemd-journal-internal.la
4153 rootlibexec_PROGRAMS += \
4156 rootbin_PROGRAMS += \
4162 dist_systemunit_DATA += \
4163 units/systemd-journald.socket \
4164 units/systemd-journald-dev-log.socket
4166 nodist_systemunit_DATA += \
4167 units/systemd-journald.service \
4168 units/systemd-journal-flush.service \
4169 units/systemd-journal-catalog-update.service
4171 dist_pkgsysconf_DATA += \
4172 src/journal/journald.conf
4174 dist_catalog_DATA = \
4175 catalog/systemd.fr.catalog \
4176 catalog/systemd.it.catalog \
4177 catalog/systemd.pl.catalog \
4178 catalog/systemd.ru.catalog \
4179 catalog/systemd.catalog
4181 SOCKETS_TARGET_WANTS += \
4182 systemd-journald.socket \
4183 systemd-journald-dev-log.socket
4185 SYSINIT_TARGET_WANTS += \
4186 systemd-journald.service \
4187 systemd-journal-flush.service \
4188 systemd-journal-catalog-update.service
4191 units/systemd-journald.service.in \
4192 units/systemd-journal-flush.service.in \
4193 units/systemd-journal-catalog-update.service.in \
4194 src/journal/journald-gperf.gperf
4197 src/journal/journald-gperf.c
4199 # ------------------------------------------------------------------------------
4201 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4203 rootlibexec_PROGRAMS += \
4204 systemd-journal-gatewayd
4206 systemd_journal_gatewayd_SOURCES = \
4207 src/journal-remote/journal-gatewayd.c \
4208 src/journal-remote/microhttpd-util.h \
4209 src/journal-remote/microhttpd-util.c
4211 systemd_journal_gatewayd_LDADD = \
4212 libsystemd-logs.la \
4213 libsystemd-journal-internal.la \
4214 libsystemd-internal.la \
4215 libsystemd-shared.la \
4219 systemd_journal_gatewayd_LDADD += \
4223 systemd_journal_gatewayd_CFLAGS = \
4225 $(MICROHTTPD_CFLAGS)
4227 systemd_journal_gatewayd_CPPFLAGS = \
4229 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4231 dist_systemunit_DATA += \
4232 units/systemd-journal-gatewayd.socket
4234 nodist_systemunit_DATA += \
4235 units/systemd-journal-gatewayd.service
4237 dist_gatewayddocumentroot_DATA = \
4238 src/journal-remote/browse.html
4243 units/systemd-journal-gatewayd.service.in
4245 # ------------------------------------------------------------------------------
4247 systemd_socket_proxyd_SOURCES = \
4248 src/socket-proxy/socket-proxyd.c
4250 systemd_socket_proxyd_LDADD = \
4251 libsystemd-logs.la \
4252 libsystemd-internal.la \
4253 libsystemd-journal-internal.la \
4254 libsystemd-shared.la \
4255 libsystemd-resolve.la
4257 # ------------------------------------------------------------------------------
4259 systemd_coredump_SOURCES = \
4260 src/journal/coredump.c \
4261 src/journal/coredump-vacuum.c \
4262 src/journal/coredump-vacuum.h
4264 systemd_coredump_LDADD = \
4265 libsystemd-journal-internal.la \
4266 libsystemd-label.la \
4267 libsystemd-internal.la \
4268 libsystemd-shared.la
4271 systemd_coredump_SOURCES += \
4272 src/journal/stacktrace.c \
4273 src/journal/stacktrace.h
4275 systemd_coredump_LDADD += \
4279 rootlibexec_PROGRAMS += \
4282 dist_pkgsysconf_DATA += \
4283 src/journal/coredump.conf
4286 systemd_coredump_LDADD += \
4290 coredumpctl_SOURCES = \
4291 src/journal/coredumpctl.c
4293 coredumpctl_LDADD = \
4294 libsystemd-journal-internal.la \
4295 libsystemd-internal.la \
4296 libsystemd-shared.la
4302 test-coredump-vacuum
4304 test_coredump_vacuum_SOURCES = \
4305 src/journal/test-coredump-vacuum.c \
4306 src/journal/coredump-vacuum.c \
4307 src/journal/coredump-vacuum.h
4309 test_coredump_vacuum_LDADD = \
4310 libsystemd-internal.la \
4311 libsystemd-shared.la
4313 dist_bashcompletion_DATA += \
4314 shell-completion/bash/coredumpctl
4316 dist_zshcompletion_DATA += \
4317 shell-completion/zsh/_coredumpctl
4320 sysctl.d/50-coredump.conf
4323 sysctl.d/50-coredump.conf
4327 sysctl.d/50-coredump.conf.in
4329 # ------------------------------------------------------------------------------
4331 systemd_binfmt_SOURCES = \
4334 systemd_binfmt_LDADD = \
4335 libsystemd-shared.la
4337 rootlibexec_PROGRAMS += \
4340 dist_systemunit_DATA += \
4341 units/proc-sys-fs-binfmt_misc.automount \
4342 units/proc-sys-fs-binfmt_misc.mount
4344 nodist_systemunit_DATA += \
4345 units/systemd-binfmt.service
4348 $(prefix)/lib/binfmt.d \
4349 $(sysconfdir)/binfmt.d
4351 SYSINIT_TARGET_WANTS += \
4352 systemd-binfmt.service \
4353 proc-sys-fs-binfmt_misc.automount
4358 units/systemd-binfmt.service.in
4360 # ------------------------------------------------------------------------------
4362 systemd_vconsole_setup_SOURCES = \
4363 src/vconsole/vconsole-setup.c
4365 systemd_vconsole_setup_LDADD = \
4366 libsystemd-shared.la
4368 rootlibexec_PROGRAMS += \
4369 systemd-vconsole-setup
4371 nodist_systemunit_DATA += \
4372 units/systemd-vconsole-setup.service
4374 SYSINIT_TARGET_WANTS += \
4375 systemd-vconsole-setup.service
4379 units/systemd-vconsole-setup.service.in
4381 # ------------------------------------------------------------------------------
4383 systemd_bootchart_SOURCES = \
4384 src/bootchart/bootchart.c \
4385 src/bootchart/bootchart.h \
4386 src/bootchart/store.c \
4387 src/bootchart/store.h \
4388 src/bootchart/svg.c \
4391 systemd_bootchart_LDADD = \
4392 libsystemd-journal-internal.la \
4393 libsystemd-shared.la
4395 rootlibexec_PROGRAMS += \
4398 dist_pkgsysconf_DATA += \
4399 src/bootchart/bootchart.conf
4402 # ------------------------------------------------------------------------------
4403 if ENABLE_QUOTACHECK
4404 rootlibexec_PROGRAMS += \
4407 nodist_systemunit_DATA += \
4408 units/systemd-quotacheck.service
4410 systemd_quotacheck_SOURCES = \
4411 src/quotacheck/quotacheck.c
4413 systemd_quotacheck_LDADD = \
4414 libsystemd-shared.la
4418 units/systemd-quotacheck.service.in
4420 nodist_systemunit_DATA += \
4421 units/quotaon.service
4423 # ------------------------------------------------------------------------------
4424 if ENABLE_RANDOMSEED
4425 rootlibexec_PROGRAMS += \
4428 nodist_systemunit_DATA += \
4429 units/systemd-random-seed.service
4431 systemd_random_seed_SOURCES = \
4432 src/random-seed/random-seed.c
4434 systemd_random_seed_LDADD = \
4435 libsystemd-label.la \
4436 libsystemd-shared.la
4438 SYSINIT_TARGET_WANTS += \
4439 systemd-random-seed.service
4444 units/systemd-random-seed.service.in
4446 # ------------------------------------------------------------------------------
4448 rootlibexec_PROGRAMS += \
4451 nodist_systemunit_DATA += \
4452 units/systemd-backlight@.service
4454 systemd_backlight_SOURCES = \
4455 src/backlight/backlight.c
4457 systemd_backlight_LDADD = \
4458 libsystemd-label.la \
4459 libudev-internal.la \
4460 libsystemd-shared.la
4464 units/systemd-backlight@.service.in
4466 # ------------------------------------------------------------------------------
4468 rootlibexec_PROGRAMS += \
4471 nodist_systemunit_DATA += \
4472 units/systemd-rfkill@.service
4474 systemd_rfkill_SOURCES = \
4477 systemd_rfkill_LDADD = \
4478 libsystemd-label.la \
4479 libudev-internal.la \
4480 libsystemd-shared.la
4484 units/systemd-rfkill@.service.in
4486 # ------------------------------------------------------------------------------
4487 if HAVE_LIBCRYPTSETUP
4488 rootlibexec_PROGRAMS += \
4491 systemgenerator_PROGRAMS += \
4492 systemd-cryptsetup-generator
4494 dist_systemunit_DATA += \
4495 units/cryptsetup.target \
4496 units/cryptsetup-pre.target
4498 systemd_cryptsetup_SOURCES = \
4499 src/cryptsetup/cryptsetup.c
4501 systemd_cryptsetup_CFLAGS = \
4503 $(LIBCRYPTSETUP_CFLAGS)
4505 systemd_cryptsetup_LDADD = \
4506 libsystemd-label.la \
4507 libudev-internal.la \
4508 libsystemd-shared.la \
4509 $(LIBCRYPTSETUP_LIBS)
4511 systemd_cryptsetup_generator_SOURCES = \
4512 src/cryptsetup/cryptsetup-generator.c
4514 systemd_cryptsetup_generator_LDADD = \
4515 libsystemd-label.la \
4516 libsystemd-shared.la
4518 SYSINIT_TARGET_WANTS += \
4523 # ------------------------------------------------------------------------------
4525 systemd_hostnamed_SOURCES = \
4526 src/hostname/hostnamed.c
4528 systemd_hostnamed_LDADD = \
4529 libsystemd-label.la \
4530 libsystemd-internal.la \
4531 libsystemd-shared.la
4533 rootlibexec_PROGRAMS += \
4536 nodist_systemunit_DATA += \
4537 units/systemd-hostnamed.service
4539 dist_systemunit_DATA_busnames += \
4540 units/org.freedesktop.hostname1.busname
4542 dist_dbuspolicy_DATA += \
4543 src/hostname/org.freedesktop.hostname1.conf
4545 dist_dbussystemservice_DATA += \
4546 src/hostname/org.freedesktop.hostname1.service
4548 polkitpolicy_files += \
4549 src/hostname/org.freedesktop.hostname1.policy
4551 SYSTEM_UNIT_ALIASES += \
4552 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4554 BUSNAMES_TARGET_WANTS += \
4555 org.freedesktop.hostname1.busname
4557 hostnamectl_SOURCES = \
4558 src/hostname/hostnamectl.c
4560 hostnamectl_LDADD = \
4561 libsystemd-internal.la \
4562 libsystemd-shared.la
4567 dist_bashcompletion_DATA += \
4568 shell-completion/bash/hostnamectl
4570 dist_zshcompletion_DATA += \
4571 shell-completion/zsh/_hostnamectl
4575 polkitpolicy_in_files += \
4576 src/hostname/org.freedesktop.hostname1.policy.in
4579 units/systemd-hostnamed.service.in
4581 # ------------------------------------------------------------------------------
4582 dist_systemunit_DATA_busnames += \
4583 units/org.freedesktop.systemd1.busname
4585 BUSNAMES_TARGET_WANTS += \
4586 org.freedesktop.systemd1.busname
4588 # ------------------------------------------------------------------------------
4590 systemd_localed_SOURCES = \
4591 src/locale/localed.c
4593 systemd_localed_LDADD = \
4594 libsystemd-label.la \
4595 libsystemd-internal.la \
4596 libsystemd-shared.la
4598 nodist_systemunit_DATA += \
4599 units/systemd-localed.service
4601 dist_systemunit_DATA_busnames += \
4602 units/org.freedesktop.locale1.busname
4604 rootlibexec_PROGRAMS += \
4607 dist_dbuspolicy_DATA += \
4608 src/locale/org.freedesktop.locale1.conf
4610 dist_dbussystemservice_DATA += \
4611 src/locale/org.freedesktop.locale1.service
4613 polkitpolicy_files += \
4614 src/locale/org.freedesktop.locale1.policy
4616 SYSTEM_UNIT_ALIASES += \
4617 systemd-localed.service dbus-org.freedesktop.locale1.service
4619 BUSNAMES_TARGET_WANTS += \
4620 org.freedesktop.locale1.busname
4622 dist_pkgdata_DATA += \
4623 src/locale/kbd-model-map
4625 dist_noinst_SCRIPT = \
4626 src/locale/generate-kbd-model-map
4628 localectl_SOURCES = \
4629 src/locale/localectl.c
4632 libsystemd-internal.la \
4633 libsystemd-shared.la
4638 dist_bashcompletion_DATA += \
4639 shell-completion/bash/localectl
4641 dist_zshcompletion_DATA += \
4642 shell-completion/zsh/_localectl
4646 .PHONY: update-kbd-model-map
4648 polkitpolicy_in_files += \
4649 src/locale/org.freedesktop.locale1.policy.in
4652 units/systemd-localed.service.in
4654 # ------------------------------------------------------------------------------
4656 systemd_timedated_SOURCES = \
4657 src/timedate/timedated.c
4659 systemd_timedated_LDADD = \
4660 libsystemd-label.la \
4661 libsystemd-internal.la \
4662 libsystemd-shared.la
4664 rootlibexec_PROGRAMS += \
4667 dist_dbussystemservice_DATA += \
4668 src/timedate/org.freedesktop.timedate1.service
4670 dist_dbuspolicy_DATA += \
4671 src/timedate/org.freedesktop.timedate1.conf
4673 nodist_systemunit_DATA += \
4674 units/systemd-timedated.service
4676 dist_systemunit_DATA_busnames += \
4677 units/org.freedesktop.timedate1.busname
4679 polkitpolicy_files += \
4680 src/timedate/org.freedesktop.timedate1.policy
4682 SYSTEM_UNIT_ALIASES += \
4683 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4685 BUSNAMES_TARGET_WANTS += \
4686 org.freedesktop.timedate1.busname
4688 timedatectl_SOURCES = \
4689 src/timedate/timedatectl.c
4691 timedatectl_LDADD = \
4692 libsystemd-internal.la \
4693 libsystemd-shared.la
4698 dist_bashcompletion_DATA += \
4699 shell-completion/bash/timedatectl
4701 dist_zshcompletion_DATA += \
4702 shell-completion/zsh/_timedatectl
4705 polkitpolicy_in_files += \
4706 src/timedate/org.freedesktop.timedate1.policy.in
4709 units/systemd-timedated.service.in
4711 # ------------------------------------------------------------------------------
4713 systemd_timesyncd_SOURCES = \
4714 src/timesync/timesyncd.c \
4715 src/timesync/timesyncd-manager.c \
4716 src/timesync/timesyncd-manager.h \
4717 src/timesync/timesyncd-conf.c \
4718 src/timesync/timesyncd-conf.h \
4719 src/timesync/timesyncd-server.c \
4720 src/timesync/timesyncd-server.h
4722 nodist_systemd_timesyncd_SOURCES = \
4723 src/timesync/timesyncd-gperf.c
4726 src/timesync/timesyncd-gperf.gperf
4729 src/timesync/timesyncd-gperf.c
4731 systemd_timesyncd_LDADD = \
4732 libsystemd-resolve.la \
4733 libsystemd-network.la \
4734 libsystemd-label.la \
4735 libsystemd-capability.la \
4736 libsystemd-internal.la \
4737 libsystemd-shared.la \
4740 rootlibexec_PROGRAMS += \
4743 nodist_systemunit_DATA += \
4744 units/systemd-timesyncd.service
4746 GENERAL_ALIASES += \
4747 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4750 units/systemd-timesyncd.service.in
4752 nodist_pkgsysconf_DATA += \
4753 src/timesync/timesyncd.conf
4756 src/timesync/timesyncd.conf.in
4759 src/timesync/timesyncd.conf
4762 # ------------------------------------------------------------------------------
4764 libnss_myhostname_la_SOURCES = \
4765 src/nss-myhostname/nss-myhostname.sym \
4766 src/nss-myhostname/nss-myhostname.c
4768 libnss_myhostname_la_LDFLAGS = \
4775 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4777 libnss_myhostname_la_LIBADD = \
4778 libsystemd-shared.la \
4779 libsystemd-internal.la
4781 lib_LTLIBRARIES += \
4782 libnss_myhostname.la
4785 # ------------------------------------------------------------------------------
4787 systemd_machined_SOURCES = \
4788 src/machine/machined.c \
4789 src/machine/machined.h
4791 systemd_machined_LDADD = \
4792 libsystemd-machine-core.la
4794 rootlibexec_PROGRAMS += \
4797 libsystemd_machine_core_la_SOURCES = \
4798 src/machine/machined-dbus.c \
4799 src/machine/machine.c \
4800 src/machine/machine.h \
4801 src/machine/machine-dbus.c
4803 libsystemd_machine_core_la_LIBADD = \
4804 libsystemd-label.la \
4805 libsystemd-internal.la \
4806 libudev-internal.la \
4807 libsystemd-shared.la
4809 noinst_LTLIBRARIES += \
4810 libsystemd-machine-core.la
4812 machinectl_SOURCES = \
4813 src/machine/machinectl.c
4815 machinectl_LDADD = \
4816 libsystemd-internal.la \
4817 libsystemd-shared.la
4819 rootbin_PROGRAMS += \
4822 dist_bashcompletion_DATA += \
4823 shell-completion/bash/machinectl
4825 test_machine_tables_SOURCES = \
4826 src/machine/test-machine-tables.c
4828 test_machine_tables_LDADD = \
4829 libsystemd-machine-core.la
4834 nodist_systemunit_DATA += \
4835 units/systemd-machined.service
4837 dist_systemunit_DATA += \
4840 dist_systemunit_DATA_busnames += \
4841 units/org.freedesktop.machine1.busname
4843 dist_dbussystemservice_DATA += \
4844 src/machine/org.freedesktop.machine1.service
4846 dist_dbuspolicy_DATA += \
4847 src/machine/org.freedesktop.machine1.conf
4849 dist_zshcompletion_DATA += \
4850 shell-completion/zsh/_machinectl \
4851 shell-completion/zsh/_sd_machines
4853 SYSTEM_UNIT_ALIASES += \
4854 systemd-machined.service dbus-org.freedesktop.machine1.service
4856 BUSNAMES_TARGET_WANTS += \
4857 org.freedesktop.machine1.busname
4860 units/systemd-machined.service.in
4862 libnss_mymachines_la_SOURCES = \
4863 src/nss-mymachines/nss-mymachines.sym \
4864 src/nss-mymachines/nss-mymachines.c
4866 libnss_mymachines_la_LDFLAGS = \
4873 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4875 libnss_mymachines_la_LIBADD = \
4876 libsystemd-shared.la \
4877 libsystemd-internal.la
4879 lib_LTLIBRARIES += \
4880 libnss_mymachines.la
4883 # ------------------------------------------------------------------------------
4885 systemd_resolved_SOURCES = \
4886 src/resolve/resolved.c \
4887 src/resolve/resolved-manager.c \
4888 src/resolve/resolved-manager.h \
4889 src/resolve/resolved-conf.c \
4890 src/resolve/resolved-conf.h \
4891 src/resolve/resolved-bus.c \
4892 src/resolve/resolved-bus.h \
4893 src/resolve/resolved-link.h \
4894 src/resolve/resolved-link.c \
4895 src/resolve/resolved-def.h \
4896 src/resolve/resolved-dns-domain.h \
4897 src/resolve/resolved-dns-domain.c \
4898 src/resolve/resolved-dns-rr.h \
4899 src/resolve/resolved-dns-rr.c \
4900 src/resolve/resolved-dns-question.h \
4901 src/resolve/resolved-dns-question.c \
4902 src/resolve/resolved-dns-answer.h \
4903 src/resolve/resolved-dns-answer.c \
4904 src/resolve/resolved-dns-packet.h \
4905 src/resolve/resolved-dns-packet.c \
4906 src/resolve/resolved-dns-query.h \
4907 src/resolve/resolved-dns-query.c \
4908 src/resolve/resolved-dns-transaction.h \
4909 src/resolve/resolved-dns-transaction.c \
4910 src/resolve/resolved-dns-scope.h \
4911 src/resolve/resolved-dns-scope.c \
4912 src/resolve/resolved-dns-server.h \
4913 src/resolve/resolved-dns-server.c \
4914 src/resolve/resolved-dns-cache.h \
4915 src/resolve/resolved-dns-cache.c \
4916 src/resolve/resolved-dns-zone.h \
4917 src/resolve/resolved-dns-zone.c \
4918 src/resolve/resolved-dns-stream.h \
4919 src/resolve/resolved-dns-stream.c \
4920 src/resolve/dns-type.c \
4921 src/resolve/dns-type.h \
4922 src/resolve/dns_type-from-name.h \
4923 src/resolve/dns_type-to-name.h
4925 nodist_systemd_resolved_SOURCES = \
4926 src/resolve/resolved-gperf.c
4929 src/resolve/resolved-gperf.gperf \
4930 src/resolve/dns_type-from-name.gperf
4933 src/resolve/resolved-gperf.c
4935 systemd_resolved_LDADD = \
4936 libsystemd-capability.la \
4937 libsystemd-network.la \
4938 libsystemd-label.la \
4939 libsystemd-internal.la \
4940 libsystemd-shared.la \
4944 rootlibexec_PROGRAMS += \
4947 nodist_systemunit_DATA += \
4948 units/systemd-resolved.service
4950 dist_systemunit_DATA_busnames += \
4951 units/org.freedesktop.resolve1.busname
4953 dist_dbuspolicy_DATA += \
4954 src/resolve/org.freedesktop.resolve1.conf
4956 dist_dbussystemservice_DATA += \
4957 src/resolve/org.freedesktop.resolve1.service
4960 units/systemd-resolved.service.in
4962 SYSTEM_UNIT_ALIASES += \
4963 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4965 BUSNAMES_TARGET_WANTS += \
4966 org.freedesktop.resolve1.busname
4968 GENERAL_ALIASES += \
4969 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4971 nodist_pkgsysconf_DATA += \
4972 src/resolve/resolved.conf
4975 src/resolve/resolved.conf.in
4978 src/resolve/resolved.conf
4983 test_dns_domain_SOURCES = \
4984 src/resolve/resolved-dns-domain.h \
4985 src/resolve/resolved-dns-domain.c \
4986 src/resolve/test-dns-domain.c
4988 test_dns_domain_LDADD = \
4989 libsystemd-capability.la \
4990 libsystemd-network.la \
4991 libsystemd-label.la \
4992 libsystemd-internal.la \
4993 libsystemd-shared.la \
4996 libnss_resolve_la_SOURCES = \
4997 src/nss-resolve/nss-resolve.sym \
4998 src/nss-resolve/nss-resolve.c
5000 libnss_resolve_la_LDFLAGS = \
5007 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5009 libnss_resolve_la_LIBADD = \
5010 libsystemd-shared.la \
5011 libsystemd-internal.la
5013 lib_LTLIBRARIES += \
5016 systemd_resolve_host_SOURCES = \
5017 src/resolve-host/resolve-host.c \
5018 src/resolve/resolved-dns-packet.c \
5019 src/resolve/resolved-dns-packet.h \
5020 src/resolve/resolved-dns-rr.c \
5021 src/resolve/resolved-dns-rr.h \
5022 src/resolve/resolved-dns-answer.c \
5023 src/resolve/resolved-dns-answer.h \
5024 src/resolve/resolved-dns-question.c \
5025 src/resolve/resolved-dns-question.h \
5026 src/resolve/resolved-dns-domain.c \
5027 src/resolve/resolved-dns-domain.h \
5028 src/resolve/dns-type.c \
5029 src/resolve/dns-type.h \
5030 src/resolve/dns_type-from-name.h \
5031 src/resolve/dns_type-to-name.h
5033 systemd_resolve_host_LDADD = \
5034 libsystemd-internal.la \
5035 libsystemd-shared.la \
5039 rootlibexec_PROGRAMS += \
5040 systemd-resolve-host
5044 # ------------------------------------------------------------------------------
5046 rootlibexec_PROGRAMS += \
5049 systemd_networkd_SOURCES = \
5050 src/network/networkd.c
5052 systemd_networkd_LDADD = \
5053 libsystemd-networkd-core.la \
5054 libsystemd-capability.la
5056 noinst_LTLIBRARIES += \
5057 libsystemd-networkd-core.la
5059 libsystemd_networkd_core_la_CFLAGS = \
5062 libsystemd_networkd_core_la_SOURCES = \
5063 src/libsystemd-network/network-internal.h \
5064 src/network/networkd.h \
5065 src/network/networkd-link.h \
5066 src/network/networkd-netdev.h \
5067 src/network/networkd-netdev-tunnel.h \
5068 src/network/networkd-netdev-veth.h \
5069 src/network/networkd-netdev-vxlan.h \
5070 src/network/networkd-netdev-vlan.h \
5071 src/network/networkd-netdev-macvlan.h \
5072 src/network/networkd-netdev-dummy.h \
5073 src/network/networkd-netdev-tuntap.h \
5074 src/network/networkd-netdev-bond.h \
5075 src/network/networkd-netdev-bridge.h \
5076 src/network/networkd-netdev.c \
5077 src/network/networkd-netdev-tunnel.c \
5078 src/network/networkd-netdev-veth.c \
5079 src/network/networkd-netdev-vxlan.c \
5080 src/network/networkd-netdev-vlan.c \
5081 src/network/networkd-netdev-macvlan.c \
5082 src/network/networkd-netdev-dummy.c \
5083 src/network/networkd-netdev-tuntap.c \
5084 src/network/networkd-netdev-bond.c \
5085 src/network/networkd-netdev-bridge.c \
5086 src/network/networkd-link.c \
5087 src/network/networkd-ipv4ll.c \
5088 src/network/networkd-dhcp4.c \
5089 src/network/networkd-network.c \
5090 src/network/networkd-address.c \
5091 src/network/networkd-route.c \
5092 src/network/networkd-manager.c \
5093 src/network/networkd-address-pool.c
5095 nodist_libsystemd_networkd_core_la_SOURCES = \
5096 src/network/networkd-network-gperf.c \
5097 src/network/networkd-netdev-gperf.c
5099 libsystemd_networkd_core_la_LIBADD = \
5100 libudev-internal.la \
5101 libsystemd-internal.la \
5102 libsystemd-network.la \
5103 libsystemd-label.la \
5104 libsystemd-shared.la
5106 rootlibexec_PROGRAMS += \
5107 systemd-networkd-wait-online
5109 systemd_networkd_wait_online_CFLAGS = \
5112 systemd_networkd_wait_online_SOURCES = \
5113 src/libsystemd-network/network-internal.h \
5114 src/network/networkd-wait-online.h \
5115 src/network/networkd-wait-online-link.h \
5116 src/network/networkd-wait-online.c \
5117 src/network/networkd-wait-online-manager.c \
5118 src/network/networkd-wait-online-link.c
5120 systemd_networkd_wait_online_LDADD = \
5121 libsystemd-network.la \
5122 libudev-internal.la \
5123 libsystemd-internal.la \
5124 libsystemd-shared.la
5126 rootbin_PROGRAMS += \
5129 networkctl_SOURCES = \
5130 src/network/networkctl.c
5132 networkctl_LDADD = \
5133 libsystemd-internal.la \
5134 libudev-internal.la \
5135 libsystemd-shared.la \
5136 libsystemd-network.la
5138 test_network_SOURCES = \
5139 src/network/test-network.c
5141 test_network_CFLAGS = \
5144 test_network_LDADD = \
5145 libsystemd-networkd-core.la
5147 test_network_tables_SOURCES = \
5148 src/network/test-network-tables.c \
5149 src/shared/test-tables.h
5151 test_network_tables_LDADD = \
5152 libsystemd-networkd-core.la \
5159 nodist_systemunit_DATA += \
5160 units/systemd-networkd.service \
5161 units/systemd-networkd-wait-online.service
5163 GENERAL_ALIASES += \
5164 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5165 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5168 src/network/networkd-network-gperf.gperf \
5169 src/network/networkd-netdev-gperf.gperf \
5170 units/systemd-networkd.service.in \
5171 units/systemd-networkd-wait-online.service.in
5174 src/network/networkd-network-gperf.c \
5175 src/network/networkd-netdev-gperf.c
5178 # ------------------------------------------------------------------------------
5180 systemd_logind_SOURCES = \
5181 src/login/logind.c \
5184 nodist_systemd_logind_SOURCES = \
5185 src/login/logind-gperf.c
5187 systemd_logind_LDADD = \
5188 libsystemd-logind-core.la
5190 libsystemd_logind_core_la_SOURCES = \
5191 src/login/logind-core.c \
5192 src/login/logind-device.c \
5193 src/login/logind-device.h \
5194 src/login/logind-button.c \
5195 src/login/logind-button.h \
5196 src/login/logind-action.c \
5197 src/login/logind-action.h \
5198 src/login/logind-seat.c \
5199 src/login/logind-seat.h \
5200 src/login/logind-session.c \
5201 src/login/logind-session.h \
5202 src/login/logind-session-device.c \
5203 src/login/logind-session-device.h \
5204 src/login/logind-user.c \
5205 src/login/logind-user.h \
5206 src/login/logind-inhibit.c \
5207 src/login/logind-inhibit.h \
5208 src/login/logind-dbus.c \
5209 src/login/logind-session-dbus.c \
5210 src/login/logind-seat-dbus.c \
5211 src/login/logind-user-dbus.c \
5212 src/login/logind-acl.h
5214 libsystemd_logind_core_la_LIBADD = \
5215 libsystemd-label.la \
5216 libsystemd-capability.la \
5217 libsystemd-internal.la \
5218 libudev-internal.la \
5219 libsystemd-shared.la
5222 libsystemd_logind_core_la_SOURCES += \
5223 src/login/logind-acl.c
5225 libsystemd_logind_core_la_LIBADD += \
5229 noinst_LTLIBRARIES += \
5230 libsystemd-logind-core.la
5232 systemd_user_sessions_SOURCES = \
5233 src/login/user-sessions.c
5235 systemd_user_sessions_LDADD = \
5236 libsystemd-shared.la
5238 rootlibexec_PROGRAMS += \
5240 systemd-user-sessions
5242 loginctl_SOURCES = \
5243 src/login/loginctl.c \
5244 src/login/sysfs-show.c
5247 libsystemd-internal.la \
5248 libudev-internal.la \
5249 libsystemd-shared.la
5251 rootbin_PROGRAMS += \
5254 dist_bashcompletion_DATA += \
5255 shell-completion/bash/loginctl
5257 dist_zshcompletion_DATA += \
5258 shell-completion/zsh/_loginctl \
5259 shell-completion/zsh/_systemd-inhibit
5261 systemd_inhibit_SOURCES = \
5264 systemd_inhibit_LDADD = \
5265 libsystemd-internal.la \
5266 libsystemd-shared.la
5268 rootbin_PROGRAMS += \
5271 test_login_SOURCES = \
5272 src/libsystemd/sd-login/test-login.c
5274 test_login_LDADD = \
5275 libsystemd-internal.la \
5276 libsystemd-shared.la
5278 test_login_shared_SOURCES = \
5279 src/login/test-login-shared.c
5281 test_login_shared_LDADD = \
5282 libsystemd-internal.la \
5283 libsystemd-shared.la
5285 test_inhibit_SOURCES = \
5286 src/login/test-inhibit.c
5288 test_inhibit_LDADD = \
5289 libsystemd-internal.la \
5290 libsystemd-shared.la
5292 test_login_tables_SOURCES = \
5293 src/login/test-login-tables.c
5295 test_login_tables_LDADD = \
5296 libsystemd-logind-core.la
5307 pam_systemd_la_SOURCES = \
5308 src/login/pam_systemd.sym \
5309 src/login/pam_systemd.c
5311 pam_systemd_la_CFLAGS = \
5316 pam_systemd_la_LDFLAGS = \
5322 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5324 pam_systemd_la_LIBADD = \
5325 libsystemd-capability.la \
5326 libsystemd-internal.la \
5327 libsystemd-shared.la \
5330 pamlib_LTLIBRARIES = \
5333 dist_pamconf_DATA = \
5334 src/login/systemd-user
5337 nodist_systemunit_DATA += \
5338 units/systemd-logind.service \
5339 units/systemd-user-sessions.service
5341 dist_systemunit_DATA += \
5344 dist_systemunit_DATA_busnames += \
5345 units/org.freedesktop.login1.busname
5347 dist_dbussystemservice_DATA += \
5348 src/login/org.freedesktop.login1.service
5350 dist_dbuspolicy_DATA += \
5351 src/login/org.freedesktop.login1.conf
5353 dist_pkgsysconf_DATA += \
5354 src/login/logind.conf
5356 polkitpolicy_files += \
5357 src/login/org.freedesktop.login1.policy
5362 MULTI_USER_TARGET_WANTS += \
5363 systemd-logind.service \
5364 systemd-user-sessions.service
5366 SYSTEM_UNIT_ALIASES += \
5367 systemd-logind.service dbus-org.freedesktop.login1.service
5369 BUSNAMES_TARGET_WANTS += \
5370 org.freedesktop.login1.busname
5372 if ENABLE_MULTI_SEAT_X
5374 systemd_multi_seat_x_SOURCES = \
5375 src/login/multi-seat-x.c
5377 systemd_multi_seat_x_LDADD = \
5378 libsystemd-label.la \
5379 libsystemd-shared.la
5381 rootlibexec_PROGRAMS += \
5382 systemd-multi-seat-x
5386 dist_udevrules_DATA += \
5387 src/login/70-uaccess.rules \
5388 src/login/70-power-switch.rules
5390 nodist_udevrules_DATA += \
5391 src/login/71-seat.rules \
5392 src/login/73-seat-late.rules
5395 src/login/logind-gperf.c \
5396 src/login/71-seat.rules \
5397 src/login/73-seat-late.rules
5400 polkitpolicy_in_files += \
5401 src/login/org.freedesktop.login1.policy.in
5404 src/login/logind-gperf.gperf \
5405 src/login/71-seat.rules.in \
5406 src/login/73-seat-late.rules.in \
5407 units/systemd-logind.service.in \
5408 units/systemd-user-sessions.service.in
5410 # ------------------------------------------------------------------------------
5411 if HAVE_PYTHON_DEVEL
5412 pkgpyexec_LTLIBRARIES = \
5419 _journal_la_SOURCES = \
5420 src/python-systemd/_journal.c
5422 _journal_la_CFLAGS = \
5424 -fvisibility=default \
5425 $(PYTHON_DEVEL_CFLAGS)
5427 _journal_la_LDFLAGS = \
5433 _journal_la_LIBADD = \
5434 $(PYTHON_DEVEL_LIBS) \
5437 id128_la_SOURCES = \
5438 src/python-systemd/id128.c \
5439 src/python-systemd/pyutil.c \
5440 src/python-systemd/pyutil.h
5442 nodist_id128_la_SOURCES = \
5443 src/python-systemd/id128-constants.h
5447 -fvisibility=default \
5448 $(PYTHON_DEVEL_CFLAGS) \
5449 -I$(top_builddir)/src/python-systemd
5451 id128_la_LDFLAGS = \
5458 $(PYTHON_DEVEL_LIBS) \
5459 libsystemd-shared.la \
5462 _daemon_la_SOURCES = \
5463 src/python-systemd/_daemon.c \
5464 src/python-systemd/pyutil.c \
5465 src/python-systemd/pyutil.h
5467 _daemon_la_CFLAGS = \
5469 -fvisibility=default \
5470 $(PYTHON_DEVEL_CFLAGS) \
5471 -I$(top_builddir)/src/python-systemd
5473 _daemon_la_LDFLAGS = \
5479 _daemon_la_LIBADD = \
5480 $(PYTHON_DEVEL_LIBS) \
5481 libsystemd-shared.la \
5484 _reader_la_SOURCES = \
5485 src/python-systemd/_reader.c \
5486 src/python-systemd/pyutil.c \
5487 src/python-systemd/pyutil.h
5489 _reader_la_CFLAGS = \
5491 -fvisibility=default \
5492 $(PYTHON_DEVEL_CFLAGS)
5494 _reader_la_LDFLAGS = \
5500 _reader_la_LIBADD = \
5501 $(PYTHON_DEVEL_LIBS) \
5502 libsystemd-shared.la \
5505 login_la_SOURCES = \
5506 src/python-systemd/login.c \
5507 src/python-systemd/pyutil.c \
5508 src/python-systemd/pyutil.h
5512 -fvisibility=default \
5513 $(PYTHON_DEVEL_CFLAGS)
5515 login_la_LDFLAGS = \
5522 $(PYTHON_DEVEL_LIBS) \
5523 libsystemd-shared.la \
5526 dist_pkgpyexec_PYTHON = \
5527 src/python-systemd/journal.py \
5528 src/python-systemd/daemon.py \
5529 src/python-systemd/__init__.py
5531 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5532 $(AM_V_at)$(MKDIR_P) $(dir $@)
5533 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5536 src/python-systemd/id128-constants.h
5538 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5540 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5541 $(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/
5542 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5545 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5546 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5549 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5550 $(MAKE) DESTDIR="$$dir" install && \
5551 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5556 CLEAN_LOCAL_HOOKS += clean-sphinx
5558 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5561 -rm -rf docs/html/python-systemd/
5563 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5565 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5566 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5568 # ------------------------------------------------------------------------------
5569 if ENABLE_COMPAT_LIBS
5571 src/compat-libs/linkwarning.h
5573 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5574 $(AM_V_at)$(MKDIR_P) $(dir $@)
5575 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5578 libsystemd-journal.c \
5579 libsystemd-login.c \
5580 libsystemd-id128.c \
5583 libsystemd_journal_la_SOURCES = \
5584 libsystemd-journal.c \
5585 src/compat-libs/libsystemd-journal.sym
5587 libsystemd_journal_la_CPPFLAGS = \
5589 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5591 libsystemd_journal_la_LDFLAGS = \
5593 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5594 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5596 libsystemd_journal_la_LIBADD = \
5597 libsystemd-journal-internal.la \
5598 libsystemd-internal.la \
5599 libsystemd-shared.la
5601 libsystemd_login_la_SOURCES = \
5602 libsystemd-login.c \
5603 src/compat-libs/libsystemd-login.sym
5605 libsystemd_login_la_CPPFLAGS = \
5607 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5609 libsystemd_login_la_LDFLAGS = \
5611 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5612 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5614 libsystemd_login_la_LIBADD = \
5615 libsystemd-internal.la \
5616 libsystemd-shared.la
5618 libsystemd_id128_la_SOURCES = \
5619 libsystemd-id128.c \
5620 src/compat-libs/libsystemd-id128.sym
5622 libsystemd_id128_la_CPPFLAGS = \
5624 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5626 libsystemd_id128_la_LDFLAGS = \
5628 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5629 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5631 libsystemd_id128_la_LIBADD = \
5632 libsystemd-internal.la \
5633 libsystemd-shared.la
5635 libsystemd_daemon_la_SOURCES = \
5636 libsystemd-daemon.c \
5637 src/compat-libs/libsystemd-daemon.sym
5639 libsystemd_daemon_la_CPPFLAGS = \
5641 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5643 libsystemd_daemon_la_LDFLAGS = \
5645 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5646 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5648 libsystemd_daemon_la_LIBADD = \
5649 libsystemd-internal.la \
5650 libsystemd-shared.la
5652 lib_LTLIBRARIES += \
5653 libsystemd-journal.la \
5654 libsystemd-login.la \
5655 libsystemd-id128.la \
5656 libsystemd-daemon.la
5658 pkgconfiglib_DATA += \
5659 src/compat-libs/libsystemd-journal.pc \
5660 src/compat-libs/libsystemd-login.pc \
5661 src/compat-libs/libsystemd-id128.pc \
5662 src/compat-libs/libsystemd-daemon.pc
5664 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5665 compat-lib-install-hook:
5666 libname=libsystemd-login.so && $(move-to-rootlibdir)
5667 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5668 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5669 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5671 compat-lib-uninstall-hook:
5672 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5673 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5674 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5675 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5677 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5678 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5682 src/compat-libs/libsystemd-journal.pc.in \
5683 src/compat-libs/libsystemd-login.pc.in \
5684 src/compat-libs/libsystemd-id128.pc.in \
5685 src/compat-libs/libsystemd-daemon.pc.in
5687 # ------------------------------------------------------------------------------
5689 '|rootlibexecdir=$(rootlibexecdir)|' \
5690 '|rootbindir=$(rootbindir)|' \
5691 '|bindir=$(bindir)|' \
5692 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5693 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5694 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5695 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5696 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5697 '|pkgdatadir=$(pkgdatadir)|' \
5698 '|systemunitdir=$(systemunitdir)|' \
5699 '|userunitdir=$(userunitdir)|' \
5700 '|systempresetdir=$(systempresetdir)|' \
5701 '|userpresetdir=$(userpresetdir)|' \
5702 '|udevhwdbdir=$(udevhwdbdir)|' \
5703 '|udevrulesdir=$(udevrulesdir)|' \
5704 '|catalogdir=$(catalogdir)|' \
5705 '|tmpfilesdir=$(tmpfilesdir)|' \
5706 '|sysusersdir=$(sysusersdir)|' \
5707 '|sysctldir=$(sysctldir)|' \
5708 '|systemgeneratordir=$(systemgeneratordir)|' \
5709 '|usergeneratordir=$(usergeneratordir)|' \
5710 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5711 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5712 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5713 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5714 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5715 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5716 '|prefix=$(prefix)|' \
5717 '|exec_prefix=$(exec_prefix)|' \
5718 '|libdir=$(libdir)|' \
5719 '|includedir=$(includedir)|' \
5720 '|VERSION=$(VERSION)|' \
5721 '|rootprefix=$(rootprefix)|' \
5722 '|udevlibexecdir=$(udevlibexecdir)|' \
5723 '|SUSHELL=$(SUSHELL)|' \
5724 '|DEBUGTTY=$(DEBUGTTY)|' \
5727 '|MKDIR_P=$(MKDIR_P)|' \
5728 '|QUOTAON=$(QUOTAON)|' \
5729 '|QUOTACHECK=$(QUOTACHECK)|' \
5730 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5731 '|VARLOGDIR=$(varlogdir)|' \
5732 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5733 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5734 '|PYTHON=$(PYTHON)|' \
5735 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5736 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5737 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5738 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5739 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5740 '|TTY_GID=$(TTY_GID)|' \
5741 '|systemsleepdir=$(systemsleepdir)|' \
5742 '|systemshutdowndir=$(systemshutdowndir)|' \
5743 '|binfmtdir=$(binfmtdir)|' \
5744 '|modulesloaddir=$(modulesloaddir)|'
5747 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5748 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5757 sysctl.d/%: sysctl.d/%.in
5766 src/core/macros.%: src/core/macros.%.in
5769 src/%.policy.in: src/%.policy.in.in
5772 shell-completion/%: shell-completion/%.in
5783 $(AM_V_GEN)chmod +x $@
5785 src/%.c: src/%.gperf
5786 $(AM_V_at)$(MKDIR_P) $(dir $@)
5787 $(AM_V_GPERF)$(GPERF) < $< > $@
5790 $(AM_V_at)$(MKDIR_P) $(dir $@)
5791 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5793 tmpfiles.d/%: tmpfiles.d/%.m4
5794 $(AM_V_at)$(MKDIR_P) $(dir $@)
5795 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5799 $(AM_V_at)$(MKDIR_P) $(dir $@)
5800 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5802 units/user/%: units/%.m4
5803 $(AM_V_at)$(MKDIR_P) $(dir $@)
5804 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5807 nodist_polkitpolicy_DATA = \
5808 $(polkitpolicy_files) \
5809 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5813 $(polkitpolicy_in_files) \
5814 $(polkitpolicy_in_in_files)
5817 $(nodist_systemunit_DATA) \
5818 $(nodist_userunit_DATA) \
5819 $(pkgconfigdata_DATA) \
5820 $(pkgconfiglib_DATA) \
5821 $(nodist_polkitpolicy_DATA)
5823 # ------------------------------------------------------------------------------
5825 man/custom-entities.ent: configure.ac
5826 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5827 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5828 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5832 man/custom-entities.ent
5837 --stringparam man.output.quietly 1 \
5838 --stringparam funcsynopsis.style ansi \
5839 --stringparam man.authors.section.enabled 0 \
5840 --stringparam man.copyright.section.enabled 0 \
5841 --stringparam systemd.version $(VERSION) \
5842 --path '$(builddir)/man:$(srcdir)/man'
5844 XSLTPROC_PROCESS_MAN = \
5845 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5847 XSLTPROC_PROCESS_HTML = \
5848 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5850 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5851 $(XSLTPROC_PROCESS_MAN)
5853 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5854 $(XSLTPROC_PROCESS_MAN)
5856 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5857 $(XSLTPROC_PROCESS_MAN)
5859 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5860 $(XSLTPROC_PROCESS_MAN)
5862 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5863 $(XSLTPROC_PROCESS_MAN)
5865 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5866 $(XSLTPROC_PROCESS_HTML)
5869 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5875 man/custom-html.xsl \
5878 # ------------------------------------------------------------------------------
5881 docs/sysvinit/README
5886 docs/sysvinit/README: docs/sysvinit/README.in
5889 docs/var-log/README: docs/var-log/README.in
5893 docs/sysvinit/README \
5898 docs/sysvinit/README.in \
5899 docs/var-log/README.in
5901 SOCKETS_TARGET_WANTS += \
5902 systemd-initctl.socket \
5903 systemd-shutdownd.socket
5907 RUNLEVEL1_TARGET_WANTS += \
5908 systemd-update-utmp-runlevel.service
5909 RUNLEVEL2_TARGET_WANTS += \
5910 systemd-update-utmp-runlevel.service
5911 RUNLEVEL3_TARGET_WANTS += \
5912 systemd-update-utmp-runlevel.service
5913 RUNLEVEL4_TARGET_WANTS += \
5914 systemd-update-utmp-runlevel.service
5915 RUNLEVEL5_TARGET_WANTS += \
5916 systemd-update-utmp-runlevel.service
5919 SYSINIT_TARGET_WANTS += \
5920 systemd-update-utmp.service
5923 SYSINIT_TARGET_WANTS += \
5924 systemd-update-done.service
5926 LOCAL_FS_TARGET_WANTS += \
5927 systemd-remount-fs.service \
5930 MULTI_USER_TARGET_WANTS += \
5932 systemd-ask-password-wall.path
5934 SYSINIT_TARGET_WANTS += \
5935 dev-hugepages.mount \
5937 sys-kernel-config.mount \
5938 sys-kernel-debug.mount \
5939 sys-fs-fuse-connections.mount \
5940 systemd-sysctl.service \
5941 systemd-ask-password-console.path
5944 SYSTEM_UNIT_ALIASES += \
5945 poweroff.target runlevel0.target \
5946 rescue.target runlevel1.target \
5947 multi-user.target runlevel2.target \
5948 multi-user.target runlevel3.target \
5949 multi-user.target runlevel4.target \
5950 graphical.target runlevel5.target \
5951 reboot.target runlevel6.target
5954 SYSTEM_UNIT_ALIASES += \
5955 graphical.target default.target \
5956 reboot.target ctrl-alt-del.target \
5957 getty@.service autovt@.service
5959 USER_UNIT_ALIASES += \
5960 $(systemunitdir)/shutdown.target shutdown.target \
5961 $(systemunitdir)/sockets.target sockets.target \
5962 $(systemunitdir)/timers.target timers.target \
5963 $(systemunitdir)/paths.target paths.target \
5964 $(systemunitdir)/bluetooth.target bluetooth.target \
5965 $(systemunitdir)/printer.target printer.target \
5966 $(systemunitdir)/sound.target sound.target \
5967 $(systemunitdir)/smartcard.target smartcard.target
5970 USER_UNIT_ALIASES += \
5971 $(systemunitdir)/busnames.target busnames.target
5974 GENERAL_ALIASES += \
5975 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5976 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5977 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5978 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5982 $(systemunitdir)/runlevel1.target.wants \
5983 $(systemunitdir)/runlevel2.target.wants \
5984 $(systemunitdir)/runlevel3.target.wants \
5985 $(systemunitdir)/runlevel4.target.wants \
5986 $(systemunitdir)/runlevel5.target.wants
5990 $(prefix)/lib/modules-load.d \
5991 $(sysconfdir)/modules-load.d \
5992 $(prefix)/lib/systemd/network \
5993 $(sysconfdir)/systemd/network \
5994 $(prefix)/lib/sysctl.d \
5995 $(sysconfdir)/sysctl.d \
5996 $(prefix)/lib/kernel/install.d \
5997 $(sysconfdir)/kernel/install.d \
5998 $(systemshutdowndir) \
6000 $(systemgeneratordir) \
6001 $(usergeneratordir) \
6004 $(pkgsysconfdir)/system \
6005 $(pkgsysconfdir)/system/multi-user.target.wants \
6006 $(pkgsysconfdir)/system/getty.target.wants \
6007 $(pkgsysconfdir)/user \
6008 $(dbussessionservicedir) \
6009 $(sysconfdir)/xdg/systemd
6011 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6013 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6015 install-data-hook: $(INSTALL_DATA_HOOKS)
6017 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6019 clean-local: $(CLEAN_LOCAL_HOOKS)
6020 rm -rf $(abs_srcdir)/install-tree
6021 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6022 $(abs_srcdir)/hwdb/iab.txt
6024 DISTCHECK_CONFIGURE_FLAGS = \
6025 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6026 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6027 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6028 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6029 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6030 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6031 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6032 --with-rootprefix=$$dc_install_base \
6033 --disable-split-usr \
6035 --enable-compat-libs
6038 DISTCHECK_CONFIGURE_FLAGS += \
6039 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6040 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6042 DISTCHECK_CONFIGURE_FLAGS += \
6043 --with-sysvinit-path= \
6044 --with-sysvrcnd-path=
6048 DISTCHECK_CONFIGURE_FLAGS += \
6053 DISTCHECK_CONFIGURE_FLAGS += \
6058 # Require python when making dist
6060 .PHONY: dist-check-python
6063 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6067 dist-check-compat-libs:
6068 if !ENABLE_COMPAT_LIBS
6069 @echo "*** compat-libs must be enabled in order to make dist"
6073 dist: dist-check-python dist-check-compat-libs
6075 # check "broken" platforms limited toolchains for link breakage before we release
6078 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6082 ( cd $(top_srcdir)/hwdb && \
6083 wget -N http://www.linux-usb.org/usb.ids \
6084 http://pci-ids.ucw.cz/v2.2/pci.ids \
6085 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6086 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6089 .PHONY: kdbus-update
6091 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6092 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6096 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6098 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6100 upload: all check dist
6101 scp systemd-$(VERSION).tar.xz $(www_target)
6104 doc-sync: all destdir-sphinx
6105 gtkdoc-rebase --html-dir=docs/libudev/html --online
6106 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6107 gtkdoc-rebase --html-dir=docs/gudev/html --online
6108 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6109 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6110 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6114 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6115 scp man/*.html tango:public/systemd-man/
6117 .PHONY: install-tree
6119 rm -rf $(abs_srcdir)/install-tree
6120 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6121 tree $(abs_srcdir)/install-tree
6123 # Let's run all tests of the test suite, but under valgrind. Let's
6124 # exclude the one perl script we have in there
6125 .PHONY: valgrind-tests
6126 valgrind-tests: $(TESTS)
6127 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6128 if file $$f | grep -q shell; then \
6129 echo -e "$${x}Skipping non-binary $$f"; else \
6130 echo -e "$${x}Running $$f"; \
6131 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6136 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6138 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6139 $(AM_V_GEN)cat $^ > $@
6141 .PHONY: check-api-docs
6142 check-api-docs: exported man
6143 $(AM_V_GEN)for symbol in `cat exported` ; do \
6144 if test -f $(builddir)/man/$$symbol.html ; then \
6145 echo " Symbol $$symbol() is documented." ; \
6147 echo "‣ Symbol $$symbol() lacks documentation." ; \
6151 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6152 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6154 undefined defined: $(ALL_OBJECTS)
6155 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6156 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6157 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6163 .PHONY: check-api-unused
6164 check-api-unused: defined undefined exported
6165 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6167 .PHONY: check-includes
6168 check-includes: $(top_srcdir)/tools/check-includes.pl
6169 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6170 | xargs $(top_srcdir)/tools/check-includes.pl
6173 $(top_srcdir)/tools/check-includes.pl
6175 # Stupid test that everything purported to be exported really is
6176 define generate-sym-test
6177 $(AM_V_at)$(MKDIR_P) $(dir $@)
6178 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6179 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6180 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6181 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6182 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6183 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6184 $(AM_V_at)printf 'return 0; }\n' >> $@
6187 test-libsystemd-sym.c: \
6188 $(top_builddir)/src/libsystemd/libsystemd.sym \
6189 src/systemd/sd-journal.h \
6190 src/systemd/sd-daemon.h \
6191 src/systemd/sd-login.h \
6192 src/systemd/sd-bus.h \
6193 src/systemd/sd-utf8.h \
6194 src/systemd/sd-resolve.h \
6195 src/systemd/sd-path.h
6196 $(generate-sym-test)
6198 test-libudev-sym.c: \
6199 src/libudev/libudev.sym \
6201 $(generate-sym-test)
6203 test_libsystemd_sym_SOURCES = \
6204 test-libsystemd-sym.c
6205 test_libsystemd_sym_LDADD = \
6208 test_libudev_sym_SOURCES = \
6210 test_libudev_sym_CFLAGS = \
6212 -Wno-deprecated-declarations
6213 test_libudev_sym_LDADD = \
6217 $(test_libsystemd_sym_SOURCES) \
6218 $(test_libudev_sym_SOURCES)
6221 test-libsystemd-sym \
6226 cppcheck --enable=all -q $(top_srcdir)
6228 # Used to extract compile flags for YCM.
6233 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u