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
88 # Our own, non-special dirs
89 pkgsysconfdir=$(sysconfdir)/systemd
90 userunitdir=$(prefix)/lib/systemd/user
91 userpresetdir=$(prefix)/lib/systemd/user-preset
92 tmpfilesdir=$(prefix)/lib/tmpfiles.d
93 sysusersdir=$(prefix)/lib/sysusers.d
94 sysctldir=$(prefix)/lib/sysctl.d
95 binfmtdir=$(prefix)/lib/binfmt.d
96 modulesloaddir=$(prefix)/lib/modules-load.d
97 networkdir=$(rootprefix)/lib/systemd/network
98 pkgincludedir=$(includedir)/systemd
99 systemgeneratordir=$(rootlibexecdir)/system-generators
100 usergeneratordir=$(prefix)/lib/systemd/user-generators
101 systemshutdowndir=$(rootlibexecdir)/system-shutdown
102 systemsleepdir=$(rootlibexecdir)/system-sleep
103 systemunitdir=$(rootprefix)/lib/systemd/system
104 systempresetdir=$(rootprefix)/lib/systemd/system-preset
105 udevlibexecdir=$(rootprefix)/lib/udev
106 udevhomedir=$(udevlibexecdir)
107 udevrulesdir=$(udevlibexecdir)/rules.d
108 udevhwdbdir=$(udevlibexecdir)/hwdb.d
109 catalogdir=$(prefix)/lib/systemd/catalog
110 kernelinstalldir = $(prefix)/lib/kernel/install.d
111 factory_etcdir = $(prefix)/share/factory/etc
112 factory_pamdir = $(prefix)/share/factory/etc/pam.d
114 # And these are the special ones for /
115 rootprefix=@rootprefix@
116 rootbindir=$(rootprefix)/bin
117 rootlibexecdir=$(rootprefix)/lib/systemd
119 CLEANFILES = $(BUILT_SOURCES)
124 UNINSTALL_EXEC_HOOKS =
126 UNINSTALL_DATA_HOOKS =
127 DISTCLEAN_LOCAL_HOOKS =
135 polkitpolicy_in_in_files =
136 polkitpolicy_in_files =
138 dist_udevrules_DATA =
139 nodist_udevrules_DATA =
140 dist_pkgsysconf_DATA =
141 nodist_pkgsysconf_DATA =
143 dist_dbuspolicy_DATA =
144 dist_dbussystemservice_DATA =
145 dist_systemunit_DATA_busnames =
151 noinst_PROGRAMS = $(manual_tests) $(tests)
157 udevlibexec_PROGRAMS =
159 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
160 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
161 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
164 -include $(top_builddir)/config.h \
165 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
166 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
167 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
168 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
169 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
170 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
171 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
172 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
173 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
174 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
175 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
176 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
177 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
178 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
179 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
180 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
181 -DROOTPREFIX=\"$(rootprefix)\" \
182 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
183 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
184 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
185 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
186 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
187 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
188 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
189 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
190 -DX_SERVER=\"$(bindir)/X\" \
191 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
192 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
193 -DQUOTACHECK=\"$(QUOTACHECK)\" \
194 -DKEXEC=\"$(KEXEC)\" \
195 -DLIBDIR=\"$(libdir)\" \
196 -DROOTLIBDIR=\"$(rootlibdir)\" \
197 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
198 -I $(top_srcdir)/src \
199 -I $(top_builddir)/src/shared \
200 -I $(top_srcdir)/src/shared \
201 -I $(top_srcdir)/src/network \
202 -I $(top_srcdir)/src/login \
203 -I $(top_srcdir)/src/journal \
204 -I $(top_srcdir)/src/timedate \
205 -I $(top_srcdir)/src/timesync \
206 -I $(top_srcdir)/src/resolve \
207 -I $(top_builddir)/src/resolve \
208 -I $(top_srcdir)/src/systemd \
209 -I $(top_builddir)/src/core \
210 -I $(top_srcdir)/src/core \
211 -I $(top_srcdir)/src/libudev \
212 -I $(top_srcdir)/src/udev \
213 -I $(top_srcdir)/src/udev/net \
214 -I $(top_builddir)/src/udev \
215 -I $(top_srcdir)/src/libsystemd/sd-bus \
216 -I $(top_srcdir)/src/libsystemd/sd-event \
217 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
218 -I $(top_srcdir)/src/libsystemd/sd-network \
219 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
220 -I $(top_srcdir)/src/libsystemd-network \
221 -I $(top_srcdir)/src/libsystemd-terminal \
224 AM_CFLAGS = $(OUR_CFLAGS)
225 AM_LDFLAGS = $(OUR_LDFLAGS)
227 # ------------------------------------------------------------------------------
228 define move-to-rootlibdir
229 if test "$(libdir)" != "$(rootlibdir)"; then \
230 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
231 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
232 rm -f $(DESTDIR)$(libdir)/$$libname && \
233 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
234 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
240 RUNLEVEL1_TARGET_WANTS =
241 RUNLEVEL2_TARGET_WANTS =
242 RUNLEVEL3_TARGET_WANTS =
243 RUNLEVEL4_TARGET_WANTS =
244 RUNLEVEL5_TARGET_WANTS =
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 SYSINIT_TARGET_WANTS =
249 SOCKETS_TARGET_WANTS =
250 BUSNAMES_TARGET_WANTS =
251 TIMERS_TARGET_WANTS =
252 USER_SOCKETS_TARGET_WANTS =
253 USER_DEFAULT_TARGET_WANTS =
254 USER_BUSNAMES_TARGET_WANTS =
256 SYSTEM_UNIT_ALIASES =
260 install-target-wants-hook:
261 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
276 install-busnames-target-wants-hook:
277 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
281 [ -z "$$what" ] || ( \
282 dir=$(DESTDIR)$$dir/$$wants.wants && \
283 $(MKDIR_P) -m 0755 $$dir && \
286 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
289 install-directories-hook:
290 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
292 install-aliases-hook:
293 set -- $(SYSTEM_UNIT_ALIASES) && \
294 dir=$(systemunitdir) && $(install-aliases)
295 set -- $(USER_UNIT_ALIASES) && \
296 dir=$(userunitdir) && $(install-relative-aliases)
297 set -- $(GENERAL_ALIASES) && \
298 dir= && $(install-relative-aliases)
300 define install-aliases
301 while [ -n "$$1" ]; do \
302 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
303 rm -f $(DESTDIR)$$dir/$$2 && \
304 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
305 shift 2 || exit $$?; \
309 define install-relative-aliases
310 while [ -n "$$1" ]; do \
311 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
312 rm -f $(DESTDIR)$$dir/$$2 && \
313 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
314 shift 2 || exit $$?; \
318 install-touch-usr-hook:
319 touch -c $(DESTDIR)/$(prefix)
321 INSTALL_EXEC_HOOKS += \
322 install-target-wants-hook \
323 install-directories-hook \
324 install-aliases-hook \
325 install-touch-usr-hook
328 INSTALL_EXEC_HOOKS += \
329 install-busnames-target-wants-hook
332 # ------------------------------------------------------------------------------
333 AM_V_M4 = $(AM_V_M4_$(V))
334 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
335 AM_V_M4_0 = @echo " M4 " $@;
337 AM_V_XSLT = $(AM_V_XSLT_$(V))
338 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
339 AM_V_XSLT_0 = @echo " XSLT " $@;
341 AM_V_GPERF = $(AM_V_GPERF_$(V))
342 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
343 AM_V_GPERF_0 = @echo " GPERF " $@;
345 AM_V_LN = $(AM_V_LN_$(V))
346 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
347 AM_V_LN_0 = @echo " LN " $@;
349 AM_V_RM = $(AM_V_RM_$(V))
350 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
351 AM_V_RM_0 = @echo " RM " $@;
353 # ------------------------------------------------------------------------------
357 systemd-ask-password \
358 systemd-tty-ask-password-agent \
359 systemd-machine-id-setup \
366 systemd-detect-virt \
373 src/kernel-install/kernel-install
375 dist_kernelinstall_SCRIPTS = \
376 src/kernel-install/50-depmod.install \
377 src/kernel-install/90-loaderentry.install
379 rootlibexec_PROGRAMS = \
381 systemd-cgroups-agent \
386 systemd-reply-password \
388 systemd-machine-id-commit \
393 systemd-socket-proxyd \
397 rootlibexec_PROGRAMS += \
401 systemgenerator_PROGRAMS = \
402 systemd-getty-generator \
403 systemd-fstab-generator \
404 systemd-system-update-generator \
405 systemd-debug-generator
407 dist_bashcompletion_DATA = \
408 shell-completion/bash/busctl \
409 shell-completion/bash/journalctl \
410 shell-completion/bash/systemd-analyze \
411 shell-completion/bash/systemd-cat \
412 shell-completion/bash/systemd-cgls \
413 shell-completion/bash/systemd-cgtop \
414 shell-completion/bash/systemd-delta \
415 shell-completion/bash/systemd-detect-virt \
416 shell-completion/bash/systemd-nspawn \
417 shell-completion/bash/systemd-run \
418 shell-completion/bash/udevadm \
419 shell-completion/bash/kernel-install
421 nodist_bashcompletion_DATA = \
422 shell-completion/bash/systemctl
424 dist_zshcompletion_DATA = \
425 shell-completion/zsh/_journalctl \
426 shell-completion/zsh/_udevadm \
427 shell-completion/zsh/_kernel-install \
428 shell-completion/zsh/_systemd-nspawn \
429 shell-completion/zsh/_systemd-analyze \
430 shell-completion/zsh/_systemd-run \
431 shell-completion/zsh/_sd_hosts_or_user_at_host \
432 shell-completion/zsh/_sd_outputmodes \
433 shell-completion/zsh/_sd_unit_files \
434 shell-completion/zsh/_systemd-delta \
435 shell-completion/zsh/_systemd
437 nodist_zshcompletion_DATA = \
438 shell-completion/zsh/_systemctl
441 shell-completion/bash/systemctl.in \
442 shell-completion/zsh/_systemctl.in
445 $(nodist_bashcompletion_DATA) \
446 $(nodist_zshcompletion_DATA)
449 sysctl.d/50-default.conf
451 dist_systemunit_DATA = \
452 units/graphical.target \
453 units/multi-user.target \
454 units/emergency.target \
455 units/sysinit.target \
460 units/local-fs.target \
461 units/local-fs-pre.target \
462 units/initrd.target \
463 units/initrd-fs.target \
464 units/initrd-root-fs.target \
465 units/remote-fs.target \
466 units/remote-fs-pre.target \
467 units/network.target \
468 units/network-pre.target \
469 units/network-online.target \
470 units/nss-lookup.target \
471 units/nss-user-lookup.target \
472 units/poweroff.target \
473 units/reboot.target \
474 units/rescue.target \
475 units/rpcbind.target \
476 units/time-sync.target \
477 units/shutdown.target \
479 units/umount.target \
480 units/sigpwr.target \
482 units/sockets.target \
483 units/timers.target \
485 units/suspend.target \
487 units/slices.target \
490 units/systemd-initctl.socket \
491 units/systemd-shutdownd.socket \
492 units/syslog.socket \
493 units/dev-hugepages.mount \
494 units/dev-mqueue.mount \
495 units/sys-kernel-config.mount \
496 units/sys-kernel-debug.mount \
497 units/sys-fs-fuse-connections.mount \
499 units/printer.target \
501 units/bluetooth.target \
502 units/smartcard.target \
503 units/systemd-ask-password-wall.path \
504 units/systemd-ask-password-console.path \
505 units/systemd-udevd-control.socket \
506 units/systemd-udevd-kernel.socket \
507 units/system-update.target \
508 units/initrd-switch-root.target \
509 units/machines.target
512 dist_systemunit_DATA += \
513 $(dist_systemunit_DATA_busnames)
516 dist_systemunit_DATA_busnames += \
517 units/busnames.target
519 nodist_systemunit_DATA = \
520 units/getty@.service \
521 units/serial-getty@.service \
522 units/console-shell.service \
523 units/console-getty.service \
524 units/container-getty@.service \
525 units/systemd-initctl.service \
526 units/systemd-shutdownd.service \
527 units/systemd-remount-fs.service \
528 units/systemd-ask-password-wall.service \
529 units/systemd-ask-password-console.service \
530 units/systemd-sysctl.service \
531 units/emergency.service \
532 units/rescue.service \
533 units/user@.service \
534 units/systemd-suspend.service \
535 units/systemd-halt.service \
536 units/systemd-poweroff.service \
537 units/systemd-reboot.service \
538 units/systemd-kexec.service \
539 units/systemd-fsck@.service \
540 units/systemd-fsck-root.service \
541 units/systemd-machine-id-commit.service \
542 units/systemd-udevd.service \
543 units/systemd-udev-trigger.service \
544 units/systemd-udev-settle.service \
545 units/systemd-hwdb-update.service \
546 units/debug-shell.service \
547 units/initrd-parse-etc.service \
548 units/initrd-cleanup.service \
549 units/initrd-udevadm-cleanup-db.service \
550 units/initrd-switch-root.service \
551 units/systemd-nspawn@.service \
552 units/systemd-update-done.service
555 nodist_systemunit_DATA += \
556 units/systemd-update-utmp.service \
557 units/systemd-update-utmp-runlevel.service
560 dist_userunit_DATA = \
561 units/user/basic.target \
562 units/user/default.target \
563 units/user/exit.target
565 nodist_userunit_DATA = \
566 units/user/systemd-exit.service
568 dist_systempreset_DATA = \
569 system-preset/90-systemd.preset
572 units/getty@.service.m4 \
573 units/serial-getty@.service.m4 \
574 units/console-shell.service.m4.in \
575 units/console-getty.service.m4.in \
576 units/container-getty@.service.m4.in \
577 units/rescue.service.in \
578 units/systemd-initctl.service.in \
579 units/systemd-shutdownd.service.in \
580 units/systemd-remount-fs.service.in \
581 units/systemd-update-utmp.service.in \
582 units/systemd-update-utmp-runlevel.service.in \
583 units/systemd-ask-password-wall.service.in \
584 units/systemd-ask-password-console.service.in \
585 units/systemd-sysctl.service.in \
586 units/emergency.service.in \
587 units/systemd-halt.service.in \
588 units/systemd-poweroff.service.in \
589 units/systemd-reboot.service.in \
590 units/systemd-kexec.service.in \
591 units/user/systemd-exit.service.in \
592 units/systemd-fsck@.service.in \
593 units/systemd-fsck-root.service.in \
594 units/systemd-machine-id-commit.service.in \
595 units/user@.service.m4.in \
596 units/debug-shell.service.in \
597 units/systemd-suspend.service.in \
598 units/quotaon.service.in \
599 units/initrd-parse-etc.service.in \
600 units/initrd-cleanup.service.in \
601 units/initrd-udevadm-cleanup-db.service.in \
602 units/initrd-switch-root.service.in \
603 units/systemd-nspawn@.service.in \
604 units/systemd-update-done.service.in
607 units/console-shell.service.m4 \
608 units/console-getty.service.m4 \
609 units/container-getty@.service.m4 \
610 units/user@.service.m4
613 nodist_systemunit_DATA += \
614 units/rc-local.service \
615 units/halt-local.service
617 systemgenerator_PROGRAMS += \
618 systemd-sysv-generator \
619 systemd-rc-local-generator
623 units/rc-local.service.in \
624 units/halt-local.service.in
626 # automake is broken and can't handle files with a dash in front
627 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
629 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
631 units-uninstall-hook:
632 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
634 INSTALL_DATA_HOOKS += units-install-hook
635 UNINSTALL_DATA_HOOKS += units-uninstall-hook
644 src/libsystemd/sd-bus/PORTING-DBUS1 \
645 src/libsystemd/sd-bus/DIFFERENCES \
646 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
648 @INTLTOOL_POLICY_RULE@
650 # ------------------------------------------------------------------------------
655 include Makefile-man.am
657 .PHONY: man update-man-list
658 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
661 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
663 ${XML_FILES:.xml=.html}
665 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
682 $(AM_V_at)$(MKDIR_P) $(dir $@)
683 $(AM_V_LN)$(LN_S) -f ../../man $@
692 man/index.html: man/systemd.index.html
693 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
701 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
702 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
703 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
705 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
706 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
707 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
708 @echo "Makefile-man.am has been regenerated"
710 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
711 $(AM_V_at)$(MKDIR_P) $(dir $@)
712 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
714 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
715 $(AM_V_at)$(MKDIR_P) $(dir $@)
716 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
719 man/systemd.index.xml \
721 man/systemd.directives.xml \
722 man/glib-event-glue.c
725 man/systemd.index.xml \
726 man/systemd.directives.xml
737 tools/make-man-index.py \
738 tools/make-directive-index.py \
741 # ------------------------------------------------------------------------------
742 noinst_LTLIBRARIES += \
745 libsystemd_shared_la_SOURCES = \
746 src/shared/capability.c \
747 src/shared/capability.h \
748 src/shared/linux/auto_dev-ioctl.h \
749 src/shared/ioprio.h \
750 src/shared/missing.h \
751 src/shared/initreq.h \
752 src/shared/securebits.h \
753 src/shared/special.h \
755 src/shared/unaligned.h \
758 src/shared/sparse-endian.h \
759 src/shared/refcnt.h \
760 src/shared/udev-util.h \
761 src/shared/device-nodes.c \
762 src/shared/device-nodes.h \
767 src/shared/architecture.c \
768 src/shared/architecture.h \
769 src/shared/efivars.c \
770 src/shared/efivars.h \
771 src/shared/path-util.c \
772 src/shared/path-util.h \
773 src/shared/time-util.c \
774 src/shared/time-util.h \
775 src/shared/locale-util.c \
776 src/shared/locale-util.h \
777 src/shared/mempool.c \
778 src/shared/mempool.h \
779 src/shared/hashmap.c \
780 src/shared/hashmap.h \
781 src/shared/siphash24.c \
782 src/shared/siphash24.h \
788 src/shared/sleep-config.c \
789 src/shared/sleep-config.h \
792 src/shared/env-util.c \
793 src/shared/env-util.h \
794 src/shared/strbuf.c \
795 src/shared/strbuf.h \
796 src/shared/strxcpyx.c \
797 src/shared/strxcpyx.h \
798 src/shared/conf-parser.c \
799 src/shared/conf-parser.h \
802 src/shared/ratelimit.h \
803 src/shared/ratelimit.c \
804 src/shared/exit-status.c \
805 src/shared/exit-status.h \
808 src/shared/gunicode.c \
809 src/shared/gunicode.h \
812 src/shared/socket-util.c \
813 src/shared/socket-util.h \
814 src/shared/in-addr-util.c \
815 src/shared/in-addr-util.h \
816 src/shared/ether-addr-util.h \
817 src/shared/conf-files.c \
818 src/shared/conf-files.h \
819 src/shared/cgroup-util.c \
820 src/shared/cgroup-util.h \
821 src/shared/cgroup-show.c \
822 src/shared/cgroup-show.h \
823 src/shared/unit-name.c \
824 src/shared/unit-name.h \
825 src/shared/utmp-wtmp.h \
826 src/shared/watchdog.c \
827 src/shared/watchdog.h \
828 src/shared/spawn-ask-password-agent.c \
829 src/shared/spawn-ask-password-agent.h \
830 src/shared/replace-var.c \
831 src/shared/replace-var.h \
832 src/shared/spawn-polkit-agent.c \
833 src/shared/spawn-polkit-agent.h \
834 src/shared/clock-util.c \
835 src/shared/clock-util.h \
836 src/shared/time-dst.c \
837 src/shared/time-dst.h \
838 src/shared/calendarspec.c \
839 src/shared/calendarspec.h \
840 src/shared/fileio.c \
841 src/shared/fileio.h \
842 src/shared/output-mode.h \
843 src/shared/MurmurHash2.c \
844 src/shared/MurmurHash2.h \
845 src/shared/acpi-fpdt.h \
846 src/shared/acpi-fpdt.c \
847 src/shared/boot-timestamps.h \
848 src/shared/boot-timestamps.c \
851 src/shared/smack-util.c \
852 src/shared/smack-util.h \
853 src/shared/apparmor-util.c \
854 src/shared/apparmor-util.h \
855 src/shared/ima-util.c \
856 src/shared/ima-util.h \
857 src/shared/ptyfwd.c \
858 src/shared/ptyfwd.h \
859 src/shared/errno-list.c \
860 src/shared/errno-list.h \
861 src/shared/af-list.c \
862 src/shared/af-list.h \
863 src/shared/arphrd-list.c \
864 src/shared/arphrd-list.h \
865 src/shared/cap-list.c \
866 src/shared/cap-list.h \
873 src/shared/bus-label.c \
874 src/shared/bus-label.h \
876 src/shared/clean-ipc.h \
877 src/shared/clean-ipc.c \
878 src/shared/login-shared.c \
879 src/shared/login-shared.h \
882 src/shared/barrier.c \
883 src/shared/barrier.h \
890 src/shared/base-filesystem.c \
891 src/shared/base-filesystem.h \
892 src/shared/memfd-util.c \
893 src/shared/memfd-util.h \
894 src/shared/uid-range.c \
895 src/shared/uid-range.h \
896 src/shared/nss-util.h \
897 src/shared/btrfs-util.c \
898 src/shared/btrfs-util.h \
899 src/shared/btrfs-ctree.h \
902 src/shared/machine-image.c \
903 src/shared/machine-image.h \
904 src/shared/sigbus.c \
905 src/shared/sigbus.h \
909 libsystemd_shared_la_SOURCES += \
910 src/shared/utmp-wtmp.c
913 nodist_libsystemd_shared_la_SOURCES = \
914 src/shared/errno-from-name.h \
915 src/shared/errno-to-name.h \
916 src/shared/af-from-name.h \
917 src/shared/af-to-name.h \
918 src/shared/arphrd-from-name.h \
919 src/shared/arphrd-to-name.h \
920 src/shared/cap-from-name.h \
921 src/shared/cap-to-name.h
923 libsystemd_shared_la_CFLAGS = \
929 libsystemd_shared_la_LIBADD = \
932 # ------------------------------------------------------------------------------
933 noinst_LTLIBRARIES += \
936 libsystemd_units_la_SOURCES = \
937 src/shared/install.c \
938 src/shared/install.h \
939 src/shared/install-printf.c \
940 src/shared/install-printf.h \
941 src/shared/path-lookup.c \
942 src/shared/path-lookup.h \
943 src/shared/specifier.c \
944 src/shared/specifier.h
946 # ------------------------------------------------------------------------------
947 noinst_LTLIBRARIES += \
950 libsystemd_label_la_SOURCES = \
951 src/shared/socket-label.c \
954 src/shared/selinux-util.c \
955 src/shared/selinux-util.h \
956 src/shared/mkdir-label.c \
957 src/shared/ask-password-api.c \
958 src/shared/ask-password-api.h \
959 src/shared/switch-root.h \
960 src/shared/switch-root.c \
961 src/shared/fileio-label.c \
962 src/shared/fileio-label.h \
963 src/shared/dev-setup.c \
964 src/shared/dev-setup.h \
965 src/shared/dropin.c \
966 src/shared/dropin.h \
967 src/shared/condition.c \
968 src/shared/condition.h \
969 src/shared/generator.h \
970 src/shared/generator.c
972 libsystemd_label_la_CFLAGS = \
976 libsystemd_label_la_LIBADD = \
979 # -----------------------------------------------------------------------------
982 dist_systemunit_DATA += \
983 units/ldconfig.service
985 SYSINIT_TARGET_WANTS += \
989 # ------------------------------------------------------------------------------
992 noinst_LTLIBRARIES += \
993 libsystemd-seccomp.la
995 libsystemd_seccomp_la_SOURCES = \
996 src/shared/seccomp-util.h \
997 src/shared/seccomp-util.c
999 libsystemd_seccomp_la_CFLAGS = \
1003 libsystemd_seccomp_la_LIBADD = \
1007 # ------------------------------------------------------------------------------
1008 noinst_LTLIBRARIES += \
1011 libsystemd_logs_la_SOURCES = \
1012 src/shared/logs-show.c \
1013 src/shared/logs-show.h
1015 # ------------------------------------------------------------------------------
1017 noinst_LTLIBRARIES += \
1020 libsystemd_acl_la_SOURCES = \
1021 src/shared/acl-util.c \
1022 src/shared/acl-util.h
1024 libsystemd_acl_la_CFLAGS = \
1028 libsystemd_acl_la_LIBADD = \
1032 # ------------------------------------------------------------------------------
1033 noinst_LTLIBRARIES += \
1036 libsystemd_core_la_SOURCES = \
1039 src/core/unit-printf.c \
1040 src/core/unit-printf.h \
1043 src/core/manager.c \
1044 src/core/manager.h \
1045 src/core/transaction.c \
1046 src/core/transaction.h \
1047 src/core/load-fragment.c \
1048 src/core/load-fragment.h \
1049 src/core/service.c \
1050 src/core/service.h \
1053 src/core/busname.c \
1054 src/core/busname.h \
1055 src/core/bus-endpoint.c \
1056 src/core/bus-endpoint.h \
1057 src/core/bus-policy.c \
1058 src/core/bus-policy.h \
1061 src/core/snapshot.c \
1062 src/core/snapshot.h \
1067 src/core/automount.c \
1068 src/core/automount.h \
1079 src/core/load-dropin.c \
1080 src/core/load-dropin.h \
1081 src/core/execute.c \
1082 src/core/execute.h \
1087 src/core/dbus-manager.c \
1088 src/core/dbus-manager.h \
1089 src/core/dbus-unit.c \
1090 src/core/dbus-unit.h \
1091 src/core/dbus-job.c \
1092 src/core/dbus-job.h \
1093 src/core/dbus-service.c \
1094 src/core/dbus-service.h \
1095 src/core/dbus-socket.c \
1096 src/core/dbus-socket.h \
1097 src/core/dbus-busname.c \
1098 src/core/dbus-busname.h \
1099 src/core/dbus-target.c \
1100 src/core/dbus-target.h \
1101 src/core/dbus-snapshot.c \
1102 src/core/dbus-snapshot.h \
1103 src/core/dbus-device.c \
1104 src/core/dbus-device.h \
1105 src/core/dbus-mount.c \
1106 src/core/dbus-mount.h \
1107 src/core/dbus-automount.c \
1108 src/core/dbus-automount.h \
1109 src/core/dbus-swap.c \
1110 src/core/dbus-swap.h \
1111 src/core/dbus-timer.c \
1112 src/core/dbus-timer.h \
1113 src/core/dbus-path.c \
1114 src/core/dbus-path.h \
1115 src/core/dbus-slice.c \
1116 src/core/dbus-slice.h \
1117 src/core/dbus-scope.c \
1118 src/core/dbus-scope.h \
1119 src/core/dbus-execute.c \
1120 src/core/dbus-execute.h \
1121 src/core/dbus-kill.c \
1122 src/core/dbus-kill.h \
1123 src/core/dbus-cgroup.c \
1124 src/core/dbus-cgroup.h \
1127 src/core/selinux-access.c \
1128 src/core/selinux-access.h \
1129 src/core/selinux-setup.c \
1130 src/core/selinux-setup.h \
1131 src/core/smack-setup.c \
1132 src/core/smack-setup.h \
1133 src/core/ima-setup.c \
1134 src/core/ima-setup.h \
1135 src/core/locale-setup.h \
1136 src/core/locale-setup.c \
1137 src/core/hostname-setup.c \
1138 src/core/hostname-setup.h \
1139 src/core/machine-id-setup.c \
1140 src/core/machine-id-setup.h \
1141 src/core/mount-setup.c \
1142 src/core/mount-setup.h \
1143 src/core/kmod-setup.c \
1144 src/core/kmod-setup.h \
1145 src/core/loopback-setup.h \
1146 src/core/loopback-setup.c \
1147 src/core/namespace.c \
1148 src/core/namespace.h \
1149 src/core/killall.h \
1150 src/core/killall.c \
1151 src/core/audit-fd.c \
1152 src/core/audit-fd.h \
1153 src/core/show-status.c \
1154 src/core/show-status.h \
1155 src/core/failure-action.c \
1156 src/core/failure-action.h
1158 nodist_libsystemd_core_la_SOURCES = \
1159 src/core/load-fragment-gperf.c \
1160 src/core/load-fragment-gperf-nulstr.c
1162 libsystemd_core_la_CFLAGS = \
1167 $(APPARMOR_CFLAGS) \
1172 libsystemd_core_la_LIBADD = \
1173 libsystemd-units.la \
1174 libsystemd-label.la \
1175 libudev-internal.la \
1176 libsystemd-shared.la \
1177 libsystemd-internal.la \
1186 libsystemd_core_la_LIBADD += \
1187 libsystemd-seccomp.la
1190 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1191 $(AM_V_at)$(MKDIR_P) $(dir $@)
1192 $(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 ";" }' < $< > $@
1195 src/core/load-fragment-gperf.gperf.m4
1198 src/core/load-fragment-gperf.gperf \
1199 src/core/load-fragment-gperf.c \
1200 src/core/load-fragment-gperf-nulstr.c \
1201 src/shared/errno-list.txt \
1202 src/shared/errno-from-name.gperf \
1203 src/shared/af-list.txt \
1204 src/shared/af-from-name.gperf \
1205 src/shared/arphrd-list.txt \
1206 src/shared/arphrd-from-name.gperf \
1207 src/shared/cap-list.txt \
1208 src/shared/cap-from-name.gperf \
1209 src/resolve/dns_type-list.txt \
1210 src/resolve/dns_type-from-name.gperf
1213 src/shared/errno-from-name.h \
1214 src/shared/errno-to-name.h \
1215 src/shared/af-from-name.h \
1216 src/shared/af-to-name.h \
1217 src/shared/arphrd-from-name.h \
1218 src/shared/arphrd-to-name.h \
1219 src/shared/cap-from-name.h \
1220 src/shared/cap-to-name.h \
1221 src/resolve/dns_type-from-name.h \
1222 src/resolve/dns_type-to-name.h
1224 %-from-name.gperf: %-list.txt
1225 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1227 %-from-name.h: %-from-name.gperf
1228 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1231 src/shared/errno-list.txt:
1232 $(AM_V_at)$(MKDIR_P) $(dir $@)
1233 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1235 src/shared/errno-to-name.h: src/shared/errno-list.txt
1236 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1239 src/shared/af-list.txt:
1240 $(AM_V_at)$(MKDIR_P) $(dir $@)
1241 $(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; }' >$@
1243 src/shared/af-to-name.h: src/shared/af-list.txt
1244 $(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 "};"}' <$< >$@
1247 src/shared/arphrd-list.txt:
1248 $(AM_V_at)$(MKDIR_P) $(dir $@)
1249 $(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_//' >$@
1251 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1252 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1254 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1255 $(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 }' <$< >$@
1258 src/shared/cap-list.txt:
1259 $(AM_V_at)$(MKDIR_P) $(dir $@)
1260 $(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 >$@
1262 src/shared/cap-to-name.h: src/shared/cap-list.txt
1263 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1265 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1266 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1268 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1269 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1272 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1273 $(AM_V_at)$(MKDIR_P) $(dir $@)
1274 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1276 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1277 $(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" }' <$< >$@
1279 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1280 $(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 }' <$< >$@
1282 # ------------------------------------------------------------------------------
1291 libsystemd-core.la \
1294 dist_pkgsysconf_DATA += \
1295 src/core/system.conf \
1298 dist_dbuspolicy_DATA += \
1299 src/core/org.freedesktop.systemd1.conf
1301 dist_dbussystemservice_DATA += \
1302 src/core/org.freedesktop.systemd1.service
1304 polkitpolicy_in_in_files += \
1305 src/core/org.freedesktop.systemd1.policy.in.in
1307 pkgconfiglib_DATA += \
1310 nodist_rpmmacros_DATA = \
1311 src/core/macros.systemd
1314 src/core/systemd.pc.in \
1315 src/core/macros.systemd.in
1318 src/core/macros.systemd \
1319 src/core/org.freedesktop.systemd1.policy.in
1321 # ------------------------------------------------------------------------------
1365 test-strip-tab-ansi \
1399 test/daughter.service \
1404 test/grandchild.service \
1406 test/hello-after-sleep.target \
1407 test/hello.service \
1409 test/parent-deep.slice \
1412 test/sched_idle_bad.service \
1413 test/sched_idle_ok.service \
1414 test/sched_rr_bad.service \
1415 test/sched_rr_change.service \
1416 test/sched_rr_ok.service \
1417 test/shutdown.target \
1418 test/sleep.service \
1419 test/sockets.target \
1421 test/sysinit.target \
1422 test/testsuite.target \
1423 test/timers.target \
1424 test/unstoppable.service \
1425 test/path-changed.service \
1426 test/path-directorynotempty.service \
1427 test/path-existsglob.service \
1428 test/path-exists.service \
1429 test/path-makedirectory.service \
1430 test/path-modified.service \
1431 test/path-mycustomunit.service \
1432 test/path-service.service \
1433 test/path-changed.path \
1434 test/path-directorynotempty.path \
1435 test/path-existsglob.path \
1436 test/path-exists.path \
1437 test/path-makedirectory.path \
1438 test/path-modified.path \
1439 test/path-unit.path \
1440 test/exec-environment-empty.service \
1441 test/exec-environment-multiple.service \
1442 test/exec-environment.service \
1443 test/exec-group.service \
1444 test/exec-ignoresigpipe-no.service \
1445 test/exec-ignoresigpipe-yes.service \
1446 test/exec-personality-x86-64.service \
1447 test/exec-personality-x86.service \
1448 test/exec-privatedevices-no.service \
1449 test/exec-privatedevices-yes.service \
1450 test/exec-privatetmp-no.service \
1451 test/exec-privatetmp-yes.service \
1452 test/exec-systemcallerrornumber.service \
1453 test/exec-systemcallfilter-failing2.service \
1454 test/exec-systemcallfilter-failing.service \
1455 test/exec-systemcallfilter-not-failing2.service \
1456 test/exec-systemcallfilter-not-failing.service \
1457 test/exec-user.service \
1458 test/exec-workingdirectory.service \
1459 test/exec-umask-0177.service \
1460 test/exec-umask-default.service \
1461 test/bus-policy/hello.conf \
1462 test/bus-policy/methods.conf \
1463 test/bus-policy/ownerships.conf \
1464 test/bus-policy/signals.conf \
1465 test/bus-policy/check-own-rules.conf \
1466 test/bus-policy/many-rules.conf \
1467 test/bus-policy/test.conf
1471 src/test/test-helper.h
1473 test_device_nodes_SOURCES = \
1474 src/test/test-device-nodes.c
1476 test_device_nodes_LDADD = \
1477 libsystemd-shared.la
1479 test_engine_SOURCES = \
1480 src/test/test-engine.c
1482 test_engine_CFLAGS = \
1486 test_engine_LDADD = \
1487 libsystemd-core.la \
1490 test_job_type_SOURCES = \
1491 src/test/test-job-type.c
1493 test_job_type_CFLAGS = \
1497 test_job_type_LDADD = \
1498 libsystemd-core.la \
1511 test_loopback_SOURCES = \
1512 src/test/test-loopback.c
1514 test_loopback_LDADD = \
1517 test_hostname_SOURCES = \
1518 src/test/test-hostname.c
1520 test_hostname_LDADD = \
1527 test_boot_timestamp_SOURCES = \
1528 src/test/test-boot-timestamps.c
1530 test_boot_timestamp_LDADD = \
1531 libsystemd-shared.la
1534 test_unit_name_SOURCES = \
1535 src/test/test-unit-name.c
1537 test_unit_name_CFLAGS = \
1541 test_unit_name_LDADD = \
1542 libsystemd-core.la \
1545 test_unit_file_SOURCES = \
1546 src/test/test-unit-file.c
1548 test_unit_file_CFLAGS = \
1552 test_unit_file_LDADD = \
1553 libsystemd-core.la \
1556 test_utf8_SOURCES = \
1557 src/test/test-utf8.c
1560 libsystemd-shared.la
1562 test_capability_SOURCES = \
1563 src/test/test-capability.c
1565 test_capability_LDADD = \
1566 libsystemd-shared.la
1568 test_async_SOURCES = \
1569 src/test/test-async.c
1571 test_async_LDADD = \
1572 libsystemd-shared.la
1574 test_locale_util_SOURCES = \
1575 src/test/test-locale-util.c
1577 test_locale_util_LDADD = \
1578 libsystemd-shared.la
1580 test_copy_SOURCES = \
1581 src/test/test-copy.c
1584 libsystemd-shared.la
1586 test_sigbus_SOURCES = \
1587 src/test/test-sigbus.c
1589 test_sigbus_LDADD = \
1590 libsystemd-shared.la
1592 test_condition_SOURCES = \
1593 src/test/test-condition.c
1595 test_condition_LDADD = \
1596 libsystemd-label.la \
1597 libsystemd-internal.la \
1598 libsystemd-shared.la
1600 test_fdset_SOURCES = \
1601 src/test/test-fdset.c
1603 test_fdset_LDADD = \
1604 libsystemd-shared.la \
1605 libsystemd-internal.la
1607 test_ratelimit_SOURCES = \
1608 src/test/test-ratelimit.c
1610 test_ratelimit_LDADD = \
1611 libsystemd-shared.la
1613 test_util_SOURCES = \
1614 src/test/test-util.c
1618 libsystemd-shared.la
1620 test_uid_range_SOURCES = \
1621 src/test/test-uid-range.c
1623 test_uid_range_LDADD = \
1624 libsystemd-shared.la
1626 test_cap_list_SOURCES = \
1627 src/test/test-cap-list.c
1629 test_cap_list_LDADD = \
1630 libsystemd-shared.la
1632 test_socket_util_SOURCES = \
1633 src/test/test-socket-util.c
1635 test_socket_util_LDADD = \
1636 libsystemd-shared.la
1638 test_ring_SOURCES = \
1639 src/test/test-ring.c
1642 libsystemd-shared.la
1644 test_barrier_SOURCES = \
1645 src/test/test-barrier.c
1647 test_barrier_LDADD = \
1648 libsystemd-shared.la
1650 test_pty_SOURCES = \
1656 test_tmpfiles_SOURCES = \
1657 src/test/test-tmpfiles.c
1659 test_tmpfiles_LDADD = \
1660 libsystemd-shared.la
1662 test_namespace_SOURCES = \
1663 src/test/test-namespace.c
1665 test_namespace_LDADD = \
1669 src/test/test-hashmap-ordered.c
1672 src/test/test-hashmap-ordered.c
1674 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1675 $(AM_V_at)$(MKDIR_P) $(dir $@)
1676 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1677 { if (!match($$0, "^#include")) \
1678 gsub(/hashmap/, "ordered_hashmap"); \
1679 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1680 gsub(/Hashmap/, "OrderedHashmap"); \
1683 nodist_test_hashmap_SOURCES = \
1684 src/test/test-hashmap-ordered.c
1686 test_hashmap_SOURCES = \
1687 src/test/test-hashmap.c \
1688 src/test/test-hashmap-plain.c
1690 test_hashmap_LDADD = \
1691 libsystemd-shared.la
1693 test_set_SOURCES = \
1697 libsystemd-shared.la
1699 test_xml_SOURCES = \
1703 libsystemd-shared.la
1705 test_json_SOURCES = \
1706 src/test/test-json.c
1709 libsystemd-shared.la \
1712 test_list_SOURCES = \
1713 src/test/test-list.c
1716 libsystemd-shared.la
1718 test_unaligned_LDADD = \
1719 libsystemd-shared.la
1721 test_unaligned_SOURCES = \
1722 src/test/test-unaligned.c
1724 test_tables_SOURCES = \
1725 src/test/test-tables.c \
1726 src/shared/test-tables.h \
1727 src/bus-proxyd/bus-xml-policy.c \
1728 src/bus-proxyd/bus-xml-policy.h \
1729 src/journal/journald-server.c \
1730 src/journal/journald-server.h
1732 test_tables_CPPFLAGS = \
1734 -I$(top_srcdir)/src/bus-proxyd
1736 test_tables_CFLAGS = \
1740 test_tables_LDADD = \
1741 libsystemd-logs.la \
1742 libsystemd-journal-internal.la \
1743 libsystemd-journal-core.la \
1744 libsystemd-core.la \
1748 test_prioq_SOURCES = \
1749 src/test/test-prioq.c
1751 test_prioq_LDADD = \
1752 libsystemd-shared.la
1754 test_fileio_SOURCES = \
1755 src/test/test-fileio.c
1757 test_fileio_LDADD = \
1758 libsystemd-shared.la
1760 test_time_SOURCES = \
1761 src/test/test-time.c
1764 libsystemd-shared.la
1766 test_architecture_SOURCES = \
1767 src/test/test-architecture.c
1769 test_architecture_LDADD = \
1770 libsystemd-shared.la
1772 test_log_SOURCES = \
1776 libsystemd-shared.la
1778 test_ipcrm_SOURCES = \
1779 src/test/test-ipcrm.c
1781 test_ipcrm_LDADD = \
1782 libsystemd-shared.la \
1785 test_btrfs_SOURCES = \
1786 src/test/test-btrfs.c
1788 test_btrfs_LDADD = \
1789 libsystemd-shared.la
1791 test_rtnl_manual_SOURCES = \
1792 src/test/test-rtnl-manual.c
1794 test_rtnl_manual_CFLAGS = \
1798 test_rtnl_manual_LDADD = \
1799 libsystemd-internal.la \
1800 libsystemd-shared.la \
1803 test_ellipsize_SOURCES = \
1804 src/test/test-ellipsize.c
1806 test_ellipsize_LDADD = \
1807 libsystemd-shared.la
1809 test_date_SOURCES = \
1810 src/test/test-date.c
1813 libsystemd-shared.la
1815 test_sleep_SOURCES = \
1816 src/test/test-sleep.c
1818 test_sleep_LDADD = \
1821 test_replace_var_SOURCES = \
1822 src/test/test-replace-var.c
1824 test_replace_var_LDADD = \
1825 libsystemd-shared.la
1827 test_calendarspec_SOURCES = \
1828 src/test/test-calendarspec.c
1830 test_calendarspec_LDADD = \
1831 libsystemd-shared.la
1833 test_strip_tab_ansi_SOURCES = \
1834 src/test/test-strip-tab-ansi.c
1836 test_strip_tab_ansi_LDADD = \
1837 libsystemd-shared.la
1839 test_daemon_SOURCES = \
1840 src/test/test-daemon.c
1842 test_daemon_LDADD = \
1843 libsystemd-internal.la \
1844 libsystemd-shared.la
1846 test_cgroup_SOURCES = \
1847 src/test/test-cgroup.c
1849 test_cgroup_LDADD = \
1850 libsystemd-label.la \
1851 libsystemd-shared.la \
1852 libsystemd-internal.la
1854 test_cgroup_mask_SOURCES = \
1855 src/test/test-cgroup-mask.c
1857 test_cgroup_mask_CPPFLAGS = \
1860 test_cgroup_mask_CFLAGS = \
1864 test_cgroup_mask_LDADD = \
1865 libsystemd-core.la \
1868 test_cgroup_util_SOURCES = \
1869 src/test/test-cgroup-util.c
1871 test_cgroup_util_LDADD = \
1872 libsystemd-label.la \
1873 libsystemd-internal.la \
1874 libsystemd-shared.la
1876 test_env_replace_SOURCES = \
1877 src/test/test-env-replace.c
1879 test_env_replace_LDADD = \
1880 libsystemd-shared.la
1882 test_strbuf_SOURCES = \
1883 src/test/test-strbuf.c
1885 test_strbuf_LDADD = \
1886 libsystemd-shared.la
1888 test_strv_SOURCES = \
1889 src/test/test-strv.c
1892 libsystemd-units.la \
1893 libsystemd-internal.la \
1894 libsystemd-shared.la
1896 test_path_util_SOURCES = \
1897 src/test/test-path-util.c
1899 test_path_util_LDADD = \
1900 libsystemd-shared.la
1902 test_path_SOURCES = \
1903 src/test/test-path.c
1905 test_path_CFLAGS = \
1911 test_execute_SOURCES = \
1912 src/test/test-execute.c
1914 test_execute_CFLAGS = \
1917 test_execute_LDADD = \
1920 test_strxcpyx_SOURCES = \
1921 src/test/test-strxcpyx.c
1923 test_strxcpyx_LDADD = \
1924 libsystemd-shared.la
1926 test_install_SOURCES = \
1927 src/test/test-install.c
1929 test_install_LDADD = \
1930 libsystemd-units.la \
1931 libsystemd-label.la \
1932 libsystemd-shared.la \
1933 libsystemd-internal.la
1935 test_watchdog_SOURCES = \
1936 src/test/test-watchdog.c
1938 test_watchdog_LDADD = \
1939 libsystemd-shared.la
1941 test_sched_prio_SOURCES = \
1942 src/test/test-sched-prio.c
1944 test_sched_prio_CPPFLAGS = \
1947 test_sched_prio_CFLAGS = \
1951 test_sched_prio_LDADD = \
1952 libsystemd-core.la \
1955 test_conf_files_SOURCES = \
1956 src/test/test-conf-files.c
1958 test_conf_files_LDADD = \
1959 libsystemd-shared.la
1961 test_bus_policy_SOURCES = \
1962 src/bus-proxyd/test-bus-xml-policy.c \
1963 src/bus-proxyd/bus-xml-policy.c \
1964 src/bus-proxyd/bus-xml-policy.h
1966 test_bus_policy_LDADD = \
1967 libsystemd-internal.la \
1968 libsystemd-shared.la
1970 # ------------------------------------------------------------------------------
1971 ## .PHONY so it always rebuilds it
1972 .PHONY: coverage lcov-run lcov-report coverage-sync
1974 # run lcov from scratch, always
1979 coverage_dir = coverage
1980 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1983 # reset run coverage tests
1985 @rm -rf $(coverage_dir)
1986 lcov $(coverage_opts) --zerocounters
1989 # generate report based on current coverage data
1991 $(MKDIR_P) $(coverage_dir)
1992 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1993 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1994 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1995 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1996 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1998 # lcov doesn't work properly with vpath builds, make sure that bad
1999 # output is not uploaded by mistake.
2000 coverage-sync: coverage
2001 test "$(builddir)" = "$(srcdir)"
2002 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2005 lcov-run lcov-report:
2006 echo "Need to reconfigure with --enable-coverage"
2009 # ------------------------------------------------------------------------------
2010 systemd_analyze_SOURCES = \
2011 src/analyze/analyze.c \
2012 src/analyze/analyze-verify.c \
2013 src/analyze/analyze-verify.h
2015 systemd_verify_CFLAGS = \
2019 systemd_analyze_LDADD = \
2020 libsystemd-core.la \
2021 libsystemd-internal.la \
2022 libsystemd-shared.la \
2025 # ------------------------------------------------------------------------------
2026 systemd_initctl_SOURCES = \
2027 src/initctl/initctl.c
2029 systemd_initctl_LDADD = \
2030 libsystemd-internal.la \
2031 libsystemd-shared.la
2033 # ------------------------------------------------------------------------------
2034 systemd_update_utmp_SOURCES = \
2035 src/update-utmp/update-utmp.c
2037 systemd_update_utmp_CFLAGS = \
2041 systemd_update_utmp_LDADD = \
2042 libsystemd-internal.la \
2043 libsystemd-shared.la \
2046 # ------------------------------------------------------------------------------
2047 systemd_update_done_SOURCES = \
2048 src/update-done/update-done.c
2050 systemd_update_done_LDADD = \
2051 libsystemd-internal.la \
2052 libsystemd-label.la \
2053 libsystemd-shared.la
2055 # ------------------------------------------------------------------------------
2056 systemd_shutdownd_SOURCES = \
2057 src/shutdownd/shutdownd.c
2059 systemd_shutdownd_LDADD = \
2060 libsystemd-label.la \
2061 libsystemd-internal.la \
2062 libsystemd-shared.la
2065 src/systemd/sd-shutdown.h
2067 # ------------------------------------------------------------------------------
2068 systemd_shutdown_SOURCES = \
2071 src/core/shutdown.c \
2072 src/core/mount-setup.c \
2073 src/core/mount-setup.h \
2074 src/core/killall.h \
2077 systemd_shutdown_LDADD = \
2078 libsystemd-label.la \
2079 libudev-internal.la \
2080 libsystemd-shared.la
2082 # ------------------------------------------------------------------------------
2084 systemd_modules_load_SOURCES = \
2085 src/modules-load/modules-load.c
2087 systemd_modules_load_CFLAGS = \
2091 systemd_modules_load_LDADD = \
2092 libsystemd-shared.la \
2095 rootlibexec_PROGRAMS += \
2096 systemd-modules-load
2098 nodist_systemunit_DATA += \
2099 units/systemd-modules-load.service
2101 SYSINIT_TARGET_WANTS += \
2102 systemd-modules-load.service
2105 nodist_systemunit_DATA += \
2106 units/kmod-static-nodes.service
2108 SYSINIT_TARGET_WANTS += \
2109 kmod-static-nodes.service
2114 units/systemd-modules-load.service.in \
2115 units/kmod-static-nodes.service.in
2117 # ------------------------------------------------------------------------------
2119 systemd_tmpfiles_SOURCES = \
2120 src/tmpfiles/tmpfiles.c
2122 systemd_tmpfiles_LDADD = \
2123 libsystemd-units.la \
2124 libsystemd-label.la \
2125 libsystemd-internal.la \
2126 libsystemd-shared.la
2128 rootbin_PROGRAMS += \
2131 dist_systemunit_DATA += \
2132 units/systemd-tmpfiles-clean.timer
2134 nodist_systemunit_DATA += \
2135 units/systemd-tmpfiles-setup-dev.service \
2136 units/systemd-tmpfiles-setup.service \
2137 units/systemd-tmpfiles-clean.service
2139 nodist_tmpfiles_DATA = \
2142 dist_tmpfiles_DATA = \
2143 tmpfiles.d/systemd.conf \
2144 tmpfiles.d/systemd-nologin.conf \
2145 tmpfiles.d/tmp.conf \
2146 tmpfiles.d/x11.conf \
2150 dist_tmpfiles_DATA += \
2151 tmpfiles.d/legacy.conf
2154 SYSINIT_TARGET_WANTS += \
2155 systemd-tmpfiles-setup-dev.service \
2156 systemd-tmpfiles-setup.service
2158 dist_zshcompletion_DATA += \
2159 shell-completion/zsh/_systemd-tmpfiles
2161 TIMERS_TARGET_WANTS += \
2162 systemd-tmpfiles-clean.timer
2166 $(sysconfdir)/tmpfiles.d
2170 tmpfiles.d/etc.conf.m4 \
2171 units/systemd-tmpfiles-setup-dev.service.in \
2172 units/systemd-tmpfiles-setup.service.in \
2173 units/systemd-tmpfiles-clean.service.in
2178 # ------------------------------------------------------------------------------
2180 systemd_sysusers_SOURCES = \
2181 src/sysusers/sysusers.c
2183 systemd_sysusers_LDADD = \
2184 libsystemd-units.la \
2185 libsystemd-label.la \
2186 libsystemd-internal.la \
2187 libsystemd-shared.la
2189 rootbin_PROGRAMS += \
2192 nodist_systemunit_DATA += \
2193 units/systemd-sysusers.service
2195 SYSINIT_TARGET_WANTS += \
2196 systemd-sysusers.service
2198 dist_sysusers_DATA = \
2199 sysusers.d/systemd.conf
2201 nodist_sysusers_DATA = \
2202 sysusers.d/basic.conf
2205 units/systemd-sysusers.service.in \
2206 sysusers.d/basic.conf.in
2209 sysusers.d/basic.conf
2215 # ------------------------------------------------------------------------------
2216 dist_factory_etc_DATA = \
2217 factory/etc/nsswitch.conf
2220 dist_factory_pam_DATA = \
2221 factory/etc/pam.d/system-auth \
2222 factory/etc/pam.d/other
2225 # ------------------------------------------------------------------------------
2227 systemd_firstboot_SOURCES = \
2228 src/firstboot/firstboot.c
2230 systemd_firstboot_LDADD = \
2231 libsystemd-units.la \
2232 libsystemd-label.la \
2233 libsystemd-internal.la \
2234 libsystemd-shared.la \
2237 rootbin_PROGRAMS += \
2240 nodist_systemunit_DATA += \
2241 units/systemd-firstboot.service
2244 units/systemd-firstboot.service.in
2246 SYSINIT_TARGET_WANTS += \
2247 systemd-firstboot.service
2250 # ------------------------------------------------------------------------------
2251 systemd_machine_id_setup_SOURCES = \
2252 src/machine-id-setup/machine-id-setup-main.c \
2253 src/core/machine-id-setup.c \
2254 src/core/machine-id-setup.h
2256 systemd_machine_id_setup_LDADD = \
2257 libsystemd-label.la \
2258 libsystemd-internal.la \
2259 libsystemd-shared.la
2261 # ------------------------------------------------------------------------------
2262 systemd_sysctl_SOURCES = \
2265 systemd_sysctl_LDADD = \
2266 libsystemd-shared.la
2268 # ------------------------------------------------------------------------------
2269 systemd_sleep_SOURCES = \
2272 systemd_sleep_LDADD = \
2273 libsystemd-shared.la
2275 # ------------------------------------------------------------------------------
2276 systemd_fsck_SOURCES = \
2279 systemd_fsck_LDADD = \
2280 libsystemd-internal.la \
2281 libudev-internal.la \
2282 libsystemd-shared.la
2284 # ------------------------------------------------------------------------------
2285 systemd_machine_id_commit_SOURCES = \
2286 src/machine-id-commit/machine-id-commit.c \
2287 src/core/machine-id-setup.c \
2288 src/core/machine-id-setup.h
2290 systemd_machine_id_commit_LDADD = \
2291 libsystemd-label.la \
2292 libsystemd-internal.la \
2293 libsystemd-shared.la
2295 SYSINIT_TARGET_WANTS += \
2296 systemd-machine-id-commit.service
2298 # ------------------------------------------------------------------------------
2299 systemd_ac_power_SOURCES = \
2300 src/ac-power/ac-power.c
2302 systemd_ac_power_LDADD = \
2303 libudev-internal.la \
2304 libsystemd-shared.la
2306 # ------------------------------------------------------------------------------
2307 systemd_detect_virt_SOURCES = \
2308 src/detect-virt/detect-virt.c
2310 systemd_detect_virt_LDADD = \
2311 libsystemd-shared.la
2313 INSTALL_EXEC_HOOKS += \
2314 systemd-detect-virt-install-hook
2316 # ------------------------------------------------------------------------------
2317 systemd_delta_SOURCES = \
2320 systemd_delta_LDADD = \
2321 libsystemd-shared.la
2323 # ------------------------------------------------------------------------------
2324 systemd_getty_generator_SOURCES = \
2325 src/getty-generator/getty-generator.c
2327 systemd_getty_generator_LDADD = \
2328 libsystemd-label.la \
2329 libsystemd-shared.la
2331 # ------------------------------------------------------------------------------
2332 systemd_debug_generator_SOURCES = \
2333 src/debug-generator/debug-generator.c
2335 systemd_debug_generator_LDADD = \
2336 libsystemd-label.la \
2337 libsystemd-shared.la
2339 # ------------------------------------------------------------------------------
2340 systemd_fstab_generator_SOURCES = \
2341 src/fstab-generator/fstab-generator.c \
2342 src/core/mount-setup.c
2344 systemd_fstab_generator_LDADD = \
2345 libsystemd-label.la \
2346 libsystemd-shared.la
2348 # ------------------------------------------------------------------------------
2349 systemd_system_update_generator_SOURCES = \
2350 src/system-update-generator/system-update-generator.c
2352 systemd_system_update_generator_LDADD = \
2353 libsystemd-label.la \
2354 libsystemd-shared.la
2356 # ------------------------------------------------------------------------------
2358 systemgenerator_PROGRAMS += \
2359 systemd-hibernate-resume-generator
2361 rootlibexec_PROGRAMS += \
2362 systemd-hibernate-resume
2364 systemd_hibernate_resume_SOURCES = \
2365 src/hibernate-resume/hibernate-resume.c
2367 systemd_hibernate_resume_LDADD = \
2368 libsystemd-internal.la \
2369 libsystemd-shared.la
2371 systemd_hibernate_resume_generator_SOURCES = \
2372 src/hibernate-resume/hibernate-resume-generator.c
2374 systemd_hibernate_resume_generator_LDADD = \
2375 libsystemd-label.la \
2376 libsystemd-shared.la
2379 units/systemd-hibernate.service.in \
2380 units/systemd-hibernate-resume@.service.in \
2381 units/systemd-hybrid-sleep.service.in
2383 dist_systemunit_DATA += \
2384 units/hibernate.target \
2385 units/hybrid-sleep.target
2387 nodist_systemunit_DATA += \
2388 units/systemd-hibernate.service \
2389 units/systemd-hibernate-resume@.service \
2390 units/systemd-hybrid-sleep.service
2393 # ------------------------------------------------------------------------------
2395 systemgenerator_PROGRAMS += \
2396 systemd-efi-boot-generator
2398 systemd_efi_boot_generator_SOURCES = \
2399 src/efi-boot-generator/efi-boot-generator.c
2401 systemd_efi_boot_generator_LDADD = \
2402 libsystemd-label.la \
2403 libsystemd-shared.la
2405 # ------------------------------------------------------------------------------
2408 src/boot/boot-loader.h \
2409 src/boot/bootctl.c \
2410 src/boot/boot-loader.c \
2414 libsystemd-shared.la \
2415 libsystemd-internal.la
2420 dist_bashcompletion_DATA += \
2421 shell-completion/bash/bootctl
2423 dist_zshcompletion_DATA += \
2424 shell-completion/zsh/_bootctl
2428 # ------------------------------------------------------------------------------
2430 systemgenerator_PROGRAMS += \
2431 systemd-gpt-auto-generator
2433 systemd_gpt_auto_generator_SOURCES = \
2434 src/gpt-auto-generator/gpt-auto-generator.c \
2435 src/shared/blkid-util.h
2437 systemd_gpt_auto_generator_LDADD = \
2438 libsystemd-label.la \
2439 libsystemd-internal.la \
2440 libudev-internal.la \
2441 libsystemd-shared.la \
2444 systemd_gpt_auto_generator_CFLAGS = \
2449 # ------------------------------------------------------------------------------
2451 systemgenerator_PROGRAMS += \
2452 systemd-dbus1-generator
2454 systemd_dbus1_generator_SOURCES = \
2455 src/dbus1-generator/dbus1-generator.c
2457 systemd_dbus1_generator_LDADD = \
2458 libsystemd-label.la \
2459 libsystemd-internal.la \
2460 libsystemd-shared.la
2462 dbus1-generator-install-hook:
2463 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2464 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2465 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2467 dbus1-generator-uninstall-hook:
2468 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2470 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2471 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2474 # ------------------------------------------------------------------------------
2475 systemd_sysv_generator_SOURCES = \
2476 src/sysv-generator/sysv-generator.c
2478 systemd_sysv_generator_LDADD = \
2479 libsystemd-core.la \
2480 libsystemd-label.la \
2481 libsystemd-shared.la
2483 # ------------------------------------------------------------------------------
2484 systemd_rc_local_generator_SOURCES = \
2485 src/rc-local-generator/rc-local-generator.c
2487 systemd_rc_local_generator_LDADD = \
2488 libsystemd-label.la \
2489 libsystemd-shared.la
2491 # ------------------------------------------------------------------------------
2492 systemd_remount_fs_SOURCES = \
2493 src/remount-fs/remount-fs.c \
2494 src/core/mount-setup.c \
2495 src/core/mount-setup.h
2497 systemd_remount_fs_LDADD = \
2498 libsystemd-label.la \
2499 libsystemd-shared.la
2501 # ------------------------------------------------------------------------------
2502 systemd_cgroups_agent_SOURCES = \
2503 src/cgroups-agent/cgroups-agent.c
2505 systemd_cgroups_agent_LDADD = \
2506 libsystemd-internal.la \
2507 libsystemd-shared.la
2509 # ------------------------------------------------------------------------------
2510 systemd_escape_SOURCES = \
2513 systemd_escape_LDADD = \
2514 libsystemd-shared.la
2516 # -----------------------------------------------------------------------------
2517 systemctl_SOURCES = \
2518 src/systemctl/systemctl.c
2521 libsystemd-units.la \
2522 libsystemd-label.la \
2523 libsystemd-internal.la \
2524 libsystemd-logs.la \
2525 libsystemd-journal-internal.la \
2526 libsystemd-shared.la
2528 # ------------------------------------------------------------------------------
2529 systemd_notify_SOURCES = \
2532 systemd_notify_LDADD = \
2533 libsystemd-internal.la \
2534 libsystemd-shared.la
2536 # ------------------------------------------------------------------------------
2537 systemd_path_SOURCES = \
2540 systemd_path_LDADD = \
2541 libsystemd-internal.la \
2542 libsystemd-shared.la
2544 # ------------------------------------------------------------------------------
2545 systemd_ask_password_SOURCES = \
2546 src/ask-password/ask-password.c
2548 systemd_ask_password_LDADD = \
2549 libsystemd-label.la \
2550 libsystemd-shared.la
2552 # ------------------------------------------------------------------------------
2553 systemd_reply_password_SOURCES = \
2554 src/reply-password/reply-password.c
2556 systemd_reply_password_LDADD = \
2557 libsystemd-shared.la
2559 # ------------------------------------------------------------------------------
2560 systemd_cgls_SOURCES = \
2563 systemd_cgls_LDADD = \
2564 libsystemd-internal.la \
2565 libsystemd-shared.la
2567 # ------------------------------------------------------------------------------
2568 systemd_cgtop_SOURCES = \
2571 systemd_cgtop_LDADD = \
2572 libsystemd-shared.la
2574 # ------------------------------------------------------------------------------
2575 systemd_nspawn_SOURCES = \
2576 src/nspawn/nspawn.c \
2577 src/core/mount-setup.c \
2578 src/core/mount-setup.h \
2579 src/core/loopback-setup.c \
2580 src/core/loopback-setup.h
2582 systemd_nspawn_CFLAGS = \
2587 systemd_nspawn_LDADD = \
2588 libsystemd-label.la \
2589 libsystemd-internal.la \
2590 libudev-internal.la \
2591 libsystemd-shared.la \
2595 systemd_nspawn_LDADD += \
2596 libsystemd-seccomp.la \
2600 # ------------------------------------------------------------------------------
2601 systemd_run_SOURCES = \
2604 systemd_run_LDADD = \
2605 libsystemd-label.la \
2606 libsystemd-internal.la \
2607 libsystemd-shared.la
2609 # ------------------------------------------------------------------------------
2610 systemd_bus_proxyd_SOURCES = \
2611 src/bus-proxyd/bus-proxyd.c \
2612 src/bus-proxyd/bus-xml-policy.c \
2613 src/bus-proxyd/bus-xml-policy.h
2615 systemd_bus_proxyd_LDADD = \
2616 libsystemd-internal.la \
2617 libsystemd-shared.la
2619 bus-proxyd-install-hook:
2620 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2621 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2622 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2624 bus-proxyd-uninstall-hook:
2625 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2627 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2628 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2631 nodist_systemunit_DATA += \
2632 units/systemd-bus-proxyd@.service
2634 dist_systemunit_DATA += \
2635 units/systemd-bus-proxyd.socket
2637 nodist_userunit_DATA += \
2638 units/user/systemd-bus-proxyd@.service
2640 dist_userunit_DATA += \
2641 units/user/systemd-bus-proxyd.socket
2645 units/systemd-bus-proxyd@.service.m4.in \
2646 units/user/systemd-bus-proxyd@.service.in
2649 units/systemd-bus-proxyd@.service.m4
2652 bus-proxyd-set-cap-hook:
2653 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2655 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2658 # ------------------------------------------------------------------------------
2659 systemd_tty_ask_password_agent_SOURCES = \
2660 src/tty-ask-password-agent/tty-ask-password-agent.c
2662 systemd_tty_ask_password_agent_LDADD = \
2663 libsystemd-label.la \
2664 libsystemd-shared.la
2666 # ------------------------------------------------------------------------------
2667 libsystemd_internal_la_SOURCES = \
2668 src/systemd/sd-bus.h \
2669 src/systemd/sd-bus-protocol.h \
2670 src/systemd/sd-bus-vtable.h \
2671 src/systemd/sd-utf8.h \
2672 src/systemd/sd-event.h \
2673 src/systemd/sd-rtnl.h \
2674 src/systemd/sd-resolve.h \
2675 src/systemd/sd-login.h \
2676 src/systemd/sd-id128.h \
2677 src/systemd/sd-daemon.h \
2678 src/systemd/sd-path.h \
2679 src/systemd/sd-network.h \
2680 src/systemd/sd-hwdb.h \
2681 src/libsystemd/sd-bus/sd-bus.c \
2682 src/libsystemd/sd-bus/bus-control.c \
2683 src/libsystemd/sd-bus/bus-control.h \
2684 src/libsystemd/sd-bus/bus-error.c \
2685 src/libsystemd/sd-bus/bus-error.h \
2686 src/libsystemd/sd-bus/bus-common-errors.h \
2687 src/libsystemd/sd-bus/bus-common-errors.c \
2688 src/libsystemd/sd-bus/bus-internal.c \
2689 src/libsystemd/sd-bus/bus-internal.h \
2690 src/libsystemd/sd-bus/bus-socket.c \
2691 src/libsystemd/sd-bus/bus-socket.h \
2692 src/libsystemd/sd-bus/bus-kernel.c \
2693 src/libsystemd/sd-bus/bus-kernel.h \
2694 src/libsystemd/sd-bus/bus-container.c \
2695 src/libsystemd/sd-bus/bus-container.h \
2696 src/libsystemd/sd-bus/bus-message.c \
2697 src/libsystemd/sd-bus/bus-message.h \
2698 src/libsystemd/sd-bus/bus-creds.c \
2699 src/libsystemd/sd-bus/bus-creds.h \
2700 src/libsystemd/sd-bus/bus-signature.c \
2701 src/libsystemd/sd-bus/bus-signature.h \
2702 src/libsystemd/sd-bus/bus-type.c \
2703 src/libsystemd/sd-bus/bus-type.h \
2704 src/libsystemd/sd-bus/bus-match.c \
2705 src/libsystemd/sd-bus/bus-match.h \
2706 src/libsystemd/sd-bus/bus-bloom.c \
2707 src/libsystemd/sd-bus/bus-bloom.h \
2708 src/libsystemd/sd-bus/bus-introspect.c \
2709 src/libsystemd/sd-bus/bus-introspect.h \
2710 src/libsystemd/sd-bus/bus-objects.c \
2711 src/libsystemd/sd-bus/bus-objects.h \
2712 src/libsystemd/sd-bus/bus-gvariant.c \
2713 src/libsystemd/sd-bus/bus-gvariant.h \
2714 src/libsystemd/sd-bus/bus-convenience.c \
2715 src/libsystemd/sd-bus/bus-track.c \
2716 src/libsystemd/sd-bus/bus-track.h \
2717 src/libsystemd/sd-bus/bus-util.c \
2718 src/libsystemd/sd-bus/bus-util.h \
2719 src/libsystemd/sd-bus/bus-slot.c \
2720 src/libsystemd/sd-bus/bus-slot.h \
2721 src/libsystemd/sd-bus/bus-protocol.h \
2722 src/libsystemd/sd-bus/kdbus.h \
2723 src/libsystemd/sd-utf8/sd-utf8.c \
2724 src/libsystemd/sd-event/sd-event.c \
2725 src/libsystemd/sd-event/event-util.h \
2726 src/libsystemd/sd-rtnl/sd-rtnl.c \
2727 src/libsystemd/sd-rtnl/rtnl-internal.h \
2728 src/libsystemd/sd-rtnl/rtnl-message.c \
2729 src/libsystemd/sd-rtnl/rtnl-types.h \
2730 src/libsystemd/sd-rtnl/rtnl-types.c \
2731 src/libsystemd/sd-rtnl/rtnl-util.h \
2732 src/libsystemd/sd-rtnl/rtnl-util.c \
2733 src/libsystemd/sd-rtnl/local-addresses.h \
2734 src/libsystemd/sd-rtnl/local-addresses.c \
2735 src/libsystemd/sd-id128/sd-id128.c \
2736 src/libsystemd/sd-daemon/sd-daemon.c \
2737 src/libsystemd/sd-login/sd-login.c \
2738 src/libsystemd/sd-path/sd-path.c \
2739 src/libsystemd/sd-network/sd-network.c \
2740 src/libsystemd/sd-network/network-util.h \
2741 src/libsystemd/sd-network/network-util.c \
2742 src/libsystemd/sd-hwdb/sd-hwdb.c \
2743 src/libsystemd/sd-hwdb/hwdb-util.h \
2744 src/libsystemd/sd-hwdb/hwdb-internal.h
2746 nodist_libsystemd_internal_la_SOURCES = \
2747 src/libsystemd/libsystemd.sym
2749 libsystemd_internal_la_CFLAGS = \
2753 libsystemd_internal_la_LIBADD = \
2756 libsystemd_resolve_la_SOURCES = \
2757 src/libsystemd/sd-resolve/sd-resolve.c \
2758 src/libsystemd/sd-resolve/resolve-util.h
2760 libsystemd_resolve_la_CFLAGS = \
2764 libsystemd_resolve_la_LIBADD = \
2767 noinst_LTLIBRARIES += \
2768 libsystemd-internal.la \
2769 libsystemd-resolve.la
2771 libsystemd_dump_la_SOURCES = \
2772 src/libsystemd/sd-bus/bus-dump.c \
2773 src/libsystemd/sd-bus/bus-dump.h
2775 noinst_LTLIBRARIES += \
2779 src/libsystemd/libsystemd.sym.m4 \
2780 src/libsystemd/libsystemd.pc.in \
2781 src/libsystemd/sd-bus/DIFFERENCES \
2782 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2785 src/libsystemd/libsystemd.sym
2788 src/libsystemd/libsystemd.sym
2790 libsystemd_la_SOURCES = \
2791 $(libsystemd_internal_la_SOURCES) \
2792 $(libsystemd_resolve_la_SOURCES) \
2793 $(libsystemd_journal_internal_la_SOURCES)
2795 nodist_libsystemd_la_SOURCES = \
2796 $(nodist_libsystemd_internal_la_SOURCES)
2798 libsystemd_la_CFLAGS = \
2799 $(libsystemd_internal_la_CFLAGS) \
2800 $(libsystemd_resolve_la_CFLAGS) \
2801 $(libsystemd_journal_internal_la_CFLAGS)
2803 libsystemd_la_LDFLAGS = \
2805 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2806 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2808 libsystemd_la_LIBADD = \
2809 libsystemd-shared.la \
2810 $(libsystemd_internal_la_LIBADD) \
2811 $(libsystemd_journal_internal_la_LIBADD) \
2812 $(libsystemd_resolve_la_LIBADD)
2814 libsystemd-install-hook:
2815 libname=libsystemd.so && $(move-to-rootlibdir)
2817 libsystemd-uninstall-hook:
2818 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2820 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2821 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2823 pkgconfiglib_DATA += \
2824 src/libsystemd/libsystemd.pc
2826 pkginclude_HEADERS += \
2827 src/systemd/sd-login.h \
2828 src/systemd/sd-id128.h \
2829 src/systemd/sd-daemon.h
2832 pkginclude_HEADERS += \
2833 src/systemd/sd-bus.h \
2834 src/systemd/sd-bus-protocol.h \
2835 src/systemd/sd-bus-vtable.h \
2836 src/systemd/sd-utf8.h \
2837 src/systemd/sd-event.h \
2838 src/systemd/sd-rtnl.h \
2839 src/systemd/sd-resolve.h \
2840 src/systemd/sd-path.h
2843 lib_LTLIBRARIES += \
2848 test-bus-signature \
2854 test-bus-kernel-bloom \
2855 test-bus-kernel-benchmark \
2856 test-bus-zero-copy \
2857 test-bus-introspect \
2864 test-local-addresses \
2870 test_bus_marshal_SOURCES = \
2871 src/libsystemd/sd-bus/test-bus-marshal.c
2873 test_bus_marshal_LDADD = \
2874 libsystemd-dump.la \
2875 libsystemd-internal.la \
2876 libsystemd-shared.la \
2880 test_bus_marshal_CFLAGS = \
2885 test_bus_signature_SOURCES = \
2886 src/libsystemd/sd-bus/test-bus-signature.c
2888 test_bus_signature_LDADD = \
2889 libsystemd-internal.la \
2890 libsystemd-shared.la
2892 test_bus_chat_SOURCES = \
2893 src/libsystemd/sd-bus/test-bus-chat.c
2895 test_bus_chat_CFLAGS = \
2899 test_bus_chat_LDADD = \
2900 libsystemd-internal.la \
2901 libsystemd-shared.la
2903 test_bus_cleanup_SOURCES = \
2904 src/libsystemd/sd-bus/test-bus-cleanup.c
2906 test_bus_cleanup_CFLAGS = \
2910 test_bus_cleanup_LDADD = \
2911 libsystemd-internal.la \
2912 libsystemd-shared.la
2914 test_bus_server_SOURCES = \
2915 src/libsystemd/sd-bus/test-bus-server.c
2917 test_bus_server_CFLAGS = \
2921 test_bus_server_LDADD = \
2922 libsystemd-internal.la \
2923 libsystemd-shared.la
2925 test_bus_objects_SOURCES = \
2926 src/libsystemd/sd-bus/test-bus-objects.c
2928 test_bus_objects_CFLAGS = \
2932 test_bus_objects_LDADD = \
2933 libsystemd-dump.la \
2934 libsystemd-internal.la \
2935 libsystemd-shared.la
2937 test_bus_error_SOURCES = \
2938 src/libsystemd/sd-bus/test-bus-error.c
2940 test_bus_error_LDADD = \
2941 libsystemd-internal.la \
2942 libsystemd-shared.la
2944 test_bus_gvariant_SOURCES = \
2945 src/libsystemd/sd-bus/test-bus-gvariant.c
2947 test_bus_gvariant_LDADD = \
2948 libsystemd-dump.la \
2949 libsystemd-internal.la \
2950 libsystemd-shared.la \
2953 test_bus_gvariant_CFLAGS = \
2957 test_bus_creds_SOURCES = \
2958 src/libsystemd/sd-bus/test-bus-creds.c
2960 test_bus_creds_LDADD = \
2961 libsystemd-dump.la \
2962 libsystemd-internal.la \
2963 libsystemd-shared.la
2965 test_bus_match_SOURCES = \
2966 src/libsystemd/sd-bus/test-bus-match.c
2968 test_bus_match_LDADD = \
2969 libsystemd-internal.la \
2970 libsystemd-shared.la
2972 test_bus_kernel_SOURCES = \
2973 src/libsystemd/sd-bus/test-bus-kernel.c
2975 test_bus_kernel_LDADD = \
2976 libsystemd-dump.la \
2977 libsystemd-internal.la \
2978 libsystemd-shared.la
2980 test_bus_kernel_bloom_SOURCES = \
2981 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2983 test_bus_kernel_bloom_LDADD = \
2984 libsystemd-internal.la \
2985 libsystemd-shared.la
2987 test_bus_kernel_benchmark_SOURCES = \
2988 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2990 test_bus_kernel_benchmark_LDADD = \
2991 libsystemd-internal.la \
2992 libsystemd-shared.la
2994 test_bus_zero_copy_SOURCES = \
2995 src/libsystemd/sd-bus/test-bus-zero-copy.c
2997 test_bus_zero_copy_LDADD = \
2998 libsystemd-dump.la \
2999 libsystemd-internal.la \
3000 libsystemd-shared.la
3002 test_bus_introspect_SOURCES = \
3003 src/libsystemd/sd-bus/test-bus-introspect.c
3005 test_bus_introspect_LDADD = \
3006 libsystemd-internal.la \
3007 libsystemd-shared.la
3009 test_event_SOURCES = \
3010 src/libsystemd/sd-event/test-event.c
3012 test_event_LDADD = \
3013 libsystemd-internal.la \
3014 libsystemd-shared.la
3016 test_rtnl_SOURCES = \
3017 src/libsystemd/sd-rtnl/test-rtnl.c
3020 libsystemd-internal.la \
3021 libsystemd-shared.la
3023 test_local_addresses_SOURCES = \
3024 src/libsystemd/sd-rtnl/test-local-addresses.c
3026 test_local_addresses_LDADD = \
3027 libsystemd-internal.la \
3028 libsystemd-shared.la
3030 test_resolve_SOURCES = \
3031 src/libsystemd/sd-resolve/test-resolve.c
3033 test_resolve_LDADD = \
3034 libsystemd-resolve.la \
3035 libsystemd-internal.la \
3036 libsystemd-shared.la
3038 test_resolve_CFLAGS = \
3043 src/libsystemd/sd-bus/busctl.c \
3044 src/libsystemd/sd-bus/busctl-introspect.c \
3045 src/libsystemd/sd-bus/busctl-introspect.h
3048 libsystemd-dump.la \
3049 libsystemd-internal.la \
3050 libsystemd-shared.la
3052 # ------------------------------------------------------------------------------
3053 noinst_LTLIBRARIES += \
3054 libsystemd-network.la
3056 libsystemd_network_la_CFLAGS = \
3060 libsystemd_network_la_SOURCES = \
3061 src/systemd/sd-dhcp-client.h \
3062 src/systemd/sd-dhcp-server.h \
3063 src/systemd/sd-dhcp-lease.h \
3064 src/systemd/sd-ipv4ll.h \
3065 src/systemd/sd-icmp6-nd.h \
3066 src/systemd/sd-dhcp6-client.h \
3067 src/systemd/sd-dhcp6-lease.h \
3068 src/systemd/sd-pppoe.h \
3069 src/systemd/sd-lldp.h \
3070 src/libsystemd-network/sd-dhcp-client.c \
3071 src/libsystemd-network/sd-dhcp-server.c \
3072 src/libsystemd-network/dhcp-network.c \
3073 src/libsystemd-network/dhcp-option.c \
3074 src/libsystemd-network/dhcp-packet.c \
3075 src/libsystemd-network/dhcp-internal.h \
3076 src/libsystemd-network/dhcp-server-internal.h \
3077 src/libsystemd-network/dhcp-protocol.h \
3078 src/libsystemd-network/dhcp-lease-internal.h \
3079 src/libsystemd-network/sd-dhcp-lease.c \
3080 src/libsystemd-network/sd-ipv4ll.c \
3081 src/libsystemd-network/ipv4ll-network.c \
3082 src/libsystemd-network/ipv4ll-packet.c \
3083 src/libsystemd-network/ipv4ll-internal.h \
3084 src/libsystemd-network/sd-pppoe.c \
3085 src/libsystemd-network/network-internal.c \
3086 src/libsystemd-network/network-internal.h \
3087 src/libsystemd-network/sd-icmp6-nd.c \
3088 src/libsystemd-network/sd-dhcp6-client.c \
3089 src/libsystemd-network/dhcp6-internal.h \
3090 src/libsystemd-network/dhcp6-protocol.h \
3091 src/libsystemd-network/dhcp6-network.c \
3092 src/libsystemd-network/dhcp6-option.c \
3093 src/libsystemd-network/dhcp6-lease-internal.h \
3094 src/libsystemd-network/sd-dhcp6-lease.c \
3095 src/libsystemd-network/lldp.h \
3096 src/libsystemd-network/lldp-tlv.h \
3097 src/libsystemd-network/lldp-tlv.c \
3098 src/libsystemd-network/lldp-network.h \
3099 src/libsystemd-network/lldp-network.c \
3100 src/libsystemd-network/lldp-port.h \
3101 src/libsystemd-network/lldp-port.c \
3102 src/libsystemd-network/lldp-internal.h \
3103 src/libsystemd-network/lldp-internal.c \
3104 src/libsystemd-network/lldp-util.h \
3105 src/libsystemd-network/sd-lldp.c
3107 libsystemd_network_la_LIBADD = \
3108 libudev-internal.la \
3109 libsystemd-label.la \
3110 libsystemd-internal.la \
3111 libsystemd-shared.la \
3114 test_dhcp_option_SOURCES = \
3115 src/libsystemd-network/dhcp-protocol.h \
3116 src/libsystemd-network/dhcp-internal.h \
3117 src/libsystemd-network/test-dhcp-option.c
3119 test_dhcp_option_LDADD = \
3120 libsystemd-network.la \
3121 libsystemd-internal.la \
3122 libsystemd-shared.la
3124 test_dhcp_client_SOURCES = \
3125 src/systemd/sd-dhcp-client.h \
3126 src/libsystemd-network/dhcp-protocol.h \
3127 src/libsystemd-network/dhcp-internal.h \
3128 src/libsystemd-network/test-dhcp-client.c
3130 test_dhcp_client_LDADD = \
3131 libsystemd-network.la \
3132 libsystemd-label.la \
3133 libsystemd-internal.la \
3134 libsystemd-shared.la
3136 test_dhcp_server_SOURCES = \
3137 src/libsystemd-network/test-dhcp-server.c
3139 test_dhcp_server_LDADD = \
3140 libsystemd-network.la \
3141 libsystemd-internal.la \
3142 libsystemd-shared.la
3144 test_ipv4ll_SOURCES = \
3145 src/systemd/sd-ipv4ll.h \
3146 src/libsystemd-network/ipv4ll-internal.h \
3147 src/libsystemd-network/test-ipv4ll.c
3149 test_ipv4ll_LDADD = \
3150 libsystemd-network.la \
3151 libsystemd-label.la \
3152 libsystemd-internal.la \
3153 libsystemd-shared.la
3155 test_pppoe_SOURCES = \
3156 src/systemd/sd-pppoe.h \
3157 src/libsystemd-network/test-pppoe.c
3159 test_pppoe_LDADD = \
3160 libsystemd-network.la \
3161 libsystemd-shared.la
3163 test_icmp6_rs_SOURCES = \
3164 src/systemd/sd-dhcp6-client.h \
3165 src/systemd/sd-icmp6-nd.h \
3166 src/libsystemd-network/dhcp6-internal.h \
3167 src/libsystemd-network/test-icmp6-rs.c
3169 test_icmp6_rs_LDADD = \
3170 libsystemd-network.la \
3171 libsystemd-internal.la \
3172 libsystemd-shared.la
3174 test_dhcp6_client_SOURCES = \
3175 src/systemd/sd-dhcp6-client.h \
3176 src/libsystemd-network/dhcp6-internal.h \
3177 src/libsystemd-network/test-dhcp6-client.c
3179 test_dhcp6_client_LDADD = \
3180 libsystemd-network.la \
3181 libsystemd-internal.la \
3182 libsystemd-shared.la
3184 test_lldp_SOURCES = \
3185 src/libsystemd-network/lldp.h \
3186 src/libsystemd-network/lldp-tlv.h \
3187 src/libsystemd-network/lldp-tlv.c \
3188 src/libsystemd-network/test-lldp.c
3191 libsystemd-network.la \
3192 libsystemd-internal.la \
3193 libsystemd-shared.la
3207 # ------------------------------------------------------------------------------
3209 noinst_LTLIBRARIES += \
3210 libsystemd-terminal.la
3212 rootlibexec_PROGRAMS += \
3215 noinst_PROGRAMS += \
3220 dist_pkgdata_DATA += \
3221 src/libsystemd-terminal/unifont-glyph-array.bin
3223 nodist_userunit_DATA += \
3224 units/user/systemd-consoled.service
3226 USER_DEFAULT_TARGET_WANTS += \
3227 systemd-consoled.service
3236 units/user/systemd-consoled.service.in
3238 libsystemd_terminal_la_CFLAGS = \
3242 libsystemd_terminal_la_SOURCES = \
3243 src/libsystemd-terminal/grdev.h \
3244 src/libsystemd-terminal/grdev-internal.h \
3245 src/libsystemd-terminal/grdev.c \
3246 src/libsystemd-terminal/grdev-drm.c \
3247 src/libsystemd-terminal/idev.h \
3248 src/libsystemd-terminal/idev-internal.h \
3249 src/libsystemd-terminal/idev.c \
3250 src/libsystemd-terminal/idev-evdev.c \
3251 src/libsystemd-terminal/idev-keyboard.c \
3252 src/libsystemd-terminal/sysview.h \
3253 src/libsystemd-terminal/sysview-internal.h \
3254 src/libsystemd-terminal/sysview.c \
3255 src/libsystemd-terminal/term.h \
3256 src/libsystemd-terminal/term-internal.h \
3257 src/libsystemd-terminal/term-charset.c \
3258 src/libsystemd-terminal/term-page.c \
3259 src/libsystemd-terminal/term-parser.c \
3260 src/libsystemd-terminal/term-screen.c \
3261 src/libsystemd-terminal/term-wcwidth.c \
3262 src/libsystemd-terminal/unifont.h \
3263 src/libsystemd-terminal/unifont-def.h \
3264 src/libsystemd-terminal/unifont.c
3266 libsystemd_terminal_la_LIBADD = \
3267 libudev-internal.la \
3268 libsystemd-internal.la \
3269 libsystemd-shared.la \
3272 systemd_consoled_CFLAGS = \
3276 systemd_consoled_SOURCES = \
3277 src/console/consoled.h \
3278 src/console/consoled.c \
3279 src/console/consoled-display.c \
3280 src/console/consoled-manager.c \
3281 src/console/consoled-session.c \
3282 src/console/consoled-terminal.c \
3283 src/console/consoled-workspace.c
3285 systemd_consoled_LDADD = \
3286 libsystemd-terminal.la \
3287 libsystemd-internal.la \
3288 libsystemd-shared.la \
3291 systemd_evcat_CFLAGS = \
3295 systemd_evcat_SOURCES = \
3296 src/libsystemd-terminal/evcat.c
3298 systemd_evcat_LDADD = \
3299 libsystemd-terminal.la \
3300 libsystemd-internal.la \
3301 libsystemd-shared.la \
3304 systemd_modeset_CFLAGS = \
3308 systemd_modeset_SOURCES = \
3309 src/libsystemd-terminal/modeset.c
3311 systemd_modeset_LDADD = \
3312 libsystemd-terminal.la \
3313 libsystemd-internal.la \
3314 libsystemd-shared.la \
3317 systemd_subterm_SOURCES = \
3318 src/libsystemd-terminal/subterm.c
3320 systemd_subterm_LDADD = \
3321 libsystemd-terminal.la \
3322 libsystemd-internal.la \
3323 libsystemd-shared.la
3325 test_term_page_SOURCES = \
3326 src/libsystemd-terminal/test-term-page.c
3328 test_term_page_LDADD = \
3329 libsystemd-terminal.la \
3330 libsystemd-internal.la \
3331 libsystemd-shared.la
3333 test_term_parser_SOURCES = \
3334 src/libsystemd-terminal/test-term-parser.c
3336 test_term_parser_LDADD = \
3337 libsystemd-terminal.la \
3338 libsystemd-internal.la \
3339 libsystemd-shared.la
3341 test_unifont_SOURCES = \
3342 src/libsystemd-terminal/test-unifont.c
3344 test_unifont_LDADD = \
3345 libsystemd-terminal.la \
3346 libsystemd-internal.la \
3347 libsystemd-shared.la
3349 .PHONY: update-unifont
3350 update-unifont: tools/compile-unifont.py
3351 $(AM_V_GEN)$(PYTHON) $< \
3352 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3353 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3354 @echo "unifont-glyph-array.bin has been regenerated"
3356 # ------------------------------------------------------------------------------
3366 include_HEADERS += \
3367 src/libudev/libudev.h
3369 lib_LTLIBRARIES += \
3372 libudev_la_SOURCES =\
3373 src/libudev/libudev.sym \
3374 src/libudev/libudev-private.h \
3375 src/libudev/libudev.c \
3376 src/libudev/libudev-list.c \
3377 src/libudev/libudev-util.c \
3378 src/libudev/libudev-device.c \
3379 src/libudev/libudev-enumerate.c \
3380 src/libudev/libudev-monitor.c \
3381 src/libudev/libudev-queue.c \
3382 src/libudev/libudev-hwdb.c
3384 libudev_la_CFLAGS = \
3388 libudev_la_LDFLAGS = \
3390 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3391 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3393 libudev_la_LIBADD = \
3394 libsystemd-internal.la \
3395 libsystemd-shared.la
3397 pkgconfiglib_DATA += \
3398 src/libudev/libudev.pc
3401 src/libudev/libudev.pc.in
3404 src/libudev/libudev.pc \
3409 $(AM_V_at)$(MKDIR_P) $(dir $@)
3410 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3413 $(AM_V_at)$(MKDIR_P) $(dir $@)
3414 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3416 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3417 libudev-install-hook:
3418 libname=libudev.so && $(move-to-rootlibdir)
3420 libudev-uninstall-hook:
3421 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3423 INSTALL_EXEC_HOOKS += libudev-install-hook
3424 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3426 # ------------------------------------------------------------------------------
3427 noinst_LTLIBRARIES += \
3430 libudev_internal_la_SOURCES =\
3431 $(libudev_la_SOURCES) \
3432 src/libudev/libudev-device-private.c
3434 libudev_internal_la_CFLAGS = \
3436 -fvisibility=default
3438 # ------------------------------------------------------------------------------
3440 $(sysconfdir)/udev/rules.d
3442 dist_network_DATA = \
3443 network/99-default.link \
3444 network/80-container-host0.network \
3445 network/80-container-ve.network
3447 dist_udevrules_DATA += \
3448 rules/42-usb-hid-pm.rules \
3449 rules/50-udev-default.rules \
3450 rules/60-drm.rules \
3451 rules/60-keyboard.rules \
3452 rules/70-mouse.rules \
3453 rules/60-persistent-storage-tape.rules \
3454 rules/60-persistent-serial.rules \
3455 rules/60-persistent-input.rules \
3456 rules/60-persistent-alsa.rules \
3457 rules/60-persistent-storage.rules \
3458 rules/64-btrfs.rules \
3459 rules/75-net-description.rules \
3460 rules/75-tty-description.rules \
3461 rules/78-sound-card.rules \
3462 rules/80-net-setup-link.rules \
3463 rules/95-udev-late.rules
3465 nodist_udevrules_DATA += \
3466 rules/99-systemd.rules
3468 udevconfdir = $(sysconfdir)/udev
3469 dist_udevconf_DATA = \
3472 sharepkgconfigdir = $(datadir)/pkgconfig
3473 sharepkgconfig_DATA = \
3477 rules/99-systemd.rules.in \
3481 rules/99-systemd.rules \
3485 units/systemd-udevd.service.in \
3486 units/systemd-udev-trigger.service.in \
3487 units/systemd-udev-settle.service.in
3490 units/systemd-udevd.service \
3491 units/systemd-udev-trigger.service \
3492 units/systemd-udev-settle.service
3494 SOCKETS_TARGET_WANTS += \
3495 systemd-udevd-control.socket \
3496 systemd-udevd-kernel.socket
3498 SYSINIT_TARGET_WANTS += \
3499 systemd-udevd.service \
3500 systemd-udev-trigger.service
3502 rootbin_PROGRAMS += \
3505 rootlibexec_PROGRAMS += \
3508 noinst_LTLIBRARIES += \
3511 src/udev/keyboard-keys.txt:
3512 $(AM_V_at)$(MKDIR_P) $(dir $@)
3513 $(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/' > $@
3515 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3516 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3518 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3519 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3521 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3522 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3524 libudev_core_la_SOURCES = \
3526 src/udev/udev-event.c \
3527 src/udev/udev-watch.c \
3528 src/udev/udev-node.c \
3529 src/udev/udev-rules.c \
3530 src/udev/udev-ctrl.c \
3531 src/udev/udev-builtin.c \
3532 src/udev/udev-builtin-btrfs.c \
3533 src/udev/udev-builtin-hwdb.c \
3534 src/udev/udev-builtin-input_id.c \
3535 src/udev/udev-builtin-keyboard.c \
3536 src/udev/udev-builtin-net_id.c \
3537 src/udev/udev-builtin-net_setup_link.c \
3538 src/udev/udev-builtin-path_id.c \
3539 src/udev/udev-builtin-usb_id.c \
3540 src/udev/net/link-config.h \
3541 src/udev/net/link-config.c \
3542 src/udev/net/ethtool-util.h \
3543 src/udev/net/ethtool-util.c
3545 nodist_libudev_core_la_SOURCES = \
3546 src/udev/keyboard-keys-from-name.h \
3547 src/udev/keyboard-keys-to-name.h \
3548 src/udev/net/link-config-gperf.c
3551 $(nodist_libudev_core_la_SOURCES)
3554 src/udev/keyboard-keys-from-name.gperf \
3555 src/udev/keyboard-keys.txt \
3556 src/udev/net/link-config-gperf.c
3559 src/udev/net/link-config-gperf.gperf
3561 libudev_core_la_CFLAGS = \
3566 libudev_core_la_LIBADD = \
3567 libudev-internal.la \
3568 libsystemd-label.la \
3569 libsystemd-internal.la \
3570 libsystemd-network.la \
3571 libsystemd-shared.la \
3576 libudev_core_la_SOURCES += \
3577 src/udev/udev-builtin-kmod.c
3579 dist_udevrules_DATA += \
3580 rules/80-drivers.rules
3584 libudev_core_la_SOURCES += \
3585 src/udev/udev-builtin-blkid.c
3589 libudev_core_la_SOURCES += \
3590 src/udev/udev-builtin-uaccess.c \
3591 src/login/logind-acl.c \
3592 src/libsystemd/sd-login/sd-login.c \
3593 src/systemd/sd-login.h
3595 libudev_core_la_LIBADD += \
3599 systemd_udevd_SOURCES = \
3602 systemd_udevd_LDADD = \
3606 src/udev/udevadm.c \
3607 src/udev/udevadm-info.c \
3608 src/udev/udevadm-control.c \
3609 src/udev/udevadm-monitor.c \
3610 src/udev/udevadm-hwdb.c \
3611 src/udev/udevadm-settle.c \
3612 src/udev/udevadm-trigger.c \
3613 src/udev/udevadm-test.c \
3614 src/udev/udevadm-test-builtin.c \
3615 src/udev/udevadm-util.c \
3616 src/udev/udevadm-util.h
3621 # ------------------------------------------------------------------------------
3624 $(sysconfdir)/udev/hwdb.d
3626 systemd_hwdb_SOURCES = \
3627 src/libsystemd/sd-hwdb/hwdb-internal.h \
3630 systemd_hwdb_LDADD = \
3631 libsystemd-shared.la \
3632 libsystemd-internal.la \
3635 rootbin_PROGRAMS += \
3638 dist_udevhwdb_DATA = \
3639 hwdb/20-pci-vendor-model.hwdb \
3640 hwdb/20-pci-classes.hwdb \
3641 hwdb/20-usb-vendor-model.hwdb \
3642 hwdb/20-usb-classes.hwdb \
3643 hwdb/20-sdio-vendor-model.hwdb \
3644 hwdb/20-sdio-classes.hwdb \
3645 hwdb/20-bluetooth-vendor-product.hwdb \
3646 hwdb/20-acpi-vendor.hwdb \
3648 hwdb/20-net-ifname.hwdb \
3649 hwdb/60-keyboard.hwdb \
3653 units/systemd-hwdb-update.service.in
3656 units/systemd-hwdb-update.service
3658 SYSINIT_TARGET_WANTS += \
3659 systemd-hwdb-update.service
3661 # Update hwdb on installation. Do not bother if installing
3662 # in DESTDIR, since this is likely for packaging purposes.
3664 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3666 INSTALL_DATA_HOOKS += \
3670 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3673 # ------------------------------------------------------------------------------
3682 test_libudev_SOURCES = \
3683 src/test/test-libudev.c
3685 test_libudev_LDADD = \
3686 libsystemd-label.la \
3687 libudev-internal.la \
3688 libsystemd-shared.la \
3689 libsystemd-internal.la
3691 test_udev_SOURCES = \
3692 src/test/test-udev.c
3701 test_udev_LDADD += \
3708 # packed sysfs test tree
3710 $(AM_V_at)$(MKDIR_P) $(dir $@)
3711 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3715 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3720 test/rules-test.sh \
3721 test/rule-syntax-check.py
3723 # ------------------------------------------------------------------------------
3725 src/udev/ata_id/ata_id.c
3728 libudev-internal.la \
3729 libsystemd-shared.la
3731 udevlibexec_PROGRAMS += \
3734 # ------------------------------------------------------------------------------
3735 cdrom_id_SOURCES = \
3736 src/udev/cdrom_id/cdrom_id.c
3739 libudev-internal.la \
3740 libsystemd-shared.la
3742 udevlibexec_PROGRAMS += \
3745 dist_udevrules_DATA += \
3746 rules/60-cdrom_id.rules
3748 # ------------------------------------------------------------------------------
3750 src/udev/collect/collect.c
3753 libudev-internal.la \
3754 libsystemd-shared.la
3756 udevlibexec_PROGRAMS += \
3759 # ------------------------------------------------------------------------------
3761 src/udev/scsi_id/scsi_id.c \
3762 src/udev/scsi_id/scsi_serial.c \
3763 src/udev/scsi_id/scsi.h \
3764 src/udev/scsi_id/scsi_id.h
3767 libudev-internal.la \
3768 libsystemd-shared.la
3770 udevlibexec_PROGRAMS += \
3774 src/udev/scsi_id/README
3776 # ------------------------------------------------------------------------------
3778 src/udev/v4l_id/v4l_id.c
3783 udevlibexec_PROGRAMS += \
3786 dist_udevrules_DATA += \
3787 rules/60-persistent-v4l.rules
3789 # ------------------------------------------------------------------------------
3790 accelerometer_SOURCES = \
3791 src/udev/accelerometer/accelerometer.c
3793 accelerometer_LDADD = \
3794 libudev-internal.la -lm \
3795 libsystemd-shared.la
3797 udevlibexec_PROGRAMS += \
3800 dist_udevrules_DATA += \
3801 rules/61-accelerometer.rules
3803 # ------------------------------------------------------------------------------
3810 libgudev_includedir = \
3811 $(includedir)/gudev-1.0/gudev
3813 libgudev_include_HEADERS = \
3815 src/gudev/gudevenums.h \
3816 src/gudev/gudevenumtypes.h \
3817 src/gudev/gudevtypes.h \
3818 src/gudev/gudevclient.h \
3819 src/gudev/gudevdevice.h \
3820 src/gudev/gudevenumerator.h
3822 lib_LTLIBRARIES += libgudev-1.0.la
3824 pkgconfiglib_DATA += \
3825 src/gudev/gudev-1.0.pc
3828 src/gudev/gudev-1.0.pc
3830 libgudev_1_0_la_SOURCES = \
3831 src/gudev/libgudev-1.0.sym \
3832 src/gudev/gudevenums.h \
3833 src/gudev/gudevenumtypes.h \
3834 src/gudev/gudevenumtypes.h\
3835 src/gudev/gudevtypes.h \
3836 src/gudev/gudevclient.h \
3837 src/gudev/gudevclient.c \
3838 src/gudev/gudevdevice.h \
3839 src/gudev/gudevdevice.c \
3840 src/gudev/gudevenumerator.h \
3841 src/gudev/gudevenumerator.c \
3842 src/gudev/gudevprivate.h
3844 nodist_libgudev_1_0_la_SOURCES = \
3845 src/gudev/gudevmarshal.h \
3846 src/gudev/gudevmarshal.c \
3847 src/gudev/gudevenumtypes.h \
3848 src/gudev/gudevenumtypes.c
3851 $(nodist_libgudev_1_0_la_SOURCES)
3853 libgudev_1_0_la_CPPFLAGS = \
3855 -I$(top_builddir)/src\
3856 -I$(top_srcdir)/src\
3857 -I$(top_builddir)/src/gudev \
3858 -I$(top_srcdir)/src/gudev \
3859 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3860 -D_GUDEV_COMPILATION \
3861 -DG_LOG_DOMAIN=\"GUdev\"
3863 libgudev_1_0_la_CFLAGS = \
3865 -fvisibility=default \
3868 libgudev_1_0_la_LIBADD = \
3872 libgudev_1_0_la_LDFLAGS = \
3874 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3877 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3879 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3880 $(AM_V_at)$(MKDIR_P) $(dir $@)
3881 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3883 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3884 $(AM_V_at)$(MKDIR_P) $(dir $@)
3885 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3886 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3888 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3889 $(AM_V_at)$(MKDIR_P) $(dir $@)
3890 $(AM_V_GEN)glib-mkenums --template $^ > $@
3892 if HAVE_INTROSPECTION
3893 -include $(INTROSPECTION_MAKEFILE)
3895 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3897 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3899 src_gudev_GUdev_1_0_gir_CFLAGS = \
3902 -D_GUDEV_COMPILATION \
3903 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3904 -I$(top_srcdir)/src \
3905 -I$(top_builddir)/src \
3906 -I$(top_srcdir)/src/gudev \
3907 -I$(top_builddir)/src/gudev
3909 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3911 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3912 --pkg-export=gudev-1.0 \
3915 src_gudev_GUdev_1_0_gir_FILES = \
3917 src/gudev/gudevtypes.h \
3918 src/gudev/gudevenums.h \
3919 src/gudev/gudevenumtypes.h \
3920 src/gudev/gudevclient.h \
3921 src/gudev/gudevdevice.h \
3922 src/gudev/gudevenumerator.h \
3923 src/gudev/gudevclient.c \
3924 src/gudev/gudevdevice.c \
3925 src/gudev/gudevenumerator.c
3927 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3928 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3930 girdir = $(datadir)/gir-1.0
3932 src/gudev/GUdev-1.0.gir
3934 typelibsdir = $(libdir)/girepository-1.0
3936 src/gudev/GUdev-1.0.typelib
3938 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3939 endif # HAVE_INTROSPECTION
3943 src/gudev/gudev-1.0.pc.in \
3944 src/gudev/gudevmarshal.list \
3945 src/gudev/gudevenumtypes.h.template \
3946 src/gudev/gudevenumtypes.c.template \
3947 src/gudev/gjs-example.js \
3948 src/gudev/seed-example-enum.js \
3949 src/gudev/seed-example.js
3951 # ------------------------------------------------------------------------------
3952 mtd_probe_SOURCES = \
3953 src/udev/mtd_probe/mtd_probe.c \
3954 src/udev/mtd_probe/mtd_probe.h \
3955 src/udev/mtd_probe/probe_smartmedia.c
3957 dist_udevrules_DATA += \
3958 rules/75-probe_mtd.rules
3960 udevlibexec_PROGRAMS += \
3963 # ------------------------------------------------------------------------------
3964 test_id128_SOURCES = \
3965 src/test/test-id128.c
3967 test_id128_LDADD = \
3968 libsystemd-internal.la \
3969 libsystemd-shared.la
3974 # ------------------------------------------------------------------------------
3976 rootlibexec_PROGRAMS += \
3979 systemd_activate_SOURCES = \
3980 src/activate/activate.c
3982 systemd_activate_LDADD = \
3983 libsystemd-label.la \
3984 libsystemd-internal.la \
3985 libsystemd-shared.la
3987 # ------------------------------------------------------------------------------
3988 systemd_journald_SOURCES = \
3989 src/journal/journald.c \
3990 src/journal/journald-server.h
3992 systemd_journald_LDADD = \
3993 libsystemd-journal-core.la \
3994 libsystemd-internal.la \
3995 libsystemd-shared.la
3997 systemd_cat_SOURCES = \
4000 systemd_cat_LDADD = \
4001 libsystemd-journal-core.la
4004 rootlibexec_PROGRAMS += \
4005 systemd-journal-remote
4007 systemd_journal_remote_SOURCES = \
4008 src/journal-remote/journal-remote-parse.h \
4009 src/journal-remote/journal-remote-parse.c \
4010 src/journal-remote/journal-remote-write.h \
4011 src/journal-remote/journal-remote-write.c \
4012 src/journal-remote/journal-remote.h \
4013 src/journal-remote/journal-remote.c
4015 systemd_journal_remote_LDADD = \
4016 libsystemd-internal.la \
4017 libsystemd-journal-core.la
4019 systemd_journal_remote_SOURCES += \
4020 src/journal-remote/microhttpd-util.h \
4021 src/journal-remote/microhttpd-util.c
4023 systemd_journal_remote_CFLAGS = \
4025 $(MICROHTTPD_CFLAGS)
4027 systemd_journal_remote_LDADD += \
4031 dist_sysusers_DATA += \
4032 sysusers.d/systemd-remote.conf
4036 dist_tmpfiles_DATA += \
4037 tmpfiles.d/systemd-remote.conf
4041 systemd_journal_remote_LDADD += \
4044 # systemd-journal-remote make sense mostly with full crypto stack
4045 dist_systemunit_DATA += \
4046 units/systemd-journal-remote.socket
4048 nodist_systemunit_DATA += \
4049 units/systemd-journal-remote.service
4052 units/systemd-journal-remote.service.in
4054 journal-remote-install-hook: journal-install-hook
4055 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4056 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4057 -chmod 755 $(DESTDIR)/var/log/journal/remote
4059 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4063 nodist_pkgsysconf_DATA += \
4064 src/journal-remote/journal-remote.conf
4067 src/journal-remote/journal-remote.conf.in
4070 src/journal-remote/journal-remote.conf
4074 rootlibexec_PROGRAMS += \
4075 systemd-journal-upload
4077 systemd_journal_upload_SOURCES = \
4078 src/journal-remote/journal-upload.h \
4079 src/journal-remote/journal-upload.c \
4080 src/journal-remote/journal-upload-journal.c
4082 systemd_journal_upload_CFLAGS = \
4086 systemd_journal_upload_LDADD = \
4087 libsystemd-internal.la \
4088 libsystemd-journal-internal.la \
4089 libsystemd-shared.la \
4092 nodist_systemunit_DATA += \
4093 units/systemd-journal-upload.service
4096 units/systemd-journal-upload.service.in
4098 nodist_pkgsysconf_DATA += \
4099 src/journal-remote/journal-upload.conf
4102 src/journal-remote/journal-upload.conf.in
4105 src/journal-remote/journal-upload.conf
4108 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4109 journalctl_CFLAGS = \
4112 journalctl_SOURCES = \
4113 src/journal/journalctl.c
4115 journalctl_LDADD = \
4116 libsystemd-journal-internal.la \
4117 libsystemd-internal.la \
4118 libsystemd-logs.la \
4119 libsystemd-shared.la
4122 journalctl_LDADD += \
4127 journalctl_SOURCES += \
4128 src/journal/journal-qrcode.c \
4129 src/journal/journal-qrcode.h
4131 journalctl_CFLAGS += \
4134 journalctl_LDADD += \
4138 test_journal_SOURCES = \
4139 src/journal/test-journal.c
4141 test_journal_LDADD = \
4142 libsystemd-journal-core.la
4144 test_journal_send_SOURCES = \
4145 src/journal/test-journal-send.c
4147 test_journal_send_LDADD = \
4148 libsystemd-journal-core.la
4150 test_journal_syslog_SOURCES = \
4151 src/journal/test-journal-syslog.c
4153 test_journal_syslog_LDADD = \
4154 libsystemd-journal-core.la
4156 test_journal_match_SOURCES = \
4157 src/journal/test-journal-match.c
4159 test_journal_match_LDADD = \
4160 libsystemd-journal-core.la
4162 test_journal_enum_SOURCES = \
4163 src/journal/test-journal-enum.c
4165 test_journal_enum_LDADD = \
4166 libsystemd-journal-core.la
4168 test_journal_stream_SOURCES = \
4169 src/journal/test-journal-stream.c
4171 test_journal_stream_LDADD = \
4172 libsystemd-journal-core.la
4174 test_journal_flush_SOURCES = \
4175 src/journal/test-journal-flush.c
4177 test_journal_flush_LDADD = \
4178 libsystemd-journal-core.la
4180 test_journal_init_SOURCES = \
4181 src/journal/test-journal-init.c
4183 test_journal_init_LDADD = \
4184 libsystemd-journal-core.la
4186 test_journal_verify_SOURCES = \
4187 src/journal/test-journal-verify.c
4189 test_journal_verify_LDADD = \
4190 libsystemd-journal-core.la
4192 test_journal_interleaving_SOURCES = \
4193 src/journal/test-journal-interleaving.c
4195 test_journal_interleaving_LDADD = \
4196 libsystemd-journal-core.la
4198 test_mmap_cache_SOURCES = \
4199 src/journal/test-mmap-cache.c
4201 test_mmap_cache_LDADD = \
4202 libsystemd-journal-core.la
4204 test_catalog_SOURCES = \
4205 src/journal/test-catalog.c
4207 test_catalog_CPPFLAGS = \
4209 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4211 test_catalog_LDADD = \
4212 libsystemd-journal-core.la
4214 test_compress_SOURCES = \
4215 src/journal/test-compress.c
4217 test_compress_LDADD = \
4218 libsystemd-journal-internal.la \
4219 libsystemd-shared.la
4221 test_compress_benchmark_SOURCES = \
4222 src/journal/test-compress-benchmark.c
4224 test_compress_benchmark_LDADD = \
4225 libsystemd-journal-internal.la \
4226 libsystemd-shared.la
4228 libsystemd_journal_core_la_SOURCES = \
4229 src/journal/journald-kmsg.c \
4230 src/journal/journald-kmsg.h \
4231 src/journal/journald-syslog.c \
4232 src/journal/journald-syslog.h \
4233 src/journal/journald-stream.c \
4234 src/journal/journald-stream.h \
4235 src/journal/journald-server.c \
4236 src/journal/journald-server.h \
4237 src/journal/journald-console.c \
4238 src/journal/journald-console.h \
4239 src/journal/journald-wall.c \
4240 src/journal/journald-wall.h \
4241 src/journal/journald-native.c \
4242 src/journal/journald-native.h \
4243 src/journal/journald-audit.c \
4244 src/journal/journald-audit.h \
4245 src/journal/journald-rate-limit.c \
4246 src/journal/journald-rate-limit.h \
4247 src/journal/journal-internal.h
4249 nodist_libsystemd_journal_core_la_SOURCES = \
4250 src/journal/journald-gperf.c
4252 libsystemd_journal_core_la_LIBADD = \
4253 libsystemd-journal-internal.la \
4254 libudev-internal.la \
4255 libsystemd-label.la \
4256 libsystemd-internal.la \
4257 libsystemd-shared.la
4260 libsystemd_journal_core_la_LIBADD += \
4264 noinst_LTLIBRARIES += \
4265 libsystemd-journal-core.la
4267 journal-install-hook:
4268 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4269 -chown 0:0 $(DESTDIR)/var/log/journal
4270 -chmod 755 $(DESTDIR)/var/log/journal
4271 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4272 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4274 journal-uninstall-hook:
4275 -rmdir $(DESTDIR)/var/log/journal/remote
4276 -rmdir $(DESTDIR)/var/log/journal/
4278 INSTALL_EXEC_HOOKS += journal-install-hook
4279 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4281 # ------------------------------------------------------------------------------
4282 # Update catalog on installation. Do not bother if installing
4283 # in DESTDIR, since this is likely for packaging purposes.
4284 catalog-update-hook:
4285 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4287 INSTALL_DATA_HOOKS += \
4290 catalog-remove-hook:
4291 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4293 UNINSTALL_DATA_HOOKS += \
4302 test-journal-syslog \
4303 test-journal-match \
4304 test-journal-stream \
4306 test-journal-verify \
4307 test-journal-interleaving \
4308 test-journal-flush \
4315 test-compress-benchmark
4318 pkginclude_HEADERS += \
4319 src/systemd/sd-journal.h \
4320 src/systemd/sd-messages.h \
4321 src/systemd/_sd-common.h
4323 libsystemd_journal_internal_la_SOURCES = \
4324 src/journal/sd-journal.c \
4325 src/systemd/sd-journal.h \
4326 src/systemd/_sd-common.h \
4327 src/journal/journal-file.c \
4328 src/journal/journal-file.h \
4329 src/journal/journal-vacuum.c \
4330 src/journal/journal-vacuum.h \
4331 src/journal/journal-verify.c \
4332 src/journal/journal-verify.h \
4333 src/journal/lookup3.c \
4334 src/journal/lookup3.h \
4335 src/journal/journal-send.c \
4336 src/journal/journal-def.h \
4337 src/journal/compress.h \
4338 src/journal/catalog.c \
4339 src/journal/catalog.h \
4340 src/journal/mmap-cache.c \
4341 src/journal/mmap-cache.h
4343 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4344 libsystemd_journal_internal_la_CFLAGS = \
4347 libsystemd_journal_internal_la_LIBADD =
4349 libsystemd_journal_internal_la_SOURCES += \
4350 src/journal/compress.c
4353 libsystemd_journal_internal_la_CFLAGS += \
4356 libsystemd_journal_internal_la_LIBADD += \
4361 libsystemd_journal_internal_la_LIBADD += \
4366 libsystemd_journal_internal_la_SOURCES += \
4367 src/journal/journal-authenticate.c \
4368 src/journal/journal-authenticate.h \
4369 src/journal/fsprg.c \
4372 libsystemd_journal_internal_la_LIBADD += \
4375 # fsprg.c is a drop-in file using void pointer arithmetic
4376 libsystemd_journal_internal_la_CFLAGS += \
4381 noinst_LTLIBRARIES += \
4382 libsystemd-journal-internal.la
4384 rootlibexec_PROGRAMS += \
4387 rootbin_PROGRAMS += \
4393 dist_systemunit_DATA += \
4394 units/systemd-journald.socket \
4395 units/systemd-journald-dev-log.socket \
4396 units/systemd-journald-audit.socket
4398 nodist_systemunit_DATA += \
4399 units/systemd-journald.service \
4400 units/systemd-journal-flush.service \
4401 units/systemd-journal-catalog-update.service
4403 dist_pkgsysconf_DATA += \
4404 src/journal/journald.conf
4406 dist_catalog_DATA = \
4407 catalog/systemd.fr.catalog \
4408 catalog/systemd.it.catalog \
4409 catalog/systemd.pl.catalog \
4410 catalog/systemd.ru.catalog \
4411 catalog/systemd.catalog
4413 SOCKETS_TARGET_WANTS += \
4414 systemd-journald.socket \
4415 systemd-journald-dev-log.socket \
4416 systemd-journald-audit.socket
4418 SYSINIT_TARGET_WANTS += \
4419 systemd-journald.service \
4420 systemd-journal-flush.service \
4421 systemd-journal-catalog-update.service
4424 units/systemd-journald.service.in \
4425 units/systemd-journal-flush.service.in \
4426 units/systemd-journal-catalog-update.service.in \
4427 src/journal/journald-gperf.gperf
4430 src/journal/journald-gperf.c
4432 # ------------------------------------------------------------------------------
4434 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4436 rootlibexec_PROGRAMS += \
4437 systemd-journal-gatewayd
4439 systemd_journal_gatewayd_SOURCES = \
4440 src/journal-remote/journal-gatewayd.c \
4441 src/journal-remote/microhttpd-util.h \
4442 src/journal-remote/microhttpd-util.c
4444 systemd_journal_gatewayd_LDADD = \
4445 libsystemd-logs.la \
4446 libsystemd-journal-internal.la \
4447 libsystemd-internal.la \
4448 libsystemd-shared.la \
4452 systemd_journal_gatewayd_LDADD += \
4456 systemd_journal_gatewayd_CFLAGS = \
4458 $(MICROHTTPD_CFLAGS)
4460 systemd_journal_gatewayd_CPPFLAGS = \
4462 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4464 dist_systemunit_DATA += \
4465 units/systemd-journal-gatewayd.socket
4467 nodist_systemunit_DATA += \
4468 units/systemd-journal-gatewayd.service
4470 dist_gatewayddocumentroot_DATA = \
4471 src/journal-remote/browse.html
4476 units/systemd-journal-gatewayd.service.in
4478 # ------------------------------------------------------------------------------
4480 systemd_socket_proxyd_SOURCES = \
4481 src/socket-proxy/socket-proxyd.c
4483 systemd_socket_proxyd_LDADD = \
4484 libsystemd-logs.la \
4485 libsystemd-internal.la \
4486 libsystemd-journal-internal.la \
4487 libsystemd-shared.la \
4488 libsystemd-resolve.la
4490 # ------------------------------------------------------------------------------
4492 systemd_coredump_SOURCES = \
4493 src/journal/coredump.c \
4494 src/journal/coredump-vacuum.c \
4495 src/journal/coredump-vacuum.h
4497 systemd_coredump_LDADD = \
4498 libsystemd-journal-internal.la \
4499 libsystemd-label.la \
4500 libsystemd-internal.la \
4501 libsystemd-shared.la
4504 systemd_coredump_SOURCES += \
4505 src/journal/stacktrace.c \
4506 src/journal/stacktrace.h
4508 systemd_coredump_LDADD += \
4512 rootlibexec_PROGRAMS += \
4515 dist_pkgsysconf_DATA += \
4516 src/journal/coredump.conf
4519 systemd_coredump_LDADD += \
4523 coredumpctl_SOURCES = \
4524 src/journal/coredumpctl.c
4526 coredumpctl_LDADD = \
4527 libsystemd-journal-internal.la \
4528 libsystemd-internal.la \
4529 libsystemd-shared.la
4535 test-coredump-vacuum
4537 test_coredump_vacuum_SOURCES = \
4538 src/journal/test-coredump-vacuum.c \
4539 src/journal/coredump-vacuum.c \
4540 src/journal/coredump-vacuum.h
4542 test_coredump_vacuum_LDADD = \
4543 libsystemd-internal.la \
4544 libsystemd-shared.la
4546 dist_bashcompletion_DATA += \
4547 shell-completion/bash/coredumpctl
4549 dist_zshcompletion_DATA += \
4550 shell-completion/zsh/_coredumpctl
4553 sysctl.d/50-coredump.conf
4556 sysctl.d/50-coredump.conf
4560 sysctl.d/50-coredump.conf.in
4562 # ------------------------------------------------------------------------------
4564 systemd_binfmt_SOURCES = \
4567 systemd_binfmt_LDADD = \
4568 libsystemd-shared.la
4570 rootlibexec_PROGRAMS += \
4573 dist_systemunit_DATA += \
4574 units/proc-sys-fs-binfmt_misc.automount \
4575 units/proc-sys-fs-binfmt_misc.mount
4577 nodist_systemunit_DATA += \
4578 units/systemd-binfmt.service
4581 $(prefix)/lib/binfmt.d \
4582 $(sysconfdir)/binfmt.d
4584 SYSINIT_TARGET_WANTS += \
4585 systemd-binfmt.service \
4586 proc-sys-fs-binfmt_misc.automount
4591 units/systemd-binfmt.service.in
4593 # ------------------------------------------------------------------------------
4595 systemd_vconsole_setup_SOURCES = \
4596 src/vconsole/vconsole-setup.c
4598 systemd_vconsole_setup_LDADD = \
4599 libsystemd-shared.la
4601 rootlibexec_PROGRAMS += \
4602 systemd-vconsole-setup
4604 nodist_systemunit_DATA += \
4605 units/systemd-vconsole-setup.service
4607 nodist_udevrules_DATA += \
4608 src/vconsole/90-vconsole.rules
4610 SYSINIT_TARGET_WANTS += \
4611 systemd-vconsole-setup.service
4614 src/vconsole/90-vconsole.rules
4618 src/vconsole/90-vconsole.rules.in \
4619 units/systemd-vconsole-setup.service.in
4621 # ------------------------------------------------------------------------------
4623 systemd_bootchart_SOURCES = \
4624 src/bootchart/bootchart.c \
4625 src/bootchart/bootchart.h \
4626 src/bootchart/store.c \
4627 src/bootchart/store.h \
4628 src/bootchart/svg.c \
4631 systemd_bootchart_LDADD = \
4632 libsystemd-journal-internal.la \
4633 libsystemd-shared.la
4635 rootlibexec_PROGRAMS += \
4638 dist_pkgsysconf_DATA += \
4639 src/bootchart/bootchart.conf
4641 nodist_systemunit_DATA += \
4642 units/systemd-bootchart.service
4645 units/systemd-bootchart.service.in
4648 units/systemd-bootchart.service
4651 # ------------------------------------------------------------------------------
4652 if ENABLE_QUOTACHECK
4653 rootlibexec_PROGRAMS += \
4656 nodist_systemunit_DATA += \
4657 units/systemd-quotacheck.service
4659 systemd_quotacheck_SOURCES = \
4660 src/quotacheck/quotacheck.c
4662 systemd_quotacheck_LDADD = \
4663 libsystemd-shared.la
4667 units/systemd-quotacheck.service.in
4669 nodist_systemunit_DATA += \
4670 units/quotaon.service
4672 # ------------------------------------------------------------------------------
4673 if ENABLE_RANDOMSEED
4674 rootlibexec_PROGRAMS += \
4677 nodist_systemunit_DATA += \
4678 units/systemd-random-seed.service
4680 systemd_random_seed_SOURCES = \
4681 src/random-seed/random-seed.c
4683 systemd_random_seed_LDADD = \
4684 libsystemd-label.la \
4685 libsystemd-shared.la
4687 SYSINIT_TARGET_WANTS += \
4688 systemd-random-seed.service
4693 units/systemd-random-seed.service.in
4695 # ------------------------------------------------------------------------------
4697 rootlibexec_PROGRAMS += \
4700 nodist_systemunit_DATA += \
4701 units/systemd-backlight@.service
4703 systemd_backlight_SOURCES = \
4704 src/backlight/backlight.c
4706 systemd_backlight_LDADD = \
4707 libsystemd-label.la \
4708 libudev-internal.la \
4709 libsystemd-shared.la
4713 units/systemd-backlight@.service.in
4715 # ------------------------------------------------------------------------------
4717 rootlibexec_PROGRAMS += \
4720 nodist_systemunit_DATA += \
4721 units/systemd-rfkill@.service
4723 systemd_rfkill_SOURCES = \
4726 systemd_rfkill_LDADD = \
4727 libsystemd-label.la \
4728 libudev-internal.la \
4729 libsystemd-shared.la
4733 units/systemd-rfkill@.service.in
4735 # ------------------------------------------------------------------------------
4736 if HAVE_LIBCRYPTSETUP
4737 rootlibexec_PROGRAMS += \
4740 systemgenerator_PROGRAMS += \
4741 systemd-cryptsetup-generator
4743 dist_systemunit_DATA += \
4744 units/cryptsetup.target \
4745 units/cryptsetup-pre.target
4747 systemd_cryptsetup_SOURCES = \
4748 src/cryptsetup/cryptsetup.c
4750 systemd_cryptsetup_CFLAGS = \
4752 $(LIBCRYPTSETUP_CFLAGS)
4754 systemd_cryptsetup_LDADD = \
4755 libsystemd-label.la \
4756 libudev-internal.la \
4757 libsystemd-shared.la \
4758 $(LIBCRYPTSETUP_LIBS)
4760 systemd_cryptsetup_generator_SOURCES = \
4761 src/cryptsetup/cryptsetup-generator.c
4763 systemd_cryptsetup_generator_LDADD = \
4764 libsystemd-label.la \
4765 libsystemd-shared.la
4767 SYSINIT_TARGET_WANTS += \
4772 # ------------------------------------------------------------------------------
4774 systemd_hostnamed_SOURCES = \
4775 src/hostname/hostnamed.c
4777 systemd_hostnamed_LDADD = \
4778 libsystemd-label.la \
4779 libsystemd-internal.la \
4780 libsystemd-shared.la
4782 rootlibexec_PROGRAMS += \
4785 nodist_systemunit_DATA += \
4786 units/systemd-hostnamed.service
4788 dist_systemunit_DATA_busnames += \
4789 units/org.freedesktop.hostname1.busname
4791 dist_dbuspolicy_DATA += \
4792 src/hostname/org.freedesktop.hostname1.conf
4794 dist_dbussystemservice_DATA += \
4795 src/hostname/org.freedesktop.hostname1.service
4797 polkitpolicy_files += \
4798 src/hostname/org.freedesktop.hostname1.policy
4800 SYSTEM_UNIT_ALIASES += \
4801 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4803 BUSNAMES_TARGET_WANTS += \
4804 org.freedesktop.hostname1.busname
4806 hostnamectl_SOURCES = \
4807 src/hostname/hostnamectl.c
4809 hostnamectl_LDADD = \
4810 libsystemd-internal.la \
4811 libsystemd-shared.la
4816 dist_bashcompletion_DATA += \
4817 shell-completion/bash/hostnamectl
4819 dist_zshcompletion_DATA += \
4820 shell-completion/zsh/_hostnamectl
4824 polkitpolicy_in_files += \
4825 src/hostname/org.freedesktop.hostname1.policy.in
4828 units/systemd-hostnamed.service.in
4830 # ------------------------------------------------------------------------------
4831 dist_systemunit_DATA_busnames += \
4832 units/org.freedesktop.systemd1.busname
4834 BUSNAMES_TARGET_WANTS += \
4835 org.freedesktop.systemd1.busname
4837 # ------------------------------------------------------------------------------
4839 systemd_localed_SOURCES = \
4840 src/locale/localed.c
4842 systemd_localed_LDADD = \
4843 libsystemd-label.la \
4844 libsystemd-internal.la \
4845 libsystemd-shared.la \
4848 systemd_localed_CFLAGS = \
4852 nodist_systemunit_DATA += \
4853 units/systemd-localed.service
4855 dist_systemunit_DATA_busnames += \
4856 units/org.freedesktop.locale1.busname
4858 rootlibexec_PROGRAMS += \
4861 dist_dbuspolicy_DATA += \
4862 src/locale/org.freedesktop.locale1.conf
4864 dist_dbussystemservice_DATA += \
4865 src/locale/org.freedesktop.locale1.service
4867 polkitpolicy_files += \
4868 src/locale/org.freedesktop.locale1.policy
4870 SYSTEM_UNIT_ALIASES += \
4871 systemd-localed.service dbus-org.freedesktop.locale1.service
4873 BUSNAMES_TARGET_WANTS += \
4874 org.freedesktop.locale1.busname
4876 dist_pkgdata_DATA += \
4877 src/locale/kbd-model-map
4879 dist_noinst_SCRIPT = \
4880 src/locale/generate-kbd-model-map
4882 localectl_SOURCES = \
4883 src/locale/localectl.c
4886 libsystemd-internal.la \
4887 libsystemd-shared.la
4892 dist_bashcompletion_DATA += \
4893 shell-completion/bash/localectl
4895 dist_zshcompletion_DATA += \
4896 shell-completion/zsh/_localectl
4900 .PHONY: update-kbd-model-map
4902 polkitpolicy_in_files += \
4903 src/locale/org.freedesktop.locale1.policy.in
4906 units/systemd-localed.service.in
4908 # ------------------------------------------------------------------------------
4910 systemd_timedated_SOURCES = \
4911 src/timedate/timedated.c
4913 systemd_timedated_LDADD = \
4914 libsystemd-label.la \
4915 libsystemd-internal.la \
4916 libsystemd-shared.la
4918 rootlibexec_PROGRAMS += \
4921 dist_dbussystemservice_DATA += \
4922 src/timedate/org.freedesktop.timedate1.service
4924 dist_dbuspolicy_DATA += \
4925 src/timedate/org.freedesktop.timedate1.conf
4927 nodist_systemunit_DATA += \
4928 units/systemd-timedated.service
4930 dist_systemunit_DATA_busnames += \
4931 units/org.freedesktop.timedate1.busname
4933 polkitpolicy_files += \
4934 src/timedate/org.freedesktop.timedate1.policy
4936 SYSTEM_UNIT_ALIASES += \
4937 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4939 BUSNAMES_TARGET_WANTS += \
4940 org.freedesktop.timedate1.busname
4942 timedatectl_SOURCES = \
4943 src/timedate/timedatectl.c
4945 timedatectl_LDADD = \
4946 libsystemd-internal.la \
4947 libsystemd-shared.la
4952 dist_bashcompletion_DATA += \
4953 shell-completion/bash/timedatectl
4955 dist_zshcompletion_DATA += \
4956 shell-completion/zsh/_timedatectl
4959 polkitpolicy_in_files += \
4960 src/timedate/org.freedesktop.timedate1.policy.in
4963 units/systemd-timedated.service.in
4965 # ------------------------------------------------------------------------------
4967 systemd_timesyncd_SOURCES = \
4968 src/timesync/timesyncd.c \
4969 src/timesync/timesyncd-manager.c \
4970 src/timesync/timesyncd-manager.h \
4971 src/timesync/timesyncd-conf.c \
4972 src/timesync/timesyncd-conf.h \
4973 src/timesync/timesyncd-server.c \
4974 src/timesync/timesyncd-server.h
4976 nodist_systemd_timesyncd_SOURCES = \
4977 src/timesync/timesyncd-gperf.c
4980 src/timesync/timesyncd-gperf.gperf
4983 src/timesync/timesyncd-gperf.c
4985 systemd_timesyncd_LDADD = \
4986 libsystemd-resolve.la \
4987 libsystemd-network.la \
4988 libsystemd-label.la \
4989 libsystemd-internal.la \
4990 libsystemd-shared.la \
4993 rootlibexec_PROGRAMS += \
4996 nodist_systemunit_DATA += \
4997 units/systemd-timesyncd.service
4999 GENERAL_ALIASES += \
5000 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5003 units/systemd-timesyncd.service.in
5005 nodist_pkgsysconf_DATA += \
5006 src/timesync/timesyncd.conf
5009 src/timesync/timesyncd.conf.in
5012 src/timesync/timesyncd.conf
5015 # ------------------------------------------------------------------------------
5017 libnss_myhostname_la_SOURCES = \
5018 src/nss-myhostname/nss-myhostname.sym \
5019 src/nss-myhostname/nss-myhostname.c
5021 libnss_myhostname_la_LDFLAGS = \
5028 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5030 libnss_myhostname_la_LIBADD = \
5031 libsystemd-shared.la \
5032 libsystemd-internal.la
5034 lib_LTLIBRARIES += \
5035 libnss_myhostname.la
5038 # ------------------------------------------------------------------------------
5040 systemd_machined_SOURCES = \
5041 src/machine/machined.c \
5042 src/machine/machined.h
5044 systemd_machined_LDADD = \
5045 libsystemd-machine-core.la
5047 rootlibexec_PROGRAMS += \
5050 libsystemd_machine_core_la_SOURCES = \
5051 src/machine/machine.c \
5052 src/machine/machine.h \
5053 src/machine/machined-dbus.c \
5054 src/machine/machine-dbus.c \
5055 src/machine/image-dbus.c \
5056 src/machine/image-dbus.h
5058 libsystemd_machine_core_la_LIBADD = \
5059 libsystemd-label.la \
5060 libsystemd-internal.la \
5061 libudev-internal.la \
5062 libsystemd-shared.la
5064 noinst_LTLIBRARIES += \
5065 libsystemd-machine-core.la
5067 machinectl_SOURCES = \
5068 src/machine/machinectl.c
5070 machinectl_LDADD = \
5071 libsystemd-internal.la \
5072 libsystemd-shared.la
5074 rootbin_PROGRAMS += \
5077 dist_bashcompletion_DATA += \
5078 shell-completion/bash/machinectl
5080 test_machine_tables_SOURCES = \
5081 src/machine/test-machine-tables.c
5083 test_machine_tables_LDADD = \
5084 libsystemd-machine-core.la
5089 nodist_systemunit_DATA += \
5090 units/systemd-machined.service
5092 dist_systemunit_DATA += \
5095 dist_systemunit_DATA_busnames += \
5096 units/org.freedesktop.machine1.busname
5098 dist_dbussystemservice_DATA += \
5099 src/machine/org.freedesktop.machine1.service
5101 dist_dbuspolicy_DATA += \
5102 src/machine/org.freedesktop.machine1.conf
5104 polkitpolicy_files += \
5105 src/machine/org.freedesktop.machine1.policy
5107 polkitpolicy_in_files += \
5108 src/machine/org.freedesktop.machine1.policy.in
5110 dist_zshcompletion_DATA += \
5111 shell-completion/zsh/_machinectl \
5112 shell-completion/zsh/_sd_machines
5114 SYSTEM_UNIT_ALIASES += \
5115 systemd-machined.service dbus-org.freedesktop.machine1.service
5117 BUSNAMES_TARGET_WANTS += \
5118 org.freedesktop.machine1.busname
5121 units/systemd-machined.service.in
5123 libnss_mymachines_la_SOURCES = \
5124 src/nss-mymachines/nss-mymachines.sym \
5125 src/nss-mymachines/nss-mymachines.c
5127 libnss_mymachines_la_LDFLAGS = \
5134 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5136 libnss_mymachines_la_LIBADD = \
5137 libsystemd-shared.la \
5138 libsystemd-internal.la
5140 lib_LTLIBRARIES += \
5141 libnss_mymachines.la
5148 systemd_import_SOURCES = \
5149 src/import/import.c \
5150 src/import/import-gpt.c \
5151 src/import/import-gpt.h \
5152 src/import/import-dkr.c \
5153 src/import/import-dkr.h \
5154 src/import/curl-util.c \
5155 src/import/curl-util.h \
5156 src/import/aufs-util.c \
5157 src/import/aufs-util.h
5159 systemd_import_CFLAGS = \
5163 systemd_import_LDADD = \
5164 libsystemd-internal.la \
5165 libsystemd-shared.la \
5172 # ------------------------------------------------------------------------------
5174 systemd_resolved_SOURCES = \
5175 src/resolve/resolved.c \
5176 src/resolve/resolved-manager.c \
5177 src/resolve/resolved-manager.h \
5178 src/resolve/resolved-conf.c \
5179 src/resolve/resolved-conf.h \
5180 src/resolve/resolved-bus.c \
5181 src/resolve/resolved-bus.h \
5182 src/resolve/resolved-link.h \
5183 src/resolve/resolved-link.c \
5184 src/resolve/resolved-def.h \
5185 src/resolve/resolved-dns-domain.h \
5186 src/resolve/resolved-dns-domain.c \
5187 src/resolve/resolved-dns-rr.h \
5188 src/resolve/resolved-dns-rr.c \
5189 src/resolve/resolved-dns-question.h \
5190 src/resolve/resolved-dns-question.c \
5191 src/resolve/resolved-dns-answer.h \
5192 src/resolve/resolved-dns-answer.c \
5193 src/resolve/resolved-dns-packet.h \
5194 src/resolve/resolved-dns-packet.c \
5195 src/resolve/resolved-dns-query.h \
5196 src/resolve/resolved-dns-query.c \
5197 src/resolve/resolved-dns-transaction.h \
5198 src/resolve/resolved-dns-transaction.c \
5199 src/resolve/resolved-dns-scope.h \
5200 src/resolve/resolved-dns-scope.c \
5201 src/resolve/resolved-dns-server.h \
5202 src/resolve/resolved-dns-server.c \
5203 src/resolve/resolved-dns-cache.h \
5204 src/resolve/resolved-dns-cache.c \
5205 src/resolve/resolved-dns-zone.h \
5206 src/resolve/resolved-dns-zone.c \
5207 src/resolve/resolved-dns-stream.h \
5208 src/resolve/resolved-dns-stream.c \
5209 src/resolve/dns-type.c \
5210 src/resolve/dns-type.h \
5211 src/resolve/dns_type-from-name.h \
5212 src/resolve/dns_type-to-name.h
5214 nodist_systemd_resolved_SOURCES = \
5215 src/resolve/resolved-gperf.c
5218 src/resolve/resolved-gperf.gperf \
5219 src/resolve/dns_type-from-name.gperf
5222 src/resolve/resolved-gperf.c
5224 systemd_resolved_LDADD = \
5225 libsystemd-network.la \
5226 libsystemd-label.la \
5227 libsystemd-internal.la \
5228 libsystemd-shared.la \
5232 rootlibexec_PROGRAMS += \
5235 nodist_systemunit_DATA += \
5236 units/systemd-resolved.service
5238 dist_systemunit_DATA_busnames += \
5239 units/org.freedesktop.resolve1.busname
5241 dist_dbuspolicy_DATA += \
5242 src/resolve/org.freedesktop.resolve1.conf
5244 dist_dbussystemservice_DATA += \
5245 src/resolve/org.freedesktop.resolve1.service
5248 units/systemd-resolved.service.in
5250 SYSTEM_UNIT_ALIASES += \
5251 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5253 BUSNAMES_TARGET_WANTS += \
5254 org.freedesktop.resolve1.busname
5256 GENERAL_ALIASES += \
5257 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5259 nodist_pkgsysconf_DATA += \
5260 src/resolve/resolved.conf
5263 src/resolve/resolved.conf.in
5266 src/resolve/resolved.conf
5271 test_dns_domain_SOURCES = \
5272 src/resolve/resolved-dns-domain.h \
5273 src/resolve/resolved-dns-domain.c \
5274 src/resolve/test-dns-domain.c
5276 test_dns_domain_LDADD = \
5277 libsystemd-network.la \
5278 libsystemd-label.la \
5279 libsystemd-internal.la \
5280 libsystemd-shared.la \
5283 libnss_resolve_la_SOURCES = \
5284 src/nss-resolve/nss-resolve.sym \
5285 src/nss-resolve/nss-resolve.c
5287 libnss_resolve_la_LDFLAGS = \
5294 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5296 libnss_resolve_la_LIBADD = \
5297 libsystemd-shared.la \
5298 libsystemd-internal.la
5300 lib_LTLIBRARIES += \
5303 systemd_resolve_host_SOURCES = \
5304 src/resolve-host/resolve-host.c \
5305 src/resolve/resolved-dns-packet.c \
5306 src/resolve/resolved-dns-packet.h \
5307 src/resolve/resolved-dns-rr.c \
5308 src/resolve/resolved-dns-rr.h \
5309 src/resolve/resolved-dns-answer.c \
5310 src/resolve/resolved-dns-answer.h \
5311 src/resolve/resolved-dns-question.c \
5312 src/resolve/resolved-dns-question.h \
5313 src/resolve/resolved-dns-domain.c \
5314 src/resolve/resolved-dns-domain.h \
5315 src/resolve/dns-type.c \
5316 src/resolve/dns-type.h \
5317 src/resolve/dns_type-from-name.h \
5318 src/resolve/dns_type-to-name.h
5320 systemd_resolve_host_LDADD = \
5321 libsystemd-internal.la \
5322 libsystemd-shared.la \
5326 rootlibexec_PROGRAMS += \
5327 systemd-resolve-host
5331 # ------------------------------------------------------------------------------
5333 rootlibexec_PROGRAMS += \
5336 systemd_networkd_SOURCES = \
5337 src/network/networkd.c
5339 systemd_networkd_LDADD = \
5340 libsystemd-networkd-core.la
5342 noinst_LTLIBRARIES += \
5343 libsystemd-networkd-core.la
5345 libsystemd_networkd_core_la_CFLAGS = \
5348 libsystemd_networkd_core_la_SOURCES = \
5349 src/libsystemd-network/network-internal.h \
5350 src/network/networkd.h \
5351 src/network/networkd-link.h \
5352 src/network/networkd-netdev.h \
5353 src/network/networkd-netdev-tunnel.h \
5354 src/network/networkd-netdev-veth.h \
5355 src/network/networkd-netdev-vxlan.h \
5356 src/network/networkd-netdev-vlan.h \
5357 src/network/networkd-netdev-macvlan.h \
5358 src/network/networkd-netdev-dummy.h \
5359 src/network/networkd-netdev-tuntap.h \
5360 src/network/networkd-netdev-bond.h \
5361 src/network/networkd-netdev-bridge.h \
5362 src/network/networkd-netdev.c \
5363 src/network/networkd-netdev-tunnel.c \
5364 src/network/networkd-netdev-veth.c \
5365 src/network/networkd-netdev-vxlan.c \
5366 src/network/networkd-netdev-vlan.c \
5367 src/network/networkd-netdev-macvlan.c \
5368 src/network/networkd-netdev-dummy.c \
5369 src/network/networkd-netdev-tuntap.c \
5370 src/network/networkd-netdev-bond.c \
5371 src/network/networkd-netdev-bridge.c \
5372 src/network/networkd-link.c \
5373 src/network/networkd-ipv4ll.c \
5374 src/network/networkd-dhcp4.c \
5375 src/network/networkd-dhcp6.c \
5376 src/network/networkd-network.c \
5377 src/network/networkd-address.c \
5378 src/network/networkd-route.c \
5379 src/network/networkd-manager.c \
5380 src/network/networkd-fdb.c \
5381 src/network/networkd-address-pool.c
5383 nodist_libsystemd_networkd_core_la_SOURCES = \
5384 src/network/networkd-network-gperf.c \
5385 src/network/networkd-netdev-gperf.c
5387 libsystemd_networkd_core_la_LIBADD = \
5388 libudev-internal.la \
5389 libsystemd-internal.la \
5390 libsystemd-network.la \
5391 libsystemd-label.la \
5392 libsystemd-shared.la
5394 rootlibexec_PROGRAMS += \
5395 systemd-networkd-wait-online
5397 systemd_networkd_wait_online_CFLAGS = \
5400 systemd_networkd_wait_online_SOURCES = \
5401 src/libsystemd-network/network-internal.h \
5402 src/network/networkd-wait-online.h \
5403 src/network/networkd-wait-online-link.h \
5404 src/network/networkd-wait-online.c \
5405 src/network/networkd-wait-online-manager.c \
5406 src/network/networkd-wait-online-link.c
5408 systemd_networkd_wait_online_LDADD = \
5409 libsystemd-network.la \
5410 libudev-internal.la \
5411 libsystemd-internal.la \
5412 libsystemd-shared.la
5414 rootbin_PROGRAMS += \
5417 networkctl_SOURCES = \
5418 src/network/networkctl.c
5420 networkctl_LDADD = \
5421 libsystemd-internal.la \
5422 libudev-internal.la \
5423 libsystemd-shared.la \
5424 libsystemd-network.la
5426 test_network_SOURCES = \
5427 src/network/test-network.c
5429 test_network_LDADD = \
5430 libsystemd-networkd-core.la
5432 test_network_tables_SOURCES = \
5433 src/network/test-network-tables.c \
5434 src/shared/test-tables.h
5436 test_network_tables_LDADD = \
5437 libsystemd-networkd-core.la \
5444 nodist_systemunit_DATA += \
5445 units/systemd-networkd.service \
5446 units/systemd-networkd-wait-online.service
5448 GENERAL_ALIASES += \
5449 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5450 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5453 src/network/networkd-network-gperf.gperf \
5454 src/network/networkd-netdev-gperf.gperf \
5455 units/systemd-networkd.service.in \
5456 units/systemd-networkd-wait-online.service.in
5459 src/network/networkd-network-gperf.c \
5460 src/network/networkd-netdev-gperf.c
5463 # ------------------------------------------------------------------------------
5465 systemd_logind_SOURCES = \
5466 src/login/logind.c \
5469 nodist_systemd_logind_SOURCES = \
5470 src/login/logind-gperf.c
5472 systemd_logind_LDADD = \
5473 libsystemd-logind-core.la
5475 libsystemd_logind_core_la_SOURCES = \
5476 src/login/logind-core.c \
5477 src/login/logind-device.c \
5478 src/login/logind-device.h \
5479 src/login/logind-button.c \
5480 src/login/logind-button.h \
5481 src/login/logind-action.c \
5482 src/login/logind-action.h \
5483 src/login/logind-seat.c \
5484 src/login/logind-seat.h \
5485 src/login/logind-session.c \
5486 src/login/logind-session.h \
5487 src/login/logind-session-device.c \
5488 src/login/logind-session-device.h \
5489 src/login/logind-user.c \
5490 src/login/logind-user.h \
5491 src/login/logind-inhibit.c \
5492 src/login/logind-inhibit.h \
5493 src/login/logind-dbus.c \
5494 src/login/logind-session-dbus.c \
5495 src/login/logind-seat-dbus.c \
5496 src/login/logind-user-dbus.c \
5497 src/login/logind-acl.h
5499 libsystemd_logind_core_la_LIBADD = \
5500 libsystemd-label.la \
5501 libsystemd-internal.la \
5502 libudev-internal.la \
5503 libsystemd-shared.la
5506 libsystemd_logind_core_la_SOURCES += \
5507 src/login/logind-acl.c
5509 libsystemd_logind_core_la_LIBADD += \
5513 noinst_LTLIBRARIES += \
5514 libsystemd-logind-core.la
5516 systemd_user_sessions_SOURCES = \
5517 src/login/user-sessions.c
5519 systemd_user_sessions_LDADD = \
5520 libsystemd-shared.la
5522 rootlibexec_PROGRAMS += \
5524 systemd-user-sessions
5526 loginctl_SOURCES = \
5527 src/login/loginctl.c \
5528 src/login/sysfs-show.h \
5529 src/login/sysfs-show.c
5532 libsystemd-internal.la \
5533 libudev-internal.la \
5534 libsystemd-shared.la
5536 rootbin_PROGRAMS += \
5539 dist_bashcompletion_DATA += \
5540 shell-completion/bash/loginctl
5542 dist_zshcompletion_DATA += \
5543 shell-completion/zsh/_loginctl \
5544 shell-completion/zsh/_systemd-inhibit
5546 systemd_inhibit_SOURCES = \
5549 systemd_inhibit_LDADD = \
5550 libsystemd-internal.la \
5551 libsystemd-shared.la
5553 rootbin_PROGRAMS += \
5556 test_login_SOURCES = \
5557 src/libsystemd/sd-login/test-login.c
5559 test_login_LDADD = \
5560 libsystemd-internal.la \
5561 libsystemd-shared.la
5563 test_login_shared_SOURCES = \
5564 src/login/test-login-shared.c
5566 test_login_shared_LDADD = \
5567 libsystemd-internal.la \
5568 libsystemd-shared.la
5570 test_inhibit_SOURCES = \
5571 src/login/test-inhibit.c
5573 test_inhibit_LDADD = \
5574 libsystemd-internal.la \
5575 libsystemd-shared.la
5577 test_login_tables_SOURCES = \
5578 src/login/test-login-tables.c
5580 test_login_tables_LDADD = \
5581 libsystemd-logind-core.la
5592 pam_systemd_la_SOURCES = \
5593 src/login/pam_systemd.sym \
5594 src/login/pam_systemd.c
5596 pam_systemd_la_CFLAGS = \
5601 pam_systemd_la_LDFLAGS = \
5607 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5609 pam_systemd_la_LIBADD = \
5610 libsystemd-internal.la \
5611 libsystemd-shared.la \
5614 pamlib_LTLIBRARIES = \
5617 dist_pamconf_DATA = \
5618 src/login/systemd-user
5621 nodist_systemunit_DATA += \
5622 units/systemd-logind.service \
5623 units/systemd-user-sessions.service
5625 dist_systemunit_DATA += \
5628 dist_systemunit_DATA_busnames += \
5629 units/org.freedesktop.login1.busname
5631 dist_dbussystemservice_DATA += \
5632 src/login/org.freedesktop.login1.service
5634 dist_dbuspolicy_DATA += \
5635 src/login/org.freedesktop.login1.conf
5637 dist_pkgsysconf_DATA += \
5638 src/login/logind.conf
5640 polkitpolicy_files += \
5641 src/login/org.freedesktop.login1.policy
5646 MULTI_USER_TARGET_WANTS += \
5647 systemd-logind.service \
5648 systemd-user-sessions.service
5650 SYSTEM_UNIT_ALIASES += \
5651 systemd-logind.service dbus-org.freedesktop.login1.service
5653 BUSNAMES_TARGET_WANTS += \
5654 org.freedesktop.login1.busname
5656 dist_udevrules_DATA += \
5657 src/login/70-uaccess.rules \
5658 src/login/70-power-switch.rules
5660 nodist_udevrules_DATA += \
5661 src/login/71-seat.rules \
5662 src/login/73-seat-late.rules
5665 src/login/logind-gperf.c \
5666 src/login/71-seat.rules \
5667 src/login/73-seat-late.rules
5670 polkitpolicy_in_files += \
5671 src/login/org.freedesktop.login1.policy.in
5674 src/login/logind-gperf.gperf \
5675 src/login/71-seat.rules.in \
5676 src/login/73-seat-late.rules.in \
5677 units/systemd-logind.service.in \
5678 units/systemd-user-sessions.service.in
5680 # ------------------------------------------------------------------------------
5681 if HAVE_PYTHON_DEVEL
5682 pkgpyexec_LTLIBRARIES = \
5689 _journal_la_SOURCES = \
5690 src/python-systemd/_journal.c
5692 _journal_la_CFLAGS = \
5694 -fvisibility=default \
5695 $(PYTHON_DEVEL_CFLAGS)
5697 _journal_la_LDFLAGS = \
5703 _journal_la_LIBADD = \
5704 $(PYTHON_DEVEL_LIBS) \
5707 id128_la_SOURCES = \
5708 src/python-systemd/id128.c \
5709 src/python-systemd/pyutil.c \
5710 src/python-systemd/pyutil.h
5712 nodist_id128_la_SOURCES = \
5713 src/python-systemd/id128-constants.h
5717 -fvisibility=default \
5718 $(PYTHON_DEVEL_CFLAGS) \
5719 -I$(top_builddir)/src/python-systemd
5721 id128_la_LDFLAGS = \
5728 $(PYTHON_DEVEL_LIBS) \
5729 libsystemd-shared.la \
5732 _daemon_la_SOURCES = \
5733 src/python-systemd/_daemon.c \
5734 src/python-systemd/pyutil.c \
5735 src/python-systemd/pyutil.h
5737 _daemon_la_CFLAGS = \
5739 -fvisibility=default \
5740 $(PYTHON_DEVEL_CFLAGS) \
5741 -I$(top_builddir)/src/python-systemd
5743 _daemon_la_LDFLAGS = \
5749 _daemon_la_LIBADD = \
5750 $(PYTHON_DEVEL_LIBS) \
5751 libsystemd-shared.la \
5754 _reader_la_SOURCES = \
5755 src/python-systemd/_reader.c \
5756 src/python-systemd/pyutil.c \
5757 src/python-systemd/pyutil.h
5759 _reader_la_CFLAGS = \
5761 -fvisibility=default \
5762 $(PYTHON_DEVEL_CFLAGS)
5764 _reader_la_LDFLAGS = \
5770 _reader_la_LIBADD = \
5771 $(PYTHON_DEVEL_LIBS) \
5772 libsystemd-shared.la \
5775 login_la_SOURCES = \
5776 src/python-systemd/login.c \
5777 src/python-systemd/pyutil.c \
5778 src/python-systemd/pyutil.h
5782 -fvisibility=default \
5783 $(PYTHON_DEVEL_CFLAGS)
5785 login_la_LDFLAGS = \
5792 $(PYTHON_DEVEL_LIBS) \
5793 libsystemd-shared.la \
5796 dist_pkgpyexec_PYTHON = \
5797 src/python-systemd/journal.py \
5798 src/python-systemd/daemon.py \
5799 src/python-systemd/__init__.py
5801 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5802 $(AM_V_at)$(MKDIR_P) $(dir $@)
5803 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5806 src/python-systemd/id128-constants.h
5808 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5810 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5811 $(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/
5812 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5815 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5816 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5819 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5820 $(MAKE) DESTDIR="$$dir" install && \
5821 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5826 CLEAN_LOCAL_HOOKS += clean-sphinx
5828 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5831 -rm -rf docs/html/python-systemd/
5833 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5835 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5836 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5838 # ------------------------------------------------------------------------------
5839 if ENABLE_COMPAT_LIBS
5841 src/compat-libs/linkwarning.h
5843 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5844 $(AM_V_at)$(MKDIR_P) $(dir $@)
5845 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5848 libsystemd-journal.c \
5849 libsystemd-login.c \
5850 libsystemd-id128.c \
5853 libsystemd_journal_la_SOURCES = \
5854 libsystemd-journal.c \
5855 src/compat-libs/libsystemd-journal.sym
5857 libsystemd_journal_la_CPPFLAGS = \
5859 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5861 libsystemd_journal_la_LDFLAGS = \
5863 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5864 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5866 libsystemd_journal_la_LIBADD = \
5867 libsystemd-journal-internal.la \
5868 libsystemd-internal.la \
5869 libsystemd-shared.la
5871 libsystemd_login_la_SOURCES = \
5872 libsystemd-login.c \
5873 src/compat-libs/libsystemd-login.sym
5875 libsystemd_login_la_CPPFLAGS = \
5877 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5879 libsystemd_login_la_LDFLAGS = \
5881 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5882 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5884 libsystemd_login_la_LIBADD = \
5885 libsystemd-internal.la \
5886 libsystemd-shared.la
5888 libsystemd_id128_la_SOURCES = \
5889 libsystemd-id128.c \
5890 src/compat-libs/libsystemd-id128.sym
5892 libsystemd_id128_la_CPPFLAGS = \
5894 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5896 libsystemd_id128_la_LDFLAGS = \
5898 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5899 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5901 libsystemd_id128_la_LIBADD = \
5902 libsystemd-internal.la \
5903 libsystemd-shared.la
5905 libsystemd_daemon_la_SOURCES = \
5906 libsystemd-daemon.c \
5907 src/compat-libs/libsystemd-daemon.sym
5909 libsystemd_daemon_la_CPPFLAGS = \
5911 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5913 libsystemd_daemon_la_LDFLAGS = \
5915 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5916 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5918 libsystemd_daemon_la_LIBADD = \
5919 libsystemd-internal.la \
5920 libsystemd-shared.la
5922 lib_LTLIBRARIES += \
5923 libsystemd-journal.la \
5924 libsystemd-login.la \
5925 libsystemd-id128.la \
5926 libsystemd-daemon.la
5928 pkgconfiglib_DATA += \
5929 src/compat-libs/libsystemd-journal.pc \
5930 src/compat-libs/libsystemd-login.pc \
5931 src/compat-libs/libsystemd-id128.pc \
5932 src/compat-libs/libsystemd-daemon.pc
5934 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5935 compat-lib-install-hook:
5936 libname=libsystemd-login.so && $(move-to-rootlibdir)
5937 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5938 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5939 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5941 compat-lib-uninstall-hook:
5942 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5943 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5944 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5945 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5947 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5948 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5952 src/compat-libs/libsystemd-journal.pc.in \
5953 src/compat-libs/libsystemd-login.pc.in \
5954 src/compat-libs/libsystemd-id128.pc.in \
5955 src/compat-libs/libsystemd-daemon.pc.in
5957 # ------------------------------------------------------------------------------
5959 '|rootlibexecdir=$(rootlibexecdir)|' \
5960 '|rootbindir=$(rootbindir)|' \
5961 '|bindir=$(bindir)|' \
5962 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5963 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5964 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5965 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5966 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5967 '|pkgdatadir=$(pkgdatadir)|' \
5968 '|systemunitdir=$(systemunitdir)|' \
5969 '|userunitdir=$(userunitdir)|' \
5970 '|systempresetdir=$(systempresetdir)|' \
5971 '|userpresetdir=$(userpresetdir)|' \
5972 '|udevhwdbdir=$(udevhwdbdir)|' \
5973 '|udevrulesdir=$(udevrulesdir)|' \
5974 '|catalogdir=$(catalogdir)|' \
5975 '|tmpfilesdir=$(tmpfilesdir)|' \
5976 '|sysusersdir=$(sysusersdir)|' \
5977 '|sysctldir=$(sysctldir)|' \
5978 '|systemgeneratordir=$(systemgeneratordir)|' \
5979 '|usergeneratordir=$(usergeneratordir)|' \
5980 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5981 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5982 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5983 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5984 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5985 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5986 '|prefix=$(prefix)|' \
5987 '|exec_prefix=$(exec_prefix)|' \
5988 '|libdir=$(libdir)|' \
5989 '|includedir=$(includedir)|' \
5990 '|VERSION=$(VERSION)|' \
5991 '|rootprefix=$(rootprefix)|' \
5992 '|udevlibexecdir=$(udevlibexecdir)|' \
5993 '|SUSHELL=$(SUSHELL)|' \
5994 '|DEBUGTTY=$(DEBUGTTY)|' \
5997 '|MKDIR_P=$(MKDIR_P)|' \
5998 '|QUOTAON=$(QUOTAON)|' \
5999 '|QUOTACHECK=$(QUOTACHECK)|' \
6000 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6001 '|VARLOGDIR=$(varlogdir)|' \
6002 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6003 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6004 '|PYTHON=$(PYTHON)|' \
6005 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6006 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6007 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6008 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6009 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6010 '|TTY_GID=$(TTY_GID)|' \
6011 '|systemsleepdir=$(systemsleepdir)|' \
6012 '|systemshutdowndir=$(systemshutdowndir)|' \
6013 '|binfmtdir=$(binfmtdir)|' \
6014 '|modulesloaddir=$(modulesloaddir)|'
6017 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6018 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6027 sysctl.d/%: sysctl.d/%.in
6036 src/core/macros.%: src/core/macros.%.in
6039 src/%.policy.in: src/%.policy.in.in
6042 shell-completion/%: shell-completion/%.in
6053 $(AM_V_GEN)chmod +x $@
6055 src/%.c: src/%.gperf
6056 $(AM_V_at)$(MKDIR_P) $(dir $@)
6057 $(AM_V_GPERF)$(GPERF) < $< > $@
6060 $(AM_V_at)$(MKDIR_P) $(dir $@)
6061 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6063 sysusers.d/%: sysusers.d/%.m4
6064 $(AM_V_at)$(MKDIR_P) $(dir $@)
6065 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6067 tmpfiles.d/%: tmpfiles.d/%.m4
6068 $(AM_V_at)$(MKDIR_P) $(dir $@)
6069 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6073 $(AM_V_at)$(MKDIR_P) $(dir $@)
6074 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6076 units/user/%: units/user/%.m4
6077 $(AM_V_at)$(MKDIR_P) $(dir $@)
6078 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6081 nodist_polkitpolicy_DATA = \
6082 $(polkitpolicy_files) \
6083 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6087 $(polkitpolicy_in_files) \
6088 $(polkitpolicy_in_in_files)
6091 $(nodist_systemunit_DATA) \
6092 $(nodist_userunit_DATA) \
6093 $(pkgconfiglib_DATA) \
6094 $(nodist_polkitpolicy_DATA)
6096 # ------------------------------------------------------------------------------
6098 man/custom-entities.ent: configure.ac
6099 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6100 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6101 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6105 man/custom-entities.ent
6110 --stringparam man.output.quietly 1 \
6111 --stringparam funcsynopsis.style ansi \
6112 --stringparam man.authors.section.enabled 0 \
6113 --stringparam man.copyright.section.enabled 0 \
6114 --stringparam systemd.version $(VERSION) \
6115 --path '$(builddir)/man:$(srcdir)/man'
6117 XSLTPROC_PROCESS_MAN = \
6118 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6120 XSLTPROC_PROCESS_HTML = \
6121 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6123 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6124 $(XSLTPROC_PROCESS_MAN)
6126 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6127 $(XSLTPROC_PROCESS_MAN)
6129 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6130 $(XSLTPROC_PROCESS_MAN)
6132 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6133 $(XSLTPROC_PROCESS_MAN)
6135 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6136 $(XSLTPROC_PROCESS_MAN)
6138 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6139 $(XSLTPROC_PROCESS_HTML)
6142 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6148 man/custom-html.xsl \
6151 # ------------------------------------------------------------------------------
6154 docs/sysvinit/README
6159 docs/sysvinit/README: docs/sysvinit/README.in
6162 docs/var-log/README: docs/var-log/README.in
6166 docs/sysvinit/README \
6171 docs/sysvinit/README.in \
6172 docs/var-log/README.in
6174 SOCKETS_TARGET_WANTS += \
6175 systemd-initctl.socket \
6176 systemd-shutdownd.socket
6180 RUNLEVEL1_TARGET_WANTS += \
6181 systemd-update-utmp-runlevel.service
6182 RUNLEVEL2_TARGET_WANTS += \
6183 systemd-update-utmp-runlevel.service
6184 RUNLEVEL3_TARGET_WANTS += \
6185 systemd-update-utmp-runlevel.service
6186 RUNLEVEL4_TARGET_WANTS += \
6187 systemd-update-utmp-runlevel.service
6188 RUNLEVEL5_TARGET_WANTS += \
6189 systemd-update-utmp-runlevel.service
6192 SYSINIT_TARGET_WANTS += \
6193 systemd-update-utmp.service
6196 SYSINIT_TARGET_WANTS += \
6197 systemd-update-done.service
6199 LOCAL_FS_TARGET_WANTS += \
6200 systemd-remount-fs.service \
6203 MULTI_USER_TARGET_WANTS += \
6205 systemd-ask-password-wall.path
6207 SYSINIT_TARGET_WANTS += \
6208 dev-hugepages.mount \
6210 sys-kernel-config.mount \
6211 sys-kernel-debug.mount \
6212 sys-fs-fuse-connections.mount \
6213 systemd-sysctl.service \
6214 systemd-ask-password-console.path
6217 SYSTEM_UNIT_ALIASES += \
6218 poweroff.target runlevel0.target \
6219 rescue.target runlevel1.target \
6220 multi-user.target runlevel2.target \
6221 multi-user.target runlevel3.target \
6222 multi-user.target runlevel4.target \
6223 graphical.target runlevel5.target \
6224 reboot.target runlevel6.target
6227 SYSTEM_UNIT_ALIASES += \
6228 graphical.target default.target \
6229 reboot.target ctrl-alt-del.target \
6230 getty@.service autovt@.service
6232 USER_UNIT_ALIASES += \
6233 $(systemunitdir)/shutdown.target shutdown.target \
6234 $(systemunitdir)/sockets.target sockets.target \
6235 $(systemunitdir)/timers.target timers.target \
6236 $(systemunitdir)/paths.target paths.target \
6237 $(systemunitdir)/bluetooth.target bluetooth.target \
6238 $(systemunitdir)/printer.target printer.target \
6239 $(systemunitdir)/sound.target sound.target \
6240 $(systemunitdir)/smartcard.target smartcard.target
6243 USER_UNIT_ALIASES += \
6244 $(systemunitdir)/busnames.target busnames.target
6247 GENERAL_ALIASES += \
6248 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6249 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6250 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6251 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6255 $(systemunitdir)/runlevel1.target.wants \
6256 $(systemunitdir)/runlevel2.target.wants \
6257 $(systemunitdir)/runlevel3.target.wants \
6258 $(systemunitdir)/runlevel4.target.wants \
6259 $(systemunitdir)/runlevel5.target.wants
6263 $(prefix)/lib/modules-load.d \
6264 $(sysconfdir)/modules-load.d \
6265 $(prefix)/lib/systemd/network \
6266 $(sysconfdir)/systemd/network \
6267 $(prefix)/lib/sysctl.d \
6268 $(sysconfdir)/sysctl.d \
6269 $(prefix)/lib/kernel/install.d \
6270 $(sysconfdir)/kernel/install.d \
6271 $(systemshutdowndir) \
6273 $(systemgeneratordir) \
6274 $(usergeneratordir) \
6277 $(pkgsysconfdir)/system \
6278 $(pkgsysconfdir)/system/multi-user.target.wants \
6279 $(pkgsysconfdir)/system/getty.target.wants \
6280 $(pkgsysconfdir)/user \
6281 $(dbussessionservicedir) \
6282 $(sysconfdir)/xdg/systemd
6284 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6286 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6288 install-data-hook: $(INSTALL_DATA_HOOKS)
6290 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6292 clean-local: $(CLEAN_LOCAL_HOOKS)
6293 rm -rf $(abs_srcdir)/install-tree
6294 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6295 $(abs_srcdir)/hwdb/iab.txt
6297 DISTCHECK_CONFIGURE_FLAGS = \
6298 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6299 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6300 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6301 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6302 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6303 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6304 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6305 --with-rootprefix=$$dc_install_base \
6306 --disable-split-usr \
6308 --enable-compat-libs
6311 DISTCHECK_CONFIGURE_FLAGS += \
6312 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6313 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6315 DISTCHECK_CONFIGURE_FLAGS += \
6316 --with-sysvinit-path= \
6317 --with-sysvrcnd-path=
6321 DISTCHECK_CONFIGURE_FLAGS += \
6326 DISTCHECK_CONFIGURE_FLAGS += \
6331 # Require python when making dist
6333 .PHONY: dist-check-python
6336 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6340 dist-check-compat-libs:
6341 if !ENABLE_COMPAT_LIBS
6342 @echo "*** compat-libs must be enabled in order to make dist"
6346 dist: dist-check-python dist-check-compat-libs
6348 # check "broken" platforms limited toolchains for link breakage before we release
6351 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6355 ( cd $(top_srcdir)/hwdb && \
6356 wget -N http://www.linux-usb.org/usb.ids \
6357 http://pci-ids.ucw.cz/v2.2/pci.ids \
6358 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6359 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6362 .PHONY: kdbus-update
6364 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6365 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6369 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6371 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6373 upload: all check dist
6374 scp systemd-$(VERSION).tar.xz $(www_target)
6377 doc-sync: all destdir-sphinx
6378 gtkdoc-rebase --html-dir=docs/libudev/html --online
6379 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6380 gtkdoc-rebase --html-dir=docs/gudev/html --online
6381 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6382 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6383 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6387 scp man/*.html gardel:public/systemd-man/
6389 .PHONY: lennart-fedora
6391 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6393 .PHONY: install-tree
6395 rm -rf $(abs_srcdir)/install-tree
6396 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6397 tree $(abs_srcdir)/install-tree
6399 # Let's run all tests of the test suite, but under valgrind. Let's
6400 # exclude the one perl script we have in there
6401 .PHONY: valgrind-tests
6402 valgrind-tests: $(TESTS)
6403 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6404 if file $$f | grep -q shell; then \
6405 echo -e "$${x}Skipping non-binary $$f"; else \
6406 echo -e "$${x}Running $$f"; \
6407 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6412 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6414 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6415 $(AM_V_GEN)cat $^ > $@
6417 .PHONY: check-api-docs
6418 check-api-docs: exported man
6419 $(AM_V_GEN)for symbol in `cat exported` ; do \
6420 if test -f $(builddir)/man/$$symbol.html ; then \
6421 echo " Symbol $$symbol() is documented." ; \
6423 echo "‣ Symbol $$symbol() lacks documentation." ; \
6427 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6428 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6430 undefined defined: $(ALL_OBJECTS)
6431 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6432 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6433 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6439 .PHONY: check-api-unused
6440 check-api-unused: defined undefined exported
6441 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6443 .PHONY: check-includes
6444 check-includes: $(top_srcdir)/tools/check-includes.pl
6445 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6446 | xargs $(top_srcdir)/tools/check-includes.pl
6449 $(top_srcdir)/tools/check-includes.pl
6451 # Stupid test that everything purported to be exported really is
6452 define generate-sym-test
6453 $(AM_V_at)$(MKDIR_P) $(dir $@)
6454 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6455 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6456 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6457 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6458 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6459 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6460 $(AM_V_at)printf 'return 0; }\n' >> $@
6463 test-libsystemd-sym.c: \
6464 $(top_builddir)/src/libsystemd/libsystemd.sym \
6465 src/systemd/sd-journal.h \
6466 src/systemd/sd-daemon.h \
6467 src/systemd/sd-login.h \
6468 src/systemd/sd-bus.h \
6469 src/systemd/sd-utf8.h \
6470 src/systemd/sd-resolve.h \
6471 src/systemd/sd-path.h
6472 $(generate-sym-test)
6474 test-libudev-sym.c: \
6475 src/libudev/libudev.sym \
6477 $(generate-sym-test)
6479 test_libsystemd_sym_SOURCES = \
6480 test-libsystemd-sym.c
6481 test_libsystemd_sym_LDADD = \
6484 test_libudev_sym_SOURCES = \
6486 test_libudev_sym_CFLAGS = \
6488 -Wno-deprecated-declarations
6489 test_libudev_sym_LDADD = \
6493 $(test_libsystemd_sym_SOURCES) \
6494 $(test_libudev_sym_SOURCES)
6497 test-libsystemd-sym \
6502 cppcheck --enable=all -q $(top_srcdir)
6504 # Used to extract compile flags for YCM.
6509 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6512 tools/gdb-sd_dump_hashmaps.py