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 binfmtdir=$(prefix)/lib/binfmt.d
94 modulesloaddir=$(prefix)/lib/modules-load.d
95 networkdir=$(rootprefix)/lib/systemd/network
96 pkgincludedir=$(includedir)/systemd
97 systemgeneratordir=$(rootlibexecdir)/system-generators
98 usergeneratordir=$(prefix)/lib/systemd/user-generators
99 systemshutdowndir=$(rootlibexecdir)/system-shutdown
100 systemsleepdir=$(rootlibexecdir)/system-sleep
101 systemunitdir=$(rootprefix)/lib/systemd/system
102 systempresetdir=$(rootprefix)/lib/systemd/system-preset
103 udevlibexecdir=$(rootprefix)/lib/udev
104 udevhomedir=$(udevlibexecdir)
105 udevrulesdir=$(udevlibexecdir)/rules.d
106 udevhwdbdir=$(udevlibexecdir)/hwdb.d
107 catalogdir=$(prefix)/lib/systemd/catalog
108 kernelinstalldir = $(prefix)/lib/kernel/install.d
109 ntpunitsdir=$(prefix)/lib/systemd/ntp-units.d
111 # And these are the special ones for /
112 rootprefix=@rootprefix@
113 rootbindir=$(rootprefix)/bin
114 rootlibexecdir=$(rootprefix)/lib/systemd
116 CLEANFILES = $(BUILT_SOURCES)
121 UNINSTALL_EXEC_HOOKS =
123 UNINSTALL_DATA_HOOKS =
124 DISTCLEAN_LOCAL_HOOKS =
132 polkitpolicy_in_in_files =
133 polkitpolicy_in_files =
135 dist_udevrules_DATA =
136 nodist_udevrules_DATA =
137 nodist_pkgsysconf_DATA =
138 dist_pkgsysconf_DATA =
140 dist_dbuspolicy_DATA =
141 dist_dbussystemservice_DATA =
147 noinst_PROGRAMS = $(manual_tests) $(tests)
153 udevlibexec_PROGRAMS =
155 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
156 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
157 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
160 -include $(top_builddir)/config.h \
161 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
162 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
163 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
164 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
165 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
166 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
167 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
168 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
169 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
170 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
171 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
172 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
173 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
174 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
175 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
176 -DROOTPREFIX=\"$(rootprefix)\" \
177 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
178 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
179 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
180 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
181 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
182 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
183 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
184 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
185 -DX_SERVER=\"$(bindir)/X\" \
186 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
187 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
188 -DQUOTACHECK=\"$(QUOTACHECK)\" \
189 -DKEXEC=\"$(KEXEC)\" \
190 -DLIBDIR=\"$(libdir)\" \
191 -DROOTLIBDIR=\"$(rootlibdir)\" \
192 -I $(top_srcdir)/src \
193 -I $(top_builddir)/src/shared \
194 -I $(top_srcdir)/src/shared \
195 -I $(top_srcdir)/src/network \
196 -I $(top_srcdir)/src/login \
197 -I $(top_srcdir)/src/journal \
198 -I $(top_srcdir)/src/timedate \
199 -I $(top_srcdir)/src/timesync \
200 -I $(top_srcdir)/src/resolve \
201 -I $(top_srcdir)/src/systemd \
202 -I $(top_builddir)/src/core \
203 -I $(top_srcdir)/src/core \
204 -I $(top_srcdir)/src/libudev \
205 -I $(top_srcdir)/src/udev \
206 -I $(top_srcdir)/src/udev/net \
207 -I $(top_builddir)/src/udev \
208 -I $(top_srcdir)/src/libsystemd/sd-bus \
209 -I $(top_srcdir)/src/libsystemd/sd-event \
210 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
211 -I $(top_srcdir)/src/libsystemd-network \
214 AM_CFLAGS = $(OUR_CFLAGS)
215 AM_LDFLAGS = $(OUR_LDFLAGS)
217 # ------------------------------------------------------------------------------
218 define move-to-rootlibdir
219 if test "$(libdir)" != "$(rootlibdir)"; then \
220 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
221 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
222 rm -f $(DESTDIR)$(libdir)/$$libname && \
223 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
224 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
230 RUNLEVEL1_TARGET_WANTS =
231 RUNLEVEL2_TARGET_WANTS =
232 RUNLEVEL3_TARGET_WANTS =
233 RUNLEVEL4_TARGET_WANTS =
234 RUNLEVEL5_TARGET_WANTS =
235 SHUTDOWN_TARGET_WANTS =
236 LOCAL_FS_TARGET_WANTS =
237 MULTI_USER_TARGET_WANTS =
238 SYSINIT_TARGET_WANTS =
239 SOCKETS_TARGET_WANTS =
240 BUSNAMES_TARGET_WANTS =
241 TIMERS_TARGET_WANTS =
242 USER_SOCKETS_TARGET_WANTS =
243 USER_BUSNAMES_TARGET_WANTS =
245 SYSTEM_UNIT_ALIASES =
249 install-target-wants-hook:
250 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
254 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
255 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
256 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
257 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
258 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
259 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
260 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
261 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
264 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
267 [ -z "$$what" ] || ( \
268 dir=$(DESTDIR)$$dir/$$wants.wants && \
269 $(MKDIR_P) -m 0755 $$dir && \
272 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
275 install-directories-hook:
276 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
278 install-aliases-hook:
279 set -- $(SYSTEM_UNIT_ALIASES) && \
280 dir=$(systemunitdir) && $(install-aliases)
281 set -- $(USER_UNIT_ALIASES) && \
282 dir=$(userunitdir) && $(install-relative-aliases)
283 set -- $(GENERAL_ALIASES) && \
284 dir= && $(install-relative-aliases)
286 define install-aliases
287 while [ -n "$$1" ]; do \
288 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
289 rm -f $(DESTDIR)$$dir/$$2 && \
290 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
291 shift 2 || exit $$?; \
295 define install-relative-aliases
296 while [ -n "$$1" ]; do \
297 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
298 rm -f $(DESTDIR)$$dir/$$2 && \
299 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
300 shift 2 || exit $$?; \
304 install-touch-usr-hook:
305 touch -c $(DESTDIR)/$(prefix)
307 INSTALL_EXEC_HOOKS += \
308 install-target-wants-hook \
309 install-directories-hook \
310 install-aliases-hook \
311 install-touch-usr-hook
313 # ------------------------------------------------------------------------------
314 AM_V_M4 = $(AM_V_M4_$(V))
315 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
316 AM_V_M4_0 = @echo " M4 " $@;
318 AM_V_XSLT = $(AM_V_XSLT_$(V))
319 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
320 AM_V_XSLT_0 = @echo " XSLT " $@;
322 AM_V_GPERF = $(AM_V_GPERF_$(V))
323 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
324 AM_V_GPERF_0 = @echo " GPERF " $@;
326 AM_V_LN = $(AM_V_LN_$(V))
327 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
328 AM_V_LN_0 = @echo " LN " $@;
330 AM_V_RM = $(AM_V_RM_$(V))
331 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
332 AM_V_RM_0 = @echo " RM " $@;
334 # ------------------------------------------------------------------------------
338 systemd-ask-password \
339 systemd-tty-ask-password-agent \
340 systemd-machine-id-setup
346 systemd-detect-virt \
353 src/kernel-install/kernel-install
355 dist_kernelinstall_SCRIPTS = \
356 src/kernel-install/50-depmod.install \
357 src/kernel-install/90-loaderentry.install
359 rootlibexec_PROGRAMS = \
361 systemd-cgroups-agent \
363 systemd-update-utmp \
367 systemd-reply-password \
373 systemd-socket-proxyd \
376 systemgenerator_PROGRAMS = \
377 systemd-getty-generator \
378 systemd-fstab-generator \
379 systemd-system-update-generator \
380 systemd-debug-generator
382 dist_bashcompletion_DATA = \
383 shell-completion/bash/busctl \
384 shell-completion/bash/journalctl \
385 shell-completion/bash/systemctl \
386 shell-completion/bash/systemd-analyze \
387 shell-completion/bash/systemd-cat \
388 shell-completion/bash/systemd-cgls \
389 shell-completion/bash/systemd-cgtop \
390 shell-completion/bash/systemd-delta \
391 shell-completion/bash/systemd-detect-virt \
392 shell-completion/bash/systemd-nspawn \
393 shell-completion/bash/systemd-run \
394 shell-completion/bash/udevadm \
395 shell-completion/bash/kernel-install
397 dist_zshcompletion_DATA = \
398 shell-completion/zsh/_systemctl \
399 shell-completion/zsh/_journalctl \
400 shell-completion/zsh/_udevadm \
401 shell-completion/zsh/_kernel-install \
402 shell-completion/zsh/_systemd-nspawn \
403 shell-completion/zsh/_systemd-analyze \
404 shell-completion/zsh/_systemd-run \
405 shell-completion/zsh/_sd_hosts_or_user_at_host \
406 shell-completion/zsh/_systemd-delta \
407 shell-completion/zsh/_systemd
410 sysctl.d/50-default.conf
412 dist_systemunit_DATA = \
413 units/graphical.target \
414 units/multi-user.target \
415 units/emergency.service \
416 units/emergency.target \
417 units/sysinit.target \
422 units/local-fs.target \
423 units/local-fs-pre.target \
424 units/initrd.target \
425 units/initrd-fs.target \
426 units/initrd-root-fs.target \
427 units/remote-fs.target \
428 units/remote-fs-pre.target \
429 units/network.target \
430 units/network-pre.target \
431 units/network-online.target \
432 units/nss-lookup.target \
433 units/nss-user-lookup.target \
434 units/hibernate.target \
435 units/hybrid-sleep.target \
436 units/poweroff.target \
437 units/reboot.target \
438 units/rescue.target \
439 units/rpcbind.target \
440 units/time-sync.target \
441 units/shutdown.target \
443 units/umount.target \
444 units/sigpwr.target \
446 units/sockets.target \
447 units/busnames.target \
448 units/timers.target \
450 units/suspend.target \
452 units/slices.target \
455 units/systemd-initctl.socket \
456 units/systemd-shutdownd.socket \
457 units/syslog.socket \
458 units/dev-hugepages.mount \
459 units/dev-mqueue.mount \
460 units/sys-kernel-config.mount \
461 units/sys-kernel-debug.mount \
462 units/sys-fs-fuse-connections.mount \
464 units/printer.target \
466 units/bluetooth.target \
467 units/smartcard.target \
468 units/systemd-ask-password-wall.path \
469 units/systemd-ask-password-console.path \
470 units/systemd-udevd-control.socket \
471 units/systemd-udevd-kernel.socket \
472 units/system-update.target \
473 units/initrd-switch-root.target \
474 units/ldconfig.service
476 nodist_systemunit_DATA = \
477 units/getty@.service \
478 units/serial-getty@.service \
479 units/console-shell.service \
480 units/console-getty.service \
481 units/container-getty@.service \
482 units/systemd-initctl.service \
483 units/systemd-shutdownd.service \
484 units/systemd-remount-fs.service \
485 units/systemd-update-utmp.service \
486 units/systemd-update-utmp-runlevel.service \
487 units/systemd-ask-password-wall.service \
488 units/systemd-ask-password-console.service \
489 units/systemd-sysctl.service \
490 units/emergency.service \
491 units/rescue.service \
492 units/user@.service \
493 units/systemd-hibernate.service \
494 units/systemd-hybrid-sleep.service \
495 units/systemd-suspend.service \
496 units/systemd-halt.service \
497 units/systemd-poweroff.service \
498 units/systemd-reboot.service \
499 units/systemd-kexec.service \
500 units/systemd-fsck@.service \
501 units/systemd-fsck-root.service \
502 units/systemd-udevd.service \
503 units/systemd-udev-trigger.service \
504 units/systemd-udev-settle.service \
505 units/systemd-udev-hwdb-update.service \
506 units/debug-shell.service \
507 units/initrd-parse-etc.service \
508 units/initrd-cleanup.service \
509 units/initrd-udevadm-cleanup-db.service \
510 units/initrd-switch-root.service \
511 units/systemd-nspawn@.service \
512 units/systemd-update-done.service
514 dist_userunit_DATA = \
515 units/user/basic.target \
516 units/user/default.target \
517 units/user/exit.target
519 nodist_userunit_DATA = \
520 units/user/systemd-exit.service
522 dist_systempreset_DATA = \
523 system-preset/90-systemd.preset
526 units/getty@.service.m4 \
527 units/serial-getty@.service.m4 \
528 units/console-shell.service.m4.in \
529 units/console-getty.service.m4.in \
530 units/container-getty@.service.m4.in \
531 units/rescue.service.m4.in \
532 units/systemd-initctl.service.in \
533 units/systemd-shutdownd.service.in \
534 units/systemd-remount-fs.service.in \
535 units/systemd-update-utmp.service.in \
536 units/systemd-update-utmp-runlevel.service.in \
537 units/systemd-ask-password-wall.service.in \
538 units/systemd-ask-password-console.service.in \
539 units/systemd-sysctl.service.in \
540 units/emergency.service.in \
541 units/systemd-halt.service.in \
542 units/systemd-poweroff.service.in \
543 units/systemd-reboot.service.in \
544 units/systemd-kexec.service.in \
545 units/user/systemd-exit.service.in \
546 units/systemd-fsck@.service.in \
547 units/systemd-fsck-root.service.in \
548 units/user@.service.in \
549 units/debug-shell.service.in \
550 units/systemd-hibernate.service.in \
551 units/systemd-hybrid-sleep.service.in \
552 units/systemd-suspend.service.in \
553 units/quotaon.service.in \
554 units/initrd-parse-etc.service.in \
555 units/initrd-cleanup.service.in \
556 units/initrd-udevadm-cleanup-db.service.in \
557 units/initrd-switch-root.service.in \
558 units/systemd-nspawn@.service.in \
559 units/systemd-update-done.service.in
562 units/console-shell.service.m4 \
563 units/console-getty.service.m4 \
564 units/container-getty@.service.m4 \
565 units/rescue.service.m4 \
566 units/user@.service.m4
569 nodist_systemunit_DATA += \
570 units/rc-local.service \
571 units/halt-local.service
573 systemgenerator_PROGRAMS += \
574 systemd-sysv-generator \
575 systemd-rc-local-generator
579 units/rc-local.service.in \
580 units/halt-local.service.in
582 # automake is broken and can't handle files with a dash in front
583 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
585 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
587 units-uninstall-hook:
588 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
590 INSTALL_DATA_HOOKS += units-install-hook
591 UNINSTALL_DATA_HOOKS += units-uninstall-hook
600 src/libsystemd/sd-bus/PORTING-DBUS1 \
601 src/libsystemd/sd-bus/DIFFERENCES \
602 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
604 @INTLTOOL_POLICY_RULE@
606 # ------------------------------------------------------------------------------
611 include Makefile-man.am
613 .PHONY: man update-man-list
614 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
617 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
619 ${XML_FILES:.xml=.html}
621 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
638 $(AM_V_at)$(MKDIR_P) $(dir $@)
639 $(AM_V_LN)$(LN_S) -f ../../man $@
648 man/index.html: man/systemd.index.html
649 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
657 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
658 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
659 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
661 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
662 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
663 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
664 @echo "Makefile-man.am has been regenerated"
666 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
667 $(AM_V_at)$(MKDIR_P) $(dir $@)
668 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
670 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
671 $(AM_V_at)$(MKDIR_P) $(dir $@)
672 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
675 man/systemd.index.xml \
677 man/systemd.directives.xml
680 man/systemd.index.xml \
681 man/systemd.directives.xml
692 tools/make-man-index.py \
693 tools/make-directive-index.py \
694 tools/make-man-rules.py \
697 # ------------------------------------------------------------------------------
698 noinst_LTLIBRARIES += \
701 libsystemd_shared_la_SOURCES = \
702 src/shared/linux/auto_dev-ioctl.h \
703 src/shared/linux/fanotify.h \
704 src/shared/ioprio.h \
705 src/shared/missing.h \
706 src/shared/initreq.h \
707 src/shared/securebits.h \
708 src/shared/special.h \
712 src/shared/sparse-endian.h \
713 src/shared/refcnt.h \
714 src/shared/udev-util.h \
715 src/shared/bus-errors.h \
716 src/shared/device-nodes.c \
717 src/shared/device-nodes.h \
722 src/shared/architecture.c \
723 src/shared/architecture.h \
724 src/shared/efivars.c \
725 src/shared/efivars.h \
726 src/shared/path-util.c \
727 src/shared/path-util.h \
728 src/shared/time-util.c \
729 src/shared/time-util.h \
730 src/shared/hashmap.c \
731 src/shared/hashmap.h \
732 src/shared/siphash24.c \
733 src/shared/siphash24.h \
740 src/shared/sleep-config.c \
741 src/shared/sleep-config.h \
744 src/shared/env-util.c \
745 src/shared/env-util.h \
746 src/shared/strbuf.c \
747 src/shared/strbuf.h \
748 src/shared/strxcpyx.c \
749 src/shared/strxcpyx.h \
750 src/shared/conf-parser.c \
751 src/shared/conf-parser.h \
754 src/shared/ratelimit.h \
755 src/shared/ratelimit.c \
756 src/shared/exit-status.c \
757 src/shared/exit-status.h \
760 src/shared/gunicode.c \
761 src/shared/gunicode.h \
764 src/shared/socket-util.c \
765 src/shared/socket-util.h \
766 src/shared/conf-files.c \
767 src/shared/conf-files.h \
768 src/shared/cgroup-util.c \
769 src/shared/cgroup-util.h \
770 src/shared/cgroup-show.c \
771 src/shared/cgroup-show.h \
772 src/shared/unit-name.c \
773 src/shared/unit-name.h \
774 src/shared/utmp-wtmp.c \
775 src/shared/utmp-wtmp.h \
776 src/shared/watchdog.c \
777 src/shared/watchdog.h \
778 src/shared/spawn-ask-password-agent.c \
779 src/shared/spawn-ask-password-agent.h \
780 src/shared/replace-var.c \
781 src/shared/replace-var.h \
782 src/shared/spawn-polkit-agent.c \
783 src/shared/spawn-polkit-agent.h \
784 src/shared/clock-util.c \
785 src/shared/clock-util.h \
786 src/shared/time-dst.c \
787 src/shared/time-dst.h \
788 src/shared/calendarspec.c \
789 src/shared/calendarspec.h \
790 src/shared/fileio.c \
791 src/shared/fileio.h \
792 src/shared/output-mode.h \
793 src/shared/MurmurHash2.c \
794 src/shared/MurmurHash2.h \
795 src/shared/acpi-fpdt.h \
796 src/shared/acpi-fpdt.c \
797 src/shared/boot-timestamps.h \
798 src/shared/boot-timestamps.c \
801 src/shared/smack-util.c \
802 src/shared/smack-util.h \
803 src/shared/apparmor-util.c \
804 src/shared/apparmor-util.h \
805 src/shared/ima-util.c \
806 src/shared/ima-util.h \
807 src/shared/ptyfwd.c \
808 src/shared/ptyfwd.h \
809 src/shared/errno-list.c \
810 src/shared/errno-list.h \
811 src/shared/af-list.c \
812 src/shared/af-list.h \
817 src/shared/condition-util.c \
818 src/shared/condition-util.h \
819 src/shared/bus-label.c \
820 src/shared/bus-label.h \
822 src/shared/clean-ipc.h \
823 src/shared/clean-ipc.c \
824 src/shared/login-shared.c \
825 src/shared/login-shared.h \
830 src/shared/eventfd-util.c \
831 src/shared/eventfd-util.h \
834 src/shared/base-filesystem.c \
835 src/shared/base-filesystem.h
837 nodist_libsystemd_shared_la_SOURCES = \
838 src/shared/errno-from-name.h \
839 src/shared/errno-to-name.h \
840 src/shared/af-from-name.h \
841 src/shared/af-to-name.h
843 libsystemd_shared_la_CFLAGS = \
848 # ------------------------------------------------------------------------------
849 noinst_LTLIBRARIES += \
852 libsystemd_units_la_SOURCES = \
853 src/shared/install.c \
854 src/shared/install.h \
855 src/shared/install-printf.c \
856 src/shared/install-printf.h \
857 src/shared/path-lookup.c \
858 src/shared/path-lookup.h \
859 src/shared/specifier.c \
860 src/shared/specifier.h
862 # ------------------------------------------------------------------------------
863 noinst_LTLIBRARIES += \
866 libsystemd_label_la_SOURCES = \
867 src/shared/socket-label.c \
870 src/shared/selinux-util.c \
871 src/shared/selinux-util.h \
872 src/shared/mkdir-label.c \
873 src/shared/ask-password-api.c \
874 src/shared/ask-password-api.h \
875 src/shared/fileio-label.c \
876 src/shared/fileio-label.h \
877 src/shared/dev-setup.c \
878 src/shared/dev-setup.h \
879 src/shared/dropin.c \
880 src/shared/dropin.h \
881 src/shared/generator.h \
882 src/shared/generator.c
884 libsystemd_label_la_CFLAGS = \
888 libsystemd_label_la_LIBADD = \
891 # ------------------------------------------------------------------------------
894 noinst_LTLIBRARIES += \
895 libsystemd-seccomp.la
897 libsystemd_seccomp_la_SOURCES = \
898 src/shared/seccomp-util.h \
899 src/shared/seccomp-util.c
901 libsystemd_seccomp_la_CFLAGS = \
905 libsystemd_seccomp_la_LIBADD = \
909 # ------------------------------------------------------------------------------
910 noinst_LTLIBRARIES += \
913 libsystemd_logs_la_SOURCES = \
914 src/shared/logs-show.c \
915 src/shared/logs-show.h
917 # ------------------------------------------------------------------------------
918 noinst_LTLIBRARIES += \
919 libsystemd-capability.la
921 libsystemd_capability_la_SOURCES = \
922 src/shared/capability.c \
923 src/shared/capability.h
925 libsystemd_capability_la_CFLAGS = \
929 libsystemd_capability_la_LIBADD = \
932 # ------------------------------------------------------------------------------
934 noinst_LTLIBRARIES += \
937 libsystemd_acl_la_SOURCES = \
938 src/shared/acl-util.c \
939 src/shared/acl-util.h
941 libsystemd_acl_la_CFLAGS = \
945 libsystemd_acl_la_LIBADD = \
949 # ------------------------------------------------------------------------------
950 noinst_LTLIBRARIES += \
953 libsystemd_core_la_SOURCES = \
956 src/core/unit-printf.c \
957 src/core/unit-printf.h \
962 src/core/transaction.c \
963 src/core/transaction.h \
964 src/core/load-fragment.c \
965 src/core/load-fragment.h \
974 src/core/snapshot.c \
975 src/core/snapshot.h \
980 src/core/automount.c \
981 src/core/automount.h \
992 src/core/load-dropin.c \
993 src/core/load-dropin.h \
1000 src/core/dbus-manager.c \
1001 src/core/dbus-manager.h \
1002 src/core/dbus-unit.c \
1003 src/core/dbus-unit.h \
1004 src/core/dbus-job.c \
1005 src/core/dbus-job.h \
1006 src/core/dbus-service.c \
1007 src/core/dbus-service.h \
1008 src/core/dbus-socket.c \
1009 src/core/dbus-socket.h \
1010 src/core/dbus-busname.c \
1011 src/core/dbus-busname.h \
1012 src/core/dbus-target.c \
1013 src/core/dbus-target.h \
1014 src/core/dbus-snapshot.c \
1015 src/core/dbus-snapshot.h \
1016 src/core/dbus-device.c \
1017 src/core/dbus-device.h \
1018 src/core/dbus-mount.c \
1019 src/core/dbus-mount.h \
1020 src/core/dbus-automount.c \
1021 src/core/dbus-automount.h \
1022 src/core/dbus-swap.c \
1023 src/core/dbus-swap.h \
1024 src/core/dbus-timer.c \
1025 src/core/dbus-timer.h \
1026 src/core/dbus-path.c \
1027 src/core/dbus-path.h \
1028 src/core/dbus-slice.c \
1029 src/core/dbus-slice.h \
1030 src/core/dbus-scope.c \
1031 src/core/dbus-scope.h \
1032 src/core/dbus-execute.c \
1033 src/core/dbus-execute.h \
1034 src/core/dbus-kill.c \
1035 src/core/dbus-kill.h \
1036 src/core/dbus-cgroup.c \
1037 src/core/dbus-cgroup.h \
1040 src/core/selinux-access.c \
1041 src/core/selinux-access.h \
1042 src/core/selinux-setup.c \
1043 src/core/selinux-setup.h \
1044 src/core/smack-setup.c \
1045 src/core/smack-setup.h \
1046 src/core/ima-setup.c \
1047 src/core/ima-setup.h \
1048 src/core/locale-setup.h \
1049 src/core/locale-setup.c \
1050 src/core/hostname-setup.c \
1051 src/core/hostname-setup.h \
1052 src/core/machine-id-setup.c \
1053 src/core/machine-id-setup.h \
1054 src/core/mount-setup.c \
1055 src/core/mount-setup.h \
1056 src/core/loopback-setup.h \
1057 src/core/loopback-setup.c \
1058 src/core/condition.c \
1059 src/core/condition.h \
1060 src/core/namespace.c \
1061 src/core/namespace.h \
1063 src/core/sysfs-show.h \
1064 src/core/switch-root.h \
1065 src/core/switch-root.c \
1066 src/core/killall.h \
1067 src/core/killall.c \
1068 src/core/audit-fd.c \
1069 src/core/audit-fd.h \
1070 src/core/show-status.c \
1071 src/core/show-status.h
1074 libsystemd_core_la_SOURCES += \
1075 src/core/kmod-setup.c \
1076 src/core/kmod-setup.h
1079 nodist_libsystemd_core_la_SOURCES = \
1080 src/core/load-fragment-gperf.c \
1081 src/core/load-fragment-gperf-nulstr.c
1083 libsystemd_core_la_CFLAGS = \
1089 $(APPARMOR_CFLAGS) \
1093 libsystemd_core_la_LIBADD = \
1094 libsystemd-capability.la \
1095 libsystemd-units.la \
1096 libsystemd-label.la \
1097 libudev-internal.la \
1098 libsystemd-shared.la \
1099 libsystemd-internal.la \
1108 libsystemd_core_la_LIBADD += \
1109 libsystemd-seccomp.la
1112 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1113 $(AM_V_at)$(MKDIR_P) $(dir $@)
1114 $(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 ";" }' < $< > $@
1117 src/core/load-fragment-gperf.gperf.m4
1120 src/core/load-fragment-gperf.gperf \
1121 src/core/load-fragment-gperf.c \
1122 src/core/load-fragment-gperf-nulstr.c \
1123 src/shared/errno-list.txt \
1124 src/shared/errno-from-name.gperf \
1125 src/shared/af-list.txt \
1126 src/shared/af-from-name.gperf
1129 src/shared/errno-from-name.h \
1130 src/shared/errno-to-name.h \
1131 src/shared/af-from-name.h \
1132 src/shared/af-to-name.h
1134 src/shared/errno-list.txt:
1135 $(AM_V_at)$(MKDIR_P) $(dir $@)
1136 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1138 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1139 $(AM_V_at)$(MKDIR_P) $(dir $@)
1140 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1142 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1143 $(AM_V_at)$(MKDIR_P) $(dir $@)
1144 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1146 src/shared/errno-to-name.h: src/shared/errno-list.txt
1147 $(AM_V_at)$(MKDIR_P) $(dir $@)
1148 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1150 src/shared/af-list.txt:
1151 $(AM_V_at)$(MKDIR_P) $(dir $@)
1152 $(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; }' > $@
1154 src/shared/af-from-name.gperf: src/shared/af-list.txt
1155 $(AM_V_at)$(MKDIR_P) $(dir $@)
1156 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1158 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1159 $(AM_V_at)$(MKDIR_P) $(dir $@)
1160 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1162 src/shared/af-to-name.h: src/shared/af-list.txt
1163 $(AM_V_at)$(MKDIR_P) $(dir $@)
1164 $(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 "};"}' < $< > $@
1166 # ------------------------------------------------------------------------------
1175 libsystemd-core.la \
1178 dist_pkgsysconf_DATA += \
1179 src/core/system.conf \
1182 dist_dbuspolicy_DATA += \
1183 src/core/org.freedesktop.systemd1.conf
1185 dist_dbussystemservice_DATA += \
1186 src/core/org.freedesktop.systemd1.service
1188 polkitpolicy_in_in_files += \
1189 src/core/org.freedesktop.systemd1.policy.in.in
1191 pkgconfigdata_DATA = \
1194 nodist_rpmmacros_DATA = \
1195 src/core/macros.systemd
1198 src/core/systemd.pc.in \
1199 src/core/macros.systemd.in
1202 src/core/macros.systemd \
1203 src/core/org.freedesktop.systemd1.policy.in
1205 # ------------------------------------------------------------------------------
1244 test-strip-tab-ansi \
1263 test/sched_idle_bad.service \
1264 test/sched_idle_ok.service \
1265 test/sched_rr_bad.service \
1266 test/sched_rr_ok.service \
1267 test/sched_rr_change.service \
1269 test/daughter.service \
1273 src/test/test-helper.h
1275 test_device_nodes_SOURCES = \
1276 src/test/test-device-nodes.c
1278 test_device_nodes_LDADD = \
1279 libsystemd-shared.la
1281 test_engine_SOURCES = \
1282 src/test/test-engine.c
1284 test_engine_CFLAGS = \
1288 test_engine_LDADD = \
1289 libsystemd-core.la \
1292 test_job_type_SOURCES = \
1293 src/test/test-job-type.c
1295 test_job_type_CFLAGS = \
1299 test_job_type_LDADD = \
1300 libsystemd-core.la \
1313 test_loopback_SOURCES = \
1314 src/test/test-loopback.c
1316 test_loopback_LDADD = \
1319 test_hostname_SOURCES = \
1320 src/test/test-hostname.c
1322 test_hostname_LDADD = \
1329 test_boot_timestamp_SOURCES = \
1330 src/test/test-boot-timestamps.c
1332 test_boot_timestamp_LDADD = \
1333 libsystemd-shared.la
1336 test_unit_name_SOURCES = \
1337 src/test/test-unit-name.c
1339 test_unit_name_CFLAGS = \
1343 test_unit_name_LDADD = \
1344 libsystemd-core.la \
1347 test_unit_file_SOURCES = \
1348 src/test/test-unit-file.c
1350 test_unit_file_CFLAGS = \
1354 test_unit_file_LDADD = \
1355 libsystemd-core.la \
1358 test_utf8_SOURCES = \
1359 src/test/test-utf8.c
1362 libsystemd-shared.la
1364 test_capability_SOURCES = \
1365 src/test/test-capability.c
1367 test_capability_LDADD = \
1368 libsystemd-shared.la \
1369 libsystemd-capability.la
1371 test_async_SOURCES = \
1372 src/test/test-async.c
1374 test_async_LDADD = \
1375 libsystemd-shared.la
1377 test_fdset_SOURCES = \
1378 src/test/test-fdset.c
1380 test_fdset_LDADD = \
1383 test_ratelimit_SOURCES = \
1384 src/test/test-ratelimit.c
1386 test_ratelimit_LDADD = \
1387 libsystemd-shared.la
1389 test_util_SOURCES = \
1390 src/test/test-util.c
1395 test_socket_util_SOURCES = \
1396 src/test/test-socket-util.c
1398 test_socket_util_LDADD = \
1401 test_ring_SOURCES = \
1402 src/test/test-ring.c
1407 test_tmpfiles_SOURCES = \
1408 src/test/test-tmpfiles.c
1410 test_tmpfiles_LDADD = \
1411 libsystemd-shared.la
1413 test_namespace_SOURCES = \
1414 src/test/test-namespace.c
1416 test_namespace_LDADD = \
1419 test_hashmap_SOURCES = \
1420 src/test/test-hashmap.c
1422 test_hashmap_LDADD = \
1425 test_xml_SOURCES = \
1429 libsystemd-shared.la
1431 test_list_SOURCES = \
1432 src/test/test-list.c
1437 test_tables_SOURCES = \
1438 src/test/test-tables.c \
1439 src/shared/test-tables.h
1441 test_tables_CFLAGS = \
1445 test_tables_LDADD = \
1446 libsystemd-logs.la \
1447 libsystemd-journal-internal.la \
1448 libsystemd-core.la \
1451 test_prioq_SOURCES = \
1452 src/test/test-prioq.c
1454 test_prioq_LDADD = \
1457 test_fileio_SOURCES = \
1458 src/test/test-fileio.c
1460 test_fileio_LDADD = \
1463 test_time_SOURCES = \
1464 src/test/test-time.c
1469 test_architecture_SOURCES = \
1470 src/test/test-architecture.c
1472 test_architecture_LDADD = \
1473 libsystemd-shared.la
1475 test_log_SOURCES = \
1481 test_ipcrm_SOURCES = \
1482 src/test/test-ipcrm.c
1484 test_ipcrm_LDADD = \
1485 libsystemd-shared.la \
1488 test_rtnl_manual_SOURCES = \
1489 src/test/test-rtnl-manual.c
1491 test_rtnl_manual_CFLAGS = \
1495 test_rtnl_manual_LDADD = \
1496 libsystemd-internal.la \
1497 libsystemd-shared.la \
1500 test_ellipsize_SOURCES = \
1501 src/test/test-ellipsize.c
1503 test_ellipsize_LDADD = \
1506 test_date_SOURCES = \
1507 src/test/test-date.c
1512 test_sleep_SOURCES = \
1513 src/test/test-sleep.c
1515 test_sleep_LDADD = \
1518 test_replace_var_SOURCES = \
1519 src/test/test-replace-var.c
1521 test_replace_var_LDADD = \
1522 libsystemd-shared.la
1524 test_calendarspec_SOURCES = \
1525 src/test/test-calendarspec.c
1527 test_calendarspec_LDADD = \
1528 libsystemd-shared.la
1530 test_strip_tab_ansi_SOURCES = \
1531 src/test/test-strip-tab-ansi.c
1533 test_strip_tab_ansi_LDADD = \
1534 libsystemd-shared.la
1536 test_daemon_SOURCES = \
1537 src/test/test-daemon.c
1539 test_daemon_LDADD = \
1540 libsystemd-internal.la \
1541 libsystemd-shared.la
1543 test_cgroup_SOURCES = \
1544 src/test/test-cgroup.c
1546 test_cgroup_LDADD = \
1547 libsystemd-label.la \
1548 libsystemd-shared.la \
1549 libsystemd-internal.la
1551 test_cgroup_mask_SOURCES = \
1552 src/test/test-cgroup-mask.c
1554 test_cgroup_mask_CPPFLAGS = \
1556 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1558 test_cgroup_mask_CFLAGS = \
1562 test_cgroup_mask_LDADD = \
1563 libsystemd-core.la \
1566 test_cgroup_util_SOURCES = \
1567 src/test/test-cgroup-util.c
1569 test_cgroup_util_LDADD = \
1570 libsystemd-label.la \
1571 libsystemd-internal.la \
1572 libsystemd-shared.la
1574 test_env_replace_SOURCES = \
1575 src/test/test-env-replace.c
1577 test_env_replace_LDADD = \
1578 libsystemd-shared.la
1580 test_strbuf_SOURCES = \
1581 src/test/test-strbuf.c
1583 test_strbuf_LDADD = \
1584 libsystemd-shared.la
1586 test_strv_SOURCES = \
1587 src/test/test-strv.c
1590 libsystemd-units.la \
1591 libsystemd-internal.la \
1592 libsystemd-shared.la
1594 test_path_util_SOURCES = \
1595 src/test/test-path-util.c
1597 test_path_util_LDADD = \
1598 libsystemd-shared.la
1600 test_strxcpyx_SOURCES = \
1601 src/test/test-strxcpyx.c
1603 test_strxcpyx_LDADD = \
1604 libsystemd-shared.la
1606 test_install_SOURCES = \
1607 src/test/test-install.c
1609 test_install_LDADD = \
1610 libsystemd-units.la \
1611 libsystemd-label.la \
1612 libsystemd-shared.la \
1613 libsystemd-internal.la
1615 test_watchdog_SOURCES = \
1616 src/test/test-watchdog.c
1618 test_watchdog_LDADD = \
1619 libsystemd-shared.la
1621 test_sched_prio_SOURCES = \
1622 src/test/test-sched-prio.c
1624 test_sched_prio_CPPFLAGS = \
1626 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1628 test_sched_prio_CFLAGS = \
1632 test_sched_prio_LDADD = \
1633 libsystemd-core.la \
1636 test_conf_files_SOURCES = \
1637 src/test/test-conf-files.c
1639 test_conf_files_LDADD = \
1640 libsystemd-shared.la
1642 # ------------------------------------------------------------------------------
1643 ## .PHONY so it always rebuilds it
1644 .PHONY: coverage lcov-run lcov-report coverage-sync
1646 # run lcov from scratch, always
1651 coverage_dir = coverage
1652 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1655 # reset run coverage tests
1657 @rm -rf $(coverage_dir)
1658 lcov $(coverage_opts) --zerocounters
1661 # generate report based on current coverage data
1663 $(MKDIR_P) $(coverage_dir)
1664 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1665 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1666 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1667 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1669 # lcov doesn't work properly with vpath builds, make sure that bad
1670 # output is not uploaded by mistake.
1671 coverage-sync: coverage
1672 test "$(builddir)" = "$(srcdir)"
1673 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1676 lcov-run lcov-report:
1677 echo "Need to reconfigure with --enable-coverage"
1680 # ------------------------------------------------------------------------------
1681 systemd_analyze_SOURCES = \
1682 src/analyze/analyze.c
1684 systemd_analyze_LDADD = \
1685 libsystemd-internal.la \
1686 libsystemd-shared.la
1688 # ------------------------------------------------------------------------------
1689 systemd_initctl_SOURCES = \
1690 src/initctl/initctl.c
1692 systemd_initctl_LDADD = \
1693 libsystemd-internal.la \
1694 libsystemd-shared.la
1696 # ------------------------------------------------------------------------------
1697 systemd_update_utmp_SOURCES = \
1698 src/update-utmp/update-utmp.c
1700 systemd_update_utmp_CFLAGS = \
1704 systemd_update_utmp_LDADD = \
1705 libsystemd-internal.la \
1706 libsystemd-shared.la \
1709 # ------------------------------------------------------------------------------
1710 systemd_update_done_SOURCES = \
1711 src/update-done/update-done.c
1713 systemd_update_done_LDADD = \
1714 libsystemd-internal.la \
1715 libsystemd-shared.la
1717 # ------------------------------------------------------------------------------
1718 systemd_shutdownd_SOURCES = \
1719 src/shutdownd/shutdownd.c
1721 systemd_shutdownd_LDADD = \
1722 libsystemd-label.la \
1723 libsystemd-internal.la \
1724 libsystemd-shared.la
1727 src/systemd/sd-shutdown.h
1729 # ------------------------------------------------------------------------------
1730 systemd_shutdown_SOURCES = \
1733 src/core/shutdown.c \
1734 src/core/mount-setup.c \
1735 src/core/mount-setup.h \
1736 src/core/killall.h \
1739 systemd_shutdown_LDADD = \
1740 libsystemd-label.la \
1741 libudev-internal.la \
1742 libsystemd-shared.la
1744 # ------------------------------------------------------------------------------
1746 systemd_modules_load_SOURCES = \
1747 src/modules-load/modules-load.c
1749 systemd_modules_load_CFLAGS = \
1753 systemd_modules_load_LDADD = \
1754 libsystemd-shared.la \
1757 rootlibexec_PROGRAMS += \
1758 systemd-modules-load
1760 nodist_systemunit_DATA += \
1761 units/systemd-modules-load.service
1763 SYSINIT_TARGET_WANTS += \
1764 systemd-modules-load.service
1767 nodist_systemunit_DATA += \
1768 units/kmod-static-nodes.service
1770 SYSINIT_TARGET_WANTS += \
1771 kmod-static-nodes.service
1776 units/systemd-modules-load.service.in \
1777 units/kmod-static-nodes.service.in
1779 # ------------------------------------------------------------------------------
1781 systemd_tmpfiles_SOURCES = \
1782 src/tmpfiles/tmpfiles.c
1784 systemd_tmpfiles_LDADD = \
1785 libsystemd-units.la \
1786 libsystemd-label.la \
1787 libsystemd-capability.la \
1788 libsystemd-internal.la \
1789 libsystemd-shared.la
1791 rootbin_PROGRAMS += \
1794 dist_systemunit_DATA += \
1795 units/systemd-tmpfiles-clean.timer
1797 nodist_systemunit_DATA += \
1798 units/systemd-tmpfiles-setup-dev.service \
1799 units/systemd-tmpfiles-setup.service \
1800 units/systemd-tmpfiles-clean.service
1802 dist_tmpfiles_DATA = \
1803 tmpfiles.d/systemd.conf \
1804 tmpfiles.d/systemd-nologin.conf \
1805 tmpfiles.d/tmp.conf \
1806 tmpfiles.d/x11.conf \
1807 tmpfiles.d/var.conf \
1811 dist_tmpfiles_DATA += \
1812 tmpfiles.d/legacy.conf
1815 SYSINIT_TARGET_WANTS += \
1816 systemd-tmpfiles-setup-dev.service \
1817 systemd-tmpfiles-setup.service
1819 dist_zshcompletion_DATA += \
1820 shell-completion/zsh/_systemd-tmpfiles
1822 TIMERS_TARGET_WANTS += \
1823 systemd-tmpfiles-clean.timer
1827 $(sysconfdir)/tmpfiles.d
1831 units/systemd-tmpfiles-setup-dev.service.in \
1832 units/systemd-tmpfiles-setup.service.in \
1833 units/systemd-tmpfiles-clean.service.in
1835 # ------------------------------------------------------------------------------
1837 systemd_sysusers_SOURCES = \
1838 src/sysusers/sysusers.c
1840 systemd_sysusers_LDADD = \
1841 libsystemd-units.la \
1842 libsystemd-label.la \
1843 libsystemd-capability.la \
1844 libsystemd-internal.la \
1845 libsystemd-shared.la
1847 rootbin_PROGRAMS += \
1850 nodist_systemunit_DATA += \
1851 units/systemd-sysusers.service
1853 SYSINIT_TARGET_WANTS += \
1854 systemd-sysusers.service
1856 dist_sysusers_DATA = \
1857 sysusers.d/systemd.conf
1859 nodist_sysusers_DATA = \
1860 sysusers.d/basic.conf
1863 units/systemd-sysusers.service.in \
1864 sysusers.d/basic.conf.in
1867 sysusers.d/basic.conf
1873 # ------------------------------------------------------------------------------
1874 systemd_machine_id_setup_SOURCES = \
1875 src/machine-id-setup/machine-id-setup-main.c \
1876 src/core/machine-id-setup.c \
1877 src/core/machine-id-setup.h
1879 systemd_machine_id_setup_LDADD = \
1880 libsystemd-label.la \
1881 libsystemd-internal.la \
1882 libsystemd-shared.la
1884 # ------------------------------------------------------------------------------
1885 systemd_sysctl_SOURCES = \
1888 systemd_sysctl_LDADD = \
1889 libsystemd-shared.la
1891 # ------------------------------------------------------------------------------
1892 systemd_sleep_SOURCES = \
1895 systemd_sleep_LDADD = \
1896 libsystemd-shared.la
1898 # ------------------------------------------------------------------------------
1899 systemd_fsck_SOURCES = \
1902 systemd_fsck_LDADD = \
1903 libsystemd-internal.la \
1904 libudev-internal.la \
1905 libsystemd-shared.la
1907 # ------------------------------------------------------------------------------
1908 systemd_ac_power_SOURCES = \
1909 src/ac-power/ac-power.c
1911 systemd_ac_power_LDADD = \
1912 libudev-internal.la \
1913 libsystemd-shared.la
1915 # ------------------------------------------------------------------------------
1916 systemd_detect_virt_SOURCES = \
1917 src/detect-virt/detect-virt.c
1919 systemd_detect_virt_LDADD = \
1920 libsystemd-shared.la
1922 INSTALL_EXEC_HOOKS += \
1923 systemd-detect-virt-install-hook
1925 # ------------------------------------------------------------------------------
1926 systemd_delta_SOURCES = \
1929 systemd_delta_LDADD = \
1930 libsystemd-shared.la
1932 # ------------------------------------------------------------------------------
1933 systemd_getty_generator_SOURCES = \
1934 src/getty-generator/getty-generator.c
1936 systemd_getty_generator_LDADD = \
1937 libsystemd-label.la \
1938 libsystemd-shared.la
1940 # ------------------------------------------------------------------------------
1941 systemd_debug_generator_SOURCES = \
1942 src/debug-generator/debug-generator.c
1944 systemd_debug_generator_LDADD = \
1945 libsystemd-label.la \
1946 libsystemd-shared.la
1948 # ------------------------------------------------------------------------------
1949 systemd_fstab_generator_SOURCES = \
1950 src/fstab-generator/fstab-generator.c \
1951 src/core/mount-setup.c
1953 systemd_fstab_generator_LDADD = \
1954 libsystemd-label.la \
1955 libsystemd-shared.la
1957 # ------------------------------------------------------------------------------
1958 systemd_system_update_generator_SOURCES = \
1959 src/system-update-generator/system-update-generator.c
1961 systemd_system_update_generator_LDADD = \
1962 libsystemd-label.la \
1963 libsystemd-shared.la
1966 # ------------------------------------------------------------------------------
1967 systemgenerator_PROGRAMS += \
1968 systemd-efi-boot-generator
1970 systemd_efi_boot_generator_SOURCES = \
1971 src/efi-boot-generator/efi-boot-generator.c
1973 systemd_efi_boot_generator_LDADD = \
1974 libsystemd-label.la \
1975 libsystemd-shared.la
1977 # ------------------------------------------------------------------------------
1980 src/boot/boot-loader.h \
1981 src/boot/bootctl.c \
1982 src/boot/boot-loader.c \
1986 libsystemd-shared.la \
1987 libsystemd-internal.la
1992 dist_bashcompletion_DATA += \
1993 shell-completion/bash/bootctl
1995 dist_zshcompletion_DATA += \
1996 shell-completion/zsh/_bootctl
2000 # ------------------------------------------------------------------------------
2002 systemgenerator_PROGRAMS += \
2003 systemd-gpt-auto-generator
2005 systemd_gpt_auto_generator_SOURCES = \
2006 src/gpt-auto-generator/gpt-auto-generator.c \
2007 src/shared/blkid-util.h
2009 systemd_gpt_auto_generator_LDADD = \
2010 libsystemd-label.la \
2011 libsystemd-internal.la \
2012 libudev-internal.la \
2013 libsystemd-shared.la \
2016 systemd_gpt_auto_generator_CFLAGS = \
2021 # ------------------------------------------------------------------------------
2023 systemgenerator_PROGRAMS += \
2024 systemd-dbus1-generator
2026 systemd_dbus1_generator_SOURCES = \
2027 src/dbus1-generator/dbus1-generator.c
2029 systemd_dbus1_generator_LDADD = \
2030 libsystemd-label.la \
2031 libsystemd-shared.la \
2032 libsystemd-internal.la
2034 dbus1-generator-install-hook:
2035 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2036 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2037 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2039 dbus1-generator-uninstall-hook:
2040 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2042 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2043 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2046 # ------------------------------------------------------------------------------
2047 systemd_sysv_generator_SOURCES = \
2048 src/sysv-generator/sysv-generator.c
2050 systemd_sysv_generator_LDADD = \
2051 libsystemd-core.la \
2052 libsystemd-label.la \
2053 libsystemd-shared.la
2055 # ------------------------------------------------------------------------------
2056 systemd_rc_local_generator_SOURCES = \
2057 src/rc-local-generator/rc-local-generator.c
2059 systemd_rc_local_generator_LDADD = \
2060 libsystemd-label.la \
2061 libsystemd-shared.la
2063 # ------------------------------------------------------------------------------
2064 systemd_remount_fs_SOURCES = \
2065 src/remount-fs/remount-fs.c \
2066 src/core/mount-setup.c \
2067 src/core/mount-setup.h
2069 systemd_remount_fs_LDADD = \
2070 libsystemd-label.la \
2071 libsystemd-shared.la
2073 # ------------------------------------------------------------------------------
2074 systemd_cgroups_agent_SOURCES = \
2075 src/cgroups-agent/cgroups-agent.c
2077 systemd_cgroups_agent_LDADD = \
2078 libsystemd-internal.la \
2079 libsystemd-shared.la
2081 # ------------------------------------------------------------------------------
2082 systemctl_SOURCES = \
2083 src/systemctl/systemctl.c
2086 libsystemd-units.la \
2087 libsystemd-label.la \
2088 libsystemd-internal.la \
2089 libsystemd-logs.la \
2090 libsystemd-journal-internal.la \
2091 libsystemd-shared.la
2093 # ------------------------------------------------------------------------------
2094 systemd_notify_SOURCES = \
2095 src/notify/notify.c \
2096 src/readahead/sd-readahead.c
2098 systemd_notify_LDADD = \
2099 libsystemd-internal.la \
2100 libsystemd-shared.la
2102 # ------------------------------------------------------------------------------
2103 systemd_path_SOURCES = \
2106 systemd_path_LDADD = \
2107 libsystemd-internal.la \
2108 libsystemd-shared.la
2110 # ------------------------------------------------------------------------------
2111 systemd_ask_password_SOURCES = \
2112 src/ask-password/ask-password.c
2114 systemd_ask_password_LDADD = \
2115 libsystemd-label.la \
2116 libsystemd-shared.la
2118 # ------------------------------------------------------------------------------
2119 systemd_reply_password_SOURCES = \
2120 src/reply-password/reply-password.c
2122 systemd_reply_password_LDADD = \
2123 libsystemd-shared.la
2125 # ------------------------------------------------------------------------------
2126 systemd_cgls_SOURCES = \
2129 systemd_cgls_LDADD = \
2130 libsystemd-internal.la \
2131 libsystemd-shared.la
2133 # ------------------------------------------------------------------------------
2134 systemd_cgtop_SOURCES = \
2137 systemd_cgtop_LDADD = \
2138 libsystemd-shared.la
2140 # ------------------------------------------------------------------------------
2141 systemd_nspawn_SOURCES = \
2142 src/nspawn/nspawn.c \
2143 src/core/mount-setup.c \
2144 src/core/mount-setup.h \
2145 src/core/loopback-setup.c \
2146 src/core/loopback-setup.h
2148 systemd_nspawn_CFLAGS = \
2153 systemd_nspawn_LDADD = \
2154 libsystemd-label.la \
2155 libsystemd-capability.la \
2156 libsystemd-internal.la \
2157 libudev-internal.la \
2158 libsystemd-shared.la \
2162 systemd_nspawn_LDADD += \
2163 libsystemd-seccomp.la \
2167 # ------------------------------------------------------------------------------
2168 systemd_run_SOURCES = \
2171 systemd_run_LDADD = \
2172 libsystemd-label.la \
2173 libsystemd-capability.la \
2174 libsystemd-internal.la \
2175 libsystemd-shared.la
2177 # ------------------------------------------------------------------------------
2178 systemd_bus_proxyd_SOURCES = \
2179 src/bus-proxyd/bus-proxyd.c \
2180 src/bus-proxyd/bus-policy.c \
2181 src/bus-proxyd/bus-policy.h
2183 systemd_bus_proxyd_LDADD = \
2184 libsystemd-capability.la \
2185 libsystemd-internal.la \
2186 libsystemd-shared.la
2188 bus-proxyd-install-hook:
2189 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2190 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2191 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2193 bus-proxyd-uninstall-hook:
2194 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2196 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2197 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2200 nodist_systemunit_DATA += \
2201 units/systemd-bus-proxyd@.service
2203 dist_systemunit_DATA += \
2204 units/systemd-bus-proxyd.socket
2206 dist_userunit_DATA += \
2207 units/user/systemd-bus-proxyd.socket \
2208 units/user/systemd-bus-proxyd@.service
2212 units/systemd-bus-proxyd@.service.in
2214 # ------------------------------------------------------------------------------
2215 systemd_tty_ask_password_agent_SOURCES = \
2216 src/tty-ask-password-agent/tty-ask-password-agent.c
2218 systemd_tty_ask_password_agent_LDADD = \
2219 libsystemd-label.la \
2220 libsystemd-shared.la
2222 # ------------------------------------------------------------------------------
2223 libsystemd_internal_la_SOURCES = \
2224 src/systemd/sd-bus.h \
2225 src/systemd/sd-bus-protocol.h \
2226 src/systemd/sd-bus-vtable.h \
2227 src/systemd/sd-memfd.h \
2228 src/systemd/sd-utf8.h \
2229 src/systemd/sd-event.h \
2230 src/systemd/sd-rtnl.h \
2231 src/systemd/sd-resolve.h \
2232 src/systemd/sd-login.h \
2233 src/systemd/sd-id128.h \
2234 src/systemd/sd-daemon.h \
2235 src/systemd/sd-path.h \
2236 src/libsystemd/sd-bus/sd-bus.c \
2237 src/libsystemd/sd-bus/bus-control.c \
2238 src/libsystemd/sd-bus/bus-control.h \
2239 src/libsystemd/sd-bus/bus-error.c \
2240 src/libsystemd/sd-bus/bus-error.h \
2241 src/libsystemd/sd-bus/bus-internal.c \
2242 src/libsystemd/sd-bus/bus-internal.h \
2243 src/libsystemd/sd-bus/bus-socket.c \
2244 src/libsystemd/sd-bus/bus-socket.h \
2245 src/libsystemd/sd-bus/bus-kernel.c \
2246 src/libsystemd/sd-bus/bus-kernel.h \
2247 src/libsystemd/sd-bus/bus-container.c \
2248 src/libsystemd/sd-bus/bus-container.h \
2249 src/libsystemd/sd-bus/bus-message.c \
2250 src/libsystemd/sd-bus/bus-message.h \
2251 src/libsystemd/sd-bus/bus-creds.c \
2252 src/libsystemd/sd-bus/bus-creds.h \
2253 src/libsystemd/sd-bus/bus-signature.c \
2254 src/libsystemd/sd-bus/bus-signature.h \
2255 src/libsystemd/sd-bus/bus-type.c \
2256 src/libsystemd/sd-bus/bus-type.h \
2257 src/libsystemd/sd-bus/bus-match.c \
2258 src/libsystemd/sd-bus/bus-match.h \
2259 src/libsystemd/sd-bus/bus-bloom.c \
2260 src/libsystemd/sd-bus/bus-bloom.h \
2261 src/libsystemd/sd-bus/bus-introspect.c \
2262 src/libsystemd/sd-bus/bus-introspect.h \
2263 src/libsystemd/sd-bus/bus-objects.c \
2264 src/libsystemd/sd-bus/bus-objects.h \
2265 src/libsystemd/sd-bus/bus-gvariant.c \
2266 src/libsystemd/sd-bus/bus-gvariant.h \
2267 src/libsystemd/sd-bus/bus-convenience.c \
2268 src/libsystemd/sd-bus/bus-track.c \
2269 src/libsystemd/sd-bus/bus-track.h \
2270 src/libsystemd/sd-bus/bus-util.c \
2271 src/libsystemd/sd-bus/bus-util.h \
2272 src/libsystemd/sd-bus/bus-slot.c \
2273 src/libsystemd/sd-bus/bus-slot.h \
2274 src/libsystemd/sd-bus/bus-protocol.h \
2275 src/libsystemd/sd-bus/kdbus.h \
2276 src/libsystemd/sd-bus/sd-memfd.c \
2277 src/libsystemd/sd-utf8/sd-utf8.c \
2278 src/libsystemd/sd-event/sd-event.c \
2279 src/libsystemd/sd-event/event-util.h \
2280 src/libsystemd/sd-rtnl/sd-rtnl.c \
2281 src/libsystemd/sd-rtnl/rtnl-internal.h \
2282 src/libsystemd/sd-rtnl/rtnl-message.c \
2283 src/libsystemd/sd-rtnl/rtnl-types.h \
2284 src/libsystemd/sd-rtnl/rtnl-types.c \
2285 src/libsystemd/sd-rtnl/rtnl-util.h \
2286 src/libsystemd/sd-rtnl/rtnl-util.c \
2287 src/libsystemd/sd-id128/sd-id128.c \
2288 src/libsystemd/sd-daemon/sd-daemon.c \
2289 src/libsystemd/sd-login/sd-login.c \
2290 src/libsystemd/sd-path/sd-path.c
2292 nodist_libsystemd_internal_la_SOURCES = \
2293 src/libsystemd/libsystemd.sym \
2294 src/libsystemd/sd-bus/bus-error-mapping.c
2296 libsystemd_internal_la_CFLAGS = \
2300 libsystemd_internal_la_LIBADD = \
2303 libsystemd_resolve_la_SOURCES = \
2304 src/libsystemd/sd-resolve/sd-resolve.c \
2305 src/libsystemd/sd-resolve/resolve-util.h
2307 libsystemd_resolve_la_CFLAGS = \
2311 libsystemd_resolve_la_LIBADD = \
2314 noinst_LTLIBRARIES += \
2315 libsystemd-internal.la \
2316 libsystemd-resolve.la
2318 libsystemd_dump_la_SOURCES = \
2319 src/libsystemd/sd-bus/bus-dump.c \
2320 src/libsystemd/sd-bus/bus-dump.h
2322 libsystemd_dump_la_CFLAGS = \
2326 noinst_LTLIBRARIES += \
2330 src/libsystemd/libsystemd.sym.m4 \
2331 src/libsystemd/libsystemd.pc.in \
2332 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2333 src/libsystemd/sd-bus/DIFFERENCES \
2334 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2337 src/libsystemd/libsystemd.sym \
2338 src/libsystemd/sd-bus/bus-error-mapping.c
2341 src/libsystemd/libsystemd.sym
2343 libsystemd_la_SOURCES = \
2344 $(libsystemd_internal_la_SOURCES) \
2345 $(libsystemd_resolve_la_SOURCES) \
2346 $(libsystemd_journal_internal_la_SOURCES)
2348 nodist_libsystemd_la_SOURCES = \
2349 $(nodist_libsystemd_internal_la_SOURCES)
2351 libsystemd_la_CFLAGS = \
2352 $(libsystemd_internal_la_CFLAGS) \
2353 $(libsystemd_resolve_la_CFLAGS) \
2354 $(libsystemd_journal_internal_la_CFLAGS)
2356 libsystemd_la_LDFLAGS = \
2358 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2359 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2361 libsystemd_la_LIBADD = \
2362 libsystemd-shared.la \
2363 $(libsystemd_internal_la_LIBADD) \
2364 $(libsystemd_journal_internal_la_LIBADD) \
2365 $(libsystemd_resolve_la_LIBADD)
2367 libsystemd-install-hook:
2368 libname=libsystemd.so && $(move-to-rootlibdir)
2370 libsystemd-uninstall-hook:
2371 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2373 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2374 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2376 pkgconfiglib_DATA += \
2377 src/libsystemd/libsystemd.pc
2379 pkginclude_HEADERS += \
2380 src/systemd/sd-login.h \
2381 src/systemd/sd-id128.h \
2382 src/systemd/sd-daemon.h
2385 pkginclude_HEADERS += \
2386 src/systemd/sd-bus.h \
2387 src/systemd/sd-bus-protocol.h \
2388 src/systemd/sd-bus-vtable.h \
2389 src/systemd/sd-memfd.h \
2390 src/systemd/sd-utf8.h \
2391 src/systemd/sd-event.h \
2392 src/systemd/sd-rtnl.h \
2393 src/systemd/sd-resolve.h \
2394 src/systemd/sd-path.h
2397 lib_LTLIBRARIES += \
2402 test-bus-signature \
2408 test-bus-kernel-bloom \
2409 test-bus-kernel-benchmark \
2411 test-bus-zero-copy \
2412 test-bus-introspect \
2424 test_bus_marshal_SOURCES = \
2425 src/libsystemd/sd-bus/test-bus-marshal.c
2427 test_bus_marshal_LDADD = \
2428 libsystemd-internal.la \
2429 libsystemd-shared.la \
2430 libsystemd-dump.la \
2431 libsystemd-capability.la \
2436 test_bus_marshal_CFLAGS = \
2442 test_bus_signature_SOURCES = \
2443 src/libsystemd/sd-bus/test-bus-signature.c
2445 test_bus_signature_LDADD = \
2446 libsystemd-shared.la \
2447 libsystemd-internal.la
2449 test_bus_chat_SOURCES = \
2450 src/libsystemd/sd-bus/test-bus-chat.c
2452 test_bus_chat_CFLAGS = \
2456 test_bus_chat_LDADD = \
2457 libsystemd-internal.la \
2458 libsystemd-shared.la
2460 test_bus_cleanup_SOURCES = \
2461 src/libsystemd/sd-bus/test-bus-cleanup.c
2463 test_bus_cleanup_CFLAGS = \
2467 test_bus_cleanup_LDADD = \
2468 libsystemd-internal.la \
2469 libsystemd-shared.la
2471 test_bus_server_SOURCES = \
2472 src/libsystemd/sd-bus/test-bus-server.c
2474 test_bus_server_CFLAGS = \
2478 test_bus_server_LDADD = \
2479 libsystemd-internal.la \
2480 libsystemd-shared.la
2482 test_bus_objects_SOURCES = \
2483 src/libsystemd/sd-bus/test-bus-objects.c
2485 test_bus_objects_CFLAGS = \
2490 test_bus_objects_LDADD = \
2491 libsystemd-internal.la \
2492 libsystemd-shared.la \
2493 libsystemd-dump.la \
2494 libsystemd-capability.la \
2497 test_bus_error_SOURCES = \
2498 src/libsystemd/sd-bus/test-bus-error.c
2500 test_bus_error_LDADD = \
2501 libsystemd-internal.la \
2502 libsystemd-shared.la
2504 test_bus_gvariant_SOURCES = \
2505 src/libsystemd/sd-bus/test-bus-gvariant.c
2507 test_bus_gvariant_LDADD = \
2508 libsystemd-internal.la \
2509 libsystemd-shared.la \
2510 libsystemd-dump.la \
2511 libsystemd-capability.la \
2515 test_bus_gvariant_CFLAGS = \
2520 test_bus_creds_SOURCES = \
2521 src/libsystemd/sd-bus/test-bus-creds.c
2523 test_bus_creds_LDADD = \
2524 libsystemd-internal.la \
2525 libsystemd-shared.la \
2526 libsystemd-dump.la \
2527 libsystemd-capability.la
2529 test_bus_match_SOURCES = \
2530 src/libsystemd/sd-bus/test-bus-match.c
2532 test_bus_match_LDADD = \
2533 libsystemd-internal.la \
2534 libsystemd-shared.la
2536 test_bus_kernel_SOURCES = \
2537 src/libsystemd/sd-bus/test-bus-kernel.c
2539 test_bus_kernel_LDADD = \
2540 libsystemd-internal.la \
2541 libsystemd-shared.la \
2542 libsystemd-dump.la \
2543 libsystemd-capability.la \
2546 test_bus_kernel_CFLAGS = \
2550 test_bus_kernel_bloom_SOURCES = \
2551 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2553 test_bus_kernel_bloom_LDADD = \
2554 libsystemd-internal.la \
2555 libsystemd-shared.la
2557 test_bus_kernel_benchmark_SOURCES = \
2558 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2560 test_bus_kernel_benchmark_LDADD = \
2561 libsystemd-internal.la \
2562 libsystemd-shared.la
2564 test_bus_memfd_SOURCES = \
2565 src/libsystemd/sd-bus/test-bus-memfd.c
2567 test_bus_memfd_LDADD = \
2568 libsystemd-internal.la \
2569 libsystemd-shared.la
2571 test_bus_zero_copy_SOURCES = \
2572 src/libsystemd/sd-bus/test-bus-zero-copy.c
2574 test_bus_zero_copy_LDADD = \
2575 libsystemd-internal.la \
2576 libsystemd-shared.la \
2577 libsystemd-dump.la \
2578 libsystemd-capability.la \
2581 test_bus_zero_copy_CFLAGS = \
2585 test_bus_introspect_SOURCES = \
2586 src/libsystemd/sd-bus/test-bus-introspect.c
2588 test_bus_introspect_LDADD = \
2589 libsystemd-internal.la \
2590 libsystemd-shared.la
2592 test_event_SOURCES = \
2593 src/libsystemd/sd-event/test-event.c
2595 test_event_LDADD = \
2596 libsystemd-internal.la \
2597 libsystemd-shared.la
2599 test_rtnl_SOURCES = \
2600 src/libsystemd/sd-rtnl/test-rtnl.c
2603 libsystemd-internal.la \
2604 libsystemd-shared.la
2606 test_resolve_SOURCES = \
2607 src/libsystemd/sd-resolve/test-resolve.c
2609 test_resolve_LDADD = \
2610 libsystemd-resolve.la \
2611 libsystemd-internal.la \
2612 libsystemd-shared.la
2614 test_resolve_CFLAGS = \
2619 src/libsystemd/sd-bus/busctl.c
2622 libsystemd-internal.la \
2623 libsystemd-shared.la \
2624 libsystemd-dump.la \
2625 libsystemd-capability.la \
2632 # ------------------------------------------------------------------------------
2633 noinst_LTLIBRARIES += \
2634 libsystemd-network.la
2636 libsystemd_network_la_CFLAGS = \
2640 libsystemd_network_la_SOURCES = \
2641 src/systemd/sd-network.h \
2642 src/systemd/sd-dhcp-client.h \
2643 src/systemd/sd-dhcp-server.h \
2644 src/systemd/sd-dhcp-lease.h \
2645 src/systemd/sd-ipv4ll.h \
2646 src/network/sd-network.c \
2647 src/network/network-util.h \
2648 src/libsystemd-network/sd-dhcp-client.c \
2649 src/libsystemd-network/sd-dhcp-server.c \
2650 src/libsystemd-network/dhcp-network.c \
2651 src/libsystemd-network/dhcp-option.c \
2652 src/libsystemd-network/dhcp-packet.c \
2653 src/libsystemd-network/dhcp-internal.h \
2654 src/libsystemd-network/dhcp-server-internal.h \
2655 src/libsystemd-network/dhcp-protocol.h \
2656 src/libsystemd-network/dhcp-lease-internal.h \
2657 src/libsystemd-network/sd-dhcp-lease.c \
2658 src/libsystemd-network/sd-ipv4ll.c \
2659 src/libsystemd-network/ipv4ll-network.c \
2660 src/libsystemd-network/ipv4ll-packet.c \
2661 src/libsystemd-network/ipv4ll-internal.h \
2662 src/libsystemd-network/network-internal.c \
2663 src/libsystemd-network/network-internal.h \
2664 src/systemd/sd-icmp6-nd.h \
2665 src/systemd/sd-dhcp6-client.h \
2666 src/systemd/sd-dhcp6-lease.h \
2667 src/libsystemd-network/sd-icmp6-nd.c \
2668 src/libsystemd-network/sd-dhcp6-client.c \
2669 src/libsystemd-network/dhcp6-internal.h \
2670 src/libsystemd-network/dhcp6-protocol.h \
2671 src/libsystemd-network/dhcp6-network.c \
2672 src/libsystemd-network/dhcp6-option.c \
2673 src/libsystemd-network/dhcp6-lease-internal.h \
2674 src/libsystemd-network/sd-dhcp6-lease.c
2676 libsystemd_network_la_LIBADD = \
2677 libudev-internal.la \
2678 libsystemd-label.la \
2679 libsystemd-internal.la \
2680 libsystemd-shared.la \
2683 test_dhcp_option_SOURCES = \
2684 src/libsystemd-network/dhcp-protocol.h \
2685 src/libsystemd-network/dhcp-internal.h \
2686 src/libsystemd-network/test-dhcp-option.c
2688 test_dhcp_option_LDADD = \
2689 libsystemd-network.la \
2690 libsystemd-internal.la \
2691 libsystemd-shared.la
2693 test_dhcp_client_SOURCES = \
2694 src/systemd/sd-dhcp-client.h \
2695 src/libsystemd-network/dhcp-protocol.h \
2696 src/libsystemd-network/dhcp-internal.h \
2697 src/libsystemd-network/test-dhcp-client.c
2699 test_dhcp_client_LDADD = \
2700 libsystemd-network.la \
2701 libsystemd-label.la \
2702 libsystemd-internal.la \
2703 libsystemd-shared.la
2705 test_dhcp_server_SOURCES = \
2706 src/libsystemd-network/test-dhcp-server.c
2708 test_dhcp_server_LDADD = \
2709 libsystemd-network.la \
2710 libsystemd-internal.la \
2711 libsystemd-shared.la
2713 test_ipv4ll_SOURCES = \
2714 src/systemd/sd-ipv4ll.h \
2715 src/libsystemd-network/ipv4ll-internal.h \
2716 src/libsystemd-network/test-ipv4ll.c
2718 test_ipv4ll_LDADD = \
2719 libsystemd-network.la \
2720 libsystemd-label.la \
2721 libsystemd-internal.la \
2722 libsystemd-shared.la
2724 test_icmp6_rs_SOURCES = \
2725 src/systemd/sd-dhcp6-client.h \
2726 src/systemd/sd-icmp6-nd.h \
2727 src/libsystemd-network/dhcp6-internal.h \
2728 src/libsystemd-network/test-icmp6-rs.c
2730 test_icmp6_rs_LDADD = \
2731 libsystemd-network.la \
2732 libsystemd-internal.la \
2733 libsystemd-shared.la
2735 test_dhcp6_client_SOURCES = \
2736 src/systemd/sd-dhcp6-client.h \
2737 src/libsystemd-network/dhcp6-internal.h \
2738 src/libsystemd-network/test-dhcp6-client.c
2740 test_dhcp6_client_LDADD = \
2741 libsystemd-network.la \
2742 libsystemd-internal.la \
2743 libsystemd-shared.la
2753 # ------------------------------------------------------------------------------
2763 include_HEADERS += \
2764 src/libudev/libudev.h
2766 lib_LTLIBRARIES += \
2769 libudev_la_SOURCES =\
2770 src/libudev/libudev.sym \
2771 src/libudev/libudev-private.h \
2772 src/libudev/libudev.c \
2773 src/libudev/libudev-list.c \
2774 src/libudev/libudev-util.c \
2775 src/libudev/libudev-device.c \
2776 src/libudev/libudev-enumerate.c \
2777 src/libudev/libudev-monitor.c \
2778 src/libudev/libudev-queue.c \
2779 src/libudev/libudev-hwdb-def.h \
2780 src/libudev/libudev-hwdb.c
2782 libudev_la_CFLAGS = \
2786 libudev_la_LDFLAGS = \
2788 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2789 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2791 libudev_la_LIBADD = \
2792 libsystemd-internal.la \
2793 libsystemd-shared.la
2795 pkgconfiglib_DATA += \
2796 src/libudev/libudev.pc
2799 src/libudev/libudev.pc.in
2802 src/libudev/libudev.pc \
2807 $(AM_V_at)$(MKDIR_P) $(dir $@)
2808 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2811 $(AM_V_at)$(MKDIR_P) $(dir $@)
2812 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2814 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2815 libudev-install-hook:
2816 libname=libudev.so && $(move-to-rootlibdir)
2818 libudev-uninstall-hook:
2819 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2821 INSTALL_EXEC_HOOKS += libudev-install-hook
2822 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2824 # ------------------------------------------------------------------------------
2825 noinst_LTLIBRARIES += \
2828 libudev_internal_la_SOURCES =\
2829 $(libudev_la_SOURCES) \
2830 src/libudev/libudev-device-private.c
2832 libudev_internal_la_CFLAGS = \
2834 -fvisibility=default
2836 # ------------------------------------------------------------------------------
2838 $(sysconfdir)/udev/rules.d \
2839 $(sysconfdir)/udev/hwdb.d
2841 dist_network_DATA = \
2842 network/99-default.link \
2843 network/80-container-host0.network \
2844 network/80-container-ve.network
2846 dist_udevrules_DATA += \
2847 rules/42-usb-hid-pm.rules \
2848 rules/50-udev-default.rules \
2849 rules/60-drm.rules \
2850 rules/60-keyboard.rules \
2851 rules/60-persistent-storage-tape.rules \
2852 rules/60-persistent-serial.rules \
2853 rules/60-persistent-input.rules \
2854 rules/60-persistent-alsa.rules \
2855 rules/60-persistent-storage.rules \
2856 rules/64-btrfs.rules \
2857 rules/75-net-description.rules \
2858 rules/75-tty-description.rules \
2859 rules/78-sound-card.rules \
2860 rules/80-net-setup-link.rules \
2861 rules/95-udev-late.rules
2863 nodist_udevrules_DATA += \
2864 rules/99-systemd.rules
2866 dist_udevhwdb_DATA = \
2867 hwdb/20-pci-vendor-model.hwdb \
2868 hwdb/20-pci-classes.hwdb \
2869 hwdb/20-usb-vendor-model.hwdb \
2870 hwdb/20-usb-classes.hwdb \
2871 hwdb/20-sdio-vendor-model.hwdb \
2872 hwdb/20-sdio-classes.hwdb \
2873 hwdb/20-bluetooth-vendor-product.hwdb \
2874 hwdb/20-acpi-vendor.hwdb \
2876 hwdb/20-net-ifname.hwdb \
2877 hwdb/60-keyboard.hwdb
2879 udevconfdir = $(sysconfdir)/udev
2880 dist_udevconf_DATA = \
2883 sharepkgconfigdir = $(datadir)/pkgconfig
2884 sharepkgconfig_DATA = \
2888 rules/99-systemd.rules.in \
2892 rules/99-systemd.rules \
2896 units/systemd-udevd.service.in \
2897 units/systemd-udev-trigger.service.in \
2898 units/systemd-udev-settle.service.in \
2899 units/systemd-udev-hwdb-update.service.in
2902 units/systemd-udevd.service \
2903 units/systemd-udev-trigger.service \
2904 units/systemd-udev-settle.service \
2905 units/systemd-udev-hwdb-update.service
2907 SOCKETS_TARGET_WANTS += \
2908 systemd-udevd-control.socket \
2909 systemd-udevd-kernel.socket
2911 SYSINIT_TARGET_WANTS += \
2912 systemd-udevd.service \
2913 systemd-udev-trigger.service \
2914 systemd-udev-hwdb-update.service
2916 rootbin_PROGRAMS += \
2919 rootlibexec_PROGRAMS += \
2922 noinst_LTLIBRARIES += \
2925 src/udev/keyboard-keys.txt:
2926 $(AM_V_at)$(MKDIR_P) $(dir $@)
2927 $(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/' > $@
2929 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2930 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2932 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2933 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2935 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2936 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2938 libudev_core_la_SOURCES = \
2940 src/udev/udev-event.c \
2941 src/udev/udev-watch.c \
2942 src/udev/udev-node.c \
2943 src/udev/udev-rules.c \
2944 src/udev/udev-ctrl.c \
2945 src/udev/udev-builtin.c \
2946 src/udev/udev-builtin-btrfs.c \
2947 src/udev/udev-builtin-hwdb.c \
2948 src/udev/udev-builtin-input_id.c \
2949 src/udev/udev-builtin-keyboard.c \
2950 src/udev/udev-builtin-net_id.c \
2951 src/udev/udev-builtin-net_setup_link.c \
2952 src/udev/udev-builtin-path_id.c \
2953 src/udev/udev-builtin-usb_id.c \
2954 src/udev/net/link-config.h \
2955 src/udev/net/link-config.c \
2956 src/udev/net/ethtool-util.h \
2957 src/udev/net/ethtool-util.c
2959 nodist_libudev_core_la_SOURCES = \
2960 src/udev/keyboard-keys-from-name.h \
2961 src/udev/keyboard-keys-to-name.h \
2962 src/udev/net/link-config-gperf.c
2965 $(nodist_libudev_core_la_SOURCES)
2968 src/udev/keyboard-keys-from-name.gperf \
2969 src/udev/keyboard-keys.txt \
2970 src/udev/net/link-config-gperf.c
2973 src/udev/net/link-config-gperf.gperf
2975 libudev_core_la_CFLAGS = \
2980 libudev_core_la_LIBADD = \
2981 libudev-internal.la \
2982 libsystemd-label.la \
2983 libsystemd-internal.la \
2984 libsystemd-network.la \
2985 libsystemd-shared.la \
2989 libudev_core_la_CPPFLAGS = \
2991 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2994 libudev_core_la_SOURCES += \
2995 src/udev/udev-builtin-firmware.c
2997 dist_udevrules_DATA += \
2998 rules/50-firmware.rules
3002 libudev_core_la_SOURCES += \
3003 src/udev/udev-builtin-kmod.c
3005 dist_udevrules_DATA += \
3006 rules/80-drivers.rules
3010 libudev_core_la_SOURCES += \
3011 src/udev/udev-builtin-blkid.c
3015 libudev_core_la_SOURCES += \
3016 src/udev/udev-builtin-uaccess.c \
3017 src/login/logind-acl.c \
3018 src/libsystemd/sd-login/sd-login.c \
3019 src/systemd/sd-login.h
3021 libudev_core_la_LIBADD += \
3025 systemd_udevd_SOURCES = \
3028 systemd_udevd_LDADD = \
3032 src/udev/udevadm.c \
3033 src/udev/udevadm-info.c \
3034 src/udev/udevadm-control.c \
3035 src/udev/udevadm-monitor.c \
3036 src/udev/udevadm-hwdb.c \
3037 src/udev/udevadm-settle.c \
3038 src/udev/udevadm-trigger.c \
3039 src/udev/udevadm-test.c \
3040 src/udev/udevadm-test-builtin.c
3045 # Update hwdb on installation. Do not bother if installing
3046 # in DESTDIR, since this is likely for packaging purposes.
3048 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3050 INSTALL_DATA_HOOKS += \
3054 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3056 # ------------------------------------------------------------------------------
3065 test_libudev_SOURCES = \
3066 src/test/test-libudev.c
3068 test_libudev_LDADD = \
3069 libsystemd-label.la \
3070 libudev-internal.la \
3071 libsystemd-shared.la
3073 test_udev_SOURCES = \
3074 src/test/test-udev.c
3083 test_udev_LDADD += \
3090 # packed sysfs test tree
3092 $(AM_V_at)$(MKDIR_P) $(dir $@)
3093 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3097 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3102 test/rules-test.sh \
3103 test/rule-syntax-check.py
3105 # ------------------------------------------------------------------------------
3107 src/udev/ata_id/ata_id.c
3110 libudev-internal.la \
3111 libsystemd-shared.la
3113 udevlibexec_PROGRAMS += \
3116 # ------------------------------------------------------------------------------
3117 cdrom_id_SOURCES = \
3118 src/udev/cdrom_id/cdrom_id.c
3121 libudev-internal.la \
3122 libsystemd-shared.la
3124 udevlibexec_PROGRAMS += \
3127 dist_udevrules_DATA += \
3128 rules/60-cdrom_id.rules
3130 # ------------------------------------------------------------------------------
3132 src/udev/collect/collect.c
3135 libudev-internal.la \
3136 libsystemd-shared.la
3138 udevlibexec_PROGRAMS += \
3141 # ------------------------------------------------------------------------------
3143 src/udev/scsi_id/scsi_id.c \
3144 src/udev/scsi_id/scsi_serial.c \
3145 src/udev/scsi_id/scsi.h \
3146 src/udev/scsi_id/scsi_id.h
3149 libudev-internal.la \
3150 libsystemd-shared.la
3152 udevlibexec_PROGRAMS += \
3156 src/udev/scsi_id/README
3158 # ------------------------------------------------------------------------------
3160 src/udev/v4l_id/v4l_id.c
3165 udevlibexec_PROGRAMS += \
3168 dist_udevrules_DATA += \
3169 rules/60-persistent-v4l.rules
3171 # ------------------------------------------------------------------------------
3172 accelerometer_SOURCES = \
3173 src/udev/accelerometer/accelerometer.c
3175 accelerometer_LDADD = \
3176 libudev-internal.la -lm \
3177 libsystemd-shared.la
3179 udevlibexec_PROGRAMS += \
3182 dist_udevrules_DATA += \
3183 rules/61-accelerometer.rules
3185 # ------------------------------------------------------------------------------
3192 libgudev_includedir = \
3193 $(includedir)/gudev-1.0/gudev
3195 libgudev_include_HEADERS = \
3197 src/gudev/gudevenums.h \
3198 src/gudev/gudevenumtypes.h \
3199 src/gudev/gudevtypes.h \
3200 src/gudev/gudevclient.h \
3201 src/gudev/gudevdevice.h \
3202 src/gudev/gudevenumerator.h
3204 lib_LTLIBRARIES += libgudev-1.0.la
3206 pkgconfiglib_DATA += \
3207 src/gudev/gudev-1.0.pc
3210 src/gudev/gudev-1.0.pc
3212 libgudev_1_0_la_SOURCES = \
3213 src/gudev/libgudev-1.0.sym \
3214 src/gudev/gudevenums.h \
3215 src/gudev/gudevenumtypes.h \
3216 src/gudev/gudevenumtypes.h\
3217 src/gudev/gudevtypes.h \
3218 src/gudev/gudevclient.h \
3219 src/gudev/gudevclient.c \
3220 src/gudev/gudevdevice.h \
3221 src/gudev/gudevdevice.c \
3222 src/gudev/gudevenumerator.h \
3223 src/gudev/gudevenumerator.c \
3224 src/gudev/gudevprivate.h
3226 nodist_libgudev_1_0_la_SOURCES = \
3227 src/gudev/gudevmarshal.h \
3228 src/gudev/gudevmarshal.c \
3229 src/gudev/gudevenumtypes.h \
3230 src/gudev/gudevenumtypes.c
3233 $(nodist_libgudev_1_0_la_SOURCES)
3235 libgudev_1_0_la_CPPFLAGS = \
3237 -I$(top_builddir)/src\
3238 -I$(top_srcdir)/src\
3239 -I$(top_builddir)/src/gudev \
3240 -I$(top_srcdir)/src/gudev \
3241 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3242 -D_GUDEV_COMPILATION \
3243 -DG_LOG_DOMAIN=\"GUdev\"
3245 libgudev_1_0_la_CFLAGS = \
3247 -fvisibility=default \
3250 libgudev_1_0_la_LIBADD = \
3254 libgudev_1_0_la_LDFLAGS = \
3256 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3259 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3261 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3262 $(AM_V_at)$(MKDIR_P) $(dir $@)
3263 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3265 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3266 $(AM_V_at)$(MKDIR_P) $(dir $@)
3267 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3268 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3270 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3271 $(AM_V_at)$(MKDIR_P) $(dir $@)
3272 $(AM_V_GEN)glib-mkenums --template $^ > $@
3274 if HAVE_INTROSPECTION
3275 -include $(INTROSPECTION_MAKEFILE)
3277 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3279 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3281 src_gudev_GUdev_1_0_gir_CFLAGS = \
3284 -D_GUDEV_COMPILATION \
3285 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3286 -I$(top_srcdir)/src \
3287 -I$(top_builddir)/src \
3288 -I$(top_srcdir)/src/gudev \
3289 -I$(top_builddir)/src/gudev
3291 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3293 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3294 --pkg-export=gudev-1.0 \
3297 src_gudev_GUdev_1_0_gir_FILES = \
3299 src/gudev/gudevtypes.h \
3300 src/gudev/gudevenums.h \
3301 src/gudev/gudevenumtypes.h \
3302 src/gudev/gudevclient.h \
3303 src/gudev/gudevdevice.h \
3304 src/gudev/gudevenumerator.h \
3305 src/gudev/gudevclient.c \
3306 src/gudev/gudevdevice.c \
3307 src/gudev/gudevenumerator.c
3309 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3310 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3312 girdir = $(datadir)/gir-1.0
3314 src/gudev/GUdev-1.0.gir
3316 typelibsdir = $(libdir)/girepository-1.0
3318 src/gudev/GUdev-1.0.typelib
3320 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3321 endif # HAVE_INTROSPECTION
3323 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3324 libgudev-install-hook:
3325 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3327 libgudev-uninstall-hook:
3328 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3330 INSTALL_EXEC_HOOKS += libgudev-install-hook
3331 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3335 src/gudev/gudev-1.0.pc.in \
3336 src/gudev/gudevmarshal.list \
3337 src/gudev/gudevenumtypes.h.template \
3338 src/gudev/gudevenumtypes.c.template \
3339 src/gudev/gjs-example.js \
3340 src/gudev/seed-example-enum.js \
3341 src/gudev/seed-example.js
3343 # ------------------------------------------------------------------------------
3344 mtd_probe_SOURCES = \
3345 src/udev/mtd_probe/mtd_probe.c \
3346 src/udev/mtd_probe/mtd_probe.h \
3347 src/udev/mtd_probe/probe_smartmedia.c
3349 dist_udevrules_DATA += \
3350 rules/75-probe_mtd.rules
3352 udevlibexec_PROGRAMS += \
3355 # ------------------------------------------------------------------------------
3356 test_id128_SOURCES = \
3357 src/test/test-id128.c
3359 test_id128_LDADD = \
3360 libsystemd-internal.la \
3361 libsystemd-shared.la
3366 # ------------------------------------------------------------------------------
3368 rootlibexec_PROGRAMS += \
3371 systemd_activate_SOURCES = \
3372 src/activate/activate.c
3374 systemd_activate_LDADD = \
3375 libsystemd-label.la \
3376 libsystemd-internal.la \
3377 libsystemd-shared.la
3379 # ------------------------------------------------------------------------------
3380 systemd_journald_SOURCES = \
3381 src/journal/journald.c \
3382 src/journal/journald-server.h
3384 systemd_journald_LDADD = \
3385 libsystemd-journal-core.la \
3386 libsystemd-internal.la \
3387 libsystemd-shared.la
3389 systemd_cat_SOURCES = \
3392 systemd_cat_LDADD = \
3393 libsystemd-journal-core.la
3396 rootlibexec_PROGRAMS += \
3397 systemd-journal-remote
3399 systemd_journal_remote_SOURCES = \
3400 src/journal/journal-remote-parse.h \
3401 src/journal/journal-remote-parse.c \
3402 src/journal/journal-remote-write.h \
3403 src/journal/journal-remote-write.c \
3404 src/journal/journal-remote.c
3406 systemd_journal_remote_LDADD = \
3407 libsystemd-internal.la \
3408 libsystemd-journal-core.la
3410 systemd_journal_remote_SOURCES += \
3411 src/journal/microhttpd-util.h \
3412 src/journal/microhttpd-util.c
3414 systemd_journal_remote_CFLAGS = \
3416 $(MICROHTTPD_CFLAGS)
3418 systemd_journal_remote_LDADD += \
3422 systemd_journal_remote_LDADD += \
3427 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3428 journalctl_CFLAGS = \
3431 journalctl_SOURCES = \
3432 src/journal/journalctl.c
3434 journalctl_LDADD = \
3435 libsystemd-journal-internal.la \
3436 libsystemd-internal.la \
3437 libsystemd-logs.la \
3438 libsystemd-shared.la
3441 journalctl_LDADD += \
3446 journalctl_SOURCES += \
3447 src/journal/journal-qrcode.c \
3448 src/journal/journal-qrcode.h
3450 journalctl_CFLAGS += \
3453 journalctl_LDADD += \
3457 test_journal_SOURCES = \
3458 src/journal/test-journal.c
3460 test_journal_LDADD = \
3461 libsystemd-journal-core.la
3463 test_journal_send_SOURCES = \
3464 src/journal/test-journal-send.c
3466 test_journal_send_LDADD = \
3467 libsystemd-journal-core.la
3469 test_journal_syslog_SOURCES = \
3470 src/journal/test-journal-syslog.c
3472 test_journal_syslog_LDADD = \
3473 libsystemd-journal-core.la
3475 test_journal_match_SOURCES = \
3476 src/journal/test-journal-match.c
3478 test_journal_match_LDADD = \
3479 libsystemd-journal-core.la
3481 test_journal_enum_SOURCES = \
3482 src/journal/test-journal-enum.c
3484 test_journal_enum_LDADD = \
3485 libsystemd-journal-core.la
3487 test_journal_stream_SOURCES = \
3488 src/journal/test-journal-stream.c
3490 test_journal_stream_LDADD = \
3491 libsystemd-journal-core.la
3493 test_journal_flush_SOURCES = \
3494 src/journal/test-journal-flush.c
3496 test_journal_flush_LDADD = \
3497 libsystemd-journal-core.la
3499 test_journal_init_SOURCES = \
3500 src/journal/test-journal-init.c
3502 test_journal_init_LDADD = \
3503 libsystemd-journal-core.la
3505 test_journal_verify_SOURCES = \
3506 src/journal/test-journal-verify.c
3508 test_journal_verify_LDADD = \
3509 libsystemd-journal-core.la
3511 test_journal_interleaving_SOURCES = \
3512 src/journal/test-journal-interleaving.c
3514 test_journal_interleaving_LDADD = \
3515 libsystemd-journal-core.la
3517 test_mmap_cache_SOURCES = \
3518 src/journal/test-mmap-cache.c
3520 test_mmap_cache_LDADD = \
3521 libsystemd-journal-core.la
3523 test_catalog_SOURCES = \
3524 src/journal/test-catalog.c
3526 test_catalog_CPPFLAGS = \
3528 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3530 test_catalog_LDADD = \
3531 libsystemd-journal-core.la
3533 test_compress_SOURCES = \
3534 src/journal/test-compress.c
3536 test_compress_LDADD = \
3537 libsystemd-journal-internal.la \
3538 libsystemd-shared.la
3540 test_compress_benchmark_SOURCES = \
3541 src/journal/test-compress-benchmark.c
3543 test_compress_benchmark_LDADD = \
3544 libsystemd-journal-internal.la \
3545 libsystemd-shared.la
3547 libsystemd_journal_core_la_SOURCES = \
3548 src/journal/journald-kmsg.c \
3549 src/journal/journald-kmsg.h \
3550 src/journal/journald-syslog.c \
3551 src/journal/journald-syslog.h \
3552 src/journal/journald-stream.c \
3553 src/journal/journald-stream.h \
3554 src/journal/journald-server.c \
3555 src/journal/journald-server.h \
3556 src/journal/journald-console.c \
3557 src/journal/journald-console.h \
3558 src/journal/journald-wall.c \
3559 src/journal/journald-wall.h \
3560 src/journal/journald-native.c \
3561 src/journal/journald-native.h \
3562 src/journal/journald-rate-limit.c \
3563 src/journal/journald-rate-limit.h \
3564 src/journal/journal-internal.h
3566 nodist_libsystemd_journal_core_la_SOURCES = \
3567 src/journal/journald-gperf.c
3569 libsystemd_journal_core_la_LIBADD = \
3570 libsystemd-journal-internal.la \
3571 libudev-internal.la \
3572 libsystemd-capability.la \
3573 libsystemd-label.la \
3574 libsystemd-internal.la \
3575 libsystemd-shared.la
3578 libsystemd_journal_core_la_LIBADD += \
3582 noinst_LTLIBRARIES += \
3583 libsystemd-journal-core.la
3585 journal-install-hook:
3586 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3587 -chown 0:0 $(DESTDIR)/var/log/journal
3588 -chmod 755 $(DESTDIR)/var/log/journal
3589 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3590 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3592 journal-uninstall-hook:
3593 -rmdir $(DESTDIR)/var/log/journal/
3595 INSTALL_EXEC_HOOKS += journal-install-hook
3596 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3598 # ------------------------------------------------------------------------------
3599 # Update catalog on installation. Do not bother if installing
3600 # in DESTDIR, since this is likely for packaging purposes.
3601 catalog-update-hook:
3602 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3604 INSTALL_DATA_HOOKS += \
3607 catalog-remove-hook:
3608 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3610 UNINSTALL_DATA_HOOKS += \
3619 test-journal-syslog \
3620 test-journal-match \
3621 test-journal-stream \
3623 test-journal-verify \
3624 test-journal-interleaving \
3625 test-journal-flush \
3631 test-compress-benchmark
3633 pkginclude_HEADERS += \
3634 src/systemd/sd-journal.h \
3635 src/systemd/sd-messages.h \
3636 src/systemd/_sd-common.h
3638 libsystemd_journal_internal_la_SOURCES = \
3639 src/journal/sd-journal.c \
3640 src/systemd/sd-journal.h \
3641 src/systemd/_sd-common.h \
3642 src/journal/journal-file.c \
3643 src/journal/journal-file.h \
3644 src/journal/journal-vacuum.c \
3645 src/journal/journal-vacuum.h \
3646 src/journal/journal-verify.c \
3647 src/journal/journal-verify.h \
3648 src/journal/lookup3.c \
3649 src/journal/lookup3.h \
3650 src/journal/journal-send.c \
3651 src/journal/journal-def.h \
3652 src/journal/compress.h \
3653 src/journal/catalog.c \
3654 src/journal/catalog.h \
3655 src/journal/mmap-cache.c \
3656 src/journal/mmap-cache.h
3658 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3659 libsystemd_journal_internal_la_CFLAGS = \
3662 libsystemd_journal_internal_la_LIBADD =
3664 libsystemd_journal_internal_la_SOURCES += \
3665 src/journal/compress.c
3668 libsystemd_journal_internal_la_CFLAGS += \
3671 libsystemd_journal_internal_la_LIBADD += \
3676 libsystemd_journal_internal_la_LIBADD += \
3681 libsystemd_journal_internal_la_SOURCES += \
3682 src/journal/journal-authenticate.c \
3683 src/journal/journal-authenticate.h \
3684 src/journal/fsprg.c \
3687 libsystemd_journal_internal_la_LIBADD += \
3690 # fsprg.c is a drop-in file using void pointer arithmetic
3691 libsystemd_journal_internal_la_CFLAGS += \
3696 noinst_LTLIBRARIES += \
3697 libsystemd-journal-internal.la
3699 rootlibexec_PROGRAMS += \
3702 rootbin_PROGRAMS += \
3708 dist_systemunit_DATA += \
3709 units/systemd-journald.socket \
3710 units/systemd-journald-dev-log.socket
3712 nodist_systemunit_DATA += \
3713 units/systemd-journald.service \
3714 units/systemd-journal-flush.service \
3715 units/systemd-journal-catalog-update.service
3717 dist_pkgsysconf_DATA += \
3718 src/journal/journald.conf
3720 dist_catalog_DATA = \
3721 catalog/systemd.fr.catalog \
3722 catalog/systemd.ru.catalog \
3723 catalog/systemd.it.catalog \
3724 catalog/systemd.catalog
3726 SOCKETS_TARGET_WANTS += \
3727 systemd-journald.socket \
3728 systemd-journald-dev-log.socket
3730 SYSINIT_TARGET_WANTS += \
3731 systemd-journald.service \
3732 systemd-journal-flush.service \
3733 systemd-journal-catalog-update.service
3736 units/systemd-journald.service.in \
3737 units/systemd-journal-flush.service.in \
3738 units/systemd-journal-catalog-update.service.in \
3739 src/journal/journald-gperf.gperf
3742 src/journal/journald-gperf.c
3744 # ------------------------------------------------------------------------------
3746 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3748 rootlibexec_PROGRAMS += \
3749 systemd-journal-gatewayd
3751 systemd_journal_gatewayd_SOURCES = \
3752 src/journal/journal-gatewayd.c \
3753 src/journal/microhttpd-util.h \
3754 src/journal/microhttpd-util.c
3756 systemd_journal_gatewayd_LDADD = \
3757 libsystemd-logs.la \
3758 libsystemd-journal-internal.la \
3759 libsystemd-internal.la \
3760 libsystemd-shared.la \
3764 systemd_journal_gatewayd_LDADD += \
3768 systemd_journal_gatewayd_CFLAGS = \
3770 $(MICROHTTPD_CFLAGS)
3772 systemd_journal_gatewayd_CPPFLAGS = \
3774 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3776 dist_systemunit_DATA += \
3777 units/systemd-journal-gatewayd.socket
3779 nodist_systemunit_DATA += \
3780 units/systemd-journal-gatewayd.service
3782 dist_gatewayddocumentroot_DATA = \
3783 src/journal/browse.html
3788 units/systemd-journal-gatewayd.service.in
3790 # ------------------------------------------------------------------------------
3792 systemd_socket_proxyd_SOURCES = \
3793 src/socket-proxy/socket-proxyd.c
3795 systemd_socket_proxyd_LDADD = \
3796 libsystemd-logs.la \
3797 libsystemd-internal.la \
3798 libsystemd-journal-internal.la \
3799 libsystemd-shared.la \
3800 libsystemd-resolve.la
3802 # ------------------------------------------------------------------------------
3804 systemd_coredump_SOURCES = \
3805 src/journal/coredump.c \
3806 src/journal/coredump-vacuum.c \
3807 src/journal/coredump-vacuum.h
3809 systemd_coredump_LDADD = \
3810 libsystemd-journal-internal.la \
3811 libsystemd-label.la \
3812 libsystemd-internal.la \
3813 libsystemd-shared.la
3816 systemd_coredump_SOURCES += \
3817 src/journal/stacktrace.c \
3818 src/journal/stacktrace.h
3820 systemd_coredump_LDADD += \
3824 rootlibexec_PROGRAMS += \
3827 dist_pkgsysconf_DATA += \
3828 src/journal/coredump.conf
3831 systemd_coredump_LDADD += \
3835 coredumpctl_SOURCES = \
3836 src/journal/coredumpctl.c
3838 coredumpctl_LDADD = \
3839 libsystemd-journal-internal.la \
3840 libsystemd-internal.la \
3841 libsystemd-shared.la
3847 test-coredump-vacuum
3849 test_coredump_vacuum_SOURCES = \
3850 src/journal/test-coredump-vacuum.c \
3851 src/journal/coredump-vacuum.c \
3852 src/journal/coredump-vacuum.h
3854 test_coredump_vacuum_LDADD = \
3855 libsystemd-internal.la \
3856 libsystemd-shared.la
3858 dist_bashcompletion_DATA += \
3859 shell-completion/bash/coredumpctl
3861 dist_zshcompletion_DATA += \
3862 shell-completion/zsh/_coredumpctl
3864 GENERAL_ALIASES += \
3865 $(bindir)/coredumpctl $(bindir)/systemd-coredumpctl
3868 sysctl.d/50-coredump.conf
3871 sysctl.d/50-coredump.conf
3875 sysctl.d/50-coredump.conf.in
3877 # ------------------------------------------------------------------------------
3879 systemd_binfmt_SOURCES = \
3882 systemd_binfmt_LDADD = \
3883 libsystemd-shared.la
3885 rootlibexec_PROGRAMS += \
3888 dist_systemunit_DATA += \
3889 units/proc-sys-fs-binfmt_misc.automount \
3890 units/proc-sys-fs-binfmt_misc.mount
3892 nodist_systemunit_DATA += \
3893 units/systemd-binfmt.service
3896 $(prefix)/lib/binfmt.d \
3897 $(sysconfdir)/binfmt.d
3899 SYSINIT_TARGET_WANTS += \
3900 systemd-binfmt.service \
3901 proc-sys-fs-binfmt_misc.automount
3906 units/systemd-binfmt.service.in
3908 # ------------------------------------------------------------------------------
3910 systemd_vconsole_setup_SOURCES = \
3911 src/vconsole/vconsole-setup.c
3913 systemd_vconsole_setup_LDADD = \
3914 libsystemd-shared.la
3916 rootlibexec_PROGRAMS += \
3917 systemd-vconsole-setup
3919 nodist_systemunit_DATA += \
3920 units/systemd-vconsole-setup.service
3922 SYSINIT_TARGET_WANTS += \
3923 systemd-vconsole-setup.service
3927 units/systemd-vconsole-setup.service.in
3929 # ------------------------------------------------------------------------------
3931 systemd_readahead_SOURCES = \
3932 src/readahead/readahead.c \
3933 src/readahead/readahead-collect.c \
3934 src/readahead/readahead-replay.c \
3935 src/readahead/readahead-analyze.c \
3936 src/readahead/readahead-common.c \
3937 src/readahead/readahead-common.h
3939 systemd_readahead_LDADD = \
3940 libsystemd-internal.la \
3941 libudev-internal.la \
3942 libsystemd-shared.la
3945 src/readahead/sd-readahead.c \
3946 src/systemd/sd-readahead.h
3948 rootlibexec_PROGRAMS += \
3951 dist_systemunit_DATA += \
3952 units/systemd-readahead-drop.service \
3953 units/systemd-readahead-done.timer
3955 nodist_systemunit_DATA += \
3956 units/systemd-readahead-collect.service \
3957 units/systemd-readahead-replay.service \
3958 units/systemd-readahead-done.service
3963 test_ssd_SOURCES = \
3964 src/readahead/test-ssd.c \
3965 src/readahead/readahead-common.c \
3966 src/readahead/readahead-common.h
3969 libsystemd-internal.la \
3970 libudev-internal.la \
3971 libsystemd-shared.la
3976 units/systemd-readahead-collect.service.in \
3977 units/systemd-readahead-replay.service.in \
3978 units/systemd-readahead-done.service.in
3980 # ------------------------------------------------------------------------------
3982 systemd_bootchart_SOURCES = \
3983 src/bootchart/bootchart.c \
3984 src/bootchart/bootchart.h \
3985 src/bootchart/store.c \
3986 src/bootchart/store.h \
3987 src/bootchart/svg.c \
3990 systemd_bootchart_LDADD = \
3991 libsystemd-journal-internal.la \
3992 libsystemd-shared.la
3994 rootlibexec_PROGRAMS += \
3997 dist_pkgsysconf_DATA += \
3998 src/bootchart/bootchart.conf
4001 # ------------------------------------------------------------------------------
4002 if ENABLE_QUOTACHECK
4003 rootlibexec_PROGRAMS += \
4006 nodist_systemunit_DATA += \
4007 units/systemd-quotacheck.service
4009 systemd_quotacheck_SOURCES = \
4010 src/quotacheck/quotacheck.c
4012 systemd_quotacheck_LDADD = \
4013 libsystemd-shared.la
4017 units/systemd-quotacheck.service.in
4019 nodist_systemunit_DATA += \
4020 units/quotaon.service
4022 # ------------------------------------------------------------------------------
4023 if ENABLE_RANDOMSEED
4024 rootlibexec_PROGRAMS += \
4027 nodist_systemunit_DATA += \
4028 units/systemd-random-seed.service
4030 systemd_random_seed_SOURCES = \
4031 src/random-seed/random-seed.c
4033 systemd_random_seed_LDADD = \
4034 libsystemd-label.la \
4035 libsystemd-shared.la
4037 SYSINIT_TARGET_WANTS += \
4038 systemd-random-seed.service
4043 units/systemd-random-seed.service.in
4045 # ------------------------------------------------------------------------------
4047 rootlibexec_PROGRAMS += \
4050 nodist_systemunit_DATA += \
4051 units/systemd-backlight@.service
4053 systemd_backlight_SOURCES = \
4054 src/backlight/backlight.c
4056 systemd_backlight_LDADD = \
4057 libsystemd-label.la \
4058 libudev-internal.la \
4059 libsystemd-shared.la
4063 units/systemd-backlight@.service.in
4065 # ------------------------------------------------------------------------------
4067 rootlibexec_PROGRAMS += \
4070 nodist_systemunit_DATA += \
4071 units/systemd-rfkill@.service
4073 systemd_rfkill_SOURCES = \
4076 systemd_rfkill_LDADD = \
4077 libsystemd-label.la \
4078 libudev-internal.la \
4079 libsystemd-shared.la
4083 units/systemd-rfkill@.service.in
4085 # ------------------------------------------------------------------------------
4086 if HAVE_LIBCRYPTSETUP
4087 rootlibexec_PROGRAMS += \
4090 systemgenerator_PROGRAMS += \
4091 systemd-cryptsetup-generator
4093 dist_systemunit_DATA += \
4094 units/cryptsetup.target \
4095 units/cryptsetup-pre.target
4097 systemd_cryptsetup_SOURCES = \
4098 src/cryptsetup/cryptsetup.c
4100 systemd_cryptsetup_CFLAGS = \
4102 $(LIBCRYPTSETUP_CFLAGS)
4104 systemd_cryptsetup_LDADD = \
4105 libsystemd-label.la \
4106 libudev-internal.la \
4107 libsystemd-shared.la \
4108 $(LIBCRYPTSETUP_LIBS)
4110 systemd_cryptsetup_generator_SOURCES = \
4111 src/cryptsetup/cryptsetup-generator.c
4113 systemd_cryptsetup_generator_LDADD = \
4114 libsystemd-label.la \
4115 libsystemd-shared.la
4117 SYSINIT_TARGET_WANTS += \
4122 # ------------------------------------------------------------------------------
4124 systemd_hostnamed_SOURCES = \
4125 src/hostname/hostnamed.c
4127 systemd_hostnamed_LDADD = \
4128 libsystemd-label.la \
4129 libsystemd-internal.la \
4130 libsystemd-shared.la
4132 rootlibexec_PROGRAMS += \
4135 nodist_systemunit_DATA += \
4136 units/systemd-hostnamed.service
4138 dist_systemunit_DATA += \
4139 units/org.freedesktop.hostname1.busname
4141 dist_dbuspolicy_DATA += \
4142 src/hostname/org.freedesktop.hostname1.conf
4144 dist_dbussystemservice_DATA += \
4145 src/hostname/org.freedesktop.hostname1.service
4147 polkitpolicy_files += \
4148 src/hostname/org.freedesktop.hostname1.policy
4150 SYSTEM_UNIT_ALIASES += \
4151 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4153 BUSNAMES_TARGET_WANTS += \
4154 org.freedesktop.hostname1.busname
4156 hostnamectl_SOURCES = \
4157 src/hostname/hostnamectl.c
4159 hostnamectl_LDADD = \
4160 libsystemd-internal.la \
4161 libsystemd-shared.la
4166 dist_bashcompletion_DATA += \
4167 shell-completion/bash/hostnamectl
4169 dist_zshcompletion_DATA += \
4170 shell-completion/zsh/_hostnamectl
4174 polkitpolicy_in_files += \
4175 src/hostname/org.freedesktop.hostname1.policy.in
4178 units/systemd-hostnamed.service.in
4180 # ------------------------------------------------------------------------------
4182 dist_systemunit_DATA += \
4183 units/org.freedesktop.systemd1.busname
4185 BUSNAMES_TARGET_WANTS += \
4186 org.freedesktop.systemd1.busname
4189 # ------------------------------------------------------------------------------
4191 systemd_localed_SOURCES = \
4192 src/locale/localed.c
4194 systemd_localed_LDADD = \
4195 libsystemd-label.la \
4196 libsystemd-internal.la \
4197 libsystemd-shared.la
4199 nodist_systemunit_DATA += \
4200 units/systemd-localed.service
4202 dist_systemunit_DATA += \
4203 units/org.freedesktop.locale1.busname
4205 rootlibexec_PROGRAMS += \
4208 dist_dbuspolicy_DATA += \
4209 src/locale/org.freedesktop.locale1.conf
4211 dist_dbussystemservice_DATA += \
4212 src/locale/org.freedesktop.locale1.service
4214 polkitpolicy_files += \
4215 src/locale/org.freedesktop.locale1.policy
4217 SYSTEM_UNIT_ALIASES += \
4218 systemd-localed.service dbus-org.freedesktop.locale1.service
4220 BUSNAMES_TARGET_WANTS += \
4221 org.freedesktop.locale1.busname
4223 dist_pkgdata_DATA += \
4224 src/locale/kbd-model-map
4226 dist_noinst_SCRIPT = \
4227 src/locale/generate-kbd-model-map
4229 update-kbd-model-map: src/locale/generate-kbd-model-map
4230 $PYTHON $< >src/locale/kbd-model-map
4232 localectl_SOURCES = \
4233 src/locale/localectl.c
4236 libsystemd-internal.la \
4237 libsystemd-shared.la
4242 dist_bashcompletion_DATA += \
4243 shell-completion/bash/localectl
4245 dist_zshcompletion_DATA += \
4246 shell-completion/zsh/_localectl
4250 .PHONY: update-kbd-model-map
4252 polkitpolicy_in_files += \
4253 src/locale/org.freedesktop.locale1.policy.in
4256 units/systemd-localed.service.in
4258 # ------------------------------------------------------------------------------
4260 systemd_timedated_SOURCES = \
4261 src/timedate/timedated.c
4263 systemd_timedated_LDADD = \
4264 libsystemd-label.la \
4265 libsystemd-internal.la \
4266 libsystemd-shared.la
4268 rootlibexec_PROGRAMS += \
4271 dist_dbussystemservice_DATA += \
4272 src/timedate/org.freedesktop.timedate1.service
4274 dist_dbuspolicy_DATA += \
4275 src/timedate/org.freedesktop.timedate1.conf
4277 nodist_systemunit_DATA += \
4278 units/systemd-timedated.service
4280 dist_systemunit_DATA += \
4281 units/org.freedesktop.timedate1.busname
4283 polkitpolicy_files += \
4284 src/timedate/org.freedesktop.timedate1.policy
4287 $(prefix)/lib/systemd/ntp-units.d \
4288 $(sysconfdir)/systemd/ntp-units.d
4290 SYSTEM_UNIT_ALIASES += \
4291 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4293 BUSNAMES_TARGET_WANTS += \
4294 org.freedesktop.timedate1.busname
4296 timedatectl_SOURCES = \
4297 src/timedate/timedatectl.c
4299 timedatectl_LDADD = \
4300 libsystemd-internal.la \
4301 libsystemd-shared.la
4306 dist_bashcompletion_DATA += \
4307 shell-completion/bash/timedatectl
4309 dist_zshcompletion_DATA += \
4310 shell-completion/zsh/_timedatectl
4313 polkitpolicy_in_files += \
4314 src/timedate/org.freedesktop.timedate1.policy.in
4317 units/systemd-timedated.service.in
4319 # ------------------------------------------------------------------------------
4321 systemd_timesyncd_SOURCES = \
4322 src/timesync/timesyncd.c \
4323 src/timesync/timesyncd.h
4325 nodist_systemd_timesyncd_SOURCES = \
4326 src/timesync/timesyncd-gperf.c
4329 src/timesync/timesyncd-gperf.gperf
4332 src/timesync/timesyncd-gperf.c
4334 systemd_timesyncd_LDADD = \
4335 libsystemd-resolve.la \
4336 libsystemd-network.la \
4337 libsystemd-label.la \
4338 libsystemd-capability.la \
4339 libsystemd-internal.la \
4340 libsystemd-shared.la \
4343 rootlibexec_PROGRAMS += \
4346 nodist_systemunit_DATA += \
4347 units/systemd-timesyncd.service
4349 GENERAL_ALIASES += \
4350 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-timesyncd.service
4353 units/systemd-timesyncd.service.in
4355 nodist_pkgsysconf_DATA += \
4356 src/timesync/timesyncd.conf
4359 src/timesync/timesyncd.conf.in
4362 src/timesync/timesyncd.conf
4364 dist_ntpunits_DATA = \
4365 src/timesync/90-systemd.list
4369 # ------------------------------------------------------------------------------
4371 libnss_myhostname_la_SOURCES = \
4372 src/nss-myhostname/nss-myhostname.c \
4373 src/nss-myhostname/ifconf.h \
4374 src/nss-myhostname/netlink.c
4376 libnss_myhostname_la_LDFLAGS = \
4384 libnss_myhostname_la_LIBADD = \
4385 libsystemd-shared.la \
4386 libsystemd-internal.la
4388 lib_LTLIBRARIES += \
4389 libnss_myhostname.la
4392 # ------------------------------------------------------------------------------
4394 systemd_machined_SOURCES = \
4395 src/machine/machined.c \
4396 src/machine/machined.h
4398 systemd_machined_LDADD = \
4399 libsystemd-machine-core.la
4401 rootlibexec_PROGRAMS += \
4404 libsystemd_machine_core_la_SOURCES = \
4405 src/machine/machined-dbus.c \
4406 src/machine/machine.c \
4407 src/machine/machine.h \
4408 src/machine/machine-dbus.c
4410 libsystemd_machine_core_la_LIBADD = \
4411 libsystemd-label.la \
4412 libsystemd-internal.la \
4413 libudev-internal.la \
4414 libsystemd-shared.la
4416 noinst_LTLIBRARIES += \
4417 libsystemd-machine-core.la
4419 machinectl_SOURCES = \
4420 src/machine/machinectl.c
4422 machinectl_LDADD = \
4423 libsystemd-internal.la \
4424 libsystemd-shared.la
4426 rootbin_PROGRAMS += \
4429 dist_bashcompletion_DATA += \
4430 shell-completion/bash/machinectl
4432 test_machine_tables_SOURCES = \
4433 src/machine/test-machine-tables.c
4435 test_machine_tables_LDADD = \
4436 libsystemd-machine-core.la
4441 nodist_systemunit_DATA += \
4442 units/systemd-machined.service
4444 dist_systemunit_DATA += \
4445 units/machine.slice \
4446 units/org.freedesktop.machine1.busname
4448 dist_dbussystemservice_DATA += \
4449 src/machine/org.freedesktop.machine1.service
4451 dist_dbuspolicy_DATA += \
4452 src/machine/org.freedesktop.machine1.conf
4454 dist_zshcompletion_DATA += \
4455 shell-completion/zsh/_machinectl \
4456 shell-completion/zsh/_sd_machines
4458 SYSTEM_UNIT_ALIASES += \
4459 systemd-machined.service dbus-org.freedesktop.machine1.service
4461 BUSNAMES_TARGET_WANTS += \
4462 org.freedesktop.machine1.busname
4465 units/systemd-machined.service.in
4469 # ------------------------------------------------------------------------------
4471 systemd_resolved_SOURCES = \
4472 src/resolve/resolved.h \
4473 src/resolve/resolved.c \
4474 src/resolve/resolved-manager.c
4476 systemd_resolved_CFLAGS = \
4480 nodist_systemd_resolved_SOURCES = \
4481 src/resolve/resolved-gperf.c
4484 src/resolve/resolved-gperf.gperf
4487 src/resolve/resolved-gperf.c
4489 systemd_resolved_LDADD = \
4490 libsystemd-capability.la \
4491 libsystemd-network.la \
4492 libsystemd-label.la \
4493 libsystemd-internal.la \
4494 libsystemd-shared.la
4496 rootlibexec_PROGRAMS += \
4499 nodist_systemunit_DATA += \
4500 units/systemd-resolved.service
4503 units/systemd-resolved.service.in
4505 GENERAL_ALIASES += \
4506 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4508 nodist_pkgsysconf_DATA += \
4509 src/resolve/resolved.conf
4512 src/resolve/resolved.conf.in
4515 src/resolve/resolved.conf
4519 # ------------------------------------------------------------------------------
4521 rootlibexec_PROGRAMS += \
4524 systemd_networkd_SOURCES = \
4525 src/network/networkd.c
4527 systemd_networkd_LDADD = \
4528 libsystemd-networkd-core.la \
4529 libsystemd-capability.la
4531 noinst_LTLIBRARIES += \
4532 libsystemd-networkd-core.la
4534 libsystemd_networkd_core_la_CFLAGS = \
4537 libsystemd_networkd_core_la_SOURCES = \
4538 src/libsystemd-network/network-internal.h \
4539 src/network/networkd.h \
4540 src/network/networkd-link.c \
4541 src/network/networkd-netdev.c \
4542 src/network/networkd-tunnel.c \
4543 src/network/networkd-veth.c \
4544 src/network/networkd-vxlan.c \
4545 src/network/networkd-vlan.c \
4546 src/network/networkd-macvlan.c \
4547 src/network/networkd-dummy.c \
4548 src/network/networkd-tuntap.c \
4549 src/network/networkd-network.c \
4550 src/network/networkd-address.c \
4551 src/network/networkd-route.c \
4552 src/network/networkd-manager.c \
4553 src/network/networkd-address-pool.c
4555 nodist_libsystemd_networkd_core_la_SOURCES = \
4556 src/network/networkd-network-gperf.c \
4557 src/network/networkd-netdev-gperf.c
4559 libsystemd_networkd_core_la_LIBADD = \
4560 libudev-internal.la \
4561 libsystemd-internal.la \
4562 libsystemd-network.la \
4563 libsystemd-label.la \
4564 libsystemd-shared.la
4566 rootlibexec_PROGRAMS += \
4567 systemd-networkd-wait-online
4569 systemd_networkd_wait_online_CFLAGS = \
4572 systemd_networkd_wait_online_SOURCES = \
4573 src/libsystemd-network/network-internal.h \
4574 src/network/networkd-wait-online.c \
4575 src/network/networkd-wait-online.h
4577 systemd_networkd_wait_online_LDADD = \
4578 libsystemd-network.la \
4579 libudev-internal.la \
4580 libsystemd-internal.la \
4581 libsystemd-shared.la
4583 test_network_SOURCES = \
4584 src/network/test-network.c
4586 test_network_CFLAGS = \
4589 test_network_LDADD = \
4590 libsystemd-networkd-core.la
4595 nodist_systemunit_DATA += \
4596 units/systemd-networkd.service \
4597 units/systemd-networkd-wait-online.service
4599 GENERAL_ALIASES += \
4600 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4601 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4604 src/network/networkd-network-gperf.gperf \
4605 src/network/networkd-netdev-gperf.gperf \
4606 units/systemd-networkd.service.in \
4607 units/systemd-networkd-wait-online.service.in
4610 src/network/networkd-network-gperf.c \
4611 src/network/networkd-netdev-gperf.c
4614 # ------------------------------------------------------------------------------
4616 systemd_logind_SOURCES = \
4617 src/login/logind.c \
4620 nodist_systemd_logind_SOURCES = \
4621 src/login/logind-gperf.c
4623 systemd_logind_LDADD = \
4624 libsystemd-logind-core.la
4626 libsystemd_logind_core_la_SOURCES = \
4627 src/login/logind-core.c \
4628 src/login/logind-device.c \
4629 src/login/logind-device.h \
4630 src/login/logind-button.c \
4631 src/login/logind-button.h \
4632 src/login/logind-action.c \
4633 src/login/logind-action.h \
4634 src/login/logind-seat.c \
4635 src/login/logind-seat.h \
4636 src/login/logind-session.c \
4637 src/login/logind-session.h \
4638 src/login/logind-session-device.c \
4639 src/login/logind-session-device.h \
4640 src/login/logind-user.c \
4641 src/login/logind-user.h \
4642 src/login/logind-inhibit.c \
4643 src/login/logind-inhibit.h \
4644 src/login/logind-dbus.c \
4645 src/login/logind-session-dbus.c \
4646 src/login/logind-seat-dbus.c \
4647 src/login/logind-user-dbus.c \
4648 src/login/logind-acl.h
4650 libsystemd_logind_core_la_LIBADD = \
4651 libsystemd-label.la \
4652 libsystemd-capability.la \
4653 libsystemd-internal.la \
4654 libudev-internal.la \
4655 libsystemd-shared.la
4658 libsystemd_logind_core_la_SOURCES += \
4659 src/login/logind-acl.c
4661 libsystemd_logind_core_la_LIBADD += \
4665 noinst_LTLIBRARIES += \
4666 libsystemd-logind-core.la
4668 systemd_user_sessions_SOURCES = \
4669 src/login/user-sessions.c
4671 systemd_user_sessions_LDADD = \
4672 libsystemd-shared.la
4674 rootlibexec_PROGRAMS += \
4676 systemd-user-sessions
4678 loginctl_SOURCES = \
4679 src/login/loginctl.c \
4680 src/login/sysfs-show.c
4683 libsystemd-internal.la \
4684 libudev-internal.la \
4685 libsystemd-shared.la
4687 rootbin_PROGRAMS += \
4690 dist_bashcompletion_DATA += \
4691 shell-completion/bash/loginctl
4693 dist_zshcompletion_DATA += \
4694 shell-completion/zsh/_loginctl \
4695 shell-completion/zsh/_systemd-inhibit
4697 systemd_inhibit_SOURCES = \
4700 systemd_inhibit_LDADD = \
4701 libsystemd-internal.la \
4702 libsystemd-shared.la
4704 rootbin_PROGRAMS += \
4707 test_login_SOURCES = \
4708 src/libsystemd/sd-login/test-login.c
4710 test_login_LDADD = \
4711 libsystemd-internal.la \
4712 libsystemd-shared.la
4714 test_login_shared_SOURCES = \
4715 src/login/test-login-shared.c
4717 test_login_shared_LDADD = \
4718 libsystemd-internal.la \
4719 libsystemd-shared.la
4721 test_inhibit_SOURCES = \
4722 src/login/test-inhibit.c
4724 test_inhibit_LDADD = \
4725 libsystemd-internal.la \
4726 libsystemd-shared.la
4728 test_login_tables_SOURCES = \
4729 src/login/test-login-tables.c
4731 test_login_tables_LDADD = \
4732 libsystemd-logind-core.la
4743 pam_systemd_la_SOURCES = \
4744 src/login/pam_systemd.sym \
4745 src/login/pam_systemd.c
4747 pam_systemd_la_CFLAGS = \
4752 pam_systemd_la_LDFLAGS = \
4758 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
4760 pam_systemd_la_LIBADD = \
4761 libsystemd-capability.la \
4762 libsystemd-internal.la \
4763 libsystemd-shared.la \
4766 pamlib_LTLIBRARIES = \
4769 dist_pamconf_DATA = \
4770 src/login/systemd-user
4773 nodist_systemunit_DATA += \
4774 units/systemd-logind.service \
4775 units/systemd-user-sessions.service
4777 dist_systemunit_DATA += \
4779 units/org.freedesktop.login1.busname
4781 dist_dbussystemservice_DATA += \
4782 src/login/org.freedesktop.login1.service
4784 dist_dbuspolicy_DATA += \
4785 src/login/org.freedesktop.login1.conf
4787 dist_pkgsysconf_DATA += \
4788 src/login/logind.conf
4790 polkitpolicy_files += \
4791 src/login/org.freedesktop.login1.policy
4796 MULTI_USER_TARGET_WANTS += \
4797 systemd-logind.service \
4798 systemd-user-sessions.service
4800 SYSTEM_UNIT_ALIASES += \
4801 systemd-logind.service dbus-org.freedesktop.login1.service
4803 BUSNAMES_TARGET_WANTS += \
4804 org.freedesktop.login1.busname
4806 if ENABLE_MULTI_SEAT_X
4808 systemd_multi_seat_x_SOURCES = \
4809 src/login/multi-seat-x.c
4811 systemd_multi_seat_x_LDADD = \
4812 libsystemd-label.la \
4813 libsystemd-shared.la
4815 rootlibexec_PROGRAMS += \
4816 systemd-multi-seat-x
4820 dist_udevrules_DATA += \
4821 src/login/70-uaccess.rules \
4822 src/login/70-power-switch.rules
4824 nodist_udevrules_DATA += \
4825 src/login/71-seat.rules \
4826 src/login/73-seat-late.rules
4829 src/login/logind-gperf.c \
4830 src/login/71-seat.rules \
4831 src/login/73-seat-late.rules
4834 polkitpolicy_in_files += \
4835 src/login/org.freedesktop.login1.policy.in
4838 src/login/logind-gperf.gperf \
4839 src/login/71-seat.rules.in \
4840 src/login/73-seat-late.rules.in \
4841 units/systemd-logind.service.in \
4842 units/systemd-user-sessions.service.in
4844 # ------------------------------------------------------------------------------
4845 if HAVE_PYTHON_DEVEL
4846 pkgpyexec_LTLIBRARIES = \
4853 _journal_la_SOURCES = \
4854 src/python-systemd/_journal.c
4856 _journal_la_CFLAGS = \
4858 -fvisibility=default \
4859 $(PYTHON_DEVEL_CFLAGS)
4861 _journal_la_LDFLAGS = \
4867 _journal_la_LIBADD = \
4868 $(PYTHON_DEVEL_LIBS) \
4871 id128_la_SOURCES = \
4872 src/python-systemd/id128.c \
4873 src/python-systemd/pyutil.c \
4874 src/python-systemd/pyutil.h
4876 nodist_id128_la_SOURCES = \
4877 src/python-systemd/id128-constants.h
4881 -fvisibility=default \
4882 $(PYTHON_DEVEL_CFLAGS) \
4883 -I$(top_builddir)/src/python-systemd
4885 id128_la_LDFLAGS = \
4892 $(PYTHON_DEVEL_LIBS) \
4893 libsystemd-shared.la \
4896 _daemon_la_SOURCES = \
4897 src/python-systemd/_daemon.c \
4898 src/python-systemd/pyutil.c \
4899 src/python-systemd/pyutil.h
4901 _daemon_la_CFLAGS = \
4903 -fvisibility=default \
4904 $(PYTHON_DEVEL_CFLAGS) \
4905 -I$(top_builddir)/src/python-systemd
4907 _daemon_la_LDFLAGS = \
4913 _daemon_la_LIBADD = \
4914 $(PYTHON_DEVEL_LIBS) \
4915 libsystemd-shared.la \
4918 _reader_la_SOURCES = \
4919 src/python-systemd/_reader.c \
4920 src/python-systemd/pyutil.c \
4921 src/python-systemd/pyutil.h
4923 _reader_la_CFLAGS = \
4925 -fvisibility=default \
4926 $(PYTHON_DEVEL_CFLAGS)
4928 _reader_la_LDFLAGS = \
4934 _reader_la_LIBADD = \
4935 $(PYTHON_DEVEL_LIBS) \
4936 libsystemd-shared.la \
4939 login_la_SOURCES = \
4940 src/python-systemd/login.c \
4941 src/python-systemd/pyutil.c \
4942 src/python-systemd/pyutil.h
4946 -fvisibility=default \
4947 $(PYTHON_DEVEL_CFLAGS)
4949 login_la_LDFLAGS = \
4956 $(PYTHON_DEVEL_LIBS) \
4957 libsystemd-shared.la \
4960 dist_pkgpyexec_PYTHON = \
4961 src/python-systemd/journal.py \
4962 src/python-systemd/daemon.py \
4963 src/python-systemd/__init__.py
4965 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4966 $(AM_V_at)$(MKDIR_P) $(dir $@)
4967 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4970 src/python-systemd/id128-constants.h
4972 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4974 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4975 $(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/
4976 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4979 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4980 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4983 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4984 $(MAKE) DESTDIR="$$dir" install && \
4985 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4990 CLEAN_LOCAL_HOOKS += clean-sphinx
4992 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4995 -rm -rf docs/html/python-systemd/
4997 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4999 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5000 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5002 # ------------------------------------------------------------------------------
5003 if ENABLE_COMPAT_LIBS
5005 src/compat-libs/linkwarning.h
5007 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5008 $(AM_V_at)$(MKDIR_P) $(dir $@)
5009 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5012 libsystemd-journal.c \
5013 libsystemd-login.c \
5014 libsystemd-id128.c \
5017 libsystemd_journal_la_SOURCES = \
5018 libsystemd-journal.c \
5019 src/compat-libs/libsystemd-journal.sym
5021 libsystemd_journal_la_CPPFLAGS = \
5023 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5025 libsystemd_journal_la_LDFLAGS = \
5027 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5028 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5030 libsystemd_journal_la_LIBADD = \
5031 libsystemd-journal-internal.la \
5032 libsystemd-internal.la \
5033 libsystemd-shared.la
5035 libsystemd_login_la_SOURCES = \
5036 libsystemd-login.c \
5037 src/compat-libs/libsystemd-login.sym
5039 libsystemd_login_la_CPPFLAGS = \
5041 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5043 libsystemd_login_la_LDFLAGS = \
5045 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5046 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5048 libsystemd_login_la_LIBADD = \
5049 libsystemd-internal.la \
5050 libsystemd-shared.la
5052 libsystemd_id128_la_SOURCES = \
5053 libsystemd-id128.c \
5054 src/compat-libs/libsystemd-id128.sym
5056 libsystemd_id128_la_CPPFLAGS = \
5058 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5060 libsystemd_id128_la_LDFLAGS = \
5062 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5063 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5065 libsystemd_id128_la_LIBADD = \
5066 libsystemd-internal.la \
5067 libsystemd-shared.la
5069 libsystemd_daemon_la_SOURCES = \
5070 libsystemd-daemon.c \
5071 src/compat-libs/libsystemd-daemon.sym
5073 libsystemd_daemon_la_CPPFLAGS = \
5075 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5077 libsystemd_daemon_la_LDFLAGS = \
5079 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5080 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5082 libsystemd_daemon_la_LIBADD = \
5083 libsystemd-internal.la \
5084 libsystemd-shared.la
5086 lib_LTLIBRARIES += \
5087 libsystemd-journal.la \
5088 libsystemd-login.la \
5089 libsystemd-id128.la \
5090 libsystemd-daemon.la
5092 pkgconfiglib_DATA += \
5093 src/compat-libs/libsystemd-journal.pc \
5094 src/compat-libs/libsystemd-login.pc \
5095 src/compat-libs/libsystemd-id128.pc \
5096 src/compat-libs/libsystemd-daemon.pc
5098 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5099 compat-lib-install-hook:
5100 libname=libsystemd-login.so && $(move-to-rootlibdir)
5101 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5102 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5103 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5105 compat-lib-uninstall-hook:
5106 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5107 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5108 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5109 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5111 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5112 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5116 src/compat-libs/libsystemd-journal.pc.in \
5117 src/compat-libs/libsystemd-login.pc.in \
5118 src/compat-libs/libsystemd-id128.pc.in \
5119 src/compat-libs/libsystemd-daemon.pc.in
5121 # ------------------------------------------------------------------------------
5123 '|rootlibexecdir=$(rootlibexecdir)|' \
5124 '|rootbindir=$(rootbindir)|' \
5125 '|bindir=$(bindir)|' \
5126 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5127 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5128 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5129 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5130 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5131 '|pkgdatadir=$(pkgdatadir)|' \
5132 '|systemunitdir=$(systemunitdir)|' \
5133 '|userunitdir=$(userunitdir)|' \
5134 '|systempresetdir=$(systempresetdir)|' \
5135 '|userpresetdir=$(userpresetdir)|' \
5136 '|udevhwdbdir=$(udevhwdbdir)|' \
5137 '|udevrulesdir=$(udevrulesdir)|' \
5138 '|catalogdir=$(catalogdir)|' \
5139 '|tmpfilesdir=$(tmpfilesdir)|' \
5140 '|sysusersdir=$(sysusersdir)|' \
5141 '|sysctldir=$(sysctldir)|' \
5142 '|systemgeneratordir=$(systemgeneratordir)|' \
5143 '|usergeneratordir=$(usergeneratordir)|' \
5144 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5145 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5146 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5147 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5148 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5149 '|prefix=$(prefix)|' \
5150 '|exec_prefix=$(exec_prefix)|' \
5151 '|libdir=$(libdir)|' \
5152 '|includedir=$(includedir)|' \
5153 '|VERSION=$(VERSION)|' \
5154 '|rootprefix=$(rootprefix)|' \
5155 '|udevlibexecdir=$(udevlibexecdir)|' \
5156 '|SUSHELL=$(SUSHELL)|' \
5157 '|DEBUGTTY=$(DEBUGTTY)|' \
5160 '|MKDIR_P=$(MKDIR_P)|' \
5161 '|QUOTAON=$(QUOTAON)|' \
5162 '|QUOTACHECK=$(QUOTACHECK)|' \
5163 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5164 '|VARLOGDIR=$(varlogdir)|' \
5165 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5166 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5167 '|PYTHON=$(PYTHON)|' \
5168 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5169 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5170 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5171 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5172 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5173 '|TTY_GID=$(TTY_GID)|' \
5174 '|systemsleepdir=$(systemsleepdir)|' \
5175 '|systemshutdowndir=$(systemshutdowndir)|' \
5176 '|binfmtdir=$(binfmtdir)|' \
5177 '|modulesloaddir=$(modulesloaddir)|'
5180 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5181 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5190 sysctl.d/%: sysctl.d/%.in
5196 src/core/macros.%: src/core/macros.%.in
5199 src/%.policy.in: src/%.policy.in.in
5210 $(AM_V_GEN)chmod +x $@
5212 src/%.c: src/%.gperf
5213 $(AM_V_at)$(MKDIR_P) $(dir $@)
5214 $(AM_V_GPERF)$(GPERF) < $< > $@
5217 $(AM_V_at)$(MKDIR_P) $(dir $@)
5218 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5221 $(AM_V_at)$(MKDIR_P) $(dir $@)
5222 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5224 units/user/%: units/%.m4
5225 $(AM_V_at)$(MKDIR_P) $(dir $@)
5226 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5229 dist_polkitpolicy_DATA = \
5230 $(polkitpolicy_files) \
5231 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5235 $(polkitpolicy_in_files) \
5236 $(polkitpolicy_in_in_files)
5239 $(nodist_systemunit_DATA) \
5240 $(nodist_userunit_DATA) \
5241 $(pkgconfigdata_DATA) \
5242 $(pkgconfiglib_DATA) \
5243 $(nodist_polkitpolicy_DATA)
5245 # ------------------------------------------------------------------------------
5247 man/custom-entities.ent: configure.ac
5248 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5249 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5250 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5254 man/custom-entities.ent
5259 --stringparam man.output.quietly 1 \
5260 --stringparam funcsynopsis.style ansi \
5261 --stringparam man.authors.section.enabled 0 \
5262 --stringparam man.copyright.section.enabled 0 \
5263 --stringparam systemd.version $(VERSION) \
5264 --path '$(builddir)/man:$(srcdir)/man'
5266 XSLTPROC_PROCESS_MAN = \
5267 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5269 XSLTPROC_PROCESS_HTML = \
5270 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5272 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5273 $(XSLTPROC_PROCESS_MAN)
5275 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5276 $(XSLTPROC_PROCESS_MAN)
5278 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5279 $(XSLTPROC_PROCESS_MAN)
5281 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5282 $(XSLTPROC_PROCESS_MAN)
5284 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5285 $(XSLTPROC_PROCESS_MAN)
5287 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5288 $(XSLTPROC_PROCESS_HTML)
5291 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5297 man/custom-html.xsl \
5300 # ------------------------------------------------------------------------------
5303 docs/sysvinit/README
5308 docs/sysvinit/README: docs/sysvinit/README.in
5311 docs/var-log/README: docs/var-log/README.in
5315 docs/sysvinit/README \
5320 docs/sysvinit/README.in \
5321 docs/var-log/README.in
5323 SOCKETS_TARGET_WANTS += \
5324 systemd-initctl.socket \
5325 systemd-shutdownd.socket
5328 RUNLEVEL1_TARGET_WANTS += \
5329 systemd-update-utmp-runlevel.service
5330 RUNLEVEL2_TARGET_WANTS += \
5331 systemd-update-utmp-runlevel.service
5332 RUNLEVEL3_TARGET_WANTS += \
5333 systemd-update-utmp-runlevel.service
5334 RUNLEVEL4_TARGET_WANTS += \
5335 systemd-update-utmp-runlevel.service
5336 RUNLEVEL5_TARGET_WANTS += \
5337 systemd-update-utmp-runlevel.service
5340 SYSINIT_TARGET_WANTS += \
5341 systemd-update-utmp.service \
5342 systemd-update-done.service \
5345 LOCAL_FS_TARGET_WANTS += \
5346 systemd-remount-fs.service \
5349 MULTI_USER_TARGET_WANTS += \
5351 systemd-ask-password-wall.path
5353 SYSINIT_TARGET_WANTS += \
5354 dev-hugepages.mount \
5356 sys-kernel-config.mount \
5357 sys-kernel-debug.mount \
5358 sys-fs-fuse-connections.mount \
5359 systemd-sysctl.service \
5360 systemd-ask-password-console.path
5363 SYSTEM_UNIT_ALIASES += \
5364 poweroff.target runlevel0.target \
5365 rescue.target runlevel1.target \
5366 multi-user.target runlevel2.target \
5367 multi-user.target runlevel3.target \
5368 multi-user.target runlevel4.target \
5369 graphical.target runlevel5.target \
5370 reboot.target runlevel6.target
5373 SYSTEM_UNIT_ALIASES += \
5374 graphical.target default.target \
5375 reboot.target ctrl-alt-del.target \
5376 getty@.service autovt@.service
5378 USER_UNIT_ALIASES += \
5379 $(systemunitdir)/shutdown.target shutdown.target \
5380 $(systemunitdir)/sockets.target sockets.target \
5381 $(systemunitdir)/busnames.target busnames.target \
5382 $(systemunitdir)/timers.target timers.target \
5383 $(systemunitdir)/paths.target paths.target \
5384 $(systemunitdir)/bluetooth.target bluetooth.target \
5385 $(systemunitdir)/printer.target printer.target \
5386 $(systemunitdir)/sound.target sound.target \
5387 $(systemunitdir)/smartcard.target smartcard.target
5389 GENERAL_ALIASES += \
5390 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5391 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5392 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5393 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5397 $(systemunitdir)/runlevel1.target.wants \
5398 $(systemunitdir)/runlevel2.target.wants \
5399 $(systemunitdir)/runlevel3.target.wants \
5400 $(systemunitdir)/runlevel4.target.wants \
5401 $(systemunitdir)/runlevel5.target.wants
5405 $(prefix)/lib/modules-load.d \
5406 $(sysconfdir)/modules-load.d \
5407 $(prefix)/lib/systemd/network \
5408 $(sysconfdir)/systemd/network \
5409 $(prefix)/lib/sysctl.d \
5410 $(sysconfdir)/sysctl.d \
5411 $(prefix)/lib/kernel/install.d \
5412 $(sysconfdir)/kernel/install.d \
5413 $(systemshutdowndir) \
5415 $(systemgeneratordir) \
5416 $(usergeneratordir) \
5419 $(pkgsysconfdir)/system \
5420 $(pkgsysconfdir)/system/multi-user.target.wants \
5421 $(pkgsysconfdir)/system/getty.target.wants \
5422 $(pkgsysconfdir)/user \
5423 $(dbussessionservicedir) \
5424 $(sysconfdir)/xdg/systemd
5426 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5428 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5430 install-data-hook: $(INSTALL_DATA_HOOKS)
5432 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5434 clean-local: $(CLEAN_LOCAL_HOOKS)
5435 rm -rf $(abs_srcdir)/install-tree
5436 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5437 $(abs_srcdir)/hwdb/iab.txt
5439 DISTCHECK_CONFIGURE_FLAGS = \
5440 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5441 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5442 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5443 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5444 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5445 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5446 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5447 --with-rootprefix=$$dc_install_base \
5448 --disable-split-usr \
5450 --enable-compat-libs
5453 DISTCHECK_CONFIGURE_FLAGS += \
5454 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5455 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5457 DISTCHECK_CONFIGURE_FLAGS += \
5458 --with-sysvinit-path= \
5459 --with-sysvrcnd-path=
5463 DISTCHECK_CONFIGURE_FLAGS += \
5468 DISTCHECK_CONFIGURE_FLAGS += \
5473 # Require python when making dist
5475 .PHONY: dist-check-python
5478 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
5482 dist-check-compat-libs:
5483 if !ENABLE_COMPAT_LIBS
5484 @echo "*** compat-libs must be enabled in order to make dist"
5488 dist: dist-check-python dist-check-compat-libs
5490 # check "broken" platforms limited toolchains for link breakage before we release
5493 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5497 ( cd $(top_srcdir)/hwdb && \
5498 wget -N http://www.linux-usb.org/usb.ids \
5499 http://pci-ids.ucw.cz/v2.2/pci.ids \
5500 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5501 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5504 .PHONY: kdbus-update
5506 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5507 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5511 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5513 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5515 upload: all check dist
5516 scp systemd-$(VERSION).tar.xz $(www_target)
5519 doc-sync: all destdir-sphinx
5520 gtkdoc-rebase --html-dir=docs/libudev/html --online
5521 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5522 gtkdoc-rebase --html-dir=docs/gudev/html --online
5523 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5524 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5525 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5529 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5530 scp man/*.html tango:public/systemd-man/
5532 .PHONY: install-tree
5534 rm -rf $(abs_srcdir)/install-tree
5535 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5536 tree $(abs_srcdir)/install-tree
5538 # Let's run all tests of the test suite, but under valgrind. Let's
5539 # exclude the one perl script we have in there
5540 .PHONY: valgrind-tests
5541 valgrind-tests: $(TESTS)
5542 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5543 if file $$f | grep -q shell; then \
5544 echo -e "$${x}Skipping non-binary $$f"; else \
5545 echo -e "$${x}Running $$f"; \
5546 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5551 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5553 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5554 $(AM_V_GEN)cat $^ > $@
5556 .PHONY: check-api-docs
5557 check-api-docs: exported man
5558 $(AM_V_GEN)for symbol in `cat exported` ; do \
5559 if test -f $(builddir)/man/$$symbol.html ; then \
5560 echo " Symbol $$symbol() is documented." ; \
5562 echo "‣ Symbol $$symbol() lacks documentation." ; \
5566 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5567 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5569 undefined defined: $(ALL_OBJECTS)
5570 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5571 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5572 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5578 .PHONY: check-api-unused
5579 check-api-unused: defined undefined exported
5580 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5582 .PHONY: check-includes
5583 check-includes: $(top_srcdir)/tools/check-includes.pl
5584 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5585 | xargs $(top_srcdir)/tools/check-includes.pl
5588 $(top_srcdir)/tools/check-includes.pl
5590 # Stupid test that everything purported to be exported really is
5591 define generate-sym-test
5592 $(AM_V_at)$(MKDIR_P) $(dir $@)
5593 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5594 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5595 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5596 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5597 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5598 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5599 $(AM_V_at)printf 'return 0; }\n' >> $@
5602 test-libsystemd-sym.c: \
5603 $(top_builddir)/src/libsystemd/libsystemd.sym \
5604 src/systemd/sd-journal.h \
5605 src/systemd/sd-daemon.h \
5606 src/systemd/sd-login.h \
5607 src/systemd/sd-bus.h \
5608 src/systemd/sd-utf8.h \
5609 src/systemd/sd-resolve.h
5610 $(generate-sym-test)
5612 test-libudev-sym.c: \
5613 src/libudev/libudev.sym \
5615 $(generate-sym-test)
5617 test_libsystemd_sym_SOURCES = \
5618 test-libsystemd-sym.c
5619 test_libsystemd_sym_LDADD = \
5622 test_libudev_sym_SOURCES = \
5624 test_libudev_sym_CFLAGS = \
5626 -Wno-deprecated-declarations
5627 test_libudev_sym_LDADD = \
5631 $(test_libsystemd_sym_SOURCES) \
5632 $(test_libudev_sym_SOURCES)
5635 test-libsystemd-sym \
5640 cppcheck --enable=all -q $(top_srcdir)
5642 # Used to extract compile flags for YCM.
5647 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u