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
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_shared_la_SOURCES = \
647 src/shared/linux/auto_dev-ioctl.h \
648 src/shared/linux/fanotify.h \
649 src/shared/linux/seccomp.h \
650 src/shared/linux/seccomp-bpf.h \
651 src/shared/ioprio.h \
652 src/shared/missing.h \
653 src/shared/initreq.h \
654 src/shared/securebits.h \
655 src/shared/special.h \
659 src/shared/sparse-endian.h \
660 src/shared/refcnt.h \
661 src/shared/udev-util.h \
662 src/shared/bus-errors.h \
663 src/shared/device-nodes.c \
664 src/shared/device-nodes.h \
669 src/shared/efivars.c \
670 src/shared/efivars.h \
671 src/shared/path-util.c \
672 src/shared/path-util.h \
673 src/shared/time-util.c \
674 src/shared/time-util.h \
675 src/shared/hashmap.c \
676 src/shared/hashmap.h \
677 src/shared/siphash24.c \
678 src/shared/siphash24.h \
685 src/shared/sleep-config.c \
686 src/shared/sleep-config.h \
689 src/shared/env-util.c \
690 src/shared/env-util.h \
691 src/shared/strbuf.c \
692 src/shared/strbuf.h \
693 src/shared/strxcpyx.c \
694 src/shared/strxcpyx.h \
695 src/shared/conf-parser.c \
696 src/shared/conf-parser.h \
699 src/shared/ratelimit.h \
700 src/shared/ratelimit.c \
701 src/shared/exit-status.c \
702 src/shared/exit-status.h \
705 src/shared/gunicode.c \
706 src/shared/gunicode.h \
709 src/shared/socket-util.c \
710 src/shared/socket-util.h \
711 src/shared/conf-files.c \
712 src/shared/conf-files.h \
713 src/shared/cgroup-util.c \
714 src/shared/cgroup-util.h \
715 src/shared/cgroup-show.c \
716 src/shared/cgroup-show.h \
717 src/shared/unit-name.c \
718 src/shared/unit-name.h \
719 src/shared/utmp-wtmp.c \
720 src/shared/utmp-wtmp.h \
721 src/shared/watchdog.c \
722 src/shared/watchdog.h \
723 src/shared/spawn-ask-password-agent.c \
724 src/shared/spawn-ask-password-agent.h \
725 src/shared/replace-var.c \
726 src/shared/replace-var.h \
727 src/shared/spawn-polkit-agent.c \
728 src/shared/spawn-polkit-agent.h \
729 src/shared/hwclock.c \
730 src/shared/hwclock.h \
731 src/shared/time-dst.c \
732 src/shared/time-dst.h \
733 src/shared/calendarspec.c \
734 src/shared/calendarspec.h \
735 src/shared/fileio.c \
736 src/shared/fileio.h \
737 src/shared/output-mode.h \
738 src/shared/MurmurHash2.c \
739 src/shared/MurmurHash2.h \
740 src/shared/acpi-fpdt.h \
741 src/shared/acpi-fpdt.c \
742 src/shared/boot-timestamps.h \
743 src/shared/boot-timestamps.c \
746 src/shared/smack-util.c \
747 src/shared/smack-util.h \
748 src/shared/apparmor-util.c \
749 src/shared/apparmor-util.h \
750 src/shared/ima-util.c \
751 src/shared/ima-util.h \
752 src/shared/ptyfwd.c \
753 src/shared/ptyfwd.h \
754 src/shared/net-util.c \
755 src/shared/net-util.h \
756 src/shared/errno-list.c \
757 src/shared/errno-list.h \
758 src/shared/syscall-list.c \
759 src/shared/syscall-list.h \
765 nodist_libsystemd_shared_la_SOURCES = \
766 src/shared/errno-from-name.h \
767 src/shared/errno-to-name.h \
768 src/shared/syscall-from-name.h \
769 src/shared/syscall-to-name.h
771 # ------------------------------------------------------------------------------
772 noinst_LTLIBRARIES += \
775 libsystemd_units_la_SOURCES = \
776 src/shared/install.c \
777 src/shared/install.h \
778 src/shared/install-printf.c \
779 src/shared/install-printf.h \
780 src/shared/path-lookup.c \
781 src/shared/path-lookup.h \
782 src/shared/specifier.c \
783 src/shared/specifier.h
785 # ------------------------------------------------------------------------------
786 noinst_LTLIBRARIES += \
789 libsystemd_label_la_SOURCES = \
790 src/shared/socket-label.c \
793 src/shared/selinux-util.c \
794 src/shared/selinux-util.h \
795 src/shared/mkdir-label.c \
796 src/shared/ask-password-api.c \
797 src/shared/ask-password-api.h \
798 src/shared/fileio-label.c \
799 src/shared/fileio-label.h \
800 src/shared/dev-setup.c \
801 src/shared/dev-setup.h
803 libsystemd_label_la_CFLAGS = \
807 libsystemd_label_la_LIBADD = \
810 # ------------------------------------------------------------------------------
811 noinst_LTLIBRARIES += \
814 libsystemd_logs_la_SOURCES = \
815 src/shared/logs-show.c \
816 src/shared/logs-show.h
818 # ------------------------------------------------------------------------------
819 noinst_LTLIBRARIES += \
820 libsystemd-capability.la
822 libsystemd_capability_la_SOURCES = \
823 src/shared/capability.c \
824 src/shared/capability.h
826 libsystemd_capability_la_CFLAGS = \
830 libsystemd_capability_la_LIBADD = \
833 # ------------------------------------------------------------------------------
835 noinst_LTLIBRARIES += \
838 libsystemd_acl_la_SOURCES = \
839 src/shared/acl-util.c \
840 src/shared/acl-util.h
842 libsystemd_acl_la_CFLAGS = \
846 libsystemd_acl_la_LIBADD = \
850 # ------------------------------------------------------------------------------
851 noinst_LTLIBRARIES += \
854 libsystemd_core_la_SOURCES = \
857 src/core/unit-printf.c \
858 src/core/unit-printf.h \
863 src/core/transaction.c \
864 src/core/transaction.h \
865 src/core/load-fragment.c \
866 src/core/load-fragment.h \
875 src/core/snapshot.c \
876 src/core/snapshot.h \
881 src/core/automount.c \
882 src/core/automount.h \
893 src/core/load-dropin.c \
894 src/core/load-dropin.h \
901 src/core/dbus-manager.c \
902 src/core/dbus-manager.h \
903 src/core/dbus-unit.c \
904 src/core/dbus-unit.h \
905 src/core/dbus-job.c \
906 src/core/dbus-job.h \
907 src/core/dbus-service.c \
908 src/core/dbus-service.h \
909 src/core/dbus-socket.c \
910 src/core/dbus-socket.h \
911 src/core/dbus-busname.c \
912 src/core/dbus-busname.h \
913 src/core/dbus-target.c \
914 src/core/dbus-target.h \
915 src/core/dbus-snapshot.c \
916 src/core/dbus-snapshot.h \
917 src/core/dbus-device.c \
918 src/core/dbus-device.h \
919 src/core/dbus-mount.c \
920 src/core/dbus-mount.h \
921 src/core/dbus-automount.c \
922 src/core/dbus-automount.h \
923 src/core/dbus-swap.c \
924 src/core/dbus-swap.h \
925 src/core/dbus-timer.c \
926 src/core/dbus-timer.h \
927 src/core/dbus-path.c \
928 src/core/dbus-path.h \
929 src/core/dbus-slice.c \
930 src/core/dbus-slice.h \
931 src/core/dbus-scope.c \
932 src/core/dbus-scope.h \
933 src/core/dbus-execute.c \
934 src/core/dbus-execute.h \
935 src/core/dbus-kill.c \
936 src/core/dbus-kill.h \
937 src/core/dbus-cgroup.c \
938 src/core/dbus-cgroup.h \
939 src/core/dbus-client-track.c \
940 src/core/dbus-client-track.h \
943 src/core/selinux-access.c \
944 src/core/selinux-access.h \
945 src/core/selinux-setup.c \
946 src/core/selinux-setup.h \
947 src/core/smack-setup.c \
948 src/core/smack-setup.h \
949 src/core/ima-setup.c \
950 src/core/ima-setup.h \
951 src/core/locale-setup.h \
952 src/core/locale-setup.c \
953 src/core/hostname-setup.c \
954 src/core/hostname-setup.h \
955 src/core/machine-id-setup.c \
956 src/core/machine-id-setup.h \
957 src/core/mount-setup.c \
958 src/core/mount-setup.h \
959 src/core/loopback-setup.h \
960 src/core/loopback-setup.c \
961 src/core/condition.c \
962 src/core/condition.h \
963 src/core/namespace.c \
964 src/core/namespace.h \
968 src/core/sysfs-show.h \
969 src/core/switch-root.h \
970 src/core/switch-root.c \
973 src/core/audit-fd.c \
974 src/core/audit-fd.h \
979 libsystemd_core_la_SOURCES += \
980 src/core/kmod-setup.c \
981 src/core/kmod-setup.h
984 nodist_libsystemd_core_la_SOURCES = \
985 src/core/load-fragment-gperf.c \
986 src/core/load-fragment-gperf-nulstr.c
988 libsystemd_core_la_CFLAGS = \
996 libsystemd_core_la_LIBADD = \
997 libsystemd-capability.la \
998 libsystemd-units.la \
999 libsystemd-label.la \
1000 libsystemd-id128-internal.la \
1001 libsystemd-daemon-internal.la \
1002 libudev-internal.la \
1003 libsystemd-shared.la \
1004 libsystemd-internal.la \
1011 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1012 $(AM_V_at)$(MKDIR_P) $(dir $@)
1013 $(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 ";" }' < $< > $@
1016 src/core/load-fragment-gperf.gperf.m4
1019 src/core/load-fragment-gperf.gperf \
1020 src/core/load-fragment-gperf.c \
1021 src/core/load-fragment-gperf-nulstr.c \
1022 src/shared/syscall-list.txt \
1023 src/shared/syscall-from-name.gperf \
1024 src/shared/errno-list.txt \
1025 src/shared/errno-from-name.gperf
1028 src/shared/syscall-from-name.h \
1029 src/shared/syscall-to-name.h \
1030 src/shared/errno-from-name.h \
1031 src/shared/errno-to-name.h
1033 src/shared/syscall-list.txt:
1034 $(AM_V_at)$(MKDIR_P) $(dir $@)
1035 $(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; }' > $@
1037 src/shared/syscall-from-name.gperf: src/shared/syscall-list.txt
1038 $(AM_V_at)$(MKDIR_P) $(dir $@)
1039 $(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 }' < $< > $@
1041 src/shared/syscall-from-name.h: src/shared/syscall-from-name.gperf
1042 $(AM_V_at)$(MKDIR_P) $(dir $@)
1043 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1045 src/shared/syscall-to-name.h: src/shared/syscall-list.txt
1046 $(AM_V_at)$(MKDIR_P) $(dir $@)
1047 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1049 src/shared/errno-list.txt:
1050 $(AM_V_at)$(MKDIR_P) $(dir $@)
1051 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+[0-9]/ { print $$2; }' > $@
1053 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1054 $(AM_V_at)$(MKDIR_P) $(dir $@)
1055 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1057 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1058 $(AM_V_at)$(MKDIR_P) $(dir $@)
1059 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1061 src/shared/errno-to-name.h: src/shared/errno-list.txt
1062 $(AM_V_at)$(MKDIR_P) $(dir $@)
1063 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1065 # ------------------------------------------------------------------------------
1070 libsystemd-core.la \
1073 dist_pkgsysconf_DATA += \
1074 src/core/system.conf \
1077 dist_dbuspolicy_DATA += \
1078 src/core/org.freedesktop.systemd1.conf
1080 dist_dbussystemservice_DATA += \
1081 src/core/org.freedesktop.systemd1.service
1083 polkitpolicy_in_in_files += \
1084 src/core/org.freedesktop.systemd1.policy.in.in
1086 pkgconfigdata_DATA = \
1089 nodist_rpmmacros_DATA = \
1090 src/core/macros.systemd
1093 src/core/systemd.pc.in \
1094 src/core/macros.systemd.in
1097 src/core/macros.systemd \
1098 src/core/org.freedesktop.systemd1.policy.in
1100 # ------------------------------------------------------------------------------
1130 test-strip-tab-ansi \
1143 test/sched_idle_bad.service \
1144 test/sched_idle_ok.service \
1145 test/sched_rr_bad.service \
1146 test/sched_rr_ok.service \
1147 test/sched_rr_change.service \
1149 test/daughter.service \
1153 src/test/test-helper.h
1155 test_device_nodes_SOURCES = \
1156 src/test/test-device-nodes.c
1158 test_device_nodes_LDADD = \
1159 libsystemd-shared.la
1161 test_engine_SOURCES = \
1162 src/test/test-engine.c
1164 test_engine_LDADD = \
1165 libsystemd-core.la \
1168 test_job_type_SOURCES = \
1169 src/test/test-job-type.c
1171 test_job_type_LDADD = \
1172 libsystemd-core.la \
1181 test_loopback_SOURCES = \
1182 src/test/test-loopback.c
1184 test_loopback_LDADD = \
1187 test_hostname_SOURCES = \
1188 src/test/test-hostname.c
1190 test_hostname_LDADD = \
1197 test_boot_timestamp_SOURCES = \
1198 src/test/test-boot-timestamps.c
1200 test_boot_timestamp_LDADD = \
1201 libsystemd-shared.la
1204 test_unit_name_SOURCES = \
1205 src/test/test-unit-name.c
1207 test_unit_name_LDADD = \
1208 libsystemd-core.la \
1211 test_unit_file_SOURCES = \
1212 src/test/test-unit-file.c
1214 test_unit_file_LDADD = \
1215 libsystemd-core.la \
1218 test_utf8_SOURCES = \
1219 src/test/test-utf8.c
1222 libsystemd-shared.la
1224 test_util_SOURCES = \
1225 src/test/test-util.c
1230 test_namespace_SOURCES = \
1231 src/test/test-namespace.c
1233 test_namespace_LDADD = \
1236 test_hashmap_SOURCES = \
1237 src/test/test-hashmap.c
1239 test_hashmap_LDADD = \
1242 test_xml_SOURCES = \
1246 libsystemd-shared.la
1248 test_list_SOURCES = \
1249 src/test/test-list.c
1254 test_tables_SOURCES = \
1255 src/test/test-tables.c \
1256 src/shared/test-tables.h
1258 test_tables_LDADD = \
1259 libsystemd-logs.la \
1260 libsystemd-journal-internal.la \
1261 libsystemd-core.la \
1264 test_prioq_SOURCES = \
1265 src/test/test-prioq.c
1267 test_prioq_LDADD = \
1270 test_fileio_SOURCES = \
1271 src/test/test-fileio.c
1273 test_fileio_LDADD = \
1276 test_time_SOURCES = \
1277 src/test/test-time.c
1282 test_log_SOURCES = \
1288 test_ellipsize_SOURCES = \
1289 src/test/test-ellipsize.c
1291 test_ellipsize_LDADD = \
1294 test_date_SOURCES = \
1295 src/test/test-date.c
1300 test_sleep_SOURCES = \
1301 src/test/test-sleep.c
1303 test_sleep_LDADD = \
1306 test_replace_var_SOURCES = \
1307 src/test/test-replace-var.c
1309 test_replace_var_LDADD = \
1310 libsystemd-shared.la
1312 test_calendarspec_SOURCES = \
1313 src/test/test-calendarspec.c
1315 test_calendarspec_LDADD = \
1316 libsystemd-shared.la
1318 test_strip_tab_ansi_SOURCES = \
1319 src/test/test-strip-tab-ansi.c
1321 test_strip_tab_ansi_LDADD = \
1322 libsystemd-shared.la
1324 test_daemon_SOURCES = \
1325 src/test/test-daemon.c
1327 test_daemon_LDADD = \
1328 libsystemd-daemon-internal.la \
1329 libsystemd-shared.la
1331 test_cgroup_SOURCES = \
1332 src/test/test-cgroup.c
1334 test_cgroup_LDADD = \
1335 libsystemd-label.la \
1336 libsystemd-shared.la
1338 test_cgroup_mask_SOURCES = \
1339 src/test/test-cgroup-mask.c
1341 test_cgroup_mask_CPPFLAGS = \
1343 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1345 test_cgroup_mask_LDADD = \
1346 libsystemd-core.la \
1349 test_cgroup_util_SOURCES = \
1350 src/test/test-cgroup-util.c
1352 test_cgroup_util_LDADD = \
1353 libsystemd-label.la \
1354 libsystemd-daemon-internal.la \
1355 libsystemd-shared.la
1357 test_env_replace_SOURCES = \
1358 src/test/test-env-replace.c
1360 test_env_replace_LDADD = \
1361 libsystemd-shared.la
1363 test_strbuf_SOURCES = \
1364 src/test/test-strbuf.c
1366 test_strbuf_LDADD = \
1367 libsystemd-shared.la
1369 test_strv_SOURCES = \
1370 src/test/test-strv.c
1373 libsystemd-units.la \
1374 libsystemd-id128-internal.la \
1375 libsystemd-shared.la
1377 test_path_util_SOURCES = \
1378 src/test/test-path-util.c
1380 test_path_util_LDADD = \
1381 libsystemd-shared.la
1383 test_strxcpyx_SOURCES = \
1384 src/test/test-strxcpyx.c
1386 test_strxcpyx_LDADD = \
1387 libsystemd-shared.la
1389 test_install_SOURCES = \
1390 src/test/test-install.c
1392 test_install_LDADD = \
1393 libsystemd-units.la \
1394 libsystemd-label.la \
1395 libsystemd-id128-internal.la \
1396 libsystemd-shared.la
1398 test_watchdog_SOURCES = \
1399 src/test/test-watchdog.c
1401 test_watchdog_LDADD = \
1402 libsystemd-shared.la
1404 test_sched_prio_SOURCES = \
1405 src/test/test-sched-prio.c
1407 test_sched_prio_CPPFLAGS = \
1409 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1411 test_sched_prio_LDADD = \
1412 libsystemd-core.la \
1415 # ------------------------------------------------------------------------------
1416 ## .PHONY so it always rebuilds it
1417 .PHONY: coverage lcov-run lcov-report
1419 # run lcov from scratch, always
1424 coverage_dir = coverage
1425 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1428 # reset run coverage tests
1430 @rm -rf $(coverage_dir)
1431 lcov $(coverage_opts) --zerocounters
1434 # generate report based on current coverage data
1436 $(MKDIR_P) $(coverage_dir)
1437 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1438 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1439 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1440 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1442 # lcov doesn't work properly with vpath builds, make sure that bad
1443 # output is not uploaded by mistake.
1444 coverage-sync: coverage
1445 test "$(builddir)" = "$(srcdir)"
1446 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1449 lcov-run lcov-report:
1450 echo "Need to reconfigure with --enable-coverage"
1453 # ------------------------------------------------------------------------------
1454 systemd_analyze_SOURCES = \
1455 src/analyze/analyze.c
1457 systemd_analyze_LDADD = \
1458 libsystemd-internal.la \
1459 libsystemd-id128-internal.la \
1460 libsystemd-daemon-internal.la \
1461 libsystemd-shared.la
1463 # ------------------------------------------------------------------------------
1464 systemd_initctl_SOURCES = \
1465 src/initctl/initctl.c
1467 systemd_initctl_LDADD = \
1468 libsystemd-internal.la \
1469 libsystemd-id128-internal.la \
1470 libsystemd-daemon-internal.la \
1471 libsystemd-shared.la
1473 # ------------------------------------------------------------------------------
1474 systemd_update_utmp_SOURCES = \
1475 src/update-utmp/update-utmp.c
1477 systemd_update_utmp_CFLAGS = \
1481 systemd_update_utmp_LDADD = \
1482 libsystemd-internal.la \
1483 libsystemd-id128-internal.la \
1484 libsystemd-daemon-internal.la \
1485 libsystemd-shared.la \
1488 # ------------------------------------------------------------------------------
1489 systemd_shutdownd_SOURCES = \
1490 src/shutdownd/shutdownd.c
1492 systemd_shutdownd_LDADD = \
1493 libsystemd-label.la \
1494 libsystemd-daemon-internal.la \
1495 libsystemd-shared.la
1498 src/systemd/sd-shutdown.h
1500 # ------------------------------------------------------------------------------
1501 systemd_shutdown_SOURCES = \
1504 src/core/shutdown.c \
1505 src/core/mount-setup.c \
1506 src/core/mount-setup.h \
1507 src/core/killall.h \
1510 systemd_shutdown_LDADD = \
1511 libsystemd-label.la \
1512 libudev-internal.la \
1513 libsystemd-shared.la
1515 # ------------------------------------------------------------------------------
1517 systemd_modules_load_SOURCES = \
1518 src/modules-load/modules-load.c
1520 systemd_modules_load_CFLAGS = \
1524 systemd_modules_load_LDADD = \
1525 libsystemd-shared.la \
1528 rootlibexec_PROGRAMS += \
1529 systemd-modules-load
1531 nodist_systemunit_DATA += \
1532 units/systemd-modules-load.service
1534 SYSINIT_TARGET_WANTS += \
1535 systemd-modules-load.service
1538 nodist_systemunit_DATA += \
1539 units/kmod-static-nodes.service
1541 SYSINIT_TARGET_WANTS += \
1542 kmod-static-nodes.service
1547 units/systemd-modules-load.service.in \
1548 units/kmod-static-nodes.service.in
1550 # ------------------------------------------------------------------------------
1552 systemd_tmpfiles_SOURCES = \
1553 src/tmpfiles/tmpfiles.c
1555 systemd_tmpfiles_LDADD = \
1556 libsystemd-units.la \
1557 libsystemd-label.la \
1558 libsystemd-capability.la \
1559 libsystemd-id128-internal.la \
1560 libsystemd-shared.la
1562 rootbin_PROGRAMS += \
1565 dist_systemunit_DATA += \
1566 units/systemd-tmpfiles-clean.timer
1568 nodist_systemunit_DATA += \
1569 units/systemd-tmpfiles-setup-dev.service \
1570 units/systemd-tmpfiles-setup.service \
1571 units/systemd-tmpfiles-clean.service
1573 dist_tmpfiles_DATA = \
1574 tmpfiles.d/systemd.conf \
1575 tmpfiles.d/systemd-nologin.conf \
1576 tmpfiles.d/tmp.conf \
1580 dist_tmpfiles_DATA += \
1581 tmpfiles.d/legacy.conf
1584 SYSINIT_TARGET_WANTS += \
1585 systemd-tmpfiles-setup-dev.service \
1586 systemd-tmpfiles-setup.service
1588 dist_zshcompletion_DATA += \
1589 shell-completion/zsh/_systemd-tmpfiles
1591 TIMERS_TARGET_WANTS += \
1592 systemd-tmpfiles-clean.timer
1596 $(sysconfdir)/tmpfiles.d
1600 units/systemd-tmpfiles-setup-dev.service.in \
1601 units/systemd-tmpfiles-setup.service.in \
1602 units/systemd-tmpfiles-clean.service.in
1604 # ------------------------------------------------------------------------------
1605 systemd_machine_id_setup_SOURCES = \
1606 src/machine-id-setup/machine-id-setup-main.c \
1607 src/core/machine-id-setup.c \
1608 src/core/machine-id-setup.h
1610 systemd_machine_id_setup_LDADD = \
1611 libsystemd-label.la \
1612 libsystemd-id128-internal.la \
1613 libsystemd-shared.la
1615 # ------------------------------------------------------------------------------
1616 systemd_sysctl_SOURCES = \
1619 systemd_sysctl_LDADD = \
1620 libsystemd-shared.la
1622 # ------------------------------------------------------------------------------
1623 systemd_sleep_SOURCES = \
1626 systemd_sleep_LDADD = \
1627 libsystemd-shared.la
1629 # ------------------------------------------------------------------------------
1630 systemd_fsck_SOURCES = \
1633 systemd_fsck_LDADD = \
1634 libsystemd-internal.la \
1635 libsystemd-id128-internal.la \
1636 libsystemd-daemon-internal.la \
1637 libudev-internal.la \
1638 libsystemd-shared.la
1640 # ------------------------------------------------------------------------------
1641 systemd_ac_power_SOURCES = \
1642 src/ac-power/ac-power.c
1644 systemd_ac_power_LDADD = \
1645 libudev-internal.la \
1646 libsystemd-shared.la
1648 # ------------------------------------------------------------------------------
1649 systemd_detect_virt_SOURCES = \
1650 src/detect-virt/detect-virt.c
1652 systemd_detect_virt_LDADD = \
1653 libsystemd-shared.la
1655 systemd-detect-virt-install-hook:
1656 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1658 INSTALL_EXEC_HOOKS += \
1659 systemd-detect-virt-install-hook
1661 # ------------------------------------------------------------------------------
1662 systemd_delta_SOURCES = \
1665 systemd_delta_LDADD = \
1666 libsystemd-shared.la
1668 # ------------------------------------------------------------------------------
1669 systemd_getty_generator_SOURCES = \
1670 src/getty-generator/getty-generator.c
1672 systemd_getty_generator_LDADD = \
1673 libsystemd-label.la \
1674 libsystemd-shared.la
1676 # ------------------------------------------------------------------------------
1677 systemd_fstab_generator_SOURCES = \
1678 src/fstab-generator/fstab-generator.c \
1679 src/core/mount-setup.c
1681 systemd_fstab_generator_LDADD = \
1682 libsystemd-label.la \
1683 libsystemd-shared.la
1685 # ------------------------------------------------------------------------------
1686 systemd_system_update_generator_SOURCES = \
1687 src/system-update-generator/system-update-generator.c
1689 systemd_system_update_generator_LDADD = \
1690 libsystemd-label.la \
1691 libsystemd-shared.la
1694 # ------------------------------------------------------------------------------
1695 systemgenerator_PROGRAMS += \
1696 systemd-efi-boot-generator
1698 systemd_efi_boot_generator_SOURCES = \
1699 src/efi-boot-generator/efi-boot-generator.c
1701 systemd_efi_boot_generator_LDADD = \
1702 libsystemd-label.la \
1703 libsystemd-shared.la
1705 # ------------------------------------------------------------------------------
1708 src/boot/boot-loader.h \
1709 src/boot/bootctl.c \
1710 src/boot/boot-loader.c \
1714 libsystemd-shared.la \
1715 libsystemd-id128-internal.la \
1716 libsystemd-daemon-internal.la
1721 dist_zshcompletion_DATA += \
1722 shell-completion/zsh/_bootctl
1726 # ------------------------------------------------------------------------------
1728 systemgenerator_PROGRAMS += \
1729 systemd-gpt-auto-generator
1731 systemd_gpt_auto_generator_SOURCES = \
1732 src/gpt-auto-generator/gpt-auto-generator.c
1734 systemd_gpt_auto_generator_LDADD = \
1735 libsystemd-label.la \
1736 libsystemd-id128-internal.la \
1737 libudev-internal.la \
1738 libsystemd-shared.la \
1741 systemd_gpt_auto_generator_CFLAGS = \
1746 # ------------------------------------------------------------------------------
1748 systemgenerator_PROGRAMS += \
1749 systemd-dbus1-generator
1751 systemd_dbus1_generator_SOURCES = \
1752 src/dbus1-generator/dbus1-generator.c
1754 systemd_dbus1_generator_LDADD = \
1755 libsystemd-label.la \
1756 libsystemd-shared.la \
1757 libsystemd-internal.la
1759 dbus1-generator-install-hook:
1760 $(AM_V_LN)$(LN_S) -f $(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1762 dbus1-generator-uninstall-hook:
1763 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1765 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1766 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1769 # ------------------------------------------------------------------------------
1770 systemd_rc_local_generator_SOURCES = \
1771 src/rc-local-generator/rc-local-generator.c
1773 systemd_rc_local_generator_LDADD = \
1774 libsystemd-label.la \
1775 libsystemd-shared.la
1777 # ------------------------------------------------------------------------------
1778 systemd_remount_fs_SOURCES = \
1779 src/remount-fs/remount-fs.c \
1780 src/core/mount-setup.c \
1781 src/core/mount-setup.h
1783 systemd_remount_fs_LDADD = \
1784 libsystemd-label.la \
1785 libsystemd-shared.la
1787 # ------------------------------------------------------------------------------
1788 systemd_cgroups_agent_SOURCES = \
1789 src/cgroups-agent/cgroups-agent.c
1791 systemd_cgroups_agent_LDADD = \
1792 libsystemd-internal.la \
1793 libsystemd-id128-internal.la \
1794 libsystemd-daemon-internal.la \
1795 libsystemd-shared.la
1797 # ------------------------------------------------------------------------------
1798 systemctl_SOURCES = \
1799 src/systemctl/systemctl.c
1802 libsystemd-units.la \
1803 libsystemd-label.la \
1804 libsystemd-internal.la \
1808 systemctl_LDADD += \
1809 libsystemd-login-internal.la
1812 systemctl_LDADD += \
1813 libsystemd-journal-internal.la \
1814 libsystemd-id128-internal.la \
1815 libsystemd-daemon-internal.la \
1816 libsystemd-shared.la
1818 # ------------------------------------------------------------------------------
1819 systemd_notify_SOURCES = \
1820 src/notify/notify.c \
1821 src/readahead/sd-readahead.c
1823 systemd_notify_LDADD = \
1824 libsystemd-daemon-internal.la \
1825 libsystemd-shared.la
1827 # ------------------------------------------------------------------------------
1828 systemd_ask_password_SOURCES = \
1829 src/ask-password/ask-password.c
1831 systemd_ask_password_LDADD = \
1832 libsystemd-label.la \
1833 libsystemd-shared.la
1835 # ------------------------------------------------------------------------------
1836 systemd_reply_password_SOURCES = \
1837 src/reply-password/reply-password.c
1839 systemd_reply_password_LDADD = \
1840 libsystemd-shared.la
1842 # ------------------------------------------------------------------------------
1843 systemd_cgls_SOURCES = \
1846 systemd_cgls_LDADD = \
1847 libsystemd-shared.la
1849 # ------------------------------------------------------------------------------
1850 systemd_cgtop_SOURCES = \
1853 systemd_cgtop_LDADD = \
1854 libsystemd-shared.la
1856 # ------------------------------------------------------------------------------
1857 systemd_nspawn_SOURCES = \
1858 src/nspawn/nspawn.c \
1859 src/core/mount-setup.c \
1860 src/core/mount-setup.h \
1861 src/core/loopback-setup.c \
1862 src/core/loopback-setup.h
1864 systemd_nspawn_LDADD = \
1865 libsystemd-label.la \
1866 libsystemd-capability.la \
1867 libsystemd-internal.la \
1868 libsystemd-id128-internal.la \
1869 libsystemd-daemon-internal.la \
1870 libsystemd-shared.la
1872 # ------------------------------------------------------------------------------
1873 systemd_run_SOURCES = \
1876 systemd_run_LDADD = \
1877 libsystemd-label.la \
1878 libsystemd-capability.la \
1879 libsystemd-internal.la \
1880 libsystemd-daemon-internal.la \
1881 libsystemd-id128-internal.la \
1882 libsystemd-shared.la
1884 # ------------------------------------------------------------------------------
1885 systemd_bus_proxyd_SOURCES = \
1886 src/bus-proxyd/bus-proxyd.c
1888 systemd_bus_proxyd_LDADD = \
1889 libsystemd-internal.la \
1890 libsystemd-daemon-internal.la \
1891 libsystemd-id128-internal.la \
1892 libsystemd-shared.la
1894 bus-proxyd-install-hook:
1895 $(AM_V_LN)$(LN_S) -f ../lib/systemd/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
1897 bus-proxyd-uninstall-hook:
1898 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
1900 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
1901 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
1904 nodist_systemunit_DATA += \
1905 units/systemd-bus-proxyd@.service
1907 dist_systemunit_DATA += \
1908 units/systemd-bus-proxyd.socket
1910 dist_userunit_DATA += \
1911 units/user/systemd-bus-proxyd.socket \
1912 units/user/systemd-bus-proxyd@.service
1916 units/systemd-bus-proxyd@.service.in
1918 # ------------------------------------------------------------------------------
1919 systemd_tty_ask_password_agent_SOURCES = \
1920 src/tty-ask-password-agent/tty-ask-password-agent.c
1922 systemd_tty_ask_password_agent_LDADD = \
1923 libsystemd-label.la \
1924 libsystemd-shared.la
1926 # ------------------------------------------------------------------------------
1927 libsystemd_daemon_la_SOURCES = \
1928 src/libsystemd-daemon/libsystemd-daemon.sym \
1929 src/libsystemd-daemon/sd-daemon.c
1931 libsystemd_daemon_internal_la_SOURCES = \
1932 $(libsystemd_daemon_la_SOURCES)
1934 libsystemd_daemon_internal_la_CPPFLAGS = \
1936 -DSD_DAEMON_DISABLE_MQ
1938 libsystemd_daemon_la_CFLAGS = \
1940 -fvisibility=hidden \
1943 libsystemd_daemon_la_LDFLAGS = \
1945 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1946 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1948 libsystemd_daemon_la_LIBADD = \
1951 pkginclude_HEADERS += \
1952 src/systemd/sd-daemon.h
1954 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1955 libsystemd-daemon-install-hook:
1956 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1958 libsystemd-daemon-uninstall-hook:
1959 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1961 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1962 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1964 lib_LTLIBRARIES += \
1965 libsystemd-daemon.la
1967 noinst_LTLIBRARIES += \
1968 libsystemd-daemon-internal.la
1970 pkgconfiglib_DATA += \
1971 src/libsystemd-daemon/libsystemd-daemon.pc
1974 src/libsystemd-daemon/libsystemd-daemon.pc.in
1976 # ------------------------------------------------------------------------------
1977 libsystemd_la_SOURCES = \
1978 src/libsystemd/libsystemd.sym \
1979 src/systemd/sd-bus.h \
1980 src/systemd/sd-bus-protocol.h \
1981 src/systemd/sd-bus-vtable.h \
1982 src/systemd/sd-memfd.h \
1983 src/systemd/sd-utf8.h \
1984 src/systemd/sd-event.h \
1985 src/systemd/sd-rtnl.h \
1986 src/systemd/sd-resolve.h \
1987 src/libsystemd/sd-bus.c \
1988 src/libsystemd/bus-control.c \
1989 src/libsystemd/bus-control.h \
1990 src/libsystemd/bus-error.c \
1991 src/libsystemd/bus-error.h \
1992 src/libsystemd/bus-internal.c \
1993 src/libsystemd/bus-internal.h \
1994 src/libsystemd/bus-socket.c \
1995 src/libsystemd/bus-socket.h \
1996 src/libsystemd/bus-kernel.c \
1997 src/libsystemd/bus-kernel.h \
1998 src/libsystemd/bus-container.c \
1999 src/libsystemd/bus-container.h \
2000 src/libsystemd/bus-message.c \
2001 src/libsystemd/bus-message.h \
2002 src/libsystemd/bus-creds.c \
2003 src/libsystemd/bus-creds.h \
2004 src/libsystemd/bus-signature.c \
2005 src/libsystemd/bus-signature.h \
2006 src/libsystemd/bus-type.c \
2007 src/libsystemd/bus-type.h \
2008 src/libsystemd/bus-match.c \
2009 src/libsystemd/bus-match.h \
2010 src/libsystemd/bus-bloom.c \
2011 src/libsystemd/bus-bloom.h \
2012 src/libsystemd/bus-introspect.c \
2013 src/libsystemd/bus-introspect.h \
2014 src/libsystemd/bus-objects.c \
2015 src/libsystemd/bus-objects.h \
2016 src/libsystemd/bus-gvariant.c \
2017 src/libsystemd/bus-gvariant.h \
2018 src/libsystemd/bus-convenience.c \
2019 src/libsystemd/kdbus.h \
2020 src/libsystemd/sd-memfd.c \
2021 src/libsystemd/bus-util.c \
2022 src/libsystemd/bus-util.h \
2023 src/libsystemd/sd-utf8.c \
2024 src/libsystemd/sd-event.c \
2025 src/libsystemd/event-util.h \
2026 src/libsystemd/bus-protocol.h \
2027 src/libsystemd/sd-rtnl.c \
2028 src/libsystemd/rtnl-internal.h \
2029 src/libsystemd/rtnl-message.c \
2030 src/libsystemd/rtnl-util.h \
2031 src/libsystemd/rtnl-util.c \
2032 src/libsystemd/sd-resolve.c \
2033 src/libsystemd/resolve-util.h
2035 nodist_libsystemd_la_SOURCES = \
2036 src/libsystemd/bus-error-mapping.c
2038 libsystemd_la_LIBADD = \
2039 libsystemd-id128-internal.la \
2040 libsystemd-daemon-internal.la \
2041 libsystemd-shared.la
2043 libsystemd_la_CFLAGS = \
2048 libsystemd_la_LDFLAGS = \
2050 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2051 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
2053 pkgconfiglib_DATA += \
2054 src/libsystemd/libsystemd.pc
2057 src/libsystemd/bus-error-mapping.gperf \
2058 src/libsystemd/libsystemd.pc.in \
2059 src/libsystemd/DIFFERENCES \
2060 src/libsystemd/GVARIANT-SERIALIZATION
2063 src/libsystemd/bus-error-mapping.c
2065 lib_LTLIBRARIES += \
2068 libsystemd_internal_la_SOURCES = \
2069 $(libsystemd_la_SOURCES)
2071 nodist_libsystemd_internal_la_SOURCES = \
2072 $(nodist_libsystemd_la_SOURCES)
2074 libsystemd_internal_la_CFLAGS = \
2075 $(libsystemd_la_CFLAGS)
2077 noinst_LTLIBRARIES += \
2078 libsystemd-internal.la
2080 libsystemd_dump_la_SOURCES = \
2081 src/libsystemd/bus-dump.c \
2082 src/libsystemd/bus-dump.h
2084 libsystemd_dump_la_CFLAGS = \
2088 noinst_LTLIBRARIES += \
2093 test-bus-signature \
2099 test-bus-kernel-bloom \
2100 test-bus-kernel-benchmark \
2102 test-bus-zero-copy \
2103 test-bus-introspect \
2115 test_bus_marshal_SOURCES = \
2116 src/libsystemd/test-bus-marshal.c
2118 test_bus_marshal_LDADD = \
2119 libsystemd-internal.la \
2120 libsystemd-id128-internal.la \
2121 libsystemd-daemon-internal.la \
2122 libsystemd-shared.la \
2123 libsystemd-dump.la \
2124 libsystemd-capability.la \
2129 test_bus_marshal_CFLAGS = \
2135 test_bus_signature_SOURCES = \
2136 src/libsystemd/test-bus-signature.c
2138 test_bus_signature_LDADD = \
2139 libsystemd-shared.la \
2140 libsystemd-internal.la
2142 test_bus_chat_SOURCES = \
2143 src/libsystemd/test-bus-chat.c
2145 test_bus_chat_CFLAGS = \
2149 test_bus_chat_LDADD = \
2150 libsystemd-internal.la \
2151 libsystemd-id128-internal.la \
2152 libsystemd-daemon-internal.la \
2153 libsystemd-shared.la
2155 test_bus_cleanup_SOURCES = \
2156 src/libsystemd/test-bus-cleanup.c
2158 test_bus_cleanup_LDADD = \
2159 libsystemd-internal.la \
2160 libsystemd-id128-internal.la \
2161 libsystemd-daemon-internal.la \
2162 libsystemd-shared.la
2164 test_bus_server_SOURCES = \
2165 src/libsystemd/test-bus-server.c
2167 test_bus_server_CFLAGS = \
2171 test_bus_server_LDADD = \
2172 libsystemd-internal.la \
2173 libsystemd-id128-internal.la \
2174 libsystemd-daemon-internal.la \
2175 libsystemd-shared.la
2177 test_bus_objects_SOURCES = \
2178 src/libsystemd/test-bus-objects.c
2180 test_bus_objects_CFLAGS = \
2185 test_bus_objects_LDADD = \
2186 libsystemd-internal.la \
2187 libsystemd-id128-internal.la \
2188 libsystemd-daemon-internal.la \
2189 libsystemd-shared.la \
2190 libsystemd-dump.la \
2191 libsystemd-capability.la \
2194 test_bus_error_SOURCES = \
2195 src/libsystemd/test-bus-error.c
2197 test_bus_error_LDADD = \
2198 libsystemd-internal.la \
2199 libsystemd-id128-internal.la \
2200 libsystemd-daemon-internal.la \
2201 libsystemd-shared.la
2203 test_bus_gvariant_SOURCES = \
2204 src/libsystemd/test-bus-gvariant.c
2206 test_bus_gvariant_LDADD = \
2207 libsystemd-internal.la \
2208 libsystemd-id128-internal.la \
2209 libsystemd-daemon-internal.la \
2210 libsystemd-shared.la \
2211 libsystemd-dump.la \
2212 libsystemd-capability.la \
2216 test_bus_gvariant_CFLAGS = \
2221 test_bus_creds_SOURCES = \
2222 src/libsystemd/test-bus-creds.c
2224 test_bus_creds_LDADD = \
2225 libsystemd-internal.la \
2226 libsystemd-id128-internal.la \
2227 libsystemd-daemon-internal.la \
2228 libsystemd-shared.la \
2229 libsystemd-dump.la \
2230 libsystemd-capability.la
2232 test_bus_match_SOURCES = \
2233 src/libsystemd/test-bus-match.c
2235 test_bus_match_LDADD = \
2236 libsystemd-internal.la \
2237 libsystemd-id128-internal.la \
2238 libsystemd-daemon-internal.la \
2239 libsystemd-shared.la
2241 test_bus_kernel_SOURCES = \
2242 src/libsystemd/test-bus-kernel.c
2244 test_bus_kernel_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 \
2253 test_bus_kernel_CFLAGS = \
2257 test_bus_kernel_bloom_SOURCES = \
2258 src/libsystemd/test-bus-kernel-bloom.c
2260 test_bus_kernel_bloom_LDADD = \
2261 libsystemd-internal.la \
2262 libsystemd-id128-internal.la \
2263 libsystemd-daemon-internal.la \
2264 libsystemd-shared.la
2266 test_bus_kernel_benchmark_SOURCES = \
2267 src/libsystemd/test-bus-kernel-benchmark.c
2269 test_bus_kernel_benchmark_LDADD = \
2270 libsystemd-internal.la \
2271 libsystemd-id128-internal.la \
2272 libsystemd-daemon-internal.la \
2273 libsystemd-shared.la
2275 test_bus_memfd_SOURCES = \
2276 src/libsystemd/test-bus-memfd.c
2278 test_bus_memfd_LDADD = \
2279 libsystemd-internal.la \
2280 libsystemd-shared.la
2282 test_bus_zero_copy_SOURCES = \
2283 src/libsystemd/test-bus-zero-copy.c
2285 test_bus_zero_copy_LDADD = \
2286 libsystemd-internal.la \
2287 libsystemd-id128-internal.la \
2288 libsystemd-daemon-internal.la \
2289 libsystemd-shared.la \
2290 libsystemd-dump.la \
2291 libsystemd-capability.la \
2294 test_bus_zero_copy_CFLAGS = \
2298 test_bus_introspect_SOURCES = \
2299 src/libsystemd/test-bus-introspect.c
2301 test_bus_introspect_LDADD = \
2302 libsystemd-shared.la \
2303 libsystemd-internal.la
2305 test_event_SOURCES = \
2306 src/libsystemd/test-event.c
2308 test_event_LDADD = \
2309 libsystemd-internal.la \
2310 libsystemd-id128-internal.la \
2311 libsystemd-daemon-internal.la \
2312 libsystemd-shared.la
2314 test_rtnl_SOURCES = \
2315 src/libsystemd/test-rtnl.c
2318 libsystemd-internal.la \
2319 libsystemd-daemon-internal.la \
2320 libsystemd-id128-internal.la \
2321 libsystemd-shared.la
2323 test_resolve_SOURCES = \
2324 src/systemd/sd-resolve.h \
2325 src/libsystemd/test-resolve.c
2327 test_resolve_LDADD = \
2328 libsystemd-internal.la \
2329 libsystemd-shared.la
2331 test_resolve_CFLAGS = \
2336 src/libsystemd/busctl.c
2339 libsystemd-internal.la \
2340 libsystemd-id128-internal.la \
2341 libsystemd-daemon-internal.la \
2342 libsystemd-shared.la \
2343 libsystemd-dump.la \
2344 libsystemd-capability.la \
2351 # ------------------------------------------------------------------------------
2352 noinst_LTLIBRARIES += \
2355 libsystemd_dhcp_la_SOURCES = \
2356 src/systemd/sd-dhcp-client.h \
2357 src/libsystemd-dhcp/sd-dhcp-client.c \
2358 src/libsystemd-dhcp/dhcp-network.c \
2359 src/libsystemd-dhcp/dhcp-option.c \
2360 src/libsystemd-dhcp/dhcp-internal.h \
2361 src/libsystemd-dhcp/dhcp-protocol.h
2363 libsystemd_dhcp_la_LIBADD = \
2364 libsystemd-internal.la \
2365 libsystemd-shared.la
2367 test_dhcp_option_SOURCES = \
2368 src/libsystemd-dhcp/dhcp-protocol.h \
2369 src/libsystemd-dhcp/dhcp-internal.h \
2370 src/libsystemd-dhcp/test-dhcp-option.c
2372 test_dhcp_option_LDADD = \
2373 libsystemd-dhcp.la \
2374 libsystemd-internal.la \
2375 libsystemd-shared.la
2377 test_dhcp_client_SOURCES = \
2378 src/systemd/sd-dhcp-client.h \
2379 src/libsystemd-dhcp/dhcp-protocol.h \
2380 src/libsystemd-dhcp/dhcp-internal.h \
2381 src/libsystemd-dhcp/test-dhcp-client.c
2383 test_dhcp_client_LDADD = \
2384 libsystemd-dhcp.la \
2385 libsystemd-internal.la \
2386 libsystemd-daemon-internal.la \
2387 libsystemd-id128-internal.la \
2388 libsystemd-shared.la
2394 # ------------------------------------------------------------------------------
2404 include_HEADERS += \
2405 src/libudev/libudev.h
2407 lib_LTLIBRARIES += \
2410 libudev_la_SOURCES =\
2411 src/libudev/libudev.sym \
2412 src/libudev/libudev-private.h \
2413 src/libudev/libudev.c \
2414 src/libudev/libudev-list.c \
2415 src/libudev/libudev-util.c \
2416 src/libudev/libudev-device.c \
2417 src/libudev/libudev-enumerate.c \
2418 src/libudev/libudev-monitor.c \
2419 src/libudev/libudev-queue.c \
2420 src/libudev/libudev-hwdb-def.h \
2421 src/libudev/libudev-hwdb.c
2423 libudev_la_CFLAGS = \
2427 libudev_la_LDFLAGS = \
2429 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2430 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2432 libudev_la_LIBADD = \
2433 libsystemd-daemon-internal.la \
2434 libsystemd-id128-internal.la \
2435 libsystemd-shared.la
2437 pkgconfiglib_DATA += \
2438 src/libudev/libudev.pc
2441 src/libudev/libudev.pc.in
2444 src/libudev/libudev.pc \
2449 $(AM_V_at)$(MKDIR_P) $(dir $@)
2450 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2453 $(AM_V_at)$(MKDIR_P) $(dir $@)
2454 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2456 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2457 libudev-install-hook:
2458 libname=libudev.so && $(move-to-rootlibdir)
2460 libudev-uninstall-hook:
2461 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2463 INSTALL_EXEC_HOOKS += libudev-install-hook
2464 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2466 # ------------------------------------------------------------------------------
2467 noinst_LTLIBRARIES += \
2470 libudev_internal_la_SOURCES =\
2471 $(libudev_la_SOURCES) \
2472 src/libudev/libudev-device-private.c \
2473 src/libudev/libudev-queue-private.c
2475 libudev_internal_la_CFLAGS = \
2477 -fvisibility=default
2479 # ------------------------------------------------------------------------------
2481 $(sysconfdir)/udev/rules.d \
2482 $(sysconfdir)/udev/hwdb.d
2484 dist_network_DATA = \
2485 network/99-default.link
2487 dist_udevrules_DATA += \
2488 rules/99-systemd.rules \
2489 rules/42-usb-hid-pm.rules \
2490 rules/50-udev-default.rules \
2491 rules/60-drm.rules \
2492 rules/60-keyboard.rules \
2493 rules/60-persistent-storage-tape.rules \
2494 rules/60-persistent-serial.rules \
2495 rules/60-persistent-input.rules \
2496 rules/60-persistent-alsa.rules \
2497 rules/60-persistent-storage.rules \
2498 rules/64-btrfs.rules \
2499 rules/75-net-description.rules \
2500 rules/75-tty-description.rules \
2501 rules/78-sound-card.rules \
2502 rules/80-net-setup-link.rules \
2503 rules/95-udev-late.rules
2505 dist_udevhwdb_DATA = \
2506 hwdb/20-pci-vendor-model.hwdb \
2507 hwdb/20-pci-classes.hwdb \
2508 hwdb/20-usb-vendor-model.hwdb \
2509 hwdb/20-usb-classes.hwdb \
2510 hwdb/20-sdio-vendor-model.hwdb \
2511 hwdb/20-sdio-classes.hwdb \
2512 hwdb/20-bluetooth-vendor-product.hwdb \
2513 hwdb/20-acpi-vendor.hwdb \
2515 hwdb/60-keyboard.hwdb
2517 udevconfdir = $(sysconfdir)/udev
2518 dist_udevconf_DATA = \
2521 sharepkgconfigdir = $(datadir)/pkgconfig
2522 sharepkgconfig_DATA = \
2526 rules/99-systemd.rules.in \
2530 rules/99-systemd.rules \
2534 units/systemd-udevd.service.in \
2535 units/systemd-udev-trigger.service.in \
2536 units/systemd-udev-settle.service.in
2539 units/systemd-udevd.service \
2540 units/systemd-udev-trigger.service \
2541 units/systemd-udev-settle.service
2543 SOCKETS_TARGET_WANTS += \
2544 systemd-udevd-control.socket \
2545 systemd-udevd-kernel.socket
2546 SYSINIT_TARGET_WANTS += \
2547 systemd-udevd.service \
2548 systemd-udev-trigger.service
2550 rootbin_PROGRAMS += \
2553 rootlibexec_PROGRAMS += \
2556 noinst_LTLIBRARIES += \
2559 src/udev/keyboard-keys.txt:
2560 $(AM_V_at)$(MKDIR_P) $(dir $@)
2561 $(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/' > $@
2563 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2564 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2566 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2567 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2569 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2570 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2572 libudev_core_la_SOURCES = \
2574 src/udev/udev-event.c \
2575 src/udev/udev-watch.c \
2576 src/udev/udev-node.c \
2577 src/udev/udev-rules.c \
2578 src/udev/udev-ctrl.c \
2579 src/udev/udev-builtin.c \
2580 src/udev/udev-builtin-btrfs.c \
2581 src/udev/udev-builtin-hwdb.c \
2582 src/udev/udev-builtin-input_id.c \
2583 src/udev/udev-builtin-keyboard.c \
2584 src/udev/udev-builtin-net_id.c \
2585 src/udev/udev-builtin-net_setup_link.c \
2586 src/udev/udev-builtin-path_id.c \
2587 src/udev/udev-builtin-usb_id.c \
2588 src/udev/net/link-config.h \
2589 src/udev/net/link-config.c \
2590 src/udev/net/ethtool-util.h \
2591 src/udev/net/ethtool-util.c
2593 nodist_libudev_core_la_SOURCES = \
2594 src/udev/keyboard-keys-from-name.h \
2595 src/udev/keyboard-keys-to-name.h \
2596 src/udev/net/link-config-gperf.c
2599 $(nodist_libudev_core_la_SOURCES)
2602 src/udev/keyboard-keys-from-name.gperf \
2603 src/udev/keyboard-keys.txt \
2604 src/udev/net/link-config-gperf.c
2607 src/udev/net/link-config-gperf.gperf
2609 libudev_core_la_CFLAGS = \
2614 libudev_core_la_LIBADD = \
2615 libudev-internal.la \
2616 libsystemd-label.la \
2617 libsystemd-daemon-internal.la \
2618 libsystemd-internal.la \
2619 libsystemd-id128-internal.la \
2620 libsystemd-shared.la \
2624 libudev_core_la_CPPFLAGS = \
2626 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2629 libudev_core_la_SOURCES += \
2630 src/udev/udev-builtin-firmware.c
2632 dist_udevrules_DATA += \
2633 rules/50-firmware.rules
2637 libudev_core_la_SOURCES += \
2638 src/udev/udev-builtin-kmod.c
2640 dist_udevrules_DATA += \
2641 rules/80-drivers.rules
2645 libudev_core_la_SOURCES += \
2646 src/udev/udev-builtin-blkid.c
2650 libudev_core_la_SOURCES += \
2651 src/udev/udev-builtin-uaccess.c \
2652 src/login/logind-acl.c \
2653 src/login/sd-login.c \
2654 src/systemd/sd-login.h \
2655 src/login/login-shared.c \
2656 src/login/login-shared.h
2658 libudev_core_la_LIBADD += \
2662 systemd_udevd_SOURCES = \
2665 systemd_udevd_LDADD = \
2669 src/udev/udevadm.c \
2670 src/udev/udevadm-info.c \
2671 src/udev/udevadm-control.c \
2672 src/udev/udevadm-monitor.c \
2673 src/udev/udevadm-hwdb.c \
2674 src/udev/udevadm-settle.c \
2675 src/udev/udevadm-trigger.c \
2676 src/udev/udevadm-test.c \
2677 src/udev/udevadm-test-builtin.c
2682 # Update hwdb on installation. Do not bother if installing
2683 # in DESTDIR, since this is likely for packaging purposes.
2685 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2687 INSTALL_DATA_HOOKS += \
2691 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2693 # ------------------------------------------------------------------------------
2702 test_libudev_SOURCES = \
2703 src/test/test-libudev.c
2705 test_libudev_LDADD = \
2706 libsystemd-label.la \
2707 libudev-internal.la \
2708 libsystemd-shared.la
2710 test_udev_SOURCES = \
2711 src/test/test-udev.c
2720 test_udev_LDADD += \
2727 # packed sysfs test tree
2729 $(AM_V_at)$(MKDIR_P) $(dir $@)
2730 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2734 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2739 test/rules-test.sh \
2740 test/rule-syntax-check.py
2742 # ------------------------------------------------------------------------------
2744 src/udev/ata_id/ata_id.c
2747 libudev-internal.la \
2748 libsystemd-shared.la
2750 udevlibexec_PROGRAMS += \
2753 # ------------------------------------------------------------------------------
2754 cdrom_id_SOURCES = \
2755 src/udev/cdrom_id/cdrom_id.c
2758 libudev-internal.la \
2759 libsystemd-shared.la
2761 udevlibexec_PROGRAMS += \
2764 dist_udevrules_DATA += \
2765 rules/60-cdrom_id.rules
2767 # ------------------------------------------------------------------------------
2769 src/udev/collect/collect.c
2772 libudev-internal.la \
2773 libsystemd-shared.la
2775 udevlibexec_PROGRAMS += \
2778 # ------------------------------------------------------------------------------
2780 src/udev/scsi_id/scsi_id.c \
2781 src/udev/scsi_id/scsi_serial.c \
2782 src/udev/scsi_id/scsi.h \
2783 src/udev/scsi_id/scsi_id.h
2786 libudev-internal.la \
2787 libsystemd-shared.la
2789 udevlibexec_PROGRAMS += \
2793 src/udev/scsi_id/README
2795 # ------------------------------------------------------------------------------
2797 src/udev/v4l_id/v4l_id.c
2802 udevlibexec_PROGRAMS += \
2805 dist_udevrules_DATA += \
2806 rules/60-persistent-v4l.rules
2808 # ------------------------------------------------------------------------------
2809 accelerometer_SOURCES = \
2810 src/udev/accelerometer/accelerometer.c
2812 accelerometer_LDADD = \
2813 libudev-internal.la -lm \
2814 libsystemd-shared.la
2816 udevlibexec_PROGRAMS += \
2819 dist_udevrules_DATA += \
2820 rules/61-accelerometer.rules
2822 # ------------------------------------------------------------------------------
2829 libgudev_includedir = \
2830 $(includedir)/gudev-1.0/gudev
2832 libgudev_include_HEADERS = \
2834 src/gudev/gudevenums.h \
2835 src/gudev/gudevenumtypes.h \
2836 src/gudev/gudevtypes.h \
2837 src/gudev/gudevclient.h \
2838 src/gudev/gudevdevice.h \
2839 src/gudev/gudevenumerator.h
2841 lib_LTLIBRARIES += libgudev-1.0.la
2843 pkgconfiglib_DATA += \
2844 src/gudev/gudev-1.0.pc
2847 src/gudev/gudev-1.0.pc
2849 libgudev_1_0_la_SOURCES = \
2850 src/gudev/gudevenums.h \
2851 src/gudev/gudevenumtypes.h \
2852 src/gudev/gudevenumtypes.h\
2853 src/gudev/gudevtypes.h \
2854 src/gudev/gudevclient.h \
2855 src/gudev/gudevclient.c \
2856 src/gudev/gudevdevice.h \
2857 src/gudev/gudevdevice.c \
2858 src/gudev/gudevenumerator.h \
2859 src/gudev/gudevenumerator.c \
2860 src/gudev/gudevprivate.h
2862 nodist_libgudev_1_0_la_SOURCES = \
2863 src/gudev/gudevmarshal.h \
2864 src/gudev/gudevmarshal.c \
2865 src/gudev/gudevenumtypes.h \
2866 src/gudev/gudevenumtypes.c
2869 $(nodist_libgudev_1_0_la_SOURCES)
2871 libgudev_1_0_la_CPPFLAGS = \
2873 -I$(top_builddir)/src\
2874 -I$(top_srcdir)/src\
2875 -I$(top_builddir)/src/gudev \
2876 -I$(top_srcdir)/src/gudev \
2877 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2878 -D_GUDEV_COMPILATION \
2879 -DG_LOG_DOMAIN=\"GUdev\"
2881 libgudev_1_0_la_CFLAGS = \
2883 -fvisibility=default \
2886 libgudev_1_0_la_LIBADD = \
2890 libgudev_1_0_la_LDFLAGS = \
2892 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2893 -export-dynamic -no-undefined \
2894 -export-symbols-regex '^g_udev_.*'
2896 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2897 $(AM_V_at)$(MKDIR_P) $(dir $@)
2898 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2900 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2901 $(AM_V_at)$(MKDIR_P) $(dir $@)
2902 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2903 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2905 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2906 $(AM_V_at)$(MKDIR_P) $(dir $@)
2907 $(AM_V_GEN)glib-mkenums --template $^ > $@
2909 if HAVE_INTROSPECTION
2910 -include $(INTROSPECTION_MAKEFILE)
2912 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2914 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2916 src_gudev_GUdev_1_0_gir_CFLAGS = \
2919 -D_GUDEV_COMPILATION \
2920 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2921 -I$(top_srcdir)/src \
2922 -I$(top_builddir)/src \
2923 -I$(top_srcdir)/src/gudev \
2924 -I$(top_builddir)/src/gudev
2926 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2928 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2929 --pkg-export=gudev-1.0 \
2932 src_gudev_GUdev_1_0_gir_FILES = \
2934 src/gudev/gudevtypes.h \
2935 src/gudev/gudevenums.h \
2936 src/gudev/gudevenumtypes.h \
2937 src/gudev/gudevclient.h \
2938 src/gudev/gudevdevice.h \
2939 src/gudev/gudevenumerator.h \
2940 src/gudev/gudevclient.c \
2941 src/gudev/gudevdevice.c \
2942 src/gudev/gudevenumerator.c
2944 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2945 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2947 girdir = $(datadir)/gir-1.0
2949 src/gudev/GUdev-1.0.gir
2951 typelibsdir = $(libdir)/girepository-1.0
2953 src/gudev/GUdev-1.0.typelib
2955 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2956 endif # HAVE_INTROSPECTION
2958 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2959 libgudev-install-hook:
2960 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2962 libgudev-uninstall-hook:
2963 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2965 INSTALL_EXEC_HOOKS += libgudev-install-hook
2966 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2970 src/gudev/gudev-1.0.pc.in \
2971 src/gudev/gudevmarshal.list \
2972 src/gudev/gudevenumtypes.h.template \
2973 src/gudev/gudevenumtypes.c.template \
2974 src/gudev/gjs-example.js \
2975 src/gudev/seed-example-enum.js \
2976 src/gudev/seed-example.js
2978 # ------------------------------------------------------------------------------
2979 mtd_probe_SOURCES = \
2980 src/udev/mtd_probe/mtd_probe.c \
2981 src/udev/mtd_probe/mtd_probe.h \
2982 src/udev/mtd_probe/probe_smartmedia.c
2984 dist_udevrules_DATA += \
2985 rules/75-probe_mtd.rules
2987 udevlibexec_PROGRAMS += \
2990 # ------------------------------------------------------------------------------
2991 libsystemd_id128_la_SOURCES = \
2992 src/libsystemd-id128/libsystemd-id128.sym \
2993 src/libsystemd-id128/sd-id128.c
2995 libsystemd_id128_la_CFLAGS = \
2999 libsystemd_id128_la_LDFLAGS = \
3001 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
3002 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
3004 libsystemd_id128_la_LIBADD = \
3005 libsystemd-daemon-internal.la \
3006 libsystemd-shared.la
3008 libsystemd_id128_internal_la_SOURCES = \
3009 $(libsystemd_id128_la_SOURCES)
3011 test_id128_SOURCES = \
3012 src/test/test-id128.c
3014 test_id128_LDADD = \
3015 libsystemd-id128-internal.la \
3016 libsystemd-daemon-internal.la \
3017 libsystemd-shared.la
3022 pkginclude_HEADERS += \
3023 src/systemd/sd-id128.h
3025 lib_LTLIBRARIES += \
3028 noinst_LTLIBRARIES += \
3029 libsystemd-id128-internal.la
3031 pkgconfiglib_DATA += \
3032 src/libsystemd-id128/libsystemd-id128.pc
3034 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3035 libsystemd-id128-install-hook:
3036 libname=libsystemd-id128.so && $(move-to-rootlibdir)
3038 libsystemd-id128-uninstall-hook:
3039 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
3041 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
3042 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
3045 src/libsystemd-id128/libsystemd-id128.pc.in
3047 # ------------------------------------------------------------------------------
3049 rootlibexec_PROGRAMS += \
3052 systemd_activate_SOURCES = \
3053 src/activate/activate.c
3055 systemd_activate_LDADD = \
3056 libsystemd-label.la \
3057 libsystemd-daemon-internal.la \
3058 libsystemd-shared.la
3060 # ------------------------------------------------------------------------------
3061 systemd_journald_SOURCES = \
3062 src/journal/journald.c \
3063 src/journal/journald-server.h
3065 systemd_journald_LDADD = \
3066 libsystemd-journal-core.la \
3067 libsystemd-internal.la \
3068 libsystemd-shared.la
3070 systemd_cat_SOURCES = \
3073 systemd_cat_LDADD = \
3074 libsystemd-journal-core.la
3076 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3077 journalctl_CFLAGS = \
3080 journalctl_SOURCES = \
3081 src/journal/journalctl.c
3083 journalctl_LDADD = \
3084 libsystemd-journal-internal.la \
3085 libsystemd-id128-internal.la \
3086 libsystemd-logs.la \
3087 libsystemd-shared.la
3090 journalctl_LDADD += \
3095 journalctl_SOURCES += \
3096 src/journal/journal-qrcode.c \
3097 src/journal/journal-qrcode.h
3099 journalctl_CFLAGS += \
3102 journalctl_LDADD += \
3106 test_journal_SOURCES = \
3107 src/journal/test-journal.c
3109 test_journal_LDADD = \
3110 libsystemd-journal-core.la
3112 test_journal_send_SOURCES = \
3113 src/journal/test-journal-send.c
3115 test_journal_send_LDADD = \
3116 libsystemd-journal-core.la
3118 test_journal_syslog_SOURCES = \
3119 src/journal/test-journal-syslog.c
3121 test_journal_syslog_LDADD = \
3122 libsystemd-journal-core.la
3124 test_journal_match_SOURCES = \
3125 src/journal/test-journal-match.c
3127 test_journal_match_LDADD = \
3128 libsystemd-journal-core.la
3130 test_journal_enum_SOURCES = \
3131 src/journal/test-journal-enum.c
3133 test_journal_enum_LDADD = \
3134 libsystemd-journal-core.la
3136 test_journal_stream_SOURCES = \
3137 src/journal/test-journal-stream.c
3139 test_journal_stream_LDADD = \
3140 libsystemd-journal-core.la
3142 test_journal_flush_SOURCES = \
3143 src/journal/test-journal-flush.c
3145 test_journal_flush_LDADD = \
3146 libsystemd-journal-core.la
3148 test_journal_init_SOURCES = \
3149 src/journal/test-journal-init.c
3151 test_journal_init_LDADD = \
3152 libsystemd-journal-core.la
3154 test_journal_verify_SOURCES = \
3155 src/journal/test-journal-verify.c
3157 test_journal_verify_LDADD = \
3158 libsystemd-journal-core.la
3160 test_journal_interleaving_SOURCES = \
3161 src/journal/test-journal-interleaving.c
3163 test_journal_interleaving_LDADD = \
3164 libsystemd-journal-core.la
3166 test_mmap_cache_SOURCES = \
3167 src/journal/test-mmap-cache.c
3169 test_mmap_cache_LDADD = \
3170 libsystemd-journal-core.la
3172 test_catalog_SOURCES = \
3173 src/journal/test-catalog.c
3175 test_catalog_CPPFLAGS = \
3177 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3179 test_catalog_LDADD = \
3180 libsystemd-journal-core.la
3182 libsystemd_journal_la_SOURCES = \
3183 src/journal/libsystemd-journal.sym \
3184 src/journal/sd-journal.c \
3185 src/systemd/sd-journal.h \
3186 src/systemd/_sd-common.h \
3187 src/journal/journal-file.c \
3188 src/journal/journal-file.h \
3189 src/journal/journal-vacuum.c \
3190 src/journal/journal-vacuum.h \
3191 src/journal/journal-verify.c \
3192 src/journal/journal-verify.h \
3193 src/journal/lookup3.c \
3194 src/journal/lookup3.h \
3195 src/journal/journal-send.c \
3196 src/journal/journal-def.h \
3197 src/journal/compress.h \
3198 src/journal/catalog.c \
3199 src/journal/catalog.h \
3200 src/journal/mmap-cache.c \
3201 src/journal/mmap-cache.h
3203 libsystemd_journal_la_CFLAGS = \
3207 libsystemd_journal_la_LDFLAGS = \
3209 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
3210 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
3212 libsystemd_journal_la_LIBADD = \
3213 libsystemd-label.la \
3214 libsystemd-daemon-internal.la \
3215 libsystemd-id128-internal.la \
3216 libsystemd-shared.la
3218 libsystemd_journal_internal_la_SOURCES = \
3219 $(libsystemd_journal_la_SOURCES)
3221 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3222 libsystemd_journal_internal_la_CFLAGS = \
3225 libsystemd_journal_internal_la_LIBADD =
3228 libsystemd_journal_la_SOURCES += \
3229 src/journal/compress.c
3231 libsystemd_journal_la_CFLAGS += \
3234 libsystemd_journal_la_LIBADD += \
3237 libsystemd_journal_internal_la_CFLAGS += \
3240 libsystemd_journal_internal_la_LIBADD += \
3244 libsystemd_journal_core_la_SOURCES = \
3245 src/journal/journald-kmsg.c \
3246 src/journal/journald-kmsg.h \
3247 src/journal/journald-syslog.c \
3248 src/journal/journald-syslog.h \
3249 src/journal/journald-stream.c \
3250 src/journal/journald-stream.h \
3251 src/journal/journald-server.c \
3252 src/journal/journald-server.h \
3253 src/journal/journald-console.c \
3254 src/journal/journald-console.h \
3255 src/journal/journald-native.c \
3256 src/journal/journald-native.h \
3257 src/journal/journald-rate-limit.c \
3258 src/journal/journald-rate-limit.h \
3259 src/journal/journal-internal.h
3261 nodist_libsystemd_journal_core_la_SOURCES = \
3262 src/journal/journald-gperf.c
3264 libsystemd_journal_core_la_LIBADD = \
3265 libsystemd-journal-internal.la \
3266 libudev-internal.la \
3267 libsystemd-capability.la \
3268 libsystemd-label.la \
3269 libsystemd-daemon-internal.la \
3270 libsystemd-id128-internal.la \
3271 libsystemd-shared.la
3274 libsystemd_journal_core_la_LIBADD += \
3275 libsystemd-login-internal.la
3279 libsystemd_journal_core_la_LIBADD += \
3283 noinst_LTLIBRARIES += \
3284 libsystemd-journal-core.la
3287 libsystemd_journal_la_SOURCES += \
3288 src/journal/journal-authenticate.c \
3289 src/journal/journal-authenticate.h \
3290 src/journal/fsprg.c \
3293 libsystemd_journal_la_CFLAGS += \
3297 libsystemd_journal_la_LIBADD += \
3300 libsystemd_journal_internal_la_CFLAGS += \
3304 libsystemd_journal_internal_la_LIBADD += \
3308 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3309 # needed. Also, grant read access to new journal files to members of
3310 # "adm" and "wheel".
3311 libsystemd-journal-install-hook:
3312 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3313 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3314 -chown 0:0 $(DESTDIR)/var/log/journal
3315 -chmod 755 $(DESTDIR)/var/log/journal
3316 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3317 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3319 libsystemd-journal-uninstall-hook:
3320 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3322 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3323 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3325 # ------------------------------------------------------------------------------
3327 # Update catalog on installation. Do not bother if installing
3328 # in DESTDIR, since this is likely for packaging purposes.
3329 catalog-update-hook:
3330 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3332 INSTALL_DATA_HOOKS += \
3335 catalog-remove-hook:
3336 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3338 UNINSTALL_DATA_HOOKS += \
3347 test-journal-syslog \
3348 test-journal-match \
3349 test-journal-stream \
3351 test-journal-verify \
3352 test-journal-interleaving \
3353 test-journal-flush \
3357 pkginclude_HEADERS += \
3358 src/systemd/sd-journal.h \
3359 src/systemd/sd-messages.h \
3360 src/systemd/_sd-common.h
3362 lib_LTLIBRARIES += \
3363 libsystemd-journal.la
3365 noinst_LTLIBRARIES += \
3366 libsystemd-journal-internal.la
3368 rootlibexec_PROGRAMS += \
3371 rootbin_PROGRAMS += \
3377 dist_systemunit_DATA += \
3378 units/systemd-journald.socket
3380 nodist_systemunit_DATA += \
3381 units/systemd-journald.service \
3382 units/systemd-journal-flush.service
3384 dist_pkgsysconf_DATA += \
3385 src/journal/journald.conf
3387 pkgconfiglib_DATA += \
3388 src/journal/libsystemd-journal.pc
3390 dist_catalog_DATA = \
3391 catalog/systemd.fr.catalog \
3392 catalog/systemd.ru.catalog \
3393 catalog/systemd.it.catalog \
3394 catalog/systemd.catalog
3396 SOCKETS_TARGET_WANTS += \
3397 systemd-journald.socket
3398 SYSINIT_TARGET_WANTS += \
3399 systemd-journald.service \
3400 systemd-journal-flush.service
3403 src/journal/libsystemd-journal.pc.in \
3404 units/systemd-journald.service.in \
3405 units/systemd-journal-flush.service.in \
3406 src/journal/journald-gperf.gperf
3409 src/journal/journald-gperf.c
3411 # ------------------------------------------------------------------------------
3413 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3415 rootlibexec_PROGRAMS += \
3416 systemd-journal-gatewayd
3418 systemd_journal_gatewayd_SOURCES = \
3419 src/journal/journal-gatewayd.c \
3420 src/journal/microhttpd-util.h \
3421 src/journal/microhttpd-util.c
3423 systemd_journal_gatewayd_LDADD = \
3424 libsystemd-logs.la \
3425 libsystemd-journal-internal.la \
3426 libsystemd-id128-internal.la \
3427 libsystemd-daemon-internal.la \
3428 libsystemd-internal.la \
3429 libsystemd-shared.la \
3432 systemd_journal_gatewayd_CFLAGS = \
3434 $(MICROHTTPD_CFLAGS)
3436 systemd_journal_gatewayd_CPPFLAGS = \
3438 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3440 dist_systemunit_DATA += \
3441 units/systemd-journal-gatewayd.socket
3443 nodist_systemunit_DATA += \
3444 units/systemd-journal-gatewayd.service
3446 dist_gatewayddocumentroot_DATA = \
3447 src/journal/browse.html
3452 units/systemd-journal-gatewayd.service.in
3454 # ------------------------------------------------------------------------------
3456 systemd_socket_proxyd_SOURCES = \
3457 src/socket-proxy/socket-proxyd.c
3459 systemd_socket_proxyd_LDADD = \
3460 libsystemd-logs.la \
3461 libsystemd-internal.la \
3462 libsystemd-journal-internal.la \
3463 libsystemd-id128-internal.la \
3464 libsystemd-daemon-internal.la \
3465 libsystemd-shared.la
3467 # ------------------------------------------------------------------------------
3469 systemd_coredump_SOURCES = \
3470 src/journal/coredump.c
3472 systemd_coredump_LDADD = \
3473 libsystemd-journal-internal.la \
3474 libsystemd-label.la \
3475 libsystemd-shared.la
3478 systemd_coredump_LDADD += \
3479 libsystemd-login-internal.la
3482 rootlibexec_PROGRAMS += \
3485 systemd_coredumpctl_SOURCES = \
3486 src/journal/coredumpctl.c
3488 systemd_coredumpctl_LDADD = \
3489 libsystemd-journal-internal.la \
3490 libsystemd-id128-internal.la \
3491 libsystemd-shared.la
3496 dist_bashcompletion_DATA += \
3497 shell-completion/bash/systemd-coredumpctl
3499 dist_zshcompletion_DATA += \
3500 shell-completion/zsh/_systemd-coredumpctl
3503 sysctl.d/50-coredump.conf
3506 sysctl.d/50-coredump.conf
3510 sysctl.d/50-coredump.conf.in
3512 # ------------------------------------------------------------------------------
3514 systemd_binfmt_SOURCES = \
3517 systemd_binfmt_LDADD = \
3518 libsystemd-shared.la
3520 rootlibexec_PROGRAMS += \
3523 dist_systemunit_DATA += \
3524 units/proc-sys-fs-binfmt_misc.automount \
3525 units/proc-sys-fs-binfmt_misc.mount
3527 nodist_systemunit_DATA += \
3528 units/systemd-binfmt.service
3531 $(prefix)/lib/binfmt.d \
3532 $(sysconfdir)/binfmt.d
3534 SYSINIT_TARGET_WANTS += \
3535 systemd-binfmt.service \
3536 proc-sys-fs-binfmt_misc.automount
3541 units/systemd-binfmt.service.in
3543 # ------------------------------------------------------------------------------
3545 systemd_vconsole_setup_SOURCES = \
3546 src/vconsole/vconsole-setup.c
3548 systemd_vconsole_setup_LDADD = \
3549 libsystemd-shared.la
3551 rootlibexec_PROGRAMS += \
3552 systemd-vconsole-setup
3554 nodist_systemunit_DATA += \
3555 units/systemd-vconsole-setup.service
3557 SYSINIT_TARGET_WANTS += \
3558 systemd-vconsole-setup.service
3562 units/systemd-vconsole-setup.service.in
3564 # ------------------------------------------------------------------------------
3566 systemd_readahead_SOURCES = \
3567 src/readahead/readahead.c \
3568 src/readahead/readahead-collect.c \
3569 src/readahead/readahead-replay.c \
3570 src/readahead/readahead-analyze.c \
3571 src/readahead/readahead-common.c \
3572 src/readahead/readahead-common.h
3574 systemd_readahead_LDADD = \
3575 libsystemd-daemon-internal.la \
3576 libudev-internal.la \
3577 libsystemd-shared.la
3580 src/readahead/sd-readahead.c \
3581 src/systemd/sd-readahead.h
3583 rootlibexec_PROGRAMS += \
3586 dist_systemunit_DATA += \
3587 units/systemd-readahead-drop.service \
3588 units/systemd-readahead-done.timer
3590 nodist_systemunit_DATA += \
3591 units/systemd-readahead-collect.service \
3592 units/systemd-readahead-replay.service \
3593 units/systemd-readahead-done.service
3598 units/systemd-readahead-collect.service.in \
3599 units/systemd-readahead-replay.service.in \
3600 units/systemd-readahead-done.service.in
3602 # ------------------------------------------------------------------------------
3604 systemd_bootchart_SOURCES = \
3605 src/bootchart/bootchart.c \
3606 src/bootchart/bootchart.h \
3607 src/bootchart/store.c \
3608 src/bootchart/store.h \
3609 src/bootchart/svg.c \
3612 systemd_bootchart_LDADD = \
3613 libsystemd-journal-internal.la \
3614 libsystemd-shared.la
3616 rootlibexec_PROGRAMS += \
3619 dist_pkgsysconf_DATA += \
3620 src/bootchart/bootchart.conf
3623 # ------------------------------------------------------------------------------
3624 if ENABLE_QUOTACHECK
3625 rootlibexec_PROGRAMS += \
3628 nodist_systemunit_DATA += \
3629 units/systemd-quotacheck.service
3631 systemd_quotacheck_SOURCES = \
3632 src/quotacheck/quotacheck.c
3634 systemd_quotacheck_LDADD = \
3635 libsystemd-shared.la
3639 units/systemd-quotacheck.service.in
3641 nodist_systemunit_DATA += \
3642 units/quotaon.service
3644 # ------------------------------------------------------------------------------
3645 if ENABLE_RANDOMSEED
3646 rootlibexec_PROGRAMS += \
3649 nodist_systemunit_DATA += \
3650 units/systemd-random-seed.service
3652 systemd_random_seed_SOURCES = \
3653 src/random-seed/random-seed.c
3655 systemd_random_seed_LDADD = \
3656 libsystemd-label.la \
3657 libsystemd-shared.la
3659 SYSINIT_TARGET_WANTS += \
3660 systemd-random-seed.service
3665 units/systemd-random-seed.service.in
3667 # ------------------------------------------------------------------------------
3669 rootlibexec_PROGRAMS += \
3672 nodist_systemunit_DATA += \
3673 units/systemd-backlight@.service
3675 systemd_backlight_SOURCES = \
3676 src/backlight/backlight.c
3678 systemd_backlight_LDADD = \
3679 libsystemd-label.la \
3680 libudev-internal.la \
3681 libsystemd-shared.la
3685 units/systemd-backlight@.service.in
3687 # ------------------------------------------------------------------------------
3689 rootlibexec_PROGRAMS += \
3692 nodist_systemunit_DATA += \
3693 units/systemd-rfkill@.service
3695 systemd_rfkill_SOURCES = \
3698 systemd_rfkill_LDADD = \
3699 libsystemd-label.la \
3700 libudev-internal.la \
3701 libsystemd-shared.la
3705 units/systemd-rfkill@.service.in
3707 # ------------------------------------------------------------------------------
3708 if HAVE_LIBCRYPTSETUP
3709 rootlibexec_PROGRAMS += \
3712 systemgenerator_PROGRAMS += \
3713 systemd-cryptsetup-generator
3715 dist_systemunit_DATA += \
3716 units/cryptsetup.target
3718 systemd_cryptsetup_SOURCES = \
3719 src/cryptsetup/cryptsetup.c
3721 systemd_cryptsetup_CFLAGS = \
3723 $(LIBCRYPTSETUP_CFLAGS)
3725 systemd_cryptsetup_LDADD = \
3726 libsystemd-label.la \
3727 libudev-internal.la \
3728 libsystemd-shared.la \
3729 $(LIBCRYPTSETUP_LIBS)
3731 systemd_cryptsetup_generator_SOURCES = \
3732 src/cryptsetup/cryptsetup-generator.c
3734 systemd_cryptsetup_generator_LDADD = \
3735 libsystemd-label.la \
3736 libsystemd-shared.la
3738 SYSINIT_TARGET_WANTS += \
3743 # ------------------------------------------------------------------------------
3745 systemd_hostnamed_SOURCES = \
3746 src/hostname/hostnamed.c
3748 systemd_hostnamed_LDADD = \
3749 libsystemd-label.la \
3750 libsystemd-internal.la \
3751 libsystemd-id128-internal.la \
3752 libsystemd-daemon-internal.la \
3753 libsystemd-shared.la
3755 rootlibexec_PROGRAMS += \
3758 nodist_systemunit_DATA += \
3759 units/systemd-hostnamed.service
3761 dist_systemunit_DATA += \
3762 units/org.freedesktop.hostname1.busname
3764 dist_dbuspolicy_DATA += \
3765 src/hostname/org.freedesktop.hostname1.conf
3767 dist_dbussystemservice_DATA += \
3768 src/hostname/org.freedesktop.hostname1.service
3770 polkitpolicy_files += \
3771 src/hostname/org.freedesktop.hostname1.policy
3773 SYSTEM_UNIT_ALIASES += \
3774 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3776 BUSNAMES_TARGET_WANTS += \
3777 org.freedesktop.hostname1.busname
3779 hostnamectl_SOURCES = \
3780 src/hostname/hostnamectl.c
3782 hostnamectl_LDADD = \
3783 libsystemd-internal.la \
3784 libsystemd-id128-internal.la \
3785 libsystemd-daemon-internal.la \
3786 libsystemd-shared.la
3791 dist_bashcompletion_DATA += \
3792 shell-completion/bash/hostnamectl
3794 dist_zshcompletion_DATA += \
3795 shell-completion/zsh/_hostnamectl
3799 polkitpolicy_in_files += \
3800 src/hostname/org.freedesktop.hostname1.policy.in
3803 units/systemd-hostnamed.service.in
3805 # ------------------------------------------------------------------------------
3807 systemd_bus_driverd_SOURCES = \
3808 src/bus-driverd/bus-driverd.c
3810 systemd_bus_driverd_LDADD = \
3811 libsystemd-internal.la \
3812 libsystemd-id128-internal.la \
3813 libsystemd-daemon-internal.la \
3814 libsystemd-shared.la
3816 rootlibexec_PROGRAMS += \
3819 nodist_systemunit_DATA += \
3820 units/systemd-bus-driverd.service
3822 dist_systemunit_DATA += \
3823 units/org.freedesktop.DBus.busname
3825 BUSNAMES_TARGET_WANTS += \
3826 org.freedesktop.DBus.busname
3828 nodist_userunit_DATA += \
3829 units/user/systemd-bus-driverd.service
3831 USER_BUSNAMES_TARGET_WANTS += \
3832 org.freedesktop.DBus.busname
3834 USER_UNIT_ALIASES += \
3835 $(systemunitdir)/org.freedesktop.DBus.busname org.freedesktop.DBus.busname
3839 units/systemd-bus-driverd.service.in \
3840 units/user/systemd-bus-driverd.service.in
3842 # ------------------------------------------------------------------------------
3844 systemd_localed_SOURCES = \
3845 src/locale/localed.c
3847 systemd_localed_LDADD = \
3848 libsystemd-label.la \
3849 libsystemd-internal.la \
3850 libsystemd-id128-internal.la \
3851 libsystemd-daemon-internal.la \
3852 libsystemd-shared.la
3854 nodist_systemunit_DATA += \
3855 units/systemd-localed.service
3857 dist_systemunit_DATA += \
3858 units/org.freedesktop.locale1.busname
3860 rootlibexec_PROGRAMS += \
3863 dist_dbuspolicy_DATA += \
3864 src/locale/org.freedesktop.locale1.conf
3866 dist_dbussystemservice_DATA += \
3867 src/locale/org.freedesktop.locale1.service
3869 polkitpolicy_files += \
3870 src/locale/org.freedesktop.locale1.policy
3872 SYSTEM_UNIT_ALIASES += \
3873 systemd-localed.service dbus-org.freedesktop.locale1.service
3875 BUSNAMES_TARGET_WANTS += \
3876 org.freedesktop.locale1.busname
3878 dist_pkgdata_DATA += \
3879 src/locale/kbd-model-map
3881 dist_noinst_SCRIPT = \
3882 src/locale/generate-kbd-model-map
3884 update-kbd-model-map: src/locale/generate-kbd-model-map
3885 $PYTHON $< > src/locale/kbd-model-map
3887 localectl_SOURCES = \
3888 src/locale/localectl.c
3891 libsystemd-internal.la \
3892 libsystemd-id128-internal.la \
3893 libsystemd-daemon-internal.la \
3894 libsystemd-shared.la
3899 dist_bashcompletion_DATA += \
3900 shell-completion/bash/localectl
3902 dist_zshcompletion_DATA += \
3903 shell-completion/zsh/_localectl
3907 polkitpolicy_in_files += \
3908 src/locale/org.freedesktop.locale1.policy.in
3911 units/systemd-localed.service.in
3913 # ------------------------------------------------------------------------------
3915 systemd_timedated_SOURCES = \
3916 src/timedate/timedated.c
3918 systemd_timedated_LDADD = \
3919 libsystemd-label.la \
3920 libsystemd-internal.la \
3921 libsystemd-id128-internal.la \
3922 libsystemd-daemon-internal.la \
3923 libsystemd-shared.la
3925 rootlibexec_PROGRAMS += \
3928 dist_dbussystemservice_DATA += \
3929 src/timedate/org.freedesktop.timedate1.service
3931 dist_dbuspolicy_DATA += \
3932 src/timedate/org.freedesktop.timedate1.conf
3934 nodist_systemunit_DATA += \
3935 units/systemd-timedated.service
3937 dist_systemunit_DATA += \
3938 units/org.freedesktop.timedate1.busname
3940 polkitpolicy_files += \
3941 src/timedate/org.freedesktop.timedate1.policy
3944 $(prefix)/lib/systemd/ntp-units.d \
3945 $(sysconfdir)/systemd/ntp-units.d
3947 SYSTEM_UNIT_ALIASES += \
3948 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3950 BUSNAMES_TARGET_WANTS += \
3951 org.freedesktop.timedate1.busname
3953 timedatectl_SOURCES = \
3954 src/timedate/timedatectl.c
3956 timedatectl_LDADD = \
3957 libsystemd-internal.la \
3958 libsystemd-id128-internal.la \
3959 libsystemd-daemon-internal.la \
3960 libsystemd-shared.la
3965 dist_bashcompletion_DATA += \
3966 shell-completion/bash/timedatectl
3968 dist_zshcompletion_DATA += \
3969 shell-completion/zsh/_timedatectl
3972 polkitpolicy_in_files += \
3973 src/timedate/org.freedesktop.timedate1.policy.in
3976 units/systemd-timedated.service.in
3978 # ------------------------------------------------------------------------------
3980 libnss_myhostname_la_SOURCES = \
3981 src/nss-myhostname/nss-myhostname.c \
3982 src/nss-myhostname/ifconf.h \
3983 src/nss-myhostname/netlink.c
3985 libnss_myhostname_la_LDFLAGS = \
3993 lib_LTLIBRARIES += \
3994 libnss_myhostname.la
3997 # ------------------------------------------------------------------------------
3999 systemd_machined_SOURCES = \
4000 src/machine/machined.c \
4001 src/machine/machined.h
4003 systemd_machined_LDADD = \
4004 libsystemd-machine-core.la
4006 rootlibexec_PROGRAMS += \
4009 libsystemd_machine_core_la_SOURCES = \
4010 src/machine/machined-dbus.c \
4011 src/machine/machine.c \
4012 src/machine/machine.h \
4013 src/machine/machine-dbus.c
4015 libsystemd_machine_core_la_LIBADD = \
4016 libsystemd-label.la \
4017 libsystemd-daemon-internal.la \
4018 libsystemd-internal.la \
4019 libsystemd-id128-internal.la \
4020 libudev-internal.la \
4021 libsystemd-shared.la
4023 noinst_LTLIBRARIES += \
4024 libsystemd-machine-core.la
4026 machinectl_SOURCES = \
4027 src/machine/machinectl.c
4029 machinectl_LDADD = \
4030 libsystemd-internal.la \
4031 libsystemd-id128-internal.la \
4032 libsystemd-daemon-internal.la \
4033 libsystemd-shared.la
4035 rootbin_PROGRAMS += \
4038 test_machine_tables_SOURCES = \
4039 src/machine/test-machine-tables.c
4041 test_machine_tables_LDADD = \
4042 libsystemd-machine-core.la
4047 nodist_systemunit_DATA += \
4048 units/systemd-machined.service
4050 dist_systemunit_DATA += \
4051 units/machine.slice \
4052 units/org.freedesktop.machine1.busname
4054 dist_dbussystemservice_DATA += \
4055 src/machine/org.freedesktop.machine1.service
4057 dist_dbuspolicy_DATA += \
4058 src/machine/org.freedesktop.machine1.conf
4060 dist_zshcompletion_DATA += \
4061 shell-completion/zsh/_machinectl
4063 SYSTEM_UNIT_ALIASES += \
4064 systemd-machined.service dbus-org.freedesktop.machine1.service
4066 BUSNAMES_TARGET_WANTS += \
4067 org.freedesktop.machine1.busname
4070 units/systemd-machined.service.in
4074 # ------------------------------------------------------------------------------
4076 rootlibexec_PROGRAMS += \
4079 systemd_networkd_SOURCES = \
4080 src/network/networkd.h \
4081 src/network/networkd.c \
4082 src/network/networkd-link.c \
4083 src/network/networkd-bridge.c \
4084 src/network/networkd-network.c \
4085 src/network/networkd-address.c \
4086 src/network/networkd-route.c \
4087 src/network/networkd-manager.c
4089 nodist_systemd_networkd_SOURCES = \
4090 src/network/networkd-gperf.c
4092 systemd_networkd_LDADD = \
4093 libudev-internal.la \
4094 libsystemd-daemon-internal.la \
4095 libsystemd-internal.la \
4096 libsystemd-dhcp.la \
4097 libsystemd-id128-internal.la \
4098 libsystemd-label.la \
4099 libsystemd-shared.la
4101 nodist_systemunit_DATA += \
4102 units/systemd-networkd.service
4104 MULTI_USER_TARGET_WANTS += \
4105 systemd-networkd.service
4107 test_network_SOURCES = \
4108 src/network/test-network.c \
4109 src/network/networkd.h \
4110 src/network/networkd-link.c \
4111 src/network/networkd-bridge.c \
4112 src/network/networkd-network.c \
4113 src/network/networkd-address.c \
4114 src/network/networkd-route.c \
4115 src/network/networkd-manager.c \
4116 src/network/networkd-gperf.c
4118 test_network_LDADD = \
4119 libudev-internal.la \
4120 libsystemd-internal.la \
4121 libsystemd-dhcp.la \
4122 libsystemd-id128-internal.la \
4123 libsystemd-daemon-internal.la \
4124 libsystemd-label.la \
4125 libsystemd-shared.la
4131 src/network/networkd-gperf.gperf \
4132 units/systemd-networkd.service.in
4135 src/network/networkd-gperf.c
4138 # ------------------------------------------------------------------------------
4140 systemd_logind_SOURCES = \
4141 src/login/logind.c \
4144 nodist_systemd_logind_SOURCES = \
4145 src/login/logind-gperf.c
4147 systemd_logind_LDADD = \
4148 libsystemd-logind-core.la
4150 libsystemd_logind_core_la_SOURCES = \
4151 src/login/logind-core.c \
4152 src/login/logind-device.c \
4153 src/login/logind-device.h \
4154 src/login/logind-button.c \
4155 src/login/logind-button.h \
4156 src/login/logind-action.c \
4157 src/login/logind-action.h \
4158 src/login/logind-seat.c \
4159 src/login/logind-seat.h \
4160 src/login/logind-session.c \
4161 src/login/logind-session.h \
4162 src/login/logind-session-device.c \
4163 src/login/logind-session-device.h \
4164 src/login/logind-user.c \
4165 src/login/logind-user.h \
4166 src/login/logind-inhibit.c \
4167 src/login/logind-inhibit.h \
4168 src/login/logind-dbus.c \
4169 src/login/logind-session-dbus.c \
4170 src/login/logind-seat-dbus.c \
4171 src/login/logind-user-dbus.c \
4172 src/login/logind-acl.h \
4173 src/login/login-shared.c \
4174 src/login/login-shared.h
4176 libsystemd_logind_core_la_LIBADD = \
4177 libsystemd-label.la \
4178 libsystemd-capability.la \
4179 libsystemd-daemon-internal.la \
4180 libsystemd-id128-internal.la \
4181 libsystemd-internal.la \
4182 libudev-internal.la \
4183 libsystemd-shared.la
4186 libsystemd_logind_core_la_SOURCES += \
4187 src/login/logind-acl.c
4189 libsystemd_logind_core_la_LIBADD += \
4193 noinst_LTLIBRARIES += \
4194 libsystemd-logind-core.la
4196 systemd_user_sessions_SOURCES = \
4197 src/login/user-sessions.c
4199 systemd_user_sessions_LDADD = \
4200 libsystemd-shared.la
4202 rootlibexec_PROGRAMS += \
4204 systemd-user-sessions
4206 loginctl_SOURCES = \
4207 src/login/loginctl.c \
4208 src/login/sysfs-show.c
4211 libsystemd-internal.la \
4212 libudev-internal.la \
4213 libsystemd-shared.la \
4214 libsystemd-id128-internal.la \
4215 libsystemd-daemon-internal.la
4217 rootbin_PROGRAMS += \
4220 dist_bashcompletion_DATA += \
4221 shell-completion/bash/loginctl
4223 dist_zshcompletion_DATA += \
4224 shell-completion/zsh/_loginctl \
4225 shell-completion/zsh/_systemd-inhibit
4227 systemd_inhibit_SOURCES = \
4230 systemd_inhibit_LDADD = \
4231 libsystemd-internal.la \
4232 libsystemd-id128-internal.la \
4233 libsystemd-daemon-internal.la \
4234 libsystemd-shared.la
4236 rootbin_PROGRAMS += \
4239 test_login_SOURCES = \
4240 src/login/test-login.c
4242 test_login_LDADD = \
4243 libsystemd-login-internal.la \
4244 libsystemd-shared.la
4246 test_login_shared_SOURCES = \
4247 src/login/test-login-shared.c
4249 test_login_shared_LDADD = \
4250 libsystemd-login-internal.la \
4251 libsystemd-shared.la
4253 test_inhibit_SOURCES = \
4254 src/login/test-inhibit.c
4256 test_inhibit_LDADD = \
4257 libsystemd-internal.la \
4258 libsystemd-daemon-internal.la \
4259 libsystemd-id128-internal.la \
4260 libsystemd-shared.la
4262 test_login_tables_SOURCES = \
4263 src/login/test-login-tables.c
4265 test_login_tables_LDADD = \
4266 libsystemd-logind-core.la
4276 libsystemd_login_la_SOURCES = \
4277 src/login/libsystemd-login.sym \
4278 src/login/sd-login.c \
4279 src/systemd/sd-login.h \
4280 src/login/login-shared.c \
4281 src/login/login-shared.h
4283 libsystemd_login_la_CFLAGS = \
4287 libsystemd_login_la_LDFLAGS = \
4289 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4290 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
4292 libsystemd_login_la_LIBADD = \
4293 libsystemd-daemon-internal.la \
4294 libsystemd-shared.la
4296 libsystemd_login_internal_la_SOURCES = \
4297 $(libsystemd_login_la_SOURCES)
4300 pam_systemd_la_SOURCES = \
4301 src/login/pam-module.c
4303 pam_systemd_la_CFLAGS = \
4308 pam_systemd_la_LDFLAGS = \
4314 -export-symbols-regex '^pam_sm_.*'
4316 pam_systemd_la_LIBADD = \
4317 libsystemd-capability.la \
4318 libsystemd-internal.la \
4319 libsystemd-id128-internal.la \
4320 libsystemd-daemon-internal.la \
4321 libsystemd-shared.la \
4324 pamlib_LTLIBRARIES = \
4327 dist_pamconf_DATA = \
4328 src/login/systemd-user
4331 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4332 libsystemd-login-install-hook:
4333 libname=libsystemd-login.so && $(move-to-rootlibdir)
4335 libsystemd-login-uninstall-hook:
4336 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4338 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
4339 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
4341 nodist_systemunit_DATA += \
4342 units/systemd-logind.service \
4343 units/systemd-user-sessions.service
4345 dist_systemunit_DATA += \
4347 units/org.freedesktop.login1.busname
4349 dist_dbussystemservice_DATA += \
4350 src/login/org.freedesktop.login1.service
4352 dist_dbuspolicy_DATA += \
4353 src/login/org.freedesktop.login1.conf
4355 dist_pkgsysconf_DATA += \
4356 src/login/logind.conf
4358 pkginclude_HEADERS += \
4359 src/systemd/sd-login.h
4361 lib_LTLIBRARIES += \
4364 noinst_LTLIBRARIES += \
4365 libsystemd-login-internal.la
4367 pkgconfiglib_DATA += \
4368 src/login/libsystemd-login.pc
4370 polkitpolicy_files += \
4371 src/login/org.freedesktop.login1.policy
4376 MULTI_USER_TARGET_WANTS += \
4377 systemd-logind.service \
4378 systemd-user-sessions.service
4380 SYSTEM_UNIT_ALIASES += \
4381 systemd-logind.service dbus-org.freedesktop.login1.service
4383 BUSNAMES_TARGET_WANTS += \
4384 org.freedesktop.login1.busname
4386 if ENABLE_MULTI_SEAT_X
4388 systemd_multi_seat_x_SOURCES = \
4389 src/login/multi-seat-x.c
4391 systemd_multi_seat_x_LDADD = \
4392 libsystemd-label.la \
4393 libsystemd-shared.la
4395 rootlibexec_PROGRAMS += \
4396 systemd-multi-seat-x
4400 dist_udevrules_DATA += \
4401 src/login/70-uaccess.rules \
4402 src/login/70-power-switch.rules
4404 nodist_udevrules_DATA += \
4405 src/login/71-seat.rules \
4406 src/login/73-seat-late.rules
4409 src/login/logind-gperf.c \
4410 src/login/71-seat.rules \
4411 src/login/73-seat-late.rules
4414 polkitpolicy_in_files += \
4415 src/login/org.freedesktop.login1.policy.in
4418 src/login/logind-gperf.gperf \
4419 src/login/libsystemd-login.pc.in \
4420 src/login/71-seat.rules.in \
4421 src/login/73-seat-late.rules.in \
4422 units/systemd-logind.service.in \
4423 units/systemd-user-sessions.service.in
4425 # ------------------------------------------------------------------------------
4426 if HAVE_PYTHON_DEVEL
4427 pkgpyexec_LTLIBRARIES = \
4434 _journal_la_SOURCES = \
4435 src/python-systemd/_journal.c
4437 _journal_la_CFLAGS = \
4439 -fvisibility=default \
4440 $(PYTHON_DEVEL_CFLAGS)
4442 _journal_la_LDFLAGS = \
4448 _journal_la_LIBADD = \
4449 $(PYTHON_DEVEL_LIBS) \
4450 libsystemd-journal.la
4452 id128_la_SOURCES = \
4453 src/python-systemd/id128.c \
4454 src/python-systemd/id128-constants.h \
4455 src/python-systemd/pyutil.c \
4456 src/python-systemd/pyutil.h
4460 -fvisibility=default \
4461 $(PYTHON_DEVEL_CFLAGS) \
4462 -I$(top_builddir)/src/python-systemd
4464 id128_la_LDFLAGS = \
4471 $(PYTHON_DEVEL_LIBS) \
4474 _daemon_la_SOURCES = \
4475 src/python-systemd/_daemon.c \
4476 src/python-systemd/pyutil.c \
4477 src/python-systemd/pyutil.h
4479 _daemon_la_CFLAGS = \
4481 -fvisibility=default \
4482 $(PYTHON_DEVEL_CFLAGS) \
4483 -I$(top_builddir)/src/python-systemd
4485 _daemon_la_LDFLAGS = \
4491 _daemon_la_LIBADD = \
4492 $(PYTHON_DEVEL_LIBS) \
4493 libsystemd-daemon.la
4495 _reader_la_SOURCES = \
4496 src/python-systemd/_reader.c \
4497 src/python-systemd/pyutil.c \
4498 src/python-systemd/pyutil.h
4500 _reader_la_CFLAGS = \
4502 -fvisibility=default \
4503 $(PYTHON_DEVEL_CFLAGS)
4505 _reader_la_LDFLAGS = \
4511 _reader_la_LIBADD = \
4512 $(PYTHON_DEVEL_LIBS) \
4513 libsystemd-journal.la \
4514 libsystemd-id128.la \
4515 libsystemd-daemon-internal.la \
4516 libsystemd-shared.la
4518 login_la_SOURCES = \
4519 src/python-systemd/login.c \
4520 src/python-systemd/pyutil.c \
4521 src/python-systemd/pyutil.h
4525 -fvisibility=default \
4526 $(PYTHON_DEVEL_CFLAGS)
4528 login_la_LDFLAGS = \
4535 $(PYTHON_DEVEL_LIBS) \
4536 libsystemd-journal.la \
4537 libsystemd-login.la \
4538 libsystemd-daemon-internal.la \
4539 libsystemd-shared.la
4541 dist_pkgpyexec_PYTHON = \
4542 src/python-systemd/journal.py \
4543 src/python-systemd/daemon.py \
4544 src/python-systemd/__init__.py
4546 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4547 $(AM_V_at)$(MKDIR_P) $(dir $@)
4548 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4551 src/python-systemd/id128-constants.h
4553 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4555 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4556 $(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/
4557 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4560 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4561 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4564 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4565 $(MAKE) DESTDIR="$$dir" install && \
4566 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4571 CLEAN_LOCAL_HOOKS += clean-sphinx
4574 -rm -rf docs/html/python-systemd/
4576 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4578 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4579 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4581 # ------------------------------------------------------------------------------
4583 '|rootlibexecdir=$(rootlibexecdir)|' \
4584 '|rootbindir=$(rootbindir)|' \
4585 '|bindir=$(bindir)|' \
4586 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4587 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4588 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4589 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4590 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4591 '|pkgdatadir=$(pkgdatadir)|' \
4592 '|systemunitdir=$(systemunitdir)|' \
4593 '|userunitdir=$(userunitdir)|' \
4594 '|systempresetdir=$(systempresetdir)|' \
4595 '|userpresetdir=$(userpresetdir)|' \
4596 '|udevhwdbdir=$(udevhwdbdir)|' \
4597 '|udevrulesdir=$(udevrulesdir)|' \
4598 '|catalogdir=$(catalogdir)|' \
4599 '|tmpfilesdir=$(tmpfilesdir)|' \
4600 '|sysctldir=$(sysctldir)|' \
4601 '|systemgeneratordir=$(systemgeneratordir)|' \
4602 '|usergeneratordir=$(usergeneratordir)|' \
4603 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4604 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4605 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4606 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4607 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4608 '|prefix=$(prefix)|' \
4609 '|exec_prefix=$(exec_prefix)|' \
4610 '|libdir=$(libdir)|' \
4611 '|includedir=$(includedir)|' \
4612 '|VERSION=$(VERSION)|' \
4613 '|rootprefix=$(rootprefix)|' \
4614 '|udevlibexecdir=$(udevlibexecdir)|' \
4615 '|SUSHELL=$(SUSHELL)|' \
4616 '|DEBUGTTY=$(DEBUGTTY)|' \
4619 '|MKDIR_P=$(MKDIR_P)|' \
4620 '|QUOTAON=$(QUOTAON)|' \
4621 '|QUOTACHECK=$(QUOTACHECK)|' \
4622 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4623 '|VARLOGDIR=$(varlogdir)|' \
4624 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4625 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4626 '|PYTHON=$(PYTHON)|' \
4627 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4630 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4631 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4640 sysctl.d/%: sysctl.d/%.in
4646 src/core/macros.%: src/core/macros.%.in
4649 src/%.policy.in: src/%.policy.in.in
4657 $(AM_V_GEN)chmod +x $@
4659 src/%.c: src/%.gperf
4660 $(AM_V_at)$(MKDIR_P) $(dir $@)
4661 $(AM_V_GPERF)$(GPERF) < $< > $@
4664 $(AM_V_at)$(MKDIR_P) $(dir $@)
4665 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4668 $(AM_V_at)$(MKDIR_P) $(dir $@)
4669 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4671 units/user/%: units/%.m4
4672 $(AM_V_at)$(MKDIR_P) $(dir $@)
4673 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4676 nodist_polkitpolicy_DATA = \
4677 $(polkitpolicy_files) \
4678 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4682 $(polkitpolicy_in_files) \
4683 $(polkitpolicy_in_in_files)
4686 $(nodist_systemunit_DATA) \
4687 $(nodist_userunit_DATA) \
4688 $(pkgconfigdata_DATA) \
4689 $(pkgconfiglib_DATA) \
4690 $(nodist_polkitpolicy_DATA)
4692 # ------------------------------------------------------------------------------
4694 man/custom-entities.ent:
4695 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4696 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4697 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4701 man/custom-entities.ent
4705 --stringparam man.output.quietly 1 \
4706 --stringparam funcsynopsis.style ansi \
4707 --stringparam man.authors.section.enabled 0 \
4708 --stringparam man.copyright.section.enabled 0 \
4709 --stringparam systemd.version $(VERSION) \
4710 --path '$(builddir)/man:$(srcdir)/man'
4712 XSLTPROC_PROCESS_MAN = \
4713 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4715 XSLTPROC_PROCESS_HTML = \
4716 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4718 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4719 $(XSLTPROC_PROCESS_MAN)
4721 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4722 $(XSLTPROC_PROCESS_MAN)
4724 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4725 $(XSLTPROC_PROCESS_MAN)
4727 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4728 $(XSLTPROC_PROCESS_MAN)
4730 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4731 $(XSLTPROC_PROCESS_MAN)
4733 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4734 $(XSLTPROC_PROCESS_HTML)
4737 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4743 man/custom-html.xsl \
4746 # ------------------------------------------------------------------------------
4749 docs/sysvinit/README
4754 docs/sysvinit/README: docs/sysvinit/README.in
4757 docs/var-log/README: docs/var-log/README.in
4761 docs/sysvinit/README \
4766 docs/sysvinit/README.in \
4767 docs/var-log/README.in
4769 SOCKETS_TARGET_WANTS += \
4770 systemd-initctl.socket \
4771 systemd-shutdownd.socket
4774 RUNLEVEL1_TARGET_WANTS += \
4775 systemd-update-utmp-runlevel.service
4776 RUNLEVEL2_TARGET_WANTS += \
4777 systemd-update-utmp-runlevel.service
4778 RUNLEVEL3_TARGET_WANTS += \
4779 systemd-update-utmp-runlevel.service
4780 RUNLEVEL4_TARGET_WANTS += \
4781 systemd-update-utmp-runlevel.service
4782 RUNLEVEL5_TARGET_WANTS += \
4783 systemd-update-utmp-runlevel.service
4785 SYSINIT_TARGET_WANTS += \
4786 systemd-update-utmp.service
4787 LOCAL_FS_TARGET_WANTS += \
4788 systemd-remount-fs.service \
4790 MULTI_USER_TARGET_WANTS += \
4792 systemd-ask-password-wall.path
4793 SYSINIT_TARGET_WANTS += \
4794 dev-hugepages.mount \
4796 sys-kernel-config.mount \
4797 sys-kernel-debug.mount \
4798 sys-fs-fuse-connections.mount \
4799 systemd-sysctl.service \
4800 systemd-ask-password-console.path
4803 SYSTEM_UNIT_ALIASES += \
4804 poweroff.target runlevel0.target \
4805 rescue.target runlevel1.target \
4806 multi-user.target runlevel2.target \
4807 multi-user.target runlevel3.target \
4808 multi-user.target runlevel4.target \
4809 graphical.target runlevel5.target \
4810 reboot.target runlevel6.target
4813 SYSTEM_UNIT_ALIASES += \
4814 graphical.target default.target \
4815 reboot.target ctrl-alt-del.target \
4816 getty@.service autovt@.service
4818 USER_UNIT_ALIASES += \
4819 $(systemunitdir)/shutdown.target shutdown.target \
4820 $(systemunitdir)/sockets.target sockets.target \
4821 $(systemunitdir)/busnames.target busnames.target \
4822 $(systemunitdir)/timers.target timers.target \
4823 $(systemunitdir)/paths.target paths.target \
4824 $(systemunitdir)/bluetooth.target bluetooth.target \
4825 $(systemunitdir)/printer.target printer.target \
4826 $(systemunitdir)/sound.target sound.target \
4827 $(systemunitdir)/smartcard.target smartcard.target
4829 GENERAL_ALIASES += \
4830 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4831 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4832 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4833 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4837 $(systemunitdir)/runlevel1.target.wants \
4838 $(systemunitdir)/runlevel2.target.wants \
4839 $(systemunitdir)/runlevel3.target.wants \
4840 $(systemunitdir)/runlevel4.target.wants \
4841 $(systemunitdir)/runlevel5.target.wants
4845 $(prefix)/lib/modules-load.d \
4846 $(sysconfdir)/modules-load.d \
4847 $(prefix)/lib/systemd/network \
4848 $(sysconfdir)/systemd/network \
4849 $(prefix)/lib/sysctl.d \
4850 $(sysconfdir)/sysctl.d \
4851 $(prefix)/lib/kernel/install.d \
4852 $(sysconfdir)/kernel/install.d \
4853 $(systemshutdowndir) \
4855 $(systemgeneratordir) \
4856 $(usergeneratordir) \
4859 $(pkgsysconfdir)/system \
4860 $(pkgsysconfdir)/system/multi-user.target.wants \
4861 $(pkgsysconfdir)/system/getty.target.wants \
4862 $(pkgsysconfdir)/user \
4863 $(dbussessionservicedir) \
4864 $(sysconfdir)/xdg/systemd
4866 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4868 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4870 install-data-hook: $(INSTALL_DATA_HOOKS)
4872 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4874 clean-local: $(CLEAN_LOCAL_HOOKS)
4875 rm -rf $(abs_srcdir)/install-tree
4876 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4877 $(abs_srcdir)/hwdb/iab.txt
4879 DISTCHECK_CONFIGURE_FLAGS = \
4880 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4881 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4882 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4883 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4884 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4885 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4886 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4887 --with-rootprefix=$$dc_install_base \
4888 --disable-split-usr \
4892 DISTCHECK_CONFIGURE_FLAGS += \
4893 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4894 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4896 DISTCHECK_CONFIGURE_FLAGS += \
4897 --with-sysvinit-path= \
4898 --with-sysvrcnd-path=
4902 DISTCHECK_CONFIGURE_FLAGS += \
4907 ( cd $(top_srcdir)/hwdb && \
4908 wget -N http://www.linux-usb.org/usb.ids \
4909 http://pci-ids.ucw.cz/v2.2/pci.ids \
4910 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4911 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4915 ( cd $(top_srcdir)/src/libsystemd/ && \
4916 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4918 upload: all distcheck
4919 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4920 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4921 scp man/*.html tango:public/systemd-man/
4923 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4924 doc-sync: all destdir-sphinx
4925 gtkdoc-rebase --html-dir=docs/libudev/html --online
4926 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4927 gtkdoc-rebase --html-dir=docs/gudev/html --online
4928 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4929 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4930 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4933 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4936 rm -rf $(abs_srcdir)/install-tree
4937 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4938 tree $(abs_srcdir)/install-tree
4940 # Let's run all tests of the test suite, but under valgrind. Let's
4941 # exclude the one perl script we have in there
4942 valgrind-tests: $(TESTS)
4943 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
4944 if file $$f | grep -q shell; then \
4945 echo -e "$${x}Skipping non-binary $$f"; else \
4946 echo -e "$${x}Running $$f"; \
4947 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
4952 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
4954 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
4955 $(AM_V_GEN)cat $^ > $@
4957 check-api-docs: exported man
4958 $(AM_V_GEN)for symbol in `cat exported` ; do \
4959 if test -f $(builddir)/man/$$symbol.html ; then \
4960 echo " Symbol $$symbol() is documented." ; \
4962 echo "‣ Symbol $$symbol() lacks documentation." ; \
4966 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
4967 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
4969 undefined defined: $(ALL_OBJECTS)
4970 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
4971 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
4972 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
4978 check-api-unused: defined undefined exported
4979 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
4981 # Stupid test that everything purported to be exported really is
4983 define generate-sym-test
4984 $(AM_V_at)$(MKDIR_P) $(dir $@)
4985 $(AM_V_at)printf '#include <stdio.h>\n' > $@
4986 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
4987 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
4988 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
4989 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
4990 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
4991 $(AM_V_at)printf 'return 0; }\n' >> $@
4994 test-libsystemd-sym.c: \
4995 src/libsystemd/libsystemd.sym \
4996 src/systemd/sd-bus.h \
4997 src/systemd/sd-utf8.h
4998 $(generate-sym-test)
5000 test-libsystemd-daemon-sym.c: \
5001 src/libsystemd-daemon/libsystemd-daemon.sym \
5002 src/systemd/sd-daemon.h
5003 $(generate-sym-test)
5005 test-libsystemd-id128-sym.c: \
5006 src/libsystemd-id128/libsystemd-id128.sym \
5007 src/systemd/sd-id128.h
5008 $(generate-sym-test)
5010 test-libsystemd-journal-sym.c: \
5011 src/journal/libsystemd-journal.sym \
5012 src/systemd/sd-journal.h
5013 $(generate-sym-test)
5015 test-libsystemd-login-sym.c: \
5016 src/login/libsystemd-login.sym \
5017 src/systemd/sd-login.h
5018 $(generate-sym-test)
5020 test-libudev-sym.c: \
5021 src/libudev/libudev.sym \
5023 $(generate-sym-test)
5025 test_libsystemd_sym_SOURCES = \
5026 test-libsystemd-sym.c
5027 test_libsystemd_sym_LDADD = \
5030 test_libsystemd_daemon_sym_SOURCES = \
5031 test-libsystemd-daemon-sym.c
5032 test_libsystemd_daemon_sym_LDADD = \
5033 libsystemd-daemon.la
5035 test_libsystemd_id128_sym_SOURCES = \
5036 test-libsystemd-id128-sym.c
5037 test_libsystemd_id128_sym_LDADD = \
5040 test_libsystemd_journal_sym_SOURCES = \
5041 test-libsystemd-journal-sym.c
5042 test_libsystemd_journal_sym_LDADD = \
5043 libsystemd-journal.la
5045 test_libsystemd_login_sym_SOURCES = \
5046 test-libsystemd-login-sym.c
5047 test_libsystemd_login_sym_LDADD = \
5050 test_libudev_sym_SOURCES = \
5052 test_libudev_sym_LDADD = \
5056 $(test_libsystemd_sym_SOURCES) \
5057 $(test_libsystemd_daemon_sym_SOURCES) \
5058 $(test_libsystemd_id128_sym_SOURCES) \
5059 $(test_libsystemd_journal_sym_SOURCES) \
5060 $(test_libsystemd_login_sym_SOURCES) \
5061 $(test_libudev_sym_SOURCES)
5064 test-libsystemd-sym \
5065 test-libsystemd-daemon-sym \
5066 test-libsystemd-id128-sym \
5067 test-libsystemd-journal-sym \
5068 test-libsystemd-login-sym \
5072 cppcheck --enable=all -q $(top_srcdir)
5074 # Used to extract compile flags for YCM.