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/fstab-util.c \
773 src/shared/fstab-util.h \
774 src/shared/path-util.c \
775 src/shared/path-util.h \
776 src/shared/time-util.c \
777 src/shared/time-util.h \
778 src/shared/locale-util.c \
779 src/shared/locale-util.h \
780 src/shared/mempool.c \
781 src/shared/mempool.h \
782 src/shared/hashmap.c \
783 src/shared/hashmap.h \
784 src/shared/siphash24.c \
785 src/shared/siphash24.h \
791 src/shared/sleep-config.c \
792 src/shared/sleep-config.h \
795 src/shared/env-util.c \
796 src/shared/env-util.h \
797 src/shared/strbuf.c \
798 src/shared/strbuf.h \
799 src/shared/strxcpyx.c \
800 src/shared/strxcpyx.h \
801 src/shared/conf-parser.c \
802 src/shared/conf-parser.h \
805 src/shared/ratelimit.h \
806 src/shared/ratelimit.c \
807 src/shared/exit-status.c \
808 src/shared/exit-status.h \
811 src/shared/gunicode.c \
812 src/shared/gunicode.h \
815 src/shared/socket-util.c \
816 src/shared/socket-util.h \
817 src/shared/in-addr-util.c \
818 src/shared/in-addr-util.h \
819 src/shared/ether-addr-util.h \
820 src/shared/conf-files.c \
821 src/shared/conf-files.h \
822 src/shared/cgroup-util.c \
823 src/shared/cgroup-util.h \
824 src/shared/cgroup-show.c \
825 src/shared/cgroup-show.h \
826 src/shared/unit-name.c \
827 src/shared/unit-name.h \
828 src/shared/utmp-wtmp.h \
829 src/shared/watchdog.c \
830 src/shared/watchdog.h \
831 src/shared/spawn-ask-password-agent.c \
832 src/shared/spawn-ask-password-agent.h \
833 src/shared/replace-var.c \
834 src/shared/replace-var.h \
835 src/shared/spawn-polkit-agent.c \
836 src/shared/spawn-polkit-agent.h \
837 src/shared/clock-util.c \
838 src/shared/clock-util.h \
839 src/shared/time-dst.c \
840 src/shared/time-dst.h \
841 src/shared/calendarspec.c \
842 src/shared/calendarspec.h \
843 src/shared/fileio.c \
844 src/shared/fileio.h \
845 src/shared/output-mode.h \
846 src/shared/MurmurHash2.c \
847 src/shared/MurmurHash2.h \
848 src/shared/acpi-fpdt.h \
849 src/shared/acpi-fpdt.c \
850 src/shared/boot-timestamps.h \
851 src/shared/boot-timestamps.c \
854 src/shared/smack-util.c \
855 src/shared/smack-util.h \
856 src/shared/apparmor-util.c \
857 src/shared/apparmor-util.h \
858 src/shared/ima-util.c \
859 src/shared/ima-util.h \
860 src/shared/ptyfwd.c \
861 src/shared/ptyfwd.h \
862 src/shared/errno-list.c \
863 src/shared/errno-list.h \
864 src/shared/af-list.c \
865 src/shared/af-list.h \
866 src/shared/arphrd-list.c \
867 src/shared/arphrd-list.h \
868 src/shared/cap-list.c \
869 src/shared/cap-list.h \
876 src/shared/bus-label.c \
877 src/shared/bus-label.h \
879 src/shared/clean-ipc.h \
880 src/shared/clean-ipc.c \
881 src/shared/login-shared.c \
882 src/shared/login-shared.h \
885 src/shared/barrier.c \
886 src/shared/barrier.h \
891 src/shared/base-filesystem.c \
892 src/shared/base-filesystem.h \
893 src/shared/memfd-util.c \
894 src/shared/memfd-util.h \
895 src/shared/uid-range.c \
896 src/shared/uid-range.h \
897 src/shared/nss-util.h \
900 src/shared/sigbus.c \
901 src/shared/sigbus.h \
905 libsystemd_shared_la_SOURCES += \
906 src/shared/utmp-wtmp.c
909 nodist_libsystemd_shared_la_SOURCES = \
910 src/shared/errno-from-name.h \
911 src/shared/errno-to-name.h \
912 src/shared/af-from-name.h \
913 src/shared/af-to-name.h \
914 src/shared/arphrd-from-name.h \
915 src/shared/arphrd-to-name.h \
916 src/shared/cap-from-name.h \
917 src/shared/cap-to-name.h
919 libsystemd_shared_la_CFLAGS = \
925 libsystemd_shared_la_LIBADD = \
929 # ------------------------------------------------------------------------------
930 noinst_LTLIBRARIES += \
933 libsystemd_units_la_SOURCES = \
934 src/shared/install.c \
935 src/shared/install.h \
936 src/shared/install-printf.c \
937 src/shared/install-printf.h \
938 src/shared/path-lookup.c \
939 src/shared/path-lookup.h \
940 src/shared/specifier.c \
941 src/shared/specifier.h
943 # ------------------------------------------------------------------------------
944 noinst_LTLIBRARIES += \
947 libsystemd_label_la_SOURCES = \
948 src/shared/socket-label.c \
951 src/shared/selinux-util.c \
952 src/shared/selinux-util.h \
953 src/shared/mkdir-label.c \
954 src/shared/ask-password-api.c \
955 src/shared/ask-password-api.h \
956 src/shared/switch-root.h \
957 src/shared/switch-root.c \
958 src/shared/fileio-label.c \
959 src/shared/fileio-label.h \
960 src/shared/dev-setup.c \
961 src/shared/dev-setup.h \
962 src/shared/dropin.c \
963 src/shared/dropin.h \
964 src/shared/condition.c \
965 src/shared/condition.h \
966 src/shared/generator.h \
967 src/shared/generator.c \
968 src/shared/btrfs-util.c \
969 src/shared/btrfs-util.h \
970 src/shared/btrfs-ctree.h \
971 src/shared/machine-image.c \
972 src/shared/machine-image.h \
976 libsystemd_label_la_CFLAGS = \
980 libsystemd_label_la_LIBADD = \
983 # -----------------------------------------------------------------------------
986 noinst_LTLIBRARIES += \
989 libsystemd_fw_la_SOURCES = \
990 src/shared/fw-util.h \
993 libsystemd_fw_la_CFLAGS = \
997 libsystemd_fw_la_LIBADD = \
1001 # -----------------------------------------------------------------------------
1004 dist_systemunit_DATA += \
1005 units/ldconfig.service
1007 SYSINIT_TARGET_WANTS += \
1011 # ------------------------------------------------------------------------------
1014 noinst_LTLIBRARIES += \
1015 libsystemd-seccomp.la
1017 libsystemd_seccomp_la_SOURCES = \
1018 src/shared/seccomp-util.h \
1019 src/shared/seccomp-util.c
1021 libsystemd_seccomp_la_CFLAGS = \
1025 libsystemd_seccomp_la_LIBADD = \
1029 # ------------------------------------------------------------------------------
1030 noinst_LTLIBRARIES += \
1033 libsystemd_logs_la_SOURCES = \
1034 src/shared/logs-show.c \
1035 src/shared/logs-show.h
1037 # ------------------------------------------------------------------------------
1039 noinst_LTLIBRARIES += \
1042 libsystemd_acl_la_SOURCES = \
1043 src/shared/acl-util.c \
1044 src/shared/acl-util.h
1046 libsystemd_acl_la_CFLAGS = \
1050 libsystemd_acl_la_LIBADD = \
1054 # ------------------------------------------------------------------------------
1055 noinst_LTLIBRARIES += \
1058 libsystemd_core_la_SOURCES = \
1061 src/core/unit-printf.c \
1062 src/core/unit-printf.h \
1065 src/core/manager.c \
1066 src/core/manager.h \
1067 src/core/transaction.c \
1068 src/core/transaction.h \
1069 src/core/load-fragment.c \
1070 src/core/load-fragment.h \
1071 src/core/service.c \
1072 src/core/service.h \
1075 src/core/busname.c \
1076 src/core/busname.h \
1077 src/core/bus-endpoint.c \
1078 src/core/bus-endpoint.h \
1079 src/core/bus-policy.c \
1080 src/core/bus-policy.h \
1083 src/core/snapshot.c \
1084 src/core/snapshot.h \
1089 src/core/automount.c \
1090 src/core/automount.h \
1101 src/core/load-dropin.c \
1102 src/core/load-dropin.h \
1103 src/core/execute.c \
1104 src/core/execute.h \
1109 src/core/dbus-manager.c \
1110 src/core/dbus-manager.h \
1111 src/core/dbus-unit.c \
1112 src/core/dbus-unit.h \
1113 src/core/dbus-job.c \
1114 src/core/dbus-job.h \
1115 src/core/dbus-service.c \
1116 src/core/dbus-service.h \
1117 src/core/dbus-socket.c \
1118 src/core/dbus-socket.h \
1119 src/core/dbus-busname.c \
1120 src/core/dbus-busname.h \
1121 src/core/dbus-target.c \
1122 src/core/dbus-target.h \
1123 src/core/dbus-snapshot.c \
1124 src/core/dbus-snapshot.h \
1125 src/core/dbus-device.c \
1126 src/core/dbus-device.h \
1127 src/core/dbus-mount.c \
1128 src/core/dbus-mount.h \
1129 src/core/dbus-automount.c \
1130 src/core/dbus-automount.h \
1131 src/core/dbus-swap.c \
1132 src/core/dbus-swap.h \
1133 src/core/dbus-timer.c \
1134 src/core/dbus-timer.h \
1135 src/core/dbus-path.c \
1136 src/core/dbus-path.h \
1137 src/core/dbus-slice.c \
1138 src/core/dbus-slice.h \
1139 src/core/dbus-scope.c \
1140 src/core/dbus-scope.h \
1141 src/core/dbus-execute.c \
1142 src/core/dbus-execute.h \
1143 src/core/dbus-kill.c \
1144 src/core/dbus-kill.h \
1145 src/core/dbus-cgroup.c \
1146 src/core/dbus-cgroup.h \
1149 src/core/selinux-access.c \
1150 src/core/selinux-access.h \
1151 src/core/selinux-setup.c \
1152 src/core/selinux-setup.h \
1153 src/core/smack-setup.c \
1154 src/core/smack-setup.h \
1155 src/core/ima-setup.c \
1156 src/core/ima-setup.h \
1157 src/core/locale-setup.h \
1158 src/core/locale-setup.c \
1159 src/core/hostname-setup.c \
1160 src/core/hostname-setup.h \
1161 src/core/machine-id-setup.c \
1162 src/core/machine-id-setup.h \
1163 src/core/mount-setup.c \
1164 src/core/mount-setup.h \
1165 src/core/kmod-setup.c \
1166 src/core/kmod-setup.h \
1167 src/core/loopback-setup.h \
1168 src/core/loopback-setup.c \
1169 src/core/namespace.c \
1170 src/core/namespace.h \
1171 src/core/killall.h \
1172 src/core/killall.c \
1173 src/core/audit-fd.c \
1174 src/core/audit-fd.h \
1175 src/core/show-status.c \
1176 src/core/show-status.h \
1177 src/core/failure-action.c \
1178 src/core/failure-action.h
1180 nodist_libsystemd_core_la_SOURCES = \
1181 src/core/load-fragment-gperf.c \
1182 src/core/load-fragment-gperf-nulstr.c
1184 libsystemd_core_la_CFLAGS = \
1189 $(APPARMOR_CFLAGS) \
1194 libsystemd_core_la_LIBADD = \
1195 libsystemd-units.la \
1196 libsystemd-label.la \
1197 libudev-internal.la \
1198 libsystemd-shared.la \
1199 libsystemd-internal.la \
1208 libsystemd_core_la_LIBADD += \
1209 libsystemd-seccomp.la
1212 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1213 $(AM_V_at)$(MKDIR_P) $(dir $@)
1214 $(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 ";" }' < $< > $@
1217 src/core/load-fragment-gperf.gperf.m4
1220 src/core/load-fragment-gperf.gperf \
1221 src/core/load-fragment-gperf.c \
1222 src/core/load-fragment-gperf-nulstr.c \
1223 src/shared/errno-list.txt \
1224 src/shared/errno-from-name.gperf \
1225 src/shared/af-list.txt \
1226 src/shared/af-from-name.gperf \
1227 src/shared/arphrd-list.txt \
1228 src/shared/arphrd-from-name.gperf \
1229 src/shared/cap-list.txt \
1230 src/shared/cap-from-name.gperf \
1231 src/resolve/dns_type-list.txt \
1232 src/resolve/dns_type-from-name.gperf
1235 src/shared/errno-from-name.h \
1236 src/shared/errno-to-name.h \
1237 src/shared/af-from-name.h \
1238 src/shared/af-to-name.h \
1239 src/shared/arphrd-from-name.h \
1240 src/shared/arphrd-to-name.h \
1241 src/shared/cap-from-name.h \
1242 src/shared/cap-to-name.h \
1243 src/resolve/dns_type-from-name.h \
1244 src/resolve/dns_type-to-name.h
1246 %-from-name.gperf: %-list.txt
1247 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1249 %-from-name.h: %-from-name.gperf
1250 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1253 src/shared/errno-list.txt:
1254 $(AM_V_at)$(MKDIR_P) $(dir $@)
1255 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1257 src/shared/errno-to-name.h: src/shared/errno-list.txt
1258 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1261 src/shared/af-list.txt:
1262 $(AM_V_at)$(MKDIR_P) $(dir $@)
1263 $(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; }' >$@
1265 src/shared/af-to-name.h: src/shared/af-list.txt
1266 $(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 "};"}' <$< >$@
1269 src/shared/arphrd-list.txt:
1270 $(AM_V_at)$(MKDIR_P) $(dir $@)
1271 $(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_//' >$@
1273 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1274 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1276 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1277 $(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 }' <$< >$@
1280 src/shared/cap-list.txt:
1281 $(AM_V_at)$(MKDIR_P) $(dir $@)
1282 $(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 >$@
1284 src/shared/cap-to-name.h: src/shared/cap-list.txt
1285 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1287 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1288 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1290 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1291 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1294 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1295 $(AM_V_at)$(MKDIR_P) $(dir $@)
1296 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1298 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1299 $(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" }' <$< >$@
1301 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1302 $(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 }' <$< >$@
1304 # ------------------------------------------------------------------------------
1313 libsystemd-core.la \
1316 dist_pkgsysconf_DATA += \
1317 src/core/system.conf \
1320 dist_dbuspolicy_DATA += \
1321 src/core/org.freedesktop.systemd1.conf
1323 dist_dbussystemservice_DATA += \
1324 src/core/org.freedesktop.systemd1.service
1326 polkitpolicy_in_in_files += \
1327 src/core/org.freedesktop.systemd1.policy.in.in
1329 pkgconfiglib_DATA += \
1332 nodist_rpmmacros_DATA = \
1333 src/core/macros.systemd
1336 src/core/systemd.pc.in \
1337 src/core/macros.systemd.in
1340 src/core/macros.systemd \
1341 src/core/org.freedesktop.systemd1.policy.in
1343 # ------------------------------------------------------------------------------
1389 test-strip-tab-ansi \
1425 test/daughter.service \
1430 test/grandchild.service \
1432 test/hello-after-sleep.target \
1433 test/hello.service \
1435 test/parent-deep.slice \
1438 test/sched_idle_bad.service \
1439 test/sched_idle_ok.service \
1440 test/sched_rr_bad.service \
1441 test/sched_rr_change.service \
1442 test/sched_rr_ok.service \
1443 test/shutdown.target \
1444 test/sleep.service \
1445 test/sockets.target \
1447 test/sysinit.target \
1448 test/testsuite.target \
1449 test/timers.target \
1450 test/unstoppable.service \
1451 test/path-changed.service \
1452 test/path-directorynotempty.service \
1453 test/path-existsglob.service \
1454 test/path-exists.service \
1455 test/path-makedirectory.service \
1456 test/path-modified.service \
1457 test/path-mycustomunit.service \
1458 test/path-service.service \
1459 test/path-changed.path \
1460 test/path-directorynotempty.path \
1461 test/path-existsglob.path \
1462 test/path-exists.path \
1463 test/path-makedirectory.path \
1464 test/path-modified.path \
1465 test/path-unit.path \
1466 test/exec-environment-empty.service \
1467 test/exec-environment-multiple.service \
1468 test/exec-environment.service \
1469 test/exec-group.service \
1470 test/exec-ignoresigpipe-no.service \
1471 test/exec-ignoresigpipe-yes.service \
1472 test/exec-personality-x86-64.service \
1473 test/exec-personality-x86.service \
1474 test/exec-privatedevices-no.service \
1475 test/exec-privatedevices-yes.service \
1476 test/exec-privatetmp-no.service \
1477 test/exec-privatetmp-yes.service \
1478 test/exec-systemcallerrornumber.service \
1479 test/exec-systemcallfilter-failing2.service \
1480 test/exec-systemcallfilter-failing.service \
1481 test/exec-systemcallfilter-not-failing2.service \
1482 test/exec-systemcallfilter-not-failing.service \
1483 test/exec-user.service \
1484 test/exec-workingdirectory.service \
1485 test/exec-umask-0177.service \
1486 test/exec-umask-default.service \
1487 test/bus-policy/hello.conf \
1488 test/bus-policy/methods.conf \
1489 test/bus-policy/ownerships.conf \
1490 test/bus-policy/signals.conf \
1491 test/bus-policy/check-own-rules.conf \
1492 test/bus-policy/many-rules.conf \
1493 test/bus-policy/test.conf
1497 src/test/test-helper.h
1499 test_device_nodes_SOURCES = \
1500 src/test/test-device-nodes.c
1502 test_device_nodes_LDADD = \
1503 libsystemd-shared.la
1505 test_engine_SOURCES = \
1506 src/test/test-engine.c
1508 test_engine_CFLAGS = \
1512 test_engine_LDADD = \
1513 libsystemd-core.la \
1516 test_job_type_SOURCES = \
1517 src/test/test-job-type.c
1519 test_job_type_CFLAGS = \
1523 test_job_type_LDADD = \
1524 libsystemd-core.la \
1537 test_loopback_SOURCES = \
1538 src/test/test-loopback.c
1540 test_loopback_LDADD = \
1543 test_hostname_SOURCES = \
1544 src/test/test-hostname.c
1546 test_hostname_LDADD = \
1553 test_boot_timestamp_SOURCES = \
1554 src/test/test-boot-timestamps.c
1556 test_boot_timestamp_LDADD = \
1557 libsystemd-shared.la
1560 test_unit_name_SOURCES = \
1561 src/test/test-unit-name.c
1563 test_unit_name_CFLAGS = \
1567 test_unit_name_LDADD = \
1568 libsystemd-core.la \
1571 test_unit_file_SOURCES = \
1572 src/test/test-unit-file.c
1574 test_unit_file_CFLAGS = \
1578 test_unit_file_LDADD = \
1579 libsystemd-core.la \
1582 test_utf8_SOURCES = \
1583 src/test/test-utf8.c
1586 libsystemd-shared.la
1588 test_capability_SOURCES = \
1589 src/test/test-capability.c
1591 test_capability_LDADD = \
1592 libsystemd-shared.la
1594 test_async_SOURCES = \
1595 src/test/test-async.c
1597 test_async_LDADD = \
1598 libsystemd-shared.la
1600 test_locale_util_SOURCES = \
1601 src/test/test-locale-util.c
1603 test_locale_util_LDADD = \
1604 libsystemd-shared.la
1606 test_copy_SOURCES = \
1607 src/test/test-copy.c
1610 libsystemd-label.la \
1611 libsystemd-shared.la
1613 test_sigbus_SOURCES = \
1614 src/test/test-sigbus.c
1616 test_sigbus_LDADD = \
1617 libsystemd-shared.la
1619 test_condition_SOURCES = \
1620 src/test/test-condition.c
1622 test_condition_LDADD = \
1623 libsystemd-label.la \
1624 libsystemd-internal.la \
1625 libsystemd-shared.la
1627 test_fdset_SOURCES = \
1628 src/test/test-fdset.c
1630 test_fdset_LDADD = \
1631 libsystemd-shared.la \
1632 libsystemd-internal.la
1634 test_fstab_util_SOURCES = \
1635 src/test/test-fstab-util.c
1637 test_fstab_util_LDADD = \
1638 libsystemd-shared.la
1640 test_ratelimit_SOURCES = \
1641 src/test/test-ratelimit.c
1643 test_ratelimit_LDADD = \
1644 libsystemd-shared.la
1646 test_util_SOURCES = \
1647 src/test/test-util.c
1650 libsystemd-shared.la
1652 test_path_lookup_SOURCES = \
1653 src/test/test-path-lookup.c
1655 test_path_lookup_LDADD = \
1657 libsystemd-units.la \
1658 libsystemd-shared.la
1660 test_uid_range_SOURCES = \
1661 src/test/test-uid-range.c
1663 test_uid_range_LDADD = \
1664 libsystemd-shared.la
1666 test_cap_list_SOURCES = \
1667 src/test/test-cap-list.c
1669 test_cap_list_LDADD = \
1670 libsystemd-shared.la
1672 test_socket_util_SOURCES = \
1673 src/test/test-socket-util.c
1675 test_socket_util_LDADD = \
1676 libsystemd-shared.la
1678 test_ring_SOURCES = \
1679 src/test/test-ring.c
1682 libsystemd-shared.la
1684 test_barrier_SOURCES = \
1685 src/test/test-barrier.c
1687 test_barrier_LDADD = \
1688 libsystemd-shared.la
1690 test_pty_SOURCES = \
1696 test_tmpfiles_SOURCES = \
1697 src/test/test-tmpfiles.c
1699 test_tmpfiles_LDADD = \
1700 libsystemd-shared.la
1702 test_namespace_SOURCES = \
1703 src/test/test-namespace.c
1705 test_verbs_SOURCES = \
1706 src/test/test-verbs.c
1708 test_verbs_LDADD = \
1709 libsystemd-shared.la
1711 test_namespace_LDADD = \
1715 src/test/test-hashmap-ordered.c
1718 src/test/test-hashmap-ordered.c
1720 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1721 $(AM_V_at)$(MKDIR_P) $(dir $@)
1722 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1723 { if (!match($$0, "^#include")) \
1724 gsub(/hashmap/, "ordered_hashmap"); \
1725 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1726 gsub(/Hashmap/, "OrderedHashmap"); \
1729 nodist_test_hashmap_SOURCES = \
1730 src/test/test-hashmap-ordered.c
1732 test_hashmap_SOURCES = \
1733 src/test/test-hashmap.c \
1734 src/test/test-hashmap-plain.c
1736 test_hashmap_LDADD = \
1737 libsystemd-shared.la
1739 test_set_SOURCES = \
1743 libsystemd-shared.la
1745 test_xml_SOURCES = \
1749 libsystemd-shared.la
1751 test_json_SOURCES = \
1752 src/test/test-json.c
1755 libsystemd-shared.la
1757 test_list_SOURCES = \
1758 src/test/test-list.c
1761 libsystemd-shared.la
1763 test_unaligned_LDADD = \
1764 libsystemd-shared.la
1766 test_unaligned_SOURCES = \
1767 src/test/test-unaligned.c
1769 test_tables_SOURCES = \
1770 src/test/test-tables.c \
1771 src/shared/test-tables.h \
1772 src/bus-proxyd/bus-xml-policy.c \
1773 src/bus-proxyd/bus-xml-policy.h \
1774 src/journal/journald-server.c \
1775 src/journal/journald-server.h
1777 test_tables_CPPFLAGS = \
1779 -I$(top_srcdir)/src/bus-proxyd
1781 test_tables_CFLAGS = \
1785 test_tables_LDADD = \
1786 libsystemd-logs.la \
1787 libsystemd-journal-internal.la \
1788 libsystemd-journal-core.la \
1789 libsystemd-core.la \
1793 test_prioq_SOURCES = \
1794 src/test/test-prioq.c
1796 test_prioq_LDADD = \
1797 libsystemd-shared.la
1799 test_fileio_SOURCES = \
1800 src/test/test-fileio.c
1802 test_fileio_LDADD = \
1803 libsystemd-shared.la
1805 test_time_SOURCES = \
1806 src/test/test-time.c
1809 libsystemd-shared.la
1811 test_architecture_SOURCES = \
1812 src/test/test-architecture.c
1814 test_architecture_LDADD = \
1815 libsystemd-shared.la
1817 test_log_SOURCES = \
1821 libsystemd-shared.la
1823 test_ipcrm_SOURCES = \
1824 src/test/test-ipcrm.c
1826 test_ipcrm_LDADD = \
1827 libsystemd-shared.la \
1830 test_btrfs_SOURCES = \
1831 src/test/test-btrfs.c
1833 test_btrfs_LDADD = \
1834 libsystemd-label.la \
1835 libsystemd-shared.la
1837 test_fw_util_SOURCES = \
1838 src/test/test-fw-util.c
1840 test_fw_util_CFLAGS = \
1844 test_fw_util_LDADD = \
1846 libsystemd-shared.la \
1849 test_rtnl_manual_SOURCES = \
1850 src/test/test-rtnl-manual.c
1852 test_rtnl_manual_CFLAGS = \
1856 test_rtnl_manual_LDADD = \
1857 libsystemd-internal.la \
1858 libsystemd-shared.la \
1861 test_ellipsize_SOURCES = \
1862 src/test/test-ellipsize.c
1864 test_ellipsize_LDADD = \
1865 libsystemd-shared.la
1867 test_date_SOURCES = \
1868 src/test/test-date.c
1871 libsystemd-shared.la
1873 test_sleep_SOURCES = \
1874 src/test/test-sleep.c
1876 test_sleep_LDADD = \
1879 test_replace_var_SOURCES = \
1880 src/test/test-replace-var.c
1882 test_replace_var_LDADD = \
1883 libsystemd-shared.la
1885 test_calendarspec_SOURCES = \
1886 src/test/test-calendarspec.c
1888 test_calendarspec_LDADD = \
1889 libsystemd-shared.la
1891 test_strip_tab_ansi_SOURCES = \
1892 src/test/test-strip-tab-ansi.c
1894 test_strip_tab_ansi_LDADD = \
1895 libsystemd-shared.la
1897 test_daemon_SOURCES = \
1898 src/test/test-daemon.c
1900 test_daemon_LDADD = \
1901 libsystemd-internal.la \
1902 libsystemd-shared.la
1904 test_cgroup_SOURCES = \
1905 src/test/test-cgroup.c
1907 test_cgroup_LDADD = \
1908 libsystemd-label.la \
1909 libsystemd-shared.la \
1910 libsystemd-internal.la
1912 test_cgroup_mask_SOURCES = \
1913 src/test/test-cgroup-mask.c
1915 test_cgroup_mask_CPPFLAGS = \
1918 test_cgroup_mask_CFLAGS = \
1922 test_cgroup_mask_LDADD = \
1923 libsystemd-core.la \
1926 test_cgroup_util_SOURCES = \
1927 src/test/test-cgroup-util.c
1929 test_cgroup_util_LDADD = \
1930 libsystemd-label.la \
1931 libsystemd-internal.la \
1932 libsystemd-shared.la
1934 test_env_replace_SOURCES = \
1935 src/test/test-env-replace.c
1937 test_env_replace_LDADD = \
1938 libsystemd-shared.la
1940 test_strbuf_SOURCES = \
1941 src/test/test-strbuf.c
1943 test_strbuf_LDADD = \
1944 libsystemd-shared.la
1946 test_strv_SOURCES = \
1947 src/test/test-strv.c
1950 libsystemd-units.la \
1951 libsystemd-internal.la \
1952 libsystemd-shared.la
1954 test_path_util_SOURCES = \
1955 src/test/test-path-util.c
1957 test_path_util_LDADD = \
1958 libsystemd-shared.la
1960 test_path_SOURCES = \
1961 src/test/test-path.c
1963 test_path_CFLAGS = \
1969 test_execute_SOURCES = \
1970 src/test/test-execute.c
1972 test_execute_CFLAGS = \
1975 test_execute_LDADD = \
1978 test_strxcpyx_SOURCES = \
1979 src/test/test-strxcpyx.c
1981 test_strxcpyx_LDADD = \
1982 libsystemd-shared.la
1984 test_install_SOURCES = \
1985 src/test/test-install.c
1987 test_install_LDADD = \
1988 libsystemd-units.la \
1989 libsystemd-label.la \
1990 libsystemd-shared.la \
1991 libsystemd-internal.la
1993 test_watchdog_SOURCES = \
1994 src/test/test-watchdog.c
1996 test_watchdog_LDADD = \
1997 libsystemd-shared.la
1999 test_sched_prio_SOURCES = \
2000 src/test/test-sched-prio.c
2002 test_sched_prio_CPPFLAGS = \
2005 test_sched_prio_CFLAGS = \
2009 test_sched_prio_LDADD = \
2010 libsystemd-core.la \
2013 test_conf_files_SOURCES = \
2014 src/test/test-conf-files.c
2016 test_conf_files_LDADD = \
2017 libsystemd-shared.la
2019 test_bus_policy_SOURCES = \
2020 src/bus-proxyd/test-bus-xml-policy.c \
2021 src/bus-proxyd/bus-xml-policy.c \
2022 src/bus-proxyd/bus-xml-policy.h
2024 test_bus_policy_LDADD = \
2025 libsystemd-internal.la \
2026 libsystemd-shared.la
2028 # ------------------------------------------------------------------------------
2029 ## .PHONY so it always rebuilds it
2030 .PHONY: coverage lcov-run lcov-report coverage-sync
2032 # run lcov from scratch, always
2037 coverage_dir = coverage
2038 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2041 # reset run coverage tests
2043 @rm -rf $(coverage_dir)
2044 lcov $(coverage_opts) --zerocounters
2047 # generate report based on current coverage data
2049 $(MKDIR_P) $(coverage_dir)
2050 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2051 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2052 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2053 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2054 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2056 # lcov doesn't work properly with vpath builds, make sure that bad
2057 # output is not uploaded by mistake.
2058 coverage-sync: coverage
2059 test "$(builddir)" = "$(srcdir)"
2060 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2063 lcov-run lcov-report:
2064 echo "Need to reconfigure with --enable-coverage"
2067 # ------------------------------------------------------------------------------
2068 systemd_analyze_SOURCES = \
2069 src/analyze/analyze.c \
2070 src/analyze/analyze-verify.c \
2071 src/analyze/analyze-verify.h
2073 systemd_verify_CFLAGS = \
2077 systemd_analyze_LDADD = \
2078 libsystemd-core.la \
2079 libsystemd-internal.la \
2080 libsystemd-shared.la \
2083 # ------------------------------------------------------------------------------
2084 systemd_initctl_SOURCES = \
2085 src/initctl/initctl.c
2087 systemd_initctl_LDADD = \
2088 libsystemd-internal.la \
2089 libsystemd-shared.la
2091 # ------------------------------------------------------------------------------
2092 systemd_update_utmp_SOURCES = \
2093 src/update-utmp/update-utmp.c
2095 systemd_update_utmp_CFLAGS = \
2099 systemd_update_utmp_LDADD = \
2100 libsystemd-internal.la \
2101 libsystemd-shared.la \
2104 # ------------------------------------------------------------------------------
2105 systemd_update_done_SOURCES = \
2106 src/update-done/update-done.c
2108 systemd_update_done_LDADD = \
2109 libsystemd-internal.la \
2110 libsystemd-label.la \
2111 libsystemd-shared.la
2113 # ------------------------------------------------------------------------------
2114 systemd_shutdownd_SOURCES = \
2115 src/shutdownd/shutdownd.c
2117 systemd_shutdownd_LDADD = \
2118 libsystemd-label.la \
2119 libsystemd-internal.la \
2120 libsystemd-shared.la
2123 src/systemd/sd-shutdown.h
2125 # ------------------------------------------------------------------------------
2126 systemd_shutdown_SOURCES = \
2129 src/core/shutdown.c \
2130 src/core/mount-setup.c \
2131 src/core/mount-setup.h \
2132 src/core/killall.h \
2135 systemd_shutdown_LDADD = \
2136 libsystemd-label.la \
2137 libudev-internal.la \
2138 libsystemd-shared.la
2140 # ------------------------------------------------------------------------------
2142 systemd_modules_load_SOURCES = \
2143 src/modules-load/modules-load.c
2145 systemd_modules_load_CFLAGS = \
2149 systemd_modules_load_LDADD = \
2150 libsystemd-shared.la \
2153 rootlibexec_PROGRAMS += \
2154 systemd-modules-load
2156 nodist_systemunit_DATA += \
2157 units/systemd-modules-load.service
2159 SYSINIT_TARGET_WANTS += \
2160 systemd-modules-load.service
2163 nodist_systemunit_DATA += \
2164 units/kmod-static-nodes.service
2166 SYSINIT_TARGET_WANTS += \
2167 kmod-static-nodes.service
2172 units/systemd-modules-load.service.in \
2173 units/kmod-static-nodes.service.in
2175 # ------------------------------------------------------------------------------
2177 systemd_tmpfiles_SOURCES = \
2178 src/tmpfiles/tmpfiles.c
2180 systemd_tmpfiles_LDADD = \
2181 libsystemd-units.la \
2182 libsystemd-label.la \
2183 libsystemd-internal.la \
2184 libsystemd-shared.la
2186 rootbin_PROGRAMS += \
2189 dist_systemunit_DATA += \
2190 units/systemd-tmpfiles-clean.timer
2192 nodist_systemunit_DATA += \
2193 units/systemd-tmpfiles-setup-dev.service \
2194 units/systemd-tmpfiles-setup.service \
2195 units/systemd-tmpfiles-clean.service
2197 nodist_tmpfiles_DATA = \
2200 dist_tmpfiles_DATA = \
2201 tmpfiles.d/systemd.conf \
2202 tmpfiles.d/systemd-nologin.conf \
2203 tmpfiles.d/tmp.conf \
2204 tmpfiles.d/x11.conf \
2208 dist_tmpfiles_DATA += \
2209 tmpfiles.d/legacy.conf
2212 SYSINIT_TARGET_WANTS += \
2213 systemd-tmpfiles-setup-dev.service \
2214 systemd-tmpfiles-setup.service
2216 dist_zshcompletion_DATA += \
2217 shell-completion/zsh/_systemd-tmpfiles
2219 TIMERS_TARGET_WANTS += \
2220 systemd-tmpfiles-clean.timer
2224 $(sysconfdir)/tmpfiles.d
2228 tmpfiles.d/etc.conf.m4 \
2229 units/systemd-tmpfiles-setup-dev.service.in \
2230 units/systemd-tmpfiles-setup.service.in \
2231 units/systemd-tmpfiles-clean.service.in
2236 # ------------------------------------------------------------------------------
2238 systemd_sysusers_SOURCES = \
2239 src/sysusers/sysusers.c
2241 systemd_sysusers_LDADD = \
2242 libsystemd-units.la \
2243 libsystemd-label.la \
2244 libsystemd-internal.la \
2245 libsystemd-shared.la
2247 rootbin_PROGRAMS += \
2250 nodist_systemunit_DATA += \
2251 units/systemd-sysusers.service
2253 SYSINIT_TARGET_WANTS += \
2254 systemd-sysusers.service
2256 dist_sysusers_DATA = \
2257 sysusers.d/systemd.conf
2259 nodist_sysusers_DATA = \
2260 sysusers.d/basic.conf
2263 units/systemd-sysusers.service.in \
2264 sysusers.d/basic.conf.in
2267 sysusers.d/basic.conf
2273 # ------------------------------------------------------------------------------
2274 dist_factory_etc_DATA = \
2275 factory/etc/nsswitch.conf
2278 dist_factory_pam_DATA = \
2279 factory/etc/pam.d/system-auth \
2280 factory/etc/pam.d/other
2283 # ------------------------------------------------------------------------------
2285 systemd_firstboot_SOURCES = \
2286 src/firstboot/firstboot.c
2288 systemd_firstboot_LDADD = \
2289 libsystemd-units.la \
2290 libsystemd-label.la \
2291 libsystemd-internal.la \
2292 libsystemd-shared.la \
2295 rootbin_PROGRAMS += \
2298 nodist_systemunit_DATA += \
2299 units/systemd-firstboot.service
2302 units/systemd-firstboot.service.in
2304 SYSINIT_TARGET_WANTS += \
2305 systemd-firstboot.service
2308 # ------------------------------------------------------------------------------
2309 systemd_machine_id_setup_SOURCES = \
2310 src/machine-id-setup/machine-id-setup-main.c \
2311 src/core/machine-id-setup.c \
2312 src/core/machine-id-setup.h
2314 systemd_machine_id_setup_LDADD = \
2315 libsystemd-label.la \
2316 libsystemd-internal.la \
2317 libsystemd-shared.la
2319 # ------------------------------------------------------------------------------
2320 systemd_sysctl_SOURCES = \
2323 systemd_sysctl_LDADD = \
2324 libsystemd-shared.la
2326 # ------------------------------------------------------------------------------
2327 systemd_sleep_SOURCES = \
2330 systemd_sleep_LDADD = \
2331 libsystemd-shared.la
2333 # ------------------------------------------------------------------------------
2334 systemd_fsck_SOURCES = \
2337 systemd_fsck_LDADD = \
2338 libsystemd-internal.la \
2339 libudev-internal.la \
2340 libsystemd-shared.la
2342 # ------------------------------------------------------------------------------
2343 systemd_machine_id_commit_SOURCES = \
2344 src/machine-id-commit/machine-id-commit.c \
2345 src/core/machine-id-setup.c \
2346 src/core/machine-id-setup.h
2348 systemd_machine_id_commit_LDADD = \
2349 libsystemd-label.la \
2350 libsystemd-internal.la \
2351 libsystemd-shared.la
2353 SYSINIT_TARGET_WANTS += \
2354 systemd-machine-id-commit.service
2356 # ------------------------------------------------------------------------------
2357 systemd_ac_power_SOURCES = \
2358 src/ac-power/ac-power.c
2360 systemd_ac_power_LDADD = \
2361 libudev-internal.la \
2362 libsystemd-shared.la
2364 # ------------------------------------------------------------------------------
2365 systemd_detect_virt_SOURCES = \
2366 src/detect-virt/detect-virt.c
2368 systemd_detect_virt_LDADD = \
2369 libsystemd-shared.la
2371 INSTALL_EXEC_HOOKS += \
2372 systemd-detect-virt-install-hook
2374 # ------------------------------------------------------------------------------
2375 systemd_delta_SOURCES = \
2378 systemd_delta_LDADD = \
2379 libsystemd-shared.la
2381 # ------------------------------------------------------------------------------
2382 systemd_getty_generator_SOURCES = \
2383 src/getty-generator/getty-generator.c
2385 systemd_getty_generator_LDADD = \
2386 libsystemd-label.la \
2387 libsystemd-shared.la
2389 # ------------------------------------------------------------------------------
2390 systemd_debug_generator_SOURCES = \
2391 src/debug-generator/debug-generator.c
2393 systemd_debug_generator_LDADD = \
2394 libsystemd-label.la \
2395 libsystemd-shared.la
2397 # ------------------------------------------------------------------------------
2398 systemd_fstab_generator_SOURCES = \
2399 src/fstab-generator/fstab-generator.c \
2400 src/core/mount-setup.c
2402 systemd_fstab_generator_LDADD = \
2403 libsystemd-label.la \
2404 libsystemd-shared.la
2406 # ------------------------------------------------------------------------------
2407 systemd_system_update_generator_SOURCES = \
2408 src/system-update-generator/system-update-generator.c
2410 systemd_system_update_generator_LDADD = \
2411 libsystemd-label.la \
2412 libsystemd-shared.la
2414 # ------------------------------------------------------------------------------
2416 systemgenerator_PROGRAMS += \
2417 systemd-hibernate-resume-generator
2419 rootlibexec_PROGRAMS += \
2420 systemd-hibernate-resume
2422 systemd_hibernate_resume_SOURCES = \
2423 src/hibernate-resume/hibernate-resume.c
2425 systemd_hibernate_resume_LDADD = \
2426 libsystemd-internal.la \
2427 libsystemd-shared.la
2429 systemd_hibernate_resume_generator_SOURCES = \
2430 src/hibernate-resume/hibernate-resume-generator.c
2432 systemd_hibernate_resume_generator_LDADD = \
2433 libsystemd-label.la \
2434 libsystemd-shared.la
2437 units/systemd-hibernate.service.in \
2438 units/systemd-hibernate-resume@.service.in \
2439 units/systemd-hybrid-sleep.service.in
2441 dist_systemunit_DATA += \
2442 units/hibernate.target \
2443 units/hybrid-sleep.target
2445 nodist_systemunit_DATA += \
2446 units/systemd-hibernate.service \
2447 units/systemd-hibernate-resume@.service \
2448 units/systemd-hybrid-sleep.service
2451 # ------------------------------------------------------------------------------
2453 systemgenerator_PROGRAMS += \
2454 systemd-efi-boot-generator
2456 systemd_efi_boot_generator_SOURCES = \
2457 src/efi-boot-generator/efi-boot-generator.c
2459 systemd_efi_boot_generator_LDADD = \
2460 libsystemd-label.la \
2461 libsystemd-shared.la
2463 # ------------------------------------------------------------------------------
2466 src/boot/boot-loader.h \
2467 src/boot/bootctl.c \
2468 src/boot/boot-loader.c \
2472 libsystemd-shared.la \
2473 libsystemd-internal.la
2478 dist_bashcompletion_DATA += \
2479 shell-completion/bash/bootctl
2481 dist_zshcompletion_DATA += \
2482 shell-completion/zsh/_bootctl
2486 # ------------------------------------------------------------------------------
2488 systemgenerator_PROGRAMS += \
2489 systemd-gpt-auto-generator
2491 systemd_gpt_auto_generator_SOURCES = \
2492 src/gpt-auto-generator/gpt-auto-generator.c \
2493 src/shared/blkid-util.h
2495 systemd_gpt_auto_generator_LDADD = \
2496 libsystemd-label.la \
2497 libsystemd-internal.la \
2498 libudev-internal.la \
2499 libsystemd-shared.la \
2502 systemd_gpt_auto_generator_CFLAGS = \
2507 # ------------------------------------------------------------------------------
2509 systemgenerator_PROGRAMS += \
2510 systemd-dbus1-generator
2512 systemd_dbus1_generator_SOURCES = \
2513 src/dbus1-generator/dbus1-generator.c
2515 systemd_dbus1_generator_LDADD = \
2516 libsystemd-label.la \
2517 libsystemd-internal.la \
2518 libsystemd-shared.la
2520 dbus1-generator-install-hook:
2521 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2522 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2523 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2525 dbus1-generator-uninstall-hook:
2526 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2528 dist_xinitrc_SCRIPTS = \
2529 xorg/50-systemd-user.sh
2531 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2532 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2535 # ------------------------------------------------------------------------------
2536 systemd_sysv_generator_SOURCES = \
2537 src/sysv-generator/sysv-generator.c
2539 systemd_sysv_generator_LDADD = \
2540 libsystemd-core.la \
2541 libsystemd-label.la \
2542 libsystemd-shared.la
2544 # ------------------------------------------------------------------------------
2545 systemd_rc_local_generator_SOURCES = \
2546 src/rc-local-generator/rc-local-generator.c
2548 systemd_rc_local_generator_LDADD = \
2549 libsystemd-label.la \
2550 libsystemd-shared.la
2552 # ------------------------------------------------------------------------------
2553 systemd_remount_fs_SOURCES = \
2554 src/remount-fs/remount-fs.c \
2555 src/core/mount-setup.c \
2556 src/core/mount-setup.h
2558 systemd_remount_fs_LDADD = \
2559 libsystemd-label.la \
2560 libsystemd-shared.la
2562 # ------------------------------------------------------------------------------
2563 systemd_cgroups_agent_SOURCES = \
2564 src/cgroups-agent/cgroups-agent.c
2566 systemd_cgroups_agent_LDADD = \
2567 libsystemd-internal.la \
2568 libsystemd-shared.la
2570 # ------------------------------------------------------------------------------
2571 systemd_escape_SOURCES = \
2574 systemd_escape_LDADD = \
2575 libsystemd-shared.la
2577 # -----------------------------------------------------------------------------
2578 systemctl_SOURCES = \
2579 src/systemctl/systemctl.c
2582 libsystemd-units.la \
2583 libsystemd-label.la \
2584 libsystemd-internal.la \
2585 libsystemd-logs.la \
2586 libsystemd-journal-internal.la \
2587 libsystemd-shared.la
2589 # ------------------------------------------------------------------------------
2590 systemd_notify_SOURCES = \
2593 systemd_notify_LDADD = \
2594 libsystemd-internal.la \
2595 libsystemd-shared.la
2597 # ------------------------------------------------------------------------------
2598 systemd_path_SOURCES = \
2601 systemd_path_LDADD = \
2602 libsystemd-internal.la \
2603 libsystemd-shared.la
2605 # ------------------------------------------------------------------------------
2606 systemd_ask_password_SOURCES = \
2607 src/ask-password/ask-password.c
2609 systemd_ask_password_LDADD = \
2610 libsystemd-label.la \
2611 libsystemd-shared.la
2613 # ------------------------------------------------------------------------------
2614 systemd_reply_password_SOURCES = \
2615 src/reply-password/reply-password.c
2617 systemd_reply_password_LDADD = \
2618 libsystemd-shared.la
2620 # ------------------------------------------------------------------------------
2621 systemd_cgls_SOURCES = \
2624 systemd_cgls_LDADD = \
2625 libsystemd-internal.la \
2626 libsystemd-shared.la
2628 # ------------------------------------------------------------------------------
2629 systemd_cgtop_SOURCES = \
2632 systemd_cgtop_LDADD = \
2633 libsystemd-shared.la
2635 # ------------------------------------------------------------------------------
2636 systemd_nspawn_SOURCES = \
2637 src/nspawn/nspawn.c \
2638 src/core/mount-setup.c \
2639 src/core/mount-setup.h \
2640 src/core/loopback-setup.c \
2641 src/core/loopback-setup.h
2643 systemd_nspawn_CFLAGS = \
2648 systemd_nspawn_LDADD = \
2649 libsystemd-label.la \
2650 libsystemd-internal.la \
2651 libudev-internal.la \
2652 libsystemd-shared.la \
2656 systemd_nspawn_LDADD += \
2657 libsystemd-seccomp.la \
2662 systemd_nspawn_LDADD += \
2666 # ------------------------------------------------------------------------------
2667 systemd_run_SOURCES = \
2670 systemd_run_LDADD = \
2671 libsystemd-label.la \
2672 libsystemd-internal.la \
2673 libsystemd-shared.la
2675 # ------------------------------------------------------------------------------
2676 systemd_bus_proxyd_SOURCES = \
2677 src/bus-proxyd/bus-proxyd.c \
2678 src/bus-proxyd/bus-xml-policy.c \
2679 src/bus-proxyd/bus-xml-policy.h \
2680 src/bus-proxyd/driver.c \
2681 src/bus-proxyd/driver.h \
2682 src/bus-proxyd/synthesize.c \
2683 src/bus-proxyd/synthesize.h
2685 systemd_bus_proxyd_LDADD = \
2686 libsystemd-internal.la \
2687 libsystemd-shared.la
2689 bus-proxyd-install-hook:
2690 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2691 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2692 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2694 bus-proxyd-uninstall-hook:
2695 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2697 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2698 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2701 nodist_systemunit_DATA += \
2702 units/systemd-bus-proxyd@.service
2704 dist_systemunit_DATA += \
2705 units/systemd-bus-proxyd.socket
2707 nodist_userunit_DATA += \
2708 units/user/systemd-bus-proxyd@.service
2710 dist_userunit_DATA += \
2711 units/user/systemd-bus-proxyd.socket
2715 units/systemd-bus-proxyd@.service.m4.in \
2716 units/user/systemd-bus-proxyd@.service.in
2719 units/systemd-bus-proxyd@.service.m4
2722 bus-proxyd-set-cap-hook:
2723 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2725 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2728 # ------------------------------------------------------------------------------
2729 systemd_tty_ask_password_agent_SOURCES = \
2730 src/tty-ask-password-agent/tty-ask-password-agent.c
2732 systemd_tty_ask_password_agent_LDADD = \
2733 libsystemd-label.la \
2734 libsystemd-shared.la
2736 # ------------------------------------------------------------------------------
2737 libsystemd_internal_la_SOURCES = \
2738 src/systemd/sd-bus.h \
2739 src/systemd/sd-bus-protocol.h \
2740 src/systemd/sd-bus-vtable.h \
2741 src/systemd/sd-utf8.h \
2742 src/systemd/sd-event.h \
2743 src/systemd/sd-rtnl.h \
2744 src/systemd/sd-resolve.h \
2745 src/systemd/sd-login.h \
2746 src/systemd/sd-id128.h \
2747 src/systemd/sd-daemon.h \
2748 src/systemd/sd-path.h \
2749 src/systemd/sd-network.h \
2750 src/systemd/sd-hwdb.h \
2751 src/libsystemd/sd-bus/sd-bus.c \
2752 src/libsystemd/sd-bus/bus-control.c \
2753 src/libsystemd/sd-bus/bus-control.h \
2754 src/libsystemd/sd-bus/bus-error.c \
2755 src/libsystemd/sd-bus/bus-error.h \
2756 src/libsystemd/sd-bus/bus-common-errors.h \
2757 src/libsystemd/sd-bus/bus-common-errors.c \
2758 src/libsystemd/sd-bus/bus-internal.c \
2759 src/libsystemd/sd-bus/bus-internal.h \
2760 src/libsystemd/sd-bus/bus-socket.c \
2761 src/libsystemd/sd-bus/bus-socket.h \
2762 src/libsystemd/sd-bus/bus-kernel.c \
2763 src/libsystemd/sd-bus/bus-kernel.h \
2764 src/libsystemd/sd-bus/bus-container.c \
2765 src/libsystemd/sd-bus/bus-container.h \
2766 src/libsystemd/sd-bus/bus-message.c \
2767 src/libsystemd/sd-bus/bus-message.h \
2768 src/libsystemd/sd-bus/bus-creds.c \
2769 src/libsystemd/sd-bus/bus-creds.h \
2770 src/libsystemd/sd-bus/bus-signature.c \
2771 src/libsystemd/sd-bus/bus-signature.h \
2772 src/libsystemd/sd-bus/bus-type.c \
2773 src/libsystemd/sd-bus/bus-type.h \
2774 src/libsystemd/sd-bus/bus-match.c \
2775 src/libsystemd/sd-bus/bus-match.h \
2776 src/libsystemd/sd-bus/bus-bloom.c \
2777 src/libsystemd/sd-bus/bus-bloom.h \
2778 src/libsystemd/sd-bus/bus-introspect.c \
2779 src/libsystemd/sd-bus/bus-introspect.h \
2780 src/libsystemd/sd-bus/bus-objects.c \
2781 src/libsystemd/sd-bus/bus-objects.h \
2782 src/libsystemd/sd-bus/bus-gvariant.c \
2783 src/libsystemd/sd-bus/bus-gvariant.h \
2784 src/libsystemd/sd-bus/bus-convenience.c \
2785 src/libsystemd/sd-bus/bus-track.c \
2786 src/libsystemd/sd-bus/bus-track.h \
2787 src/libsystemd/sd-bus/bus-util.c \
2788 src/libsystemd/sd-bus/bus-util.h \
2789 src/libsystemd/sd-bus/bus-slot.c \
2790 src/libsystemd/sd-bus/bus-slot.h \
2791 src/libsystemd/sd-bus/bus-protocol.h \
2792 src/libsystemd/sd-bus/kdbus.h \
2793 src/libsystemd/sd-utf8/sd-utf8.c \
2794 src/libsystemd/sd-event/sd-event.c \
2795 src/libsystemd/sd-event/event-util.h \
2796 src/libsystemd/sd-rtnl/sd-rtnl.c \
2797 src/libsystemd/sd-rtnl/rtnl-internal.h \
2798 src/libsystemd/sd-rtnl/rtnl-message.c \
2799 src/libsystemd/sd-rtnl/rtnl-types.h \
2800 src/libsystemd/sd-rtnl/rtnl-types.c \
2801 src/libsystemd/sd-rtnl/rtnl-util.h \
2802 src/libsystemd/sd-rtnl/rtnl-util.c \
2803 src/libsystemd/sd-rtnl/local-addresses.h \
2804 src/libsystemd/sd-rtnl/local-addresses.c \
2805 src/libsystemd/sd-id128/sd-id128.c \
2806 src/libsystemd/sd-daemon/sd-daemon.c \
2807 src/libsystemd/sd-login/sd-login.c \
2808 src/libsystemd/sd-path/sd-path.c \
2809 src/libsystemd/sd-network/sd-network.c \
2810 src/libsystemd/sd-network/network-util.h \
2811 src/libsystemd/sd-network/network-util.c \
2812 src/libsystemd/sd-hwdb/sd-hwdb.c \
2813 src/libsystemd/sd-hwdb/hwdb-util.h \
2814 src/libsystemd/sd-hwdb/hwdb-internal.h
2816 nodist_libsystemd_internal_la_SOURCES = \
2817 src/libsystemd/libsystemd.sym
2819 libsystemd_internal_la_CFLAGS = \
2823 libsystemd_internal_la_LIBADD = \
2826 libsystemd_resolve_la_SOURCES = \
2827 src/libsystemd/sd-resolve/sd-resolve.c \
2828 src/libsystemd/sd-resolve/resolve-util.h
2830 libsystemd_resolve_la_CFLAGS = \
2834 libsystemd_resolve_la_LIBADD = \
2837 noinst_LTLIBRARIES += \
2838 libsystemd-internal.la \
2839 libsystemd-resolve.la
2841 libsystemd_dump_la_SOURCES = \
2842 src/libsystemd/sd-bus/bus-dump.c \
2843 src/libsystemd/sd-bus/bus-dump.h
2845 noinst_LTLIBRARIES += \
2849 src/libsystemd/libsystemd.sym.m4 \
2850 src/libsystemd/libsystemd.pc.in \
2851 src/libsystemd/sd-bus/DIFFERENCES \
2852 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2855 src/libsystemd/libsystemd.sym
2858 src/libsystemd/libsystemd.sym
2860 libsystemd_la_SOURCES = \
2861 $(libsystemd_internal_la_SOURCES) \
2862 $(libsystemd_resolve_la_SOURCES) \
2863 $(libsystemd_journal_internal_la_SOURCES)
2865 nodist_libsystemd_la_SOURCES = \
2866 $(nodist_libsystemd_internal_la_SOURCES)
2868 libsystemd_la_CFLAGS = \
2869 $(libsystemd_internal_la_CFLAGS) \
2870 $(libsystemd_resolve_la_CFLAGS) \
2871 $(libsystemd_journal_internal_la_CFLAGS)
2873 libsystemd_la_LDFLAGS = \
2875 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2876 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2878 libsystemd_la_LIBADD = \
2879 libsystemd-shared.la \
2880 $(libsystemd_internal_la_LIBADD) \
2881 $(libsystemd_journal_internal_la_LIBADD) \
2882 $(libsystemd_resolve_la_LIBADD)
2884 libsystemd-install-hook:
2885 libname=libsystemd.so && $(move-to-rootlibdir)
2887 libsystemd-uninstall-hook:
2888 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2890 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2891 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2893 pkgconfiglib_DATA += \
2894 src/libsystemd/libsystemd.pc
2896 pkginclude_HEADERS += \
2897 src/systemd/sd-login.h \
2898 src/systemd/sd-id128.h \
2899 src/systemd/sd-daemon.h
2902 pkginclude_HEADERS += \
2903 src/systemd/sd-bus.h \
2904 src/systemd/sd-bus-protocol.h \
2905 src/systemd/sd-bus-vtable.h \
2906 src/systemd/sd-utf8.h \
2907 src/systemd/sd-event.h \
2908 src/systemd/sd-rtnl.h \
2909 src/systemd/sd-resolve.h \
2910 src/systemd/sd-path.h
2913 lib_LTLIBRARIES += \
2918 test-bus-signature \
2924 test-bus-kernel-bloom \
2925 test-bus-kernel-benchmark \
2926 test-bus-zero-copy \
2927 test-bus-introspect \
2934 test-local-addresses \
2940 test_bus_marshal_SOURCES = \
2941 src/libsystemd/sd-bus/test-bus-marshal.c
2943 test_bus_marshal_LDADD = \
2944 libsystemd-dump.la \
2945 libsystemd-internal.la \
2946 libsystemd-shared.la \
2950 test_bus_marshal_CFLAGS = \
2955 test_bus_signature_SOURCES = \
2956 src/libsystemd/sd-bus/test-bus-signature.c
2958 test_bus_signature_LDADD = \
2959 libsystemd-internal.la \
2960 libsystemd-shared.la
2962 test_bus_chat_SOURCES = \
2963 src/libsystemd/sd-bus/test-bus-chat.c
2965 test_bus_chat_CFLAGS = \
2969 test_bus_chat_LDADD = \
2970 libsystemd-internal.la \
2971 libsystemd-shared.la
2973 test_bus_cleanup_SOURCES = \
2974 src/libsystemd/sd-bus/test-bus-cleanup.c
2976 test_bus_cleanup_CFLAGS = \
2980 test_bus_cleanup_LDADD = \
2981 libsystemd-internal.la \
2982 libsystemd-shared.la
2984 test_bus_server_SOURCES = \
2985 src/libsystemd/sd-bus/test-bus-server.c
2987 test_bus_server_CFLAGS = \
2991 test_bus_server_LDADD = \
2992 libsystemd-internal.la \
2993 libsystemd-shared.la
2995 test_bus_objects_SOURCES = \
2996 src/libsystemd/sd-bus/test-bus-objects.c
2998 test_bus_objects_CFLAGS = \
3002 test_bus_objects_LDADD = \
3003 libsystemd-dump.la \
3004 libsystemd-internal.la \
3005 libsystemd-shared.la
3007 test_bus_error_SOURCES = \
3008 src/libsystemd/sd-bus/test-bus-error.c
3010 test_bus_error_LDADD = \
3011 libsystemd-internal.la \
3012 libsystemd-shared.la
3014 test_bus_gvariant_SOURCES = \
3015 src/libsystemd/sd-bus/test-bus-gvariant.c
3017 test_bus_gvariant_LDADD = \
3018 libsystemd-dump.la \
3019 libsystemd-internal.la \
3020 libsystemd-shared.la \
3023 test_bus_gvariant_CFLAGS = \
3027 test_bus_creds_SOURCES = \
3028 src/libsystemd/sd-bus/test-bus-creds.c
3030 test_bus_creds_LDADD = \
3031 libsystemd-dump.la \
3032 libsystemd-internal.la \
3033 libsystemd-shared.la
3035 test_bus_match_SOURCES = \
3036 src/libsystemd/sd-bus/test-bus-match.c
3038 test_bus_match_LDADD = \
3039 libsystemd-internal.la \
3040 libsystemd-shared.la
3042 test_bus_kernel_SOURCES = \
3043 src/libsystemd/sd-bus/test-bus-kernel.c
3045 test_bus_kernel_LDADD = \
3046 libsystemd-dump.la \
3047 libsystemd-internal.la \
3048 libsystemd-shared.la
3050 test_bus_kernel_bloom_SOURCES = \
3051 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3053 test_bus_kernel_bloom_LDADD = \
3054 libsystemd-internal.la \
3055 libsystemd-shared.la
3057 test_bus_kernel_benchmark_SOURCES = \
3058 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3060 test_bus_kernel_benchmark_LDADD = \
3061 libsystemd-internal.la \
3062 libsystemd-shared.la
3064 test_bus_zero_copy_SOURCES = \
3065 src/libsystemd/sd-bus/test-bus-zero-copy.c
3067 test_bus_zero_copy_LDADD = \
3068 libsystemd-dump.la \
3069 libsystemd-internal.la \
3070 libsystemd-shared.la
3072 test_bus_introspect_SOURCES = \
3073 src/libsystemd/sd-bus/test-bus-introspect.c
3075 test_bus_introspect_LDADD = \
3076 libsystemd-internal.la \
3077 libsystemd-shared.la
3079 test_event_SOURCES = \
3080 src/libsystemd/sd-event/test-event.c
3082 test_event_LDADD = \
3083 libsystemd-internal.la \
3084 libsystemd-shared.la
3086 test_rtnl_SOURCES = \
3087 src/libsystemd/sd-rtnl/test-rtnl.c
3090 libsystemd-internal.la \
3091 libsystemd-shared.la
3093 test_local_addresses_SOURCES = \
3094 src/libsystemd/sd-rtnl/test-local-addresses.c
3096 test_local_addresses_LDADD = \
3097 libsystemd-internal.la \
3098 libsystemd-shared.la
3100 test_resolve_SOURCES = \
3101 src/libsystemd/sd-resolve/test-resolve.c
3103 test_resolve_LDADD = \
3104 libsystemd-resolve.la \
3105 libsystemd-internal.la \
3106 libsystemd-shared.la
3108 test_resolve_CFLAGS = \
3113 src/libsystemd/sd-bus/busctl.c \
3114 src/libsystemd/sd-bus/busctl-introspect.c \
3115 src/libsystemd/sd-bus/busctl-introspect.h
3118 libsystemd-dump.la \
3119 libsystemd-internal.la \
3120 libsystemd-shared.la
3122 # ------------------------------------------------------------------------------
3123 noinst_LTLIBRARIES += \
3124 libsystemd-network.la
3126 libsystemd_network_la_CFLAGS = \
3130 libsystemd_network_la_SOURCES = \
3131 src/systemd/sd-dhcp-client.h \
3132 src/systemd/sd-dhcp-server.h \
3133 src/systemd/sd-dhcp-lease.h \
3134 src/systemd/sd-ipv4ll.h \
3135 src/systemd/sd-icmp6-nd.h \
3136 src/systemd/sd-dhcp6-client.h \
3137 src/systemd/sd-dhcp6-lease.h \
3138 src/systemd/sd-pppoe.h \
3139 src/systemd/sd-lldp.h \
3140 src/libsystemd-network/sd-dhcp-client.c \
3141 src/libsystemd-network/sd-dhcp-server.c \
3142 src/libsystemd-network/dhcp-network.c \
3143 src/libsystemd-network/dhcp-option.c \
3144 src/libsystemd-network/dhcp-packet.c \
3145 src/libsystemd-network/dhcp-internal.h \
3146 src/libsystemd-network/dhcp-server-internal.h \
3147 src/libsystemd-network/dhcp-protocol.h \
3148 src/libsystemd-network/dhcp-lease-internal.h \
3149 src/libsystemd-network/sd-dhcp-lease.c \
3150 src/libsystemd-network/sd-ipv4ll.c \
3151 src/libsystemd-network/ipv4ll-network.c \
3152 src/libsystemd-network/ipv4ll-packet.c \
3153 src/libsystemd-network/ipv4ll-internal.h \
3154 src/libsystemd-network/sd-pppoe.c \
3155 src/libsystemd-network/network-internal.c \
3156 src/libsystemd-network/network-internal.h \
3157 src/libsystemd-network/sd-icmp6-nd.c \
3158 src/libsystemd-network/sd-dhcp6-client.c \
3159 src/libsystemd-network/dhcp6-internal.h \
3160 src/libsystemd-network/dhcp6-protocol.h \
3161 src/libsystemd-network/dhcp6-network.c \
3162 src/libsystemd-network/dhcp6-option.c \
3163 src/libsystemd-network/dhcp6-lease-internal.h \
3164 src/libsystemd-network/sd-dhcp6-lease.c \
3165 src/libsystemd-network/lldp.h \
3166 src/libsystemd-network/lldp-tlv.h \
3167 src/libsystemd-network/lldp-tlv.c \
3168 src/libsystemd-network/lldp-network.h \
3169 src/libsystemd-network/lldp-network.c \
3170 src/libsystemd-network/lldp-port.h \
3171 src/libsystemd-network/lldp-port.c \
3172 src/libsystemd-network/lldp-internal.h \
3173 src/libsystemd-network/lldp-internal.c \
3174 src/libsystemd-network/lldp-util.h \
3175 src/libsystemd-network/sd-lldp.c
3177 libsystemd_network_la_LIBADD = \
3178 libudev-internal.la \
3179 libsystemd-label.la \
3180 libsystemd-internal.la \
3181 libsystemd-shared.la \
3184 test_dhcp_option_SOURCES = \
3185 src/libsystemd-network/dhcp-protocol.h \
3186 src/libsystemd-network/dhcp-internal.h \
3187 src/libsystemd-network/test-dhcp-option.c
3189 test_dhcp_option_LDADD = \
3190 libsystemd-network.la \
3191 libsystemd-internal.la \
3192 libsystemd-shared.la
3194 test_dhcp_client_SOURCES = \
3195 src/systemd/sd-dhcp-client.h \
3196 src/libsystemd-network/dhcp-protocol.h \
3197 src/libsystemd-network/dhcp-internal.h \
3198 src/libsystemd-network/test-dhcp-client.c
3200 test_dhcp_client_LDADD = \
3201 libsystemd-network.la \
3202 libsystemd-label.la \
3203 libsystemd-internal.la \
3204 libsystemd-shared.la
3206 test_dhcp_server_SOURCES = \
3207 src/libsystemd-network/test-dhcp-server.c
3209 test_dhcp_server_LDADD = \
3210 libsystemd-network.la \
3211 libsystemd-internal.la \
3212 libsystemd-shared.la
3214 test_ipv4ll_SOURCES = \
3215 src/systemd/sd-ipv4ll.h \
3216 src/libsystemd-network/ipv4ll-internal.h \
3217 src/libsystemd-network/test-ipv4ll.c
3219 test_ipv4ll_LDADD = \
3220 libsystemd-network.la \
3221 libsystemd-label.la \
3222 libsystemd-internal.la \
3223 libsystemd-shared.la
3225 test_pppoe_SOURCES = \
3226 src/systemd/sd-pppoe.h \
3227 src/libsystemd-network/test-pppoe.c
3229 test_pppoe_LDADD = \
3230 libsystemd-network.la \
3231 libsystemd-shared.la
3233 test_icmp6_rs_SOURCES = \
3234 src/systemd/sd-dhcp6-client.h \
3235 src/systemd/sd-icmp6-nd.h \
3236 src/libsystemd-network/dhcp6-internal.h \
3237 src/libsystemd-network/test-icmp6-rs.c
3239 test_icmp6_rs_LDADD = \
3240 libsystemd-network.la \
3241 libsystemd-internal.la \
3242 libsystemd-shared.la
3244 test_dhcp6_client_SOURCES = \
3245 src/systemd/sd-dhcp6-client.h \
3246 src/libsystemd-network/dhcp6-internal.h \
3247 src/libsystemd-network/test-dhcp6-client.c
3249 test_dhcp6_client_LDADD = \
3250 libsystemd-network.la \
3251 libsystemd-internal.la \
3252 libsystemd-shared.la
3254 test_lldp_SOURCES = \
3255 src/libsystemd-network/lldp.h \
3256 src/libsystemd-network/lldp-tlv.h \
3257 src/libsystemd-network/lldp-tlv.c \
3258 src/libsystemd-network/test-lldp.c
3261 libsystemd-network.la \
3262 libsystemd-internal.la \
3263 libsystemd-shared.la
3277 # ------------------------------------------------------------------------------
3279 noinst_LTLIBRARIES += \
3280 libsystemd-terminal.la
3282 rootlibexec_PROGRAMS += \
3285 noinst_PROGRAMS += \
3290 dist_pkgdata_DATA += \
3291 src/libsystemd-terminal/unifont-glyph-array.bin
3293 nodist_userunit_DATA += \
3294 units/user/systemd-consoled.service
3296 USER_DEFAULT_TARGET_WANTS += \
3297 systemd-consoled.service
3306 units/user/systemd-consoled.service.in
3308 libsystemd_terminal_la_CFLAGS = \
3312 libsystemd_terminal_la_SOURCES = \
3313 src/libsystemd-terminal/grdev.h \
3314 src/libsystemd-terminal/grdev-internal.h \
3315 src/libsystemd-terminal/grdev.c \
3316 src/libsystemd-terminal/grdev-drm.c \
3317 src/libsystemd-terminal/idev.h \
3318 src/libsystemd-terminal/idev-internal.h \
3319 src/libsystemd-terminal/idev.c \
3320 src/libsystemd-terminal/idev-evdev.c \
3321 src/libsystemd-terminal/idev-keyboard.c \
3322 src/libsystemd-terminal/sysview.h \
3323 src/libsystemd-terminal/sysview-internal.h \
3324 src/libsystemd-terminal/sysview.c \
3325 src/libsystemd-terminal/term.h \
3326 src/libsystemd-terminal/term-internal.h \
3327 src/libsystemd-terminal/term-charset.c \
3328 src/libsystemd-terminal/term-page.c \
3329 src/libsystemd-terminal/term-parser.c \
3330 src/libsystemd-terminal/term-screen.c \
3331 src/libsystemd-terminal/term-wcwidth.c \
3332 src/libsystemd-terminal/unifont.h \
3333 src/libsystemd-terminal/unifont-def.h \
3334 src/libsystemd-terminal/unifont.c
3336 libsystemd_terminal_la_LIBADD = \
3337 libudev-internal.la \
3338 libsystemd-internal.la \
3339 libsystemd-shared.la \
3342 systemd_consoled_CFLAGS = \
3346 systemd_consoled_SOURCES = \
3347 src/console/consoled.h \
3348 src/console/consoled.c \
3349 src/console/consoled-display.c \
3350 src/console/consoled-manager.c \
3351 src/console/consoled-session.c \
3352 src/console/consoled-terminal.c \
3353 src/console/consoled-workspace.c
3355 systemd_consoled_LDADD = \
3356 libsystemd-terminal.la \
3357 libsystemd-internal.la \
3358 libsystemd-shared.la \
3361 systemd_evcat_CFLAGS = \
3365 systemd_evcat_SOURCES = \
3366 src/libsystemd-terminal/evcat.c
3368 systemd_evcat_LDADD = \
3369 libsystemd-terminal.la \
3370 libsystemd-internal.la \
3371 libsystemd-shared.la \
3374 systemd_modeset_CFLAGS = \
3378 systemd_modeset_SOURCES = \
3379 src/libsystemd-terminal/modeset.c
3381 systemd_modeset_LDADD = \
3382 libsystemd-terminal.la \
3383 libsystemd-internal.la \
3384 libsystemd-shared.la \
3387 systemd_subterm_SOURCES = \
3388 src/libsystemd-terminal/subterm.c
3390 systemd_subterm_LDADD = \
3391 libsystemd-terminal.la \
3392 libsystemd-internal.la \
3393 libsystemd-shared.la
3395 test_term_page_SOURCES = \
3396 src/libsystemd-terminal/test-term-page.c
3398 test_term_page_LDADD = \
3399 libsystemd-terminal.la \
3400 libsystemd-internal.la \
3401 libsystemd-shared.la
3403 test_term_parser_SOURCES = \
3404 src/libsystemd-terminal/test-term-parser.c
3406 test_term_parser_LDADD = \
3407 libsystemd-terminal.la \
3408 libsystemd-internal.la \
3409 libsystemd-shared.la
3411 test_unifont_SOURCES = \
3412 src/libsystemd-terminal/test-unifont.c
3414 test_unifont_LDADD = \
3415 libsystemd-terminal.la \
3416 libsystemd-internal.la \
3417 libsystemd-shared.la
3419 .PHONY: update-unifont
3420 update-unifont: tools/compile-unifont.py
3421 $(AM_V_GEN)$(PYTHON) $< \
3422 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3423 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3424 @echo "unifont-glyph-array.bin has been regenerated"
3426 # ------------------------------------------------------------------------------
3436 include_HEADERS += \
3437 src/libudev/libudev.h
3439 lib_LTLIBRARIES += \
3442 libudev_la_SOURCES =\
3443 src/libudev/libudev.sym \
3444 src/libudev/libudev-private.h \
3445 src/libudev/libudev.c \
3446 src/libudev/libudev-list.c \
3447 src/libudev/libudev-util.c \
3448 src/libudev/libudev-device.c \
3449 src/libudev/libudev-enumerate.c \
3450 src/libudev/libudev-monitor.c \
3451 src/libudev/libudev-queue.c \
3452 src/libudev/libudev-hwdb.c
3454 libudev_la_CFLAGS = \
3458 libudev_la_LDFLAGS = \
3460 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3461 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3463 libudev_la_LIBADD = \
3464 libsystemd-internal.la \
3465 libsystemd-shared.la
3467 pkgconfiglib_DATA += \
3468 src/libudev/libudev.pc
3471 src/libudev/libudev.pc.in
3474 src/libudev/libudev.pc \
3479 $(AM_V_at)$(MKDIR_P) $(dir $@)
3480 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3483 $(AM_V_at)$(MKDIR_P) $(dir $@)
3484 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3486 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3487 libudev-install-hook:
3488 libname=libudev.so && $(move-to-rootlibdir)
3490 libudev-uninstall-hook:
3491 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3493 INSTALL_EXEC_HOOKS += libudev-install-hook
3494 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3496 # ------------------------------------------------------------------------------
3497 noinst_LTLIBRARIES += \
3500 libudev_internal_la_SOURCES =\
3501 $(libudev_la_SOURCES) \
3502 src/libudev/libudev-device-private.c
3504 libudev_internal_la_CFLAGS = \
3506 -fvisibility=default
3508 # ------------------------------------------------------------------------------
3510 $(sysconfdir)/udev/rules.d
3512 dist_network_DATA = \
3513 network/99-default.link \
3514 network/80-container-host0.network \
3515 network/80-container-ve.network
3517 dist_udevrules_DATA += \
3518 rules/42-usb-hid-pm.rules \
3519 rules/50-udev-default.rules \
3520 rules/60-drm.rules \
3521 rules/60-evdev_id.rules \
3522 rules/60-keyboard.rules \
3523 rules/70-mouse.rules \
3524 rules/60-persistent-storage-tape.rules \
3525 rules/60-persistent-serial.rules \
3526 rules/60-persistent-input.rules \
3527 rules/60-persistent-alsa.rules \
3528 rules/60-persistent-storage.rules \
3529 rules/64-btrfs.rules \
3530 rules/75-net-description.rules \
3531 rules/75-tty-description.rules \
3532 rules/78-sound-card.rules \
3533 rules/80-net-setup-link.rules \
3534 rules/95-udev-late.rules
3536 nodist_udevrules_DATA += \
3537 rules/99-systemd.rules
3539 udevconfdir = $(sysconfdir)/udev
3540 dist_udevconf_DATA = \
3543 sharepkgconfigdir = $(datadir)/pkgconfig
3544 sharepkgconfig_DATA = \
3548 rules/99-systemd.rules.in \
3552 rules/99-systemd.rules \
3556 units/systemd-udevd.service.in \
3557 units/systemd-udev-trigger.service.in \
3558 units/systemd-udev-settle.service.in
3561 units/systemd-udevd.service \
3562 units/systemd-udev-trigger.service \
3563 units/systemd-udev-settle.service
3565 SOCKETS_TARGET_WANTS += \
3566 systemd-udevd-control.socket \
3567 systemd-udevd-kernel.socket
3569 SYSINIT_TARGET_WANTS += \
3570 systemd-udevd.service \
3571 systemd-udev-trigger.service
3573 rootbin_PROGRAMS += \
3576 rootlibexec_PROGRAMS += \
3579 noinst_LTLIBRARIES += \
3582 src/udev/keyboard-keys.txt:
3583 $(AM_V_at)$(MKDIR_P) $(dir $@)
3584 $(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/' > $@
3586 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3587 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3589 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3590 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3592 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3593 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3595 libudev_core_la_SOURCES = \
3597 src/udev/udev-event.c \
3598 src/udev/udev-watch.c \
3599 src/udev/udev-node.c \
3600 src/udev/udev-rules.c \
3601 src/udev/udev-ctrl.c \
3602 src/udev/udev-builtin.c \
3603 src/udev/udev-builtin-btrfs.c \
3604 src/udev/udev-builtin-hwdb.c \
3605 src/udev/udev-builtin-evdev_id.c \
3606 src/udev/udev-builtin-input_id.c \
3607 src/udev/udev-builtin-keyboard.c \
3608 src/udev/udev-builtin-net_id.c \
3609 src/udev/udev-builtin-net_setup_link.c \
3610 src/udev/udev-builtin-path_id.c \
3611 src/udev/udev-builtin-usb_id.c \
3612 src/udev/net/link-config.h \
3613 src/udev/net/link-config.c \
3614 src/udev/net/ethtool-util.h \
3615 src/udev/net/ethtool-util.c
3617 nodist_libudev_core_la_SOURCES = \
3618 src/udev/keyboard-keys-from-name.h \
3619 src/udev/keyboard-keys-to-name.h \
3620 src/udev/net/link-config-gperf.c
3623 $(nodist_libudev_core_la_SOURCES)
3626 src/udev/keyboard-keys-from-name.gperf \
3627 src/udev/keyboard-keys.txt \
3628 src/udev/net/link-config-gperf.c
3631 src/udev/net/link-config-gperf.gperf
3633 libudev_core_la_CFLAGS = \
3638 libudev_core_la_LIBADD = \
3639 libudev-internal.la \
3640 libsystemd-label.la \
3641 libsystemd-internal.la \
3642 libsystemd-network.la \
3643 libsystemd-shared.la \
3648 libudev_core_la_SOURCES += \
3649 src/udev/udev-builtin-kmod.c
3651 dist_udevrules_DATA += \
3652 rules/80-drivers.rules
3656 libudev_core_la_SOURCES += \
3657 src/udev/udev-builtin-blkid.c
3661 libudev_core_la_SOURCES += \
3662 src/udev/udev-builtin-uaccess.c \
3663 src/login/logind-acl.c \
3664 src/libsystemd/sd-login/sd-login.c \
3665 src/systemd/sd-login.h
3667 libudev_core_la_LIBADD += \
3671 systemd_udevd_SOURCES = \
3674 systemd_udevd_LDADD = \
3678 src/udev/udevadm.c \
3679 src/udev/udevadm-info.c \
3680 src/udev/udevadm-control.c \
3681 src/udev/udevadm-monitor.c \
3682 src/udev/udevadm-hwdb.c \
3683 src/udev/udevadm-settle.c \
3684 src/udev/udevadm-trigger.c \
3685 src/udev/udevadm-test.c \
3686 src/udev/udevadm-test-builtin.c \
3687 src/udev/udevadm-util.c \
3688 src/udev/udevadm-util.h
3693 # ------------------------------------------------------------------------------
3696 $(sysconfdir)/udev/hwdb.d
3698 systemd_hwdb_SOURCES = \
3699 src/libsystemd/sd-hwdb/hwdb-internal.h \
3702 systemd_hwdb_LDADD = \
3703 libsystemd-shared.la \
3704 libsystemd-internal.la \
3707 rootbin_PROGRAMS += \
3710 dist_udevhwdb_DATA = \
3711 hwdb/20-pci-vendor-model.hwdb \
3712 hwdb/20-pci-classes.hwdb \
3713 hwdb/20-usb-vendor-model.hwdb \
3714 hwdb/20-usb-classes.hwdb \
3715 hwdb/20-sdio-vendor-model.hwdb \
3716 hwdb/20-sdio-classes.hwdb \
3717 hwdb/20-bluetooth-vendor-product.hwdb \
3718 hwdb/20-acpi-vendor.hwdb \
3720 hwdb/20-net-ifname.hwdb \
3721 hwdb/60-keyboard.hwdb \
3725 units/systemd-hwdb-update.service.in
3728 units/systemd-hwdb-update.service
3730 SYSINIT_TARGET_WANTS += \
3731 systemd-hwdb-update.service
3733 # Update hwdb on installation. Do not bother if installing
3734 # in DESTDIR, since this is likely for packaging purposes.
3736 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3738 INSTALL_DATA_HOOKS += \
3742 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3745 # ------------------------------------------------------------------------------
3754 test_libudev_SOURCES = \
3755 src/test/test-libudev.c
3757 test_libudev_LDADD = \
3758 libsystemd-label.la \
3759 libudev-internal.la \
3760 libsystemd-shared.la \
3761 libsystemd-internal.la
3763 test_udev_SOURCES = \
3764 src/test/test-udev.c
3773 test_udev_LDADD += \
3780 # packed sysfs test tree
3782 $(AM_V_at)$(MKDIR_P) $(dir $@)
3783 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3787 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3792 test/rules-test.sh \
3793 test/rule-syntax-check.py
3795 # ------------------------------------------------------------------------------
3797 src/udev/ata_id/ata_id.c
3800 libudev-internal.la \
3801 libsystemd-shared.la
3803 udevlibexec_PROGRAMS += \
3806 # ------------------------------------------------------------------------------
3807 cdrom_id_SOURCES = \
3808 src/udev/cdrom_id/cdrom_id.c
3811 libudev-internal.la \
3812 libsystemd-shared.la
3814 udevlibexec_PROGRAMS += \
3817 dist_udevrules_DATA += \
3818 rules/60-cdrom_id.rules
3820 # ------------------------------------------------------------------------------
3822 src/udev/collect/collect.c
3825 libudev-internal.la \
3826 libsystemd-shared.la
3828 udevlibexec_PROGRAMS += \
3831 # ------------------------------------------------------------------------------
3833 src/udev/scsi_id/scsi_id.c \
3834 src/udev/scsi_id/scsi_serial.c \
3835 src/udev/scsi_id/scsi.h \
3836 src/udev/scsi_id/scsi_id.h
3839 libudev-internal.la \
3840 libsystemd-shared.la
3842 udevlibexec_PROGRAMS += \
3846 src/udev/scsi_id/README
3848 # ------------------------------------------------------------------------------
3850 src/udev/v4l_id/v4l_id.c
3853 libudev-internal.la \
3854 libsystemd-shared.la
3856 udevlibexec_PROGRAMS += \
3859 dist_udevrules_DATA += \
3860 rules/60-persistent-v4l.rules
3862 # ------------------------------------------------------------------------------
3863 accelerometer_SOURCES = \
3864 src/udev/accelerometer/accelerometer.c
3866 accelerometer_LDADD = \
3867 libudev-internal.la \
3868 libsystemd-shared.la
3870 udevlibexec_PROGRAMS += \
3873 dist_udevrules_DATA += \
3874 rules/61-accelerometer.rules
3876 # ------------------------------------------------------------------------------
3883 libgudev_includedir = \
3884 $(includedir)/gudev-1.0/gudev
3886 libgudev_include_HEADERS = \
3888 src/gudev/gudevenums.h \
3889 src/gudev/gudevenumtypes.h \
3890 src/gudev/gudevtypes.h \
3891 src/gudev/gudevclient.h \
3892 src/gudev/gudevdevice.h \
3893 src/gudev/gudevenumerator.h
3895 lib_LTLIBRARIES += libgudev-1.0.la
3897 pkgconfiglib_DATA += \
3898 src/gudev/gudev-1.0.pc
3901 src/gudev/gudev-1.0.pc
3903 libgudev_1_0_la_SOURCES = \
3904 src/gudev/libgudev-1.0.sym \
3905 src/gudev/gudevenums.h \
3906 src/gudev/gudevenumtypes.h \
3907 src/gudev/gudevenumtypes.h\
3908 src/gudev/gudevtypes.h \
3909 src/gudev/gudevclient.h \
3910 src/gudev/gudevclient.c \
3911 src/gudev/gudevdevice.h \
3912 src/gudev/gudevdevice.c \
3913 src/gudev/gudevenumerator.h \
3914 src/gudev/gudevenumerator.c \
3915 src/gudev/gudevprivate.h
3917 nodist_libgudev_1_0_la_SOURCES = \
3918 src/gudev/gudevmarshal.h \
3919 src/gudev/gudevmarshal.c \
3920 src/gudev/gudevenumtypes.h \
3921 src/gudev/gudevenumtypes.c
3924 $(nodist_libgudev_1_0_la_SOURCES)
3926 libgudev_1_0_la_CPPFLAGS = \
3928 -I$(top_builddir)/src\
3929 -I$(top_srcdir)/src\
3930 -I$(top_builddir)/src/gudev \
3931 -I$(top_srcdir)/src/gudev \
3932 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3933 -D_GUDEV_COMPILATION \
3934 -DG_LOG_DOMAIN=\"GUdev\"
3936 libgudev_1_0_la_CFLAGS = \
3938 -fvisibility=default \
3941 libgudev_1_0_la_LIBADD = \
3945 libgudev_1_0_la_LDFLAGS = \
3947 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3950 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3952 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3953 $(AM_V_at)$(MKDIR_P) $(dir $@)
3954 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3956 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3957 $(AM_V_at)$(MKDIR_P) $(dir $@)
3958 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3959 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3961 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3962 $(AM_V_at)$(MKDIR_P) $(dir $@)
3963 $(AM_V_GEN)glib-mkenums --template $^ > $@
3965 if HAVE_INTROSPECTION
3966 -include $(INTROSPECTION_MAKEFILE)
3968 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3970 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3972 src_gudev_GUdev_1_0_gir_CFLAGS = \
3975 -D_GUDEV_COMPILATION \
3976 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3977 -I$(top_srcdir)/src \
3978 -I$(top_builddir)/src \
3979 -I$(top_srcdir)/src/gudev \
3980 -I$(top_builddir)/src/gudev
3982 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3984 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3985 --pkg-export=gudev-1.0 \
3988 src_gudev_GUdev_1_0_gir_FILES = \
3990 src/gudev/gudevtypes.h \
3991 src/gudev/gudevenums.h \
3992 src/gudev/gudevenumtypes.h \
3993 src/gudev/gudevclient.h \
3994 src/gudev/gudevdevice.h \
3995 src/gudev/gudevenumerator.h \
3996 src/gudev/gudevclient.c \
3997 src/gudev/gudevdevice.c \
3998 src/gudev/gudevenumerator.c
4000 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
4001 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
4003 girdir = $(datadir)/gir-1.0
4005 src/gudev/GUdev-1.0.gir
4007 typelibsdir = $(libdir)/girepository-1.0
4009 src/gudev/GUdev-1.0.typelib
4011 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
4012 endif # HAVE_INTROSPECTION
4016 src/gudev/gudev-1.0.pc.in \
4017 src/gudev/gudevmarshal.list \
4018 src/gudev/gudevenumtypes.h.template \
4019 src/gudev/gudevenumtypes.c.template \
4020 src/gudev/gjs-example.js \
4021 src/gudev/seed-example-enum.js \
4022 src/gudev/seed-example.js
4024 # ------------------------------------------------------------------------------
4025 mtd_probe_SOURCES = \
4026 src/udev/mtd_probe/mtd_probe.c \
4027 src/udev/mtd_probe/mtd_probe.h \
4028 src/udev/mtd_probe/probe_smartmedia.c
4030 dist_udevrules_DATA += \
4031 rules/75-probe_mtd.rules
4033 udevlibexec_PROGRAMS += \
4036 # ------------------------------------------------------------------------------
4037 test_id128_SOURCES = \
4038 src/test/test-id128.c
4040 test_id128_LDADD = \
4041 libsystemd-internal.la \
4042 libsystemd-shared.la
4047 # ------------------------------------------------------------------------------
4049 rootlibexec_PROGRAMS += \
4052 systemd_activate_SOURCES = \
4053 src/activate/activate.c
4055 systemd_activate_LDADD = \
4056 libsystemd-label.la \
4057 libsystemd-internal.la \
4058 libsystemd-shared.la
4060 # ------------------------------------------------------------------------------
4061 systemd_journald_SOURCES = \
4062 src/journal/journald.c \
4063 src/journal/journald-server.h
4065 systemd_journald_LDADD = \
4066 libsystemd-journal-core.la \
4067 libsystemd-internal.la \
4068 libsystemd-shared.la
4070 systemd_cat_SOURCES = \
4073 systemd_cat_LDADD = \
4074 libsystemd-journal-core.la
4077 rootlibexec_PROGRAMS += \
4078 systemd-journal-remote
4080 systemd_journal_remote_SOURCES = \
4081 src/journal-remote/journal-remote-parse.h \
4082 src/journal-remote/journal-remote-parse.c \
4083 src/journal-remote/journal-remote-write.h \
4084 src/journal-remote/journal-remote-write.c \
4085 src/journal-remote/journal-remote.h \
4086 src/journal-remote/journal-remote.c
4088 systemd_journal_remote_LDADD = \
4089 libsystemd-internal.la \
4090 libsystemd-journal-core.la
4092 systemd_journal_remote_SOURCES += \
4093 src/journal-remote/microhttpd-util.h \
4094 src/journal-remote/microhttpd-util.c
4096 systemd_journal_remote_CFLAGS = \
4098 $(MICROHTTPD_CFLAGS)
4100 systemd_journal_remote_LDADD += \
4104 dist_sysusers_DATA += \
4105 sysusers.d/systemd-remote.conf
4109 dist_tmpfiles_DATA += \
4110 tmpfiles.d/systemd-remote.conf
4114 systemd_journal_remote_LDADD += \
4117 # systemd-journal-remote make sense mostly with full crypto stack
4118 dist_systemunit_DATA += \
4119 units/systemd-journal-remote.socket
4121 nodist_systemunit_DATA += \
4122 units/systemd-journal-remote.service
4125 units/systemd-journal-remote.service.in
4127 journal-remote-install-hook: journal-install-hook
4128 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4129 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4130 -chmod 755 $(DESTDIR)/var/log/journal/remote
4132 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4136 nodist_pkgsysconf_DATA += \
4137 src/journal-remote/journal-remote.conf
4140 src/journal-remote/journal-remote.conf.in
4143 src/journal-remote/journal-remote.conf
4147 rootlibexec_PROGRAMS += \
4148 systemd-journal-upload
4150 systemd_journal_upload_SOURCES = \
4151 src/journal-remote/journal-upload.h \
4152 src/journal-remote/journal-upload.c \
4153 src/journal-remote/journal-upload-journal.c
4155 systemd_journal_upload_CFLAGS = \
4159 systemd_journal_upload_LDADD = \
4160 libsystemd-internal.la \
4161 libsystemd-journal-internal.la \
4162 libsystemd-shared.la \
4165 nodist_systemunit_DATA += \
4166 units/systemd-journal-upload.service
4169 units/systemd-journal-upload.service.in
4171 nodist_pkgsysconf_DATA += \
4172 src/journal-remote/journal-upload.conf
4175 src/journal-remote/journal-upload.conf.in
4178 src/journal-remote/journal-upload.conf
4181 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4182 journalctl_CFLAGS = \
4185 journalctl_SOURCES = \
4186 src/journal/journalctl.c
4188 journalctl_LDADD = \
4189 libsystemd-journal-internal.la \
4190 libsystemd-internal.la \
4191 libsystemd-logs.la \
4192 libsystemd-shared.la
4195 journalctl_LDADD += \
4200 journalctl_SOURCES += \
4201 src/journal/journal-qrcode.c \
4202 src/journal/journal-qrcode.h
4204 journalctl_CFLAGS += \
4207 journalctl_LDADD += \
4211 test_journal_SOURCES = \
4212 src/journal/test-journal.c
4214 test_journal_LDADD = \
4215 libsystemd-journal-core.la
4217 test_journal_send_SOURCES = \
4218 src/journal/test-journal-send.c
4220 test_journal_send_LDADD = \
4221 libsystemd-journal-core.la
4223 test_journal_syslog_SOURCES = \
4224 src/journal/test-journal-syslog.c
4226 test_journal_syslog_LDADD = \
4227 libsystemd-journal-core.la
4229 test_journal_match_SOURCES = \
4230 src/journal/test-journal-match.c
4232 test_journal_match_LDADD = \
4233 libsystemd-journal-core.la
4235 test_journal_enum_SOURCES = \
4236 src/journal/test-journal-enum.c
4238 test_journal_enum_LDADD = \
4239 libsystemd-journal-core.la
4241 test_journal_stream_SOURCES = \
4242 src/journal/test-journal-stream.c
4244 test_journal_stream_LDADD = \
4245 libsystemd-journal-core.la
4247 test_journal_flush_SOURCES = \
4248 src/journal/test-journal-flush.c
4250 test_journal_flush_LDADD = \
4251 libsystemd-journal-core.la
4253 test_journal_init_SOURCES = \
4254 src/journal/test-journal-init.c
4256 test_journal_init_LDADD = \
4257 libsystemd-journal-core.la
4259 test_journal_verify_SOURCES = \
4260 src/journal/test-journal-verify.c
4262 test_journal_verify_LDADD = \
4263 libsystemd-journal-core.la
4265 test_journal_interleaving_SOURCES = \
4266 src/journal/test-journal-interleaving.c
4268 test_journal_interleaving_LDADD = \
4269 libsystemd-journal-core.la
4271 test_mmap_cache_SOURCES = \
4272 src/journal/test-mmap-cache.c
4274 test_mmap_cache_LDADD = \
4275 libsystemd-journal-core.la
4277 test_catalog_SOURCES = \
4278 src/journal/test-catalog.c
4280 test_catalog_CPPFLAGS = \
4282 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4284 test_catalog_LDADD = \
4285 libsystemd-journal-core.la
4287 test_compress_SOURCES = \
4288 src/journal/test-compress.c
4290 test_compress_LDADD = \
4291 libsystemd-journal-internal.la \
4292 libsystemd-shared.la
4294 test_compress_benchmark_SOURCES = \
4295 src/journal/test-compress-benchmark.c
4297 test_compress_benchmark_LDADD = \
4298 libsystemd-journal-internal.la \
4299 libsystemd-shared.la
4301 libsystemd_journal_core_la_SOURCES = \
4302 src/journal/journald-kmsg.c \
4303 src/journal/journald-kmsg.h \
4304 src/journal/journald-syslog.c \
4305 src/journal/journald-syslog.h \
4306 src/journal/journald-stream.c \
4307 src/journal/journald-stream.h \
4308 src/journal/journald-server.c \
4309 src/journal/journald-server.h \
4310 src/journal/journald-console.c \
4311 src/journal/journald-console.h \
4312 src/journal/journald-wall.c \
4313 src/journal/journald-wall.h \
4314 src/journal/journald-native.c \
4315 src/journal/journald-native.h \
4316 src/journal/journald-audit.c \
4317 src/journal/journald-audit.h \
4318 src/journal/journald-rate-limit.c \
4319 src/journal/journald-rate-limit.h \
4320 src/journal/journal-internal.h
4322 nodist_libsystemd_journal_core_la_SOURCES = \
4323 src/journal/journald-gperf.c
4325 libsystemd_journal_core_la_LIBADD = \
4326 libsystemd-journal-internal.la \
4327 libudev-internal.la \
4328 libsystemd-label.la \
4329 libsystemd-internal.la \
4330 libsystemd-shared.la
4333 libsystemd_journal_core_la_LIBADD += \
4337 noinst_LTLIBRARIES += \
4338 libsystemd-journal-core.la
4340 journal-install-hook:
4341 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4342 -chown 0:0 $(DESTDIR)/var/log/journal
4343 -chmod 755 $(DESTDIR)/var/log/journal
4344 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4345 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4347 journal-uninstall-hook:
4348 -rmdir $(DESTDIR)/var/log/journal/remote
4349 -rmdir $(DESTDIR)/var/log/journal/
4351 INSTALL_EXEC_HOOKS += journal-install-hook
4352 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4354 # ------------------------------------------------------------------------------
4355 # Update catalog on installation. Do not bother if installing
4356 # in DESTDIR, since this is likely for packaging purposes.
4357 catalog-update-hook:
4358 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4360 INSTALL_DATA_HOOKS += \
4363 catalog-remove-hook:
4364 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4366 UNINSTALL_DATA_HOOKS += \
4375 test-journal-syslog \
4376 test-journal-match \
4377 test-journal-stream \
4379 test-journal-verify \
4380 test-journal-interleaving \
4381 test-journal-flush \
4388 test-compress-benchmark
4391 pkginclude_HEADERS += \
4392 src/systemd/sd-journal.h \
4393 src/systemd/sd-messages.h \
4394 src/systemd/_sd-common.h
4396 libsystemd_journal_internal_la_SOURCES = \
4397 src/journal/sd-journal.c \
4398 src/systemd/sd-journal.h \
4399 src/systemd/_sd-common.h \
4400 src/journal/journal-file.c \
4401 src/journal/journal-file.h \
4402 src/journal/journal-vacuum.c \
4403 src/journal/journal-vacuum.h \
4404 src/journal/journal-verify.c \
4405 src/journal/journal-verify.h \
4406 src/journal/lookup3.c \
4407 src/journal/lookup3.h \
4408 src/journal/journal-send.c \
4409 src/journal/journal-def.h \
4410 src/journal/compress.h \
4411 src/journal/catalog.c \
4412 src/journal/catalog.h \
4413 src/journal/mmap-cache.c \
4414 src/journal/mmap-cache.h \
4415 src/journal/compress.c
4417 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4418 libsystemd_journal_internal_la_CFLAGS = \
4421 libsystemd_journal_internal_la_LIBADD = \
4425 libsystemd_journal_internal_la_CFLAGS += \
4428 libsystemd_journal_internal_la_LIBADD += \
4433 libsystemd_journal_internal_la_LIBADD += \
4438 libsystemd_journal_internal_la_SOURCES += \
4439 src/journal/journal-authenticate.c \
4440 src/journal/journal-authenticate.h \
4441 src/journal/fsprg.c \
4444 libsystemd_journal_internal_la_LIBADD += \
4447 # fsprg.c is a drop-in file using void pointer arithmetic
4448 libsystemd_journal_internal_la_CFLAGS += \
4453 noinst_LTLIBRARIES += \
4454 libsystemd-journal-internal.la
4456 rootlibexec_PROGRAMS += \
4459 rootbin_PROGRAMS += \
4465 dist_systemunit_DATA += \
4466 units/systemd-journald.socket \
4467 units/systemd-journald-dev-log.socket \
4468 units/systemd-journald-audit.socket
4470 nodist_systemunit_DATA += \
4471 units/systemd-journald.service \
4472 units/systemd-journal-flush.service \
4473 units/systemd-journal-catalog-update.service
4475 dist_pkgsysconf_DATA += \
4476 src/journal/journald.conf
4478 dist_catalog_DATA = \
4479 catalog/systemd.fr.catalog \
4480 catalog/systemd.it.catalog \
4481 catalog/systemd.pl.catalog \
4482 catalog/systemd.pt_BR.catalog \
4483 catalog/systemd.ru.catalog \
4484 catalog/systemd.catalog
4486 SOCKETS_TARGET_WANTS += \
4487 systemd-journald.socket \
4488 systemd-journald-dev-log.socket \
4489 systemd-journald-audit.socket
4491 SYSINIT_TARGET_WANTS += \
4492 systemd-journald.service \
4493 systemd-journal-flush.service \
4494 systemd-journal-catalog-update.service
4497 units/systemd-journald.service.in \
4498 units/systemd-journal-flush.service.in \
4499 units/systemd-journal-catalog-update.service.in \
4500 src/journal/journald-gperf.gperf
4503 src/journal/journald-gperf.c
4505 # ------------------------------------------------------------------------------
4507 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4509 rootlibexec_PROGRAMS += \
4510 systemd-journal-gatewayd
4512 systemd_journal_gatewayd_SOURCES = \
4513 src/journal-remote/journal-gatewayd.c \
4514 src/journal-remote/microhttpd-util.h \
4515 src/journal-remote/microhttpd-util.c
4517 systemd_journal_gatewayd_LDADD = \
4518 libsystemd-logs.la \
4519 libsystemd-journal-internal.la \
4520 libsystemd-internal.la \
4521 libsystemd-shared.la \
4525 systemd_journal_gatewayd_LDADD += \
4529 systemd_journal_gatewayd_CFLAGS = \
4531 $(MICROHTTPD_CFLAGS)
4533 systemd_journal_gatewayd_CPPFLAGS = \
4535 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4537 dist_systemunit_DATA += \
4538 units/systemd-journal-gatewayd.socket
4540 nodist_systemunit_DATA += \
4541 units/systemd-journal-gatewayd.service
4543 dist_gatewayddocumentroot_DATA = \
4544 src/journal-remote/browse.html
4549 units/systemd-journal-gatewayd.service.in
4551 # ------------------------------------------------------------------------------
4553 systemd_socket_proxyd_SOURCES = \
4554 src/socket-proxy/socket-proxyd.c
4556 systemd_socket_proxyd_LDADD = \
4557 libsystemd-logs.la \
4558 libsystemd-internal.la \
4559 libsystemd-journal-internal.la \
4560 libsystemd-shared.la \
4561 libsystemd-resolve.la
4563 # ------------------------------------------------------------------------------
4565 systemd_coredump_SOURCES = \
4566 src/journal/coredump.c \
4567 src/journal/coredump-vacuum.c \
4568 src/journal/coredump-vacuum.h
4570 systemd_coredump_LDADD = \
4571 libsystemd-journal-internal.la \
4572 libsystemd-label.la \
4573 libsystemd-internal.la \
4574 libsystemd-shared.la
4577 systemd_coredump_SOURCES += \
4578 src/journal/stacktrace.c \
4579 src/journal/stacktrace.h
4581 systemd_coredump_LDADD += \
4585 rootlibexec_PROGRAMS += \
4588 dist_pkgsysconf_DATA += \
4589 src/journal/coredump.conf
4592 systemd_coredump_LDADD += \
4596 coredumpctl_SOURCES = \
4597 src/journal/coredumpctl.c
4599 coredumpctl_LDADD = \
4600 libsystemd-journal-internal.la \
4601 libsystemd-internal.la \
4602 libsystemd-shared.la
4608 test-coredump-vacuum
4610 test_coredump_vacuum_SOURCES = \
4611 src/journal/test-coredump-vacuum.c \
4612 src/journal/coredump-vacuum.c \
4613 src/journal/coredump-vacuum.h
4615 test_coredump_vacuum_LDADD = \
4616 libsystemd-internal.la \
4617 libsystemd-shared.la
4619 dist_bashcompletion_DATA += \
4620 shell-completion/bash/coredumpctl
4622 dist_zshcompletion_DATA += \
4623 shell-completion/zsh/_coredumpctl
4626 sysctl.d/50-coredump.conf
4629 sysctl.d/50-coredump.conf
4633 sysctl.d/50-coredump.conf.in
4635 # ------------------------------------------------------------------------------
4637 systemd_binfmt_SOURCES = \
4640 systemd_binfmt_LDADD = \
4641 libsystemd-shared.la
4643 rootlibexec_PROGRAMS += \
4646 dist_systemunit_DATA += \
4647 units/proc-sys-fs-binfmt_misc.automount \
4648 units/proc-sys-fs-binfmt_misc.mount
4650 nodist_systemunit_DATA += \
4651 units/systemd-binfmt.service
4654 $(prefix)/lib/binfmt.d \
4655 $(sysconfdir)/binfmt.d
4657 SYSINIT_TARGET_WANTS += \
4658 systemd-binfmt.service \
4659 proc-sys-fs-binfmt_misc.automount
4664 units/systemd-binfmt.service.in
4666 # ------------------------------------------------------------------------------
4668 systemd_vconsole_setup_SOURCES = \
4669 src/vconsole/vconsole-setup.c
4671 systemd_vconsole_setup_LDADD = \
4672 libsystemd-shared.la
4674 rootlibexec_PROGRAMS += \
4675 systemd-vconsole-setup
4677 nodist_systemunit_DATA += \
4678 units/systemd-vconsole-setup.service
4680 nodist_udevrules_DATA += \
4681 src/vconsole/90-vconsole.rules
4683 SYSINIT_TARGET_WANTS += \
4684 systemd-vconsole-setup.service
4687 src/vconsole/90-vconsole.rules
4691 src/vconsole/90-vconsole.rules.in \
4692 units/systemd-vconsole-setup.service.in
4694 # ------------------------------------------------------------------------------
4696 systemd_bootchart_SOURCES = \
4697 src/bootchart/bootchart.c \
4698 src/bootchart/bootchart.h \
4699 src/bootchart/store.c \
4700 src/bootchart/store.h \
4701 src/bootchart/svg.c \
4704 systemd_bootchart_LDADD = \
4705 libsystemd-journal-internal.la \
4706 libsystemd-shared.la
4708 rootlibexec_PROGRAMS += \
4711 dist_pkgsysconf_DATA += \
4712 src/bootchart/bootchart.conf
4714 nodist_systemunit_DATA += \
4715 units/systemd-bootchart.service
4718 units/systemd-bootchart.service.in
4721 units/systemd-bootchart.service
4724 # ------------------------------------------------------------------------------
4725 if ENABLE_QUOTACHECK
4726 rootlibexec_PROGRAMS += \
4729 nodist_systemunit_DATA += \
4730 units/systemd-quotacheck.service
4732 systemd_quotacheck_SOURCES = \
4733 src/quotacheck/quotacheck.c
4735 systemd_quotacheck_LDADD = \
4736 libsystemd-shared.la
4740 units/systemd-quotacheck.service.in
4742 nodist_systemunit_DATA += \
4743 units/quotaon.service
4745 # ------------------------------------------------------------------------------
4746 if ENABLE_RANDOMSEED
4747 rootlibexec_PROGRAMS += \
4750 nodist_systemunit_DATA += \
4751 units/systemd-random-seed.service
4753 systemd_random_seed_SOURCES = \
4754 src/random-seed/random-seed.c
4756 systemd_random_seed_LDADD = \
4757 libsystemd-label.la \
4758 libsystemd-shared.la
4760 SYSINIT_TARGET_WANTS += \
4761 systemd-random-seed.service
4766 units/systemd-random-seed.service.in
4768 # ------------------------------------------------------------------------------
4770 rootlibexec_PROGRAMS += \
4773 nodist_systemunit_DATA += \
4774 units/systemd-backlight@.service
4776 systemd_backlight_SOURCES = \
4777 src/backlight/backlight.c
4779 systemd_backlight_LDADD = \
4780 libsystemd-label.la \
4781 libudev-internal.la \
4782 libsystemd-shared.la
4786 units/systemd-backlight@.service.in
4788 # ------------------------------------------------------------------------------
4790 rootlibexec_PROGRAMS += \
4793 nodist_systemunit_DATA += \
4794 units/systemd-rfkill@.service
4796 systemd_rfkill_SOURCES = \
4799 systemd_rfkill_LDADD = \
4800 libsystemd-label.la \
4801 libudev-internal.la \
4802 libsystemd-shared.la
4806 units/systemd-rfkill@.service.in
4808 # ------------------------------------------------------------------------------
4809 if HAVE_LIBCRYPTSETUP
4810 rootlibexec_PROGRAMS += \
4813 systemgenerator_PROGRAMS += \
4814 systemd-cryptsetup-generator
4816 dist_systemunit_DATA += \
4817 units/cryptsetup.target \
4818 units/cryptsetup-pre.target
4820 systemd_cryptsetup_SOURCES = \
4821 src/cryptsetup/cryptsetup.c
4823 systemd_cryptsetup_CFLAGS = \
4825 $(LIBCRYPTSETUP_CFLAGS)
4827 systemd_cryptsetup_LDADD = \
4828 libsystemd-label.la \
4829 libudev-internal.la \
4830 libsystemd-shared.la \
4831 $(LIBCRYPTSETUP_LIBS)
4833 systemd_cryptsetup_generator_SOURCES = \
4834 src/cryptsetup/cryptsetup-generator.c
4836 systemd_cryptsetup_generator_LDADD = \
4837 libsystemd-label.la \
4838 libsystemd-shared.la
4840 SYSINIT_TARGET_WANTS += \
4845 # ------------------------------------------------------------------------------
4847 systemd_hostnamed_SOURCES = \
4848 src/hostname/hostnamed.c
4850 systemd_hostnamed_LDADD = \
4851 libsystemd-label.la \
4852 libsystemd-internal.la \
4853 libsystemd-shared.la
4855 rootlibexec_PROGRAMS += \
4858 nodist_systemunit_DATA += \
4859 units/systemd-hostnamed.service
4861 dist_systemunit_DATA_busnames += \
4862 units/org.freedesktop.hostname1.busname
4864 dist_dbuspolicy_DATA += \
4865 src/hostname/org.freedesktop.hostname1.conf
4867 dist_dbussystemservice_DATA += \
4868 src/hostname/org.freedesktop.hostname1.service
4870 polkitpolicy_files += \
4871 src/hostname/org.freedesktop.hostname1.policy
4873 SYSTEM_UNIT_ALIASES += \
4874 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4876 BUSNAMES_TARGET_WANTS += \
4877 org.freedesktop.hostname1.busname
4879 hostnamectl_SOURCES = \
4880 src/hostname/hostnamectl.c
4882 hostnamectl_LDADD = \
4883 libsystemd-internal.la \
4884 libsystemd-shared.la
4889 dist_bashcompletion_DATA += \
4890 shell-completion/bash/hostnamectl
4892 dist_zshcompletion_DATA += \
4893 shell-completion/zsh/_hostnamectl
4897 polkitpolicy_in_files += \
4898 src/hostname/org.freedesktop.hostname1.policy.in
4901 units/systemd-hostnamed.service.in
4903 # ------------------------------------------------------------------------------
4904 dist_systemunit_DATA_busnames += \
4905 units/org.freedesktop.systemd1.busname
4907 BUSNAMES_TARGET_WANTS += \
4908 org.freedesktop.systemd1.busname
4910 # ------------------------------------------------------------------------------
4912 systemd_localed_SOURCES = \
4913 src/locale/localed.c
4915 systemd_localed_LDADD = \
4916 libsystemd-label.la \
4917 libsystemd-internal.la \
4918 libsystemd-shared.la \
4921 systemd_localed_CFLAGS = \
4925 nodist_systemunit_DATA += \
4926 units/systemd-localed.service
4928 dist_systemunit_DATA_busnames += \
4929 units/org.freedesktop.locale1.busname
4931 rootlibexec_PROGRAMS += \
4934 dist_dbuspolicy_DATA += \
4935 src/locale/org.freedesktop.locale1.conf
4937 dist_dbussystemservice_DATA += \
4938 src/locale/org.freedesktop.locale1.service
4940 polkitpolicy_files += \
4941 src/locale/org.freedesktop.locale1.policy
4943 SYSTEM_UNIT_ALIASES += \
4944 systemd-localed.service dbus-org.freedesktop.locale1.service
4946 BUSNAMES_TARGET_WANTS += \
4947 org.freedesktop.locale1.busname
4949 dist_pkgdata_DATA += \
4950 src/locale/kbd-model-map
4952 dist_noinst_SCRIPT = \
4953 src/locale/generate-kbd-model-map
4955 localectl_SOURCES = \
4956 src/locale/localectl.c
4959 libsystemd-internal.la \
4960 libsystemd-shared.la
4965 dist_bashcompletion_DATA += \
4966 shell-completion/bash/localectl
4968 dist_zshcompletion_DATA += \
4969 shell-completion/zsh/_localectl
4973 .PHONY: update-kbd-model-map
4975 polkitpolicy_in_files += \
4976 src/locale/org.freedesktop.locale1.policy.in
4979 units/systemd-localed.service.in
4981 # ------------------------------------------------------------------------------
4983 systemd_timedated_SOURCES = \
4984 src/timedate/timedated.c
4986 systemd_timedated_LDADD = \
4987 libsystemd-label.la \
4988 libsystemd-internal.la \
4989 libsystemd-shared.la
4991 rootlibexec_PROGRAMS += \
4994 dist_dbussystemservice_DATA += \
4995 src/timedate/org.freedesktop.timedate1.service
4997 dist_dbuspolicy_DATA += \
4998 src/timedate/org.freedesktop.timedate1.conf
5000 nodist_systemunit_DATA += \
5001 units/systemd-timedated.service
5003 dist_systemunit_DATA_busnames += \
5004 units/org.freedesktop.timedate1.busname
5006 polkitpolicy_files += \
5007 src/timedate/org.freedesktop.timedate1.policy
5009 SYSTEM_UNIT_ALIASES += \
5010 systemd-timedated.service dbus-org.freedesktop.timedate1.service
5012 BUSNAMES_TARGET_WANTS += \
5013 org.freedesktop.timedate1.busname
5015 timedatectl_SOURCES = \
5016 src/timedate/timedatectl.c
5018 timedatectl_LDADD = \
5019 libsystemd-internal.la \
5020 libsystemd-shared.la
5025 dist_bashcompletion_DATA += \
5026 shell-completion/bash/timedatectl
5028 dist_zshcompletion_DATA += \
5029 shell-completion/zsh/_timedatectl
5032 polkitpolicy_in_files += \
5033 src/timedate/org.freedesktop.timedate1.policy.in
5036 units/systemd-timedated.service.in
5038 # ------------------------------------------------------------------------------
5040 systemd_timesyncd_SOURCES = \
5041 src/timesync/timesyncd.c \
5042 src/timesync/timesyncd-manager.c \
5043 src/timesync/timesyncd-manager.h \
5044 src/timesync/timesyncd-conf.c \
5045 src/timesync/timesyncd-conf.h \
5046 src/timesync/timesyncd-server.c \
5047 src/timesync/timesyncd-server.h
5049 nodist_systemd_timesyncd_SOURCES = \
5050 src/timesync/timesyncd-gperf.c
5053 src/timesync/timesyncd-gperf.gperf
5056 src/timesync/timesyncd-gperf.c
5058 systemd_timesyncd_LDADD = \
5059 libsystemd-resolve.la \
5060 libsystemd-network.la \
5061 libsystemd-label.la \
5062 libsystemd-internal.la \
5063 libsystemd-shared.la
5065 rootlibexec_PROGRAMS += \
5068 nodist_systemunit_DATA += \
5069 units/systemd-timesyncd.service
5071 GENERAL_ALIASES += \
5072 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5075 units/systemd-timesyncd.service.in
5077 nodist_pkgsysconf_DATA += \
5078 src/timesync/timesyncd.conf
5081 src/timesync/timesyncd.conf.in
5084 src/timesync/timesyncd.conf
5087 # ------------------------------------------------------------------------------
5089 libnss_myhostname_la_SOURCES = \
5090 src/nss-myhostname/nss-myhostname.sym \
5091 src/nss-myhostname/nss-myhostname.c
5093 libnss_myhostname_la_LDFLAGS = \
5100 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5102 libnss_myhostname_la_LIBADD = \
5103 libsystemd-shared.la \
5104 libsystemd-internal.la
5106 lib_LTLIBRARIES += \
5107 libnss_myhostname.la
5110 # ------------------------------------------------------------------------------
5112 systemd_machined_SOURCES = \
5113 src/machine/machined.c \
5114 src/machine/machined.h
5116 systemd_machined_LDADD = \
5117 libsystemd-machine-core.la
5119 rootlibexec_PROGRAMS += \
5122 libsystemd_machine_core_la_SOURCES = \
5123 src/machine/machine.c \
5124 src/machine/machine.h \
5125 src/machine/machined-dbus.c \
5126 src/machine/machine-dbus.c \
5127 src/machine/machine-dbus.h \
5128 src/machine/image-dbus.c \
5129 src/machine/image-dbus.h
5131 libsystemd_machine_core_la_LIBADD = \
5132 libsystemd-label.la \
5133 libsystemd-internal.la \
5134 libudev-internal.la \
5135 libsystemd-shared.la
5137 noinst_LTLIBRARIES += \
5138 libsystemd-machine-core.la
5140 machinectl_SOURCES = \
5141 src/machine/machinectl.c
5143 machinectl_LDADD = \
5144 libsystemd-internal.la \
5145 libsystemd-logs.la \
5146 libsystemd-journal-internal.la \
5147 libsystemd-shared.la
5149 rootbin_PROGRAMS += \
5152 dist_bashcompletion_DATA += \
5153 shell-completion/bash/machinectl
5155 test_machine_tables_SOURCES = \
5156 src/machine/test-machine-tables.c
5158 test_machine_tables_LDADD = \
5159 libsystemd-machine-core.la
5164 nodist_systemunit_DATA += \
5165 units/systemd-machined.service
5167 dist_systemunit_DATA += \
5170 dist_systemunit_DATA_busnames += \
5171 units/org.freedesktop.machine1.busname
5173 dist_dbussystemservice_DATA += \
5174 src/machine/org.freedesktop.machine1.service
5176 dist_dbuspolicy_DATA += \
5177 src/machine/org.freedesktop.machine1.conf
5179 polkitpolicy_files += \
5180 src/machine/org.freedesktop.machine1.policy
5182 polkitpolicy_in_files += \
5183 src/machine/org.freedesktop.machine1.policy.in
5185 dist_zshcompletion_DATA += \
5186 shell-completion/zsh/_machinectl \
5187 shell-completion/zsh/_sd_machines
5189 SYSTEM_UNIT_ALIASES += \
5190 systemd-machined.service dbus-org.freedesktop.machine1.service
5192 BUSNAMES_TARGET_WANTS += \
5193 org.freedesktop.machine1.busname
5196 units/systemd-machined.service.in
5198 libnss_mymachines_la_SOURCES = \
5199 src/nss-mymachines/nss-mymachines.sym \
5200 src/nss-mymachines/nss-mymachines.c
5202 libnss_mymachines_la_LDFLAGS = \
5209 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5211 libnss_mymachines_la_LIBADD = \
5212 libsystemd-shared.la \
5213 libsystemd-internal.la
5215 lib_LTLIBRARIES += \
5216 libnss_mymachines.la
5223 systemd_import_SOURCES = \
5224 src/import/import.c \
5225 src/import/import-raw.c \
5226 src/import/import-raw.h \
5227 src/import/import-dkr.c \
5228 src/import/import-dkr.h \
5229 src/import/curl-util.c \
5230 src/import/curl-util.h \
5231 src/import/aufs-util.c \
5232 src/import/aufs-util.h
5234 systemd_import_CFLAGS = \
5238 systemd_import_LDADD = \
5239 libsystemd-internal.la \
5240 libsystemd-label.la \
5241 libsystemd-shared.la \
5247 # ------------------------------------------------------------------------------
5249 systemd_resolved_SOURCES = \
5250 src/resolve/resolved.c \
5251 src/resolve/resolved-manager.c \
5252 src/resolve/resolved-manager.h \
5253 src/resolve/resolved-conf.c \
5254 src/resolve/resolved-conf.h \
5255 src/resolve/resolved-bus.c \
5256 src/resolve/resolved-bus.h \
5257 src/resolve/resolved-link.h \
5258 src/resolve/resolved-link.c \
5259 src/resolve/resolved-def.h \
5260 src/resolve/resolved-dns-domain.h \
5261 src/resolve/resolved-dns-domain.c \
5262 src/resolve/resolved-dns-rr.h \
5263 src/resolve/resolved-dns-rr.c \
5264 src/resolve/resolved-dns-question.h \
5265 src/resolve/resolved-dns-question.c \
5266 src/resolve/resolved-dns-answer.h \
5267 src/resolve/resolved-dns-answer.c \
5268 src/resolve/resolved-dns-packet.h \
5269 src/resolve/resolved-dns-packet.c \
5270 src/resolve/resolved-dns-query.h \
5271 src/resolve/resolved-dns-query.c \
5272 src/resolve/resolved-dns-transaction.h \
5273 src/resolve/resolved-dns-transaction.c \
5274 src/resolve/resolved-dns-scope.h \
5275 src/resolve/resolved-dns-scope.c \
5276 src/resolve/resolved-dns-server.h \
5277 src/resolve/resolved-dns-server.c \
5278 src/resolve/resolved-dns-cache.h \
5279 src/resolve/resolved-dns-cache.c \
5280 src/resolve/resolved-dns-zone.h \
5281 src/resolve/resolved-dns-zone.c \
5282 src/resolve/resolved-dns-stream.h \
5283 src/resolve/resolved-dns-stream.c \
5284 src/resolve/dns-type.c \
5285 src/resolve/dns-type.h \
5286 src/resolve/dns_type-from-name.h \
5287 src/resolve/dns_type-to-name.h
5289 nodist_systemd_resolved_SOURCES = \
5290 src/resolve/resolved-gperf.c
5293 src/resolve/resolved-gperf.gperf \
5294 src/resolve/dns_type-from-name.gperf
5297 src/resolve/resolved-gperf.c
5299 systemd_resolved_LDADD = \
5300 libsystemd-network.la \
5301 libsystemd-label.la \
5302 libsystemd-internal.la \
5303 libsystemd-shared.la \
5306 rootlibexec_PROGRAMS += \
5309 nodist_systemunit_DATA += \
5310 units/systemd-resolved.service
5312 dist_systemunit_DATA_busnames += \
5313 units/org.freedesktop.resolve1.busname
5315 dist_dbuspolicy_DATA += \
5316 src/resolve/org.freedesktop.resolve1.conf
5318 dist_dbussystemservice_DATA += \
5319 src/resolve/org.freedesktop.resolve1.service
5322 units/systemd-resolved.service.in
5324 SYSTEM_UNIT_ALIASES += \
5325 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5327 BUSNAMES_TARGET_WANTS += \
5328 org.freedesktop.resolve1.busname
5330 GENERAL_ALIASES += \
5331 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5333 nodist_pkgsysconf_DATA += \
5334 src/resolve/resolved.conf
5337 src/resolve/resolved.conf.in
5340 src/resolve/resolved.conf
5345 test_dns_domain_SOURCES = \
5346 src/resolve/resolved-dns-domain.h \
5347 src/resolve/resolved-dns-domain.c \
5348 src/resolve/test-dns-domain.c
5350 test_dns_domain_LDADD = \
5351 libsystemd-network.la \
5352 libsystemd-label.la \
5353 libsystemd-internal.la \
5354 libsystemd-shared.la \
5357 libnss_resolve_la_SOURCES = \
5358 src/nss-resolve/nss-resolve.sym \
5359 src/nss-resolve/nss-resolve.c
5361 libnss_resolve_la_LDFLAGS = \
5368 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5370 libnss_resolve_la_LIBADD = \
5371 libsystemd-internal.la \
5372 libsystemd-shared.la
5374 lib_LTLIBRARIES += \
5377 systemd_resolve_host_SOURCES = \
5378 src/resolve-host/resolve-host.c \
5379 src/resolve/resolved-dns-packet.c \
5380 src/resolve/resolved-dns-packet.h \
5381 src/resolve/resolved-dns-rr.c \
5382 src/resolve/resolved-dns-rr.h \
5383 src/resolve/resolved-dns-answer.c \
5384 src/resolve/resolved-dns-answer.h \
5385 src/resolve/resolved-dns-question.c \
5386 src/resolve/resolved-dns-question.h \
5387 src/resolve/resolved-dns-domain.c \
5388 src/resolve/resolved-dns-domain.h \
5389 src/resolve/dns-type.c \
5390 src/resolve/dns-type.h \
5391 src/resolve/dns_type-from-name.h \
5392 src/resolve/dns_type-to-name.h
5394 systemd_resolve_host_LDADD = \
5395 libsystemd-internal.la \
5396 libsystemd-shared.la \
5399 rootlibexec_PROGRAMS += \
5400 systemd-resolve-host
5404 # ------------------------------------------------------------------------------
5406 rootlibexec_PROGRAMS += \
5409 systemd_networkd_SOURCES = \
5410 src/network/networkd.c
5412 systemd_networkd_LDADD = \
5413 libsystemd-networkd-core.la
5416 systemd_networkd_LDADD += \
5420 noinst_LTLIBRARIES += \
5421 libsystemd-networkd-core.la
5423 libsystemd_networkd_core_la_CFLAGS = \
5426 libsystemd_networkd_core_la_SOURCES = \
5427 src/libsystemd-network/network-internal.h \
5428 src/network/networkd.h \
5429 src/network/networkd-link.h \
5430 src/network/networkd-netdev.h \
5431 src/network/networkd-netdev-tunnel.h \
5432 src/network/networkd-netdev-veth.h \
5433 src/network/networkd-netdev-vxlan.h \
5434 src/network/networkd-netdev-vlan.h \
5435 src/network/networkd-netdev-macvlan.h \
5436 src/network/networkd-netdev-dummy.h \
5437 src/network/networkd-netdev-tuntap.h \
5438 src/network/networkd-netdev-bond.h \
5439 src/network/networkd-netdev-bridge.h \
5440 src/network/networkd-netdev.c \
5441 src/network/networkd-netdev-tunnel.c \
5442 src/network/networkd-netdev-veth.c \
5443 src/network/networkd-netdev-vxlan.c \
5444 src/network/networkd-netdev-vlan.c \
5445 src/network/networkd-netdev-macvlan.c \
5446 src/network/networkd-netdev-dummy.c \
5447 src/network/networkd-netdev-tuntap.c \
5448 src/network/networkd-netdev-bond.c \
5449 src/network/networkd-netdev-bridge.c \
5450 src/network/networkd-link.c \
5451 src/network/networkd-ipv4ll.c \
5452 src/network/networkd-dhcp4.c \
5453 src/network/networkd-dhcp6.c \
5454 src/network/networkd-network.c \
5455 src/network/networkd-address.c \
5456 src/network/networkd-route.c \
5457 src/network/networkd-manager.c \
5458 src/network/networkd-fdb.c \
5459 src/network/networkd-address-pool.c
5461 nodist_libsystemd_networkd_core_la_SOURCES = \
5462 src/network/networkd-network-gperf.c \
5463 src/network/networkd-netdev-gperf.c
5465 libsystemd_networkd_core_la_LIBADD = \
5466 libudev-internal.la \
5467 libsystemd-internal.la \
5468 libsystemd-network.la \
5469 libsystemd-label.la \
5470 libsystemd-shared.la
5472 rootlibexec_PROGRAMS += \
5473 systemd-networkd-wait-online
5475 systemd_networkd_wait_online_CFLAGS = \
5478 systemd_networkd_wait_online_SOURCES = \
5479 src/libsystemd-network/network-internal.h \
5480 src/network/networkd-wait-online.h \
5481 src/network/networkd-wait-online-link.h \
5482 src/network/networkd-wait-online.c \
5483 src/network/networkd-wait-online-manager.c \
5484 src/network/networkd-wait-online-link.c
5486 systemd_networkd_wait_online_LDADD = \
5487 libsystemd-network.la \
5488 libudev-internal.la \
5489 libsystemd-internal.la \
5490 libsystemd-shared.la
5492 rootbin_PROGRAMS += \
5495 networkctl_SOURCES = \
5496 src/network/networkctl.c
5498 networkctl_LDADD = \
5499 libsystemd-internal.la \
5500 libudev-internal.la \
5501 libsystemd-shared.la \
5502 libsystemd-network.la
5504 test_network_SOURCES = \
5505 src/network/test-network.c
5507 test_network_LDADD = \
5508 libsystemd-networkd-core.la
5511 test_network_LDADD += \
5515 test_network_tables_SOURCES = \
5516 src/network/test-network-tables.c \
5517 src/shared/test-tables.h
5519 test_network_tables_LDADD = \
5520 libsystemd-networkd-core.la \
5527 nodist_systemunit_DATA += \
5528 units/systemd-networkd.service \
5529 units/systemd-networkd-wait-online.service
5531 GENERAL_ALIASES += \
5532 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5533 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5536 src/network/networkd-network-gperf.gperf \
5537 src/network/networkd-netdev-gperf.gperf \
5538 units/systemd-networkd.service.in \
5539 units/systemd-networkd-wait-online.service.in
5542 src/network/networkd-network-gperf.c \
5543 src/network/networkd-netdev-gperf.c
5546 # ------------------------------------------------------------------------------
5548 systemd_logind_SOURCES = \
5549 src/login/logind.c \
5552 nodist_systemd_logind_SOURCES = \
5553 src/login/logind-gperf.c
5555 systemd_logind_LDADD = \
5556 libsystemd-logind-core.la
5558 libsystemd_logind_core_la_SOURCES = \
5559 src/login/logind-core.c \
5560 src/login/logind-device.c \
5561 src/login/logind-device.h \
5562 src/login/logind-button.c \
5563 src/login/logind-button.h \
5564 src/login/logind-action.c \
5565 src/login/logind-action.h \
5566 src/login/logind-seat.c \
5567 src/login/logind-seat.h \
5568 src/login/logind-session.c \
5569 src/login/logind-session.h \
5570 src/login/logind-session-device.c \
5571 src/login/logind-session-device.h \
5572 src/login/logind-user.c \
5573 src/login/logind-user.h \
5574 src/login/logind-inhibit.c \
5575 src/login/logind-inhibit.h \
5576 src/login/logind-dbus.c \
5577 src/login/logind-session-dbus.c \
5578 src/login/logind-seat-dbus.c \
5579 src/login/logind-user-dbus.c \
5580 src/login/logind-acl.h
5582 libsystemd_logind_core_la_LIBADD = \
5583 libsystemd-label.la \
5584 libsystemd-internal.la \
5585 libudev-internal.la \
5586 libsystemd-shared.la
5589 libsystemd_logind_core_la_SOURCES += \
5590 src/login/logind-acl.c
5592 libsystemd_logind_core_la_LIBADD += \
5596 noinst_LTLIBRARIES += \
5597 libsystemd-logind-core.la
5599 systemd_user_sessions_SOURCES = \
5600 src/login/user-sessions.c
5602 systemd_user_sessions_LDADD = \
5603 libsystemd-shared.la
5605 rootlibexec_PROGRAMS += \
5607 systemd-user-sessions
5609 loginctl_SOURCES = \
5610 src/login/loginctl.c \
5611 src/login/sysfs-show.h \
5612 src/login/sysfs-show.c
5615 libsystemd-internal.la \
5616 libsystemd-logs.la \
5617 libsystemd-journal-internal.la \
5618 libudev-internal.la \
5619 libsystemd-shared.la
5621 rootbin_PROGRAMS += \
5624 dist_bashcompletion_DATA += \
5625 shell-completion/bash/loginctl
5627 dist_zshcompletion_DATA += \
5628 shell-completion/zsh/_loginctl \
5629 shell-completion/zsh/_systemd-inhibit
5631 systemd_inhibit_SOURCES = \
5634 systemd_inhibit_LDADD = \
5635 libsystemd-internal.la \
5636 libsystemd-shared.la
5638 rootbin_PROGRAMS += \
5641 test_login_SOURCES = \
5642 src/libsystemd/sd-login/test-login.c
5644 test_login_LDADD = \
5645 libsystemd-internal.la \
5646 libsystemd-shared.la
5648 test_login_shared_SOURCES = \
5649 src/login/test-login-shared.c
5651 test_login_shared_LDADD = \
5652 libsystemd-internal.la \
5653 libsystemd-shared.la
5655 test_inhibit_SOURCES = \
5656 src/login/test-inhibit.c
5658 test_inhibit_LDADD = \
5659 libsystemd-internal.la \
5660 libsystemd-shared.la
5662 test_login_tables_SOURCES = \
5663 src/login/test-login-tables.c
5665 test_login_tables_LDADD = \
5666 libsystemd-logind-core.la
5677 pam_systemd_la_SOURCES = \
5678 src/login/pam_systemd.sym \
5679 src/login/pam_systemd.c
5681 pam_systemd_la_CFLAGS = \
5686 pam_systemd_la_LDFLAGS = \
5692 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5694 pam_systemd_la_LIBADD = \
5695 libsystemd-internal.la \
5696 libsystemd-shared.la \
5699 pamlib_LTLIBRARIES = \
5702 dist_pamconf_DATA = \
5703 src/login/systemd-user
5706 nodist_systemunit_DATA += \
5707 units/systemd-logind.service \
5708 units/systemd-user-sessions.service
5710 dist_systemunit_DATA += \
5713 dist_systemunit_DATA_busnames += \
5714 units/org.freedesktop.login1.busname
5716 dist_dbussystemservice_DATA += \
5717 src/login/org.freedesktop.login1.service
5719 dist_dbuspolicy_DATA += \
5720 src/login/org.freedesktop.login1.conf
5722 dist_pkgsysconf_DATA += \
5723 src/login/logind.conf
5725 polkitpolicy_files += \
5726 src/login/org.freedesktop.login1.policy
5731 MULTI_USER_TARGET_WANTS += \
5732 systemd-logind.service \
5733 systemd-user-sessions.service
5735 SYSTEM_UNIT_ALIASES += \
5736 systemd-logind.service dbus-org.freedesktop.login1.service
5738 BUSNAMES_TARGET_WANTS += \
5739 org.freedesktop.login1.busname
5741 dist_udevrules_DATA += \
5742 src/login/70-uaccess.rules \
5743 src/login/70-power-switch.rules
5745 nodist_udevrules_DATA += \
5746 src/login/71-seat.rules \
5747 src/login/73-seat-late.rules
5750 src/login/logind-gperf.c \
5751 src/login/71-seat.rules \
5752 src/login/73-seat-late.rules
5755 polkitpolicy_in_files += \
5756 src/login/org.freedesktop.login1.policy.in
5759 src/login/logind-gperf.gperf \
5760 src/login/71-seat.rules.in \
5761 src/login/73-seat-late.rules.in \
5762 units/systemd-logind.service.in \
5763 units/systemd-user-sessions.service.in
5765 # ------------------------------------------------------------------------------
5766 if HAVE_PYTHON_DEVEL
5767 pkgpyexec_LTLIBRARIES = \
5774 _journal_la_SOURCES = \
5775 src/python-systemd/_journal.c
5777 _journal_la_CFLAGS = \
5779 -fvisibility=default \
5780 $(PYTHON_DEVEL_CFLAGS)
5782 _journal_la_LDFLAGS = \
5788 _journal_la_LIBADD = \
5789 $(PYTHON_DEVEL_LIBS) \
5792 id128_la_SOURCES = \
5793 src/python-systemd/id128.c \
5794 src/python-systemd/pyutil.c \
5795 src/python-systemd/pyutil.h
5797 nodist_id128_la_SOURCES = \
5798 src/python-systemd/id128-constants.h
5802 -fvisibility=default \
5803 $(PYTHON_DEVEL_CFLAGS) \
5804 -I$(top_builddir)/src/python-systemd
5806 id128_la_LDFLAGS = \
5813 $(PYTHON_DEVEL_LIBS) \
5814 libsystemd-shared.la \
5817 _daemon_la_SOURCES = \
5818 src/python-systemd/_daemon.c \
5819 src/python-systemd/pyutil.c \
5820 src/python-systemd/pyutil.h
5822 _daemon_la_CFLAGS = \
5824 -fvisibility=default \
5825 $(PYTHON_DEVEL_CFLAGS) \
5826 -I$(top_builddir)/src/python-systemd
5828 _daemon_la_LDFLAGS = \
5834 _daemon_la_LIBADD = \
5835 $(PYTHON_DEVEL_LIBS) \
5836 libsystemd-shared.la \
5839 _reader_la_SOURCES = \
5840 src/python-systemd/_reader.c \
5841 src/python-systemd/pyutil.c \
5842 src/python-systemd/pyutil.h
5844 _reader_la_CFLAGS = \
5846 -fvisibility=default \
5847 $(PYTHON_DEVEL_CFLAGS)
5849 _reader_la_LDFLAGS = \
5855 _reader_la_LIBADD = \
5856 $(PYTHON_DEVEL_LIBS) \
5857 libsystemd-shared.la \
5860 login_la_SOURCES = \
5861 src/python-systemd/login.c \
5862 src/python-systemd/pyutil.c \
5863 src/python-systemd/pyutil.h
5867 -fvisibility=default \
5868 $(PYTHON_DEVEL_CFLAGS)
5870 login_la_LDFLAGS = \
5877 $(PYTHON_DEVEL_LIBS) \
5878 libsystemd-shared.la \
5881 dist_pkgpyexec_PYTHON = \
5882 src/python-systemd/journal.py \
5883 src/python-systemd/daemon.py \
5884 src/python-systemd/__init__.py
5886 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5887 $(AM_V_at)$(MKDIR_P) $(dir $@)
5888 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5891 src/python-systemd/id128-constants.h
5893 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5895 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5896 $(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/
5897 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5900 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5901 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5904 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5905 $(MAKE) DESTDIR="$$dir" install && \
5906 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5911 CLEAN_LOCAL_HOOKS += clean-sphinx
5913 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5916 -rm -rf docs/html/python-systemd/
5918 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5920 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5921 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5923 # ------------------------------------------------------------------------------
5924 if ENABLE_COMPAT_LIBS
5926 src/compat-libs/linkwarning.h
5928 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5929 $(AM_V_at)$(MKDIR_P) $(dir $@)
5930 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5933 libsystemd-journal.c \
5934 libsystemd-login.c \
5935 libsystemd-id128.c \
5938 libsystemd_journal_la_SOURCES = \
5939 libsystemd-journal.c \
5940 src/compat-libs/libsystemd-journal.sym
5942 libsystemd_journal_la_CPPFLAGS = \
5944 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5946 libsystemd_journal_la_LDFLAGS = \
5948 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5949 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5951 libsystemd_journal_la_LIBADD = \
5952 libsystemd-journal-internal.la \
5953 libsystemd-internal.la \
5954 libsystemd-shared.la
5956 libsystemd_login_la_SOURCES = \
5957 libsystemd-login.c \
5958 src/compat-libs/libsystemd-login.sym
5960 libsystemd_login_la_CPPFLAGS = \
5962 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5964 libsystemd_login_la_LDFLAGS = \
5966 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5967 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5969 libsystemd_login_la_LIBADD = \
5970 libsystemd-internal.la \
5971 libsystemd-shared.la
5973 libsystemd_id128_la_SOURCES = \
5974 libsystemd-id128.c \
5975 src/compat-libs/libsystemd-id128.sym
5977 libsystemd_id128_la_CPPFLAGS = \
5979 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5981 libsystemd_id128_la_LDFLAGS = \
5983 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5984 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5986 libsystemd_id128_la_LIBADD = \
5987 libsystemd-internal.la \
5988 libsystemd-shared.la
5990 libsystemd_daemon_la_SOURCES = \
5991 libsystemd-daemon.c \
5992 src/compat-libs/libsystemd-daemon.sym
5994 libsystemd_daemon_la_CPPFLAGS = \
5996 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5998 libsystemd_daemon_la_LDFLAGS = \
6000 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
6001 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
6003 libsystemd_daemon_la_LIBADD = \
6004 libsystemd-internal.la \
6005 libsystemd-shared.la
6007 lib_LTLIBRARIES += \
6008 libsystemd-journal.la \
6009 libsystemd-login.la \
6010 libsystemd-id128.la \
6011 libsystemd-daemon.la
6013 pkgconfiglib_DATA += \
6014 src/compat-libs/libsystemd-journal.pc \
6015 src/compat-libs/libsystemd-login.pc \
6016 src/compat-libs/libsystemd-id128.pc \
6017 src/compat-libs/libsystemd-daemon.pc
6019 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
6020 compat-lib-install-hook:
6021 libname=libsystemd-login.so && $(move-to-rootlibdir)
6022 libname=libsystemd-journal.so && $(move-to-rootlibdir)
6023 libname=libsystemd-id128.so && $(move-to-rootlibdir)
6024 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
6026 compat-lib-uninstall-hook:
6027 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
6028 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
6029 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
6030 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
6032 INSTALL_EXEC_HOOKS += compat-lib-install-hook
6033 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
6037 src/compat-libs/libsystemd-journal.pc.in \
6038 src/compat-libs/libsystemd-login.pc.in \
6039 src/compat-libs/libsystemd-id128.pc.in \
6040 src/compat-libs/libsystemd-daemon.pc.in
6042 # ------------------------------------------------------------------------------
6044 '|rootlibexecdir=$(rootlibexecdir)|' \
6045 '|rootbindir=$(rootbindir)|' \
6046 '|bindir=$(bindir)|' \
6047 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6048 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6049 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6050 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6051 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6052 '|pkgdatadir=$(pkgdatadir)|' \
6053 '|systemunitdir=$(systemunitdir)|' \
6054 '|userunitdir=$(userunitdir)|' \
6055 '|systempresetdir=$(systempresetdir)|' \
6056 '|userpresetdir=$(userpresetdir)|' \
6057 '|udevhwdbdir=$(udevhwdbdir)|' \
6058 '|udevrulesdir=$(udevrulesdir)|' \
6059 '|catalogdir=$(catalogdir)|' \
6060 '|tmpfilesdir=$(tmpfilesdir)|' \
6061 '|sysusersdir=$(sysusersdir)|' \
6062 '|sysctldir=$(sysctldir)|' \
6063 '|systemgeneratordir=$(systemgeneratordir)|' \
6064 '|usergeneratordir=$(usergeneratordir)|' \
6065 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6066 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6067 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6068 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6069 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6070 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6071 '|prefix=$(prefix)|' \
6072 '|exec_prefix=$(exec_prefix)|' \
6073 '|libdir=$(libdir)|' \
6074 '|includedir=$(includedir)|' \
6075 '|VERSION=$(VERSION)|' \
6076 '|rootprefix=$(rootprefix)|' \
6077 '|udevlibexecdir=$(udevlibexecdir)|' \
6078 '|SUSHELL=$(SUSHELL)|' \
6079 '|DEBUGTTY=$(DEBUGTTY)|' \
6082 '|MKDIR_P=$(MKDIR_P)|' \
6083 '|QUOTAON=$(QUOTAON)|' \
6084 '|QUOTACHECK=$(QUOTACHECK)|' \
6085 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6086 '|VARLOGDIR=$(varlogdir)|' \
6087 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6088 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6089 '|PYTHON=$(PYTHON)|' \
6090 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6091 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6092 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6093 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6094 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6095 '|TTY_GID=$(TTY_GID)|' \
6096 '|systemsleepdir=$(systemsleepdir)|' \
6097 '|systemshutdowndir=$(systemshutdowndir)|' \
6098 '|binfmtdir=$(binfmtdir)|' \
6099 '|modulesloaddir=$(modulesloaddir)|'
6102 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6103 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6112 sysctl.d/%: sysctl.d/%.in
6121 src/core/macros.%: src/core/macros.%.in
6124 src/%.policy.in: src/%.policy.in.in
6127 shell-completion/%: shell-completion/%.in
6138 $(AM_V_GEN)chmod +x $@
6140 src/%.c: src/%.gperf
6141 $(AM_V_at)$(MKDIR_P) $(dir $@)
6142 $(AM_V_GPERF)$(GPERF) < $< > $@
6145 $(AM_V_at)$(MKDIR_P) $(dir $@)
6146 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6148 sysusers.d/%: sysusers.d/%.m4
6149 $(AM_V_at)$(MKDIR_P) $(dir $@)
6150 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6152 tmpfiles.d/%: tmpfiles.d/%.m4
6153 $(AM_V_at)$(MKDIR_P) $(dir $@)
6154 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6158 $(AM_V_at)$(MKDIR_P) $(dir $@)
6159 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6161 units/user/%: units/user/%.m4
6162 $(AM_V_at)$(MKDIR_P) $(dir $@)
6163 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6166 nodist_polkitpolicy_DATA = \
6167 $(polkitpolicy_files) \
6168 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6172 $(polkitpolicy_in_files) \
6173 $(polkitpolicy_in_in_files)
6176 $(nodist_systemunit_DATA) \
6177 $(nodist_userunit_DATA) \
6178 $(pkgconfiglib_DATA) \
6179 $(nodist_polkitpolicy_DATA)
6181 # ------------------------------------------------------------------------------
6183 man/custom-entities.ent: configure.ac
6184 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6185 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6186 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6190 man/custom-entities.ent
6195 --stringparam man.output.quietly 1 \
6196 --stringparam funcsynopsis.style ansi \
6197 --stringparam man.authors.section.enabled 0 \
6198 --stringparam man.copyright.section.enabled 0 \
6199 --stringparam systemd.version $(VERSION) \
6200 --path '$(builddir)/man:$(srcdir)/man'
6202 XSLTPROC_PROCESS_MAN = \
6203 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6205 XSLTPROC_PROCESS_HTML = \
6206 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6208 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6209 $(XSLTPROC_PROCESS_MAN)
6211 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6212 $(XSLTPROC_PROCESS_MAN)
6214 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6215 $(XSLTPROC_PROCESS_MAN)
6217 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6218 $(XSLTPROC_PROCESS_MAN)
6220 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6221 $(XSLTPROC_PROCESS_MAN)
6223 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6224 $(XSLTPROC_PROCESS_HTML)
6227 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6233 man/custom-html.xsl \
6236 # ------------------------------------------------------------------------------
6239 docs/sysvinit/README
6244 docs/sysvinit/README: docs/sysvinit/README.in
6247 docs/var-log/README: docs/var-log/README.in
6251 docs/sysvinit/README \
6256 docs/sysvinit/README.in \
6257 docs/var-log/README.in
6259 SOCKETS_TARGET_WANTS += \
6260 systemd-initctl.socket \
6261 systemd-shutdownd.socket
6265 RUNLEVEL1_TARGET_WANTS += \
6266 systemd-update-utmp-runlevel.service
6267 RUNLEVEL2_TARGET_WANTS += \
6268 systemd-update-utmp-runlevel.service
6269 RUNLEVEL3_TARGET_WANTS += \
6270 systemd-update-utmp-runlevel.service
6271 RUNLEVEL4_TARGET_WANTS += \
6272 systemd-update-utmp-runlevel.service
6273 RUNLEVEL5_TARGET_WANTS += \
6274 systemd-update-utmp-runlevel.service
6277 SYSINIT_TARGET_WANTS += \
6278 systemd-update-utmp.service
6281 SYSINIT_TARGET_WANTS += \
6282 systemd-update-done.service
6284 LOCAL_FS_TARGET_WANTS += \
6285 systemd-remount-fs.service \
6288 MULTI_USER_TARGET_WANTS += \
6290 systemd-ask-password-wall.path
6292 SYSINIT_TARGET_WANTS += \
6293 dev-hugepages.mount \
6295 sys-kernel-config.mount \
6296 sys-kernel-debug.mount \
6297 sys-fs-fuse-connections.mount \
6298 systemd-sysctl.service \
6299 systemd-ask-password-console.path
6302 SYSTEM_UNIT_ALIASES += \
6303 poweroff.target runlevel0.target \
6304 rescue.target runlevel1.target \
6305 multi-user.target runlevel2.target \
6306 multi-user.target runlevel3.target \
6307 multi-user.target runlevel4.target \
6308 graphical.target runlevel5.target \
6309 reboot.target runlevel6.target
6312 SYSTEM_UNIT_ALIASES += \
6313 graphical.target default.target \
6314 reboot.target ctrl-alt-del.target \
6315 getty@.service autovt@.service
6317 USER_UNIT_ALIASES += \
6318 $(systemunitdir)/shutdown.target shutdown.target \
6319 $(systemunitdir)/sockets.target sockets.target \
6320 $(systemunitdir)/timers.target timers.target \
6321 $(systemunitdir)/paths.target paths.target \
6322 $(systemunitdir)/bluetooth.target bluetooth.target \
6323 $(systemunitdir)/printer.target printer.target \
6324 $(systemunitdir)/sound.target sound.target \
6325 $(systemunitdir)/smartcard.target smartcard.target
6328 USER_UNIT_ALIASES += \
6329 $(systemunitdir)/busnames.target busnames.target
6332 GENERAL_ALIASES += \
6333 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6334 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6335 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6336 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6340 $(systemunitdir)/runlevel1.target.wants \
6341 $(systemunitdir)/runlevel2.target.wants \
6342 $(systemunitdir)/runlevel3.target.wants \
6343 $(systemunitdir)/runlevel4.target.wants \
6344 $(systemunitdir)/runlevel5.target.wants
6348 $(prefix)/lib/modules-load.d \
6349 $(sysconfdir)/modules-load.d \
6350 $(prefix)/lib/systemd/network \
6351 $(sysconfdir)/systemd/network \
6352 $(prefix)/lib/sysctl.d \
6353 $(sysconfdir)/sysctl.d \
6354 $(prefix)/lib/kernel/install.d \
6355 $(sysconfdir)/kernel/install.d \
6356 $(systemshutdowndir) \
6358 $(systemgeneratordir) \
6359 $(usergeneratordir) \
6362 $(pkgsysconfdir)/system \
6363 $(pkgsysconfdir)/system/multi-user.target.wants \
6364 $(pkgsysconfdir)/system/getty.target.wants \
6365 $(pkgsysconfdir)/user \
6366 $(dbussessionservicedir) \
6367 $(sysconfdir)/xdg/systemd
6369 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6371 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6373 install-data-hook: $(INSTALL_DATA_HOOKS)
6375 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6377 clean-local: $(CLEAN_LOCAL_HOOKS)
6378 rm -rf $(abs_srcdir)/install-tree
6379 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6380 $(abs_srcdir)/hwdb/iab.txt
6382 DISTCHECK_CONFIGURE_FLAGS = \
6383 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6384 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6385 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6386 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6387 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6388 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6389 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6390 --with-rootprefix=$$dc_install_base \
6391 --disable-split-usr \
6393 --enable-compat-libs
6396 DISTCHECK_CONFIGURE_FLAGS += \
6397 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6398 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6400 DISTCHECK_CONFIGURE_FLAGS += \
6401 --with-sysvinit-path= \
6402 --with-sysvrcnd-path=
6406 DISTCHECK_CONFIGURE_FLAGS += \
6411 DISTCHECK_CONFIGURE_FLAGS += \
6416 # Require python when making dist
6418 .PHONY: dist-check-python
6421 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6425 dist-check-compat-libs:
6426 if !ENABLE_COMPAT_LIBS
6427 @echo "*** compat-libs must be enabled in order to make dist"
6431 dist: dist-check-python dist-check-compat-libs
6433 # check "broken" platforms limited toolchains for link breakage before we release
6436 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6440 ( cd $(top_srcdir)/hwdb && \
6441 wget -N http://www.linux-usb.org/usb.ids \
6442 http://pci-ids.ucw.cz/v2.2/pci.ids \
6443 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6444 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6447 .PHONY: kdbus-update
6449 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6450 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6454 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6456 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6458 upload: all check dist
6459 scp systemd-$(VERSION).tar.xz $(www_target)
6462 doc-sync: all destdir-sphinx
6463 gtkdoc-rebase --html-dir=docs/libudev/html --online
6464 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6465 gtkdoc-rebase --html-dir=docs/gudev/html --online
6466 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6467 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6468 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6472 scp man/*.html gardel:public/systemd-man/
6474 .PHONY: lennart-fedora
6476 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6478 .PHONY: install-tree
6480 rm -rf $(abs_srcdir)/install-tree
6481 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6482 tree $(abs_srcdir)/install-tree
6484 # Let's run all tests of the test suite, but under valgrind. Let's
6485 # exclude the one perl script we have in there
6486 .PHONY: valgrind-tests
6487 valgrind-tests: $(TESTS)
6488 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6489 if file $$f | grep -q shell; then \
6490 echo -e "$${x}Skipping non-binary $$f"; else \
6491 echo -e "$${x}Running $$f"; \
6492 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6497 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6499 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6500 $(AM_V_GEN)cat $^ > $@
6502 .PHONY: check-api-docs
6503 check-api-docs: exported man
6504 $(AM_V_GEN)for symbol in `cat exported` ; do \
6505 if test -f $(builddir)/man/$$symbol.html ; then \
6506 echo " Symbol $$symbol() is documented." ; \
6508 echo "‣ Symbol $$symbol() lacks documentation." ; \
6512 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6513 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6515 undefined defined: $(ALL_OBJECTS)
6516 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6517 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6518 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6524 .PHONY: check-api-unused
6525 check-api-unused: defined undefined exported
6526 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6528 .PHONY: check-includes
6529 check-includes: $(top_srcdir)/tools/check-includes.pl
6530 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6531 | xargs $(top_srcdir)/tools/check-includes.pl
6534 $(top_srcdir)/tools/check-includes.pl
6536 # Stupid test that everything purported to be exported really is
6537 define generate-sym-test
6538 $(AM_V_at)$(MKDIR_P) $(dir $@)
6539 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6540 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6541 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6542 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6543 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6544 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6545 $(AM_V_at)printf 'return 0; }\n' >> $@
6548 test-libsystemd-sym.c: \
6549 $(top_builddir)/src/libsystemd/libsystemd.sym \
6550 src/systemd/sd-journal.h \
6551 src/systemd/sd-daemon.h \
6552 src/systemd/sd-login.h \
6553 src/systemd/sd-bus.h \
6554 src/systemd/sd-utf8.h \
6555 src/systemd/sd-resolve.h \
6556 src/systemd/sd-path.h
6557 $(generate-sym-test)
6559 test-libudev-sym.c: \
6560 src/libudev/libudev.sym \
6562 $(generate-sym-test)
6564 test_libsystemd_sym_SOURCES = \
6565 test-libsystemd-sym.c
6566 test_libsystemd_sym_LDADD = \
6569 test_libudev_sym_SOURCES = \
6571 test_libudev_sym_CFLAGS = \
6573 -Wno-deprecated-declarations
6574 test_libudev_sym_LDADD = \
6578 $(test_libsystemd_sym_SOURCES) \
6579 $(test_libudev_sym_SOURCES)
6582 test-libsystemd-sym \
6587 cppcheck --enable=all -q $(top_srcdir)
6589 # Used to extract compile flags for YCM.
6594 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6597 tools/gdb-sd_dump_hashmaps.py