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 \
907 libsystemd_shared_la_SOURCES += \
908 src/shared/utmp-wtmp.c
911 nodist_libsystemd_shared_la_SOURCES = \
912 src/shared/errno-from-name.h \
913 src/shared/errno-to-name.h \
914 src/shared/af-from-name.h \
915 src/shared/af-to-name.h \
916 src/shared/arphrd-from-name.h \
917 src/shared/arphrd-to-name.h \
918 src/shared/cap-from-name.h \
919 src/shared/cap-to-name.h
921 libsystemd_shared_la_CFLAGS = \
927 libsystemd_shared_la_LIBADD = \
930 # ------------------------------------------------------------------------------
931 noinst_LTLIBRARIES += \
934 libsystemd_units_la_SOURCES = \
935 src/shared/install.c \
936 src/shared/install.h \
937 src/shared/install-printf.c \
938 src/shared/install-printf.h \
939 src/shared/path-lookup.c \
940 src/shared/path-lookup.h \
941 src/shared/specifier.c \
942 src/shared/specifier.h
944 # ------------------------------------------------------------------------------
945 noinst_LTLIBRARIES += \
948 libsystemd_label_la_SOURCES = \
949 src/shared/socket-label.c \
952 src/shared/selinux-util.c \
953 src/shared/selinux-util.h \
954 src/shared/mkdir-label.c \
955 src/shared/ask-password-api.c \
956 src/shared/ask-password-api.h \
957 src/shared/switch-root.h \
958 src/shared/switch-root.c \
959 src/shared/fileio-label.c \
960 src/shared/fileio-label.h \
961 src/shared/dev-setup.c \
962 src/shared/dev-setup.h \
963 src/shared/dropin.c \
964 src/shared/dropin.h \
965 src/shared/condition.c \
966 src/shared/condition.h \
967 src/shared/generator.h \
968 src/shared/generator.c
970 libsystemd_label_la_CFLAGS = \
974 libsystemd_label_la_LIBADD = \
977 # -----------------------------------------------------------------------------
980 dist_systemunit_DATA += \
981 units/ldconfig.service
983 SYSINIT_TARGET_WANTS += \
987 # ------------------------------------------------------------------------------
990 noinst_LTLIBRARIES += \
991 libsystemd-seccomp.la
993 libsystemd_seccomp_la_SOURCES = \
994 src/shared/seccomp-util.h \
995 src/shared/seccomp-util.c
997 libsystemd_seccomp_la_CFLAGS = \
1001 libsystemd_seccomp_la_LIBADD = \
1005 # ------------------------------------------------------------------------------
1006 noinst_LTLIBRARIES += \
1009 libsystemd_logs_la_SOURCES = \
1010 src/shared/logs-show.c \
1011 src/shared/logs-show.h
1013 # ------------------------------------------------------------------------------
1015 noinst_LTLIBRARIES += \
1018 libsystemd_acl_la_SOURCES = \
1019 src/shared/acl-util.c \
1020 src/shared/acl-util.h
1022 libsystemd_acl_la_CFLAGS = \
1026 libsystemd_acl_la_LIBADD = \
1030 # ------------------------------------------------------------------------------
1031 noinst_LTLIBRARIES += \
1034 libsystemd_core_la_SOURCES = \
1037 src/core/unit-printf.c \
1038 src/core/unit-printf.h \
1041 src/core/manager.c \
1042 src/core/manager.h \
1043 src/core/transaction.c \
1044 src/core/transaction.h \
1045 src/core/load-fragment.c \
1046 src/core/load-fragment.h \
1047 src/core/service.c \
1048 src/core/service.h \
1051 src/core/busname.c \
1052 src/core/busname.h \
1053 src/core/bus-endpoint.c \
1054 src/core/bus-endpoint.h \
1055 src/core/bus-policy.c \
1056 src/core/bus-policy.h \
1059 src/core/snapshot.c \
1060 src/core/snapshot.h \
1065 src/core/automount.c \
1066 src/core/automount.h \
1077 src/core/load-dropin.c \
1078 src/core/load-dropin.h \
1079 src/core/execute.c \
1080 src/core/execute.h \
1085 src/core/dbus-manager.c \
1086 src/core/dbus-manager.h \
1087 src/core/dbus-unit.c \
1088 src/core/dbus-unit.h \
1089 src/core/dbus-job.c \
1090 src/core/dbus-job.h \
1091 src/core/dbus-service.c \
1092 src/core/dbus-service.h \
1093 src/core/dbus-socket.c \
1094 src/core/dbus-socket.h \
1095 src/core/dbus-busname.c \
1096 src/core/dbus-busname.h \
1097 src/core/dbus-target.c \
1098 src/core/dbus-target.h \
1099 src/core/dbus-snapshot.c \
1100 src/core/dbus-snapshot.h \
1101 src/core/dbus-device.c \
1102 src/core/dbus-device.h \
1103 src/core/dbus-mount.c \
1104 src/core/dbus-mount.h \
1105 src/core/dbus-automount.c \
1106 src/core/dbus-automount.h \
1107 src/core/dbus-swap.c \
1108 src/core/dbus-swap.h \
1109 src/core/dbus-timer.c \
1110 src/core/dbus-timer.h \
1111 src/core/dbus-path.c \
1112 src/core/dbus-path.h \
1113 src/core/dbus-slice.c \
1114 src/core/dbus-slice.h \
1115 src/core/dbus-scope.c \
1116 src/core/dbus-scope.h \
1117 src/core/dbus-execute.c \
1118 src/core/dbus-execute.h \
1119 src/core/dbus-kill.c \
1120 src/core/dbus-kill.h \
1121 src/core/dbus-cgroup.c \
1122 src/core/dbus-cgroup.h \
1125 src/core/selinux-access.c \
1126 src/core/selinux-access.h \
1127 src/core/selinux-setup.c \
1128 src/core/selinux-setup.h \
1129 src/core/smack-setup.c \
1130 src/core/smack-setup.h \
1131 src/core/ima-setup.c \
1132 src/core/ima-setup.h \
1133 src/core/locale-setup.h \
1134 src/core/locale-setup.c \
1135 src/core/hostname-setup.c \
1136 src/core/hostname-setup.h \
1137 src/core/machine-id-setup.c \
1138 src/core/machine-id-setup.h \
1139 src/core/mount-setup.c \
1140 src/core/mount-setup.h \
1141 src/core/kmod-setup.c \
1142 src/core/kmod-setup.h \
1143 src/core/loopback-setup.h \
1144 src/core/loopback-setup.c \
1145 src/core/namespace.c \
1146 src/core/namespace.h \
1147 src/core/killall.h \
1148 src/core/killall.c \
1149 src/core/audit-fd.c \
1150 src/core/audit-fd.h \
1151 src/core/show-status.c \
1152 src/core/show-status.h \
1153 src/core/failure-action.c \
1154 src/core/failure-action.h
1156 nodist_libsystemd_core_la_SOURCES = \
1157 src/core/load-fragment-gperf.c \
1158 src/core/load-fragment-gperf-nulstr.c
1160 libsystemd_core_la_CFLAGS = \
1165 $(APPARMOR_CFLAGS) \
1170 libsystemd_core_la_LIBADD = \
1171 libsystemd-units.la \
1172 libsystemd-label.la \
1173 libudev-internal.la \
1174 libsystemd-shared.la \
1175 libsystemd-internal.la \
1184 libsystemd_core_la_LIBADD += \
1185 libsystemd-seccomp.la
1188 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1189 $(AM_V_at)$(MKDIR_P) $(dir $@)
1190 $(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 ";" }' < $< > $@
1193 src/core/load-fragment-gperf.gperf.m4
1196 src/core/load-fragment-gperf.gperf \
1197 src/core/load-fragment-gperf.c \
1198 src/core/load-fragment-gperf-nulstr.c \
1199 src/shared/errno-list.txt \
1200 src/shared/errno-from-name.gperf \
1201 src/shared/af-list.txt \
1202 src/shared/af-from-name.gperf \
1203 src/shared/arphrd-list.txt \
1204 src/shared/arphrd-from-name.gperf \
1205 src/shared/cap-list.txt \
1206 src/shared/cap-from-name.gperf \
1207 src/resolve/dns_type-list.txt \
1208 src/resolve/dns_type-from-name.gperf
1211 src/shared/errno-from-name.h \
1212 src/shared/errno-to-name.h \
1213 src/shared/af-from-name.h \
1214 src/shared/af-to-name.h \
1215 src/shared/arphrd-from-name.h \
1216 src/shared/arphrd-to-name.h \
1217 src/shared/cap-from-name.h \
1218 src/shared/cap-to-name.h \
1219 src/resolve/dns_type-from-name.h \
1220 src/resolve/dns_type-to-name.h
1222 %-from-name.gperf: %-list.txt
1223 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1225 %-from-name.h: %-from-name.gperf
1226 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1229 src/shared/errno-list.txt:
1230 $(AM_V_at)$(MKDIR_P) $(dir $@)
1231 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1233 src/shared/errno-to-name.h: src/shared/errno-list.txt
1234 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1237 src/shared/af-list.txt:
1238 $(AM_V_at)$(MKDIR_P) $(dir $@)
1239 $(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; }' >$@
1241 src/shared/af-to-name.h: src/shared/af-list.txt
1242 $(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 "};"}' <$< >$@
1245 src/shared/arphrd-list.txt:
1246 $(AM_V_at)$(MKDIR_P) $(dir $@)
1247 $(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_//' >$@
1249 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1250 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1252 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1253 $(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 }' <$< >$@
1256 src/shared/cap-list.txt:
1257 $(AM_V_at)$(MKDIR_P) $(dir $@)
1258 $(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 >$@
1260 src/shared/cap-to-name.h: src/shared/cap-list.txt
1261 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1263 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1264 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1266 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1267 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1270 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1271 $(AM_V_at)$(MKDIR_P) $(dir $@)
1272 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1274 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1275 $(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" }' <$< >$@
1277 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1278 $(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 }' <$< >$@
1280 # ------------------------------------------------------------------------------
1289 libsystemd-core.la \
1292 dist_pkgsysconf_DATA += \
1293 src/core/system.conf \
1296 dist_dbuspolicy_DATA += \
1297 src/core/org.freedesktop.systemd1.conf
1299 dist_dbussystemservice_DATA += \
1300 src/core/org.freedesktop.systemd1.service
1302 polkitpolicy_in_in_files += \
1303 src/core/org.freedesktop.systemd1.policy.in.in
1305 pkgconfiglib_DATA += \
1308 nodist_rpmmacros_DATA = \
1309 src/core/macros.systemd
1312 src/core/systemd.pc.in \
1313 src/core/macros.systemd.in
1316 src/core/macros.systemd \
1317 src/core/org.freedesktop.systemd1.policy.in
1319 # ------------------------------------------------------------------------------
1363 test-strip-tab-ansi \
1396 test/daughter.service \
1401 test/grandchild.service \
1403 test/hello-after-sleep.target \
1404 test/hello.service \
1406 test/parent-deep.slice \
1409 test/sched_idle_bad.service \
1410 test/sched_idle_ok.service \
1411 test/sched_rr_bad.service \
1412 test/sched_rr_change.service \
1413 test/sched_rr_ok.service \
1414 test/shutdown.target \
1415 test/sleep.service \
1416 test/sockets.target \
1418 test/sysinit.target \
1419 test/testsuite.target \
1420 test/timers.target \
1421 test/unstoppable.service \
1422 test/path-changed.service \
1423 test/path-directorynotempty.service \
1424 test/path-existsglob.service \
1425 test/path-exists.service \
1426 test/path-makedirectory.service \
1427 test/path-modified.service \
1428 test/path-mycustomunit.service \
1429 test/path-service.service \
1430 test/path-changed.path \
1431 test/path-directorynotempty.path \
1432 test/path-existsglob.path \
1433 test/path-exists.path \
1434 test/path-makedirectory.path \
1435 test/path-modified.path \
1436 test/path-unit.path \
1437 test/exec-environment-empty.service \
1438 test/exec-environment-multiple.service \
1439 test/exec-environment.service \
1440 test/exec-group.service \
1441 test/exec-ignoresigpipe-no.service \
1442 test/exec-ignoresigpipe-yes.service \
1443 test/exec-personality-x86-64.service \
1444 test/exec-personality-x86.service \
1445 test/exec-privatedevices-no.service \
1446 test/exec-privatedevices-yes.service \
1447 test/exec-privatetmp-no.service \
1448 test/exec-privatetmp-yes.service \
1449 test/exec-systemcallerrornumber.service \
1450 test/exec-systemcallfilter-failing2.service \
1451 test/exec-systemcallfilter-failing.service \
1452 test/exec-systemcallfilter-not-failing2.service \
1453 test/exec-systemcallfilter-not-failing.service \
1454 test/exec-user.service \
1455 test/exec-workingdirectory.service \
1456 test/exec-umask-0177.service \
1457 test/exec-umask-default.service \
1458 test/bus-policy/hello.conf \
1459 test/bus-policy/methods.conf \
1460 test/bus-policy/ownerships.conf \
1461 test/bus-policy/signals.conf \
1462 test/bus-policy/check-own-rules.conf \
1463 test/bus-policy/many-rules.conf \
1464 test/bus-policy/test.conf
1468 src/test/test-helper.h
1470 test_device_nodes_SOURCES = \
1471 src/test/test-device-nodes.c
1473 test_device_nodes_LDADD = \
1474 libsystemd-shared.la
1476 test_engine_SOURCES = \
1477 src/test/test-engine.c
1479 test_engine_CFLAGS = \
1483 test_engine_LDADD = \
1484 libsystemd-core.la \
1487 test_job_type_SOURCES = \
1488 src/test/test-job-type.c
1490 test_job_type_CFLAGS = \
1494 test_job_type_LDADD = \
1495 libsystemd-core.la \
1508 test_loopback_SOURCES = \
1509 src/test/test-loopback.c
1511 test_loopback_LDADD = \
1514 test_hostname_SOURCES = \
1515 src/test/test-hostname.c
1517 test_hostname_LDADD = \
1524 test_boot_timestamp_SOURCES = \
1525 src/test/test-boot-timestamps.c
1527 test_boot_timestamp_LDADD = \
1528 libsystemd-shared.la
1531 test_unit_name_SOURCES = \
1532 src/test/test-unit-name.c
1534 test_unit_name_CFLAGS = \
1538 test_unit_name_LDADD = \
1539 libsystemd-core.la \
1542 test_unit_file_SOURCES = \
1543 src/test/test-unit-file.c
1545 test_unit_file_CFLAGS = \
1549 test_unit_file_LDADD = \
1550 libsystemd-core.la \
1553 test_utf8_SOURCES = \
1554 src/test/test-utf8.c
1557 libsystemd-shared.la
1559 test_capability_SOURCES = \
1560 src/test/test-capability.c
1562 test_capability_LDADD = \
1563 libsystemd-shared.la
1565 test_async_SOURCES = \
1566 src/test/test-async.c
1568 test_async_LDADD = \
1569 libsystemd-shared.la
1571 test_locale_util_SOURCES = \
1572 src/test/test-locale-util.c
1574 test_locale_util_LDADD = \
1575 libsystemd-shared.la
1577 test_copy_SOURCES = \
1578 src/test/test-copy.c
1581 libsystemd-shared.la
1583 test_condition_SOURCES = \
1584 src/test/test-condition.c
1586 test_condition_LDADD = \
1587 libsystemd-label.la \
1588 libsystemd-internal.la \
1589 libsystemd-shared.la
1591 test_fdset_SOURCES = \
1592 src/test/test-fdset.c
1594 test_fdset_LDADD = \
1595 libsystemd-shared.la \
1596 libsystemd-internal.la
1598 test_ratelimit_SOURCES = \
1599 src/test/test-ratelimit.c
1601 test_ratelimit_LDADD = \
1602 libsystemd-shared.la
1604 test_util_SOURCES = \
1605 src/test/test-util.c
1609 libsystemd-shared.la
1611 test_uid_range_SOURCES = \
1612 src/test/test-uid-range.c
1614 test_uid_range_LDADD = \
1615 libsystemd-shared.la
1617 test_cap_list_SOURCES = \
1618 src/test/test-cap-list.c
1620 test_cap_list_LDADD = \
1621 libsystemd-shared.la
1623 test_socket_util_SOURCES = \
1624 src/test/test-socket-util.c
1626 test_socket_util_LDADD = \
1627 libsystemd-shared.la
1629 test_ring_SOURCES = \
1630 src/test/test-ring.c
1633 libsystemd-shared.la
1635 test_barrier_SOURCES = \
1636 src/test/test-barrier.c
1638 test_barrier_LDADD = \
1639 libsystemd-shared.la
1641 test_pty_SOURCES = \
1647 test_tmpfiles_SOURCES = \
1648 src/test/test-tmpfiles.c
1650 test_tmpfiles_LDADD = \
1651 libsystemd-shared.la
1653 test_namespace_SOURCES = \
1654 src/test/test-namespace.c
1656 test_namespace_LDADD = \
1660 src/test/test-hashmap-ordered.c
1663 src/test/test-hashmap-ordered.c
1665 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1666 $(AM_V_at)$(MKDIR_P) $(dir $@)
1667 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1668 { if (!match($$0, "^#include")) \
1669 gsub(/hashmap/, "ordered_hashmap"); \
1670 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1671 gsub(/Hashmap/, "OrderedHashmap"); \
1674 nodist_test_hashmap_SOURCES = \
1675 src/test/test-hashmap-ordered.c
1677 test_hashmap_SOURCES = \
1678 src/test/test-hashmap.c \
1679 src/test/test-hashmap-plain.c
1681 test_hashmap_LDADD = \
1682 libsystemd-shared.la
1684 test_set_SOURCES = \
1688 libsystemd-shared.la
1690 test_xml_SOURCES = \
1694 libsystemd-shared.la
1696 test_json_SOURCES = \
1697 src/test/test-json.c
1700 libsystemd-shared.la \
1703 test_list_SOURCES = \
1704 src/test/test-list.c
1707 libsystemd-shared.la
1709 test_unaligned_LDADD = \
1710 libsystemd-shared.la
1712 test_unaligned_SOURCES = \
1713 src/test/test-unaligned.c
1715 test_tables_SOURCES = \
1716 src/test/test-tables.c \
1717 src/shared/test-tables.h \
1718 src/bus-proxyd/bus-xml-policy.c \
1719 src/bus-proxyd/bus-xml-policy.h \
1720 src/journal/journald-server.c \
1721 src/journal/journald-server.h
1723 test_tables_CPPFLAGS = \
1725 -I$(top_srcdir)/src/bus-proxyd
1727 test_tables_CFLAGS = \
1731 test_tables_LDADD = \
1732 libsystemd-logs.la \
1733 libsystemd-journal-internal.la \
1734 libsystemd-journal-core.la \
1735 libsystemd-core.la \
1739 test_prioq_SOURCES = \
1740 src/test/test-prioq.c
1742 test_prioq_LDADD = \
1743 libsystemd-shared.la
1745 test_fileio_SOURCES = \
1746 src/test/test-fileio.c
1748 test_fileio_LDADD = \
1749 libsystemd-shared.la
1751 test_time_SOURCES = \
1752 src/test/test-time.c
1755 libsystemd-shared.la
1757 test_architecture_SOURCES = \
1758 src/test/test-architecture.c
1760 test_architecture_LDADD = \
1761 libsystemd-shared.la
1763 test_log_SOURCES = \
1767 libsystemd-shared.la
1769 test_ipcrm_SOURCES = \
1770 src/test/test-ipcrm.c
1772 test_ipcrm_LDADD = \
1773 libsystemd-shared.la \
1776 test_btrfs_SOURCES = \
1777 src/test/test-btrfs.c
1779 test_btrfs_LDADD = \
1780 libsystemd-shared.la
1782 test_rtnl_manual_SOURCES = \
1783 src/test/test-rtnl-manual.c
1785 test_rtnl_manual_CFLAGS = \
1789 test_rtnl_manual_LDADD = \
1790 libsystemd-internal.la \
1791 libsystemd-shared.la \
1794 test_ellipsize_SOURCES = \
1795 src/test/test-ellipsize.c
1797 test_ellipsize_LDADD = \
1798 libsystemd-shared.la
1800 test_date_SOURCES = \
1801 src/test/test-date.c
1804 libsystemd-shared.la
1806 test_sleep_SOURCES = \
1807 src/test/test-sleep.c
1809 test_sleep_LDADD = \
1812 test_replace_var_SOURCES = \
1813 src/test/test-replace-var.c
1815 test_replace_var_LDADD = \
1816 libsystemd-shared.la
1818 test_calendarspec_SOURCES = \
1819 src/test/test-calendarspec.c
1821 test_calendarspec_LDADD = \
1822 libsystemd-shared.la
1824 test_strip_tab_ansi_SOURCES = \
1825 src/test/test-strip-tab-ansi.c
1827 test_strip_tab_ansi_LDADD = \
1828 libsystemd-shared.la
1830 test_daemon_SOURCES = \
1831 src/test/test-daemon.c
1833 test_daemon_LDADD = \
1834 libsystemd-internal.la \
1835 libsystemd-shared.la
1837 test_cgroup_SOURCES = \
1838 src/test/test-cgroup.c
1840 test_cgroup_LDADD = \
1841 libsystemd-label.la \
1842 libsystemd-shared.la \
1843 libsystemd-internal.la
1845 test_cgroup_mask_SOURCES = \
1846 src/test/test-cgroup-mask.c
1848 test_cgroup_mask_CPPFLAGS = \
1851 test_cgroup_mask_CFLAGS = \
1855 test_cgroup_mask_LDADD = \
1856 libsystemd-core.la \
1859 test_cgroup_util_SOURCES = \
1860 src/test/test-cgroup-util.c
1862 test_cgroup_util_LDADD = \
1863 libsystemd-label.la \
1864 libsystemd-internal.la \
1865 libsystemd-shared.la
1867 test_env_replace_SOURCES = \
1868 src/test/test-env-replace.c
1870 test_env_replace_LDADD = \
1871 libsystemd-shared.la
1873 test_strbuf_SOURCES = \
1874 src/test/test-strbuf.c
1876 test_strbuf_LDADD = \
1877 libsystemd-shared.la
1879 test_strv_SOURCES = \
1880 src/test/test-strv.c
1883 libsystemd-units.la \
1884 libsystemd-internal.la \
1885 libsystemd-shared.la
1887 test_path_util_SOURCES = \
1888 src/test/test-path-util.c
1890 test_path_util_LDADD = \
1891 libsystemd-shared.la
1893 test_path_SOURCES = \
1894 src/test/test-path.c
1896 test_path_CFLAGS = \
1902 test_execute_SOURCES = \
1903 src/test/test-execute.c
1905 test_execute_CFLAGS = \
1908 test_execute_LDADD = \
1911 test_strxcpyx_SOURCES = \
1912 src/test/test-strxcpyx.c
1914 test_strxcpyx_LDADD = \
1915 libsystemd-shared.la
1917 test_install_SOURCES = \
1918 src/test/test-install.c
1920 test_install_LDADD = \
1921 libsystemd-units.la \
1922 libsystemd-label.la \
1923 libsystemd-shared.la \
1924 libsystemd-internal.la
1926 test_watchdog_SOURCES = \
1927 src/test/test-watchdog.c
1929 test_watchdog_LDADD = \
1930 libsystemd-shared.la
1932 test_sched_prio_SOURCES = \
1933 src/test/test-sched-prio.c
1935 test_sched_prio_CPPFLAGS = \
1938 test_sched_prio_CFLAGS = \
1942 test_sched_prio_LDADD = \
1943 libsystemd-core.la \
1946 test_conf_files_SOURCES = \
1947 src/test/test-conf-files.c
1949 test_conf_files_LDADD = \
1950 libsystemd-shared.la
1952 test_bus_policy_SOURCES = \
1953 src/bus-proxyd/test-bus-xml-policy.c \
1954 src/bus-proxyd/bus-xml-policy.c \
1955 src/bus-proxyd/bus-xml-policy.h
1957 test_bus_policy_LDADD = \
1958 libsystemd-internal.la \
1959 libsystemd-shared.la
1961 # ------------------------------------------------------------------------------
1962 ## .PHONY so it always rebuilds it
1963 .PHONY: coverage lcov-run lcov-report coverage-sync
1965 # run lcov from scratch, always
1970 coverage_dir = coverage
1971 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1974 # reset run coverage tests
1976 @rm -rf $(coverage_dir)
1977 lcov $(coverage_opts) --zerocounters
1980 # generate report based on current coverage data
1982 $(MKDIR_P) $(coverage_dir)
1983 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1984 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1985 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1986 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1987 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1989 # lcov doesn't work properly with vpath builds, make sure that bad
1990 # output is not uploaded by mistake.
1991 coverage-sync: coverage
1992 test "$(builddir)" = "$(srcdir)"
1993 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1996 lcov-run lcov-report:
1997 echo "Need to reconfigure with --enable-coverage"
2000 # ------------------------------------------------------------------------------
2001 systemd_analyze_SOURCES = \
2002 src/analyze/analyze.c \
2003 src/analyze/analyze-verify.c \
2004 src/analyze/analyze-verify.h
2006 systemd_verify_CFLAGS = \
2010 systemd_analyze_LDADD = \
2011 libsystemd-core.la \
2012 libsystemd-internal.la \
2013 libsystemd-shared.la \
2016 # ------------------------------------------------------------------------------
2017 systemd_initctl_SOURCES = \
2018 src/initctl/initctl.c
2020 systemd_initctl_LDADD = \
2021 libsystemd-internal.la \
2022 libsystemd-shared.la
2024 # ------------------------------------------------------------------------------
2025 systemd_update_utmp_SOURCES = \
2026 src/update-utmp/update-utmp.c
2028 systemd_update_utmp_CFLAGS = \
2032 systemd_update_utmp_LDADD = \
2033 libsystemd-internal.la \
2034 libsystemd-shared.la \
2037 # ------------------------------------------------------------------------------
2038 systemd_update_done_SOURCES = \
2039 src/update-done/update-done.c
2041 systemd_update_done_LDADD = \
2042 libsystemd-internal.la \
2043 libsystemd-label.la \
2044 libsystemd-shared.la
2046 # ------------------------------------------------------------------------------
2047 systemd_shutdownd_SOURCES = \
2048 src/shutdownd/shutdownd.c
2050 systemd_shutdownd_LDADD = \
2051 libsystemd-label.la \
2052 libsystemd-internal.la \
2053 libsystemd-shared.la
2056 src/systemd/sd-shutdown.h
2058 # ------------------------------------------------------------------------------
2059 systemd_shutdown_SOURCES = \
2062 src/core/shutdown.c \
2063 src/core/mount-setup.c \
2064 src/core/mount-setup.h \
2065 src/core/killall.h \
2068 systemd_shutdown_LDADD = \
2069 libsystemd-label.la \
2070 libudev-internal.la \
2071 libsystemd-shared.la
2073 # ------------------------------------------------------------------------------
2075 systemd_modules_load_SOURCES = \
2076 src/modules-load/modules-load.c
2078 systemd_modules_load_CFLAGS = \
2082 systemd_modules_load_LDADD = \
2083 libsystemd-shared.la \
2086 rootlibexec_PROGRAMS += \
2087 systemd-modules-load
2089 nodist_systemunit_DATA += \
2090 units/systemd-modules-load.service
2092 SYSINIT_TARGET_WANTS += \
2093 systemd-modules-load.service
2096 nodist_systemunit_DATA += \
2097 units/kmod-static-nodes.service
2099 SYSINIT_TARGET_WANTS += \
2100 kmod-static-nodes.service
2105 units/systemd-modules-load.service.in \
2106 units/kmod-static-nodes.service.in
2108 # ------------------------------------------------------------------------------
2110 systemd_tmpfiles_SOURCES = \
2111 src/tmpfiles/tmpfiles.c
2113 systemd_tmpfiles_LDADD = \
2114 libsystemd-units.la \
2115 libsystemd-label.la \
2116 libsystemd-internal.la \
2117 libsystemd-shared.la
2119 rootbin_PROGRAMS += \
2122 dist_systemunit_DATA += \
2123 units/systemd-tmpfiles-clean.timer
2125 nodist_systemunit_DATA += \
2126 units/systemd-tmpfiles-setup-dev.service \
2127 units/systemd-tmpfiles-setup.service \
2128 units/systemd-tmpfiles-clean.service
2130 nodist_tmpfiles_DATA = \
2133 dist_tmpfiles_DATA = \
2134 tmpfiles.d/systemd.conf \
2135 tmpfiles.d/systemd-nologin.conf \
2136 tmpfiles.d/tmp.conf \
2137 tmpfiles.d/x11.conf \
2141 dist_tmpfiles_DATA += \
2142 tmpfiles.d/legacy.conf
2145 SYSINIT_TARGET_WANTS += \
2146 systemd-tmpfiles-setup-dev.service \
2147 systemd-tmpfiles-setup.service
2149 dist_zshcompletion_DATA += \
2150 shell-completion/zsh/_systemd-tmpfiles
2152 TIMERS_TARGET_WANTS += \
2153 systemd-tmpfiles-clean.timer
2157 $(sysconfdir)/tmpfiles.d
2161 tmpfiles.d/etc.conf.m4 \
2162 units/systemd-tmpfiles-setup-dev.service.in \
2163 units/systemd-tmpfiles-setup.service.in \
2164 units/systemd-tmpfiles-clean.service.in
2169 # ------------------------------------------------------------------------------
2171 systemd_sysusers_SOURCES = \
2172 src/sysusers/sysusers.c
2174 systemd_sysusers_LDADD = \
2175 libsystemd-units.la \
2176 libsystemd-label.la \
2177 libsystemd-internal.la \
2178 libsystemd-shared.la
2180 rootbin_PROGRAMS += \
2183 nodist_systemunit_DATA += \
2184 units/systemd-sysusers.service
2186 SYSINIT_TARGET_WANTS += \
2187 systemd-sysusers.service
2189 dist_sysusers_DATA = \
2190 sysusers.d/systemd.conf
2192 nodist_sysusers_DATA = \
2193 sysusers.d/basic.conf
2196 units/systemd-sysusers.service.in \
2197 sysusers.d/basic.conf.in
2200 sysusers.d/basic.conf
2206 # ------------------------------------------------------------------------------
2207 dist_factory_etc_DATA = \
2208 factory/etc/nsswitch.conf
2211 dist_factory_pam_DATA = \
2212 factory/etc/pam.d/system-auth \
2213 factory/etc/pam.d/other
2216 # ------------------------------------------------------------------------------
2218 systemd_firstboot_SOURCES = \
2219 src/firstboot/firstboot.c
2221 systemd_firstboot_LDADD = \
2222 libsystemd-units.la \
2223 libsystemd-label.la \
2224 libsystemd-internal.la \
2225 libsystemd-shared.la \
2228 rootbin_PROGRAMS += \
2231 nodist_systemunit_DATA += \
2232 units/systemd-firstboot.service
2235 units/systemd-firstboot.service.in
2237 SYSINIT_TARGET_WANTS += \
2238 systemd-firstboot.service
2241 # ------------------------------------------------------------------------------
2242 systemd_machine_id_setup_SOURCES = \
2243 src/machine-id-setup/machine-id-setup-main.c \
2244 src/core/machine-id-setup.c \
2245 src/core/machine-id-setup.h
2247 systemd_machine_id_setup_LDADD = \
2248 libsystemd-label.la \
2249 libsystemd-internal.la \
2250 libsystemd-shared.la
2252 # ------------------------------------------------------------------------------
2253 systemd_sysctl_SOURCES = \
2256 systemd_sysctl_LDADD = \
2257 libsystemd-shared.la
2259 # ------------------------------------------------------------------------------
2260 systemd_sleep_SOURCES = \
2263 systemd_sleep_LDADD = \
2264 libsystemd-shared.la
2266 # ------------------------------------------------------------------------------
2267 systemd_fsck_SOURCES = \
2270 systemd_fsck_LDADD = \
2271 libsystemd-internal.la \
2272 libudev-internal.la \
2273 libsystemd-shared.la
2275 # ------------------------------------------------------------------------------
2276 systemd_machine_id_commit_SOURCES = \
2277 src/machine-id-commit/machine-id-commit.c \
2278 src/core/machine-id-setup.c \
2279 src/core/machine-id-setup.h
2281 systemd_machine_id_commit_LDADD = \
2282 libsystemd-label.la \
2283 libsystemd-internal.la \
2284 libsystemd-shared.la
2286 SYSINIT_TARGET_WANTS += \
2287 systemd-machine-id-commit.service
2289 # ------------------------------------------------------------------------------
2290 systemd_ac_power_SOURCES = \
2291 src/ac-power/ac-power.c
2293 systemd_ac_power_LDADD = \
2294 libudev-internal.la \
2295 libsystemd-shared.la
2297 # ------------------------------------------------------------------------------
2298 systemd_detect_virt_SOURCES = \
2299 src/detect-virt/detect-virt.c
2301 systemd_detect_virt_LDADD = \
2302 libsystemd-shared.la
2304 INSTALL_EXEC_HOOKS += \
2305 systemd-detect-virt-install-hook
2307 # ------------------------------------------------------------------------------
2308 systemd_delta_SOURCES = \
2311 systemd_delta_LDADD = \
2312 libsystemd-shared.la
2314 # ------------------------------------------------------------------------------
2315 systemd_getty_generator_SOURCES = \
2316 src/getty-generator/getty-generator.c
2318 systemd_getty_generator_LDADD = \
2319 libsystemd-label.la \
2320 libsystemd-shared.la
2322 # ------------------------------------------------------------------------------
2323 systemd_debug_generator_SOURCES = \
2324 src/debug-generator/debug-generator.c
2326 systemd_debug_generator_LDADD = \
2327 libsystemd-label.la \
2328 libsystemd-shared.la
2330 # ------------------------------------------------------------------------------
2331 systemd_fstab_generator_SOURCES = \
2332 src/fstab-generator/fstab-generator.c \
2333 src/core/mount-setup.c
2335 systemd_fstab_generator_LDADD = \
2336 libsystemd-label.la \
2337 libsystemd-shared.la
2339 # ------------------------------------------------------------------------------
2340 systemd_system_update_generator_SOURCES = \
2341 src/system-update-generator/system-update-generator.c
2343 systemd_system_update_generator_LDADD = \
2344 libsystemd-label.la \
2345 libsystemd-shared.la
2347 # ------------------------------------------------------------------------------
2349 systemgenerator_PROGRAMS += \
2350 systemd-hibernate-resume-generator
2352 rootlibexec_PROGRAMS += \
2353 systemd-hibernate-resume
2355 systemd_hibernate_resume_SOURCES = \
2356 src/hibernate-resume/hibernate-resume.c
2358 systemd_hibernate_resume_LDADD = \
2359 libsystemd-internal.la \
2360 libsystemd-shared.la
2362 systemd_hibernate_resume_generator_SOURCES = \
2363 src/hibernate-resume/hibernate-resume-generator.c
2365 systemd_hibernate_resume_generator_LDADD = \
2366 libsystemd-label.la \
2367 libsystemd-shared.la
2370 units/systemd-hibernate.service.in \
2371 units/systemd-hibernate-resume@.service.in \
2372 units/systemd-hybrid-sleep.service.in
2374 dist_systemunit_DATA += \
2375 units/hibernate.target \
2376 units/hybrid-sleep.target
2378 nodist_systemunit_DATA += \
2379 units/systemd-hibernate.service \
2380 units/systemd-hibernate-resume@.service \
2381 units/systemd-hybrid-sleep.service
2384 # ------------------------------------------------------------------------------
2386 systemgenerator_PROGRAMS += \
2387 systemd-efi-boot-generator
2389 systemd_efi_boot_generator_SOURCES = \
2390 src/efi-boot-generator/efi-boot-generator.c
2392 systemd_efi_boot_generator_LDADD = \
2393 libsystemd-label.la \
2394 libsystemd-shared.la
2396 # ------------------------------------------------------------------------------
2399 src/boot/boot-loader.h \
2400 src/boot/bootctl.c \
2401 src/boot/boot-loader.c \
2405 libsystemd-shared.la \
2406 libsystemd-internal.la
2411 dist_bashcompletion_DATA += \
2412 shell-completion/bash/bootctl
2414 dist_zshcompletion_DATA += \
2415 shell-completion/zsh/_bootctl
2419 # ------------------------------------------------------------------------------
2421 systemgenerator_PROGRAMS += \
2422 systemd-gpt-auto-generator
2424 systemd_gpt_auto_generator_SOURCES = \
2425 src/gpt-auto-generator/gpt-auto-generator.c \
2426 src/shared/blkid-util.h
2428 systemd_gpt_auto_generator_LDADD = \
2429 libsystemd-label.la \
2430 libsystemd-internal.la \
2431 libudev-internal.la \
2432 libsystemd-shared.la \
2435 systemd_gpt_auto_generator_CFLAGS = \
2440 # ------------------------------------------------------------------------------
2442 systemgenerator_PROGRAMS += \
2443 systemd-dbus1-generator
2445 systemd_dbus1_generator_SOURCES = \
2446 src/dbus1-generator/dbus1-generator.c
2448 systemd_dbus1_generator_LDADD = \
2449 libsystemd-label.la \
2450 libsystemd-internal.la \
2451 libsystemd-shared.la
2453 dbus1-generator-install-hook:
2454 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2455 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2456 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2458 dbus1-generator-uninstall-hook:
2459 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2461 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2462 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2465 # ------------------------------------------------------------------------------
2466 systemd_sysv_generator_SOURCES = \
2467 src/sysv-generator/sysv-generator.c
2469 systemd_sysv_generator_LDADD = \
2470 libsystemd-core.la \
2471 libsystemd-label.la \
2472 libsystemd-shared.la
2474 # ------------------------------------------------------------------------------
2475 systemd_rc_local_generator_SOURCES = \
2476 src/rc-local-generator/rc-local-generator.c
2478 systemd_rc_local_generator_LDADD = \
2479 libsystemd-label.la \
2480 libsystemd-shared.la
2482 # ------------------------------------------------------------------------------
2483 systemd_remount_fs_SOURCES = \
2484 src/remount-fs/remount-fs.c \
2485 src/core/mount-setup.c \
2486 src/core/mount-setup.h
2488 systemd_remount_fs_LDADD = \
2489 libsystemd-label.la \
2490 libsystemd-shared.la
2492 # ------------------------------------------------------------------------------
2493 systemd_cgroups_agent_SOURCES = \
2494 src/cgroups-agent/cgroups-agent.c
2496 systemd_cgroups_agent_LDADD = \
2497 libsystemd-internal.la \
2498 libsystemd-shared.la
2500 # ------------------------------------------------------------------------------
2501 systemd_escape_SOURCES = \
2504 systemd_escape_LDADD = \
2505 libsystemd-shared.la
2507 # -----------------------------------------------------------------------------
2508 systemctl_SOURCES = \
2509 src/systemctl/systemctl.c
2512 libsystemd-units.la \
2513 libsystemd-label.la \
2514 libsystemd-internal.la \
2515 libsystemd-logs.la \
2516 libsystemd-journal-internal.la \
2517 libsystemd-shared.la
2519 # ------------------------------------------------------------------------------
2520 systemd_notify_SOURCES = \
2523 systemd_notify_LDADD = \
2524 libsystemd-internal.la \
2525 libsystemd-shared.la
2527 # ------------------------------------------------------------------------------
2528 systemd_path_SOURCES = \
2531 systemd_path_LDADD = \
2532 libsystemd-internal.la \
2533 libsystemd-shared.la
2535 # ------------------------------------------------------------------------------
2536 systemd_ask_password_SOURCES = \
2537 src/ask-password/ask-password.c
2539 systemd_ask_password_LDADD = \
2540 libsystemd-label.la \
2541 libsystemd-shared.la
2543 # ------------------------------------------------------------------------------
2544 systemd_reply_password_SOURCES = \
2545 src/reply-password/reply-password.c
2547 systemd_reply_password_LDADD = \
2548 libsystemd-shared.la
2550 # ------------------------------------------------------------------------------
2551 systemd_cgls_SOURCES = \
2554 systemd_cgls_LDADD = \
2555 libsystemd-internal.la \
2556 libsystemd-shared.la
2558 # ------------------------------------------------------------------------------
2559 systemd_cgtop_SOURCES = \
2562 systemd_cgtop_LDADD = \
2563 libsystemd-shared.la
2565 # ------------------------------------------------------------------------------
2566 systemd_nspawn_SOURCES = \
2567 src/nspawn/nspawn.c \
2568 src/core/mount-setup.c \
2569 src/core/mount-setup.h \
2570 src/core/loopback-setup.c \
2571 src/core/loopback-setup.h
2573 systemd_nspawn_CFLAGS = \
2578 systemd_nspawn_LDADD = \
2579 libsystemd-label.la \
2580 libsystemd-internal.la \
2581 libudev-internal.la \
2582 libsystemd-shared.la \
2586 systemd_nspawn_LDADD += \
2587 libsystemd-seccomp.la \
2591 # ------------------------------------------------------------------------------
2592 systemd_run_SOURCES = \
2595 systemd_run_LDADD = \
2596 libsystemd-label.la \
2597 libsystemd-internal.la \
2598 libsystemd-shared.la
2600 # ------------------------------------------------------------------------------
2601 systemd_bus_proxyd_SOURCES = \
2602 src/bus-proxyd/bus-proxyd.c \
2603 src/bus-proxyd/bus-xml-policy.c \
2604 src/bus-proxyd/bus-xml-policy.h
2606 systemd_bus_proxyd_LDADD = \
2607 libsystemd-internal.la \
2608 libsystemd-shared.la
2610 bus-proxyd-install-hook:
2611 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2612 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2613 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2615 bus-proxyd-uninstall-hook:
2616 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2618 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2619 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2622 nodist_systemunit_DATA += \
2623 units/systemd-bus-proxyd@.service
2625 dist_systemunit_DATA += \
2626 units/systemd-bus-proxyd.socket
2628 nodist_userunit_DATA += \
2629 units/user/systemd-bus-proxyd@.service
2631 dist_userunit_DATA += \
2632 units/user/systemd-bus-proxyd.socket
2636 units/systemd-bus-proxyd@.service.m4.in \
2637 units/user/systemd-bus-proxyd@.service.in
2640 units/systemd-bus-proxyd@.service.m4
2643 bus-proxyd-set-cap-hook:
2644 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2646 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2649 # ------------------------------------------------------------------------------
2650 systemd_tty_ask_password_agent_SOURCES = \
2651 src/tty-ask-password-agent/tty-ask-password-agent.c
2653 systemd_tty_ask_password_agent_LDADD = \
2654 libsystemd-label.la \
2655 libsystemd-shared.la
2657 # ------------------------------------------------------------------------------
2658 libsystemd_internal_la_SOURCES = \
2659 src/systemd/sd-bus.h \
2660 src/systemd/sd-bus-protocol.h \
2661 src/systemd/sd-bus-vtable.h \
2662 src/systemd/sd-utf8.h \
2663 src/systemd/sd-event.h \
2664 src/systemd/sd-rtnl.h \
2665 src/systemd/sd-resolve.h \
2666 src/systemd/sd-login.h \
2667 src/systemd/sd-id128.h \
2668 src/systemd/sd-daemon.h \
2669 src/systemd/sd-path.h \
2670 src/systemd/sd-network.h \
2671 src/systemd/sd-hwdb.h \
2672 src/libsystemd/sd-bus/sd-bus.c \
2673 src/libsystemd/sd-bus/bus-control.c \
2674 src/libsystemd/sd-bus/bus-control.h \
2675 src/libsystemd/sd-bus/bus-error.c \
2676 src/libsystemd/sd-bus/bus-error.h \
2677 src/libsystemd/sd-bus/bus-common-errors.h \
2678 src/libsystemd/sd-bus/bus-common-errors.c \
2679 src/libsystemd/sd-bus/bus-internal.c \
2680 src/libsystemd/sd-bus/bus-internal.h \
2681 src/libsystemd/sd-bus/bus-socket.c \
2682 src/libsystemd/sd-bus/bus-socket.h \
2683 src/libsystemd/sd-bus/bus-kernel.c \
2684 src/libsystemd/sd-bus/bus-kernel.h \
2685 src/libsystemd/sd-bus/bus-container.c \
2686 src/libsystemd/sd-bus/bus-container.h \
2687 src/libsystemd/sd-bus/bus-message.c \
2688 src/libsystemd/sd-bus/bus-message.h \
2689 src/libsystemd/sd-bus/bus-creds.c \
2690 src/libsystemd/sd-bus/bus-creds.h \
2691 src/libsystemd/sd-bus/bus-signature.c \
2692 src/libsystemd/sd-bus/bus-signature.h \
2693 src/libsystemd/sd-bus/bus-type.c \
2694 src/libsystemd/sd-bus/bus-type.h \
2695 src/libsystemd/sd-bus/bus-match.c \
2696 src/libsystemd/sd-bus/bus-match.h \
2697 src/libsystemd/sd-bus/bus-bloom.c \
2698 src/libsystemd/sd-bus/bus-bloom.h \
2699 src/libsystemd/sd-bus/bus-introspect.c \
2700 src/libsystemd/sd-bus/bus-introspect.h \
2701 src/libsystemd/sd-bus/bus-objects.c \
2702 src/libsystemd/sd-bus/bus-objects.h \
2703 src/libsystemd/sd-bus/bus-gvariant.c \
2704 src/libsystemd/sd-bus/bus-gvariant.h \
2705 src/libsystemd/sd-bus/bus-convenience.c \
2706 src/libsystemd/sd-bus/bus-track.c \
2707 src/libsystemd/sd-bus/bus-track.h \
2708 src/libsystemd/sd-bus/bus-util.c \
2709 src/libsystemd/sd-bus/bus-util.h \
2710 src/libsystemd/sd-bus/bus-slot.c \
2711 src/libsystemd/sd-bus/bus-slot.h \
2712 src/libsystemd/sd-bus/bus-protocol.h \
2713 src/libsystemd/sd-bus/kdbus.h \
2714 src/libsystemd/sd-utf8/sd-utf8.c \
2715 src/libsystemd/sd-event/sd-event.c \
2716 src/libsystemd/sd-event/event-util.h \
2717 src/libsystemd/sd-rtnl/sd-rtnl.c \
2718 src/libsystemd/sd-rtnl/rtnl-internal.h \
2719 src/libsystemd/sd-rtnl/rtnl-message.c \
2720 src/libsystemd/sd-rtnl/rtnl-types.h \
2721 src/libsystemd/sd-rtnl/rtnl-types.c \
2722 src/libsystemd/sd-rtnl/rtnl-util.h \
2723 src/libsystemd/sd-rtnl/rtnl-util.c \
2724 src/libsystemd/sd-rtnl/local-addresses.h \
2725 src/libsystemd/sd-rtnl/local-addresses.c \
2726 src/libsystemd/sd-id128/sd-id128.c \
2727 src/libsystemd/sd-daemon/sd-daemon.c \
2728 src/libsystemd/sd-login/sd-login.c \
2729 src/libsystemd/sd-path/sd-path.c \
2730 src/libsystemd/sd-network/sd-network.c \
2731 src/libsystemd/sd-network/network-util.h \
2732 src/libsystemd/sd-network/network-util.c \
2733 src/libsystemd/sd-hwdb/sd-hwdb.c \
2734 src/libsystemd/sd-hwdb/hwdb-util.h \
2735 src/libsystemd/sd-hwdb/hwdb-internal.h
2737 nodist_libsystemd_internal_la_SOURCES = \
2738 src/libsystemd/libsystemd.sym
2740 libsystemd_internal_la_CFLAGS = \
2744 libsystemd_internal_la_LIBADD = \
2747 libsystemd_resolve_la_SOURCES = \
2748 src/libsystemd/sd-resolve/sd-resolve.c \
2749 src/libsystemd/sd-resolve/resolve-util.h
2751 libsystemd_resolve_la_CFLAGS = \
2755 libsystemd_resolve_la_LIBADD = \
2758 noinst_LTLIBRARIES += \
2759 libsystemd-internal.la \
2760 libsystemd-resolve.la
2762 libsystemd_dump_la_SOURCES = \
2763 src/libsystemd/sd-bus/bus-dump.c \
2764 src/libsystemd/sd-bus/bus-dump.h
2766 noinst_LTLIBRARIES += \
2770 src/libsystemd/libsystemd.sym.m4 \
2771 src/libsystemd/libsystemd.pc.in \
2772 src/libsystemd/sd-bus/DIFFERENCES \
2773 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2776 src/libsystemd/libsystemd.sym
2779 src/libsystemd/libsystemd.sym
2781 libsystemd_la_SOURCES = \
2782 $(libsystemd_internal_la_SOURCES) \
2783 $(libsystemd_resolve_la_SOURCES) \
2784 $(libsystemd_journal_internal_la_SOURCES)
2786 nodist_libsystemd_la_SOURCES = \
2787 $(nodist_libsystemd_internal_la_SOURCES)
2789 libsystemd_la_CFLAGS = \
2790 $(libsystemd_internal_la_CFLAGS) \
2791 $(libsystemd_resolve_la_CFLAGS) \
2792 $(libsystemd_journal_internal_la_CFLAGS)
2794 libsystemd_la_LDFLAGS = \
2796 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2797 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2799 libsystemd_la_LIBADD = \
2800 libsystemd-shared.la \
2801 $(libsystemd_internal_la_LIBADD) \
2802 $(libsystemd_journal_internal_la_LIBADD) \
2803 $(libsystemd_resolve_la_LIBADD)
2805 libsystemd-install-hook:
2806 libname=libsystemd.so && $(move-to-rootlibdir)
2808 libsystemd-uninstall-hook:
2809 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2811 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2812 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2814 pkgconfiglib_DATA += \
2815 src/libsystemd/libsystemd.pc
2817 pkginclude_HEADERS += \
2818 src/systemd/sd-login.h \
2819 src/systemd/sd-id128.h \
2820 src/systemd/sd-daemon.h
2823 pkginclude_HEADERS += \
2824 src/systemd/sd-bus.h \
2825 src/systemd/sd-bus-protocol.h \
2826 src/systemd/sd-bus-vtable.h \
2827 src/systemd/sd-utf8.h \
2828 src/systemd/sd-event.h \
2829 src/systemd/sd-rtnl.h \
2830 src/systemd/sd-resolve.h \
2831 src/systemd/sd-path.h
2834 lib_LTLIBRARIES += \
2839 test-bus-signature \
2845 test-bus-kernel-bloom \
2846 test-bus-kernel-benchmark \
2847 test-bus-zero-copy \
2848 test-bus-introspect \
2855 test-local-addresses \
2861 test_bus_marshal_SOURCES = \
2862 src/libsystemd/sd-bus/test-bus-marshal.c
2864 test_bus_marshal_LDADD = \
2865 libsystemd-dump.la \
2866 libsystemd-internal.la \
2867 libsystemd-shared.la \
2871 test_bus_marshal_CFLAGS = \
2876 test_bus_signature_SOURCES = \
2877 src/libsystemd/sd-bus/test-bus-signature.c
2879 test_bus_signature_LDADD = \
2880 libsystemd-internal.la \
2881 libsystemd-shared.la
2883 test_bus_chat_SOURCES = \
2884 src/libsystemd/sd-bus/test-bus-chat.c
2886 test_bus_chat_CFLAGS = \
2890 test_bus_chat_LDADD = \
2891 libsystemd-internal.la \
2892 libsystemd-shared.la
2894 test_bus_cleanup_SOURCES = \
2895 src/libsystemd/sd-bus/test-bus-cleanup.c
2897 test_bus_cleanup_CFLAGS = \
2901 test_bus_cleanup_LDADD = \
2902 libsystemd-internal.la \
2903 libsystemd-shared.la
2905 test_bus_server_SOURCES = \
2906 src/libsystemd/sd-bus/test-bus-server.c
2908 test_bus_server_CFLAGS = \
2912 test_bus_server_LDADD = \
2913 libsystemd-internal.la \
2914 libsystemd-shared.la
2916 test_bus_objects_SOURCES = \
2917 src/libsystemd/sd-bus/test-bus-objects.c
2919 test_bus_objects_CFLAGS = \
2923 test_bus_objects_LDADD = \
2924 libsystemd-dump.la \
2925 libsystemd-internal.la \
2926 libsystemd-shared.la
2928 test_bus_error_SOURCES = \
2929 src/libsystemd/sd-bus/test-bus-error.c
2931 test_bus_error_LDADD = \
2932 libsystemd-internal.la \
2933 libsystemd-shared.la
2935 test_bus_gvariant_SOURCES = \
2936 src/libsystemd/sd-bus/test-bus-gvariant.c
2938 test_bus_gvariant_LDADD = \
2939 libsystemd-dump.la \
2940 libsystemd-internal.la \
2941 libsystemd-shared.la \
2944 test_bus_gvariant_CFLAGS = \
2948 test_bus_creds_SOURCES = \
2949 src/libsystemd/sd-bus/test-bus-creds.c
2951 test_bus_creds_LDADD = \
2952 libsystemd-dump.la \
2953 libsystemd-internal.la \
2954 libsystemd-shared.la
2956 test_bus_match_SOURCES = \
2957 src/libsystemd/sd-bus/test-bus-match.c
2959 test_bus_match_LDADD = \
2960 libsystemd-internal.la \
2961 libsystemd-shared.la
2963 test_bus_kernel_SOURCES = \
2964 src/libsystemd/sd-bus/test-bus-kernel.c
2966 test_bus_kernel_LDADD = \
2967 libsystemd-dump.la \
2968 libsystemd-internal.la \
2969 libsystemd-shared.la
2971 test_bus_kernel_bloom_SOURCES = \
2972 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2974 test_bus_kernel_bloom_LDADD = \
2975 libsystemd-internal.la \
2976 libsystemd-shared.la
2978 test_bus_kernel_benchmark_SOURCES = \
2979 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2981 test_bus_kernel_benchmark_LDADD = \
2982 libsystemd-internal.la \
2983 libsystemd-shared.la
2985 test_bus_zero_copy_SOURCES = \
2986 src/libsystemd/sd-bus/test-bus-zero-copy.c
2988 test_bus_zero_copy_LDADD = \
2989 libsystemd-dump.la \
2990 libsystemd-internal.la \
2991 libsystemd-shared.la
2993 test_bus_introspect_SOURCES = \
2994 src/libsystemd/sd-bus/test-bus-introspect.c
2996 test_bus_introspect_LDADD = \
2997 libsystemd-internal.la \
2998 libsystemd-shared.la
3000 test_event_SOURCES = \
3001 src/libsystemd/sd-event/test-event.c
3003 test_event_LDADD = \
3004 libsystemd-internal.la \
3005 libsystemd-shared.la
3007 test_rtnl_SOURCES = \
3008 src/libsystemd/sd-rtnl/test-rtnl.c
3011 libsystemd-internal.la \
3012 libsystemd-shared.la
3014 test_local_addresses_SOURCES = \
3015 src/libsystemd/sd-rtnl/test-local-addresses.c
3017 test_local_addresses_LDADD = \
3018 libsystemd-internal.la \
3019 libsystemd-shared.la
3021 test_resolve_SOURCES = \
3022 src/libsystemd/sd-resolve/test-resolve.c
3024 test_resolve_LDADD = \
3025 libsystemd-resolve.la \
3026 libsystemd-internal.la \
3027 libsystemd-shared.la
3029 test_resolve_CFLAGS = \
3034 src/libsystemd/sd-bus/busctl.c \
3035 src/libsystemd/sd-bus/busctl-introspect.c \
3036 src/libsystemd/sd-bus/busctl-introspect.h
3039 libsystemd-dump.la \
3040 libsystemd-internal.la \
3041 libsystemd-shared.la
3043 # ------------------------------------------------------------------------------
3044 noinst_LTLIBRARIES += \
3045 libsystemd-network.la
3047 libsystemd_network_la_CFLAGS = \
3051 libsystemd_network_la_SOURCES = \
3052 src/systemd/sd-dhcp-client.h \
3053 src/systemd/sd-dhcp-server.h \
3054 src/systemd/sd-dhcp-lease.h \
3055 src/systemd/sd-ipv4ll.h \
3056 src/systemd/sd-icmp6-nd.h \
3057 src/systemd/sd-dhcp6-client.h \
3058 src/systemd/sd-dhcp6-lease.h \
3059 src/systemd/sd-pppoe.h \
3060 src/systemd/sd-lldp.h \
3061 src/libsystemd-network/sd-dhcp-client.c \
3062 src/libsystemd-network/sd-dhcp-server.c \
3063 src/libsystemd-network/dhcp-network.c \
3064 src/libsystemd-network/dhcp-option.c \
3065 src/libsystemd-network/dhcp-packet.c \
3066 src/libsystemd-network/dhcp-internal.h \
3067 src/libsystemd-network/dhcp-server-internal.h \
3068 src/libsystemd-network/dhcp-protocol.h \
3069 src/libsystemd-network/dhcp-lease-internal.h \
3070 src/libsystemd-network/sd-dhcp-lease.c \
3071 src/libsystemd-network/sd-ipv4ll.c \
3072 src/libsystemd-network/ipv4ll-network.c \
3073 src/libsystemd-network/ipv4ll-packet.c \
3074 src/libsystemd-network/ipv4ll-internal.h \
3075 src/libsystemd-network/sd-pppoe.c \
3076 src/libsystemd-network/network-internal.c \
3077 src/libsystemd-network/network-internal.h \
3078 src/libsystemd-network/sd-icmp6-nd.c \
3079 src/libsystemd-network/sd-dhcp6-client.c \
3080 src/libsystemd-network/dhcp6-internal.h \
3081 src/libsystemd-network/dhcp6-protocol.h \
3082 src/libsystemd-network/dhcp6-network.c \
3083 src/libsystemd-network/dhcp6-option.c \
3084 src/libsystemd-network/dhcp6-lease-internal.h \
3085 src/libsystemd-network/sd-dhcp6-lease.c \
3086 src/libsystemd-network/lldp.h \
3087 src/libsystemd-network/lldp-tlv.h \
3088 src/libsystemd-network/lldp-tlv.c \
3089 src/libsystemd-network/lldp-network.h \
3090 src/libsystemd-network/lldp-network.c \
3091 src/libsystemd-network/lldp-port.h \
3092 src/libsystemd-network/lldp-port.c \
3093 src/libsystemd-network/lldp-internal.h \
3094 src/libsystemd-network/lldp-internal.c \
3095 src/libsystemd-network/lldp-util.h \
3096 src/libsystemd-network/sd-lldp.c
3098 libsystemd_network_la_LIBADD = \
3099 libudev-internal.la \
3100 libsystemd-label.la \
3101 libsystemd-internal.la \
3102 libsystemd-shared.la \
3105 test_dhcp_option_SOURCES = \
3106 src/libsystemd-network/dhcp-protocol.h \
3107 src/libsystemd-network/dhcp-internal.h \
3108 src/libsystemd-network/test-dhcp-option.c
3110 test_dhcp_option_LDADD = \
3111 libsystemd-network.la \
3112 libsystemd-internal.la \
3113 libsystemd-shared.la
3115 test_dhcp_client_SOURCES = \
3116 src/systemd/sd-dhcp-client.h \
3117 src/libsystemd-network/dhcp-protocol.h \
3118 src/libsystemd-network/dhcp-internal.h \
3119 src/libsystemd-network/test-dhcp-client.c
3121 test_dhcp_client_LDADD = \
3122 libsystemd-network.la \
3123 libsystemd-label.la \
3124 libsystemd-internal.la \
3125 libsystemd-shared.la
3127 test_dhcp_server_SOURCES = \
3128 src/libsystemd-network/test-dhcp-server.c
3130 test_dhcp_server_LDADD = \
3131 libsystemd-network.la \
3132 libsystemd-internal.la \
3133 libsystemd-shared.la
3135 test_ipv4ll_SOURCES = \
3136 src/systemd/sd-ipv4ll.h \
3137 src/libsystemd-network/ipv4ll-internal.h \
3138 src/libsystemd-network/test-ipv4ll.c
3140 test_ipv4ll_LDADD = \
3141 libsystemd-network.la \
3142 libsystemd-label.la \
3143 libsystemd-internal.la \
3144 libsystemd-shared.la
3146 test_pppoe_SOURCES = \
3147 src/systemd/sd-pppoe.h \
3148 src/libsystemd-network/test-pppoe.c
3150 test_pppoe_LDADD = \
3151 libsystemd-network.la \
3152 libsystemd-shared.la
3154 test_icmp6_rs_SOURCES = \
3155 src/systemd/sd-dhcp6-client.h \
3156 src/systemd/sd-icmp6-nd.h \
3157 src/libsystemd-network/dhcp6-internal.h \
3158 src/libsystemd-network/test-icmp6-rs.c
3160 test_icmp6_rs_LDADD = \
3161 libsystemd-network.la \
3162 libsystemd-internal.la \
3163 libsystemd-shared.la
3165 test_dhcp6_client_SOURCES = \
3166 src/systemd/sd-dhcp6-client.h \
3167 src/libsystemd-network/dhcp6-internal.h \
3168 src/libsystemd-network/test-dhcp6-client.c
3170 test_dhcp6_client_LDADD = \
3171 libsystemd-network.la \
3172 libsystemd-internal.la \
3173 libsystemd-shared.la
3175 test_lldp_SOURCES = \
3176 src/libsystemd-network/lldp.h \
3177 src/libsystemd-network/lldp-tlv.h \
3178 src/libsystemd-network/lldp-tlv.c \
3179 src/libsystemd-network/test-lldp.c
3182 libsystemd-network.la \
3183 libsystemd-internal.la \
3184 libsystemd-shared.la
3198 # ------------------------------------------------------------------------------
3200 noinst_LTLIBRARIES += \
3201 libsystemd-terminal.la
3203 rootlibexec_PROGRAMS += \
3206 noinst_PROGRAMS += \
3211 dist_pkgdata_DATA += \
3212 src/libsystemd-terminal/unifont-glyph-array.bin
3214 nodist_userunit_DATA += \
3215 units/user/systemd-consoled.service
3217 USER_DEFAULT_TARGET_WANTS += \
3218 systemd-consoled.service
3227 units/user/systemd-consoled.service.in
3229 libsystemd_terminal_la_CFLAGS = \
3233 libsystemd_terminal_la_SOURCES = \
3234 src/libsystemd-terminal/grdev.h \
3235 src/libsystemd-terminal/grdev-internal.h \
3236 src/libsystemd-terminal/grdev.c \
3237 src/libsystemd-terminal/grdev-drm.c \
3238 src/libsystemd-terminal/idev.h \
3239 src/libsystemd-terminal/idev-internal.h \
3240 src/libsystemd-terminal/idev.c \
3241 src/libsystemd-terminal/idev-evdev.c \
3242 src/libsystemd-terminal/idev-keyboard.c \
3243 src/libsystemd-terminal/sysview.h \
3244 src/libsystemd-terminal/sysview-internal.h \
3245 src/libsystemd-terminal/sysview.c \
3246 src/libsystemd-terminal/term.h \
3247 src/libsystemd-terminal/term-internal.h \
3248 src/libsystemd-terminal/term-charset.c \
3249 src/libsystemd-terminal/term-page.c \
3250 src/libsystemd-terminal/term-parser.c \
3251 src/libsystemd-terminal/term-screen.c \
3252 src/libsystemd-terminal/term-wcwidth.c \
3253 src/libsystemd-terminal/unifont.h \
3254 src/libsystemd-terminal/unifont-def.h \
3255 src/libsystemd-terminal/unifont.c
3257 libsystemd_terminal_la_LIBADD = \
3258 libudev-internal.la \
3259 libsystemd-internal.la \
3260 libsystemd-shared.la \
3263 systemd_consoled_CFLAGS = \
3267 systemd_consoled_SOURCES = \
3268 src/console/consoled.h \
3269 src/console/consoled.c \
3270 src/console/consoled-display.c \
3271 src/console/consoled-manager.c \
3272 src/console/consoled-session.c \
3273 src/console/consoled-terminal.c \
3274 src/console/consoled-workspace.c
3276 systemd_consoled_LDADD = \
3277 libsystemd-terminal.la \
3278 libsystemd-internal.la \
3279 libsystemd-shared.la \
3282 systemd_evcat_CFLAGS = \
3286 systemd_evcat_SOURCES = \
3287 src/libsystemd-terminal/evcat.c
3289 systemd_evcat_LDADD = \
3290 libsystemd-terminal.la \
3291 libsystemd-internal.la \
3292 libsystemd-shared.la \
3295 systemd_modeset_CFLAGS = \
3299 systemd_modeset_SOURCES = \
3300 src/libsystemd-terminal/modeset.c
3302 systemd_modeset_LDADD = \
3303 libsystemd-terminal.la \
3304 libsystemd-internal.la \
3305 libsystemd-shared.la \
3308 systemd_subterm_SOURCES = \
3309 src/libsystemd-terminal/subterm.c
3311 systemd_subterm_LDADD = \
3312 libsystemd-terminal.la \
3313 libsystemd-internal.la \
3314 libsystemd-shared.la
3316 test_term_page_SOURCES = \
3317 src/libsystemd-terminal/test-term-page.c
3319 test_term_page_LDADD = \
3320 libsystemd-terminal.la \
3321 libsystemd-internal.la \
3322 libsystemd-shared.la
3324 test_term_parser_SOURCES = \
3325 src/libsystemd-terminal/test-term-parser.c
3327 test_term_parser_LDADD = \
3328 libsystemd-terminal.la \
3329 libsystemd-internal.la \
3330 libsystemd-shared.la
3332 test_unifont_SOURCES = \
3333 src/libsystemd-terminal/test-unifont.c
3335 test_unifont_LDADD = \
3336 libsystemd-terminal.la \
3337 libsystemd-internal.la \
3338 libsystemd-shared.la
3340 .PHONY: update-unifont
3341 update-unifont: tools/compile-unifont.py
3342 $(AM_V_GEN)$(PYTHON) $< \
3343 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3344 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3345 @echo "unifont-glyph-array.bin has been regenerated"
3347 # ------------------------------------------------------------------------------
3357 include_HEADERS += \
3358 src/libudev/libudev.h
3360 lib_LTLIBRARIES += \
3363 libudev_la_SOURCES =\
3364 src/libudev/libudev.sym \
3365 src/libudev/libudev-private.h \
3366 src/libudev/libudev.c \
3367 src/libudev/libudev-list.c \
3368 src/libudev/libudev-util.c \
3369 src/libudev/libudev-device.c \
3370 src/libudev/libudev-enumerate.c \
3371 src/libudev/libudev-monitor.c \
3372 src/libudev/libudev-queue.c \
3373 src/libudev/libudev-hwdb.c
3375 libudev_la_CFLAGS = \
3379 libudev_la_LDFLAGS = \
3381 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3382 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3384 libudev_la_LIBADD = \
3385 libsystemd-internal.la \
3386 libsystemd-shared.la
3388 pkgconfiglib_DATA += \
3389 src/libudev/libudev.pc
3392 src/libudev/libudev.pc.in
3395 src/libudev/libudev.pc \
3400 $(AM_V_at)$(MKDIR_P) $(dir $@)
3401 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3404 $(AM_V_at)$(MKDIR_P) $(dir $@)
3405 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3407 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3408 libudev-install-hook:
3409 libname=libudev.so && $(move-to-rootlibdir)
3411 libudev-uninstall-hook:
3412 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3414 INSTALL_EXEC_HOOKS += libudev-install-hook
3415 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3417 # ------------------------------------------------------------------------------
3418 noinst_LTLIBRARIES += \
3421 libudev_internal_la_SOURCES =\
3422 $(libudev_la_SOURCES) \
3423 src/libudev/libudev-device-private.c
3425 libudev_internal_la_CFLAGS = \
3427 -fvisibility=default
3429 # ------------------------------------------------------------------------------
3431 $(sysconfdir)/udev/rules.d
3433 dist_network_DATA = \
3434 network/99-default.link \
3435 network/80-container-host0.network \
3436 network/80-container-ve.network
3438 dist_udevrules_DATA += \
3439 rules/42-usb-hid-pm.rules \
3440 rules/50-udev-default.rules \
3441 rules/60-drm.rules \
3442 rules/60-keyboard.rules \
3443 rules/70-mouse.rules \
3444 rules/60-persistent-storage-tape.rules \
3445 rules/60-persistent-serial.rules \
3446 rules/60-persistent-input.rules \
3447 rules/60-persistent-alsa.rules \
3448 rules/60-persistent-storage.rules \
3449 rules/64-btrfs.rules \
3450 rules/75-net-description.rules \
3451 rules/75-tty-description.rules \
3452 rules/78-sound-card.rules \
3453 rules/80-net-setup-link.rules \
3454 rules/95-udev-late.rules
3456 nodist_udevrules_DATA += \
3457 rules/99-systemd.rules
3459 udevconfdir = $(sysconfdir)/udev
3460 dist_udevconf_DATA = \
3463 sharepkgconfigdir = $(datadir)/pkgconfig
3464 sharepkgconfig_DATA = \
3468 rules/99-systemd.rules.in \
3472 rules/99-systemd.rules \
3476 units/systemd-udevd.service.in \
3477 units/systemd-udev-trigger.service.in \
3478 units/systemd-udev-settle.service.in
3481 units/systemd-udevd.service \
3482 units/systemd-udev-trigger.service \
3483 units/systemd-udev-settle.service
3485 SOCKETS_TARGET_WANTS += \
3486 systemd-udevd-control.socket \
3487 systemd-udevd-kernel.socket
3489 SYSINIT_TARGET_WANTS += \
3490 systemd-udevd.service \
3491 systemd-udev-trigger.service
3493 rootbin_PROGRAMS += \
3496 rootlibexec_PROGRAMS += \
3499 noinst_LTLIBRARIES += \
3502 src/udev/keyboard-keys.txt:
3503 $(AM_V_at)$(MKDIR_P) $(dir $@)
3504 $(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/' > $@
3506 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3507 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3509 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3510 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3512 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3513 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3515 libudev_core_la_SOURCES = \
3517 src/udev/udev-event.c \
3518 src/udev/udev-watch.c \
3519 src/udev/udev-node.c \
3520 src/udev/udev-rules.c \
3521 src/udev/udev-ctrl.c \
3522 src/udev/udev-builtin.c \
3523 src/udev/udev-builtin-btrfs.c \
3524 src/udev/udev-builtin-hwdb.c \
3525 src/udev/udev-builtin-input_id.c \
3526 src/udev/udev-builtin-keyboard.c \
3527 src/udev/udev-builtin-net_id.c \
3528 src/udev/udev-builtin-net_setup_link.c \
3529 src/udev/udev-builtin-path_id.c \
3530 src/udev/udev-builtin-usb_id.c \
3531 src/udev/net/link-config.h \
3532 src/udev/net/link-config.c \
3533 src/udev/net/ethtool-util.h \
3534 src/udev/net/ethtool-util.c
3536 nodist_libudev_core_la_SOURCES = \
3537 src/udev/keyboard-keys-from-name.h \
3538 src/udev/keyboard-keys-to-name.h \
3539 src/udev/net/link-config-gperf.c
3542 $(nodist_libudev_core_la_SOURCES)
3545 src/udev/keyboard-keys-from-name.gperf \
3546 src/udev/keyboard-keys.txt \
3547 src/udev/net/link-config-gperf.c
3550 src/udev/net/link-config-gperf.gperf
3552 libudev_core_la_CFLAGS = \
3557 libudev_core_la_LIBADD = \
3558 libudev-internal.la \
3559 libsystemd-label.la \
3560 libsystemd-internal.la \
3561 libsystemd-network.la \
3562 libsystemd-shared.la \
3567 libudev_core_la_SOURCES += \
3568 src/udev/udev-builtin-kmod.c
3570 dist_udevrules_DATA += \
3571 rules/80-drivers.rules
3575 libudev_core_la_SOURCES += \
3576 src/udev/udev-builtin-blkid.c
3580 libudev_core_la_SOURCES += \
3581 src/udev/udev-builtin-uaccess.c \
3582 src/login/logind-acl.c \
3583 src/libsystemd/sd-login/sd-login.c \
3584 src/systemd/sd-login.h
3586 libudev_core_la_LIBADD += \
3590 systemd_udevd_SOURCES = \
3593 systemd_udevd_LDADD = \
3597 src/udev/udevadm.c \
3598 src/udev/udevadm-info.c \
3599 src/udev/udevadm-control.c \
3600 src/udev/udevadm-monitor.c \
3601 src/udev/udevadm-hwdb.c \
3602 src/udev/udevadm-settle.c \
3603 src/udev/udevadm-trigger.c \
3604 src/udev/udevadm-test.c \
3605 src/udev/udevadm-test-builtin.c \
3606 src/udev/udevadm-util.c \
3607 src/udev/udevadm-util.h
3612 # ------------------------------------------------------------------------------
3615 $(sysconfdir)/udev/hwdb.d
3617 systemd_hwdb_SOURCES = \
3618 src/libsystemd/sd-hwdb/hwdb-internal.h \
3621 systemd_hwdb_LDADD = \
3622 libsystemd-shared.la \
3623 libsystemd-internal.la \
3626 rootbin_PROGRAMS += \
3629 dist_udevhwdb_DATA = \
3630 hwdb/20-pci-vendor-model.hwdb \
3631 hwdb/20-pci-classes.hwdb \
3632 hwdb/20-usb-vendor-model.hwdb \
3633 hwdb/20-usb-classes.hwdb \
3634 hwdb/20-sdio-vendor-model.hwdb \
3635 hwdb/20-sdio-classes.hwdb \
3636 hwdb/20-bluetooth-vendor-product.hwdb \
3637 hwdb/20-acpi-vendor.hwdb \
3639 hwdb/20-net-ifname.hwdb \
3640 hwdb/60-keyboard.hwdb \
3644 units/systemd-hwdb-update.service.in
3647 units/systemd-hwdb-update.service
3649 SYSINIT_TARGET_WANTS += \
3650 systemd-hwdb-update.service
3652 # Update hwdb on installation. Do not bother if installing
3653 # in DESTDIR, since this is likely for packaging purposes.
3655 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3657 INSTALL_DATA_HOOKS += \
3661 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3664 # ------------------------------------------------------------------------------
3673 test_libudev_SOURCES = \
3674 src/test/test-libudev.c
3676 test_libudev_LDADD = \
3677 libsystemd-label.la \
3678 libudev-internal.la \
3679 libsystemd-shared.la \
3680 libsystemd-internal.la
3682 test_udev_SOURCES = \
3683 src/test/test-udev.c
3692 test_udev_LDADD += \
3699 # packed sysfs test tree
3701 $(AM_V_at)$(MKDIR_P) $(dir $@)
3702 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3706 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3711 test/rules-test.sh \
3712 test/rule-syntax-check.py
3714 # ------------------------------------------------------------------------------
3716 src/udev/ata_id/ata_id.c
3719 libudev-internal.la \
3720 libsystemd-shared.la
3722 udevlibexec_PROGRAMS += \
3725 # ------------------------------------------------------------------------------
3726 cdrom_id_SOURCES = \
3727 src/udev/cdrom_id/cdrom_id.c
3730 libudev-internal.la \
3731 libsystemd-shared.la
3733 udevlibexec_PROGRAMS += \
3736 dist_udevrules_DATA += \
3737 rules/60-cdrom_id.rules
3739 # ------------------------------------------------------------------------------
3741 src/udev/collect/collect.c
3744 libudev-internal.la \
3745 libsystemd-shared.la
3747 udevlibexec_PROGRAMS += \
3750 # ------------------------------------------------------------------------------
3752 src/udev/scsi_id/scsi_id.c \
3753 src/udev/scsi_id/scsi_serial.c \
3754 src/udev/scsi_id/scsi.h \
3755 src/udev/scsi_id/scsi_id.h
3758 libudev-internal.la \
3759 libsystemd-shared.la
3761 udevlibexec_PROGRAMS += \
3765 src/udev/scsi_id/README
3767 # ------------------------------------------------------------------------------
3769 src/udev/v4l_id/v4l_id.c
3774 udevlibexec_PROGRAMS += \
3777 dist_udevrules_DATA += \
3778 rules/60-persistent-v4l.rules
3780 # ------------------------------------------------------------------------------
3781 accelerometer_SOURCES = \
3782 src/udev/accelerometer/accelerometer.c
3784 accelerometer_LDADD = \
3785 libudev-internal.la -lm \
3786 libsystemd-shared.la
3788 udevlibexec_PROGRAMS += \
3791 dist_udevrules_DATA += \
3792 rules/61-accelerometer.rules
3794 # ------------------------------------------------------------------------------
3801 libgudev_includedir = \
3802 $(includedir)/gudev-1.0/gudev
3804 libgudev_include_HEADERS = \
3806 src/gudev/gudevenums.h \
3807 src/gudev/gudevenumtypes.h \
3808 src/gudev/gudevtypes.h \
3809 src/gudev/gudevclient.h \
3810 src/gudev/gudevdevice.h \
3811 src/gudev/gudevenumerator.h
3813 lib_LTLIBRARIES += libgudev-1.0.la
3815 pkgconfiglib_DATA += \
3816 src/gudev/gudev-1.0.pc
3819 src/gudev/gudev-1.0.pc
3821 libgudev_1_0_la_SOURCES = \
3822 src/gudev/libgudev-1.0.sym \
3823 src/gudev/gudevenums.h \
3824 src/gudev/gudevenumtypes.h \
3825 src/gudev/gudevenumtypes.h\
3826 src/gudev/gudevtypes.h \
3827 src/gudev/gudevclient.h \
3828 src/gudev/gudevclient.c \
3829 src/gudev/gudevdevice.h \
3830 src/gudev/gudevdevice.c \
3831 src/gudev/gudevenumerator.h \
3832 src/gudev/gudevenumerator.c \
3833 src/gudev/gudevprivate.h
3835 nodist_libgudev_1_0_la_SOURCES = \
3836 src/gudev/gudevmarshal.h \
3837 src/gudev/gudevmarshal.c \
3838 src/gudev/gudevenumtypes.h \
3839 src/gudev/gudevenumtypes.c
3842 $(nodist_libgudev_1_0_la_SOURCES)
3844 libgudev_1_0_la_CPPFLAGS = \
3846 -I$(top_builddir)/src\
3847 -I$(top_srcdir)/src\
3848 -I$(top_builddir)/src/gudev \
3849 -I$(top_srcdir)/src/gudev \
3850 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3851 -D_GUDEV_COMPILATION \
3852 -DG_LOG_DOMAIN=\"GUdev\"
3854 libgudev_1_0_la_CFLAGS = \
3856 -fvisibility=default \
3859 libgudev_1_0_la_LIBADD = \
3863 libgudev_1_0_la_LDFLAGS = \
3865 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3868 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3870 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3871 $(AM_V_at)$(MKDIR_P) $(dir $@)
3872 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3874 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3875 $(AM_V_at)$(MKDIR_P) $(dir $@)
3876 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3877 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3879 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3880 $(AM_V_at)$(MKDIR_P) $(dir $@)
3881 $(AM_V_GEN)glib-mkenums --template $^ > $@
3883 if HAVE_INTROSPECTION
3884 -include $(INTROSPECTION_MAKEFILE)
3886 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3888 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3890 src_gudev_GUdev_1_0_gir_CFLAGS = \
3893 -D_GUDEV_COMPILATION \
3894 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3895 -I$(top_srcdir)/src \
3896 -I$(top_builddir)/src \
3897 -I$(top_srcdir)/src/gudev \
3898 -I$(top_builddir)/src/gudev
3900 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3902 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3903 --pkg-export=gudev-1.0 \
3906 src_gudev_GUdev_1_0_gir_FILES = \
3908 src/gudev/gudevtypes.h \
3909 src/gudev/gudevenums.h \
3910 src/gudev/gudevenumtypes.h \
3911 src/gudev/gudevclient.h \
3912 src/gudev/gudevdevice.h \
3913 src/gudev/gudevenumerator.h \
3914 src/gudev/gudevclient.c \
3915 src/gudev/gudevdevice.c \
3916 src/gudev/gudevenumerator.c
3918 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3919 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3921 girdir = $(datadir)/gir-1.0
3923 src/gudev/GUdev-1.0.gir
3925 typelibsdir = $(libdir)/girepository-1.0
3927 src/gudev/GUdev-1.0.typelib
3929 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3930 endif # HAVE_INTROSPECTION
3934 src/gudev/gudev-1.0.pc.in \
3935 src/gudev/gudevmarshal.list \
3936 src/gudev/gudevenumtypes.h.template \
3937 src/gudev/gudevenumtypes.c.template \
3938 src/gudev/gjs-example.js \
3939 src/gudev/seed-example-enum.js \
3940 src/gudev/seed-example.js
3942 # ------------------------------------------------------------------------------
3943 mtd_probe_SOURCES = \
3944 src/udev/mtd_probe/mtd_probe.c \
3945 src/udev/mtd_probe/mtd_probe.h \
3946 src/udev/mtd_probe/probe_smartmedia.c
3948 dist_udevrules_DATA += \
3949 rules/75-probe_mtd.rules
3951 udevlibexec_PROGRAMS += \
3954 # ------------------------------------------------------------------------------
3955 test_id128_SOURCES = \
3956 src/test/test-id128.c
3958 test_id128_LDADD = \
3959 libsystemd-internal.la \
3960 libsystemd-shared.la
3965 # ------------------------------------------------------------------------------
3967 rootlibexec_PROGRAMS += \
3970 systemd_activate_SOURCES = \
3971 src/activate/activate.c
3973 systemd_activate_LDADD = \
3974 libsystemd-label.la \
3975 libsystemd-internal.la \
3976 libsystemd-shared.la
3978 # ------------------------------------------------------------------------------
3979 systemd_journald_SOURCES = \
3980 src/journal/journald.c \
3981 src/journal/journald-server.h
3983 systemd_journald_LDADD = \
3984 libsystemd-journal-core.la \
3985 libsystemd-internal.la \
3986 libsystemd-shared.la
3988 systemd_cat_SOURCES = \
3991 systemd_cat_LDADD = \
3992 libsystemd-journal-core.la
3995 rootlibexec_PROGRAMS += \
3996 systemd-journal-remote
3998 systemd_journal_remote_SOURCES = \
3999 src/journal-remote/journal-remote-parse.h \
4000 src/journal-remote/journal-remote-parse.c \
4001 src/journal-remote/journal-remote-write.h \
4002 src/journal-remote/journal-remote-write.c \
4003 src/journal-remote/journal-remote.h \
4004 src/journal-remote/journal-remote.c
4006 systemd_journal_remote_LDADD = \
4007 libsystemd-internal.la \
4008 libsystemd-journal-core.la
4010 systemd_journal_remote_SOURCES += \
4011 src/journal-remote/microhttpd-util.h \
4012 src/journal-remote/microhttpd-util.c
4014 systemd_journal_remote_CFLAGS = \
4016 $(MICROHTTPD_CFLAGS)
4018 systemd_journal_remote_LDADD += \
4022 dist_sysusers_DATA += \
4023 sysusers.d/systemd-remote.conf
4027 dist_tmpfiles_DATA += \
4028 tmpfiles.d/systemd-remote.conf
4032 systemd_journal_remote_LDADD += \
4035 # systemd-journal-remote make sense mostly with full crypto stack
4036 dist_systemunit_DATA += \
4037 units/systemd-journal-remote.socket
4039 nodist_systemunit_DATA += \
4040 units/systemd-journal-remote.service
4043 units/systemd-journal-remote.service.in
4045 journal-remote-install-hook: journal-install-hook
4046 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4047 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4048 -chmod 755 $(DESTDIR)/var/log/journal/remote
4050 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4054 nodist_pkgsysconf_DATA += \
4055 src/journal-remote/journal-remote.conf
4058 src/journal-remote/journal-remote.conf.in
4061 src/journal-remote/journal-remote.conf
4065 rootlibexec_PROGRAMS += \
4066 systemd-journal-upload
4068 systemd_journal_upload_SOURCES = \
4069 src/journal-remote/journal-upload.h \
4070 src/journal-remote/journal-upload.c \
4071 src/journal-remote/journal-upload-journal.c
4073 systemd_journal_upload_CFLAGS = \
4077 systemd_journal_upload_LDADD = \
4078 libsystemd-internal.la \
4079 libsystemd-journal-internal.la \
4080 libsystemd-shared.la \
4083 nodist_systemunit_DATA += \
4084 units/systemd-journal-upload.service
4087 units/systemd-journal-upload.service.in
4089 nodist_pkgsysconf_DATA += \
4090 src/journal-remote/journal-upload.conf
4093 src/journal-remote/journal-upload.conf.in
4096 src/journal-remote/journal-upload.conf
4099 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4100 journalctl_CFLAGS = \
4103 journalctl_SOURCES = \
4104 src/journal/journalctl.c
4106 journalctl_LDADD = \
4107 libsystemd-journal-internal.la \
4108 libsystemd-internal.la \
4109 libsystemd-logs.la \
4110 libsystemd-shared.la
4113 journalctl_LDADD += \
4118 journalctl_SOURCES += \
4119 src/journal/journal-qrcode.c \
4120 src/journal/journal-qrcode.h
4122 journalctl_CFLAGS += \
4125 journalctl_LDADD += \
4129 test_journal_SOURCES = \
4130 src/journal/test-journal.c
4132 test_journal_LDADD = \
4133 libsystemd-journal-core.la
4135 test_journal_send_SOURCES = \
4136 src/journal/test-journal-send.c
4138 test_journal_send_LDADD = \
4139 libsystemd-journal-core.la
4141 test_journal_syslog_SOURCES = \
4142 src/journal/test-journal-syslog.c
4144 test_journal_syslog_LDADD = \
4145 libsystemd-journal-core.la
4147 test_journal_match_SOURCES = \
4148 src/journal/test-journal-match.c
4150 test_journal_match_LDADD = \
4151 libsystemd-journal-core.la
4153 test_journal_enum_SOURCES = \
4154 src/journal/test-journal-enum.c
4156 test_journal_enum_LDADD = \
4157 libsystemd-journal-core.la
4159 test_journal_stream_SOURCES = \
4160 src/journal/test-journal-stream.c
4162 test_journal_stream_LDADD = \
4163 libsystemd-journal-core.la
4165 test_journal_flush_SOURCES = \
4166 src/journal/test-journal-flush.c
4168 test_journal_flush_LDADD = \
4169 libsystemd-journal-core.la
4171 test_journal_init_SOURCES = \
4172 src/journal/test-journal-init.c
4174 test_journal_init_LDADD = \
4175 libsystemd-journal-core.la
4177 test_journal_verify_SOURCES = \
4178 src/journal/test-journal-verify.c
4180 test_journal_verify_LDADD = \
4181 libsystemd-journal-core.la
4183 test_journal_interleaving_SOURCES = \
4184 src/journal/test-journal-interleaving.c
4186 test_journal_interleaving_LDADD = \
4187 libsystemd-journal-core.la
4189 test_mmap_cache_SOURCES = \
4190 src/journal/test-mmap-cache.c
4192 test_mmap_cache_LDADD = \
4193 libsystemd-journal-core.la
4195 test_catalog_SOURCES = \
4196 src/journal/test-catalog.c
4198 test_catalog_CPPFLAGS = \
4200 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4202 test_catalog_LDADD = \
4203 libsystemd-journal-core.la
4205 test_compress_SOURCES = \
4206 src/journal/test-compress.c
4208 test_compress_LDADD = \
4209 libsystemd-journal-internal.la \
4210 libsystemd-shared.la
4212 test_compress_benchmark_SOURCES = \
4213 src/journal/test-compress-benchmark.c
4215 test_compress_benchmark_LDADD = \
4216 libsystemd-journal-internal.la \
4217 libsystemd-shared.la
4219 libsystemd_journal_core_la_SOURCES = \
4220 src/journal/journald-kmsg.c \
4221 src/journal/journald-kmsg.h \
4222 src/journal/journald-syslog.c \
4223 src/journal/journald-syslog.h \
4224 src/journal/journald-stream.c \
4225 src/journal/journald-stream.h \
4226 src/journal/journald-server.c \
4227 src/journal/journald-server.h \
4228 src/journal/journald-console.c \
4229 src/journal/journald-console.h \
4230 src/journal/journald-wall.c \
4231 src/journal/journald-wall.h \
4232 src/journal/journald-native.c \
4233 src/journal/journald-native.h \
4234 src/journal/journald-audit.c \
4235 src/journal/journald-audit.h \
4236 src/journal/journald-rate-limit.c \
4237 src/journal/journald-rate-limit.h \
4238 src/journal/journal-internal.h
4240 nodist_libsystemd_journal_core_la_SOURCES = \
4241 src/journal/journald-gperf.c
4243 libsystemd_journal_core_la_LIBADD = \
4244 libsystemd-journal-internal.la \
4245 libudev-internal.la \
4246 libsystemd-label.la \
4247 libsystemd-internal.la \
4248 libsystemd-shared.la
4251 libsystemd_journal_core_la_LIBADD += \
4255 noinst_LTLIBRARIES += \
4256 libsystemd-journal-core.la
4258 journal-install-hook:
4259 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4260 -chown 0:0 $(DESTDIR)/var/log/journal
4261 -chmod 755 $(DESTDIR)/var/log/journal
4262 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4263 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4265 journal-uninstall-hook:
4266 -rmdir $(DESTDIR)/var/log/journal/remote
4267 -rmdir $(DESTDIR)/var/log/journal/
4269 INSTALL_EXEC_HOOKS += journal-install-hook
4270 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4272 # ------------------------------------------------------------------------------
4273 # Update catalog on installation. Do not bother if installing
4274 # in DESTDIR, since this is likely for packaging purposes.
4275 catalog-update-hook:
4276 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4278 INSTALL_DATA_HOOKS += \
4281 catalog-remove-hook:
4282 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4284 UNINSTALL_DATA_HOOKS += \
4293 test-journal-syslog \
4294 test-journal-match \
4295 test-journal-stream \
4297 test-journal-verify \
4298 test-journal-interleaving \
4299 test-journal-flush \
4306 test-compress-benchmark
4309 pkginclude_HEADERS += \
4310 src/systemd/sd-journal.h \
4311 src/systemd/sd-messages.h \
4312 src/systemd/_sd-common.h
4314 libsystemd_journal_internal_la_SOURCES = \
4315 src/journal/sd-journal.c \
4316 src/systemd/sd-journal.h \
4317 src/systemd/_sd-common.h \
4318 src/journal/journal-file.c \
4319 src/journal/journal-file.h \
4320 src/journal/journal-vacuum.c \
4321 src/journal/journal-vacuum.h \
4322 src/journal/journal-verify.c \
4323 src/journal/journal-verify.h \
4324 src/journal/lookup3.c \
4325 src/journal/lookup3.h \
4326 src/journal/journal-send.c \
4327 src/journal/journal-def.h \
4328 src/journal/compress.h \
4329 src/journal/catalog.c \
4330 src/journal/catalog.h \
4331 src/journal/mmap-cache.c \
4332 src/journal/mmap-cache.h
4334 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4335 libsystemd_journal_internal_la_CFLAGS = \
4338 libsystemd_journal_internal_la_LIBADD =
4340 libsystemd_journal_internal_la_SOURCES += \
4341 src/journal/compress.c
4344 libsystemd_journal_internal_la_CFLAGS += \
4347 libsystemd_journal_internal_la_LIBADD += \
4352 libsystemd_journal_internal_la_LIBADD += \
4357 libsystemd_journal_internal_la_SOURCES += \
4358 src/journal/journal-authenticate.c \
4359 src/journal/journal-authenticate.h \
4360 src/journal/fsprg.c \
4363 libsystemd_journal_internal_la_LIBADD += \
4366 # fsprg.c is a drop-in file using void pointer arithmetic
4367 libsystemd_journal_internal_la_CFLAGS += \
4372 noinst_LTLIBRARIES += \
4373 libsystemd-journal-internal.la
4375 rootlibexec_PROGRAMS += \
4378 rootbin_PROGRAMS += \
4384 dist_systemunit_DATA += \
4385 units/systemd-journald.socket \
4386 units/systemd-journald-dev-log.socket \
4387 units/systemd-journald-audit.socket
4389 nodist_systemunit_DATA += \
4390 units/systemd-journald.service \
4391 units/systemd-journal-flush.service \
4392 units/systemd-journal-catalog-update.service
4394 dist_pkgsysconf_DATA += \
4395 src/journal/journald.conf
4397 dist_catalog_DATA = \
4398 catalog/systemd.fr.catalog \
4399 catalog/systemd.it.catalog \
4400 catalog/systemd.pl.catalog \
4401 catalog/systemd.ru.catalog \
4402 catalog/systemd.catalog
4404 SOCKETS_TARGET_WANTS += \
4405 systemd-journald.socket \
4406 systemd-journald-dev-log.socket \
4407 systemd-journald-audit.socket
4409 SYSINIT_TARGET_WANTS += \
4410 systemd-journald.service \
4411 systemd-journal-flush.service \
4412 systemd-journal-catalog-update.service
4415 units/systemd-journald.service.in \
4416 units/systemd-journal-flush.service.in \
4417 units/systemd-journal-catalog-update.service.in \
4418 src/journal/journald-gperf.gperf
4421 src/journal/journald-gperf.c
4423 # ------------------------------------------------------------------------------
4425 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4427 rootlibexec_PROGRAMS += \
4428 systemd-journal-gatewayd
4430 systemd_journal_gatewayd_SOURCES = \
4431 src/journal-remote/journal-gatewayd.c \
4432 src/journal-remote/microhttpd-util.h \
4433 src/journal-remote/microhttpd-util.c
4435 systemd_journal_gatewayd_LDADD = \
4436 libsystemd-logs.la \
4437 libsystemd-journal-internal.la \
4438 libsystemd-internal.la \
4439 libsystemd-shared.la \
4443 systemd_journal_gatewayd_LDADD += \
4447 systemd_journal_gatewayd_CFLAGS = \
4449 $(MICROHTTPD_CFLAGS)
4451 systemd_journal_gatewayd_CPPFLAGS = \
4453 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4455 dist_systemunit_DATA += \
4456 units/systemd-journal-gatewayd.socket
4458 nodist_systemunit_DATA += \
4459 units/systemd-journal-gatewayd.service
4461 dist_gatewayddocumentroot_DATA = \
4462 src/journal-remote/browse.html
4467 units/systemd-journal-gatewayd.service.in
4469 # ------------------------------------------------------------------------------
4471 systemd_socket_proxyd_SOURCES = \
4472 src/socket-proxy/socket-proxyd.c
4474 systemd_socket_proxyd_LDADD = \
4475 libsystemd-logs.la \
4476 libsystemd-internal.la \
4477 libsystemd-journal-internal.la \
4478 libsystemd-shared.la \
4479 libsystemd-resolve.la
4481 # ------------------------------------------------------------------------------
4483 systemd_coredump_SOURCES = \
4484 src/journal/coredump.c \
4485 src/journal/coredump-vacuum.c \
4486 src/journal/coredump-vacuum.h
4488 systemd_coredump_LDADD = \
4489 libsystemd-journal-internal.la \
4490 libsystemd-label.la \
4491 libsystemd-internal.la \
4492 libsystemd-shared.la
4495 systemd_coredump_SOURCES += \
4496 src/journal/stacktrace.c \
4497 src/journal/stacktrace.h
4499 systemd_coredump_LDADD += \
4503 rootlibexec_PROGRAMS += \
4506 dist_pkgsysconf_DATA += \
4507 src/journal/coredump.conf
4510 systemd_coredump_LDADD += \
4514 coredumpctl_SOURCES = \
4515 src/journal/coredumpctl.c
4517 coredumpctl_LDADD = \
4518 libsystemd-journal-internal.la \
4519 libsystemd-internal.la \
4520 libsystemd-shared.la
4526 test-coredump-vacuum
4528 test_coredump_vacuum_SOURCES = \
4529 src/journal/test-coredump-vacuum.c \
4530 src/journal/coredump-vacuum.c \
4531 src/journal/coredump-vacuum.h
4533 test_coredump_vacuum_LDADD = \
4534 libsystemd-internal.la \
4535 libsystemd-shared.la
4537 dist_bashcompletion_DATA += \
4538 shell-completion/bash/coredumpctl
4540 dist_zshcompletion_DATA += \
4541 shell-completion/zsh/_coredumpctl
4544 sysctl.d/50-coredump.conf
4547 sysctl.d/50-coredump.conf
4551 sysctl.d/50-coredump.conf.in
4553 # ------------------------------------------------------------------------------
4555 systemd_binfmt_SOURCES = \
4558 systemd_binfmt_LDADD = \
4559 libsystemd-shared.la
4561 rootlibexec_PROGRAMS += \
4564 dist_systemunit_DATA += \
4565 units/proc-sys-fs-binfmt_misc.automount \
4566 units/proc-sys-fs-binfmt_misc.mount
4568 nodist_systemunit_DATA += \
4569 units/systemd-binfmt.service
4572 $(prefix)/lib/binfmt.d \
4573 $(sysconfdir)/binfmt.d
4575 SYSINIT_TARGET_WANTS += \
4576 systemd-binfmt.service \
4577 proc-sys-fs-binfmt_misc.automount
4582 units/systemd-binfmt.service.in
4584 # ------------------------------------------------------------------------------
4586 systemd_vconsole_setup_SOURCES = \
4587 src/vconsole/vconsole-setup.c
4589 systemd_vconsole_setup_LDADD = \
4590 libsystemd-shared.la
4592 rootlibexec_PROGRAMS += \
4593 systemd-vconsole-setup
4595 nodist_systemunit_DATA += \
4596 units/systemd-vconsole-setup.service
4598 nodist_udevrules_DATA += \
4599 src/vconsole/90-vconsole.rules
4601 SYSINIT_TARGET_WANTS += \
4602 systemd-vconsole-setup.service
4605 src/vconsole/90-vconsole.rules
4609 src/vconsole/90-vconsole.rules.in \
4610 units/systemd-vconsole-setup.service.in
4612 # ------------------------------------------------------------------------------
4614 systemd_bootchart_SOURCES = \
4615 src/bootchart/bootchart.c \
4616 src/bootchart/bootchart.h \
4617 src/bootchart/store.c \
4618 src/bootchart/store.h \
4619 src/bootchart/svg.c \
4622 systemd_bootchart_LDADD = \
4623 libsystemd-journal-internal.la \
4624 libsystemd-shared.la
4626 rootlibexec_PROGRAMS += \
4629 dist_pkgsysconf_DATA += \
4630 src/bootchart/bootchart.conf
4632 nodist_systemunit_DATA += \
4633 units/systemd-bootchart.service
4636 units/systemd-bootchart.service.in
4639 units/systemd-bootchart.service
4642 # ------------------------------------------------------------------------------
4643 if ENABLE_QUOTACHECK
4644 rootlibexec_PROGRAMS += \
4647 nodist_systemunit_DATA += \
4648 units/systemd-quotacheck.service
4650 systemd_quotacheck_SOURCES = \
4651 src/quotacheck/quotacheck.c
4653 systemd_quotacheck_LDADD = \
4654 libsystemd-shared.la
4658 units/systemd-quotacheck.service.in
4660 nodist_systemunit_DATA += \
4661 units/quotaon.service
4663 # ------------------------------------------------------------------------------
4664 if ENABLE_RANDOMSEED
4665 rootlibexec_PROGRAMS += \
4668 nodist_systemunit_DATA += \
4669 units/systemd-random-seed.service
4671 systemd_random_seed_SOURCES = \
4672 src/random-seed/random-seed.c
4674 systemd_random_seed_LDADD = \
4675 libsystemd-label.la \
4676 libsystemd-shared.la
4678 SYSINIT_TARGET_WANTS += \
4679 systemd-random-seed.service
4684 units/systemd-random-seed.service.in
4686 # ------------------------------------------------------------------------------
4688 rootlibexec_PROGRAMS += \
4691 nodist_systemunit_DATA += \
4692 units/systemd-backlight@.service
4694 systemd_backlight_SOURCES = \
4695 src/backlight/backlight.c
4697 systemd_backlight_LDADD = \
4698 libsystemd-label.la \
4699 libudev-internal.la \
4700 libsystemd-shared.la
4704 units/systemd-backlight@.service.in
4706 # ------------------------------------------------------------------------------
4708 rootlibexec_PROGRAMS += \
4711 nodist_systemunit_DATA += \
4712 units/systemd-rfkill@.service
4714 systemd_rfkill_SOURCES = \
4717 systemd_rfkill_LDADD = \
4718 libsystemd-label.la \
4719 libudev-internal.la \
4720 libsystemd-shared.la
4724 units/systemd-rfkill@.service.in
4726 # ------------------------------------------------------------------------------
4727 if HAVE_LIBCRYPTSETUP
4728 rootlibexec_PROGRAMS += \
4731 systemgenerator_PROGRAMS += \
4732 systemd-cryptsetup-generator
4734 dist_systemunit_DATA += \
4735 units/cryptsetup.target \
4736 units/cryptsetup-pre.target
4738 systemd_cryptsetup_SOURCES = \
4739 src/cryptsetup/cryptsetup.c
4741 systemd_cryptsetup_CFLAGS = \
4743 $(LIBCRYPTSETUP_CFLAGS)
4745 systemd_cryptsetup_LDADD = \
4746 libsystemd-label.la \
4747 libudev-internal.la \
4748 libsystemd-shared.la \
4749 $(LIBCRYPTSETUP_LIBS)
4751 systemd_cryptsetup_generator_SOURCES = \
4752 src/cryptsetup/cryptsetup-generator.c
4754 systemd_cryptsetup_generator_LDADD = \
4755 libsystemd-label.la \
4756 libsystemd-shared.la
4758 SYSINIT_TARGET_WANTS += \
4763 # ------------------------------------------------------------------------------
4765 systemd_hostnamed_SOURCES = \
4766 src/hostname/hostnamed.c
4768 systemd_hostnamed_LDADD = \
4769 libsystemd-label.la \
4770 libsystemd-internal.la \
4771 libsystemd-shared.la
4773 rootlibexec_PROGRAMS += \
4776 nodist_systemunit_DATA += \
4777 units/systemd-hostnamed.service
4779 dist_systemunit_DATA_busnames += \
4780 units/org.freedesktop.hostname1.busname
4782 dist_dbuspolicy_DATA += \
4783 src/hostname/org.freedesktop.hostname1.conf
4785 dist_dbussystemservice_DATA += \
4786 src/hostname/org.freedesktop.hostname1.service
4788 polkitpolicy_files += \
4789 src/hostname/org.freedesktop.hostname1.policy
4791 SYSTEM_UNIT_ALIASES += \
4792 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4794 BUSNAMES_TARGET_WANTS += \
4795 org.freedesktop.hostname1.busname
4797 hostnamectl_SOURCES = \
4798 src/hostname/hostnamectl.c
4800 hostnamectl_LDADD = \
4801 libsystemd-internal.la \
4802 libsystemd-shared.la
4807 dist_bashcompletion_DATA += \
4808 shell-completion/bash/hostnamectl
4810 dist_zshcompletion_DATA += \
4811 shell-completion/zsh/_hostnamectl
4815 polkitpolicy_in_files += \
4816 src/hostname/org.freedesktop.hostname1.policy.in
4819 units/systemd-hostnamed.service.in
4821 # ------------------------------------------------------------------------------
4822 dist_systemunit_DATA_busnames += \
4823 units/org.freedesktop.systemd1.busname
4825 BUSNAMES_TARGET_WANTS += \
4826 org.freedesktop.systemd1.busname
4828 # ------------------------------------------------------------------------------
4830 systemd_localed_SOURCES = \
4831 src/locale/localed.c
4833 systemd_localed_LDADD = \
4834 libsystemd-label.la \
4835 libsystemd-internal.la \
4836 libsystemd-shared.la \
4839 systemd_localed_CFLAGS = \
4843 nodist_systemunit_DATA += \
4844 units/systemd-localed.service
4846 dist_systemunit_DATA_busnames += \
4847 units/org.freedesktop.locale1.busname
4849 rootlibexec_PROGRAMS += \
4852 dist_dbuspolicy_DATA += \
4853 src/locale/org.freedesktop.locale1.conf
4855 dist_dbussystemservice_DATA += \
4856 src/locale/org.freedesktop.locale1.service
4858 polkitpolicy_files += \
4859 src/locale/org.freedesktop.locale1.policy
4861 SYSTEM_UNIT_ALIASES += \
4862 systemd-localed.service dbus-org.freedesktop.locale1.service
4864 BUSNAMES_TARGET_WANTS += \
4865 org.freedesktop.locale1.busname
4867 dist_pkgdata_DATA += \
4868 src/locale/kbd-model-map
4870 dist_noinst_SCRIPT = \
4871 src/locale/generate-kbd-model-map
4873 localectl_SOURCES = \
4874 src/locale/localectl.c
4877 libsystemd-internal.la \
4878 libsystemd-shared.la
4883 dist_bashcompletion_DATA += \
4884 shell-completion/bash/localectl
4886 dist_zshcompletion_DATA += \
4887 shell-completion/zsh/_localectl
4891 .PHONY: update-kbd-model-map
4893 polkitpolicy_in_files += \
4894 src/locale/org.freedesktop.locale1.policy.in
4897 units/systemd-localed.service.in
4899 # ------------------------------------------------------------------------------
4901 systemd_timedated_SOURCES = \
4902 src/timedate/timedated.c
4904 systemd_timedated_LDADD = \
4905 libsystemd-label.la \
4906 libsystemd-internal.la \
4907 libsystemd-shared.la
4909 rootlibexec_PROGRAMS += \
4912 dist_dbussystemservice_DATA += \
4913 src/timedate/org.freedesktop.timedate1.service
4915 dist_dbuspolicy_DATA += \
4916 src/timedate/org.freedesktop.timedate1.conf
4918 nodist_systemunit_DATA += \
4919 units/systemd-timedated.service
4921 dist_systemunit_DATA_busnames += \
4922 units/org.freedesktop.timedate1.busname
4924 polkitpolicy_files += \
4925 src/timedate/org.freedesktop.timedate1.policy
4927 SYSTEM_UNIT_ALIASES += \
4928 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4930 BUSNAMES_TARGET_WANTS += \
4931 org.freedesktop.timedate1.busname
4933 timedatectl_SOURCES = \
4934 src/timedate/timedatectl.c
4936 timedatectl_LDADD = \
4937 libsystemd-internal.la \
4938 libsystemd-shared.la
4943 dist_bashcompletion_DATA += \
4944 shell-completion/bash/timedatectl
4946 dist_zshcompletion_DATA += \
4947 shell-completion/zsh/_timedatectl
4950 polkitpolicy_in_files += \
4951 src/timedate/org.freedesktop.timedate1.policy.in
4954 units/systemd-timedated.service.in
4956 # ------------------------------------------------------------------------------
4958 systemd_timesyncd_SOURCES = \
4959 src/timesync/timesyncd.c \
4960 src/timesync/timesyncd-manager.c \
4961 src/timesync/timesyncd-manager.h \
4962 src/timesync/timesyncd-conf.c \
4963 src/timesync/timesyncd-conf.h \
4964 src/timesync/timesyncd-server.c \
4965 src/timesync/timesyncd-server.h
4967 nodist_systemd_timesyncd_SOURCES = \
4968 src/timesync/timesyncd-gperf.c
4971 src/timesync/timesyncd-gperf.gperf
4974 src/timesync/timesyncd-gperf.c
4976 systemd_timesyncd_LDADD = \
4977 libsystemd-resolve.la \
4978 libsystemd-network.la \
4979 libsystemd-label.la \
4980 libsystemd-internal.la \
4981 libsystemd-shared.la \
4984 rootlibexec_PROGRAMS += \
4987 nodist_systemunit_DATA += \
4988 units/systemd-timesyncd.service
4990 GENERAL_ALIASES += \
4991 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4994 units/systemd-timesyncd.service.in
4996 nodist_pkgsysconf_DATA += \
4997 src/timesync/timesyncd.conf
5000 src/timesync/timesyncd.conf.in
5003 src/timesync/timesyncd.conf
5006 # ------------------------------------------------------------------------------
5008 libnss_myhostname_la_SOURCES = \
5009 src/nss-myhostname/nss-myhostname.sym \
5010 src/nss-myhostname/nss-myhostname.c
5012 libnss_myhostname_la_LDFLAGS = \
5019 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5021 libnss_myhostname_la_LIBADD = \
5022 libsystemd-shared.la \
5023 libsystemd-internal.la
5025 lib_LTLIBRARIES += \
5026 libnss_myhostname.la
5029 # ------------------------------------------------------------------------------
5031 systemd_machined_SOURCES = \
5032 src/machine/machined.c \
5033 src/machine/machined.h
5035 systemd_machined_LDADD = \
5036 libsystemd-machine-core.la
5038 rootlibexec_PROGRAMS += \
5041 libsystemd_machine_core_la_SOURCES = \
5042 src/machine/machine.c \
5043 src/machine/machine.h \
5044 src/machine/machined-dbus.c \
5045 src/machine/machine-dbus.c \
5046 src/machine/image-dbus.c \
5047 src/machine/image-dbus.h
5049 libsystemd_machine_core_la_LIBADD = \
5050 libsystemd-label.la \
5051 libsystemd-internal.la \
5052 libudev-internal.la \
5053 libsystemd-shared.la
5055 noinst_LTLIBRARIES += \
5056 libsystemd-machine-core.la
5058 machinectl_SOURCES = \
5059 src/machine/machinectl.c
5061 machinectl_LDADD = \
5062 libsystemd-internal.la \
5063 libsystemd-shared.la
5065 rootbin_PROGRAMS += \
5068 dist_bashcompletion_DATA += \
5069 shell-completion/bash/machinectl
5071 test_machine_tables_SOURCES = \
5072 src/machine/test-machine-tables.c
5074 test_machine_tables_LDADD = \
5075 libsystemd-machine-core.la
5080 nodist_systemunit_DATA += \
5081 units/systemd-machined.service
5083 dist_systemunit_DATA += \
5086 dist_systemunit_DATA_busnames += \
5087 units/org.freedesktop.machine1.busname
5089 dist_dbussystemservice_DATA += \
5090 src/machine/org.freedesktop.machine1.service
5092 dist_dbuspolicy_DATA += \
5093 src/machine/org.freedesktop.machine1.conf
5095 polkitpolicy_files += \
5096 src/machine/org.freedesktop.machine1.policy
5098 polkitpolicy_in_files += \
5099 src/machine/org.freedesktop.machine1.policy.in
5101 dist_zshcompletion_DATA += \
5102 shell-completion/zsh/_machinectl \
5103 shell-completion/zsh/_sd_machines
5105 SYSTEM_UNIT_ALIASES += \
5106 systemd-machined.service dbus-org.freedesktop.machine1.service
5108 BUSNAMES_TARGET_WANTS += \
5109 org.freedesktop.machine1.busname
5112 units/systemd-machined.service.in
5114 libnss_mymachines_la_SOURCES = \
5115 src/nss-mymachines/nss-mymachines.sym \
5116 src/nss-mymachines/nss-mymachines.c
5118 libnss_mymachines_la_LDFLAGS = \
5125 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5127 libnss_mymachines_la_LIBADD = \
5128 libsystemd-shared.la \
5129 libsystemd-internal.la
5131 lib_LTLIBRARIES += \
5132 libnss_mymachines.la
5139 systemd_import_SOURCES = \
5140 src/import/import.c \
5141 src/import/import-gpt.c \
5142 src/import/import-gpt.h \
5143 src/import/import-dkr.c \
5144 src/import/import-dkr.h \
5145 src/import/curl-util.c \
5146 src/import/curl-util.h \
5147 src/import/aufs-util.c \
5148 src/import/aufs-util.h
5150 systemd_import_CFLAGS = \
5154 systemd_import_LDADD = \
5155 libsystemd-internal.la \
5156 libsystemd-shared.la \
5163 # ------------------------------------------------------------------------------
5165 systemd_resolved_SOURCES = \
5166 src/resolve/resolved.c \
5167 src/resolve/resolved-manager.c \
5168 src/resolve/resolved-manager.h \
5169 src/resolve/resolved-conf.c \
5170 src/resolve/resolved-conf.h \
5171 src/resolve/resolved-bus.c \
5172 src/resolve/resolved-bus.h \
5173 src/resolve/resolved-link.h \
5174 src/resolve/resolved-link.c \
5175 src/resolve/resolved-def.h \
5176 src/resolve/resolved-dns-domain.h \
5177 src/resolve/resolved-dns-domain.c \
5178 src/resolve/resolved-dns-rr.h \
5179 src/resolve/resolved-dns-rr.c \
5180 src/resolve/resolved-dns-question.h \
5181 src/resolve/resolved-dns-question.c \
5182 src/resolve/resolved-dns-answer.h \
5183 src/resolve/resolved-dns-answer.c \
5184 src/resolve/resolved-dns-packet.h \
5185 src/resolve/resolved-dns-packet.c \
5186 src/resolve/resolved-dns-query.h \
5187 src/resolve/resolved-dns-query.c \
5188 src/resolve/resolved-dns-transaction.h \
5189 src/resolve/resolved-dns-transaction.c \
5190 src/resolve/resolved-dns-scope.h \
5191 src/resolve/resolved-dns-scope.c \
5192 src/resolve/resolved-dns-server.h \
5193 src/resolve/resolved-dns-server.c \
5194 src/resolve/resolved-dns-cache.h \
5195 src/resolve/resolved-dns-cache.c \
5196 src/resolve/resolved-dns-zone.h \
5197 src/resolve/resolved-dns-zone.c \
5198 src/resolve/resolved-dns-stream.h \
5199 src/resolve/resolved-dns-stream.c \
5200 src/resolve/dns-type.c \
5201 src/resolve/dns-type.h \
5202 src/resolve/dns_type-from-name.h \
5203 src/resolve/dns_type-to-name.h
5205 nodist_systemd_resolved_SOURCES = \
5206 src/resolve/resolved-gperf.c
5209 src/resolve/resolved-gperf.gperf \
5210 src/resolve/dns_type-from-name.gperf
5213 src/resolve/resolved-gperf.c
5215 systemd_resolved_LDADD = \
5216 libsystemd-network.la \
5217 libsystemd-label.la \
5218 libsystemd-internal.la \
5219 libsystemd-shared.la \
5223 rootlibexec_PROGRAMS += \
5226 nodist_systemunit_DATA += \
5227 units/systemd-resolved.service
5229 dist_systemunit_DATA_busnames += \
5230 units/org.freedesktop.resolve1.busname
5232 dist_dbuspolicy_DATA += \
5233 src/resolve/org.freedesktop.resolve1.conf
5235 dist_dbussystemservice_DATA += \
5236 src/resolve/org.freedesktop.resolve1.service
5239 units/systemd-resolved.service.in
5241 SYSTEM_UNIT_ALIASES += \
5242 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5244 BUSNAMES_TARGET_WANTS += \
5245 org.freedesktop.resolve1.busname
5247 GENERAL_ALIASES += \
5248 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5250 nodist_pkgsysconf_DATA += \
5251 src/resolve/resolved.conf
5254 src/resolve/resolved.conf.in
5257 src/resolve/resolved.conf
5262 test_dns_domain_SOURCES = \
5263 src/resolve/resolved-dns-domain.h \
5264 src/resolve/resolved-dns-domain.c \
5265 src/resolve/test-dns-domain.c
5267 test_dns_domain_LDADD = \
5268 libsystemd-network.la \
5269 libsystemd-label.la \
5270 libsystemd-internal.la \
5271 libsystemd-shared.la \
5274 libnss_resolve_la_SOURCES = \
5275 src/nss-resolve/nss-resolve.sym \
5276 src/nss-resolve/nss-resolve.c
5278 libnss_resolve_la_LDFLAGS = \
5285 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5287 libnss_resolve_la_LIBADD = \
5288 libsystemd-shared.la \
5289 libsystemd-internal.la
5291 lib_LTLIBRARIES += \
5294 systemd_resolve_host_SOURCES = \
5295 src/resolve-host/resolve-host.c \
5296 src/resolve/resolved-dns-packet.c \
5297 src/resolve/resolved-dns-packet.h \
5298 src/resolve/resolved-dns-rr.c \
5299 src/resolve/resolved-dns-rr.h \
5300 src/resolve/resolved-dns-answer.c \
5301 src/resolve/resolved-dns-answer.h \
5302 src/resolve/resolved-dns-question.c \
5303 src/resolve/resolved-dns-question.h \
5304 src/resolve/resolved-dns-domain.c \
5305 src/resolve/resolved-dns-domain.h \
5306 src/resolve/dns-type.c \
5307 src/resolve/dns-type.h \
5308 src/resolve/dns_type-from-name.h \
5309 src/resolve/dns_type-to-name.h
5311 systemd_resolve_host_LDADD = \
5312 libsystemd-internal.la \
5313 libsystemd-shared.la \
5317 rootlibexec_PROGRAMS += \
5318 systemd-resolve-host
5322 # ------------------------------------------------------------------------------
5324 rootlibexec_PROGRAMS += \
5327 systemd_networkd_SOURCES = \
5328 src/network/networkd.c
5330 systemd_networkd_LDADD = \
5331 libsystemd-networkd-core.la
5333 noinst_LTLIBRARIES += \
5334 libsystemd-networkd-core.la
5336 libsystemd_networkd_core_la_CFLAGS = \
5339 libsystemd_networkd_core_la_SOURCES = \
5340 src/libsystemd-network/network-internal.h \
5341 src/network/networkd.h \
5342 src/network/networkd-link.h \
5343 src/network/networkd-netdev.h \
5344 src/network/networkd-netdev-tunnel.h \
5345 src/network/networkd-netdev-veth.h \
5346 src/network/networkd-netdev-vxlan.h \
5347 src/network/networkd-netdev-vlan.h \
5348 src/network/networkd-netdev-macvlan.h \
5349 src/network/networkd-netdev-dummy.h \
5350 src/network/networkd-netdev-tuntap.h \
5351 src/network/networkd-netdev-bond.h \
5352 src/network/networkd-netdev-bridge.h \
5353 src/network/networkd-netdev.c \
5354 src/network/networkd-netdev-tunnel.c \
5355 src/network/networkd-netdev-veth.c \
5356 src/network/networkd-netdev-vxlan.c \
5357 src/network/networkd-netdev-vlan.c \
5358 src/network/networkd-netdev-macvlan.c \
5359 src/network/networkd-netdev-dummy.c \
5360 src/network/networkd-netdev-tuntap.c \
5361 src/network/networkd-netdev-bond.c \
5362 src/network/networkd-netdev-bridge.c \
5363 src/network/networkd-link.c \
5364 src/network/networkd-ipv4ll.c \
5365 src/network/networkd-dhcp4.c \
5366 src/network/networkd-dhcp6.c \
5367 src/network/networkd-network.c \
5368 src/network/networkd-address.c \
5369 src/network/networkd-route.c \
5370 src/network/networkd-manager.c \
5371 src/network/networkd-fdb.c \
5372 src/network/networkd-address-pool.c
5374 nodist_libsystemd_networkd_core_la_SOURCES = \
5375 src/network/networkd-network-gperf.c \
5376 src/network/networkd-netdev-gperf.c
5378 libsystemd_networkd_core_la_LIBADD = \
5379 libudev-internal.la \
5380 libsystemd-internal.la \
5381 libsystemd-network.la \
5382 libsystemd-label.la \
5383 libsystemd-shared.la
5385 rootlibexec_PROGRAMS += \
5386 systemd-networkd-wait-online
5388 systemd_networkd_wait_online_CFLAGS = \
5391 systemd_networkd_wait_online_SOURCES = \
5392 src/libsystemd-network/network-internal.h \
5393 src/network/networkd-wait-online.h \
5394 src/network/networkd-wait-online-link.h \
5395 src/network/networkd-wait-online.c \
5396 src/network/networkd-wait-online-manager.c \
5397 src/network/networkd-wait-online-link.c
5399 systemd_networkd_wait_online_LDADD = \
5400 libsystemd-network.la \
5401 libudev-internal.la \
5402 libsystemd-internal.la \
5403 libsystemd-shared.la
5405 rootbin_PROGRAMS += \
5408 networkctl_SOURCES = \
5409 src/network/networkctl.c
5411 networkctl_LDADD = \
5412 libsystemd-internal.la \
5413 libudev-internal.la \
5414 libsystemd-shared.la \
5415 libsystemd-network.la
5417 test_network_SOURCES = \
5418 src/network/test-network.c
5420 test_network_LDADD = \
5421 libsystemd-networkd-core.la
5423 test_network_tables_SOURCES = \
5424 src/network/test-network-tables.c \
5425 src/shared/test-tables.h
5427 test_network_tables_LDADD = \
5428 libsystemd-networkd-core.la \
5435 nodist_systemunit_DATA += \
5436 units/systemd-networkd.service \
5437 units/systemd-networkd-wait-online.service
5439 GENERAL_ALIASES += \
5440 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5441 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5444 src/network/networkd-network-gperf.gperf \
5445 src/network/networkd-netdev-gperf.gperf \
5446 units/systemd-networkd.service.in \
5447 units/systemd-networkd-wait-online.service.in
5450 src/network/networkd-network-gperf.c \
5451 src/network/networkd-netdev-gperf.c
5454 # ------------------------------------------------------------------------------
5456 systemd_logind_SOURCES = \
5457 src/login/logind.c \
5460 nodist_systemd_logind_SOURCES = \
5461 src/login/logind-gperf.c
5463 systemd_logind_LDADD = \
5464 libsystemd-logind-core.la
5466 libsystemd_logind_core_la_SOURCES = \
5467 src/login/logind-core.c \
5468 src/login/logind-device.c \
5469 src/login/logind-device.h \
5470 src/login/logind-button.c \
5471 src/login/logind-button.h \
5472 src/login/logind-action.c \
5473 src/login/logind-action.h \
5474 src/login/logind-seat.c \
5475 src/login/logind-seat.h \
5476 src/login/logind-session.c \
5477 src/login/logind-session.h \
5478 src/login/logind-session-device.c \
5479 src/login/logind-session-device.h \
5480 src/login/logind-user.c \
5481 src/login/logind-user.h \
5482 src/login/logind-inhibit.c \
5483 src/login/logind-inhibit.h \
5484 src/login/logind-dbus.c \
5485 src/login/logind-session-dbus.c \
5486 src/login/logind-seat-dbus.c \
5487 src/login/logind-user-dbus.c \
5488 src/login/logind-acl.h
5490 libsystemd_logind_core_la_LIBADD = \
5491 libsystemd-label.la \
5492 libsystemd-internal.la \
5493 libudev-internal.la \
5494 libsystemd-shared.la
5497 libsystemd_logind_core_la_SOURCES += \
5498 src/login/logind-acl.c
5500 libsystemd_logind_core_la_LIBADD += \
5504 noinst_LTLIBRARIES += \
5505 libsystemd-logind-core.la
5507 systemd_user_sessions_SOURCES = \
5508 src/login/user-sessions.c
5510 systemd_user_sessions_LDADD = \
5511 libsystemd-shared.la
5513 rootlibexec_PROGRAMS += \
5515 systemd-user-sessions
5517 loginctl_SOURCES = \
5518 src/login/loginctl.c \
5519 src/login/sysfs-show.h \
5520 src/login/sysfs-show.c
5523 libsystemd-internal.la \
5524 libudev-internal.la \
5525 libsystemd-shared.la
5527 rootbin_PROGRAMS += \
5530 dist_bashcompletion_DATA += \
5531 shell-completion/bash/loginctl
5533 dist_zshcompletion_DATA += \
5534 shell-completion/zsh/_loginctl \
5535 shell-completion/zsh/_systemd-inhibit
5537 systemd_inhibit_SOURCES = \
5540 systemd_inhibit_LDADD = \
5541 libsystemd-internal.la \
5542 libsystemd-shared.la
5544 rootbin_PROGRAMS += \
5547 test_login_SOURCES = \
5548 src/libsystemd/sd-login/test-login.c
5550 test_login_LDADD = \
5551 libsystemd-internal.la \
5552 libsystemd-shared.la
5554 test_login_shared_SOURCES = \
5555 src/login/test-login-shared.c
5557 test_login_shared_LDADD = \
5558 libsystemd-internal.la \
5559 libsystemd-shared.la
5561 test_inhibit_SOURCES = \
5562 src/login/test-inhibit.c
5564 test_inhibit_LDADD = \
5565 libsystemd-internal.la \
5566 libsystemd-shared.la
5568 test_login_tables_SOURCES = \
5569 src/login/test-login-tables.c
5571 test_login_tables_LDADD = \
5572 libsystemd-logind-core.la
5583 pam_systemd_la_SOURCES = \
5584 src/login/pam_systemd.sym \
5585 src/login/pam_systemd.c
5587 pam_systemd_la_CFLAGS = \
5592 pam_systemd_la_LDFLAGS = \
5598 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5600 pam_systemd_la_LIBADD = \
5601 libsystemd-internal.la \
5602 libsystemd-shared.la \
5605 pamlib_LTLIBRARIES = \
5608 dist_pamconf_DATA = \
5609 src/login/systemd-user
5612 nodist_systemunit_DATA += \
5613 units/systemd-logind.service \
5614 units/systemd-user-sessions.service
5616 dist_systemunit_DATA += \
5619 dist_systemunit_DATA_busnames += \
5620 units/org.freedesktop.login1.busname
5622 dist_dbussystemservice_DATA += \
5623 src/login/org.freedesktop.login1.service
5625 dist_dbuspolicy_DATA += \
5626 src/login/org.freedesktop.login1.conf
5628 dist_pkgsysconf_DATA += \
5629 src/login/logind.conf
5631 polkitpolicy_files += \
5632 src/login/org.freedesktop.login1.policy
5637 MULTI_USER_TARGET_WANTS += \
5638 systemd-logind.service \
5639 systemd-user-sessions.service
5641 SYSTEM_UNIT_ALIASES += \
5642 systemd-logind.service dbus-org.freedesktop.login1.service
5644 BUSNAMES_TARGET_WANTS += \
5645 org.freedesktop.login1.busname
5647 dist_udevrules_DATA += \
5648 src/login/70-uaccess.rules \
5649 src/login/70-power-switch.rules
5651 nodist_udevrules_DATA += \
5652 src/login/71-seat.rules \
5653 src/login/73-seat-late.rules
5656 src/login/logind-gperf.c \
5657 src/login/71-seat.rules \
5658 src/login/73-seat-late.rules
5661 polkitpolicy_in_files += \
5662 src/login/org.freedesktop.login1.policy.in
5665 src/login/logind-gperf.gperf \
5666 src/login/71-seat.rules.in \
5667 src/login/73-seat-late.rules.in \
5668 units/systemd-logind.service.in \
5669 units/systemd-user-sessions.service.in
5671 # ------------------------------------------------------------------------------
5672 if HAVE_PYTHON_DEVEL
5673 pkgpyexec_LTLIBRARIES = \
5680 _journal_la_SOURCES = \
5681 src/python-systemd/_journal.c
5683 _journal_la_CFLAGS = \
5685 -fvisibility=default \
5686 $(PYTHON_DEVEL_CFLAGS)
5688 _journal_la_LDFLAGS = \
5694 _journal_la_LIBADD = \
5695 $(PYTHON_DEVEL_LIBS) \
5698 id128_la_SOURCES = \
5699 src/python-systemd/id128.c \
5700 src/python-systemd/pyutil.c \
5701 src/python-systemd/pyutil.h
5703 nodist_id128_la_SOURCES = \
5704 src/python-systemd/id128-constants.h
5708 -fvisibility=default \
5709 $(PYTHON_DEVEL_CFLAGS) \
5710 -I$(top_builddir)/src/python-systemd
5712 id128_la_LDFLAGS = \
5719 $(PYTHON_DEVEL_LIBS) \
5720 libsystemd-shared.la \
5723 _daemon_la_SOURCES = \
5724 src/python-systemd/_daemon.c \
5725 src/python-systemd/pyutil.c \
5726 src/python-systemd/pyutil.h
5728 _daemon_la_CFLAGS = \
5730 -fvisibility=default \
5731 $(PYTHON_DEVEL_CFLAGS) \
5732 -I$(top_builddir)/src/python-systemd
5734 _daemon_la_LDFLAGS = \
5740 _daemon_la_LIBADD = \
5741 $(PYTHON_DEVEL_LIBS) \
5742 libsystemd-shared.la \
5745 _reader_la_SOURCES = \
5746 src/python-systemd/_reader.c \
5747 src/python-systemd/pyutil.c \
5748 src/python-systemd/pyutil.h
5750 _reader_la_CFLAGS = \
5752 -fvisibility=default \
5753 $(PYTHON_DEVEL_CFLAGS)
5755 _reader_la_LDFLAGS = \
5761 _reader_la_LIBADD = \
5762 $(PYTHON_DEVEL_LIBS) \
5763 libsystemd-shared.la \
5766 login_la_SOURCES = \
5767 src/python-systemd/login.c \
5768 src/python-systemd/pyutil.c \
5769 src/python-systemd/pyutil.h
5773 -fvisibility=default \
5774 $(PYTHON_DEVEL_CFLAGS)
5776 login_la_LDFLAGS = \
5783 $(PYTHON_DEVEL_LIBS) \
5784 libsystemd-shared.la \
5787 dist_pkgpyexec_PYTHON = \
5788 src/python-systemd/journal.py \
5789 src/python-systemd/daemon.py \
5790 src/python-systemd/__init__.py
5792 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5793 $(AM_V_at)$(MKDIR_P) $(dir $@)
5794 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5797 src/python-systemd/id128-constants.h
5799 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5801 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5802 $(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/
5803 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5806 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5807 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5810 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5811 $(MAKE) DESTDIR="$$dir" install && \
5812 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5817 CLEAN_LOCAL_HOOKS += clean-sphinx
5819 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5822 -rm -rf docs/html/python-systemd/
5824 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5826 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5827 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5829 # ------------------------------------------------------------------------------
5830 if ENABLE_COMPAT_LIBS
5832 src/compat-libs/linkwarning.h
5834 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5835 $(AM_V_at)$(MKDIR_P) $(dir $@)
5836 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5839 libsystemd-journal.c \
5840 libsystemd-login.c \
5841 libsystemd-id128.c \
5844 libsystemd_journal_la_SOURCES = \
5845 libsystemd-journal.c \
5846 src/compat-libs/libsystemd-journal.sym
5848 libsystemd_journal_la_CPPFLAGS = \
5850 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5852 libsystemd_journal_la_LDFLAGS = \
5854 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5855 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5857 libsystemd_journal_la_LIBADD = \
5858 libsystemd-journal-internal.la \
5859 libsystemd-internal.la \
5860 libsystemd-shared.la
5862 libsystemd_login_la_SOURCES = \
5863 libsystemd-login.c \
5864 src/compat-libs/libsystemd-login.sym
5866 libsystemd_login_la_CPPFLAGS = \
5868 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5870 libsystemd_login_la_LDFLAGS = \
5872 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5873 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5875 libsystemd_login_la_LIBADD = \
5876 libsystemd-internal.la \
5877 libsystemd-shared.la
5879 libsystemd_id128_la_SOURCES = \
5880 libsystemd-id128.c \
5881 src/compat-libs/libsystemd-id128.sym
5883 libsystemd_id128_la_CPPFLAGS = \
5885 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5887 libsystemd_id128_la_LDFLAGS = \
5889 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5890 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5892 libsystemd_id128_la_LIBADD = \
5893 libsystemd-internal.la \
5894 libsystemd-shared.la
5896 libsystemd_daemon_la_SOURCES = \
5897 libsystemd-daemon.c \
5898 src/compat-libs/libsystemd-daemon.sym
5900 libsystemd_daemon_la_CPPFLAGS = \
5902 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5904 libsystemd_daemon_la_LDFLAGS = \
5906 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5907 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5909 libsystemd_daemon_la_LIBADD = \
5910 libsystemd-internal.la \
5911 libsystemd-shared.la
5913 lib_LTLIBRARIES += \
5914 libsystemd-journal.la \
5915 libsystemd-login.la \
5916 libsystemd-id128.la \
5917 libsystemd-daemon.la
5919 pkgconfiglib_DATA += \
5920 src/compat-libs/libsystemd-journal.pc \
5921 src/compat-libs/libsystemd-login.pc \
5922 src/compat-libs/libsystemd-id128.pc \
5923 src/compat-libs/libsystemd-daemon.pc
5925 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5926 compat-lib-install-hook:
5927 libname=libsystemd-login.so && $(move-to-rootlibdir)
5928 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5929 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5930 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5932 compat-lib-uninstall-hook:
5933 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5934 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5935 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5936 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5938 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5939 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5943 src/compat-libs/libsystemd-journal.pc.in \
5944 src/compat-libs/libsystemd-login.pc.in \
5945 src/compat-libs/libsystemd-id128.pc.in \
5946 src/compat-libs/libsystemd-daemon.pc.in
5948 # ------------------------------------------------------------------------------
5950 '|rootlibexecdir=$(rootlibexecdir)|' \
5951 '|rootbindir=$(rootbindir)|' \
5952 '|bindir=$(bindir)|' \
5953 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5954 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5955 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5956 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5957 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5958 '|pkgdatadir=$(pkgdatadir)|' \
5959 '|systemunitdir=$(systemunitdir)|' \
5960 '|userunitdir=$(userunitdir)|' \
5961 '|systempresetdir=$(systempresetdir)|' \
5962 '|userpresetdir=$(userpresetdir)|' \
5963 '|udevhwdbdir=$(udevhwdbdir)|' \
5964 '|udevrulesdir=$(udevrulesdir)|' \
5965 '|catalogdir=$(catalogdir)|' \
5966 '|tmpfilesdir=$(tmpfilesdir)|' \
5967 '|sysusersdir=$(sysusersdir)|' \
5968 '|sysctldir=$(sysctldir)|' \
5969 '|systemgeneratordir=$(systemgeneratordir)|' \
5970 '|usergeneratordir=$(usergeneratordir)|' \
5971 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5972 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5973 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5974 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5975 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5976 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5977 '|prefix=$(prefix)|' \
5978 '|exec_prefix=$(exec_prefix)|' \
5979 '|libdir=$(libdir)|' \
5980 '|includedir=$(includedir)|' \
5981 '|VERSION=$(VERSION)|' \
5982 '|rootprefix=$(rootprefix)|' \
5983 '|udevlibexecdir=$(udevlibexecdir)|' \
5984 '|SUSHELL=$(SUSHELL)|' \
5985 '|DEBUGTTY=$(DEBUGTTY)|' \
5988 '|MKDIR_P=$(MKDIR_P)|' \
5989 '|QUOTAON=$(QUOTAON)|' \
5990 '|QUOTACHECK=$(QUOTACHECK)|' \
5991 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5992 '|VARLOGDIR=$(varlogdir)|' \
5993 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5994 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5995 '|PYTHON=$(PYTHON)|' \
5996 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5997 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5998 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5999 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6000 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6001 '|TTY_GID=$(TTY_GID)|' \
6002 '|systemsleepdir=$(systemsleepdir)|' \
6003 '|systemshutdowndir=$(systemshutdowndir)|' \
6004 '|binfmtdir=$(binfmtdir)|' \
6005 '|modulesloaddir=$(modulesloaddir)|'
6008 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6009 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6018 sysctl.d/%: sysctl.d/%.in
6027 src/core/macros.%: src/core/macros.%.in
6030 src/%.policy.in: src/%.policy.in.in
6033 shell-completion/%: shell-completion/%.in
6044 $(AM_V_GEN)chmod +x $@
6046 src/%.c: src/%.gperf
6047 $(AM_V_at)$(MKDIR_P) $(dir $@)
6048 $(AM_V_GPERF)$(GPERF) < $< > $@
6051 $(AM_V_at)$(MKDIR_P) $(dir $@)
6052 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6054 sysusers.d/%: sysusers.d/%.m4
6055 $(AM_V_at)$(MKDIR_P) $(dir $@)
6056 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6058 tmpfiles.d/%: tmpfiles.d/%.m4
6059 $(AM_V_at)$(MKDIR_P) $(dir $@)
6060 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6064 $(AM_V_at)$(MKDIR_P) $(dir $@)
6065 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6067 units/user/%: units/user/%.m4
6068 $(AM_V_at)$(MKDIR_P) $(dir $@)
6069 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6072 nodist_polkitpolicy_DATA = \
6073 $(polkitpolicy_files) \
6074 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6078 $(polkitpolicy_in_files) \
6079 $(polkitpolicy_in_in_files)
6082 $(nodist_systemunit_DATA) \
6083 $(nodist_userunit_DATA) \
6084 $(pkgconfiglib_DATA) \
6085 $(nodist_polkitpolicy_DATA)
6087 # ------------------------------------------------------------------------------
6089 man/custom-entities.ent: configure.ac
6090 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6091 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6092 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6096 man/custom-entities.ent
6101 --stringparam man.output.quietly 1 \
6102 --stringparam funcsynopsis.style ansi \
6103 --stringparam man.authors.section.enabled 0 \
6104 --stringparam man.copyright.section.enabled 0 \
6105 --stringparam systemd.version $(VERSION) \
6106 --path '$(builddir)/man:$(srcdir)/man'
6108 XSLTPROC_PROCESS_MAN = \
6109 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6111 XSLTPROC_PROCESS_HTML = \
6112 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6114 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6115 $(XSLTPROC_PROCESS_MAN)
6117 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6118 $(XSLTPROC_PROCESS_MAN)
6120 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6121 $(XSLTPROC_PROCESS_MAN)
6123 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6124 $(XSLTPROC_PROCESS_MAN)
6126 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6127 $(XSLTPROC_PROCESS_MAN)
6129 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6130 $(XSLTPROC_PROCESS_HTML)
6133 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6139 man/custom-html.xsl \
6142 # ------------------------------------------------------------------------------
6145 docs/sysvinit/README
6150 docs/sysvinit/README: docs/sysvinit/README.in
6153 docs/var-log/README: docs/var-log/README.in
6157 docs/sysvinit/README \
6162 docs/sysvinit/README.in \
6163 docs/var-log/README.in
6165 SOCKETS_TARGET_WANTS += \
6166 systemd-initctl.socket \
6167 systemd-shutdownd.socket
6171 RUNLEVEL1_TARGET_WANTS += \
6172 systemd-update-utmp-runlevel.service
6173 RUNLEVEL2_TARGET_WANTS += \
6174 systemd-update-utmp-runlevel.service
6175 RUNLEVEL3_TARGET_WANTS += \
6176 systemd-update-utmp-runlevel.service
6177 RUNLEVEL4_TARGET_WANTS += \
6178 systemd-update-utmp-runlevel.service
6179 RUNLEVEL5_TARGET_WANTS += \
6180 systemd-update-utmp-runlevel.service
6183 SYSINIT_TARGET_WANTS += \
6184 systemd-update-utmp.service
6187 SYSINIT_TARGET_WANTS += \
6188 systemd-update-done.service
6190 LOCAL_FS_TARGET_WANTS += \
6191 systemd-remount-fs.service \
6194 MULTI_USER_TARGET_WANTS += \
6196 systemd-ask-password-wall.path
6198 SYSINIT_TARGET_WANTS += \
6199 dev-hugepages.mount \
6201 sys-kernel-config.mount \
6202 sys-kernel-debug.mount \
6203 sys-fs-fuse-connections.mount \
6204 systemd-sysctl.service \
6205 systemd-ask-password-console.path
6208 SYSTEM_UNIT_ALIASES += \
6209 poweroff.target runlevel0.target \
6210 rescue.target runlevel1.target \
6211 multi-user.target runlevel2.target \
6212 multi-user.target runlevel3.target \
6213 multi-user.target runlevel4.target \
6214 graphical.target runlevel5.target \
6215 reboot.target runlevel6.target
6218 SYSTEM_UNIT_ALIASES += \
6219 graphical.target default.target \
6220 reboot.target ctrl-alt-del.target \
6221 getty@.service autovt@.service
6223 USER_UNIT_ALIASES += \
6224 $(systemunitdir)/shutdown.target shutdown.target \
6225 $(systemunitdir)/sockets.target sockets.target \
6226 $(systemunitdir)/timers.target timers.target \
6227 $(systemunitdir)/paths.target paths.target \
6228 $(systemunitdir)/bluetooth.target bluetooth.target \
6229 $(systemunitdir)/printer.target printer.target \
6230 $(systemunitdir)/sound.target sound.target \
6231 $(systemunitdir)/smartcard.target smartcard.target
6234 USER_UNIT_ALIASES += \
6235 $(systemunitdir)/busnames.target busnames.target
6238 GENERAL_ALIASES += \
6239 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6240 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6241 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6242 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6246 $(systemunitdir)/runlevel1.target.wants \
6247 $(systemunitdir)/runlevel2.target.wants \
6248 $(systemunitdir)/runlevel3.target.wants \
6249 $(systemunitdir)/runlevel4.target.wants \
6250 $(systemunitdir)/runlevel5.target.wants
6254 $(prefix)/lib/modules-load.d \
6255 $(sysconfdir)/modules-load.d \
6256 $(prefix)/lib/systemd/network \
6257 $(sysconfdir)/systemd/network \
6258 $(prefix)/lib/sysctl.d \
6259 $(sysconfdir)/sysctl.d \
6260 $(prefix)/lib/kernel/install.d \
6261 $(sysconfdir)/kernel/install.d \
6262 $(systemshutdowndir) \
6264 $(systemgeneratordir) \
6265 $(usergeneratordir) \
6268 $(pkgsysconfdir)/system \
6269 $(pkgsysconfdir)/system/multi-user.target.wants \
6270 $(pkgsysconfdir)/system/getty.target.wants \
6271 $(pkgsysconfdir)/user \
6272 $(dbussessionservicedir) \
6273 $(sysconfdir)/xdg/systemd
6275 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6277 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6279 install-data-hook: $(INSTALL_DATA_HOOKS)
6281 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6283 clean-local: $(CLEAN_LOCAL_HOOKS)
6284 rm -rf $(abs_srcdir)/install-tree
6285 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6286 $(abs_srcdir)/hwdb/iab.txt
6288 DISTCHECK_CONFIGURE_FLAGS = \
6289 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6290 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6291 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6292 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6293 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6294 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6295 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6296 --with-rootprefix=$$dc_install_base \
6297 --disable-split-usr \
6299 --enable-compat-libs
6302 DISTCHECK_CONFIGURE_FLAGS += \
6303 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6304 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6306 DISTCHECK_CONFIGURE_FLAGS += \
6307 --with-sysvinit-path= \
6308 --with-sysvrcnd-path=
6312 DISTCHECK_CONFIGURE_FLAGS += \
6317 DISTCHECK_CONFIGURE_FLAGS += \
6322 # Require python when making dist
6324 .PHONY: dist-check-python
6327 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6331 dist-check-compat-libs:
6332 if !ENABLE_COMPAT_LIBS
6333 @echo "*** compat-libs must be enabled in order to make dist"
6337 dist: dist-check-python dist-check-compat-libs
6339 # check "broken" platforms limited toolchains for link breakage before we release
6342 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6346 ( cd $(top_srcdir)/hwdb && \
6347 wget -N http://www.linux-usb.org/usb.ids \
6348 http://pci-ids.ucw.cz/v2.2/pci.ids \
6349 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6350 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6353 .PHONY: kdbus-update
6355 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6356 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6360 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6362 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6364 upload: all check dist
6365 scp systemd-$(VERSION).tar.xz $(www_target)
6368 doc-sync: all destdir-sphinx
6369 gtkdoc-rebase --html-dir=docs/libudev/html --online
6370 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6371 gtkdoc-rebase --html-dir=docs/gudev/html --online
6372 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6373 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6374 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6378 scp man/*.html gardel:public/systemd-man/
6380 .PHONY: lennart-fedora
6382 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6384 .PHONY: install-tree
6386 rm -rf $(abs_srcdir)/install-tree
6387 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6388 tree $(abs_srcdir)/install-tree
6390 # Let's run all tests of the test suite, but under valgrind. Let's
6391 # exclude the one perl script we have in there
6392 .PHONY: valgrind-tests
6393 valgrind-tests: $(TESTS)
6394 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6395 if file $$f | grep -q shell; then \
6396 echo -e "$${x}Skipping non-binary $$f"; else \
6397 echo -e "$${x}Running $$f"; \
6398 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6403 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6405 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6406 $(AM_V_GEN)cat $^ > $@
6408 .PHONY: check-api-docs
6409 check-api-docs: exported man
6410 $(AM_V_GEN)for symbol in `cat exported` ; do \
6411 if test -f $(builddir)/man/$$symbol.html ; then \
6412 echo " Symbol $$symbol() is documented." ; \
6414 echo "‣ Symbol $$symbol() lacks documentation." ; \
6418 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6419 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6421 undefined defined: $(ALL_OBJECTS)
6422 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6423 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6424 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6430 .PHONY: check-api-unused
6431 check-api-unused: defined undefined exported
6432 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6434 .PHONY: check-includes
6435 check-includes: $(top_srcdir)/tools/check-includes.pl
6436 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6437 | xargs $(top_srcdir)/tools/check-includes.pl
6440 $(top_srcdir)/tools/check-includes.pl
6442 # Stupid test that everything purported to be exported really is
6443 define generate-sym-test
6444 $(AM_V_at)$(MKDIR_P) $(dir $@)
6445 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6446 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6447 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6448 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6449 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6450 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6451 $(AM_V_at)printf 'return 0; }\n' >> $@
6454 test-libsystemd-sym.c: \
6455 $(top_builddir)/src/libsystemd/libsystemd.sym \
6456 src/systemd/sd-journal.h \
6457 src/systemd/sd-daemon.h \
6458 src/systemd/sd-login.h \
6459 src/systemd/sd-bus.h \
6460 src/systemd/sd-utf8.h \
6461 src/systemd/sd-resolve.h \
6462 src/systemd/sd-path.h
6463 $(generate-sym-test)
6465 test-libudev-sym.c: \
6466 src/libudev/libudev.sym \
6468 $(generate-sym-test)
6470 test_libsystemd_sym_SOURCES = \
6471 test-libsystemd-sym.c
6472 test_libsystemd_sym_LDADD = \
6475 test_libudev_sym_SOURCES = \
6477 test_libudev_sym_CFLAGS = \
6479 -Wno-deprecated-declarations
6480 test_libudev_sym_LDADD = \
6484 $(test_libsystemd_sym_SOURCES) \
6485 $(test_libudev_sym_SOURCES)
6488 test-libsystemd-sym \
6493 cppcheck --enable=all -q $(top_srcdir)
6495 # Used to extract compile flags for YCM.
6500 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6503 tools/gdb-sd_dump_hashmaps.py