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
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
50 # The following four libraries only exist for compatibility reasons,
51 # their version info should not be bumped anymore
52 LIBSYSTEMD_LOGIN_CURRENT=9
53 LIBSYSTEMD_LOGIN_REVISION=3
54 LIBSYSTEMD_LOGIN_AGE=9
56 LIBSYSTEMD_DAEMON_CURRENT=0
57 LIBSYSTEMD_DAEMON_REVISION=12
58 LIBSYSTEMD_DAEMON_AGE=0
60 LIBSYSTEMD_ID128_CURRENT=0
61 LIBSYSTEMD_ID128_REVISION=28
62 LIBSYSTEMD_ID128_AGE=0
64 LIBSYSTEMD_JOURNAL_CURRENT=11
65 LIBSYSTEMD_JOURNAL_REVISION=5
66 LIBSYSTEMD_JOURNAL_AGE=11
68 # Dirs of external packages
69 dbuspolicydir=@dbuspolicydir@
70 dbussessionservicedir=@dbussessionservicedir@
71 dbussystemservicedir=@dbussystemservicedir@
73 pamconfdir=@pamconfdir@
74 pkgconfigdatadir=$(datadir)/pkgconfig
75 pkgconfiglibdir=$(libdir)/pkgconfig
76 polkitpolicydir=$(datadir)/polkit-1/actions
77 bashcompletiondir=@bashcompletiondir@
78 zshcompletiondir=@zshcompletiondir@
79 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
80 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
81 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
82 varlogdir=$(localstatedir)/log
83 systemdstatedir=$(localstatedir)/lib/systemd
84 catalogstatedir=$(systemdstatedir)/catalog
86 # Our own, non-special dirs
87 pkgsysconfdir=$(sysconfdir)/systemd
88 userunitdir=$(prefix)/lib/systemd/user
89 userpresetdir=$(prefix)/lib/systemd/user-preset
90 tmpfilesdir=$(prefix)/lib/tmpfiles.d
91 sysusersdir=$(prefix)/lib/sysusers.d
92 sysctldir=$(prefix)/lib/sysctl.d
93 networkdir=$(rootprefix)/lib/systemd/network
94 pkgincludedir=$(includedir)/systemd
95 systemgeneratordir=$(rootlibexecdir)/system-generators
96 usergeneratordir=$(prefix)/lib/systemd/user-generators
97 systemshutdowndir=$(rootlibexecdir)/system-shutdown
98 systemsleepdir=$(rootlibexecdir)/system-sleep
99 systemunitdir=$(rootprefix)/lib/systemd/system
100 systempresetdir=$(rootprefix)/lib/systemd/system-preset
101 udevlibexecdir=$(rootprefix)/lib/udev
102 udevhomedir=$(udevlibexecdir)
103 udevrulesdir=$(udevlibexecdir)/rules.d
104 udevhwdbdir=$(udevlibexecdir)/hwdb.d
105 catalogdir=$(prefix)/lib/systemd/catalog
106 kernelinstalldir = $(prefix)/lib/kernel/install.d
107 ntpunitsdir=$(prefix)/lib/systemd/ntp-units.d
109 # And these are the special ones for /
110 rootprefix=@rootprefix@
111 rootbindir=$(rootprefix)/bin
112 rootlibexecdir=$(rootprefix)/lib/systemd
114 CLEANFILES = $(BUILT_SOURCES)
119 UNINSTALL_EXEC_HOOKS =
121 UNINSTALL_DATA_HOOKS =
122 DISTCLEAN_LOCAL_HOOKS =
130 polkitpolicy_in_in_files =
131 polkitpolicy_in_files =
133 dist_udevrules_DATA =
134 nodist_udevrules_DATA =
135 nodist_pkgsysconf_DATA =
136 dist_pkgsysconf_DATA =
138 dist_dbuspolicy_DATA =
139 dist_dbussystemservice_DATA =
145 noinst_PROGRAMS = $(manual_tests) $(tests)
151 udevlibexec_PROGRAMS =
153 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
154 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
155 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
158 -include $(top_builddir)/config.h \
159 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
160 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
161 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
162 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
163 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
164 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
165 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
166 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
167 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
168 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
169 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
170 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
171 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
172 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
173 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
174 -DROOTPREFIX=\"$(rootprefix)\" \
175 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
176 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
177 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
178 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
179 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
180 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
181 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
182 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
183 -DX_SERVER=\"$(bindir)/X\" \
184 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
185 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
186 -DQUOTACHECK=\"$(QUOTACHECK)\" \
187 -DKEXEC=\"$(KEXEC)\" \
188 -I $(top_srcdir)/src \
189 -I $(top_builddir)/src/shared \
190 -I $(top_srcdir)/src/shared \
191 -I $(top_srcdir)/src/network \
192 -I $(top_srcdir)/src/login \
193 -I $(top_srcdir)/src/journal \
194 -I $(top_srcdir)/src/timedate \
195 -I $(top_srcdir)/src/timesync \
196 -I $(top_srcdir)/src/resolve \
197 -I $(top_srcdir)/src/systemd \
198 -I $(top_builddir)/src/core \
199 -I $(top_srcdir)/src/core \
200 -I $(top_srcdir)/src/libudev \
201 -I $(top_srcdir)/src/udev \
202 -I $(top_srcdir)/src/udev/net \
203 -I $(top_builddir)/src/udev \
204 -I $(top_srcdir)/src/libsystemd/sd-bus \
205 -I $(top_srcdir)/src/libsystemd/sd-event \
206 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
207 -I $(top_srcdir)/src/libsystemd-network \
210 AM_CFLAGS = $(OUR_CFLAGS)
211 AM_LDFLAGS = $(OUR_LDFLAGS)
213 # ------------------------------------------------------------------------------
214 define move-to-rootlibdir
215 if test "$(libdir)" != "$(rootlibdir)"; then \
216 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
217 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
218 rm -f $(DESTDIR)$(libdir)/$$libname && \
219 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
220 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
226 RUNLEVEL1_TARGET_WANTS =
227 RUNLEVEL2_TARGET_WANTS =
228 RUNLEVEL3_TARGET_WANTS =
229 RUNLEVEL4_TARGET_WANTS =
230 RUNLEVEL5_TARGET_WANTS =
231 SHUTDOWN_TARGET_WANTS =
232 LOCAL_FS_TARGET_WANTS =
233 MULTI_USER_TARGET_WANTS =
234 SYSINIT_TARGET_WANTS =
235 SOCKETS_TARGET_WANTS =
236 BUSNAMES_TARGET_WANTS =
237 TIMERS_TARGET_WANTS =
238 USER_SOCKETS_TARGET_WANTS =
239 USER_BUSNAMES_TARGET_WANTS =
241 SYSTEM_UNIT_ALIASES =
245 install-target-wants-hook:
246 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
247 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
248 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
249 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
254 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
255 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
256 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
257 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
258 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
259 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
260 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
263 [ -z "$$what" ] || ( \
264 dir=$(DESTDIR)$$dir/$$wants.wants && \
265 $(MKDIR_P) -m 0755 $$dir && \
268 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
271 install-directories-hook:
272 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
274 install-aliases-hook:
275 set -- $(SYSTEM_UNIT_ALIASES) && \
276 dir=$(systemunitdir) && $(install-aliases)
277 set -- $(USER_UNIT_ALIASES) && \
278 dir=$(userunitdir) && $(install-relative-aliases)
279 set -- $(GENERAL_ALIASES) && \
280 dir= && $(install-relative-aliases)
282 define install-aliases
283 while [ -n "$$1" ]; do \
284 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
285 rm -f $(DESTDIR)$$dir/$$2 && \
286 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
287 shift 2 || exit $$?; \
291 define install-relative-aliases
292 while [ -n "$$1" ]; do \
293 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
294 rm -f $(DESTDIR)$$dir/$$2 && \
295 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
296 shift 2 || exit $$?; \
300 INSTALL_EXEC_HOOKS += \
301 install-target-wants-hook \
302 install-directories-hook \
305 # ------------------------------------------------------------------------------
306 AM_V_M4 = $(AM_V_M4_$(V))
307 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
308 AM_V_M4_0 = @echo " M4 " $@;
310 AM_V_XSLT = $(AM_V_XSLT_$(V))
311 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
312 AM_V_XSLT_0 = @echo " XSLT " $@;
314 AM_V_GPERF = $(AM_V_GPERF_$(V))
315 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
316 AM_V_GPERF_0 = @echo " GPERF " $@;
318 AM_V_LN = $(AM_V_LN_$(V))
319 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
320 AM_V_LN_0 = @echo " LN " $@;
322 AM_V_RM = $(AM_V_RM_$(V))
323 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
324 AM_V_RM_0 = @echo " RM " $@;
326 # ------------------------------------------------------------------------------
330 systemd-ask-password \
331 systemd-tty-ask-password-agent \
332 systemd-machine-id-setup
338 systemd-detect-virt \
344 src/kernel-install/kernel-install
346 dist_kernelinstall_SCRIPTS = \
347 src/kernel-install/50-depmod.install \
348 src/kernel-install/90-loaderentry.install
350 rootlibexec_PROGRAMS = \
352 systemd-cgroups-agent \
354 systemd-update-utmp \
358 systemd-reply-password \
364 systemd-socket-proxyd \
367 systemgenerator_PROGRAMS = \
368 systemd-getty-generator \
369 systemd-fstab-generator \
370 systemd-system-update-generator
372 dist_bashcompletion_DATA = \
373 shell-completion/bash/busctl \
374 shell-completion/bash/journalctl \
375 shell-completion/bash/systemctl \
376 shell-completion/bash/systemd-analyze \
377 shell-completion/bash/systemd-cat \
378 shell-completion/bash/systemd-cgls \
379 shell-completion/bash/systemd-cgtop \
380 shell-completion/bash/systemd-delta \
381 shell-completion/bash/systemd-detect-virt \
382 shell-completion/bash/systemd-nspawn \
383 shell-completion/bash/systemd-run \
384 shell-completion/bash/udevadm \
385 shell-completion/bash/kernel-install
387 dist_zshcompletion_DATA = \
388 shell-completion/zsh/_systemctl \
389 shell-completion/zsh/_journalctl \
390 shell-completion/zsh/_udevadm \
391 shell-completion/zsh/_kernel-install \
392 shell-completion/zsh/_systemd-nspawn \
393 shell-completion/zsh/_systemd-analyze \
394 shell-completion/zsh/_systemd-run \
395 shell-completion/zsh/_sd_hosts_or_user_at_host \
396 shell-completion/zsh/_systemd-delta \
397 shell-completion/zsh/_systemd
400 sysctl.d/50-default.conf
402 dist_systemunit_DATA = \
403 units/graphical.target \
404 units/multi-user.target \
405 units/emergency.service \
406 units/emergency.target \
407 units/sysinit.target \
412 units/local-fs.target \
413 units/local-fs-pre.target \
414 units/initrd.target \
415 units/initrd-fs.target \
416 units/initrd-root-fs.target \
417 units/remote-fs.target \
418 units/remote-fs-pre.target \
419 units/network.target \
420 units/network-pre.target \
421 units/network-online.target \
422 units/nss-lookup.target \
423 units/nss-user-lookup.target \
424 units/hibernate.target \
425 units/hybrid-sleep.target \
426 units/poweroff.target \
427 units/reboot.target \
428 units/rescue.target \
429 units/rpcbind.target \
430 units/time-sync.target \
431 units/shutdown.target \
433 units/umount.target \
434 units/sigpwr.target \
436 units/sockets.target \
437 units/busnames.target \
438 units/timers.target \
440 units/suspend.target \
442 units/slices.target \
445 units/systemd-initctl.socket \
446 units/systemd-shutdownd.socket \
447 units/syslog.socket \
448 units/dev-hugepages.mount \
449 units/dev-mqueue.mount \
450 units/sys-kernel-config.mount \
451 units/sys-kernel-debug.mount \
452 units/sys-fs-fuse-connections.mount \
454 units/printer.target \
456 units/bluetooth.target \
457 units/smartcard.target \
458 units/systemd-ask-password-wall.path \
459 units/systemd-ask-password-console.path \
460 units/systemd-udevd-control.socket \
461 units/systemd-udevd-kernel.socket \
462 units/system-update.target \
463 units/initrd-switch-root.target
465 nodist_systemunit_DATA = \
466 units/getty@.service \
467 units/serial-getty@.service \
468 units/console-shell.service \
469 units/console-getty.service \
470 units/container-getty@.service \
471 units/systemd-initctl.service \
472 units/systemd-shutdownd.service \
473 units/systemd-remount-fs.service \
474 units/systemd-update-utmp.service \
475 units/systemd-update-utmp-runlevel.service \
476 units/systemd-ask-password-wall.service \
477 units/systemd-ask-password-console.service \
478 units/systemd-sysctl.service \
479 units/emergency.service \
480 units/rescue.service \
481 units/user@.service \
482 units/systemd-hibernate.service \
483 units/systemd-hybrid-sleep.service \
484 units/systemd-suspend.service \
485 units/systemd-halt.service \
486 units/systemd-poweroff.service \
487 units/systemd-reboot.service \
488 units/systemd-kexec.service \
489 units/systemd-fsck@.service \
490 units/systemd-fsck-root.service \
491 units/systemd-udevd.service \
492 units/systemd-udev-trigger.service \
493 units/systemd-udev-settle.service \
494 units/systemd-udev-hwdb-update.service \
495 units/debug-shell.service \
496 units/initrd-parse-etc.service \
497 units/initrd-cleanup.service \
498 units/initrd-udevadm-cleanup-db.service \
499 units/initrd-switch-root.service \
500 units/systemd-nspawn@.service \
501 units/systemd-update-done.service
503 dist_userunit_DATA = \
504 units/user/basic.target \
505 units/user/default.target \
506 units/user/exit.target
508 nodist_userunit_DATA = \
509 units/user/systemd-exit.service
512 units/getty@.service.m4 \
513 units/serial-getty@.service.m4 \
514 units/console-shell.service.m4.in \
515 units/console-getty.service.m4.in \
516 units/container-getty@.service.m4.in \
517 units/rescue.service.m4.in \
518 units/systemd-initctl.service.in \
519 units/systemd-shutdownd.service.in \
520 units/systemd-remount-fs.service.in \
521 units/systemd-update-utmp.service.in \
522 units/systemd-update-utmp-runlevel.service.in \
523 units/systemd-ask-password-wall.service.in \
524 units/systemd-ask-password-console.service.in \
525 units/systemd-sysctl.service.in \
526 units/emergency.service.in \
527 units/systemd-halt.service.in \
528 units/systemd-poweroff.service.in \
529 units/systemd-reboot.service.in \
530 units/systemd-kexec.service.in \
531 units/user/systemd-exit.service.in \
532 units/systemd-fsck@.service.in \
533 units/systemd-fsck-root.service.in \
534 units/user@.service.in \
535 units/debug-shell.service.in \
536 units/systemd-hibernate.service.in \
537 units/systemd-hybrid-sleep.service.in \
538 units/systemd-suspend.service.in \
539 units/quotaon.service.in \
540 units/initrd-parse-etc.service.in \
541 units/initrd-cleanup.service.in \
542 units/initrd-udevadm-cleanup-db.service.in \
543 units/initrd-switch-root.service.in \
544 units/systemd-nspawn@.service.in \
545 units/systemd-update-done.service.in
548 units/console-shell.service.m4 \
549 units/console-getty.service.m4 \
550 units/container-getty@.service.m4 \
551 units/rescue.service.m4 \
552 units/user@.service.m4
555 nodist_systemunit_DATA += \
556 units/rc-local.service \
557 units/halt-local.service
559 systemgenerator_PROGRAMS += \
560 systemd-sysv-generator \
561 systemd-rc-local-generator
565 units/rc-local.service.in \
566 units/halt-local.service.in
568 # automake is broken and can't handle files with a dash in front
569 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
571 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
573 units-uninstall-hook:
574 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
576 INSTALL_DATA_HOOKS += units-install-hook
577 UNINSTALL_DATA_HOOKS += units-uninstall-hook
586 src/libsystemd/sd-bus/PORTING-DBUS1 \
587 src/libsystemd/sd-bus/DIFFERENCES \
588 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
590 @INTLTOOL_POLICY_RULE@
592 # ------------------------------------------------------------------------------
597 include Makefile-man.am
599 .PHONY: man update-man-list
600 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
603 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
605 ${XML_FILES:.xml=.html}
607 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
624 $(AM_V_at)$(MKDIR_P) $(dir $@)
625 $(AM_V_LN)$(LN_S) -f ../../man $@
634 man/index.html: man/systemd.index.html
635 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
643 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
644 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
645 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
647 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
648 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
649 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
650 @echo "Makefile-man.am has been regenerated"
652 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
653 $(AM_V_at)$(MKDIR_P) $(dir $@)
654 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
656 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
657 $(AM_V_at)$(MKDIR_P) $(dir $@)
658 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
661 man/systemd.index.xml \
663 man/systemd.directives.xml
666 man/systemd.index.xml \
667 man/systemd.directives.xml
678 tools/make-man-index.py \
679 tools/make-directive-index.py \
680 tools/make-man-rules.py \
683 # ------------------------------------------------------------------------------
684 noinst_LTLIBRARIES += \
687 libsystemd_shared_la_SOURCES = \
688 src/shared/linux/auto_dev-ioctl.h \
689 src/shared/linux/fanotify.h \
690 src/shared/ioprio.h \
691 src/shared/missing.h \
692 src/shared/initreq.h \
693 src/shared/securebits.h \
694 src/shared/special.h \
698 src/shared/sparse-endian.h \
699 src/shared/refcnt.h \
700 src/shared/udev-util.h \
701 src/shared/bus-errors.h \
702 src/shared/device-nodes.c \
703 src/shared/device-nodes.h \
708 src/shared/architecture.c \
709 src/shared/architecture.h \
710 src/shared/efivars.c \
711 src/shared/efivars.h \
712 src/shared/path-util.c \
713 src/shared/path-util.h \
714 src/shared/time-util.c \
715 src/shared/time-util.h \
716 src/shared/hashmap.c \
717 src/shared/hashmap.h \
718 src/shared/siphash24.c \
719 src/shared/siphash24.h \
726 src/shared/sleep-config.c \
727 src/shared/sleep-config.h \
730 src/shared/env-util.c \
731 src/shared/env-util.h \
732 src/shared/strbuf.c \
733 src/shared/strbuf.h \
734 src/shared/strxcpyx.c \
735 src/shared/strxcpyx.h \
736 src/shared/conf-parser.c \
737 src/shared/conf-parser.h \
740 src/shared/ratelimit.h \
741 src/shared/ratelimit.c \
742 src/shared/exit-status.c \
743 src/shared/exit-status.h \
746 src/shared/gunicode.c \
747 src/shared/gunicode.h \
750 src/shared/socket-util.c \
751 src/shared/socket-util.h \
752 src/shared/conf-files.c \
753 src/shared/conf-files.h \
754 src/shared/cgroup-util.c \
755 src/shared/cgroup-util.h \
756 src/shared/cgroup-show.c \
757 src/shared/cgroup-show.h \
758 src/shared/unit-name.c \
759 src/shared/unit-name.h \
760 src/shared/utmp-wtmp.c \
761 src/shared/utmp-wtmp.h \
762 src/shared/watchdog.c \
763 src/shared/watchdog.h \
764 src/shared/spawn-ask-password-agent.c \
765 src/shared/spawn-ask-password-agent.h \
766 src/shared/replace-var.c \
767 src/shared/replace-var.h \
768 src/shared/spawn-polkit-agent.c \
769 src/shared/spawn-polkit-agent.h \
770 src/shared/clock-util.c \
771 src/shared/clock-util.h \
772 src/shared/time-dst.c \
773 src/shared/time-dst.h \
774 src/shared/calendarspec.c \
775 src/shared/calendarspec.h \
776 src/shared/fileio.c \
777 src/shared/fileio.h \
778 src/shared/output-mode.h \
779 src/shared/MurmurHash2.c \
780 src/shared/MurmurHash2.h \
781 src/shared/acpi-fpdt.h \
782 src/shared/acpi-fpdt.c \
783 src/shared/boot-timestamps.h \
784 src/shared/boot-timestamps.c \
787 src/shared/smack-util.c \
788 src/shared/smack-util.h \
789 src/shared/apparmor-util.c \
790 src/shared/apparmor-util.h \
791 src/shared/ima-util.c \
792 src/shared/ima-util.h \
793 src/shared/ptyfwd.c \
794 src/shared/ptyfwd.h \
795 src/shared/errno-list.c \
796 src/shared/errno-list.h \
797 src/shared/af-list.c \
798 src/shared/af-list.h \
803 src/shared/condition-util.c \
804 src/shared/condition-util.h \
805 src/shared/bus-label.c \
806 src/shared/bus-label.h \
808 src/shared/generator.h \
809 src/shared/generator.c \
810 src/shared/clean-ipc.h \
811 src/shared/clean-ipc.c \
812 src/shared/login-shared.c \
813 src/shared/login-shared.h \
818 src/shared/eventfd-util.c \
819 src/shared/eventfd-util.h \
823 nodist_libsystemd_shared_la_SOURCES = \
824 src/shared/errno-from-name.h \
825 src/shared/errno-to-name.h \
826 src/shared/af-from-name.h \
827 src/shared/af-to-name.h
829 libsystemd_shared_la_CFLAGS = \
833 # ------------------------------------------------------------------------------
834 noinst_LTLIBRARIES += \
837 libsystemd_units_la_SOURCES = \
838 src/shared/install.c \
839 src/shared/install.h \
840 src/shared/install-printf.c \
841 src/shared/install-printf.h \
842 src/shared/path-lookup.c \
843 src/shared/path-lookup.h \
844 src/shared/specifier.c \
845 src/shared/specifier.h
847 # ------------------------------------------------------------------------------
848 noinst_LTLIBRARIES += \
851 libsystemd_label_la_SOURCES = \
852 src/shared/socket-label.c \
855 src/shared/selinux-util.c \
856 src/shared/selinux-util.h \
857 src/shared/mkdir-label.c \
858 src/shared/ask-password-api.c \
859 src/shared/ask-password-api.h \
860 src/shared/fileio-label.c \
861 src/shared/fileio-label.h \
862 src/shared/dev-setup.c \
863 src/shared/dev-setup.h
865 libsystemd_label_la_CFLAGS = \
869 libsystemd_label_la_LIBADD = \
872 # ------------------------------------------------------------------------------
875 noinst_LTLIBRARIES += \
876 libsystemd-seccomp.la
878 libsystemd_seccomp_la_SOURCES = \
879 src/shared/seccomp-util.h \
880 src/shared/seccomp-util.c
882 libsystemd_seccomp_la_CFLAGS = \
886 libsystemd_seccomp_la_LIBADD = \
890 # ------------------------------------------------------------------------------
891 noinst_LTLIBRARIES += \
894 libsystemd_logs_la_SOURCES = \
895 src/shared/logs-show.c \
896 src/shared/logs-show.h
898 # ------------------------------------------------------------------------------
899 noinst_LTLIBRARIES += \
900 libsystemd-capability.la
902 libsystemd_capability_la_SOURCES = \
903 src/shared/capability.c \
904 src/shared/capability.h
906 libsystemd_capability_la_CFLAGS = \
910 libsystemd_capability_la_LIBADD = \
913 # ------------------------------------------------------------------------------
915 noinst_LTLIBRARIES += \
918 libsystemd_acl_la_SOURCES = \
919 src/shared/acl-util.c \
920 src/shared/acl-util.h
922 libsystemd_acl_la_CFLAGS = \
926 libsystemd_acl_la_LIBADD = \
930 # ------------------------------------------------------------------------------
931 noinst_LTLIBRARIES += \
934 libsystemd_core_la_SOURCES = \
937 src/core/unit-printf.c \
938 src/core/unit-printf.h \
943 src/core/transaction.c \
944 src/core/transaction.h \
945 src/core/load-fragment.c \
946 src/core/load-fragment.h \
955 src/core/snapshot.c \
956 src/core/snapshot.h \
961 src/core/automount.c \
962 src/core/automount.h \
973 src/core/load-dropin.c \
974 src/core/load-dropin.h \
981 src/core/dbus-manager.c \
982 src/core/dbus-manager.h \
983 src/core/dbus-unit.c \
984 src/core/dbus-unit.h \
985 src/core/dbus-job.c \
986 src/core/dbus-job.h \
987 src/core/dbus-service.c \
988 src/core/dbus-service.h \
989 src/core/dbus-socket.c \
990 src/core/dbus-socket.h \
991 src/core/dbus-busname.c \
992 src/core/dbus-busname.h \
993 src/core/dbus-target.c \
994 src/core/dbus-target.h \
995 src/core/dbus-snapshot.c \
996 src/core/dbus-snapshot.h \
997 src/core/dbus-device.c \
998 src/core/dbus-device.h \
999 src/core/dbus-mount.c \
1000 src/core/dbus-mount.h \
1001 src/core/dbus-automount.c \
1002 src/core/dbus-automount.h \
1003 src/core/dbus-swap.c \
1004 src/core/dbus-swap.h \
1005 src/core/dbus-timer.c \
1006 src/core/dbus-timer.h \
1007 src/core/dbus-path.c \
1008 src/core/dbus-path.h \
1009 src/core/dbus-slice.c \
1010 src/core/dbus-slice.h \
1011 src/core/dbus-scope.c \
1012 src/core/dbus-scope.h \
1013 src/core/dbus-execute.c \
1014 src/core/dbus-execute.h \
1015 src/core/dbus-kill.c \
1016 src/core/dbus-kill.h \
1017 src/core/dbus-cgroup.c \
1018 src/core/dbus-cgroup.h \
1021 src/core/selinux-access.c \
1022 src/core/selinux-access.h \
1023 src/core/selinux-setup.c \
1024 src/core/selinux-setup.h \
1025 src/core/smack-setup.c \
1026 src/core/smack-setup.h \
1027 src/core/ima-setup.c \
1028 src/core/ima-setup.h \
1029 src/core/locale-setup.h \
1030 src/core/locale-setup.c \
1031 src/core/hostname-setup.c \
1032 src/core/hostname-setup.h \
1033 src/core/machine-id-setup.c \
1034 src/core/machine-id-setup.h \
1035 src/core/mount-setup.c \
1036 src/core/mount-setup.h \
1037 src/core/loopback-setup.h \
1038 src/core/loopback-setup.c \
1039 src/core/condition.c \
1040 src/core/condition.h \
1041 src/core/namespace.c \
1042 src/core/namespace.h \
1044 src/core/sysfs-show.h \
1045 src/core/switch-root.h \
1046 src/core/switch-root.c \
1047 src/core/killall.h \
1048 src/core/killall.c \
1049 src/core/audit-fd.c \
1050 src/core/audit-fd.h \
1051 src/core/show-status.c \
1052 src/core/show-status.h
1055 libsystemd_core_la_SOURCES += \
1056 src/core/kmod-setup.c \
1057 src/core/kmod-setup.h
1060 nodist_libsystemd_core_la_SOURCES = \
1061 src/core/load-fragment-gperf.c \
1062 src/core/load-fragment-gperf-nulstr.c
1064 libsystemd_core_la_CFLAGS = \
1070 $(APPARMOR_CFLAGS) \
1074 libsystemd_core_la_LIBADD = \
1075 libsystemd-capability.la \
1076 libsystemd-units.la \
1077 libsystemd-label.la \
1078 libudev-internal.la \
1079 libsystemd-shared.la \
1080 libsystemd-internal.la \
1089 libsystemd_core_la_LIBADD += \
1090 libsystemd-seccomp.la
1093 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1094 $(AM_V_at)$(MKDIR_P) $(dir $@)
1095 $(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 ";" }' < $< > $@
1098 src/core/load-fragment-gperf.gperf.m4
1101 src/core/load-fragment-gperf.gperf \
1102 src/core/load-fragment-gperf.c \
1103 src/core/load-fragment-gperf-nulstr.c \
1104 src/shared/errno-list.txt \
1105 src/shared/errno-from-name.gperf \
1106 src/shared/af-list.txt \
1107 src/shared/af-from-name.gperf
1110 src/shared/errno-from-name.h \
1111 src/shared/errno-to-name.h \
1112 src/shared/af-from-name.h \
1113 src/shared/af-to-name.h
1115 src/shared/errno-list.txt:
1116 $(AM_V_at)$(MKDIR_P) $(dir $@)
1117 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1119 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1120 $(AM_V_at)$(MKDIR_P) $(dir $@)
1121 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1123 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1124 $(AM_V_at)$(MKDIR_P) $(dir $@)
1125 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1127 src/shared/errno-to-name.h: src/shared/errno-list.txt
1128 $(AM_V_at)$(MKDIR_P) $(dir $@)
1129 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1131 src/shared/af-list.txt:
1132 $(AM_V_at)$(MKDIR_P) $(dir $@)
1133 $(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; }' > $@
1135 src/shared/af-from-name.gperf: src/shared/af-list.txt
1136 $(AM_V_at)$(MKDIR_P) $(dir $@)
1137 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1139 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1140 $(AM_V_at)$(MKDIR_P) $(dir $@)
1141 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1143 src/shared/af-to-name.h: src/shared/af-list.txt
1144 $(AM_V_at)$(MKDIR_P) $(dir $@)
1145 $(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 "};"}' < $< > $@
1147 # ------------------------------------------------------------------------------
1156 libsystemd-core.la \
1159 dist_pkgsysconf_DATA += \
1160 src/core/system.conf \
1163 dist_dbuspolicy_DATA += \
1164 src/core/org.freedesktop.systemd1.conf
1166 dist_dbussystemservice_DATA += \
1167 src/core/org.freedesktop.systemd1.service
1169 polkitpolicy_in_in_files += \
1170 src/core/org.freedesktop.systemd1.policy.in.in
1172 pkgconfigdata_DATA = \
1175 nodist_rpmmacros_DATA = \
1176 src/core/macros.systemd
1179 src/core/systemd.pc.in \
1180 src/core/macros.systemd.in
1183 src/core/macros.systemd \
1184 src/core/org.freedesktop.systemd1.policy.in
1186 # ------------------------------------------------------------------------------
1225 test-strip-tab-ansi \
1238 test/sched_idle_bad.service \
1239 test/sched_idle_ok.service \
1240 test/sched_rr_bad.service \
1241 test/sched_rr_ok.service \
1242 test/sched_rr_change.service \
1244 test/daughter.service \
1248 src/test/test-helper.h
1250 test_device_nodes_SOURCES = \
1251 src/test/test-device-nodes.c
1253 test_device_nodes_LDADD = \
1254 libsystemd-shared.la
1256 test_engine_SOURCES = \
1257 src/test/test-engine.c
1259 test_engine_CFLAGS = \
1263 test_engine_LDADD = \
1264 libsystemd-core.la \
1267 test_job_type_SOURCES = \
1268 src/test/test-job-type.c
1270 test_job_type_CFLAGS = \
1274 test_job_type_LDADD = \
1275 libsystemd-core.la \
1288 test_loopback_SOURCES = \
1289 src/test/test-loopback.c
1291 test_loopback_LDADD = \
1294 test_hostname_SOURCES = \
1295 src/test/test-hostname.c
1297 test_hostname_LDADD = \
1304 test_boot_timestamp_SOURCES = \
1305 src/test/test-boot-timestamps.c
1307 test_boot_timestamp_LDADD = \
1308 libsystemd-shared.la
1311 test_unit_name_SOURCES = \
1312 src/test/test-unit-name.c
1314 test_unit_name_CFLAGS = \
1318 test_unit_name_LDADD = \
1319 libsystemd-core.la \
1322 test_unit_file_SOURCES = \
1323 src/test/test-unit-file.c
1325 test_unit_file_CFLAGS = \
1329 test_unit_file_LDADD = \
1330 libsystemd-core.la \
1333 test_utf8_SOURCES = \
1334 src/test/test-utf8.c
1337 libsystemd-shared.la
1339 test_util_SOURCES = \
1340 src/test/test-util.c
1345 test_ring_SOURCES = \
1346 src/test/test-ring.c
1351 test_tmpfiles_SOURCES = \
1352 src/test/test-tmpfiles.c
1354 test_tmpfiles_LDADD = \
1355 libsystemd-shared.la
1357 test_namespace_SOURCES = \
1358 src/test/test-namespace.c
1360 test_namespace_LDADD = \
1363 test_hashmap_SOURCES = \
1364 src/test/test-hashmap.c
1366 test_hashmap_LDADD = \
1369 test_xml_SOURCES = \
1373 libsystemd-shared.la
1375 test_list_SOURCES = \
1376 src/test/test-list.c
1381 test_tables_SOURCES = \
1382 src/test/test-tables.c \
1383 src/shared/test-tables.h
1385 test_tables_CFLAGS = \
1389 test_tables_LDADD = \
1390 libsystemd-logs.la \
1391 libsystemd-journal-internal.la \
1392 libsystemd-core.la \
1395 test_prioq_SOURCES = \
1396 src/test/test-prioq.c
1398 test_prioq_LDADD = \
1401 test_fileio_SOURCES = \
1402 src/test/test-fileio.c
1404 test_fileio_LDADD = \
1407 test_time_SOURCES = \
1408 src/test/test-time.c
1413 test_architecture_SOURCES = \
1414 src/test/test-architecture.c
1416 test_architecture_LDADD = \
1417 libsystemd-shared.la
1419 test_log_SOURCES = \
1425 test_ipcrm_SOURCES = \
1426 src/test/test-ipcrm.c
1428 test_ipcrm_LDADD = \
1429 libsystemd-shared.la \
1432 test_rtnl_manual_SOURCES = \
1433 src/test/test-rtnl-manual.c
1435 test_rtnl_manual_CFLAGS = \
1439 test_rtnl_manual_LDADD = \
1440 libsystemd-internal.la \
1441 libsystemd-shared.la \
1444 test_ellipsize_SOURCES = \
1445 src/test/test-ellipsize.c
1447 test_ellipsize_LDADD = \
1450 test_date_SOURCES = \
1451 src/test/test-date.c
1456 test_sleep_SOURCES = \
1457 src/test/test-sleep.c
1459 test_sleep_LDADD = \
1462 test_replace_var_SOURCES = \
1463 src/test/test-replace-var.c
1465 test_replace_var_LDADD = \
1466 libsystemd-shared.la
1468 test_calendarspec_SOURCES = \
1469 src/test/test-calendarspec.c
1471 test_calendarspec_LDADD = \
1472 libsystemd-shared.la
1474 test_strip_tab_ansi_SOURCES = \
1475 src/test/test-strip-tab-ansi.c
1477 test_strip_tab_ansi_LDADD = \
1478 libsystemd-shared.la
1480 test_daemon_SOURCES = \
1481 src/test/test-daemon.c
1483 test_daemon_LDADD = \
1484 libsystemd-internal.la \
1485 libsystemd-shared.la
1487 test_cgroup_SOURCES = \
1488 src/test/test-cgroup.c
1490 test_cgroup_LDADD = \
1491 libsystemd-label.la \
1492 libsystemd-shared.la \
1493 libsystemd-internal.la
1495 test_cgroup_mask_SOURCES = \
1496 src/test/test-cgroup-mask.c
1498 test_cgroup_mask_CPPFLAGS = \
1500 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1502 test_cgroup_mask_CFLAGS = \
1506 test_cgroup_mask_LDADD = \
1507 libsystemd-core.la \
1510 test_cgroup_util_SOURCES = \
1511 src/test/test-cgroup-util.c
1513 test_cgroup_util_LDADD = \
1514 libsystemd-label.la \
1515 libsystemd-internal.la \
1516 libsystemd-shared.la
1518 test_env_replace_SOURCES = \
1519 src/test/test-env-replace.c
1521 test_env_replace_LDADD = \
1522 libsystemd-shared.la
1524 test_strbuf_SOURCES = \
1525 src/test/test-strbuf.c
1527 test_strbuf_LDADD = \
1528 libsystemd-shared.la
1530 test_strv_SOURCES = \
1531 src/test/test-strv.c
1534 libsystemd-units.la \
1535 libsystemd-internal.la \
1536 libsystemd-shared.la
1538 test_path_util_SOURCES = \
1539 src/test/test-path-util.c
1541 test_path_util_LDADD = \
1542 libsystemd-shared.la
1544 test_strxcpyx_SOURCES = \
1545 src/test/test-strxcpyx.c
1547 test_strxcpyx_LDADD = \
1548 libsystemd-shared.la
1550 test_install_SOURCES = \
1551 src/test/test-install.c
1553 test_install_LDADD = \
1554 libsystemd-units.la \
1555 libsystemd-label.la \
1556 libsystemd-shared.la \
1557 libsystemd-internal.la
1559 test_watchdog_SOURCES = \
1560 src/test/test-watchdog.c
1562 test_watchdog_LDADD = \
1563 libsystemd-shared.la
1565 test_sched_prio_SOURCES = \
1566 src/test/test-sched-prio.c
1568 test_sched_prio_CPPFLAGS = \
1570 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1572 test_sched_prio_CFLAGS = \
1576 test_sched_prio_LDADD = \
1577 libsystemd-core.la \
1580 # ------------------------------------------------------------------------------
1581 ## .PHONY so it always rebuilds it
1582 .PHONY: coverage lcov-run lcov-report coverage-sync
1584 # run lcov from scratch, always
1589 coverage_dir = coverage
1590 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1593 # reset run coverage tests
1595 @rm -rf $(coverage_dir)
1596 lcov $(coverage_opts) --zerocounters
1599 # generate report based on current coverage data
1601 $(MKDIR_P) $(coverage_dir)
1602 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1603 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1604 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1605 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1607 # lcov doesn't work properly with vpath builds, make sure that bad
1608 # output is not uploaded by mistake.
1609 coverage-sync: coverage
1610 test "$(builddir)" = "$(srcdir)"
1611 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1614 lcov-run lcov-report:
1615 echo "Need to reconfigure with --enable-coverage"
1618 # ------------------------------------------------------------------------------
1619 systemd_analyze_SOURCES = \
1620 src/analyze/analyze.c
1622 systemd_analyze_LDADD = \
1623 libsystemd-internal.la \
1624 libsystemd-shared.la
1626 # ------------------------------------------------------------------------------
1627 systemd_initctl_SOURCES = \
1628 src/initctl/initctl.c
1630 systemd_initctl_LDADD = \
1631 libsystemd-internal.la \
1632 libsystemd-shared.la
1634 # ------------------------------------------------------------------------------
1635 systemd_update_utmp_SOURCES = \
1636 src/update-utmp/update-utmp.c
1638 systemd_update_utmp_CFLAGS = \
1642 systemd_update_utmp_LDADD = \
1643 libsystemd-internal.la \
1644 libsystemd-shared.la \
1647 # ------------------------------------------------------------------------------
1648 systemd_update_done_SOURCES = \
1649 src/update-done/update-done.c
1651 systemd_update_done_LDADD = \
1652 libsystemd-internal.la \
1653 libsystemd-shared.la
1655 # ------------------------------------------------------------------------------
1656 systemd_shutdownd_SOURCES = \
1657 src/shutdownd/shutdownd.c
1659 systemd_shutdownd_LDADD = \
1660 libsystemd-label.la \
1661 libsystemd-internal.la \
1662 libsystemd-shared.la
1665 src/systemd/sd-shutdown.h
1667 # ------------------------------------------------------------------------------
1668 systemd_shutdown_SOURCES = \
1671 src/core/shutdown.c \
1672 src/core/mount-setup.c \
1673 src/core/mount-setup.h \
1674 src/core/killall.h \
1677 systemd_shutdown_LDADD = \
1678 libsystemd-label.la \
1679 libudev-internal.la \
1680 libsystemd-shared.la
1682 # ------------------------------------------------------------------------------
1684 systemd_modules_load_SOURCES = \
1685 src/modules-load/modules-load.c
1687 systemd_modules_load_CFLAGS = \
1691 systemd_modules_load_LDADD = \
1692 libsystemd-shared.la \
1695 rootlibexec_PROGRAMS += \
1696 systemd-modules-load
1698 nodist_systemunit_DATA += \
1699 units/systemd-modules-load.service
1701 SYSINIT_TARGET_WANTS += \
1702 systemd-modules-load.service
1705 nodist_systemunit_DATA += \
1706 units/kmod-static-nodes.service
1708 SYSINIT_TARGET_WANTS += \
1709 kmod-static-nodes.service
1714 units/systemd-modules-load.service.in \
1715 units/kmod-static-nodes.service.in
1717 # ------------------------------------------------------------------------------
1719 systemd_tmpfiles_SOURCES = \
1720 src/tmpfiles/tmpfiles.c
1722 systemd_tmpfiles_LDADD = \
1723 libsystemd-units.la \
1724 libsystemd-label.la \
1725 libsystemd-capability.la \
1726 libsystemd-internal.la \
1727 libsystemd-shared.la
1729 rootbin_PROGRAMS += \
1732 dist_systemunit_DATA += \
1733 units/systemd-tmpfiles-clean.timer
1735 nodist_systemunit_DATA += \
1736 units/systemd-tmpfiles-setup-dev.service \
1737 units/systemd-tmpfiles-setup.service \
1738 units/systemd-tmpfiles-clean.service
1740 dist_tmpfiles_DATA = \
1741 tmpfiles.d/systemd.conf \
1742 tmpfiles.d/systemd-nologin.conf \
1743 tmpfiles.d/tmp.conf \
1744 tmpfiles.d/x11.conf \
1745 tmpfiles.d/var.conf \
1749 dist_tmpfiles_DATA += \
1750 tmpfiles.d/legacy.conf
1753 SYSINIT_TARGET_WANTS += \
1754 systemd-tmpfiles-setup-dev.service \
1755 systemd-tmpfiles-setup.service
1757 dist_zshcompletion_DATA += \
1758 shell-completion/zsh/_systemd-tmpfiles
1760 TIMERS_TARGET_WANTS += \
1761 systemd-tmpfiles-clean.timer
1765 $(sysconfdir)/tmpfiles.d
1769 units/systemd-tmpfiles-setup-dev.service.in \
1770 units/systemd-tmpfiles-setup.service.in \
1771 units/systemd-tmpfiles-clean.service.in
1773 # ------------------------------------------------------------------------------
1775 systemd_sysusers_SOURCES = \
1776 src/sysusers/sysusers.c
1778 systemd_sysusers_LDADD = \
1779 libsystemd-units.la \
1780 libsystemd-label.la \
1781 libsystemd-capability.la \
1782 libsystemd-internal.la \
1783 libsystemd-shared.la
1785 rootlibexec_PROGRAMS += \
1788 nodist_systemunit_DATA += \
1789 units/systemd-sysusers.service
1791 SYSINIT_TARGET_WANTS += \
1792 systemd-sysusers.service
1794 nodist_sysusers_DATA = \
1795 sysusers.d/systemd.conf
1798 units/systemd-sysusers.service.in \
1799 sysusers.d/systemd.conf.in
1805 # ------------------------------------------------------------------------------
1806 systemd_machine_id_setup_SOURCES = \
1807 src/machine-id-setup/machine-id-setup-main.c \
1808 src/core/machine-id-setup.c \
1809 src/core/machine-id-setup.h
1811 systemd_machine_id_setup_LDADD = \
1812 libsystemd-label.la \
1813 libsystemd-internal.la \
1814 libsystemd-shared.la
1816 # ------------------------------------------------------------------------------
1817 systemd_sysctl_SOURCES = \
1820 systemd_sysctl_LDADD = \
1821 libsystemd-shared.la
1823 # ------------------------------------------------------------------------------
1824 systemd_sleep_SOURCES = \
1827 systemd_sleep_LDADD = \
1828 libsystemd-shared.la
1830 # ------------------------------------------------------------------------------
1831 systemd_fsck_SOURCES = \
1834 systemd_fsck_LDADD = \
1835 libsystemd-internal.la \
1836 libudev-internal.la \
1837 libsystemd-shared.la
1839 # ------------------------------------------------------------------------------
1840 systemd_ac_power_SOURCES = \
1841 src/ac-power/ac-power.c
1843 systemd_ac_power_LDADD = \
1844 libudev-internal.la \
1845 libsystemd-shared.la
1847 # ------------------------------------------------------------------------------
1848 systemd_detect_virt_SOURCES = \
1849 src/detect-virt/detect-virt.c
1851 systemd_detect_virt_LDADD = \
1852 libsystemd-shared.la
1854 INSTALL_EXEC_HOOKS += \
1855 systemd-detect-virt-install-hook
1857 # ------------------------------------------------------------------------------
1858 systemd_delta_SOURCES = \
1861 systemd_delta_LDADD = \
1862 libsystemd-shared.la
1864 # ------------------------------------------------------------------------------
1865 systemd_getty_generator_SOURCES = \
1866 src/getty-generator/getty-generator.c
1868 systemd_getty_generator_LDADD = \
1869 libsystemd-label.la \
1870 libsystemd-shared.la
1872 # ------------------------------------------------------------------------------
1873 systemd_fstab_generator_SOURCES = \
1874 src/fstab-generator/fstab-generator.c \
1875 src/core/mount-setup.c
1877 systemd_fstab_generator_LDADD = \
1878 libsystemd-label.la \
1879 libsystemd-shared.la
1881 # ------------------------------------------------------------------------------
1882 systemd_system_update_generator_SOURCES = \
1883 src/system-update-generator/system-update-generator.c
1885 systemd_system_update_generator_LDADD = \
1886 libsystemd-label.la \
1887 libsystemd-shared.la
1890 # ------------------------------------------------------------------------------
1891 systemgenerator_PROGRAMS += \
1892 systemd-efi-boot-generator
1894 systemd_efi_boot_generator_SOURCES = \
1895 src/efi-boot-generator/efi-boot-generator.c
1897 systemd_efi_boot_generator_LDADD = \
1898 libsystemd-label.la \
1899 libsystemd-shared.la
1901 # ------------------------------------------------------------------------------
1904 src/boot/boot-loader.h \
1905 src/boot/bootctl.c \
1906 src/boot/boot-loader.c \
1910 libsystemd-shared.la \
1911 libsystemd-internal.la
1916 dist_bashcompletion_DATA += \
1917 shell-completion/bash/bootctl
1919 dist_zshcompletion_DATA += \
1920 shell-completion/zsh/_bootctl
1924 # ------------------------------------------------------------------------------
1926 systemgenerator_PROGRAMS += \
1927 systemd-gpt-auto-generator
1929 systemd_gpt_auto_generator_SOURCES = \
1930 src/gpt-auto-generator/gpt-auto-generator.c \
1931 src/shared/blkid-util.h
1933 systemd_gpt_auto_generator_LDADD = \
1934 libsystemd-label.la \
1935 libsystemd-internal.la \
1936 libudev-internal.la \
1937 libsystemd-shared.la \
1940 systemd_gpt_auto_generator_CFLAGS = \
1945 # ------------------------------------------------------------------------------
1947 systemgenerator_PROGRAMS += \
1948 systemd-dbus1-generator
1950 systemd_dbus1_generator_SOURCES = \
1951 src/dbus1-generator/dbus1-generator.c
1953 systemd_dbus1_generator_LDADD = \
1954 libsystemd-label.la \
1955 libsystemd-shared.la \
1956 libsystemd-internal.la
1958 dbus1-generator-install-hook:
1959 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
1960 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1961 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1963 dbus1-generator-uninstall-hook:
1964 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1966 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1967 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1970 # ------------------------------------------------------------------------------
1971 systemd_sysv_generator_SOURCES = \
1972 src/sysv-generator/sysv-generator.c
1974 systemd_sysv_generator_LDADD = \
1975 libsystemd-core.la \
1976 libsystemd-label.la \
1977 libsystemd-shared.la
1979 # ------------------------------------------------------------------------------
1980 systemd_rc_local_generator_SOURCES = \
1981 src/rc-local-generator/rc-local-generator.c
1983 systemd_rc_local_generator_LDADD = \
1984 libsystemd-label.la \
1985 libsystemd-shared.la
1987 # ------------------------------------------------------------------------------
1988 systemd_remount_fs_SOURCES = \
1989 src/remount-fs/remount-fs.c \
1990 src/core/mount-setup.c \
1991 src/core/mount-setup.h
1993 systemd_remount_fs_LDADD = \
1994 libsystemd-label.la \
1995 libsystemd-shared.la
1997 # ------------------------------------------------------------------------------
1998 systemd_cgroups_agent_SOURCES = \
1999 src/cgroups-agent/cgroups-agent.c
2001 systemd_cgroups_agent_LDADD = \
2002 libsystemd-internal.la \
2003 libsystemd-shared.la
2005 # ------------------------------------------------------------------------------
2006 systemctl_SOURCES = \
2007 src/systemctl/systemctl.c
2010 libsystemd-units.la \
2011 libsystemd-label.la \
2012 libsystemd-internal.la \
2013 libsystemd-logs.la \
2014 libsystemd-journal-internal.la \
2015 libsystemd-shared.la
2017 # ------------------------------------------------------------------------------
2018 systemd_notify_SOURCES = \
2019 src/notify/notify.c \
2020 src/readahead/sd-readahead.c
2022 systemd_notify_LDADD = \
2023 libsystemd-internal.la \
2024 libsystemd-shared.la
2026 # ------------------------------------------------------------------------------
2027 systemd_ask_password_SOURCES = \
2028 src/ask-password/ask-password.c
2030 systemd_ask_password_LDADD = \
2031 libsystemd-label.la \
2032 libsystemd-shared.la
2034 # ------------------------------------------------------------------------------
2035 systemd_reply_password_SOURCES = \
2036 src/reply-password/reply-password.c
2038 systemd_reply_password_LDADD = \
2039 libsystemd-shared.la
2041 # ------------------------------------------------------------------------------
2042 systemd_cgls_SOURCES = \
2045 systemd_cgls_LDADD = \
2046 libsystemd-internal.la \
2047 libsystemd-shared.la
2049 # ------------------------------------------------------------------------------
2050 systemd_cgtop_SOURCES = \
2053 systemd_cgtop_LDADD = \
2054 libsystemd-shared.la
2056 # ------------------------------------------------------------------------------
2057 systemd_nspawn_SOURCES = \
2058 src/nspawn/nspawn.c \
2059 src/core/mount-setup.c \
2060 src/core/mount-setup.h \
2061 src/core/loopback-setup.c \
2062 src/core/loopback-setup.h
2064 systemd_nspawn_CFLAGS = \
2069 systemd_nspawn_LDADD = \
2070 libsystemd-label.la \
2071 libsystemd-capability.la \
2072 libsystemd-internal.la \
2073 libudev-internal.la \
2074 libsystemd-shared.la \
2078 systemd_nspawn_LDADD += \
2079 libsystemd-seccomp.la \
2083 # ------------------------------------------------------------------------------
2084 systemd_run_SOURCES = \
2087 systemd_run_LDADD = \
2088 libsystemd-label.la \
2089 libsystemd-capability.la \
2090 libsystemd-internal.la \
2091 libsystemd-shared.la
2093 # ------------------------------------------------------------------------------
2094 systemd_bus_proxyd_SOURCES = \
2095 src/bus-proxyd/bus-proxyd.c \
2096 src/bus-proxyd/bus-policy.c \
2097 src/bus-proxyd/bus-policy.h
2099 systemd_bus_proxyd_LDADD = \
2100 libsystemd-capability.la \
2101 libsystemd-internal.la \
2102 libsystemd-shared.la
2104 bus-proxyd-install-hook:
2105 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2106 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2107 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2109 bus-proxyd-uninstall-hook:
2110 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2112 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2113 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2116 nodist_systemunit_DATA += \
2117 units/systemd-bus-proxyd@.service
2119 dist_systemunit_DATA += \
2120 units/systemd-bus-proxyd.socket
2122 dist_userunit_DATA += \
2123 units/user/systemd-bus-proxyd.socket \
2124 units/user/systemd-bus-proxyd@.service
2128 units/systemd-bus-proxyd@.service.in
2130 # ------------------------------------------------------------------------------
2131 systemd_tty_ask_password_agent_SOURCES = \
2132 src/tty-ask-password-agent/tty-ask-password-agent.c
2134 systemd_tty_ask_password_agent_LDADD = \
2135 libsystemd-label.la \
2136 libsystemd-shared.la
2138 # ------------------------------------------------------------------------------
2139 libsystemd_internal_la_SOURCES = \
2140 src/systemd/sd-bus.h \
2141 src/systemd/sd-bus-protocol.h \
2142 src/systemd/sd-bus-vtable.h \
2143 src/systemd/sd-memfd.h \
2144 src/systemd/sd-utf8.h \
2145 src/systemd/sd-event.h \
2146 src/systemd/sd-rtnl.h \
2147 src/systemd/sd-resolve.h \
2148 src/systemd/sd-login.h \
2149 src/systemd/sd-id128.h \
2150 src/systemd/sd-daemon.h \
2151 src/libsystemd/sd-bus/sd-bus.c \
2152 src/libsystemd/sd-bus/bus-control.c \
2153 src/libsystemd/sd-bus/bus-control.h \
2154 src/libsystemd/sd-bus/bus-error.c \
2155 src/libsystemd/sd-bus/bus-error.h \
2156 src/libsystemd/sd-bus/bus-internal.c \
2157 src/libsystemd/sd-bus/bus-internal.h \
2158 src/libsystemd/sd-bus/bus-socket.c \
2159 src/libsystemd/sd-bus/bus-socket.h \
2160 src/libsystemd/sd-bus/bus-kernel.c \
2161 src/libsystemd/sd-bus/bus-kernel.h \
2162 src/libsystemd/sd-bus/bus-container.c \
2163 src/libsystemd/sd-bus/bus-container.h \
2164 src/libsystemd/sd-bus/bus-message.c \
2165 src/libsystemd/sd-bus/bus-message.h \
2166 src/libsystemd/sd-bus/bus-creds.c \
2167 src/libsystemd/sd-bus/bus-creds.h \
2168 src/libsystemd/sd-bus/bus-signature.c \
2169 src/libsystemd/sd-bus/bus-signature.h \
2170 src/libsystemd/sd-bus/bus-type.c \
2171 src/libsystemd/sd-bus/bus-type.h \
2172 src/libsystemd/sd-bus/bus-match.c \
2173 src/libsystemd/sd-bus/bus-match.h \
2174 src/libsystemd/sd-bus/bus-bloom.c \
2175 src/libsystemd/sd-bus/bus-bloom.h \
2176 src/libsystemd/sd-bus/bus-introspect.c \
2177 src/libsystemd/sd-bus/bus-introspect.h \
2178 src/libsystemd/sd-bus/bus-objects.c \
2179 src/libsystemd/sd-bus/bus-objects.h \
2180 src/libsystemd/sd-bus/bus-gvariant.c \
2181 src/libsystemd/sd-bus/bus-gvariant.h \
2182 src/libsystemd/sd-bus/bus-convenience.c \
2183 src/libsystemd/sd-bus/bus-track.c \
2184 src/libsystemd/sd-bus/bus-track.h \
2185 src/libsystemd/sd-bus/bus-util.c \
2186 src/libsystemd/sd-bus/bus-util.h \
2187 src/libsystemd/sd-bus/bus-slot.c \
2188 src/libsystemd/sd-bus/bus-slot.h \
2189 src/libsystemd/sd-bus/bus-protocol.h \
2190 src/libsystemd/sd-bus/kdbus.h \
2191 src/libsystemd/sd-bus/sd-memfd.c \
2192 src/libsystemd/sd-utf8/sd-utf8.c \
2193 src/libsystemd/sd-event/sd-event.c \
2194 src/libsystemd/sd-event/event-util.h \
2195 src/libsystemd/sd-rtnl/sd-rtnl.c \
2196 src/libsystemd/sd-rtnl/rtnl-internal.h \
2197 src/libsystemd/sd-rtnl/rtnl-message.c \
2198 src/libsystemd/sd-rtnl/rtnl-types.h \
2199 src/libsystemd/sd-rtnl/rtnl-types.c \
2200 src/libsystemd/sd-rtnl/rtnl-util.h \
2201 src/libsystemd/sd-rtnl/rtnl-util.c \
2202 src/libsystemd/sd-id128/sd-id128.c \
2203 src/libsystemd/sd-daemon/sd-daemon.c \
2204 src/libsystemd/sd-login/sd-login.c
2206 nodist_libsystemd_internal_la_SOURCES = \
2207 src/libsystemd/libsystemd.sym \
2208 src/libsystemd/sd-bus/bus-error-mapping.c
2210 libsystemd_internal_la_CFLAGS = \
2214 libsystemd_internal_la_LIBADD = \
2217 libsystemd_resolve_la_SOURCES = \
2218 src/libsystemd/sd-resolve/sd-resolve.c \
2219 src/libsystemd/sd-resolve/resolve-util.h
2221 libsystemd_resolve_la_CFLAGS = \
2225 libsystemd_resolve_la_LIBADD = \
2228 noinst_LTLIBRARIES += \
2229 libsystemd-internal.la \
2230 libsystemd-resolve.la
2232 libsystemd_dump_la_SOURCES = \
2233 src/libsystemd/sd-bus/bus-dump.c \
2234 src/libsystemd/sd-bus/bus-dump.h
2236 libsystemd_dump_la_CFLAGS = \
2240 noinst_LTLIBRARIES += \
2244 src/libsystemd/libsystemd.sym.m4 \
2245 src/libsystemd/libsystemd.pc.in \
2246 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2247 src/libsystemd/sd-bus/DIFFERENCES \
2248 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2251 src/libsystemd/libsystemd.sym \
2252 src/libsystemd/sd-bus/bus-error-mapping.c
2255 src/libsystemd/libsystemd.sym
2257 libsystemd_la_SOURCES = \
2258 $(libsystemd_internal_la_SOURCES) \
2259 $(libsystemd_resolve_la_SOURCES) \
2260 $(libsystemd_journal_internal_la_SOURCES)
2262 nodist_libsystemd_la_SOURCES = \
2263 $(nodist_libsystemd_internal_la_SOURCES)
2265 libsystemd_la_CFLAGS = \
2266 $(libsystemd_internal_la_CFLAGS) \
2267 $(libsystemd_resolve_la_CFLAGS) \
2268 $(libsystemd_journal_internal_la_CFLAGS)
2270 libsystemd_la_LDFLAGS = \
2272 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2273 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2275 libsystemd_la_LIBADD = \
2276 libsystemd-shared.la \
2277 $(libsystemd_internal_la_LIBADD) \
2278 $(libsystemd_journal_internal_la_LIBADD) \
2279 $(libsystemd_resolve_la_LIBADD)
2281 libsystemd-install-hook:
2282 libname=libsystemd.so && $(move-to-rootlibdir)
2284 libsystemd-uninstall-hook:
2285 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2287 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2288 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2290 pkgconfiglib_DATA += \
2291 src/libsystemd/libsystemd.pc
2293 pkginclude_HEADERS += \
2294 src/systemd/sd-login.h \
2295 src/systemd/sd-id128.h \
2296 src/systemd/sd-daemon.h
2299 pkginclude_HEADERS += \
2300 src/systemd/sd-bus.h \
2301 src/systemd/sd-bus-protocol.h \
2302 src/systemd/sd-bus-vtable.h \
2303 src/systemd/sd-memfd.h \
2304 src/systemd/sd-utf8.h \
2305 src/systemd/sd-event.h \
2306 src/systemd/sd-rtnl.h \
2307 src/systemd/sd-resolve.h
2310 lib_LTLIBRARIES += \
2315 test-bus-signature \
2321 test-bus-kernel-bloom \
2322 test-bus-kernel-benchmark \
2324 test-bus-zero-copy \
2325 test-bus-introspect \
2337 test_bus_marshal_SOURCES = \
2338 src/libsystemd/sd-bus/test-bus-marshal.c
2340 test_bus_marshal_LDADD = \
2341 libsystemd-internal.la \
2342 libsystemd-shared.la \
2343 libsystemd-dump.la \
2344 libsystemd-capability.la \
2349 test_bus_marshal_CFLAGS = \
2355 test_bus_signature_SOURCES = \
2356 src/libsystemd/sd-bus/test-bus-signature.c
2358 test_bus_signature_LDADD = \
2359 libsystemd-shared.la \
2360 libsystemd-internal.la
2362 test_bus_chat_SOURCES = \
2363 src/libsystemd/sd-bus/test-bus-chat.c
2365 test_bus_chat_CFLAGS = \
2369 test_bus_chat_LDADD = \
2370 libsystemd-internal.la \
2371 libsystemd-shared.la
2373 test_bus_cleanup_SOURCES = \
2374 src/libsystemd/sd-bus/test-bus-cleanup.c
2376 test_bus_cleanup_CFLAGS = \
2380 test_bus_cleanup_LDADD = \
2381 libsystemd-internal.la \
2382 libsystemd-shared.la
2384 test_bus_server_SOURCES = \
2385 src/libsystemd/sd-bus/test-bus-server.c
2387 test_bus_server_CFLAGS = \
2391 test_bus_server_LDADD = \
2392 libsystemd-internal.la \
2393 libsystemd-shared.la
2395 test_bus_objects_SOURCES = \
2396 src/libsystemd/sd-bus/test-bus-objects.c
2398 test_bus_objects_CFLAGS = \
2403 test_bus_objects_LDADD = \
2404 libsystemd-internal.la \
2405 libsystemd-shared.la \
2406 libsystemd-dump.la \
2407 libsystemd-capability.la \
2410 test_bus_error_SOURCES = \
2411 src/libsystemd/sd-bus/test-bus-error.c
2413 test_bus_error_LDADD = \
2414 libsystemd-internal.la \
2415 libsystemd-shared.la
2417 test_bus_gvariant_SOURCES = \
2418 src/libsystemd/sd-bus/test-bus-gvariant.c
2420 test_bus_gvariant_LDADD = \
2421 libsystemd-internal.la \
2422 libsystemd-shared.la \
2423 libsystemd-dump.la \
2424 libsystemd-capability.la \
2428 test_bus_gvariant_CFLAGS = \
2433 test_bus_creds_SOURCES = \
2434 src/libsystemd/sd-bus/test-bus-creds.c
2436 test_bus_creds_LDADD = \
2437 libsystemd-internal.la \
2438 libsystemd-shared.la \
2439 libsystemd-dump.la \
2440 libsystemd-capability.la
2442 test_bus_match_SOURCES = \
2443 src/libsystemd/sd-bus/test-bus-match.c
2445 test_bus_match_LDADD = \
2446 libsystemd-internal.la \
2447 libsystemd-shared.la
2449 test_bus_kernel_SOURCES = \
2450 src/libsystemd/sd-bus/test-bus-kernel.c
2452 test_bus_kernel_LDADD = \
2453 libsystemd-internal.la \
2454 libsystemd-shared.la \
2455 libsystemd-dump.la \
2456 libsystemd-capability.la \
2459 test_bus_kernel_CFLAGS = \
2463 test_bus_kernel_bloom_SOURCES = \
2464 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2466 test_bus_kernel_bloom_LDADD = \
2467 libsystemd-internal.la \
2468 libsystemd-shared.la
2470 test_bus_kernel_benchmark_SOURCES = \
2471 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2473 test_bus_kernel_benchmark_LDADD = \
2474 libsystemd-internal.la \
2475 libsystemd-shared.la
2477 test_bus_memfd_SOURCES = \
2478 src/libsystemd/sd-bus/test-bus-memfd.c
2480 test_bus_memfd_LDADD = \
2481 libsystemd-internal.la \
2482 libsystemd-shared.la
2484 test_bus_zero_copy_SOURCES = \
2485 src/libsystemd/sd-bus/test-bus-zero-copy.c
2487 test_bus_zero_copy_LDADD = \
2488 libsystemd-internal.la \
2489 libsystemd-shared.la \
2490 libsystemd-dump.la \
2491 libsystemd-capability.la \
2494 test_bus_zero_copy_CFLAGS = \
2498 test_bus_introspect_SOURCES = \
2499 src/libsystemd/sd-bus/test-bus-introspect.c
2501 test_bus_introspect_LDADD = \
2502 libsystemd-internal.la \
2503 libsystemd-shared.la
2505 test_event_SOURCES = \
2506 src/libsystemd/sd-event/test-event.c
2508 test_event_LDADD = \
2509 libsystemd-internal.la \
2510 libsystemd-shared.la
2512 test_rtnl_SOURCES = \
2513 src/libsystemd/sd-rtnl/test-rtnl.c
2516 libsystemd-internal.la \
2517 libsystemd-shared.la
2519 test_resolve_SOURCES = \
2520 src/libsystemd/sd-resolve/test-resolve.c
2522 test_resolve_LDADD = \
2523 libsystemd-resolve.la \
2524 libsystemd-internal.la \
2525 libsystemd-shared.la
2527 test_resolve_CFLAGS = \
2532 src/libsystemd/sd-bus/busctl.c
2535 libsystemd-internal.la \
2536 libsystemd-shared.la \
2537 libsystemd-dump.la \
2538 libsystemd-capability.la \
2545 # ------------------------------------------------------------------------------
2546 noinst_LTLIBRARIES += \
2547 libsystemd-network.la
2549 libsystemd_network_la_CFLAGS = \
2553 libsystemd_network_la_SOURCES = \
2554 src/systemd/sd-network.h \
2555 src/systemd/sd-dhcp-client.h \
2556 src/systemd/sd-dhcp-server.h \
2557 src/systemd/sd-dhcp-lease.h \
2558 src/systemd/sd-ipv4ll.h \
2559 src/network/sd-network.c \
2560 src/network/network-util.h \
2561 src/libsystemd-network/sd-dhcp-client.c \
2562 src/libsystemd-network/sd-dhcp-server.c \
2563 src/libsystemd-network/dhcp-network.c \
2564 src/libsystemd-network/dhcp-option.c \
2565 src/libsystemd-network/dhcp-packet.c \
2566 src/libsystemd-network/dhcp-internal.h \
2567 src/libsystemd-network/dhcp-server-internal.h \
2568 src/libsystemd-network/dhcp-protocol.h \
2569 src/libsystemd-network/dhcp-lease-internal.h \
2570 src/libsystemd-network/sd-dhcp-lease.c \
2571 src/libsystemd-network/sd-ipv4ll.c \
2572 src/libsystemd-network/ipv4ll-network.c \
2573 src/libsystemd-network/ipv4ll-packet.c \
2574 src/libsystemd-network/ipv4ll-internal.h \
2575 src/libsystemd-network/network-internal.c \
2576 src/libsystemd-network/network-internal.h
2578 libsystemd_network_la_LIBADD = \
2579 libudev-internal.la \
2580 libsystemd-label.la \
2581 libsystemd-internal.la \
2582 libsystemd-shared.la \
2585 test_dhcp_option_SOURCES = \
2586 src/libsystemd-network/dhcp-protocol.h \
2587 src/libsystemd-network/dhcp-internal.h \
2588 src/libsystemd-network/test-dhcp-option.c
2590 test_dhcp_option_LDADD = \
2591 libsystemd-network.la \
2592 libsystemd-internal.la \
2593 libsystemd-shared.la
2595 test_dhcp_client_SOURCES = \
2596 src/systemd/sd-dhcp-client.h \
2597 src/libsystemd-network/dhcp-protocol.h \
2598 src/libsystemd-network/dhcp-internal.h \
2599 src/libsystemd-network/test-dhcp-client.c
2601 test_dhcp_client_LDADD = \
2602 libsystemd-network.la \
2603 libsystemd-label.la \
2604 libsystemd-internal.la \
2605 libsystemd-shared.la
2607 test_dhcp_server_SOURCES = \
2608 src/libsystemd-network/test-dhcp-server.c
2610 test_dhcp_server_LDADD = \
2611 libsystemd-network.la \
2612 libsystemd-internal.la \
2613 libsystemd-shared.la
2615 test_ipv4ll_SOURCES = \
2616 src/systemd/sd-ipv4ll.h \
2617 src/libsystemd-network/ipv4ll-internal.h \
2618 src/libsystemd-network/test-ipv4ll.c
2620 test_ipv4ll_LDADD = \
2621 libsystemd-network.la \
2622 libsystemd-label.la \
2623 libsystemd-internal.la \
2624 libsystemd-shared.la
2632 # ------------------------------------------------------------------------------
2642 include_HEADERS += \
2643 src/libudev/libudev.h
2645 lib_LTLIBRARIES += \
2648 libudev_la_SOURCES =\
2649 src/libudev/libudev.sym \
2650 src/libudev/libudev-private.h \
2651 src/libudev/libudev.c \
2652 src/libudev/libudev-list.c \
2653 src/libudev/libudev-util.c \
2654 src/libudev/libudev-device.c \
2655 src/libudev/libudev-enumerate.c \
2656 src/libudev/libudev-monitor.c \
2657 src/libudev/libudev-queue.c \
2658 src/libudev/libudev-hwdb-def.h \
2659 src/libudev/libudev-hwdb.c
2661 libudev_la_CFLAGS = \
2665 libudev_la_LDFLAGS = \
2667 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2668 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2670 libudev_la_LIBADD = \
2671 libsystemd-internal.la \
2672 libsystemd-shared.la
2674 pkgconfiglib_DATA += \
2675 src/libudev/libudev.pc
2678 src/libudev/libudev.pc.in
2681 src/libudev/libudev.pc \
2686 $(AM_V_at)$(MKDIR_P) $(dir $@)
2687 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2690 $(AM_V_at)$(MKDIR_P) $(dir $@)
2691 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2693 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2694 libudev-install-hook:
2695 libname=libudev.so && $(move-to-rootlibdir)
2697 libudev-uninstall-hook:
2698 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2700 INSTALL_EXEC_HOOKS += libudev-install-hook
2701 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2703 # ------------------------------------------------------------------------------
2704 noinst_LTLIBRARIES += \
2707 libudev_internal_la_SOURCES =\
2708 $(libudev_la_SOURCES) \
2709 src/libudev/libudev-device-private.c
2711 libudev_internal_la_CFLAGS = \
2713 -fvisibility=default
2715 # ------------------------------------------------------------------------------
2717 $(sysconfdir)/udev/rules.d \
2718 $(sysconfdir)/udev/hwdb.d
2720 dist_network_DATA = \
2721 network/99-default.link \
2722 network/80-container-host0.network \
2723 network/80-container-ve.network
2725 dist_udevrules_DATA += \
2726 rules/42-usb-hid-pm.rules \
2727 rules/50-udev-default.rules \
2728 rules/60-drm.rules \
2729 rules/60-keyboard.rules \
2730 rules/60-persistent-storage-tape.rules \
2731 rules/60-persistent-serial.rules \
2732 rules/60-persistent-input.rules \
2733 rules/60-persistent-alsa.rules \
2734 rules/60-persistent-storage.rules \
2735 rules/64-btrfs.rules \
2736 rules/75-net-description.rules \
2737 rules/75-tty-description.rules \
2738 rules/78-sound-card.rules \
2739 rules/80-net-setup-link.rules \
2740 rules/95-udev-late.rules
2742 nodist_udevrules_DATA += \
2743 rules/99-systemd.rules
2745 dist_udevhwdb_DATA = \
2746 hwdb/20-pci-vendor-model.hwdb \
2747 hwdb/20-pci-classes.hwdb \
2748 hwdb/20-usb-vendor-model.hwdb \
2749 hwdb/20-usb-classes.hwdb \
2750 hwdb/20-sdio-vendor-model.hwdb \
2751 hwdb/20-sdio-classes.hwdb \
2752 hwdb/20-bluetooth-vendor-product.hwdb \
2753 hwdb/20-acpi-vendor.hwdb \
2755 hwdb/20-net-ifname.hwdb \
2756 hwdb/60-keyboard.hwdb
2758 udevconfdir = $(sysconfdir)/udev
2759 dist_udevconf_DATA = \
2762 sharepkgconfigdir = $(datadir)/pkgconfig
2763 sharepkgconfig_DATA = \
2767 rules/99-systemd.rules.in \
2771 rules/99-systemd.rules \
2775 units/systemd-udevd.service.in \
2776 units/systemd-udev-trigger.service.in \
2777 units/systemd-udev-settle.service.in \
2778 units/systemd-udev-hwdb-update.service.in
2781 units/systemd-udevd.service \
2782 units/systemd-udev-trigger.service \
2783 units/systemd-udev-settle.service \
2784 units/systemd-udev-hwdb-update.service
2786 SOCKETS_TARGET_WANTS += \
2787 systemd-udevd-control.socket \
2788 systemd-udevd-kernel.socket
2790 SYSINIT_TARGET_WANTS += \
2791 systemd-udevd.service \
2792 systemd-udev-trigger.service \
2793 systemd-udev-hwdb-update.service
2795 rootbin_PROGRAMS += \
2798 rootlibexec_PROGRAMS += \
2801 noinst_LTLIBRARIES += \
2804 src/udev/keyboard-keys.txt:
2805 $(AM_V_at)$(MKDIR_P) $(dir $@)
2806 $(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/' > $@
2808 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2809 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2811 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2812 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2814 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2815 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2817 libudev_core_la_SOURCES = \
2819 src/udev/udev-event.c \
2820 src/udev/udev-watch.c \
2821 src/udev/udev-node.c \
2822 src/udev/udev-rules.c \
2823 src/udev/udev-ctrl.c \
2824 src/udev/udev-builtin.c \
2825 src/udev/udev-builtin-btrfs.c \
2826 src/udev/udev-builtin-hwdb.c \
2827 src/udev/udev-builtin-input_id.c \
2828 src/udev/udev-builtin-keyboard.c \
2829 src/udev/udev-builtin-net_id.c \
2830 src/udev/udev-builtin-net_setup_link.c \
2831 src/udev/udev-builtin-path_id.c \
2832 src/udev/udev-builtin-usb_id.c \
2833 src/udev/net/link-config.h \
2834 src/udev/net/link-config.c \
2835 src/udev/net/ethtool-util.h \
2836 src/udev/net/ethtool-util.c
2838 nodist_libudev_core_la_SOURCES = \
2839 src/udev/keyboard-keys-from-name.h \
2840 src/udev/keyboard-keys-to-name.h \
2841 src/udev/net/link-config-gperf.c
2844 $(nodist_libudev_core_la_SOURCES)
2847 src/udev/keyboard-keys-from-name.gperf \
2848 src/udev/keyboard-keys.txt \
2849 src/udev/net/link-config-gperf.c
2852 src/udev/net/link-config-gperf.gperf
2854 libudev_core_la_CFLAGS = \
2859 libudev_core_la_LIBADD = \
2860 libudev-internal.la \
2861 libsystemd-label.la \
2862 libsystemd-internal.la \
2863 libsystemd-network.la \
2864 libsystemd-shared.la \
2868 libudev_core_la_CPPFLAGS = \
2870 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2873 libudev_core_la_SOURCES += \
2874 src/udev/udev-builtin-firmware.c
2876 dist_udevrules_DATA += \
2877 rules/50-firmware.rules
2881 libudev_core_la_SOURCES += \
2882 src/udev/udev-builtin-kmod.c
2884 dist_udevrules_DATA += \
2885 rules/80-drivers.rules
2889 libudev_core_la_SOURCES += \
2890 src/udev/udev-builtin-blkid.c
2894 libudev_core_la_SOURCES += \
2895 src/udev/udev-builtin-uaccess.c \
2896 src/login/logind-acl.c \
2897 src/libsystemd/sd-login/sd-login.c \
2898 src/systemd/sd-login.h
2900 libudev_core_la_LIBADD += \
2904 systemd_udevd_SOURCES = \
2907 systemd_udevd_LDADD = \
2911 src/udev/udevadm.c \
2912 src/udev/udevadm-info.c \
2913 src/udev/udevadm-control.c \
2914 src/udev/udevadm-monitor.c \
2915 src/udev/udevadm-hwdb.c \
2916 src/udev/udevadm-settle.c \
2917 src/udev/udevadm-trigger.c \
2918 src/udev/udevadm-test.c \
2919 src/udev/udevadm-test-builtin.c
2924 # Update hwdb on installation. Do not bother if installing
2925 # in DESTDIR, since this is likely for packaging purposes.
2927 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2929 INSTALL_DATA_HOOKS += \
2933 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2935 # ------------------------------------------------------------------------------
2944 test_libudev_SOURCES = \
2945 src/test/test-libudev.c
2947 test_libudev_LDADD = \
2948 libsystemd-label.la \
2949 libudev-internal.la \
2950 libsystemd-shared.la
2952 test_udev_SOURCES = \
2953 src/test/test-udev.c
2962 test_udev_LDADD += \
2969 # packed sysfs test tree
2971 $(AM_V_at)$(MKDIR_P) $(dir $@)
2972 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2976 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2981 test/rules-test.sh \
2982 test/rule-syntax-check.py
2984 # ------------------------------------------------------------------------------
2986 src/udev/ata_id/ata_id.c
2989 libudev-internal.la \
2990 libsystemd-shared.la
2992 udevlibexec_PROGRAMS += \
2995 # ------------------------------------------------------------------------------
2996 cdrom_id_SOURCES = \
2997 src/udev/cdrom_id/cdrom_id.c
3000 libudev-internal.la \
3001 libsystemd-shared.la
3003 udevlibexec_PROGRAMS += \
3006 dist_udevrules_DATA += \
3007 rules/60-cdrom_id.rules
3009 # ------------------------------------------------------------------------------
3011 src/udev/collect/collect.c
3014 libudev-internal.la \
3015 libsystemd-shared.la
3017 udevlibexec_PROGRAMS += \
3020 # ------------------------------------------------------------------------------
3022 src/udev/scsi_id/scsi_id.c \
3023 src/udev/scsi_id/scsi_serial.c \
3024 src/udev/scsi_id/scsi.h \
3025 src/udev/scsi_id/scsi_id.h
3028 libudev-internal.la \
3029 libsystemd-shared.la
3031 udevlibexec_PROGRAMS += \
3035 src/udev/scsi_id/README
3037 # ------------------------------------------------------------------------------
3039 src/udev/v4l_id/v4l_id.c
3044 udevlibexec_PROGRAMS += \
3047 dist_udevrules_DATA += \
3048 rules/60-persistent-v4l.rules
3050 # ------------------------------------------------------------------------------
3051 accelerometer_SOURCES = \
3052 src/udev/accelerometer/accelerometer.c
3054 accelerometer_LDADD = \
3055 libudev-internal.la -lm \
3056 libsystemd-shared.la
3058 udevlibexec_PROGRAMS += \
3061 dist_udevrules_DATA += \
3062 rules/61-accelerometer.rules
3064 # ------------------------------------------------------------------------------
3071 libgudev_includedir = \
3072 $(includedir)/gudev-1.0/gudev
3074 libgudev_include_HEADERS = \
3076 src/gudev/gudevenums.h \
3077 src/gudev/gudevenumtypes.h \
3078 src/gudev/gudevtypes.h \
3079 src/gudev/gudevclient.h \
3080 src/gudev/gudevdevice.h \
3081 src/gudev/gudevenumerator.h
3083 lib_LTLIBRARIES += libgudev-1.0.la
3085 pkgconfiglib_DATA += \
3086 src/gudev/gudev-1.0.pc
3089 src/gudev/gudev-1.0.pc
3091 libgudev_1_0_la_SOURCES = \
3092 src/gudev/gudevenums.h \
3093 src/gudev/gudevenumtypes.h \
3094 src/gudev/gudevenumtypes.h\
3095 src/gudev/gudevtypes.h \
3096 src/gudev/gudevclient.h \
3097 src/gudev/gudevclient.c \
3098 src/gudev/gudevdevice.h \
3099 src/gudev/gudevdevice.c \
3100 src/gudev/gudevenumerator.h \
3101 src/gudev/gudevenumerator.c \
3102 src/gudev/gudevprivate.h
3104 nodist_libgudev_1_0_la_SOURCES = \
3105 src/gudev/gudevmarshal.h \
3106 src/gudev/gudevmarshal.c \
3107 src/gudev/gudevenumtypes.h \
3108 src/gudev/gudevenumtypes.c
3111 $(nodist_libgudev_1_0_la_SOURCES)
3113 libgudev_1_0_la_CPPFLAGS = \
3115 -I$(top_builddir)/src\
3116 -I$(top_srcdir)/src\
3117 -I$(top_builddir)/src/gudev \
3118 -I$(top_srcdir)/src/gudev \
3119 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3120 -D_GUDEV_COMPILATION \
3121 -DG_LOG_DOMAIN=\"GUdev\"
3123 libgudev_1_0_la_CFLAGS = \
3125 -fvisibility=default \
3128 libgudev_1_0_la_LIBADD = \
3132 libgudev_1_0_la_LDFLAGS = \
3134 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3135 -export-dynamic -no-undefined \
3136 -export-symbols-regex '^g_udev_.*'
3138 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3139 $(AM_V_at)$(MKDIR_P) $(dir $@)
3140 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3142 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3143 $(AM_V_at)$(MKDIR_P) $(dir $@)
3144 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3145 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3147 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3148 $(AM_V_at)$(MKDIR_P) $(dir $@)
3149 $(AM_V_GEN)glib-mkenums --template $^ > $@
3151 if HAVE_INTROSPECTION
3152 -include $(INTROSPECTION_MAKEFILE)
3154 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3156 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3158 src_gudev_GUdev_1_0_gir_CFLAGS = \
3161 -D_GUDEV_COMPILATION \
3162 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3163 -I$(top_srcdir)/src \
3164 -I$(top_builddir)/src \
3165 -I$(top_srcdir)/src/gudev \
3166 -I$(top_builddir)/src/gudev
3168 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3170 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3171 --pkg-export=gudev-1.0 \
3174 src_gudev_GUdev_1_0_gir_FILES = \
3176 src/gudev/gudevtypes.h \
3177 src/gudev/gudevenums.h \
3178 src/gudev/gudevenumtypes.h \
3179 src/gudev/gudevclient.h \
3180 src/gudev/gudevdevice.h \
3181 src/gudev/gudevenumerator.h \
3182 src/gudev/gudevclient.c \
3183 src/gudev/gudevdevice.c \
3184 src/gudev/gudevenumerator.c
3186 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3187 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3189 girdir = $(datadir)/gir-1.0
3191 src/gudev/GUdev-1.0.gir
3193 typelibsdir = $(libdir)/girepository-1.0
3195 src/gudev/GUdev-1.0.typelib
3197 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3198 endif # HAVE_INTROSPECTION
3200 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3201 libgudev-install-hook:
3202 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3204 libgudev-uninstall-hook:
3205 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3207 INSTALL_EXEC_HOOKS += libgudev-install-hook
3208 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3212 src/gudev/gudev-1.0.pc.in \
3213 src/gudev/gudevmarshal.list \
3214 src/gudev/gudevenumtypes.h.template \
3215 src/gudev/gudevenumtypes.c.template \
3216 src/gudev/gjs-example.js \
3217 src/gudev/seed-example-enum.js \
3218 src/gudev/seed-example.js
3220 # ------------------------------------------------------------------------------
3221 mtd_probe_SOURCES = \
3222 src/udev/mtd_probe/mtd_probe.c \
3223 src/udev/mtd_probe/mtd_probe.h \
3224 src/udev/mtd_probe/probe_smartmedia.c
3226 dist_udevrules_DATA += \
3227 rules/75-probe_mtd.rules
3229 udevlibexec_PROGRAMS += \
3232 # ------------------------------------------------------------------------------
3233 test_id128_SOURCES = \
3234 src/test/test-id128.c
3236 test_id128_LDADD = \
3237 libsystemd-internal.la \
3238 libsystemd-shared.la
3243 # ------------------------------------------------------------------------------
3245 rootlibexec_PROGRAMS += \
3248 systemd_activate_SOURCES = \
3249 src/activate/activate.c
3251 systemd_activate_LDADD = \
3252 libsystemd-label.la \
3253 libsystemd-internal.la \
3254 libsystemd-shared.la
3256 # ------------------------------------------------------------------------------
3257 systemd_journald_SOURCES = \
3258 src/journal/journald.c \
3259 src/journal/journald-server.h
3261 systemd_journald_LDADD = \
3262 libsystemd-journal-core.la \
3263 libsystemd-internal.la \
3264 libsystemd-shared.la
3266 systemd_cat_SOURCES = \
3269 systemd_cat_LDADD = \
3270 libsystemd-journal-core.la
3273 rootlibexec_PROGRAMS += \
3274 systemd-journal-remote
3276 systemd_journal_remote_SOURCES = \
3277 src/journal/journal-remote-parse.h \
3278 src/journal/journal-remote-parse.c \
3279 src/journal/journal-remote-write.h \
3280 src/journal/journal-remote-write.c \
3281 src/journal/journal-remote.c
3283 systemd_journal_remote_LDADD = \
3284 libsystemd-internal.la \
3285 libsystemd-journal-core.la
3287 systemd_journal_remote_SOURCES += \
3288 src/journal/microhttpd-util.h \
3289 src/journal/microhttpd-util.c
3291 systemd_journal_remote_CFLAGS = \
3293 $(MICROHTTPD_CFLAGS)
3295 systemd_journal_remote_LDADD += \
3299 systemd_journal_remote_LDADD += \
3304 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3305 journalctl_CFLAGS = \
3308 journalctl_SOURCES = \
3309 src/journal/journalctl.c
3311 journalctl_LDADD = \
3312 libsystemd-journal-internal.la \
3313 libsystemd-internal.la \
3314 libsystemd-logs.la \
3315 libsystemd-shared.la
3318 journalctl_LDADD += \
3323 journalctl_SOURCES += \
3324 src/journal/journal-qrcode.c \
3325 src/journal/journal-qrcode.h
3327 journalctl_CFLAGS += \
3330 journalctl_LDADD += \
3334 test_journal_SOURCES = \
3335 src/journal/test-journal.c
3337 test_journal_LDADD = \
3338 libsystemd-journal-core.la
3340 test_journal_send_SOURCES = \
3341 src/journal/test-journal-send.c
3343 test_journal_send_LDADD = \
3344 libsystemd-journal-core.la
3346 test_journal_syslog_SOURCES = \
3347 src/journal/test-journal-syslog.c
3349 test_journal_syslog_LDADD = \
3350 libsystemd-journal-core.la
3352 test_journal_match_SOURCES = \
3353 src/journal/test-journal-match.c
3355 test_journal_match_LDADD = \
3356 libsystemd-journal-core.la
3358 test_journal_enum_SOURCES = \
3359 src/journal/test-journal-enum.c
3361 test_journal_enum_LDADD = \
3362 libsystemd-journal-core.la
3364 test_journal_stream_SOURCES = \
3365 src/journal/test-journal-stream.c
3367 test_journal_stream_LDADD = \
3368 libsystemd-journal-core.la
3370 test_journal_flush_SOURCES = \
3371 src/journal/test-journal-flush.c
3373 test_journal_flush_LDADD = \
3374 libsystemd-journal-core.la
3376 test_journal_init_SOURCES = \
3377 src/journal/test-journal-init.c
3379 test_journal_init_LDADD = \
3380 libsystemd-journal-core.la
3382 test_journal_verify_SOURCES = \
3383 src/journal/test-journal-verify.c
3385 test_journal_verify_LDADD = \
3386 libsystemd-journal-core.la
3388 test_journal_interleaving_SOURCES = \
3389 src/journal/test-journal-interleaving.c
3391 test_journal_interleaving_LDADD = \
3392 libsystemd-journal-core.la
3394 test_mmap_cache_SOURCES = \
3395 src/journal/test-mmap-cache.c
3397 test_mmap_cache_LDADD = \
3398 libsystemd-journal-core.la
3400 test_catalog_SOURCES = \
3401 src/journal/test-catalog.c
3403 test_catalog_CPPFLAGS = \
3405 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3407 test_catalog_LDADD = \
3408 libsystemd-journal-core.la
3410 libsystemd_journal_core_la_SOURCES = \
3411 src/journal/journald-kmsg.c \
3412 src/journal/journald-kmsg.h \
3413 src/journal/journald-syslog.c \
3414 src/journal/journald-syslog.h \
3415 src/journal/journald-stream.c \
3416 src/journal/journald-stream.h \
3417 src/journal/journald-server.c \
3418 src/journal/journald-server.h \
3419 src/journal/journald-console.c \
3420 src/journal/journald-console.h \
3421 src/journal/journald-wall.c \
3422 src/journal/journald-wall.h \
3423 src/journal/journald-native.c \
3424 src/journal/journald-native.h \
3425 src/journal/journald-rate-limit.c \
3426 src/journal/journald-rate-limit.h \
3427 src/journal/journal-internal.h
3429 nodist_libsystemd_journal_core_la_SOURCES = \
3430 src/journal/journald-gperf.c
3432 libsystemd_journal_core_la_LIBADD = \
3433 libsystemd-journal-internal.la \
3434 libudev-internal.la \
3435 libsystemd-capability.la \
3436 libsystemd-label.la \
3437 libsystemd-internal.la \
3438 libsystemd-shared.la
3441 libsystemd_journal_core_la_LIBADD += \
3445 noinst_LTLIBRARIES += \
3446 libsystemd-journal-core.la
3448 journal-install-hook:
3449 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3450 -chown 0:0 $(DESTDIR)/var/log/journal
3451 -chmod 755 $(DESTDIR)/var/log/journal
3452 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3453 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3455 journal-uninstall-hook:
3456 -rmdir $(DESTDIR)/var/log/journal/
3458 INSTALL_EXEC_HOOKS += journal-install-hook
3459 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3461 # ------------------------------------------------------------------------------
3462 # Update catalog on installation. Do not bother if installing
3463 # in DESTDIR, since this is likely for packaging purposes.
3464 catalog-update-hook:
3465 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3467 INSTALL_DATA_HOOKS += \
3470 catalog-remove-hook:
3471 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3473 UNINSTALL_DATA_HOOKS += \
3482 test-journal-syslog \
3483 test-journal-match \
3484 test-journal-stream \
3486 test-journal-verify \
3487 test-journal-interleaving \
3488 test-journal-flush \
3492 pkginclude_HEADERS += \
3493 src/systemd/sd-journal.h \
3494 src/systemd/sd-messages.h \
3495 src/systemd/_sd-common.h
3497 libsystemd_journal_internal_la_SOURCES = \
3498 src/journal/sd-journal.c \
3499 src/systemd/sd-journal.h \
3500 src/systemd/_sd-common.h \
3501 src/journal/journal-file.c \
3502 src/journal/journal-file.h \
3503 src/journal/journal-vacuum.c \
3504 src/journal/journal-vacuum.h \
3505 src/journal/journal-verify.c \
3506 src/journal/journal-verify.h \
3507 src/journal/lookup3.c \
3508 src/journal/lookup3.h \
3509 src/journal/journal-send.c \
3510 src/journal/journal-def.h \
3511 src/journal/compress.h \
3512 src/journal/catalog.c \
3513 src/journal/catalog.h \
3514 src/journal/mmap-cache.c \
3515 src/journal/mmap-cache.h
3517 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3518 libsystemd_journal_internal_la_CFLAGS =
3521 libsystemd_journal_internal_la_LIBADD =
3524 libsystemd_journal_internal_la_SOURCES += \
3525 src/journal/compress.c
3527 libsystemd_journal_internal_la_CFLAGS += \
3530 libsystemd_journal_internal_la_LIBADD += \
3535 libsystemd_journal_internal_la_SOURCES += \
3536 src/journal/journal-authenticate.c \
3537 src/journal/journal-authenticate.h \
3538 src/journal/fsprg.c \
3541 libsystemd_journal_internal_la_LIBADD += \
3544 # fsprg.c is a drop-in file using void pointer arithmetic
3545 libsystemd_journal_internal_la_CFLAGS += \
3550 noinst_LTLIBRARIES += \
3551 libsystemd-journal-internal.la
3553 rootlibexec_PROGRAMS += \
3556 rootbin_PROGRAMS += \
3562 dist_systemunit_DATA += \
3563 units/systemd-journald.socket \
3564 units/systemd-journald-dev-log.socket
3566 nodist_systemunit_DATA += \
3567 units/systemd-journald.service \
3568 units/systemd-journal-flush.service \
3569 units/systemd-journal-catalog-update.service
3571 dist_pkgsysconf_DATA += \
3572 src/journal/journald.conf
3574 dist_catalog_DATA = \
3575 catalog/systemd.fr.catalog \
3576 catalog/systemd.ru.catalog \
3577 catalog/systemd.it.catalog \
3578 catalog/systemd.catalog
3580 SOCKETS_TARGET_WANTS += \
3581 systemd-journald.socket \
3582 systemd-journald-dev-log.socket
3584 SYSINIT_TARGET_WANTS += \
3585 systemd-journald.service \
3586 systemd-journal-flush.service \
3587 systemd-journal-catalog-update.service
3590 units/systemd-journald.service.in \
3591 units/systemd-journal-flush.service.in \
3592 units/systemd-journal-catalog-update.service.in \
3593 src/journal/journald-gperf.gperf
3596 src/journal/journald-gperf.c
3598 # ------------------------------------------------------------------------------
3600 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3602 rootlibexec_PROGRAMS += \
3603 systemd-journal-gatewayd
3605 systemd_journal_gatewayd_SOURCES = \
3606 src/journal/journal-gatewayd.c \
3607 src/journal/microhttpd-util.h \
3608 src/journal/microhttpd-util.c
3610 systemd_journal_gatewayd_LDADD = \
3611 libsystemd-logs.la \
3612 libsystemd-journal-internal.la \
3613 libsystemd-internal.la \
3614 libsystemd-shared.la \
3618 systemd_journal_gatewayd_LDADD += \
3622 systemd_journal_gatewayd_CFLAGS = \
3624 $(MICROHTTPD_CFLAGS)
3626 systemd_journal_gatewayd_CPPFLAGS = \
3628 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3630 dist_systemunit_DATA += \
3631 units/systemd-journal-gatewayd.socket
3633 nodist_systemunit_DATA += \
3634 units/systemd-journal-gatewayd.service
3636 dist_gatewayddocumentroot_DATA = \
3637 src/journal/browse.html
3642 units/systemd-journal-gatewayd.service.in
3644 # ------------------------------------------------------------------------------
3646 systemd_socket_proxyd_SOURCES = \
3647 src/socket-proxy/socket-proxyd.c
3649 systemd_socket_proxyd_LDADD = \
3650 libsystemd-logs.la \
3651 libsystemd-internal.la \
3652 libsystemd-journal-internal.la \
3653 libsystemd-shared.la \
3654 libsystemd-resolve.la
3656 # ------------------------------------------------------------------------------
3658 systemd_coredump_SOURCES = \
3659 src/journal/coredump.c
3661 systemd_coredump_LDADD = \
3662 libsystemd-journal-internal.la \
3663 libsystemd-label.la \
3664 libsystemd-internal.la \
3665 libsystemd-shared.la
3667 rootlibexec_PROGRAMS += \
3670 systemd_coredumpctl_SOURCES = \
3671 src/journal/coredumpctl.c
3673 systemd_coredumpctl_LDADD = \
3674 libsystemd-journal-internal.la \
3675 libsystemd-internal.la \
3676 libsystemd-shared.la
3681 dist_bashcompletion_DATA += \
3682 shell-completion/bash/systemd-coredumpctl
3684 dist_zshcompletion_DATA += \
3685 shell-completion/zsh/_systemd-coredumpctl
3688 sysctl.d/50-coredump.conf
3691 sysctl.d/50-coredump.conf
3695 sysctl.d/50-coredump.conf.in
3697 # ------------------------------------------------------------------------------
3699 systemd_binfmt_SOURCES = \
3702 systemd_binfmt_LDADD = \
3703 libsystemd-shared.la
3705 rootlibexec_PROGRAMS += \
3708 dist_systemunit_DATA += \
3709 units/proc-sys-fs-binfmt_misc.automount \
3710 units/proc-sys-fs-binfmt_misc.mount
3712 nodist_systemunit_DATA += \
3713 units/systemd-binfmt.service
3716 $(prefix)/lib/binfmt.d \
3717 $(sysconfdir)/binfmt.d
3719 SYSINIT_TARGET_WANTS += \
3720 systemd-binfmt.service \
3721 proc-sys-fs-binfmt_misc.automount
3726 units/systemd-binfmt.service.in
3728 # ------------------------------------------------------------------------------
3730 systemd_vconsole_setup_SOURCES = \
3731 src/vconsole/vconsole-setup.c
3733 systemd_vconsole_setup_LDADD = \
3734 libsystemd-shared.la
3736 rootlibexec_PROGRAMS += \
3737 systemd-vconsole-setup
3739 nodist_systemunit_DATA += \
3740 units/systemd-vconsole-setup.service
3742 SYSINIT_TARGET_WANTS += \
3743 systemd-vconsole-setup.service
3747 units/systemd-vconsole-setup.service.in
3749 # ------------------------------------------------------------------------------
3751 systemd_readahead_SOURCES = \
3752 src/readahead/readahead.c \
3753 src/readahead/readahead-collect.c \
3754 src/readahead/readahead-replay.c \
3755 src/readahead/readahead-analyze.c \
3756 src/readahead/readahead-common.c \
3757 src/readahead/readahead-common.h
3759 systemd_readahead_LDADD = \
3760 libsystemd-internal.la \
3761 libudev-internal.la \
3762 libsystemd-shared.la
3765 src/readahead/sd-readahead.c \
3766 src/systemd/sd-readahead.h
3768 rootlibexec_PROGRAMS += \
3771 dist_systemunit_DATA += \
3772 units/systemd-readahead-drop.service \
3773 units/systemd-readahead-done.timer
3775 nodist_systemunit_DATA += \
3776 units/systemd-readahead-collect.service \
3777 units/systemd-readahead-replay.service \
3778 units/systemd-readahead-done.service
3783 test_ssd_SOURCES = \
3784 src/readahead/test-ssd.c \
3785 src/readahead/readahead-common.c \
3786 src/readahead/readahead-common.h
3789 libsystemd-internal.la \
3790 libudev-internal.la \
3791 libsystemd-shared.la
3796 units/systemd-readahead-collect.service.in \
3797 units/systemd-readahead-replay.service.in \
3798 units/systemd-readahead-done.service.in
3800 # ------------------------------------------------------------------------------
3802 systemd_bootchart_SOURCES = \
3803 src/bootchart/bootchart.c \
3804 src/bootchart/bootchart.h \
3805 src/bootchart/store.c \
3806 src/bootchart/store.h \
3807 src/bootchart/svg.c \
3810 systemd_bootchart_LDADD = \
3811 libsystemd-journal-internal.la \
3812 libsystemd-shared.la
3814 rootlibexec_PROGRAMS += \
3817 dist_pkgsysconf_DATA += \
3818 src/bootchart/bootchart.conf
3821 # ------------------------------------------------------------------------------
3822 if ENABLE_QUOTACHECK
3823 rootlibexec_PROGRAMS += \
3826 nodist_systemunit_DATA += \
3827 units/systemd-quotacheck.service
3829 systemd_quotacheck_SOURCES = \
3830 src/quotacheck/quotacheck.c
3832 systemd_quotacheck_LDADD = \
3833 libsystemd-shared.la
3837 units/systemd-quotacheck.service.in
3839 nodist_systemunit_DATA += \
3840 units/quotaon.service
3842 # ------------------------------------------------------------------------------
3843 if ENABLE_RANDOMSEED
3844 rootlibexec_PROGRAMS += \
3847 nodist_systemunit_DATA += \
3848 units/systemd-random-seed.service
3850 systemd_random_seed_SOURCES = \
3851 src/random-seed/random-seed.c
3853 systemd_random_seed_LDADD = \
3854 libsystemd-label.la \
3855 libsystemd-shared.la
3857 SYSINIT_TARGET_WANTS += \
3858 systemd-random-seed.service
3863 units/systemd-random-seed.service.in
3865 # ------------------------------------------------------------------------------
3867 rootlibexec_PROGRAMS += \
3870 nodist_systemunit_DATA += \
3871 units/systemd-backlight@.service
3873 systemd_backlight_SOURCES = \
3874 src/backlight/backlight.c
3876 systemd_backlight_LDADD = \
3877 libsystemd-label.la \
3878 libudev-internal.la \
3879 libsystemd-shared.la
3883 units/systemd-backlight@.service.in
3885 # ------------------------------------------------------------------------------
3887 rootlibexec_PROGRAMS += \
3890 nodist_systemunit_DATA += \
3891 units/systemd-rfkill@.service
3893 systemd_rfkill_SOURCES = \
3896 systemd_rfkill_LDADD = \
3897 libsystemd-label.la \
3898 libudev-internal.la \
3899 libsystemd-shared.la
3903 units/systemd-rfkill@.service.in
3905 # ------------------------------------------------------------------------------
3906 if HAVE_LIBCRYPTSETUP
3907 rootlibexec_PROGRAMS += \
3910 systemgenerator_PROGRAMS += \
3911 systemd-cryptsetup-generator
3913 dist_systemunit_DATA += \
3914 units/cryptsetup.target
3916 systemd_cryptsetup_SOURCES = \
3917 src/cryptsetup/cryptsetup.c
3919 systemd_cryptsetup_CFLAGS = \
3921 $(LIBCRYPTSETUP_CFLAGS)
3923 systemd_cryptsetup_LDADD = \
3924 libsystemd-label.la \
3925 libudev-internal.la \
3926 libsystemd-shared.la \
3927 $(LIBCRYPTSETUP_LIBS)
3929 systemd_cryptsetup_generator_SOURCES = \
3930 src/cryptsetup/cryptsetup-generator.c
3932 systemd_cryptsetup_generator_LDADD = \
3933 libsystemd-label.la \
3934 libsystemd-shared.la
3936 SYSINIT_TARGET_WANTS += \
3941 # ------------------------------------------------------------------------------
3943 systemd_hostnamed_SOURCES = \
3944 src/hostname/hostnamed.c
3946 systemd_hostnamed_LDADD = \
3947 libsystemd-label.la \
3948 libsystemd-internal.la \
3949 libsystemd-shared.la
3951 rootlibexec_PROGRAMS += \
3954 nodist_systemunit_DATA += \
3955 units/systemd-hostnamed.service
3957 dist_systemunit_DATA += \
3958 units/org.freedesktop.hostname1.busname
3960 dist_dbuspolicy_DATA += \
3961 src/hostname/org.freedesktop.hostname1.conf
3963 dist_dbussystemservice_DATA += \
3964 src/hostname/org.freedesktop.hostname1.service
3966 polkitpolicy_files += \
3967 src/hostname/org.freedesktop.hostname1.policy
3969 SYSTEM_UNIT_ALIASES += \
3970 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3972 BUSNAMES_TARGET_WANTS += \
3973 org.freedesktop.hostname1.busname
3975 hostnamectl_SOURCES = \
3976 src/hostname/hostnamectl.c
3978 hostnamectl_LDADD = \
3979 libsystemd-internal.la \
3980 libsystemd-shared.la
3985 dist_bashcompletion_DATA += \
3986 shell-completion/bash/hostnamectl
3988 dist_zshcompletion_DATA += \
3989 shell-completion/zsh/_hostnamectl
3993 polkitpolicy_in_files += \
3994 src/hostname/org.freedesktop.hostname1.policy.in
3997 units/systemd-hostnamed.service.in
3999 # ------------------------------------------------------------------------------
4001 dist_systemunit_DATA += \
4002 units/org.freedesktop.systemd1.busname
4004 BUSNAMES_TARGET_WANTS += \
4005 org.freedesktop.systemd1.busname
4008 # ------------------------------------------------------------------------------
4010 systemd_localed_SOURCES = \
4011 src/locale/localed.c
4013 systemd_localed_LDADD = \
4014 libsystemd-label.la \
4015 libsystemd-internal.la \
4016 libsystemd-shared.la
4018 nodist_systemunit_DATA += \
4019 units/systemd-localed.service
4021 dist_systemunit_DATA += \
4022 units/org.freedesktop.locale1.busname
4024 rootlibexec_PROGRAMS += \
4027 dist_dbuspolicy_DATA += \
4028 src/locale/org.freedesktop.locale1.conf
4030 dist_dbussystemservice_DATA += \
4031 src/locale/org.freedesktop.locale1.service
4033 polkitpolicy_files += \
4034 src/locale/org.freedesktop.locale1.policy
4036 SYSTEM_UNIT_ALIASES += \
4037 systemd-localed.service dbus-org.freedesktop.locale1.service
4039 BUSNAMES_TARGET_WANTS += \
4040 org.freedesktop.locale1.busname
4042 dist_pkgdata_DATA += \
4043 src/locale/kbd-model-map
4045 dist_noinst_SCRIPT = \
4046 src/locale/generate-kbd-model-map
4048 update-kbd-model-map: src/locale/generate-kbd-model-map
4049 $PYTHON $< >src/locale/kbd-model-map
4051 localectl_SOURCES = \
4052 src/locale/localectl.c
4055 libsystemd-internal.la \
4056 libsystemd-shared.la
4061 dist_bashcompletion_DATA += \
4062 shell-completion/bash/localectl
4064 dist_zshcompletion_DATA += \
4065 shell-completion/zsh/_localectl
4069 .PHONY: update-kbd-model-map
4071 polkitpolicy_in_files += \
4072 src/locale/org.freedesktop.locale1.policy.in
4075 units/systemd-localed.service.in
4077 # ------------------------------------------------------------------------------
4079 systemd_timedated_SOURCES = \
4080 src/timedate/timedated.c
4082 systemd_timedated_LDADD = \
4083 libsystemd-label.la \
4084 libsystemd-internal.la \
4085 libsystemd-shared.la
4087 rootlibexec_PROGRAMS += \
4090 dist_dbussystemservice_DATA += \
4091 src/timedate/org.freedesktop.timedate1.service
4093 dist_dbuspolicy_DATA += \
4094 src/timedate/org.freedesktop.timedate1.conf
4096 nodist_systemunit_DATA += \
4097 units/systemd-timedated.service
4099 dist_systemunit_DATA += \
4100 units/org.freedesktop.timedate1.busname
4102 polkitpolicy_files += \
4103 src/timedate/org.freedesktop.timedate1.policy
4106 $(prefix)/lib/systemd/ntp-units.d \
4107 $(sysconfdir)/systemd/ntp-units.d
4109 SYSTEM_UNIT_ALIASES += \
4110 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4112 BUSNAMES_TARGET_WANTS += \
4113 org.freedesktop.timedate1.busname
4115 timedatectl_SOURCES = \
4116 src/timedate/timedatectl.c
4118 timedatectl_LDADD = \
4119 libsystemd-internal.la \
4120 libsystemd-shared.la
4125 dist_bashcompletion_DATA += \
4126 shell-completion/bash/timedatectl
4128 dist_zshcompletion_DATA += \
4129 shell-completion/zsh/_timedatectl
4132 polkitpolicy_in_files += \
4133 src/timedate/org.freedesktop.timedate1.policy.in
4136 units/systemd-timedated.service.in
4138 # ------------------------------------------------------------------------------
4140 systemd_timesyncd_SOURCES = \
4141 src/timesync/timesyncd.c \
4142 src/timesync/timesyncd.h
4144 nodist_systemd_timesyncd_SOURCES = \
4145 src/timesync/timesyncd-gperf.c
4148 src/timesync/timesyncd-gperf.gperf
4151 src/timesync/timesyncd-gperf.c
4153 systemd_timesyncd_LDADD = \
4154 libsystemd-resolve.la \
4155 libsystemd-network.la \
4156 libsystemd-label.la \
4157 libsystemd-capability.la \
4158 libsystemd-internal.la \
4159 libsystemd-shared.la \
4162 rootlibexec_PROGRAMS += \
4165 nodist_systemunit_DATA += \
4166 units/systemd-timesyncd.service
4169 units/systemd-timesyncd.service.in
4171 nodist_pkgsysconf_DATA += \
4172 src/timesync/timesyncd.conf
4175 src/timesync/timesyncd.conf.in
4178 src/timesync/timesyncd.conf
4180 dist_ntpunits_DATA = \
4181 src/timesync/90-systemd.list
4185 # ------------------------------------------------------------------------------
4187 libnss_myhostname_la_SOURCES = \
4188 src/nss-myhostname/nss-myhostname.c \
4189 src/nss-myhostname/ifconf.h \
4190 src/nss-myhostname/netlink.c
4192 libnss_myhostname_la_LDFLAGS = \
4200 libnss_myhostname_la_LIBADD = \
4201 libsystemd-shared.la \
4202 libsystemd-internal.la
4204 lib_LTLIBRARIES += \
4205 libnss_myhostname.la
4208 # ------------------------------------------------------------------------------
4210 systemd_machined_SOURCES = \
4211 src/machine/machined.c \
4212 src/machine/machined.h
4214 systemd_machined_LDADD = \
4215 libsystemd-machine-core.la
4217 rootlibexec_PROGRAMS += \
4220 libsystemd_machine_core_la_SOURCES = \
4221 src/machine/machined-dbus.c \
4222 src/machine/machine.c \
4223 src/machine/machine.h \
4224 src/machine/machine-dbus.c
4226 libsystemd_machine_core_la_LIBADD = \
4227 libsystemd-label.la \
4228 libsystemd-internal.la \
4229 libudev-internal.la \
4230 libsystemd-shared.la
4232 noinst_LTLIBRARIES += \
4233 libsystemd-machine-core.la
4235 machinectl_SOURCES = \
4236 src/machine/machinectl.c
4238 machinectl_LDADD = \
4239 libsystemd-internal.la \
4240 libsystemd-shared.la
4242 rootbin_PROGRAMS += \
4245 dist_bashcompletion_DATA += \
4246 shell-completion/bash/machinectl
4248 test_machine_tables_SOURCES = \
4249 src/machine/test-machine-tables.c
4251 test_machine_tables_LDADD = \
4252 libsystemd-machine-core.la
4257 nodist_systemunit_DATA += \
4258 units/systemd-machined.service
4260 dist_systemunit_DATA += \
4261 units/machine.slice \
4262 units/org.freedesktop.machine1.busname
4264 dist_dbussystemservice_DATA += \
4265 src/machine/org.freedesktop.machine1.service
4267 dist_dbuspolicy_DATA += \
4268 src/machine/org.freedesktop.machine1.conf
4270 dist_zshcompletion_DATA += \
4271 shell-completion/zsh/_machinectl \
4272 shell-completion/zsh/_sd_machines
4274 SYSTEM_UNIT_ALIASES += \
4275 systemd-machined.service dbus-org.freedesktop.machine1.service
4277 BUSNAMES_TARGET_WANTS += \
4278 org.freedesktop.machine1.busname
4281 units/systemd-machined.service.in
4285 # ------------------------------------------------------------------------------
4287 systemd_resolved_SOURCES = \
4288 src/resolve/resolved.h \
4289 src/resolve/resolved.c \
4290 src/resolve/resolved-manager.c
4292 systemd_resolved_CFLAGS = \
4296 nodist_systemd_resolved_SOURCES = \
4297 src/resolve/resolved-gperf.c
4300 src/resolve/resolved-gperf.gperf
4303 src/resolve/resolved-gperf.c
4305 systemd_resolved_LDADD = \
4306 libsystemd-capability.la \
4307 libsystemd-network.la \
4308 libsystemd-label.la \
4309 libsystemd-internal.la \
4310 libsystemd-shared.la
4312 rootlibexec_PROGRAMS += \
4315 nodist_systemunit_DATA += \
4316 units/systemd-resolved.service
4319 units/systemd-resolved.service.in
4321 GENERAL_ALIASES += \
4322 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4324 nodist_pkgsysconf_DATA += \
4325 src/resolve/resolved.conf
4328 src/resolve/resolved.conf.in
4331 src/resolve/resolved.conf
4335 # ------------------------------------------------------------------------------
4337 rootlibexec_PROGRAMS += \
4340 systemd_networkd_SOURCES = \
4341 src/network/networkd.c
4343 systemd_networkd_LDADD = \
4344 libsystemd-networkd-core.la \
4345 libsystemd-capability.la
4347 noinst_LTLIBRARIES += \
4348 libsystemd-networkd-core.la
4350 libsystemd_networkd_core_la_CFLAGS = \
4353 libsystemd_networkd_core_la_SOURCES = \
4354 src/libsystemd-network/network-internal.h \
4355 src/network/networkd.h \
4356 src/network/networkd-link.c \
4357 src/network/networkd-netdev.c \
4358 src/network/networkd-tunnel.c \
4359 src/network/networkd-veth.c \
4360 src/network/networkd-network.c \
4361 src/network/networkd-address.c \
4362 src/network/networkd-route.c \
4363 src/network/networkd-manager.c
4365 nodist_libsystemd_networkd_core_la_SOURCES = \
4366 src/network/networkd-network-gperf.c \
4367 src/network/networkd-netdev-gperf.c
4369 libsystemd_networkd_core_la_LIBADD = \
4370 libudev-internal.la \
4371 libsystemd-internal.la \
4372 libsystemd-network.la \
4373 libsystemd-label.la \
4374 libsystemd-shared.la
4376 rootlibexec_PROGRAMS += \
4377 systemd-networkd-wait-online
4379 systemd_networkd_wait_online_CFLAGS = \
4382 systemd_networkd_wait_online_SOURCES = \
4383 src/libsystemd-network/network-internal.h \
4384 src/network/networkd-wait-online.c \
4385 src/network/networkd-wait-online.h
4387 systemd_networkd_wait_online_LDADD = \
4388 libsystemd-network.la \
4389 libudev-internal.la \
4390 libsystemd-internal.la \
4391 libsystemd-shared.la
4393 test_network_SOURCES = \
4394 src/network/test-network.c
4396 test_network_CFLAGS = \
4399 test_network_LDADD = \
4400 libsystemd-networkd-core.la
4405 nodist_systemunit_DATA += \
4406 units/systemd-networkd.service \
4407 units/systemd-networkd-wait-online.service
4409 GENERAL_ALIASES += \
4410 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4411 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4414 src/network/networkd-network-gperf.gperf \
4415 src/network/networkd-netdev-gperf.gperf \
4416 units/systemd-networkd.service.in \
4417 units/systemd-networkd-wait-online.service.in
4420 src/network/networkd-network-gperf.c \
4421 src/network/networkd-netdev-gperf.c
4424 # ------------------------------------------------------------------------------
4426 systemd_logind_SOURCES = \
4427 src/login/logind.c \
4430 nodist_systemd_logind_SOURCES = \
4431 src/login/logind-gperf.c
4433 systemd_logind_LDADD = \
4434 libsystemd-logind-core.la
4436 libsystemd_logind_core_la_SOURCES = \
4437 src/login/logind-core.c \
4438 src/login/logind-device.c \
4439 src/login/logind-device.h \
4440 src/login/logind-button.c \
4441 src/login/logind-button.h \
4442 src/login/logind-action.c \
4443 src/login/logind-action.h \
4444 src/login/logind-seat.c \
4445 src/login/logind-seat.h \
4446 src/login/logind-session.c \
4447 src/login/logind-session.h \
4448 src/login/logind-session-device.c \
4449 src/login/logind-session-device.h \
4450 src/login/logind-user.c \
4451 src/login/logind-user.h \
4452 src/login/logind-inhibit.c \
4453 src/login/logind-inhibit.h \
4454 src/login/logind-dbus.c \
4455 src/login/logind-session-dbus.c \
4456 src/login/logind-seat-dbus.c \
4457 src/login/logind-user-dbus.c \
4458 src/login/logind-acl.h
4460 libsystemd_logind_core_la_LIBADD = \
4461 libsystemd-label.la \
4462 libsystemd-capability.la \
4463 libsystemd-internal.la \
4464 libudev-internal.la \
4465 libsystemd-shared.la
4468 libsystemd_logind_core_la_SOURCES += \
4469 src/login/logind-acl.c
4471 libsystemd_logind_core_la_LIBADD += \
4475 noinst_LTLIBRARIES += \
4476 libsystemd-logind-core.la
4478 systemd_user_sessions_SOURCES = \
4479 src/login/user-sessions.c
4481 systemd_user_sessions_LDADD = \
4482 libsystemd-shared.la
4484 rootlibexec_PROGRAMS += \
4486 systemd-user-sessions
4488 loginctl_SOURCES = \
4489 src/login/loginctl.c \
4490 src/login/sysfs-show.c
4493 libsystemd-internal.la \
4494 libudev-internal.la \
4495 libsystemd-shared.la
4497 rootbin_PROGRAMS += \
4500 dist_bashcompletion_DATA += \
4501 shell-completion/bash/loginctl
4503 dist_zshcompletion_DATA += \
4504 shell-completion/zsh/_loginctl \
4505 shell-completion/zsh/_systemd-inhibit
4507 systemd_inhibit_SOURCES = \
4510 systemd_inhibit_LDADD = \
4511 libsystemd-internal.la \
4512 libsystemd-shared.la
4514 rootbin_PROGRAMS += \
4517 test_login_SOURCES = \
4518 src/libsystemd/sd-login/test-login.c
4520 test_login_LDADD = \
4521 libsystemd-internal.la \
4522 libsystemd-shared.la
4524 test_login_shared_SOURCES = \
4525 src/login/test-login-shared.c
4527 test_login_shared_LDADD = \
4528 libsystemd-internal.la \
4529 libsystemd-shared.la
4531 test_inhibit_SOURCES = \
4532 src/login/test-inhibit.c
4534 test_inhibit_LDADD = \
4535 libsystemd-internal.la \
4536 libsystemd-shared.la
4538 test_login_tables_SOURCES = \
4539 src/login/test-login-tables.c
4541 test_login_tables_LDADD = \
4542 libsystemd-logind-core.la
4553 pam_systemd_la_SOURCES = \
4554 src/login/pam-module.c
4556 pam_systemd_la_CFLAGS = \
4561 pam_systemd_la_LDFLAGS = \
4567 -export-symbols-regex '^pam_sm_.*'
4569 pam_systemd_la_LIBADD = \
4570 libsystemd-capability.la \
4571 libsystemd-internal.la \
4572 libsystemd-shared.la \
4575 pamlib_LTLIBRARIES = \
4578 dist_pamconf_DATA = \
4579 src/login/systemd-user
4582 nodist_systemunit_DATA += \
4583 units/systemd-logind.service \
4584 units/systemd-user-sessions.service
4586 dist_systemunit_DATA += \
4588 units/org.freedesktop.login1.busname
4590 dist_dbussystemservice_DATA += \
4591 src/login/org.freedesktop.login1.service
4593 dist_dbuspolicy_DATA += \
4594 src/login/org.freedesktop.login1.conf
4596 dist_pkgsysconf_DATA += \
4597 src/login/logind.conf
4599 polkitpolicy_files += \
4600 src/login/org.freedesktop.login1.policy
4605 MULTI_USER_TARGET_WANTS += \
4606 systemd-logind.service \
4607 systemd-user-sessions.service
4609 SYSTEM_UNIT_ALIASES += \
4610 systemd-logind.service dbus-org.freedesktop.login1.service
4612 BUSNAMES_TARGET_WANTS += \
4613 org.freedesktop.login1.busname
4615 if ENABLE_MULTI_SEAT_X
4617 systemd_multi_seat_x_SOURCES = \
4618 src/login/multi-seat-x.c
4620 systemd_multi_seat_x_LDADD = \
4621 libsystemd-label.la \
4622 libsystemd-shared.la
4624 rootlibexec_PROGRAMS += \
4625 systemd-multi-seat-x
4629 dist_udevrules_DATA += \
4630 src/login/70-uaccess.rules \
4631 src/login/70-power-switch.rules
4633 nodist_udevrules_DATA += \
4634 src/login/71-seat.rules \
4635 src/login/73-seat-late.rules
4638 src/login/logind-gperf.c \
4639 src/login/71-seat.rules \
4640 src/login/73-seat-late.rules
4643 polkitpolicy_in_files += \
4644 src/login/org.freedesktop.login1.policy.in
4647 src/login/logind-gperf.gperf \
4648 src/login/71-seat.rules.in \
4649 src/login/73-seat-late.rules.in \
4650 units/systemd-logind.service.in \
4651 units/systemd-user-sessions.service.in
4653 # ------------------------------------------------------------------------------
4654 if HAVE_PYTHON_DEVEL
4655 pkgpyexec_LTLIBRARIES = \
4662 _journal_la_SOURCES = \
4663 src/python-systemd/_journal.c
4665 _journal_la_CFLAGS = \
4667 -fvisibility=default \
4668 $(PYTHON_DEVEL_CFLAGS)
4670 _journal_la_LDFLAGS = \
4676 _journal_la_LIBADD = \
4677 $(PYTHON_DEVEL_LIBS) \
4680 id128_la_SOURCES = \
4681 src/python-systemd/id128.c \
4682 src/python-systemd/id128-constants.h \
4683 src/python-systemd/pyutil.c \
4684 src/python-systemd/pyutil.h
4688 -fvisibility=default \
4689 $(PYTHON_DEVEL_CFLAGS) \
4690 -I$(top_builddir)/src/python-systemd
4692 id128_la_LDFLAGS = \
4699 $(PYTHON_DEVEL_LIBS) \
4700 libsystemd-shared.la \
4703 _daemon_la_SOURCES = \
4704 src/python-systemd/_daemon.c \
4705 src/python-systemd/pyutil.c \
4706 src/python-systemd/pyutil.h
4708 _daemon_la_CFLAGS = \
4710 -fvisibility=default \
4711 $(PYTHON_DEVEL_CFLAGS) \
4712 -I$(top_builddir)/src/python-systemd
4714 _daemon_la_LDFLAGS = \
4720 _daemon_la_LIBADD = \
4721 $(PYTHON_DEVEL_LIBS) \
4722 libsystemd-shared.la \
4725 _reader_la_SOURCES = \
4726 src/python-systemd/_reader.c \
4727 src/python-systemd/pyutil.c \
4728 src/python-systemd/pyutil.h
4730 _reader_la_CFLAGS = \
4732 -fvisibility=default \
4733 $(PYTHON_DEVEL_CFLAGS)
4735 _reader_la_LDFLAGS = \
4741 _reader_la_LIBADD = \
4742 $(PYTHON_DEVEL_LIBS) \
4743 libsystemd-shared.la \
4746 login_la_SOURCES = \
4747 src/python-systemd/login.c \
4748 src/python-systemd/pyutil.c \
4749 src/python-systemd/pyutil.h
4753 -fvisibility=default \
4754 $(PYTHON_DEVEL_CFLAGS)
4756 login_la_LDFLAGS = \
4763 $(PYTHON_DEVEL_LIBS) \
4764 libsystemd-shared.la \
4767 dist_pkgpyexec_PYTHON = \
4768 src/python-systemd/journal.py \
4769 src/python-systemd/daemon.py \
4770 src/python-systemd/__init__.py
4772 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4773 $(AM_V_at)$(MKDIR_P) $(dir $@)
4774 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4777 src/python-systemd/id128-constants.h
4779 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4781 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4782 $(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/
4783 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4786 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4787 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4790 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4791 $(MAKE) DESTDIR="$$dir" install && \
4792 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4797 CLEAN_LOCAL_HOOKS += clean-sphinx
4799 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4802 -rm -rf docs/html/python-systemd/
4804 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4806 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4807 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4809 # ------------------------------------------------------------------------------
4810 if ENABLE_COMPAT_LIBS
4812 src/compat-libs/linkwarning.h
4814 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4815 $(AM_V_at)$(MKDIR_P) $(dir $@)
4816 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4819 libsystemd-journal.c \
4820 libsystemd-login.c \
4821 libsystemd-id128.c \
4824 libsystemd_journal_la_SOURCES = \
4825 libsystemd-journal.c \
4826 src/compat-libs/libsystemd-journal.sym
4828 libsystemd_journal_la_CPPFLAGS = \
4830 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4832 libsystemd_journal_la_LDFLAGS = \
4834 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4835 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
4837 libsystemd_journal_la_LIBADD = \
4838 libsystemd-journal-internal.la \
4839 libsystemd-internal.la \
4840 libsystemd-shared.la
4842 libsystemd_login_la_SOURCES = \
4843 libsystemd-login.c \
4844 src/compat-libs/libsystemd-login.sym
4846 libsystemd_login_la_CPPFLAGS = \
4848 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4850 libsystemd_login_la_LDFLAGS = \
4852 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4853 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
4855 libsystemd_login_la_LIBADD = \
4856 libsystemd-internal.la \
4857 libsystemd-shared.la
4859 libsystemd_id128_la_SOURCES = \
4860 libsystemd-id128.c \
4861 src/compat-libs/libsystemd-id128.sym
4863 libsystemd_id128_la_CPPFLAGS = \
4865 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4867 libsystemd_id128_la_LDFLAGS = \
4869 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
4870 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
4872 libsystemd_id128_la_LIBADD = \
4873 libsystemd-internal.la \
4874 libsystemd-shared.la
4876 libsystemd_daemon_la_SOURCES = \
4877 libsystemd-daemon.c \
4878 src/compat-libs/libsystemd-daemon.sym
4880 libsystemd_daemon_la_CPPFLAGS = \
4882 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4884 libsystemd_daemon_la_LDFLAGS = \
4886 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
4887 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
4889 libsystemd_daemon_la_LIBADD = \
4890 libsystemd-internal.la \
4891 libsystemd-shared.la
4893 lib_LTLIBRARIES += \
4894 libsystemd-journal.la \
4895 libsystemd-login.la \
4896 libsystemd-id128.la \
4897 libsystemd-daemon.la
4899 pkgconfiglib_DATA += \
4900 src/compat-libs/libsystemd-journal.pc \
4901 src/compat-libs/libsystemd-login.pc \
4902 src/compat-libs/libsystemd-id128.pc \
4903 src/compat-libs/libsystemd-daemon.pc
4905 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4906 compat-lib-install-hook:
4907 libname=libsystemd-login.so && $(move-to-rootlibdir)
4908 libname=libsystemd-journal.so && $(move-to-rootlibdir)
4909 libname=libsystemd-id128.so && $(move-to-rootlibdir)
4910 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
4912 compat-lib-uninstall-hook:
4913 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4914 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
4915 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
4916 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
4918 INSTALL_EXEC_HOOKS += compat-lib-install-hook
4919 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
4923 src/compat-libs/libsystemd-journal.pc.in \
4924 src/compat-libs/libsystemd-login.pc.in \
4925 src/compat-libs/libsystemd-id128.pc.in \
4926 src/compat-libs/libsystemd-daemon.pc.in
4928 # ------------------------------------------------------------------------------
4930 '|rootlibexecdir=$(rootlibexecdir)|' \
4931 '|rootbindir=$(rootbindir)|' \
4932 '|bindir=$(bindir)|' \
4933 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4934 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4935 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4936 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4937 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4938 '|pkgdatadir=$(pkgdatadir)|' \
4939 '|systemunitdir=$(systemunitdir)|' \
4940 '|userunitdir=$(userunitdir)|' \
4941 '|systempresetdir=$(systempresetdir)|' \
4942 '|userpresetdir=$(userpresetdir)|' \
4943 '|udevhwdbdir=$(udevhwdbdir)|' \
4944 '|udevrulesdir=$(udevrulesdir)|' \
4945 '|catalogdir=$(catalogdir)|' \
4946 '|tmpfilesdir=$(tmpfilesdir)|' \
4947 '|sysusersdir=$(sysusersdir)|' \
4948 '|sysctldir=$(sysctldir)|' \
4949 '|systemgeneratordir=$(systemgeneratordir)|' \
4950 '|usergeneratordir=$(usergeneratordir)|' \
4951 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4952 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4953 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4954 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4955 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4956 '|prefix=$(prefix)|' \
4957 '|exec_prefix=$(exec_prefix)|' \
4958 '|libdir=$(libdir)|' \
4959 '|includedir=$(includedir)|' \
4960 '|VERSION=$(VERSION)|' \
4961 '|rootprefix=$(rootprefix)|' \
4962 '|udevlibexecdir=$(udevlibexecdir)|' \
4963 '|SUSHELL=$(SUSHELL)|' \
4964 '|DEBUGTTY=$(DEBUGTTY)|' \
4967 '|MKDIR_P=$(MKDIR_P)|' \
4968 '|QUOTAON=$(QUOTAON)|' \
4969 '|QUOTACHECK=$(QUOTACHECK)|' \
4970 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4971 '|VARLOGDIR=$(varlogdir)|' \
4972 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4973 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4974 '|PYTHON=$(PYTHON)|' \
4975 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
4976 '|NTP_SERVERS=$(NTP_SERVERS)|' \
4977 '|DNS_SERVERS=$(DNS_SERVERS)|' \
4978 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
4979 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
4980 '|TTY_GID=$(TTY_GID)|'
4983 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4984 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4993 sysctl.d/%: sysctl.d/%.in
4999 src/core/macros.%: src/core/macros.%.in
5002 src/%.policy.in: src/%.policy.in.in
5013 $(AM_V_GEN)chmod +x $@
5015 src/%.c: src/%.gperf
5016 $(AM_V_at)$(MKDIR_P) $(dir $@)
5017 $(AM_V_GPERF)$(GPERF) < $< > $@
5020 $(AM_V_at)$(MKDIR_P) $(dir $@)
5021 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5024 $(AM_V_at)$(MKDIR_P) $(dir $@)
5025 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5027 units/user/%: units/%.m4
5028 $(AM_V_at)$(MKDIR_P) $(dir $@)
5029 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5032 nodist_polkitpolicy_DATA = \
5033 $(polkitpolicy_files) \
5034 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5038 $(polkitpolicy_in_files) \
5039 $(polkitpolicy_in_in_files)
5042 $(nodist_systemunit_DATA) \
5043 $(nodist_userunit_DATA) \
5044 $(pkgconfigdata_DATA) \
5045 $(pkgconfiglib_DATA) \
5046 $(nodist_polkitpolicy_DATA)
5048 # ------------------------------------------------------------------------------
5050 man/custom-entities.ent: configure.ac
5051 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5052 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5053 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5057 man/custom-entities.ent
5062 --stringparam man.output.quietly 1 \
5063 --stringparam funcsynopsis.style ansi \
5064 --stringparam man.authors.section.enabled 0 \
5065 --stringparam man.copyright.section.enabled 0 \
5066 --stringparam systemd.version $(VERSION) \
5067 --path '$(builddir)/man:$(srcdir)/man'
5069 XSLTPROC_PROCESS_MAN = \
5070 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5072 XSLTPROC_PROCESS_HTML = \
5073 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5075 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5076 $(XSLTPROC_PROCESS_MAN)
5078 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5079 $(XSLTPROC_PROCESS_MAN)
5081 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5082 $(XSLTPROC_PROCESS_MAN)
5084 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5085 $(XSLTPROC_PROCESS_MAN)
5087 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5088 $(XSLTPROC_PROCESS_MAN)
5090 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5091 $(XSLTPROC_PROCESS_HTML)
5094 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5100 man/custom-html.xsl \
5103 # ------------------------------------------------------------------------------
5106 docs/sysvinit/README
5111 docs/sysvinit/README: docs/sysvinit/README.in
5114 docs/var-log/README: docs/var-log/README.in
5118 docs/sysvinit/README \
5123 docs/sysvinit/README.in \
5124 docs/var-log/README.in
5126 SOCKETS_TARGET_WANTS += \
5127 systemd-initctl.socket \
5128 systemd-shutdownd.socket
5131 RUNLEVEL1_TARGET_WANTS += \
5132 systemd-update-utmp-runlevel.service
5133 RUNLEVEL2_TARGET_WANTS += \
5134 systemd-update-utmp-runlevel.service
5135 RUNLEVEL3_TARGET_WANTS += \
5136 systemd-update-utmp-runlevel.service
5137 RUNLEVEL4_TARGET_WANTS += \
5138 systemd-update-utmp-runlevel.service
5139 RUNLEVEL5_TARGET_WANTS += \
5140 systemd-update-utmp-runlevel.service
5143 SYSINIT_TARGET_WANTS += \
5144 systemd-update-utmp.service \
5145 systemd-update-done.service
5147 LOCAL_FS_TARGET_WANTS += \
5148 systemd-remount-fs.service \
5151 MULTI_USER_TARGET_WANTS += \
5153 systemd-ask-password-wall.path
5155 SYSINIT_TARGET_WANTS += \
5156 dev-hugepages.mount \
5158 sys-kernel-config.mount \
5159 sys-kernel-debug.mount \
5160 sys-fs-fuse-connections.mount \
5161 systemd-sysctl.service \
5162 systemd-ask-password-console.path
5165 SYSTEM_UNIT_ALIASES += \
5166 poweroff.target runlevel0.target \
5167 rescue.target runlevel1.target \
5168 multi-user.target runlevel2.target \
5169 multi-user.target runlevel3.target \
5170 multi-user.target runlevel4.target \
5171 graphical.target runlevel5.target \
5172 reboot.target runlevel6.target
5175 SYSTEM_UNIT_ALIASES += \
5176 graphical.target default.target \
5177 reboot.target ctrl-alt-del.target \
5178 getty@.service autovt@.service
5180 USER_UNIT_ALIASES += \
5181 $(systemunitdir)/shutdown.target shutdown.target \
5182 $(systemunitdir)/sockets.target sockets.target \
5183 $(systemunitdir)/busnames.target busnames.target \
5184 $(systemunitdir)/timers.target timers.target \
5185 $(systemunitdir)/paths.target paths.target \
5186 $(systemunitdir)/bluetooth.target bluetooth.target \
5187 $(systemunitdir)/printer.target printer.target \
5188 $(systemunitdir)/sound.target sound.target \
5189 $(systemunitdir)/smartcard.target smartcard.target
5191 GENERAL_ALIASES += \
5192 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5193 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5194 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5195 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5199 $(systemunitdir)/runlevel1.target.wants \
5200 $(systemunitdir)/runlevel2.target.wants \
5201 $(systemunitdir)/runlevel3.target.wants \
5202 $(systemunitdir)/runlevel4.target.wants \
5203 $(systemunitdir)/runlevel5.target.wants
5207 $(prefix)/lib/modules-load.d \
5208 $(sysconfdir)/modules-load.d \
5209 $(prefix)/lib/systemd/network \
5210 $(sysconfdir)/systemd/network \
5211 $(prefix)/lib/sysctl.d \
5212 $(sysconfdir)/sysctl.d \
5213 $(prefix)/lib/kernel/install.d \
5214 $(sysconfdir)/kernel/install.d \
5215 $(systemshutdowndir) \
5217 $(systemgeneratordir) \
5218 $(usergeneratordir) \
5221 $(pkgsysconfdir)/system \
5222 $(pkgsysconfdir)/system/multi-user.target.wants \
5223 $(pkgsysconfdir)/system/getty.target.wants \
5224 $(pkgsysconfdir)/user \
5225 $(dbussessionservicedir) \
5226 $(sysconfdir)/xdg/systemd
5228 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5230 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5232 install-data-hook: $(INSTALL_DATA_HOOKS)
5234 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5236 clean-local: $(CLEAN_LOCAL_HOOKS)
5237 rm -rf $(abs_srcdir)/install-tree
5238 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5239 $(abs_srcdir)/hwdb/iab.txt
5241 DISTCHECK_CONFIGURE_FLAGS = \
5242 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5243 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5244 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5245 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5246 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5247 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5248 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5249 --with-rootprefix=$$dc_install_base \
5250 --disable-split-usr \
5252 --enable-compat-libs
5255 DISTCHECK_CONFIGURE_FLAGS += \
5256 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5257 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5259 DISTCHECK_CONFIGURE_FLAGS += \
5260 --with-sysvinit-path= \
5261 --with-sysvrcnd-path=
5265 DISTCHECK_CONFIGURE_FLAGS += \
5269 # check "broken" platforms limited toolchains for link breakage before we release
5272 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5276 ( cd $(top_srcdir)/hwdb && \
5277 wget -N http://www.linux-usb.org/usb.ids \
5278 http://pci-ids.ucw.cz/v2.2/pci.ids \
5279 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5280 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5283 .PHONY: kdbus-update
5285 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5286 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5290 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5292 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5294 upload: all check dist
5295 scp systemd-$(VERSION).tar.xz $(www_target)
5298 doc-sync: all destdir-sphinx
5299 gtkdoc-rebase --html-dir=docs/libudev/html --online
5300 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5301 gtkdoc-rebase --html-dir=docs/gudev/html --online
5302 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5303 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5304 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5308 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5309 scp man/*.html tango:public/systemd-man/
5311 .PHONY: install-tree
5313 rm -rf $(abs_srcdir)/install-tree
5314 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5315 tree $(abs_srcdir)/install-tree
5317 # Let's run all tests of the test suite, but under valgrind. Let's
5318 # exclude the one perl script we have in there
5319 .PHONY: valgrind-tests
5320 valgrind-tests: $(TESTS)
5321 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5322 if file $$f | grep -q shell; then \
5323 echo -e "$${x}Skipping non-binary $$f"; else \
5324 echo -e "$${x}Running $$f"; \
5325 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5330 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5332 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5333 $(AM_V_GEN)cat $^ > $@
5335 .PHONY: check-api-docs
5336 check-api-docs: exported man
5337 $(AM_V_GEN)for symbol in `cat exported` ; do \
5338 if test -f $(builddir)/man/$$symbol.html ; then \
5339 echo " Symbol $$symbol() is documented." ; \
5341 echo "‣ Symbol $$symbol() lacks documentation." ; \
5345 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5346 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5348 undefined defined: $(ALL_OBJECTS)
5349 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5350 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5351 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5357 .PHONY: check-api-unused
5358 check-api-unused: defined undefined exported
5359 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5361 .PHONY: check-includes
5362 check-includes: $(top_srcdir)/tools/check-includes.pl
5363 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5364 | xargs $(top_srcdir)/tools/check-includes.pl
5367 $(top_srcdir)/tools/check-includes.pl
5369 # Stupid test that everything purported to be exported really is
5370 define generate-sym-test
5371 $(AM_V_at)$(MKDIR_P) $(dir $@)
5372 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5373 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5374 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5375 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5376 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5377 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5378 $(AM_V_at)printf 'return 0; }\n' >> $@
5381 test-libsystemd-sym.c: \
5382 $(top_builddir)/src/libsystemd/libsystemd.sym \
5383 src/systemd/sd-journal.h \
5384 src/systemd/sd-daemon.h \
5385 src/systemd/sd-login.h \
5386 src/systemd/sd-bus.h \
5387 src/systemd/sd-utf8.h \
5388 src/systemd/sd-resolve.h
5389 $(generate-sym-test)
5391 test-libudev-sym.c: \
5392 src/libudev/libudev.sym \
5394 $(generate-sym-test)
5396 test_libsystemd_sym_SOURCES = \
5397 test-libsystemd-sym.c
5398 test_libsystemd_sym_LDADD = \
5401 test_libudev_sym_SOURCES = \
5403 test_libudev_sym_CFLAGS = \
5405 -Wno-deprecated-declarations
5406 test_libudev_sym_LDADD = \
5410 $(test_libsystemd_sym_SOURCES) \
5411 $(test_libudev_sym_SOURCES)
5414 test-libsystemd-sym \
5419 cppcheck --enable=all -q $(top_srcdir)
5421 # Used to extract compile flags for YCM.
5426 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u