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
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfiglibdir=$(libdir)/pkgconfig
78 polkitpolicydir=$(datadir)/polkit-1/actions
79 bashcompletiondir=@bashcompletiondir@
80 zshcompletiondir=@zshcompletiondir@
81 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
82 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
83 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
84 varlogdir=$(localstatedir)/log
85 systemdstatedir=$(localstatedir)/lib/systemd
86 catalogstatedir=$(systemdstatedir)/catalog
87 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
152 noinst_PROGRAMS = $(manual_tests) $(tests)
158 udevlibexec_PROGRAMS =
160 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
161 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
162 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165 -include $(top_builddir)/config.h \
166 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
167 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
168 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
169 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
170 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
171 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
172 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
173 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
174 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
175 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
176 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
177 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
178 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
179 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
180 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
181 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
182 -DROOTPREFIX=\"$(rootprefix)\" \
183 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
184 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
185 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
186 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
187 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
188 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
189 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
190 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
191 -DX_SERVER=\"$(bindir)/X\" \
192 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
193 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
194 -DQUOTACHECK=\"$(QUOTACHECK)\" \
195 -DKEXEC=\"$(KEXEC)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DROOTLIBDIR=\"$(rootlibdir)\" \
198 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
199 -I $(top_srcdir)/src \
200 -I $(top_builddir)/src/shared \
201 -I $(top_srcdir)/src/shared \
202 -I $(top_srcdir)/src/network \
203 -I $(top_srcdir)/src/login \
204 -I $(top_srcdir)/src/journal \
205 -I $(top_srcdir)/src/timedate \
206 -I $(top_srcdir)/src/timesync \
207 -I $(top_srcdir)/src/resolve \
208 -I $(top_builddir)/src/resolve \
209 -I $(top_srcdir)/src/systemd \
210 -I $(top_builddir)/src/core \
211 -I $(top_srcdir)/src/core \
212 -I $(top_srcdir)/src/libudev \
213 -I $(top_srcdir)/src/udev \
214 -I $(top_srcdir)/src/udev/net \
215 -I $(top_builddir)/src/udev \
216 -I $(top_srcdir)/src/libsystemd/sd-bus \
217 -I $(top_srcdir)/src/libsystemd/sd-event \
218 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
219 -I $(top_srcdir)/src/libsystemd/sd-network \
220 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
221 -I $(top_srcdir)/src/libsystemd-network \
222 -I $(top_srcdir)/src/libsystemd-terminal \
225 AM_CFLAGS = $(OUR_CFLAGS)
226 AM_LDFLAGS = $(OUR_LDFLAGS)
228 # ------------------------------------------------------------------------------
229 define move-to-rootlibdir
230 if test "$(libdir)" != "$(rootlibdir)"; then \
231 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
232 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
233 rm -f $(DESTDIR)$(libdir)/$$libname && \
234 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
235 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
241 RUNLEVEL1_TARGET_WANTS =
242 RUNLEVEL2_TARGET_WANTS =
243 RUNLEVEL3_TARGET_WANTS =
244 RUNLEVEL4_TARGET_WANTS =
245 RUNLEVEL5_TARGET_WANTS =
246 SHUTDOWN_TARGET_WANTS =
247 LOCAL_FS_TARGET_WANTS =
248 MULTI_USER_TARGET_WANTS =
249 SYSINIT_TARGET_WANTS =
250 SOCKETS_TARGET_WANTS =
251 BUSNAMES_TARGET_WANTS =
252 TIMERS_TARGET_WANTS =
253 USER_SOCKETS_TARGET_WANTS =
254 USER_DEFAULT_TARGET_WANTS =
255 USER_BUSNAMES_TARGET_WANTS =
257 SYSTEM_UNIT_ALIASES =
261 install-target-wants-hook:
262 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
274 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
275 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
277 install-busnames-target-wants-hook:
278 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
282 [ -z "$$what" ] || ( \
283 dir=$(DESTDIR)$$dir/$$wants.wants && \
284 $(MKDIR_P) -m 0755 $$dir && \
287 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
290 install-directories-hook:
291 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
293 install-aliases-hook:
294 set -- $(SYSTEM_UNIT_ALIASES) && \
295 dir=$(systemunitdir) && $(install-aliases)
296 set -- $(USER_UNIT_ALIASES) && \
297 dir=$(userunitdir) && $(install-relative-aliases)
298 set -- $(GENERAL_ALIASES) && \
299 dir= && $(install-relative-aliases)
301 define install-aliases
302 while [ -n "$$1" ]; do \
303 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
304 rm -f $(DESTDIR)$$dir/$$2 && \
305 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
306 shift 2 || exit $$?; \
310 define install-relative-aliases
311 while [ -n "$$1" ]; do \
312 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
313 rm -f $(DESTDIR)$$dir/$$2 && \
314 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
315 shift 2 || exit $$?; \
319 install-touch-usr-hook:
320 touch -c $(DESTDIR)/$(prefix)
322 INSTALL_EXEC_HOOKS += \
323 install-target-wants-hook \
324 install-directories-hook \
325 install-aliases-hook \
326 install-touch-usr-hook
329 INSTALL_EXEC_HOOKS += \
330 install-busnames-target-wants-hook
333 # ------------------------------------------------------------------------------
334 AM_V_M4 = $(AM_V_M4_$(V))
335 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
336 AM_V_M4_0 = @echo " M4 " $@;
338 AM_V_XSLT = $(AM_V_XSLT_$(V))
339 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
340 AM_V_XSLT_0 = @echo " XSLT " $@;
342 AM_V_GPERF = $(AM_V_GPERF_$(V))
343 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
344 AM_V_GPERF_0 = @echo " GPERF " $@;
346 AM_V_LN = $(AM_V_LN_$(V))
347 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
348 AM_V_LN_0 = @echo " LN " $@;
350 AM_V_RM = $(AM_V_RM_$(V))
351 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
352 AM_V_RM_0 = @echo " RM " $@;
354 # ------------------------------------------------------------------------------
358 systemd-ask-password \
359 systemd-tty-ask-password-agent \
360 systemd-machine-id-setup \
367 systemd-detect-virt \
374 src/kernel-install/kernel-install
376 dist_kernelinstall_SCRIPTS = \
377 src/kernel-install/50-depmod.install \
378 src/kernel-install/90-loaderentry.install
380 rootlibexec_PROGRAMS = \
382 systemd-cgroups-agent \
387 systemd-reply-password \
389 systemd-machine-id-commit \
394 systemd-socket-proxyd \
398 rootlibexec_PROGRAMS += \
402 systemgenerator_PROGRAMS = \
403 systemd-getty-generator \
404 systemd-fstab-generator \
405 systemd-system-update-generator \
406 systemd-debug-generator
408 dist_bashcompletion_DATA = \
409 shell-completion/bash/busctl \
410 shell-completion/bash/journalctl \
411 shell-completion/bash/systemd-analyze \
412 shell-completion/bash/systemd-cat \
413 shell-completion/bash/systemd-cgls \
414 shell-completion/bash/systemd-cgtop \
415 shell-completion/bash/systemd-delta \
416 shell-completion/bash/systemd-detect-virt \
417 shell-completion/bash/systemd-nspawn \
418 shell-completion/bash/systemd-run \
419 shell-completion/bash/udevadm \
420 shell-completion/bash/kernel-install
422 nodist_bashcompletion_DATA = \
423 shell-completion/bash/systemctl
425 dist_zshcompletion_DATA = \
426 shell-completion/zsh/_journalctl \
427 shell-completion/zsh/_udevadm \
428 shell-completion/zsh/_kernel-install \
429 shell-completion/zsh/_systemd-nspawn \
430 shell-completion/zsh/_systemd-analyze \
431 shell-completion/zsh/_systemd-run \
432 shell-completion/zsh/_sd_hosts_or_user_at_host \
433 shell-completion/zsh/_sd_outputmodes \
434 shell-completion/zsh/_sd_unit_files \
435 shell-completion/zsh/_systemd-delta \
436 shell-completion/zsh/_systemd
438 nodist_zshcompletion_DATA = \
439 shell-completion/zsh/_systemctl
442 shell-completion/bash/systemctl.in \
443 shell-completion/zsh/_systemctl.in
446 $(nodist_bashcompletion_DATA) \
447 $(nodist_zshcompletion_DATA)
450 sysctl.d/50-default.conf
452 dist_systemunit_DATA = \
453 units/graphical.target \
454 units/multi-user.target \
455 units/emergency.target \
456 units/sysinit.target \
461 units/local-fs.target \
462 units/local-fs-pre.target \
463 units/initrd.target \
464 units/initrd-fs.target \
465 units/initrd-root-fs.target \
466 units/remote-fs.target \
467 units/remote-fs-pre.target \
468 units/network.target \
469 units/network-pre.target \
470 units/network-online.target \
471 units/nss-lookup.target \
472 units/nss-user-lookup.target \
473 units/poweroff.target \
474 units/reboot.target \
475 units/rescue.target \
476 units/rpcbind.target \
477 units/time-sync.target \
478 units/shutdown.target \
480 units/umount.target \
481 units/sigpwr.target \
483 units/sockets.target \
484 units/timers.target \
486 units/suspend.target \
488 units/slices.target \
491 units/systemd-initctl.socket \
492 units/systemd-shutdownd.socket \
493 units/syslog.socket \
494 units/dev-hugepages.mount \
495 units/dev-mqueue.mount \
496 units/sys-kernel-config.mount \
497 units/sys-kernel-debug.mount \
498 units/sys-fs-fuse-connections.mount \
500 units/printer.target \
502 units/bluetooth.target \
503 units/smartcard.target \
504 units/systemd-ask-password-wall.path \
505 units/systemd-ask-password-console.path \
506 units/systemd-udevd-control.socket \
507 units/systemd-udevd-kernel.socket \
508 units/system-update.target \
509 units/initrd-switch-root.target \
510 units/machines.target
513 dist_systemunit_DATA += \
514 $(dist_systemunit_DATA_busnames)
517 dist_systemunit_DATA_busnames += \
518 units/busnames.target
520 nodist_systemunit_DATA = \
521 units/getty@.service \
522 units/serial-getty@.service \
523 units/console-shell.service \
524 units/console-getty.service \
525 units/container-getty@.service \
526 units/systemd-initctl.service \
527 units/systemd-shutdownd.service \
528 units/systemd-remount-fs.service \
529 units/systemd-ask-password-wall.service \
530 units/systemd-ask-password-console.service \
531 units/systemd-sysctl.service \
532 units/emergency.service \
533 units/rescue.service \
534 units/user@.service \
535 units/systemd-suspend.service \
536 units/systemd-halt.service \
537 units/systemd-poweroff.service \
538 units/systemd-reboot.service \
539 units/systemd-kexec.service \
540 units/systemd-fsck@.service \
541 units/systemd-fsck-root.service \
542 units/systemd-machine-id-commit.service \
543 units/systemd-udevd.service \
544 units/systemd-udev-trigger.service \
545 units/systemd-udev-settle.service \
546 units/systemd-hwdb-update.service \
547 units/debug-shell.service \
548 units/initrd-parse-etc.service \
549 units/initrd-cleanup.service \
550 units/initrd-udevadm-cleanup-db.service \
551 units/initrd-switch-root.service \
552 units/systemd-nspawn@.service \
553 units/systemd-update-done.service
556 nodist_systemunit_DATA += \
557 units/systemd-update-utmp.service \
558 units/systemd-update-utmp-runlevel.service
561 dist_userunit_DATA = \
562 units/user/basic.target \
563 units/user/default.target \
564 units/user/exit.target
566 nodist_userunit_DATA = \
567 units/user/systemd-exit.service
569 dist_systempreset_DATA = \
570 system-preset/90-systemd.preset
573 units/getty@.service.m4 \
574 units/serial-getty@.service.m4 \
575 units/console-shell.service.m4.in \
576 units/console-getty.service.m4.in \
577 units/container-getty@.service.m4.in \
578 units/rescue.service.in \
579 units/systemd-initctl.service.in \
580 units/systemd-shutdownd.service.in \
581 units/systemd-remount-fs.service.in \
582 units/systemd-update-utmp.service.in \
583 units/systemd-update-utmp-runlevel.service.in \
584 units/systemd-ask-password-wall.service.in \
585 units/systemd-ask-password-console.service.in \
586 units/systemd-sysctl.service.in \
587 units/emergency.service.in \
588 units/systemd-halt.service.in \
589 units/systemd-poweroff.service.in \
590 units/systemd-reboot.service.in \
591 units/systemd-kexec.service.in \
592 units/user/systemd-exit.service.in \
593 units/systemd-fsck@.service.in \
594 units/systemd-fsck-root.service.in \
595 units/systemd-machine-id-commit.service.in \
596 units/user@.service.m4.in \
597 units/debug-shell.service.in \
598 units/systemd-suspend.service.in \
599 units/quotaon.service.in \
600 units/initrd-parse-etc.service.in \
601 units/initrd-cleanup.service.in \
602 units/initrd-udevadm-cleanup-db.service.in \
603 units/initrd-switch-root.service.in \
604 units/systemd-nspawn@.service.in \
605 units/systemd-update-done.service.in
608 units/console-shell.service.m4 \
609 units/console-getty.service.m4 \
610 units/container-getty@.service.m4 \
611 units/user@.service.m4
614 nodist_systemunit_DATA += \
615 units/rc-local.service \
616 units/halt-local.service
618 systemgenerator_PROGRAMS += \
619 systemd-sysv-generator \
620 systemd-rc-local-generator
624 units/rc-local.service.in \
625 units/halt-local.service.in
627 # automake is broken and can't handle files with a dash in front
628 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
630 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
632 units-uninstall-hook:
633 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
635 INSTALL_DATA_HOOKS += units-install-hook
636 UNINSTALL_DATA_HOOKS += units-uninstall-hook
645 src/libsystemd/sd-bus/PORTING-DBUS1 \
646 src/libsystemd/sd-bus/DIFFERENCES \
647 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
649 @INTLTOOL_POLICY_RULE@
651 # ------------------------------------------------------------------------------
656 include Makefile-man.am
658 .PHONY: man update-man-list
659 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
662 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
664 ${XML_FILES:.xml=.html}
666 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
683 $(AM_V_at)$(MKDIR_P) $(dir $@)
684 $(AM_V_LN)$(LN_S) -f ../../man $@
693 man/index.html: man/systemd.index.html
694 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
702 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
703 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
704 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
706 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
707 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
708 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
709 @echo "Makefile-man.am has been regenerated"
711 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
712 $(AM_V_at)$(MKDIR_P) $(dir $@)
713 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
715 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
716 $(AM_V_at)$(MKDIR_P) $(dir $@)
717 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
720 man/systemd.index.xml \
722 man/systemd.directives.xml \
723 man/glib-event-glue.c
726 man/systemd.index.xml \
727 man/systemd.directives.xml
738 tools/make-man-index.py \
739 tools/make-directive-index.py \
742 # ------------------------------------------------------------------------------
743 noinst_LTLIBRARIES += \
746 libsystemd_shared_la_SOURCES = \
747 src/shared/capability.c \
748 src/shared/capability.h \
749 src/shared/linux/auto_dev-ioctl.h \
750 src/shared/ioprio.h \
751 src/shared/missing.h \
752 src/shared/initreq.h \
753 src/shared/securebits.h \
754 src/shared/special.h \
756 src/shared/unaligned.h \
759 src/shared/sparse-endian.h \
760 src/shared/refcnt.h \
761 src/shared/udev-util.h \
762 src/shared/device-nodes.c \
763 src/shared/device-nodes.h \
768 src/shared/architecture.c \
769 src/shared/architecture.h \
770 src/shared/efivars.c \
771 src/shared/efivars.h \
772 src/shared/fstab-util.c \
773 src/shared/fstab-util.h \
774 src/shared/path-util.c \
775 src/shared/path-util.h \
776 src/shared/time-util.c \
777 src/shared/time-util.h \
778 src/shared/locale-util.c \
779 src/shared/locale-util.h \
780 src/shared/mempool.c \
781 src/shared/mempool.h \
782 src/shared/hashmap.c \
783 src/shared/hashmap.h \
784 src/shared/siphash24.c \
785 src/shared/siphash24.h \
791 src/shared/sleep-config.c \
792 src/shared/sleep-config.h \
795 src/shared/env-util.c \
796 src/shared/env-util.h \
797 src/shared/strbuf.c \
798 src/shared/strbuf.h \
799 src/shared/strxcpyx.c \
800 src/shared/strxcpyx.h \
801 src/shared/conf-parser.c \
802 src/shared/conf-parser.h \
805 src/shared/ratelimit.h \
806 src/shared/ratelimit.c \
807 src/shared/exit-status.c \
808 src/shared/exit-status.h \
811 src/shared/gunicode.c \
812 src/shared/gunicode.h \
815 src/shared/socket-util.c \
816 src/shared/socket-util.h \
817 src/shared/in-addr-util.c \
818 src/shared/in-addr-util.h \
819 src/shared/ether-addr-util.h \
820 src/shared/conf-files.c \
821 src/shared/conf-files.h \
822 src/shared/cgroup-util.c \
823 src/shared/cgroup-util.h \
824 src/shared/cgroup-show.c \
825 src/shared/cgroup-show.h \
826 src/shared/unit-name.c \
827 src/shared/unit-name.h \
828 src/shared/utmp-wtmp.h \
829 src/shared/watchdog.c \
830 src/shared/watchdog.h \
831 src/shared/spawn-ask-password-agent.c \
832 src/shared/spawn-ask-password-agent.h \
833 src/shared/replace-var.c \
834 src/shared/replace-var.h \
835 src/shared/spawn-polkit-agent.c \
836 src/shared/spawn-polkit-agent.h \
837 src/shared/clock-util.c \
838 src/shared/clock-util.h \
839 src/shared/time-dst.c \
840 src/shared/time-dst.h \
841 src/shared/calendarspec.c \
842 src/shared/calendarspec.h \
843 src/shared/fileio.c \
844 src/shared/fileio.h \
845 src/shared/output-mode.h \
846 src/shared/MurmurHash2.c \
847 src/shared/MurmurHash2.h \
848 src/shared/acpi-fpdt.h \
849 src/shared/acpi-fpdt.c \
850 src/shared/boot-timestamps.h \
851 src/shared/boot-timestamps.c \
854 src/shared/smack-util.c \
855 src/shared/smack-util.h \
856 src/shared/apparmor-util.c \
857 src/shared/apparmor-util.h \
858 src/shared/ima-util.c \
859 src/shared/ima-util.h \
860 src/shared/ptyfwd.c \
861 src/shared/ptyfwd.h \
862 src/shared/errno-list.c \
863 src/shared/errno-list.h \
864 src/shared/af-list.c \
865 src/shared/af-list.h \
866 src/shared/arphrd-list.c \
867 src/shared/arphrd-list.h \
868 src/shared/cap-list.c \
869 src/shared/cap-list.h \
876 src/shared/bus-label.c \
877 src/shared/bus-label.h \
879 src/shared/clean-ipc.h \
880 src/shared/clean-ipc.c \
881 src/shared/login-shared.c \
882 src/shared/login-shared.h \
885 src/shared/barrier.c \
886 src/shared/barrier.h \
891 src/shared/base-filesystem.c \
892 src/shared/base-filesystem.h \
893 src/shared/memfd-util.c \
894 src/shared/memfd-util.h \
895 src/shared/uid-range.c \
896 src/shared/uid-range.h \
897 src/shared/nss-util.h \
900 src/shared/sigbus.c \
901 src/shared/sigbus.h \
905 libsystemd_shared_la_SOURCES += \
906 src/shared/utmp-wtmp.c
909 nodist_libsystemd_shared_la_SOURCES = \
910 src/shared/errno-from-name.h \
911 src/shared/errno-to-name.h \
912 src/shared/af-from-name.h \
913 src/shared/af-to-name.h \
914 src/shared/arphrd-from-name.h \
915 src/shared/arphrd-to-name.h \
916 src/shared/cap-from-name.h \
917 src/shared/cap-to-name.h
919 libsystemd_shared_la_CFLAGS = \
925 libsystemd_shared_la_LIBADD = \
929 # ------------------------------------------------------------------------------
930 noinst_LTLIBRARIES += \
933 libsystemd_units_la_SOURCES = \
934 src/shared/install.c \
935 src/shared/install.h \
936 src/shared/install-printf.c \
937 src/shared/install-printf.h \
938 src/shared/path-lookup.c \
939 src/shared/path-lookup.h \
940 src/shared/specifier.c \
941 src/shared/specifier.h
943 # ------------------------------------------------------------------------------
944 noinst_LTLIBRARIES += \
947 libsystemd_label_la_SOURCES = \
948 src/shared/socket-label.c \
951 src/shared/selinux-util.c \
952 src/shared/selinux-util.h \
953 src/shared/mkdir-label.c \
954 src/shared/ask-password-api.c \
955 src/shared/ask-password-api.h \
956 src/shared/switch-root.h \
957 src/shared/switch-root.c \
958 src/shared/fileio-label.c \
959 src/shared/fileio-label.h \
960 src/shared/dev-setup.c \
961 src/shared/dev-setup.h \
962 src/shared/dropin.c \
963 src/shared/dropin.h \
964 src/shared/condition.c \
965 src/shared/condition.h \
966 src/shared/generator.h \
967 src/shared/generator.c \
968 src/shared/btrfs-util.c \
969 src/shared/btrfs-util.h \
970 src/shared/btrfs-ctree.h \
971 src/shared/machine-image.c \
972 src/shared/machine-image.h \
976 libsystemd_label_la_CFLAGS = \
980 libsystemd_label_la_LIBADD = \
983 # -----------------------------------------------------------------------------
986 dist_systemunit_DATA += \
987 units/ldconfig.service
989 SYSINIT_TARGET_WANTS += \
993 # ------------------------------------------------------------------------------
996 noinst_LTLIBRARIES += \
997 libsystemd-seccomp.la
999 libsystemd_seccomp_la_SOURCES = \
1000 src/shared/seccomp-util.h \
1001 src/shared/seccomp-util.c
1003 libsystemd_seccomp_la_CFLAGS = \
1007 libsystemd_seccomp_la_LIBADD = \
1011 # ------------------------------------------------------------------------------
1012 noinst_LTLIBRARIES += \
1015 libsystemd_logs_la_SOURCES = \
1016 src/shared/logs-show.c \
1017 src/shared/logs-show.h
1019 # ------------------------------------------------------------------------------
1021 noinst_LTLIBRARIES += \
1024 libsystemd_acl_la_SOURCES = \
1025 src/shared/acl-util.c \
1026 src/shared/acl-util.h
1028 libsystemd_acl_la_CFLAGS = \
1032 libsystemd_acl_la_LIBADD = \
1036 # ------------------------------------------------------------------------------
1037 noinst_LTLIBRARIES += \
1040 libsystemd_core_la_SOURCES = \
1043 src/core/unit-printf.c \
1044 src/core/unit-printf.h \
1047 src/core/manager.c \
1048 src/core/manager.h \
1049 src/core/transaction.c \
1050 src/core/transaction.h \
1051 src/core/load-fragment.c \
1052 src/core/load-fragment.h \
1053 src/core/service.c \
1054 src/core/service.h \
1057 src/core/busname.c \
1058 src/core/busname.h \
1059 src/core/bus-endpoint.c \
1060 src/core/bus-endpoint.h \
1061 src/core/bus-policy.c \
1062 src/core/bus-policy.h \
1065 src/core/snapshot.c \
1066 src/core/snapshot.h \
1071 src/core/automount.c \
1072 src/core/automount.h \
1083 src/core/load-dropin.c \
1084 src/core/load-dropin.h \
1085 src/core/execute.c \
1086 src/core/execute.h \
1091 src/core/dbus-manager.c \
1092 src/core/dbus-manager.h \
1093 src/core/dbus-unit.c \
1094 src/core/dbus-unit.h \
1095 src/core/dbus-job.c \
1096 src/core/dbus-job.h \
1097 src/core/dbus-service.c \
1098 src/core/dbus-service.h \
1099 src/core/dbus-socket.c \
1100 src/core/dbus-socket.h \
1101 src/core/dbus-busname.c \
1102 src/core/dbus-busname.h \
1103 src/core/dbus-target.c \
1104 src/core/dbus-target.h \
1105 src/core/dbus-snapshot.c \
1106 src/core/dbus-snapshot.h \
1107 src/core/dbus-device.c \
1108 src/core/dbus-device.h \
1109 src/core/dbus-mount.c \
1110 src/core/dbus-mount.h \
1111 src/core/dbus-automount.c \
1112 src/core/dbus-automount.h \
1113 src/core/dbus-swap.c \
1114 src/core/dbus-swap.h \
1115 src/core/dbus-timer.c \
1116 src/core/dbus-timer.h \
1117 src/core/dbus-path.c \
1118 src/core/dbus-path.h \
1119 src/core/dbus-slice.c \
1120 src/core/dbus-slice.h \
1121 src/core/dbus-scope.c \
1122 src/core/dbus-scope.h \
1123 src/core/dbus-execute.c \
1124 src/core/dbus-execute.h \
1125 src/core/dbus-kill.c \
1126 src/core/dbus-kill.h \
1127 src/core/dbus-cgroup.c \
1128 src/core/dbus-cgroup.h \
1131 src/core/selinux-access.c \
1132 src/core/selinux-access.h \
1133 src/core/selinux-setup.c \
1134 src/core/selinux-setup.h \
1135 src/core/smack-setup.c \
1136 src/core/smack-setup.h \
1137 src/core/ima-setup.c \
1138 src/core/ima-setup.h \
1139 src/core/locale-setup.h \
1140 src/core/locale-setup.c \
1141 src/core/hostname-setup.c \
1142 src/core/hostname-setup.h \
1143 src/core/machine-id-setup.c \
1144 src/core/machine-id-setup.h \
1145 src/core/mount-setup.c \
1146 src/core/mount-setup.h \
1147 src/core/kmod-setup.c \
1148 src/core/kmod-setup.h \
1149 src/core/loopback-setup.h \
1150 src/core/loopback-setup.c \
1151 src/core/namespace.c \
1152 src/core/namespace.h \
1153 src/core/killall.h \
1154 src/core/killall.c \
1155 src/core/audit-fd.c \
1156 src/core/audit-fd.h \
1157 src/core/show-status.c \
1158 src/core/show-status.h \
1159 src/core/failure-action.c \
1160 src/core/failure-action.h
1162 nodist_libsystemd_core_la_SOURCES = \
1163 src/core/load-fragment-gperf.c \
1164 src/core/load-fragment-gperf-nulstr.c
1166 libsystemd_core_la_CFLAGS = \
1171 $(APPARMOR_CFLAGS) \
1176 libsystemd_core_la_LIBADD = \
1177 libsystemd-units.la \
1178 libsystemd-label.la \
1179 libudev-internal.la \
1180 libsystemd-shared.la \
1181 libsystemd-internal.la \
1190 libsystemd_core_la_LIBADD += \
1191 libsystemd-seccomp.la
1194 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1195 $(AM_V_at)$(MKDIR_P) $(dir $@)
1196 $(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 ";" }' < $< > $@
1199 src/core/load-fragment-gperf.gperf.m4
1202 src/core/load-fragment-gperf.gperf \
1203 src/core/load-fragment-gperf.c \
1204 src/core/load-fragment-gperf-nulstr.c \
1205 src/shared/errno-list.txt \
1206 src/shared/errno-from-name.gperf \
1207 src/shared/af-list.txt \
1208 src/shared/af-from-name.gperf \
1209 src/shared/arphrd-list.txt \
1210 src/shared/arphrd-from-name.gperf \
1211 src/shared/cap-list.txt \
1212 src/shared/cap-from-name.gperf \
1213 src/resolve/dns_type-list.txt \
1214 src/resolve/dns_type-from-name.gperf
1217 src/shared/errno-from-name.h \
1218 src/shared/errno-to-name.h \
1219 src/shared/af-from-name.h \
1220 src/shared/af-to-name.h \
1221 src/shared/arphrd-from-name.h \
1222 src/shared/arphrd-to-name.h \
1223 src/shared/cap-from-name.h \
1224 src/shared/cap-to-name.h \
1225 src/resolve/dns_type-from-name.h \
1226 src/resolve/dns_type-to-name.h
1228 %-from-name.gperf: %-list.txt
1229 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1231 %-from-name.h: %-from-name.gperf
1232 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1235 src/shared/errno-list.txt:
1236 $(AM_V_at)$(MKDIR_P) $(dir $@)
1237 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1239 src/shared/errno-to-name.h: src/shared/errno-list.txt
1240 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1243 src/shared/af-list.txt:
1244 $(AM_V_at)$(MKDIR_P) $(dir $@)
1245 $(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; }' >$@
1247 src/shared/af-to-name.h: src/shared/af-list.txt
1248 $(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 "};"}' <$< >$@
1251 src/shared/arphrd-list.txt:
1252 $(AM_V_at)$(MKDIR_P) $(dir $@)
1253 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1255 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1256 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1258 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1259 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1262 src/shared/cap-list.txt:
1263 $(AM_V_at)$(MKDIR_P) $(dir $@)
1264 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
1266 src/shared/cap-to-name.h: src/shared/cap-list.txt
1267 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1269 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1270 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1272 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1273 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1276 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1277 $(AM_V_at)$(MKDIR_P) $(dir $@)
1278 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1280 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1281 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1283 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1284 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1286 # ------------------------------------------------------------------------------
1295 libsystemd-core.la \
1298 dist_pkgsysconf_DATA += \
1299 src/core/system.conf \
1302 dist_dbuspolicy_DATA += \
1303 src/core/org.freedesktop.systemd1.conf
1305 dist_dbussystemservice_DATA += \
1306 src/core/org.freedesktop.systemd1.service
1308 polkitpolicy_in_in_files += \
1309 src/core/org.freedesktop.systemd1.policy.in.in
1311 pkgconfiglib_DATA += \
1314 nodist_rpmmacros_DATA = \
1315 src/core/macros.systemd
1318 src/core/systemd.pc.in \
1319 src/core/macros.systemd.in
1322 src/core/macros.systemd \
1323 src/core/org.freedesktop.systemd1.policy.in
1325 # ------------------------------------------------------------------------------
1370 test-strip-tab-ansi \
1406 test/daughter.service \
1411 test/grandchild.service \
1413 test/hello-after-sleep.target \
1414 test/hello.service \
1416 test/parent-deep.slice \
1419 test/sched_idle_bad.service \
1420 test/sched_idle_ok.service \
1421 test/sched_rr_bad.service \
1422 test/sched_rr_change.service \
1423 test/sched_rr_ok.service \
1424 test/shutdown.target \
1425 test/sleep.service \
1426 test/sockets.target \
1428 test/sysinit.target \
1429 test/testsuite.target \
1430 test/timers.target \
1431 test/unstoppable.service \
1432 test/path-changed.service \
1433 test/path-directorynotempty.service \
1434 test/path-existsglob.service \
1435 test/path-exists.service \
1436 test/path-makedirectory.service \
1437 test/path-modified.service \
1438 test/path-mycustomunit.service \
1439 test/path-service.service \
1440 test/path-changed.path \
1441 test/path-directorynotempty.path \
1442 test/path-existsglob.path \
1443 test/path-exists.path \
1444 test/path-makedirectory.path \
1445 test/path-modified.path \
1446 test/path-unit.path \
1447 test/exec-environment-empty.service \
1448 test/exec-environment-multiple.service \
1449 test/exec-environment.service \
1450 test/exec-group.service \
1451 test/exec-ignoresigpipe-no.service \
1452 test/exec-ignoresigpipe-yes.service \
1453 test/exec-personality-x86-64.service \
1454 test/exec-personality-x86.service \
1455 test/exec-privatedevices-no.service \
1456 test/exec-privatedevices-yes.service \
1457 test/exec-privatetmp-no.service \
1458 test/exec-privatetmp-yes.service \
1459 test/exec-systemcallerrornumber.service \
1460 test/exec-systemcallfilter-failing2.service \
1461 test/exec-systemcallfilter-failing.service \
1462 test/exec-systemcallfilter-not-failing2.service \
1463 test/exec-systemcallfilter-not-failing.service \
1464 test/exec-user.service \
1465 test/exec-workingdirectory.service \
1466 test/exec-umask-0177.service \
1467 test/exec-umask-default.service \
1468 test/bus-policy/hello.conf \
1469 test/bus-policy/methods.conf \
1470 test/bus-policy/ownerships.conf \
1471 test/bus-policy/signals.conf \
1472 test/bus-policy/check-own-rules.conf \
1473 test/bus-policy/many-rules.conf \
1474 test/bus-policy/test.conf
1478 src/test/test-helper.h
1480 test_device_nodes_SOURCES = \
1481 src/test/test-device-nodes.c
1483 test_device_nodes_LDADD = \
1484 libsystemd-shared.la
1486 test_engine_SOURCES = \
1487 src/test/test-engine.c
1489 test_engine_CFLAGS = \
1493 test_engine_LDADD = \
1494 libsystemd-core.la \
1497 test_job_type_SOURCES = \
1498 src/test/test-job-type.c
1500 test_job_type_CFLAGS = \
1504 test_job_type_LDADD = \
1505 libsystemd-core.la \
1518 test_loopback_SOURCES = \
1519 src/test/test-loopback.c
1521 test_loopback_LDADD = \
1524 test_hostname_SOURCES = \
1525 src/test/test-hostname.c
1527 test_hostname_LDADD = \
1534 test_boot_timestamp_SOURCES = \
1535 src/test/test-boot-timestamps.c
1537 test_boot_timestamp_LDADD = \
1538 libsystemd-shared.la
1541 test_unit_name_SOURCES = \
1542 src/test/test-unit-name.c
1544 test_unit_name_CFLAGS = \
1548 test_unit_name_LDADD = \
1549 libsystemd-core.la \
1552 test_unit_file_SOURCES = \
1553 src/test/test-unit-file.c
1555 test_unit_file_CFLAGS = \
1559 test_unit_file_LDADD = \
1560 libsystemd-core.la \
1563 test_utf8_SOURCES = \
1564 src/test/test-utf8.c
1567 libsystemd-shared.la
1569 test_capability_SOURCES = \
1570 src/test/test-capability.c
1572 test_capability_LDADD = \
1573 libsystemd-shared.la
1575 test_async_SOURCES = \
1576 src/test/test-async.c
1578 test_async_LDADD = \
1579 libsystemd-shared.la
1581 test_locale_util_SOURCES = \
1582 src/test/test-locale-util.c
1584 test_locale_util_LDADD = \
1585 libsystemd-shared.la
1587 test_copy_SOURCES = \
1588 src/test/test-copy.c
1591 libsystemd-label.la \
1592 libsystemd-shared.la
1594 test_sigbus_SOURCES = \
1595 src/test/test-sigbus.c
1597 test_sigbus_LDADD = \
1598 libsystemd-shared.la
1600 test_condition_SOURCES = \
1601 src/test/test-condition.c
1603 test_condition_LDADD = \
1604 libsystemd-label.la \
1605 libsystemd-internal.la \
1606 libsystemd-shared.la
1608 test_fdset_SOURCES = \
1609 src/test/test-fdset.c
1611 test_fdset_LDADD = \
1612 libsystemd-shared.la \
1613 libsystemd-internal.la
1615 test_fstab_util_SOURCES = \
1616 src/test/test-fstab-util.c
1618 test_fstab_util_LDADD = \
1619 libsystemd-shared.la
1621 test_ratelimit_SOURCES = \
1622 src/test/test-ratelimit.c
1624 test_ratelimit_LDADD = \
1625 libsystemd-shared.la
1627 test_util_SOURCES = \
1628 src/test/test-util.c
1631 libsystemd-shared.la
1633 test_path_lookup_SOURCES = \
1634 src/test/test-path-lookup.c
1636 test_path_lookup_LDADD = \
1638 libsystemd-units.la \
1639 libsystemd-shared.la
1641 test_uid_range_SOURCES = \
1642 src/test/test-uid-range.c
1644 test_uid_range_LDADD = \
1645 libsystemd-shared.la
1647 test_cap_list_SOURCES = \
1648 src/test/test-cap-list.c
1650 test_cap_list_LDADD = \
1651 libsystemd-shared.la
1653 test_socket_util_SOURCES = \
1654 src/test/test-socket-util.c
1656 test_socket_util_LDADD = \
1657 libsystemd-shared.la
1659 test_ring_SOURCES = \
1660 src/test/test-ring.c
1663 libsystemd-shared.la
1665 test_barrier_SOURCES = \
1666 src/test/test-barrier.c
1668 test_barrier_LDADD = \
1669 libsystemd-shared.la
1671 test_pty_SOURCES = \
1677 test_tmpfiles_SOURCES = \
1678 src/test/test-tmpfiles.c
1680 test_tmpfiles_LDADD = \
1681 libsystemd-shared.la
1683 test_namespace_SOURCES = \
1684 src/test/test-namespace.c
1686 test_verbs_SOURCES = \
1687 src/test/test-verbs.c
1689 test_verbs_LDADD = \
1690 libsystemd-shared.la
1692 test_namespace_LDADD = \
1696 src/test/test-hashmap-ordered.c
1699 src/test/test-hashmap-ordered.c
1701 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1702 $(AM_V_at)$(MKDIR_P) $(dir $@)
1703 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1704 { if (!match($$0, "^#include")) \
1705 gsub(/hashmap/, "ordered_hashmap"); \
1706 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1707 gsub(/Hashmap/, "OrderedHashmap"); \
1710 nodist_test_hashmap_SOURCES = \
1711 src/test/test-hashmap-ordered.c
1713 test_hashmap_SOURCES = \
1714 src/test/test-hashmap.c \
1715 src/test/test-hashmap-plain.c
1717 test_hashmap_LDADD = \
1718 libsystemd-shared.la
1720 test_set_SOURCES = \
1724 libsystemd-shared.la
1726 test_xml_SOURCES = \
1730 libsystemd-shared.la
1732 test_json_SOURCES = \
1733 src/test/test-json.c
1736 libsystemd-shared.la
1738 test_list_SOURCES = \
1739 src/test/test-list.c
1742 libsystemd-shared.la
1744 test_unaligned_LDADD = \
1745 libsystemd-shared.la
1747 test_unaligned_SOURCES = \
1748 src/test/test-unaligned.c
1750 test_tables_SOURCES = \
1751 src/test/test-tables.c \
1752 src/shared/test-tables.h \
1753 src/bus-proxyd/bus-xml-policy.c \
1754 src/bus-proxyd/bus-xml-policy.h \
1755 src/journal/journald-server.c \
1756 src/journal/journald-server.h
1758 test_tables_CPPFLAGS = \
1760 -I$(top_srcdir)/src/bus-proxyd
1762 test_tables_CFLAGS = \
1766 test_tables_LDADD = \
1767 libsystemd-logs.la \
1768 libsystemd-journal-internal.la \
1769 libsystemd-journal-core.la \
1770 libsystemd-core.la \
1774 test_prioq_SOURCES = \
1775 src/test/test-prioq.c
1777 test_prioq_LDADD = \
1778 libsystemd-shared.la
1780 test_fileio_SOURCES = \
1781 src/test/test-fileio.c
1783 test_fileio_LDADD = \
1784 libsystemd-shared.la
1786 test_time_SOURCES = \
1787 src/test/test-time.c
1790 libsystemd-shared.la
1792 test_architecture_SOURCES = \
1793 src/test/test-architecture.c
1795 test_architecture_LDADD = \
1796 libsystemd-shared.la
1798 test_log_SOURCES = \
1802 libsystemd-shared.la
1804 test_ipcrm_SOURCES = \
1805 src/test/test-ipcrm.c
1807 test_ipcrm_LDADD = \
1808 libsystemd-shared.la \
1811 test_btrfs_SOURCES = \
1812 src/test/test-btrfs.c
1814 test_btrfs_LDADD = \
1815 libsystemd-label.la \
1816 libsystemd-shared.la
1818 test_rtnl_manual_SOURCES = \
1819 src/test/test-rtnl-manual.c
1821 test_rtnl_manual_CFLAGS = \
1825 test_rtnl_manual_LDADD = \
1826 libsystemd-internal.la \
1827 libsystemd-shared.la \
1830 test_ellipsize_SOURCES = \
1831 src/test/test-ellipsize.c
1833 test_ellipsize_LDADD = \
1834 libsystemd-shared.la
1836 test_date_SOURCES = \
1837 src/test/test-date.c
1840 libsystemd-shared.la
1842 test_sleep_SOURCES = \
1843 src/test/test-sleep.c
1845 test_sleep_LDADD = \
1848 test_replace_var_SOURCES = \
1849 src/test/test-replace-var.c
1851 test_replace_var_LDADD = \
1852 libsystemd-shared.la
1854 test_calendarspec_SOURCES = \
1855 src/test/test-calendarspec.c
1857 test_calendarspec_LDADD = \
1858 libsystemd-shared.la
1860 test_strip_tab_ansi_SOURCES = \
1861 src/test/test-strip-tab-ansi.c
1863 test_strip_tab_ansi_LDADD = \
1864 libsystemd-shared.la
1866 test_daemon_SOURCES = \
1867 src/test/test-daemon.c
1869 test_daemon_LDADD = \
1870 libsystemd-internal.la \
1871 libsystemd-shared.la
1873 test_cgroup_SOURCES = \
1874 src/test/test-cgroup.c
1876 test_cgroup_LDADD = \
1877 libsystemd-label.la \
1878 libsystemd-shared.la \
1879 libsystemd-internal.la
1881 test_cgroup_mask_SOURCES = \
1882 src/test/test-cgroup-mask.c
1884 test_cgroup_mask_CPPFLAGS = \
1887 test_cgroup_mask_CFLAGS = \
1891 test_cgroup_mask_LDADD = \
1892 libsystemd-core.la \
1895 test_cgroup_util_SOURCES = \
1896 src/test/test-cgroup-util.c
1898 test_cgroup_util_LDADD = \
1899 libsystemd-label.la \
1900 libsystemd-internal.la \
1901 libsystemd-shared.la
1903 test_env_replace_SOURCES = \
1904 src/test/test-env-replace.c
1906 test_env_replace_LDADD = \
1907 libsystemd-shared.la
1909 test_strbuf_SOURCES = \
1910 src/test/test-strbuf.c
1912 test_strbuf_LDADD = \
1913 libsystemd-shared.la
1915 test_strv_SOURCES = \
1916 src/test/test-strv.c
1919 libsystemd-units.la \
1920 libsystemd-internal.la \
1921 libsystemd-shared.la
1923 test_path_util_SOURCES = \
1924 src/test/test-path-util.c
1926 test_path_util_LDADD = \
1927 libsystemd-shared.la
1929 test_path_SOURCES = \
1930 src/test/test-path.c
1932 test_path_CFLAGS = \
1938 test_execute_SOURCES = \
1939 src/test/test-execute.c
1941 test_execute_CFLAGS = \
1944 test_execute_LDADD = \
1947 test_strxcpyx_SOURCES = \
1948 src/test/test-strxcpyx.c
1950 test_strxcpyx_LDADD = \
1951 libsystemd-shared.la
1953 test_install_SOURCES = \
1954 src/test/test-install.c
1956 test_install_LDADD = \
1957 libsystemd-units.la \
1958 libsystemd-label.la \
1959 libsystemd-shared.la \
1960 libsystemd-internal.la
1962 test_watchdog_SOURCES = \
1963 src/test/test-watchdog.c
1965 test_watchdog_LDADD = \
1966 libsystemd-shared.la
1968 test_sched_prio_SOURCES = \
1969 src/test/test-sched-prio.c
1971 test_sched_prio_CPPFLAGS = \
1974 test_sched_prio_CFLAGS = \
1978 test_sched_prio_LDADD = \
1979 libsystemd-core.la \
1982 test_conf_files_SOURCES = \
1983 src/test/test-conf-files.c
1985 test_conf_files_LDADD = \
1986 libsystemd-shared.la
1988 test_bus_policy_SOURCES = \
1989 src/bus-proxyd/test-bus-xml-policy.c \
1990 src/bus-proxyd/bus-xml-policy.c \
1991 src/bus-proxyd/bus-xml-policy.h
1993 test_bus_policy_LDADD = \
1994 libsystemd-internal.la \
1995 libsystemd-shared.la
1997 # ------------------------------------------------------------------------------
1998 ## .PHONY so it always rebuilds it
1999 .PHONY: coverage lcov-run lcov-report coverage-sync
2001 # run lcov from scratch, always
2006 coverage_dir = coverage
2007 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2010 # reset run coverage tests
2012 @rm -rf $(coverage_dir)
2013 lcov $(coverage_opts) --zerocounters
2016 # generate report based on current coverage data
2018 $(MKDIR_P) $(coverage_dir)
2019 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2020 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2021 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2022 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2023 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2025 # lcov doesn't work properly with vpath builds, make sure that bad
2026 # output is not uploaded by mistake.
2027 coverage-sync: coverage
2028 test "$(builddir)" = "$(srcdir)"
2029 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2032 lcov-run lcov-report:
2033 echo "Need to reconfigure with --enable-coverage"
2036 # ------------------------------------------------------------------------------
2037 systemd_analyze_SOURCES = \
2038 src/analyze/analyze.c \
2039 src/analyze/analyze-verify.c \
2040 src/analyze/analyze-verify.h
2042 systemd_verify_CFLAGS = \
2046 systemd_analyze_LDADD = \
2047 libsystemd-core.la \
2048 libsystemd-internal.la \
2049 libsystemd-shared.la \
2052 # ------------------------------------------------------------------------------
2053 systemd_initctl_SOURCES = \
2054 src/initctl/initctl.c
2056 systemd_initctl_LDADD = \
2057 libsystemd-internal.la \
2058 libsystemd-shared.la
2060 # ------------------------------------------------------------------------------
2061 systemd_update_utmp_SOURCES = \
2062 src/update-utmp/update-utmp.c
2064 systemd_update_utmp_CFLAGS = \
2068 systemd_update_utmp_LDADD = \
2069 libsystemd-internal.la \
2070 libsystemd-shared.la \
2073 # ------------------------------------------------------------------------------
2074 systemd_update_done_SOURCES = \
2075 src/update-done/update-done.c
2077 systemd_update_done_LDADD = \
2078 libsystemd-internal.la \
2079 libsystemd-label.la \
2080 libsystemd-shared.la
2082 # ------------------------------------------------------------------------------
2083 systemd_shutdownd_SOURCES = \
2084 src/shutdownd/shutdownd.c
2086 systemd_shutdownd_LDADD = \
2087 libsystemd-label.la \
2088 libsystemd-internal.la \
2089 libsystemd-shared.la
2092 src/systemd/sd-shutdown.h
2094 # ------------------------------------------------------------------------------
2095 systemd_shutdown_SOURCES = \
2098 src/core/shutdown.c \
2099 src/core/mount-setup.c \
2100 src/core/mount-setup.h \
2101 src/core/killall.h \
2104 systemd_shutdown_LDADD = \
2105 libsystemd-label.la \
2106 libudev-internal.la \
2107 libsystemd-shared.la
2109 # ------------------------------------------------------------------------------
2111 systemd_modules_load_SOURCES = \
2112 src/modules-load/modules-load.c
2114 systemd_modules_load_CFLAGS = \
2118 systemd_modules_load_LDADD = \
2119 libsystemd-shared.la \
2122 rootlibexec_PROGRAMS += \
2123 systemd-modules-load
2125 nodist_systemunit_DATA += \
2126 units/systemd-modules-load.service
2128 SYSINIT_TARGET_WANTS += \
2129 systemd-modules-load.service
2132 nodist_systemunit_DATA += \
2133 units/kmod-static-nodes.service
2135 SYSINIT_TARGET_WANTS += \
2136 kmod-static-nodes.service
2141 units/systemd-modules-load.service.in \
2142 units/kmod-static-nodes.service.in
2144 # ------------------------------------------------------------------------------
2146 systemd_tmpfiles_SOURCES = \
2147 src/tmpfiles/tmpfiles.c
2149 systemd_tmpfiles_LDADD = \
2150 libsystemd-units.la \
2151 libsystemd-label.la \
2152 libsystemd-internal.la \
2153 libsystemd-shared.la
2155 rootbin_PROGRAMS += \
2158 dist_systemunit_DATA += \
2159 units/systemd-tmpfiles-clean.timer
2161 nodist_systemunit_DATA += \
2162 units/systemd-tmpfiles-setup-dev.service \
2163 units/systemd-tmpfiles-setup.service \
2164 units/systemd-tmpfiles-clean.service
2166 nodist_tmpfiles_DATA = \
2169 dist_tmpfiles_DATA = \
2170 tmpfiles.d/systemd.conf \
2171 tmpfiles.d/systemd-nologin.conf \
2172 tmpfiles.d/tmp.conf \
2173 tmpfiles.d/x11.conf \
2177 dist_tmpfiles_DATA += \
2178 tmpfiles.d/legacy.conf
2181 SYSINIT_TARGET_WANTS += \
2182 systemd-tmpfiles-setup-dev.service \
2183 systemd-tmpfiles-setup.service
2185 dist_zshcompletion_DATA += \
2186 shell-completion/zsh/_systemd-tmpfiles
2188 TIMERS_TARGET_WANTS += \
2189 systemd-tmpfiles-clean.timer
2193 $(sysconfdir)/tmpfiles.d
2197 tmpfiles.d/etc.conf.m4 \
2198 units/systemd-tmpfiles-setup-dev.service.in \
2199 units/systemd-tmpfiles-setup.service.in \
2200 units/systemd-tmpfiles-clean.service.in
2205 # ------------------------------------------------------------------------------
2207 systemd_sysusers_SOURCES = \
2208 src/sysusers/sysusers.c
2210 systemd_sysusers_LDADD = \
2211 libsystemd-units.la \
2212 libsystemd-label.la \
2213 libsystemd-internal.la \
2214 libsystemd-shared.la
2216 rootbin_PROGRAMS += \
2219 nodist_systemunit_DATA += \
2220 units/systemd-sysusers.service
2222 SYSINIT_TARGET_WANTS += \
2223 systemd-sysusers.service
2225 dist_sysusers_DATA = \
2226 sysusers.d/systemd.conf
2228 nodist_sysusers_DATA = \
2229 sysusers.d/basic.conf
2232 units/systemd-sysusers.service.in \
2233 sysusers.d/basic.conf.in
2236 sysusers.d/basic.conf
2242 # ------------------------------------------------------------------------------
2243 dist_factory_etc_DATA = \
2244 factory/etc/nsswitch.conf
2247 dist_factory_pam_DATA = \
2248 factory/etc/pam.d/system-auth \
2249 factory/etc/pam.d/other
2252 # ------------------------------------------------------------------------------
2254 systemd_firstboot_SOURCES = \
2255 src/firstboot/firstboot.c
2257 systemd_firstboot_LDADD = \
2258 libsystemd-units.la \
2259 libsystemd-label.la \
2260 libsystemd-internal.la \
2261 libsystemd-shared.la \
2264 rootbin_PROGRAMS += \
2267 nodist_systemunit_DATA += \
2268 units/systemd-firstboot.service
2271 units/systemd-firstboot.service.in
2273 SYSINIT_TARGET_WANTS += \
2274 systemd-firstboot.service
2277 # ------------------------------------------------------------------------------
2278 systemd_machine_id_setup_SOURCES = \
2279 src/machine-id-setup/machine-id-setup-main.c \
2280 src/core/machine-id-setup.c \
2281 src/core/machine-id-setup.h
2283 systemd_machine_id_setup_LDADD = \
2284 libsystemd-label.la \
2285 libsystemd-internal.la \
2286 libsystemd-shared.la
2288 # ------------------------------------------------------------------------------
2289 systemd_sysctl_SOURCES = \
2292 systemd_sysctl_LDADD = \
2293 libsystemd-shared.la
2295 # ------------------------------------------------------------------------------
2296 systemd_sleep_SOURCES = \
2299 systemd_sleep_LDADD = \
2300 libsystemd-shared.la
2302 # ------------------------------------------------------------------------------
2303 systemd_fsck_SOURCES = \
2306 systemd_fsck_LDADD = \
2307 libsystemd-internal.la \
2308 libudev-internal.la \
2309 libsystemd-shared.la
2311 # ------------------------------------------------------------------------------
2312 systemd_machine_id_commit_SOURCES = \
2313 src/machine-id-commit/machine-id-commit.c \
2314 src/core/machine-id-setup.c \
2315 src/core/machine-id-setup.h
2317 systemd_machine_id_commit_LDADD = \
2318 libsystemd-label.la \
2319 libsystemd-internal.la \
2320 libsystemd-shared.la
2322 SYSINIT_TARGET_WANTS += \
2323 systemd-machine-id-commit.service
2325 # ------------------------------------------------------------------------------
2326 systemd_ac_power_SOURCES = \
2327 src/ac-power/ac-power.c
2329 systemd_ac_power_LDADD = \
2330 libudev-internal.la \
2331 libsystemd-shared.la
2333 # ------------------------------------------------------------------------------
2334 systemd_detect_virt_SOURCES = \
2335 src/detect-virt/detect-virt.c
2337 systemd_detect_virt_LDADD = \
2338 libsystemd-shared.la
2340 INSTALL_EXEC_HOOKS += \
2341 systemd-detect-virt-install-hook
2343 # ------------------------------------------------------------------------------
2344 systemd_delta_SOURCES = \
2347 systemd_delta_LDADD = \
2348 libsystemd-shared.la
2350 # ------------------------------------------------------------------------------
2351 systemd_getty_generator_SOURCES = \
2352 src/getty-generator/getty-generator.c
2354 systemd_getty_generator_LDADD = \
2355 libsystemd-label.la \
2356 libsystemd-shared.la
2358 # ------------------------------------------------------------------------------
2359 systemd_debug_generator_SOURCES = \
2360 src/debug-generator/debug-generator.c
2362 systemd_debug_generator_LDADD = \
2363 libsystemd-label.la \
2364 libsystemd-shared.la
2366 # ------------------------------------------------------------------------------
2367 systemd_fstab_generator_SOURCES = \
2368 src/fstab-generator/fstab-generator.c \
2369 src/core/mount-setup.c
2371 systemd_fstab_generator_LDADD = \
2372 libsystemd-label.la \
2373 libsystemd-shared.la
2375 # ------------------------------------------------------------------------------
2376 systemd_system_update_generator_SOURCES = \
2377 src/system-update-generator/system-update-generator.c
2379 systemd_system_update_generator_LDADD = \
2380 libsystemd-label.la \
2381 libsystemd-shared.la
2383 # ------------------------------------------------------------------------------
2385 systemgenerator_PROGRAMS += \
2386 systemd-hibernate-resume-generator
2388 rootlibexec_PROGRAMS += \
2389 systemd-hibernate-resume
2391 systemd_hibernate_resume_SOURCES = \
2392 src/hibernate-resume/hibernate-resume.c
2394 systemd_hibernate_resume_LDADD = \
2395 libsystemd-internal.la \
2396 libsystemd-shared.la
2398 systemd_hibernate_resume_generator_SOURCES = \
2399 src/hibernate-resume/hibernate-resume-generator.c
2401 systemd_hibernate_resume_generator_LDADD = \
2402 libsystemd-label.la \
2403 libsystemd-shared.la
2406 units/systemd-hibernate.service.in \
2407 units/systemd-hibernate-resume@.service.in \
2408 units/systemd-hybrid-sleep.service.in
2410 dist_systemunit_DATA += \
2411 units/hibernate.target \
2412 units/hybrid-sleep.target
2414 nodist_systemunit_DATA += \
2415 units/systemd-hibernate.service \
2416 units/systemd-hibernate-resume@.service \
2417 units/systemd-hybrid-sleep.service
2420 # ------------------------------------------------------------------------------
2422 systemgenerator_PROGRAMS += \
2423 systemd-efi-boot-generator
2425 systemd_efi_boot_generator_SOURCES = \
2426 src/efi-boot-generator/efi-boot-generator.c
2428 systemd_efi_boot_generator_LDADD = \
2429 libsystemd-label.la \
2430 libsystemd-shared.la
2432 # ------------------------------------------------------------------------------
2435 src/boot/boot-loader.h \
2436 src/boot/bootctl.c \
2437 src/boot/boot-loader.c \
2441 libsystemd-shared.la \
2442 libsystemd-internal.la
2447 dist_bashcompletion_DATA += \
2448 shell-completion/bash/bootctl
2450 dist_zshcompletion_DATA += \
2451 shell-completion/zsh/_bootctl
2455 # ------------------------------------------------------------------------------
2457 systemgenerator_PROGRAMS += \
2458 systemd-gpt-auto-generator
2460 systemd_gpt_auto_generator_SOURCES = \
2461 src/gpt-auto-generator/gpt-auto-generator.c \
2462 src/shared/blkid-util.h
2464 systemd_gpt_auto_generator_LDADD = \
2465 libsystemd-label.la \
2466 libsystemd-internal.la \
2467 libudev-internal.la \
2468 libsystemd-shared.la \
2471 systemd_gpt_auto_generator_CFLAGS = \
2476 # ------------------------------------------------------------------------------
2478 systemgenerator_PROGRAMS += \
2479 systemd-dbus1-generator
2481 systemd_dbus1_generator_SOURCES = \
2482 src/dbus1-generator/dbus1-generator.c
2484 systemd_dbus1_generator_LDADD = \
2485 libsystemd-label.la \
2486 libsystemd-internal.la \
2487 libsystemd-shared.la
2489 dbus1-generator-install-hook:
2490 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2491 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2492 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2494 dbus1-generator-uninstall-hook:
2495 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2497 dist_xinitrc_SCRIPTS = \
2498 xorg/50-systemd-user.sh
2500 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2501 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2504 # ------------------------------------------------------------------------------
2505 systemd_sysv_generator_SOURCES = \
2506 src/sysv-generator/sysv-generator.c
2508 systemd_sysv_generator_LDADD = \
2509 libsystemd-core.la \
2510 libsystemd-label.la \
2511 libsystemd-shared.la
2513 # ------------------------------------------------------------------------------
2514 systemd_rc_local_generator_SOURCES = \
2515 src/rc-local-generator/rc-local-generator.c
2517 systemd_rc_local_generator_LDADD = \
2518 libsystemd-label.la \
2519 libsystemd-shared.la
2521 # ------------------------------------------------------------------------------
2522 systemd_remount_fs_SOURCES = \
2523 src/remount-fs/remount-fs.c \
2524 src/core/mount-setup.c \
2525 src/core/mount-setup.h
2527 systemd_remount_fs_LDADD = \
2528 libsystemd-label.la \
2529 libsystemd-shared.la
2531 # ------------------------------------------------------------------------------
2532 systemd_cgroups_agent_SOURCES = \
2533 src/cgroups-agent/cgroups-agent.c
2535 systemd_cgroups_agent_LDADD = \
2536 libsystemd-internal.la \
2537 libsystemd-shared.la
2539 # ------------------------------------------------------------------------------
2540 systemd_escape_SOURCES = \
2543 systemd_escape_LDADD = \
2544 libsystemd-shared.la
2546 # -----------------------------------------------------------------------------
2547 systemctl_SOURCES = \
2548 src/systemctl/systemctl.c
2551 libsystemd-units.la \
2552 libsystemd-label.la \
2553 libsystemd-internal.la \
2554 libsystemd-logs.la \
2555 libsystemd-journal-internal.la \
2556 libsystemd-shared.la
2558 # ------------------------------------------------------------------------------
2559 systemd_notify_SOURCES = \
2562 systemd_notify_LDADD = \
2563 libsystemd-internal.la \
2564 libsystemd-shared.la
2566 # ------------------------------------------------------------------------------
2567 systemd_path_SOURCES = \
2570 systemd_path_LDADD = \
2571 libsystemd-internal.la \
2572 libsystemd-shared.la
2574 # ------------------------------------------------------------------------------
2575 systemd_ask_password_SOURCES = \
2576 src/ask-password/ask-password.c
2578 systemd_ask_password_LDADD = \
2579 libsystemd-label.la \
2580 libsystemd-shared.la
2582 # ------------------------------------------------------------------------------
2583 systemd_reply_password_SOURCES = \
2584 src/reply-password/reply-password.c
2586 systemd_reply_password_LDADD = \
2587 libsystemd-shared.la
2589 # ------------------------------------------------------------------------------
2590 systemd_cgls_SOURCES = \
2593 systemd_cgls_LDADD = \
2594 libsystemd-internal.la \
2595 libsystemd-shared.la
2597 # ------------------------------------------------------------------------------
2598 systemd_cgtop_SOURCES = \
2601 systemd_cgtop_LDADD = \
2602 libsystemd-shared.la
2604 # ------------------------------------------------------------------------------
2605 systemd_nspawn_SOURCES = \
2606 src/nspawn/nspawn.c \
2607 src/core/mount-setup.c \
2608 src/core/mount-setup.h \
2609 src/core/loopback-setup.c \
2610 src/core/loopback-setup.h
2612 systemd_nspawn_CFLAGS = \
2617 systemd_nspawn_LDADD = \
2618 libsystemd-label.la \
2619 libsystemd-internal.la \
2620 libudev-internal.la \
2621 libsystemd-shared.la \
2625 systemd_nspawn_LDADD += \
2626 libsystemd-seccomp.la \
2630 # ------------------------------------------------------------------------------
2631 systemd_run_SOURCES = \
2634 systemd_run_LDADD = \
2635 libsystemd-label.la \
2636 libsystemd-internal.la \
2637 libsystemd-shared.la
2639 # ------------------------------------------------------------------------------
2640 systemd_bus_proxyd_SOURCES = \
2641 src/bus-proxyd/bus-proxyd.c \
2642 src/bus-proxyd/bus-xml-policy.c \
2643 src/bus-proxyd/bus-xml-policy.h
2645 systemd_bus_proxyd_LDADD = \
2646 libsystemd-internal.la \
2647 libsystemd-shared.la
2649 bus-proxyd-install-hook:
2650 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2651 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2652 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2654 bus-proxyd-uninstall-hook:
2655 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2657 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2658 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2661 nodist_systemunit_DATA += \
2662 units/systemd-bus-proxyd@.service
2664 dist_systemunit_DATA += \
2665 units/systemd-bus-proxyd.socket
2667 nodist_userunit_DATA += \
2668 units/user/systemd-bus-proxyd@.service
2670 dist_userunit_DATA += \
2671 units/user/systemd-bus-proxyd.socket
2675 units/systemd-bus-proxyd@.service.m4.in \
2676 units/user/systemd-bus-proxyd@.service.in
2679 units/systemd-bus-proxyd@.service.m4
2682 bus-proxyd-set-cap-hook:
2683 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2685 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2688 # ------------------------------------------------------------------------------
2689 systemd_tty_ask_password_agent_SOURCES = \
2690 src/tty-ask-password-agent/tty-ask-password-agent.c
2692 systemd_tty_ask_password_agent_LDADD = \
2693 libsystemd-label.la \
2694 libsystemd-shared.la
2696 # ------------------------------------------------------------------------------
2697 libsystemd_internal_la_SOURCES = \
2698 src/systemd/sd-bus.h \
2699 src/systemd/sd-bus-protocol.h \
2700 src/systemd/sd-bus-vtable.h \
2701 src/systemd/sd-utf8.h \
2702 src/systemd/sd-event.h \
2703 src/systemd/sd-rtnl.h \
2704 src/systemd/sd-resolve.h \
2705 src/systemd/sd-login.h \
2706 src/systemd/sd-id128.h \
2707 src/systemd/sd-daemon.h \
2708 src/systemd/sd-path.h \
2709 src/systemd/sd-network.h \
2710 src/systemd/sd-hwdb.h \
2711 src/libsystemd/sd-bus/sd-bus.c \
2712 src/libsystemd/sd-bus/bus-control.c \
2713 src/libsystemd/sd-bus/bus-control.h \
2714 src/libsystemd/sd-bus/bus-error.c \
2715 src/libsystemd/sd-bus/bus-error.h \
2716 src/libsystemd/sd-bus/bus-common-errors.h \
2717 src/libsystemd/sd-bus/bus-common-errors.c \
2718 src/libsystemd/sd-bus/bus-internal.c \
2719 src/libsystemd/sd-bus/bus-internal.h \
2720 src/libsystemd/sd-bus/bus-socket.c \
2721 src/libsystemd/sd-bus/bus-socket.h \
2722 src/libsystemd/sd-bus/bus-kernel.c \
2723 src/libsystemd/sd-bus/bus-kernel.h \
2724 src/libsystemd/sd-bus/bus-container.c \
2725 src/libsystemd/sd-bus/bus-container.h \
2726 src/libsystemd/sd-bus/bus-message.c \
2727 src/libsystemd/sd-bus/bus-message.h \
2728 src/libsystemd/sd-bus/bus-creds.c \
2729 src/libsystemd/sd-bus/bus-creds.h \
2730 src/libsystemd/sd-bus/bus-signature.c \
2731 src/libsystemd/sd-bus/bus-signature.h \
2732 src/libsystemd/sd-bus/bus-type.c \
2733 src/libsystemd/sd-bus/bus-type.h \
2734 src/libsystemd/sd-bus/bus-match.c \
2735 src/libsystemd/sd-bus/bus-match.h \
2736 src/libsystemd/sd-bus/bus-bloom.c \
2737 src/libsystemd/sd-bus/bus-bloom.h \
2738 src/libsystemd/sd-bus/bus-introspect.c \
2739 src/libsystemd/sd-bus/bus-introspect.h \
2740 src/libsystemd/sd-bus/bus-objects.c \
2741 src/libsystemd/sd-bus/bus-objects.h \
2742 src/libsystemd/sd-bus/bus-gvariant.c \
2743 src/libsystemd/sd-bus/bus-gvariant.h \
2744 src/libsystemd/sd-bus/bus-convenience.c \
2745 src/libsystemd/sd-bus/bus-track.c \
2746 src/libsystemd/sd-bus/bus-track.h \
2747 src/libsystemd/sd-bus/bus-util.c \
2748 src/libsystemd/sd-bus/bus-util.h \
2749 src/libsystemd/sd-bus/bus-slot.c \
2750 src/libsystemd/sd-bus/bus-slot.h \
2751 src/libsystemd/sd-bus/bus-protocol.h \
2752 src/libsystemd/sd-bus/kdbus.h \
2753 src/libsystemd/sd-utf8/sd-utf8.c \
2754 src/libsystemd/sd-event/sd-event.c \
2755 src/libsystemd/sd-event/event-util.h \
2756 src/libsystemd/sd-rtnl/sd-rtnl.c \
2757 src/libsystemd/sd-rtnl/rtnl-internal.h \
2758 src/libsystemd/sd-rtnl/rtnl-message.c \
2759 src/libsystemd/sd-rtnl/rtnl-types.h \
2760 src/libsystemd/sd-rtnl/rtnl-types.c \
2761 src/libsystemd/sd-rtnl/rtnl-util.h \
2762 src/libsystemd/sd-rtnl/rtnl-util.c \
2763 src/libsystemd/sd-rtnl/local-addresses.h \
2764 src/libsystemd/sd-rtnl/local-addresses.c \
2765 src/libsystemd/sd-id128/sd-id128.c \
2766 src/libsystemd/sd-daemon/sd-daemon.c \
2767 src/libsystemd/sd-login/sd-login.c \
2768 src/libsystemd/sd-path/sd-path.c \
2769 src/libsystemd/sd-network/sd-network.c \
2770 src/libsystemd/sd-network/network-util.h \
2771 src/libsystemd/sd-network/network-util.c \
2772 src/libsystemd/sd-hwdb/sd-hwdb.c \
2773 src/libsystemd/sd-hwdb/hwdb-util.h \
2774 src/libsystemd/sd-hwdb/hwdb-internal.h
2776 nodist_libsystemd_internal_la_SOURCES = \
2777 src/libsystemd/libsystemd.sym
2779 libsystemd_internal_la_CFLAGS = \
2783 libsystemd_internal_la_LIBADD = \
2786 libsystemd_resolve_la_SOURCES = \
2787 src/libsystemd/sd-resolve/sd-resolve.c \
2788 src/libsystemd/sd-resolve/resolve-util.h
2790 libsystemd_resolve_la_CFLAGS = \
2794 libsystemd_resolve_la_LIBADD = \
2797 noinst_LTLIBRARIES += \
2798 libsystemd-internal.la \
2799 libsystemd-resolve.la
2801 libsystemd_dump_la_SOURCES = \
2802 src/libsystemd/sd-bus/bus-dump.c \
2803 src/libsystemd/sd-bus/bus-dump.h
2805 noinst_LTLIBRARIES += \
2809 src/libsystemd/libsystemd.sym.m4 \
2810 src/libsystemd/libsystemd.pc.in \
2811 src/libsystemd/sd-bus/DIFFERENCES \
2812 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2815 src/libsystemd/libsystemd.sym
2818 src/libsystemd/libsystemd.sym
2820 libsystemd_la_SOURCES = \
2821 $(libsystemd_internal_la_SOURCES) \
2822 $(libsystemd_resolve_la_SOURCES) \
2823 $(libsystemd_journal_internal_la_SOURCES)
2825 nodist_libsystemd_la_SOURCES = \
2826 $(nodist_libsystemd_internal_la_SOURCES)
2828 libsystemd_la_CFLAGS = \
2829 $(libsystemd_internal_la_CFLAGS) \
2830 $(libsystemd_resolve_la_CFLAGS) \
2831 $(libsystemd_journal_internal_la_CFLAGS)
2833 libsystemd_la_LDFLAGS = \
2835 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2836 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2838 libsystemd_la_LIBADD = \
2839 libsystemd-shared.la \
2840 $(libsystemd_internal_la_LIBADD) \
2841 $(libsystemd_journal_internal_la_LIBADD) \
2842 $(libsystemd_resolve_la_LIBADD)
2844 libsystemd-install-hook:
2845 libname=libsystemd.so && $(move-to-rootlibdir)
2847 libsystemd-uninstall-hook:
2848 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2850 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2851 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2853 pkgconfiglib_DATA += \
2854 src/libsystemd/libsystemd.pc
2856 pkginclude_HEADERS += \
2857 src/systemd/sd-login.h \
2858 src/systemd/sd-id128.h \
2859 src/systemd/sd-daemon.h
2862 pkginclude_HEADERS += \
2863 src/systemd/sd-bus.h \
2864 src/systemd/sd-bus-protocol.h \
2865 src/systemd/sd-bus-vtable.h \
2866 src/systemd/sd-utf8.h \
2867 src/systemd/sd-event.h \
2868 src/systemd/sd-rtnl.h \
2869 src/systemd/sd-resolve.h \
2870 src/systemd/sd-path.h
2873 lib_LTLIBRARIES += \
2878 test-bus-signature \
2884 test-bus-kernel-bloom \
2885 test-bus-kernel-benchmark \
2886 test-bus-zero-copy \
2887 test-bus-introspect \
2894 test-local-addresses \
2900 test_bus_marshal_SOURCES = \
2901 src/libsystemd/sd-bus/test-bus-marshal.c
2903 test_bus_marshal_LDADD = \
2904 libsystemd-dump.la \
2905 libsystemd-internal.la \
2906 libsystemd-shared.la \
2910 test_bus_marshal_CFLAGS = \
2915 test_bus_signature_SOURCES = \
2916 src/libsystemd/sd-bus/test-bus-signature.c
2918 test_bus_signature_LDADD = \
2919 libsystemd-internal.la \
2920 libsystemd-shared.la
2922 test_bus_chat_SOURCES = \
2923 src/libsystemd/sd-bus/test-bus-chat.c
2925 test_bus_chat_CFLAGS = \
2929 test_bus_chat_LDADD = \
2930 libsystemd-internal.la \
2931 libsystemd-shared.la
2933 test_bus_cleanup_SOURCES = \
2934 src/libsystemd/sd-bus/test-bus-cleanup.c
2936 test_bus_cleanup_CFLAGS = \
2940 test_bus_cleanup_LDADD = \
2941 libsystemd-internal.la \
2942 libsystemd-shared.la
2944 test_bus_server_SOURCES = \
2945 src/libsystemd/sd-bus/test-bus-server.c
2947 test_bus_server_CFLAGS = \
2951 test_bus_server_LDADD = \
2952 libsystemd-internal.la \
2953 libsystemd-shared.la
2955 test_bus_objects_SOURCES = \
2956 src/libsystemd/sd-bus/test-bus-objects.c
2958 test_bus_objects_CFLAGS = \
2962 test_bus_objects_LDADD = \
2963 libsystemd-dump.la \
2964 libsystemd-internal.la \
2965 libsystemd-shared.la
2967 test_bus_error_SOURCES = \
2968 src/libsystemd/sd-bus/test-bus-error.c
2970 test_bus_error_LDADD = \
2971 libsystemd-internal.la \
2972 libsystemd-shared.la
2974 test_bus_gvariant_SOURCES = \
2975 src/libsystemd/sd-bus/test-bus-gvariant.c
2977 test_bus_gvariant_LDADD = \
2978 libsystemd-dump.la \
2979 libsystemd-internal.la \
2980 libsystemd-shared.la \
2983 test_bus_gvariant_CFLAGS = \
2987 test_bus_creds_SOURCES = \
2988 src/libsystemd/sd-bus/test-bus-creds.c
2990 test_bus_creds_LDADD = \
2991 libsystemd-dump.la \
2992 libsystemd-internal.la \
2993 libsystemd-shared.la
2995 test_bus_match_SOURCES = \
2996 src/libsystemd/sd-bus/test-bus-match.c
2998 test_bus_match_LDADD = \
2999 libsystemd-internal.la \
3000 libsystemd-shared.la
3002 test_bus_kernel_SOURCES = \
3003 src/libsystemd/sd-bus/test-bus-kernel.c
3005 test_bus_kernel_LDADD = \
3006 libsystemd-dump.la \
3007 libsystemd-internal.la \
3008 libsystemd-shared.la
3010 test_bus_kernel_bloom_SOURCES = \
3011 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3013 test_bus_kernel_bloom_LDADD = \
3014 libsystemd-internal.la \
3015 libsystemd-shared.la
3017 test_bus_kernel_benchmark_SOURCES = \
3018 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3020 test_bus_kernel_benchmark_LDADD = \
3021 libsystemd-internal.la \
3022 libsystemd-shared.la
3024 test_bus_zero_copy_SOURCES = \
3025 src/libsystemd/sd-bus/test-bus-zero-copy.c
3027 test_bus_zero_copy_LDADD = \
3028 libsystemd-dump.la \
3029 libsystemd-internal.la \
3030 libsystemd-shared.la
3032 test_bus_introspect_SOURCES = \
3033 src/libsystemd/sd-bus/test-bus-introspect.c
3035 test_bus_introspect_LDADD = \
3036 libsystemd-internal.la \
3037 libsystemd-shared.la
3039 test_event_SOURCES = \
3040 src/libsystemd/sd-event/test-event.c
3042 test_event_LDADD = \
3043 libsystemd-internal.la \
3044 libsystemd-shared.la
3046 test_rtnl_SOURCES = \
3047 src/libsystemd/sd-rtnl/test-rtnl.c
3050 libsystemd-internal.la \
3051 libsystemd-shared.la
3053 test_local_addresses_SOURCES = \
3054 src/libsystemd/sd-rtnl/test-local-addresses.c
3056 test_local_addresses_LDADD = \
3057 libsystemd-internal.la \
3058 libsystemd-shared.la
3060 test_resolve_SOURCES = \
3061 src/libsystemd/sd-resolve/test-resolve.c
3063 test_resolve_LDADD = \
3064 libsystemd-resolve.la \
3065 libsystemd-internal.la \
3066 libsystemd-shared.la
3068 test_resolve_CFLAGS = \
3073 src/libsystemd/sd-bus/busctl.c \
3074 src/libsystemd/sd-bus/busctl-introspect.c \
3075 src/libsystemd/sd-bus/busctl-introspect.h
3078 libsystemd-dump.la \
3079 libsystemd-internal.la \
3080 libsystemd-shared.la
3082 # ------------------------------------------------------------------------------
3083 noinst_LTLIBRARIES += \
3084 libsystemd-network.la
3086 libsystemd_network_la_CFLAGS = \
3090 libsystemd_network_la_SOURCES = \
3091 src/systemd/sd-dhcp-client.h \
3092 src/systemd/sd-dhcp-server.h \
3093 src/systemd/sd-dhcp-lease.h \
3094 src/systemd/sd-ipv4ll.h \
3095 src/systemd/sd-icmp6-nd.h \
3096 src/systemd/sd-dhcp6-client.h \
3097 src/systemd/sd-dhcp6-lease.h \
3098 src/systemd/sd-pppoe.h \
3099 src/systemd/sd-lldp.h \
3100 src/libsystemd-network/sd-dhcp-client.c \
3101 src/libsystemd-network/sd-dhcp-server.c \
3102 src/libsystemd-network/dhcp-network.c \
3103 src/libsystemd-network/dhcp-option.c \
3104 src/libsystemd-network/dhcp-packet.c \
3105 src/libsystemd-network/dhcp-internal.h \
3106 src/libsystemd-network/dhcp-server-internal.h \
3107 src/libsystemd-network/dhcp-protocol.h \
3108 src/libsystemd-network/dhcp-lease-internal.h \
3109 src/libsystemd-network/sd-dhcp-lease.c \
3110 src/libsystemd-network/sd-ipv4ll.c \
3111 src/libsystemd-network/ipv4ll-network.c \
3112 src/libsystemd-network/ipv4ll-packet.c \
3113 src/libsystemd-network/ipv4ll-internal.h \
3114 src/libsystemd-network/sd-pppoe.c \
3115 src/libsystemd-network/network-internal.c \
3116 src/libsystemd-network/network-internal.h \
3117 src/libsystemd-network/sd-icmp6-nd.c \
3118 src/libsystemd-network/sd-dhcp6-client.c \
3119 src/libsystemd-network/dhcp6-internal.h \
3120 src/libsystemd-network/dhcp6-protocol.h \
3121 src/libsystemd-network/dhcp6-network.c \
3122 src/libsystemd-network/dhcp6-option.c \
3123 src/libsystemd-network/dhcp6-lease-internal.h \
3124 src/libsystemd-network/sd-dhcp6-lease.c \
3125 src/libsystemd-network/lldp.h \
3126 src/libsystemd-network/lldp-tlv.h \
3127 src/libsystemd-network/lldp-tlv.c \
3128 src/libsystemd-network/lldp-network.h \
3129 src/libsystemd-network/lldp-network.c \
3130 src/libsystemd-network/lldp-port.h \
3131 src/libsystemd-network/lldp-port.c \
3132 src/libsystemd-network/lldp-internal.h \
3133 src/libsystemd-network/lldp-internal.c \
3134 src/libsystemd-network/lldp-util.h \
3135 src/libsystemd-network/sd-lldp.c
3137 libsystemd_network_la_LIBADD = \
3138 libudev-internal.la \
3139 libsystemd-label.la \
3140 libsystemd-internal.la \
3141 libsystemd-shared.la \
3144 test_dhcp_option_SOURCES = \
3145 src/libsystemd-network/dhcp-protocol.h \
3146 src/libsystemd-network/dhcp-internal.h \
3147 src/libsystemd-network/test-dhcp-option.c
3149 test_dhcp_option_LDADD = \
3150 libsystemd-network.la \
3151 libsystemd-internal.la \
3152 libsystemd-shared.la
3154 test_dhcp_client_SOURCES = \
3155 src/systemd/sd-dhcp-client.h \
3156 src/libsystemd-network/dhcp-protocol.h \
3157 src/libsystemd-network/dhcp-internal.h \
3158 src/libsystemd-network/test-dhcp-client.c
3160 test_dhcp_client_LDADD = \
3161 libsystemd-network.la \
3162 libsystemd-label.la \
3163 libsystemd-internal.la \
3164 libsystemd-shared.la
3166 test_dhcp_server_SOURCES = \
3167 src/libsystemd-network/test-dhcp-server.c
3169 test_dhcp_server_LDADD = \
3170 libsystemd-network.la \
3171 libsystemd-internal.la \
3172 libsystemd-shared.la
3174 test_ipv4ll_SOURCES = \
3175 src/systemd/sd-ipv4ll.h \
3176 src/libsystemd-network/ipv4ll-internal.h \
3177 src/libsystemd-network/test-ipv4ll.c
3179 test_ipv4ll_LDADD = \
3180 libsystemd-network.la \
3181 libsystemd-label.la \
3182 libsystemd-internal.la \
3183 libsystemd-shared.la
3185 test_pppoe_SOURCES = \
3186 src/systemd/sd-pppoe.h \
3187 src/libsystemd-network/test-pppoe.c
3189 test_pppoe_LDADD = \
3190 libsystemd-network.la \
3191 libsystemd-shared.la
3193 test_icmp6_rs_SOURCES = \
3194 src/systemd/sd-dhcp6-client.h \
3195 src/systemd/sd-icmp6-nd.h \
3196 src/libsystemd-network/dhcp6-internal.h \
3197 src/libsystemd-network/test-icmp6-rs.c
3199 test_icmp6_rs_LDADD = \
3200 libsystemd-network.la \
3201 libsystemd-internal.la \
3202 libsystemd-shared.la
3204 test_dhcp6_client_SOURCES = \
3205 src/systemd/sd-dhcp6-client.h \
3206 src/libsystemd-network/dhcp6-internal.h \
3207 src/libsystemd-network/test-dhcp6-client.c
3209 test_dhcp6_client_LDADD = \
3210 libsystemd-network.la \
3211 libsystemd-internal.la \
3212 libsystemd-shared.la
3214 test_lldp_SOURCES = \
3215 src/libsystemd-network/lldp.h \
3216 src/libsystemd-network/lldp-tlv.h \
3217 src/libsystemd-network/lldp-tlv.c \
3218 src/libsystemd-network/test-lldp.c
3221 libsystemd-network.la \
3222 libsystemd-internal.la \
3223 libsystemd-shared.la
3237 # ------------------------------------------------------------------------------
3239 noinst_LTLIBRARIES += \
3240 libsystemd-terminal.la
3242 rootlibexec_PROGRAMS += \
3245 noinst_PROGRAMS += \
3250 dist_pkgdata_DATA += \
3251 src/libsystemd-terminal/unifont-glyph-array.bin
3253 nodist_userunit_DATA += \
3254 units/user/systemd-consoled.service
3256 USER_DEFAULT_TARGET_WANTS += \
3257 systemd-consoled.service
3266 units/user/systemd-consoled.service.in
3268 libsystemd_terminal_la_CFLAGS = \
3272 libsystemd_terminal_la_SOURCES = \
3273 src/libsystemd-terminal/grdev.h \
3274 src/libsystemd-terminal/grdev-internal.h \
3275 src/libsystemd-terminal/grdev.c \
3276 src/libsystemd-terminal/grdev-drm.c \
3277 src/libsystemd-terminal/idev.h \
3278 src/libsystemd-terminal/idev-internal.h \
3279 src/libsystemd-terminal/idev.c \
3280 src/libsystemd-terminal/idev-evdev.c \
3281 src/libsystemd-terminal/idev-keyboard.c \
3282 src/libsystemd-terminal/sysview.h \
3283 src/libsystemd-terminal/sysview-internal.h \
3284 src/libsystemd-terminal/sysview.c \
3285 src/libsystemd-terminal/term.h \
3286 src/libsystemd-terminal/term-internal.h \
3287 src/libsystemd-terminal/term-charset.c \
3288 src/libsystemd-terminal/term-page.c \
3289 src/libsystemd-terminal/term-parser.c \
3290 src/libsystemd-terminal/term-screen.c \
3291 src/libsystemd-terminal/term-wcwidth.c \
3292 src/libsystemd-terminal/unifont.h \
3293 src/libsystemd-terminal/unifont-def.h \
3294 src/libsystemd-terminal/unifont.c
3296 libsystemd_terminal_la_LIBADD = \
3297 libudev-internal.la \
3298 libsystemd-internal.la \
3299 libsystemd-shared.la \
3302 systemd_consoled_CFLAGS = \
3306 systemd_consoled_SOURCES = \
3307 src/console/consoled.h \
3308 src/console/consoled.c \
3309 src/console/consoled-display.c \
3310 src/console/consoled-manager.c \
3311 src/console/consoled-session.c \
3312 src/console/consoled-terminal.c \
3313 src/console/consoled-workspace.c
3315 systemd_consoled_LDADD = \
3316 libsystemd-terminal.la \
3317 libsystemd-internal.la \
3318 libsystemd-shared.la \
3321 systemd_evcat_CFLAGS = \
3325 systemd_evcat_SOURCES = \
3326 src/libsystemd-terminal/evcat.c
3328 systemd_evcat_LDADD = \
3329 libsystemd-terminal.la \
3330 libsystemd-internal.la \
3331 libsystemd-shared.la \
3334 systemd_modeset_CFLAGS = \
3338 systemd_modeset_SOURCES = \
3339 src/libsystemd-terminal/modeset.c
3341 systemd_modeset_LDADD = \
3342 libsystemd-terminal.la \
3343 libsystemd-internal.la \
3344 libsystemd-shared.la \
3347 systemd_subterm_SOURCES = \
3348 src/libsystemd-terminal/subterm.c
3350 systemd_subterm_LDADD = \
3351 libsystemd-terminal.la \
3352 libsystemd-internal.la \
3353 libsystemd-shared.la
3355 test_term_page_SOURCES = \
3356 src/libsystemd-terminal/test-term-page.c
3358 test_term_page_LDADD = \
3359 libsystemd-terminal.la \
3360 libsystemd-internal.la \
3361 libsystemd-shared.la
3363 test_term_parser_SOURCES = \
3364 src/libsystemd-terminal/test-term-parser.c
3366 test_term_parser_LDADD = \
3367 libsystemd-terminal.la \
3368 libsystemd-internal.la \
3369 libsystemd-shared.la
3371 test_unifont_SOURCES = \
3372 src/libsystemd-terminal/test-unifont.c
3374 test_unifont_LDADD = \
3375 libsystemd-terminal.la \
3376 libsystemd-internal.la \
3377 libsystemd-shared.la
3379 .PHONY: update-unifont
3380 update-unifont: tools/compile-unifont.py
3381 $(AM_V_GEN)$(PYTHON) $< \
3382 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3383 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3384 @echo "unifont-glyph-array.bin has been regenerated"
3386 # ------------------------------------------------------------------------------
3396 include_HEADERS += \
3397 src/libudev/libudev.h
3399 lib_LTLIBRARIES += \
3402 libudev_la_SOURCES =\
3403 src/libudev/libudev.sym \
3404 src/libudev/libudev-private.h \
3405 src/libudev/libudev.c \
3406 src/libudev/libudev-list.c \
3407 src/libudev/libudev-util.c \
3408 src/libudev/libudev-device.c \
3409 src/libudev/libudev-enumerate.c \
3410 src/libudev/libudev-monitor.c \
3411 src/libudev/libudev-queue.c \
3412 src/libudev/libudev-hwdb.c
3414 libudev_la_CFLAGS = \
3418 libudev_la_LDFLAGS = \
3420 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3421 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3423 libudev_la_LIBADD = \
3424 libsystemd-internal.la \
3425 libsystemd-shared.la
3427 pkgconfiglib_DATA += \
3428 src/libudev/libudev.pc
3431 src/libudev/libudev.pc.in
3434 src/libudev/libudev.pc \
3439 $(AM_V_at)$(MKDIR_P) $(dir $@)
3440 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3443 $(AM_V_at)$(MKDIR_P) $(dir $@)
3444 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3446 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3447 libudev-install-hook:
3448 libname=libudev.so && $(move-to-rootlibdir)
3450 libudev-uninstall-hook:
3451 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3453 INSTALL_EXEC_HOOKS += libudev-install-hook
3454 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3456 # ------------------------------------------------------------------------------
3457 noinst_LTLIBRARIES += \
3460 libudev_internal_la_SOURCES =\
3461 $(libudev_la_SOURCES) \
3462 src/libudev/libudev-device-private.c
3464 libudev_internal_la_CFLAGS = \
3466 -fvisibility=default
3468 # ------------------------------------------------------------------------------
3470 $(sysconfdir)/udev/rules.d
3472 dist_network_DATA = \
3473 network/99-default.link \
3474 network/80-container-host0.network \
3475 network/80-container-ve.network
3477 dist_udevrules_DATA += \
3478 rules/42-usb-hid-pm.rules \
3479 rules/50-udev-default.rules \
3480 rules/60-drm.rules \
3481 rules/60-keyboard.rules \
3482 rules/70-mouse.rules \
3483 rules/60-persistent-storage-tape.rules \
3484 rules/60-persistent-serial.rules \
3485 rules/60-persistent-input.rules \
3486 rules/60-persistent-alsa.rules \
3487 rules/60-persistent-storage.rules \
3488 rules/64-btrfs.rules \
3489 rules/75-net-description.rules \
3490 rules/75-tty-description.rules \
3491 rules/78-sound-card.rules \
3492 rules/80-net-setup-link.rules \
3493 rules/95-udev-late.rules
3495 nodist_udevrules_DATA += \
3496 rules/99-systemd.rules
3498 udevconfdir = $(sysconfdir)/udev
3499 dist_udevconf_DATA = \
3502 sharepkgconfigdir = $(datadir)/pkgconfig
3503 sharepkgconfig_DATA = \
3507 rules/99-systemd.rules.in \
3511 rules/99-systemd.rules \
3515 units/systemd-udevd.service.in \
3516 units/systemd-udev-trigger.service.in \
3517 units/systemd-udev-settle.service.in
3520 units/systemd-udevd.service \
3521 units/systemd-udev-trigger.service \
3522 units/systemd-udev-settle.service
3524 SOCKETS_TARGET_WANTS += \
3525 systemd-udevd-control.socket \
3526 systemd-udevd-kernel.socket
3528 SYSINIT_TARGET_WANTS += \
3529 systemd-udevd.service \
3530 systemd-udev-trigger.service
3532 rootbin_PROGRAMS += \
3535 rootlibexec_PROGRAMS += \
3538 noinst_LTLIBRARIES += \
3541 src/udev/keyboard-keys.txt:
3542 $(AM_V_at)$(MKDIR_P) $(dir $@)
3543 $(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/' > $@
3545 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3546 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3548 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3549 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3551 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3552 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3554 libudev_core_la_SOURCES = \
3556 src/udev/udev-event.c \
3557 src/udev/udev-watch.c \
3558 src/udev/udev-node.c \
3559 src/udev/udev-rules.c \
3560 src/udev/udev-ctrl.c \
3561 src/udev/udev-builtin.c \
3562 src/udev/udev-builtin-btrfs.c \
3563 src/udev/udev-builtin-hwdb.c \
3564 src/udev/udev-builtin-input_id.c \
3565 src/udev/udev-builtin-keyboard.c \
3566 src/udev/udev-builtin-net_id.c \
3567 src/udev/udev-builtin-net_setup_link.c \
3568 src/udev/udev-builtin-path_id.c \
3569 src/udev/udev-builtin-usb_id.c \
3570 src/udev/net/link-config.h \
3571 src/udev/net/link-config.c \
3572 src/udev/net/ethtool-util.h \
3573 src/udev/net/ethtool-util.c
3575 nodist_libudev_core_la_SOURCES = \
3576 src/udev/keyboard-keys-from-name.h \
3577 src/udev/keyboard-keys-to-name.h \
3578 src/udev/net/link-config-gperf.c
3581 $(nodist_libudev_core_la_SOURCES)
3584 src/udev/keyboard-keys-from-name.gperf \
3585 src/udev/keyboard-keys.txt \
3586 src/udev/net/link-config-gperf.c
3589 src/udev/net/link-config-gperf.gperf
3591 libudev_core_la_CFLAGS = \
3596 libudev_core_la_LIBADD = \
3597 libudev-internal.la \
3598 libsystemd-label.la \
3599 libsystemd-internal.la \
3600 libsystemd-network.la \
3601 libsystemd-shared.la \
3606 libudev_core_la_SOURCES += \
3607 src/udev/udev-builtin-kmod.c
3609 dist_udevrules_DATA += \
3610 rules/80-drivers.rules
3614 libudev_core_la_SOURCES += \
3615 src/udev/udev-builtin-blkid.c
3619 libudev_core_la_SOURCES += \
3620 src/udev/udev-builtin-uaccess.c \
3621 src/login/logind-acl.c \
3622 src/libsystemd/sd-login/sd-login.c \
3623 src/systemd/sd-login.h
3625 libudev_core_la_LIBADD += \
3629 systemd_udevd_SOURCES = \
3632 systemd_udevd_LDADD = \
3636 src/udev/udevadm.c \
3637 src/udev/udevadm-info.c \
3638 src/udev/udevadm-control.c \
3639 src/udev/udevadm-monitor.c \
3640 src/udev/udevadm-hwdb.c \
3641 src/udev/udevadm-settle.c \
3642 src/udev/udevadm-trigger.c \
3643 src/udev/udevadm-test.c \
3644 src/udev/udevadm-test-builtin.c \
3645 src/udev/udevadm-util.c \
3646 src/udev/udevadm-util.h
3651 # ------------------------------------------------------------------------------
3654 $(sysconfdir)/udev/hwdb.d
3656 systemd_hwdb_SOURCES = \
3657 src/libsystemd/sd-hwdb/hwdb-internal.h \
3660 systemd_hwdb_LDADD = \
3661 libsystemd-shared.la \
3662 libsystemd-internal.la \
3665 rootbin_PROGRAMS += \
3668 dist_udevhwdb_DATA = \
3669 hwdb/20-pci-vendor-model.hwdb \
3670 hwdb/20-pci-classes.hwdb \
3671 hwdb/20-usb-vendor-model.hwdb \
3672 hwdb/20-usb-classes.hwdb \
3673 hwdb/20-sdio-vendor-model.hwdb \
3674 hwdb/20-sdio-classes.hwdb \
3675 hwdb/20-bluetooth-vendor-product.hwdb \
3676 hwdb/20-acpi-vendor.hwdb \
3678 hwdb/20-net-ifname.hwdb \
3679 hwdb/60-keyboard.hwdb \
3683 units/systemd-hwdb-update.service.in
3686 units/systemd-hwdb-update.service
3688 SYSINIT_TARGET_WANTS += \
3689 systemd-hwdb-update.service
3691 # Update hwdb on installation. Do not bother if installing
3692 # in DESTDIR, since this is likely for packaging purposes.
3694 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3696 INSTALL_DATA_HOOKS += \
3700 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3703 # ------------------------------------------------------------------------------
3712 test_libudev_SOURCES = \
3713 src/test/test-libudev.c
3715 test_libudev_LDADD = \
3716 libsystemd-label.la \
3717 libudev-internal.la \
3718 libsystemd-shared.la \
3719 libsystemd-internal.la
3721 test_udev_SOURCES = \
3722 src/test/test-udev.c
3731 test_udev_LDADD += \
3738 # packed sysfs test tree
3740 $(AM_V_at)$(MKDIR_P) $(dir $@)
3741 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3745 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3750 test/rules-test.sh \
3751 test/rule-syntax-check.py
3753 # ------------------------------------------------------------------------------
3755 src/udev/ata_id/ata_id.c
3758 libudev-internal.la \
3759 libsystemd-shared.la
3761 udevlibexec_PROGRAMS += \
3764 # ------------------------------------------------------------------------------
3765 cdrom_id_SOURCES = \
3766 src/udev/cdrom_id/cdrom_id.c
3769 libudev-internal.la \
3770 libsystemd-shared.la
3772 udevlibexec_PROGRAMS += \
3775 dist_udevrules_DATA += \
3776 rules/60-cdrom_id.rules
3778 # ------------------------------------------------------------------------------
3780 src/udev/collect/collect.c
3783 libudev-internal.la \
3784 libsystemd-shared.la
3786 udevlibexec_PROGRAMS += \
3789 # ------------------------------------------------------------------------------
3791 src/udev/scsi_id/scsi_id.c \
3792 src/udev/scsi_id/scsi_serial.c \
3793 src/udev/scsi_id/scsi.h \
3794 src/udev/scsi_id/scsi_id.h
3797 libudev-internal.la \
3798 libsystemd-shared.la
3800 udevlibexec_PROGRAMS += \
3804 src/udev/scsi_id/README
3806 # ------------------------------------------------------------------------------
3808 src/udev/v4l_id/v4l_id.c
3811 libudev-internal.la \
3812 libsystemd-shared.la
3814 udevlibexec_PROGRAMS += \
3817 dist_udevrules_DATA += \
3818 rules/60-persistent-v4l.rules
3820 # ------------------------------------------------------------------------------
3821 accelerometer_SOURCES = \
3822 src/udev/accelerometer/accelerometer.c
3824 accelerometer_LDADD = \
3825 libudev-internal.la \
3826 libsystemd-shared.la
3828 udevlibexec_PROGRAMS += \
3831 dist_udevrules_DATA += \
3832 rules/61-accelerometer.rules
3834 # ------------------------------------------------------------------------------
3841 libgudev_includedir = \
3842 $(includedir)/gudev-1.0/gudev
3844 libgudev_include_HEADERS = \
3846 src/gudev/gudevenums.h \
3847 src/gudev/gudevenumtypes.h \
3848 src/gudev/gudevtypes.h \
3849 src/gudev/gudevclient.h \
3850 src/gudev/gudevdevice.h \
3851 src/gudev/gudevenumerator.h
3853 lib_LTLIBRARIES += libgudev-1.0.la
3855 pkgconfiglib_DATA += \
3856 src/gudev/gudev-1.0.pc
3859 src/gudev/gudev-1.0.pc
3861 libgudev_1_0_la_SOURCES = \
3862 src/gudev/libgudev-1.0.sym \
3863 src/gudev/gudevenums.h \
3864 src/gudev/gudevenumtypes.h \
3865 src/gudev/gudevenumtypes.h\
3866 src/gudev/gudevtypes.h \
3867 src/gudev/gudevclient.h \
3868 src/gudev/gudevclient.c \
3869 src/gudev/gudevdevice.h \
3870 src/gudev/gudevdevice.c \
3871 src/gudev/gudevenumerator.h \
3872 src/gudev/gudevenumerator.c \
3873 src/gudev/gudevprivate.h
3875 nodist_libgudev_1_0_la_SOURCES = \
3876 src/gudev/gudevmarshal.h \
3877 src/gudev/gudevmarshal.c \
3878 src/gudev/gudevenumtypes.h \
3879 src/gudev/gudevenumtypes.c
3882 $(nodist_libgudev_1_0_la_SOURCES)
3884 libgudev_1_0_la_CPPFLAGS = \
3886 -I$(top_builddir)/src\
3887 -I$(top_srcdir)/src\
3888 -I$(top_builddir)/src/gudev \
3889 -I$(top_srcdir)/src/gudev \
3890 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3891 -D_GUDEV_COMPILATION \
3892 -DG_LOG_DOMAIN=\"GUdev\"
3894 libgudev_1_0_la_CFLAGS = \
3896 -fvisibility=default \
3899 libgudev_1_0_la_LIBADD = \
3903 libgudev_1_0_la_LDFLAGS = \
3905 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3908 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3910 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3911 $(AM_V_at)$(MKDIR_P) $(dir $@)
3912 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3914 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3915 $(AM_V_at)$(MKDIR_P) $(dir $@)
3916 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3917 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3919 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3920 $(AM_V_at)$(MKDIR_P) $(dir $@)
3921 $(AM_V_GEN)glib-mkenums --template $^ > $@
3923 if HAVE_INTROSPECTION
3924 -include $(INTROSPECTION_MAKEFILE)
3926 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3928 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3930 src_gudev_GUdev_1_0_gir_CFLAGS = \
3933 -D_GUDEV_COMPILATION \
3934 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3935 -I$(top_srcdir)/src \
3936 -I$(top_builddir)/src \
3937 -I$(top_srcdir)/src/gudev \
3938 -I$(top_builddir)/src/gudev
3940 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3942 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3943 --pkg-export=gudev-1.0 \
3946 src_gudev_GUdev_1_0_gir_FILES = \
3948 src/gudev/gudevtypes.h \
3949 src/gudev/gudevenums.h \
3950 src/gudev/gudevenumtypes.h \
3951 src/gudev/gudevclient.h \
3952 src/gudev/gudevdevice.h \
3953 src/gudev/gudevenumerator.h \
3954 src/gudev/gudevclient.c \
3955 src/gudev/gudevdevice.c \
3956 src/gudev/gudevenumerator.c
3958 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3959 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3961 girdir = $(datadir)/gir-1.0
3963 src/gudev/GUdev-1.0.gir
3965 typelibsdir = $(libdir)/girepository-1.0
3967 src/gudev/GUdev-1.0.typelib
3969 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3970 endif # HAVE_INTROSPECTION
3974 src/gudev/gudev-1.0.pc.in \
3975 src/gudev/gudevmarshal.list \
3976 src/gudev/gudevenumtypes.h.template \
3977 src/gudev/gudevenumtypes.c.template \
3978 src/gudev/gjs-example.js \
3979 src/gudev/seed-example-enum.js \
3980 src/gudev/seed-example.js
3982 # ------------------------------------------------------------------------------
3983 mtd_probe_SOURCES = \
3984 src/udev/mtd_probe/mtd_probe.c \
3985 src/udev/mtd_probe/mtd_probe.h \
3986 src/udev/mtd_probe/probe_smartmedia.c
3988 dist_udevrules_DATA += \
3989 rules/75-probe_mtd.rules
3991 udevlibexec_PROGRAMS += \
3994 # ------------------------------------------------------------------------------
3995 test_id128_SOURCES = \
3996 src/test/test-id128.c
3998 test_id128_LDADD = \
3999 libsystemd-internal.la \
4000 libsystemd-shared.la
4005 # ------------------------------------------------------------------------------
4007 rootlibexec_PROGRAMS += \
4010 systemd_activate_SOURCES = \
4011 src/activate/activate.c
4013 systemd_activate_LDADD = \
4014 libsystemd-label.la \
4015 libsystemd-internal.la \
4016 libsystemd-shared.la
4018 # ------------------------------------------------------------------------------
4019 systemd_journald_SOURCES = \
4020 src/journal/journald.c \
4021 src/journal/journald-server.h
4023 systemd_journald_LDADD = \
4024 libsystemd-journal-core.la \
4025 libsystemd-internal.la \
4026 libsystemd-shared.la
4028 systemd_cat_SOURCES = \
4031 systemd_cat_LDADD = \
4032 libsystemd-journal-core.la
4035 rootlibexec_PROGRAMS += \
4036 systemd-journal-remote
4038 systemd_journal_remote_SOURCES = \
4039 src/journal-remote/journal-remote-parse.h \
4040 src/journal-remote/journal-remote-parse.c \
4041 src/journal-remote/journal-remote-write.h \
4042 src/journal-remote/journal-remote-write.c \
4043 src/journal-remote/journal-remote.h \
4044 src/journal-remote/journal-remote.c
4046 systemd_journal_remote_LDADD = \
4047 libsystemd-internal.la \
4048 libsystemd-journal-core.la
4050 systemd_journal_remote_SOURCES += \
4051 src/journal-remote/microhttpd-util.h \
4052 src/journal-remote/microhttpd-util.c
4054 systemd_journal_remote_CFLAGS = \
4056 $(MICROHTTPD_CFLAGS)
4058 systemd_journal_remote_LDADD += \
4062 dist_sysusers_DATA += \
4063 sysusers.d/systemd-remote.conf
4067 dist_tmpfiles_DATA += \
4068 tmpfiles.d/systemd-remote.conf
4072 systemd_journal_remote_LDADD += \
4075 # systemd-journal-remote make sense mostly with full crypto stack
4076 dist_systemunit_DATA += \
4077 units/systemd-journal-remote.socket
4079 nodist_systemunit_DATA += \
4080 units/systemd-journal-remote.service
4083 units/systemd-journal-remote.service.in
4085 journal-remote-install-hook: journal-install-hook
4086 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4087 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4088 -chmod 755 $(DESTDIR)/var/log/journal/remote
4090 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4094 nodist_pkgsysconf_DATA += \
4095 src/journal-remote/journal-remote.conf
4098 src/journal-remote/journal-remote.conf.in
4101 src/journal-remote/journal-remote.conf
4105 rootlibexec_PROGRAMS += \
4106 systemd-journal-upload
4108 systemd_journal_upload_SOURCES = \
4109 src/journal-remote/journal-upload.h \
4110 src/journal-remote/journal-upload.c \
4111 src/journal-remote/journal-upload-journal.c
4113 systemd_journal_upload_CFLAGS = \
4117 systemd_journal_upload_LDADD = \
4118 libsystemd-internal.la \
4119 libsystemd-journal-internal.la \
4120 libsystemd-shared.la \
4123 nodist_systemunit_DATA += \
4124 units/systemd-journal-upload.service
4127 units/systemd-journal-upload.service.in
4129 nodist_pkgsysconf_DATA += \
4130 src/journal-remote/journal-upload.conf
4133 src/journal-remote/journal-upload.conf.in
4136 src/journal-remote/journal-upload.conf
4139 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4140 journalctl_CFLAGS = \
4143 journalctl_SOURCES = \
4144 src/journal/journalctl.c
4146 journalctl_LDADD = \
4147 libsystemd-journal-internal.la \
4148 libsystemd-internal.la \
4149 libsystemd-logs.la \
4150 libsystemd-shared.la
4153 journalctl_LDADD += \
4158 journalctl_SOURCES += \
4159 src/journal/journal-qrcode.c \
4160 src/journal/journal-qrcode.h
4162 journalctl_CFLAGS += \
4165 journalctl_LDADD += \
4169 test_journal_SOURCES = \
4170 src/journal/test-journal.c
4172 test_journal_LDADD = \
4173 libsystemd-journal-core.la
4175 test_journal_send_SOURCES = \
4176 src/journal/test-journal-send.c
4178 test_journal_send_LDADD = \
4179 libsystemd-journal-core.la
4181 test_journal_syslog_SOURCES = \
4182 src/journal/test-journal-syslog.c
4184 test_journal_syslog_LDADD = \
4185 libsystemd-journal-core.la
4187 test_journal_match_SOURCES = \
4188 src/journal/test-journal-match.c
4190 test_journal_match_LDADD = \
4191 libsystemd-journal-core.la
4193 test_journal_enum_SOURCES = \
4194 src/journal/test-journal-enum.c
4196 test_journal_enum_LDADD = \
4197 libsystemd-journal-core.la
4199 test_journal_stream_SOURCES = \
4200 src/journal/test-journal-stream.c
4202 test_journal_stream_LDADD = \
4203 libsystemd-journal-core.la
4205 test_journal_flush_SOURCES = \
4206 src/journal/test-journal-flush.c
4208 test_journal_flush_LDADD = \
4209 libsystemd-journal-core.la
4211 test_journal_init_SOURCES = \
4212 src/journal/test-journal-init.c
4214 test_journal_init_LDADD = \
4215 libsystemd-journal-core.la
4217 test_journal_verify_SOURCES = \
4218 src/journal/test-journal-verify.c
4220 test_journal_verify_LDADD = \
4221 libsystemd-journal-core.la
4223 test_journal_interleaving_SOURCES = \
4224 src/journal/test-journal-interleaving.c
4226 test_journal_interleaving_LDADD = \
4227 libsystemd-journal-core.la
4229 test_mmap_cache_SOURCES = \
4230 src/journal/test-mmap-cache.c
4232 test_mmap_cache_LDADD = \
4233 libsystemd-journal-core.la
4235 test_catalog_SOURCES = \
4236 src/journal/test-catalog.c
4238 test_catalog_CPPFLAGS = \
4240 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4242 test_catalog_LDADD = \
4243 libsystemd-journal-core.la
4245 test_compress_SOURCES = \
4246 src/journal/test-compress.c
4248 test_compress_LDADD = \
4249 libsystemd-journal-internal.la \
4250 libsystemd-shared.la
4252 test_compress_benchmark_SOURCES = \
4253 src/journal/test-compress-benchmark.c
4255 test_compress_benchmark_LDADD = \
4256 libsystemd-journal-internal.la \
4257 libsystemd-shared.la
4259 libsystemd_journal_core_la_SOURCES = \
4260 src/journal/journald-kmsg.c \
4261 src/journal/journald-kmsg.h \
4262 src/journal/journald-syslog.c \
4263 src/journal/journald-syslog.h \
4264 src/journal/journald-stream.c \
4265 src/journal/journald-stream.h \
4266 src/journal/journald-server.c \
4267 src/journal/journald-server.h \
4268 src/journal/journald-console.c \
4269 src/journal/journald-console.h \
4270 src/journal/journald-wall.c \
4271 src/journal/journald-wall.h \
4272 src/journal/journald-native.c \
4273 src/journal/journald-native.h \
4274 src/journal/journald-audit.c \
4275 src/journal/journald-audit.h \
4276 src/journal/journald-rate-limit.c \
4277 src/journal/journald-rate-limit.h \
4278 src/journal/journal-internal.h
4280 nodist_libsystemd_journal_core_la_SOURCES = \
4281 src/journal/journald-gperf.c
4283 libsystemd_journal_core_la_LIBADD = \
4284 libsystemd-journal-internal.la \
4285 libudev-internal.la \
4286 libsystemd-label.la \
4287 libsystemd-internal.la \
4288 libsystemd-shared.la
4291 libsystemd_journal_core_la_LIBADD += \
4295 noinst_LTLIBRARIES += \
4296 libsystemd-journal-core.la
4298 journal-install-hook:
4299 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4300 -chown 0:0 $(DESTDIR)/var/log/journal
4301 -chmod 755 $(DESTDIR)/var/log/journal
4302 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4303 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4305 journal-uninstall-hook:
4306 -rmdir $(DESTDIR)/var/log/journal/remote
4307 -rmdir $(DESTDIR)/var/log/journal/
4309 INSTALL_EXEC_HOOKS += journal-install-hook
4310 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4312 # ------------------------------------------------------------------------------
4313 # Update catalog on installation. Do not bother if installing
4314 # in DESTDIR, since this is likely for packaging purposes.
4315 catalog-update-hook:
4316 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4318 INSTALL_DATA_HOOKS += \
4321 catalog-remove-hook:
4322 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4324 UNINSTALL_DATA_HOOKS += \
4333 test-journal-syslog \
4334 test-journal-match \
4335 test-journal-stream \
4337 test-journal-verify \
4338 test-journal-interleaving \
4339 test-journal-flush \
4346 test-compress-benchmark
4349 pkginclude_HEADERS += \
4350 src/systemd/sd-journal.h \
4351 src/systemd/sd-messages.h \
4352 src/systemd/_sd-common.h
4354 libsystemd_journal_internal_la_SOURCES = \
4355 src/journal/sd-journal.c \
4356 src/systemd/sd-journal.h \
4357 src/systemd/_sd-common.h \
4358 src/journal/journal-file.c \
4359 src/journal/journal-file.h \
4360 src/journal/journal-vacuum.c \
4361 src/journal/journal-vacuum.h \
4362 src/journal/journal-verify.c \
4363 src/journal/journal-verify.h \
4364 src/journal/lookup3.c \
4365 src/journal/lookup3.h \
4366 src/journal/journal-send.c \
4367 src/journal/journal-def.h \
4368 src/journal/compress.h \
4369 src/journal/catalog.c \
4370 src/journal/catalog.h \
4371 src/journal/mmap-cache.c \
4372 src/journal/mmap-cache.h \
4373 src/journal/compress.c
4375 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4376 libsystemd_journal_internal_la_CFLAGS = \
4379 libsystemd_journal_internal_la_LIBADD = \
4383 libsystemd_journal_internal_la_CFLAGS += \
4386 libsystemd_journal_internal_la_LIBADD += \
4391 libsystemd_journal_internal_la_LIBADD += \
4396 libsystemd_journal_internal_la_SOURCES += \
4397 src/journal/journal-authenticate.c \
4398 src/journal/journal-authenticate.h \
4399 src/journal/fsprg.c \
4402 libsystemd_journal_internal_la_LIBADD += \
4405 # fsprg.c is a drop-in file using void pointer arithmetic
4406 libsystemd_journal_internal_la_CFLAGS += \
4411 noinst_LTLIBRARIES += \
4412 libsystemd-journal-internal.la
4414 rootlibexec_PROGRAMS += \
4417 rootbin_PROGRAMS += \
4423 dist_systemunit_DATA += \
4424 units/systemd-journald.socket \
4425 units/systemd-journald-dev-log.socket \
4426 units/systemd-journald-audit.socket
4428 nodist_systemunit_DATA += \
4429 units/systemd-journald.service \
4430 units/systemd-journal-flush.service \
4431 units/systemd-journal-catalog-update.service
4433 dist_pkgsysconf_DATA += \
4434 src/journal/journald.conf
4436 dist_catalog_DATA = \
4437 catalog/systemd.fr.catalog \
4438 catalog/systemd.it.catalog \
4439 catalog/systemd.pl.catalog \
4440 catalog/systemd.pt_BR.catalog \
4441 catalog/systemd.ru.catalog \
4442 catalog/systemd.catalog
4444 SOCKETS_TARGET_WANTS += \
4445 systemd-journald.socket \
4446 systemd-journald-dev-log.socket \
4447 systemd-journald-audit.socket
4449 SYSINIT_TARGET_WANTS += \
4450 systemd-journald.service \
4451 systemd-journal-flush.service \
4452 systemd-journal-catalog-update.service
4455 units/systemd-journald.service.in \
4456 units/systemd-journal-flush.service.in \
4457 units/systemd-journal-catalog-update.service.in \
4458 src/journal/journald-gperf.gperf
4461 src/journal/journald-gperf.c
4463 # ------------------------------------------------------------------------------
4465 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4467 rootlibexec_PROGRAMS += \
4468 systemd-journal-gatewayd
4470 systemd_journal_gatewayd_SOURCES = \
4471 src/journal-remote/journal-gatewayd.c \
4472 src/journal-remote/microhttpd-util.h \
4473 src/journal-remote/microhttpd-util.c
4475 systemd_journal_gatewayd_LDADD = \
4476 libsystemd-logs.la \
4477 libsystemd-journal-internal.la \
4478 libsystemd-internal.la \
4479 libsystemd-shared.la \
4483 systemd_journal_gatewayd_LDADD += \
4487 systemd_journal_gatewayd_CFLAGS = \
4489 $(MICROHTTPD_CFLAGS)
4491 systemd_journal_gatewayd_CPPFLAGS = \
4493 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4495 dist_systemunit_DATA += \
4496 units/systemd-journal-gatewayd.socket
4498 nodist_systemunit_DATA += \
4499 units/systemd-journal-gatewayd.service
4501 dist_gatewayddocumentroot_DATA = \
4502 src/journal-remote/browse.html
4507 units/systemd-journal-gatewayd.service.in
4509 # ------------------------------------------------------------------------------
4511 systemd_socket_proxyd_SOURCES = \
4512 src/socket-proxy/socket-proxyd.c
4514 systemd_socket_proxyd_LDADD = \
4515 libsystemd-logs.la \
4516 libsystemd-internal.la \
4517 libsystemd-journal-internal.la \
4518 libsystemd-shared.la \
4519 libsystemd-resolve.la
4521 # ------------------------------------------------------------------------------
4523 systemd_coredump_SOURCES = \
4524 src/journal/coredump.c \
4525 src/journal/coredump-vacuum.c \
4526 src/journal/coredump-vacuum.h
4528 systemd_coredump_LDADD = \
4529 libsystemd-journal-internal.la \
4530 libsystemd-label.la \
4531 libsystemd-internal.la \
4532 libsystemd-shared.la
4535 systemd_coredump_SOURCES += \
4536 src/journal/stacktrace.c \
4537 src/journal/stacktrace.h
4539 systemd_coredump_LDADD += \
4543 rootlibexec_PROGRAMS += \
4546 dist_pkgsysconf_DATA += \
4547 src/journal/coredump.conf
4550 systemd_coredump_LDADD += \
4554 coredumpctl_SOURCES = \
4555 src/journal/coredumpctl.c
4557 coredumpctl_LDADD = \
4558 libsystemd-journal-internal.la \
4559 libsystemd-internal.la \
4560 libsystemd-shared.la
4566 test-coredump-vacuum
4568 test_coredump_vacuum_SOURCES = \
4569 src/journal/test-coredump-vacuum.c \
4570 src/journal/coredump-vacuum.c \
4571 src/journal/coredump-vacuum.h
4573 test_coredump_vacuum_LDADD = \
4574 libsystemd-internal.la \
4575 libsystemd-shared.la
4577 dist_bashcompletion_DATA += \
4578 shell-completion/bash/coredumpctl
4580 dist_zshcompletion_DATA += \
4581 shell-completion/zsh/_coredumpctl
4584 sysctl.d/50-coredump.conf
4587 sysctl.d/50-coredump.conf
4591 sysctl.d/50-coredump.conf.in
4593 # ------------------------------------------------------------------------------
4595 systemd_binfmt_SOURCES = \
4598 systemd_binfmt_LDADD = \
4599 libsystemd-shared.la
4601 rootlibexec_PROGRAMS += \
4604 dist_systemunit_DATA += \
4605 units/proc-sys-fs-binfmt_misc.automount \
4606 units/proc-sys-fs-binfmt_misc.mount
4608 nodist_systemunit_DATA += \
4609 units/systemd-binfmt.service
4612 $(prefix)/lib/binfmt.d \
4613 $(sysconfdir)/binfmt.d
4615 SYSINIT_TARGET_WANTS += \
4616 systemd-binfmt.service \
4617 proc-sys-fs-binfmt_misc.automount
4622 units/systemd-binfmt.service.in
4624 # ------------------------------------------------------------------------------
4626 systemd_vconsole_setup_SOURCES = \
4627 src/vconsole/vconsole-setup.c
4629 systemd_vconsole_setup_LDADD = \
4630 libsystemd-shared.la
4632 rootlibexec_PROGRAMS += \
4633 systemd-vconsole-setup
4635 nodist_systemunit_DATA += \
4636 units/systemd-vconsole-setup.service
4638 nodist_udevrules_DATA += \
4639 src/vconsole/90-vconsole.rules
4641 SYSINIT_TARGET_WANTS += \
4642 systemd-vconsole-setup.service
4645 src/vconsole/90-vconsole.rules
4649 src/vconsole/90-vconsole.rules.in \
4650 units/systemd-vconsole-setup.service.in
4652 # ------------------------------------------------------------------------------
4654 systemd_bootchart_SOURCES = \
4655 src/bootchart/bootchart.c \
4656 src/bootchart/bootchart.h \
4657 src/bootchart/store.c \
4658 src/bootchart/store.h \
4659 src/bootchart/svg.c \
4662 systemd_bootchart_LDADD = \
4663 libsystemd-journal-internal.la \
4664 libsystemd-shared.la
4666 rootlibexec_PROGRAMS += \
4669 dist_pkgsysconf_DATA += \
4670 src/bootchart/bootchart.conf
4672 nodist_systemunit_DATA += \
4673 units/systemd-bootchart.service
4676 units/systemd-bootchart.service.in
4679 units/systemd-bootchart.service
4682 # ------------------------------------------------------------------------------
4683 if ENABLE_QUOTACHECK
4684 rootlibexec_PROGRAMS += \
4687 nodist_systemunit_DATA += \
4688 units/systemd-quotacheck.service
4690 systemd_quotacheck_SOURCES = \
4691 src/quotacheck/quotacheck.c
4693 systemd_quotacheck_LDADD = \
4694 libsystemd-shared.la
4698 units/systemd-quotacheck.service.in
4700 nodist_systemunit_DATA += \
4701 units/quotaon.service
4703 # ------------------------------------------------------------------------------
4704 if ENABLE_RANDOMSEED
4705 rootlibexec_PROGRAMS += \
4708 nodist_systemunit_DATA += \
4709 units/systemd-random-seed.service
4711 systemd_random_seed_SOURCES = \
4712 src/random-seed/random-seed.c
4714 systemd_random_seed_LDADD = \
4715 libsystemd-label.la \
4716 libsystemd-shared.la
4718 SYSINIT_TARGET_WANTS += \
4719 systemd-random-seed.service
4724 units/systemd-random-seed.service.in
4726 # ------------------------------------------------------------------------------
4728 rootlibexec_PROGRAMS += \
4731 nodist_systemunit_DATA += \
4732 units/systemd-backlight@.service
4734 systemd_backlight_SOURCES = \
4735 src/backlight/backlight.c
4737 systemd_backlight_LDADD = \
4738 libsystemd-label.la \
4739 libudev-internal.la \
4740 libsystemd-shared.la
4744 units/systemd-backlight@.service.in
4746 # ------------------------------------------------------------------------------
4748 rootlibexec_PROGRAMS += \
4751 nodist_systemunit_DATA += \
4752 units/systemd-rfkill@.service
4754 systemd_rfkill_SOURCES = \
4757 systemd_rfkill_LDADD = \
4758 libsystemd-label.la \
4759 libudev-internal.la \
4760 libsystemd-shared.la
4764 units/systemd-rfkill@.service.in
4766 # ------------------------------------------------------------------------------
4767 if HAVE_LIBCRYPTSETUP
4768 rootlibexec_PROGRAMS += \
4771 systemgenerator_PROGRAMS += \
4772 systemd-cryptsetup-generator
4774 dist_systemunit_DATA += \
4775 units/cryptsetup.target \
4776 units/cryptsetup-pre.target
4778 systemd_cryptsetup_SOURCES = \
4779 src/cryptsetup/cryptsetup.c
4781 systemd_cryptsetup_CFLAGS = \
4783 $(LIBCRYPTSETUP_CFLAGS)
4785 systemd_cryptsetup_LDADD = \
4786 libsystemd-label.la \
4787 libudev-internal.la \
4788 libsystemd-shared.la \
4789 $(LIBCRYPTSETUP_LIBS)
4791 systemd_cryptsetup_generator_SOURCES = \
4792 src/cryptsetup/cryptsetup-generator.c
4794 systemd_cryptsetup_generator_LDADD = \
4795 libsystemd-label.la \
4796 libsystemd-shared.la
4798 SYSINIT_TARGET_WANTS += \
4803 # ------------------------------------------------------------------------------
4805 systemd_hostnamed_SOURCES = \
4806 src/hostname/hostnamed.c
4808 systemd_hostnamed_LDADD = \
4809 libsystemd-label.la \
4810 libsystemd-internal.la \
4811 libsystemd-shared.la
4813 rootlibexec_PROGRAMS += \
4816 nodist_systemunit_DATA += \
4817 units/systemd-hostnamed.service
4819 dist_systemunit_DATA_busnames += \
4820 units/org.freedesktop.hostname1.busname
4822 dist_dbuspolicy_DATA += \
4823 src/hostname/org.freedesktop.hostname1.conf
4825 dist_dbussystemservice_DATA += \
4826 src/hostname/org.freedesktop.hostname1.service
4828 polkitpolicy_files += \
4829 src/hostname/org.freedesktop.hostname1.policy
4831 SYSTEM_UNIT_ALIASES += \
4832 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4834 BUSNAMES_TARGET_WANTS += \
4835 org.freedesktop.hostname1.busname
4837 hostnamectl_SOURCES = \
4838 src/hostname/hostnamectl.c
4840 hostnamectl_LDADD = \
4841 libsystemd-internal.la \
4842 libsystemd-shared.la
4847 dist_bashcompletion_DATA += \
4848 shell-completion/bash/hostnamectl
4850 dist_zshcompletion_DATA += \
4851 shell-completion/zsh/_hostnamectl
4855 polkitpolicy_in_files += \
4856 src/hostname/org.freedesktop.hostname1.policy.in
4859 units/systemd-hostnamed.service.in
4861 # ------------------------------------------------------------------------------
4862 dist_systemunit_DATA_busnames += \
4863 units/org.freedesktop.systemd1.busname
4865 BUSNAMES_TARGET_WANTS += \
4866 org.freedesktop.systemd1.busname
4868 # ------------------------------------------------------------------------------
4870 systemd_localed_SOURCES = \
4871 src/locale/localed.c
4873 systemd_localed_LDADD = \
4874 libsystemd-label.la \
4875 libsystemd-internal.la \
4876 libsystemd-shared.la \
4879 systemd_localed_CFLAGS = \
4883 nodist_systemunit_DATA += \
4884 units/systemd-localed.service
4886 dist_systemunit_DATA_busnames += \
4887 units/org.freedesktop.locale1.busname
4889 rootlibexec_PROGRAMS += \
4892 dist_dbuspolicy_DATA += \
4893 src/locale/org.freedesktop.locale1.conf
4895 dist_dbussystemservice_DATA += \
4896 src/locale/org.freedesktop.locale1.service
4898 polkitpolicy_files += \
4899 src/locale/org.freedesktop.locale1.policy
4901 SYSTEM_UNIT_ALIASES += \
4902 systemd-localed.service dbus-org.freedesktop.locale1.service
4904 BUSNAMES_TARGET_WANTS += \
4905 org.freedesktop.locale1.busname
4907 dist_pkgdata_DATA += \
4908 src/locale/kbd-model-map
4910 dist_noinst_SCRIPT = \
4911 src/locale/generate-kbd-model-map
4913 localectl_SOURCES = \
4914 src/locale/localectl.c
4917 libsystemd-internal.la \
4918 libsystemd-shared.la
4923 dist_bashcompletion_DATA += \
4924 shell-completion/bash/localectl
4926 dist_zshcompletion_DATA += \
4927 shell-completion/zsh/_localectl
4931 .PHONY: update-kbd-model-map
4933 polkitpolicy_in_files += \
4934 src/locale/org.freedesktop.locale1.policy.in
4937 units/systemd-localed.service.in
4939 # ------------------------------------------------------------------------------
4941 systemd_timedated_SOURCES = \
4942 src/timedate/timedated.c
4944 systemd_timedated_LDADD = \
4945 libsystemd-label.la \
4946 libsystemd-internal.la \
4947 libsystemd-shared.la
4949 rootlibexec_PROGRAMS += \
4952 dist_dbussystemservice_DATA += \
4953 src/timedate/org.freedesktop.timedate1.service
4955 dist_dbuspolicy_DATA += \
4956 src/timedate/org.freedesktop.timedate1.conf
4958 nodist_systemunit_DATA += \
4959 units/systemd-timedated.service
4961 dist_systemunit_DATA_busnames += \
4962 units/org.freedesktop.timedate1.busname
4964 polkitpolicy_files += \
4965 src/timedate/org.freedesktop.timedate1.policy
4967 SYSTEM_UNIT_ALIASES += \
4968 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4970 BUSNAMES_TARGET_WANTS += \
4971 org.freedesktop.timedate1.busname
4973 timedatectl_SOURCES = \
4974 src/timedate/timedatectl.c
4976 timedatectl_LDADD = \
4977 libsystemd-internal.la \
4978 libsystemd-shared.la
4983 dist_bashcompletion_DATA += \
4984 shell-completion/bash/timedatectl
4986 dist_zshcompletion_DATA += \
4987 shell-completion/zsh/_timedatectl
4990 polkitpolicy_in_files += \
4991 src/timedate/org.freedesktop.timedate1.policy.in
4994 units/systemd-timedated.service.in
4996 # ------------------------------------------------------------------------------
4998 systemd_timesyncd_SOURCES = \
4999 src/timesync/timesyncd.c \
5000 src/timesync/timesyncd-manager.c \
5001 src/timesync/timesyncd-manager.h \
5002 src/timesync/timesyncd-conf.c \
5003 src/timesync/timesyncd-conf.h \
5004 src/timesync/timesyncd-server.c \
5005 src/timesync/timesyncd-server.h
5007 nodist_systemd_timesyncd_SOURCES = \
5008 src/timesync/timesyncd-gperf.c
5011 src/timesync/timesyncd-gperf.gperf
5014 src/timesync/timesyncd-gperf.c
5016 systemd_timesyncd_LDADD = \
5017 libsystemd-resolve.la \
5018 libsystemd-network.la \
5019 libsystemd-label.la \
5020 libsystemd-internal.la \
5021 libsystemd-shared.la
5023 rootlibexec_PROGRAMS += \
5026 nodist_systemunit_DATA += \
5027 units/systemd-timesyncd.service
5029 GENERAL_ALIASES += \
5030 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5033 units/systemd-timesyncd.service.in
5035 nodist_pkgsysconf_DATA += \
5036 src/timesync/timesyncd.conf
5039 src/timesync/timesyncd.conf.in
5042 src/timesync/timesyncd.conf
5045 # ------------------------------------------------------------------------------
5047 libnss_myhostname_la_SOURCES = \
5048 src/nss-myhostname/nss-myhostname.sym \
5049 src/nss-myhostname/nss-myhostname.c
5051 libnss_myhostname_la_LDFLAGS = \
5058 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5060 libnss_myhostname_la_LIBADD = \
5061 libsystemd-shared.la \
5062 libsystemd-internal.la
5064 lib_LTLIBRARIES += \
5065 libnss_myhostname.la
5068 # ------------------------------------------------------------------------------
5070 systemd_machined_SOURCES = \
5071 src/machine/machined.c \
5072 src/machine/machined.h
5074 systemd_machined_LDADD = \
5075 libsystemd-machine-core.la
5077 rootlibexec_PROGRAMS += \
5080 libsystemd_machine_core_la_SOURCES = \
5081 src/machine/machine.c \
5082 src/machine/machine.h \
5083 src/machine/machined-dbus.c \
5084 src/machine/machine-dbus.c \
5085 src/machine/machine-dbus.h \
5086 src/machine/image-dbus.c \
5087 src/machine/image-dbus.h
5089 libsystemd_machine_core_la_LIBADD = \
5090 libsystemd-label.la \
5091 libsystemd-internal.la \
5092 libudev-internal.la \
5093 libsystemd-shared.la
5095 noinst_LTLIBRARIES += \
5096 libsystemd-machine-core.la
5098 machinectl_SOURCES = \
5099 src/machine/machinectl.c
5101 machinectl_LDADD = \
5102 libsystemd-internal.la \
5103 libsystemd-logs.la \
5104 libsystemd-journal-internal.la \
5105 libsystemd-shared.la
5107 rootbin_PROGRAMS += \
5110 dist_bashcompletion_DATA += \
5111 shell-completion/bash/machinectl
5113 test_machine_tables_SOURCES = \
5114 src/machine/test-machine-tables.c
5116 test_machine_tables_LDADD = \
5117 libsystemd-machine-core.la
5122 nodist_systemunit_DATA += \
5123 units/systemd-machined.service
5125 dist_systemunit_DATA += \
5128 dist_systemunit_DATA_busnames += \
5129 units/org.freedesktop.machine1.busname
5131 dist_dbussystemservice_DATA += \
5132 src/machine/org.freedesktop.machine1.service
5134 dist_dbuspolicy_DATA += \
5135 src/machine/org.freedesktop.machine1.conf
5137 polkitpolicy_files += \
5138 src/machine/org.freedesktop.machine1.policy
5140 polkitpolicy_in_files += \
5141 src/machine/org.freedesktop.machine1.policy.in
5143 dist_zshcompletion_DATA += \
5144 shell-completion/zsh/_machinectl \
5145 shell-completion/zsh/_sd_machines
5147 SYSTEM_UNIT_ALIASES += \
5148 systemd-machined.service dbus-org.freedesktop.machine1.service
5150 BUSNAMES_TARGET_WANTS += \
5151 org.freedesktop.machine1.busname
5154 units/systemd-machined.service.in
5156 libnss_mymachines_la_SOURCES = \
5157 src/nss-mymachines/nss-mymachines.sym \
5158 src/nss-mymachines/nss-mymachines.c
5160 libnss_mymachines_la_LDFLAGS = \
5167 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5169 libnss_mymachines_la_LIBADD = \
5170 libsystemd-shared.la \
5171 libsystemd-internal.la
5173 lib_LTLIBRARIES += \
5174 libnss_mymachines.la
5181 systemd_import_SOURCES = \
5182 src/import/import.c \
5183 src/import/import-gpt.c \
5184 src/import/import-gpt.h \
5185 src/import/import-dkr.c \
5186 src/import/import-dkr.h \
5187 src/import/curl-util.c \
5188 src/import/curl-util.h \
5189 src/import/aufs-util.c \
5190 src/import/aufs-util.h
5192 systemd_import_CFLAGS = \
5196 systemd_import_LDADD = \
5197 libsystemd-internal.la \
5198 libsystemd-label.la \
5199 libsystemd-shared.la \
5205 # ------------------------------------------------------------------------------
5207 systemd_resolved_SOURCES = \
5208 src/resolve/resolved.c \
5209 src/resolve/resolved-manager.c \
5210 src/resolve/resolved-manager.h \
5211 src/resolve/resolved-conf.c \
5212 src/resolve/resolved-conf.h \
5213 src/resolve/resolved-bus.c \
5214 src/resolve/resolved-bus.h \
5215 src/resolve/resolved-link.h \
5216 src/resolve/resolved-link.c \
5217 src/resolve/resolved-def.h \
5218 src/resolve/resolved-dns-domain.h \
5219 src/resolve/resolved-dns-domain.c \
5220 src/resolve/resolved-dns-rr.h \
5221 src/resolve/resolved-dns-rr.c \
5222 src/resolve/resolved-dns-question.h \
5223 src/resolve/resolved-dns-question.c \
5224 src/resolve/resolved-dns-answer.h \
5225 src/resolve/resolved-dns-answer.c \
5226 src/resolve/resolved-dns-packet.h \
5227 src/resolve/resolved-dns-packet.c \
5228 src/resolve/resolved-dns-query.h \
5229 src/resolve/resolved-dns-query.c \
5230 src/resolve/resolved-dns-transaction.h \
5231 src/resolve/resolved-dns-transaction.c \
5232 src/resolve/resolved-dns-scope.h \
5233 src/resolve/resolved-dns-scope.c \
5234 src/resolve/resolved-dns-server.h \
5235 src/resolve/resolved-dns-server.c \
5236 src/resolve/resolved-dns-cache.h \
5237 src/resolve/resolved-dns-cache.c \
5238 src/resolve/resolved-dns-zone.h \
5239 src/resolve/resolved-dns-zone.c \
5240 src/resolve/resolved-dns-stream.h \
5241 src/resolve/resolved-dns-stream.c \
5242 src/resolve/dns-type.c \
5243 src/resolve/dns-type.h \
5244 src/resolve/dns_type-from-name.h \
5245 src/resolve/dns_type-to-name.h
5247 nodist_systemd_resolved_SOURCES = \
5248 src/resolve/resolved-gperf.c
5251 src/resolve/resolved-gperf.gperf \
5252 src/resolve/dns_type-from-name.gperf
5255 src/resolve/resolved-gperf.c
5257 systemd_resolved_LDADD = \
5258 libsystemd-network.la \
5259 libsystemd-label.la \
5260 libsystemd-internal.la \
5261 libsystemd-shared.la \
5264 rootlibexec_PROGRAMS += \
5267 nodist_systemunit_DATA += \
5268 units/systemd-resolved.service
5270 dist_systemunit_DATA_busnames += \
5271 units/org.freedesktop.resolve1.busname
5273 dist_dbuspolicy_DATA += \
5274 src/resolve/org.freedesktop.resolve1.conf
5276 dist_dbussystemservice_DATA += \
5277 src/resolve/org.freedesktop.resolve1.service
5280 units/systemd-resolved.service.in
5282 SYSTEM_UNIT_ALIASES += \
5283 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5285 BUSNAMES_TARGET_WANTS += \
5286 org.freedesktop.resolve1.busname
5288 GENERAL_ALIASES += \
5289 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5291 nodist_pkgsysconf_DATA += \
5292 src/resolve/resolved.conf
5295 src/resolve/resolved.conf.in
5298 src/resolve/resolved.conf
5303 test_dns_domain_SOURCES = \
5304 src/resolve/resolved-dns-domain.h \
5305 src/resolve/resolved-dns-domain.c \
5306 src/resolve/test-dns-domain.c
5308 test_dns_domain_LDADD = \
5309 libsystemd-network.la \
5310 libsystemd-label.la \
5311 libsystemd-internal.la \
5312 libsystemd-shared.la \
5315 libnss_resolve_la_SOURCES = \
5316 src/nss-resolve/nss-resolve.sym \
5317 src/nss-resolve/nss-resolve.c
5319 libnss_resolve_la_LDFLAGS = \
5326 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5328 libnss_resolve_la_LIBADD = \
5329 libsystemd-internal.la \
5330 libsystemd-shared.la
5332 lib_LTLIBRARIES += \
5335 systemd_resolve_host_SOURCES = \
5336 src/resolve-host/resolve-host.c \
5337 src/resolve/resolved-dns-packet.c \
5338 src/resolve/resolved-dns-packet.h \
5339 src/resolve/resolved-dns-rr.c \
5340 src/resolve/resolved-dns-rr.h \
5341 src/resolve/resolved-dns-answer.c \
5342 src/resolve/resolved-dns-answer.h \
5343 src/resolve/resolved-dns-question.c \
5344 src/resolve/resolved-dns-question.h \
5345 src/resolve/resolved-dns-domain.c \
5346 src/resolve/resolved-dns-domain.h \
5347 src/resolve/dns-type.c \
5348 src/resolve/dns-type.h \
5349 src/resolve/dns_type-from-name.h \
5350 src/resolve/dns_type-to-name.h
5352 systemd_resolve_host_LDADD = \
5353 libsystemd-internal.la \
5354 libsystemd-shared.la \
5357 rootlibexec_PROGRAMS += \
5358 systemd-resolve-host
5362 # ------------------------------------------------------------------------------
5364 rootlibexec_PROGRAMS += \
5367 systemd_networkd_SOURCES = \
5368 src/network/networkd.c
5370 systemd_networkd_LDADD = \
5371 libsystemd-networkd-core.la
5373 noinst_LTLIBRARIES += \
5374 libsystemd-networkd-core.la
5376 libsystemd_networkd_core_la_CFLAGS = \
5379 libsystemd_networkd_core_la_SOURCES = \
5380 src/libsystemd-network/network-internal.h \
5381 src/network/networkd.h \
5382 src/network/networkd-link.h \
5383 src/network/networkd-netdev.h \
5384 src/network/networkd-netdev-tunnel.h \
5385 src/network/networkd-netdev-veth.h \
5386 src/network/networkd-netdev-vxlan.h \
5387 src/network/networkd-netdev-vlan.h \
5388 src/network/networkd-netdev-macvlan.h \
5389 src/network/networkd-netdev-dummy.h \
5390 src/network/networkd-netdev-tuntap.h \
5391 src/network/networkd-netdev-bond.h \
5392 src/network/networkd-netdev-bridge.h \
5393 src/network/networkd-netdev.c \
5394 src/network/networkd-netdev-tunnel.c \
5395 src/network/networkd-netdev-veth.c \
5396 src/network/networkd-netdev-vxlan.c \
5397 src/network/networkd-netdev-vlan.c \
5398 src/network/networkd-netdev-macvlan.c \
5399 src/network/networkd-netdev-dummy.c \
5400 src/network/networkd-netdev-tuntap.c \
5401 src/network/networkd-netdev-bond.c \
5402 src/network/networkd-netdev-bridge.c \
5403 src/network/networkd-link.c \
5404 src/network/networkd-ipv4ll.c \
5405 src/network/networkd-dhcp4.c \
5406 src/network/networkd-dhcp6.c \
5407 src/network/networkd-network.c \
5408 src/network/networkd-address.c \
5409 src/network/networkd-route.c \
5410 src/network/networkd-manager.c \
5411 src/network/networkd-fdb.c \
5412 src/network/networkd-address-pool.c
5414 nodist_libsystemd_networkd_core_la_SOURCES = \
5415 src/network/networkd-network-gperf.c \
5416 src/network/networkd-netdev-gperf.c
5418 libsystemd_networkd_core_la_LIBADD = \
5419 libudev-internal.la \
5420 libsystemd-internal.la \
5421 libsystemd-network.la \
5422 libsystemd-label.la \
5423 libsystemd-shared.la
5425 rootlibexec_PROGRAMS += \
5426 systemd-networkd-wait-online
5428 systemd_networkd_wait_online_CFLAGS = \
5431 systemd_networkd_wait_online_SOURCES = \
5432 src/libsystemd-network/network-internal.h \
5433 src/network/networkd-wait-online.h \
5434 src/network/networkd-wait-online-link.h \
5435 src/network/networkd-wait-online.c \
5436 src/network/networkd-wait-online-manager.c \
5437 src/network/networkd-wait-online-link.c
5439 systemd_networkd_wait_online_LDADD = \
5440 libsystemd-network.la \
5441 libudev-internal.la \
5442 libsystemd-internal.la \
5443 libsystemd-shared.la
5445 rootbin_PROGRAMS += \
5448 networkctl_SOURCES = \
5449 src/network/networkctl.c
5451 networkctl_LDADD = \
5452 libsystemd-internal.la \
5453 libudev-internal.la \
5454 libsystemd-shared.la \
5455 libsystemd-network.la
5457 test_network_SOURCES = \
5458 src/network/test-network.c
5460 test_network_LDADD = \
5461 libsystemd-networkd-core.la
5463 test_network_tables_SOURCES = \
5464 src/network/test-network-tables.c \
5465 src/shared/test-tables.h
5467 test_network_tables_LDADD = \
5468 libsystemd-networkd-core.la \
5475 nodist_systemunit_DATA += \
5476 units/systemd-networkd.service \
5477 units/systemd-networkd-wait-online.service
5479 GENERAL_ALIASES += \
5480 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5481 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5484 src/network/networkd-network-gperf.gperf \
5485 src/network/networkd-netdev-gperf.gperf \
5486 units/systemd-networkd.service.in \
5487 units/systemd-networkd-wait-online.service.in
5490 src/network/networkd-network-gperf.c \
5491 src/network/networkd-netdev-gperf.c
5494 # ------------------------------------------------------------------------------
5496 systemd_logind_SOURCES = \
5497 src/login/logind.c \
5500 nodist_systemd_logind_SOURCES = \
5501 src/login/logind-gperf.c
5503 systemd_logind_LDADD = \
5504 libsystemd-logind-core.la
5506 libsystemd_logind_core_la_SOURCES = \
5507 src/login/logind-core.c \
5508 src/login/logind-device.c \
5509 src/login/logind-device.h \
5510 src/login/logind-button.c \
5511 src/login/logind-button.h \
5512 src/login/logind-action.c \
5513 src/login/logind-action.h \
5514 src/login/logind-seat.c \
5515 src/login/logind-seat.h \
5516 src/login/logind-session.c \
5517 src/login/logind-session.h \
5518 src/login/logind-session-device.c \
5519 src/login/logind-session-device.h \
5520 src/login/logind-user.c \
5521 src/login/logind-user.h \
5522 src/login/logind-inhibit.c \
5523 src/login/logind-inhibit.h \
5524 src/login/logind-dbus.c \
5525 src/login/logind-session-dbus.c \
5526 src/login/logind-seat-dbus.c \
5527 src/login/logind-user-dbus.c \
5528 src/login/logind-acl.h
5530 libsystemd_logind_core_la_LIBADD = \
5531 libsystemd-label.la \
5532 libsystemd-internal.la \
5533 libudev-internal.la \
5534 libsystemd-shared.la
5537 libsystemd_logind_core_la_SOURCES += \
5538 src/login/logind-acl.c
5540 libsystemd_logind_core_la_LIBADD += \
5544 noinst_LTLIBRARIES += \
5545 libsystemd-logind-core.la
5547 systemd_user_sessions_SOURCES = \
5548 src/login/user-sessions.c
5550 systemd_user_sessions_LDADD = \
5551 libsystemd-shared.la
5553 rootlibexec_PROGRAMS += \
5555 systemd-user-sessions
5557 loginctl_SOURCES = \
5558 src/login/loginctl.c \
5559 src/login/sysfs-show.h \
5560 src/login/sysfs-show.c
5563 libsystemd-internal.la \
5564 libsystemd-logs.la \
5565 libsystemd-journal-internal.la \
5566 libudev-internal.la \
5567 libsystemd-shared.la
5569 rootbin_PROGRAMS += \
5572 dist_bashcompletion_DATA += \
5573 shell-completion/bash/loginctl
5575 dist_zshcompletion_DATA += \
5576 shell-completion/zsh/_loginctl \
5577 shell-completion/zsh/_systemd-inhibit
5579 systemd_inhibit_SOURCES = \
5582 systemd_inhibit_LDADD = \
5583 libsystemd-internal.la \
5584 libsystemd-shared.la
5586 rootbin_PROGRAMS += \
5589 test_login_SOURCES = \
5590 src/libsystemd/sd-login/test-login.c
5592 test_login_LDADD = \
5593 libsystemd-internal.la \
5594 libsystemd-shared.la
5596 test_login_shared_SOURCES = \
5597 src/login/test-login-shared.c
5599 test_login_shared_LDADD = \
5600 libsystemd-internal.la \
5601 libsystemd-shared.la
5603 test_inhibit_SOURCES = \
5604 src/login/test-inhibit.c
5606 test_inhibit_LDADD = \
5607 libsystemd-internal.la \
5608 libsystemd-shared.la
5610 test_login_tables_SOURCES = \
5611 src/login/test-login-tables.c
5613 test_login_tables_LDADD = \
5614 libsystemd-logind-core.la
5625 pam_systemd_la_SOURCES = \
5626 src/login/pam_systemd.sym \
5627 src/login/pam_systemd.c
5629 pam_systemd_la_CFLAGS = \
5634 pam_systemd_la_LDFLAGS = \
5640 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5642 pam_systemd_la_LIBADD = \
5643 libsystemd-internal.la \
5644 libsystemd-shared.la \
5647 pamlib_LTLIBRARIES = \
5650 dist_pamconf_DATA = \
5651 src/login/systemd-user
5654 nodist_systemunit_DATA += \
5655 units/systemd-logind.service \
5656 units/systemd-user-sessions.service
5658 dist_systemunit_DATA += \
5661 dist_systemunit_DATA_busnames += \
5662 units/org.freedesktop.login1.busname
5664 dist_dbussystemservice_DATA += \
5665 src/login/org.freedesktop.login1.service
5667 dist_dbuspolicy_DATA += \
5668 src/login/org.freedesktop.login1.conf
5670 dist_pkgsysconf_DATA += \
5671 src/login/logind.conf
5673 polkitpolicy_files += \
5674 src/login/org.freedesktop.login1.policy
5679 MULTI_USER_TARGET_WANTS += \
5680 systemd-logind.service \
5681 systemd-user-sessions.service
5683 SYSTEM_UNIT_ALIASES += \
5684 systemd-logind.service dbus-org.freedesktop.login1.service
5686 BUSNAMES_TARGET_WANTS += \
5687 org.freedesktop.login1.busname
5689 dist_udevrules_DATA += \
5690 src/login/70-uaccess.rules \
5691 src/login/70-power-switch.rules
5693 nodist_udevrules_DATA += \
5694 src/login/71-seat.rules \
5695 src/login/73-seat-late.rules
5698 src/login/logind-gperf.c \
5699 src/login/71-seat.rules \
5700 src/login/73-seat-late.rules
5703 polkitpolicy_in_files += \
5704 src/login/org.freedesktop.login1.policy.in
5707 src/login/logind-gperf.gperf \
5708 src/login/71-seat.rules.in \
5709 src/login/73-seat-late.rules.in \
5710 units/systemd-logind.service.in \
5711 units/systemd-user-sessions.service.in
5713 # ------------------------------------------------------------------------------
5714 if HAVE_PYTHON_DEVEL
5715 pkgpyexec_LTLIBRARIES = \
5722 _journal_la_SOURCES = \
5723 src/python-systemd/_journal.c
5725 _journal_la_CFLAGS = \
5727 -fvisibility=default \
5728 $(PYTHON_DEVEL_CFLAGS)
5730 _journal_la_LDFLAGS = \
5736 _journal_la_LIBADD = \
5737 $(PYTHON_DEVEL_LIBS) \
5740 id128_la_SOURCES = \
5741 src/python-systemd/id128.c \
5742 src/python-systemd/pyutil.c \
5743 src/python-systemd/pyutil.h
5745 nodist_id128_la_SOURCES = \
5746 src/python-systemd/id128-constants.h
5750 -fvisibility=default \
5751 $(PYTHON_DEVEL_CFLAGS) \
5752 -I$(top_builddir)/src/python-systemd
5754 id128_la_LDFLAGS = \
5761 $(PYTHON_DEVEL_LIBS) \
5762 libsystemd-shared.la \
5765 _daemon_la_SOURCES = \
5766 src/python-systemd/_daemon.c \
5767 src/python-systemd/pyutil.c \
5768 src/python-systemd/pyutil.h
5770 _daemon_la_CFLAGS = \
5772 -fvisibility=default \
5773 $(PYTHON_DEVEL_CFLAGS) \
5774 -I$(top_builddir)/src/python-systemd
5776 _daemon_la_LDFLAGS = \
5782 _daemon_la_LIBADD = \
5783 $(PYTHON_DEVEL_LIBS) \
5784 libsystemd-shared.la \
5787 _reader_la_SOURCES = \
5788 src/python-systemd/_reader.c \
5789 src/python-systemd/pyutil.c \
5790 src/python-systemd/pyutil.h
5792 _reader_la_CFLAGS = \
5794 -fvisibility=default \
5795 $(PYTHON_DEVEL_CFLAGS)
5797 _reader_la_LDFLAGS = \
5803 _reader_la_LIBADD = \
5804 $(PYTHON_DEVEL_LIBS) \
5805 libsystemd-shared.la \
5808 login_la_SOURCES = \
5809 src/python-systemd/login.c \
5810 src/python-systemd/pyutil.c \
5811 src/python-systemd/pyutil.h
5815 -fvisibility=default \
5816 $(PYTHON_DEVEL_CFLAGS)
5818 login_la_LDFLAGS = \
5825 $(PYTHON_DEVEL_LIBS) \
5826 libsystemd-shared.la \
5829 dist_pkgpyexec_PYTHON = \
5830 src/python-systemd/journal.py \
5831 src/python-systemd/daemon.py \
5832 src/python-systemd/__init__.py
5834 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5835 $(AM_V_at)$(MKDIR_P) $(dir $@)
5836 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5839 src/python-systemd/id128-constants.h
5841 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5843 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5844 $(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/
5845 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5848 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5849 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5852 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5853 $(MAKE) DESTDIR="$$dir" install && \
5854 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5859 CLEAN_LOCAL_HOOKS += clean-sphinx
5861 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5864 -rm -rf docs/html/python-systemd/
5866 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5868 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5869 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5871 # ------------------------------------------------------------------------------
5872 if ENABLE_COMPAT_LIBS
5874 src/compat-libs/linkwarning.h
5876 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5877 $(AM_V_at)$(MKDIR_P) $(dir $@)
5878 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5881 libsystemd-journal.c \
5882 libsystemd-login.c \
5883 libsystemd-id128.c \
5886 libsystemd_journal_la_SOURCES = \
5887 libsystemd-journal.c \
5888 src/compat-libs/libsystemd-journal.sym
5890 libsystemd_journal_la_CPPFLAGS = \
5892 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5894 libsystemd_journal_la_LDFLAGS = \
5896 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5897 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5899 libsystemd_journal_la_LIBADD = \
5900 libsystemd-journal-internal.la \
5901 libsystemd-internal.la \
5902 libsystemd-shared.la
5904 libsystemd_login_la_SOURCES = \
5905 libsystemd-login.c \
5906 src/compat-libs/libsystemd-login.sym
5908 libsystemd_login_la_CPPFLAGS = \
5910 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5912 libsystemd_login_la_LDFLAGS = \
5914 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5915 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5917 libsystemd_login_la_LIBADD = \
5918 libsystemd-internal.la \
5919 libsystemd-shared.la
5921 libsystemd_id128_la_SOURCES = \
5922 libsystemd-id128.c \
5923 src/compat-libs/libsystemd-id128.sym
5925 libsystemd_id128_la_CPPFLAGS = \
5927 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5929 libsystemd_id128_la_LDFLAGS = \
5931 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5932 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5934 libsystemd_id128_la_LIBADD = \
5935 libsystemd-internal.la \
5936 libsystemd-shared.la
5938 libsystemd_daemon_la_SOURCES = \
5939 libsystemd-daemon.c \
5940 src/compat-libs/libsystemd-daemon.sym
5942 libsystemd_daemon_la_CPPFLAGS = \
5944 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5946 libsystemd_daemon_la_LDFLAGS = \
5948 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5949 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5951 libsystemd_daemon_la_LIBADD = \
5952 libsystemd-internal.la \
5953 libsystemd-shared.la
5955 lib_LTLIBRARIES += \
5956 libsystemd-journal.la \
5957 libsystemd-login.la \
5958 libsystemd-id128.la \
5959 libsystemd-daemon.la
5961 pkgconfiglib_DATA += \
5962 src/compat-libs/libsystemd-journal.pc \
5963 src/compat-libs/libsystemd-login.pc \
5964 src/compat-libs/libsystemd-id128.pc \
5965 src/compat-libs/libsystemd-daemon.pc
5967 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5968 compat-lib-install-hook:
5969 libname=libsystemd-login.so && $(move-to-rootlibdir)
5970 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5971 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5972 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5974 compat-lib-uninstall-hook:
5975 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5976 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5977 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5978 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5980 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5981 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5985 src/compat-libs/libsystemd-journal.pc.in \
5986 src/compat-libs/libsystemd-login.pc.in \
5987 src/compat-libs/libsystemd-id128.pc.in \
5988 src/compat-libs/libsystemd-daemon.pc.in
5990 # ------------------------------------------------------------------------------
5992 '|rootlibexecdir=$(rootlibexecdir)|' \
5993 '|rootbindir=$(rootbindir)|' \
5994 '|bindir=$(bindir)|' \
5995 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5996 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5997 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5998 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5999 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6000 '|pkgdatadir=$(pkgdatadir)|' \
6001 '|systemunitdir=$(systemunitdir)|' \
6002 '|userunitdir=$(userunitdir)|' \
6003 '|systempresetdir=$(systempresetdir)|' \
6004 '|userpresetdir=$(userpresetdir)|' \
6005 '|udevhwdbdir=$(udevhwdbdir)|' \
6006 '|udevrulesdir=$(udevrulesdir)|' \
6007 '|catalogdir=$(catalogdir)|' \
6008 '|tmpfilesdir=$(tmpfilesdir)|' \
6009 '|sysusersdir=$(sysusersdir)|' \
6010 '|sysctldir=$(sysctldir)|' \
6011 '|systemgeneratordir=$(systemgeneratordir)|' \
6012 '|usergeneratordir=$(usergeneratordir)|' \
6013 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6014 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6015 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6016 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6017 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6018 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6019 '|prefix=$(prefix)|' \
6020 '|exec_prefix=$(exec_prefix)|' \
6021 '|libdir=$(libdir)|' \
6022 '|includedir=$(includedir)|' \
6023 '|VERSION=$(VERSION)|' \
6024 '|rootprefix=$(rootprefix)|' \
6025 '|udevlibexecdir=$(udevlibexecdir)|' \
6026 '|SUSHELL=$(SUSHELL)|' \
6027 '|DEBUGTTY=$(DEBUGTTY)|' \
6030 '|MKDIR_P=$(MKDIR_P)|' \
6031 '|QUOTAON=$(QUOTAON)|' \
6032 '|QUOTACHECK=$(QUOTACHECK)|' \
6033 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6034 '|VARLOGDIR=$(varlogdir)|' \
6035 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6036 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6037 '|PYTHON=$(PYTHON)|' \
6038 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6039 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6040 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6041 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6042 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6043 '|TTY_GID=$(TTY_GID)|' \
6044 '|systemsleepdir=$(systemsleepdir)|' \
6045 '|systemshutdowndir=$(systemshutdowndir)|' \
6046 '|binfmtdir=$(binfmtdir)|' \
6047 '|modulesloaddir=$(modulesloaddir)|'
6050 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6051 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6060 sysctl.d/%: sysctl.d/%.in
6069 src/core/macros.%: src/core/macros.%.in
6072 src/%.policy.in: src/%.policy.in.in
6075 shell-completion/%: shell-completion/%.in
6086 $(AM_V_GEN)chmod +x $@
6088 src/%.c: src/%.gperf
6089 $(AM_V_at)$(MKDIR_P) $(dir $@)
6090 $(AM_V_GPERF)$(GPERF) < $< > $@
6093 $(AM_V_at)$(MKDIR_P) $(dir $@)
6094 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6096 sysusers.d/%: sysusers.d/%.m4
6097 $(AM_V_at)$(MKDIR_P) $(dir $@)
6098 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6100 tmpfiles.d/%: tmpfiles.d/%.m4
6101 $(AM_V_at)$(MKDIR_P) $(dir $@)
6102 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6106 $(AM_V_at)$(MKDIR_P) $(dir $@)
6107 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6109 units/user/%: units/user/%.m4
6110 $(AM_V_at)$(MKDIR_P) $(dir $@)
6111 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6114 nodist_polkitpolicy_DATA = \
6115 $(polkitpolicy_files) \
6116 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6120 $(polkitpolicy_in_files) \
6121 $(polkitpolicy_in_in_files)
6124 $(nodist_systemunit_DATA) \
6125 $(nodist_userunit_DATA) \
6126 $(pkgconfiglib_DATA) \
6127 $(nodist_polkitpolicy_DATA)
6129 # ------------------------------------------------------------------------------
6131 man/custom-entities.ent: configure.ac
6132 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6133 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6134 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6138 man/custom-entities.ent
6143 --stringparam man.output.quietly 1 \
6144 --stringparam funcsynopsis.style ansi \
6145 --stringparam man.authors.section.enabled 0 \
6146 --stringparam man.copyright.section.enabled 0 \
6147 --stringparam systemd.version $(VERSION) \
6148 --path '$(builddir)/man:$(srcdir)/man'
6150 XSLTPROC_PROCESS_MAN = \
6151 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6153 XSLTPROC_PROCESS_HTML = \
6154 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6156 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6157 $(XSLTPROC_PROCESS_MAN)
6159 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6160 $(XSLTPROC_PROCESS_MAN)
6162 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6163 $(XSLTPROC_PROCESS_MAN)
6165 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6166 $(XSLTPROC_PROCESS_MAN)
6168 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6169 $(XSLTPROC_PROCESS_MAN)
6171 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6172 $(XSLTPROC_PROCESS_HTML)
6175 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6181 man/custom-html.xsl \
6184 # ------------------------------------------------------------------------------
6187 docs/sysvinit/README
6192 docs/sysvinit/README: docs/sysvinit/README.in
6195 docs/var-log/README: docs/var-log/README.in
6199 docs/sysvinit/README \
6204 docs/sysvinit/README.in \
6205 docs/var-log/README.in
6207 SOCKETS_TARGET_WANTS += \
6208 systemd-initctl.socket \
6209 systemd-shutdownd.socket
6213 RUNLEVEL1_TARGET_WANTS += \
6214 systemd-update-utmp-runlevel.service
6215 RUNLEVEL2_TARGET_WANTS += \
6216 systemd-update-utmp-runlevel.service
6217 RUNLEVEL3_TARGET_WANTS += \
6218 systemd-update-utmp-runlevel.service
6219 RUNLEVEL4_TARGET_WANTS += \
6220 systemd-update-utmp-runlevel.service
6221 RUNLEVEL5_TARGET_WANTS += \
6222 systemd-update-utmp-runlevel.service
6225 SYSINIT_TARGET_WANTS += \
6226 systemd-update-utmp.service
6229 SYSINIT_TARGET_WANTS += \
6230 systemd-update-done.service
6232 LOCAL_FS_TARGET_WANTS += \
6233 systemd-remount-fs.service \
6236 MULTI_USER_TARGET_WANTS += \
6238 systemd-ask-password-wall.path
6240 SYSINIT_TARGET_WANTS += \
6241 dev-hugepages.mount \
6243 sys-kernel-config.mount \
6244 sys-kernel-debug.mount \
6245 sys-fs-fuse-connections.mount \
6246 systemd-sysctl.service \
6247 systemd-ask-password-console.path
6250 SYSTEM_UNIT_ALIASES += \
6251 poweroff.target runlevel0.target \
6252 rescue.target runlevel1.target \
6253 multi-user.target runlevel2.target \
6254 multi-user.target runlevel3.target \
6255 multi-user.target runlevel4.target \
6256 graphical.target runlevel5.target \
6257 reboot.target runlevel6.target
6260 SYSTEM_UNIT_ALIASES += \
6261 graphical.target default.target \
6262 reboot.target ctrl-alt-del.target \
6263 getty@.service autovt@.service
6265 USER_UNIT_ALIASES += \
6266 $(systemunitdir)/shutdown.target shutdown.target \
6267 $(systemunitdir)/sockets.target sockets.target \
6268 $(systemunitdir)/timers.target timers.target \
6269 $(systemunitdir)/paths.target paths.target \
6270 $(systemunitdir)/bluetooth.target bluetooth.target \
6271 $(systemunitdir)/printer.target printer.target \
6272 $(systemunitdir)/sound.target sound.target \
6273 $(systemunitdir)/smartcard.target smartcard.target
6276 USER_UNIT_ALIASES += \
6277 $(systemunitdir)/busnames.target busnames.target
6280 GENERAL_ALIASES += \
6281 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6282 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6283 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6284 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6288 $(systemunitdir)/runlevel1.target.wants \
6289 $(systemunitdir)/runlevel2.target.wants \
6290 $(systemunitdir)/runlevel3.target.wants \
6291 $(systemunitdir)/runlevel4.target.wants \
6292 $(systemunitdir)/runlevel5.target.wants
6296 $(prefix)/lib/modules-load.d \
6297 $(sysconfdir)/modules-load.d \
6298 $(prefix)/lib/systemd/network \
6299 $(sysconfdir)/systemd/network \
6300 $(prefix)/lib/sysctl.d \
6301 $(sysconfdir)/sysctl.d \
6302 $(prefix)/lib/kernel/install.d \
6303 $(sysconfdir)/kernel/install.d \
6304 $(systemshutdowndir) \
6306 $(systemgeneratordir) \
6307 $(usergeneratordir) \
6310 $(pkgsysconfdir)/system \
6311 $(pkgsysconfdir)/system/multi-user.target.wants \
6312 $(pkgsysconfdir)/system/getty.target.wants \
6313 $(pkgsysconfdir)/user \
6314 $(dbussessionservicedir) \
6315 $(sysconfdir)/xdg/systemd
6317 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6319 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6321 install-data-hook: $(INSTALL_DATA_HOOKS)
6323 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6325 clean-local: $(CLEAN_LOCAL_HOOKS)
6326 rm -rf $(abs_srcdir)/install-tree
6327 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6328 $(abs_srcdir)/hwdb/iab.txt
6330 DISTCHECK_CONFIGURE_FLAGS = \
6331 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6332 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6333 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6334 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6335 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6336 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6337 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6338 --with-rootprefix=$$dc_install_base \
6339 --disable-split-usr \
6341 --enable-compat-libs
6344 DISTCHECK_CONFIGURE_FLAGS += \
6345 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6346 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6348 DISTCHECK_CONFIGURE_FLAGS += \
6349 --with-sysvinit-path= \
6350 --with-sysvrcnd-path=
6354 DISTCHECK_CONFIGURE_FLAGS += \
6359 DISTCHECK_CONFIGURE_FLAGS += \
6364 # Require python when making dist
6366 .PHONY: dist-check-python
6369 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6373 dist-check-compat-libs:
6374 if !ENABLE_COMPAT_LIBS
6375 @echo "*** compat-libs must be enabled in order to make dist"
6379 dist: dist-check-python dist-check-compat-libs
6381 # check "broken" platforms limited toolchains for link breakage before we release
6384 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6388 ( cd $(top_srcdir)/hwdb && \
6389 wget -N http://www.linux-usb.org/usb.ids \
6390 http://pci-ids.ucw.cz/v2.2/pci.ids \
6391 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6392 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6395 .PHONY: kdbus-update
6397 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6398 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6402 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6404 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6406 upload: all check dist
6407 scp systemd-$(VERSION).tar.xz $(www_target)
6410 doc-sync: all destdir-sphinx
6411 gtkdoc-rebase --html-dir=docs/libudev/html --online
6412 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6413 gtkdoc-rebase --html-dir=docs/gudev/html --online
6414 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6415 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6416 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6420 scp man/*.html gardel:public/systemd-man/
6422 .PHONY: lennart-fedora
6424 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6426 .PHONY: install-tree
6428 rm -rf $(abs_srcdir)/install-tree
6429 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6430 tree $(abs_srcdir)/install-tree
6432 # Let's run all tests of the test suite, but under valgrind. Let's
6433 # exclude the one perl script we have in there
6434 .PHONY: valgrind-tests
6435 valgrind-tests: $(TESTS)
6436 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6437 if file $$f | grep -q shell; then \
6438 echo -e "$${x}Skipping non-binary $$f"; else \
6439 echo -e "$${x}Running $$f"; \
6440 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6445 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6447 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6448 $(AM_V_GEN)cat $^ > $@
6450 .PHONY: check-api-docs
6451 check-api-docs: exported man
6452 $(AM_V_GEN)for symbol in `cat exported` ; do \
6453 if test -f $(builddir)/man/$$symbol.html ; then \
6454 echo " Symbol $$symbol() is documented." ; \
6456 echo "‣ Symbol $$symbol() lacks documentation." ; \
6460 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6461 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6463 undefined defined: $(ALL_OBJECTS)
6464 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6465 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6466 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6472 .PHONY: check-api-unused
6473 check-api-unused: defined undefined exported
6474 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6476 .PHONY: check-includes
6477 check-includes: $(top_srcdir)/tools/check-includes.pl
6478 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6479 | xargs $(top_srcdir)/tools/check-includes.pl
6482 $(top_srcdir)/tools/check-includes.pl
6484 # Stupid test that everything purported to be exported really is
6485 define generate-sym-test
6486 $(AM_V_at)$(MKDIR_P) $(dir $@)
6487 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6488 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6489 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6490 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6491 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6492 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6493 $(AM_V_at)printf 'return 0; }\n' >> $@
6496 test-libsystemd-sym.c: \
6497 $(top_builddir)/src/libsystemd/libsystemd.sym \
6498 src/systemd/sd-journal.h \
6499 src/systemd/sd-daemon.h \
6500 src/systemd/sd-login.h \
6501 src/systemd/sd-bus.h \
6502 src/systemd/sd-utf8.h \
6503 src/systemd/sd-resolve.h \
6504 src/systemd/sd-path.h
6505 $(generate-sym-test)
6507 test-libudev-sym.c: \
6508 src/libudev/libudev.sym \
6510 $(generate-sym-test)
6512 test_libsystemd_sym_SOURCES = \
6513 test-libsystemd-sym.c
6514 test_libsystemd_sym_LDADD = \
6517 test_libudev_sym_SOURCES = \
6519 test_libudev_sym_CFLAGS = \
6521 -Wno-deprecated-declarations
6522 test_libudev_sym_LDADD = \
6526 $(test_libsystemd_sym_SOURCES) \
6527 $(test_libudev_sym_SOURCES)
6530 test-libsystemd-sym \
6535 cppcheck --enable=all -q $(top_srcdir)
6537 # Used to extract compile flags for YCM.
6542 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6545 tools/gdb-sd_dump_hashmaps.py