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
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
46 LIBSYSTEMD_LOGIN_CURRENT=9
47 LIBSYSTEMD_LOGIN_REVISION=1
48 LIBSYSTEMD_LOGIN_AGE=9
50 LIBSYSTEMD_DAEMON_CURRENT=0
51 LIBSYSTEMD_DAEMON_REVISION=10
52 LIBSYSTEMD_DAEMON_AGE=0
54 LIBSYSTEMD_ID128_CURRENT=0
55 LIBSYSTEMD_ID128_REVISION=26
56 LIBSYSTEMD_ID128_AGE=0
58 LIBSYSTEMD_JOURNAL_CURRENT=11
59 LIBSYSTEMD_JOURNAL_REVISION=3
60 LIBSYSTEMD_JOURNAL_AGE=11
62 LIBSYSTEMD_BUS_CURRENT=0
63 LIBSYSTEMD_BUS_REVISION=0
66 # Dirs of external packages
67 dbuspolicydir=@dbuspolicydir@
68 dbussessionservicedir=@dbussessionservicedir@
69 dbussystemservicedir=@dbussystemservicedir@
71 pamconfdir=@pamconfdir@
72 pkgconfigdatadir=$(datadir)/pkgconfig
73 pkgconfiglibdir=$(libdir)/pkgconfig
74 polkitpolicydir=$(datadir)/polkit-1/actions
75 bashcompletiondir=@bashcompletiondir@
76 zshcompletiondir=@zshcompletiondir@
77 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
78 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
79 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
80 varlogdir=$(localstatedir)/log
81 systemdstatedir=$(localstatedir)/lib/systemd
82 catalogstatedir=$(systemdstatedir)/catalog
84 # Our own, non-special dirs
85 pkgsysconfdir=$(sysconfdir)/systemd
86 userunitdir=$(prefix)/lib/systemd/user
87 userpresetdir=$(prefix)/lib/systemd/user-preset
88 tmpfilesdir=$(prefix)/lib/tmpfiles.d
89 sysctldir=$(prefix)/lib/sysctl.d
90 networkdir=$(prefix)/lib/systemd/network
91 pkgincludedir=$(includedir)/systemd
92 systemgeneratordir=$(rootlibexecdir)/system-generators
93 usergeneratordir=$(prefix)/lib/systemd/user-generators
94 systemshutdowndir=$(rootlibexecdir)/system-shutdown
95 systemsleepdir=$(rootlibexecdir)/system-sleep
96 systemunitdir=$(rootprefix)/lib/systemd/system
97 systempresetdir=$(rootprefix)/lib/systemd/system-preset
98 udevlibexecdir=$(rootprefix)/lib/udev
99 udevhomedir=$(udevlibexecdir)
100 udevrulesdir=$(udevlibexecdir)/rules.d
101 udevhwdbdir=$(udevlibexecdir)/hwdb.d
102 catalogdir=$(prefix)/lib/systemd/catalog
103 kernelinstalldir = $(prefix)/lib/kernel/install.d
105 # And these are the special ones for /
106 rootprefix=@rootprefix@
107 rootbindir=$(rootprefix)/bin
108 rootlibexecdir=$(rootprefix)/lib/systemd
110 CLEANFILES = $(BUILT_SOURCES)
115 UNINSTALL_EXEC_HOOKS =
117 UNINSTALL_DATA_HOOKS =
118 DISTCLEAN_LOCAL_HOOKS =
126 polkitpolicy_in_in_files =
127 polkitpolicy_in_files =
129 dist_udevrules_DATA =
130 nodist_udevrules_DATA =
131 dist_pkgsysconf_DATA =
133 dist_dbuspolicy_DATA =
134 dist_dbussystemservice_DATA =
140 noinst_PROGRAMS = $(manual_tests) $(tests)
146 udevlibexec_PROGRAMS =
149 -include $(top_builddir)/config.h \
150 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
151 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
152 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
153 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
154 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
155 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
156 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
157 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
158 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
159 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
160 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
161 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
162 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
163 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
164 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
165 -DROOTPREFIX=\"$(rootprefix)\" \
166 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
167 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
168 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
169 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
170 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
171 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
172 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
173 -DX_SERVER=\"$(bindir)/X\" \
174 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
175 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
176 -DQUOTACHECK=\"$(QUOTACHECK)\" \
177 -DKEXEC=\"$(KEXEC)\" \
178 -I $(top_srcdir)/src \
179 -I $(top_srcdir)/src/shared \
180 -I $(top_srcdir)/src/login \
181 -I $(top_srcdir)/src/journal \
182 -I $(top_srcdir)/src/systemd \
183 -I $(top_builddir)/src/core \
184 -I $(top_srcdir)/src/core \
185 -I $(top_srcdir)/src/libudev \
186 -I $(top_srcdir)/src/udev \
187 -I $(top_srcdir)/src/udev/net \
188 -I $(top_builddir)/src/udev \
189 -I $(top_srcdir)/src/libsystemd-bus \
190 -I $(top_srcdir)/src/libsystemd-rtnl \
193 AM_CFLAGS = $(OUR_CFLAGS)
194 AM_LDFLAGS = $(OUR_LDFLAGS)
196 # ------------------------------------------------------------------------------
197 define move-to-rootlibdir
198 if test "$(libdir)" != "$(rootlibdir)"; then \
199 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
200 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
201 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
202 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
203 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
209 RUNLEVEL1_TARGET_WANTS =
210 RUNLEVEL2_TARGET_WANTS =
211 RUNLEVEL3_TARGET_WANTS =
212 RUNLEVEL4_TARGET_WANTS =
213 RUNLEVEL5_TARGET_WANTS =
214 SHUTDOWN_TARGET_WANTS =
215 LOCAL_FS_TARGET_WANTS =
216 MULTI_USER_TARGET_WANTS =
217 SYSINIT_TARGET_WANTS =
218 SOCKETS_TARGET_WANTS =
219 TIMERS_TARGET_WANTS =
221 SYSTEM_UNIT_ALIASES =
226 install-target-wants-hook:
227 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
228 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
229 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
230 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
231 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
232 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
233 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
234 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
235 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
236 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
237 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
238 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
241 [ -z "$$what" ] || ( \
242 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
243 $(MKDIR_P) -m 0755 $$dir && \
246 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
249 install-directories-hook:
250 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
252 install-aliases-hook:
253 set -- $(SYSTEM_UNIT_ALIASES) && \
254 dir=$(systemunitdir) && $(install-aliases)
255 set -- $(USER_UNIT_ALIASES) && \
256 dir=$(userunitdir) && $(install-aliases)
257 set -- $(GENERAL_ALIASES) && \
258 dir= && $(install-aliases)
260 define install-aliases
261 while [ -n "$$1" ]; do \
262 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
263 rm -f $(DESTDIR)$$dir/$$2 && \
264 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
265 shift 2 || exit $$?; \
269 INSTALL_EXEC_HOOKS += \
270 install-target-wants-hook \
271 install-directories-hook \
274 # ------------------------------------------------------------------------------
275 AM_V_M4 = $(AM_V_M4_$(V))
276 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
277 AM_V_M4_0 = @echo " M4 " $@;
279 AM_V_XSLT = $(AM_V_XSLT_$(V))
280 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
281 AM_V_XSLT_0 = @echo " XSLT " $@;
283 AM_V_GPERF = $(AM_V_GPERF_$(V))
284 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
285 AM_V_GPERF_0 = @echo " GPERF " $@;
287 AM_V_LN = $(AM_V_LN_$(V))
288 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
289 AM_V_LN_0 = @echo " LN " $@;
291 # ------------------------------------------------------------------------------
295 systemd-ask-password \
296 systemd-tty-ask-password-agent \
297 systemd-machine-id-setup
302 systemd-stdio-bridge \
304 systemd-detect-virt \
310 src/kernel-install/kernel-install
312 dist_kernelinstall_SCRIPTS = \
313 src/kernel-install/50-depmod.install \
314 src/kernel-install/90-loaderentry.install
316 rootlibexec_PROGRAMS = \
318 systemd-cgroups-agent \
320 systemd-update-utmp \
324 systemd-reply-password \
329 systemd-socket-proxyd
331 systemgenerator_PROGRAMS = \
332 systemd-getty-generator \
333 systemd-fstab-generator \
334 systemd-system-update-generator
336 dist_bashcompletion_DATA = \
337 shell-completion/bash/journalctl \
338 shell-completion/bash/systemctl \
339 shell-completion/bash/systemd-analyze \
340 shell-completion/bash/systemd-run \
341 shell-completion/bash/udevadm \
342 shell-completion/bash/kernel-install
344 dist_zshcompletion_DATA = \
345 shell-completion/zsh/_systemctl \
346 shell-completion/zsh/_journalctl \
347 shell-completion/zsh/_udevadm \
348 shell-completion/zsh/_kernel-install \
349 shell-completion/zsh/_systemd-nspawn \
350 shell-completion/zsh/_systemd-analyze \
351 shell-completion/zsh/_systemd-run \
352 shell-completion/zsh/_sd_hosts_or_user_at_host \
353 shell-completion/zsh/_systemd-delta \
354 shell-completion/zsh/_systemd
357 sysctl.d/50-default.conf
359 dist_systemunit_DATA = \
360 units/graphical.target \
361 units/multi-user.target \
362 units/emergency.service \
363 units/emergency.target \
364 units/sysinit.target \
369 units/local-fs.target \
370 units/local-fs-pre.target \
371 units/initrd.target \
372 units/initrd-fs.target \
373 units/initrd-root-fs.target \
374 units/remote-fs.target \
375 units/remote-fs-pre.target \
376 units/network.target \
377 units/network-online.target \
378 units/nss-lookup.target \
379 units/nss-user-lookup.target \
380 units/hibernate.target \
381 units/hybrid-sleep.target \
382 units/poweroff.target \
383 units/reboot.target \
384 units/rescue.target \
385 units/rpcbind.target \
386 units/time-sync.target \
387 units/shutdown.target \
389 units/umount.target \
390 units/sigpwr.target \
392 units/sockets.target \
393 units/timers.target \
395 units/suspend.target \
397 units/slices.target \
400 units/systemd-initctl.socket \
401 units/systemd-shutdownd.socket \
402 units/syslog.socket \
403 units/dev-hugepages.mount \
404 units/dev-mqueue.mount \
405 units/sys-kernel-config.mount \
406 units/sys-kernel-debug.mount \
407 units/sys-fs-fuse-connections.mount \
409 units/printer.target \
411 units/bluetooth.target \
412 units/smartcard.target \
413 units/systemd-ask-password-wall.path \
414 units/systemd-ask-password-console.path \
415 units/systemd-udevd-control.socket \
416 units/systemd-udevd-kernel.socket \
417 units/system-update.target \
418 units/initrd-switch-root.target
420 nodist_systemunit_DATA = \
421 units/getty@.service \
422 units/serial-getty@.service \
423 units/console-shell.service \
424 units/console-getty.service \
425 units/container-getty@.service \
426 units/systemd-initctl.service \
427 units/systemd-shutdownd.service \
428 units/systemd-remount-fs.service \
429 units/systemd-update-utmp.service \
430 units/systemd-update-utmp-runlevel.service \
431 units/systemd-ask-password-wall.service \
432 units/systemd-ask-password-console.service \
433 units/systemd-sysctl.service \
434 units/emergency.service \
435 units/rescue.service \
436 units/user@.service \
437 units/systemd-hibernate.service \
438 units/systemd-hybrid-sleep.service \
439 units/systemd-suspend.service \
440 units/systemd-halt.service \
441 units/systemd-poweroff.service \
442 units/systemd-reboot.service \
443 units/systemd-kexec.service \
444 units/systemd-fsck@.service \
445 units/systemd-fsck-root.service \
446 units/systemd-udevd.service \
447 units/systemd-udev-trigger.service \
448 units/systemd-udev-settle.service \
449 units/debug-shell.service \
450 units/initrd-parse-etc.service \
451 units/initrd-cleanup.service \
452 units/initrd-udevadm-cleanup-db.service \
453 units/initrd-switch-root.service \
454 units/systemd-nspawn@.service
456 dist_userunit_DATA = \
457 units/user/default.target \
458 units/user/exit.target
460 nodist_userunit_DATA = \
461 units/user/systemd-exit.service
464 units/getty@.service.m4 \
465 units/serial-getty@.service.m4 \
466 units/console-shell.service.m4.in \
467 units/console-getty.service.m4.in \
468 units/container-getty@.service.m4.in \
469 units/rescue.service.m4.in \
470 units/systemd-initctl.service.in \
471 units/systemd-shutdownd.service.in \
472 units/systemd-remount-fs.service.in \
473 units/systemd-update-utmp.service.in \
474 units/systemd-update-utmp-runlevel.service.in \
475 units/systemd-ask-password-wall.service.in \
476 units/systemd-ask-password-console.service.in \
477 units/systemd-sysctl.service.in \
478 units/emergency.service.in \
479 units/systemd-halt.service.in \
480 units/systemd-poweroff.service.in \
481 units/systemd-reboot.service.in \
482 units/systemd-kexec.service.in \
483 units/user/systemd-exit.service.in \
484 units/systemd-fsck@.service.in \
485 units/systemd-fsck-root.service.in \
486 units/user@.service.in \
487 units/systemd-udevd.service \
488 units/systemd-udev-trigger.service \
489 units/systemd-udev-settle.service \
490 units/debug-shell.service.in \
491 units/systemd-hibernate.service.in \
492 units/systemd-hybrid-sleep.service.in \
493 units/systemd-suspend.service.in \
494 units/quotaon.service.in \
495 units/initrd-parse-etc.service.in \
496 units/initrd-cleanup.service.in \
497 units/initrd-udevadm-cleanup-db.service.in \
498 units/initrd-switch-root.service.in \
499 units/systemd-nspawn@.service.in
502 units/console-shell.service.m4 \
503 units/console-getty.service.m4 \
504 units/container-getty@.service.m4 \
505 units/rescue.service.m4
508 nodist_systemunit_DATA += \
509 units/rc-local.service \
510 units/halt-local.service
512 systemgenerator_PROGRAMS += \
513 systemd-rc-local-generator
517 units/rc-local.service.in \
518 units/halt-local.service.in
520 # automake is broken and can't handle files with a dash in front
521 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
523 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
525 units-uninstall-hook:
526 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
528 INSTALL_DATA_HOOKS += units-install-hook
529 UNINSTALL_DATA_HOOKS += units-uninstall-hook
539 @INTLTOOL_POLICY_RULE@
541 # ------------------------------------------------------------------------------
546 include Makefile-man.am
549 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
552 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
554 ${XML_FILES:.xml=.html}
556 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
573 $(AM_V_at)$(MKDIR_P) $(dir $@)
574 $(AM_V_LN)$(LN_S) -f ../../man $@
583 man/index.html: man/systemd.index.html
584 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
592 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
593 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
594 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
596 update-man-list: make-man-rules.py $(XML_GLOB)
597 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
598 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
599 @echo "Makefile-man.am has been regenerated"
601 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
602 $(AM_V_at)$(MKDIR_P) $(dir $@)
603 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
605 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
606 $(AM_V_at)$(MKDIR_P) $(dir $@)
607 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
610 man/systemd.index.xml \
612 man/systemd.directives.xml
615 man/systemd.index.xml \
616 man/systemd.directives.xml
628 make-directive-index.py \
631 # ------------------------------------------------------------------------------
632 noinst_LTLIBRARIES += \
635 libsystemd_rtnl_la_SOURCES = \
636 src/systemd/sd-rtnl.h \
637 src/libsystemd-rtnl/sd-rtnl.c \
638 src/libsystemd-rtnl/rtnl-internal.h \
639 src/libsystemd-rtnl/rtnl-message.c \
640 src/libsystemd-rtnl/rtnl-util.h \
641 src/libsystemd-rtnl/rtnl-util.c
643 test_rtnl_SOURCES = \
644 src/libsystemd-rtnl/test-rtnl.c
652 # ------------------------------------------------------------------------------
653 noinst_LTLIBRARIES += \
656 libsystemd_shared_la_SOURCES = \
657 src/shared/linux/auto_dev-ioctl.h \
658 src/shared/linux/fanotify.h \
659 src/shared/linux/seccomp.h \
660 src/shared/linux/seccomp-bpf.h \
661 src/shared/missing.h \
665 src/shared/device-nodes.c \
666 src/shared/device-nodes.h \
667 src/shared/sparse-endian.h \
670 src/shared/udev-util.h \
673 src/shared/efivars.c \
674 src/shared/efivars.h \
675 src/shared/path-util.c \
676 src/shared/path-util.h \
677 src/shared/time-util.c \
678 src/shared/time-util.h \
679 src/shared/hashmap.c \
680 src/shared/hashmap.h \
687 src/shared/sleep-config.c \
688 src/shared/sleep-config.h \
691 src/shared/env-util.c \
692 src/shared/env-util.h \
693 src/shared/strbuf.c \
694 src/shared/strbuf.h \
695 src/shared/strxcpyx.c \
696 src/shared/strxcpyx.h \
697 src/shared/conf-parser.c \
698 src/shared/conf-parser.h \
701 src/shared/ratelimit.h \
702 src/shared/ratelimit.c \
703 src/shared/exit-status.c \
704 src/shared/exit-status.h \
707 src/shared/gunicode.c \
708 src/shared/gunicode.h \
711 src/shared/ioprio.h \
712 src/shared/socket-util.c \
713 src/shared/socket-util.h \
714 src/shared/conf-files.c \
715 src/shared/conf-files.h \
716 src/shared/cgroup-util.c \
717 src/shared/cgroup-util.h \
718 src/shared/cgroup-show.c \
719 src/shared/cgroup-show.h \
720 src/shared/unit-name.c \
721 src/shared/unit-name.h \
722 src/shared/utmp-wtmp.c \
723 src/shared/utmp-wtmp.h \
724 src/shared/watchdog.c \
725 src/shared/watchdog.h \
726 src/shared/spawn-ask-password-agent.c \
727 src/shared/spawn-ask-password-agent.h \
728 src/shared/replace-var.c \
729 src/shared/replace-var.h \
730 src/shared/spawn-polkit-agent.c \
731 src/shared/spawn-polkit-agent.h \
732 src/shared/hwclock.c \
733 src/shared/hwclock.h \
734 src/shared/time-dst.c \
735 src/shared/time-dst.h \
736 src/shared/calendarspec.c \
737 src/shared/calendarspec.h \
738 src/shared/fileio.c \
739 src/shared/fileio.h \
740 src/shared/output-mode.h \
741 src/shared/MurmurHash3.c \
742 src/shared/MurmurHash3.h \
743 src/shared/acpi-fpdt.h \
744 src/shared/acpi-fpdt.c \
745 src/shared/boot-timestamps.h \
746 src/shared/boot-timestamps.c \
747 src/shared/refcnt.h \
750 src/shared/smack-util.c \
751 src/shared/smack-util.h \
752 src/shared/apparmor-util.c \
753 src/shared/apparmor-util.h \
754 src/shared/ima-util.c \
755 src/shared/ima-util.h \
756 src/shared/ptyfwd.c \
757 src/shared/ptyfwd.h \
758 src/shared/net-util.c \
759 src/shared/net-util.h
761 #-------------------------------------------------------------------------------
762 noinst_LTLIBRARIES += \
765 libsystemd_dbus_la_SOURCES = \
766 src/shared/dbus-common.c \
767 src/shared/dbus-common.h
769 libsystemd_dbus_la_CFLAGS = \
773 libsystemd_dbus_la_LIBADD = \
776 # ------------------------------------------------------------------------------
777 noinst_LTLIBRARIES += \
780 libsystemd_units_la_SOURCES = \
781 src/shared/install.c \
782 src/shared/install.h \
783 src/shared/install-printf.c \
784 src/shared/install-printf.h \
785 src/shared/path-lookup.c \
786 src/shared/path-lookup.h \
787 src/shared/specifier.c \
788 src/shared/specifier.h
790 libsystemd_units_la_CFLAGS = \
794 # ------------------------------------------------------------------------------
795 noinst_LTLIBRARIES += \
798 libsystemd_label_la_SOURCES = \
799 src/shared/socket-label.c \
802 src/shared/selinux-util.c \
803 src/shared/selinux-util.h \
804 src/shared/mkdir-label.c \
805 src/shared/ask-password-api.c \
806 src/shared/ask-password-api.h \
807 src/shared/fileio-label.c \
808 src/shared/fileio-label.h \
809 src/shared/dev-setup.c \
810 src/shared/dev-setup.h
812 libsystemd_label_la_CFLAGS = \
816 libsystemd_label_la_LIBADD = \
819 # ------------------------------------------------------------------------------
820 noinst_LTLIBRARIES += \
823 libsystemd_logs_la_SOURCES = \
824 src/shared/logs-show.c \
825 src/shared/logs-show.h
827 # ------------------------------------------------------------------------------
828 noinst_LTLIBRARIES += \
829 libsystemd-capability.la
831 libsystemd_capability_la_SOURCES = \
832 src/shared/capability.c \
833 src/shared/capability.h
835 libsystemd_capability_la_CFLAGS = \
839 libsystemd_capability_la_LIBADD = \
842 # ------------------------------------------------------------------------------
843 noinst_LTLIBRARIES += \
846 libsystemd_audit_la_SOURCES = \
850 # ------------------------------------------------------------------------------
852 noinst_LTLIBRARIES += \
855 libsystemd_acl_la_SOURCES = \
856 src/shared/acl-util.c \
857 src/shared/acl-util.h
859 libsystemd_acl_la_CFLAGS = \
863 libsystemd_acl_la_LIBADD = \
867 # ------------------------------------------------------------------------------
868 noinst_LTLIBRARIES += \
871 libsystemd_core_la_SOURCES = \
874 src/core/unit-printf.c \
875 src/core/unit-printf.h \
880 src/core/transaction.c \
881 src/core/transaction.h \
882 src/core/load-fragment.c \
883 src/core/load-fragment.h \
886 src/core/automount.c \
887 src/core/automount.h \
896 src/core/snapshot.c \
897 src/core/snapshot.h \
908 src/core/load-dropin.c \
909 src/core/load-dropin.h \
916 src/core/dbus-manager.c \
917 src/core/dbus-manager.h \
918 src/core/dbus-unit.c \
919 src/core/dbus-unit.h \
920 src/core/dbus-job.c \
921 src/core/dbus-job.h \
922 src/core/dbus-service.c \
923 src/core/dbus-service.h \
924 src/core/dbus-socket.c \
925 src/core/dbus-socket.h \
926 src/core/dbus-timer.c \
927 src/core/dbus-timer.h \
928 src/core/dbus-target.c \
929 src/core/dbus-target.h \
930 src/core/dbus-mount.c \
931 src/core/dbus-mount.h \
932 src/core/dbus-automount.c \
933 src/core/dbus-automount.h \
934 src/core/dbus-swap.c \
935 src/core/dbus-swap.h \
936 src/core/dbus-snapshot.c \
937 src/core/dbus-snapshot.h \
938 src/core/dbus-device.c \
939 src/core/dbus-device.h \
940 src/core/dbus-path.c \
941 src/core/dbus-path.h \
942 src/core/dbus-slice.c \
943 src/core/dbus-slice.h \
944 src/core/dbus-scope.c \
945 src/core/dbus-scope.h \
946 src/core/dbus-execute.c \
947 src/core/dbus-execute.h \
948 src/core/dbus-kill.c \
949 src/core/dbus-kill.h \
950 src/core/dbus-cgroup.c \
951 src/core/dbus-cgroup.h \
954 src/core/selinux-access.c \
955 src/core/selinux-access.h \
956 src/core/selinux-setup.c \
957 src/core/selinux-setup.h \
958 src/core/smack-setup.c \
959 src/core/smack-setup.h \
960 src/core/ima-setup.c \
961 src/core/ima-setup.h \
962 src/core/locale-setup.h \
963 src/core/locale-setup.c \
964 src/core/hostname-setup.c \
965 src/core/hostname-setup.h \
966 src/core/machine-id-setup.c \
967 src/core/machine-id-setup.h \
968 src/core/mount-setup.c \
969 src/core/mount-setup.h \
970 src/core/loopback-setup.h \
971 src/core/loopback-setup.c \
972 src/core/condition.c \
973 src/core/condition.h \
974 src/core/namespace.c \
975 src/core/namespace.h \
978 src/core/securebits.h \
981 src/core/bus-errors.h \
983 src/core/sysfs-show.h \
984 src/core/switch-root.h \
985 src/core/switch-root.c \
988 src/core/syscall-list.c \
989 src/core/syscall-list.h \
990 src/core/audit-fd.c \
991 src/core/audit-fd.h \
996 libsystemd_core_la_SOURCES += \
997 src/core/kmod-setup.c \
998 src/core/kmod-setup.h
1001 nodist_libsystemd_core_la_SOURCES = \
1002 src/core/load-fragment-gperf.c \
1003 src/core/load-fragment-gperf-nulstr.c \
1004 src/core/syscall-from-name.h \
1005 src/core/syscall-to-name.h
1007 libsystemd_core_la_CFLAGS = \
1016 libsystemd_core_la_LIBADD = \
1017 libsystemd-capability.la \
1018 libsystemd-units.la \
1019 libsystemd-label.la \
1020 libsystemd-dbus.la \
1021 libsystemd-audit.la \
1022 libsystemd-id128-internal.la \
1023 libsystemd-daemon-internal.la \
1024 libudev-internal.la \
1025 libsystemd-shared.la \
1032 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1033 $(AM_V_at)$(MKDIR_P) $(dir $@)
1034 $(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 ";" }' < $< > $@
1037 src/core/load-fragment-gperf.gperf.m4
1040 src/core/load-fragment-gperf.gperf \
1041 src/core/load-fragment-gperf.c \
1042 src/core/load-fragment-gperf-nulstr.c \
1043 src/core/syscall-list.txt \
1044 src/core/syscall-from-name.gperf
1047 src/core/syscall-from-name.h \
1048 src/core/syscall-to-name.h
1050 src/core/syscall-list.txt: Makefile
1051 $(AM_V_at)$(MKDIR_P) $(dir $@)
1052 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h - < /dev/null | $(AWK) '/^#define[ \t]+__NR_[^ ]+[ \t]+[0-9(]/ { sub(/__NR_/, "", $$2); if ($$2 !~ /SYSCALL_BASE/) print $$2; }' > $@
1054 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
1055 $(AM_V_at)$(MKDIR_P) $(dir $@)
1056 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct syscall_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, __NR_%s\n", $$1, $$1 }' < $< > $@
1058 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
1059 $(AM_V_at)$(MKDIR_P) $(dir $@)
1060 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1062 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
1063 $(AM_V_at)$(MKDIR_P) $(dir $@)
1064 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1066 # ------------------------------------------------------------------------------
1075 libsystemd-core.la \
1078 dist_pkgsysconf_DATA += \
1079 src/core/system.conf \
1082 dist_dbuspolicy_DATA += \
1083 src/core/org.freedesktop.systemd1.conf
1085 dist_dbussystemservice_DATA += \
1086 src/core/org.freedesktop.systemd1.service
1088 polkitpolicy_in_in_files += \
1089 src/core/org.freedesktop.systemd1.policy.in.in
1091 pkgconfigdata_DATA = \
1094 nodist_rpmmacros_DATA = \
1095 src/core/macros.systemd
1098 src/core/systemd.pc.in \
1099 src/core/macros.systemd.in
1102 src/core/macros.systemd \
1103 src/core/org.freedesktop.systemd1.policy.in
1105 # ------------------------------------------------------------------------------
1135 test-strip-tab-ansi \
1146 test/sched_idle_bad.service \
1147 test/sched_idle_ok.service \
1148 test/sched_rr_bad.service \
1149 test/sched_rr_ok.service \
1150 test/sched_rr_change.service
1153 src/test/test-helper.h
1155 test_device_nodes_SOURCES = \
1156 src/test/test-device-nodes.c
1158 test_device_nodes_LDADD = \
1159 libsystemd-shared.la
1161 test_engine_SOURCES = \
1162 src/test/test-engine.c
1164 test_engine_CFLAGS = \
1168 test_engine_LDADD = \
1169 libsystemd-core.la \
1172 test_job_type_SOURCES = \
1173 src/test/test-job-type.c
1175 test_job_type_CFLAGS = \
1179 test_job_type_LDADD = \
1180 libsystemd-core.la \
1193 test_loopback_SOURCES = \
1194 src/test/test-loopback.c
1196 test_loopback_LDADD = \
1199 test_hostname_SOURCES = \
1200 src/test/test-hostname.c
1202 test_hostname_LDADD = \
1209 test_boot_timestamp_SOURCES = \
1210 src/test/test-boot-timestamps.c
1212 test_boot_timestamp_LDADD = \
1213 libsystemd-shared.la
1216 test_unit_name_SOURCES = \
1217 src/test/test-unit-name.c
1219 test_unit_name_CFLAGS = \
1223 test_unit_name_LDADD = \
1224 libsystemd-core.la \
1227 test_unit_file_SOURCES = \
1228 src/test/test-unit-file.c
1230 test_unit_file_CFLAGS = \
1234 test_unit_file_LDADD = \
1235 libsystemd-core.la \
1238 test_utf8_SOURCES = \
1239 src/test/test-utf8.c
1242 libsystemd-shared.la
1244 test_util_SOURCES = \
1245 src/test/test-util.c
1250 test_namespace_SOURCES = \
1251 src/test/test-namespace.c
1253 test_namespace_LDADD = \
1256 test_hashmap_SOURCES = \
1257 src/test/test-hashmap.c
1259 test_hashmap_LDADD = \
1262 test_list_SOURCES = \
1263 src/test/test-list.c
1268 test_tables_SOURCES = \
1269 src/test/test-tables.c \
1270 src/shared/test-tables.h
1272 test_tables_CFLAGS = \
1276 test_tables_LDADD = \
1277 libsystemd-logs.la \
1278 libsystemd-journal-internal.la \
1279 libsystemd-core.la \
1282 test_prioq_SOURCES = \
1283 src/test/test-prioq.c
1285 test_prioq_LDADD = \
1288 test_fileio_SOURCES = \
1289 src/test/test-fileio.c
1291 test_fileio_LDADD = \
1294 test_time_SOURCES = \
1295 src/test/test-time.c
1300 test_log_SOURCES = \
1306 test_ellipsize_SOURCES = \
1307 src/test/test-ellipsize.c
1309 test_ellipsize_LDADD = \
1312 test_date_SOURCES = \
1313 src/test/test-date.c
1318 test_sleep_SOURCES = \
1319 src/test/test-sleep.c
1321 test_sleep_LDADD = \
1324 test_replace_var_SOURCES = \
1325 src/test/test-replace-var.c
1327 test_replace_var_LDADD = \
1328 libsystemd-shared.la
1330 test_calendarspec_SOURCES = \
1331 src/test/test-calendarspec.c
1333 test_calendarspec_LDADD = \
1334 libsystemd-shared.la
1336 test_strip_tab_ansi_SOURCES = \
1337 src/test/test-strip-tab-ansi.c
1339 test_strip_tab_ansi_LDADD = \
1340 libsystemd-shared.la
1342 test_daemon_SOURCES = \
1343 src/test/test-daemon.c
1345 test_daemon_LDADD = \
1346 libsystemd-daemon-internal.la \
1347 libsystemd-shared.la
1349 test_cgroup_SOURCES = \
1350 src/test/test-cgroup.c
1352 test_cgroup_LDADD = \
1353 libsystemd-label.la \
1354 libsystemd-shared.la
1356 test_cgroup_util_SOURCES = \
1357 src/test/test-cgroup-util.c
1359 test_cgroup_util_LDADD = \
1360 libsystemd-label.la \
1361 libsystemd-daemon-internal.la \
1362 libsystemd-shared.la
1364 test_env_replace_SOURCES = \
1365 src/test/test-env-replace.c
1367 test_env_replace_LDADD = \
1368 libsystemd-shared.la
1370 test_strbuf_SOURCES = \
1371 src/test/test-strbuf.c
1373 test_strbuf_LDADD = \
1374 libsystemd-shared.la
1376 test_strv_SOURCES = \
1377 src/test/test-strv.c
1380 libsystemd-units.la \
1381 libsystemd-id128-internal.la \
1382 libsystemd-shared.la
1384 test_path_util_SOURCES = \
1385 src/test/test-path-util.c
1387 test_path_util_LDADD = \
1388 libsystemd-shared.la
1390 test_strxcpyx_SOURCES = \
1391 src/test/test-strxcpyx.c
1393 test_strxcpyx_LDADD = \
1394 libsystemd-shared.la
1396 test_install_SOURCES = \
1397 src/test/test-install.c
1399 test_install_CFLAGS = \
1403 test_install_LDADD = \
1404 libsystemd-units.la \
1405 libsystemd-label.la \
1406 libsystemd-id128-internal.la \
1407 libsystemd-shared.la
1409 test_watchdog_SOURCES = \
1410 src/test/test-watchdog.c
1412 test_watchdog_LDADD = \
1413 libsystemd-shared.la
1415 test_sched_prio_SOURCES = \
1416 src/test/test-sched-prio.c
1418 test_sched_prio_CFLAGS = \
1421 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1423 test_sched_prio_LDADD = \
1424 libsystemd-core.la \
1427 # ------------------------------------------------------------------------------
1428 ## .PHONY so it always rebuilds it
1429 .PHONY: coverage lcov-run lcov-report
1431 # run lcov from scratch, always
1436 coverage_dir = coverage
1437 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1440 # reset run coverage tests
1442 @rm -rf $(coverage_dir)
1443 lcov $(coverage_opts) --zerocounters
1446 # generate report based on current coverage data
1448 $(MKDIR_P) $(coverage_dir)
1449 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1450 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1451 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1452 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1454 # lcov doesn't work properly with vpath builds, make sure that bad
1455 # output is not uploaded by mistake.
1456 coverage-sync: coverage
1457 test "$(builddir)" = "$(srcdir)"
1458 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1461 lcov-run lcov-report:
1462 echo "Need to reconfigure with --enable-coverage"
1465 # ------------------------------------------------------------------------------
1466 systemd_analyze_SOURCES = \
1467 src/analyze/analyze.c
1469 systemd_analyze_LDADD = \
1470 libsystemd-bus-internal.la \
1471 libsystemd-id128-internal.la \
1472 libsystemd-daemon-internal.la \
1473 libsystemd-shared.la
1475 # ------------------------------------------------------------------------------
1476 systemd_initctl_SOURCES = \
1477 src/initctl/initctl.c
1479 systemd_initctl_LDADD = \
1480 libsystemd-bus-internal.la \
1481 libsystemd-id128-internal.la \
1482 libsystemd-daemon-internal.la \
1483 libsystemd-shared.la
1485 # ------------------------------------------------------------------------------
1486 systemd_update_utmp_SOURCES = \
1487 src/update-utmp/update-utmp.c
1489 systemd_update_utmp_CFLAGS = \
1493 systemd_update_utmp_LDADD = \
1494 libsystemd-bus-internal.la \
1495 libsystemd-id128-internal.la \
1496 libsystemd-daemon-internal.la \
1497 libsystemd-shared.la \
1500 # ------------------------------------------------------------------------------
1501 systemd_shutdownd_SOURCES = \
1502 src/shutdownd/shutdownd.c
1504 systemd_shutdownd_LDADD = \
1505 libsystemd-label.la \
1506 libsystemd-daemon-internal.la \
1507 libsystemd-shared.la
1510 src/systemd/sd-shutdown.h
1512 # ------------------------------------------------------------------------------
1513 systemd_shutdown_SOURCES = \
1516 src/core/shutdown.c \
1517 src/core/mount-setup.c \
1518 src/core/mount-setup.h \
1519 src/core/killall.h \
1522 systemd_shutdown_LDADD = \
1523 libsystemd-label.la \
1524 libudev-internal.la \
1525 libsystemd-shared.la
1527 # ------------------------------------------------------------------------------
1529 systemd_modules_load_SOURCES = \
1530 src/modules-load/modules-load.c
1532 systemd_modules_load_CFLAGS = \
1536 systemd_modules_load_LDADD = \
1537 libsystemd-shared.la \
1540 rootlibexec_PROGRAMS += \
1541 systemd-modules-load
1543 nodist_systemunit_DATA += \
1544 units/systemd-modules-load.service
1546 SYSINIT_TARGET_WANTS += \
1547 systemd-modules-load.service
1550 nodist_systemunit_DATA += \
1551 units/kmod-static-nodes.service
1553 SYSINIT_TARGET_WANTS += \
1554 kmod-static-nodes.service
1559 units/systemd-modules-load.service.in \
1560 units/kmod-static-nodes.service.in
1562 # ------------------------------------------------------------------------------
1564 systemd_tmpfiles_SOURCES = \
1565 src/tmpfiles/tmpfiles.c \
1566 src/shared/specifier.c \
1567 src/shared/specifier.h
1569 systemd_tmpfiles_LDADD = \
1570 libsystemd-label.la \
1571 libsystemd-capability.la \
1572 libsystemd-id128-internal.la \
1573 libsystemd-shared.la
1575 rootbin_PROGRAMS += \
1578 dist_systemunit_DATA += \
1579 units/systemd-tmpfiles-clean.timer
1581 nodist_systemunit_DATA += \
1582 units/systemd-tmpfiles-setup-dev.service \
1583 units/systemd-tmpfiles-setup.service \
1584 units/systemd-tmpfiles-clean.service
1586 dist_tmpfiles_DATA = \
1587 tmpfiles.d/systemd.conf \
1588 tmpfiles.d/tmp.conf \
1592 dist_tmpfiles_DATA += \
1593 tmpfiles.d/legacy.conf
1596 SYSINIT_TARGET_WANTS += \
1597 systemd-tmpfiles-setup-dev.service \
1598 systemd-tmpfiles-setup.service
1600 dist_zshcompletion_DATA += \
1601 shell-completion/zsh/_systemd-tmpfiles
1603 TIMERS_TARGET_WANTS += \
1604 systemd-tmpfiles-clean.timer
1608 $(sysconfdir)/tmpfiles.d
1612 units/systemd-tmpfiles-setup-dev.service.in \
1613 units/systemd-tmpfiles-setup.service.in \
1614 units/systemd-tmpfiles-clean.service.in
1616 # ------------------------------------------------------------------------------
1617 systemd_machine_id_setup_SOURCES = \
1618 src/machine-id-setup/machine-id-setup-main.c \
1619 src/core/machine-id-setup.c \
1620 src/core/machine-id-setup.h
1622 systemd_machine_id_setup_LDADD = \
1623 libsystemd-label.la \
1624 libsystemd-id128-internal.la \
1625 libsystemd-shared.la
1627 # ------------------------------------------------------------------------------
1628 systemd_sysctl_SOURCES = \
1631 systemd_sysctl_LDADD = \
1632 libsystemd-shared.la
1634 # ------------------------------------------------------------------------------
1635 systemd_sleep_SOURCES = \
1638 systemd_sleep_LDADD = \
1639 libsystemd-shared.la
1641 # ------------------------------------------------------------------------------
1642 systemd_fsck_SOURCES = \
1645 systemd_fsck_LDADD = \
1646 libsystemd-bus-internal.la \
1647 libsystemd-id128-internal.la \
1648 libsystemd-daemon-internal.la \
1649 libudev-internal.la \
1650 libsystemd-shared.la
1652 # ------------------------------------------------------------------------------
1653 systemd_ac_power_SOURCES = \
1654 src/ac-power/ac-power.c
1656 systemd_ac_power_LDADD = \
1657 libudev-internal.la \
1658 libsystemd-shared.la
1660 # ------------------------------------------------------------------------------
1661 systemd_detect_virt_SOURCES = \
1662 src/detect-virt/detect-virt.c
1664 systemd_detect_virt_LDADD = \
1665 libsystemd-shared.la
1667 systemd-detect-virt-install-hook:
1668 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1670 INSTALL_EXEC_HOOKS += \
1671 systemd-detect-virt-install-hook
1673 # ------------------------------------------------------------------------------
1674 systemd_delta_SOURCES = \
1677 systemd_delta_LDADD = \
1678 libsystemd-shared.la
1680 # ------------------------------------------------------------------------------
1681 systemd_getty_generator_SOURCES = \
1682 src/getty-generator/getty-generator.c
1684 systemd_getty_generator_LDADD = \
1685 libsystemd-label.la \
1686 libsystemd-shared.la
1688 # ------------------------------------------------------------------------------
1689 systemd_fstab_generator_SOURCES = \
1690 src/fstab-generator/fstab-generator.c \
1691 src/core/mount-setup.c
1693 systemd_fstab_generator_LDADD = \
1694 libsystemd-label.la \
1695 libsystemd-shared.la
1697 # ------------------------------------------------------------------------------
1698 systemd_system_update_generator_SOURCES = \
1699 src/system-update-generator/system-update-generator.c
1701 systemd_system_update_generator_LDADD = \
1702 libsystemd-label.la \
1703 libsystemd-shared.la
1706 # ------------------------------------------------------------------------------
1707 systemgenerator_PROGRAMS += \
1708 systemd-efi-boot-generator
1710 systemd_efi_boot_generator_SOURCES = \
1711 src/efi-boot-generator/efi-boot-generator.c
1713 systemd_efi_boot_generator_LDADD = \
1714 libsystemd-label.la \
1715 libsystemd-shared.la
1717 # ------------------------------------------------------------------------------
1720 src/boot/boot-loader.h \
1721 src/boot/bootctl.c \
1722 src/boot/boot-loader.c \
1726 libsystemd-shared.la \
1727 libsystemd-id128-internal.la \
1728 libsystemd-daemon-internal.la
1734 # ------------------------------------------------------------------------------
1736 systemgenerator_PROGRAMS += \
1737 systemd-gpt-auto-generator
1739 systemd_gpt_auto_generator_SOURCES = \
1740 src/gpt-auto-generator/gpt-auto-generator.c
1742 systemd_gpt_auto_generator_LDADD = \
1743 libsystemd-label.la \
1744 libsystemd-id128-internal.la \
1745 libudev-internal.la \
1746 libsystemd-shared.la \
1749 systemd_gpt_auto_generator_CFLAGS = \
1754 # ------------------------------------------------------------------------------
1755 systemd_rc_local_generator_SOURCES = \
1756 src/rc-local-generator/rc-local-generator.c
1758 systemd_rc_local_generator_LDADD = \
1759 libsystemd-label.la \
1760 libsystemd-shared.la
1762 # ------------------------------------------------------------------------------
1763 systemd_remount_fs_SOURCES = \
1764 src/remount-fs/remount-fs.c \
1765 src/core/mount-setup.c \
1766 src/core/mount-setup.h
1768 systemd_remount_fs_LDADD = \
1769 libsystemd-label.la \
1770 libsystemd-shared.la
1772 # ------------------------------------------------------------------------------
1773 systemd_cgroups_agent_SOURCES = \
1774 src/cgroups-agent/cgroups-agent.c
1776 systemd_cgroups_agent_LDADD = \
1777 libsystemd-bus-internal.la \
1778 libsystemd-id128-internal.la \
1779 libsystemd-daemon-internal.la \
1780 libsystemd-shared.la
1782 # ------------------------------------------------------------------------------
1783 systemctl_SOURCES = \
1784 src/systemctl/systemctl.c
1787 libsystemd-units.la \
1788 libsystemd-label.la \
1789 libsystemd-bus-internal.la \
1790 libsystemd-logs.la \
1791 libsystemd-login-internal.la \
1792 libsystemd-journal-internal.la \
1793 libsystemd-id128-internal.la \
1794 libsystemd-daemon-internal.la \
1795 libsystemd-shared.la
1797 # ------------------------------------------------------------------------------
1798 systemd_notify_SOURCES = \
1799 src/notify/notify.c \
1800 src/readahead/sd-readahead.c
1802 systemd_notify_LDADD = \
1803 libsystemd-daemon-internal.la \
1804 libsystemd-shared.la
1806 # ------------------------------------------------------------------------------
1807 systemd_ask_password_SOURCES = \
1808 src/ask-password/ask-password.c
1810 systemd_ask_password_LDADD = \
1811 libsystemd-label.la \
1812 libsystemd-shared.la
1814 # ------------------------------------------------------------------------------
1815 systemd_reply_password_SOURCES = \
1816 src/reply-password/reply-password.c
1818 systemd_reply_password_LDADD = \
1819 libsystemd-shared.la
1821 # ------------------------------------------------------------------------------
1822 systemd_cgls_SOURCES = \
1825 systemd_cgls_LDADD = \
1826 libsystemd-shared.la
1828 # ------------------------------------------------------------------------------
1829 systemd_cgtop_SOURCES = \
1832 systemd_cgtop_LDADD = \
1833 libsystemd-shared.la
1835 # ------------------------------------------------------------------------------
1836 systemd_nspawn_SOURCES = \
1837 src/nspawn/nspawn.c \
1838 src/core/mount-setup.c \
1839 src/core/mount-setup.h \
1840 src/core/loopback-setup.c \
1841 src/core/loopback-setup.h
1843 systemd_nspawn_LDADD = \
1844 libsystemd-label.la \
1845 libsystemd-capability.la \
1846 libsystemd-bus-internal.la \
1847 libsystemd-id128-internal.la \
1848 libsystemd-daemon-internal.la \
1849 libsystemd-shared.la
1851 # ------------------------------------------------------------------------------
1852 systemd_run_SOURCES = \
1855 systemd_run_LDADD = \
1856 libsystemd-label.la \
1857 libsystemd-capability.la \
1858 libsystemd-bus-internal.la \
1859 libsystemd-daemon-internal.la \
1860 libsystemd-id128-internal.la \
1861 libsystemd-shared.la
1863 # ------------------------------------------------------------------------------
1864 systemd_stdio_bridge_SOURCES = \
1865 src/stdio-bridge/stdio-bridge.c
1867 systemd_stdio_bridge_LDADD = \
1868 libsystemd-bus-internal.la \
1869 libsystemd-daemon-internal.la \
1870 libsystemd-id128-internal.la \
1871 libsystemd-shared.la
1873 # ------------------------------------------------------------------------------
1874 systemd_tty_ask_password_agent_SOURCES = \
1875 src/tty-ask-password-agent/tty-ask-password-agent.c
1877 systemd_tty_ask_password_agent_LDADD = \
1878 libsystemd-label.la \
1879 libsystemd-shared.la
1881 # ------------------------------------------------------------------------------
1882 libsystemd_daemon_la_SOURCES = \
1883 src/libsystemd-daemon/sd-daemon.c
1885 libsystemd_daemon_internal_la_SOURCES = \
1886 $(libsystemd_daemon_la_SOURCES)
1888 libsystemd_daemon_internal_la_CPPFLAGS = \
1890 -DSD_DAEMON_DISABLE_MQ
1892 libsystemd_daemon_la_CFLAGS = \
1894 -fvisibility=hidden \
1897 libsystemd_daemon_la_LDFLAGS = \
1899 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1900 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1902 libsystemd_daemon_la_LIBADD = \
1905 pkginclude_HEADERS += \
1906 src/systemd/sd-daemon.h
1908 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1909 libsystemd-daemon-install-hook:
1910 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1912 libsystemd-daemon-uninstall-hook:
1913 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1915 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1916 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1918 lib_LTLIBRARIES += \
1919 libsystemd-daemon.la
1921 noinst_LTLIBRARIES += \
1922 libsystemd-daemon-internal.la
1924 pkgconfiglib_DATA += \
1925 src/libsystemd-daemon/libsystemd-daemon.pc
1928 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1929 src/libsystemd-daemon/libsystemd-daemon.sym
1931 # ------------------------------------------------------------------------------
1932 libsystemd_bus_la_SOURCES = \
1933 src/systemd/sd-bus.h \
1934 src/systemd/sd-bus-protocol.h \
1935 src/systemd/sd-bus-vtable.h \
1936 src/systemd/sd-memfd.h \
1937 src/systemd/sd-utf8.h \
1938 src/systemd/sd-event.h \
1939 src/libsystemd-bus/sd-bus.c \
1940 src/libsystemd-bus/bus-control.c \
1941 src/libsystemd-bus/bus-control.h \
1942 src/libsystemd-bus/bus-error.c \
1943 src/libsystemd-bus/bus-error.h \
1944 src/libsystemd-bus/bus-internal.c \
1945 src/libsystemd-bus/bus-internal.h \
1946 src/libsystemd-bus/bus-socket.c \
1947 src/libsystemd-bus/bus-socket.h \
1948 src/libsystemd-bus/bus-kernel.c \
1949 src/libsystemd-bus/bus-kernel.h \
1950 src/libsystemd-bus/bus-container.c \
1951 src/libsystemd-bus/bus-container.h \
1952 src/libsystemd-bus/bus-message.c \
1953 src/libsystemd-bus/bus-message.h \
1954 src/libsystemd-bus/bus-signature.c \
1955 src/libsystemd-bus/bus-signature.h \
1956 src/libsystemd-bus/bus-type.c \
1957 src/libsystemd-bus/bus-type.h \
1958 src/libsystemd-bus/bus-match.c \
1959 src/libsystemd-bus/bus-match.h \
1960 src/libsystemd-bus/bus-bloom.c \
1961 src/libsystemd-bus/bus-bloom.h \
1962 src/libsystemd-bus/bus-introspect.c \
1963 src/libsystemd-bus/bus-introspect.h \
1964 src/libsystemd-bus/bus-objects.c \
1965 src/libsystemd-bus/bus-objects.h \
1966 src/libsystemd-bus/bus-convenience.c \
1967 src/libsystemd-bus/kdbus.h \
1968 src/libsystemd-bus/sd-memfd.c \
1969 src/libsystemd-bus/bus-util.c \
1970 src/libsystemd-bus/bus-util.h \
1971 src/libsystemd-bus/sd-utf8.c \
1972 src/libsystemd-bus/sd-event.c \
1973 src/libsystemd-bus/event-util.h
1975 libsystemd_bus_la_LIBADD = \
1976 libsystemd-id128-internal.la \
1977 libsystemd-daemon-internal.la \
1978 libsystemd-shared.la
1980 libsystemd_bus_la_CFLAGS = \
1984 libsystemd_bus_la_LDFLAGS = \
1986 -version-info $(LIBSYSTEMD_BUS_CURRENT):$(LIBSYSTEMD_BUS_REVISION):$(LIBSYSTEMD_BUS_AGE) \
1987 -Wl,--version-script=$(top_srcdir)/src/libsystemd-bus/libsystemd-bus.sym
1989 pkgconfiglib_DATA += \
1990 src/libsystemd-bus/libsystemd-bus.pc
1993 src/libsystemd-bus/libsystemd-bus.pc.in \
1994 src/libsystemd-bus/libsystemd-bus.sym
1996 lib_LTLIBRARIES += \
1999 libsystemd_bus_internal_la_SOURCES = \
2000 $(libsystemd_bus_la_SOURCES)
2002 libsystemd_bus_internal_la_CFLAGS = \
2003 $(libsystemd_bus_la_CFLAGS)
2005 noinst_LTLIBRARIES += \
2006 libsystemd-bus-internal.la
2010 test-bus-signature \
2015 test-bus-kernel-bloom \
2016 test-bus-kernel-benchmark \
2018 test-bus-zero-copy \
2019 test-bus-introspect \
2023 noinst_PROGRAMS += \
2026 test_bus_marshal_SOURCES = \
2027 src/libsystemd-bus/test-bus-marshal.c
2029 test_bus_marshal_LDADD = \
2030 libsystemd-bus-internal.la \
2031 libsystemd-id128-internal.la \
2032 libsystemd-daemon-internal.la \
2033 libsystemd-shared.la \
2037 test_bus_marshal_CFLAGS = \
2042 test_bus_signature_SOURCES = \
2043 src/libsystemd-bus/test-bus-signature.c
2045 test_bus_signature_LDADD = \
2046 libsystemd-shared.la \
2047 libsystemd-bus-internal.la
2049 test_bus_chat_SOURCES = \
2050 src/libsystemd-bus/test-bus-chat.c
2052 test_bus_chat_CFLAGS = \
2056 test_bus_chat_LDADD = \
2057 libsystemd-bus-internal.la \
2058 libsystemd-id128-internal.la \
2059 libsystemd-daemon-internal.la \
2060 libsystemd-shared.la
2062 test_bus_server_SOURCES = \
2063 src/libsystemd-bus/test-bus-server.c
2065 test_bus_server_CFLAGS = \
2069 test_bus_server_LDADD = \
2070 libsystemd-bus-internal.la \
2071 libsystemd-id128-internal.la \
2072 libsystemd-daemon-internal.la \
2073 libsystemd-shared.la
2075 test_bus_objects_SOURCES = \
2076 src/libsystemd-bus/test-bus-objects.c
2078 test_bus_objects_CFLAGS = \
2082 test_bus_objects_LDADD = \
2083 libsystemd-bus-internal.la \
2084 libsystemd-id128-internal.la \
2085 libsystemd-daemon-internal.la \
2086 libsystemd-shared.la
2088 test_bus_match_SOURCES = \
2089 src/libsystemd-bus/test-bus-match.c
2091 test_bus_match_LDADD = \
2092 libsystemd-bus-internal.la \
2093 libsystemd-id128-internal.la \
2094 libsystemd-daemon-internal.la \
2095 libsystemd-shared.la
2097 test_bus_kernel_SOURCES = \
2098 src/libsystemd-bus/test-bus-kernel.c
2100 test_bus_kernel_LDADD = \
2101 libsystemd-bus-internal.la \
2102 libsystemd-id128-internal.la \
2103 libsystemd-daemon-internal.la \
2104 libsystemd-shared.la
2106 test_bus_kernel_bloom_SOURCES = \
2107 src/libsystemd-bus/test-bus-kernel-bloom.c
2109 test_bus_kernel_bloom_LDADD = \
2110 libsystemd-bus-internal.la \
2111 libsystemd-id128-internal.la \
2112 libsystemd-daemon-internal.la \
2113 libsystemd-shared.la
2115 test_bus_kernel_benchmark_SOURCES = \
2116 src/libsystemd-bus/test-bus-kernel-benchmark.c
2118 test_bus_kernel_benchmark_LDADD = \
2119 libsystemd-bus-internal.la \
2120 libsystemd-id128-internal.la \
2121 libsystemd-daemon-internal.la \
2122 libsystemd-shared.la
2124 test_bus_memfd_SOURCES = \
2125 src/libsystemd-bus/test-bus-memfd.c
2127 test_bus_memfd_LDADD = \
2128 libsystemd-bus-internal.la \
2129 libsystemd-shared.la
2131 test_bus_zero_copy_SOURCES = \
2132 src/libsystemd-bus/test-bus-zero-copy.c
2134 test_bus_zero_copy_LDADD = \
2135 libsystemd-bus-internal.la \
2136 libsystemd-id128-internal.la \
2137 libsystemd-daemon-internal.la \
2138 libsystemd-shared.la
2140 test_bus_introspect_SOURCES = \
2141 src/libsystemd-bus/test-bus-introspect.c
2143 test_bus_introspect_LDADD = \
2144 libsystemd-shared.la \
2145 libsystemd-bus-internal.la
2147 test_event_SOURCES = \
2148 src/libsystemd-bus/test-event.c
2150 test_event_LDADD = \
2151 libsystemd-bus-internal.la \
2152 libsystemd-id128-internal.la \
2153 libsystemd-daemon-internal.la \
2154 libsystemd-shared.la
2157 src/libsystemd-bus/busctl.c
2160 libsystemd-bus-internal.la \
2161 libsystemd-id128-internal.la \
2162 libsystemd-daemon-internal.la \
2163 libsystemd-shared.la
2165 # ------------------------------------------------------------------------------
2175 include_HEADERS += \
2176 src/libudev/libudev.h
2178 lib_LTLIBRARIES += \
2181 libudev_la_SOURCES =\
2182 src/libudev/libudev-private.h \
2183 src/libudev/libudev.c \
2184 src/libudev/libudev-list.c \
2185 src/libudev/libudev-util.c \
2186 src/libudev/libudev-device.c \
2187 src/libudev/libudev-enumerate.c \
2188 src/libudev/libudev-monitor.c \
2189 src/libudev/libudev-queue.c \
2190 src/libudev/libudev-hwdb-def.h \
2191 src/libudev/libudev-hwdb.c
2193 libudev_la_CFLAGS = \
2197 libudev_la_LDFLAGS = \
2199 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2200 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2202 libudev_la_LIBADD = \
2203 libsystemd-daemon-internal.la \
2204 libsystemd-id128-internal.la \
2205 libsystemd-shared.la
2207 pkgconfiglib_DATA += \
2208 src/libudev/libudev.pc
2211 src/libudev/libudev.pc.in \
2212 src/libudev/libudev.sym
2215 src/libudev/libudev.pc \
2220 $(AM_V_at)$(MKDIR_P) $(dir $@)
2221 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2224 $(AM_V_at)$(MKDIR_P) $(dir $@)
2225 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2227 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2228 libudev-install-hook:
2229 libname=libudev.so && $(move-to-rootlibdir)
2231 libudev-uninstall-hook:
2232 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2234 INSTALL_EXEC_HOOKS += libudev-install-hook
2235 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2237 # ------------------------------------------------------------------------------
2238 noinst_LTLIBRARIES += \
2241 libudev_internal_la_SOURCES =\
2242 $(libudev_la_SOURCES) \
2243 src/libudev/libudev-device-private.c \
2244 src/libudev/libudev-queue-private.c
2246 libudev_internal_la_CFLAGS = \
2248 -fvisibility=default
2250 # ------------------------------------------------------------------------------
2252 $(sysconfdir)/udev/rules.d \
2253 $(sysconfdir)/udev/hwdb.d
2255 dist_network_DATA = \
2256 network/99-default.link
2258 dist_udevrules_DATA += \
2259 rules/99-systemd.rules \
2260 rules/42-usb-hid-pm.rules \
2261 rules/50-udev-default.rules \
2262 rules/60-drm.rules \
2263 rules/60-keyboard.rules \
2264 rules/60-persistent-storage-tape.rules \
2265 rules/60-persistent-serial.rules \
2266 rules/60-persistent-input.rules \
2267 rules/60-persistent-alsa.rules \
2268 rules/60-persistent-storage.rules \
2269 rules/64-btrfs.rules \
2270 rules/75-net-description.rules \
2271 rules/75-tty-description.rules \
2272 rules/78-sound-card.rules \
2273 rules/80-net-setup-link.rules \
2274 rules/95-udev-late.rules
2276 dist_udevhwdb_DATA = \
2277 hwdb/20-pci-vendor-model.hwdb \
2278 hwdb/20-pci-classes.hwdb \
2279 hwdb/20-usb-vendor-model.hwdb \
2280 hwdb/20-usb-classes.hwdb \
2281 hwdb/20-bluetooth-vendor-product.hwdb \
2282 hwdb/20-acpi-vendor.hwdb \
2284 hwdb/60-keyboard.hwdb
2286 udevconfdir = $(sysconfdir)/udev
2287 dist_udevconf_DATA = \
2290 sharepkgconfigdir = $(datadir)/pkgconfig
2291 sharepkgconfig_DATA = \
2295 rules/99-systemd.rules.in \
2299 rules/99-systemd.rules \
2303 units/systemd-udevd.service.in \
2304 units/systemd-udev-trigger.service.in \
2305 units/systemd-udev-settle.service.in
2308 units/systemd-udevd.service \
2309 units/systemd-udev-trigger.service \
2310 units/systemd-udev-settle.service
2312 SOCKETS_TARGET_WANTS += \
2313 systemd-udevd-control.socket \
2314 systemd-udevd-kernel.socket
2315 SYSINIT_TARGET_WANTS += \
2316 systemd-udevd.service \
2317 systemd-udev-trigger.service
2319 rootbin_PROGRAMS += \
2322 rootlibexec_PROGRAMS += \
2325 noinst_LTLIBRARIES += \
2328 src/udev/keyboard-keys.txt: Makefile
2329 $(AM_V_at)$(MKDIR_P) $(dir $@)
2330 $(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/' > $@
2332 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2333 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2335 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2336 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2338 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2339 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2341 libudev_core_la_SOURCES = \
2343 src/udev/udev-event.c \
2344 src/udev/udev-watch.c \
2345 src/udev/udev-node.c \
2346 src/udev/udev-rules.c \
2347 src/udev/udev-ctrl.c \
2348 src/udev/udev-builtin.c \
2349 src/udev/udev-builtin-btrfs.c \
2350 src/udev/udev-builtin-hwdb.c \
2351 src/udev/udev-builtin-input_id.c \
2352 src/udev/udev-builtin-keyboard.c \
2353 src/udev/udev-builtin-net_id.c \
2354 src/udev/udev-builtin-net_setup_link.c \
2355 src/udev/udev-builtin-path_id.c \
2356 src/udev/udev-builtin-usb_id.c \
2357 src/udev/net/link-config.h \
2358 src/udev/net/link-config.c \
2359 src/udev/net/ethtool-util.h \
2360 src/udev/net/ethtool-util.c
2362 nodist_libudev_core_la_SOURCES = \
2363 src/udev/keyboard-keys-from-name.h \
2364 src/udev/keyboard-keys-to-name.h \
2365 src/udev/net/link-config-gperf.c
2368 $(nodist_libudev_core_la_SOURCES)
2371 src/udev/keyboard-keys-from-name.gperf \
2372 src/udev/keyboard-keys.txt \
2373 src/udev/net/link-config-gperf.c
2376 src/udev/net/link-config-gperf.gperf
2378 libudev_core_la_CFLAGS = \
2383 libudev_core_la_LIBADD = \
2384 libudev-internal.la \
2385 libsystemd-label.la \
2386 libsystemd-daemon-internal.la \
2387 libsystemd-rtnl.la \
2388 libsystemd-id128-internal.la \
2389 libsystemd-shared.la \
2393 libudev_core_la_CPPFLAGS = \
2395 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2398 libudev_core_la_SOURCES += \
2399 src/udev/udev-builtin-firmware.c
2401 dist_udevrules_DATA += \
2402 rules/50-firmware.rules
2406 libudev_core_la_SOURCES += \
2407 src/udev/udev-builtin-kmod.c
2409 dist_udevrules_DATA += \
2410 rules/80-drivers.rules
2414 libudev_core_la_SOURCES += \
2415 src/udev/udev-builtin-blkid.c
2419 libudev_core_la_SOURCES += \
2420 src/udev/udev-builtin-uaccess.c \
2421 src/login/logind-acl.c \
2422 src/login/sd-login.c \
2423 src/systemd/sd-login.h \
2424 src/login/login-shared.c \
2425 src/login/login-shared.h
2427 libudev_core_la_LIBADD += \
2431 systemd_udevd_SOURCES = \
2434 systemd_udevd_LDADD = \
2438 src/udev/udevadm.c \
2439 src/udev/udevadm-info.c \
2440 src/udev/udevadm-control.c \
2441 src/udev/udevadm-monitor.c \
2442 src/udev/udevadm-hwdb.c \
2443 src/udev/udevadm-settle.c \
2444 src/udev/udevadm-trigger.c \
2445 src/udev/udevadm-test.c \
2446 src/udev/udevadm-test-builtin.c
2451 # Update hwdb on installation. Do not bother if installing
2452 # in DESTDIR, since this is likely for packaging purposes.
2454 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2456 INSTALL_DATA_HOOKS += \
2460 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2462 # ------------------------------------------------------------------------------
2471 test_libudev_SOURCES = \
2472 src/test/test-libudev.c
2474 test_libudev_LDADD = \
2475 libsystemd-label.la \
2476 libudev-internal.la \
2477 libsystemd-shared.la
2479 test_udev_SOURCES = \
2480 src/test/test-udev.c
2489 test_udev_LDADD += \
2496 # packed sysfs test tree
2498 $(AM_V_at)$(MKDIR_P) $(dir $@)
2499 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2503 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2508 test/rules-test.sh \
2509 test/rule-syntax-check.py
2511 # ------------------------------------------------------------------------------
2513 src/udev/ata_id/ata_id.c
2516 libudev-internal.la \
2517 libsystemd-shared.la
2519 udevlibexec_PROGRAMS += \
2522 # ------------------------------------------------------------------------------
2523 cdrom_id_SOURCES = \
2524 src/udev/cdrom_id/cdrom_id.c
2527 libudev-internal.la \
2528 libsystemd-shared.la
2530 udevlibexec_PROGRAMS += \
2533 dist_udevrules_DATA += \
2534 rules/60-cdrom_id.rules
2536 # ------------------------------------------------------------------------------
2538 src/udev/collect/collect.c
2541 libudev-internal.la \
2542 libsystemd-shared.la
2544 udevlibexec_PROGRAMS += \
2547 # ------------------------------------------------------------------------------
2549 src/udev/scsi_id/scsi_id.c \
2550 src/udev/scsi_id/scsi_serial.c \
2551 src/udev/scsi_id/scsi.h \
2552 src/udev/scsi_id/scsi_id.h
2555 libudev-internal.la \
2556 libsystemd-shared.la
2558 udevlibexec_PROGRAMS += \
2562 src/udev/scsi_id/README
2564 # ------------------------------------------------------------------------------
2566 src/udev/v4l_id/v4l_id.c
2571 udevlibexec_PROGRAMS += \
2574 dist_udevrules_DATA += \
2575 rules/60-persistent-v4l.rules
2577 # ------------------------------------------------------------------------------
2578 accelerometer_SOURCES = \
2579 src/udev/accelerometer/accelerometer.c
2581 accelerometer_LDADD = \
2582 libudev-internal.la -lm \
2583 libsystemd-shared.la
2585 udevlibexec_PROGRAMS += \
2588 dist_udevrules_DATA += \
2589 rules/61-accelerometer.rules
2591 # ------------------------------------------------------------------------------
2598 libgudev_includedir = \
2599 $(includedir)/gudev-1.0/gudev
2601 libgudev_include_HEADERS = \
2603 src/gudev/gudevenums.h \
2604 src/gudev/gudevenumtypes.h \
2605 src/gudev/gudevtypes.h \
2606 src/gudev/gudevclient.h \
2607 src/gudev/gudevdevice.h \
2608 src/gudev/gudevenumerator.h
2610 lib_LTLIBRARIES += libgudev-1.0.la
2612 pkgconfiglib_DATA += \
2613 src/gudev/gudev-1.0.pc
2616 src/gudev/gudev-1.0.pc
2618 libgudev_1_0_la_SOURCES = \
2619 src/gudev/gudevenums.h \
2620 src/gudev/gudevenumtypes.h \
2621 src/gudev/gudevenumtypes.h\
2622 src/gudev/gudevtypes.h \
2623 src/gudev/gudevclient.h \
2624 src/gudev/gudevclient.c \
2625 src/gudev/gudevdevice.h \
2626 src/gudev/gudevdevice.c \
2627 src/gudev/gudevenumerator.h \
2628 src/gudev/gudevenumerator.c \
2629 src/gudev/gudevprivate.h
2631 nodist_libgudev_1_0_la_SOURCES = \
2632 src/gudev/gudevmarshal.h \
2633 src/gudev/gudevmarshal.c \
2634 src/gudev/gudevenumtypes.h \
2635 src/gudev/gudevenumtypes.c
2638 $(nodist_libgudev_1_0_la_SOURCES)
2640 libgudev_1_0_la_CPPFLAGS = \
2642 -I$(top_builddir)/src\
2643 -I$(top_srcdir)/src\
2644 -I$(top_builddir)/src/gudev \
2645 -I$(top_srcdir)/src/gudev \
2646 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2647 -D_GUDEV_COMPILATION \
2648 -DG_LOG_DOMAIN=\"GUdev\"
2650 libgudev_1_0_la_CFLAGS = \
2652 -fvisibility=default \
2655 libgudev_1_0_la_LIBADD = \
2659 libgudev_1_0_la_LDFLAGS = \
2661 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2662 -export-dynamic -no-undefined \
2663 -export-symbols-regex '^g_udev_.*'
2665 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2666 $(AM_V_at)$(MKDIR_P) $(dir $@)
2667 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2669 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2670 $(AM_V_at)$(MKDIR_P) $(dir $@)
2671 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2672 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2674 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2675 $(AM_V_at)$(MKDIR_P) $(dir $@)
2676 $(AM_V_GEN)glib-mkenums --template $^ > $@
2678 if HAVE_INTROSPECTION
2679 -include $(INTROSPECTION_MAKEFILE)
2681 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2683 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2685 src_gudev_GUdev_1_0_gir_CFLAGS = \
2688 -D_GUDEV_COMPILATION \
2689 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2690 -I$(top_srcdir)/src \
2691 -I$(top_builddir)/src \
2692 -I$(top_srcdir)/src/gudev \
2693 -I$(top_builddir)/src/gudev
2695 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2697 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2698 --pkg-export=gudev-1.0 \
2701 src_gudev_GUdev_1_0_gir_FILES = \
2703 src/gudev/gudevtypes.h \
2704 src/gudev/gudevenums.h \
2705 src/gudev/gudevenumtypes.h \
2706 src/gudev/gudevclient.h \
2707 src/gudev/gudevdevice.h \
2708 src/gudev/gudevenumerator.h \
2709 src/gudev/gudevclient.c \
2710 src/gudev/gudevdevice.c \
2711 src/gudev/gudevenumerator.c
2713 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2714 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2716 girdir = $(datadir)/gir-1.0
2718 src/gudev/GUdev-1.0.gir
2720 typelibsdir = $(libdir)/girepository-1.0
2722 src/gudev/GUdev-1.0.typelib
2724 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2725 endif # HAVE_INTROSPECTION
2727 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2728 libgudev-install-hook:
2729 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2731 libgudev-uninstall-hook:
2732 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2734 INSTALL_EXEC_HOOKS += libgudev-install-hook
2735 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2739 src/gudev/gudev-1.0.pc.in \
2740 src/gudev/gudevmarshal.list \
2741 src/gudev/gudevenumtypes.h.template \
2742 src/gudev/gudevenumtypes.c.template \
2743 src/gudev/gjs-example.js \
2744 src/gudev/seed-example-enum.js \
2745 src/gudev/seed-example.js
2747 # ------------------------------------------------------------------------------
2748 mtd_probe_SOURCES = \
2749 src/udev/mtd_probe/mtd_probe.c \
2750 src/udev/mtd_probe/mtd_probe.h \
2751 src/udev/mtd_probe/probe_smartmedia.c
2753 mtd_probe_CPPFLAGS = \
2756 dist_udevrules_DATA += \
2757 rules/75-probe_mtd.rules
2759 udevlibexec_PROGRAMS += \
2762 # ------------------------------------------------------------------------------
2763 libsystemd_id128_la_SOURCES = \
2764 src/libsystemd-id128/sd-id128.c
2766 libsystemd_id128_la_CFLAGS = \
2770 libsystemd_id128_la_LDFLAGS = \
2772 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2773 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2775 libsystemd_id128_la_LIBADD = \
2776 libsystemd-shared.la
2778 libsystemd_id128_internal_la_SOURCES = \
2779 $(libsystemd_id128_la_SOURCES)
2781 test_id128_SOURCES = \
2782 src/test/test-id128.c
2784 test_id128_LDADD = \
2785 libsystemd-id128-internal.la \
2786 libsystemd-daemon-internal.la \
2787 libsystemd-shared.la
2792 pkginclude_HEADERS += \
2793 src/systemd/sd-id128.h
2795 lib_LTLIBRARIES += \
2798 noinst_LTLIBRARIES += \
2799 libsystemd-id128-internal.la
2801 pkgconfiglib_DATA += \
2802 src/libsystemd-id128/libsystemd-id128.pc
2804 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2805 libsystemd-id128-install-hook:
2806 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2808 libsystemd-id128-uninstall-hook:
2809 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2811 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2812 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2815 src/libsystemd-id128/libsystemd-id128.pc.in \
2816 src/libsystemd-id128/libsystemd-id128.sym
2818 # ------------------------------------------------------------------------------
2820 rootlibexec_PROGRAMS += \
2823 systemd_activate_SOURCES = \
2824 src/activate/activate.c
2826 systemd_activate_LDADD = \
2827 libsystemd-label.la \
2828 libsystemd-daemon-internal.la \
2829 libsystemd-shared.la
2831 # ------------------------------------------------------------------------------
2832 systemd_journald_SOURCES = \
2833 src/journal/journald.c \
2834 src/journal/journald-server.h
2836 systemd_journald_LDADD = \
2837 libsystemd-journal-core.la
2839 systemd_cat_SOURCES = \
2842 systemd_cat_LDADD = \
2843 libsystemd-journal-core.la
2845 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2846 journalctl_CFLAGS = \
2849 journalctl_SOURCES = \
2850 src/journal/journalctl.c
2852 journalctl_LDADD = \
2853 libsystemd-journal-internal.la \
2854 libsystemd-id128-internal.la \
2855 libsystemd-logs.la \
2856 libsystemd-shared.la
2859 journalctl_LDADD += \
2864 journalctl_SOURCES += \
2865 src/journal/journal-qrcode.c \
2866 src/journal/journal-qrcode.h
2868 journalctl_CFLAGS += \
2871 journalctl_LDADD += \
2875 test_journal_SOURCES = \
2876 src/journal/test-journal.c
2878 test_journal_LDADD = \
2879 libsystemd-journal-core.la
2881 test_journal_send_SOURCES = \
2882 src/journal/test-journal-send.c
2884 test_journal_send_LDADD = \
2885 libsystemd-journal-core.la
2887 test_journal_syslog_SOURCES = \
2888 src/journal/test-journal-syslog.c
2890 test_journal_syslog_LDADD = \
2891 libsystemd-journal-core.la
2893 test_journal_match_SOURCES = \
2894 src/journal/test-journal-match.c
2896 test_journal_match_LDADD = \
2897 libsystemd-journal-core.la
2899 test_journal_enum_SOURCES = \
2900 src/journal/test-journal-enum.c
2902 test_journal_enum_LDADD = \
2903 libsystemd-journal-core.la
2905 test_journal_stream_SOURCES = \
2906 src/journal/test-journal-stream.c
2908 test_journal_stream_LDADD = \
2909 libsystemd-journal-core.la
2911 test_journal_init_SOURCES = \
2912 src/journal/test-journal-init.c
2914 test_journal_init_LDADD = \
2915 libsystemd-journal-core.la
2917 test_journal_verify_SOURCES = \
2918 src/journal/test-journal-verify.c
2920 test_journal_verify_LDADD = \
2921 libsystemd-journal-core.la
2923 test_journal_interleaving_SOURCES = \
2924 src/journal/test-journal-interleaving.c
2926 test_journal_interleaving_LDADD = \
2927 libsystemd-journal-core.la
2929 test_mmap_cache_SOURCES = \
2930 src/journal/test-mmap-cache.c
2932 test_mmap_cache_LDADD = \
2933 libsystemd-journal-core.la
2935 test_catalog_SOURCES = \
2936 src/journal/test-catalog.c
2938 test_catalog_CFLAGS = \
2940 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
2942 test_catalog_LDADD = \
2943 libsystemd-journal-core.la
2945 libsystemd_journal_la_SOURCES = \
2946 src/journal/sd-journal.c \
2947 src/systemd/sd-journal.h \
2948 src/systemd/_sd-common.h \
2949 src/journal/journal-file.c \
2950 src/journal/journal-file.h \
2951 src/journal/journal-vacuum.c \
2952 src/journal/journal-vacuum.h \
2953 src/journal/journal-verify.c \
2954 src/journal/journal-verify.h \
2955 src/journal/lookup3.c \
2956 src/journal/lookup3.h \
2957 src/journal/journal-send.c \
2958 src/journal/journal-def.h \
2959 src/journal/compress.h \
2960 src/journal/catalog.c \
2961 src/journal/catalog.h \
2962 src/journal/mmap-cache.c \
2963 src/journal/mmap-cache.h
2965 libsystemd_journal_la_CFLAGS = \
2969 libsystemd_journal_la_LDFLAGS = \
2971 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2972 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2974 libsystemd_journal_la_LIBADD = \
2975 libsystemd-label.la \
2976 libsystemd-daemon-internal.la \
2977 libsystemd-id128-internal.la \
2978 libsystemd-shared.la
2980 libsystemd_journal_internal_la_SOURCES = \
2981 $(libsystemd_journal_la_SOURCES)
2983 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2984 libsystemd_journal_internal_la_CFLAGS = \
2987 libsystemd_journal_internal_la_LIBADD =
2990 libsystemd_journal_la_SOURCES += \
2991 src/journal/compress.c
2993 libsystemd_journal_la_CFLAGS += \
2996 libsystemd_journal_la_LIBADD += \
2999 libsystemd_journal_internal_la_CFLAGS += \
3002 libsystemd_journal_internal_la_LIBADD += \
3006 libsystemd_journal_core_la_SOURCES = \
3007 src/journal/journald-kmsg.c \
3008 src/journal/journald-kmsg.h \
3009 src/journal/journald-syslog.c \
3010 src/journal/journald-syslog.h \
3011 src/journal/journald-stream.c \
3012 src/journal/journald-stream.h \
3013 src/journal/journald-server.c \
3014 src/journal/journald-server.h \
3015 src/journal/journald-console.c \
3016 src/journal/journald-console.h \
3017 src/journal/journald-native.c \
3018 src/journal/journald-native.h \
3019 src/journal/journald-rate-limit.c \
3020 src/journal/journald-rate-limit.h \
3021 src/journal/journal-internal.h
3023 nodist_libsystemd_journal_core_la_SOURCES = \
3024 src/journal/journald-gperf.c
3026 libsystemd_journal_core_la_LIBADD = \
3027 libsystemd-journal-internal.la \
3028 libudev-internal.la \
3029 libsystemd-audit.la \
3030 libsystemd-capability.la \
3031 libsystemd-label.la \
3032 libsystemd-daemon-internal.la \
3033 libsystemd-id128-internal.la \
3034 libsystemd-shared.la
3037 libsystemd_journal_core_la_LIBADD += \
3038 libsystemd-login-internal.la
3042 libsystemd_journal_core_la_LIBADD += \
3046 noinst_LTLIBRARIES += \
3047 libsystemd-journal-core.la
3050 libsystemd_journal_la_SOURCES += \
3051 src/journal/journal-authenticate.c \
3052 src/journal/journal-authenticate.h \
3053 src/journal/fsprg.c \
3056 libsystemd_journal_la_CFLAGS += \
3060 libsystemd_journal_la_LIBADD += \
3063 libsystemd_journal_internal_la_CFLAGS += \
3067 libsystemd_journal_internal_la_LIBADD += \
3071 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3072 # needed. Also, grant read access to new journal files to members of
3073 # "adm" and "wheel".
3074 libsystemd-journal-install-hook:
3075 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3076 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3077 -chown 0:0 $(DESTDIR)/var/log/journal
3078 -chmod 755 $(DESTDIR)/var/log/journal
3079 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3080 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3082 libsystemd-journal-uninstall-hook:
3083 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3085 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3086 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3088 # ------------------------------------------------------------------------------
3090 # Update catalog on installation. Do not bother if installing
3091 # in DESTDIR, since this is likely for packaging purposes.
3092 catalog-update-hook:
3093 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3095 INSTALL_DATA_HOOKS += \
3098 catalog-remove-hook:
3099 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3101 UNINSTALL_DATA_HOOKS += \
3110 test-journal-syslog \
3111 test-journal-match \
3112 test-journal-stream \
3114 test-journal-verify \
3115 test-journal-interleaving \
3119 pkginclude_HEADERS += \
3120 src/systemd/sd-journal.h \
3121 src/systemd/sd-messages.h \
3122 src/systemd/_sd-common.h
3124 lib_LTLIBRARIES += \
3125 libsystemd-journal.la
3127 noinst_LTLIBRARIES += \
3128 libsystemd-journal-internal.la
3130 rootlibexec_PROGRAMS += \
3133 rootbin_PROGRAMS += \
3139 dist_systemunit_DATA += \
3140 units/systemd-journald.socket
3142 nodist_systemunit_DATA += \
3143 units/systemd-journald.service \
3144 units/systemd-journal-flush.service
3146 dist_pkgsysconf_DATA += \
3147 src/journal/journald.conf
3149 pkgconfiglib_DATA += \
3150 src/journal/libsystemd-journal.pc
3152 dist_catalog_DATA = \
3153 catalog/systemd.catalog
3155 SOCKETS_TARGET_WANTS += \
3156 systemd-journald.socket
3157 SYSINIT_TARGET_WANTS += \
3158 systemd-journald.service \
3159 systemd-journal-flush.service
3162 src/journal/libsystemd-journal.pc.in \
3163 src/journal/libsystemd-journal.sym \
3164 units/systemd-journald.service.in \
3165 units/systemd-journal-flush.service.in \
3166 src/journal/journald-gperf.gperf
3169 src/journal/journald-gperf.c
3171 # ------------------------------------------------------------------------------
3173 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3175 rootlibexec_PROGRAMS += \
3176 systemd-journal-gatewayd
3178 systemd_journal_gatewayd_SOURCES = \
3179 src/journal/journal-gatewayd.c \
3180 src/journal/microhttpd-util.h \
3181 src/journal/microhttpd-util.c
3183 systemd_journal_gatewayd_LDADD = \
3184 libsystemd-logs.la \
3185 libsystemd-journal-internal.la \
3186 libsystemd-id128-internal.la \
3187 libsystemd-daemon-internal.la \
3188 libsystemd-bus-internal.la \
3189 libsystemd-shared.la \
3192 systemd_journal_gatewayd_CFLAGS = \
3194 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3195 $(MICROHTTPD_CFLAGS)
3197 dist_systemunit_DATA += \
3198 units/systemd-journal-gatewayd.socket
3200 nodist_systemunit_DATA += \
3201 units/systemd-journal-gatewayd.service
3203 dist_gatewayddocumentroot_DATA = \
3204 src/journal/browse.html
3209 units/systemd-journal-gatewayd.service.in
3211 # ------------------------------------------------------------------------------
3213 systemd_socket_proxyd_SOURCES = \
3214 src/socket-proxy/socket-proxyd.c
3216 systemd_socket_proxyd_LDADD = \
3217 libsystemd-logs.la \
3218 libsystemd-bus-internal.la \
3219 libsystemd-journal-internal.la \
3220 libsystemd-id128-internal.la \
3221 libsystemd-daemon-internal.la \
3222 libsystemd-shared.la
3224 # ------------------------------------------------------------------------------
3226 systemd_coredump_SOURCES = \
3227 src/journal/coredump.c
3229 systemd_coredump_LDADD = \
3230 libsystemd-journal-internal.la \
3231 libsystemd-label.la \
3232 libsystemd-shared.la
3235 systemd_coredump_LDADD += \
3236 libsystemd-login-internal.la
3239 rootlibexec_PROGRAMS += \
3242 systemd_coredumpctl_SOURCES = \
3243 src/journal/coredumpctl.c
3245 systemd_coredumpctl_LDADD = \
3246 libsystemd-journal-internal.la \
3247 libsystemd-id128-internal.la \
3248 libsystemd-shared.la
3253 dist_bashcompletion_DATA += \
3254 shell-completion/bash/systemd-coredumpctl
3256 dist_zshcompletion_DATA += \
3257 shell-completion/zsh/_systemd-coredumpctl
3260 sysctl.d/50-coredump.conf
3263 sysctl.d/50-coredump.conf
3267 sysctl.d/50-coredump.conf.in
3269 # ------------------------------------------------------------------------------
3271 systemd_binfmt_SOURCES = \
3274 systemd_binfmt_LDADD = \
3275 libsystemd-shared.la
3277 rootlibexec_PROGRAMS += \
3280 dist_systemunit_DATA += \
3281 units/proc-sys-fs-binfmt_misc.automount \
3282 units/proc-sys-fs-binfmt_misc.mount
3284 nodist_systemunit_DATA += \
3285 units/systemd-binfmt.service
3288 $(prefix)/lib/binfmt.d \
3289 $(sysconfdir)/binfmt.d
3291 SYSINIT_TARGET_WANTS += \
3292 systemd-binfmt.service \
3293 proc-sys-fs-binfmt_misc.automount
3298 units/systemd-binfmt.service.in
3300 # ------------------------------------------------------------------------------
3302 systemd_vconsole_setup_SOURCES = \
3303 src/vconsole/vconsole-setup.c
3305 systemd_vconsole_setup_LDADD = \
3306 libsystemd-shared.la
3308 rootlibexec_PROGRAMS += \
3309 systemd-vconsole-setup
3311 nodist_systemunit_DATA += \
3312 units/systemd-vconsole-setup.service
3314 SYSINIT_TARGET_WANTS += \
3315 systemd-vconsole-setup.service
3319 units/systemd-vconsole-setup.service.in
3321 # ------------------------------------------------------------------------------
3323 systemd_readahead_SOURCES = \
3324 src/readahead/readahead.c \
3325 src/readahead/readahead-collect.c \
3326 src/readahead/readahead-replay.c \
3327 src/readahead/readahead-analyze.c \
3328 src/readahead/readahead-common.c \
3329 src/readahead/readahead-common.h
3331 systemd_readahead_LDADD = \
3332 libsystemd-daemon-internal.la \
3333 libudev-internal.la \
3334 libsystemd-shared.la
3337 src/readahead/sd-readahead.c \
3338 src/systemd/sd-readahead.h
3340 rootlibexec_PROGRAMS += \
3343 dist_systemunit_DATA += \
3344 units/systemd-readahead-drop.service \
3345 units/systemd-readahead-done.timer
3347 nodist_systemunit_DATA += \
3348 units/systemd-readahead-collect.service \
3349 units/systemd-readahead-replay.service \
3350 units/systemd-readahead-done.service
3355 units/systemd-readahead-collect.service.in \
3356 units/systemd-readahead-replay.service.in \
3357 units/systemd-readahead-done.service.in
3359 # ------------------------------------------------------------------------------
3361 systemd_bootchart_SOURCES = \
3362 src/bootchart/bootchart.c \
3363 src/bootchart/bootchart.h \
3364 src/bootchart/store.c \
3365 src/bootchart/store.h \
3366 src/bootchart/svg.c \
3369 systemd_bootchart_LDADD = \
3370 libsystemd-journal-internal.la \
3371 libsystemd-shared.la
3373 rootlibexec_PROGRAMS += \
3376 dist_pkgsysconf_DATA += \
3377 src/bootchart/bootchart.conf
3380 # ------------------------------------------------------------------------------
3381 if ENABLE_QUOTACHECK
3382 rootlibexec_PROGRAMS += \
3385 nodist_systemunit_DATA += \
3386 units/systemd-quotacheck.service
3388 systemd_quotacheck_SOURCES = \
3389 src/quotacheck/quotacheck.c
3391 systemd_quotacheck_LDADD = \
3392 libsystemd-shared.la
3396 units/systemd-quotacheck.service.in
3398 nodist_systemunit_DATA += \
3399 units/quotaon.service
3401 # ------------------------------------------------------------------------------
3402 if ENABLE_RANDOMSEED
3403 rootlibexec_PROGRAMS += \
3406 nodist_systemunit_DATA += \
3407 units/systemd-random-seed.service
3409 systemd_random_seed_SOURCES = \
3410 src/random-seed/random-seed.c
3412 systemd_random_seed_LDADD = \
3413 libsystemd-label.la \
3414 libsystemd-shared.la
3416 SYSINIT_TARGET_WANTS += \
3417 systemd-random-seed.service
3422 units/systemd-random-seed.service.in
3424 # ------------------------------------------------------------------------------
3426 rootlibexec_PROGRAMS += \
3429 nodist_systemunit_DATA += \
3430 units/systemd-backlight@.service
3432 systemd_backlight_SOURCES = \
3433 src/backlight/backlight.c
3435 systemd_backlight_LDADD = \
3436 libsystemd-label.la \
3437 libudev-internal.la \
3438 libsystemd-shared.la
3442 units/systemd-backlight@.service.in
3444 # ------------------------------------------------------------------------------
3446 rootlibexec_PROGRAMS += \
3449 nodist_systemunit_DATA += \
3450 units/systemd-rfkill@.service
3452 systemd_rfkill_SOURCES = \
3455 systemd_rfkill_LDADD = \
3456 libsystemd-label.la \
3457 libudev-internal.la \
3458 libsystemd-shared.la
3462 units/systemd-rfkill@.service.in
3464 # ------------------------------------------------------------------------------
3465 if HAVE_LIBCRYPTSETUP
3466 rootlibexec_PROGRAMS += \
3469 systemgenerator_PROGRAMS += \
3470 systemd-cryptsetup-generator
3472 dist_systemunit_DATA += \
3473 units/cryptsetup.target
3475 systemd_cryptsetup_SOURCES = \
3476 src/cryptsetup/cryptsetup.c
3478 systemd_cryptsetup_CFLAGS = \
3480 $(LIBCRYPTSETUP_CFLAGS)
3482 systemd_cryptsetup_LDADD = \
3483 libsystemd-label.la \
3484 libudev-internal.la \
3485 libsystemd-shared.la \
3486 $(LIBCRYPTSETUP_LIBS)
3488 systemd_cryptsetup_generator_SOURCES = \
3489 src/cryptsetup/cryptsetup-generator.c
3491 systemd_cryptsetup_generator_LDADD = \
3492 libsystemd-label.la \
3493 libsystemd-shared.la
3495 SYSINIT_TARGET_WANTS += \
3500 # ------------------------------------------------------------------------------
3502 systemd_hostnamed_SOURCES = \
3503 src/hostname/hostnamed.c
3505 systemd_hostnamed_LDADD = \
3506 libsystemd-label.la \
3507 libsystemd-bus-internal.la \
3508 libsystemd-id128-internal.la \
3509 libsystemd-daemon-internal.la \
3510 libsystemd-shared.la
3512 rootlibexec_PROGRAMS += \
3515 nodist_systemunit_DATA += \
3516 units/systemd-hostnamed.service
3518 dist_dbuspolicy_DATA += \
3519 src/hostname/org.freedesktop.hostname1.conf
3521 dist_dbussystemservice_DATA += \
3522 src/hostname/org.freedesktop.hostname1.service
3524 polkitpolicy_files += \
3525 src/hostname/org.freedesktop.hostname1.policy
3527 SYSTEM_UNIT_ALIASES += \
3528 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3530 hostnamectl_SOURCES = \
3531 src/hostname/hostnamectl.c
3533 hostnamectl_LDADD = \
3534 libsystemd-bus-internal.la \
3535 libsystemd-id128-internal.la \
3536 libsystemd-daemon-internal.la \
3537 libsystemd-shared.la
3542 dist_bashcompletion_DATA += \
3543 shell-completion/bash/hostnamectl
3545 dist_zshcompletion_DATA += \
3546 shell-completion/zsh/_hostnamectl
3550 polkitpolicy_in_files += \
3551 src/hostname/org.freedesktop.hostname1.policy.in
3554 units/systemd-hostnamed.service.in
3556 # ------------------------------------------------------------------------------
3558 systemd_localed_SOURCES = \
3559 src/locale/localed.c
3561 systemd_localed_LDADD = \
3562 libsystemd-label.la \
3563 libsystemd-bus-internal.la \
3564 libsystemd-id128-internal.la \
3565 libsystemd-daemon-internal.la \
3566 libsystemd-shared.la
3568 nodist_systemunit_DATA += \
3569 units/systemd-localed.service
3571 rootlibexec_PROGRAMS += \
3574 dist_dbuspolicy_DATA += \
3575 src/locale/org.freedesktop.locale1.conf
3577 dist_dbussystemservice_DATA += \
3578 src/locale/org.freedesktop.locale1.service
3580 polkitpolicy_files += \
3581 src/locale/org.freedesktop.locale1.policy
3583 SYSTEM_UNIT_ALIASES += \
3584 systemd-localed.service dbus-org.freedesktop.locale1.service
3586 dist_pkgdata_DATA += \
3587 src/locale/kbd-model-map
3589 dist_noinst_SCRIPT = \
3590 src/locale/generate-kbd-model-map
3592 update-kbd-model-map: src/locale/generate-kbd-model-map
3593 $PYTHON $< > src/locale/kbd-model-map
3595 localectl_SOURCES = \
3596 src/locale/localectl.c
3599 libsystemd-bus-internal.la \
3600 libsystemd-id128-internal.la \
3601 libsystemd-daemon-internal.la \
3602 libsystemd-shared.la
3607 dist_bashcompletion_DATA += \
3608 shell-completion/bash/localectl
3610 dist_zshcompletion_DATA += \
3611 shell-completion/zsh/_localectl
3615 polkitpolicy_in_files += \
3616 src/locale/org.freedesktop.locale1.policy.in
3619 units/systemd-localed.service.in
3621 # ------------------------------------------------------------------------------
3623 systemd_timedated_SOURCES = \
3624 src/timedate/timedated.c
3626 systemd_timedated_LDADD = \
3627 libsystemd-label.la \
3628 libsystemd-bus-internal.la \
3629 libsystemd-id128-internal.la \
3630 libsystemd-daemon-internal.la \
3631 libsystemd-shared.la
3633 rootlibexec_PROGRAMS += \
3636 dist_dbussystemservice_DATA += \
3637 src/timedate/org.freedesktop.timedate1.service
3639 dist_dbuspolicy_DATA += \
3640 src/timedate/org.freedesktop.timedate1.conf
3642 nodist_systemunit_DATA += \
3643 units/systemd-timedated.service
3645 polkitpolicy_files += \
3646 src/timedate/org.freedesktop.timedate1.policy
3649 $(prefix)/lib/systemd/ntp-units.d \
3650 $(sysconfdir)/systemd/ntp-units.d
3652 SYSTEM_UNIT_ALIASES += \
3653 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3655 timedatectl_SOURCES = \
3656 src/timedate/timedatectl.c
3658 timedatectl_LDADD = \
3659 libsystemd-bus-internal.la \
3660 libsystemd-id128-internal.la \
3661 libsystemd-daemon-internal.la \
3662 libsystemd-shared.la
3667 dist_bashcompletion_DATA += \
3668 shell-completion/bash/timedatectl
3670 dist_zshcompletion_DATA += \
3671 shell-completion/zsh/_timedatectl
3674 polkitpolicy_in_files += \
3675 src/timedate/org.freedesktop.timedate1.policy.in
3678 units/systemd-timedated.service.in
3680 # ------------------------------------------------------------------------------
3682 libnss_myhostname_la_SOURCES = \
3683 src/nss-myhostname/nss-myhostname.c \
3684 src/nss-myhostname/ifconf.h \
3685 src/nss-myhostname/netlink.c
3687 libnss_myhostname_la_LDFLAGS = \
3695 lib_LTLIBRARIES += \
3696 libnss_myhostname.la
3699 # ------------------------------------------------------------------------------
3701 systemd_machined_SOURCES = \
3702 src/machine/machined.c \
3703 src/machine/machined.h
3705 systemd_machined_LDADD = \
3706 libsystemd-machine-core.la
3708 rootlibexec_PROGRAMS += \
3711 libsystemd_machine_core_la_SOURCES = \
3712 src/machine/machined-dbus.c \
3713 src/machine/machine.c \
3714 src/machine/machine.h \
3715 src/machine/machine-dbus.c
3717 libsystemd_machine_core_la_LIBADD = \
3718 libsystemd-label.la \
3719 libsystemd-audit.la \
3720 libsystemd-daemon-internal.la \
3721 libsystemd-bus-internal.la \
3722 libsystemd-id128-internal.la \
3723 libudev-internal.la \
3724 libsystemd-shared.la
3726 noinst_LTLIBRARIES += \
3727 libsystemd-machine-core.la
3729 machinectl_SOURCES = \
3730 src/machine/machinectl.c
3732 machinectl_LDADD = \
3733 libsystemd-bus-internal.la \
3734 libsystemd-id128-internal.la \
3735 libsystemd-daemon-internal.la \
3736 libsystemd-shared.la
3738 rootbin_PROGRAMS += \
3741 test_machine_tables_SOURCES = \
3742 src/machine/test-machine-tables.c
3744 test_machine_tables_LDADD = \
3745 libsystemd-machine-core.la
3750 nodist_systemunit_DATA += \
3751 units/systemd-machined.service
3753 dist_systemunit_DATA += \
3756 dist_dbussystemservice_DATA += \
3757 src/machine/org.freedesktop.machine1.service
3759 dist_dbuspolicy_DATA += \
3760 src/machine/org.freedesktop.machine1.conf
3762 dist_zshcompletion_DATA += \
3763 shell-completion/zsh/_machinectl
3765 SYSTEM_UNIT_ALIASES += \
3766 systemd-machined.service dbus-org.freedesktop.machine1.service
3769 units/systemd-machined.service.in
3773 # ------------------------------------------------------------------------------
3775 systemd_logind_SOURCES = \
3776 src/login/logind.c \
3779 nodist_systemd_logind_SOURCES = \
3780 src/login/logind-gperf.c
3782 systemd_logind_LDADD = \
3783 libsystemd-logind-core.la
3785 libsystemd_logind_core_la_SOURCES = \
3786 src/login/logind-core.c \
3787 src/login/logind-dbus.c \
3788 src/login/logind-device.c \
3789 src/login/logind-device.h \
3790 src/login/logind-button.c \
3791 src/login/logind-button.h \
3792 src/login/logind-action.c \
3793 src/login/logind-action.h \
3794 src/login/logind-seat.c \
3795 src/login/logind-seat.h \
3796 src/login/logind-session.c \
3797 src/login/logind-session.h \
3798 src/login/logind-session-device.c \
3799 src/login/logind-session-device.h \
3800 src/login/logind-user.c \
3801 src/login/logind-user.h \
3802 src/login/logind-inhibit.c \
3803 src/login/logind-inhibit.h \
3804 src/login/logind-session-dbus.c \
3805 src/login/logind-seat-dbus.c \
3806 src/login/logind-user-dbus.c \
3807 src/login/logind-acl.h \
3808 src/login/login-shared.c \
3809 src/login/login-shared.h
3811 libsystemd_logind_core_la_LIBADD = \
3812 libsystemd-label.la \
3813 libsystemd-capability.la \
3814 libsystemd-audit.la \
3815 libsystemd-daemon-internal.la \
3816 libsystemd-id128-internal.la \
3817 libsystemd-bus-internal.la \
3818 libudev-internal.la \
3819 libsystemd-shared.la
3822 libsystemd_logind_core_la_SOURCES += \
3823 src/login/logind-acl.c
3825 libsystemd_logind_core_la_LIBADD += \
3829 noinst_LTLIBRARIES += \
3830 libsystemd-logind-core.la
3832 systemd_user_sessions_SOURCES = \
3833 src/login/user-sessions.c
3835 systemd_user_sessions_LDADD = \
3836 libsystemd-shared.la
3838 rootlibexec_PROGRAMS += \
3840 systemd-user-sessions
3842 loginctl_SOURCES = \
3843 src/login/loginctl.c \
3844 src/login/sysfs-show.c
3847 libsystemd-bus-internal.la \
3848 libudev-internal.la \
3849 libsystemd-shared.la \
3850 libsystemd-id128-internal.la \
3851 libsystemd-daemon-internal.la
3853 rootbin_PROGRAMS += \
3856 dist_bashcompletion_DATA += \
3857 shell-completion/bash/loginctl
3859 dist_zshcompletion_DATA += \
3860 shell-completion/zsh/_loginctl \
3861 shell-completion/zsh/_systemd-inhibit
3863 systemd_inhibit_SOURCES = \
3866 systemd_inhibit_LDADD = \
3867 libsystemd-bus-internal.la \
3868 libsystemd-id128-internal.la \
3869 libsystemd-daemon-internal.la \
3870 libsystemd-shared.la
3872 rootbin_PROGRAMS += \
3875 test_login_SOURCES = \
3876 src/login/test-login.c
3878 test_login_LDADD = \
3879 libsystemd-login-internal.la \
3880 libsystemd-shared.la
3882 test_login_shared_SOURCES = \
3883 src/login/test-login-shared.c
3885 test_login_shared_LDADD = \
3886 libsystemd-login-internal.la \
3887 libsystemd-shared.la
3889 test_inhibit_SOURCES = \
3890 src/login/test-inhibit.c
3892 test_inhibit_LDADD = \
3893 libsystemd-bus-internal.la \
3894 libsystemd-daemon-internal.la \
3895 libsystemd-id128-internal.la \
3896 libsystemd-shared.la
3898 test_login_tables_SOURCES = \
3899 src/login/test-login-tables.c
3901 test_login_tables_LDADD = \
3902 libsystemd-logind-core.la
3912 libsystemd_login_la_SOURCES = \
3913 src/login/sd-login.c \
3914 src/systemd/sd-login.h \
3915 src/login/login-shared.c \
3916 src/login/login-shared.h
3918 libsystemd_login_la_CFLAGS = \
3922 libsystemd_login_la_LDFLAGS = \
3924 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3925 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3927 libsystemd_login_la_LIBADD = \
3928 libsystemd-daemon-internal.la \
3929 libsystemd-shared.la
3931 libsystemd_login_internal_la_SOURCES = \
3932 $(libsystemd_login_la_SOURCES)
3935 pam_systemd_la_SOURCES = \
3936 src/login/pam-module.c
3938 pam_systemd_la_CFLAGS = \
3943 pam_systemd_la_LDFLAGS = \
3949 -export-symbols-regex '^pam_sm_.*'
3951 pam_systemd_la_LIBADD = \
3952 libsystemd-capability.la \
3953 libsystemd-audit.la \
3954 libsystemd-bus-internal.la \
3955 libsystemd-id128-internal.la \
3956 libsystemd-daemon-internal.la \
3957 libsystemd-shared.la \
3960 pamlib_LTLIBRARIES = \
3963 dist_pamconf_DATA = \
3964 src/login/systemd-user
3967 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3968 libsystemd-login-install-hook:
3969 libname=libsystemd-login.so && $(move-to-rootlibdir)
3971 libsystemd-login-uninstall-hook:
3972 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3974 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3975 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
3977 nodist_systemunit_DATA += \
3978 units/systemd-logind.service \
3979 units/systemd-user-sessions.service
3981 dist_systemunit_DATA += \
3984 dist_dbussystemservice_DATA += \
3985 src/login/org.freedesktop.login1.service
3987 dist_dbuspolicy_DATA += \
3988 src/login/org.freedesktop.login1.conf
3990 dist_pkgsysconf_DATA += \
3991 src/login/logind.conf
3993 pkginclude_HEADERS += \
3994 src/systemd/sd-login.h
3996 lib_LTLIBRARIES += \
3999 noinst_LTLIBRARIES += \
4000 libsystemd-login-internal.la
4002 pkgconfiglib_DATA += \
4003 src/login/libsystemd-login.pc
4005 polkitpolicy_files += \
4006 src/login/org.freedesktop.login1.policy
4011 MULTI_USER_TARGET_WANTS += \
4012 systemd-logind.service \
4013 systemd-user-sessions.service
4015 SYSTEM_UNIT_ALIASES += \
4016 systemd-logind.service dbus-org.freedesktop.login1.service
4018 systemd_multi_seat_x_SOURCES = \
4019 src/login/multi-seat-x.c
4021 systemd_multi_seat_x_LDADD = \
4022 libsystemd-label.la \
4023 libsystemd-shared.la
4025 rootlibexec_PROGRAMS += \
4026 systemd-multi-seat-x
4028 dist_udevrules_DATA += \
4029 src/login/70-uaccess.rules \
4030 src/login/70-power-switch.rules
4032 nodist_udevrules_DATA += \
4033 src/login/71-seat.rules \
4034 src/login/73-seat-late.rules
4037 src/login/logind-gperf.c \
4038 src/login/71-seat.rules \
4039 src/login/73-seat-late.rules
4042 polkitpolicy_in_files += \
4043 src/login/org.freedesktop.login1.policy.in
4046 src/login/logind-gperf.gperf \
4047 src/login/libsystemd-login.pc.in \
4048 src/login/libsystemd-login.sym \
4049 src/login/71-seat.rules.in \
4050 src/login/73-seat-late.rules.in \
4051 units/systemd-logind.service.in \
4052 units/systemd-user-sessions.service.in
4054 # ------------------------------------------------------------------------------
4055 if HAVE_PYTHON_DEVEL
4056 pkgpyexec_LTLIBRARIES = \
4063 _journal_la_SOURCES = \
4064 src/python-systemd/_journal.c
4066 _journal_la_CFLAGS = \
4068 -fvisibility=default \
4069 $(PYTHON_DEVEL_CFLAGS)
4071 _journal_la_LDFLAGS = \
4077 _journal_la_LIBADD = \
4078 $(PYTHON_DEVEL_LIBS) \
4079 libsystemd-journal.la
4081 id128_la_SOURCES = \
4082 src/python-systemd/id128.c \
4083 src/python-systemd/id128-constants.h \
4084 src/python-systemd/pyutil.c \
4085 src/python-systemd/pyutil.h
4089 -fvisibility=default \
4090 $(PYTHON_DEVEL_CFLAGS) \
4091 -I$(top_builddir)/src/python-systemd
4093 id128_la_LDFLAGS = \
4100 $(PYTHON_DEVEL_LIBS) \
4103 _daemon_la_SOURCES = \
4104 src/python-systemd/_daemon.c \
4105 src/python-systemd/pyutil.c \
4106 src/python-systemd/pyutil.h
4108 _daemon_la_CFLAGS = \
4110 -fvisibility=default \
4111 $(PYTHON_DEVEL_CFLAGS) \
4112 -I$(top_builddir)/src/python-systemd
4114 _daemon_la_LDFLAGS = \
4120 _daemon_la_LIBADD = \
4121 $(PYTHON_DEVEL_LIBS) \
4122 libsystemd-daemon.la
4124 _reader_la_SOURCES = \
4125 src/python-systemd/_reader.c \
4126 src/python-systemd/pyutil.c \
4127 src/python-systemd/pyutil.h
4129 _reader_la_CFLAGS = \
4131 -fvisibility=default \
4132 $(PYTHON_DEVEL_CFLAGS)
4134 _reader_la_LDFLAGS = \
4140 _reader_la_LIBADD = \
4141 $(PYTHON_DEVEL_LIBS) \
4142 libsystemd-journal.la \
4143 libsystemd-id128.la \
4144 libsystemd-daemon-internal.la \
4145 libsystemd-shared.la
4147 login_la_SOURCES = \
4148 src/python-systemd/login.c \
4149 src/python-systemd/pyutil.c \
4150 src/python-systemd/pyutil.h
4154 -fvisibility=default \
4155 $(PYTHON_DEVEL_CFLAGS)
4157 login_la_LDFLAGS = \
4164 $(PYTHON_DEVEL_LIBS) \
4165 libsystemd-journal.la \
4166 libsystemd-login.la \
4167 libsystemd-daemon-internal.la \
4168 libsystemd-shared.la
4170 dist_pkgpyexec_PYTHON = \
4171 src/python-systemd/journal.py \
4172 src/python-systemd/daemon.py \
4173 src/python-systemd/__init__.py
4175 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4176 $(AM_V_at)$(MKDIR_P) $(dir $@)
4177 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4180 src/python-systemd/id128-constants.h
4182 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4184 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4185 $(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/
4186 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4189 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4190 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4193 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4194 $(MAKE) DESTDIR="$$dir" install && \
4195 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4200 CLEAN_LOCAL_HOOKS += clean-sphinx
4203 -rm -rf docs/html/python-systemd/
4205 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4207 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4208 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4210 # ------------------------------------------------------------------------------
4212 '|rootlibexecdir=$(rootlibexecdir)|' \
4213 '|rootbindir=$(rootbindir)|' \
4214 '|bindir=$(bindir)|' \
4215 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4216 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4217 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4218 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4219 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4220 '|pkgdatadir=$(pkgdatadir)|' \
4221 '|systemunitdir=$(systemunitdir)|' \
4222 '|userunitdir=$(userunitdir)|' \
4223 '|systempresetdir=$(systempresetdir)|' \
4224 '|userpresetdir=$(userpresetdir)|' \
4225 '|udevhwdbdir=$(udevhwdbdir)|' \
4226 '|udevrulesdir=$(udevrulesdir)|' \
4227 '|catalogdir=$(catalogdir)|' \
4228 '|tmpfilesdir=$(tmpfilesdir)|' \
4229 '|sysctldir=$(sysctldir)|' \
4230 '|systemgeneratordir=$(systemgeneratordir)|' \
4231 '|usergeneratordir=$(usergeneratordir)|' \
4232 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4233 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4234 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4235 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4236 '|prefix=$(prefix)|' \
4237 '|exec_prefix=$(exec_prefix)|' \
4238 '|libdir=$(libdir)|' \
4239 '|includedir=$(includedir)|' \
4240 '|VERSION=$(VERSION)|' \
4241 '|rootprefix=$(rootprefix)|' \
4242 '|udevlibexecdir=$(udevlibexecdir)|' \
4243 '|SUSHELL=$(SUSHELL)|' \
4244 '|DEBUGTTY=$(DEBUGTTY)|' \
4247 '|MKDIR_P=$(MKDIR_P)|' \
4248 '|QUOTAON=$(QUOTAON)|' \
4249 '|QUOTACHECK=$(QUOTACHECK)|' \
4250 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4251 '|VARLOGDIR=$(varlogdir)|' \
4252 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4253 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4254 '|PYTHON=$(PYTHON)|' \
4255 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4258 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4259 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4262 units/%: units/%.in Makefile
4265 man/%: man/%.in Makefile
4268 sysctl.d/%: sysctl.d/%.in Makefile
4271 %.pc: %.pc.in Makefile
4274 src/core/macros.%: src/core/macros.%.in Makefile
4277 src/%.policy.in: src/%.policy.in.in Makefile
4280 %.rules: %.rules.in Makefile
4283 %.sh: %.sh.in Makefile
4285 $(AM_V_GEN)chmod +x $@
4287 src/%.c: src/%.gperf
4288 $(AM_V_at)$(MKDIR_P) $(dir $@)
4289 $(AM_V_GPERF)$(GPERF) < $< > $@
4292 $(AM_V_at)$(MKDIR_P) $(dir $@)
4293 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4295 units/%: units/%.m4 Makefile
4296 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4297 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4299 units/user/%: units/%.m4 Makefile
4300 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4301 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4304 nodist_polkitpolicy_DATA = \
4305 $(polkitpolicy_files) \
4306 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4310 $(polkitpolicy_in_files) \
4311 $(polkitpolicy_in_in_files)
4314 $(nodist_systemunit_DATA) \
4315 $(nodist_userunit_DATA) \
4316 $(pkgconfigdata_DATA) \
4317 $(pkgconfiglib_DATA) \
4318 $(nodist_polkitpolicy_DATA)
4320 # ------------------------------------------------------------------------------
4322 man/custom-entities.ent: Makefile
4323 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4324 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4325 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4329 man/custom-entities.ent
4333 --stringparam man.output.quietly 1 \
4334 --stringparam funcsynopsis.style ansi \
4335 --stringparam man.authors.section.enabled 0 \
4336 --stringparam man.copyright.section.enabled 0 \
4337 --stringparam systemd.version $(VERSION) \
4338 --path '$(builddir)/man:$(srcdir)/man'
4340 XSLTPROC_PROCESS_MAN = \
4341 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4343 XSLTPROC_PROCESS_HTML = \
4344 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4346 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4347 $(XSLTPROC_PROCESS_MAN)
4349 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4350 $(XSLTPROC_PROCESS_MAN)
4352 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4353 $(XSLTPROC_PROCESS_MAN)
4355 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4356 $(XSLTPROC_PROCESS_MAN)
4358 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4359 $(XSLTPROC_PROCESS_MAN)
4361 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4362 $(XSLTPROC_PROCESS_HTML)
4365 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4371 man/custom-html.xsl \
4374 # ------------------------------------------------------------------------------
4377 docs/sysvinit/README
4382 docs/sysvinit/README: docs/sysvinit/README.in
4385 docs/var-log/README: docs/var-log/README.in
4389 docs/sysvinit/README \
4394 docs/sysvinit/README.in \
4395 docs/var-log/README.in
4397 SOCKETS_TARGET_WANTS += \
4398 systemd-initctl.socket \
4399 systemd-shutdownd.socket
4402 RUNLEVEL1_TARGET_WANTS += \
4403 systemd-update-utmp-runlevel.service
4404 RUNLEVEL2_TARGET_WANTS += \
4405 systemd-update-utmp-runlevel.service
4406 RUNLEVEL3_TARGET_WANTS += \
4407 systemd-update-utmp-runlevel.service
4408 RUNLEVEL4_TARGET_WANTS += \
4409 systemd-update-utmp-runlevel.service
4410 RUNLEVEL5_TARGET_WANTS += \
4411 systemd-update-utmp-runlevel.service
4413 SYSINIT_TARGET_WANTS += \
4414 systemd-update-utmp.service
4415 LOCAL_FS_TARGET_WANTS += \
4416 systemd-remount-fs.service \
4418 MULTI_USER_TARGET_WANTS += \
4420 systemd-ask-password-wall.path
4421 SYSINIT_TARGET_WANTS += \
4422 dev-hugepages.mount \
4424 sys-kernel-config.mount \
4425 sys-kernel-debug.mount \
4426 sys-fs-fuse-connections.mount \
4427 systemd-sysctl.service \
4428 systemd-ask-password-console.path
4431 SYSTEM_UNIT_ALIASES += \
4432 poweroff.target runlevel0.target \
4433 rescue.target runlevel1.target \
4434 multi-user.target runlevel2.target \
4435 multi-user.target runlevel3.target \
4436 multi-user.target runlevel4.target \
4437 graphical.target runlevel5.target \
4438 reboot.target runlevel6.target
4441 SYSTEM_UNIT_ALIASES += \
4442 graphical.target default.target \
4443 reboot.target ctrl-alt-del.target \
4444 getty@.service autovt@.service
4446 USER_UNIT_ALIASES += \
4447 $(systemunitdir)/shutdown.target shutdown.target \
4448 $(systemunitdir)/sockets.target sockets.target \
4449 $(systemunitdir)/timers.target timers.target \
4450 $(systemunitdir)/paths.target paths.target \
4451 $(systemunitdir)/bluetooth.target bluetooth.target \
4452 $(systemunitdir)/printer.target printer.target \
4453 $(systemunitdir)/sound.target sound.target \
4454 $(systemunitdir)/smartcard.target smartcard.target
4456 GENERAL_ALIASES += \
4457 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4458 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4459 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4460 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4464 $(systemunitdir)/runlevel1.target.wants \
4465 $(systemunitdir)/runlevel2.target.wants \
4466 $(systemunitdir)/runlevel3.target.wants \
4467 $(systemunitdir)/runlevel4.target.wants \
4468 $(systemunitdir)/runlevel5.target.wants
4472 $(prefix)/lib/modules-load.d \
4473 $(sysconfdir)/modules-load.d \
4474 $(prefix)/lib/systemd/network \
4475 $(sysconfdir)/systemd/network \
4476 $(prefix)/lib/sysctl.d \
4477 $(sysconfdir)/sysctl.d \
4478 $(prefix)/lib/kernel/install.d \
4479 $(sysconfdir)/kernel/install.d \
4480 $(systemshutdowndir) \
4482 $(systemgeneratordir) \
4483 $(usergeneratordir) \
4486 $(pkgsysconfdir)/system \
4487 $(pkgsysconfdir)/system/multi-user.target.wants \
4488 $(pkgsysconfdir)/system/getty.target.wants \
4489 $(pkgsysconfdir)/user \
4490 $(dbussessionservicedir) \
4491 $(sysconfdir)/xdg/systemd
4493 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4495 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4497 install-data-hook: $(INSTALL_DATA_HOOKS)
4499 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4501 clean-local: $(CLEAN_LOCAL_HOOKS)
4502 rm -rf $(abs_srcdir)/install-tree
4503 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4504 $(abs_srcdir)/hwdb/iab.txt
4506 DISTCHECK_CONFIGURE_FLAGS = \
4507 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4508 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4509 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4510 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4511 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4512 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4513 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4514 --with-rootprefix=$$dc_install_base \
4518 DISTCHECK_CONFIGURE_FLAGS += \
4519 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4520 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4522 DISTCHECK_CONFIGURE_FLAGS += \
4523 --with-sysvinit-path= \
4524 --with-sysvrcnd-path=
4528 DISTCHECK_CONFIGURE_FLAGS += \
4533 ( cd $(top_srcdir)/hwdb && \
4534 wget -N http://www.linux-usb.org/usb.ids \
4535 http://pci-ids.ucw.cz/v2.2/pci.ids \
4536 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4537 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4541 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4542 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4544 upload: all distcheck
4545 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4546 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4547 scp man/*.html tango:public/systemd-man/
4549 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4550 doc-sync: all destdir-sphinx
4551 gtkdoc-rebase --html-dir=docs/libudev/html --online
4552 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4553 gtkdoc-rebase --html-dir=docs/gudev/html --online
4554 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4555 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4556 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4559 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4562 rm -rf $(abs_srcdir)/install-tree
4563 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4564 tree $(abs_srcdir)/install-tree
4566 # Let's run all tests of the test suite, but under valgrind. Let's
4567 # exclude the one perl script we have in there
4568 valgrind-tests: $(TESTS)
4569 for f in $(TESTS) ; do \
4570 [ "$$f" == "$${f/.pl/}" ] && libtool --mode=execute valgrind --leak-check=full --error-exitcode=55 $(builddir)/$$f ; \
4573 check-api-docs: $(lib_LTLIBRARIES) man
4574 for symbol in `for f in $(lib_LTLIBRARIES) ; do nm -g --defined-only $(builddir)/.libs/"$${f/.la/.so}" 2>&1 /dev/null | grep " T " | cut -d" " -f3 ; done` ; do \
4575 if test -f $(builddir)/man/$$symbol.html ; then \
4576 echo " Symbol $$symbol() is documented." ; \
4578 echo "‣ Symbol $$symbol() lacks documentation." ; \