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 pkgconfigdatadir=$(datadir)/pkgconfig
78 pkgconfiglibdir=$(libdir)/pkgconfig
79 polkitpolicydir=$(datadir)/polkit-1/actions
80 bashcompletiondir=@bashcompletiondir@
81 zshcompletiondir=@zshcompletiondir@
82 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
83 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
84 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
85 varlogdir=$(localstatedir)/log
86 systemdstatedir=$(localstatedir)/lib/systemd
87 catalogstatedir=$(systemdstatedir)/catalog
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-network \
221 -I $(top_srcdir)/src/libsystemd-terminal \
224 AM_CFLAGS = $(OUR_CFLAGS)
225 AM_LDFLAGS = $(OUR_LDFLAGS)
227 # ------------------------------------------------------------------------------
228 define move-to-rootlibdir
229 if test "$(libdir)" != "$(rootlibdir)"; then \
230 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
231 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
232 rm -f $(DESTDIR)$(libdir)/$$libname && \
233 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
234 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
240 RUNLEVEL1_TARGET_WANTS =
241 RUNLEVEL2_TARGET_WANTS =
242 RUNLEVEL3_TARGET_WANTS =
243 RUNLEVEL4_TARGET_WANTS =
244 RUNLEVEL5_TARGET_WANTS =
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 SYSINIT_TARGET_WANTS =
249 SOCKETS_TARGET_WANTS =
250 BUSNAMES_TARGET_WANTS =
251 TIMERS_TARGET_WANTS =
252 USER_SOCKETS_TARGET_WANTS =
253 USER_BUSNAMES_TARGET_WANTS =
255 SYSTEM_UNIT_ALIASES =
259 install-target-wants-hook:
260 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
261 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 install-busnames-target-wants-hook:
275 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
276 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
279 [ -z "$$what" ] || ( \
280 dir=$(DESTDIR)$$dir/$$wants.wants && \
281 $(MKDIR_P) -m 0755 $$dir && \
284 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
287 install-directories-hook:
288 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
290 install-aliases-hook:
291 set -- $(SYSTEM_UNIT_ALIASES) && \
292 dir=$(systemunitdir) && $(install-aliases)
293 set -- $(USER_UNIT_ALIASES) && \
294 dir=$(userunitdir) && $(install-relative-aliases)
295 set -- $(GENERAL_ALIASES) && \
296 dir= && $(install-relative-aliases)
298 define install-aliases
299 while [ -n "$$1" ]; do \
300 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
301 rm -f $(DESTDIR)$$dir/$$2 && \
302 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
303 shift 2 || exit $$?; \
307 define install-relative-aliases
308 while [ -n "$$1" ]; do \
309 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
310 rm -f $(DESTDIR)$$dir/$$2 && \
311 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
312 shift 2 || exit $$?; \
316 install-touch-usr-hook:
317 touch -c $(DESTDIR)/$(prefix)
319 INSTALL_EXEC_HOOKS += \
320 install-target-wants-hook \
321 install-directories-hook \
322 install-aliases-hook \
323 install-touch-usr-hook
326 INSTALL_EXEC_HOOKS += \
327 install-busnames-target-wants-hook
330 # ------------------------------------------------------------------------------
331 AM_V_M4 = $(AM_V_M4_$(V))
332 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
333 AM_V_M4_0 = @echo " M4 " $@;
335 AM_V_XSLT = $(AM_V_XSLT_$(V))
336 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
337 AM_V_XSLT_0 = @echo " XSLT " $@;
339 AM_V_GPERF = $(AM_V_GPERF_$(V))
340 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
341 AM_V_GPERF_0 = @echo " GPERF " $@;
343 AM_V_LN = $(AM_V_LN_$(V))
344 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
345 AM_V_LN_0 = @echo " LN " $@;
347 AM_V_RM = $(AM_V_RM_$(V))
348 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
349 AM_V_RM_0 = @echo " RM " $@;
351 # ------------------------------------------------------------------------------
355 systemd-ask-password \
356 systemd-tty-ask-password-agent \
357 systemd-machine-id-setup \
364 systemd-detect-virt \
371 src/kernel-install/kernel-install
373 dist_kernelinstall_SCRIPTS = \
374 src/kernel-install/50-depmod.install \
375 src/kernel-install/90-loaderentry.install
377 rootlibexec_PROGRAMS = \
379 systemd-cgroups-agent \
381 systemd-update-utmp \
385 systemd-reply-password \
391 systemd-socket-proxyd \
394 systemgenerator_PROGRAMS = \
395 systemd-getty-generator \
396 systemd-fstab-generator \
397 systemd-system-update-generator \
398 systemd-debug-generator
400 dist_bashcompletion_DATA = \
401 shell-completion/bash/busctl \
402 shell-completion/bash/journalctl \
403 shell-completion/bash/systemd-analyze \
404 shell-completion/bash/systemd-cat \
405 shell-completion/bash/systemd-cgls \
406 shell-completion/bash/systemd-cgtop \
407 shell-completion/bash/systemd-delta \
408 shell-completion/bash/systemd-detect-virt \
409 shell-completion/bash/systemd-nspawn \
410 shell-completion/bash/systemd-run \
411 shell-completion/bash/udevadm \
412 shell-completion/bash/kernel-install
414 nodist_bashcompletion_DATA = \
415 shell-completion/bash/systemctl
417 dist_zshcompletion_DATA = \
418 shell-completion/zsh/_journalctl \
419 shell-completion/zsh/_udevadm \
420 shell-completion/zsh/_kernel-install \
421 shell-completion/zsh/_systemd-nspawn \
422 shell-completion/zsh/_systemd-analyze \
423 shell-completion/zsh/_systemd-run \
424 shell-completion/zsh/_sd_hosts_or_user_at_host \
425 shell-completion/zsh/_sd_outputmodes \
426 shell-completion/zsh/_sd_unit_files \
427 shell-completion/zsh/_systemd-delta \
428 shell-completion/zsh/_systemd
430 nodist_zshcompletion_DATA = \
431 shell-completion/zsh/_systemctl
434 shell-completion/bash/systemctl.in \
435 shell-completion/zsh/_systemctl.in
438 $(nodist_bashcompletion_DATA) \
439 $(nodist_zshcompletion_DATA)
442 sysctl.d/50-default.conf
444 dist_systemunit_DATA = \
445 units/graphical.target \
446 units/multi-user.target \
447 units/emergency.target \
448 units/sysinit.target \
453 units/local-fs.target \
454 units/local-fs-pre.target \
455 units/initrd.target \
456 units/initrd-fs.target \
457 units/initrd-root-fs.target \
458 units/remote-fs.target \
459 units/remote-fs-pre.target \
460 units/network.target \
461 units/network-pre.target \
462 units/network-online.target \
463 units/nss-lookup.target \
464 units/nss-user-lookup.target \
465 units/poweroff.target \
466 units/reboot.target \
467 units/rescue.target \
468 units/rpcbind.target \
469 units/time-sync.target \
470 units/shutdown.target \
472 units/umount.target \
473 units/sigpwr.target \
475 units/sockets.target \
476 units/timers.target \
478 units/suspend.target \
480 units/slices.target \
483 units/systemd-initctl.socket \
484 units/systemd-shutdownd.socket \
485 units/syslog.socket \
486 units/dev-hugepages.mount \
487 units/dev-mqueue.mount \
488 units/sys-kernel-config.mount \
489 units/sys-kernel-debug.mount \
490 units/sys-fs-fuse-connections.mount \
492 units/printer.target \
494 units/bluetooth.target \
495 units/smartcard.target \
496 units/systemd-ask-password-wall.path \
497 units/systemd-ask-password-console.path \
498 units/systemd-udevd-control.socket \
499 units/systemd-udevd-kernel.socket \
500 units/system-update.target \
501 units/initrd-switch-root.target
504 dist_systemunit_DATA += \
505 $(dist_systemunit_DATA_busnames)
508 dist_systemunit_DATA_busnames += \
509 units/busnames.target
511 nodist_systemunit_DATA = \
512 units/getty@.service \
513 units/serial-getty@.service \
514 units/console-shell.service \
515 units/console-getty.service \
516 units/container-getty@.service \
517 units/systemd-initctl.service \
518 units/systemd-shutdownd.service \
519 units/systemd-remount-fs.service \
520 units/systemd-update-utmp.service \
521 units/systemd-update-utmp-runlevel.service \
522 units/systemd-ask-password-wall.service \
523 units/systemd-ask-password-console.service \
524 units/systemd-sysctl.service \
525 units/emergency.service \
526 units/rescue.service \
527 units/user@.service \
528 units/systemd-suspend.service \
529 units/systemd-halt.service \
530 units/systemd-poweroff.service \
531 units/systemd-reboot.service \
532 units/systemd-kexec.service \
533 units/systemd-fsck@.service \
534 units/systemd-fsck-root.service \
535 units/systemd-udevd.service \
536 units/systemd-udev-trigger.service \
537 units/systemd-udev-settle.service \
538 units/systemd-udev-hwdb-update.service \
539 units/debug-shell.service \
540 units/initrd-parse-etc.service \
541 units/initrd-cleanup.service \
542 units/initrd-udevadm-cleanup-db.service \
543 units/initrd-switch-root.service \
544 units/systemd-nspawn@.service \
545 units/systemd-update-done.service
547 dist_userunit_DATA = \
548 units/user/basic.target \
549 units/user/default.target \
550 units/user/exit.target
552 nodist_userunit_DATA = \
553 units/user/systemd-exit.service
555 dist_systempreset_DATA = \
556 system-preset/90-systemd.preset
559 units/getty@.service.m4 \
560 units/serial-getty@.service.m4 \
561 units/console-shell.service.m4.in \
562 units/console-getty.service.m4.in \
563 units/container-getty@.service.m4.in \
564 units/rescue.service.in \
565 units/systemd-initctl.service.in \
566 units/systemd-shutdownd.service.in \
567 units/systemd-remount-fs.service.in \
568 units/systemd-update-utmp.service.in \
569 units/systemd-update-utmp-runlevel.service.in \
570 units/systemd-ask-password-wall.service.in \
571 units/systemd-ask-password-console.service.in \
572 units/systemd-sysctl.service.in \
573 units/emergency.service.in \
574 units/systemd-halt.service.in \
575 units/systemd-poweroff.service.in \
576 units/systemd-reboot.service.in \
577 units/systemd-kexec.service.in \
578 units/user/systemd-exit.service.in \
579 units/systemd-fsck@.service.in \
580 units/systemd-fsck-root.service.in \
581 units/user@.service.in \
582 units/debug-shell.service.in \
583 units/systemd-suspend.service.in \
584 units/quotaon.service.in \
585 units/initrd-parse-etc.service.in \
586 units/initrd-cleanup.service.in \
587 units/initrd-udevadm-cleanup-db.service.in \
588 units/initrd-switch-root.service.in \
589 units/systemd-nspawn@.service.in \
590 units/systemd-update-done.service.in
593 units/console-shell.service.m4 \
594 units/console-getty.service.m4 \
595 units/container-getty@.service.m4 \
596 units/user@.service.m4
599 nodist_systemunit_DATA += \
600 units/rc-local.service \
601 units/halt-local.service
603 systemgenerator_PROGRAMS += \
604 systemd-sysv-generator \
605 systemd-rc-local-generator
609 units/rc-local.service.in \
610 units/halt-local.service.in
612 # automake is broken and can't handle files with a dash in front
613 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
615 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
617 units-uninstall-hook:
618 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
620 INSTALL_DATA_HOOKS += units-install-hook
621 UNINSTALL_DATA_HOOKS += units-uninstall-hook
630 src/libsystemd/sd-bus/PORTING-DBUS1 \
631 src/libsystemd/sd-bus/DIFFERENCES \
632 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
634 @INTLTOOL_POLICY_RULE@
636 # ------------------------------------------------------------------------------
641 include Makefile-man.am
643 .PHONY: man update-man-list
644 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
647 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
649 ${XML_FILES:.xml=.html}
651 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
668 $(AM_V_at)$(MKDIR_P) $(dir $@)
669 $(AM_V_LN)$(LN_S) -f ../../man $@
678 man/index.html: man/systemd.index.html
679 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
687 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
688 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
689 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
691 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
692 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
693 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
694 @echo "Makefile-man.am has been regenerated"
696 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
697 $(AM_V_at)$(MKDIR_P) $(dir $@)
698 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
700 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
701 $(AM_V_at)$(MKDIR_P) $(dir $@)
702 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
705 man/systemd.index.xml \
707 man/systemd.directives.xml
710 man/systemd.index.xml \
711 man/systemd.directives.xml
722 tools/make-man-index.py \
723 tools/make-directive-index.py \
724 tools/make-man-rules.py \
727 # ------------------------------------------------------------------------------
728 noinst_LTLIBRARIES += \
731 libsystemd_shared_la_SOURCES = \
732 src/shared/linux/auto_dev-ioctl.h \
733 src/shared/linux/fanotify.h \
734 src/shared/ioprio.h \
735 src/shared/missing.h \
736 src/shared/initreq.h \
737 src/shared/securebits.h \
738 src/shared/special.h \
742 src/shared/sparse-endian.h \
743 src/shared/refcnt.h \
744 src/shared/udev-util.h \
745 src/shared/bus-errors.h \
746 src/shared/device-nodes.c \
747 src/shared/device-nodes.h \
752 src/shared/architecture.c \
753 src/shared/architecture.h \
754 src/shared/efivars.c \
755 src/shared/efivars.h \
756 src/shared/path-util.c \
757 src/shared/path-util.h \
758 src/shared/time-util.c \
759 src/shared/time-util.h \
760 src/shared/locale-util.c \
761 src/shared/locale-util.h \
762 src/shared/hashmap.c \
763 src/shared/hashmap.h \
764 src/shared/siphash24.c \
765 src/shared/siphash24.h \
772 src/shared/sleep-config.c \
773 src/shared/sleep-config.h \
776 src/shared/env-util.c \
777 src/shared/env-util.h \
778 src/shared/strbuf.c \
779 src/shared/strbuf.h \
780 src/shared/strxcpyx.c \
781 src/shared/strxcpyx.h \
782 src/shared/conf-parser.c \
783 src/shared/conf-parser.h \
786 src/shared/ratelimit.h \
787 src/shared/ratelimit.c \
788 src/shared/exit-status.c \
789 src/shared/exit-status.h \
792 src/shared/gunicode.c \
793 src/shared/gunicode.h \
796 src/shared/socket-util.c \
797 src/shared/socket-util.h \
798 src/shared/in-addr-util.c \
799 src/shared/in-addr-util.h \
800 src/shared/conf-files.c \
801 src/shared/conf-files.h \
802 src/shared/cgroup-util.c \
803 src/shared/cgroup-util.h \
804 src/shared/cgroup-show.c \
805 src/shared/cgroup-show.h \
806 src/shared/unit-name.c \
807 src/shared/unit-name.h \
808 src/shared/utmp-wtmp.c \
809 src/shared/utmp-wtmp.h \
810 src/shared/watchdog.c \
811 src/shared/watchdog.h \
812 src/shared/spawn-ask-password-agent.c \
813 src/shared/spawn-ask-password-agent.h \
814 src/shared/replace-var.c \
815 src/shared/replace-var.h \
816 src/shared/spawn-polkit-agent.c \
817 src/shared/spawn-polkit-agent.h \
818 src/shared/clock-util.c \
819 src/shared/clock-util.h \
820 src/shared/time-dst.c \
821 src/shared/time-dst.h \
822 src/shared/calendarspec.c \
823 src/shared/calendarspec.h \
824 src/shared/fileio.c \
825 src/shared/fileio.h \
826 src/shared/output-mode.h \
827 src/shared/MurmurHash2.c \
828 src/shared/MurmurHash2.h \
829 src/shared/acpi-fpdt.h \
830 src/shared/acpi-fpdt.c \
831 src/shared/boot-timestamps.h \
832 src/shared/boot-timestamps.c \
835 src/shared/smack-util.c \
836 src/shared/smack-util.h \
837 src/shared/apparmor-util.c \
838 src/shared/apparmor-util.h \
839 src/shared/ima-util.c \
840 src/shared/ima-util.h \
841 src/shared/ptyfwd.c \
842 src/shared/ptyfwd.h \
843 src/shared/errno-list.c \
844 src/shared/errno-list.h \
845 src/shared/af-list.c \
846 src/shared/af-list.h \
847 src/shared/arphrd-list.c \
848 src/shared/arphrd-list.h \
853 src/shared/condition-util.c \
854 src/shared/condition-util.h \
855 src/shared/bus-label.c \
856 src/shared/bus-label.h \
858 src/shared/clean-ipc.h \
859 src/shared/clean-ipc.c \
860 src/shared/login-shared.c \
861 src/shared/login-shared.h \
864 src/shared/barrier.c \
865 src/shared/barrier.h \
872 src/shared/base-filesystem.c \
873 src/shared/base-filesystem.h \
876 src/shared/uid-range.c \
877 src/shared/uid-range.h \
878 src/shared/switch-root.h \
879 src/shared/switch-root.c \
880 src/shared/nss-util.h
882 nodist_libsystemd_shared_la_SOURCES = \
883 src/shared/errno-from-name.h \
884 src/shared/errno-to-name.h \
885 src/shared/af-from-name.h \
886 src/shared/af-to-name.h \
887 src/shared/arphrd-from-name.h \
888 src/shared/arphrd-to-name.h
890 libsystemd_shared_la_CFLAGS = \
895 # ------------------------------------------------------------------------------
896 noinst_LTLIBRARIES += \
899 libsystemd_units_la_SOURCES = \
900 src/shared/install.c \
901 src/shared/install.h \
902 src/shared/install-printf.c \
903 src/shared/install-printf.h \
904 src/shared/path-lookup.c \
905 src/shared/path-lookup.h \
906 src/shared/specifier.c \
907 src/shared/specifier.h
909 # ------------------------------------------------------------------------------
910 noinst_LTLIBRARIES += \
913 libsystemd_label_la_SOURCES = \
914 src/shared/socket-label.c \
917 src/shared/selinux-util.c \
918 src/shared/selinux-util.h \
919 src/shared/mkdir-label.c \
920 src/shared/ask-password-api.c \
921 src/shared/ask-password-api.h \
922 src/shared/fileio-label.c \
923 src/shared/fileio-label.h \
924 src/shared/dev-setup.c \
925 src/shared/dev-setup.h \
926 src/shared/dropin.c \
927 src/shared/dropin.h \
928 src/shared/generator.h \
929 src/shared/generator.c
931 libsystemd_label_la_CFLAGS = \
935 libsystemd_label_la_LIBADD = \
938 # -----------------------------------------------------------------------------
941 dist_systemunit_DATA += \
942 units/ldconfig.service
944 SYSINIT_TARGET_WANTS += \
948 # ------------------------------------------------------------------------------
951 noinst_LTLIBRARIES += \
952 libsystemd-seccomp.la
954 libsystemd_seccomp_la_SOURCES = \
955 src/shared/seccomp-util.h \
956 src/shared/seccomp-util.c
958 libsystemd_seccomp_la_CFLAGS = \
962 libsystemd_seccomp_la_LIBADD = \
966 # ------------------------------------------------------------------------------
967 noinst_LTLIBRARIES += \
970 libsystemd_logs_la_SOURCES = \
971 src/shared/logs-show.c \
972 src/shared/logs-show.h
974 # ------------------------------------------------------------------------------
975 noinst_LTLIBRARIES += \
976 libsystemd-capability.la
978 libsystemd_capability_la_SOURCES = \
979 src/shared/capability.c \
980 src/shared/capability.h
982 libsystemd_capability_la_CFLAGS = \
986 libsystemd_capability_la_LIBADD = \
989 # ------------------------------------------------------------------------------
991 noinst_LTLIBRARIES += \
994 libsystemd_acl_la_SOURCES = \
995 src/shared/acl-util.c \
996 src/shared/acl-util.h
998 libsystemd_acl_la_CFLAGS = \
1002 libsystemd_acl_la_LIBADD = \
1006 # ------------------------------------------------------------------------------
1007 noinst_LTLIBRARIES += \
1010 libsystemd_core_la_SOURCES = \
1013 src/core/unit-printf.c \
1014 src/core/unit-printf.h \
1017 src/core/manager.c \
1018 src/core/manager.h \
1019 src/core/transaction.c \
1020 src/core/transaction.h \
1021 src/core/load-fragment.c \
1022 src/core/load-fragment.h \
1023 src/core/service.c \
1024 src/core/service.h \
1027 src/core/busname.c \
1028 src/core/busname.h \
1029 src/core/bus-common.c \
1030 src/core/bus-common.h \
1031 src/core/bus-endpoint.c \
1032 src/core/bus-endpoint.h \
1035 src/core/snapshot.c \
1036 src/core/snapshot.h \
1041 src/core/automount.c \
1042 src/core/automount.h \
1053 src/core/load-dropin.c \
1054 src/core/load-dropin.h \
1055 src/core/execute.c \
1056 src/core/execute.h \
1061 src/core/dbus-manager.c \
1062 src/core/dbus-manager.h \
1063 src/core/dbus-unit.c \
1064 src/core/dbus-unit.h \
1065 src/core/dbus-job.c \
1066 src/core/dbus-job.h \
1067 src/core/dbus-service.c \
1068 src/core/dbus-service.h \
1069 src/core/dbus-socket.c \
1070 src/core/dbus-socket.h \
1071 src/core/dbus-busname.c \
1072 src/core/dbus-busname.h \
1073 src/core/dbus-target.c \
1074 src/core/dbus-target.h \
1075 src/core/dbus-snapshot.c \
1076 src/core/dbus-snapshot.h \
1077 src/core/dbus-device.c \
1078 src/core/dbus-device.h \
1079 src/core/dbus-mount.c \
1080 src/core/dbus-mount.h \
1081 src/core/dbus-automount.c \
1082 src/core/dbus-automount.h \
1083 src/core/dbus-swap.c \
1084 src/core/dbus-swap.h \
1085 src/core/dbus-timer.c \
1086 src/core/dbus-timer.h \
1087 src/core/dbus-path.c \
1088 src/core/dbus-path.h \
1089 src/core/dbus-slice.c \
1090 src/core/dbus-slice.h \
1091 src/core/dbus-scope.c \
1092 src/core/dbus-scope.h \
1093 src/core/dbus-execute.c \
1094 src/core/dbus-execute.h \
1095 src/core/dbus-kill.c \
1096 src/core/dbus-kill.h \
1097 src/core/dbus-cgroup.c \
1098 src/core/dbus-cgroup.h \
1101 src/core/selinux-access.c \
1102 src/core/selinux-access.h \
1103 src/core/selinux-setup.c \
1104 src/core/selinux-setup.h \
1105 src/core/smack-setup.c \
1106 src/core/smack-setup.h \
1107 src/core/ima-setup.c \
1108 src/core/ima-setup.h \
1109 src/core/locale-setup.h \
1110 src/core/locale-setup.c \
1111 src/core/hostname-setup.c \
1112 src/core/hostname-setup.h \
1113 src/core/machine-id-setup.c \
1114 src/core/machine-id-setup.h \
1115 src/core/mount-setup.c \
1116 src/core/mount-setup.h \
1117 src/core/loopback-setup.h \
1118 src/core/loopback-setup.c \
1119 src/core/condition.c \
1120 src/core/condition.h \
1121 src/core/namespace.c \
1122 src/core/namespace.h \
1124 src/core/sysfs-show.h \
1125 src/core/killall.h \
1126 src/core/killall.c \
1127 src/core/audit-fd.c \
1128 src/core/audit-fd.h \
1129 src/core/show-status.c \
1130 src/core/show-status.h \
1131 src/core/failure-action.c \
1132 src/core/failure-action.h
1135 libsystemd_core_la_SOURCES += \
1136 src/core/kmod-setup.c \
1137 src/core/kmod-setup.h
1140 nodist_libsystemd_core_la_SOURCES = \
1141 src/core/load-fragment-gperf.c \
1142 src/core/load-fragment-gperf-nulstr.c
1144 libsystemd_core_la_CFLAGS = \
1150 $(APPARMOR_CFLAGS) \
1154 libsystemd_core_la_LIBADD = \
1155 libsystemd-capability.la \
1156 libsystemd-units.la \
1157 libsystemd-label.la \
1158 libudev-internal.la \
1159 libsystemd-shared.la \
1160 libsystemd-internal.la \
1169 libsystemd_core_la_LIBADD += \
1170 libsystemd-seccomp.la
1173 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1174 $(AM_V_at)$(MKDIR_P) $(dir $@)
1175 $(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 ";" }' < $< > $@
1178 src/core/load-fragment-gperf.gperf.m4
1181 src/core/load-fragment-gperf.gperf \
1182 src/core/load-fragment-gperf.c \
1183 src/core/load-fragment-gperf-nulstr.c \
1184 src/shared/errno-list.txt \
1185 src/shared/errno-from-name.gperf \
1186 src/shared/af-list.txt \
1187 src/shared/af-from-name.gperf \
1188 src/shared/arphrd-list.txt \
1189 src/shared/arphrd-from-name.gperf \
1190 src/shared/dns_type-list.txt \
1191 src/shared/dns_type-from-name.gperf
1194 src/shared/errno-from-name.h \
1195 src/shared/errno-to-name.h \
1196 src/shared/af-from-name.h \
1197 src/shared/af-to-name.h \
1198 src/shared/arphrd-from-name.h \
1199 src/shared/arphrd-to-name.h \
1200 src/resolve/dns_type-from-name.h \
1201 src/resolve/dns_type-to-name.h
1203 %-from-name.gperf: %-list.txt
1204 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1206 %-from-name.h: %-from-name.gperf
1207 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1210 src/shared/errno-list.txt:
1211 $(AM_V_at)$(MKDIR_P) $(dir $@)
1212 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1214 src/shared/errno-to-name.h: src/shared/errno-list.txt
1215 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1218 src/shared/af-list.txt:
1219 $(AM_V_at)$(MKDIR_P) $(dir $@)
1220 $(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; }' >$@
1222 src/shared/af-to-name.h: src/shared/af-list.txt
1223 $(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 "};"}' <$< >$@
1225 src/shared/arphrd-list.txt:
1226 $(AM_V_at)$(MKDIR_P) $(dir $@)
1227 $(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_//' >$@
1229 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1230 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1232 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1233 $(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 }' <$< >$@
1236 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1237 $(AM_V_at)$(MKDIR_P) $(dir $@)
1238 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1240 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1241 $(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" }' <$< >$@
1243 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1244 $(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 }' <$< >$@
1246 # ------------------------------------------------------------------------------
1255 libsystemd-core.la \
1258 dist_pkgsysconf_DATA += \
1259 src/core/system.conf \
1262 dist_dbuspolicy_DATA += \
1263 src/core/org.freedesktop.systemd1.conf
1265 dist_dbussystemservice_DATA += \
1266 src/core/org.freedesktop.systemd1.service
1268 polkitpolicy_in_in_files += \
1269 src/core/org.freedesktop.systemd1.policy.in.in
1271 pkgconfigdata_DATA = \
1274 nodist_rpmmacros_DATA = \
1275 src/core/macros.systemd
1278 src/core/systemd.pc.in \
1279 src/core/macros.systemd.in
1282 src/core/macros.systemd \
1283 src/core/org.freedesktop.systemd1.policy.in
1285 # ------------------------------------------------------------------------------
1327 test-strip-tab-ansi \
1344 test-condition-util \
1353 test/daughter.service \
1358 test/grandchild.service \
1360 test/hello-after-sleep.target \
1361 test/hello.service \
1363 test/parent-deep.slice \
1366 test/sched_idle_bad.service \
1367 test/sched_idle_ok.service \
1368 test/sched_rr_bad.service \
1369 test/sched_rr_change.service \
1370 test/sched_rr_ok.service \
1371 test/shutdown.target \
1372 test/sleep.service \
1373 test/sockets.target \
1375 test/sysinit.target \
1376 test/testsuite.target \
1377 test/timers.target \
1378 test/unstoppable.service \
1379 test/bus-policy/hello.conf \
1380 test/bus-policy/methods.conf \
1381 test/bus-policy/ownerships.conf \
1382 test/bus-policy/signals.conf
1386 src/test/test-helper.h
1388 test_device_nodes_SOURCES = \
1389 src/test/test-device-nodes.c
1391 test_device_nodes_LDADD = \
1392 libsystemd-shared.la
1394 test_engine_SOURCES = \
1395 src/test/test-engine.c
1397 test_engine_CFLAGS = \
1401 test_engine_LDADD = \
1402 libsystemd-core.la \
1405 test_job_type_SOURCES = \
1406 src/test/test-job-type.c
1408 test_job_type_CFLAGS = \
1412 test_job_type_LDADD = \
1413 libsystemd-core.la \
1426 test_loopback_SOURCES = \
1427 src/test/test-loopback.c
1429 test_loopback_LDADD = \
1432 test_hostname_SOURCES = \
1433 src/test/test-hostname.c
1435 test_hostname_LDADD = \
1442 test_boot_timestamp_SOURCES = \
1443 src/test/test-boot-timestamps.c
1445 test_boot_timestamp_LDADD = \
1446 libsystemd-shared.la
1449 test_unit_name_SOURCES = \
1450 src/test/test-unit-name.c
1452 test_unit_name_CFLAGS = \
1456 test_unit_name_LDADD = \
1457 libsystemd-core.la \
1460 test_unit_file_SOURCES = \
1461 src/test/test-unit-file.c
1463 test_unit_file_CFLAGS = \
1467 test_unit_file_LDADD = \
1468 libsystemd-core.la \
1471 test_utf8_SOURCES = \
1472 src/test/test-utf8.c
1475 libsystemd-shared.la
1477 test_capability_SOURCES = \
1478 src/test/test-capability.c
1480 test_capability_LDADD = \
1481 libsystemd-shared.la \
1482 libsystemd-capability.la
1484 test_async_SOURCES = \
1485 src/test/test-async.c
1487 test_async_LDADD = \
1488 libsystemd-shared.la
1490 test_condition_util_SOURCES = \
1491 src/test/test-condition-util.c
1493 test_condition_util_LDADD = \
1494 libsystemd-shared.la \
1495 libsystemd-internal.la
1498 test_fdset_SOURCES = \
1499 src/test/test-fdset.c
1501 test_fdset_LDADD = \
1504 test_ratelimit_SOURCES = \
1505 src/test/test-ratelimit.c
1507 test_ratelimit_LDADD = \
1508 libsystemd-shared.la
1510 test_util_SOURCES = \
1511 src/test/test-util.c
1516 test_uid_range_SOURCES = \
1517 src/test/test-uid-range.c
1519 test_uid_range_LDADD = \
1522 test_socket_util_SOURCES = \
1523 src/test/test-socket-util.c
1525 test_socket_util_LDADD = \
1528 test_ring_SOURCES = \
1529 src/test/test-ring.c
1534 test_barrier_SOURCES = \
1535 src/test/test-barrier.c
1537 test_barrier_LDADD = \
1540 test_pty_SOURCES = \
1546 test_tmpfiles_SOURCES = \
1547 src/test/test-tmpfiles.c
1549 test_tmpfiles_LDADD = \
1550 libsystemd-shared.la
1552 test_namespace_SOURCES = \
1553 src/test/test-namespace.c
1555 test_namespace_LDADD = \
1558 test_hashmap_SOURCES = \
1559 src/test/test-hashmap.c
1561 test_hashmap_LDADD = \
1564 test_xml_SOURCES = \
1568 libsystemd-shared.la
1570 test_list_SOURCES = \
1571 src/test/test-list.c
1576 test_tables_SOURCES = \
1577 src/test/test-tables.c \
1578 src/shared/test-tables.h \
1579 src/bus-proxyd/bus-policy.c \
1580 src/bus-proxyd/bus-policy.h \
1581 src/journal/journald-server.c \
1582 src/journal/journald-server.h
1584 test_tables_CPPFLAGS = \
1586 -I$(top_srcdir)/src/bus-proxyd
1588 test_tables_CFLAGS = \
1592 test_tables_LDADD = \
1593 libsystemd-logs.la \
1594 libsystemd-journal-internal.la \
1595 libsystemd-journal-core.la \
1596 libsystemd-core.la \
1600 test_prioq_SOURCES = \
1601 src/test/test-prioq.c
1603 test_prioq_LDADD = \
1606 test_fileio_SOURCES = \
1607 src/test/test-fileio.c
1609 test_fileio_LDADD = \
1612 test_time_SOURCES = \
1613 src/test/test-time.c
1618 test_architecture_SOURCES = \
1619 src/test/test-architecture.c
1621 test_architecture_LDADD = \
1622 libsystemd-shared.la
1624 test_log_SOURCES = \
1630 test_ipcrm_SOURCES = \
1631 src/test/test-ipcrm.c
1633 test_ipcrm_LDADD = \
1634 libsystemd-shared.la \
1637 test_rtnl_manual_SOURCES = \
1638 src/test/test-rtnl-manual.c
1640 test_rtnl_manual_CFLAGS = \
1644 test_rtnl_manual_LDADD = \
1645 libsystemd-internal.la \
1646 libsystemd-shared.la \
1649 test_ellipsize_SOURCES = \
1650 src/test/test-ellipsize.c
1652 test_ellipsize_LDADD = \
1655 test_date_SOURCES = \
1656 src/test/test-date.c
1661 test_sleep_SOURCES = \
1662 src/test/test-sleep.c
1664 test_sleep_LDADD = \
1667 test_replace_var_SOURCES = \
1668 src/test/test-replace-var.c
1670 test_replace_var_LDADD = \
1671 libsystemd-shared.la
1673 test_calendarspec_SOURCES = \
1674 src/test/test-calendarspec.c
1676 test_calendarspec_LDADD = \
1677 libsystemd-shared.la
1679 test_strip_tab_ansi_SOURCES = \
1680 src/test/test-strip-tab-ansi.c
1682 test_strip_tab_ansi_LDADD = \
1683 libsystemd-shared.la
1685 test_daemon_SOURCES = \
1686 src/test/test-daemon.c
1688 test_daemon_LDADD = \
1689 libsystemd-internal.la \
1690 libsystemd-shared.la
1692 test_cgroup_SOURCES = \
1693 src/test/test-cgroup.c
1695 test_cgroup_LDADD = \
1696 libsystemd-label.la \
1697 libsystemd-shared.la \
1698 libsystemd-internal.la
1700 test_cgroup_mask_SOURCES = \
1701 src/test/test-cgroup-mask.c
1703 test_cgroup_mask_CPPFLAGS = \
1705 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1707 test_cgroup_mask_CFLAGS = \
1711 test_cgroup_mask_LDADD = \
1712 libsystemd-core.la \
1715 test_cgroup_util_SOURCES = \
1716 src/test/test-cgroup-util.c
1718 test_cgroup_util_LDADD = \
1719 libsystemd-label.la \
1720 libsystemd-internal.la \
1721 libsystemd-shared.la
1723 test_env_replace_SOURCES = \
1724 src/test/test-env-replace.c
1726 test_env_replace_LDADD = \
1727 libsystemd-shared.la
1729 test_strbuf_SOURCES = \
1730 src/test/test-strbuf.c
1732 test_strbuf_LDADD = \
1733 libsystemd-shared.la
1735 test_strv_SOURCES = \
1736 src/test/test-strv.c
1739 libsystemd-units.la \
1740 libsystemd-internal.la \
1741 libsystemd-shared.la
1743 test_path_util_SOURCES = \
1744 src/test/test-path-util.c
1746 test_path_util_LDADD = \
1747 libsystemd-shared.la
1749 test_strxcpyx_SOURCES = \
1750 src/test/test-strxcpyx.c
1752 test_strxcpyx_LDADD = \
1753 libsystemd-shared.la
1755 test_install_SOURCES = \
1756 src/test/test-install.c
1758 test_install_LDADD = \
1759 libsystemd-units.la \
1760 libsystemd-label.la \
1761 libsystemd-shared.la \
1762 libsystemd-internal.la
1764 test_watchdog_SOURCES = \
1765 src/test/test-watchdog.c
1767 test_watchdog_LDADD = \
1768 libsystemd-shared.la
1770 test_sched_prio_SOURCES = \
1771 src/test/test-sched-prio.c
1773 test_sched_prio_CPPFLAGS = \
1775 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1777 test_sched_prio_CFLAGS = \
1781 test_sched_prio_LDADD = \
1782 libsystemd-core.la \
1785 test_conf_files_SOURCES = \
1786 src/test/test-conf-files.c
1788 test_conf_files_LDADD = \
1789 libsystemd-shared.la
1791 test_bus_policy_SOURCES = \
1792 src/bus-proxyd/test-bus-policy.c \
1793 src/bus-proxyd/bus-policy.c \
1794 src/bus-proxyd/bus-policy.h
1796 test_bus_policy_LDADD = \
1797 libsystemd-capability.la \
1798 libsystemd-internal.la \
1799 libsystemd-shared.la
1801 # ------------------------------------------------------------------------------
1802 ## .PHONY so it always rebuilds it
1803 .PHONY: coverage lcov-run lcov-report coverage-sync
1805 # run lcov from scratch, always
1810 coverage_dir = coverage
1811 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1814 # reset run coverage tests
1816 @rm -rf $(coverage_dir)
1817 lcov $(coverage_opts) --zerocounters
1820 # generate report based on current coverage data
1822 $(MKDIR_P) $(coverage_dir)
1823 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1824 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1825 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1826 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1828 # lcov doesn't work properly with vpath builds, make sure that bad
1829 # output is not uploaded by mistake.
1830 coverage-sync: coverage
1831 test "$(builddir)" = "$(srcdir)"
1832 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1835 lcov-run lcov-report:
1836 echo "Need to reconfigure with --enable-coverage"
1839 # ------------------------------------------------------------------------------
1840 systemd_analyze_SOURCES = \
1841 src/analyze/analyze.c \
1842 src/analyze/analyze-verify.c \
1843 src/analyze/analyze-verify.h
1845 systemd_verify_CFLAGS = \
1849 systemd_analyze_LDADD = \
1850 libsystemd-core.la \
1851 libsystemd-internal.la \
1852 libsystemd-shared.la \
1855 # ------------------------------------------------------------------------------
1856 systemd_initctl_SOURCES = \
1857 src/initctl/initctl.c
1859 systemd_initctl_LDADD = \
1860 libsystemd-internal.la \
1861 libsystemd-shared.la
1863 # ------------------------------------------------------------------------------
1864 systemd_update_utmp_SOURCES = \
1865 src/update-utmp/update-utmp.c
1867 systemd_update_utmp_CFLAGS = \
1871 systemd_update_utmp_LDADD = \
1872 libsystemd-internal.la \
1873 libsystemd-shared.la \
1876 # ------------------------------------------------------------------------------
1877 systemd_update_done_SOURCES = \
1878 src/update-done/update-done.c
1880 systemd_update_done_LDADD = \
1881 libsystemd-internal.la \
1882 libsystemd-label.la \
1883 libsystemd-shared.la
1885 # ------------------------------------------------------------------------------
1886 systemd_shutdownd_SOURCES = \
1887 src/shutdownd/shutdownd.c
1889 systemd_shutdownd_LDADD = \
1890 libsystemd-label.la \
1891 libsystemd-internal.la \
1892 libsystemd-shared.la
1895 src/systemd/sd-shutdown.h
1897 # ------------------------------------------------------------------------------
1898 systemd_shutdown_SOURCES = \
1901 src/core/shutdown.c \
1902 src/core/mount-setup.c \
1903 src/core/mount-setup.h \
1904 src/core/killall.h \
1907 systemd_shutdown_LDADD = \
1908 libsystemd-label.la \
1909 libudev-internal.la \
1910 libsystemd-shared.la
1912 # ------------------------------------------------------------------------------
1914 systemd_modules_load_SOURCES = \
1915 src/modules-load/modules-load.c
1917 systemd_modules_load_CFLAGS = \
1921 systemd_modules_load_LDADD = \
1922 libsystemd-shared.la \
1925 rootlibexec_PROGRAMS += \
1926 systemd-modules-load
1928 nodist_systemunit_DATA += \
1929 units/systemd-modules-load.service
1931 SYSINIT_TARGET_WANTS += \
1932 systemd-modules-load.service
1935 nodist_systemunit_DATA += \
1936 units/kmod-static-nodes.service
1938 SYSINIT_TARGET_WANTS += \
1939 kmod-static-nodes.service
1944 units/systemd-modules-load.service.in \
1945 units/kmod-static-nodes.service.in
1947 # ------------------------------------------------------------------------------
1949 systemd_tmpfiles_SOURCES = \
1950 src/tmpfiles/tmpfiles.c
1952 systemd_tmpfiles_LDADD = \
1953 libsystemd-units.la \
1954 libsystemd-label.la \
1955 libsystemd-capability.la \
1956 libsystemd-internal.la \
1957 libsystemd-shared.la
1959 rootbin_PROGRAMS += \
1962 dist_systemunit_DATA += \
1963 units/systemd-tmpfiles-clean.timer
1965 nodist_systemunit_DATA += \
1966 units/systemd-tmpfiles-setup-dev.service \
1967 units/systemd-tmpfiles-setup.service \
1968 units/systemd-tmpfiles-clean.service
1970 nodist_tmpfiles_DATA = \
1973 dist_tmpfiles_DATA = \
1974 tmpfiles.d/systemd.conf \
1975 tmpfiles.d/systemd-nologin.conf \
1976 tmpfiles.d/systemd-remote.conf \
1977 tmpfiles.d/tmp.conf \
1978 tmpfiles.d/x11.conf \
1982 dist_tmpfiles_DATA += \
1983 tmpfiles.d/legacy.conf
1986 SYSINIT_TARGET_WANTS += \
1987 systemd-tmpfiles-setup-dev.service \
1988 systemd-tmpfiles-setup.service
1990 dist_zshcompletion_DATA += \
1991 shell-completion/zsh/_systemd-tmpfiles
1993 TIMERS_TARGET_WANTS += \
1994 systemd-tmpfiles-clean.timer
1998 $(sysconfdir)/tmpfiles.d
2002 tmpfiles.d/etc.conf.m4 \
2003 units/systemd-tmpfiles-setup-dev.service.in \
2004 units/systemd-tmpfiles-setup.service.in \
2005 units/systemd-tmpfiles-clean.service.in
2010 # ------------------------------------------------------------------------------
2012 systemd_sysusers_SOURCES = \
2013 src/sysusers/sysusers.c
2015 systemd_sysusers_LDADD = \
2016 libsystemd-units.la \
2017 libsystemd-label.la \
2018 libsystemd-capability.la \
2019 libsystemd-internal.la \
2020 libsystemd-shared.la
2022 rootbin_PROGRAMS += \
2025 nodist_systemunit_DATA += \
2026 units/systemd-sysusers.service
2028 SYSINIT_TARGET_WANTS += \
2029 systemd-sysusers.service
2031 dist_sysusers_DATA = \
2032 sysusers.d/systemd.conf \
2033 sysusers.d/systemd-remote.conf
2035 nodist_sysusers_DATA = \
2036 sysusers.d/basic.conf
2039 units/systemd-sysusers.service.in \
2040 sysusers.d/basic.conf.in
2043 sysusers.d/basic.conf
2049 # ------------------------------------------------------------------------------
2050 dist_factory_etc_DATA = \
2051 factory/etc/nsswitch.conf
2053 dist_factory_pam_DATA = \
2054 factory/etc/pam.d/system-auth \
2055 factory/etc/pam.d/other
2057 # ------------------------------------------------------------------------------
2059 systemd_firstboot_SOURCES = \
2060 src/firstboot/firstboot.c
2062 systemd_firstboot_LDADD = \
2063 libsystemd-units.la \
2064 libsystemd-label.la \
2065 libsystemd-capability.la \
2066 libsystemd-internal.la \
2067 libsystemd-shared.la \
2070 rootbin_PROGRAMS += \
2073 nodist_systemunit_DATA += \
2074 units/systemd-firstboot.service
2077 units/systemd-firstboot.service.in
2079 SYSINIT_TARGET_WANTS += \
2080 systemd-firstboot.service
2083 # ------------------------------------------------------------------------------
2084 systemd_machine_id_setup_SOURCES = \
2085 src/machine-id-setup/machine-id-setup-main.c \
2086 src/core/machine-id-setup.c \
2087 src/core/machine-id-setup.h
2089 systemd_machine_id_setup_LDADD = \
2090 libsystemd-label.la \
2091 libsystemd-internal.la \
2092 libsystemd-shared.la
2094 # ------------------------------------------------------------------------------
2095 systemd_sysctl_SOURCES = \
2098 systemd_sysctl_LDADD = \
2099 libsystemd-shared.la
2101 # ------------------------------------------------------------------------------
2102 systemd_sleep_SOURCES = \
2105 systemd_sleep_LDADD = \
2106 libsystemd-shared.la
2108 # ------------------------------------------------------------------------------
2109 systemd_fsck_SOURCES = \
2112 systemd_fsck_LDADD = \
2113 libsystemd-internal.la \
2114 libudev-internal.la \
2115 libsystemd-shared.la
2117 # ------------------------------------------------------------------------------
2118 systemd_ac_power_SOURCES = \
2119 src/ac-power/ac-power.c
2121 systemd_ac_power_LDADD = \
2122 libudev-internal.la \
2123 libsystemd-shared.la
2125 # ------------------------------------------------------------------------------
2126 systemd_detect_virt_SOURCES = \
2127 src/detect-virt/detect-virt.c
2129 systemd_detect_virt_LDADD = \
2130 libsystemd-shared.la
2132 INSTALL_EXEC_HOOKS += \
2133 systemd-detect-virt-install-hook
2135 # ------------------------------------------------------------------------------
2136 systemd_delta_SOURCES = \
2139 systemd_delta_LDADD = \
2140 libsystemd-shared.la
2142 # ------------------------------------------------------------------------------
2143 systemd_getty_generator_SOURCES = \
2144 src/getty-generator/getty-generator.c
2146 systemd_getty_generator_LDADD = \
2147 libsystemd-label.la \
2148 libsystemd-shared.la
2150 # ------------------------------------------------------------------------------
2151 systemd_debug_generator_SOURCES = \
2152 src/debug-generator/debug-generator.c
2154 systemd_debug_generator_LDADD = \
2155 libsystemd-label.la \
2156 libsystemd-shared.la
2158 # ------------------------------------------------------------------------------
2159 systemd_fstab_generator_SOURCES = \
2160 src/fstab-generator/fstab-generator.c \
2161 src/core/mount-setup.c
2163 systemd_fstab_generator_LDADD = \
2164 libsystemd-label.la \
2165 libsystemd-shared.la
2167 # ------------------------------------------------------------------------------
2168 systemd_system_update_generator_SOURCES = \
2169 src/system-update-generator/system-update-generator.c
2171 systemd_system_update_generator_LDADD = \
2172 libsystemd-label.la \
2173 libsystemd-shared.la
2175 # ------------------------------------------------------------------------------
2177 systemgenerator_PROGRAMS += \
2178 systemd-hibernate-resume-generator
2180 rootlibexec_PROGRAMS += \
2181 systemd-hibernate-resume
2183 systemd_hibernate_resume_SOURCES = \
2184 src/hibernate-resume/hibernate-resume.c
2186 systemd_hibernate_resume_LDADD = \
2187 libsystemd-internal.la \
2188 libsystemd-shared.la
2190 systemd_hibernate_resume_generator_SOURCES = \
2191 src/hibernate-resume/hibernate-resume-generator.c
2193 systemd_hibernate_resume_generator_LDADD = \
2194 libsystemd-label.la \
2195 libsystemd-shared.la
2198 units/systemd-hibernate.service.in \
2199 units/systemd-hibernate-resume@.service.in \
2200 units/systemd-hybrid-sleep.service.in
2202 dist_systemunit_DATA += \
2203 units/hibernate.target \
2204 units/hybrid-sleep.target
2206 nodist_systemunit_DATA += \
2207 units/systemd-hibernate.service \
2208 units/systemd-hibernate-resume@.service \
2209 units/systemd-hybrid-sleep.service
2212 # ------------------------------------------------------------------------------
2214 systemgenerator_PROGRAMS += \
2215 systemd-efi-boot-generator
2217 systemd_efi_boot_generator_SOURCES = \
2218 src/efi-boot-generator/efi-boot-generator.c
2220 systemd_efi_boot_generator_LDADD = \
2221 libsystemd-label.la \
2222 libsystemd-shared.la
2224 # ------------------------------------------------------------------------------
2227 src/boot/boot-loader.h \
2228 src/boot/bootctl.c \
2229 src/boot/boot-loader.c \
2233 libsystemd-shared.la \
2234 libsystemd-internal.la
2239 dist_bashcompletion_DATA += \
2240 shell-completion/bash/bootctl
2242 dist_zshcompletion_DATA += \
2243 shell-completion/zsh/_bootctl
2247 # ------------------------------------------------------------------------------
2249 systemgenerator_PROGRAMS += \
2250 systemd-gpt-auto-generator
2252 systemd_gpt_auto_generator_SOURCES = \
2253 src/gpt-auto-generator/gpt-auto-generator.c \
2254 src/shared/blkid-util.h
2256 systemd_gpt_auto_generator_LDADD = \
2257 libsystemd-label.la \
2258 libsystemd-internal.la \
2259 libudev-internal.la \
2260 libsystemd-shared.la \
2263 systemd_gpt_auto_generator_CFLAGS = \
2268 # ------------------------------------------------------------------------------
2270 systemgenerator_PROGRAMS += \
2271 systemd-dbus1-generator
2273 systemd_dbus1_generator_SOURCES = \
2274 src/dbus1-generator/dbus1-generator.c
2276 systemd_dbus1_generator_LDADD = \
2277 libsystemd-label.la \
2278 libsystemd-shared.la \
2279 libsystemd-internal.la
2281 dbus1-generator-install-hook:
2282 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2283 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2284 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2286 dbus1-generator-uninstall-hook:
2287 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2289 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2290 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2293 # ------------------------------------------------------------------------------
2294 systemd_sysv_generator_SOURCES = \
2295 src/sysv-generator/sysv-generator.c
2297 systemd_sysv_generator_LDADD = \
2298 libsystemd-core.la \
2299 libsystemd-label.la \
2300 libsystemd-shared.la
2302 # ------------------------------------------------------------------------------
2303 systemd_rc_local_generator_SOURCES = \
2304 src/rc-local-generator/rc-local-generator.c
2306 systemd_rc_local_generator_LDADD = \
2307 libsystemd-label.la \
2308 libsystemd-shared.la
2310 # ------------------------------------------------------------------------------
2311 systemd_remount_fs_SOURCES = \
2312 src/remount-fs/remount-fs.c \
2313 src/core/mount-setup.c \
2314 src/core/mount-setup.h
2316 systemd_remount_fs_LDADD = \
2317 libsystemd-label.la \
2318 libsystemd-shared.la
2320 # ------------------------------------------------------------------------------
2321 systemd_cgroups_agent_SOURCES = \
2322 src/cgroups-agent/cgroups-agent.c
2324 systemd_cgroups_agent_LDADD = \
2325 libsystemd-internal.la \
2326 libsystemd-shared.la
2328 # ------------------------------------------------------------------------------
2329 systemd_escape_SOURCES = \
2332 systemd_escape_LDADD = \
2333 libsystemd-shared.la
2335 # -----------------------------------------------------------------------------
2336 systemctl_SOURCES = \
2337 src/systemctl/systemctl.c
2340 libsystemd-units.la \
2341 libsystemd-label.la \
2342 libsystemd-internal.la \
2343 libsystemd-logs.la \
2344 libsystemd-journal-internal.la \
2345 libsystemd-shared.la
2347 # ------------------------------------------------------------------------------
2348 systemd_notify_SOURCES = \
2351 systemd_notify_LDADD = \
2352 libsystemd-internal.la \
2353 libsystemd-shared.la
2355 # ------------------------------------------------------------------------------
2356 systemd_path_SOURCES = \
2359 systemd_path_LDADD = \
2360 libsystemd-internal.la \
2361 libsystemd-shared.la
2363 # ------------------------------------------------------------------------------
2364 systemd_ask_password_SOURCES = \
2365 src/ask-password/ask-password.c
2367 systemd_ask_password_LDADD = \
2368 libsystemd-label.la \
2369 libsystemd-shared.la
2371 # ------------------------------------------------------------------------------
2372 systemd_reply_password_SOURCES = \
2373 src/reply-password/reply-password.c
2375 systemd_reply_password_LDADD = \
2376 libsystemd-shared.la
2378 # ------------------------------------------------------------------------------
2379 systemd_cgls_SOURCES = \
2382 systemd_cgls_LDADD = \
2383 libsystemd-internal.la \
2384 libsystemd-shared.la
2386 # ------------------------------------------------------------------------------
2387 systemd_cgtop_SOURCES = \
2390 systemd_cgtop_LDADD = \
2391 libsystemd-shared.la
2393 # ------------------------------------------------------------------------------
2394 systemd_nspawn_SOURCES = \
2395 src/nspawn/nspawn.c \
2396 src/core/mount-setup.c \
2397 src/core/mount-setup.h \
2398 src/core/loopback-setup.c \
2399 src/core/loopback-setup.h
2401 systemd_nspawn_CFLAGS = \
2406 systemd_nspawn_LDADD = \
2407 libsystemd-label.la \
2408 libsystemd-capability.la \
2409 libsystemd-internal.la \
2410 libudev-internal.la \
2411 libsystemd-shared.la \
2415 systemd_nspawn_LDADD += \
2416 libsystemd-seccomp.la \
2420 # ------------------------------------------------------------------------------
2421 systemd_run_SOURCES = \
2424 systemd_run_LDADD = \
2425 libsystemd-label.la \
2426 libsystemd-capability.la \
2427 libsystemd-internal.la \
2428 libsystemd-shared.la
2430 # ------------------------------------------------------------------------------
2431 systemd_bus_proxyd_SOURCES = \
2432 src/bus-proxyd/bus-proxyd.c \
2433 src/bus-proxyd/bus-policy.c \
2434 src/bus-proxyd/bus-policy.h
2436 systemd_bus_proxyd_LDADD = \
2437 libsystemd-capability.la \
2438 libsystemd-internal.la \
2439 libsystemd-shared.la
2441 bus-proxyd-install-hook:
2442 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2443 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2444 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2446 bus-proxyd-uninstall-hook:
2447 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2449 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2450 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2453 nodist_systemunit_DATA += \
2454 units/systemd-bus-proxyd@.service
2456 dist_systemunit_DATA += \
2457 units/systemd-bus-proxyd.socket
2459 dist_userunit_DATA += \
2460 units/user/systemd-bus-proxyd.socket \
2461 units/user/systemd-bus-proxyd@.service
2465 units/systemd-bus-proxyd@.service.in
2467 # ------------------------------------------------------------------------------
2468 systemd_tty_ask_password_agent_SOURCES = \
2469 src/tty-ask-password-agent/tty-ask-password-agent.c
2471 systemd_tty_ask_password_agent_LDADD = \
2472 libsystemd-label.la \
2473 libsystemd-shared.la
2475 # ------------------------------------------------------------------------------
2476 libsystemd_internal_la_SOURCES = \
2477 src/systemd/sd-bus.h \
2478 src/systemd/sd-bus-protocol.h \
2479 src/systemd/sd-bus-vtable.h \
2480 src/systemd/sd-utf8.h \
2481 src/systemd/sd-event.h \
2482 src/systemd/sd-rtnl.h \
2483 src/systemd/sd-resolve.h \
2484 src/systemd/sd-login.h \
2485 src/systemd/sd-id128.h \
2486 src/systemd/sd-daemon.h \
2487 src/systemd/sd-path.h \
2488 src/systemd/sd-network.h \
2489 src/libsystemd/sd-bus/sd-bus.c \
2490 src/libsystemd/sd-bus/bus-control.c \
2491 src/libsystemd/sd-bus/bus-control.h \
2492 src/libsystemd/sd-bus/bus-error.c \
2493 src/libsystemd/sd-bus/bus-error.h \
2494 src/libsystemd/sd-bus/bus-internal.c \
2495 src/libsystemd/sd-bus/bus-internal.h \
2496 src/libsystemd/sd-bus/bus-socket.c \
2497 src/libsystemd/sd-bus/bus-socket.h \
2498 src/libsystemd/sd-bus/bus-kernel.c \
2499 src/libsystemd/sd-bus/bus-kernel.h \
2500 src/libsystemd/sd-bus/bus-container.c \
2501 src/libsystemd/sd-bus/bus-container.h \
2502 src/libsystemd/sd-bus/bus-message.c \
2503 src/libsystemd/sd-bus/bus-message.h \
2504 src/libsystemd/sd-bus/bus-creds.c \
2505 src/libsystemd/sd-bus/bus-creds.h \
2506 src/libsystemd/sd-bus/bus-signature.c \
2507 src/libsystemd/sd-bus/bus-signature.h \
2508 src/libsystemd/sd-bus/bus-type.c \
2509 src/libsystemd/sd-bus/bus-type.h \
2510 src/libsystemd/sd-bus/bus-match.c \
2511 src/libsystemd/sd-bus/bus-match.h \
2512 src/libsystemd/sd-bus/bus-bloom.c \
2513 src/libsystemd/sd-bus/bus-bloom.h \
2514 src/libsystemd/sd-bus/bus-introspect.c \
2515 src/libsystemd/sd-bus/bus-introspect.h \
2516 src/libsystemd/sd-bus/bus-objects.c \
2517 src/libsystemd/sd-bus/bus-objects.h \
2518 src/libsystemd/sd-bus/bus-gvariant.c \
2519 src/libsystemd/sd-bus/bus-gvariant.h \
2520 src/libsystemd/sd-bus/bus-convenience.c \
2521 src/libsystemd/sd-bus/bus-track.c \
2522 src/libsystemd/sd-bus/bus-track.h \
2523 src/libsystemd/sd-bus/bus-util.c \
2524 src/libsystemd/sd-bus/bus-util.h \
2525 src/libsystemd/sd-bus/bus-slot.c \
2526 src/libsystemd/sd-bus/bus-slot.h \
2527 src/libsystemd/sd-bus/bus-protocol.h \
2528 src/libsystemd/sd-bus/kdbus.h \
2529 src/libsystemd/sd-utf8/sd-utf8.c \
2530 src/libsystemd/sd-event/sd-event.c \
2531 src/libsystemd/sd-event/event-util.h \
2532 src/libsystemd/sd-rtnl/sd-rtnl.c \
2533 src/libsystemd/sd-rtnl/rtnl-internal.h \
2534 src/libsystemd/sd-rtnl/rtnl-message.c \
2535 src/libsystemd/sd-rtnl/rtnl-types.h \
2536 src/libsystemd/sd-rtnl/rtnl-types.c \
2537 src/libsystemd/sd-rtnl/rtnl-util.h \
2538 src/libsystemd/sd-rtnl/rtnl-util.c \
2539 src/libsystemd/sd-rtnl/local-addresses.h \
2540 src/libsystemd/sd-rtnl/local-addresses.c \
2541 src/libsystemd/sd-id128/sd-id128.c \
2542 src/libsystemd/sd-daemon/sd-daemon.c \
2543 src/libsystemd/sd-login/sd-login.c \
2544 src/libsystemd/sd-path/sd-path.c \
2545 src/libsystemd/sd-network/sd-network.c \
2546 src/libsystemd/sd-network/network-util.h \
2547 src/libsystemd/sd-network/network-util.c
2549 nodist_libsystemd_internal_la_SOURCES = \
2550 src/libsystemd/libsystemd.sym \
2551 src/libsystemd/sd-bus/bus-error-mapping.c
2553 libsystemd_internal_la_CFLAGS = \
2557 libsystemd_internal_la_LIBADD = \
2560 libsystemd_resolve_la_SOURCES = \
2561 src/libsystemd/sd-resolve/sd-resolve.c \
2562 src/libsystemd/sd-resolve/resolve-util.h
2564 libsystemd_resolve_la_CFLAGS = \
2568 libsystemd_resolve_la_LIBADD = \
2571 noinst_LTLIBRARIES += \
2572 libsystemd-internal.la \
2573 libsystemd-resolve.la
2575 libsystemd_dump_la_SOURCES = \
2576 src/libsystemd/sd-bus/bus-dump.c \
2577 src/libsystemd/sd-bus/bus-dump.h
2579 libsystemd_dump_la_CFLAGS = \
2583 noinst_LTLIBRARIES += \
2587 src/libsystemd/libsystemd.sym.m4 \
2588 src/libsystemd/libsystemd.pc.in \
2589 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2590 src/libsystemd/sd-bus/DIFFERENCES \
2591 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2594 src/libsystemd/libsystemd.sym \
2595 src/libsystemd/sd-bus/bus-error-mapping.c
2598 src/libsystemd/libsystemd.sym
2600 libsystemd_la_SOURCES = \
2601 $(libsystemd_internal_la_SOURCES) \
2602 $(libsystemd_resolve_la_SOURCES) \
2603 $(libsystemd_journal_internal_la_SOURCES)
2605 nodist_libsystemd_la_SOURCES = \
2606 $(nodist_libsystemd_internal_la_SOURCES)
2608 libsystemd_la_CFLAGS = \
2609 $(libsystemd_internal_la_CFLAGS) \
2610 $(libsystemd_resolve_la_CFLAGS) \
2611 $(libsystemd_journal_internal_la_CFLAGS)
2613 libsystemd_la_LDFLAGS = \
2615 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2616 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2618 libsystemd_la_LIBADD = \
2619 libsystemd-shared.la \
2620 $(libsystemd_internal_la_LIBADD) \
2621 $(libsystemd_journal_internal_la_LIBADD) \
2622 $(libsystemd_resolve_la_LIBADD)
2624 libsystemd-install-hook:
2625 libname=libsystemd.so && $(move-to-rootlibdir)
2627 libsystemd-uninstall-hook:
2628 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2630 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2631 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2633 pkgconfiglib_DATA += \
2634 src/libsystemd/libsystemd.pc
2636 pkginclude_HEADERS += \
2637 src/systemd/sd-login.h \
2638 src/systemd/sd-id128.h \
2639 src/systemd/sd-daemon.h
2642 pkginclude_HEADERS += \
2643 src/systemd/sd-bus.h \
2644 src/systemd/sd-bus-protocol.h \
2645 src/systemd/sd-bus-vtable.h \
2646 src/systemd/sd-utf8.h \
2647 src/systemd/sd-event.h \
2648 src/systemd/sd-rtnl.h \
2649 src/systemd/sd-resolve.h \
2650 src/systemd/sd-path.h
2653 lib_LTLIBRARIES += \
2658 test-bus-signature \
2664 test-bus-kernel-bloom \
2665 test-bus-kernel-benchmark \
2666 test-bus-zero-copy \
2667 test-bus-introspect \
2679 test_bus_marshal_SOURCES = \
2680 src/libsystemd/sd-bus/test-bus-marshal.c
2682 test_bus_marshal_LDADD = \
2683 libsystemd-internal.la \
2684 libsystemd-shared.la \
2685 libsystemd-dump.la \
2686 libsystemd-capability.la \
2691 test_bus_marshal_CFLAGS = \
2697 test_bus_signature_SOURCES = \
2698 src/libsystemd/sd-bus/test-bus-signature.c
2700 test_bus_signature_LDADD = \
2701 libsystemd-shared.la \
2702 libsystemd-internal.la
2704 test_bus_chat_SOURCES = \
2705 src/libsystemd/sd-bus/test-bus-chat.c
2707 test_bus_chat_CFLAGS = \
2711 test_bus_chat_LDADD = \
2712 libsystemd-internal.la \
2713 libsystemd-shared.la
2715 test_bus_cleanup_SOURCES = \
2716 src/libsystemd/sd-bus/test-bus-cleanup.c
2718 test_bus_cleanup_CFLAGS = \
2722 test_bus_cleanup_LDADD = \
2723 libsystemd-internal.la \
2724 libsystemd-shared.la
2726 test_bus_server_SOURCES = \
2727 src/libsystemd/sd-bus/test-bus-server.c
2729 test_bus_server_CFLAGS = \
2733 test_bus_server_LDADD = \
2734 libsystemd-internal.la \
2735 libsystemd-shared.la
2737 test_bus_objects_SOURCES = \
2738 src/libsystemd/sd-bus/test-bus-objects.c
2740 test_bus_objects_CFLAGS = \
2745 test_bus_objects_LDADD = \
2746 libsystemd-internal.la \
2747 libsystemd-shared.la \
2748 libsystemd-dump.la \
2749 libsystemd-capability.la \
2752 test_bus_error_SOURCES = \
2753 src/libsystemd/sd-bus/test-bus-error.c
2755 test_bus_error_LDADD = \
2756 libsystemd-internal.la \
2757 libsystemd-shared.la
2759 test_bus_gvariant_SOURCES = \
2760 src/libsystemd/sd-bus/test-bus-gvariant.c
2762 test_bus_gvariant_LDADD = \
2763 libsystemd-internal.la \
2764 libsystemd-shared.la \
2765 libsystemd-dump.la \
2766 libsystemd-capability.la \
2770 test_bus_gvariant_CFLAGS = \
2775 test_bus_creds_SOURCES = \
2776 src/libsystemd/sd-bus/test-bus-creds.c
2778 test_bus_creds_LDADD = \
2779 libsystemd-internal.la \
2780 libsystemd-shared.la \
2781 libsystemd-dump.la \
2782 libsystemd-capability.la
2784 test_bus_match_SOURCES = \
2785 src/libsystemd/sd-bus/test-bus-match.c
2787 test_bus_match_LDADD = \
2788 libsystemd-internal.la \
2789 libsystemd-shared.la
2791 test_bus_kernel_SOURCES = \
2792 src/libsystemd/sd-bus/test-bus-kernel.c
2794 test_bus_kernel_LDADD = \
2795 libsystemd-internal.la \
2796 libsystemd-shared.la \
2797 libsystemd-dump.la \
2798 libsystemd-capability.la \
2801 test_bus_kernel_CFLAGS = \
2805 test_bus_kernel_bloom_SOURCES = \
2806 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2808 test_bus_kernel_bloom_LDADD = \
2809 libsystemd-internal.la \
2810 libsystemd-shared.la
2812 test_bus_kernel_benchmark_SOURCES = \
2813 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2815 test_bus_kernel_benchmark_LDADD = \
2816 libsystemd-internal.la \
2817 libsystemd-shared.la
2819 test_bus_zero_copy_SOURCES = \
2820 src/libsystemd/sd-bus/test-bus-zero-copy.c
2822 test_bus_zero_copy_LDADD = \
2823 libsystemd-internal.la \
2824 libsystemd-shared.la \
2825 libsystemd-dump.la \
2826 libsystemd-capability.la \
2829 test_bus_zero_copy_CFLAGS = \
2833 test_bus_introspect_SOURCES = \
2834 src/libsystemd/sd-bus/test-bus-introspect.c
2836 test_bus_introspect_LDADD = \
2837 libsystemd-internal.la \
2838 libsystemd-shared.la
2840 test_event_SOURCES = \
2841 src/libsystemd/sd-event/test-event.c
2843 test_event_LDADD = \
2844 libsystemd-internal.la \
2845 libsystemd-shared.la
2847 test_rtnl_SOURCES = \
2848 src/libsystemd/sd-rtnl/test-rtnl.c
2851 libsystemd-internal.la \
2852 libsystemd-shared.la
2854 test_resolve_SOURCES = \
2855 src/libsystemd/sd-resolve/test-resolve.c
2857 test_resolve_LDADD = \
2858 libsystemd-resolve.la \
2859 libsystemd-internal.la \
2860 libsystemd-shared.la
2862 test_resolve_CFLAGS = \
2867 src/libsystemd/sd-bus/busctl.c
2870 libsystemd-internal.la \
2871 libsystemd-shared.la \
2872 libsystemd-dump.la \
2873 libsystemd-capability.la \
2880 # ------------------------------------------------------------------------------
2881 noinst_LTLIBRARIES += \
2882 libsystemd-network.la
2884 libsystemd_network_la_CFLAGS = \
2888 libsystemd_network_la_SOURCES = \
2889 src/systemd/sd-dhcp-client.h \
2890 src/systemd/sd-dhcp-server.h \
2891 src/systemd/sd-dhcp-lease.h \
2892 src/systemd/sd-ipv4ll.h \
2893 src/systemd/sd-icmp6-nd.h \
2894 src/systemd/sd-dhcp6-client.h \
2895 src/systemd/sd-dhcp6-lease.h \
2896 src/libsystemd-network/sd-dhcp-client.c \
2897 src/libsystemd-network/sd-dhcp-server.c \
2898 src/libsystemd-network/dhcp-network.c \
2899 src/libsystemd-network/dhcp-option.c \
2900 src/libsystemd-network/dhcp-packet.c \
2901 src/libsystemd-network/dhcp-internal.h \
2902 src/libsystemd-network/dhcp-server-internal.h \
2903 src/libsystemd-network/dhcp-protocol.h \
2904 src/libsystemd-network/dhcp-lease-internal.h \
2905 src/libsystemd-network/sd-dhcp-lease.c \
2906 src/libsystemd-network/sd-ipv4ll.c \
2907 src/libsystemd-network/ipv4ll-network.c \
2908 src/libsystemd-network/ipv4ll-packet.c \
2909 src/libsystemd-network/ipv4ll-internal.h \
2910 src/libsystemd-network/network-internal.c \
2911 src/libsystemd-network/network-internal.h \
2912 src/libsystemd-network/sd-icmp6-nd.c \
2913 src/libsystemd-network/sd-dhcp6-client.c \
2914 src/libsystemd-network/dhcp6-internal.h \
2915 src/libsystemd-network/dhcp6-protocol.h \
2916 src/libsystemd-network/dhcp6-network.c \
2917 src/libsystemd-network/dhcp6-option.c \
2918 src/libsystemd-network/dhcp6-lease-internal.h \
2919 src/libsystemd-network/sd-dhcp6-lease.c
2921 libsystemd_network_la_LIBADD = \
2922 libudev-internal.la \
2923 libsystemd-label.la \
2924 libsystemd-internal.la \
2925 libsystemd-shared.la \
2928 test_dhcp_option_SOURCES = \
2929 src/libsystemd-network/dhcp-protocol.h \
2930 src/libsystemd-network/dhcp-internal.h \
2931 src/libsystemd-network/test-dhcp-option.c
2933 test_dhcp_option_LDADD = \
2934 libsystemd-network.la \
2935 libsystemd-internal.la \
2936 libsystemd-shared.la
2938 test_dhcp_client_SOURCES = \
2939 src/systemd/sd-dhcp-client.h \
2940 src/libsystemd-network/dhcp-protocol.h \
2941 src/libsystemd-network/dhcp-internal.h \
2942 src/libsystemd-network/test-dhcp-client.c
2944 test_dhcp_client_LDADD = \
2945 libsystemd-network.la \
2946 libsystemd-label.la \
2947 libsystemd-internal.la \
2948 libsystemd-shared.la
2950 test_dhcp_server_SOURCES = \
2951 src/libsystemd-network/test-dhcp-server.c
2953 test_dhcp_server_LDADD = \
2954 libsystemd-network.la \
2955 libsystemd-internal.la \
2956 libsystemd-shared.la
2958 test_ipv4ll_SOURCES = \
2959 src/systemd/sd-ipv4ll.h \
2960 src/libsystemd-network/ipv4ll-internal.h \
2961 src/libsystemd-network/test-ipv4ll.c
2963 test_ipv4ll_LDADD = \
2964 libsystemd-network.la \
2965 libsystemd-label.la \
2966 libsystemd-internal.la \
2967 libsystemd-shared.la
2969 test_icmp6_rs_SOURCES = \
2970 src/systemd/sd-dhcp6-client.h \
2971 src/systemd/sd-icmp6-nd.h \
2972 src/libsystemd-network/dhcp6-internal.h \
2973 src/libsystemd-network/test-icmp6-rs.c
2975 test_icmp6_rs_LDADD = \
2976 libsystemd-network.la \
2977 libsystemd-internal.la \
2978 libsystemd-shared.la
2980 test_dhcp6_client_SOURCES = \
2981 src/systemd/sd-dhcp6-client.h \
2982 src/libsystemd-network/dhcp6-internal.h \
2983 src/libsystemd-network/test-dhcp6-client.c
2985 test_dhcp6_client_LDADD = \
2986 libsystemd-network.la \
2987 libsystemd-internal.la \
2988 libsystemd-shared.la
2998 # ------------------------------------------------------------------------------
3000 noinst_LTLIBRARIES += \
3001 libsystemd-terminal.la
3003 noinst_PROGRAMS += \
3008 unifontdatadir=$(datadir)/unifont
3010 dist_unifontdata_DATA = \
3011 src/libsystemd-terminal/unifont-glyph-array.bin
3019 libsystemd_terminal_la_CFLAGS = \
3023 libsystemd_terminal_la_SOURCES = \
3024 src/libsystemd-terminal/grdev.h \
3025 src/libsystemd-terminal/grdev-internal.h \
3026 src/libsystemd-terminal/grdev.c \
3027 src/libsystemd-terminal/grdev-drm.c \
3028 src/libsystemd-terminal/idev.h \
3029 src/libsystemd-terminal/idev-internal.h \
3030 src/libsystemd-terminal/idev.c \
3031 src/libsystemd-terminal/idev-evdev.c \
3032 src/libsystemd-terminal/idev-keyboard.c \
3033 src/libsystemd-terminal/sysview.h \
3034 src/libsystemd-terminal/sysview-internal.h \
3035 src/libsystemd-terminal/sysview.c \
3036 src/libsystemd-terminal/term-internal.h \
3037 src/libsystemd-terminal/term-charset.c \
3038 src/libsystemd-terminal/term-page.c \
3039 src/libsystemd-terminal/term-parser.c \
3040 src/libsystemd-terminal/term-screen.c \
3041 src/libsystemd-terminal/term-wcwidth.c \
3042 src/libsystemd-terminal/unifont-internal.h \
3043 src/libsystemd-terminal/unifont.c
3045 libsystemd_terminal_la_LIBADD = \
3046 libudev-internal.la \
3047 libsystemd-internal.la \
3048 libsystemd-shared.la \
3051 systemd_evcat_CFLAGS = \
3055 systemd_evcat_SOURCES = \
3056 src/libsystemd-terminal/evcat.c
3058 systemd_evcat_LDADD = \
3059 libsystemd-terminal.la \
3060 libsystemd-internal.la \
3061 libsystemd-shared.la \
3064 systemd_modeset_CFLAGS = \
3068 systemd_modeset_SOURCES = \
3069 src/libsystemd-terminal/modeset.c
3071 systemd_modeset_LDADD = \
3072 libsystemd-terminal.la \
3073 libsystemd-internal.la \
3074 libsystemd-shared.la \
3077 systemd_subterm_SOURCES = \
3078 src/libsystemd-terminal/subterm.c
3080 systemd_subterm_LDADD = \
3081 libsystemd-terminal.la \
3082 libsystemd-internal.la \
3083 libsystemd-shared.la
3085 test_term_page_SOURCES = \
3086 src/libsystemd-terminal/test-term-page.c
3088 test_term_page_LDADD = \
3089 libsystemd-terminal.la \
3090 libsystemd-internal.la \
3091 libsystemd-shared.la
3093 test_term_parser_SOURCES = \
3094 src/libsystemd-terminal/test-term-parser.c
3096 test_term_parser_LDADD = \
3097 libsystemd-terminal.la \
3098 libsystemd-internal.la \
3099 libsystemd-shared.la
3101 test_unifont_SOURCES = \
3102 src/libsystemd-terminal/test-unifont.c
3104 test_unifont_LDADD = \
3105 libsystemd-terminal.la \
3106 libsystemd-internal.la \
3107 libsystemd-shared.la
3109 .PHONY: update-unifont
3110 update-unifont: tools/compile-unifont.py
3111 $(AM_V_GEN)$(PYTHON) $< \
3112 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3113 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3114 @echo "unifont-glyph-array.bin has been regenerated"
3116 # ------------------------------------------------------------------------------
3126 include_HEADERS += \
3127 src/libudev/libudev.h
3129 lib_LTLIBRARIES += \
3132 libudev_la_SOURCES =\
3133 src/libudev/libudev.sym \
3134 src/libudev/libudev-private.h \
3135 src/libudev/libudev.c \
3136 src/libudev/libudev-list.c \
3137 src/libudev/libudev-util.c \
3138 src/libudev/libudev-device.c \
3139 src/libudev/libudev-enumerate.c \
3140 src/libudev/libudev-monitor.c \
3141 src/libudev/libudev-queue.c \
3142 src/libudev/libudev-hwdb-def.h \
3143 src/libudev/libudev-hwdb.c
3145 libudev_la_CFLAGS = \
3149 libudev_la_LDFLAGS = \
3151 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3152 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3154 libudev_la_LIBADD = \
3155 libsystemd-internal.la \
3156 libsystemd-shared.la
3158 pkgconfiglib_DATA += \
3159 src/libudev/libudev.pc
3162 src/libudev/libudev.pc.in
3165 src/libudev/libudev.pc \
3170 $(AM_V_at)$(MKDIR_P) $(dir $@)
3171 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3174 $(AM_V_at)$(MKDIR_P) $(dir $@)
3175 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3177 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3178 libudev-install-hook:
3179 libname=libudev.so && $(move-to-rootlibdir)
3181 libudev-uninstall-hook:
3182 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3184 INSTALL_EXEC_HOOKS += libudev-install-hook
3185 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3187 # ------------------------------------------------------------------------------
3188 noinst_LTLIBRARIES += \
3191 libudev_internal_la_SOURCES =\
3192 $(libudev_la_SOURCES) \
3193 src/libudev/libudev-device-private.c
3195 libudev_internal_la_CFLAGS = \
3197 -fvisibility=default
3199 # ------------------------------------------------------------------------------
3201 $(sysconfdir)/udev/rules.d \
3202 $(sysconfdir)/udev/hwdb.d
3204 dist_network_DATA = \
3205 network/99-default.link \
3206 network/80-container-host0.network \
3207 network/80-container-ve.network
3209 dist_udevrules_DATA += \
3210 rules/42-usb-hid-pm.rules \
3211 rules/50-udev-default.rules \
3212 rules/60-drm.rules \
3213 rules/60-keyboard.rules \
3214 rules/60-persistent-storage-tape.rules \
3215 rules/60-persistent-serial.rules \
3216 rules/60-persistent-input.rules \
3217 rules/60-persistent-alsa.rules \
3218 rules/60-persistent-storage.rules \
3219 rules/64-btrfs.rules \
3220 rules/75-net-description.rules \
3221 rules/75-tty-description.rules \
3222 rules/78-sound-card.rules \
3223 rules/80-net-setup-link.rules \
3224 rules/95-udev-late.rules
3226 nodist_udevrules_DATA += \
3227 rules/99-systemd.rules
3229 dist_udevhwdb_DATA = \
3230 hwdb/20-pci-vendor-model.hwdb \
3231 hwdb/20-pci-classes.hwdb \
3232 hwdb/20-usb-vendor-model.hwdb \
3233 hwdb/20-usb-classes.hwdb \
3234 hwdb/20-sdio-vendor-model.hwdb \
3235 hwdb/20-sdio-classes.hwdb \
3236 hwdb/20-bluetooth-vendor-product.hwdb \
3237 hwdb/20-acpi-vendor.hwdb \
3239 hwdb/20-net-ifname.hwdb \
3240 hwdb/60-keyboard.hwdb
3242 udevconfdir = $(sysconfdir)/udev
3243 dist_udevconf_DATA = \
3246 sharepkgconfigdir = $(datadir)/pkgconfig
3247 sharepkgconfig_DATA = \
3251 rules/99-systemd.rules.in \
3255 rules/99-systemd.rules \
3259 units/systemd-udevd.service.in \
3260 units/systemd-udev-trigger.service.in \
3261 units/systemd-udev-settle.service.in \
3262 units/systemd-udev-hwdb-update.service.in
3265 units/systemd-udevd.service \
3266 units/systemd-udev-trigger.service \
3267 units/systemd-udev-settle.service \
3268 units/systemd-udev-hwdb-update.service
3270 SOCKETS_TARGET_WANTS += \
3271 systemd-udevd-control.socket \
3272 systemd-udevd-kernel.socket
3274 SYSINIT_TARGET_WANTS += \
3275 systemd-udevd.service \
3276 systemd-udev-trigger.service \
3277 systemd-udev-hwdb-update.service
3279 rootbin_PROGRAMS += \
3282 rootlibexec_PROGRAMS += \
3285 noinst_LTLIBRARIES += \
3288 src/udev/keyboard-keys.txt:
3289 $(AM_V_at)$(MKDIR_P) $(dir $@)
3290 $(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/' > $@
3292 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3293 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3295 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3296 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3298 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3299 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3301 libudev_core_la_SOURCES = \
3303 src/udev/udev-event.c \
3304 src/udev/udev-watch.c \
3305 src/udev/udev-node.c \
3306 src/udev/udev-rules.c \
3307 src/udev/udev-ctrl.c \
3308 src/udev/udev-builtin.c \
3309 src/udev/udev-builtin-btrfs.c \
3310 src/udev/udev-builtin-hwdb.c \
3311 src/udev/udev-builtin-input_id.c \
3312 src/udev/udev-builtin-keyboard.c \
3313 src/udev/udev-builtin-net_id.c \
3314 src/udev/udev-builtin-net_setup_link.c \
3315 src/udev/udev-builtin-path_id.c \
3316 src/udev/udev-builtin-usb_id.c \
3317 src/udev/net/link-config.h \
3318 src/udev/net/link-config.c \
3319 src/udev/net/ethtool-util.h \
3320 src/udev/net/ethtool-util.c
3322 nodist_libudev_core_la_SOURCES = \
3323 src/udev/keyboard-keys-from-name.h \
3324 src/udev/keyboard-keys-to-name.h \
3325 src/udev/net/link-config-gperf.c
3328 $(nodist_libudev_core_la_SOURCES)
3331 src/udev/keyboard-keys-from-name.gperf \
3332 src/udev/keyboard-keys.txt \
3333 src/udev/net/link-config-gperf.c
3336 src/udev/net/link-config-gperf.gperf
3338 libudev_core_la_CFLAGS = \
3343 libudev_core_la_LIBADD = \
3344 libudev-internal.la \
3345 libsystemd-label.la \
3346 libsystemd-internal.la \
3347 libsystemd-network.la \
3348 libsystemd-shared.la \
3353 libudev_core_la_SOURCES += \
3354 src/udev/udev-builtin-kmod.c
3356 dist_udevrules_DATA += \
3357 rules/80-drivers.rules
3361 libudev_core_la_SOURCES += \
3362 src/udev/udev-builtin-blkid.c
3366 libudev_core_la_SOURCES += \
3367 src/udev/udev-builtin-uaccess.c \
3368 src/login/logind-acl.c \
3369 src/libsystemd/sd-login/sd-login.c \
3370 src/systemd/sd-login.h
3372 libudev_core_la_LIBADD += \
3376 systemd_udevd_SOURCES = \
3379 systemd_udevd_LDADD = \
3383 src/udev/udevadm.c \
3384 src/udev/udevadm-info.c \
3385 src/udev/udevadm-control.c \
3386 src/udev/udevadm-monitor.c \
3387 src/udev/udevadm-hwdb.c \
3388 src/udev/udevadm-settle.c \
3389 src/udev/udevadm-trigger.c \
3390 src/udev/udevadm-test.c \
3391 src/udev/udevadm-test-builtin.c
3396 # Update hwdb on installation. Do not bother if installing
3397 # in DESTDIR, since this is likely for packaging purposes.
3399 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3401 INSTALL_DATA_HOOKS += \
3405 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3407 # ------------------------------------------------------------------------------
3416 test_libudev_SOURCES = \
3417 src/test/test-libudev.c
3419 test_libudev_LDADD = \
3420 libsystemd-label.la \
3421 libudev-internal.la \
3422 libsystemd-shared.la
3424 test_udev_SOURCES = \
3425 src/test/test-udev.c
3434 test_udev_LDADD += \
3441 # packed sysfs test tree
3443 $(AM_V_at)$(MKDIR_P) $(dir $@)
3444 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3448 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3453 test/rules-test.sh \
3454 test/rule-syntax-check.py
3456 # ------------------------------------------------------------------------------
3458 src/udev/ata_id/ata_id.c
3461 libudev-internal.la \
3462 libsystemd-shared.la
3464 udevlibexec_PROGRAMS += \
3467 # ------------------------------------------------------------------------------
3468 cdrom_id_SOURCES = \
3469 src/udev/cdrom_id/cdrom_id.c
3472 libudev-internal.la \
3473 libsystemd-shared.la
3475 udevlibexec_PROGRAMS += \
3478 dist_udevrules_DATA += \
3479 rules/60-cdrom_id.rules
3481 # ------------------------------------------------------------------------------
3483 src/udev/collect/collect.c
3486 libudev-internal.la \
3487 libsystemd-shared.la
3489 udevlibexec_PROGRAMS += \
3492 # ------------------------------------------------------------------------------
3494 src/udev/scsi_id/scsi_id.c \
3495 src/udev/scsi_id/scsi_serial.c \
3496 src/udev/scsi_id/scsi.h \
3497 src/udev/scsi_id/scsi_id.h
3500 libudev-internal.la \
3501 libsystemd-shared.la
3503 udevlibexec_PROGRAMS += \
3507 src/udev/scsi_id/README
3509 # ------------------------------------------------------------------------------
3511 src/udev/v4l_id/v4l_id.c
3516 udevlibexec_PROGRAMS += \
3519 dist_udevrules_DATA += \
3520 rules/60-persistent-v4l.rules
3522 # ------------------------------------------------------------------------------
3523 accelerometer_SOURCES = \
3524 src/udev/accelerometer/accelerometer.c
3526 accelerometer_LDADD = \
3527 libudev-internal.la -lm \
3528 libsystemd-shared.la
3530 udevlibexec_PROGRAMS += \
3533 dist_udevrules_DATA += \
3534 rules/61-accelerometer.rules
3536 # ------------------------------------------------------------------------------
3543 libgudev_includedir = \
3544 $(includedir)/gudev-1.0/gudev
3546 libgudev_include_HEADERS = \
3548 src/gudev/gudevenums.h \
3549 src/gudev/gudevenumtypes.h \
3550 src/gudev/gudevtypes.h \
3551 src/gudev/gudevclient.h \
3552 src/gudev/gudevdevice.h \
3553 src/gudev/gudevenumerator.h
3555 lib_LTLIBRARIES += libgudev-1.0.la
3557 pkgconfiglib_DATA += \
3558 src/gudev/gudev-1.0.pc
3561 src/gudev/gudev-1.0.pc
3563 libgudev_1_0_la_SOURCES = \
3564 src/gudev/libgudev-1.0.sym \
3565 src/gudev/gudevenums.h \
3566 src/gudev/gudevenumtypes.h \
3567 src/gudev/gudevenumtypes.h\
3568 src/gudev/gudevtypes.h \
3569 src/gudev/gudevclient.h \
3570 src/gudev/gudevclient.c \
3571 src/gudev/gudevdevice.h \
3572 src/gudev/gudevdevice.c \
3573 src/gudev/gudevenumerator.h \
3574 src/gudev/gudevenumerator.c \
3575 src/gudev/gudevprivate.h
3577 nodist_libgudev_1_0_la_SOURCES = \
3578 src/gudev/gudevmarshal.h \
3579 src/gudev/gudevmarshal.c \
3580 src/gudev/gudevenumtypes.h \
3581 src/gudev/gudevenumtypes.c
3584 $(nodist_libgudev_1_0_la_SOURCES)
3586 libgudev_1_0_la_CPPFLAGS = \
3588 -I$(top_builddir)/src\
3589 -I$(top_srcdir)/src\
3590 -I$(top_builddir)/src/gudev \
3591 -I$(top_srcdir)/src/gudev \
3592 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3593 -D_GUDEV_COMPILATION \
3594 -DG_LOG_DOMAIN=\"GUdev\"
3596 libgudev_1_0_la_CFLAGS = \
3598 -fvisibility=default \
3601 libgudev_1_0_la_LIBADD = \
3605 libgudev_1_0_la_LDFLAGS = \
3607 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3610 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3612 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3613 $(AM_V_at)$(MKDIR_P) $(dir $@)
3614 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3616 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3617 $(AM_V_at)$(MKDIR_P) $(dir $@)
3618 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3619 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3621 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3622 $(AM_V_at)$(MKDIR_P) $(dir $@)
3623 $(AM_V_GEN)glib-mkenums --template $^ > $@
3625 if HAVE_INTROSPECTION
3626 -include $(INTROSPECTION_MAKEFILE)
3628 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3630 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3632 src_gudev_GUdev_1_0_gir_CFLAGS = \
3635 -D_GUDEV_COMPILATION \
3636 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3637 -I$(top_srcdir)/src \
3638 -I$(top_builddir)/src \
3639 -I$(top_srcdir)/src/gudev \
3640 -I$(top_builddir)/src/gudev
3642 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3644 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3645 --pkg-export=gudev-1.0 \
3648 src_gudev_GUdev_1_0_gir_FILES = \
3650 src/gudev/gudevtypes.h \
3651 src/gudev/gudevenums.h \
3652 src/gudev/gudevenumtypes.h \
3653 src/gudev/gudevclient.h \
3654 src/gudev/gudevdevice.h \
3655 src/gudev/gudevenumerator.h \
3656 src/gudev/gudevclient.c \
3657 src/gudev/gudevdevice.c \
3658 src/gudev/gudevenumerator.c
3660 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3661 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3663 girdir = $(datadir)/gir-1.0
3665 src/gudev/GUdev-1.0.gir
3667 typelibsdir = $(libdir)/girepository-1.0
3669 src/gudev/GUdev-1.0.typelib
3671 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3672 endif # HAVE_INTROSPECTION
3676 src/gudev/gudev-1.0.pc.in \
3677 src/gudev/gudevmarshal.list \
3678 src/gudev/gudevenumtypes.h.template \
3679 src/gudev/gudevenumtypes.c.template \
3680 src/gudev/gjs-example.js \
3681 src/gudev/seed-example-enum.js \
3682 src/gudev/seed-example.js
3684 # ------------------------------------------------------------------------------
3685 mtd_probe_SOURCES = \
3686 src/udev/mtd_probe/mtd_probe.c \
3687 src/udev/mtd_probe/mtd_probe.h \
3688 src/udev/mtd_probe/probe_smartmedia.c
3690 dist_udevrules_DATA += \
3691 rules/75-probe_mtd.rules
3693 udevlibexec_PROGRAMS += \
3696 # ------------------------------------------------------------------------------
3697 test_id128_SOURCES = \
3698 src/test/test-id128.c
3700 test_id128_LDADD = \
3701 libsystemd-internal.la \
3702 libsystemd-shared.la
3707 # ------------------------------------------------------------------------------
3709 rootlibexec_PROGRAMS += \
3712 systemd_activate_SOURCES = \
3713 src/activate/activate.c
3715 systemd_activate_LDADD = \
3716 libsystemd-label.la \
3717 libsystemd-internal.la \
3718 libsystemd-shared.la
3720 # ------------------------------------------------------------------------------
3721 systemd_journald_SOURCES = \
3722 src/journal/journald.c \
3723 src/journal/journald-server.h
3725 systemd_journald_LDADD = \
3726 libsystemd-journal-core.la \
3727 libsystemd-internal.la \
3728 libsystemd-shared.la
3730 systemd_cat_SOURCES = \
3733 systemd_cat_LDADD = \
3734 libsystemd-journal-core.la
3737 rootlibexec_PROGRAMS += \
3738 systemd-journal-remote
3740 systemd_journal_remote_SOURCES = \
3741 src/journal-remote/journal-remote-parse.h \
3742 src/journal-remote/journal-remote-parse.c \
3743 src/journal-remote/journal-remote-write.h \
3744 src/journal-remote/journal-remote-write.c \
3745 src/journal-remote/journal-remote.h \
3746 src/journal-remote/journal-remote.c
3748 systemd_journal_remote_LDADD = \
3749 libsystemd-internal.la \
3750 libsystemd-journal-core.la
3752 systemd_journal_remote_SOURCES += \
3753 src/journal-remote/microhttpd-util.h \
3754 src/journal-remote/microhttpd-util.c
3756 systemd_journal_remote_CFLAGS = \
3758 $(MICROHTTPD_CFLAGS)
3760 systemd_journal_remote_LDADD += \
3764 systemd_journal_remote_LDADD += \
3767 # systemd-journal-remote make sense mostly with full crypto stack
3768 dist_systemunit_DATA += \
3769 units/systemd-journal-remote.socket
3771 nodist_systemunit_DATA += \
3772 units/systemd-journal-remote.service
3775 units/systemd-journal-remote.service.in
3777 journal-remote-install-hook: journal-install-hook
3778 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3779 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3780 -chmod 755 $(DESTDIR)/var/log/journal/remote
3782 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3786 nodist_pkgsysconf_DATA += \
3787 src/journal-remote/journal-remote.conf
3790 src/journal-remote/journal-remote.conf.in
3793 src/journal-remote/journal-remote.conf
3797 rootlibexec_PROGRAMS += \
3798 systemd-journal-upload
3800 systemd_journal_upload_SOURCES = \
3801 src/journal-remote/journal-upload.h \
3802 src/journal-remote/journal-upload.c \
3803 src/journal-remote/journal-upload-journal.c
3805 systemd_journal_upload_CFLAGS = \
3809 systemd_journal_upload_LDADD = \
3810 libsystemd-core.la \
3811 libsystemd-internal.la \
3812 libsystemd-journal-internal.la \
3813 libsystemd-shared.la \
3816 nodist_systemunit_DATA += \
3817 units/systemd-journal-upload.service
3820 units/systemd-journal-upload.service.in
3822 nodist_pkgsysconf_DATA += \
3823 src/journal-remote/journal-upload.conf
3826 src/journal-remote/journal-upload.conf.in
3829 src/journal-remote/journal-upload.conf
3832 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3833 journalctl_CFLAGS = \
3836 journalctl_SOURCES = \
3837 src/journal/journalctl.c
3839 journalctl_LDADD = \
3840 libsystemd-journal-internal.la \
3841 libsystemd-internal.la \
3842 libsystemd-logs.la \
3843 libsystemd-shared.la
3846 journalctl_LDADD += \
3851 journalctl_SOURCES += \
3852 src/journal/journal-qrcode.c \
3853 src/journal/journal-qrcode.h
3855 journalctl_CFLAGS += \
3858 journalctl_LDADD += \
3862 test_journal_SOURCES = \
3863 src/journal/test-journal.c
3865 test_journal_LDADD = \
3866 libsystemd-journal-core.la
3868 test_journal_send_SOURCES = \
3869 src/journal/test-journal-send.c
3871 test_journal_send_LDADD = \
3872 libsystemd-journal-core.la
3874 test_journal_syslog_SOURCES = \
3875 src/journal/test-journal-syslog.c
3877 test_journal_syslog_LDADD = \
3878 libsystemd-journal-core.la
3880 test_journal_match_SOURCES = \
3881 src/journal/test-journal-match.c
3883 test_journal_match_LDADD = \
3884 libsystemd-journal-core.la
3886 test_journal_enum_SOURCES = \
3887 src/journal/test-journal-enum.c
3889 test_journal_enum_LDADD = \
3890 libsystemd-journal-core.la
3892 test_journal_stream_SOURCES = \
3893 src/journal/test-journal-stream.c
3895 test_journal_stream_LDADD = \
3896 libsystemd-journal-core.la
3898 test_journal_flush_SOURCES = \
3899 src/journal/test-journal-flush.c
3901 test_journal_flush_LDADD = \
3902 libsystemd-journal-core.la
3904 test_journal_init_SOURCES = \
3905 src/journal/test-journal-init.c
3907 test_journal_init_LDADD = \
3908 libsystemd-journal-core.la
3910 test_journal_verify_SOURCES = \
3911 src/journal/test-journal-verify.c
3913 test_journal_verify_LDADD = \
3914 libsystemd-journal-core.la
3916 test_journal_interleaving_SOURCES = \
3917 src/journal/test-journal-interleaving.c
3919 test_journal_interleaving_LDADD = \
3920 libsystemd-journal-core.la
3922 test_mmap_cache_SOURCES = \
3923 src/journal/test-mmap-cache.c
3925 test_mmap_cache_LDADD = \
3926 libsystemd-journal-core.la
3928 test_catalog_SOURCES = \
3929 src/journal/test-catalog.c
3931 test_catalog_CPPFLAGS = \
3933 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3935 test_catalog_LDADD = \
3936 libsystemd-journal-core.la
3938 test_compress_SOURCES = \
3939 src/journal/test-compress.c
3941 test_compress_LDADD = \
3942 libsystemd-journal-internal.la \
3943 libsystemd-shared.la
3945 test_compress_benchmark_SOURCES = \
3946 src/journal/test-compress-benchmark.c
3948 test_compress_benchmark_LDADD = \
3949 libsystemd-journal-internal.la \
3950 libsystemd-shared.la
3952 libsystemd_journal_core_la_SOURCES = \
3953 src/journal/journald-kmsg.c \
3954 src/journal/journald-kmsg.h \
3955 src/journal/journald-syslog.c \
3956 src/journal/journald-syslog.h \
3957 src/journal/journald-stream.c \
3958 src/journal/journald-stream.h \
3959 src/journal/journald-server.c \
3960 src/journal/journald-server.h \
3961 src/journal/journald-console.c \
3962 src/journal/journald-console.h \
3963 src/journal/journald-wall.c \
3964 src/journal/journald-wall.h \
3965 src/journal/journald-native.c \
3966 src/journal/journald-native.h \
3967 src/journal/journald-rate-limit.c \
3968 src/journal/journald-rate-limit.h \
3969 src/journal/journal-internal.h
3971 nodist_libsystemd_journal_core_la_SOURCES = \
3972 src/journal/journald-gperf.c
3974 libsystemd_journal_core_la_LIBADD = \
3975 libsystemd-journal-internal.la \
3976 libudev-internal.la \
3977 libsystemd-capability.la \
3978 libsystemd-label.la \
3979 libsystemd-internal.la \
3980 libsystemd-shared.la
3983 libsystemd_journal_core_la_LIBADD += \
3987 noinst_LTLIBRARIES += \
3988 libsystemd-journal-core.la
3990 journal-install-hook:
3991 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3992 -chown 0:0 $(DESTDIR)/var/log/journal
3993 -chmod 755 $(DESTDIR)/var/log/journal
3994 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3995 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3997 journal-uninstall-hook:
3998 -rmdir $(DESTDIR)/var/log/journal/remote
3999 -rmdir $(DESTDIR)/var/log/journal/
4001 INSTALL_EXEC_HOOKS += journal-install-hook
4002 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4004 # ------------------------------------------------------------------------------
4005 # Update catalog on installation. Do not bother if installing
4006 # in DESTDIR, since this is likely for packaging purposes.
4007 catalog-update-hook:
4008 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4010 INSTALL_DATA_HOOKS += \
4013 catalog-remove-hook:
4014 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4016 UNINSTALL_DATA_HOOKS += \
4025 test-journal-syslog \
4026 test-journal-match \
4027 test-journal-stream \
4029 test-journal-verify \
4030 test-journal-interleaving \
4031 test-journal-flush \
4038 test-compress-benchmark
4041 pkginclude_HEADERS += \
4042 src/systemd/sd-journal.h \
4043 src/systemd/sd-messages.h \
4044 src/systemd/_sd-common.h
4046 libsystemd_journal_internal_la_SOURCES = \
4047 src/journal/sd-journal.c \
4048 src/systemd/sd-journal.h \
4049 src/systemd/_sd-common.h \
4050 src/journal/journal-file.c \
4051 src/journal/journal-file.h \
4052 src/journal/journal-vacuum.c \
4053 src/journal/journal-vacuum.h \
4054 src/journal/journal-verify.c \
4055 src/journal/journal-verify.h \
4056 src/journal/lookup3.c \
4057 src/journal/lookup3.h \
4058 src/journal/journal-send.c \
4059 src/journal/journal-def.h \
4060 src/journal/compress.h \
4061 src/journal/catalog.c \
4062 src/journal/catalog.h \
4063 src/journal/mmap-cache.c \
4064 src/journal/mmap-cache.h
4066 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4067 libsystemd_journal_internal_la_CFLAGS = \
4070 libsystemd_journal_internal_la_LIBADD =
4072 libsystemd_journal_internal_la_SOURCES += \
4073 src/journal/compress.c
4076 libsystemd_journal_internal_la_CFLAGS += \
4079 libsystemd_journal_internal_la_LIBADD += \
4084 libsystemd_journal_internal_la_LIBADD += \
4089 libsystemd_journal_internal_la_SOURCES += \
4090 src/journal/journal-authenticate.c \
4091 src/journal/journal-authenticate.h \
4092 src/journal/fsprg.c \
4095 libsystemd_journal_internal_la_LIBADD += \
4098 # fsprg.c is a drop-in file using void pointer arithmetic
4099 libsystemd_journal_internal_la_CFLAGS += \
4104 noinst_LTLIBRARIES += \
4105 libsystemd-journal-internal.la
4107 rootlibexec_PROGRAMS += \
4110 rootbin_PROGRAMS += \
4116 dist_systemunit_DATA += \
4117 units/systemd-journald.socket \
4118 units/systemd-journald-dev-log.socket
4120 nodist_systemunit_DATA += \
4121 units/systemd-journald.service \
4122 units/systemd-journal-flush.service \
4123 units/systemd-journal-catalog-update.service
4125 dist_pkgsysconf_DATA += \
4126 src/journal/journald.conf
4128 dist_catalog_DATA = \
4129 catalog/systemd.fr.catalog \
4130 catalog/systemd.ru.catalog \
4131 catalog/systemd.it.catalog \
4132 catalog/systemd.catalog
4134 SOCKETS_TARGET_WANTS += \
4135 systemd-journald.socket \
4136 systemd-journald-dev-log.socket
4138 SYSINIT_TARGET_WANTS += \
4139 systemd-journald.service \
4140 systemd-journal-flush.service \
4141 systemd-journal-catalog-update.service
4144 units/systemd-journald.service.in \
4145 units/systemd-journal-flush.service.in \
4146 units/systemd-journal-catalog-update.service.in \
4147 src/journal/journald-gperf.gperf
4150 src/journal/journald-gperf.c
4152 # ------------------------------------------------------------------------------
4154 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4156 rootlibexec_PROGRAMS += \
4157 systemd-journal-gatewayd
4159 systemd_journal_gatewayd_SOURCES = \
4160 src/journal-remote/journal-gatewayd.c \
4161 src/journal-remote/microhttpd-util.h \
4162 src/journal-remote/microhttpd-util.c
4164 systemd_journal_gatewayd_LDADD = \
4165 libsystemd-logs.la \
4166 libsystemd-journal-internal.la \
4167 libsystemd-internal.la \
4168 libsystemd-shared.la \
4172 systemd_journal_gatewayd_LDADD += \
4176 systemd_journal_gatewayd_CFLAGS = \
4178 $(MICROHTTPD_CFLAGS)
4180 systemd_journal_gatewayd_CPPFLAGS = \
4182 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4184 dist_systemunit_DATA += \
4185 units/systemd-journal-gatewayd.socket
4187 nodist_systemunit_DATA += \
4188 units/systemd-journal-gatewayd.service
4190 dist_gatewayddocumentroot_DATA = \
4191 src/journal-remote/browse.html
4196 units/systemd-journal-gatewayd.service.in
4198 # ------------------------------------------------------------------------------
4200 systemd_socket_proxyd_SOURCES = \
4201 src/socket-proxy/socket-proxyd.c
4203 systemd_socket_proxyd_LDADD = \
4204 libsystemd-logs.la \
4205 libsystemd-internal.la \
4206 libsystemd-journal-internal.la \
4207 libsystemd-shared.la \
4208 libsystemd-resolve.la
4210 # ------------------------------------------------------------------------------
4212 systemd_coredump_SOURCES = \
4213 src/journal/coredump.c \
4214 src/journal/coredump-vacuum.c \
4215 src/journal/coredump-vacuum.h
4217 systemd_coredump_LDADD = \
4218 libsystemd-journal-internal.la \
4219 libsystemd-label.la \
4220 libsystemd-internal.la \
4221 libsystemd-shared.la
4224 systemd_coredump_SOURCES += \
4225 src/journal/stacktrace.c \
4226 src/journal/stacktrace.h
4228 systemd_coredump_LDADD += \
4232 rootlibexec_PROGRAMS += \
4235 dist_pkgsysconf_DATA += \
4236 src/journal/coredump.conf
4239 systemd_coredump_LDADD += \
4243 coredumpctl_SOURCES = \
4244 src/journal/coredumpctl.c
4246 coredumpctl_LDADD = \
4247 libsystemd-journal-internal.la \
4248 libsystemd-internal.la \
4249 libsystemd-shared.la
4255 test-coredump-vacuum
4257 test_coredump_vacuum_SOURCES = \
4258 src/journal/test-coredump-vacuum.c \
4259 src/journal/coredump-vacuum.c \
4260 src/journal/coredump-vacuum.h
4262 test_coredump_vacuum_LDADD = \
4263 libsystemd-internal.la \
4264 libsystemd-shared.la
4266 dist_bashcompletion_DATA += \
4267 shell-completion/bash/coredumpctl
4269 dist_zshcompletion_DATA += \
4270 shell-completion/zsh/_coredumpctl
4273 sysctl.d/50-coredump.conf
4276 sysctl.d/50-coredump.conf
4280 sysctl.d/50-coredump.conf.in
4282 # ------------------------------------------------------------------------------
4284 systemd_binfmt_SOURCES = \
4287 systemd_binfmt_LDADD = \
4288 libsystemd-shared.la
4290 rootlibexec_PROGRAMS += \
4293 dist_systemunit_DATA += \
4294 units/proc-sys-fs-binfmt_misc.automount \
4295 units/proc-sys-fs-binfmt_misc.mount
4297 nodist_systemunit_DATA += \
4298 units/systemd-binfmt.service
4301 $(prefix)/lib/binfmt.d \
4302 $(sysconfdir)/binfmt.d
4304 SYSINIT_TARGET_WANTS += \
4305 systemd-binfmt.service \
4306 proc-sys-fs-binfmt_misc.automount
4311 units/systemd-binfmt.service.in
4313 # ------------------------------------------------------------------------------
4315 systemd_vconsole_setup_SOURCES = \
4316 src/vconsole/vconsole-setup.c
4318 systemd_vconsole_setup_LDADD = \
4319 libsystemd-shared.la
4321 rootlibexec_PROGRAMS += \
4322 systemd-vconsole-setup
4324 nodist_systemunit_DATA += \
4325 units/systemd-vconsole-setup.service
4327 SYSINIT_TARGET_WANTS += \
4328 systemd-vconsole-setup.service
4332 units/systemd-vconsole-setup.service.in
4334 # ------------------------------------------------------------------------------
4336 systemd_bootchart_SOURCES = \
4337 src/bootchart/bootchart.c \
4338 src/bootchart/bootchart.h \
4339 src/bootchart/store.c \
4340 src/bootchart/store.h \
4341 src/bootchart/svg.c \
4344 systemd_bootchart_LDADD = \
4345 libsystemd-journal-internal.la \
4346 libsystemd-shared.la
4348 rootlibexec_PROGRAMS += \
4351 dist_pkgsysconf_DATA += \
4352 src/bootchart/bootchart.conf
4355 # ------------------------------------------------------------------------------
4356 if ENABLE_QUOTACHECK
4357 rootlibexec_PROGRAMS += \
4360 nodist_systemunit_DATA += \
4361 units/systemd-quotacheck.service
4363 systemd_quotacheck_SOURCES = \
4364 src/quotacheck/quotacheck.c
4366 systemd_quotacheck_LDADD = \
4367 libsystemd-shared.la
4371 units/systemd-quotacheck.service.in
4373 nodist_systemunit_DATA += \
4374 units/quotaon.service
4376 # ------------------------------------------------------------------------------
4377 if ENABLE_RANDOMSEED
4378 rootlibexec_PROGRAMS += \
4381 nodist_systemunit_DATA += \
4382 units/systemd-random-seed.service
4384 systemd_random_seed_SOURCES = \
4385 src/random-seed/random-seed.c
4387 systemd_random_seed_LDADD = \
4388 libsystemd-label.la \
4389 libsystemd-shared.la
4391 SYSINIT_TARGET_WANTS += \
4392 systemd-random-seed.service
4397 units/systemd-random-seed.service.in
4399 # ------------------------------------------------------------------------------
4401 rootlibexec_PROGRAMS += \
4404 nodist_systemunit_DATA += \
4405 units/systemd-backlight@.service
4407 systemd_backlight_SOURCES = \
4408 src/backlight/backlight.c
4410 systemd_backlight_LDADD = \
4411 libsystemd-label.la \
4412 libudev-internal.la \
4413 libsystemd-shared.la
4417 units/systemd-backlight@.service.in
4419 # ------------------------------------------------------------------------------
4421 rootlibexec_PROGRAMS += \
4424 nodist_systemunit_DATA += \
4425 units/systemd-rfkill@.service
4427 systemd_rfkill_SOURCES = \
4430 systemd_rfkill_LDADD = \
4431 libsystemd-label.la \
4432 libudev-internal.la \
4433 libsystemd-shared.la
4437 units/systemd-rfkill@.service.in
4439 # ------------------------------------------------------------------------------
4440 if HAVE_LIBCRYPTSETUP
4441 rootlibexec_PROGRAMS += \
4444 systemgenerator_PROGRAMS += \
4445 systemd-cryptsetup-generator
4447 dist_systemunit_DATA += \
4448 units/cryptsetup.target \
4449 units/cryptsetup-pre.target
4451 systemd_cryptsetup_SOURCES = \
4452 src/cryptsetup/cryptsetup.c
4454 systemd_cryptsetup_CFLAGS = \
4456 $(LIBCRYPTSETUP_CFLAGS)
4458 systemd_cryptsetup_LDADD = \
4459 libsystemd-label.la \
4460 libudev-internal.la \
4461 libsystemd-shared.la \
4462 $(LIBCRYPTSETUP_LIBS)
4464 systemd_cryptsetup_generator_SOURCES = \
4465 src/cryptsetup/cryptsetup-generator.c
4467 systemd_cryptsetup_generator_LDADD = \
4468 libsystemd-label.la \
4469 libsystemd-shared.la
4471 SYSINIT_TARGET_WANTS += \
4476 # ------------------------------------------------------------------------------
4478 systemd_hostnamed_SOURCES = \
4479 src/hostname/hostnamed.c
4481 systemd_hostnamed_LDADD = \
4482 libsystemd-label.la \
4483 libsystemd-internal.la \
4484 libsystemd-shared.la
4486 rootlibexec_PROGRAMS += \
4489 nodist_systemunit_DATA += \
4490 units/systemd-hostnamed.service
4492 dist_systemunit_DATA_busnames += \
4493 units/org.freedesktop.hostname1.busname
4495 dist_dbuspolicy_DATA += \
4496 src/hostname/org.freedesktop.hostname1.conf
4498 dist_dbussystemservice_DATA += \
4499 src/hostname/org.freedesktop.hostname1.service
4501 polkitpolicy_files += \
4502 src/hostname/org.freedesktop.hostname1.policy
4504 SYSTEM_UNIT_ALIASES += \
4505 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4507 BUSNAMES_TARGET_WANTS += \
4508 org.freedesktop.hostname1.busname
4510 hostnamectl_SOURCES = \
4511 src/hostname/hostnamectl.c
4513 hostnamectl_LDADD = \
4514 libsystemd-internal.la \
4515 libsystemd-shared.la
4520 dist_bashcompletion_DATA += \
4521 shell-completion/bash/hostnamectl
4523 dist_zshcompletion_DATA += \
4524 shell-completion/zsh/_hostnamectl
4528 polkitpolicy_in_files += \
4529 src/hostname/org.freedesktop.hostname1.policy.in
4532 units/systemd-hostnamed.service.in
4534 # ------------------------------------------------------------------------------
4535 dist_systemunit_DATA_busnames += \
4536 units/org.freedesktop.systemd1.busname
4538 BUSNAMES_TARGET_WANTS += \
4539 org.freedesktop.systemd1.busname
4541 # ------------------------------------------------------------------------------
4543 systemd_localed_SOURCES = \
4544 src/locale/localed.c
4546 systemd_localed_LDADD = \
4547 libsystemd-label.la \
4548 libsystemd-internal.la \
4549 libsystemd-shared.la
4551 nodist_systemunit_DATA += \
4552 units/systemd-localed.service
4554 dist_systemunit_DATA_busnames += \
4555 units/org.freedesktop.locale1.busname
4557 rootlibexec_PROGRAMS += \
4560 dist_dbuspolicy_DATA += \
4561 src/locale/org.freedesktop.locale1.conf
4563 dist_dbussystemservice_DATA += \
4564 src/locale/org.freedesktop.locale1.service
4566 polkitpolicy_files += \
4567 src/locale/org.freedesktop.locale1.policy
4569 SYSTEM_UNIT_ALIASES += \
4570 systemd-localed.service dbus-org.freedesktop.locale1.service
4572 BUSNAMES_TARGET_WANTS += \
4573 org.freedesktop.locale1.busname
4575 dist_pkgdata_DATA += \
4576 src/locale/kbd-model-map
4578 dist_noinst_SCRIPT = \
4579 src/locale/generate-kbd-model-map
4581 localectl_SOURCES = \
4582 src/locale/localectl.c
4585 libsystemd-internal.la \
4586 libsystemd-shared.la
4591 dist_bashcompletion_DATA += \
4592 shell-completion/bash/localectl
4594 dist_zshcompletion_DATA += \
4595 shell-completion/zsh/_localectl
4599 .PHONY: update-kbd-model-map
4601 polkitpolicy_in_files += \
4602 src/locale/org.freedesktop.locale1.policy.in
4605 units/systemd-localed.service.in
4607 # ------------------------------------------------------------------------------
4609 systemd_timedated_SOURCES = \
4610 src/timedate/timedated.c
4612 systemd_timedated_LDADD = \
4613 libsystemd-label.la \
4614 libsystemd-internal.la \
4615 libsystemd-shared.la
4617 rootlibexec_PROGRAMS += \
4620 dist_dbussystemservice_DATA += \
4621 src/timedate/org.freedesktop.timedate1.service
4623 dist_dbuspolicy_DATA += \
4624 src/timedate/org.freedesktop.timedate1.conf
4626 nodist_systemunit_DATA += \
4627 units/systemd-timedated.service
4629 dist_systemunit_DATA_busnames += \
4630 units/org.freedesktop.timedate1.busname
4632 polkitpolicy_files += \
4633 src/timedate/org.freedesktop.timedate1.policy
4635 SYSTEM_UNIT_ALIASES += \
4636 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4638 BUSNAMES_TARGET_WANTS += \
4639 org.freedesktop.timedate1.busname
4641 timedatectl_SOURCES = \
4642 src/timedate/timedatectl.c
4644 timedatectl_LDADD = \
4645 libsystemd-internal.la \
4646 libsystemd-shared.la
4651 dist_bashcompletion_DATA += \
4652 shell-completion/bash/timedatectl
4654 dist_zshcompletion_DATA += \
4655 shell-completion/zsh/_timedatectl
4658 polkitpolicy_in_files += \
4659 src/timedate/org.freedesktop.timedate1.policy.in
4662 units/systemd-timedated.service.in
4664 # ------------------------------------------------------------------------------
4666 systemd_timesyncd_SOURCES = \
4667 src/timesync/timesyncd.c \
4668 src/timesync/timesyncd-manager.c \
4669 src/timesync/timesyncd-manager.h \
4670 src/timesync/timesyncd-conf.c \
4671 src/timesync/timesyncd-conf.h \
4672 src/timesync/timesyncd-server.c \
4673 src/timesync/timesyncd-server.h
4675 nodist_systemd_timesyncd_SOURCES = \
4676 src/timesync/timesyncd-gperf.c
4679 src/timesync/timesyncd-gperf.gperf
4682 src/timesync/timesyncd-gperf.c
4684 systemd_timesyncd_LDADD = \
4685 libsystemd-resolve.la \
4686 libsystemd-network.la \
4687 libsystemd-label.la \
4688 libsystemd-capability.la \
4689 libsystemd-internal.la \
4690 libsystemd-shared.la \
4693 rootlibexec_PROGRAMS += \
4696 nodist_systemunit_DATA += \
4697 units/systemd-timesyncd.service
4699 GENERAL_ALIASES += \
4700 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4703 units/systemd-timesyncd.service.in
4705 nodist_pkgsysconf_DATA += \
4706 src/timesync/timesyncd.conf
4709 src/timesync/timesyncd.conf.in
4712 src/timesync/timesyncd.conf
4715 # ------------------------------------------------------------------------------
4717 libnss_myhostname_la_SOURCES = \
4718 src/nss-myhostname/nss-myhostname.sym \
4719 src/nss-myhostname/nss-myhostname.c
4721 libnss_myhostname_la_LDFLAGS = \
4728 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4730 libnss_myhostname_la_LIBADD = \
4731 libsystemd-shared.la \
4732 libsystemd-internal.la
4734 lib_LTLIBRARIES += \
4735 libnss_myhostname.la
4738 # ------------------------------------------------------------------------------
4740 systemd_machined_SOURCES = \
4741 src/machine/machined.c \
4742 src/machine/machined.h
4744 systemd_machined_LDADD = \
4745 libsystemd-machine-core.la
4747 rootlibexec_PROGRAMS += \
4750 libsystemd_machine_core_la_SOURCES = \
4751 src/machine/machined-dbus.c \
4752 src/machine/machine.c \
4753 src/machine/machine.h \
4754 src/machine/machine-dbus.c
4756 libsystemd_machine_core_la_LIBADD = \
4757 libsystemd-label.la \
4758 libsystemd-internal.la \
4759 libudev-internal.la \
4760 libsystemd-shared.la
4762 noinst_LTLIBRARIES += \
4763 libsystemd-machine-core.la
4765 machinectl_SOURCES = \
4766 src/machine/machinectl.c
4768 machinectl_LDADD = \
4769 libsystemd-internal.la \
4770 libsystemd-shared.la
4772 rootbin_PROGRAMS += \
4775 dist_bashcompletion_DATA += \
4776 shell-completion/bash/machinectl
4778 test_machine_tables_SOURCES = \
4779 src/machine/test-machine-tables.c
4781 test_machine_tables_LDADD = \
4782 libsystemd-machine-core.la
4787 nodist_systemunit_DATA += \
4788 units/systemd-machined.service
4790 dist_systemunit_DATA += \
4793 dist_systemunit_DATA_busnames += \
4794 units/org.freedesktop.machine1.busname
4796 dist_dbussystemservice_DATA += \
4797 src/machine/org.freedesktop.machine1.service
4799 dist_dbuspolicy_DATA += \
4800 src/machine/org.freedesktop.machine1.conf
4802 dist_zshcompletion_DATA += \
4803 shell-completion/zsh/_machinectl \
4804 shell-completion/zsh/_sd_machines
4806 SYSTEM_UNIT_ALIASES += \
4807 systemd-machined.service dbus-org.freedesktop.machine1.service
4809 BUSNAMES_TARGET_WANTS += \
4810 org.freedesktop.machine1.busname
4813 units/systemd-machined.service.in
4815 libnss_mymachines_la_SOURCES = \
4816 src/nss-mymachines/nss-mymachines.sym \
4817 src/nss-mymachines/nss-mymachines.c
4819 libnss_mymachines_la_LDFLAGS = \
4826 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4828 libnss_mymachines_la_LIBADD = \
4829 libsystemd-shared.la \
4830 libsystemd-internal.la
4832 lib_LTLIBRARIES += \
4833 libnss_mymachines.la
4836 # ------------------------------------------------------------------------------
4838 systemd_resolved_SOURCES = \
4839 src/resolve/resolved.c \
4840 src/resolve/resolved-manager.c \
4841 src/resolve/resolved-manager.h \
4842 src/resolve/resolved-conf.c \
4843 src/resolve/resolved-conf.h \
4844 src/resolve/resolved-bus.c \
4845 src/resolve/resolved-bus.h \
4846 src/resolve/resolved-link.h \
4847 src/resolve/resolved-link.c \
4848 src/resolve/resolved-def.h \
4849 src/resolve/resolved-dns-domain.h \
4850 src/resolve/resolved-dns-domain.c \
4851 src/resolve/resolved-dns-rr.h \
4852 src/resolve/resolved-dns-rr.c \
4853 src/resolve/resolved-dns-question.h \
4854 src/resolve/resolved-dns-question.c \
4855 src/resolve/resolved-dns-answer.h \
4856 src/resolve/resolved-dns-answer.c \
4857 src/resolve/resolved-dns-packet.h \
4858 src/resolve/resolved-dns-packet.c \
4859 src/resolve/resolved-dns-query.h \
4860 src/resolve/resolved-dns-query.c \
4861 src/resolve/resolved-dns-transaction.h \
4862 src/resolve/resolved-dns-transaction.c \
4863 src/resolve/resolved-dns-scope.h \
4864 src/resolve/resolved-dns-scope.c \
4865 src/resolve/resolved-dns-server.h \
4866 src/resolve/resolved-dns-server.c \
4867 src/resolve/resolved-dns-cache.h \
4868 src/resolve/resolved-dns-cache.c \
4869 src/resolve/resolved-dns-zone.h \
4870 src/resolve/resolved-dns-zone.c \
4871 src/resolve/resolved-dns-stream.h \
4872 src/resolve/resolved-dns-stream.c \
4873 src/resolve/dns-type.c \
4874 src/resolve/dns-type.h \
4875 src/resolve/dns_type-from-name.h \
4876 src/resolve/dns_type-to-name.h
4878 nodist_systemd_resolved_SOURCES = \
4879 src/resolve/resolved-gperf.c
4882 src/resolve/resolved-gperf.gperf \
4883 src/resolve/dns_type-from-name.gperf
4886 src/resolve/resolved-gperf.c
4888 systemd_resolved_LDADD = \
4889 libsystemd-capability.la \
4890 libsystemd-network.la \
4891 libsystemd-label.la \
4892 libsystemd-internal.la \
4893 libsystemd-shared.la \
4897 rootlibexec_PROGRAMS += \
4900 nodist_systemunit_DATA += \
4901 units/systemd-resolved.service
4903 dist_systemunit_DATA_busnames += \
4904 units/org.freedesktop.resolve1.busname
4906 dist_dbuspolicy_DATA += \
4907 src/resolve/org.freedesktop.resolve1.conf
4909 dist_dbussystemservice_DATA += \
4910 src/resolve/org.freedesktop.resolve1.service
4913 units/systemd-resolved.service.in
4915 SYSTEM_UNIT_ALIASES += \
4916 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4918 BUSNAMES_TARGET_WANTS += \
4919 org.freedesktop.resolve1.busname
4921 GENERAL_ALIASES += \
4922 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4924 nodist_pkgsysconf_DATA += \
4925 src/resolve/resolved.conf
4928 src/resolve/resolved.conf.in
4931 src/resolve/resolved.conf
4936 test_dns_domain_SOURCES = \
4937 src/resolve/resolved-dns-domain.h \
4938 src/resolve/resolved-dns-domain.c \
4939 src/resolve/test-dns-domain.c
4941 test_dns_domain_LDADD = \
4942 libsystemd-capability.la \
4943 libsystemd-network.la \
4944 libsystemd-label.la \
4945 libsystemd-internal.la \
4946 libsystemd-shared.la \
4949 libnss_resolve_la_SOURCES = \
4950 src/nss-resolve/nss-resolve.sym \
4951 src/nss-resolve/nss-resolve.c
4953 libnss_resolve_la_LDFLAGS = \
4960 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
4962 libnss_resolve_la_LIBADD = \
4963 libsystemd-shared.la \
4964 libsystemd-internal.la
4966 lib_LTLIBRARIES += \
4969 systemd_resolve_host_SOURCES = \
4970 src/resolve-host/resolve-host.c \
4971 src/resolve/resolved-dns-packet.c \
4972 src/resolve/resolved-dns-packet.h \
4973 src/resolve/resolved-dns-rr.c \
4974 src/resolve/resolved-dns-rr.h \
4975 src/resolve/resolved-dns-answer.c \
4976 src/resolve/resolved-dns-answer.h \
4977 src/resolve/resolved-dns-question.c \
4978 src/resolve/resolved-dns-question.h \
4979 src/resolve/resolved-dns-domain.c \
4980 src/resolve/resolved-dns-domain.h \
4981 src/resolve/dns-type.c \
4982 src/resolve/dns-type.h \
4983 src/resolve/dns_type-from-name.h \
4984 src/resolve/dns_type-to-name.h
4986 systemd_resolve_host_LDADD = \
4987 libsystemd-internal.la \
4988 libsystemd-shared.la \
4992 rootlibexec_PROGRAMS += \
4993 systemd-resolve-host
4997 # ------------------------------------------------------------------------------
4999 rootlibexec_PROGRAMS += \
5002 systemd_networkd_SOURCES = \
5003 src/network/networkd.c
5005 systemd_networkd_LDADD = \
5006 libsystemd-networkd-core.la \
5007 libsystemd-capability.la
5009 noinst_LTLIBRARIES += \
5010 libsystemd-networkd-core.la
5012 libsystemd_networkd_core_la_CFLAGS = \
5015 libsystemd_networkd_core_la_SOURCES = \
5016 src/libsystemd-network/network-internal.h \
5017 src/network/networkd.h \
5018 src/network/networkd-link.h \
5019 src/network/networkd-netdev.h \
5020 src/network/networkd-netdev-tunnel.h \
5021 src/network/networkd-netdev-veth.h \
5022 src/network/networkd-netdev-vxlan.h \
5023 src/network/networkd-netdev-vlan.h \
5024 src/network/networkd-netdev-macvlan.h \
5025 src/network/networkd-netdev-dummy.h \
5026 src/network/networkd-netdev-tuntap.h \
5027 src/network/networkd-netdev-bond.h \
5028 src/network/networkd-netdev-bridge.h \
5029 src/network/networkd-netdev.c \
5030 src/network/networkd-netdev-tunnel.c \
5031 src/network/networkd-netdev-veth.c \
5032 src/network/networkd-netdev-vxlan.c \
5033 src/network/networkd-netdev-vlan.c \
5034 src/network/networkd-netdev-macvlan.c \
5035 src/network/networkd-netdev-dummy.c \
5036 src/network/networkd-netdev-tuntap.c \
5037 src/network/networkd-netdev-bond.c \
5038 src/network/networkd-netdev-bridge.c \
5039 src/network/networkd-link.c \
5040 src/network/networkd-ipv4ll.c \
5041 src/network/networkd-dhcp4.c \
5042 src/network/networkd-network.c \
5043 src/network/networkd-address.c \
5044 src/network/networkd-route.c \
5045 src/network/networkd-manager.c \
5046 src/network/networkd-address-pool.c
5048 nodist_libsystemd_networkd_core_la_SOURCES = \
5049 src/network/networkd-network-gperf.c \
5050 src/network/networkd-netdev-gperf.c
5052 libsystemd_networkd_core_la_LIBADD = \
5053 libudev-internal.la \
5054 libsystemd-internal.la \
5055 libsystemd-network.la \
5056 libsystemd-label.la \
5057 libsystemd-shared.la
5059 rootlibexec_PROGRAMS += \
5060 systemd-networkd-wait-online
5062 systemd_networkd_wait_online_CFLAGS = \
5065 systemd_networkd_wait_online_SOURCES = \
5066 src/libsystemd-network/network-internal.h \
5067 src/network/networkd-wait-online.h \
5068 src/network/networkd-wait-online-link.h \
5069 src/network/networkd-wait-online.c \
5070 src/network/networkd-wait-online-manager.c \
5071 src/network/networkd-wait-online-link.c
5073 systemd_networkd_wait_online_LDADD = \
5074 libsystemd-network.la \
5075 libudev-internal.la \
5076 libsystemd-internal.la \
5077 libsystemd-shared.la
5079 rootbin_PROGRAMS += \
5082 networkctl_SOURCES = \
5083 src/network/networkctl.c
5085 networkctl_LDADD = \
5086 libsystemd-internal.la \
5087 libudev-internal.la \
5088 libsystemd-shared.la \
5089 libsystemd-network.la
5091 test_network_SOURCES = \
5092 src/network/test-network.c
5094 test_network_CFLAGS = \
5097 test_network_LDADD = \
5098 libsystemd-networkd-core.la
5100 test_network_tables_SOURCES = \
5101 src/network/test-network-tables.c \
5102 src/shared/test-tables.h
5104 test_network_tables_LDADD = \
5105 libsystemd-networkd-core.la \
5112 nodist_systemunit_DATA += \
5113 units/systemd-networkd.service \
5114 units/systemd-networkd-wait-online.service
5116 GENERAL_ALIASES += \
5117 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5118 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5121 src/network/networkd-network-gperf.gperf \
5122 src/network/networkd-netdev-gperf.gperf \
5123 units/systemd-networkd.service.in \
5124 units/systemd-networkd-wait-online.service.in
5127 src/network/networkd-network-gperf.c \
5128 src/network/networkd-netdev-gperf.c
5131 # ------------------------------------------------------------------------------
5133 systemd_logind_SOURCES = \
5134 src/login/logind.c \
5137 nodist_systemd_logind_SOURCES = \
5138 src/login/logind-gperf.c
5140 systemd_logind_LDADD = \
5141 libsystemd-logind-core.la
5143 libsystemd_logind_core_la_SOURCES = \
5144 src/login/logind-core.c \
5145 src/login/logind-device.c \
5146 src/login/logind-device.h \
5147 src/login/logind-button.c \
5148 src/login/logind-button.h \
5149 src/login/logind-action.c \
5150 src/login/logind-action.h \
5151 src/login/logind-seat.c \
5152 src/login/logind-seat.h \
5153 src/login/logind-session.c \
5154 src/login/logind-session.h \
5155 src/login/logind-session-device.c \
5156 src/login/logind-session-device.h \
5157 src/login/logind-user.c \
5158 src/login/logind-user.h \
5159 src/login/logind-inhibit.c \
5160 src/login/logind-inhibit.h \
5161 src/login/logind-dbus.c \
5162 src/login/logind-session-dbus.c \
5163 src/login/logind-seat-dbus.c \
5164 src/login/logind-user-dbus.c \
5165 src/login/logind-acl.h
5167 libsystemd_logind_core_la_LIBADD = \
5168 libsystemd-label.la \
5169 libsystemd-capability.la \
5170 libsystemd-internal.la \
5171 libudev-internal.la \
5172 libsystemd-shared.la
5175 libsystemd_logind_core_la_SOURCES += \
5176 src/login/logind-acl.c
5178 libsystemd_logind_core_la_LIBADD += \
5182 noinst_LTLIBRARIES += \
5183 libsystemd-logind-core.la
5185 systemd_user_sessions_SOURCES = \
5186 src/login/user-sessions.c
5188 systemd_user_sessions_LDADD = \
5189 libsystemd-shared.la
5191 rootlibexec_PROGRAMS += \
5193 systemd-user-sessions
5195 loginctl_SOURCES = \
5196 src/login/loginctl.c \
5197 src/login/sysfs-show.c
5200 libsystemd-internal.la \
5201 libudev-internal.la \
5202 libsystemd-shared.la
5204 rootbin_PROGRAMS += \
5207 dist_bashcompletion_DATA += \
5208 shell-completion/bash/loginctl
5210 dist_zshcompletion_DATA += \
5211 shell-completion/zsh/_loginctl \
5212 shell-completion/zsh/_systemd-inhibit
5214 systemd_inhibit_SOURCES = \
5217 systemd_inhibit_LDADD = \
5218 libsystemd-internal.la \
5219 libsystemd-shared.la
5221 rootbin_PROGRAMS += \
5224 test_login_SOURCES = \
5225 src/libsystemd/sd-login/test-login.c
5227 test_login_LDADD = \
5228 libsystemd-internal.la \
5229 libsystemd-shared.la
5231 test_login_shared_SOURCES = \
5232 src/login/test-login-shared.c
5234 test_login_shared_LDADD = \
5235 libsystemd-internal.la \
5236 libsystemd-shared.la
5238 test_inhibit_SOURCES = \
5239 src/login/test-inhibit.c
5241 test_inhibit_LDADD = \
5242 libsystemd-internal.la \
5243 libsystemd-shared.la
5245 test_login_tables_SOURCES = \
5246 src/login/test-login-tables.c
5248 test_login_tables_LDADD = \
5249 libsystemd-logind-core.la
5260 pam_systemd_la_SOURCES = \
5261 src/login/pam_systemd.sym \
5262 src/login/pam_systemd.c
5264 pam_systemd_la_CFLAGS = \
5269 pam_systemd_la_LDFLAGS = \
5275 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5277 pam_systemd_la_LIBADD = \
5278 libsystemd-capability.la \
5279 libsystemd-internal.la \
5280 libsystemd-shared.la \
5283 pamlib_LTLIBRARIES = \
5286 dist_pamconf_DATA = \
5287 src/login/systemd-user
5290 nodist_systemunit_DATA += \
5291 units/systemd-logind.service \
5292 units/systemd-user-sessions.service
5294 dist_systemunit_DATA += \
5297 dist_systemunit_DATA_busnames += \
5298 units/org.freedesktop.login1.busname
5300 dist_dbussystemservice_DATA += \
5301 src/login/org.freedesktop.login1.service
5303 dist_dbuspolicy_DATA += \
5304 src/login/org.freedesktop.login1.conf
5306 dist_pkgsysconf_DATA += \
5307 src/login/logind.conf
5309 polkitpolicy_files += \
5310 src/login/org.freedesktop.login1.policy
5315 MULTI_USER_TARGET_WANTS += \
5316 systemd-logind.service \
5317 systemd-user-sessions.service
5319 SYSTEM_UNIT_ALIASES += \
5320 systemd-logind.service dbus-org.freedesktop.login1.service
5322 BUSNAMES_TARGET_WANTS += \
5323 org.freedesktop.login1.busname
5325 if ENABLE_MULTI_SEAT_X
5327 systemd_multi_seat_x_SOURCES = \
5328 src/login/multi-seat-x.c
5330 systemd_multi_seat_x_LDADD = \
5331 libsystemd-label.la \
5332 libsystemd-shared.la
5334 rootlibexec_PROGRAMS += \
5335 systemd-multi-seat-x
5339 dist_udevrules_DATA += \
5340 src/login/70-uaccess.rules \
5341 src/login/70-power-switch.rules
5343 nodist_udevrules_DATA += \
5344 src/login/71-seat.rules \
5345 src/login/73-seat-late.rules
5348 src/login/logind-gperf.c \
5349 src/login/71-seat.rules \
5350 src/login/73-seat-late.rules
5353 polkitpolicy_in_files += \
5354 src/login/org.freedesktop.login1.policy.in
5357 src/login/logind-gperf.gperf \
5358 src/login/71-seat.rules.in \
5359 src/login/73-seat-late.rules.in \
5360 units/systemd-logind.service.in \
5361 units/systemd-user-sessions.service.in
5363 # ------------------------------------------------------------------------------
5364 if HAVE_PYTHON_DEVEL
5365 pkgpyexec_LTLIBRARIES = \
5372 _journal_la_SOURCES = \
5373 src/python-systemd/_journal.c
5375 _journal_la_CFLAGS = \
5377 -fvisibility=default \
5378 $(PYTHON_DEVEL_CFLAGS)
5380 _journal_la_LDFLAGS = \
5386 _journal_la_LIBADD = \
5387 $(PYTHON_DEVEL_LIBS) \
5390 id128_la_SOURCES = \
5391 src/python-systemd/id128.c \
5392 src/python-systemd/pyutil.c \
5393 src/python-systemd/pyutil.h
5395 nodist_id128_la_SOURCES = \
5396 src/python-systemd/id128-constants.h
5400 -fvisibility=default \
5401 $(PYTHON_DEVEL_CFLAGS) \
5402 -I$(top_builddir)/src/python-systemd
5404 id128_la_LDFLAGS = \
5411 $(PYTHON_DEVEL_LIBS) \
5412 libsystemd-shared.la \
5415 _daemon_la_SOURCES = \
5416 src/python-systemd/_daemon.c \
5417 src/python-systemd/pyutil.c \
5418 src/python-systemd/pyutil.h
5420 _daemon_la_CFLAGS = \
5422 -fvisibility=default \
5423 $(PYTHON_DEVEL_CFLAGS) \
5424 -I$(top_builddir)/src/python-systemd
5426 _daemon_la_LDFLAGS = \
5432 _daemon_la_LIBADD = \
5433 $(PYTHON_DEVEL_LIBS) \
5434 libsystemd-shared.la \
5437 _reader_la_SOURCES = \
5438 src/python-systemd/_reader.c \
5439 src/python-systemd/pyutil.c \
5440 src/python-systemd/pyutil.h
5442 _reader_la_CFLAGS = \
5444 -fvisibility=default \
5445 $(PYTHON_DEVEL_CFLAGS)
5447 _reader_la_LDFLAGS = \
5453 _reader_la_LIBADD = \
5454 $(PYTHON_DEVEL_LIBS) \
5455 libsystemd-shared.la \
5458 login_la_SOURCES = \
5459 src/python-systemd/login.c \
5460 src/python-systemd/pyutil.c \
5461 src/python-systemd/pyutil.h
5465 -fvisibility=default \
5466 $(PYTHON_DEVEL_CFLAGS)
5468 login_la_LDFLAGS = \
5475 $(PYTHON_DEVEL_LIBS) \
5476 libsystemd-shared.la \
5479 dist_pkgpyexec_PYTHON = \
5480 src/python-systemd/journal.py \
5481 src/python-systemd/daemon.py \
5482 src/python-systemd/__init__.py
5484 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5485 $(AM_V_at)$(MKDIR_P) $(dir $@)
5486 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5489 src/python-systemd/id128-constants.h
5491 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5493 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5494 $(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/
5495 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5498 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5499 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5502 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5503 $(MAKE) DESTDIR="$$dir" install && \
5504 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5509 CLEAN_LOCAL_HOOKS += clean-sphinx
5511 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5514 -rm -rf docs/html/python-systemd/
5516 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5518 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5519 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5521 # ------------------------------------------------------------------------------
5522 if ENABLE_COMPAT_LIBS
5524 src/compat-libs/linkwarning.h
5526 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5527 $(AM_V_at)$(MKDIR_P) $(dir $@)
5528 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5531 libsystemd-journal.c \
5532 libsystemd-login.c \
5533 libsystemd-id128.c \
5536 libsystemd_journal_la_SOURCES = \
5537 libsystemd-journal.c \
5538 src/compat-libs/libsystemd-journal.sym
5540 libsystemd_journal_la_CPPFLAGS = \
5542 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5544 libsystemd_journal_la_LDFLAGS = \
5546 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5547 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5549 libsystemd_journal_la_LIBADD = \
5550 libsystemd-journal-internal.la \
5551 libsystemd-internal.la \
5552 libsystemd-shared.la
5554 libsystemd_login_la_SOURCES = \
5555 libsystemd-login.c \
5556 src/compat-libs/libsystemd-login.sym
5558 libsystemd_login_la_CPPFLAGS = \
5560 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5562 libsystemd_login_la_LDFLAGS = \
5564 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5565 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5567 libsystemd_login_la_LIBADD = \
5568 libsystemd-internal.la \
5569 libsystemd-shared.la
5571 libsystemd_id128_la_SOURCES = \
5572 libsystemd-id128.c \
5573 src/compat-libs/libsystemd-id128.sym
5575 libsystemd_id128_la_CPPFLAGS = \
5577 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5579 libsystemd_id128_la_LDFLAGS = \
5581 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5582 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5584 libsystemd_id128_la_LIBADD = \
5585 libsystemd-internal.la \
5586 libsystemd-shared.la
5588 libsystemd_daemon_la_SOURCES = \
5589 libsystemd-daemon.c \
5590 src/compat-libs/libsystemd-daemon.sym
5592 libsystemd_daemon_la_CPPFLAGS = \
5594 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5596 libsystemd_daemon_la_LDFLAGS = \
5598 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5599 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5601 libsystemd_daemon_la_LIBADD = \
5602 libsystemd-internal.la \
5603 libsystemd-shared.la
5605 lib_LTLIBRARIES += \
5606 libsystemd-journal.la \
5607 libsystemd-login.la \
5608 libsystemd-id128.la \
5609 libsystemd-daemon.la
5611 pkgconfiglib_DATA += \
5612 src/compat-libs/libsystemd-journal.pc \
5613 src/compat-libs/libsystemd-login.pc \
5614 src/compat-libs/libsystemd-id128.pc \
5615 src/compat-libs/libsystemd-daemon.pc
5617 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5618 compat-lib-install-hook:
5619 libname=libsystemd-login.so && $(move-to-rootlibdir)
5620 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5621 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5622 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5624 compat-lib-uninstall-hook:
5625 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5626 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5627 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5628 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5630 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5631 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5635 src/compat-libs/libsystemd-journal.pc.in \
5636 src/compat-libs/libsystemd-login.pc.in \
5637 src/compat-libs/libsystemd-id128.pc.in \
5638 src/compat-libs/libsystemd-daemon.pc.in
5640 # ------------------------------------------------------------------------------
5642 '|rootlibexecdir=$(rootlibexecdir)|' \
5643 '|rootbindir=$(rootbindir)|' \
5644 '|bindir=$(bindir)|' \
5645 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5646 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5647 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5648 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5649 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5650 '|pkgdatadir=$(pkgdatadir)|' \
5651 '|systemunitdir=$(systemunitdir)|' \
5652 '|userunitdir=$(userunitdir)|' \
5653 '|systempresetdir=$(systempresetdir)|' \
5654 '|userpresetdir=$(userpresetdir)|' \
5655 '|udevhwdbdir=$(udevhwdbdir)|' \
5656 '|udevrulesdir=$(udevrulesdir)|' \
5657 '|catalogdir=$(catalogdir)|' \
5658 '|tmpfilesdir=$(tmpfilesdir)|' \
5659 '|sysusersdir=$(sysusersdir)|' \
5660 '|sysctldir=$(sysctldir)|' \
5661 '|systemgeneratordir=$(systemgeneratordir)|' \
5662 '|usergeneratordir=$(usergeneratordir)|' \
5663 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5664 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5665 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5666 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5667 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5668 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5669 '|prefix=$(prefix)|' \
5670 '|exec_prefix=$(exec_prefix)|' \
5671 '|libdir=$(libdir)|' \
5672 '|includedir=$(includedir)|' \
5673 '|VERSION=$(VERSION)|' \
5674 '|rootprefix=$(rootprefix)|' \
5675 '|udevlibexecdir=$(udevlibexecdir)|' \
5676 '|SUSHELL=$(SUSHELL)|' \
5677 '|DEBUGTTY=$(DEBUGTTY)|' \
5680 '|MKDIR_P=$(MKDIR_P)|' \
5681 '|QUOTAON=$(QUOTAON)|' \
5682 '|QUOTACHECK=$(QUOTACHECK)|' \
5683 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5684 '|VARLOGDIR=$(varlogdir)|' \
5685 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5686 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5687 '|PYTHON=$(PYTHON)|' \
5688 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5689 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5690 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5691 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5692 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5693 '|TTY_GID=$(TTY_GID)|' \
5694 '|systemsleepdir=$(systemsleepdir)|' \
5695 '|systemshutdowndir=$(systemshutdowndir)|' \
5696 '|binfmtdir=$(binfmtdir)|' \
5697 '|modulesloaddir=$(modulesloaddir)|'
5700 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5701 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5710 sysctl.d/%: sysctl.d/%.in
5719 src/core/macros.%: src/core/macros.%.in
5722 src/%.policy.in: src/%.policy.in.in
5725 shell-completion/%: shell-completion/%.in
5736 $(AM_V_GEN)chmod +x $@
5738 src/%.c: src/%.gperf
5739 $(AM_V_at)$(MKDIR_P) $(dir $@)
5740 $(AM_V_GPERF)$(GPERF) < $< > $@
5743 $(AM_V_at)$(MKDIR_P) $(dir $@)
5744 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5746 tmpfiles.d/%: tmpfiles.d/%.m4
5747 $(AM_V_at)$(MKDIR_P) $(dir $@)
5748 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5752 $(AM_V_at)$(MKDIR_P) $(dir $@)
5753 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5755 units/user/%: units/%.m4
5756 $(AM_V_at)$(MKDIR_P) $(dir $@)
5757 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5760 nodist_polkitpolicy_DATA = \
5761 $(polkitpolicy_files) \
5762 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5766 $(polkitpolicy_in_files) \
5767 $(polkitpolicy_in_in_files)
5770 $(nodist_systemunit_DATA) \
5771 $(nodist_userunit_DATA) \
5772 $(pkgconfigdata_DATA) \
5773 $(pkgconfiglib_DATA) \
5774 $(nodist_polkitpolicy_DATA)
5776 # ------------------------------------------------------------------------------
5778 man/custom-entities.ent: configure.ac
5779 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5780 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5781 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5785 man/custom-entities.ent
5790 --stringparam man.output.quietly 1 \
5791 --stringparam funcsynopsis.style ansi \
5792 --stringparam man.authors.section.enabled 0 \
5793 --stringparam man.copyright.section.enabled 0 \
5794 --stringparam systemd.version $(VERSION) \
5795 --path '$(builddir)/man:$(srcdir)/man'
5797 XSLTPROC_PROCESS_MAN = \
5798 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5800 XSLTPROC_PROCESS_HTML = \
5801 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5803 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5804 $(XSLTPROC_PROCESS_MAN)
5806 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5807 $(XSLTPROC_PROCESS_MAN)
5809 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5810 $(XSLTPROC_PROCESS_MAN)
5812 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5813 $(XSLTPROC_PROCESS_MAN)
5815 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5816 $(XSLTPROC_PROCESS_MAN)
5818 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5819 $(XSLTPROC_PROCESS_HTML)
5822 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5828 man/custom-html.xsl \
5831 # ------------------------------------------------------------------------------
5834 docs/sysvinit/README
5839 docs/sysvinit/README: docs/sysvinit/README.in
5842 docs/var-log/README: docs/var-log/README.in
5846 docs/sysvinit/README \
5851 docs/sysvinit/README.in \
5852 docs/var-log/README.in
5854 SOCKETS_TARGET_WANTS += \
5855 systemd-initctl.socket \
5856 systemd-shutdownd.socket
5859 RUNLEVEL1_TARGET_WANTS += \
5860 systemd-update-utmp-runlevel.service
5861 RUNLEVEL2_TARGET_WANTS += \
5862 systemd-update-utmp-runlevel.service
5863 RUNLEVEL3_TARGET_WANTS += \
5864 systemd-update-utmp-runlevel.service
5865 RUNLEVEL4_TARGET_WANTS += \
5866 systemd-update-utmp-runlevel.service
5867 RUNLEVEL5_TARGET_WANTS += \
5868 systemd-update-utmp-runlevel.service
5871 SYSINIT_TARGET_WANTS += \
5872 systemd-update-utmp.service \
5873 systemd-update-done.service
5875 LOCAL_FS_TARGET_WANTS += \
5876 systemd-remount-fs.service \
5879 MULTI_USER_TARGET_WANTS += \
5881 systemd-ask-password-wall.path
5883 SYSINIT_TARGET_WANTS += \
5884 dev-hugepages.mount \
5886 sys-kernel-config.mount \
5887 sys-kernel-debug.mount \
5888 sys-fs-fuse-connections.mount \
5889 systemd-sysctl.service \
5890 systemd-ask-password-console.path
5893 SYSTEM_UNIT_ALIASES += \
5894 poweroff.target runlevel0.target \
5895 rescue.target runlevel1.target \
5896 multi-user.target runlevel2.target \
5897 multi-user.target runlevel3.target \
5898 multi-user.target runlevel4.target \
5899 graphical.target runlevel5.target \
5900 reboot.target runlevel6.target
5903 SYSTEM_UNIT_ALIASES += \
5904 graphical.target default.target \
5905 reboot.target ctrl-alt-del.target \
5906 getty@.service autovt@.service
5908 USER_UNIT_ALIASES += \
5909 $(systemunitdir)/shutdown.target shutdown.target \
5910 $(systemunitdir)/sockets.target sockets.target \
5911 $(systemunitdir)/timers.target timers.target \
5912 $(systemunitdir)/paths.target paths.target \
5913 $(systemunitdir)/bluetooth.target bluetooth.target \
5914 $(systemunitdir)/printer.target printer.target \
5915 $(systemunitdir)/sound.target sound.target \
5916 $(systemunitdir)/smartcard.target smartcard.target
5919 USER_UNIT_ALIASES += \
5920 $(systemunitdir)/busnames.target busnames.target
5923 GENERAL_ALIASES += \
5924 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5925 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5926 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5927 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5931 $(systemunitdir)/runlevel1.target.wants \
5932 $(systemunitdir)/runlevel2.target.wants \
5933 $(systemunitdir)/runlevel3.target.wants \
5934 $(systemunitdir)/runlevel4.target.wants \
5935 $(systemunitdir)/runlevel5.target.wants
5939 $(prefix)/lib/modules-load.d \
5940 $(sysconfdir)/modules-load.d \
5941 $(prefix)/lib/systemd/network \
5942 $(sysconfdir)/systemd/network \
5943 $(prefix)/lib/sysctl.d \
5944 $(sysconfdir)/sysctl.d \
5945 $(prefix)/lib/kernel/install.d \
5946 $(sysconfdir)/kernel/install.d \
5947 $(systemshutdowndir) \
5949 $(systemgeneratordir) \
5950 $(usergeneratordir) \
5953 $(pkgsysconfdir)/system \
5954 $(pkgsysconfdir)/system/multi-user.target.wants \
5955 $(pkgsysconfdir)/system/getty.target.wants \
5956 $(pkgsysconfdir)/user \
5957 $(dbussessionservicedir) \
5958 $(sysconfdir)/xdg/systemd
5960 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5962 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5964 install-data-hook: $(INSTALL_DATA_HOOKS)
5966 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5968 clean-local: $(CLEAN_LOCAL_HOOKS)
5969 rm -rf $(abs_srcdir)/install-tree
5970 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5971 $(abs_srcdir)/hwdb/iab.txt
5973 DISTCHECK_CONFIGURE_FLAGS = \
5974 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5975 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5976 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5977 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5978 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5979 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5980 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5981 --with-rootprefix=$$dc_install_base \
5982 --disable-split-usr \
5984 --enable-compat-libs
5987 DISTCHECK_CONFIGURE_FLAGS += \
5988 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5989 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5991 DISTCHECK_CONFIGURE_FLAGS += \
5992 --with-sysvinit-path= \
5993 --with-sysvrcnd-path=
5997 DISTCHECK_CONFIGURE_FLAGS += \
6002 DISTCHECK_CONFIGURE_FLAGS += \
6007 # Require python when making dist
6009 .PHONY: dist-check-python
6012 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6016 dist-check-compat-libs:
6017 if !ENABLE_COMPAT_LIBS
6018 @echo "*** compat-libs must be enabled in order to make dist"
6022 dist: dist-check-python dist-check-compat-libs
6024 # check "broken" platforms limited toolchains for link breakage before we release
6027 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6031 ( cd $(top_srcdir)/hwdb && \
6032 wget -N http://www.linux-usb.org/usb.ids \
6033 http://pci-ids.ucw.cz/v2.2/pci.ids \
6034 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6035 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6038 .PHONY: kdbus-update
6040 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6041 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6045 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6047 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6049 upload: all check dist
6050 scp systemd-$(VERSION).tar.xz $(www_target)
6053 doc-sync: all destdir-sphinx
6054 gtkdoc-rebase --html-dir=docs/libudev/html --online
6055 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6056 gtkdoc-rebase --html-dir=docs/gudev/html --online
6057 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6058 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6059 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6063 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6064 scp man/*.html tango:public/systemd-man/
6066 .PHONY: install-tree
6068 rm -rf $(abs_srcdir)/install-tree
6069 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6070 tree $(abs_srcdir)/install-tree
6072 # Let's run all tests of the test suite, but under valgrind. Let's
6073 # exclude the one perl script we have in there
6074 .PHONY: valgrind-tests
6075 valgrind-tests: $(TESTS)
6076 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6077 if file $$f | grep -q shell; then \
6078 echo -e "$${x}Skipping non-binary $$f"; else \
6079 echo -e "$${x}Running $$f"; \
6080 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6085 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6087 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6088 $(AM_V_GEN)cat $^ > $@
6090 .PHONY: check-api-docs
6091 check-api-docs: exported man
6092 $(AM_V_GEN)for symbol in `cat exported` ; do \
6093 if test -f $(builddir)/man/$$symbol.html ; then \
6094 echo " Symbol $$symbol() is documented." ; \
6096 echo "‣ Symbol $$symbol() lacks documentation." ; \
6100 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6101 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6103 undefined defined: $(ALL_OBJECTS)
6104 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6105 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6106 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6112 .PHONY: check-api-unused
6113 check-api-unused: defined undefined exported
6114 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6116 .PHONY: check-includes
6117 check-includes: $(top_srcdir)/tools/check-includes.pl
6118 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6119 | xargs $(top_srcdir)/tools/check-includes.pl
6122 $(top_srcdir)/tools/check-includes.pl
6124 # Stupid test that everything purported to be exported really is
6125 define generate-sym-test
6126 $(AM_V_at)$(MKDIR_P) $(dir $@)
6127 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6128 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6129 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6130 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6131 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6132 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6133 $(AM_V_at)printf 'return 0; }\n' >> $@
6136 test-libsystemd-sym.c: \
6137 $(top_builddir)/src/libsystemd/libsystemd.sym \
6138 src/systemd/sd-journal.h \
6139 src/systemd/sd-daemon.h \
6140 src/systemd/sd-login.h \
6141 src/systemd/sd-bus.h \
6142 src/systemd/sd-utf8.h \
6143 src/systemd/sd-resolve.h \
6144 src/systemd/sd-path.h
6145 $(generate-sym-test)
6147 test-libudev-sym.c: \
6148 src/libudev/libudev.sym \
6150 $(generate-sym-test)
6152 test_libsystemd_sym_SOURCES = \
6153 test-libsystemd-sym.c
6154 test_libsystemd_sym_LDADD = \
6157 test_libudev_sym_SOURCES = \
6159 test_libudev_sym_CFLAGS = \
6161 -Wno-deprecated-declarations
6162 test_libudev_sym_LDADD = \
6166 $(test_libsystemd_sym_SOURCES) \
6167 $(test_libudev_sym_SOURCES)
6170 test-libsystemd-sym \
6175 cppcheck --enable=all -q $(top_srcdir)
6177 # Used to extract compile flags for YCM.
6182 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u