1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfiglibdir=$(libdir)/pkgconfig
78 polkitpolicydir=$(datadir)/polkit-1/actions
79 bashcompletiondir=@bashcompletiondir@
80 zshcompletiondir=@zshcompletiondir@
81 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
82 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
83 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
84 varlogdir=$(localstatedir)/log
85 systemdstatedir=$(localstatedir)/lib/systemd
86 catalogstatedir=$(systemdstatedir)/catalog
87 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
152 noinst_PROGRAMS = $(manual_tests) $(tests)
158 udevlibexec_PROGRAMS =
160 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
161 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
162 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165 -include $(top_builddir)/config.h \
166 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
167 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
168 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
169 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
170 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
171 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
172 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
173 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
174 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
175 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
176 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
177 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
178 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
179 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
180 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
181 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
182 -DROOTPREFIX=\"$(rootprefix)\" \
183 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
184 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
185 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
186 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
187 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
188 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
189 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
190 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
191 -DX_SERVER=\"$(bindir)/X\" \
192 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
193 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
194 -DQUOTACHECK=\"$(QUOTACHECK)\" \
195 -DKEXEC=\"$(KEXEC)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DROOTLIBDIR=\"$(rootlibdir)\" \
198 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
199 -I $(top_srcdir)/src \
200 -I $(top_builddir)/src/shared \
201 -I $(top_srcdir)/src/shared \
202 -I $(top_srcdir)/src/network \
203 -I $(top_srcdir)/src/login \
204 -I $(top_srcdir)/src/journal \
205 -I $(top_srcdir)/src/timedate \
206 -I $(top_srcdir)/src/timesync \
207 -I $(top_srcdir)/src/resolve \
208 -I $(top_builddir)/src/resolve \
209 -I $(top_srcdir)/src/systemd \
210 -I $(top_builddir)/src/core \
211 -I $(top_srcdir)/src/core \
212 -I $(top_srcdir)/src/libudev \
213 -I $(top_srcdir)/src/udev \
214 -I $(top_srcdir)/src/udev/net \
215 -I $(top_builddir)/src/udev \
216 -I $(top_srcdir)/src/libsystemd/sd-bus \
217 -I $(top_srcdir)/src/libsystemd/sd-event \
218 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
219 -I $(top_srcdir)/src/libsystemd/sd-network \
220 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
221 -I $(top_srcdir)/src/libsystemd-network \
222 -I $(top_srcdir)/src/libsystemd-terminal \
225 AM_CFLAGS = $(OUR_CFLAGS)
226 AM_LDFLAGS = $(OUR_LDFLAGS)
228 # ------------------------------------------------------------------------------
229 define move-to-rootlibdir
230 if test "$(libdir)" != "$(rootlibdir)"; then \
231 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
232 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
233 rm -f $(DESTDIR)$(libdir)/$$libname && \
234 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
235 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
241 RUNLEVEL1_TARGET_WANTS =
242 RUNLEVEL2_TARGET_WANTS =
243 RUNLEVEL3_TARGET_WANTS =
244 RUNLEVEL4_TARGET_WANTS =
245 RUNLEVEL5_TARGET_WANTS =
246 SHUTDOWN_TARGET_WANTS =
247 LOCAL_FS_TARGET_WANTS =
248 MULTI_USER_TARGET_WANTS =
249 SYSINIT_TARGET_WANTS =
250 SOCKETS_TARGET_WANTS =
251 BUSNAMES_TARGET_WANTS =
252 TIMERS_TARGET_WANTS =
253 USER_SOCKETS_TARGET_WANTS =
254 USER_DEFAULT_TARGET_WANTS =
255 USER_BUSNAMES_TARGET_WANTS =
257 SYSTEM_UNIT_ALIASES =
261 install-target-wants-hook:
262 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
274 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
275 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
277 install-busnames-target-wants-hook:
278 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
282 [ -z "$$what" ] || ( \
283 dir=$(DESTDIR)$$dir/$$wants.wants && \
284 $(MKDIR_P) -m 0755 $$dir && \
287 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
290 install-directories-hook:
291 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
293 install-aliases-hook:
294 set -- $(SYSTEM_UNIT_ALIASES) && \
295 dir=$(systemunitdir) && $(install-aliases)
296 set -- $(USER_UNIT_ALIASES) && \
297 dir=$(userunitdir) && $(install-relative-aliases)
298 set -- $(GENERAL_ALIASES) && \
299 dir= && $(install-relative-aliases)
301 define install-aliases
302 while [ -n "$$1" ]; do \
303 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
304 rm -f $(DESTDIR)$$dir/$$2 && \
305 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
306 shift 2 || exit $$?; \
310 define install-relative-aliases
311 while [ -n "$$1" ]; do \
312 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
313 rm -f $(DESTDIR)$$dir/$$2 && \
314 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
315 shift 2 || exit $$?; \
319 install-touch-usr-hook:
320 touch -c $(DESTDIR)/$(prefix)
322 INSTALL_EXEC_HOOKS += \
323 install-target-wants-hook \
324 install-directories-hook \
325 install-aliases-hook \
326 install-touch-usr-hook
329 INSTALL_EXEC_HOOKS += \
330 install-busnames-target-wants-hook
333 # ------------------------------------------------------------------------------
334 AM_V_M4 = $(AM_V_M4_$(V))
335 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
336 AM_V_M4_0 = @echo " M4 " $@;
338 AM_V_XSLT = $(AM_V_XSLT_$(V))
339 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
340 AM_V_XSLT_0 = @echo " XSLT " $@;
342 AM_V_GPERF = $(AM_V_GPERF_$(V))
343 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
344 AM_V_GPERF_0 = @echo " GPERF " $@;
346 AM_V_LN = $(AM_V_LN_$(V))
347 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
348 AM_V_LN_0 = @echo " LN " $@;
350 AM_V_RM = $(AM_V_RM_$(V))
351 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
352 AM_V_RM_0 = @echo " RM " $@;
354 # ------------------------------------------------------------------------------
358 systemd-ask-password \
359 systemd-tty-ask-password-agent \
360 systemd-machine-id-setup \
367 systemd-detect-virt \
374 src/kernel-install/kernel-install
376 dist_kernelinstall_SCRIPTS = \
377 src/kernel-install/50-depmod.install \
378 src/kernel-install/90-loaderentry.install
380 rootlibexec_PROGRAMS = \
382 systemd-cgroups-agent \
387 systemd-reply-password \
389 systemd-machine-id-commit \
394 systemd-socket-proxyd \
398 rootlibexec_PROGRAMS += \
402 systemgenerator_PROGRAMS = \
403 systemd-getty-generator \
404 systemd-fstab-generator \
405 systemd-system-update-generator \
406 systemd-debug-generator
408 dist_bashcompletion_DATA = \
409 shell-completion/bash/busctl \
410 shell-completion/bash/journalctl \
411 shell-completion/bash/systemd-analyze \
412 shell-completion/bash/systemd-cat \
413 shell-completion/bash/systemd-cgls \
414 shell-completion/bash/systemd-cgtop \
415 shell-completion/bash/systemd-delta \
416 shell-completion/bash/systemd-detect-virt \
417 shell-completion/bash/systemd-nspawn \
418 shell-completion/bash/systemd-run \
419 shell-completion/bash/udevadm \
420 shell-completion/bash/kernel-install
422 nodist_bashcompletion_DATA = \
423 shell-completion/bash/systemctl
425 dist_zshcompletion_DATA = \
426 shell-completion/zsh/_journalctl \
427 shell-completion/zsh/_udevadm \
428 shell-completion/zsh/_kernel-install \
429 shell-completion/zsh/_systemd-nspawn \
430 shell-completion/zsh/_systemd-analyze \
431 shell-completion/zsh/_systemd-run \
432 shell-completion/zsh/_sd_hosts_or_user_at_host \
433 shell-completion/zsh/_sd_outputmodes \
434 shell-completion/zsh/_sd_unit_files \
435 shell-completion/zsh/_systemd-delta \
436 shell-completion/zsh/_systemd
438 nodist_zshcompletion_DATA = \
439 shell-completion/zsh/_systemctl
442 shell-completion/bash/systemctl.in \
443 shell-completion/zsh/_systemctl.in
446 $(nodist_bashcompletion_DATA) \
447 $(nodist_zshcompletion_DATA)
450 sysctl.d/50-default.conf
452 dist_systemunit_DATA = \
453 units/graphical.target \
454 units/multi-user.target \
455 units/emergency.target \
456 units/sysinit.target \
461 units/local-fs.target \
462 units/local-fs-pre.target \
463 units/initrd.target \
464 units/initrd-fs.target \
465 units/initrd-root-fs.target \
466 units/remote-fs.target \
467 units/remote-fs-pre.target \
468 units/network.target \
469 units/network-pre.target \
470 units/network-online.target \
471 units/nss-lookup.target \
472 units/nss-user-lookup.target \
473 units/poweroff.target \
474 units/reboot.target \
475 units/rescue.target \
476 units/rpcbind.target \
477 units/time-sync.target \
478 units/shutdown.target \
480 units/umount.target \
481 units/sigpwr.target \
483 units/sockets.target \
484 units/timers.target \
486 units/suspend.target \
488 units/slices.target \
491 units/systemd-initctl.socket \
492 units/systemd-shutdownd.socket \
493 units/syslog.socket \
494 units/dev-hugepages.mount \
495 units/dev-mqueue.mount \
496 units/sys-kernel-config.mount \
497 units/sys-kernel-debug.mount \
498 units/sys-fs-fuse-connections.mount \
500 units/printer.target \
502 units/bluetooth.target \
503 units/smartcard.target \
504 units/systemd-ask-password-wall.path \
505 units/systemd-ask-password-console.path \
506 units/systemd-udevd-control.socket \
507 units/systemd-udevd-kernel.socket \
508 units/system-update.target \
509 units/initrd-switch-root.target \
510 units/machines.target
513 dist_systemunit_DATA += \
514 $(dist_systemunit_DATA_busnames)
517 dist_systemunit_DATA_busnames += \
518 units/busnames.target
520 nodist_systemunit_DATA = \
521 units/getty@.service \
522 units/serial-getty@.service \
523 units/console-shell.service \
524 units/console-getty.service \
525 units/container-getty@.service \
526 units/systemd-initctl.service \
527 units/systemd-shutdownd.service \
528 units/systemd-remount-fs.service \
529 units/systemd-ask-password-wall.service \
530 units/systemd-ask-password-console.service \
531 units/systemd-sysctl.service \
532 units/emergency.service \
533 units/rescue.service \
534 units/user@.service \
535 units/systemd-suspend.service \
536 units/systemd-halt.service \
537 units/systemd-poweroff.service \
538 units/systemd-reboot.service \
539 units/systemd-kexec.service \
540 units/systemd-fsck@.service \
541 units/systemd-fsck-root.service \
542 units/systemd-machine-id-commit.service \
543 units/systemd-udevd.service \
544 units/systemd-udev-trigger.service \
545 units/systemd-udev-settle.service \
546 units/systemd-hwdb-update.service \
547 units/debug-shell.service \
548 units/initrd-parse-etc.service \
549 units/initrd-cleanup.service \
550 units/initrd-udevadm-cleanup-db.service \
551 units/initrd-switch-root.service \
552 units/systemd-nspawn@.service \
553 units/systemd-update-done.service
556 nodist_systemunit_DATA += \
557 units/systemd-update-utmp.service \
558 units/systemd-update-utmp-runlevel.service
561 dist_userunit_DATA = \
562 units/user/basic.target \
563 units/user/default.target \
564 units/user/exit.target
566 nodist_userunit_DATA = \
567 units/user/systemd-exit.service
569 dist_systempreset_DATA = \
570 system-preset/90-systemd.preset
573 units/getty@.service.m4 \
574 units/serial-getty@.service.m4 \
575 units/console-shell.service.m4.in \
576 units/console-getty.service.m4.in \
577 units/container-getty@.service.m4.in \
578 units/rescue.service.in \
579 units/systemd-initctl.service.in \
580 units/systemd-shutdownd.service.in \
581 units/systemd-remount-fs.service.in \
582 units/systemd-update-utmp.service.in \
583 units/systemd-update-utmp-runlevel.service.in \
584 units/systemd-ask-password-wall.service.in \
585 units/systemd-ask-password-console.service.in \
586 units/systemd-sysctl.service.in \
587 units/emergency.service.in \
588 units/systemd-halt.service.in \
589 units/systemd-poweroff.service.in \
590 units/systemd-reboot.service.in \
591 units/systemd-kexec.service.in \
592 units/user/systemd-exit.service.in \
593 units/systemd-fsck@.service.in \
594 units/systemd-fsck-root.service.in \
595 units/systemd-machine-id-commit.service.in \
596 units/user@.service.m4.in \
597 units/debug-shell.service.in \
598 units/systemd-suspend.service.in \
599 units/quotaon.service.in \
600 units/initrd-parse-etc.service.in \
601 units/initrd-cleanup.service.in \
602 units/initrd-udevadm-cleanup-db.service.in \
603 units/initrd-switch-root.service.in \
604 units/systemd-nspawn@.service.in \
605 units/systemd-update-done.service.in
608 units/console-shell.service.m4 \
609 units/console-getty.service.m4 \
610 units/container-getty@.service.m4 \
611 units/user@.service.m4
614 nodist_systemunit_DATA += \
615 units/rc-local.service \
616 units/halt-local.service
618 systemgenerator_PROGRAMS += \
619 systemd-sysv-generator \
620 systemd-rc-local-generator
624 units/rc-local.service.in \
625 units/halt-local.service.in
627 # automake is broken and can't handle files with a dash in front
628 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
630 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
632 units-uninstall-hook:
633 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
635 INSTALL_DATA_HOOKS += units-install-hook
636 UNINSTALL_DATA_HOOKS += units-uninstall-hook
645 src/libsystemd/sd-bus/PORTING-DBUS1 \
646 src/libsystemd/sd-bus/DIFFERENCES \
647 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
649 @INTLTOOL_POLICY_RULE@
651 # ------------------------------------------------------------------------------
656 include Makefile-man.am
658 .PHONY: man update-man-list
659 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
662 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
664 ${XML_FILES:.xml=.html}
666 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
683 $(AM_V_at)$(MKDIR_P) $(dir $@)
684 $(AM_V_LN)$(LN_S) -f ../../man $@
693 man/index.html: man/systemd.index.html
694 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
702 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
703 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
704 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
706 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
707 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
708 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
709 @echo "Makefile-man.am has been regenerated"
711 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
712 $(AM_V_at)$(MKDIR_P) $(dir $@)
713 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
715 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
716 $(AM_V_at)$(MKDIR_P) $(dir $@)
717 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
720 man/systemd.index.xml \
722 man/systemd.directives.xml \
723 man/glib-event-glue.c
726 man/systemd.index.xml \
727 man/systemd.directives.xml
738 tools/make-man-index.py \
739 tools/make-directive-index.py \
742 # ------------------------------------------------------------------------------
743 noinst_LTLIBRARIES += \
746 libsystemd_shared_la_SOURCES = \
747 src/shared/capability.c \
748 src/shared/capability.h \
749 src/shared/linux/auto_dev-ioctl.h \
750 src/shared/ioprio.h \
751 src/shared/missing.h \
752 src/shared/initreq.h \
753 src/shared/securebits.h \
754 src/shared/special.h \
756 src/shared/unaligned.h \
759 src/shared/sparse-endian.h \
760 src/shared/refcnt.h \
761 src/shared/udev-util.h \
762 src/shared/device-nodes.c \
763 src/shared/device-nodes.h \
768 src/shared/architecture.c \
769 src/shared/architecture.h \
770 src/shared/efivars.c \
771 src/shared/efivars.h \
772 src/shared/path-util.c \
773 src/shared/path-util.h \
774 src/shared/time-util.c \
775 src/shared/time-util.h \
776 src/shared/locale-util.c \
777 src/shared/locale-util.h \
778 src/shared/mempool.c \
779 src/shared/mempool.h \
780 src/shared/hashmap.c \
781 src/shared/hashmap.h \
782 src/shared/siphash24.c \
783 src/shared/siphash24.h \
789 src/shared/sleep-config.c \
790 src/shared/sleep-config.h \
793 src/shared/env-util.c \
794 src/shared/env-util.h \
795 src/shared/strbuf.c \
796 src/shared/strbuf.h \
797 src/shared/strxcpyx.c \
798 src/shared/strxcpyx.h \
799 src/shared/conf-parser.c \
800 src/shared/conf-parser.h \
803 src/shared/ratelimit.h \
804 src/shared/ratelimit.c \
805 src/shared/exit-status.c \
806 src/shared/exit-status.h \
809 src/shared/gunicode.c \
810 src/shared/gunicode.h \
813 src/shared/socket-util.c \
814 src/shared/socket-util.h \
815 src/shared/in-addr-util.c \
816 src/shared/in-addr-util.h \
817 src/shared/ether-addr-util.h \
818 src/shared/conf-files.c \
819 src/shared/conf-files.h \
820 src/shared/cgroup-util.c \
821 src/shared/cgroup-util.h \
822 src/shared/cgroup-show.c \
823 src/shared/cgroup-show.h \
824 src/shared/unit-name.c \
825 src/shared/unit-name.h \
826 src/shared/utmp-wtmp.h \
827 src/shared/watchdog.c \
828 src/shared/watchdog.h \
829 src/shared/spawn-ask-password-agent.c \
830 src/shared/spawn-ask-password-agent.h \
831 src/shared/replace-var.c \
832 src/shared/replace-var.h \
833 src/shared/spawn-polkit-agent.c \
834 src/shared/spawn-polkit-agent.h \
835 src/shared/clock-util.c \
836 src/shared/clock-util.h \
837 src/shared/time-dst.c \
838 src/shared/time-dst.h \
839 src/shared/calendarspec.c \
840 src/shared/calendarspec.h \
841 src/shared/fileio.c \
842 src/shared/fileio.h \
843 src/shared/output-mode.h \
844 src/shared/MurmurHash2.c \
845 src/shared/MurmurHash2.h \
846 src/shared/acpi-fpdt.h \
847 src/shared/acpi-fpdt.c \
848 src/shared/boot-timestamps.h \
849 src/shared/boot-timestamps.c \
852 src/shared/smack-util.c \
853 src/shared/smack-util.h \
854 src/shared/apparmor-util.c \
855 src/shared/apparmor-util.h \
856 src/shared/ima-util.c \
857 src/shared/ima-util.h \
858 src/shared/ptyfwd.c \
859 src/shared/ptyfwd.h \
860 src/shared/errno-list.c \
861 src/shared/errno-list.h \
862 src/shared/af-list.c \
863 src/shared/af-list.h \
864 src/shared/arphrd-list.c \
865 src/shared/arphrd-list.h \
866 src/shared/cap-list.c \
867 src/shared/cap-list.h \
874 src/shared/bus-label.c \
875 src/shared/bus-label.h \
877 src/shared/clean-ipc.h \
878 src/shared/clean-ipc.c \
879 src/shared/login-shared.c \
880 src/shared/login-shared.h \
883 src/shared/barrier.c \
884 src/shared/barrier.h \
889 src/shared/base-filesystem.c \
890 src/shared/base-filesystem.h \
891 src/shared/memfd-util.c \
892 src/shared/memfd-util.h \
893 src/shared/uid-range.c \
894 src/shared/uid-range.h \
895 src/shared/nss-util.h \
898 src/shared/sigbus.c \
899 src/shared/sigbus.h \
903 libsystemd_shared_la_SOURCES += \
904 src/shared/utmp-wtmp.c
907 nodist_libsystemd_shared_la_SOURCES = \
908 src/shared/errno-from-name.h \
909 src/shared/errno-to-name.h \
910 src/shared/af-from-name.h \
911 src/shared/af-to-name.h \
912 src/shared/arphrd-from-name.h \
913 src/shared/arphrd-to-name.h \
914 src/shared/cap-from-name.h \
915 src/shared/cap-to-name.h
917 libsystemd_shared_la_CFLAGS = \
923 libsystemd_shared_la_LIBADD = \
927 # ------------------------------------------------------------------------------
928 noinst_LTLIBRARIES += \
931 libsystemd_units_la_SOURCES = \
932 src/shared/install.c \
933 src/shared/install.h \
934 src/shared/install-printf.c \
935 src/shared/install-printf.h \
936 src/shared/path-lookup.c \
937 src/shared/path-lookup.h \
938 src/shared/specifier.c \
939 src/shared/specifier.h
941 # ------------------------------------------------------------------------------
942 noinst_LTLIBRARIES += \
945 libsystemd_label_la_SOURCES = \
946 src/shared/socket-label.c \
949 src/shared/selinux-util.c \
950 src/shared/selinux-util.h \
951 src/shared/mkdir-label.c \
952 src/shared/ask-password-api.c \
953 src/shared/ask-password-api.h \
954 src/shared/switch-root.h \
955 src/shared/switch-root.c \
956 src/shared/fileio-label.c \
957 src/shared/fileio-label.h \
958 src/shared/dev-setup.c \
959 src/shared/dev-setup.h \
960 src/shared/dropin.c \
961 src/shared/dropin.h \
962 src/shared/condition.c \
963 src/shared/condition.h \
964 src/shared/generator.h \
965 src/shared/generator.c \
966 src/shared/btrfs-util.c \
967 src/shared/btrfs-util.h \
968 src/shared/btrfs-ctree.h \
969 src/shared/machine-image.c \
970 src/shared/machine-image.h \
974 libsystemd_label_la_CFLAGS = \
978 libsystemd_label_la_LIBADD = \
981 # -----------------------------------------------------------------------------
984 dist_systemunit_DATA += \
985 units/ldconfig.service
987 SYSINIT_TARGET_WANTS += \
991 # ------------------------------------------------------------------------------
994 noinst_LTLIBRARIES += \
995 libsystemd-seccomp.la
997 libsystemd_seccomp_la_SOURCES = \
998 src/shared/seccomp-util.h \
999 src/shared/seccomp-util.c
1001 libsystemd_seccomp_la_CFLAGS = \
1005 libsystemd_seccomp_la_LIBADD = \
1009 # ------------------------------------------------------------------------------
1010 noinst_LTLIBRARIES += \
1013 libsystemd_logs_la_SOURCES = \
1014 src/shared/logs-show.c \
1015 src/shared/logs-show.h
1017 # ------------------------------------------------------------------------------
1019 noinst_LTLIBRARIES += \
1022 libsystemd_acl_la_SOURCES = \
1023 src/shared/acl-util.c \
1024 src/shared/acl-util.h
1026 libsystemd_acl_la_CFLAGS = \
1030 libsystemd_acl_la_LIBADD = \
1034 # ------------------------------------------------------------------------------
1035 noinst_LTLIBRARIES += \
1038 libsystemd_core_la_SOURCES = \
1041 src/core/unit-printf.c \
1042 src/core/unit-printf.h \
1045 src/core/manager.c \
1046 src/core/manager.h \
1047 src/core/transaction.c \
1048 src/core/transaction.h \
1049 src/core/load-fragment.c \
1050 src/core/load-fragment.h \
1051 src/core/service.c \
1052 src/core/service.h \
1055 src/core/busname.c \
1056 src/core/busname.h \
1057 src/core/bus-endpoint.c \
1058 src/core/bus-endpoint.h \
1059 src/core/bus-policy.c \
1060 src/core/bus-policy.h \
1063 src/core/snapshot.c \
1064 src/core/snapshot.h \
1069 src/core/automount.c \
1070 src/core/automount.h \
1081 src/core/load-dropin.c \
1082 src/core/load-dropin.h \
1083 src/core/execute.c \
1084 src/core/execute.h \
1089 src/core/dbus-manager.c \
1090 src/core/dbus-manager.h \
1091 src/core/dbus-unit.c \
1092 src/core/dbus-unit.h \
1093 src/core/dbus-job.c \
1094 src/core/dbus-job.h \
1095 src/core/dbus-service.c \
1096 src/core/dbus-service.h \
1097 src/core/dbus-socket.c \
1098 src/core/dbus-socket.h \
1099 src/core/dbus-busname.c \
1100 src/core/dbus-busname.h \
1101 src/core/dbus-target.c \
1102 src/core/dbus-target.h \
1103 src/core/dbus-snapshot.c \
1104 src/core/dbus-snapshot.h \
1105 src/core/dbus-device.c \
1106 src/core/dbus-device.h \
1107 src/core/dbus-mount.c \
1108 src/core/dbus-mount.h \
1109 src/core/dbus-automount.c \
1110 src/core/dbus-automount.h \
1111 src/core/dbus-swap.c \
1112 src/core/dbus-swap.h \
1113 src/core/dbus-timer.c \
1114 src/core/dbus-timer.h \
1115 src/core/dbus-path.c \
1116 src/core/dbus-path.h \
1117 src/core/dbus-slice.c \
1118 src/core/dbus-slice.h \
1119 src/core/dbus-scope.c \
1120 src/core/dbus-scope.h \
1121 src/core/dbus-execute.c \
1122 src/core/dbus-execute.h \
1123 src/core/dbus-kill.c \
1124 src/core/dbus-kill.h \
1125 src/core/dbus-cgroup.c \
1126 src/core/dbus-cgroup.h \
1129 src/core/selinux-access.c \
1130 src/core/selinux-access.h \
1131 src/core/selinux-setup.c \
1132 src/core/selinux-setup.h \
1133 src/core/smack-setup.c \
1134 src/core/smack-setup.h \
1135 src/core/ima-setup.c \
1136 src/core/ima-setup.h \
1137 src/core/locale-setup.h \
1138 src/core/locale-setup.c \
1139 src/core/hostname-setup.c \
1140 src/core/hostname-setup.h \
1141 src/core/machine-id-setup.c \
1142 src/core/machine-id-setup.h \
1143 src/core/mount-setup.c \
1144 src/core/mount-setup.h \
1145 src/core/kmod-setup.c \
1146 src/core/kmod-setup.h \
1147 src/core/loopback-setup.h \
1148 src/core/loopback-setup.c \
1149 src/core/namespace.c \
1150 src/core/namespace.h \
1151 src/core/killall.h \
1152 src/core/killall.c \
1153 src/core/audit-fd.c \
1154 src/core/audit-fd.h \
1155 src/core/show-status.c \
1156 src/core/show-status.h \
1157 src/core/failure-action.c \
1158 src/core/failure-action.h
1160 nodist_libsystemd_core_la_SOURCES = \
1161 src/core/load-fragment-gperf.c \
1162 src/core/load-fragment-gperf-nulstr.c
1164 libsystemd_core_la_CFLAGS = \
1169 $(APPARMOR_CFLAGS) \
1174 libsystemd_core_la_LIBADD = \
1175 libsystemd-units.la \
1176 libsystemd-label.la \
1177 libudev-internal.la \
1178 libsystemd-shared.la \
1179 libsystemd-internal.la \
1188 libsystemd_core_la_LIBADD += \
1189 libsystemd-seccomp.la
1192 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1193 $(AM_V_at)$(MKDIR_P) $(dir $@)
1194 $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
1197 src/core/load-fragment-gperf.gperf.m4
1200 src/core/load-fragment-gperf.gperf \
1201 src/core/load-fragment-gperf.c \
1202 src/core/load-fragment-gperf-nulstr.c \
1203 src/shared/errno-list.txt \
1204 src/shared/errno-from-name.gperf \
1205 src/shared/af-list.txt \
1206 src/shared/af-from-name.gperf \
1207 src/shared/arphrd-list.txt \
1208 src/shared/arphrd-from-name.gperf \
1209 src/shared/cap-list.txt \
1210 src/shared/cap-from-name.gperf \
1211 src/resolve/dns_type-list.txt \
1212 src/resolve/dns_type-from-name.gperf
1215 src/shared/errno-from-name.h \
1216 src/shared/errno-to-name.h \
1217 src/shared/af-from-name.h \
1218 src/shared/af-to-name.h \
1219 src/shared/arphrd-from-name.h \
1220 src/shared/arphrd-to-name.h \
1221 src/shared/cap-from-name.h \
1222 src/shared/cap-to-name.h \
1223 src/resolve/dns_type-from-name.h \
1224 src/resolve/dns_type-to-name.h
1226 %-from-name.gperf: %-list.txt
1227 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1229 %-from-name.h: %-from-name.gperf
1230 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1233 src/shared/errno-list.txt:
1234 $(AM_V_at)$(MKDIR_P) $(dir $@)
1235 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1237 src/shared/errno-to-name.h: src/shared/errno-list.txt
1238 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1241 src/shared/af-list.txt:
1242 $(AM_V_at)$(MKDIR_P) $(dir $@)
1243 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1245 src/shared/af-to-name.h: src/shared/af-list.txt
1246 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1249 src/shared/arphrd-list.txt:
1250 $(AM_V_at)$(MKDIR_P) $(dir $@)
1251 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1253 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1254 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1256 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1257 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1260 src/shared/cap-list.txt:
1261 $(AM_V_at)$(MKDIR_P) $(dir $@)
1262 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
1264 src/shared/cap-to-name.h: src/shared/cap-list.txt
1265 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1267 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1268 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1270 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1271 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1274 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1275 $(AM_V_at)$(MKDIR_P) $(dir $@)
1276 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1278 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1279 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1281 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1282 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1284 # ------------------------------------------------------------------------------
1293 libsystemd-core.la \
1296 dist_pkgsysconf_DATA += \
1297 src/core/system.conf \
1300 dist_dbuspolicy_DATA += \
1301 src/core/org.freedesktop.systemd1.conf
1303 dist_dbussystemservice_DATA += \
1304 src/core/org.freedesktop.systemd1.service
1306 polkitpolicy_in_in_files += \
1307 src/core/org.freedesktop.systemd1.policy.in.in
1309 pkgconfiglib_DATA += \
1312 nodist_rpmmacros_DATA = \
1313 src/core/macros.systemd
1316 src/core/systemd.pc.in \
1317 src/core/macros.systemd.in
1320 src/core/macros.systemd \
1321 src/core/org.freedesktop.systemd1.policy.in
1323 # ------------------------------------------------------------------------------
1368 test-strip-tab-ansi \
1403 test/daughter.service \
1408 test/grandchild.service \
1410 test/hello-after-sleep.target \
1411 test/hello.service \
1413 test/parent-deep.slice \
1416 test/sched_idle_bad.service \
1417 test/sched_idle_ok.service \
1418 test/sched_rr_bad.service \
1419 test/sched_rr_change.service \
1420 test/sched_rr_ok.service \
1421 test/shutdown.target \
1422 test/sleep.service \
1423 test/sockets.target \
1425 test/sysinit.target \
1426 test/testsuite.target \
1427 test/timers.target \
1428 test/unstoppable.service \
1429 test/path-changed.service \
1430 test/path-directorynotempty.service \
1431 test/path-existsglob.service \
1432 test/path-exists.service \
1433 test/path-makedirectory.service \
1434 test/path-modified.service \
1435 test/path-mycustomunit.service \
1436 test/path-service.service \
1437 test/path-changed.path \
1438 test/path-directorynotempty.path \
1439 test/path-existsglob.path \
1440 test/path-exists.path \
1441 test/path-makedirectory.path \
1442 test/path-modified.path \
1443 test/path-unit.path \
1444 test/exec-environment-empty.service \
1445 test/exec-environment-multiple.service \
1446 test/exec-environment.service \
1447 test/exec-group.service \
1448 test/exec-ignoresigpipe-no.service \
1449 test/exec-ignoresigpipe-yes.service \
1450 test/exec-personality-x86-64.service \
1451 test/exec-personality-x86.service \
1452 test/exec-privatedevices-no.service \
1453 test/exec-privatedevices-yes.service \
1454 test/exec-privatetmp-no.service \
1455 test/exec-privatetmp-yes.service \
1456 test/exec-systemcallerrornumber.service \
1457 test/exec-systemcallfilter-failing2.service \
1458 test/exec-systemcallfilter-failing.service \
1459 test/exec-systemcallfilter-not-failing2.service \
1460 test/exec-systemcallfilter-not-failing.service \
1461 test/exec-user.service \
1462 test/exec-workingdirectory.service \
1463 test/exec-umask-0177.service \
1464 test/exec-umask-default.service \
1465 test/bus-policy/hello.conf \
1466 test/bus-policy/methods.conf \
1467 test/bus-policy/ownerships.conf \
1468 test/bus-policy/signals.conf \
1469 test/bus-policy/check-own-rules.conf \
1470 test/bus-policy/many-rules.conf \
1471 test/bus-policy/test.conf
1475 src/test/test-helper.h
1477 test_device_nodes_SOURCES = \
1478 src/test/test-device-nodes.c
1480 test_device_nodes_LDADD = \
1481 libsystemd-shared.la
1483 test_engine_SOURCES = \
1484 src/test/test-engine.c
1486 test_engine_CFLAGS = \
1490 test_engine_LDADD = \
1491 libsystemd-core.la \
1494 test_job_type_SOURCES = \
1495 src/test/test-job-type.c
1497 test_job_type_CFLAGS = \
1501 test_job_type_LDADD = \
1502 libsystemd-core.la \
1515 test_loopback_SOURCES = \
1516 src/test/test-loopback.c
1518 test_loopback_LDADD = \
1521 test_hostname_SOURCES = \
1522 src/test/test-hostname.c
1524 test_hostname_LDADD = \
1531 test_boot_timestamp_SOURCES = \
1532 src/test/test-boot-timestamps.c
1534 test_boot_timestamp_LDADD = \
1535 libsystemd-shared.la
1538 test_unit_name_SOURCES = \
1539 src/test/test-unit-name.c
1541 test_unit_name_CFLAGS = \
1545 test_unit_name_LDADD = \
1546 libsystemd-core.la \
1549 test_unit_file_SOURCES = \
1550 src/test/test-unit-file.c
1552 test_unit_file_CFLAGS = \
1556 test_unit_file_LDADD = \
1557 libsystemd-core.la \
1560 test_utf8_SOURCES = \
1561 src/test/test-utf8.c
1564 libsystemd-shared.la
1566 test_capability_SOURCES = \
1567 src/test/test-capability.c
1569 test_capability_LDADD = \
1570 libsystemd-shared.la
1572 test_async_SOURCES = \
1573 src/test/test-async.c
1575 test_async_LDADD = \
1576 libsystemd-shared.la
1578 test_locale_util_SOURCES = \
1579 src/test/test-locale-util.c
1581 test_locale_util_LDADD = \
1582 libsystemd-shared.la
1584 test_copy_SOURCES = \
1585 src/test/test-copy.c
1588 libsystemd-label.la \
1589 libsystemd-shared.la
1591 test_sigbus_SOURCES = \
1592 src/test/test-sigbus.c
1594 test_sigbus_LDADD = \
1595 libsystemd-shared.la
1597 test_condition_SOURCES = \
1598 src/test/test-condition.c
1600 test_condition_LDADD = \
1601 libsystemd-label.la \
1602 libsystemd-internal.la \
1603 libsystemd-shared.la
1605 test_fdset_SOURCES = \
1606 src/test/test-fdset.c
1608 test_fdset_LDADD = \
1609 libsystemd-shared.la \
1610 libsystemd-internal.la
1612 test_ratelimit_SOURCES = \
1613 src/test/test-ratelimit.c
1615 test_ratelimit_LDADD = \
1616 libsystemd-shared.la
1618 test_util_SOURCES = \
1619 src/test/test-util.c
1622 libsystemd-shared.la
1624 test_path_lookup_SOURCES = \
1625 src/test/test-path-lookup.c
1627 test_path_lookup_LDADD = \
1629 libsystemd-units.la \
1630 libsystemd-shared.la
1632 test_uid_range_SOURCES = \
1633 src/test/test-uid-range.c
1635 test_uid_range_LDADD = \
1636 libsystemd-shared.la
1638 test_cap_list_SOURCES = \
1639 src/test/test-cap-list.c
1641 test_cap_list_LDADD = \
1642 libsystemd-shared.la
1644 test_socket_util_SOURCES = \
1645 src/test/test-socket-util.c
1647 test_socket_util_LDADD = \
1648 libsystemd-shared.la
1650 test_ring_SOURCES = \
1651 src/test/test-ring.c
1654 libsystemd-shared.la
1656 test_barrier_SOURCES = \
1657 src/test/test-barrier.c
1659 test_barrier_LDADD = \
1660 libsystemd-shared.la
1662 test_pty_SOURCES = \
1668 test_tmpfiles_SOURCES = \
1669 src/test/test-tmpfiles.c
1671 test_tmpfiles_LDADD = \
1672 libsystemd-shared.la
1674 test_namespace_SOURCES = \
1675 src/test/test-namespace.c
1677 test_verbs_SOURCES = \
1678 src/test/test-verbs.c
1680 test_verbs_LDADD = \
1681 libsystemd-shared.la
1683 test_namespace_LDADD = \
1687 src/test/test-hashmap-ordered.c
1690 src/test/test-hashmap-ordered.c
1692 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1693 $(AM_V_at)$(MKDIR_P) $(dir $@)
1694 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1695 { if (!match($$0, "^#include")) \
1696 gsub(/hashmap/, "ordered_hashmap"); \
1697 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1698 gsub(/Hashmap/, "OrderedHashmap"); \
1701 nodist_test_hashmap_SOURCES = \
1702 src/test/test-hashmap-ordered.c
1704 test_hashmap_SOURCES = \
1705 src/test/test-hashmap.c \
1706 src/test/test-hashmap-plain.c
1708 test_hashmap_LDADD = \
1709 libsystemd-shared.la
1711 test_set_SOURCES = \
1715 libsystemd-shared.la
1717 test_xml_SOURCES = \
1721 libsystemd-shared.la
1723 test_json_SOURCES = \
1724 src/test/test-json.c
1727 libsystemd-shared.la
1729 test_list_SOURCES = \
1730 src/test/test-list.c
1733 libsystemd-shared.la
1735 test_unaligned_LDADD = \
1736 libsystemd-shared.la
1738 test_unaligned_SOURCES = \
1739 src/test/test-unaligned.c
1741 test_tables_SOURCES = \
1742 src/test/test-tables.c \
1743 src/shared/test-tables.h \
1744 src/bus-proxyd/bus-xml-policy.c \
1745 src/bus-proxyd/bus-xml-policy.h \
1746 src/journal/journald-server.c \
1747 src/journal/journald-server.h
1749 test_tables_CPPFLAGS = \
1751 -I$(top_srcdir)/src/bus-proxyd
1753 test_tables_CFLAGS = \
1757 test_tables_LDADD = \
1758 libsystemd-logs.la \
1759 libsystemd-journal-internal.la \
1760 libsystemd-journal-core.la \
1761 libsystemd-core.la \
1765 test_prioq_SOURCES = \
1766 src/test/test-prioq.c
1768 test_prioq_LDADD = \
1769 libsystemd-shared.la
1771 test_fileio_SOURCES = \
1772 src/test/test-fileio.c
1774 test_fileio_LDADD = \
1775 libsystemd-shared.la
1777 test_time_SOURCES = \
1778 src/test/test-time.c
1781 libsystemd-shared.la
1783 test_architecture_SOURCES = \
1784 src/test/test-architecture.c
1786 test_architecture_LDADD = \
1787 libsystemd-shared.la
1789 test_log_SOURCES = \
1793 libsystemd-shared.la
1795 test_ipcrm_SOURCES = \
1796 src/test/test-ipcrm.c
1798 test_ipcrm_LDADD = \
1799 libsystemd-shared.la \
1802 test_btrfs_SOURCES = \
1803 src/test/test-btrfs.c
1805 test_btrfs_LDADD = \
1806 libsystemd-label.la \
1807 libsystemd-shared.la
1809 test_rtnl_manual_SOURCES = \
1810 src/test/test-rtnl-manual.c
1812 test_rtnl_manual_CFLAGS = \
1816 test_rtnl_manual_LDADD = \
1817 libsystemd-internal.la \
1818 libsystemd-shared.la \
1821 test_ellipsize_SOURCES = \
1822 src/test/test-ellipsize.c
1824 test_ellipsize_LDADD = \
1825 libsystemd-shared.la
1827 test_date_SOURCES = \
1828 src/test/test-date.c
1831 libsystemd-shared.la
1833 test_sleep_SOURCES = \
1834 src/test/test-sleep.c
1836 test_sleep_LDADD = \
1839 test_replace_var_SOURCES = \
1840 src/test/test-replace-var.c
1842 test_replace_var_LDADD = \
1843 libsystemd-shared.la
1845 test_calendarspec_SOURCES = \
1846 src/test/test-calendarspec.c
1848 test_calendarspec_LDADD = \
1849 libsystemd-shared.la
1851 test_strip_tab_ansi_SOURCES = \
1852 src/test/test-strip-tab-ansi.c
1854 test_strip_tab_ansi_LDADD = \
1855 libsystemd-shared.la
1857 test_daemon_SOURCES = \
1858 src/test/test-daemon.c
1860 test_daemon_LDADD = \
1861 libsystemd-internal.la \
1862 libsystemd-shared.la
1864 test_cgroup_SOURCES = \
1865 src/test/test-cgroup.c
1867 test_cgroup_LDADD = \
1868 libsystemd-label.la \
1869 libsystemd-shared.la \
1870 libsystemd-internal.la
1872 test_cgroup_mask_SOURCES = \
1873 src/test/test-cgroup-mask.c
1875 test_cgroup_mask_CPPFLAGS = \
1878 test_cgroup_mask_CFLAGS = \
1882 test_cgroup_mask_LDADD = \
1883 libsystemd-core.la \
1886 test_cgroup_util_SOURCES = \
1887 src/test/test-cgroup-util.c
1889 test_cgroup_util_LDADD = \
1890 libsystemd-label.la \
1891 libsystemd-internal.la \
1892 libsystemd-shared.la
1894 test_env_replace_SOURCES = \
1895 src/test/test-env-replace.c
1897 test_env_replace_LDADD = \
1898 libsystemd-shared.la
1900 test_strbuf_SOURCES = \
1901 src/test/test-strbuf.c
1903 test_strbuf_LDADD = \
1904 libsystemd-shared.la
1906 test_strv_SOURCES = \
1907 src/test/test-strv.c
1910 libsystemd-units.la \
1911 libsystemd-internal.la \
1912 libsystemd-shared.la
1914 test_path_util_SOURCES = \
1915 src/test/test-path-util.c
1917 test_path_util_LDADD = \
1918 libsystemd-shared.la
1920 test_path_SOURCES = \
1921 src/test/test-path.c
1923 test_path_CFLAGS = \
1929 test_execute_SOURCES = \
1930 src/test/test-execute.c
1932 test_execute_CFLAGS = \
1935 test_execute_LDADD = \
1938 test_strxcpyx_SOURCES = \
1939 src/test/test-strxcpyx.c
1941 test_strxcpyx_LDADD = \
1942 libsystemd-shared.la
1944 test_install_SOURCES = \
1945 src/test/test-install.c
1947 test_install_LDADD = \
1948 libsystemd-units.la \
1949 libsystemd-label.la \
1950 libsystemd-shared.la \
1951 libsystemd-internal.la
1953 test_watchdog_SOURCES = \
1954 src/test/test-watchdog.c
1956 test_watchdog_LDADD = \
1957 libsystemd-shared.la
1959 test_sched_prio_SOURCES = \
1960 src/test/test-sched-prio.c
1962 test_sched_prio_CPPFLAGS = \
1965 test_sched_prio_CFLAGS = \
1969 test_sched_prio_LDADD = \
1970 libsystemd-core.la \
1973 test_conf_files_SOURCES = \
1974 src/test/test-conf-files.c
1976 test_conf_files_LDADD = \
1977 libsystemd-shared.la
1979 test_bus_policy_SOURCES = \
1980 src/bus-proxyd/test-bus-xml-policy.c \
1981 src/bus-proxyd/bus-xml-policy.c \
1982 src/bus-proxyd/bus-xml-policy.h
1984 test_bus_policy_LDADD = \
1985 libsystemd-internal.la \
1986 libsystemd-shared.la
1988 # ------------------------------------------------------------------------------
1989 ## .PHONY so it always rebuilds it
1990 .PHONY: coverage lcov-run lcov-report coverage-sync
1992 # run lcov from scratch, always
1997 coverage_dir = coverage
1998 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2001 # reset run coverage tests
2003 @rm -rf $(coverage_dir)
2004 lcov $(coverage_opts) --zerocounters
2007 # generate report based on current coverage data
2009 $(MKDIR_P) $(coverage_dir)
2010 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2011 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2012 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2013 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2014 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2016 # lcov doesn't work properly with vpath builds, make sure that bad
2017 # output is not uploaded by mistake.
2018 coverage-sync: coverage
2019 test "$(builddir)" = "$(srcdir)"
2020 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2023 lcov-run lcov-report:
2024 echo "Need to reconfigure with --enable-coverage"
2027 # ------------------------------------------------------------------------------
2028 systemd_analyze_SOURCES = \
2029 src/analyze/analyze.c \
2030 src/analyze/analyze-verify.c \
2031 src/analyze/analyze-verify.h
2033 systemd_verify_CFLAGS = \
2037 systemd_analyze_LDADD = \
2038 libsystemd-core.la \
2039 libsystemd-internal.la \
2040 libsystemd-shared.la \
2043 # ------------------------------------------------------------------------------
2044 systemd_initctl_SOURCES = \
2045 src/initctl/initctl.c
2047 systemd_initctl_LDADD = \
2048 libsystemd-internal.la \
2049 libsystemd-shared.la
2051 # ------------------------------------------------------------------------------
2052 systemd_update_utmp_SOURCES = \
2053 src/update-utmp/update-utmp.c
2055 systemd_update_utmp_CFLAGS = \
2059 systemd_update_utmp_LDADD = \
2060 libsystemd-internal.la \
2061 libsystemd-shared.la \
2064 # ------------------------------------------------------------------------------
2065 systemd_update_done_SOURCES = \
2066 src/update-done/update-done.c
2068 systemd_update_done_LDADD = \
2069 libsystemd-internal.la \
2070 libsystemd-label.la \
2071 libsystemd-shared.la
2073 # ------------------------------------------------------------------------------
2074 systemd_shutdownd_SOURCES = \
2075 src/shutdownd/shutdownd.c
2077 systemd_shutdownd_LDADD = \
2078 libsystemd-label.la \
2079 libsystemd-internal.la \
2080 libsystemd-shared.la
2083 src/systemd/sd-shutdown.h
2085 # ------------------------------------------------------------------------------
2086 systemd_shutdown_SOURCES = \
2089 src/core/shutdown.c \
2090 src/core/mount-setup.c \
2091 src/core/mount-setup.h \
2092 src/core/killall.h \
2095 systemd_shutdown_LDADD = \
2096 libsystemd-label.la \
2097 libudev-internal.la \
2098 libsystemd-shared.la
2100 # ------------------------------------------------------------------------------
2102 systemd_modules_load_SOURCES = \
2103 src/modules-load/modules-load.c
2105 systemd_modules_load_CFLAGS = \
2109 systemd_modules_load_LDADD = \
2110 libsystemd-shared.la \
2113 rootlibexec_PROGRAMS += \
2114 systemd-modules-load
2116 nodist_systemunit_DATA += \
2117 units/systemd-modules-load.service
2119 SYSINIT_TARGET_WANTS += \
2120 systemd-modules-load.service
2123 nodist_systemunit_DATA += \
2124 units/kmod-static-nodes.service
2126 SYSINIT_TARGET_WANTS += \
2127 kmod-static-nodes.service
2132 units/systemd-modules-load.service.in \
2133 units/kmod-static-nodes.service.in
2135 # ------------------------------------------------------------------------------
2137 systemd_tmpfiles_SOURCES = \
2138 src/tmpfiles/tmpfiles.c
2140 systemd_tmpfiles_LDADD = \
2141 libsystemd-units.la \
2142 libsystemd-label.la \
2143 libsystemd-internal.la \
2144 libsystemd-shared.la
2146 rootbin_PROGRAMS += \
2149 dist_systemunit_DATA += \
2150 units/systemd-tmpfiles-clean.timer
2152 nodist_systemunit_DATA += \
2153 units/systemd-tmpfiles-setup-dev.service \
2154 units/systemd-tmpfiles-setup.service \
2155 units/systemd-tmpfiles-clean.service
2157 nodist_tmpfiles_DATA = \
2160 dist_tmpfiles_DATA = \
2161 tmpfiles.d/systemd.conf \
2162 tmpfiles.d/systemd-nologin.conf \
2163 tmpfiles.d/tmp.conf \
2164 tmpfiles.d/x11.conf \
2168 dist_tmpfiles_DATA += \
2169 tmpfiles.d/legacy.conf
2172 SYSINIT_TARGET_WANTS += \
2173 systemd-tmpfiles-setup-dev.service \
2174 systemd-tmpfiles-setup.service
2176 dist_zshcompletion_DATA += \
2177 shell-completion/zsh/_systemd-tmpfiles
2179 TIMERS_TARGET_WANTS += \
2180 systemd-tmpfiles-clean.timer
2184 $(sysconfdir)/tmpfiles.d
2188 tmpfiles.d/etc.conf.m4 \
2189 units/systemd-tmpfiles-setup-dev.service.in \
2190 units/systemd-tmpfiles-setup.service.in \
2191 units/systemd-tmpfiles-clean.service.in
2196 # ------------------------------------------------------------------------------
2198 systemd_sysusers_SOURCES = \
2199 src/sysusers/sysusers.c
2201 systemd_sysusers_LDADD = \
2202 libsystemd-units.la \
2203 libsystemd-label.la \
2204 libsystemd-internal.la \
2205 libsystemd-shared.la
2207 rootbin_PROGRAMS += \
2210 nodist_systemunit_DATA += \
2211 units/systemd-sysusers.service
2213 SYSINIT_TARGET_WANTS += \
2214 systemd-sysusers.service
2216 dist_sysusers_DATA = \
2217 sysusers.d/systemd.conf
2219 nodist_sysusers_DATA = \
2220 sysusers.d/basic.conf
2223 units/systemd-sysusers.service.in \
2224 sysusers.d/basic.conf.in
2227 sysusers.d/basic.conf
2233 # ------------------------------------------------------------------------------
2234 dist_factory_etc_DATA = \
2235 factory/etc/nsswitch.conf
2238 dist_factory_pam_DATA = \
2239 factory/etc/pam.d/system-auth \
2240 factory/etc/pam.d/other
2243 # ------------------------------------------------------------------------------
2245 systemd_firstboot_SOURCES = \
2246 src/firstboot/firstboot.c
2248 systemd_firstboot_LDADD = \
2249 libsystemd-units.la \
2250 libsystemd-label.la \
2251 libsystemd-internal.la \
2252 libsystemd-shared.la \
2255 rootbin_PROGRAMS += \
2258 nodist_systemunit_DATA += \
2259 units/systemd-firstboot.service
2262 units/systemd-firstboot.service.in
2264 SYSINIT_TARGET_WANTS += \
2265 systemd-firstboot.service
2268 # ------------------------------------------------------------------------------
2269 systemd_machine_id_setup_SOURCES = \
2270 src/machine-id-setup/machine-id-setup-main.c \
2271 src/core/machine-id-setup.c \
2272 src/core/machine-id-setup.h
2274 systemd_machine_id_setup_LDADD = \
2275 libsystemd-label.la \
2276 libsystemd-internal.la \
2277 libsystemd-shared.la
2279 # ------------------------------------------------------------------------------
2280 systemd_sysctl_SOURCES = \
2283 systemd_sysctl_LDADD = \
2284 libsystemd-shared.la
2286 # ------------------------------------------------------------------------------
2287 systemd_sleep_SOURCES = \
2290 systemd_sleep_LDADD = \
2291 libsystemd-shared.la
2293 # ------------------------------------------------------------------------------
2294 systemd_fsck_SOURCES = \
2297 systemd_fsck_LDADD = \
2298 libsystemd-internal.la \
2299 libudev-internal.la \
2300 libsystemd-shared.la
2302 # ------------------------------------------------------------------------------
2303 systemd_machine_id_commit_SOURCES = \
2304 src/machine-id-commit/machine-id-commit.c \
2305 src/core/machine-id-setup.c \
2306 src/core/machine-id-setup.h
2308 systemd_machine_id_commit_LDADD = \
2309 libsystemd-label.la \
2310 libsystemd-internal.la \
2311 libsystemd-shared.la
2313 SYSINIT_TARGET_WANTS += \
2314 systemd-machine-id-commit.service
2316 # ------------------------------------------------------------------------------
2317 systemd_ac_power_SOURCES = \
2318 src/ac-power/ac-power.c
2320 systemd_ac_power_LDADD = \
2321 libudev-internal.la \
2322 libsystemd-shared.la
2324 # ------------------------------------------------------------------------------
2325 systemd_detect_virt_SOURCES = \
2326 src/detect-virt/detect-virt.c
2328 systemd_detect_virt_LDADD = \
2329 libsystemd-shared.la
2331 INSTALL_EXEC_HOOKS += \
2332 systemd-detect-virt-install-hook
2334 # ------------------------------------------------------------------------------
2335 systemd_delta_SOURCES = \
2338 systemd_delta_LDADD = \
2339 libsystemd-shared.la
2341 # ------------------------------------------------------------------------------
2342 systemd_getty_generator_SOURCES = \
2343 src/getty-generator/getty-generator.c
2345 systemd_getty_generator_LDADD = \
2346 libsystemd-label.la \
2347 libsystemd-shared.la
2349 # ------------------------------------------------------------------------------
2350 systemd_debug_generator_SOURCES = \
2351 src/debug-generator/debug-generator.c
2353 systemd_debug_generator_LDADD = \
2354 libsystemd-label.la \
2355 libsystemd-shared.la
2357 # ------------------------------------------------------------------------------
2358 systemd_fstab_generator_SOURCES = \
2359 src/fstab-generator/fstab-generator.c \
2360 src/core/mount-setup.c
2362 systemd_fstab_generator_LDADD = \
2363 libsystemd-label.la \
2364 libsystemd-shared.la
2366 # ------------------------------------------------------------------------------
2367 systemd_system_update_generator_SOURCES = \
2368 src/system-update-generator/system-update-generator.c
2370 systemd_system_update_generator_LDADD = \
2371 libsystemd-label.la \
2372 libsystemd-shared.la
2374 # ------------------------------------------------------------------------------
2376 systemgenerator_PROGRAMS += \
2377 systemd-hibernate-resume-generator
2379 rootlibexec_PROGRAMS += \
2380 systemd-hibernate-resume
2382 systemd_hibernate_resume_SOURCES = \
2383 src/hibernate-resume/hibernate-resume.c
2385 systemd_hibernate_resume_LDADD = \
2386 libsystemd-internal.la \
2387 libsystemd-shared.la
2389 systemd_hibernate_resume_generator_SOURCES = \
2390 src/hibernate-resume/hibernate-resume-generator.c
2392 systemd_hibernate_resume_generator_LDADD = \
2393 libsystemd-label.la \
2394 libsystemd-shared.la
2397 units/systemd-hibernate.service.in \
2398 units/systemd-hibernate-resume@.service.in \
2399 units/systemd-hybrid-sleep.service.in
2401 dist_systemunit_DATA += \
2402 units/hibernate.target \
2403 units/hybrid-sleep.target
2405 nodist_systemunit_DATA += \
2406 units/systemd-hibernate.service \
2407 units/systemd-hibernate-resume@.service \
2408 units/systemd-hybrid-sleep.service
2411 # ------------------------------------------------------------------------------
2413 systemgenerator_PROGRAMS += \
2414 systemd-efi-boot-generator
2416 systemd_efi_boot_generator_SOURCES = \
2417 src/efi-boot-generator/efi-boot-generator.c
2419 systemd_efi_boot_generator_LDADD = \
2420 libsystemd-label.la \
2421 libsystemd-shared.la
2423 # ------------------------------------------------------------------------------
2426 src/boot/boot-loader.h \
2427 src/boot/bootctl.c \
2428 src/boot/boot-loader.c \
2432 libsystemd-shared.la \
2433 libsystemd-internal.la
2438 dist_bashcompletion_DATA += \
2439 shell-completion/bash/bootctl
2441 dist_zshcompletion_DATA += \
2442 shell-completion/zsh/_bootctl
2446 # ------------------------------------------------------------------------------
2448 systemgenerator_PROGRAMS += \
2449 systemd-gpt-auto-generator
2451 systemd_gpt_auto_generator_SOURCES = \
2452 src/gpt-auto-generator/gpt-auto-generator.c \
2453 src/shared/blkid-util.h
2455 systemd_gpt_auto_generator_LDADD = \
2456 libsystemd-label.la \
2457 libsystemd-internal.la \
2458 libudev-internal.la \
2459 libsystemd-shared.la \
2462 systemd_gpt_auto_generator_CFLAGS = \
2467 # ------------------------------------------------------------------------------
2469 systemgenerator_PROGRAMS += \
2470 systemd-dbus1-generator
2472 systemd_dbus1_generator_SOURCES = \
2473 src/dbus1-generator/dbus1-generator.c
2475 systemd_dbus1_generator_LDADD = \
2476 libsystemd-label.la \
2477 libsystemd-internal.la \
2478 libsystemd-shared.la
2480 dbus1-generator-install-hook:
2481 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2482 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2483 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2485 dbus1-generator-uninstall-hook:
2486 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2488 dist_xinitrc_SCRIPTS = \
2489 xorg/50-systemd-user.sh
2491 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2492 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2495 # ------------------------------------------------------------------------------
2496 systemd_sysv_generator_SOURCES = \
2497 src/sysv-generator/sysv-generator.c
2499 systemd_sysv_generator_LDADD = \
2500 libsystemd-core.la \
2501 libsystemd-label.la \
2502 libsystemd-shared.la
2504 # ------------------------------------------------------------------------------
2505 systemd_rc_local_generator_SOURCES = \
2506 src/rc-local-generator/rc-local-generator.c
2508 systemd_rc_local_generator_LDADD = \
2509 libsystemd-label.la \
2510 libsystemd-shared.la
2512 # ------------------------------------------------------------------------------
2513 systemd_remount_fs_SOURCES = \
2514 src/remount-fs/remount-fs.c \
2515 src/core/mount-setup.c \
2516 src/core/mount-setup.h
2518 systemd_remount_fs_LDADD = \
2519 libsystemd-label.la \
2520 libsystemd-shared.la
2522 # ------------------------------------------------------------------------------
2523 systemd_cgroups_agent_SOURCES = \
2524 src/cgroups-agent/cgroups-agent.c
2526 systemd_cgroups_agent_LDADD = \
2527 libsystemd-internal.la \
2528 libsystemd-shared.la
2530 # ------------------------------------------------------------------------------
2531 systemd_escape_SOURCES = \
2534 systemd_escape_LDADD = \
2535 libsystemd-shared.la
2537 # -----------------------------------------------------------------------------
2538 systemctl_SOURCES = \
2539 src/systemctl/systemctl.c
2542 libsystemd-units.la \
2543 libsystemd-label.la \
2544 libsystemd-internal.la \
2545 libsystemd-logs.la \
2546 libsystemd-journal-internal.la \
2547 libsystemd-shared.la
2549 # ------------------------------------------------------------------------------
2550 systemd_notify_SOURCES = \
2553 systemd_notify_LDADD = \
2554 libsystemd-internal.la \
2555 libsystemd-shared.la
2557 # ------------------------------------------------------------------------------
2558 systemd_path_SOURCES = \
2561 systemd_path_LDADD = \
2562 libsystemd-internal.la \
2563 libsystemd-shared.la
2565 # ------------------------------------------------------------------------------
2566 systemd_ask_password_SOURCES = \
2567 src/ask-password/ask-password.c
2569 systemd_ask_password_LDADD = \
2570 libsystemd-label.la \
2571 libsystemd-shared.la
2573 # ------------------------------------------------------------------------------
2574 systemd_reply_password_SOURCES = \
2575 src/reply-password/reply-password.c
2577 systemd_reply_password_LDADD = \
2578 libsystemd-shared.la
2580 # ------------------------------------------------------------------------------
2581 systemd_cgls_SOURCES = \
2584 systemd_cgls_LDADD = \
2585 libsystemd-internal.la \
2586 libsystemd-shared.la
2588 # ------------------------------------------------------------------------------
2589 systemd_cgtop_SOURCES = \
2592 systemd_cgtop_LDADD = \
2593 libsystemd-shared.la
2595 # ------------------------------------------------------------------------------
2596 systemd_nspawn_SOURCES = \
2597 src/nspawn/nspawn.c \
2598 src/core/mount-setup.c \
2599 src/core/mount-setup.h \
2600 src/core/loopback-setup.c \
2601 src/core/loopback-setup.h
2603 systemd_nspawn_CFLAGS = \
2608 systemd_nspawn_LDADD = \
2609 libsystemd-label.la \
2610 libsystemd-internal.la \
2611 libudev-internal.la \
2612 libsystemd-shared.la \
2616 systemd_nspawn_LDADD += \
2617 libsystemd-seccomp.la \
2621 # ------------------------------------------------------------------------------
2622 systemd_run_SOURCES = \
2625 systemd_run_LDADD = \
2626 libsystemd-label.la \
2627 libsystemd-internal.la \
2628 libsystemd-shared.la
2630 # ------------------------------------------------------------------------------
2631 systemd_bus_proxyd_SOURCES = \
2632 src/bus-proxyd/bus-proxyd.c \
2633 src/bus-proxyd/bus-xml-policy.c \
2634 src/bus-proxyd/bus-xml-policy.h
2636 systemd_bus_proxyd_LDADD = \
2637 libsystemd-internal.la \
2638 libsystemd-shared.la
2640 bus-proxyd-install-hook:
2641 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2642 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2643 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2645 bus-proxyd-uninstall-hook:
2646 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2648 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2649 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2652 nodist_systemunit_DATA += \
2653 units/systemd-bus-proxyd@.service
2655 dist_systemunit_DATA += \
2656 units/systemd-bus-proxyd.socket
2658 nodist_userunit_DATA += \
2659 units/user/systemd-bus-proxyd@.service
2661 dist_userunit_DATA += \
2662 units/user/systemd-bus-proxyd.socket
2666 units/systemd-bus-proxyd@.service.m4.in \
2667 units/user/systemd-bus-proxyd@.service.in
2670 units/systemd-bus-proxyd@.service.m4
2673 bus-proxyd-set-cap-hook:
2674 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2676 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2679 # ------------------------------------------------------------------------------
2680 systemd_tty_ask_password_agent_SOURCES = \
2681 src/tty-ask-password-agent/tty-ask-password-agent.c
2683 systemd_tty_ask_password_agent_LDADD = \
2684 libsystemd-label.la \
2685 libsystemd-shared.la
2687 # ------------------------------------------------------------------------------
2688 libsystemd_internal_la_SOURCES = \
2689 src/systemd/sd-bus.h \
2690 src/systemd/sd-bus-protocol.h \
2691 src/systemd/sd-bus-vtable.h \
2692 src/systemd/sd-utf8.h \
2693 src/systemd/sd-event.h \
2694 src/systemd/sd-rtnl.h \
2695 src/systemd/sd-resolve.h \
2696 src/systemd/sd-login.h \
2697 src/systemd/sd-id128.h \
2698 src/systemd/sd-daemon.h \
2699 src/systemd/sd-path.h \
2700 src/systemd/sd-network.h \
2701 src/systemd/sd-hwdb.h \
2702 src/libsystemd/sd-bus/sd-bus.c \
2703 src/libsystemd/sd-bus/bus-control.c \
2704 src/libsystemd/sd-bus/bus-control.h \
2705 src/libsystemd/sd-bus/bus-error.c \
2706 src/libsystemd/sd-bus/bus-error.h \
2707 src/libsystemd/sd-bus/bus-common-errors.h \
2708 src/libsystemd/sd-bus/bus-common-errors.c \
2709 src/libsystemd/sd-bus/bus-internal.c \
2710 src/libsystemd/sd-bus/bus-internal.h \
2711 src/libsystemd/sd-bus/bus-socket.c \
2712 src/libsystemd/sd-bus/bus-socket.h \
2713 src/libsystemd/sd-bus/bus-kernel.c \
2714 src/libsystemd/sd-bus/bus-kernel.h \
2715 src/libsystemd/sd-bus/bus-container.c \
2716 src/libsystemd/sd-bus/bus-container.h \
2717 src/libsystemd/sd-bus/bus-message.c \
2718 src/libsystemd/sd-bus/bus-message.h \
2719 src/libsystemd/sd-bus/bus-creds.c \
2720 src/libsystemd/sd-bus/bus-creds.h \
2721 src/libsystemd/sd-bus/bus-signature.c \
2722 src/libsystemd/sd-bus/bus-signature.h \
2723 src/libsystemd/sd-bus/bus-type.c \
2724 src/libsystemd/sd-bus/bus-type.h \
2725 src/libsystemd/sd-bus/bus-match.c \
2726 src/libsystemd/sd-bus/bus-match.h \
2727 src/libsystemd/sd-bus/bus-bloom.c \
2728 src/libsystemd/sd-bus/bus-bloom.h \
2729 src/libsystemd/sd-bus/bus-introspect.c \
2730 src/libsystemd/sd-bus/bus-introspect.h \
2731 src/libsystemd/sd-bus/bus-objects.c \
2732 src/libsystemd/sd-bus/bus-objects.h \
2733 src/libsystemd/sd-bus/bus-gvariant.c \
2734 src/libsystemd/sd-bus/bus-gvariant.h \
2735 src/libsystemd/sd-bus/bus-convenience.c \
2736 src/libsystemd/sd-bus/bus-track.c \
2737 src/libsystemd/sd-bus/bus-track.h \
2738 src/libsystemd/sd-bus/bus-util.c \
2739 src/libsystemd/sd-bus/bus-util.h \
2740 src/libsystemd/sd-bus/bus-slot.c \
2741 src/libsystemd/sd-bus/bus-slot.h \
2742 src/libsystemd/sd-bus/bus-protocol.h \
2743 src/libsystemd/sd-bus/kdbus.h \
2744 src/libsystemd/sd-utf8/sd-utf8.c \
2745 src/libsystemd/sd-event/sd-event.c \
2746 src/libsystemd/sd-event/event-util.h \
2747 src/libsystemd/sd-rtnl/sd-rtnl.c \
2748 src/libsystemd/sd-rtnl/rtnl-internal.h \
2749 src/libsystemd/sd-rtnl/rtnl-message.c \
2750 src/libsystemd/sd-rtnl/rtnl-types.h \
2751 src/libsystemd/sd-rtnl/rtnl-types.c \
2752 src/libsystemd/sd-rtnl/rtnl-util.h \
2753 src/libsystemd/sd-rtnl/rtnl-util.c \
2754 src/libsystemd/sd-rtnl/local-addresses.h \
2755 src/libsystemd/sd-rtnl/local-addresses.c \
2756 src/libsystemd/sd-id128/sd-id128.c \
2757 src/libsystemd/sd-daemon/sd-daemon.c \
2758 src/libsystemd/sd-login/sd-login.c \
2759 src/libsystemd/sd-path/sd-path.c \
2760 src/libsystemd/sd-network/sd-network.c \
2761 src/libsystemd/sd-network/network-util.h \
2762 src/libsystemd/sd-network/network-util.c \
2763 src/libsystemd/sd-hwdb/sd-hwdb.c \
2764 src/libsystemd/sd-hwdb/hwdb-util.h \
2765 src/libsystemd/sd-hwdb/hwdb-internal.h
2767 nodist_libsystemd_internal_la_SOURCES = \
2768 src/libsystemd/libsystemd.sym
2770 libsystemd_internal_la_CFLAGS = \
2774 libsystemd_internal_la_LIBADD = \
2777 libsystemd_resolve_la_SOURCES = \
2778 src/libsystemd/sd-resolve/sd-resolve.c \
2779 src/libsystemd/sd-resolve/resolve-util.h
2781 libsystemd_resolve_la_CFLAGS = \
2785 libsystemd_resolve_la_LIBADD = \
2788 noinst_LTLIBRARIES += \
2789 libsystemd-internal.la \
2790 libsystemd-resolve.la
2792 libsystemd_dump_la_SOURCES = \
2793 src/libsystemd/sd-bus/bus-dump.c \
2794 src/libsystemd/sd-bus/bus-dump.h
2796 noinst_LTLIBRARIES += \
2800 src/libsystemd/libsystemd.sym.m4 \
2801 src/libsystemd/libsystemd.pc.in \
2802 src/libsystemd/sd-bus/DIFFERENCES \
2803 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2806 src/libsystemd/libsystemd.sym
2809 src/libsystemd/libsystemd.sym
2811 libsystemd_la_SOURCES = \
2812 $(libsystemd_internal_la_SOURCES) \
2813 $(libsystemd_resolve_la_SOURCES) \
2814 $(libsystemd_journal_internal_la_SOURCES)
2816 nodist_libsystemd_la_SOURCES = \
2817 $(nodist_libsystemd_internal_la_SOURCES)
2819 libsystemd_la_CFLAGS = \
2820 $(libsystemd_internal_la_CFLAGS) \
2821 $(libsystemd_resolve_la_CFLAGS) \
2822 $(libsystemd_journal_internal_la_CFLAGS)
2824 libsystemd_la_LDFLAGS = \
2826 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2827 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2829 libsystemd_la_LIBADD = \
2830 libsystemd-shared.la \
2831 $(libsystemd_internal_la_LIBADD) \
2832 $(libsystemd_journal_internal_la_LIBADD) \
2833 $(libsystemd_resolve_la_LIBADD)
2835 libsystemd-install-hook:
2836 libname=libsystemd.so && $(move-to-rootlibdir)
2838 libsystemd-uninstall-hook:
2839 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2841 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2842 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2844 pkgconfiglib_DATA += \
2845 src/libsystemd/libsystemd.pc
2847 pkginclude_HEADERS += \
2848 src/systemd/sd-login.h \
2849 src/systemd/sd-id128.h \
2850 src/systemd/sd-daemon.h
2853 pkginclude_HEADERS += \
2854 src/systemd/sd-bus.h \
2855 src/systemd/sd-bus-protocol.h \
2856 src/systemd/sd-bus-vtable.h \
2857 src/systemd/sd-utf8.h \
2858 src/systemd/sd-event.h \
2859 src/systemd/sd-rtnl.h \
2860 src/systemd/sd-resolve.h \
2861 src/systemd/sd-path.h
2864 lib_LTLIBRARIES += \
2869 test-bus-signature \
2875 test-bus-kernel-bloom \
2876 test-bus-kernel-benchmark \
2877 test-bus-zero-copy \
2878 test-bus-introspect \
2885 test-local-addresses \
2891 test_bus_marshal_SOURCES = \
2892 src/libsystemd/sd-bus/test-bus-marshal.c
2894 test_bus_marshal_LDADD = \
2895 libsystemd-dump.la \
2896 libsystemd-internal.la \
2897 libsystemd-shared.la \
2901 test_bus_marshal_CFLAGS = \
2906 test_bus_signature_SOURCES = \
2907 src/libsystemd/sd-bus/test-bus-signature.c
2909 test_bus_signature_LDADD = \
2910 libsystemd-internal.la \
2911 libsystemd-shared.la
2913 test_bus_chat_SOURCES = \
2914 src/libsystemd/sd-bus/test-bus-chat.c
2916 test_bus_chat_CFLAGS = \
2920 test_bus_chat_LDADD = \
2921 libsystemd-internal.la \
2922 libsystemd-shared.la
2924 test_bus_cleanup_SOURCES = \
2925 src/libsystemd/sd-bus/test-bus-cleanup.c
2927 test_bus_cleanup_CFLAGS = \
2931 test_bus_cleanup_LDADD = \
2932 libsystemd-internal.la \
2933 libsystemd-shared.la
2935 test_bus_server_SOURCES = \
2936 src/libsystemd/sd-bus/test-bus-server.c
2938 test_bus_server_CFLAGS = \
2942 test_bus_server_LDADD = \
2943 libsystemd-internal.la \
2944 libsystemd-shared.la
2946 test_bus_objects_SOURCES = \
2947 src/libsystemd/sd-bus/test-bus-objects.c
2949 test_bus_objects_CFLAGS = \
2953 test_bus_objects_LDADD = \
2954 libsystemd-dump.la \
2955 libsystemd-internal.la \
2956 libsystemd-shared.la
2958 test_bus_error_SOURCES = \
2959 src/libsystemd/sd-bus/test-bus-error.c
2961 test_bus_error_LDADD = \
2962 libsystemd-internal.la \
2963 libsystemd-shared.la
2965 test_bus_gvariant_SOURCES = \
2966 src/libsystemd/sd-bus/test-bus-gvariant.c
2968 test_bus_gvariant_LDADD = \
2969 libsystemd-dump.la \
2970 libsystemd-internal.la \
2971 libsystemd-shared.la \
2974 test_bus_gvariant_CFLAGS = \
2978 test_bus_creds_SOURCES = \
2979 src/libsystemd/sd-bus/test-bus-creds.c
2981 test_bus_creds_LDADD = \
2982 libsystemd-dump.la \
2983 libsystemd-internal.la \
2984 libsystemd-shared.la
2986 test_bus_match_SOURCES = \
2987 src/libsystemd/sd-bus/test-bus-match.c
2989 test_bus_match_LDADD = \
2990 libsystemd-internal.la \
2991 libsystemd-shared.la
2993 test_bus_kernel_SOURCES = \
2994 src/libsystemd/sd-bus/test-bus-kernel.c
2996 test_bus_kernel_LDADD = \
2997 libsystemd-dump.la \
2998 libsystemd-internal.la \
2999 libsystemd-shared.la
3001 test_bus_kernel_bloom_SOURCES = \
3002 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3004 test_bus_kernel_bloom_LDADD = \
3005 libsystemd-internal.la \
3006 libsystemd-shared.la
3008 test_bus_kernel_benchmark_SOURCES = \
3009 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3011 test_bus_kernel_benchmark_LDADD = \
3012 libsystemd-internal.la \
3013 libsystemd-shared.la
3015 test_bus_zero_copy_SOURCES = \
3016 src/libsystemd/sd-bus/test-bus-zero-copy.c
3018 test_bus_zero_copy_LDADD = \
3019 libsystemd-dump.la \
3020 libsystemd-internal.la \
3021 libsystemd-shared.la
3023 test_bus_introspect_SOURCES = \
3024 src/libsystemd/sd-bus/test-bus-introspect.c
3026 test_bus_introspect_LDADD = \
3027 libsystemd-internal.la \
3028 libsystemd-shared.la
3030 test_event_SOURCES = \
3031 src/libsystemd/sd-event/test-event.c
3033 test_event_LDADD = \
3034 libsystemd-internal.la \
3035 libsystemd-shared.la
3037 test_rtnl_SOURCES = \
3038 src/libsystemd/sd-rtnl/test-rtnl.c
3041 libsystemd-internal.la \
3042 libsystemd-shared.la
3044 test_local_addresses_SOURCES = \
3045 src/libsystemd/sd-rtnl/test-local-addresses.c
3047 test_local_addresses_LDADD = \
3048 libsystemd-internal.la \
3049 libsystemd-shared.la
3051 test_resolve_SOURCES = \
3052 src/libsystemd/sd-resolve/test-resolve.c
3054 test_resolve_LDADD = \
3055 libsystemd-resolve.la \
3056 libsystemd-internal.la \
3057 libsystemd-shared.la
3059 test_resolve_CFLAGS = \
3064 src/libsystemd/sd-bus/busctl.c \
3065 src/libsystemd/sd-bus/busctl-introspect.c \
3066 src/libsystemd/sd-bus/busctl-introspect.h
3069 libsystemd-dump.la \
3070 libsystemd-internal.la \
3071 libsystemd-shared.la
3073 # ------------------------------------------------------------------------------
3074 noinst_LTLIBRARIES += \
3075 libsystemd-network.la
3077 libsystemd_network_la_CFLAGS = \
3081 libsystemd_network_la_SOURCES = \
3082 src/systemd/sd-dhcp-client.h \
3083 src/systemd/sd-dhcp-server.h \
3084 src/systemd/sd-dhcp-lease.h \
3085 src/systemd/sd-ipv4ll.h \
3086 src/systemd/sd-icmp6-nd.h \
3087 src/systemd/sd-dhcp6-client.h \
3088 src/systemd/sd-dhcp6-lease.h \
3089 src/systemd/sd-pppoe.h \
3090 src/systemd/sd-lldp.h \
3091 src/libsystemd-network/sd-dhcp-client.c \
3092 src/libsystemd-network/sd-dhcp-server.c \
3093 src/libsystemd-network/dhcp-network.c \
3094 src/libsystemd-network/dhcp-option.c \
3095 src/libsystemd-network/dhcp-packet.c \
3096 src/libsystemd-network/dhcp-internal.h \
3097 src/libsystemd-network/dhcp-server-internal.h \
3098 src/libsystemd-network/dhcp-protocol.h \
3099 src/libsystemd-network/dhcp-lease-internal.h \
3100 src/libsystemd-network/sd-dhcp-lease.c \
3101 src/libsystemd-network/sd-ipv4ll.c \
3102 src/libsystemd-network/ipv4ll-network.c \
3103 src/libsystemd-network/ipv4ll-packet.c \
3104 src/libsystemd-network/ipv4ll-internal.h \
3105 src/libsystemd-network/sd-pppoe.c \
3106 src/libsystemd-network/network-internal.c \
3107 src/libsystemd-network/network-internal.h \
3108 src/libsystemd-network/sd-icmp6-nd.c \
3109 src/libsystemd-network/sd-dhcp6-client.c \
3110 src/libsystemd-network/dhcp6-internal.h \
3111 src/libsystemd-network/dhcp6-protocol.h \
3112 src/libsystemd-network/dhcp6-network.c \
3113 src/libsystemd-network/dhcp6-option.c \
3114 src/libsystemd-network/dhcp6-lease-internal.h \
3115 src/libsystemd-network/sd-dhcp6-lease.c \
3116 src/libsystemd-network/lldp.h \
3117 src/libsystemd-network/lldp-tlv.h \
3118 src/libsystemd-network/lldp-tlv.c \
3119 src/libsystemd-network/lldp-network.h \
3120 src/libsystemd-network/lldp-network.c \
3121 src/libsystemd-network/lldp-port.h \
3122 src/libsystemd-network/lldp-port.c \
3123 src/libsystemd-network/lldp-internal.h \
3124 src/libsystemd-network/lldp-internal.c \
3125 src/libsystemd-network/lldp-util.h \
3126 src/libsystemd-network/sd-lldp.c
3128 libsystemd_network_la_LIBADD = \
3129 libudev-internal.la \
3130 libsystemd-label.la \
3131 libsystemd-internal.la \
3132 libsystemd-shared.la \
3135 test_dhcp_option_SOURCES = \
3136 src/libsystemd-network/dhcp-protocol.h \
3137 src/libsystemd-network/dhcp-internal.h \
3138 src/libsystemd-network/test-dhcp-option.c
3140 test_dhcp_option_LDADD = \
3141 libsystemd-network.la \
3142 libsystemd-internal.la \
3143 libsystemd-shared.la
3145 test_dhcp_client_SOURCES = \
3146 src/systemd/sd-dhcp-client.h \
3147 src/libsystemd-network/dhcp-protocol.h \
3148 src/libsystemd-network/dhcp-internal.h \
3149 src/libsystemd-network/test-dhcp-client.c
3151 test_dhcp_client_LDADD = \
3152 libsystemd-network.la \
3153 libsystemd-label.la \
3154 libsystemd-internal.la \
3155 libsystemd-shared.la
3157 test_dhcp_server_SOURCES = \
3158 src/libsystemd-network/test-dhcp-server.c
3160 test_dhcp_server_LDADD = \
3161 libsystemd-network.la \
3162 libsystemd-internal.la \
3163 libsystemd-shared.la
3165 test_ipv4ll_SOURCES = \
3166 src/systemd/sd-ipv4ll.h \
3167 src/libsystemd-network/ipv4ll-internal.h \
3168 src/libsystemd-network/test-ipv4ll.c
3170 test_ipv4ll_LDADD = \
3171 libsystemd-network.la \
3172 libsystemd-label.la \
3173 libsystemd-internal.la \
3174 libsystemd-shared.la
3176 test_pppoe_SOURCES = \
3177 src/systemd/sd-pppoe.h \
3178 src/libsystemd-network/test-pppoe.c
3180 test_pppoe_LDADD = \
3181 libsystemd-network.la \
3182 libsystemd-shared.la
3184 test_icmp6_rs_SOURCES = \
3185 src/systemd/sd-dhcp6-client.h \
3186 src/systemd/sd-icmp6-nd.h \
3187 src/libsystemd-network/dhcp6-internal.h \
3188 src/libsystemd-network/test-icmp6-rs.c
3190 test_icmp6_rs_LDADD = \
3191 libsystemd-network.la \
3192 libsystemd-internal.la \
3193 libsystemd-shared.la
3195 test_dhcp6_client_SOURCES = \
3196 src/systemd/sd-dhcp6-client.h \
3197 src/libsystemd-network/dhcp6-internal.h \
3198 src/libsystemd-network/test-dhcp6-client.c
3200 test_dhcp6_client_LDADD = \
3201 libsystemd-network.la \
3202 libsystemd-internal.la \
3203 libsystemd-shared.la
3205 test_lldp_SOURCES = \
3206 src/libsystemd-network/lldp.h \
3207 src/libsystemd-network/lldp-tlv.h \
3208 src/libsystemd-network/lldp-tlv.c \
3209 src/libsystemd-network/test-lldp.c
3212 libsystemd-network.la \
3213 libsystemd-internal.la \
3214 libsystemd-shared.la
3228 # ------------------------------------------------------------------------------
3230 noinst_LTLIBRARIES += \
3231 libsystemd-terminal.la
3233 rootlibexec_PROGRAMS += \
3236 noinst_PROGRAMS += \
3241 dist_pkgdata_DATA += \
3242 src/libsystemd-terminal/unifont-glyph-array.bin
3244 nodist_userunit_DATA += \
3245 units/user/systemd-consoled.service
3247 USER_DEFAULT_TARGET_WANTS += \
3248 systemd-consoled.service
3257 units/user/systemd-consoled.service.in
3259 libsystemd_terminal_la_CFLAGS = \
3263 libsystemd_terminal_la_SOURCES = \
3264 src/libsystemd-terminal/grdev.h \
3265 src/libsystemd-terminal/grdev-internal.h \
3266 src/libsystemd-terminal/grdev.c \
3267 src/libsystemd-terminal/grdev-drm.c \
3268 src/libsystemd-terminal/idev.h \
3269 src/libsystemd-terminal/idev-internal.h \
3270 src/libsystemd-terminal/idev.c \
3271 src/libsystemd-terminal/idev-evdev.c \
3272 src/libsystemd-terminal/idev-keyboard.c \
3273 src/libsystemd-terminal/sysview.h \
3274 src/libsystemd-terminal/sysview-internal.h \
3275 src/libsystemd-terminal/sysview.c \
3276 src/libsystemd-terminal/term.h \
3277 src/libsystemd-terminal/term-internal.h \
3278 src/libsystemd-terminal/term-charset.c \
3279 src/libsystemd-terminal/term-page.c \
3280 src/libsystemd-terminal/term-parser.c \
3281 src/libsystemd-terminal/term-screen.c \
3282 src/libsystemd-terminal/term-wcwidth.c \
3283 src/libsystemd-terminal/unifont.h \
3284 src/libsystemd-terminal/unifont-def.h \
3285 src/libsystemd-terminal/unifont.c
3287 libsystemd_terminal_la_LIBADD = \
3288 libudev-internal.la \
3289 libsystemd-internal.la \
3290 libsystemd-shared.la \
3293 systemd_consoled_CFLAGS = \
3297 systemd_consoled_SOURCES = \
3298 src/console/consoled.h \
3299 src/console/consoled.c \
3300 src/console/consoled-display.c \
3301 src/console/consoled-manager.c \
3302 src/console/consoled-session.c \
3303 src/console/consoled-terminal.c \
3304 src/console/consoled-workspace.c
3306 systemd_consoled_LDADD = \
3307 libsystemd-terminal.la \
3308 libsystemd-internal.la \
3309 libsystemd-shared.la \
3312 systemd_evcat_CFLAGS = \
3316 systemd_evcat_SOURCES = \
3317 src/libsystemd-terminal/evcat.c
3319 systemd_evcat_LDADD = \
3320 libsystemd-terminal.la \
3321 libsystemd-internal.la \
3322 libsystemd-shared.la \
3325 systemd_modeset_CFLAGS = \
3329 systemd_modeset_SOURCES = \
3330 src/libsystemd-terminal/modeset.c
3332 systemd_modeset_LDADD = \
3333 libsystemd-terminal.la \
3334 libsystemd-internal.la \
3335 libsystemd-shared.la \
3338 systemd_subterm_SOURCES = \
3339 src/libsystemd-terminal/subterm.c
3341 systemd_subterm_LDADD = \
3342 libsystemd-terminal.la \
3343 libsystemd-internal.la \
3344 libsystemd-shared.la
3346 test_term_page_SOURCES = \
3347 src/libsystemd-terminal/test-term-page.c
3349 test_term_page_LDADD = \
3350 libsystemd-terminal.la \
3351 libsystemd-internal.la \
3352 libsystemd-shared.la
3354 test_term_parser_SOURCES = \
3355 src/libsystemd-terminal/test-term-parser.c
3357 test_term_parser_LDADD = \
3358 libsystemd-terminal.la \
3359 libsystemd-internal.la \
3360 libsystemd-shared.la
3362 test_unifont_SOURCES = \
3363 src/libsystemd-terminal/test-unifont.c
3365 test_unifont_LDADD = \
3366 libsystemd-terminal.la \
3367 libsystemd-internal.la \
3368 libsystemd-shared.la
3370 .PHONY: update-unifont
3371 update-unifont: tools/compile-unifont.py
3372 $(AM_V_GEN)$(PYTHON) $< \
3373 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3374 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3375 @echo "unifont-glyph-array.bin has been regenerated"
3377 # ------------------------------------------------------------------------------
3387 include_HEADERS += \
3388 src/libudev/libudev.h
3390 lib_LTLIBRARIES += \
3393 libudev_la_SOURCES =\
3394 src/libudev/libudev.sym \
3395 src/libudev/libudev-private.h \
3396 src/libudev/libudev.c \
3397 src/libudev/libudev-list.c \
3398 src/libudev/libudev-util.c \
3399 src/libudev/libudev-device.c \
3400 src/libudev/libudev-enumerate.c \
3401 src/libudev/libudev-monitor.c \
3402 src/libudev/libudev-queue.c \
3403 src/libudev/libudev-hwdb.c
3405 libudev_la_CFLAGS = \
3409 libudev_la_LDFLAGS = \
3411 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3412 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3414 libudev_la_LIBADD = \
3415 libsystemd-internal.la \
3416 libsystemd-shared.la
3418 pkgconfiglib_DATA += \
3419 src/libudev/libudev.pc
3422 src/libudev/libudev.pc.in
3425 src/libudev/libudev.pc \
3430 $(AM_V_at)$(MKDIR_P) $(dir $@)
3431 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3434 $(AM_V_at)$(MKDIR_P) $(dir $@)
3435 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3437 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3438 libudev-install-hook:
3439 libname=libudev.so && $(move-to-rootlibdir)
3441 libudev-uninstall-hook:
3442 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3444 INSTALL_EXEC_HOOKS += libudev-install-hook
3445 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3447 # ------------------------------------------------------------------------------
3448 noinst_LTLIBRARIES += \
3451 libudev_internal_la_SOURCES =\
3452 $(libudev_la_SOURCES) \
3453 src/libudev/libudev-device-private.c
3455 libudev_internal_la_CFLAGS = \
3457 -fvisibility=default
3459 # ------------------------------------------------------------------------------
3461 $(sysconfdir)/udev/rules.d
3463 dist_network_DATA = \
3464 network/99-default.link \
3465 network/80-container-host0.network \
3466 network/80-container-ve.network
3468 dist_udevrules_DATA += \
3469 rules/42-usb-hid-pm.rules \
3470 rules/50-udev-default.rules \
3471 rules/60-drm.rules \
3472 rules/60-keyboard.rules \
3473 rules/70-mouse.rules \
3474 rules/60-persistent-storage-tape.rules \
3475 rules/60-persistent-serial.rules \
3476 rules/60-persistent-input.rules \
3477 rules/60-persistent-alsa.rules \
3478 rules/60-persistent-storage.rules \
3479 rules/64-btrfs.rules \
3480 rules/75-net-description.rules \
3481 rules/75-tty-description.rules \
3482 rules/78-sound-card.rules \
3483 rules/80-net-setup-link.rules \
3484 rules/95-udev-late.rules
3486 nodist_udevrules_DATA += \
3487 rules/99-systemd.rules
3489 udevconfdir = $(sysconfdir)/udev
3490 dist_udevconf_DATA = \
3493 sharepkgconfigdir = $(datadir)/pkgconfig
3494 sharepkgconfig_DATA = \
3498 rules/99-systemd.rules.in \
3502 rules/99-systemd.rules \
3506 units/systemd-udevd.service.in \
3507 units/systemd-udev-trigger.service.in \
3508 units/systemd-udev-settle.service.in
3511 units/systemd-udevd.service \
3512 units/systemd-udev-trigger.service \
3513 units/systemd-udev-settle.service
3515 SOCKETS_TARGET_WANTS += \
3516 systemd-udevd-control.socket \
3517 systemd-udevd-kernel.socket
3519 SYSINIT_TARGET_WANTS += \
3520 systemd-udevd.service \
3521 systemd-udev-trigger.service
3523 rootbin_PROGRAMS += \
3526 rootlibexec_PROGRAMS += \
3529 noinst_LTLIBRARIES += \
3532 src/udev/keyboard-keys.txt:
3533 $(AM_V_at)$(MKDIR_P) $(dir $@)
3534 $(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/' > $@
3536 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3537 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3539 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3540 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3542 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3543 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3545 libudev_core_la_SOURCES = \
3547 src/udev/udev-event.c \
3548 src/udev/udev-watch.c \
3549 src/udev/udev-node.c \
3550 src/udev/udev-rules.c \
3551 src/udev/udev-ctrl.c \
3552 src/udev/udev-builtin.c \
3553 src/udev/udev-builtin-btrfs.c \
3554 src/udev/udev-builtin-hwdb.c \
3555 src/udev/udev-builtin-input_id.c \
3556 src/udev/udev-builtin-keyboard.c \
3557 src/udev/udev-builtin-net_id.c \
3558 src/udev/udev-builtin-net_setup_link.c \
3559 src/udev/udev-builtin-path_id.c \
3560 src/udev/udev-builtin-usb_id.c \
3561 src/udev/net/link-config.h \
3562 src/udev/net/link-config.c \
3563 src/udev/net/ethtool-util.h \
3564 src/udev/net/ethtool-util.c
3566 nodist_libudev_core_la_SOURCES = \
3567 src/udev/keyboard-keys-from-name.h \
3568 src/udev/keyboard-keys-to-name.h \
3569 src/udev/net/link-config-gperf.c
3572 $(nodist_libudev_core_la_SOURCES)
3575 src/udev/keyboard-keys-from-name.gperf \
3576 src/udev/keyboard-keys.txt \
3577 src/udev/net/link-config-gperf.c
3580 src/udev/net/link-config-gperf.gperf
3582 libudev_core_la_CFLAGS = \
3587 libudev_core_la_LIBADD = \
3588 libudev-internal.la \
3589 libsystemd-label.la \
3590 libsystemd-internal.la \
3591 libsystemd-network.la \
3592 libsystemd-shared.la \
3597 libudev_core_la_SOURCES += \
3598 src/udev/udev-builtin-kmod.c
3600 dist_udevrules_DATA += \
3601 rules/80-drivers.rules
3605 libudev_core_la_SOURCES += \
3606 src/udev/udev-builtin-blkid.c
3610 libudev_core_la_SOURCES += \
3611 src/udev/udev-builtin-uaccess.c \
3612 src/login/logind-acl.c \
3613 src/libsystemd/sd-login/sd-login.c \
3614 src/systemd/sd-login.h
3616 libudev_core_la_LIBADD += \
3620 systemd_udevd_SOURCES = \
3623 systemd_udevd_LDADD = \
3627 src/udev/udevadm.c \
3628 src/udev/udevadm-info.c \
3629 src/udev/udevadm-control.c \
3630 src/udev/udevadm-monitor.c \
3631 src/udev/udevadm-hwdb.c \
3632 src/udev/udevadm-settle.c \
3633 src/udev/udevadm-trigger.c \
3634 src/udev/udevadm-test.c \
3635 src/udev/udevadm-test-builtin.c \
3636 src/udev/udevadm-util.c \
3637 src/udev/udevadm-util.h
3642 # ------------------------------------------------------------------------------
3645 $(sysconfdir)/udev/hwdb.d
3647 systemd_hwdb_SOURCES = \
3648 src/libsystemd/sd-hwdb/hwdb-internal.h \
3651 systemd_hwdb_LDADD = \
3652 libsystemd-shared.la \
3653 libsystemd-internal.la \
3656 rootbin_PROGRAMS += \
3659 dist_udevhwdb_DATA = \
3660 hwdb/20-pci-vendor-model.hwdb \
3661 hwdb/20-pci-classes.hwdb \
3662 hwdb/20-usb-vendor-model.hwdb \
3663 hwdb/20-usb-classes.hwdb \
3664 hwdb/20-sdio-vendor-model.hwdb \
3665 hwdb/20-sdio-classes.hwdb \
3666 hwdb/20-bluetooth-vendor-product.hwdb \
3667 hwdb/20-acpi-vendor.hwdb \
3669 hwdb/20-net-ifname.hwdb \
3670 hwdb/60-keyboard.hwdb \
3674 units/systemd-hwdb-update.service.in
3677 units/systemd-hwdb-update.service
3679 SYSINIT_TARGET_WANTS += \
3680 systemd-hwdb-update.service
3682 # Update hwdb on installation. Do not bother if installing
3683 # in DESTDIR, since this is likely for packaging purposes.
3685 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3687 INSTALL_DATA_HOOKS += \
3691 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3694 # ------------------------------------------------------------------------------
3703 test_libudev_SOURCES = \
3704 src/test/test-libudev.c
3706 test_libudev_LDADD = \
3707 libsystemd-label.la \
3708 libudev-internal.la \
3709 libsystemd-shared.la \
3710 libsystemd-internal.la
3712 test_udev_SOURCES = \
3713 src/test/test-udev.c
3722 test_udev_LDADD += \
3729 # packed sysfs test tree
3731 $(AM_V_at)$(MKDIR_P) $(dir $@)
3732 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3736 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3741 test/rules-test.sh \
3742 test/rule-syntax-check.py
3744 # ------------------------------------------------------------------------------
3746 src/udev/ata_id/ata_id.c
3749 libudev-internal.la \
3750 libsystemd-shared.la
3752 udevlibexec_PROGRAMS += \
3755 # ------------------------------------------------------------------------------
3756 cdrom_id_SOURCES = \
3757 src/udev/cdrom_id/cdrom_id.c
3760 libudev-internal.la \
3761 libsystemd-shared.la
3763 udevlibexec_PROGRAMS += \
3766 dist_udevrules_DATA += \
3767 rules/60-cdrom_id.rules
3769 # ------------------------------------------------------------------------------
3771 src/udev/collect/collect.c
3774 libudev-internal.la \
3775 libsystemd-shared.la
3777 udevlibexec_PROGRAMS += \
3780 # ------------------------------------------------------------------------------
3782 src/udev/scsi_id/scsi_id.c \
3783 src/udev/scsi_id/scsi_serial.c \
3784 src/udev/scsi_id/scsi.h \
3785 src/udev/scsi_id/scsi_id.h
3788 libudev-internal.la \
3789 libsystemd-shared.la
3791 udevlibexec_PROGRAMS += \
3795 src/udev/scsi_id/README
3797 # ------------------------------------------------------------------------------
3799 src/udev/v4l_id/v4l_id.c
3802 libudev-internal.la \
3803 libsystemd-shared.la
3805 udevlibexec_PROGRAMS += \
3808 dist_udevrules_DATA += \
3809 rules/60-persistent-v4l.rules
3811 # ------------------------------------------------------------------------------
3812 accelerometer_SOURCES = \
3813 src/udev/accelerometer/accelerometer.c
3815 accelerometer_LDADD = \
3816 libudev-internal.la \
3817 libsystemd-shared.la
3819 udevlibexec_PROGRAMS += \
3822 dist_udevrules_DATA += \
3823 rules/61-accelerometer.rules
3825 # ------------------------------------------------------------------------------
3832 libgudev_includedir = \
3833 $(includedir)/gudev-1.0/gudev
3835 libgudev_include_HEADERS = \
3837 src/gudev/gudevenums.h \
3838 src/gudev/gudevenumtypes.h \
3839 src/gudev/gudevtypes.h \
3840 src/gudev/gudevclient.h \
3841 src/gudev/gudevdevice.h \
3842 src/gudev/gudevenumerator.h
3844 lib_LTLIBRARIES += libgudev-1.0.la
3846 pkgconfiglib_DATA += \
3847 src/gudev/gudev-1.0.pc
3850 src/gudev/gudev-1.0.pc
3852 libgudev_1_0_la_SOURCES = \
3853 src/gudev/libgudev-1.0.sym \
3854 src/gudev/gudevenums.h \
3855 src/gudev/gudevenumtypes.h \
3856 src/gudev/gudevenumtypes.h\
3857 src/gudev/gudevtypes.h \
3858 src/gudev/gudevclient.h \
3859 src/gudev/gudevclient.c \
3860 src/gudev/gudevdevice.h \
3861 src/gudev/gudevdevice.c \
3862 src/gudev/gudevenumerator.h \
3863 src/gudev/gudevenumerator.c \
3864 src/gudev/gudevprivate.h
3866 nodist_libgudev_1_0_la_SOURCES = \
3867 src/gudev/gudevmarshal.h \
3868 src/gudev/gudevmarshal.c \
3869 src/gudev/gudevenumtypes.h \
3870 src/gudev/gudevenumtypes.c
3873 $(nodist_libgudev_1_0_la_SOURCES)
3875 libgudev_1_0_la_CPPFLAGS = \
3877 -I$(top_builddir)/src\
3878 -I$(top_srcdir)/src\
3879 -I$(top_builddir)/src/gudev \
3880 -I$(top_srcdir)/src/gudev \
3881 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3882 -D_GUDEV_COMPILATION \
3883 -DG_LOG_DOMAIN=\"GUdev\"
3885 libgudev_1_0_la_CFLAGS = \
3887 -fvisibility=default \
3890 libgudev_1_0_la_LIBADD = \
3894 libgudev_1_0_la_LDFLAGS = \
3896 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3899 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3901 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3902 $(AM_V_at)$(MKDIR_P) $(dir $@)
3903 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3905 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3906 $(AM_V_at)$(MKDIR_P) $(dir $@)
3907 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3908 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3910 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3911 $(AM_V_at)$(MKDIR_P) $(dir $@)
3912 $(AM_V_GEN)glib-mkenums --template $^ > $@
3914 if HAVE_INTROSPECTION
3915 -include $(INTROSPECTION_MAKEFILE)
3917 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3919 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3921 src_gudev_GUdev_1_0_gir_CFLAGS = \
3924 -D_GUDEV_COMPILATION \
3925 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3926 -I$(top_srcdir)/src \
3927 -I$(top_builddir)/src \
3928 -I$(top_srcdir)/src/gudev \
3929 -I$(top_builddir)/src/gudev
3931 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3933 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3934 --pkg-export=gudev-1.0 \
3937 src_gudev_GUdev_1_0_gir_FILES = \
3939 src/gudev/gudevtypes.h \
3940 src/gudev/gudevenums.h \
3941 src/gudev/gudevenumtypes.h \
3942 src/gudev/gudevclient.h \
3943 src/gudev/gudevdevice.h \
3944 src/gudev/gudevenumerator.h \
3945 src/gudev/gudevclient.c \
3946 src/gudev/gudevdevice.c \
3947 src/gudev/gudevenumerator.c
3949 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3950 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3952 girdir = $(datadir)/gir-1.0
3954 src/gudev/GUdev-1.0.gir
3956 typelibsdir = $(libdir)/girepository-1.0
3958 src/gudev/GUdev-1.0.typelib
3960 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3961 endif # HAVE_INTROSPECTION
3965 src/gudev/gudev-1.0.pc.in \
3966 src/gudev/gudevmarshal.list \
3967 src/gudev/gudevenumtypes.h.template \
3968 src/gudev/gudevenumtypes.c.template \
3969 src/gudev/gjs-example.js \
3970 src/gudev/seed-example-enum.js \
3971 src/gudev/seed-example.js
3973 # ------------------------------------------------------------------------------
3974 mtd_probe_SOURCES = \
3975 src/udev/mtd_probe/mtd_probe.c \
3976 src/udev/mtd_probe/mtd_probe.h \
3977 src/udev/mtd_probe/probe_smartmedia.c
3979 dist_udevrules_DATA += \
3980 rules/75-probe_mtd.rules
3982 udevlibexec_PROGRAMS += \
3985 # ------------------------------------------------------------------------------
3986 test_id128_SOURCES = \
3987 src/test/test-id128.c
3989 test_id128_LDADD = \
3990 libsystemd-internal.la \
3991 libsystemd-shared.la
3996 # ------------------------------------------------------------------------------
3998 rootlibexec_PROGRAMS += \
4001 systemd_activate_SOURCES = \
4002 src/activate/activate.c
4004 systemd_activate_LDADD = \
4005 libsystemd-label.la \
4006 libsystemd-internal.la \
4007 libsystemd-shared.la
4009 # ------------------------------------------------------------------------------
4010 systemd_journald_SOURCES = \
4011 src/journal/journald.c \
4012 src/journal/journald-server.h
4014 systemd_journald_LDADD = \
4015 libsystemd-journal-core.la \
4016 libsystemd-internal.la \
4017 libsystemd-shared.la
4019 systemd_cat_SOURCES = \
4022 systemd_cat_LDADD = \
4023 libsystemd-journal-core.la
4026 rootlibexec_PROGRAMS += \
4027 systemd-journal-remote
4029 systemd_journal_remote_SOURCES = \
4030 src/journal-remote/journal-remote-parse.h \
4031 src/journal-remote/journal-remote-parse.c \
4032 src/journal-remote/journal-remote-write.h \
4033 src/journal-remote/journal-remote-write.c \
4034 src/journal-remote/journal-remote.h \
4035 src/journal-remote/journal-remote.c
4037 systemd_journal_remote_LDADD = \
4038 libsystemd-internal.la \
4039 libsystemd-journal-core.la
4041 systemd_journal_remote_SOURCES += \
4042 src/journal-remote/microhttpd-util.h \
4043 src/journal-remote/microhttpd-util.c
4045 systemd_journal_remote_CFLAGS = \
4047 $(MICROHTTPD_CFLAGS)
4049 systemd_journal_remote_LDADD += \
4053 dist_sysusers_DATA += \
4054 sysusers.d/systemd-remote.conf
4058 dist_tmpfiles_DATA += \
4059 tmpfiles.d/systemd-remote.conf
4063 systemd_journal_remote_LDADD += \
4066 # systemd-journal-remote make sense mostly with full crypto stack
4067 dist_systemunit_DATA += \
4068 units/systemd-journal-remote.socket
4070 nodist_systemunit_DATA += \
4071 units/systemd-journal-remote.service
4074 units/systemd-journal-remote.service.in
4076 journal-remote-install-hook: journal-install-hook
4077 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4078 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4079 -chmod 755 $(DESTDIR)/var/log/journal/remote
4081 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4085 nodist_pkgsysconf_DATA += \
4086 src/journal-remote/journal-remote.conf
4089 src/journal-remote/journal-remote.conf.in
4092 src/journal-remote/journal-remote.conf
4096 rootlibexec_PROGRAMS += \
4097 systemd-journal-upload
4099 systemd_journal_upload_SOURCES = \
4100 src/journal-remote/journal-upload.h \
4101 src/journal-remote/journal-upload.c \
4102 src/journal-remote/journal-upload-journal.c
4104 systemd_journal_upload_CFLAGS = \
4108 systemd_journal_upload_LDADD = \
4109 libsystemd-internal.la \
4110 libsystemd-journal-internal.la \
4111 libsystemd-shared.la \
4114 nodist_systemunit_DATA += \
4115 units/systemd-journal-upload.service
4118 units/systemd-journal-upload.service.in
4120 nodist_pkgsysconf_DATA += \
4121 src/journal-remote/journal-upload.conf
4124 src/journal-remote/journal-upload.conf.in
4127 src/journal-remote/journal-upload.conf
4130 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4131 journalctl_CFLAGS = \
4134 journalctl_SOURCES = \
4135 src/journal/journalctl.c
4137 journalctl_LDADD = \
4138 libsystemd-journal-internal.la \
4139 libsystemd-internal.la \
4140 libsystemd-logs.la \
4141 libsystemd-shared.la
4144 journalctl_LDADD += \
4149 journalctl_SOURCES += \
4150 src/journal/journal-qrcode.c \
4151 src/journal/journal-qrcode.h
4153 journalctl_CFLAGS += \
4156 journalctl_LDADD += \
4160 test_journal_SOURCES = \
4161 src/journal/test-journal.c
4163 test_journal_LDADD = \
4164 libsystemd-journal-core.la
4166 test_journal_send_SOURCES = \
4167 src/journal/test-journal-send.c
4169 test_journal_send_LDADD = \
4170 libsystemd-journal-core.la
4172 test_journal_syslog_SOURCES = \
4173 src/journal/test-journal-syslog.c
4175 test_journal_syslog_LDADD = \
4176 libsystemd-journal-core.la
4178 test_journal_match_SOURCES = \
4179 src/journal/test-journal-match.c
4181 test_journal_match_LDADD = \
4182 libsystemd-journal-core.la
4184 test_journal_enum_SOURCES = \
4185 src/journal/test-journal-enum.c
4187 test_journal_enum_LDADD = \
4188 libsystemd-journal-core.la
4190 test_journal_stream_SOURCES = \
4191 src/journal/test-journal-stream.c
4193 test_journal_stream_LDADD = \
4194 libsystemd-journal-core.la
4196 test_journal_flush_SOURCES = \
4197 src/journal/test-journal-flush.c
4199 test_journal_flush_LDADD = \
4200 libsystemd-journal-core.la
4202 test_journal_init_SOURCES = \
4203 src/journal/test-journal-init.c
4205 test_journal_init_LDADD = \
4206 libsystemd-journal-core.la
4208 test_journal_verify_SOURCES = \
4209 src/journal/test-journal-verify.c
4211 test_journal_verify_LDADD = \
4212 libsystemd-journal-core.la
4214 test_journal_interleaving_SOURCES = \
4215 src/journal/test-journal-interleaving.c
4217 test_journal_interleaving_LDADD = \
4218 libsystemd-journal-core.la
4220 test_mmap_cache_SOURCES = \
4221 src/journal/test-mmap-cache.c
4223 test_mmap_cache_LDADD = \
4224 libsystemd-journal-core.la
4226 test_catalog_SOURCES = \
4227 src/journal/test-catalog.c
4229 test_catalog_CPPFLAGS = \
4231 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4233 test_catalog_LDADD = \
4234 libsystemd-journal-core.la
4236 test_compress_SOURCES = \
4237 src/journal/test-compress.c
4239 test_compress_LDADD = \
4240 libsystemd-journal-internal.la \
4241 libsystemd-shared.la
4243 test_compress_benchmark_SOURCES = \
4244 src/journal/test-compress-benchmark.c
4246 test_compress_benchmark_LDADD = \
4247 libsystemd-journal-internal.la \
4248 libsystemd-shared.la
4250 libsystemd_journal_core_la_SOURCES = \
4251 src/journal/journald-kmsg.c \
4252 src/journal/journald-kmsg.h \
4253 src/journal/journald-syslog.c \
4254 src/journal/journald-syslog.h \
4255 src/journal/journald-stream.c \
4256 src/journal/journald-stream.h \
4257 src/journal/journald-server.c \
4258 src/journal/journald-server.h \
4259 src/journal/journald-console.c \
4260 src/journal/journald-console.h \
4261 src/journal/journald-wall.c \
4262 src/journal/journald-wall.h \
4263 src/journal/journald-native.c \
4264 src/journal/journald-native.h \
4265 src/journal/journald-audit.c \
4266 src/journal/journald-audit.h \
4267 src/journal/journald-rate-limit.c \
4268 src/journal/journald-rate-limit.h \
4269 src/journal/journal-internal.h
4271 nodist_libsystemd_journal_core_la_SOURCES = \
4272 src/journal/journald-gperf.c
4274 libsystemd_journal_core_la_LIBADD = \
4275 libsystemd-journal-internal.la \
4276 libudev-internal.la \
4277 libsystemd-label.la \
4278 libsystemd-internal.la \
4279 libsystemd-shared.la
4282 libsystemd_journal_core_la_LIBADD += \
4286 noinst_LTLIBRARIES += \
4287 libsystemd-journal-core.la
4289 journal-install-hook:
4290 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4291 -chown 0:0 $(DESTDIR)/var/log/journal
4292 -chmod 755 $(DESTDIR)/var/log/journal
4293 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4294 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4296 journal-uninstall-hook:
4297 -rmdir $(DESTDIR)/var/log/journal/remote
4298 -rmdir $(DESTDIR)/var/log/journal/
4300 INSTALL_EXEC_HOOKS += journal-install-hook
4301 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4303 # ------------------------------------------------------------------------------
4304 # Update catalog on installation. Do not bother if installing
4305 # in DESTDIR, since this is likely for packaging purposes.
4306 catalog-update-hook:
4307 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4309 INSTALL_DATA_HOOKS += \
4312 catalog-remove-hook:
4313 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4315 UNINSTALL_DATA_HOOKS += \
4324 test-journal-syslog \
4325 test-journal-match \
4326 test-journal-stream \
4328 test-journal-verify \
4329 test-journal-interleaving \
4330 test-journal-flush \
4337 test-compress-benchmark
4340 pkginclude_HEADERS += \
4341 src/systemd/sd-journal.h \
4342 src/systemd/sd-messages.h \
4343 src/systemd/_sd-common.h
4345 libsystemd_journal_internal_la_SOURCES = \
4346 src/journal/sd-journal.c \
4347 src/systemd/sd-journal.h \
4348 src/systemd/_sd-common.h \
4349 src/journal/journal-file.c \
4350 src/journal/journal-file.h \
4351 src/journal/journal-vacuum.c \
4352 src/journal/journal-vacuum.h \
4353 src/journal/journal-verify.c \
4354 src/journal/journal-verify.h \
4355 src/journal/lookup3.c \
4356 src/journal/lookup3.h \
4357 src/journal/journal-send.c \
4358 src/journal/journal-def.h \
4359 src/journal/compress.h \
4360 src/journal/catalog.c \
4361 src/journal/catalog.h \
4362 src/journal/mmap-cache.c \
4363 src/journal/mmap-cache.h \
4364 src/journal/compress.c
4366 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4367 libsystemd_journal_internal_la_CFLAGS = \
4370 libsystemd_journal_internal_la_LIBADD = \
4374 libsystemd_journal_internal_la_CFLAGS += \
4377 libsystemd_journal_internal_la_LIBADD += \
4382 libsystemd_journal_internal_la_LIBADD += \
4387 libsystemd_journal_internal_la_SOURCES += \
4388 src/journal/journal-authenticate.c \
4389 src/journal/journal-authenticate.h \
4390 src/journal/fsprg.c \
4393 libsystemd_journal_internal_la_LIBADD += \
4396 # fsprg.c is a drop-in file using void pointer arithmetic
4397 libsystemd_journal_internal_la_CFLAGS += \
4402 noinst_LTLIBRARIES += \
4403 libsystemd-journal-internal.la
4405 rootlibexec_PROGRAMS += \
4408 rootbin_PROGRAMS += \
4414 dist_systemunit_DATA += \
4415 units/systemd-journald.socket \
4416 units/systemd-journald-dev-log.socket \
4417 units/systemd-journald-audit.socket
4419 nodist_systemunit_DATA += \
4420 units/systemd-journald.service \
4421 units/systemd-journal-flush.service \
4422 units/systemd-journal-catalog-update.service
4424 dist_pkgsysconf_DATA += \
4425 src/journal/journald.conf
4427 dist_catalog_DATA = \
4428 catalog/systemd.fr.catalog \
4429 catalog/systemd.it.catalog \
4430 catalog/systemd.pl.catalog \
4431 catalog/systemd.ru.catalog \
4432 catalog/systemd.catalog
4434 SOCKETS_TARGET_WANTS += \
4435 systemd-journald.socket \
4436 systemd-journald-dev-log.socket \
4437 systemd-journald-audit.socket
4439 SYSINIT_TARGET_WANTS += \
4440 systemd-journald.service \
4441 systemd-journal-flush.service \
4442 systemd-journal-catalog-update.service
4445 units/systemd-journald.service.in \
4446 units/systemd-journal-flush.service.in \
4447 units/systemd-journal-catalog-update.service.in \
4448 src/journal/journald-gperf.gperf
4451 src/journal/journald-gperf.c
4453 # ------------------------------------------------------------------------------
4455 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4457 rootlibexec_PROGRAMS += \
4458 systemd-journal-gatewayd
4460 systemd_journal_gatewayd_SOURCES = \
4461 src/journal-remote/journal-gatewayd.c \
4462 src/journal-remote/microhttpd-util.h \
4463 src/journal-remote/microhttpd-util.c
4465 systemd_journal_gatewayd_LDADD = \
4466 libsystemd-logs.la \
4467 libsystemd-journal-internal.la \
4468 libsystemd-internal.la \
4469 libsystemd-shared.la \
4473 systemd_journal_gatewayd_LDADD += \
4477 systemd_journal_gatewayd_CFLAGS = \
4479 $(MICROHTTPD_CFLAGS)
4481 systemd_journal_gatewayd_CPPFLAGS = \
4483 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4485 dist_systemunit_DATA += \
4486 units/systemd-journal-gatewayd.socket
4488 nodist_systemunit_DATA += \
4489 units/systemd-journal-gatewayd.service
4491 dist_gatewayddocumentroot_DATA = \
4492 src/journal-remote/browse.html
4497 units/systemd-journal-gatewayd.service.in
4499 # ------------------------------------------------------------------------------
4501 systemd_socket_proxyd_SOURCES = \
4502 src/socket-proxy/socket-proxyd.c
4504 systemd_socket_proxyd_LDADD = \
4505 libsystemd-logs.la \
4506 libsystemd-internal.la \
4507 libsystemd-journal-internal.la \
4508 libsystemd-shared.la \
4509 libsystemd-resolve.la
4511 # ------------------------------------------------------------------------------
4513 systemd_coredump_SOURCES = \
4514 src/journal/coredump.c \
4515 src/journal/coredump-vacuum.c \
4516 src/journal/coredump-vacuum.h
4518 systemd_coredump_LDADD = \
4519 libsystemd-journal-internal.la \
4520 libsystemd-label.la \
4521 libsystemd-internal.la \
4522 libsystemd-shared.la
4525 systemd_coredump_SOURCES += \
4526 src/journal/stacktrace.c \
4527 src/journal/stacktrace.h
4529 systemd_coredump_LDADD += \
4533 rootlibexec_PROGRAMS += \
4536 dist_pkgsysconf_DATA += \
4537 src/journal/coredump.conf
4540 systemd_coredump_LDADD += \
4544 coredumpctl_SOURCES = \
4545 src/journal/coredumpctl.c
4547 coredumpctl_LDADD = \
4548 libsystemd-journal-internal.la \
4549 libsystemd-internal.la \
4550 libsystemd-shared.la
4556 test-coredump-vacuum
4558 test_coredump_vacuum_SOURCES = \
4559 src/journal/test-coredump-vacuum.c \
4560 src/journal/coredump-vacuum.c \
4561 src/journal/coredump-vacuum.h
4563 test_coredump_vacuum_LDADD = \
4564 libsystemd-internal.la \
4565 libsystemd-shared.la
4567 dist_bashcompletion_DATA += \
4568 shell-completion/bash/coredumpctl
4570 dist_zshcompletion_DATA += \
4571 shell-completion/zsh/_coredumpctl
4574 sysctl.d/50-coredump.conf
4577 sysctl.d/50-coredump.conf
4581 sysctl.d/50-coredump.conf.in
4583 # ------------------------------------------------------------------------------
4585 systemd_binfmt_SOURCES = \
4588 systemd_binfmt_LDADD = \
4589 libsystemd-shared.la
4591 rootlibexec_PROGRAMS += \
4594 dist_systemunit_DATA += \
4595 units/proc-sys-fs-binfmt_misc.automount \
4596 units/proc-sys-fs-binfmt_misc.mount
4598 nodist_systemunit_DATA += \
4599 units/systemd-binfmt.service
4602 $(prefix)/lib/binfmt.d \
4603 $(sysconfdir)/binfmt.d
4605 SYSINIT_TARGET_WANTS += \
4606 systemd-binfmt.service \
4607 proc-sys-fs-binfmt_misc.automount
4612 units/systemd-binfmt.service.in
4614 # ------------------------------------------------------------------------------
4616 systemd_vconsole_setup_SOURCES = \
4617 src/vconsole/vconsole-setup.c
4619 systemd_vconsole_setup_LDADD = \
4620 libsystemd-shared.la
4622 rootlibexec_PROGRAMS += \
4623 systemd-vconsole-setup
4625 nodist_systemunit_DATA += \
4626 units/systemd-vconsole-setup.service
4628 nodist_udevrules_DATA += \
4629 src/vconsole/90-vconsole.rules
4631 SYSINIT_TARGET_WANTS += \
4632 systemd-vconsole-setup.service
4635 src/vconsole/90-vconsole.rules
4639 src/vconsole/90-vconsole.rules.in \
4640 units/systemd-vconsole-setup.service.in
4642 # ------------------------------------------------------------------------------
4644 systemd_bootchart_SOURCES = \
4645 src/bootchart/bootchart.c \
4646 src/bootchart/bootchart.h \
4647 src/bootchart/store.c \
4648 src/bootchart/store.h \
4649 src/bootchart/svg.c \
4652 systemd_bootchart_LDADD = \
4653 libsystemd-journal-internal.la \
4654 libsystemd-shared.la
4656 rootlibexec_PROGRAMS += \
4659 dist_pkgsysconf_DATA += \
4660 src/bootchart/bootchart.conf
4662 nodist_systemunit_DATA += \
4663 units/systemd-bootchart.service
4666 units/systemd-bootchart.service.in
4669 units/systemd-bootchart.service
4672 # ------------------------------------------------------------------------------
4673 if ENABLE_QUOTACHECK
4674 rootlibexec_PROGRAMS += \
4677 nodist_systemunit_DATA += \
4678 units/systemd-quotacheck.service
4680 systemd_quotacheck_SOURCES = \
4681 src/quotacheck/quotacheck.c
4683 systemd_quotacheck_LDADD = \
4684 libsystemd-shared.la
4688 units/systemd-quotacheck.service.in
4690 nodist_systemunit_DATA += \
4691 units/quotaon.service
4693 # ------------------------------------------------------------------------------
4694 if ENABLE_RANDOMSEED
4695 rootlibexec_PROGRAMS += \
4698 nodist_systemunit_DATA += \
4699 units/systemd-random-seed.service
4701 systemd_random_seed_SOURCES = \
4702 src/random-seed/random-seed.c
4704 systemd_random_seed_LDADD = \
4705 libsystemd-label.la \
4706 libsystemd-shared.la
4708 SYSINIT_TARGET_WANTS += \
4709 systemd-random-seed.service
4714 units/systemd-random-seed.service.in
4716 # ------------------------------------------------------------------------------
4718 rootlibexec_PROGRAMS += \
4721 nodist_systemunit_DATA += \
4722 units/systemd-backlight@.service
4724 systemd_backlight_SOURCES = \
4725 src/backlight/backlight.c
4727 systemd_backlight_LDADD = \
4728 libsystemd-label.la \
4729 libudev-internal.la \
4730 libsystemd-shared.la
4734 units/systemd-backlight@.service.in
4736 # ------------------------------------------------------------------------------
4738 rootlibexec_PROGRAMS += \
4741 nodist_systemunit_DATA += \
4742 units/systemd-rfkill@.service
4744 systemd_rfkill_SOURCES = \
4747 systemd_rfkill_LDADD = \
4748 libsystemd-label.la \
4749 libudev-internal.la \
4750 libsystemd-shared.la
4754 units/systemd-rfkill@.service.in
4756 # ------------------------------------------------------------------------------
4757 if HAVE_LIBCRYPTSETUP
4758 rootlibexec_PROGRAMS += \
4761 systemgenerator_PROGRAMS += \
4762 systemd-cryptsetup-generator
4764 dist_systemunit_DATA += \
4765 units/cryptsetup.target \
4766 units/cryptsetup-pre.target
4768 systemd_cryptsetup_SOURCES = \
4769 src/cryptsetup/cryptsetup.c
4771 systemd_cryptsetup_CFLAGS = \
4773 $(LIBCRYPTSETUP_CFLAGS)
4775 systemd_cryptsetup_LDADD = \
4776 libsystemd-label.la \
4777 libudev-internal.la \
4778 libsystemd-shared.la \
4779 $(LIBCRYPTSETUP_LIBS)
4781 systemd_cryptsetup_generator_SOURCES = \
4782 src/cryptsetup/cryptsetup-generator.c
4784 systemd_cryptsetup_generator_LDADD = \
4785 libsystemd-label.la \
4786 libsystemd-shared.la
4788 SYSINIT_TARGET_WANTS += \
4793 # ------------------------------------------------------------------------------
4795 systemd_hostnamed_SOURCES = \
4796 src/hostname/hostnamed.c
4798 systemd_hostnamed_LDADD = \
4799 libsystemd-label.la \
4800 libsystemd-internal.la \
4801 libsystemd-shared.la
4803 rootlibexec_PROGRAMS += \
4806 nodist_systemunit_DATA += \
4807 units/systemd-hostnamed.service
4809 dist_systemunit_DATA_busnames += \
4810 units/org.freedesktop.hostname1.busname
4812 dist_dbuspolicy_DATA += \
4813 src/hostname/org.freedesktop.hostname1.conf
4815 dist_dbussystemservice_DATA += \
4816 src/hostname/org.freedesktop.hostname1.service
4818 polkitpolicy_files += \
4819 src/hostname/org.freedesktop.hostname1.policy
4821 SYSTEM_UNIT_ALIASES += \
4822 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4824 BUSNAMES_TARGET_WANTS += \
4825 org.freedesktop.hostname1.busname
4827 hostnamectl_SOURCES = \
4828 src/hostname/hostnamectl.c
4830 hostnamectl_LDADD = \
4831 libsystemd-internal.la \
4832 libsystemd-shared.la
4837 dist_bashcompletion_DATA += \
4838 shell-completion/bash/hostnamectl
4840 dist_zshcompletion_DATA += \
4841 shell-completion/zsh/_hostnamectl
4845 polkitpolicy_in_files += \
4846 src/hostname/org.freedesktop.hostname1.policy.in
4849 units/systemd-hostnamed.service.in
4851 # ------------------------------------------------------------------------------
4852 dist_systemunit_DATA_busnames += \
4853 units/org.freedesktop.systemd1.busname
4855 BUSNAMES_TARGET_WANTS += \
4856 org.freedesktop.systemd1.busname
4858 # ------------------------------------------------------------------------------
4860 systemd_localed_SOURCES = \
4861 src/locale/localed.c
4863 systemd_localed_LDADD = \
4864 libsystemd-label.la \
4865 libsystemd-internal.la \
4866 libsystemd-shared.la \
4869 systemd_localed_CFLAGS = \
4873 nodist_systemunit_DATA += \
4874 units/systemd-localed.service
4876 dist_systemunit_DATA_busnames += \
4877 units/org.freedesktop.locale1.busname
4879 rootlibexec_PROGRAMS += \
4882 dist_dbuspolicy_DATA += \
4883 src/locale/org.freedesktop.locale1.conf
4885 dist_dbussystemservice_DATA += \
4886 src/locale/org.freedesktop.locale1.service
4888 polkitpolicy_files += \
4889 src/locale/org.freedesktop.locale1.policy
4891 SYSTEM_UNIT_ALIASES += \
4892 systemd-localed.service dbus-org.freedesktop.locale1.service
4894 BUSNAMES_TARGET_WANTS += \
4895 org.freedesktop.locale1.busname
4897 dist_pkgdata_DATA += \
4898 src/locale/kbd-model-map
4900 dist_noinst_SCRIPT = \
4901 src/locale/generate-kbd-model-map
4903 localectl_SOURCES = \
4904 src/locale/localectl.c
4907 libsystemd-internal.la \
4908 libsystemd-shared.la
4913 dist_bashcompletion_DATA += \
4914 shell-completion/bash/localectl
4916 dist_zshcompletion_DATA += \
4917 shell-completion/zsh/_localectl
4921 .PHONY: update-kbd-model-map
4923 polkitpolicy_in_files += \
4924 src/locale/org.freedesktop.locale1.policy.in
4927 units/systemd-localed.service.in
4929 # ------------------------------------------------------------------------------
4931 systemd_timedated_SOURCES = \
4932 src/timedate/timedated.c
4934 systemd_timedated_LDADD = \
4935 libsystemd-label.la \
4936 libsystemd-internal.la \
4937 libsystemd-shared.la
4939 rootlibexec_PROGRAMS += \
4942 dist_dbussystemservice_DATA += \
4943 src/timedate/org.freedesktop.timedate1.service
4945 dist_dbuspolicy_DATA += \
4946 src/timedate/org.freedesktop.timedate1.conf
4948 nodist_systemunit_DATA += \
4949 units/systemd-timedated.service
4951 dist_systemunit_DATA_busnames += \
4952 units/org.freedesktop.timedate1.busname
4954 polkitpolicy_files += \
4955 src/timedate/org.freedesktop.timedate1.policy
4957 SYSTEM_UNIT_ALIASES += \
4958 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4960 BUSNAMES_TARGET_WANTS += \
4961 org.freedesktop.timedate1.busname
4963 timedatectl_SOURCES = \
4964 src/timedate/timedatectl.c
4966 timedatectl_LDADD = \
4967 libsystemd-internal.la \
4968 libsystemd-shared.la
4973 dist_bashcompletion_DATA += \
4974 shell-completion/bash/timedatectl
4976 dist_zshcompletion_DATA += \
4977 shell-completion/zsh/_timedatectl
4980 polkitpolicy_in_files += \
4981 src/timedate/org.freedesktop.timedate1.policy.in
4984 units/systemd-timedated.service.in
4986 # ------------------------------------------------------------------------------
4988 systemd_timesyncd_SOURCES = \
4989 src/timesync/timesyncd.c \
4990 src/timesync/timesyncd-manager.c \
4991 src/timesync/timesyncd-manager.h \
4992 src/timesync/timesyncd-conf.c \
4993 src/timesync/timesyncd-conf.h \
4994 src/timesync/timesyncd-server.c \
4995 src/timesync/timesyncd-server.h
4997 nodist_systemd_timesyncd_SOURCES = \
4998 src/timesync/timesyncd-gperf.c
5001 src/timesync/timesyncd-gperf.gperf
5004 src/timesync/timesyncd-gperf.c
5006 systemd_timesyncd_LDADD = \
5007 libsystemd-resolve.la \
5008 libsystemd-network.la \
5009 libsystemd-label.la \
5010 libsystemd-internal.la \
5011 libsystemd-shared.la
5013 rootlibexec_PROGRAMS += \
5016 nodist_systemunit_DATA += \
5017 units/systemd-timesyncd.service
5019 GENERAL_ALIASES += \
5020 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5023 units/systemd-timesyncd.service.in
5025 nodist_pkgsysconf_DATA += \
5026 src/timesync/timesyncd.conf
5029 src/timesync/timesyncd.conf.in
5032 src/timesync/timesyncd.conf
5035 # ------------------------------------------------------------------------------
5037 libnss_myhostname_la_SOURCES = \
5038 src/nss-myhostname/nss-myhostname.sym \
5039 src/nss-myhostname/nss-myhostname.c
5041 libnss_myhostname_la_LDFLAGS = \
5048 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5050 libnss_myhostname_la_LIBADD = \
5051 libsystemd-shared.la \
5052 libsystemd-internal.la
5054 lib_LTLIBRARIES += \
5055 libnss_myhostname.la
5058 # ------------------------------------------------------------------------------
5060 systemd_machined_SOURCES = \
5061 src/machine/machined.c \
5062 src/machine/machined.h
5064 systemd_machined_LDADD = \
5065 libsystemd-machine-core.la
5067 rootlibexec_PROGRAMS += \
5070 libsystemd_machine_core_la_SOURCES = \
5071 src/machine/machine.c \
5072 src/machine/machine.h \
5073 src/machine/machined-dbus.c \
5074 src/machine/machine-dbus.c \
5075 src/machine/machine-dbus.h \
5076 src/machine/image-dbus.c \
5077 src/machine/image-dbus.h
5079 libsystemd_machine_core_la_LIBADD = \
5080 libsystemd-label.la \
5081 libsystemd-internal.la \
5082 libudev-internal.la \
5083 libsystemd-shared.la
5085 noinst_LTLIBRARIES += \
5086 libsystemd-machine-core.la
5088 machinectl_SOURCES = \
5089 src/machine/machinectl.c
5091 machinectl_LDADD = \
5092 libsystemd-internal.la \
5093 libsystemd-logs.la \
5094 libsystemd-journal-internal.la \
5095 libsystemd-shared.la
5097 rootbin_PROGRAMS += \
5100 dist_bashcompletion_DATA += \
5101 shell-completion/bash/machinectl
5103 test_machine_tables_SOURCES = \
5104 src/machine/test-machine-tables.c
5106 test_machine_tables_LDADD = \
5107 libsystemd-machine-core.la
5112 nodist_systemunit_DATA += \
5113 units/systemd-machined.service
5115 dist_systemunit_DATA += \
5118 dist_systemunit_DATA_busnames += \
5119 units/org.freedesktop.machine1.busname
5121 dist_dbussystemservice_DATA += \
5122 src/machine/org.freedesktop.machine1.service
5124 dist_dbuspolicy_DATA += \
5125 src/machine/org.freedesktop.machine1.conf
5127 polkitpolicy_files += \
5128 src/machine/org.freedesktop.machine1.policy
5130 polkitpolicy_in_files += \
5131 src/machine/org.freedesktop.machine1.policy.in
5133 dist_zshcompletion_DATA += \
5134 shell-completion/zsh/_machinectl \
5135 shell-completion/zsh/_sd_machines
5137 SYSTEM_UNIT_ALIASES += \
5138 systemd-machined.service dbus-org.freedesktop.machine1.service
5140 BUSNAMES_TARGET_WANTS += \
5141 org.freedesktop.machine1.busname
5144 units/systemd-machined.service.in
5146 libnss_mymachines_la_SOURCES = \
5147 src/nss-mymachines/nss-mymachines.sym \
5148 src/nss-mymachines/nss-mymachines.c
5150 libnss_mymachines_la_LDFLAGS = \
5157 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5159 libnss_mymachines_la_LIBADD = \
5160 libsystemd-shared.la \
5161 libsystemd-internal.la
5163 lib_LTLIBRARIES += \
5164 libnss_mymachines.la
5171 systemd_import_SOURCES = \
5172 src/import/import.c \
5173 src/import/import-gpt.c \
5174 src/import/import-gpt.h \
5175 src/import/import-dkr.c \
5176 src/import/import-dkr.h \
5177 src/import/curl-util.c \
5178 src/import/curl-util.h \
5179 src/import/aufs-util.c \
5180 src/import/aufs-util.h
5182 systemd_import_CFLAGS = \
5186 systemd_import_LDADD = \
5187 libsystemd-internal.la \
5188 libsystemd-label.la \
5189 libsystemd-shared.la \
5195 # ------------------------------------------------------------------------------
5197 systemd_resolved_SOURCES = \
5198 src/resolve/resolved.c \
5199 src/resolve/resolved-manager.c \
5200 src/resolve/resolved-manager.h \
5201 src/resolve/resolved-conf.c \
5202 src/resolve/resolved-conf.h \
5203 src/resolve/resolved-bus.c \
5204 src/resolve/resolved-bus.h \
5205 src/resolve/resolved-link.h \
5206 src/resolve/resolved-link.c \
5207 src/resolve/resolved-def.h \
5208 src/resolve/resolved-dns-domain.h \
5209 src/resolve/resolved-dns-domain.c \
5210 src/resolve/resolved-dns-rr.h \
5211 src/resolve/resolved-dns-rr.c \
5212 src/resolve/resolved-dns-question.h \
5213 src/resolve/resolved-dns-question.c \
5214 src/resolve/resolved-dns-answer.h \
5215 src/resolve/resolved-dns-answer.c \
5216 src/resolve/resolved-dns-packet.h \
5217 src/resolve/resolved-dns-packet.c \
5218 src/resolve/resolved-dns-query.h \
5219 src/resolve/resolved-dns-query.c \
5220 src/resolve/resolved-dns-transaction.h \
5221 src/resolve/resolved-dns-transaction.c \
5222 src/resolve/resolved-dns-scope.h \
5223 src/resolve/resolved-dns-scope.c \
5224 src/resolve/resolved-dns-server.h \
5225 src/resolve/resolved-dns-server.c \
5226 src/resolve/resolved-dns-cache.h \
5227 src/resolve/resolved-dns-cache.c \
5228 src/resolve/resolved-dns-zone.h \
5229 src/resolve/resolved-dns-zone.c \
5230 src/resolve/resolved-dns-stream.h \
5231 src/resolve/resolved-dns-stream.c \
5232 src/resolve/dns-type.c \
5233 src/resolve/dns-type.h \
5234 src/resolve/dns_type-from-name.h \
5235 src/resolve/dns_type-to-name.h
5237 nodist_systemd_resolved_SOURCES = \
5238 src/resolve/resolved-gperf.c
5241 src/resolve/resolved-gperf.gperf \
5242 src/resolve/dns_type-from-name.gperf
5245 src/resolve/resolved-gperf.c
5247 systemd_resolved_LDADD = \
5248 libsystemd-network.la \
5249 libsystemd-label.la \
5250 libsystemd-internal.la \
5251 libsystemd-shared.la \
5254 rootlibexec_PROGRAMS += \
5257 nodist_systemunit_DATA += \
5258 units/systemd-resolved.service
5260 dist_systemunit_DATA_busnames += \
5261 units/org.freedesktop.resolve1.busname
5263 dist_dbuspolicy_DATA += \
5264 src/resolve/org.freedesktop.resolve1.conf
5266 dist_dbussystemservice_DATA += \
5267 src/resolve/org.freedesktop.resolve1.service
5270 units/systemd-resolved.service.in
5272 SYSTEM_UNIT_ALIASES += \
5273 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5275 BUSNAMES_TARGET_WANTS += \
5276 org.freedesktop.resolve1.busname
5278 GENERAL_ALIASES += \
5279 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5281 nodist_pkgsysconf_DATA += \
5282 src/resolve/resolved.conf
5285 src/resolve/resolved.conf.in
5288 src/resolve/resolved.conf
5293 test_dns_domain_SOURCES = \
5294 src/resolve/resolved-dns-domain.h \
5295 src/resolve/resolved-dns-domain.c \
5296 src/resolve/test-dns-domain.c
5298 test_dns_domain_LDADD = \
5299 libsystemd-network.la \
5300 libsystemd-label.la \
5301 libsystemd-internal.la \
5302 libsystemd-shared.la \
5305 libnss_resolve_la_SOURCES = \
5306 src/nss-resolve/nss-resolve.sym \
5307 src/nss-resolve/nss-resolve.c
5309 libnss_resolve_la_LDFLAGS = \
5316 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5318 libnss_resolve_la_LIBADD = \
5319 libsystemd-internal.la \
5320 libsystemd-shared.la
5322 lib_LTLIBRARIES += \
5325 systemd_resolve_host_SOURCES = \
5326 src/resolve-host/resolve-host.c \
5327 src/resolve/resolved-dns-packet.c \
5328 src/resolve/resolved-dns-packet.h \
5329 src/resolve/resolved-dns-rr.c \
5330 src/resolve/resolved-dns-rr.h \
5331 src/resolve/resolved-dns-answer.c \
5332 src/resolve/resolved-dns-answer.h \
5333 src/resolve/resolved-dns-question.c \
5334 src/resolve/resolved-dns-question.h \
5335 src/resolve/resolved-dns-domain.c \
5336 src/resolve/resolved-dns-domain.h \
5337 src/resolve/dns-type.c \
5338 src/resolve/dns-type.h \
5339 src/resolve/dns_type-from-name.h \
5340 src/resolve/dns_type-to-name.h
5342 systemd_resolve_host_LDADD = \
5343 libsystemd-internal.la \
5344 libsystemd-shared.la \
5347 rootlibexec_PROGRAMS += \
5348 systemd-resolve-host
5352 # ------------------------------------------------------------------------------
5354 rootlibexec_PROGRAMS += \
5357 systemd_networkd_SOURCES = \
5358 src/network/networkd.c
5360 systemd_networkd_LDADD = \
5361 libsystemd-networkd-core.la
5363 noinst_LTLIBRARIES += \
5364 libsystemd-networkd-core.la
5366 libsystemd_networkd_core_la_CFLAGS = \
5369 libsystemd_networkd_core_la_SOURCES = \
5370 src/libsystemd-network/network-internal.h \
5371 src/network/networkd.h \
5372 src/network/networkd-link.h \
5373 src/network/networkd-netdev.h \
5374 src/network/networkd-netdev-tunnel.h \
5375 src/network/networkd-netdev-veth.h \
5376 src/network/networkd-netdev-vxlan.h \
5377 src/network/networkd-netdev-vlan.h \
5378 src/network/networkd-netdev-macvlan.h \
5379 src/network/networkd-netdev-dummy.h \
5380 src/network/networkd-netdev-tuntap.h \
5381 src/network/networkd-netdev-bond.h \
5382 src/network/networkd-netdev-bridge.h \
5383 src/network/networkd-netdev.c \
5384 src/network/networkd-netdev-tunnel.c \
5385 src/network/networkd-netdev-veth.c \
5386 src/network/networkd-netdev-vxlan.c \
5387 src/network/networkd-netdev-vlan.c \
5388 src/network/networkd-netdev-macvlan.c \
5389 src/network/networkd-netdev-dummy.c \
5390 src/network/networkd-netdev-tuntap.c \
5391 src/network/networkd-netdev-bond.c \
5392 src/network/networkd-netdev-bridge.c \
5393 src/network/networkd-link.c \
5394 src/network/networkd-ipv4ll.c \
5395 src/network/networkd-dhcp4.c \
5396 src/network/networkd-dhcp6.c \
5397 src/network/networkd-network.c \
5398 src/network/networkd-address.c \
5399 src/network/networkd-route.c \
5400 src/network/networkd-manager.c \
5401 src/network/networkd-fdb.c \
5402 src/network/networkd-address-pool.c
5404 nodist_libsystemd_networkd_core_la_SOURCES = \
5405 src/network/networkd-network-gperf.c \
5406 src/network/networkd-netdev-gperf.c
5408 libsystemd_networkd_core_la_LIBADD = \
5409 libudev-internal.la \
5410 libsystemd-internal.la \
5411 libsystemd-network.la \
5412 libsystemd-label.la \
5413 libsystemd-shared.la
5415 rootlibexec_PROGRAMS += \
5416 systemd-networkd-wait-online
5418 systemd_networkd_wait_online_CFLAGS = \
5421 systemd_networkd_wait_online_SOURCES = \
5422 src/libsystemd-network/network-internal.h \
5423 src/network/networkd-wait-online.h \
5424 src/network/networkd-wait-online-link.h \
5425 src/network/networkd-wait-online.c \
5426 src/network/networkd-wait-online-manager.c \
5427 src/network/networkd-wait-online-link.c
5429 systemd_networkd_wait_online_LDADD = \
5430 libsystemd-network.la \
5431 libudev-internal.la \
5432 libsystemd-internal.la \
5433 libsystemd-shared.la
5435 rootbin_PROGRAMS += \
5438 networkctl_SOURCES = \
5439 src/network/networkctl.c
5441 networkctl_LDADD = \
5442 libsystemd-internal.la \
5443 libudev-internal.la \
5444 libsystemd-shared.la \
5445 libsystemd-network.la
5447 test_network_SOURCES = \
5448 src/network/test-network.c
5450 test_network_LDADD = \
5451 libsystemd-networkd-core.la
5453 test_network_tables_SOURCES = \
5454 src/network/test-network-tables.c \
5455 src/shared/test-tables.h
5457 test_network_tables_LDADD = \
5458 libsystemd-networkd-core.la \
5465 nodist_systemunit_DATA += \
5466 units/systemd-networkd.service \
5467 units/systemd-networkd-wait-online.service
5469 GENERAL_ALIASES += \
5470 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5471 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5474 src/network/networkd-network-gperf.gperf \
5475 src/network/networkd-netdev-gperf.gperf \
5476 units/systemd-networkd.service.in \
5477 units/systemd-networkd-wait-online.service.in
5480 src/network/networkd-network-gperf.c \
5481 src/network/networkd-netdev-gperf.c
5484 # ------------------------------------------------------------------------------
5486 systemd_logind_SOURCES = \
5487 src/login/logind.c \
5490 nodist_systemd_logind_SOURCES = \
5491 src/login/logind-gperf.c
5493 systemd_logind_LDADD = \
5494 libsystemd-logind-core.la
5496 libsystemd_logind_core_la_SOURCES = \
5497 src/login/logind-core.c \
5498 src/login/logind-device.c \
5499 src/login/logind-device.h \
5500 src/login/logind-button.c \
5501 src/login/logind-button.h \
5502 src/login/logind-action.c \
5503 src/login/logind-action.h \
5504 src/login/logind-seat.c \
5505 src/login/logind-seat.h \
5506 src/login/logind-session.c \
5507 src/login/logind-session.h \
5508 src/login/logind-session-device.c \
5509 src/login/logind-session-device.h \
5510 src/login/logind-user.c \
5511 src/login/logind-user.h \
5512 src/login/logind-inhibit.c \
5513 src/login/logind-inhibit.h \
5514 src/login/logind-dbus.c \
5515 src/login/logind-session-dbus.c \
5516 src/login/logind-seat-dbus.c \
5517 src/login/logind-user-dbus.c \
5518 src/login/logind-acl.h
5520 libsystemd_logind_core_la_LIBADD = \
5521 libsystemd-label.la \
5522 libsystemd-internal.la \
5523 libudev-internal.la \
5524 libsystemd-shared.la
5527 libsystemd_logind_core_la_SOURCES += \
5528 src/login/logind-acl.c
5530 libsystemd_logind_core_la_LIBADD += \
5534 noinst_LTLIBRARIES += \
5535 libsystemd-logind-core.la
5537 systemd_user_sessions_SOURCES = \
5538 src/login/user-sessions.c
5540 systemd_user_sessions_LDADD = \
5541 libsystemd-shared.la
5543 rootlibexec_PROGRAMS += \
5545 systemd-user-sessions
5547 loginctl_SOURCES = \
5548 src/login/loginctl.c \
5549 src/login/sysfs-show.h \
5550 src/login/sysfs-show.c
5553 libsystemd-internal.la \
5554 libsystemd-logs.la \
5555 libsystemd-journal-internal.la \
5556 libudev-internal.la \
5557 libsystemd-shared.la
5559 rootbin_PROGRAMS += \
5562 dist_bashcompletion_DATA += \
5563 shell-completion/bash/loginctl
5565 dist_zshcompletion_DATA += \
5566 shell-completion/zsh/_loginctl \
5567 shell-completion/zsh/_systemd-inhibit
5569 systemd_inhibit_SOURCES = \
5572 systemd_inhibit_LDADD = \
5573 libsystemd-internal.la \
5574 libsystemd-shared.la
5576 rootbin_PROGRAMS += \
5579 test_login_SOURCES = \
5580 src/libsystemd/sd-login/test-login.c
5582 test_login_LDADD = \
5583 libsystemd-internal.la \
5584 libsystemd-shared.la
5586 test_login_shared_SOURCES = \
5587 src/login/test-login-shared.c
5589 test_login_shared_LDADD = \
5590 libsystemd-internal.la \
5591 libsystemd-shared.la
5593 test_inhibit_SOURCES = \
5594 src/login/test-inhibit.c
5596 test_inhibit_LDADD = \
5597 libsystemd-internal.la \
5598 libsystemd-shared.la
5600 test_login_tables_SOURCES = \
5601 src/login/test-login-tables.c
5603 test_login_tables_LDADD = \
5604 libsystemd-logind-core.la
5615 pam_systemd_la_SOURCES = \
5616 src/login/pam_systemd.sym \
5617 src/login/pam_systemd.c
5619 pam_systemd_la_CFLAGS = \
5624 pam_systemd_la_LDFLAGS = \
5630 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5632 pam_systemd_la_LIBADD = \
5633 libsystemd-internal.la \
5634 libsystemd-shared.la \
5637 pamlib_LTLIBRARIES = \
5640 dist_pamconf_DATA = \
5641 src/login/systemd-user
5644 nodist_systemunit_DATA += \
5645 units/systemd-logind.service \
5646 units/systemd-user-sessions.service
5648 dist_systemunit_DATA += \
5651 dist_systemunit_DATA_busnames += \
5652 units/org.freedesktop.login1.busname
5654 dist_dbussystemservice_DATA += \
5655 src/login/org.freedesktop.login1.service
5657 dist_dbuspolicy_DATA += \
5658 src/login/org.freedesktop.login1.conf
5660 dist_pkgsysconf_DATA += \
5661 src/login/logind.conf
5663 polkitpolicy_files += \
5664 src/login/org.freedesktop.login1.policy
5669 MULTI_USER_TARGET_WANTS += \
5670 systemd-logind.service \
5671 systemd-user-sessions.service
5673 SYSTEM_UNIT_ALIASES += \
5674 systemd-logind.service dbus-org.freedesktop.login1.service
5676 BUSNAMES_TARGET_WANTS += \
5677 org.freedesktop.login1.busname
5679 dist_udevrules_DATA += \
5680 src/login/70-uaccess.rules \
5681 src/login/70-power-switch.rules
5683 nodist_udevrules_DATA += \
5684 src/login/71-seat.rules \
5685 src/login/73-seat-late.rules
5688 src/login/logind-gperf.c \
5689 src/login/71-seat.rules \
5690 src/login/73-seat-late.rules
5693 polkitpolicy_in_files += \
5694 src/login/org.freedesktop.login1.policy.in
5697 src/login/logind-gperf.gperf \
5698 src/login/71-seat.rules.in \
5699 src/login/73-seat-late.rules.in \
5700 units/systemd-logind.service.in \
5701 units/systemd-user-sessions.service.in
5703 # ------------------------------------------------------------------------------
5704 if HAVE_PYTHON_DEVEL
5705 pkgpyexec_LTLIBRARIES = \
5712 _journal_la_SOURCES = \
5713 src/python-systemd/_journal.c
5715 _journal_la_CFLAGS = \
5717 -fvisibility=default \
5718 $(PYTHON_DEVEL_CFLAGS)
5720 _journal_la_LDFLAGS = \
5726 _journal_la_LIBADD = \
5727 $(PYTHON_DEVEL_LIBS) \
5730 id128_la_SOURCES = \
5731 src/python-systemd/id128.c \
5732 src/python-systemd/pyutil.c \
5733 src/python-systemd/pyutil.h
5735 nodist_id128_la_SOURCES = \
5736 src/python-systemd/id128-constants.h
5740 -fvisibility=default \
5741 $(PYTHON_DEVEL_CFLAGS) \
5742 -I$(top_builddir)/src/python-systemd
5744 id128_la_LDFLAGS = \
5751 $(PYTHON_DEVEL_LIBS) \
5752 libsystemd-shared.la \
5755 _daemon_la_SOURCES = \
5756 src/python-systemd/_daemon.c \
5757 src/python-systemd/pyutil.c \
5758 src/python-systemd/pyutil.h
5760 _daemon_la_CFLAGS = \
5762 -fvisibility=default \
5763 $(PYTHON_DEVEL_CFLAGS) \
5764 -I$(top_builddir)/src/python-systemd
5766 _daemon_la_LDFLAGS = \
5772 _daemon_la_LIBADD = \
5773 $(PYTHON_DEVEL_LIBS) \
5774 libsystemd-shared.la \
5777 _reader_la_SOURCES = \
5778 src/python-systemd/_reader.c \
5779 src/python-systemd/pyutil.c \
5780 src/python-systemd/pyutil.h
5782 _reader_la_CFLAGS = \
5784 -fvisibility=default \
5785 $(PYTHON_DEVEL_CFLAGS)
5787 _reader_la_LDFLAGS = \
5793 _reader_la_LIBADD = \
5794 $(PYTHON_DEVEL_LIBS) \
5795 libsystemd-shared.la \
5798 login_la_SOURCES = \
5799 src/python-systemd/login.c \
5800 src/python-systemd/pyutil.c \
5801 src/python-systemd/pyutil.h
5805 -fvisibility=default \
5806 $(PYTHON_DEVEL_CFLAGS)
5808 login_la_LDFLAGS = \
5815 $(PYTHON_DEVEL_LIBS) \
5816 libsystemd-shared.la \
5819 dist_pkgpyexec_PYTHON = \
5820 src/python-systemd/journal.py \
5821 src/python-systemd/daemon.py \
5822 src/python-systemd/__init__.py
5824 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5825 $(AM_V_at)$(MKDIR_P) $(dir $@)
5826 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5829 src/python-systemd/id128-constants.h
5831 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5833 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5834 $(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/
5835 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5838 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5839 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5842 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5843 $(MAKE) DESTDIR="$$dir" install && \
5844 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5849 CLEAN_LOCAL_HOOKS += clean-sphinx
5851 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5854 -rm -rf docs/html/python-systemd/
5856 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5858 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5859 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5861 # ------------------------------------------------------------------------------
5862 if ENABLE_COMPAT_LIBS
5864 src/compat-libs/linkwarning.h
5866 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5867 $(AM_V_at)$(MKDIR_P) $(dir $@)
5868 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5871 libsystemd-journal.c \
5872 libsystemd-login.c \
5873 libsystemd-id128.c \
5876 libsystemd_journal_la_SOURCES = \
5877 libsystemd-journal.c \
5878 src/compat-libs/libsystemd-journal.sym
5880 libsystemd_journal_la_CPPFLAGS = \
5882 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5884 libsystemd_journal_la_LDFLAGS = \
5886 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5887 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5889 libsystemd_journal_la_LIBADD = \
5890 libsystemd-journal-internal.la \
5891 libsystemd-internal.la \
5892 libsystemd-shared.la
5894 libsystemd_login_la_SOURCES = \
5895 libsystemd-login.c \
5896 src/compat-libs/libsystemd-login.sym
5898 libsystemd_login_la_CPPFLAGS = \
5900 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5902 libsystemd_login_la_LDFLAGS = \
5904 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5905 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5907 libsystemd_login_la_LIBADD = \
5908 libsystemd-internal.la \
5909 libsystemd-shared.la
5911 libsystemd_id128_la_SOURCES = \
5912 libsystemd-id128.c \
5913 src/compat-libs/libsystemd-id128.sym
5915 libsystemd_id128_la_CPPFLAGS = \
5917 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5919 libsystemd_id128_la_LDFLAGS = \
5921 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5922 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5924 libsystemd_id128_la_LIBADD = \
5925 libsystemd-internal.la \
5926 libsystemd-shared.la
5928 libsystemd_daemon_la_SOURCES = \
5929 libsystemd-daemon.c \
5930 src/compat-libs/libsystemd-daemon.sym
5932 libsystemd_daemon_la_CPPFLAGS = \
5934 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5936 libsystemd_daemon_la_LDFLAGS = \
5938 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5939 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5941 libsystemd_daemon_la_LIBADD = \
5942 libsystemd-internal.la \
5943 libsystemd-shared.la
5945 lib_LTLIBRARIES += \
5946 libsystemd-journal.la \
5947 libsystemd-login.la \
5948 libsystemd-id128.la \
5949 libsystemd-daemon.la
5951 pkgconfiglib_DATA += \
5952 src/compat-libs/libsystemd-journal.pc \
5953 src/compat-libs/libsystemd-login.pc \
5954 src/compat-libs/libsystemd-id128.pc \
5955 src/compat-libs/libsystemd-daemon.pc
5957 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5958 compat-lib-install-hook:
5959 libname=libsystemd-login.so && $(move-to-rootlibdir)
5960 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5961 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5962 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5964 compat-lib-uninstall-hook:
5965 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5966 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5967 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5968 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5970 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5971 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5975 src/compat-libs/libsystemd-journal.pc.in \
5976 src/compat-libs/libsystemd-login.pc.in \
5977 src/compat-libs/libsystemd-id128.pc.in \
5978 src/compat-libs/libsystemd-daemon.pc.in
5980 # ------------------------------------------------------------------------------
5982 '|rootlibexecdir=$(rootlibexecdir)|' \
5983 '|rootbindir=$(rootbindir)|' \
5984 '|bindir=$(bindir)|' \
5985 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5986 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5987 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5988 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5989 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5990 '|pkgdatadir=$(pkgdatadir)|' \
5991 '|systemunitdir=$(systemunitdir)|' \
5992 '|userunitdir=$(userunitdir)|' \
5993 '|systempresetdir=$(systempresetdir)|' \
5994 '|userpresetdir=$(userpresetdir)|' \
5995 '|udevhwdbdir=$(udevhwdbdir)|' \
5996 '|udevrulesdir=$(udevrulesdir)|' \
5997 '|catalogdir=$(catalogdir)|' \
5998 '|tmpfilesdir=$(tmpfilesdir)|' \
5999 '|sysusersdir=$(sysusersdir)|' \
6000 '|sysctldir=$(sysctldir)|' \
6001 '|systemgeneratordir=$(systemgeneratordir)|' \
6002 '|usergeneratordir=$(usergeneratordir)|' \
6003 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6004 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6005 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6006 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6007 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6008 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6009 '|prefix=$(prefix)|' \
6010 '|exec_prefix=$(exec_prefix)|' \
6011 '|libdir=$(libdir)|' \
6012 '|includedir=$(includedir)|' \
6013 '|VERSION=$(VERSION)|' \
6014 '|rootprefix=$(rootprefix)|' \
6015 '|udevlibexecdir=$(udevlibexecdir)|' \
6016 '|SUSHELL=$(SUSHELL)|' \
6017 '|DEBUGTTY=$(DEBUGTTY)|' \
6020 '|MKDIR_P=$(MKDIR_P)|' \
6021 '|QUOTAON=$(QUOTAON)|' \
6022 '|QUOTACHECK=$(QUOTACHECK)|' \
6023 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6024 '|VARLOGDIR=$(varlogdir)|' \
6025 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6026 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6027 '|PYTHON=$(PYTHON)|' \
6028 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6029 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6030 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6031 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6032 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6033 '|TTY_GID=$(TTY_GID)|' \
6034 '|systemsleepdir=$(systemsleepdir)|' \
6035 '|systemshutdowndir=$(systemshutdowndir)|' \
6036 '|binfmtdir=$(binfmtdir)|' \
6037 '|modulesloaddir=$(modulesloaddir)|'
6040 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6041 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6050 sysctl.d/%: sysctl.d/%.in
6059 src/core/macros.%: src/core/macros.%.in
6062 src/%.policy.in: src/%.policy.in.in
6065 shell-completion/%: shell-completion/%.in
6076 $(AM_V_GEN)chmod +x $@
6078 src/%.c: src/%.gperf
6079 $(AM_V_at)$(MKDIR_P) $(dir $@)
6080 $(AM_V_GPERF)$(GPERF) < $< > $@
6083 $(AM_V_at)$(MKDIR_P) $(dir $@)
6084 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6086 sysusers.d/%: sysusers.d/%.m4
6087 $(AM_V_at)$(MKDIR_P) $(dir $@)
6088 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6090 tmpfiles.d/%: tmpfiles.d/%.m4
6091 $(AM_V_at)$(MKDIR_P) $(dir $@)
6092 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6096 $(AM_V_at)$(MKDIR_P) $(dir $@)
6097 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6099 units/user/%: units/user/%.m4
6100 $(AM_V_at)$(MKDIR_P) $(dir $@)
6101 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6104 nodist_polkitpolicy_DATA = \
6105 $(polkitpolicy_files) \
6106 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6110 $(polkitpolicy_in_files) \
6111 $(polkitpolicy_in_in_files)
6114 $(nodist_systemunit_DATA) \
6115 $(nodist_userunit_DATA) \
6116 $(pkgconfiglib_DATA) \
6117 $(nodist_polkitpolicy_DATA)
6119 # ------------------------------------------------------------------------------
6121 man/custom-entities.ent: configure.ac
6122 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6123 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6124 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6128 man/custom-entities.ent
6133 --stringparam man.output.quietly 1 \
6134 --stringparam funcsynopsis.style ansi \
6135 --stringparam man.authors.section.enabled 0 \
6136 --stringparam man.copyright.section.enabled 0 \
6137 --stringparam systemd.version $(VERSION) \
6138 --path '$(builddir)/man:$(srcdir)/man'
6140 XSLTPROC_PROCESS_MAN = \
6141 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6143 XSLTPROC_PROCESS_HTML = \
6144 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6146 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6147 $(XSLTPROC_PROCESS_MAN)
6149 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6150 $(XSLTPROC_PROCESS_MAN)
6152 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6153 $(XSLTPROC_PROCESS_MAN)
6155 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6156 $(XSLTPROC_PROCESS_MAN)
6158 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6159 $(XSLTPROC_PROCESS_MAN)
6161 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6162 $(XSLTPROC_PROCESS_HTML)
6165 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6171 man/custom-html.xsl \
6174 # ------------------------------------------------------------------------------
6177 docs/sysvinit/README
6182 docs/sysvinit/README: docs/sysvinit/README.in
6185 docs/var-log/README: docs/var-log/README.in
6189 docs/sysvinit/README \
6194 docs/sysvinit/README.in \
6195 docs/var-log/README.in
6197 SOCKETS_TARGET_WANTS += \
6198 systemd-initctl.socket \
6199 systemd-shutdownd.socket
6203 RUNLEVEL1_TARGET_WANTS += \
6204 systemd-update-utmp-runlevel.service
6205 RUNLEVEL2_TARGET_WANTS += \
6206 systemd-update-utmp-runlevel.service
6207 RUNLEVEL3_TARGET_WANTS += \
6208 systemd-update-utmp-runlevel.service
6209 RUNLEVEL4_TARGET_WANTS += \
6210 systemd-update-utmp-runlevel.service
6211 RUNLEVEL5_TARGET_WANTS += \
6212 systemd-update-utmp-runlevel.service
6215 SYSINIT_TARGET_WANTS += \
6216 systemd-update-utmp.service
6219 SYSINIT_TARGET_WANTS += \
6220 systemd-update-done.service
6222 LOCAL_FS_TARGET_WANTS += \
6223 systemd-remount-fs.service \
6226 MULTI_USER_TARGET_WANTS += \
6228 systemd-ask-password-wall.path
6230 SYSINIT_TARGET_WANTS += \
6231 dev-hugepages.mount \
6233 sys-kernel-config.mount \
6234 sys-kernel-debug.mount \
6235 sys-fs-fuse-connections.mount \
6236 systemd-sysctl.service \
6237 systemd-ask-password-console.path
6240 SYSTEM_UNIT_ALIASES += \
6241 poweroff.target runlevel0.target \
6242 rescue.target runlevel1.target \
6243 multi-user.target runlevel2.target \
6244 multi-user.target runlevel3.target \
6245 multi-user.target runlevel4.target \
6246 graphical.target runlevel5.target \
6247 reboot.target runlevel6.target
6250 SYSTEM_UNIT_ALIASES += \
6251 graphical.target default.target \
6252 reboot.target ctrl-alt-del.target \
6253 getty@.service autovt@.service
6255 USER_UNIT_ALIASES += \
6256 $(systemunitdir)/shutdown.target shutdown.target \
6257 $(systemunitdir)/sockets.target sockets.target \
6258 $(systemunitdir)/timers.target timers.target \
6259 $(systemunitdir)/paths.target paths.target \
6260 $(systemunitdir)/bluetooth.target bluetooth.target \
6261 $(systemunitdir)/printer.target printer.target \
6262 $(systemunitdir)/sound.target sound.target \
6263 $(systemunitdir)/smartcard.target smartcard.target
6266 USER_UNIT_ALIASES += \
6267 $(systemunitdir)/busnames.target busnames.target
6270 GENERAL_ALIASES += \
6271 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6272 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6273 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6274 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6278 $(systemunitdir)/runlevel1.target.wants \
6279 $(systemunitdir)/runlevel2.target.wants \
6280 $(systemunitdir)/runlevel3.target.wants \
6281 $(systemunitdir)/runlevel4.target.wants \
6282 $(systemunitdir)/runlevel5.target.wants
6286 $(prefix)/lib/modules-load.d \
6287 $(sysconfdir)/modules-load.d \
6288 $(prefix)/lib/systemd/network \
6289 $(sysconfdir)/systemd/network \
6290 $(prefix)/lib/sysctl.d \
6291 $(sysconfdir)/sysctl.d \
6292 $(prefix)/lib/kernel/install.d \
6293 $(sysconfdir)/kernel/install.d \
6294 $(systemshutdowndir) \
6296 $(systemgeneratordir) \
6297 $(usergeneratordir) \
6300 $(pkgsysconfdir)/system \
6301 $(pkgsysconfdir)/system/multi-user.target.wants \
6302 $(pkgsysconfdir)/system/getty.target.wants \
6303 $(pkgsysconfdir)/user \
6304 $(dbussessionservicedir) \
6305 $(sysconfdir)/xdg/systemd
6307 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6309 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6311 install-data-hook: $(INSTALL_DATA_HOOKS)
6313 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6315 clean-local: $(CLEAN_LOCAL_HOOKS)
6316 rm -rf $(abs_srcdir)/install-tree
6317 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6318 $(abs_srcdir)/hwdb/iab.txt
6320 DISTCHECK_CONFIGURE_FLAGS = \
6321 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6322 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6323 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6324 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6325 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6326 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6327 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6328 --with-rootprefix=$$dc_install_base \
6329 --disable-split-usr \
6331 --enable-compat-libs
6334 DISTCHECK_CONFIGURE_FLAGS += \
6335 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6336 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6338 DISTCHECK_CONFIGURE_FLAGS += \
6339 --with-sysvinit-path= \
6340 --with-sysvrcnd-path=
6344 DISTCHECK_CONFIGURE_FLAGS += \
6349 DISTCHECK_CONFIGURE_FLAGS += \
6354 # Require python when making dist
6356 .PHONY: dist-check-python
6359 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6363 dist-check-compat-libs:
6364 if !ENABLE_COMPAT_LIBS
6365 @echo "*** compat-libs must be enabled in order to make dist"
6369 dist: dist-check-python dist-check-compat-libs
6371 # check "broken" platforms limited toolchains for link breakage before we release
6374 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6378 ( cd $(top_srcdir)/hwdb && \
6379 wget -N http://www.linux-usb.org/usb.ids \
6380 http://pci-ids.ucw.cz/v2.2/pci.ids \
6381 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6382 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6385 .PHONY: kdbus-update
6387 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6388 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6392 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6394 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6396 upload: all check dist
6397 scp systemd-$(VERSION).tar.xz $(www_target)
6400 doc-sync: all destdir-sphinx
6401 gtkdoc-rebase --html-dir=docs/libudev/html --online
6402 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6403 gtkdoc-rebase --html-dir=docs/gudev/html --online
6404 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6405 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6406 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6410 scp man/*.html gardel:public/systemd-man/
6412 .PHONY: lennart-fedora
6414 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6416 .PHONY: install-tree
6418 rm -rf $(abs_srcdir)/install-tree
6419 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6420 tree $(abs_srcdir)/install-tree
6422 # Let's run all tests of the test suite, but under valgrind. Let's
6423 # exclude the one perl script we have in there
6424 .PHONY: valgrind-tests
6425 valgrind-tests: $(TESTS)
6426 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6427 if file $$f | grep -q shell; then \
6428 echo -e "$${x}Skipping non-binary $$f"; else \
6429 echo -e "$${x}Running $$f"; \
6430 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6435 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6437 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6438 $(AM_V_GEN)cat $^ > $@
6440 .PHONY: check-api-docs
6441 check-api-docs: exported man
6442 $(AM_V_GEN)for symbol in `cat exported` ; do \
6443 if test -f $(builddir)/man/$$symbol.html ; then \
6444 echo " Symbol $$symbol() is documented." ; \
6446 echo "‣ Symbol $$symbol() lacks documentation." ; \
6450 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6451 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6453 undefined defined: $(ALL_OBJECTS)
6454 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6455 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6456 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6462 .PHONY: check-api-unused
6463 check-api-unused: defined undefined exported
6464 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6466 .PHONY: check-includes
6467 check-includes: $(top_srcdir)/tools/check-includes.pl
6468 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6469 | xargs $(top_srcdir)/tools/check-includes.pl
6472 $(top_srcdir)/tools/check-includes.pl
6474 # Stupid test that everything purported to be exported really is
6475 define generate-sym-test
6476 $(AM_V_at)$(MKDIR_P) $(dir $@)
6477 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6478 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6479 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6480 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6481 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6482 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6483 $(AM_V_at)printf 'return 0; }\n' >> $@
6486 test-libsystemd-sym.c: \
6487 $(top_builddir)/src/libsystemd/libsystemd.sym \
6488 src/systemd/sd-journal.h \
6489 src/systemd/sd-daemon.h \
6490 src/systemd/sd-login.h \
6491 src/systemd/sd-bus.h \
6492 src/systemd/sd-utf8.h \
6493 src/systemd/sd-resolve.h \
6494 src/systemd/sd-path.h
6495 $(generate-sym-test)
6497 test-libudev-sym.c: \
6498 src/libudev/libudev.sym \
6500 $(generate-sym-test)
6502 test_libsystemd_sym_SOURCES = \
6503 test-libsystemd-sym.c
6504 test_libsystemd_sym_LDADD = \
6507 test_libudev_sym_SOURCES = \
6509 test_libudev_sym_CFLAGS = \
6511 -Wno-deprecated-declarations
6512 test_libudev_sym_LDADD = \
6516 $(test_libsystemd_sym_SOURCES) \
6517 $(test_libudev_sym_SOURCES)
6520 test-libsystemd-sym \
6525 cppcheck --enable=all -q $(top_srcdir)
6527 # Used to extract compile flags for YCM.
6532 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6535 tools/gdb-sd_dump_hashmaps.py