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.ru.catalog \
4441 catalog/systemd.catalog
4443 SOCKETS_TARGET_WANTS += \
4444 systemd-journald.socket \
4445 systemd-journald-dev-log.socket \
4446 systemd-journald-audit.socket
4448 SYSINIT_TARGET_WANTS += \
4449 systemd-journald.service \
4450 systemd-journal-flush.service \
4451 systemd-journal-catalog-update.service
4454 units/systemd-journald.service.in \
4455 units/systemd-journal-flush.service.in \
4456 units/systemd-journal-catalog-update.service.in \
4457 src/journal/journald-gperf.gperf
4460 src/journal/journald-gperf.c
4462 # ------------------------------------------------------------------------------
4464 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4466 rootlibexec_PROGRAMS += \
4467 systemd-journal-gatewayd
4469 systemd_journal_gatewayd_SOURCES = \
4470 src/journal-remote/journal-gatewayd.c \
4471 src/journal-remote/microhttpd-util.h \
4472 src/journal-remote/microhttpd-util.c
4474 systemd_journal_gatewayd_LDADD = \
4475 libsystemd-logs.la \
4476 libsystemd-journal-internal.la \
4477 libsystemd-internal.la \
4478 libsystemd-shared.la \
4482 systemd_journal_gatewayd_LDADD += \
4486 systemd_journal_gatewayd_CFLAGS = \
4488 $(MICROHTTPD_CFLAGS)
4490 systemd_journal_gatewayd_CPPFLAGS = \
4492 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4494 dist_systemunit_DATA += \
4495 units/systemd-journal-gatewayd.socket
4497 nodist_systemunit_DATA += \
4498 units/systemd-journal-gatewayd.service
4500 dist_gatewayddocumentroot_DATA = \
4501 src/journal-remote/browse.html
4506 units/systemd-journal-gatewayd.service.in
4508 # ------------------------------------------------------------------------------
4510 systemd_socket_proxyd_SOURCES = \
4511 src/socket-proxy/socket-proxyd.c
4513 systemd_socket_proxyd_LDADD = \
4514 libsystemd-logs.la \
4515 libsystemd-internal.la \
4516 libsystemd-journal-internal.la \
4517 libsystemd-shared.la \
4518 libsystemd-resolve.la
4520 # ------------------------------------------------------------------------------
4522 systemd_coredump_SOURCES = \
4523 src/journal/coredump.c \
4524 src/journal/coredump-vacuum.c \
4525 src/journal/coredump-vacuum.h
4527 systemd_coredump_LDADD = \
4528 libsystemd-journal-internal.la \
4529 libsystemd-label.la \
4530 libsystemd-internal.la \
4531 libsystemd-shared.la
4534 systemd_coredump_SOURCES += \
4535 src/journal/stacktrace.c \
4536 src/journal/stacktrace.h
4538 systemd_coredump_LDADD += \
4542 rootlibexec_PROGRAMS += \
4545 dist_pkgsysconf_DATA += \
4546 src/journal/coredump.conf
4549 systemd_coredump_LDADD += \
4553 coredumpctl_SOURCES = \
4554 src/journal/coredumpctl.c
4556 coredumpctl_LDADD = \
4557 libsystemd-journal-internal.la \
4558 libsystemd-internal.la \
4559 libsystemd-shared.la
4565 test-coredump-vacuum
4567 test_coredump_vacuum_SOURCES = \
4568 src/journal/test-coredump-vacuum.c \
4569 src/journal/coredump-vacuum.c \
4570 src/journal/coredump-vacuum.h
4572 test_coredump_vacuum_LDADD = \
4573 libsystemd-internal.la \
4574 libsystemd-shared.la
4576 dist_bashcompletion_DATA += \
4577 shell-completion/bash/coredumpctl
4579 dist_zshcompletion_DATA += \
4580 shell-completion/zsh/_coredumpctl
4583 sysctl.d/50-coredump.conf
4586 sysctl.d/50-coredump.conf
4590 sysctl.d/50-coredump.conf.in
4592 # ------------------------------------------------------------------------------
4594 systemd_binfmt_SOURCES = \
4597 systemd_binfmt_LDADD = \
4598 libsystemd-shared.la
4600 rootlibexec_PROGRAMS += \
4603 dist_systemunit_DATA += \
4604 units/proc-sys-fs-binfmt_misc.automount \
4605 units/proc-sys-fs-binfmt_misc.mount
4607 nodist_systemunit_DATA += \
4608 units/systemd-binfmt.service
4611 $(prefix)/lib/binfmt.d \
4612 $(sysconfdir)/binfmt.d
4614 SYSINIT_TARGET_WANTS += \
4615 systemd-binfmt.service \
4616 proc-sys-fs-binfmt_misc.automount
4621 units/systemd-binfmt.service.in
4623 # ------------------------------------------------------------------------------
4625 systemd_vconsole_setup_SOURCES = \
4626 src/vconsole/vconsole-setup.c
4628 systemd_vconsole_setup_LDADD = \
4629 libsystemd-shared.la
4631 rootlibexec_PROGRAMS += \
4632 systemd-vconsole-setup
4634 nodist_systemunit_DATA += \
4635 units/systemd-vconsole-setup.service
4637 nodist_udevrules_DATA += \
4638 src/vconsole/90-vconsole.rules
4640 SYSINIT_TARGET_WANTS += \
4641 systemd-vconsole-setup.service
4644 src/vconsole/90-vconsole.rules
4648 src/vconsole/90-vconsole.rules.in \
4649 units/systemd-vconsole-setup.service.in
4651 # ------------------------------------------------------------------------------
4653 systemd_bootchart_SOURCES = \
4654 src/bootchart/bootchart.c \
4655 src/bootchart/bootchart.h \
4656 src/bootchart/store.c \
4657 src/bootchart/store.h \
4658 src/bootchart/svg.c \
4661 systemd_bootchart_LDADD = \
4662 libsystemd-journal-internal.la \
4663 libsystemd-shared.la
4665 rootlibexec_PROGRAMS += \
4668 dist_pkgsysconf_DATA += \
4669 src/bootchart/bootchart.conf
4671 nodist_systemunit_DATA += \
4672 units/systemd-bootchart.service
4675 units/systemd-bootchart.service.in
4678 units/systemd-bootchart.service
4681 # ------------------------------------------------------------------------------
4682 if ENABLE_QUOTACHECK
4683 rootlibexec_PROGRAMS += \
4686 nodist_systemunit_DATA += \
4687 units/systemd-quotacheck.service
4689 systemd_quotacheck_SOURCES = \
4690 src/quotacheck/quotacheck.c
4692 systemd_quotacheck_LDADD = \
4693 libsystemd-shared.la
4697 units/systemd-quotacheck.service.in
4699 nodist_systemunit_DATA += \
4700 units/quotaon.service
4702 # ------------------------------------------------------------------------------
4703 if ENABLE_RANDOMSEED
4704 rootlibexec_PROGRAMS += \
4707 nodist_systemunit_DATA += \
4708 units/systemd-random-seed.service
4710 systemd_random_seed_SOURCES = \
4711 src/random-seed/random-seed.c
4713 systemd_random_seed_LDADD = \
4714 libsystemd-label.la \
4715 libsystemd-shared.la
4717 SYSINIT_TARGET_WANTS += \
4718 systemd-random-seed.service
4723 units/systemd-random-seed.service.in
4725 # ------------------------------------------------------------------------------
4727 rootlibexec_PROGRAMS += \
4730 nodist_systemunit_DATA += \
4731 units/systemd-backlight@.service
4733 systemd_backlight_SOURCES = \
4734 src/backlight/backlight.c
4736 systemd_backlight_LDADD = \
4737 libsystemd-label.la \
4738 libudev-internal.la \
4739 libsystemd-shared.la
4743 units/systemd-backlight@.service.in
4745 # ------------------------------------------------------------------------------
4747 rootlibexec_PROGRAMS += \
4750 nodist_systemunit_DATA += \
4751 units/systemd-rfkill@.service
4753 systemd_rfkill_SOURCES = \
4756 systemd_rfkill_LDADD = \
4757 libsystemd-label.la \
4758 libudev-internal.la \
4759 libsystemd-shared.la
4763 units/systemd-rfkill@.service.in
4765 # ------------------------------------------------------------------------------
4766 if HAVE_LIBCRYPTSETUP
4767 rootlibexec_PROGRAMS += \
4770 systemgenerator_PROGRAMS += \
4771 systemd-cryptsetup-generator
4773 dist_systemunit_DATA += \
4774 units/cryptsetup.target \
4775 units/cryptsetup-pre.target
4777 systemd_cryptsetup_SOURCES = \
4778 src/cryptsetup/cryptsetup.c
4780 systemd_cryptsetup_CFLAGS = \
4782 $(LIBCRYPTSETUP_CFLAGS)
4784 systemd_cryptsetup_LDADD = \
4785 libsystemd-label.la \
4786 libudev-internal.la \
4787 libsystemd-shared.la \
4788 $(LIBCRYPTSETUP_LIBS)
4790 systemd_cryptsetup_generator_SOURCES = \
4791 src/cryptsetup/cryptsetup-generator.c
4793 systemd_cryptsetup_generator_LDADD = \
4794 libsystemd-label.la \
4795 libsystemd-shared.la
4797 SYSINIT_TARGET_WANTS += \
4802 # ------------------------------------------------------------------------------
4804 systemd_hostnamed_SOURCES = \
4805 src/hostname/hostnamed.c
4807 systemd_hostnamed_LDADD = \
4808 libsystemd-label.la \
4809 libsystemd-internal.la \
4810 libsystemd-shared.la
4812 rootlibexec_PROGRAMS += \
4815 nodist_systemunit_DATA += \
4816 units/systemd-hostnamed.service
4818 dist_systemunit_DATA_busnames += \
4819 units/org.freedesktop.hostname1.busname
4821 dist_dbuspolicy_DATA += \
4822 src/hostname/org.freedesktop.hostname1.conf
4824 dist_dbussystemservice_DATA += \
4825 src/hostname/org.freedesktop.hostname1.service
4827 polkitpolicy_files += \
4828 src/hostname/org.freedesktop.hostname1.policy
4830 SYSTEM_UNIT_ALIASES += \
4831 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4833 BUSNAMES_TARGET_WANTS += \
4834 org.freedesktop.hostname1.busname
4836 hostnamectl_SOURCES = \
4837 src/hostname/hostnamectl.c
4839 hostnamectl_LDADD = \
4840 libsystemd-internal.la \
4841 libsystemd-shared.la
4846 dist_bashcompletion_DATA += \
4847 shell-completion/bash/hostnamectl
4849 dist_zshcompletion_DATA += \
4850 shell-completion/zsh/_hostnamectl
4854 polkitpolicy_in_files += \
4855 src/hostname/org.freedesktop.hostname1.policy.in
4858 units/systemd-hostnamed.service.in
4860 # ------------------------------------------------------------------------------
4861 dist_systemunit_DATA_busnames += \
4862 units/org.freedesktop.systemd1.busname
4864 BUSNAMES_TARGET_WANTS += \
4865 org.freedesktop.systemd1.busname
4867 # ------------------------------------------------------------------------------
4869 systemd_localed_SOURCES = \
4870 src/locale/localed.c
4872 systemd_localed_LDADD = \
4873 libsystemd-label.la \
4874 libsystemd-internal.la \
4875 libsystemd-shared.la \
4878 systemd_localed_CFLAGS = \
4882 nodist_systemunit_DATA += \
4883 units/systemd-localed.service
4885 dist_systemunit_DATA_busnames += \
4886 units/org.freedesktop.locale1.busname
4888 rootlibexec_PROGRAMS += \
4891 dist_dbuspolicy_DATA += \
4892 src/locale/org.freedesktop.locale1.conf
4894 dist_dbussystemservice_DATA += \
4895 src/locale/org.freedesktop.locale1.service
4897 polkitpolicy_files += \
4898 src/locale/org.freedesktop.locale1.policy
4900 SYSTEM_UNIT_ALIASES += \
4901 systemd-localed.service dbus-org.freedesktop.locale1.service
4903 BUSNAMES_TARGET_WANTS += \
4904 org.freedesktop.locale1.busname
4906 dist_pkgdata_DATA += \
4907 src/locale/kbd-model-map
4909 dist_noinst_SCRIPT = \
4910 src/locale/generate-kbd-model-map
4912 localectl_SOURCES = \
4913 src/locale/localectl.c
4916 libsystemd-internal.la \
4917 libsystemd-shared.la
4922 dist_bashcompletion_DATA += \
4923 shell-completion/bash/localectl
4925 dist_zshcompletion_DATA += \
4926 shell-completion/zsh/_localectl
4930 .PHONY: update-kbd-model-map
4932 polkitpolicy_in_files += \
4933 src/locale/org.freedesktop.locale1.policy.in
4936 units/systemd-localed.service.in
4938 # ------------------------------------------------------------------------------
4940 systemd_timedated_SOURCES = \
4941 src/timedate/timedated.c
4943 systemd_timedated_LDADD = \
4944 libsystemd-label.la \
4945 libsystemd-internal.la \
4946 libsystemd-shared.la
4948 rootlibexec_PROGRAMS += \
4951 dist_dbussystemservice_DATA += \
4952 src/timedate/org.freedesktop.timedate1.service
4954 dist_dbuspolicy_DATA += \
4955 src/timedate/org.freedesktop.timedate1.conf
4957 nodist_systemunit_DATA += \
4958 units/systemd-timedated.service
4960 dist_systemunit_DATA_busnames += \
4961 units/org.freedesktop.timedate1.busname
4963 polkitpolicy_files += \
4964 src/timedate/org.freedesktop.timedate1.policy
4966 SYSTEM_UNIT_ALIASES += \
4967 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4969 BUSNAMES_TARGET_WANTS += \
4970 org.freedesktop.timedate1.busname
4972 timedatectl_SOURCES = \
4973 src/timedate/timedatectl.c
4975 timedatectl_LDADD = \
4976 libsystemd-internal.la \
4977 libsystemd-shared.la
4982 dist_bashcompletion_DATA += \
4983 shell-completion/bash/timedatectl
4985 dist_zshcompletion_DATA += \
4986 shell-completion/zsh/_timedatectl
4989 polkitpolicy_in_files += \
4990 src/timedate/org.freedesktop.timedate1.policy.in
4993 units/systemd-timedated.service.in
4995 # ------------------------------------------------------------------------------
4997 systemd_timesyncd_SOURCES = \
4998 src/timesync/timesyncd.c \
4999 src/timesync/timesyncd-manager.c \
5000 src/timesync/timesyncd-manager.h \
5001 src/timesync/timesyncd-conf.c \
5002 src/timesync/timesyncd-conf.h \
5003 src/timesync/timesyncd-server.c \
5004 src/timesync/timesyncd-server.h
5006 nodist_systemd_timesyncd_SOURCES = \
5007 src/timesync/timesyncd-gperf.c
5010 src/timesync/timesyncd-gperf.gperf
5013 src/timesync/timesyncd-gperf.c
5015 systemd_timesyncd_LDADD = \
5016 libsystemd-resolve.la \
5017 libsystemd-network.la \
5018 libsystemd-label.la \
5019 libsystemd-internal.la \
5020 libsystemd-shared.la
5022 rootlibexec_PROGRAMS += \
5025 nodist_systemunit_DATA += \
5026 units/systemd-timesyncd.service
5028 GENERAL_ALIASES += \
5029 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5032 units/systemd-timesyncd.service.in
5034 nodist_pkgsysconf_DATA += \
5035 src/timesync/timesyncd.conf
5038 src/timesync/timesyncd.conf.in
5041 src/timesync/timesyncd.conf
5044 # ------------------------------------------------------------------------------
5046 libnss_myhostname_la_SOURCES = \
5047 src/nss-myhostname/nss-myhostname.sym \
5048 src/nss-myhostname/nss-myhostname.c
5050 libnss_myhostname_la_LDFLAGS = \
5057 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5059 libnss_myhostname_la_LIBADD = \
5060 libsystemd-shared.la \
5061 libsystemd-internal.la
5063 lib_LTLIBRARIES += \
5064 libnss_myhostname.la
5067 # ------------------------------------------------------------------------------
5069 systemd_machined_SOURCES = \
5070 src/machine/machined.c \
5071 src/machine/machined.h
5073 systemd_machined_LDADD = \
5074 libsystemd-machine-core.la
5076 rootlibexec_PROGRAMS += \
5079 libsystemd_machine_core_la_SOURCES = \
5080 src/machine/machine.c \
5081 src/machine/machine.h \
5082 src/machine/machined-dbus.c \
5083 src/machine/machine-dbus.c \
5084 src/machine/machine-dbus.h \
5085 src/machine/image-dbus.c \
5086 src/machine/image-dbus.h
5088 libsystemd_machine_core_la_LIBADD = \
5089 libsystemd-label.la \
5090 libsystemd-internal.la \
5091 libudev-internal.la \
5092 libsystemd-shared.la
5094 noinst_LTLIBRARIES += \
5095 libsystemd-machine-core.la
5097 machinectl_SOURCES = \
5098 src/machine/machinectl.c
5100 machinectl_LDADD = \
5101 libsystemd-internal.la \
5102 libsystemd-logs.la \
5103 libsystemd-journal-internal.la \
5104 libsystemd-shared.la
5106 rootbin_PROGRAMS += \
5109 dist_bashcompletion_DATA += \
5110 shell-completion/bash/machinectl
5112 test_machine_tables_SOURCES = \
5113 src/machine/test-machine-tables.c
5115 test_machine_tables_LDADD = \
5116 libsystemd-machine-core.la
5121 nodist_systemunit_DATA += \
5122 units/systemd-machined.service
5124 dist_systemunit_DATA += \
5127 dist_systemunit_DATA_busnames += \
5128 units/org.freedesktop.machine1.busname
5130 dist_dbussystemservice_DATA += \
5131 src/machine/org.freedesktop.machine1.service
5133 dist_dbuspolicy_DATA += \
5134 src/machine/org.freedesktop.machine1.conf
5136 polkitpolicy_files += \
5137 src/machine/org.freedesktop.machine1.policy
5139 polkitpolicy_in_files += \
5140 src/machine/org.freedesktop.machine1.policy.in
5142 dist_zshcompletion_DATA += \
5143 shell-completion/zsh/_machinectl \
5144 shell-completion/zsh/_sd_machines
5146 SYSTEM_UNIT_ALIASES += \
5147 systemd-machined.service dbus-org.freedesktop.machine1.service
5149 BUSNAMES_TARGET_WANTS += \
5150 org.freedesktop.machine1.busname
5153 units/systemd-machined.service.in
5155 libnss_mymachines_la_SOURCES = \
5156 src/nss-mymachines/nss-mymachines.sym \
5157 src/nss-mymachines/nss-mymachines.c
5159 libnss_mymachines_la_LDFLAGS = \
5166 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5168 libnss_mymachines_la_LIBADD = \
5169 libsystemd-shared.la \
5170 libsystemd-internal.la
5172 lib_LTLIBRARIES += \
5173 libnss_mymachines.la
5180 systemd_import_SOURCES = \
5181 src/import/import.c \
5182 src/import/import-gpt.c \
5183 src/import/import-gpt.h \
5184 src/import/import-dkr.c \
5185 src/import/import-dkr.h \
5186 src/import/curl-util.c \
5187 src/import/curl-util.h \
5188 src/import/aufs-util.c \
5189 src/import/aufs-util.h
5191 systemd_import_CFLAGS = \
5195 systemd_import_LDADD = \
5196 libsystemd-internal.la \
5197 libsystemd-label.la \
5198 libsystemd-shared.la \
5204 # ------------------------------------------------------------------------------
5206 systemd_resolved_SOURCES = \
5207 src/resolve/resolved.c \
5208 src/resolve/resolved-manager.c \
5209 src/resolve/resolved-manager.h \
5210 src/resolve/resolved-conf.c \
5211 src/resolve/resolved-conf.h \
5212 src/resolve/resolved-bus.c \
5213 src/resolve/resolved-bus.h \
5214 src/resolve/resolved-link.h \
5215 src/resolve/resolved-link.c \
5216 src/resolve/resolved-def.h \
5217 src/resolve/resolved-dns-domain.h \
5218 src/resolve/resolved-dns-domain.c \
5219 src/resolve/resolved-dns-rr.h \
5220 src/resolve/resolved-dns-rr.c \
5221 src/resolve/resolved-dns-question.h \
5222 src/resolve/resolved-dns-question.c \
5223 src/resolve/resolved-dns-answer.h \
5224 src/resolve/resolved-dns-answer.c \
5225 src/resolve/resolved-dns-packet.h \
5226 src/resolve/resolved-dns-packet.c \
5227 src/resolve/resolved-dns-query.h \
5228 src/resolve/resolved-dns-query.c \
5229 src/resolve/resolved-dns-transaction.h \
5230 src/resolve/resolved-dns-transaction.c \
5231 src/resolve/resolved-dns-scope.h \
5232 src/resolve/resolved-dns-scope.c \
5233 src/resolve/resolved-dns-server.h \
5234 src/resolve/resolved-dns-server.c \
5235 src/resolve/resolved-dns-cache.h \
5236 src/resolve/resolved-dns-cache.c \
5237 src/resolve/resolved-dns-zone.h \
5238 src/resolve/resolved-dns-zone.c \
5239 src/resolve/resolved-dns-stream.h \
5240 src/resolve/resolved-dns-stream.c \
5241 src/resolve/dns-type.c \
5242 src/resolve/dns-type.h \
5243 src/resolve/dns_type-from-name.h \
5244 src/resolve/dns_type-to-name.h
5246 nodist_systemd_resolved_SOURCES = \
5247 src/resolve/resolved-gperf.c
5250 src/resolve/resolved-gperf.gperf \
5251 src/resolve/dns_type-from-name.gperf
5254 src/resolve/resolved-gperf.c
5256 systemd_resolved_LDADD = \
5257 libsystemd-network.la \
5258 libsystemd-label.la \
5259 libsystemd-internal.la \
5260 libsystemd-shared.la \
5263 rootlibexec_PROGRAMS += \
5266 nodist_systemunit_DATA += \
5267 units/systemd-resolved.service
5269 dist_systemunit_DATA_busnames += \
5270 units/org.freedesktop.resolve1.busname
5272 dist_dbuspolicy_DATA += \
5273 src/resolve/org.freedesktop.resolve1.conf
5275 dist_dbussystemservice_DATA += \
5276 src/resolve/org.freedesktop.resolve1.service
5279 units/systemd-resolved.service.in
5281 SYSTEM_UNIT_ALIASES += \
5282 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5284 BUSNAMES_TARGET_WANTS += \
5285 org.freedesktop.resolve1.busname
5287 GENERAL_ALIASES += \
5288 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5290 nodist_pkgsysconf_DATA += \
5291 src/resolve/resolved.conf
5294 src/resolve/resolved.conf.in
5297 src/resolve/resolved.conf
5302 test_dns_domain_SOURCES = \
5303 src/resolve/resolved-dns-domain.h \
5304 src/resolve/resolved-dns-domain.c \
5305 src/resolve/test-dns-domain.c
5307 test_dns_domain_LDADD = \
5308 libsystemd-network.la \
5309 libsystemd-label.la \
5310 libsystemd-internal.la \
5311 libsystemd-shared.la \
5314 libnss_resolve_la_SOURCES = \
5315 src/nss-resolve/nss-resolve.sym \
5316 src/nss-resolve/nss-resolve.c
5318 libnss_resolve_la_LDFLAGS = \
5325 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5327 libnss_resolve_la_LIBADD = \
5328 libsystemd-internal.la \
5329 libsystemd-shared.la
5331 lib_LTLIBRARIES += \
5334 systemd_resolve_host_SOURCES = \
5335 src/resolve-host/resolve-host.c \
5336 src/resolve/resolved-dns-packet.c \
5337 src/resolve/resolved-dns-packet.h \
5338 src/resolve/resolved-dns-rr.c \
5339 src/resolve/resolved-dns-rr.h \
5340 src/resolve/resolved-dns-answer.c \
5341 src/resolve/resolved-dns-answer.h \
5342 src/resolve/resolved-dns-question.c \
5343 src/resolve/resolved-dns-question.h \
5344 src/resolve/resolved-dns-domain.c \
5345 src/resolve/resolved-dns-domain.h \
5346 src/resolve/dns-type.c \
5347 src/resolve/dns-type.h \
5348 src/resolve/dns_type-from-name.h \
5349 src/resolve/dns_type-to-name.h
5351 systemd_resolve_host_LDADD = \
5352 libsystemd-internal.la \
5353 libsystemd-shared.la \
5356 rootlibexec_PROGRAMS += \
5357 systemd-resolve-host
5361 # ------------------------------------------------------------------------------
5363 rootlibexec_PROGRAMS += \
5366 systemd_networkd_SOURCES = \
5367 src/network/networkd.c
5369 systemd_networkd_LDADD = \
5370 libsystemd-networkd-core.la
5372 noinst_LTLIBRARIES += \
5373 libsystemd-networkd-core.la
5375 libsystemd_networkd_core_la_CFLAGS = \
5378 libsystemd_networkd_core_la_SOURCES = \
5379 src/libsystemd-network/network-internal.h \
5380 src/network/networkd.h \
5381 src/network/networkd-link.h \
5382 src/network/networkd-netdev.h \
5383 src/network/networkd-netdev-tunnel.h \
5384 src/network/networkd-netdev-veth.h \
5385 src/network/networkd-netdev-vxlan.h \
5386 src/network/networkd-netdev-vlan.h \
5387 src/network/networkd-netdev-macvlan.h \
5388 src/network/networkd-netdev-dummy.h \
5389 src/network/networkd-netdev-tuntap.h \
5390 src/network/networkd-netdev-bond.h \
5391 src/network/networkd-netdev-bridge.h \
5392 src/network/networkd-netdev.c \
5393 src/network/networkd-netdev-tunnel.c \
5394 src/network/networkd-netdev-veth.c \
5395 src/network/networkd-netdev-vxlan.c \
5396 src/network/networkd-netdev-vlan.c \
5397 src/network/networkd-netdev-macvlan.c \
5398 src/network/networkd-netdev-dummy.c \
5399 src/network/networkd-netdev-tuntap.c \
5400 src/network/networkd-netdev-bond.c \
5401 src/network/networkd-netdev-bridge.c \
5402 src/network/networkd-link.c \
5403 src/network/networkd-ipv4ll.c \
5404 src/network/networkd-dhcp4.c \
5405 src/network/networkd-dhcp6.c \
5406 src/network/networkd-network.c \
5407 src/network/networkd-address.c \
5408 src/network/networkd-route.c \
5409 src/network/networkd-manager.c \
5410 src/network/networkd-fdb.c \
5411 src/network/networkd-address-pool.c
5413 nodist_libsystemd_networkd_core_la_SOURCES = \
5414 src/network/networkd-network-gperf.c \
5415 src/network/networkd-netdev-gperf.c
5417 libsystemd_networkd_core_la_LIBADD = \
5418 libudev-internal.la \
5419 libsystemd-internal.la \
5420 libsystemd-network.la \
5421 libsystemd-label.la \
5422 libsystemd-shared.la
5424 rootlibexec_PROGRAMS += \
5425 systemd-networkd-wait-online
5427 systemd_networkd_wait_online_CFLAGS = \
5430 systemd_networkd_wait_online_SOURCES = \
5431 src/libsystemd-network/network-internal.h \
5432 src/network/networkd-wait-online.h \
5433 src/network/networkd-wait-online-link.h \
5434 src/network/networkd-wait-online.c \
5435 src/network/networkd-wait-online-manager.c \
5436 src/network/networkd-wait-online-link.c
5438 systemd_networkd_wait_online_LDADD = \
5439 libsystemd-network.la \
5440 libudev-internal.la \
5441 libsystemd-internal.la \
5442 libsystemd-shared.la
5444 rootbin_PROGRAMS += \
5447 networkctl_SOURCES = \
5448 src/network/networkctl.c
5450 networkctl_LDADD = \
5451 libsystemd-internal.la \
5452 libudev-internal.la \
5453 libsystemd-shared.la \
5454 libsystemd-network.la
5456 test_network_SOURCES = \
5457 src/network/test-network.c
5459 test_network_LDADD = \
5460 libsystemd-networkd-core.la
5462 test_network_tables_SOURCES = \
5463 src/network/test-network-tables.c \
5464 src/shared/test-tables.h
5466 test_network_tables_LDADD = \
5467 libsystemd-networkd-core.la \
5474 nodist_systemunit_DATA += \
5475 units/systemd-networkd.service \
5476 units/systemd-networkd-wait-online.service
5478 GENERAL_ALIASES += \
5479 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5480 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5483 src/network/networkd-network-gperf.gperf \
5484 src/network/networkd-netdev-gperf.gperf \
5485 units/systemd-networkd.service.in \
5486 units/systemd-networkd-wait-online.service.in
5489 src/network/networkd-network-gperf.c \
5490 src/network/networkd-netdev-gperf.c
5493 # ------------------------------------------------------------------------------
5495 systemd_logind_SOURCES = \
5496 src/login/logind.c \
5499 nodist_systemd_logind_SOURCES = \
5500 src/login/logind-gperf.c
5502 systemd_logind_LDADD = \
5503 libsystemd-logind-core.la
5505 libsystemd_logind_core_la_SOURCES = \
5506 src/login/logind-core.c \
5507 src/login/logind-device.c \
5508 src/login/logind-device.h \
5509 src/login/logind-button.c \
5510 src/login/logind-button.h \
5511 src/login/logind-action.c \
5512 src/login/logind-action.h \
5513 src/login/logind-seat.c \
5514 src/login/logind-seat.h \
5515 src/login/logind-session.c \
5516 src/login/logind-session.h \
5517 src/login/logind-session-device.c \
5518 src/login/logind-session-device.h \
5519 src/login/logind-user.c \
5520 src/login/logind-user.h \
5521 src/login/logind-inhibit.c \
5522 src/login/logind-inhibit.h \
5523 src/login/logind-dbus.c \
5524 src/login/logind-session-dbus.c \
5525 src/login/logind-seat-dbus.c \
5526 src/login/logind-user-dbus.c \
5527 src/login/logind-acl.h
5529 libsystemd_logind_core_la_LIBADD = \
5530 libsystemd-label.la \
5531 libsystemd-internal.la \
5532 libudev-internal.la \
5533 libsystemd-shared.la
5536 libsystemd_logind_core_la_SOURCES += \
5537 src/login/logind-acl.c
5539 libsystemd_logind_core_la_LIBADD += \
5543 noinst_LTLIBRARIES += \
5544 libsystemd-logind-core.la
5546 systemd_user_sessions_SOURCES = \
5547 src/login/user-sessions.c
5549 systemd_user_sessions_LDADD = \
5550 libsystemd-shared.la
5552 rootlibexec_PROGRAMS += \
5554 systemd-user-sessions
5556 loginctl_SOURCES = \
5557 src/login/loginctl.c \
5558 src/login/sysfs-show.h \
5559 src/login/sysfs-show.c
5562 libsystemd-internal.la \
5563 libsystemd-logs.la \
5564 libsystemd-journal-internal.la \
5565 libudev-internal.la \
5566 libsystemd-shared.la
5568 rootbin_PROGRAMS += \
5571 dist_bashcompletion_DATA += \
5572 shell-completion/bash/loginctl
5574 dist_zshcompletion_DATA += \
5575 shell-completion/zsh/_loginctl \
5576 shell-completion/zsh/_systemd-inhibit
5578 systemd_inhibit_SOURCES = \
5581 systemd_inhibit_LDADD = \
5582 libsystemd-internal.la \
5583 libsystemd-shared.la
5585 rootbin_PROGRAMS += \
5588 test_login_SOURCES = \
5589 src/libsystemd/sd-login/test-login.c
5591 test_login_LDADD = \
5592 libsystemd-internal.la \
5593 libsystemd-shared.la
5595 test_login_shared_SOURCES = \
5596 src/login/test-login-shared.c
5598 test_login_shared_LDADD = \
5599 libsystemd-internal.la \
5600 libsystemd-shared.la
5602 test_inhibit_SOURCES = \
5603 src/login/test-inhibit.c
5605 test_inhibit_LDADD = \
5606 libsystemd-internal.la \
5607 libsystemd-shared.la
5609 test_login_tables_SOURCES = \
5610 src/login/test-login-tables.c
5612 test_login_tables_LDADD = \
5613 libsystemd-logind-core.la
5624 pam_systemd_la_SOURCES = \
5625 src/login/pam_systemd.sym \
5626 src/login/pam_systemd.c
5628 pam_systemd_la_CFLAGS = \
5633 pam_systemd_la_LDFLAGS = \
5639 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5641 pam_systemd_la_LIBADD = \
5642 libsystemd-internal.la \
5643 libsystemd-shared.la \
5646 pamlib_LTLIBRARIES = \
5649 dist_pamconf_DATA = \
5650 src/login/systemd-user
5653 nodist_systemunit_DATA += \
5654 units/systemd-logind.service \
5655 units/systemd-user-sessions.service
5657 dist_systemunit_DATA += \
5660 dist_systemunit_DATA_busnames += \
5661 units/org.freedesktop.login1.busname
5663 dist_dbussystemservice_DATA += \
5664 src/login/org.freedesktop.login1.service
5666 dist_dbuspolicy_DATA += \
5667 src/login/org.freedesktop.login1.conf
5669 dist_pkgsysconf_DATA += \
5670 src/login/logind.conf
5672 polkitpolicy_files += \
5673 src/login/org.freedesktop.login1.policy
5678 MULTI_USER_TARGET_WANTS += \
5679 systemd-logind.service \
5680 systemd-user-sessions.service
5682 SYSTEM_UNIT_ALIASES += \
5683 systemd-logind.service dbus-org.freedesktop.login1.service
5685 BUSNAMES_TARGET_WANTS += \
5686 org.freedesktop.login1.busname
5688 dist_udevrules_DATA += \
5689 src/login/70-uaccess.rules \
5690 src/login/70-power-switch.rules
5692 nodist_udevrules_DATA += \
5693 src/login/71-seat.rules \
5694 src/login/73-seat-late.rules
5697 src/login/logind-gperf.c \
5698 src/login/71-seat.rules \
5699 src/login/73-seat-late.rules
5702 polkitpolicy_in_files += \
5703 src/login/org.freedesktop.login1.policy.in
5706 src/login/logind-gperf.gperf \
5707 src/login/71-seat.rules.in \
5708 src/login/73-seat-late.rules.in \
5709 units/systemd-logind.service.in \
5710 units/systemd-user-sessions.service.in
5712 # ------------------------------------------------------------------------------
5713 if HAVE_PYTHON_DEVEL
5714 pkgpyexec_LTLIBRARIES = \
5721 _journal_la_SOURCES = \
5722 src/python-systemd/_journal.c
5724 _journal_la_CFLAGS = \
5726 -fvisibility=default \
5727 $(PYTHON_DEVEL_CFLAGS)
5729 _journal_la_LDFLAGS = \
5735 _journal_la_LIBADD = \
5736 $(PYTHON_DEVEL_LIBS) \
5739 id128_la_SOURCES = \
5740 src/python-systemd/id128.c \
5741 src/python-systemd/pyutil.c \
5742 src/python-systemd/pyutil.h
5744 nodist_id128_la_SOURCES = \
5745 src/python-systemd/id128-constants.h
5749 -fvisibility=default \
5750 $(PYTHON_DEVEL_CFLAGS) \
5751 -I$(top_builddir)/src/python-systemd
5753 id128_la_LDFLAGS = \
5760 $(PYTHON_DEVEL_LIBS) \
5761 libsystemd-shared.la \
5764 _daemon_la_SOURCES = \
5765 src/python-systemd/_daemon.c \
5766 src/python-systemd/pyutil.c \
5767 src/python-systemd/pyutil.h
5769 _daemon_la_CFLAGS = \
5771 -fvisibility=default \
5772 $(PYTHON_DEVEL_CFLAGS) \
5773 -I$(top_builddir)/src/python-systemd
5775 _daemon_la_LDFLAGS = \
5781 _daemon_la_LIBADD = \
5782 $(PYTHON_DEVEL_LIBS) \
5783 libsystemd-shared.la \
5786 _reader_la_SOURCES = \
5787 src/python-systemd/_reader.c \
5788 src/python-systemd/pyutil.c \
5789 src/python-systemd/pyutil.h
5791 _reader_la_CFLAGS = \
5793 -fvisibility=default \
5794 $(PYTHON_DEVEL_CFLAGS)
5796 _reader_la_LDFLAGS = \
5802 _reader_la_LIBADD = \
5803 $(PYTHON_DEVEL_LIBS) \
5804 libsystemd-shared.la \
5807 login_la_SOURCES = \
5808 src/python-systemd/login.c \
5809 src/python-systemd/pyutil.c \
5810 src/python-systemd/pyutil.h
5814 -fvisibility=default \
5815 $(PYTHON_DEVEL_CFLAGS)
5817 login_la_LDFLAGS = \
5824 $(PYTHON_DEVEL_LIBS) \
5825 libsystemd-shared.la \
5828 dist_pkgpyexec_PYTHON = \
5829 src/python-systemd/journal.py \
5830 src/python-systemd/daemon.py \
5831 src/python-systemd/__init__.py
5833 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5834 $(AM_V_at)$(MKDIR_P) $(dir $@)
5835 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5838 src/python-systemd/id128-constants.h
5840 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5842 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5843 $(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/
5844 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5847 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5848 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5851 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5852 $(MAKE) DESTDIR="$$dir" install && \
5853 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5858 CLEAN_LOCAL_HOOKS += clean-sphinx
5860 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5863 -rm -rf docs/html/python-systemd/
5865 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5867 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5868 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5870 # ------------------------------------------------------------------------------
5871 if ENABLE_COMPAT_LIBS
5873 src/compat-libs/linkwarning.h
5875 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5876 $(AM_V_at)$(MKDIR_P) $(dir $@)
5877 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5880 libsystemd-journal.c \
5881 libsystemd-login.c \
5882 libsystemd-id128.c \
5885 libsystemd_journal_la_SOURCES = \
5886 libsystemd-journal.c \
5887 src/compat-libs/libsystemd-journal.sym
5889 libsystemd_journal_la_CPPFLAGS = \
5891 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5893 libsystemd_journal_la_LDFLAGS = \
5895 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5896 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5898 libsystemd_journal_la_LIBADD = \
5899 libsystemd-journal-internal.la \
5900 libsystemd-internal.la \
5901 libsystemd-shared.la
5903 libsystemd_login_la_SOURCES = \
5904 libsystemd-login.c \
5905 src/compat-libs/libsystemd-login.sym
5907 libsystemd_login_la_CPPFLAGS = \
5909 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5911 libsystemd_login_la_LDFLAGS = \
5913 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5914 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5916 libsystemd_login_la_LIBADD = \
5917 libsystemd-internal.la \
5918 libsystemd-shared.la
5920 libsystemd_id128_la_SOURCES = \
5921 libsystemd-id128.c \
5922 src/compat-libs/libsystemd-id128.sym
5924 libsystemd_id128_la_CPPFLAGS = \
5926 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5928 libsystemd_id128_la_LDFLAGS = \
5930 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5931 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5933 libsystemd_id128_la_LIBADD = \
5934 libsystemd-internal.la \
5935 libsystemd-shared.la
5937 libsystemd_daemon_la_SOURCES = \
5938 libsystemd-daemon.c \
5939 src/compat-libs/libsystemd-daemon.sym
5941 libsystemd_daemon_la_CPPFLAGS = \
5943 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5945 libsystemd_daemon_la_LDFLAGS = \
5947 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5948 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5950 libsystemd_daemon_la_LIBADD = \
5951 libsystemd-internal.la \
5952 libsystemd-shared.la
5954 lib_LTLIBRARIES += \
5955 libsystemd-journal.la \
5956 libsystemd-login.la \
5957 libsystemd-id128.la \
5958 libsystemd-daemon.la
5960 pkgconfiglib_DATA += \
5961 src/compat-libs/libsystemd-journal.pc \
5962 src/compat-libs/libsystemd-login.pc \
5963 src/compat-libs/libsystemd-id128.pc \
5964 src/compat-libs/libsystemd-daemon.pc
5966 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5967 compat-lib-install-hook:
5968 libname=libsystemd-login.so && $(move-to-rootlibdir)
5969 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5970 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5971 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5973 compat-lib-uninstall-hook:
5974 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5975 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5976 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5977 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5979 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5980 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5984 src/compat-libs/libsystemd-journal.pc.in \
5985 src/compat-libs/libsystemd-login.pc.in \
5986 src/compat-libs/libsystemd-id128.pc.in \
5987 src/compat-libs/libsystemd-daemon.pc.in
5989 # ------------------------------------------------------------------------------
5991 '|rootlibexecdir=$(rootlibexecdir)|' \
5992 '|rootbindir=$(rootbindir)|' \
5993 '|bindir=$(bindir)|' \
5994 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5995 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5996 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5997 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5998 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5999 '|pkgdatadir=$(pkgdatadir)|' \
6000 '|systemunitdir=$(systemunitdir)|' \
6001 '|userunitdir=$(userunitdir)|' \
6002 '|systempresetdir=$(systempresetdir)|' \
6003 '|userpresetdir=$(userpresetdir)|' \
6004 '|udevhwdbdir=$(udevhwdbdir)|' \
6005 '|udevrulesdir=$(udevrulesdir)|' \
6006 '|catalogdir=$(catalogdir)|' \
6007 '|tmpfilesdir=$(tmpfilesdir)|' \
6008 '|sysusersdir=$(sysusersdir)|' \
6009 '|sysctldir=$(sysctldir)|' \
6010 '|systemgeneratordir=$(systemgeneratordir)|' \
6011 '|usergeneratordir=$(usergeneratordir)|' \
6012 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6013 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6014 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6015 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6016 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6017 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6018 '|prefix=$(prefix)|' \
6019 '|exec_prefix=$(exec_prefix)|' \
6020 '|libdir=$(libdir)|' \
6021 '|includedir=$(includedir)|' \
6022 '|VERSION=$(VERSION)|' \
6023 '|rootprefix=$(rootprefix)|' \
6024 '|udevlibexecdir=$(udevlibexecdir)|' \
6025 '|SUSHELL=$(SUSHELL)|' \
6026 '|DEBUGTTY=$(DEBUGTTY)|' \
6029 '|MKDIR_P=$(MKDIR_P)|' \
6030 '|QUOTAON=$(QUOTAON)|' \
6031 '|QUOTACHECK=$(QUOTACHECK)|' \
6032 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6033 '|VARLOGDIR=$(varlogdir)|' \
6034 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6035 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6036 '|PYTHON=$(PYTHON)|' \
6037 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6038 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6039 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6040 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6041 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6042 '|TTY_GID=$(TTY_GID)|' \
6043 '|systemsleepdir=$(systemsleepdir)|' \
6044 '|systemshutdowndir=$(systemshutdowndir)|' \
6045 '|binfmtdir=$(binfmtdir)|' \
6046 '|modulesloaddir=$(modulesloaddir)|'
6049 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6050 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6059 sysctl.d/%: sysctl.d/%.in
6068 src/core/macros.%: src/core/macros.%.in
6071 src/%.policy.in: src/%.policy.in.in
6074 shell-completion/%: shell-completion/%.in
6085 $(AM_V_GEN)chmod +x $@
6087 src/%.c: src/%.gperf
6088 $(AM_V_at)$(MKDIR_P) $(dir $@)
6089 $(AM_V_GPERF)$(GPERF) < $< > $@
6092 $(AM_V_at)$(MKDIR_P) $(dir $@)
6093 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6095 sysusers.d/%: sysusers.d/%.m4
6096 $(AM_V_at)$(MKDIR_P) $(dir $@)
6097 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6099 tmpfiles.d/%: tmpfiles.d/%.m4
6100 $(AM_V_at)$(MKDIR_P) $(dir $@)
6101 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6105 $(AM_V_at)$(MKDIR_P) $(dir $@)
6106 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6108 units/user/%: units/user/%.m4
6109 $(AM_V_at)$(MKDIR_P) $(dir $@)
6110 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6113 nodist_polkitpolicy_DATA = \
6114 $(polkitpolicy_files) \
6115 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6119 $(polkitpolicy_in_files) \
6120 $(polkitpolicy_in_in_files)
6123 $(nodist_systemunit_DATA) \
6124 $(nodist_userunit_DATA) \
6125 $(pkgconfiglib_DATA) \
6126 $(nodist_polkitpolicy_DATA)
6128 # ------------------------------------------------------------------------------
6130 man/custom-entities.ent: configure.ac
6131 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6132 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6133 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6137 man/custom-entities.ent
6142 --stringparam man.output.quietly 1 \
6143 --stringparam funcsynopsis.style ansi \
6144 --stringparam man.authors.section.enabled 0 \
6145 --stringparam man.copyright.section.enabled 0 \
6146 --stringparam systemd.version $(VERSION) \
6147 --path '$(builddir)/man:$(srcdir)/man'
6149 XSLTPROC_PROCESS_MAN = \
6150 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6152 XSLTPROC_PROCESS_HTML = \
6153 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6155 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6156 $(XSLTPROC_PROCESS_MAN)
6158 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6159 $(XSLTPROC_PROCESS_MAN)
6161 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6162 $(XSLTPROC_PROCESS_MAN)
6164 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6165 $(XSLTPROC_PROCESS_MAN)
6167 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6168 $(XSLTPROC_PROCESS_MAN)
6170 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6171 $(XSLTPROC_PROCESS_HTML)
6174 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6180 man/custom-html.xsl \
6183 # ------------------------------------------------------------------------------
6186 docs/sysvinit/README
6191 docs/sysvinit/README: docs/sysvinit/README.in
6194 docs/var-log/README: docs/var-log/README.in
6198 docs/sysvinit/README \
6203 docs/sysvinit/README.in \
6204 docs/var-log/README.in
6206 SOCKETS_TARGET_WANTS += \
6207 systemd-initctl.socket \
6208 systemd-shutdownd.socket
6212 RUNLEVEL1_TARGET_WANTS += \
6213 systemd-update-utmp-runlevel.service
6214 RUNLEVEL2_TARGET_WANTS += \
6215 systemd-update-utmp-runlevel.service
6216 RUNLEVEL3_TARGET_WANTS += \
6217 systemd-update-utmp-runlevel.service
6218 RUNLEVEL4_TARGET_WANTS += \
6219 systemd-update-utmp-runlevel.service
6220 RUNLEVEL5_TARGET_WANTS += \
6221 systemd-update-utmp-runlevel.service
6224 SYSINIT_TARGET_WANTS += \
6225 systemd-update-utmp.service
6228 SYSINIT_TARGET_WANTS += \
6229 systemd-update-done.service
6231 LOCAL_FS_TARGET_WANTS += \
6232 systemd-remount-fs.service \
6235 MULTI_USER_TARGET_WANTS += \
6237 systemd-ask-password-wall.path
6239 SYSINIT_TARGET_WANTS += \
6240 dev-hugepages.mount \
6242 sys-kernel-config.mount \
6243 sys-kernel-debug.mount \
6244 sys-fs-fuse-connections.mount \
6245 systemd-sysctl.service \
6246 systemd-ask-password-console.path
6249 SYSTEM_UNIT_ALIASES += \
6250 poweroff.target runlevel0.target \
6251 rescue.target runlevel1.target \
6252 multi-user.target runlevel2.target \
6253 multi-user.target runlevel3.target \
6254 multi-user.target runlevel4.target \
6255 graphical.target runlevel5.target \
6256 reboot.target runlevel6.target
6259 SYSTEM_UNIT_ALIASES += \
6260 graphical.target default.target \
6261 reboot.target ctrl-alt-del.target \
6262 getty@.service autovt@.service
6264 USER_UNIT_ALIASES += \
6265 $(systemunitdir)/shutdown.target shutdown.target \
6266 $(systemunitdir)/sockets.target sockets.target \
6267 $(systemunitdir)/timers.target timers.target \
6268 $(systemunitdir)/paths.target paths.target \
6269 $(systemunitdir)/bluetooth.target bluetooth.target \
6270 $(systemunitdir)/printer.target printer.target \
6271 $(systemunitdir)/sound.target sound.target \
6272 $(systemunitdir)/smartcard.target smartcard.target
6275 USER_UNIT_ALIASES += \
6276 $(systemunitdir)/busnames.target busnames.target
6279 GENERAL_ALIASES += \
6280 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6281 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6282 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6283 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6287 $(systemunitdir)/runlevel1.target.wants \
6288 $(systemunitdir)/runlevel2.target.wants \
6289 $(systemunitdir)/runlevel3.target.wants \
6290 $(systemunitdir)/runlevel4.target.wants \
6291 $(systemunitdir)/runlevel5.target.wants
6295 $(prefix)/lib/modules-load.d \
6296 $(sysconfdir)/modules-load.d \
6297 $(prefix)/lib/systemd/network \
6298 $(sysconfdir)/systemd/network \
6299 $(prefix)/lib/sysctl.d \
6300 $(sysconfdir)/sysctl.d \
6301 $(prefix)/lib/kernel/install.d \
6302 $(sysconfdir)/kernel/install.d \
6303 $(systemshutdowndir) \
6305 $(systemgeneratordir) \
6306 $(usergeneratordir) \
6309 $(pkgsysconfdir)/system \
6310 $(pkgsysconfdir)/system/multi-user.target.wants \
6311 $(pkgsysconfdir)/system/getty.target.wants \
6312 $(pkgsysconfdir)/user \
6313 $(dbussessionservicedir) \
6314 $(sysconfdir)/xdg/systemd
6316 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6318 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6320 install-data-hook: $(INSTALL_DATA_HOOKS)
6322 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6324 clean-local: $(CLEAN_LOCAL_HOOKS)
6325 rm -rf $(abs_srcdir)/install-tree
6326 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6327 $(abs_srcdir)/hwdb/iab.txt
6329 DISTCHECK_CONFIGURE_FLAGS = \
6330 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6331 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6332 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6333 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6334 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6335 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6336 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6337 --with-rootprefix=$$dc_install_base \
6338 --disable-split-usr \
6340 --enable-compat-libs
6343 DISTCHECK_CONFIGURE_FLAGS += \
6344 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6345 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6347 DISTCHECK_CONFIGURE_FLAGS += \
6348 --with-sysvinit-path= \
6349 --with-sysvrcnd-path=
6353 DISTCHECK_CONFIGURE_FLAGS += \
6358 DISTCHECK_CONFIGURE_FLAGS += \
6363 # Require python when making dist
6365 .PHONY: dist-check-python
6368 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6372 dist-check-compat-libs:
6373 if !ENABLE_COMPAT_LIBS
6374 @echo "*** compat-libs must be enabled in order to make dist"
6378 dist: dist-check-python dist-check-compat-libs
6380 # check "broken" platforms limited toolchains for link breakage before we release
6383 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6387 ( cd $(top_srcdir)/hwdb && \
6388 wget -N http://www.linux-usb.org/usb.ids \
6389 http://pci-ids.ucw.cz/v2.2/pci.ids \
6390 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6391 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6394 .PHONY: kdbus-update
6396 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6397 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6401 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6403 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6405 upload: all check dist
6406 scp systemd-$(VERSION).tar.xz $(www_target)
6409 doc-sync: all destdir-sphinx
6410 gtkdoc-rebase --html-dir=docs/libudev/html --online
6411 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6412 gtkdoc-rebase --html-dir=docs/gudev/html --online
6413 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6414 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6415 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6419 scp man/*.html gardel:public/systemd-man/
6421 .PHONY: lennart-fedora
6423 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6425 .PHONY: install-tree
6427 rm -rf $(abs_srcdir)/install-tree
6428 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6429 tree $(abs_srcdir)/install-tree
6431 # Let's run all tests of the test suite, but under valgrind. Let's
6432 # exclude the one perl script we have in there
6433 .PHONY: valgrind-tests
6434 valgrind-tests: $(TESTS)
6435 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6436 if file $$f | grep -q shell; then \
6437 echo -e "$${x}Skipping non-binary $$f"; else \
6438 echo -e "$${x}Running $$f"; \
6439 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6444 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6446 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6447 $(AM_V_GEN)cat $^ > $@
6449 .PHONY: check-api-docs
6450 check-api-docs: exported man
6451 $(AM_V_GEN)for symbol in `cat exported` ; do \
6452 if test -f $(builddir)/man/$$symbol.html ; then \
6453 echo " Symbol $$symbol() is documented." ; \
6455 echo "‣ Symbol $$symbol() lacks documentation." ; \
6459 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6460 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6462 undefined defined: $(ALL_OBJECTS)
6463 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6464 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6465 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6471 .PHONY: check-api-unused
6472 check-api-unused: defined undefined exported
6473 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6475 .PHONY: check-includes
6476 check-includes: $(top_srcdir)/tools/check-includes.pl
6477 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6478 | xargs $(top_srcdir)/tools/check-includes.pl
6481 $(top_srcdir)/tools/check-includes.pl
6483 # Stupid test that everything purported to be exported really is
6484 define generate-sym-test
6485 $(AM_V_at)$(MKDIR_P) $(dir $@)
6486 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6487 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6488 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6489 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6490 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6491 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6492 $(AM_V_at)printf 'return 0; }\n' >> $@
6495 test-libsystemd-sym.c: \
6496 $(top_builddir)/src/libsystemd/libsystemd.sym \
6497 src/systemd/sd-journal.h \
6498 src/systemd/sd-daemon.h \
6499 src/systemd/sd-login.h \
6500 src/systemd/sd-bus.h \
6501 src/systemd/sd-utf8.h \
6502 src/systemd/sd-resolve.h \
6503 src/systemd/sd-path.h
6504 $(generate-sym-test)
6506 test-libudev-sym.c: \
6507 src/libudev/libudev.sym \
6509 $(generate-sym-test)
6511 test_libsystemd_sym_SOURCES = \
6512 test-libsystemd-sym.c
6513 test_libsystemd_sym_LDADD = \
6516 test_libudev_sym_SOURCES = \
6518 test_libudev_sym_CFLAGS = \
6520 -Wno-deprecated-declarations
6521 test_libudev_sym_LDADD = \
6525 $(test_libsystemd_sym_SOURCES) \
6526 $(test_libudev_sym_SOURCES)
6529 test-libsystemd-sym \
6534 cppcheck --enable=all -q $(top_srcdir)
6536 # Used to extract compile flags for YCM.
6541 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6544 tools/gdb-sd_dump_hashmaps.py