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=2
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=27
56 LIBSYSTEMD_ID128_AGE=0
58 LIBSYSTEMD_JOURNAL_CURRENT=11
59 LIBSYSTEMD_JOURNAL_REVISION=3
60 LIBSYSTEMD_JOURNAL_AGE=11
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 =
148 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
149 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
150 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
153 -include $(top_builddir)/config.h \
154 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
155 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
156 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
157 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
158 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
159 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
160 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
161 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
162 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
163 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
164 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
165 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
166 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
167 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
168 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
169 -DROOTPREFIX=\"$(rootprefix)\" \
170 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
171 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
172 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
173 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
174 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
175 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
176 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
177 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
178 -DX_SERVER=\"$(bindir)/X\" \
179 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
180 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
181 -DQUOTACHECK=\"$(QUOTACHECK)\" \
182 -DKEXEC=\"$(KEXEC)\" \
183 -I $(top_srcdir)/src \
184 -I $(top_builddir)/src/shared \
185 -I $(top_srcdir)/src/shared \
186 -I $(top_srcdir)/src/network \
187 -I $(top_srcdir)/src/login \
188 -I $(top_srcdir)/src/journal \
189 -I $(top_srcdir)/src/systemd \
190 -I $(top_builddir)/src/core \
191 -I $(top_srcdir)/src/core \
192 -I $(top_srcdir)/src/libudev \
193 -I $(top_srcdir)/src/udev \
194 -I $(top_srcdir)/src/udev/net \
195 -I $(top_builddir)/src/udev \
196 -I $(top_srcdir)/src/libsystemd/sd-bus \
197 -I $(top_srcdir)/src/libsystemd/sd-event \
198 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
201 AM_CFLAGS = $(OUR_CFLAGS)
202 AM_LDFLAGS = $(OUR_LDFLAGS)
204 # ------------------------------------------------------------------------------
205 define move-to-rootlibdir
206 if test "$(libdir)" != "$(rootlibdir)"; then \
207 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
208 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
209 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
210 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
211 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
217 RUNLEVEL1_TARGET_WANTS =
218 RUNLEVEL2_TARGET_WANTS =
219 RUNLEVEL3_TARGET_WANTS =
220 RUNLEVEL4_TARGET_WANTS =
221 RUNLEVEL5_TARGET_WANTS =
222 SHUTDOWN_TARGET_WANTS =
223 LOCAL_FS_TARGET_WANTS =
224 MULTI_USER_TARGET_WANTS =
225 SYSINIT_TARGET_WANTS =
226 SOCKETS_TARGET_WANTS =
227 BUSNAMES_TARGET_WANTS =
228 TIMERS_TARGET_WANTS =
229 USER_SOCKETS_TARGET_WANTS =
230 USER_BUSNAMES_TARGET_WANTS =
232 SYSTEM_UNIT_ALIASES =
237 install-target-wants-hook:
238 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
239 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
240 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
241 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
242 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
243 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
244 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
245 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
246 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
247 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
248 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
249 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
252 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
255 [ -z "$$what" ] || ( \
256 dir=$(DESTDIR)$$dir/$$wants.wants && \
257 $(MKDIR_P) -m 0755 $$dir && \
260 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
263 install-directories-hook:
264 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
266 install-aliases-hook:
267 set -- $(SYSTEM_UNIT_ALIASES) && \
268 dir=$(systemunitdir) && $(install-aliases)
269 set -- $(USER_UNIT_ALIASES) && \
270 dir=$(userunitdir) && $(install-aliases)
271 set -- $(GENERAL_ALIASES) && \
272 dir= && $(install-aliases)
274 define install-aliases
275 while [ -n "$$1" ]; do \
276 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
277 rm -f $(DESTDIR)$$dir/$$2 && \
278 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
279 shift 2 || exit $$?; \
283 INSTALL_EXEC_HOOKS += \
284 install-target-wants-hook \
285 install-directories-hook \
288 # ------------------------------------------------------------------------------
289 AM_V_M4 = $(AM_V_M4_$(V))
290 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
291 AM_V_M4_0 = @echo " M4 " $@;
293 AM_V_XSLT = $(AM_V_XSLT_$(V))
294 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
295 AM_V_XSLT_0 = @echo " XSLT " $@;
297 AM_V_GPERF = $(AM_V_GPERF_$(V))
298 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
299 AM_V_GPERF_0 = @echo " GPERF " $@;
301 AM_V_LN = $(AM_V_LN_$(V))
302 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
303 AM_V_LN_0 = @echo " LN " $@;
305 # ------------------------------------------------------------------------------
309 systemd-ask-password \
310 systemd-tty-ask-password-agent \
311 systemd-machine-id-setup
317 systemd-detect-virt \
323 src/kernel-install/kernel-install
325 dist_kernelinstall_SCRIPTS = \
326 src/kernel-install/50-depmod.install \
327 src/kernel-install/90-loaderentry.install
329 rootlibexec_PROGRAMS = \
331 systemd-cgroups-agent \
333 systemd-update-utmp \
337 systemd-reply-password \
343 systemd-socket-proxyd
345 systemgenerator_PROGRAMS = \
346 systemd-getty-generator \
347 systemd-fstab-generator \
348 systemd-system-update-generator
350 dist_bashcompletion_DATA = \
351 shell-completion/bash/journalctl \
352 shell-completion/bash/systemctl \
353 shell-completion/bash/systemd-analyze \
354 shell-completion/bash/systemd-run \
355 shell-completion/bash/udevadm \
356 shell-completion/bash/kernel-install
358 dist_zshcompletion_DATA = \
359 shell-completion/zsh/_systemctl \
360 shell-completion/zsh/_journalctl \
361 shell-completion/zsh/_udevadm \
362 shell-completion/zsh/_kernel-install \
363 shell-completion/zsh/_systemd-nspawn \
364 shell-completion/zsh/_systemd-analyze \
365 shell-completion/zsh/_systemd-run \
366 shell-completion/zsh/_sd_hosts_or_user_at_host \
367 shell-completion/zsh/_systemd-delta \
368 shell-completion/zsh/_systemd
371 sysctl.d/50-default.conf
373 dist_systemunit_DATA = \
374 units/graphical.target \
375 units/multi-user.target \
376 units/emergency.service \
377 units/emergency.target \
378 units/sysinit.target \
383 units/local-fs.target \
384 units/local-fs-pre.target \
385 units/initrd.target \
386 units/initrd-fs.target \
387 units/initrd-root-fs.target \
388 units/remote-fs.target \
389 units/remote-fs-pre.target \
390 units/network.target \
391 units/network-online.target \
392 units/nss-lookup.target \
393 units/nss-user-lookup.target \
394 units/hibernate.target \
395 units/hybrid-sleep.target \
396 units/poweroff.target \
397 units/reboot.target \
398 units/rescue.target \
399 units/rpcbind.target \
400 units/time-sync.target \
401 units/shutdown.target \
403 units/umount.target \
404 units/sigpwr.target \
406 units/sockets.target \
407 units/busnames.target \
408 units/timers.target \
410 units/suspend.target \
412 units/slices.target \
415 units/systemd-initctl.socket \
416 units/systemd-shutdownd.socket \
417 units/syslog.socket \
418 units/dev-hugepages.mount \
419 units/dev-mqueue.mount \
420 units/sys-kernel-config.mount \
421 units/sys-kernel-debug.mount \
422 units/sys-fs-fuse-connections.mount \
424 units/printer.target \
426 units/bluetooth.target \
427 units/smartcard.target \
428 units/systemd-ask-password-wall.path \
429 units/systemd-ask-password-console.path \
430 units/systemd-udevd-control.socket \
431 units/systemd-udevd-kernel.socket \
432 units/system-update.target \
433 units/initrd-switch-root.target
435 nodist_systemunit_DATA = \
436 units/getty@.service \
437 units/serial-getty@.service \
438 units/console-shell.service \
439 units/console-getty.service \
440 units/container-getty@.service \
441 units/systemd-initctl.service \
442 units/systemd-shutdownd.service \
443 units/systemd-remount-fs.service \
444 units/systemd-update-utmp.service \
445 units/systemd-update-utmp-runlevel.service \
446 units/systemd-ask-password-wall.service \
447 units/systemd-ask-password-console.service \
448 units/systemd-sysctl.service \
449 units/emergency.service \
450 units/rescue.service \
451 units/user@.service \
452 units/systemd-hibernate.service \
453 units/systemd-hybrid-sleep.service \
454 units/systemd-suspend.service \
455 units/systemd-halt.service \
456 units/systemd-poweroff.service \
457 units/systemd-reboot.service \
458 units/systemd-kexec.service \
459 units/systemd-fsck@.service \
460 units/systemd-fsck-root.service \
461 units/systemd-udevd.service \
462 units/systemd-udev-trigger.service \
463 units/systemd-udev-settle.service \
464 units/debug-shell.service \
465 units/initrd-parse-etc.service \
466 units/initrd-cleanup.service \
467 units/initrd-udevadm-cleanup-db.service \
468 units/initrd-switch-root.service \
469 units/systemd-nspawn@.service
471 dist_userunit_DATA = \
472 units/user/basic.target \
473 units/user/default.target \
474 units/user/exit.target
476 nodist_userunit_DATA = \
477 units/user/systemd-exit.service
480 units/getty@.service.m4 \
481 units/serial-getty@.service.m4 \
482 units/console-shell.service.m4.in \
483 units/console-getty.service.m4.in \
484 units/container-getty@.service.m4.in \
485 units/rescue.service.m4.in \
486 units/systemd-initctl.service.in \
487 units/systemd-shutdownd.service.in \
488 units/systemd-remount-fs.service.in \
489 units/systemd-update-utmp.service.in \
490 units/systemd-update-utmp-runlevel.service.in \
491 units/systemd-ask-password-wall.service.in \
492 units/systemd-ask-password-console.service.in \
493 units/systemd-sysctl.service.in \
494 units/emergency.service.in \
495 units/systemd-halt.service.in \
496 units/systemd-poweroff.service.in \
497 units/systemd-reboot.service.in \
498 units/systemd-kexec.service.in \
499 units/user/systemd-exit.service.in \
500 units/systemd-fsck@.service.in \
501 units/systemd-fsck-root.service.in \
502 units/user@.service.in \
503 units/systemd-udevd.service \
504 units/systemd-udev-trigger.service \
505 units/systemd-udev-settle.service \
506 units/debug-shell.service.in \
507 units/systemd-hibernate.service.in \
508 units/systemd-hybrid-sleep.service.in \
509 units/systemd-suspend.service.in \
510 units/quotaon.service.in \
511 units/initrd-parse-etc.service.in \
512 units/initrd-cleanup.service.in \
513 units/initrd-udevadm-cleanup-db.service.in \
514 units/initrd-switch-root.service.in \
515 units/systemd-nspawn@.service.in
518 units/console-shell.service.m4 \
519 units/console-getty.service.m4 \
520 units/container-getty@.service.m4 \
521 units/rescue.service.m4 \
522 units/user@.service.m4
525 nodist_systemunit_DATA += \
526 units/rc-local.service \
527 units/halt-local.service
529 systemgenerator_PROGRAMS += \
530 systemd-rc-local-generator
534 units/rc-local.service.in \
535 units/halt-local.service.in
537 # automake is broken and can't handle files with a dash in front
538 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
540 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
542 units-uninstall-hook:
543 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
545 INSTALL_DATA_HOOKS += units-install-hook
546 UNINSTALL_DATA_HOOKS += units-uninstall-hook
556 @INTLTOOL_POLICY_RULE@
558 # ------------------------------------------------------------------------------
563 include Makefile-man.am
565 .PHONY: man update-man-list
566 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
569 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
571 ${XML_FILES:.xml=.html}
573 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
590 $(AM_V_at)$(MKDIR_P) $(dir $@)
591 $(AM_V_LN)$(LN_S) -f ../../man $@
600 man/index.html: man/systemd.index.html
601 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
609 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
610 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
611 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
613 update-man-list: make-man-rules.py $(XML_GLOB)
614 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
615 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
616 @echo "Makefile-man.am has been regenerated"
618 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
619 $(AM_V_at)$(MKDIR_P) $(dir $@)
620 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
622 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
623 $(AM_V_at)$(MKDIR_P) $(dir $@)
624 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
627 man/systemd.index.xml \
629 man/systemd.directives.xml
632 man/systemd.index.xml \
633 man/systemd.directives.xml
645 make-directive-index.py \
648 # ------------------------------------------------------------------------------
649 noinst_LTLIBRARIES += \
652 libsystemd_shared_la_SOURCES = \
653 src/shared/linux/auto_dev-ioctl.h \
654 src/shared/linux/fanotify.h \
655 src/shared/linux/seccomp.h \
656 src/shared/linux/seccomp-bpf.h \
657 src/shared/ioprio.h \
658 src/shared/missing.h \
659 src/shared/initreq.h \
660 src/shared/securebits.h \
661 src/shared/special.h \
665 src/shared/sparse-endian.h \
666 src/shared/refcnt.h \
667 src/shared/udev-util.h \
668 src/shared/bus-errors.h \
669 src/shared/device-nodes.c \
670 src/shared/device-nodes.h \
675 src/shared/efivars.c \
676 src/shared/efivars.h \
677 src/shared/path-util.c \
678 src/shared/path-util.h \
679 src/shared/time-util.c \
680 src/shared/time-util.h \
681 src/shared/hashmap.c \
682 src/shared/hashmap.h \
683 src/shared/siphash24.c \
684 src/shared/siphash24.h \
691 src/shared/sleep-config.c \
692 src/shared/sleep-config.h \
695 src/shared/env-util.c \
696 src/shared/env-util.h \
697 src/shared/strbuf.c \
698 src/shared/strbuf.h \
699 src/shared/strxcpyx.c \
700 src/shared/strxcpyx.h \
701 src/shared/conf-parser.c \
702 src/shared/conf-parser.h \
705 src/shared/ratelimit.h \
706 src/shared/ratelimit.c \
707 src/shared/exit-status.c \
708 src/shared/exit-status.h \
711 src/shared/gunicode.c \
712 src/shared/gunicode.h \
715 src/shared/socket-util.c \
716 src/shared/socket-util.h \
717 src/shared/conf-files.c \
718 src/shared/conf-files.h \
719 src/shared/cgroup-util.c \
720 src/shared/cgroup-util.h \
721 src/shared/cgroup-show.c \
722 src/shared/cgroup-show.h \
723 src/shared/unit-name.c \
724 src/shared/unit-name.h \
725 src/shared/utmp-wtmp.c \
726 src/shared/utmp-wtmp.h \
727 src/shared/watchdog.c \
728 src/shared/watchdog.h \
729 src/shared/spawn-ask-password-agent.c \
730 src/shared/spawn-ask-password-agent.h \
731 src/shared/replace-var.c \
732 src/shared/replace-var.h \
733 src/shared/spawn-polkit-agent.c \
734 src/shared/spawn-polkit-agent.h \
735 src/shared/hwclock.c \
736 src/shared/hwclock.h \
737 src/shared/time-dst.c \
738 src/shared/time-dst.h \
739 src/shared/calendarspec.c \
740 src/shared/calendarspec.h \
741 src/shared/fileio.c \
742 src/shared/fileio.h \
743 src/shared/output-mode.h \
744 src/shared/MurmurHash2.c \
745 src/shared/MurmurHash2.h \
746 src/shared/acpi-fpdt.h \
747 src/shared/acpi-fpdt.c \
748 src/shared/boot-timestamps.h \
749 src/shared/boot-timestamps.c \
752 src/shared/smack-util.c \
753 src/shared/smack-util.h \
754 src/shared/apparmor-util.c \
755 src/shared/apparmor-util.h \
756 src/shared/ima-util.c \
757 src/shared/ima-util.h \
758 src/shared/ptyfwd.c \
759 src/shared/ptyfwd.h \
760 src/shared/net-util.c \
761 src/shared/net-util.h \
762 src/shared/errno-list.c \
763 src/shared/errno-list.h \
764 src/shared/syscall-list.c \
765 src/shared/syscall-list.h \
771 nodist_libsystemd_shared_la_SOURCES = \
772 src/shared/errno-from-name.h \
773 src/shared/errno-to-name.h \
774 src/shared/syscall-from-name.h \
775 src/shared/syscall-to-name.h
777 # ------------------------------------------------------------------------------
778 noinst_LTLIBRARIES += \
781 libsystemd_units_la_SOURCES = \
782 src/shared/install.c \
783 src/shared/install.h \
784 src/shared/install-printf.c \
785 src/shared/install-printf.h \
786 src/shared/path-lookup.c \
787 src/shared/path-lookup.h \
788 src/shared/specifier.c \
789 src/shared/specifier.h
791 # ------------------------------------------------------------------------------
792 noinst_LTLIBRARIES += \
795 libsystemd_label_la_SOURCES = \
796 src/shared/socket-label.c \
799 src/shared/selinux-util.c \
800 src/shared/selinux-util.h \
801 src/shared/mkdir-label.c \
802 src/shared/ask-password-api.c \
803 src/shared/ask-password-api.h \
804 src/shared/fileio-label.c \
805 src/shared/fileio-label.h \
806 src/shared/dev-setup.c \
807 src/shared/dev-setup.h
809 libsystemd_label_la_CFLAGS = \
813 libsystemd_label_la_LIBADD = \
816 # ------------------------------------------------------------------------------
817 noinst_LTLIBRARIES += \
820 libsystemd_logs_la_SOURCES = \
821 src/shared/logs-show.c \
822 src/shared/logs-show.h
824 # ------------------------------------------------------------------------------
825 noinst_LTLIBRARIES += \
826 libsystemd-capability.la
828 libsystemd_capability_la_SOURCES = \
829 src/shared/capability.c \
830 src/shared/capability.h
832 libsystemd_capability_la_CFLAGS = \
836 libsystemd_capability_la_LIBADD = \
839 # ------------------------------------------------------------------------------
841 noinst_LTLIBRARIES += \
844 libsystemd_acl_la_SOURCES = \
845 src/shared/acl-util.c \
846 src/shared/acl-util.h
848 libsystemd_acl_la_CFLAGS = \
852 libsystemd_acl_la_LIBADD = \
856 # ------------------------------------------------------------------------------
857 noinst_LTLIBRARIES += \
860 libsystemd_core_la_SOURCES = \
863 src/core/unit-printf.c \
864 src/core/unit-printf.h \
869 src/core/transaction.c \
870 src/core/transaction.h \
871 src/core/load-fragment.c \
872 src/core/load-fragment.h \
881 src/core/snapshot.c \
882 src/core/snapshot.h \
887 src/core/automount.c \
888 src/core/automount.h \
899 src/core/load-dropin.c \
900 src/core/load-dropin.h \
907 src/core/dbus-manager.c \
908 src/core/dbus-manager.h \
909 src/core/dbus-unit.c \
910 src/core/dbus-unit.h \
911 src/core/dbus-job.c \
912 src/core/dbus-job.h \
913 src/core/dbus-service.c \
914 src/core/dbus-service.h \
915 src/core/dbus-socket.c \
916 src/core/dbus-socket.h \
917 src/core/dbus-busname.c \
918 src/core/dbus-busname.h \
919 src/core/dbus-target.c \
920 src/core/dbus-target.h \
921 src/core/dbus-snapshot.c \
922 src/core/dbus-snapshot.h \
923 src/core/dbus-device.c \
924 src/core/dbus-device.h \
925 src/core/dbus-mount.c \
926 src/core/dbus-mount.h \
927 src/core/dbus-automount.c \
928 src/core/dbus-automount.h \
929 src/core/dbus-swap.c \
930 src/core/dbus-swap.h \
931 src/core/dbus-timer.c \
932 src/core/dbus-timer.h \
933 src/core/dbus-path.c \
934 src/core/dbus-path.h \
935 src/core/dbus-slice.c \
936 src/core/dbus-slice.h \
937 src/core/dbus-scope.c \
938 src/core/dbus-scope.h \
939 src/core/dbus-execute.c \
940 src/core/dbus-execute.h \
941 src/core/dbus-kill.c \
942 src/core/dbus-kill.h \
943 src/core/dbus-cgroup.c \
944 src/core/dbus-cgroup.h \
945 src/core/dbus-client-track.c \
946 src/core/dbus-client-track.h \
949 src/core/selinux-access.c \
950 src/core/selinux-access.h \
951 src/core/selinux-setup.c \
952 src/core/selinux-setup.h \
953 src/core/smack-setup.c \
954 src/core/smack-setup.h \
955 src/core/ima-setup.c \
956 src/core/ima-setup.h \
957 src/core/locale-setup.h \
958 src/core/locale-setup.c \
959 src/core/hostname-setup.c \
960 src/core/hostname-setup.h \
961 src/core/machine-id-setup.c \
962 src/core/machine-id-setup.h \
963 src/core/mount-setup.c \
964 src/core/mount-setup.h \
965 src/core/loopback-setup.h \
966 src/core/loopback-setup.c \
967 src/core/condition.c \
968 src/core/condition.h \
969 src/core/namespace.c \
970 src/core/namespace.h \
974 src/core/sysfs-show.h \
975 src/core/switch-root.h \
976 src/core/switch-root.c \
979 src/core/audit-fd.c \
980 src/core/audit-fd.h \
985 libsystemd_core_la_SOURCES += \
986 src/core/kmod-setup.c \
987 src/core/kmod-setup.h
990 nodist_libsystemd_core_la_SOURCES = \
991 src/core/load-fragment-gperf.c \
992 src/core/load-fragment-gperf-nulstr.c
994 libsystemd_core_la_CFLAGS = \
1002 libsystemd_core_la_LIBADD = \
1003 libsystemd-capability.la \
1004 libsystemd-units.la \
1005 libsystemd-label.la \
1006 libsystemd-daemon-internal.la \
1007 libudev-internal.la \
1008 libsystemd-shared.la \
1009 libsystemd-internal.la \
1016 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1017 $(AM_V_at)$(MKDIR_P) $(dir $@)
1018 $(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 ";" }' < $< > $@
1021 src/core/load-fragment-gperf.gperf.m4
1024 src/core/load-fragment-gperf.gperf \
1025 src/core/load-fragment-gperf.c \
1026 src/core/load-fragment-gperf-nulstr.c \
1027 src/shared/syscall-list.txt \
1028 src/shared/syscall-from-name.gperf \
1029 src/shared/errno-list.txt \
1030 src/shared/errno-from-name.gperf
1033 src/shared/syscall-from-name.h \
1034 src/shared/syscall-to-name.h \
1035 src/shared/errno-from-name.h \
1036 src/shared/errno-to-name.h
1038 src/shared/syscall-list.txt:
1039 $(AM_V_at)$(MKDIR_P) $(dir $@)
1040 $(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; }' > $@
1042 src/shared/syscall-from-name.gperf: src/shared/syscall-list.txt
1043 $(AM_V_at)$(MKDIR_P) $(dir $@)
1044 $(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 }' < $< > $@
1046 src/shared/syscall-from-name.h: src/shared/syscall-from-name.gperf
1047 $(AM_V_at)$(MKDIR_P) $(dir $@)
1048 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1050 src/shared/syscall-to-name.h: src/shared/syscall-list.txt
1051 $(AM_V_at)$(MKDIR_P) $(dir $@)
1052 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1054 src/shared/errno-list.txt:
1055 $(AM_V_at)$(MKDIR_P) $(dir $@)
1056 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+[0-9]/ { print $$2; }' > $@
1058 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1059 $(AM_V_at)$(MKDIR_P) $(dir $@)
1060 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1062 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1063 $(AM_V_at)$(MKDIR_P) $(dir $@)
1064 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1066 src/shared/errno-to-name.h: src/shared/errno-list.txt
1067 $(AM_V_at)$(MKDIR_P) $(dir $@)
1068 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1070 # ------------------------------------------------------------------------------
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 # ------------------------------------------------------------------------------
1136 test-strip-tab-ansi \
1149 test/sched_idle_bad.service \
1150 test/sched_idle_ok.service \
1151 test/sched_rr_bad.service \
1152 test/sched_rr_ok.service \
1153 test/sched_rr_change.service \
1155 test/daughter.service \
1159 src/test/test-helper.h
1161 test_device_nodes_SOURCES = \
1162 src/test/test-device-nodes.c
1164 test_device_nodes_LDADD = \
1165 libsystemd-shared.la
1167 test_engine_SOURCES = \
1168 src/test/test-engine.c
1170 test_engine_LDADD = \
1171 libsystemd-core.la \
1174 test_job_type_SOURCES = \
1175 src/test/test-job-type.c
1177 test_job_type_LDADD = \
1178 libsystemd-core.la \
1187 test_loopback_SOURCES = \
1188 src/test/test-loopback.c
1190 test_loopback_LDADD = \
1193 test_hostname_SOURCES = \
1194 src/test/test-hostname.c
1196 test_hostname_LDADD = \
1203 test_boot_timestamp_SOURCES = \
1204 src/test/test-boot-timestamps.c
1206 test_boot_timestamp_LDADD = \
1207 libsystemd-shared.la
1210 test_unit_name_SOURCES = \
1211 src/test/test-unit-name.c
1213 test_unit_name_LDADD = \
1214 libsystemd-core.la \
1217 test_unit_file_SOURCES = \
1218 src/test/test-unit-file.c
1220 test_unit_file_LDADD = \
1221 libsystemd-core.la \
1224 test_utf8_SOURCES = \
1225 src/test/test-utf8.c
1228 libsystemd-shared.la
1230 test_util_SOURCES = \
1231 src/test/test-util.c
1236 test_tmpfiles_SOURCES = \
1237 src/test/test-tmpfiles.c
1239 test_tmpfiles_LDADD = \
1240 libsystemd-shared.la
1242 test_namespace_SOURCES = \
1243 src/test/test-namespace.c
1245 test_namespace_LDADD = \
1248 test_hashmap_SOURCES = \
1249 src/test/test-hashmap.c
1251 test_hashmap_LDADD = \
1254 test_xml_SOURCES = \
1258 libsystemd-shared.la
1260 test_list_SOURCES = \
1261 src/test/test-list.c
1266 test_tables_SOURCES = \
1267 src/test/test-tables.c \
1268 src/shared/test-tables.h
1270 test_tables_LDADD = \
1271 libsystemd-logs.la \
1272 libsystemd-journal-internal.la \
1273 libsystemd-core.la \
1276 test_prioq_SOURCES = \
1277 src/test/test-prioq.c
1279 test_prioq_LDADD = \
1282 test_fileio_SOURCES = \
1283 src/test/test-fileio.c
1285 test_fileio_LDADD = \
1288 test_time_SOURCES = \
1289 src/test/test-time.c
1294 test_log_SOURCES = \
1300 test_ellipsize_SOURCES = \
1301 src/test/test-ellipsize.c
1303 test_ellipsize_LDADD = \
1306 test_date_SOURCES = \
1307 src/test/test-date.c
1312 test_sleep_SOURCES = \
1313 src/test/test-sleep.c
1315 test_sleep_LDADD = \
1318 test_replace_var_SOURCES = \
1319 src/test/test-replace-var.c
1321 test_replace_var_LDADD = \
1322 libsystemd-shared.la
1324 test_calendarspec_SOURCES = \
1325 src/test/test-calendarspec.c
1327 test_calendarspec_LDADD = \
1328 libsystemd-shared.la
1330 test_strip_tab_ansi_SOURCES = \
1331 src/test/test-strip-tab-ansi.c
1333 test_strip_tab_ansi_LDADD = \
1334 libsystemd-shared.la
1336 test_daemon_SOURCES = \
1337 src/test/test-daemon.c
1339 test_daemon_LDADD = \
1340 libsystemd-daemon-internal.la \
1341 libsystemd-shared.la
1343 test_cgroup_SOURCES = \
1344 src/test/test-cgroup.c
1346 test_cgroup_LDADD = \
1347 libsystemd-label.la \
1348 libsystemd-shared.la
1350 test_cgroup_mask_SOURCES = \
1351 src/test/test-cgroup-mask.c
1353 test_cgroup_mask_CPPFLAGS = \
1355 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1357 test_cgroup_mask_LDADD = \
1358 libsystemd-core.la \
1361 test_cgroup_util_SOURCES = \
1362 src/test/test-cgroup-util.c
1364 test_cgroup_util_LDADD = \
1365 libsystemd-label.la \
1366 libsystemd-daemon-internal.la \
1367 libsystemd-shared.la
1369 test_env_replace_SOURCES = \
1370 src/test/test-env-replace.c
1372 test_env_replace_LDADD = \
1373 libsystemd-shared.la
1375 test_strbuf_SOURCES = \
1376 src/test/test-strbuf.c
1378 test_strbuf_LDADD = \
1379 libsystemd-shared.la
1381 test_strv_SOURCES = \
1382 src/test/test-strv.c
1385 libsystemd-units.la \
1386 libsystemd-internal.la \
1387 libsystemd-shared.la
1389 test_path_util_SOURCES = \
1390 src/test/test-path-util.c
1392 test_path_util_LDADD = \
1393 libsystemd-shared.la
1395 test_strxcpyx_SOURCES = \
1396 src/test/test-strxcpyx.c
1398 test_strxcpyx_LDADD = \
1399 libsystemd-shared.la
1401 test_install_SOURCES = \
1402 src/test/test-install.c
1404 test_install_LDADD = \
1405 libsystemd-units.la \
1406 libsystemd-label.la \
1407 libsystemd-internal.la \
1408 libsystemd-shared.la
1410 test_watchdog_SOURCES = \
1411 src/test/test-watchdog.c
1413 test_watchdog_LDADD = \
1414 libsystemd-shared.la
1416 test_sched_prio_SOURCES = \
1417 src/test/test-sched-prio.c
1419 test_sched_prio_CPPFLAGS = \
1421 -DTEST_DIR=\"$(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 coverage-sync
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-internal.la \
1471 libsystemd-daemon-internal.la \
1472 libsystemd-shared.la
1474 # ------------------------------------------------------------------------------
1475 systemd_initctl_SOURCES = \
1476 src/initctl/initctl.c
1478 systemd_initctl_LDADD = \
1479 libsystemd-internal.la \
1480 libsystemd-daemon-internal.la \
1481 libsystemd-shared.la
1483 # ------------------------------------------------------------------------------
1484 systemd_update_utmp_SOURCES = \
1485 src/update-utmp/update-utmp.c
1487 systemd_update_utmp_CFLAGS = \
1491 systemd_update_utmp_LDADD = \
1492 libsystemd-internal.la \
1493 libsystemd-daemon-internal.la \
1494 libsystemd-shared.la \
1497 # ------------------------------------------------------------------------------
1498 systemd_shutdownd_SOURCES = \
1499 src/shutdownd/shutdownd.c
1501 systemd_shutdownd_LDADD = \
1502 libsystemd-label.la \
1503 libsystemd-daemon-internal.la \
1504 libsystemd-shared.la
1507 src/systemd/sd-shutdown.h
1509 # ------------------------------------------------------------------------------
1510 systemd_shutdown_SOURCES = \
1513 src/core/shutdown.c \
1514 src/core/mount-setup.c \
1515 src/core/mount-setup.h \
1516 src/core/killall.h \
1519 systemd_shutdown_LDADD = \
1520 libsystemd-label.la \
1521 libudev-internal.la \
1522 libsystemd-shared.la
1524 # ------------------------------------------------------------------------------
1526 systemd_modules_load_SOURCES = \
1527 src/modules-load/modules-load.c
1529 systemd_modules_load_CFLAGS = \
1533 systemd_modules_load_LDADD = \
1534 libsystemd-shared.la \
1537 rootlibexec_PROGRAMS += \
1538 systemd-modules-load
1540 nodist_systemunit_DATA += \
1541 units/systemd-modules-load.service
1543 SYSINIT_TARGET_WANTS += \
1544 systemd-modules-load.service
1547 nodist_systemunit_DATA += \
1548 units/kmod-static-nodes.service
1550 SYSINIT_TARGET_WANTS += \
1551 kmod-static-nodes.service
1556 units/systemd-modules-load.service.in \
1557 units/kmod-static-nodes.service.in
1559 # ------------------------------------------------------------------------------
1561 systemd_tmpfiles_SOURCES = \
1562 src/tmpfiles/tmpfiles.c
1564 systemd_tmpfiles_LDADD = \
1565 libsystemd-units.la \
1566 libsystemd-label.la \
1567 libsystemd-capability.la \
1568 libsystemd-internal.la \
1569 libsystemd-shared.la
1571 rootbin_PROGRAMS += \
1574 dist_systemunit_DATA += \
1575 units/systemd-tmpfiles-clean.timer
1577 nodist_systemunit_DATA += \
1578 units/systemd-tmpfiles-setup-dev.service \
1579 units/systemd-tmpfiles-setup.service \
1580 units/systemd-tmpfiles-clean.service
1582 dist_tmpfiles_DATA = \
1583 tmpfiles.d/systemd.conf \
1584 tmpfiles.d/systemd-nologin.conf \
1585 tmpfiles.d/tmp.conf \
1589 dist_tmpfiles_DATA += \
1590 tmpfiles.d/legacy.conf
1593 SYSINIT_TARGET_WANTS += \
1594 systemd-tmpfiles-setup-dev.service \
1595 systemd-tmpfiles-setup.service
1597 dist_zshcompletion_DATA += \
1598 shell-completion/zsh/_systemd-tmpfiles
1600 TIMERS_TARGET_WANTS += \
1601 systemd-tmpfiles-clean.timer
1605 $(sysconfdir)/tmpfiles.d
1609 units/systemd-tmpfiles-setup-dev.service.in \
1610 units/systemd-tmpfiles-setup.service.in \
1611 units/systemd-tmpfiles-clean.service.in
1613 # ------------------------------------------------------------------------------
1614 systemd_machine_id_setup_SOURCES = \
1615 src/machine-id-setup/machine-id-setup-main.c \
1616 src/core/machine-id-setup.c \
1617 src/core/machine-id-setup.h
1619 systemd_machine_id_setup_LDADD = \
1620 libsystemd-label.la \
1621 libsystemd-internal.la \
1622 libsystemd-shared.la
1624 # ------------------------------------------------------------------------------
1625 systemd_sysctl_SOURCES = \
1628 systemd_sysctl_LDADD = \
1629 libsystemd-shared.la
1631 # ------------------------------------------------------------------------------
1632 systemd_sleep_SOURCES = \
1635 systemd_sleep_LDADD = \
1636 libsystemd-shared.la
1638 # ------------------------------------------------------------------------------
1639 systemd_fsck_SOURCES = \
1642 systemd_fsck_LDADD = \
1643 libsystemd-internal.la \
1644 libsystemd-daemon-internal.la \
1645 libudev-internal.la \
1646 libsystemd-shared.la
1648 # ------------------------------------------------------------------------------
1649 systemd_ac_power_SOURCES = \
1650 src/ac-power/ac-power.c
1652 systemd_ac_power_LDADD = \
1653 libudev-internal.la \
1654 libsystemd-shared.la
1656 # ------------------------------------------------------------------------------
1657 systemd_detect_virt_SOURCES = \
1658 src/detect-virt/detect-virt.c
1660 systemd_detect_virt_LDADD = \
1661 libsystemd-shared.la
1663 systemd-detect-virt-install-hook:
1664 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1666 INSTALL_EXEC_HOOKS += \
1667 systemd-detect-virt-install-hook
1669 # ------------------------------------------------------------------------------
1670 systemd_delta_SOURCES = \
1673 systemd_delta_LDADD = \
1674 libsystemd-shared.la
1676 # ------------------------------------------------------------------------------
1677 systemd_getty_generator_SOURCES = \
1678 src/getty-generator/getty-generator.c
1680 systemd_getty_generator_LDADD = \
1681 libsystemd-label.la \
1682 libsystemd-shared.la
1684 # ------------------------------------------------------------------------------
1685 systemd_fstab_generator_SOURCES = \
1686 src/fstab-generator/fstab-generator.c \
1687 src/core/mount-setup.c
1689 systemd_fstab_generator_LDADD = \
1690 libsystemd-label.la \
1691 libsystemd-shared.la
1693 # ------------------------------------------------------------------------------
1694 systemd_system_update_generator_SOURCES = \
1695 src/system-update-generator/system-update-generator.c
1697 systemd_system_update_generator_LDADD = \
1698 libsystemd-label.la \
1699 libsystemd-shared.la
1702 # ------------------------------------------------------------------------------
1703 systemgenerator_PROGRAMS += \
1704 systemd-efi-boot-generator
1706 systemd_efi_boot_generator_SOURCES = \
1707 src/efi-boot-generator/efi-boot-generator.c
1709 systemd_efi_boot_generator_LDADD = \
1710 libsystemd-label.la \
1711 libsystemd-shared.la
1713 # ------------------------------------------------------------------------------
1716 src/boot/boot-loader.h \
1717 src/boot/bootctl.c \
1718 src/boot/boot-loader.c \
1722 libsystemd-shared.la \
1723 libsystemd-internal.la \
1724 libsystemd-daemon-internal.la
1729 dist_zshcompletion_DATA += \
1730 shell-completion/zsh/_bootctl
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-internal.la \
1745 libudev-internal.la \
1746 libsystemd-shared.la \
1749 systemd_gpt_auto_generator_CFLAGS = \
1754 # ------------------------------------------------------------------------------
1756 systemgenerator_PROGRAMS += \
1757 systemd-dbus1-generator
1759 systemd_dbus1_generator_SOURCES = \
1760 src/dbus1-generator/dbus1-generator.c
1762 systemd_dbus1_generator_LDADD = \
1763 libsystemd-label.la \
1764 libsystemd-shared.la \
1765 libsystemd-internal.la
1767 dbus1-generator-install-hook:
1768 $(AM_V_LN)$(LN_S) -f $(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1770 dbus1-generator-uninstall-hook:
1771 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1773 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1774 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1777 # ------------------------------------------------------------------------------
1778 systemd_rc_local_generator_SOURCES = \
1779 src/rc-local-generator/rc-local-generator.c
1781 systemd_rc_local_generator_LDADD = \
1782 libsystemd-label.la \
1783 libsystemd-shared.la
1785 # ------------------------------------------------------------------------------
1786 systemd_remount_fs_SOURCES = \
1787 src/remount-fs/remount-fs.c \
1788 src/core/mount-setup.c \
1789 src/core/mount-setup.h
1791 systemd_remount_fs_LDADD = \
1792 libsystemd-label.la \
1793 libsystemd-shared.la
1795 # ------------------------------------------------------------------------------
1796 systemd_cgroups_agent_SOURCES = \
1797 src/cgroups-agent/cgroups-agent.c
1799 systemd_cgroups_agent_LDADD = \
1800 libsystemd-internal.la \
1801 libsystemd-daemon-internal.la \
1802 libsystemd-shared.la
1804 # ------------------------------------------------------------------------------
1805 systemctl_SOURCES = \
1806 src/systemctl/systemctl.c
1809 libsystemd-units.la \
1810 libsystemd-label.la \
1811 libsystemd-internal.la \
1812 libsystemd-logs.la \
1813 libsystemd-journal-internal.la \
1814 libsystemd-daemon-internal.la \
1815 libsystemd-shared.la
1817 # ------------------------------------------------------------------------------
1818 systemd_notify_SOURCES = \
1819 src/notify/notify.c \
1820 src/readahead/sd-readahead.c
1822 systemd_notify_LDADD = \
1823 libsystemd-daemon-internal.la \
1824 libsystemd-shared.la
1826 # ------------------------------------------------------------------------------
1827 systemd_ask_password_SOURCES = \
1828 src/ask-password/ask-password.c
1830 systemd_ask_password_LDADD = \
1831 libsystemd-label.la \
1832 libsystemd-shared.la
1834 # ------------------------------------------------------------------------------
1835 systemd_reply_password_SOURCES = \
1836 src/reply-password/reply-password.c
1838 systemd_reply_password_LDADD = \
1839 libsystemd-shared.la
1841 # ------------------------------------------------------------------------------
1842 systemd_cgls_SOURCES = \
1845 systemd_cgls_LDADD = \
1846 libsystemd-shared.la
1848 # ------------------------------------------------------------------------------
1849 systemd_cgtop_SOURCES = \
1852 systemd_cgtop_LDADD = \
1853 libsystemd-shared.la
1855 # ------------------------------------------------------------------------------
1856 systemd_nspawn_SOURCES = \
1857 src/nspawn/nspawn.c \
1858 src/core/mount-setup.c \
1859 src/core/mount-setup.h \
1860 src/core/loopback-setup.c \
1861 src/core/loopback-setup.h
1863 systemd_nspawn_LDADD = \
1864 libsystemd-label.la \
1865 libsystemd-capability.la \
1866 libsystemd-internal.la \
1867 libsystemd-daemon-internal.la \
1868 libsystemd-shared.la
1870 # ------------------------------------------------------------------------------
1871 systemd_run_SOURCES = \
1874 systemd_run_LDADD = \
1875 libsystemd-label.la \
1876 libsystemd-capability.la \
1877 libsystemd-internal.la \
1878 libsystemd-daemon-internal.la \
1879 libsystemd-shared.la
1881 # ------------------------------------------------------------------------------
1882 systemd_bus_proxyd_SOURCES = \
1883 src/bus-proxyd/bus-proxyd.c
1885 systemd_bus_proxyd_LDADD = \
1886 libsystemd-internal.la \
1887 libsystemd-daemon-internal.la \
1888 libsystemd-shared.la
1890 bus-proxyd-install-hook:
1891 $(AM_V_LN)$(LN_S) -f ../lib/systemd/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
1893 bus-proxyd-uninstall-hook:
1894 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
1896 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
1897 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
1900 nodist_systemunit_DATA += \
1901 units/systemd-bus-proxyd@.service
1903 dist_systemunit_DATA += \
1904 units/systemd-bus-proxyd.socket
1906 dist_userunit_DATA += \
1907 units/user/systemd-bus-proxyd.socket \
1908 units/user/systemd-bus-proxyd@.service
1912 units/systemd-bus-proxyd@.service.in
1914 # ------------------------------------------------------------------------------
1915 systemd_tty_ask_password_agent_SOURCES = \
1916 src/tty-ask-password-agent/tty-ask-password-agent.c
1918 systemd_tty_ask_password_agent_LDADD = \
1919 libsystemd-label.la \
1920 libsystemd-shared.la
1922 # ------------------------------------------------------------------------------
1923 libsystemd_daemon_la_SOURCES = \
1924 src/libsystemd-daemon/libsystemd-daemon.sym \
1925 src/libsystemd-daemon/sd-daemon.c
1927 libsystemd_daemon_internal_la_SOURCES = \
1928 $(libsystemd_daemon_la_SOURCES)
1930 libsystemd_daemon_internal_la_CPPFLAGS = \
1932 -DSD_DAEMON_DISABLE_MQ
1934 libsystemd_daemon_la_CFLAGS = \
1936 -fvisibility=hidden \
1939 libsystemd_daemon_la_LDFLAGS = \
1941 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1942 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1944 libsystemd_daemon_la_LIBADD = \
1947 pkginclude_HEADERS += \
1948 src/systemd/sd-daemon.h
1950 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1951 libsystemd-daemon-install-hook:
1952 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1954 libsystemd-daemon-uninstall-hook:
1955 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1957 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1958 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1960 lib_LTLIBRARIES += \
1961 libsystemd-daemon.la
1963 noinst_LTLIBRARIES += \
1964 libsystemd-daemon-internal.la
1966 pkgconfiglib_DATA += \
1967 src/libsystemd-daemon/libsystemd-daemon.pc
1970 src/libsystemd-daemon/libsystemd-daemon.pc.in
1972 # ------------------------------------------------------------------------------
1973 libsystemd_la_SOURCES = \
1974 src/libsystemd/libsystemd.sym \
1975 src/systemd/sd-bus.h \
1976 src/systemd/sd-bus-protocol.h \
1977 src/systemd/sd-bus-vtable.h \
1978 src/systemd/sd-memfd.h \
1979 src/systemd/sd-utf8.h \
1980 src/systemd/sd-event.h \
1981 src/systemd/sd-rtnl.h \
1982 src/systemd/sd-resolve.h \
1983 src/systemd/sd-login.h \
1984 src/systemd/sd-id128.h \
1985 src/libsystemd/sd-bus/sd-bus.c \
1986 src/libsystemd/sd-bus/bus-control.c \
1987 src/libsystemd/sd-bus/bus-control.h \
1988 src/libsystemd/sd-bus/bus-error.c \
1989 src/libsystemd/sd-bus/bus-error.h \
1990 src/libsystemd/sd-bus/bus-internal.c \
1991 src/libsystemd/sd-bus/bus-internal.h \
1992 src/libsystemd/sd-bus/bus-socket.c \
1993 src/libsystemd/sd-bus/bus-socket.h \
1994 src/libsystemd/sd-bus/bus-kernel.c \
1995 src/libsystemd/sd-bus/bus-kernel.h \
1996 src/libsystemd/sd-bus/bus-container.c \
1997 src/libsystemd/sd-bus/bus-container.h \
1998 src/libsystemd/sd-bus/bus-message.c \
1999 src/libsystemd/sd-bus/bus-message.h \
2000 src/libsystemd/sd-bus/bus-creds.c \
2001 src/libsystemd/sd-bus/bus-creds.h \
2002 src/libsystemd/sd-bus/bus-signature.c \
2003 src/libsystemd/sd-bus/bus-signature.h \
2004 src/libsystemd/sd-bus/bus-type.c \
2005 src/libsystemd/sd-bus/bus-type.h \
2006 src/libsystemd/sd-bus/bus-match.c \
2007 src/libsystemd/sd-bus/bus-match.h \
2008 src/libsystemd/sd-bus/bus-bloom.c \
2009 src/libsystemd/sd-bus/bus-bloom.h \
2010 src/libsystemd/sd-bus/bus-introspect.c \
2011 src/libsystemd/sd-bus/bus-introspect.h \
2012 src/libsystemd/sd-bus/bus-objects.c \
2013 src/libsystemd/sd-bus/bus-objects.h \
2014 src/libsystemd/sd-bus/bus-gvariant.c \
2015 src/libsystemd/sd-bus/bus-gvariant.h \
2016 src/libsystemd/sd-bus/bus-convenience.c \
2017 src/libsystemd/sd-bus/bus-util.c \
2018 src/libsystemd/sd-bus/bus-util.h \
2019 src/libsystemd/sd-bus/bus-protocol.h \
2020 src/libsystemd/sd-bus/kdbus.h \
2021 src/libsystemd/sd-bus/sd-memfd.c \
2022 src/libsystemd/sd-utf8/sd-utf8.c \
2023 src/libsystemd/sd-event/sd-event.c \
2024 src/libsystemd/sd-event/event-util.h \
2025 src/libsystemd/sd-rtnl/sd-rtnl.c \
2026 src/libsystemd/sd-rtnl/rtnl-internal.h \
2027 src/libsystemd/sd-rtnl/rtnl-message.c \
2028 src/libsystemd/sd-rtnl/rtnl-util.h \
2029 src/libsystemd/sd-rtnl/rtnl-util.c \
2030 src/libsystemd/sd-resolve/sd-resolve.c \
2031 src/libsystemd/sd-resolve/resolve-util.h \
2032 src/libsystemd/sd-id128/sd-id128.c \
2033 src/login/sd-login.c \
2034 src/login/login-shared.c \
2035 src/login/login-shared.h
2037 nodist_libsystemd_la_SOURCES = \
2038 src/libsystemd/sd-bus/bus-error-mapping.c
2040 libsystemd_la_LIBADD = \
2041 libsystemd-daemon-internal.la \
2042 libsystemd-shared.la \
2045 libsystemd_la_CFLAGS = \
2049 libsystemd_la_LDFLAGS = \
2051 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2052 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
2054 pkgconfiglib_DATA += \
2055 src/libsystemd/libsystemd.pc
2057 pkginclude_HEADERS += \
2058 src/systemd/sd-login.h \
2059 src/systemd/sd-id128.h
2062 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2063 src/libsystemd/sd-bus/DIFFERENCES \
2064 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION \
2065 src/libsystemd/libsystemd.pc.in
2068 src/libsystemd/sd-bus/bus-error-mapping.c
2070 lib_LTLIBRARIES += \
2073 libsystemd_internal_la_SOURCES = \
2074 $(libsystemd_la_SOURCES)
2076 nodist_libsystemd_internal_la_SOURCES = \
2077 $(nodist_libsystemd_la_SOURCES)
2079 libsystemd_internal_la_CFLAGS = \
2080 $(libsystemd_la_CFLAGS)
2082 noinst_LTLIBRARIES += \
2083 libsystemd-internal.la
2085 libsystemd_dump_la_SOURCES = \
2086 src/libsystemd/sd-bus/bus-dump.c \
2087 src/libsystemd/sd-bus/bus-dump.h
2089 libsystemd_dump_la_CFLAGS = \
2093 noinst_LTLIBRARIES += \
2098 test-bus-signature \
2104 test-bus-kernel-bloom \
2105 test-bus-kernel-benchmark \
2107 test-bus-zero-copy \
2108 test-bus-introspect \
2120 test_bus_marshal_SOURCES = \
2121 src/libsystemd/sd-bus/test-bus-marshal.c
2123 test_bus_marshal_LDADD = \
2124 libsystemd-internal.la \
2125 libsystemd-daemon-internal.la \
2126 libsystemd-shared.la \
2127 libsystemd-dump.la \
2128 libsystemd-capability.la \
2133 test_bus_marshal_CFLAGS = \
2139 test_bus_signature_SOURCES = \
2140 src/libsystemd/sd-bus/test-bus-signature.c
2142 test_bus_signature_LDADD = \
2143 libsystemd-shared.la \
2144 libsystemd-internal.la
2146 test_bus_chat_SOURCES = \
2147 src/libsystemd/sd-bus/test-bus-chat.c
2149 test_bus_chat_CFLAGS = \
2153 test_bus_chat_LDADD = \
2154 libsystemd-internal.la \
2155 libsystemd-daemon-internal.la \
2156 libsystemd-shared.la
2158 test_bus_cleanup_SOURCES = \
2159 src/libsystemd/sd-bus/test-bus-cleanup.c
2161 test_bus_cleanup_LDADD = \
2162 libsystemd-internal.la \
2163 libsystemd-daemon-internal.la \
2164 libsystemd-shared.la
2166 test_bus_server_SOURCES = \
2167 src/libsystemd/sd-bus/test-bus-server.c
2169 test_bus_server_CFLAGS = \
2173 test_bus_server_LDADD = \
2174 libsystemd-internal.la \
2175 libsystemd-daemon-internal.la \
2176 libsystemd-shared.la
2178 test_bus_objects_SOURCES = \
2179 src/libsystemd/sd-bus/test-bus-objects.c
2181 test_bus_objects_CFLAGS = \
2186 test_bus_objects_LDADD = \
2187 libsystemd-internal.la \
2188 libsystemd-daemon-internal.la \
2189 libsystemd-shared.la \
2190 libsystemd-dump.la \
2191 libsystemd-capability.la \
2194 test_bus_error_SOURCES = \
2195 src/libsystemd/sd-bus/test-bus-error.c
2197 test_bus_error_LDADD = \
2198 libsystemd-internal.la \
2199 libsystemd-daemon-internal.la \
2200 libsystemd-shared.la
2202 test_bus_gvariant_SOURCES = \
2203 src/libsystemd/sd-bus/test-bus-gvariant.c
2205 test_bus_gvariant_LDADD = \
2206 libsystemd-internal.la \
2207 libsystemd-daemon-internal.la \
2208 libsystemd-shared.la \
2209 libsystemd-dump.la \
2210 libsystemd-capability.la \
2214 test_bus_gvariant_CFLAGS = \
2219 test_bus_creds_SOURCES = \
2220 src/libsystemd/sd-bus/test-bus-creds.c
2222 test_bus_creds_LDADD = \
2223 libsystemd-internal.la \
2224 libsystemd-daemon-internal.la \
2225 libsystemd-shared.la \
2226 libsystemd-dump.la \
2227 libsystemd-capability.la
2229 test_bus_match_SOURCES = \
2230 src/libsystemd/sd-bus/test-bus-match.c
2232 test_bus_match_LDADD = \
2233 libsystemd-internal.la \
2234 libsystemd-daemon-internal.la \
2235 libsystemd-shared.la
2237 test_bus_kernel_SOURCES = \
2238 src/libsystemd/sd-bus/test-bus-kernel.c
2240 test_bus_kernel_LDADD = \
2241 libsystemd-internal.la \
2242 libsystemd-daemon-internal.la \
2243 libsystemd-shared.la \
2244 libsystemd-dump.la \
2245 libsystemd-capability.la \
2248 test_bus_kernel_CFLAGS = \
2252 test_bus_kernel_bloom_SOURCES = \
2253 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2255 test_bus_kernel_bloom_LDADD = \
2256 libsystemd-internal.la \
2257 libsystemd-daemon-internal.la \
2258 libsystemd-shared.la
2260 test_bus_kernel_benchmark_SOURCES = \
2261 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2263 test_bus_kernel_benchmark_LDADD = \
2264 libsystemd-internal.la \
2265 libsystemd-daemon-internal.la \
2266 libsystemd-shared.la
2268 test_bus_memfd_SOURCES = \
2269 src/libsystemd/sd-bus/test-bus-memfd.c
2271 test_bus_memfd_LDADD = \
2272 libsystemd-internal.la \
2273 libsystemd-shared.la
2275 test_bus_zero_copy_SOURCES = \
2276 src/libsystemd/sd-bus/test-bus-zero-copy.c
2278 test_bus_zero_copy_LDADD = \
2279 libsystemd-internal.la \
2280 libsystemd-daemon-internal.la \
2281 libsystemd-shared.la \
2282 libsystemd-dump.la \
2283 libsystemd-capability.la \
2286 test_bus_zero_copy_CFLAGS = \
2290 test_bus_introspect_SOURCES = \
2291 src/libsystemd/sd-bus/test-bus-introspect.c
2293 test_bus_introspect_LDADD = \
2294 libsystemd-shared.la \
2295 libsystemd-internal.la
2297 test_event_SOURCES = \
2298 src/libsystemd/sd-event/test-event.c
2300 test_event_LDADD = \
2301 libsystemd-internal.la \
2302 libsystemd-daemon-internal.la \
2303 libsystemd-shared.la
2305 test_rtnl_SOURCES = \
2306 src/libsystemd/sd-rtnl/test-rtnl.c
2309 libsystemd-internal.la \
2310 libsystemd-daemon-internal.la \
2311 libsystemd-shared.la
2313 test_resolve_SOURCES = \
2314 src/systemd/sd-resolve.h \
2315 src/libsystemd/sd-resolve/test-resolve.c
2317 test_resolve_LDADD = \
2318 libsystemd-internal.la \
2319 libsystemd-shared.la \
2322 test_resolve_CFLAGS = \
2327 src/libsystemd/sd-bus/busctl.c
2330 libsystemd-internal.la \
2331 libsystemd-daemon-internal.la \
2332 libsystemd-shared.la \
2333 libsystemd-dump.la \
2334 libsystemd-capability.la \
2341 # ------------------------------------------------------------------------------
2342 noinst_LTLIBRARIES += \
2345 libsystemd_dhcp_la_SOURCES = \
2346 src/systemd/sd-dhcp-client.h \
2347 src/libsystemd-dhcp/sd-dhcp-client.c \
2348 src/libsystemd-dhcp/dhcp-lease.h \
2349 src/libsystemd-dhcp/dhcp-lease.c \
2350 src/libsystemd-dhcp/dhcp-network.c \
2351 src/libsystemd-dhcp/dhcp-option.c \
2352 src/libsystemd-dhcp/dhcp-internal.h \
2353 src/libsystemd-dhcp/dhcp-protocol.h
2355 libsystemd_dhcp_la_LIBADD = \
2356 libsystemd-internal.la \
2357 libsystemd-shared.la
2359 test_dhcp_option_SOURCES = \
2360 src/libsystemd-dhcp/dhcp-protocol.h \
2361 src/libsystemd-dhcp/dhcp-internal.h \
2362 src/libsystemd-dhcp/test-dhcp-option.c
2364 test_dhcp_option_LDADD = \
2365 libsystemd-dhcp.la \
2366 libsystemd-internal.la \
2367 libsystemd-shared.la
2369 test_dhcp_client_SOURCES = \
2370 src/systemd/sd-dhcp-client.h \
2371 src/libsystemd-dhcp/dhcp-protocol.h \
2372 src/libsystemd-dhcp/dhcp-internal.h \
2373 src/libsystemd-dhcp/test-dhcp-client.c
2375 test_dhcp_client_LDADD = \
2376 libsystemd-dhcp.la \
2377 libsystemd-internal.la \
2378 libsystemd-daemon-internal.la \
2379 libsystemd-shared.la
2385 # ------------------------------------------------------------------------------
2395 include_HEADERS += \
2396 src/libudev/libudev.h
2398 lib_LTLIBRARIES += \
2401 libudev_la_SOURCES =\
2402 src/libudev/libudev.sym \
2403 src/libudev/libudev-private.h \
2404 src/libudev/libudev.c \
2405 src/libudev/libudev-list.c \
2406 src/libudev/libudev-util.c \
2407 src/libudev/libudev-device.c \
2408 src/libudev/libudev-enumerate.c \
2409 src/libudev/libudev-monitor.c \
2410 src/libudev/libudev-queue.c \
2411 src/libudev/libudev-hwdb-def.h \
2412 src/libudev/libudev-hwdb.c
2414 libudev_la_CFLAGS = \
2418 libudev_la_LDFLAGS = \
2420 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2421 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2423 libudev_la_LIBADD = \
2424 libsystemd-daemon-internal.la \
2425 libsystemd-shared.la
2427 pkgconfiglib_DATA += \
2428 src/libudev/libudev.pc
2431 src/libudev/libudev.pc.in
2434 src/libudev/libudev.pc \
2439 $(AM_V_at)$(MKDIR_P) $(dir $@)
2440 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2443 $(AM_V_at)$(MKDIR_P) $(dir $@)
2444 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2446 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2447 libudev-install-hook:
2448 libname=libudev.so && $(move-to-rootlibdir)
2450 libudev-uninstall-hook:
2451 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2453 INSTALL_EXEC_HOOKS += libudev-install-hook
2454 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2456 # ------------------------------------------------------------------------------
2457 noinst_LTLIBRARIES += \
2460 libudev_internal_la_SOURCES =\
2461 $(libudev_la_SOURCES) \
2462 src/libudev/libudev-device-private.c \
2463 src/libudev/libudev-queue-private.c
2465 libudev_internal_la_CFLAGS = \
2467 -fvisibility=default
2469 # ------------------------------------------------------------------------------
2471 $(sysconfdir)/udev/rules.d \
2472 $(sysconfdir)/udev/hwdb.d
2474 dist_network_DATA = \
2475 network/99-default.link
2477 dist_udevrules_DATA += \
2478 rules/99-systemd.rules \
2479 rules/42-usb-hid-pm.rules \
2480 rules/50-udev-default.rules \
2481 rules/60-drm.rules \
2482 rules/60-keyboard.rules \
2483 rules/60-persistent-storage-tape.rules \
2484 rules/60-persistent-serial.rules \
2485 rules/60-persistent-input.rules \
2486 rules/60-persistent-alsa.rules \
2487 rules/60-persistent-storage.rules \
2488 rules/64-btrfs.rules \
2489 rules/75-net-description.rules \
2490 rules/75-tty-description.rules \
2491 rules/78-sound-card.rules \
2492 rules/80-net-setup-link.rules \
2493 rules/95-udev-late.rules
2495 dist_udevhwdb_DATA = \
2496 hwdb/20-pci-vendor-model.hwdb \
2497 hwdb/20-pci-classes.hwdb \
2498 hwdb/20-usb-vendor-model.hwdb \
2499 hwdb/20-usb-classes.hwdb \
2500 hwdb/20-sdio-vendor-model.hwdb \
2501 hwdb/20-sdio-classes.hwdb \
2502 hwdb/20-bluetooth-vendor-product.hwdb \
2503 hwdb/20-acpi-vendor.hwdb \
2505 hwdb/60-keyboard.hwdb
2507 udevconfdir = $(sysconfdir)/udev
2508 dist_udevconf_DATA = \
2511 sharepkgconfigdir = $(datadir)/pkgconfig
2512 sharepkgconfig_DATA = \
2516 rules/99-systemd.rules.in \
2520 rules/99-systemd.rules \
2524 units/systemd-udevd.service.in \
2525 units/systemd-udev-trigger.service.in \
2526 units/systemd-udev-settle.service.in
2529 units/systemd-udevd.service \
2530 units/systemd-udev-trigger.service \
2531 units/systemd-udev-settle.service
2533 SOCKETS_TARGET_WANTS += \
2534 systemd-udevd-control.socket \
2535 systemd-udevd-kernel.socket
2536 SYSINIT_TARGET_WANTS += \
2537 systemd-udevd.service \
2538 systemd-udev-trigger.service
2540 rootbin_PROGRAMS += \
2543 rootlibexec_PROGRAMS += \
2546 noinst_LTLIBRARIES += \
2549 src/udev/keyboard-keys.txt:
2550 $(AM_V_at)$(MKDIR_P) $(dir $@)
2551 $(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/' > $@
2553 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2554 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2556 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2557 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2559 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2560 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2562 libudev_core_la_SOURCES = \
2564 src/udev/udev-event.c \
2565 src/udev/udev-watch.c \
2566 src/udev/udev-node.c \
2567 src/udev/udev-rules.c \
2568 src/udev/udev-ctrl.c \
2569 src/udev/udev-builtin.c \
2570 src/udev/udev-builtin-btrfs.c \
2571 src/udev/udev-builtin-hwdb.c \
2572 src/udev/udev-builtin-input_id.c \
2573 src/udev/udev-builtin-keyboard.c \
2574 src/udev/udev-builtin-net_id.c \
2575 src/udev/udev-builtin-net_setup_link.c \
2576 src/udev/udev-builtin-path_id.c \
2577 src/udev/udev-builtin-usb_id.c \
2578 src/udev/net/link-config.h \
2579 src/udev/net/link-config.c \
2580 src/udev/net/ethtool-util.h \
2581 src/udev/net/ethtool-util.c
2583 nodist_libudev_core_la_SOURCES = \
2584 src/udev/keyboard-keys-from-name.h \
2585 src/udev/keyboard-keys-to-name.h \
2586 src/udev/net/link-config-gperf.c
2589 $(nodist_libudev_core_la_SOURCES)
2592 src/udev/keyboard-keys-from-name.gperf \
2593 src/udev/keyboard-keys.txt \
2594 src/udev/net/link-config-gperf.c
2597 src/udev/net/link-config-gperf.gperf
2599 libudev_core_la_CFLAGS = \
2604 libudev_core_la_LIBADD = \
2605 libudev-internal.la \
2606 libsystemd-label.la \
2607 libsystemd-daemon-internal.la \
2608 libsystemd-internal.la \
2609 libsystemd-shared.la \
2613 libudev_core_la_CPPFLAGS = \
2615 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2618 libudev_core_la_SOURCES += \
2619 src/udev/udev-builtin-firmware.c
2621 dist_udevrules_DATA += \
2622 rules/50-firmware.rules
2626 libudev_core_la_SOURCES += \
2627 src/udev/udev-builtin-kmod.c
2629 dist_udevrules_DATA += \
2630 rules/80-drivers.rules
2634 libudev_core_la_SOURCES += \
2635 src/udev/udev-builtin-blkid.c
2639 libudev_core_la_SOURCES += \
2640 src/udev/udev-builtin-uaccess.c \
2641 src/login/logind-acl.c \
2642 src/login/sd-login.c \
2643 src/systemd/sd-login.h \
2644 src/login/login-shared.c \
2645 src/login/login-shared.h
2647 libudev_core_la_LIBADD += \
2651 systemd_udevd_SOURCES = \
2654 systemd_udevd_LDADD = \
2658 src/udev/udevadm.c \
2659 src/udev/udevadm-info.c \
2660 src/udev/udevadm-control.c \
2661 src/udev/udevadm-monitor.c \
2662 src/udev/udevadm-hwdb.c \
2663 src/udev/udevadm-settle.c \
2664 src/udev/udevadm-trigger.c \
2665 src/udev/udevadm-test.c \
2666 src/udev/udevadm-test-builtin.c
2671 # Update hwdb on installation. Do not bother if installing
2672 # in DESTDIR, since this is likely for packaging purposes.
2674 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2676 INSTALL_DATA_HOOKS += \
2680 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2682 # ------------------------------------------------------------------------------
2691 test_libudev_SOURCES = \
2692 src/test/test-libudev.c
2694 test_libudev_LDADD = \
2695 libsystemd-label.la \
2696 libudev-internal.la \
2697 libsystemd-shared.la
2699 test_udev_SOURCES = \
2700 src/test/test-udev.c
2709 test_udev_LDADD += \
2716 # packed sysfs test tree
2718 $(AM_V_at)$(MKDIR_P) $(dir $@)
2719 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2723 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2728 test/rules-test.sh \
2729 test/rule-syntax-check.py
2731 # ------------------------------------------------------------------------------
2733 src/udev/ata_id/ata_id.c
2736 libudev-internal.la \
2737 libsystemd-shared.la
2739 udevlibexec_PROGRAMS += \
2742 # ------------------------------------------------------------------------------
2743 cdrom_id_SOURCES = \
2744 src/udev/cdrom_id/cdrom_id.c
2747 libudev-internal.la \
2748 libsystemd-shared.la
2750 udevlibexec_PROGRAMS += \
2753 dist_udevrules_DATA += \
2754 rules/60-cdrom_id.rules
2756 # ------------------------------------------------------------------------------
2758 src/udev/collect/collect.c
2761 libudev-internal.la \
2762 libsystemd-shared.la
2764 udevlibexec_PROGRAMS += \
2767 # ------------------------------------------------------------------------------
2769 src/udev/scsi_id/scsi_id.c \
2770 src/udev/scsi_id/scsi_serial.c \
2771 src/udev/scsi_id/scsi.h \
2772 src/udev/scsi_id/scsi_id.h
2775 libudev-internal.la \
2776 libsystemd-shared.la
2778 udevlibexec_PROGRAMS += \
2782 src/udev/scsi_id/README
2784 # ------------------------------------------------------------------------------
2786 src/udev/v4l_id/v4l_id.c
2791 udevlibexec_PROGRAMS += \
2794 dist_udevrules_DATA += \
2795 rules/60-persistent-v4l.rules
2797 # ------------------------------------------------------------------------------
2798 accelerometer_SOURCES = \
2799 src/udev/accelerometer/accelerometer.c
2801 accelerometer_LDADD = \
2802 libudev-internal.la -lm \
2803 libsystemd-shared.la
2805 udevlibexec_PROGRAMS += \
2808 dist_udevrules_DATA += \
2809 rules/61-accelerometer.rules
2811 # ------------------------------------------------------------------------------
2818 libgudev_includedir = \
2819 $(includedir)/gudev-1.0/gudev
2821 libgudev_include_HEADERS = \
2823 src/gudev/gudevenums.h \
2824 src/gudev/gudevenumtypes.h \
2825 src/gudev/gudevtypes.h \
2826 src/gudev/gudevclient.h \
2827 src/gudev/gudevdevice.h \
2828 src/gudev/gudevenumerator.h
2830 lib_LTLIBRARIES += libgudev-1.0.la
2832 pkgconfiglib_DATA += \
2833 src/gudev/gudev-1.0.pc
2836 src/gudev/gudev-1.0.pc
2838 libgudev_1_0_la_SOURCES = \
2839 src/gudev/gudevenums.h \
2840 src/gudev/gudevenumtypes.h \
2841 src/gudev/gudevenumtypes.h\
2842 src/gudev/gudevtypes.h \
2843 src/gudev/gudevclient.h \
2844 src/gudev/gudevclient.c \
2845 src/gudev/gudevdevice.h \
2846 src/gudev/gudevdevice.c \
2847 src/gudev/gudevenumerator.h \
2848 src/gudev/gudevenumerator.c \
2849 src/gudev/gudevprivate.h
2851 nodist_libgudev_1_0_la_SOURCES = \
2852 src/gudev/gudevmarshal.h \
2853 src/gudev/gudevmarshal.c \
2854 src/gudev/gudevenumtypes.h \
2855 src/gudev/gudevenumtypes.c
2858 $(nodist_libgudev_1_0_la_SOURCES)
2860 libgudev_1_0_la_CPPFLAGS = \
2862 -I$(top_builddir)/src\
2863 -I$(top_srcdir)/src\
2864 -I$(top_builddir)/src/gudev \
2865 -I$(top_srcdir)/src/gudev \
2866 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2867 -D_GUDEV_COMPILATION \
2868 -DG_LOG_DOMAIN=\"GUdev\"
2870 libgudev_1_0_la_CFLAGS = \
2872 -fvisibility=default \
2875 libgudev_1_0_la_LIBADD = \
2879 libgudev_1_0_la_LDFLAGS = \
2881 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2882 -export-dynamic -no-undefined \
2883 -export-symbols-regex '^g_udev_.*'
2885 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2886 $(AM_V_at)$(MKDIR_P) $(dir $@)
2887 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2889 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2890 $(AM_V_at)$(MKDIR_P) $(dir $@)
2891 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2892 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2894 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2895 $(AM_V_at)$(MKDIR_P) $(dir $@)
2896 $(AM_V_GEN)glib-mkenums --template $^ > $@
2898 if HAVE_INTROSPECTION
2899 -include $(INTROSPECTION_MAKEFILE)
2901 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2903 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2905 src_gudev_GUdev_1_0_gir_CFLAGS = \
2908 -D_GUDEV_COMPILATION \
2909 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2910 -I$(top_srcdir)/src \
2911 -I$(top_builddir)/src \
2912 -I$(top_srcdir)/src/gudev \
2913 -I$(top_builddir)/src/gudev
2915 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2917 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2918 --pkg-export=gudev-1.0 \
2921 src_gudev_GUdev_1_0_gir_FILES = \
2923 src/gudev/gudevtypes.h \
2924 src/gudev/gudevenums.h \
2925 src/gudev/gudevenumtypes.h \
2926 src/gudev/gudevclient.h \
2927 src/gudev/gudevdevice.h \
2928 src/gudev/gudevenumerator.h \
2929 src/gudev/gudevclient.c \
2930 src/gudev/gudevdevice.c \
2931 src/gudev/gudevenumerator.c
2933 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2934 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2936 girdir = $(datadir)/gir-1.0
2938 src/gudev/GUdev-1.0.gir
2940 typelibsdir = $(libdir)/girepository-1.0
2942 src/gudev/GUdev-1.0.typelib
2944 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2945 endif # HAVE_INTROSPECTION
2947 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2948 libgudev-install-hook:
2949 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2951 libgudev-uninstall-hook:
2952 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2954 INSTALL_EXEC_HOOKS += libgudev-install-hook
2955 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2959 src/gudev/gudev-1.0.pc.in \
2960 src/gudev/gudevmarshal.list \
2961 src/gudev/gudevenumtypes.h.template \
2962 src/gudev/gudevenumtypes.c.template \
2963 src/gudev/gjs-example.js \
2964 src/gudev/seed-example-enum.js \
2965 src/gudev/seed-example.js
2967 # ------------------------------------------------------------------------------
2968 mtd_probe_SOURCES = \
2969 src/udev/mtd_probe/mtd_probe.c \
2970 src/udev/mtd_probe/mtd_probe.h \
2971 src/udev/mtd_probe/probe_smartmedia.c
2973 dist_udevrules_DATA += \
2974 rules/75-probe_mtd.rules
2976 udevlibexec_PROGRAMS += \
2979 # ------------------------------------------------------------------------------
2980 test_id128_SOURCES = \
2981 src/test/test-id128.c
2983 test_id128_LDADD = \
2984 libsystemd-internal.la \
2985 libsystemd-daemon-internal.la \
2986 libsystemd-shared.la
2991 # ------------------------------------------------------------------------------
2993 rootlibexec_PROGRAMS += \
2996 systemd_activate_SOURCES = \
2997 src/activate/activate.c
2999 systemd_activate_LDADD = \
3000 libsystemd-label.la \
3001 libsystemd-daemon-internal.la \
3002 libsystemd-shared.la
3004 # ------------------------------------------------------------------------------
3005 systemd_journald_SOURCES = \
3006 src/journal/journald.c \
3007 src/journal/journald-server.h
3009 systemd_journald_LDADD = \
3010 libsystemd-journal-core.la \
3011 libsystemd-internal.la \
3012 libsystemd-shared.la
3014 systemd_cat_SOURCES = \
3017 systemd_cat_LDADD = \
3018 libsystemd-journal-core.la
3020 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3021 journalctl_CFLAGS = \
3024 journalctl_SOURCES = \
3025 src/journal/journalctl.c
3027 journalctl_LDADD = \
3028 libsystemd-journal-internal.la \
3029 libsystemd-internal.la \
3030 libsystemd-logs.la \
3031 libsystemd-shared.la
3034 journalctl_LDADD += \
3039 journalctl_SOURCES += \
3040 src/journal/journal-qrcode.c \
3041 src/journal/journal-qrcode.h
3043 journalctl_CFLAGS += \
3046 journalctl_LDADD += \
3050 test_journal_SOURCES = \
3051 src/journal/test-journal.c
3053 test_journal_LDADD = \
3054 libsystemd-journal-core.la
3056 test_journal_send_SOURCES = \
3057 src/journal/test-journal-send.c
3059 test_journal_send_LDADD = \
3060 libsystemd-journal-core.la
3062 test_journal_syslog_SOURCES = \
3063 src/journal/test-journal-syslog.c
3065 test_journal_syslog_LDADD = \
3066 libsystemd-journal-core.la
3068 test_journal_match_SOURCES = \
3069 src/journal/test-journal-match.c
3071 test_journal_match_LDADD = \
3072 libsystemd-journal-core.la
3074 test_journal_enum_SOURCES = \
3075 src/journal/test-journal-enum.c
3077 test_journal_enum_LDADD = \
3078 libsystemd-journal-core.la
3080 test_journal_stream_SOURCES = \
3081 src/journal/test-journal-stream.c
3083 test_journal_stream_LDADD = \
3084 libsystemd-journal-core.la
3086 test_journal_flush_SOURCES = \
3087 src/journal/test-journal-flush.c
3089 test_journal_flush_LDADD = \
3090 libsystemd-journal-core.la
3092 test_journal_init_SOURCES = \
3093 src/journal/test-journal-init.c
3095 test_journal_init_LDADD = \
3096 libsystemd-journal-core.la
3098 test_journal_verify_SOURCES = \
3099 src/journal/test-journal-verify.c
3101 test_journal_verify_LDADD = \
3102 libsystemd-journal-core.la
3104 test_journal_interleaving_SOURCES = \
3105 src/journal/test-journal-interleaving.c
3107 test_journal_interleaving_LDADD = \
3108 libsystemd-journal-core.la
3110 test_mmap_cache_SOURCES = \
3111 src/journal/test-mmap-cache.c
3113 test_mmap_cache_LDADD = \
3114 libsystemd-journal-core.la
3116 test_catalog_SOURCES = \
3117 src/journal/test-catalog.c
3119 test_catalog_CPPFLAGS = \
3121 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3123 test_catalog_LDADD = \
3124 libsystemd-journal-core.la
3126 libsystemd_journal_la_SOURCES = \
3127 src/journal/libsystemd-journal.sym \
3128 src/journal/sd-journal.c \
3129 src/systemd/sd-journal.h \
3130 src/systemd/_sd-common.h \
3131 src/journal/journal-file.c \
3132 src/journal/journal-file.h \
3133 src/journal/journal-vacuum.c \
3134 src/journal/journal-vacuum.h \
3135 src/journal/journal-verify.c \
3136 src/journal/journal-verify.h \
3137 src/journal/lookup3.c \
3138 src/journal/lookup3.h \
3139 src/journal/journal-send.c \
3140 src/journal/journal-def.h \
3141 src/journal/compress.h \
3142 src/journal/catalog.c \
3143 src/journal/catalog.h \
3144 src/journal/mmap-cache.c \
3145 src/journal/mmap-cache.h
3147 libsystemd_journal_la_CFLAGS = \
3151 libsystemd_journal_la_LDFLAGS = \
3153 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
3154 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
3156 libsystemd_journal_la_LIBADD = \
3157 libsystemd-label.la \
3158 libsystemd-daemon-internal.la \
3159 libsystemd-internal.la \
3160 libsystemd-shared.la
3162 libsystemd_journal_internal_la_SOURCES = \
3163 $(libsystemd_journal_la_SOURCES)
3165 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3166 libsystemd_journal_internal_la_CFLAGS = \
3169 libsystemd_journal_internal_la_LIBADD =
3172 libsystemd_journal_la_SOURCES += \
3173 src/journal/compress.c
3175 libsystemd_journal_la_CFLAGS += \
3178 libsystemd_journal_la_LIBADD += \
3181 libsystemd_journal_internal_la_CFLAGS += \
3184 libsystemd_journal_internal_la_LIBADD += \
3188 libsystemd_journal_core_la_SOURCES = \
3189 src/journal/journald-kmsg.c \
3190 src/journal/journald-kmsg.h \
3191 src/journal/journald-syslog.c \
3192 src/journal/journald-syslog.h \
3193 src/journal/journald-stream.c \
3194 src/journal/journald-stream.h \
3195 src/journal/journald-server.c \
3196 src/journal/journald-server.h \
3197 src/journal/journald-console.c \
3198 src/journal/journald-console.h \
3199 src/journal/journald-native.c \
3200 src/journal/journald-native.h \
3201 src/journal/journald-rate-limit.c \
3202 src/journal/journald-rate-limit.h \
3203 src/journal/journal-internal.h
3205 nodist_libsystemd_journal_core_la_SOURCES = \
3206 src/journal/journald-gperf.c
3208 libsystemd_journal_core_la_LIBADD = \
3209 libsystemd-journal-internal.la \
3210 libudev-internal.la \
3211 libsystemd-capability.la \
3212 libsystemd-label.la \
3213 libsystemd-daemon-internal.la \
3214 libsystemd-internal.la \
3215 libsystemd-shared.la
3218 libsystemd_journal_core_la_LIBADD += \
3222 noinst_LTLIBRARIES += \
3223 libsystemd-journal-core.la
3226 libsystemd_journal_la_SOURCES += \
3227 src/journal/journal-authenticate.c \
3228 src/journal/journal-authenticate.h \
3229 src/journal/fsprg.c \
3232 libsystemd_journal_la_CFLAGS += \
3236 libsystemd_journal_la_LIBADD += \
3239 libsystemd_journal_internal_la_CFLAGS += \
3243 libsystemd_journal_internal_la_LIBADD += \
3247 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3248 # needed. Also, grant read access to new journal files to members of
3249 # "adm" and "wheel".
3250 libsystemd-journal-install-hook:
3251 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3252 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3253 -chown 0:0 $(DESTDIR)/var/log/journal
3254 -chmod 755 $(DESTDIR)/var/log/journal
3255 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3256 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3258 libsystemd-journal-uninstall-hook:
3259 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3261 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3262 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3264 # ------------------------------------------------------------------------------
3266 # Update catalog on installation. Do not bother if installing
3267 # in DESTDIR, since this is likely for packaging purposes.
3268 catalog-update-hook:
3269 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3271 INSTALL_DATA_HOOKS += \
3274 catalog-remove-hook:
3275 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3277 UNINSTALL_DATA_HOOKS += \
3286 test-journal-syslog \
3287 test-journal-match \
3288 test-journal-stream \
3290 test-journal-verify \
3291 test-journal-interleaving \
3292 test-journal-flush \
3296 pkginclude_HEADERS += \
3297 src/systemd/sd-journal.h \
3298 src/systemd/sd-messages.h \
3299 src/systemd/_sd-common.h
3301 lib_LTLIBRARIES += \
3302 libsystemd-journal.la
3304 noinst_LTLIBRARIES += \
3305 libsystemd-journal-internal.la
3307 rootlibexec_PROGRAMS += \
3310 rootbin_PROGRAMS += \
3316 dist_systemunit_DATA += \
3317 units/systemd-journald.socket
3319 nodist_systemunit_DATA += \
3320 units/systemd-journald.service \
3321 units/systemd-journal-flush.service
3323 dist_pkgsysconf_DATA += \
3324 src/journal/journald.conf
3326 pkgconfiglib_DATA += \
3327 src/journal/libsystemd-journal.pc
3329 dist_catalog_DATA = \
3330 catalog/systemd.fr.catalog \
3331 catalog/systemd.ru.catalog \
3332 catalog/systemd.it.catalog \
3333 catalog/systemd.catalog
3335 SOCKETS_TARGET_WANTS += \
3336 systemd-journald.socket
3337 SYSINIT_TARGET_WANTS += \
3338 systemd-journald.service \
3339 systemd-journal-flush.service
3342 src/journal/libsystemd-journal.pc.in \
3343 units/systemd-journald.service.in \
3344 units/systemd-journal-flush.service.in \
3345 src/journal/journald-gperf.gperf
3348 src/journal/journald-gperf.c
3350 # ------------------------------------------------------------------------------
3352 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3354 rootlibexec_PROGRAMS += \
3355 systemd-journal-gatewayd
3357 systemd_journal_gatewayd_SOURCES = \
3358 src/journal/journal-gatewayd.c \
3359 src/journal/microhttpd-util.h \
3360 src/journal/microhttpd-util.c
3362 systemd_journal_gatewayd_LDADD = \
3363 libsystemd-logs.la \
3364 libsystemd-journal-internal.la \
3365 libsystemd-daemon-internal.la \
3366 libsystemd-internal.la \
3367 libsystemd-shared.la \
3370 systemd_journal_gatewayd_CFLAGS = \
3372 $(MICROHTTPD_CFLAGS)
3374 systemd_journal_gatewayd_CPPFLAGS = \
3376 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3378 dist_systemunit_DATA += \
3379 units/systemd-journal-gatewayd.socket
3381 nodist_systemunit_DATA += \
3382 units/systemd-journal-gatewayd.service
3384 dist_gatewayddocumentroot_DATA = \
3385 src/journal/browse.html
3390 units/systemd-journal-gatewayd.service.in
3392 # ------------------------------------------------------------------------------
3394 systemd_socket_proxyd_SOURCES = \
3395 src/socket-proxy/socket-proxyd.c
3397 systemd_socket_proxyd_LDADD = \
3398 libsystemd-logs.la \
3399 libsystemd-internal.la \
3400 libsystemd-journal-internal.la \
3401 libsystemd-daemon-internal.la \
3402 libsystemd-shared.la
3404 # ------------------------------------------------------------------------------
3406 systemd_coredump_SOURCES = \
3407 src/journal/coredump.c
3409 systemd_coredump_LDADD = \
3410 libsystemd-journal-internal.la \
3411 libsystemd-label.la \
3412 libsystemd-shared.la \
3413 libsystemd-internal.la
3415 rootlibexec_PROGRAMS += \
3418 systemd_coredumpctl_SOURCES = \
3419 src/journal/coredumpctl.c
3421 systemd_coredumpctl_LDADD = \
3422 libsystemd-journal-internal.la \
3423 libsystemd-internal.la \
3424 libsystemd-shared.la
3429 dist_bashcompletion_DATA += \
3430 shell-completion/bash/systemd-coredumpctl
3432 dist_zshcompletion_DATA += \
3433 shell-completion/zsh/_systemd-coredumpctl
3436 sysctl.d/50-coredump.conf
3439 sysctl.d/50-coredump.conf
3443 sysctl.d/50-coredump.conf.in
3445 # ------------------------------------------------------------------------------
3447 systemd_binfmt_SOURCES = \
3450 systemd_binfmt_LDADD = \
3451 libsystemd-shared.la
3453 rootlibexec_PROGRAMS += \
3456 dist_systemunit_DATA += \
3457 units/proc-sys-fs-binfmt_misc.automount \
3458 units/proc-sys-fs-binfmt_misc.mount
3460 nodist_systemunit_DATA += \
3461 units/systemd-binfmt.service
3464 $(prefix)/lib/binfmt.d \
3465 $(sysconfdir)/binfmt.d
3467 SYSINIT_TARGET_WANTS += \
3468 systemd-binfmt.service \
3469 proc-sys-fs-binfmt_misc.automount
3474 units/systemd-binfmt.service.in
3476 # ------------------------------------------------------------------------------
3478 systemd_vconsole_setup_SOURCES = \
3479 src/vconsole/vconsole-setup.c
3481 systemd_vconsole_setup_LDADD = \
3482 libsystemd-shared.la
3484 rootlibexec_PROGRAMS += \
3485 systemd-vconsole-setup
3487 nodist_systemunit_DATA += \
3488 units/systemd-vconsole-setup.service
3490 SYSINIT_TARGET_WANTS += \
3491 systemd-vconsole-setup.service
3495 units/systemd-vconsole-setup.service.in
3497 # ------------------------------------------------------------------------------
3499 systemd_readahead_SOURCES = \
3500 src/readahead/readahead.c \
3501 src/readahead/readahead-collect.c \
3502 src/readahead/readahead-replay.c \
3503 src/readahead/readahead-analyze.c \
3504 src/readahead/readahead-common.c \
3505 src/readahead/readahead-common.h
3507 systemd_readahead_LDADD = \
3508 libsystemd-daemon-internal.la \
3509 libudev-internal.la \
3510 libsystemd-shared.la
3513 src/readahead/sd-readahead.c \
3514 src/systemd/sd-readahead.h
3516 rootlibexec_PROGRAMS += \
3519 dist_systemunit_DATA += \
3520 units/systemd-readahead-drop.service \
3521 units/systemd-readahead-done.timer
3523 nodist_systemunit_DATA += \
3524 units/systemd-readahead-collect.service \
3525 units/systemd-readahead-replay.service \
3526 units/systemd-readahead-done.service
3531 units/systemd-readahead-collect.service.in \
3532 units/systemd-readahead-replay.service.in \
3533 units/systemd-readahead-done.service.in
3535 # ------------------------------------------------------------------------------
3537 systemd_bootchart_SOURCES = \
3538 src/bootchart/bootchart.c \
3539 src/bootchart/bootchart.h \
3540 src/bootchart/store.c \
3541 src/bootchart/store.h \
3542 src/bootchart/svg.c \
3545 systemd_bootchart_LDADD = \
3546 libsystemd-journal-internal.la \
3547 libsystemd-shared.la
3549 rootlibexec_PROGRAMS += \
3552 dist_pkgsysconf_DATA += \
3553 src/bootchart/bootchart.conf
3556 # ------------------------------------------------------------------------------
3557 if ENABLE_QUOTACHECK
3558 rootlibexec_PROGRAMS += \
3561 nodist_systemunit_DATA += \
3562 units/systemd-quotacheck.service
3564 systemd_quotacheck_SOURCES = \
3565 src/quotacheck/quotacheck.c
3567 systemd_quotacheck_LDADD = \
3568 libsystemd-shared.la
3572 units/systemd-quotacheck.service.in
3574 nodist_systemunit_DATA += \
3575 units/quotaon.service
3577 # ------------------------------------------------------------------------------
3578 if ENABLE_RANDOMSEED
3579 rootlibexec_PROGRAMS += \
3582 nodist_systemunit_DATA += \
3583 units/systemd-random-seed.service
3585 systemd_random_seed_SOURCES = \
3586 src/random-seed/random-seed.c
3588 systemd_random_seed_LDADD = \
3589 libsystemd-label.la \
3590 libsystemd-shared.la
3592 SYSINIT_TARGET_WANTS += \
3593 systemd-random-seed.service
3598 units/systemd-random-seed.service.in
3600 # ------------------------------------------------------------------------------
3602 rootlibexec_PROGRAMS += \
3605 nodist_systemunit_DATA += \
3606 units/systemd-backlight@.service
3608 systemd_backlight_SOURCES = \
3609 src/backlight/backlight.c
3611 systemd_backlight_LDADD = \
3612 libsystemd-label.la \
3613 libudev-internal.la \
3614 libsystemd-shared.la
3618 units/systemd-backlight@.service.in
3620 # ------------------------------------------------------------------------------
3622 rootlibexec_PROGRAMS += \
3625 nodist_systemunit_DATA += \
3626 units/systemd-rfkill@.service
3628 systemd_rfkill_SOURCES = \
3631 systemd_rfkill_LDADD = \
3632 libsystemd-label.la \
3633 libudev-internal.la \
3634 libsystemd-shared.la
3638 units/systemd-rfkill@.service.in
3640 # ------------------------------------------------------------------------------
3641 if HAVE_LIBCRYPTSETUP
3642 rootlibexec_PROGRAMS += \
3645 systemgenerator_PROGRAMS += \
3646 systemd-cryptsetup-generator
3648 dist_systemunit_DATA += \
3649 units/cryptsetup.target
3651 systemd_cryptsetup_SOURCES = \
3652 src/cryptsetup/cryptsetup.c
3654 systemd_cryptsetup_CFLAGS = \
3656 $(LIBCRYPTSETUP_CFLAGS)
3658 systemd_cryptsetup_LDADD = \
3659 libsystemd-label.la \
3660 libudev-internal.la \
3661 libsystemd-shared.la \
3662 $(LIBCRYPTSETUP_LIBS)
3664 systemd_cryptsetup_generator_SOURCES = \
3665 src/cryptsetup/cryptsetup-generator.c
3667 systemd_cryptsetup_generator_LDADD = \
3668 libsystemd-label.la \
3669 libsystemd-shared.la
3671 SYSINIT_TARGET_WANTS += \
3676 # ------------------------------------------------------------------------------
3678 systemd_hostnamed_SOURCES = \
3679 src/hostname/hostnamed.c
3681 systemd_hostnamed_LDADD = \
3682 libsystemd-label.la \
3683 libsystemd-internal.la \
3684 libsystemd-daemon-internal.la \
3685 libsystemd-shared.la
3687 rootlibexec_PROGRAMS += \
3690 nodist_systemunit_DATA += \
3691 units/systemd-hostnamed.service
3693 dist_systemunit_DATA += \
3694 units/org.freedesktop.hostname1.busname
3696 dist_dbuspolicy_DATA += \
3697 src/hostname/org.freedesktop.hostname1.conf
3699 dist_dbussystemservice_DATA += \
3700 src/hostname/org.freedesktop.hostname1.service
3702 polkitpolicy_files += \
3703 src/hostname/org.freedesktop.hostname1.policy
3705 SYSTEM_UNIT_ALIASES += \
3706 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3708 BUSNAMES_TARGET_WANTS += \
3709 org.freedesktop.hostname1.busname
3711 hostnamectl_SOURCES = \
3712 src/hostname/hostnamectl.c
3714 hostnamectl_LDADD = \
3715 libsystemd-internal.la \
3716 libsystemd-daemon-internal.la \
3717 libsystemd-shared.la
3722 dist_bashcompletion_DATA += \
3723 shell-completion/bash/hostnamectl
3725 dist_zshcompletion_DATA += \
3726 shell-completion/zsh/_hostnamectl
3730 polkitpolicy_in_files += \
3731 src/hostname/org.freedesktop.hostname1.policy.in
3734 units/systemd-hostnamed.service.in
3736 # ------------------------------------------------------------------------------
3738 systemd_bus_driverd_SOURCES = \
3739 src/bus-driverd/bus-driverd.c
3741 systemd_bus_driverd_LDADD = \
3742 libsystemd-internal.la \
3743 libsystemd-daemon-internal.la \
3744 libsystemd-shared.la
3746 rootlibexec_PROGRAMS += \
3749 nodist_systemunit_DATA += \
3750 units/systemd-bus-driverd.service
3752 dist_systemunit_DATA += \
3753 units/org.freedesktop.DBus.busname
3755 BUSNAMES_TARGET_WANTS += \
3756 org.freedesktop.DBus.busname
3758 nodist_userunit_DATA += \
3759 units/user/systemd-bus-driverd.service
3761 USER_BUSNAMES_TARGET_WANTS += \
3762 org.freedesktop.DBus.busname
3764 USER_UNIT_ALIASES += \
3765 $(systemunitdir)/org.freedesktop.DBus.busname org.freedesktop.DBus.busname
3769 units/systemd-bus-driverd.service.in \
3770 units/user/systemd-bus-driverd.service.in
3772 # ------------------------------------------------------------------------------
3774 systemd_localed_SOURCES = \
3775 src/locale/localed.c
3777 systemd_localed_LDADD = \
3778 libsystemd-label.la \
3779 libsystemd-internal.la \
3780 libsystemd-daemon-internal.la \
3781 libsystemd-shared.la
3783 nodist_systemunit_DATA += \
3784 units/systemd-localed.service
3786 dist_systemunit_DATA += \
3787 units/org.freedesktop.locale1.busname
3789 rootlibexec_PROGRAMS += \
3792 dist_dbuspolicy_DATA += \
3793 src/locale/org.freedesktop.locale1.conf
3795 dist_dbussystemservice_DATA += \
3796 src/locale/org.freedesktop.locale1.service
3798 polkitpolicy_files += \
3799 src/locale/org.freedesktop.locale1.policy
3801 SYSTEM_UNIT_ALIASES += \
3802 systemd-localed.service dbus-org.freedesktop.locale1.service
3804 BUSNAMES_TARGET_WANTS += \
3805 org.freedesktop.locale1.busname
3807 dist_pkgdata_DATA += \
3808 src/locale/kbd-model-map
3810 dist_noinst_SCRIPT = \
3811 src/locale/generate-kbd-model-map
3813 update-kbd-model-map: src/locale/generate-kbd-model-map
3814 $PYTHON $< >src/locale/kbd-model-map
3816 localectl_SOURCES = \
3817 src/locale/localectl.c
3820 libsystemd-internal.la \
3821 libsystemd-daemon-internal.la \
3822 libsystemd-shared.la
3827 dist_bashcompletion_DATA += \
3828 shell-completion/bash/localectl
3830 dist_zshcompletion_DATA += \
3831 shell-completion/zsh/_localectl
3835 .PHONY: update-kbd-model-map
3837 polkitpolicy_in_files += \
3838 src/locale/org.freedesktop.locale1.policy.in
3841 units/systemd-localed.service.in
3843 # ------------------------------------------------------------------------------
3845 systemd_timedated_SOURCES = \
3846 src/timedate/timedated.c
3848 systemd_timedated_LDADD = \
3849 libsystemd-label.la \
3850 libsystemd-internal.la \
3851 libsystemd-daemon-internal.la \
3852 libsystemd-shared.la
3854 rootlibexec_PROGRAMS += \
3857 dist_dbussystemservice_DATA += \
3858 src/timedate/org.freedesktop.timedate1.service
3860 dist_dbuspolicy_DATA += \
3861 src/timedate/org.freedesktop.timedate1.conf
3863 nodist_systemunit_DATA += \
3864 units/systemd-timedated.service
3866 dist_systemunit_DATA += \
3867 units/org.freedesktop.timedate1.busname
3869 polkitpolicy_files += \
3870 src/timedate/org.freedesktop.timedate1.policy
3873 $(prefix)/lib/systemd/ntp-units.d \
3874 $(sysconfdir)/systemd/ntp-units.d
3876 SYSTEM_UNIT_ALIASES += \
3877 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3879 BUSNAMES_TARGET_WANTS += \
3880 org.freedesktop.timedate1.busname
3882 timedatectl_SOURCES = \
3883 src/timedate/timedatectl.c
3885 timedatectl_LDADD = \
3886 libsystemd-internal.la \
3887 libsystemd-daemon-internal.la \
3888 libsystemd-shared.la
3893 dist_bashcompletion_DATA += \
3894 shell-completion/bash/timedatectl
3896 dist_zshcompletion_DATA += \
3897 shell-completion/zsh/_timedatectl
3900 polkitpolicy_in_files += \
3901 src/timedate/org.freedesktop.timedate1.policy.in
3904 units/systemd-timedated.service.in
3906 # ------------------------------------------------------------------------------
3908 libnss_myhostname_la_SOURCES = \
3909 src/nss-myhostname/nss-myhostname.c \
3910 src/nss-myhostname/ifconf.h \
3911 src/nss-myhostname/netlink.c
3913 libnss_myhostname_la_LDFLAGS = \
3921 lib_LTLIBRARIES += \
3922 libnss_myhostname.la
3925 # ------------------------------------------------------------------------------
3927 systemd_machined_SOURCES = \
3928 src/machine/machined.c \
3929 src/machine/machined.h
3931 systemd_machined_LDADD = \
3932 libsystemd-machine-core.la
3934 rootlibexec_PROGRAMS += \
3937 libsystemd_machine_core_la_SOURCES = \
3938 src/machine/machined-dbus.c \
3939 src/machine/machine.c \
3940 src/machine/machine.h \
3941 src/machine/machine-dbus.c
3943 libsystemd_machine_core_la_LIBADD = \
3944 libsystemd-label.la \
3945 libsystemd-daemon-internal.la \
3946 libsystemd-internal.la \
3947 libudev-internal.la \
3948 libsystemd-shared.la
3950 noinst_LTLIBRARIES += \
3951 libsystemd-machine-core.la
3953 machinectl_SOURCES = \
3954 src/machine/machinectl.c
3956 machinectl_LDADD = \
3957 libsystemd-internal.la \
3958 libsystemd-daemon-internal.la \
3959 libsystemd-shared.la
3961 rootbin_PROGRAMS += \
3964 test_machine_tables_SOURCES = \
3965 src/machine/test-machine-tables.c
3967 test_machine_tables_LDADD = \
3968 libsystemd-machine-core.la
3973 nodist_systemunit_DATA += \
3974 units/systemd-machined.service
3976 dist_systemunit_DATA += \
3977 units/machine.slice \
3978 units/org.freedesktop.machine1.busname
3980 dist_dbussystemservice_DATA += \
3981 src/machine/org.freedesktop.machine1.service
3983 dist_dbuspolicy_DATA += \
3984 src/machine/org.freedesktop.machine1.conf
3986 dist_zshcompletion_DATA += \
3987 shell-completion/zsh/_machinectl
3989 SYSTEM_UNIT_ALIASES += \
3990 systemd-machined.service dbus-org.freedesktop.machine1.service
3992 BUSNAMES_TARGET_WANTS += \
3993 org.freedesktop.machine1.busname
3996 units/systemd-machined.service.in
4000 # ------------------------------------------------------------------------------
4002 rootlibexec_PROGRAMS += \
4005 systemd_networkd_SOURCES = \
4006 src/network/networkd.h \
4007 src/network/networkd.c \
4008 src/network/networkd-link.c \
4009 src/network/networkd-netdev.c \
4010 src/network/networkd-network.c \
4011 src/network/networkd-address.c \
4012 src/network/networkd-route.c \
4013 src/network/networkd-manager.c
4015 nodist_systemd_networkd_SOURCES = \
4016 src/network/networkd-gperf.c
4018 systemd_networkd_LDADD = \
4019 libudev-internal.la \
4020 libsystemd-daemon-internal.la \
4021 libsystemd-internal.la \
4022 libsystemd-dhcp.la \
4023 libsystemd-label.la \
4024 libsystemd-shared.la
4026 nodist_systemunit_DATA += \
4027 units/systemd-networkd.service
4029 MULTI_USER_TARGET_WANTS += \
4030 systemd-networkd.service
4032 test_network_SOURCES = \
4033 src/network/test-network.c \
4034 src/network/networkd.h \
4035 src/network/networkd-link.c \
4036 src/network/networkd-netdev.c \
4037 src/network/networkd-network.c \
4038 src/network/networkd-address.c \
4039 src/network/networkd-route.c \
4040 src/network/networkd-manager.c \
4041 src/network/networkd-gperf.c
4043 test_network_LDADD = \
4044 libudev-internal.la \
4045 libsystemd-internal.la \
4046 libsystemd-dhcp.la \
4047 libsystemd-daemon-internal.la \
4048 libsystemd-label.la \
4049 libsystemd-shared.la
4055 src/network/networkd-gperf.gperf \
4056 units/systemd-networkd.service.in
4059 src/network/networkd-gperf.c
4062 # ------------------------------------------------------------------------------
4064 systemd_logind_SOURCES = \
4065 src/login/logind.c \
4068 nodist_systemd_logind_SOURCES = \
4069 src/login/logind-gperf.c
4071 systemd_logind_LDADD = \
4072 libsystemd-logind-core.la
4074 libsystemd_logind_core_la_SOURCES = \
4075 src/login/logind-core.c \
4076 src/login/logind-device.c \
4077 src/login/logind-device.h \
4078 src/login/logind-button.c \
4079 src/login/logind-button.h \
4080 src/login/logind-action.c \
4081 src/login/logind-action.h \
4082 src/login/logind-seat.c \
4083 src/login/logind-seat.h \
4084 src/login/logind-session.c \
4085 src/login/logind-session.h \
4086 src/login/logind-session-device.c \
4087 src/login/logind-session-device.h \
4088 src/login/logind-user.c \
4089 src/login/logind-user.h \
4090 src/login/logind-inhibit.c \
4091 src/login/logind-inhibit.h \
4092 src/login/logind-dbus.c \
4093 src/login/logind-session-dbus.c \
4094 src/login/logind-seat-dbus.c \
4095 src/login/logind-user-dbus.c \
4096 src/login/logind-acl.h \
4097 src/login/login-shared.c \
4098 src/login/login-shared.h
4100 libsystemd_logind_core_la_LIBADD = \
4101 libsystemd-label.la \
4102 libsystemd-capability.la \
4103 libsystemd-daemon-internal.la \
4104 libsystemd-internal.la \
4105 libudev-internal.la \
4106 libsystemd-shared.la
4109 libsystemd_logind_core_la_SOURCES += \
4110 src/login/logind-acl.c
4112 libsystemd_logind_core_la_LIBADD += \
4116 noinst_LTLIBRARIES += \
4117 libsystemd-logind-core.la
4119 systemd_user_sessions_SOURCES = \
4120 src/login/user-sessions.c
4122 systemd_user_sessions_LDADD = \
4123 libsystemd-shared.la
4125 rootlibexec_PROGRAMS += \
4127 systemd-user-sessions
4129 loginctl_SOURCES = \
4130 src/login/loginctl.c \
4131 src/login/sysfs-show.c
4134 libsystemd-internal.la \
4135 libudev-internal.la \
4136 libsystemd-shared.la \
4137 libsystemd-daemon-internal.la
4139 rootbin_PROGRAMS += \
4142 dist_bashcompletion_DATA += \
4143 shell-completion/bash/loginctl
4145 dist_zshcompletion_DATA += \
4146 shell-completion/zsh/_loginctl \
4147 shell-completion/zsh/_systemd-inhibit
4149 systemd_inhibit_SOURCES = \
4152 systemd_inhibit_LDADD = \
4153 libsystemd-internal.la \
4154 libsystemd-daemon-internal.la \
4155 libsystemd-shared.la
4157 rootbin_PROGRAMS += \
4160 test_login_SOURCES = \
4161 src/login/test-login.c
4163 test_login_LDADD = \
4164 libsystemd-internal.la \
4165 libsystemd-shared.la
4167 test_login_shared_SOURCES = \
4168 src/login/test-login-shared.c
4170 test_login_shared_LDADD = \
4171 libsystemd-internal.la \
4172 libsystemd-shared.la
4174 test_inhibit_SOURCES = \
4175 src/login/test-inhibit.c
4177 test_inhibit_LDADD = \
4178 libsystemd-internal.la \
4179 libsystemd-daemon-internal.la \
4180 libsystemd-shared.la
4182 test_login_tables_SOURCES = \
4183 src/login/test-login-tables.c
4185 test_login_tables_LDADD = \
4186 libsystemd-logind-core.la
4197 pam_systemd_la_SOURCES = \
4198 src/login/pam-module.c
4200 pam_systemd_la_CFLAGS = \
4205 pam_systemd_la_LDFLAGS = \
4211 -export-symbols-regex '^pam_sm_.*'
4213 pam_systemd_la_LIBADD = \
4214 libsystemd-capability.la \
4215 libsystemd-internal.la \
4216 libsystemd-daemon-internal.la \
4217 libsystemd-shared.la \
4220 pamlib_LTLIBRARIES = \
4223 dist_pamconf_DATA = \
4224 src/login/systemd-user
4227 nodist_systemunit_DATA += \
4228 units/systemd-logind.service \
4229 units/systemd-user-sessions.service
4231 dist_systemunit_DATA += \
4233 units/org.freedesktop.login1.busname
4235 dist_dbussystemservice_DATA += \
4236 src/login/org.freedesktop.login1.service
4238 dist_dbuspolicy_DATA += \
4239 src/login/org.freedesktop.login1.conf
4241 dist_pkgsysconf_DATA += \
4242 src/login/logind.conf
4244 polkitpolicy_files += \
4245 src/login/org.freedesktop.login1.policy
4250 MULTI_USER_TARGET_WANTS += \
4251 systemd-logind.service \
4252 systemd-user-sessions.service
4254 SYSTEM_UNIT_ALIASES += \
4255 systemd-logind.service dbus-org.freedesktop.login1.service
4257 BUSNAMES_TARGET_WANTS += \
4258 org.freedesktop.login1.busname
4260 if ENABLE_MULTI_SEAT_X
4262 systemd_multi_seat_x_SOURCES = \
4263 src/login/multi-seat-x.c
4265 systemd_multi_seat_x_LDADD = \
4266 libsystemd-label.la \
4267 libsystemd-shared.la
4269 rootlibexec_PROGRAMS += \
4270 systemd-multi-seat-x
4274 dist_udevrules_DATA += \
4275 src/login/70-uaccess.rules \
4276 src/login/70-power-switch.rules
4278 nodist_udevrules_DATA += \
4279 src/login/71-seat.rules \
4280 src/login/73-seat-late.rules
4283 src/login/logind-gperf.c \
4284 src/login/71-seat.rules \
4285 src/login/73-seat-late.rules
4288 polkitpolicy_in_files += \
4289 src/login/org.freedesktop.login1.policy.in
4292 src/login/logind-gperf.gperf \
4293 src/login/71-seat.rules.in \
4294 src/login/73-seat-late.rules.in \
4295 units/systemd-logind.service.in \
4296 units/systemd-user-sessions.service.in
4298 # ------------------------------------------------------------------------------
4299 if HAVE_PYTHON_DEVEL
4300 pkgpyexec_LTLIBRARIES = \
4307 _journal_la_SOURCES = \
4308 src/python-systemd/_journal.c
4310 _journal_la_CFLAGS = \
4312 -fvisibility=default \
4313 $(PYTHON_DEVEL_CFLAGS)
4315 _journal_la_LDFLAGS = \
4321 _journal_la_LIBADD = \
4322 $(PYTHON_DEVEL_LIBS) \
4323 libsystemd-journal.la
4325 id128_la_SOURCES = \
4326 src/python-systemd/id128.c \
4327 src/python-systemd/id128-constants.h \
4328 src/python-systemd/pyutil.c \
4329 src/python-systemd/pyutil.h
4333 -fvisibility=default \
4334 $(PYTHON_DEVEL_CFLAGS) \
4335 -I$(top_builddir)/src/python-systemd
4337 id128_la_LDFLAGS = \
4344 $(PYTHON_DEVEL_LIBS) \
4347 _daemon_la_SOURCES = \
4348 src/python-systemd/_daemon.c \
4349 src/python-systemd/pyutil.c \
4350 src/python-systemd/pyutil.h
4352 _daemon_la_CFLAGS = \
4354 -fvisibility=default \
4355 $(PYTHON_DEVEL_CFLAGS) \
4356 -I$(top_builddir)/src/python-systemd
4358 _daemon_la_LDFLAGS = \
4364 _daemon_la_LIBADD = \
4365 $(PYTHON_DEVEL_LIBS) \
4366 libsystemd-daemon.la
4368 _reader_la_SOURCES = \
4369 src/python-systemd/_reader.c \
4370 src/python-systemd/pyutil.c \
4371 src/python-systemd/pyutil.h
4373 _reader_la_CFLAGS = \
4375 -fvisibility=default \
4376 $(PYTHON_DEVEL_CFLAGS)
4378 _reader_la_LDFLAGS = \
4384 _reader_la_LIBADD = \
4385 $(PYTHON_DEVEL_LIBS) \
4386 libsystemd-journal.la \
4388 libsystemd-daemon-internal.la \
4389 libsystemd-shared.la
4391 login_la_SOURCES = \
4392 src/python-systemd/login.c \
4393 src/python-systemd/pyutil.c \
4394 src/python-systemd/pyutil.h
4398 -fvisibility=default \
4399 $(PYTHON_DEVEL_CFLAGS)
4401 login_la_LDFLAGS = \
4408 $(PYTHON_DEVEL_LIBS) \
4409 libsystemd-journal.la \
4411 libsystemd-daemon-internal.la \
4412 libsystemd-shared.la
4414 dist_pkgpyexec_PYTHON = \
4415 src/python-systemd/journal.py \
4416 src/python-systemd/daemon.py \
4417 src/python-systemd/__init__.py
4419 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4420 $(AM_V_at)$(MKDIR_P) $(dir $@)
4421 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4424 src/python-systemd/id128-constants.h
4426 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4428 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4429 $(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/
4430 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4433 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4434 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4437 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4438 $(MAKE) DESTDIR="$$dir" install && \
4439 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4444 CLEAN_LOCAL_HOOKS += clean-sphinx
4446 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4449 -rm -rf docs/html/python-systemd/
4451 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4453 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4454 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4456 # ------------------------------------------------------------------------------
4457 if ENABLE_COMPAT_LIBS
4459 define generate-fake-lib
4460 $(AM_V_at)$(MKDIR_P) $(dir $@)
4461 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/void new_\1(void);\n__asm__(".symver new_\1,\1@LIBSYSTEMD_209");\nstatic void (*resolve_\1(void)) (void) {\n\treturn new_\1;\n}\nvoid \1(void) __attribute__((ifunc("resolve_\1")));\nobsolete_lib(\1,$(notdir $(basename $<)));\n/p' <$< >$@
4464 libsystemd_login_la_SOURCES = \
4465 libsystemd-login.c \
4466 src/compat-libs/libsystemd-login.sym
4468 libsystemd_login_la_CFLAGS = \
4470 -fvisibility=default \
4471 -imacros $(top_srcdir)/src/compat-libs/linkwarning.h \
4474 libsystemd_login_la_LDFLAGS = \
4476 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4477 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
4479 libsystemd_login_la_LIBADD = \
4482 libsystemd_id128_la_SOURCES = \
4483 libsystemd-id128.c \
4484 src/compat-libs/libsystemd-id128.sym
4486 libsystemd_id128_la_CFLAGS = \
4487 $(libsystemd_login_la_CFLAGS)
4489 libsystemd_id128_la_LDFLAGS = \
4491 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
4492 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
4494 libsystemd_id128_la_LIBADD = \
4498 libsystemd-login.c \
4501 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4502 $(generate-fake-lib)
4504 lib_LTLIBRARIES += \
4505 libsystemd-login.la \
4508 pkgconfiglib_DATA += \
4509 src/compat-libs/libsystemd-login.pc \
4510 src/compat-libs/libsystemd-id128.pc
4512 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4513 compat-lib-install-hook:
4514 libname=libsystemd-login.so && $(move-to-rootlibdir)
4515 libname=libsystemd-id128.so && $(move-to-rootlibdir)
4517 compat-lib-uninstall-hook:
4518 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4519 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
4521 INSTALL_EXEC_HOOKS += compat-lib-install-hook
4522 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
4527 src/compat-libs/libsystemd-login.pc.in \
4528 src/compat-libs/libsystemd-id128.pc.in
4530 # ------------------------------------------------------------------------------
4532 '|rootlibexecdir=$(rootlibexecdir)|' \
4533 '|rootbindir=$(rootbindir)|' \
4534 '|bindir=$(bindir)|' \
4535 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4536 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4537 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4538 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4539 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4540 '|pkgdatadir=$(pkgdatadir)|' \
4541 '|systemunitdir=$(systemunitdir)|' \
4542 '|userunitdir=$(userunitdir)|' \
4543 '|systempresetdir=$(systempresetdir)|' \
4544 '|userpresetdir=$(userpresetdir)|' \
4545 '|udevhwdbdir=$(udevhwdbdir)|' \
4546 '|udevrulesdir=$(udevrulesdir)|' \
4547 '|catalogdir=$(catalogdir)|' \
4548 '|tmpfilesdir=$(tmpfilesdir)|' \
4549 '|sysctldir=$(sysctldir)|' \
4550 '|systemgeneratordir=$(systemgeneratordir)|' \
4551 '|usergeneratordir=$(usergeneratordir)|' \
4552 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4553 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4554 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4555 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4556 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4557 '|prefix=$(prefix)|' \
4558 '|exec_prefix=$(exec_prefix)|' \
4559 '|libdir=$(libdir)|' \
4560 '|includedir=$(includedir)|' \
4561 '|VERSION=$(VERSION)|' \
4562 '|rootprefix=$(rootprefix)|' \
4563 '|udevlibexecdir=$(udevlibexecdir)|' \
4564 '|SUSHELL=$(SUSHELL)|' \
4565 '|DEBUGTTY=$(DEBUGTTY)|' \
4568 '|MKDIR_P=$(MKDIR_P)|' \
4569 '|QUOTAON=$(QUOTAON)|' \
4570 '|QUOTACHECK=$(QUOTACHECK)|' \
4571 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4572 '|VARLOGDIR=$(varlogdir)|' \
4573 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4574 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4575 '|PYTHON=$(PYTHON)|' \
4576 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4579 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4580 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4589 sysctl.d/%: sysctl.d/%.in
4595 src/core/macros.%: src/core/macros.%.in
4598 src/%.policy.in: src/%.policy.in.in
4606 $(AM_V_GEN)chmod +x $@
4608 src/%.c: src/%.gperf
4609 $(AM_V_at)$(MKDIR_P) $(dir $@)
4610 $(AM_V_GPERF)$(GPERF) < $< > $@
4613 $(AM_V_at)$(MKDIR_P) $(dir $@)
4614 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4617 $(AM_V_at)$(MKDIR_P) $(dir $@)
4618 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4620 units/user/%: units/%.m4
4621 $(AM_V_at)$(MKDIR_P) $(dir $@)
4622 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4625 nodist_polkitpolicy_DATA = \
4626 $(polkitpolicy_files) \
4627 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4631 $(polkitpolicy_in_files) \
4632 $(polkitpolicy_in_in_files)
4635 $(nodist_systemunit_DATA) \
4636 $(nodist_userunit_DATA) \
4637 $(pkgconfigdata_DATA) \
4638 $(pkgconfiglib_DATA) \
4639 $(nodist_polkitpolicy_DATA)
4641 # ------------------------------------------------------------------------------
4643 man/custom-entities.ent:
4644 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4645 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4646 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4650 man/custom-entities.ent
4654 --stringparam man.output.quietly 1 \
4655 --stringparam funcsynopsis.style ansi \
4656 --stringparam man.authors.section.enabled 0 \
4657 --stringparam man.copyright.section.enabled 0 \
4658 --stringparam systemd.version $(VERSION) \
4659 --path '$(builddir)/man:$(srcdir)/man'
4661 XSLTPROC_PROCESS_MAN = \
4662 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4664 XSLTPROC_PROCESS_HTML = \
4665 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4667 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4668 $(XSLTPROC_PROCESS_MAN)
4670 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4671 $(XSLTPROC_PROCESS_MAN)
4673 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4674 $(XSLTPROC_PROCESS_MAN)
4676 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4677 $(XSLTPROC_PROCESS_MAN)
4679 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4680 $(XSLTPROC_PROCESS_MAN)
4682 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4683 $(XSLTPROC_PROCESS_HTML)
4686 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4692 man/custom-html.xsl \
4695 # ------------------------------------------------------------------------------
4698 docs/sysvinit/README
4703 docs/sysvinit/README: docs/sysvinit/README.in
4706 docs/var-log/README: docs/var-log/README.in
4710 docs/sysvinit/README \
4715 docs/sysvinit/README.in \
4716 docs/var-log/README.in
4718 SOCKETS_TARGET_WANTS += \
4719 systemd-initctl.socket \
4720 systemd-shutdownd.socket
4723 RUNLEVEL1_TARGET_WANTS += \
4724 systemd-update-utmp-runlevel.service
4725 RUNLEVEL2_TARGET_WANTS += \
4726 systemd-update-utmp-runlevel.service
4727 RUNLEVEL3_TARGET_WANTS += \
4728 systemd-update-utmp-runlevel.service
4729 RUNLEVEL4_TARGET_WANTS += \
4730 systemd-update-utmp-runlevel.service
4731 RUNLEVEL5_TARGET_WANTS += \
4732 systemd-update-utmp-runlevel.service
4734 SYSINIT_TARGET_WANTS += \
4735 systemd-update-utmp.service
4736 LOCAL_FS_TARGET_WANTS += \
4737 systemd-remount-fs.service \
4739 MULTI_USER_TARGET_WANTS += \
4741 systemd-ask-password-wall.path
4742 SYSINIT_TARGET_WANTS += \
4743 dev-hugepages.mount \
4745 sys-kernel-config.mount \
4746 sys-kernel-debug.mount \
4747 sys-fs-fuse-connections.mount \
4748 systemd-sysctl.service \
4749 systemd-ask-password-console.path
4752 SYSTEM_UNIT_ALIASES += \
4753 poweroff.target runlevel0.target \
4754 rescue.target runlevel1.target \
4755 multi-user.target runlevel2.target \
4756 multi-user.target runlevel3.target \
4757 multi-user.target runlevel4.target \
4758 graphical.target runlevel5.target \
4759 reboot.target runlevel6.target
4762 SYSTEM_UNIT_ALIASES += \
4763 graphical.target default.target \
4764 reboot.target ctrl-alt-del.target \
4765 getty@.service autovt@.service
4767 USER_UNIT_ALIASES += \
4768 $(systemunitdir)/shutdown.target shutdown.target \
4769 $(systemunitdir)/sockets.target sockets.target \
4770 $(systemunitdir)/busnames.target busnames.target \
4771 $(systemunitdir)/timers.target timers.target \
4772 $(systemunitdir)/paths.target paths.target \
4773 $(systemunitdir)/bluetooth.target bluetooth.target \
4774 $(systemunitdir)/printer.target printer.target \
4775 $(systemunitdir)/sound.target sound.target \
4776 $(systemunitdir)/smartcard.target smartcard.target
4778 GENERAL_ALIASES += \
4779 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4780 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4781 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4782 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4786 $(systemunitdir)/runlevel1.target.wants \
4787 $(systemunitdir)/runlevel2.target.wants \
4788 $(systemunitdir)/runlevel3.target.wants \
4789 $(systemunitdir)/runlevel4.target.wants \
4790 $(systemunitdir)/runlevel5.target.wants
4794 $(prefix)/lib/modules-load.d \
4795 $(sysconfdir)/modules-load.d \
4796 $(prefix)/lib/systemd/network \
4797 $(sysconfdir)/systemd/network \
4798 $(prefix)/lib/sysctl.d \
4799 $(sysconfdir)/sysctl.d \
4800 $(prefix)/lib/kernel/install.d \
4801 $(sysconfdir)/kernel/install.d \
4802 $(systemshutdowndir) \
4804 $(systemgeneratordir) \
4805 $(usergeneratordir) \
4808 $(pkgsysconfdir)/system \
4809 $(pkgsysconfdir)/system/multi-user.target.wants \
4810 $(pkgsysconfdir)/system/getty.target.wants \
4811 $(pkgsysconfdir)/user \
4812 $(dbussessionservicedir) \
4813 $(sysconfdir)/xdg/systemd
4815 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4817 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4819 install-data-hook: $(INSTALL_DATA_HOOKS)
4821 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4823 clean-local: $(CLEAN_LOCAL_HOOKS)
4824 rm -rf $(abs_srcdir)/install-tree
4825 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4826 $(abs_srcdir)/hwdb/iab.txt
4828 DISTCHECK_CONFIGURE_FLAGS = \
4829 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4830 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4831 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4832 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4833 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4834 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4835 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4836 --with-rootprefix=$$dc_install_base \
4837 --disable-split-usr \
4841 DISTCHECK_CONFIGURE_FLAGS += \
4842 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4843 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4845 DISTCHECK_CONFIGURE_FLAGS += \
4846 --with-sysvinit-path= \
4847 --with-sysvrcnd-path=
4851 DISTCHECK_CONFIGURE_FLAGS += \
4857 ( cd $(top_srcdir)/hwdb && \
4858 wget -N http://www.linux-usb.org/usb.ids \
4859 http://pci-ids.ucw.cz/v2.2/pci.ids \
4860 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4861 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4864 .PHONY: kdbus-update
4866 ( cd $(top_srcdir)/src/libsystemd/ && \
4867 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4870 upload: all distcheck
4871 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4872 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4873 scp man/*.html tango:public/systemd-man/
4875 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4877 doc-sync: all destdir-sphinx
4878 gtkdoc-rebase --html-dir=docs/libudev/html --online
4879 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4880 gtkdoc-rebase --html-dir=docs/gudev/html --online
4881 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4882 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4883 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4887 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4889 .PHONY: install-tree
4891 rm -rf $(abs_srcdir)/install-tree
4892 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4893 tree $(abs_srcdir)/install-tree
4895 # Let's run all tests of the test suite, but under valgrind. Let's
4896 # exclude the one perl script we have in there
4897 .PHONY: valgrind-tests
4898 valgrind-tests: $(TESTS)
4899 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
4900 if file $$f | grep -q shell; then \
4901 echo -e "$${x}Skipping non-binary $$f"; else \
4902 echo -e "$${x}Running $$f"; \
4903 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
4908 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
4910 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
4911 $(AM_V_GEN)cat $^ > $@
4913 .PHONY: check-api-docs
4914 check-api-docs: exported man
4915 $(AM_V_GEN)for symbol in `cat exported` ; do \
4916 if test -f $(builddir)/man/$$symbol.html ; then \
4917 echo " Symbol $$symbol() is documented." ; \
4919 echo "‣ Symbol $$symbol() lacks documentation." ; \
4923 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
4924 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
4926 undefined defined: $(ALL_OBJECTS)
4927 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
4928 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
4929 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
4935 .PHONY: check-api-unused
4936 check-api-unused: defined undefined exported
4937 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
4939 .PHONY: check-includes
4940 check-includes: $(top_srcdir)/tools/check-includes.pl
4941 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
4942 | xargs $(top_srcdir)/tools/check-includes.pl
4945 $(top_srcdir)/tools/check-includes.pl
4947 # Stupid test that everything purported to be exported really is
4949 define generate-sym-test
4950 $(AM_V_at)$(MKDIR_P) $(dir $@)
4951 $(AM_V_at)printf '#include <stdio.h>\n' > $@
4952 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
4953 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
4954 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
4955 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
4956 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
4957 $(AM_V_at)printf 'return 0; }\n' >> $@
4960 test-libsystemd-sym.c: \
4961 src/libsystemd/libsystemd.sym \
4962 src/systemd/sd-bus.h \
4963 src/systemd/sd-utf8.h \
4964 src/systemd/sd-login.h
4965 $(generate-sym-test)
4967 test-libsystemd-daemon-sym.c: \
4968 src/libsystemd-daemon/libsystemd-daemon.sym \
4969 src/systemd/sd-daemon.h
4970 $(generate-sym-test)
4972 test-libsystemd-id128-sym.c: \
4973 src/compat-libs/libsystemd-id128.sym \
4974 src/systemd/sd-id128.h
4975 $(generate-sym-test)
4977 test-libsystemd-journal-sym.c: \
4978 src/journal/libsystemd-journal.sym \
4979 src/systemd/sd-journal.h
4980 $(generate-sym-test)
4982 test-libsystemd-login-sym.c: \
4983 src/compat-libs/libsystemd-login.sym \
4984 src/systemd/sd-login.h
4985 $(generate-sym-test)
4987 test-libudev-sym.c: \
4988 src/libudev/libudev.sym \
4990 $(generate-sym-test)
4992 test_libsystemd_sym_SOURCES = \
4993 test-libsystemd-sym.c
4994 test_libsystemd_sym_LDADD = \
4997 test_libsystemd_daemon_sym_SOURCES = \
4998 test-libsystemd-daemon-sym.c
4999 test_libsystemd_daemon_sym_LDADD = \
5000 libsystemd-daemon.la
5002 test_libsystemd_id128_sym_SOURCES = \
5003 test-libsystemd-id128-sym.c
5004 test_libsystemd_id128_sym_LDADD = \
5007 test_libsystemd_journal_sym_SOURCES = \
5008 test-libsystemd-journal-sym.c
5009 test_libsystemd_journal_sym_LDADD = \
5010 libsystemd-journal.la
5012 test_libsystemd_login_sym_SOURCES = \
5013 test-libsystemd-login-sym.c
5014 test_libsystemd_login_sym_LDADD = \
5017 test_libudev_sym_SOURCES = \
5019 test_libudev_sym_LDADD = \
5023 $(test_libsystemd_sym_SOURCES) \
5024 $(test_libsystemd_daemon_sym_SOURCES) \
5025 $(test_libsystemd_journal_sym_SOURCES) \
5026 $(test_libudev_sym_SOURCES)
5029 test-libsystemd-sym \
5030 test-libsystemd-daemon-sym \
5031 test-libsystemd-journal-sym \
5034 if ENABLE_COMPAT_LIBS
5036 $(test_libsystemd_login_sym_SOURCES) \
5037 $(test_libsystemd_id128_sym_SOURCES)
5040 test-libsystemd-login-sym \
5041 test-libsystemd-id128-sym
5046 cppcheck --enable=all -q $(top_srcdir)
5048 # Used to extract compile flags for YCM.