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 dist_pkgsysconf_DATA =
137 nodist_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 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
168 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
169 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
170 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
171 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
172 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
173 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
174 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
175 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
176 -DROOTPREFIX=\"$(rootprefix)\" \
177 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
178 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
179 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
180 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
181 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
182 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
183 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
184 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
185 -DX_SERVER=\"$(bindir)/X\" \
186 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
187 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
188 -DQUOTACHECK=\"$(QUOTACHECK)\" \
189 -DKEXEC=\"$(KEXEC)\" \
190 -DLIBDIR=\"$(libdir)\" \
191 -DROOTLIBDIR=\"$(rootlibdir)\" \
192 -I $(top_srcdir)/src \
193 -I $(top_builddir)/src/shared \
194 -I $(top_srcdir)/src/shared \
195 -I $(top_srcdir)/src/network \
196 -I $(top_srcdir)/src/login \
197 -I $(top_srcdir)/src/journal \
198 -I $(top_srcdir)/src/timedate \
199 -I $(top_srcdir)/src/timesync \
200 -I $(top_srcdir)/src/resolve \
201 -I $(top_srcdir)/src/systemd \
202 -I $(top_builddir)/src/core \
203 -I $(top_srcdir)/src/core \
204 -I $(top_srcdir)/src/libudev \
205 -I $(top_srcdir)/src/udev \
206 -I $(top_srcdir)/src/udev/net \
207 -I $(top_builddir)/src/udev \
208 -I $(top_srcdir)/src/libsystemd/sd-bus \
209 -I $(top_srcdir)/src/libsystemd/sd-event \
210 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
211 -I $(top_srcdir)/src/libsystemd-network \
212 -I $(top_srcdir)/src/libsystemd-terminal \
215 AM_CFLAGS = $(OUR_CFLAGS)
216 AM_LDFLAGS = $(OUR_LDFLAGS)
218 # ------------------------------------------------------------------------------
219 define move-to-rootlibdir
220 if test "$(libdir)" != "$(rootlibdir)"; then \
221 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
222 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
223 rm -f $(DESTDIR)$(libdir)/$$libname && \
224 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
225 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
231 RUNLEVEL1_TARGET_WANTS =
232 RUNLEVEL2_TARGET_WANTS =
233 RUNLEVEL3_TARGET_WANTS =
234 RUNLEVEL4_TARGET_WANTS =
235 RUNLEVEL5_TARGET_WANTS =
236 SHUTDOWN_TARGET_WANTS =
237 LOCAL_FS_TARGET_WANTS =
238 MULTI_USER_TARGET_WANTS =
239 SYSINIT_TARGET_WANTS =
240 SOCKETS_TARGET_WANTS =
241 BUSNAMES_TARGET_WANTS =
242 TIMERS_TARGET_WANTS =
243 USER_SOCKETS_TARGET_WANTS =
244 USER_BUSNAMES_TARGET_WANTS =
246 SYSTEM_UNIT_ALIASES =
250 install-target-wants-hook:
251 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
254 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
255 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
256 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
257 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
258 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
259 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
260 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
261 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
265 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
268 [ -z "$$what" ] || ( \
269 dir=$(DESTDIR)$$dir/$$wants.wants && \
270 $(MKDIR_P) -m 0755 $$dir && \
273 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
276 install-directories-hook:
277 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
279 install-aliases-hook:
280 set -- $(SYSTEM_UNIT_ALIASES) && \
281 dir=$(systemunitdir) && $(install-aliases)
282 set -- $(USER_UNIT_ALIASES) && \
283 dir=$(userunitdir) && $(install-relative-aliases)
284 set -- $(GENERAL_ALIASES) && \
285 dir= && $(install-relative-aliases)
287 define install-aliases
288 while [ -n "$$1" ]; do \
289 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
290 rm -f $(DESTDIR)$$dir/$$2 && \
291 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
292 shift 2 || exit $$?; \
296 define install-relative-aliases
297 while [ -n "$$1" ]; do \
298 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
299 rm -f $(DESTDIR)$$dir/$$2 && \
300 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
301 shift 2 || exit $$?; \
305 install-touch-usr-hook:
306 touch -c $(DESTDIR)/$(prefix)
308 INSTALL_EXEC_HOOKS += \
309 install-target-wants-hook \
310 install-directories-hook \
311 install-aliases-hook \
312 install-touch-usr-hook
314 # ------------------------------------------------------------------------------
315 AM_V_M4 = $(AM_V_M4_$(V))
316 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
317 AM_V_M4_0 = @echo " M4 " $@;
319 AM_V_XSLT = $(AM_V_XSLT_$(V))
320 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
321 AM_V_XSLT_0 = @echo " XSLT " $@;
323 AM_V_GPERF = $(AM_V_GPERF_$(V))
324 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
325 AM_V_GPERF_0 = @echo " GPERF " $@;
327 AM_V_LN = $(AM_V_LN_$(V))
328 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
329 AM_V_LN_0 = @echo " LN " $@;
331 AM_V_RM = $(AM_V_RM_$(V))
332 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
333 AM_V_RM_0 = @echo " RM " $@;
335 # ------------------------------------------------------------------------------
339 systemd-ask-password \
340 systemd-tty-ask-password-agent \
341 systemd-machine-id-setup \
348 systemd-detect-virt \
355 src/kernel-install/kernel-install
357 dist_kernelinstall_SCRIPTS = \
358 src/kernel-install/50-depmod.install \
359 src/kernel-install/90-loaderentry.install
361 rootlibexec_PROGRAMS = \
363 systemd-cgroups-agent \
365 systemd-update-utmp \
369 systemd-reply-password \
375 systemd-socket-proxyd \
378 systemgenerator_PROGRAMS = \
379 systemd-getty-generator \
380 systemd-fstab-generator \
381 systemd-system-update-generator \
382 systemd-debug-generator
384 dist_bashcompletion_DATA = \
385 shell-completion/bash/busctl \
386 shell-completion/bash/journalctl \
387 shell-completion/bash/systemd-analyze \
388 shell-completion/bash/systemd-cat \
389 shell-completion/bash/systemd-cgls \
390 shell-completion/bash/systemd-cgtop \
391 shell-completion/bash/systemd-delta \
392 shell-completion/bash/systemd-detect-virt \
393 shell-completion/bash/systemd-nspawn \
394 shell-completion/bash/systemd-run \
395 shell-completion/bash/udevadm \
396 shell-completion/bash/kernel-install
398 nodist_bashcompletion_DATA = \
399 shell-completion/bash/systemctl
401 dist_zshcompletion_DATA = \
402 shell-completion/zsh/_journalctl \
403 shell-completion/zsh/_udevadm \
404 shell-completion/zsh/_kernel-install \
405 shell-completion/zsh/_systemd-nspawn \
406 shell-completion/zsh/_systemd-analyze \
407 shell-completion/zsh/_systemd-run \
408 shell-completion/zsh/_sd_hosts_or_user_at_host \
409 shell-completion/zsh/_systemd-delta \
410 shell-completion/zsh/_systemd
412 nodist_zshcompletion_DATA = \
413 shell-completion/zsh/_systemctl
416 shell-completion/bash/systemctl.in \
417 shell-completion/zsh/_systemctl.in
420 $(nodist_bashcompletion_DATA) \
421 $(nodist_zshcompletion_DATA)
424 sysctl.d/50-default.conf
426 dist_systemunit_DATA = \
427 units/graphical.target \
428 units/multi-user.target \
429 units/emergency.target \
430 units/sysinit.target \
435 units/local-fs.target \
436 units/local-fs-pre.target \
437 units/initrd.target \
438 units/initrd-fs.target \
439 units/initrd-root-fs.target \
440 units/remote-fs.target \
441 units/remote-fs-pre.target \
442 units/network.target \
443 units/network-pre.target \
444 units/network-online.target \
445 units/nss-lookup.target \
446 units/nss-user-lookup.target \
447 units/hibernate.target \
448 units/hybrid-sleep.target \
449 units/poweroff.target \
450 units/reboot.target \
451 units/rescue.target \
452 units/rpcbind.target \
453 units/time-sync.target \
454 units/shutdown.target \
456 units/umount.target \
457 units/sigpwr.target \
459 units/sockets.target \
460 units/busnames.target \
461 units/timers.target \
463 units/suspend.target \
465 units/slices.target \
468 units/systemd-initctl.socket \
469 units/systemd-shutdownd.socket \
470 units/syslog.socket \
471 units/dev-hugepages.mount \
472 units/dev-mqueue.mount \
473 units/sys-kernel-config.mount \
474 units/sys-kernel-debug.mount \
475 units/sys-fs-fuse-connections.mount \
477 units/printer.target \
479 units/bluetooth.target \
480 units/smartcard.target \
481 units/systemd-ask-password-wall.path \
482 units/systemd-ask-password-console.path \
483 units/systemd-udevd-control.socket \
484 units/systemd-udevd-kernel.socket \
485 units/system-update.target \
486 units/initrd-switch-root.target \
487 units/ldconfig.service
489 nodist_systemunit_DATA = \
490 units/getty@.service \
491 units/serial-getty@.service \
492 units/console-shell.service \
493 units/console-getty.service \
494 units/container-getty@.service \
495 units/systemd-initctl.service \
496 units/systemd-shutdownd.service \
497 units/systemd-remount-fs.service \
498 units/systemd-update-utmp.service \
499 units/systemd-update-utmp-runlevel.service \
500 units/systemd-ask-password-wall.service \
501 units/systemd-ask-password-console.service \
502 units/systemd-sysctl.service \
503 units/emergency.service \
504 units/rescue.service \
505 units/user@.service \
506 units/systemd-hibernate.service \
507 units/systemd-hybrid-sleep.service \
508 units/systemd-suspend.service \
509 units/systemd-halt.service \
510 units/systemd-poweroff.service \
511 units/systemd-reboot.service \
512 units/systemd-kexec.service \
513 units/systemd-fsck@.service \
514 units/systemd-fsck-root.service \
515 units/systemd-udevd.service \
516 units/systemd-udev-trigger.service \
517 units/systemd-udev-settle.service \
518 units/systemd-udev-hwdb-update.service \
519 units/debug-shell.service \
520 units/initrd-parse-etc.service \
521 units/initrd-cleanup.service \
522 units/initrd-udevadm-cleanup-db.service \
523 units/initrd-switch-root.service \
524 units/systemd-nspawn@.service \
525 units/systemd-update-done.service
527 dist_userunit_DATA = \
528 units/user/basic.target \
529 units/user/default.target \
530 units/user/exit.target
532 nodist_userunit_DATA = \
533 units/user/systemd-exit.service
535 dist_systempreset_DATA = \
536 system-preset/90-systemd.preset
539 units/getty@.service.m4 \
540 units/serial-getty@.service.m4 \
541 units/console-shell.service.m4.in \
542 units/console-getty.service.m4.in \
543 units/container-getty@.service.m4.in \
544 units/rescue.service.m4.in \
545 units/systemd-initctl.service.in \
546 units/systemd-shutdownd.service.in \
547 units/systemd-remount-fs.service.in \
548 units/systemd-update-utmp.service.in \
549 units/systemd-update-utmp-runlevel.service.in \
550 units/systemd-ask-password-wall.service.in \
551 units/systemd-ask-password-console.service.in \
552 units/systemd-sysctl.service.in \
553 units/emergency.service.in \
554 units/systemd-halt.service.in \
555 units/systemd-poweroff.service.in \
556 units/systemd-reboot.service.in \
557 units/systemd-kexec.service.in \
558 units/user/systemd-exit.service.in \
559 units/systemd-fsck@.service.in \
560 units/systemd-fsck-root.service.in \
561 units/user@.service.in \
562 units/debug-shell.service.in \
563 units/systemd-hibernate.service.in \
564 units/systemd-hybrid-sleep.service.in \
565 units/systemd-suspend.service.in \
566 units/quotaon.service.in \
567 units/initrd-parse-etc.service.in \
568 units/initrd-cleanup.service.in \
569 units/initrd-udevadm-cleanup-db.service.in \
570 units/initrd-switch-root.service.in \
571 units/systemd-nspawn@.service.in \
572 units/systemd-update-done.service.in
575 units/console-shell.service.m4 \
576 units/console-getty.service.m4 \
577 units/container-getty@.service.m4 \
578 units/rescue.service.m4 \
579 units/user@.service.m4
582 nodist_systemunit_DATA += \
583 units/rc-local.service \
584 units/halt-local.service
586 systemgenerator_PROGRAMS += \
587 systemd-sysv-generator \
588 systemd-rc-local-generator
592 units/rc-local.service.in \
593 units/halt-local.service.in
595 # automake is broken and can't handle files with a dash in front
596 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
598 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
600 units-uninstall-hook:
601 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
603 INSTALL_DATA_HOOKS += units-install-hook
604 UNINSTALL_DATA_HOOKS += units-uninstall-hook
613 src/libsystemd/sd-bus/PORTING-DBUS1 \
614 src/libsystemd/sd-bus/DIFFERENCES \
615 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
617 @INTLTOOL_POLICY_RULE@
619 # ------------------------------------------------------------------------------
624 include Makefile-man.am
626 .PHONY: man update-man-list
627 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
630 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
632 ${XML_FILES:.xml=.html}
634 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
651 $(AM_V_at)$(MKDIR_P) $(dir $@)
652 $(AM_V_LN)$(LN_S) -f ../../man $@
661 man/index.html: man/systemd.index.html
662 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
670 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
671 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
672 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
674 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
675 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
676 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
677 @echo "Makefile-man.am has been regenerated"
679 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
680 $(AM_V_at)$(MKDIR_P) $(dir $@)
681 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
683 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
684 $(AM_V_at)$(MKDIR_P) $(dir $@)
685 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
688 man/systemd.index.xml \
690 man/systemd.directives.xml
693 man/systemd.index.xml \
694 man/systemd.directives.xml
705 tools/make-man-index.py \
706 tools/make-directive-index.py \
707 tools/make-man-rules.py \
710 # ------------------------------------------------------------------------------
711 noinst_LTLIBRARIES += \
714 libsystemd_shared_la_SOURCES = \
715 src/shared/linux/auto_dev-ioctl.h \
716 src/shared/linux/fanotify.h \
717 src/shared/ioprio.h \
718 src/shared/missing.h \
719 src/shared/initreq.h \
720 src/shared/securebits.h \
721 src/shared/special.h \
725 src/shared/sparse-endian.h \
726 src/shared/refcnt.h \
727 src/shared/udev-util.h \
728 src/shared/bus-errors.h \
729 src/shared/device-nodes.c \
730 src/shared/device-nodes.h \
735 src/shared/architecture.c \
736 src/shared/architecture.h \
737 src/shared/efivars.c \
738 src/shared/efivars.h \
739 src/shared/path-util.c \
740 src/shared/path-util.h \
741 src/shared/time-util.c \
742 src/shared/time-util.h \
743 src/shared/locale-util.c \
744 src/shared/locale-util.h \
745 src/shared/hashmap.c \
746 src/shared/hashmap.h \
747 src/shared/siphash24.c \
748 src/shared/siphash24.h \
755 src/shared/sleep-config.c \
756 src/shared/sleep-config.h \
759 src/shared/env-util.c \
760 src/shared/env-util.h \
761 src/shared/strbuf.c \
762 src/shared/strbuf.h \
763 src/shared/strxcpyx.c \
764 src/shared/strxcpyx.h \
765 src/shared/conf-parser.c \
766 src/shared/conf-parser.h \
769 src/shared/ratelimit.h \
770 src/shared/ratelimit.c \
771 src/shared/exit-status.c \
772 src/shared/exit-status.h \
775 src/shared/gunicode.c \
776 src/shared/gunicode.h \
779 src/shared/socket-util.c \
780 src/shared/socket-util.h \
781 src/shared/in-addr-util.c \
782 src/shared/in-addr-util.h \
783 src/shared/conf-files.c \
784 src/shared/conf-files.h \
785 src/shared/cgroup-util.c \
786 src/shared/cgroup-util.h \
787 src/shared/cgroup-show.c \
788 src/shared/cgroup-show.h \
789 src/shared/unit-name.c \
790 src/shared/unit-name.h \
791 src/shared/utmp-wtmp.c \
792 src/shared/utmp-wtmp.h \
793 src/shared/watchdog.c \
794 src/shared/watchdog.h \
795 src/shared/spawn-ask-password-agent.c \
796 src/shared/spawn-ask-password-agent.h \
797 src/shared/replace-var.c \
798 src/shared/replace-var.h \
799 src/shared/spawn-polkit-agent.c \
800 src/shared/spawn-polkit-agent.h \
801 src/shared/clock-util.c \
802 src/shared/clock-util.h \
803 src/shared/time-dst.c \
804 src/shared/time-dst.h \
805 src/shared/calendarspec.c \
806 src/shared/calendarspec.h \
807 src/shared/fileio.c \
808 src/shared/fileio.h \
809 src/shared/output-mode.h \
810 src/shared/MurmurHash2.c \
811 src/shared/MurmurHash2.h \
812 src/shared/acpi-fpdt.h \
813 src/shared/acpi-fpdt.c \
814 src/shared/boot-timestamps.h \
815 src/shared/boot-timestamps.c \
818 src/shared/smack-util.c \
819 src/shared/smack-util.h \
820 src/shared/apparmor-util.c \
821 src/shared/apparmor-util.h \
822 src/shared/ima-util.c \
823 src/shared/ima-util.h \
824 src/shared/ptyfwd.c \
825 src/shared/ptyfwd.h \
826 src/shared/errno-list.c \
827 src/shared/errno-list.h \
828 src/shared/af-list.c \
829 src/shared/af-list.h \
834 src/shared/condition-util.c \
835 src/shared/condition-util.h \
836 src/shared/bus-label.c \
837 src/shared/bus-label.h \
839 src/shared/clean-ipc.h \
840 src/shared/clean-ipc.c \
841 src/shared/login-shared.c \
842 src/shared/login-shared.h \
845 src/shared/barrier.c \
846 src/shared/barrier.h \
853 src/shared/base-filesystem.c \
854 src/shared/base-filesystem.h \
855 src/shared/nss-util.h
857 nodist_libsystemd_shared_la_SOURCES = \
858 src/shared/errno-from-name.h \
859 src/shared/errno-to-name.h \
860 src/shared/af-from-name.h \
861 src/shared/af-to-name.h
863 libsystemd_shared_la_CFLAGS = \
868 # ------------------------------------------------------------------------------
869 noinst_LTLIBRARIES += \
872 libsystemd_units_la_SOURCES = \
873 src/shared/install.c \
874 src/shared/install.h \
875 src/shared/install-printf.c \
876 src/shared/install-printf.h \
877 src/shared/path-lookup.c \
878 src/shared/path-lookup.h \
879 src/shared/specifier.c \
880 src/shared/specifier.h
882 # ------------------------------------------------------------------------------
883 noinst_LTLIBRARIES += \
886 libsystemd_label_la_SOURCES = \
887 src/shared/socket-label.c \
890 src/shared/selinux-util.c \
891 src/shared/selinux-util.h \
892 src/shared/mkdir-label.c \
893 src/shared/ask-password-api.c \
894 src/shared/ask-password-api.h \
895 src/shared/fileio-label.c \
896 src/shared/fileio-label.h \
897 src/shared/dev-setup.c \
898 src/shared/dev-setup.h \
899 src/shared/dropin.c \
900 src/shared/dropin.h \
901 src/shared/generator.h \
902 src/shared/generator.c
904 libsystemd_label_la_CFLAGS = \
908 libsystemd_label_la_LIBADD = \
911 # ------------------------------------------------------------------------------
914 noinst_LTLIBRARIES += \
915 libsystemd-seccomp.la
917 libsystemd_seccomp_la_SOURCES = \
918 src/shared/seccomp-util.h \
919 src/shared/seccomp-util.c
921 libsystemd_seccomp_la_CFLAGS = \
925 libsystemd_seccomp_la_LIBADD = \
929 # ------------------------------------------------------------------------------
930 noinst_LTLIBRARIES += \
933 libsystemd_logs_la_SOURCES = \
934 src/shared/logs-show.c \
935 src/shared/logs-show.h
937 # ------------------------------------------------------------------------------
938 noinst_LTLIBRARIES += \
939 libsystemd-capability.la
941 libsystemd_capability_la_SOURCES = \
942 src/shared/capability.c \
943 src/shared/capability.h
945 libsystemd_capability_la_CFLAGS = \
949 libsystemd_capability_la_LIBADD = \
952 # ------------------------------------------------------------------------------
954 noinst_LTLIBRARIES += \
957 libsystemd_acl_la_SOURCES = \
958 src/shared/acl-util.c \
959 src/shared/acl-util.h
961 libsystemd_acl_la_CFLAGS = \
965 libsystemd_acl_la_LIBADD = \
969 # ------------------------------------------------------------------------------
970 noinst_LTLIBRARIES += \
973 libsystemd_core_la_SOURCES = \
976 src/core/unit-printf.c \
977 src/core/unit-printf.h \
982 src/core/transaction.c \
983 src/core/transaction.h \
984 src/core/load-fragment.c \
985 src/core/load-fragment.h \
994 src/core/snapshot.c \
995 src/core/snapshot.h \
1000 src/core/automount.c \
1001 src/core/automount.h \
1012 src/core/load-dropin.c \
1013 src/core/load-dropin.h \
1014 src/core/execute.c \
1015 src/core/execute.h \
1020 src/core/dbus-manager.c \
1021 src/core/dbus-manager.h \
1022 src/core/dbus-unit.c \
1023 src/core/dbus-unit.h \
1024 src/core/dbus-job.c \
1025 src/core/dbus-job.h \
1026 src/core/dbus-service.c \
1027 src/core/dbus-service.h \
1028 src/core/dbus-socket.c \
1029 src/core/dbus-socket.h \
1030 src/core/dbus-busname.c \
1031 src/core/dbus-busname.h \
1032 src/core/dbus-target.c \
1033 src/core/dbus-target.h \
1034 src/core/dbus-snapshot.c \
1035 src/core/dbus-snapshot.h \
1036 src/core/dbus-device.c \
1037 src/core/dbus-device.h \
1038 src/core/dbus-mount.c \
1039 src/core/dbus-mount.h \
1040 src/core/dbus-automount.c \
1041 src/core/dbus-automount.h \
1042 src/core/dbus-swap.c \
1043 src/core/dbus-swap.h \
1044 src/core/dbus-timer.c \
1045 src/core/dbus-timer.h \
1046 src/core/dbus-path.c \
1047 src/core/dbus-path.h \
1048 src/core/dbus-slice.c \
1049 src/core/dbus-slice.h \
1050 src/core/dbus-scope.c \
1051 src/core/dbus-scope.h \
1052 src/core/dbus-execute.c \
1053 src/core/dbus-execute.h \
1054 src/core/dbus-kill.c \
1055 src/core/dbus-kill.h \
1056 src/core/dbus-cgroup.c \
1057 src/core/dbus-cgroup.h \
1060 src/core/selinux-access.c \
1061 src/core/selinux-access.h \
1062 src/core/selinux-setup.c \
1063 src/core/selinux-setup.h \
1064 src/core/smack-setup.c \
1065 src/core/smack-setup.h \
1066 src/core/ima-setup.c \
1067 src/core/ima-setup.h \
1068 src/core/locale-setup.h \
1069 src/core/locale-setup.c \
1070 src/core/hostname-setup.c \
1071 src/core/hostname-setup.h \
1072 src/core/machine-id-setup.c \
1073 src/core/machine-id-setup.h \
1074 src/core/mount-setup.c \
1075 src/core/mount-setup.h \
1076 src/core/loopback-setup.h \
1077 src/core/loopback-setup.c \
1078 src/core/condition.c \
1079 src/core/condition.h \
1080 src/core/namespace.c \
1081 src/core/namespace.h \
1083 src/core/sysfs-show.h \
1084 src/core/switch-root.h \
1085 src/core/switch-root.c \
1086 src/core/killall.h \
1087 src/core/killall.c \
1088 src/core/audit-fd.c \
1089 src/core/audit-fd.h \
1090 src/core/show-status.c \
1091 src/core/show-status.h
1094 libsystemd_core_la_SOURCES += \
1095 src/core/kmod-setup.c \
1096 src/core/kmod-setup.h
1099 nodist_libsystemd_core_la_SOURCES = \
1100 src/core/load-fragment-gperf.c \
1101 src/core/load-fragment-gperf-nulstr.c
1103 libsystemd_core_la_CFLAGS = \
1109 $(APPARMOR_CFLAGS) \
1113 libsystemd_core_la_LIBADD = \
1114 libsystemd-capability.la \
1115 libsystemd-units.la \
1116 libsystemd-label.la \
1117 libudev-internal.la \
1118 libsystemd-shared.la \
1119 libsystemd-internal.la \
1128 libsystemd_core_la_LIBADD += \
1129 libsystemd-seccomp.la
1132 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1133 $(AM_V_at)$(MKDIR_P) $(dir $@)
1134 $(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 ";" }' < $< > $@
1137 src/core/load-fragment-gperf.gperf.m4
1140 src/core/load-fragment-gperf.gperf \
1141 src/core/load-fragment-gperf.c \
1142 src/core/load-fragment-gperf-nulstr.c \
1143 src/shared/errno-list.txt \
1144 src/shared/errno-from-name.gperf \
1145 src/shared/af-list.txt \
1146 src/shared/af-from-name.gperf
1149 src/shared/errno-from-name.h \
1150 src/shared/errno-to-name.h \
1151 src/shared/af-from-name.h \
1152 src/shared/af-to-name.h
1154 src/shared/errno-list.txt:
1155 $(AM_V_at)$(MKDIR_P) $(dir $@)
1156 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1158 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1159 $(AM_V_at)$(MKDIR_P) $(dir $@)
1160 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1162 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1163 $(AM_V_at)$(MKDIR_P) $(dir $@)
1164 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1166 src/shared/errno-to-name.h: src/shared/errno-list.txt
1167 $(AM_V_at)$(MKDIR_P) $(dir $@)
1168 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1170 src/shared/af-list.txt:
1171 $(AM_V_at)$(MKDIR_P) $(dir $@)
1172 $(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; }' > $@
1174 src/shared/af-from-name.gperf: src/shared/af-list.txt
1175 $(AM_V_at)$(MKDIR_P) $(dir $@)
1176 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1178 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1179 $(AM_V_at)$(MKDIR_P) $(dir $@)
1180 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1182 src/shared/af-to-name.h: src/shared/af-list.txt
1183 $(AM_V_at)$(MKDIR_P) $(dir $@)
1184 $(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 "};"}' < $< > $@
1186 # ------------------------------------------------------------------------------
1195 libsystemd-core.la \
1198 dist_pkgsysconf_DATA += \
1199 src/core/system.conf \
1202 dist_dbuspolicy_DATA += \
1203 src/core/org.freedesktop.systemd1.conf
1205 dist_dbussystemservice_DATA += \
1206 src/core/org.freedesktop.systemd1.service
1208 polkitpolicy_in_in_files += \
1209 src/core/org.freedesktop.systemd1.policy.in.in
1211 pkgconfigdata_DATA = \
1214 nodist_rpmmacros_DATA = \
1215 src/core/macros.systemd
1218 src/core/systemd.pc.in \
1219 src/core/macros.systemd.in
1222 src/core/macros.systemd \
1223 src/core/org.freedesktop.systemd1.policy.in
1225 # ------------------------------------------------------------------------------
1266 test-strip-tab-ansi \
1285 test/sched_idle_bad.service \
1286 test/sched_idle_ok.service \
1287 test/sched_rr_bad.service \
1288 test/sched_rr_ok.service \
1289 test/sched_rr_change.service \
1291 test/daughter.service \
1295 src/test/test-helper.h
1297 test_device_nodes_SOURCES = \
1298 src/test/test-device-nodes.c
1300 test_device_nodes_LDADD = \
1301 libsystemd-shared.la
1303 test_engine_SOURCES = \
1304 src/test/test-engine.c
1306 test_engine_CFLAGS = \
1310 test_engine_LDADD = \
1311 libsystemd-core.la \
1314 test_job_type_SOURCES = \
1315 src/test/test-job-type.c
1317 test_job_type_CFLAGS = \
1321 test_job_type_LDADD = \
1322 libsystemd-core.la \
1335 test_loopback_SOURCES = \
1336 src/test/test-loopback.c
1338 test_loopback_LDADD = \
1341 test_hostname_SOURCES = \
1342 src/test/test-hostname.c
1344 test_hostname_LDADD = \
1351 test_boot_timestamp_SOURCES = \
1352 src/test/test-boot-timestamps.c
1354 test_boot_timestamp_LDADD = \
1355 libsystemd-shared.la
1358 test_unit_name_SOURCES = \
1359 src/test/test-unit-name.c
1361 test_unit_name_CFLAGS = \
1365 test_unit_name_LDADD = \
1366 libsystemd-core.la \
1369 test_unit_file_SOURCES = \
1370 src/test/test-unit-file.c
1372 test_unit_file_CFLAGS = \
1376 test_unit_file_LDADD = \
1377 libsystemd-core.la \
1380 test_utf8_SOURCES = \
1381 src/test/test-utf8.c
1384 libsystemd-shared.la
1386 test_capability_SOURCES = \
1387 src/test/test-capability.c
1389 test_capability_LDADD = \
1390 libsystemd-shared.la \
1391 libsystemd-capability.la
1393 test_async_SOURCES = \
1394 src/test/test-async.c
1396 test_async_LDADD = \
1397 libsystemd-shared.la
1399 test_fdset_SOURCES = \
1400 src/test/test-fdset.c
1402 test_fdset_LDADD = \
1405 test_ratelimit_SOURCES = \
1406 src/test/test-ratelimit.c
1408 test_ratelimit_LDADD = \
1409 libsystemd-shared.la
1411 test_util_SOURCES = \
1412 src/test/test-util.c
1417 test_socket_util_SOURCES = \
1418 src/test/test-socket-util.c
1420 test_socket_util_LDADD = \
1423 test_ring_SOURCES = \
1424 src/test/test-ring.c
1429 test_barrier_SOURCES = \
1430 src/test/test-barrier.c
1432 test_barrier_LDADD = \
1435 test_pty_SOURCES = \
1441 test_tmpfiles_SOURCES = \
1442 src/test/test-tmpfiles.c
1444 test_tmpfiles_LDADD = \
1445 libsystemd-shared.la
1447 test_namespace_SOURCES = \
1448 src/test/test-namespace.c
1450 test_namespace_LDADD = \
1453 test_hashmap_SOURCES = \
1454 src/test/test-hashmap.c
1456 test_hashmap_LDADD = \
1459 test_xml_SOURCES = \
1463 libsystemd-shared.la
1465 test_list_SOURCES = \
1466 src/test/test-list.c
1471 test_tables_SOURCES = \
1472 src/test/test-tables.c \
1473 src/shared/test-tables.h \
1474 src/bus-proxyd/bus-policy.c \
1475 src/bus-proxyd/bus-policy.h \
1476 src/journal/journald-server.c \
1477 src/journal/journald-server.h
1479 test_tables_CPPFLAGS = \
1481 -I$(top_srcdir)/src/bus-proxyd
1483 test_tables_CFLAGS = \
1487 test_tables_LDADD = \
1488 libsystemd-logs.la \
1489 libsystemd-journal-internal.la \
1490 libsystemd-core.la \
1494 test_prioq_SOURCES = \
1495 src/test/test-prioq.c
1497 test_prioq_LDADD = \
1500 test_fileio_SOURCES = \
1501 src/test/test-fileio.c
1503 test_fileio_LDADD = \
1506 test_time_SOURCES = \
1507 src/test/test-time.c
1512 test_architecture_SOURCES = \
1513 src/test/test-architecture.c
1515 test_architecture_LDADD = \
1516 libsystemd-shared.la
1518 test_log_SOURCES = \
1524 test_ipcrm_SOURCES = \
1525 src/test/test-ipcrm.c
1527 test_ipcrm_LDADD = \
1528 libsystemd-shared.la \
1531 test_rtnl_manual_SOURCES = \
1532 src/test/test-rtnl-manual.c
1534 test_rtnl_manual_CFLAGS = \
1538 test_rtnl_manual_LDADD = \
1539 libsystemd-internal.la \
1540 libsystemd-shared.la \
1543 test_ellipsize_SOURCES = \
1544 src/test/test-ellipsize.c
1546 test_ellipsize_LDADD = \
1549 test_date_SOURCES = \
1550 src/test/test-date.c
1555 test_sleep_SOURCES = \
1556 src/test/test-sleep.c
1558 test_sleep_LDADD = \
1561 test_replace_var_SOURCES = \
1562 src/test/test-replace-var.c
1564 test_replace_var_LDADD = \
1565 libsystemd-shared.la
1567 test_calendarspec_SOURCES = \
1568 src/test/test-calendarspec.c
1570 test_calendarspec_LDADD = \
1571 libsystemd-shared.la
1573 test_strip_tab_ansi_SOURCES = \
1574 src/test/test-strip-tab-ansi.c
1576 test_strip_tab_ansi_LDADD = \
1577 libsystemd-shared.la
1579 test_daemon_SOURCES = \
1580 src/test/test-daemon.c
1582 test_daemon_LDADD = \
1583 libsystemd-internal.la \
1584 libsystemd-shared.la
1586 test_cgroup_SOURCES = \
1587 src/test/test-cgroup.c
1589 test_cgroup_LDADD = \
1590 libsystemd-label.la \
1591 libsystemd-shared.la \
1592 libsystemd-internal.la
1594 test_cgroup_mask_SOURCES = \
1595 src/test/test-cgroup-mask.c
1597 test_cgroup_mask_CPPFLAGS = \
1599 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1601 test_cgroup_mask_CFLAGS = \
1605 test_cgroup_mask_LDADD = \
1606 libsystemd-core.la \
1609 test_cgroup_util_SOURCES = \
1610 src/test/test-cgroup-util.c
1612 test_cgroup_util_LDADD = \
1613 libsystemd-label.la \
1614 libsystemd-internal.la \
1615 libsystemd-shared.la
1617 test_env_replace_SOURCES = \
1618 src/test/test-env-replace.c
1620 test_env_replace_LDADD = \
1621 libsystemd-shared.la
1623 test_strbuf_SOURCES = \
1624 src/test/test-strbuf.c
1626 test_strbuf_LDADD = \
1627 libsystemd-shared.la
1629 test_strv_SOURCES = \
1630 src/test/test-strv.c
1633 libsystemd-units.la \
1634 libsystemd-internal.la \
1635 libsystemd-shared.la
1637 test_path_util_SOURCES = \
1638 src/test/test-path-util.c
1640 test_path_util_LDADD = \
1641 libsystemd-shared.la
1643 test_strxcpyx_SOURCES = \
1644 src/test/test-strxcpyx.c
1646 test_strxcpyx_LDADD = \
1647 libsystemd-shared.la
1649 test_install_SOURCES = \
1650 src/test/test-install.c
1652 test_install_LDADD = \
1653 libsystemd-units.la \
1654 libsystemd-label.la \
1655 libsystemd-shared.la \
1656 libsystemd-internal.la
1658 test_watchdog_SOURCES = \
1659 src/test/test-watchdog.c
1661 test_watchdog_LDADD = \
1662 libsystemd-shared.la
1664 test_sched_prio_SOURCES = \
1665 src/test/test-sched-prio.c
1667 test_sched_prio_CPPFLAGS = \
1669 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1671 test_sched_prio_CFLAGS = \
1675 test_sched_prio_LDADD = \
1676 libsystemd-core.la \
1679 test_conf_files_SOURCES = \
1680 src/test/test-conf-files.c
1682 test_conf_files_LDADD = \
1683 libsystemd-shared.la
1685 # ------------------------------------------------------------------------------
1686 ## .PHONY so it always rebuilds it
1687 .PHONY: coverage lcov-run lcov-report coverage-sync
1689 # run lcov from scratch, always
1694 coverage_dir = coverage
1695 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1698 # reset run coverage tests
1700 @rm -rf $(coverage_dir)
1701 lcov $(coverage_opts) --zerocounters
1704 # generate report based on current coverage data
1706 $(MKDIR_P) $(coverage_dir)
1707 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1708 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1709 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1710 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1712 # lcov doesn't work properly with vpath builds, make sure that bad
1713 # output is not uploaded by mistake.
1714 coverage-sync: coverage
1715 test "$(builddir)" = "$(srcdir)"
1716 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1719 lcov-run lcov-report:
1720 echo "Need to reconfigure with --enable-coverage"
1723 # ------------------------------------------------------------------------------
1724 systemd_analyze_SOURCES = \
1725 src/analyze/analyze.c
1727 systemd_analyze_LDADD = \
1728 libsystemd-internal.la \
1729 libsystemd-shared.la
1731 # ------------------------------------------------------------------------------
1732 systemd_initctl_SOURCES = \
1733 src/initctl/initctl.c
1735 systemd_initctl_LDADD = \
1736 libsystemd-internal.la \
1737 libsystemd-shared.la
1739 # ------------------------------------------------------------------------------
1740 systemd_update_utmp_SOURCES = \
1741 src/update-utmp/update-utmp.c
1743 systemd_update_utmp_CFLAGS = \
1747 systemd_update_utmp_LDADD = \
1748 libsystemd-internal.la \
1749 libsystemd-shared.la \
1752 # ------------------------------------------------------------------------------
1753 systemd_update_done_SOURCES = \
1754 src/update-done/update-done.c
1756 systemd_update_done_LDADD = \
1757 libsystemd-internal.la \
1758 libsystemd-shared.la
1760 # ------------------------------------------------------------------------------
1761 systemd_shutdownd_SOURCES = \
1762 src/shutdownd/shutdownd.c
1764 systemd_shutdownd_LDADD = \
1765 libsystemd-label.la \
1766 libsystemd-internal.la \
1767 libsystemd-shared.la
1770 src/systemd/sd-shutdown.h
1772 # ------------------------------------------------------------------------------
1773 systemd_shutdown_SOURCES = \
1776 src/core/shutdown.c \
1777 src/core/mount-setup.c \
1778 src/core/mount-setup.h \
1779 src/core/killall.h \
1782 systemd_shutdown_LDADD = \
1783 libsystemd-label.la \
1784 libudev-internal.la \
1785 libsystemd-shared.la
1787 # ------------------------------------------------------------------------------
1789 systemd_modules_load_SOURCES = \
1790 src/modules-load/modules-load.c
1792 systemd_modules_load_CFLAGS = \
1796 systemd_modules_load_LDADD = \
1797 libsystemd-shared.la \
1800 rootlibexec_PROGRAMS += \
1801 systemd-modules-load
1803 nodist_systemunit_DATA += \
1804 units/systemd-modules-load.service
1806 SYSINIT_TARGET_WANTS += \
1807 systemd-modules-load.service
1810 nodist_systemunit_DATA += \
1811 units/kmod-static-nodes.service
1813 SYSINIT_TARGET_WANTS += \
1814 kmod-static-nodes.service
1819 units/systemd-modules-load.service.in \
1820 units/kmod-static-nodes.service.in
1822 # ------------------------------------------------------------------------------
1824 systemd_tmpfiles_SOURCES = \
1825 src/tmpfiles/tmpfiles.c
1827 systemd_tmpfiles_LDADD = \
1828 libsystemd-units.la \
1829 libsystemd-label.la \
1830 libsystemd-capability.la \
1831 libsystemd-internal.la \
1832 libsystemd-shared.la
1834 rootbin_PROGRAMS += \
1837 dist_systemunit_DATA += \
1838 units/systemd-tmpfiles-clean.timer
1840 nodist_systemunit_DATA += \
1841 units/systemd-tmpfiles-setup-dev.service \
1842 units/systemd-tmpfiles-setup.service \
1843 units/systemd-tmpfiles-clean.service
1845 dist_tmpfiles_DATA = \
1846 tmpfiles.d/systemd.conf \
1847 tmpfiles.d/systemd-nologin.conf \
1848 tmpfiles.d/systemd-remote.conf \
1849 tmpfiles.d/tmp.conf \
1850 tmpfiles.d/x11.conf \
1851 tmpfiles.d/var.conf \
1855 dist_tmpfiles_DATA += \
1856 tmpfiles.d/legacy.conf
1859 SYSINIT_TARGET_WANTS += \
1860 systemd-tmpfiles-setup-dev.service \
1861 systemd-tmpfiles-setup.service
1863 dist_zshcompletion_DATA += \
1864 shell-completion/zsh/_systemd-tmpfiles
1866 TIMERS_TARGET_WANTS += \
1867 systemd-tmpfiles-clean.timer
1871 $(sysconfdir)/tmpfiles.d
1875 units/systemd-tmpfiles-setup-dev.service.in \
1876 units/systemd-tmpfiles-setup.service.in \
1877 units/systemd-tmpfiles-clean.service.in
1879 # ------------------------------------------------------------------------------
1881 systemd_sysusers_SOURCES = \
1882 src/sysusers/sysusers.c
1884 systemd_sysusers_LDADD = \
1885 libsystemd-units.la \
1886 libsystemd-label.la \
1887 libsystemd-capability.la \
1888 libsystemd-internal.la \
1889 libsystemd-shared.la
1891 rootbin_PROGRAMS += \
1894 nodist_systemunit_DATA += \
1895 units/systemd-sysusers.service
1897 SYSINIT_TARGET_WANTS += \
1898 systemd-sysusers.service
1900 dist_sysusers_DATA = \
1901 sysusers.d/systemd.conf
1903 nodist_sysusers_DATA = \
1904 sysusers.d/basic.conf
1907 units/systemd-sysusers.service.in \
1908 sysusers.d/basic.conf.in
1911 sysusers.d/basic.conf
1917 # ------------------------------------------------------------------------------
1919 systemd_firstboot_SOURCES = \
1920 src/firstboot/firstboot.c
1922 systemd_firstboot_LDADD = \
1923 libsystemd-units.la \
1924 libsystemd-label.la \
1925 libsystemd-capability.la \
1926 libsystemd-internal.la \
1927 libsystemd-shared.la \
1930 rootbin_PROGRAMS += \
1933 nodist_systemunit_DATA += \
1934 units/systemd-firstboot.service
1937 units/systemd-firstboot.service.in
1939 SYSINIT_TARGET_WANTS += \
1940 systemd-firstboot.service
1944 # ------------------------------------------------------------------------------
1945 systemd_machine_id_setup_SOURCES = \
1946 src/machine-id-setup/machine-id-setup-main.c \
1947 src/core/machine-id-setup.c \
1948 src/core/machine-id-setup.h
1950 systemd_machine_id_setup_LDADD = \
1951 libsystemd-label.la \
1952 libsystemd-internal.la \
1953 libsystemd-shared.la
1955 # ------------------------------------------------------------------------------
1956 systemd_sysctl_SOURCES = \
1959 systemd_sysctl_LDADD = \
1960 libsystemd-shared.la
1962 # ------------------------------------------------------------------------------
1963 systemd_sleep_SOURCES = \
1966 systemd_sleep_LDADD = \
1967 libsystemd-shared.la
1969 # ------------------------------------------------------------------------------
1970 systemd_fsck_SOURCES = \
1973 systemd_fsck_LDADD = \
1974 libsystemd-internal.la \
1975 libudev-internal.la \
1976 libsystemd-shared.la
1978 # ------------------------------------------------------------------------------
1979 systemd_ac_power_SOURCES = \
1980 src/ac-power/ac-power.c
1982 systemd_ac_power_LDADD = \
1983 libudev-internal.la \
1984 libsystemd-shared.la
1986 # ------------------------------------------------------------------------------
1987 systemd_detect_virt_SOURCES = \
1988 src/detect-virt/detect-virt.c
1990 systemd_detect_virt_LDADD = \
1991 libsystemd-shared.la
1993 INSTALL_EXEC_HOOKS += \
1994 systemd-detect-virt-install-hook
1996 # ------------------------------------------------------------------------------
1997 systemd_delta_SOURCES = \
2000 systemd_delta_LDADD = \
2001 libsystemd-shared.la
2003 # ------------------------------------------------------------------------------
2004 systemd_getty_generator_SOURCES = \
2005 src/getty-generator/getty-generator.c
2007 systemd_getty_generator_LDADD = \
2008 libsystemd-label.la \
2009 libsystemd-shared.la
2011 # ------------------------------------------------------------------------------
2012 systemd_debug_generator_SOURCES = \
2013 src/debug-generator/debug-generator.c
2015 systemd_debug_generator_LDADD = \
2016 libsystemd-label.la \
2017 libsystemd-shared.la
2019 # ------------------------------------------------------------------------------
2020 systemd_fstab_generator_SOURCES = \
2021 src/fstab-generator/fstab-generator.c \
2022 src/core/mount-setup.c
2024 systemd_fstab_generator_LDADD = \
2025 libsystemd-label.la \
2026 libsystemd-shared.la
2028 # ------------------------------------------------------------------------------
2029 systemd_system_update_generator_SOURCES = \
2030 src/system-update-generator/system-update-generator.c
2032 systemd_system_update_generator_LDADD = \
2033 libsystemd-label.la \
2034 libsystemd-shared.la
2037 # ------------------------------------------------------------------------------
2038 systemgenerator_PROGRAMS += \
2039 systemd-efi-boot-generator
2041 systemd_efi_boot_generator_SOURCES = \
2042 src/efi-boot-generator/efi-boot-generator.c
2044 systemd_efi_boot_generator_LDADD = \
2045 libsystemd-label.la \
2046 libsystemd-shared.la
2048 # ------------------------------------------------------------------------------
2051 src/boot/boot-loader.h \
2052 src/boot/bootctl.c \
2053 src/boot/boot-loader.c \
2057 libsystemd-shared.la \
2058 libsystemd-internal.la
2063 dist_bashcompletion_DATA += \
2064 shell-completion/bash/bootctl
2066 dist_zshcompletion_DATA += \
2067 shell-completion/zsh/_bootctl
2071 # ------------------------------------------------------------------------------
2073 systemgenerator_PROGRAMS += \
2074 systemd-gpt-auto-generator
2076 systemd_gpt_auto_generator_SOURCES = \
2077 src/gpt-auto-generator/gpt-auto-generator.c \
2078 src/shared/blkid-util.h
2080 systemd_gpt_auto_generator_LDADD = \
2081 libsystemd-label.la \
2082 libsystemd-internal.la \
2083 libudev-internal.la \
2084 libsystemd-shared.la \
2087 systemd_gpt_auto_generator_CFLAGS = \
2092 # ------------------------------------------------------------------------------
2094 systemgenerator_PROGRAMS += \
2095 systemd-dbus1-generator
2097 systemd_dbus1_generator_SOURCES = \
2098 src/dbus1-generator/dbus1-generator.c
2100 systemd_dbus1_generator_LDADD = \
2101 libsystemd-label.la \
2102 libsystemd-shared.la \
2103 libsystemd-internal.la
2105 dbus1-generator-install-hook:
2106 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2107 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2108 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2110 dbus1-generator-uninstall-hook:
2111 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2113 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2114 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2117 # ------------------------------------------------------------------------------
2118 systemd_sysv_generator_SOURCES = \
2119 src/sysv-generator/sysv-generator.c
2121 systemd_sysv_generator_LDADD = \
2122 libsystemd-core.la \
2123 libsystemd-label.la \
2124 libsystemd-shared.la
2126 # ------------------------------------------------------------------------------
2127 systemd_rc_local_generator_SOURCES = \
2128 src/rc-local-generator/rc-local-generator.c
2130 systemd_rc_local_generator_LDADD = \
2131 libsystemd-label.la \
2132 libsystemd-shared.la
2134 # ------------------------------------------------------------------------------
2135 systemd_remount_fs_SOURCES = \
2136 src/remount-fs/remount-fs.c \
2137 src/core/mount-setup.c \
2138 src/core/mount-setup.h
2140 systemd_remount_fs_LDADD = \
2141 libsystemd-label.la \
2142 libsystemd-shared.la
2144 # ------------------------------------------------------------------------------
2145 systemd_cgroups_agent_SOURCES = \
2146 src/cgroups-agent/cgroups-agent.c
2148 systemd_cgroups_agent_LDADD = \
2149 libsystemd-internal.la \
2150 libsystemd-shared.la
2152 # ------------------------------------------------------------------------------
2153 systemd_escape_SOURCES = \
2156 systemd_escape_LDADD = \
2157 libsystemd-shared.la
2159 # -----------------------------------------------------------------------------
2160 systemctl_SOURCES = \
2161 src/systemctl/systemctl.c
2164 libsystemd-units.la \
2165 libsystemd-label.la \
2166 libsystemd-internal.la \
2167 libsystemd-logs.la \
2168 libsystemd-journal-internal.la \
2169 libsystemd-shared.la
2171 # ------------------------------------------------------------------------------
2172 systemd_notify_SOURCES = \
2173 src/notify/notify.c \
2174 src/readahead/sd-readahead.c
2176 systemd_notify_LDADD = \
2177 libsystemd-internal.la \
2178 libsystemd-shared.la
2180 # ------------------------------------------------------------------------------
2181 systemd_path_SOURCES = \
2184 systemd_path_LDADD = \
2185 libsystemd-internal.la \
2186 libsystemd-shared.la
2188 # ------------------------------------------------------------------------------
2189 systemd_ask_password_SOURCES = \
2190 src/ask-password/ask-password.c
2192 systemd_ask_password_LDADD = \
2193 libsystemd-label.la \
2194 libsystemd-shared.la
2196 # ------------------------------------------------------------------------------
2197 systemd_reply_password_SOURCES = \
2198 src/reply-password/reply-password.c
2200 systemd_reply_password_LDADD = \
2201 libsystemd-shared.la
2203 # ------------------------------------------------------------------------------
2204 systemd_cgls_SOURCES = \
2207 systemd_cgls_LDADD = \
2208 libsystemd-internal.la \
2209 libsystemd-shared.la
2211 # ------------------------------------------------------------------------------
2212 systemd_cgtop_SOURCES = \
2215 systemd_cgtop_LDADD = \
2216 libsystemd-shared.la
2218 # ------------------------------------------------------------------------------
2219 systemd_nspawn_SOURCES = \
2220 src/nspawn/nspawn.c \
2221 src/core/mount-setup.c \
2222 src/core/mount-setup.h \
2223 src/core/loopback-setup.c \
2224 src/core/loopback-setup.h
2226 systemd_nspawn_CFLAGS = \
2231 systemd_nspawn_LDADD = \
2232 libsystemd-label.la \
2233 libsystemd-capability.la \
2234 libsystemd-internal.la \
2235 libudev-internal.la \
2236 libsystemd-shared.la \
2240 systemd_nspawn_LDADD += \
2241 libsystemd-seccomp.la \
2245 # ------------------------------------------------------------------------------
2246 systemd_run_SOURCES = \
2249 systemd_run_LDADD = \
2250 libsystemd-label.la \
2251 libsystemd-capability.la \
2252 libsystemd-internal.la \
2253 libsystemd-shared.la
2255 # ------------------------------------------------------------------------------
2256 systemd_bus_proxyd_SOURCES = \
2257 src/bus-proxyd/bus-proxyd.c \
2258 src/bus-proxyd/bus-policy.c \
2259 src/bus-proxyd/bus-policy.h
2261 systemd_bus_proxyd_LDADD = \
2262 libsystemd-capability.la \
2263 libsystemd-internal.la \
2264 libsystemd-shared.la
2266 bus-proxyd-install-hook:
2267 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2268 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2269 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2271 bus-proxyd-uninstall-hook:
2272 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2274 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2275 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2278 nodist_systemunit_DATA += \
2279 units/systemd-bus-proxyd@.service
2281 dist_systemunit_DATA += \
2282 units/systemd-bus-proxyd.socket
2284 dist_userunit_DATA += \
2285 units/user/systemd-bus-proxyd.socket \
2286 units/user/systemd-bus-proxyd@.service
2290 units/systemd-bus-proxyd@.service.in
2292 # ------------------------------------------------------------------------------
2293 systemd_tty_ask_password_agent_SOURCES = \
2294 src/tty-ask-password-agent/tty-ask-password-agent.c
2296 systemd_tty_ask_password_agent_LDADD = \
2297 libsystemd-label.la \
2298 libsystemd-shared.la
2300 # ------------------------------------------------------------------------------
2301 libsystemd_internal_la_SOURCES = \
2302 src/systemd/sd-bus.h \
2303 src/systemd/sd-bus-protocol.h \
2304 src/systemd/sd-bus-vtable.h \
2305 src/systemd/sd-memfd.h \
2306 src/systemd/sd-utf8.h \
2307 src/systemd/sd-event.h \
2308 src/systemd/sd-rtnl.h \
2309 src/systemd/sd-resolve.h \
2310 src/systemd/sd-login.h \
2311 src/systemd/sd-id128.h \
2312 src/systemd/sd-daemon.h \
2313 src/systemd/sd-path.h \
2314 src/libsystemd/sd-bus/sd-bus.c \
2315 src/libsystemd/sd-bus/bus-control.c \
2316 src/libsystemd/sd-bus/bus-control.h \
2317 src/libsystemd/sd-bus/bus-error.c \
2318 src/libsystemd/sd-bus/bus-error.h \
2319 src/libsystemd/sd-bus/bus-internal.c \
2320 src/libsystemd/sd-bus/bus-internal.h \
2321 src/libsystemd/sd-bus/bus-socket.c \
2322 src/libsystemd/sd-bus/bus-socket.h \
2323 src/libsystemd/sd-bus/bus-kernel.c \
2324 src/libsystemd/sd-bus/bus-kernel.h \
2325 src/libsystemd/sd-bus/bus-container.c \
2326 src/libsystemd/sd-bus/bus-container.h \
2327 src/libsystemd/sd-bus/bus-message.c \
2328 src/libsystemd/sd-bus/bus-message.h \
2329 src/libsystemd/sd-bus/bus-creds.c \
2330 src/libsystemd/sd-bus/bus-creds.h \
2331 src/libsystemd/sd-bus/bus-signature.c \
2332 src/libsystemd/sd-bus/bus-signature.h \
2333 src/libsystemd/sd-bus/bus-type.c \
2334 src/libsystemd/sd-bus/bus-type.h \
2335 src/libsystemd/sd-bus/bus-match.c \
2336 src/libsystemd/sd-bus/bus-match.h \
2337 src/libsystemd/sd-bus/bus-bloom.c \
2338 src/libsystemd/sd-bus/bus-bloom.h \
2339 src/libsystemd/sd-bus/bus-introspect.c \
2340 src/libsystemd/sd-bus/bus-introspect.h \
2341 src/libsystemd/sd-bus/bus-objects.c \
2342 src/libsystemd/sd-bus/bus-objects.h \
2343 src/libsystemd/sd-bus/bus-gvariant.c \
2344 src/libsystemd/sd-bus/bus-gvariant.h \
2345 src/libsystemd/sd-bus/bus-convenience.c \
2346 src/libsystemd/sd-bus/bus-track.c \
2347 src/libsystemd/sd-bus/bus-track.h \
2348 src/libsystemd/sd-bus/bus-util.c \
2349 src/libsystemd/sd-bus/bus-util.h \
2350 src/libsystemd/sd-bus/bus-slot.c \
2351 src/libsystemd/sd-bus/bus-slot.h \
2352 src/libsystemd/sd-bus/bus-protocol.h \
2353 src/libsystemd/sd-bus/kdbus.h \
2354 src/libsystemd/sd-bus/sd-memfd.c \
2355 src/libsystemd/sd-utf8/sd-utf8.c \
2356 src/libsystemd/sd-event/sd-event.c \
2357 src/libsystemd/sd-event/event-util.h \
2358 src/libsystemd/sd-rtnl/sd-rtnl.c \
2359 src/libsystemd/sd-rtnl/rtnl-internal.h \
2360 src/libsystemd/sd-rtnl/rtnl-message.c \
2361 src/libsystemd/sd-rtnl/rtnl-types.h \
2362 src/libsystemd/sd-rtnl/rtnl-types.c \
2363 src/libsystemd/sd-rtnl/rtnl-util.h \
2364 src/libsystemd/sd-rtnl/rtnl-util.c \
2365 src/libsystemd/sd-rtnl/local-addresses.h \
2366 src/libsystemd/sd-rtnl/local-addresses.c \
2367 src/libsystemd/sd-id128/sd-id128.c \
2368 src/libsystemd/sd-daemon/sd-daemon.c \
2369 src/libsystemd/sd-login/sd-login.c \
2370 src/libsystemd/sd-path/sd-path.c
2372 nodist_libsystemd_internal_la_SOURCES = \
2373 src/libsystemd/libsystemd.sym \
2374 src/libsystemd/sd-bus/bus-error-mapping.c
2376 libsystemd_internal_la_CFLAGS = \
2380 libsystemd_internal_la_LIBADD = \
2383 libsystemd_resolve_la_SOURCES = \
2384 src/libsystemd/sd-resolve/sd-resolve.c \
2385 src/libsystemd/sd-resolve/resolve-util.h
2387 libsystemd_resolve_la_CFLAGS = \
2391 libsystemd_resolve_la_LIBADD = \
2394 noinst_LTLIBRARIES += \
2395 libsystemd-internal.la \
2396 libsystemd-resolve.la
2398 libsystemd_dump_la_SOURCES = \
2399 src/libsystemd/sd-bus/bus-dump.c \
2400 src/libsystemd/sd-bus/bus-dump.h
2402 libsystemd_dump_la_CFLAGS = \
2406 noinst_LTLIBRARIES += \
2410 src/libsystemd/libsystemd.sym.m4 \
2411 src/libsystemd/libsystemd.pc.in \
2412 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2413 src/libsystemd/sd-bus/DIFFERENCES \
2414 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2417 src/libsystemd/libsystemd.sym \
2418 src/libsystemd/sd-bus/bus-error-mapping.c
2421 src/libsystemd/libsystemd.sym
2423 libsystemd_la_SOURCES = \
2424 $(libsystemd_internal_la_SOURCES) \
2425 $(libsystemd_resolve_la_SOURCES) \
2426 $(libsystemd_journal_internal_la_SOURCES)
2428 nodist_libsystemd_la_SOURCES = \
2429 $(nodist_libsystemd_internal_la_SOURCES)
2431 libsystemd_la_CFLAGS = \
2432 $(libsystemd_internal_la_CFLAGS) \
2433 $(libsystemd_resolve_la_CFLAGS) \
2434 $(libsystemd_journal_internal_la_CFLAGS)
2436 libsystemd_la_LDFLAGS = \
2438 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2439 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2441 libsystemd_la_LIBADD = \
2442 libsystemd-shared.la \
2443 $(libsystemd_internal_la_LIBADD) \
2444 $(libsystemd_journal_internal_la_LIBADD) \
2445 $(libsystemd_resolve_la_LIBADD)
2447 libsystemd-install-hook:
2448 libname=libsystemd.so && $(move-to-rootlibdir)
2450 libsystemd-uninstall-hook:
2451 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2453 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2454 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2456 pkgconfiglib_DATA += \
2457 src/libsystemd/libsystemd.pc
2459 pkginclude_HEADERS += \
2460 src/systemd/sd-login.h \
2461 src/systemd/sd-id128.h \
2462 src/systemd/sd-daemon.h
2465 pkginclude_HEADERS += \
2466 src/systemd/sd-bus.h \
2467 src/systemd/sd-bus-protocol.h \
2468 src/systemd/sd-bus-vtable.h \
2469 src/systemd/sd-memfd.h \
2470 src/systemd/sd-utf8.h \
2471 src/systemd/sd-event.h \
2472 src/systemd/sd-rtnl.h \
2473 src/systemd/sd-resolve.h \
2474 src/systemd/sd-path.h
2477 lib_LTLIBRARIES += \
2482 test-bus-signature \
2488 test-bus-kernel-bloom \
2489 test-bus-kernel-benchmark \
2491 test-bus-zero-copy \
2492 test-bus-introspect \
2504 test_bus_marshal_SOURCES = \
2505 src/libsystemd/sd-bus/test-bus-marshal.c
2507 test_bus_marshal_LDADD = \
2508 libsystemd-internal.la \
2509 libsystemd-shared.la \
2510 libsystemd-dump.la \
2511 libsystemd-capability.la \
2516 test_bus_marshal_CFLAGS = \
2522 test_bus_signature_SOURCES = \
2523 src/libsystemd/sd-bus/test-bus-signature.c
2525 test_bus_signature_LDADD = \
2526 libsystemd-shared.la \
2527 libsystemd-internal.la
2529 test_bus_chat_SOURCES = \
2530 src/libsystemd/sd-bus/test-bus-chat.c
2532 test_bus_chat_CFLAGS = \
2536 test_bus_chat_LDADD = \
2537 libsystemd-internal.la \
2538 libsystemd-shared.la
2540 test_bus_cleanup_SOURCES = \
2541 src/libsystemd/sd-bus/test-bus-cleanup.c
2543 test_bus_cleanup_CFLAGS = \
2547 test_bus_cleanup_LDADD = \
2548 libsystemd-internal.la \
2549 libsystemd-shared.la
2551 test_bus_server_SOURCES = \
2552 src/libsystemd/sd-bus/test-bus-server.c
2554 test_bus_server_CFLAGS = \
2558 test_bus_server_LDADD = \
2559 libsystemd-internal.la \
2560 libsystemd-shared.la
2562 test_bus_objects_SOURCES = \
2563 src/libsystemd/sd-bus/test-bus-objects.c
2565 test_bus_objects_CFLAGS = \
2570 test_bus_objects_LDADD = \
2571 libsystemd-internal.la \
2572 libsystemd-shared.la \
2573 libsystemd-dump.la \
2574 libsystemd-capability.la \
2577 test_bus_error_SOURCES = \
2578 src/libsystemd/sd-bus/test-bus-error.c
2580 test_bus_error_LDADD = \
2581 libsystemd-internal.la \
2582 libsystemd-shared.la
2584 test_bus_gvariant_SOURCES = \
2585 src/libsystemd/sd-bus/test-bus-gvariant.c
2587 test_bus_gvariant_LDADD = \
2588 libsystemd-internal.la \
2589 libsystemd-shared.la \
2590 libsystemd-dump.la \
2591 libsystemd-capability.la \
2595 test_bus_gvariant_CFLAGS = \
2600 test_bus_creds_SOURCES = \
2601 src/libsystemd/sd-bus/test-bus-creds.c
2603 test_bus_creds_LDADD = \
2604 libsystemd-internal.la \
2605 libsystemd-shared.la \
2606 libsystemd-dump.la \
2607 libsystemd-capability.la
2609 test_bus_match_SOURCES = \
2610 src/libsystemd/sd-bus/test-bus-match.c
2612 test_bus_match_LDADD = \
2613 libsystemd-internal.la \
2614 libsystemd-shared.la
2616 test_bus_kernel_SOURCES = \
2617 src/libsystemd/sd-bus/test-bus-kernel.c
2619 test_bus_kernel_LDADD = \
2620 libsystemd-internal.la \
2621 libsystemd-shared.la \
2622 libsystemd-dump.la \
2623 libsystemd-capability.la \
2626 test_bus_kernel_CFLAGS = \
2630 test_bus_kernel_bloom_SOURCES = \
2631 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2633 test_bus_kernel_bloom_LDADD = \
2634 libsystemd-internal.la \
2635 libsystemd-shared.la
2637 test_bus_kernel_benchmark_SOURCES = \
2638 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2640 test_bus_kernel_benchmark_LDADD = \
2641 libsystemd-internal.la \
2642 libsystemd-shared.la
2644 test_bus_memfd_SOURCES = \
2645 src/libsystemd/sd-bus/test-bus-memfd.c
2647 test_bus_memfd_LDADD = \
2648 libsystemd-internal.la \
2649 libsystemd-shared.la
2651 test_bus_zero_copy_SOURCES = \
2652 src/libsystemd/sd-bus/test-bus-zero-copy.c
2654 test_bus_zero_copy_LDADD = \
2655 libsystemd-internal.la \
2656 libsystemd-shared.la \
2657 libsystemd-dump.la \
2658 libsystemd-capability.la \
2661 test_bus_zero_copy_CFLAGS = \
2665 test_bus_introspect_SOURCES = \
2666 src/libsystemd/sd-bus/test-bus-introspect.c
2668 test_bus_introspect_LDADD = \
2669 libsystemd-internal.la \
2670 libsystemd-shared.la
2672 test_event_SOURCES = \
2673 src/libsystemd/sd-event/test-event.c
2675 test_event_LDADD = \
2676 libsystemd-internal.la \
2677 libsystemd-shared.la
2679 test_rtnl_SOURCES = \
2680 src/libsystemd/sd-rtnl/test-rtnl.c
2683 libsystemd-internal.la \
2684 libsystemd-shared.la
2686 test_resolve_SOURCES = \
2687 src/libsystemd/sd-resolve/test-resolve.c
2689 test_resolve_LDADD = \
2690 libsystemd-resolve.la \
2691 libsystemd-internal.la \
2692 libsystemd-shared.la
2694 test_resolve_CFLAGS = \
2699 src/libsystemd/sd-bus/busctl.c
2702 libsystemd-internal.la \
2703 libsystemd-shared.la \
2704 libsystemd-dump.la \
2705 libsystemd-capability.la \
2712 # ------------------------------------------------------------------------------
2713 noinst_LTLIBRARIES += \
2714 libsystemd-network.la
2716 libsystemd_network_la_CFLAGS = \
2720 libsystemd_network_la_SOURCES = \
2721 src/systemd/sd-network.h \
2722 src/systemd/sd-dhcp-client.h \
2723 src/systemd/sd-dhcp-server.h \
2724 src/systemd/sd-dhcp-lease.h \
2725 src/systemd/sd-ipv4ll.h \
2726 src/network/sd-network.c \
2727 src/network/network-util.h \
2728 src/libsystemd-network/sd-dhcp-client.c \
2729 src/libsystemd-network/sd-dhcp-server.c \
2730 src/libsystemd-network/dhcp-network.c \
2731 src/libsystemd-network/dhcp-option.c \
2732 src/libsystemd-network/dhcp-packet.c \
2733 src/libsystemd-network/dhcp-internal.h \
2734 src/libsystemd-network/dhcp-server-internal.h \
2735 src/libsystemd-network/dhcp-protocol.h \
2736 src/libsystemd-network/dhcp-lease-internal.h \
2737 src/libsystemd-network/sd-dhcp-lease.c \
2738 src/libsystemd-network/sd-ipv4ll.c \
2739 src/libsystemd-network/ipv4ll-network.c \
2740 src/libsystemd-network/ipv4ll-packet.c \
2741 src/libsystemd-network/ipv4ll-internal.h \
2742 src/libsystemd-network/network-internal.c \
2743 src/libsystemd-network/network-internal.h \
2744 src/systemd/sd-icmp6-nd.h \
2745 src/systemd/sd-dhcp6-client.h \
2746 src/systemd/sd-dhcp6-lease.h \
2747 src/libsystemd-network/sd-icmp6-nd.c \
2748 src/libsystemd-network/sd-dhcp6-client.c \
2749 src/libsystemd-network/dhcp6-internal.h \
2750 src/libsystemd-network/dhcp6-protocol.h \
2751 src/libsystemd-network/dhcp6-network.c \
2752 src/libsystemd-network/dhcp6-option.c \
2753 src/libsystemd-network/dhcp6-lease-internal.h \
2754 src/libsystemd-network/sd-dhcp6-lease.c
2756 libsystemd_network_la_LIBADD = \
2757 libudev-internal.la \
2758 libsystemd-label.la \
2759 libsystemd-internal.la \
2760 libsystemd-shared.la \
2763 test_dhcp_option_SOURCES = \
2764 src/libsystemd-network/dhcp-protocol.h \
2765 src/libsystemd-network/dhcp-internal.h \
2766 src/libsystemd-network/test-dhcp-option.c
2768 test_dhcp_option_LDADD = \
2769 libsystemd-network.la \
2770 libsystemd-internal.la \
2771 libsystemd-shared.la
2773 test_dhcp_client_SOURCES = \
2774 src/systemd/sd-dhcp-client.h \
2775 src/libsystemd-network/dhcp-protocol.h \
2776 src/libsystemd-network/dhcp-internal.h \
2777 src/libsystemd-network/test-dhcp-client.c
2779 test_dhcp_client_LDADD = \
2780 libsystemd-network.la \
2781 libsystemd-label.la \
2782 libsystemd-internal.la \
2783 libsystemd-shared.la
2785 test_dhcp_server_SOURCES = \
2786 src/libsystemd-network/test-dhcp-server.c
2788 test_dhcp_server_LDADD = \
2789 libsystemd-network.la \
2790 libsystemd-internal.la \
2791 libsystemd-shared.la
2793 test_ipv4ll_SOURCES = \
2794 src/systemd/sd-ipv4ll.h \
2795 src/libsystemd-network/ipv4ll-internal.h \
2796 src/libsystemd-network/test-ipv4ll.c
2798 test_ipv4ll_LDADD = \
2799 libsystemd-network.la \
2800 libsystemd-label.la \
2801 libsystemd-internal.la \
2802 libsystemd-shared.la
2804 test_icmp6_rs_SOURCES = \
2805 src/systemd/sd-dhcp6-client.h \
2806 src/systemd/sd-icmp6-nd.h \
2807 src/libsystemd-network/dhcp6-internal.h \
2808 src/libsystemd-network/test-icmp6-rs.c
2810 test_icmp6_rs_LDADD = \
2811 libsystemd-network.la \
2812 libsystemd-internal.la \
2813 libsystemd-shared.la
2815 test_dhcp6_client_SOURCES = \
2816 src/systemd/sd-dhcp6-client.h \
2817 src/libsystemd-network/dhcp6-internal.h \
2818 src/libsystemd-network/test-dhcp6-client.c
2820 test_dhcp6_client_LDADD = \
2821 libsystemd-network.la \
2822 libsystemd-internal.la \
2823 libsystemd-shared.la
2833 # ------------------------------------------------------------------------------
2834 noinst_LTLIBRARIES += \
2835 libsystemd-terminal.la
2837 libsystemd_terminal_la_CFLAGS = \
2840 libsystemd_terminal_la_SOURCES = \
2841 src/libsystemd-terminal/term-internal.h \
2842 src/libsystemd-terminal/term-charset.c \
2843 src/libsystemd-terminal/term-page.c \
2844 src/libsystemd-terminal/term-parser.c \
2845 src/libsystemd-terminal/term-screen.c \
2846 src/libsystemd-terminal/term-wcwidth.c
2848 libsystemd_terminal_la_LIBADD = \
2849 libsystemd-internal.la \
2850 libsystemd-shared.la
2852 noinst_PROGRAMS += \
2855 systemd_subterm_SOURCES = \
2856 src/libsystemd-terminal/subterm.c
2858 systemd_subterm_LDADD = \
2859 libsystemd-terminal.la \
2860 libsystemd-internal.la \
2861 libsystemd-shared.la
2863 test_term_page_SOURCES = \
2864 src/libsystemd-terminal/test-term-page.c
2866 test_term_page_LDADD = \
2867 libsystemd-terminal.la \
2868 libsystemd-internal.la \
2869 libsystemd-shared.la
2871 test_term_parser_SOURCES = \
2872 src/libsystemd-terminal/test-term-parser.c
2874 test_term_parser_LDADD = \
2875 libsystemd-terminal.la \
2876 libsystemd-internal.la \
2877 libsystemd-shared.la
2883 # ------------------------------------------------------------------------------
2893 include_HEADERS += \
2894 src/libudev/libudev.h
2896 lib_LTLIBRARIES += \
2899 libudev_la_SOURCES =\
2900 src/libudev/libudev.sym \
2901 src/libudev/libudev-private.h \
2902 src/libudev/libudev.c \
2903 src/libudev/libudev-list.c \
2904 src/libudev/libudev-util.c \
2905 src/libudev/libudev-device.c \
2906 src/libudev/libudev-enumerate.c \
2907 src/libudev/libudev-monitor.c \
2908 src/libudev/libudev-queue.c \
2909 src/libudev/libudev-hwdb-def.h \
2910 src/libudev/libudev-hwdb.c
2912 libudev_la_CFLAGS = \
2916 libudev_la_LDFLAGS = \
2918 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2919 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2921 libudev_la_LIBADD = \
2922 libsystemd-internal.la \
2923 libsystemd-shared.la
2925 pkgconfiglib_DATA += \
2926 src/libudev/libudev.pc
2929 src/libudev/libudev.pc.in
2932 src/libudev/libudev.pc \
2937 $(AM_V_at)$(MKDIR_P) $(dir $@)
2938 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2941 $(AM_V_at)$(MKDIR_P) $(dir $@)
2942 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2944 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2945 libudev-install-hook:
2946 libname=libudev.so && $(move-to-rootlibdir)
2948 libudev-uninstall-hook:
2949 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2951 INSTALL_EXEC_HOOKS += libudev-install-hook
2952 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2954 # ------------------------------------------------------------------------------
2955 noinst_LTLIBRARIES += \
2958 libudev_internal_la_SOURCES =\
2959 $(libudev_la_SOURCES) \
2960 src/libudev/libudev-device-private.c
2962 libudev_internal_la_CFLAGS = \
2964 -fvisibility=default
2966 # ------------------------------------------------------------------------------
2968 $(sysconfdir)/udev/rules.d \
2969 $(sysconfdir)/udev/hwdb.d
2971 dist_network_DATA = \
2972 network/99-default.link \
2973 network/80-container-host0.network \
2974 network/80-container-ve.network
2976 dist_udevrules_DATA += \
2977 rules/42-usb-hid-pm.rules \
2978 rules/50-udev-default.rules \
2979 rules/60-drm.rules \
2980 rules/60-keyboard.rules \
2981 rules/60-persistent-storage-tape.rules \
2982 rules/60-persistent-serial.rules \
2983 rules/60-persistent-input.rules \
2984 rules/60-persistent-alsa.rules \
2985 rules/60-persistent-storage.rules \
2986 rules/64-btrfs.rules \
2987 rules/75-net-description.rules \
2988 rules/75-tty-description.rules \
2989 rules/78-sound-card.rules \
2990 rules/80-net-setup-link.rules \
2991 rules/95-udev-late.rules
2993 nodist_udevrules_DATA += \
2994 rules/99-systemd.rules
2996 dist_udevhwdb_DATA = \
2997 hwdb/20-pci-vendor-model.hwdb \
2998 hwdb/20-pci-classes.hwdb \
2999 hwdb/20-usb-vendor-model.hwdb \
3000 hwdb/20-usb-classes.hwdb \
3001 hwdb/20-sdio-vendor-model.hwdb \
3002 hwdb/20-sdio-classes.hwdb \
3003 hwdb/20-bluetooth-vendor-product.hwdb \
3004 hwdb/20-acpi-vendor.hwdb \
3006 hwdb/20-net-ifname.hwdb \
3007 hwdb/60-keyboard.hwdb
3009 udevconfdir = $(sysconfdir)/udev
3010 dist_udevconf_DATA = \
3013 sharepkgconfigdir = $(datadir)/pkgconfig
3014 sharepkgconfig_DATA = \
3018 rules/99-systemd.rules.in \
3022 rules/99-systemd.rules \
3026 units/systemd-udevd.service.in \
3027 units/systemd-udev-trigger.service.in \
3028 units/systemd-udev-settle.service.in \
3029 units/systemd-udev-hwdb-update.service.in
3032 units/systemd-udevd.service \
3033 units/systemd-udev-trigger.service \
3034 units/systemd-udev-settle.service \
3035 units/systemd-udev-hwdb-update.service
3037 SOCKETS_TARGET_WANTS += \
3038 systemd-udevd-control.socket \
3039 systemd-udevd-kernel.socket
3041 SYSINIT_TARGET_WANTS += \
3042 systemd-udevd.service \
3043 systemd-udev-trigger.service \
3044 systemd-udev-hwdb-update.service
3046 rootbin_PROGRAMS += \
3049 rootlibexec_PROGRAMS += \
3052 noinst_LTLIBRARIES += \
3055 src/udev/keyboard-keys.txt:
3056 $(AM_V_at)$(MKDIR_P) $(dir $@)
3057 $(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/' > $@
3059 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3060 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3062 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3063 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3065 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3066 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3068 libudev_core_la_SOURCES = \
3070 src/udev/udev-event.c \
3071 src/udev/udev-watch.c \
3072 src/udev/udev-node.c \
3073 src/udev/udev-rules.c \
3074 src/udev/udev-ctrl.c \
3075 src/udev/udev-builtin.c \
3076 src/udev/udev-builtin-btrfs.c \
3077 src/udev/udev-builtin-hwdb.c \
3078 src/udev/udev-builtin-input_id.c \
3079 src/udev/udev-builtin-keyboard.c \
3080 src/udev/udev-builtin-net_id.c \
3081 src/udev/udev-builtin-net_setup_link.c \
3082 src/udev/udev-builtin-path_id.c \
3083 src/udev/udev-builtin-usb_id.c \
3084 src/udev/net/link-config.h \
3085 src/udev/net/link-config.c \
3086 src/udev/net/ethtool-util.h \
3087 src/udev/net/ethtool-util.c
3089 nodist_libudev_core_la_SOURCES = \
3090 src/udev/keyboard-keys-from-name.h \
3091 src/udev/keyboard-keys-to-name.h \
3092 src/udev/net/link-config-gperf.c
3095 $(nodist_libudev_core_la_SOURCES)
3098 src/udev/keyboard-keys-from-name.gperf \
3099 src/udev/keyboard-keys.txt \
3100 src/udev/net/link-config-gperf.c
3103 src/udev/net/link-config-gperf.gperf
3105 libudev_core_la_CFLAGS = \
3110 libudev_core_la_LIBADD = \
3111 libudev-internal.la \
3112 libsystemd-label.la \
3113 libsystemd-internal.la \
3114 libsystemd-network.la \
3115 libsystemd-shared.la \
3119 libudev_core_la_CPPFLAGS = \
3121 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
3124 libudev_core_la_SOURCES += \
3125 src/udev/udev-builtin-firmware.c
3127 dist_udevrules_DATA += \
3128 rules/50-firmware.rules
3132 libudev_core_la_SOURCES += \
3133 src/udev/udev-builtin-kmod.c
3135 dist_udevrules_DATA += \
3136 rules/80-drivers.rules
3140 libudev_core_la_SOURCES += \
3141 src/udev/udev-builtin-blkid.c
3145 libudev_core_la_SOURCES += \
3146 src/udev/udev-builtin-uaccess.c \
3147 src/login/logind-acl.c \
3148 src/libsystemd/sd-login/sd-login.c \
3149 src/systemd/sd-login.h
3151 libudev_core_la_LIBADD += \
3155 systemd_udevd_SOURCES = \
3158 systemd_udevd_LDADD = \
3162 src/udev/udevadm.c \
3163 src/udev/udevadm-info.c \
3164 src/udev/udevadm-control.c \
3165 src/udev/udevadm-monitor.c \
3166 src/udev/udevadm-hwdb.c \
3167 src/udev/udevadm-settle.c \
3168 src/udev/udevadm-trigger.c \
3169 src/udev/udevadm-test.c \
3170 src/udev/udevadm-test-builtin.c
3175 # Update hwdb on installation. Do not bother if installing
3176 # in DESTDIR, since this is likely for packaging purposes.
3178 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3180 INSTALL_DATA_HOOKS += \
3184 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3186 # ------------------------------------------------------------------------------
3195 test_libudev_SOURCES = \
3196 src/test/test-libudev.c
3198 test_libudev_LDADD = \
3199 libsystemd-label.la \
3200 libudev-internal.la \
3201 libsystemd-shared.la
3203 test_udev_SOURCES = \
3204 src/test/test-udev.c
3213 test_udev_LDADD += \
3220 # packed sysfs test tree
3222 $(AM_V_at)$(MKDIR_P) $(dir $@)
3223 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3227 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3232 test/rules-test.sh \
3233 test/rule-syntax-check.py
3235 # ------------------------------------------------------------------------------
3237 src/udev/ata_id/ata_id.c
3240 libudev-internal.la \
3241 libsystemd-shared.la
3243 udevlibexec_PROGRAMS += \
3246 # ------------------------------------------------------------------------------
3247 cdrom_id_SOURCES = \
3248 src/udev/cdrom_id/cdrom_id.c
3251 libudev-internal.la \
3252 libsystemd-shared.la
3254 udevlibexec_PROGRAMS += \
3257 dist_udevrules_DATA += \
3258 rules/60-cdrom_id.rules
3260 # ------------------------------------------------------------------------------
3262 src/udev/collect/collect.c
3265 libudev-internal.la \
3266 libsystemd-shared.la
3268 udevlibexec_PROGRAMS += \
3271 # ------------------------------------------------------------------------------
3273 src/udev/scsi_id/scsi_id.c \
3274 src/udev/scsi_id/scsi_serial.c \
3275 src/udev/scsi_id/scsi.h \
3276 src/udev/scsi_id/scsi_id.h
3279 libudev-internal.la \
3280 libsystemd-shared.la
3282 udevlibexec_PROGRAMS += \
3286 src/udev/scsi_id/README
3288 # ------------------------------------------------------------------------------
3290 src/udev/v4l_id/v4l_id.c
3295 udevlibexec_PROGRAMS += \
3298 dist_udevrules_DATA += \
3299 rules/60-persistent-v4l.rules
3301 # ------------------------------------------------------------------------------
3302 accelerometer_SOURCES = \
3303 src/udev/accelerometer/accelerometer.c
3305 accelerometer_LDADD = \
3306 libudev-internal.la -lm \
3307 libsystemd-shared.la
3309 udevlibexec_PROGRAMS += \
3312 dist_udevrules_DATA += \
3313 rules/61-accelerometer.rules
3315 # ------------------------------------------------------------------------------
3322 libgudev_includedir = \
3323 $(includedir)/gudev-1.0/gudev
3325 libgudev_include_HEADERS = \
3327 src/gudev/gudevenums.h \
3328 src/gudev/gudevenumtypes.h \
3329 src/gudev/gudevtypes.h \
3330 src/gudev/gudevclient.h \
3331 src/gudev/gudevdevice.h \
3332 src/gudev/gudevenumerator.h
3334 lib_LTLIBRARIES += libgudev-1.0.la
3336 pkgconfiglib_DATA += \
3337 src/gudev/gudev-1.0.pc
3340 src/gudev/gudev-1.0.pc
3342 libgudev_1_0_la_SOURCES = \
3343 src/gudev/libgudev-1.0.sym \
3344 src/gudev/gudevenums.h \
3345 src/gudev/gudevenumtypes.h \
3346 src/gudev/gudevenumtypes.h\
3347 src/gudev/gudevtypes.h \
3348 src/gudev/gudevclient.h \
3349 src/gudev/gudevclient.c \
3350 src/gudev/gudevdevice.h \
3351 src/gudev/gudevdevice.c \
3352 src/gudev/gudevenumerator.h \
3353 src/gudev/gudevenumerator.c \
3354 src/gudev/gudevprivate.h
3356 nodist_libgudev_1_0_la_SOURCES = \
3357 src/gudev/gudevmarshal.h \
3358 src/gudev/gudevmarshal.c \
3359 src/gudev/gudevenumtypes.h \
3360 src/gudev/gudevenumtypes.c
3363 $(nodist_libgudev_1_0_la_SOURCES)
3365 libgudev_1_0_la_CPPFLAGS = \
3367 -I$(top_builddir)/src\
3368 -I$(top_srcdir)/src\
3369 -I$(top_builddir)/src/gudev \
3370 -I$(top_srcdir)/src/gudev \
3371 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3372 -D_GUDEV_COMPILATION \
3373 -DG_LOG_DOMAIN=\"GUdev\"
3375 libgudev_1_0_la_CFLAGS = \
3377 -fvisibility=default \
3380 libgudev_1_0_la_LIBADD = \
3384 libgudev_1_0_la_LDFLAGS = \
3386 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3389 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3391 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3392 $(AM_V_at)$(MKDIR_P) $(dir $@)
3393 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3395 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3396 $(AM_V_at)$(MKDIR_P) $(dir $@)
3397 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3398 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3400 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3401 $(AM_V_at)$(MKDIR_P) $(dir $@)
3402 $(AM_V_GEN)glib-mkenums --template $^ > $@
3404 if HAVE_INTROSPECTION
3405 -include $(INTROSPECTION_MAKEFILE)
3407 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3409 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3411 src_gudev_GUdev_1_0_gir_CFLAGS = \
3414 -D_GUDEV_COMPILATION \
3415 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3416 -I$(top_srcdir)/src \
3417 -I$(top_builddir)/src \
3418 -I$(top_srcdir)/src/gudev \
3419 -I$(top_builddir)/src/gudev
3421 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3423 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3424 --pkg-export=gudev-1.0 \
3427 src_gudev_GUdev_1_0_gir_FILES = \
3429 src/gudev/gudevtypes.h \
3430 src/gudev/gudevenums.h \
3431 src/gudev/gudevenumtypes.h \
3432 src/gudev/gudevclient.h \
3433 src/gudev/gudevdevice.h \
3434 src/gudev/gudevenumerator.h \
3435 src/gudev/gudevclient.c \
3436 src/gudev/gudevdevice.c \
3437 src/gudev/gudevenumerator.c
3439 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3440 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3442 girdir = $(datadir)/gir-1.0
3444 src/gudev/GUdev-1.0.gir
3446 typelibsdir = $(libdir)/girepository-1.0
3448 src/gudev/GUdev-1.0.typelib
3450 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3451 endif # HAVE_INTROSPECTION
3455 src/gudev/gudev-1.0.pc.in \
3456 src/gudev/gudevmarshal.list \
3457 src/gudev/gudevenumtypes.h.template \
3458 src/gudev/gudevenumtypes.c.template \
3459 src/gudev/gjs-example.js \
3460 src/gudev/seed-example-enum.js \
3461 src/gudev/seed-example.js
3463 # ------------------------------------------------------------------------------
3464 mtd_probe_SOURCES = \
3465 src/udev/mtd_probe/mtd_probe.c \
3466 src/udev/mtd_probe/mtd_probe.h \
3467 src/udev/mtd_probe/probe_smartmedia.c
3469 dist_udevrules_DATA += \
3470 rules/75-probe_mtd.rules
3472 udevlibexec_PROGRAMS += \
3475 # ------------------------------------------------------------------------------
3476 test_id128_SOURCES = \
3477 src/test/test-id128.c
3479 test_id128_LDADD = \
3480 libsystemd-internal.la \
3481 libsystemd-shared.la
3486 # ------------------------------------------------------------------------------
3488 rootlibexec_PROGRAMS += \
3491 systemd_activate_SOURCES = \
3492 src/activate/activate.c
3494 systemd_activate_LDADD = \
3495 libsystemd-label.la \
3496 libsystemd-internal.la \
3497 libsystemd-shared.la
3499 # ------------------------------------------------------------------------------
3500 systemd_journald_SOURCES = \
3501 src/journal/journald.c \
3502 src/journal/journald-server.h
3504 systemd_journald_LDADD = \
3505 libsystemd-journal-core.la \
3506 libsystemd-internal.la \
3507 libsystemd-shared.la
3509 systemd_cat_SOURCES = \
3512 systemd_cat_LDADD = \
3513 libsystemd-journal-core.la
3516 rootlibexec_PROGRAMS += \
3517 systemd-journal-remote
3519 systemd_journal_remote_SOURCES = \
3520 src/journal-remote/journal-remote-parse.h \
3521 src/journal-remote/journal-remote-parse.c \
3522 src/journal-remote/journal-remote-write.h \
3523 src/journal-remote/journal-remote-write.c \
3524 src/journal-remote/journal-remote.h \
3525 src/journal-remote/journal-remote.c
3527 systemd_journal_remote_LDADD = \
3528 libsystemd-internal.la \
3529 libsystemd-journal-core.la
3531 systemd_journal_remote_SOURCES += \
3532 src/journal-remote/microhttpd-util.h \
3533 src/journal-remote/microhttpd-util.c
3535 systemd_journal_remote_CFLAGS = \
3537 $(MICROHTTPD_CFLAGS)
3539 systemd_journal_remote_LDADD += \
3543 systemd_journal_remote_LDADD += \
3546 # systemd-journal-remote make sense mostly with full crypto stack
3547 dist_systemunit_DATA += \
3548 units/systemd-journal-remote.socket
3550 nodist_systemunit_DATA += \
3551 units/systemd-journal-remote.service
3554 units/systemd-journal-remote.service.in
3556 journal-remote-install-hook: journal-install-hook
3557 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3558 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3559 -chmod 755 $(DESTDIR)/var/log/journal/remote
3561 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3565 nodist_pkgsysconf_DATA += \
3566 src/journal-remote/journal-remote.conf
3569 src/journal-remote/journal-remote.conf.in
3572 src/journal-remote/journal-remote.conf
3576 rootlibexec_PROGRAMS += \
3577 systemd-journal-upload
3579 systemd_journal_upload_SOURCES = \
3580 src/journal-remote/journal-upload.h \
3581 src/journal-remote/journal-upload.c \
3582 src/journal-remote/journal-upload-journal.c
3584 systemd_journal_upload_CFLAGS = \
3588 systemd_journal_upload_LDADD = \
3589 libsystemd-core.la \
3590 libsystemd-internal.la \
3591 libsystemd-journal-internal.la \
3592 libsystemd-shared.la \
3595 nodist_systemunit_DATA += \
3596 units/systemd-journal-upload.service
3599 units/systemd-journal-upload.service.in
3601 nodist_pkgsysconf_DATA += \
3602 src/journal-remote/journal-upload.conf
3605 src/journal-remote/journal-upload.conf.in
3608 src/journal-remote/journal-upload.conf
3611 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3612 journalctl_CFLAGS = \
3615 journalctl_SOURCES = \
3616 src/journal/journalctl.c
3618 journalctl_LDADD = \
3619 libsystemd-journal-internal.la \
3620 libsystemd-internal.la \
3621 libsystemd-logs.la \
3622 libsystemd-shared.la
3625 journalctl_LDADD += \
3630 journalctl_SOURCES += \
3631 src/journal/journal-qrcode.c \
3632 src/journal/journal-qrcode.h
3634 journalctl_CFLAGS += \
3637 journalctl_LDADD += \
3641 test_journal_SOURCES = \
3642 src/journal/test-journal.c
3644 test_journal_LDADD = \
3645 libsystemd-journal-core.la
3647 test_journal_send_SOURCES = \
3648 src/journal/test-journal-send.c
3650 test_journal_send_LDADD = \
3651 libsystemd-journal-core.la
3653 test_journal_syslog_SOURCES = \
3654 src/journal/test-journal-syslog.c
3656 test_journal_syslog_LDADD = \
3657 libsystemd-journal-core.la
3659 test_journal_match_SOURCES = \
3660 src/journal/test-journal-match.c
3662 test_journal_match_LDADD = \
3663 libsystemd-journal-core.la
3665 test_journal_enum_SOURCES = \
3666 src/journal/test-journal-enum.c
3668 test_journal_enum_LDADD = \
3669 libsystemd-journal-core.la
3671 test_journal_stream_SOURCES = \
3672 src/journal/test-journal-stream.c
3674 test_journal_stream_LDADD = \
3675 libsystemd-journal-core.la
3677 test_journal_flush_SOURCES = \
3678 src/journal/test-journal-flush.c
3680 test_journal_flush_LDADD = \
3681 libsystemd-journal-core.la
3683 test_journal_init_SOURCES = \
3684 src/journal/test-journal-init.c
3686 test_journal_init_LDADD = \
3687 libsystemd-journal-core.la
3689 test_journal_verify_SOURCES = \
3690 src/journal/test-journal-verify.c
3692 test_journal_verify_LDADD = \
3693 libsystemd-journal-core.la
3695 test_journal_interleaving_SOURCES = \
3696 src/journal/test-journal-interleaving.c
3698 test_journal_interleaving_LDADD = \
3699 libsystemd-journal-core.la
3701 test_mmap_cache_SOURCES = \
3702 src/journal/test-mmap-cache.c
3704 test_mmap_cache_LDADD = \
3705 libsystemd-journal-core.la
3707 test_catalog_SOURCES = \
3708 src/journal/test-catalog.c
3710 test_catalog_CPPFLAGS = \
3712 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3714 test_catalog_LDADD = \
3715 libsystemd-journal-core.la
3717 test_compress_SOURCES = \
3718 src/journal/test-compress.c
3720 test_compress_LDADD = \
3721 libsystemd-journal-internal.la \
3722 libsystemd-shared.la
3724 test_compress_benchmark_SOURCES = \
3725 src/journal/test-compress-benchmark.c
3727 test_compress_benchmark_LDADD = \
3728 libsystemd-journal-internal.la \
3729 libsystemd-shared.la
3731 libsystemd_journal_core_la_SOURCES = \
3732 src/journal/journald-kmsg.c \
3733 src/journal/journald-kmsg.h \
3734 src/journal/journald-syslog.c \
3735 src/journal/journald-syslog.h \
3736 src/journal/journald-stream.c \
3737 src/journal/journald-stream.h \
3738 src/journal/journald-server.c \
3739 src/journal/journald-server.h \
3740 src/journal/journald-console.c \
3741 src/journal/journald-console.h \
3742 src/journal/journald-wall.c \
3743 src/journal/journald-wall.h \
3744 src/journal/journald-native.c \
3745 src/journal/journald-native.h \
3746 src/journal/journald-rate-limit.c \
3747 src/journal/journald-rate-limit.h \
3748 src/journal/journal-internal.h
3750 nodist_libsystemd_journal_core_la_SOURCES = \
3751 src/journal/journald-gperf.c
3753 libsystemd_journal_core_la_LIBADD = \
3754 libsystemd-journal-internal.la \
3755 libudev-internal.la \
3756 libsystemd-capability.la \
3757 libsystemd-label.la \
3758 libsystemd-internal.la \
3759 libsystemd-shared.la
3762 libsystemd_journal_core_la_LIBADD += \
3766 noinst_LTLIBRARIES += \
3767 libsystemd-journal-core.la
3769 journal-install-hook:
3770 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3771 -chown 0:0 $(DESTDIR)/var/log/journal
3772 -chmod 755 $(DESTDIR)/var/log/journal
3773 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3774 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3776 journal-uninstall-hook:
3777 -rmdir $(DESTDIR)/var/log/journal/remote
3778 -rmdir $(DESTDIR)/var/log/journal/
3780 INSTALL_EXEC_HOOKS += journal-install-hook
3781 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3783 # ------------------------------------------------------------------------------
3784 # Update catalog on installation. Do not bother if installing
3785 # in DESTDIR, since this is likely for packaging purposes.
3786 catalog-update-hook:
3787 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3789 INSTALL_DATA_HOOKS += \
3792 catalog-remove-hook:
3793 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3795 UNINSTALL_DATA_HOOKS += \
3804 test-journal-syslog \
3805 test-journal-match \
3806 test-journal-stream \
3808 test-journal-verify \
3809 test-journal-interleaving \
3810 test-journal-flush \
3817 test-compress-benchmark
3820 pkginclude_HEADERS += \
3821 src/systemd/sd-journal.h \
3822 src/systemd/sd-messages.h \
3823 src/systemd/_sd-common.h
3825 libsystemd_journal_internal_la_SOURCES = \
3826 src/journal/sd-journal.c \
3827 src/systemd/sd-journal.h \
3828 src/systemd/_sd-common.h \
3829 src/journal/journal-file.c \
3830 src/journal/journal-file.h \
3831 src/journal/journal-vacuum.c \
3832 src/journal/journal-vacuum.h \
3833 src/journal/journal-verify.c \
3834 src/journal/journal-verify.h \
3835 src/journal/lookup3.c \
3836 src/journal/lookup3.h \
3837 src/journal/journal-send.c \
3838 src/journal/journal-def.h \
3839 src/journal/compress.h \
3840 src/journal/catalog.c \
3841 src/journal/catalog.h \
3842 src/journal/mmap-cache.c \
3843 src/journal/mmap-cache.h
3845 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3846 libsystemd_journal_internal_la_CFLAGS = \
3849 libsystemd_journal_internal_la_LIBADD =
3851 libsystemd_journal_internal_la_SOURCES += \
3852 src/journal/compress.c
3855 libsystemd_journal_internal_la_CFLAGS += \
3858 libsystemd_journal_internal_la_LIBADD += \
3863 libsystemd_journal_internal_la_LIBADD += \
3868 libsystemd_journal_internal_la_SOURCES += \
3869 src/journal/journal-authenticate.c \
3870 src/journal/journal-authenticate.h \
3871 src/journal/fsprg.c \
3874 libsystemd_journal_internal_la_LIBADD += \
3877 # fsprg.c is a drop-in file using void pointer arithmetic
3878 libsystemd_journal_internal_la_CFLAGS += \
3883 noinst_LTLIBRARIES += \
3884 libsystemd-journal-internal.la
3886 rootlibexec_PROGRAMS += \
3889 rootbin_PROGRAMS += \
3895 dist_systemunit_DATA += \
3896 units/systemd-journald.socket \
3897 units/systemd-journald-dev-log.socket
3899 nodist_systemunit_DATA += \
3900 units/systemd-journald.service \
3901 units/systemd-journal-flush.service \
3902 units/systemd-journal-catalog-update.service
3904 dist_pkgsysconf_DATA += \
3905 src/journal/journald.conf
3907 dist_catalog_DATA = \
3908 catalog/systemd.fr.catalog \
3909 catalog/systemd.ru.catalog \
3910 catalog/systemd.it.catalog \
3911 catalog/systemd.catalog
3913 SOCKETS_TARGET_WANTS += \
3914 systemd-journald.socket \
3915 systemd-journald-dev-log.socket
3917 SYSINIT_TARGET_WANTS += \
3918 systemd-journald.service \
3919 systemd-journal-flush.service \
3920 systemd-journal-catalog-update.service
3923 units/systemd-journald.service.in \
3924 units/systemd-journal-flush.service.in \
3925 units/systemd-journal-catalog-update.service.in \
3926 src/journal/journald-gperf.gperf
3929 src/journal/journald-gperf.c
3931 # ------------------------------------------------------------------------------
3933 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3935 rootlibexec_PROGRAMS += \
3936 systemd-journal-gatewayd
3938 systemd_journal_gatewayd_SOURCES = \
3939 src/journal-remote/journal-gatewayd.c \
3940 src/journal-remote/microhttpd-util.h \
3941 src/journal-remote/microhttpd-util.c
3943 systemd_journal_gatewayd_LDADD = \
3944 libsystemd-logs.la \
3945 libsystemd-journal-internal.la \
3946 libsystemd-internal.la \
3947 libsystemd-shared.la \
3951 systemd_journal_gatewayd_LDADD += \
3955 systemd_journal_gatewayd_CFLAGS = \
3957 $(MICROHTTPD_CFLAGS)
3959 systemd_journal_gatewayd_CPPFLAGS = \
3961 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3963 dist_systemunit_DATA += \
3964 units/systemd-journal-gatewayd.socket
3966 nodist_systemunit_DATA += \
3967 units/systemd-journal-gatewayd.service
3969 dist_gatewayddocumentroot_DATA = \
3970 src/journal-remote/browse.html
3975 units/systemd-journal-gatewayd.service.in
3977 # ------------------------------------------------------------------------------
3979 systemd_socket_proxyd_SOURCES = \
3980 src/socket-proxy/socket-proxyd.c
3982 systemd_socket_proxyd_LDADD = \
3983 libsystemd-logs.la \
3984 libsystemd-internal.la \
3985 libsystemd-journal-internal.la \
3986 libsystemd-shared.la \
3987 libsystemd-resolve.la
3989 # ------------------------------------------------------------------------------
3991 systemd_coredump_SOURCES = \
3992 src/journal/coredump.c \
3993 src/journal/coredump-vacuum.c \
3994 src/journal/coredump-vacuum.h
3996 systemd_coredump_LDADD = \
3997 libsystemd-journal-internal.la \
3998 libsystemd-label.la \
3999 libsystemd-internal.la \
4000 libsystemd-shared.la
4003 systemd_coredump_SOURCES += \
4004 src/journal/stacktrace.c \
4005 src/journal/stacktrace.h
4007 systemd_coredump_LDADD += \
4011 rootlibexec_PROGRAMS += \
4014 dist_pkgsysconf_DATA += \
4015 src/journal/coredump.conf
4018 systemd_coredump_LDADD += \
4022 coredumpctl_SOURCES = \
4023 src/journal/coredumpctl.c
4025 coredumpctl_LDADD = \
4026 libsystemd-journal-internal.la \
4027 libsystemd-internal.la \
4028 libsystemd-shared.la
4034 test-coredump-vacuum
4036 test_coredump_vacuum_SOURCES = \
4037 src/journal/test-coredump-vacuum.c \
4038 src/journal/coredump-vacuum.c \
4039 src/journal/coredump-vacuum.h
4041 test_coredump_vacuum_LDADD = \
4042 libsystemd-internal.la \
4043 libsystemd-shared.la
4045 dist_bashcompletion_DATA += \
4046 shell-completion/bash/coredumpctl
4048 dist_zshcompletion_DATA += \
4049 shell-completion/zsh/_coredumpctl
4051 GENERAL_ALIASES += \
4052 $(bindir)/coredumpctl $(bindir)/systemd-coredumpctl
4055 sysctl.d/50-coredump.conf
4058 sysctl.d/50-coredump.conf
4062 sysctl.d/50-coredump.conf.in
4064 # ------------------------------------------------------------------------------
4066 systemd_binfmt_SOURCES = \
4069 systemd_binfmt_LDADD = \
4070 libsystemd-shared.la
4072 rootlibexec_PROGRAMS += \
4075 dist_systemunit_DATA += \
4076 units/proc-sys-fs-binfmt_misc.automount \
4077 units/proc-sys-fs-binfmt_misc.mount
4079 nodist_systemunit_DATA += \
4080 units/systemd-binfmt.service
4083 $(prefix)/lib/binfmt.d \
4084 $(sysconfdir)/binfmt.d
4086 SYSINIT_TARGET_WANTS += \
4087 systemd-binfmt.service \
4088 proc-sys-fs-binfmt_misc.automount
4093 units/systemd-binfmt.service.in
4095 # ------------------------------------------------------------------------------
4097 systemd_vconsole_setup_SOURCES = \
4098 src/vconsole/vconsole-setup.c
4100 systemd_vconsole_setup_LDADD = \
4101 libsystemd-shared.la
4103 rootlibexec_PROGRAMS += \
4104 systemd-vconsole-setup
4106 nodist_systemunit_DATA += \
4107 units/systemd-vconsole-setup.service
4109 SYSINIT_TARGET_WANTS += \
4110 systemd-vconsole-setup.service
4114 units/systemd-vconsole-setup.service.in
4116 # ------------------------------------------------------------------------------
4118 systemd_readahead_SOURCES = \
4119 src/readahead/readahead.c \
4120 src/readahead/readahead-collect.c \
4121 src/readahead/readahead-replay.c \
4122 src/readahead/readahead-analyze.c \
4123 src/readahead/readahead-common.c \
4124 src/readahead/readahead-common.h
4126 systemd_readahead_LDADD = \
4127 libsystemd-internal.la \
4128 libudev-internal.la \
4129 libsystemd-shared.la
4132 src/readahead/sd-readahead.c \
4133 src/systemd/sd-readahead.h
4135 rootlibexec_PROGRAMS += \
4138 dist_systemunit_DATA += \
4139 units/systemd-readahead-drop.service \
4140 units/systemd-readahead-done.timer
4142 nodist_systemunit_DATA += \
4143 units/systemd-readahead-collect.service \
4144 units/systemd-readahead-replay.service \
4145 units/systemd-readahead-done.service
4150 test_ssd_SOURCES = \
4151 src/readahead/test-ssd.c \
4152 src/readahead/readahead-common.c \
4153 src/readahead/readahead-common.h
4156 libsystemd-internal.la \
4157 libudev-internal.la \
4158 libsystemd-shared.la
4163 units/systemd-readahead-collect.service.in \
4164 units/systemd-readahead-replay.service.in \
4165 units/systemd-readahead-done.service.in
4167 # ------------------------------------------------------------------------------
4169 systemd_bootchart_SOURCES = \
4170 src/bootchart/bootchart.c \
4171 src/bootchart/bootchart.h \
4172 src/bootchart/store.c \
4173 src/bootchart/store.h \
4174 src/bootchart/svg.c \
4177 systemd_bootchart_LDADD = \
4178 libsystemd-journal-internal.la \
4179 libsystemd-shared.la
4181 rootlibexec_PROGRAMS += \
4184 dist_pkgsysconf_DATA += \
4185 src/bootchart/bootchart.conf
4188 # ------------------------------------------------------------------------------
4189 if ENABLE_QUOTACHECK
4190 rootlibexec_PROGRAMS += \
4193 nodist_systemunit_DATA += \
4194 units/systemd-quotacheck.service
4196 systemd_quotacheck_SOURCES = \
4197 src/quotacheck/quotacheck.c
4199 systemd_quotacheck_LDADD = \
4200 libsystemd-shared.la
4204 units/systemd-quotacheck.service.in
4206 nodist_systemunit_DATA += \
4207 units/quotaon.service
4209 # ------------------------------------------------------------------------------
4210 if ENABLE_RANDOMSEED
4211 rootlibexec_PROGRAMS += \
4214 nodist_systemunit_DATA += \
4215 units/systemd-random-seed.service
4217 systemd_random_seed_SOURCES = \
4218 src/random-seed/random-seed.c
4220 systemd_random_seed_LDADD = \
4221 libsystemd-label.la \
4222 libsystemd-shared.la
4224 SYSINIT_TARGET_WANTS += \
4225 systemd-random-seed.service
4230 units/systemd-random-seed.service.in
4232 # ------------------------------------------------------------------------------
4234 rootlibexec_PROGRAMS += \
4237 nodist_systemunit_DATA += \
4238 units/systemd-backlight@.service
4240 systemd_backlight_SOURCES = \
4241 src/backlight/backlight.c
4243 systemd_backlight_LDADD = \
4244 libsystemd-label.la \
4245 libudev-internal.la \
4246 libsystemd-shared.la
4250 units/systemd-backlight@.service.in
4252 # ------------------------------------------------------------------------------
4254 rootlibexec_PROGRAMS += \
4257 nodist_systemunit_DATA += \
4258 units/systemd-rfkill@.service
4260 systemd_rfkill_SOURCES = \
4263 systemd_rfkill_LDADD = \
4264 libsystemd-label.la \
4265 libudev-internal.la \
4266 libsystemd-shared.la
4270 units/systemd-rfkill@.service.in
4272 # ------------------------------------------------------------------------------
4273 if HAVE_LIBCRYPTSETUP
4274 rootlibexec_PROGRAMS += \
4277 systemgenerator_PROGRAMS += \
4278 systemd-cryptsetup-generator
4280 dist_systemunit_DATA += \
4281 units/cryptsetup.target \
4282 units/cryptsetup-pre.target
4284 systemd_cryptsetup_SOURCES = \
4285 src/cryptsetup/cryptsetup.c
4287 systemd_cryptsetup_CFLAGS = \
4289 $(LIBCRYPTSETUP_CFLAGS)
4291 systemd_cryptsetup_LDADD = \
4292 libsystemd-label.la \
4293 libudev-internal.la \
4294 libsystemd-shared.la \
4295 $(LIBCRYPTSETUP_LIBS)
4297 systemd_cryptsetup_generator_SOURCES = \
4298 src/cryptsetup/cryptsetup-generator.c
4300 systemd_cryptsetup_generator_LDADD = \
4301 libsystemd-label.la \
4302 libsystemd-shared.la
4304 SYSINIT_TARGET_WANTS += \
4309 # ------------------------------------------------------------------------------
4311 systemd_hostnamed_SOURCES = \
4312 src/hostname/hostnamed.c
4314 systemd_hostnamed_LDADD = \
4315 libsystemd-label.la \
4316 libsystemd-internal.la \
4317 libsystemd-shared.la
4319 rootlibexec_PROGRAMS += \
4322 nodist_systemunit_DATA += \
4323 units/systemd-hostnamed.service
4325 dist_systemunit_DATA += \
4326 units/org.freedesktop.hostname1.busname
4328 dist_dbuspolicy_DATA += \
4329 src/hostname/org.freedesktop.hostname1.conf
4331 dist_dbussystemservice_DATA += \
4332 src/hostname/org.freedesktop.hostname1.service
4334 polkitpolicy_files += \
4335 src/hostname/org.freedesktop.hostname1.policy
4337 SYSTEM_UNIT_ALIASES += \
4338 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4340 BUSNAMES_TARGET_WANTS += \
4341 org.freedesktop.hostname1.busname
4343 hostnamectl_SOURCES = \
4344 src/hostname/hostnamectl.c
4346 hostnamectl_LDADD = \
4347 libsystemd-internal.la \
4348 libsystemd-shared.la
4353 dist_bashcompletion_DATA += \
4354 shell-completion/bash/hostnamectl
4356 dist_zshcompletion_DATA += \
4357 shell-completion/zsh/_hostnamectl
4361 polkitpolicy_in_files += \
4362 src/hostname/org.freedesktop.hostname1.policy.in
4365 units/systemd-hostnamed.service.in
4367 # ------------------------------------------------------------------------------
4369 dist_systemunit_DATA += \
4370 units/org.freedesktop.systemd1.busname
4372 BUSNAMES_TARGET_WANTS += \
4373 org.freedesktop.systemd1.busname
4376 # ------------------------------------------------------------------------------
4378 systemd_localed_SOURCES = \
4379 src/locale/localed.c
4381 systemd_localed_LDADD = \
4382 libsystemd-label.la \
4383 libsystemd-internal.la \
4384 libsystemd-shared.la
4386 nodist_systemunit_DATA += \
4387 units/systemd-localed.service
4389 dist_systemunit_DATA += \
4390 units/org.freedesktop.locale1.busname
4392 rootlibexec_PROGRAMS += \
4395 dist_dbuspolicy_DATA += \
4396 src/locale/org.freedesktop.locale1.conf
4398 dist_dbussystemservice_DATA += \
4399 src/locale/org.freedesktop.locale1.service
4401 polkitpolicy_files += \
4402 src/locale/org.freedesktop.locale1.policy
4404 SYSTEM_UNIT_ALIASES += \
4405 systemd-localed.service dbus-org.freedesktop.locale1.service
4407 BUSNAMES_TARGET_WANTS += \
4408 org.freedesktop.locale1.busname
4410 dist_pkgdata_DATA += \
4411 src/locale/kbd-model-map
4413 dist_noinst_SCRIPT = \
4414 src/locale/generate-kbd-model-map
4416 update-kbd-model-map: src/locale/generate-kbd-model-map
4417 $PYTHON $< >src/locale/kbd-model-map
4419 localectl_SOURCES = \
4420 src/locale/localectl.c
4423 libsystemd-internal.la \
4424 libsystemd-shared.la
4429 dist_bashcompletion_DATA += \
4430 shell-completion/bash/localectl
4432 dist_zshcompletion_DATA += \
4433 shell-completion/zsh/_localectl
4437 .PHONY: update-kbd-model-map
4439 polkitpolicy_in_files += \
4440 src/locale/org.freedesktop.locale1.policy.in
4443 units/systemd-localed.service.in
4445 # ------------------------------------------------------------------------------
4447 systemd_timedated_SOURCES = \
4448 src/timedate/timedated.c
4450 systemd_timedated_LDADD = \
4451 libsystemd-label.la \
4452 libsystemd-internal.la \
4453 libsystemd-shared.la
4455 rootlibexec_PROGRAMS += \
4458 dist_dbussystemservice_DATA += \
4459 src/timedate/org.freedesktop.timedate1.service
4461 dist_dbuspolicy_DATA += \
4462 src/timedate/org.freedesktop.timedate1.conf
4464 nodist_systemunit_DATA += \
4465 units/systemd-timedated.service
4467 dist_systemunit_DATA += \
4468 units/org.freedesktop.timedate1.busname
4470 polkitpolicy_files += \
4471 src/timedate/org.freedesktop.timedate1.policy
4473 SYSTEM_UNIT_ALIASES += \
4474 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4476 BUSNAMES_TARGET_WANTS += \
4477 org.freedesktop.timedate1.busname
4479 timedatectl_SOURCES = \
4480 src/timedate/timedatectl.c
4482 timedatectl_LDADD = \
4483 libsystemd-internal.la \
4484 libsystemd-shared.la
4489 dist_bashcompletion_DATA += \
4490 shell-completion/bash/timedatectl
4492 dist_zshcompletion_DATA += \
4493 shell-completion/zsh/_timedatectl
4496 polkitpolicy_in_files += \
4497 src/timedate/org.freedesktop.timedate1.policy.in
4500 units/systemd-timedated.service.in
4502 # ------------------------------------------------------------------------------
4504 systemd_timesyncd_SOURCES = \
4505 src/timesync/timesyncd.c \
4506 src/timesync/timesyncd.h
4508 nodist_systemd_timesyncd_SOURCES = \
4509 src/timesync/timesyncd-gperf.c
4512 src/timesync/timesyncd-gperf.gperf
4515 src/timesync/timesyncd-gperf.c
4517 systemd_timesyncd_LDADD = \
4518 libsystemd-resolve.la \
4519 libsystemd-network.la \
4520 libsystemd-label.la \
4521 libsystemd-capability.la \
4522 libsystemd-internal.la \
4523 libsystemd-shared.la \
4526 rootlibexec_PROGRAMS += \
4529 nodist_systemunit_DATA += \
4530 units/systemd-timesyncd.service
4532 GENERAL_ALIASES += \
4533 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-timesyncd.service
4536 units/systemd-timesyncd.service.in
4538 nodist_pkgsysconf_DATA += \
4539 src/timesync/timesyncd.conf
4542 src/timesync/timesyncd.conf.in
4545 src/timesync/timesyncd.conf
4548 # ------------------------------------------------------------------------------
4550 libnss_myhostname_la_SOURCES = \
4551 src/nss-myhostname/nss-myhostname.sym \
4552 src/nss-myhostname/nss-myhostname.c
4554 libnss_myhostname_la_LDFLAGS = \
4561 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4563 libnss_myhostname_la_LIBADD = \
4564 libsystemd-shared.la \
4565 libsystemd-internal.la
4567 lib_LTLIBRARIES += \
4568 libnss_myhostname.la
4571 # ------------------------------------------------------------------------------
4573 systemd_machined_SOURCES = \
4574 src/machine/machined.c \
4575 src/machine/machined.h
4577 systemd_machined_LDADD = \
4578 libsystemd-machine-core.la
4580 rootlibexec_PROGRAMS += \
4583 libsystemd_machine_core_la_SOURCES = \
4584 src/machine/machined-dbus.c \
4585 src/machine/machine.c \
4586 src/machine/machine.h \
4587 src/machine/machine-dbus.c
4589 libsystemd_machine_core_la_LIBADD = \
4590 libsystemd-label.la \
4591 libsystemd-internal.la \
4592 libudev-internal.la \
4593 libsystemd-shared.la
4595 noinst_LTLIBRARIES += \
4596 libsystemd-machine-core.la
4598 machinectl_SOURCES = \
4599 src/machine/machinectl.c
4601 machinectl_LDADD = \
4602 libsystemd-internal.la \
4603 libsystemd-shared.la
4605 rootbin_PROGRAMS += \
4608 dist_bashcompletion_DATA += \
4609 shell-completion/bash/machinectl
4611 test_machine_tables_SOURCES = \
4612 src/machine/test-machine-tables.c
4614 test_machine_tables_LDADD = \
4615 libsystemd-machine-core.la
4620 nodist_systemunit_DATA += \
4621 units/systemd-machined.service
4623 dist_systemunit_DATA += \
4624 units/machine.slice \
4625 units/org.freedesktop.machine1.busname
4627 dist_dbussystemservice_DATA += \
4628 src/machine/org.freedesktop.machine1.service
4630 dist_dbuspolicy_DATA += \
4631 src/machine/org.freedesktop.machine1.conf
4633 dist_zshcompletion_DATA += \
4634 shell-completion/zsh/_machinectl \
4635 shell-completion/zsh/_sd_machines
4637 SYSTEM_UNIT_ALIASES += \
4638 systemd-machined.service dbus-org.freedesktop.machine1.service
4640 BUSNAMES_TARGET_WANTS += \
4641 org.freedesktop.machine1.busname
4644 units/systemd-machined.service.in
4646 libnss_mymachines_la_SOURCES = \
4647 src/nss-mymachines/nss-mymachines.sym \
4648 src/nss-mymachines/nss-mymachines.c
4650 libnss_mymachines_la_LDFLAGS = \
4657 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4659 libnss_mymachines_la_LIBADD = \
4660 libsystemd-shared.la \
4661 libsystemd-internal.la
4663 lib_LTLIBRARIES += \
4664 libnss_mymachines.la
4667 # ------------------------------------------------------------------------------
4669 systemd_resolved_SOURCES = \
4670 src/resolve/resolved.h \
4671 src/resolve/resolved.c \
4672 src/resolve/resolved-manager.c \
4673 src/resolve/resolved-bus.c \
4674 src/resolve/resolved-link.h \
4675 src/resolve/resolved-link.c \
4676 src/resolve/resolved-dns-domain.h \
4677 src/resolve/resolved-dns-domain.c \
4678 src/resolve/resolved-dns-packet.h \
4679 src/resolve/resolved-dns-packet.c \
4680 src/resolve/resolved-dns-query.h \
4681 src/resolve/resolved-dns-query.c \
4682 src/resolve/resolved-dns-scope.h \
4683 src/resolve/resolved-dns-scope.c \
4684 src/resolve/resolved-dns-server.h \
4685 src/resolve/resolved-dns-server.c \
4686 src/resolve/resolved-dns-rr.h \
4687 src/resolve/resolved-dns-rr.c \
4688 src/resolve/resolved-dns-cache.h \
4689 src/resolve/resolved-dns-cache.c
4691 nodist_systemd_resolved_SOURCES = \
4692 src/resolve/resolved-gperf.c
4695 src/resolve/resolved-gperf.gperf
4698 src/resolve/resolved-gperf.c
4700 systemd_resolved_LDADD = \
4701 libsystemd-capability.la \
4702 libsystemd-network.la \
4703 libsystemd-label.la \
4704 libsystemd-internal.la \
4705 libsystemd-shared.la
4707 rootlibexec_PROGRAMS += \
4710 nodist_systemunit_DATA += \
4711 units/systemd-resolved.service
4713 dist_systemunit_DATA += \
4714 units/org.freedesktop.resolve1.busname
4716 dist_dbuspolicy_DATA += \
4717 src/resolve/org.freedesktop.resolve1.conf
4719 dist_dbussystemservice_DATA += \
4720 src/resolve/org.freedesktop.resolve1.service
4723 units/systemd-resolved.service.in
4725 SYSTEM_UNIT_ALIASES += \
4726 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4728 BUSNAMES_TARGET_WANTS += \
4729 org.freedesktop.resolve1.busname
4731 GENERAL_ALIASES += \
4732 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4734 nodist_pkgsysconf_DATA += \
4735 src/resolve/resolved.conf
4738 src/resolve/resolved.conf.in
4741 src/resolve/resolved.conf
4746 test_dns_domain_SOURCES = \
4747 src/resolve/resolved-dns-domain.h \
4748 src/resolve/resolved-dns-domain.c \
4749 src/resolve/test-dns-domain.c
4751 test_dns_domain_LDADD = \
4752 libsystemd-capability.la \
4753 libsystemd-network.la \
4754 libsystemd-label.la \
4755 libsystemd-internal.la \
4756 libsystemd-shared.la
4758 libnss_resolve_la_SOURCES = \
4759 src/nss-resolve/nss-resolve.sym \
4760 src/nss-resolve/nss-resolve.c
4762 libnss_resolve_la_LDFLAGS = \
4769 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
4771 libnss_resolve_la_LIBADD = \
4772 libsystemd-shared.la \
4773 libsystemd-internal.la
4775 lib_LTLIBRARIES += \
4780 # ------------------------------------------------------------------------------
4782 rootlibexec_PROGRAMS += \
4785 systemd_networkd_SOURCES = \
4786 src/network/networkd.c
4788 systemd_networkd_LDADD = \
4789 libsystemd-networkd-core.la \
4790 libsystemd-capability.la
4792 noinst_LTLIBRARIES += \
4793 libsystemd-networkd-core.la
4795 libsystemd_networkd_core_la_CFLAGS = \
4798 libsystemd_networkd_core_la_SOURCES = \
4799 src/libsystemd-network/network-internal.h \
4800 src/network/networkd.h \
4801 src/network/networkd-netdev.h \
4802 src/network/networkd-netdev-tunnel.h \
4803 src/network/networkd-netdev-veth.h \
4804 src/network/networkd-netdev-vxlan.h \
4805 src/network/networkd-netdev-vlan.h \
4806 src/network/networkd-netdev-macvlan.h \
4807 src/network/networkd-netdev-dummy.h \
4808 src/network/networkd-netdev-tuntap.h \
4809 src/network/networkd-netdev-bond.h \
4810 src/network/networkd-netdev-bridge.h \
4811 src/network/networkd-netdev.c \
4812 src/network/networkd-netdev-tunnel.c \
4813 src/network/networkd-netdev-veth.c \
4814 src/network/networkd-netdev-vxlan.c \
4815 src/network/networkd-netdev-vlan.c \
4816 src/network/networkd-netdev-macvlan.c \
4817 src/network/networkd-netdev-dummy.c \
4818 src/network/networkd-netdev-tuntap.c \
4819 src/network/networkd-netdev-bond.c \
4820 src/network/networkd-netdev-bridge.c \
4821 src/network/networkd-link.c \
4822 src/network/networkd-network.c \
4823 src/network/networkd-address.c \
4824 src/network/networkd-route.c \
4825 src/network/networkd-manager.c \
4826 src/network/networkd-address-pool.c
4828 nodist_libsystemd_networkd_core_la_SOURCES = \
4829 src/network/networkd-network-gperf.c \
4830 src/network/networkd-netdev-gperf.c
4832 libsystemd_networkd_core_la_LIBADD = \
4833 libudev-internal.la \
4834 libsystemd-internal.la \
4835 libsystemd-network.la \
4836 libsystemd-label.la \
4837 libsystemd-shared.la
4839 rootlibexec_PROGRAMS += \
4840 systemd-networkd-wait-online
4842 systemd_networkd_wait_online_CFLAGS = \
4845 systemd_networkd_wait_online_SOURCES = \
4846 src/libsystemd-network/network-internal.h \
4847 src/network/networkd-wait-online.h \
4848 src/network/networkd-wait-online-link.h \
4849 src/network/networkd-wait-online.c \
4850 src/network/networkd-wait-online-manager.c \
4851 src/network/networkd-wait-online-link.c
4853 systemd_networkd_wait_online_LDADD = \
4854 libsystemd-network.la \
4855 libudev-internal.la \
4856 libsystemd-internal.la \
4857 libsystemd-shared.la
4859 test_network_SOURCES = \
4860 src/network/test-network.c
4862 test_network_CFLAGS = \
4865 test_network_LDADD = \
4866 libsystemd-networkd-core.la
4868 test_network_tables_SOURCES = \
4869 src/network/test-network-tables.c \
4870 src/shared/test-tables.h
4872 test_network_tables_LDADD = \
4873 libsystemd-networkd-core.la \
4880 nodist_systemunit_DATA += \
4881 units/systemd-networkd.service \
4882 units/systemd-networkd-wait-online.service
4884 GENERAL_ALIASES += \
4885 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4886 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4889 src/network/networkd-network-gperf.gperf \
4890 src/network/networkd-netdev-gperf.gperf \
4891 units/systemd-networkd.service.in \
4892 units/systemd-networkd-wait-online.service.in
4895 src/network/networkd-network-gperf.c \
4896 src/network/networkd-netdev-gperf.c
4899 # ------------------------------------------------------------------------------
4901 systemd_logind_SOURCES = \
4902 src/login/logind.c \
4905 nodist_systemd_logind_SOURCES = \
4906 src/login/logind-gperf.c
4908 systemd_logind_LDADD = \
4909 libsystemd-logind-core.la
4911 libsystemd_logind_core_la_SOURCES = \
4912 src/login/logind-core.c \
4913 src/login/logind-device.c \
4914 src/login/logind-device.h \
4915 src/login/logind-button.c \
4916 src/login/logind-button.h \
4917 src/login/logind-action.c \
4918 src/login/logind-action.h \
4919 src/login/logind-seat.c \
4920 src/login/logind-seat.h \
4921 src/login/logind-session.c \
4922 src/login/logind-session.h \
4923 src/login/logind-session-device.c \
4924 src/login/logind-session-device.h \
4925 src/login/logind-user.c \
4926 src/login/logind-user.h \
4927 src/login/logind-inhibit.c \
4928 src/login/logind-inhibit.h \
4929 src/login/logind-dbus.c \
4930 src/login/logind-session-dbus.c \
4931 src/login/logind-seat-dbus.c \
4932 src/login/logind-user-dbus.c \
4933 src/login/logind-acl.h
4935 libsystemd_logind_core_la_LIBADD = \
4936 libsystemd-label.la \
4937 libsystemd-capability.la \
4938 libsystemd-internal.la \
4939 libudev-internal.la \
4940 libsystemd-shared.la
4943 libsystemd_logind_core_la_SOURCES += \
4944 src/login/logind-acl.c
4946 libsystemd_logind_core_la_LIBADD += \
4950 noinst_LTLIBRARIES += \
4951 libsystemd-logind-core.la
4953 systemd_user_sessions_SOURCES = \
4954 src/login/user-sessions.c
4956 systemd_user_sessions_LDADD = \
4957 libsystemd-shared.la
4959 rootlibexec_PROGRAMS += \
4961 systemd-user-sessions
4963 loginctl_SOURCES = \
4964 src/login/loginctl.c \
4965 src/login/sysfs-show.c
4968 libsystemd-internal.la \
4969 libudev-internal.la \
4970 libsystemd-shared.la
4972 rootbin_PROGRAMS += \
4975 dist_bashcompletion_DATA += \
4976 shell-completion/bash/loginctl
4978 dist_zshcompletion_DATA += \
4979 shell-completion/zsh/_loginctl \
4980 shell-completion/zsh/_systemd-inhibit
4982 systemd_inhibit_SOURCES = \
4985 systemd_inhibit_LDADD = \
4986 libsystemd-internal.la \
4987 libsystemd-shared.la
4989 rootbin_PROGRAMS += \
4992 test_login_SOURCES = \
4993 src/libsystemd/sd-login/test-login.c
4995 test_login_LDADD = \
4996 libsystemd-internal.la \
4997 libsystemd-shared.la
4999 test_login_shared_SOURCES = \
5000 src/login/test-login-shared.c
5002 test_login_shared_LDADD = \
5003 libsystemd-internal.la \
5004 libsystemd-shared.la
5006 test_inhibit_SOURCES = \
5007 src/login/test-inhibit.c
5009 test_inhibit_LDADD = \
5010 libsystemd-internal.la \
5011 libsystemd-shared.la
5013 test_login_tables_SOURCES = \
5014 src/login/test-login-tables.c
5016 test_login_tables_LDADD = \
5017 libsystemd-logind-core.la
5028 pam_systemd_la_SOURCES = \
5029 src/login/pam_systemd.sym \
5030 src/login/pam_systemd.c
5032 pam_systemd_la_CFLAGS = \
5037 pam_systemd_la_LDFLAGS = \
5043 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5045 pam_systemd_la_LIBADD = \
5046 libsystemd-capability.la \
5047 libsystemd-internal.la \
5048 libsystemd-shared.la \
5051 pamlib_LTLIBRARIES = \
5054 dist_pamconf_DATA = \
5055 src/login/systemd-user
5058 nodist_systemunit_DATA += \
5059 units/systemd-logind.service \
5060 units/systemd-user-sessions.service
5062 dist_systemunit_DATA += \
5064 units/org.freedesktop.login1.busname
5066 dist_dbussystemservice_DATA += \
5067 src/login/org.freedesktop.login1.service
5069 dist_dbuspolicy_DATA += \
5070 src/login/org.freedesktop.login1.conf
5072 dist_pkgsysconf_DATA += \
5073 src/login/logind.conf
5075 polkitpolicy_files += \
5076 src/login/org.freedesktop.login1.policy
5081 MULTI_USER_TARGET_WANTS += \
5082 systemd-logind.service \
5083 systemd-user-sessions.service
5085 SYSTEM_UNIT_ALIASES += \
5086 systemd-logind.service dbus-org.freedesktop.login1.service
5088 BUSNAMES_TARGET_WANTS += \
5089 org.freedesktop.login1.busname
5091 if ENABLE_MULTI_SEAT_X
5093 systemd_multi_seat_x_SOURCES = \
5094 src/login/multi-seat-x.c
5096 systemd_multi_seat_x_LDADD = \
5097 libsystemd-label.la \
5098 libsystemd-shared.la
5100 rootlibexec_PROGRAMS += \
5101 systemd-multi-seat-x
5105 dist_udevrules_DATA += \
5106 src/login/70-uaccess.rules \
5107 src/login/70-power-switch.rules
5109 nodist_udevrules_DATA += \
5110 src/login/71-seat.rules \
5111 src/login/73-seat-late.rules
5114 src/login/logind-gperf.c \
5115 src/login/71-seat.rules \
5116 src/login/73-seat-late.rules
5119 polkitpolicy_in_files += \
5120 src/login/org.freedesktop.login1.policy.in
5123 src/login/logind-gperf.gperf \
5124 src/login/71-seat.rules.in \
5125 src/login/73-seat-late.rules.in \
5126 units/systemd-logind.service.in \
5127 units/systemd-user-sessions.service.in
5129 # ------------------------------------------------------------------------------
5130 if HAVE_PYTHON_DEVEL
5131 pkgpyexec_LTLIBRARIES = \
5138 _journal_la_SOURCES = \
5139 src/python-systemd/_journal.c
5141 _journal_la_CFLAGS = \
5143 -fvisibility=default \
5144 $(PYTHON_DEVEL_CFLAGS)
5146 _journal_la_LDFLAGS = \
5152 _journal_la_LIBADD = \
5153 $(PYTHON_DEVEL_LIBS) \
5156 id128_la_SOURCES = \
5157 src/python-systemd/id128.c \
5158 src/python-systemd/pyutil.c \
5159 src/python-systemd/pyutil.h
5161 nodist_id128_la_SOURCES = \
5162 src/python-systemd/id128-constants.h
5166 -fvisibility=default \
5167 $(PYTHON_DEVEL_CFLAGS) \
5168 -I$(top_builddir)/src/python-systemd
5170 id128_la_LDFLAGS = \
5177 $(PYTHON_DEVEL_LIBS) \
5178 libsystemd-shared.la \
5181 _daemon_la_SOURCES = \
5182 src/python-systemd/_daemon.c \
5183 src/python-systemd/pyutil.c \
5184 src/python-systemd/pyutil.h
5186 _daemon_la_CFLAGS = \
5188 -fvisibility=default \
5189 $(PYTHON_DEVEL_CFLAGS) \
5190 -I$(top_builddir)/src/python-systemd
5192 _daemon_la_LDFLAGS = \
5198 _daemon_la_LIBADD = \
5199 $(PYTHON_DEVEL_LIBS) \
5200 libsystemd-shared.la \
5203 _reader_la_SOURCES = \
5204 src/python-systemd/_reader.c \
5205 src/python-systemd/pyutil.c \
5206 src/python-systemd/pyutil.h
5208 _reader_la_CFLAGS = \
5210 -fvisibility=default \
5211 $(PYTHON_DEVEL_CFLAGS)
5213 _reader_la_LDFLAGS = \
5219 _reader_la_LIBADD = \
5220 $(PYTHON_DEVEL_LIBS) \
5221 libsystemd-shared.la \
5224 login_la_SOURCES = \
5225 src/python-systemd/login.c \
5226 src/python-systemd/pyutil.c \
5227 src/python-systemd/pyutil.h
5231 -fvisibility=default \
5232 $(PYTHON_DEVEL_CFLAGS)
5234 login_la_LDFLAGS = \
5241 $(PYTHON_DEVEL_LIBS) \
5242 libsystemd-shared.la \
5245 dist_pkgpyexec_PYTHON = \
5246 src/python-systemd/journal.py \
5247 src/python-systemd/daemon.py \
5248 src/python-systemd/__init__.py
5250 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5251 $(AM_V_at)$(MKDIR_P) $(dir $@)
5252 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5255 src/python-systemd/id128-constants.h
5257 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5259 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5260 $(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/
5261 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5264 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5265 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5268 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5269 $(MAKE) DESTDIR="$$dir" install && \
5270 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5275 CLEAN_LOCAL_HOOKS += clean-sphinx
5277 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5280 -rm -rf docs/html/python-systemd/
5282 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5284 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5285 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5287 # ------------------------------------------------------------------------------
5288 if ENABLE_COMPAT_LIBS
5290 src/compat-libs/linkwarning.h
5292 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5293 $(AM_V_at)$(MKDIR_P) $(dir $@)
5294 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5297 libsystemd-journal.c \
5298 libsystemd-login.c \
5299 libsystemd-id128.c \
5302 libsystemd_journal_la_SOURCES = \
5303 libsystemd-journal.c \
5304 src/compat-libs/libsystemd-journal.sym
5306 libsystemd_journal_la_CPPFLAGS = \
5308 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5310 libsystemd_journal_la_LDFLAGS = \
5312 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5313 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5315 libsystemd_journal_la_LIBADD = \
5316 libsystemd-journal-internal.la \
5317 libsystemd-internal.la \
5318 libsystemd-shared.la
5320 libsystemd_login_la_SOURCES = \
5321 libsystemd-login.c \
5322 src/compat-libs/libsystemd-login.sym
5324 libsystemd_login_la_CPPFLAGS = \
5326 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5328 libsystemd_login_la_LDFLAGS = \
5330 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5331 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5333 libsystemd_login_la_LIBADD = \
5334 libsystemd-internal.la \
5335 libsystemd-shared.la
5337 libsystemd_id128_la_SOURCES = \
5338 libsystemd-id128.c \
5339 src/compat-libs/libsystemd-id128.sym
5341 libsystemd_id128_la_CPPFLAGS = \
5343 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5345 libsystemd_id128_la_LDFLAGS = \
5347 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5348 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5350 libsystemd_id128_la_LIBADD = \
5351 libsystemd-internal.la \
5352 libsystemd-shared.la
5354 libsystemd_daemon_la_SOURCES = \
5355 libsystemd-daemon.c \
5356 src/compat-libs/libsystemd-daemon.sym
5358 libsystemd_daemon_la_CPPFLAGS = \
5360 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5362 libsystemd_daemon_la_LDFLAGS = \
5364 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5365 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5367 libsystemd_daemon_la_LIBADD = \
5368 libsystemd-internal.la \
5369 libsystemd-shared.la
5371 lib_LTLIBRARIES += \
5372 libsystemd-journal.la \
5373 libsystemd-login.la \
5374 libsystemd-id128.la \
5375 libsystemd-daemon.la
5377 pkgconfiglib_DATA += \
5378 src/compat-libs/libsystemd-journal.pc \
5379 src/compat-libs/libsystemd-login.pc \
5380 src/compat-libs/libsystemd-id128.pc \
5381 src/compat-libs/libsystemd-daemon.pc
5383 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5384 compat-lib-install-hook:
5385 libname=libsystemd-login.so && $(move-to-rootlibdir)
5386 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5387 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5388 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5390 compat-lib-uninstall-hook:
5391 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5392 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5393 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5394 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5396 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5397 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5401 src/compat-libs/libsystemd-journal.pc.in \
5402 src/compat-libs/libsystemd-login.pc.in \
5403 src/compat-libs/libsystemd-id128.pc.in \
5404 src/compat-libs/libsystemd-daemon.pc.in
5406 # ------------------------------------------------------------------------------
5408 '|rootlibexecdir=$(rootlibexecdir)|' \
5409 '|rootbindir=$(rootbindir)|' \
5410 '|bindir=$(bindir)|' \
5411 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5412 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5413 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5414 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5415 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5416 '|pkgdatadir=$(pkgdatadir)|' \
5417 '|systemunitdir=$(systemunitdir)|' \
5418 '|userunitdir=$(userunitdir)|' \
5419 '|systempresetdir=$(systempresetdir)|' \
5420 '|userpresetdir=$(userpresetdir)|' \
5421 '|udevhwdbdir=$(udevhwdbdir)|' \
5422 '|udevrulesdir=$(udevrulesdir)|' \
5423 '|catalogdir=$(catalogdir)|' \
5424 '|tmpfilesdir=$(tmpfilesdir)|' \
5425 '|sysusersdir=$(sysusersdir)|' \
5426 '|sysctldir=$(sysctldir)|' \
5427 '|systemgeneratordir=$(systemgeneratordir)|' \
5428 '|usergeneratordir=$(usergeneratordir)|' \
5429 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5430 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5431 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5432 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5433 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5434 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5435 '|prefix=$(prefix)|' \
5436 '|exec_prefix=$(exec_prefix)|' \
5437 '|libdir=$(libdir)|' \
5438 '|includedir=$(includedir)|' \
5439 '|VERSION=$(VERSION)|' \
5440 '|rootprefix=$(rootprefix)|' \
5441 '|udevlibexecdir=$(udevlibexecdir)|' \
5442 '|SUSHELL=$(SUSHELL)|' \
5443 '|DEBUGTTY=$(DEBUGTTY)|' \
5446 '|MKDIR_P=$(MKDIR_P)|' \
5447 '|QUOTAON=$(QUOTAON)|' \
5448 '|QUOTACHECK=$(QUOTACHECK)|' \
5449 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5450 '|VARLOGDIR=$(varlogdir)|' \
5451 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5452 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5453 '|PYTHON=$(PYTHON)|' \
5454 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5455 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5456 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5457 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5458 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5459 '|TTY_GID=$(TTY_GID)|' \
5460 '|systemsleepdir=$(systemsleepdir)|' \
5461 '|systemshutdowndir=$(systemshutdowndir)|' \
5462 '|binfmtdir=$(binfmtdir)|' \
5463 '|modulesloaddir=$(modulesloaddir)|'
5466 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5467 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5476 sysctl.d/%: sysctl.d/%.in
5485 src/core/macros.%: src/core/macros.%.in
5488 src/%.policy.in: src/%.policy.in.in
5491 shell-completion/%: shell-completion/%.in
5502 $(AM_V_GEN)chmod +x $@
5504 src/%.c: src/%.gperf
5505 $(AM_V_at)$(MKDIR_P) $(dir $@)
5506 $(AM_V_GPERF)$(GPERF) < $< > $@
5509 $(AM_V_at)$(MKDIR_P) $(dir $@)
5510 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5513 $(AM_V_at)$(MKDIR_P) $(dir $@)
5514 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5516 units/user/%: units/%.m4
5517 $(AM_V_at)$(MKDIR_P) $(dir $@)
5518 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5521 nodist_polkitpolicy_DATA = \
5522 $(polkitpolicy_files) \
5523 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5527 $(polkitpolicy_in_files) \
5528 $(polkitpolicy_in_in_files)
5531 $(nodist_systemunit_DATA) \
5532 $(nodist_userunit_DATA) \
5533 $(pkgconfigdata_DATA) \
5534 $(pkgconfiglib_DATA) \
5535 $(nodist_polkitpolicy_DATA)
5537 # ------------------------------------------------------------------------------
5539 man/custom-entities.ent: configure.ac
5540 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5541 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5542 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5546 man/custom-entities.ent
5551 --stringparam man.output.quietly 1 \
5552 --stringparam funcsynopsis.style ansi \
5553 --stringparam man.authors.section.enabled 0 \
5554 --stringparam man.copyright.section.enabled 0 \
5555 --stringparam systemd.version $(VERSION) \
5556 --path '$(builddir)/man:$(srcdir)/man'
5558 XSLTPROC_PROCESS_MAN = \
5559 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5561 XSLTPROC_PROCESS_HTML = \
5562 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5564 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5565 $(XSLTPROC_PROCESS_MAN)
5567 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5568 $(XSLTPROC_PROCESS_MAN)
5570 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5571 $(XSLTPROC_PROCESS_MAN)
5573 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5574 $(XSLTPROC_PROCESS_MAN)
5576 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5577 $(XSLTPROC_PROCESS_MAN)
5579 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5580 $(XSLTPROC_PROCESS_HTML)
5583 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5589 man/custom-html.xsl \
5592 # ------------------------------------------------------------------------------
5595 docs/sysvinit/README
5600 docs/sysvinit/README: docs/sysvinit/README.in
5603 docs/var-log/README: docs/var-log/README.in
5607 docs/sysvinit/README \
5612 docs/sysvinit/README.in \
5613 docs/var-log/README.in
5615 SOCKETS_TARGET_WANTS += \
5616 systemd-initctl.socket \
5617 systemd-shutdownd.socket
5620 RUNLEVEL1_TARGET_WANTS += \
5621 systemd-update-utmp-runlevel.service
5622 RUNLEVEL2_TARGET_WANTS += \
5623 systemd-update-utmp-runlevel.service
5624 RUNLEVEL3_TARGET_WANTS += \
5625 systemd-update-utmp-runlevel.service
5626 RUNLEVEL4_TARGET_WANTS += \
5627 systemd-update-utmp-runlevel.service
5628 RUNLEVEL5_TARGET_WANTS += \
5629 systemd-update-utmp-runlevel.service
5632 SYSINIT_TARGET_WANTS += \
5633 systemd-update-utmp.service \
5634 systemd-update-done.service \
5637 LOCAL_FS_TARGET_WANTS += \
5638 systemd-remount-fs.service \
5641 MULTI_USER_TARGET_WANTS += \
5643 systemd-ask-password-wall.path
5645 SYSINIT_TARGET_WANTS += \
5646 dev-hugepages.mount \
5648 sys-kernel-config.mount \
5649 sys-kernel-debug.mount \
5650 sys-fs-fuse-connections.mount \
5651 systemd-sysctl.service \
5652 systemd-ask-password-console.path
5655 SYSTEM_UNIT_ALIASES += \
5656 poweroff.target runlevel0.target \
5657 rescue.target runlevel1.target \
5658 multi-user.target runlevel2.target \
5659 multi-user.target runlevel3.target \
5660 multi-user.target runlevel4.target \
5661 graphical.target runlevel5.target \
5662 reboot.target runlevel6.target
5665 SYSTEM_UNIT_ALIASES += \
5666 graphical.target default.target \
5667 reboot.target ctrl-alt-del.target \
5668 getty@.service autovt@.service
5670 USER_UNIT_ALIASES += \
5671 $(systemunitdir)/shutdown.target shutdown.target \
5672 $(systemunitdir)/sockets.target sockets.target \
5673 $(systemunitdir)/busnames.target busnames.target \
5674 $(systemunitdir)/timers.target timers.target \
5675 $(systemunitdir)/paths.target paths.target \
5676 $(systemunitdir)/bluetooth.target bluetooth.target \
5677 $(systemunitdir)/printer.target printer.target \
5678 $(systemunitdir)/sound.target sound.target \
5679 $(systemunitdir)/smartcard.target smartcard.target
5681 GENERAL_ALIASES += \
5682 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5683 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5684 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5685 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5689 $(systemunitdir)/runlevel1.target.wants \
5690 $(systemunitdir)/runlevel2.target.wants \
5691 $(systemunitdir)/runlevel3.target.wants \
5692 $(systemunitdir)/runlevel4.target.wants \
5693 $(systemunitdir)/runlevel5.target.wants
5697 $(prefix)/lib/modules-load.d \
5698 $(sysconfdir)/modules-load.d \
5699 $(prefix)/lib/systemd/network \
5700 $(sysconfdir)/systemd/network \
5701 $(prefix)/lib/sysctl.d \
5702 $(sysconfdir)/sysctl.d \
5703 $(prefix)/lib/kernel/install.d \
5704 $(sysconfdir)/kernel/install.d \
5705 $(systemshutdowndir) \
5707 $(systemgeneratordir) \
5708 $(usergeneratordir) \
5711 $(pkgsysconfdir)/system \
5712 $(pkgsysconfdir)/system/multi-user.target.wants \
5713 $(pkgsysconfdir)/system/getty.target.wants \
5714 $(pkgsysconfdir)/user \
5715 $(dbussessionservicedir) \
5716 $(sysconfdir)/xdg/systemd
5718 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5720 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5722 install-data-hook: $(INSTALL_DATA_HOOKS)
5724 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5726 clean-local: $(CLEAN_LOCAL_HOOKS)
5727 rm -rf $(abs_srcdir)/install-tree
5728 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5729 $(abs_srcdir)/hwdb/iab.txt
5731 DISTCHECK_CONFIGURE_FLAGS = \
5732 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5733 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5734 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5735 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5736 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5737 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5738 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5739 --with-rootprefix=$$dc_install_base \
5740 --disable-split-usr \
5742 --enable-compat-libs
5745 DISTCHECK_CONFIGURE_FLAGS += \
5746 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5747 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5749 DISTCHECK_CONFIGURE_FLAGS += \
5750 --with-sysvinit-path= \
5751 --with-sysvrcnd-path=
5755 DISTCHECK_CONFIGURE_FLAGS += \
5760 DISTCHECK_CONFIGURE_FLAGS += \
5765 # Require python when making dist
5767 .PHONY: dist-check-python
5770 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
5774 dist-check-compat-libs:
5775 if !ENABLE_COMPAT_LIBS
5776 @echo "*** compat-libs must be enabled in order to make dist"
5780 dist: dist-check-python dist-check-compat-libs
5782 # check "broken" platforms limited toolchains for link breakage before we release
5785 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5789 ( cd $(top_srcdir)/hwdb && \
5790 wget -N http://www.linux-usb.org/usb.ids \
5791 http://pci-ids.ucw.cz/v2.2/pci.ids \
5792 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5793 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5796 .PHONY: kdbus-update
5798 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5799 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5803 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5805 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5807 upload: all check dist
5808 scp systemd-$(VERSION).tar.xz $(www_target)
5811 doc-sync: all destdir-sphinx
5812 gtkdoc-rebase --html-dir=docs/libudev/html --online
5813 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5814 gtkdoc-rebase --html-dir=docs/gudev/html --online
5815 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5816 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5817 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5821 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5822 scp man/*.html tango:public/systemd-man/
5824 .PHONY: install-tree
5826 rm -rf $(abs_srcdir)/install-tree
5827 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5828 tree $(abs_srcdir)/install-tree
5830 # Let's run all tests of the test suite, but under valgrind. Let's
5831 # exclude the one perl script we have in there
5832 .PHONY: valgrind-tests
5833 valgrind-tests: $(TESTS)
5834 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5835 if file $$f | grep -q shell; then \
5836 echo -e "$${x}Skipping non-binary $$f"; else \
5837 echo -e "$${x}Running $$f"; \
5838 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5843 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5845 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5846 $(AM_V_GEN)cat $^ > $@
5848 .PHONY: check-api-docs
5849 check-api-docs: exported man
5850 $(AM_V_GEN)for symbol in `cat exported` ; do \
5851 if test -f $(builddir)/man/$$symbol.html ; then \
5852 echo " Symbol $$symbol() is documented." ; \
5854 echo "‣ Symbol $$symbol() lacks documentation." ; \
5858 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5859 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5861 undefined defined: $(ALL_OBJECTS)
5862 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5863 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5864 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5870 .PHONY: check-api-unused
5871 check-api-unused: defined undefined exported
5872 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5874 .PHONY: check-includes
5875 check-includes: $(top_srcdir)/tools/check-includes.pl
5876 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5877 | xargs $(top_srcdir)/tools/check-includes.pl
5880 $(top_srcdir)/tools/check-includes.pl
5882 # Stupid test that everything purported to be exported really is
5883 define generate-sym-test
5884 $(AM_V_at)$(MKDIR_P) $(dir $@)
5885 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5886 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5887 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5888 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5889 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5890 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5891 $(AM_V_at)printf 'return 0; }\n' >> $@
5894 test-libsystemd-sym.c: \
5895 $(top_builddir)/src/libsystemd/libsystemd.sym \
5896 src/systemd/sd-journal.h \
5897 src/systemd/sd-daemon.h \
5898 src/systemd/sd-login.h \
5899 src/systemd/sd-bus.h \
5900 src/systemd/sd-utf8.h \
5901 src/systemd/sd-resolve.h \
5902 src/systemd/sd-path.h
5903 $(generate-sym-test)
5905 test-libudev-sym.c: \
5906 src/libudev/libudev.sym \
5908 $(generate-sym-test)
5910 test_libsystemd_sym_SOURCES = \
5911 test-libsystemd-sym.c
5912 test_libsystemd_sym_LDADD = \
5915 test_libudev_sym_SOURCES = \
5917 test_libudev_sym_CFLAGS = \
5919 -Wno-deprecated-declarations
5920 test_libudev_sym_LDADD = \
5924 $(test_libsystemd_sym_SOURCES) \
5925 $(test_libudev_sym_SOURCES)
5928 test-libsystemd-sym \
5933 cppcheck --enable=all -q $(top_srcdir)
5935 # Used to extract compile flags for YCM.
5940 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u