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/path-util.c \
773 src/shared/path-util.h \
774 src/shared/time-util.c \
775 src/shared/time-util.h \
776 src/shared/locale-util.c \
777 src/shared/locale-util.h \
778 src/shared/mempool.c \
779 src/shared/mempool.h \
780 src/shared/hashmap.c \
781 src/shared/hashmap.h \
782 src/shared/siphash24.c \
783 src/shared/siphash24.h \
789 src/shared/sleep-config.c \
790 src/shared/sleep-config.h \
793 src/shared/env-util.c \
794 src/shared/env-util.h \
795 src/shared/strbuf.c \
796 src/shared/strbuf.h \
797 src/shared/strxcpyx.c \
798 src/shared/strxcpyx.h \
799 src/shared/conf-parser.c \
800 src/shared/conf-parser.h \
803 src/shared/ratelimit.h \
804 src/shared/ratelimit.c \
805 src/shared/exit-status.c \
806 src/shared/exit-status.h \
809 src/shared/gunicode.c \
810 src/shared/gunicode.h \
813 src/shared/socket-util.c \
814 src/shared/socket-util.h \
815 src/shared/in-addr-util.c \
816 src/shared/in-addr-util.h \
817 src/shared/ether-addr-util.h \
818 src/shared/conf-files.c \
819 src/shared/conf-files.h \
820 src/shared/cgroup-util.c \
821 src/shared/cgroup-util.h \
822 src/shared/cgroup-show.c \
823 src/shared/cgroup-show.h \
824 src/shared/unit-name.c \
825 src/shared/unit-name.h \
826 src/shared/utmp-wtmp.h \
827 src/shared/watchdog.c \
828 src/shared/watchdog.h \
829 src/shared/spawn-ask-password-agent.c \
830 src/shared/spawn-ask-password-agent.h \
831 src/shared/replace-var.c \
832 src/shared/replace-var.h \
833 src/shared/spawn-polkit-agent.c \
834 src/shared/spawn-polkit-agent.h \
835 src/shared/clock-util.c \
836 src/shared/clock-util.h \
837 src/shared/time-dst.c \
838 src/shared/time-dst.h \
839 src/shared/calendarspec.c \
840 src/shared/calendarspec.h \
841 src/shared/fileio.c \
842 src/shared/fileio.h \
843 src/shared/output-mode.h \
844 src/shared/MurmurHash2.c \
845 src/shared/MurmurHash2.h \
846 src/shared/acpi-fpdt.h \
847 src/shared/acpi-fpdt.c \
848 src/shared/boot-timestamps.h \
849 src/shared/boot-timestamps.c \
852 src/shared/smack-util.c \
853 src/shared/smack-util.h \
854 src/shared/apparmor-util.c \
855 src/shared/apparmor-util.h \
856 src/shared/ima-util.c \
857 src/shared/ima-util.h \
858 src/shared/ptyfwd.c \
859 src/shared/ptyfwd.h \
860 src/shared/errno-list.c \
861 src/shared/errno-list.h \
862 src/shared/af-list.c \
863 src/shared/af-list.h \
864 src/shared/arphrd-list.c \
865 src/shared/arphrd-list.h \
866 src/shared/cap-list.c \
867 src/shared/cap-list.h \
874 src/shared/bus-label.c \
875 src/shared/bus-label.h \
877 src/shared/clean-ipc.h \
878 src/shared/clean-ipc.c \
879 src/shared/login-shared.c \
880 src/shared/login-shared.h \
883 src/shared/barrier.c \
884 src/shared/barrier.h \
889 src/shared/base-filesystem.c \
890 src/shared/base-filesystem.h \
891 src/shared/memfd-util.c \
892 src/shared/memfd-util.h \
893 src/shared/uid-range.c \
894 src/shared/uid-range.h \
895 src/shared/nss-util.h \
898 src/shared/sigbus.c \
899 src/shared/sigbus.h \
903 libsystemd_shared_la_SOURCES += \
904 src/shared/utmp-wtmp.c
907 nodist_libsystemd_shared_la_SOURCES = \
908 src/shared/errno-from-name.h \
909 src/shared/errno-to-name.h \
910 src/shared/af-from-name.h \
911 src/shared/af-to-name.h \
912 src/shared/arphrd-from-name.h \
913 src/shared/arphrd-to-name.h \
914 src/shared/cap-from-name.h \
915 src/shared/cap-to-name.h
917 libsystemd_shared_la_CFLAGS = \
923 libsystemd_shared_la_LIBADD = \
927 # ------------------------------------------------------------------------------
928 noinst_LTLIBRARIES += \
931 libsystemd_units_la_SOURCES = \
932 src/shared/install.c \
933 src/shared/install.h \
934 src/shared/install-printf.c \
935 src/shared/install-printf.h \
936 src/shared/path-lookup.c \
937 src/shared/path-lookup.h \
938 src/shared/specifier.c \
939 src/shared/specifier.h
941 # ------------------------------------------------------------------------------
942 noinst_LTLIBRARIES += \
945 libsystemd_label_la_SOURCES = \
946 src/shared/socket-label.c \
949 src/shared/selinux-util.c \
950 src/shared/selinux-util.h \
951 src/shared/mkdir-label.c \
952 src/shared/ask-password-api.c \
953 src/shared/ask-password-api.h \
954 src/shared/switch-root.h \
955 src/shared/switch-root.c \
956 src/shared/fileio-label.c \
957 src/shared/fileio-label.h \
958 src/shared/dev-setup.c \
959 src/shared/dev-setup.h \
960 src/shared/dropin.c \
961 src/shared/dropin.h \
962 src/shared/condition.c \
963 src/shared/condition.h \
964 src/shared/generator.h \
965 src/shared/generator.c \
966 src/shared/btrfs-util.c \
967 src/shared/btrfs-util.h \
968 src/shared/btrfs-ctree.h \
969 src/shared/machine-image.c \
970 src/shared/machine-image.h \
974 libsystemd_label_la_CFLAGS = \
978 libsystemd_label_la_LIBADD = \
981 # -----------------------------------------------------------------------------
984 dist_systemunit_DATA += \
985 units/ldconfig.service
987 SYSINIT_TARGET_WANTS += \
991 # ------------------------------------------------------------------------------
994 noinst_LTLIBRARIES += \
995 libsystemd-seccomp.la
997 libsystemd_seccomp_la_SOURCES = \
998 src/shared/seccomp-util.h \
999 src/shared/seccomp-util.c
1001 libsystemd_seccomp_la_CFLAGS = \
1005 libsystemd_seccomp_la_LIBADD = \
1009 # ------------------------------------------------------------------------------
1010 noinst_LTLIBRARIES += \
1013 libsystemd_logs_la_SOURCES = \
1014 src/shared/logs-show.c \
1015 src/shared/logs-show.h
1017 # ------------------------------------------------------------------------------
1019 noinst_LTLIBRARIES += \
1022 libsystemd_acl_la_SOURCES = \
1023 src/shared/acl-util.c \
1024 src/shared/acl-util.h
1026 libsystemd_acl_la_CFLAGS = \
1030 libsystemd_acl_la_LIBADD = \
1034 # ------------------------------------------------------------------------------
1035 noinst_LTLIBRARIES += \
1038 libsystemd_core_la_SOURCES = \
1041 src/core/unit-printf.c \
1042 src/core/unit-printf.h \
1045 src/core/manager.c \
1046 src/core/manager.h \
1047 src/core/transaction.c \
1048 src/core/transaction.h \
1049 src/core/load-fragment.c \
1050 src/core/load-fragment.h \
1051 src/core/service.c \
1052 src/core/service.h \
1055 src/core/busname.c \
1056 src/core/busname.h \
1057 src/core/bus-endpoint.c \
1058 src/core/bus-endpoint.h \
1059 src/core/bus-policy.c \
1060 src/core/bus-policy.h \
1063 src/core/snapshot.c \
1064 src/core/snapshot.h \
1069 src/core/automount.c \
1070 src/core/automount.h \
1081 src/core/load-dropin.c \
1082 src/core/load-dropin.h \
1083 src/core/execute.c \
1084 src/core/execute.h \
1089 src/core/dbus-manager.c \
1090 src/core/dbus-manager.h \
1091 src/core/dbus-unit.c \
1092 src/core/dbus-unit.h \
1093 src/core/dbus-job.c \
1094 src/core/dbus-job.h \
1095 src/core/dbus-service.c \
1096 src/core/dbus-service.h \
1097 src/core/dbus-socket.c \
1098 src/core/dbus-socket.h \
1099 src/core/dbus-busname.c \
1100 src/core/dbus-busname.h \
1101 src/core/dbus-target.c \
1102 src/core/dbus-target.h \
1103 src/core/dbus-snapshot.c \
1104 src/core/dbus-snapshot.h \
1105 src/core/dbus-device.c \
1106 src/core/dbus-device.h \
1107 src/core/dbus-mount.c \
1108 src/core/dbus-mount.h \
1109 src/core/dbus-automount.c \
1110 src/core/dbus-automount.h \
1111 src/core/dbus-swap.c \
1112 src/core/dbus-swap.h \
1113 src/core/dbus-timer.c \
1114 src/core/dbus-timer.h \
1115 src/core/dbus-path.c \
1116 src/core/dbus-path.h \
1117 src/core/dbus-slice.c \
1118 src/core/dbus-slice.h \
1119 src/core/dbus-scope.c \
1120 src/core/dbus-scope.h \
1121 src/core/dbus-execute.c \
1122 src/core/dbus-execute.h \
1123 src/core/dbus-kill.c \
1124 src/core/dbus-kill.h \
1125 src/core/dbus-cgroup.c \
1126 src/core/dbus-cgroup.h \
1129 src/core/selinux-access.c \
1130 src/core/selinux-access.h \
1131 src/core/selinux-setup.c \
1132 src/core/selinux-setup.h \
1133 src/core/smack-setup.c \
1134 src/core/smack-setup.h \
1135 src/core/ima-setup.c \
1136 src/core/ima-setup.h \
1137 src/core/locale-setup.h \
1138 src/core/locale-setup.c \
1139 src/core/hostname-setup.c \
1140 src/core/hostname-setup.h \
1141 src/core/machine-id-setup.c \
1142 src/core/machine-id-setup.h \
1143 src/core/mount-setup.c \
1144 src/core/mount-setup.h \
1145 src/core/kmod-setup.c \
1146 src/core/kmod-setup.h \
1147 src/core/loopback-setup.h \
1148 src/core/loopback-setup.c \
1149 src/core/namespace.c \
1150 src/core/namespace.h \
1151 src/core/killall.h \
1152 src/core/killall.c \
1153 src/core/audit-fd.c \
1154 src/core/audit-fd.h \
1155 src/core/show-status.c \
1156 src/core/show-status.h \
1157 src/core/failure-action.c \
1158 src/core/failure-action.h
1160 nodist_libsystemd_core_la_SOURCES = \
1161 src/core/load-fragment-gperf.c \
1162 src/core/load-fragment-gperf-nulstr.c
1164 libsystemd_core_la_CFLAGS = \
1169 $(APPARMOR_CFLAGS) \
1174 libsystemd_core_la_LIBADD = \
1175 libsystemd-units.la \
1176 libsystemd-label.la \
1177 libudev-internal.la \
1178 libsystemd-shared.la \
1179 libsystemd-internal.la \
1188 libsystemd_core_la_LIBADD += \
1189 libsystemd-seccomp.la
1192 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1193 $(AM_V_at)$(MKDIR_P) $(dir $@)
1194 $(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 ";" }' < $< > $@
1197 src/core/load-fragment-gperf.gperf.m4
1200 src/core/load-fragment-gperf.gperf \
1201 src/core/load-fragment-gperf.c \
1202 src/core/load-fragment-gperf-nulstr.c \
1203 src/shared/errno-list.txt \
1204 src/shared/errno-from-name.gperf \
1205 src/shared/af-list.txt \
1206 src/shared/af-from-name.gperf \
1207 src/shared/arphrd-list.txt \
1208 src/shared/arphrd-from-name.gperf \
1209 src/shared/cap-list.txt \
1210 src/shared/cap-from-name.gperf \
1211 src/resolve/dns_type-list.txt \
1212 src/resolve/dns_type-from-name.gperf
1215 src/shared/errno-from-name.h \
1216 src/shared/errno-to-name.h \
1217 src/shared/af-from-name.h \
1218 src/shared/af-to-name.h \
1219 src/shared/arphrd-from-name.h \
1220 src/shared/arphrd-to-name.h \
1221 src/shared/cap-from-name.h \
1222 src/shared/cap-to-name.h \
1223 src/resolve/dns_type-from-name.h \
1224 src/resolve/dns_type-to-name.h
1226 %-from-name.gperf: %-list.txt
1227 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1229 %-from-name.h: %-from-name.gperf
1230 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1233 src/shared/errno-list.txt:
1234 $(AM_V_at)$(MKDIR_P) $(dir $@)
1235 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1237 src/shared/errno-to-name.h: src/shared/errno-list.txt
1238 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1241 src/shared/af-list.txt:
1242 $(AM_V_at)$(MKDIR_P) $(dir $@)
1243 $(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; }' >$@
1245 src/shared/af-to-name.h: src/shared/af-list.txt
1246 $(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 "};"}' <$< >$@
1249 src/shared/arphrd-list.txt:
1250 $(AM_V_at)$(MKDIR_P) $(dir $@)
1251 $(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_//' >$@
1253 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1254 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1256 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1257 $(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 }' <$< >$@
1260 src/shared/cap-list.txt:
1261 $(AM_V_at)$(MKDIR_P) $(dir $@)
1262 $(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 >$@
1264 src/shared/cap-to-name.h: src/shared/cap-list.txt
1265 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1267 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1268 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1270 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1271 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1274 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1275 $(AM_V_at)$(MKDIR_P) $(dir $@)
1276 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1278 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1279 $(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" }' <$< >$@
1281 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1282 $(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 }' <$< >$@
1284 # ------------------------------------------------------------------------------
1293 libsystemd-core.la \
1296 dist_pkgsysconf_DATA += \
1297 src/core/system.conf \
1300 dist_dbuspolicy_DATA += \
1301 src/core/org.freedesktop.systemd1.conf
1303 dist_dbussystemservice_DATA += \
1304 src/core/org.freedesktop.systemd1.service
1306 polkitpolicy_in_in_files += \
1307 src/core/org.freedesktop.systemd1.policy.in.in
1309 pkgconfiglib_DATA += \
1312 nodist_rpmmacros_DATA = \
1313 src/core/macros.systemd
1316 src/core/systemd.pc.in \
1317 src/core/macros.systemd.in
1320 src/core/macros.systemd \
1321 src/core/org.freedesktop.systemd1.policy.in
1323 # ------------------------------------------------------------------------------
1367 test-strip-tab-ansi \
1402 test/daughter.service \
1407 test/grandchild.service \
1409 test/hello-after-sleep.target \
1410 test/hello.service \
1412 test/parent-deep.slice \
1415 test/sched_idle_bad.service \
1416 test/sched_idle_ok.service \
1417 test/sched_rr_bad.service \
1418 test/sched_rr_change.service \
1419 test/sched_rr_ok.service \
1420 test/shutdown.target \
1421 test/sleep.service \
1422 test/sockets.target \
1424 test/sysinit.target \
1425 test/testsuite.target \
1426 test/timers.target \
1427 test/unstoppable.service \
1428 test/path-changed.service \
1429 test/path-directorynotempty.service \
1430 test/path-existsglob.service \
1431 test/path-exists.service \
1432 test/path-makedirectory.service \
1433 test/path-modified.service \
1434 test/path-mycustomunit.service \
1435 test/path-service.service \
1436 test/path-changed.path \
1437 test/path-directorynotempty.path \
1438 test/path-existsglob.path \
1439 test/path-exists.path \
1440 test/path-makedirectory.path \
1441 test/path-modified.path \
1442 test/path-unit.path \
1443 test/exec-environment-empty.service \
1444 test/exec-environment-multiple.service \
1445 test/exec-environment.service \
1446 test/exec-group.service \
1447 test/exec-ignoresigpipe-no.service \
1448 test/exec-ignoresigpipe-yes.service \
1449 test/exec-personality-x86-64.service \
1450 test/exec-personality-x86.service \
1451 test/exec-privatedevices-no.service \
1452 test/exec-privatedevices-yes.service \
1453 test/exec-privatetmp-no.service \
1454 test/exec-privatetmp-yes.service \
1455 test/exec-systemcallerrornumber.service \
1456 test/exec-systemcallfilter-failing2.service \
1457 test/exec-systemcallfilter-failing.service \
1458 test/exec-systemcallfilter-not-failing2.service \
1459 test/exec-systemcallfilter-not-failing.service \
1460 test/exec-user.service \
1461 test/exec-workingdirectory.service \
1462 test/exec-umask-0177.service \
1463 test/exec-umask-default.service \
1464 test/bus-policy/hello.conf \
1465 test/bus-policy/methods.conf \
1466 test/bus-policy/ownerships.conf \
1467 test/bus-policy/signals.conf \
1468 test/bus-policy/check-own-rules.conf \
1469 test/bus-policy/many-rules.conf \
1470 test/bus-policy/test.conf
1474 src/test/test-helper.h
1476 test_device_nodes_SOURCES = \
1477 src/test/test-device-nodes.c
1479 test_device_nodes_LDADD = \
1480 libsystemd-shared.la
1482 test_engine_SOURCES = \
1483 src/test/test-engine.c
1485 test_engine_CFLAGS = \
1489 test_engine_LDADD = \
1490 libsystemd-core.la \
1493 test_job_type_SOURCES = \
1494 src/test/test-job-type.c
1496 test_job_type_CFLAGS = \
1500 test_job_type_LDADD = \
1501 libsystemd-core.la \
1514 test_loopback_SOURCES = \
1515 src/test/test-loopback.c
1517 test_loopback_LDADD = \
1520 test_hostname_SOURCES = \
1521 src/test/test-hostname.c
1523 test_hostname_LDADD = \
1530 test_boot_timestamp_SOURCES = \
1531 src/test/test-boot-timestamps.c
1533 test_boot_timestamp_LDADD = \
1534 libsystemd-shared.la
1537 test_unit_name_SOURCES = \
1538 src/test/test-unit-name.c
1540 test_unit_name_CFLAGS = \
1544 test_unit_name_LDADD = \
1545 libsystemd-core.la \
1548 test_unit_file_SOURCES = \
1549 src/test/test-unit-file.c
1551 test_unit_file_CFLAGS = \
1555 test_unit_file_LDADD = \
1556 libsystemd-core.la \
1559 test_utf8_SOURCES = \
1560 src/test/test-utf8.c
1563 libsystemd-shared.la
1565 test_capability_SOURCES = \
1566 src/test/test-capability.c
1568 test_capability_LDADD = \
1569 libsystemd-shared.la
1571 test_async_SOURCES = \
1572 src/test/test-async.c
1574 test_async_LDADD = \
1575 libsystemd-shared.la
1577 test_locale_util_SOURCES = \
1578 src/test/test-locale-util.c
1580 test_locale_util_LDADD = \
1581 libsystemd-shared.la
1583 test_copy_SOURCES = \
1584 src/test/test-copy.c
1587 libsystemd-label.la \
1588 libsystemd-shared.la
1590 test_sigbus_SOURCES = \
1591 src/test/test-sigbus.c
1593 test_sigbus_LDADD = \
1594 libsystemd-shared.la
1596 test_condition_SOURCES = \
1597 src/test/test-condition.c
1599 test_condition_LDADD = \
1600 libsystemd-label.la \
1601 libsystemd-internal.la \
1602 libsystemd-shared.la
1604 test_fdset_SOURCES = \
1605 src/test/test-fdset.c
1607 test_fdset_LDADD = \
1608 libsystemd-shared.la \
1609 libsystemd-internal.la
1611 test_ratelimit_SOURCES = \
1612 src/test/test-ratelimit.c
1614 test_ratelimit_LDADD = \
1615 libsystemd-shared.la
1617 test_util_SOURCES = \
1618 src/test/test-util.c
1621 libsystemd-shared.la
1623 test_uid_range_SOURCES = \
1624 src/test/test-uid-range.c
1626 test_uid_range_LDADD = \
1627 libsystemd-shared.la
1629 test_cap_list_SOURCES = \
1630 src/test/test-cap-list.c
1632 test_cap_list_LDADD = \
1633 libsystemd-shared.la
1635 test_socket_util_SOURCES = \
1636 src/test/test-socket-util.c
1638 test_socket_util_LDADD = \
1639 libsystemd-shared.la
1641 test_ring_SOURCES = \
1642 src/test/test-ring.c
1645 libsystemd-shared.la
1647 test_barrier_SOURCES = \
1648 src/test/test-barrier.c
1650 test_barrier_LDADD = \
1651 libsystemd-shared.la
1653 test_pty_SOURCES = \
1659 test_tmpfiles_SOURCES = \
1660 src/test/test-tmpfiles.c
1662 test_tmpfiles_LDADD = \
1663 libsystemd-shared.la
1665 test_namespace_SOURCES = \
1666 src/test/test-namespace.c
1668 test_verbs_SOURCES = \
1669 src/test/test-verbs.c
1671 test_verbs_LDADD = \
1672 libsystemd-shared.la
1674 test_namespace_LDADD = \
1678 src/test/test-hashmap-ordered.c
1681 src/test/test-hashmap-ordered.c
1683 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1684 $(AM_V_at)$(MKDIR_P) $(dir $@)
1685 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1686 { if (!match($$0, "^#include")) \
1687 gsub(/hashmap/, "ordered_hashmap"); \
1688 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1689 gsub(/Hashmap/, "OrderedHashmap"); \
1692 nodist_test_hashmap_SOURCES = \
1693 src/test/test-hashmap-ordered.c
1695 test_hashmap_SOURCES = \
1696 src/test/test-hashmap.c \
1697 src/test/test-hashmap-plain.c
1699 test_hashmap_LDADD = \
1700 libsystemd-shared.la
1702 test_set_SOURCES = \
1706 libsystemd-shared.la
1708 test_xml_SOURCES = \
1712 libsystemd-shared.la
1714 test_json_SOURCES = \
1715 src/test/test-json.c
1718 libsystemd-shared.la
1720 test_list_SOURCES = \
1721 src/test/test-list.c
1724 libsystemd-shared.la
1726 test_unaligned_LDADD = \
1727 libsystemd-shared.la
1729 test_unaligned_SOURCES = \
1730 src/test/test-unaligned.c
1732 test_tables_SOURCES = \
1733 src/test/test-tables.c \
1734 src/shared/test-tables.h \
1735 src/bus-proxyd/bus-xml-policy.c \
1736 src/bus-proxyd/bus-xml-policy.h \
1737 src/journal/journald-server.c \
1738 src/journal/journald-server.h
1740 test_tables_CPPFLAGS = \
1742 -I$(top_srcdir)/src/bus-proxyd
1744 test_tables_CFLAGS = \
1748 test_tables_LDADD = \
1749 libsystemd-logs.la \
1750 libsystemd-journal-internal.la \
1751 libsystemd-journal-core.la \
1752 libsystemd-core.la \
1756 test_prioq_SOURCES = \
1757 src/test/test-prioq.c
1759 test_prioq_LDADD = \
1760 libsystemd-shared.la
1762 test_fileio_SOURCES = \
1763 src/test/test-fileio.c
1765 test_fileio_LDADD = \
1766 libsystemd-shared.la
1768 test_time_SOURCES = \
1769 src/test/test-time.c
1772 libsystemd-shared.la
1774 test_architecture_SOURCES = \
1775 src/test/test-architecture.c
1777 test_architecture_LDADD = \
1778 libsystemd-shared.la
1780 test_log_SOURCES = \
1784 libsystemd-shared.la
1786 test_ipcrm_SOURCES = \
1787 src/test/test-ipcrm.c
1789 test_ipcrm_LDADD = \
1790 libsystemd-shared.la \
1793 test_btrfs_SOURCES = \
1794 src/test/test-btrfs.c
1796 test_btrfs_LDADD = \
1797 libsystemd-label.la \
1798 libsystemd-shared.la
1800 test_rtnl_manual_SOURCES = \
1801 src/test/test-rtnl-manual.c
1803 test_rtnl_manual_CFLAGS = \
1807 test_rtnl_manual_LDADD = \
1808 libsystemd-internal.la \
1809 libsystemd-shared.la \
1812 test_ellipsize_SOURCES = \
1813 src/test/test-ellipsize.c
1815 test_ellipsize_LDADD = \
1816 libsystemd-shared.la
1818 test_date_SOURCES = \
1819 src/test/test-date.c
1822 libsystemd-shared.la
1824 test_sleep_SOURCES = \
1825 src/test/test-sleep.c
1827 test_sleep_LDADD = \
1830 test_replace_var_SOURCES = \
1831 src/test/test-replace-var.c
1833 test_replace_var_LDADD = \
1834 libsystemd-shared.la
1836 test_calendarspec_SOURCES = \
1837 src/test/test-calendarspec.c
1839 test_calendarspec_LDADD = \
1840 libsystemd-shared.la
1842 test_strip_tab_ansi_SOURCES = \
1843 src/test/test-strip-tab-ansi.c
1845 test_strip_tab_ansi_LDADD = \
1846 libsystemd-shared.la
1848 test_daemon_SOURCES = \
1849 src/test/test-daemon.c
1851 test_daemon_LDADD = \
1852 libsystemd-internal.la \
1853 libsystemd-shared.la
1855 test_cgroup_SOURCES = \
1856 src/test/test-cgroup.c
1858 test_cgroup_LDADD = \
1859 libsystemd-label.la \
1860 libsystemd-shared.la \
1861 libsystemd-internal.la
1863 test_cgroup_mask_SOURCES = \
1864 src/test/test-cgroup-mask.c
1866 test_cgroup_mask_CPPFLAGS = \
1869 test_cgroup_mask_CFLAGS = \
1873 test_cgroup_mask_LDADD = \
1874 libsystemd-core.la \
1877 test_cgroup_util_SOURCES = \
1878 src/test/test-cgroup-util.c
1880 test_cgroup_util_LDADD = \
1881 libsystemd-label.la \
1882 libsystemd-internal.la \
1883 libsystemd-shared.la
1885 test_env_replace_SOURCES = \
1886 src/test/test-env-replace.c
1888 test_env_replace_LDADD = \
1889 libsystemd-shared.la
1891 test_strbuf_SOURCES = \
1892 src/test/test-strbuf.c
1894 test_strbuf_LDADD = \
1895 libsystemd-shared.la
1897 test_strv_SOURCES = \
1898 src/test/test-strv.c
1901 libsystemd-units.la \
1902 libsystemd-internal.la \
1903 libsystemd-shared.la
1905 test_path_util_SOURCES = \
1906 src/test/test-path-util.c
1908 test_path_util_LDADD = \
1909 libsystemd-shared.la
1911 test_path_SOURCES = \
1912 src/test/test-path.c
1914 test_path_CFLAGS = \
1920 test_execute_SOURCES = \
1921 src/test/test-execute.c
1923 test_execute_CFLAGS = \
1926 test_execute_LDADD = \
1929 test_strxcpyx_SOURCES = \
1930 src/test/test-strxcpyx.c
1932 test_strxcpyx_LDADD = \
1933 libsystemd-shared.la
1935 test_install_SOURCES = \
1936 src/test/test-install.c
1938 test_install_LDADD = \
1939 libsystemd-units.la \
1940 libsystemd-label.la \
1941 libsystemd-shared.la \
1942 libsystemd-internal.la
1944 test_watchdog_SOURCES = \
1945 src/test/test-watchdog.c
1947 test_watchdog_LDADD = \
1948 libsystemd-shared.la
1950 test_sched_prio_SOURCES = \
1951 src/test/test-sched-prio.c
1953 test_sched_prio_CPPFLAGS = \
1956 test_sched_prio_CFLAGS = \
1960 test_sched_prio_LDADD = \
1961 libsystemd-core.la \
1964 test_conf_files_SOURCES = \
1965 src/test/test-conf-files.c
1967 test_conf_files_LDADD = \
1968 libsystemd-shared.la
1970 test_bus_policy_SOURCES = \
1971 src/bus-proxyd/test-bus-xml-policy.c \
1972 src/bus-proxyd/bus-xml-policy.c \
1973 src/bus-proxyd/bus-xml-policy.h
1975 test_bus_policy_LDADD = \
1976 libsystemd-internal.la \
1977 libsystemd-shared.la
1979 # ------------------------------------------------------------------------------
1980 ## .PHONY so it always rebuilds it
1981 .PHONY: coverage lcov-run lcov-report coverage-sync
1983 # run lcov from scratch, always
1988 coverage_dir = coverage
1989 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1992 # reset run coverage tests
1994 @rm -rf $(coverage_dir)
1995 lcov $(coverage_opts) --zerocounters
1998 # generate report based on current coverage data
2000 $(MKDIR_P) $(coverage_dir)
2001 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2002 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2003 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2004 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2005 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2007 # lcov doesn't work properly with vpath builds, make sure that bad
2008 # output is not uploaded by mistake.
2009 coverage-sync: coverage
2010 test "$(builddir)" = "$(srcdir)"
2011 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2014 lcov-run lcov-report:
2015 echo "Need to reconfigure with --enable-coverage"
2018 # ------------------------------------------------------------------------------
2019 systemd_analyze_SOURCES = \
2020 src/analyze/analyze.c \
2021 src/analyze/analyze-verify.c \
2022 src/analyze/analyze-verify.h
2024 systemd_verify_CFLAGS = \
2028 systemd_analyze_LDADD = \
2029 libsystemd-core.la \
2030 libsystemd-internal.la \
2031 libsystemd-shared.la \
2034 # ------------------------------------------------------------------------------
2035 systemd_initctl_SOURCES = \
2036 src/initctl/initctl.c
2038 systemd_initctl_LDADD = \
2039 libsystemd-internal.la \
2040 libsystemd-shared.la
2042 # ------------------------------------------------------------------------------
2043 systemd_update_utmp_SOURCES = \
2044 src/update-utmp/update-utmp.c
2046 systemd_update_utmp_CFLAGS = \
2050 systemd_update_utmp_LDADD = \
2051 libsystemd-internal.la \
2052 libsystemd-shared.la \
2055 # ------------------------------------------------------------------------------
2056 systemd_update_done_SOURCES = \
2057 src/update-done/update-done.c
2059 systemd_update_done_LDADD = \
2060 libsystemd-internal.la \
2061 libsystemd-label.la \
2062 libsystemd-shared.la
2064 # ------------------------------------------------------------------------------
2065 systemd_shutdownd_SOURCES = \
2066 src/shutdownd/shutdownd.c
2068 systemd_shutdownd_LDADD = \
2069 libsystemd-label.la \
2070 libsystemd-internal.la \
2071 libsystemd-shared.la
2074 src/systemd/sd-shutdown.h
2076 # ------------------------------------------------------------------------------
2077 systemd_shutdown_SOURCES = \
2080 src/core/shutdown.c \
2081 src/core/mount-setup.c \
2082 src/core/mount-setup.h \
2083 src/core/killall.h \
2086 systemd_shutdown_LDADD = \
2087 libsystemd-label.la \
2088 libudev-internal.la \
2089 libsystemd-shared.la
2091 # ------------------------------------------------------------------------------
2093 systemd_modules_load_SOURCES = \
2094 src/modules-load/modules-load.c
2096 systemd_modules_load_CFLAGS = \
2100 systemd_modules_load_LDADD = \
2101 libsystemd-shared.la \
2104 rootlibexec_PROGRAMS += \
2105 systemd-modules-load
2107 nodist_systemunit_DATA += \
2108 units/systemd-modules-load.service
2110 SYSINIT_TARGET_WANTS += \
2111 systemd-modules-load.service
2114 nodist_systemunit_DATA += \
2115 units/kmod-static-nodes.service
2117 SYSINIT_TARGET_WANTS += \
2118 kmod-static-nodes.service
2123 units/systemd-modules-load.service.in \
2124 units/kmod-static-nodes.service.in
2126 # ------------------------------------------------------------------------------
2128 systemd_tmpfiles_SOURCES = \
2129 src/tmpfiles/tmpfiles.c
2131 systemd_tmpfiles_LDADD = \
2132 libsystemd-units.la \
2133 libsystemd-label.la \
2134 libsystemd-internal.la \
2135 libsystemd-shared.la
2137 rootbin_PROGRAMS += \
2140 dist_systemunit_DATA += \
2141 units/systemd-tmpfiles-clean.timer
2143 nodist_systemunit_DATA += \
2144 units/systemd-tmpfiles-setup-dev.service \
2145 units/systemd-tmpfiles-setup.service \
2146 units/systemd-tmpfiles-clean.service
2148 nodist_tmpfiles_DATA = \
2151 dist_tmpfiles_DATA = \
2152 tmpfiles.d/systemd.conf \
2153 tmpfiles.d/systemd-nologin.conf \
2154 tmpfiles.d/tmp.conf \
2155 tmpfiles.d/x11.conf \
2159 dist_tmpfiles_DATA += \
2160 tmpfiles.d/legacy.conf
2163 SYSINIT_TARGET_WANTS += \
2164 systemd-tmpfiles-setup-dev.service \
2165 systemd-tmpfiles-setup.service
2167 dist_zshcompletion_DATA += \
2168 shell-completion/zsh/_systemd-tmpfiles
2170 TIMERS_TARGET_WANTS += \
2171 systemd-tmpfiles-clean.timer
2175 $(sysconfdir)/tmpfiles.d
2179 tmpfiles.d/etc.conf.m4 \
2180 units/systemd-tmpfiles-setup-dev.service.in \
2181 units/systemd-tmpfiles-setup.service.in \
2182 units/systemd-tmpfiles-clean.service.in
2187 # ------------------------------------------------------------------------------
2189 systemd_sysusers_SOURCES = \
2190 src/sysusers/sysusers.c
2192 systemd_sysusers_LDADD = \
2193 libsystemd-units.la \
2194 libsystemd-label.la \
2195 libsystemd-internal.la \
2196 libsystemd-shared.la
2198 rootbin_PROGRAMS += \
2201 nodist_systemunit_DATA += \
2202 units/systemd-sysusers.service
2204 SYSINIT_TARGET_WANTS += \
2205 systemd-sysusers.service
2207 dist_sysusers_DATA = \
2208 sysusers.d/systemd.conf
2210 nodist_sysusers_DATA = \
2211 sysusers.d/basic.conf
2214 units/systemd-sysusers.service.in \
2215 sysusers.d/basic.conf.in
2218 sysusers.d/basic.conf
2224 # ------------------------------------------------------------------------------
2225 dist_factory_etc_DATA = \
2226 factory/etc/nsswitch.conf
2229 dist_factory_pam_DATA = \
2230 factory/etc/pam.d/system-auth \
2231 factory/etc/pam.d/other
2234 # ------------------------------------------------------------------------------
2236 systemd_firstboot_SOURCES = \
2237 src/firstboot/firstboot.c
2239 systemd_firstboot_LDADD = \
2240 libsystemd-units.la \
2241 libsystemd-label.la \
2242 libsystemd-internal.la \
2243 libsystemd-shared.la \
2246 rootbin_PROGRAMS += \
2249 nodist_systemunit_DATA += \
2250 units/systemd-firstboot.service
2253 units/systemd-firstboot.service.in
2255 SYSINIT_TARGET_WANTS += \
2256 systemd-firstboot.service
2259 # ------------------------------------------------------------------------------
2260 systemd_machine_id_setup_SOURCES = \
2261 src/machine-id-setup/machine-id-setup-main.c \
2262 src/core/machine-id-setup.c \
2263 src/core/machine-id-setup.h
2265 systemd_machine_id_setup_LDADD = \
2266 libsystemd-label.la \
2267 libsystemd-internal.la \
2268 libsystemd-shared.la
2270 # ------------------------------------------------------------------------------
2271 systemd_sysctl_SOURCES = \
2274 systemd_sysctl_LDADD = \
2275 libsystemd-shared.la
2277 # ------------------------------------------------------------------------------
2278 systemd_sleep_SOURCES = \
2281 systemd_sleep_LDADD = \
2282 libsystemd-shared.la
2284 # ------------------------------------------------------------------------------
2285 systemd_fsck_SOURCES = \
2288 systemd_fsck_LDADD = \
2289 libsystemd-internal.la \
2290 libudev-internal.la \
2291 libsystemd-shared.la
2293 # ------------------------------------------------------------------------------
2294 systemd_machine_id_commit_SOURCES = \
2295 src/machine-id-commit/machine-id-commit.c \
2296 src/core/machine-id-setup.c \
2297 src/core/machine-id-setup.h
2299 systemd_machine_id_commit_LDADD = \
2300 libsystemd-label.la \
2301 libsystemd-internal.la \
2302 libsystemd-shared.la
2304 SYSINIT_TARGET_WANTS += \
2305 systemd-machine-id-commit.service
2307 # ------------------------------------------------------------------------------
2308 systemd_ac_power_SOURCES = \
2309 src/ac-power/ac-power.c
2311 systemd_ac_power_LDADD = \
2312 libudev-internal.la \
2313 libsystemd-shared.la
2315 # ------------------------------------------------------------------------------
2316 systemd_detect_virt_SOURCES = \
2317 src/detect-virt/detect-virt.c
2319 systemd_detect_virt_LDADD = \
2320 libsystemd-shared.la
2322 INSTALL_EXEC_HOOKS += \
2323 systemd-detect-virt-install-hook
2325 # ------------------------------------------------------------------------------
2326 systemd_delta_SOURCES = \
2329 systemd_delta_LDADD = \
2330 libsystemd-shared.la
2332 # ------------------------------------------------------------------------------
2333 systemd_getty_generator_SOURCES = \
2334 src/getty-generator/getty-generator.c
2336 systemd_getty_generator_LDADD = \
2337 libsystemd-label.la \
2338 libsystemd-shared.la
2340 # ------------------------------------------------------------------------------
2341 systemd_debug_generator_SOURCES = \
2342 src/debug-generator/debug-generator.c
2344 systemd_debug_generator_LDADD = \
2345 libsystemd-label.la \
2346 libsystemd-shared.la
2348 # ------------------------------------------------------------------------------
2349 systemd_fstab_generator_SOURCES = \
2350 src/fstab-generator/fstab-generator.c \
2351 src/core/mount-setup.c
2353 systemd_fstab_generator_LDADD = \
2354 libsystemd-label.la \
2355 libsystemd-shared.la
2357 # ------------------------------------------------------------------------------
2358 systemd_system_update_generator_SOURCES = \
2359 src/system-update-generator/system-update-generator.c
2361 systemd_system_update_generator_LDADD = \
2362 libsystemd-label.la \
2363 libsystemd-shared.la
2365 # ------------------------------------------------------------------------------
2367 systemgenerator_PROGRAMS += \
2368 systemd-hibernate-resume-generator
2370 rootlibexec_PROGRAMS += \
2371 systemd-hibernate-resume
2373 systemd_hibernate_resume_SOURCES = \
2374 src/hibernate-resume/hibernate-resume.c
2376 systemd_hibernate_resume_LDADD = \
2377 libsystemd-internal.la \
2378 libsystemd-shared.la
2380 systemd_hibernate_resume_generator_SOURCES = \
2381 src/hibernate-resume/hibernate-resume-generator.c
2383 systemd_hibernate_resume_generator_LDADD = \
2384 libsystemd-label.la \
2385 libsystemd-shared.la
2388 units/systemd-hibernate.service.in \
2389 units/systemd-hibernate-resume@.service.in \
2390 units/systemd-hybrid-sleep.service.in
2392 dist_systemunit_DATA += \
2393 units/hibernate.target \
2394 units/hybrid-sleep.target
2396 nodist_systemunit_DATA += \
2397 units/systemd-hibernate.service \
2398 units/systemd-hibernate-resume@.service \
2399 units/systemd-hybrid-sleep.service
2402 # ------------------------------------------------------------------------------
2404 systemgenerator_PROGRAMS += \
2405 systemd-efi-boot-generator
2407 systemd_efi_boot_generator_SOURCES = \
2408 src/efi-boot-generator/efi-boot-generator.c
2410 systemd_efi_boot_generator_LDADD = \
2411 libsystemd-label.la \
2412 libsystemd-shared.la
2414 # ------------------------------------------------------------------------------
2417 src/boot/boot-loader.h \
2418 src/boot/bootctl.c \
2419 src/boot/boot-loader.c \
2423 libsystemd-shared.la \
2424 libsystemd-internal.la
2429 dist_bashcompletion_DATA += \
2430 shell-completion/bash/bootctl
2432 dist_zshcompletion_DATA += \
2433 shell-completion/zsh/_bootctl
2437 # ------------------------------------------------------------------------------
2439 systemgenerator_PROGRAMS += \
2440 systemd-gpt-auto-generator
2442 systemd_gpt_auto_generator_SOURCES = \
2443 src/gpt-auto-generator/gpt-auto-generator.c \
2444 src/shared/blkid-util.h
2446 systemd_gpt_auto_generator_LDADD = \
2447 libsystemd-label.la \
2448 libsystemd-internal.la \
2449 libudev-internal.la \
2450 libsystemd-shared.la \
2453 systemd_gpt_auto_generator_CFLAGS = \
2458 # ------------------------------------------------------------------------------
2460 systemgenerator_PROGRAMS += \
2461 systemd-dbus1-generator
2463 systemd_dbus1_generator_SOURCES = \
2464 src/dbus1-generator/dbus1-generator.c
2466 systemd_dbus1_generator_LDADD = \
2467 libsystemd-label.la \
2468 libsystemd-internal.la \
2469 libsystemd-shared.la
2471 dbus1-generator-install-hook:
2472 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2473 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2474 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2476 dbus1-generator-uninstall-hook:
2477 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2479 dist_xinitrc_SCRIPTS = \
2480 xorg/50-systemd-user.sh
2482 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2483 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2486 # ------------------------------------------------------------------------------
2487 systemd_sysv_generator_SOURCES = \
2488 src/sysv-generator/sysv-generator.c
2490 systemd_sysv_generator_LDADD = \
2491 libsystemd-core.la \
2492 libsystemd-label.la \
2493 libsystemd-shared.la
2495 # ------------------------------------------------------------------------------
2496 systemd_rc_local_generator_SOURCES = \
2497 src/rc-local-generator/rc-local-generator.c
2499 systemd_rc_local_generator_LDADD = \
2500 libsystemd-label.la \
2501 libsystemd-shared.la
2503 # ------------------------------------------------------------------------------
2504 systemd_remount_fs_SOURCES = \
2505 src/remount-fs/remount-fs.c \
2506 src/core/mount-setup.c \
2507 src/core/mount-setup.h
2509 systemd_remount_fs_LDADD = \
2510 libsystemd-label.la \
2511 libsystemd-shared.la
2513 # ------------------------------------------------------------------------------
2514 systemd_cgroups_agent_SOURCES = \
2515 src/cgroups-agent/cgroups-agent.c
2517 systemd_cgroups_agent_LDADD = \
2518 libsystemd-internal.la \
2519 libsystemd-shared.la
2521 # ------------------------------------------------------------------------------
2522 systemd_escape_SOURCES = \
2525 systemd_escape_LDADD = \
2526 libsystemd-shared.la
2528 # -----------------------------------------------------------------------------
2529 systemctl_SOURCES = \
2530 src/systemctl/systemctl.c
2533 libsystemd-units.la \
2534 libsystemd-label.la \
2535 libsystemd-internal.la \
2536 libsystemd-logs.la \
2537 libsystemd-journal-internal.la \
2538 libsystemd-shared.la
2540 # ------------------------------------------------------------------------------
2541 systemd_notify_SOURCES = \
2544 systemd_notify_LDADD = \
2545 libsystemd-internal.la \
2546 libsystemd-shared.la
2548 # ------------------------------------------------------------------------------
2549 systemd_path_SOURCES = \
2552 systemd_path_LDADD = \
2553 libsystemd-internal.la \
2554 libsystemd-shared.la
2556 # ------------------------------------------------------------------------------
2557 systemd_ask_password_SOURCES = \
2558 src/ask-password/ask-password.c
2560 systemd_ask_password_LDADD = \
2561 libsystemd-label.la \
2562 libsystemd-shared.la
2564 # ------------------------------------------------------------------------------
2565 systemd_reply_password_SOURCES = \
2566 src/reply-password/reply-password.c
2568 systemd_reply_password_LDADD = \
2569 libsystemd-shared.la
2571 # ------------------------------------------------------------------------------
2572 systemd_cgls_SOURCES = \
2575 systemd_cgls_LDADD = \
2576 libsystemd-internal.la \
2577 libsystemd-shared.la
2579 # ------------------------------------------------------------------------------
2580 systemd_cgtop_SOURCES = \
2583 systemd_cgtop_LDADD = \
2584 libsystemd-shared.la
2586 # ------------------------------------------------------------------------------
2587 systemd_nspawn_SOURCES = \
2588 src/nspawn/nspawn.c \
2589 src/core/mount-setup.c \
2590 src/core/mount-setup.h \
2591 src/core/loopback-setup.c \
2592 src/core/loopback-setup.h
2594 systemd_nspawn_CFLAGS = \
2599 systemd_nspawn_LDADD = \
2600 libsystemd-label.la \
2601 libsystemd-internal.la \
2602 libudev-internal.la \
2603 libsystemd-shared.la \
2607 systemd_nspawn_LDADD += \
2608 libsystemd-seccomp.la \
2612 # ------------------------------------------------------------------------------
2613 systemd_run_SOURCES = \
2616 systemd_run_LDADD = \
2617 libsystemd-label.la \
2618 libsystemd-internal.la \
2619 libsystemd-shared.la
2621 # ------------------------------------------------------------------------------
2622 systemd_bus_proxyd_SOURCES = \
2623 src/bus-proxyd/bus-proxyd.c \
2624 src/bus-proxyd/bus-xml-policy.c \
2625 src/bus-proxyd/bus-xml-policy.h
2627 systemd_bus_proxyd_LDADD = \
2628 libsystemd-internal.la \
2629 libsystemd-shared.la
2631 bus-proxyd-install-hook:
2632 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2633 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2634 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2636 bus-proxyd-uninstall-hook:
2637 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2639 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2640 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2643 nodist_systemunit_DATA += \
2644 units/systemd-bus-proxyd@.service
2646 dist_systemunit_DATA += \
2647 units/systemd-bus-proxyd.socket
2649 nodist_userunit_DATA += \
2650 units/user/systemd-bus-proxyd@.service
2652 dist_userunit_DATA += \
2653 units/user/systemd-bus-proxyd.socket
2657 units/systemd-bus-proxyd@.service.m4.in \
2658 units/user/systemd-bus-proxyd@.service.in
2661 units/systemd-bus-proxyd@.service.m4
2664 bus-proxyd-set-cap-hook:
2665 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2667 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2670 # ------------------------------------------------------------------------------
2671 systemd_tty_ask_password_agent_SOURCES = \
2672 src/tty-ask-password-agent/tty-ask-password-agent.c
2674 systemd_tty_ask_password_agent_LDADD = \
2675 libsystemd-label.la \
2676 libsystemd-shared.la
2678 # ------------------------------------------------------------------------------
2679 libsystemd_internal_la_SOURCES = \
2680 src/systemd/sd-bus.h \
2681 src/systemd/sd-bus-protocol.h \
2682 src/systemd/sd-bus-vtable.h \
2683 src/systemd/sd-utf8.h \
2684 src/systemd/sd-event.h \
2685 src/systemd/sd-rtnl.h \
2686 src/systemd/sd-resolve.h \
2687 src/systemd/sd-login.h \
2688 src/systemd/sd-id128.h \
2689 src/systemd/sd-daemon.h \
2690 src/systemd/sd-path.h \
2691 src/systemd/sd-network.h \
2692 src/systemd/sd-hwdb.h \
2693 src/libsystemd/sd-bus/sd-bus.c \
2694 src/libsystemd/sd-bus/bus-control.c \
2695 src/libsystemd/sd-bus/bus-control.h \
2696 src/libsystemd/sd-bus/bus-error.c \
2697 src/libsystemd/sd-bus/bus-error.h \
2698 src/libsystemd/sd-bus/bus-common-errors.h \
2699 src/libsystemd/sd-bus/bus-common-errors.c \
2700 src/libsystemd/sd-bus/bus-internal.c \
2701 src/libsystemd/sd-bus/bus-internal.h \
2702 src/libsystemd/sd-bus/bus-socket.c \
2703 src/libsystemd/sd-bus/bus-socket.h \
2704 src/libsystemd/sd-bus/bus-kernel.c \
2705 src/libsystemd/sd-bus/bus-kernel.h \
2706 src/libsystemd/sd-bus/bus-container.c \
2707 src/libsystemd/sd-bus/bus-container.h \
2708 src/libsystemd/sd-bus/bus-message.c \
2709 src/libsystemd/sd-bus/bus-message.h \
2710 src/libsystemd/sd-bus/bus-creds.c \
2711 src/libsystemd/sd-bus/bus-creds.h \
2712 src/libsystemd/sd-bus/bus-signature.c \
2713 src/libsystemd/sd-bus/bus-signature.h \
2714 src/libsystemd/sd-bus/bus-type.c \
2715 src/libsystemd/sd-bus/bus-type.h \
2716 src/libsystemd/sd-bus/bus-match.c \
2717 src/libsystemd/sd-bus/bus-match.h \
2718 src/libsystemd/sd-bus/bus-bloom.c \
2719 src/libsystemd/sd-bus/bus-bloom.h \
2720 src/libsystemd/sd-bus/bus-introspect.c \
2721 src/libsystemd/sd-bus/bus-introspect.h \
2722 src/libsystemd/sd-bus/bus-objects.c \
2723 src/libsystemd/sd-bus/bus-objects.h \
2724 src/libsystemd/sd-bus/bus-gvariant.c \
2725 src/libsystemd/sd-bus/bus-gvariant.h \
2726 src/libsystemd/sd-bus/bus-convenience.c \
2727 src/libsystemd/sd-bus/bus-track.c \
2728 src/libsystemd/sd-bus/bus-track.h \
2729 src/libsystemd/sd-bus/bus-util.c \
2730 src/libsystemd/sd-bus/bus-util.h \
2731 src/libsystemd/sd-bus/bus-slot.c \
2732 src/libsystemd/sd-bus/bus-slot.h \
2733 src/libsystemd/sd-bus/bus-protocol.h \
2734 src/libsystemd/sd-bus/kdbus.h \
2735 src/libsystemd/sd-utf8/sd-utf8.c \
2736 src/libsystemd/sd-event/sd-event.c \
2737 src/libsystemd/sd-event/event-util.h \
2738 src/libsystemd/sd-rtnl/sd-rtnl.c \
2739 src/libsystemd/sd-rtnl/rtnl-internal.h \
2740 src/libsystemd/sd-rtnl/rtnl-message.c \
2741 src/libsystemd/sd-rtnl/rtnl-types.h \
2742 src/libsystemd/sd-rtnl/rtnl-types.c \
2743 src/libsystemd/sd-rtnl/rtnl-util.h \
2744 src/libsystemd/sd-rtnl/rtnl-util.c \
2745 src/libsystemd/sd-rtnl/local-addresses.h \
2746 src/libsystemd/sd-rtnl/local-addresses.c \
2747 src/libsystemd/sd-id128/sd-id128.c \
2748 src/libsystemd/sd-daemon/sd-daemon.c \
2749 src/libsystemd/sd-login/sd-login.c \
2750 src/libsystemd/sd-path/sd-path.c \
2751 src/libsystemd/sd-network/sd-network.c \
2752 src/libsystemd/sd-network/network-util.h \
2753 src/libsystemd/sd-network/network-util.c \
2754 src/libsystemd/sd-hwdb/sd-hwdb.c \
2755 src/libsystemd/sd-hwdb/hwdb-util.h \
2756 src/libsystemd/sd-hwdb/hwdb-internal.h
2758 nodist_libsystemd_internal_la_SOURCES = \
2759 src/libsystemd/libsystemd.sym
2761 libsystemd_internal_la_CFLAGS = \
2765 libsystemd_internal_la_LIBADD = \
2768 libsystemd_resolve_la_SOURCES = \
2769 src/libsystemd/sd-resolve/sd-resolve.c \
2770 src/libsystemd/sd-resolve/resolve-util.h
2772 libsystemd_resolve_la_CFLAGS = \
2776 libsystemd_resolve_la_LIBADD = \
2779 noinst_LTLIBRARIES += \
2780 libsystemd-internal.la \
2781 libsystemd-resolve.la
2783 libsystemd_dump_la_SOURCES = \
2784 src/libsystemd/sd-bus/bus-dump.c \
2785 src/libsystemd/sd-bus/bus-dump.h
2787 noinst_LTLIBRARIES += \
2791 src/libsystemd/libsystemd.sym.m4 \
2792 src/libsystemd/libsystemd.pc.in \
2793 src/libsystemd/sd-bus/DIFFERENCES \
2794 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2797 src/libsystemd/libsystemd.sym
2800 src/libsystemd/libsystemd.sym
2802 libsystemd_la_SOURCES = \
2803 $(libsystemd_internal_la_SOURCES) \
2804 $(libsystemd_resolve_la_SOURCES) \
2805 $(libsystemd_journal_internal_la_SOURCES)
2807 nodist_libsystemd_la_SOURCES = \
2808 $(nodist_libsystemd_internal_la_SOURCES)
2810 libsystemd_la_CFLAGS = \
2811 $(libsystemd_internal_la_CFLAGS) \
2812 $(libsystemd_resolve_la_CFLAGS) \
2813 $(libsystemd_journal_internal_la_CFLAGS)
2815 libsystemd_la_LDFLAGS = \
2817 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2818 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2820 libsystemd_la_LIBADD = \
2821 libsystemd-shared.la \
2822 $(libsystemd_internal_la_LIBADD) \
2823 $(libsystemd_journal_internal_la_LIBADD) \
2824 $(libsystemd_resolve_la_LIBADD)
2826 libsystemd-install-hook:
2827 libname=libsystemd.so && $(move-to-rootlibdir)
2829 libsystemd-uninstall-hook:
2830 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2832 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2833 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2835 pkgconfiglib_DATA += \
2836 src/libsystemd/libsystemd.pc
2838 pkginclude_HEADERS += \
2839 src/systemd/sd-login.h \
2840 src/systemd/sd-id128.h \
2841 src/systemd/sd-daemon.h
2844 pkginclude_HEADERS += \
2845 src/systemd/sd-bus.h \
2846 src/systemd/sd-bus-protocol.h \
2847 src/systemd/sd-bus-vtable.h \
2848 src/systemd/sd-utf8.h \
2849 src/systemd/sd-event.h \
2850 src/systemd/sd-rtnl.h \
2851 src/systemd/sd-resolve.h \
2852 src/systemd/sd-path.h
2855 lib_LTLIBRARIES += \
2860 test-bus-signature \
2866 test-bus-kernel-bloom \
2867 test-bus-kernel-benchmark \
2868 test-bus-zero-copy \
2869 test-bus-introspect \
2876 test-local-addresses \
2882 test_bus_marshal_SOURCES = \
2883 src/libsystemd/sd-bus/test-bus-marshal.c
2885 test_bus_marshal_LDADD = \
2886 libsystemd-dump.la \
2887 libsystemd-internal.la \
2888 libsystemd-shared.la \
2892 test_bus_marshal_CFLAGS = \
2897 test_bus_signature_SOURCES = \
2898 src/libsystemd/sd-bus/test-bus-signature.c
2900 test_bus_signature_LDADD = \
2901 libsystemd-internal.la \
2902 libsystemd-shared.la
2904 test_bus_chat_SOURCES = \
2905 src/libsystemd/sd-bus/test-bus-chat.c
2907 test_bus_chat_CFLAGS = \
2911 test_bus_chat_LDADD = \
2912 libsystemd-internal.la \
2913 libsystemd-shared.la
2915 test_bus_cleanup_SOURCES = \
2916 src/libsystemd/sd-bus/test-bus-cleanup.c
2918 test_bus_cleanup_CFLAGS = \
2922 test_bus_cleanup_LDADD = \
2923 libsystemd-internal.la \
2924 libsystemd-shared.la
2926 test_bus_server_SOURCES = \
2927 src/libsystemd/sd-bus/test-bus-server.c
2929 test_bus_server_CFLAGS = \
2933 test_bus_server_LDADD = \
2934 libsystemd-internal.la \
2935 libsystemd-shared.la
2937 test_bus_objects_SOURCES = \
2938 src/libsystemd/sd-bus/test-bus-objects.c
2940 test_bus_objects_CFLAGS = \
2944 test_bus_objects_LDADD = \
2945 libsystemd-dump.la \
2946 libsystemd-internal.la \
2947 libsystemd-shared.la
2949 test_bus_error_SOURCES = \
2950 src/libsystemd/sd-bus/test-bus-error.c
2952 test_bus_error_LDADD = \
2953 libsystemd-internal.la \
2954 libsystemd-shared.la
2956 test_bus_gvariant_SOURCES = \
2957 src/libsystemd/sd-bus/test-bus-gvariant.c
2959 test_bus_gvariant_LDADD = \
2960 libsystemd-dump.la \
2961 libsystemd-internal.la \
2962 libsystemd-shared.la \
2965 test_bus_gvariant_CFLAGS = \
2969 test_bus_creds_SOURCES = \
2970 src/libsystemd/sd-bus/test-bus-creds.c
2972 test_bus_creds_LDADD = \
2973 libsystemd-dump.la \
2974 libsystemd-internal.la \
2975 libsystemd-shared.la
2977 test_bus_match_SOURCES = \
2978 src/libsystemd/sd-bus/test-bus-match.c
2980 test_bus_match_LDADD = \
2981 libsystemd-internal.la \
2982 libsystemd-shared.la
2984 test_bus_kernel_SOURCES = \
2985 src/libsystemd/sd-bus/test-bus-kernel.c
2987 test_bus_kernel_LDADD = \
2988 libsystemd-dump.la \
2989 libsystemd-internal.la \
2990 libsystemd-shared.la
2992 test_bus_kernel_bloom_SOURCES = \
2993 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2995 test_bus_kernel_bloom_LDADD = \
2996 libsystemd-internal.la \
2997 libsystemd-shared.la
2999 test_bus_kernel_benchmark_SOURCES = \
3000 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3002 test_bus_kernel_benchmark_LDADD = \
3003 libsystemd-internal.la \
3004 libsystemd-shared.la
3006 test_bus_zero_copy_SOURCES = \
3007 src/libsystemd/sd-bus/test-bus-zero-copy.c
3009 test_bus_zero_copy_LDADD = \
3010 libsystemd-dump.la \
3011 libsystemd-internal.la \
3012 libsystemd-shared.la
3014 test_bus_introspect_SOURCES = \
3015 src/libsystemd/sd-bus/test-bus-introspect.c
3017 test_bus_introspect_LDADD = \
3018 libsystemd-internal.la \
3019 libsystemd-shared.la
3021 test_event_SOURCES = \
3022 src/libsystemd/sd-event/test-event.c
3024 test_event_LDADD = \
3025 libsystemd-internal.la \
3026 libsystemd-shared.la
3028 test_rtnl_SOURCES = \
3029 src/libsystemd/sd-rtnl/test-rtnl.c
3032 libsystemd-internal.la \
3033 libsystemd-shared.la
3035 test_local_addresses_SOURCES = \
3036 src/libsystemd/sd-rtnl/test-local-addresses.c
3038 test_local_addresses_LDADD = \
3039 libsystemd-internal.la \
3040 libsystemd-shared.la
3042 test_resolve_SOURCES = \
3043 src/libsystemd/sd-resolve/test-resolve.c
3045 test_resolve_LDADD = \
3046 libsystemd-resolve.la \
3047 libsystemd-internal.la \
3048 libsystemd-shared.la
3050 test_resolve_CFLAGS = \
3055 src/libsystemd/sd-bus/busctl.c \
3056 src/libsystemd/sd-bus/busctl-introspect.c \
3057 src/libsystemd/sd-bus/busctl-introspect.h
3060 libsystemd-dump.la \
3061 libsystemd-internal.la \
3062 libsystemd-shared.la
3064 # ------------------------------------------------------------------------------
3065 noinst_LTLIBRARIES += \
3066 libsystemd-network.la
3068 libsystemd_network_la_CFLAGS = \
3072 libsystemd_network_la_SOURCES = \
3073 src/systemd/sd-dhcp-client.h \
3074 src/systemd/sd-dhcp-server.h \
3075 src/systemd/sd-dhcp-lease.h \
3076 src/systemd/sd-ipv4ll.h \
3077 src/systemd/sd-icmp6-nd.h \
3078 src/systemd/sd-dhcp6-client.h \
3079 src/systemd/sd-dhcp6-lease.h \
3080 src/systemd/sd-pppoe.h \
3081 src/systemd/sd-lldp.h \
3082 src/libsystemd-network/sd-dhcp-client.c \
3083 src/libsystemd-network/sd-dhcp-server.c \
3084 src/libsystemd-network/dhcp-network.c \
3085 src/libsystemd-network/dhcp-option.c \
3086 src/libsystemd-network/dhcp-packet.c \
3087 src/libsystemd-network/dhcp-internal.h \
3088 src/libsystemd-network/dhcp-server-internal.h \
3089 src/libsystemd-network/dhcp-protocol.h \
3090 src/libsystemd-network/dhcp-lease-internal.h \
3091 src/libsystemd-network/sd-dhcp-lease.c \
3092 src/libsystemd-network/sd-ipv4ll.c \
3093 src/libsystemd-network/ipv4ll-network.c \
3094 src/libsystemd-network/ipv4ll-packet.c \
3095 src/libsystemd-network/ipv4ll-internal.h \
3096 src/libsystemd-network/sd-pppoe.c \
3097 src/libsystemd-network/network-internal.c \
3098 src/libsystemd-network/network-internal.h \
3099 src/libsystemd-network/sd-icmp6-nd.c \
3100 src/libsystemd-network/sd-dhcp6-client.c \
3101 src/libsystemd-network/dhcp6-internal.h \
3102 src/libsystemd-network/dhcp6-protocol.h \
3103 src/libsystemd-network/dhcp6-network.c \
3104 src/libsystemd-network/dhcp6-option.c \
3105 src/libsystemd-network/dhcp6-lease-internal.h \
3106 src/libsystemd-network/sd-dhcp6-lease.c \
3107 src/libsystemd-network/lldp.h \
3108 src/libsystemd-network/lldp-tlv.h \
3109 src/libsystemd-network/lldp-tlv.c \
3110 src/libsystemd-network/lldp-network.h \
3111 src/libsystemd-network/lldp-network.c \
3112 src/libsystemd-network/lldp-port.h \
3113 src/libsystemd-network/lldp-port.c \
3114 src/libsystemd-network/lldp-internal.h \
3115 src/libsystemd-network/lldp-internal.c \
3116 src/libsystemd-network/lldp-util.h \
3117 src/libsystemd-network/sd-lldp.c
3119 libsystemd_network_la_LIBADD = \
3120 libudev-internal.la \
3121 libsystemd-label.la \
3122 libsystemd-internal.la \
3123 libsystemd-shared.la \
3126 test_dhcp_option_SOURCES = \
3127 src/libsystemd-network/dhcp-protocol.h \
3128 src/libsystemd-network/dhcp-internal.h \
3129 src/libsystemd-network/test-dhcp-option.c
3131 test_dhcp_option_LDADD = \
3132 libsystemd-network.la \
3133 libsystemd-internal.la \
3134 libsystemd-shared.la
3136 test_dhcp_client_SOURCES = \
3137 src/systemd/sd-dhcp-client.h \
3138 src/libsystemd-network/dhcp-protocol.h \
3139 src/libsystemd-network/dhcp-internal.h \
3140 src/libsystemd-network/test-dhcp-client.c
3142 test_dhcp_client_LDADD = \
3143 libsystemd-network.la \
3144 libsystemd-label.la \
3145 libsystemd-internal.la \
3146 libsystemd-shared.la
3148 test_dhcp_server_SOURCES = \
3149 src/libsystemd-network/test-dhcp-server.c
3151 test_dhcp_server_LDADD = \
3152 libsystemd-network.la \
3153 libsystemd-internal.la \
3154 libsystemd-shared.la
3156 test_ipv4ll_SOURCES = \
3157 src/systemd/sd-ipv4ll.h \
3158 src/libsystemd-network/ipv4ll-internal.h \
3159 src/libsystemd-network/test-ipv4ll.c
3161 test_ipv4ll_LDADD = \
3162 libsystemd-network.la \
3163 libsystemd-label.la \
3164 libsystemd-internal.la \
3165 libsystemd-shared.la
3167 test_pppoe_SOURCES = \
3168 src/systemd/sd-pppoe.h \
3169 src/libsystemd-network/test-pppoe.c
3171 test_pppoe_LDADD = \
3172 libsystemd-network.la \
3173 libsystemd-shared.la
3175 test_icmp6_rs_SOURCES = \
3176 src/systemd/sd-dhcp6-client.h \
3177 src/systemd/sd-icmp6-nd.h \
3178 src/libsystemd-network/dhcp6-internal.h \
3179 src/libsystemd-network/test-icmp6-rs.c
3181 test_icmp6_rs_LDADD = \
3182 libsystemd-network.la \
3183 libsystemd-internal.la \
3184 libsystemd-shared.la
3186 test_dhcp6_client_SOURCES = \
3187 src/systemd/sd-dhcp6-client.h \
3188 src/libsystemd-network/dhcp6-internal.h \
3189 src/libsystemd-network/test-dhcp6-client.c
3191 test_dhcp6_client_LDADD = \
3192 libsystemd-network.la \
3193 libsystemd-internal.la \
3194 libsystemd-shared.la
3196 test_lldp_SOURCES = \
3197 src/libsystemd-network/lldp.h \
3198 src/libsystemd-network/lldp-tlv.h \
3199 src/libsystemd-network/lldp-tlv.c \
3200 src/libsystemd-network/test-lldp.c
3203 libsystemd-network.la \
3204 libsystemd-internal.la \
3205 libsystemd-shared.la
3219 # ------------------------------------------------------------------------------
3221 noinst_LTLIBRARIES += \
3222 libsystemd-terminal.la
3224 rootlibexec_PROGRAMS += \
3227 noinst_PROGRAMS += \
3232 dist_pkgdata_DATA += \
3233 src/libsystemd-terminal/unifont-glyph-array.bin
3235 nodist_userunit_DATA += \
3236 units/user/systemd-consoled.service
3238 USER_DEFAULT_TARGET_WANTS += \
3239 systemd-consoled.service
3248 units/user/systemd-consoled.service.in
3250 libsystemd_terminal_la_CFLAGS = \
3254 libsystemd_terminal_la_SOURCES = \
3255 src/libsystemd-terminal/grdev.h \
3256 src/libsystemd-terminal/grdev-internal.h \
3257 src/libsystemd-terminal/grdev.c \
3258 src/libsystemd-terminal/grdev-drm.c \
3259 src/libsystemd-terminal/idev.h \
3260 src/libsystemd-terminal/idev-internal.h \
3261 src/libsystemd-terminal/idev.c \
3262 src/libsystemd-terminal/idev-evdev.c \
3263 src/libsystemd-terminal/idev-keyboard.c \
3264 src/libsystemd-terminal/sysview.h \
3265 src/libsystemd-terminal/sysview-internal.h \
3266 src/libsystemd-terminal/sysview.c \
3267 src/libsystemd-terminal/term.h \
3268 src/libsystemd-terminal/term-internal.h \
3269 src/libsystemd-terminal/term-charset.c \
3270 src/libsystemd-terminal/term-page.c \
3271 src/libsystemd-terminal/term-parser.c \
3272 src/libsystemd-terminal/term-screen.c \
3273 src/libsystemd-terminal/term-wcwidth.c \
3274 src/libsystemd-terminal/unifont.h \
3275 src/libsystemd-terminal/unifont-def.h \
3276 src/libsystemd-terminal/unifont.c
3278 libsystemd_terminal_la_LIBADD = \
3279 libudev-internal.la \
3280 libsystemd-internal.la \
3281 libsystemd-shared.la \
3284 systemd_consoled_CFLAGS = \
3288 systemd_consoled_SOURCES = \
3289 src/console/consoled.h \
3290 src/console/consoled.c \
3291 src/console/consoled-display.c \
3292 src/console/consoled-manager.c \
3293 src/console/consoled-session.c \
3294 src/console/consoled-terminal.c \
3295 src/console/consoled-workspace.c
3297 systemd_consoled_LDADD = \
3298 libsystemd-terminal.la \
3299 libsystemd-internal.la \
3300 libsystemd-shared.la \
3303 systemd_evcat_CFLAGS = \
3307 systemd_evcat_SOURCES = \
3308 src/libsystemd-terminal/evcat.c
3310 systemd_evcat_LDADD = \
3311 libsystemd-terminal.la \
3312 libsystemd-internal.la \
3313 libsystemd-shared.la \
3316 systemd_modeset_CFLAGS = \
3320 systemd_modeset_SOURCES = \
3321 src/libsystemd-terminal/modeset.c
3323 systemd_modeset_LDADD = \
3324 libsystemd-terminal.la \
3325 libsystemd-internal.la \
3326 libsystemd-shared.la \
3329 systemd_subterm_SOURCES = \
3330 src/libsystemd-terminal/subterm.c
3332 systemd_subterm_LDADD = \
3333 libsystemd-terminal.la \
3334 libsystemd-internal.la \
3335 libsystemd-shared.la
3337 test_term_page_SOURCES = \
3338 src/libsystemd-terminal/test-term-page.c
3340 test_term_page_LDADD = \
3341 libsystemd-terminal.la \
3342 libsystemd-internal.la \
3343 libsystemd-shared.la
3345 test_term_parser_SOURCES = \
3346 src/libsystemd-terminal/test-term-parser.c
3348 test_term_parser_LDADD = \
3349 libsystemd-terminal.la \
3350 libsystemd-internal.la \
3351 libsystemd-shared.la
3353 test_unifont_SOURCES = \
3354 src/libsystemd-terminal/test-unifont.c
3356 test_unifont_LDADD = \
3357 libsystemd-terminal.la \
3358 libsystemd-internal.la \
3359 libsystemd-shared.la
3361 .PHONY: update-unifont
3362 update-unifont: tools/compile-unifont.py
3363 $(AM_V_GEN)$(PYTHON) $< \
3364 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3365 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3366 @echo "unifont-glyph-array.bin has been regenerated"
3368 # ------------------------------------------------------------------------------
3378 include_HEADERS += \
3379 src/libudev/libudev.h
3381 lib_LTLIBRARIES += \
3384 libudev_la_SOURCES =\
3385 src/libudev/libudev.sym \
3386 src/libudev/libudev-private.h \
3387 src/libudev/libudev.c \
3388 src/libudev/libudev-list.c \
3389 src/libudev/libudev-util.c \
3390 src/libudev/libudev-device.c \
3391 src/libudev/libudev-enumerate.c \
3392 src/libudev/libudev-monitor.c \
3393 src/libudev/libudev-queue.c \
3394 src/libudev/libudev-hwdb.c
3396 libudev_la_CFLAGS = \
3400 libudev_la_LDFLAGS = \
3402 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3403 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3405 libudev_la_LIBADD = \
3406 libsystemd-internal.la \
3407 libsystemd-shared.la
3409 pkgconfiglib_DATA += \
3410 src/libudev/libudev.pc
3413 src/libudev/libudev.pc.in
3416 src/libudev/libudev.pc \
3421 $(AM_V_at)$(MKDIR_P) $(dir $@)
3422 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3425 $(AM_V_at)$(MKDIR_P) $(dir $@)
3426 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3428 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3429 libudev-install-hook:
3430 libname=libudev.so && $(move-to-rootlibdir)
3432 libudev-uninstall-hook:
3433 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3435 INSTALL_EXEC_HOOKS += libudev-install-hook
3436 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3438 # ------------------------------------------------------------------------------
3439 noinst_LTLIBRARIES += \
3442 libudev_internal_la_SOURCES =\
3443 $(libudev_la_SOURCES) \
3444 src/libudev/libudev-device-private.c
3446 libudev_internal_la_CFLAGS = \
3448 -fvisibility=default
3450 # ------------------------------------------------------------------------------
3452 $(sysconfdir)/udev/rules.d
3454 dist_network_DATA = \
3455 network/99-default.link \
3456 network/80-container-host0.network \
3457 network/80-container-ve.network
3459 dist_udevrules_DATA += \
3460 rules/42-usb-hid-pm.rules \
3461 rules/50-udev-default.rules \
3462 rules/60-drm.rules \
3463 rules/60-keyboard.rules \
3464 rules/70-mouse.rules \
3465 rules/60-persistent-storage-tape.rules \
3466 rules/60-persistent-serial.rules \
3467 rules/60-persistent-input.rules \
3468 rules/60-persistent-alsa.rules \
3469 rules/60-persistent-storage.rules \
3470 rules/64-btrfs.rules \
3471 rules/75-net-description.rules \
3472 rules/75-tty-description.rules \
3473 rules/78-sound-card.rules \
3474 rules/80-net-setup-link.rules \
3475 rules/95-udev-late.rules
3477 nodist_udevrules_DATA += \
3478 rules/99-systemd.rules
3480 udevconfdir = $(sysconfdir)/udev
3481 dist_udevconf_DATA = \
3484 sharepkgconfigdir = $(datadir)/pkgconfig
3485 sharepkgconfig_DATA = \
3489 rules/99-systemd.rules.in \
3493 rules/99-systemd.rules \
3497 units/systemd-udevd.service.in \
3498 units/systemd-udev-trigger.service.in \
3499 units/systemd-udev-settle.service.in
3502 units/systemd-udevd.service \
3503 units/systemd-udev-trigger.service \
3504 units/systemd-udev-settle.service
3506 SOCKETS_TARGET_WANTS += \
3507 systemd-udevd-control.socket \
3508 systemd-udevd-kernel.socket
3510 SYSINIT_TARGET_WANTS += \
3511 systemd-udevd.service \
3512 systemd-udev-trigger.service
3514 rootbin_PROGRAMS += \
3517 rootlibexec_PROGRAMS += \
3520 noinst_LTLIBRARIES += \
3523 src/udev/keyboard-keys.txt:
3524 $(AM_V_at)$(MKDIR_P) $(dir $@)
3525 $(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/' > $@
3527 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3528 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3530 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3531 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3533 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3534 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3536 libudev_core_la_SOURCES = \
3538 src/udev/udev-event.c \
3539 src/udev/udev-watch.c \
3540 src/udev/udev-node.c \
3541 src/udev/udev-rules.c \
3542 src/udev/udev-ctrl.c \
3543 src/udev/udev-builtin.c \
3544 src/udev/udev-builtin-btrfs.c \
3545 src/udev/udev-builtin-hwdb.c \
3546 src/udev/udev-builtin-input_id.c \
3547 src/udev/udev-builtin-keyboard.c \
3548 src/udev/udev-builtin-net_id.c \
3549 src/udev/udev-builtin-net_setup_link.c \
3550 src/udev/udev-builtin-path_id.c \
3551 src/udev/udev-builtin-usb_id.c \
3552 src/udev/net/link-config.h \
3553 src/udev/net/link-config.c \
3554 src/udev/net/ethtool-util.h \
3555 src/udev/net/ethtool-util.c
3557 nodist_libudev_core_la_SOURCES = \
3558 src/udev/keyboard-keys-from-name.h \
3559 src/udev/keyboard-keys-to-name.h \
3560 src/udev/net/link-config-gperf.c
3563 $(nodist_libudev_core_la_SOURCES)
3566 src/udev/keyboard-keys-from-name.gperf \
3567 src/udev/keyboard-keys.txt \
3568 src/udev/net/link-config-gperf.c
3571 src/udev/net/link-config-gperf.gperf
3573 libudev_core_la_CFLAGS = \
3578 libudev_core_la_LIBADD = \
3579 libudev-internal.la \
3580 libsystemd-label.la \
3581 libsystemd-internal.la \
3582 libsystemd-network.la \
3583 libsystemd-shared.la \
3588 libudev_core_la_SOURCES += \
3589 src/udev/udev-builtin-kmod.c
3591 dist_udevrules_DATA += \
3592 rules/80-drivers.rules
3596 libudev_core_la_SOURCES += \
3597 src/udev/udev-builtin-blkid.c
3601 libudev_core_la_SOURCES += \
3602 src/udev/udev-builtin-uaccess.c \
3603 src/login/logind-acl.c \
3604 src/libsystemd/sd-login/sd-login.c \
3605 src/systemd/sd-login.h
3607 libudev_core_la_LIBADD += \
3611 systemd_udevd_SOURCES = \
3614 systemd_udevd_LDADD = \
3618 src/udev/udevadm.c \
3619 src/udev/udevadm-info.c \
3620 src/udev/udevadm-control.c \
3621 src/udev/udevadm-monitor.c \
3622 src/udev/udevadm-hwdb.c \
3623 src/udev/udevadm-settle.c \
3624 src/udev/udevadm-trigger.c \
3625 src/udev/udevadm-test.c \
3626 src/udev/udevadm-test-builtin.c \
3627 src/udev/udevadm-util.c \
3628 src/udev/udevadm-util.h
3633 # ------------------------------------------------------------------------------
3636 $(sysconfdir)/udev/hwdb.d
3638 systemd_hwdb_SOURCES = \
3639 src/libsystemd/sd-hwdb/hwdb-internal.h \
3642 systemd_hwdb_LDADD = \
3643 libsystemd-shared.la \
3644 libsystemd-internal.la \
3647 rootbin_PROGRAMS += \
3650 dist_udevhwdb_DATA = \
3651 hwdb/20-pci-vendor-model.hwdb \
3652 hwdb/20-pci-classes.hwdb \
3653 hwdb/20-usb-vendor-model.hwdb \
3654 hwdb/20-usb-classes.hwdb \
3655 hwdb/20-sdio-vendor-model.hwdb \
3656 hwdb/20-sdio-classes.hwdb \
3657 hwdb/20-bluetooth-vendor-product.hwdb \
3658 hwdb/20-acpi-vendor.hwdb \
3660 hwdb/20-net-ifname.hwdb \
3661 hwdb/60-keyboard.hwdb \
3665 units/systemd-hwdb-update.service.in
3668 units/systemd-hwdb-update.service
3670 SYSINIT_TARGET_WANTS += \
3671 systemd-hwdb-update.service
3673 # Update hwdb on installation. Do not bother if installing
3674 # in DESTDIR, since this is likely for packaging purposes.
3676 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3678 INSTALL_DATA_HOOKS += \
3682 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3685 # ------------------------------------------------------------------------------
3694 test_libudev_SOURCES = \
3695 src/test/test-libudev.c
3697 test_libudev_LDADD = \
3698 libsystemd-label.la \
3699 libudev-internal.la \
3700 libsystemd-shared.la \
3701 libsystemd-internal.la
3703 test_udev_SOURCES = \
3704 src/test/test-udev.c
3713 test_udev_LDADD += \
3720 # packed sysfs test tree
3722 $(AM_V_at)$(MKDIR_P) $(dir $@)
3723 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3727 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3732 test/rules-test.sh \
3733 test/rule-syntax-check.py
3735 # ------------------------------------------------------------------------------
3737 src/udev/ata_id/ata_id.c
3740 libudev-internal.la \
3741 libsystemd-shared.la
3743 udevlibexec_PROGRAMS += \
3746 # ------------------------------------------------------------------------------
3747 cdrom_id_SOURCES = \
3748 src/udev/cdrom_id/cdrom_id.c
3751 libudev-internal.la \
3752 libsystemd-shared.la
3754 udevlibexec_PROGRAMS += \
3757 dist_udevrules_DATA += \
3758 rules/60-cdrom_id.rules
3760 # ------------------------------------------------------------------------------
3762 src/udev/collect/collect.c
3765 libudev-internal.la \
3766 libsystemd-shared.la
3768 udevlibexec_PROGRAMS += \
3771 # ------------------------------------------------------------------------------
3773 src/udev/scsi_id/scsi_id.c \
3774 src/udev/scsi_id/scsi_serial.c \
3775 src/udev/scsi_id/scsi.h \
3776 src/udev/scsi_id/scsi_id.h
3779 libudev-internal.la \
3780 libsystemd-shared.la
3782 udevlibexec_PROGRAMS += \
3786 src/udev/scsi_id/README
3788 # ------------------------------------------------------------------------------
3790 src/udev/v4l_id/v4l_id.c
3793 libudev-internal.la \
3794 libsystemd-shared.la
3796 udevlibexec_PROGRAMS += \
3799 dist_udevrules_DATA += \
3800 rules/60-persistent-v4l.rules
3802 # ------------------------------------------------------------------------------
3803 accelerometer_SOURCES = \
3804 src/udev/accelerometer/accelerometer.c
3806 accelerometer_LDADD = \
3807 libudev-internal.la \
3808 libsystemd-shared.la
3810 udevlibexec_PROGRAMS += \
3813 dist_udevrules_DATA += \
3814 rules/61-accelerometer.rules
3816 # ------------------------------------------------------------------------------
3823 libgudev_includedir = \
3824 $(includedir)/gudev-1.0/gudev
3826 libgudev_include_HEADERS = \
3828 src/gudev/gudevenums.h \
3829 src/gudev/gudevenumtypes.h \
3830 src/gudev/gudevtypes.h \
3831 src/gudev/gudevclient.h \
3832 src/gudev/gudevdevice.h \
3833 src/gudev/gudevenumerator.h
3835 lib_LTLIBRARIES += libgudev-1.0.la
3837 pkgconfiglib_DATA += \
3838 src/gudev/gudev-1.0.pc
3841 src/gudev/gudev-1.0.pc
3843 libgudev_1_0_la_SOURCES = \
3844 src/gudev/libgudev-1.0.sym \
3845 src/gudev/gudevenums.h \
3846 src/gudev/gudevenumtypes.h \
3847 src/gudev/gudevenumtypes.h\
3848 src/gudev/gudevtypes.h \
3849 src/gudev/gudevclient.h \
3850 src/gudev/gudevclient.c \
3851 src/gudev/gudevdevice.h \
3852 src/gudev/gudevdevice.c \
3853 src/gudev/gudevenumerator.h \
3854 src/gudev/gudevenumerator.c \
3855 src/gudev/gudevprivate.h
3857 nodist_libgudev_1_0_la_SOURCES = \
3858 src/gudev/gudevmarshal.h \
3859 src/gudev/gudevmarshal.c \
3860 src/gudev/gudevenumtypes.h \
3861 src/gudev/gudevenumtypes.c
3864 $(nodist_libgudev_1_0_la_SOURCES)
3866 libgudev_1_0_la_CPPFLAGS = \
3868 -I$(top_builddir)/src\
3869 -I$(top_srcdir)/src\
3870 -I$(top_builddir)/src/gudev \
3871 -I$(top_srcdir)/src/gudev \
3872 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3873 -D_GUDEV_COMPILATION \
3874 -DG_LOG_DOMAIN=\"GUdev\"
3876 libgudev_1_0_la_CFLAGS = \
3878 -fvisibility=default \
3881 libgudev_1_0_la_LIBADD = \
3885 libgudev_1_0_la_LDFLAGS = \
3887 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3890 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3892 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3893 $(AM_V_at)$(MKDIR_P) $(dir $@)
3894 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3896 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3897 $(AM_V_at)$(MKDIR_P) $(dir $@)
3898 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3899 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3901 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3902 $(AM_V_at)$(MKDIR_P) $(dir $@)
3903 $(AM_V_GEN)glib-mkenums --template $^ > $@
3905 if HAVE_INTROSPECTION
3906 -include $(INTROSPECTION_MAKEFILE)
3908 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3910 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3912 src_gudev_GUdev_1_0_gir_CFLAGS = \
3915 -D_GUDEV_COMPILATION \
3916 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3917 -I$(top_srcdir)/src \
3918 -I$(top_builddir)/src \
3919 -I$(top_srcdir)/src/gudev \
3920 -I$(top_builddir)/src/gudev
3922 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3924 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3925 --pkg-export=gudev-1.0 \
3928 src_gudev_GUdev_1_0_gir_FILES = \
3930 src/gudev/gudevtypes.h \
3931 src/gudev/gudevenums.h \
3932 src/gudev/gudevenumtypes.h \
3933 src/gudev/gudevclient.h \
3934 src/gudev/gudevdevice.h \
3935 src/gudev/gudevenumerator.h \
3936 src/gudev/gudevclient.c \
3937 src/gudev/gudevdevice.c \
3938 src/gudev/gudevenumerator.c
3940 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3941 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3943 girdir = $(datadir)/gir-1.0
3945 src/gudev/GUdev-1.0.gir
3947 typelibsdir = $(libdir)/girepository-1.0
3949 src/gudev/GUdev-1.0.typelib
3951 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3952 endif # HAVE_INTROSPECTION
3956 src/gudev/gudev-1.0.pc.in \
3957 src/gudev/gudevmarshal.list \
3958 src/gudev/gudevenumtypes.h.template \
3959 src/gudev/gudevenumtypes.c.template \
3960 src/gudev/gjs-example.js \
3961 src/gudev/seed-example-enum.js \
3962 src/gudev/seed-example.js
3964 # ------------------------------------------------------------------------------
3965 mtd_probe_SOURCES = \
3966 src/udev/mtd_probe/mtd_probe.c \
3967 src/udev/mtd_probe/mtd_probe.h \
3968 src/udev/mtd_probe/probe_smartmedia.c
3970 dist_udevrules_DATA += \
3971 rules/75-probe_mtd.rules
3973 udevlibexec_PROGRAMS += \
3976 # ------------------------------------------------------------------------------
3977 test_id128_SOURCES = \
3978 src/test/test-id128.c
3980 test_id128_LDADD = \
3981 libsystemd-internal.la \
3982 libsystemd-shared.la
3987 # ------------------------------------------------------------------------------
3989 rootlibexec_PROGRAMS += \
3992 systemd_activate_SOURCES = \
3993 src/activate/activate.c
3995 systemd_activate_LDADD = \
3996 libsystemd-label.la \
3997 libsystemd-internal.la \
3998 libsystemd-shared.la
4000 # ------------------------------------------------------------------------------
4001 systemd_journald_SOURCES = \
4002 src/journal/journald.c \
4003 src/journal/journald-server.h
4005 systemd_journald_LDADD = \
4006 libsystemd-journal-core.la \
4007 libsystemd-internal.la \
4008 libsystemd-shared.la
4010 systemd_cat_SOURCES = \
4013 systemd_cat_LDADD = \
4014 libsystemd-journal-core.la
4017 rootlibexec_PROGRAMS += \
4018 systemd-journal-remote
4020 systemd_journal_remote_SOURCES = \
4021 src/journal-remote/journal-remote-parse.h \
4022 src/journal-remote/journal-remote-parse.c \
4023 src/journal-remote/journal-remote-write.h \
4024 src/journal-remote/journal-remote-write.c \
4025 src/journal-remote/journal-remote.h \
4026 src/journal-remote/journal-remote.c
4028 systemd_journal_remote_LDADD = \
4029 libsystemd-internal.la \
4030 libsystemd-journal-core.la
4032 systemd_journal_remote_SOURCES += \
4033 src/journal-remote/microhttpd-util.h \
4034 src/journal-remote/microhttpd-util.c
4036 systemd_journal_remote_CFLAGS = \
4038 $(MICROHTTPD_CFLAGS)
4040 systemd_journal_remote_LDADD += \
4044 dist_sysusers_DATA += \
4045 sysusers.d/systemd-remote.conf
4049 dist_tmpfiles_DATA += \
4050 tmpfiles.d/systemd-remote.conf
4054 systemd_journal_remote_LDADD += \
4057 # systemd-journal-remote make sense mostly with full crypto stack
4058 dist_systemunit_DATA += \
4059 units/systemd-journal-remote.socket
4061 nodist_systemunit_DATA += \
4062 units/systemd-journal-remote.service
4065 units/systemd-journal-remote.service.in
4067 journal-remote-install-hook: journal-install-hook
4068 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4069 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4070 -chmod 755 $(DESTDIR)/var/log/journal/remote
4072 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4076 nodist_pkgsysconf_DATA += \
4077 src/journal-remote/journal-remote.conf
4080 src/journal-remote/journal-remote.conf.in
4083 src/journal-remote/journal-remote.conf
4087 rootlibexec_PROGRAMS += \
4088 systemd-journal-upload
4090 systemd_journal_upload_SOURCES = \
4091 src/journal-remote/journal-upload.h \
4092 src/journal-remote/journal-upload.c \
4093 src/journal-remote/journal-upload-journal.c
4095 systemd_journal_upload_CFLAGS = \
4099 systemd_journal_upload_LDADD = \
4100 libsystemd-internal.la \
4101 libsystemd-journal-internal.la \
4102 libsystemd-shared.la \
4105 nodist_systemunit_DATA += \
4106 units/systemd-journal-upload.service
4109 units/systemd-journal-upload.service.in
4111 nodist_pkgsysconf_DATA += \
4112 src/journal-remote/journal-upload.conf
4115 src/journal-remote/journal-upload.conf.in
4118 src/journal-remote/journal-upload.conf
4121 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4122 journalctl_CFLAGS = \
4125 journalctl_SOURCES = \
4126 src/journal/journalctl.c
4128 journalctl_LDADD = \
4129 libsystemd-journal-internal.la \
4130 libsystemd-internal.la \
4131 libsystemd-logs.la \
4132 libsystemd-shared.la
4135 journalctl_LDADD += \
4140 journalctl_SOURCES += \
4141 src/journal/journal-qrcode.c \
4142 src/journal/journal-qrcode.h
4144 journalctl_CFLAGS += \
4147 journalctl_LDADD += \
4151 test_journal_SOURCES = \
4152 src/journal/test-journal.c
4154 test_journal_LDADD = \
4155 libsystemd-journal-core.la
4157 test_journal_send_SOURCES = \
4158 src/journal/test-journal-send.c
4160 test_journal_send_LDADD = \
4161 libsystemd-journal-core.la
4163 test_journal_syslog_SOURCES = \
4164 src/journal/test-journal-syslog.c
4166 test_journal_syslog_LDADD = \
4167 libsystemd-journal-core.la
4169 test_journal_match_SOURCES = \
4170 src/journal/test-journal-match.c
4172 test_journal_match_LDADD = \
4173 libsystemd-journal-core.la
4175 test_journal_enum_SOURCES = \
4176 src/journal/test-journal-enum.c
4178 test_journal_enum_LDADD = \
4179 libsystemd-journal-core.la
4181 test_journal_stream_SOURCES = \
4182 src/journal/test-journal-stream.c
4184 test_journal_stream_LDADD = \
4185 libsystemd-journal-core.la
4187 test_journal_flush_SOURCES = \
4188 src/journal/test-journal-flush.c
4190 test_journal_flush_LDADD = \
4191 libsystemd-journal-core.la
4193 test_journal_init_SOURCES = \
4194 src/journal/test-journal-init.c
4196 test_journal_init_LDADD = \
4197 libsystemd-journal-core.la
4199 test_journal_verify_SOURCES = \
4200 src/journal/test-journal-verify.c
4202 test_journal_verify_LDADD = \
4203 libsystemd-journal-core.la
4205 test_journal_interleaving_SOURCES = \
4206 src/journal/test-journal-interleaving.c
4208 test_journal_interleaving_LDADD = \
4209 libsystemd-journal-core.la
4211 test_mmap_cache_SOURCES = \
4212 src/journal/test-mmap-cache.c
4214 test_mmap_cache_LDADD = \
4215 libsystemd-journal-core.la
4217 test_catalog_SOURCES = \
4218 src/journal/test-catalog.c
4220 test_catalog_CPPFLAGS = \
4222 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4224 test_catalog_LDADD = \
4225 libsystemd-journal-core.la
4227 test_compress_SOURCES = \
4228 src/journal/test-compress.c
4230 test_compress_LDADD = \
4231 libsystemd-journal-internal.la \
4232 libsystemd-shared.la
4234 test_compress_benchmark_SOURCES = \
4235 src/journal/test-compress-benchmark.c
4237 test_compress_benchmark_LDADD = \
4238 libsystemd-journal-internal.la \
4239 libsystemd-shared.la
4241 libsystemd_journal_core_la_SOURCES = \
4242 src/journal/journald-kmsg.c \
4243 src/journal/journald-kmsg.h \
4244 src/journal/journald-syslog.c \
4245 src/journal/journald-syslog.h \
4246 src/journal/journald-stream.c \
4247 src/journal/journald-stream.h \
4248 src/journal/journald-server.c \
4249 src/journal/journald-server.h \
4250 src/journal/journald-console.c \
4251 src/journal/journald-console.h \
4252 src/journal/journald-wall.c \
4253 src/journal/journald-wall.h \
4254 src/journal/journald-native.c \
4255 src/journal/journald-native.h \
4256 src/journal/journald-audit.c \
4257 src/journal/journald-audit.h \
4258 src/journal/journald-rate-limit.c \
4259 src/journal/journald-rate-limit.h \
4260 src/journal/journal-internal.h
4262 nodist_libsystemd_journal_core_la_SOURCES = \
4263 src/journal/journald-gperf.c
4265 libsystemd_journal_core_la_LIBADD = \
4266 libsystemd-journal-internal.la \
4267 libudev-internal.la \
4268 libsystemd-label.la \
4269 libsystemd-internal.la \
4270 libsystemd-shared.la
4273 libsystemd_journal_core_la_LIBADD += \
4277 noinst_LTLIBRARIES += \
4278 libsystemd-journal-core.la
4280 journal-install-hook:
4281 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4282 -chown 0:0 $(DESTDIR)/var/log/journal
4283 -chmod 755 $(DESTDIR)/var/log/journal
4284 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4285 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4287 journal-uninstall-hook:
4288 -rmdir $(DESTDIR)/var/log/journal/remote
4289 -rmdir $(DESTDIR)/var/log/journal/
4291 INSTALL_EXEC_HOOKS += journal-install-hook
4292 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4294 # ------------------------------------------------------------------------------
4295 # Update catalog on installation. Do not bother if installing
4296 # in DESTDIR, since this is likely for packaging purposes.
4297 catalog-update-hook:
4298 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4300 INSTALL_DATA_HOOKS += \
4303 catalog-remove-hook:
4304 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4306 UNINSTALL_DATA_HOOKS += \
4315 test-journal-syslog \
4316 test-journal-match \
4317 test-journal-stream \
4319 test-journal-verify \
4320 test-journal-interleaving \
4321 test-journal-flush \
4328 test-compress-benchmark
4331 pkginclude_HEADERS += \
4332 src/systemd/sd-journal.h \
4333 src/systemd/sd-messages.h \
4334 src/systemd/_sd-common.h
4336 libsystemd_journal_internal_la_SOURCES = \
4337 src/journal/sd-journal.c \
4338 src/systemd/sd-journal.h \
4339 src/systemd/_sd-common.h \
4340 src/journal/journal-file.c \
4341 src/journal/journal-file.h \
4342 src/journal/journal-vacuum.c \
4343 src/journal/journal-vacuum.h \
4344 src/journal/journal-verify.c \
4345 src/journal/journal-verify.h \
4346 src/journal/lookup3.c \
4347 src/journal/lookup3.h \
4348 src/journal/journal-send.c \
4349 src/journal/journal-def.h \
4350 src/journal/compress.h \
4351 src/journal/catalog.c \
4352 src/journal/catalog.h \
4353 src/journal/mmap-cache.c \
4354 src/journal/mmap-cache.h \
4355 src/journal/compress.c
4357 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4358 libsystemd_journal_internal_la_CFLAGS = \
4361 libsystemd_journal_internal_la_LIBADD = \
4365 libsystemd_journal_internal_la_CFLAGS += \
4368 libsystemd_journal_internal_la_LIBADD += \
4373 libsystemd_journal_internal_la_LIBADD += \
4378 libsystemd_journal_internal_la_SOURCES += \
4379 src/journal/journal-authenticate.c \
4380 src/journal/journal-authenticate.h \
4381 src/journal/fsprg.c \
4384 libsystemd_journal_internal_la_LIBADD += \
4387 # fsprg.c is a drop-in file using void pointer arithmetic
4388 libsystemd_journal_internal_la_CFLAGS += \
4393 noinst_LTLIBRARIES += \
4394 libsystemd-journal-internal.la
4396 rootlibexec_PROGRAMS += \
4399 rootbin_PROGRAMS += \
4405 dist_systemunit_DATA += \
4406 units/systemd-journald.socket \
4407 units/systemd-journald-dev-log.socket \
4408 units/systemd-journald-audit.socket
4410 nodist_systemunit_DATA += \
4411 units/systemd-journald.service \
4412 units/systemd-journal-flush.service \
4413 units/systemd-journal-catalog-update.service
4415 dist_pkgsysconf_DATA += \
4416 src/journal/journald.conf
4418 dist_catalog_DATA = \
4419 catalog/systemd.fr.catalog \
4420 catalog/systemd.it.catalog \
4421 catalog/systemd.pl.catalog \
4422 catalog/systemd.ru.catalog \
4423 catalog/systemd.catalog
4425 SOCKETS_TARGET_WANTS += \
4426 systemd-journald.socket \
4427 systemd-journald-dev-log.socket \
4428 systemd-journald-audit.socket
4430 SYSINIT_TARGET_WANTS += \
4431 systemd-journald.service \
4432 systemd-journal-flush.service \
4433 systemd-journal-catalog-update.service
4436 units/systemd-journald.service.in \
4437 units/systemd-journal-flush.service.in \
4438 units/systemd-journal-catalog-update.service.in \
4439 src/journal/journald-gperf.gperf
4442 src/journal/journald-gperf.c
4444 # ------------------------------------------------------------------------------
4446 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4448 rootlibexec_PROGRAMS += \
4449 systemd-journal-gatewayd
4451 systemd_journal_gatewayd_SOURCES = \
4452 src/journal-remote/journal-gatewayd.c \
4453 src/journal-remote/microhttpd-util.h \
4454 src/journal-remote/microhttpd-util.c
4456 systemd_journal_gatewayd_LDADD = \
4457 libsystemd-logs.la \
4458 libsystemd-journal-internal.la \
4459 libsystemd-internal.la \
4460 libsystemd-shared.la \
4464 systemd_journal_gatewayd_LDADD += \
4468 systemd_journal_gatewayd_CFLAGS = \
4470 $(MICROHTTPD_CFLAGS)
4472 systemd_journal_gatewayd_CPPFLAGS = \
4474 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4476 dist_systemunit_DATA += \
4477 units/systemd-journal-gatewayd.socket
4479 nodist_systemunit_DATA += \
4480 units/systemd-journal-gatewayd.service
4482 dist_gatewayddocumentroot_DATA = \
4483 src/journal-remote/browse.html
4488 units/systemd-journal-gatewayd.service.in
4490 # ------------------------------------------------------------------------------
4492 systemd_socket_proxyd_SOURCES = \
4493 src/socket-proxy/socket-proxyd.c
4495 systemd_socket_proxyd_LDADD = \
4496 libsystemd-logs.la \
4497 libsystemd-internal.la \
4498 libsystemd-journal-internal.la \
4499 libsystemd-shared.la \
4500 libsystemd-resolve.la
4502 # ------------------------------------------------------------------------------
4504 systemd_coredump_SOURCES = \
4505 src/journal/coredump.c \
4506 src/journal/coredump-vacuum.c \
4507 src/journal/coredump-vacuum.h
4509 systemd_coredump_LDADD = \
4510 libsystemd-journal-internal.la \
4511 libsystemd-label.la \
4512 libsystemd-internal.la \
4513 libsystemd-shared.la
4516 systemd_coredump_SOURCES += \
4517 src/journal/stacktrace.c \
4518 src/journal/stacktrace.h
4520 systemd_coredump_LDADD += \
4524 rootlibexec_PROGRAMS += \
4527 dist_pkgsysconf_DATA += \
4528 src/journal/coredump.conf
4531 systemd_coredump_LDADD += \
4535 coredumpctl_SOURCES = \
4536 src/journal/coredumpctl.c
4538 coredumpctl_LDADD = \
4539 libsystemd-journal-internal.la \
4540 libsystemd-internal.la \
4541 libsystemd-shared.la
4547 test-coredump-vacuum
4549 test_coredump_vacuum_SOURCES = \
4550 src/journal/test-coredump-vacuum.c \
4551 src/journal/coredump-vacuum.c \
4552 src/journal/coredump-vacuum.h
4554 test_coredump_vacuum_LDADD = \
4555 libsystemd-internal.la \
4556 libsystemd-shared.la
4558 dist_bashcompletion_DATA += \
4559 shell-completion/bash/coredumpctl
4561 dist_zshcompletion_DATA += \
4562 shell-completion/zsh/_coredumpctl
4565 sysctl.d/50-coredump.conf
4568 sysctl.d/50-coredump.conf
4572 sysctl.d/50-coredump.conf.in
4574 # ------------------------------------------------------------------------------
4576 systemd_binfmt_SOURCES = \
4579 systemd_binfmt_LDADD = \
4580 libsystemd-shared.la
4582 rootlibexec_PROGRAMS += \
4585 dist_systemunit_DATA += \
4586 units/proc-sys-fs-binfmt_misc.automount \
4587 units/proc-sys-fs-binfmt_misc.mount
4589 nodist_systemunit_DATA += \
4590 units/systemd-binfmt.service
4593 $(prefix)/lib/binfmt.d \
4594 $(sysconfdir)/binfmt.d
4596 SYSINIT_TARGET_WANTS += \
4597 systemd-binfmt.service \
4598 proc-sys-fs-binfmt_misc.automount
4603 units/systemd-binfmt.service.in
4605 # ------------------------------------------------------------------------------
4607 systemd_vconsole_setup_SOURCES = \
4608 src/vconsole/vconsole-setup.c
4610 systemd_vconsole_setup_LDADD = \
4611 libsystemd-shared.la
4613 rootlibexec_PROGRAMS += \
4614 systemd-vconsole-setup
4616 nodist_systemunit_DATA += \
4617 units/systemd-vconsole-setup.service
4619 nodist_udevrules_DATA += \
4620 src/vconsole/90-vconsole.rules
4622 SYSINIT_TARGET_WANTS += \
4623 systemd-vconsole-setup.service
4626 src/vconsole/90-vconsole.rules
4630 src/vconsole/90-vconsole.rules.in \
4631 units/systemd-vconsole-setup.service.in
4633 # ------------------------------------------------------------------------------
4635 systemd_bootchart_SOURCES = \
4636 src/bootchart/bootchart.c \
4637 src/bootchart/bootchart.h \
4638 src/bootchart/store.c \
4639 src/bootchart/store.h \
4640 src/bootchart/svg.c \
4643 systemd_bootchart_LDADD = \
4644 libsystemd-journal-internal.la \
4645 libsystemd-shared.la
4647 rootlibexec_PROGRAMS += \
4650 dist_pkgsysconf_DATA += \
4651 src/bootchart/bootchart.conf
4653 nodist_systemunit_DATA += \
4654 units/systemd-bootchart.service
4657 units/systemd-bootchart.service.in
4660 units/systemd-bootchart.service
4663 # ------------------------------------------------------------------------------
4664 if ENABLE_QUOTACHECK
4665 rootlibexec_PROGRAMS += \
4668 nodist_systemunit_DATA += \
4669 units/systemd-quotacheck.service
4671 systemd_quotacheck_SOURCES = \
4672 src/quotacheck/quotacheck.c
4674 systemd_quotacheck_LDADD = \
4675 libsystemd-shared.la
4679 units/systemd-quotacheck.service.in
4681 nodist_systemunit_DATA += \
4682 units/quotaon.service
4684 # ------------------------------------------------------------------------------
4685 if ENABLE_RANDOMSEED
4686 rootlibexec_PROGRAMS += \
4689 nodist_systemunit_DATA += \
4690 units/systemd-random-seed.service
4692 systemd_random_seed_SOURCES = \
4693 src/random-seed/random-seed.c
4695 systemd_random_seed_LDADD = \
4696 libsystemd-label.la \
4697 libsystemd-shared.la
4699 SYSINIT_TARGET_WANTS += \
4700 systemd-random-seed.service
4705 units/systemd-random-seed.service.in
4707 # ------------------------------------------------------------------------------
4709 rootlibexec_PROGRAMS += \
4712 nodist_systemunit_DATA += \
4713 units/systemd-backlight@.service
4715 systemd_backlight_SOURCES = \
4716 src/backlight/backlight.c
4718 systemd_backlight_LDADD = \
4719 libsystemd-label.la \
4720 libudev-internal.la \
4721 libsystemd-shared.la
4725 units/systemd-backlight@.service.in
4727 # ------------------------------------------------------------------------------
4729 rootlibexec_PROGRAMS += \
4732 nodist_systemunit_DATA += \
4733 units/systemd-rfkill@.service
4735 systemd_rfkill_SOURCES = \
4738 systemd_rfkill_LDADD = \
4739 libsystemd-label.la \
4740 libudev-internal.la \
4741 libsystemd-shared.la
4745 units/systemd-rfkill@.service.in
4747 # ------------------------------------------------------------------------------
4748 if HAVE_LIBCRYPTSETUP
4749 rootlibexec_PROGRAMS += \
4752 systemgenerator_PROGRAMS += \
4753 systemd-cryptsetup-generator
4755 dist_systemunit_DATA += \
4756 units/cryptsetup.target \
4757 units/cryptsetup-pre.target
4759 systemd_cryptsetup_SOURCES = \
4760 src/cryptsetup/cryptsetup.c
4762 systemd_cryptsetup_CFLAGS = \
4764 $(LIBCRYPTSETUP_CFLAGS)
4766 systemd_cryptsetup_LDADD = \
4767 libsystemd-label.la \
4768 libudev-internal.la \
4769 libsystemd-shared.la \
4770 $(LIBCRYPTSETUP_LIBS)
4772 systemd_cryptsetup_generator_SOURCES = \
4773 src/cryptsetup/cryptsetup-generator.c
4775 systemd_cryptsetup_generator_LDADD = \
4776 libsystemd-label.la \
4777 libsystemd-shared.la
4779 SYSINIT_TARGET_WANTS += \
4784 # ------------------------------------------------------------------------------
4786 systemd_hostnamed_SOURCES = \
4787 src/hostname/hostnamed.c
4789 systemd_hostnamed_LDADD = \
4790 libsystemd-label.la \
4791 libsystemd-internal.la \
4792 libsystemd-shared.la
4794 rootlibexec_PROGRAMS += \
4797 nodist_systemunit_DATA += \
4798 units/systemd-hostnamed.service
4800 dist_systemunit_DATA_busnames += \
4801 units/org.freedesktop.hostname1.busname
4803 dist_dbuspolicy_DATA += \
4804 src/hostname/org.freedesktop.hostname1.conf
4806 dist_dbussystemservice_DATA += \
4807 src/hostname/org.freedesktop.hostname1.service
4809 polkitpolicy_files += \
4810 src/hostname/org.freedesktop.hostname1.policy
4812 SYSTEM_UNIT_ALIASES += \
4813 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4815 BUSNAMES_TARGET_WANTS += \
4816 org.freedesktop.hostname1.busname
4818 hostnamectl_SOURCES = \
4819 src/hostname/hostnamectl.c
4821 hostnamectl_LDADD = \
4822 libsystemd-internal.la \
4823 libsystemd-shared.la
4828 dist_bashcompletion_DATA += \
4829 shell-completion/bash/hostnamectl
4831 dist_zshcompletion_DATA += \
4832 shell-completion/zsh/_hostnamectl
4836 polkitpolicy_in_files += \
4837 src/hostname/org.freedesktop.hostname1.policy.in
4840 units/systemd-hostnamed.service.in
4842 # ------------------------------------------------------------------------------
4843 dist_systemunit_DATA_busnames += \
4844 units/org.freedesktop.systemd1.busname
4846 BUSNAMES_TARGET_WANTS += \
4847 org.freedesktop.systemd1.busname
4849 # ------------------------------------------------------------------------------
4851 systemd_localed_SOURCES = \
4852 src/locale/localed.c
4854 systemd_localed_LDADD = \
4855 libsystemd-label.la \
4856 libsystemd-internal.la \
4857 libsystemd-shared.la \
4860 systemd_localed_CFLAGS = \
4864 nodist_systemunit_DATA += \
4865 units/systemd-localed.service
4867 dist_systemunit_DATA_busnames += \
4868 units/org.freedesktop.locale1.busname
4870 rootlibexec_PROGRAMS += \
4873 dist_dbuspolicy_DATA += \
4874 src/locale/org.freedesktop.locale1.conf
4876 dist_dbussystemservice_DATA += \
4877 src/locale/org.freedesktop.locale1.service
4879 polkitpolicy_files += \
4880 src/locale/org.freedesktop.locale1.policy
4882 SYSTEM_UNIT_ALIASES += \
4883 systemd-localed.service dbus-org.freedesktop.locale1.service
4885 BUSNAMES_TARGET_WANTS += \
4886 org.freedesktop.locale1.busname
4888 dist_pkgdata_DATA += \
4889 src/locale/kbd-model-map
4891 dist_noinst_SCRIPT = \
4892 src/locale/generate-kbd-model-map
4894 localectl_SOURCES = \
4895 src/locale/localectl.c
4898 libsystemd-internal.la \
4899 libsystemd-shared.la
4904 dist_bashcompletion_DATA += \
4905 shell-completion/bash/localectl
4907 dist_zshcompletion_DATA += \
4908 shell-completion/zsh/_localectl
4912 .PHONY: update-kbd-model-map
4914 polkitpolicy_in_files += \
4915 src/locale/org.freedesktop.locale1.policy.in
4918 units/systemd-localed.service.in
4920 # ------------------------------------------------------------------------------
4922 systemd_timedated_SOURCES = \
4923 src/timedate/timedated.c
4925 systemd_timedated_LDADD = \
4926 libsystemd-label.la \
4927 libsystemd-internal.la \
4928 libsystemd-shared.la
4930 rootlibexec_PROGRAMS += \
4933 dist_dbussystemservice_DATA += \
4934 src/timedate/org.freedesktop.timedate1.service
4936 dist_dbuspolicy_DATA += \
4937 src/timedate/org.freedesktop.timedate1.conf
4939 nodist_systemunit_DATA += \
4940 units/systemd-timedated.service
4942 dist_systemunit_DATA_busnames += \
4943 units/org.freedesktop.timedate1.busname
4945 polkitpolicy_files += \
4946 src/timedate/org.freedesktop.timedate1.policy
4948 SYSTEM_UNIT_ALIASES += \
4949 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4951 BUSNAMES_TARGET_WANTS += \
4952 org.freedesktop.timedate1.busname
4954 timedatectl_SOURCES = \
4955 src/timedate/timedatectl.c
4957 timedatectl_LDADD = \
4958 libsystemd-internal.la \
4959 libsystemd-shared.la
4964 dist_bashcompletion_DATA += \
4965 shell-completion/bash/timedatectl
4967 dist_zshcompletion_DATA += \
4968 shell-completion/zsh/_timedatectl
4971 polkitpolicy_in_files += \
4972 src/timedate/org.freedesktop.timedate1.policy.in
4975 units/systemd-timedated.service.in
4977 # ------------------------------------------------------------------------------
4979 systemd_timesyncd_SOURCES = \
4980 src/timesync/timesyncd.c \
4981 src/timesync/timesyncd-manager.c \
4982 src/timesync/timesyncd-manager.h \
4983 src/timesync/timesyncd-conf.c \
4984 src/timesync/timesyncd-conf.h \
4985 src/timesync/timesyncd-server.c \
4986 src/timesync/timesyncd-server.h
4988 nodist_systemd_timesyncd_SOURCES = \
4989 src/timesync/timesyncd-gperf.c
4992 src/timesync/timesyncd-gperf.gperf
4995 src/timesync/timesyncd-gperf.c
4997 systemd_timesyncd_LDADD = \
4998 libsystemd-resolve.la \
4999 libsystemd-network.la \
5000 libsystemd-label.la \
5001 libsystemd-internal.la \
5002 libsystemd-shared.la
5004 rootlibexec_PROGRAMS += \
5007 nodist_systemunit_DATA += \
5008 units/systemd-timesyncd.service
5010 GENERAL_ALIASES += \
5011 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5014 units/systemd-timesyncd.service.in
5016 nodist_pkgsysconf_DATA += \
5017 src/timesync/timesyncd.conf
5020 src/timesync/timesyncd.conf.in
5023 src/timesync/timesyncd.conf
5026 # ------------------------------------------------------------------------------
5028 libnss_myhostname_la_SOURCES = \
5029 src/nss-myhostname/nss-myhostname.sym \
5030 src/nss-myhostname/nss-myhostname.c
5032 libnss_myhostname_la_LDFLAGS = \
5039 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5041 libnss_myhostname_la_LIBADD = \
5042 libsystemd-shared.la \
5043 libsystemd-internal.la
5045 lib_LTLIBRARIES += \
5046 libnss_myhostname.la
5049 # ------------------------------------------------------------------------------
5051 systemd_machined_SOURCES = \
5052 src/machine/machined.c \
5053 src/machine/machined.h
5055 systemd_machined_LDADD = \
5056 libsystemd-machine-core.la
5058 rootlibexec_PROGRAMS += \
5061 libsystemd_machine_core_la_SOURCES = \
5062 src/machine/machine.c \
5063 src/machine/machine.h \
5064 src/machine/machined-dbus.c \
5065 src/machine/machine-dbus.c \
5066 src/machine/machine-dbus.h \
5067 src/machine/image-dbus.c \
5068 src/machine/image-dbus.h
5070 libsystemd_machine_core_la_LIBADD = \
5071 libsystemd-label.la \
5072 libsystemd-internal.la \
5073 libudev-internal.la \
5074 libsystemd-shared.la
5076 noinst_LTLIBRARIES += \
5077 libsystemd-machine-core.la
5079 machinectl_SOURCES = \
5080 src/machine/machinectl.c
5082 machinectl_LDADD = \
5083 libsystemd-internal.la \
5084 libsystemd-logs.la \
5085 libsystemd-journal-internal.la \
5086 libsystemd-shared.la
5088 rootbin_PROGRAMS += \
5091 dist_bashcompletion_DATA += \
5092 shell-completion/bash/machinectl
5094 test_machine_tables_SOURCES = \
5095 src/machine/test-machine-tables.c
5097 test_machine_tables_LDADD = \
5098 libsystemd-machine-core.la
5103 nodist_systemunit_DATA += \
5104 units/systemd-machined.service
5106 dist_systemunit_DATA += \
5109 dist_systemunit_DATA_busnames += \
5110 units/org.freedesktop.machine1.busname
5112 dist_dbussystemservice_DATA += \
5113 src/machine/org.freedesktop.machine1.service
5115 dist_dbuspolicy_DATA += \
5116 src/machine/org.freedesktop.machine1.conf
5118 polkitpolicy_files += \
5119 src/machine/org.freedesktop.machine1.policy
5121 polkitpolicy_in_files += \
5122 src/machine/org.freedesktop.machine1.policy.in
5124 dist_zshcompletion_DATA += \
5125 shell-completion/zsh/_machinectl \
5126 shell-completion/zsh/_sd_machines
5128 SYSTEM_UNIT_ALIASES += \
5129 systemd-machined.service dbus-org.freedesktop.machine1.service
5131 BUSNAMES_TARGET_WANTS += \
5132 org.freedesktop.machine1.busname
5135 units/systemd-machined.service.in
5137 libnss_mymachines_la_SOURCES = \
5138 src/nss-mymachines/nss-mymachines.sym \
5139 src/nss-mymachines/nss-mymachines.c
5141 libnss_mymachines_la_LDFLAGS = \
5148 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5150 libnss_mymachines_la_LIBADD = \
5151 libsystemd-shared.la \
5152 libsystemd-internal.la
5154 lib_LTLIBRARIES += \
5155 libnss_mymachines.la
5162 systemd_import_SOURCES = \
5163 src/import/import.c \
5164 src/import/import-gpt.c \
5165 src/import/import-gpt.h \
5166 src/import/import-dkr.c \
5167 src/import/import-dkr.h \
5168 src/import/curl-util.c \
5169 src/import/curl-util.h \
5170 src/import/aufs-util.c \
5171 src/import/aufs-util.h
5173 systemd_import_CFLAGS = \
5177 systemd_import_LDADD = \
5178 libsystemd-internal.la \
5179 libsystemd-label.la \
5180 libsystemd-shared.la \
5186 # ------------------------------------------------------------------------------
5188 systemd_resolved_SOURCES = \
5189 src/resolve/resolved.c \
5190 src/resolve/resolved-manager.c \
5191 src/resolve/resolved-manager.h \
5192 src/resolve/resolved-conf.c \
5193 src/resolve/resolved-conf.h \
5194 src/resolve/resolved-bus.c \
5195 src/resolve/resolved-bus.h \
5196 src/resolve/resolved-link.h \
5197 src/resolve/resolved-link.c \
5198 src/resolve/resolved-def.h \
5199 src/resolve/resolved-dns-domain.h \
5200 src/resolve/resolved-dns-domain.c \
5201 src/resolve/resolved-dns-rr.h \
5202 src/resolve/resolved-dns-rr.c \
5203 src/resolve/resolved-dns-question.h \
5204 src/resolve/resolved-dns-question.c \
5205 src/resolve/resolved-dns-answer.h \
5206 src/resolve/resolved-dns-answer.c \
5207 src/resolve/resolved-dns-packet.h \
5208 src/resolve/resolved-dns-packet.c \
5209 src/resolve/resolved-dns-query.h \
5210 src/resolve/resolved-dns-query.c \
5211 src/resolve/resolved-dns-transaction.h \
5212 src/resolve/resolved-dns-transaction.c \
5213 src/resolve/resolved-dns-scope.h \
5214 src/resolve/resolved-dns-scope.c \
5215 src/resolve/resolved-dns-server.h \
5216 src/resolve/resolved-dns-server.c \
5217 src/resolve/resolved-dns-cache.h \
5218 src/resolve/resolved-dns-cache.c \
5219 src/resolve/resolved-dns-zone.h \
5220 src/resolve/resolved-dns-zone.c \
5221 src/resolve/resolved-dns-stream.h \
5222 src/resolve/resolved-dns-stream.c \
5223 src/resolve/dns-type.c \
5224 src/resolve/dns-type.h \
5225 src/resolve/dns_type-from-name.h \
5226 src/resolve/dns_type-to-name.h
5228 nodist_systemd_resolved_SOURCES = \
5229 src/resolve/resolved-gperf.c
5232 src/resolve/resolved-gperf.gperf \
5233 src/resolve/dns_type-from-name.gperf
5236 src/resolve/resolved-gperf.c
5238 systemd_resolved_LDADD = \
5239 libsystemd-network.la \
5240 libsystemd-label.la \
5241 libsystemd-internal.la \
5242 libsystemd-shared.la \
5245 rootlibexec_PROGRAMS += \
5248 nodist_systemunit_DATA += \
5249 units/systemd-resolved.service
5251 dist_systemunit_DATA_busnames += \
5252 units/org.freedesktop.resolve1.busname
5254 dist_dbuspolicy_DATA += \
5255 src/resolve/org.freedesktop.resolve1.conf
5257 dist_dbussystemservice_DATA += \
5258 src/resolve/org.freedesktop.resolve1.service
5261 units/systemd-resolved.service.in
5263 SYSTEM_UNIT_ALIASES += \
5264 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5266 BUSNAMES_TARGET_WANTS += \
5267 org.freedesktop.resolve1.busname
5269 GENERAL_ALIASES += \
5270 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5272 nodist_pkgsysconf_DATA += \
5273 src/resolve/resolved.conf
5276 src/resolve/resolved.conf.in
5279 src/resolve/resolved.conf
5284 test_dns_domain_SOURCES = \
5285 src/resolve/resolved-dns-domain.h \
5286 src/resolve/resolved-dns-domain.c \
5287 src/resolve/test-dns-domain.c
5289 test_dns_domain_LDADD = \
5290 libsystemd-network.la \
5291 libsystemd-label.la \
5292 libsystemd-internal.la \
5293 libsystemd-shared.la \
5296 libnss_resolve_la_SOURCES = \
5297 src/nss-resolve/nss-resolve.sym \
5298 src/nss-resolve/nss-resolve.c
5300 libnss_resolve_la_LDFLAGS = \
5307 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5309 libnss_resolve_la_LIBADD = \
5310 libsystemd-internal.la \
5311 libsystemd-shared.la
5313 lib_LTLIBRARIES += \
5316 systemd_resolve_host_SOURCES = \
5317 src/resolve-host/resolve-host.c \
5318 src/resolve/resolved-dns-packet.c \
5319 src/resolve/resolved-dns-packet.h \
5320 src/resolve/resolved-dns-rr.c \
5321 src/resolve/resolved-dns-rr.h \
5322 src/resolve/resolved-dns-answer.c \
5323 src/resolve/resolved-dns-answer.h \
5324 src/resolve/resolved-dns-question.c \
5325 src/resolve/resolved-dns-question.h \
5326 src/resolve/resolved-dns-domain.c \
5327 src/resolve/resolved-dns-domain.h \
5328 src/resolve/dns-type.c \
5329 src/resolve/dns-type.h \
5330 src/resolve/dns_type-from-name.h \
5331 src/resolve/dns_type-to-name.h
5333 systemd_resolve_host_LDADD = \
5334 libsystemd-internal.la \
5335 libsystemd-shared.la \
5338 rootlibexec_PROGRAMS += \
5339 systemd-resolve-host
5343 # ------------------------------------------------------------------------------
5345 rootlibexec_PROGRAMS += \
5348 systemd_networkd_SOURCES = \
5349 src/network/networkd.c
5351 systemd_networkd_LDADD = \
5352 libsystemd-networkd-core.la
5354 noinst_LTLIBRARIES += \
5355 libsystemd-networkd-core.la
5357 libsystemd_networkd_core_la_CFLAGS = \
5360 libsystemd_networkd_core_la_SOURCES = \
5361 src/libsystemd-network/network-internal.h \
5362 src/network/networkd.h \
5363 src/network/networkd-link.h \
5364 src/network/networkd-netdev.h \
5365 src/network/networkd-netdev-tunnel.h \
5366 src/network/networkd-netdev-veth.h \
5367 src/network/networkd-netdev-vxlan.h \
5368 src/network/networkd-netdev-vlan.h \
5369 src/network/networkd-netdev-macvlan.h \
5370 src/network/networkd-netdev-dummy.h \
5371 src/network/networkd-netdev-tuntap.h \
5372 src/network/networkd-netdev-bond.h \
5373 src/network/networkd-netdev-bridge.h \
5374 src/network/networkd-netdev.c \
5375 src/network/networkd-netdev-tunnel.c \
5376 src/network/networkd-netdev-veth.c \
5377 src/network/networkd-netdev-vxlan.c \
5378 src/network/networkd-netdev-vlan.c \
5379 src/network/networkd-netdev-macvlan.c \
5380 src/network/networkd-netdev-dummy.c \
5381 src/network/networkd-netdev-tuntap.c \
5382 src/network/networkd-netdev-bond.c \
5383 src/network/networkd-netdev-bridge.c \
5384 src/network/networkd-link.c \
5385 src/network/networkd-ipv4ll.c \
5386 src/network/networkd-dhcp4.c \
5387 src/network/networkd-dhcp6.c \
5388 src/network/networkd-network.c \
5389 src/network/networkd-address.c \
5390 src/network/networkd-route.c \
5391 src/network/networkd-manager.c \
5392 src/network/networkd-fdb.c \
5393 src/network/networkd-address-pool.c
5395 nodist_libsystemd_networkd_core_la_SOURCES = \
5396 src/network/networkd-network-gperf.c \
5397 src/network/networkd-netdev-gperf.c
5399 libsystemd_networkd_core_la_LIBADD = \
5400 libudev-internal.la \
5401 libsystemd-internal.la \
5402 libsystemd-network.la \
5403 libsystemd-label.la \
5404 libsystemd-shared.la
5406 rootlibexec_PROGRAMS += \
5407 systemd-networkd-wait-online
5409 systemd_networkd_wait_online_CFLAGS = \
5412 systemd_networkd_wait_online_SOURCES = \
5413 src/libsystemd-network/network-internal.h \
5414 src/network/networkd-wait-online.h \
5415 src/network/networkd-wait-online-link.h \
5416 src/network/networkd-wait-online.c \
5417 src/network/networkd-wait-online-manager.c \
5418 src/network/networkd-wait-online-link.c
5420 systemd_networkd_wait_online_LDADD = \
5421 libsystemd-network.la \
5422 libudev-internal.la \
5423 libsystemd-internal.la \
5424 libsystemd-shared.la
5426 rootbin_PROGRAMS += \
5429 networkctl_SOURCES = \
5430 src/network/networkctl.c
5432 networkctl_LDADD = \
5433 libsystemd-internal.la \
5434 libudev-internal.la \
5435 libsystemd-shared.la \
5436 libsystemd-network.la
5438 test_network_SOURCES = \
5439 src/network/test-network.c
5441 test_network_LDADD = \
5442 libsystemd-networkd-core.la
5444 test_network_tables_SOURCES = \
5445 src/network/test-network-tables.c \
5446 src/shared/test-tables.h
5448 test_network_tables_LDADD = \
5449 libsystemd-networkd-core.la \
5456 nodist_systemunit_DATA += \
5457 units/systemd-networkd.service \
5458 units/systemd-networkd-wait-online.service
5460 GENERAL_ALIASES += \
5461 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5462 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5465 src/network/networkd-network-gperf.gperf \
5466 src/network/networkd-netdev-gperf.gperf \
5467 units/systemd-networkd.service.in \
5468 units/systemd-networkd-wait-online.service.in
5471 src/network/networkd-network-gperf.c \
5472 src/network/networkd-netdev-gperf.c
5475 # ------------------------------------------------------------------------------
5477 systemd_logind_SOURCES = \
5478 src/login/logind.c \
5481 nodist_systemd_logind_SOURCES = \
5482 src/login/logind-gperf.c
5484 systemd_logind_LDADD = \
5485 libsystemd-logind-core.la
5487 libsystemd_logind_core_la_SOURCES = \
5488 src/login/logind-core.c \
5489 src/login/logind-device.c \
5490 src/login/logind-device.h \
5491 src/login/logind-button.c \
5492 src/login/logind-button.h \
5493 src/login/logind-action.c \
5494 src/login/logind-action.h \
5495 src/login/logind-seat.c \
5496 src/login/logind-seat.h \
5497 src/login/logind-session.c \
5498 src/login/logind-session.h \
5499 src/login/logind-session-device.c \
5500 src/login/logind-session-device.h \
5501 src/login/logind-user.c \
5502 src/login/logind-user.h \
5503 src/login/logind-inhibit.c \
5504 src/login/logind-inhibit.h \
5505 src/login/logind-dbus.c \
5506 src/login/logind-session-dbus.c \
5507 src/login/logind-seat-dbus.c \
5508 src/login/logind-user-dbus.c \
5509 src/login/logind-acl.h
5511 libsystemd_logind_core_la_LIBADD = \
5512 libsystemd-label.la \
5513 libsystemd-internal.la \
5514 libudev-internal.la \
5515 libsystemd-shared.la
5518 libsystemd_logind_core_la_SOURCES += \
5519 src/login/logind-acl.c
5521 libsystemd_logind_core_la_LIBADD += \
5525 noinst_LTLIBRARIES += \
5526 libsystemd-logind-core.la
5528 systemd_user_sessions_SOURCES = \
5529 src/login/user-sessions.c
5531 systemd_user_sessions_LDADD = \
5532 libsystemd-shared.la
5534 rootlibexec_PROGRAMS += \
5536 systemd-user-sessions
5538 loginctl_SOURCES = \
5539 src/login/loginctl.c \
5540 src/login/sysfs-show.h \
5541 src/login/sysfs-show.c
5544 libsystemd-internal.la \
5545 libsystemd-logs.la \
5546 libsystemd-journal-internal.la \
5547 libudev-internal.la \
5548 libsystemd-shared.la
5550 rootbin_PROGRAMS += \
5553 dist_bashcompletion_DATA += \
5554 shell-completion/bash/loginctl
5556 dist_zshcompletion_DATA += \
5557 shell-completion/zsh/_loginctl \
5558 shell-completion/zsh/_systemd-inhibit
5560 systemd_inhibit_SOURCES = \
5563 systemd_inhibit_LDADD = \
5564 libsystemd-internal.la \
5565 libsystemd-shared.la
5567 rootbin_PROGRAMS += \
5570 test_login_SOURCES = \
5571 src/libsystemd/sd-login/test-login.c
5573 test_login_LDADD = \
5574 libsystemd-internal.la \
5575 libsystemd-shared.la
5577 test_login_shared_SOURCES = \
5578 src/login/test-login-shared.c
5580 test_login_shared_LDADD = \
5581 libsystemd-internal.la \
5582 libsystemd-shared.la
5584 test_inhibit_SOURCES = \
5585 src/login/test-inhibit.c
5587 test_inhibit_LDADD = \
5588 libsystemd-internal.la \
5589 libsystemd-shared.la
5591 test_login_tables_SOURCES = \
5592 src/login/test-login-tables.c
5594 test_login_tables_LDADD = \
5595 libsystemd-logind-core.la
5606 pam_systemd_la_SOURCES = \
5607 src/login/pam_systemd.sym \
5608 src/login/pam_systemd.c
5610 pam_systemd_la_CFLAGS = \
5615 pam_systemd_la_LDFLAGS = \
5621 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5623 pam_systemd_la_LIBADD = \
5624 libsystemd-internal.la \
5625 libsystemd-shared.la \
5628 pamlib_LTLIBRARIES = \
5631 dist_pamconf_DATA = \
5632 src/login/systemd-user
5635 nodist_systemunit_DATA += \
5636 units/systemd-logind.service \
5637 units/systemd-user-sessions.service
5639 dist_systemunit_DATA += \
5642 dist_systemunit_DATA_busnames += \
5643 units/org.freedesktop.login1.busname
5645 dist_dbussystemservice_DATA += \
5646 src/login/org.freedesktop.login1.service
5648 dist_dbuspolicy_DATA += \
5649 src/login/org.freedesktop.login1.conf
5651 dist_pkgsysconf_DATA += \
5652 src/login/logind.conf
5654 polkitpolicy_files += \
5655 src/login/org.freedesktop.login1.policy
5660 MULTI_USER_TARGET_WANTS += \
5661 systemd-logind.service \
5662 systemd-user-sessions.service
5664 SYSTEM_UNIT_ALIASES += \
5665 systemd-logind.service dbus-org.freedesktop.login1.service
5667 BUSNAMES_TARGET_WANTS += \
5668 org.freedesktop.login1.busname
5670 dist_udevrules_DATA += \
5671 src/login/70-uaccess.rules \
5672 src/login/70-power-switch.rules
5674 nodist_udevrules_DATA += \
5675 src/login/71-seat.rules \
5676 src/login/73-seat-late.rules
5679 src/login/logind-gperf.c \
5680 src/login/71-seat.rules \
5681 src/login/73-seat-late.rules
5684 polkitpolicy_in_files += \
5685 src/login/org.freedesktop.login1.policy.in
5688 src/login/logind-gperf.gperf \
5689 src/login/71-seat.rules.in \
5690 src/login/73-seat-late.rules.in \
5691 units/systemd-logind.service.in \
5692 units/systemd-user-sessions.service.in
5694 # ------------------------------------------------------------------------------
5695 if HAVE_PYTHON_DEVEL
5696 pkgpyexec_LTLIBRARIES = \
5703 _journal_la_SOURCES = \
5704 src/python-systemd/_journal.c
5706 _journal_la_CFLAGS = \
5708 -fvisibility=default \
5709 $(PYTHON_DEVEL_CFLAGS)
5711 _journal_la_LDFLAGS = \
5717 _journal_la_LIBADD = \
5718 $(PYTHON_DEVEL_LIBS) \
5721 id128_la_SOURCES = \
5722 src/python-systemd/id128.c \
5723 src/python-systemd/pyutil.c \
5724 src/python-systemd/pyutil.h
5726 nodist_id128_la_SOURCES = \
5727 src/python-systemd/id128-constants.h
5731 -fvisibility=default \
5732 $(PYTHON_DEVEL_CFLAGS) \
5733 -I$(top_builddir)/src/python-systemd
5735 id128_la_LDFLAGS = \
5742 $(PYTHON_DEVEL_LIBS) \
5743 libsystemd-shared.la \
5746 _daemon_la_SOURCES = \
5747 src/python-systemd/_daemon.c \
5748 src/python-systemd/pyutil.c \
5749 src/python-systemd/pyutil.h
5751 _daemon_la_CFLAGS = \
5753 -fvisibility=default \
5754 $(PYTHON_DEVEL_CFLAGS) \
5755 -I$(top_builddir)/src/python-systemd
5757 _daemon_la_LDFLAGS = \
5763 _daemon_la_LIBADD = \
5764 $(PYTHON_DEVEL_LIBS) \
5765 libsystemd-shared.la \
5768 _reader_la_SOURCES = \
5769 src/python-systemd/_reader.c \
5770 src/python-systemd/pyutil.c \
5771 src/python-systemd/pyutil.h
5773 _reader_la_CFLAGS = \
5775 -fvisibility=default \
5776 $(PYTHON_DEVEL_CFLAGS)
5778 _reader_la_LDFLAGS = \
5784 _reader_la_LIBADD = \
5785 $(PYTHON_DEVEL_LIBS) \
5786 libsystemd-shared.la \
5789 login_la_SOURCES = \
5790 src/python-systemd/login.c \
5791 src/python-systemd/pyutil.c \
5792 src/python-systemd/pyutil.h
5796 -fvisibility=default \
5797 $(PYTHON_DEVEL_CFLAGS)
5799 login_la_LDFLAGS = \
5806 $(PYTHON_DEVEL_LIBS) \
5807 libsystemd-shared.la \
5810 dist_pkgpyexec_PYTHON = \
5811 src/python-systemd/journal.py \
5812 src/python-systemd/daemon.py \
5813 src/python-systemd/__init__.py
5815 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5816 $(AM_V_at)$(MKDIR_P) $(dir $@)
5817 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5820 src/python-systemd/id128-constants.h
5822 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5824 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5825 $(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/
5826 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5829 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5830 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5833 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5834 $(MAKE) DESTDIR="$$dir" install && \
5835 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5840 CLEAN_LOCAL_HOOKS += clean-sphinx
5842 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5845 -rm -rf docs/html/python-systemd/
5847 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5849 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5850 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5852 # ------------------------------------------------------------------------------
5853 if ENABLE_COMPAT_LIBS
5855 src/compat-libs/linkwarning.h
5857 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5858 $(AM_V_at)$(MKDIR_P) $(dir $@)
5859 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5862 libsystemd-journal.c \
5863 libsystemd-login.c \
5864 libsystemd-id128.c \
5867 libsystemd_journal_la_SOURCES = \
5868 libsystemd-journal.c \
5869 src/compat-libs/libsystemd-journal.sym
5871 libsystemd_journal_la_CPPFLAGS = \
5873 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5875 libsystemd_journal_la_LDFLAGS = \
5877 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5878 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5880 libsystemd_journal_la_LIBADD = \
5881 libsystemd-journal-internal.la \
5882 libsystemd-internal.la \
5883 libsystemd-shared.la
5885 libsystemd_login_la_SOURCES = \
5886 libsystemd-login.c \
5887 src/compat-libs/libsystemd-login.sym
5889 libsystemd_login_la_CPPFLAGS = \
5891 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5893 libsystemd_login_la_LDFLAGS = \
5895 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5896 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5898 libsystemd_login_la_LIBADD = \
5899 libsystemd-internal.la \
5900 libsystemd-shared.la
5902 libsystemd_id128_la_SOURCES = \
5903 libsystemd-id128.c \
5904 src/compat-libs/libsystemd-id128.sym
5906 libsystemd_id128_la_CPPFLAGS = \
5908 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5910 libsystemd_id128_la_LDFLAGS = \
5912 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5913 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5915 libsystemd_id128_la_LIBADD = \
5916 libsystemd-internal.la \
5917 libsystemd-shared.la
5919 libsystemd_daemon_la_SOURCES = \
5920 libsystemd-daemon.c \
5921 src/compat-libs/libsystemd-daemon.sym
5923 libsystemd_daemon_la_CPPFLAGS = \
5925 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5927 libsystemd_daemon_la_LDFLAGS = \
5929 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5930 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5932 libsystemd_daemon_la_LIBADD = \
5933 libsystemd-internal.la \
5934 libsystemd-shared.la
5936 lib_LTLIBRARIES += \
5937 libsystemd-journal.la \
5938 libsystemd-login.la \
5939 libsystemd-id128.la \
5940 libsystemd-daemon.la
5942 pkgconfiglib_DATA += \
5943 src/compat-libs/libsystemd-journal.pc \
5944 src/compat-libs/libsystemd-login.pc \
5945 src/compat-libs/libsystemd-id128.pc \
5946 src/compat-libs/libsystemd-daemon.pc
5948 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5949 compat-lib-install-hook:
5950 libname=libsystemd-login.so && $(move-to-rootlibdir)
5951 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5952 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5953 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5955 compat-lib-uninstall-hook:
5956 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5957 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5958 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5959 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5961 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5962 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5966 src/compat-libs/libsystemd-journal.pc.in \
5967 src/compat-libs/libsystemd-login.pc.in \
5968 src/compat-libs/libsystemd-id128.pc.in \
5969 src/compat-libs/libsystemd-daemon.pc.in
5971 # ------------------------------------------------------------------------------
5973 '|rootlibexecdir=$(rootlibexecdir)|' \
5974 '|rootbindir=$(rootbindir)|' \
5975 '|bindir=$(bindir)|' \
5976 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5977 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5978 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5979 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5980 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5981 '|pkgdatadir=$(pkgdatadir)|' \
5982 '|systemunitdir=$(systemunitdir)|' \
5983 '|userunitdir=$(userunitdir)|' \
5984 '|systempresetdir=$(systempresetdir)|' \
5985 '|userpresetdir=$(userpresetdir)|' \
5986 '|udevhwdbdir=$(udevhwdbdir)|' \
5987 '|udevrulesdir=$(udevrulesdir)|' \
5988 '|catalogdir=$(catalogdir)|' \
5989 '|tmpfilesdir=$(tmpfilesdir)|' \
5990 '|sysusersdir=$(sysusersdir)|' \
5991 '|sysctldir=$(sysctldir)|' \
5992 '|systemgeneratordir=$(systemgeneratordir)|' \
5993 '|usergeneratordir=$(usergeneratordir)|' \
5994 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5995 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5996 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5997 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5998 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5999 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6000 '|prefix=$(prefix)|' \
6001 '|exec_prefix=$(exec_prefix)|' \
6002 '|libdir=$(libdir)|' \
6003 '|includedir=$(includedir)|' \
6004 '|VERSION=$(VERSION)|' \
6005 '|rootprefix=$(rootprefix)|' \
6006 '|udevlibexecdir=$(udevlibexecdir)|' \
6007 '|SUSHELL=$(SUSHELL)|' \
6008 '|DEBUGTTY=$(DEBUGTTY)|' \
6011 '|MKDIR_P=$(MKDIR_P)|' \
6012 '|QUOTAON=$(QUOTAON)|' \
6013 '|QUOTACHECK=$(QUOTACHECK)|' \
6014 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6015 '|VARLOGDIR=$(varlogdir)|' \
6016 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6017 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6018 '|PYTHON=$(PYTHON)|' \
6019 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6020 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6021 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6022 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6023 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6024 '|TTY_GID=$(TTY_GID)|' \
6025 '|systemsleepdir=$(systemsleepdir)|' \
6026 '|systemshutdowndir=$(systemshutdowndir)|' \
6027 '|binfmtdir=$(binfmtdir)|' \
6028 '|modulesloaddir=$(modulesloaddir)|'
6031 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6032 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6041 sysctl.d/%: sysctl.d/%.in
6050 src/core/macros.%: src/core/macros.%.in
6053 src/%.policy.in: src/%.policy.in.in
6056 shell-completion/%: shell-completion/%.in
6067 $(AM_V_GEN)chmod +x $@
6069 src/%.c: src/%.gperf
6070 $(AM_V_at)$(MKDIR_P) $(dir $@)
6071 $(AM_V_GPERF)$(GPERF) < $< > $@
6074 $(AM_V_at)$(MKDIR_P) $(dir $@)
6075 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6077 sysusers.d/%: sysusers.d/%.m4
6078 $(AM_V_at)$(MKDIR_P) $(dir $@)
6079 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6081 tmpfiles.d/%: tmpfiles.d/%.m4
6082 $(AM_V_at)$(MKDIR_P) $(dir $@)
6083 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6087 $(AM_V_at)$(MKDIR_P) $(dir $@)
6088 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6090 units/user/%: units/user/%.m4
6091 $(AM_V_at)$(MKDIR_P) $(dir $@)
6092 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6095 nodist_polkitpolicy_DATA = \
6096 $(polkitpolicy_files) \
6097 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6101 $(polkitpolicy_in_files) \
6102 $(polkitpolicy_in_in_files)
6105 $(nodist_systemunit_DATA) \
6106 $(nodist_userunit_DATA) \
6107 $(pkgconfiglib_DATA) \
6108 $(nodist_polkitpolicy_DATA)
6110 # ------------------------------------------------------------------------------
6112 man/custom-entities.ent: configure.ac
6113 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6114 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6115 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6119 man/custom-entities.ent
6124 --stringparam man.output.quietly 1 \
6125 --stringparam funcsynopsis.style ansi \
6126 --stringparam man.authors.section.enabled 0 \
6127 --stringparam man.copyright.section.enabled 0 \
6128 --stringparam systemd.version $(VERSION) \
6129 --path '$(builddir)/man:$(srcdir)/man'
6131 XSLTPROC_PROCESS_MAN = \
6132 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6134 XSLTPROC_PROCESS_HTML = \
6135 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6137 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6138 $(XSLTPROC_PROCESS_MAN)
6140 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6141 $(XSLTPROC_PROCESS_MAN)
6143 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6144 $(XSLTPROC_PROCESS_MAN)
6146 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6147 $(XSLTPROC_PROCESS_MAN)
6149 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6150 $(XSLTPROC_PROCESS_MAN)
6152 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6153 $(XSLTPROC_PROCESS_HTML)
6156 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6162 man/custom-html.xsl \
6165 # ------------------------------------------------------------------------------
6168 docs/sysvinit/README
6173 docs/sysvinit/README: docs/sysvinit/README.in
6176 docs/var-log/README: docs/var-log/README.in
6180 docs/sysvinit/README \
6185 docs/sysvinit/README.in \
6186 docs/var-log/README.in
6188 SOCKETS_TARGET_WANTS += \
6189 systemd-initctl.socket \
6190 systemd-shutdownd.socket
6194 RUNLEVEL1_TARGET_WANTS += \
6195 systemd-update-utmp-runlevel.service
6196 RUNLEVEL2_TARGET_WANTS += \
6197 systemd-update-utmp-runlevel.service
6198 RUNLEVEL3_TARGET_WANTS += \
6199 systemd-update-utmp-runlevel.service
6200 RUNLEVEL4_TARGET_WANTS += \
6201 systemd-update-utmp-runlevel.service
6202 RUNLEVEL5_TARGET_WANTS += \
6203 systemd-update-utmp-runlevel.service
6206 SYSINIT_TARGET_WANTS += \
6207 systemd-update-utmp.service
6210 SYSINIT_TARGET_WANTS += \
6211 systemd-update-done.service
6213 LOCAL_FS_TARGET_WANTS += \
6214 systemd-remount-fs.service \
6217 MULTI_USER_TARGET_WANTS += \
6219 systemd-ask-password-wall.path
6221 SYSINIT_TARGET_WANTS += \
6222 dev-hugepages.mount \
6224 sys-kernel-config.mount \
6225 sys-kernel-debug.mount \
6226 sys-fs-fuse-connections.mount \
6227 systemd-sysctl.service \
6228 systemd-ask-password-console.path
6231 SYSTEM_UNIT_ALIASES += \
6232 poweroff.target runlevel0.target \
6233 rescue.target runlevel1.target \
6234 multi-user.target runlevel2.target \
6235 multi-user.target runlevel3.target \
6236 multi-user.target runlevel4.target \
6237 graphical.target runlevel5.target \
6238 reboot.target runlevel6.target
6241 SYSTEM_UNIT_ALIASES += \
6242 graphical.target default.target \
6243 reboot.target ctrl-alt-del.target \
6244 getty@.service autovt@.service
6246 USER_UNIT_ALIASES += \
6247 $(systemunitdir)/shutdown.target shutdown.target \
6248 $(systemunitdir)/sockets.target sockets.target \
6249 $(systemunitdir)/timers.target timers.target \
6250 $(systemunitdir)/paths.target paths.target \
6251 $(systemunitdir)/bluetooth.target bluetooth.target \
6252 $(systemunitdir)/printer.target printer.target \
6253 $(systemunitdir)/sound.target sound.target \
6254 $(systemunitdir)/smartcard.target smartcard.target
6257 USER_UNIT_ALIASES += \
6258 $(systemunitdir)/busnames.target busnames.target
6261 GENERAL_ALIASES += \
6262 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6263 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6264 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6265 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6269 $(systemunitdir)/runlevel1.target.wants \
6270 $(systemunitdir)/runlevel2.target.wants \
6271 $(systemunitdir)/runlevel3.target.wants \
6272 $(systemunitdir)/runlevel4.target.wants \
6273 $(systemunitdir)/runlevel5.target.wants
6277 $(prefix)/lib/modules-load.d \
6278 $(sysconfdir)/modules-load.d \
6279 $(prefix)/lib/systemd/network \
6280 $(sysconfdir)/systemd/network \
6281 $(prefix)/lib/sysctl.d \
6282 $(sysconfdir)/sysctl.d \
6283 $(prefix)/lib/kernel/install.d \
6284 $(sysconfdir)/kernel/install.d \
6285 $(systemshutdowndir) \
6287 $(systemgeneratordir) \
6288 $(usergeneratordir) \
6291 $(pkgsysconfdir)/system \
6292 $(pkgsysconfdir)/system/multi-user.target.wants \
6293 $(pkgsysconfdir)/system/getty.target.wants \
6294 $(pkgsysconfdir)/user \
6295 $(dbussessionservicedir) \
6296 $(sysconfdir)/xdg/systemd
6298 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6300 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6302 install-data-hook: $(INSTALL_DATA_HOOKS)
6304 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6306 clean-local: $(CLEAN_LOCAL_HOOKS)
6307 rm -rf $(abs_srcdir)/install-tree
6308 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6309 $(abs_srcdir)/hwdb/iab.txt
6311 DISTCHECK_CONFIGURE_FLAGS = \
6312 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6313 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6314 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6315 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6316 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6317 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6318 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6319 --with-rootprefix=$$dc_install_base \
6320 --disable-split-usr \
6322 --enable-compat-libs
6325 DISTCHECK_CONFIGURE_FLAGS += \
6326 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6327 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6329 DISTCHECK_CONFIGURE_FLAGS += \
6330 --with-sysvinit-path= \
6331 --with-sysvrcnd-path=
6335 DISTCHECK_CONFIGURE_FLAGS += \
6340 DISTCHECK_CONFIGURE_FLAGS += \
6345 # Require python when making dist
6347 .PHONY: dist-check-python
6350 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6354 dist-check-compat-libs:
6355 if !ENABLE_COMPAT_LIBS
6356 @echo "*** compat-libs must be enabled in order to make dist"
6360 dist: dist-check-python dist-check-compat-libs
6362 # check "broken" platforms limited toolchains for link breakage before we release
6365 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6369 ( cd $(top_srcdir)/hwdb && \
6370 wget -N http://www.linux-usb.org/usb.ids \
6371 http://pci-ids.ucw.cz/v2.2/pci.ids \
6372 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6373 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6376 .PHONY: kdbus-update
6378 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6379 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6383 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6385 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6387 upload: all check dist
6388 scp systemd-$(VERSION).tar.xz $(www_target)
6391 doc-sync: all destdir-sphinx
6392 gtkdoc-rebase --html-dir=docs/libudev/html --online
6393 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6394 gtkdoc-rebase --html-dir=docs/gudev/html --online
6395 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6396 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6397 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6401 scp man/*.html gardel:public/systemd-man/
6403 .PHONY: lennart-fedora
6405 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6407 .PHONY: install-tree
6409 rm -rf $(abs_srcdir)/install-tree
6410 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6411 tree $(abs_srcdir)/install-tree
6413 # Let's run all tests of the test suite, but under valgrind. Let's
6414 # exclude the one perl script we have in there
6415 .PHONY: valgrind-tests
6416 valgrind-tests: $(TESTS)
6417 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6418 if file $$f | grep -q shell; then \
6419 echo -e "$${x}Skipping non-binary $$f"; else \
6420 echo -e "$${x}Running $$f"; \
6421 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6426 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6428 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6429 $(AM_V_GEN)cat $^ > $@
6431 .PHONY: check-api-docs
6432 check-api-docs: exported man
6433 $(AM_V_GEN)for symbol in `cat exported` ; do \
6434 if test -f $(builddir)/man/$$symbol.html ; then \
6435 echo " Symbol $$symbol() is documented." ; \
6437 echo "‣ Symbol $$symbol() lacks documentation." ; \
6441 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6442 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6444 undefined defined: $(ALL_OBJECTS)
6445 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6446 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6447 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6453 .PHONY: check-api-unused
6454 check-api-unused: defined undefined exported
6455 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6457 .PHONY: check-includes
6458 check-includes: $(top_srcdir)/tools/check-includes.pl
6459 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6460 | xargs $(top_srcdir)/tools/check-includes.pl
6463 $(top_srcdir)/tools/check-includes.pl
6465 # Stupid test that everything purported to be exported really is
6466 define generate-sym-test
6467 $(AM_V_at)$(MKDIR_P) $(dir $@)
6468 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6469 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6470 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6471 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6472 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6473 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6474 $(AM_V_at)printf 'return 0; }\n' >> $@
6477 test-libsystemd-sym.c: \
6478 $(top_builddir)/src/libsystemd/libsystemd.sym \
6479 src/systemd/sd-journal.h \
6480 src/systemd/sd-daemon.h \
6481 src/systemd/sd-login.h \
6482 src/systemd/sd-bus.h \
6483 src/systemd/sd-utf8.h \
6484 src/systemd/sd-resolve.h \
6485 src/systemd/sd-path.h
6486 $(generate-sym-test)
6488 test-libudev-sym.c: \
6489 src/libudev/libudev.sym \
6491 $(generate-sym-test)
6493 test_libsystemd_sym_SOURCES = \
6494 test-libsystemd-sym.c
6495 test_libsystemd_sym_LDADD = \
6498 test_libudev_sym_SOURCES = \
6500 test_libudev_sym_CFLAGS = \
6502 -Wno-deprecated-declarations
6503 test_libudev_sym_LDADD = \
6507 $(test_libsystemd_sym_SOURCES) \
6508 $(test_libudev_sym_SOURCES)
6511 test-libsystemd-sym \
6516 cppcheck --enable=all -q $(top_srcdir)
6518 # Used to extract compile flags for YCM.
6523 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6526 tools/gdb-sd_dump_hashmaps.py