1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
46 LIBSYSTEMD_LOGIN_CURRENT=9
47 LIBSYSTEMD_LOGIN_REVISION=1
48 LIBSYSTEMD_LOGIN_AGE=9
50 LIBSYSTEMD_DAEMON_CURRENT=0
51 LIBSYSTEMD_DAEMON_REVISION=10
52 LIBSYSTEMD_DAEMON_AGE=0
54 LIBSYSTEMD_ID128_CURRENT=0
55 LIBSYSTEMD_ID128_REVISION=26
56 LIBSYSTEMD_ID128_AGE=0
58 LIBSYSTEMD_JOURNAL_CURRENT=11
59 LIBSYSTEMD_JOURNAL_REVISION=3
60 LIBSYSTEMD_JOURNAL_AGE=11
62 LIBSYSTEMD_BUS_CURRENT=0
63 LIBSYSTEMD_BUS_REVISION=0
66 # Dirs of external packages
67 dbuspolicydir=@dbuspolicydir@
68 dbussessionservicedir=@dbussessionservicedir@
69 dbussystemservicedir=@dbussystemservicedir@
71 pamconfdir=@pamconfdir@
72 pkgconfigdatadir=$(datadir)/pkgconfig
73 pkgconfiglibdir=$(libdir)/pkgconfig
74 polkitpolicydir=$(datadir)/polkit-1/actions
75 bashcompletiondir=@bashcompletiondir@
76 zshcompletiondir=@zshcompletiondir@
77 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
78 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
79 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
80 varlogdir=$(localstatedir)/log
81 systemdstatedir=$(localstatedir)/lib/systemd
82 catalogstatedir=$(systemdstatedir)/catalog
84 # Our own, non-special dirs
85 pkgsysconfdir=$(sysconfdir)/systemd
86 userunitdir=$(prefix)/lib/systemd/user
87 userpresetdir=$(prefix)/lib/systemd/user-preset
88 tmpfilesdir=$(prefix)/lib/tmpfiles.d
89 sysctldir=$(prefix)/lib/sysctl.d
90 networkdir=$(prefix)/lib/systemd/network
91 pkgincludedir=$(includedir)/systemd
92 systemgeneratordir=$(rootlibexecdir)/system-generators
93 usergeneratordir=$(prefix)/lib/systemd/user-generators
94 systemshutdowndir=$(rootlibexecdir)/system-shutdown
95 systemsleepdir=$(rootlibexecdir)/system-sleep
96 systemunitdir=$(rootprefix)/lib/systemd/system
97 systempresetdir=$(rootprefix)/lib/systemd/system-preset
98 udevlibexecdir=$(rootprefix)/lib/udev
99 udevhomedir=$(udevlibexecdir)
100 udevrulesdir=$(udevlibexecdir)/rules.d
101 udevhwdbdir=$(udevlibexecdir)/hwdb.d
102 catalogdir=$(prefix)/lib/systemd/catalog
103 kernelinstalldir = $(prefix)/lib/kernel/install.d
105 # And these are the special ones for /
106 rootprefix=@rootprefix@
107 rootbindir=$(rootprefix)/bin
108 rootlibexecdir=$(rootprefix)/lib/systemd
110 CLEANFILES = $(BUILT_SOURCES)
115 UNINSTALL_EXEC_HOOKS =
117 UNINSTALL_DATA_HOOKS =
118 DISTCLEAN_LOCAL_HOOKS =
126 polkitpolicy_in_in_files =
127 polkitpolicy_in_files =
129 dist_udevrules_DATA =
130 nodist_udevrules_DATA =
131 dist_pkgsysconf_DATA =
133 dist_dbuspolicy_DATA =
134 dist_dbussystemservice_DATA =
140 noinst_PROGRAMS = $(manual_tests) $(tests)
146 udevlibexec_PROGRAMS =
149 -include $(top_builddir)/config.h \
150 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
151 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
152 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
153 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
154 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
155 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
156 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
157 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
158 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
159 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
160 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
161 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
162 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
163 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
164 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
165 -DROOTPREFIX=\"$(rootprefix)\" \
166 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
167 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
168 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
169 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
170 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
171 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
172 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
173 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
174 -DX_SERVER=\"$(bindir)/X\" \
175 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
176 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
177 -DQUOTACHECK=\"$(QUOTACHECK)\" \
178 -DKEXEC=\"$(KEXEC)\" \
179 -I $(top_srcdir)/src \
180 -I $(top_builddir)/src/shared \
181 -I $(top_srcdir)/src/shared \
182 -I $(top_srcdir)/src/network \
183 -I $(top_srcdir)/src/login \
184 -I $(top_srcdir)/src/journal \
185 -I $(top_srcdir)/src/systemd \
186 -I $(top_builddir)/src/core \
187 -I $(top_srcdir)/src/core \
188 -I $(top_srcdir)/src/libudev \
189 -I $(top_srcdir)/src/udev \
190 -I $(top_srcdir)/src/udev/net \
191 -I $(top_builddir)/src/udev \
192 -I $(top_srcdir)/src/libsystemd \
195 AM_CFLAGS = $(OUR_CFLAGS)
196 AM_LDFLAGS = $(OUR_LDFLAGS)
198 # ------------------------------------------------------------------------------
199 define move-to-rootlibdir
200 if test "$(libdir)" != "$(rootlibdir)"; then \
201 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
202 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
203 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
204 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
205 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
211 RUNLEVEL1_TARGET_WANTS =
212 RUNLEVEL2_TARGET_WANTS =
213 RUNLEVEL3_TARGET_WANTS =
214 RUNLEVEL4_TARGET_WANTS =
215 RUNLEVEL5_TARGET_WANTS =
216 SHUTDOWN_TARGET_WANTS =
217 LOCAL_FS_TARGET_WANTS =
218 MULTI_USER_TARGET_WANTS =
219 SYSINIT_TARGET_WANTS =
220 SOCKETS_TARGET_WANTS =
221 BUSNAMES_TARGET_WANTS =
222 TIMERS_TARGET_WANTS =
223 USER_SOCKETS_TARGET_WANTS =
224 USER_BUSNAMES_TARGET_WANTS =
226 SYSTEM_UNIT_ALIASES =
231 install-target-wants-hook:
232 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
233 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
234 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
235 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
236 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
237 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
238 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
239 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
240 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
241 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
242 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
243 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
244 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
245 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
246 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
249 [ -z "$$what" ] || ( \
250 dir=$(DESTDIR)$$dir/$$wants.wants && \
251 $(MKDIR_P) -m 0755 $$dir && \
254 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
257 install-directories-hook:
258 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
260 install-aliases-hook:
261 set -- $(SYSTEM_UNIT_ALIASES) && \
262 dir=$(systemunitdir) && $(install-aliases)
263 set -- $(USER_UNIT_ALIASES) && \
264 dir=$(userunitdir) && $(install-aliases)
265 set -- $(GENERAL_ALIASES) && \
266 dir= && $(install-aliases)
268 define install-aliases
269 while [ -n "$$1" ]; do \
270 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
271 rm -f $(DESTDIR)$$dir/$$2 && \
272 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
273 shift 2 || exit $$?; \
277 INSTALL_EXEC_HOOKS += \
278 install-target-wants-hook \
279 install-directories-hook \
282 # ------------------------------------------------------------------------------
283 AM_V_M4 = $(AM_V_M4_$(V))
284 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
285 AM_V_M4_0 = @echo " M4 " $@;
287 AM_V_XSLT = $(AM_V_XSLT_$(V))
288 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
289 AM_V_XSLT_0 = @echo " XSLT " $@;
291 AM_V_GPERF = $(AM_V_GPERF_$(V))
292 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
293 AM_V_GPERF_0 = @echo " GPERF " $@;
295 AM_V_LN = $(AM_V_LN_$(V))
296 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
297 AM_V_LN_0 = @echo " LN " $@;
299 # ------------------------------------------------------------------------------
303 systemd-ask-password \
304 systemd-tty-ask-password-agent \
305 systemd-machine-id-setup
311 systemd-detect-virt \
317 src/kernel-install/kernel-install
319 dist_kernelinstall_SCRIPTS = \
320 src/kernel-install/50-depmod.install \
321 src/kernel-install/90-loaderentry.install
323 rootlibexec_PROGRAMS = \
325 systemd-cgroups-agent \
327 systemd-update-utmp \
331 systemd-reply-password \
337 systemd-socket-proxyd
339 systemgenerator_PROGRAMS = \
340 systemd-getty-generator \
341 systemd-fstab-generator \
342 systemd-system-update-generator
344 dist_bashcompletion_DATA = \
345 shell-completion/bash/journalctl \
346 shell-completion/bash/systemctl \
347 shell-completion/bash/systemd-analyze \
348 shell-completion/bash/systemd-run \
349 shell-completion/bash/udevadm \
350 shell-completion/bash/kernel-install
352 dist_zshcompletion_DATA = \
353 shell-completion/zsh/_systemctl \
354 shell-completion/zsh/_journalctl \
355 shell-completion/zsh/_udevadm \
356 shell-completion/zsh/_kernel-install \
357 shell-completion/zsh/_systemd-nspawn \
358 shell-completion/zsh/_systemd-analyze \
359 shell-completion/zsh/_systemd-run \
360 shell-completion/zsh/_sd_hosts_or_user_at_host \
361 shell-completion/zsh/_systemd-delta \
362 shell-completion/zsh/_systemd
365 sysctl.d/50-default.conf
367 dist_systemunit_DATA = \
368 units/graphical.target \
369 units/multi-user.target \
370 units/emergency.service \
371 units/emergency.target \
372 units/sysinit.target \
377 units/local-fs.target \
378 units/local-fs-pre.target \
379 units/initrd.target \
380 units/initrd-fs.target \
381 units/initrd-root-fs.target \
382 units/remote-fs.target \
383 units/remote-fs-pre.target \
384 units/network.target \
385 units/network-online.target \
386 units/nss-lookup.target \
387 units/nss-user-lookup.target \
388 units/hibernate.target \
389 units/hybrid-sleep.target \
390 units/poweroff.target \
391 units/reboot.target \
392 units/rescue.target \
393 units/rpcbind.target \
394 units/time-sync.target \
395 units/shutdown.target \
397 units/umount.target \
398 units/sigpwr.target \
400 units/sockets.target \
401 units/busnames.target \
402 units/timers.target \
404 units/suspend.target \
406 units/slices.target \
409 units/systemd-initctl.socket \
410 units/systemd-shutdownd.socket \
411 units/syslog.socket \
412 units/dev-hugepages.mount \
413 units/dev-mqueue.mount \
414 units/sys-kernel-config.mount \
415 units/sys-kernel-debug.mount \
416 units/sys-fs-fuse-connections.mount \
418 units/printer.target \
420 units/bluetooth.target \
421 units/smartcard.target \
422 units/systemd-ask-password-wall.path \
423 units/systemd-ask-password-console.path \
424 units/systemd-udevd-control.socket \
425 units/systemd-udevd-kernel.socket \
426 units/system-update.target \
427 units/initrd-switch-root.target
429 nodist_systemunit_DATA = \
430 units/getty@.service \
431 units/serial-getty@.service \
432 units/console-shell.service \
433 units/console-getty.service \
434 units/container-getty@.service \
435 units/systemd-initctl.service \
436 units/systemd-shutdownd.service \
437 units/systemd-remount-fs.service \
438 units/systemd-update-utmp.service \
439 units/systemd-update-utmp-runlevel.service \
440 units/systemd-ask-password-wall.service \
441 units/systemd-ask-password-console.service \
442 units/systemd-sysctl.service \
443 units/emergency.service \
444 units/rescue.service \
445 units/user@.service \
446 units/systemd-hibernate.service \
447 units/systemd-hybrid-sleep.service \
448 units/systemd-suspend.service \
449 units/systemd-halt.service \
450 units/systemd-poweroff.service \
451 units/systemd-reboot.service \
452 units/systemd-kexec.service \
453 units/systemd-fsck@.service \
454 units/systemd-fsck-root.service \
455 units/systemd-udevd.service \
456 units/systemd-udev-trigger.service \
457 units/systemd-udev-settle.service \
458 units/debug-shell.service \
459 units/initrd-parse-etc.service \
460 units/initrd-cleanup.service \
461 units/initrd-udevadm-cleanup-db.service \
462 units/initrd-switch-root.service \
463 units/systemd-nspawn@.service
465 dist_userunit_DATA = \
466 units/user/basic.target \
467 units/user/default.target \
468 units/user/exit.target
470 nodist_userunit_DATA = \
471 units/user/systemd-exit.service
474 units/getty@.service.m4 \
475 units/serial-getty@.service.m4 \
476 units/console-shell.service.m4.in \
477 units/console-getty.service.m4.in \
478 units/container-getty@.service.m4.in \
479 units/rescue.service.m4.in \
480 units/systemd-initctl.service.in \
481 units/systemd-shutdownd.service.in \
482 units/systemd-remount-fs.service.in \
483 units/systemd-update-utmp.service.in \
484 units/systemd-update-utmp-runlevel.service.in \
485 units/systemd-ask-password-wall.service.in \
486 units/systemd-ask-password-console.service.in \
487 units/systemd-sysctl.service.in \
488 units/emergency.service.in \
489 units/systemd-halt.service.in \
490 units/systemd-poweroff.service.in \
491 units/systemd-reboot.service.in \
492 units/systemd-kexec.service.in \
493 units/user/systemd-exit.service.in \
494 units/systemd-fsck@.service.in \
495 units/systemd-fsck-root.service.in \
496 units/user@.service.in \
497 units/systemd-udevd.service \
498 units/systemd-udev-trigger.service \
499 units/systemd-udev-settle.service \
500 units/debug-shell.service.in \
501 units/systemd-hibernate.service.in \
502 units/systemd-hybrid-sleep.service.in \
503 units/systemd-suspend.service.in \
504 units/quotaon.service.in \
505 units/initrd-parse-etc.service.in \
506 units/initrd-cleanup.service.in \
507 units/initrd-udevadm-cleanup-db.service.in \
508 units/initrd-switch-root.service.in \
509 units/systemd-nspawn@.service.in
512 units/console-shell.service.m4 \
513 units/console-getty.service.m4 \
514 units/container-getty@.service.m4 \
515 units/rescue.service.m4 \
516 units/user@.service.m4
519 nodist_systemunit_DATA += \
520 units/rc-local.service \
521 units/halt-local.service
523 systemgenerator_PROGRAMS += \
524 systemd-rc-local-generator
528 units/rc-local.service.in \
529 units/halt-local.service.in
531 # automake is broken and can't handle files with a dash in front
532 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
534 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
536 units-uninstall-hook:
537 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
539 INSTALL_DATA_HOOKS += units-install-hook
540 UNINSTALL_DATA_HOOKS += units-uninstall-hook
550 @INTLTOOL_POLICY_RULE@
552 # ------------------------------------------------------------------------------
557 include Makefile-man.am
560 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
563 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
565 ${XML_FILES:.xml=.html}
567 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
584 $(AM_V_at)$(MKDIR_P) $(dir $@)
585 $(AM_V_LN)$(LN_S) -f ../../man $@
594 man/index.html: man/systemd.index.html
595 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
603 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
604 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
605 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
607 update-man-list: make-man-rules.py $(XML_GLOB)
608 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
609 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
610 @echo "Makefile-man.am has been regenerated"
612 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
613 $(AM_V_at)$(MKDIR_P) $(dir $@)
614 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
616 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
617 $(AM_V_at)$(MKDIR_P) $(dir $@)
618 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
621 man/systemd.index.xml \
623 man/systemd.directives.xml
626 man/systemd.index.xml \
627 man/systemd.directives.xml
639 make-directive-index.py \
642 # ------------------------------------------------------------------------------
643 noinst_LTLIBRARIES += \
646 libsystemd_dns_la_SOURCES = \
647 src/systemd/sd-dns.h \
648 src/libsystemd/sd-dns.c \
649 src/libsystemd/dns-util.h
651 libsystemd_dns_la_LIBADD = \
654 libsystemd_dns_la_CFLAGS = \
658 src/libsystemd/test-dns.c \
671 # ------------------------------------------------------------------------------
672 noinst_LTLIBRARIES += \
675 libsystemd_shared_la_SOURCES = \
676 src/shared/linux/auto_dev-ioctl.h \
677 src/shared/linux/fanotify.h \
678 src/shared/linux/seccomp.h \
679 src/shared/linux/seccomp-bpf.h \
680 src/shared/ioprio.h \
681 src/shared/missing.h \
682 src/shared/initreq.h \
683 src/shared/securebits.h \
684 src/shared/special.h \
688 src/shared/sparse-endian.h \
689 src/shared/refcnt.h \
690 src/shared/udev-util.h \
691 src/shared/bus-errors.h \
692 src/shared/device-nodes.c \
693 src/shared/device-nodes.h \
698 src/shared/efivars.c \
699 src/shared/efivars.h \
700 src/shared/path-util.c \
701 src/shared/path-util.h \
702 src/shared/time-util.c \
703 src/shared/time-util.h \
704 src/shared/hashmap.c \
705 src/shared/hashmap.h \
706 src/shared/siphash24.c \
707 src/shared/siphash24.h \
714 src/shared/sleep-config.c \
715 src/shared/sleep-config.h \
718 src/shared/env-util.c \
719 src/shared/env-util.h \
720 src/shared/strbuf.c \
721 src/shared/strbuf.h \
722 src/shared/strxcpyx.c \
723 src/shared/strxcpyx.h \
724 src/shared/conf-parser.c \
725 src/shared/conf-parser.h \
728 src/shared/ratelimit.h \
729 src/shared/ratelimit.c \
730 src/shared/exit-status.c \
731 src/shared/exit-status.h \
734 src/shared/gunicode.c \
735 src/shared/gunicode.h \
738 src/shared/socket-util.c \
739 src/shared/socket-util.h \
740 src/shared/conf-files.c \
741 src/shared/conf-files.h \
742 src/shared/cgroup-util.c \
743 src/shared/cgroup-util.h \
744 src/shared/cgroup-show.c \
745 src/shared/cgroup-show.h \
746 src/shared/unit-name.c \
747 src/shared/unit-name.h \
748 src/shared/utmp-wtmp.c \
749 src/shared/utmp-wtmp.h \
750 src/shared/watchdog.c \
751 src/shared/watchdog.h \
752 src/shared/spawn-ask-password-agent.c \
753 src/shared/spawn-ask-password-agent.h \
754 src/shared/replace-var.c \
755 src/shared/replace-var.h \
756 src/shared/spawn-polkit-agent.c \
757 src/shared/spawn-polkit-agent.h \
758 src/shared/hwclock.c \
759 src/shared/hwclock.h \
760 src/shared/time-dst.c \
761 src/shared/time-dst.h \
762 src/shared/calendarspec.c \
763 src/shared/calendarspec.h \
764 src/shared/fileio.c \
765 src/shared/fileio.h \
766 src/shared/output-mode.h \
767 src/shared/MurmurHash2.c \
768 src/shared/MurmurHash2.h \
769 src/shared/acpi-fpdt.h \
770 src/shared/acpi-fpdt.c \
771 src/shared/boot-timestamps.h \
772 src/shared/boot-timestamps.c \
775 src/shared/smack-util.c \
776 src/shared/smack-util.h \
777 src/shared/apparmor-util.c \
778 src/shared/apparmor-util.h \
779 src/shared/ima-util.c \
780 src/shared/ima-util.h \
781 src/shared/ptyfwd.c \
782 src/shared/ptyfwd.h \
783 src/shared/net-util.c \
784 src/shared/net-util.h \
785 src/shared/errno-list.c \
786 src/shared/errno-list.h \
787 src/shared/syscall-list.c \
788 src/shared/syscall-list.h \
794 nodist_libsystemd_shared_la_SOURCES = \
795 src/shared/errno-from-name.h \
796 src/shared/errno-to-name.h \
797 src/shared/syscall-from-name.h \
798 src/shared/syscall-to-name.h
800 # ------------------------------------------------------------------------------
801 noinst_LTLIBRARIES += \
804 libsystemd_units_la_SOURCES = \
805 src/shared/install.c \
806 src/shared/install.h \
807 src/shared/install-printf.c \
808 src/shared/install-printf.h \
809 src/shared/path-lookup.c \
810 src/shared/path-lookup.h \
811 src/shared/specifier.c \
812 src/shared/specifier.h
814 # ------------------------------------------------------------------------------
815 noinst_LTLIBRARIES += \
818 libsystemd_label_la_SOURCES = \
819 src/shared/socket-label.c \
822 src/shared/selinux-util.c \
823 src/shared/selinux-util.h \
824 src/shared/mkdir-label.c \
825 src/shared/ask-password-api.c \
826 src/shared/ask-password-api.h \
827 src/shared/fileio-label.c \
828 src/shared/fileio-label.h \
829 src/shared/dev-setup.c \
830 src/shared/dev-setup.h
832 libsystemd_label_la_CFLAGS = \
836 libsystemd_label_la_LIBADD = \
839 # ------------------------------------------------------------------------------
840 noinst_LTLIBRARIES += \
843 libsystemd_logs_la_SOURCES = \
844 src/shared/logs-show.c \
845 src/shared/logs-show.h
847 # ------------------------------------------------------------------------------
848 noinst_LTLIBRARIES += \
849 libsystemd-capability.la
851 libsystemd_capability_la_SOURCES = \
852 src/shared/capability.c \
853 src/shared/capability.h
855 libsystemd_capability_la_CFLAGS = \
859 libsystemd_capability_la_LIBADD = \
862 # ------------------------------------------------------------------------------
864 noinst_LTLIBRARIES += \
867 libsystemd_acl_la_SOURCES = \
868 src/shared/acl-util.c \
869 src/shared/acl-util.h
871 libsystemd_acl_la_CFLAGS = \
875 libsystemd_acl_la_LIBADD = \
879 # ------------------------------------------------------------------------------
880 noinst_LTLIBRARIES += \
883 libsystemd_core_la_SOURCES = \
886 src/core/unit-printf.c \
887 src/core/unit-printf.h \
892 src/core/transaction.c \
893 src/core/transaction.h \
894 src/core/load-fragment.c \
895 src/core/load-fragment.h \
904 src/core/snapshot.c \
905 src/core/snapshot.h \
910 src/core/automount.c \
911 src/core/automount.h \
922 src/core/load-dropin.c \
923 src/core/load-dropin.h \
930 src/core/dbus-manager.c \
931 src/core/dbus-manager.h \
932 src/core/dbus-unit.c \
933 src/core/dbus-unit.h \
934 src/core/dbus-job.c \
935 src/core/dbus-job.h \
936 src/core/dbus-service.c \
937 src/core/dbus-service.h \
938 src/core/dbus-socket.c \
939 src/core/dbus-socket.h \
940 src/core/dbus-busname.c \
941 src/core/dbus-busname.h \
942 src/core/dbus-target.c \
943 src/core/dbus-target.h \
944 src/core/dbus-snapshot.c \
945 src/core/dbus-snapshot.h \
946 src/core/dbus-device.c \
947 src/core/dbus-device.h \
948 src/core/dbus-mount.c \
949 src/core/dbus-mount.h \
950 src/core/dbus-automount.c \
951 src/core/dbus-automount.h \
952 src/core/dbus-swap.c \
953 src/core/dbus-swap.h \
954 src/core/dbus-timer.c \
955 src/core/dbus-timer.h \
956 src/core/dbus-path.c \
957 src/core/dbus-path.h \
958 src/core/dbus-slice.c \
959 src/core/dbus-slice.h \
960 src/core/dbus-scope.c \
961 src/core/dbus-scope.h \
962 src/core/dbus-execute.c \
963 src/core/dbus-execute.h \
964 src/core/dbus-kill.c \
965 src/core/dbus-kill.h \
966 src/core/dbus-cgroup.c \
967 src/core/dbus-cgroup.h \
968 src/core/dbus-client-track.c \
969 src/core/dbus-client-track.h \
972 src/core/selinux-access.c \
973 src/core/selinux-access.h \
974 src/core/selinux-setup.c \
975 src/core/selinux-setup.h \
976 src/core/smack-setup.c \
977 src/core/smack-setup.h \
978 src/core/ima-setup.c \
979 src/core/ima-setup.h \
980 src/core/locale-setup.h \
981 src/core/locale-setup.c \
982 src/core/hostname-setup.c \
983 src/core/hostname-setup.h \
984 src/core/machine-id-setup.c \
985 src/core/machine-id-setup.h \
986 src/core/mount-setup.c \
987 src/core/mount-setup.h \
988 src/core/loopback-setup.h \
989 src/core/loopback-setup.c \
990 src/core/condition.c \
991 src/core/condition.h \
992 src/core/namespace.c \
993 src/core/namespace.h \
997 src/core/sysfs-show.h \
998 src/core/switch-root.h \
999 src/core/switch-root.c \
1000 src/core/killall.h \
1001 src/core/killall.c \
1002 src/core/audit-fd.c \
1003 src/core/audit-fd.h \
1008 libsystemd_core_la_SOURCES += \
1009 src/core/kmod-setup.c \
1010 src/core/kmod-setup.h
1013 nodist_libsystemd_core_la_SOURCES = \
1014 src/core/load-fragment-gperf.c \
1015 src/core/load-fragment-gperf-nulstr.c
1017 libsystemd_core_la_CFLAGS = \
1025 libsystemd_core_la_LIBADD = \
1026 libsystemd-capability.la \
1027 libsystemd-units.la \
1028 libsystemd-label.la \
1029 libsystemd-id128-internal.la \
1030 libsystemd-daemon-internal.la \
1031 libudev-internal.la \
1032 libsystemd-shared.la \
1033 libsystemd-internal.la \
1040 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1041 $(AM_V_at)$(MKDIR_P) $(dir $@)
1042 $(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 ";" }' < $< > $@
1045 src/core/load-fragment-gperf.gperf.m4
1048 src/core/load-fragment-gperf.gperf \
1049 src/core/load-fragment-gperf.c \
1050 src/core/load-fragment-gperf-nulstr.c \
1051 src/shared/syscall-list.txt \
1052 src/shared/syscall-from-name.gperf \
1053 src/shared/errno-list.txt \
1054 src/shared/errno-from-name.gperf
1057 src/shared/syscall-from-name.h \
1058 src/shared/syscall-to-name.h \
1059 src/shared/errno-from-name.h \
1060 src/shared/errno-to-name.h
1062 src/shared/syscall-list.txt:
1063 $(AM_V_at)$(MKDIR_P) $(dir $@)
1064 $(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; }' > $@
1066 src/shared/syscall-from-name.gperf: src/shared/syscall-list.txt
1067 $(AM_V_at)$(MKDIR_P) $(dir $@)
1068 $(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 }' < $< > $@
1070 src/shared/syscall-from-name.h: src/shared/syscall-from-name.gperf
1071 $(AM_V_at)$(MKDIR_P) $(dir $@)
1072 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1074 src/shared/syscall-to-name.h: src/shared/syscall-list.txt
1075 $(AM_V_at)$(MKDIR_P) $(dir $@)
1076 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1078 src/shared/errno-list.txt:
1079 $(AM_V_at)$(MKDIR_P) $(dir $@)
1080 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+[0-9]/ { print $$2; }' > $@
1082 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1083 $(AM_V_at)$(MKDIR_P) $(dir $@)
1084 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1086 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1087 $(AM_V_at)$(MKDIR_P) $(dir $@)
1088 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1090 src/shared/errno-to-name.h: src/shared/errno-list.txt
1091 $(AM_V_at)$(MKDIR_P) $(dir $@)
1092 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1094 # ------------------------------------------------------------------------------
1099 libsystemd-core.la \
1102 dist_pkgsysconf_DATA += \
1103 src/core/system.conf \
1106 dist_dbuspolicy_DATA += \
1107 src/core/org.freedesktop.systemd1.conf
1109 dist_dbussystemservice_DATA += \
1110 src/core/org.freedesktop.systemd1.service
1112 polkitpolicy_in_in_files += \
1113 src/core/org.freedesktop.systemd1.policy.in.in
1115 pkgconfigdata_DATA = \
1118 nodist_rpmmacros_DATA = \
1119 src/core/macros.systemd
1122 src/core/systemd.pc.in \
1123 src/core/macros.systemd.in
1126 src/core/macros.systemd \
1127 src/core/org.freedesktop.systemd1.policy.in
1129 # ------------------------------------------------------------------------------
1159 test-strip-tab-ansi \
1172 test/sched_idle_bad.service \
1173 test/sched_idle_ok.service \
1174 test/sched_rr_bad.service \
1175 test/sched_rr_ok.service \
1176 test/sched_rr_change.service \
1178 test/daughter.service \
1182 src/test/test-helper.h
1184 test_device_nodes_SOURCES = \
1185 src/test/test-device-nodes.c
1187 test_device_nodes_LDADD = \
1188 libsystemd-shared.la
1190 test_engine_SOURCES = \
1191 src/test/test-engine.c
1193 test_engine_LDADD = \
1194 libsystemd-core.la \
1197 test_job_type_SOURCES = \
1198 src/test/test-job-type.c
1200 test_job_type_LDADD = \
1201 libsystemd-core.la \
1210 test_loopback_SOURCES = \
1211 src/test/test-loopback.c
1213 test_loopback_LDADD = \
1216 test_hostname_SOURCES = \
1217 src/test/test-hostname.c
1219 test_hostname_LDADD = \
1226 test_boot_timestamp_SOURCES = \
1227 src/test/test-boot-timestamps.c
1229 test_boot_timestamp_LDADD = \
1230 libsystemd-shared.la
1233 test_unit_name_SOURCES = \
1234 src/test/test-unit-name.c
1236 test_unit_name_LDADD = \
1237 libsystemd-core.la \
1240 test_unit_file_SOURCES = \
1241 src/test/test-unit-file.c
1243 test_unit_file_LDADD = \
1244 libsystemd-core.la \
1247 test_utf8_SOURCES = \
1248 src/test/test-utf8.c
1251 libsystemd-shared.la
1253 test_util_SOURCES = \
1254 src/test/test-util.c
1259 test_namespace_SOURCES = \
1260 src/test/test-namespace.c
1262 test_namespace_LDADD = \
1265 test_hashmap_SOURCES = \
1266 src/test/test-hashmap.c
1268 test_hashmap_LDADD = \
1271 test_xml_SOURCES = \
1275 libsystemd-shared.la
1277 test_list_SOURCES = \
1278 src/test/test-list.c
1283 test_tables_SOURCES = \
1284 src/test/test-tables.c \
1285 src/shared/test-tables.h
1287 test_tables_LDADD = \
1288 libsystemd-logs.la \
1289 libsystemd-journal-internal.la \
1290 libsystemd-core.la \
1293 test_prioq_SOURCES = \
1294 src/test/test-prioq.c
1296 test_prioq_LDADD = \
1299 test_fileio_SOURCES = \
1300 src/test/test-fileio.c
1302 test_fileio_LDADD = \
1305 test_time_SOURCES = \
1306 src/test/test-time.c
1311 test_log_SOURCES = \
1317 test_ellipsize_SOURCES = \
1318 src/test/test-ellipsize.c
1320 test_ellipsize_LDADD = \
1323 test_date_SOURCES = \
1324 src/test/test-date.c
1329 test_sleep_SOURCES = \
1330 src/test/test-sleep.c
1332 test_sleep_LDADD = \
1335 test_replace_var_SOURCES = \
1336 src/test/test-replace-var.c
1338 test_replace_var_LDADD = \
1339 libsystemd-shared.la
1341 test_calendarspec_SOURCES = \
1342 src/test/test-calendarspec.c
1344 test_calendarspec_LDADD = \
1345 libsystemd-shared.la
1347 test_strip_tab_ansi_SOURCES = \
1348 src/test/test-strip-tab-ansi.c
1350 test_strip_tab_ansi_LDADD = \
1351 libsystemd-shared.la
1353 test_daemon_SOURCES = \
1354 src/test/test-daemon.c
1356 test_daemon_LDADD = \
1357 libsystemd-daemon-internal.la \
1358 libsystemd-shared.la
1360 test_cgroup_SOURCES = \
1361 src/test/test-cgroup.c
1363 test_cgroup_LDADD = \
1364 libsystemd-label.la \
1365 libsystemd-shared.la
1367 test_cgroup_mask_SOURCES = \
1368 src/test/test-cgroup-mask.c
1370 test_cgroup_mask_CPPFLAGS = \
1372 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1374 test_cgroup_mask_LDADD = \
1375 libsystemd-core.la \
1378 test_cgroup_util_SOURCES = \
1379 src/test/test-cgroup-util.c
1381 test_cgroup_util_LDADD = \
1382 libsystemd-label.la \
1383 libsystemd-daemon-internal.la \
1384 libsystemd-shared.la
1386 test_env_replace_SOURCES = \
1387 src/test/test-env-replace.c
1389 test_env_replace_LDADD = \
1390 libsystemd-shared.la
1392 test_strbuf_SOURCES = \
1393 src/test/test-strbuf.c
1395 test_strbuf_LDADD = \
1396 libsystemd-shared.la
1398 test_strv_SOURCES = \
1399 src/test/test-strv.c
1402 libsystemd-units.la \
1403 libsystemd-id128-internal.la \
1404 libsystemd-shared.la
1406 test_path_util_SOURCES = \
1407 src/test/test-path-util.c
1409 test_path_util_LDADD = \
1410 libsystemd-shared.la
1412 test_strxcpyx_SOURCES = \
1413 src/test/test-strxcpyx.c
1415 test_strxcpyx_LDADD = \
1416 libsystemd-shared.la
1418 test_install_SOURCES = \
1419 src/test/test-install.c
1421 test_install_LDADD = \
1422 libsystemd-units.la \
1423 libsystemd-label.la \
1424 libsystemd-id128-internal.la \
1425 libsystemd-shared.la
1427 test_watchdog_SOURCES = \
1428 src/test/test-watchdog.c
1430 test_watchdog_LDADD = \
1431 libsystemd-shared.la
1433 test_sched_prio_SOURCES = \
1434 src/test/test-sched-prio.c
1436 test_sched_prio_CPPFLAGS = \
1438 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1440 test_sched_prio_LDADD = \
1441 libsystemd-core.la \
1444 # ------------------------------------------------------------------------------
1445 ## .PHONY so it always rebuilds it
1446 .PHONY: coverage lcov-run lcov-report
1448 # run lcov from scratch, always
1453 coverage_dir = coverage
1454 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1457 # reset run coverage tests
1459 @rm -rf $(coverage_dir)
1460 lcov $(coverage_opts) --zerocounters
1463 # generate report based on current coverage data
1465 $(MKDIR_P) $(coverage_dir)
1466 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1467 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1468 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1469 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1471 # lcov doesn't work properly with vpath builds, make sure that bad
1472 # output is not uploaded by mistake.
1473 coverage-sync: coverage
1474 test "$(builddir)" = "$(srcdir)"
1475 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1478 lcov-run lcov-report:
1479 echo "Need to reconfigure with --enable-coverage"
1482 # ------------------------------------------------------------------------------
1483 systemd_analyze_SOURCES = \
1484 src/analyze/analyze.c
1486 systemd_analyze_LDADD = \
1487 libsystemd-internal.la \
1488 libsystemd-id128-internal.la \
1489 libsystemd-daemon-internal.la \
1490 libsystemd-shared.la
1492 # ------------------------------------------------------------------------------
1493 systemd_initctl_SOURCES = \
1494 src/initctl/initctl.c
1496 systemd_initctl_LDADD = \
1497 libsystemd-internal.la \
1498 libsystemd-id128-internal.la \
1499 libsystemd-daemon-internal.la \
1500 libsystemd-shared.la
1502 # ------------------------------------------------------------------------------
1503 systemd_update_utmp_SOURCES = \
1504 src/update-utmp/update-utmp.c
1506 systemd_update_utmp_CFLAGS = \
1510 systemd_update_utmp_LDADD = \
1511 libsystemd-internal.la \
1512 libsystemd-id128-internal.la \
1513 libsystemd-daemon-internal.la \
1514 libsystemd-shared.la \
1517 # ------------------------------------------------------------------------------
1518 systemd_shutdownd_SOURCES = \
1519 src/shutdownd/shutdownd.c
1521 systemd_shutdownd_LDADD = \
1522 libsystemd-label.la \
1523 libsystemd-daemon-internal.la \
1524 libsystemd-shared.la
1527 src/systemd/sd-shutdown.h
1529 # ------------------------------------------------------------------------------
1530 systemd_shutdown_SOURCES = \
1533 src/core/shutdown.c \
1534 src/core/mount-setup.c \
1535 src/core/mount-setup.h \
1536 src/core/killall.h \
1539 systemd_shutdown_LDADD = \
1540 libsystemd-label.la \
1541 libudev-internal.la \
1542 libsystemd-shared.la
1544 # ------------------------------------------------------------------------------
1546 systemd_modules_load_SOURCES = \
1547 src/modules-load/modules-load.c
1549 systemd_modules_load_CFLAGS = \
1553 systemd_modules_load_LDADD = \
1554 libsystemd-shared.la \
1557 rootlibexec_PROGRAMS += \
1558 systemd-modules-load
1560 nodist_systemunit_DATA += \
1561 units/systemd-modules-load.service
1563 SYSINIT_TARGET_WANTS += \
1564 systemd-modules-load.service
1567 nodist_systemunit_DATA += \
1568 units/kmod-static-nodes.service
1570 SYSINIT_TARGET_WANTS += \
1571 kmod-static-nodes.service
1576 units/systemd-modules-load.service.in \
1577 units/kmod-static-nodes.service.in
1579 # ------------------------------------------------------------------------------
1581 systemd_tmpfiles_SOURCES = \
1582 src/tmpfiles/tmpfiles.c
1584 systemd_tmpfiles_LDADD = \
1585 libsystemd-units.la \
1586 libsystemd-label.la \
1587 libsystemd-capability.la \
1588 libsystemd-id128-internal.la \
1589 libsystemd-shared.la
1591 rootbin_PROGRAMS += \
1594 dist_systemunit_DATA += \
1595 units/systemd-tmpfiles-clean.timer
1597 nodist_systemunit_DATA += \
1598 units/systemd-tmpfiles-setup-dev.service \
1599 units/systemd-tmpfiles-setup.service \
1600 units/systemd-tmpfiles-clean.service
1602 dist_tmpfiles_DATA = \
1603 tmpfiles.d/systemd.conf \
1604 tmpfiles.d/systemd-nologin.conf \
1605 tmpfiles.d/tmp.conf \
1609 dist_tmpfiles_DATA += \
1610 tmpfiles.d/legacy.conf
1613 SYSINIT_TARGET_WANTS += \
1614 systemd-tmpfiles-setup-dev.service \
1615 systemd-tmpfiles-setup.service
1617 dist_zshcompletion_DATA += \
1618 shell-completion/zsh/_systemd-tmpfiles
1620 TIMERS_TARGET_WANTS += \
1621 systemd-tmpfiles-clean.timer
1625 $(sysconfdir)/tmpfiles.d
1629 units/systemd-tmpfiles-setup-dev.service.in \
1630 units/systemd-tmpfiles-setup.service.in \
1631 units/systemd-tmpfiles-clean.service.in
1633 # ------------------------------------------------------------------------------
1634 systemd_machine_id_setup_SOURCES = \
1635 src/machine-id-setup/machine-id-setup-main.c \
1636 src/core/machine-id-setup.c \
1637 src/core/machine-id-setup.h
1639 systemd_machine_id_setup_LDADD = \
1640 libsystemd-label.la \
1641 libsystemd-id128-internal.la \
1642 libsystemd-shared.la
1644 # ------------------------------------------------------------------------------
1645 systemd_sysctl_SOURCES = \
1648 systemd_sysctl_LDADD = \
1649 libsystemd-shared.la
1651 # ------------------------------------------------------------------------------
1652 systemd_sleep_SOURCES = \
1655 systemd_sleep_LDADD = \
1656 libsystemd-shared.la
1658 # ------------------------------------------------------------------------------
1659 systemd_fsck_SOURCES = \
1662 systemd_fsck_LDADD = \
1663 libsystemd-internal.la \
1664 libsystemd-id128-internal.la \
1665 libsystemd-daemon-internal.la \
1666 libudev-internal.la \
1667 libsystemd-shared.la
1669 # ------------------------------------------------------------------------------
1670 systemd_ac_power_SOURCES = \
1671 src/ac-power/ac-power.c
1673 systemd_ac_power_LDADD = \
1674 libudev-internal.la \
1675 libsystemd-shared.la
1677 # ------------------------------------------------------------------------------
1678 systemd_detect_virt_SOURCES = \
1679 src/detect-virt/detect-virt.c
1681 systemd_detect_virt_LDADD = \
1682 libsystemd-shared.la
1684 systemd-detect-virt-install-hook:
1685 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1687 INSTALL_EXEC_HOOKS += \
1688 systemd-detect-virt-install-hook
1690 # ------------------------------------------------------------------------------
1691 systemd_delta_SOURCES = \
1694 systemd_delta_LDADD = \
1695 libsystemd-shared.la
1697 # ------------------------------------------------------------------------------
1698 systemd_getty_generator_SOURCES = \
1699 src/getty-generator/getty-generator.c
1701 systemd_getty_generator_LDADD = \
1702 libsystemd-label.la \
1703 libsystemd-shared.la
1705 # ------------------------------------------------------------------------------
1706 systemd_fstab_generator_SOURCES = \
1707 src/fstab-generator/fstab-generator.c \
1708 src/core/mount-setup.c
1710 systemd_fstab_generator_LDADD = \
1711 libsystemd-label.la \
1712 libsystemd-shared.la
1714 # ------------------------------------------------------------------------------
1715 systemd_system_update_generator_SOURCES = \
1716 src/system-update-generator/system-update-generator.c
1718 systemd_system_update_generator_LDADD = \
1719 libsystemd-label.la \
1720 libsystemd-shared.la
1723 # ------------------------------------------------------------------------------
1724 systemgenerator_PROGRAMS += \
1725 systemd-efi-boot-generator
1727 systemd_efi_boot_generator_SOURCES = \
1728 src/efi-boot-generator/efi-boot-generator.c
1730 systemd_efi_boot_generator_LDADD = \
1731 libsystemd-label.la \
1732 libsystemd-shared.la
1734 # ------------------------------------------------------------------------------
1737 src/boot/boot-loader.h \
1738 src/boot/bootctl.c \
1739 src/boot/boot-loader.c \
1743 libsystemd-shared.la \
1744 libsystemd-id128-internal.la \
1745 libsystemd-daemon-internal.la
1750 dist_zshcompletion_DATA += \
1751 shell-completion/zsh/_bootctl
1755 # ------------------------------------------------------------------------------
1757 systemgenerator_PROGRAMS += \
1758 systemd-gpt-auto-generator
1760 systemd_gpt_auto_generator_SOURCES = \
1761 src/gpt-auto-generator/gpt-auto-generator.c
1763 systemd_gpt_auto_generator_LDADD = \
1764 libsystemd-label.la \
1765 libsystemd-id128-internal.la \
1766 libudev-internal.la \
1767 libsystemd-shared.la \
1770 systemd_gpt_auto_generator_CFLAGS = \
1775 # ------------------------------------------------------------------------------
1776 systemgenerator_PROGRAMS += \
1777 systemd-dbus1-generator
1779 systemd_dbus1_generator_SOURCES = \
1780 src/dbus1-generator/dbus1-generator.c
1782 systemd_dbus1_generator_LDADD = \
1783 libsystemd-label.la \
1784 libsystemd-shared.la \
1785 libsystemd-internal.la
1787 dbus1-generator-install-hook:
1788 $(AM_V_LN)$(LN_S) -f $(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1790 dbus1-generator-uninstall-hook:
1791 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1793 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1794 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1796 # ------------------------------------------------------------------------------
1797 systemd_rc_local_generator_SOURCES = \
1798 src/rc-local-generator/rc-local-generator.c
1800 systemd_rc_local_generator_LDADD = \
1801 libsystemd-label.la \
1802 libsystemd-shared.la
1804 # ------------------------------------------------------------------------------
1805 systemd_remount_fs_SOURCES = \
1806 src/remount-fs/remount-fs.c \
1807 src/core/mount-setup.c \
1808 src/core/mount-setup.h
1810 systemd_remount_fs_LDADD = \
1811 libsystemd-label.la \
1812 libsystemd-shared.la
1814 # ------------------------------------------------------------------------------
1815 systemd_cgroups_agent_SOURCES = \
1816 src/cgroups-agent/cgroups-agent.c
1818 systemd_cgroups_agent_LDADD = \
1819 libsystemd-internal.la \
1820 libsystemd-id128-internal.la \
1821 libsystemd-daemon-internal.la \
1822 libsystemd-shared.la
1824 # ------------------------------------------------------------------------------
1825 systemctl_SOURCES = \
1826 src/systemctl/systemctl.c
1829 libsystemd-units.la \
1830 libsystemd-label.la \
1831 libsystemd-internal.la \
1835 systemctl_LDADD += \
1836 libsystemd-login-internal.la
1839 systemctl_LDADD += \
1840 libsystemd-journal-internal.la \
1841 libsystemd-id128-internal.la \
1842 libsystemd-daemon-internal.la \
1843 libsystemd-shared.la
1845 # ------------------------------------------------------------------------------
1846 systemd_notify_SOURCES = \
1847 src/notify/notify.c \
1848 src/readahead/sd-readahead.c
1850 systemd_notify_LDADD = \
1851 libsystemd-daemon-internal.la \
1852 libsystemd-shared.la
1854 # ------------------------------------------------------------------------------
1855 systemd_ask_password_SOURCES = \
1856 src/ask-password/ask-password.c
1858 systemd_ask_password_LDADD = \
1859 libsystemd-label.la \
1860 libsystemd-shared.la
1862 # ------------------------------------------------------------------------------
1863 systemd_reply_password_SOURCES = \
1864 src/reply-password/reply-password.c
1866 systemd_reply_password_LDADD = \
1867 libsystemd-shared.la
1869 # ------------------------------------------------------------------------------
1870 systemd_cgls_SOURCES = \
1873 systemd_cgls_LDADD = \
1874 libsystemd-shared.la
1876 # ------------------------------------------------------------------------------
1877 systemd_cgtop_SOURCES = \
1880 systemd_cgtop_LDADD = \
1881 libsystemd-shared.la
1883 # ------------------------------------------------------------------------------
1884 systemd_nspawn_SOURCES = \
1885 src/nspawn/nspawn.c \
1886 src/core/mount-setup.c \
1887 src/core/mount-setup.h \
1888 src/core/loopback-setup.c \
1889 src/core/loopback-setup.h
1891 systemd_nspawn_LDADD = \
1892 libsystemd-label.la \
1893 libsystemd-capability.la \
1894 libsystemd-internal.la \
1895 libsystemd-id128-internal.la \
1896 libsystemd-daemon-internal.la \
1897 libsystemd-shared.la
1899 # ------------------------------------------------------------------------------
1900 systemd_run_SOURCES = \
1903 systemd_run_LDADD = \
1904 libsystemd-label.la \
1905 libsystemd-capability.la \
1906 libsystemd-internal.la \
1907 libsystemd-daemon-internal.la \
1908 libsystemd-id128-internal.la \
1909 libsystemd-shared.la
1911 # ------------------------------------------------------------------------------
1912 systemd_bus_proxyd_SOURCES = \
1913 src/bus-proxyd/bus-proxyd.c
1915 systemd_bus_proxyd_LDADD = \
1916 libsystemd-internal.la \
1917 libsystemd-daemon-internal.la \
1918 libsystemd-id128-internal.la \
1919 libsystemd-shared.la
1921 bus-proxyd-install-hook:
1922 $(AM_V_LN)$(LN_S) -f ../lib/systemd/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
1924 bus-proxyd-uninstall-hook:
1925 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
1927 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
1928 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
1931 nodist_systemunit_DATA += \
1932 units/systemd-bus-proxyd@.service
1934 dist_systemunit_DATA += \
1935 units/systemd-bus-proxyd.socket
1937 dist_userunit_DATA += \
1938 units/user/systemd-bus-proxyd.socket \
1939 units/user/systemd-bus-proxyd@.service
1943 units/systemd-bus-proxyd@.service.in
1945 # ------------------------------------------------------------------------------
1946 systemd_tty_ask_password_agent_SOURCES = \
1947 src/tty-ask-password-agent/tty-ask-password-agent.c
1949 systemd_tty_ask_password_agent_LDADD = \
1950 libsystemd-label.la \
1951 libsystemd-shared.la
1953 # ------------------------------------------------------------------------------
1954 libsystemd_daemon_la_SOURCES = \
1955 src/libsystemd-daemon/libsystemd-daemon.sym \
1956 src/libsystemd-daemon/sd-daemon.c
1958 libsystemd_daemon_internal_la_SOURCES = \
1959 $(libsystemd_daemon_la_SOURCES)
1961 libsystemd_daemon_internal_la_CPPFLAGS = \
1963 -DSD_DAEMON_DISABLE_MQ
1965 libsystemd_daemon_la_CFLAGS = \
1967 -fvisibility=hidden \
1970 libsystemd_daemon_la_LDFLAGS = \
1972 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1973 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1975 libsystemd_daemon_la_LIBADD = \
1978 pkginclude_HEADERS += \
1979 src/systemd/sd-daemon.h
1981 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1982 libsystemd-daemon-install-hook:
1983 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1985 libsystemd-daemon-uninstall-hook:
1986 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1988 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1989 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1991 lib_LTLIBRARIES += \
1992 libsystemd-daemon.la
1994 noinst_LTLIBRARIES += \
1995 libsystemd-daemon-internal.la
1997 pkgconfiglib_DATA += \
1998 src/libsystemd-daemon/libsystemd-daemon.pc
2001 src/libsystemd-daemon/libsystemd-daemon.pc.in
2003 # ------------------------------------------------------------------------------
2004 libsystemd_la_SOURCES = \
2005 src/libsystemd/libsystemd.sym \
2006 src/systemd/sd-bus.h \
2007 src/systemd/sd-bus-protocol.h \
2008 src/systemd/sd-bus-vtable.h \
2009 src/systemd/sd-memfd.h \
2010 src/systemd/sd-utf8.h \
2011 src/systemd/sd-event.h \
2012 src/systemd/sd-dhcp-client.h \
2013 src/systemd/sd-rtnl.h \
2014 src/libsystemd/sd-bus.c \
2015 src/libsystemd/bus-control.c \
2016 src/libsystemd/bus-control.h \
2017 src/libsystemd/bus-error.c \
2018 src/libsystemd/bus-error.h \
2019 src/libsystemd/bus-internal.c \
2020 src/libsystemd/bus-internal.h \
2021 src/libsystemd/bus-socket.c \
2022 src/libsystemd/bus-socket.h \
2023 src/libsystemd/bus-kernel.c \
2024 src/libsystemd/bus-kernel.h \
2025 src/libsystemd/bus-container.c \
2026 src/libsystemd/bus-container.h \
2027 src/libsystemd/bus-message.c \
2028 src/libsystemd/bus-message.h \
2029 src/libsystemd/bus-creds.c \
2030 src/libsystemd/bus-creds.h \
2031 src/libsystemd/bus-signature.c \
2032 src/libsystemd/bus-signature.h \
2033 src/libsystemd/bus-type.c \
2034 src/libsystemd/bus-type.h \
2035 src/libsystemd/bus-match.c \
2036 src/libsystemd/bus-match.h \
2037 src/libsystemd/bus-bloom.c \
2038 src/libsystemd/bus-bloom.h \
2039 src/libsystemd/bus-introspect.c \
2040 src/libsystemd/bus-introspect.h \
2041 src/libsystemd/bus-objects.c \
2042 src/libsystemd/bus-objects.h \
2043 src/libsystemd/bus-gvariant.c \
2044 src/libsystemd/bus-gvariant.h \
2045 src/libsystemd/bus-convenience.c \
2046 src/libsystemd/kdbus.h \
2047 src/libsystemd/sd-memfd.c \
2048 src/libsystemd/bus-util.c \
2049 src/libsystemd/bus-util.h \
2050 src/libsystemd/sd-utf8.c \
2051 src/libsystemd/sd-event.c \
2052 src/libsystemd/event-util.h \
2053 src/libsystemd/bus-protocol.h \
2054 src/libsystemd/sd-dhcp-client.c \
2055 src/libsystemd/dhcp-network.c \
2056 src/libsystemd/dhcp-option.c \
2057 src/libsystemd/dhcp-internal.h \
2058 src/libsystemd/dhcp-protocol.h \
2059 src/libsystemd/sd-rtnl.c \
2060 src/libsystemd/rtnl-internal.h \
2061 src/libsystemd/rtnl-message.c \
2062 src/libsystemd/rtnl-util.h \
2063 src/libsystemd/rtnl-util.c
2065 nodist_libsystemd_la_SOURCES = \
2066 src/libsystemd/bus-error-mapping.c
2068 libsystemd_la_LIBADD = \
2069 libsystemd-id128-internal.la \
2070 libsystemd-daemon-internal.la \
2071 libsystemd-shared.la
2073 libsystemd_la_CFLAGS = \
2077 libsystemd_la_LDFLAGS = \
2079 -version-info $(LIBSYSTEMD_BUS_CURRENT):$(LIBSYSTEMD_BUS_REVISION):$(LIBSYSTEMD_BUS_AGE) \
2080 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
2082 pkgconfiglib_DATA += \
2083 src/libsystemd/libsystemd.pc
2086 src/libsystemd/bus-error-mapping.gperf \
2087 src/libsystemd/libsystemd.pc.in \
2088 src/libsystemd/DIFFERENCES \
2089 src/libsystemd/GVARIANT-SERIALIZATION
2092 src/libsystemd/bus-error-mapping.c
2094 lib_LTLIBRARIES += \
2097 libsystemd_internal_la_SOURCES = \
2098 $(libsystemd_la_SOURCES)
2100 nodist_libsystemd_internal_la_SOURCES = \
2101 $(nodist_libsystemd_la_SOURCES)
2103 libsystemd_internal_la_CFLAGS = \
2104 $(libsystemd_la_CFLAGS)
2106 noinst_LTLIBRARIES += \
2107 libsystemd-internal.la
2109 libsystemd_dump_la_SOURCES = \
2110 src/libsystemd/bus-dump.c \
2111 src/libsystemd/bus-dump.h
2113 libsystemd_dump_la_CFLAGS = \
2117 noinst_LTLIBRARIES += \
2122 test-bus-signature \
2127 test-bus-kernel-bloom \
2128 test-bus-kernel-benchmark \
2130 test-bus-zero-copy \
2131 test-bus-introspect \
2144 test_bus_marshal_SOURCES = \
2145 src/libsystemd/test-bus-marshal.c
2147 test_bus_marshal_LDADD = \
2148 libsystemd-internal.la \
2149 libsystemd-id128-internal.la \
2150 libsystemd-daemon-internal.la \
2151 libsystemd-shared.la \
2152 libsystemd-dump.la \
2153 libsystemd-capability.la \
2158 test_bus_marshal_CFLAGS = \
2164 test_bus_signature_SOURCES = \
2165 src/libsystemd/test-bus-signature.c
2167 test_bus_signature_LDADD = \
2168 libsystemd-shared.la \
2169 libsystemd-internal.la
2171 test_bus_chat_SOURCES = \
2172 src/libsystemd/test-bus-chat.c
2174 test_bus_chat_CFLAGS = \
2178 test_bus_chat_LDADD = \
2179 libsystemd-internal.la \
2180 libsystemd-id128-internal.la \
2181 libsystemd-daemon-internal.la \
2182 libsystemd-shared.la
2184 test_bus_server_SOURCES = \
2185 src/libsystemd/test-bus-server.c
2187 test_bus_server_CFLAGS = \
2191 test_bus_server_LDADD = \
2192 libsystemd-internal.la \
2193 libsystemd-id128-internal.la \
2194 libsystemd-daemon-internal.la \
2195 libsystemd-shared.la
2197 test_bus_objects_SOURCES = \
2198 src/libsystemd/test-bus-objects.c
2200 test_bus_objects_CFLAGS = \
2205 test_bus_objects_LDADD = \
2206 libsystemd-internal.la \
2207 libsystemd-id128-internal.la \
2208 libsystemd-daemon-internal.la \
2209 libsystemd-shared.la \
2210 libsystemd-dump.la \
2211 libsystemd-capability.la \
2214 test_bus_error_SOURCES = \
2215 src/libsystemd/test-bus-error.c
2217 test_bus_error_LDADD = \
2218 libsystemd-internal.la \
2219 libsystemd-id128-internal.la \
2220 libsystemd-daemon-internal.la \
2221 libsystemd-shared.la
2223 test_bus_gvariant_SOURCES = \
2224 src/libsystemd/test-bus-gvariant.c
2226 test_bus_gvariant_LDADD = \
2227 libsystemd-internal.la \
2228 libsystemd-id128-internal.la \
2229 libsystemd-daemon-internal.la \
2230 libsystemd-shared.la \
2231 libsystemd-dump.la \
2232 libsystemd-capability.la \
2236 test_bus_gvariant_CFLAGS = \
2241 test_bus_creds_SOURCES = \
2242 src/libsystemd/test-bus-creds.c
2244 test_bus_creds_LDADD = \
2245 libsystemd-internal.la \
2246 libsystemd-id128-internal.la \
2247 libsystemd-daemon-internal.la \
2248 libsystemd-shared.la \
2249 libsystemd-dump.la \
2250 libsystemd-capability.la
2252 test_bus_match_SOURCES = \
2253 src/libsystemd/test-bus-match.c
2255 test_bus_match_LDADD = \
2256 libsystemd-internal.la \
2257 libsystemd-id128-internal.la \
2258 libsystemd-daemon-internal.la \
2259 libsystemd-shared.la
2261 test_bus_kernel_SOURCES = \
2262 src/libsystemd/test-bus-kernel.c
2264 test_bus_kernel_LDADD = \
2265 libsystemd-internal.la \
2266 libsystemd-id128-internal.la \
2267 libsystemd-daemon-internal.la \
2268 libsystemd-shared.la \
2269 libsystemd-dump.la \
2270 libsystemd-capability.la \
2273 test_bus_kernel_CFLAGS = \
2277 test_bus_kernel_bloom_SOURCES = \
2278 src/libsystemd/test-bus-kernel-bloom.c
2280 test_bus_kernel_bloom_LDADD = \
2281 libsystemd-internal.la \
2282 libsystemd-id128-internal.la \
2283 libsystemd-daemon-internal.la \
2284 libsystemd-shared.la
2286 test_bus_kernel_benchmark_SOURCES = \
2287 src/libsystemd/test-bus-kernel-benchmark.c
2289 test_bus_kernel_benchmark_LDADD = \
2290 libsystemd-internal.la \
2291 libsystemd-id128-internal.la \
2292 libsystemd-daemon-internal.la \
2293 libsystemd-shared.la
2295 test_bus_memfd_SOURCES = \
2296 src/libsystemd/test-bus-memfd.c
2298 test_bus_memfd_LDADD = \
2299 libsystemd-internal.la \
2300 libsystemd-shared.la
2302 test_bus_zero_copy_SOURCES = \
2303 src/libsystemd/test-bus-zero-copy.c
2305 test_bus_zero_copy_LDADD = \
2306 libsystemd-internal.la \
2307 libsystemd-id128-internal.la \
2308 libsystemd-daemon-internal.la \
2309 libsystemd-shared.la \
2310 libsystemd-dump.la \
2311 libsystemd-capability.la \
2314 test_bus_zero_copy_CFLAGS = \
2318 test_bus_introspect_SOURCES = \
2319 src/libsystemd/test-bus-introspect.c
2321 test_bus_introspect_LDADD = \
2322 libsystemd-shared.la \
2323 libsystemd-internal.la
2325 test_event_SOURCES = \
2326 src/libsystemd/test-event.c
2328 test_event_LDADD = \
2329 libsystemd-internal.la \
2330 libsystemd-id128-internal.la \
2331 libsystemd-daemon-internal.la \
2332 libsystemd-shared.la
2334 test_dhcp_option_SOURCES = \
2335 src/libsystemd/dhcp-protocol.h \
2336 src/libsystemd/dhcp-internal.h \
2337 src/libsystemd/test-dhcp-option.c
2339 test_dhcp_option_LDADD = \
2340 libsystemd-internal.la \
2341 libsystemd-shared.la
2343 test_dhcp_client_SOURCES = \
2344 src/systemd/sd-dhcp-client.h \
2345 src/libsystemd/dhcp-protocol.h \
2346 src/libsystemd/dhcp-internal.h \
2347 src/libsystemd/test-dhcp-client.c
2349 test_dhcp_client_LDADD = \
2350 libsystemd-internal.la \
2351 libsystemd-daemon-internal.la \
2352 libsystemd-id128-internal.la \
2353 libsystemd-shared.la
2355 test_rtnl_SOURCES = \
2356 src/libsystemd/test-rtnl.c
2359 libsystemd-internal.la \
2360 libsystemd-daemon-internal.la \
2361 libsystemd-id128-internal.la \
2362 libsystemd-shared.la
2365 src/libsystemd/busctl.c
2368 libsystemd-internal.la \
2369 libsystemd-id128-internal.la \
2370 libsystemd-daemon-internal.la \
2371 libsystemd-shared.la \
2372 libsystemd-dump.la \
2373 libsystemd-capability.la \
2380 # ------------------------------------------------------------------------------
2390 include_HEADERS += \
2391 src/libudev/libudev.h
2393 lib_LTLIBRARIES += \
2396 libudev_la_SOURCES =\
2397 src/libudev/libudev.sym \
2398 src/libudev/libudev-private.h \
2399 src/libudev/libudev.c \
2400 src/libudev/libudev-list.c \
2401 src/libudev/libudev-util.c \
2402 src/libudev/libudev-device.c \
2403 src/libudev/libudev-enumerate.c \
2404 src/libudev/libudev-monitor.c \
2405 src/libudev/libudev-queue.c \
2406 src/libudev/libudev-hwdb-def.h \
2407 src/libudev/libudev-hwdb.c
2409 libudev_la_CFLAGS = \
2413 libudev_la_LDFLAGS = \
2415 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2416 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2418 libudev_la_LIBADD = \
2419 libsystemd-daemon-internal.la \
2420 libsystemd-id128-internal.la \
2421 libsystemd-shared.la
2423 pkgconfiglib_DATA += \
2424 src/libudev/libudev.pc
2427 src/libudev/libudev.pc.in
2430 src/libudev/libudev.pc \
2435 $(AM_V_at)$(MKDIR_P) $(dir $@)
2436 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2439 $(AM_V_at)$(MKDIR_P) $(dir $@)
2440 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2442 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2443 libudev-install-hook:
2444 libname=libudev.so && $(move-to-rootlibdir)
2446 libudev-uninstall-hook:
2447 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2449 INSTALL_EXEC_HOOKS += libudev-install-hook
2450 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2452 # ------------------------------------------------------------------------------
2453 noinst_LTLIBRARIES += \
2456 libudev_internal_la_SOURCES =\
2457 $(libudev_la_SOURCES) \
2458 src/libudev/libudev-device-private.c \
2459 src/libudev/libudev-queue-private.c
2461 libudev_internal_la_CFLAGS = \
2463 -fvisibility=default
2465 # ------------------------------------------------------------------------------
2467 $(sysconfdir)/udev/rules.d \
2468 $(sysconfdir)/udev/hwdb.d
2470 dist_network_DATA = \
2471 network/99-default.link
2473 dist_udevrules_DATA += \
2474 rules/99-systemd.rules \
2475 rules/42-usb-hid-pm.rules \
2476 rules/50-udev-default.rules \
2477 rules/60-drm.rules \
2478 rules/60-keyboard.rules \
2479 rules/60-persistent-storage-tape.rules \
2480 rules/60-persistent-serial.rules \
2481 rules/60-persistent-input.rules \
2482 rules/60-persistent-alsa.rules \
2483 rules/60-persistent-storage.rules \
2484 rules/64-btrfs.rules \
2485 rules/75-net-description.rules \
2486 rules/75-tty-description.rules \
2487 rules/78-sound-card.rules \
2488 rules/80-net-setup-link.rules \
2489 rules/95-udev-late.rules
2491 dist_udevhwdb_DATA = \
2492 hwdb/20-pci-vendor-model.hwdb \
2493 hwdb/20-pci-classes.hwdb \
2494 hwdb/20-usb-vendor-model.hwdb \
2495 hwdb/20-usb-classes.hwdb \
2496 hwdb/20-sdio-vendor-model.hwdb \
2497 hwdb/20-sdio-classes.hwdb \
2498 hwdb/20-bluetooth-vendor-product.hwdb \
2499 hwdb/20-acpi-vendor.hwdb \
2501 hwdb/60-keyboard.hwdb
2503 udevconfdir = $(sysconfdir)/udev
2504 dist_udevconf_DATA = \
2507 sharepkgconfigdir = $(datadir)/pkgconfig
2508 sharepkgconfig_DATA = \
2512 rules/99-systemd.rules.in \
2516 rules/99-systemd.rules \
2520 units/systemd-udevd.service.in \
2521 units/systemd-udev-trigger.service.in \
2522 units/systemd-udev-settle.service.in
2525 units/systemd-udevd.service \
2526 units/systemd-udev-trigger.service \
2527 units/systemd-udev-settle.service
2529 SOCKETS_TARGET_WANTS += \
2530 systemd-udevd-control.socket \
2531 systemd-udevd-kernel.socket
2532 SYSINIT_TARGET_WANTS += \
2533 systemd-udevd.service \
2534 systemd-udev-trigger.service
2536 rootbin_PROGRAMS += \
2539 rootlibexec_PROGRAMS += \
2542 noinst_LTLIBRARIES += \
2545 src/udev/keyboard-keys.txt:
2546 $(AM_V_at)$(MKDIR_P) $(dir $@)
2547 $(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/' > $@
2549 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2550 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2552 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2553 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2555 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2556 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2558 libudev_core_la_SOURCES = \
2560 src/udev/udev-event.c \
2561 src/udev/udev-watch.c \
2562 src/udev/udev-node.c \
2563 src/udev/udev-rules.c \
2564 src/udev/udev-ctrl.c \
2565 src/udev/udev-builtin.c \
2566 src/udev/udev-builtin-btrfs.c \
2567 src/udev/udev-builtin-hwdb.c \
2568 src/udev/udev-builtin-input_id.c \
2569 src/udev/udev-builtin-keyboard.c \
2570 src/udev/udev-builtin-net_id.c \
2571 src/udev/udev-builtin-net_setup_link.c \
2572 src/udev/udev-builtin-path_id.c \
2573 src/udev/udev-builtin-usb_id.c \
2574 src/udev/net/link-config.h \
2575 src/udev/net/link-config.c \
2576 src/udev/net/ethtool-util.h \
2577 src/udev/net/ethtool-util.c
2579 nodist_libudev_core_la_SOURCES = \
2580 src/udev/keyboard-keys-from-name.h \
2581 src/udev/keyboard-keys-to-name.h \
2582 src/udev/net/link-config-gperf.c
2585 $(nodist_libudev_core_la_SOURCES)
2588 src/udev/keyboard-keys-from-name.gperf \
2589 src/udev/keyboard-keys.txt \
2590 src/udev/net/link-config-gperf.c
2593 src/udev/net/link-config-gperf.gperf
2595 libudev_core_la_CFLAGS = \
2600 libudev_core_la_LIBADD = \
2601 libudev-internal.la \
2602 libsystemd-label.la \
2603 libsystemd-daemon-internal.la \
2604 libsystemd-internal.la \
2605 libsystemd-id128-internal.la \
2606 libsystemd-shared.la \
2610 libudev_core_la_CPPFLAGS = \
2612 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2615 libudev_core_la_SOURCES += \
2616 src/udev/udev-builtin-firmware.c
2618 dist_udevrules_DATA += \
2619 rules/50-firmware.rules
2623 libudev_core_la_SOURCES += \
2624 src/udev/udev-builtin-kmod.c
2626 dist_udevrules_DATA += \
2627 rules/80-drivers.rules
2631 libudev_core_la_SOURCES += \
2632 src/udev/udev-builtin-blkid.c
2636 libudev_core_la_SOURCES += \
2637 src/udev/udev-builtin-uaccess.c \
2638 src/login/logind-acl.c \
2639 src/login/sd-login.c \
2640 src/systemd/sd-login.h \
2641 src/login/login-shared.c \
2642 src/login/login-shared.h
2644 libudev_core_la_LIBADD += \
2648 systemd_udevd_SOURCES = \
2651 systemd_udevd_LDADD = \
2655 src/udev/udevadm.c \
2656 src/udev/udevadm-info.c \
2657 src/udev/udevadm-control.c \
2658 src/udev/udevadm-monitor.c \
2659 src/udev/udevadm-hwdb.c \
2660 src/udev/udevadm-settle.c \
2661 src/udev/udevadm-trigger.c \
2662 src/udev/udevadm-test.c \
2663 src/udev/udevadm-test-builtin.c
2668 # Update hwdb on installation. Do not bother if installing
2669 # in DESTDIR, since this is likely for packaging purposes.
2671 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2673 INSTALL_DATA_HOOKS += \
2677 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2679 # ------------------------------------------------------------------------------
2688 test_libudev_SOURCES = \
2689 src/test/test-libudev.c
2691 test_libudev_LDADD = \
2692 libsystemd-label.la \
2693 libudev-internal.la \
2694 libsystemd-shared.la
2696 test_udev_SOURCES = \
2697 src/test/test-udev.c
2706 test_udev_LDADD += \
2713 # packed sysfs test tree
2715 $(AM_V_at)$(MKDIR_P) $(dir $@)
2716 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2720 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2725 test/rules-test.sh \
2726 test/rule-syntax-check.py
2728 # ------------------------------------------------------------------------------
2730 src/udev/ata_id/ata_id.c
2733 libudev-internal.la \
2734 libsystemd-shared.la
2736 udevlibexec_PROGRAMS += \
2739 # ------------------------------------------------------------------------------
2740 cdrom_id_SOURCES = \
2741 src/udev/cdrom_id/cdrom_id.c
2744 libudev-internal.la \
2745 libsystemd-shared.la
2747 udevlibexec_PROGRAMS += \
2750 dist_udevrules_DATA += \
2751 rules/60-cdrom_id.rules
2753 # ------------------------------------------------------------------------------
2755 src/udev/collect/collect.c
2758 libudev-internal.la \
2759 libsystemd-shared.la
2761 udevlibexec_PROGRAMS += \
2764 # ------------------------------------------------------------------------------
2766 src/udev/scsi_id/scsi_id.c \
2767 src/udev/scsi_id/scsi_serial.c \
2768 src/udev/scsi_id/scsi.h \
2769 src/udev/scsi_id/scsi_id.h
2772 libudev-internal.la \
2773 libsystemd-shared.la
2775 udevlibexec_PROGRAMS += \
2779 src/udev/scsi_id/README
2781 # ------------------------------------------------------------------------------
2783 src/udev/v4l_id/v4l_id.c
2788 udevlibexec_PROGRAMS += \
2791 dist_udevrules_DATA += \
2792 rules/60-persistent-v4l.rules
2794 # ------------------------------------------------------------------------------
2795 accelerometer_SOURCES = \
2796 src/udev/accelerometer/accelerometer.c
2798 accelerometer_LDADD = \
2799 libudev-internal.la -lm \
2800 libsystemd-shared.la
2802 udevlibexec_PROGRAMS += \
2805 dist_udevrules_DATA += \
2806 rules/61-accelerometer.rules
2808 # ------------------------------------------------------------------------------
2815 libgudev_includedir = \
2816 $(includedir)/gudev-1.0/gudev
2818 libgudev_include_HEADERS = \
2820 src/gudev/gudevenums.h \
2821 src/gudev/gudevenumtypes.h \
2822 src/gudev/gudevtypes.h \
2823 src/gudev/gudevclient.h \
2824 src/gudev/gudevdevice.h \
2825 src/gudev/gudevenumerator.h
2827 lib_LTLIBRARIES += libgudev-1.0.la
2829 pkgconfiglib_DATA += \
2830 src/gudev/gudev-1.0.pc
2833 src/gudev/gudev-1.0.pc
2835 libgudev_1_0_la_SOURCES = \
2836 src/gudev/gudevenums.h \
2837 src/gudev/gudevenumtypes.h \
2838 src/gudev/gudevenumtypes.h\
2839 src/gudev/gudevtypes.h \
2840 src/gudev/gudevclient.h \
2841 src/gudev/gudevclient.c \
2842 src/gudev/gudevdevice.h \
2843 src/gudev/gudevdevice.c \
2844 src/gudev/gudevenumerator.h \
2845 src/gudev/gudevenumerator.c \
2846 src/gudev/gudevprivate.h
2848 nodist_libgudev_1_0_la_SOURCES = \
2849 src/gudev/gudevmarshal.h \
2850 src/gudev/gudevmarshal.c \
2851 src/gudev/gudevenumtypes.h \
2852 src/gudev/gudevenumtypes.c
2855 $(nodist_libgudev_1_0_la_SOURCES)
2857 libgudev_1_0_la_CPPFLAGS = \
2859 -I$(top_builddir)/src\
2860 -I$(top_srcdir)/src\
2861 -I$(top_builddir)/src/gudev \
2862 -I$(top_srcdir)/src/gudev \
2863 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2864 -D_GUDEV_COMPILATION \
2865 -DG_LOG_DOMAIN=\"GUdev\"
2867 libgudev_1_0_la_CFLAGS = \
2869 -fvisibility=default \
2872 libgudev_1_0_la_LIBADD = \
2876 libgudev_1_0_la_LDFLAGS = \
2878 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2879 -export-dynamic -no-undefined \
2880 -export-symbols-regex '^g_udev_.*'
2882 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2883 $(AM_V_at)$(MKDIR_P) $(dir $@)
2884 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2886 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2887 $(AM_V_at)$(MKDIR_P) $(dir $@)
2888 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2889 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2891 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2892 $(AM_V_at)$(MKDIR_P) $(dir $@)
2893 $(AM_V_GEN)glib-mkenums --template $^ > $@
2895 if HAVE_INTROSPECTION
2896 -include $(INTROSPECTION_MAKEFILE)
2898 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2900 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2902 src_gudev_GUdev_1_0_gir_CFLAGS = \
2905 -D_GUDEV_COMPILATION \
2906 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2907 -I$(top_srcdir)/src \
2908 -I$(top_builddir)/src \
2909 -I$(top_srcdir)/src/gudev \
2910 -I$(top_builddir)/src/gudev
2912 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2914 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2915 --pkg-export=gudev-1.0 \
2918 src_gudev_GUdev_1_0_gir_FILES = \
2920 src/gudev/gudevtypes.h \
2921 src/gudev/gudevenums.h \
2922 src/gudev/gudevenumtypes.h \
2923 src/gudev/gudevclient.h \
2924 src/gudev/gudevdevice.h \
2925 src/gudev/gudevenumerator.h \
2926 src/gudev/gudevclient.c \
2927 src/gudev/gudevdevice.c \
2928 src/gudev/gudevenumerator.c
2930 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2931 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2933 girdir = $(datadir)/gir-1.0
2935 src/gudev/GUdev-1.0.gir
2937 typelibsdir = $(libdir)/girepository-1.0
2939 src/gudev/GUdev-1.0.typelib
2941 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2942 endif # HAVE_INTROSPECTION
2944 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2945 libgudev-install-hook:
2946 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2948 libgudev-uninstall-hook:
2949 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2951 INSTALL_EXEC_HOOKS += libgudev-install-hook
2952 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2956 src/gudev/gudev-1.0.pc.in \
2957 src/gudev/gudevmarshal.list \
2958 src/gudev/gudevenumtypes.h.template \
2959 src/gudev/gudevenumtypes.c.template \
2960 src/gudev/gjs-example.js \
2961 src/gudev/seed-example-enum.js \
2962 src/gudev/seed-example.js
2964 # ------------------------------------------------------------------------------
2965 mtd_probe_SOURCES = \
2966 src/udev/mtd_probe/mtd_probe.c \
2967 src/udev/mtd_probe/mtd_probe.h \
2968 src/udev/mtd_probe/probe_smartmedia.c
2970 dist_udevrules_DATA += \
2971 rules/75-probe_mtd.rules
2973 udevlibexec_PROGRAMS += \
2976 # ------------------------------------------------------------------------------
2977 libsystemd_id128_la_SOURCES = \
2978 src/libsystemd-id128/libsystemd-id128.sym \
2979 src/libsystemd-id128/sd-id128.c
2981 libsystemd_id128_la_CFLAGS = \
2985 libsystemd_id128_la_LDFLAGS = \
2987 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2988 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2990 libsystemd_id128_la_LIBADD = \
2991 libsystemd-daemon-internal.la \
2992 libsystemd-shared.la
2994 libsystemd_id128_internal_la_SOURCES = \
2995 $(libsystemd_id128_la_SOURCES)
2997 test_id128_SOURCES = \
2998 src/test/test-id128.c
3000 test_id128_LDADD = \
3001 libsystemd-id128-internal.la \
3002 libsystemd-daemon-internal.la \
3003 libsystemd-shared.la
3008 pkginclude_HEADERS += \
3009 src/systemd/sd-id128.h
3011 lib_LTLIBRARIES += \
3014 noinst_LTLIBRARIES += \
3015 libsystemd-id128-internal.la
3017 pkgconfiglib_DATA += \
3018 src/libsystemd-id128/libsystemd-id128.pc
3020 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3021 libsystemd-id128-install-hook:
3022 libname=libsystemd-id128.so && $(move-to-rootlibdir)
3024 libsystemd-id128-uninstall-hook:
3025 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
3027 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
3028 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
3031 src/libsystemd-id128/libsystemd-id128.pc.in
3033 # ------------------------------------------------------------------------------
3035 rootlibexec_PROGRAMS += \
3038 systemd_activate_SOURCES = \
3039 src/activate/activate.c
3041 systemd_activate_LDADD = \
3042 libsystemd-label.la \
3043 libsystemd-daemon-internal.la \
3044 libsystemd-shared.la
3046 # ------------------------------------------------------------------------------
3047 systemd_journald_SOURCES = \
3048 src/journal/journald.c \
3049 src/journal/journald-server.h
3051 systemd_journald_LDADD = \
3052 libsystemd-journal-core.la \
3053 libsystemd-internal.la \
3054 libsystemd-shared.la
3056 systemd_cat_SOURCES = \
3059 systemd_cat_LDADD = \
3060 libsystemd-journal-core.la
3062 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3063 journalctl_CFLAGS = \
3066 journalctl_SOURCES = \
3067 src/journal/journalctl.c
3069 journalctl_LDADD = \
3070 libsystemd-journal-internal.la \
3071 libsystemd-id128-internal.la \
3072 libsystemd-logs.la \
3073 libsystemd-shared.la
3076 journalctl_LDADD += \
3081 journalctl_SOURCES += \
3082 src/journal/journal-qrcode.c \
3083 src/journal/journal-qrcode.h
3085 journalctl_CFLAGS += \
3088 journalctl_LDADD += \
3092 test_journal_SOURCES = \
3093 src/journal/test-journal.c
3095 test_journal_LDADD = \
3096 libsystemd-journal-core.la
3098 test_journal_send_SOURCES = \
3099 src/journal/test-journal-send.c
3101 test_journal_send_LDADD = \
3102 libsystemd-journal-core.la
3104 test_journal_syslog_SOURCES = \
3105 src/journal/test-journal-syslog.c
3107 test_journal_syslog_LDADD = \
3108 libsystemd-journal-core.la
3110 test_journal_match_SOURCES = \
3111 src/journal/test-journal-match.c
3113 test_journal_match_LDADD = \
3114 libsystemd-journal-core.la
3116 test_journal_enum_SOURCES = \
3117 src/journal/test-journal-enum.c
3119 test_journal_enum_LDADD = \
3120 libsystemd-journal-core.la
3122 test_journal_stream_SOURCES = \
3123 src/journal/test-journal-stream.c
3125 test_journal_stream_LDADD = \
3126 libsystemd-journal-core.la
3128 test_journal_flush_SOURCES = \
3129 src/journal/test-journal-flush.c
3131 test_journal_flush_LDADD = \
3132 libsystemd-journal-core.la
3134 test_journal_init_SOURCES = \
3135 src/journal/test-journal-init.c
3137 test_journal_init_LDADD = \
3138 libsystemd-journal-core.la
3140 test_journal_verify_SOURCES = \
3141 src/journal/test-journal-verify.c
3143 test_journal_verify_LDADD = \
3144 libsystemd-journal-core.la
3146 test_journal_interleaving_SOURCES = \
3147 src/journal/test-journal-interleaving.c
3149 test_journal_interleaving_LDADD = \
3150 libsystemd-journal-core.la
3152 test_mmap_cache_SOURCES = \
3153 src/journal/test-mmap-cache.c
3155 test_mmap_cache_LDADD = \
3156 libsystemd-journal-core.la
3158 test_catalog_SOURCES = \
3159 src/journal/test-catalog.c
3161 test_catalog_CPPFLAGS = \
3163 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3165 test_catalog_LDADD = \
3166 libsystemd-journal-core.la
3168 libsystemd_journal_la_SOURCES = \
3169 src/journal/libsystemd-journal.sym \
3170 src/journal/sd-journal.c \
3171 src/systemd/sd-journal.h \
3172 src/systemd/_sd-common.h \
3173 src/journal/journal-file.c \
3174 src/journal/journal-file.h \
3175 src/journal/journal-vacuum.c \
3176 src/journal/journal-vacuum.h \
3177 src/journal/journal-verify.c \
3178 src/journal/journal-verify.h \
3179 src/journal/lookup3.c \
3180 src/journal/lookup3.h \
3181 src/journal/journal-send.c \
3182 src/journal/journal-def.h \
3183 src/journal/compress.h \
3184 src/journal/catalog.c \
3185 src/journal/catalog.h \
3186 src/journal/mmap-cache.c \
3187 src/journal/mmap-cache.h
3189 libsystemd_journal_la_CFLAGS = \
3193 libsystemd_journal_la_LDFLAGS = \
3195 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
3196 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
3198 libsystemd_journal_la_LIBADD = \
3199 libsystemd-label.la \
3200 libsystemd-daemon-internal.la \
3201 libsystemd-id128-internal.la \
3202 libsystemd-shared.la
3204 libsystemd_journal_internal_la_SOURCES = \
3205 $(libsystemd_journal_la_SOURCES)
3207 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3208 libsystemd_journal_internal_la_CFLAGS = \
3211 libsystemd_journal_internal_la_LIBADD =
3214 libsystemd_journal_la_SOURCES += \
3215 src/journal/compress.c
3217 libsystemd_journal_la_CFLAGS += \
3220 libsystemd_journal_la_LIBADD += \
3223 libsystemd_journal_internal_la_CFLAGS += \
3226 libsystemd_journal_internal_la_LIBADD += \
3230 libsystemd_journal_core_la_SOURCES = \
3231 src/journal/journald-kmsg.c \
3232 src/journal/journald-kmsg.h \
3233 src/journal/journald-syslog.c \
3234 src/journal/journald-syslog.h \
3235 src/journal/journald-stream.c \
3236 src/journal/journald-stream.h \
3237 src/journal/journald-server.c \
3238 src/journal/journald-server.h \
3239 src/journal/journald-console.c \
3240 src/journal/journald-console.h \
3241 src/journal/journald-native.c \
3242 src/journal/journald-native.h \
3243 src/journal/journald-rate-limit.c \
3244 src/journal/journald-rate-limit.h \
3245 src/journal/journal-internal.h
3247 nodist_libsystemd_journal_core_la_SOURCES = \
3248 src/journal/journald-gperf.c
3250 libsystemd_journal_core_la_LIBADD = \
3251 libsystemd-journal-internal.la \
3252 libudev-internal.la \
3253 libsystemd-capability.la \
3254 libsystemd-label.la \
3255 libsystemd-daemon-internal.la \
3256 libsystemd-id128-internal.la \
3257 libsystemd-shared.la
3260 libsystemd_journal_core_la_LIBADD += \
3261 libsystemd-login-internal.la
3265 libsystemd_journal_core_la_LIBADD += \
3269 noinst_LTLIBRARIES += \
3270 libsystemd-journal-core.la
3273 libsystemd_journal_la_SOURCES += \
3274 src/journal/journal-authenticate.c \
3275 src/journal/journal-authenticate.h \
3276 src/journal/fsprg.c \
3279 libsystemd_journal_la_CFLAGS += \
3283 libsystemd_journal_la_LIBADD += \
3286 libsystemd_journal_internal_la_CFLAGS += \
3290 libsystemd_journal_internal_la_LIBADD += \
3294 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3295 # needed. Also, grant read access to new journal files to members of
3296 # "adm" and "wheel".
3297 libsystemd-journal-install-hook:
3298 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3299 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3300 -chown 0:0 $(DESTDIR)/var/log/journal
3301 -chmod 755 $(DESTDIR)/var/log/journal
3302 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3303 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3305 libsystemd-journal-uninstall-hook:
3306 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3308 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3309 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3311 # ------------------------------------------------------------------------------
3313 # Update catalog on installation. Do not bother if installing
3314 # in DESTDIR, since this is likely for packaging purposes.
3315 catalog-update-hook:
3316 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3318 INSTALL_DATA_HOOKS += \
3321 catalog-remove-hook:
3322 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3324 UNINSTALL_DATA_HOOKS += \
3333 test-journal-syslog \
3334 test-journal-match \
3335 test-journal-stream \
3337 test-journal-verify \
3338 test-journal-interleaving \
3339 test-journal-flush \
3343 pkginclude_HEADERS += \
3344 src/systemd/sd-journal.h \
3345 src/systemd/sd-messages.h \
3346 src/systemd/_sd-common.h
3348 lib_LTLIBRARIES += \
3349 libsystemd-journal.la
3351 noinst_LTLIBRARIES += \
3352 libsystemd-journal-internal.la
3354 rootlibexec_PROGRAMS += \
3357 rootbin_PROGRAMS += \
3363 dist_systemunit_DATA += \
3364 units/systemd-journald.socket
3366 nodist_systemunit_DATA += \
3367 units/systemd-journald.service \
3368 units/systemd-journal-flush.service
3370 dist_pkgsysconf_DATA += \
3371 src/journal/journald.conf
3373 pkgconfiglib_DATA += \
3374 src/journal/libsystemd-journal.pc
3376 dist_catalog_DATA = \
3377 catalog/systemd.fr.catalog \
3378 catalog/systemd.ru.catalog \
3379 catalog/systemd.it.catalog \
3380 catalog/systemd.catalog
3382 SOCKETS_TARGET_WANTS += \
3383 systemd-journald.socket
3384 SYSINIT_TARGET_WANTS += \
3385 systemd-journald.service \
3386 systemd-journal-flush.service
3389 src/journal/libsystemd-journal.pc.in \
3390 units/systemd-journald.service.in \
3391 units/systemd-journal-flush.service.in \
3392 src/journal/journald-gperf.gperf
3395 src/journal/journald-gperf.c
3397 # ------------------------------------------------------------------------------
3399 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3401 rootlibexec_PROGRAMS += \
3402 systemd-journal-gatewayd
3404 systemd_journal_gatewayd_SOURCES = \
3405 src/journal/journal-gatewayd.c \
3406 src/journal/microhttpd-util.h \
3407 src/journal/microhttpd-util.c
3409 systemd_journal_gatewayd_LDADD = \
3410 libsystemd-logs.la \
3411 libsystemd-journal-internal.la \
3412 libsystemd-id128-internal.la \
3413 libsystemd-daemon-internal.la \
3414 libsystemd-internal.la \
3415 libsystemd-shared.la \
3418 systemd_journal_gatewayd_CFLAGS = \
3420 $(MICROHTTPD_CFLAGS)
3422 systemd_journal_gatewayd_CPPFLAGS = \
3424 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3426 dist_systemunit_DATA += \
3427 units/systemd-journal-gatewayd.socket
3429 nodist_systemunit_DATA += \
3430 units/systemd-journal-gatewayd.service
3432 dist_gatewayddocumentroot_DATA = \
3433 src/journal/browse.html
3438 units/systemd-journal-gatewayd.service.in
3440 # ------------------------------------------------------------------------------
3442 systemd_socket_proxyd_SOURCES = \
3443 src/socket-proxy/socket-proxyd.c
3445 systemd_socket_proxyd_LDADD = \
3446 libsystemd-logs.la \
3447 libsystemd-internal.la \
3448 libsystemd-journal-internal.la \
3449 libsystemd-id128-internal.la \
3450 libsystemd-daemon-internal.la \
3451 libsystemd-shared.la
3453 # ------------------------------------------------------------------------------
3455 systemd_coredump_SOURCES = \
3456 src/journal/coredump.c
3458 systemd_coredump_LDADD = \
3459 libsystemd-journal-internal.la \
3460 libsystemd-label.la \
3461 libsystemd-shared.la
3464 systemd_coredump_LDADD += \
3465 libsystemd-login-internal.la
3468 rootlibexec_PROGRAMS += \
3471 systemd_coredumpctl_SOURCES = \
3472 src/journal/coredumpctl.c
3474 systemd_coredumpctl_LDADD = \
3475 libsystemd-journal-internal.la \
3476 libsystemd-id128-internal.la \
3477 libsystemd-shared.la
3482 dist_bashcompletion_DATA += \
3483 shell-completion/bash/systemd-coredumpctl
3485 dist_zshcompletion_DATA += \
3486 shell-completion/zsh/_systemd-coredumpctl
3489 sysctl.d/50-coredump.conf
3492 sysctl.d/50-coredump.conf
3496 sysctl.d/50-coredump.conf.in
3498 # ------------------------------------------------------------------------------
3500 systemd_binfmt_SOURCES = \
3503 systemd_binfmt_LDADD = \
3504 libsystemd-shared.la
3506 rootlibexec_PROGRAMS += \
3509 dist_systemunit_DATA += \
3510 units/proc-sys-fs-binfmt_misc.automount \
3511 units/proc-sys-fs-binfmt_misc.mount
3513 nodist_systemunit_DATA += \
3514 units/systemd-binfmt.service
3517 $(prefix)/lib/binfmt.d \
3518 $(sysconfdir)/binfmt.d
3520 SYSINIT_TARGET_WANTS += \
3521 systemd-binfmt.service \
3522 proc-sys-fs-binfmt_misc.automount
3527 units/systemd-binfmt.service.in
3529 # ------------------------------------------------------------------------------
3531 systemd_vconsole_setup_SOURCES = \
3532 src/vconsole/vconsole-setup.c
3534 systemd_vconsole_setup_LDADD = \
3535 libsystemd-shared.la
3537 rootlibexec_PROGRAMS += \
3538 systemd-vconsole-setup
3540 nodist_systemunit_DATA += \
3541 units/systemd-vconsole-setup.service
3543 SYSINIT_TARGET_WANTS += \
3544 systemd-vconsole-setup.service
3548 units/systemd-vconsole-setup.service.in
3550 # ------------------------------------------------------------------------------
3552 systemd_readahead_SOURCES = \
3553 src/readahead/readahead.c \
3554 src/readahead/readahead-collect.c \
3555 src/readahead/readahead-replay.c \
3556 src/readahead/readahead-analyze.c \
3557 src/readahead/readahead-common.c \
3558 src/readahead/readahead-common.h
3560 systemd_readahead_LDADD = \
3561 libsystemd-daemon-internal.la \
3562 libudev-internal.la \
3563 libsystemd-shared.la
3566 src/readahead/sd-readahead.c \
3567 src/systemd/sd-readahead.h
3569 rootlibexec_PROGRAMS += \
3572 dist_systemunit_DATA += \
3573 units/systemd-readahead-drop.service \
3574 units/systemd-readahead-done.timer
3576 nodist_systemunit_DATA += \
3577 units/systemd-readahead-collect.service \
3578 units/systemd-readahead-replay.service \
3579 units/systemd-readahead-done.service
3584 units/systemd-readahead-collect.service.in \
3585 units/systemd-readahead-replay.service.in \
3586 units/systemd-readahead-done.service.in
3588 # ------------------------------------------------------------------------------
3590 systemd_bootchart_SOURCES = \
3591 src/bootchart/bootchart.c \
3592 src/bootchart/bootchart.h \
3593 src/bootchart/store.c \
3594 src/bootchart/store.h \
3595 src/bootchart/svg.c \
3598 systemd_bootchart_LDADD = \
3599 libsystemd-journal-internal.la \
3600 libsystemd-shared.la
3602 rootlibexec_PROGRAMS += \
3605 dist_pkgsysconf_DATA += \
3606 src/bootchart/bootchart.conf
3609 # ------------------------------------------------------------------------------
3610 if ENABLE_QUOTACHECK
3611 rootlibexec_PROGRAMS += \
3614 nodist_systemunit_DATA += \
3615 units/systemd-quotacheck.service
3617 systemd_quotacheck_SOURCES = \
3618 src/quotacheck/quotacheck.c
3620 systemd_quotacheck_LDADD = \
3621 libsystemd-shared.la
3625 units/systemd-quotacheck.service.in
3627 nodist_systemunit_DATA += \
3628 units/quotaon.service
3630 # ------------------------------------------------------------------------------
3631 if ENABLE_RANDOMSEED
3632 rootlibexec_PROGRAMS += \
3635 nodist_systemunit_DATA += \
3636 units/systemd-random-seed.service
3638 systemd_random_seed_SOURCES = \
3639 src/random-seed/random-seed.c
3641 systemd_random_seed_LDADD = \
3642 libsystemd-label.la \
3643 libsystemd-shared.la
3645 SYSINIT_TARGET_WANTS += \
3646 systemd-random-seed.service
3651 units/systemd-random-seed.service.in
3653 # ------------------------------------------------------------------------------
3655 rootlibexec_PROGRAMS += \
3658 nodist_systemunit_DATA += \
3659 units/systemd-backlight@.service
3661 systemd_backlight_SOURCES = \
3662 src/backlight/backlight.c
3664 systemd_backlight_LDADD = \
3665 libsystemd-label.la \
3666 libudev-internal.la \
3667 libsystemd-shared.la
3671 units/systemd-backlight@.service.in
3673 # ------------------------------------------------------------------------------
3675 rootlibexec_PROGRAMS += \
3678 nodist_systemunit_DATA += \
3679 units/systemd-rfkill@.service
3681 systemd_rfkill_SOURCES = \
3684 systemd_rfkill_LDADD = \
3685 libsystemd-label.la \
3686 libudev-internal.la \
3687 libsystemd-shared.la
3691 units/systemd-rfkill@.service.in
3693 # ------------------------------------------------------------------------------
3694 if HAVE_LIBCRYPTSETUP
3695 rootlibexec_PROGRAMS += \
3698 systemgenerator_PROGRAMS += \
3699 systemd-cryptsetup-generator
3701 dist_systemunit_DATA += \
3702 units/cryptsetup.target
3704 systemd_cryptsetup_SOURCES = \
3705 src/cryptsetup/cryptsetup.c
3707 systemd_cryptsetup_CFLAGS = \
3709 $(LIBCRYPTSETUP_CFLAGS)
3711 systemd_cryptsetup_LDADD = \
3712 libsystemd-label.la \
3713 libudev-internal.la \
3714 libsystemd-shared.la \
3715 $(LIBCRYPTSETUP_LIBS)
3717 systemd_cryptsetup_generator_SOURCES = \
3718 src/cryptsetup/cryptsetup-generator.c
3720 systemd_cryptsetup_generator_LDADD = \
3721 libsystemd-label.la \
3722 libsystemd-shared.la
3724 SYSINIT_TARGET_WANTS += \
3729 # ------------------------------------------------------------------------------
3731 systemd_hostnamed_SOURCES = \
3732 src/hostname/hostnamed.c
3734 systemd_hostnamed_LDADD = \
3735 libsystemd-label.la \
3736 libsystemd-internal.la \
3737 libsystemd-id128-internal.la \
3738 libsystemd-daemon-internal.la \
3739 libsystemd-shared.la
3741 rootlibexec_PROGRAMS += \
3744 nodist_systemunit_DATA += \
3745 units/systemd-hostnamed.service
3747 dist_systemunit_DATA += \
3748 units/org.freedesktop.hostname1.busname
3750 dist_dbuspolicy_DATA += \
3751 src/hostname/org.freedesktop.hostname1.conf
3753 dist_dbussystemservice_DATA += \
3754 src/hostname/org.freedesktop.hostname1.service
3756 polkitpolicy_files += \
3757 src/hostname/org.freedesktop.hostname1.policy
3759 SYSTEM_UNIT_ALIASES += \
3760 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3762 BUSNAMES_TARGET_WANTS += \
3763 org.freedesktop.hostname1.busname
3765 hostnamectl_SOURCES = \
3766 src/hostname/hostnamectl.c
3768 hostnamectl_LDADD = \
3769 libsystemd-internal.la \
3770 libsystemd-id128-internal.la \
3771 libsystemd-daemon-internal.la \
3772 libsystemd-shared.la
3777 dist_bashcompletion_DATA += \
3778 shell-completion/bash/hostnamectl
3780 dist_zshcompletion_DATA += \
3781 shell-completion/zsh/_hostnamectl
3785 polkitpolicy_in_files += \
3786 src/hostname/org.freedesktop.hostname1.policy.in
3789 units/systemd-hostnamed.service.in
3791 # ------------------------------------------------------------------------------
3793 systemd_bus_driverd_SOURCES = \
3794 src/bus-driverd/bus-driverd.c
3796 systemd_bus_driverd_LDADD = \
3797 libsystemd-internal.la \
3798 libsystemd-id128-internal.la \
3799 libsystemd-daemon-internal.la \
3800 libsystemd-shared.la
3802 rootlibexec_PROGRAMS += \
3805 nodist_systemunit_DATA += \
3806 units/systemd-bus-driverd.service
3808 dist_systemunit_DATA += \
3809 units/org.freedesktop.DBus.busname
3811 BUSNAMES_TARGET_WANTS += \
3812 org.freedesktop.DBus.busname
3814 nodist_userunit_DATA += \
3815 units/user/systemd-bus-driverd.service
3817 USER_BUSNAMES_TARGET_WANTS += \
3818 org.freedesktop.DBus.busname
3820 USER_UNIT_ALIASES += \
3821 $(systemunitdir)/org.freedesktop.DBus.busname org.freedesktop.DBus.busname
3825 units/systemd-bus-driverd.service.in \
3826 units/user/systemd-bus-driverd.service.in
3828 # ------------------------------------------------------------------------------
3830 systemd_localed_SOURCES = \
3831 src/locale/localed.c
3833 systemd_localed_LDADD = \
3834 libsystemd-label.la \
3835 libsystemd-internal.la \
3836 libsystemd-id128-internal.la \
3837 libsystemd-daemon-internal.la \
3838 libsystemd-shared.la
3840 nodist_systemunit_DATA += \
3841 units/systemd-localed.service
3843 dist_systemunit_DATA += \
3844 units/org.freedesktop.locale1.busname
3846 rootlibexec_PROGRAMS += \
3849 dist_dbuspolicy_DATA += \
3850 src/locale/org.freedesktop.locale1.conf
3852 dist_dbussystemservice_DATA += \
3853 src/locale/org.freedesktop.locale1.service
3855 polkitpolicy_files += \
3856 src/locale/org.freedesktop.locale1.policy
3858 SYSTEM_UNIT_ALIASES += \
3859 systemd-localed.service dbus-org.freedesktop.locale1.service
3861 BUSNAMES_TARGET_WANTS += \
3862 org.freedesktop.locale1.busname
3864 dist_pkgdata_DATA += \
3865 src/locale/kbd-model-map
3867 dist_noinst_SCRIPT = \
3868 src/locale/generate-kbd-model-map
3870 update-kbd-model-map: src/locale/generate-kbd-model-map
3871 $PYTHON $< > src/locale/kbd-model-map
3873 localectl_SOURCES = \
3874 src/locale/localectl.c
3877 libsystemd-internal.la \
3878 libsystemd-id128-internal.la \
3879 libsystemd-daemon-internal.la \
3880 libsystemd-shared.la
3885 dist_bashcompletion_DATA += \
3886 shell-completion/bash/localectl
3888 dist_zshcompletion_DATA += \
3889 shell-completion/zsh/_localectl
3893 polkitpolicy_in_files += \
3894 src/locale/org.freedesktop.locale1.policy.in
3897 units/systemd-localed.service.in
3899 # ------------------------------------------------------------------------------
3901 systemd_timedated_SOURCES = \
3902 src/timedate/timedated.c
3904 systemd_timedated_LDADD = \
3905 libsystemd-label.la \
3906 libsystemd-internal.la \
3907 libsystemd-id128-internal.la \
3908 libsystemd-daemon-internal.la \
3909 libsystemd-shared.la
3911 rootlibexec_PROGRAMS += \
3914 dist_dbussystemservice_DATA += \
3915 src/timedate/org.freedesktop.timedate1.service
3917 dist_dbuspolicy_DATA += \
3918 src/timedate/org.freedesktop.timedate1.conf
3920 nodist_systemunit_DATA += \
3921 units/systemd-timedated.service
3923 dist_systemunit_DATA += \
3924 units/org.freedesktop.timedate1.busname
3926 polkitpolicy_files += \
3927 src/timedate/org.freedesktop.timedate1.policy
3930 $(prefix)/lib/systemd/ntp-units.d \
3931 $(sysconfdir)/systemd/ntp-units.d
3933 SYSTEM_UNIT_ALIASES += \
3934 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3936 BUSNAMES_TARGET_WANTS += \
3937 org.freedesktop.timedate1.busname
3939 timedatectl_SOURCES = \
3940 src/timedate/timedatectl.c
3942 timedatectl_LDADD = \
3943 libsystemd-internal.la \
3944 libsystemd-id128-internal.la \
3945 libsystemd-daemon-internal.la \
3946 libsystemd-shared.la
3951 dist_bashcompletion_DATA += \
3952 shell-completion/bash/timedatectl
3954 dist_zshcompletion_DATA += \
3955 shell-completion/zsh/_timedatectl
3958 polkitpolicy_in_files += \
3959 src/timedate/org.freedesktop.timedate1.policy.in
3962 units/systemd-timedated.service.in
3964 # ------------------------------------------------------------------------------
3966 libnss_myhostname_la_SOURCES = \
3967 src/nss-myhostname/nss-myhostname.c \
3968 src/nss-myhostname/ifconf.h \
3969 src/nss-myhostname/netlink.c
3971 libnss_myhostname_la_LDFLAGS = \
3979 lib_LTLIBRARIES += \
3980 libnss_myhostname.la
3983 # ------------------------------------------------------------------------------
3985 systemd_machined_SOURCES = \
3986 src/machine/machined.c \
3987 src/machine/machined.h
3989 systemd_machined_LDADD = \
3990 libsystemd-machine-core.la
3992 rootlibexec_PROGRAMS += \
3995 libsystemd_machine_core_la_SOURCES = \
3996 src/machine/machined-dbus.c \
3997 src/machine/machine.c \
3998 src/machine/machine.h \
3999 src/machine/machine-dbus.c
4001 libsystemd_machine_core_la_LIBADD = \
4002 libsystemd-label.la \
4003 libsystemd-daemon-internal.la \
4004 libsystemd-internal.la \
4005 libsystemd-id128-internal.la \
4006 libudev-internal.la \
4007 libsystemd-shared.la
4009 noinst_LTLIBRARIES += \
4010 libsystemd-machine-core.la
4012 machinectl_SOURCES = \
4013 src/machine/machinectl.c
4015 machinectl_LDADD = \
4016 libsystemd-internal.la \
4017 libsystemd-id128-internal.la \
4018 libsystemd-daemon-internal.la \
4019 libsystemd-shared.la
4021 rootbin_PROGRAMS += \
4024 test_machine_tables_SOURCES = \
4025 src/machine/test-machine-tables.c
4027 test_machine_tables_LDADD = \
4028 libsystemd-machine-core.la
4033 nodist_systemunit_DATA += \
4034 units/systemd-machined.service
4036 dist_systemunit_DATA += \
4037 units/machine.slice \
4038 units/org.freedesktop.machine1.busname
4040 dist_dbussystemservice_DATA += \
4041 src/machine/org.freedesktop.machine1.service
4043 dist_dbuspolicy_DATA += \
4044 src/machine/org.freedesktop.machine1.conf
4046 dist_zshcompletion_DATA += \
4047 shell-completion/zsh/_machinectl
4049 SYSTEM_UNIT_ALIASES += \
4050 systemd-machined.service dbus-org.freedesktop.machine1.service
4052 BUSNAMES_TARGET_WANTS += \
4053 org.freedesktop.machine1.busname
4056 units/systemd-machined.service.in
4060 # ------------------------------------------------------------------------------
4062 rootlibexec_PROGRAMS += \
4065 systemd_networkd_SOURCES = \
4066 src/network/networkd.h \
4067 src/network/networkd.c \
4068 src/network/networkd-link.c \
4069 src/network/networkd-bridge.c \
4070 src/network/networkd-network.c \
4071 src/network/networkd-address.c \
4072 src/network/networkd-route.c \
4073 src/network/networkd-manager.c
4075 nodist_systemd_networkd_SOURCES = \
4076 src/network/networkd-gperf.c
4078 systemd_networkd_LDADD = \
4079 libudev-internal.la \
4080 libsystemd-daemon-internal.la \
4081 libsystemd-internal.la \
4082 libsystemd-id128-internal.la \
4083 libsystemd-label.la \
4084 libsystemd-shared.la
4086 nodist_systemunit_DATA += \
4087 units/systemd-networkd.service
4089 MULTI_USER_TARGET_WANTS += \
4090 systemd-networkd.service
4092 test_network_SOURCES = \
4093 src/network/test-network.c \
4094 src/network/networkd.h \
4095 src/network/networkd-link.c \
4096 src/network/networkd-bridge.c \
4097 src/network/networkd-network.c \
4098 src/network/networkd-address.c \
4099 src/network/networkd-route.c \
4100 src/network/networkd-manager.c \
4101 src/network/networkd-gperf.c
4103 test_network_LDADD = \
4104 libudev-internal.la \
4105 libsystemd-internal.la \
4106 libsystemd-id128-internal.la \
4107 libsystemd-daemon-internal.la \
4108 libsystemd-label.la \
4109 libsystemd-shared.la
4115 src/network/networkd-gperf.gperf \
4116 units/systemd-networkd.service.in
4119 src/network/networkd-gperf.c
4122 # ------------------------------------------------------------------------------
4124 systemd_logind_SOURCES = \
4125 src/login/logind.c \
4128 nodist_systemd_logind_SOURCES = \
4129 src/login/logind-gperf.c
4131 systemd_logind_LDADD = \
4132 libsystemd-logind-core.la
4134 libsystemd_logind_core_la_SOURCES = \
4135 src/login/logind-core.c \
4136 src/login/logind-device.c \
4137 src/login/logind-device.h \
4138 src/login/logind-button.c \
4139 src/login/logind-button.h \
4140 src/login/logind-action.c \
4141 src/login/logind-action.h \
4142 src/login/logind-seat.c \
4143 src/login/logind-seat.h \
4144 src/login/logind-session.c \
4145 src/login/logind-session.h \
4146 src/login/logind-session-device.c \
4147 src/login/logind-session-device.h \
4148 src/login/logind-user.c \
4149 src/login/logind-user.h \
4150 src/login/logind-inhibit.c \
4151 src/login/logind-inhibit.h \
4152 src/login/logind-dbus.c \
4153 src/login/logind-session-dbus.c \
4154 src/login/logind-seat-dbus.c \
4155 src/login/logind-user-dbus.c \
4156 src/login/logind-acl.h \
4157 src/login/login-shared.c \
4158 src/login/login-shared.h
4160 libsystemd_logind_core_la_LIBADD = \
4161 libsystemd-label.la \
4162 libsystemd-capability.la \
4163 libsystemd-daemon-internal.la \
4164 libsystemd-id128-internal.la \
4165 libsystemd-internal.la \
4166 libudev-internal.la \
4167 libsystemd-shared.la
4170 libsystemd_logind_core_la_SOURCES += \
4171 src/login/logind-acl.c
4173 libsystemd_logind_core_la_LIBADD += \
4177 noinst_LTLIBRARIES += \
4178 libsystemd-logind-core.la
4180 systemd_user_sessions_SOURCES = \
4181 src/login/user-sessions.c
4183 systemd_user_sessions_LDADD = \
4184 libsystemd-shared.la
4186 rootlibexec_PROGRAMS += \
4188 systemd-user-sessions
4190 loginctl_SOURCES = \
4191 src/login/loginctl.c \
4192 src/login/sysfs-show.c
4195 libsystemd-internal.la \
4196 libudev-internal.la \
4197 libsystemd-shared.la \
4198 libsystemd-id128-internal.la \
4199 libsystemd-daemon-internal.la
4201 rootbin_PROGRAMS += \
4204 dist_bashcompletion_DATA += \
4205 shell-completion/bash/loginctl
4207 dist_zshcompletion_DATA += \
4208 shell-completion/zsh/_loginctl \
4209 shell-completion/zsh/_systemd-inhibit
4211 systemd_inhibit_SOURCES = \
4214 systemd_inhibit_LDADD = \
4215 libsystemd-internal.la \
4216 libsystemd-id128-internal.la \
4217 libsystemd-daemon-internal.la \
4218 libsystemd-shared.la
4220 rootbin_PROGRAMS += \
4223 test_login_SOURCES = \
4224 src/login/test-login.c
4226 test_login_LDADD = \
4227 libsystemd-login-internal.la \
4228 libsystemd-shared.la
4230 test_login_shared_SOURCES = \
4231 src/login/test-login-shared.c
4233 test_login_shared_LDADD = \
4234 libsystemd-login-internal.la \
4235 libsystemd-shared.la
4237 test_inhibit_SOURCES = \
4238 src/login/test-inhibit.c
4240 test_inhibit_LDADD = \
4241 libsystemd-internal.la \
4242 libsystemd-daemon-internal.la \
4243 libsystemd-id128-internal.la \
4244 libsystemd-shared.la
4246 test_login_tables_SOURCES = \
4247 src/login/test-login-tables.c
4249 test_login_tables_LDADD = \
4250 libsystemd-logind-core.la
4260 libsystemd_login_la_SOURCES = \
4261 src/login/libsystemd-login.sym \
4262 src/login/sd-login.c \
4263 src/systemd/sd-login.h \
4264 src/login/login-shared.c \
4265 src/login/login-shared.h
4267 libsystemd_login_la_CFLAGS = \
4271 libsystemd_login_la_LDFLAGS = \
4273 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4274 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
4276 libsystemd_login_la_LIBADD = \
4277 libsystemd-daemon-internal.la \
4278 libsystemd-shared.la
4280 libsystemd_login_internal_la_SOURCES = \
4281 $(libsystemd_login_la_SOURCES)
4284 pam_systemd_la_SOURCES = \
4285 src/login/pam-module.c
4287 pam_systemd_la_CFLAGS = \
4292 pam_systemd_la_LDFLAGS = \
4298 -export-symbols-regex '^pam_sm_.*'
4300 pam_systemd_la_LIBADD = \
4301 libsystemd-capability.la \
4302 libsystemd-internal.la \
4303 libsystemd-id128-internal.la \
4304 libsystemd-daemon-internal.la \
4305 libsystemd-shared.la \
4308 pamlib_LTLIBRARIES = \
4311 dist_pamconf_DATA = \
4312 src/login/systemd-user
4315 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4316 libsystemd-login-install-hook:
4317 libname=libsystemd-login.so && $(move-to-rootlibdir)
4319 libsystemd-login-uninstall-hook:
4320 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4322 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
4323 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
4325 nodist_systemunit_DATA += \
4326 units/systemd-logind.service \
4327 units/systemd-user-sessions.service
4329 dist_systemunit_DATA += \
4331 units/org.freedesktop.login1.busname
4333 dist_dbussystemservice_DATA += \
4334 src/login/org.freedesktop.login1.service
4336 dist_dbuspolicy_DATA += \
4337 src/login/org.freedesktop.login1.conf
4339 dist_pkgsysconf_DATA += \
4340 src/login/logind.conf
4342 pkginclude_HEADERS += \
4343 src/systemd/sd-login.h
4345 lib_LTLIBRARIES += \
4348 noinst_LTLIBRARIES += \
4349 libsystemd-login-internal.la
4351 pkgconfiglib_DATA += \
4352 src/login/libsystemd-login.pc
4354 polkitpolicy_files += \
4355 src/login/org.freedesktop.login1.policy
4360 MULTI_USER_TARGET_WANTS += \
4361 systemd-logind.service \
4362 systemd-user-sessions.service
4364 SYSTEM_UNIT_ALIASES += \
4365 systemd-logind.service dbus-org.freedesktop.login1.service
4367 BUSNAMES_TARGET_WANTS += \
4368 org.freedesktop.login1.busname
4370 if ENABLE_MULTI_SEAT_X
4372 systemd_multi_seat_x_SOURCES = \
4373 src/login/multi-seat-x.c
4375 systemd_multi_seat_x_LDADD = \
4376 libsystemd-label.la \
4377 libsystemd-shared.la
4379 rootlibexec_PROGRAMS += \
4380 systemd-multi-seat-x
4384 dist_udevrules_DATA += \
4385 src/login/70-uaccess.rules \
4386 src/login/70-power-switch.rules
4388 nodist_udevrules_DATA += \
4389 src/login/71-seat.rules \
4390 src/login/73-seat-late.rules
4393 src/login/logind-gperf.c \
4394 src/login/71-seat.rules \
4395 src/login/73-seat-late.rules
4398 polkitpolicy_in_files += \
4399 src/login/org.freedesktop.login1.policy.in
4402 src/login/logind-gperf.gperf \
4403 src/login/libsystemd-login.pc.in \
4404 src/login/71-seat.rules.in \
4405 src/login/73-seat-late.rules.in \
4406 units/systemd-logind.service.in \
4407 units/systemd-user-sessions.service.in
4409 # ------------------------------------------------------------------------------
4410 if HAVE_PYTHON_DEVEL
4411 pkgpyexec_LTLIBRARIES = \
4418 _journal_la_SOURCES = \
4419 src/python-systemd/_journal.c
4421 _journal_la_CFLAGS = \
4423 -fvisibility=default \
4424 $(PYTHON_DEVEL_CFLAGS)
4426 _journal_la_LDFLAGS = \
4432 _journal_la_LIBADD = \
4433 $(PYTHON_DEVEL_LIBS) \
4434 libsystemd-journal.la
4436 id128_la_SOURCES = \
4437 src/python-systemd/id128.c \
4438 src/python-systemd/id128-constants.h \
4439 src/python-systemd/pyutil.c \
4440 src/python-systemd/pyutil.h
4444 -fvisibility=default \
4445 $(PYTHON_DEVEL_CFLAGS) \
4446 -I$(top_builddir)/src/python-systemd
4448 id128_la_LDFLAGS = \
4455 $(PYTHON_DEVEL_LIBS) \
4458 _daemon_la_SOURCES = \
4459 src/python-systemd/_daemon.c \
4460 src/python-systemd/pyutil.c \
4461 src/python-systemd/pyutil.h
4463 _daemon_la_CFLAGS = \
4465 -fvisibility=default \
4466 $(PYTHON_DEVEL_CFLAGS) \
4467 -I$(top_builddir)/src/python-systemd
4469 _daemon_la_LDFLAGS = \
4475 _daemon_la_LIBADD = \
4476 $(PYTHON_DEVEL_LIBS) \
4477 libsystemd-daemon.la
4479 _reader_la_SOURCES = \
4480 src/python-systemd/_reader.c \
4481 src/python-systemd/pyutil.c \
4482 src/python-systemd/pyutil.h
4484 _reader_la_CFLAGS = \
4486 -fvisibility=default \
4487 $(PYTHON_DEVEL_CFLAGS)
4489 _reader_la_LDFLAGS = \
4495 _reader_la_LIBADD = \
4496 $(PYTHON_DEVEL_LIBS) \
4497 libsystemd-journal.la \
4498 libsystemd-id128.la \
4499 libsystemd-daemon-internal.la \
4500 libsystemd-shared.la
4502 login_la_SOURCES = \
4503 src/python-systemd/login.c \
4504 src/python-systemd/pyutil.c \
4505 src/python-systemd/pyutil.h
4509 -fvisibility=default \
4510 $(PYTHON_DEVEL_CFLAGS)
4512 login_la_LDFLAGS = \
4519 $(PYTHON_DEVEL_LIBS) \
4520 libsystemd-journal.la \
4521 libsystemd-login.la \
4522 libsystemd-daemon-internal.la \
4523 libsystemd-shared.la
4525 dist_pkgpyexec_PYTHON = \
4526 src/python-systemd/journal.py \
4527 src/python-systemd/daemon.py \
4528 src/python-systemd/__init__.py
4530 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4531 $(AM_V_at)$(MKDIR_P) $(dir $@)
4532 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4535 src/python-systemd/id128-constants.h
4537 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4539 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4540 $(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/
4541 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4544 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4545 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4548 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4549 $(MAKE) DESTDIR="$$dir" install && \
4550 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4555 CLEAN_LOCAL_HOOKS += clean-sphinx
4558 -rm -rf docs/html/python-systemd/
4560 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4562 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4563 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4565 # ------------------------------------------------------------------------------
4567 '|rootlibexecdir=$(rootlibexecdir)|' \
4568 '|rootbindir=$(rootbindir)|' \
4569 '|bindir=$(bindir)|' \
4570 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4571 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4572 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4573 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4574 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4575 '|pkgdatadir=$(pkgdatadir)|' \
4576 '|systemunitdir=$(systemunitdir)|' \
4577 '|userunitdir=$(userunitdir)|' \
4578 '|systempresetdir=$(systempresetdir)|' \
4579 '|userpresetdir=$(userpresetdir)|' \
4580 '|udevhwdbdir=$(udevhwdbdir)|' \
4581 '|udevrulesdir=$(udevrulesdir)|' \
4582 '|catalogdir=$(catalogdir)|' \
4583 '|tmpfilesdir=$(tmpfilesdir)|' \
4584 '|sysctldir=$(sysctldir)|' \
4585 '|systemgeneratordir=$(systemgeneratordir)|' \
4586 '|usergeneratordir=$(usergeneratordir)|' \
4587 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4588 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4589 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4590 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4591 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4592 '|prefix=$(prefix)|' \
4593 '|exec_prefix=$(exec_prefix)|' \
4594 '|libdir=$(libdir)|' \
4595 '|includedir=$(includedir)|' \
4596 '|VERSION=$(VERSION)|' \
4597 '|rootprefix=$(rootprefix)|' \
4598 '|udevlibexecdir=$(udevlibexecdir)|' \
4599 '|SUSHELL=$(SUSHELL)|' \
4600 '|DEBUGTTY=$(DEBUGTTY)|' \
4603 '|MKDIR_P=$(MKDIR_P)|' \
4604 '|QUOTAON=$(QUOTAON)|' \
4605 '|QUOTACHECK=$(QUOTACHECK)|' \
4606 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4607 '|VARLOGDIR=$(varlogdir)|' \
4608 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4609 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4610 '|PYTHON=$(PYTHON)|' \
4611 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4614 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4615 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4624 sysctl.d/%: sysctl.d/%.in
4630 src/core/macros.%: src/core/macros.%.in
4633 src/%.policy.in: src/%.policy.in.in
4641 $(AM_V_GEN)chmod +x $@
4643 src/%.c: src/%.gperf
4644 $(AM_V_at)$(MKDIR_P) $(dir $@)
4645 $(AM_V_GPERF)$(GPERF) < $< > $@
4648 $(AM_V_at)$(MKDIR_P) $(dir $@)
4649 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4652 $(AM_V_at)$(MKDIR_P) $(dir $@)
4653 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4655 units/user/%: units/%.m4
4656 $(AM_V_at)$(MKDIR_P) $(dir $@)
4657 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4660 nodist_polkitpolicy_DATA = \
4661 $(polkitpolicy_files) \
4662 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4666 $(polkitpolicy_in_files) \
4667 $(polkitpolicy_in_in_files)
4670 $(nodist_systemunit_DATA) \
4671 $(nodist_userunit_DATA) \
4672 $(pkgconfigdata_DATA) \
4673 $(pkgconfiglib_DATA) \
4674 $(nodist_polkitpolicy_DATA)
4676 # ------------------------------------------------------------------------------
4678 man/custom-entities.ent:
4679 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4680 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4681 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4685 man/custom-entities.ent
4689 --stringparam man.output.quietly 1 \
4690 --stringparam funcsynopsis.style ansi \
4691 --stringparam man.authors.section.enabled 0 \
4692 --stringparam man.copyright.section.enabled 0 \
4693 --stringparam systemd.version $(VERSION) \
4694 --path '$(builddir)/man:$(srcdir)/man'
4696 XSLTPROC_PROCESS_MAN = \
4697 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4699 XSLTPROC_PROCESS_HTML = \
4700 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4702 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4703 $(XSLTPROC_PROCESS_MAN)
4705 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4706 $(XSLTPROC_PROCESS_MAN)
4708 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4709 $(XSLTPROC_PROCESS_MAN)
4711 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4712 $(XSLTPROC_PROCESS_MAN)
4714 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4715 $(XSLTPROC_PROCESS_MAN)
4717 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4718 $(XSLTPROC_PROCESS_HTML)
4721 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4727 man/custom-html.xsl \
4730 # ------------------------------------------------------------------------------
4733 docs/sysvinit/README
4738 docs/sysvinit/README: docs/sysvinit/README.in
4741 docs/var-log/README: docs/var-log/README.in
4745 docs/sysvinit/README \
4750 docs/sysvinit/README.in \
4751 docs/var-log/README.in
4753 SOCKETS_TARGET_WANTS += \
4754 systemd-initctl.socket \
4755 systemd-shutdownd.socket
4758 RUNLEVEL1_TARGET_WANTS += \
4759 systemd-update-utmp-runlevel.service
4760 RUNLEVEL2_TARGET_WANTS += \
4761 systemd-update-utmp-runlevel.service
4762 RUNLEVEL3_TARGET_WANTS += \
4763 systemd-update-utmp-runlevel.service
4764 RUNLEVEL4_TARGET_WANTS += \
4765 systemd-update-utmp-runlevel.service
4766 RUNLEVEL5_TARGET_WANTS += \
4767 systemd-update-utmp-runlevel.service
4769 SYSINIT_TARGET_WANTS += \
4770 systemd-update-utmp.service
4771 LOCAL_FS_TARGET_WANTS += \
4772 systemd-remount-fs.service \
4774 MULTI_USER_TARGET_WANTS += \
4776 systemd-ask-password-wall.path
4777 SYSINIT_TARGET_WANTS += \
4778 dev-hugepages.mount \
4780 sys-kernel-config.mount \
4781 sys-kernel-debug.mount \
4782 sys-fs-fuse-connections.mount \
4783 systemd-sysctl.service \
4784 systemd-ask-password-console.path
4787 SYSTEM_UNIT_ALIASES += \
4788 poweroff.target runlevel0.target \
4789 rescue.target runlevel1.target \
4790 multi-user.target runlevel2.target \
4791 multi-user.target runlevel3.target \
4792 multi-user.target runlevel4.target \
4793 graphical.target runlevel5.target \
4794 reboot.target runlevel6.target
4797 SYSTEM_UNIT_ALIASES += \
4798 graphical.target default.target \
4799 reboot.target ctrl-alt-del.target \
4800 getty@.service autovt@.service
4802 USER_UNIT_ALIASES += \
4803 $(systemunitdir)/shutdown.target shutdown.target \
4804 $(systemunitdir)/sockets.target sockets.target \
4805 $(systemunitdir)/busnames.target busnames.target \
4806 $(systemunitdir)/timers.target timers.target \
4807 $(systemunitdir)/paths.target paths.target \
4808 $(systemunitdir)/bluetooth.target bluetooth.target \
4809 $(systemunitdir)/printer.target printer.target \
4810 $(systemunitdir)/sound.target sound.target \
4811 $(systemunitdir)/smartcard.target smartcard.target
4813 GENERAL_ALIASES += \
4814 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4815 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4816 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4817 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4821 $(systemunitdir)/runlevel1.target.wants \
4822 $(systemunitdir)/runlevel2.target.wants \
4823 $(systemunitdir)/runlevel3.target.wants \
4824 $(systemunitdir)/runlevel4.target.wants \
4825 $(systemunitdir)/runlevel5.target.wants
4829 $(prefix)/lib/modules-load.d \
4830 $(sysconfdir)/modules-load.d \
4831 $(prefix)/lib/systemd/network \
4832 $(sysconfdir)/systemd/network \
4833 $(prefix)/lib/sysctl.d \
4834 $(sysconfdir)/sysctl.d \
4835 $(prefix)/lib/kernel/install.d \
4836 $(sysconfdir)/kernel/install.d \
4837 $(systemshutdowndir) \
4839 $(systemgeneratordir) \
4840 $(usergeneratordir) \
4843 $(pkgsysconfdir)/system \
4844 $(pkgsysconfdir)/system/multi-user.target.wants \
4845 $(pkgsysconfdir)/system/getty.target.wants \
4846 $(pkgsysconfdir)/user \
4847 $(dbussessionservicedir) \
4848 $(sysconfdir)/xdg/systemd
4850 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4852 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4854 install-data-hook: $(INSTALL_DATA_HOOKS)
4856 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4858 clean-local: $(CLEAN_LOCAL_HOOKS)
4859 rm -rf $(abs_srcdir)/install-tree
4860 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4861 $(abs_srcdir)/hwdb/iab.txt
4863 DISTCHECK_CONFIGURE_FLAGS = \
4864 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4865 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4866 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4867 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4868 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4869 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4870 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4871 --with-rootprefix=$$dc_install_base \
4872 --disable-split-usr \
4876 DISTCHECK_CONFIGURE_FLAGS += \
4877 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4878 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4880 DISTCHECK_CONFIGURE_FLAGS += \
4881 --with-sysvinit-path= \
4882 --with-sysvrcnd-path=
4886 DISTCHECK_CONFIGURE_FLAGS += \
4891 ( cd $(top_srcdir)/hwdb && \
4892 wget -N http://www.linux-usb.org/usb.ids \
4893 http://pci-ids.ucw.cz/v2.2/pci.ids \
4894 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4895 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4899 ( cd $(top_srcdir)/src/libsystemd/ && \
4900 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4902 upload: all distcheck
4903 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4904 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4905 scp man/*.html tango:public/systemd-man/
4907 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4908 doc-sync: all destdir-sphinx
4909 gtkdoc-rebase --html-dir=docs/libudev/html --online
4910 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4911 gtkdoc-rebase --html-dir=docs/gudev/html --online
4912 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4913 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4914 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4917 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4920 rm -rf $(abs_srcdir)/install-tree
4921 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4922 tree $(abs_srcdir)/install-tree
4924 # Let's run all tests of the test suite, but under valgrind. Let's
4925 # exclude the one perl script we have in there
4926 valgrind-tests: $(TESTS)
4927 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
4928 if file $$f | grep -q shell; then \
4929 echo -e "$${x}Skipping non-binary $$f"; else \
4930 echo -e "$${x}Running $$f"; \
4931 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=4194400 --error-exitcode=55 $(builddir)/$$f ; fi; \
4936 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
4938 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
4939 $(AM_V_GEN)cat $^ > $@
4941 check-api-docs: exported man
4942 $(AM_V_GEN)for symbol in `cat exported` ; do \
4943 if test -f $(builddir)/man/$$symbol.html ; then \
4944 echo " Symbol $$symbol() is documented." ; \
4946 echo "‣ Symbol $$symbol() lacks documentation." ; \
4950 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
4951 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
4953 undefined defined: $(ALL_OBJECTS)
4954 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
4955 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
4956 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
4962 check-api-unused: defined undefined exported
4963 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
4965 # Stupid test that everything purported to be exported really is
4967 define generate-sym-test
4968 $(AM_V_at)$(MKDIR_P) $(dir $@)
4969 $(AM_V_at)printf '#include <stdio.h>\n' > $@
4970 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
4971 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
4972 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
4973 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
4974 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
4975 $(AM_V_at)printf 'return 0; }\n' >> $@
4978 test-libsystemd-sym.c: \
4979 src/libsystemd/libsystemd.sym \
4980 src/systemd/sd-bus.h \
4981 src/systemd/sd-utf8.h
4982 $(generate-sym-test)
4984 test-libsystemd-daemon-sym.c: \
4985 src/libsystemd-daemon/libsystemd-daemon.sym \
4986 src/systemd/sd-daemon.h
4987 $(generate-sym-test)
4989 test-libsystemd-id128-sym.c: \
4990 src/libsystemd-id128/libsystemd-id128.sym \
4991 src/systemd/sd-id128.h
4992 $(generate-sym-test)
4994 test-libsystemd-journal-sym.c: \
4995 src/journal/libsystemd-journal.sym \
4996 src/systemd/sd-journal.h
4997 $(generate-sym-test)
4999 test-libsystemd-login-sym.c: \
5000 src/login/libsystemd-login.sym \
5001 src/systemd/sd-login.h
5002 $(generate-sym-test)
5004 test-libudev-sym.c: \
5005 src/libudev/libudev.sym \
5007 $(generate-sym-test)
5009 test_libsystemd_sym_SOURCES = \
5010 test-libsystemd-sym.c
5011 test_libsystemd_sym_LDADD = \
5014 test_libsystemd_daemon_sym_SOURCES = \
5015 test-libsystemd-daemon-sym.c
5016 test_libsystemd_daemon_sym_LDADD = \
5017 libsystemd-daemon.la
5019 test_libsystemd_id128_sym_SOURCES = \
5020 test-libsystemd-id128-sym.c
5021 test_libsystemd_id128_sym_LDADD = \
5024 test_libsystemd_journal_sym_SOURCES = \
5025 test-libsystemd-journal-sym.c
5026 test_libsystemd_journal_sym_LDADD = \
5027 libsystemd-journal.la
5029 test_libsystemd_login_sym_SOURCES = \
5030 test-libsystemd-login-sym.c
5031 test_libsystemd_login_sym_LDADD = \
5034 test_libudev_sym_SOURCES = \
5036 test_libudev_sym_LDADD = \
5040 $(test_libsystemd_sym_SOURCES) \
5041 $(test_libsystemd_daemon_sym_SOURCES) \
5042 $(test_libsystemd_id128_sym_SOURCES) \
5043 $(test_libsystemd_journal_sym_SOURCES) \
5044 $(test_libsystemd_login_sym_SOURCES) \
5045 $(test_libudev_sym_SOURCES)
5048 test-libsystemd-sym \
5049 test-libsystemd-daemon-sym \
5050 test-libsystemd-id128-sym \
5051 test-libsystemd-journal-sym \
5052 test-libsystemd-login-sym \
5056 cppcheck --enable=all -q $(top_srcdir)
5058 # Used to extract compile flags for YCM.