1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
46 LIBSYSTEMD_LOGIN_CURRENT=9
47 LIBSYSTEMD_LOGIN_REVISION=1
48 LIBSYSTEMD_LOGIN_AGE=9
50 LIBSYSTEMD_DAEMON_CURRENT=0
51 LIBSYSTEMD_DAEMON_REVISION=10
52 LIBSYSTEMD_DAEMON_AGE=0
54 LIBSYSTEMD_ID128_CURRENT=0
55 LIBSYSTEMD_ID128_REVISION=26
56 LIBSYSTEMD_ID128_AGE=0
58 LIBSYSTEMD_JOURNAL_CURRENT=11
59 LIBSYSTEMD_JOURNAL_REVISION=3
60 LIBSYSTEMD_JOURNAL_AGE=11
62 LIBSYSTEMD_BUS_CURRENT=0
63 LIBSYSTEMD_BUS_REVISION=0
66 # Dirs of external packages
67 dbuspolicydir=@dbuspolicydir@
68 dbussessionservicedir=@dbussessionservicedir@
69 dbussystemservicedir=@dbussystemservicedir@
71 pamconfdir=@pamconfdir@
72 pkgconfigdatadir=$(datadir)/pkgconfig
73 pkgconfiglibdir=$(libdir)/pkgconfig
74 polkitpolicydir=$(datadir)/polkit-1/actions
75 bashcompletiondir=@bashcompletiondir@
76 zshcompletiondir=@zshcompletiondir@
77 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
78 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
79 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
80 varlogdir=$(localstatedir)/log
81 systemdstatedir=$(localstatedir)/lib/systemd
82 catalogstatedir=$(systemdstatedir)/catalog
84 # Our own, non-special dirs
85 pkgsysconfdir=$(sysconfdir)/systemd
86 userunitdir=$(prefix)/lib/systemd/user
87 userpresetdir=$(prefix)/lib/systemd/user-preset
88 tmpfilesdir=$(prefix)/lib/tmpfiles.d
89 sysctldir=$(prefix)/lib/sysctl.d
90 networkdir=$(prefix)/lib/systemd/network
91 pkgincludedir=$(includedir)/systemd
92 systemgeneratordir=$(rootlibexecdir)/system-generators
93 usergeneratordir=$(prefix)/lib/systemd/user-generators
94 systemshutdowndir=$(rootlibexecdir)/system-shutdown
95 systemsleepdir=$(rootlibexecdir)/system-sleep
96 systemunitdir=$(rootprefix)/lib/systemd/system
97 systempresetdir=$(rootprefix)/lib/systemd/system-preset
98 udevlibexecdir=$(rootprefix)/lib/udev
99 udevhomedir=$(udevlibexecdir)
100 udevrulesdir=$(udevlibexecdir)/rules.d
101 udevhwdbdir=$(udevlibexecdir)/hwdb.d
102 catalogdir=$(prefix)/lib/systemd/catalog
103 kernelinstalldir = $(prefix)/lib/kernel/install.d
105 # And these are the special ones for /
106 rootprefix=@rootprefix@
107 rootbindir=$(rootprefix)/bin
108 rootlibexecdir=$(rootprefix)/lib/systemd
110 CLEANFILES = $(BUILT_SOURCES)
115 UNINSTALL_EXEC_HOOKS =
117 UNINSTALL_DATA_HOOKS =
118 DISTCLEAN_LOCAL_HOOKS =
126 polkitpolicy_in_in_files =
127 polkitpolicy_in_files =
129 dist_udevrules_DATA =
130 nodist_udevrules_DATA =
131 dist_pkgsysconf_DATA =
133 dist_dbuspolicy_DATA =
134 dist_dbussystemservice_DATA =
140 noinst_PROGRAMS = $(manual_tests) $(tests)
146 udevlibexec_PROGRAMS =
149 -include $(top_builddir)/config.h \
150 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
151 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
152 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
153 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
154 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
155 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
156 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
157 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
158 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
159 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
160 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
161 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
162 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
163 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
164 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
165 -DROOTPREFIX=\"$(rootprefix)\" \
166 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
167 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
168 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
169 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
170 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
171 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
172 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
173 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
174 -DX_SERVER=\"$(bindir)/X\" \
175 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
176 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
177 -DQUOTACHECK=\"$(QUOTACHECK)\" \
178 -DKEXEC=\"$(KEXEC)\" \
179 -I $(top_srcdir)/src \
180 -I $(top_builddir)/src/shared \
181 -I $(top_srcdir)/src/shared \
182 -I $(top_srcdir)/src/network \
183 -I $(top_srcdir)/src/login \
184 -I $(top_srcdir)/src/journal \
185 -I $(top_srcdir)/src/systemd \
186 -I $(top_builddir)/src/core \
187 -I $(top_srcdir)/src/core \
188 -I $(top_srcdir)/src/libudev \
189 -I $(top_srcdir)/src/udev \
190 -I $(top_srcdir)/src/udev/net \
191 -I $(top_builddir)/src/udev \
192 -I $(top_srcdir)/src/libsystemd-bus \
193 -I $(top_srcdir)/src/libsystemd-rtnl \
196 AM_CFLAGS = $(OUR_CFLAGS)
197 AM_LDFLAGS = $(OUR_LDFLAGS)
199 # ------------------------------------------------------------------------------
200 define move-to-rootlibdir
201 if test "$(libdir)" != "$(rootlibdir)"; then \
202 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
203 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
204 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
205 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
206 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
212 RUNLEVEL1_TARGET_WANTS =
213 RUNLEVEL2_TARGET_WANTS =
214 RUNLEVEL3_TARGET_WANTS =
215 RUNLEVEL4_TARGET_WANTS =
216 RUNLEVEL5_TARGET_WANTS =
217 SHUTDOWN_TARGET_WANTS =
218 LOCAL_FS_TARGET_WANTS =
219 MULTI_USER_TARGET_WANTS =
220 SYSINIT_TARGET_WANTS =
221 SOCKETS_TARGET_WANTS =
222 BUSNAMES_TARGET_WANTS =
223 TIMERS_TARGET_WANTS =
225 SYSTEM_UNIT_ALIASES =
230 install-target-wants-hook:
231 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
232 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
233 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
234 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
235 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
236 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
237 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
238 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
239 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
240 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
241 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && $(add-wants)
242 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
243 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
246 [ -z "$$what" ] || ( \
247 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
248 $(MKDIR_P) -m 0755 $$dir && \
251 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
254 install-directories-hook:
255 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
257 install-aliases-hook:
258 set -- $(SYSTEM_UNIT_ALIASES) && \
259 dir=$(systemunitdir) && $(install-aliases)
260 set -- $(USER_UNIT_ALIASES) && \
261 dir=$(userunitdir) && $(install-aliases)
262 set -- $(GENERAL_ALIASES) && \
263 dir= && $(install-aliases)
265 define install-aliases
266 while [ -n "$$1" ]; do \
267 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
268 rm -f $(DESTDIR)$$dir/$$2 && \
269 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
270 shift 2 || exit $$?; \
274 INSTALL_EXEC_HOOKS += \
275 install-target-wants-hook \
276 install-directories-hook \
279 # ------------------------------------------------------------------------------
280 AM_V_M4 = $(AM_V_M4_$(V))
281 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
282 AM_V_M4_0 = @echo " M4 " $@;
284 AM_V_XSLT = $(AM_V_XSLT_$(V))
285 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
286 AM_V_XSLT_0 = @echo " XSLT " $@;
288 AM_V_GPERF = $(AM_V_GPERF_$(V))
289 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
290 AM_V_GPERF_0 = @echo " GPERF " $@;
292 AM_V_LN = $(AM_V_LN_$(V))
293 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
294 AM_V_LN_0 = @echo " LN " $@;
296 # ------------------------------------------------------------------------------
300 systemd-ask-password \
301 systemd-tty-ask-password-agent \
302 systemd-machine-id-setup
308 systemd-detect-virt \
314 src/kernel-install/kernel-install
316 dist_kernelinstall_SCRIPTS = \
317 src/kernel-install/50-depmod.install \
318 src/kernel-install/90-loaderentry.install
320 rootlibexec_PROGRAMS = \
322 systemd-cgroups-agent \
324 systemd-update-utmp \
328 systemd-reply-password \
334 systemd-socket-proxyd
336 systemgenerator_PROGRAMS = \
337 systemd-getty-generator \
338 systemd-fstab-generator \
339 systemd-system-update-generator
341 dist_bashcompletion_DATA = \
342 shell-completion/bash/journalctl \
343 shell-completion/bash/systemctl \
344 shell-completion/bash/systemd-analyze \
345 shell-completion/bash/systemd-run \
346 shell-completion/bash/udevadm \
347 shell-completion/bash/kernel-install
349 dist_zshcompletion_DATA = \
350 shell-completion/zsh/_systemctl \
351 shell-completion/zsh/_journalctl \
352 shell-completion/zsh/_udevadm \
353 shell-completion/zsh/_kernel-install \
354 shell-completion/zsh/_systemd-nspawn \
355 shell-completion/zsh/_systemd-analyze \
356 shell-completion/zsh/_systemd-run \
357 shell-completion/zsh/_sd_hosts_or_user_at_host \
358 shell-completion/zsh/_systemd-delta \
359 shell-completion/zsh/_systemd
362 sysctl.d/50-default.conf
364 dist_systemunit_DATA = \
365 units/graphical.target \
366 units/multi-user.target \
367 units/emergency.service \
368 units/emergency.target \
369 units/sysinit.target \
374 units/local-fs.target \
375 units/local-fs-pre.target \
376 units/initrd.target \
377 units/initrd-fs.target \
378 units/initrd-root-fs.target \
379 units/remote-fs.target \
380 units/remote-fs-pre.target \
381 units/network.target \
382 units/network-online.target \
383 units/nss-lookup.target \
384 units/nss-user-lookup.target \
385 units/hibernate.target \
386 units/hybrid-sleep.target \
387 units/poweroff.target \
388 units/reboot.target \
389 units/rescue.target \
390 units/rpcbind.target \
391 units/time-sync.target \
392 units/shutdown.target \
394 units/umount.target \
395 units/sigpwr.target \
397 units/sockets.target \
398 units/busnames.target \
399 units/timers.target \
401 units/suspend.target \
403 units/slices.target \
406 units/systemd-initctl.socket \
407 units/systemd-shutdownd.socket \
408 units/syslog.socket \
409 units/dev-hugepages.mount \
410 units/dev-mqueue.mount \
411 units/sys-kernel-config.mount \
412 units/sys-kernel-debug.mount \
413 units/sys-fs-fuse-connections.mount \
415 units/printer.target \
417 units/bluetooth.target \
418 units/smartcard.target \
419 units/systemd-ask-password-wall.path \
420 units/systemd-ask-password-console.path \
421 units/systemd-udevd-control.socket \
422 units/systemd-udevd-kernel.socket \
423 units/system-update.target \
424 units/initrd-switch-root.target
426 nodist_systemunit_DATA = \
427 units/getty@.service \
428 units/serial-getty@.service \
429 units/console-shell.service \
430 units/console-getty.service \
431 units/container-getty@.service \
432 units/systemd-initctl.service \
433 units/systemd-shutdownd.service \
434 units/systemd-remount-fs.service \
435 units/systemd-update-utmp.service \
436 units/systemd-update-utmp-runlevel.service \
437 units/systemd-ask-password-wall.service \
438 units/systemd-ask-password-console.service \
439 units/systemd-sysctl.service \
440 units/emergency.service \
441 units/rescue.service \
442 units/user@.service \
443 units/systemd-hibernate.service \
444 units/systemd-hybrid-sleep.service \
445 units/systemd-suspend.service \
446 units/systemd-halt.service \
447 units/systemd-poweroff.service \
448 units/systemd-reboot.service \
449 units/systemd-kexec.service \
450 units/systemd-fsck@.service \
451 units/systemd-fsck-root.service \
452 units/systemd-udevd.service \
453 units/systemd-udev-trigger.service \
454 units/systemd-udev-settle.service \
455 units/debug-shell.service \
456 units/initrd-parse-etc.service \
457 units/initrd-cleanup.service \
458 units/initrd-udevadm-cleanup-db.service \
459 units/initrd-switch-root.service \
460 units/systemd-nspawn@.service
462 dist_userunit_DATA = \
463 units/user/default.target \
464 units/user/exit.target
466 nodist_userunit_DATA = \
467 units/user/systemd-exit.service
470 units/getty@.service.m4 \
471 units/serial-getty@.service.m4 \
472 units/console-shell.service.m4.in \
473 units/console-getty.service.m4.in \
474 units/container-getty@.service.m4.in \
475 units/rescue.service.m4.in \
476 units/systemd-initctl.service.in \
477 units/systemd-shutdownd.service.in \
478 units/systemd-remount-fs.service.in \
479 units/systemd-update-utmp.service.in \
480 units/systemd-update-utmp-runlevel.service.in \
481 units/systemd-ask-password-wall.service.in \
482 units/systemd-ask-password-console.service.in \
483 units/systemd-sysctl.service.in \
484 units/emergency.service.in \
485 units/systemd-halt.service.in \
486 units/systemd-poweroff.service.in \
487 units/systemd-reboot.service.in \
488 units/systemd-kexec.service.in \
489 units/user/systemd-exit.service.in \
490 units/systemd-fsck@.service.in \
491 units/systemd-fsck-root.service.in \
492 units/user@.service.in \
493 units/systemd-udevd.service \
494 units/systemd-udev-trigger.service \
495 units/systemd-udev-settle.service \
496 units/debug-shell.service.in \
497 units/systemd-hibernate.service.in \
498 units/systemd-hybrid-sleep.service.in \
499 units/systemd-suspend.service.in \
500 units/quotaon.service.in \
501 units/initrd-parse-etc.service.in \
502 units/initrd-cleanup.service.in \
503 units/initrd-udevadm-cleanup-db.service.in \
504 units/initrd-switch-root.service.in \
505 units/systemd-nspawn@.service.in
508 units/console-shell.service.m4 \
509 units/console-getty.service.m4 \
510 units/container-getty@.service.m4 \
511 units/rescue.service.m4
514 nodist_systemunit_DATA += \
515 units/rc-local.service \
516 units/halt-local.service
518 systemgenerator_PROGRAMS += \
519 systemd-rc-local-generator
523 units/rc-local.service.in \
524 units/halt-local.service.in
526 # automake is broken and can't handle files with a dash in front
527 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
529 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
531 units-uninstall-hook:
532 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
534 INSTALL_DATA_HOOKS += units-install-hook
535 UNINSTALL_DATA_HOOKS += units-uninstall-hook
545 @INTLTOOL_POLICY_RULE@
547 # ------------------------------------------------------------------------------
552 include Makefile-man.am
555 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
558 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
560 ${XML_FILES:.xml=.html}
562 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
579 $(AM_V_at)$(MKDIR_P) $(dir $@)
580 $(AM_V_LN)$(LN_S) -f ../../man $@
589 man/index.html: man/systemd.index.html
590 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
598 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
599 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
600 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
602 update-man-list: make-man-rules.py $(XML_GLOB)
603 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
604 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
605 @echo "Makefile-man.am has been regenerated"
607 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
608 $(AM_V_at)$(MKDIR_P) $(dir $@)
609 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
611 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
612 $(AM_V_at)$(MKDIR_P) $(dir $@)
613 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
616 man/systemd.index.xml \
618 man/systemd.directives.xml
621 man/systemd.index.xml \
622 man/systemd.directives.xml
634 make-directive-index.py \
637 # ------------------------------------------------------------------------------
638 noinst_LTLIBRARIES += \
641 libsystemd_rtnl_la_SOURCES = \
642 src/systemd/sd-rtnl.h \
643 src/libsystemd-rtnl/sd-rtnl.c \
644 src/libsystemd-rtnl/rtnl-internal.h \
645 src/libsystemd-rtnl/rtnl-message.c \
646 src/libsystemd-rtnl/rtnl-util.h \
647 src/libsystemd-rtnl/rtnl-util.c
649 test_rtnl_SOURCES = \
650 src/libsystemd-rtnl/test-rtnl.c
654 libsystemd-bus-internal.la \
655 libsystemd-daemon-internal.la \
656 libsystemd-id128-internal.la \
662 # ------------------------------------------------------------------------------
663 noinst_LTLIBRARIES += \
666 libsystemd_shared_la_SOURCES = \
667 src/shared/linux/auto_dev-ioctl.h \
668 src/shared/linux/fanotify.h \
669 src/shared/linux/seccomp.h \
670 src/shared/linux/seccomp-bpf.h \
671 src/shared/ioprio.h \
672 src/shared/missing.h \
673 src/shared/initreq.h \
674 src/shared/securebits.h \
675 src/shared/special.h \
679 src/shared/sparse-endian.h \
680 src/shared/refcnt.h \
681 src/shared/udev-util.h \
682 src/shared/bus-errors.h \
683 src/shared/device-nodes.c \
684 src/shared/device-nodes.h \
689 src/shared/efivars.c \
690 src/shared/efivars.h \
691 src/shared/path-util.c \
692 src/shared/path-util.h \
693 src/shared/time-util.c \
694 src/shared/time-util.h \
695 src/shared/hashmap.c \
696 src/shared/hashmap.h \
703 src/shared/sleep-config.c \
704 src/shared/sleep-config.h \
707 src/shared/env-util.c \
708 src/shared/env-util.h \
709 src/shared/strbuf.c \
710 src/shared/strbuf.h \
711 src/shared/strxcpyx.c \
712 src/shared/strxcpyx.h \
713 src/shared/conf-parser.c \
714 src/shared/conf-parser.h \
717 src/shared/ratelimit.h \
718 src/shared/ratelimit.c \
719 src/shared/exit-status.c \
720 src/shared/exit-status.h \
723 src/shared/gunicode.c \
724 src/shared/gunicode.h \
727 src/shared/socket-util.c \
728 src/shared/socket-util.h \
729 src/shared/conf-files.c \
730 src/shared/conf-files.h \
731 src/shared/cgroup-util.c \
732 src/shared/cgroup-util.h \
733 src/shared/cgroup-show.c \
734 src/shared/cgroup-show.h \
735 src/shared/unit-name.c \
736 src/shared/unit-name.h \
737 src/shared/utmp-wtmp.c \
738 src/shared/utmp-wtmp.h \
739 src/shared/watchdog.c \
740 src/shared/watchdog.h \
741 src/shared/spawn-ask-password-agent.c \
742 src/shared/spawn-ask-password-agent.h \
743 src/shared/replace-var.c \
744 src/shared/replace-var.h \
745 src/shared/spawn-polkit-agent.c \
746 src/shared/spawn-polkit-agent.h \
747 src/shared/hwclock.c \
748 src/shared/hwclock.h \
749 src/shared/time-dst.c \
750 src/shared/time-dst.h \
751 src/shared/calendarspec.c \
752 src/shared/calendarspec.h \
753 src/shared/fileio.c \
754 src/shared/fileio.h \
755 src/shared/output-mode.h \
756 src/shared/MurmurHash3.c \
757 src/shared/MurmurHash3.h \
758 src/shared/acpi-fpdt.h \
759 src/shared/acpi-fpdt.c \
760 src/shared/boot-timestamps.h \
761 src/shared/boot-timestamps.c \
764 src/shared/smack-util.c \
765 src/shared/smack-util.h \
766 src/shared/apparmor-util.c \
767 src/shared/apparmor-util.h \
768 src/shared/ima-util.c \
769 src/shared/ima-util.h \
770 src/shared/ptyfwd.c \
771 src/shared/ptyfwd.h \
772 src/shared/net-util.c \
773 src/shared/net-util.h \
774 src/shared/errno-list.c \
775 src/shared/errno-list.h \
776 src/shared/syscall-list.c \
777 src/shared/syscall-list.h \
781 nodist_libsystemd_shared_la_SOURCES = \
782 src/shared/errno-from-name.h \
783 src/shared/errno-to-name.h \
784 src/shared/syscall-from-name.h \
785 src/shared/syscall-to-name.h
787 # ------------------------------------------------------------------------------
788 noinst_LTLIBRARIES += \
791 libsystemd_units_la_SOURCES = \
792 src/shared/install.c \
793 src/shared/install.h \
794 src/shared/install-printf.c \
795 src/shared/install-printf.h \
796 src/shared/path-lookup.c \
797 src/shared/path-lookup.h \
798 src/shared/specifier.c \
799 src/shared/specifier.h
801 # ------------------------------------------------------------------------------
802 noinst_LTLIBRARIES += \
805 libsystemd_label_la_SOURCES = \
806 src/shared/socket-label.c \
809 src/shared/selinux-util.c \
810 src/shared/selinux-util.h \
811 src/shared/mkdir-label.c \
812 src/shared/ask-password-api.c \
813 src/shared/ask-password-api.h \
814 src/shared/fileio-label.c \
815 src/shared/fileio-label.h \
816 src/shared/dev-setup.c \
817 src/shared/dev-setup.h
819 libsystemd_label_la_CFLAGS = \
823 libsystemd_label_la_LIBADD = \
826 # ------------------------------------------------------------------------------
827 noinst_LTLIBRARIES += \
830 libsystemd_logs_la_SOURCES = \
831 src/shared/logs-show.c \
832 src/shared/logs-show.h
834 # ------------------------------------------------------------------------------
835 noinst_LTLIBRARIES += \
836 libsystemd-capability.la
838 libsystemd_capability_la_SOURCES = \
839 src/shared/capability.c \
840 src/shared/capability.h
842 libsystemd_capability_la_CFLAGS = \
846 libsystemd_capability_la_LIBADD = \
849 # ------------------------------------------------------------------------------
851 noinst_LTLIBRARIES += \
854 libsystemd_acl_la_SOURCES = \
855 src/shared/acl-util.c \
856 src/shared/acl-util.h
858 libsystemd_acl_la_CFLAGS = \
862 libsystemd_acl_la_LIBADD = \
866 # ------------------------------------------------------------------------------
867 noinst_LTLIBRARIES += \
870 libsystemd_core_la_SOURCES = \
873 src/core/unit-printf.c \
874 src/core/unit-printf.h \
879 src/core/transaction.c \
880 src/core/transaction.h \
881 src/core/load-fragment.c \
882 src/core/load-fragment.h \
891 src/core/snapshot.c \
892 src/core/snapshot.h \
897 src/core/automount.c \
898 src/core/automount.h \
909 src/core/load-dropin.c \
910 src/core/load-dropin.h \
917 src/core/dbus-manager.c \
918 src/core/dbus-manager.h \
919 src/core/dbus-unit.c \
920 src/core/dbus-unit.h \
921 src/core/dbus-job.c \
922 src/core/dbus-job.h \
923 src/core/dbus-service.c \
924 src/core/dbus-service.h \
925 src/core/dbus-socket.c \
926 src/core/dbus-socket.h \
927 src/core/dbus-busname.c \
928 src/core/dbus-busname.h \
929 src/core/dbus-target.c \
930 src/core/dbus-target.h \
931 src/core/dbus-snapshot.c \
932 src/core/dbus-snapshot.h \
933 src/core/dbus-device.c \
934 src/core/dbus-device.h \
935 src/core/dbus-mount.c \
936 src/core/dbus-mount.h \
937 src/core/dbus-automount.c \
938 src/core/dbus-automount.h \
939 src/core/dbus-swap.c \
940 src/core/dbus-swap.h \
941 src/core/dbus-timer.c \
942 src/core/dbus-timer.h \
943 src/core/dbus-path.c \
944 src/core/dbus-path.h \
945 src/core/dbus-slice.c \
946 src/core/dbus-slice.h \
947 src/core/dbus-scope.c \
948 src/core/dbus-scope.h \
949 src/core/dbus-execute.c \
950 src/core/dbus-execute.h \
951 src/core/dbus-kill.c \
952 src/core/dbus-kill.h \
953 src/core/dbus-cgroup.c \
954 src/core/dbus-cgroup.h \
955 src/core/dbus-client-track.c \
956 src/core/dbus-client-track.h \
959 src/core/selinux-access.c \
960 src/core/selinux-access.h \
961 src/core/selinux-setup.c \
962 src/core/selinux-setup.h \
963 src/core/smack-setup.c \
964 src/core/smack-setup.h \
965 src/core/ima-setup.c \
966 src/core/ima-setup.h \
967 src/core/locale-setup.h \
968 src/core/locale-setup.c \
969 src/core/hostname-setup.c \
970 src/core/hostname-setup.h \
971 src/core/machine-id-setup.c \
972 src/core/machine-id-setup.h \
973 src/core/mount-setup.c \
974 src/core/mount-setup.h \
975 src/core/loopback-setup.h \
976 src/core/loopback-setup.c \
977 src/core/condition.c \
978 src/core/condition.h \
979 src/core/namespace.c \
980 src/core/namespace.h \
984 src/core/sysfs-show.h \
985 src/core/switch-root.h \
986 src/core/switch-root.c \
989 src/core/audit-fd.c \
990 src/core/audit-fd.h \
995 libsystemd_core_la_SOURCES += \
996 src/core/kmod-setup.c \
997 src/core/kmod-setup.h
1000 nodist_libsystemd_core_la_SOURCES = \
1001 src/core/load-fragment-gperf.c \
1002 src/core/load-fragment-gperf-nulstr.c
1004 libsystemd_core_la_CFLAGS = \
1012 libsystemd_core_la_LIBADD = \
1013 libsystemd-capability.la \
1014 libsystemd-units.la \
1015 libsystemd-label.la \
1016 libsystemd-id128-internal.la \
1017 libsystemd-daemon-internal.la \
1018 libudev-internal.la \
1019 libsystemd-shared.la \
1020 libsystemd-rtnl.la \
1021 libsystemd-bus-internal.la \
1028 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1029 $(AM_V_at)$(MKDIR_P) $(dir $@)
1030 $(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 ";" }' < $< > $@
1033 src/core/load-fragment-gperf.gperf.m4
1036 src/core/load-fragment-gperf.gperf \
1037 src/core/load-fragment-gperf.c \
1038 src/core/load-fragment-gperf-nulstr.c \
1039 src/shared/syscall-list.txt \
1040 src/shared/syscall-from-name.gperf \
1041 src/shared/errno-list.txt \
1042 src/shared/errno-from-name.gperf
1045 src/shared/syscall-from-name.h \
1046 src/shared/syscall-to-name.h \
1047 src/shared/errno-from-name.h \
1048 src/shared/errno-to-name.h
1050 src/shared/syscall-list.txt:
1051 $(AM_V_at)$(MKDIR_P) $(dir $@)
1052 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h - < /dev/null | $(AWK) '/^#define[ \t]+__NR_[^ ]+[ \t]+[0-9(]/ { sub(/__NR_/, "", $$2); if ($$2 !~ /SYSCALL_BASE/) print $$2; }' > $@
1054 src/shared/syscall-from-name.gperf: src/shared/syscall-list.txt
1055 $(AM_V_at)$(MKDIR_P) $(dir $@)
1056 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct syscall_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, __NR_%s\n", $$1, $$1 }' < $< > $@
1058 src/shared/syscall-from-name.h: src/shared/syscall-from-name.gperf
1059 $(AM_V_at)$(MKDIR_P) $(dir $@)
1060 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1062 src/shared/syscall-to-name.h: src/shared/syscall-list.txt
1063 $(AM_V_at)$(MKDIR_P) $(dir $@)
1064 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1066 src/shared/errno-list.txt:
1067 $(AM_V_at)$(MKDIR_P) $(dir $@)
1068 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+[0-9]/ { print $$2; }' > $@
1070 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1071 $(AM_V_at)$(MKDIR_P) $(dir $@)
1072 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1074 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1075 $(AM_V_at)$(MKDIR_P) $(dir $@)
1076 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1078 src/shared/errno-to-name.h: src/shared/errno-list.txt
1079 $(AM_V_at)$(MKDIR_P) $(dir $@)
1080 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1082 # ------------------------------------------------------------------------------
1087 libsystemd-core.la \
1090 dist_pkgsysconf_DATA += \
1091 src/core/system.conf \
1094 dist_dbuspolicy_DATA += \
1095 src/core/org.freedesktop.systemd1.conf
1097 dist_dbussystemservice_DATA += \
1098 src/core/org.freedesktop.systemd1.service
1100 polkitpolicy_in_in_files += \
1101 src/core/org.freedesktop.systemd1.policy.in.in
1103 pkgconfigdata_DATA = \
1106 nodist_rpmmacros_DATA = \
1107 src/core/macros.systemd
1110 src/core/systemd.pc.in \
1111 src/core/macros.systemd.in
1114 src/core/macros.systemd \
1115 src/core/org.freedesktop.systemd1.policy.in
1117 # ------------------------------------------------------------------------------
1147 test-strip-tab-ansi \
1159 test/sched_idle_bad.service \
1160 test/sched_idle_ok.service \
1161 test/sched_rr_bad.service \
1162 test/sched_rr_ok.service \
1163 test/sched_rr_change.service \
1165 test/daughter.service \
1169 src/test/test-helper.h
1171 test_device_nodes_SOURCES = \
1172 src/test/test-device-nodes.c
1174 test_device_nodes_LDADD = \
1175 libsystemd-shared.la
1177 test_engine_SOURCES = \
1178 src/test/test-engine.c
1180 test_engine_LDADD = \
1181 libsystemd-core.la \
1184 test_job_type_SOURCES = \
1185 src/test/test-job-type.c
1187 test_job_type_LDADD = \
1188 libsystemd-core.la \
1197 test_loopback_SOURCES = \
1198 src/test/test-loopback.c
1200 test_loopback_LDADD = \
1203 test_hostname_SOURCES = \
1204 src/test/test-hostname.c
1206 test_hostname_LDADD = \
1213 test_boot_timestamp_SOURCES = \
1214 src/test/test-boot-timestamps.c
1216 test_boot_timestamp_LDADD = \
1217 libsystemd-shared.la
1220 test_unit_name_SOURCES = \
1221 src/test/test-unit-name.c
1223 test_unit_name_LDADD = \
1224 libsystemd-core.la \
1227 test_unit_file_SOURCES = \
1228 src/test/test-unit-file.c
1230 test_unit_file_LDADD = \
1231 libsystemd-core.la \
1234 test_utf8_SOURCES = \
1235 src/test/test-utf8.c
1238 libsystemd-shared.la
1240 test_util_SOURCES = \
1241 src/test/test-util.c
1246 test_namespace_SOURCES = \
1247 src/test/test-namespace.c
1249 test_namespace_LDADD = \
1252 test_hashmap_SOURCES = \
1253 src/test/test-hashmap.c
1255 test_hashmap_LDADD = \
1258 test_list_SOURCES = \
1259 src/test/test-list.c
1264 test_tables_SOURCES = \
1265 src/test/test-tables.c \
1266 src/shared/test-tables.h
1268 test_tables_LDADD = \
1269 libsystemd-logs.la \
1270 libsystemd-journal-internal.la \
1271 libsystemd-core.la \
1274 test_prioq_SOURCES = \
1275 src/test/test-prioq.c
1277 test_prioq_LDADD = \
1280 test_fileio_SOURCES = \
1281 src/test/test-fileio.c
1283 test_fileio_LDADD = \
1286 test_time_SOURCES = \
1287 src/test/test-time.c
1292 test_log_SOURCES = \
1298 test_ellipsize_SOURCES = \
1299 src/test/test-ellipsize.c
1301 test_ellipsize_LDADD = \
1304 test_date_SOURCES = \
1305 src/test/test-date.c
1310 test_sleep_SOURCES = \
1311 src/test/test-sleep.c
1313 test_sleep_LDADD = \
1316 test_replace_var_SOURCES = \
1317 src/test/test-replace-var.c
1319 test_replace_var_LDADD = \
1320 libsystemd-shared.la
1322 test_calendarspec_SOURCES = \
1323 src/test/test-calendarspec.c
1325 test_calendarspec_LDADD = \
1326 libsystemd-shared.la
1328 test_strip_tab_ansi_SOURCES = \
1329 src/test/test-strip-tab-ansi.c
1331 test_strip_tab_ansi_LDADD = \
1332 libsystemd-shared.la
1334 test_daemon_SOURCES = \
1335 src/test/test-daemon.c
1337 test_daemon_LDADD = \
1338 libsystemd-daemon-internal.la \
1339 libsystemd-shared.la
1341 test_cgroup_SOURCES = \
1342 src/test/test-cgroup.c
1344 test_cgroup_LDADD = \
1345 libsystemd-label.la \
1346 libsystemd-shared.la
1348 test_cgroup_mask_SOURCES = \
1349 src/test/test-cgroup-mask.c
1351 test_cgroup_mask_CPPFLAGS = \
1353 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1355 test_cgroup_mask_LDADD = \
1356 libsystemd-core.la \
1359 test_cgroup_util_SOURCES = \
1360 src/test/test-cgroup-util.c
1362 test_cgroup_util_LDADD = \
1363 libsystemd-label.la \
1364 libsystemd-daemon-internal.la \
1365 libsystemd-shared.la
1367 test_env_replace_SOURCES = \
1368 src/test/test-env-replace.c
1370 test_env_replace_LDADD = \
1371 libsystemd-shared.la
1373 test_strbuf_SOURCES = \
1374 src/test/test-strbuf.c
1376 test_strbuf_LDADD = \
1377 libsystemd-shared.la
1379 test_strv_SOURCES = \
1380 src/test/test-strv.c
1383 libsystemd-units.la \
1384 libsystemd-id128-internal.la \
1385 libsystemd-shared.la
1387 test_path_util_SOURCES = \
1388 src/test/test-path-util.c
1390 test_path_util_LDADD = \
1391 libsystemd-shared.la
1393 test_strxcpyx_SOURCES = \
1394 src/test/test-strxcpyx.c
1396 test_strxcpyx_LDADD = \
1397 libsystemd-shared.la
1399 test_install_SOURCES = \
1400 src/test/test-install.c
1402 test_install_LDADD = \
1403 libsystemd-units.la \
1404 libsystemd-label.la \
1405 libsystemd-id128-internal.la \
1406 libsystemd-shared.la
1408 test_watchdog_SOURCES = \
1409 src/test/test-watchdog.c
1411 test_watchdog_LDADD = \
1412 libsystemd-shared.la
1414 test_sched_prio_SOURCES = \
1415 src/test/test-sched-prio.c
1417 test_sched_prio_CPPFLAGS = \
1419 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1421 test_sched_prio_LDADD = \
1422 libsystemd-core.la \
1425 # ------------------------------------------------------------------------------
1426 ## .PHONY so it always rebuilds it
1427 .PHONY: coverage lcov-run lcov-report
1429 # run lcov from scratch, always
1434 coverage_dir = coverage
1435 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1438 # reset run coverage tests
1440 @rm -rf $(coverage_dir)
1441 lcov $(coverage_opts) --zerocounters
1444 # generate report based on current coverage data
1446 $(MKDIR_P) $(coverage_dir)
1447 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1448 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1449 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1450 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1452 # lcov doesn't work properly with vpath builds, make sure that bad
1453 # output is not uploaded by mistake.
1454 coverage-sync: coverage
1455 test "$(builddir)" = "$(srcdir)"
1456 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1459 lcov-run lcov-report:
1460 echo "Need to reconfigure with --enable-coverage"
1463 # ------------------------------------------------------------------------------
1464 systemd_analyze_SOURCES = \
1465 src/analyze/analyze.c
1467 systemd_analyze_LDADD = \
1468 libsystemd-bus-internal.la \
1469 libsystemd-id128-internal.la \
1470 libsystemd-daemon-internal.la \
1471 libsystemd-shared.la
1473 # ------------------------------------------------------------------------------
1474 systemd_initctl_SOURCES = \
1475 src/initctl/initctl.c
1477 systemd_initctl_LDADD = \
1478 libsystemd-bus-internal.la \
1479 libsystemd-id128-internal.la \
1480 libsystemd-daemon-internal.la \
1481 libsystemd-shared.la
1483 # ------------------------------------------------------------------------------
1484 systemd_update_utmp_SOURCES = \
1485 src/update-utmp/update-utmp.c
1487 systemd_update_utmp_CFLAGS = \
1491 systemd_update_utmp_LDADD = \
1492 libsystemd-bus-internal.la \
1493 libsystemd-id128-internal.la \
1494 libsystemd-daemon-internal.la \
1495 libsystemd-shared.la \
1498 # ------------------------------------------------------------------------------
1499 systemd_shutdownd_SOURCES = \
1500 src/shutdownd/shutdownd.c
1502 systemd_shutdownd_LDADD = \
1503 libsystemd-label.la \
1504 libsystemd-daemon-internal.la \
1505 libsystemd-shared.la
1508 src/systemd/sd-shutdown.h
1510 # ------------------------------------------------------------------------------
1511 systemd_shutdown_SOURCES = \
1514 src/core/shutdown.c \
1515 src/core/mount-setup.c \
1516 src/core/mount-setup.h \
1517 src/core/killall.h \
1520 systemd_shutdown_LDADD = \
1521 libsystemd-label.la \
1522 libudev-internal.la \
1523 libsystemd-shared.la
1525 # ------------------------------------------------------------------------------
1527 systemd_modules_load_SOURCES = \
1528 src/modules-load/modules-load.c
1530 systemd_modules_load_CFLAGS = \
1534 systemd_modules_load_LDADD = \
1535 libsystemd-shared.la \
1538 rootlibexec_PROGRAMS += \
1539 systemd-modules-load
1541 nodist_systemunit_DATA += \
1542 units/systemd-modules-load.service
1544 SYSINIT_TARGET_WANTS += \
1545 systemd-modules-load.service
1548 nodist_systemunit_DATA += \
1549 units/kmod-static-nodes.service
1551 SYSINIT_TARGET_WANTS += \
1552 kmod-static-nodes.service
1557 units/systemd-modules-load.service.in \
1558 units/kmod-static-nodes.service.in
1560 # ------------------------------------------------------------------------------
1562 systemd_tmpfiles_SOURCES = \
1563 src/tmpfiles/tmpfiles.c
1565 systemd_tmpfiles_LDADD = \
1566 libsystemd-units.la \
1567 libsystemd-label.la \
1568 libsystemd-capability.la \
1569 libsystemd-id128-internal.la \
1570 libsystemd-shared.la
1572 rootbin_PROGRAMS += \
1575 dist_systemunit_DATA += \
1576 units/systemd-tmpfiles-clean.timer
1578 nodist_systemunit_DATA += \
1579 units/systemd-tmpfiles-setup-dev.service \
1580 units/systemd-tmpfiles-setup.service \
1581 units/systemd-tmpfiles-clean.service
1583 dist_tmpfiles_DATA = \
1584 tmpfiles.d/systemd.conf \
1585 tmpfiles.d/tmp.conf \
1589 dist_tmpfiles_DATA += \
1590 tmpfiles.d/legacy.conf
1593 SYSINIT_TARGET_WANTS += \
1594 systemd-tmpfiles-setup-dev.service \
1595 systemd-tmpfiles-setup.service
1597 dist_zshcompletion_DATA += \
1598 shell-completion/zsh/_systemd-tmpfiles
1600 TIMERS_TARGET_WANTS += \
1601 systemd-tmpfiles-clean.timer
1605 $(sysconfdir)/tmpfiles.d
1609 units/systemd-tmpfiles-setup-dev.service.in \
1610 units/systemd-tmpfiles-setup.service.in \
1611 units/systemd-tmpfiles-clean.service.in
1613 # ------------------------------------------------------------------------------
1614 systemd_machine_id_setup_SOURCES = \
1615 src/machine-id-setup/machine-id-setup-main.c \
1616 src/core/machine-id-setup.c \
1617 src/core/machine-id-setup.h
1619 systemd_machine_id_setup_LDADD = \
1620 libsystemd-label.la \
1621 libsystemd-id128-internal.la \
1622 libsystemd-shared.la
1624 # ------------------------------------------------------------------------------
1625 systemd_sysctl_SOURCES = \
1628 systemd_sysctl_LDADD = \
1629 libsystemd-shared.la
1631 # ------------------------------------------------------------------------------
1632 systemd_sleep_SOURCES = \
1635 systemd_sleep_LDADD = \
1636 libsystemd-shared.la
1638 # ------------------------------------------------------------------------------
1639 systemd_fsck_SOURCES = \
1642 systemd_fsck_LDADD = \
1643 libsystemd-bus-internal.la \
1644 libsystemd-id128-internal.la \
1645 libsystemd-daemon-internal.la \
1646 libudev-internal.la \
1647 libsystemd-shared.la
1649 # ------------------------------------------------------------------------------
1650 systemd_ac_power_SOURCES = \
1651 src/ac-power/ac-power.c
1653 systemd_ac_power_LDADD = \
1654 libudev-internal.la \
1655 libsystemd-shared.la
1657 # ------------------------------------------------------------------------------
1658 systemd_detect_virt_SOURCES = \
1659 src/detect-virt/detect-virt.c
1661 systemd_detect_virt_LDADD = \
1662 libsystemd-shared.la
1664 systemd-detect-virt-install-hook:
1665 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1667 INSTALL_EXEC_HOOKS += \
1668 systemd-detect-virt-install-hook
1670 # ------------------------------------------------------------------------------
1671 systemd_delta_SOURCES = \
1674 systemd_delta_LDADD = \
1675 libsystemd-shared.la
1677 # ------------------------------------------------------------------------------
1678 systemd_getty_generator_SOURCES = \
1679 src/getty-generator/getty-generator.c
1681 systemd_getty_generator_LDADD = \
1682 libsystemd-label.la \
1683 libsystemd-shared.la
1685 # ------------------------------------------------------------------------------
1686 systemd_fstab_generator_SOURCES = \
1687 src/fstab-generator/fstab-generator.c \
1688 src/core/mount-setup.c
1690 systemd_fstab_generator_LDADD = \
1691 libsystemd-label.la \
1692 libsystemd-shared.la
1694 # ------------------------------------------------------------------------------
1695 systemd_system_update_generator_SOURCES = \
1696 src/system-update-generator/system-update-generator.c
1698 systemd_system_update_generator_LDADD = \
1699 libsystemd-label.la \
1700 libsystemd-shared.la
1703 # ------------------------------------------------------------------------------
1704 systemgenerator_PROGRAMS += \
1705 systemd-efi-boot-generator
1707 systemd_efi_boot_generator_SOURCES = \
1708 src/efi-boot-generator/efi-boot-generator.c
1710 systemd_efi_boot_generator_LDADD = \
1711 libsystemd-label.la \
1712 libsystemd-shared.la
1714 # ------------------------------------------------------------------------------
1717 src/boot/boot-loader.h \
1718 src/boot/bootctl.c \
1719 src/boot/boot-loader.c \
1723 libsystemd-shared.la \
1724 libsystemd-id128-internal.la \
1725 libsystemd-daemon-internal.la
1730 dist_zshcompletion_DATA += \
1731 shell-completion/zsh/_bootctl
1735 # ------------------------------------------------------------------------------
1737 systemgenerator_PROGRAMS += \
1738 systemd-gpt-auto-generator
1740 systemd_gpt_auto_generator_SOURCES = \
1741 src/gpt-auto-generator/gpt-auto-generator.c
1743 systemd_gpt_auto_generator_LDADD = \
1744 libsystemd-label.la \
1745 libsystemd-id128-internal.la \
1746 libudev-internal.la \
1747 libsystemd-shared.la \
1750 systemd_gpt_auto_generator_CFLAGS = \
1755 # ------------------------------------------------------------------------------
1756 systemgenerator_PROGRAMS += \
1757 systemd-dbus1-generator
1759 systemd_dbus1_generator_SOURCES = \
1760 src/dbus1-generator/dbus1-generator.c
1762 systemd_dbus1_generator_LDADD = \
1763 libsystemd-label.la \
1764 libsystemd-shared.la \
1765 libsystemd-bus-internal.la
1767 # ------------------------------------------------------------------------------
1768 systemd_rc_local_generator_SOURCES = \
1769 src/rc-local-generator/rc-local-generator.c
1771 systemd_rc_local_generator_LDADD = \
1772 libsystemd-label.la \
1773 libsystemd-shared.la
1775 # ------------------------------------------------------------------------------
1776 systemd_remount_fs_SOURCES = \
1777 src/remount-fs/remount-fs.c \
1778 src/core/mount-setup.c \
1779 src/core/mount-setup.h
1781 systemd_remount_fs_LDADD = \
1782 libsystemd-label.la \
1783 libsystemd-shared.la
1785 # ------------------------------------------------------------------------------
1786 systemd_cgroups_agent_SOURCES = \
1787 src/cgroups-agent/cgroups-agent.c
1789 systemd_cgroups_agent_LDADD = \
1790 libsystemd-bus-internal.la \
1791 libsystemd-id128-internal.la \
1792 libsystemd-daemon-internal.la \
1793 libsystemd-shared.la
1795 # ------------------------------------------------------------------------------
1796 systemctl_SOURCES = \
1797 src/systemctl/systemctl.c
1800 libsystemd-units.la \
1801 libsystemd-label.la \
1802 libsystemd-bus-internal.la \
1806 systemctl_LDADD += \
1807 libsystemd-login-internal.la
1810 systemctl_LDADD += \
1811 libsystemd-journal-internal.la \
1812 libsystemd-id128-internal.la \
1813 libsystemd-daemon-internal.la \
1814 libsystemd-shared.la
1816 # ------------------------------------------------------------------------------
1817 systemd_notify_SOURCES = \
1818 src/notify/notify.c \
1819 src/readahead/sd-readahead.c
1821 systemd_notify_LDADD = \
1822 libsystemd-daemon-internal.la \
1823 libsystemd-shared.la
1825 # ------------------------------------------------------------------------------
1826 systemd_ask_password_SOURCES = \
1827 src/ask-password/ask-password.c
1829 systemd_ask_password_LDADD = \
1830 libsystemd-label.la \
1831 libsystemd-shared.la
1833 # ------------------------------------------------------------------------------
1834 systemd_reply_password_SOURCES = \
1835 src/reply-password/reply-password.c
1837 systemd_reply_password_LDADD = \
1838 libsystemd-shared.la
1840 # ------------------------------------------------------------------------------
1841 systemd_cgls_SOURCES = \
1844 systemd_cgls_LDADD = \
1845 libsystemd-shared.la
1847 # ------------------------------------------------------------------------------
1848 systemd_cgtop_SOURCES = \
1851 systemd_cgtop_LDADD = \
1852 libsystemd-shared.la
1854 # ------------------------------------------------------------------------------
1855 systemd_nspawn_SOURCES = \
1856 src/nspawn/nspawn.c \
1857 src/core/mount-setup.c \
1858 src/core/mount-setup.h \
1859 src/core/loopback-setup.c \
1860 src/core/loopback-setup.h
1862 systemd_nspawn_LDADD = \
1863 libsystemd-label.la \
1864 libsystemd-capability.la \
1865 libsystemd-bus-internal.la \
1866 libsystemd-id128-internal.la \
1867 libsystemd-daemon-internal.la \
1868 libsystemd-shared.la \
1871 # ------------------------------------------------------------------------------
1872 systemd_run_SOURCES = \
1875 systemd_run_LDADD = \
1876 libsystemd-label.la \
1877 libsystemd-capability.la \
1878 libsystemd-bus-internal.la \
1879 libsystemd-daemon-internal.la \
1880 libsystemd-id128-internal.la \
1881 libsystemd-shared.la
1883 # ------------------------------------------------------------------------------
1884 systemd_bus_proxyd_SOURCES = \
1885 src/bus-proxyd/bus-proxyd.c
1887 systemd_bus_proxyd_LDADD = \
1888 libsystemd-bus-internal.la \
1889 libsystemd-daemon-internal.la \
1890 libsystemd-id128-internal.la \
1891 libsystemd-shared.la
1893 bus-proxyd-install-hook:
1894 $(AM_V_LN)$(LN_S) -f ../../lib/systemd/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
1896 bus-proxyd-uninstall-hook:
1897 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
1899 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
1900 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
1902 nodist_systemunit_DATA += \
1903 units/systemd-bus-proxyd@.service
1905 dist_systemunit_DATA += \
1906 units/systemd-bus-proxyd.socket
1908 dist_userunit_DATA += \
1909 units/user/systemd-bus-proxyd.socket
1911 USER_UNIT_ALIASES += \
1912 $(systemunitdir)/systemd-bus-proxyd@.service systemd-bus-proxyd@.service
1915 units/systemd-bus-proxyd@.service.in
1917 # ------------------------------------------------------------------------------
1918 systemd_tty_ask_password_agent_SOURCES = \
1919 src/tty-ask-password-agent/tty-ask-password-agent.c
1921 systemd_tty_ask_password_agent_LDADD = \
1922 libsystemd-label.la \
1923 libsystemd-shared.la
1925 # ------------------------------------------------------------------------------
1926 libsystemd_daemon_la_SOURCES = \
1927 src/libsystemd-daemon/libsystemd-daemon.sym \
1928 src/libsystemd-daemon/sd-daemon.c
1930 libsystemd_daemon_internal_la_SOURCES = \
1931 $(libsystemd_daemon_la_SOURCES)
1933 libsystemd_daemon_internal_la_CPPFLAGS = \
1935 -DSD_DAEMON_DISABLE_MQ
1937 libsystemd_daemon_la_CFLAGS = \
1939 -fvisibility=hidden \
1942 libsystemd_daemon_la_LDFLAGS = \
1944 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1945 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1947 libsystemd_daemon_la_LIBADD = \
1950 pkginclude_HEADERS += \
1951 src/systemd/sd-daemon.h
1953 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1954 libsystemd-daemon-install-hook:
1955 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1957 libsystemd-daemon-uninstall-hook:
1958 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1960 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1961 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1963 lib_LTLIBRARIES += \
1964 libsystemd-daemon.la
1966 noinst_LTLIBRARIES += \
1967 libsystemd-daemon-internal.la
1969 pkgconfiglib_DATA += \
1970 src/libsystemd-daemon/libsystemd-daemon.pc
1973 src/libsystemd-daemon/libsystemd-daemon.pc.in
1975 # ------------------------------------------------------------------------------
1976 libsystemd_bus_la_SOURCES = \
1977 src/libsystemd-bus/libsystemd-bus.sym \
1978 src/systemd/sd-bus.h \
1979 src/systemd/sd-bus-protocol.h \
1980 src/systemd/sd-bus-vtable.h \
1981 src/systemd/sd-memfd.h \
1982 src/systemd/sd-utf8.h \
1983 src/systemd/sd-event.h \
1984 src/libsystemd-bus/sd-bus.c \
1985 src/libsystemd-bus/bus-control.c \
1986 src/libsystemd-bus/bus-control.h \
1987 src/libsystemd-bus/bus-error.c \
1988 src/libsystemd-bus/bus-error.h \
1989 src/libsystemd-bus/bus-internal.c \
1990 src/libsystemd-bus/bus-internal.h \
1991 src/libsystemd-bus/bus-socket.c \
1992 src/libsystemd-bus/bus-socket.h \
1993 src/libsystemd-bus/bus-kernel.c \
1994 src/libsystemd-bus/bus-kernel.h \
1995 src/libsystemd-bus/bus-container.c \
1996 src/libsystemd-bus/bus-container.h \
1997 src/libsystemd-bus/bus-message.c \
1998 src/libsystemd-bus/bus-message.h \
1999 src/libsystemd-bus/bus-creds.c \
2000 src/libsystemd-bus/bus-creds.h \
2001 src/libsystemd-bus/bus-signature.c \
2002 src/libsystemd-bus/bus-signature.h \
2003 src/libsystemd-bus/bus-type.c \
2004 src/libsystemd-bus/bus-type.h \
2005 src/libsystemd-bus/bus-match.c \
2006 src/libsystemd-bus/bus-match.h \
2007 src/libsystemd-bus/bus-bloom.c \
2008 src/libsystemd-bus/bus-bloom.h \
2009 src/libsystemd-bus/bus-introspect.c \
2010 src/libsystemd-bus/bus-introspect.h \
2011 src/libsystemd-bus/bus-objects.c \
2012 src/libsystemd-bus/bus-objects.h \
2013 src/libsystemd-bus/bus-gvariant.c \
2014 src/libsystemd-bus/bus-gvariant.h \
2015 src/libsystemd-bus/bus-convenience.c \
2016 src/libsystemd-bus/kdbus.h \
2017 src/libsystemd-bus/sd-memfd.c \
2018 src/libsystemd-bus/bus-util.c \
2019 src/libsystemd-bus/bus-util.h \
2020 src/libsystemd-bus/sd-utf8.c \
2021 src/libsystemd-bus/sd-event.c \
2022 src/libsystemd-bus/event-util.h \
2023 src/libsystemd-bus/bus-protocol.h
2025 libsystemd_bus_la_LIBADD = \
2026 libsystemd-id128-internal.la \
2027 libsystemd-daemon-internal.la \
2028 libsystemd-shared.la
2030 libsystemd_bus_la_CFLAGS = \
2034 libsystemd_bus_la_LDFLAGS = \
2036 -version-info $(LIBSYSTEMD_BUS_CURRENT):$(LIBSYSTEMD_BUS_REVISION):$(LIBSYSTEMD_BUS_AGE) \
2037 -Wl,--version-script=$(top_srcdir)/src/libsystemd-bus/libsystemd-bus.sym
2039 pkgconfiglib_DATA += \
2040 src/libsystemd-bus/libsystemd-bus.pc
2043 src/libsystemd-bus/libsystemd-bus.pc.in \
2044 src/libsystemd-bus/DIFFERENCES \
2045 src/libsystemd-bus/GVARIANT-SERIALIZATION
2047 lib_LTLIBRARIES += \
2050 libsystemd_bus_internal_la_SOURCES = \
2051 $(libsystemd_bus_la_SOURCES)
2053 libsystemd_bus_internal_la_CFLAGS = \
2054 $(libsystemd_bus_la_CFLAGS)
2056 noinst_LTLIBRARIES += \
2057 libsystemd-bus-internal.la
2059 libsystemd_bus_dump_la_SOURCES = \
2060 src/libsystemd-bus/bus-dump.c \
2061 src/libsystemd-bus/bus-dump.h
2063 libsystemd_bus_dump_la_CFLAGS = \
2067 noinst_LTLIBRARIES += \
2068 libsystemd-bus-dump.la
2072 test-bus-signature \
2077 test-bus-kernel-bloom \
2078 test-bus-kernel-benchmark \
2080 test-bus-zero-copy \
2081 test-bus-introspect \
2091 test_bus_marshal_SOURCES = \
2092 src/libsystemd-bus/test-bus-marshal.c
2094 test_bus_marshal_LDADD = \
2095 libsystemd-bus-internal.la \
2096 libsystemd-id128-internal.la \
2097 libsystemd-daemon-internal.la \
2098 libsystemd-shared.la \
2099 libsystemd-bus-dump.la \
2100 libsystemd-capability.la \
2105 test_bus_marshal_CFLAGS = \
2111 test_bus_signature_SOURCES = \
2112 src/libsystemd-bus/test-bus-signature.c
2114 test_bus_signature_LDADD = \
2115 libsystemd-shared.la \
2116 libsystemd-bus-internal.la
2118 test_bus_chat_SOURCES = \
2119 src/libsystemd-bus/test-bus-chat.c
2121 test_bus_chat_CFLAGS = \
2125 test_bus_chat_LDADD = \
2126 libsystemd-bus-internal.la \
2127 libsystemd-id128-internal.la \
2128 libsystemd-daemon-internal.la \
2129 libsystemd-shared.la
2131 test_bus_server_SOURCES = \
2132 src/libsystemd-bus/test-bus-server.c
2134 test_bus_server_CFLAGS = \
2138 test_bus_server_LDADD = \
2139 libsystemd-bus-internal.la \
2140 libsystemd-id128-internal.la \
2141 libsystemd-daemon-internal.la \
2142 libsystemd-shared.la
2144 test_bus_objects_SOURCES = \
2145 src/libsystemd-bus/test-bus-objects.c
2147 test_bus_objects_CFLAGS = \
2152 test_bus_objects_LDADD = \
2153 libsystemd-bus-internal.la \
2154 libsystemd-id128-internal.la \
2155 libsystemd-daemon-internal.la \
2156 libsystemd-shared.la \
2157 libsystemd-bus-dump.la \
2158 libsystemd-capability.la \
2161 test_bus_error_SOURCES = \
2162 src/libsystemd-bus/test-bus-error.c
2164 test_bus_error_LDADD = \
2165 libsystemd-bus-internal.la \
2166 libsystemd-id128-internal.la \
2167 libsystemd-daemon-internal.la \
2168 libsystemd-shared.la
2170 test_bus_gvariant_SOURCES = \
2171 src/libsystemd-bus/test-bus-gvariant.c
2173 test_bus_gvariant_LDADD = \
2174 libsystemd-bus-internal.la \
2175 libsystemd-id128-internal.la \
2176 libsystemd-daemon-internal.la \
2177 libsystemd-shared.la \
2178 libsystemd-bus-dump.la \
2179 libsystemd-capability.la \
2183 test_bus_gvariant_CFLAGS = \
2188 test_bus_creds_SOURCES = \
2189 src/libsystemd-bus/test-bus-creds.c
2191 test_bus_creds_LDADD = \
2192 libsystemd-bus-internal.la \
2193 libsystemd-id128-internal.la \
2194 libsystemd-daemon-internal.la \
2195 libsystemd-shared.la \
2196 libsystemd-bus-dump.la \
2197 libsystemd-capability.la
2199 test_bus_match_SOURCES = \
2200 src/libsystemd-bus/test-bus-match.c
2202 test_bus_match_LDADD = \
2203 libsystemd-bus-internal.la \
2204 libsystemd-id128-internal.la \
2205 libsystemd-daemon-internal.la \
2206 libsystemd-shared.la
2208 test_bus_kernel_SOURCES = \
2209 src/libsystemd-bus/test-bus-kernel.c
2211 test_bus_kernel_LDADD = \
2212 libsystemd-bus-internal.la \
2213 libsystemd-id128-internal.la \
2214 libsystemd-daemon-internal.la \
2215 libsystemd-shared.la \
2216 libsystemd-bus-dump.la \
2217 libsystemd-capability.la \
2220 test_bus_kernel_CFLAGS = \
2224 test_bus_kernel_bloom_SOURCES = \
2225 src/libsystemd-bus/test-bus-kernel-bloom.c
2227 test_bus_kernel_bloom_LDADD = \
2228 libsystemd-bus-internal.la \
2229 libsystemd-id128-internal.la \
2230 libsystemd-daemon-internal.la \
2231 libsystemd-shared.la
2233 test_bus_kernel_benchmark_SOURCES = \
2234 src/libsystemd-bus/test-bus-kernel-benchmark.c
2236 test_bus_kernel_benchmark_LDADD = \
2237 libsystemd-bus-internal.la \
2238 libsystemd-id128-internal.la \
2239 libsystemd-daemon-internal.la \
2240 libsystemd-shared.la
2242 test_bus_memfd_SOURCES = \
2243 src/libsystemd-bus/test-bus-memfd.c
2245 test_bus_memfd_LDADD = \
2246 libsystemd-bus-internal.la \
2247 libsystemd-shared.la
2249 test_bus_zero_copy_SOURCES = \
2250 src/libsystemd-bus/test-bus-zero-copy.c
2252 test_bus_zero_copy_LDADD = \
2253 libsystemd-bus-internal.la \
2254 libsystemd-id128-internal.la \
2255 libsystemd-daemon-internal.la \
2256 libsystemd-shared.la \
2257 libsystemd-bus-dump.la \
2258 libsystemd-capability.la \
2261 test_bus_zero_copy_CFLAGS = \
2265 test_bus_introspect_SOURCES = \
2266 src/libsystemd-bus/test-bus-introspect.c
2268 test_bus_introspect_LDADD = \
2269 libsystemd-shared.la \
2270 libsystemd-bus-internal.la
2272 test_event_SOURCES = \
2273 src/libsystemd-bus/test-event.c
2275 test_event_LDADD = \
2276 libsystemd-bus-internal.la \
2277 libsystemd-id128-internal.la \
2278 libsystemd-daemon-internal.la \
2279 libsystemd-shared.la
2282 src/libsystemd-bus/busctl.c
2285 libsystemd-bus-internal.la \
2286 libsystemd-id128-internal.la \
2287 libsystemd-daemon-internal.la \
2288 libsystemd-shared.la \
2289 libsystemd-bus-dump.la \
2290 libsystemd-capability.la \
2297 # ------------------------------------------------------------------------------
2307 include_HEADERS += \
2308 src/libudev/libudev.h
2310 lib_LTLIBRARIES += \
2313 libudev_la_SOURCES =\
2314 src/libudev/libudev.sym \
2315 src/libudev/libudev-private.h \
2316 src/libudev/libudev.c \
2317 src/libudev/libudev-list.c \
2318 src/libudev/libudev-util.c \
2319 src/libudev/libudev-device.c \
2320 src/libudev/libudev-enumerate.c \
2321 src/libudev/libudev-monitor.c \
2322 src/libudev/libudev-queue.c \
2323 src/libudev/libudev-hwdb-def.h \
2324 src/libudev/libudev-hwdb.c
2326 libudev_la_CFLAGS = \
2330 libudev_la_LDFLAGS = \
2332 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2333 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2335 libudev_la_LIBADD = \
2336 libsystemd-daemon-internal.la \
2337 libsystemd-id128-internal.la \
2338 libsystemd-shared.la
2340 pkgconfiglib_DATA += \
2341 src/libudev/libudev.pc
2344 src/libudev/libudev.pc.in
2347 src/libudev/libudev.pc \
2352 $(AM_V_at)$(MKDIR_P) $(dir $@)
2353 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2356 $(AM_V_at)$(MKDIR_P) $(dir $@)
2357 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2359 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2360 libudev-install-hook:
2361 libname=libudev.so && $(move-to-rootlibdir)
2363 libudev-uninstall-hook:
2364 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2366 INSTALL_EXEC_HOOKS += libudev-install-hook
2367 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2369 # ------------------------------------------------------------------------------
2370 noinst_LTLIBRARIES += \
2373 libudev_internal_la_SOURCES =\
2374 $(libudev_la_SOURCES) \
2375 src/libudev/libudev-device-private.c \
2376 src/libudev/libudev-queue-private.c
2378 libudev_internal_la_CFLAGS = \
2380 -fvisibility=default
2382 # ------------------------------------------------------------------------------
2384 $(sysconfdir)/udev/rules.d \
2385 $(sysconfdir)/udev/hwdb.d
2387 dist_network_DATA = \
2388 network/99-default.link
2390 dist_udevrules_DATA += \
2391 rules/99-systemd.rules \
2392 rules/42-usb-hid-pm.rules \
2393 rules/50-udev-default.rules \
2394 rules/60-drm.rules \
2395 rules/60-keyboard.rules \
2396 rules/60-persistent-storage-tape.rules \
2397 rules/60-persistent-serial.rules \
2398 rules/60-persistent-input.rules \
2399 rules/60-persistent-alsa.rules \
2400 rules/60-persistent-storage.rules \
2401 rules/64-btrfs.rules \
2402 rules/75-net-description.rules \
2403 rules/75-tty-description.rules \
2404 rules/78-sound-card.rules \
2405 rules/80-net-setup-link.rules \
2406 rules/95-udev-late.rules
2408 dist_udevhwdb_DATA = \
2409 hwdb/20-pci-vendor-model.hwdb \
2410 hwdb/20-pci-classes.hwdb \
2411 hwdb/20-usb-vendor-model.hwdb \
2412 hwdb/20-usb-classes.hwdb \
2413 hwdb/20-bluetooth-vendor-product.hwdb \
2414 hwdb/20-acpi-vendor.hwdb \
2416 hwdb/60-keyboard.hwdb
2418 udevconfdir = $(sysconfdir)/udev
2419 dist_udevconf_DATA = \
2422 sharepkgconfigdir = $(datadir)/pkgconfig
2423 sharepkgconfig_DATA = \
2427 rules/99-systemd.rules.in \
2431 rules/99-systemd.rules \
2435 units/systemd-udevd.service.in \
2436 units/systemd-udev-trigger.service.in \
2437 units/systemd-udev-settle.service.in
2440 units/systemd-udevd.service \
2441 units/systemd-udev-trigger.service \
2442 units/systemd-udev-settle.service
2444 SOCKETS_TARGET_WANTS += \
2445 systemd-udevd-control.socket \
2446 systemd-udevd-kernel.socket
2447 SYSINIT_TARGET_WANTS += \
2448 systemd-udevd.service \
2449 systemd-udev-trigger.service
2451 rootbin_PROGRAMS += \
2454 rootlibexec_PROGRAMS += \
2457 noinst_LTLIBRARIES += \
2460 src/udev/keyboard-keys.txt:
2461 $(AM_V_at)$(MKDIR_P) $(dir $@)
2462 $(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/' > $@
2464 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2465 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2467 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2468 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2470 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2471 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2473 libudev_core_la_SOURCES = \
2475 src/udev/udev-event.c \
2476 src/udev/udev-watch.c \
2477 src/udev/udev-node.c \
2478 src/udev/udev-rules.c \
2479 src/udev/udev-ctrl.c \
2480 src/udev/udev-builtin.c \
2481 src/udev/udev-builtin-btrfs.c \
2482 src/udev/udev-builtin-hwdb.c \
2483 src/udev/udev-builtin-input_id.c \
2484 src/udev/udev-builtin-keyboard.c \
2485 src/udev/udev-builtin-net_id.c \
2486 src/udev/udev-builtin-net_setup_link.c \
2487 src/udev/udev-builtin-path_id.c \
2488 src/udev/udev-builtin-usb_id.c \
2489 src/udev/net/link-config.h \
2490 src/udev/net/link-config.c \
2491 src/udev/net/ethtool-util.h \
2492 src/udev/net/ethtool-util.c
2494 nodist_libudev_core_la_SOURCES = \
2495 src/udev/keyboard-keys-from-name.h \
2496 src/udev/keyboard-keys-to-name.h \
2497 src/udev/net/link-config-gperf.c
2500 $(nodist_libudev_core_la_SOURCES)
2503 src/udev/keyboard-keys-from-name.gperf \
2504 src/udev/keyboard-keys.txt \
2505 src/udev/net/link-config-gperf.c
2508 src/udev/net/link-config-gperf.gperf
2510 libudev_core_la_CFLAGS = \
2515 libudev_core_la_LIBADD = \
2516 libudev-internal.la \
2517 libsystemd-label.la \
2518 libsystemd-daemon-internal.la \
2519 libsystemd-rtnl.la \
2520 libsystemd-id128-internal.la \
2521 libsystemd-shared.la \
2525 libudev_core_la_CPPFLAGS = \
2527 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2530 libudev_core_la_SOURCES += \
2531 src/udev/udev-builtin-firmware.c
2533 dist_udevrules_DATA += \
2534 rules/50-firmware.rules
2538 libudev_core_la_SOURCES += \
2539 src/udev/udev-builtin-kmod.c
2541 dist_udevrules_DATA += \
2542 rules/80-drivers.rules
2546 libudev_core_la_SOURCES += \
2547 src/udev/udev-builtin-blkid.c
2551 libudev_core_la_SOURCES += \
2552 src/udev/udev-builtin-uaccess.c \
2553 src/login/logind-acl.c \
2554 src/login/sd-login.c \
2555 src/systemd/sd-login.h \
2556 src/login/login-shared.c \
2557 src/login/login-shared.h
2559 libudev_core_la_LIBADD += \
2563 systemd_udevd_SOURCES = \
2566 systemd_udevd_LDADD = \
2570 src/udev/udevadm.c \
2571 src/udev/udevadm-info.c \
2572 src/udev/udevadm-control.c \
2573 src/udev/udevadm-monitor.c \
2574 src/udev/udevadm-hwdb.c \
2575 src/udev/udevadm-settle.c \
2576 src/udev/udevadm-trigger.c \
2577 src/udev/udevadm-test.c \
2578 src/udev/udevadm-test-builtin.c
2583 # Update hwdb on installation. Do not bother if installing
2584 # in DESTDIR, since this is likely for packaging purposes.
2586 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2588 INSTALL_DATA_HOOKS += \
2592 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2594 # ------------------------------------------------------------------------------
2603 test_libudev_SOURCES = \
2604 src/test/test-libudev.c
2606 test_libudev_LDADD = \
2607 libsystemd-label.la \
2608 libudev-internal.la \
2609 libsystemd-shared.la
2611 test_udev_SOURCES = \
2612 src/test/test-udev.c
2621 test_udev_LDADD += \
2628 # packed sysfs test tree
2630 $(AM_V_at)$(MKDIR_P) $(dir $@)
2631 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2635 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2640 test/rules-test.sh \
2641 test/rule-syntax-check.py
2643 # ------------------------------------------------------------------------------
2645 src/udev/ata_id/ata_id.c
2648 libudev-internal.la \
2649 libsystemd-shared.la
2651 udevlibexec_PROGRAMS += \
2654 # ------------------------------------------------------------------------------
2655 cdrom_id_SOURCES = \
2656 src/udev/cdrom_id/cdrom_id.c
2659 libudev-internal.la \
2660 libsystemd-shared.la
2662 udevlibexec_PROGRAMS += \
2665 dist_udevrules_DATA += \
2666 rules/60-cdrom_id.rules
2668 # ------------------------------------------------------------------------------
2670 src/udev/collect/collect.c
2673 libudev-internal.la \
2674 libsystemd-shared.la
2676 udevlibexec_PROGRAMS += \
2679 # ------------------------------------------------------------------------------
2681 src/udev/scsi_id/scsi_id.c \
2682 src/udev/scsi_id/scsi_serial.c \
2683 src/udev/scsi_id/scsi.h \
2684 src/udev/scsi_id/scsi_id.h
2687 libudev-internal.la \
2688 libsystemd-shared.la
2690 udevlibexec_PROGRAMS += \
2694 src/udev/scsi_id/README
2696 # ------------------------------------------------------------------------------
2698 src/udev/v4l_id/v4l_id.c
2703 udevlibexec_PROGRAMS += \
2706 dist_udevrules_DATA += \
2707 rules/60-persistent-v4l.rules
2709 # ------------------------------------------------------------------------------
2710 accelerometer_SOURCES = \
2711 src/udev/accelerometer/accelerometer.c
2713 accelerometer_LDADD = \
2714 libudev-internal.la -lm \
2715 libsystemd-shared.la
2717 udevlibexec_PROGRAMS += \
2720 dist_udevrules_DATA += \
2721 rules/61-accelerometer.rules
2723 # ------------------------------------------------------------------------------
2730 libgudev_includedir = \
2731 $(includedir)/gudev-1.0/gudev
2733 libgudev_include_HEADERS = \
2735 src/gudev/gudevenums.h \
2736 src/gudev/gudevenumtypes.h \
2737 src/gudev/gudevtypes.h \
2738 src/gudev/gudevclient.h \
2739 src/gudev/gudevdevice.h \
2740 src/gudev/gudevenumerator.h
2742 lib_LTLIBRARIES += libgudev-1.0.la
2744 pkgconfiglib_DATA += \
2745 src/gudev/gudev-1.0.pc
2748 src/gudev/gudev-1.0.pc
2750 libgudev_1_0_la_SOURCES = \
2751 src/gudev/gudevenums.h \
2752 src/gudev/gudevenumtypes.h \
2753 src/gudev/gudevenumtypes.h\
2754 src/gudev/gudevtypes.h \
2755 src/gudev/gudevclient.h \
2756 src/gudev/gudevclient.c \
2757 src/gudev/gudevdevice.h \
2758 src/gudev/gudevdevice.c \
2759 src/gudev/gudevenumerator.h \
2760 src/gudev/gudevenumerator.c \
2761 src/gudev/gudevprivate.h
2763 nodist_libgudev_1_0_la_SOURCES = \
2764 src/gudev/gudevmarshal.h \
2765 src/gudev/gudevmarshal.c \
2766 src/gudev/gudevenumtypes.h \
2767 src/gudev/gudevenumtypes.c
2770 $(nodist_libgudev_1_0_la_SOURCES)
2772 libgudev_1_0_la_CPPFLAGS = \
2774 -I$(top_builddir)/src\
2775 -I$(top_srcdir)/src\
2776 -I$(top_builddir)/src/gudev \
2777 -I$(top_srcdir)/src/gudev \
2778 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2779 -D_GUDEV_COMPILATION \
2780 -DG_LOG_DOMAIN=\"GUdev\"
2782 libgudev_1_0_la_CFLAGS = \
2784 -fvisibility=default \
2787 libgudev_1_0_la_LIBADD = \
2791 libgudev_1_0_la_LDFLAGS = \
2793 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2794 -export-dynamic -no-undefined \
2795 -export-symbols-regex '^g_udev_.*'
2797 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2798 $(AM_V_at)$(MKDIR_P) $(dir $@)
2799 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2801 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2802 $(AM_V_at)$(MKDIR_P) $(dir $@)
2803 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2804 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2806 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2807 $(AM_V_at)$(MKDIR_P) $(dir $@)
2808 $(AM_V_GEN)glib-mkenums --template $^ > $@
2810 if HAVE_INTROSPECTION
2811 -include $(INTROSPECTION_MAKEFILE)
2813 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2815 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2817 src_gudev_GUdev_1_0_gir_CFLAGS = \
2820 -D_GUDEV_COMPILATION \
2821 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2822 -I$(top_srcdir)/src \
2823 -I$(top_builddir)/src \
2824 -I$(top_srcdir)/src/gudev \
2825 -I$(top_builddir)/src/gudev
2827 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2829 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2830 --pkg-export=gudev-1.0 \
2833 src_gudev_GUdev_1_0_gir_FILES = \
2835 src/gudev/gudevtypes.h \
2836 src/gudev/gudevenums.h \
2837 src/gudev/gudevenumtypes.h \
2838 src/gudev/gudevclient.h \
2839 src/gudev/gudevdevice.h \
2840 src/gudev/gudevenumerator.h \
2841 src/gudev/gudevclient.c \
2842 src/gudev/gudevdevice.c \
2843 src/gudev/gudevenumerator.c
2845 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2846 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2848 girdir = $(datadir)/gir-1.0
2850 src/gudev/GUdev-1.0.gir
2852 typelibsdir = $(libdir)/girepository-1.0
2854 src/gudev/GUdev-1.0.typelib
2856 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2857 endif # HAVE_INTROSPECTION
2859 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2860 libgudev-install-hook:
2861 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2863 libgudev-uninstall-hook:
2864 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2866 INSTALL_EXEC_HOOKS += libgudev-install-hook
2867 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2871 src/gudev/gudev-1.0.pc.in \
2872 src/gudev/gudevmarshal.list \
2873 src/gudev/gudevenumtypes.h.template \
2874 src/gudev/gudevenumtypes.c.template \
2875 src/gudev/gjs-example.js \
2876 src/gudev/seed-example-enum.js \
2877 src/gudev/seed-example.js
2879 # ------------------------------------------------------------------------------
2880 mtd_probe_SOURCES = \
2881 src/udev/mtd_probe/mtd_probe.c \
2882 src/udev/mtd_probe/mtd_probe.h \
2883 src/udev/mtd_probe/probe_smartmedia.c
2885 dist_udevrules_DATA += \
2886 rules/75-probe_mtd.rules
2888 udevlibexec_PROGRAMS += \
2891 # ------------------------------------------------------------------------------
2892 libsystemd_id128_la_SOURCES = \
2893 src/libsystemd-id128/libsystemd-id128.sym \
2894 src/libsystemd-id128/sd-id128.c
2896 libsystemd_id128_la_CFLAGS = \
2900 libsystemd_id128_la_LDFLAGS = \
2902 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2903 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2905 libsystemd_id128_la_LIBADD = \
2906 libsystemd-daemon-internal.la \
2907 libsystemd-shared.la
2909 libsystemd_id128_internal_la_SOURCES = \
2910 $(libsystemd_id128_la_SOURCES)
2912 test_id128_SOURCES = \
2913 src/test/test-id128.c
2915 test_id128_LDADD = \
2916 libsystemd-id128-internal.la \
2917 libsystemd-daemon-internal.la \
2918 libsystemd-shared.la
2923 pkginclude_HEADERS += \
2924 src/systemd/sd-id128.h
2926 lib_LTLIBRARIES += \
2929 noinst_LTLIBRARIES += \
2930 libsystemd-id128-internal.la
2932 pkgconfiglib_DATA += \
2933 src/libsystemd-id128/libsystemd-id128.pc
2935 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2936 libsystemd-id128-install-hook:
2937 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2939 libsystemd-id128-uninstall-hook:
2940 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2942 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2943 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2946 src/libsystemd-id128/libsystemd-id128.pc.in
2948 # ------------------------------------------------------------------------------
2950 rootlibexec_PROGRAMS += \
2953 systemd_activate_SOURCES = \
2954 src/activate/activate.c
2956 systemd_activate_LDADD = \
2957 libsystemd-label.la \
2958 libsystemd-daemon-internal.la \
2959 libsystemd-shared.la
2961 # ------------------------------------------------------------------------------
2962 systemd_journald_SOURCES = \
2963 src/journal/journald.c \
2964 src/journal/journald-server.h
2966 systemd_journald_LDADD = \
2967 libsystemd-journal-core.la \
2968 libsystemd-bus-internal.la \
2969 libsystemd-shared.la
2971 systemd_cat_SOURCES = \
2974 systemd_cat_LDADD = \
2975 libsystemd-journal-core.la
2977 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2978 journalctl_CFLAGS = \
2981 journalctl_SOURCES = \
2982 src/journal/journalctl.c
2984 journalctl_LDADD = \
2985 libsystemd-journal-internal.la \
2986 libsystemd-id128-internal.la \
2987 libsystemd-logs.la \
2988 libsystemd-shared.la
2991 journalctl_LDADD += \
2996 journalctl_SOURCES += \
2997 src/journal/journal-qrcode.c \
2998 src/journal/journal-qrcode.h
3000 journalctl_CFLAGS += \
3003 journalctl_LDADD += \
3007 test_journal_SOURCES = \
3008 src/journal/test-journal.c
3010 test_journal_LDADD = \
3011 libsystemd-journal-core.la
3013 test_journal_send_SOURCES = \
3014 src/journal/test-journal-send.c
3016 test_journal_send_LDADD = \
3017 libsystemd-journal-core.la
3019 test_journal_syslog_SOURCES = \
3020 src/journal/test-journal-syslog.c
3022 test_journal_syslog_LDADD = \
3023 libsystemd-journal-core.la
3025 test_journal_match_SOURCES = \
3026 src/journal/test-journal-match.c
3028 test_journal_match_LDADD = \
3029 libsystemd-journal-core.la
3031 test_journal_enum_SOURCES = \
3032 src/journal/test-journal-enum.c
3034 test_journal_enum_LDADD = \
3035 libsystemd-journal-core.la
3037 test_journal_stream_SOURCES = \
3038 src/journal/test-journal-stream.c
3040 test_journal_stream_LDADD = \
3041 libsystemd-journal-core.la
3043 test_journal_flush_SOURCES = \
3044 src/journal/test-journal-flush.c
3046 test_journal_flush_LDADD = \
3047 libsystemd-journal-core.la
3049 test_journal_init_SOURCES = \
3050 src/journal/test-journal-init.c
3052 test_journal_init_LDADD = \
3053 libsystemd-journal-core.la
3055 test_journal_verify_SOURCES = \
3056 src/journal/test-journal-verify.c
3058 test_journal_verify_LDADD = \
3059 libsystemd-journal-core.la
3061 test_journal_interleaving_SOURCES = \
3062 src/journal/test-journal-interleaving.c
3064 test_journal_interleaving_LDADD = \
3065 libsystemd-journal-core.la
3067 test_mmap_cache_SOURCES = \
3068 src/journal/test-mmap-cache.c
3070 test_mmap_cache_LDADD = \
3071 libsystemd-journal-core.la
3073 test_catalog_SOURCES = \
3074 src/journal/test-catalog.c
3076 test_catalog_CPPFLAGS = \
3078 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3080 test_catalog_LDADD = \
3081 libsystemd-journal-core.la
3083 libsystemd_journal_la_SOURCES = \
3084 src/journal/libsystemd-journal.sym \
3085 src/journal/sd-journal.c \
3086 src/systemd/sd-journal.h \
3087 src/systemd/_sd-common.h \
3088 src/journal/journal-file.c \
3089 src/journal/journal-file.h \
3090 src/journal/journal-vacuum.c \
3091 src/journal/journal-vacuum.h \
3092 src/journal/journal-verify.c \
3093 src/journal/journal-verify.h \
3094 src/journal/lookup3.c \
3095 src/journal/lookup3.h \
3096 src/journal/journal-send.c \
3097 src/journal/journal-def.h \
3098 src/journal/compress.h \
3099 src/journal/catalog.c \
3100 src/journal/catalog.h \
3101 src/journal/mmap-cache.c \
3102 src/journal/mmap-cache.h
3104 libsystemd_journal_la_CFLAGS = \
3108 libsystemd_journal_la_LDFLAGS = \
3110 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
3111 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
3113 libsystemd_journal_la_LIBADD = \
3114 libsystemd-label.la \
3115 libsystemd-daemon-internal.la \
3116 libsystemd-id128-internal.la \
3117 libsystemd-shared.la
3119 libsystemd_journal_internal_la_SOURCES = \
3120 $(libsystemd_journal_la_SOURCES)
3122 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3123 libsystemd_journal_internal_la_CFLAGS = \
3126 libsystemd_journal_internal_la_LIBADD =
3129 libsystemd_journal_la_SOURCES += \
3130 src/journal/compress.c
3132 libsystemd_journal_la_CFLAGS += \
3135 libsystemd_journal_la_LIBADD += \
3138 libsystemd_journal_internal_la_CFLAGS += \
3141 libsystemd_journal_internal_la_LIBADD += \
3145 libsystemd_journal_core_la_SOURCES = \
3146 src/journal/journald-kmsg.c \
3147 src/journal/journald-kmsg.h \
3148 src/journal/journald-syslog.c \
3149 src/journal/journald-syslog.h \
3150 src/journal/journald-stream.c \
3151 src/journal/journald-stream.h \
3152 src/journal/journald-server.c \
3153 src/journal/journald-server.h \
3154 src/journal/journald-console.c \
3155 src/journal/journald-console.h \
3156 src/journal/journald-native.c \
3157 src/journal/journald-native.h \
3158 src/journal/journald-rate-limit.c \
3159 src/journal/journald-rate-limit.h \
3160 src/journal/journal-internal.h
3162 nodist_libsystemd_journal_core_la_SOURCES = \
3163 src/journal/journald-gperf.c
3165 libsystemd_journal_core_la_LIBADD = \
3166 libsystemd-journal-internal.la \
3167 libudev-internal.la \
3168 libsystemd-capability.la \
3169 libsystemd-label.la \
3170 libsystemd-daemon-internal.la \
3171 libsystemd-id128-internal.la \
3172 libsystemd-shared.la
3175 libsystemd_journal_core_la_LIBADD += \
3176 libsystemd-login-internal.la
3180 libsystemd_journal_core_la_LIBADD += \
3184 noinst_LTLIBRARIES += \
3185 libsystemd-journal-core.la
3188 libsystemd_journal_la_SOURCES += \
3189 src/journal/journal-authenticate.c \
3190 src/journal/journal-authenticate.h \
3191 src/journal/fsprg.c \
3194 libsystemd_journal_la_CFLAGS += \
3198 libsystemd_journal_la_LIBADD += \
3201 libsystemd_journal_internal_la_CFLAGS += \
3205 libsystemd_journal_internal_la_LIBADD += \
3209 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3210 # needed. Also, grant read access to new journal files to members of
3211 # "adm" and "wheel".
3212 libsystemd-journal-install-hook:
3213 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3214 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3215 -chown 0:0 $(DESTDIR)/var/log/journal
3216 -chmod 755 $(DESTDIR)/var/log/journal
3217 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3218 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3220 libsystemd-journal-uninstall-hook:
3221 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3223 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3224 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3226 # ------------------------------------------------------------------------------
3228 # Update catalog on installation. Do not bother if installing
3229 # in DESTDIR, since this is likely for packaging purposes.
3230 catalog-update-hook:
3231 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3233 INSTALL_DATA_HOOKS += \
3236 catalog-remove-hook:
3237 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3239 UNINSTALL_DATA_HOOKS += \
3248 test-journal-syslog \
3249 test-journal-match \
3250 test-journal-stream \
3252 test-journal-verify \
3253 test-journal-interleaving \
3254 test-journal-flush \
3258 pkginclude_HEADERS += \
3259 src/systemd/sd-journal.h \
3260 src/systemd/sd-messages.h \
3261 src/systemd/_sd-common.h
3263 lib_LTLIBRARIES += \
3264 libsystemd-journal.la
3266 noinst_LTLIBRARIES += \
3267 libsystemd-journal-internal.la
3269 rootlibexec_PROGRAMS += \
3272 rootbin_PROGRAMS += \
3278 dist_systemunit_DATA += \
3279 units/systemd-journald.socket
3281 nodist_systemunit_DATA += \
3282 units/systemd-journald.service \
3283 units/systemd-journal-flush.service
3285 dist_pkgsysconf_DATA += \
3286 src/journal/journald.conf
3288 pkgconfiglib_DATA += \
3289 src/journal/libsystemd-journal.pc
3291 dist_catalog_DATA = \
3292 catalog/systemd.fr.catalog \
3293 catalog/systemd.ru.catalog \
3294 catalog/systemd.it.catalog \
3295 catalog/systemd.catalog
3297 SOCKETS_TARGET_WANTS += \
3298 systemd-journald.socket
3299 SYSINIT_TARGET_WANTS += \
3300 systemd-journald.service \
3301 systemd-journal-flush.service
3304 src/journal/libsystemd-journal.pc.in \
3305 units/systemd-journald.service.in \
3306 units/systemd-journal-flush.service.in \
3307 src/journal/journald-gperf.gperf
3310 src/journal/journald-gperf.c
3312 # ------------------------------------------------------------------------------
3314 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3316 rootlibexec_PROGRAMS += \
3317 systemd-journal-gatewayd
3319 systemd_journal_gatewayd_SOURCES = \
3320 src/journal/journal-gatewayd.c \
3321 src/journal/microhttpd-util.h \
3322 src/journal/microhttpd-util.c
3324 systemd_journal_gatewayd_LDADD = \
3325 libsystemd-logs.la \
3326 libsystemd-journal-internal.la \
3327 libsystemd-id128-internal.la \
3328 libsystemd-daemon-internal.la \
3329 libsystemd-bus-internal.la \
3330 libsystemd-shared.la \
3333 systemd_journal_gatewayd_CFLAGS = \
3335 $(MICROHTTPD_CFLAGS)
3337 systemd_journal_gatewayd_CPPFLAGS = \
3339 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3341 dist_systemunit_DATA += \
3342 units/systemd-journal-gatewayd.socket
3344 nodist_systemunit_DATA += \
3345 units/systemd-journal-gatewayd.service
3347 dist_gatewayddocumentroot_DATA = \
3348 src/journal/browse.html
3353 units/systemd-journal-gatewayd.service.in
3355 # ------------------------------------------------------------------------------
3357 systemd_socket_proxyd_SOURCES = \
3358 src/socket-proxy/socket-proxyd.c
3360 systemd_socket_proxyd_LDADD = \
3361 libsystemd-logs.la \
3362 libsystemd-bus-internal.la \
3363 libsystemd-journal-internal.la \
3364 libsystemd-id128-internal.la \
3365 libsystemd-daemon-internal.la \
3366 libsystemd-shared.la
3368 # ------------------------------------------------------------------------------
3370 systemd_coredump_SOURCES = \
3371 src/journal/coredump.c
3373 systemd_coredump_LDADD = \
3374 libsystemd-journal-internal.la \
3375 libsystemd-label.la \
3376 libsystemd-shared.la
3379 systemd_coredump_LDADD += \
3380 libsystemd-login-internal.la
3383 rootlibexec_PROGRAMS += \
3386 systemd_coredumpctl_SOURCES = \
3387 src/journal/coredumpctl.c
3389 systemd_coredumpctl_LDADD = \
3390 libsystemd-journal-internal.la \
3391 libsystemd-id128-internal.la \
3392 libsystemd-shared.la
3397 dist_bashcompletion_DATA += \
3398 shell-completion/bash/systemd-coredumpctl
3400 dist_zshcompletion_DATA += \
3401 shell-completion/zsh/_systemd-coredumpctl
3404 sysctl.d/50-coredump.conf
3407 sysctl.d/50-coredump.conf
3411 sysctl.d/50-coredump.conf.in
3413 # ------------------------------------------------------------------------------
3415 systemd_binfmt_SOURCES = \
3418 systemd_binfmt_LDADD = \
3419 libsystemd-shared.la
3421 rootlibexec_PROGRAMS += \
3424 dist_systemunit_DATA += \
3425 units/proc-sys-fs-binfmt_misc.automount \
3426 units/proc-sys-fs-binfmt_misc.mount
3428 nodist_systemunit_DATA += \
3429 units/systemd-binfmt.service
3432 $(prefix)/lib/binfmt.d \
3433 $(sysconfdir)/binfmt.d
3435 SYSINIT_TARGET_WANTS += \
3436 systemd-binfmt.service \
3437 proc-sys-fs-binfmt_misc.automount
3442 units/systemd-binfmt.service.in
3444 # ------------------------------------------------------------------------------
3446 systemd_vconsole_setup_SOURCES = \
3447 src/vconsole/vconsole-setup.c
3449 systemd_vconsole_setup_LDADD = \
3450 libsystemd-shared.la
3452 rootlibexec_PROGRAMS += \
3453 systemd-vconsole-setup
3455 nodist_systemunit_DATA += \
3456 units/systemd-vconsole-setup.service
3458 SYSINIT_TARGET_WANTS += \
3459 systemd-vconsole-setup.service
3463 units/systemd-vconsole-setup.service.in
3465 # ------------------------------------------------------------------------------
3467 systemd_readahead_SOURCES = \
3468 src/readahead/readahead.c \
3469 src/readahead/readahead-collect.c \
3470 src/readahead/readahead-replay.c \
3471 src/readahead/readahead-analyze.c \
3472 src/readahead/readahead-common.c \
3473 src/readahead/readahead-common.h
3475 systemd_readahead_LDADD = \
3476 libsystemd-daemon-internal.la \
3477 libudev-internal.la \
3478 libsystemd-shared.la
3481 src/readahead/sd-readahead.c \
3482 src/systemd/sd-readahead.h
3484 rootlibexec_PROGRAMS += \
3487 dist_systemunit_DATA += \
3488 units/systemd-readahead-drop.service \
3489 units/systemd-readahead-done.timer
3491 nodist_systemunit_DATA += \
3492 units/systemd-readahead-collect.service \
3493 units/systemd-readahead-replay.service \
3494 units/systemd-readahead-done.service
3499 units/systemd-readahead-collect.service.in \
3500 units/systemd-readahead-replay.service.in \
3501 units/systemd-readahead-done.service.in
3503 # ------------------------------------------------------------------------------
3505 systemd_bootchart_SOURCES = \
3506 src/bootchart/bootchart.c \
3507 src/bootchart/bootchart.h \
3508 src/bootchart/store.c \
3509 src/bootchart/store.h \
3510 src/bootchart/svg.c \
3513 systemd_bootchart_LDADD = \
3514 libsystemd-journal-internal.la \
3515 libsystemd-shared.la
3517 rootlibexec_PROGRAMS += \
3520 dist_pkgsysconf_DATA += \
3521 src/bootchart/bootchart.conf
3524 # ------------------------------------------------------------------------------
3525 if ENABLE_QUOTACHECK
3526 rootlibexec_PROGRAMS += \
3529 nodist_systemunit_DATA += \
3530 units/systemd-quotacheck.service
3532 systemd_quotacheck_SOURCES = \
3533 src/quotacheck/quotacheck.c
3535 systemd_quotacheck_LDADD = \
3536 libsystemd-shared.la
3540 units/systemd-quotacheck.service.in
3542 nodist_systemunit_DATA += \
3543 units/quotaon.service
3545 # ------------------------------------------------------------------------------
3546 if ENABLE_RANDOMSEED
3547 rootlibexec_PROGRAMS += \
3550 nodist_systemunit_DATA += \
3551 units/systemd-random-seed.service
3553 systemd_random_seed_SOURCES = \
3554 src/random-seed/random-seed.c
3556 systemd_random_seed_LDADD = \
3557 libsystemd-label.la \
3558 libsystemd-shared.la
3560 SYSINIT_TARGET_WANTS += \
3561 systemd-random-seed.service
3566 units/systemd-random-seed.service.in
3568 # ------------------------------------------------------------------------------
3570 rootlibexec_PROGRAMS += \
3573 nodist_systemunit_DATA += \
3574 units/systemd-backlight@.service
3576 systemd_backlight_SOURCES = \
3577 src/backlight/backlight.c
3579 systemd_backlight_LDADD = \
3580 libsystemd-label.la \
3581 libudev-internal.la \
3582 libsystemd-shared.la
3586 units/systemd-backlight@.service.in
3588 # ------------------------------------------------------------------------------
3590 rootlibexec_PROGRAMS += \
3593 nodist_systemunit_DATA += \
3594 units/systemd-rfkill@.service
3596 systemd_rfkill_SOURCES = \
3599 systemd_rfkill_LDADD = \
3600 libsystemd-label.la \
3601 libudev-internal.la \
3602 libsystemd-shared.la
3606 units/systemd-rfkill@.service.in
3608 # ------------------------------------------------------------------------------
3609 if HAVE_LIBCRYPTSETUP
3610 rootlibexec_PROGRAMS += \
3613 systemgenerator_PROGRAMS += \
3614 systemd-cryptsetup-generator
3616 dist_systemunit_DATA += \
3617 units/cryptsetup.target
3619 systemd_cryptsetup_SOURCES = \
3620 src/cryptsetup/cryptsetup.c
3622 systemd_cryptsetup_CFLAGS = \
3624 $(LIBCRYPTSETUP_CFLAGS)
3626 systemd_cryptsetup_LDADD = \
3627 libsystemd-label.la \
3628 libudev-internal.la \
3629 libsystemd-shared.la \
3630 $(LIBCRYPTSETUP_LIBS)
3632 systemd_cryptsetup_generator_SOURCES = \
3633 src/cryptsetup/cryptsetup-generator.c
3635 systemd_cryptsetup_generator_LDADD = \
3636 libsystemd-label.la \
3637 libsystemd-shared.la
3639 SYSINIT_TARGET_WANTS += \
3644 # ------------------------------------------------------------------------------
3646 systemd_hostnamed_SOURCES = \
3647 src/hostname/hostnamed.c
3649 systemd_hostnamed_LDADD = \
3650 libsystemd-label.la \
3651 libsystemd-bus-internal.la \
3652 libsystemd-id128-internal.la \
3653 libsystemd-daemon-internal.la \
3654 libsystemd-shared.la
3656 rootlibexec_PROGRAMS += \
3659 nodist_systemunit_DATA += \
3660 units/systemd-hostnamed.service
3662 dist_systemunit_DATA += \
3663 units/org.freedesktop.hostname1.busname
3665 dist_dbuspolicy_DATA += \
3666 src/hostname/org.freedesktop.hostname1.conf
3668 dist_dbussystemservice_DATA += \
3669 src/hostname/org.freedesktop.hostname1.service
3671 polkitpolicy_files += \
3672 src/hostname/org.freedesktop.hostname1.policy
3674 SYSTEM_UNIT_ALIASES += \
3675 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3677 BUSNAMES_TARGET_WANTS += \
3678 org.freedesktop.hostname1.busname
3680 hostnamectl_SOURCES = \
3681 src/hostname/hostnamectl.c
3683 hostnamectl_LDADD = \
3684 libsystemd-bus-internal.la \
3685 libsystemd-id128-internal.la \
3686 libsystemd-daemon-internal.la \
3687 libsystemd-shared.la
3692 dist_bashcompletion_DATA += \
3693 shell-completion/bash/hostnamectl
3695 dist_zshcompletion_DATA += \
3696 shell-completion/zsh/_hostnamectl
3700 polkitpolicy_in_files += \
3701 src/hostname/org.freedesktop.hostname1.policy.in
3704 units/systemd-hostnamed.service.in
3706 # ------------------------------------------------------------------------------
3708 systemd_localed_SOURCES = \
3709 src/locale/localed.c
3711 systemd_localed_LDADD = \
3712 libsystemd-label.la \
3713 libsystemd-bus-internal.la \
3714 libsystemd-id128-internal.la \
3715 libsystemd-daemon-internal.la \
3716 libsystemd-shared.la
3718 nodist_systemunit_DATA += \
3719 units/systemd-localed.service
3721 dist_systemunit_DATA += \
3722 units/org.freedesktop.locale1.busname
3724 rootlibexec_PROGRAMS += \
3727 dist_dbuspolicy_DATA += \
3728 src/locale/org.freedesktop.locale1.conf
3730 dist_dbussystemservice_DATA += \
3731 src/locale/org.freedesktop.locale1.service
3733 polkitpolicy_files += \
3734 src/locale/org.freedesktop.locale1.policy
3736 SYSTEM_UNIT_ALIASES += \
3737 systemd-localed.service dbus-org.freedesktop.locale1.service
3739 BUSNAMES_TARGET_WANTS += \
3740 org.freedesktop.locale1.busname
3742 dist_pkgdata_DATA += \
3743 src/locale/kbd-model-map
3745 dist_noinst_SCRIPT = \
3746 src/locale/generate-kbd-model-map
3748 update-kbd-model-map: src/locale/generate-kbd-model-map
3749 $PYTHON $< > src/locale/kbd-model-map
3751 localectl_SOURCES = \
3752 src/locale/localectl.c
3755 libsystemd-bus-internal.la \
3756 libsystemd-id128-internal.la \
3757 libsystemd-daemon-internal.la \
3758 libsystemd-shared.la
3763 dist_bashcompletion_DATA += \
3764 shell-completion/bash/localectl
3766 dist_zshcompletion_DATA += \
3767 shell-completion/zsh/_localectl
3771 polkitpolicy_in_files += \
3772 src/locale/org.freedesktop.locale1.policy.in
3775 units/systemd-localed.service.in
3777 # ------------------------------------------------------------------------------
3779 systemd_timedated_SOURCES = \
3780 src/timedate/timedated.c
3782 systemd_timedated_LDADD = \
3783 libsystemd-label.la \
3784 libsystemd-bus-internal.la \
3785 libsystemd-id128-internal.la \
3786 libsystemd-daemon-internal.la \
3787 libsystemd-shared.la
3789 rootlibexec_PROGRAMS += \
3792 dist_dbussystemservice_DATA += \
3793 src/timedate/org.freedesktop.timedate1.service
3795 dist_dbuspolicy_DATA += \
3796 src/timedate/org.freedesktop.timedate1.conf
3798 nodist_systemunit_DATA += \
3799 units/systemd-timedated.service
3801 dist_systemunit_DATA += \
3802 units/org.freedesktop.timedate1.busname
3804 polkitpolicy_files += \
3805 src/timedate/org.freedesktop.timedate1.policy
3808 $(prefix)/lib/systemd/ntp-units.d \
3809 $(sysconfdir)/systemd/ntp-units.d
3811 SYSTEM_UNIT_ALIASES += \
3812 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3814 BUSNAMES_TARGET_WANTS += \
3815 org.freedesktop.timedate1.busname
3817 timedatectl_SOURCES = \
3818 src/timedate/timedatectl.c
3820 timedatectl_LDADD = \
3821 libsystemd-bus-internal.la \
3822 libsystemd-id128-internal.la \
3823 libsystemd-daemon-internal.la \
3824 libsystemd-shared.la
3829 dist_bashcompletion_DATA += \
3830 shell-completion/bash/timedatectl
3832 dist_zshcompletion_DATA += \
3833 shell-completion/zsh/_timedatectl
3836 polkitpolicy_in_files += \
3837 src/timedate/org.freedesktop.timedate1.policy.in
3840 units/systemd-timedated.service.in
3842 # ------------------------------------------------------------------------------
3844 libnss_myhostname_la_SOURCES = \
3845 src/nss-myhostname/nss-myhostname.c \
3846 src/nss-myhostname/ifconf.h \
3847 src/nss-myhostname/netlink.c
3849 libnss_myhostname_la_LDFLAGS = \
3857 lib_LTLIBRARIES += \
3858 libnss_myhostname.la
3861 # ------------------------------------------------------------------------------
3862 libsystemd_dhcp_la_SOURCES = \
3863 src/systemd/sd-dhcp-client.h \
3864 src/libsystemd-dhcp/dhcp-protocol.h \
3865 src/libsystemd-dhcp/dhcp-internal.h \
3866 src/libsystemd-dhcp/dhcp-network.c \
3867 src/libsystemd-dhcp/dhcp-option.c \
3868 src/libsystemd-dhcp/dhcp-client.c
3870 noinst_LTLIBRARIES += \
3873 libsystemd_dhcp_la_LIBADD = \
3874 libsystemd-shared.la \
3877 test_dhcp_option_SOURCES = \
3878 src/libsystemd-dhcp/dhcp-protocol.h \
3879 src/libsystemd-dhcp/dhcp-internal.h \
3880 src/libsystemd-dhcp/test-dhcp-option.c
3882 test_dhcp_option_LDADD = \
3883 libsystemd-dhcp.la \
3884 libsystemd-shared.la
3886 test_dhcp_client_SOURCES = \
3887 src/libsystemd-dhcp/dhcp-protocol.h \
3888 src/systemd/sd-dhcp-client.h \
3889 src/libsystemd-dhcp/dhcp-internal.h \
3890 src/libsystemd-dhcp/test-dhcp-client.c
3892 test_dhcp_client_LDADD = \
3893 libsystemd-dhcp.la \
3894 libsystemd-shared.la \
3901 # ------------------------------------------------------------------------------
3903 systemd_machined_SOURCES = \
3904 src/machine/machined.c \
3905 src/machine/machined.h
3907 systemd_machined_LDADD = \
3908 libsystemd-machine-core.la
3910 rootlibexec_PROGRAMS += \
3913 libsystemd_machine_core_la_SOURCES = \
3914 src/machine/machined-dbus.c \
3915 src/machine/machine.c \
3916 src/machine/machine.h \
3917 src/machine/machine-dbus.c
3919 libsystemd_machine_core_la_LIBADD = \
3920 libsystemd-label.la \
3921 libsystemd-daemon-internal.la \
3922 libsystemd-bus-internal.la \
3923 libsystemd-id128-internal.la \
3924 libudev-internal.la \
3925 libsystemd-shared.la
3927 noinst_LTLIBRARIES += \
3928 libsystemd-machine-core.la
3930 machinectl_SOURCES = \
3931 src/machine/machinectl.c
3933 machinectl_LDADD = \
3934 libsystemd-bus-internal.la \
3935 libsystemd-id128-internal.la \
3936 libsystemd-daemon-internal.la \
3937 libsystemd-shared.la
3939 rootbin_PROGRAMS += \
3942 test_machine_tables_SOURCES = \
3943 src/machine/test-machine-tables.c
3945 test_machine_tables_LDADD = \
3946 libsystemd-machine-core.la
3951 nodist_systemunit_DATA += \
3952 units/systemd-machined.service
3954 dist_systemunit_DATA += \
3955 units/machine.slice \
3956 units/org.freedesktop.machine1.busname
3958 dist_dbussystemservice_DATA += \
3959 src/machine/org.freedesktop.machine1.service
3961 dist_dbuspolicy_DATA += \
3962 src/machine/org.freedesktop.machine1.conf
3964 dist_zshcompletion_DATA += \
3965 shell-completion/zsh/_machinectl
3967 SYSTEM_UNIT_ALIASES += \
3968 systemd-machined.service dbus-org.freedesktop.machine1.service
3970 BUSNAMES_TARGET_WANTS += \
3971 org.freedesktop.machine1.busname
3974 units/systemd-machined.service.in
3978 # ------------------------------------------------------------------------------
3980 rootlibexec_PROGRAMS += \
3983 systemd_networkd_SOURCES = \
3984 src/network/networkd.h \
3985 src/network/networkd.c \
3986 src/network/networkd-link.c \
3987 src/network/networkd-bridge.c \
3988 src/network/networkd-network.c \
3989 src/network/networkd-address.c \
3990 src/network/networkd-route.c \
3991 src/network/networkd-manager.c
3993 nodist_systemd_networkd_SOURCES = \
3994 src/network/networkd-gperf.c
3996 systemd_networkd_LDADD = \
3997 libudev-internal.la \
3998 libsystemd-daemon-internal.la \
3999 libsystemd-bus-internal.la \
4000 libsystemd-id128-internal.la \
4001 libsystemd-rtnl.la \
4002 libsystemd-shared.la
4004 nodist_systemunit_DATA += \
4005 units/systemd-networkd.service
4007 MULTI_USER_TARGET_WANTS += \
4008 systemd-networkd.service
4010 test_network_SOURCES = \
4011 src/network/test-network.c \
4012 src/network/networkd.h \
4013 src/network/networkd-link.c \
4014 src/network/networkd-bridge.c \
4015 src/network/networkd-network.c \
4016 src/network/networkd-address.c \
4017 src/network/networkd-route.c \
4018 src/network/networkd-manager.c \
4019 src/network/networkd-gperf.c
4021 test_network_LDADD = \
4022 libudev-internal.la \
4023 libsystemd-bus-internal.la \
4024 libsystemd-id128-internal.la \
4025 libsystemd-daemon-internal.la \
4026 libsystemd-rtnl.la \
4027 libsystemd-shared.la
4033 src/network/networkd-gperf.gperf \
4034 units/systemd-networkd.service.in
4037 src/network/networkd-gperf.c
4040 # ------------------------------------------------------------------------------
4042 systemd_logind_SOURCES = \
4043 src/login/logind.c \
4046 nodist_systemd_logind_SOURCES = \
4047 src/login/logind-gperf.c
4049 systemd_logind_LDADD = \
4050 libsystemd-logind-core.la
4052 libsystemd_logind_core_la_SOURCES = \
4053 src/login/logind-core.c \
4054 src/login/logind-device.c \
4055 src/login/logind-device.h \
4056 src/login/logind-button.c \
4057 src/login/logind-button.h \
4058 src/login/logind-action.c \
4059 src/login/logind-action.h \
4060 src/login/logind-seat.c \
4061 src/login/logind-seat.h \
4062 src/login/logind-session.c \
4063 src/login/logind-session.h \
4064 src/login/logind-session-device.c \
4065 src/login/logind-session-device.h \
4066 src/login/logind-user.c \
4067 src/login/logind-user.h \
4068 src/login/logind-inhibit.c \
4069 src/login/logind-inhibit.h \
4070 src/login/logind-dbus.c \
4071 src/login/logind-session-dbus.c \
4072 src/login/logind-seat-dbus.c \
4073 src/login/logind-user-dbus.c \
4074 src/login/logind-acl.h \
4075 src/login/login-shared.c \
4076 src/login/login-shared.h
4078 libsystemd_logind_core_la_LIBADD = \
4079 libsystemd-label.la \
4080 libsystemd-capability.la \
4081 libsystemd-daemon-internal.la \
4082 libsystemd-id128-internal.la \
4083 libsystemd-bus-internal.la \
4084 libudev-internal.la \
4085 libsystemd-shared.la
4088 libsystemd_logind_core_la_SOURCES += \
4089 src/login/logind-acl.c
4091 libsystemd_logind_core_la_LIBADD += \
4095 noinst_LTLIBRARIES += \
4096 libsystemd-logind-core.la
4098 systemd_user_sessions_SOURCES = \
4099 src/login/user-sessions.c
4101 systemd_user_sessions_LDADD = \
4102 libsystemd-shared.la
4104 rootlibexec_PROGRAMS += \
4106 systemd-user-sessions
4108 loginctl_SOURCES = \
4109 src/login/loginctl.c \
4110 src/login/sysfs-show.c
4113 libsystemd-bus-internal.la \
4114 libudev-internal.la \
4115 libsystemd-shared.la \
4116 libsystemd-id128-internal.la \
4117 libsystemd-daemon-internal.la
4119 rootbin_PROGRAMS += \
4122 dist_bashcompletion_DATA += \
4123 shell-completion/bash/loginctl
4125 dist_zshcompletion_DATA += \
4126 shell-completion/zsh/_loginctl \
4127 shell-completion/zsh/_systemd-inhibit
4129 systemd_inhibit_SOURCES = \
4132 systemd_inhibit_LDADD = \
4133 libsystemd-bus-internal.la \
4134 libsystemd-id128-internal.la \
4135 libsystemd-daemon-internal.la \
4136 libsystemd-shared.la
4138 rootbin_PROGRAMS += \
4141 test_login_SOURCES = \
4142 src/login/test-login.c
4144 test_login_LDADD = \
4145 libsystemd-login-internal.la \
4146 libsystemd-shared.la
4148 test_login_shared_SOURCES = \
4149 src/login/test-login-shared.c
4151 test_login_shared_LDADD = \
4152 libsystemd-login-internal.la \
4153 libsystemd-shared.la
4155 test_inhibit_SOURCES = \
4156 src/login/test-inhibit.c
4158 test_inhibit_LDADD = \
4159 libsystemd-bus-internal.la \
4160 libsystemd-daemon-internal.la \
4161 libsystemd-id128-internal.la \
4162 libsystemd-shared.la
4164 test_login_tables_SOURCES = \
4165 src/login/test-login-tables.c
4167 test_login_tables_LDADD = \
4168 libsystemd-logind-core.la
4178 libsystemd_login_la_SOURCES = \
4179 src/login/libsystemd-login.sym \
4180 src/login/sd-login.c \
4181 src/systemd/sd-login.h \
4182 src/login/login-shared.c \
4183 src/login/login-shared.h
4185 libsystemd_login_la_CFLAGS = \
4189 libsystemd_login_la_LDFLAGS = \
4191 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4192 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
4194 libsystemd_login_la_LIBADD = \
4195 libsystemd-daemon-internal.la \
4196 libsystemd-shared.la
4198 libsystemd_login_internal_la_SOURCES = \
4199 $(libsystemd_login_la_SOURCES)
4202 pam_systemd_la_SOURCES = \
4203 src/login/pam-module.c
4205 pam_systemd_la_CFLAGS = \
4210 pam_systemd_la_LDFLAGS = \
4216 -export-symbols-regex '^pam_sm_.*'
4218 pam_systemd_la_LIBADD = \
4219 libsystemd-capability.la \
4220 libsystemd-bus-internal.la \
4221 libsystemd-id128-internal.la \
4222 libsystemd-daemon-internal.la \
4223 libsystemd-shared.la \
4226 pamlib_LTLIBRARIES = \
4229 dist_pamconf_DATA = \
4230 src/login/systemd-user
4233 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4234 libsystemd-login-install-hook:
4235 libname=libsystemd-login.so && $(move-to-rootlibdir)
4237 libsystemd-login-uninstall-hook:
4238 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4240 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
4241 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
4243 nodist_systemunit_DATA += \
4244 units/systemd-logind.service \
4245 units/systemd-user-sessions.service
4247 dist_systemunit_DATA += \
4249 units/org.freedesktop.login1.busname
4251 dist_dbussystemservice_DATA += \
4252 src/login/org.freedesktop.login1.service
4254 dist_dbuspolicy_DATA += \
4255 src/login/org.freedesktop.login1.conf
4257 dist_pkgsysconf_DATA += \
4258 src/login/logind.conf
4260 pkginclude_HEADERS += \
4261 src/systemd/sd-login.h
4263 lib_LTLIBRARIES += \
4266 noinst_LTLIBRARIES += \
4267 libsystemd-login-internal.la
4269 pkgconfiglib_DATA += \
4270 src/login/libsystemd-login.pc
4272 polkitpolicy_files += \
4273 src/login/org.freedesktop.login1.policy
4278 MULTI_USER_TARGET_WANTS += \
4279 systemd-logind.service \
4280 systemd-user-sessions.service
4282 SYSTEM_UNIT_ALIASES += \
4283 systemd-logind.service dbus-org.freedesktop.login1.service
4285 BUSNAMES_TARGET_WANTS += \
4286 org.freedesktop.login1.busname
4288 if ENABLE_MULTI_SEAT_X
4290 systemd_multi_seat_x_SOURCES = \
4291 src/login/multi-seat-x.c
4293 systemd_multi_seat_x_LDADD = \
4294 libsystemd-label.la \
4295 libsystemd-shared.la
4297 rootlibexec_PROGRAMS += \
4298 systemd-multi-seat-x
4302 dist_udevrules_DATA += \
4303 src/login/70-uaccess.rules \
4304 src/login/70-power-switch.rules
4306 nodist_udevrules_DATA += \
4307 src/login/71-seat.rules \
4308 src/login/73-seat-late.rules
4311 src/login/logind-gperf.c \
4312 src/login/71-seat.rules \
4313 src/login/73-seat-late.rules
4316 polkitpolicy_in_files += \
4317 src/login/org.freedesktop.login1.policy.in
4320 src/login/logind-gperf.gperf \
4321 src/login/libsystemd-login.pc.in \
4322 src/login/71-seat.rules.in \
4323 src/login/73-seat-late.rules.in \
4324 units/systemd-logind.service.in \
4325 units/systemd-user-sessions.service.in
4327 # ------------------------------------------------------------------------------
4328 if HAVE_PYTHON_DEVEL
4329 pkgpyexec_LTLIBRARIES = \
4336 _journal_la_SOURCES = \
4337 src/python-systemd/_journal.c
4339 _journal_la_CFLAGS = \
4341 -fvisibility=default \
4342 $(PYTHON_DEVEL_CFLAGS)
4344 _journal_la_LDFLAGS = \
4350 _journal_la_LIBADD = \
4351 $(PYTHON_DEVEL_LIBS) \
4352 libsystemd-journal.la
4354 id128_la_SOURCES = \
4355 src/python-systemd/id128.c \
4356 src/python-systemd/id128-constants.h \
4357 src/python-systemd/pyutil.c \
4358 src/python-systemd/pyutil.h
4362 -fvisibility=default \
4363 $(PYTHON_DEVEL_CFLAGS) \
4364 -I$(top_builddir)/src/python-systemd
4366 id128_la_LDFLAGS = \
4373 $(PYTHON_DEVEL_LIBS) \
4376 _daemon_la_SOURCES = \
4377 src/python-systemd/_daemon.c \
4378 src/python-systemd/pyutil.c \
4379 src/python-systemd/pyutil.h
4381 _daemon_la_CFLAGS = \
4383 -fvisibility=default \
4384 $(PYTHON_DEVEL_CFLAGS) \
4385 -I$(top_builddir)/src/python-systemd
4387 _daemon_la_LDFLAGS = \
4393 _daemon_la_LIBADD = \
4394 $(PYTHON_DEVEL_LIBS) \
4395 libsystemd-daemon.la
4397 _reader_la_SOURCES = \
4398 src/python-systemd/_reader.c \
4399 src/python-systemd/pyutil.c \
4400 src/python-systemd/pyutil.h
4402 _reader_la_CFLAGS = \
4404 -fvisibility=default \
4405 $(PYTHON_DEVEL_CFLAGS)
4407 _reader_la_LDFLAGS = \
4413 _reader_la_LIBADD = \
4414 $(PYTHON_DEVEL_LIBS) \
4415 libsystemd-journal.la \
4416 libsystemd-id128.la \
4417 libsystemd-daemon-internal.la \
4418 libsystemd-shared.la
4420 login_la_SOURCES = \
4421 src/python-systemd/login.c \
4422 src/python-systemd/pyutil.c \
4423 src/python-systemd/pyutil.h
4427 -fvisibility=default \
4428 $(PYTHON_DEVEL_CFLAGS)
4430 login_la_LDFLAGS = \
4437 $(PYTHON_DEVEL_LIBS) \
4438 libsystemd-journal.la \
4439 libsystemd-login.la \
4440 libsystemd-daemon-internal.la \
4441 libsystemd-shared.la
4443 dist_pkgpyexec_PYTHON = \
4444 src/python-systemd/journal.py \
4445 src/python-systemd/daemon.py \
4446 src/python-systemd/__init__.py
4448 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4449 $(AM_V_at)$(MKDIR_P) $(dir $@)
4450 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4453 src/python-systemd/id128-constants.h
4455 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4457 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4458 $(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/
4459 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4462 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4463 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4466 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4467 $(MAKE) DESTDIR="$$dir" install && \
4468 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4473 CLEAN_LOCAL_HOOKS += clean-sphinx
4476 -rm -rf docs/html/python-systemd/
4478 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4480 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4481 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4483 # ------------------------------------------------------------------------------
4485 '|rootlibexecdir=$(rootlibexecdir)|' \
4486 '|rootbindir=$(rootbindir)|' \
4487 '|bindir=$(bindir)|' \
4488 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4489 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4490 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4491 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4492 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4493 '|pkgdatadir=$(pkgdatadir)|' \
4494 '|systemunitdir=$(systemunitdir)|' \
4495 '|userunitdir=$(userunitdir)|' \
4496 '|systempresetdir=$(systempresetdir)|' \
4497 '|userpresetdir=$(userpresetdir)|' \
4498 '|udevhwdbdir=$(udevhwdbdir)|' \
4499 '|udevrulesdir=$(udevrulesdir)|' \
4500 '|catalogdir=$(catalogdir)|' \
4501 '|tmpfilesdir=$(tmpfilesdir)|' \
4502 '|sysctldir=$(sysctldir)|' \
4503 '|systemgeneratordir=$(systemgeneratordir)|' \
4504 '|usergeneratordir=$(usergeneratordir)|' \
4505 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4506 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4507 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4508 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
4509 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4510 '|prefix=$(prefix)|' \
4511 '|exec_prefix=$(exec_prefix)|' \
4512 '|libdir=$(libdir)|' \
4513 '|includedir=$(includedir)|' \
4514 '|VERSION=$(VERSION)|' \
4515 '|rootprefix=$(rootprefix)|' \
4516 '|udevlibexecdir=$(udevlibexecdir)|' \
4517 '|SUSHELL=$(SUSHELL)|' \
4518 '|DEBUGTTY=$(DEBUGTTY)|' \
4521 '|MKDIR_P=$(MKDIR_P)|' \
4522 '|QUOTAON=$(QUOTAON)|' \
4523 '|QUOTACHECK=$(QUOTACHECK)|' \
4524 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4525 '|VARLOGDIR=$(varlogdir)|' \
4526 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4527 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4528 '|PYTHON=$(PYTHON)|' \
4529 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4532 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4533 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4542 sysctl.d/%: sysctl.d/%.in
4548 src/core/macros.%: src/core/macros.%.in
4551 src/%.policy.in: src/%.policy.in.in
4559 $(AM_V_GEN)chmod +x $@
4561 src/%.c: src/%.gperf
4562 $(AM_V_at)$(MKDIR_P) $(dir $@)
4563 $(AM_V_GPERF)$(GPERF) < $< > $@
4566 $(AM_V_at)$(MKDIR_P) $(dir $@)
4567 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4570 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4571 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4573 units/user/%: units/%.m4
4574 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4575 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4578 nodist_polkitpolicy_DATA = \
4579 $(polkitpolicy_files) \
4580 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4584 $(polkitpolicy_in_files) \
4585 $(polkitpolicy_in_in_files)
4588 $(nodist_systemunit_DATA) \
4589 $(nodist_userunit_DATA) \
4590 $(pkgconfigdata_DATA) \
4591 $(pkgconfiglib_DATA) \
4592 $(nodist_polkitpolicy_DATA)
4594 # ------------------------------------------------------------------------------
4596 man/custom-entities.ent:
4597 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4598 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4599 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4603 man/custom-entities.ent
4607 --stringparam man.output.quietly 1 \
4608 --stringparam funcsynopsis.style ansi \
4609 --stringparam man.authors.section.enabled 0 \
4610 --stringparam man.copyright.section.enabled 0 \
4611 --stringparam systemd.version $(VERSION) \
4612 --path '$(builddir)/man:$(srcdir)/man'
4614 XSLTPROC_PROCESS_MAN = \
4615 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4617 XSLTPROC_PROCESS_HTML = \
4618 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4620 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4621 $(XSLTPROC_PROCESS_MAN)
4623 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4624 $(XSLTPROC_PROCESS_MAN)
4626 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4627 $(XSLTPROC_PROCESS_MAN)
4629 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4630 $(XSLTPROC_PROCESS_MAN)
4632 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4633 $(XSLTPROC_PROCESS_MAN)
4635 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4636 $(XSLTPROC_PROCESS_HTML)
4639 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4645 man/custom-html.xsl \
4648 # ------------------------------------------------------------------------------
4651 docs/sysvinit/README
4656 docs/sysvinit/README: docs/sysvinit/README.in
4659 docs/var-log/README: docs/var-log/README.in
4663 docs/sysvinit/README \
4668 docs/sysvinit/README.in \
4669 docs/var-log/README.in
4671 SOCKETS_TARGET_WANTS += \
4672 systemd-initctl.socket \
4673 systemd-shutdownd.socket
4676 RUNLEVEL1_TARGET_WANTS += \
4677 systemd-update-utmp-runlevel.service
4678 RUNLEVEL2_TARGET_WANTS += \
4679 systemd-update-utmp-runlevel.service
4680 RUNLEVEL3_TARGET_WANTS += \
4681 systemd-update-utmp-runlevel.service
4682 RUNLEVEL4_TARGET_WANTS += \
4683 systemd-update-utmp-runlevel.service
4684 RUNLEVEL5_TARGET_WANTS += \
4685 systemd-update-utmp-runlevel.service
4687 SYSINIT_TARGET_WANTS += \
4688 systemd-update-utmp.service
4689 LOCAL_FS_TARGET_WANTS += \
4690 systemd-remount-fs.service \
4692 MULTI_USER_TARGET_WANTS += \
4694 systemd-ask-password-wall.path
4695 SYSINIT_TARGET_WANTS += \
4696 dev-hugepages.mount \
4698 sys-kernel-config.mount \
4699 sys-kernel-debug.mount \
4700 sys-fs-fuse-connections.mount \
4701 systemd-sysctl.service \
4702 systemd-ask-password-console.path
4705 SYSTEM_UNIT_ALIASES += \
4706 poweroff.target runlevel0.target \
4707 rescue.target runlevel1.target \
4708 multi-user.target runlevel2.target \
4709 multi-user.target runlevel3.target \
4710 multi-user.target runlevel4.target \
4711 graphical.target runlevel5.target \
4712 reboot.target runlevel6.target
4715 SYSTEM_UNIT_ALIASES += \
4716 graphical.target default.target \
4717 reboot.target ctrl-alt-del.target \
4718 getty@.service autovt@.service
4720 USER_UNIT_ALIASES += \
4721 $(systemunitdir)/shutdown.target shutdown.target \
4722 $(systemunitdir)/sockets.target sockets.target \
4723 $(systemunitdir)/busnames.target busnames.target \
4724 $(systemunitdir)/timers.target timers.target \
4725 $(systemunitdir)/paths.target paths.target \
4726 $(systemunitdir)/bluetooth.target bluetooth.target \
4727 $(systemunitdir)/printer.target printer.target \
4728 $(systemunitdir)/sound.target sound.target \
4729 $(systemunitdir)/smartcard.target smartcard.target
4731 GENERAL_ALIASES += \
4732 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4733 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4734 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4735 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4739 $(systemunitdir)/runlevel1.target.wants \
4740 $(systemunitdir)/runlevel2.target.wants \
4741 $(systemunitdir)/runlevel3.target.wants \
4742 $(systemunitdir)/runlevel4.target.wants \
4743 $(systemunitdir)/runlevel5.target.wants
4747 $(prefix)/lib/modules-load.d \
4748 $(sysconfdir)/modules-load.d \
4749 $(prefix)/lib/systemd/network \
4750 $(sysconfdir)/systemd/network \
4751 $(prefix)/lib/sysctl.d \
4752 $(sysconfdir)/sysctl.d \
4753 $(prefix)/lib/kernel/install.d \
4754 $(sysconfdir)/kernel/install.d \
4755 $(systemshutdowndir) \
4757 $(systemgeneratordir) \
4758 $(usergeneratordir) \
4761 $(pkgsysconfdir)/system \
4762 $(pkgsysconfdir)/system/multi-user.target.wants \
4763 $(pkgsysconfdir)/system/getty.target.wants \
4764 $(pkgsysconfdir)/user \
4765 $(dbussessionservicedir) \
4766 $(sysconfdir)/xdg/systemd
4768 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4770 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4772 install-data-hook: $(INSTALL_DATA_HOOKS)
4774 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4776 clean-local: $(CLEAN_LOCAL_HOOKS)
4777 rm -rf $(abs_srcdir)/install-tree
4778 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4779 $(abs_srcdir)/hwdb/iab.txt
4781 DISTCHECK_CONFIGURE_FLAGS = \
4782 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4783 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4784 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4785 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4786 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4787 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4788 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4789 --with-rootprefix=$$dc_install_base \
4790 --disable-split-usr \
4794 DISTCHECK_CONFIGURE_FLAGS += \
4795 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4796 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4798 DISTCHECK_CONFIGURE_FLAGS += \
4799 --with-sysvinit-path= \
4800 --with-sysvrcnd-path=
4804 DISTCHECK_CONFIGURE_FLAGS += \
4809 ( cd $(top_srcdir)/hwdb && \
4810 wget -N http://www.linux-usb.org/usb.ids \
4811 http://pci-ids.ucw.cz/v2.2/pci.ids \
4812 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4813 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4817 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4818 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4820 upload: all distcheck
4821 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4822 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4823 scp man/*.html tango:public/systemd-man/
4825 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4826 doc-sync: all destdir-sphinx
4827 gtkdoc-rebase --html-dir=docs/libudev/html --online
4828 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4829 gtkdoc-rebase --html-dir=docs/gudev/html --online
4830 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4831 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4832 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4835 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4838 rm -rf $(abs_srcdir)/install-tree
4839 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4840 tree $(abs_srcdir)/install-tree
4842 # Let's run all tests of the test suite, but under valgrind. Let's
4843 # exclude the one perl script we have in there
4844 valgrind-tests: $(TESTS)
4845 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
4846 echo "Running $$f"; \
4847 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=4194400 --error-exitcode=55 $(builddir)/$$f ; \
4851 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
4853 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
4854 $(AM_V_GEN)cat $^ > $@
4856 check-api-docs: exported man
4857 $(AM_V_GEN)for symbol in `cat exported` ; do \
4858 if test -f $(builddir)/man/$$symbol.html ; then \
4859 echo " Symbol $$symbol() is documented." ; \
4861 echo "‣ Symbol $$symbol() lacks documentation." ; \
4865 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
4866 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
4868 undefined defined: $(ALL_OBJECTS)
4869 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
4870 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
4871 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
4877 check-api-unused: defined undefined exported
4878 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
4880 # Stupid test that everything purported to be exported really is
4882 define generate-sym-test
4883 $(AM_V_at)$(MKDIR_P) $(dir $@)
4884 $(AM_V_at)printf '#include <stdio.h>\n' > $@
4885 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
4886 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
4887 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
4888 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
4889 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
4890 $(AM_V_at)printf 'return 0; }\n' >> $@
4893 test-libsystemd-bus-sym.c: \
4894 src/libsystemd-bus/libsystemd-bus.sym \
4895 src/systemd/sd-bus.h \
4896 src/systemd/sd-utf8.h
4897 $(generate-sym-test)
4899 test-libsystemd-daemon-sym.c: \
4900 src/libsystemd-daemon/libsystemd-daemon.sym \
4901 src/systemd/sd-daemon.h
4902 $(generate-sym-test)
4904 test-libsystemd-id128-sym.c: \
4905 src/libsystemd-id128/libsystemd-id128.sym \
4906 src/systemd/sd-id128.h
4907 $(generate-sym-test)
4909 test-libsystemd-journal-sym.c: \
4910 src/journal/libsystemd-journal.sym \
4911 src/systemd/sd-journal.h
4912 $(generate-sym-test)
4914 test-libsystemd-login-sym.c: \
4915 src/login/libsystemd-login.sym \
4916 src/systemd/sd-login.h
4917 $(generate-sym-test)
4919 test-libudev-sym.c: \
4920 src/libudev/libudev.sym \
4922 $(generate-sym-test)
4924 test_libsystemd_bus_sym_SOURCES = \
4925 test-libsystemd-bus-sym.c
4926 test_libsystemd_bus_sym_LDADD = \
4929 test_libsystemd_daemon_sym_SOURCES = \
4930 test-libsystemd-daemon-sym.c
4931 test_libsystemd_daemon_sym_LDADD = \
4932 libsystemd-daemon.la
4934 test_libsystemd_id128_sym_SOURCES = \
4935 test-libsystemd-id128-sym.c
4936 test_libsystemd_id128_sym_LDADD = \
4939 test_libsystemd_journal_sym_SOURCES = \
4940 test-libsystemd-journal-sym.c
4941 test_libsystemd_journal_sym_LDADD = \
4942 libsystemd-journal.la
4944 test_libsystemd_login_sym_SOURCES = \
4945 test-libsystemd-login-sym.c
4946 test_libsystemd_login_sym_LDADD = \
4949 test_libudev_sym_SOURCES = \
4951 test_libudev_sym_LDADD = \
4955 $(test_libsystemd_bus_sym_SOURCES) \
4956 $(test_libsystemd_daemon_sym_SOURCES) \
4957 $(test_libsystemd_id128_sym_SOURCES) \
4958 $(test_libsystemd_journal_sym_SOURCES) \
4959 $(test_libsystemd_login_sym_SOURCES) \
4960 $(test_libudev_sym_SOURCES)
4963 test-libsystemd-bus-sym \
4964 test-libsystemd-daemon-sym \
4965 test-libsystemd-id128-sym \
4966 test-libsystemd-journal-sym \
4967 test-libsystemd-login-sym \