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
110 # And these are the special ones for /
111 rootprefix=@rootprefix@
112 rootbindir=$(rootprefix)/bin
113 rootlibexecdir=$(rootprefix)/lib/systemd
115 CLEANFILES = $(BUILT_SOURCES)
120 UNINSTALL_EXEC_HOOKS =
122 UNINSTALL_DATA_HOOKS =
123 DISTCLEAN_LOCAL_HOOKS =
131 polkitpolicy_in_in_files =
132 polkitpolicy_in_files =
134 dist_udevrules_DATA =
135 nodist_udevrules_DATA =
136 nodist_pkgsysconf_DATA =
137 dist_pkgsysconf_DATA =
139 dist_dbuspolicy_DATA =
140 dist_dbussystemservice_DATA =
146 noinst_PROGRAMS = $(manual_tests) $(tests)
152 udevlibexec_PROGRAMS =
154 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
155 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
156 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
159 -include $(top_builddir)/config.h \
160 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
161 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
162 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
163 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
164 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
165 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
166 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
167 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
168 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
169 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
170 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
171 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
172 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
173 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
174 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
175 -DROOTPREFIX=\"$(rootprefix)\" \
176 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
177 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
178 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
179 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
180 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
181 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
182 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
183 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
184 -DX_SERVER=\"$(bindir)/X\" \
185 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
186 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
187 -DQUOTACHECK=\"$(QUOTACHECK)\" \
188 -DKEXEC=\"$(KEXEC)\" \
189 -DLIBDIR=\"$(libdir)\" \
190 -DROOTLIBDIR=\"$(rootlibdir)\" \
191 -I $(top_srcdir)/src \
192 -I $(top_builddir)/src/shared \
193 -I $(top_srcdir)/src/shared \
194 -I $(top_srcdir)/src/network \
195 -I $(top_srcdir)/src/login \
196 -I $(top_srcdir)/src/journal \
197 -I $(top_srcdir)/src/timedate \
198 -I $(top_srcdir)/src/timesync \
199 -I $(top_srcdir)/src/resolve \
200 -I $(top_srcdir)/src/systemd \
201 -I $(top_builddir)/src/core \
202 -I $(top_srcdir)/src/core \
203 -I $(top_srcdir)/src/libudev \
204 -I $(top_srcdir)/src/udev \
205 -I $(top_srcdir)/src/udev/net \
206 -I $(top_builddir)/src/udev \
207 -I $(top_srcdir)/src/libsystemd/sd-bus \
208 -I $(top_srcdir)/src/libsystemd/sd-event \
209 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
210 -I $(top_srcdir)/src/libsystemd-network \
213 AM_CFLAGS = $(OUR_CFLAGS)
214 AM_LDFLAGS = $(OUR_LDFLAGS)
216 # ------------------------------------------------------------------------------
217 define move-to-rootlibdir
218 if test "$(libdir)" != "$(rootlibdir)"; then \
219 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
220 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
221 rm -f $(DESTDIR)$(libdir)/$$libname && \
222 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
223 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
229 RUNLEVEL1_TARGET_WANTS =
230 RUNLEVEL2_TARGET_WANTS =
231 RUNLEVEL3_TARGET_WANTS =
232 RUNLEVEL4_TARGET_WANTS =
233 RUNLEVEL5_TARGET_WANTS =
234 SHUTDOWN_TARGET_WANTS =
235 LOCAL_FS_TARGET_WANTS =
236 MULTI_USER_TARGET_WANTS =
237 SYSINIT_TARGET_WANTS =
238 SOCKETS_TARGET_WANTS =
239 BUSNAMES_TARGET_WANTS =
240 TIMERS_TARGET_WANTS =
241 USER_SOCKETS_TARGET_WANTS =
242 USER_BUSNAMES_TARGET_WANTS =
244 SYSTEM_UNIT_ALIASES =
248 install-target-wants-hook:
249 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
254 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
255 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
256 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
257 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
258 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
259 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
260 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
261 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
263 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
266 [ -z "$$what" ] || ( \
267 dir=$(DESTDIR)$$dir/$$wants.wants && \
268 $(MKDIR_P) -m 0755 $$dir && \
271 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
274 install-directories-hook:
275 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
277 install-aliases-hook:
278 set -- $(SYSTEM_UNIT_ALIASES) && \
279 dir=$(systemunitdir) && $(install-aliases)
280 set -- $(USER_UNIT_ALIASES) && \
281 dir=$(userunitdir) && $(install-relative-aliases)
282 set -- $(GENERAL_ALIASES) && \
283 dir= && $(install-relative-aliases)
285 define install-aliases
286 while [ -n "$$1" ]; do \
287 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
288 rm -f $(DESTDIR)$$dir/$$2 && \
289 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
290 shift 2 || exit $$?; \
294 define install-relative-aliases
295 while [ -n "$$1" ]; do \
296 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
297 rm -f $(DESTDIR)$$dir/$$2 && \
298 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
299 shift 2 || exit $$?; \
303 install-touch-usr-hook:
304 touch -c $(DESTDIR)/$(prefix)
306 INSTALL_EXEC_HOOKS += \
307 install-target-wants-hook \
308 install-directories-hook \
309 install-aliases-hook \
310 install-touch-usr-hook
312 # ------------------------------------------------------------------------------
313 AM_V_M4 = $(AM_V_M4_$(V))
314 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
315 AM_V_M4_0 = @echo " M4 " $@;
317 AM_V_XSLT = $(AM_V_XSLT_$(V))
318 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
319 AM_V_XSLT_0 = @echo " XSLT " $@;
321 AM_V_GPERF = $(AM_V_GPERF_$(V))
322 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
323 AM_V_GPERF_0 = @echo " GPERF " $@;
325 AM_V_LN = $(AM_V_LN_$(V))
326 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
327 AM_V_LN_0 = @echo " LN " $@;
329 AM_V_RM = $(AM_V_RM_$(V))
330 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
331 AM_V_RM_0 = @echo " RM " $@;
333 # ------------------------------------------------------------------------------
337 systemd-ask-password \
338 systemd-tty-ask-password-agent \
339 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/locale-util.c \
731 src/shared/locale-util.h \
732 src/shared/hashmap.c \
733 src/shared/hashmap.h \
734 src/shared/siphash24.c \
735 src/shared/siphash24.h \
742 src/shared/sleep-config.c \
743 src/shared/sleep-config.h \
746 src/shared/env-util.c \
747 src/shared/env-util.h \
748 src/shared/strbuf.c \
749 src/shared/strbuf.h \
750 src/shared/strxcpyx.c \
751 src/shared/strxcpyx.h \
752 src/shared/conf-parser.c \
753 src/shared/conf-parser.h \
756 src/shared/ratelimit.h \
757 src/shared/ratelimit.c \
758 src/shared/exit-status.c \
759 src/shared/exit-status.h \
762 src/shared/gunicode.c \
763 src/shared/gunicode.h \
766 src/shared/socket-util.c \
767 src/shared/socket-util.h \
768 src/shared/in-addr-util.c \
769 src/shared/in-addr-util.h \
770 src/shared/conf-files.c \
771 src/shared/conf-files.h \
772 src/shared/cgroup-util.c \
773 src/shared/cgroup-util.h \
774 src/shared/cgroup-show.c \
775 src/shared/cgroup-show.h \
776 src/shared/unit-name.c \
777 src/shared/unit-name.h \
778 src/shared/utmp-wtmp.c \
779 src/shared/utmp-wtmp.h \
780 src/shared/watchdog.c \
781 src/shared/watchdog.h \
782 src/shared/spawn-ask-password-agent.c \
783 src/shared/spawn-ask-password-agent.h \
784 src/shared/replace-var.c \
785 src/shared/replace-var.h \
786 src/shared/spawn-polkit-agent.c \
787 src/shared/spawn-polkit-agent.h \
788 src/shared/clock-util.c \
789 src/shared/clock-util.h \
790 src/shared/time-dst.c \
791 src/shared/time-dst.h \
792 src/shared/calendarspec.c \
793 src/shared/calendarspec.h \
794 src/shared/fileio.c \
795 src/shared/fileio.h \
796 src/shared/output-mode.h \
797 src/shared/MurmurHash2.c \
798 src/shared/MurmurHash2.h \
799 src/shared/acpi-fpdt.h \
800 src/shared/acpi-fpdt.c \
801 src/shared/boot-timestamps.h \
802 src/shared/boot-timestamps.c \
805 src/shared/smack-util.c \
806 src/shared/smack-util.h \
807 src/shared/apparmor-util.c \
808 src/shared/apparmor-util.h \
809 src/shared/ima-util.c \
810 src/shared/ima-util.h \
811 src/shared/ptyfwd.c \
812 src/shared/ptyfwd.h \
813 src/shared/errno-list.c \
814 src/shared/errno-list.h \
815 src/shared/af-list.c \
816 src/shared/af-list.h \
821 src/shared/condition-util.c \
822 src/shared/condition-util.h \
823 src/shared/bus-label.c \
824 src/shared/bus-label.h \
826 src/shared/clean-ipc.h \
827 src/shared/clean-ipc.c \
828 src/shared/login-shared.c \
829 src/shared/login-shared.h \
834 src/shared/eventfd-util.c \
835 src/shared/eventfd-util.h \
838 src/shared/base-filesystem.c \
839 src/shared/base-filesystem.h \
840 src/shared/nss-util.h
842 nodist_libsystemd_shared_la_SOURCES = \
843 src/shared/errno-from-name.h \
844 src/shared/errno-to-name.h \
845 src/shared/af-from-name.h \
846 src/shared/af-to-name.h
848 libsystemd_shared_la_CFLAGS = \
853 # ------------------------------------------------------------------------------
854 noinst_LTLIBRARIES += \
857 libsystemd_units_la_SOURCES = \
858 src/shared/install.c \
859 src/shared/install.h \
860 src/shared/install-printf.c \
861 src/shared/install-printf.h \
862 src/shared/path-lookup.c \
863 src/shared/path-lookup.h \
864 src/shared/specifier.c \
865 src/shared/specifier.h
867 # ------------------------------------------------------------------------------
868 noinst_LTLIBRARIES += \
871 libsystemd_label_la_SOURCES = \
872 src/shared/socket-label.c \
875 src/shared/selinux-util.c \
876 src/shared/selinux-util.h \
877 src/shared/mkdir-label.c \
878 src/shared/ask-password-api.c \
879 src/shared/ask-password-api.h \
880 src/shared/fileio-label.c \
881 src/shared/fileio-label.h \
882 src/shared/dev-setup.c \
883 src/shared/dev-setup.h \
884 src/shared/dropin.c \
885 src/shared/dropin.h \
886 src/shared/generator.h \
887 src/shared/generator.c
889 libsystemd_label_la_CFLAGS = \
893 libsystemd_label_la_LIBADD = \
896 # ------------------------------------------------------------------------------
899 noinst_LTLIBRARIES += \
900 libsystemd-seccomp.la
902 libsystemd_seccomp_la_SOURCES = \
903 src/shared/seccomp-util.h \
904 src/shared/seccomp-util.c
906 libsystemd_seccomp_la_CFLAGS = \
910 libsystemd_seccomp_la_LIBADD = \
914 # ------------------------------------------------------------------------------
915 noinst_LTLIBRARIES += \
918 libsystemd_logs_la_SOURCES = \
919 src/shared/logs-show.c \
920 src/shared/logs-show.h
922 # ------------------------------------------------------------------------------
923 noinst_LTLIBRARIES += \
924 libsystemd-capability.la
926 libsystemd_capability_la_SOURCES = \
927 src/shared/capability.c \
928 src/shared/capability.h
930 libsystemd_capability_la_CFLAGS = \
934 libsystemd_capability_la_LIBADD = \
937 # ------------------------------------------------------------------------------
939 noinst_LTLIBRARIES += \
942 libsystemd_acl_la_SOURCES = \
943 src/shared/acl-util.c \
944 src/shared/acl-util.h
946 libsystemd_acl_la_CFLAGS = \
950 libsystemd_acl_la_LIBADD = \
954 # ------------------------------------------------------------------------------
955 noinst_LTLIBRARIES += \
958 libsystemd_core_la_SOURCES = \
961 src/core/unit-printf.c \
962 src/core/unit-printf.h \
967 src/core/transaction.c \
968 src/core/transaction.h \
969 src/core/load-fragment.c \
970 src/core/load-fragment.h \
979 src/core/snapshot.c \
980 src/core/snapshot.h \
985 src/core/automount.c \
986 src/core/automount.h \
997 src/core/load-dropin.c \
998 src/core/load-dropin.h \
1000 src/core/execute.h \
1005 src/core/dbus-manager.c \
1006 src/core/dbus-manager.h \
1007 src/core/dbus-unit.c \
1008 src/core/dbus-unit.h \
1009 src/core/dbus-job.c \
1010 src/core/dbus-job.h \
1011 src/core/dbus-service.c \
1012 src/core/dbus-service.h \
1013 src/core/dbus-socket.c \
1014 src/core/dbus-socket.h \
1015 src/core/dbus-busname.c \
1016 src/core/dbus-busname.h \
1017 src/core/dbus-target.c \
1018 src/core/dbus-target.h \
1019 src/core/dbus-snapshot.c \
1020 src/core/dbus-snapshot.h \
1021 src/core/dbus-device.c \
1022 src/core/dbus-device.h \
1023 src/core/dbus-mount.c \
1024 src/core/dbus-mount.h \
1025 src/core/dbus-automount.c \
1026 src/core/dbus-automount.h \
1027 src/core/dbus-swap.c \
1028 src/core/dbus-swap.h \
1029 src/core/dbus-timer.c \
1030 src/core/dbus-timer.h \
1031 src/core/dbus-path.c \
1032 src/core/dbus-path.h \
1033 src/core/dbus-slice.c \
1034 src/core/dbus-slice.h \
1035 src/core/dbus-scope.c \
1036 src/core/dbus-scope.h \
1037 src/core/dbus-execute.c \
1038 src/core/dbus-execute.h \
1039 src/core/dbus-kill.c \
1040 src/core/dbus-kill.h \
1041 src/core/dbus-cgroup.c \
1042 src/core/dbus-cgroup.h \
1045 src/core/selinux-access.c \
1046 src/core/selinux-access.h \
1047 src/core/selinux-setup.c \
1048 src/core/selinux-setup.h \
1049 src/core/smack-setup.c \
1050 src/core/smack-setup.h \
1051 src/core/ima-setup.c \
1052 src/core/ima-setup.h \
1053 src/core/locale-setup.h \
1054 src/core/locale-setup.c \
1055 src/core/hostname-setup.c \
1056 src/core/hostname-setup.h \
1057 src/core/machine-id-setup.c \
1058 src/core/machine-id-setup.h \
1059 src/core/mount-setup.c \
1060 src/core/mount-setup.h \
1061 src/core/loopback-setup.h \
1062 src/core/loopback-setup.c \
1063 src/core/condition.c \
1064 src/core/condition.h \
1065 src/core/namespace.c \
1066 src/core/namespace.h \
1068 src/core/sysfs-show.h \
1069 src/core/switch-root.h \
1070 src/core/switch-root.c \
1071 src/core/killall.h \
1072 src/core/killall.c \
1073 src/core/audit-fd.c \
1074 src/core/audit-fd.h \
1075 src/core/show-status.c \
1076 src/core/show-status.h
1079 libsystemd_core_la_SOURCES += \
1080 src/core/kmod-setup.c \
1081 src/core/kmod-setup.h
1084 nodist_libsystemd_core_la_SOURCES = \
1085 src/core/load-fragment-gperf.c \
1086 src/core/load-fragment-gperf-nulstr.c
1088 libsystemd_core_la_CFLAGS = \
1094 $(APPARMOR_CFLAGS) \
1098 libsystemd_core_la_LIBADD = \
1099 libsystemd-capability.la \
1100 libsystemd-units.la \
1101 libsystemd-label.la \
1102 libudev-internal.la \
1103 libsystemd-shared.la \
1104 libsystemd-internal.la \
1113 libsystemd_core_la_LIBADD += \
1114 libsystemd-seccomp.la
1117 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1118 $(AM_V_at)$(MKDIR_P) $(dir $@)
1119 $(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 ";" }' < $< > $@
1122 src/core/load-fragment-gperf.gperf.m4
1125 src/core/load-fragment-gperf.gperf \
1126 src/core/load-fragment-gperf.c \
1127 src/core/load-fragment-gperf-nulstr.c \
1128 src/shared/errno-list.txt \
1129 src/shared/errno-from-name.gperf \
1130 src/shared/af-list.txt \
1131 src/shared/af-from-name.gperf
1134 src/shared/errno-from-name.h \
1135 src/shared/errno-to-name.h \
1136 src/shared/af-from-name.h \
1137 src/shared/af-to-name.h
1139 src/shared/errno-list.txt:
1140 $(AM_V_at)$(MKDIR_P) $(dir $@)
1141 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1143 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1144 $(AM_V_at)$(MKDIR_P) $(dir $@)
1145 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1147 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1148 $(AM_V_at)$(MKDIR_P) $(dir $@)
1149 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1151 src/shared/errno-to-name.h: src/shared/errno-list.txt
1152 $(AM_V_at)$(MKDIR_P) $(dir $@)
1153 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1155 src/shared/af-list.txt:
1156 $(AM_V_at)$(MKDIR_P) $(dir $@)
1157 $(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; }' > $@
1159 src/shared/af-from-name.gperf: src/shared/af-list.txt
1160 $(AM_V_at)$(MKDIR_P) $(dir $@)
1161 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1163 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1164 $(AM_V_at)$(MKDIR_P) $(dir $@)
1165 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1167 src/shared/af-to-name.h: src/shared/af-list.txt
1168 $(AM_V_at)$(MKDIR_P) $(dir $@)
1169 $(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 "};"}' < $< > $@
1171 # ------------------------------------------------------------------------------
1180 libsystemd-core.la \
1183 dist_pkgsysconf_DATA += \
1184 src/core/system.conf \
1187 dist_dbuspolicy_DATA += \
1188 src/core/org.freedesktop.systemd1.conf
1190 dist_dbussystemservice_DATA += \
1191 src/core/org.freedesktop.systemd1.service
1193 polkitpolicy_in_in_files += \
1194 src/core/org.freedesktop.systemd1.policy.in.in
1196 pkgconfigdata_DATA = \
1199 nodist_rpmmacros_DATA = \
1200 src/core/macros.systemd
1203 src/core/systemd.pc.in \
1204 src/core/macros.systemd.in
1207 src/core/macros.systemd \
1208 src/core/org.freedesktop.systemd1.policy.in
1210 # ------------------------------------------------------------------------------
1249 test-strip-tab-ansi \
1268 test/sched_idle_bad.service \
1269 test/sched_idle_ok.service \
1270 test/sched_rr_bad.service \
1271 test/sched_rr_ok.service \
1272 test/sched_rr_change.service \
1274 test/daughter.service \
1278 src/test/test-helper.h
1280 test_device_nodes_SOURCES = \
1281 src/test/test-device-nodes.c
1283 test_device_nodes_LDADD = \
1284 libsystemd-shared.la
1286 test_engine_SOURCES = \
1287 src/test/test-engine.c
1289 test_engine_CFLAGS = \
1293 test_engine_LDADD = \
1294 libsystemd-core.la \
1297 test_job_type_SOURCES = \
1298 src/test/test-job-type.c
1300 test_job_type_CFLAGS = \
1304 test_job_type_LDADD = \
1305 libsystemd-core.la \
1318 test_loopback_SOURCES = \
1319 src/test/test-loopback.c
1321 test_loopback_LDADD = \
1324 test_hostname_SOURCES = \
1325 src/test/test-hostname.c
1327 test_hostname_LDADD = \
1334 test_boot_timestamp_SOURCES = \
1335 src/test/test-boot-timestamps.c
1337 test_boot_timestamp_LDADD = \
1338 libsystemd-shared.la
1341 test_unit_name_SOURCES = \
1342 src/test/test-unit-name.c
1344 test_unit_name_CFLAGS = \
1348 test_unit_name_LDADD = \
1349 libsystemd-core.la \
1352 test_unit_file_SOURCES = \
1353 src/test/test-unit-file.c
1355 test_unit_file_CFLAGS = \
1359 test_unit_file_LDADD = \
1360 libsystemd-core.la \
1363 test_utf8_SOURCES = \
1364 src/test/test-utf8.c
1367 libsystemd-shared.la
1369 test_capability_SOURCES = \
1370 src/test/test-capability.c
1372 test_capability_LDADD = \
1373 libsystemd-shared.la \
1374 libsystemd-capability.la
1376 test_async_SOURCES = \
1377 src/test/test-async.c
1379 test_async_LDADD = \
1380 libsystemd-shared.la
1382 test_fdset_SOURCES = \
1383 src/test/test-fdset.c
1385 test_fdset_LDADD = \
1388 test_ratelimit_SOURCES = \
1389 src/test/test-ratelimit.c
1391 test_ratelimit_LDADD = \
1392 libsystemd-shared.la
1394 test_util_SOURCES = \
1395 src/test/test-util.c
1400 test_socket_util_SOURCES = \
1401 src/test/test-socket-util.c
1403 test_socket_util_LDADD = \
1406 test_ring_SOURCES = \
1407 src/test/test-ring.c
1412 test_tmpfiles_SOURCES = \
1413 src/test/test-tmpfiles.c
1415 test_tmpfiles_LDADD = \
1416 libsystemd-shared.la
1418 test_namespace_SOURCES = \
1419 src/test/test-namespace.c
1421 test_namespace_LDADD = \
1424 test_hashmap_SOURCES = \
1425 src/test/test-hashmap.c
1427 test_hashmap_LDADD = \
1430 test_xml_SOURCES = \
1434 libsystemd-shared.la
1436 test_list_SOURCES = \
1437 src/test/test-list.c
1442 test_tables_SOURCES = \
1443 src/test/test-tables.c \
1444 src/shared/test-tables.h
1446 test_tables_CFLAGS = \
1450 test_tables_LDADD = \
1451 libsystemd-logs.la \
1452 libsystemd-journal-internal.la \
1453 libsystemd-core.la \
1456 test_prioq_SOURCES = \
1457 src/test/test-prioq.c
1459 test_prioq_LDADD = \
1462 test_fileio_SOURCES = \
1463 src/test/test-fileio.c
1465 test_fileio_LDADD = \
1468 test_time_SOURCES = \
1469 src/test/test-time.c
1474 test_architecture_SOURCES = \
1475 src/test/test-architecture.c
1477 test_architecture_LDADD = \
1478 libsystemd-shared.la
1480 test_log_SOURCES = \
1486 test_ipcrm_SOURCES = \
1487 src/test/test-ipcrm.c
1489 test_ipcrm_LDADD = \
1490 libsystemd-shared.la \
1493 test_rtnl_manual_SOURCES = \
1494 src/test/test-rtnl-manual.c
1496 test_rtnl_manual_CFLAGS = \
1500 test_rtnl_manual_LDADD = \
1501 libsystemd-internal.la \
1502 libsystemd-shared.la \
1505 test_ellipsize_SOURCES = \
1506 src/test/test-ellipsize.c
1508 test_ellipsize_LDADD = \
1511 test_date_SOURCES = \
1512 src/test/test-date.c
1517 test_sleep_SOURCES = \
1518 src/test/test-sleep.c
1520 test_sleep_LDADD = \
1523 test_replace_var_SOURCES = \
1524 src/test/test-replace-var.c
1526 test_replace_var_LDADD = \
1527 libsystemd-shared.la
1529 test_calendarspec_SOURCES = \
1530 src/test/test-calendarspec.c
1532 test_calendarspec_LDADD = \
1533 libsystemd-shared.la
1535 test_strip_tab_ansi_SOURCES = \
1536 src/test/test-strip-tab-ansi.c
1538 test_strip_tab_ansi_LDADD = \
1539 libsystemd-shared.la
1541 test_daemon_SOURCES = \
1542 src/test/test-daemon.c
1544 test_daemon_LDADD = \
1545 libsystemd-internal.la \
1546 libsystemd-shared.la
1548 test_cgroup_SOURCES = \
1549 src/test/test-cgroup.c
1551 test_cgroup_LDADD = \
1552 libsystemd-label.la \
1553 libsystemd-shared.la \
1554 libsystemd-internal.la
1556 test_cgroup_mask_SOURCES = \
1557 src/test/test-cgroup-mask.c
1559 test_cgroup_mask_CPPFLAGS = \
1561 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1563 test_cgroup_mask_CFLAGS = \
1567 test_cgroup_mask_LDADD = \
1568 libsystemd-core.la \
1571 test_cgroup_util_SOURCES = \
1572 src/test/test-cgroup-util.c
1574 test_cgroup_util_LDADD = \
1575 libsystemd-label.la \
1576 libsystemd-internal.la \
1577 libsystemd-shared.la
1579 test_env_replace_SOURCES = \
1580 src/test/test-env-replace.c
1582 test_env_replace_LDADD = \
1583 libsystemd-shared.la
1585 test_strbuf_SOURCES = \
1586 src/test/test-strbuf.c
1588 test_strbuf_LDADD = \
1589 libsystemd-shared.la
1591 test_strv_SOURCES = \
1592 src/test/test-strv.c
1595 libsystemd-units.la \
1596 libsystemd-internal.la \
1597 libsystemd-shared.la
1599 test_path_util_SOURCES = \
1600 src/test/test-path-util.c
1602 test_path_util_LDADD = \
1603 libsystemd-shared.la
1605 test_strxcpyx_SOURCES = \
1606 src/test/test-strxcpyx.c
1608 test_strxcpyx_LDADD = \
1609 libsystemd-shared.la
1611 test_install_SOURCES = \
1612 src/test/test-install.c
1614 test_install_LDADD = \
1615 libsystemd-units.la \
1616 libsystemd-label.la \
1617 libsystemd-shared.la \
1618 libsystemd-internal.la
1620 test_watchdog_SOURCES = \
1621 src/test/test-watchdog.c
1623 test_watchdog_LDADD = \
1624 libsystemd-shared.la
1626 test_sched_prio_SOURCES = \
1627 src/test/test-sched-prio.c
1629 test_sched_prio_CPPFLAGS = \
1631 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1633 test_sched_prio_CFLAGS = \
1637 test_sched_prio_LDADD = \
1638 libsystemd-core.la \
1641 test_conf_files_SOURCES = \
1642 src/test/test-conf-files.c
1644 test_conf_files_LDADD = \
1645 libsystemd-shared.la
1647 # ------------------------------------------------------------------------------
1648 ## .PHONY so it always rebuilds it
1649 .PHONY: coverage lcov-run lcov-report coverage-sync
1651 # run lcov from scratch, always
1656 coverage_dir = coverage
1657 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1660 # reset run coverage tests
1662 @rm -rf $(coverage_dir)
1663 lcov $(coverage_opts) --zerocounters
1666 # generate report based on current coverage data
1668 $(MKDIR_P) $(coverage_dir)
1669 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1670 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1671 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1672 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1674 # lcov doesn't work properly with vpath builds, make sure that bad
1675 # output is not uploaded by mistake.
1676 coverage-sync: coverage
1677 test "$(builddir)" = "$(srcdir)"
1678 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1681 lcov-run lcov-report:
1682 echo "Need to reconfigure with --enable-coverage"
1685 # ------------------------------------------------------------------------------
1686 systemd_analyze_SOURCES = \
1687 src/analyze/analyze.c
1689 systemd_analyze_LDADD = \
1690 libsystemd-internal.la \
1691 libsystemd-shared.la
1693 # ------------------------------------------------------------------------------
1694 systemd_initctl_SOURCES = \
1695 src/initctl/initctl.c
1697 systemd_initctl_LDADD = \
1698 libsystemd-internal.la \
1699 libsystemd-shared.la
1701 # ------------------------------------------------------------------------------
1702 systemd_update_utmp_SOURCES = \
1703 src/update-utmp/update-utmp.c
1705 systemd_update_utmp_CFLAGS = \
1709 systemd_update_utmp_LDADD = \
1710 libsystemd-internal.la \
1711 libsystemd-shared.la \
1714 # ------------------------------------------------------------------------------
1715 systemd_update_done_SOURCES = \
1716 src/update-done/update-done.c
1718 systemd_update_done_LDADD = \
1719 libsystemd-internal.la \
1720 libsystemd-shared.la
1722 # ------------------------------------------------------------------------------
1723 systemd_shutdownd_SOURCES = \
1724 src/shutdownd/shutdownd.c
1726 systemd_shutdownd_LDADD = \
1727 libsystemd-label.la \
1728 libsystemd-internal.la \
1729 libsystemd-shared.la
1732 src/systemd/sd-shutdown.h
1734 # ------------------------------------------------------------------------------
1735 systemd_shutdown_SOURCES = \
1738 src/core/shutdown.c \
1739 src/core/mount-setup.c \
1740 src/core/mount-setup.h \
1741 src/core/killall.h \
1744 systemd_shutdown_LDADD = \
1745 libsystemd-label.la \
1746 libudev-internal.la \
1747 libsystemd-shared.la
1749 # ------------------------------------------------------------------------------
1751 systemd_modules_load_SOURCES = \
1752 src/modules-load/modules-load.c
1754 systemd_modules_load_CFLAGS = \
1758 systemd_modules_load_LDADD = \
1759 libsystemd-shared.la \
1762 rootlibexec_PROGRAMS += \
1763 systemd-modules-load
1765 nodist_systemunit_DATA += \
1766 units/systemd-modules-load.service
1768 SYSINIT_TARGET_WANTS += \
1769 systemd-modules-load.service
1772 nodist_systemunit_DATA += \
1773 units/kmod-static-nodes.service
1775 SYSINIT_TARGET_WANTS += \
1776 kmod-static-nodes.service
1781 units/systemd-modules-load.service.in \
1782 units/kmod-static-nodes.service.in
1784 # ------------------------------------------------------------------------------
1786 systemd_tmpfiles_SOURCES = \
1787 src/tmpfiles/tmpfiles.c
1789 systemd_tmpfiles_LDADD = \
1790 libsystemd-units.la \
1791 libsystemd-label.la \
1792 libsystemd-capability.la \
1793 libsystemd-internal.la \
1794 libsystemd-shared.la
1796 rootbin_PROGRAMS += \
1799 dist_systemunit_DATA += \
1800 units/systemd-tmpfiles-clean.timer
1802 nodist_systemunit_DATA += \
1803 units/systemd-tmpfiles-setup-dev.service \
1804 units/systemd-tmpfiles-setup.service \
1805 units/systemd-tmpfiles-clean.service
1807 dist_tmpfiles_DATA = \
1808 tmpfiles.d/systemd.conf \
1809 tmpfiles.d/systemd-nologin.conf \
1810 tmpfiles.d/tmp.conf \
1811 tmpfiles.d/x11.conf \
1812 tmpfiles.d/var.conf \
1816 dist_tmpfiles_DATA += \
1817 tmpfiles.d/legacy.conf
1820 SYSINIT_TARGET_WANTS += \
1821 systemd-tmpfiles-setup-dev.service \
1822 systemd-tmpfiles-setup.service
1824 dist_zshcompletion_DATA += \
1825 shell-completion/zsh/_systemd-tmpfiles
1827 TIMERS_TARGET_WANTS += \
1828 systemd-tmpfiles-clean.timer
1832 $(sysconfdir)/tmpfiles.d
1836 units/systemd-tmpfiles-setup-dev.service.in \
1837 units/systemd-tmpfiles-setup.service.in \
1838 units/systemd-tmpfiles-clean.service.in
1840 # ------------------------------------------------------------------------------
1842 systemd_sysusers_SOURCES = \
1843 src/sysusers/sysusers.c
1845 systemd_sysusers_LDADD = \
1846 libsystemd-units.la \
1847 libsystemd-label.la \
1848 libsystemd-capability.la \
1849 libsystemd-internal.la \
1850 libsystemd-shared.la
1852 rootbin_PROGRAMS += \
1855 nodist_systemunit_DATA += \
1856 units/systemd-sysusers.service
1858 SYSINIT_TARGET_WANTS += \
1859 systemd-sysusers.service
1861 dist_sysusers_DATA = \
1862 sysusers.d/systemd.conf
1864 nodist_sysusers_DATA = \
1865 sysusers.d/basic.conf
1868 units/systemd-sysusers.service.in \
1869 sysusers.d/basic.conf.in
1872 sysusers.d/basic.conf
1878 # ------------------------------------------------------------------------------
1880 systemd_firstboot_SOURCES = \
1881 src/firstboot/firstboot.c
1883 systemd_firstboot_LDADD = \
1884 libsystemd-units.la \
1885 libsystemd-label.la \
1886 libsystemd-capability.la \
1887 libsystemd-internal.la \
1888 libsystemd-shared.la \
1891 rootbin_PROGRAMS += \
1894 nodist_systemunit_DATA += \
1895 units/systemd-firstboot.service
1898 units/systemd-firstboot.service.in
1900 SYSINIT_TARGET_WANTS += \
1901 systemd-firstboot.service
1905 # ------------------------------------------------------------------------------
1906 systemd_machine_id_setup_SOURCES = \
1907 src/machine-id-setup/machine-id-setup-main.c \
1908 src/core/machine-id-setup.c \
1909 src/core/machine-id-setup.h
1911 systemd_machine_id_setup_LDADD = \
1912 libsystemd-label.la \
1913 libsystemd-internal.la \
1914 libsystemd-shared.la
1916 # ------------------------------------------------------------------------------
1917 systemd_sysctl_SOURCES = \
1920 systemd_sysctl_LDADD = \
1921 libsystemd-shared.la
1923 # ------------------------------------------------------------------------------
1924 systemd_sleep_SOURCES = \
1927 systemd_sleep_LDADD = \
1928 libsystemd-shared.la
1930 # ------------------------------------------------------------------------------
1931 systemd_fsck_SOURCES = \
1934 systemd_fsck_LDADD = \
1935 libsystemd-internal.la \
1936 libudev-internal.la \
1937 libsystemd-shared.la
1939 # ------------------------------------------------------------------------------
1940 systemd_ac_power_SOURCES = \
1941 src/ac-power/ac-power.c
1943 systemd_ac_power_LDADD = \
1944 libudev-internal.la \
1945 libsystemd-shared.la
1947 # ------------------------------------------------------------------------------
1948 systemd_detect_virt_SOURCES = \
1949 src/detect-virt/detect-virt.c
1951 systemd_detect_virt_LDADD = \
1952 libsystemd-shared.la
1954 INSTALL_EXEC_HOOKS += \
1955 systemd-detect-virt-install-hook
1957 # ------------------------------------------------------------------------------
1958 systemd_delta_SOURCES = \
1961 systemd_delta_LDADD = \
1962 libsystemd-shared.la
1964 # ------------------------------------------------------------------------------
1965 systemd_getty_generator_SOURCES = \
1966 src/getty-generator/getty-generator.c
1968 systemd_getty_generator_LDADD = \
1969 libsystemd-label.la \
1970 libsystemd-shared.la
1972 # ------------------------------------------------------------------------------
1973 systemd_debug_generator_SOURCES = \
1974 src/debug-generator/debug-generator.c
1976 systemd_debug_generator_LDADD = \
1977 libsystemd-label.la \
1978 libsystemd-shared.la
1980 # ------------------------------------------------------------------------------
1981 systemd_fstab_generator_SOURCES = \
1982 src/fstab-generator/fstab-generator.c \
1983 src/core/mount-setup.c
1985 systemd_fstab_generator_LDADD = \
1986 libsystemd-label.la \
1987 libsystemd-shared.la
1989 # ------------------------------------------------------------------------------
1990 systemd_system_update_generator_SOURCES = \
1991 src/system-update-generator/system-update-generator.c
1993 systemd_system_update_generator_LDADD = \
1994 libsystemd-label.la \
1995 libsystemd-shared.la
1998 # ------------------------------------------------------------------------------
1999 systemgenerator_PROGRAMS += \
2000 systemd-efi-boot-generator
2002 systemd_efi_boot_generator_SOURCES = \
2003 src/efi-boot-generator/efi-boot-generator.c
2005 systemd_efi_boot_generator_LDADD = \
2006 libsystemd-label.la \
2007 libsystemd-shared.la
2009 # ------------------------------------------------------------------------------
2012 src/boot/boot-loader.h \
2013 src/boot/bootctl.c \
2014 src/boot/boot-loader.c \
2018 libsystemd-shared.la \
2019 libsystemd-internal.la
2024 dist_bashcompletion_DATA += \
2025 shell-completion/bash/bootctl
2027 dist_zshcompletion_DATA += \
2028 shell-completion/zsh/_bootctl
2032 # ------------------------------------------------------------------------------
2034 systemgenerator_PROGRAMS += \
2035 systemd-gpt-auto-generator
2037 systemd_gpt_auto_generator_SOURCES = \
2038 src/gpt-auto-generator/gpt-auto-generator.c \
2039 src/shared/blkid-util.h
2041 systemd_gpt_auto_generator_LDADD = \
2042 libsystemd-label.la \
2043 libsystemd-internal.la \
2044 libudev-internal.la \
2045 libsystemd-shared.la \
2048 systemd_gpt_auto_generator_CFLAGS = \
2053 # ------------------------------------------------------------------------------
2055 systemgenerator_PROGRAMS += \
2056 systemd-dbus1-generator
2058 systemd_dbus1_generator_SOURCES = \
2059 src/dbus1-generator/dbus1-generator.c
2061 systemd_dbus1_generator_LDADD = \
2062 libsystemd-label.la \
2063 libsystemd-shared.la \
2064 libsystemd-internal.la
2066 dbus1-generator-install-hook:
2067 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2068 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2069 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2071 dbus1-generator-uninstall-hook:
2072 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2074 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2075 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2078 # ------------------------------------------------------------------------------
2079 systemd_sysv_generator_SOURCES = \
2080 src/sysv-generator/sysv-generator.c
2082 systemd_sysv_generator_LDADD = \
2083 libsystemd-core.la \
2084 libsystemd-label.la \
2085 libsystemd-shared.la
2087 # ------------------------------------------------------------------------------
2088 systemd_rc_local_generator_SOURCES = \
2089 src/rc-local-generator/rc-local-generator.c
2091 systemd_rc_local_generator_LDADD = \
2092 libsystemd-label.la \
2093 libsystemd-shared.la
2095 # ------------------------------------------------------------------------------
2096 systemd_remount_fs_SOURCES = \
2097 src/remount-fs/remount-fs.c \
2098 src/core/mount-setup.c \
2099 src/core/mount-setup.h
2101 systemd_remount_fs_LDADD = \
2102 libsystemd-label.la \
2103 libsystemd-shared.la
2105 # ------------------------------------------------------------------------------
2106 systemd_cgroups_agent_SOURCES = \
2107 src/cgroups-agent/cgroups-agent.c
2109 systemd_cgroups_agent_LDADD = \
2110 libsystemd-internal.la \
2111 libsystemd-shared.la
2113 # ------------------------------------------------------------------------------
2114 systemd_escape_SOURCES = \
2117 systemd_escape_LDADD = \
2118 libsystemd-shared.la
2120 # -----------------------------------------------------------------------------
2121 systemctl_SOURCES = \
2122 src/systemctl/systemctl.c
2125 libsystemd-units.la \
2126 libsystemd-label.la \
2127 libsystemd-internal.la \
2128 libsystemd-logs.la \
2129 libsystemd-journal-internal.la \
2130 libsystemd-shared.la
2132 # ------------------------------------------------------------------------------
2133 systemd_notify_SOURCES = \
2134 src/notify/notify.c \
2135 src/readahead/sd-readahead.c
2137 systemd_notify_LDADD = \
2138 libsystemd-internal.la \
2139 libsystemd-shared.la
2141 # ------------------------------------------------------------------------------
2142 systemd_path_SOURCES = \
2145 systemd_path_LDADD = \
2146 libsystemd-internal.la \
2147 libsystemd-shared.la
2149 # ------------------------------------------------------------------------------
2150 systemd_ask_password_SOURCES = \
2151 src/ask-password/ask-password.c
2153 systemd_ask_password_LDADD = \
2154 libsystemd-label.la \
2155 libsystemd-shared.la
2157 # ------------------------------------------------------------------------------
2158 systemd_reply_password_SOURCES = \
2159 src/reply-password/reply-password.c
2161 systemd_reply_password_LDADD = \
2162 libsystemd-shared.la
2164 # ------------------------------------------------------------------------------
2165 systemd_cgls_SOURCES = \
2168 systemd_cgls_LDADD = \
2169 libsystemd-internal.la \
2170 libsystemd-shared.la
2172 # ------------------------------------------------------------------------------
2173 systemd_cgtop_SOURCES = \
2176 systemd_cgtop_LDADD = \
2177 libsystemd-shared.la
2179 # ------------------------------------------------------------------------------
2180 systemd_nspawn_SOURCES = \
2181 src/nspawn/nspawn.c \
2182 src/core/mount-setup.c \
2183 src/core/mount-setup.h \
2184 src/core/loopback-setup.c \
2185 src/core/loopback-setup.h
2187 systemd_nspawn_CFLAGS = \
2192 systemd_nspawn_LDADD = \
2193 libsystemd-label.la \
2194 libsystemd-capability.la \
2195 libsystemd-internal.la \
2196 libudev-internal.la \
2197 libsystemd-shared.la \
2201 systemd_nspawn_LDADD += \
2202 libsystemd-seccomp.la \
2206 # ------------------------------------------------------------------------------
2207 systemd_run_SOURCES = \
2210 systemd_run_LDADD = \
2211 libsystemd-label.la \
2212 libsystemd-capability.la \
2213 libsystemd-internal.la \
2214 libsystemd-shared.la
2216 # ------------------------------------------------------------------------------
2217 systemd_bus_proxyd_SOURCES = \
2218 src/bus-proxyd/bus-proxyd.c \
2219 src/bus-proxyd/bus-policy.c \
2220 src/bus-proxyd/bus-policy.h
2222 systemd_bus_proxyd_LDADD = \
2223 libsystemd-capability.la \
2224 libsystemd-internal.la \
2225 libsystemd-shared.la
2227 bus-proxyd-install-hook:
2228 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2229 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2230 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2232 bus-proxyd-uninstall-hook:
2233 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2235 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2236 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2239 nodist_systemunit_DATA += \
2240 units/systemd-bus-proxyd@.service
2242 dist_systemunit_DATA += \
2243 units/systemd-bus-proxyd.socket
2245 dist_userunit_DATA += \
2246 units/user/systemd-bus-proxyd.socket \
2247 units/user/systemd-bus-proxyd@.service
2251 units/systemd-bus-proxyd@.service.in
2253 # ------------------------------------------------------------------------------
2254 systemd_tty_ask_password_agent_SOURCES = \
2255 src/tty-ask-password-agent/tty-ask-password-agent.c
2257 systemd_tty_ask_password_agent_LDADD = \
2258 libsystemd-label.la \
2259 libsystemd-shared.la
2261 # ------------------------------------------------------------------------------
2262 libsystemd_internal_la_SOURCES = \
2263 src/systemd/sd-bus.h \
2264 src/systemd/sd-bus-protocol.h \
2265 src/systemd/sd-bus-vtable.h \
2266 src/systemd/sd-memfd.h \
2267 src/systemd/sd-utf8.h \
2268 src/systemd/sd-event.h \
2269 src/systemd/sd-rtnl.h \
2270 src/systemd/sd-resolve.h \
2271 src/systemd/sd-login.h \
2272 src/systemd/sd-id128.h \
2273 src/systemd/sd-daemon.h \
2274 src/systemd/sd-path.h \
2275 src/libsystemd/sd-bus/sd-bus.c \
2276 src/libsystemd/sd-bus/bus-control.c \
2277 src/libsystemd/sd-bus/bus-control.h \
2278 src/libsystemd/sd-bus/bus-error.c \
2279 src/libsystemd/sd-bus/bus-error.h \
2280 src/libsystemd/sd-bus/bus-internal.c \
2281 src/libsystemd/sd-bus/bus-internal.h \
2282 src/libsystemd/sd-bus/bus-socket.c \
2283 src/libsystemd/sd-bus/bus-socket.h \
2284 src/libsystemd/sd-bus/bus-kernel.c \
2285 src/libsystemd/sd-bus/bus-kernel.h \
2286 src/libsystemd/sd-bus/bus-container.c \
2287 src/libsystemd/sd-bus/bus-container.h \
2288 src/libsystemd/sd-bus/bus-message.c \
2289 src/libsystemd/sd-bus/bus-message.h \
2290 src/libsystemd/sd-bus/bus-creds.c \
2291 src/libsystemd/sd-bus/bus-creds.h \
2292 src/libsystemd/sd-bus/bus-signature.c \
2293 src/libsystemd/sd-bus/bus-signature.h \
2294 src/libsystemd/sd-bus/bus-type.c \
2295 src/libsystemd/sd-bus/bus-type.h \
2296 src/libsystemd/sd-bus/bus-match.c \
2297 src/libsystemd/sd-bus/bus-match.h \
2298 src/libsystemd/sd-bus/bus-bloom.c \
2299 src/libsystemd/sd-bus/bus-bloom.h \
2300 src/libsystemd/sd-bus/bus-introspect.c \
2301 src/libsystemd/sd-bus/bus-introspect.h \
2302 src/libsystemd/sd-bus/bus-objects.c \
2303 src/libsystemd/sd-bus/bus-objects.h \
2304 src/libsystemd/sd-bus/bus-gvariant.c \
2305 src/libsystemd/sd-bus/bus-gvariant.h \
2306 src/libsystemd/sd-bus/bus-convenience.c \
2307 src/libsystemd/sd-bus/bus-track.c \
2308 src/libsystemd/sd-bus/bus-track.h \
2309 src/libsystemd/sd-bus/bus-util.c \
2310 src/libsystemd/sd-bus/bus-util.h \
2311 src/libsystemd/sd-bus/bus-slot.c \
2312 src/libsystemd/sd-bus/bus-slot.h \
2313 src/libsystemd/sd-bus/bus-protocol.h \
2314 src/libsystemd/sd-bus/kdbus.h \
2315 src/libsystemd/sd-bus/sd-memfd.c \
2316 src/libsystemd/sd-utf8/sd-utf8.c \
2317 src/libsystemd/sd-event/sd-event.c \
2318 src/libsystemd/sd-event/event-util.h \
2319 src/libsystemd/sd-rtnl/sd-rtnl.c \
2320 src/libsystemd/sd-rtnl/rtnl-internal.h \
2321 src/libsystemd/sd-rtnl/rtnl-message.c \
2322 src/libsystemd/sd-rtnl/rtnl-types.h \
2323 src/libsystemd/sd-rtnl/rtnl-types.c \
2324 src/libsystemd/sd-rtnl/rtnl-util.h \
2325 src/libsystemd/sd-rtnl/rtnl-util.c \
2326 src/libsystemd/sd-rtnl/local-addresses.h \
2327 src/libsystemd/sd-rtnl/local-addresses.c \
2328 src/libsystemd/sd-id128/sd-id128.c \
2329 src/libsystemd/sd-daemon/sd-daemon.c \
2330 src/libsystemd/sd-login/sd-login.c \
2331 src/libsystemd/sd-path/sd-path.c
2333 nodist_libsystemd_internal_la_SOURCES = \
2334 src/libsystemd/libsystemd.sym \
2335 src/libsystemd/sd-bus/bus-error-mapping.c
2337 libsystemd_internal_la_CFLAGS = \
2341 libsystemd_internal_la_LIBADD = \
2344 libsystemd_resolve_la_SOURCES = \
2345 src/libsystemd/sd-resolve/sd-resolve.c \
2346 src/libsystemd/sd-resolve/resolve-util.h
2348 libsystemd_resolve_la_CFLAGS = \
2352 libsystemd_resolve_la_LIBADD = \
2355 noinst_LTLIBRARIES += \
2356 libsystemd-internal.la \
2357 libsystemd-resolve.la
2359 libsystemd_dump_la_SOURCES = \
2360 src/libsystemd/sd-bus/bus-dump.c \
2361 src/libsystemd/sd-bus/bus-dump.h
2363 libsystemd_dump_la_CFLAGS = \
2367 noinst_LTLIBRARIES += \
2371 src/libsystemd/libsystemd.sym.m4 \
2372 src/libsystemd/libsystemd.pc.in \
2373 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2374 src/libsystemd/sd-bus/DIFFERENCES \
2375 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2378 src/libsystemd/libsystemd.sym \
2379 src/libsystemd/sd-bus/bus-error-mapping.c
2382 src/libsystemd/libsystemd.sym
2384 libsystemd_la_SOURCES = \
2385 $(libsystemd_internal_la_SOURCES) \
2386 $(libsystemd_resolve_la_SOURCES) \
2387 $(libsystemd_journal_internal_la_SOURCES)
2389 nodist_libsystemd_la_SOURCES = \
2390 $(nodist_libsystemd_internal_la_SOURCES)
2392 libsystemd_la_CFLAGS = \
2393 $(libsystemd_internal_la_CFLAGS) \
2394 $(libsystemd_resolve_la_CFLAGS) \
2395 $(libsystemd_journal_internal_la_CFLAGS)
2397 libsystemd_la_LDFLAGS = \
2399 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2400 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2402 libsystemd_la_LIBADD = \
2403 libsystemd-shared.la \
2404 $(libsystemd_internal_la_LIBADD) \
2405 $(libsystemd_journal_internal_la_LIBADD) \
2406 $(libsystemd_resolve_la_LIBADD)
2408 libsystemd-install-hook:
2409 libname=libsystemd.so && $(move-to-rootlibdir)
2411 libsystemd-uninstall-hook:
2412 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2414 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2415 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2417 pkgconfiglib_DATA += \
2418 src/libsystemd/libsystemd.pc
2420 pkginclude_HEADERS += \
2421 src/systemd/sd-login.h \
2422 src/systemd/sd-id128.h \
2423 src/systemd/sd-daemon.h
2426 pkginclude_HEADERS += \
2427 src/systemd/sd-bus.h \
2428 src/systemd/sd-bus-protocol.h \
2429 src/systemd/sd-bus-vtable.h \
2430 src/systemd/sd-memfd.h \
2431 src/systemd/sd-utf8.h \
2432 src/systemd/sd-event.h \
2433 src/systemd/sd-rtnl.h \
2434 src/systemd/sd-resolve.h \
2435 src/systemd/sd-path.h
2438 lib_LTLIBRARIES += \
2443 test-bus-signature \
2449 test-bus-kernel-bloom \
2450 test-bus-kernel-benchmark \
2452 test-bus-zero-copy \
2453 test-bus-introspect \
2465 test_bus_marshal_SOURCES = \
2466 src/libsystemd/sd-bus/test-bus-marshal.c
2468 test_bus_marshal_LDADD = \
2469 libsystemd-internal.la \
2470 libsystemd-shared.la \
2471 libsystemd-dump.la \
2472 libsystemd-capability.la \
2477 test_bus_marshal_CFLAGS = \
2483 test_bus_signature_SOURCES = \
2484 src/libsystemd/sd-bus/test-bus-signature.c
2486 test_bus_signature_LDADD = \
2487 libsystemd-shared.la \
2488 libsystemd-internal.la
2490 test_bus_chat_SOURCES = \
2491 src/libsystemd/sd-bus/test-bus-chat.c
2493 test_bus_chat_CFLAGS = \
2497 test_bus_chat_LDADD = \
2498 libsystemd-internal.la \
2499 libsystemd-shared.la
2501 test_bus_cleanup_SOURCES = \
2502 src/libsystemd/sd-bus/test-bus-cleanup.c
2504 test_bus_cleanup_CFLAGS = \
2508 test_bus_cleanup_LDADD = \
2509 libsystemd-internal.la \
2510 libsystemd-shared.la
2512 test_bus_server_SOURCES = \
2513 src/libsystemd/sd-bus/test-bus-server.c
2515 test_bus_server_CFLAGS = \
2519 test_bus_server_LDADD = \
2520 libsystemd-internal.la \
2521 libsystemd-shared.la
2523 test_bus_objects_SOURCES = \
2524 src/libsystemd/sd-bus/test-bus-objects.c
2526 test_bus_objects_CFLAGS = \
2531 test_bus_objects_LDADD = \
2532 libsystemd-internal.la \
2533 libsystemd-shared.la \
2534 libsystemd-dump.la \
2535 libsystemd-capability.la \
2538 test_bus_error_SOURCES = \
2539 src/libsystemd/sd-bus/test-bus-error.c
2541 test_bus_error_LDADD = \
2542 libsystemd-internal.la \
2543 libsystemd-shared.la
2545 test_bus_gvariant_SOURCES = \
2546 src/libsystemd/sd-bus/test-bus-gvariant.c
2548 test_bus_gvariant_LDADD = \
2549 libsystemd-internal.la \
2550 libsystemd-shared.la \
2551 libsystemd-dump.la \
2552 libsystemd-capability.la \
2556 test_bus_gvariant_CFLAGS = \
2561 test_bus_creds_SOURCES = \
2562 src/libsystemd/sd-bus/test-bus-creds.c
2564 test_bus_creds_LDADD = \
2565 libsystemd-internal.la \
2566 libsystemd-shared.la \
2567 libsystemd-dump.la \
2568 libsystemd-capability.la
2570 test_bus_match_SOURCES = \
2571 src/libsystemd/sd-bus/test-bus-match.c
2573 test_bus_match_LDADD = \
2574 libsystemd-internal.la \
2575 libsystemd-shared.la
2577 test_bus_kernel_SOURCES = \
2578 src/libsystemd/sd-bus/test-bus-kernel.c
2580 test_bus_kernel_LDADD = \
2581 libsystemd-internal.la \
2582 libsystemd-shared.la \
2583 libsystemd-dump.la \
2584 libsystemd-capability.la \
2587 test_bus_kernel_CFLAGS = \
2591 test_bus_kernel_bloom_SOURCES = \
2592 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2594 test_bus_kernel_bloom_LDADD = \
2595 libsystemd-internal.la \
2596 libsystemd-shared.la
2598 test_bus_kernel_benchmark_SOURCES = \
2599 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2601 test_bus_kernel_benchmark_LDADD = \
2602 libsystemd-internal.la \
2603 libsystemd-shared.la
2605 test_bus_memfd_SOURCES = \
2606 src/libsystemd/sd-bus/test-bus-memfd.c
2608 test_bus_memfd_LDADD = \
2609 libsystemd-internal.la \
2610 libsystemd-shared.la
2612 test_bus_zero_copy_SOURCES = \
2613 src/libsystemd/sd-bus/test-bus-zero-copy.c
2615 test_bus_zero_copy_LDADD = \
2616 libsystemd-internal.la \
2617 libsystemd-shared.la \
2618 libsystemd-dump.la \
2619 libsystemd-capability.la \
2622 test_bus_zero_copy_CFLAGS = \
2626 test_bus_introspect_SOURCES = \
2627 src/libsystemd/sd-bus/test-bus-introspect.c
2629 test_bus_introspect_LDADD = \
2630 libsystemd-internal.la \
2631 libsystemd-shared.la
2633 test_event_SOURCES = \
2634 src/libsystemd/sd-event/test-event.c
2636 test_event_LDADD = \
2637 libsystemd-internal.la \
2638 libsystemd-shared.la
2640 test_rtnl_SOURCES = \
2641 src/libsystemd/sd-rtnl/test-rtnl.c
2644 libsystemd-internal.la \
2645 libsystemd-shared.la
2647 test_resolve_SOURCES = \
2648 src/libsystemd/sd-resolve/test-resolve.c
2650 test_resolve_LDADD = \
2651 libsystemd-resolve.la \
2652 libsystemd-internal.la \
2653 libsystemd-shared.la
2655 test_resolve_CFLAGS = \
2660 src/libsystemd/sd-bus/busctl.c
2663 libsystemd-internal.la \
2664 libsystemd-shared.la \
2665 libsystemd-dump.la \
2666 libsystemd-capability.la \
2673 # ------------------------------------------------------------------------------
2674 noinst_LTLIBRARIES += \
2675 libsystemd-network.la
2677 libsystemd_network_la_CFLAGS = \
2681 libsystemd_network_la_SOURCES = \
2682 src/systemd/sd-network.h \
2683 src/systemd/sd-dhcp-client.h \
2684 src/systemd/sd-dhcp-server.h \
2685 src/systemd/sd-dhcp-lease.h \
2686 src/systemd/sd-ipv4ll.h \
2687 src/network/sd-network.c \
2688 src/network/network-util.h \
2689 src/libsystemd-network/sd-dhcp-client.c \
2690 src/libsystemd-network/sd-dhcp-server.c \
2691 src/libsystemd-network/dhcp-network.c \
2692 src/libsystemd-network/dhcp-option.c \
2693 src/libsystemd-network/dhcp-packet.c \
2694 src/libsystemd-network/dhcp-internal.h \
2695 src/libsystemd-network/dhcp-server-internal.h \
2696 src/libsystemd-network/dhcp-protocol.h \
2697 src/libsystemd-network/dhcp-lease-internal.h \
2698 src/libsystemd-network/sd-dhcp-lease.c \
2699 src/libsystemd-network/sd-ipv4ll.c \
2700 src/libsystemd-network/ipv4ll-network.c \
2701 src/libsystemd-network/ipv4ll-packet.c \
2702 src/libsystemd-network/ipv4ll-internal.h \
2703 src/libsystemd-network/network-internal.c \
2704 src/libsystemd-network/network-internal.h \
2705 src/systemd/sd-icmp6-nd.h \
2706 src/systemd/sd-dhcp6-client.h \
2707 src/systemd/sd-dhcp6-lease.h \
2708 src/libsystemd-network/sd-icmp6-nd.c \
2709 src/libsystemd-network/sd-dhcp6-client.c \
2710 src/libsystemd-network/dhcp6-internal.h \
2711 src/libsystemd-network/dhcp6-protocol.h \
2712 src/libsystemd-network/dhcp6-network.c \
2713 src/libsystemd-network/dhcp6-option.c \
2714 src/libsystemd-network/dhcp6-lease-internal.h \
2715 src/libsystemd-network/sd-dhcp6-lease.c
2717 libsystemd_network_la_LIBADD = \
2718 libudev-internal.la \
2719 libsystemd-label.la \
2720 libsystemd-internal.la \
2721 libsystemd-shared.la \
2724 test_dhcp_option_SOURCES = \
2725 src/libsystemd-network/dhcp-protocol.h \
2726 src/libsystemd-network/dhcp-internal.h \
2727 src/libsystemd-network/test-dhcp-option.c
2729 test_dhcp_option_LDADD = \
2730 libsystemd-network.la \
2731 libsystemd-internal.la \
2732 libsystemd-shared.la
2734 test_dhcp_client_SOURCES = \
2735 src/systemd/sd-dhcp-client.h \
2736 src/libsystemd-network/dhcp-protocol.h \
2737 src/libsystemd-network/dhcp-internal.h \
2738 src/libsystemd-network/test-dhcp-client.c
2740 test_dhcp_client_LDADD = \
2741 libsystemd-network.la \
2742 libsystemd-label.la \
2743 libsystemd-internal.la \
2744 libsystemd-shared.la
2746 test_dhcp_server_SOURCES = \
2747 src/libsystemd-network/test-dhcp-server.c
2749 test_dhcp_server_LDADD = \
2750 libsystemd-network.la \
2751 libsystemd-internal.la \
2752 libsystemd-shared.la
2754 test_ipv4ll_SOURCES = \
2755 src/systemd/sd-ipv4ll.h \
2756 src/libsystemd-network/ipv4ll-internal.h \
2757 src/libsystemd-network/test-ipv4ll.c
2759 test_ipv4ll_LDADD = \
2760 libsystemd-network.la \
2761 libsystemd-label.la \
2762 libsystemd-internal.la \
2763 libsystemd-shared.la
2765 test_icmp6_rs_SOURCES = \
2766 src/systemd/sd-dhcp6-client.h \
2767 src/systemd/sd-icmp6-nd.h \
2768 src/libsystemd-network/dhcp6-internal.h \
2769 src/libsystemd-network/test-icmp6-rs.c
2771 test_icmp6_rs_LDADD = \
2772 libsystemd-network.la \
2773 libsystemd-internal.la \
2774 libsystemd-shared.la
2776 test_dhcp6_client_SOURCES = \
2777 src/systemd/sd-dhcp6-client.h \
2778 src/libsystemd-network/dhcp6-internal.h \
2779 src/libsystemd-network/test-dhcp6-client.c
2781 test_dhcp6_client_LDADD = \
2782 libsystemd-network.la \
2783 libsystemd-internal.la \
2784 libsystemd-shared.la
2794 # ------------------------------------------------------------------------------
2804 include_HEADERS += \
2805 src/libudev/libudev.h
2807 lib_LTLIBRARIES += \
2810 libudev_la_SOURCES =\
2811 src/libudev/libudev.sym \
2812 src/libudev/libudev-private.h \
2813 src/libudev/libudev.c \
2814 src/libudev/libudev-list.c \
2815 src/libudev/libudev-util.c \
2816 src/libudev/libudev-device.c \
2817 src/libudev/libudev-enumerate.c \
2818 src/libudev/libudev-monitor.c \
2819 src/libudev/libudev-queue.c \
2820 src/libudev/libudev-hwdb-def.h \
2821 src/libudev/libudev-hwdb.c
2823 libudev_la_CFLAGS = \
2827 libudev_la_LDFLAGS = \
2829 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2830 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2832 libudev_la_LIBADD = \
2833 libsystemd-internal.la \
2834 libsystemd-shared.la
2836 pkgconfiglib_DATA += \
2837 src/libudev/libudev.pc
2840 src/libudev/libudev.pc.in
2843 src/libudev/libudev.pc \
2848 $(AM_V_at)$(MKDIR_P) $(dir $@)
2849 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2852 $(AM_V_at)$(MKDIR_P) $(dir $@)
2853 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2855 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2856 libudev-install-hook:
2857 libname=libudev.so && $(move-to-rootlibdir)
2859 libudev-uninstall-hook:
2860 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2862 INSTALL_EXEC_HOOKS += libudev-install-hook
2863 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2865 # ------------------------------------------------------------------------------
2866 noinst_LTLIBRARIES += \
2869 libudev_internal_la_SOURCES =\
2870 $(libudev_la_SOURCES) \
2871 src/libudev/libudev-device-private.c
2873 libudev_internal_la_CFLAGS = \
2875 -fvisibility=default
2877 # ------------------------------------------------------------------------------
2879 $(sysconfdir)/udev/rules.d \
2880 $(sysconfdir)/udev/hwdb.d
2882 dist_network_DATA = \
2883 network/99-default.link \
2884 network/80-container-host0.network \
2885 network/80-container-ve.network
2887 dist_udevrules_DATA += \
2888 rules/42-usb-hid-pm.rules \
2889 rules/50-udev-default.rules \
2890 rules/60-drm.rules \
2891 rules/60-keyboard.rules \
2892 rules/60-persistent-storage-tape.rules \
2893 rules/60-persistent-serial.rules \
2894 rules/60-persistent-input.rules \
2895 rules/60-persistent-alsa.rules \
2896 rules/60-persistent-storage.rules \
2897 rules/64-btrfs.rules \
2898 rules/75-net-description.rules \
2899 rules/75-tty-description.rules \
2900 rules/78-sound-card.rules \
2901 rules/80-net-setup-link.rules \
2902 rules/95-udev-late.rules
2904 nodist_udevrules_DATA += \
2905 rules/99-systemd.rules
2907 dist_udevhwdb_DATA = \
2908 hwdb/20-pci-vendor-model.hwdb \
2909 hwdb/20-pci-classes.hwdb \
2910 hwdb/20-usb-vendor-model.hwdb \
2911 hwdb/20-usb-classes.hwdb \
2912 hwdb/20-sdio-vendor-model.hwdb \
2913 hwdb/20-sdio-classes.hwdb \
2914 hwdb/20-bluetooth-vendor-product.hwdb \
2915 hwdb/20-acpi-vendor.hwdb \
2917 hwdb/20-net-ifname.hwdb \
2918 hwdb/60-keyboard.hwdb
2920 udevconfdir = $(sysconfdir)/udev
2921 dist_udevconf_DATA = \
2924 sharepkgconfigdir = $(datadir)/pkgconfig
2925 sharepkgconfig_DATA = \
2929 rules/99-systemd.rules.in \
2933 rules/99-systemd.rules \
2937 units/systemd-udevd.service.in \
2938 units/systemd-udev-trigger.service.in \
2939 units/systemd-udev-settle.service.in \
2940 units/systemd-udev-hwdb-update.service.in
2943 units/systemd-udevd.service \
2944 units/systemd-udev-trigger.service \
2945 units/systemd-udev-settle.service \
2946 units/systemd-udev-hwdb-update.service
2948 SOCKETS_TARGET_WANTS += \
2949 systemd-udevd-control.socket \
2950 systemd-udevd-kernel.socket
2952 SYSINIT_TARGET_WANTS += \
2953 systemd-udevd.service \
2954 systemd-udev-trigger.service \
2955 systemd-udev-hwdb-update.service
2957 rootbin_PROGRAMS += \
2960 rootlibexec_PROGRAMS += \
2963 noinst_LTLIBRARIES += \
2966 src/udev/keyboard-keys.txt:
2967 $(AM_V_at)$(MKDIR_P) $(dir $@)
2968 $(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/' > $@
2970 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2971 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2973 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2974 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2976 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2977 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2979 libudev_core_la_SOURCES = \
2981 src/udev/udev-event.c \
2982 src/udev/udev-watch.c \
2983 src/udev/udev-node.c \
2984 src/udev/udev-rules.c \
2985 src/udev/udev-ctrl.c \
2986 src/udev/udev-builtin.c \
2987 src/udev/udev-builtin-btrfs.c \
2988 src/udev/udev-builtin-hwdb.c \
2989 src/udev/udev-builtin-input_id.c \
2990 src/udev/udev-builtin-keyboard.c \
2991 src/udev/udev-builtin-net_id.c \
2992 src/udev/udev-builtin-net_setup_link.c \
2993 src/udev/udev-builtin-path_id.c \
2994 src/udev/udev-builtin-usb_id.c \
2995 src/udev/net/link-config.h \
2996 src/udev/net/link-config.c \
2997 src/udev/net/ethtool-util.h \
2998 src/udev/net/ethtool-util.c
3000 nodist_libudev_core_la_SOURCES = \
3001 src/udev/keyboard-keys-from-name.h \
3002 src/udev/keyboard-keys-to-name.h \
3003 src/udev/net/link-config-gperf.c
3006 $(nodist_libudev_core_la_SOURCES)
3009 src/udev/keyboard-keys-from-name.gperf \
3010 src/udev/keyboard-keys.txt \
3011 src/udev/net/link-config-gperf.c
3014 src/udev/net/link-config-gperf.gperf
3016 libudev_core_la_CFLAGS = \
3021 libudev_core_la_LIBADD = \
3022 libudev-internal.la \
3023 libsystemd-label.la \
3024 libsystemd-internal.la \
3025 libsystemd-network.la \
3026 libsystemd-shared.la \
3030 libudev_core_la_CPPFLAGS = \
3032 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
3035 libudev_core_la_SOURCES += \
3036 src/udev/udev-builtin-firmware.c
3038 dist_udevrules_DATA += \
3039 rules/50-firmware.rules
3043 libudev_core_la_SOURCES += \
3044 src/udev/udev-builtin-kmod.c
3046 dist_udevrules_DATA += \
3047 rules/80-drivers.rules
3051 libudev_core_la_SOURCES += \
3052 src/udev/udev-builtin-blkid.c
3056 libudev_core_la_SOURCES += \
3057 src/udev/udev-builtin-uaccess.c \
3058 src/login/logind-acl.c \
3059 src/libsystemd/sd-login/sd-login.c \
3060 src/systemd/sd-login.h
3062 libudev_core_la_LIBADD += \
3066 systemd_udevd_SOURCES = \
3069 systemd_udevd_LDADD = \
3073 src/udev/udevadm.c \
3074 src/udev/udevadm-info.c \
3075 src/udev/udevadm-control.c \
3076 src/udev/udevadm-monitor.c \
3077 src/udev/udevadm-hwdb.c \
3078 src/udev/udevadm-settle.c \
3079 src/udev/udevadm-trigger.c \
3080 src/udev/udevadm-test.c \
3081 src/udev/udevadm-test-builtin.c
3086 # Update hwdb on installation. Do not bother if installing
3087 # in DESTDIR, since this is likely for packaging purposes.
3089 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3091 INSTALL_DATA_HOOKS += \
3095 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3097 # ------------------------------------------------------------------------------
3106 test_libudev_SOURCES = \
3107 src/test/test-libudev.c
3109 test_libudev_LDADD = \
3110 libsystemd-label.la \
3111 libudev-internal.la \
3112 libsystemd-shared.la
3114 test_udev_SOURCES = \
3115 src/test/test-udev.c
3124 test_udev_LDADD += \
3131 # packed sysfs test tree
3133 $(AM_V_at)$(MKDIR_P) $(dir $@)
3134 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3138 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3143 test/rules-test.sh \
3144 test/rule-syntax-check.py
3146 # ------------------------------------------------------------------------------
3148 src/udev/ata_id/ata_id.c
3151 libudev-internal.la \
3152 libsystemd-shared.la
3154 udevlibexec_PROGRAMS += \
3157 # ------------------------------------------------------------------------------
3158 cdrom_id_SOURCES = \
3159 src/udev/cdrom_id/cdrom_id.c
3162 libudev-internal.la \
3163 libsystemd-shared.la
3165 udevlibexec_PROGRAMS += \
3168 dist_udevrules_DATA += \
3169 rules/60-cdrom_id.rules
3171 # ------------------------------------------------------------------------------
3173 src/udev/collect/collect.c
3176 libudev-internal.la \
3177 libsystemd-shared.la
3179 udevlibexec_PROGRAMS += \
3182 # ------------------------------------------------------------------------------
3184 src/udev/scsi_id/scsi_id.c \
3185 src/udev/scsi_id/scsi_serial.c \
3186 src/udev/scsi_id/scsi.h \
3187 src/udev/scsi_id/scsi_id.h
3190 libudev-internal.la \
3191 libsystemd-shared.la
3193 udevlibexec_PROGRAMS += \
3197 src/udev/scsi_id/README
3199 # ------------------------------------------------------------------------------
3201 src/udev/v4l_id/v4l_id.c
3206 udevlibexec_PROGRAMS += \
3209 dist_udevrules_DATA += \
3210 rules/60-persistent-v4l.rules
3212 # ------------------------------------------------------------------------------
3213 accelerometer_SOURCES = \
3214 src/udev/accelerometer/accelerometer.c
3216 accelerometer_LDADD = \
3217 libudev-internal.la -lm \
3218 libsystemd-shared.la
3220 udevlibexec_PROGRAMS += \
3223 dist_udevrules_DATA += \
3224 rules/61-accelerometer.rules
3226 # ------------------------------------------------------------------------------
3233 libgudev_includedir = \
3234 $(includedir)/gudev-1.0/gudev
3236 libgudev_include_HEADERS = \
3238 src/gudev/gudevenums.h \
3239 src/gudev/gudevenumtypes.h \
3240 src/gudev/gudevtypes.h \
3241 src/gudev/gudevclient.h \
3242 src/gudev/gudevdevice.h \
3243 src/gudev/gudevenumerator.h
3245 lib_LTLIBRARIES += libgudev-1.0.la
3247 pkgconfiglib_DATA += \
3248 src/gudev/gudev-1.0.pc
3251 src/gudev/gudev-1.0.pc
3253 libgudev_1_0_la_SOURCES = \
3254 src/gudev/libgudev-1.0.sym \
3255 src/gudev/gudevenums.h \
3256 src/gudev/gudevenumtypes.h \
3257 src/gudev/gudevenumtypes.h\
3258 src/gudev/gudevtypes.h \
3259 src/gudev/gudevclient.h \
3260 src/gudev/gudevclient.c \
3261 src/gudev/gudevdevice.h \
3262 src/gudev/gudevdevice.c \
3263 src/gudev/gudevenumerator.h \
3264 src/gudev/gudevenumerator.c \
3265 src/gudev/gudevprivate.h
3267 nodist_libgudev_1_0_la_SOURCES = \
3268 src/gudev/gudevmarshal.h \
3269 src/gudev/gudevmarshal.c \
3270 src/gudev/gudevenumtypes.h \
3271 src/gudev/gudevenumtypes.c
3274 $(nodist_libgudev_1_0_la_SOURCES)
3276 libgudev_1_0_la_CPPFLAGS = \
3278 -I$(top_builddir)/src\
3279 -I$(top_srcdir)/src\
3280 -I$(top_builddir)/src/gudev \
3281 -I$(top_srcdir)/src/gudev \
3282 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3283 -D_GUDEV_COMPILATION \
3284 -DG_LOG_DOMAIN=\"GUdev\"
3286 libgudev_1_0_la_CFLAGS = \
3288 -fvisibility=default \
3291 libgudev_1_0_la_LIBADD = \
3295 libgudev_1_0_la_LDFLAGS = \
3297 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3300 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3302 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3303 $(AM_V_at)$(MKDIR_P) $(dir $@)
3304 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3306 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3307 $(AM_V_at)$(MKDIR_P) $(dir $@)
3308 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3309 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3311 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3312 $(AM_V_at)$(MKDIR_P) $(dir $@)
3313 $(AM_V_GEN)glib-mkenums --template $^ > $@
3315 if HAVE_INTROSPECTION
3316 -include $(INTROSPECTION_MAKEFILE)
3318 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3320 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3322 src_gudev_GUdev_1_0_gir_CFLAGS = \
3325 -D_GUDEV_COMPILATION \
3326 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3327 -I$(top_srcdir)/src \
3328 -I$(top_builddir)/src \
3329 -I$(top_srcdir)/src/gudev \
3330 -I$(top_builddir)/src/gudev
3332 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3334 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3335 --pkg-export=gudev-1.0 \
3338 src_gudev_GUdev_1_0_gir_FILES = \
3340 src/gudev/gudevtypes.h \
3341 src/gudev/gudevenums.h \
3342 src/gudev/gudevenumtypes.h \
3343 src/gudev/gudevclient.h \
3344 src/gudev/gudevdevice.h \
3345 src/gudev/gudevenumerator.h \
3346 src/gudev/gudevclient.c \
3347 src/gudev/gudevdevice.c \
3348 src/gudev/gudevenumerator.c
3350 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3351 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3353 girdir = $(datadir)/gir-1.0
3355 src/gudev/GUdev-1.0.gir
3357 typelibsdir = $(libdir)/girepository-1.0
3359 src/gudev/GUdev-1.0.typelib
3361 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3362 endif # HAVE_INTROSPECTION
3364 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3365 libgudev-install-hook:
3366 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3368 libgudev-uninstall-hook:
3369 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3371 INSTALL_EXEC_HOOKS += libgudev-install-hook
3372 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3376 src/gudev/gudev-1.0.pc.in \
3377 src/gudev/gudevmarshal.list \
3378 src/gudev/gudevenumtypes.h.template \
3379 src/gudev/gudevenumtypes.c.template \
3380 src/gudev/gjs-example.js \
3381 src/gudev/seed-example-enum.js \
3382 src/gudev/seed-example.js
3384 # ------------------------------------------------------------------------------
3385 mtd_probe_SOURCES = \
3386 src/udev/mtd_probe/mtd_probe.c \
3387 src/udev/mtd_probe/mtd_probe.h \
3388 src/udev/mtd_probe/probe_smartmedia.c
3390 dist_udevrules_DATA += \
3391 rules/75-probe_mtd.rules
3393 udevlibexec_PROGRAMS += \
3396 # ------------------------------------------------------------------------------
3397 test_id128_SOURCES = \
3398 src/test/test-id128.c
3400 test_id128_LDADD = \
3401 libsystemd-internal.la \
3402 libsystemd-shared.la
3407 # ------------------------------------------------------------------------------
3409 rootlibexec_PROGRAMS += \
3412 systemd_activate_SOURCES = \
3413 src/activate/activate.c
3415 systemd_activate_LDADD = \
3416 libsystemd-label.la \
3417 libsystemd-internal.la \
3418 libsystemd-shared.la
3420 # ------------------------------------------------------------------------------
3421 systemd_journald_SOURCES = \
3422 src/journal/journald.c \
3423 src/journal/journald-server.h
3425 systemd_journald_LDADD = \
3426 libsystemd-journal-core.la \
3427 libsystemd-internal.la \
3428 libsystemd-shared.la
3430 systemd_cat_SOURCES = \
3433 systemd_cat_LDADD = \
3434 libsystemd-journal-core.la
3437 rootlibexec_PROGRAMS += \
3438 systemd-journal-remote
3440 systemd_journal_remote_SOURCES = \
3441 src/journal/journal-remote-parse.h \
3442 src/journal/journal-remote-parse.c \
3443 src/journal/journal-remote-write.h \
3444 src/journal/journal-remote-write.c \
3445 src/journal/journal-remote.c
3447 systemd_journal_remote_LDADD = \
3448 libsystemd-internal.la \
3449 libsystemd-journal-core.la
3451 systemd_journal_remote_SOURCES += \
3452 src/journal/microhttpd-util.h \
3453 src/journal/microhttpd-util.c
3455 systemd_journal_remote_CFLAGS = \
3457 $(MICROHTTPD_CFLAGS)
3459 systemd_journal_remote_LDADD += \
3463 systemd_journal_remote_LDADD += \
3468 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3469 journalctl_CFLAGS = \
3472 journalctl_SOURCES = \
3473 src/journal/journalctl.c
3475 journalctl_LDADD = \
3476 libsystemd-journal-internal.la \
3477 libsystemd-internal.la \
3478 libsystemd-logs.la \
3479 libsystemd-shared.la
3482 journalctl_LDADD += \
3487 journalctl_SOURCES += \
3488 src/journal/journal-qrcode.c \
3489 src/journal/journal-qrcode.h
3491 journalctl_CFLAGS += \
3494 journalctl_LDADD += \
3498 test_journal_SOURCES = \
3499 src/journal/test-journal.c
3501 test_journal_LDADD = \
3502 libsystemd-journal-core.la
3504 test_journal_send_SOURCES = \
3505 src/journal/test-journal-send.c
3507 test_journal_send_LDADD = \
3508 libsystemd-journal-core.la
3510 test_journal_syslog_SOURCES = \
3511 src/journal/test-journal-syslog.c
3513 test_journal_syslog_LDADD = \
3514 libsystemd-journal-core.la
3516 test_journal_match_SOURCES = \
3517 src/journal/test-journal-match.c
3519 test_journal_match_LDADD = \
3520 libsystemd-journal-core.la
3522 test_journal_enum_SOURCES = \
3523 src/journal/test-journal-enum.c
3525 test_journal_enum_LDADD = \
3526 libsystemd-journal-core.la
3528 test_journal_stream_SOURCES = \
3529 src/journal/test-journal-stream.c
3531 test_journal_stream_LDADD = \
3532 libsystemd-journal-core.la
3534 test_journal_flush_SOURCES = \
3535 src/journal/test-journal-flush.c
3537 test_journal_flush_LDADD = \
3538 libsystemd-journal-core.la
3540 test_journal_init_SOURCES = \
3541 src/journal/test-journal-init.c
3543 test_journal_init_LDADD = \
3544 libsystemd-journal-core.la
3546 test_journal_verify_SOURCES = \
3547 src/journal/test-journal-verify.c
3549 test_journal_verify_LDADD = \
3550 libsystemd-journal-core.la
3552 test_journal_interleaving_SOURCES = \
3553 src/journal/test-journal-interleaving.c
3555 test_journal_interleaving_LDADD = \
3556 libsystemd-journal-core.la
3558 test_mmap_cache_SOURCES = \
3559 src/journal/test-mmap-cache.c
3561 test_mmap_cache_LDADD = \
3562 libsystemd-journal-core.la
3564 test_catalog_SOURCES = \
3565 src/journal/test-catalog.c
3567 test_catalog_CPPFLAGS = \
3569 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3571 test_catalog_LDADD = \
3572 libsystemd-journal-core.la
3574 test_compress_SOURCES = \
3575 src/journal/test-compress.c
3577 test_compress_LDADD = \
3578 libsystemd-journal-internal.la \
3579 libsystemd-shared.la
3581 test_compress_benchmark_SOURCES = \
3582 src/journal/test-compress-benchmark.c
3584 test_compress_benchmark_LDADD = \
3585 libsystemd-journal-internal.la \
3586 libsystemd-shared.la
3588 libsystemd_journal_core_la_SOURCES = \
3589 src/journal/journald-kmsg.c \
3590 src/journal/journald-kmsg.h \
3591 src/journal/journald-syslog.c \
3592 src/journal/journald-syslog.h \
3593 src/journal/journald-stream.c \
3594 src/journal/journald-stream.h \
3595 src/journal/journald-server.c \
3596 src/journal/journald-server.h \
3597 src/journal/journald-console.c \
3598 src/journal/journald-console.h \
3599 src/journal/journald-wall.c \
3600 src/journal/journald-wall.h \
3601 src/journal/journald-native.c \
3602 src/journal/journald-native.h \
3603 src/journal/journald-rate-limit.c \
3604 src/journal/journald-rate-limit.h \
3605 src/journal/journal-internal.h
3607 nodist_libsystemd_journal_core_la_SOURCES = \
3608 src/journal/journald-gperf.c
3610 libsystemd_journal_core_la_LIBADD = \
3611 libsystemd-journal-internal.la \
3612 libudev-internal.la \
3613 libsystemd-capability.la \
3614 libsystemd-label.la \
3615 libsystemd-internal.la \
3616 libsystemd-shared.la
3619 libsystemd_journal_core_la_LIBADD += \
3623 noinst_LTLIBRARIES += \
3624 libsystemd-journal-core.la
3626 journal-install-hook:
3627 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3628 -chown 0:0 $(DESTDIR)/var/log/journal
3629 -chmod 755 $(DESTDIR)/var/log/journal
3630 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3631 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3633 journal-uninstall-hook:
3634 -rmdir $(DESTDIR)/var/log/journal/
3636 INSTALL_EXEC_HOOKS += journal-install-hook
3637 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3639 # ------------------------------------------------------------------------------
3640 # Update catalog on installation. Do not bother if installing
3641 # in DESTDIR, since this is likely for packaging purposes.
3642 catalog-update-hook:
3643 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3645 INSTALL_DATA_HOOKS += \
3648 catalog-remove-hook:
3649 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3651 UNINSTALL_DATA_HOOKS += \
3660 test-journal-syslog \
3661 test-journal-match \
3662 test-journal-stream \
3664 test-journal-verify \
3665 test-journal-interleaving \
3666 test-journal-flush \
3673 test-compress-benchmark
3676 pkginclude_HEADERS += \
3677 src/systemd/sd-journal.h \
3678 src/systemd/sd-messages.h \
3679 src/systemd/_sd-common.h
3681 libsystemd_journal_internal_la_SOURCES = \
3682 src/journal/sd-journal.c \
3683 src/systemd/sd-journal.h \
3684 src/systemd/_sd-common.h \
3685 src/journal/journal-file.c \
3686 src/journal/journal-file.h \
3687 src/journal/journal-vacuum.c \
3688 src/journal/journal-vacuum.h \
3689 src/journal/journal-verify.c \
3690 src/journal/journal-verify.h \
3691 src/journal/lookup3.c \
3692 src/journal/lookup3.h \
3693 src/journal/journal-send.c \
3694 src/journal/journal-def.h \
3695 src/journal/compress.h \
3696 src/journal/catalog.c \
3697 src/journal/catalog.h \
3698 src/journal/mmap-cache.c \
3699 src/journal/mmap-cache.h
3701 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3702 libsystemd_journal_internal_la_CFLAGS = \
3705 libsystemd_journal_internal_la_LIBADD =
3707 libsystemd_journal_internal_la_SOURCES += \
3708 src/journal/compress.c
3711 libsystemd_journal_internal_la_CFLAGS += \
3714 libsystemd_journal_internal_la_LIBADD += \
3719 libsystemd_journal_internal_la_LIBADD += \
3724 libsystemd_journal_internal_la_SOURCES += \
3725 src/journal/journal-authenticate.c \
3726 src/journal/journal-authenticate.h \
3727 src/journal/fsprg.c \
3730 libsystemd_journal_internal_la_LIBADD += \
3733 # fsprg.c is a drop-in file using void pointer arithmetic
3734 libsystemd_journal_internal_la_CFLAGS += \
3739 noinst_LTLIBRARIES += \
3740 libsystemd-journal-internal.la
3742 rootlibexec_PROGRAMS += \
3745 rootbin_PROGRAMS += \
3751 dist_systemunit_DATA += \
3752 units/systemd-journald.socket \
3753 units/systemd-journald-dev-log.socket
3755 nodist_systemunit_DATA += \
3756 units/systemd-journald.service \
3757 units/systemd-journal-flush.service \
3758 units/systemd-journal-catalog-update.service
3760 dist_pkgsysconf_DATA += \
3761 src/journal/journald.conf
3763 dist_catalog_DATA = \
3764 catalog/systemd.fr.catalog \
3765 catalog/systemd.ru.catalog \
3766 catalog/systemd.it.catalog \
3767 catalog/systemd.catalog
3769 SOCKETS_TARGET_WANTS += \
3770 systemd-journald.socket \
3771 systemd-journald-dev-log.socket
3773 SYSINIT_TARGET_WANTS += \
3774 systemd-journald.service \
3775 systemd-journal-flush.service \
3776 systemd-journal-catalog-update.service
3779 units/systemd-journald.service.in \
3780 units/systemd-journal-flush.service.in \
3781 units/systemd-journal-catalog-update.service.in \
3782 src/journal/journald-gperf.gperf
3785 src/journal/journald-gperf.c
3787 # ------------------------------------------------------------------------------
3789 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3791 rootlibexec_PROGRAMS += \
3792 systemd-journal-gatewayd
3794 systemd_journal_gatewayd_SOURCES = \
3795 src/journal/journal-gatewayd.c \
3796 src/journal/microhttpd-util.h \
3797 src/journal/microhttpd-util.c
3799 systemd_journal_gatewayd_LDADD = \
3800 libsystemd-logs.la \
3801 libsystemd-journal-internal.la \
3802 libsystemd-internal.la \
3803 libsystemd-shared.la \
3807 systemd_journal_gatewayd_LDADD += \
3811 systemd_journal_gatewayd_CFLAGS = \
3813 $(MICROHTTPD_CFLAGS)
3815 systemd_journal_gatewayd_CPPFLAGS = \
3817 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3819 dist_systemunit_DATA += \
3820 units/systemd-journal-gatewayd.socket
3822 nodist_systemunit_DATA += \
3823 units/systemd-journal-gatewayd.service
3825 dist_gatewayddocumentroot_DATA = \
3826 src/journal/browse.html
3831 units/systemd-journal-gatewayd.service.in
3833 # ------------------------------------------------------------------------------
3835 systemd_socket_proxyd_SOURCES = \
3836 src/socket-proxy/socket-proxyd.c
3838 systemd_socket_proxyd_LDADD = \
3839 libsystemd-logs.la \
3840 libsystemd-internal.la \
3841 libsystemd-journal-internal.la \
3842 libsystemd-shared.la \
3843 libsystemd-resolve.la
3845 # ------------------------------------------------------------------------------
3847 systemd_coredump_SOURCES = \
3848 src/journal/coredump.c \
3849 src/journal/coredump-vacuum.c \
3850 src/journal/coredump-vacuum.h
3852 systemd_coredump_LDADD = \
3853 libsystemd-journal-internal.la \
3854 libsystemd-label.la \
3855 libsystemd-internal.la \
3856 libsystemd-shared.la
3859 systemd_coredump_SOURCES += \
3860 src/journal/stacktrace.c \
3861 src/journal/stacktrace.h
3863 systemd_coredump_LDADD += \
3867 rootlibexec_PROGRAMS += \
3870 dist_pkgsysconf_DATA += \
3871 src/journal/coredump.conf
3874 systemd_coredump_LDADD += \
3878 coredumpctl_SOURCES = \
3879 src/journal/coredumpctl.c
3881 coredumpctl_LDADD = \
3882 libsystemd-journal-internal.la \
3883 libsystemd-internal.la \
3884 libsystemd-shared.la
3890 test-coredump-vacuum
3892 test_coredump_vacuum_SOURCES = \
3893 src/journal/test-coredump-vacuum.c \
3894 src/journal/coredump-vacuum.c \
3895 src/journal/coredump-vacuum.h
3897 test_coredump_vacuum_LDADD = \
3898 libsystemd-internal.la \
3899 libsystemd-shared.la
3901 dist_bashcompletion_DATA += \
3902 shell-completion/bash/coredumpctl
3904 dist_zshcompletion_DATA += \
3905 shell-completion/zsh/_coredumpctl
3907 GENERAL_ALIASES += \
3908 $(bindir)/coredumpctl $(bindir)/systemd-coredumpctl
3911 sysctl.d/50-coredump.conf
3914 sysctl.d/50-coredump.conf
3918 sysctl.d/50-coredump.conf.in
3920 # ------------------------------------------------------------------------------
3922 systemd_binfmt_SOURCES = \
3925 systemd_binfmt_LDADD = \
3926 libsystemd-shared.la
3928 rootlibexec_PROGRAMS += \
3931 dist_systemunit_DATA += \
3932 units/proc-sys-fs-binfmt_misc.automount \
3933 units/proc-sys-fs-binfmt_misc.mount
3935 nodist_systemunit_DATA += \
3936 units/systemd-binfmt.service
3939 $(prefix)/lib/binfmt.d \
3940 $(sysconfdir)/binfmt.d
3942 SYSINIT_TARGET_WANTS += \
3943 systemd-binfmt.service \
3944 proc-sys-fs-binfmt_misc.automount
3949 units/systemd-binfmt.service.in
3951 # ------------------------------------------------------------------------------
3953 systemd_vconsole_setup_SOURCES = \
3954 src/vconsole/vconsole-setup.c
3956 systemd_vconsole_setup_LDADD = \
3957 libsystemd-shared.la
3959 rootlibexec_PROGRAMS += \
3960 systemd-vconsole-setup
3962 nodist_systemunit_DATA += \
3963 units/systemd-vconsole-setup.service
3965 SYSINIT_TARGET_WANTS += \
3966 systemd-vconsole-setup.service
3970 units/systemd-vconsole-setup.service.in
3972 # ------------------------------------------------------------------------------
3974 systemd_readahead_SOURCES = \
3975 src/readahead/readahead.c \
3976 src/readahead/readahead-collect.c \
3977 src/readahead/readahead-replay.c \
3978 src/readahead/readahead-analyze.c \
3979 src/readahead/readahead-common.c \
3980 src/readahead/readahead-common.h
3982 systemd_readahead_LDADD = \
3983 libsystemd-internal.la \
3984 libudev-internal.la \
3985 libsystemd-shared.la
3988 src/readahead/sd-readahead.c \
3989 src/systemd/sd-readahead.h
3991 rootlibexec_PROGRAMS += \
3994 dist_systemunit_DATA += \
3995 units/systemd-readahead-drop.service \
3996 units/systemd-readahead-done.timer
3998 nodist_systemunit_DATA += \
3999 units/systemd-readahead-collect.service \
4000 units/systemd-readahead-replay.service \
4001 units/systemd-readahead-done.service
4006 test_ssd_SOURCES = \
4007 src/readahead/test-ssd.c \
4008 src/readahead/readahead-common.c \
4009 src/readahead/readahead-common.h
4012 libsystemd-internal.la \
4013 libudev-internal.la \
4014 libsystemd-shared.la
4019 units/systemd-readahead-collect.service.in \
4020 units/systemd-readahead-replay.service.in \
4021 units/systemd-readahead-done.service.in
4023 # ------------------------------------------------------------------------------
4025 systemd_bootchart_SOURCES = \
4026 src/bootchart/bootchart.c \
4027 src/bootchart/bootchart.h \
4028 src/bootchart/store.c \
4029 src/bootchart/store.h \
4030 src/bootchart/svg.c \
4033 systemd_bootchart_LDADD = \
4034 libsystemd-journal-internal.la \
4035 libsystemd-shared.la
4037 rootlibexec_PROGRAMS += \
4040 dist_pkgsysconf_DATA += \
4041 src/bootchart/bootchart.conf
4044 # ------------------------------------------------------------------------------
4045 if ENABLE_QUOTACHECK
4046 rootlibexec_PROGRAMS += \
4049 nodist_systemunit_DATA += \
4050 units/systemd-quotacheck.service
4052 systemd_quotacheck_SOURCES = \
4053 src/quotacheck/quotacheck.c
4055 systemd_quotacheck_LDADD = \
4056 libsystemd-shared.la
4060 units/systemd-quotacheck.service.in
4062 nodist_systemunit_DATA += \
4063 units/quotaon.service
4065 # ------------------------------------------------------------------------------
4066 if ENABLE_RANDOMSEED
4067 rootlibexec_PROGRAMS += \
4070 nodist_systemunit_DATA += \
4071 units/systemd-random-seed.service
4073 systemd_random_seed_SOURCES = \
4074 src/random-seed/random-seed.c
4076 systemd_random_seed_LDADD = \
4077 libsystemd-label.la \
4078 libsystemd-shared.la
4080 SYSINIT_TARGET_WANTS += \
4081 systemd-random-seed.service
4086 units/systemd-random-seed.service.in
4088 # ------------------------------------------------------------------------------
4090 rootlibexec_PROGRAMS += \
4093 nodist_systemunit_DATA += \
4094 units/systemd-backlight@.service
4096 systemd_backlight_SOURCES = \
4097 src/backlight/backlight.c
4099 systemd_backlight_LDADD = \
4100 libsystemd-label.la \
4101 libudev-internal.la \
4102 libsystemd-shared.la
4106 units/systemd-backlight@.service.in
4108 # ------------------------------------------------------------------------------
4110 rootlibexec_PROGRAMS += \
4113 nodist_systemunit_DATA += \
4114 units/systemd-rfkill@.service
4116 systemd_rfkill_SOURCES = \
4119 systemd_rfkill_LDADD = \
4120 libsystemd-label.la \
4121 libudev-internal.la \
4122 libsystemd-shared.la
4126 units/systemd-rfkill@.service.in
4128 # ------------------------------------------------------------------------------
4129 if HAVE_LIBCRYPTSETUP
4130 rootlibexec_PROGRAMS += \
4133 systemgenerator_PROGRAMS += \
4134 systemd-cryptsetup-generator
4136 dist_systemunit_DATA += \
4137 units/cryptsetup.target \
4138 units/cryptsetup-pre.target
4140 systemd_cryptsetup_SOURCES = \
4141 src/cryptsetup/cryptsetup.c
4143 systemd_cryptsetup_CFLAGS = \
4145 $(LIBCRYPTSETUP_CFLAGS)
4147 systemd_cryptsetup_LDADD = \
4148 libsystemd-label.la \
4149 libudev-internal.la \
4150 libsystemd-shared.la \
4151 $(LIBCRYPTSETUP_LIBS)
4153 systemd_cryptsetup_generator_SOURCES = \
4154 src/cryptsetup/cryptsetup-generator.c
4156 systemd_cryptsetup_generator_LDADD = \
4157 libsystemd-label.la \
4158 libsystemd-shared.la
4160 SYSINIT_TARGET_WANTS += \
4165 # ------------------------------------------------------------------------------
4167 systemd_hostnamed_SOURCES = \
4168 src/hostname/hostnamed.c
4170 systemd_hostnamed_LDADD = \
4171 libsystemd-label.la \
4172 libsystemd-internal.la \
4173 libsystemd-shared.la
4175 rootlibexec_PROGRAMS += \
4178 nodist_systemunit_DATA += \
4179 units/systemd-hostnamed.service
4181 dist_systemunit_DATA += \
4182 units/org.freedesktop.hostname1.busname
4184 dist_dbuspolicy_DATA += \
4185 src/hostname/org.freedesktop.hostname1.conf
4187 dist_dbussystemservice_DATA += \
4188 src/hostname/org.freedesktop.hostname1.service
4190 polkitpolicy_files += \
4191 src/hostname/org.freedesktop.hostname1.policy
4193 SYSTEM_UNIT_ALIASES += \
4194 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4196 BUSNAMES_TARGET_WANTS += \
4197 org.freedesktop.hostname1.busname
4199 hostnamectl_SOURCES = \
4200 src/hostname/hostnamectl.c
4202 hostnamectl_LDADD = \
4203 libsystemd-internal.la \
4204 libsystemd-shared.la
4209 dist_bashcompletion_DATA += \
4210 shell-completion/bash/hostnamectl
4212 dist_zshcompletion_DATA += \
4213 shell-completion/zsh/_hostnamectl
4217 polkitpolicy_in_files += \
4218 src/hostname/org.freedesktop.hostname1.policy.in
4221 units/systemd-hostnamed.service.in
4223 # ------------------------------------------------------------------------------
4225 dist_systemunit_DATA += \
4226 units/org.freedesktop.systemd1.busname
4228 BUSNAMES_TARGET_WANTS += \
4229 org.freedesktop.systemd1.busname
4232 # ------------------------------------------------------------------------------
4234 systemd_localed_SOURCES = \
4235 src/locale/localed.c
4237 systemd_localed_LDADD = \
4238 libsystemd-label.la \
4239 libsystemd-internal.la \
4240 libsystemd-shared.la
4242 nodist_systemunit_DATA += \
4243 units/systemd-localed.service
4245 dist_systemunit_DATA += \
4246 units/org.freedesktop.locale1.busname
4248 rootlibexec_PROGRAMS += \
4251 dist_dbuspolicy_DATA += \
4252 src/locale/org.freedesktop.locale1.conf
4254 dist_dbussystemservice_DATA += \
4255 src/locale/org.freedesktop.locale1.service
4257 polkitpolicy_files += \
4258 src/locale/org.freedesktop.locale1.policy
4260 SYSTEM_UNIT_ALIASES += \
4261 systemd-localed.service dbus-org.freedesktop.locale1.service
4263 BUSNAMES_TARGET_WANTS += \
4264 org.freedesktop.locale1.busname
4266 dist_pkgdata_DATA += \
4267 src/locale/kbd-model-map
4269 dist_noinst_SCRIPT = \
4270 src/locale/generate-kbd-model-map
4272 update-kbd-model-map: src/locale/generate-kbd-model-map
4273 $PYTHON $< >src/locale/kbd-model-map
4275 localectl_SOURCES = \
4276 src/locale/localectl.c
4279 libsystemd-internal.la \
4280 libsystemd-shared.la
4285 dist_bashcompletion_DATA += \
4286 shell-completion/bash/localectl
4288 dist_zshcompletion_DATA += \
4289 shell-completion/zsh/_localectl
4293 .PHONY: update-kbd-model-map
4295 polkitpolicy_in_files += \
4296 src/locale/org.freedesktop.locale1.policy.in
4299 units/systemd-localed.service.in
4301 # ------------------------------------------------------------------------------
4303 systemd_timedated_SOURCES = \
4304 src/timedate/timedated.c
4306 systemd_timedated_LDADD = \
4307 libsystemd-label.la \
4308 libsystemd-internal.la \
4309 libsystemd-shared.la
4311 rootlibexec_PROGRAMS += \
4314 dist_dbussystemservice_DATA += \
4315 src/timedate/org.freedesktop.timedate1.service
4317 dist_dbuspolicy_DATA += \
4318 src/timedate/org.freedesktop.timedate1.conf
4320 nodist_systemunit_DATA += \
4321 units/systemd-timedated.service
4323 dist_systemunit_DATA += \
4324 units/org.freedesktop.timedate1.busname
4326 polkitpolicy_files += \
4327 src/timedate/org.freedesktop.timedate1.policy
4329 SYSTEM_UNIT_ALIASES += \
4330 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4332 BUSNAMES_TARGET_WANTS += \
4333 org.freedesktop.timedate1.busname
4335 timedatectl_SOURCES = \
4336 src/timedate/timedatectl.c
4338 timedatectl_LDADD = \
4339 libsystemd-internal.la \
4340 libsystemd-shared.la
4345 dist_bashcompletion_DATA += \
4346 shell-completion/bash/timedatectl
4348 dist_zshcompletion_DATA += \
4349 shell-completion/zsh/_timedatectl
4352 polkitpolicy_in_files += \
4353 src/timedate/org.freedesktop.timedate1.policy.in
4356 units/systemd-timedated.service.in
4358 # ------------------------------------------------------------------------------
4360 systemd_timesyncd_SOURCES = \
4361 src/timesync/timesyncd.c \
4362 src/timesync/timesyncd.h
4364 nodist_systemd_timesyncd_SOURCES = \
4365 src/timesync/timesyncd-gperf.c
4368 src/timesync/timesyncd-gperf.gperf
4371 src/timesync/timesyncd-gperf.c
4373 systemd_timesyncd_LDADD = \
4374 libsystemd-resolve.la \
4375 libsystemd-network.la \
4376 libsystemd-label.la \
4377 libsystemd-capability.la \
4378 libsystemd-internal.la \
4379 libsystemd-shared.la \
4382 rootlibexec_PROGRAMS += \
4385 nodist_systemunit_DATA += \
4386 units/systemd-timesyncd.service
4388 GENERAL_ALIASES += \
4389 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-timesyncd.service
4392 units/systemd-timesyncd.service.in
4394 nodist_pkgsysconf_DATA += \
4395 src/timesync/timesyncd.conf
4398 src/timesync/timesyncd.conf.in
4401 src/timesync/timesyncd.conf
4404 # ------------------------------------------------------------------------------
4406 libnss_myhostname_la_SOURCES = \
4407 src/nss-myhostname/nss-myhostname.sym \
4408 src/nss-myhostname/nss-myhostname.c
4410 libnss_myhostname_la_LDFLAGS = \
4417 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4419 libnss_myhostname_la_LIBADD = \
4420 libsystemd-shared.la \
4421 libsystemd-internal.la
4423 lib_LTLIBRARIES += \
4424 libnss_myhostname.la
4427 # ------------------------------------------------------------------------------
4429 systemd_machined_SOURCES = \
4430 src/machine/machined.c \
4431 src/machine/machined.h
4433 systemd_machined_LDADD = \
4434 libsystemd-machine-core.la
4436 rootlibexec_PROGRAMS += \
4439 libsystemd_machine_core_la_SOURCES = \
4440 src/machine/machined-dbus.c \
4441 src/machine/machine.c \
4442 src/machine/machine.h \
4443 src/machine/machine-dbus.c
4445 libsystemd_machine_core_la_LIBADD = \
4446 libsystemd-label.la \
4447 libsystemd-internal.la \
4448 libudev-internal.la \
4449 libsystemd-shared.la
4451 noinst_LTLIBRARIES += \
4452 libsystemd-machine-core.la
4454 machinectl_SOURCES = \
4455 src/machine/machinectl.c
4457 machinectl_LDADD = \
4458 libsystemd-internal.la \
4459 libsystemd-shared.la
4461 rootbin_PROGRAMS += \
4464 dist_bashcompletion_DATA += \
4465 shell-completion/bash/machinectl
4467 test_machine_tables_SOURCES = \
4468 src/machine/test-machine-tables.c
4470 test_machine_tables_LDADD = \
4471 libsystemd-machine-core.la
4476 nodist_systemunit_DATA += \
4477 units/systemd-machined.service
4479 dist_systemunit_DATA += \
4480 units/machine.slice \
4481 units/org.freedesktop.machine1.busname
4483 dist_dbussystemservice_DATA += \
4484 src/machine/org.freedesktop.machine1.service
4486 dist_dbuspolicy_DATA += \
4487 src/machine/org.freedesktop.machine1.conf
4489 dist_zshcompletion_DATA += \
4490 shell-completion/zsh/_machinectl \
4491 shell-completion/zsh/_sd_machines
4493 SYSTEM_UNIT_ALIASES += \
4494 systemd-machined.service dbus-org.freedesktop.machine1.service
4496 BUSNAMES_TARGET_WANTS += \
4497 org.freedesktop.machine1.busname
4500 units/systemd-machined.service.in
4502 libnss_mymachines_la_SOURCES = \
4503 src/nss-mymachines/nss-mymachines.sym \
4504 src/nss-mymachines/nss-mymachines.c
4506 libnss_mymachines_la_LDFLAGS = \
4513 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4515 libnss_mymachines_la_LIBADD = \
4516 libsystemd-shared.la \
4517 libsystemd-internal.la
4519 lib_LTLIBRARIES += \
4520 libnss_mymachines.la
4523 # ------------------------------------------------------------------------------
4525 systemd_resolved_SOURCES = \
4526 src/resolve/resolved.h \
4527 src/resolve/resolved.c \
4528 src/resolve/resolved-manager.c
4530 systemd_resolved_CFLAGS = \
4534 nodist_systemd_resolved_SOURCES = \
4535 src/resolve/resolved-gperf.c
4538 src/resolve/resolved-gperf.gperf
4541 src/resolve/resolved-gperf.c
4543 systemd_resolved_LDADD = \
4544 libsystemd-capability.la \
4545 libsystemd-network.la \
4546 libsystemd-label.la \
4547 libsystemd-internal.la \
4548 libsystemd-shared.la
4550 rootlibexec_PROGRAMS += \
4553 nodist_systemunit_DATA += \
4554 units/systemd-resolved.service
4557 units/systemd-resolved.service.in
4559 GENERAL_ALIASES += \
4560 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4562 nodist_pkgsysconf_DATA += \
4563 src/resolve/resolved.conf
4566 src/resolve/resolved.conf.in
4569 src/resolve/resolved.conf
4573 # ------------------------------------------------------------------------------
4575 rootlibexec_PROGRAMS += \
4578 systemd_networkd_SOURCES = \
4579 src/network/networkd.c
4581 systemd_networkd_LDADD = \
4582 libsystemd-networkd-core.la \
4583 libsystemd-capability.la
4585 noinst_LTLIBRARIES += \
4586 libsystemd-networkd-core.la
4588 libsystemd_networkd_core_la_CFLAGS = \
4591 libsystemd_networkd_core_la_SOURCES = \
4592 src/libsystemd-network/network-internal.h \
4593 src/network/networkd.h \
4594 src/network/networkd-link.c \
4595 src/network/networkd-netdev.c \
4596 src/network/networkd-tunnel.c \
4597 src/network/networkd-veth.c \
4598 src/network/networkd-vxlan.c \
4599 src/network/networkd-vlan.c \
4600 src/network/networkd-macvlan.c \
4601 src/network/networkd-dummy.c \
4602 src/network/networkd-tuntap.c \
4603 src/network/networkd-bond.c \
4604 src/network/networkd-network.c \
4605 src/network/networkd-address.c \
4606 src/network/networkd-route.c \
4607 src/network/networkd-manager.c \
4608 src/network/networkd-address-pool.c
4610 nodist_libsystemd_networkd_core_la_SOURCES = \
4611 src/network/networkd-network-gperf.c \
4612 src/network/networkd-netdev-gperf.c
4614 libsystemd_networkd_core_la_LIBADD = \
4615 libudev-internal.la \
4616 libsystemd-internal.la \
4617 libsystemd-network.la \
4618 libsystemd-label.la \
4619 libsystemd-shared.la
4621 rootlibexec_PROGRAMS += \
4622 systemd-networkd-wait-online
4624 systemd_networkd_wait_online_CFLAGS = \
4627 systemd_networkd_wait_online_SOURCES = \
4628 src/libsystemd-network/network-internal.h \
4629 src/network/networkd-wait-online.c \
4630 src/network/networkd-wait-online.h
4632 systemd_networkd_wait_online_LDADD = \
4633 libsystemd-network.la \
4634 libudev-internal.la \
4635 libsystemd-internal.la \
4636 libsystemd-shared.la
4638 test_network_SOURCES = \
4639 src/network/test-network.c
4641 test_network_CFLAGS = \
4644 test_network_LDADD = \
4645 libsystemd-networkd-core.la
4650 nodist_systemunit_DATA += \
4651 units/systemd-networkd.service \
4652 units/systemd-networkd-wait-online.service
4654 GENERAL_ALIASES += \
4655 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4656 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4659 src/network/networkd-network-gperf.gperf \
4660 src/network/networkd-netdev-gperf.gperf \
4661 units/systemd-networkd.service.in \
4662 units/systemd-networkd-wait-online.service.in
4665 src/network/networkd-network-gperf.c \
4666 src/network/networkd-netdev-gperf.c
4669 # ------------------------------------------------------------------------------
4671 systemd_logind_SOURCES = \
4672 src/login/logind.c \
4675 nodist_systemd_logind_SOURCES = \
4676 src/login/logind-gperf.c
4678 systemd_logind_LDADD = \
4679 libsystemd-logind-core.la
4681 libsystemd_logind_core_la_SOURCES = \
4682 src/login/logind-core.c \
4683 src/login/logind-device.c \
4684 src/login/logind-device.h \
4685 src/login/logind-button.c \
4686 src/login/logind-button.h \
4687 src/login/logind-action.c \
4688 src/login/logind-action.h \
4689 src/login/logind-seat.c \
4690 src/login/logind-seat.h \
4691 src/login/logind-session.c \
4692 src/login/logind-session.h \
4693 src/login/logind-session-device.c \
4694 src/login/logind-session-device.h \
4695 src/login/logind-user.c \
4696 src/login/logind-user.h \
4697 src/login/logind-inhibit.c \
4698 src/login/logind-inhibit.h \
4699 src/login/logind-dbus.c \
4700 src/login/logind-session-dbus.c \
4701 src/login/logind-seat-dbus.c \
4702 src/login/logind-user-dbus.c \
4703 src/login/logind-acl.h
4705 libsystemd_logind_core_la_LIBADD = \
4706 libsystemd-label.la \
4707 libsystemd-capability.la \
4708 libsystemd-internal.la \
4709 libudev-internal.la \
4710 libsystemd-shared.la
4713 libsystemd_logind_core_la_SOURCES += \
4714 src/login/logind-acl.c
4716 libsystemd_logind_core_la_LIBADD += \
4720 noinst_LTLIBRARIES += \
4721 libsystemd-logind-core.la
4723 systemd_user_sessions_SOURCES = \
4724 src/login/user-sessions.c
4726 systemd_user_sessions_LDADD = \
4727 libsystemd-shared.la
4729 rootlibexec_PROGRAMS += \
4731 systemd-user-sessions
4733 loginctl_SOURCES = \
4734 src/login/loginctl.c \
4735 src/login/sysfs-show.c
4738 libsystemd-internal.la \
4739 libudev-internal.la \
4740 libsystemd-shared.la
4742 rootbin_PROGRAMS += \
4745 dist_bashcompletion_DATA += \
4746 shell-completion/bash/loginctl
4748 dist_zshcompletion_DATA += \
4749 shell-completion/zsh/_loginctl \
4750 shell-completion/zsh/_systemd-inhibit
4752 systemd_inhibit_SOURCES = \
4755 systemd_inhibit_LDADD = \
4756 libsystemd-internal.la \
4757 libsystemd-shared.la
4759 rootbin_PROGRAMS += \
4762 test_login_SOURCES = \
4763 src/libsystemd/sd-login/test-login.c
4765 test_login_LDADD = \
4766 libsystemd-internal.la \
4767 libsystemd-shared.la
4769 test_login_shared_SOURCES = \
4770 src/login/test-login-shared.c
4772 test_login_shared_LDADD = \
4773 libsystemd-internal.la \
4774 libsystemd-shared.la
4776 test_inhibit_SOURCES = \
4777 src/login/test-inhibit.c
4779 test_inhibit_LDADD = \
4780 libsystemd-internal.la \
4781 libsystemd-shared.la
4783 test_login_tables_SOURCES = \
4784 src/login/test-login-tables.c
4786 test_login_tables_LDADD = \
4787 libsystemd-logind-core.la
4798 pam_systemd_la_SOURCES = \
4799 src/login/pam_systemd.sym \
4800 src/login/pam_systemd.c
4802 pam_systemd_la_CFLAGS = \
4807 pam_systemd_la_LDFLAGS = \
4813 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
4815 pam_systemd_la_LIBADD = \
4816 libsystemd-capability.la \
4817 libsystemd-internal.la \
4818 libsystemd-shared.la \
4821 pamlib_LTLIBRARIES = \
4824 dist_pamconf_DATA = \
4825 src/login/systemd-user
4828 nodist_systemunit_DATA += \
4829 units/systemd-logind.service \
4830 units/systemd-user-sessions.service
4832 dist_systemunit_DATA += \
4834 units/org.freedesktop.login1.busname
4836 dist_dbussystemservice_DATA += \
4837 src/login/org.freedesktop.login1.service
4839 dist_dbuspolicy_DATA += \
4840 src/login/org.freedesktop.login1.conf
4842 dist_pkgsysconf_DATA += \
4843 src/login/logind.conf
4845 polkitpolicy_files += \
4846 src/login/org.freedesktop.login1.policy
4851 MULTI_USER_TARGET_WANTS += \
4852 systemd-logind.service \
4853 systemd-user-sessions.service
4855 SYSTEM_UNIT_ALIASES += \
4856 systemd-logind.service dbus-org.freedesktop.login1.service
4858 BUSNAMES_TARGET_WANTS += \
4859 org.freedesktop.login1.busname
4861 if ENABLE_MULTI_SEAT_X
4863 systemd_multi_seat_x_SOURCES = \
4864 src/login/multi-seat-x.c
4866 systemd_multi_seat_x_LDADD = \
4867 libsystemd-label.la \
4868 libsystemd-shared.la
4870 rootlibexec_PROGRAMS += \
4871 systemd-multi-seat-x
4875 dist_udevrules_DATA += \
4876 src/login/70-uaccess.rules \
4877 src/login/70-power-switch.rules
4879 nodist_udevrules_DATA += \
4880 src/login/71-seat.rules \
4881 src/login/73-seat-late.rules
4884 src/login/logind-gperf.c \
4885 src/login/71-seat.rules \
4886 src/login/73-seat-late.rules
4889 polkitpolicy_in_files += \
4890 src/login/org.freedesktop.login1.policy.in
4893 src/login/logind-gperf.gperf \
4894 src/login/71-seat.rules.in \
4895 src/login/73-seat-late.rules.in \
4896 units/systemd-logind.service.in \
4897 units/systemd-user-sessions.service.in
4899 # ------------------------------------------------------------------------------
4900 if HAVE_PYTHON_DEVEL
4901 pkgpyexec_LTLIBRARIES = \
4908 _journal_la_SOURCES = \
4909 src/python-systemd/_journal.c
4911 _journal_la_CFLAGS = \
4913 -fvisibility=default \
4914 $(PYTHON_DEVEL_CFLAGS)
4916 _journal_la_LDFLAGS = \
4922 _journal_la_LIBADD = \
4923 $(PYTHON_DEVEL_LIBS) \
4926 id128_la_SOURCES = \
4927 src/python-systemd/id128.c \
4928 src/python-systemd/pyutil.c \
4929 src/python-systemd/pyutil.h
4931 nodist_id128_la_SOURCES = \
4932 src/python-systemd/id128-constants.h
4936 -fvisibility=default \
4937 $(PYTHON_DEVEL_CFLAGS) \
4938 -I$(top_builddir)/src/python-systemd
4940 id128_la_LDFLAGS = \
4947 $(PYTHON_DEVEL_LIBS) \
4948 libsystemd-shared.la \
4951 _daemon_la_SOURCES = \
4952 src/python-systemd/_daemon.c \
4953 src/python-systemd/pyutil.c \
4954 src/python-systemd/pyutil.h
4956 _daemon_la_CFLAGS = \
4958 -fvisibility=default \
4959 $(PYTHON_DEVEL_CFLAGS) \
4960 -I$(top_builddir)/src/python-systemd
4962 _daemon_la_LDFLAGS = \
4968 _daemon_la_LIBADD = \
4969 $(PYTHON_DEVEL_LIBS) \
4970 libsystemd-shared.la \
4973 _reader_la_SOURCES = \
4974 src/python-systemd/_reader.c \
4975 src/python-systemd/pyutil.c \
4976 src/python-systemd/pyutil.h
4978 _reader_la_CFLAGS = \
4980 -fvisibility=default \
4981 $(PYTHON_DEVEL_CFLAGS)
4983 _reader_la_LDFLAGS = \
4989 _reader_la_LIBADD = \
4990 $(PYTHON_DEVEL_LIBS) \
4991 libsystemd-shared.la \
4994 login_la_SOURCES = \
4995 src/python-systemd/login.c \
4996 src/python-systemd/pyutil.c \
4997 src/python-systemd/pyutil.h
5001 -fvisibility=default \
5002 $(PYTHON_DEVEL_CFLAGS)
5004 login_la_LDFLAGS = \
5011 $(PYTHON_DEVEL_LIBS) \
5012 libsystemd-shared.la \
5015 dist_pkgpyexec_PYTHON = \
5016 src/python-systemd/journal.py \
5017 src/python-systemd/daemon.py \
5018 src/python-systemd/__init__.py
5020 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5021 $(AM_V_at)$(MKDIR_P) $(dir $@)
5022 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5025 src/python-systemd/id128-constants.h
5027 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5029 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5030 $(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/
5031 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5034 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5035 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5038 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5039 $(MAKE) DESTDIR="$$dir" install && \
5040 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5045 CLEAN_LOCAL_HOOKS += clean-sphinx
5047 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5050 -rm -rf docs/html/python-systemd/
5052 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5054 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5055 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5057 # ------------------------------------------------------------------------------
5058 if ENABLE_COMPAT_LIBS
5060 src/compat-libs/linkwarning.h
5062 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5063 $(AM_V_at)$(MKDIR_P) $(dir $@)
5064 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5067 libsystemd-journal.c \
5068 libsystemd-login.c \
5069 libsystemd-id128.c \
5072 libsystemd_journal_la_SOURCES = \
5073 libsystemd-journal.c \
5074 src/compat-libs/libsystemd-journal.sym
5076 libsystemd_journal_la_CPPFLAGS = \
5078 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5080 libsystemd_journal_la_LDFLAGS = \
5082 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5083 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5085 libsystemd_journal_la_LIBADD = \
5086 libsystemd-journal-internal.la \
5087 libsystemd-internal.la \
5088 libsystemd-shared.la
5090 libsystemd_login_la_SOURCES = \
5091 libsystemd-login.c \
5092 src/compat-libs/libsystemd-login.sym
5094 libsystemd_login_la_CPPFLAGS = \
5096 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5098 libsystemd_login_la_LDFLAGS = \
5100 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5101 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5103 libsystemd_login_la_LIBADD = \
5104 libsystemd-internal.la \
5105 libsystemd-shared.la
5107 libsystemd_id128_la_SOURCES = \
5108 libsystemd-id128.c \
5109 src/compat-libs/libsystemd-id128.sym
5111 libsystemd_id128_la_CPPFLAGS = \
5113 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5115 libsystemd_id128_la_LDFLAGS = \
5117 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5118 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5120 libsystemd_id128_la_LIBADD = \
5121 libsystemd-internal.la \
5122 libsystemd-shared.la
5124 libsystemd_daemon_la_SOURCES = \
5125 libsystemd-daemon.c \
5126 src/compat-libs/libsystemd-daemon.sym
5128 libsystemd_daemon_la_CPPFLAGS = \
5130 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5132 libsystemd_daemon_la_LDFLAGS = \
5134 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5135 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5137 libsystemd_daemon_la_LIBADD = \
5138 libsystemd-internal.la \
5139 libsystemd-shared.la
5141 lib_LTLIBRARIES += \
5142 libsystemd-journal.la \
5143 libsystemd-login.la \
5144 libsystemd-id128.la \
5145 libsystemd-daemon.la
5147 pkgconfiglib_DATA += \
5148 src/compat-libs/libsystemd-journal.pc \
5149 src/compat-libs/libsystemd-login.pc \
5150 src/compat-libs/libsystemd-id128.pc \
5151 src/compat-libs/libsystemd-daemon.pc
5153 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5154 compat-lib-install-hook:
5155 libname=libsystemd-login.so && $(move-to-rootlibdir)
5156 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5157 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5158 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5160 compat-lib-uninstall-hook:
5161 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5162 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5163 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5164 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5166 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5167 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5171 src/compat-libs/libsystemd-journal.pc.in \
5172 src/compat-libs/libsystemd-login.pc.in \
5173 src/compat-libs/libsystemd-id128.pc.in \
5174 src/compat-libs/libsystemd-daemon.pc.in
5176 # ------------------------------------------------------------------------------
5178 '|rootlibexecdir=$(rootlibexecdir)|' \
5179 '|rootbindir=$(rootbindir)|' \
5180 '|bindir=$(bindir)|' \
5181 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5182 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5183 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5184 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5185 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5186 '|pkgdatadir=$(pkgdatadir)|' \
5187 '|systemunitdir=$(systemunitdir)|' \
5188 '|userunitdir=$(userunitdir)|' \
5189 '|systempresetdir=$(systempresetdir)|' \
5190 '|userpresetdir=$(userpresetdir)|' \
5191 '|udevhwdbdir=$(udevhwdbdir)|' \
5192 '|udevrulesdir=$(udevrulesdir)|' \
5193 '|catalogdir=$(catalogdir)|' \
5194 '|tmpfilesdir=$(tmpfilesdir)|' \
5195 '|sysusersdir=$(sysusersdir)|' \
5196 '|sysctldir=$(sysctldir)|' \
5197 '|systemgeneratordir=$(systemgeneratordir)|' \
5198 '|usergeneratordir=$(usergeneratordir)|' \
5199 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5200 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5201 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5202 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5203 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5204 '|prefix=$(prefix)|' \
5205 '|exec_prefix=$(exec_prefix)|' \
5206 '|libdir=$(libdir)|' \
5207 '|includedir=$(includedir)|' \
5208 '|VERSION=$(VERSION)|' \
5209 '|rootprefix=$(rootprefix)|' \
5210 '|udevlibexecdir=$(udevlibexecdir)|' \
5211 '|SUSHELL=$(SUSHELL)|' \
5212 '|DEBUGTTY=$(DEBUGTTY)|' \
5215 '|MKDIR_P=$(MKDIR_P)|' \
5216 '|QUOTAON=$(QUOTAON)|' \
5217 '|QUOTACHECK=$(QUOTACHECK)|' \
5218 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5219 '|VARLOGDIR=$(varlogdir)|' \
5220 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5221 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5222 '|PYTHON=$(PYTHON)|' \
5223 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5224 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5225 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5226 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5227 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5228 '|TTY_GID=$(TTY_GID)|' \
5229 '|systemsleepdir=$(systemsleepdir)|' \
5230 '|systemshutdowndir=$(systemshutdowndir)|' \
5231 '|binfmtdir=$(binfmtdir)|' \
5232 '|modulesloaddir=$(modulesloaddir)|'
5235 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5236 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5245 sysctl.d/%: sysctl.d/%.in
5251 src/core/macros.%: src/core/macros.%.in
5254 src/%.policy.in: src/%.policy.in.in
5265 $(AM_V_GEN)chmod +x $@
5267 src/%.c: src/%.gperf
5268 $(AM_V_at)$(MKDIR_P) $(dir $@)
5269 $(AM_V_GPERF)$(GPERF) < $< > $@
5272 $(AM_V_at)$(MKDIR_P) $(dir $@)
5273 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5276 $(AM_V_at)$(MKDIR_P) $(dir $@)
5277 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5279 units/user/%: units/%.m4
5280 $(AM_V_at)$(MKDIR_P) $(dir $@)
5281 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5284 dist_polkitpolicy_DATA = \
5285 $(polkitpolicy_files) \
5286 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5290 $(polkitpolicy_in_files) \
5291 $(polkitpolicy_in_in_files)
5294 $(nodist_systemunit_DATA) \
5295 $(nodist_userunit_DATA) \
5296 $(pkgconfigdata_DATA) \
5297 $(pkgconfiglib_DATA) \
5298 $(nodist_polkitpolicy_DATA)
5300 # ------------------------------------------------------------------------------
5302 man/custom-entities.ent: configure.ac
5303 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5304 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5305 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5309 man/custom-entities.ent
5314 --stringparam man.output.quietly 1 \
5315 --stringparam funcsynopsis.style ansi \
5316 --stringparam man.authors.section.enabled 0 \
5317 --stringparam man.copyright.section.enabled 0 \
5318 --stringparam systemd.version $(VERSION) \
5319 --path '$(builddir)/man:$(srcdir)/man'
5321 XSLTPROC_PROCESS_MAN = \
5322 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5324 XSLTPROC_PROCESS_HTML = \
5325 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5327 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5328 $(XSLTPROC_PROCESS_MAN)
5330 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5331 $(XSLTPROC_PROCESS_MAN)
5333 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5334 $(XSLTPROC_PROCESS_MAN)
5336 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5337 $(XSLTPROC_PROCESS_MAN)
5339 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5340 $(XSLTPROC_PROCESS_MAN)
5342 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5343 $(XSLTPROC_PROCESS_HTML)
5346 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5352 man/custom-html.xsl \
5355 # ------------------------------------------------------------------------------
5358 docs/sysvinit/README
5363 docs/sysvinit/README: docs/sysvinit/README.in
5366 docs/var-log/README: docs/var-log/README.in
5370 docs/sysvinit/README \
5375 docs/sysvinit/README.in \
5376 docs/var-log/README.in
5378 SOCKETS_TARGET_WANTS += \
5379 systemd-initctl.socket \
5380 systemd-shutdownd.socket
5383 RUNLEVEL1_TARGET_WANTS += \
5384 systemd-update-utmp-runlevel.service
5385 RUNLEVEL2_TARGET_WANTS += \
5386 systemd-update-utmp-runlevel.service
5387 RUNLEVEL3_TARGET_WANTS += \
5388 systemd-update-utmp-runlevel.service
5389 RUNLEVEL4_TARGET_WANTS += \
5390 systemd-update-utmp-runlevel.service
5391 RUNLEVEL5_TARGET_WANTS += \
5392 systemd-update-utmp-runlevel.service
5395 SYSINIT_TARGET_WANTS += \
5396 systemd-update-utmp.service \
5397 systemd-update-done.service \
5400 LOCAL_FS_TARGET_WANTS += \
5401 systemd-remount-fs.service \
5404 MULTI_USER_TARGET_WANTS += \
5406 systemd-ask-password-wall.path
5408 SYSINIT_TARGET_WANTS += \
5409 dev-hugepages.mount \
5411 sys-kernel-config.mount \
5412 sys-kernel-debug.mount \
5413 sys-fs-fuse-connections.mount \
5414 systemd-sysctl.service \
5415 systemd-ask-password-console.path
5418 SYSTEM_UNIT_ALIASES += \
5419 poweroff.target runlevel0.target \
5420 rescue.target runlevel1.target \
5421 multi-user.target runlevel2.target \
5422 multi-user.target runlevel3.target \
5423 multi-user.target runlevel4.target \
5424 graphical.target runlevel5.target \
5425 reboot.target runlevel6.target
5428 SYSTEM_UNIT_ALIASES += \
5429 graphical.target default.target \
5430 reboot.target ctrl-alt-del.target \
5431 getty@.service autovt@.service
5433 USER_UNIT_ALIASES += \
5434 $(systemunitdir)/shutdown.target shutdown.target \
5435 $(systemunitdir)/sockets.target sockets.target \
5436 $(systemunitdir)/busnames.target busnames.target \
5437 $(systemunitdir)/timers.target timers.target \
5438 $(systemunitdir)/paths.target paths.target \
5439 $(systemunitdir)/bluetooth.target bluetooth.target \
5440 $(systemunitdir)/printer.target printer.target \
5441 $(systemunitdir)/sound.target sound.target \
5442 $(systemunitdir)/smartcard.target smartcard.target
5444 GENERAL_ALIASES += \
5445 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5446 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5447 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5448 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5452 $(systemunitdir)/runlevel1.target.wants \
5453 $(systemunitdir)/runlevel2.target.wants \
5454 $(systemunitdir)/runlevel3.target.wants \
5455 $(systemunitdir)/runlevel4.target.wants \
5456 $(systemunitdir)/runlevel5.target.wants
5460 $(prefix)/lib/modules-load.d \
5461 $(sysconfdir)/modules-load.d \
5462 $(prefix)/lib/systemd/network \
5463 $(sysconfdir)/systemd/network \
5464 $(prefix)/lib/sysctl.d \
5465 $(sysconfdir)/sysctl.d \
5466 $(prefix)/lib/kernel/install.d \
5467 $(sysconfdir)/kernel/install.d \
5468 $(systemshutdowndir) \
5470 $(systemgeneratordir) \
5471 $(usergeneratordir) \
5474 $(pkgsysconfdir)/system \
5475 $(pkgsysconfdir)/system/multi-user.target.wants \
5476 $(pkgsysconfdir)/system/getty.target.wants \
5477 $(pkgsysconfdir)/user \
5478 $(dbussessionservicedir) \
5479 $(sysconfdir)/xdg/systemd
5481 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5483 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5485 install-data-hook: $(INSTALL_DATA_HOOKS)
5487 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5489 clean-local: $(CLEAN_LOCAL_HOOKS)
5490 rm -rf $(abs_srcdir)/install-tree
5491 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5492 $(abs_srcdir)/hwdb/iab.txt
5494 DISTCHECK_CONFIGURE_FLAGS = \
5495 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5496 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5497 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5498 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5499 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5500 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5501 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5502 --with-rootprefix=$$dc_install_base \
5503 --disable-split-usr \
5505 --enable-compat-libs
5508 DISTCHECK_CONFIGURE_FLAGS += \
5509 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5510 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5512 DISTCHECK_CONFIGURE_FLAGS += \
5513 --with-sysvinit-path= \
5514 --with-sysvrcnd-path=
5518 DISTCHECK_CONFIGURE_FLAGS += \
5523 DISTCHECK_CONFIGURE_FLAGS += \
5528 # Require python when making dist
5530 .PHONY: dist-check-python
5533 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
5537 dist-check-compat-libs:
5538 if !ENABLE_COMPAT_LIBS
5539 @echo "*** compat-libs must be enabled in order to make dist"
5543 dist: dist-check-python dist-check-compat-libs
5545 # check "broken" platforms limited toolchains for link breakage before we release
5548 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5552 ( cd $(top_srcdir)/hwdb && \
5553 wget -N http://www.linux-usb.org/usb.ids \
5554 http://pci-ids.ucw.cz/v2.2/pci.ids \
5555 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5556 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5559 .PHONY: kdbus-update
5561 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5562 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5566 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5568 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5570 upload: all check dist
5571 scp systemd-$(VERSION).tar.xz $(www_target)
5574 doc-sync: all destdir-sphinx
5575 gtkdoc-rebase --html-dir=docs/libudev/html --online
5576 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5577 gtkdoc-rebase --html-dir=docs/gudev/html --online
5578 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5579 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5580 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5584 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5585 scp man/*.html tango:public/systemd-man/
5587 .PHONY: install-tree
5589 rm -rf $(abs_srcdir)/install-tree
5590 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5591 tree $(abs_srcdir)/install-tree
5593 # Let's run all tests of the test suite, but under valgrind. Let's
5594 # exclude the one perl script we have in there
5595 .PHONY: valgrind-tests
5596 valgrind-tests: $(TESTS)
5597 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5598 if file $$f | grep -q shell; then \
5599 echo -e "$${x}Skipping non-binary $$f"; else \
5600 echo -e "$${x}Running $$f"; \
5601 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5606 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5608 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5609 $(AM_V_GEN)cat $^ > $@
5611 .PHONY: check-api-docs
5612 check-api-docs: exported man
5613 $(AM_V_GEN)for symbol in `cat exported` ; do \
5614 if test -f $(builddir)/man/$$symbol.html ; then \
5615 echo " Symbol $$symbol() is documented." ; \
5617 echo "‣ Symbol $$symbol() lacks documentation." ; \
5621 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5622 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5624 undefined defined: $(ALL_OBJECTS)
5625 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5626 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5627 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5633 .PHONY: check-api-unused
5634 check-api-unused: defined undefined exported
5635 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5637 .PHONY: check-includes
5638 check-includes: $(top_srcdir)/tools/check-includes.pl
5639 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5640 | xargs $(top_srcdir)/tools/check-includes.pl
5643 $(top_srcdir)/tools/check-includes.pl
5645 # Stupid test that everything purported to be exported really is
5646 define generate-sym-test
5647 $(AM_V_at)$(MKDIR_P) $(dir $@)
5648 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5649 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5650 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5651 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5652 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5653 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5654 $(AM_V_at)printf 'return 0; }\n' >> $@
5657 test-libsystemd-sym.c: \
5658 $(top_builddir)/src/libsystemd/libsystemd.sym \
5659 src/systemd/sd-journal.h \
5660 src/systemd/sd-daemon.h \
5661 src/systemd/sd-login.h \
5662 src/systemd/sd-bus.h \
5663 src/systemd/sd-utf8.h \
5664 src/systemd/sd-resolve.h \
5665 src/systemd/sd-path.h
5666 $(generate-sym-test)
5668 test-libudev-sym.c: \
5669 src/libudev/libudev.sym \
5671 $(generate-sym-test)
5673 test_libsystemd_sym_SOURCES = \
5674 test-libsystemd-sym.c
5675 test_libsystemd_sym_LDADD = \
5678 test_libudev_sym_SOURCES = \
5680 test_libudev_sym_CFLAGS = \
5682 -Wno-deprecated-declarations
5683 test_libudev_sym_LDADD = \
5687 $(test_libsystemd_sym_SOURCES) \
5688 $(test_libudev_sym_SOURCES)
5691 test-libsystemd-sym \
5696 cppcheck --enable=all -q $(top_srcdir)
5698 # Used to extract compile flags for YCM.
5703 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u