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/systemd-analyze \
386 shell-completion/bash/systemd-cat \
387 shell-completion/bash/systemd-cgls \
388 shell-completion/bash/systemd-cgtop \
389 shell-completion/bash/systemd-delta \
390 shell-completion/bash/systemd-detect-virt \
391 shell-completion/bash/systemd-nspawn \
392 shell-completion/bash/systemd-run \
393 shell-completion/bash/udevadm \
394 shell-completion/bash/kernel-install
396 nodist_bashcompletion_DATA = \
397 shell-completion/bash/systemctl
399 dist_zshcompletion_DATA = \
400 shell-completion/zsh/_journalctl \
401 shell-completion/zsh/_udevadm \
402 shell-completion/zsh/_kernel-install \
403 shell-completion/zsh/_systemd-nspawn \
404 shell-completion/zsh/_systemd-analyze \
405 shell-completion/zsh/_systemd-run \
406 shell-completion/zsh/_sd_hosts_or_user_at_host \
407 shell-completion/zsh/_systemd-delta \
408 shell-completion/zsh/_systemd
410 nodist_zshcompletion_DATA = \
411 shell-completion/zsh/_systemctl
414 shell-completion/bash/systemctl.in \
415 shell-completion/zsh/_systemctl.in
418 $(nodist_bashcompletion_DATA) \
419 $(nodist_zshcompletion_DATA)
422 sysctl.d/50-default.conf
424 dist_systemunit_DATA = \
425 units/graphical.target \
426 units/multi-user.target \
427 units/emergency.target \
428 units/sysinit.target \
433 units/local-fs.target \
434 units/local-fs-pre.target \
435 units/initrd.target \
436 units/initrd-fs.target \
437 units/initrd-root-fs.target \
438 units/remote-fs.target \
439 units/remote-fs-pre.target \
440 units/network.target \
441 units/network-pre.target \
442 units/network-online.target \
443 units/nss-lookup.target \
444 units/nss-user-lookup.target \
445 units/hibernate.target \
446 units/hybrid-sleep.target \
447 units/poweroff.target \
448 units/reboot.target \
449 units/rescue.target \
450 units/rpcbind.target \
451 units/time-sync.target \
452 units/shutdown.target \
454 units/umount.target \
455 units/sigpwr.target \
457 units/sockets.target \
458 units/busnames.target \
459 units/timers.target \
461 units/suspend.target \
463 units/slices.target \
466 units/systemd-initctl.socket \
467 units/systemd-shutdownd.socket \
468 units/syslog.socket \
469 units/dev-hugepages.mount \
470 units/dev-mqueue.mount \
471 units/sys-kernel-config.mount \
472 units/sys-kernel-debug.mount \
473 units/sys-fs-fuse-connections.mount \
475 units/printer.target \
477 units/bluetooth.target \
478 units/smartcard.target \
479 units/systemd-ask-password-wall.path \
480 units/systemd-ask-password-console.path \
481 units/systemd-udevd-control.socket \
482 units/systemd-udevd-kernel.socket \
483 units/system-update.target \
484 units/initrd-switch-root.target \
485 units/ldconfig.service
487 nodist_systemunit_DATA = \
488 units/getty@.service \
489 units/serial-getty@.service \
490 units/console-shell.service \
491 units/console-getty.service \
492 units/container-getty@.service \
493 units/systemd-initctl.service \
494 units/systemd-shutdownd.service \
495 units/systemd-remount-fs.service \
496 units/systemd-update-utmp.service \
497 units/systemd-update-utmp-runlevel.service \
498 units/systemd-ask-password-wall.service \
499 units/systemd-ask-password-console.service \
500 units/systemd-sysctl.service \
501 units/emergency.service \
502 units/rescue.service \
503 units/user@.service \
504 units/systemd-hibernate.service \
505 units/systemd-hybrid-sleep.service \
506 units/systemd-suspend.service \
507 units/systemd-halt.service \
508 units/systemd-poweroff.service \
509 units/systemd-reboot.service \
510 units/systemd-kexec.service \
511 units/systemd-fsck@.service \
512 units/systemd-fsck-root.service \
513 units/systemd-udevd.service \
514 units/systemd-udev-trigger.service \
515 units/systemd-udev-settle.service \
516 units/systemd-udev-hwdb-update.service \
517 units/debug-shell.service \
518 units/initrd-parse-etc.service \
519 units/initrd-cleanup.service \
520 units/initrd-udevadm-cleanup-db.service \
521 units/initrd-switch-root.service \
522 units/systemd-nspawn@.service \
523 units/systemd-update-done.service
525 dist_userunit_DATA = \
526 units/user/basic.target \
527 units/user/default.target \
528 units/user/exit.target
530 nodist_userunit_DATA = \
531 units/user/systemd-exit.service
533 dist_systempreset_DATA = \
534 system-preset/90-systemd.preset
537 units/getty@.service.m4 \
538 units/serial-getty@.service.m4 \
539 units/console-shell.service.m4.in \
540 units/console-getty.service.m4.in \
541 units/container-getty@.service.m4.in \
542 units/rescue.service.m4.in \
543 units/systemd-initctl.service.in \
544 units/systemd-shutdownd.service.in \
545 units/systemd-remount-fs.service.in \
546 units/systemd-update-utmp.service.in \
547 units/systemd-update-utmp-runlevel.service.in \
548 units/systemd-ask-password-wall.service.in \
549 units/systemd-ask-password-console.service.in \
550 units/systemd-sysctl.service.in \
551 units/emergency.service.in \
552 units/systemd-halt.service.in \
553 units/systemd-poweroff.service.in \
554 units/systemd-reboot.service.in \
555 units/systemd-kexec.service.in \
556 units/user/systemd-exit.service.in \
557 units/systemd-fsck@.service.in \
558 units/systemd-fsck-root.service.in \
559 units/user@.service.in \
560 units/debug-shell.service.in \
561 units/systemd-hibernate.service.in \
562 units/systemd-hybrid-sleep.service.in \
563 units/systemd-suspend.service.in \
564 units/quotaon.service.in \
565 units/initrd-parse-etc.service.in \
566 units/initrd-cleanup.service.in \
567 units/initrd-udevadm-cleanup-db.service.in \
568 units/initrd-switch-root.service.in \
569 units/systemd-nspawn@.service.in \
570 units/systemd-update-done.service.in
573 units/console-shell.service.m4 \
574 units/console-getty.service.m4 \
575 units/container-getty@.service.m4 \
576 units/rescue.service.m4 \
577 units/user@.service.m4
580 nodist_systemunit_DATA += \
581 units/rc-local.service \
582 units/halt-local.service
584 systemgenerator_PROGRAMS += \
585 systemd-sysv-generator \
586 systemd-rc-local-generator
590 units/rc-local.service.in \
591 units/halt-local.service.in
593 # automake is broken and can't handle files with a dash in front
594 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
596 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
598 units-uninstall-hook:
599 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
601 INSTALL_DATA_HOOKS += units-install-hook
602 UNINSTALL_DATA_HOOKS += units-uninstall-hook
611 src/libsystemd/sd-bus/PORTING-DBUS1 \
612 src/libsystemd/sd-bus/DIFFERENCES \
613 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
615 @INTLTOOL_POLICY_RULE@
617 # ------------------------------------------------------------------------------
622 include Makefile-man.am
624 .PHONY: man update-man-list
625 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
628 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
630 ${XML_FILES:.xml=.html}
632 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
649 $(AM_V_at)$(MKDIR_P) $(dir $@)
650 $(AM_V_LN)$(LN_S) -f ../../man $@
659 man/index.html: man/systemd.index.html
660 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
668 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
669 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
670 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
672 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
673 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
674 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
675 @echo "Makefile-man.am has been regenerated"
677 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
678 $(AM_V_at)$(MKDIR_P) $(dir $@)
679 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
681 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
682 $(AM_V_at)$(MKDIR_P) $(dir $@)
683 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
686 man/systemd.index.xml \
688 man/systemd.directives.xml
691 man/systemd.index.xml \
692 man/systemd.directives.xml
703 tools/make-man-index.py \
704 tools/make-directive-index.py \
705 tools/make-man-rules.py \
708 # ------------------------------------------------------------------------------
709 noinst_LTLIBRARIES += \
712 libsystemd_shared_la_SOURCES = \
713 src/shared/linux/auto_dev-ioctl.h \
714 src/shared/linux/fanotify.h \
715 src/shared/ioprio.h \
716 src/shared/missing.h \
717 src/shared/initreq.h \
718 src/shared/securebits.h \
719 src/shared/special.h \
723 src/shared/sparse-endian.h \
724 src/shared/refcnt.h \
725 src/shared/udev-util.h \
726 src/shared/bus-errors.h \
727 src/shared/device-nodes.c \
728 src/shared/device-nodes.h \
733 src/shared/architecture.c \
734 src/shared/architecture.h \
735 src/shared/efivars.c \
736 src/shared/efivars.h \
737 src/shared/path-util.c \
738 src/shared/path-util.h \
739 src/shared/time-util.c \
740 src/shared/time-util.h \
741 src/shared/locale-util.c \
742 src/shared/locale-util.h \
743 src/shared/hashmap.c \
744 src/shared/hashmap.h \
745 src/shared/siphash24.c \
746 src/shared/siphash24.h \
753 src/shared/sleep-config.c \
754 src/shared/sleep-config.h \
757 src/shared/env-util.c \
758 src/shared/env-util.h \
759 src/shared/strbuf.c \
760 src/shared/strbuf.h \
761 src/shared/strxcpyx.c \
762 src/shared/strxcpyx.h \
763 src/shared/conf-parser.c \
764 src/shared/conf-parser.h \
767 src/shared/ratelimit.h \
768 src/shared/ratelimit.c \
769 src/shared/exit-status.c \
770 src/shared/exit-status.h \
773 src/shared/gunicode.c \
774 src/shared/gunicode.h \
777 src/shared/socket-util.c \
778 src/shared/socket-util.h \
779 src/shared/in-addr-util.c \
780 src/shared/in-addr-util.h \
781 src/shared/conf-files.c \
782 src/shared/conf-files.h \
783 src/shared/cgroup-util.c \
784 src/shared/cgroup-util.h \
785 src/shared/cgroup-show.c \
786 src/shared/cgroup-show.h \
787 src/shared/unit-name.c \
788 src/shared/unit-name.h \
789 src/shared/utmp-wtmp.c \
790 src/shared/utmp-wtmp.h \
791 src/shared/watchdog.c \
792 src/shared/watchdog.h \
793 src/shared/spawn-ask-password-agent.c \
794 src/shared/spawn-ask-password-agent.h \
795 src/shared/replace-var.c \
796 src/shared/replace-var.h \
797 src/shared/spawn-polkit-agent.c \
798 src/shared/spawn-polkit-agent.h \
799 src/shared/clock-util.c \
800 src/shared/clock-util.h \
801 src/shared/time-dst.c \
802 src/shared/time-dst.h \
803 src/shared/calendarspec.c \
804 src/shared/calendarspec.h \
805 src/shared/fileio.c \
806 src/shared/fileio.h \
807 src/shared/output-mode.h \
808 src/shared/MurmurHash2.c \
809 src/shared/MurmurHash2.h \
810 src/shared/acpi-fpdt.h \
811 src/shared/acpi-fpdt.c \
812 src/shared/boot-timestamps.h \
813 src/shared/boot-timestamps.c \
816 src/shared/smack-util.c \
817 src/shared/smack-util.h \
818 src/shared/apparmor-util.c \
819 src/shared/apparmor-util.h \
820 src/shared/ima-util.c \
821 src/shared/ima-util.h \
822 src/shared/ptyfwd.c \
823 src/shared/ptyfwd.h \
824 src/shared/errno-list.c \
825 src/shared/errno-list.h \
826 src/shared/af-list.c \
827 src/shared/af-list.h \
832 src/shared/condition-util.c \
833 src/shared/condition-util.h \
834 src/shared/bus-label.c \
835 src/shared/bus-label.h \
837 src/shared/clean-ipc.h \
838 src/shared/clean-ipc.c \
839 src/shared/login-shared.c \
840 src/shared/login-shared.h \
845 src/shared/eventfd-util.c \
846 src/shared/eventfd-util.h \
849 src/shared/base-filesystem.c \
850 src/shared/base-filesystem.h \
851 src/shared/nss-util.h
853 nodist_libsystemd_shared_la_SOURCES = \
854 src/shared/errno-from-name.h \
855 src/shared/errno-to-name.h \
856 src/shared/af-from-name.h \
857 src/shared/af-to-name.h
859 libsystemd_shared_la_CFLAGS = \
864 # ------------------------------------------------------------------------------
865 noinst_LTLIBRARIES += \
868 libsystemd_units_la_SOURCES = \
869 src/shared/install.c \
870 src/shared/install.h \
871 src/shared/install-printf.c \
872 src/shared/install-printf.h \
873 src/shared/path-lookup.c \
874 src/shared/path-lookup.h \
875 src/shared/specifier.c \
876 src/shared/specifier.h
878 # ------------------------------------------------------------------------------
879 noinst_LTLIBRARIES += \
882 libsystemd_label_la_SOURCES = \
883 src/shared/socket-label.c \
886 src/shared/selinux-util.c \
887 src/shared/selinux-util.h \
888 src/shared/mkdir-label.c \
889 src/shared/ask-password-api.c \
890 src/shared/ask-password-api.h \
891 src/shared/fileio-label.c \
892 src/shared/fileio-label.h \
893 src/shared/dev-setup.c \
894 src/shared/dev-setup.h \
895 src/shared/dropin.c \
896 src/shared/dropin.h \
897 src/shared/generator.h \
898 src/shared/generator.c
900 libsystemd_label_la_CFLAGS = \
904 libsystemd_label_la_LIBADD = \
907 # ------------------------------------------------------------------------------
910 noinst_LTLIBRARIES += \
911 libsystemd-seccomp.la
913 libsystemd_seccomp_la_SOURCES = \
914 src/shared/seccomp-util.h \
915 src/shared/seccomp-util.c
917 libsystemd_seccomp_la_CFLAGS = \
921 libsystemd_seccomp_la_LIBADD = \
925 # ------------------------------------------------------------------------------
926 noinst_LTLIBRARIES += \
929 libsystemd_logs_la_SOURCES = \
930 src/shared/logs-show.c \
931 src/shared/logs-show.h
933 # ------------------------------------------------------------------------------
934 noinst_LTLIBRARIES += \
935 libsystemd-capability.la
937 libsystemd_capability_la_SOURCES = \
938 src/shared/capability.c \
939 src/shared/capability.h
941 libsystemd_capability_la_CFLAGS = \
945 libsystemd_capability_la_LIBADD = \
948 # ------------------------------------------------------------------------------
950 noinst_LTLIBRARIES += \
953 libsystemd_acl_la_SOURCES = \
954 src/shared/acl-util.c \
955 src/shared/acl-util.h
957 libsystemd_acl_la_CFLAGS = \
961 libsystemd_acl_la_LIBADD = \
965 # ------------------------------------------------------------------------------
966 noinst_LTLIBRARIES += \
969 libsystemd_core_la_SOURCES = \
972 src/core/unit-printf.c \
973 src/core/unit-printf.h \
978 src/core/transaction.c \
979 src/core/transaction.h \
980 src/core/load-fragment.c \
981 src/core/load-fragment.h \
990 src/core/snapshot.c \
991 src/core/snapshot.h \
996 src/core/automount.c \
997 src/core/automount.h \
1008 src/core/load-dropin.c \
1009 src/core/load-dropin.h \
1010 src/core/execute.c \
1011 src/core/execute.h \
1016 src/core/dbus-manager.c \
1017 src/core/dbus-manager.h \
1018 src/core/dbus-unit.c \
1019 src/core/dbus-unit.h \
1020 src/core/dbus-job.c \
1021 src/core/dbus-job.h \
1022 src/core/dbus-service.c \
1023 src/core/dbus-service.h \
1024 src/core/dbus-socket.c \
1025 src/core/dbus-socket.h \
1026 src/core/dbus-busname.c \
1027 src/core/dbus-busname.h \
1028 src/core/dbus-target.c \
1029 src/core/dbus-target.h \
1030 src/core/dbus-snapshot.c \
1031 src/core/dbus-snapshot.h \
1032 src/core/dbus-device.c \
1033 src/core/dbus-device.h \
1034 src/core/dbus-mount.c \
1035 src/core/dbus-mount.h \
1036 src/core/dbus-automount.c \
1037 src/core/dbus-automount.h \
1038 src/core/dbus-swap.c \
1039 src/core/dbus-swap.h \
1040 src/core/dbus-timer.c \
1041 src/core/dbus-timer.h \
1042 src/core/dbus-path.c \
1043 src/core/dbus-path.h \
1044 src/core/dbus-slice.c \
1045 src/core/dbus-slice.h \
1046 src/core/dbus-scope.c \
1047 src/core/dbus-scope.h \
1048 src/core/dbus-execute.c \
1049 src/core/dbus-execute.h \
1050 src/core/dbus-kill.c \
1051 src/core/dbus-kill.h \
1052 src/core/dbus-cgroup.c \
1053 src/core/dbus-cgroup.h \
1056 src/core/selinux-access.c \
1057 src/core/selinux-access.h \
1058 src/core/selinux-setup.c \
1059 src/core/selinux-setup.h \
1060 src/core/smack-setup.c \
1061 src/core/smack-setup.h \
1062 src/core/ima-setup.c \
1063 src/core/ima-setup.h \
1064 src/core/locale-setup.h \
1065 src/core/locale-setup.c \
1066 src/core/hostname-setup.c \
1067 src/core/hostname-setup.h \
1068 src/core/machine-id-setup.c \
1069 src/core/machine-id-setup.h \
1070 src/core/mount-setup.c \
1071 src/core/mount-setup.h \
1072 src/core/loopback-setup.h \
1073 src/core/loopback-setup.c \
1074 src/core/condition.c \
1075 src/core/condition.h \
1076 src/core/namespace.c \
1077 src/core/namespace.h \
1079 src/core/sysfs-show.h \
1080 src/core/switch-root.h \
1081 src/core/switch-root.c \
1082 src/core/killall.h \
1083 src/core/killall.c \
1084 src/core/audit-fd.c \
1085 src/core/audit-fd.h \
1086 src/core/show-status.c \
1087 src/core/show-status.h
1090 libsystemd_core_la_SOURCES += \
1091 src/core/kmod-setup.c \
1092 src/core/kmod-setup.h
1095 nodist_libsystemd_core_la_SOURCES = \
1096 src/core/load-fragment-gperf.c \
1097 src/core/load-fragment-gperf-nulstr.c
1099 libsystemd_core_la_CFLAGS = \
1105 $(APPARMOR_CFLAGS) \
1109 libsystemd_core_la_LIBADD = \
1110 libsystemd-capability.la \
1111 libsystemd-units.la \
1112 libsystemd-label.la \
1113 libudev-internal.la \
1114 libsystemd-shared.la \
1115 libsystemd-internal.la \
1124 libsystemd_core_la_LIBADD += \
1125 libsystemd-seccomp.la
1128 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1129 $(AM_V_at)$(MKDIR_P) $(dir $@)
1130 $(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 ";" }' < $< > $@
1133 src/core/load-fragment-gperf.gperf.m4
1136 src/core/load-fragment-gperf.gperf \
1137 src/core/load-fragment-gperf.c \
1138 src/core/load-fragment-gperf-nulstr.c \
1139 src/shared/errno-list.txt \
1140 src/shared/errno-from-name.gperf \
1141 src/shared/af-list.txt \
1142 src/shared/af-from-name.gperf
1145 src/shared/errno-from-name.h \
1146 src/shared/errno-to-name.h \
1147 src/shared/af-from-name.h \
1148 src/shared/af-to-name.h
1150 src/shared/errno-list.txt:
1151 $(AM_V_at)$(MKDIR_P) $(dir $@)
1152 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1154 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1155 $(AM_V_at)$(MKDIR_P) $(dir $@)
1156 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1158 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1159 $(AM_V_at)$(MKDIR_P) $(dir $@)
1160 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1162 src/shared/errno-to-name.h: src/shared/errno-list.txt
1163 $(AM_V_at)$(MKDIR_P) $(dir $@)
1164 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1166 src/shared/af-list.txt:
1167 $(AM_V_at)$(MKDIR_P) $(dir $@)
1168 $(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; }' > $@
1170 src/shared/af-from-name.gperf: src/shared/af-list.txt
1171 $(AM_V_at)$(MKDIR_P) $(dir $@)
1172 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1174 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1175 $(AM_V_at)$(MKDIR_P) $(dir $@)
1176 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1178 src/shared/af-to-name.h: src/shared/af-list.txt
1179 $(AM_V_at)$(MKDIR_P) $(dir $@)
1180 $(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 "};"}' < $< > $@
1182 # ------------------------------------------------------------------------------
1191 libsystemd-core.la \
1194 dist_pkgsysconf_DATA += \
1195 src/core/system.conf \
1198 dist_dbuspolicy_DATA += \
1199 src/core/org.freedesktop.systemd1.conf
1201 dist_dbussystemservice_DATA += \
1202 src/core/org.freedesktop.systemd1.service
1204 polkitpolicy_in_in_files += \
1205 src/core/org.freedesktop.systemd1.policy.in.in
1207 pkgconfigdata_DATA = \
1210 nodist_rpmmacros_DATA = \
1211 src/core/macros.systemd
1214 src/core/systemd.pc.in \
1215 src/core/macros.systemd.in
1218 src/core/macros.systemd \
1219 src/core/org.freedesktop.systemd1.policy.in
1221 # ------------------------------------------------------------------------------
1260 test-strip-tab-ansi \
1279 test/sched_idle_bad.service \
1280 test/sched_idle_ok.service \
1281 test/sched_rr_bad.service \
1282 test/sched_rr_ok.service \
1283 test/sched_rr_change.service \
1285 test/daughter.service \
1289 src/test/test-helper.h
1291 test_device_nodes_SOURCES = \
1292 src/test/test-device-nodes.c
1294 test_device_nodes_LDADD = \
1295 libsystemd-shared.la
1297 test_engine_SOURCES = \
1298 src/test/test-engine.c
1300 test_engine_CFLAGS = \
1304 test_engine_LDADD = \
1305 libsystemd-core.la \
1308 test_job_type_SOURCES = \
1309 src/test/test-job-type.c
1311 test_job_type_CFLAGS = \
1315 test_job_type_LDADD = \
1316 libsystemd-core.la \
1329 test_loopback_SOURCES = \
1330 src/test/test-loopback.c
1332 test_loopback_LDADD = \
1335 test_hostname_SOURCES = \
1336 src/test/test-hostname.c
1338 test_hostname_LDADD = \
1345 test_boot_timestamp_SOURCES = \
1346 src/test/test-boot-timestamps.c
1348 test_boot_timestamp_LDADD = \
1349 libsystemd-shared.la
1352 test_unit_name_SOURCES = \
1353 src/test/test-unit-name.c
1355 test_unit_name_CFLAGS = \
1359 test_unit_name_LDADD = \
1360 libsystemd-core.la \
1363 test_unit_file_SOURCES = \
1364 src/test/test-unit-file.c
1366 test_unit_file_CFLAGS = \
1370 test_unit_file_LDADD = \
1371 libsystemd-core.la \
1374 test_utf8_SOURCES = \
1375 src/test/test-utf8.c
1378 libsystemd-shared.la
1380 test_capability_SOURCES = \
1381 src/test/test-capability.c
1383 test_capability_LDADD = \
1384 libsystemd-shared.la \
1385 libsystemd-capability.la
1387 test_async_SOURCES = \
1388 src/test/test-async.c
1390 test_async_LDADD = \
1391 libsystemd-shared.la
1393 test_fdset_SOURCES = \
1394 src/test/test-fdset.c
1396 test_fdset_LDADD = \
1399 test_ratelimit_SOURCES = \
1400 src/test/test-ratelimit.c
1402 test_ratelimit_LDADD = \
1403 libsystemd-shared.la
1405 test_util_SOURCES = \
1406 src/test/test-util.c
1411 test_socket_util_SOURCES = \
1412 src/test/test-socket-util.c
1414 test_socket_util_LDADD = \
1417 test_ring_SOURCES = \
1418 src/test/test-ring.c
1423 test_tmpfiles_SOURCES = \
1424 src/test/test-tmpfiles.c
1426 test_tmpfiles_LDADD = \
1427 libsystemd-shared.la
1429 test_namespace_SOURCES = \
1430 src/test/test-namespace.c
1432 test_namespace_LDADD = \
1435 test_hashmap_SOURCES = \
1436 src/test/test-hashmap.c
1438 test_hashmap_LDADD = \
1441 test_xml_SOURCES = \
1445 libsystemd-shared.la
1447 test_list_SOURCES = \
1448 src/test/test-list.c
1453 test_tables_SOURCES = \
1454 src/test/test-tables.c \
1455 src/shared/test-tables.h
1457 test_tables_CFLAGS = \
1461 test_tables_LDADD = \
1462 libsystemd-logs.la \
1463 libsystemd-journal-internal.la \
1464 libsystemd-core.la \
1467 test_prioq_SOURCES = \
1468 src/test/test-prioq.c
1470 test_prioq_LDADD = \
1473 test_fileio_SOURCES = \
1474 src/test/test-fileio.c
1476 test_fileio_LDADD = \
1479 test_time_SOURCES = \
1480 src/test/test-time.c
1485 test_architecture_SOURCES = \
1486 src/test/test-architecture.c
1488 test_architecture_LDADD = \
1489 libsystemd-shared.la
1491 test_log_SOURCES = \
1497 test_ipcrm_SOURCES = \
1498 src/test/test-ipcrm.c
1500 test_ipcrm_LDADD = \
1501 libsystemd-shared.la \
1504 test_rtnl_manual_SOURCES = \
1505 src/test/test-rtnl-manual.c
1507 test_rtnl_manual_CFLAGS = \
1511 test_rtnl_manual_LDADD = \
1512 libsystemd-internal.la \
1513 libsystemd-shared.la \
1516 test_ellipsize_SOURCES = \
1517 src/test/test-ellipsize.c
1519 test_ellipsize_LDADD = \
1522 test_date_SOURCES = \
1523 src/test/test-date.c
1528 test_sleep_SOURCES = \
1529 src/test/test-sleep.c
1531 test_sleep_LDADD = \
1534 test_replace_var_SOURCES = \
1535 src/test/test-replace-var.c
1537 test_replace_var_LDADD = \
1538 libsystemd-shared.la
1540 test_calendarspec_SOURCES = \
1541 src/test/test-calendarspec.c
1543 test_calendarspec_LDADD = \
1544 libsystemd-shared.la
1546 test_strip_tab_ansi_SOURCES = \
1547 src/test/test-strip-tab-ansi.c
1549 test_strip_tab_ansi_LDADD = \
1550 libsystemd-shared.la
1552 test_daemon_SOURCES = \
1553 src/test/test-daemon.c
1555 test_daemon_LDADD = \
1556 libsystemd-internal.la \
1557 libsystemd-shared.la
1559 test_cgroup_SOURCES = \
1560 src/test/test-cgroup.c
1562 test_cgroup_LDADD = \
1563 libsystemd-label.la \
1564 libsystemd-shared.la \
1565 libsystemd-internal.la
1567 test_cgroup_mask_SOURCES = \
1568 src/test/test-cgroup-mask.c
1570 test_cgroup_mask_CPPFLAGS = \
1572 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1574 test_cgroup_mask_CFLAGS = \
1578 test_cgroup_mask_LDADD = \
1579 libsystemd-core.la \
1582 test_cgroup_util_SOURCES = \
1583 src/test/test-cgroup-util.c
1585 test_cgroup_util_LDADD = \
1586 libsystemd-label.la \
1587 libsystemd-internal.la \
1588 libsystemd-shared.la
1590 test_env_replace_SOURCES = \
1591 src/test/test-env-replace.c
1593 test_env_replace_LDADD = \
1594 libsystemd-shared.la
1596 test_strbuf_SOURCES = \
1597 src/test/test-strbuf.c
1599 test_strbuf_LDADD = \
1600 libsystemd-shared.la
1602 test_strv_SOURCES = \
1603 src/test/test-strv.c
1606 libsystemd-units.la \
1607 libsystemd-internal.la \
1608 libsystemd-shared.la
1610 test_path_util_SOURCES = \
1611 src/test/test-path-util.c
1613 test_path_util_LDADD = \
1614 libsystemd-shared.la
1616 test_strxcpyx_SOURCES = \
1617 src/test/test-strxcpyx.c
1619 test_strxcpyx_LDADD = \
1620 libsystemd-shared.la
1622 test_install_SOURCES = \
1623 src/test/test-install.c
1625 test_install_LDADD = \
1626 libsystemd-units.la \
1627 libsystemd-label.la \
1628 libsystemd-shared.la \
1629 libsystemd-internal.la
1631 test_watchdog_SOURCES = \
1632 src/test/test-watchdog.c
1634 test_watchdog_LDADD = \
1635 libsystemd-shared.la
1637 test_sched_prio_SOURCES = \
1638 src/test/test-sched-prio.c
1640 test_sched_prio_CPPFLAGS = \
1642 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1644 test_sched_prio_CFLAGS = \
1648 test_sched_prio_LDADD = \
1649 libsystemd-core.la \
1652 test_conf_files_SOURCES = \
1653 src/test/test-conf-files.c
1655 test_conf_files_LDADD = \
1656 libsystemd-shared.la
1658 # ------------------------------------------------------------------------------
1659 ## .PHONY so it always rebuilds it
1660 .PHONY: coverage lcov-run lcov-report coverage-sync
1662 # run lcov from scratch, always
1667 coverage_dir = coverage
1668 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1671 # reset run coverage tests
1673 @rm -rf $(coverage_dir)
1674 lcov $(coverage_opts) --zerocounters
1677 # generate report based on current coverage data
1679 $(MKDIR_P) $(coverage_dir)
1680 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1681 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1682 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1683 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1685 # lcov doesn't work properly with vpath builds, make sure that bad
1686 # output is not uploaded by mistake.
1687 coverage-sync: coverage
1688 test "$(builddir)" = "$(srcdir)"
1689 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1692 lcov-run lcov-report:
1693 echo "Need to reconfigure with --enable-coverage"
1696 # ------------------------------------------------------------------------------
1697 systemd_analyze_SOURCES = \
1698 src/analyze/analyze.c
1700 systemd_analyze_LDADD = \
1701 libsystemd-internal.la \
1702 libsystemd-shared.la
1704 # ------------------------------------------------------------------------------
1705 systemd_initctl_SOURCES = \
1706 src/initctl/initctl.c
1708 systemd_initctl_LDADD = \
1709 libsystemd-internal.la \
1710 libsystemd-shared.la
1712 # ------------------------------------------------------------------------------
1713 systemd_update_utmp_SOURCES = \
1714 src/update-utmp/update-utmp.c
1716 systemd_update_utmp_CFLAGS = \
1720 systemd_update_utmp_LDADD = \
1721 libsystemd-internal.la \
1722 libsystemd-shared.la \
1725 # ------------------------------------------------------------------------------
1726 systemd_update_done_SOURCES = \
1727 src/update-done/update-done.c
1729 systemd_update_done_LDADD = \
1730 libsystemd-internal.la \
1731 libsystemd-shared.la
1733 # ------------------------------------------------------------------------------
1734 systemd_shutdownd_SOURCES = \
1735 src/shutdownd/shutdownd.c
1737 systemd_shutdownd_LDADD = \
1738 libsystemd-label.la \
1739 libsystemd-internal.la \
1740 libsystemd-shared.la
1743 src/systemd/sd-shutdown.h
1745 # ------------------------------------------------------------------------------
1746 systemd_shutdown_SOURCES = \
1749 src/core/shutdown.c \
1750 src/core/mount-setup.c \
1751 src/core/mount-setup.h \
1752 src/core/killall.h \
1755 systemd_shutdown_LDADD = \
1756 libsystemd-label.la \
1757 libudev-internal.la \
1758 libsystemd-shared.la
1760 # ------------------------------------------------------------------------------
1762 systemd_modules_load_SOURCES = \
1763 src/modules-load/modules-load.c
1765 systemd_modules_load_CFLAGS = \
1769 systemd_modules_load_LDADD = \
1770 libsystemd-shared.la \
1773 rootlibexec_PROGRAMS += \
1774 systemd-modules-load
1776 nodist_systemunit_DATA += \
1777 units/systemd-modules-load.service
1779 SYSINIT_TARGET_WANTS += \
1780 systemd-modules-load.service
1783 nodist_systemunit_DATA += \
1784 units/kmod-static-nodes.service
1786 SYSINIT_TARGET_WANTS += \
1787 kmod-static-nodes.service
1792 units/systemd-modules-load.service.in \
1793 units/kmod-static-nodes.service.in
1795 # ------------------------------------------------------------------------------
1797 systemd_tmpfiles_SOURCES = \
1798 src/tmpfiles/tmpfiles.c
1800 systemd_tmpfiles_LDADD = \
1801 libsystemd-units.la \
1802 libsystemd-label.la \
1803 libsystemd-capability.la \
1804 libsystemd-internal.la \
1805 libsystemd-shared.la
1807 rootbin_PROGRAMS += \
1810 dist_systemunit_DATA += \
1811 units/systemd-tmpfiles-clean.timer
1813 nodist_systemunit_DATA += \
1814 units/systemd-tmpfiles-setup-dev.service \
1815 units/systemd-tmpfiles-setup.service \
1816 units/systemd-tmpfiles-clean.service
1818 dist_tmpfiles_DATA = \
1819 tmpfiles.d/systemd.conf \
1820 tmpfiles.d/systemd-nologin.conf \
1821 tmpfiles.d/tmp.conf \
1822 tmpfiles.d/x11.conf \
1823 tmpfiles.d/var.conf \
1827 dist_tmpfiles_DATA += \
1828 tmpfiles.d/legacy.conf
1831 SYSINIT_TARGET_WANTS += \
1832 systemd-tmpfiles-setup-dev.service \
1833 systemd-tmpfiles-setup.service
1835 dist_zshcompletion_DATA += \
1836 shell-completion/zsh/_systemd-tmpfiles
1838 TIMERS_TARGET_WANTS += \
1839 systemd-tmpfiles-clean.timer
1843 $(sysconfdir)/tmpfiles.d
1847 units/systemd-tmpfiles-setup-dev.service.in \
1848 units/systemd-tmpfiles-setup.service.in \
1849 units/systemd-tmpfiles-clean.service.in
1851 # ------------------------------------------------------------------------------
1853 systemd_sysusers_SOURCES = \
1854 src/sysusers/sysusers.c
1856 systemd_sysusers_LDADD = \
1857 libsystemd-units.la \
1858 libsystemd-label.la \
1859 libsystemd-capability.la \
1860 libsystemd-internal.la \
1861 libsystemd-shared.la
1863 rootbin_PROGRAMS += \
1866 nodist_systemunit_DATA += \
1867 units/systemd-sysusers.service
1869 SYSINIT_TARGET_WANTS += \
1870 systemd-sysusers.service
1872 dist_sysusers_DATA = \
1873 sysusers.d/systemd.conf
1875 nodist_sysusers_DATA = \
1876 sysusers.d/basic.conf
1879 units/systemd-sysusers.service.in \
1880 sysusers.d/basic.conf.in
1883 sysusers.d/basic.conf
1889 # ------------------------------------------------------------------------------
1891 systemd_firstboot_SOURCES = \
1892 src/firstboot/firstboot.c
1894 systemd_firstboot_LDADD = \
1895 libsystemd-units.la \
1896 libsystemd-label.la \
1897 libsystemd-capability.la \
1898 libsystemd-internal.la \
1899 libsystemd-shared.la \
1902 rootbin_PROGRAMS += \
1905 nodist_systemunit_DATA += \
1906 units/systemd-firstboot.service
1909 units/systemd-firstboot.service.in
1911 SYSINIT_TARGET_WANTS += \
1912 systemd-firstboot.service
1916 # ------------------------------------------------------------------------------
1917 systemd_machine_id_setup_SOURCES = \
1918 src/machine-id-setup/machine-id-setup-main.c \
1919 src/core/machine-id-setup.c \
1920 src/core/machine-id-setup.h
1922 systemd_machine_id_setup_LDADD = \
1923 libsystemd-label.la \
1924 libsystemd-internal.la \
1925 libsystemd-shared.la
1927 # ------------------------------------------------------------------------------
1928 systemd_sysctl_SOURCES = \
1931 systemd_sysctl_LDADD = \
1932 libsystemd-shared.la
1934 # ------------------------------------------------------------------------------
1935 systemd_sleep_SOURCES = \
1938 systemd_sleep_LDADD = \
1939 libsystemd-shared.la
1941 # ------------------------------------------------------------------------------
1942 systemd_fsck_SOURCES = \
1945 systemd_fsck_LDADD = \
1946 libsystemd-internal.la \
1947 libudev-internal.la \
1948 libsystemd-shared.la
1950 # ------------------------------------------------------------------------------
1951 systemd_ac_power_SOURCES = \
1952 src/ac-power/ac-power.c
1954 systemd_ac_power_LDADD = \
1955 libudev-internal.la \
1956 libsystemd-shared.la
1958 # ------------------------------------------------------------------------------
1959 systemd_detect_virt_SOURCES = \
1960 src/detect-virt/detect-virt.c
1962 systemd_detect_virt_LDADD = \
1963 libsystemd-shared.la
1965 INSTALL_EXEC_HOOKS += \
1966 systemd-detect-virt-install-hook
1968 # ------------------------------------------------------------------------------
1969 systemd_delta_SOURCES = \
1972 systemd_delta_LDADD = \
1973 libsystemd-shared.la
1975 # ------------------------------------------------------------------------------
1976 systemd_getty_generator_SOURCES = \
1977 src/getty-generator/getty-generator.c
1979 systemd_getty_generator_LDADD = \
1980 libsystemd-label.la \
1981 libsystemd-shared.la
1983 # ------------------------------------------------------------------------------
1984 systemd_debug_generator_SOURCES = \
1985 src/debug-generator/debug-generator.c
1987 systemd_debug_generator_LDADD = \
1988 libsystemd-label.la \
1989 libsystemd-shared.la
1991 # ------------------------------------------------------------------------------
1992 systemd_fstab_generator_SOURCES = \
1993 src/fstab-generator/fstab-generator.c \
1994 src/core/mount-setup.c
1996 systemd_fstab_generator_LDADD = \
1997 libsystemd-label.la \
1998 libsystemd-shared.la
2000 # ------------------------------------------------------------------------------
2001 systemd_system_update_generator_SOURCES = \
2002 src/system-update-generator/system-update-generator.c
2004 systemd_system_update_generator_LDADD = \
2005 libsystemd-label.la \
2006 libsystemd-shared.la
2009 # ------------------------------------------------------------------------------
2010 systemgenerator_PROGRAMS += \
2011 systemd-efi-boot-generator
2013 systemd_efi_boot_generator_SOURCES = \
2014 src/efi-boot-generator/efi-boot-generator.c
2016 systemd_efi_boot_generator_LDADD = \
2017 libsystemd-label.la \
2018 libsystemd-shared.la
2020 # ------------------------------------------------------------------------------
2023 src/boot/boot-loader.h \
2024 src/boot/bootctl.c \
2025 src/boot/boot-loader.c \
2029 libsystemd-shared.la \
2030 libsystemd-internal.la
2035 dist_bashcompletion_DATA += \
2036 shell-completion/bash/bootctl
2038 dist_zshcompletion_DATA += \
2039 shell-completion/zsh/_bootctl
2043 # ------------------------------------------------------------------------------
2045 systemgenerator_PROGRAMS += \
2046 systemd-gpt-auto-generator
2048 systemd_gpt_auto_generator_SOURCES = \
2049 src/gpt-auto-generator/gpt-auto-generator.c \
2050 src/shared/blkid-util.h
2052 systemd_gpt_auto_generator_LDADD = \
2053 libsystemd-label.la \
2054 libsystemd-internal.la \
2055 libudev-internal.la \
2056 libsystemd-shared.la \
2059 systemd_gpt_auto_generator_CFLAGS = \
2064 # ------------------------------------------------------------------------------
2066 systemgenerator_PROGRAMS += \
2067 systemd-dbus1-generator
2069 systemd_dbus1_generator_SOURCES = \
2070 src/dbus1-generator/dbus1-generator.c
2072 systemd_dbus1_generator_LDADD = \
2073 libsystemd-label.la \
2074 libsystemd-shared.la \
2075 libsystemd-internal.la
2077 dbus1-generator-install-hook:
2078 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2079 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2080 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2082 dbus1-generator-uninstall-hook:
2083 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2085 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2086 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2089 # ------------------------------------------------------------------------------
2090 systemd_sysv_generator_SOURCES = \
2091 src/sysv-generator/sysv-generator.c
2093 systemd_sysv_generator_LDADD = \
2094 libsystemd-core.la \
2095 libsystemd-label.la \
2096 libsystemd-shared.la
2098 # ------------------------------------------------------------------------------
2099 systemd_rc_local_generator_SOURCES = \
2100 src/rc-local-generator/rc-local-generator.c
2102 systemd_rc_local_generator_LDADD = \
2103 libsystemd-label.la \
2104 libsystemd-shared.la
2106 # ------------------------------------------------------------------------------
2107 systemd_remount_fs_SOURCES = \
2108 src/remount-fs/remount-fs.c \
2109 src/core/mount-setup.c \
2110 src/core/mount-setup.h
2112 systemd_remount_fs_LDADD = \
2113 libsystemd-label.la \
2114 libsystemd-shared.la
2116 # ------------------------------------------------------------------------------
2117 systemd_cgroups_agent_SOURCES = \
2118 src/cgroups-agent/cgroups-agent.c
2120 systemd_cgroups_agent_LDADD = \
2121 libsystemd-internal.la \
2122 libsystemd-shared.la
2124 # ------------------------------------------------------------------------------
2125 systemd_escape_SOURCES = \
2128 systemd_escape_LDADD = \
2129 libsystemd-shared.la
2131 # -----------------------------------------------------------------------------
2132 systemctl_SOURCES = \
2133 src/systemctl/systemctl.c
2136 libsystemd-units.la \
2137 libsystemd-label.la \
2138 libsystemd-internal.la \
2139 libsystemd-logs.la \
2140 libsystemd-journal-internal.la \
2141 libsystemd-shared.la
2143 # ------------------------------------------------------------------------------
2144 systemd_notify_SOURCES = \
2145 src/notify/notify.c \
2146 src/readahead/sd-readahead.c
2148 systemd_notify_LDADD = \
2149 libsystemd-internal.la \
2150 libsystemd-shared.la
2152 # ------------------------------------------------------------------------------
2153 systemd_path_SOURCES = \
2156 systemd_path_LDADD = \
2157 libsystemd-internal.la \
2158 libsystemd-shared.la
2160 # ------------------------------------------------------------------------------
2161 systemd_ask_password_SOURCES = \
2162 src/ask-password/ask-password.c
2164 systemd_ask_password_LDADD = \
2165 libsystemd-label.la \
2166 libsystemd-shared.la
2168 # ------------------------------------------------------------------------------
2169 systemd_reply_password_SOURCES = \
2170 src/reply-password/reply-password.c
2172 systemd_reply_password_LDADD = \
2173 libsystemd-shared.la
2175 # ------------------------------------------------------------------------------
2176 systemd_cgls_SOURCES = \
2179 systemd_cgls_LDADD = \
2180 libsystemd-internal.la \
2181 libsystemd-shared.la
2183 # ------------------------------------------------------------------------------
2184 systemd_cgtop_SOURCES = \
2187 systemd_cgtop_LDADD = \
2188 libsystemd-shared.la
2190 # ------------------------------------------------------------------------------
2191 systemd_nspawn_SOURCES = \
2192 src/nspawn/nspawn.c \
2193 src/core/mount-setup.c \
2194 src/core/mount-setup.h \
2195 src/core/loopback-setup.c \
2196 src/core/loopback-setup.h
2198 systemd_nspawn_CFLAGS = \
2203 systemd_nspawn_LDADD = \
2204 libsystemd-label.la \
2205 libsystemd-capability.la \
2206 libsystemd-internal.la \
2207 libudev-internal.la \
2208 libsystemd-shared.la \
2212 systemd_nspawn_LDADD += \
2213 libsystemd-seccomp.la \
2217 # ------------------------------------------------------------------------------
2218 systemd_run_SOURCES = \
2221 systemd_run_LDADD = \
2222 libsystemd-label.la \
2223 libsystemd-capability.la \
2224 libsystemd-internal.la \
2225 libsystemd-shared.la
2227 # ------------------------------------------------------------------------------
2228 systemd_bus_proxyd_SOURCES = \
2229 src/bus-proxyd/bus-proxyd.c \
2230 src/bus-proxyd/bus-policy.c \
2231 src/bus-proxyd/bus-policy.h
2233 systemd_bus_proxyd_LDADD = \
2234 libsystemd-capability.la \
2235 libsystemd-internal.la \
2236 libsystemd-shared.la
2238 bus-proxyd-install-hook:
2239 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2240 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2241 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2243 bus-proxyd-uninstall-hook:
2244 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2246 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2247 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2250 nodist_systemunit_DATA += \
2251 units/systemd-bus-proxyd@.service
2253 dist_systemunit_DATA += \
2254 units/systemd-bus-proxyd.socket
2256 dist_userunit_DATA += \
2257 units/user/systemd-bus-proxyd.socket \
2258 units/user/systemd-bus-proxyd@.service
2262 units/systemd-bus-proxyd@.service.in
2264 # ------------------------------------------------------------------------------
2265 systemd_tty_ask_password_agent_SOURCES = \
2266 src/tty-ask-password-agent/tty-ask-password-agent.c
2268 systemd_tty_ask_password_agent_LDADD = \
2269 libsystemd-label.la \
2270 libsystemd-shared.la
2272 # ------------------------------------------------------------------------------
2273 libsystemd_internal_la_SOURCES = \
2274 src/systemd/sd-bus.h \
2275 src/systemd/sd-bus-protocol.h \
2276 src/systemd/sd-bus-vtable.h \
2277 src/systemd/sd-memfd.h \
2278 src/systemd/sd-utf8.h \
2279 src/systemd/sd-event.h \
2280 src/systemd/sd-rtnl.h \
2281 src/systemd/sd-resolve.h \
2282 src/systemd/sd-login.h \
2283 src/systemd/sd-id128.h \
2284 src/systemd/sd-daemon.h \
2285 src/systemd/sd-path.h \
2286 src/libsystemd/sd-bus/sd-bus.c \
2287 src/libsystemd/sd-bus/bus-control.c \
2288 src/libsystemd/sd-bus/bus-control.h \
2289 src/libsystemd/sd-bus/bus-error.c \
2290 src/libsystemd/sd-bus/bus-error.h \
2291 src/libsystemd/sd-bus/bus-internal.c \
2292 src/libsystemd/sd-bus/bus-internal.h \
2293 src/libsystemd/sd-bus/bus-socket.c \
2294 src/libsystemd/sd-bus/bus-socket.h \
2295 src/libsystemd/sd-bus/bus-kernel.c \
2296 src/libsystemd/sd-bus/bus-kernel.h \
2297 src/libsystemd/sd-bus/bus-container.c \
2298 src/libsystemd/sd-bus/bus-container.h \
2299 src/libsystemd/sd-bus/bus-message.c \
2300 src/libsystemd/sd-bus/bus-message.h \
2301 src/libsystemd/sd-bus/bus-creds.c \
2302 src/libsystemd/sd-bus/bus-creds.h \
2303 src/libsystemd/sd-bus/bus-signature.c \
2304 src/libsystemd/sd-bus/bus-signature.h \
2305 src/libsystemd/sd-bus/bus-type.c \
2306 src/libsystemd/sd-bus/bus-type.h \
2307 src/libsystemd/sd-bus/bus-match.c \
2308 src/libsystemd/sd-bus/bus-match.h \
2309 src/libsystemd/sd-bus/bus-bloom.c \
2310 src/libsystemd/sd-bus/bus-bloom.h \
2311 src/libsystemd/sd-bus/bus-introspect.c \
2312 src/libsystemd/sd-bus/bus-introspect.h \
2313 src/libsystemd/sd-bus/bus-objects.c \
2314 src/libsystemd/sd-bus/bus-objects.h \
2315 src/libsystemd/sd-bus/bus-gvariant.c \
2316 src/libsystemd/sd-bus/bus-gvariant.h \
2317 src/libsystemd/sd-bus/bus-convenience.c \
2318 src/libsystemd/sd-bus/bus-track.c \
2319 src/libsystemd/sd-bus/bus-track.h \
2320 src/libsystemd/sd-bus/bus-util.c \
2321 src/libsystemd/sd-bus/bus-util.h \
2322 src/libsystemd/sd-bus/bus-slot.c \
2323 src/libsystemd/sd-bus/bus-slot.h \
2324 src/libsystemd/sd-bus/bus-protocol.h \
2325 src/libsystemd/sd-bus/kdbus.h \
2326 src/libsystemd/sd-bus/sd-memfd.c \
2327 src/libsystemd/sd-utf8/sd-utf8.c \
2328 src/libsystemd/sd-event/sd-event.c \
2329 src/libsystemd/sd-event/event-util.h \
2330 src/libsystemd/sd-rtnl/sd-rtnl.c \
2331 src/libsystemd/sd-rtnl/rtnl-internal.h \
2332 src/libsystemd/sd-rtnl/rtnl-message.c \
2333 src/libsystemd/sd-rtnl/rtnl-types.h \
2334 src/libsystemd/sd-rtnl/rtnl-types.c \
2335 src/libsystemd/sd-rtnl/rtnl-util.h \
2336 src/libsystemd/sd-rtnl/rtnl-util.c \
2337 src/libsystemd/sd-rtnl/local-addresses.h \
2338 src/libsystemd/sd-rtnl/local-addresses.c \
2339 src/libsystemd/sd-id128/sd-id128.c \
2340 src/libsystemd/sd-daemon/sd-daemon.c \
2341 src/libsystemd/sd-login/sd-login.c \
2342 src/libsystemd/sd-path/sd-path.c
2344 nodist_libsystemd_internal_la_SOURCES = \
2345 src/libsystemd/libsystemd.sym \
2346 src/libsystemd/sd-bus/bus-error-mapping.c
2348 libsystemd_internal_la_CFLAGS = \
2352 libsystemd_internal_la_LIBADD = \
2355 libsystemd_resolve_la_SOURCES = \
2356 src/libsystemd/sd-resolve/sd-resolve.c \
2357 src/libsystemd/sd-resolve/resolve-util.h
2359 libsystemd_resolve_la_CFLAGS = \
2363 libsystemd_resolve_la_LIBADD = \
2366 noinst_LTLIBRARIES += \
2367 libsystemd-internal.la \
2368 libsystemd-resolve.la
2370 libsystemd_dump_la_SOURCES = \
2371 src/libsystemd/sd-bus/bus-dump.c \
2372 src/libsystemd/sd-bus/bus-dump.h
2374 libsystemd_dump_la_CFLAGS = \
2378 noinst_LTLIBRARIES += \
2382 src/libsystemd/libsystemd.sym.m4 \
2383 src/libsystemd/libsystemd.pc.in \
2384 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2385 src/libsystemd/sd-bus/DIFFERENCES \
2386 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2389 src/libsystemd/libsystemd.sym \
2390 src/libsystemd/sd-bus/bus-error-mapping.c
2393 src/libsystemd/libsystemd.sym
2395 libsystemd_la_SOURCES = \
2396 $(libsystemd_internal_la_SOURCES) \
2397 $(libsystemd_resolve_la_SOURCES) \
2398 $(libsystemd_journal_internal_la_SOURCES)
2400 nodist_libsystemd_la_SOURCES = \
2401 $(nodist_libsystemd_internal_la_SOURCES)
2403 libsystemd_la_CFLAGS = \
2404 $(libsystemd_internal_la_CFLAGS) \
2405 $(libsystemd_resolve_la_CFLAGS) \
2406 $(libsystemd_journal_internal_la_CFLAGS)
2408 libsystemd_la_LDFLAGS = \
2410 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2411 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2413 libsystemd_la_LIBADD = \
2414 libsystemd-shared.la \
2415 $(libsystemd_internal_la_LIBADD) \
2416 $(libsystemd_journal_internal_la_LIBADD) \
2417 $(libsystemd_resolve_la_LIBADD)
2419 libsystemd-install-hook:
2420 libname=libsystemd.so && $(move-to-rootlibdir)
2422 libsystemd-uninstall-hook:
2423 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2425 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2426 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2428 pkgconfiglib_DATA += \
2429 src/libsystemd/libsystemd.pc
2431 pkginclude_HEADERS += \
2432 src/systemd/sd-login.h \
2433 src/systemd/sd-id128.h \
2434 src/systemd/sd-daemon.h
2437 pkginclude_HEADERS += \
2438 src/systemd/sd-bus.h \
2439 src/systemd/sd-bus-protocol.h \
2440 src/systemd/sd-bus-vtable.h \
2441 src/systemd/sd-memfd.h \
2442 src/systemd/sd-utf8.h \
2443 src/systemd/sd-event.h \
2444 src/systemd/sd-rtnl.h \
2445 src/systemd/sd-resolve.h \
2446 src/systemd/sd-path.h
2449 lib_LTLIBRARIES += \
2454 test-bus-signature \
2460 test-bus-kernel-bloom \
2461 test-bus-kernel-benchmark \
2463 test-bus-zero-copy \
2464 test-bus-introspect \
2476 test_bus_marshal_SOURCES = \
2477 src/libsystemd/sd-bus/test-bus-marshal.c
2479 test_bus_marshal_LDADD = \
2480 libsystemd-internal.la \
2481 libsystemd-shared.la \
2482 libsystemd-dump.la \
2483 libsystemd-capability.la \
2488 test_bus_marshal_CFLAGS = \
2494 test_bus_signature_SOURCES = \
2495 src/libsystemd/sd-bus/test-bus-signature.c
2497 test_bus_signature_LDADD = \
2498 libsystemd-shared.la \
2499 libsystemd-internal.la
2501 test_bus_chat_SOURCES = \
2502 src/libsystemd/sd-bus/test-bus-chat.c
2504 test_bus_chat_CFLAGS = \
2508 test_bus_chat_LDADD = \
2509 libsystemd-internal.la \
2510 libsystemd-shared.la
2512 test_bus_cleanup_SOURCES = \
2513 src/libsystemd/sd-bus/test-bus-cleanup.c
2515 test_bus_cleanup_CFLAGS = \
2519 test_bus_cleanup_LDADD = \
2520 libsystemd-internal.la \
2521 libsystemd-shared.la
2523 test_bus_server_SOURCES = \
2524 src/libsystemd/sd-bus/test-bus-server.c
2526 test_bus_server_CFLAGS = \
2530 test_bus_server_LDADD = \
2531 libsystemd-internal.la \
2532 libsystemd-shared.la
2534 test_bus_objects_SOURCES = \
2535 src/libsystemd/sd-bus/test-bus-objects.c
2537 test_bus_objects_CFLAGS = \
2542 test_bus_objects_LDADD = \
2543 libsystemd-internal.la \
2544 libsystemd-shared.la \
2545 libsystemd-dump.la \
2546 libsystemd-capability.la \
2549 test_bus_error_SOURCES = \
2550 src/libsystemd/sd-bus/test-bus-error.c
2552 test_bus_error_LDADD = \
2553 libsystemd-internal.la \
2554 libsystemd-shared.la
2556 test_bus_gvariant_SOURCES = \
2557 src/libsystemd/sd-bus/test-bus-gvariant.c
2559 test_bus_gvariant_LDADD = \
2560 libsystemd-internal.la \
2561 libsystemd-shared.la \
2562 libsystemd-dump.la \
2563 libsystemd-capability.la \
2567 test_bus_gvariant_CFLAGS = \
2572 test_bus_creds_SOURCES = \
2573 src/libsystemd/sd-bus/test-bus-creds.c
2575 test_bus_creds_LDADD = \
2576 libsystemd-internal.la \
2577 libsystemd-shared.la \
2578 libsystemd-dump.la \
2579 libsystemd-capability.la
2581 test_bus_match_SOURCES = \
2582 src/libsystemd/sd-bus/test-bus-match.c
2584 test_bus_match_LDADD = \
2585 libsystemd-internal.la \
2586 libsystemd-shared.la
2588 test_bus_kernel_SOURCES = \
2589 src/libsystemd/sd-bus/test-bus-kernel.c
2591 test_bus_kernel_LDADD = \
2592 libsystemd-internal.la \
2593 libsystemd-shared.la \
2594 libsystemd-dump.la \
2595 libsystemd-capability.la \
2598 test_bus_kernel_CFLAGS = \
2602 test_bus_kernel_bloom_SOURCES = \
2603 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2605 test_bus_kernel_bloom_LDADD = \
2606 libsystemd-internal.la \
2607 libsystemd-shared.la
2609 test_bus_kernel_benchmark_SOURCES = \
2610 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2612 test_bus_kernel_benchmark_LDADD = \
2613 libsystemd-internal.la \
2614 libsystemd-shared.la
2616 test_bus_memfd_SOURCES = \
2617 src/libsystemd/sd-bus/test-bus-memfd.c
2619 test_bus_memfd_LDADD = \
2620 libsystemd-internal.la \
2621 libsystemd-shared.la
2623 test_bus_zero_copy_SOURCES = \
2624 src/libsystemd/sd-bus/test-bus-zero-copy.c
2626 test_bus_zero_copy_LDADD = \
2627 libsystemd-internal.la \
2628 libsystemd-shared.la \
2629 libsystemd-dump.la \
2630 libsystemd-capability.la \
2633 test_bus_zero_copy_CFLAGS = \
2637 test_bus_introspect_SOURCES = \
2638 src/libsystemd/sd-bus/test-bus-introspect.c
2640 test_bus_introspect_LDADD = \
2641 libsystemd-internal.la \
2642 libsystemd-shared.la
2644 test_event_SOURCES = \
2645 src/libsystemd/sd-event/test-event.c
2647 test_event_LDADD = \
2648 libsystemd-internal.la \
2649 libsystemd-shared.la
2651 test_rtnl_SOURCES = \
2652 src/libsystemd/sd-rtnl/test-rtnl.c
2655 libsystemd-internal.la \
2656 libsystemd-shared.la
2658 test_resolve_SOURCES = \
2659 src/libsystemd/sd-resolve/test-resolve.c
2661 test_resolve_LDADD = \
2662 libsystemd-resolve.la \
2663 libsystemd-internal.la \
2664 libsystemd-shared.la
2666 test_resolve_CFLAGS = \
2671 src/libsystemd/sd-bus/busctl.c
2674 libsystemd-internal.la \
2675 libsystemd-shared.la \
2676 libsystemd-dump.la \
2677 libsystemd-capability.la \
2684 # ------------------------------------------------------------------------------
2685 noinst_LTLIBRARIES += \
2686 libsystemd-network.la
2688 libsystemd_network_la_CFLAGS = \
2692 libsystemd_network_la_SOURCES = \
2693 src/systemd/sd-network.h \
2694 src/systemd/sd-dhcp-client.h \
2695 src/systemd/sd-dhcp-server.h \
2696 src/systemd/sd-dhcp-lease.h \
2697 src/systemd/sd-ipv4ll.h \
2698 src/network/sd-network.c \
2699 src/network/network-util.h \
2700 src/libsystemd-network/sd-dhcp-client.c \
2701 src/libsystemd-network/sd-dhcp-server.c \
2702 src/libsystemd-network/dhcp-network.c \
2703 src/libsystemd-network/dhcp-option.c \
2704 src/libsystemd-network/dhcp-packet.c \
2705 src/libsystemd-network/dhcp-internal.h \
2706 src/libsystemd-network/dhcp-server-internal.h \
2707 src/libsystemd-network/dhcp-protocol.h \
2708 src/libsystemd-network/dhcp-lease-internal.h \
2709 src/libsystemd-network/sd-dhcp-lease.c \
2710 src/libsystemd-network/sd-ipv4ll.c \
2711 src/libsystemd-network/ipv4ll-network.c \
2712 src/libsystemd-network/ipv4ll-packet.c \
2713 src/libsystemd-network/ipv4ll-internal.h \
2714 src/libsystemd-network/network-internal.c \
2715 src/libsystemd-network/network-internal.h \
2716 src/systemd/sd-icmp6-nd.h \
2717 src/systemd/sd-dhcp6-client.h \
2718 src/systemd/sd-dhcp6-lease.h \
2719 src/libsystemd-network/sd-icmp6-nd.c \
2720 src/libsystemd-network/sd-dhcp6-client.c \
2721 src/libsystemd-network/dhcp6-internal.h \
2722 src/libsystemd-network/dhcp6-protocol.h \
2723 src/libsystemd-network/dhcp6-network.c \
2724 src/libsystemd-network/dhcp6-option.c \
2725 src/libsystemd-network/dhcp6-lease-internal.h \
2726 src/libsystemd-network/sd-dhcp6-lease.c
2728 libsystemd_network_la_LIBADD = \
2729 libudev-internal.la \
2730 libsystemd-label.la \
2731 libsystemd-internal.la \
2732 libsystemd-shared.la \
2735 test_dhcp_option_SOURCES = \
2736 src/libsystemd-network/dhcp-protocol.h \
2737 src/libsystemd-network/dhcp-internal.h \
2738 src/libsystemd-network/test-dhcp-option.c
2740 test_dhcp_option_LDADD = \
2741 libsystemd-network.la \
2742 libsystemd-internal.la \
2743 libsystemd-shared.la
2745 test_dhcp_client_SOURCES = \
2746 src/systemd/sd-dhcp-client.h \
2747 src/libsystemd-network/dhcp-protocol.h \
2748 src/libsystemd-network/dhcp-internal.h \
2749 src/libsystemd-network/test-dhcp-client.c
2751 test_dhcp_client_LDADD = \
2752 libsystemd-network.la \
2753 libsystemd-label.la \
2754 libsystemd-internal.la \
2755 libsystemd-shared.la
2757 test_dhcp_server_SOURCES = \
2758 src/libsystemd-network/test-dhcp-server.c
2760 test_dhcp_server_LDADD = \
2761 libsystemd-network.la \
2762 libsystemd-internal.la \
2763 libsystemd-shared.la
2765 test_ipv4ll_SOURCES = \
2766 src/systemd/sd-ipv4ll.h \
2767 src/libsystemd-network/ipv4ll-internal.h \
2768 src/libsystemd-network/test-ipv4ll.c
2770 test_ipv4ll_LDADD = \
2771 libsystemd-network.la \
2772 libsystemd-label.la \
2773 libsystemd-internal.la \
2774 libsystemd-shared.la
2776 test_icmp6_rs_SOURCES = \
2777 src/systemd/sd-dhcp6-client.h \
2778 src/systemd/sd-icmp6-nd.h \
2779 src/libsystemd-network/dhcp6-internal.h \
2780 src/libsystemd-network/test-icmp6-rs.c
2782 test_icmp6_rs_LDADD = \
2783 libsystemd-network.la \
2784 libsystemd-internal.la \
2785 libsystemd-shared.la
2787 test_dhcp6_client_SOURCES = \
2788 src/systemd/sd-dhcp6-client.h \
2789 src/libsystemd-network/dhcp6-internal.h \
2790 src/libsystemd-network/test-dhcp6-client.c
2792 test_dhcp6_client_LDADD = \
2793 libsystemd-network.la \
2794 libsystemd-internal.la \
2795 libsystemd-shared.la
2805 # ------------------------------------------------------------------------------
2815 include_HEADERS += \
2816 src/libudev/libudev.h
2818 lib_LTLIBRARIES += \
2821 libudev_la_SOURCES =\
2822 src/libudev/libudev.sym \
2823 src/libudev/libudev-private.h \
2824 src/libudev/libudev.c \
2825 src/libudev/libudev-list.c \
2826 src/libudev/libudev-util.c \
2827 src/libudev/libudev-device.c \
2828 src/libudev/libudev-enumerate.c \
2829 src/libudev/libudev-monitor.c \
2830 src/libudev/libudev-queue.c \
2831 src/libudev/libudev-hwdb-def.h \
2832 src/libudev/libudev-hwdb.c
2834 libudev_la_CFLAGS = \
2838 libudev_la_LDFLAGS = \
2840 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2841 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2843 libudev_la_LIBADD = \
2844 libsystemd-internal.la \
2845 libsystemd-shared.la
2847 pkgconfiglib_DATA += \
2848 src/libudev/libudev.pc
2851 src/libudev/libudev.pc.in
2854 src/libudev/libudev.pc \
2859 $(AM_V_at)$(MKDIR_P) $(dir $@)
2860 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2863 $(AM_V_at)$(MKDIR_P) $(dir $@)
2864 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2866 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2867 libudev-install-hook:
2868 libname=libudev.so && $(move-to-rootlibdir)
2870 libudev-uninstall-hook:
2871 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2873 INSTALL_EXEC_HOOKS += libudev-install-hook
2874 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2876 # ------------------------------------------------------------------------------
2877 noinst_LTLIBRARIES += \
2880 libudev_internal_la_SOURCES =\
2881 $(libudev_la_SOURCES) \
2882 src/libudev/libudev-device-private.c
2884 libudev_internal_la_CFLAGS = \
2886 -fvisibility=default
2888 # ------------------------------------------------------------------------------
2890 $(sysconfdir)/udev/rules.d \
2891 $(sysconfdir)/udev/hwdb.d
2893 dist_network_DATA = \
2894 network/99-default.link \
2895 network/80-container-host0.network \
2896 network/80-container-ve.network
2898 dist_udevrules_DATA += \
2899 rules/42-usb-hid-pm.rules \
2900 rules/50-udev-default.rules \
2901 rules/60-drm.rules \
2902 rules/60-keyboard.rules \
2903 rules/60-persistent-storage-tape.rules \
2904 rules/60-persistent-serial.rules \
2905 rules/60-persistent-input.rules \
2906 rules/60-persistent-alsa.rules \
2907 rules/60-persistent-storage.rules \
2908 rules/64-btrfs.rules \
2909 rules/75-net-description.rules \
2910 rules/75-tty-description.rules \
2911 rules/78-sound-card.rules \
2912 rules/80-net-setup-link.rules \
2913 rules/95-udev-late.rules
2915 nodist_udevrules_DATA += \
2916 rules/99-systemd.rules
2918 dist_udevhwdb_DATA = \
2919 hwdb/20-pci-vendor-model.hwdb \
2920 hwdb/20-pci-classes.hwdb \
2921 hwdb/20-usb-vendor-model.hwdb \
2922 hwdb/20-usb-classes.hwdb \
2923 hwdb/20-sdio-vendor-model.hwdb \
2924 hwdb/20-sdio-classes.hwdb \
2925 hwdb/20-bluetooth-vendor-product.hwdb \
2926 hwdb/20-acpi-vendor.hwdb \
2928 hwdb/20-net-ifname.hwdb \
2929 hwdb/60-keyboard.hwdb
2931 udevconfdir = $(sysconfdir)/udev
2932 dist_udevconf_DATA = \
2935 sharepkgconfigdir = $(datadir)/pkgconfig
2936 sharepkgconfig_DATA = \
2940 rules/99-systemd.rules.in \
2944 rules/99-systemd.rules \
2948 units/systemd-udevd.service.in \
2949 units/systemd-udev-trigger.service.in \
2950 units/systemd-udev-settle.service.in \
2951 units/systemd-udev-hwdb-update.service.in
2954 units/systemd-udevd.service \
2955 units/systemd-udev-trigger.service \
2956 units/systemd-udev-settle.service \
2957 units/systemd-udev-hwdb-update.service
2959 SOCKETS_TARGET_WANTS += \
2960 systemd-udevd-control.socket \
2961 systemd-udevd-kernel.socket
2963 SYSINIT_TARGET_WANTS += \
2964 systemd-udevd.service \
2965 systemd-udev-trigger.service \
2966 systemd-udev-hwdb-update.service
2968 rootbin_PROGRAMS += \
2971 rootlibexec_PROGRAMS += \
2974 noinst_LTLIBRARIES += \
2977 src/udev/keyboard-keys.txt:
2978 $(AM_V_at)$(MKDIR_P) $(dir $@)
2979 $(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/' > $@
2981 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2982 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2984 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2985 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2987 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2988 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2990 libudev_core_la_SOURCES = \
2992 src/udev/udev-event.c \
2993 src/udev/udev-watch.c \
2994 src/udev/udev-node.c \
2995 src/udev/udev-rules.c \
2996 src/udev/udev-ctrl.c \
2997 src/udev/udev-builtin.c \
2998 src/udev/udev-builtin-btrfs.c \
2999 src/udev/udev-builtin-hwdb.c \
3000 src/udev/udev-builtin-input_id.c \
3001 src/udev/udev-builtin-keyboard.c \
3002 src/udev/udev-builtin-net_id.c \
3003 src/udev/udev-builtin-net_setup_link.c \
3004 src/udev/udev-builtin-path_id.c \
3005 src/udev/udev-builtin-usb_id.c \
3006 src/udev/net/link-config.h \
3007 src/udev/net/link-config.c \
3008 src/udev/net/ethtool-util.h \
3009 src/udev/net/ethtool-util.c
3011 nodist_libudev_core_la_SOURCES = \
3012 src/udev/keyboard-keys-from-name.h \
3013 src/udev/keyboard-keys-to-name.h \
3014 src/udev/net/link-config-gperf.c
3017 $(nodist_libudev_core_la_SOURCES)
3020 src/udev/keyboard-keys-from-name.gperf \
3021 src/udev/keyboard-keys.txt \
3022 src/udev/net/link-config-gperf.c
3025 src/udev/net/link-config-gperf.gperf
3027 libudev_core_la_CFLAGS = \
3032 libudev_core_la_LIBADD = \
3033 libudev-internal.la \
3034 libsystemd-label.la \
3035 libsystemd-internal.la \
3036 libsystemd-network.la \
3037 libsystemd-shared.la \
3041 libudev_core_la_CPPFLAGS = \
3043 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
3046 libudev_core_la_SOURCES += \
3047 src/udev/udev-builtin-firmware.c
3049 dist_udevrules_DATA += \
3050 rules/50-firmware.rules
3054 libudev_core_la_SOURCES += \
3055 src/udev/udev-builtin-kmod.c
3057 dist_udevrules_DATA += \
3058 rules/80-drivers.rules
3062 libudev_core_la_SOURCES += \
3063 src/udev/udev-builtin-blkid.c
3067 libudev_core_la_SOURCES += \
3068 src/udev/udev-builtin-uaccess.c \
3069 src/login/logind-acl.c \
3070 src/libsystemd/sd-login/sd-login.c \
3071 src/systemd/sd-login.h
3073 libudev_core_la_LIBADD += \
3077 systemd_udevd_SOURCES = \
3080 systemd_udevd_LDADD = \
3084 src/udev/udevadm.c \
3085 src/udev/udevadm-info.c \
3086 src/udev/udevadm-control.c \
3087 src/udev/udevadm-monitor.c \
3088 src/udev/udevadm-hwdb.c \
3089 src/udev/udevadm-settle.c \
3090 src/udev/udevadm-trigger.c \
3091 src/udev/udevadm-test.c \
3092 src/udev/udevadm-test-builtin.c
3097 # Update hwdb on installation. Do not bother if installing
3098 # in DESTDIR, since this is likely for packaging purposes.
3100 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3102 INSTALL_DATA_HOOKS += \
3106 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3108 # ------------------------------------------------------------------------------
3117 test_libudev_SOURCES = \
3118 src/test/test-libudev.c
3120 test_libudev_LDADD = \
3121 libsystemd-label.la \
3122 libudev-internal.la \
3123 libsystemd-shared.la
3125 test_udev_SOURCES = \
3126 src/test/test-udev.c
3135 test_udev_LDADD += \
3142 # packed sysfs test tree
3144 $(AM_V_at)$(MKDIR_P) $(dir $@)
3145 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3149 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3154 test/rules-test.sh \
3155 test/rule-syntax-check.py
3157 # ------------------------------------------------------------------------------
3159 src/udev/ata_id/ata_id.c
3162 libudev-internal.la \
3163 libsystemd-shared.la
3165 udevlibexec_PROGRAMS += \
3168 # ------------------------------------------------------------------------------
3169 cdrom_id_SOURCES = \
3170 src/udev/cdrom_id/cdrom_id.c
3173 libudev-internal.la \
3174 libsystemd-shared.la
3176 udevlibexec_PROGRAMS += \
3179 dist_udevrules_DATA += \
3180 rules/60-cdrom_id.rules
3182 # ------------------------------------------------------------------------------
3184 src/udev/collect/collect.c
3187 libudev-internal.la \
3188 libsystemd-shared.la
3190 udevlibexec_PROGRAMS += \
3193 # ------------------------------------------------------------------------------
3195 src/udev/scsi_id/scsi_id.c \
3196 src/udev/scsi_id/scsi_serial.c \
3197 src/udev/scsi_id/scsi.h \
3198 src/udev/scsi_id/scsi_id.h
3201 libudev-internal.la \
3202 libsystemd-shared.la
3204 udevlibexec_PROGRAMS += \
3208 src/udev/scsi_id/README
3210 # ------------------------------------------------------------------------------
3212 src/udev/v4l_id/v4l_id.c
3217 udevlibexec_PROGRAMS += \
3220 dist_udevrules_DATA += \
3221 rules/60-persistent-v4l.rules
3223 # ------------------------------------------------------------------------------
3224 accelerometer_SOURCES = \
3225 src/udev/accelerometer/accelerometer.c
3227 accelerometer_LDADD = \
3228 libudev-internal.la -lm \
3229 libsystemd-shared.la
3231 udevlibexec_PROGRAMS += \
3234 dist_udevrules_DATA += \
3235 rules/61-accelerometer.rules
3237 # ------------------------------------------------------------------------------
3244 libgudev_includedir = \
3245 $(includedir)/gudev-1.0/gudev
3247 libgudev_include_HEADERS = \
3249 src/gudev/gudevenums.h \
3250 src/gudev/gudevenumtypes.h \
3251 src/gudev/gudevtypes.h \
3252 src/gudev/gudevclient.h \
3253 src/gudev/gudevdevice.h \
3254 src/gudev/gudevenumerator.h
3256 lib_LTLIBRARIES += libgudev-1.0.la
3258 pkgconfiglib_DATA += \
3259 src/gudev/gudev-1.0.pc
3262 src/gudev/gudev-1.0.pc
3264 libgudev_1_0_la_SOURCES = \
3265 src/gudev/libgudev-1.0.sym \
3266 src/gudev/gudevenums.h \
3267 src/gudev/gudevenumtypes.h \
3268 src/gudev/gudevenumtypes.h\
3269 src/gudev/gudevtypes.h \
3270 src/gudev/gudevclient.h \
3271 src/gudev/gudevclient.c \
3272 src/gudev/gudevdevice.h \
3273 src/gudev/gudevdevice.c \
3274 src/gudev/gudevenumerator.h \
3275 src/gudev/gudevenumerator.c \
3276 src/gudev/gudevprivate.h
3278 nodist_libgudev_1_0_la_SOURCES = \
3279 src/gudev/gudevmarshal.h \
3280 src/gudev/gudevmarshal.c \
3281 src/gudev/gudevenumtypes.h \
3282 src/gudev/gudevenumtypes.c
3285 $(nodist_libgudev_1_0_la_SOURCES)
3287 libgudev_1_0_la_CPPFLAGS = \
3289 -I$(top_builddir)/src\
3290 -I$(top_srcdir)/src\
3291 -I$(top_builddir)/src/gudev \
3292 -I$(top_srcdir)/src/gudev \
3293 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3294 -D_GUDEV_COMPILATION \
3295 -DG_LOG_DOMAIN=\"GUdev\"
3297 libgudev_1_0_la_CFLAGS = \
3299 -fvisibility=default \
3302 libgudev_1_0_la_LIBADD = \
3306 libgudev_1_0_la_LDFLAGS = \
3308 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3311 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3313 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3314 $(AM_V_at)$(MKDIR_P) $(dir $@)
3315 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3317 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3318 $(AM_V_at)$(MKDIR_P) $(dir $@)
3319 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3320 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3322 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3323 $(AM_V_at)$(MKDIR_P) $(dir $@)
3324 $(AM_V_GEN)glib-mkenums --template $^ > $@
3326 if HAVE_INTROSPECTION
3327 -include $(INTROSPECTION_MAKEFILE)
3329 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3331 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3333 src_gudev_GUdev_1_0_gir_CFLAGS = \
3336 -D_GUDEV_COMPILATION \
3337 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3338 -I$(top_srcdir)/src \
3339 -I$(top_builddir)/src \
3340 -I$(top_srcdir)/src/gudev \
3341 -I$(top_builddir)/src/gudev
3343 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3345 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3346 --pkg-export=gudev-1.0 \
3349 src_gudev_GUdev_1_0_gir_FILES = \
3351 src/gudev/gudevtypes.h \
3352 src/gudev/gudevenums.h \
3353 src/gudev/gudevenumtypes.h \
3354 src/gudev/gudevclient.h \
3355 src/gudev/gudevdevice.h \
3356 src/gudev/gudevenumerator.h \
3357 src/gudev/gudevclient.c \
3358 src/gudev/gudevdevice.c \
3359 src/gudev/gudevenumerator.c
3361 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3362 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3364 girdir = $(datadir)/gir-1.0
3366 src/gudev/GUdev-1.0.gir
3368 typelibsdir = $(libdir)/girepository-1.0
3370 src/gudev/GUdev-1.0.typelib
3372 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3373 endif # HAVE_INTROSPECTION
3375 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3376 libgudev-install-hook:
3377 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3379 libgudev-uninstall-hook:
3380 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3382 INSTALL_EXEC_HOOKS += libgudev-install-hook
3383 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3387 src/gudev/gudev-1.0.pc.in \
3388 src/gudev/gudevmarshal.list \
3389 src/gudev/gudevenumtypes.h.template \
3390 src/gudev/gudevenumtypes.c.template \
3391 src/gudev/gjs-example.js \
3392 src/gudev/seed-example-enum.js \
3393 src/gudev/seed-example.js
3395 # ------------------------------------------------------------------------------
3396 mtd_probe_SOURCES = \
3397 src/udev/mtd_probe/mtd_probe.c \
3398 src/udev/mtd_probe/mtd_probe.h \
3399 src/udev/mtd_probe/probe_smartmedia.c
3401 dist_udevrules_DATA += \
3402 rules/75-probe_mtd.rules
3404 udevlibexec_PROGRAMS += \
3407 # ------------------------------------------------------------------------------
3408 test_id128_SOURCES = \
3409 src/test/test-id128.c
3411 test_id128_LDADD = \
3412 libsystemd-internal.la \
3413 libsystemd-shared.la
3418 # ------------------------------------------------------------------------------
3420 rootlibexec_PROGRAMS += \
3423 systemd_activate_SOURCES = \
3424 src/activate/activate.c
3426 systemd_activate_LDADD = \
3427 libsystemd-label.la \
3428 libsystemd-internal.la \
3429 libsystemd-shared.la
3431 # ------------------------------------------------------------------------------
3432 systemd_journald_SOURCES = \
3433 src/journal/journald.c \
3434 src/journal/journald-server.h
3436 systemd_journald_LDADD = \
3437 libsystemd-journal-core.la \
3438 libsystemd-internal.la \
3439 libsystemd-shared.la
3441 systemd_cat_SOURCES = \
3444 systemd_cat_LDADD = \
3445 libsystemd-journal-core.la
3448 rootlibexec_PROGRAMS += \
3449 systemd-journal-remote
3451 systemd_journal_remote_SOURCES = \
3452 src/journal/journal-remote-parse.h \
3453 src/journal/journal-remote-parse.c \
3454 src/journal/journal-remote-write.h \
3455 src/journal/journal-remote-write.c \
3456 src/journal/journal-remote.c
3458 systemd_journal_remote_LDADD = \
3459 libsystemd-internal.la \
3460 libsystemd-journal-core.la
3462 systemd_journal_remote_SOURCES += \
3463 src/journal/microhttpd-util.h \
3464 src/journal/microhttpd-util.c
3466 systemd_journal_remote_CFLAGS = \
3468 $(MICROHTTPD_CFLAGS)
3470 systemd_journal_remote_LDADD += \
3474 systemd_journal_remote_LDADD += \
3479 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3480 journalctl_CFLAGS = \
3483 journalctl_SOURCES = \
3484 src/journal/journalctl.c
3486 journalctl_LDADD = \
3487 libsystemd-journal-internal.la \
3488 libsystemd-internal.la \
3489 libsystemd-logs.la \
3490 libsystemd-shared.la
3493 journalctl_LDADD += \
3498 journalctl_SOURCES += \
3499 src/journal/journal-qrcode.c \
3500 src/journal/journal-qrcode.h
3502 journalctl_CFLAGS += \
3505 journalctl_LDADD += \
3509 test_journal_SOURCES = \
3510 src/journal/test-journal.c
3512 test_journal_LDADD = \
3513 libsystemd-journal-core.la
3515 test_journal_send_SOURCES = \
3516 src/journal/test-journal-send.c
3518 test_journal_send_LDADD = \
3519 libsystemd-journal-core.la
3521 test_journal_syslog_SOURCES = \
3522 src/journal/test-journal-syslog.c
3524 test_journal_syslog_LDADD = \
3525 libsystemd-journal-core.la
3527 test_journal_match_SOURCES = \
3528 src/journal/test-journal-match.c
3530 test_journal_match_LDADD = \
3531 libsystemd-journal-core.la
3533 test_journal_enum_SOURCES = \
3534 src/journal/test-journal-enum.c
3536 test_journal_enum_LDADD = \
3537 libsystemd-journal-core.la
3539 test_journal_stream_SOURCES = \
3540 src/journal/test-journal-stream.c
3542 test_journal_stream_LDADD = \
3543 libsystemd-journal-core.la
3545 test_journal_flush_SOURCES = \
3546 src/journal/test-journal-flush.c
3548 test_journal_flush_LDADD = \
3549 libsystemd-journal-core.la
3551 test_journal_init_SOURCES = \
3552 src/journal/test-journal-init.c
3554 test_journal_init_LDADD = \
3555 libsystemd-journal-core.la
3557 test_journal_verify_SOURCES = \
3558 src/journal/test-journal-verify.c
3560 test_journal_verify_LDADD = \
3561 libsystemd-journal-core.la
3563 test_journal_interleaving_SOURCES = \
3564 src/journal/test-journal-interleaving.c
3566 test_journal_interleaving_LDADD = \
3567 libsystemd-journal-core.la
3569 test_mmap_cache_SOURCES = \
3570 src/journal/test-mmap-cache.c
3572 test_mmap_cache_LDADD = \
3573 libsystemd-journal-core.la
3575 test_catalog_SOURCES = \
3576 src/journal/test-catalog.c
3578 test_catalog_CPPFLAGS = \
3580 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3582 test_catalog_LDADD = \
3583 libsystemd-journal-core.la
3585 test_compress_SOURCES = \
3586 src/journal/test-compress.c
3588 test_compress_LDADD = \
3589 libsystemd-journal-internal.la \
3590 libsystemd-shared.la
3592 test_compress_benchmark_SOURCES = \
3593 src/journal/test-compress-benchmark.c
3595 test_compress_benchmark_LDADD = \
3596 libsystemd-journal-internal.la \
3597 libsystemd-shared.la
3599 libsystemd_journal_core_la_SOURCES = \
3600 src/journal/journald-kmsg.c \
3601 src/journal/journald-kmsg.h \
3602 src/journal/journald-syslog.c \
3603 src/journal/journald-syslog.h \
3604 src/journal/journald-stream.c \
3605 src/journal/journald-stream.h \
3606 src/journal/journald-server.c \
3607 src/journal/journald-server.h \
3608 src/journal/journald-console.c \
3609 src/journal/journald-console.h \
3610 src/journal/journald-wall.c \
3611 src/journal/journald-wall.h \
3612 src/journal/journald-native.c \
3613 src/journal/journald-native.h \
3614 src/journal/journald-rate-limit.c \
3615 src/journal/journald-rate-limit.h \
3616 src/journal/journal-internal.h
3618 nodist_libsystemd_journal_core_la_SOURCES = \
3619 src/journal/journald-gperf.c
3621 libsystemd_journal_core_la_LIBADD = \
3622 libsystemd-journal-internal.la \
3623 libudev-internal.la \
3624 libsystemd-capability.la \
3625 libsystemd-label.la \
3626 libsystemd-internal.la \
3627 libsystemd-shared.la
3630 libsystemd_journal_core_la_LIBADD += \
3634 noinst_LTLIBRARIES += \
3635 libsystemd-journal-core.la
3637 journal-install-hook:
3638 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3639 -chown 0:0 $(DESTDIR)/var/log/journal
3640 -chmod 755 $(DESTDIR)/var/log/journal
3641 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3642 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3644 journal-uninstall-hook:
3645 -rmdir $(DESTDIR)/var/log/journal/
3647 INSTALL_EXEC_HOOKS += journal-install-hook
3648 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3650 # ------------------------------------------------------------------------------
3651 # Update catalog on installation. Do not bother if installing
3652 # in DESTDIR, since this is likely for packaging purposes.
3653 catalog-update-hook:
3654 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3656 INSTALL_DATA_HOOKS += \
3659 catalog-remove-hook:
3660 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3662 UNINSTALL_DATA_HOOKS += \
3671 test-journal-syslog \
3672 test-journal-match \
3673 test-journal-stream \
3675 test-journal-verify \
3676 test-journal-interleaving \
3677 test-journal-flush \
3684 test-compress-benchmark
3687 pkginclude_HEADERS += \
3688 src/systemd/sd-journal.h \
3689 src/systemd/sd-messages.h \
3690 src/systemd/_sd-common.h
3692 libsystemd_journal_internal_la_SOURCES = \
3693 src/journal/sd-journal.c \
3694 src/systemd/sd-journal.h \
3695 src/systemd/_sd-common.h \
3696 src/journal/journal-file.c \
3697 src/journal/journal-file.h \
3698 src/journal/journal-vacuum.c \
3699 src/journal/journal-vacuum.h \
3700 src/journal/journal-verify.c \
3701 src/journal/journal-verify.h \
3702 src/journal/lookup3.c \
3703 src/journal/lookup3.h \
3704 src/journal/journal-send.c \
3705 src/journal/journal-def.h \
3706 src/journal/compress.h \
3707 src/journal/catalog.c \
3708 src/journal/catalog.h \
3709 src/journal/mmap-cache.c \
3710 src/journal/mmap-cache.h
3712 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3713 libsystemd_journal_internal_la_CFLAGS = \
3716 libsystemd_journal_internal_la_LIBADD =
3718 libsystemd_journal_internal_la_SOURCES += \
3719 src/journal/compress.c
3722 libsystemd_journal_internal_la_CFLAGS += \
3725 libsystemd_journal_internal_la_LIBADD += \
3730 libsystemd_journal_internal_la_LIBADD += \
3735 libsystemd_journal_internal_la_SOURCES += \
3736 src/journal/journal-authenticate.c \
3737 src/journal/journal-authenticate.h \
3738 src/journal/fsprg.c \
3741 libsystemd_journal_internal_la_LIBADD += \
3744 # fsprg.c is a drop-in file using void pointer arithmetic
3745 libsystemd_journal_internal_la_CFLAGS += \
3750 noinst_LTLIBRARIES += \
3751 libsystemd-journal-internal.la
3753 rootlibexec_PROGRAMS += \
3756 rootbin_PROGRAMS += \
3762 dist_systemunit_DATA += \
3763 units/systemd-journald.socket \
3764 units/systemd-journald-dev-log.socket
3766 nodist_systemunit_DATA += \
3767 units/systemd-journald.service \
3768 units/systemd-journal-flush.service \
3769 units/systemd-journal-catalog-update.service
3771 dist_pkgsysconf_DATA += \
3772 src/journal/journald.conf
3774 dist_catalog_DATA = \
3775 catalog/systemd.fr.catalog \
3776 catalog/systemd.ru.catalog \
3777 catalog/systemd.it.catalog \
3778 catalog/systemd.catalog
3780 SOCKETS_TARGET_WANTS += \
3781 systemd-journald.socket \
3782 systemd-journald-dev-log.socket
3784 SYSINIT_TARGET_WANTS += \
3785 systemd-journald.service \
3786 systemd-journal-flush.service \
3787 systemd-journal-catalog-update.service
3790 units/systemd-journald.service.in \
3791 units/systemd-journal-flush.service.in \
3792 units/systemd-journal-catalog-update.service.in \
3793 src/journal/journald-gperf.gperf
3796 src/journal/journald-gperf.c
3798 # ------------------------------------------------------------------------------
3800 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3802 rootlibexec_PROGRAMS += \
3803 systemd-journal-gatewayd
3805 systemd_journal_gatewayd_SOURCES = \
3806 src/journal/journal-gatewayd.c \
3807 src/journal/microhttpd-util.h \
3808 src/journal/microhttpd-util.c
3810 systemd_journal_gatewayd_LDADD = \
3811 libsystemd-logs.la \
3812 libsystemd-journal-internal.la \
3813 libsystemd-internal.la \
3814 libsystemd-shared.la \
3818 systemd_journal_gatewayd_LDADD += \
3822 systemd_journal_gatewayd_CFLAGS = \
3824 $(MICROHTTPD_CFLAGS)
3826 systemd_journal_gatewayd_CPPFLAGS = \
3828 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3830 dist_systemunit_DATA += \
3831 units/systemd-journal-gatewayd.socket
3833 nodist_systemunit_DATA += \
3834 units/systemd-journal-gatewayd.service
3836 dist_gatewayddocumentroot_DATA = \
3837 src/journal/browse.html
3842 units/systemd-journal-gatewayd.service.in
3844 # ------------------------------------------------------------------------------
3846 systemd_socket_proxyd_SOURCES = \
3847 src/socket-proxy/socket-proxyd.c
3849 systemd_socket_proxyd_LDADD = \
3850 libsystemd-logs.la \
3851 libsystemd-internal.la \
3852 libsystemd-journal-internal.la \
3853 libsystemd-shared.la \
3854 libsystemd-resolve.la
3856 # ------------------------------------------------------------------------------
3858 systemd_coredump_SOURCES = \
3859 src/journal/coredump.c \
3860 src/journal/coredump-vacuum.c \
3861 src/journal/coredump-vacuum.h
3863 systemd_coredump_LDADD = \
3864 libsystemd-journal-internal.la \
3865 libsystemd-label.la \
3866 libsystemd-internal.la \
3867 libsystemd-shared.la
3870 systemd_coredump_SOURCES += \
3871 src/journal/stacktrace.c \
3872 src/journal/stacktrace.h
3874 systemd_coredump_LDADD += \
3878 rootlibexec_PROGRAMS += \
3881 dist_pkgsysconf_DATA += \
3882 src/journal/coredump.conf
3885 systemd_coredump_LDADD += \
3889 coredumpctl_SOURCES = \
3890 src/journal/coredumpctl.c
3892 coredumpctl_LDADD = \
3893 libsystemd-journal-internal.la \
3894 libsystemd-internal.la \
3895 libsystemd-shared.la
3901 test-coredump-vacuum
3903 test_coredump_vacuum_SOURCES = \
3904 src/journal/test-coredump-vacuum.c \
3905 src/journal/coredump-vacuum.c \
3906 src/journal/coredump-vacuum.h
3908 test_coredump_vacuum_LDADD = \
3909 libsystemd-internal.la \
3910 libsystemd-shared.la
3912 dist_bashcompletion_DATA += \
3913 shell-completion/bash/coredumpctl
3915 dist_zshcompletion_DATA += \
3916 shell-completion/zsh/_coredumpctl
3918 GENERAL_ALIASES += \
3919 $(bindir)/coredumpctl $(bindir)/systemd-coredumpctl
3922 sysctl.d/50-coredump.conf
3925 sysctl.d/50-coredump.conf
3929 sysctl.d/50-coredump.conf.in
3931 # ------------------------------------------------------------------------------
3933 systemd_binfmt_SOURCES = \
3936 systemd_binfmt_LDADD = \
3937 libsystemd-shared.la
3939 rootlibexec_PROGRAMS += \
3942 dist_systemunit_DATA += \
3943 units/proc-sys-fs-binfmt_misc.automount \
3944 units/proc-sys-fs-binfmt_misc.mount
3946 nodist_systemunit_DATA += \
3947 units/systemd-binfmt.service
3950 $(prefix)/lib/binfmt.d \
3951 $(sysconfdir)/binfmt.d
3953 SYSINIT_TARGET_WANTS += \
3954 systemd-binfmt.service \
3955 proc-sys-fs-binfmt_misc.automount
3960 units/systemd-binfmt.service.in
3962 # ------------------------------------------------------------------------------
3964 systemd_vconsole_setup_SOURCES = \
3965 src/vconsole/vconsole-setup.c
3967 systemd_vconsole_setup_LDADD = \
3968 libsystemd-shared.la
3970 rootlibexec_PROGRAMS += \
3971 systemd-vconsole-setup
3973 nodist_systemunit_DATA += \
3974 units/systemd-vconsole-setup.service
3976 SYSINIT_TARGET_WANTS += \
3977 systemd-vconsole-setup.service
3981 units/systemd-vconsole-setup.service.in
3983 # ------------------------------------------------------------------------------
3985 systemd_readahead_SOURCES = \
3986 src/readahead/readahead.c \
3987 src/readahead/readahead-collect.c \
3988 src/readahead/readahead-replay.c \
3989 src/readahead/readahead-analyze.c \
3990 src/readahead/readahead-common.c \
3991 src/readahead/readahead-common.h
3993 systemd_readahead_LDADD = \
3994 libsystemd-internal.la \
3995 libudev-internal.la \
3996 libsystemd-shared.la
3999 src/readahead/sd-readahead.c \
4000 src/systemd/sd-readahead.h
4002 rootlibexec_PROGRAMS += \
4005 dist_systemunit_DATA += \
4006 units/systemd-readahead-drop.service \
4007 units/systemd-readahead-done.timer
4009 nodist_systemunit_DATA += \
4010 units/systemd-readahead-collect.service \
4011 units/systemd-readahead-replay.service \
4012 units/systemd-readahead-done.service
4017 test_ssd_SOURCES = \
4018 src/readahead/test-ssd.c \
4019 src/readahead/readahead-common.c \
4020 src/readahead/readahead-common.h
4023 libsystemd-internal.la \
4024 libudev-internal.la \
4025 libsystemd-shared.la
4030 units/systemd-readahead-collect.service.in \
4031 units/systemd-readahead-replay.service.in \
4032 units/systemd-readahead-done.service.in
4034 # ------------------------------------------------------------------------------
4036 systemd_bootchart_SOURCES = \
4037 src/bootchart/bootchart.c \
4038 src/bootchart/bootchart.h \
4039 src/bootchart/store.c \
4040 src/bootchart/store.h \
4041 src/bootchart/svg.c \
4044 systemd_bootchart_LDADD = \
4045 libsystemd-journal-internal.la \
4046 libsystemd-shared.la
4048 rootlibexec_PROGRAMS += \
4051 dist_pkgsysconf_DATA += \
4052 src/bootchart/bootchart.conf
4055 # ------------------------------------------------------------------------------
4056 if ENABLE_QUOTACHECK
4057 rootlibexec_PROGRAMS += \
4060 nodist_systemunit_DATA += \
4061 units/systemd-quotacheck.service
4063 systemd_quotacheck_SOURCES = \
4064 src/quotacheck/quotacheck.c
4066 systemd_quotacheck_LDADD = \
4067 libsystemd-shared.la
4071 units/systemd-quotacheck.service.in
4073 nodist_systemunit_DATA += \
4074 units/quotaon.service
4076 # ------------------------------------------------------------------------------
4077 if ENABLE_RANDOMSEED
4078 rootlibexec_PROGRAMS += \
4081 nodist_systemunit_DATA += \
4082 units/systemd-random-seed.service
4084 systemd_random_seed_SOURCES = \
4085 src/random-seed/random-seed.c
4087 systemd_random_seed_LDADD = \
4088 libsystemd-label.la \
4089 libsystemd-shared.la
4091 SYSINIT_TARGET_WANTS += \
4092 systemd-random-seed.service
4097 units/systemd-random-seed.service.in
4099 # ------------------------------------------------------------------------------
4101 rootlibexec_PROGRAMS += \
4104 nodist_systemunit_DATA += \
4105 units/systemd-backlight@.service
4107 systemd_backlight_SOURCES = \
4108 src/backlight/backlight.c
4110 systemd_backlight_LDADD = \
4111 libsystemd-label.la \
4112 libudev-internal.la \
4113 libsystemd-shared.la
4117 units/systemd-backlight@.service.in
4119 # ------------------------------------------------------------------------------
4121 rootlibexec_PROGRAMS += \
4124 nodist_systemunit_DATA += \
4125 units/systemd-rfkill@.service
4127 systemd_rfkill_SOURCES = \
4130 systemd_rfkill_LDADD = \
4131 libsystemd-label.la \
4132 libudev-internal.la \
4133 libsystemd-shared.la
4137 units/systemd-rfkill@.service.in
4139 # ------------------------------------------------------------------------------
4140 if HAVE_LIBCRYPTSETUP
4141 rootlibexec_PROGRAMS += \
4144 systemgenerator_PROGRAMS += \
4145 systemd-cryptsetup-generator
4147 dist_systemunit_DATA += \
4148 units/cryptsetup.target \
4149 units/cryptsetup-pre.target
4151 systemd_cryptsetup_SOURCES = \
4152 src/cryptsetup/cryptsetup.c
4154 systemd_cryptsetup_CFLAGS = \
4156 $(LIBCRYPTSETUP_CFLAGS)
4158 systemd_cryptsetup_LDADD = \
4159 libsystemd-label.la \
4160 libudev-internal.la \
4161 libsystemd-shared.la \
4162 $(LIBCRYPTSETUP_LIBS)
4164 systemd_cryptsetup_generator_SOURCES = \
4165 src/cryptsetup/cryptsetup-generator.c
4167 systemd_cryptsetup_generator_LDADD = \
4168 libsystemd-label.la \
4169 libsystemd-shared.la
4171 SYSINIT_TARGET_WANTS += \
4176 # ------------------------------------------------------------------------------
4178 systemd_hostnamed_SOURCES = \
4179 src/hostname/hostnamed.c
4181 systemd_hostnamed_LDADD = \
4182 libsystemd-label.la \
4183 libsystemd-internal.la \
4184 libsystemd-shared.la
4186 rootlibexec_PROGRAMS += \
4189 nodist_systemunit_DATA += \
4190 units/systemd-hostnamed.service
4192 dist_systemunit_DATA += \
4193 units/org.freedesktop.hostname1.busname
4195 dist_dbuspolicy_DATA += \
4196 src/hostname/org.freedesktop.hostname1.conf
4198 dist_dbussystemservice_DATA += \
4199 src/hostname/org.freedesktop.hostname1.service
4201 polkitpolicy_files += \
4202 src/hostname/org.freedesktop.hostname1.policy
4204 SYSTEM_UNIT_ALIASES += \
4205 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4207 BUSNAMES_TARGET_WANTS += \
4208 org.freedesktop.hostname1.busname
4210 hostnamectl_SOURCES = \
4211 src/hostname/hostnamectl.c
4213 hostnamectl_LDADD = \
4214 libsystemd-internal.la \
4215 libsystemd-shared.la
4220 dist_bashcompletion_DATA += \
4221 shell-completion/bash/hostnamectl
4223 dist_zshcompletion_DATA += \
4224 shell-completion/zsh/_hostnamectl
4228 polkitpolicy_in_files += \
4229 src/hostname/org.freedesktop.hostname1.policy.in
4232 units/systemd-hostnamed.service.in
4234 # ------------------------------------------------------------------------------
4236 dist_systemunit_DATA += \
4237 units/org.freedesktop.systemd1.busname
4239 BUSNAMES_TARGET_WANTS += \
4240 org.freedesktop.systemd1.busname
4243 # ------------------------------------------------------------------------------
4245 systemd_localed_SOURCES = \
4246 src/locale/localed.c
4248 systemd_localed_LDADD = \
4249 libsystemd-label.la \
4250 libsystemd-internal.la \
4251 libsystemd-shared.la
4253 nodist_systemunit_DATA += \
4254 units/systemd-localed.service
4256 dist_systemunit_DATA += \
4257 units/org.freedesktop.locale1.busname
4259 rootlibexec_PROGRAMS += \
4262 dist_dbuspolicy_DATA += \
4263 src/locale/org.freedesktop.locale1.conf
4265 dist_dbussystemservice_DATA += \
4266 src/locale/org.freedesktop.locale1.service
4268 polkitpolicy_files += \
4269 src/locale/org.freedesktop.locale1.policy
4271 SYSTEM_UNIT_ALIASES += \
4272 systemd-localed.service dbus-org.freedesktop.locale1.service
4274 BUSNAMES_TARGET_WANTS += \
4275 org.freedesktop.locale1.busname
4277 dist_pkgdata_DATA += \
4278 src/locale/kbd-model-map
4280 dist_noinst_SCRIPT = \
4281 src/locale/generate-kbd-model-map
4283 update-kbd-model-map: src/locale/generate-kbd-model-map
4284 $PYTHON $< >src/locale/kbd-model-map
4286 localectl_SOURCES = \
4287 src/locale/localectl.c
4290 libsystemd-internal.la \
4291 libsystemd-shared.la
4296 dist_bashcompletion_DATA += \
4297 shell-completion/bash/localectl
4299 dist_zshcompletion_DATA += \
4300 shell-completion/zsh/_localectl
4304 .PHONY: update-kbd-model-map
4306 polkitpolicy_in_files += \
4307 src/locale/org.freedesktop.locale1.policy.in
4310 units/systemd-localed.service.in
4312 # ------------------------------------------------------------------------------
4314 systemd_timedated_SOURCES = \
4315 src/timedate/timedated.c
4317 systemd_timedated_LDADD = \
4318 libsystemd-label.la \
4319 libsystemd-internal.la \
4320 libsystemd-shared.la
4322 rootlibexec_PROGRAMS += \
4325 dist_dbussystemservice_DATA += \
4326 src/timedate/org.freedesktop.timedate1.service
4328 dist_dbuspolicy_DATA += \
4329 src/timedate/org.freedesktop.timedate1.conf
4331 nodist_systemunit_DATA += \
4332 units/systemd-timedated.service
4334 dist_systemunit_DATA += \
4335 units/org.freedesktop.timedate1.busname
4337 polkitpolicy_files += \
4338 src/timedate/org.freedesktop.timedate1.policy
4340 SYSTEM_UNIT_ALIASES += \
4341 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4343 BUSNAMES_TARGET_WANTS += \
4344 org.freedesktop.timedate1.busname
4346 timedatectl_SOURCES = \
4347 src/timedate/timedatectl.c
4349 timedatectl_LDADD = \
4350 libsystemd-internal.la \
4351 libsystemd-shared.la
4356 dist_bashcompletion_DATA += \
4357 shell-completion/bash/timedatectl
4359 dist_zshcompletion_DATA += \
4360 shell-completion/zsh/_timedatectl
4363 polkitpolicy_in_files += \
4364 src/timedate/org.freedesktop.timedate1.policy.in
4367 units/systemd-timedated.service.in
4369 # ------------------------------------------------------------------------------
4371 systemd_timesyncd_SOURCES = \
4372 src/timesync/timesyncd.c \
4373 src/timesync/timesyncd.h
4375 nodist_systemd_timesyncd_SOURCES = \
4376 src/timesync/timesyncd-gperf.c
4379 src/timesync/timesyncd-gperf.gperf
4382 src/timesync/timesyncd-gperf.c
4384 systemd_timesyncd_LDADD = \
4385 libsystemd-resolve.la \
4386 libsystemd-network.la \
4387 libsystemd-label.la \
4388 libsystemd-capability.la \
4389 libsystemd-internal.la \
4390 libsystemd-shared.la \
4393 rootlibexec_PROGRAMS += \
4396 nodist_systemunit_DATA += \
4397 units/systemd-timesyncd.service
4399 GENERAL_ALIASES += \
4400 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-timesyncd.service
4403 units/systemd-timesyncd.service.in
4405 nodist_pkgsysconf_DATA += \
4406 src/timesync/timesyncd.conf
4409 src/timesync/timesyncd.conf.in
4412 src/timesync/timesyncd.conf
4415 # ------------------------------------------------------------------------------
4417 libnss_myhostname_la_SOURCES = \
4418 src/nss-myhostname/nss-myhostname.sym \
4419 src/nss-myhostname/nss-myhostname.c
4421 libnss_myhostname_la_LDFLAGS = \
4428 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4430 libnss_myhostname_la_LIBADD = \
4431 libsystemd-shared.la \
4432 libsystemd-internal.la
4434 lib_LTLIBRARIES += \
4435 libnss_myhostname.la
4438 # ------------------------------------------------------------------------------
4440 systemd_machined_SOURCES = \
4441 src/machine/machined.c \
4442 src/machine/machined.h
4444 systemd_machined_LDADD = \
4445 libsystemd-machine-core.la
4447 rootlibexec_PROGRAMS += \
4450 libsystemd_machine_core_la_SOURCES = \
4451 src/machine/machined-dbus.c \
4452 src/machine/machine.c \
4453 src/machine/machine.h \
4454 src/machine/machine-dbus.c
4456 libsystemd_machine_core_la_LIBADD = \
4457 libsystemd-label.la \
4458 libsystemd-internal.la \
4459 libudev-internal.la \
4460 libsystemd-shared.la
4462 noinst_LTLIBRARIES += \
4463 libsystemd-machine-core.la
4465 machinectl_SOURCES = \
4466 src/machine/machinectl.c
4468 machinectl_LDADD = \
4469 libsystemd-internal.la \
4470 libsystemd-shared.la
4472 rootbin_PROGRAMS += \
4475 dist_bashcompletion_DATA += \
4476 shell-completion/bash/machinectl
4478 test_machine_tables_SOURCES = \
4479 src/machine/test-machine-tables.c
4481 test_machine_tables_LDADD = \
4482 libsystemd-machine-core.la
4487 nodist_systemunit_DATA += \
4488 units/systemd-machined.service
4490 dist_systemunit_DATA += \
4491 units/machine.slice \
4492 units/org.freedesktop.machine1.busname
4494 dist_dbussystemservice_DATA += \
4495 src/machine/org.freedesktop.machine1.service
4497 dist_dbuspolicy_DATA += \
4498 src/machine/org.freedesktop.machine1.conf
4500 dist_zshcompletion_DATA += \
4501 shell-completion/zsh/_machinectl \
4502 shell-completion/zsh/_sd_machines
4504 SYSTEM_UNIT_ALIASES += \
4505 systemd-machined.service dbus-org.freedesktop.machine1.service
4507 BUSNAMES_TARGET_WANTS += \
4508 org.freedesktop.machine1.busname
4511 units/systemd-machined.service.in
4513 libnss_mymachines_la_SOURCES = \
4514 src/nss-mymachines/nss-mymachines.sym \
4515 src/nss-mymachines/nss-mymachines.c
4517 libnss_mymachines_la_LDFLAGS = \
4524 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4526 libnss_mymachines_la_LIBADD = \
4527 libsystemd-shared.la \
4528 libsystemd-internal.la
4530 lib_LTLIBRARIES += \
4531 libnss_mymachines.la
4534 # ------------------------------------------------------------------------------
4536 systemd_resolved_SOURCES = \
4537 src/resolve/resolved.h \
4538 src/resolve/resolved.c \
4539 src/resolve/resolved-manager.c
4541 systemd_resolved_CFLAGS = \
4545 nodist_systemd_resolved_SOURCES = \
4546 src/resolve/resolved-gperf.c
4549 src/resolve/resolved-gperf.gperf
4552 src/resolve/resolved-gperf.c
4554 systemd_resolved_LDADD = \
4555 libsystemd-capability.la \
4556 libsystemd-network.la \
4557 libsystemd-label.la \
4558 libsystemd-internal.la \
4559 libsystemd-shared.la
4561 rootlibexec_PROGRAMS += \
4564 nodist_systemunit_DATA += \
4565 units/systemd-resolved.service
4568 units/systemd-resolved.service.in
4570 GENERAL_ALIASES += \
4571 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4573 nodist_pkgsysconf_DATA += \
4574 src/resolve/resolved.conf
4577 src/resolve/resolved.conf.in
4580 src/resolve/resolved.conf
4584 # ------------------------------------------------------------------------------
4586 rootlibexec_PROGRAMS += \
4589 systemd_networkd_SOURCES = \
4590 src/network/networkd.c
4592 systemd_networkd_LDADD = \
4593 libsystemd-networkd-core.la \
4594 libsystemd-capability.la
4596 noinst_LTLIBRARIES += \
4597 libsystemd-networkd-core.la
4599 libsystemd_networkd_core_la_CFLAGS = \
4602 libsystemd_networkd_core_la_SOURCES = \
4603 src/libsystemd-network/network-internal.h \
4604 src/network/networkd.h \
4605 src/network/networkd-netdev.h \
4606 src/network/networkd-netdev-tunnel.h \
4607 src/network/networkd-netdev-veth.h \
4608 src/network/networkd-netdev-vxlan.h \
4609 src/network/networkd-netdev-vlan.h \
4610 src/network/networkd-netdev-macvlan.h \
4611 src/network/networkd-netdev-dummy.h \
4612 src/network/networkd-netdev-tuntap.h \
4613 src/network/networkd-netdev-bond.h \
4614 src/network/networkd-netdev-bridge.h \
4615 src/network/networkd-netdev.c \
4616 src/network/networkd-netdev-tunnel.c \
4617 src/network/networkd-netdev-veth.c \
4618 src/network/networkd-netdev-vxlan.c \
4619 src/network/networkd-netdev-vlan.c \
4620 src/network/networkd-netdev-macvlan.c \
4621 src/network/networkd-netdev-dummy.c \
4622 src/network/networkd-netdev-tuntap.c \
4623 src/network/networkd-netdev-bond.c \
4624 src/network/networkd-netdev-bridge.c \
4625 src/network/networkd-link.c \
4626 src/network/networkd-network.c \
4627 src/network/networkd-address.c \
4628 src/network/networkd-route.c \
4629 src/network/networkd-manager.c \
4630 src/network/networkd-address-pool.c
4632 nodist_libsystemd_networkd_core_la_SOURCES = \
4633 src/network/networkd-network-gperf.c \
4634 src/network/networkd-netdev-gperf.c
4636 libsystemd_networkd_core_la_LIBADD = \
4637 libudev-internal.la \
4638 libsystemd-internal.la \
4639 libsystemd-network.la \
4640 libsystemd-label.la \
4641 libsystemd-shared.la
4643 rootlibexec_PROGRAMS += \
4644 systemd-networkd-wait-online
4646 systemd_networkd_wait_online_CFLAGS = \
4649 systemd_networkd_wait_online_SOURCES = \
4650 src/libsystemd-network/network-internal.h \
4651 src/network/networkd-wait-online.c \
4652 src/network/networkd-wait-online.h
4654 systemd_networkd_wait_online_LDADD = \
4655 libsystemd-network.la \
4656 libudev-internal.la \
4657 libsystemd-internal.la \
4658 libsystemd-shared.la
4660 test_network_SOURCES = \
4661 src/network/test-network.c
4663 test_network_CFLAGS = \
4666 test_network_LDADD = \
4667 libsystemd-networkd-core.la
4672 nodist_systemunit_DATA += \
4673 units/systemd-networkd.service \
4674 units/systemd-networkd-wait-online.service
4676 GENERAL_ALIASES += \
4677 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4678 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4681 src/network/networkd-network-gperf.gperf \
4682 src/network/networkd-netdev-gperf.gperf \
4683 units/systemd-networkd.service.in \
4684 units/systemd-networkd-wait-online.service.in
4687 src/network/networkd-network-gperf.c \
4688 src/network/networkd-netdev-gperf.c
4691 # ------------------------------------------------------------------------------
4693 systemd_logind_SOURCES = \
4694 src/login/logind.c \
4697 nodist_systemd_logind_SOURCES = \
4698 src/login/logind-gperf.c
4700 systemd_logind_LDADD = \
4701 libsystemd-logind-core.la
4703 libsystemd_logind_core_la_SOURCES = \
4704 src/login/logind-core.c \
4705 src/login/logind-device.c \
4706 src/login/logind-device.h \
4707 src/login/logind-button.c \
4708 src/login/logind-button.h \
4709 src/login/logind-action.c \
4710 src/login/logind-action.h \
4711 src/login/logind-seat.c \
4712 src/login/logind-seat.h \
4713 src/login/logind-session.c \
4714 src/login/logind-session.h \
4715 src/login/logind-session-device.c \
4716 src/login/logind-session-device.h \
4717 src/login/logind-user.c \
4718 src/login/logind-user.h \
4719 src/login/logind-inhibit.c \
4720 src/login/logind-inhibit.h \
4721 src/login/logind-dbus.c \
4722 src/login/logind-session-dbus.c \
4723 src/login/logind-seat-dbus.c \
4724 src/login/logind-user-dbus.c \
4725 src/login/logind-acl.h
4727 libsystemd_logind_core_la_LIBADD = \
4728 libsystemd-label.la \
4729 libsystemd-capability.la \
4730 libsystemd-internal.la \
4731 libudev-internal.la \
4732 libsystemd-shared.la
4735 libsystemd_logind_core_la_SOURCES += \
4736 src/login/logind-acl.c
4738 libsystemd_logind_core_la_LIBADD += \
4742 noinst_LTLIBRARIES += \
4743 libsystemd-logind-core.la
4745 systemd_user_sessions_SOURCES = \
4746 src/login/user-sessions.c
4748 systemd_user_sessions_LDADD = \
4749 libsystemd-shared.la
4751 rootlibexec_PROGRAMS += \
4753 systemd-user-sessions
4755 loginctl_SOURCES = \
4756 src/login/loginctl.c \
4757 src/login/sysfs-show.c
4760 libsystemd-internal.la \
4761 libudev-internal.la \
4762 libsystemd-shared.la
4764 rootbin_PROGRAMS += \
4767 dist_bashcompletion_DATA += \
4768 shell-completion/bash/loginctl
4770 dist_zshcompletion_DATA += \
4771 shell-completion/zsh/_loginctl \
4772 shell-completion/zsh/_systemd-inhibit
4774 systemd_inhibit_SOURCES = \
4777 systemd_inhibit_LDADD = \
4778 libsystemd-internal.la \
4779 libsystemd-shared.la
4781 rootbin_PROGRAMS += \
4784 test_login_SOURCES = \
4785 src/libsystemd/sd-login/test-login.c
4787 test_login_LDADD = \
4788 libsystemd-internal.la \
4789 libsystemd-shared.la
4791 test_login_shared_SOURCES = \
4792 src/login/test-login-shared.c
4794 test_login_shared_LDADD = \
4795 libsystemd-internal.la \
4796 libsystemd-shared.la
4798 test_inhibit_SOURCES = \
4799 src/login/test-inhibit.c
4801 test_inhibit_LDADD = \
4802 libsystemd-internal.la \
4803 libsystemd-shared.la
4805 test_login_tables_SOURCES = \
4806 src/login/test-login-tables.c
4808 test_login_tables_LDADD = \
4809 libsystemd-logind-core.la
4820 pam_systemd_la_SOURCES = \
4821 src/login/pam_systemd.sym \
4822 src/login/pam_systemd.c
4824 pam_systemd_la_CFLAGS = \
4829 pam_systemd_la_LDFLAGS = \
4835 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
4837 pam_systemd_la_LIBADD = \
4838 libsystemd-capability.la \
4839 libsystemd-internal.la \
4840 libsystemd-shared.la \
4843 pamlib_LTLIBRARIES = \
4846 dist_pamconf_DATA = \
4847 src/login/systemd-user
4850 nodist_systemunit_DATA += \
4851 units/systemd-logind.service \
4852 units/systemd-user-sessions.service
4854 dist_systemunit_DATA += \
4856 units/org.freedesktop.login1.busname
4858 dist_dbussystemservice_DATA += \
4859 src/login/org.freedesktop.login1.service
4861 dist_dbuspolicy_DATA += \
4862 src/login/org.freedesktop.login1.conf
4864 dist_pkgsysconf_DATA += \
4865 src/login/logind.conf
4867 polkitpolicy_files += \
4868 src/login/org.freedesktop.login1.policy
4873 MULTI_USER_TARGET_WANTS += \
4874 systemd-logind.service \
4875 systemd-user-sessions.service
4877 SYSTEM_UNIT_ALIASES += \
4878 systemd-logind.service dbus-org.freedesktop.login1.service
4880 BUSNAMES_TARGET_WANTS += \
4881 org.freedesktop.login1.busname
4883 if ENABLE_MULTI_SEAT_X
4885 systemd_multi_seat_x_SOURCES = \
4886 src/login/multi-seat-x.c
4888 systemd_multi_seat_x_LDADD = \
4889 libsystemd-label.la \
4890 libsystemd-shared.la
4892 rootlibexec_PROGRAMS += \
4893 systemd-multi-seat-x
4897 dist_udevrules_DATA += \
4898 src/login/70-uaccess.rules \
4899 src/login/70-power-switch.rules
4901 nodist_udevrules_DATA += \
4902 src/login/71-seat.rules \
4903 src/login/73-seat-late.rules
4906 src/login/logind-gperf.c \
4907 src/login/71-seat.rules \
4908 src/login/73-seat-late.rules
4911 polkitpolicy_in_files += \
4912 src/login/org.freedesktop.login1.policy.in
4915 src/login/logind-gperf.gperf \
4916 src/login/71-seat.rules.in \
4917 src/login/73-seat-late.rules.in \
4918 units/systemd-logind.service.in \
4919 units/systemd-user-sessions.service.in
4921 # ------------------------------------------------------------------------------
4922 if HAVE_PYTHON_DEVEL
4923 pkgpyexec_LTLIBRARIES = \
4930 _journal_la_SOURCES = \
4931 src/python-systemd/_journal.c
4933 _journal_la_CFLAGS = \
4935 -fvisibility=default \
4936 $(PYTHON_DEVEL_CFLAGS)
4938 _journal_la_LDFLAGS = \
4944 _journal_la_LIBADD = \
4945 $(PYTHON_DEVEL_LIBS) \
4948 id128_la_SOURCES = \
4949 src/python-systemd/id128.c \
4950 src/python-systemd/pyutil.c \
4951 src/python-systemd/pyutil.h
4953 nodist_id128_la_SOURCES = \
4954 src/python-systemd/id128-constants.h
4958 -fvisibility=default \
4959 $(PYTHON_DEVEL_CFLAGS) \
4960 -I$(top_builddir)/src/python-systemd
4962 id128_la_LDFLAGS = \
4969 $(PYTHON_DEVEL_LIBS) \
4970 libsystemd-shared.la \
4973 _daemon_la_SOURCES = \
4974 src/python-systemd/_daemon.c \
4975 src/python-systemd/pyutil.c \
4976 src/python-systemd/pyutil.h
4978 _daemon_la_CFLAGS = \
4980 -fvisibility=default \
4981 $(PYTHON_DEVEL_CFLAGS) \
4982 -I$(top_builddir)/src/python-systemd
4984 _daemon_la_LDFLAGS = \
4990 _daemon_la_LIBADD = \
4991 $(PYTHON_DEVEL_LIBS) \
4992 libsystemd-shared.la \
4995 _reader_la_SOURCES = \
4996 src/python-systemd/_reader.c \
4997 src/python-systemd/pyutil.c \
4998 src/python-systemd/pyutil.h
5000 _reader_la_CFLAGS = \
5002 -fvisibility=default \
5003 $(PYTHON_DEVEL_CFLAGS)
5005 _reader_la_LDFLAGS = \
5011 _reader_la_LIBADD = \
5012 $(PYTHON_DEVEL_LIBS) \
5013 libsystemd-shared.la \
5016 login_la_SOURCES = \
5017 src/python-systemd/login.c \
5018 src/python-systemd/pyutil.c \
5019 src/python-systemd/pyutil.h
5023 -fvisibility=default \
5024 $(PYTHON_DEVEL_CFLAGS)
5026 login_la_LDFLAGS = \
5033 $(PYTHON_DEVEL_LIBS) \
5034 libsystemd-shared.la \
5037 dist_pkgpyexec_PYTHON = \
5038 src/python-systemd/journal.py \
5039 src/python-systemd/daemon.py \
5040 src/python-systemd/__init__.py
5042 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5043 $(AM_V_at)$(MKDIR_P) $(dir $@)
5044 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5047 src/python-systemd/id128-constants.h
5049 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5051 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5052 $(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/
5053 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5056 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5057 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5060 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5061 $(MAKE) DESTDIR="$$dir" install && \
5062 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5067 CLEAN_LOCAL_HOOKS += clean-sphinx
5069 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5072 -rm -rf docs/html/python-systemd/
5074 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5076 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5077 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5079 # ------------------------------------------------------------------------------
5080 if ENABLE_COMPAT_LIBS
5082 src/compat-libs/linkwarning.h
5084 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5085 $(AM_V_at)$(MKDIR_P) $(dir $@)
5086 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5089 libsystemd-journal.c \
5090 libsystemd-login.c \
5091 libsystemd-id128.c \
5094 libsystemd_journal_la_SOURCES = \
5095 libsystemd-journal.c \
5096 src/compat-libs/libsystemd-journal.sym
5098 libsystemd_journal_la_CPPFLAGS = \
5100 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5102 libsystemd_journal_la_LDFLAGS = \
5104 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5105 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5107 libsystemd_journal_la_LIBADD = \
5108 libsystemd-journal-internal.la \
5109 libsystemd-internal.la \
5110 libsystemd-shared.la
5112 libsystemd_login_la_SOURCES = \
5113 libsystemd-login.c \
5114 src/compat-libs/libsystemd-login.sym
5116 libsystemd_login_la_CPPFLAGS = \
5118 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5120 libsystemd_login_la_LDFLAGS = \
5122 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5123 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5125 libsystemd_login_la_LIBADD = \
5126 libsystemd-internal.la \
5127 libsystemd-shared.la
5129 libsystemd_id128_la_SOURCES = \
5130 libsystemd-id128.c \
5131 src/compat-libs/libsystemd-id128.sym
5133 libsystemd_id128_la_CPPFLAGS = \
5135 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5137 libsystemd_id128_la_LDFLAGS = \
5139 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5140 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5142 libsystemd_id128_la_LIBADD = \
5143 libsystemd-internal.la \
5144 libsystemd-shared.la
5146 libsystemd_daemon_la_SOURCES = \
5147 libsystemd-daemon.c \
5148 src/compat-libs/libsystemd-daemon.sym
5150 libsystemd_daemon_la_CPPFLAGS = \
5152 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5154 libsystemd_daemon_la_LDFLAGS = \
5156 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5157 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5159 libsystemd_daemon_la_LIBADD = \
5160 libsystemd-internal.la \
5161 libsystemd-shared.la
5163 lib_LTLIBRARIES += \
5164 libsystemd-journal.la \
5165 libsystemd-login.la \
5166 libsystemd-id128.la \
5167 libsystemd-daemon.la
5169 pkgconfiglib_DATA += \
5170 src/compat-libs/libsystemd-journal.pc \
5171 src/compat-libs/libsystemd-login.pc \
5172 src/compat-libs/libsystemd-id128.pc \
5173 src/compat-libs/libsystemd-daemon.pc
5175 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5176 compat-lib-install-hook:
5177 libname=libsystemd-login.so && $(move-to-rootlibdir)
5178 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5179 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5180 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5182 compat-lib-uninstall-hook:
5183 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5184 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5185 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5186 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5188 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5189 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5193 src/compat-libs/libsystemd-journal.pc.in \
5194 src/compat-libs/libsystemd-login.pc.in \
5195 src/compat-libs/libsystemd-id128.pc.in \
5196 src/compat-libs/libsystemd-daemon.pc.in
5198 # ------------------------------------------------------------------------------
5200 '|rootlibexecdir=$(rootlibexecdir)|' \
5201 '|rootbindir=$(rootbindir)|' \
5202 '|bindir=$(bindir)|' \
5203 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5204 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5205 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5206 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5207 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5208 '|pkgdatadir=$(pkgdatadir)|' \
5209 '|systemunitdir=$(systemunitdir)|' \
5210 '|userunitdir=$(userunitdir)|' \
5211 '|systempresetdir=$(systempresetdir)|' \
5212 '|userpresetdir=$(userpresetdir)|' \
5213 '|udevhwdbdir=$(udevhwdbdir)|' \
5214 '|udevrulesdir=$(udevrulesdir)|' \
5215 '|catalogdir=$(catalogdir)|' \
5216 '|tmpfilesdir=$(tmpfilesdir)|' \
5217 '|sysusersdir=$(sysusersdir)|' \
5218 '|sysctldir=$(sysctldir)|' \
5219 '|systemgeneratordir=$(systemgeneratordir)|' \
5220 '|usergeneratordir=$(usergeneratordir)|' \
5221 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5222 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5223 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5224 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5225 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5226 '|prefix=$(prefix)|' \
5227 '|exec_prefix=$(exec_prefix)|' \
5228 '|libdir=$(libdir)|' \
5229 '|includedir=$(includedir)|' \
5230 '|VERSION=$(VERSION)|' \
5231 '|rootprefix=$(rootprefix)|' \
5232 '|udevlibexecdir=$(udevlibexecdir)|' \
5233 '|SUSHELL=$(SUSHELL)|' \
5234 '|DEBUGTTY=$(DEBUGTTY)|' \
5237 '|MKDIR_P=$(MKDIR_P)|' \
5238 '|QUOTAON=$(QUOTAON)|' \
5239 '|QUOTACHECK=$(QUOTACHECK)|' \
5240 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5241 '|VARLOGDIR=$(varlogdir)|' \
5242 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5243 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5244 '|PYTHON=$(PYTHON)|' \
5245 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5246 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5247 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5248 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5249 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5250 '|TTY_GID=$(TTY_GID)|' \
5251 '|systemsleepdir=$(systemsleepdir)|' \
5252 '|systemshutdowndir=$(systemshutdowndir)|' \
5253 '|binfmtdir=$(binfmtdir)|' \
5254 '|modulesloaddir=$(modulesloaddir)|'
5257 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5258 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5267 sysctl.d/%: sysctl.d/%.in
5273 src/core/macros.%: src/core/macros.%.in
5276 src/%.policy.in: src/%.policy.in.in
5279 shell-completion/%: shell-completion/%.in
5290 $(AM_V_GEN)chmod +x $@
5292 src/%.c: src/%.gperf
5293 $(AM_V_at)$(MKDIR_P) $(dir $@)
5294 $(AM_V_GPERF)$(GPERF) < $< > $@
5297 $(AM_V_at)$(MKDIR_P) $(dir $@)
5298 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5301 $(AM_V_at)$(MKDIR_P) $(dir $@)
5302 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5304 units/user/%: units/%.m4
5305 $(AM_V_at)$(MKDIR_P) $(dir $@)
5306 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5309 nodist_polkitpolicy_DATA = \
5310 $(polkitpolicy_files) \
5311 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5315 $(polkitpolicy_in_files) \
5316 $(polkitpolicy_in_in_files)
5319 $(nodist_systemunit_DATA) \
5320 $(nodist_userunit_DATA) \
5321 $(pkgconfigdata_DATA) \
5322 $(pkgconfiglib_DATA) \
5323 $(nodist_polkitpolicy_DATA)
5325 # ------------------------------------------------------------------------------
5327 man/custom-entities.ent: configure.ac
5328 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5329 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5330 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5334 man/custom-entities.ent
5339 --stringparam man.output.quietly 1 \
5340 --stringparam funcsynopsis.style ansi \
5341 --stringparam man.authors.section.enabled 0 \
5342 --stringparam man.copyright.section.enabled 0 \
5343 --stringparam systemd.version $(VERSION) \
5344 --path '$(builddir)/man:$(srcdir)/man'
5346 XSLTPROC_PROCESS_MAN = \
5347 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5349 XSLTPROC_PROCESS_HTML = \
5350 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5352 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5353 $(XSLTPROC_PROCESS_MAN)
5355 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5356 $(XSLTPROC_PROCESS_MAN)
5358 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5359 $(XSLTPROC_PROCESS_MAN)
5361 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5362 $(XSLTPROC_PROCESS_MAN)
5364 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5365 $(XSLTPROC_PROCESS_MAN)
5367 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5368 $(XSLTPROC_PROCESS_HTML)
5371 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5377 man/custom-html.xsl \
5380 # ------------------------------------------------------------------------------
5383 docs/sysvinit/README
5388 docs/sysvinit/README: docs/sysvinit/README.in
5391 docs/var-log/README: docs/var-log/README.in
5395 docs/sysvinit/README \
5400 docs/sysvinit/README.in \
5401 docs/var-log/README.in
5403 SOCKETS_TARGET_WANTS += \
5404 systemd-initctl.socket \
5405 systemd-shutdownd.socket
5408 RUNLEVEL1_TARGET_WANTS += \
5409 systemd-update-utmp-runlevel.service
5410 RUNLEVEL2_TARGET_WANTS += \
5411 systemd-update-utmp-runlevel.service
5412 RUNLEVEL3_TARGET_WANTS += \
5413 systemd-update-utmp-runlevel.service
5414 RUNLEVEL4_TARGET_WANTS += \
5415 systemd-update-utmp-runlevel.service
5416 RUNLEVEL5_TARGET_WANTS += \
5417 systemd-update-utmp-runlevel.service
5420 SYSINIT_TARGET_WANTS += \
5421 systemd-update-utmp.service \
5422 systemd-update-done.service \
5425 LOCAL_FS_TARGET_WANTS += \
5426 systemd-remount-fs.service \
5429 MULTI_USER_TARGET_WANTS += \
5431 systemd-ask-password-wall.path
5433 SYSINIT_TARGET_WANTS += \
5434 dev-hugepages.mount \
5436 sys-kernel-config.mount \
5437 sys-kernel-debug.mount \
5438 sys-fs-fuse-connections.mount \
5439 systemd-sysctl.service \
5440 systemd-ask-password-console.path
5443 SYSTEM_UNIT_ALIASES += \
5444 poweroff.target runlevel0.target \
5445 rescue.target runlevel1.target \
5446 multi-user.target runlevel2.target \
5447 multi-user.target runlevel3.target \
5448 multi-user.target runlevel4.target \
5449 graphical.target runlevel5.target \
5450 reboot.target runlevel6.target
5453 SYSTEM_UNIT_ALIASES += \
5454 graphical.target default.target \
5455 reboot.target ctrl-alt-del.target \
5456 getty@.service autovt@.service
5458 USER_UNIT_ALIASES += \
5459 $(systemunitdir)/shutdown.target shutdown.target \
5460 $(systemunitdir)/sockets.target sockets.target \
5461 $(systemunitdir)/busnames.target busnames.target \
5462 $(systemunitdir)/timers.target timers.target \
5463 $(systemunitdir)/paths.target paths.target \
5464 $(systemunitdir)/bluetooth.target bluetooth.target \
5465 $(systemunitdir)/printer.target printer.target \
5466 $(systemunitdir)/sound.target sound.target \
5467 $(systemunitdir)/smartcard.target smartcard.target
5469 GENERAL_ALIASES += \
5470 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5471 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5472 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5473 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5477 $(systemunitdir)/runlevel1.target.wants \
5478 $(systemunitdir)/runlevel2.target.wants \
5479 $(systemunitdir)/runlevel3.target.wants \
5480 $(systemunitdir)/runlevel4.target.wants \
5481 $(systemunitdir)/runlevel5.target.wants
5485 $(prefix)/lib/modules-load.d \
5486 $(sysconfdir)/modules-load.d \
5487 $(prefix)/lib/systemd/network \
5488 $(sysconfdir)/systemd/network \
5489 $(prefix)/lib/sysctl.d \
5490 $(sysconfdir)/sysctl.d \
5491 $(prefix)/lib/kernel/install.d \
5492 $(sysconfdir)/kernel/install.d \
5493 $(systemshutdowndir) \
5495 $(systemgeneratordir) \
5496 $(usergeneratordir) \
5499 $(pkgsysconfdir)/system \
5500 $(pkgsysconfdir)/system/multi-user.target.wants \
5501 $(pkgsysconfdir)/system/getty.target.wants \
5502 $(pkgsysconfdir)/user \
5503 $(dbussessionservicedir) \
5504 $(sysconfdir)/xdg/systemd
5506 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5508 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5510 install-data-hook: $(INSTALL_DATA_HOOKS)
5512 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5514 clean-local: $(CLEAN_LOCAL_HOOKS)
5515 rm -rf $(abs_srcdir)/install-tree
5516 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5517 $(abs_srcdir)/hwdb/iab.txt
5519 DISTCHECK_CONFIGURE_FLAGS = \
5520 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5521 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5522 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5523 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5524 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5525 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5526 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5527 --with-rootprefix=$$dc_install_base \
5528 --disable-split-usr \
5530 --enable-compat-libs
5533 DISTCHECK_CONFIGURE_FLAGS += \
5534 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5535 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5537 DISTCHECK_CONFIGURE_FLAGS += \
5538 --with-sysvinit-path= \
5539 --with-sysvrcnd-path=
5543 DISTCHECK_CONFIGURE_FLAGS += \
5548 DISTCHECK_CONFIGURE_FLAGS += \
5553 # Require python when making dist
5555 .PHONY: dist-check-python
5558 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
5562 dist-check-compat-libs:
5563 if !ENABLE_COMPAT_LIBS
5564 @echo "*** compat-libs must be enabled in order to make dist"
5568 dist: dist-check-python dist-check-compat-libs
5570 # check "broken" platforms limited toolchains for link breakage before we release
5573 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5577 ( cd $(top_srcdir)/hwdb && \
5578 wget -N http://www.linux-usb.org/usb.ids \
5579 http://pci-ids.ucw.cz/v2.2/pci.ids \
5580 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5581 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5584 .PHONY: kdbus-update
5586 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5587 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5591 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5593 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5595 upload: all check dist
5596 scp systemd-$(VERSION).tar.xz $(www_target)
5599 doc-sync: all destdir-sphinx
5600 gtkdoc-rebase --html-dir=docs/libudev/html --online
5601 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5602 gtkdoc-rebase --html-dir=docs/gudev/html --online
5603 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5604 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5605 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5609 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5610 scp man/*.html tango:public/systemd-man/
5612 .PHONY: install-tree
5614 rm -rf $(abs_srcdir)/install-tree
5615 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5616 tree $(abs_srcdir)/install-tree
5618 # Let's run all tests of the test suite, but under valgrind. Let's
5619 # exclude the one perl script we have in there
5620 .PHONY: valgrind-tests
5621 valgrind-tests: $(TESTS)
5622 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5623 if file $$f | grep -q shell; then \
5624 echo -e "$${x}Skipping non-binary $$f"; else \
5625 echo -e "$${x}Running $$f"; \
5626 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5631 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5633 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5634 $(AM_V_GEN)cat $^ > $@
5636 .PHONY: check-api-docs
5637 check-api-docs: exported man
5638 $(AM_V_GEN)for symbol in `cat exported` ; do \
5639 if test -f $(builddir)/man/$$symbol.html ; then \
5640 echo " Symbol $$symbol() is documented." ; \
5642 echo "‣ Symbol $$symbol() lacks documentation." ; \
5646 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5647 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5649 undefined defined: $(ALL_OBJECTS)
5650 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5651 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5652 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5658 .PHONY: check-api-unused
5659 check-api-unused: defined undefined exported
5660 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5662 .PHONY: check-includes
5663 check-includes: $(top_srcdir)/tools/check-includes.pl
5664 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5665 | xargs $(top_srcdir)/tools/check-includes.pl
5668 $(top_srcdir)/tools/check-includes.pl
5670 # Stupid test that everything purported to be exported really is
5671 define generate-sym-test
5672 $(AM_V_at)$(MKDIR_P) $(dir $@)
5673 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5674 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5675 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5676 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5677 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5678 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5679 $(AM_V_at)printf 'return 0; }\n' >> $@
5682 test-libsystemd-sym.c: \
5683 $(top_builddir)/src/libsystemd/libsystemd.sym \
5684 src/systemd/sd-journal.h \
5685 src/systemd/sd-daemon.h \
5686 src/systemd/sd-login.h \
5687 src/systemd/sd-bus.h \
5688 src/systemd/sd-utf8.h \
5689 src/systemd/sd-resolve.h \
5690 src/systemd/sd-path.h
5691 $(generate-sym-test)
5693 test-libudev-sym.c: \
5694 src/libudev/libudev.sym \
5696 $(generate-sym-test)
5698 test_libsystemd_sym_SOURCES = \
5699 test-libsystemd-sym.c
5700 test_libsystemd_sym_LDADD = \
5703 test_libudev_sym_SOURCES = \
5705 test_libudev_sym_CFLAGS = \
5707 -Wno-deprecated-declarations
5708 test_libudev_sym_LDADD = \
5712 $(test_libsystemd_sym_SOURCES) \
5713 $(test_libudev_sym_SOURCES)
5716 test-libsystemd-sym \
5721 cppcheck --enable=all -q $(top_srcdir)
5723 # Used to extract compile flags for YCM.
5728 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u