# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public License
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
AUTOMAKE_OPTIONS = color-tests parallel-tests
GCC_COLORS ?= 'ooh, shiny!'
# remove targets if the command fails
# keep intermediate files
.PRECIOUS: $(TEST_SUITE_LOG) Makefile
# The following four libraries only exist for compatibility reasons,
# their version info should not be bumped anymore
LIBSYSTEMD_LOGIN_CURRENT=9
LIBSYSTEMD_LOGIN_REVISION=3
LIBSYSTEMD_DAEMON_CURRENT=0
LIBSYSTEMD_DAEMON_REVISION=12
LIBSYSTEMD_ID128_CURRENT=0
LIBSYSTEMD_ID128_REVISION=28
LIBSYSTEMD_JOURNAL_CURRENT=11
LIBSYSTEMD_JOURNAL_REVISION=5
LIBSYSTEMD_JOURNAL_AGE=11
# Dirs of external packages
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
pkgconfiglibdir=$(libdir)/pkgconfig
bashcompletiondir=@bashcompletiondir@
zshcompletiondir=@zshcompletiondir@
sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
varlogdir=$(localstatedir)/log
catalogstatedir=$(systemdstatedir)/catalog
# Our own, non-special dirs
pkgsysconfdir=$(sysconfdir)/systemd
pkgincludedir=$(includedir)/systemd
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
systemsleepdir=$(rootlibexecdir)/system-sleep
udevhomedir=$(udevlibexecdir)
udevrulesdir=$(udevlibexecdir)/
rules.dudevhwdbdir=$(udevlibexecdir)/
hwdb.d# And these are the special ones for /
rootbindir=$(rootprefix)/bin
CLEANFILES = $(BUILT_SOURCES)
polkitpolicy_in_in_files =
dist_dbussystemservice_DATA =
dist_systemunit_DATA_busnames =
noinst_PROGRAMS = $(manual_tests) $(tests)
.PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
$(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
$(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
-DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
-DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
-DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
-DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
-DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
-DROOTPREFIX=\"$(rootprefix)\" \
-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
-DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
-DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
-DX_SERVER=\"$(bindir)/X\" \
-DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
-DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
-DQUOTACHECK=\"$(QUOTACHECK)\" \
-DROOTLIBDIR=\"$(rootlibdir)\" \
-DTEST_DIR=\"$(abs_top_srcdir)/test\" \
AM_CFLAGS = $(OUR_CFLAGS)
AM_LDFLAGS = $(OUR_LDFLAGS)
# ------------------------------------------------------------------------------
define move-to-rootlibdir
if test "$(libdir)" != "$(rootlibdir)"; then \
$(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
rm -f $(DESTDIR)$(libdir)/$$libname && \
$(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
MULTI_USER_TARGET_WANTS =
USER_SOCKETS_TARGET_WANTS =
USER_DEFAULT_TARGET_WANTS =
USER_BUSNAMES_TARGET_WANTS =
install-target-wants-hook:
what="$(RUNLEVEL1_TARGET_WANTS)" && wants=
runlevel1.target && dir=$(systemunitdir) && $(add-wants)
what="$(RUNLEVEL2_TARGET_WANTS)" && wants=
runlevel2.target && dir=$(systemunitdir) && $(add-wants)
what="$(RUNLEVEL3_TARGET_WANTS)" && wants=
runlevel3.target && dir=$(systemunitdir) && $(add-wants)
what="$(RUNLEVEL4_TARGET_WANTS)" && wants=
runlevel4.target && dir=$(systemunitdir) && $(add-wants)
what="$(RUNLEVEL5_TARGET_WANTS)" && wants=
runlevel5.target && dir=$(systemunitdir) && $(add-wants)
what="$(SHUTDOWN_TARGET_WANTS)" && wants=
shutdown.target && dir=$(systemunitdir) && $(add-wants)
what="$(LOCAL_FS_TARGET_WANTS)" && wants=
local-fs.target && dir=$(systemunitdir) && $(add-wants)
what="$(MULTI_USER_TARGET_WANTS)" && wants=
multi-user.target && dir=$(systemunitdir) && $(add-wants)
what="$(SYSINIT_TARGET_WANTS)" && wants=
sysinit.target && dir=$(systemunitdir) && $(add-wants)
what="$(SOCKETS_TARGET_WANTS)" && wants=
sockets.target && dir=$(systemunitdir) && $(add-wants)
what="$(TIMERS_TARGET_WANTS)" && wants=
timers.target && dir=$(systemunitdir) && $(add-wants)
what="$(SLICES_TARGET_WANTS)" && wants=
slices.target && dir=$(systemunitdir) && $(add-wants)
what="$(USER_SOCKETS_TARGET_WANTS)" && wants=
sockets.target && dir=$(userunitdir) && $(add-wants)
what="$(USER_DEFAULT_TARGET_WANTS)" && wants=
default.target && dir=$(userunitdir) && $(add-wants)
install-busnames-target-wants-hook:
what="$(BUSNAMES_TARGET_WANTS)" && wants=
busnames.target && dir=$(systemunitdir) && $(add-wants)
what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=
busnames.target && dir=$(userunitdir) && $(add-wants)
$(MKDIR_P) -m 0755 $$dir && \
for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
install-directories-hook:
$(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
set -- $(SYSTEM_UNIT_ALIASES) && \
dir=$(systemunitdir) && $(install-aliases)
set -- $(USER_UNIT_ALIASES) && \
dir=$(userunitdir) && $(install-relative-aliases)
set -- $(GENERAL_ALIASES) && \
dir= && $(install-relative-aliases)
$(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
rm -f $(DESTDIR)$$dir/$$2 && \
$(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
define install-relative-aliases
$(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
rm -f $(DESTDIR)$$dir/$$2 && \
$(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
touch -c $(DESTDIR)/$(prefix)
install-target-wants-hook \
install-directories-hook \
install-busnames-target-wants-hook
# ------------------------------------------------------------------------------
AM_V_M4 = $(AM_V_M4_$(V))
AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
AM_V_M4_0 = @echo " M4 " $@;
AM_V_XSLT = $(AM_V_XSLT_$(V))
AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
AM_V_XSLT_0 = @echo " XSLT " $@;
AM_V_GPERF = $(AM_V_GPERF_$(V))
AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
AM_V_GPERF_0 = @echo " GPERF " $@;
AM_V_LN = $(AM_V_LN_$(V))
AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
AM_V_LN_0 = @echo " LN " $@;
AM_V_RM = $(AM_V_RM_$(V))
AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
AM_V_RM_0 = @echo " RM " $@;
# ------------------------------------------------------------------------------
systemd-tty-ask-password-agent \
systemd-machine-id-setup \
dist_kernelinstall_SCRIPTS = \
systemd-machine-id-commit \
rootlibexec_PROGRAMS += \
systemgenerator_PROGRAMS = \
systemd-getty-generator \
systemd-fstab-generator \
systemd-system-update-generator \
dist_bashcompletion_DATA = \
nodist_bashcompletion_DATA = \
dist_zshcompletion_DATA = \
nodist_zshcompletion_DATA = \
$(nodist_bashcompletion_DATA) \
$(nodist_zshcompletion_DATA)
dist_systemunit_DATA += \
$(dist_systemunit_DATA_busnames)
dist_systemunit_DATA_busnames += \
nodist_systemunit_DATA = \
nodist_systemunit_DATA += \
dist_systempreset_DATA = \
nodist_systemunit_DATA += \
systemgenerator_PROGRAMS += \
systemd-rc-local-generator
# automake is broken and can't handle files with a dash in front
rm -f $(DESTDIR)/$(systemunitdir)/
-.sliceINSTALL_DATA_HOOKS += units-install-hook
UNINSTALL_DATA_HOOKS += units-uninstall-hook
# ------------------------------------------------------------------------------
.PHONY: man update-man-list
man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_LN)$(LN_S) -f ../../man $@
XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
# ------------------------------------------------------------------------------
libsystemd_shared_la_SOURCES = \
libsystemd_shared_la_SOURCES += \
nodist_libsystemd_shared_la_SOURCES = \
libsystemd_shared_la_CFLAGS = \
libsystemd_shared_la_LIBADD = \
# ------------------------------------------------------------------------------
libsystemd_units_la_SOURCES = \
# ------------------------------------------------------------------------------
libsystemd_label_la_SOURCES = \
libsystemd_label_la_CFLAGS = \
libsystemd_label_la_LIBADD = \
# -----------------------------------------------------------------------------
dist_systemunit_DATA += \
SYSINIT_TARGET_WANTS += \
# ------------------------------------------------------------------------------
libsystemd_seccomp_la_SOURCES = \
libsystemd_seccomp_la_CFLAGS = \
libsystemd_seccomp_la_LIBADD = \
# ------------------------------------------------------------------------------
libsystemd_logs_la_SOURCES = \
# ------------------------------------------------------------------------------
libsystemd_acl_la_SOURCES = \
libsystemd_acl_la_CFLAGS = \
libsystemd_acl_la_LIBADD = \
# ------------------------------------------------------------------------------
libsystemd_core_la_SOURCES = \
nodist_libsystemd_core_la_SOURCES = \
libsystemd_core_la_CFLAGS = \
libsystemd_core_la_LIBADD = \
libsystemd_core_la_LIBADD += \
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(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 ";" }' < $< > $@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
$(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include
errno.h - <
/dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include
sys/socket.h - <
/dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include
net/if_arp.h - <
/dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e '
s/ARPHRD_//' >$@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include
linux/capability.h -include
missing.h - <
/dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
$(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
# ------------------------------------------------------------------------------
dist_pkgsysconf_DATA += \
dist_dbuspolicy_DATA += \
dist_dbussystemservice_DATA += \
polkitpolicy_in_in_files += \
nodist_rpmmacros_DATA = \
# ------------------------------------------------------------------------------
test_device_nodes_SOURCES = \
test_device_nodes_LDADD = \
test_job_type_SOURCES = \
test_loopback_SOURCES = \
test_hostname_SOURCES = \
test_boot_timestamp_SOURCES = \
test_boot_timestamp_LDADD = \
test_unit_name_SOURCES = \
test_unit_name_CFLAGS = \
test_unit_file_SOURCES = \
test_unit_file_CFLAGS = \
test_capability_SOURCES = \
test_capability_LDADD = \
test_locale_util_SOURCES = \
test_locale_util_LDADD = \
test_condition_SOURCES = \
test_ratelimit_SOURCES = \
test_uid_range_SOURCES = \
test_cap_list_SOURCES = \
test_socket_util_SOURCES = \
test_socket_util_LDADD = \
test_tmpfiles_SOURCES = \
test_namespace_SOURCES = \
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
{ if (!match($$0, "^#include")) \
gsub(/hashmap/, "ordered_hashmap"); \
gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
gsub(/Hashmap/, "OrderedHashmap"); \
nodist_test_hashmap_SOURCES = \
test_unaligned_SOURCES = \
test_architecture_SOURCES = \
test_architecture_LDADD = \
test_rtnl_manual_SOURCES = \
test_rtnl_manual_CFLAGS = \
test_rtnl_manual_LDADD = \
test_ellipsize_SOURCES = \
test_replace_var_SOURCES = \
test_replace_var_LDADD = \
test_calendarspec_SOURCES = \
test_calendarspec_LDADD = \
test_strip_tab_ansi_SOURCES = \
test_strip_tab_ansi_LDADD = \
test_cgroup_mask_SOURCES = \
test_cgroup_mask_CPPFLAGS = \
test_cgroup_mask_CFLAGS = \
test_cgroup_mask_LDADD = \
test_cgroup_util_SOURCES = \
test_cgroup_util_LDADD = \
test_env_replace_SOURCES = \
test_env_replace_LDADD = \
test_path_util_SOURCES = \
test_strxcpyx_SOURCES = \
test_watchdog_SOURCES = \
test_sched_prio_SOURCES = \
test_sched_prio_CPPFLAGS = \
test_sched_prio_CFLAGS = \
test_sched_prio_LDADD = \
test_conf_files_SOURCES = \
test_conf_files_LDADD = \
test_bus_policy_SOURCES = \
test_bus_policy_LDADD = \
# ------------------------------------------------------------------------------
## .PHONY so it always rebuilds it
.PHONY: coverage lcov-run lcov-report coverage-sync
# run lcov from scratch, always
coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
# reset run coverage tests
lcov $(coverage_opts) --zerocounters
# generate report based on current coverage data
$(MKDIR_P) $(coverage_dir)
lcov $(coverage_opts) --compat-libtool --capture --no-external \
| sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/
.lcov.info genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/
.lcov-clean.info @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/
index.html"
# lcov doesn't work properly with vpath builds, make sure that bad
# output is not uploaded by mistake.
test "$(builddir)" = "$(srcdir)"
rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
echo "Need to reconfigure with --enable-coverage"
# ------------------------------------------------------------------------------
systemd_analyze_SOURCES = \
systemd_verify_CFLAGS = \
systemd_analyze_LDADD = \
# ------------------------------------------------------------------------------
systemd_initctl_SOURCES = \
systemd_initctl_LDADD = \
# ------------------------------------------------------------------------------
systemd_update_utmp_SOURCES = \
systemd_update_utmp_CFLAGS = \
systemd_update_utmp_LDADD = \
# ------------------------------------------------------------------------------
systemd_update_done_SOURCES = \
systemd_update_done_LDADD = \
# ------------------------------------------------------------------------------
systemd_shutdownd_SOURCES = \
systemd_shutdownd_LDADD = \
# ------------------------------------------------------------------------------
systemd_shutdown_SOURCES = \
systemd_shutdown_LDADD = \
# ------------------------------------------------------------------------------
systemd_modules_load_SOURCES = \
systemd_modules_load_CFLAGS = \
systemd_modules_load_LDADD = \
rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \
SYSINIT_TARGET_WANTS += \
nodist_systemunit_DATA += \
SYSINIT_TARGET_WANTS += \
# ------------------------------------------------------------------------------
systemd_tmpfiles_SOURCES = \
systemd_tmpfiles_LDADD = \
dist_systemunit_DATA += \
nodist_systemunit_DATA += \
SYSINIT_TARGET_WANTS += \
dist_zshcompletion_DATA += \
# ------------------------------------------------------------------------------
systemd_sysusers_SOURCES = \
systemd_sysusers_LDADD = \
nodist_systemunit_DATA += \
SYSINIT_TARGET_WANTS += \
# ------------------------------------------------------------------------------
dist_factory_etc_DATA = \
dist_factory_pam_DATA = \
# ------------------------------------------------------------------------------
systemd_firstboot_SOURCES = \
systemd_firstboot_LDADD = \
nodist_systemunit_DATA += \
SYSINIT_TARGET_WANTS += \
# ------------------------------------------------------------------------------
systemd_machine_id_setup_SOURCES = \
systemd_machine_id_setup_LDADD = \
# ------------------------------------------------------------------------------
systemd_sysctl_SOURCES = \
# ------------------------------------------------------------------------------
systemd_sleep_SOURCES = \
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
systemd_machine_id_commit_SOURCES = \
systemd_machine_id_commit_LDADD = \
SYSINIT_TARGET_WANTS += \
# ------------------------------------------------------------------------------
systemd_ac_power_SOURCES = \
systemd_ac_power_LDADD = \
# ------------------------------------------------------------------------------
systemd_detect_virt_SOURCES = \
systemd_detect_virt_LDADD = \
systemd-detect-virt-install-hook
# ------------------------------------------------------------------------------
systemd_delta_SOURCES = \
# ------------------------------------------------------------------------------
systemd_getty_generator_SOURCES = \
systemd_getty_generator_LDADD = \
# ------------------------------------------------------------------------------
systemd_debug_generator_SOURCES = \
systemd_debug_generator_LDADD = \
# ------------------------------------------------------------------------------
systemd_fstab_generator_SOURCES = \
systemd_fstab_generator_LDADD = \
# ------------------------------------------------------------------------------
systemd_system_update_generator_SOURCES = \
systemd_system_update_generator_LDADD = \
# ------------------------------------------------------------------------------
systemgenerator_PROGRAMS += \
systemd-hibernate-resume-generator
rootlibexec_PROGRAMS += \
systemd_hibernate_resume_SOURCES = \
systemd_hibernate_resume_LDADD = \
systemd_hibernate_resume_generator_SOURCES = \
systemd_hibernate_resume_generator_LDADD = \
dist_systemunit_DATA += \
nodist_systemunit_DATA += \
# ------------------------------------------------------------------------------
systemgenerator_PROGRAMS += \
systemd-efi-boot-generator
systemd_efi_boot_generator_SOURCES = \
systemd_efi_boot_generator_LDADD = \
# ------------------------------------------------------------------------------
dist_bashcompletion_DATA += \
dist_zshcompletion_DATA += \
# ------------------------------------------------------------------------------
systemgenerator_PROGRAMS += \
systemd-gpt-auto-generator
systemd_gpt_auto_generator_SOURCES = \
systemd_gpt_auto_generator_LDADD = \
systemd_gpt_auto_generator_CFLAGS = \
# ------------------------------------------------------------------------------
systemgenerator_PROGRAMS += \
systemd_dbus1_generator_SOURCES = \
systemd_dbus1_generator_LDADD = \
dbus1-generator-install-hook:
$(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
$(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
$(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
dbus1-generator-uninstall-hook:
rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
# ------------------------------------------------------------------------------
systemd_sysv_generator_SOURCES = \
systemd_sysv_generator_LDADD = \
# ------------------------------------------------------------------------------
systemd_rc_local_generator_SOURCES = \
systemd_rc_local_generator_LDADD = \
# ------------------------------------------------------------------------------
systemd_remount_fs_SOURCES = \
systemd_remount_fs_LDADD = \
# ------------------------------------------------------------------------------
systemd_cgroups_agent_SOURCES = \
systemd_cgroups_agent_LDADD = \
# ------------------------------------------------------------------------------
systemd_escape_SOURCES = \
# -----------------------------------------------------------------------------
# ------------------------------------------------------------------------------
systemd_notify_SOURCES = \
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
systemd_ask_password_SOURCES = \
systemd_ask_password_LDADD = \
# ------------------------------------------------------------------------------
systemd_reply_password_SOURCES = \
systemd_reply_password_LDADD = \
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
systemd_cgtop_SOURCES = \
# ------------------------------------------------------------------------------
systemd_nspawn_SOURCES = \
systemd_nspawn_CFLAGS = \
systemd_nspawn_LDADD += \
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
systemd_bus_proxyd_SOURCES = \
systemd_bus_proxyd_LDADD = \
$(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
$(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
$(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
bus-proxyd-uninstall-hook:
rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
nodist_systemunit_DATA += \
dist_systemunit_DATA += \
nodist_userunit_DATA += \
-$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
# ------------------------------------------------------------------------------
systemd_tty_ask_password_agent_SOURCES = \
systemd_tty_ask_password_agent_LDADD = \
# ------------------------------------------------------------------------------
libsystemd_internal_la_SOURCES = \
nodist_libsystemd_internal_la_SOURCES = \
libsystemd_internal_la_CFLAGS = \
libsystemd_internal_la_LIBADD = \
libsystemd_resolve_la_SOURCES = \
libsystemd_resolve_la_CFLAGS = \
libsystemd_resolve_la_LIBADD = \
libsystemd_dump_la_SOURCES = \
libsystemd_la_SOURCES = \
$(libsystemd_internal_la_SOURCES) \
$(libsystemd_resolve_la_SOURCES) \
$(libsystemd_journal_internal_la_SOURCES)
nodist_libsystemd_la_SOURCES = \
$(nodist_libsystemd_internal_la_SOURCES)
$(libsystemd_internal_la_CFLAGS) \
$(libsystemd_resolve_la_CFLAGS) \
$(libsystemd_journal_internal_la_CFLAGS)
libsystemd_la_LDFLAGS = \
-version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
$(libsystemd_internal_la_LIBADD) \
$(libsystemd_journal_internal_la_LIBADD) \
$(libsystemd_resolve_la_LIBADD)
libsystemd-uninstall-hook:
INSTALL_EXEC_HOOKS += libsystemd-install-hook
UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
test-bus-kernel-benchmark \
test_bus_marshal_SOURCES = \
test_bus_marshal_LDADD = \
test_bus_marshal_CFLAGS = \
test_bus_signature_SOURCES = \
test_bus_signature_LDADD = \
test_bus_chat_SOURCES = \
test_bus_cleanup_SOURCES = \
test_bus_cleanup_CFLAGS = \
test_bus_cleanup_LDADD = \
test_bus_server_SOURCES = \
test_bus_server_CFLAGS = \
test_bus_server_LDADD = \
test_bus_objects_SOURCES = \
test_bus_objects_CFLAGS = \
test_bus_objects_LDADD = \
test_bus_error_SOURCES = \
test_bus_gvariant_SOURCES = \
test_bus_gvariant_LDADD = \
test_bus_gvariant_CFLAGS = \
test_bus_creds_SOURCES = \
test_bus_match_SOURCES = \
test_bus_kernel_SOURCES = \
test_bus_kernel_LDADD = \
test_bus_kernel_bloom_SOURCES = \
test_bus_kernel_bloom_LDADD = \
test_bus_kernel_benchmark_SOURCES = \
test_bus_kernel_benchmark_LDADD = \
test_bus_zero_copy_SOURCES = \
test_bus_zero_copy_LDADD = \
test_bus_introspect_SOURCES = \
test_bus_introspect_LDADD = \
test_local_addresses_SOURCES = \
test_local_addresses_LDADD = \
# ------------------------------------------------------------------------------
libsystemd_network_la_CFLAGS = \
libsystemd_network_la_SOURCES = \
libsystemd_network_la_LIBADD = \
test_dhcp_option_SOURCES = \
test_dhcp_option_LDADD = \
test_dhcp_client_SOURCES = \
test_dhcp_client_LDADD = \
test_dhcp_server_SOURCES = \
test_dhcp_server_LDADD = \
test_icmp6_rs_SOURCES = \
test_dhcp6_client_SOURCES = \
test_dhcp6_client_LDADD = \
# ------------------------------------------------------------------------------
rootlibexec_PROGRAMS += \
nodist_userunit_DATA += \
USER_DEFAULT_TARGET_WANTS += \
libsystemd_terminal_la_CFLAGS = \
libsystemd_terminal_la_SOURCES = \
libsystemd_terminal_la_LIBADD = \
systemd_consoled_CFLAGS = \
systemd_consoled_SOURCES = \
systemd_consoled_LDADD = \
systemd_evcat_SOURCES = \
systemd_modeset_CFLAGS = \
systemd_modeset_SOURCES = \
systemd_modeset_LDADD = \
systemd_subterm_SOURCES = \
systemd_subterm_LDADD = \
test_term_page_SOURCES = \
test_term_parser_SOURCES = \
test_term_parser_LDADD = \
$(AM_V_GEN)$(PYTHON) $< \
# ------------------------------------------------------------------------------
-version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_at)$(MKDIR_P) $(dir $@)
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
INSTALL_EXEC_HOOKS += libudev-install-hook
UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
# ------------------------------------------------------------------------------
libudev_internal_la_SOURCES =\
libudev_internal_la_CFLAGS = \
# ------------------------------------------------------------------------------
nodist_udevrules_DATA += \
udevconfdir = $(sysconfdir)/udev
sharepkgconfigdir = $(datadir)/pkgconfig
SOCKETS_TARGET_WANTS += \
SYSINIT_TARGET_WANTS += \
rootlibexec_PROGRAMS += \
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(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/' > $@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
$(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
libudev_core_la_SOURCES = \
nodist_libudev_core_la_SOURCES = \
$(nodist_libudev_core_la_SOURCES)
libudev_core_la_CFLAGS = \
libudev_core_la_LIBADD = \
libudev_core_la_SOURCES += \
libudev_core_la_SOURCES += \
libudev_core_la_SOURCES += \
libudev_core_la_LIBADD += \
systemd_udevd_SOURCES = \
# ------------------------------------------------------------------------------
SYSINIT_TARGET_WANTS += \
# Update hwdb on installation. Do not bother if installing
# in DESTDIR, since this is likely for packaging purposes.
-test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
# ------------------------------------------------------------------------------
$(AM_V_at)$(MKDIR_P) $(dir $@)
DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
# ------------------------------------------------------------------------------
udevlibexec_PROGRAMS += \
# ------------------------------------------------------------------------------
udevlibexec_PROGRAMS += \
# ------------------------------------------------------------------------------
udevlibexec_PROGRAMS += \
# ------------------------------------------------------------------------------
udevlibexec_PROGRAMS += \
# ------------------------------------------------------------------------------
udevlibexec_PROGRAMS += \
# ------------------------------------------------------------------------------
accelerometer_SOURCES = \
udevlibexec_PROGRAMS += \
# ------------------------------------------------------------------------------
libgudev_include_HEADERS = \
libgudev_1_0_la_SOURCES = \
nodist_libgudev_1_0_la_SOURCES = \
$(nodist_libgudev_1_0_la_SOURCES)
libgudev_1_0_la_CPPFLAGS = \
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
libgudev_1_0_la_CFLAGS = \
libgudev_1_0_la_LIBADD = \
libgudev_1_0_la_LDFLAGS = \
-version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
$(AM_V_at)$(MKDIR_P) $(dir $@)
glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)glib-mkenums --template $^ > $@
-include $(INTROSPECTION_MAKEFILE)
src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
src_gudev_GUdev_1_0_gir_CFLAGS = \
-D_GUDEV_WORK_AROUND_DEV_T_BUG \
src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
src_gudev_GUdev_1_0_gir_FILES = \
girdir = $(datadir)/gir-1.0
typelibsdir = $(libdir)/girepository-1.0
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
endif # HAVE_INTROSPECTION
# ------------------------------------------------------------------------------
udevlibexec_PROGRAMS += \
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
rootlibexec_PROGRAMS += \
systemd_activate_SOURCES = \
systemd_activate_LDADD = \
# ------------------------------------------------------------------------------
systemd_journald_SOURCES = \
systemd_journald_LDADD = \
rootlibexec_PROGRAMS += \
systemd_journal_remote_SOURCES = \
systemd_journal_remote_LDADD = \
systemd_journal_remote_SOURCES += \
systemd_journal_remote_CFLAGS = \
systemd_journal_remote_LDADD += \
systemd_journal_remote_LDADD += \
# systemd-journal-remote make sense mostly with full crypto stack
dist_systemunit_DATA += \
nodist_systemunit_DATA += \
journal-remote-install-hook: journal-install-hook
INSTALL_EXEC_HOOKS += journal-remote-install-hook
nodist_pkgsysconf_DATA += \
rootlibexec_PROGRAMS += \
systemd_journal_upload_SOURCES = \
systemd_journal_upload_CFLAGS = \
systemd_journal_upload_LDADD = \
nodist_systemunit_DATA += \
nodist_pkgsysconf_DATA += \
# using _CFLAGS = in the conditional below would suppress AM_CFLAGS
test_journal_send_SOURCES = \
test_journal_send_LDADD = \
test_journal_syslog_SOURCES = \
test_journal_syslog_LDADD = \
test_journal_match_SOURCES = \
test_journal_match_LDADD = \
test_journal_enum_SOURCES = \
test_journal_enum_LDADD = \
test_journal_stream_SOURCES = \
test_journal_stream_LDADD = \
test_journal_flush_SOURCES = \
test_journal_flush_LDADD = \
test_journal_init_SOURCES = \
test_journal_init_LDADD = \
test_journal_verify_SOURCES = \
test_journal_verify_LDADD = \
test_journal_interleaving_SOURCES = \
test_journal_interleaving_LDADD = \
test_mmap_cache_SOURCES = \
test_mmap_cache_LDADD = \
test_catalog_CPPFLAGS = \
-DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
test_compress_SOURCES = \
test_compress_benchmark_SOURCES = \
test_compress_benchmark_LDADD = \
libsystemd_journal_core_la_SOURCES = \
nodist_libsystemd_journal_core_la_SOURCES = \
libsystemd_journal_core_la_LIBADD = \
libsystemd_journal_core_la_LIBADD += \
INSTALL_EXEC_HOOKS += journal-install-hook
UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
# ------------------------------------------------------------------------------
# Update catalog on installation. Do not bother if installing
# in DESTDIR, since this is likely for packaging purposes.
-test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
-test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
UNINSTALL_DATA_HOOKS += \
test-journal-interleaving \
libsystemd_journal_internal_la_SOURCES = \
# using _CFLAGS = in the conditional below would suppress AM_CFLAGS
libsystemd_journal_internal_la_CFLAGS = \
libsystemd_journal_internal_la_LIBADD =
libsystemd_journal_internal_la_SOURCES += \
libsystemd_journal_internal_la_CFLAGS += \
libsystemd_journal_internal_la_LIBADD += \
libsystemd_journal_internal_la_LIBADD += \
libsystemd_journal_internal_la_SOURCES += \
libsystemd_journal_internal_la_LIBADD += \
#
fsprg.c is a drop-in file using void pointer arithmetic
libsystemd_journal_internal_la_CFLAGS += \
rootlibexec_PROGRAMS += \
dist_systemunit_DATA += \
nodist_systemunit_DATA += \
dist_pkgsysconf_DATA += \
SOCKETS_TARGET_WANTS += \
SYSINIT_TARGET_WANTS += \
# ------------------------------------------------------------------------------
gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
rootlibexec_PROGRAMS += \
systemd_journal_gatewayd_SOURCES = \
systemd_journal_gatewayd_LDADD = \
systemd_journal_gatewayd_LDADD += \
systemd_journal_gatewayd_CFLAGS = \
systemd_journal_gatewayd_CPPFLAGS = \
-DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
dist_systemunit_DATA += \
nodist_systemunit_DATA += \
dist_gatewayddocumentroot_DATA = \
# ------------------------------------------------------------------------------
systemd_socket_proxyd_SOURCES = \
systemd_socket_proxyd_LDADD = \
# ------------------------------------------------------------------------------
systemd_coredump_SOURCES = \
systemd_coredump_LDADD = \
systemd_coredump_SOURCES += \
systemd_coredump_LDADD += \
rootlibexec_PROGRAMS += \
dist_pkgsysconf_DATA += \
systemd_coredump_LDADD += \
test_coredump_vacuum_SOURCES = \
test_coredump_vacuum_LDADD = \
dist_bashcompletion_DATA += \
dist_zshcompletion_DATA += \
# ------------------------------------------------------------------------------
systemd_binfmt_SOURCES = \
rootlibexec_PROGRAMS += \
dist_systemunit_DATA += \
nodist_systemunit_DATA += \
SYSINIT_TARGET_WANTS += \
# ------------------------------------------------------------------------------
systemd_vconsole_setup_SOURCES = \
systemd_vconsole_setup_LDADD = \
rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \
nodist_udevrules_DATA += \
SYSINIT_TARGET_WANTS += \
# ------------------------------------------------------------------------------
systemd_bootchart_SOURCES = \
systemd_bootchart_LDADD = \
rootlibexec_PROGRAMS += \
dist_pkgsysconf_DATA += \
nodist_systemunit_DATA += \
# ------------------------------------------------------------------------------
rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \
systemd_quotacheck_SOURCES = \
systemd_quotacheck_LDADD = \
nodist_systemunit_DATA += \
# ------------------------------------------------------------------------------
rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \
systemd_random_seed_SOURCES = \
systemd_random_seed_LDADD = \
SYSINIT_TARGET_WANTS += \
# ------------------------------------------------------------------------------
rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \
systemd_backlight_SOURCES = \
systemd_backlight_LDADD = \
# ------------------------------------------------------------------------------
rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \
systemd_rfkill_SOURCES = \
# ------------------------------------------------------------------------------
rootlibexec_PROGRAMS += \
systemgenerator_PROGRAMS += \
systemd-cryptsetup-generator
dist_systemunit_DATA += \
systemd_cryptsetup_SOURCES = \
systemd_cryptsetup_CFLAGS = \
systemd_cryptsetup_LDADD = \
systemd_cryptsetup_generator_SOURCES = \
systemd_cryptsetup_generator_LDADD = \
SYSINIT_TARGET_WANTS += \
# ------------------------------------------------------------------------------
systemd_hostnamed_SOURCES = \
systemd_hostnamed_LDADD = \
rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \
dist_systemunit_DATA_busnames += \
dist_dbuspolicy_DATA += \
dist_dbussystemservice_DATA += \
BUSNAMES_TARGET_WANTS += \
dist_bashcompletion_DATA += \
dist_zshcompletion_DATA += \
polkitpolicy_in_files += \
# ------------------------------------------------------------------------------
dist_systemunit_DATA_busnames += \
BUSNAMES_TARGET_WANTS += \
# ------------------------------------------------------------------------------
systemd_localed_SOURCES = \
systemd_localed_LDADD = \
systemd_localed_CFLAGS = \
nodist_systemunit_DATA += \
dist_systemunit_DATA_busnames += \
rootlibexec_PROGRAMS += \
dist_dbuspolicy_DATA += \
dist_dbussystemservice_DATA += \
BUSNAMES_TARGET_WANTS += \
dist_bashcompletion_DATA += \
dist_zshcompletion_DATA += \
.PHONY: update-kbd-model-map
polkitpolicy_in_files += \
# ------------------------------------------------------------------------------
systemd_timedated_SOURCES = \
systemd_timedated_LDADD = \
rootlibexec_PROGRAMS += \
dist_dbussystemservice_DATA += \
dist_dbuspolicy_DATA += \
nodist_systemunit_DATA += \
dist_systemunit_DATA_busnames += \
BUSNAMES_TARGET_WANTS += \
dist_bashcompletion_DATA += \
dist_zshcompletion_DATA += \
polkitpolicy_in_files += \
# ------------------------------------------------------------------------------
systemd_timesyncd_SOURCES = \
nodist_systemd_timesyncd_SOURCES = \
systemd_timesyncd_LDADD = \
rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \
nodist_pkgsysconf_DATA += \
# ------------------------------------------------------------------------------
libnss_myhostname_la_SOURCES = \
libnss_myhostname_la_LDFLAGS = \
libnss_myhostname_la_LIBADD = \
# ------------------------------------------------------------------------------
systemd_machined_SOURCES = \
systemd_machined_LDADD = \
rootlibexec_PROGRAMS += \
libsystemd_machine_core_la_SOURCES = \
libsystemd_machine_core_la_LIBADD = \
dist_bashcompletion_DATA += \
test_machine_tables_SOURCES = \
test_machine_tables_LDADD = \
nodist_systemunit_DATA += \
dist_systemunit_DATA += \
dist_systemunit_DATA_busnames += \
dist_dbussystemservice_DATA += \
dist_dbuspolicy_DATA += \
polkitpolicy_in_files += \
dist_zshcompletion_DATA += \
BUSNAMES_TARGET_WANTS += \
libnss_mymachines_la_SOURCES = \
libnss_mymachines_la_LDFLAGS = \
libnss_mymachines_la_LIBADD = \
systemd_import_SOURCES = \
systemd_import_CFLAGS = \
# ------------------------------------------------------------------------------
systemd_resolved_SOURCES = \
nodist_systemd_resolved_SOURCES = \
systemd_resolved_LDADD = \
rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \
dist_systemunit_DATA_busnames += \
dist_dbuspolicy_DATA += \
dist_dbussystemservice_DATA += \
BUSNAMES_TARGET_WANTS += \
nodist_pkgsysconf_DATA += \
test_dns_domain_SOURCES = \
test_dns_domain_LDADD = \
libnss_resolve_la_SOURCES = \
libnss_resolve_la_LDFLAGS = \
libnss_resolve_la_LIBADD = \
systemd_resolve_host_SOURCES = \
systemd_resolve_host_LDADD = \
rootlibexec_PROGRAMS += \
# ------------------------------------------------------------------------------
rootlibexec_PROGRAMS += \
systemd_networkd_SOURCES = \
systemd_networkd_LDADD = \
libsystemd_networkd_core_la_CFLAGS = \
libsystemd_networkd_core_la_SOURCES = \
nodist_libsystemd_networkd_core_la_SOURCES = \
libsystemd_networkd_core_la_LIBADD = \
rootlibexec_PROGRAMS += \
systemd-networkd-wait-online
systemd_networkd_wait_online_CFLAGS = \
systemd_networkd_wait_online_SOURCES = \
systemd_networkd_wait_online_LDADD = \
test_network_tables_SOURCES = \
test_network_tables_LDADD = \
nodist_systemunit_DATA += \
# ------------------------------------------------------------------------------
systemd_logind_SOURCES = \
nodist_systemd_logind_SOURCES = \
libsystemd_logind_core_la_SOURCES = \
libsystemd_logind_core_la_LIBADD = \
libsystemd_logind_core_la_SOURCES += \
libsystemd_logind_core_la_LIBADD += \
systemd_user_sessions_SOURCES = \
systemd_user_sessions_LDADD = \
rootlibexec_PROGRAMS += \
dist_bashcompletion_DATA += \
dist_zshcompletion_DATA += \
systemd_inhibit_SOURCES = \
systemd_inhibit_LDADD = \
test_login_shared_SOURCES = \
test_login_shared_LDADD = \
test_login_tables_SOURCES = \
test_login_tables_LDADD = \
pam_systemd_la_SOURCES = \
pam_systemd_la_CFLAGS = \
pam_systemd_la_LDFLAGS = \
pam_systemd_la_LIBADD = \
nodist_systemunit_DATA += \
dist_systemunit_DATA += \
dist_systemunit_DATA_busnames += \
dist_dbussystemservice_DATA += \
dist_dbuspolicy_DATA += \
dist_pkgsysconf_DATA += \
MULTI_USER_TARGET_WANTS += \
BUSNAMES_TARGET_WANTS += \
nodist_udevrules_DATA += \
polkitpolicy_in_files += \
# ------------------------------------------------------------------------------
pkgpyexec_LTLIBRARIES = \
nodist_id128_la_SOURCES = \
dist_pkgpyexec_PYTHON = \
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
$(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
$(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
$(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
$(MAKE) DESTDIR="$$dir" install && \
$(MAKE) DESTDIR="$$dir" sphinx-html && \
CLEAN_LOCAL_HOOKS += clean-sphinx
.PHONY: python-shell destdir-sphinx clean-sphinx clean-python
# Remove Python stuff,
e.g. to force rebuilding for a different Python version.
# ------------------------------------------------------------------------------
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
libsystemd_journal_la_SOURCES = \
libsystemd_journal_la_CPPFLAGS = \
libsystemd_journal_la_LDFLAGS = \
-version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
libsystemd_journal_la_LIBADD = \
libsystemd_login_la_SOURCES = \
libsystemd_login_la_CPPFLAGS = \
libsystemd_login_la_LDFLAGS = \
-version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
libsystemd_login_la_LIBADD = \
libsystemd_id128_la_SOURCES = \
libsystemd_id128_la_CPPFLAGS = \
libsystemd_id128_la_LDFLAGS = \
-version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
libsystemd_id128_la_LIBADD = \
libsystemd_daemon_la_SOURCES = \
libsystemd_daemon_la_CPPFLAGS = \
libsystemd_daemon_la_LDFLAGS = \
-version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
libsystemd_daemon_la_LIBADD = \
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
compat-lib-uninstall-hook:
INSTALL_EXEC_HOOKS += compat-lib-install-hook
UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
# ------------------------------------------------------------------------------
'|rootlibexecdir=$(rootlibexecdir)|' \
'|rootbindir=$(rootbindir)|' \
'|SYSTEMCTL=$(rootbindir)/systemctl|' \
'|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
'|pkgsysconfdir=$(pkgsysconfdir)|' \
'|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
'|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
'|pkgdatadir=$(pkgdatadir)|' \
'|systemunitdir=$(systemunitdir)|' \
'|userunitdir=$(userunitdir)|' \
'|systempresetdir=$(systempresetdir)|' \
'|userpresetdir=$(userpresetdir)|' \
'|udevhwdbdir=$(udevhwdbdir)|' \
'|udevrulesdir=$(udevrulesdir)|' \
'|catalogdir=$(catalogdir)|' \
'|tmpfilesdir=$(tmpfilesdir)|' \
'|sysusersdir=$(sysusersdir)|' \
'|sysctldir=$(sysctldir)|' \
'|systemgeneratordir=$(systemgeneratordir)|' \
'|usergeneratordir=$(usergeneratordir)|' \
'|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
'|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
'|PACKAGE_NAME=$(PACKAGE_NAME)|' \
'|PACKAGE_URL=$(PACKAGE_URL)|' \
'|exec_prefix=$(exec_prefix)|' \
'|includedir=$(includedir)|' \
'|rootprefix=$(rootprefix)|' \
'|udevlibexecdir=$(udevlibexecdir)|' \
'|DEBUGTTY=$(DEBUGTTY)|' \
'|QUOTACHECK=$(QUOTACHECK)|' \
'|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
'|VARLOGDIR=$(varlogdir)|' \
'|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
'|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
'|PYTHON_BINARY=$(PYTHON_BINARY)|' \
'|NTP_SERVERS=$(NTP_SERVERS)|' \
'|DNS_SERVERS=$(DNS_SERVERS)|' \
'|systemuidmax=$(SYSTEM_UID_MAX)|' \
'|systemgidmax=$(SYSTEM_GID_MAX)|' \
'|systemsleepdir=$(systemsleepdir)|' \
'|systemshutdowndir=$(systemshutdowndir)|' \
'|binfmtdir=$(binfmtdir)|' \
'|modulesloaddir=$(modulesloaddir)|'
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
$(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
shell-completion/%: shell-completion/%.in
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GPERF)$(GPERF) < $< > $@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
nodist_polkitpolicy_DATA = \
$(polkitpolicy_in_files) \
$(polkitpolicy_in_in_files)
$(nodist_systemunit_DATA) \
$(nodist_userunit_DATA) \
$(nodist_polkitpolicy_DATA)
# ------------------------------------------------------------------------------
$(AM_V_GEN)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
--path '$(builddir)/man:$(srcdir)/man'
XSLTPROC_PROCESS_HTML = \
$(AM_V_LN)$(LN_S) -f $(notdir $<) $@
# ------------------------------------------------------------------------------
SOCKETS_TARGET_WANTS += \
RUNLEVEL1_TARGET_WANTS += \
RUNLEVEL2_TARGET_WANTS += \
RUNLEVEL3_TARGET_WANTS += \
RUNLEVEL4_TARGET_WANTS += \
RUNLEVEL5_TARGET_WANTS += \
SYSINIT_TARGET_WANTS += \
SYSINIT_TARGET_WANTS += \
LOCAL_FS_TARGET_WANTS += \
MULTI_USER_TARGET_WANTS += \
SYSINIT_TARGET_WANTS += \
getty@.service autovt@.service
$(pkgsysconfdir)/system \
$(dbussessionservicedir) \
install-exec-hook: $(INSTALL_EXEC_HOOKS)
uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
install-data-hook: $(INSTALL_DATA_HOOKS)
distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
clean-local: $(CLEAN_LOCAL_HOOKS)
rm -rf $(abs_srcdir)/install-tree
DISTCHECK_CONFIGURE_FLAGS = \
--with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
--with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
--with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
--with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
--with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
--with-pamlibdir=$$dc_install_base/$(pamlibdir) \
--with-pamconfdir=$$dc_install_base/$(pamconfdir) \
--with-rootprefix=$$dc_install_base \
DISTCHECK_CONFIGURE_FLAGS += \
--with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
--with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
DISTCHECK_CONFIGURE_FLAGS += \
DISTCHECK_CONFIGURE_FLAGS += \
DISTCHECK_CONFIGURE_FLAGS += \
# Require python when making dist
.PHONY: dist-check-python
@echo "*** python and python-lxml module must be installed and enabled in order to make dist"
@echo "*** compat-libs must be enabled in order to make dist"
dist: dist-check-python dist-check-compat-libs
# check "broken" platforms limited toolchains for link breakage before we release
$(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
( cd $(top_srcdir)/hwdb && \
git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
scp systemd-$(VERSION)
.tar.xz $(www_target)
doc-sync: all destdir-sphinx
rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
rm -rf $(abs_srcdir)/install-tree
$(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
tree $(abs_srcdir)/install-tree
# Let's run all tests of the test suite, but under valgrind. Let's
# exclude the one perl script we have in there
$(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
if file $$f | grep -q shell; then \
echo -e "$${x}Skipping non-binary $$f"; else \
echo -e "$${x}Running $$f"; \
libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
$(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1
/dev/null | grep " T " | cut -d" " -f3 > $@
exported: $(addprefix exported-, $(lib_LTLIBRARIES))
check-api-docs: exported man
$(AM_V_GEN)for symbol in `cat exported` ; do \
echo " Symbol $$symbol() is documented." ; \
echo "‣ Symbol $$symbol() lacks documentation." ; \
OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
undefined defined: $(ALL_OBJECTS)
$(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
$(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\
1.o,'` ; \
done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
check-api-unused: defined undefined exported
( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
$(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
# Stupid test that everything purported to be exported really is
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_at)printf '#include <
stdio.h>\n' > $@
$(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
$(AM_V_at)printf 'void* functions[] = {\n' >> $@
$(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
$(AM_V_at)printf '};\nint main(void) {\n' >> $@
$(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
$(AM_V_at)printf 'return 0; }\n' >> $@
test_libsystemd_sym_SOURCES = \
test_libsystemd_sym_LDADD = \
test_libudev_sym_SOURCES = \
test_libudev_sym_CFLAGS = \
-Wno-deprecated-declarations
test_libudev_sym_LDADD = \
$(test_libsystemd_sym_SOURCES) \
$(test_libudev_sym_SOURCES)
cppcheck --enable=all -q $(top_srcdir)
# Used to extract compile flags for YCM.
@git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u