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 \
891 src/shared/base-filesystem.c \
892 src/shared/base-filesystem.h \
893 src/shared/memfd-util.c \
894 src/shared/memfd-util.h \
895 src/shared/uid-range.c \
896 src/shared/uid-range.h \
897 src/shared/nss-util.h \
898 src/shared/btrfs-util.c \
899 src/shared/btrfs-util.h \
900 src/shared/btrfs-ctree.h \
903 src/shared/machine-image.c \
904 src/shared/machine-image.h \
905 src/shared/sigbus.c \
906 src/shared/sigbus.h \
910 libsystemd_shared_la_SOURCES += \
911 src/shared/utmp-wtmp.c
914 nodist_libsystemd_shared_la_SOURCES = \
915 src/shared/errno-from-name.h \
916 src/shared/errno-to-name.h \
917 src/shared/af-from-name.h \
918 src/shared/af-to-name.h \
919 src/shared/arphrd-from-name.h \
920 src/shared/arphrd-to-name.h \
921 src/shared/cap-from-name.h \
922 src/shared/cap-to-name.h
924 libsystemd_shared_la_CFLAGS = \
930 libsystemd_shared_la_LIBADD = \
933 # ------------------------------------------------------------------------------
934 noinst_LTLIBRARIES += \
937 libsystemd_units_la_SOURCES = \
938 src/shared/install.c \
939 src/shared/install.h \
940 src/shared/install-printf.c \
941 src/shared/install-printf.h \
942 src/shared/path-lookup.c \
943 src/shared/path-lookup.h \
944 src/shared/specifier.c \
945 src/shared/specifier.h
947 # ------------------------------------------------------------------------------
948 noinst_LTLIBRARIES += \
951 libsystemd_label_la_SOURCES = \
952 src/shared/socket-label.c \
955 src/shared/selinux-util.c \
956 src/shared/selinux-util.h \
957 src/shared/mkdir-label.c \
958 src/shared/ask-password-api.c \
959 src/shared/ask-password-api.h \
960 src/shared/switch-root.h \
961 src/shared/switch-root.c \
962 src/shared/fileio-label.c \
963 src/shared/fileio-label.h \
964 src/shared/dev-setup.c \
965 src/shared/dev-setup.h \
966 src/shared/dropin.c \
967 src/shared/dropin.h \
968 src/shared/condition.c \
969 src/shared/condition.h \
970 src/shared/generator.h \
971 src/shared/generator.c
973 libsystemd_label_la_CFLAGS = \
977 libsystemd_label_la_LIBADD = \
980 # -----------------------------------------------------------------------------
983 dist_systemunit_DATA += \
984 units/ldconfig.service
986 SYSINIT_TARGET_WANTS += \
990 # ------------------------------------------------------------------------------
993 noinst_LTLIBRARIES += \
994 libsystemd-seccomp.la
996 libsystemd_seccomp_la_SOURCES = \
997 src/shared/seccomp-util.h \
998 src/shared/seccomp-util.c
1000 libsystemd_seccomp_la_CFLAGS = \
1004 libsystemd_seccomp_la_LIBADD = \
1008 # ------------------------------------------------------------------------------
1009 noinst_LTLIBRARIES += \
1012 libsystemd_logs_la_SOURCES = \
1013 src/shared/logs-show.c \
1014 src/shared/logs-show.h
1016 # ------------------------------------------------------------------------------
1018 noinst_LTLIBRARIES += \
1021 libsystemd_acl_la_SOURCES = \
1022 src/shared/acl-util.c \
1023 src/shared/acl-util.h
1025 libsystemd_acl_la_CFLAGS = \
1029 libsystemd_acl_la_LIBADD = \
1033 # ------------------------------------------------------------------------------
1034 noinst_LTLIBRARIES += \
1037 libsystemd_core_la_SOURCES = \
1040 src/core/unit-printf.c \
1041 src/core/unit-printf.h \
1044 src/core/manager.c \
1045 src/core/manager.h \
1046 src/core/transaction.c \
1047 src/core/transaction.h \
1048 src/core/load-fragment.c \
1049 src/core/load-fragment.h \
1050 src/core/service.c \
1051 src/core/service.h \
1054 src/core/busname.c \
1055 src/core/busname.h \
1056 src/core/bus-endpoint.c \
1057 src/core/bus-endpoint.h \
1058 src/core/bus-policy.c \
1059 src/core/bus-policy.h \
1062 src/core/snapshot.c \
1063 src/core/snapshot.h \
1068 src/core/automount.c \
1069 src/core/automount.h \
1080 src/core/load-dropin.c \
1081 src/core/load-dropin.h \
1082 src/core/execute.c \
1083 src/core/execute.h \
1088 src/core/dbus-manager.c \
1089 src/core/dbus-manager.h \
1090 src/core/dbus-unit.c \
1091 src/core/dbus-unit.h \
1092 src/core/dbus-job.c \
1093 src/core/dbus-job.h \
1094 src/core/dbus-service.c \
1095 src/core/dbus-service.h \
1096 src/core/dbus-socket.c \
1097 src/core/dbus-socket.h \
1098 src/core/dbus-busname.c \
1099 src/core/dbus-busname.h \
1100 src/core/dbus-target.c \
1101 src/core/dbus-target.h \
1102 src/core/dbus-snapshot.c \
1103 src/core/dbus-snapshot.h \
1104 src/core/dbus-device.c \
1105 src/core/dbus-device.h \
1106 src/core/dbus-mount.c \
1107 src/core/dbus-mount.h \
1108 src/core/dbus-automount.c \
1109 src/core/dbus-automount.h \
1110 src/core/dbus-swap.c \
1111 src/core/dbus-swap.h \
1112 src/core/dbus-timer.c \
1113 src/core/dbus-timer.h \
1114 src/core/dbus-path.c \
1115 src/core/dbus-path.h \
1116 src/core/dbus-slice.c \
1117 src/core/dbus-slice.h \
1118 src/core/dbus-scope.c \
1119 src/core/dbus-scope.h \
1120 src/core/dbus-execute.c \
1121 src/core/dbus-execute.h \
1122 src/core/dbus-kill.c \
1123 src/core/dbus-kill.h \
1124 src/core/dbus-cgroup.c \
1125 src/core/dbus-cgroup.h \
1128 src/core/selinux-access.c \
1129 src/core/selinux-access.h \
1130 src/core/selinux-setup.c \
1131 src/core/selinux-setup.h \
1132 src/core/smack-setup.c \
1133 src/core/smack-setup.h \
1134 src/core/ima-setup.c \
1135 src/core/ima-setup.h \
1136 src/core/locale-setup.h \
1137 src/core/locale-setup.c \
1138 src/core/hostname-setup.c \
1139 src/core/hostname-setup.h \
1140 src/core/machine-id-setup.c \
1141 src/core/machine-id-setup.h \
1142 src/core/mount-setup.c \
1143 src/core/mount-setup.h \
1144 src/core/kmod-setup.c \
1145 src/core/kmod-setup.h \
1146 src/core/loopback-setup.h \
1147 src/core/loopback-setup.c \
1148 src/core/namespace.c \
1149 src/core/namespace.h \
1150 src/core/killall.h \
1151 src/core/killall.c \
1152 src/core/audit-fd.c \
1153 src/core/audit-fd.h \
1154 src/core/show-status.c \
1155 src/core/show-status.h \
1156 src/core/failure-action.c \
1157 src/core/failure-action.h
1159 nodist_libsystemd_core_la_SOURCES = \
1160 src/core/load-fragment-gperf.c \
1161 src/core/load-fragment-gperf-nulstr.c
1163 libsystemd_core_la_CFLAGS = \
1168 $(APPARMOR_CFLAGS) \
1173 libsystemd_core_la_LIBADD = \
1174 libsystemd-units.la \
1175 libsystemd-label.la \
1176 libudev-internal.la \
1177 libsystemd-shared.la \
1178 libsystemd-internal.la \
1187 libsystemd_core_la_LIBADD += \
1188 libsystemd-seccomp.la
1191 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1192 $(AM_V_at)$(MKDIR_P) $(dir $@)
1193 $(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 ";" }' < $< > $@
1196 src/core/load-fragment-gperf.gperf.m4
1199 src/core/load-fragment-gperf.gperf \
1200 src/core/load-fragment-gperf.c \
1201 src/core/load-fragment-gperf-nulstr.c \
1202 src/shared/errno-list.txt \
1203 src/shared/errno-from-name.gperf \
1204 src/shared/af-list.txt \
1205 src/shared/af-from-name.gperf \
1206 src/shared/arphrd-list.txt \
1207 src/shared/arphrd-from-name.gperf \
1208 src/shared/cap-list.txt \
1209 src/shared/cap-from-name.gperf \
1210 src/resolve/dns_type-list.txt \
1211 src/resolve/dns_type-from-name.gperf
1214 src/shared/errno-from-name.h \
1215 src/shared/errno-to-name.h \
1216 src/shared/af-from-name.h \
1217 src/shared/af-to-name.h \
1218 src/shared/arphrd-from-name.h \
1219 src/shared/arphrd-to-name.h \
1220 src/shared/cap-from-name.h \
1221 src/shared/cap-to-name.h \
1222 src/resolve/dns_type-from-name.h \
1223 src/resolve/dns_type-to-name.h
1225 %-from-name.gperf: %-list.txt
1226 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1228 %-from-name.h: %-from-name.gperf
1229 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1232 src/shared/errno-list.txt:
1233 $(AM_V_at)$(MKDIR_P) $(dir $@)
1234 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1236 src/shared/errno-to-name.h: src/shared/errno-list.txt
1237 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1240 src/shared/af-list.txt:
1241 $(AM_V_at)$(MKDIR_P) $(dir $@)
1242 $(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; }' >$@
1244 src/shared/af-to-name.h: src/shared/af-list.txt
1245 $(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 "};"}' <$< >$@
1248 src/shared/arphrd-list.txt:
1249 $(AM_V_at)$(MKDIR_P) $(dir $@)
1250 $(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_//' >$@
1252 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1253 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1255 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1256 $(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 }' <$< >$@
1259 src/shared/cap-list.txt:
1260 $(AM_V_at)$(MKDIR_P) $(dir $@)
1261 $(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 >$@
1263 src/shared/cap-to-name.h: src/shared/cap-list.txt
1264 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1266 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1267 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1269 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1270 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1273 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1274 $(AM_V_at)$(MKDIR_P) $(dir $@)
1275 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1277 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1278 $(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" }' <$< >$@
1280 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1281 $(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 }' <$< >$@
1283 # ------------------------------------------------------------------------------
1292 libsystemd-core.la \
1295 dist_pkgsysconf_DATA += \
1296 src/core/system.conf \
1299 dist_dbuspolicy_DATA += \
1300 src/core/org.freedesktop.systemd1.conf
1302 dist_dbussystemservice_DATA += \
1303 src/core/org.freedesktop.systemd1.service
1305 polkitpolicy_in_in_files += \
1306 src/core/org.freedesktop.systemd1.policy.in.in
1308 pkgconfiglib_DATA += \
1311 nodist_rpmmacros_DATA = \
1312 src/core/macros.systemd
1315 src/core/systemd.pc.in \
1316 src/core/macros.systemd.in
1319 src/core/macros.systemd \
1320 src/core/org.freedesktop.systemd1.policy.in
1322 # ------------------------------------------------------------------------------
1366 test-strip-tab-ansi \
1401 test/daughter.service \
1406 test/grandchild.service \
1408 test/hello-after-sleep.target \
1409 test/hello.service \
1411 test/parent-deep.slice \
1414 test/sched_idle_bad.service \
1415 test/sched_idle_ok.service \
1416 test/sched_rr_bad.service \
1417 test/sched_rr_change.service \
1418 test/sched_rr_ok.service \
1419 test/shutdown.target \
1420 test/sleep.service \
1421 test/sockets.target \
1423 test/sysinit.target \
1424 test/testsuite.target \
1425 test/timers.target \
1426 test/unstoppable.service \
1427 test/path-changed.service \
1428 test/path-directorynotempty.service \
1429 test/path-existsglob.service \
1430 test/path-exists.service \
1431 test/path-makedirectory.service \
1432 test/path-modified.service \
1433 test/path-mycustomunit.service \
1434 test/path-service.service \
1435 test/path-changed.path \
1436 test/path-directorynotempty.path \
1437 test/path-existsglob.path \
1438 test/path-exists.path \
1439 test/path-makedirectory.path \
1440 test/path-modified.path \
1441 test/path-unit.path \
1442 test/exec-environment-empty.service \
1443 test/exec-environment-multiple.service \
1444 test/exec-environment.service \
1445 test/exec-group.service \
1446 test/exec-ignoresigpipe-no.service \
1447 test/exec-ignoresigpipe-yes.service \
1448 test/exec-personality-x86-64.service \
1449 test/exec-personality-x86.service \
1450 test/exec-privatedevices-no.service \
1451 test/exec-privatedevices-yes.service \
1452 test/exec-privatetmp-no.service \
1453 test/exec-privatetmp-yes.service \
1454 test/exec-systemcallerrornumber.service \
1455 test/exec-systemcallfilter-failing2.service \
1456 test/exec-systemcallfilter-failing.service \
1457 test/exec-systemcallfilter-not-failing2.service \
1458 test/exec-systemcallfilter-not-failing.service \
1459 test/exec-user.service \
1460 test/exec-workingdirectory.service \
1461 test/exec-umask-0177.service \
1462 test/exec-umask-default.service \
1463 test/bus-policy/hello.conf \
1464 test/bus-policy/methods.conf \
1465 test/bus-policy/ownerships.conf \
1466 test/bus-policy/signals.conf \
1467 test/bus-policy/check-own-rules.conf \
1468 test/bus-policy/many-rules.conf \
1469 test/bus-policy/test.conf
1473 src/test/test-helper.h
1475 test_device_nodes_SOURCES = \
1476 src/test/test-device-nodes.c
1478 test_device_nodes_LDADD = \
1479 libsystemd-shared.la
1481 test_engine_SOURCES = \
1482 src/test/test-engine.c
1484 test_engine_CFLAGS = \
1488 test_engine_LDADD = \
1489 libsystemd-core.la \
1492 test_job_type_SOURCES = \
1493 src/test/test-job-type.c
1495 test_job_type_CFLAGS = \
1499 test_job_type_LDADD = \
1500 libsystemd-core.la \
1513 test_loopback_SOURCES = \
1514 src/test/test-loopback.c
1516 test_loopback_LDADD = \
1519 test_hostname_SOURCES = \
1520 src/test/test-hostname.c
1522 test_hostname_LDADD = \
1529 test_boot_timestamp_SOURCES = \
1530 src/test/test-boot-timestamps.c
1532 test_boot_timestamp_LDADD = \
1533 libsystemd-shared.la
1536 test_unit_name_SOURCES = \
1537 src/test/test-unit-name.c
1539 test_unit_name_CFLAGS = \
1543 test_unit_name_LDADD = \
1544 libsystemd-core.la \
1547 test_unit_file_SOURCES = \
1548 src/test/test-unit-file.c
1550 test_unit_file_CFLAGS = \
1554 test_unit_file_LDADD = \
1555 libsystemd-core.la \
1558 test_utf8_SOURCES = \
1559 src/test/test-utf8.c
1562 libsystemd-shared.la
1564 test_capability_SOURCES = \
1565 src/test/test-capability.c
1567 test_capability_LDADD = \
1568 libsystemd-shared.la
1570 test_async_SOURCES = \
1571 src/test/test-async.c
1573 test_async_LDADD = \
1574 libsystemd-shared.la
1576 test_locale_util_SOURCES = \
1577 src/test/test-locale-util.c
1579 test_locale_util_LDADD = \
1580 libsystemd-shared.la
1582 test_copy_SOURCES = \
1583 src/test/test-copy.c
1586 libsystemd-shared.la
1588 test_sigbus_SOURCES = \
1589 src/test/test-sigbus.c
1591 test_sigbus_LDADD = \
1592 libsystemd-shared.la
1594 test_condition_SOURCES = \
1595 src/test/test-condition.c
1597 test_condition_LDADD = \
1598 libsystemd-label.la \
1599 libsystemd-internal.la \
1600 libsystemd-shared.la
1602 test_fdset_SOURCES = \
1603 src/test/test-fdset.c
1605 test_fdset_LDADD = \
1606 libsystemd-shared.la \
1607 libsystemd-internal.la
1609 test_ratelimit_SOURCES = \
1610 src/test/test-ratelimit.c
1612 test_ratelimit_LDADD = \
1613 libsystemd-shared.la
1615 test_util_SOURCES = \
1616 src/test/test-util.c
1620 libsystemd-shared.la
1622 test_uid_range_SOURCES = \
1623 src/test/test-uid-range.c
1625 test_uid_range_LDADD = \
1626 libsystemd-shared.la
1628 test_cap_list_SOURCES = \
1629 src/test/test-cap-list.c
1631 test_cap_list_LDADD = \
1632 libsystemd-shared.la
1634 test_socket_util_SOURCES = \
1635 src/test/test-socket-util.c
1637 test_socket_util_LDADD = \
1638 libsystemd-shared.la
1640 test_ring_SOURCES = \
1641 src/test/test-ring.c
1644 libsystemd-shared.la
1646 test_barrier_SOURCES = \
1647 src/test/test-barrier.c
1649 test_barrier_LDADD = \
1650 libsystemd-shared.la
1652 test_pty_SOURCES = \
1658 test_tmpfiles_SOURCES = \
1659 src/test/test-tmpfiles.c
1661 test_tmpfiles_LDADD = \
1662 libsystemd-shared.la
1664 test_namespace_SOURCES = \
1665 src/test/test-namespace.c
1667 test_verbs_SOURCES = \
1668 src/test/test-verbs.c
1670 test_verbs_LDADD = \
1671 libsystemd-shared.la
1673 test_namespace_LDADD = \
1677 src/test/test-hashmap-ordered.c
1680 src/test/test-hashmap-ordered.c
1682 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1683 $(AM_V_at)$(MKDIR_P) $(dir $@)
1684 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1685 { if (!match($$0, "^#include")) \
1686 gsub(/hashmap/, "ordered_hashmap"); \
1687 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1688 gsub(/Hashmap/, "OrderedHashmap"); \
1691 nodist_test_hashmap_SOURCES = \
1692 src/test/test-hashmap-ordered.c
1694 test_hashmap_SOURCES = \
1695 src/test/test-hashmap.c \
1696 src/test/test-hashmap-plain.c
1698 test_hashmap_LDADD = \
1699 libsystemd-shared.la
1701 test_set_SOURCES = \
1705 libsystemd-shared.la
1707 test_xml_SOURCES = \
1711 libsystemd-shared.la
1713 test_json_SOURCES = \
1714 src/test/test-json.c
1717 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-shared.la
1799 test_rtnl_manual_SOURCES = \
1800 src/test/test-rtnl-manual.c
1802 test_rtnl_manual_CFLAGS = \
1806 test_rtnl_manual_LDADD = \
1807 libsystemd-internal.la \
1808 libsystemd-shared.la \
1811 test_ellipsize_SOURCES = \
1812 src/test/test-ellipsize.c
1814 test_ellipsize_LDADD = \
1815 libsystemd-shared.la
1817 test_date_SOURCES = \
1818 src/test/test-date.c
1821 libsystemd-shared.la
1823 test_sleep_SOURCES = \
1824 src/test/test-sleep.c
1826 test_sleep_LDADD = \
1829 test_replace_var_SOURCES = \
1830 src/test/test-replace-var.c
1832 test_replace_var_LDADD = \
1833 libsystemd-shared.la
1835 test_calendarspec_SOURCES = \
1836 src/test/test-calendarspec.c
1838 test_calendarspec_LDADD = \
1839 libsystemd-shared.la
1841 test_strip_tab_ansi_SOURCES = \
1842 src/test/test-strip-tab-ansi.c
1844 test_strip_tab_ansi_LDADD = \
1845 libsystemd-shared.la
1847 test_daemon_SOURCES = \
1848 src/test/test-daemon.c
1850 test_daemon_LDADD = \
1851 libsystemd-internal.la \
1852 libsystemd-shared.la
1854 test_cgroup_SOURCES = \
1855 src/test/test-cgroup.c
1857 test_cgroup_LDADD = \
1858 libsystemd-label.la \
1859 libsystemd-shared.la \
1860 libsystemd-internal.la
1862 test_cgroup_mask_SOURCES = \
1863 src/test/test-cgroup-mask.c
1865 test_cgroup_mask_CPPFLAGS = \
1868 test_cgroup_mask_CFLAGS = \
1872 test_cgroup_mask_LDADD = \
1873 libsystemd-core.la \
1876 test_cgroup_util_SOURCES = \
1877 src/test/test-cgroup-util.c
1879 test_cgroup_util_LDADD = \
1880 libsystemd-label.la \
1881 libsystemd-internal.la \
1882 libsystemd-shared.la
1884 test_env_replace_SOURCES = \
1885 src/test/test-env-replace.c
1887 test_env_replace_LDADD = \
1888 libsystemd-shared.la
1890 test_strbuf_SOURCES = \
1891 src/test/test-strbuf.c
1893 test_strbuf_LDADD = \
1894 libsystemd-shared.la
1896 test_strv_SOURCES = \
1897 src/test/test-strv.c
1900 libsystemd-units.la \
1901 libsystemd-internal.la \
1902 libsystemd-shared.la
1904 test_path_util_SOURCES = \
1905 src/test/test-path-util.c
1907 test_path_util_LDADD = \
1908 libsystemd-shared.la
1910 test_path_SOURCES = \
1911 src/test/test-path.c
1913 test_path_CFLAGS = \
1919 test_execute_SOURCES = \
1920 src/test/test-execute.c
1922 test_execute_CFLAGS = \
1925 test_execute_LDADD = \
1928 test_strxcpyx_SOURCES = \
1929 src/test/test-strxcpyx.c
1931 test_strxcpyx_LDADD = \
1932 libsystemd-shared.la
1934 test_install_SOURCES = \
1935 src/test/test-install.c
1937 test_install_LDADD = \
1938 libsystemd-units.la \
1939 libsystemd-label.la \
1940 libsystemd-shared.la \
1941 libsystemd-internal.la
1943 test_watchdog_SOURCES = \
1944 src/test/test-watchdog.c
1946 test_watchdog_LDADD = \
1947 libsystemd-shared.la
1949 test_sched_prio_SOURCES = \
1950 src/test/test-sched-prio.c
1952 test_sched_prio_CPPFLAGS = \
1955 test_sched_prio_CFLAGS = \
1959 test_sched_prio_LDADD = \
1960 libsystemd-core.la \
1963 test_conf_files_SOURCES = \
1964 src/test/test-conf-files.c
1966 test_conf_files_LDADD = \
1967 libsystemd-shared.la
1969 test_bus_policy_SOURCES = \
1970 src/bus-proxyd/test-bus-xml-policy.c \
1971 src/bus-proxyd/bus-xml-policy.c \
1972 src/bus-proxyd/bus-xml-policy.h
1974 test_bus_policy_LDADD = \
1975 libsystemd-internal.la \
1976 libsystemd-shared.la
1978 # ------------------------------------------------------------------------------
1979 ## .PHONY so it always rebuilds it
1980 .PHONY: coverage lcov-run lcov-report coverage-sync
1982 # run lcov from scratch, always
1987 coverage_dir = coverage
1988 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1991 # reset run coverage tests
1993 @rm -rf $(coverage_dir)
1994 lcov $(coverage_opts) --zerocounters
1997 # generate report based on current coverage data
1999 $(MKDIR_P) $(coverage_dir)
2000 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2001 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2002 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2003 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2004 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2006 # lcov doesn't work properly with vpath builds, make sure that bad
2007 # output is not uploaded by mistake.
2008 coverage-sync: coverage
2009 test "$(builddir)" = "$(srcdir)"
2010 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2013 lcov-run lcov-report:
2014 echo "Need to reconfigure with --enable-coverage"
2017 # ------------------------------------------------------------------------------
2018 systemd_analyze_SOURCES = \
2019 src/analyze/analyze.c \
2020 src/analyze/analyze-verify.c \
2021 src/analyze/analyze-verify.h
2023 systemd_verify_CFLAGS = \
2027 systemd_analyze_LDADD = \
2028 libsystemd-core.la \
2029 libsystemd-internal.la \
2030 libsystemd-shared.la \
2033 # ------------------------------------------------------------------------------
2034 systemd_initctl_SOURCES = \
2035 src/initctl/initctl.c
2037 systemd_initctl_LDADD = \
2038 libsystemd-internal.la \
2039 libsystemd-shared.la
2041 # ------------------------------------------------------------------------------
2042 systemd_update_utmp_SOURCES = \
2043 src/update-utmp/update-utmp.c
2045 systemd_update_utmp_CFLAGS = \
2049 systemd_update_utmp_LDADD = \
2050 libsystemd-internal.la \
2051 libsystemd-shared.la \
2054 # ------------------------------------------------------------------------------
2055 systemd_update_done_SOURCES = \
2056 src/update-done/update-done.c
2058 systemd_update_done_LDADD = \
2059 libsystemd-internal.la \
2060 libsystemd-label.la \
2061 libsystemd-shared.la
2063 # ------------------------------------------------------------------------------
2064 systemd_shutdownd_SOURCES = \
2065 src/shutdownd/shutdownd.c
2067 systemd_shutdownd_LDADD = \
2068 libsystemd-label.la \
2069 libsystemd-internal.la \
2070 libsystemd-shared.la
2073 src/systemd/sd-shutdown.h
2075 # ------------------------------------------------------------------------------
2076 systemd_shutdown_SOURCES = \
2079 src/core/shutdown.c \
2080 src/core/mount-setup.c \
2081 src/core/mount-setup.h \
2082 src/core/killall.h \
2085 systemd_shutdown_LDADD = \
2086 libsystemd-label.la \
2087 libudev-internal.la \
2088 libsystemd-shared.la
2090 # ------------------------------------------------------------------------------
2092 systemd_modules_load_SOURCES = \
2093 src/modules-load/modules-load.c
2095 systemd_modules_load_CFLAGS = \
2099 systemd_modules_load_LDADD = \
2100 libsystemd-shared.la \
2103 rootlibexec_PROGRAMS += \
2104 systemd-modules-load
2106 nodist_systemunit_DATA += \
2107 units/systemd-modules-load.service
2109 SYSINIT_TARGET_WANTS += \
2110 systemd-modules-load.service
2113 nodist_systemunit_DATA += \
2114 units/kmod-static-nodes.service
2116 SYSINIT_TARGET_WANTS += \
2117 kmod-static-nodes.service
2122 units/systemd-modules-load.service.in \
2123 units/kmod-static-nodes.service.in
2125 # ------------------------------------------------------------------------------
2127 systemd_tmpfiles_SOURCES = \
2128 src/tmpfiles/tmpfiles.c
2130 systemd_tmpfiles_LDADD = \
2131 libsystemd-units.la \
2132 libsystemd-label.la \
2133 libsystemd-internal.la \
2134 libsystemd-shared.la
2136 rootbin_PROGRAMS += \
2139 dist_systemunit_DATA += \
2140 units/systemd-tmpfiles-clean.timer
2142 nodist_systemunit_DATA += \
2143 units/systemd-tmpfiles-setup-dev.service \
2144 units/systemd-tmpfiles-setup.service \
2145 units/systemd-tmpfiles-clean.service
2147 nodist_tmpfiles_DATA = \
2150 dist_tmpfiles_DATA = \
2151 tmpfiles.d/systemd.conf \
2152 tmpfiles.d/systemd-nologin.conf \
2153 tmpfiles.d/tmp.conf \
2154 tmpfiles.d/x11.conf \
2158 dist_tmpfiles_DATA += \
2159 tmpfiles.d/legacy.conf
2162 SYSINIT_TARGET_WANTS += \
2163 systemd-tmpfiles-setup-dev.service \
2164 systemd-tmpfiles-setup.service
2166 dist_zshcompletion_DATA += \
2167 shell-completion/zsh/_systemd-tmpfiles
2169 TIMERS_TARGET_WANTS += \
2170 systemd-tmpfiles-clean.timer
2174 $(sysconfdir)/tmpfiles.d
2178 tmpfiles.d/etc.conf.m4 \
2179 units/systemd-tmpfiles-setup-dev.service.in \
2180 units/systemd-tmpfiles-setup.service.in \
2181 units/systemd-tmpfiles-clean.service.in
2186 # ------------------------------------------------------------------------------
2188 systemd_sysusers_SOURCES = \
2189 src/sysusers/sysusers.c
2191 systemd_sysusers_LDADD = \
2192 libsystemd-units.la \
2193 libsystemd-label.la \
2194 libsystemd-internal.la \
2195 libsystemd-shared.la
2197 rootbin_PROGRAMS += \
2200 nodist_systemunit_DATA += \
2201 units/systemd-sysusers.service
2203 SYSINIT_TARGET_WANTS += \
2204 systemd-sysusers.service
2206 dist_sysusers_DATA = \
2207 sysusers.d/systemd.conf
2209 nodist_sysusers_DATA = \
2210 sysusers.d/basic.conf
2213 units/systemd-sysusers.service.in \
2214 sysusers.d/basic.conf.in
2217 sysusers.d/basic.conf
2223 # ------------------------------------------------------------------------------
2224 dist_factory_etc_DATA = \
2225 factory/etc/nsswitch.conf
2228 dist_factory_pam_DATA = \
2229 factory/etc/pam.d/system-auth \
2230 factory/etc/pam.d/other
2233 # ------------------------------------------------------------------------------
2235 systemd_firstboot_SOURCES = \
2236 src/firstboot/firstboot.c
2238 systemd_firstboot_LDADD = \
2239 libsystemd-units.la \
2240 libsystemd-label.la \
2241 libsystemd-internal.la \
2242 libsystemd-shared.la \
2245 rootbin_PROGRAMS += \
2248 nodist_systemunit_DATA += \
2249 units/systemd-firstboot.service
2252 units/systemd-firstboot.service.in
2254 SYSINIT_TARGET_WANTS += \
2255 systemd-firstboot.service
2258 # ------------------------------------------------------------------------------
2259 systemd_machine_id_setup_SOURCES = \
2260 src/machine-id-setup/machine-id-setup-main.c \
2261 src/core/machine-id-setup.c \
2262 src/core/machine-id-setup.h
2264 systemd_machine_id_setup_LDADD = \
2265 libsystemd-label.la \
2266 libsystemd-internal.la \
2267 libsystemd-shared.la
2269 # ------------------------------------------------------------------------------
2270 systemd_sysctl_SOURCES = \
2273 systemd_sysctl_LDADD = \
2274 libsystemd-shared.la
2276 # ------------------------------------------------------------------------------
2277 systemd_sleep_SOURCES = \
2280 systemd_sleep_LDADD = \
2281 libsystemd-shared.la
2283 # ------------------------------------------------------------------------------
2284 systemd_fsck_SOURCES = \
2287 systemd_fsck_LDADD = \
2288 libsystemd-internal.la \
2289 libudev-internal.la \
2290 libsystemd-shared.la
2292 # ------------------------------------------------------------------------------
2293 systemd_machine_id_commit_SOURCES = \
2294 src/machine-id-commit/machine-id-commit.c \
2295 src/core/machine-id-setup.c \
2296 src/core/machine-id-setup.h
2298 systemd_machine_id_commit_LDADD = \
2299 libsystemd-label.la \
2300 libsystemd-internal.la \
2301 libsystemd-shared.la
2303 SYSINIT_TARGET_WANTS += \
2304 systemd-machine-id-commit.service
2306 # ------------------------------------------------------------------------------
2307 systemd_ac_power_SOURCES = \
2308 src/ac-power/ac-power.c
2310 systemd_ac_power_LDADD = \
2311 libudev-internal.la \
2312 libsystemd-shared.la
2314 # ------------------------------------------------------------------------------
2315 systemd_detect_virt_SOURCES = \
2316 src/detect-virt/detect-virt.c
2318 systemd_detect_virt_LDADD = \
2319 libsystemd-shared.la
2321 INSTALL_EXEC_HOOKS += \
2322 systemd-detect-virt-install-hook
2324 # ------------------------------------------------------------------------------
2325 systemd_delta_SOURCES = \
2328 systemd_delta_LDADD = \
2329 libsystemd-shared.la
2331 # ------------------------------------------------------------------------------
2332 systemd_getty_generator_SOURCES = \
2333 src/getty-generator/getty-generator.c
2335 systemd_getty_generator_LDADD = \
2336 libsystemd-label.la \
2337 libsystemd-shared.la
2339 # ------------------------------------------------------------------------------
2340 systemd_debug_generator_SOURCES = \
2341 src/debug-generator/debug-generator.c
2343 systemd_debug_generator_LDADD = \
2344 libsystemd-label.la \
2345 libsystemd-shared.la
2347 # ------------------------------------------------------------------------------
2348 systemd_fstab_generator_SOURCES = \
2349 src/fstab-generator/fstab-generator.c \
2350 src/core/mount-setup.c
2352 systemd_fstab_generator_LDADD = \
2353 libsystemd-label.la \
2354 libsystemd-shared.la
2356 # ------------------------------------------------------------------------------
2357 systemd_system_update_generator_SOURCES = \
2358 src/system-update-generator/system-update-generator.c
2360 systemd_system_update_generator_LDADD = \
2361 libsystemd-label.la \
2362 libsystemd-shared.la
2364 # ------------------------------------------------------------------------------
2366 systemgenerator_PROGRAMS += \
2367 systemd-hibernate-resume-generator
2369 rootlibexec_PROGRAMS += \
2370 systemd-hibernate-resume
2372 systemd_hibernate_resume_SOURCES = \
2373 src/hibernate-resume/hibernate-resume.c
2375 systemd_hibernate_resume_LDADD = \
2376 libsystemd-internal.la \
2377 libsystemd-shared.la
2379 systemd_hibernate_resume_generator_SOURCES = \
2380 src/hibernate-resume/hibernate-resume-generator.c
2382 systemd_hibernate_resume_generator_LDADD = \
2383 libsystemd-label.la \
2384 libsystemd-shared.la
2387 units/systemd-hibernate.service.in \
2388 units/systemd-hibernate-resume@.service.in \
2389 units/systemd-hybrid-sleep.service.in
2391 dist_systemunit_DATA += \
2392 units/hibernate.target \
2393 units/hybrid-sleep.target
2395 nodist_systemunit_DATA += \
2396 units/systemd-hibernate.service \
2397 units/systemd-hibernate-resume@.service \
2398 units/systemd-hybrid-sleep.service
2401 # ------------------------------------------------------------------------------
2403 systemgenerator_PROGRAMS += \
2404 systemd-efi-boot-generator
2406 systemd_efi_boot_generator_SOURCES = \
2407 src/efi-boot-generator/efi-boot-generator.c
2409 systemd_efi_boot_generator_LDADD = \
2410 libsystemd-label.la \
2411 libsystemd-shared.la
2413 # ------------------------------------------------------------------------------
2416 src/boot/boot-loader.h \
2417 src/boot/bootctl.c \
2418 src/boot/boot-loader.c \
2422 libsystemd-shared.la \
2423 libsystemd-internal.la
2428 dist_bashcompletion_DATA += \
2429 shell-completion/bash/bootctl
2431 dist_zshcompletion_DATA += \
2432 shell-completion/zsh/_bootctl
2436 # ------------------------------------------------------------------------------
2438 systemgenerator_PROGRAMS += \
2439 systemd-gpt-auto-generator
2441 systemd_gpt_auto_generator_SOURCES = \
2442 src/gpt-auto-generator/gpt-auto-generator.c \
2443 src/shared/blkid-util.h
2445 systemd_gpt_auto_generator_LDADD = \
2446 libsystemd-label.la \
2447 libsystemd-internal.la \
2448 libudev-internal.la \
2449 libsystemd-shared.la \
2452 systemd_gpt_auto_generator_CFLAGS = \
2457 # ------------------------------------------------------------------------------
2459 systemgenerator_PROGRAMS += \
2460 systemd-dbus1-generator
2462 systemd_dbus1_generator_SOURCES = \
2463 src/dbus1-generator/dbus1-generator.c
2465 systemd_dbus1_generator_LDADD = \
2466 libsystemd-label.la \
2467 libsystemd-internal.la \
2468 libsystemd-shared.la
2470 dbus1-generator-install-hook:
2471 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2472 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2473 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2475 dbus1-generator-uninstall-hook:
2476 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2478 dist_xinitrc_SCRIPTS = \
2479 xorg/50-systemd-user.sh
2481 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2482 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2485 # ------------------------------------------------------------------------------
2486 systemd_sysv_generator_SOURCES = \
2487 src/sysv-generator/sysv-generator.c
2489 systemd_sysv_generator_LDADD = \
2490 libsystemd-core.la \
2491 libsystemd-label.la \
2492 libsystemd-shared.la
2494 # ------------------------------------------------------------------------------
2495 systemd_rc_local_generator_SOURCES = \
2496 src/rc-local-generator/rc-local-generator.c
2498 systemd_rc_local_generator_LDADD = \
2499 libsystemd-label.la \
2500 libsystemd-shared.la
2502 # ------------------------------------------------------------------------------
2503 systemd_remount_fs_SOURCES = \
2504 src/remount-fs/remount-fs.c \
2505 src/core/mount-setup.c \
2506 src/core/mount-setup.h
2508 systemd_remount_fs_LDADD = \
2509 libsystemd-label.la \
2510 libsystemd-shared.la
2512 # ------------------------------------------------------------------------------
2513 systemd_cgroups_agent_SOURCES = \
2514 src/cgroups-agent/cgroups-agent.c
2516 systemd_cgroups_agent_LDADD = \
2517 libsystemd-internal.la \
2518 libsystemd-shared.la
2520 # ------------------------------------------------------------------------------
2521 systemd_escape_SOURCES = \
2524 systemd_escape_LDADD = \
2525 libsystemd-shared.la
2527 # -----------------------------------------------------------------------------
2528 systemctl_SOURCES = \
2529 src/systemctl/systemctl.c
2532 libsystemd-units.la \
2533 libsystemd-label.la \
2534 libsystemd-internal.la \
2535 libsystemd-logs.la \
2536 libsystemd-journal-internal.la \
2537 libsystemd-shared.la
2539 # ------------------------------------------------------------------------------
2540 systemd_notify_SOURCES = \
2543 systemd_notify_LDADD = \
2544 libsystemd-internal.la \
2545 libsystemd-shared.la
2547 # ------------------------------------------------------------------------------
2548 systemd_path_SOURCES = \
2551 systemd_path_LDADD = \
2552 libsystemd-internal.la \
2553 libsystemd-shared.la
2555 # ------------------------------------------------------------------------------
2556 systemd_ask_password_SOURCES = \
2557 src/ask-password/ask-password.c
2559 systemd_ask_password_LDADD = \
2560 libsystemd-label.la \
2561 libsystemd-shared.la
2563 # ------------------------------------------------------------------------------
2564 systemd_reply_password_SOURCES = \
2565 src/reply-password/reply-password.c
2567 systemd_reply_password_LDADD = \
2568 libsystemd-shared.la
2570 # ------------------------------------------------------------------------------
2571 systemd_cgls_SOURCES = \
2574 systemd_cgls_LDADD = \
2575 libsystemd-internal.la \
2576 libsystemd-shared.la
2578 # ------------------------------------------------------------------------------
2579 systemd_cgtop_SOURCES = \
2582 systemd_cgtop_LDADD = \
2583 libsystemd-shared.la
2585 # ------------------------------------------------------------------------------
2586 systemd_nspawn_SOURCES = \
2587 src/nspawn/nspawn.c \
2588 src/core/mount-setup.c \
2589 src/core/mount-setup.h \
2590 src/core/loopback-setup.c \
2591 src/core/loopback-setup.h
2593 systemd_nspawn_CFLAGS = \
2598 systemd_nspawn_LDADD = \
2599 libsystemd-label.la \
2600 libsystemd-internal.la \
2601 libudev-internal.la \
2602 libsystemd-shared.la \
2606 systemd_nspawn_LDADD += \
2607 libsystemd-seccomp.la \
2611 # ------------------------------------------------------------------------------
2612 systemd_run_SOURCES = \
2615 systemd_run_LDADD = \
2616 libsystemd-label.la \
2617 libsystemd-internal.la \
2618 libsystemd-shared.la
2620 # ------------------------------------------------------------------------------
2621 systemd_bus_proxyd_SOURCES = \
2622 src/bus-proxyd/bus-proxyd.c \
2623 src/bus-proxyd/bus-xml-policy.c \
2624 src/bus-proxyd/bus-xml-policy.h
2626 systemd_bus_proxyd_LDADD = \
2627 libsystemd-internal.la \
2628 libsystemd-shared.la
2630 bus-proxyd-install-hook:
2631 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2632 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2633 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2635 bus-proxyd-uninstall-hook:
2636 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2638 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2639 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2642 nodist_systemunit_DATA += \
2643 units/systemd-bus-proxyd@.service
2645 dist_systemunit_DATA += \
2646 units/systemd-bus-proxyd.socket
2648 nodist_userunit_DATA += \
2649 units/user/systemd-bus-proxyd@.service
2651 dist_userunit_DATA += \
2652 units/user/systemd-bus-proxyd.socket
2656 units/systemd-bus-proxyd@.service.m4.in \
2657 units/user/systemd-bus-proxyd@.service.in
2660 units/systemd-bus-proxyd@.service.m4
2663 bus-proxyd-set-cap-hook:
2664 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2666 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2669 # ------------------------------------------------------------------------------
2670 systemd_tty_ask_password_agent_SOURCES = \
2671 src/tty-ask-password-agent/tty-ask-password-agent.c
2673 systemd_tty_ask_password_agent_LDADD = \
2674 libsystemd-label.la \
2675 libsystemd-shared.la
2677 # ------------------------------------------------------------------------------
2678 libsystemd_internal_la_SOURCES = \
2679 src/systemd/sd-bus.h \
2680 src/systemd/sd-bus-protocol.h \
2681 src/systemd/sd-bus-vtable.h \
2682 src/systemd/sd-utf8.h \
2683 src/systemd/sd-event.h \
2684 src/systemd/sd-rtnl.h \
2685 src/systemd/sd-resolve.h \
2686 src/systemd/sd-login.h \
2687 src/systemd/sd-id128.h \
2688 src/systemd/sd-daemon.h \
2689 src/systemd/sd-path.h \
2690 src/systemd/sd-network.h \
2691 src/systemd/sd-hwdb.h \
2692 src/libsystemd/sd-bus/sd-bus.c \
2693 src/libsystemd/sd-bus/bus-control.c \
2694 src/libsystemd/sd-bus/bus-control.h \
2695 src/libsystemd/sd-bus/bus-error.c \
2696 src/libsystemd/sd-bus/bus-error.h \
2697 src/libsystemd/sd-bus/bus-common-errors.h \
2698 src/libsystemd/sd-bus/bus-common-errors.c \
2699 src/libsystemd/sd-bus/bus-internal.c \
2700 src/libsystemd/sd-bus/bus-internal.h \
2701 src/libsystemd/sd-bus/bus-socket.c \
2702 src/libsystemd/sd-bus/bus-socket.h \
2703 src/libsystemd/sd-bus/bus-kernel.c \
2704 src/libsystemd/sd-bus/bus-kernel.h \
2705 src/libsystemd/sd-bus/bus-container.c \
2706 src/libsystemd/sd-bus/bus-container.h \
2707 src/libsystemd/sd-bus/bus-message.c \
2708 src/libsystemd/sd-bus/bus-message.h \
2709 src/libsystemd/sd-bus/bus-creds.c \
2710 src/libsystemd/sd-bus/bus-creds.h \
2711 src/libsystemd/sd-bus/bus-signature.c \
2712 src/libsystemd/sd-bus/bus-signature.h \
2713 src/libsystemd/sd-bus/bus-type.c \
2714 src/libsystemd/sd-bus/bus-type.h \
2715 src/libsystemd/sd-bus/bus-match.c \
2716 src/libsystemd/sd-bus/bus-match.h \
2717 src/libsystemd/sd-bus/bus-bloom.c \
2718 src/libsystemd/sd-bus/bus-bloom.h \
2719 src/libsystemd/sd-bus/bus-introspect.c \
2720 src/libsystemd/sd-bus/bus-introspect.h \
2721 src/libsystemd/sd-bus/bus-objects.c \
2722 src/libsystemd/sd-bus/bus-objects.h \
2723 src/libsystemd/sd-bus/bus-gvariant.c \
2724 src/libsystemd/sd-bus/bus-gvariant.h \
2725 src/libsystemd/sd-bus/bus-convenience.c \
2726 src/libsystemd/sd-bus/bus-track.c \
2727 src/libsystemd/sd-bus/bus-track.h \
2728 src/libsystemd/sd-bus/bus-util.c \
2729 src/libsystemd/sd-bus/bus-util.h \
2730 src/libsystemd/sd-bus/bus-slot.c \
2731 src/libsystemd/sd-bus/bus-slot.h \
2732 src/libsystemd/sd-bus/bus-protocol.h \
2733 src/libsystemd/sd-bus/kdbus.h \
2734 src/libsystemd/sd-utf8/sd-utf8.c \
2735 src/libsystemd/sd-event/sd-event.c \
2736 src/libsystemd/sd-event/event-util.h \
2737 src/libsystemd/sd-rtnl/sd-rtnl.c \
2738 src/libsystemd/sd-rtnl/rtnl-internal.h \
2739 src/libsystemd/sd-rtnl/rtnl-message.c \
2740 src/libsystemd/sd-rtnl/rtnl-types.h \
2741 src/libsystemd/sd-rtnl/rtnl-types.c \
2742 src/libsystemd/sd-rtnl/rtnl-util.h \
2743 src/libsystemd/sd-rtnl/rtnl-util.c \
2744 src/libsystemd/sd-rtnl/local-addresses.h \
2745 src/libsystemd/sd-rtnl/local-addresses.c \
2746 src/libsystemd/sd-id128/sd-id128.c \
2747 src/libsystemd/sd-daemon/sd-daemon.c \
2748 src/libsystemd/sd-login/sd-login.c \
2749 src/libsystemd/sd-path/sd-path.c \
2750 src/libsystemd/sd-network/sd-network.c \
2751 src/libsystemd/sd-network/network-util.h \
2752 src/libsystemd/sd-network/network-util.c \
2753 src/libsystemd/sd-hwdb/sd-hwdb.c \
2754 src/libsystemd/sd-hwdb/hwdb-util.h \
2755 src/libsystemd/sd-hwdb/hwdb-internal.h
2757 nodist_libsystemd_internal_la_SOURCES = \
2758 src/libsystemd/libsystemd.sym
2760 libsystemd_internal_la_CFLAGS = \
2764 libsystemd_internal_la_LIBADD = \
2767 libsystemd_resolve_la_SOURCES = \
2768 src/libsystemd/sd-resolve/sd-resolve.c \
2769 src/libsystemd/sd-resolve/resolve-util.h
2771 libsystemd_resolve_la_CFLAGS = \
2775 libsystemd_resolve_la_LIBADD = \
2778 noinst_LTLIBRARIES += \
2779 libsystemd-internal.la \
2780 libsystemd-resolve.la
2782 libsystemd_dump_la_SOURCES = \
2783 src/libsystemd/sd-bus/bus-dump.c \
2784 src/libsystemd/sd-bus/bus-dump.h
2786 noinst_LTLIBRARIES += \
2790 src/libsystemd/libsystemd.sym.m4 \
2791 src/libsystemd/libsystemd.pc.in \
2792 src/libsystemd/sd-bus/DIFFERENCES \
2793 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2796 src/libsystemd/libsystemd.sym
2799 src/libsystemd/libsystemd.sym
2801 libsystemd_la_SOURCES = \
2802 $(libsystemd_internal_la_SOURCES) \
2803 $(libsystemd_resolve_la_SOURCES) \
2804 $(libsystemd_journal_internal_la_SOURCES)
2806 nodist_libsystemd_la_SOURCES = \
2807 $(nodist_libsystemd_internal_la_SOURCES)
2809 libsystemd_la_CFLAGS = \
2810 $(libsystemd_internal_la_CFLAGS) \
2811 $(libsystemd_resolve_la_CFLAGS) \
2812 $(libsystemd_journal_internal_la_CFLAGS)
2814 libsystemd_la_LDFLAGS = \
2816 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2817 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2819 libsystemd_la_LIBADD = \
2820 libsystemd-shared.la \
2821 $(libsystemd_internal_la_LIBADD) \
2822 $(libsystemd_journal_internal_la_LIBADD) \
2823 $(libsystemd_resolve_la_LIBADD)
2825 libsystemd-install-hook:
2826 libname=libsystemd.so && $(move-to-rootlibdir)
2828 libsystemd-uninstall-hook:
2829 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2831 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2832 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2834 pkgconfiglib_DATA += \
2835 src/libsystemd/libsystemd.pc
2837 pkginclude_HEADERS += \
2838 src/systemd/sd-login.h \
2839 src/systemd/sd-id128.h \
2840 src/systemd/sd-daemon.h
2843 pkginclude_HEADERS += \
2844 src/systemd/sd-bus.h \
2845 src/systemd/sd-bus-protocol.h \
2846 src/systemd/sd-bus-vtable.h \
2847 src/systemd/sd-utf8.h \
2848 src/systemd/sd-event.h \
2849 src/systemd/sd-rtnl.h \
2850 src/systemd/sd-resolve.h \
2851 src/systemd/sd-path.h
2854 lib_LTLIBRARIES += \
2859 test-bus-signature \
2865 test-bus-kernel-bloom \
2866 test-bus-kernel-benchmark \
2867 test-bus-zero-copy \
2868 test-bus-introspect \
2875 test-local-addresses \
2881 test_bus_marshal_SOURCES = \
2882 src/libsystemd/sd-bus/test-bus-marshal.c
2884 test_bus_marshal_LDADD = \
2885 libsystemd-dump.la \
2886 libsystemd-internal.la \
2887 libsystemd-shared.la \
2891 test_bus_marshal_CFLAGS = \
2896 test_bus_signature_SOURCES = \
2897 src/libsystemd/sd-bus/test-bus-signature.c
2899 test_bus_signature_LDADD = \
2900 libsystemd-internal.la \
2901 libsystemd-shared.la
2903 test_bus_chat_SOURCES = \
2904 src/libsystemd/sd-bus/test-bus-chat.c
2906 test_bus_chat_CFLAGS = \
2910 test_bus_chat_LDADD = \
2911 libsystemd-internal.la \
2912 libsystemd-shared.la
2914 test_bus_cleanup_SOURCES = \
2915 src/libsystemd/sd-bus/test-bus-cleanup.c
2917 test_bus_cleanup_CFLAGS = \
2921 test_bus_cleanup_LDADD = \
2922 libsystemd-internal.la \
2923 libsystemd-shared.la
2925 test_bus_server_SOURCES = \
2926 src/libsystemd/sd-bus/test-bus-server.c
2928 test_bus_server_CFLAGS = \
2932 test_bus_server_LDADD = \
2933 libsystemd-internal.la \
2934 libsystemd-shared.la
2936 test_bus_objects_SOURCES = \
2937 src/libsystemd/sd-bus/test-bus-objects.c
2939 test_bus_objects_CFLAGS = \
2943 test_bus_objects_LDADD = \
2944 libsystemd-dump.la \
2945 libsystemd-internal.la \
2946 libsystemd-shared.la
2948 test_bus_error_SOURCES = \
2949 src/libsystemd/sd-bus/test-bus-error.c
2951 test_bus_error_LDADD = \
2952 libsystemd-internal.la \
2953 libsystemd-shared.la
2955 test_bus_gvariant_SOURCES = \
2956 src/libsystemd/sd-bus/test-bus-gvariant.c
2958 test_bus_gvariant_LDADD = \
2959 libsystemd-dump.la \
2960 libsystemd-internal.la \
2961 libsystemd-shared.la \
2964 test_bus_gvariant_CFLAGS = \
2968 test_bus_creds_SOURCES = \
2969 src/libsystemd/sd-bus/test-bus-creds.c
2971 test_bus_creds_LDADD = \
2972 libsystemd-dump.la \
2973 libsystemd-internal.la \
2974 libsystemd-shared.la
2976 test_bus_match_SOURCES = \
2977 src/libsystemd/sd-bus/test-bus-match.c
2979 test_bus_match_LDADD = \
2980 libsystemd-internal.la \
2981 libsystemd-shared.la
2983 test_bus_kernel_SOURCES = \
2984 src/libsystemd/sd-bus/test-bus-kernel.c
2986 test_bus_kernel_LDADD = \
2987 libsystemd-dump.la \
2988 libsystemd-internal.la \
2989 libsystemd-shared.la
2991 test_bus_kernel_bloom_SOURCES = \
2992 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2994 test_bus_kernel_bloom_LDADD = \
2995 libsystemd-internal.la \
2996 libsystemd-shared.la
2998 test_bus_kernel_benchmark_SOURCES = \
2999 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3001 test_bus_kernel_benchmark_LDADD = \
3002 libsystemd-internal.la \
3003 libsystemd-shared.la
3005 test_bus_zero_copy_SOURCES = \
3006 src/libsystemd/sd-bus/test-bus-zero-copy.c
3008 test_bus_zero_copy_LDADD = \
3009 libsystemd-dump.la \
3010 libsystemd-internal.la \
3011 libsystemd-shared.la
3013 test_bus_introspect_SOURCES = \
3014 src/libsystemd/sd-bus/test-bus-introspect.c
3016 test_bus_introspect_LDADD = \
3017 libsystemd-internal.la \
3018 libsystemd-shared.la
3020 test_event_SOURCES = \
3021 src/libsystemd/sd-event/test-event.c
3023 test_event_LDADD = \
3024 libsystemd-internal.la \
3025 libsystemd-shared.la
3027 test_rtnl_SOURCES = \
3028 src/libsystemd/sd-rtnl/test-rtnl.c
3031 libsystemd-internal.la \
3032 libsystemd-shared.la
3034 test_local_addresses_SOURCES = \
3035 src/libsystemd/sd-rtnl/test-local-addresses.c
3037 test_local_addresses_LDADD = \
3038 libsystemd-internal.la \
3039 libsystemd-shared.la
3041 test_resolve_SOURCES = \
3042 src/libsystemd/sd-resolve/test-resolve.c
3044 test_resolve_LDADD = \
3045 libsystemd-resolve.la \
3046 libsystemd-internal.la \
3047 libsystemd-shared.la
3049 test_resolve_CFLAGS = \
3054 src/libsystemd/sd-bus/busctl.c \
3055 src/libsystemd/sd-bus/busctl-introspect.c \
3056 src/libsystemd/sd-bus/busctl-introspect.h
3059 libsystemd-dump.la \
3060 libsystemd-internal.la \
3061 libsystemd-shared.la
3063 # ------------------------------------------------------------------------------
3064 noinst_LTLIBRARIES += \
3065 libsystemd-network.la
3067 libsystemd_network_la_CFLAGS = \
3071 libsystemd_network_la_SOURCES = \
3072 src/systemd/sd-dhcp-client.h \
3073 src/systemd/sd-dhcp-server.h \
3074 src/systemd/sd-dhcp-lease.h \
3075 src/systemd/sd-ipv4ll.h \
3076 src/systemd/sd-icmp6-nd.h \
3077 src/systemd/sd-dhcp6-client.h \
3078 src/systemd/sd-dhcp6-lease.h \
3079 src/systemd/sd-pppoe.h \
3080 src/systemd/sd-lldp.h \
3081 src/libsystemd-network/sd-dhcp-client.c \
3082 src/libsystemd-network/sd-dhcp-server.c \
3083 src/libsystemd-network/dhcp-network.c \
3084 src/libsystemd-network/dhcp-option.c \
3085 src/libsystemd-network/dhcp-packet.c \
3086 src/libsystemd-network/dhcp-internal.h \
3087 src/libsystemd-network/dhcp-server-internal.h \
3088 src/libsystemd-network/dhcp-protocol.h \
3089 src/libsystemd-network/dhcp-lease-internal.h \
3090 src/libsystemd-network/sd-dhcp-lease.c \
3091 src/libsystemd-network/sd-ipv4ll.c \
3092 src/libsystemd-network/ipv4ll-network.c \
3093 src/libsystemd-network/ipv4ll-packet.c \
3094 src/libsystemd-network/ipv4ll-internal.h \
3095 src/libsystemd-network/sd-pppoe.c \
3096 src/libsystemd-network/network-internal.c \
3097 src/libsystemd-network/network-internal.h \
3098 src/libsystemd-network/sd-icmp6-nd.c \
3099 src/libsystemd-network/sd-dhcp6-client.c \
3100 src/libsystemd-network/dhcp6-internal.h \
3101 src/libsystemd-network/dhcp6-protocol.h \
3102 src/libsystemd-network/dhcp6-network.c \
3103 src/libsystemd-network/dhcp6-option.c \
3104 src/libsystemd-network/dhcp6-lease-internal.h \
3105 src/libsystemd-network/sd-dhcp6-lease.c \
3106 src/libsystemd-network/lldp.h \
3107 src/libsystemd-network/lldp-tlv.h \
3108 src/libsystemd-network/lldp-tlv.c \
3109 src/libsystemd-network/lldp-network.h \
3110 src/libsystemd-network/lldp-network.c \
3111 src/libsystemd-network/lldp-port.h \
3112 src/libsystemd-network/lldp-port.c \
3113 src/libsystemd-network/lldp-internal.h \
3114 src/libsystemd-network/lldp-internal.c \
3115 src/libsystemd-network/lldp-util.h \
3116 src/libsystemd-network/sd-lldp.c
3118 libsystemd_network_la_LIBADD = \
3119 libudev-internal.la \
3120 libsystemd-label.la \
3121 libsystemd-internal.la \
3122 libsystemd-shared.la \
3125 test_dhcp_option_SOURCES = \
3126 src/libsystemd-network/dhcp-protocol.h \
3127 src/libsystemd-network/dhcp-internal.h \
3128 src/libsystemd-network/test-dhcp-option.c
3130 test_dhcp_option_LDADD = \
3131 libsystemd-network.la \
3132 libsystemd-internal.la \
3133 libsystemd-shared.la
3135 test_dhcp_client_SOURCES = \
3136 src/systemd/sd-dhcp-client.h \
3137 src/libsystemd-network/dhcp-protocol.h \
3138 src/libsystemd-network/dhcp-internal.h \
3139 src/libsystemd-network/test-dhcp-client.c
3141 test_dhcp_client_LDADD = \
3142 libsystemd-network.la \
3143 libsystemd-label.la \
3144 libsystemd-internal.la \
3145 libsystemd-shared.la
3147 test_dhcp_server_SOURCES = \
3148 src/libsystemd-network/test-dhcp-server.c
3150 test_dhcp_server_LDADD = \
3151 libsystemd-network.la \
3152 libsystemd-internal.la \
3153 libsystemd-shared.la
3155 test_ipv4ll_SOURCES = \
3156 src/systemd/sd-ipv4ll.h \
3157 src/libsystemd-network/ipv4ll-internal.h \
3158 src/libsystemd-network/test-ipv4ll.c
3160 test_ipv4ll_LDADD = \
3161 libsystemd-network.la \
3162 libsystemd-label.la \
3163 libsystemd-internal.la \
3164 libsystemd-shared.la
3166 test_pppoe_SOURCES = \
3167 src/systemd/sd-pppoe.h \
3168 src/libsystemd-network/test-pppoe.c
3170 test_pppoe_LDADD = \
3171 libsystemd-network.la \
3172 libsystemd-shared.la
3174 test_icmp6_rs_SOURCES = \
3175 src/systemd/sd-dhcp6-client.h \
3176 src/systemd/sd-icmp6-nd.h \
3177 src/libsystemd-network/dhcp6-internal.h \
3178 src/libsystemd-network/test-icmp6-rs.c
3180 test_icmp6_rs_LDADD = \
3181 libsystemd-network.la \
3182 libsystemd-internal.la \
3183 libsystemd-shared.la
3185 test_dhcp6_client_SOURCES = \
3186 src/systemd/sd-dhcp6-client.h \
3187 src/libsystemd-network/dhcp6-internal.h \
3188 src/libsystemd-network/test-dhcp6-client.c
3190 test_dhcp6_client_LDADD = \
3191 libsystemd-network.la \
3192 libsystemd-internal.la \
3193 libsystemd-shared.la
3195 test_lldp_SOURCES = \
3196 src/libsystemd-network/lldp.h \
3197 src/libsystemd-network/lldp-tlv.h \
3198 src/libsystemd-network/lldp-tlv.c \
3199 src/libsystemd-network/test-lldp.c
3202 libsystemd-network.la \
3203 libsystemd-internal.la \
3204 libsystemd-shared.la
3218 # ------------------------------------------------------------------------------
3220 noinst_LTLIBRARIES += \
3221 libsystemd-terminal.la
3223 rootlibexec_PROGRAMS += \
3226 noinst_PROGRAMS += \
3231 dist_pkgdata_DATA += \
3232 src/libsystemd-terminal/unifont-glyph-array.bin
3234 nodist_userunit_DATA += \
3235 units/user/systemd-consoled.service
3237 USER_DEFAULT_TARGET_WANTS += \
3238 systemd-consoled.service
3247 units/user/systemd-consoled.service.in
3249 libsystemd_terminal_la_CFLAGS = \
3253 libsystemd_terminal_la_SOURCES = \
3254 src/libsystemd-terminal/grdev.h \
3255 src/libsystemd-terminal/grdev-internal.h \
3256 src/libsystemd-terminal/grdev.c \
3257 src/libsystemd-terminal/grdev-drm.c \
3258 src/libsystemd-terminal/idev.h \
3259 src/libsystemd-terminal/idev-internal.h \
3260 src/libsystemd-terminal/idev.c \
3261 src/libsystemd-terminal/idev-evdev.c \
3262 src/libsystemd-terminal/idev-keyboard.c \
3263 src/libsystemd-terminal/sysview.h \
3264 src/libsystemd-terminal/sysview-internal.h \
3265 src/libsystemd-terminal/sysview.c \
3266 src/libsystemd-terminal/term.h \
3267 src/libsystemd-terminal/term-internal.h \
3268 src/libsystemd-terminal/term-charset.c \
3269 src/libsystemd-terminal/term-page.c \
3270 src/libsystemd-terminal/term-parser.c \
3271 src/libsystemd-terminal/term-screen.c \
3272 src/libsystemd-terminal/term-wcwidth.c \
3273 src/libsystemd-terminal/unifont.h \
3274 src/libsystemd-terminal/unifont-def.h \
3275 src/libsystemd-terminal/unifont.c
3277 libsystemd_terminal_la_LIBADD = \
3278 libudev-internal.la \
3279 libsystemd-internal.la \
3280 libsystemd-shared.la \
3283 systemd_consoled_CFLAGS = \
3287 systemd_consoled_SOURCES = \
3288 src/console/consoled.h \
3289 src/console/consoled.c \
3290 src/console/consoled-display.c \
3291 src/console/consoled-manager.c \
3292 src/console/consoled-session.c \
3293 src/console/consoled-terminal.c \
3294 src/console/consoled-workspace.c
3296 systemd_consoled_LDADD = \
3297 libsystemd-terminal.la \
3298 libsystemd-internal.la \
3299 libsystemd-shared.la \
3302 systemd_evcat_CFLAGS = \
3306 systemd_evcat_SOURCES = \
3307 src/libsystemd-terminal/evcat.c
3309 systemd_evcat_LDADD = \
3310 libsystemd-terminal.la \
3311 libsystemd-internal.la \
3312 libsystemd-shared.la \
3315 systemd_modeset_CFLAGS = \
3319 systemd_modeset_SOURCES = \
3320 src/libsystemd-terminal/modeset.c
3322 systemd_modeset_LDADD = \
3323 libsystemd-terminal.la \
3324 libsystemd-internal.la \
3325 libsystemd-shared.la \
3328 systemd_subterm_SOURCES = \
3329 src/libsystemd-terminal/subterm.c
3331 systemd_subterm_LDADD = \
3332 libsystemd-terminal.la \
3333 libsystemd-internal.la \
3334 libsystemd-shared.la
3336 test_term_page_SOURCES = \
3337 src/libsystemd-terminal/test-term-page.c
3339 test_term_page_LDADD = \
3340 libsystemd-terminal.la \
3341 libsystemd-internal.la \
3342 libsystemd-shared.la
3344 test_term_parser_SOURCES = \
3345 src/libsystemd-terminal/test-term-parser.c
3347 test_term_parser_LDADD = \
3348 libsystemd-terminal.la \
3349 libsystemd-internal.la \
3350 libsystemd-shared.la
3352 test_unifont_SOURCES = \
3353 src/libsystemd-terminal/test-unifont.c
3355 test_unifont_LDADD = \
3356 libsystemd-terminal.la \
3357 libsystemd-internal.la \
3358 libsystemd-shared.la
3360 .PHONY: update-unifont
3361 update-unifont: tools/compile-unifont.py
3362 $(AM_V_GEN)$(PYTHON) $< \
3363 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3364 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3365 @echo "unifont-glyph-array.bin has been regenerated"
3367 # ------------------------------------------------------------------------------
3377 include_HEADERS += \
3378 src/libudev/libudev.h
3380 lib_LTLIBRARIES += \
3383 libudev_la_SOURCES =\
3384 src/libudev/libudev.sym \
3385 src/libudev/libudev-private.h \
3386 src/libudev/libudev.c \
3387 src/libudev/libudev-list.c \
3388 src/libudev/libudev-util.c \
3389 src/libudev/libudev-device.c \
3390 src/libudev/libudev-enumerate.c \
3391 src/libudev/libudev-monitor.c \
3392 src/libudev/libudev-queue.c \
3393 src/libudev/libudev-hwdb.c
3395 libudev_la_CFLAGS = \
3399 libudev_la_LDFLAGS = \
3401 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3402 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3404 libudev_la_LIBADD = \
3405 libsystemd-internal.la \
3406 libsystemd-shared.la
3408 pkgconfiglib_DATA += \
3409 src/libudev/libudev.pc
3412 src/libudev/libudev.pc.in
3415 src/libudev/libudev.pc \
3420 $(AM_V_at)$(MKDIR_P) $(dir $@)
3421 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3424 $(AM_V_at)$(MKDIR_P) $(dir $@)
3425 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3427 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3428 libudev-install-hook:
3429 libname=libudev.so && $(move-to-rootlibdir)
3431 libudev-uninstall-hook:
3432 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3434 INSTALL_EXEC_HOOKS += libudev-install-hook
3435 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3437 # ------------------------------------------------------------------------------
3438 noinst_LTLIBRARIES += \
3441 libudev_internal_la_SOURCES =\
3442 $(libudev_la_SOURCES) \
3443 src/libudev/libudev-device-private.c
3445 libudev_internal_la_CFLAGS = \
3447 -fvisibility=default
3449 # ------------------------------------------------------------------------------
3451 $(sysconfdir)/udev/rules.d
3453 dist_network_DATA = \
3454 network/99-default.link \
3455 network/80-container-host0.network \
3456 network/80-container-ve.network
3458 dist_udevrules_DATA += \
3459 rules/42-usb-hid-pm.rules \
3460 rules/50-udev-default.rules \
3461 rules/60-drm.rules \
3462 rules/60-keyboard.rules \
3463 rules/70-mouse.rules \
3464 rules/60-persistent-storage-tape.rules \
3465 rules/60-persistent-serial.rules \
3466 rules/60-persistent-input.rules \
3467 rules/60-persistent-alsa.rules \
3468 rules/60-persistent-storage.rules \
3469 rules/64-btrfs.rules \
3470 rules/75-net-description.rules \
3471 rules/75-tty-description.rules \
3472 rules/78-sound-card.rules \
3473 rules/80-net-setup-link.rules \
3474 rules/95-udev-late.rules
3476 nodist_udevrules_DATA += \
3477 rules/99-systemd.rules
3479 udevconfdir = $(sysconfdir)/udev
3480 dist_udevconf_DATA = \
3483 sharepkgconfigdir = $(datadir)/pkgconfig
3484 sharepkgconfig_DATA = \
3488 rules/99-systemd.rules.in \
3492 rules/99-systemd.rules \
3496 units/systemd-udevd.service.in \
3497 units/systemd-udev-trigger.service.in \
3498 units/systemd-udev-settle.service.in
3501 units/systemd-udevd.service \
3502 units/systemd-udev-trigger.service \
3503 units/systemd-udev-settle.service
3505 SOCKETS_TARGET_WANTS += \
3506 systemd-udevd-control.socket \
3507 systemd-udevd-kernel.socket
3509 SYSINIT_TARGET_WANTS += \
3510 systemd-udevd.service \
3511 systemd-udev-trigger.service
3513 rootbin_PROGRAMS += \
3516 rootlibexec_PROGRAMS += \
3519 noinst_LTLIBRARIES += \
3522 src/udev/keyboard-keys.txt:
3523 $(AM_V_at)$(MKDIR_P) $(dir $@)
3524 $(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/' > $@
3526 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3527 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3529 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3530 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3532 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3533 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3535 libudev_core_la_SOURCES = \
3537 src/udev/udev-event.c \
3538 src/udev/udev-watch.c \
3539 src/udev/udev-node.c \
3540 src/udev/udev-rules.c \
3541 src/udev/udev-ctrl.c \
3542 src/udev/udev-builtin.c \
3543 src/udev/udev-builtin-btrfs.c \
3544 src/udev/udev-builtin-hwdb.c \
3545 src/udev/udev-builtin-input_id.c \
3546 src/udev/udev-builtin-keyboard.c \
3547 src/udev/udev-builtin-net_id.c \
3548 src/udev/udev-builtin-net_setup_link.c \
3549 src/udev/udev-builtin-path_id.c \
3550 src/udev/udev-builtin-usb_id.c \
3551 src/udev/net/link-config.h \
3552 src/udev/net/link-config.c \
3553 src/udev/net/ethtool-util.h \
3554 src/udev/net/ethtool-util.c
3556 nodist_libudev_core_la_SOURCES = \
3557 src/udev/keyboard-keys-from-name.h \
3558 src/udev/keyboard-keys-to-name.h \
3559 src/udev/net/link-config-gperf.c
3562 $(nodist_libudev_core_la_SOURCES)
3565 src/udev/keyboard-keys-from-name.gperf \
3566 src/udev/keyboard-keys.txt \
3567 src/udev/net/link-config-gperf.c
3570 src/udev/net/link-config-gperf.gperf
3572 libudev_core_la_CFLAGS = \
3577 libudev_core_la_LIBADD = \
3578 libudev-internal.la \
3579 libsystemd-label.la \
3580 libsystemd-internal.la \
3581 libsystemd-network.la \
3582 libsystemd-shared.la \
3587 libudev_core_la_SOURCES += \
3588 src/udev/udev-builtin-kmod.c
3590 dist_udevrules_DATA += \
3591 rules/80-drivers.rules
3595 libudev_core_la_SOURCES += \
3596 src/udev/udev-builtin-blkid.c
3600 libudev_core_la_SOURCES += \
3601 src/udev/udev-builtin-uaccess.c \
3602 src/login/logind-acl.c \
3603 src/libsystemd/sd-login/sd-login.c \
3604 src/systemd/sd-login.h
3606 libudev_core_la_LIBADD += \
3610 systemd_udevd_SOURCES = \
3613 systemd_udevd_LDADD = \
3617 src/udev/udevadm.c \
3618 src/udev/udevadm-info.c \
3619 src/udev/udevadm-control.c \
3620 src/udev/udevadm-monitor.c \
3621 src/udev/udevadm-hwdb.c \
3622 src/udev/udevadm-settle.c \
3623 src/udev/udevadm-trigger.c \
3624 src/udev/udevadm-test.c \
3625 src/udev/udevadm-test-builtin.c \
3626 src/udev/udevadm-util.c \
3627 src/udev/udevadm-util.h
3632 # ------------------------------------------------------------------------------
3635 $(sysconfdir)/udev/hwdb.d
3637 systemd_hwdb_SOURCES = \
3638 src/libsystemd/sd-hwdb/hwdb-internal.h \
3641 systemd_hwdb_LDADD = \
3642 libsystemd-shared.la \
3643 libsystemd-internal.la \
3646 rootbin_PROGRAMS += \
3649 dist_udevhwdb_DATA = \
3650 hwdb/20-pci-vendor-model.hwdb \
3651 hwdb/20-pci-classes.hwdb \
3652 hwdb/20-usb-vendor-model.hwdb \
3653 hwdb/20-usb-classes.hwdb \
3654 hwdb/20-sdio-vendor-model.hwdb \
3655 hwdb/20-sdio-classes.hwdb \
3656 hwdb/20-bluetooth-vendor-product.hwdb \
3657 hwdb/20-acpi-vendor.hwdb \
3659 hwdb/20-net-ifname.hwdb \
3660 hwdb/60-keyboard.hwdb \
3664 units/systemd-hwdb-update.service.in
3667 units/systemd-hwdb-update.service
3669 SYSINIT_TARGET_WANTS += \
3670 systemd-hwdb-update.service
3672 # Update hwdb on installation. Do not bother if installing
3673 # in DESTDIR, since this is likely for packaging purposes.
3675 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3677 INSTALL_DATA_HOOKS += \
3681 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3684 # ------------------------------------------------------------------------------
3693 test_libudev_SOURCES = \
3694 src/test/test-libudev.c
3696 test_libudev_LDADD = \
3697 libsystemd-label.la \
3698 libudev-internal.la \
3699 libsystemd-shared.la \
3700 libsystemd-internal.la
3702 test_udev_SOURCES = \
3703 src/test/test-udev.c
3712 test_udev_LDADD += \
3719 # packed sysfs test tree
3721 $(AM_V_at)$(MKDIR_P) $(dir $@)
3722 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3726 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3731 test/rules-test.sh \
3732 test/rule-syntax-check.py
3734 # ------------------------------------------------------------------------------
3736 src/udev/ata_id/ata_id.c
3739 libudev-internal.la \
3740 libsystemd-shared.la
3742 udevlibexec_PROGRAMS += \
3745 # ------------------------------------------------------------------------------
3746 cdrom_id_SOURCES = \
3747 src/udev/cdrom_id/cdrom_id.c
3750 libudev-internal.la \
3751 libsystemd-shared.la
3753 udevlibexec_PROGRAMS += \
3756 dist_udevrules_DATA += \
3757 rules/60-cdrom_id.rules
3759 # ------------------------------------------------------------------------------
3761 src/udev/collect/collect.c
3764 libudev-internal.la \
3765 libsystemd-shared.la
3767 udevlibexec_PROGRAMS += \
3770 # ------------------------------------------------------------------------------
3772 src/udev/scsi_id/scsi_id.c \
3773 src/udev/scsi_id/scsi_serial.c \
3774 src/udev/scsi_id/scsi.h \
3775 src/udev/scsi_id/scsi_id.h
3778 libudev-internal.la \
3779 libsystemd-shared.la
3781 udevlibexec_PROGRAMS += \
3785 src/udev/scsi_id/README
3787 # ------------------------------------------------------------------------------
3789 src/udev/v4l_id/v4l_id.c
3792 libudev-internal.la \
3793 libsystemd-shared.la
3795 udevlibexec_PROGRAMS += \
3798 dist_udevrules_DATA += \
3799 rules/60-persistent-v4l.rules
3801 # ------------------------------------------------------------------------------
3802 accelerometer_SOURCES = \
3803 src/udev/accelerometer/accelerometer.c
3805 accelerometer_LDADD = \
3806 libudev-internal.la -lm \
3807 libsystemd-shared.la
3809 udevlibexec_PROGRAMS += \
3812 dist_udevrules_DATA += \
3813 rules/61-accelerometer.rules
3815 # ------------------------------------------------------------------------------
3822 libgudev_includedir = \
3823 $(includedir)/gudev-1.0/gudev
3825 libgudev_include_HEADERS = \
3827 src/gudev/gudevenums.h \
3828 src/gudev/gudevenumtypes.h \
3829 src/gudev/gudevtypes.h \
3830 src/gudev/gudevclient.h \
3831 src/gudev/gudevdevice.h \
3832 src/gudev/gudevenumerator.h
3834 lib_LTLIBRARIES += libgudev-1.0.la
3836 pkgconfiglib_DATA += \
3837 src/gudev/gudev-1.0.pc
3840 src/gudev/gudev-1.0.pc
3842 libgudev_1_0_la_SOURCES = \
3843 src/gudev/libgudev-1.0.sym \
3844 src/gudev/gudevenums.h \
3845 src/gudev/gudevenumtypes.h \
3846 src/gudev/gudevenumtypes.h\
3847 src/gudev/gudevtypes.h \
3848 src/gudev/gudevclient.h \
3849 src/gudev/gudevclient.c \
3850 src/gudev/gudevdevice.h \
3851 src/gudev/gudevdevice.c \
3852 src/gudev/gudevenumerator.h \
3853 src/gudev/gudevenumerator.c \
3854 src/gudev/gudevprivate.h
3856 nodist_libgudev_1_0_la_SOURCES = \
3857 src/gudev/gudevmarshal.h \
3858 src/gudev/gudevmarshal.c \
3859 src/gudev/gudevenumtypes.h \
3860 src/gudev/gudevenumtypes.c
3863 $(nodist_libgudev_1_0_la_SOURCES)
3865 libgudev_1_0_la_CPPFLAGS = \
3867 -I$(top_builddir)/src\
3868 -I$(top_srcdir)/src\
3869 -I$(top_builddir)/src/gudev \
3870 -I$(top_srcdir)/src/gudev \
3871 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3872 -D_GUDEV_COMPILATION \
3873 -DG_LOG_DOMAIN=\"GUdev\"
3875 libgudev_1_0_la_CFLAGS = \
3877 -fvisibility=default \
3880 libgudev_1_0_la_LIBADD = \
3884 libgudev_1_0_la_LDFLAGS = \
3886 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3889 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3891 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3892 $(AM_V_at)$(MKDIR_P) $(dir $@)
3893 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3895 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3896 $(AM_V_at)$(MKDIR_P) $(dir $@)
3897 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3898 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3900 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3901 $(AM_V_at)$(MKDIR_P) $(dir $@)
3902 $(AM_V_GEN)glib-mkenums --template $^ > $@
3904 if HAVE_INTROSPECTION
3905 -include $(INTROSPECTION_MAKEFILE)
3907 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3909 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3911 src_gudev_GUdev_1_0_gir_CFLAGS = \
3914 -D_GUDEV_COMPILATION \
3915 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3916 -I$(top_srcdir)/src \
3917 -I$(top_builddir)/src \
3918 -I$(top_srcdir)/src/gudev \
3919 -I$(top_builddir)/src/gudev
3921 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3923 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3924 --pkg-export=gudev-1.0 \
3927 src_gudev_GUdev_1_0_gir_FILES = \
3929 src/gudev/gudevtypes.h \
3930 src/gudev/gudevenums.h \
3931 src/gudev/gudevenumtypes.h \
3932 src/gudev/gudevclient.h \
3933 src/gudev/gudevdevice.h \
3934 src/gudev/gudevenumerator.h \
3935 src/gudev/gudevclient.c \
3936 src/gudev/gudevdevice.c \
3937 src/gudev/gudevenumerator.c
3939 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3940 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3942 girdir = $(datadir)/gir-1.0
3944 src/gudev/GUdev-1.0.gir
3946 typelibsdir = $(libdir)/girepository-1.0
3948 src/gudev/GUdev-1.0.typelib
3950 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3951 endif # HAVE_INTROSPECTION
3955 src/gudev/gudev-1.0.pc.in \
3956 src/gudev/gudevmarshal.list \
3957 src/gudev/gudevenumtypes.h.template \
3958 src/gudev/gudevenumtypes.c.template \
3959 src/gudev/gjs-example.js \
3960 src/gudev/seed-example-enum.js \
3961 src/gudev/seed-example.js
3963 # ------------------------------------------------------------------------------
3964 mtd_probe_SOURCES = \
3965 src/udev/mtd_probe/mtd_probe.c \
3966 src/udev/mtd_probe/mtd_probe.h \
3967 src/udev/mtd_probe/probe_smartmedia.c
3969 dist_udevrules_DATA += \
3970 rules/75-probe_mtd.rules
3972 udevlibexec_PROGRAMS += \
3975 # ------------------------------------------------------------------------------
3976 test_id128_SOURCES = \
3977 src/test/test-id128.c
3979 test_id128_LDADD = \
3980 libsystemd-internal.la \
3981 libsystemd-shared.la
3986 # ------------------------------------------------------------------------------
3988 rootlibexec_PROGRAMS += \
3991 systemd_activate_SOURCES = \
3992 src/activate/activate.c
3994 systemd_activate_LDADD = \
3995 libsystemd-label.la \
3996 libsystemd-internal.la \
3997 libsystemd-shared.la
3999 # ------------------------------------------------------------------------------
4000 systemd_journald_SOURCES = \
4001 src/journal/journald.c \
4002 src/journal/journald-server.h
4004 systemd_journald_LDADD = \
4005 libsystemd-journal-core.la \
4006 libsystemd-internal.la \
4007 libsystemd-shared.la
4009 systemd_cat_SOURCES = \
4012 systemd_cat_LDADD = \
4013 libsystemd-journal-core.la
4016 rootlibexec_PROGRAMS += \
4017 systemd-journal-remote
4019 systemd_journal_remote_SOURCES = \
4020 src/journal-remote/journal-remote-parse.h \
4021 src/journal-remote/journal-remote-parse.c \
4022 src/journal-remote/journal-remote-write.h \
4023 src/journal-remote/journal-remote-write.c \
4024 src/journal-remote/journal-remote.h \
4025 src/journal-remote/journal-remote.c
4027 systemd_journal_remote_LDADD = \
4028 libsystemd-internal.la \
4029 libsystemd-journal-core.la
4031 systemd_journal_remote_SOURCES += \
4032 src/journal-remote/microhttpd-util.h \
4033 src/journal-remote/microhttpd-util.c
4035 systemd_journal_remote_CFLAGS = \
4037 $(MICROHTTPD_CFLAGS)
4039 systemd_journal_remote_LDADD += \
4043 dist_sysusers_DATA += \
4044 sysusers.d/systemd-remote.conf
4048 dist_tmpfiles_DATA += \
4049 tmpfiles.d/systemd-remote.conf
4053 systemd_journal_remote_LDADD += \
4056 # systemd-journal-remote make sense mostly with full crypto stack
4057 dist_systemunit_DATA += \
4058 units/systemd-journal-remote.socket
4060 nodist_systemunit_DATA += \
4061 units/systemd-journal-remote.service
4064 units/systemd-journal-remote.service.in
4066 journal-remote-install-hook: journal-install-hook
4067 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4068 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4069 -chmod 755 $(DESTDIR)/var/log/journal/remote
4071 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4075 nodist_pkgsysconf_DATA += \
4076 src/journal-remote/journal-remote.conf
4079 src/journal-remote/journal-remote.conf.in
4082 src/journal-remote/journal-remote.conf
4086 rootlibexec_PROGRAMS += \
4087 systemd-journal-upload
4089 systemd_journal_upload_SOURCES = \
4090 src/journal-remote/journal-upload.h \
4091 src/journal-remote/journal-upload.c \
4092 src/journal-remote/journal-upload-journal.c
4094 systemd_journal_upload_CFLAGS = \
4098 systemd_journal_upload_LDADD = \
4099 libsystemd-internal.la \
4100 libsystemd-journal-internal.la \
4101 libsystemd-shared.la \
4104 nodist_systemunit_DATA += \
4105 units/systemd-journal-upload.service
4108 units/systemd-journal-upload.service.in
4110 nodist_pkgsysconf_DATA += \
4111 src/journal-remote/journal-upload.conf
4114 src/journal-remote/journal-upload.conf.in
4117 src/journal-remote/journal-upload.conf
4120 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4121 journalctl_CFLAGS = \
4124 journalctl_SOURCES = \
4125 src/journal/journalctl.c
4127 journalctl_LDADD = \
4128 libsystemd-journal-internal.la \
4129 libsystemd-internal.la \
4130 libsystemd-logs.la \
4131 libsystemd-shared.la
4134 journalctl_LDADD += \
4139 journalctl_SOURCES += \
4140 src/journal/journal-qrcode.c \
4141 src/journal/journal-qrcode.h
4143 journalctl_CFLAGS += \
4146 journalctl_LDADD += \
4150 test_journal_SOURCES = \
4151 src/journal/test-journal.c
4153 test_journal_LDADD = \
4154 libsystemd-journal-core.la
4156 test_journal_send_SOURCES = \
4157 src/journal/test-journal-send.c
4159 test_journal_send_LDADD = \
4160 libsystemd-journal-core.la
4162 test_journal_syslog_SOURCES = \
4163 src/journal/test-journal-syslog.c
4165 test_journal_syslog_LDADD = \
4166 libsystemd-journal-core.la
4168 test_journal_match_SOURCES = \
4169 src/journal/test-journal-match.c
4171 test_journal_match_LDADD = \
4172 libsystemd-journal-core.la
4174 test_journal_enum_SOURCES = \
4175 src/journal/test-journal-enum.c
4177 test_journal_enum_LDADD = \
4178 libsystemd-journal-core.la
4180 test_journal_stream_SOURCES = \
4181 src/journal/test-journal-stream.c
4183 test_journal_stream_LDADD = \
4184 libsystemd-journal-core.la
4186 test_journal_flush_SOURCES = \
4187 src/journal/test-journal-flush.c
4189 test_journal_flush_LDADD = \
4190 libsystemd-journal-core.la
4192 test_journal_init_SOURCES = \
4193 src/journal/test-journal-init.c
4195 test_journal_init_LDADD = \
4196 libsystemd-journal-core.la
4198 test_journal_verify_SOURCES = \
4199 src/journal/test-journal-verify.c
4201 test_journal_verify_LDADD = \
4202 libsystemd-journal-core.la
4204 test_journal_interleaving_SOURCES = \
4205 src/journal/test-journal-interleaving.c
4207 test_journal_interleaving_LDADD = \
4208 libsystemd-journal-core.la
4210 test_mmap_cache_SOURCES = \
4211 src/journal/test-mmap-cache.c
4213 test_mmap_cache_LDADD = \
4214 libsystemd-journal-core.la
4216 test_catalog_SOURCES = \
4217 src/journal/test-catalog.c
4219 test_catalog_CPPFLAGS = \
4221 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4223 test_catalog_LDADD = \
4224 libsystemd-journal-core.la
4226 test_compress_SOURCES = \
4227 src/journal/test-compress.c
4229 test_compress_LDADD = \
4230 libsystemd-journal-internal.la \
4231 libsystemd-shared.la
4233 test_compress_benchmark_SOURCES = \
4234 src/journal/test-compress-benchmark.c
4236 test_compress_benchmark_LDADD = \
4237 libsystemd-journal-internal.la \
4238 libsystemd-shared.la
4240 libsystemd_journal_core_la_SOURCES = \
4241 src/journal/journald-kmsg.c \
4242 src/journal/journald-kmsg.h \
4243 src/journal/journald-syslog.c \
4244 src/journal/journald-syslog.h \
4245 src/journal/journald-stream.c \
4246 src/journal/journald-stream.h \
4247 src/journal/journald-server.c \
4248 src/journal/journald-server.h \
4249 src/journal/journald-console.c \
4250 src/journal/journald-console.h \
4251 src/journal/journald-wall.c \
4252 src/journal/journald-wall.h \
4253 src/journal/journald-native.c \
4254 src/journal/journald-native.h \
4255 src/journal/journald-audit.c \
4256 src/journal/journald-audit.h \
4257 src/journal/journald-rate-limit.c \
4258 src/journal/journald-rate-limit.h \
4259 src/journal/journal-internal.h
4261 nodist_libsystemd_journal_core_la_SOURCES = \
4262 src/journal/journald-gperf.c
4264 libsystemd_journal_core_la_LIBADD = \
4265 libsystemd-journal-internal.la \
4266 libudev-internal.la \
4267 libsystemd-label.la \
4268 libsystemd-internal.la \
4269 libsystemd-shared.la
4272 libsystemd_journal_core_la_LIBADD += \
4276 noinst_LTLIBRARIES += \
4277 libsystemd-journal-core.la
4279 journal-install-hook:
4280 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4281 -chown 0:0 $(DESTDIR)/var/log/journal
4282 -chmod 755 $(DESTDIR)/var/log/journal
4283 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4284 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4286 journal-uninstall-hook:
4287 -rmdir $(DESTDIR)/var/log/journal/remote
4288 -rmdir $(DESTDIR)/var/log/journal/
4290 INSTALL_EXEC_HOOKS += journal-install-hook
4291 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4293 # ------------------------------------------------------------------------------
4294 # Update catalog on installation. Do not bother if installing
4295 # in DESTDIR, since this is likely for packaging purposes.
4296 catalog-update-hook:
4297 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4299 INSTALL_DATA_HOOKS += \
4302 catalog-remove-hook:
4303 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4305 UNINSTALL_DATA_HOOKS += \
4314 test-journal-syslog \
4315 test-journal-match \
4316 test-journal-stream \
4318 test-journal-verify \
4319 test-journal-interleaving \
4320 test-journal-flush \
4327 test-compress-benchmark
4330 pkginclude_HEADERS += \
4331 src/systemd/sd-journal.h \
4332 src/systemd/sd-messages.h \
4333 src/systemd/_sd-common.h
4335 libsystemd_journal_internal_la_SOURCES = \
4336 src/journal/sd-journal.c \
4337 src/systemd/sd-journal.h \
4338 src/systemd/_sd-common.h \
4339 src/journal/journal-file.c \
4340 src/journal/journal-file.h \
4341 src/journal/journal-vacuum.c \
4342 src/journal/journal-vacuum.h \
4343 src/journal/journal-verify.c \
4344 src/journal/journal-verify.h \
4345 src/journal/lookup3.c \
4346 src/journal/lookup3.h \
4347 src/journal/journal-send.c \
4348 src/journal/journal-def.h \
4349 src/journal/compress.h \
4350 src/journal/catalog.c \
4351 src/journal/catalog.h \
4352 src/journal/mmap-cache.c \
4353 src/journal/mmap-cache.h
4355 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4356 libsystemd_journal_internal_la_CFLAGS = \
4359 libsystemd_journal_internal_la_LIBADD =
4361 libsystemd_journal_internal_la_SOURCES += \
4362 src/journal/compress.c
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 \
5005 rootlibexec_PROGRAMS += \
5008 nodist_systemunit_DATA += \
5009 units/systemd-timesyncd.service
5011 GENERAL_ALIASES += \
5012 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5015 units/systemd-timesyncd.service.in
5017 nodist_pkgsysconf_DATA += \
5018 src/timesync/timesyncd.conf
5021 src/timesync/timesyncd.conf.in
5024 src/timesync/timesyncd.conf
5027 # ------------------------------------------------------------------------------
5029 libnss_myhostname_la_SOURCES = \
5030 src/nss-myhostname/nss-myhostname.sym \
5031 src/nss-myhostname/nss-myhostname.c
5033 libnss_myhostname_la_LDFLAGS = \
5040 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5042 libnss_myhostname_la_LIBADD = \
5043 libsystemd-shared.la \
5044 libsystemd-internal.la
5046 lib_LTLIBRARIES += \
5047 libnss_myhostname.la
5050 # ------------------------------------------------------------------------------
5052 systemd_machined_SOURCES = \
5053 src/machine/machined.c \
5054 src/machine/machined.h
5056 systemd_machined_LDADD = \
5057 libsystemd-machine-core.la
5059 rootlibexec_PROGRAMS += \
5062 libsystemd_machine_core_la_SOURCES = \
5063 src/machine/machine.c \
5064 src/machine/machine.h \
5065 src/machine/machined-dbus.c \
5066 src/machine/machine-dbus.c \
5067 src/machine/machine-dbus.h \
5068 src/machine/image-dbus.c \
5069 src/machine/image-dbus.h
5071 libsystemd_machine_core_la_LIBADD = \
5072 libsystemd-label.la \
5073 libsystemd-internal.la \
5074 libudev-internal.la \
5075 libsystemd-shared.la
5077 noinst_LTLIBRARIES += \
5078 libsystemd-machine-core.la
5080 machinectl_SOURCES = \
5081 src/machine/machinectl.c
5083 machinectl_LDADD = \
5084 libsystemd-internal.la \
5085 libsystemd-logs.la \
5086 libsystemd-journal-internal.la \
5087 libsystemd-shared.la
5089 rootbin_PROGRAMS += \
5092 dist_bashcompletion_DATA += \
5093 shell-completion/bash/machinectl
5095 test_machine_tables_SOURCES = \
5096 src/machine/test-machine-tables.c
5098 test_machine_tables_LDADD = \
5099 libsystemd-machine-core.la
5104 nodist_systemunit_DATA += \
5105 units/systemd-machined.service
5107 dist_systemunit_DATA += \
5110 dist_systemunit_DATA_busnames += \
5111 units/org.freedesktop.machine1.busname
5113 dist_dbussystemservice_DATA += \
5114 src/machine/org.freedesktop.machine1.service
5116 dist_dbuspolicy_DATA += \
5117 src/machine/org.freedesktop.machine1.conf
5119 polkitpolicy_files += \
5120 src/machine/org.freedesktop.machine1.policy
5122 polkitpolicy_in_files += \
5123 src/machine/org.freedesktop.machine1.policy.in
5125 dist_zshcompletion_DATA += \
5126 shell-completion/zsh/_machinectl \
5127 shell-completion/zsh/_sd_machines
5129 SYSTEM_UNIT_ALIASES += \
5130 systemd-machined.service dbus-org.freedesktop.machine1.service
5132 BUSNAMES_TARGET_WANTS += \
5133 org.freedesktop.machine1.busname
5136 units/systemd-machined.service.in
5138 libnss_mymachines_la_SOURCES = \
5139 src/nss-mymachines/nss-mymachines.sym \
5140 src/nss-mymachines/nss-mymachines.c
5142 libnss_mymachines_la_LDFLAGS = \
5149 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5151 libnss_mymachines_la_LIBADD = \
5152 libsystemd-shared.la \
5153 libsystemd-internal.la
5155 lib_LTLIBRARIES += \
5156 libnss_mymachines.la
5163 systemd_import_SOURCES = \
5164 src/import/import.c \
5165 src/import/import-gpt.c \
5166 src/import/import-gpt.h \
5167 src/import/import-dkr.c \
5168 src/import/import-dkr.h \
5169 src/import/curl-util.c \
5170 src/import/curl-util.h \
5171 src/import/aufs-util.c \
5172 src/import/aufs-util.h
5174 systemd_import_CFLAGS = \
5178 systemd_import_LDADD = \
5179 libsystemd-internal.la \
5180 libsystemd-shared.la \
5187 # ------------------------------------------------------------------------------
5189 systemd_resolved_SOURCES = \
5190 src/resolve/resolved.c \
5191 src/resolve/resolved-manager.c \
5192 src/resolve/resolved-manager.h \
5193 src/resolve/resolved-conf.c \
5194 src/resolve/resolved-conf.h \
5195 src/resolve/resolved-bus.c \
5196 src/resolve/resolved-bus.h \
5197 src/resolve/resolved-link.h \
5198 src/resolve/resolved-link.c \
5199 src/resolve/resolved-def.h \
5200 src/resolve/resolved-dns-domain.h \
5201 src/resolve/resolved-dns-domain.c \
5202 src/resolve/resolved-dns-rr.h \
5203 src/resolve/resolved-dns-rr.c \
5204 src/resolve/resolved-dns-question.h \
5205 src/resolve/resolved-dns-question.c \
5206 src/resolve/resolved-dns-answer.h \
5207 src/resolve/resolved-dns-answer.c \
5208 src/resolve/resolved-dns-packet.h \
5209 src/resolve/resolved-dns-packet.c \
5210 src/resolve/resolved-dns-query.h \
5211 src/resolve/resolved-dns-query.c \
5212 src/resolve/resolved-dns-transaction.h \
5213 src/resolve/resolved-dns-transaction.c \
5214 src/resolve/resolved-dns-scope.h \
5215 src/resolve/resolved-dns-scope.c \
5216 src/resolve/resolved-dns-server.h \
5217 src/resolve/resolved-dns-server.c \
5218 src/resolve/resolved-dns-cache.h \
5219 src/resolve/resolved-dns-cache.c \
5220 src/resolve/resolved-dns-zone.h \
5221 src/resolve/resolved-dns-zone.c \
5222 src/resolve/resolved-dns-stream.h \
5223 src/resolve/resolved-dns-stream.c \
5224 src/resolve/dns-type.c \
5225 src/resolve/dns-type.h \
5226 src/resolve/dns_type-from-name.h \
5227 src/resolve/dns_type-to-name.h
5229 nodist_systemd_resolved_SOURCES = \
5230 src/resolve/resolved-gperf.c
5233 src/resolve/resolved-gperf.gperf \
5234 src/resolve/dns_type-from-name.gperf
5237 src/resolve/resolved-gperf.c
5239 systemd_resolved_LDADD = \
5240 libsystemd-network.la \
5241 libsystemd-label.la \
5242 libsystemd-internal.la \
5243 libsystemd-shared.la \
5247 rootlibexec_PROGRAMS += \
5250 nodist_systemunit_DATA += \
5251 units/systemd-resolved.service
5253 dist_systemunit_DATA_busnames += \
5254 units/org.freedesktop.resolve1.busname
5256 dist_dbuspolicy_DATA += \
5257 src/resolve/org.freedesktop.resolve1.conf
5259 dist_dbussystemservice_DATA += \
5260 src/resolve/org.freedesktop.resolve1.service
5263 units/systemd-resolved.service.in
5265 SYSTEM_UNIT_ALIASES += \
5266 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5268 BUSNAMES_TARGET_WANTS += \
5269 org.freedesktop.resolve1.busname
5271 GENERAL_ALIASES += \
5272 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5274 nodist_pkgsysconf_DATA += \
5275 src/resolve/resolved.conf
5278 src/resolve/resolved.conf.in
5281 src/resolve/resolved.conf
5286 test_dns_domain_SOURCES = \
5287 src/resolve/resolved-dns-domain.h \
5288 src/resolve/resolved-dns-domain.c \
5289 src/resolve/test-dns-domain.c
5291 test_dns_domain_LDADD = \
5292 libsystemd-network.la \
5293 libsystemd-label.la \
5294 libsystemd-internal.la \
5295 libsystemd-shared.la \
5298 libnss_resolve_la_SOURCES = \
5299 src/nss-resolve/nss-resolve.sym \
5300 src/nss-resolve/nss-resolve.c
5302 libnss_resolve_la_LDFLAGS = \
5309 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5311 libnss_resolve_la_LIBADD = \
5312 libsystemd-shared.la \
5313 libsystemd-internal.la
5315 lib_LTLIBRARIES += \
5318 systemd_resolve_host_SOURCES = \
5319 src/resolve-host/resolve-host.c \
5320 src/resolve/resolved-dns-packet.c \
5321 src/resolve/resolved-dns-packet.h \
5322 src/resolve/resolved-dns-rr.c \
5323 src/resolve/resolved-dns-rr.h \
5324 src/resolve/resolved-dns-answer.c \
5325 src/resolve/resolved-dns-answer.h \
5326 src/resolve/resolved-dns-question.c \
5327 src/resolve/resolved-dns-question.h \
5328 src/resolve/resolved-dns-domain.c \
5329 src/resolve/resolved-dns-domain.h \
5330 src/resolve/dns-type.c \
5331 src/resolve/dns-type.h \
5332 src/resolve/dns_type-from-name.h \
5333 src/resolve/dns_type-to-name.h
5335 systemd_resolve_host_LDADD = \
5336 libsystemd-internal.la \
5337 libsystemd-shared.la \
5341 rootlibexec_PROGRAMS += \
5342 systemd-resolve-host
5346 # ------------------------------------------------------------------------------
5348 rootlibexec_PROGRAMS += \
5351 systemd_networkd_SOURCES = \
5352 src/network/networkd.c
5354 systemd_networkd_LDADD = \
5355 libsystemd-networkd-core.la
5357 noinst_LTLIBRARIES += \
5358 libsystemd-networkd-core.la
5360 libsystemd_networkd_core_la_CFLAGS = \
5363 libsystemd_networkd_core_la_SOURCES = \
5364 src/libsystemd-network/network-internal.h \
5365 src/network/networkd.h \
5366 src/network/networkd-link.h \
5367 src/network/networkd-netdev.h \
5368 src/network/networkd-netdev-tunnel.h \
5369 src/network/networkd-netdev-veth.h \
5370 src/network/networkd-netdev-vxlan.h \
5371 src/network/networkd-netdev-vlan.h \
5372 src/network/networkd-netdev-macvlan.h \
5373 src/network/networkd-netdev-dummy.h \
5374 src/network/networkd-netdev-tuntap.h \
5375 src/network/networkd-netdev-bond.h \
5376 src/network/networkd-netdev-bridge.h \
5377 src/network/networkd-netdev.c \
5378 src/network/networkd-netdev-tunnel.c \
5379 src/network/networkd-netdev-veth.c \
5380 src/network/networkd-netdev-vxlan.c \
5381 src/network/networkd-netdev-vlan.c \
5382 src/network/networkd-netdev-macvlan.c \
5383 src/network/networkd-netdev-dummy.c \
5384 src/network/networkd-netdev-tuntap.c \
5385 src/network/networkd-netdev-bond.c \
5386 src/network/networkd-netdev-bridge.c \
5387 src/network/networkd-link.c \
5388 src/network/networkd-ipv4ll.c \
5389 src/network/networkd-dhcp4.c \
5390 src/network/networkd-dhcp6.c \
5391 src/network/networkd-network.c \
5392 src/network/networkd-address.c \
5393 src/network/networkd-route.c \
5394 src/network/networkd-manager.c \
5395 src/network/networkd-fdb.c \
5396 src/network/networkd-address-pool.c
5398 nodist_libsystemd_networkd_core_la_SOURCES = \
5399 src/network/networkd-network-gperf.c \
5400 src/network/networkd-netdev-gperf.c
5402 libsystemd_networkd_core_la_LIBADD = \
5403 libudev-internal.la \
5404 libsystemd-internal.la \
5405 libsystemd-network.la \
5406 libsystemd-label.la \
5407 libsystemd-shared.la
5409 rootlibexec_PROGRAMS += \
5410 systemd-networkd-wait-online
5412 systemd_networkd_wait_online_CFLAGS = \
5415 systemd_networkd_wait_online_SOURCES = \
5416 src/libsystemd-network/network-internal.h \
5417 src/network/networkd-wait-online.h \
5418 src/network/networkd-wait-online-link.h \
5419 src/network/networkd-wait-online.c \
5420 src/network/networkd-wait-online-manager.c \
5421 src/network/networkd-wait-online-link.c
5423 systemd_networkd_wait_online_LDADD = \
5424 libsystemd-network.la \
5425 libudev-internal.la \
5426 libsystemd-internal.la \
5427 libsystemd-shared.la
5429 rootbin_PROGRAMS += \
5432 networkctl_SOURCES = \
5433 src/network/networkctl.c
5435 networkctl_LDADD = \
5436 libsystemd-internal.la \
5437 libudev-internal.la \
5438 libsystemd-shared.la \
5439 libsystemd-network.la
5441 test_network_SOURCES = \
5442 src/network/test-network.c
5444 test_network_LDADD = \
5445 libsystemd-networkd-core.la
5447 test_network_tables_SOURCES = \
5448 src/network/test-network-tables.c \
5449 src/shared/test-tables.h
5451 test_network_tables_LDADD = \
5452 libsystemd-networkd-core.la \
5459 nodist_systemunit_DATA += \
5460 units/systemd-networkd.service \
5461 units/systemd-networkd-wait-online.service
5463 GENERAL_ALIASES += \
5464 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5465 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5468 src/network/networkd-network-gperf.gperf \
5469 src/network/networkd-netdev-gperf.gperf \
5470 units/systemd-networkd.service.in \
5471 units/systemd-networkd-wait-online.service.in
5474 src/network/networkd-network-gperf.c \
5475 src/network/networkd-netdev-gperf.c
5478 # ------------------------------------------------------------------------------
5480 systemd_logind_SOURCES = \
5481 src/login/logind.c \
5484 nodist_systemd_logind_SOURCES = \
5485 src/login/logind-gperf.c
5487 systemd_logind_LDADD = \
5488 libsystemd-logind-core.la
5490 libsystemd_logind_core_la_SOURCES = \
5491 src/login/logind-core.c \
5492 src/login/logind-device.c \
5493 src/login/logind-device.h \
5494 src/login/logind-button.c \
5495 src/login/logind-button.h \
5496 src/login/logind-action.c \
5497 src/login/logind-action.h \
5498 src/login/logind-seat.c \
5499 src/login/logind-seat.h \
5500 src/login/logind-session.c \
5501 src/login/logind-session.h \
5502 src/login/logind-session-device.c \
5503 src/login/logind-session-device.h \
5504 src/login/logind-user.c \
5505 src/login/logind-user.h \
5506 src/login/logind-inhibit.c \
5507 src/login/logind-inhibit.h \
5508 src/login/logind-dbus.c \
5509 src/login/logind-session-dbus.c \
5510 src/login/logind-seat-dbus.c \
5511 src/login/logind-user-dbus.c \
5512 src/login/logind-acl.h
5514 libsystemd_logind_core_la_LIBADD = \
5515 libsystemd-label.la \
5516 libsystemd-internal.la \
5517 libudev-internal.la \
5518 libsystemd-shared.la
5521 libsystemd_logind_core_la_SOURCES += \
5522 src/login/logind-acl.c
5524 libsystemd_logind_core_la_LIBADD += \
5528 noinst_LTLIBRARIES += \
5529 libsystemd-logind-core.la
5531 systemd_user_sessions_SOURCES = \
5532 src/login/user-sessions.c
5534 systemd_user_sessions_LDADD = \
5535 libsystemd-shared.la
5537 rootlibexec_PROGRAMS += \
5539 systemd-user-sessions
5541 loginctl_SOURCES = \
5542 src/login/loginctl.c \
5543 src/login/sysfs-show.h \
5544 src/login/sysfs-show.c
5547 libsystemd-internal.la \
5548 libsystemd-logs.la \
5549 libsystemd-journal-internal.la \
5550 libudev-internal.la \
5551 libsystemd-shared.la
5553 rootbin_PROGRAMS += \
5556 dist_bashcompletion_DATA += \
5557 shell-completion/bash/loginctl
5559 dist_zshcompletion_DATA += \
5560 shell-completion/zsh/_loginctl \
5561 shell-completion/zsh/_systemd-inhibit
5563 systemd_inhibit_SOURCES = \
5566 systemd_inhibit_LDADD = \
5567 libsystemd-internal.la \
5568 libsystemd-shared.la
5570 rootbin_PROGRAMS += \
5573 test_login_SOURCES = \
5574 src/libsystemd/sd-login/test-login.c
5576 test_login_LDADD = \
5577 libsystemd-internal.la \
5578 libsystemd-shared.la
5580 test_login_shared_SOURCES = \
5581 src/login/test-login-shared.c
5583 test_login_shared_LDADD = \
5584 libsystemd-internal.la \
5585 libsystemd-shared.la
5587 test_inhibit_SOURCES = \
5588 src/login/test-inhibit.c
5590 test_inhibit_LDADD = \
5591 libsystemd-internal.la \
5592 libsystemd-shared.la
5594 test_login_tables_SOURCES = \
5595 src/login/test-login-tables.c
5597 test_login_tables_LDADD = \
5598 libsystemd-logind-core.la
5609 pam_systemd_la_SOURCES = \
5610 src/login/pam_systemd.sym \
5611 src/login/pam_systemd.c
5613 pam_systemd_la_CFLAGS = \
5618 pam_systemd_la_LDFLAGS = \
5624 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5626 pam_systemd_la_LIBADD = \
5627 libsystemd-internal.la \
5628 libsystemd-shared.la \
5631 pamlib_LTLIBRARIES = \
5634 dist_pamconf_DATA = \
5635 src/login/systemd-user
5638 nodist_systemunit_DATA += \
5639 units/systemd-logind.service \
5640 units/systemd-user-sessions.service
5642 dist_systemunit_DATA += \
5645 dist_systemunit_DATA_busnames += \
5646 units/org.freedesktop.login1.busname
5648 dist_dbussystemservice_DATA += \
5649 src/login/org.freedesktop.login1.service
5651 dist_dbuspolicy_DATA += \
5652 src/login/org.freedesktop.login1.conf
5654 dist_pkgsysconf_DATA += \
5655 src/login/logind.conf
5657 polkitpolicy_files += \
5658 src/login/org.freedesktop.login1.policy
5663 MULTI_USER_TARGET_WANTS += \
5664 systemd-logind.service \
5665 systemd-user-sessions.service
5667 SYSTEM_UNIT_ALIASES += \
5668 systemd-logind.service dbus-org.freedesktop.login1.service
5670 BUSNAMES_TARGET_WANTS += \
5671 org.freedesktop.login1.busname
5673 dist_udevrules_DATA += \
5674 src/login/70-uaccess.rules \
5675 src/login/70-power-switch.rules
5677 nodist_udevrules_DATA += \
5678 src/login/71-seat.rules \
5679 src/login/73-seat-late.rules
5682 src/login/logind-gperf.c \
5683 src/login/71-seat.rules \
5684 src/login/73-seat-late.rules
5687 polkitpolicy_in_files += \
5688 src/login/org.freedesktop.login1.policy.in
5691 src/login/logind-gperf.gperf \
5692 src/login/71-seat.rules.in \
5693 src/login/73-seat-late.rules.in \
5694 units/systemd-logind.service.in \
5695 units/systemd-user-sessions.service.in
5697 # ------------------------------------------------------------------------------
5698 if HAVE_PYTHON_DEVEL
5699 pkgpyexec_LTLIBRARIES = \
5706 _journal_la_SOURCES = \
5707 src/python-systemd/_journal.c
5709 _journal_la_CFLAGS = \
5711 -fvisibility=default \
5712 $(PYTHON_DEVEL_CFLAGS)
5714 _journal_la_LDFLAGS = \
5720 _journal_la_LIBADD = \
5721 $(PYTHON_DEVEL_LIBS) \
5724 id128_la_SOURCES = \
5725 src/python-systemd/id128.c \
5726 src/python-systemd/pyutil.c \
5727 src/python-systemd/pyutil.h
5729 nodist_id128_la_SOURCES = \
5730 src/python-systemd/id128-constants.h
5734 -fvisibility=default \
5735 $(PYTHON_DEVEL_CFLAGS) \
5736 -I$(top_builddir)/src/python-systemd
5738 id128_la_LDFLAGS = \
5745 $(PYTHON_DEVEL_LIBS) \
5746 libsystemd-shared.la \
5749 _daemon_la_SOURCES = \
5750 src/python-systemd/_daemon.c \
5751 src/python-systemd/pyutil.c \
5752 src/python-systemd/pyutil.h
5754 _daemon_la_CFLAGS = \
5756 -fvisibility=default \
5757 $(PYTHON_DEVEL_CFLAGS) \
5758 -I$(top_builddir)/src/python-systemd
5760 _daemon_la_LDFLAGS = \
5766 _daemon_la_LIBADD = \
5767 $(PYTHON_DEVEL_LIBS) \
5768 libsystemd-shared.la \
5771 _reader_la_SOURCES = \
5772 src/python-systemd/_reader.c \
5773 src/python-systemd/pyutil.c \
5774 src/python-systemd/pyutil.h
5776 _reader_la_CFLAGS = \
5778 -fvisibility=default \
5779 $(PYTHON_DEVEL_CFLAGS)
5781 _reader_la_LDFLAGS = \
5787 _reader_la_LIBADD = \
5788 $(PYTHON_DEVEL_LIBS) \
5789 libsystemd-shared.la \
5792 login_la_SOURCES = \
5793 src/python-systemd/login.c \
5794 src/python-systemd/pyutil.c \
5795 src/python-systemd/pyutil.h
5799 -fvisibility=default \
5800 $(PYTHON_DEVEL_CFLAGS)
5802 login_la_LDFLAGS = \
5809 $(PYTHON_DEVEL_LIBS) \
5810 libsystemd-shared.la \
5813 dist_pkgpyexec_PYTHON = \
5814 src/python-systemd/journal.py \
5815 src/python-systemd/daemon.py \
5816 src/python-systemd/__init__.py
5818 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5819 $(AM_V_at)$(MKDIR_P) $(dir $@)
5820 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5823 src/python-systemd/id128-constants.h
5825 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5827 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5828 $(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/
5829 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5832 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5833 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5836 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5837 $(MAKE) DESTDIR="$$dir" install && \
5838 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5843 CLEAN_LOCAL_HOOKS += clean-sphinx
5845 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5848 -rm -rf docs/html/python-systemd/
5850 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5852 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5853 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5855 # ------------------------------------------------------------------------------
5856 if ENABLE_COMPAT_LIBS
5858 src/compat-libs/linkwarning.h
5860 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5861 $(AM_V_at)$(MKDIR_P) $(dir $@)
5862 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5865 libsystemd-journal.c \
5866 libsystemd-login.c \
5867 libsystemd-id128.c \
5870 libsystemd_journal_la_SOURCES = \
5871 libsystemd-journal.c \
5872 src/compat-libs/libsystemd-journal.sym
5874 libsystemd_journal_la_CPPFLAGS = \
5876 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5878 libsystemd_journal_la_LDFLAGS = \
5880 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5881 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5883 libsystemd_journal_la_LIBADD = \
5884 libsystemd-journal-internal.la \
5885 libsystemd-internal.la \
5886 libsystemd-shared.la
5888 libsystemd_login_la_SOURCES = \
5889 libsystemd-login.c \
5890 src/compat-libs/libsystemd-login.sym
5892 libsystemd_login_la_CPPFLAGS = \
5894 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5896 libsystemd_login_la_LDFLAGS = \
5898 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5899 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5901 libsystemd_login_la_LIBADD = \
5902 libsystemd-internal.la \
5903 libsystemd-shared.la
5905 libsystemd_id128_la_SOURCES = \
5906 libsystemd-id128.c \
5907 src/compat-libs/libsystemd-id128.sym
5909 libsystemd_id128_la_CPPFLAGS = \
5911 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5913 libsystemd_id128_la_LDFLAGS = \
5915 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5916 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5918 libsystemd_id128_la_LIBADD = \
5919 libsystemd-internal.la \
5920 libsystemd-shared.la
5922 libsystemd_daemon_la_SOURCES = \
5923 libsystemd-daemon.c \
5924 src/compat-libs/libsystemd-daemon.sym
5926 libsystemd_daemon_la_CPPFLAGS = \
5928 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5930 libsystemd_daemon_la_LDFLAGS = \
5932 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5933 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5935 libsystemd_daemon_la_LIBADD = \
5936 libsystemd-internal.la \
5937 libsystemd-shared.la
5939 lib_LTLIBRARIES += \
5940 libsystemd-journal.la \
5941 libsystemd-login.la \
5942 libsystemd-id128.la \
5943 libsystemd-daemon.la
5945 pkgconfiglib_DATA += \
5946 src/compat-libs/libsystemd-journal.pc \
5947 src/compat-libs/libsystemd-login.pc \
5948 src/compat-libs/libsystemd-id128.pc \
5949 src/compat-libs/libsystemd-daemon.pc
5951 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5952 compat-lib-install-hook:
5953 libname=libsystemd-login.so && $(move-to-rootlibdir)
5954 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5955 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5956 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5958 compat-lib-uninstall-hook:
5959 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5960 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5961 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5962 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5964 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5965 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5969 src/compat-libs/libsystemd-journal.pc.in \
5970 src/compat-libs/libsystemd-login.pc.in \
5971 src/compat-libs/libsystemd-id128.pc.in \
5972 src/compat-libs/libsystemd-daemon.pc.in
5974 # ------------------------------------------------------------------------------
5976 '|rootlibexecdir=$(rootlibexecdir)|' \
5977 '|rootbindir=$(rootbindir)|' \
5978 '|bindir=$(bindir)|' \
5979 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5980 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5981 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5982 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5983 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5984 '|pkgdatadir=$(pkgdatadir)|' \
5985 '|systemunitdir=$(systemunitdir)|' \
5986 '|userunitdir=$(userunitdir)|' \
5987 '|systempresetdir=$(systempresetdir)|' \
5988 '|userpresetdir=$(userpresetdir)|' \
5989 '|udevhwdbdir=$(udevhwdbdir)|' \
5990 '|udevrulesdir=$(udevrulesdir)|' \
5991 '|catalogdir=$(catalogdir)|' \
5992 '|tmpfilesdir=$(tmpfilesdir)|' \
5993 '|sysusersdir=$(sysusersdir)|' \
5994 '|sysctldir=$(sysctldir)|' \
5995 '|systemgeneratordir=$(systemgeneratordir)|' \
5996 '|usergeneratordir=$(usergeneratordir)|' \
5997 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5998 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5999 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6000 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6001 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6002 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6003 '|prefix=$(prefix)|' \
6004 '|exec_prefix=$(exec_prefix)|' \
6005 '|libdir=$(libdir)|' \
6006 '|includedir=$(includedir)|' \
6007 '|VERSION=$(VERSION)|' \
6008 '|rootprefix=$(rootprefix)|' \
6009 '|udevlibexecdir=$(udevlibexecdir)|' \
6010 '|SUSHELL=$(SUSHELL)|' \
6011 '|DEBUGTTY=$(DEBUGTTY)|' \
6014 '|MKDIR_P=$(MKDIR_P)|' \
6015 '|QUOTAON=$(QUOTAON)|' \
6016 '|QUOTACHECK=$(QUOTACHECK)|' \
6017 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6018 '|VARLOGDIR=$(varlogdir)|' \
6019 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6020 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6021 '|PYTHON=$(PYTHON)|' \
6022 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6023 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6024 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6025 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6026 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6027 '|TTY_GID=$(TTY_GID)|' \
6028 '|systemsleepdir=$(systemsleepdir)|' \
6029 '|systemshutdowndir=$(systemshutdowndir)|' \
6030 '|binfmtdir=$(binfmtdir)|' \
6031 '|modulesloaddir=$(modulesloaddir)|'
6034 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6035 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6044 sysctl.d/%: sysctl.d/%.in
6053 src/core/macros.%: src/core/macros.%.in
6056 src/%.policy.in: src/%.policy.in.in
6059 shell-completion/%: shell-completion/%.in
6070 $(AM_V_GEN)chmod +x $@
6072 src/%.c: src/%.gperf
6073 $(AM_V_at)$(MKDIR_P) $(dir $@)
6074 $(AM_V_GPERF)$(GPERF) < $< > $@
6077 $(AM_V_at)$(MKDIR_P) $(dir $@)
6078 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6080 sysusers.d/%: sysusers.d/%.m4
6081 $(AM_V_at)$(MKDIR_P) $(dir $@)
6082 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6084 tmpfiles.d/%: tmpfiles.d/%.m4
6085 $(AM_V_at)$(MKDIR_P) $(dir $@)
6086 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6090 $(AM_V_at)$(MKDIR_P) $(dir $@)
6091 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6093 units/user/%: units/user/%.m4
6094 $(AM_V_at)$(MKDIR_P) $(dir $@)
6095 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6098 nodist_polkitpolicy_DATA = \
6099 $(polkitpolicy_files) \
6100 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6104 $(polkitpolicy_in_files) \
6105 $(polkitpolicy_in_in_files)
6108 $(nodist_systemunit_DATA) \
6109 $(nodist_userunit_DATA) \
6110 $(pkgconfiglib_DATA) \
6111 $(nodist_polkitpolicy_DATA)
6113 # ------------------------------------------------------------------------------
6115 man/custom-entities.ent: configure.ac
6116 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6117 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6118 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6122 man/custom-entities.ent
6127 --stringparam man.output.quietly 1 \
6128 --stringparam funcsynopsis.style ansi \
6129 --stringparam man.authors.section.enabled 0 \
6130 --stringparam man.copyright.section.enabled 0 \
6131 --stringparam systemd.version $(VERSION) \
6132 --path '$(builddir)/man:$(srcdir)/man'
6134 XSLTPROC_PROCESS_MAN = \
6135 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6137 XSLTPROC_PROCESS_HTML = \
6138 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6140 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6141 $(XSLTPROC_PROCESS_MAN)
6143 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6144 $(XSLTPROC_PROCESS_MAN)
6146 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6147 $(XSLTPROC_PROCESS_MAN)
6149 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6150 $(XSLTPROC_PROCESS_MAN)
6152 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6153 $(XSLTPROC_PROCESS_MAN)
6155 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6156 $(XSLTPROC_PROCESS_HTML)
6159 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6165 man/custom-html.xsl \
6168 # ------------------------------------------------------------------------------
6171 docs/sysvinit/README
6176 docs/sysvinit/README: docs/sysvinit/README.in
6179 docs/var-log/README: docs/var-log/README.in
6183 docs/sysvinit/README \
6188 docs/sysvinit/README.in \
6189 docs/var-log/README.in
6191 SOCKETS_TARGET_WANTS += \
6192 systemd-initctl.socket \
6193 systemd-shutdownd.socket
6197 RUNLEVEL1_TARGET_WANTS += \
6198 systemd-update-utmp-runlevel.service
6199 RUNLEVEL2_TARGET_WANTS += \
6200 systemd-update-utmp-runlevel.service
6201 RUNLEVEL3_TARGET_WANTS += \
6202 systemd-update-utmp-runlevel.service
6203 RUNLEVEL4_TARGET_WANTS += \
6204 systemd-update-utmp-runlevel.service
6205 RUNLEVEL5_TARGET_WANTS += \
6206 systemd-update-utmp-runlevel.service
6209 SYSINIT_TARGET_WANTS += \
6210 systemd-update-utmp.service
6213 SYSINIT_TARGET_WANTS += \
6214 systemd-update-done.service
6216 LOCAL_FS_TARGET_WANTS += \
6217 systemd-remount-fs.service \
6220 MULTI_USER_TARGET_WANTS += \
6222 systemd-ask-password-wall.path
6224 SYSINIT_TARGET_WANTS += \
6225 dev-hugepages.mount \
6227 sys-kernel-config.mount \
6228 sys-kernel-debug.mount \
6229 sys-fs-fuse-connections.mount \
6230 systemd-sysctl.service \
6231 systemd-ask-password-console.path
6234 SYSTEM_UNIT_ALIASES += \
6235 poweroff.target runlevel0.target \
6236 rescue.target runlevel1.target \
6237 multi-user.target runlevel2.target \
6238 multi-user.target runlevel3.target \
6239 multi-user.target runlevel4.target \
6240 graphical.target runlevel5.target \
6241 reboot.target runlevel6.target
6244 SYSTEM_UNIT_ALIASES += \
6245 graphical.target default.target \
6246 reboot.target ctrl-alt-del.target \
6247 getty@.service autovt@.service
6249 USER_UNIT_ALIASES += \
6250 $(systemunitdir)/shutdown.target shutdown.target \
6251 $(systemunitdir)/sockets.target sockets.target \
6252 $(systemunitdir)/timers.target timers.target \
6253 $(systemunitdir)/paths.target paths.target \
6254 $(systemunitdir)/bluetooth.target bluetooth.target \
6255 $(systemunitdir)/printer.target printer.target \
6256 $(systemunitdir)/sound.target sound.target \
6257 $(systemunitdir)/smartcard.target smartcard.target
6260 USER_UNIT_ALIASES += \
6261 $(systemunitdir)/busnames.target busnames.target
6264 GENERAL_ALIASES += \
6265 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6266 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6267 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6268 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6272 $(systemunitdir)/runlevel1.target.wants \
6273 $(systemunitdir)/runlevel2.target.wants \
6274 $(systemunitdir)/runlevel3.target.wants \
6275 $(systemunitdir)/runlevel4.target.wants \
6276 $(systemunitdir)/runlevel5.target.wants
6280 $(prefix)/lib/modules-load.d \
6281 $(sysconfdir)/modules-load.d \
6282 $(prefix)/lib/systemd/network \
6283 $(sysconfdir)/systemd/network \
6284 $(prefix)/lib/sysctl.d \
6285 $(sysconfdir)/sysctl.d \
6286 $(prefix)/lib/kernel/install.d \
6287 $(sysconfdir)/kernel/install.d \
6288 $(systemshutdowndir) \
6290 $(systemgeneratordir) \
6291 $(usergeneratordir) \
6294 $(pkgsysconfdir)/system \
6295 $(pkgsysconfdir)/system/multi-user.target.wants \
6296 $(pkgsysconfdir)/system/getty.target.wants \
6297 $(pkgsysconfdir)/user \
6298 $(dbussessionservicedir) \
6299 $(sysconfdir)/xdg/systemd
6301 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6303 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6305 install-data-hook: $(INSTALL_DATA_HOOKS)
6307 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6309 clean-local: $(CLEAN_LOCAL_HOOKS)
6310 rm -rf $(abs_srcdir)/install-tree
6311 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6312 $(abs_srcdir)/hwdb/iab.txt
6314 DISTCHECK_CONFIGURE_FLAGS = \
6315 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6316 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6317 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6318 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6319 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6320 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6321 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6322 --with-rootprefix=$$dc_install_base \
6323 --disable-split-usr \
6325 --enable-compat-libs
6328 DISTCHECK_CONFIGURE_FLAGS += \
6329 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6330 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6332 DISTCHECK_CONFIGURE_FLAGS += \
6333 --with-sysvinit-path= \
6334 --with-sysvrcnd-path=
6338 DISTCHECK_CONFIGURE_FLAGS += \
6343 DISTCHECK_CONFIGURE_FLAGS += \
6348 # Require python when making dist
6350 .PHONY: dist-check-python
6353 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6357 dist-check-compat-libs:
6358 if !ENABLE_COMPAT_LIBS
6359 @echo "*** compat-libs must be enabled in order to make dist"
6363 dist: dist-check-python dist-check-compat-libs
6365 # check "broken" platforms limited toolchains for link breakage before we release
6368 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6372 ( cd $(top_srcdir)/hwdb && \
6373 wget -N http://www.linux-usb.org/usb.ids \
6374 http://pci-ids.ucw.cz/v2.2/pci.ids \
6375 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6376 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6379 .PHONY: kdbus-update
6381 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6382 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6386 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6388 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6390 upload: all check dist
6391 scp systemd-$(VERSION).tar.xz $(www_target)
6394 doc-sync: all destdir-sphinx
6395 gtkdoc-rebase --html-dir=docs/libudev/html --online
6396 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6397 gtkdoc-rebase --html-dir=docs/gudev/html --online
6398 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6399 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6400 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6404 scp man/*.html gardel:public/systemd-man/
6406 .PHONY: lennart-fedora
6408 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6410 .PHONY: install-tree
6412 rm -rf $(abs_srcdir)/install-tree
6413 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6414 tree $(abs_srcdir)/install-tree
6416 # Let's run all tests of the test suite, but under valgrind. Let's
6417 # exclude the one perl script we have in there
6418 .PHONY: valgrind-tests
6419 valgrind-tests: $(TESTS)
6420 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6421 if file $$f | grep -q shell; then \
6422 echo -e "$${x}Skipping non-binary $$f"; else \
6423 echo -e "$${x}Running $$f"; \
6424 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6429 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6431 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6432 $(AM_V_GEN)cat $^ > $@
6434 .PHONY: check-api-docs
6435 check-api-docs: exported man
6436 $(AM_V_GEN)for symbol in `cat exported` ; do \
6437 if test -f $(builddir)/man/$$symbol.html ; then \
6438 echo " Symbol $$symbol() is documented." ; \
6440 echo "‣ Symbol $$symbol() lacks documentation." ; \
6444 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6445 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6447 undefined defined: $(ALL_OBJECTS)
6448 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6449 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6450 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6456 .PHONY: check-api-unused
6457 check-api-unused: defined undefined exported
6458 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6460 .PHONY: check-includes
6461 check-includes: $(top_srcdir)/tools/check-includes.pl
6462 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6463 | xargs $(top_srcdir)/tools/check-includes.pl
6466 $(top_srcdir)/tools/check-includes.pl
6468 # Stupid test that everything purported to be exported really is
6469 define generate-sym-test
6470 $(AM_V_at)$(MKDIR_P) $(dir $@)
6471 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6472 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6473 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6474 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6475 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6476 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6477 $(AM_V_at)printf 'return 0; }\n' >> $@
6480 test-libsystemd-sym.c: \
6481 $(top_builddir)/src/libsystemd/libsystemd.sym \
6482 src/systemd/sd-journal.h \
6483 src/systemd/sd-daemon.h \
6484 src/systemd/sd-login.h \
6485 src/systemd/sd-bus.h \
6486 src/systemd/sd-utf8.h \
6487 src/systemd/sd-resolve.h \
6488 src/systemd/sd-path.h
6489 $(generate-sym-test)
6491 test-libudev-sym.c: \
6492 src/libudev/libudev.sym \
6494 $(generate-sym-test)
6496 test_libsystemd_sym_SOURCES = \
6497 test-libsystemd-sym.c
6498 test_libsystemd_sym_LDADD = \
6501 test_libudev_sym_SOURCES = \
6503 test_libudev_sym_CFLAGS = \
6505 -Wno-deprecated-declarations
6506 test_libudev_sym_LDADD = \
6510 $(test_libsystemd_sym_SOURCES) \
6511 $(test_libudev_sym_SOURCES)
6514 test-libsystemd-sym \
6519 cppcheck --enable=all -q $(top_srcdir)
6521 # Used to extract compile flags for YCM.
6526 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6529 tools/gdb-sd_dump_hashmaps.py