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 \
371 systemd-stdio-bridge \
375 src/kernel-install/kernel-install
377 dist_kernelinstall_SCRIPTS = \
378 src/kernel-install/50-depmod.install \
379 src/kernel-install/90-loaderentry.install
381 rootlibexec_PROGRAMS = \
383 systemd-cgroups-agent \
388 systemd-reply-password \
390 systemd-machine-id-commit \
395 systemd-socket-proxyd \
399 rootlibexec_PROGRAMS += \
403 systemgenerator_PROGRAMS = \
404 systemd-getty-generator \
405 systemd-fstab-generator \
406 systemd-system-update-generator \
407 systemd-debug-generator
409 dist_bashcompletion_DATA = \
410 shell-completion/bash/busctl \
411 shell-completion/bash/journalctl \
412 shell-completion/bash/systemd-analyze \
413 shell-completion/bash/systemd-cat \
414 shell-completion/bash/systemd-cgls \
415 shell-completion/bash/systemd-cgtop \
416 shell-completion/bash/systemd-delta \
417 shell-completion/bash/systemd-detect-virt \
418 shell-completion/bash/systemd-nspawn \
419 shell-completion/bash/systemd-run \
420 shell-completion/bash/udevadm \
421 shell-completion/bash/kernel-install
423 nodist_bashcompletion_DATA = \
424 shell-completion/bash/systemctl
426 dist_zshcompletion_DATA = \
427 shell-completion/zsh/_journalctl \
428 shell-completion/zsh/_udevadm \
429 shell-completion/zsh/_kernel-install \
430 shell-completion/zsh/_systemd-nspawn \
431 shell-completion/zsh/_systemd-analyze \
432 shell-completion/zsh/_systemd-run \
433 shell-completion/zsh/_sd_hosts_or_user_at_host \
434 shell-completion/zsh/_sd_outputmodes \
435 shell-completion/zsh/_sd_unit_files \
436 shell-completion/zsh/_systemd-delta \
437 shell-completion/zsh/_systemd
439 nodist_zshcompletion_DATA = \
440 shell-completion/zsh/_systemctl
443 shell-completion/bash/systemctl.in \
444 shell-completion/zsh/_systemctl.in
447 $(nodist_bashcompletion_DATA) \
448 $(nodist_zshcompletion_DATA)
451 sysctl.d/50-default.conf
453 dist_systemunit_DATA = \
454 units/graphical.target \
455 units/multi-user.target \
456 units/emergency.target \
457 units/sysinit.target \
462 units/local-fs.target \
463 units/local-fs-pre.target \
464 units/initrd.target \
465 units/initrd-fs.target \
466 units/initrd-root-fs.target \
467 units/remote-fs.target \
468 units/remote-fs-pre.target \
469 units/network.target \
470 units/network-pre.target \
471 units/network-online.target \
472 units/nss-lookup.target \
473 units/nss-user-lookup.target \
474 units/poweroff.target \
475 units/reboot.target \
476 units/rescue.target \
477 units/rpcbind.target \
478 units/time-sync.target \
479 units/shutdown.target \
481 units/umount.target \
482 units/sigpwr.target \
484 units/sockets.target \
485 units/timers.target \
487 units/suspend.target \
489 units/slices.target \
492 units/systemd-initctl.socket \
493 units/systemd-shutdownd.socket \
494 units/syslog.socket \
495 units/dev-hugepages.mount \
496 units/dev-mqueue.mount \
497 units/sys-kernel-config.mount \
498 units/sys-kernel-debug.mount \
499 units/sys-fs-fuse-connections.mount \
501 units/printer.target \
503 units/bluetooth.target \
504 units/smartcard.target \
505 units/systemd-ask-password-wall.path \
506 units/systemd-ask-password-console.path \
507 units/systemd-udevd-control.socket \
508 units/systemd-udevd-kernel.socket \
509 units/system-update.target \
510 units/initrd-switch-root.target \
511 units/machines.target
514 dist_systemunit_DATA += \
515 $(dist_systemunit_DATA_busnames)
518 dist_systemunit_DATA_busnames += \
519 units/busnames.target
521 nodist_systemunit_DATA = \
522 units/getty@.service \
523 units/serial-getty@.service \
524 units/console-shell.service \
525 units/console-getty.service \
526 units/container-getty@.service \
527 units/systemd-initctl.service \
528 units/systemd-shutdownd.service \
529 units/systemd-remount-fs.service \
530 units/systemd-ask-password-wall.service \
531 units/systemd-ask-password-console.service \
532 units/systemd-sysctl.service \
533 units/emergency.service \
534 units/rescue.service \
535 units/user@.service \
536 units/systemd-suspend.service \
537 units/systemd-halt.service \
538 units/systemd-poweroff.service \
539 units/systemd-reboot.service \
540 units/systemd-kexec.service \
541 units/systemd-fsck@.service \
542 units/systemd-fsck-root.service \
543 units/systemd-machine-id-commit.service \
544 units/systemd-udevd.service \
545 units/systemd-udev-trigger.service \
546 units/systemd-udev-settle.service \
547 units/systemd-hwdb-update.service \
548 units/debug-shell.service \
549 units/initrd-parse-etc.service \
550 units/initrd-cleanup.service \
551 units/initrd-udevadm-cleanup-db.service \
552 units/initrd-switch-root.service \
553 units/systemd-nspawn@.service \
554 units/systemd-update-done.service
557 nodist_systemunit_DATA += \
558 units/systemd-update-utmp.service \
559 units/systemd-update-utmp-runlevel.service
562 dist_userunit_DATA = \
563 units/user/basic.target \
564 units/user/default.target \
565 units/user/exit.target
567 nodist_userunit_DATA = \
568 units/user/systemd-exit.service
570 dist_systempreset_DATA = \
571 system-preset/90-systemd.preset
574 units/getty@.service.m4 \
575 units/serial-getty@.service.m4 \
576 units/console-shell.service.m4.in \
577 units/console-getty.service.m4.in \
578 units/container-getty@.service.m4.in \
579 units/rescue.service.in \
580 units/systemd-initctl.service.in \
581 units/systemd-shutdownd.service.in \
582 units/systemd-remount-fs.service.in \
583 units/systemd-update-utmp.service.in \
584 units/systemd-update-utmp-runlevel.service.in \
585 units/systemd-ask-password-wall.service.in \
586 units/systemd-ask-password-console.service.in \
587 units/systemd-sysctl.service.in \
588 units/emergency.service.in \
589 units/systemd-halt.service.in \
590 units/systemd-poweroff.service.in \
591 units/systemd-reboot.service.in \
592 units/systemd-kexec.service.in \
593 units/user/systemd-exit.service.in \
594 units/systemd-fsck@.service.in \
595 units/systemd-fsck-root.service.in \
596 units/systemd-machine-id-commit.service.in \
597 units/user@.service.m4.in \
598 units/debug-shell.service.in \
599 units/systemd-suspend.service.in \
600 units/quotaon.service.in \
601 units/initrd-parse-etc.service.in \
602 units/initrd-cleanup.service.in \
603 units/initrd-udevadm-cleanup-db.service.in \
604 units/initrd-switch-root.service.in \
605 units/systemd-nspawn@.service.in \
606 units/systemd-update-done.service.in
609 units/console-shell.service.m4 \
610 units/console-getty.service.m4 \
611 units/container-getty@.service.m4 \
612 units/user@.service.m4
615 nodist_systemunit_DATA += \
616 units/rc-local.service \
617 units/halt-local.service
619 systemgenerator_PROGRAMS += \
620 systemd-sysv-generator \
621 systemd-rc-local-generator
625 units/rc-local.service.in \
626 units/halt-local.service.in
628 # automake is broken and can't handle files with a dash in front
629 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
631 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
633 units-uninstall-hook:
634 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
636 INSTALL_DATA_HOOKS += units-install-hook
637 UNINSTALL_DATA_HOOKS += units-uninstall-hook
646 src/libsystemd/sd-bus/PORTING-DBUS1 \
647 src/libsystemd/sd-bus/DIFFERENCES \
648 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
650 @INTLTOOL_POLICY_RULE@
652 # ------------------------------------------------------------------------------
657 include Makefile-man.am
659 .PHONY: man update-man-list
660 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
663 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
665 ${XML_FILES:.xml=.html}
667 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
684 $(AM_V_at)$(MKDIR_P) $(dir $@)
685 $(AM_V_LN)$(LN_S) -f ../../man $@
694 man/index.html: man/systemd.index.html
695 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
703 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
704 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
705 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
707 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
708 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
709 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
710 @echo "Makefile-man.am has been regenerated"
712 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
713 $(AM_V_at)$(MKDIR_P) $(dir $@)
714 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
716 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
717 $(AM_V_at)$(MKDIR_P) $(dir $@)
718 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
721 man/systemd.index.xml \
723 man/systemd.directives.xml \
724 man/glib-event-glue.c
727 man/systemd.index.xml \
728 man/systemd.directives.xml
739 tools/make-man-index.py \
740 tools/make-directive-index.py \
743 # ------------------------------------------------------------------------------
744 noinst_LTLIBRARIES += \
747 libsystemd_shared_la_SOURCES = \
748 src/shared/capability.c \
749 src/shared/capability.h \
750 src/shared/linux/auto_dev-ioctl.h \
751 src/shared/ioprio.h \
752 src/shared/missing.h \
753 src/shared/initreq.h \
754 src/shared/securebits.h \
755 src/shared/special.h \
757 src/shared/unaligned.h \
760 src/shared/sparse-endian.h \
761 src/shared/refcnt.h \
762 src/shared/udev-util.h \
763 src/shared/device-nodes.c \
764 src/shared/device-nodes.h \
769 src/shared/architecture.c \
770 src/shared/architecture.h \
771 src/shared/efivars.c \
772 src/shared/efivars.h \
773 src/shared/fstab-util.c \
774 src/shared/fstab-util.h \
775 src/shared/path-util.c \
776 src/shared/path-util.h \
777 src/shared/time-util.c \
778 src/shared/time-util.h \
779 src/shared/locale-util.c \
780 src/shared/locale-util.h \
781 src/shared/mempool.c \
782 src/shared/mempool.h \
783 src/shared/hashmap.c \
784 src/shared/hashmap.h \
785 src/shared/siphash24.c \
786 src/shared/siphash24.h \
792 src/shared/sleep-config.c \
793 src/shared/sleep-config.h \
796 src/shared/env-util.c \
797 src/shared/env-util.h \
798 src/shared/strbuf.c \
799 src/shared/strbuf.h \
800 src/shared/strxcpyx.c \
801 src/shared/strxcpyx.h \
802 src/shared/conf-parser.c \
803 src/shared/conf-parser.h \
806 src/shared/ratelimit.h \
807 src/shared/ratelimit.c \
808 src/shared/exit-status.c \
809 src/shared/exit-status.h \
812 src/shared/gunicode.c \
813 src/shared/gunicode.h \
816 src/shared/socket-util.c \
817 src/shared/socket-util.h \
818 src/shared/in-addr-util.c \
819 src/shared/in-addr-util.h \
820 src/shared/ether-addr-util.h \
821 src/shared/conf-files.c \
822 src/shared/conf-files.h \
823 src/shared/cgroup-util.c \
824 src/shared/cgroup-util.h \
825 src/shared/cgroup-show.c \
826 src/shared/cgroup-show.h \
827 src/shared/unit-name.c \
828 src/shared/unit-name.h \
829 src/shared/utmp-wtmp.h \
830 src/shared/watchdog.c \
831 src/shared/watchdog.h \
832 src/shared/spawn-ask-password-agent.c \
833 src/shared/spawn-ask-password-agent.h \
834 src/shared/replace-var.c \
835 src/shared/replace-var.h \
836 src/shared/spawn-polkit-agent.c \
837 src/shared/spawn-polkit-agent.h \
838 src/shared/clock-util.c \
839 src/shared/clock-util.h \
840 src/shared/time-dst.c \
841 src/shared/time-dst.h \
842 src/shared/calendarspec.c \
843 src/shared/calendarspec.h \
844 src/shared/fileio.c \
845 src/shared/fileio.h \
846 src/shared/output-mode.h \
847 src/shared/MurmurHash2.c \
848 src/shared/MurmurHash2.h \
849 src/shared/acpi-fpdt.h \
850 src/shared/acpi-fpdt.c \
851 src/shared/boot-timestamps.h \
852 src/shared/boot-timestamps.c \
855 src/shared/smack-util.c \
856 src/shared/smack-util.h \
857 src/shared/apparmor-util.c \
858 src/shared/apparmor-util.h \
859 src/shared/ima-util.c \
860 src/shared/ima-util.h \
861 src/shared/ptyfwd.c \
862 src/shared/ptyfwd.h \
863 src/shared/errno-list.c \
864 src/shared/errno-list.h \
865 src/shared/af-list.c \
866 src/shared/af-list.h \
867 src/shared/arphrd-list.c \
868 src/shared/arphrd-list.h \
869 src/shared/cap-list.c \
870 src/shared/cap-list.h \
877 src/shared/bus-label.c \
878 src/shared/bus-label.h \
880 src/shared/clean-ipc.h \
881 src/shared/clean-ipc.c \
882 src/shared/login-shared.c \
883 src/shared/login-shared.h \
886 src/shared/barrier.c \
887 src/shared/barrier.h \
892 src/shared/base-filesystem.c \
893 src/shared/base-filesystem.h \
894 src/shared/memfd-util.c \
895 src/shared/memfd-util.h \
896 src/shared/uid-range.c \
897 src/shared/uid-range.h \
898 src/shared/nss-util.h \
901 src/shared/sigbus.c \
902 src/shared/sigbus.h \
906 libsystemd_shared_la_SOURCES += \
907 src/shared/utmp-wtmp.c
910 nodist_libsystemd_shared_la_SOURCES = \
911 src/shared/errno-from-name.h \
912 src/shared/errno-to-name.h \
913 src/shared/af-from-name.h \
914 src/shared/af-to-name.h \
915 src/shared/arphrd-from-name.h \
916 src/shared/arphrd-to-name.h \
917 src/shared/cap-from-name.h \
918 src/shared/cap-to-name.h
920 libsystemd_shared_la_CFLAGS = \
926 libsystemd_shared_la_LIBADD = \
930 # ------------------------------------------------------------------------------
931 noinst_LTLIBRARIES += \
934 libsystemd_units_la_SOURCES = \
935 src/shared/install.c \
936 src/shared/install.h \
937 src/shared/install-printf.c \
938 src/shared/install-printf.h \
939 src/shared/path-lookup.c \
940 src/shared/path-lookup.h \
941 src/shared/specifier.c \
942 src/shared/specifier.h
944 # ------------------------------------------------------------------------------
945 noinst_LTLIBRARIES += \
948 libsystemd_label_la_SOURCES = \
949 src/shared/socket-label.c \
952 src/shared/selinux-util.c \
953 src/shared/selinux-util.h \
954 src/shared/mkdir-label.c \
955 src/shared/ask-password-api.c \
956 src/shared/ask-password-api.h \
957 src/shared/switch-root.h \
958 src/shared/switch-root.c \
959 src/shared/fileio-label.c \
960 src/shared/fileio-label.h \
961 src/shared/dev-setup.c \
962 src/shared/dev-setup.h \
963 src/shared/dropin.c \
964 src/shared/dropin.h \
965 src/shared/condition.c \
966 src/shared/condition.h \
967 src/shared/generator.h \
968 src/shared/generator.c \
969 src/shared/btrfs-util.c \
970 src/shared/btrfs-util.h \
971 src/shared/btrfs-ctree.h \
972 src/shared/machine-image.c \
973 src/shared/machine-image.h \
977 libsystemd_label_la_CFLAGS = \
981 libsystemd_label_la_LIBADD = \
984 # -----------------------------------------------------------------------------
987 noinst_LTLIBRARIES += \
990 libsystemd_fw_la_SOURCES = \
991 src/shared/fw-util.h \
994 libsystemd_fw_la_CFLAGS = \
998 libsystemd_fw_la_LIBADD = \
1002 # -----------------------------------------------------------------------------
1005 dist_systemunit_DATA += \
1006 units/ldconfig.service
1008 SYSINIT_TARGET_WANTS += \
1012 # ------------------------------------------------------------------------------
1015 noinst_LTLIBRARIES += \
1016 libsystemd-seccomp.la
1018 libsystemd_seccomp_la_SOURCES = \
1019 src/shared/seccomp-util.h \
1020 src/shared/seccomp-util.c
1022 libsystemd_seccomp_la_CFLAGS = \
1026 libsystemd_seccomp_la_LIBADD = \
1030 # ------------------------------------------------------------------------------
1031 noinst_LTLIBRARIES += \
1034 libsystemd_logs_la_SOURCES = \
1035 src/shared/logs-show.c \
1036 src/shared/logs-show.h
1038 # ------------------------------------------------------------------------------
1040 noinst_LTLIBRARIES += \
1043 libsystemd_acl_la_SOURCES = \
1044 src/shared/acl-util.c \
1045 src/shared/acl-util.h
1047 libsystemd_acl_la_CFLAGS = \
1051 libsystemd_acl_la_LIBADD = \
1055 # ------------------------------------------------------------------------------
1056 noinst_LTLIBRARIES += \
1059 libsystemd_core_la_SOURCES = \
1062 src/core/unit-printf.c \
1063 src/core/unit-printf.h \
1066 src/core/manager.c \
1067 src/core/manager.h \
1068 src/core/transaction.c \
1069 src/core/transaction.h \
1070 src/core/load-fragment.c \
1071 src/core/load-fragment.h \
1072 src/core/service.c \
1073 src/core/service.h \
1076 src/core/busname.c \
1077 src/core/busname.h \
1078 src/core/bus-endpoint.c \
1079 src/core/bus-endpoint.h \
1080 src/core/bus-policy.c \
1081 src/core/bus-policy.h \
1084 src/core/snapshot.c \
1085 src/core/snapshot.h \
1090 src/core/automount.c \
1091 src/core/automount.h \
1102 src/core/load-dropin.c \
1103 src/core/load-dropin.h \
1104 src/core/execute.c \
1105 src/core/execute.h \
1110 src/core/dbus-manager.c \
1111 src/core/dbus-manager.h \
1112 src/core/dbus-unit.c \
1113 src/core/dbus-unit.h \
1114 src/core/dbus-job.c \
1115 src/core/dbus-job.h \
1116 src/core/dbus-service.c \
1117 src/core/dbus-service.h \
1118 src/core/dbus-socket.c \
1119 src/core/dbus-socket.h \
1120 src/core/dbus-busname.c \
1121 src/core/dbus-busname.h \
1122 src/core/dbus-target.c \
1123 src/core/dbus-target.h \
1124 src/core/dbus-snapshot.c \
1125 src/core/dbus-snapshot.h \
1126 src/core/dbus-device.c \
1127 src/core/dbus-device.h \
1128 src/core/dbus-mount.c \
1129 src/core/dbus-mount.h \
1130 src/core/dbus-automount.c \
1131 src/core/dbus-automount.h \
1132 src/core/dbus-swap.c \
1133 src/core/dbus-swap.h \
1134 src/core/dbus-timer.c \
1135 src/core/dbus-timer.h \
1136 src/core/dbus-path.c \
1137 src/core/dbus-path.h \
1138 src/core/dbus-slice.c \
1139 src/core/dbus-slice.h \
1140 src/core/dbus-scope.c \
1141 src/core/dbus-scope.h \
1142 src/core/dbus-execute.c \
1143 src/core/dbus-execute.h \
1144 src/core/dbus-kill.c \
1145 src/core/dbus-kill.h \
1146 src/core/dbus-cgroup.c \
1147 src/core/dbus-cgroup.h \
1150 src/core/selinux-access.c \
1151 src/core/selinux-access.h \
1152 src/core/selinux-setup.c \
1153 src/core/selinux-setup.h \
1154 src/core/smack-setup.c \
1155 src/core/smack-setup.h \
1156 src/core/ima-setup.c \
1157 src/core/ima-setup.h \
1158 src/core/locale-setup.h \
1159 src/core/locale-setup.c \
1160 src/core/hostname-setup.c \
1161 src/core/hostname-setup.h \
1162 src/core/machine-id-setup.c \
1163 src/core/machine-id-setup.h \
1164 src/core/mount-setup.c \
1165 src/core/mount-setup.h \
1166 src/core/kmod-setup.c \
1167 src/core/kmod-setup.h \
1168 src/core/loopback-setup.h \
1169 src/core/loopback-setup.c \
1170 src/core/namespace.c \
1171 src/core/namespace.h \
1172 src/core/killall.h \
1173 src/core/killall.c \
1174 src/core/audit-fd.c \
1175 src/core/audit-fd.h \
1176 src/core/show-status.c \
1177 src/core/show-status.h \
1178 src/core/failure-action.c \
1179 src/core/failure-action.h
1181 nodist_libsystemd_core_la_SOURCES = \
1182 src/core/load-fragment-gperf.c \
1183 src/core/load-fragment-gperf-nulstr.c
1185 libsystemd_core_la_CFLAGS = \
1190 $(APPARMOR_CFLAGS) \
1195 libsystemd_core_la_LIBADD = \
1196 libsystemd-units.la \
1197 libsystemd-label.la \
1198 libudev-internal.la \
1199 libsystemd-shared.la \
1200 libsystemd-internal.la \
1209 libsystemd_core_la_LIBADD += \
1210 libsystemd-seccomp.la
1213 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1214 $(AM_V_at)$(MKDIR_P) $(dir $@)
1215 $(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 ";" }' < $< > $@
1218 src/core/load-fragment-gperf.gperf.m4
1221 src/core/load-fragment-gperf.gperf \
1222 src/core/load-fragment-gperf.c \
1223 src/core/load-fragment-gperf-nulstr.c \
1224 src/shared/errno-list.txt \
1225 src/shared/errno-from-name.gperf \
1226 src/shared/af-list.txt \
1227 src/shared/af-from-name.gperf \
1228 src/shared/arphrd-list.txt \
1229 src/shared/arphrd-from-name.gperf \
1230 src/shared/cap-list.txt \
1231 src/shared/cap-from-name.gperf \
1232 src/resolve/dns_type-list.txt \
1233 src/resolve/dns_type-from-name.gperf
1236 src/shared/errno-from-name.h \
1237 src/shared/errno-to-name.h \
1238 src/shared/af-from-name.h \
1239 src/shared/af-to-name.h \
1240 src/shared/arphrd-from-name.h \
1241 src/shared/arphrd-to-name.h \
1242 src/shared/cap-from-name.h \
1243 src/shared/cap-to-name.h \
1244 src/resolve/dns_type-from-name.h \
1245 src/resolve/dns_type-to-name.h
1247 %-from-name.gperf: %-list.txt
1248 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1250 %-from-name.h: %-from-name.gperf
1251 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1254 src/shared/errno-list.txt:
1255 $(AM_V_at)$(MKDIR_P) $(dir $@)
1256 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1258 src/shared/errno-to-name.h: src/shared/errno-list.txt
1259 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1262 src/shared/af-list.txt:
1263 $(AM_V_at)$(MKDIR_P) $(dir $@)
1264 $(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; }' >$@
1266 src/shared/af-to-name.h: src/shared/af-list.txt
1267 $(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 "};"}' <$< >$@
1270 src/shared/arphrd-list.txt:
1271 $(AM_V_at)$(MKDIR_P) $(dir $@)
1272 $(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_//' >$@
1274 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1275 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1277 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1278 $(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 }' <$< >$@
1281 src/shared/cap-list.txt:
1282 $(AM_V_at)$(MKDIR_P) $(dir $@)
1283 $(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 >$@
1285 src/shared/cap-to-name.h: src/shared/cap-list.txt
1286 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1288 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1289 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1291 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1292 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1295 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1296 $(AM_V_at)$(MKDIR_P) $(dir $@)
1297 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1299 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1300 $(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" }' <$< >$@
1302 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1303 $(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 }' <$< >$@
1305 # ------------------------------------------------------------------------------
1314 libsystemd-core.la \
1317 dist_pkgsysconf_DATA += \
1318 src/core/system.conf \
1321 dist_dbuspolicy_DATA += \
1322 src/core/org.freedesktop.systemd1.conf
1324 dist_dbussystemservice_DATA += \
1325 src/core/org.freedesktop.systemd1.service
1327 polkitpolicy_in_in_files += \
1328 src/core/org.freedesktop.systemd1.policy.in.in
1330 pkgconfiglib_DATA += \
1333 nodist_rpmmacros_DATA = \
1334 src/core/macros.systemd
1337 src/core/systemd.pc.in \
1338 src/core/macros.systemd.in
1341 src/core/macros.systemd \
1342 src/core/org.freedesktop.systemd1.policy.in
1344 # ------------------------------------------------------------------------------
1394 test-strip-tab-ansi \
1430 test/daughter.service \
1435 test/grandchild.service \
1437 test/hello-after-sleep.target \
1438 test/hello.service \
1440 test/parent-deep.slice \
1443 test/sched_idle_bad.service \
1444 test/sched_idle_ok.service \
1445 test/sched_rr_bad.service \
1446 test/sched_rr_change.service \
1447 test/sched_rr_ok.service \
1448 test/shutdown.target \
1449 test/sleep.service \
1450 test/sockets.target \
1452 test/sysinit.target \
1453 test/testsuite.target \
1454 test/timers.target \
1455 test/unstoppable.service \
1456 test/path-changed.service \
1457 test/path-directorynotempty.service \
1458 test/path-existsglob.service \
1459 test/path-exists.service \
1460 test/path-makedirectory.service \
1461 test/path-modified.service \
1462 test/path-mycustomunit.service \
1463 test/path-service.service \
1464 test/path-changed.path \
1465 test/path-directorynotempty.path \
1466 test/path-existsglob.path \
1467 test/path-exists.path \
1468 test/path-makedirectory.path \
1469 test/path-modified.path \
1470 test/path-unit.path \
1471 test/exec-environment-empty.service \
1472 test/exec-environment-multiple.service \
1473 test/exec-environment.service \
1474 test/exec-group.service \
1475 test/exec-ignoresigpipe-no.service \
1476 test/exec-ignoresigpipe-yes.service \
1477 test/exec-personality-x86-64.service \
1478 test/exec-personality-x86.service \
1479 test/exec-privatedevices-no.service \
1480 test/exec-privatedevices-yes.service \
1481 test/exec-privatetmp-no.service \
1482 test/exec-privatetmp-yes.service \
1483 test/exec-systemcallerrornumber.service \
1484 test/exec-systemcallfilter-failing2.service \
1485 test/exec-systemcallfilter-failing.service \
1486 test/exec-systemcallfilter-not-failing2.service \
1487 test/exec-systemcallfilter-not-failing.service \
1488 test/exec-user.service \
1489 test/exec-workingdirectory.service \
1490 test/exec-umask-0177.service \
1491 test/exec-umask-default.service \
1492 test/bus-policy/hello.conf \
1493 test/bus-policy/methods.conf \
1494 test/bus-policy/ownerships.conf \
1495 test/bus-policy/signals.conf \
1496 test/bus-policy/check-own-rules.conf \
1497 test/bus-policy/many-rules.conf \
1498 test/bus-policy/test.conf
1502 src/test/test-helper.h
1504 test_device_nodes_SOURCES = \
1505 src/test/test-device-nodes.c
1507 test_device_nodes_LDADD = \
1508 libsystemd-shared.la
1510 test_engine_SOURCES = \
1511 src/test/test-engine.c
1513 test_engine_CFLAGS = \
1517 test_engine_LDADD = \
1518 libsystemd-core.la \
1521 test_job_type_SOURCES = \
1522 src/test/test-job-type.c
1524 test_job_type_CFLAGS = \
1528 test_job_type_LDADD = \
1529 libsystemd-core.la \
1542 test_loopback_SOURCES = \
1543 src/test/test-loopback.c
1545 test_loopback_LDADD = \
1548 test_hostname_SOURCES = \
1549 src/test/test-hostname.c
1551 test_hostname_LDADD = \
1558 test_boot_timestamp_SOURCES = \
1559 src/test/test-boot-timestamps.c
1561 test_boot_timestamp_LDADD = \
1562 libsystemd-shared.la
1565 test_unit_name_SOURCES = \
1566 src/test/test-unit-name.c
1568 test_unit_name_CFLAGS = \
1572 test_unit_name_LDADD = \
1573 libsystemd-core.la \
1576 test_unit_file_SOURCES = \
1577 src/test/test-unit-file.c
1579 test_unit_file_CFLAGS = \
1583 test_unit_file_LDADD = \
1584 libsystemd-core.la \
1587 test_utf8_SOURCES = \
1588 src/test/test-utf8.c
1591 libsystemd-shared.la
1593 test_capability_SOURCES = \
1594 src/test/test-capability.c
1596 test_capability_LDADD = \
1597 libsystemd-shared.la
1599 test_async_SOURCES = \
1600 src/test/test-async.c
1602 test_async_LDADD = \
1603 libsystemd-shared.la
1605 test_locale_util_SOURCES = \
1606 src/test/test-locale-util.c
1608 test_locale_util_LDADD = \
1609 libsystemd-shared.la
1611 test_copy_SOURCES = \
1612 src/test/test-copy.c
1615 libsystemd-label.la \
1616 libsystemd-shared.la
1618 test_sigbus_SOURCES = \
1619 src/test/test-sigbus.c
1621 test_sigbus_LDADD = \
1622 libsystemd-shared.la
1624 test_condition_SOURCES = \
1625 src/test/test-condition.c
1627 test_condition_LDADD = \
1628 libsystemd-label.la \
1629 libsystemd-internal.la \
1630 libsystemd-shared.la
1632 test_fdset_SOURCES = \
1633 src/test/test-fdset.c
1635 test_fdset_LDADD = \
1636 libsystemd-shared.la \
1637 libsystemd-internal.la
1639 test_fstab_util_SOURCES = \
1640 src/test/test-fstab-util.c
1642 test_fstab_util_LDADD = \
1643 libsystemd-shared.la
1645 test_ratelimit_SOURCES = \
1646 src/test/test-ratelimit.c
1648 test_ratelimit_LDADD = \
1649 libsystemd-shared.la
1651 test_util_SOURCES = \
1652 src/test/test-util.c
1655 libsystemd-shared.la
1657 test_path_lookup_SOURCES = \
1658 src/test/test-path-lookup.c
1660 test_path_lookup_LDADD = \
1662 libsystemd-units.la \
1663 libsystemd-shared.la
1665 test_uid_range_SOURCES = \
1666 src/test/test-uid-range.c
1668 test_uid_range_LDADD = \
1669 libsystemd-shared.la
1671 test_cap_list_SOURCES = \
1672 src/test/test-cap-list.c
1674 test_cap_list_LDADD = \
1675 libsystemd-shared.la
1677 test_socket_util_SOURCES = \
1678 src/test/test-socket-util.c
1680 test_socket_util_LDADD = \
1681 libsystemd-shared.la
1683 test_ring_SOURCES = \
1684 src/test/test-ring.c
1687 libsystemd-shared.la
1689 test_barrier_SOURCES = \
1690 src/test/test-barrier.c
1692 test_barrier_LDADD = \
1693 libsystemd-shared.la
1695 test_pty_SOURCES = \
1701 test_tmpfiles_SOURCES = \
1702 src/test/test-tmpfiles.c
1704 test_tmpfiles_LDADD = \
1705 libsystemd-shared.la
1707 test_namespace_SOURCES = \
1708 src/test/test-namespace.c
1710 test_verbs_SOURCES = \
1711 src/test/test-verbs.c
1713 test_verbs_LDADD = \
1714 libsystemd-shared.la
1716 test_namespace_LDADD = \
1720 src/test/test-hashmap-ordered.c
1723 src/test/test-hashmap-ordered.c
1725 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1726 $(AM_V_at)$(MKDIR_P) $(dir $@)
1727 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1728 { if (!match($$0, "^#include")) \
1729 gsub(/hashmap/, "ordered_hashmap"); \
1730 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1731 gsub(/Hashmap/, "OrderedHashmap"); \
1734 nodist_test_hashmap_SOURCES = \
1735 src/test/test-hashmap-ordered.c
1737 test_hashmap_SOURCES = \
1738 src/test/test-hashmap.c \
1739 src/test/test-hashmap-plain.c
1741 test_hashmap_LDADD = \
1742 libsystemd-shared.la
1744 test_set_SOURCES = \
1748 libsystemd-shared.la
1750 test_xml_SOURCES = \
1754 libsystemd-shared.la
1756 test_json_SOURCES = \
1757 src/test/test-json.c
1760 libsystemd-shared.la
1762 test_list_SOURCES = \
1763 src/test/test-list.c
1766 libsystemd-shared.la
1768 test_unaligned_LDADD = \
1769 libsystemd-shared.la
1771 test_unaligned_SOURCES = \
1772 src/test/test-unaligned.c
1774 test_tables_SOURCES = \
1775 src/test/test-tables.c \
1776 src/shared/test-tables.h \
1777 src/bus-proxyd/bus-xml-policy.c \
1778 src/bus-proxyd/bus-xml-policy.h \
1779 src/journal/journald-server.c \
1780 src/journal/journald-server.h
1782 test_tables_CPPFLAGS = \
1784 -I$(top_srcdir)/src/bus-proxyd
1786 test_tables_CFLAGS = \
1790 test_tables_LDADD = \
1791 libsystemd-logs.la \
1792 libsystemd-journal-internal.la \
1793 libsystemd-journal-core.la \
1794 libsystemd-core.la \
1798 test_prioq_SOURCES = \
1799 src/test/test-prioq.c
1801 test_prioq_LDADD = \
1802 libsystemd-shared.la
1804 test_fileio_SOURCES = \
1805 src/test/test-fileio.c
1807 test_fileio_LDADD = \
1808 libsystemd-shared.la
1810 test_time_SOURCES = \
1811 src/test/test-time.c
1814 libsystemd-shared.la
1816 test_architecture_SOURCES = \
1817 src/test/test-architecture.c
1819 test_architecture_LDADD = \
1820 libsystemd-shared.la
1822 test_log_SOURCES = \
1826 libsystemd-shared.la
1828 test_ipcrm_SOURCES = \
1829 src/test/test-ipcrm.c
1831 test_ipcrm_LDADD = \
1832 libsystemd-shared.la \
1835 test_btrfs_SOURCES = \
1836 src/test/test-btrfs.c
1838 test_btrfs_LDADD = \
1839 libsystemd-label.la \
1840 libsystemd-shared.la
1843 test_fw_util_SOURCES = \
1844 src/test/test-fw-util.c
1846 test_fw_util_CFLAGS = \
1850 test_fw_util_LDADD = \
1852 libsystemd-shared.la \
1856 test_rtnl_manual_SOURCES = \
1857 src/test/test-rtnl-manual.c
1859 test_rtnl_manual_CFLAGS = \
1863 test_rtnl_manual_LDADD = \
1864 libsystemd-internal.la \
1865 libsystemd-shared.la \
1868 test_ellipsize_SOURCES = \
1869 src/test/test-ellipsize.c
1871 test_ellipsize_LDADD = \
1872 libsystemd-shared.la
1874 test_date_SOURCES = \
1875 src/test/test-date.c
1878 libsystemd-shared.la
1880 test_sleep_SOURCES = \
1881 src/test/test-sleep.c
1883 test_sleep_LDADD = \
1886 test_replace_var_SOURCES = \
1887 src/test/test-replace-var.c
1889 test_replace_var_LDADD = \
1890 libsystemd-shared.la
1892 test_calendarspec_SOURCES = \
1893 src/test/test-calendarspec.c
1895 test_calendarspec_LDADD = \
1896 libsystemd-shared.la
1898 test_strip_tab_ansi_SOURCES = \
1899 src/test/test-strip-tab-ansi.c
1901 test_strip_tab_ansi_LDADD = \
1902 libsystemd-shared.la
1904 test_daemon_SOURCES = \
1905 src/test/test-daemon.c
1907 test_daemon_LDADD = \
1908 libsystemd-internal.la \
1909 libsystemd-shared.la
1911 test_cgroup_SOURCES = \
1912 src/test/test-cgroup.c
1914 test_cgroup_LDADD = \
1915 libsystemd-label.la \
1916 libsystemd-shared.la \
1917 libsystemd-internal.la
1919 test_cgroup_mask_SOURCES = \
1920 src/test/test-cgroup-mask.c
1922 test_cgroup_mask_CPPFLAGS = \
1925 test_cgroup_mask_CFLAGS = \
1929 test_cgroup_mask_LDADD = \
1930 libsystemd-core.la \
1933 test_cgroup_util_SOURCES = \
1934 src/test/test-cgroup-util.c
1936 test_cgroup_util_LDADD = \
1937 libsystemd-label.la \
1938 libsystemd-internal.la \
1939 libsystemd-shared.la
1941 test_env_replace_SOURCES = \
1942 src/test/test-env-replace.c
1944 test_env_replace_LDADD = \
1945 libsystemd-shared.la
1947 test_strbuf_SOURCES = \
1948 src/test/test-strbuf.c
1950 test_strbuf_LDADD = \
1951 libsystemd-shared.la
1953 test_strv_SOURCES = \
1954 src/test/test-strv.c
1957 libsystemd-units.la \
1958 libsystemd-internal.la \
1959 libsystemd-shared.la
1961 test_path_util_SOURCES = \
1962 src/test/test-path-util.c
1964 test_path_util_LDADD = \
1965 libsystemd-shared.la
1967 test_path_SOURCES = \
1968 src/test/test-path.c
1970 test_path_CFLAGS = \
1976 test_execute_SOURCES = \
1977 src/test/test-execute.c
1979 test_execute_CFLAGS = \
1982 test_execute_LDADD = \
1985 test_strxcpyx_SOURCES = \
1986 src/test/test-strxcpyx.c
1988 test_strxcpyx_LDADD = \
1989 libsystemd-shared.la
1991 test_install_SOURCES = \
1992 src/test/test-install.c
1994 test_install_LDADD = \
1995 libsystemd-units.la \
1996 libsystemd-label.la \
1997 libsystemd-shared.la \
1998 libsystemd-internal.la
2000 test_watchdog_SOURCES = \
2001 src/test/test-watchdog.c
2003 test_watchdog_LDADD = \
2004 libsystemd-shared.la
2006 test_sched_prio_SOURCES = \
2007 src/test/test-sched-prio.c
2009 test_sched_prio_CPPFLAGS = \
2012 test_sched_prio_CFLAGS = \
2016 test_sched_prio_LDADD = \
2017 libsystemd-core.la \
2020 test_conf_files_SOURCES = \
2021 src/test/test-conf-files.c
2023 test_conf_files_LDADD = \
2024 libsystemd-shared.la
2026 test_bus_policy_SOURCES = \
2027 src/bus-proxyd/test-bus-xml-policy.c
2029 test_bus_policy_LDADD = \
2030 libsystemd-proxy.la \
2031 libsystemd-internal.la \
2032 libsystemd-shared.la
2034 # ------------------------------------------------------------------------------
2035 ## .PHONY so it always rebuilds it
2036 .PHONY: coverage lcov-run lcov-report coverage-sync
2038 # run lcov from scratch, always
2043 coverage_dir = coverage
2044 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2047 # reset run coverage tests
2049 @rm -rf $(coverage_dir)
2050 lcov $(coverage_opts) --zerocounters
2053 # generate report based on current coverage data
2055 $(MKDIR_P) $(coverage_dir)
2056 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2057 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2058 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2059 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2060 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2062 # lcov doesn't work properly with vpath builds, make sure that bad
2063 # output is not uploaded by mistake.
2064 coverage-sync: coverage
2065 test "$(builddir)" = "$(srcdir)"
2066 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2069 lcov-run lcov-report:
2070 echo "Need to reconfigure with --enable-coverage"
2073 # ------------------------------------------------------------------------------
2074 systemd_analyze_SOURCES = \
2075 src/analyze/analyze.c \
2076 src/analyze/analyze-verify.c \
2077 src/analyze/analyze-verify.h
2079 systemd_verify_CFLAGS = \
2083 systemd_analyze_LDADD = \
2084 libsystemd-core.la \
2085 libsystemd-internal.la \
2086 libsystemd-shared.la \
2089 # ------------------------------------------------------------------------------
2090 systemd_initctl_SOURCES = \
2091 src/initctl/initctl.c
2093 systemd_initctl_LDADD = \
2094 libsystemd-internal.la \
2095 libsystemd-shared.la
2097 # ------------------------------------------------------------------------------
2098 systemd_update_utmp_SOURCES = \
2099 src/update-utmp/update-utmp.c
2101 systemd_update_utmp_CFLAGS = \
2105 systemd_update_utmp_LDADD = \
2106 libsystemd-internal.la \
2107 libsystemd-shared.la \
2110 # ------------------------------------------------------------------------------
2111 systemd_update_done_SOURCES = \
2112 src/update-done/update-done.c
2114 systemd_update_done_LDADD = \
2115 libsystemd-internal.la \
2116 libsystemd-label.la \
2117 libsystemd-shared.la
2119 # ------------------------------------------------------------------------------
2120 systemd_shutdownd_SOURCES = \
2121 src/shutdownd/shutdownd.c
2123 systemd_shutdownd_LDADD = \
2124 libsystemd-label.la \
2125 libsystemd-internal.la \
2126 libsystemd-shared.la
2129 src/systemd/sd-shutdown.h
2131 # ------------------------------------------------------------------------------
2132 systemd_shutdown_SOURCES = \
2135 src/core/shutdown.c \
2136 src/core/mount-setup.c \
2137 src/core/mount-setup.h \
2138 src/core/killall.h \
2141 systemd_shutdown_LDADD = \
2142 libsystemd-label.la \
2143 libudev-internal.la \
2144 libsystemd-shared.la
2146 # ------------------------------------------------------------------------------
2148 systemd_modules_load_SOURCES = \
2149 src/modules-load/modules-load.c
2151 systemd_modules_load_CFLAGS = \
2155 systemd_modules_load_LDADD = \
2156 libsystemd-shared.la \
2159 rootlibexec_PROGRAMS += \
2160 systemd-modules-load
2162 nodist_systemunit_DATA += \
2163 units/systemd-modules-load.service
2165 SYSINIT_TARGET_WANTS += \
2166 systemd-modules-load.service
2169 nodist_systemunit_DATA += \
2170 units/kmod-static-nodes.service
2172 SYSINIT_TARGET_WANTS += \
2173 kmod-static-nodes.service
2178 units/systemd-modules-load.service.in \
2179 units/kmod-static-nodes.service.in
2181 # ------------------------------------------------------------------------------
2183 systemd_tmpfiles_SOURCES = \
2184 src/tmpfiles/tmpfiles.c
2186 systemd_tmpfiles_LDADD = \
2187 libsystemd-units.la \
2188 libsystemd-label.la \
2189 libsystemd-internal.la \
2190 libsystemd-shared.la
2192 rootbin_PROGRAMS += \
2195 dist_systemunit_DATA += \
2196 units/systemd-tmpfiles-clean.timer
2198 nodist_systemunit_DATA += \
2199 units/systemd-tmpfiles-setup-dev.service \
2200 units/systemd-tmpfiles-setup.service \
2201 units/systemd-tmpfiles-clean.service
2203 nodist_tmpfiles_DATA = \
2206 dist_tmpfiles_DATA = \
2207 tmpfiles.d/systemd.conf \
2208 tmpfiles.d/systemd-nologin.conf \
2209 tmpfiles.d/tmp.conf \
2210 tmpfiles.d/x11.conf \
2214 dist_tmpfiles_DATA += \
2215 tmpfiles.d/legacy.conf
2218 SYSINIT_TARGET_WANTS += \
2219 systemd-tmpfiles-setup-dev.service \
2220 systemd-tmpfiles-setup.service
2222 dist_zshcompletion_DATA += \
2223 shell-completion/zsh/_systemd-tmpfiles
2225 TIMERS_TARGET_WANTS += \
2226 systemd-tmpfiles-clean.timer
2230 $(sysconfdir)/tmpfiles.d
2234 tmpfiles.d/etc.conf.m4 \
2235 units/systemd-tmpfiles-setup-dev.service.in \
2236 units/systemd-tmpfiles-setup.service.in \
2237 units/systemd-tmpfiles-clean.service.in
2242 # ------------------------------------------------------------------------------
2244 systemd_sysusers_SOURCES = \
2245 src/sysusers/sysusers.c
2247 systemd_sysusers_LDADD = \
2248 libsystemd-units.la \
2249 libsystemd-label.la \
2250 libsystemd-internal.la \
2251 libsystemd-shared.la
2253 rootbin_PROGRAMS += \
2256 nodist_systemunit_DATA += \
2257 units/systemd-sysusers.service
2259 SYSINIT_TARGET_WANTS += \
2260 systemd-sysusers.service
2262 dist_sysusers_DATA = \
2263 sysusers.d/systemd.conf
2265 nodist_sysusers_DATA = \
2266 sysusers.d/basic.conf
2269 units/systemd-sysusers.service.in \
2270 sysusers.d/basic.conf.in
2273 sysusers.d/basic.conf
2279 # ------------------------------------------------------------------------------
2280 dist_factory_etc_DATA = \
2281 factory/etc/nsswitch.conf
2284 dist_factory_pam_DATA = \
2285 factory/etc/pam.d/system-auth \
2286 factory/etc/pam.d/other
2289 # ------------------------------------------------------------------------------
2291 systemd_firstboot_SOURCES = \
2292 src/firstboot/firstboot.c
2294 systemd_firstboot_LDADD = \
2295 libsystemd-units.la \
2296 libsystemd-label.la \
2297 libsystemd-internal.la \
2298 libsystemd-shared.la \
2301 rootbin_PROGRAMS += \
2304 nodist_systemunit_DATA += \
2305 units/systemd-firstboot.service
2308 units/systemd-firstboot.service.in
2310 SYSINIT_TARGET_WANTS += \
2311 systemd-firstboot.service
2314 # ------------------------------------------------------------------------------
2315 systemd_machine_id_setup_SOURCES = \
2316 src/machine-id-setup/machine-id-setup-main.c \
2317 src/core/machine-id-setup.c \
2318 src/core/machine-id-setup.h
2320 systemd_machine_id_setup_LDADD = \
2321 libsystemd-label.la \
2322 libsystemd-internal.la \
2323 libsystemd-shared.la
2325 # ------------------------------------------------------------------------------
2326 systemd_sysctl_SOURCES = \
2329 systemd_sysctl_LDADD = \
2330 libsystemd-shared.la
2332 # ------------------------------------------------------------------------------
2333 systemd_sleep_SOURCES = \
2336 systemd_sleep_LDADD = \
2337 libsystemd-shared.la
2339 # ------------------------------------------------------------------------------
2340 systemd_fsck_SOURCES = \
2343 systemd_fsck_LDADD = \
2344 libsystemd-internal.la \
2345 libudev-internal.la \
2346 libsystemd-shared.la
2348 # ------------------------------------------------------------------------------
2349 systemd_machine_id_commit_SOURCES = \
2350 src/machine-id-commit/machine-id-commit.c \
2351 src/core/machine-id-setup.c \
2352 src/core/machine-id-setup.h
2354 systemd_machine_id_commit_LDADD = \
2355 libsystemd-label.la \
2356 libsystemd-internal.la \
2357 libsystemd-shared.la
2359 SYSINIT_TARGET_WANTS += \
2360 systemd-machine-id-commit.service
2362 # ------------------------------------------------------------------------------
2363 systemd_ac_power_SOURCES = \
2364 src/ac-power/ac-power.c
2366 systemd_ac_power_LDADD = \
2367 libudev-internal.la \
2368 libsystemd-shared.la
2370 # ------------------------------------------------------------------------------
2371 systemd_detect_virt_SOURCES = \
2372 src/detect-virt/detect-virt.c
2374 systemd_detect_virt_LDADD = \
2375 libsystemd-shared.la
2377 INSTALL_EXEC_HOOKS += \
2378 systemd-detect-virt-install-hook
2380 # ------------------------------------------------------------------------------
2381 systemd_delta_SOURCES = \
2384 systemd_delta_LDADD = \
2385 libsystemd-shared.la
2387 # ------------------------------------------------------------------------------
2388 systemd_getty_generator_SOURCES = \
2389 src/getty-generator/getty-generator.c
2391 systemd_getty_generator_LDADD = \
2392 libsystemd-label.la \
2393 libsystemd-shared.la
2395 # ------------------------------------------------------------------------------
2396 systemd_debug_generator_SOURCES = \
2397 src/debug-generator/debug-generator.c
2399 systemd_debug_generator_LDADD = \
2400 libsystemd-label.la \
2401 libsystemd-shared.la
2403 # ------------------------------------------------------------------------------
2404 systemd_fstab_generator_SOURCES = \
2405 src/fstab-generator/fstab-generator.c \
2406 src/core/mount-setup.c
2408 systemd_fstab_generator_LDADD = \
2409 libsystemd-label.la \
2410 libsystemd-shared.la
2412 # ------------------------------------------------------------------------------
2413 systemd_system_update_generator_SOURCES = \
2414 src/system-update-generator/system-update-generator.c
2416 systemd_system_update_generator_LDADD = \
2417 libsystemd-label.la \
2418 libsystemd-shared.la
2420 # ------------------------------------------------------------------------------
2422 systemgenerator_PROGRAMS += \
2423 systemd-hibernate-resume-generator
2425 rootlibexec_PROGRAMS += \
2426 systemd-hibernate-resume
2428 systemd_hibernate_resume_SOURCES = \
2429 src/hibernate-resume/hibernate-resume.c
2431 systemd_hibernate_resume_LDADD = \
2432 libsystemd-internal.la \
2433 libsystemd-shared.la
2435 systemd_hibernate_resume_generator_SOURCES = \
2436 src/hibernate-resume/hibernate-resume-generator.c
2438 systemd_hibernate_resume_generator_LDADD = \
2439 libsystemd-label.la \
2440 libsystemd-shared.la
2443 units/systemd-hibernate.service.in \
2444 units/systemd-hibernate-resume@.service.in \
2445 units/systemd-hybrid-sleep.service.in
2447 dist_systemunit_DATA += \
2448 units/hibernate.target \
2449 units/hybrid-sleep.target
2451 nodist_systemunit_DATA += \
2452 units/systemd-hibernate.service \
2453 units/systemd-hibernate-resume@.service \
2454 units/systemd-hybrid-sleep.service
2457 # ------------------------------------------------------------------------------
2459 systemgenerator_PROGRAMS += \
2460 systemd-efi-boot-generator
2462 systemd_efi_boot_generator_SOURCES = \
2463 src/efi-boot-generator/efi-boot-generator.c
2465 systemd_efi_boot_generator_LDADD = \
2466 libsystemd-label.la \
2467 libsystemd-shared.la
2469 # ------------------------------------------------------------------------------
2472 src/boot/boot-loader.h \
2473 src/boot/bootctl.c \
2474 src/boot/boot-loader.c \
2478 libsystemd-shared.la \
2479 libsystemd-internal.la
2484 dist_bashcompletion_DATA += \
2485 shell-completion/bash/bootctl
2487 dist_zshcompletion_DATA += \
2488 shell-completion/zsh/_bootctl
2492 # ------------------------------------------------------------------------------
2494 systemgenerator_PROGRAMS += \
2495 systemd-gpt-auto-generator
2497 systemd_gpt_auto_generator_SOURCES = \
2498 src/gpt-auto-generator/gpt-auto-generator.c \
2499 src/shared/blkid-util.h
2501 systemd_gpt_auto_generator_LDADD = \
2502 libsystemd-label.la \
2503 libsystemd-internal.la \
2504 libudev-internal.la \
2505 libsystemd-shared.la \
2508 systemd_gpt_auto_generator_CFLAGS = \
2513 # ------------------------------------------------------------------------------
2515 systemgenerator_PROGRAMS += \
2516 systemd-dbus1-generator
2518 systemd_dbus1_generator_SOURCES = \
2519 src/dbus1-generator/dbus1-generator.c
2521 systemd_dbus1_generator_LDADD = \
2522 libsystemd-label.la \
2523 libsystemd-internal.la \
2524 libsystemd-shared.la
2526 dbus1-generator-install-hook:
2527 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2528 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2529 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2531 dbus1-generator-uninstall-hook:
2532 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2534 dist_xinitrc_SCRIPTS = \
2535 xorg/50-systemd-user.sh
2537 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2538 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2541 # ------------------------------------------------------------------------------
2542 systemd_sysv_generator_SOURCES = \
2543 src/sysv-generator/sysv-generator.c
2545 systemd_sysv_generator_LDADD = \
2546 libsystemd-core.la \
2547 libsystemd-label.la \
2548 libsystemd-shared.la
2550 # ------------------------------------------------------------------------------
2551 systemd_rc_local_generator_SOURCES = \
2552 src/rc-local-generator/rc-local-generator.c
2554 systemd_rc_local_generator_LDADD = \
2555 libsystemd-label.la \
2556 libsystemd-shared.la
2558 # ------------------------------------------------------------------------------
2559 systemd_remount_fs_SOURCES = \
2560 src/remount-fs/remount-fs.c \
2561 src/core/mount-setup.c \
2562 src/core/mount-setup.h
2564 systemd_remount_fs_LDADD = \
2565 libsystemd-label.la \
2566 libsystemd-shared.la
2568 # ------------------------------------------------------------------------------
2569 systemd_cgroups_agent_SOURCES = \
2570 src/cgroups-agent/cgroups-agent.c
2572 systemd_cgroups_agent_LDADD = \
2573 libsystemd-internal.la \
2574 libsystemd-shared.la
2576 # ------------------------------------------------------------------------------
2577 systemd_escape_SOURCES = \
2580 systemd_escape_LDADD = \
2581 libsystemd-shared.la
2583 # -----------------------------------------------------------------------------
2584 systemctl_SOURCES = \
2585 src/systemctl/systemctl.c
2588 libsystemd-units.la \
2589 libsystemd-label.la \
2590 libsystemd-internal.la \
2591 libsystemd-logs.la \
2592 libsystemd-journal-internal.la \
2593 libsystemd-shared.la
2595 # ------------------------------------------------------------------------------
2596 systemd_notify_SOURCES = \
2599 systemd_notify_LDADD = \
2600 libsystemd-internal.la \
2601 libsystemd-shared.la
2603 # ------------------------------------------------------------------------------
2604 systemd_path_SOURCES = \
2607 systemd_path_LDADD = \
2608 libsystemd-internal.la \
2609 libsystemd-shared.la
2611 # ------------------------------------------------------------------------------
2612 systemd_ask_password_SOURCES = \
2613 src/ask-password/ask-password.c
2615 systemd_ask_password_LDADD = \
2616 libsystemd-label.la \
2617 libsystemd-shared.la
2619 # ------------------------------------------------------------------------------
2620 systemd_reply_password_SOURCES = \
2621 src/reply-password/reply-password.c
2623 systemd_reply_password_LDADD = \
2624 libsystemd-shared.la
2626 # ------------------------------------------------------------------------------
2627 systemd_cgls_SOURCES = \
2630 systemd_cgls_LDADD = \
2631 libsystemd-internal.la \
2632 libsystemd-shared.la
2634 # ------------------------------------------------------------------------------
2635 systemd_cgtop_SOURCES = \
2638 systemd_cgtop_LDADD = \
2639 libsystemd-shared.la
2641 # ------------------------------------------------------------------------------
2642 systemd_nspawn_SOURCES = \
2643 src/nspawn/nspawn.c \
2644 src/core/mount-setup.c \
2645 src/core/mount-setup.h \
2646 src/core/loopback-setup.c \
2647 src/core/loopback-setup.h
2649 systemd_nspawn_CFLAGS = \
2654 systemd_nspawn_LDADD = \
2655 libsystemd-label.la \
2656 libsystemd-internal.la \
2657 libudev-internal.la \
2658 libsystemd-shared.la \
2662 systemd_nspawn_LDADD += \
2663 libsystemd-seccomp.la \
2668 systemd_nspawn_LDADD += \
2672 # ------------------------------------------------------------------------------
2673 systemd_run_SOURCES = \
2676 systemd_run_LDADD = \
2677 libsystemd-label.la \
2678 libsystemd-internal.la \
2679 libsystemd-shared.la
2681 # ------------------------------------------------------------------------------
2682 noinst_LTLIBRARIES += \
2685 libsystemd_proxy_la_SOURCES = \
2686 src/bus-proxyd/bus-xml-policy.c \
2687 src/bus-proxyd/bus-xml-policy.h \
2688 src/bus-proxyd/driver.c \
2689 src/bus-proxyd/driver.h \
2690 src/bus-proxyd/proxy.c \
2691 src/bus-proxyd/proxy.h \
2692 src/bus-proxyd/synthesize.c \
2693 src/bus-proxyd/synthesize.h
2695 libsystemd_proxy_la_CFLAGS = \
2699 libsystemd_proxy_la_LIBADD = \
2700 libsystemd-internal.la \
2701 libsystemd-shared.la
2703 systemd_bus_proxyd_SOURCES = \
2704 src/bus-proxyd/bus-proxyd.c
2706 systemd_bus_proxyd_CFLAGS = \
2710 systemd_bus_proxyd_LDADD = \
2711 libsystemd-proxy.la \
2712 libsystemd-internal.la \
2713 libsystemd-shared.la
2715 systemd_stdio_bridge_SOURCES = \
2716 src/bus-proxyd/stdio-bridge.c
2718 systemd_stdio_bridge_LDADD = \
2719 libsystemd-proxy.la \
2720 libsystemd-internal.la \
2721 libsystemd-shared.la
2724 nodist_systemunit_DATA += \
2725 units/systemd-bus-proxyd.service
2727 dist_systemunit_DATA += \
2728 units/systemd-bus-proxyd.socket
2730 nodist_userunit_DATA += \
2731 units/user/systemd-bus-proxyd.service
2733 dist_userunit_DATA += \
2734 units/user/systemd-bus-proxyd.socket
2738 units/systemd-bus-proxyd.service.m4.in \
2739 units/user/systemd-bus-proxyd.service.in
2742 units/systemd-bus-proxyd.service.m4
2745 bus-proxyd-set-cap-hook:
2746 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2748 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2751 # ------------------------------------------------------------------------------
2752 systemd_tty_ask_password_agent_SOURCES = \
2753 src/tty-ask-password-agent/tty-ask-password-agent.c
2755 systemd_tty_ask_password_agent_LDADD = \
2756 libsystemd-label.la \
2757 libsystemd-shared.la
2759 # ------------------------------------------------------------------------------
2760 libsystemd_internal_la_SOURCES = \
2761 src/systemd/sd-bus.h \
2762 src/systemd/sd-bus-protocol.h \
2763 src/systemd/sd-bus-vtable.h \
2764 src/systemd/sd-utf8.h \
2765 src/systemd/sd-event.h \
2766 src/systemd/sd-rtnl.h \
2767 src/systemd/sd-resolve.h \
2768 src/systemd/sd-login.h \
2769 src/systemd/sd-id128.h \
2770 src/systemd/sd-daemon.h \
2771 src/systemd/sd-path.h \
2772 src/systemd/sd-network.h \
2773 src/systemd/sd-hwdb.h \
2774 src/libsystemd/sd-bus/sd-bus.c \
2775 src/libsystemd/sd-bus/bus-control.c \
2776 src/libsystemd/sd-bus/bus-control.h \
2777 src/libsystemd/sd-bus/bus-error.c \
2778 src/libsystemd/sd-bus/bus-error.h \
2779 src/libsystemd/sd-bus/bus-common-errors.h \
2780 src/libsystemd/sd-bus/bus-common-errors.c \
2781 src/libsystemd/sd-bus/bus-internal.c \
2782 src/libsystemd/sd-bus/bus-internal.h \
2783 src/libsystemd/sd-bus/bus-socket.c \
2784 src/libsystemd/sd-bus/bus-socket.h \
2785 src/libsystemd/sd-bus/bus-kernel.c \
2786 src/libsystemd/sd-bus/bus-kernel.h \
2787 src/libsystemd/sd-bus/bus-container.c \
2788 src/libsystemd/sd-bus/bus-container.h \
2789 src/libsystemd/sd-bus/bus-message.c \
2790 src/libsystemd/sd-bus/bus-message.h \
2791 src/libsystemd/sd-bus/bus-creds.c \
2792 src/libsystemd/sd-bus/bus-creds.h \
2793 src/libsystemd/sd-bus/bus-signature.c \
2794 src/libsystemd/sd-bus/bus-signature.h \
2795 src/libsystemd/sd-bus/bus-type.c \
2796 src/libsystemd/sd-bus/bus-type.h \
2797 src/libsystemd/sd-bus/bus-match.c \
2798 src/libsystemd/sd-bus/bus-match.h \
2799 src/libsystemd/sd-bus/bus-bloom.c \
2800 src/libsystemd/sd-bus/bus-bloom.h \
2801 src/libsystemd/sd-bus/bus-introspect.c \
2802 src/libsystemd/sd-bus/bus-introspect.h \
2803 src/libsystemd/sd-bus/bus-objects.c \
2804 src/libsystemd/sd-bus/bus-objects.h \
2805 src/libsystemd/sd-bus/bus-gvariant.c \
2806 src/libsystemd/sd-bus/bus-gvariant.h \
2807 src/libsystemd/sd-bus/bus-convenience.c \
2808 src/libsystemd/sd-bus/bus-track.c \
2809 src/libsystemd/sd-bus/bus-track.h \
2810 src/libsystemd/sd-bus/bus-util.c \
2811 src/libsystemd/sd-bus/bus-util.h \
2812 src/libsystemd/sd-bus/bus-slot.c \
2813 src/libsystemd/sd-bus/bus-slot.h \
2814 src/libsystemd/sd-bus/bus-protocol.h \
2815 src/libsystemd/sd-bus/kdbus.h \
2816 src/libsystemd/sd-utf8/sd-utf8.c \
2817 src/libsystemd/sd-event/sd-event.c \
2818 src/libsystemd/sd-event/event-util.h \
2819 src/libsystemd/sd-rtnl/sd-rtnl.c \
2820 src/libsystemd/sd-rtnl/rtnl-internal.h \
2821 src/libsystemd/sd-rtnl/rtnl-message.c \
2822 src/libsystemd/sd-rtnl/rtnl-types.h \
2823 src/libsystemd/sd-rtnl/rtnl-types.c \
2824 src/libsystemd/sd-rtnl/rtnl-util.h \
2825 src/libsystemd/sd-rtnl/rtnl-util.c \
2826 src/libsystemd/sd-rtnl/local-addresses.h \
2827 src/libsystemd/sd-rtnl/local-addresses.c \
2828 src/libsystemd/sd-id128/sd-id128.c \
2829 src/libsystemd/sd-daemon/sd-daemon.c \
2830 src/libsystemd/sd-login/sd-login.c \
2831 src/libsystemd/sd-path/sd-path.c \
2832 src/libsystemd/sd-network/sd-network.c \
2833 src/libsystemd/sd-network/network-util.h \
2834 src/libsystemd/sd-network/network-util.c \
2835 src/libsystemd/sd-hwdb/sd-hwdb.c \
2836 src/libsystemd/sd-hwdb/hwdb-util.h \
2837 src/libsystemd/sd-hwdb/hwdb-internal.h
2839 nodist_libsystemd_internal_la_SOURCES = \
2840 src/libsystemd/libsystemd.sym
2842 libsystemd_internal_la_CFLAGS = \
2846 libsystemd_internal_la_LIBADD = \
2849 libsystemd_resolve_la_SOURCES = \
2850 src/libsystemd/sd-resolve/sd-resolve.c \
2851 src/libsystemd/sd-resolve/resolve-util.h
2853 libsystemd_resolve_la_CFLAGS = \
2857 libsystemd_resolve_la_LIBADD = \
2860 noinst_LTLIBRARIES += \
2861 libsystemd-internal.la \
2862 libsystemd-resolve.la
2864 libsystemd_dump_la_SOURCES = \
2865 src/libsystemd/sd-bus/bus-dump.c \
2866 src/libsystemd/sd-bus/bus-dump.h
2868 noinst_LTLIBRARIES += \
2872 src/libsystemd/libsystemd.sym.m4 \
2873 src/libsystemd/libsystemd.pc.in \
2874 src/libsystemd/sd-bus/DIFFERENCES \
2875 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2878 src/libsystemd/libsystemd.sym
2881 src/libsystemd/libsystemd.sym
2883 libsystemd_la_SOURCES = \
2884 $(libsystemd_internal_la_SOURCES) \
2885 $(libsystemd_resolve_la_SOURCES) \
2886 $(libsystemd_journal_internal_la_SOURCES)
2888 nodist_libsystemd_la_SOURCES = \
2889 $(nodist_libsystemd_internal_la_SOURCES)
2891 libsystemd_la_CFLAGS = \
2892 $(libsystemd_internal_la_CFLAGS) \
2893 $(libsystemd_resolve_la_CFLAGS) \
2894 $(libsystemd_journal_internal_la_CFLAGS)
2896 libsystemd_la_LDFLAGS = \
2898 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2899 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2901 libsystemd_la_LIBADD = \
2902 libsystemd-shared.la \
2903 $(libsystemd_internal_la_LIBADD) \
2904 $(libsystemd_journal_internal_la_LIBADD) \
2905 $(libsystemd_resolve_la_LIBADD)
2907 libsystemd-install-hook:
2908 libname=libsystemd.so && $(move-to-rootlibdir)
2910 libsystemd-uninstall-hook:
2911 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2913 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2914 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2916 pkgconfiglib_DATA += \
2917 src/libsystemd/libsystemd.pc
2919 pkginclude_HEADERS += \
2920 src/systemd/sd-login.h \
2921 src/systemd/sd-id128.h \
2922 src/systemd/sd-daemon.h
2925 pkginclude_HEADERS += \
2926 src/systemd/sd-bus.h \
2927 src/systemd/sd-bus-protocol.h \
2928 src/systemd/sd-bus-vtable.h \
2929 src/systemd/sd-utf8.h \
2930 src/systemd/sd-event.h \
2931 src/systemd/sd-rtnl.h \
2932 src/systemd/sd-resolve.h \
2933 src/systemd/sd-path.h
2936 lib_LTLIBRARIES += \
2941 test-bus-signature \
2947 test-bus-kernel-bloom \
2948 test-bus-kernel-benchmark \
2949 test-bus-zero-copy \
2950 test-bus-introspect \
2957 test-local-addresses \
2963 test_bus_marshal_SOURCES = \
2964 src/libsystemd/sd-bus/test-bus-marshal.c
2966 test_bus_marshal_LDADD = \
2967 libsystemd-dump.la \
2968 libsystemd-internal.la \
2969 libsystemd-shared.la \
2973 test_bus_marshal_CFLAGS = \
2978 test_bus_signature_SOURCES = \
2979 src/libsystemd/sd-bus/test-bus-signature.c
2981 test_bus_signature_LDADD = \
2982 libsystemd-internal.la \
2983 libsystemd-shared.la
2985 test_bus_chat_SOURCES = \
2986 src/libsystemd/sd-bus/test-bus-chat.c
2988 test_bus_chat_CFLAGS = \
2992 test_bus_chat_LDADD = \
2993 libsystemd-internal.la \
2994 libsystemd-shared.la
2996 test_bus_cleanup_SOURCES = \
2997 src/libsystemd/sd-bus/test-bus-cleanup.c
2999 test_bus_cleanup_CFLAGS = \
3003 test_bus_cleanup_LDADD = \
3004 libsystemd-internal.la \
3005 libsystemd-shared.la
3007 test_bus_server_SOURCES = \
3008 src/libsystemd/sd-bus/test-bus-server.c
3010 test_bus_server_CFLAGS = \
3014 test_bus_server_LDADD = \
3015 libsystemd-internal.la \
3016 libsystemd-shared.la
3018 test_bus_objects_SOURCES = \
3019 src/libsystemd/sd-bus/test-bus-objects.c
3021 test_bus_objects_CFLAGS = \
3025 test_bus_objects_LDADD = \
3026 libsystemd-dump.la \
3027 libsystemd-internal.la \
3028 libsystemd-shared.la
3030 test_bus_error_SOURCES = \
3031 src/libsystemd/sd-bus/test-bus-error.c
3033 test_bus_error_LDADD = \
3034 libsystemd-internal.la \
3035 libsystemd-shared.la
3037 test_bus_gvariant_SOURCES = \
3038 src/libsystemd/sd-bus/test-bus-gvariant.c
3040 test_bus_gvariant_LDADD = \
3041 libsystemd-dump.la \
3042 libsystemd-internal.la \
3043 libsystemd-shared.la \
3046 test_bus_gvariant_CFLAGS = \
3050 test_bus_creds_SOURCES = \
3051 src/libsystemd/sd-bus/test-bus-creds.c
3053 test_bus_creds_LDADD = \
3054 libsystemd-dump.la \
3055 libsystemd-internal.la \
3056 libsystemd-shared.la
3058 test_bus_match_SOURCES = \
3059 src/libsystemd/sd-bus/test-bus-match.c
3061 test_bus_match_LDADD = \
3062 libsystemd-internal.la \
3063 libsystemd-shared.la
3065 test_bus_kernel_SOURCES = \
3066 src/libsystemd/sd-bus/test-bus-kernel.c
3068 test_bus_kernel_LDADD = \
3069 libsystemd-dump.la \
3070 libsystemd-internal.la \
3071 libsystemd-shared.la
3073 test_bus_kernel_bloom_SOURCES = \
3074 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3076 test_bus_kernel_bloom_LDADD = \
3077 libsystemd-internal.la \
3078 libsystemd-shared.la
3080 test_bus_kernel_benchmark_SOURCES = \
3081 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3083 test_bus_kernel_benchmark_LDADD = \
3084 libsystemd-internal.la \
3085 libsystemd-shared.la
3087 test_bus_zero_copy_SOURCES = \
3088 src/libsystemd/sd-bus/test-bus-zero-copy.c
3090 test_bus_zero_copy_LDADD = \
3091 libsystemd-dump.la \
3092 libsystemd-internal.la \
3093 libsystemd-shared.la
3095 test_bus_introspect_SOURCES = \
3096 src/libsystemd/sd-bus/test-bus-introspect.c
3098 test_bus_introspect_LDADD = \
3099 libsystemd-internal.la \
3100 libsystemd-shared.la
3102 test_event_SOURCES = \
3103 src/libsystemd/sd-event/test-event.c
3105 test_event_LDADD = \
3106 libsystemd-internal.la \
3107 libsystemd-shared.la
3109 test_rtnl_SOURCES = \
3110 src/libsystemd/sd-rtnl/test-rtnl.c
3113 libsystemd-internal.la \
3114 libsystemd-shared.la
3116 test_local_addresses_SOURCES = \
3117 src/libsystemd/sd-rtnl/test-local-addresses.c
3119 test_local_addresses_LDADD = \
3120 libsystemd-internal.la \
3121 libsystemd-shared.la
3123 test_resolve_SOURCES = \
3124 src/libsystemd/sd-resolve/test-resolve.c
3126 test_resolve_LDADD = \
3127 libsystemd-resolve.la \
3128 libsystemd-internal.la \
3129 libsystemd-shared.la
3131 test_resolve_CFLAGS = \
3136 src/libsystemd/sd-bus/busctl.c \
3137 src/libsystemd/sd-bus/busctl-introspect.c \
3138 src/libsystemd/sd-bus/busctl-introspect.h
3141 libsystemd-dump.la \
3142 libsystemd-internal.la \
3143 libsystemd-shared.la
3145 # ------------------------------------------------------------------------------
3146 noinst_LTLIBRARIES += \
3147 libsystemd-network.la
3149 libsystemd_network_la_CFLAGS = \
3153 libsystemd_network_la_SOURCES = \
3154 src/systemd/sd-dhcp-client.h \
3155 src/systemd/sd-dhcp-server.h \
3156 src/systemd/sd-dhcp-lease.h \
3157 src/systemd/sd-ipv4ll.h \
3158 src/systemd/sd-icmp6-nd.h \
3159 src/systemd/sd-dhcp6-client.h \
3160 src/systemd/sd-dhcp6-lease.h \
3161 src/systemd/sd-pppoe.h \
3162 src/systemd/sd-lldp.h \
3163 src/libsystemd-network/sd-dhcp-client.c \
3164 src/libsystemd-network/sd-dhcp-server.c \
3165 src/libsystemd-network/dhcp-network.c \
3166 src/libsystemd-network/dhcp-option.c \
3167 src/libsystemd-network/dhcp-packet.c \
3168 src/libsystemd-network/dhcp-internal.h \
3169 src/libsystemd-network/dhcp-server-internal.h \
3170 src/libsystemd-network/dhcp-protocol.h \
3171 src/libsystemd-network/dhcp-lease-internal.h \
3172 src/libsystemd-network/sd-dhcp-lease.c \
3173 src/libsystemd-network/sd-ipv4ll.c \
3174 src/libsystemd-network/ipv4ll-network.c \
3175 src/libsystemd-network/ipv4ll-packet.c \
3176 src/libsystemd-network/ipv4ll-internal.h \
3177 src/libsystemd-network/sd-pppoe.c \
3178 src/libsystemd-network/network-internal.c \
3179 src/libsystemd-network/network-internal.h \
3180 src/libsystemd-network/sd-icmp6-nd.c \
3181 src/libsystemd-network/sd-dhcp6-client.c \
3182 src/libsystemd-network/dhcp6-internal.h \
3183 src/libsystemd-network/dhcp6-protocol.h \
3184 src/libsystemd-network/dhcp6-network.c \
3185 src/libsystemd-network/dhcp6-option.c \
3186 src/libsystemd-network/dhcp6-lease-internal.h \
3187 src/libsystemd-network/sd-dhcp6-lease.c \
3188 src/libsystemd-network/lldp.h \
3189 src/libsystemd-network/lldp-tlv.h \
3190 src/libsystemd-network/lldp-tlv.c \
3191 src/libsystemd-network/lldp-network.h \
3192 src/libsystemd-network/lldp-network.c \
3193 src/libsystemd-network/lldp-port.h \
3194 src/libsystemd-network/lldp-port.c \
3195 src/libsystemd-network/lldp-internal.h \
3196 src/libsystemd-network/lldp-internal.c \
3197 src/libsystemd-network/lldp-util.h \
3198 src/libsystemd-network/sd-lldp.c
3200 libsystemd_network_la_LIBADD = \
3201 libudev-internal.la \
3202 libsystemd-label.la \
3203 libsystemd-internal.la \
3204 libsystemd-shared.la \
3207 test_dhcp_option_SOURCES = \
3208 src/libsystemd-network/dhcp-protocol.h \
3209 src/libsystemd-network/dhcp-internal.h \
3210 src/libsystemd-network/test-dhcp-option.c
3212 test_dhcp_option_LDADD = \
3213 libsystemd-network.la \
3214 libsystemd-internal.la \
3215 libsystemd-shared.la
3217 test_dhcp_client_SOURCES = \
3218 src/systemd/sd-dhcp-client.h \
3219 src/libsystemd-network/dhcp-protocol.h \
3220 src/libsystemd-network/dhcp-internal.h \
3221 src/libsystemd-network/test-dhcp-client.c
3223 test_dhcp_client_LDADD = \
3224 libsystemd-network.la \
3225 libsystemd-label.la \
3226 libsystemd-internal.la \
3227 libsystemd-shared.la
3229 test_dhcp_server_SOURCES = \
3230 src/libsystemd-network/test-dhcp-server.c
3232 test_dhcp_server_LDADD = \
3233 libsystemd-network.la \
3234 libsystemd-internal.la \
3235 libsystemd-shared.la
3237 test_ipv4ll_SOURCES = \
3238 src/systemd/sd-ipv4ll.h \
3239 src/libsystemd-network/ipv4ll-internal.h \
3240 src/libsystemd-network/test-ipv4ll.c
3242 test_ipv4ll_LDADD = \
3243 libsystemd-network.la \
3244 libsystemd-label.la \
3245 libsystemd-internal.la \
3246 libsystemd-shared.la
3248 test_pppoe_SOURCES = \
3249 src/systemd/sd-pppoe.h \
3250 src/libsystemd-network/test-pppoe.c
3252 test_pppoe_LDADD = \
3253 libsystemd-network.la \
3254 libsystemd-shared.la
3256 test_icmp6_rs_SOURCES = \
3257 src/systemd/sd-dhcp6-client.h \
3258 src/systemd/sd-icmp6-nd.h \
3259 src/libsystemd-network/dhcp6-internal.h \
3260 src/libsystemd-network/test-icmp6-rs.c
3262 test_icmp6_rs_LDADD = \
3263 libsystemd-network.la \
3264 libsystemd-internal.la \
3265 libsystemd-shared.la
3267 test_dhcp6_client_SOURCES = \
3268 src/systemd/sd-dhcp6-client.h \
3269 src/libsystemd-network/dhcp6-internal.h \
3270 src/libsystemd-network/test-dhcp6-client.c
3272 test_dhcp6_client_LDADD = \
3273 libsystemd-network.la \
3274 libsystemd-internal.la \
3275 libsystemd-shared.la
3277 test_lldp_SOURCES = \
3278 src/libsystemd-network/lldp.h \
3279 src/libsystemd-network/lldp-tlv.h \
3280 src/libsystemd-network/lldp-tlv.c \
3281 src/libsystemd-network/test-lldp.c
3284 libsystemd-network.la \
3285 libsystemd-internal.la \
3286 libsystemd-shared.la
3300 # ------------------------------------------------------------------------------
3302 noinst_LTLIBRARIES += \
3303 libsystemd-terminal.la
3305 rootlibexec_PROGRAMS += \
3308 noinst_PROGRAMS += \
3313 dist_pkgdata_DATA += \
3314 src/libsystemd-terminal/unifont-glyph-array.bin
3316 nodist_userunit_DATA += \
3317 units/user/systemd-consoled.service
3319 USER_DEFAULT_TARGET_WANTS += \
3320 systemd-consoled.service
3329 units/user/systemd-consoled.service.in
3331 libsystemd_terminal_la_CFLAGS = \
3335 libsystemd_terminal_la_SOURCES = \
3336 src/libsystemd-terminal/grdev.h \
3337 src/libsystemd-terminal/grdev-internal.h \
3338 src/libsystemd-terminal/grdev.c \
3339 src/libsystemd-terminal/grdev-drm.c \
3340 src/libsystemd-terminal/idev.h \
3341 src/libsystemd-terminal/idev-internal.h \
3342 src/libsystemd-terminal/idev.c \
3343 src/libsystemd-terminal/idev-evdev.c \
3344 src/libsystemd-terminal/idev-keyboard.c \
3345 src/libsystemd-terminal/sysview.h \
3346 src/libsystemd-terminal/sysview-internal.h \
3347 src/libsystemd-terminal/sysview.c \
3348 src/libsystemd-terminal/term.h \
3349 src/libsystemd-terminal/term-internal.h \
3350 src/libsystemd-terminal/term-charset.c \
3351 src/libsystemd-terminal/term-page.c \
3352 src/libsystemd-terminal/term-parser.c \
3353 src/libsystemd-terminal/term-screen.c \
3354 src/libsystemd-terminal/term-wcwidth.c \
3355 src/libsystemd-terminal/unifont.h \
3356 src/libsystemd-terminal/unifont-def.h \
3357 src/libsystemd-terminal/unifont.c
3359 libsystemd_terminal_la_LIBADD = \
3360 libudev-internal.la \
3361 libsystemd-internal.la \
3362 libsystemd-shared.la \
3365 systemd_consoled_CFLAGS = \
3369 systemd_consoled_SOURCES = \
3370 src/console/consoled.h \
3371 src/console/consoled.c \
3372 src/console/consoled-display.c \
3373 src/console/consoled-manager.c \
3374 src/console/consoled-session.c \
3375 src/console/consoled-terminal.c \
3376 src/console/consoled-workspace.c
3378 systemd_consoled_LDADD = \
3379 libsystemd-terminal.la \
3380 libsystemd-internal.la \
3381 libsystemd-shared.la \
3384 systemd_evcat_CFLAGS = \
3388 systemd_evcat_SOURCES = \
3389 src/libsystemd-terminal/evcat.c
3391 systemd_evcat_LDADD = \
3392 libsystemd-terminal.la \
3393 libsystemd-internal.la \
3394 libsystemd-shared.la \
3397 systemd_modeset_CFLAGS = \
3401 systemd_modeset_SOURCES = \
3402 src/libsystemd-terminal/modeset.c
3404 systemd_modeset_LDADD = \
3405 libsystemd-terminal.la \
3406 libsystemd-internal.la \
3407 libsystemd-shared.la \
3410 systemd_subterm_SOURCES = \
3411 src/libsystemd-terminal/subterm.c
3413 systemd_subterm_LDADD = \
3414 libsystemd-terminal.la \
3415 libsystemd-internal.la \
3416 libsystemd-shared.la
3418 test_term_page_SOURCES = \
3419 src/libsystemd-terminal/test-term-page.c
3421 test_term_page_LDADD = \
3422 libsystemd-terminal.la \
3423 libsystemd-internal.la \
3424 libsystemd-shared.la
3426 test_term_parser_SOURCES = \
3427 src/libsystemd-terminal/test-term-parser.c
3429 test_term_parser_LDADD = \
3430 libsystemd-terminal.la \
3431 libsystemd-internal.la \
3432 libsystemd-shared.la
3434 test_unifont_SOURCES = \
3435 src/libsystemd-terminal/test-unifont.c
3437 test_unifont_LDADD = \
3438 libsystemd-terminal.la \
3439 libsystemd-internal.la \
3440 libsystemd-shared.la
3442 .PHONY: update-unifont
3443 update-unifont: tools/compile-unifont.py
3444 $(AM_V_GEN)$(PYTHON) $< \
3445 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3446 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3447 @echo "unifont-glyph-array.bin has been regenerated"
3449 # ------------------------------------------------------------------------------
3459 include_HEADERS += \
3460 src/libudev/libudev.h
3462 lib_LTLIBRARIES += \
3465 libudev_la_SOURCES =\
3466 src/libudev/libudev.sym \
3467 src/libudev/libudev-private.h \
3468 src/libudev/libudev.c \
3469 src/libudev/libudev-list.c \
3470 src/libudev/libudev-util.c \
3471 src/libudev/libudev-device.c \
3472 src/libudev/libudev-enumerate.c \
3473 src/libudev/libudev-monitor.c \
3474 src/libudev/libudev-queue.c \
3475 src/libudev/libudev-hwdb.c
3477 libudev_la_CFLAGS = \
3481 libudev_la_LDFLAGS = \
3483 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3484 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3486 libudev_la_LIBADD = \
3487 libsystemd-internal.la \
3488 libsystemd-shared.la
3490 pkgconfiglib_DATA += \
3491 src/libudev/libudev.pc
3494 src/libudev/libudev.pc.in
3497 src/libudev/libudev.pc \
3502 $(AM_V_at)$(MKDIR_P) $(dir $@)
3503 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3506 $(AM_V_at)$(MKDIR_P) $(dir $@)
3507 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3509 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3510 libudev-install-hook:
3511 libname=libudev.so && $(move-to-rootlibdir)
3513 libudev-uninstall-hook:
3514 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3516 INSTALL_EXEC_HOOKS += libudev-install-hook
3517 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3519 # ------------------------------------------------------------------------------
3520 noinst_LTLIBRARIES += \
3523 libudev_internal_la_SOURCES =\
3524 $(libudev_la_SOURCES) \
3525 src/libudev/libudev-device-private.c
3527 libudev_internal_la_CFLAGS = \
3529 -fvisibility=default
3531 # ------------------------------------------------------------------------------
3533 $(sysconfdir)/udev/rules.d
3535 dist_network_DATA = \
3536 network/99-default.link \
3537 network/80-container-host0.network \
3538 network/80-container-ve.network
3540 dist_udevrules_DATA += \
3541 rules/42-usb-hid-pm.rules \
3542 rules/50-udev-default.rules \
3543 rules/60-drm.rules \
3544 rules/60-keyboard.rules \
3545 rules/70-mouse.rules \
3546 rules/60-persistent-storage-tape.rules \
3547 rules/60-persistent-serial.rules \
3548 rules/60-persistent-input.rules \
3549 rules/60-persistent-alsa.rules \
3550 rules/60-persistent-storage.rules \
3551 rules/64-btrfs.rules \
3552 rules/75-net-description.rules \
3553 rules/75-tty-description.rules \
3554 rules/78-sound-card.rules \
3555 rules/80-net-setup-link.rules \
3556 rules/95-udev-late.rules
3558 nodist_udevrules_DATA += \
3559 rules/99-systemd.rules
3561 udevconfdir = $(sysconfdir)/udev
3562 dist_udevconf_DATA = \
3565 sharepkgconfigdir = $(datadir)/pkgconfig
3566 sharepkgconfig_DATA = \
3570 rules/99-systemd.rules.in \
3574 rules/99-systemd.rules \
3578 units/systemd-udevd.service.in \
3579 units/systemd-udev-trigger.service.in \
3580 units/systemd-udev-settle.service.in
3583 units/systemd-udevd.service \
3584 units/systemd-udev-trigger.service \
3585 units/systemd-udev-settle.service
3587 SOCKETS_TARGET_WANTS += \
3588 systemd-udevd-control.socket \
3589 systemd-udevd-kernel.socket
3591 SYSINIT_TARGET_WANTS += \
3592 systemd-udevd.service \
3593 systemd-udev-trigger.service
3595 rootbin_PROGRAMS += \
3598 rootlibexec_PROGRAMS += \
3601 noinst_LTLIBRARIES += \
3604 src/udev/keyboard-keys.txt:
3605 $(AM_V_at)$(MKDIR_P) $(dir $@)
3606 $(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/' > $@
3608 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3609 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3611 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3612 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3614 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3615 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3617 libudev_core_la_SOURCES = \
3619 src/udev/udev-event.c \
3620 src/udev/udev-watch.c \
3621 src/udev/udev-node.c \
3622 src/udev/udev-rules.c \
3623 src/udev/udev-ctrl.c \
3624 src/udev/udev-builtin.c \
3625 src/udev/udev-builtin-btrfs.c \
3626 src/udev/udev-builtin-hwdb.c \
3627 src/udev/udev-builtin-input_id.c \
3628 src/udev/udev-builtin-keyboard.c \
3629 src/udev/udev-builtin-net_id.c \
3630 src/udev/udev-builtin-net_setup_link.c \
3631 src/udev/udev-builtin-path_id.c \
3632 src/udev/udev-builtin-usb_id.c \
3633 src/udev/net/link-config.h \
3634 src/udev/net/link-config.c \
3635 src/udev/net/ethtool-util.h \
3636 src/udev/net/ethtool-util.c
3638 nodist_libudev_core_la_SOURCES = \
3639 src/udev/keyboard-keys-from-name.h \
3640 src/udev/keyboard-keys-to-name.h \
3641 src/udev/net/link-config-gperf.c
3644 $(nodist_libudev_core_la_SOURCES)
3647 src/udev/keyboard-keys-from-name.gperf \
3648 src/udev/keyboard-keys.txt \
3649 src/udev/net/link-config-gperf.c
3652 src/udev/net/link-config-gperf.gperf
3654 libudev_core_la_CFLAGS = \
3659 libudev_core_la_LIBADD = \
3660 libudev-internal.la \
3661 libsystemd-label.la \
3662 libsystemd-internal.la \
3663 libsystemd-network.la \
3664 libsystemd-shared.la \
3669 libudev_core_la_SOURCES += \
3670 src/udev/udev-builtin-kmod.c
3672 dist_udevrules_DATA += \
3673 rules/80-drivers.rules
3677 libudev_core_la_SOURCES += \
3678 src/udev/udev-builtin-blkid.c
3682 libudev_core_la_SOURCES += \
3683 src/udev/udev-builtin-uaccess.c \
3684 src/login/logind-acl.c \
3685 src/libsystemd/sd-login/sd-login.c \
3686 src/systemd/sd-login.h
3688 libudev_core_la_LIBADD += \
3692 systemd_udevd_SOURCES = \
3695 systemd_udevd_LDADD = \
3699 src/udev/udevadm.c \
3700 src/udev/udevadm-info.c \
3701 src/udev/udevadm-control.c \
3702 src/udev/udevadm-monitor.c \
3703 src/udev/udevadm-hwdb.c \
3704 src/udev/udevadm-settle.c \
3705 src/udev/udevadm-trigger.c \
3706 src/udev/udevadm-test.c \
3707 src/udev/udevadm-test-builtin.c \
3708 src/udev/udevadm-util.c \
3709 src/udev/udevadm-util.h
3714 # ------------------------------------------------------------------------------
3717 $(sysconfdir)/udev/hwdb.d
3719 systemd_hwdb_SOURCES = \
3720 src/libsystemd/sd-hwdb/hwdb-internal.h \
3723 systemd_hwdb_LDADD = \
3724 libsystemd-shared.la \
3725 libsystemd-internal.la \
3728 rootbin_PROGRAMS += \
3731 dist_udevhwdb_DATA = \
3732 hwdb/20-pci-vendor-model.hwdb \
3733 hwdb/20-pci-classes.hwdb \
3734 hwdb/20-usb-vendor-model.hwdb \
3735 hwdb/20-usb-classes.hwdb \
3736 hwdb/20-sdio-vendor-model.hwdb \
3737 hwdb/20-sdio-classes.hwdb \
3738 hwdb/20-bluetooth-vendor-product.hwdb \
3739 hwdb/20-acpi-vendor.hwdb \
3741 hwdb/20-net-ifname.hwdb \
3742 hwdb/60-keyboard.hwdb \
3746 units/systemd-hwdb-update.service.in
3749 units/systemd-hwdb-update.service
3751 SYSINIT_TARGET_WANTS += \
3752 systemd-hwdb-update.service
3754 # Update hwdb on installation. Do not bother if installing
3755 # in DESTDIR, since this is likely for packaging purposes.
3757 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3759 INSTALL_DATA_HOOKS += \
3763 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3766 # ------------------------------------------------------------------------------
3775 test_libudev_SOURCES = \
3776 src/test/test-libudev.c
3778 test_libudev_LDADD = \
3779 libsystemd-label.la \
3780 libudev-internal.la \
3781 libsystemd-shared.la \
3782 libsystemd-internal.la
3784 test_udev_SOURCES = \
3785 src/test/test-udev.c
3794 test_udev_LDADD += \
3801 # packed sysfs test tree
3803 $(AM_V_at)$(MKDIR_P) $(dir $@)
3804 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3808 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3813 test/rules-test.sh \
3814 test/rule-syntax-check.py
3816 # ------------------------------------------------------------------------------
3818 src/udev/ata_id/ata_id.c
3821 libudev-internal.la \
3822 libsystemd-shared.la
3824 udevlibexec_PROGRAMS += \
3827 # ------------------------------------------------------------------------------
3828 cdrom_id_SOURCES = \
3829 src/udev/cdrom_id/cdrom_id.c
3832 libudev-internal.la \
3833 libsystemd-shared.la
3835 udevlibexec_PROGRAMS += \
3838 dist_udevrules_DATA += \
3839 rules/60-cdrom_id.rules
3841 # ------------------------------------------------------------------------------
3843 src/udev/collect/collect.c
3846 libudev-internal.la \
3847 libsystemd-shared.la
3849 udevlibexec_PROGRAMS += \
3852 # ------------------------------------------------------------------------------
3854 src/udev/scsi_id/scsi_id.c \
3855 src/udev/scsi_id/scsi_serial.c \
3856 src/udev/scsi_id/scsi.h \
3857 src/udev/scsi_id/scsi_id.h
3860 libudev-internal.la \
3861 libsystemd-shared.la
3863 udevlibexec_PROGRAMS += \
3867 src/udev/scsi_id/README
3869 # ------------------------------------------------------------------------------
3871 src/udev/v4l_id/v4l_id.c
3874 libudev-internal.la \
3875 libsystemd-shared.la
3877 udevlibexec_PROGRAMS += \
3880 dist_udevrules_DATA += \
3881 rules/60-persistent-v4l.rules
3883 # ------------------------------------------------------------------------------
3884 accelerometer_SOURCES = \
3885 src/udev/accelerometer/accelerometer.c
3887 accelerometer_LDADD = \
3888 libudev-internal.la \
3889 libsystemd-shared.la
3891 udevlibexec_PROGRAMS += \
3894 dist_udevrules_DATA += \
3895 rules/61-accelerometer.rules
3897 # ------------------------------------------------------------------------------
3904 libgudev_includedir = \
3905 $(includedir)/gudev-1.0/gudev
3907 libgudev_include_HEADERS = \
3909 src/gudev/gudevenums.h \
3910 src/gudev/gudevenumtypes.h \
3911 src/gudev/gudevtypes.h \
3912 src/gudev/gudevclient.h \
3913 src/gudev/gudevdevice.h \
3914 src/gudev/gudevenumerator.h
3916 lib_LTLIBRARIES += libgudev-1.0.la
3918 pkgconfiglib_DATA += \
3919 src/gudev/gudev-1.0.pc
3922 src/gudev/gudev-1.0.pc
3924 libgudev_1_0_la_SOURCES = \
3925 src/gudev/libgudev-1.0.sym \
3926 src/gudev/gudevenums.h \
3927 src/gudev/gudevenumtypes.h \
3928 src/gudev/gudevenumtypes.h\
3929 src/gudev/gudevtypes.h \
3930 src/gudev/gudevclient.h \
3931 src/gudev/gudevclient.c \
3932 src/gudev/gudevdevice.h \
3933 src/gudev/gudevdevice.c \
3934 src/gudev/gudevenumerator.h \
3935 src/gudev/gudevenumerator.c \
3936 src/gudev/gudevprivate.h
3938 nodist_libgudev_1_0_la_SOURCES = \
3939 src/gudev/gudevmarshal.h \
3940 src/gudev/gudevmarshal.c \
3941 src/gudev/gudevenumtypes.h \
3942 src/gudev/gudevenumtypes.c
3945 $(nodist_libgudev_1_0_la_SOURCES)
3947 libgudev_1_0_la_CPPFLAGS = \
3949 -I$(top_builddir)/src\
3950 -I$(top_srcdir)/src\
3951 -I$(top_builddir)/src/gudev \
3952 -I$(top_srcdir)/src/gudev \
3953 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3954 -D_GUDEV_COMPILATION \
3955 -DG_LOG_DOMAIN=\"GUdev\"
3957 libgudev_1_0_la_CFLAGS = \
3959 -fvisibility=default \
3962 libgudev_1_0_la_LIBADD = \
3966 libgudev_1_0_la_LDFLAGS = \
3968 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3971 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3973 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3974 $(AM_V_at)$(MKDIR_P) $(dir $@)
3975 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3977 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3978 $(AM_V_at)$(MKDIR_P) $(dir $@)
3979 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3980 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3982 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3983 $(AM_V_at)$(MKDIR_P) $(dir $@)
3984 $(AM_V_GEN)glib-mkenums --template $^ > $@
3986 if HAVE_INTROSPECTION
3987 -include $(INTROSPECTION_MAKEFILE)
3989 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3991 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3993 src_gudev_GUdev_1_0_gir_CFLAGS = \
3996 -D_GUDEV_COMPILATION \
3997 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3998 -I$(top_srcdir)/src \
3999 -I$(top_builddir)/src \
4000 -I$(top_srcdir)/src/gudev \
4001 -I$(top_builddir)/src/gudev
4003 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
4005 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
4006 --pkg-export=gudev-1.0 \
4009 src_gudev_GUdev_1_0_gir_FILES = \
4011 src/gudev/gudevtypes.h \
4012 src/gudev/gudevenums.h \
4013 src/gudev/gudevenumtypes.h \
4014 src/gudev/gudevclient.h \
4015 src/gudev/gudevdevice.h \
4016 src/gudev/gudevenumerator.h \
4017 src/gudev/gudevclient.c \
4018 src/gudev/gudevdevice.c \
4019 src/gudev/gudevenumerator.c
4021 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
4022 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
4024 girdir = $(datadir)/gir-1.0
4026 src/gudev/GUdev-1.0.gir
4028 typelibsdir = $(libdir)/girepository-1.0
4030 src/gudev/GUdev-1.0.typelib
4032 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
4033 endif # HAVE_INTROSPECTION
4037 src/gudev/gudev-1.0.pc.in \
4038 src/gudev/gudevmarshal.list \
4039 src/gudev/gudevenumtypes.h.template \
4040 src/gudev/gudevenumtypes.c.template \
4041 src/gudev/gjs-example.js \
4042 src/gudev/seed-example-enum.js \
4043 src/gudev/seed-example.js
4045 # ------------------------------------------------------------------------------
4046 mtd_probe_SOURCES = \
4047 src/udev/mtd_probe/mtd_probe.c \
4048 src/udev/mtd_probe/mtd_probe.h \
4049 src/udev/mtd_probe/probe_smartmedia.c
4051 dist_udevrules_DATA += \
4052 rules/75-probe_mtd.rules
4054 udevlibexec_PROGRAMS += \
4057 # ------------------------------------------------------------------------------
4058 test_id128_SOURCES = \
4059 src/test/test-id128.c
4061 test_id128_LDADD = \
4062 libsystemd-internal.la \
4063 libsystemd-shared.la
4068 # ------------------------------------------------------------------------------
4070 rootlibexec_PROGRAMS += \
4073 systemd_activate_SOURCES = \
4074 src/activate/activate.c
4076 systemd_activate_LDADD = \
4077 libsystemd-label.la \
4078 libsystemd-internal.la \
4079 libsystemd-shared.la
4081 # ------------------------------------------------------------------------------
4082 systemd_journald_SOURCES = \
4083 src/journal/journald.c \
4084 src/journal/journald-server.h
4086 systemd_journald_LDADD = \
4087 libsystemd-journal-core.la \
4088 libsystemd-internal.la \
4089 libsystemd-shared.la
4091 systemd_cat_SOURCES = \
4094 systemd_cat_LDADD = \
4095 libsystemd-journal-core.la
4098 rootlibexec_PROGRAMS += \
4099 systemd-journal-remote
4101 systemd_journal_remote_SOURCES = \
4102 src/journal-remote/journal-remote-parse.h \
4103 src/journal-remote/journal-remote-parse.c \
4104 src/journal-remote/journal-remote-write.h \
4105 src/journal-remote/journal-remote-write.c \
4106 src/journal-remote/journal-remote.h \
4107 src/journal-remote/journal-remote.c
4109 systemd_journal_remote_LDADD = \
4110 libsystemd-internal.la \
4111 libsystemd-journal-core.la
4113 systemd_journal_remote_SOURCES += \
4114 src/journal-remote/microhttpd-util.h \
4115 src/journal-remote/microhttpd-util.c
4117 systemd_journal_remote_CFLAGS = \
4119 $(MICROHTTPD_CFLAGS)
4121 systemd_journal_remote_LDADD += \
4125 dist_sysusers_DATA += \
4126 sysusers.d/systemd-remote.conf
4130 dist_tmpfiles_DATA += \
4131 tmpfiles.d/systemd-remote.conf
4135 systemd_journal_remote_LDADD += \
4138 # systemd-journal-remote make sense mostly with full crypto stack
4139 dist_systemunit_DATA += \
4140 units/systemd-journal-remote.socket
4142 nodist_systemunit_DATA += \
4143 units/systemd-journal-remote.service
4146 units/systemd-journal-remote.service.in
4148 journal-remote-install-hook: journal-install-hook
4149 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4150 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4151 -chmod 755 $(DESTDIR)/var/log/journal/remote
4153 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4157 nodist_pkgsysconf_DATA += \
4158 src/journal-remote/journal-remote.conf
4161 src/journal-remote/journal-remote.conf.in
4164 src/journal-remote/journal-remote.conf
4168 rootlibexec_PROGRAMS += \
4169 systemd-journal-upload
4171 systemd_journal_upload_SOURCES = \
4172 src/journal-remote/journal-upload.h \
4173 src/journal-remote/journal-upload.c \
4174 src/journal-remote/journal-upload-journal.c
4176 systemd_journal_upload_CFLAGS = \
4180 systemd_journal_upload_LDADD = \
4181 libsystemd-internal.la \
4182 libsystemd-journal-internal.la \
4183 libsystemd-shared.la \
4186 nodist_systemunit_DATA += \
4187 units/systemd-journal-upload.service
4190 units/systemd-journal-upload.service.in
4192 nodist_pkgsysconf_DATA += \
4193 src/journal-remote/journal-upload.conf
4196 src/journal-remote/journal-upload.conf.in
4199 src/journal-remote/journal-upload.conf
4202 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4203 journalctl_CFLAGS = \
4206 journalctl_SOURCES = \
4207 src/journal/journalctl.c
4209 journalctl_LDADD = \
4210 libsystemd-journal-internal.la \
4211 libsystemd-internal.la \
4212 libsystemd-logs.la \
4213 libsystemd-shared.la
4216 journalctl_LDADD += \
4221 journalctl_SOURCES += \
4222 src/journal/journal-qrcode.c \
4223 src/journal/journal-qrcode.h
4225 journalctl_CFLAGS += \
4228 journalctl_LDADD += \
4232 test_journal_SOURCES = \
4233 src/journal/test-journal.c
4235 test_journal_LDADD = \
4236 libsystemd-journal-core.la
4238 test_journal_send_SOURCES = \
4239 src/journal/test-journal-send.c
4241 test_journal_send_LDADD = \
4242 libsystemd-journal-core.la
4244 test_journal_syslog_SOURCES = \
4245 src/journal/test-journal-syslog.c
4247 test_journal_syslog_LDADD = \
4248 libsystemd-journal-core.la
4250 test_journal_match_SOURCES = \
4251 src/journal/test-journal-match.c
4253 test_journal_match_LDADD = \
4254 libsystemd-journal-core.la
4256 test_journal_enum_SOURCES = \
4257 src/journal/test-journal-enum.c
4259 test_journal_enum_LDADD = \
4260 libsystemd-journal-core.la
4262 test_journal_stream_SOURCES = \
4263 src/journal/test-journal-stream.c
4265 test_journal_stream_LDADD = \
4266 libsystemd-journal-core.la
4268 test_journal_flush_SOURCES = \
4269 src/journal/test-journal-flush.c
4271 test_journal_flush_LDADD = \
4272 libsystemd-journal-core.la
4274 test_journal_init_SOURCES = \
4275 src/journal/test-journal-init.c
4277 test_journal_init_LDADD = \
4278 libsystemd-journal-core.la
4280 test_journal_verify_SOURCES = \
4281 src/journal/test-journal-verify.c
4283 test_journal_verify_LDADD = \
4284 libsystemd-journal-core.la
4286 test_journal_interleaving_SOURCES = \
4287 src/journal/test-journal-interleaving.c
4289 test_journal_interleaving_LDADD = \
4290 libsystemd-journal-core.la
4292 test_mmap_cache_SOURCES = \
4293 src/journal/test-mmap-cache.c
4295 test_mmap_cache_LDADD = \
4296 libsystemd-journal-core.la
4298 test_catalog_SOURCES = \
4299 src/journal/test-catalog.c
4301 test_catalog_CPPFLAGS = \
4303 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4305 test_catalog_LDADD = \
4306 libsystemd-journal-core.la
4308 test_compress_SOURCES = \
4309 src/journal/test-compress.c
4311 test_compress_LDADD = \
4312 libsystemd-journal-internal.la \
4313 libsystemd-shared.la
4315 test_compress_benchmark_SOURCES = \
4316 src/journal/test-compress-benchmark.c
4318 test_compress_benchmark_LDADD = \
4319 libsystemd-journal-internal.la \
4320 libsystemd-shared.la
4322 libsystemd_journal_core_la_SOURCES = \
4323 src/journal/journald-kmsg.c \
4324 src/journal/journald-kmsg.h \
4325 src/journal/journald-syslog.c \
4326 src/journal/journald-syslog.h \
4327 src/journal/journald-stream.c \
4328 src/journal/journald-stream.h \
4329 src/journal/journald-server.c \
4330 src/journal/journald-server.h \
4331 src/journal/journald-console.c \
4332 src/journal/journald-console.h \
4333 src/journal/journald-wall.c \
4334 src/journal/journald-wall.h \
4335 src/journal/journald-native.c \
4336 src/journal/journald-native.h \
4337 src/journal/journald-audit.c \
4338 src/journal/journald-audit.h \
4339 src/journal/journald-rate-limit.c \
4340 src/journal/journald-rate-limit.h \
4341 src/journal/journal-internal.h
4343 nodist_libsystemd_journal_core_la_SOURCES = \
4344 src/journal/journald-gperf.c
4346 libsystemd_journal_core_la_LIBADD = \
4347 libsystemd-journal-internal.la \
4348 libudev-internal.la \
4349 libsystemd-label.la \
4350 libsystemd-internal.la \
4351 libsystemd-shared.la
4354 libsystemd_journal_core_la_LIBADD += \
4358 noinst_LTLIBRARIES += \
4359 libsystemd-journal-core.la
4361 journal-install-hook:
4362 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4363 -chown 0:0 $(DESTDIR)/var/log/journal
4364 -chmod 755 $(DESTDIR)/var/log/journal
4365 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4366 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4368 journal-uninstall-hook:
4369 -rmdir $(DESTDIR)/var/log/journal/remote
4370 -rmdir $(DESTDIR)/var/log/journal/
4372 INSTALL_EXEC_HOOKS += journal-install-hook
4373 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4375 # ------------------------------------------------------------------------------
4376 # Update catalog on installation. Do not bother if installing
4377 # in DESTDIR, since this is likely for packaging purposes.
4378 catalog-update-hook:
4379 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4381 INSTALL_DATA_HOOKS += \
4384 catalog-remove-hook:
4385 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4387 UNINSTALL_DATA_HOOKS += \
4396 test-journal-syslog \
4397 test-journal-match \
4398 test-journal-stream \
4400 test-journal-verify \
4401 test-journal-interleaving \
4402 test-journal-flush \
4409 test-compress-benchmark
4412 pkginclude_HEADERS += \
4413 src/systemd/sd-journal.h \
4414 src/systemd/sd-messages.h \
4415 src/systemd/_sd-common.h
4417 libsystemd_journal_internal_la_SOURCES = \
4418 src/journal/sd-journal.c \
4419 src/systemd/sd-journal.h \
4420 src/systemd/_sd-common.h \
4421 src/journal/journal-file.c \
4422 src/journal/journal-file.h \
4423 src/journal/journal-vacuum.c \
4424 src/journal/journal-vacuum.h \
4425 src/journal/journal-verify.c \
4426 src/journal/journal-verify.h \
4427 src/journal/lookup3.c \
4428 src/journal/lookup3.h \
4429 src/journal/journal-send.c \
4430 src/journal/journal-def.h \
4431 src/journal/compress.h \
4432 src/journal/catalog.c \
4433 src/journal/catalog.h \
4434 src/journal/mmap-cache.c \
4435 src/journal/mmap-cache.h \
4436 src/journal/compress.c
4438 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4439 libsystemd_journal_internal_la_CFLAGS = \
4442 libsystemd_journal_internal_la_LIBADD = \
4446 libsystemd_journal_internal_la_CFLAGS += \
4449 libsystemd_journal_internal_la_LIBADD += \
4454 libsystemd_journal_internal_la_LIBADD += \
4459 libsystemd_journal_internal_la_SOURCES += \
4460 src/journal/journal-authenticate.c \
4461 src/journal/journal-authenticate.h \
4462 src/journal/fsprg.c \
4465 libsystemd_journal_internal_la_LIBADD += \
4468 # fsprg.c is a drop-in file using void pointer arithmetic
4469 libsystemd_journal_internal_la_CFLAGS += \
4474 noinst_LTLIBRARIES += \
4475 libsystemd-journal-internal.la
4477 rootlibexec_PROGRAMS += \
4480 rootbin_PROGRAMS += \
4486 dist_systemunit_DATA += \
4487 units/systemd-journald.socket \
4488 units/systemd-journald-dev-log.socket \
4489 units/systemd-journald-audit.socket
4491 nodist_systemunit_DATA += \
4492 units/systemd-journald.service \
4493 units/systemd-journal-flush.service \
4494 units/systemd-journal-catalog-update.service
4496 dist_pkgsysconf_DATA += \
4497 src/journal/journald.conf
4499 dist_catalog_DATA = \
4500 catalog/systemd.fr.catalog \
4501 catalog/systemd.it.catalog \
4502 catalog/systemd.pl.catalog \
4503 catalog/systemd.pt_BR.catalog \
4504 catalog/systemd.ru.catalog \
4505 catalog/systemd.catalog
4507 SOCKETS_TARGET_WANTS += \
4508 systemd-journald.socket \
4509 systemd-journald-dev-log.socket \
4510 systemd-journald-audit.socket
4512 SYSINIT_TARGET_WANTS += \
4513 systemd-journald.service \
4514 systemd-journal-flush.service \
4515 systemd-journal-catalog-update.service
4518 units/systemd-journald.service.in \
4519 units/systemd-journal-flush.service.in \
4520 units/systemd-journal-catalog-update.service.in \
4521 src/journal/journald-gperf.gperf
4524 src/journal/journald-gperf.c
4526 # ------------------------------------------------------------------------------
4528 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4530 rootlibexec_PROGRAMS += \
4531 systemd-journal-gatewayd
4533 systemd_journal_gatewayd_SOURCES = \
4534 src/journal-remote/journal-gatewayd.c \
4535 src/journal-remote/microhttpd-util.h \
4536 src/journal-remote/microhttpd-util.c
4538 systemd_journal_gatewayd_LDADD = \
4539 libsystemd-logs.la \
4540 libsystemd-journal-internal.la \
4541 libsystemd-internal.la \
4542 libsystemd-shared.la \
4546 systemd_journal_gatewayd_LDADD += \
4550 systemd_journal_gatewayd_CFLAGS = \
4552 $(MICROHTTPD_CFLAGS)
4554 systemd_journal_gatewayd_CPPFLAGS = \
4556 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4558 dist_systemunit_DATA += \
4559 units/systemd-journal-gatewayd.socket
4561 nodist_systemunit_DATA += \
4562 units/systemd-journal-gatewayd.service
4564 dist_gatewayddocumentroot_DATA = \
4565 src/journal-remote/browse.html
4570 units/systemd-journal-gatewayd.service.in
4572 # ------------------------------------------------------------------------------
4574 systemd_socket_proxyd_SOURCES = \
4575 src/socket-proxy/socket-proxyd.c
4577 systemd_socket_proxyd_LDADD = \
4578 libsystemd-logs.la \
4579 libsystemd-internal.la \
4580 libsystemd-journal-internal.la \
4581 libsystemd-shared.la \
4582 libsystemd-resolve.la
4584 # ------------------------------------------------------------------------------
4586 systemd_coredump_SOURCES = \
4587 src/journal/coredump.c \
4588 src/journal/coredump-vacuum.c \
4589 src/journal/coredump-vacuum.h
4591 systemd_coredump_LDADD = \
4592 libsystemd-journal-internal.la \
4593 libsystemd-label.la \
4594 libsystemd-internal.la \
4595 libsystemd-shared.la
4598 systemd_coredump_SOURCES += \
4599 src/journal/stacktrace.c \
4600 src/journal/stacktrace.h
4602 systemd_coredump_LDADD += \
4606 rootlibexec_PROGRAMS += \
4609 dist_pkgsysconf_DATA += \
4610 src/journal/coredump.conf
4613 systemd_coredump_LDADD += \
4617 coredumpctl_SOURCES = \
4618 src/journal/coredumpctl.c
4620 coredumpctl_LDADD = \
4621 libsystemd-journal-internal.la \
4622 libsystemd-internal.la \
4623 libsystemd-shared.la
4629 test-coredump-vacuum
4631 test_coredump_vacuum_SOURCES = \
4632 src/journal/test-coredump-vacuum.c \
4633 src/journal/coredump-vacuum.c \
4634 src/journal/coredump-vacuum.h
4636 test_coredump_vacuum_LDADD = \
4637 libsystemd-internal.la \
4638 libsystemd-shared.la
4640 dist_bashcompletion_DATA += \
4641 shell-completion/bash/coredumpctl
4643 dist_zshcompletion_DATA += \
4644 shell-completion/zsh/_coredumpctl
4647 sysctl.d/50-coredump.conf
4650 sysctl.d/50-coredump.conf
4654 sysctl.d/50-coredump.conf.in
4656 # ------------------------------------------------------------------------------
4658 systemd_binfmt_SOURCES = \
4661 systemd_binfmt_LDADD = \
4662 libsystemd-shared.la
4664 rootlibexec_PROGRAMS += \
4667 dist_systemunit_DATA += \
4668 units/proc-sys-fs-binfmt_misc.automount \
4669 units/proc-sys-fs-binfmt_misc.mount
4671 nodist_systemunit_DATA += \
4672 units/systemd-binfmt.service
4675 $(prefix)/lib/binfmt.d \
4676 $(sysconfdir)/binfmt.d
4678 SYSINIT_TARGET_WANTS += \
4679 systemd-binfmt.service \
4680 proc-sys-fs-binfmt_misc.automount
4685 units/systemd-binfmt.service.in
4687 # ------------------------------------------------------------------------------
4689 systemd_vconsole_setup_SOURCES = \
4690 src/vconsole/vconsole-setup.c
4692 systemd_vconsole_setup_LDADD = \
4693 libsystemd-shared.la
4695 rootlibexec_PROGRAMS += \
4696 systemd-vconsole-setup
4698 nodist_systemunit_DATA += \
4699 units/systemd-vconsole-setup.service
4701 nodist_udevrules_DATA += \
4702 src/vconsole/90-vconsole.rules
4704 SYSINIT_TARGET_WANTS += \
4705 systemd-vconsole-setup.service
4708 src/vconsole/90-vconsole.rules
4712 src/vconsole/90-vconsole.rules.in \
4713 units/systemd-vconsole-setup.service.in
4715 # ------------------------------------------------------------------------------
4717 systemd_bootchart_SOURCES = \
4718 src/bootchart/bootchart.c \
4719 src/bootchart/bootchart.h \
4720 src/bootchart/store.c \
4721 src/bootchart/store.h \
4722 src/bootchart/svg.c \
4725 systemd_bootchart_LDADD = \
4726 libsystemd-journal-internal.la \
4727 libsystemd-shared.la
4729 rootlibexec_PROGRAMS += \
4732 dist_pkgsysconf_DATA += \
4733 src/bootchart/bootchart.conf
4735 nodist_systemunit_DATA += \
4736 units/systemd-bootchart.service
4739 units/systemd-bootchart.service.in
4742 units/systemd-bootchart.service
4745 # ------------------------------------------------------------------------------
4746 if ENABLE_QUOTACHECK
4747 rootlibexec_PROGRAMS += \
4750 nodist_systemunit_DATA += \
4751 units/systemd-quotacheck.service
4753 systemd_quotacheck_SOURCES = \
4754 src/quotacheck/quotacheck.c
4756 systemd_quotacheck_LDADD = \
4757 libsystemd-shared.la
4761 units/systemd-quotacheck.service.in
4763 nodist_systemunit_DATA += \
4764 units/quotaon.service
4766 # ------------------------------------------------------------------------------
4767 if ENABLE_RANDOMSEED
4768 rootlibexec_PROGRAMS += \
4771 nodist_systemunit_DATA += \
4772 units/systemd-random-seed.service
4774 systemd_random_seed_SOURCES = \
4775 src/random-seed/random-seed.c
4777 systemd_random_seed_LDADD = \
4778 libsystemd-label.la \
4779 libsystemd-shared.la
4781 SYSINIT_TARGET_WANTS += \
4782 systemd-random-seed.service
4787 units/systemd-random-seed.service.in
4789 # ------------------------------------------------------------------------------
4791 rootlibexec_PROGRAMS += \
4794 nodist_systemunit_DATA += \
4795 units/systemd-backlight@.service
4797 systemd_backlight_SOURCES = \
4798 src/backlight/backlight.c
4800 systemd_backlight_LDADD = \
4801 libsystemd-label.la \
4802 libudev-internal.la \
4803 libsystemd-shared.la
4807 units/systemd-backlight@.service.in
4809 # ------------------------------------------------------------------------------
4811 rootlibexec_PROGRAMS += \
4814 nodist_systemunit_DATA += \
4815 units/systemd-rfkill@.service
4817 systemd_rfkill_SOURCES = \
4820 systemd_rfkill_LDADD = \
4821 libsystemd-label.la \
4822 libudev-internal.la \
4823 libsystemd-shared.la
4827 units/systemd-rfkill@.service.in
4829 # ------------------------------------------------------------------------------
4830 if HAVE_LIBCRYPTSETUP
4831 rootlibexec_PROGRAMS += \
4834 systemgenerator_PROGRAMS += \
4835 systemd-cryptsetup-generator
4837 dist_systemunit_DATA += \
4838 units/cryptsetup.target \
4839 units/cryptsetup-pre.target
4841 systemd_cryptsetup_SOURCES = \
4842 src/cryptsetup/cryptsetup.c
4844 systemd_cryptsetup_CFLAGS = \
4846 $(LIBCRYPTSETUP_CFLAGS)
4848 systemd_cryptsetup_LDADD = \
4849 libsystemd-label.la \
4850 libudev-internal.la \
4851 libsystemd-shared.la \
4852 $(LIBCRYPTSETUP_LIBS)
4854 systemd_cryptsetup_generator_SOURCES = \
4855 src/cryptsetup/cryptsetup-generator.c
4857 systemd_cryptsetup_generator_LDADD = \
4858 libsystemd-label.la \
4859 libsystemd-shared.la
4861 SYSINIT_TARGET_WANTS += \
4866 # ------------------------------------------------------------------------------
4868 systemd_hostnamed_SOURCES = \
4869 src/hostname/hostnamed.c
4871 systemd_hostnamed_LDADD = \
4872 libsystemd-label.la \
4873 libsystemd-internal.la \
4874 libsystemd-shared.la
4876 rootlibexec_PROGRAMS += \
4879 nodist_systemunit_DATA += \
4880 units/systemd-hostnamed.service
4882 dist_systemunit_DATA_busnames += \
4883 units/org.freedesktop.hostname1.busname
4885 dist_dbuspolicy_DATA += \
4886 src/hostname/org.freedesktop.hostname1.conf
4888 dist_dbussystemservice_DATA += \
4889 src/hostname/org.freedesktop.hostname1.service
4891 polkitpolicy_files += \
4892 src/hostname/org.freedesktop.hostname1.policy
4894 SYSTEM_UNIT_ALIASES += \
4895 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4897 BUSNAMES_TARGET_WANTS += \
4898 org.freedesktop.hostname1.busname
4900 hostnamectl_SOURCES = \
4901 src/hostname/hostnamectl.c
4903 hostnamectl_LDADD = \
4904 libsystemd-internal.la \
4905 libsystemd-shared.la
4910 dist_bashcompletion_DATA += \
4911 shell-completion/bash/hostnamectl
4913 dist_zshcompletion_DATA += \
4914 shell-completion/zsh/_hostnamectl
4918 polkitpolicy_in_files += \
4919 src/hostname/org.freedesktop.hostname1.policy.in
4922 units/systemd-hostnamed.service.in
4924 # ------------------------------------------------------------------------------
4925 dist_systemunit_DATA_busnames += \
4926 units/org.freedesktop.systemd1.busname
4928 BUSNAMES_TARGET_WANTS += \
4929 org.freedesktop.systemd1.busname
4931 # ------------------------------------------------------------------------------
4933 systemd_localed_SOURCES = \
4934 src/locale/localed.c
4936 systemd_localed_LDADD = \
4937 libsystemd-label.la \
4938 libsystemd-internal.la \
4939 libsystemd-shared.la \
4942 systemd_localed_CFLAGS = \
4946 nodist_systemunit_DATA += \
4947 units/systemd-localed.service
4949 dist_systemunit_DATA_busnames += \
4950 units/org.freedesktop.locale1.busname
4952 rootlibexec_PROGRAMS += \
4955 dist_dbuspolicy_DATA += \
4956 src/locale/org.freedesktop.locale1.conf
4958 dist_dbussystemservice_DATA += \
4959 src/locale/org.freedesktop.locale1.service
4961 polkitpolicy_files += \
4962 src/locale/org.freedesktop.locale1.policy
4964 SYSTEM_UNIT_ALIASES += \
4965 systemd-localed.service dbus-org.freedesktop.locale1.service
4967 BUSNAMES_TARGET_WANTS += \
4968 org.freedesktop.locale1.busname
4970 dist_pkgdata_DATA += \
4971 src/locale/kbd-model-map
4973 dist_noinst_SCRIPT = \
4974 src/locale/generate-kbd-model-map
4976 localectl_SOURCES = \
4977 src/locale/localectl.c
4980 libsystemd-internal.la \
4981 libsystemd-shared.la
4986 dist_bashcompletion_DATA += \
4987 shell-completion/bash/localectl
4989 dist_zshcompletion_DATA += \
4990 shell-completion/zsh/_localectl
4994 .PHONY: update-kbd-model-map
4996 polkitpolicy_in_files += \
4997 src/locale/org.freedesktop.locale1.policy.in
5000 units/systemd-localed.service.in
5002 # ------------------------------------------------------------------------------
5004 systemd_timedated_SOURCES = \
5005 src/timedate/timedated.c
5007 systemd_timedated_LDADD = \
5008 libsystemd-label.la \
5009 libsystemd-internal.la \
5010 libsystemd-shared.la
5012 rootlibexec_PROGRAMS += \
5015 dist_dbussystemservice_DATA += \
5016 src/timedate/org.freedesktop.timedate1.service
5018 dist_dbuspolicy_DATA += \
5019 src/timedate/org.freedesktop.timedate1.conf
5021 nodist_systemunit_DATA += \
5022 units/systemd-timedated.service
5024 dist_systemunit_DATA_busnames += \
5025 units/org.freedesktop.timedate1.busname
5027 polkitpolicy_files += \
5028 src/timedate/org.freedesktop.timedate1.policy
5030 SYSTEM_UNIT_ALIASES += \
5031 systemd-timedated.service dbus-org.freedesktop.timedate1.service
5033 BUSNAMES_TARGET_WANTS += \
5034 org.freedesktop.timedate1.busname
5036 timedatectl_SOURCES = \
5037 src/timedate/timedatectl.c
5039 timedatectl_LDADD = \
5040 libsystemd-internal.la \
5041 libsystemd-shared.la
5046 dist_bashcompletion_DATA += \
5047 shell-completion/bash/timedatectl
5049 dist_zshcompletion_DATA += \
5050 shell-completion/zsh/_timedatectl
5053 polkitpolicy_in_files += \
5054 src/timedate/org.freedesktop.timedate1.policy.in
5057 units/systemd-timedated.service.in
5059 # ------------------------------------------------------------------------------
5061 systemd_timesyncd_SOURCES = \
5062 src/timesync/timesyncd.c \
5063 src/timesync/timesyncd-manager.c \
5064 src/timesync/timesyncd-manager.h \
5065 src/timesync/timesyncd-conf.c \
5066 src/timesync/timesyncd-conf.h \
5067 src/timesync/timesyncd-server.c \
5068 src/timesync/timesyncd-server.h
5070 nodist_systemd_timesyncd_SOURCES = \
5071 src/timesync/timesyncd-gperf.c
5074 src/timesync/timesyncd-gperf.gperf
5077 src/timesync/timesyncd-gperf.c
5079 systemd_timesyncd_LDADD = \
5080 libsystemd-resolve.la \
5081 libsystemd-network.la \
5082 libsystemd-label.la \
5083 libsystemd-internal.la \
5084 libsystemd-shared.la
5086 rootlibexec_PROGRAMS += \
5089 nodist_systemunit_DATA += \
5090 units/systemd-timesyncd.service
5092 GENERAL_ALIASES += \
5093 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5096 units/systemd-timesyncd.service.in
5098 nodist_pkgsysconf_DATA += \
5099 src/timesync/timesyncd.conf
5102 src/timesync/timesyncd.conf.in
5105 src/timesync/timesyncd.conf
5108 # ------------------------------------------------------------------------------
5110 libnss_myhostname_la_SOURCES = \
5111 src/nss-myhostname/nss-myhostname.sym \
5112 src/nss-myhostname/nss-myhostname.c
5114 libnss_myhostname_la_LDFLAGS = \
5121 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5123 libnss_myhostname_la_LIBADD = \
5124 libsystemd-shared.la \
5125 libsystemd-internal.la
5127 lib_LTLIBRARIES += \
5128 libnss_myhostname.la
5131 # ------------------------------------------------------------------------------
5133 systemd_machined_SOURCES = \
5134 src/machine/machined.c \
5135 src/machine/machined.h
5137 systemd_machined_LDADD = \
5138 libsystemd-machine-core.la
5140 rootlibexec_PROGRAMS += \
5143 libsystemd_machine_core_la_SOURCES = \
5144 src/machine/machine.c \
5145 src/machine/machine.h \
5146 src/machine/machined-dbus.c \
5147 src/machine/machine-dbus.c \
5148 src/machine/machine-dbus.h \
5149 src/machine/image-dbus.c \
5150 src/machine/image-dbus.h
5152 libsystemd_machine_core_la_LIBADD = \
5153 libsystemd-label.la \
5154 libsystemd-internal.la \
5155 libudev-internal.la \
5156 libsystemd-shared.la
5158 noinst_LTLIBRARIES += \
5159 libsystemd-machine-core.la
5161 machinectl_SOURCES = \
5162 src/machine/machinectl.c
5164 machinectl_LDADD = \
5165 libsystemd-internal.la \
5166 libsystemd-logs.la \
5167 libsystemd-journal-internal.la \
5168 libsystemd-shared.la
5170 rootbin_PROGRAMS += \
5173 dist_bashcompletion_DATA += \
5174 shell-completion/bash/machinectl
5176 test_machine_tables_SOURCES = \
5177 src/machine/test-machine-tables.c
5179 test_machine_tables_LDADD = \
5180 libsystemd-machine-core.la
5185 nodist_systemunit_DATA += \
5186 units/systemd-machined.service
5188 dist_systemunit_DATA += \
5191 dist_systemunit_DATA_busnames += \
5192 units/org.freedesktop.machine1.busname
5194 dist_dbussystemservice_DATA += \
5195 src/machine/org.freedesktop.machine1.service
5197 dist_dbuspolicy_DATA += \
5198 src/machine/org.freedesktop.machine1.conf
5200 polkitpolicy_files += \
5201 src/machine/org.freedesktop.machine1.policy
5203 polkitpolicy_in_files += \
5204 src/machine/org.freedesktop.machine1.policy.in
5206 dist_zshcompletion_DATA += \
5207 shell-completion/zsh/_machinectl \
5208 shell-completion/zsh/_sd_machines
5210 SYSTEM_UNIT_ALIASES += \
5211 systemd-machined.service dbus-org.freedesktop.machine1.service
5213 BUSNAMES_TARGET_WANTS += \
5214 org.freedesktop.machine1.busname
5217 units/systemd-machined.service.in
5219 libnss_mymachines_la_SOURCES = \
5220 src/nss-mymachines/nss-mymachines.sym \
5221 src/nss-mymachines/nss-mymachines.c
5223 libnss_mymachines_la_LDFLAGS = \
5230 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5232 libnss_mymachines_la_LIBADD = \
5233 libsystemd-shared.la \
5234 libsystemd-internal.la
5236 lib_LTLIBRARIES += \
5237 libnss_mymachines.la
5244 systemd_import_SOURCES = \
5245 src/import/import.c \
5246 src/import/import-raw.c \
5247 src/import/import-raw.h \
5248 src/import/import-dkr.c \
5249 src/import/import-dkr.h \
5250 src/import/curl-util.c \
5251 src/import/curl-util.h \
5252 src/import/aufs-util.c \
5253 src/import/aufs-util.h \
5254 src/import/qcow2-util.c \
5255 src/import/qcow2-util.h
5257 systemd_import_CFLAGS = \
5263 systemd_import_LDADD = \
5264 libsystemd-internal.la \
5265 libsystemd-label.la \
5266 libsystemd-shared.la \
5277 test_qcow2_SOURCES = \
5278 src/import/test-qcow2.c \
5279 src/import/qcow2-util.c \
5280 src/import/qcow2-util.h
5282 test_qcow2_CFLAGS = \
5286 test_qcow2_LDADD = \
5287 libsystemd-internal.la \
5288 libsystemd-label.la \
5289 libsystemd-shared.la \
5295 # ------------------------------------------------------------------------------
5297 systemd_resolved_SOURCES = \
5298 src/resolve/resolved.c \
5299 src/resolve/resolved-manager.c \
5300 src/resolve/resolved-manager.h \
5301 src/resolve/resolved-conf.c \
5302 src/resolve/resolved-conf.h \
5303 src/resolve/resolved-bus.c \
5304 src/resolve/resolved-bus.h \
5305 src/resolve/resolved-link.h \
5306 src/resolve/resolved-link.c \
5307 src/resolve/resolved-def.h \
5308 src/resolve/resolved-dns-domain.h \
5309 src/resolve/resolved-dns-domain.c \
5310 src/resolve/resolved-dns-rr.h \
5311 src/resolve/resolved-dns-rr.c \
5312 src/resolve/resolved-dns-question.h \
5313 src/resolve/resolved-dns-question.c \
5314 src/resolve/resolved-dns-answer.h \
5315 src/resolve/resolved-dns-answer.c \
5316 src/resolve/resolved-dns-packet.h \
5317 src/resolve/resolved-dns-packet.c \
5318 src/resolve/resolved-dns-query.h \
5319 src/resolve/resolved-dns-query.c \
5320 src/resolve/resolved-dns-transaction.h \
5321 src/resolve/resolved-dns-transaction.c \
5322 src/resolve/resolved-dns-scope.h \
5323 src/resolve/resolved-dns-scope.c \
5324 src/resolve/resolved-dns-server.h \
5325 src/resolve/resolved-dns-server.c \
5326 src/resolve/resolved-dns-cache.h \
5327 src/resolve/resolved-dns-cache.c \
5328 src/resolve/resolved-dns-zone.h \
5329 src/resolve/resolved-dns-zone.c \
5330 src/resolve/resolved-dns-stream.h \
5331 src/resolve/resolved-dns-stream.c \
5332 src/resolve/dns-type.c \
5333 src/resolve/dns-type.h \
5334 src/resolve/dns_type-from-name.h \
5335 src/resolve/dns_type-to-name.h
5337 nodist_systemd_resolved_SOURCES = \
5338 src/resolve/resolved-gperf.c
5341 src/resolve/resolved-gperf.gperf \
5342 src/resolve/dns_type-from-name.gperf
5345 src/resolve/resolved-gperf.c
5347 systemd_resolved_LDADD = \
5348 libsystemd-network.la \
5349 libsystemd-label.la \
5350 libsystemd-internal.la \
5351 libsystemd-shared.la \
5354 rootlibexec_PROGRAMS += \
5357 nodist_systemunit_DATA += \
5358 units/systemd-resolved.service
5360 dist_systemunit_DATA_busnames += \
5361 units/org.freedesktop.resolve1.busname
5363 dist_dbuspolicy_DATA += \
5364 src/resolve/org.freedesktop.resolve1.conf
5366 dist_dbussystemservice_DATA += \
5367 src/resolve/org.freedesktop.resolve1.service
5370 units/systemd-resolved.service.in
5372 SYSTEM_UNIT_ALIASES += \
5373 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5375 BUSNAMES_TARGET_WANTS += \
5376 org.freedesktop.resolve1.busname
5378 GENERAL_ALIASES += \
5379 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5381 nodist_pkgsysconf_DATA += \
5382 src/resolve/resolved.conf
5385 src/resolve/resolved.conf.in
5388 src/resolve/resolved.conf
5393 test_dns_domain_SOURCES = \
5394 src/resolve/resolved-dns-domain.h \
5395 src/resolve/resolved-dns-domain.c \
5396 src/resolve/test-dns-domain.c
5398 test_dns_domain_LDADD = \
5399 libsystemd-network.la \
5400 libsystemd-label.la \
5401 libsystemd-internal.la \
5402 libsystemd-shared.la \
5405 libnss_resolve_la_SOURCES = \
5406 src/nss-resolve/nss-resolve.sym \
5407 src/nss-resolve/nss-resolve.c
5409 libnss_resolve_la_LDFLAGS = \
5416 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5418 libnss_resolve_la_LIBADD = \
5419 libsystemd-internal.la \
5420 libsystemd-shared.la
5422 lib_LTLIBRARIES += \
5425 systemd_resolve_host_SOURCES = \
5426 src/resolve-host/resolve-host.c \
5427 src/resolve/resolved-dns-packet.c \
5428 src/resolve/resolved-dns-packet.h \
5429 src/resolve/resolved-dns-rr.c \
5430 src/resolve/resolved-dns-rr.h \
5431 src/resolve/resolved-dns-answer.c \
5432 src/resolve/resolved-dns-answer.h \
5433 src/resolve/resolved-dns-question.c \
5434 src/resolve/resolved-dns-question.h \
5435 src/resolve/resolved-dns-domain.c \
5436 src/resolve/resolved-dns-domain.h \
5437 src/resolve/dns-type.c \
5438 src/resolve/dns-type.h \
5439 src/resolve/dns_type-from-name.h \
5440 src/resolve/dns_type-to-name.h
5442 systemd_resolve_host_LDADD = \
5443 libsystemd-internal.la \
5444 libsystemd-shared.la \
5447 rootlibexec_PROGRAMS += \
5448 systemd-resolve-host
5452 # ------------------------------------------------------------------------------
5454 rootlibexec_PROGRAMS += \
5457 systemd_networkd_SOURCES = \
5458 src/network/networkd.c
5460 systemd_networkd_LDADD = \
5461 libsystemd-networkd-core.la
5464 systemd_networkd_LDADD += \
5468 noinst_LTLIBRARIES += \
5469 libsystemd-networkd-core.la
5471 libsystemd_networkd_core_la_CFLAGS = \
5474 libsystemd_networkd_core_la_SOURCES = \
5475 src/libsystemd-network/network-internal.h \
5476 src/network/networkd.h \
5477 src/network/networkd-link.h \
5478 src/network/networkd-netdev.h \
5479 src/network/networkd-netdev-tunnel.h \
5480 src/network/networkd-netdev-veth.h \
5481 src/network/networkd-netdev-vxlan.h \
5482 src/network/networkd-netdev-vlan.h \
5483 src/network/networkd-netdev-macvlan.h \
5484 src/network/networkd-netdev-ipvlan.h \
5485 src/network/networkd-netdev-dummy.h \
5486 src/network/networkd-netdev-tuntap.h \
5487 src/network/networkd-netdev-bond.h \
5488 src/network/networkd-netdev-bridge.h \
5489 src/network/networkd-netdev.c \
5490 src/network/networkd-netdev-tunnel.c \
5491 src/network/networkd-netdev-veth.c \
5492 src/network/networkd-netdev-vxlan.c \
5493 src/network/networkd-netdev-vlan.c \
5494 src/network/networkd-netdev-macvlan.c \
5495 src/network/networkd-netdev-ipvlan.c \
5496 src/network/networkd-netdev-dummy.c \
5497 src/network/networkd-netdev-tuntap.c \
5498 src/network/networkd-netdev-bond.c \
5499 src/network/networkd-netdev-bridge.c \
5500 src/network/networkd-link.c \
5501 src/network/networkd-ipv4ll.c \
5502 src/network/networkd-dhcp4.c \
5503 src/network/networkd-dhcp6.c \
5504 src/network/networkd-network.c \
5505 src/network/networkd-address.c \
5506 src/network/networkd-route.c \
5507 src/network/networkd-manager.c \
5508 src/network/networkd-fdb.c \
5509 src/network/networkd-address-pool.c
5511 nodist_libsystemd_networkd_core_la_SOURCES = \
5512 src/network/networkd-network-gperf.c \
5513 src/network/networkd-netdev-gperf.c
5515 libsystemd_networkd_core_la_LIBADD = \
5516 libudev-internal.la \
5517 libsystemd-internal.la \
5518 libsystemd-network.la \
5519 libsystemd-label.la \
5520 libsystemd-shared.la
5522 rootlibexec_PROGRAMS += \
5523 systemd-networkd-wait-online
5525 systemd_networkd_wait_online_CFLAGS = \
5528 systemd_networkd_wait_online_SOURCES = \
5529 src/libsystemd-network/network-internal.h \
5530 src/network/networkd-wait-online.h \
5531 src/network/networkd-wait-online-link.h \
5532 src/network/networkd-wait-online.c \
5533 src/network/networkd-wait-online-manager.c \
5534 src/network/networkd-wait-online-link.c
5536 systemd_networkd_wait_online_LDADD = \
5537 libsystemd-network.la \
5538 libudev-internal.la \
5539 libsystemd-internal.la \
5540 libsystemd-shared.la
5542 rootbin_PROGRAMS += \
5545 networkctl_SOURCES = \
5546 src/network/networkctl.c
5548 networkctl_LDADD = \
5549 libsystemd-internal.la \
5550 libudev-internal.la \
5551 libsystemd-shared.la \
5552 libsystemd-network.la
5554 test_network_SOURCES = \
5555 src/network/test-network.c
5557 test_network_LDADD = \
5558 libsystemd-networkd-core.la
5561 test_network_LDADD += \
5565 test_network_tables_SOURCES = \
5566 src/network/test-network-tables.c \
5567 src/shared/test-tables.h
5569 test_network_tables_LDADD = \
5570 libsystemd-networkd-core.la \
5574 test_network_tables_LDADD += \
5582 nodist_systemunit_DATA += \
5583 units/systemd-networkd.service \
5584 units/systemd-networkd-wait-online.service
5586 GENERAL_ALIASES += \
5587 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5588 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5591 src/network/networkd-network-gperf.gperf \
5592 src/network/networkd-netdev-gperf.gperf \
5593 units/systemd-networkd.service.in \
5594 units/systemd-networkd-wait-online.service.in
5597 src/network/networkd-network-gperf.c \
5598 src/network/networkd-netdev-gperf.c
5601 # ------------------------------------------------------------------------------
5603 systemd_logind_SOURCES = \
5604 src/login/logind.c \
5607 nodist_systemd_logind_SOURCES = \
5608 src/login/logind-gperf.c
5610 systemd_logind_LDADD = \
5611 libsystemd-logind-core.la
5613 libsystemd_logind_core_la_SOURCES = \
5614 src/login/logind-core.c \
5615 src/login/logind-device.c \
5616 src/login/logind-device.h \
5617 src/login/logind-button.c \
5618 src/login/logind-button.h \
5619 src/login/logind-action.c \
5620 src/login/logind-action.h \
5621 src/login/logind-seat.c \
5622 src/login/logind-seat.h \
5623 src/login/logind-session.c \
5624 src/login/logind-session.h \
5625 src/login/logind-session-device.c \
5626 src/login/logind-session-device.h \
5627 src/login/logind-user.c \
5628 src/login/logind-user.h \
5629 src/login/logind-inhibit.c \
5630 src/login/logind-inhibit.h \
5631 src/login/logind-dbus.c \
5632 src/login/logind-session-dbus.c \
5633 src/login/logind-seat-dbus.c \
5634 src/login/logind-user-dbus.c \
5635 src/login/logind-acl.h
5637 libsystemd_logind_core_la_LIBADD = \
5638 libsystemd-label.la \
5639 libsystemd-internal.la \
5640 libudev-internal.la \
5641 libsystemd-shared.la
5644 libsystemd_logind_core_la_SOURCES += \
5645 src/login/logind-acl.c
5647 libsystemd_logind_core_la_LIBADD += \
5651 noinst_LTLIBRARIES += \
5652 libsystemd-logind-core.la
5654 systemd_user_sessions_SOURCES = \
5655 src/login/user-sessions.c
5657 systemd_user_sessions_LDADD = \
5658 libsystemd-shared.la
5660 rootlibexec_PROGRAMS += \
5662 systemd-user-sessions
5664 loginctl_SOURCES = \
5665 src/login/loginctl.c \
5666 src/login/sysfs-show.h \
5667 src/login/sysfs-show.c
5670 libsystemd-internal.la \
5671 libsystemd-logs.la \
5672 libsystemd-journal-internal.la \
5673 libudev-internal.la \
5674 libsystemd-shared.la
5676 rootbin_PROGRAMS += \
5679 dist_bashcompletion_DATA += \
5680 shell-completion/bash/loginctl
5682 dist_zshcompletion_DATA += \
5683 shell-completion/zsh/_loginctl \
5684 shell-completion/zsh/_systemd-inhibit
5686 systemd_inhibit_SOURCES = \
5689 systemd_inhibit_LDADD = \
5690 libsystemd-internal.la \
5691 libsystemd-shared.la
5693 rootbin_PROGRAMS += \
5696 test_login_SOURCES = \
5697 src/libsystemd/sd-login/test-login.c
5699 test_login_LDADD = \
5700 libsystemd-internal.la \
5701 libsystemd-shared.la
5703 test_login_shared_SOURCES = \
5704 src/login/test-login-shared.c
5706 test_login_shared_LDADD = \
5707 libsystemd-internal.la \
5708 libsystemd-shared.la
5710 test_inhibit_SOURCES = \
5711 src/login/test-inhibit.c
5713 test_inhibit_LDADD = \
5714 libsystemd-internal.la \
5715 libsystemd-shared.la
5717 test_login_tables_SOURCES = \
5718 src/login/test-login-tables.c
5720 test_login_tables_LDADD = \
5721 libsystemd-logind-core.la
5732 pam_systemd_la_SOURCES = \
5733 src/login/pam_systemd.sym \
5734 src/login/pam_systemd.c
5736 pam_systemd_la_CFLAGS = \
5741 pam_systemd_la_LDFLAGS = \
5747 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5749 pam_systemd_la_LIBADD = \
5750 libsystemd-internal.la \
5751 libsystemd-shared.la \
5754 pamlib_LTLIBRARIES = \
5757 dist_pamconf_DATA = \
5758 src/login/systemd-user
5761 nodist_systemunit_DATA += \
5762 units/systemd-logind.service \
5763 units/systemd-user-sessions.service
5765 dist_systemunit_DATA += \
5768 dist_systemunit_DATA_busnames += \
5769 units/org.freedesktop.login1.busname
5771 dist_dbussystemservice_DATA += \
5772 src/login/org.freedesktop.login1.service
5774 dist_dbuspolicy_DATA += \
5775 src/login/org.freedesktop.login1.conf
5777 dist_pkgsysconf_DATA += \
5778 src/login/logind.conf
5780 polkitpolicy_files += \
5781 src/login/org.freedesktop.login1.policy
5786 MULTI_USER_TARGET_WANTS += \
5787 systemd-logind.service \
5788 systemd-user-sessions.service
5790 SYSTEM_UNIT_ALIASES += \
5791 systemd-logind.service dbus-org.freedesktop.login1.service
5793 BUSNAMES_TARGET_WANTS += \
5794 org.freedesktop.login1.busname
5796 dist_udevrules_DATA += \
5797 src/login/70-uaccess.rules \
5798 src/login/70-power-switch.rules
5800 nodist_udevrules_DATA += \
5801 src/login/71-seat.rules \
5802 src/login/73-seat-late.rules
5805 src/login/logind-gperf.c \
5806 src/login/71-seat.rules \
5807 src/login/73-seat-late.rules
5810 polkitpolicy_in_files += \
5811 src/login/org.freedesktop.login1.policy.in
5814 src/login/logind-gperf.gperf \
5815 src/login/71-seat.rules.in \
5816 src/login/73-seat-late.rules.in \
5817 units/systemd-logind.service.in \
5818 units/systemd-user-sessions.service.in
5820 # ------------------------------------------------------------------------------
5821 if HAVE_PYTHON_DEVEL
5822 pkgpyexec_LTLIBRARIES = \
5829 _journal_la_SOURCES = \
5830 src/python-systemd/_journal.c
5832 _journal_la_CFLAGS = \
5834 -fvisibility=default \
5835 $(PYTHON_DEVEL_CFLAGS)
5837 _journal_la_LDFLAGS = \
5843 _journal_la_LIBADD = \
5844 $(PYTHON_DEVEL_LIBS) \
5847 id128_la_SOURCES = \
5848 src/python-systemd/id128.c \
5849 src/python-systemd/pyutil.c \
5850 src/python-systemd/pyutil.h
5852 nodist_id128_la_SOURCES = \
5853 src/python-systemd/id128-constants.h
5857 -fvisibility=default \
5858 $(PYTHON_DEVEL_CFLAGS) \
5859 -I$(top_builddir)/src/python-systemd
5861 id128_la_LDFLAGS = \
5868 $(PYTHON_DEVEL_LIBS) \
5869 libsystemd-shared.la \
5872 _daemon_la_SOURCES = \
5873 src/python-systemd/_daemon.c \
5874 src/python-systemd/pyutil.c \
5875 src/python-systemd/pyutil.h
5877 _daemon_la_CFLAGS = \
5879 -fvisibility=default \
5880 $(PYTHON_DEVEL_CFLAGS) \
5881 -I$(top_builddir)/src/python-systemd
5883 _daemon_la_LDFLAGS = \
5889 _daemon_la_LIBADD = \
5890 $(PYTHON_DEVEL_LIBS) \
5891 libsystemd-shared.la \
5894 _reader_la_SOURCES = \
5895 src/python-systemd/_reader.c \
5896 src/python-systemd/pyutil.c \
5897 src/python-systemd/pyutil.h
5899 _reader_la_CFLAGS = \
5901 -fvisibility=default \
5902 $(PYTHON_DEVEL_CFLAGS)
5904 _reader_la_LDFLAGS = \
5910 _reader_la_LIBADD = \
5911 $(PYTHON_DEVEL_LIBS) \
5912 libsystemd-shared.la \
5915 login_la_SOURCES = \
5916 src/python-systemd/login.c \
5917 src/python-systemd/pyutil.c \
5918 src/python-systemd/pyutil.h
5922 -fvisibility=default \
5923 $(PYTHON_DEVEL_CFLAGS)
5925 login_la_LDFLAGS = \
5932 $(PYTHON_DEVEL_LIBS) \
5933 libsystemd-shared.la \
5936 dist_pkgpyexec_PYTHON = \
5937 src/python-systemd/journal.py \
5938 src/python-systemd/daemon.py \
5939 src/python-systemd/__init__.py
5941 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5942 $(AM_V_at)$(MKDIR_P) $(dir $@)
5943 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5946 src/python-systemd/id128-constants.h
5948 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5950 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5951 $(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/
5952 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5955 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5956 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5959 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5960 $(MAKE) DESTDIR="$$dir" install && \
5961 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5966 CLEAN_LOCAL_HOOKS += clean-sphinx
5968 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5971 -rm -rf docs/html/python-systemd/
5973 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5975 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5976 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5978 # ------------------------------------------------------------------------------
5979 if ENABLE_COMPAT_LIBS
5981 src/compat-libs/linkwarning.h
5983 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5984 $(AM_V_at)$(MKDIR_P) $(dir $@)
5985 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5988 libsystemd-journal.c \
5989 libsystemd-login.c \
5990 libsystemd-id128.c \
5993 libsystemd_journal_la_SOURCES = \
5994 libsystemd-journal.c \
5995 src/compat-libs/libsystemd-journal.sym
5997 libsystemd_journal_la_CPPFLAGS = \
5999 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6001 libsystemd_journal_la_LDFLAGS = \
6003 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
6004 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
6006 libsystemd_journal_la_LIBADD = \
6007 libsystemd-journal-internal.la \
6008 libsystemd-internal.la \
6009 libsystemd-shared.la
6011 libsystemd_login_la_SOURCES = \
6012 libsystemd-login.c \
6013 src/compat-libs/libsystemd-login.sym
6015 libsystemd_login_la_CPPFLAGS = \
6017 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6019 libsystemd_login_la_LDFLAGS = \
6021 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
6022 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
6024 libsystemd_login_la_LIBADD = \
6025 libsystemd-internal.la \
6026 libsystemd-shared.la
6028 libsystemd_id128_la_SOURCES = \
6029 libsystemd-id128.c \
6030 src/compat-libs/libsystemd-id128.sym
6032 libsystemd_id128_la_CPPFLAGS = \
6034 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6036 libsystemd_id128_la_LDFLAGS = \
6038 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
6039 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
6041 libsystemd_id128_la_LIBADD = \
6042 libsystemd-internal.la \
6043 libsystemd-shared.la
6045 libsystemd_daemon_la_SOURCES = \
6046 libsystemd-daemon.c \
6047 src/compat-libs/libsystemd-daemon.sym
6049 libsystemd_daemon_la_CPPFLAGS = \
6051 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6053 libsystemd_daemon_la_LDFLAGS = \
6055 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
6056 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
6058 libsystemd_daemon_la_LIBADD = \
6059 libsystemd-internal.la \
6060 libsystemd-shared.la
6062 lib_LTLIBRARIES += \
6063 libsystemd-journal.la \
6064 libsystemd-login.la \
6065 libsystemd-id128.la \
6066 libsystemd-daemon.la
6068 pkgconfiglib_DATA += \
6069 src/compat-libs/libsystemd-journal.pc \
6070 src/compat-libs/libsystemd-login.pc \
6071 src/compat-libs/libsystemd-id128.pc \
6072 src/compat-libs/libsystemd-daemon.pc
6074 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
6075 compat-lib-install-hook:
6076 libname=libsystemd-login.so && $(move-to-rootlibdir)
6077 libname=libsystemd-journal.so && $(move-to-rootlibdir)
6078 libname=libsystemd-id128.so && $(move-to-rootlibdir)
6079 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
6081 compat-lib-uninstall-hook:
6082 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
6083 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
6084 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
6085 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
6087 INSTALL_EXEC_HOOKS += compat-lib-install-hook
6088 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
6092 src/compat-libs/libsystemd-journal.pc.in \
6093 src/compat-libs/libsystemd-login.pc.in \
6094 src/compat-libs/libsystemd-id128.pc.in \
6095 src/compat-libs/libsystemd-daemon.pc.in
6097 # ------------------------------------------------------------------------------
6099 '|rootlibexecdir=$(rootlibexecdir)|' \
6100 '|rootbindir=$(rootbindir)|' \
6101 '|bindir=$(bindir)|' \
6102 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6103 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6104 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6105 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6106 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6107 '|pkgdatadir=$(pkgdatadir)|' \
6108 '|systemunitdir=$(systemunitdir)|' \
6109 '|userunitdir=$(userunitdir)|' \
6110 '|systempresetdir=$(systempresetdir)|' \
6111 '|userpresetdir=$(userpresetdir)|' \
6112 '|udevhwdbdir=$(udevhwdbdir)|' \
6113 '|udevrulesdir=$(udevrulesdir)|' \
6114 '|catalogdir=$(catalogdir)|' \
6115 '|tmpfilesdir=$(tmpfilesdir)|' \
6116 '|sysusersdir=$(sysusersdir)|' \
6117 '|sysctldir=$(sysctldir)|' \
6118 '|systemgeneratordir=$(systemgeneratordir)|' \
6119 '|usergeneratordir=$(usergeneratordir)|' \
6120 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6121 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6122 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6123 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6124 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6125 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6126 '|prefix=$(prefix)|' \
6127 '|exec_prefix=$(exec_prefix)|' \
6128 '|libdir=$(libdir)|' \
6129 '|includedir=$(includedir)|' \
6130 '|VERSION=$(VERSION)|' \
6131 '|rootprefix=$(rootprefix)|' \
6132 '|udevlibexecdir=$(udevlibexecdir)|' \
6133 '|SUSHELL=$(SUSHELL)|' \
6134 '|DEBUGTTY=$(DEBUGTTY)|' \
6137 '|MKDIR_P=$(MKDIR_P)|' \
6138 '|QUOTAON=$(QUOTAON)|' \
6139 '|QUOTACHECK=$(QUOTACHECK)|' \
6140 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6141 '|VARLOGDIR=$(varlogdir)|' \
6142 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6143 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6144 '|PYTHON=$(PYTHON)|' \
6145 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6146 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6147 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6148 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6149 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6150 '|TTY_GID=$(TTY_GID)|' \
6151 '|systemsleepdir=$(systemsleepdir)|' \
6152 '|systemshutdowndir=$(systemshutdowndir)|' \
6153 '|binfmtdir=$(binfmtdir)|' \
6154 '|modulesloaddir=$(modulesloaddir)|'
6157 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6158 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6167 sysctl.d/%: sysctl.d/%.in
6176 src/core/macros.%: src/core/macros.%.in
6179 src/%.policy.in: src/%.policy.in.in
6182 shell-completion/%: shell-completion/%.in
6193 $(AM_V_GEN)chmod +x $@
6195 src/%.c: src/%.gperf
6196 $(AM_V_at)$(MKDIR_P) $(dir $@)
6197 $(AM_V_GPERF)$(GPERF) < $< > $@
6200 $(AM_V_at)$(MKDIR_P) $(dir $@)
6201 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6203 sysusers.d/%: sysusers.d/%.m4
6204 $(AM_V_at)$(MKDIR_P) $(dir $@)
6205 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6207 tmpfiles.d/%: tmpfiles.d/%.m4
6208 $(AM_V_at)$(MKDIR_P) $(dir $@)
6209 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6213 $(AM_V_at)$(MKDIR_P) $(dir $@)
6214 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6216 units/user/%: units/user/%.m4
6217 $(AM_V_at)$(MKDIR_P) $(dir $@)
6218 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6221 nodist_polkitpolicy_DATA = \
6222 $(polkitpolicy_files) \
6223 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6227 $(polkitpolicy_in_files) \
6228 $(polkitpolicy_in_in_files)
6231 $(nodist_systemunit_DATA) \
6232 $(nodist_userunit_DATA) \
6233 $(pkgconfiglib_DATA) \
6234 $(nodist_polkitpolicy_DATA)
6236 # ------------------------------------------------------------------------------
6238 man/custom-entities.ent: configure.ac
6239 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6240 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6241 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6245 man/custom-entities.ent
6250 --stringparam man.output.quietly 1 \
6251 --stringparam funcsynopsis.style ansi \
6252 --stringparam man.authors.section.enabled 0 \
6253 --stringparam man.copyright.section.enabled 0 \
6254 --stringparam systemd.version $(VERSION) \
6255 --path '$(builddir)/man:$(srcdir)/man'
6257 XSLTPROC_PROCESS_MAN = \
6258 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6260 XSLTPROC_PROCESS_HTML = \
6261 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6263 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6264 $(XSLTPROC_PROCESS_MAN)
6266 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6267 $(XSLTPROC_PROCESS_MAN)
6269 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6270 $(XSLTPROC_PROCESS_MAN)
6272 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6273 $(XSLTPROC_PROCESS_MAN)
6275 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6276 $(XSLTPROC_PROCESS_MAN)
6278 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6279 $(XSLTPROC_PROCESS_HTML)
6282 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6288 man/custom-html.xsl \
6291 # ------------------------------------------------------------------------------
6294 docs/sysvinit/README
6299 docs/sysvinit/README: docs/sysvinit/README.in
6302 docs/var-log/README: docs/var-log/README.in
6306 docs/sysvinit/README \
6311 docs/sysvinit/README.in \
6312 docs/var-log/README.in
6314 SOCKETS_TARGET_WANTS += \
6315 systemd-initctl.socket \
6316 systemd-shutdownd.socket
6320 RUNLEVEL1_TARGET_WANTS += \
6321 systemd-update-utmp-runlevel.service
6322 RUNLEVEL2_TARGET_WANTS += \
6323 systemd-update-utmp-runlevel.service
6324 RUNLEVEL3_TARGET_WANTS += \
6325 systemd-update-utmp-runlevel.service
6326 RUNLEVEL4_TARGET_WANTS += \
6327 systemd-update-utmp-runlevel.service
6328 RUNLEVEL5_TARGET_WANTS += \
6329 systemd-update-utmp-runlevel.service
6332 SYSINIT_TARGET_WANTS += \
6333 systemd-update-utmp.service
6336 SYSINIT_TARGET_WANTS += \
6337 systemd-update-done.service
6339 LOCAL_FS_TARGET_WANTS += \
6340 systemd-remount-fs.service \
6343 MULTI_USER_TARGET_WANTS += \
6345 systemd-ask-password-wall.path
6347 SYSINIT_TARGET_WANTS += \
6348 dev-hugepages.mount \
6350 sys-kernel-config.mount \
6351 sys-kernel-debug.mount \
6352 sys-fs-fuse-connections.mount \
6353 systemd-sysctl.service \
6354 systemd-ask-password-console.path
6357 SYSTEM_UNIT_ALIASES += \
6358 poweroff.target runlevel0.target \
6359 rescue.target runlevel1.target \
6360 multi-user.target runlevel2.target \
6361 multi-user.target runlevel3.target \
6362 multi-user.target runlevel4.target \
6363 graphical.target runlevel5.target \
6364 reboot.target runlevel6.target
6367 SYSTEM_UNIT_ALIASES += \
6368 graphical.target default.target \
6369 reboot.target ctrl-alt-del.target \
6370 getty@.service autovt@.service
6372 USER_UNIT_ALIASES += \
6373 $(systemunitdir)/shutdown.target shutdown.target \
6374 $(systemunitdir)/sockets.target sockets.target \
6375 $(systemunitdir)/timers.target timers.target \
6376 $(systemunitdir)/paths.target paths.target \
6377 $(systemunitdir)/bluetooth.target bluetooth.target \
6378 $(systemunitdir)/printer.target printer.target \
6379 $(systemunitdir)/sound.target sound.target \
6380 $(systemunitdir)/smartcard.target smartcard.target
6383 USER_UNIT_ALIASES += \
6384 $(systemunitdir)/busnames.target busnames.target
6387 GENERAL_ALIASES += \
6388 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6389 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6390 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6391 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6395 $(systemunitdir)/runlevel1.target.wants \
6396 $(systemunitdir)/runlevel2.target.wants \
6397 $(systemunitdir)/runlevel3.target.wants \
6398 $(systemunitdir)/runlevel4.target.wants \
6399 $(systemunitdir)/runlevel5.target.wants
6403 $(prefix)/lib/modules-load.d \
6404 $(sysconfdir)/modules-load.d \
6405 $(prefix)/lib/systemd/network \
6406 $(sysconfdir)/systemd/network \
6407 $(prefix)/lib/sysctl.d \
6408 $(sysconfdir)/sysctl.d \
6409 $(prefix)/lib/kernel/install.d \
6410 $(sysconfdir)/kernel/install.d \
6411 $(systemshutdowndir) \
6413 $(systemgeneratordir) \
6414 $(usergeneratordir) \
6417 $(pkgsysconfdir)/system \
6418 $(pkgsysconfdir)/system/multi-user.target.wants \
6419 $(pkgsysconfdir)/system/getty.target.wants \
6420 $(pkgsysconfdir)/user \
6421 $(dbussessionservicedir) \
6422 $(sysconfdir)/xdg/systemd
6424 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6426 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6428 install-data-hook: $(INSTALL_DATA_HOOKS)
6430 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6432 clean-local: $(CLEAN_LOCAL_HOOKS)
6433 rm -rf $(abs_srcdir)/install-tree
6434 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6435 $(abs_srcdir)/hwdb/iab.txt
6437 DISTCHECK_CONFIGURE_FLAGS = \
6438 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6439 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6440 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6441 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6442 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6443 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6444 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6445 --with-rootprefix=$$dc_install_base \
6446 --disable-split-usr \
6448 --enable-compat-libs
6451 DISTCHECK_CONFIGURE_FLAGS += \
6452 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6453 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6455 DISTCHECK_CONFIGURE_FLAGS += \
6456 --with-sysvinit-path= \
6457 --with-sysvrcnd-path=
6461 DISTCHECK_CONFIGURE_FLAGS += \
6466 DISTCHECK_CONFIGURE_FLAGS += \
6471 # Require python when making dist
6473 .PHONY: dist-check-python
6476 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6480 dist-check-compat-libs:
6481 if !ENABLE_COMPAT_LIBS
6482 @echo "*** compat-libs must be enabled in order to make dist"
6486 dist: dist-check-python dist-check-compat-libs
6488 # check "broken" platforms limited toolchains for link breakage before we release
6491 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6495 ( cd $(top_srcdir)/hwdb && \
6496 wget -N http://www.linux-usb.org/usb.ids \
6497 http://pci-ids.ucw.cz/v2.2/pci.ids \
6498 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6499 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6502 .PHONY: kdbus-update
6504 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6505 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6509 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6511 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6513 upload: all check dist
6514 scp systemd-$(VERSION).tar.xz $(www_target)
6517 doc-sync: all destdir-sphinx
6518 gtkdoc-rebase --html-dir=docs/libudev/html --online
6519 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6520 gtkdoc-rebase --html-dir=docs/gudev/html --online
6521 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6522 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6523 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6527 scp man/*.html gardel:public/systemd-man/
6529 .PHONY: lennart-fedora
6531 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6533 .PHONY: install-tree
6535 rm -rf $(abs_srcdir)/install-tree
6536 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6537 tree $(abs_srcdir)/install-tree
6539 # Let's run all tests of the test suite, but under valgrind. Let's
6540 # exclude the one perl script we have in there
6541 .PHONY: valgrind-tests
6542 valgrind-tests: $(TESTS)
6543 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6544 if file $$f | grep -q shell; then \
6545 echo -e "$${x}Skipping non-binary $$f"; else \
6546 echo -e "$${x}Running $$f"; \
6547 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6552 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6554 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6555 $(AM_V_GEN)cat $^ > $@
6557 .PHONY: check-api-docs
6558 check-api-docs: exported man
6559 $(AM_V_GEN)for symbol in `cat exported` ; do \
6560 if test -f $(builddir)/man/$$symbol.html ; then \
6561 echo " Symbol $$symbol() is documented." ; \
6563 echo "‣ Symbol $$symbol() lacks documentation." ; \
6567 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6568 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6570 undefined defined: $(ALL_OBJECTS)
6571 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6572 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6573 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6579 .PHONY: check-api-unused
6580 check-api-unused: defined undefined exported
6581 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6583 .PHONY: check-includes
6584 check-includes: $(top_srcdir)/tools/check-includes.pl
6585 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6586 | xargs $(top_srcdir)/tools/check-includes.pl
6589 $(top_srcdir)/tools/check-includes.pl
6591 # Stupid test that everything purported to be exported really is
6592 define generate-sym-test
6593 $(AM_V_at)$(MKDIR_P) $(dir $@)
6594 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6595 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6596 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6597 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6598 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6599 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6600 $(AM_V_at)printf 'return 0; }\n' >> $@
6603 test-libsystemd-sym.c: \
6604 $(top_builddir)/src/libsystemd/libsystemd.sym \
6605 src/systemd/sd-journal.h \
6606 src/systemd/sd-daemon.h \
6607 src/systemd/sd-login.h \
6608 src/systemd/sd-bus.h \
6609 src/systemd/sd-utf8.h \
6610 src/systemd/sd-resolve.h \
6611 src/systemd/sd-path.h
6612 $(generate-sym-test)
6614 test-libudev-sym.c: \
6615 src/libudev/libudev.sym \
6617 $(generate-sym-test)
6619 test_libsystemd_sym_SOURCES = \
6620 test-libsystemd-sym.c
6621 test_libsystemd_sym_LDADD = \
6624 test_libudev_sym_SOURCES = \
6626 test_libudev_sym_CFLAGS = \
6628 -Wno-deprecated-declarations
6629 test_libudev_sym_LDADD = \
6633 $(test_libsystemd_sym_SOURCES) \
6634 $(test_libudev_sym_SOURCES)
6637 test-libsystemd-sym \
6642 cppcheck --enable=all -q $(top_srcdir)
6644 # Used to extract compile flags for YCM.
6649 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6652 tools/gdb-sd_dump_hashmaps.py